mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-14 10:39:32 +01:00
fix(story-mode): files written in Bash, the advisor, and honest checks, from review round 2
- Files a Bash call writes through here-documents (`cat > f <<'EOF'`, `tee`) are whole-file edits on the event: in the diff drawer, on the code page, in "N files changed". Before, a worker that wrote seven files that way drew a page with zero files changed. Labels leave the bodies out (the wire row was a wall of file text), and a relative target resolves against the transcript line's cwd unless the command changed directory first. - A caption names the part of a one-liner that decided it (`node --test`, the commit), not its first line. - The advisor (a server tool, answer encrypted in the transcript) is drawn: "Claude asks the advisor for a second opinion." It is not counted as a helper. Server web search maps to the web panel. - Checks that all pass from the start read "Build and test, N rounds. Every check passes.", not as fixing. - pytest's collection errors are counted apart: "The tests don't even load." - A result remark replaces a step announcement on its check. - A turn still open when the next prompt starts has ended; an interrupted turn is timed by its span. - The mission drawer keeps prompts up to 4000 characters. - Drawer: diff headers, titles and commands read relative to the session folder (the folder itself reads "."); a bare name under an `ls dir:` header links into that folder; the chosen answer is marked, not struck through; boards count errors. - While a question waits, the pencils say "Waiting for your answer…"; balloons start below the LIVE tag; the loop's balloon points at its verdict, above the board. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
831599a6cf
commit
ca035dd41b
7 files changed
+439
-64
No files matched your search
@@ -94,6 +94,8 @@ export interface StoryHelper {
|
||||
export interface StoryTests {
|
||||
passed: number;
|
||||
failed: number;
|
||||
/** Errors outside the tests (pytest's collection errors): the run failed although no test did. */
|
||||
errors?: number;
|
||||
}
|
||||
|
||||
export interface StoryTodo {
|
||||
@@ -129,6 +131,10 @@ export interface StoryEvent {
|
||||
output?: string;
|
||||
outputTruncated?: boolean;
|
||||
edit?: StoryEdit;
|
||||
/** Files a Bash call wrote through a here-document (`cat > f <<'EOF'`), each as a whole-file edit. */
|
||||
edits?: StoryEdit[];
|
||||
/** The part of a Bash one-liner that decided its intent (the test run, the commit), for captions. */
|
||||
headline?: string;
|
||||
helper?: StoryHelper;
|
||||
tests?: StoryTests;
|
||||
todos?: StoryTodo[];
|
||||
|
||||
Reference in new issue
Block a user