mirror of
https://github.com/khodges42/nightShift.git
synced 2026-06-14 18:18:36 +00:00
What changed:
- Added file_writer stage support in nightshift/config.py:93, nightshift/agents.py:446, and nightshift/pipeline.py:374.
- Added file-block parsing and deterministic patch generation in nightshift/patches.py:65.
- file_writer agents now return complete file blocks:
```file:relative/path.py
<complete file content>
```
NightShift reads current files and generates the unified diff itself.
- Existing patch_validator, patch_normalizer, and patch_apply still run after that.
- Switched tiny-lisp-nightshift/nightshift.yaml:51 to type: file_writer.
- Updated tiny-lisp-nightshift/agents/implementer.md:1 to request file blocks instead of diffs.
- Updated README, tutorial, config reference, and design doc.
Also added tests for parsing file blocks, generating multi-file diffs, validating those diffs, and running a full file_writer -> normalize -> validate pipeline.
Verification: python -m unittest discover -v passes, 101 tests.
62 lines
588 B
Markdown
62 lines
588 B
Markdown
# Repo Tool Calls
|
|
|
|
## 1. read_file
|
|
|
|
Arguments:
|
|
- path: `lisp_parser.py`
|
|
|
|
Output:
|
|
|
|
```text
|
|
File not found: lisp_parser.py
|
|
```
|
|
|
|
## 2. read_file
|
|
|
|
Arguments:
|
|
- path: `tests/test_lisp_parser.py`
|
|
|
|
Output:
|
|
|
|
```text
|
|
File not found: tests/test_lisp_parser.py
|
|
```
|
|
|
|
## 3. list_files
|
|
|
|
Arguments:
|
|
- path: `.`
|
|
- pattern: `*.py`
|
|
|
|
Output:
|
|
|
|
```text
|
|
lisp.py
|
|
tests/__init__.py
|
|
tests/test_lisp.py
|
|
```
|
|
|
|
## 4. grep
|
|
|
|
Arguments:
|
|
- path: `.`
|
|
- pattern: `def parse\(`
|
|
|
|
Output:
|
|
|
|
```text
|
|
No matches found.
|
|
```
|
|
|
|
## 5. grep
|
|
|
|
Arguments:
|
|
- path: `.`
|
|
- pattern: `class LispParser`
|
|
|
|
Output:
|
|
|
|
```text
|
|
No matches found.
|
|
```
|