Skip to content

Reorganize job-related modules under deepwork.jobs package#225

Merged
nhorton merged 4 commits intomainfrom
claude/namespace-jobs-code-mBf6p
Feb 22, 2026
Merged

Reorganize job-related modules under deepwork.jobs package#225
nhorton merged 4 commits intomainfrom
claude/namespace-jobs-code-mBf6p

Conversation

@nhorton
Copy link
Contributor

@nhorton nhorton commented Feb 22, 2026

Summary

Restructure the codebase to consolidate all job-related functionality under a unified deepwork.jobs package hierarchy. This improves code organization by grouping related modules and makes the package structure more intuitive.

Key Changes

  • Package reorganization: Moved job discovery, parsing, and MCP-related modules from deepwork.core and deepwork.mcp into the deepwork.jobs package:

    • deepwork.core.jobsdeepwork.jobs.discovery
    • deepwork.core.parserdeepwork.jobs.parser
    • deepwork.schemas.job_schemadeepwork.jobs.schema
    • deepwork.mcp.*deepwork.jobs.mcp.*
  • Updated all imports: Changed import statements across the codebase to reflect the new module paths in:

    • Source files (src/deepwork/)
    • Test files (tests/)
    • CLI modules
    • E2E and integration tests
    • GitHub Actions workflows
  • Updated logging: Changed logger names to match new module paths (e.g., deepwork.core.jobsdeepwork.jobs.discovery, deepwork.mcpdeepwork.jobs.mcp)

  • Added package documentation: Created __init__.py files for the new deepwork.jobs package and test subpackages with module documentation

  • Maintained backward compatibility: Updated the main deepwork.__init__.py to import from the new deepwork.jobs.parser location for public API exports

Implementation Details

  • All functionality remains unchanged; this is purely a structural reorganization
  • The new hierarchy clearly separates job-related concerns into a dedicated package
  • Test structure mirrors the source structure with tests/unit/jobs/ and tests/unit/jobs/mcp/
  • Specification files were also reorganized to specs/deepwork/jobs/ for consistency

https://claude.ai/code/session_017aa4FwLj9etksQHyd5wuKE

Reorganize source, tests, and specs for MCP endpoints (REQ-001, REQ-003,
REQ-004, REQ-009) and job handling (REQ-002, REQ-008) under a unified
`deepwork.jobs` namespace:

Source:
- deepwork.core.jobs -> deepwork.jobs.discovery
- deepwork.core.parser -> deepwork.jobs.parser
- deepwork.schemas.job_schema -> deepwork.jobs.schema
- deepwork.mcp.* -> deepwork.jobs.mcp.*

Tests:
- tests/unit/test_jobs.py -> tests/unit/jobs/test_discovery.py
- tests/unit/test_parser.py -> tests/unit/jobs/test_parser.py
- tests/unit/mcp/* -> tests/unit/jobs/mcp/*

Specs:
- specs/deepwork/REQ-{001..004,008,009}-*.md -> specs/deepwork/jobs/

All 403 unit tests pass.

https://claude.ai/code/session_017aa4FwLj9etksQHyd5wuKE
@nhorton nhorton added this pull request to the merge queue Feb 22, 2026
Merged via the queue into main with commit 1a5cc56 Feb 22, 2026
4 checks passed
@nhorton nhorton deleted the claude/namespace-jobs-code-mBf6p branch February 22, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants