@yagni-app/code-staging 1.2.14-staging.2437.1 → 1.2.14-staging.2442.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.
|
@@ -4,8 +4,6 @@ type PlanSize = (typeof SIZES)[number];
|
|
|
4
4
|
export interface SessionTicketPath {
|
|
5
5
|
/** The plan review's rounds by the plan's own size. */
|
|
6
6
|
planReviewRounds: Record<PlanSize, number>;
|
|
7
|
-
/** The fix rounds a review may start before a person is asked. */
|
|
8
|
-
fixRoundCap: number;
|
|
9
7
|
}
|
|
10
8
|
/** The host's file as the turn reads it, or null for none, or one that is not the one-session path. */
|
|
11
9
|
export declare function sessionTicketPathOf(text: string | null): SessionTicketPath | null;
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
* `ticketPathFileOf` in `@yagni/shared`). The session holds no copy of the
|
|
6
6
|
* rule: it reads the numbers. Without the file, or with one that does not
|
|
7
7
|
* read, the turn works as it did before the path existed: the long plan,
|
|
8
|
-
* four review rounds, every review item addressed.
|
|
8
|
+
* four review rounds, every review item addressed. A file an older host
|
|
9
|
+
* wrote may still carry `fixRoundCap`: it is read past, since no fix-round
|
|
10
|
+
* cap remains (YAG-1368).
|
|
9
11
|
*/
|
|
10
12
|
import { extractPlanJson } from "./planOutput.js";
|
|
11
13
|
import { MAX_PLAN_REVIEW_ROUNDS } from "./planReview.js";
|
|
@@ -34,12 +36,9 @@ export function sessionTicketPathOf(text) {
|
|
|
34
36
|
const small = rounds(by.small);
|
|
35
37
|
const standard = rounds(by.standard);
|
|
36
38
|
const complex = rounds(by.complex);
|
|
37
|
-
const cap = file.fixRoundCap;
|
|
38
39
|
if (small === null || standard === null || complex === null)
|
|
39
40
|
return null;
|
|
40
|
-
|
|
41
|
-
return null;
|
|
42
|
-
return { planReviewRounds: { small, standard, complex }, fixRoundCap: cap };
|
|
41
|
+
return { planReviewRounds: { small, standard, complex } };
|
|
43
42
|
}
|
|
44
43
|
/** The size a plan's text gives itself in its plan-json block, or null. */
|
|
45
44
|
export function planSizeOf(planText) {
|
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.2442.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": "37f51eca2557c3da0a60b330ae1c2d46bae2ea07"
|
|
62
62
|
}
|