clawdforge/clawdforge
Kayos 99ce6a9fc2 runner: stage attached files into per-run cwd, drop broken --files arg
The old code passed `--files <abspath>` to `claude -p`, but the CLI has
no such flag — it errored out with "unknown option '--files'" on the
first /run call carrying a file. The flag had been there since the
file-attachment path was added and was apparently never exercised end
to end against current claude versions.

New behavior: each file_path is hardlinked (cross-fs falls back to
copy) into the per-run cwd under a stable `attachment-N.<ext>` name,
and the prompt is appended with a `Attached files in the current
directory:` manifest pointing at the relative paths. claude -p's Read
tool then loads each file on demand — including image content for
vision models.

acpx /sessions path unaffected — it has its own _format_prompt_with_files.
2026-05-20 08:37:46 -07:00
..
__init__.py v0.1 — clawdforge service scaffold 2026-04-28 16:46:44 -07:00
acpx_runner.py acpx_runner: translate raw ACP JSON-RPC to SDK event shape 2026-04-29 15:52:33 -07:00
auth.py v0.1 — clawdforge service scaffold 2026-04-28 16:46:44 -07:00
config.py v0.2: multi-turn /sessions endpoints backed by ACPX 2026-04-29 06:22:55 -07:00
runner.py runner: stage attached files into per-run cwd, drop broken --files arg 2026-05-20 08:37:46 -07:00
server.py server: raise per-run timeout cap 1800s -> 7200s 2026-05-15 11:54:49 -07:00
store.py v0.2.1: optional per-session model override (Cobb wants Opus on code-work paths) 2026-04-29 12:35:33 -07:00