@yagni-app/code-staging 1.2.14-staging.2255.1 → 1.2.14-staging.2256.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -86,9 +86,17 @@ export interface TurnFacts {
|
|
|
86
86
|
* the attempt worked, for this turn (YAG-1116). Never on a plan turn.
|
|
87
87
|
*/
|
|
88
88
|
nextStepNote?: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* `new-since-last-turn.md`, as the host wrote it: on a yak's attempt, what
|
|
91
|
+
* people wrote to it and the Decisions answered since its last turn
|
|
92
|
+
* (YAG-1162). Any stage, the plan's included.
|
|
93
|
+
*/
|
|
94
|
+
newSinceLastTurn?: string | null;
|
|
89
95
|
}
|
|
90
96
|
/** The file the host writes a person's note for the next step to (`attempts/inputs.ts`). */
|
|
91
97
|
export declare const NEXT_STEP_NOTE_FILE_NAME = "next-step-note.md";
|
|
98
|
+
/** The file the host writes a yak's new messages to (`attempts/inputs.ts`, `yaks/turns.ts`). */
|
|
99
|
+
export declare const NEW_SINCE_LAST_TURN_FILE_NAME = "new-since-last-turn.md";
|
|
92
100
|
/** The one message a turn sends the session. Pure. */
|
|
93
101
|
export declare function turnMessage(facts: TurnFacts): string;
|
|
94
102
|
/** The model's own account of a turn that builds (`session-report.json`). */
|
|
@@ -114,6 +114,8 @@ function feedStage(stage) {
|
|
|
114
114
|
}
|
|
115
115
|
/** The file the host writes a person's note for the next step to (`attempts/inputs.ts`). */
|
|
116
116
|
export const NEXT_STEP_NOTE_FILE_NAME = "next-step-note.md";
|
|
117
|
+
/** The file the host writes a yak's new messages to (`attempts/inputs.ts`, `yaks/turns.ts`). */
|
|
118
|
+
export const NEW_SINCE_LAST_TURN_FILE_NAME = "new-since-last-turn.md";
|
|
117
119
|
const REPORT_CONTRACT = (outDir) => `Last, write ${join(outDir, SESSION_REPORT_FILE_NAME)} as JSON, honestly: ` +
|
|
118
120
|
'{"summary": "<what you changed, in two or three sentences>", ' +
|
|
119
121
|
'"checks": [{"name": "lint", "command": "pnpm lint", "cwd": ".", "exitCode": 0, "durationMs": 41000, ' +
|
|
@@ -155,6 +157,10 @@ const PLAN_RULES = [
|
|
|
155
157
|
export function turnMessage(facts) {
|
|
156
158
|
const at = (file) => join(facts.inputDir, file);
|
|
157
159
|
const parts = [];
|
|
160
|
+
// A yak's new messages (YAG-1162): the host's file opens with "# New since
|
|
161
|
+
// your last turn" and carries each message fenced, so the session hears
|
|
162
|
+
// them in this turn's message, ahead of the rules it ends on.
|
|
163
|
+
const newSince = facts.newSinceLastTurn?.trim();
|
|
158
164
|
if (facts.stage === "plan") {
|
|
159
165
|
if (facts.resumed && facts.sentBack) {
|
|
160
166
|
parts.push(`A person sent your plan back. What they asked is in ${at("ticket.md")}, and the plan they sent back is ${at("sent-back-plan.md")}. Plan again: keep what they did not ask to change.`);
|
|
@@ -168,6 +174,8 @@ export function turnMessage(facts) {
|
|
|
168
174
|
parts.push(`A person sent an earlier plan back: what they asked is in ${at("ticket.md")}, and that plan is ${at("sent-back-plan.md")}.`);
|
|
169
175
|
}
|
|
170
176
|
}
|
|
177
|
+
if (newSince)
|
|
178
|
+
parts.push(newSince);
|
|
171
179
|
parts.push(PLAN_RULES);
|
|
172
180
|
return parts.join("\n\n");
|
|
173
181
|
}
|
|
@@ -205,6 +213,8 @@ export function turnMessage(facts) {
|
|
|
205
213
|
const note = facts.nextStepNote?.trim();
|
|
206
214
|
if (note)
|
|
207
215
|
parts.push(note);
|
|
216
|
+
if (newSince)
|
|
217
|
+
parts.push(newSince);
|
|
208
218
|
parts.push(BUILD_RULES(facts.outDir));
|
|
209
219
|
return parts.join("\n\n");
|
|
210
220
|
}
|
|
@@ -437,6 +447,7 @@ export async function runSessionTurn(input, deps = {}) {
|
|
|
437
447
|
review: exists(join(input.inputDir, "fix-round.json")),
|
|
438
448
|
sentBack: exists(join(input.inputDir, "sent-back-plan.md")),
|
|
439
449
|
nextStepNote: input.stage === "plan" ? null : readOrNull(join(input.inputDir, NEXT_STEP_NOTE_FILE_NAME)),
|
|
450
|
+
newSinceLastTurn: readOrNull(join(input.inputDir, NEW_SINCE_LAST_TURN_FILE_NAME)),
|
|
440
451
|
});
|
|
441
452
|
const notes = [];
|
|
442
453
|
const stages = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yagni-app/code-staging",
|
|
3
|
-
"version": "1.2.14-staging.
|
|
3
|
+
"version": "1.2.14-staging.2256.1",
|
|
4
4
|
"description": "YAGNI Code: a terminal coding agent that already knows your company. One YAGNI login routes the model and grounds the agent in your team's context.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "YAGNI, Inc. <jack@yagni.app> (https://yagni.app)",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"turndown": "^7.2.4",
|
|
59
59
|
"typebox": "^1.3.15"
|
|
60
60
|
},
|
|
61
|
-
"yagniSourceSha": "
|
|
61
|
+
"yagniSourceSha": "0bf950cd40863af84b1f58af2f4cfe8c9121110b"
|
|
62
62
|
}
|