@osovv/vv-opencode 1.3.8 → 1.4.0
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 +8 -0
- package/README.md +42 -2
- package/dist/commands/completion.js +10 -2
- package/dist/commands/completion.js.map +1 -1
- package/dist/commands/patch-provider.d.ts +97 -1
- package/dist/commands/patch-provider.js +97 -5
- package/dist/commands/patch-provider.js.map +1 -1
- package/dist/lib/orchestration.d.ts +2 -2
- package/dist/lib/orchestration.js +31 -2
- package/dist/lib/orchestration.js.map +1 -1
- package/dist/lib/spec-lint.d.ts +71 -1
- package/dist/lib/spec-lint.js +566 -8
- package/dist/lib/spec-lint.js.map +1 -1
- package/dist/lib/vvoc-config.d.ts +3 -3
- package/dist/lib/vvoc-preset-registry.d.ts +25 -1
- package/dist/lib/vvoc-preset-registry.js +22 -2
- package/dist/lib/vvoc-preset-registry.js.map +1 -1
- package/dist/plugins/hashline-edit/index.js.map +1 -1
- package/dist/plugins/workflow/checkpoint-io.d.ts +33 -0
- package/dist/plugins/workflow/checkpoint-io.js +224 -0
- package/dist/plugins/workflow/checkpoint-io.js.map +1 -0
- package/dist/plugins/workflow/checkpoints.d.ts +182 -0
- package/dist/plugins/workflow/checkpoints.js +1067 -0
- package/dist/plugins/workflow/checkpoints.js.map +1 -0
- package/dist/plugins/workflow/delegated.d.ts +158 -0
- package/dist/plugins/workflow/delegated.js +613 -0
- package/dist/plugins/workflow/delegated.js.map +1 -0
- package/dist/plugins/workflow/index.js +368 -20
- package/dist/plugins/workflow/index.js.map +1 -1
- package/dist/plugins/workflow/persistence.d.ts +32 -3
- package/dist/plugins/workflow/persistence.js +497 -70
- package/dist/plugins/workflow/persistence.js.map +1 -1
- package/dist/plugins/workflow/repair.js +3 -1
- package/dist/plugins/workflow/repair.js.map +1 -1
- package/dist/plugins/workflow/snapshots.d.ts +59 -0
- package/dist/plugins/workflow/snapshots.js +261 -0
- package/dist/plugins/workflow/snapshots.js.map +1 -0
- package/dist/plugins/workflow/state.d.ts +20 -2
- package/dist/plugins/workflow/state.js +127 -12
- package/dist/plugins/workflow/state.js.map +1 -1
- package/dist/plugins/workflow/tooling.d.ts +45 -0
- package/dist/plugins/workflow/tooling.js +344 -12
- package/dist/plugins/workflow/tooling.js.map +1 -1
- package/dist/plugins/workflow/transitions.js +2 -2
- package/dist/plugins/workflow/transitions.js.map +1 -1
- package/dist/tui/context/analyze.js +3 -1
- package/dist/tui/context/analyze.js.map +1 -1
- package/package.json +1 -1
- package/schemas/vvoc/v3.json +5 -3
- package/templates/agents/vv-code-reviewer.md +3 -1
- package/templates/agents/vv-implementer.md +5 -2
- package/templates/agents/vv-spec-reviewer.md +3 -0
- package/templates/skills/vv-execute/SKILL.md +62 -15
- package/templates/skills/vv-plan/SKILL.md +13 -3
- package/templates/skills/vv-plan/references/plan-template.xml +45 -0
- package/templates/skills/vv-review/SKILL.md +1 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import type { DelegatedPlanRun, DelegatedRunCheckpoint } from "./checkpoints.js";
|
|
1
2
|
import type { WorkItemRecord, WorkItemStoreData } from "./state.js";
|
|
3
|
+
export declare const PERSISTED_WORKFLOW_STATE_VERSION = 2;
|
|
2
4
|
/**
|
|
3
|
-
* JSON-serializable shape of a per-session workflow state.
|
|
4
|
-
*
|
|
5
|
+
* JSON-serializable shape of a per-session workflow state. Version 1 legacy
|
|
6
|
+
* files lack planRuns; version 2 files carry delegated and plan-run state.
|
|
5
7
|
*/
|
|
6
8
|
export type PersistedWorkflowState = {
|
|
7
|
-
version: 1;
|
|
9
|
+
version: 1 | 2;
|
|
8
10
|
updatedAt: string;
|
|
9
11
|
sessionId: string;
|
|
10
12
|
nextId: number;
|
|
@@ -12,12 +14,39 @@ export type PersistedWorkflowState = {
|
|
|
12
14
|
records: WorkItemRecord[];
|
|
13
15
|
/** key -> workItemId lookup for idempotent open-by-key. */
|
|
14
16
|
keyIndex: Record<string, string>;
|
|
17
|
+
/** Version 2 only: registered delegated plan runs. */
|
|
18
|
+
planRuns?: SerializedDelegatedPlanRun[];
|
|
19
|
+
};
|
|
20
|
+
/** JSON form of one registered plan run with maps flattened to arrays. */
|
|
21
|
+
export type SerializedDelegatedPlanRun = Omit<DelegatedPlanRun, "tasks" | "checkpoints"> & {
|
|
22
|
+
tasks: Array<{
|
|
23
|
+
taskId: string;
|
|
24
|
+
workItemId: string;
|
|
25
|
+
}>;
|
|
26
|
+
checkpoints: DelegatedRunCheckpoint[];
|
|
27
|
+
};
|
|
28
|
+
export type HydratedWorkflowStateResult = {
|
|
29
|
+
status: "missing";
|
|
30
|
+
} | {
|
|
31
|
+
status: "valid";
|
|
32
|
+
data: WorkItemStoreData;
|
|
33
|
+
} | {
|
|
34
|
+
status: "invalid";
|
|
35
|
+
errors: string[];
|
|
36
|
+
};
|
|
37
|
+
export type SnapshotWorkflowStateResult = {
|
|
38
|
+
ok: true;
|
|
39
|
+
} | {
|
|
40
|
+
ok: false;
|
|
41
|
+
error: string;
|
|
15
42
|
};
|
|
16
43
|
/**
|
|
17
44
|
* Resolve the per-session workflow data directory.
|
|
18
45
|
* Path: $XDG_DATA_HOME/vvoc/workflow/<sessionId>/
|
|
19
46
|
*/
|
|
20
47
|
export declare function getWorkflowSessionDir(sessionId: string): string;
|
|
48
|
+
export declare function hydrateWorkflowStateChecked(sessionId: string): HydratedWorkflowStateResult;
|
|
21
49
|
export declare function hydrateWorkflowState(sessionId: string): WorkItemStoreData | null;
|
|
50
|
+
export declare function snapshotWorkflowStateChecked(sessionId: string, data: WorkItemStoreData): SnapshotWorkflowStateResult;
|
|
22
51
|
export declare function snapshotWorkflowState(sessionId: string, data: WorkItemStoreData): void;
|
|
23
52
|
export declare function deleteWorkflowSessionDir(sessionId: string): Promise<void>;
|