@osovv/vv-opencode 1.4.5 → 1.6.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 +23 -0
- package/README.md +47 -16
- package/dist/commands/patch-provider.d.ts +5 -5
- package/dist/commands/patch-provider.js +10 -6
- package/dist/commands/patch-provider.js.map +1 -1
- package/dist/lib/agent-tool-catalog.d.ts +144 -0
- package/dist/lib/agent-tool-catalog.js +2551 -0
- package/dist/lib/agent-tool-catalog.js.map +1 -0
- package/dist/lib/agent-tool-contract.d.ts +200 -0
- package/dist/lib/agent-tool-contract.js +407 -0
- package/dist/lib/agent-tool-contract.js.map +1 -0
- package/dist/lib/opencode/agent-registrations.d.ts +33 -0
- package/dist/lib/opencode/agent-registrations.js +469 -0
- package/dist/lib/opencode/agent-registrations.js.map +1 -0
- package/dist/lib/opencode/inspection.d.ts +84 -0
- package/dist/lib/opencode/inspection.js +367 -0
- package/dist/lib/opencode/inspection.js.map +1 -0
- package/dist/lib/opencode/model-overrides.d.ts +19 -0
- package/dist/lib/opencode/model-overrides.js +221 -0
- package/dist/lib/opencode/model-overrides.js.map +1 -0
- package/dist/lib/opencode/paths.d.ts +21 -0
- package/dist/lib/opencode/paths.js +62 -0
- package/dist/lib/opencode/paths.js.map +1 -0
- package/dist/lib/opencode/plugin-registration.d.ts +17 -0
- package/dist/lib/opencode/plugin-registration.js +210 -0
- package/dist/lib/opencode/plugin-registration.js.map +1 -0
- package/dist/lib/opencode/shared-utils.d.ts +30 -0
- package/dist/lib/opencode/shared-utils.js +183 -0
- package/dist/lib/opencode/shared-utils.js.map +1 -0
- package/dist/lib/opencode/vvoc-config-io.d.ts +9 -0
- package/dist/lib/opencode/vvoc-config-io.js +58 -0
- package/dist/lib/opencode/vvoc-config-io.js.map +1 -0
- package/dist/lib/opencode.d.ts +15 -174
- package/dist/lib/opencode.js +19 -1387
- package/dist/lib/opencode.js.map +1 -1
- package/dist/lib/spec-lint/cross-file-rules.d.ts +2 -0
- package/dist/lib/spec-lint/cross-file-rules.js +33 -0
- package/dist/lib/spec-lint/cross-file-rules.js.map +1 -0
- package/dist/lib/spec-lint/delegated-extraction.d.ts +8 -0
- package/dist/lib/spec-lint/delegated-extraction.js +112 -0
- package/dist/lib/spec-lint/delegated-extraction.js.map +1 -0
- package/dist/lib/spec-lint/lint.d.ts +7 -0
- package/dist/lib/spec-lint/lint.js +92 -0
- package/dist/lib/spec-lint/lint.js.map +1 -0
- package/dist/lib/spec-lint/parser.d.ts +101 -0
- package/dist/lib/spec-lint/parser.js +482 -0
- package/dist/lib/spec-lint/parser.js.map +1 -0
- package/dist/lib/spec-lint/plan-rules.d.ts +38 -0
- package/dist/lib/spec-lint/plan-rules.js +745 -0
- package/dist/lib/spec-lint/plan-rules.js.map +1 -0
- package/dist/lib/spec-lint/spec-rules.d.ts +8 -0
- package/dist/lib/spec-lint/spec-rules.js +188 -0
- package/dist/lib/spec-lint/spec-rules.js.map +1 -0
- package/dist/lib/spec-lint.d.ts +4 -63
- package/dist/lib/spec-lint.js +13 -1505
- package/dist/lib/spec-lint.js.map +1 -1
- package/dist/lib/vvoc-preset-registry.d.ts +7 -7
- package/dist/lib/vvoc-preset-registry.js +8 -8
- package/dist/lib/vvoc-preset-registry.js.map +1 -1
- package/dist/lib/workflow-contract.d.ts +12 -0
- package/dist/lib/workflow-contract.js +71 -18
- package/dist/lib/workflow-contract.js.map +1 -1
- package/dist/plugins/hashline-edit/index.js +102 -97
- package/dist/plugins/hashline-edit/index.js.map +1 -1
- package/dist/plugins/hashline-edit/normalize-edits.d.ts +2 -8
- package/dist/plugins/hashline-edit/normalize-edits.js +32 -17
- package/dist/plugins/hashline-edit/normalize-edits.js.map +1 -1
- package/dist/plugins/hashline-edit/schemas.d.ts +246 -0
- package/dist/plugins/hashline-edit/schemas.js +659 -0
- package/dist/plugins/hashline-edit/schemas.js.map +1 -0
- package/dist/plugins/hashline-edit/str-replace-editor.d.ts +6 -17
- package/dist/plugins/hashline-edit/str-replace-editor.js +19 -21
- package/dist/plugins/hashline-edit/str-replace-editor.js.map +1 -1
- package/dist/plugins/hashline-edit/tool-description.d.ts +1 -0
- package/dist/plugins/hashline-edit/tool-description.js +20 -4
- package/dist/plugins/hashline-edit/tool-description.js.map +1 -1
- package/dist/plugins/web-tools/fetch-service.d.ts +8 -5
- package/dist/plugins/web-tools/fetch-service.js +30 -45
- package/dist/plugins/web-tools/fetch-service.js.map +1 -1
- package/dist/plugins/web-tools/index.js +23 -5
- package/dist/plugins/web-tools/index.js.map +1 -1
- package/dist/plugins/web-tools/schemas.d.ts +469 -0
- package/dist/plugins/web-tools/schemas.js +523 -0
- package/dist/plugins/web-tools/schemas.js.map +1 -0
- package/dist/plugins/web-tools/search-service.d.ts +6 -3
- package/dist/plugins/web-tools/search-service.js +24 -29
- package/dist/plugins/web-tools/search-service.js.map +1 -1
- package/dist/plugins/workflow/authority.d.ts +6 -0
- package/dist/plugins/workflow/authority.js +45 -10
- package/dist/plugins/workflow/authority.js.map +1 -1
- package/dist/plugins/workflow/authorization.d.ts +30 -0
- package/dist/plugins/workflow/authorization.js +147 -0
- package/dist/plugins/workflow/authorization.js.map +1 -0
- package/dist/plugins/workflow/checkpoints.d.ts +41 -2
- package/dist/plugins/workflow/checkpoints.js +176 -47
- package/dist/plugins/workflow/checkpoints.js.map +1 -1
- package/dist/plugins/workflow/delegated.d.ts +15 -1
- package/dist/plugins/workflow/delegated.js +65 -35
- package/dist/plugins/workflow/delegated.js.map +1 -1
- package/dist/plugins/workflow/execution.d.ts +15 -30
- package/dist/plugins/workflow/execution.js +133 -33
- package/dist/plugins/workflow/execution.js.map +1 -1
- package/dist/plugins/workflow/index.js +197 -435
- package/dist/plugins/workflow/index.js.map +1 -1
- package/dist/plugins/workflow/input-validation.d.ts +48 -0
- package/dist/plugins/workflow/input-validation.js +536 -0
- package/dist/plugins/workflow/input-validation.js.map +1 -0
- package/dist/plugins/workflow/inspection.d.ts +60 -0
- package/dist/plugins/workflow/inspection.js +316 -0
- package/dist/plugins/workflow/inspection.js.map +1 -0
- package/dist/plugins/workflow/protocol.d.ts +2 -0
- package/dist/plugins/workflow/protocol.js +26 -4
- package/dist/plugins/workflow/protocol.js.map +1 -1
- package/dist/plugins/workflow/recovery.d.ts +18 -0
- package/dist/plugins/workflow/recovery.js +217 -0
- package/dist/plugins/workflow/recovery.js.map +1 -0
- package/dist/plugins/workflow/repair.d.ts +1 -1
- package/dist/plugins/workflow/repair.js +9 -10
- package/dist/plugins/workflow/repair.js.map +1 -1
- package/dist/plugins/workflow/results.d.ts +2566 -0
- package/dist/plugins/workflow/results.js +1111 -0
- package/dist/plugins/workflow/results.js.map +1 -0
- package/dist/plugins/workflow/schemas.d.ts +398 -0
- package/dist/plugins/workflow/schemas.js +399 -0
- package/dist/plugins/workflow/schemas.js.map +1 -0
- package/dist/plugins/workflow/state.d.ts +3 -2
- package/dist/plugins/workflow/state.js +15 -8
- package/dist/plugins/workflow/state.js.map +1 -1
- package/dist/plugins/workflow/system-instruction.md +17 -1
- package/dist/plugins/workflow/tooling.d.ts +11 -82
- package/dist/plugins/workflow/tooling.js +478 -461
- package/dist/plugins/workflow/tooling.js.map +1 -1
- package/dist/plugins/workflow/transactions.d.ts +13 -0
- package/dist/plugins/workflow/transactions.js +13 -3
- package/dist/plugins/workflow/transactions.js.map +1 -1
- package/package.json +6 -3
- package/schemas/vvoc/v3.json +1 -1
- package/templates/agents/vv-code-reviewer.md +13 -4
- package/templates/agents/vv-implementer.md +16 -9
- package/templates/agents/vv-spec-reviewer.md +13 -4
- package/templates/skills/vv-execute/SKILL.md +3 -3
- package/templates/skills/vv-execute/references/tool-contracts.md +1750 -0
- package/templates/skills/vv-review/SKILL.md +1 -1
|
@@ -2,6 +2,8 @@ import { type WorkItemStore } from "./state.js";
|
|
|
2
2
|
import { type LookupRecoveryUserMessage } from "./delegated.js";
|
|
3
3
|
import { type AuthorityMessageSnapshot } from "./authority.js";
|
|
4
4
|
import type { LoadedDelegatedPlan } from "./checkpoint-io.js";
|
|
5
|
+
import type { CheckpointArgs, CloseArgs, DecideArgs, ListArgs } from "./schemas.js";
|
|
6
|
+
export type { CheckpointArgs, DecideArgs } from "./schemas.js";
|
|
5
7
|
export type WorkflowToolContext = {
|
|
6
8
|
sessionId: string;
|
|
7
9
|
/** Trusted absolute workspace root; required for generic execution registration. */
|
|
@@ -22,24 +24,14 @@ export interface DelegatedControlOptions {
|
|
|
22
24
|
messageId: string;
|
|
23
25
|
}) => Promise<AuthorityMessageSnapshot | undefined>;
|
|
24
26
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/** Generic execution task-contract fields. */
|
|
34
|
-
taskId?: unknown;
|
|
35
|
-
goal?: unknown;
|
|
36
|
-
acceptanceCriteria?: unknown;
|
|
37
|
-
verification?: unknown;
|
|
38
|
-
dependsOn?: unknown;
|
|
39
|
-
blockedBy?: unknown;
|
|
40
|
-
};
|
|
41
|
-
type OpenArgs = {
|
|
42
|
-
items: OpenInputItem[];
|
|
27
|
+
/**
|
|
28
|
+
* work_item_open wrapper input. Deliberately looser than the registered
|
|
29
|
+
* schema shape in schemas.ts: this wrapper is the defensive validator for
|
|
30
|
+
* partially-shaped caller input, so item and descriptor fields stay unknown
|
|
31
|
+
* here and are rejected by validateWorkflowToolInput before any dispatch.
|
|
32
|
+
*/
|
|
33
|
+
type OpenToolInput = {
|
|
34
|
+
items: unknown;
|
|
43
35
|
/** Generic execution descriptor; mutually exclusive with runId. */
|
|
44
36
|
execution?: unknown;
|
|
45
37
|
/** Append tasks to an existing generic execution. */
|
|
@@ -47,69 +39,7 @@ type OpenArgs = {
|
|
|
47
39
|
amendmentId?: unknown;
|
|
48
40
|
rationale?: unknown;
|
|
49
41
|
};
|
|
50
|
-
|
|
51
|
-
includeClosed?: boolean;
|
|
52
|
-
};
|
|
53
|
-
type CloseArgs = {
|
|
54
|
-
workItemId: string;
|
|
55
|
-
};
|
|
56
|
-
export type DecideArgs = {
|
|
57
|
-
workItemId: string;
|
|
58
|
-
attempt: number;
|
|
59
|
-
decision: "accept" | "request_changes" | "rework" | "recover";
|
|
60
|
-
/** Required for accept, request_changes, and rework; unused by recover. */
|
|
61
|
-
rationale?: string;
|
|
62
|
-
/** Required for accept and request_changes; unused by rework and recover. */
|
|
63
|
-
evidence?: string[];
|
|
64
|
-
concernsDisposition?: string;
|
|
65
|
-
runId?: string;
|
|
66
|
-
checkpointId?: string;
|
|
67
|
-
/** Recover-only bounded diagnosis, changed condition, and verification references. */
|
|
68
|
-
diagnosis?: string;
|
|
69
|
-
changedCondition?: string;
|
|
70
|
-
verification?: string[];
|
|
71
|
-
recoveryId?: string;
|
|
72
|
-
/** Recover-only fresh root-user message authorizing one further unit. */
|
|
73
|
-
userMessageId?: string;
|
|
74
|
-
/** Recover-only recorded advance authority authorizing one further unit. */
|
|
75
|
-
authorityId?: string;
|
|
76
|
-
};
|
|
77
|
-
export type CheckpointArgs = {
|
|
78
|
-
action: "register" | "start" | "verify" | "recover" | "review" | "bind" | "complete" | "amend" | "authorize" | "record_approval" | "revoke_authority";
|
|
79
|
-
planPath?: string;
|
|
80
|
-
runId?: string;
|
|
81
|
-
checkpointId?: string;
|
|
82
|
-
complete?: boolean;
|
|
83
|
-
/** Recover-only bounded diagnosis, changed condition, and verification references. */
|
|
84
|
-
diagnosis?: string;
|
|
85
|
-
changedCondition?: string;
|
|
86
|
-
verification?: string[];
|
|
87
|
-
recoveryId?: string;
|
|
88
|
-
/** Recover-only fresh root-user message authorizing one further generation. */
|
|
89
|
-
userMessageId?: string;
|
|
90
|
-
/** Generic checkpoint append/registration payloads. */
|
|
91
|
-
checkpoints?: unknown;
|
|
92
|
-
tasks?: unknown;
|
|
93
|
-
amendmentId?: string;
|
|
94
|
-
rationale?: string;
|
|
95
|
-
startFingerprint?: string;
|
|
96
|
-
/** Generic reviewer result recording (status is read from the linked round). */
|
|
97
|
-
reviewer?: string;
|
|
98
|
-
/** Advance authority inputs. */
|
|
99
|
-
authorityId?: string;
|
|
100
|
-
messageId?: string;
|
|
101
|
-
approvalId?: string;
|
|
102
|
-
stage?: string;
|
|
103
|
-
artifactPath?: string;
|
|
104
|
-
artifactSha256?: string;
|
|
105
|
-
revocationId?: string;
|
|
106
|
-
/** Authority scope inputs. */
|
|
107
|
-
stages?: unknown;
|
|
108
|
-
decisionScope?: string;
|
|
109
|
-
fileBoundary?: unknown;
|
|
110
|
-
reservedStops?: unknown;
|
|
111
|
-
};
|
|
112
|
-
export declare function createWorkItemOpenTool(store: WorkItemStore): WorkflowToolDefinition<OpenArgs, Record<string, unknown>>;
|
|
42
|
+
export declare function createWorkItemOpenTool(store: WorkItemStore): WorkflowToolDefinition<OpenToolInput, Record<string, unknown>>;
|
|
113
43
|
export declare function createWorkItemListTool(store: WorkItemStore): WorkflowToolDefinition<ListArgs, Record<string, unknown>>;
|
|
114
44
|
export declare function createWorkItemCloseTool(store: WorkItemStore): WorkflowToolDefinition<CloseArgs, Record<string, unknown>>;
|
|
115
45
|
export declare function createWorkItemDecideTool(store: WorkItemStore, options?: DelegatedControlOptions): WorkflowToolDefinition<DecideArgs, Promise<Record<string, unknown>>>;
|
|
@@ -145,4 +75,3 @@ export type WorkCheckpointExecuteContext = WorkflowToolContext & {
|
|
|
145
75
|
}>;
|
|
146
76
|
};
|
|
147
77
|
export declare function createWorkCheckpointTool(store: WorkItemStore, options?: DelegatedControlOptions): WorkflowToolDefinition<CheckpointArgs, Promise<Record<string, unknown>>>;
|
|
148
|
-
export {};
|