@gencode/shared 0.2.1 → 0.2.2
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/CHANGELOG.md +10 -0
- package/dist/goal.d.ts +5 -5
- package/dist/goal.d.ts.map +1 -1
- package/dist/goal.js +1 -1
- package/dist/goal.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @gencode/shared
|
|
2
2
|
|
|
3
|
+
## 0.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 75731b8: Thread goals now use the V2-lite workflow layout for newly created goals. New goals are stored under the session `goal/` directory (`goal/goal.json`, `goal/objective.md`, `goal/events.jsonl`, `goal/state.json`, `goal/plan.md`, and `goal/artifacts/`) and legacy root-level goal files are not read or migrated.
|
|
8
|
+
|
|
9
|
+
When users create or replace a goal, AIMax initializes a lightweight task plan with acceptance criteria. Goal workflow tools such as `goal_task_done`, `goal_task_blocked`, `goal_record_note`, `goal_record_exec`, `goal_record_snapshot`, and `goal_complete` now require registered evidence refs before tasks or goals can be marked complete. `get_goal` returns the workflow summary, `/goal get` shows workflow status/current task/blockers, and `update_goal(status="complete")` no longer bypasses the V2-lite evidence gate.
|
|
10
|
+
|
|
11
|
+
Goal continuation now injects the current workflow task, acceptance criteria, blocked reason, and open questions from `goal/state.json` on each continuation turn, so resumed work follows the persisted workflow state instead of relying on conversation memory alone.
|
|
12
|
+
|
|
3
13
|
## 0.2.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/goal.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Defines the cross-package contract for the lightweight thread goal system.
|
|
5
5
|
* See source/执行约束.md and artifacts/实现计划.md for design rationale.
|
|
6
6
|
*/
|
|
7
|
-
/** Maximum characters for inline objective in goal.json */
|
|
7
|
+
/** Maximum characters for inline objective in goal/goal.json */
|
|
8
8
|
export declare const MAX_GOAL_OBJECTIVE_CHARS = 4000;
|
|
9
9
|
/** Maximum continuations per single runAgent call */
|
|
10
10
|
export declare const MAX_GOAL_CONTINUATIONS_PER_RUN = 3;
|
|
@@ -20,17 +20,17 @@ export type GoalStatus = "active" | "paused" | "budget_limited" | "complete";
|
|
|
20
20
|
/**
|
|
21
21
|
* Persisted thread goal record.
|
|
22
22
|
*
|
|
23
|
-
* Stored as `{sessionDir}/goal.json`. The `objective` field is the canonical
|
|
23
|
+
* Stored as `{sessionDir}/goal/goal.json`. The `objective` field is the canonical
|
|
24
24
|
* source of truth for what the model is asked to pursue. When the objective
|
|
25
|
-
* exceeds MAX_GOAL_OBJECTIVE_CHARS, the full text is stored in
|
|
26
|
-
* `goal
|
|
25
|
+
* exceeds MAX_GOAL_OBJECTIVE_CHARS, the full text is stored in
|
|
26
|
+
* `goal/objective.md` and `objectiveRef` points to it.
|
|
27
27
|
*/
|
|
28
28
|
export interface ThreadGoal {
|
|
29
29
|
/** UUID v4; replaced on each set or replace. */
|
|
30
30
|
goalId: string;
|
|
31
31
|
/** Inline objective text (≤4000 chars) or summary when objectiveRef is set. */
|
|
32
32
|
objective: string;
|
|
33
|
-
/** Relative path to `goal
|
|
33
|
+
/** Relative path to `goal/objective.md` for objectives > MAX_GOAL_OBJECTIVE_CHARS. */
|
|
34
34
|
objectiveRef?: string;
|
|
35
35
|
/** Current status. */
|
|
36
36
|
status: GoalStatus;
|
package/dist/goal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"goal.d.ts","sourceRoot":"","sources":["../src/goal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,
|
|
1
|
+
{"version":3,"file":"goal.d.ts","sourceRoot":"","sources":["../src/goal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,gEAAgE;AAChE,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAE7C,qDAAqD;AACrD,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAEhD;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,gBAAgB,GAAG,UAAU,CAAC;AAE7E;;;;;;;GAOG;AACH,MAAM,WAAW,UAAU;IACzB,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,SAAS,EAAE,MAAM,CAAC;IAClB,sFAAsF;IACtF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sBAAsB;IACtB,MAAM,EAAE,UAAU,CAAC;IACnB,4DAA4D;IAC5D,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,gEAAgE;IAChE,UAAU,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,eAAe,EAAE,MAAM,CAAC;IACxB,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,iFAAiF;IACjF,6BAA6B,CAAC,EAAE,OAAO,CAAC;CACzC"}
|
package/dist/goal.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Defines the cross-package contract for the lightweight thread goal system.
|
|
5
5
|
* See source/执行约束.md and artifacts/实现计划.md for design rationale.
|
|
6
6
|
*/
|
|
7
|
-
/** Maximum characters for inline objective in goal.json */
|
|
7
|
+
/** Maximum characters for inline objective in goal/goal.json */
|
|
8
8
|
export const MAX_GOAL_OBJECTIVE_CHARS = 4000;
|
|
9
9
|
/** Maximum continuations per single runAgent call */
|
|
10
10
|
export const MAX_GOAL_CONTINUATIONS_PER_RUN = 3;
|
package/dist/goal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"goal.js","sourceRoot":"","sources":["../src/goal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,
|
|
1
|
+
{"version":3,"file":"goal.js","sourceRoot":"","sources":["../src/goal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,CAAC;AAE7C,qDAAqD;AACrD,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC"}
|