Commit 89d3dac
Add markdown file support to job steps (#19)
* feat: add supplementary .md file support for step instructions
Step instructions can now reference additional .md files placed in the
steps/ directory. When slash commands are generated, references to these
files (in backticks, markdown links, or quoted strings) are automatically
transformed to relative paths from the project root.
Changes:
- Add _find_supplementary_files() to detect extra .md files in steps dir
- Add _transform_md_references() to convert filename refs to full paths
- Update Claude and Gemini templates to show supplementary files section
- Document the feature in implement.md for deepwork_jobs
- Add comprehensive tests for the new functionality
* refactor: simplify supplementary .md file support to docs-only approach
Remove automatic path transformation code in favor of documenting that
users should reference supplementary files using full paths from the
project root (e.g., .deepwork/jobs/job_name/steps/reference.md).
This is simpler and more explicit - no magic transformations needed.
Changes:
- Remove _find_supplementary_files() and _transform_md_references() from generator
- Remove supplementary_files template section from both Claude and Gemini templates
- Remove supplementary files tests
- Add supplemental_file_references.md documentation file
- Update implement.md to reference the new doc file with full path
* fix: remove manually copied files from .deepwork/
The .deepwork/ directory should only be modified by `deepwork install`,
not by manual file copies. Remove the supplementary files that were
incorrectly added to the installed jobs directory.
The supplementary file documentation remains in the source at
src/deepwork/standard_jobs/deepwork_jobs/steps/ and will be installed
when users run `deepwork install`.
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 309137d commit 89d3dac
2 files changed
Lines changed: 46 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
147 | 153 | | |
148 | 154 | | |
149 | 155 | | |
| |||
Lines changed: 40 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments