Reorganize job-related modules under deepwork.jobs package#225
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Restructure the codebase to consolidate all job-related functionality under a unified
deepwork.jobspackage 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.coreanddeepwork.mcpinto thedeepwork.jobspackage:deepwork.core.jobs→deepwork.jobs.discoverydeepwork.core.parser→deepwork.jobs.parserdeepwork.schemas.job_schema→deepwork.jobs.schemadeepwork.mcp.*→deepwork.jobs.mcp.*Updated all imports: Changed import statements across the codebase to reflect the new module paths in:
src/deepwork/)tests/)Updated logging: Changed logger names to match new module paths (e.g.,
deepwork.core.jobs→deepwork.jobs.discovery,deepwork.mcp→deepwork.jobs.mcp)Added package documentation: Created
__init__.pyfiles for the newdeepwork.jobspackage and test subpackages with module documentationMaintained backward compatibility: Updated the main
deepwork.__init__.pyto import from the newdeepwork.jobs.parserlocation for public API exportsImplementation Details
tests/unit/jobs/andtests/unit/jobs/mcp/specs/deepwork/jobs/for consistencyhttps://claude.ai/code/session_017aa4FwLj9etksQHyd5wuKE