@yagni-app/code-staging 1.2.14-staging.2451.1 → 1.2.14-staging.2473.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.
- package/dist/extension/pipeline/orchestrator.js +3 -1
- package/dist/extension/pipeline/sessionLane.js +6 -2
- package/dist/extension/pipeline/stages.d.ts +6 -0
- package/dist/extension/pipeline/stages.js +9 -0
- package/dist/extension/pipeline/ticketPath.d.ts +2 -0
- package/dist/extension/pipeline/ticketPath.js +1 -0
- package/package.json +2 -2
|
@@ -169,7 +169,9 @@ export function creditExhaustionReason(r) {
|
|
|
169
169
|
}
|
|
170
170
|
if (!CREDIT_EXHAUSTION_RE.test(hay))
|
|
171
171
|
return undefined;
|
|
172
|
-
|
|
172
|
+
// "out of YAGNI credits" is the backend's marker; nothing is for sale in
|
|
173
|
+
// the app, so the act is the email.
|
|
174
|
+
return "the workspace is out of YAGNI credits (the model proxy returned 402). Email support@yagni.app for more credits, then re-run /go.";
|
|
173
175
|
}
|
|
174
176
|
/** How a reviewer is named in the round's record: its lens, or the lane's one reviewer. */
|
|
175
177
|
function reviewerName(lens) {
|
|
@@ -66,7 +66,7 @@ import { PLAN_CHANGES_RULE, parsePlanChanges, planChangeNote, } from "./planChan
|
|
|
66
66
|
import { IDLE_TIMEOUT_MESSAGE, withResilience, } from "./resilience.js";
|
|
67
67
|
import { runStage as defaultRunStage } from "./runner.js";
|
|
68
68
|
import { scrubSecrets } from "./scrubSecrets.js";
|
|
69
|
-
import { DECISIONS_READ_TOOL, PIECES_RULE, PLAN_JSON_CONTRACT, YAK_PLAN_JSON_CONTRACT, } from "./stages.js";
|
|
69
|
+
import { DECISIONS_READ_TOOL, PIECES_RULE, YAK_FOLLOW_UPS_RULE, PLAN_JSON_CONTRACT, YAK_PLAN_JSON_CONTRACT, } from "./stages.js";
|
|
70
70
|
import { planReviewRoundsFor, planSizeOf, sessionTicketPathOf, TICKET_PATH_FILE_NAME, } from "./ticketPath.js";
|
|
71
71
|
import { STAGE_WRAP_UP_GRACE_MS } from "./stageClock.js";
|
|
72
72
|
import { editsMostlyFailed } from "./events.js";
|
|
@@ -306,7 +306,11 @@ const planRules = (preview, ownPlans, path = null) => path
|
|
|
306
306
|
...(preview ? [previewRule(preview.inputDir, preview.outDir)] : []),
|
|
307
307
|
`${SHORT_PLAN_FORMAT_RULE} ${ownPlans ? SHORT_DECIDE_RULE : SHORT_QUESTION_RULE}`,
|
|
308
308
|
SHORT_PLAN_CLOSE_RULE,
|
|
309
|
-
|
|
309
|
+
[
|
|
310
|
+
YAK_PLAN_JSON_CONTRACT,
|
|
311
|
+
...(path.split ? [PIECES_RULE] : []),
|
|
312
|
+
...(path.followUps ? [YAK_FOLLOW_UPS_RULE] : []),
|
|
313
|
+
].join("\n"),
|
|
310
314
|
shortPlanStop(path, ownPlans),
|
|
311
315
|
].join("\n\n")
|
|
312
316
|
: planRulesBefore(preview, ownPlans);
|
|
@@ -112,6 +112,12 @@ export declare const YAK_PLAN_JSON_CONTRACT: string;
|
|
|
112
112
|
* reads the pieces again and decides; the session builds one change as ever.
|
|
113
113
|
*/
|
|
114
114
|
export declare const PIECES_RULE: string;
|
|
115
|
+
/**
|
|
116
|
+
* What a yak's planner is told about `followUps`, only when the host's
|
|
117
|
+
* `ticket-path.json` says so (`yaks.follow_ups`, YAG-1405). The host files each
|
|
118
|
+
* one as its own ticket when the pull request opens.
|
|
119
|
+
*/
|
|
120
|
+
export declare const YAK_FOLLOW_UPS_RULE: string;
|
|
115
121
|
/**
|
|
116
122
|
* The one-attempt lane's session (`yagni go --headless --cloud`): plan,
|
|
117
123
|
* implement, review, fix, then verify and finish, which run no model. One
|
|
@@ -291,6 +291,15 @@ export const PIECES_RULE = 'Add "pieces" only when the ticket\'s own work is two
|
|
|
291
291
|
"- Every acceptance line of the ticket belongs to exactly one piece.\n" +
|
|
292
292
|
"- Repositories are not a reason to split; a change across repositories stays one piece.\n" +
|
|
293
293
|
'- The plan\'s own "steps", "checks" and "paths" still describe the whole ticket.';
|
|
294
|
+
/**
|
|
295
|
+
* What a yak's planner is told about `followUps`, only when the host's
|
|
296
|
+
* `ticket-path.json` says so (`yaks.follow_ups`, YAG-1405). The host files each
|
|
297
|
+
* one as its own ticket when the pull request opens.
|
|
298
|
+
*/
|
|
299
|
+
export const YAK_FOLLOW_UPS_RULE = 'Add "followUps" to the plan-json for what you found outside the ticket that should be its own ticket: "followUps": [{"title": "...", "why": "...", "repository": "owner/name"}].\n' +
|
|
300
|
+
'- In each followUps entry, "title" names the problem, "why" says what is wrong and names the files, and "repository" is optional.\n' +
|
|
301
|
+
"- Never fix a followUps entry in this PR: the plan and the change stay inside the ticket.\n" +
|
|
302
|
+
"- List a few at most, and only real problems you saw in the code or the checks. Leave out taste, tidying and guesses, and leave followUps out when you found none.";
|
|
294
303
|
/**
|
|
295
304
|
* The cloud plan stage's task: the input folder the host wrote, read first,
|
|
296
305
|
* then a plan grounded in the installed checkout, inside the stage's own
|
|
@@ -6,6 +6,8 @@ export interface SessionTicketPath {
|
|
|
6
6
|
planReviewRounds: Record<PlanSize, number>;
|
|
7
7
|
/** The planner may list `pieces` (`yaks.split`, YAG-1376); absent in a file written without it. */
|
|
8
8
|
split?: boolean;
|
|
9
|
+
/** The planner lists what it found outside the ticket (`yaks.follow_ups`, YAG-1405). */
|
|
10
|
+
followUps?: boolean;
|
|
9
11
|
}
|
|
10
12
|
/** The host's file as the turn reads it, or null for none, or one that is not the one-session path. */
|
|
11
13
|
export declare function sessionTicketPathOf(text: string | null): SessionTicketPath | null;
|
|
@@ -41,6 +41,7 @@ export function sessionTicketPathOf(text) {
|
|
|
41
41
|
return {
|
|
42
42
|
planReviewRounds: { small, standard, complex },
|
|
43
43
|
...(file.split === true ? { split: true } : {}),
|
|
44
|
+
...(file.followUps === true ? { followUps: true } : {}),
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
/** The size a plan's text gives itself in its plan-json block, or null. */
|
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.2473.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": "60735b89da0d1e5ab9a2bcabf85ffe158e82c00f"
|
|
62
62
|
}
|