opencode-swarm 7.155.0 → 7.156.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.
Files changed (70) hide show
  1. package/dist/cli/{coder-settlement-2kdtysrg.js → coder-settlement-jm7024zm.js} +3 -3
  2. package/dist/cli/{config-doctor-s6p9aqfv.js → config-doctor-q9v8yscr.js} +2 -2
  3. package/dist/cli/{core-ev2ebc4v.js → core-ev3bn503.js} +1 -1
  4. package/dist/cli/{curator-adp0dsv4.js → curator-dnjf9ser.js} +22 -22
  5. package/dist/cli/{curator-llm-factory-kd8v16jj.js → curator-llm-factory-cnatbky1.js} +22 -22
  6. package/dist/cli/{dispatch-w0rzasz3.js → dispatch-7r46tfr9.js} +10 -8
  7. package/dist/cli/{evidence-summary-service-kpjpd86j.js → evidence-summary-service-5drv65qh.js} +8 -8
  8. package/dist/cli/{gate-evidence-etbcms2v.js → gate-evidence-dcyvst7g.js} +2 -2
  9. package/dist/cli/{guardrail-explain-wqb5h7kk.js → guardrail-explain-z8f6qhz2.js} +23 -23
  10. package/dist/cli/{guardrail-log-614g1pta.js → guardrail-log-zwec6ann.js} +3 -3
  11. package/dist/cli/{guardrail-reset-0wdj53cp.js → guardrail-reset-ga6e11r9.js} +22 -22
  12. package/dist/cli/{hashing-mjwn6j4y.js → hashing-r4hbav6j.js} +1 -1
  13. package/dist/cli/{hive-promoter-b1wv52fs.js → hive-promoter-mpez5tqh.js} +22 -22
  14. package/dist/cli/{index-ketfp4rv.js → index-00hyhg47.js} +3 -3
  15. package/dist/cli/{index-dw2q720x.js → index-164c64z8.js} +2 -2
  16. package/dist/cli/{index-qzqpq75z.js → index-17h6ewqp.js} +43 -24
  17. package/dist/cli/{index-kyc2c7hq.js → index-4m3j9q9z.js} +2 -2
  18. package/dist/cli/{index-26cvxrym.js → index-5r3zrw81.js} +1 -1
  19. package/dist/cli/{index-34wn2ztk.js → index-5w87j6j4.js} +21 -3
  20. package/dist/cli/{index-mm7ase9k.js → index-68098cfj.js} +5 -1
  21. package/dist/cli/{index-kgdbtwfm.js → index-6g6qwr8z.js} +5 -5
  22. package/dist/cli/{index-qj9jrjvr.js → index-98j6z038.js} +3 -3
  23. package/dist/cli/{index-e90g4dsw.js → index-9n555qz4.js} +1 -1
  24. package/dist/cli/{index-79qymsxf.js → index-b91qwpms.js} +1 -1
  25. package/dist/cli/{index-ctsct3hy.js → index-dfmr6pj5.js} +4 -4
  26. package/dist/cli/{index-t3xqpece.js → index-fd7wj6fy.js} +2 -2
  27. package/dist/cli/{index-caqe8x14.js → index-fpg4tzf7.js} +1 -1
  28. package/dist/cli/{index-veajr5x7.js → index-g37454vj.js} +1 -1
  29. package/dist/cli/{index-c9nabqzd.js → index-gthnsbzf.js} +1 -1
  30. package/dist/cli/{index-x9tbe9v7.js → index-kxk8cnx7.js} +2 -2
  31. package/dist/cli/{index-zvp68qx6.js → index-mdypz60w.js} +1 -1
  32. package/dist/cli/{index-2gfe61qp.js → index-ppx8bnzd.js} +3685 -881
  33. package/dist/cli/{index-wwv3cbv1.js → index-q2khkey7.js} +4 -4
  34. package/dist/cli/{index-xn23xnnk.js → index-sfdg1xg5.js} +3 -3
  35. package/dist/cli/{index-rb4t72we.js → index-sm2t1awr.js} +1 -1
  36. package/dist/cli/{index-y8552snf.js → index-txdagbh7.js} +6 -1
  37. package/dist/cli/{index-c590qxts.js → index-wn0xm2e8.js} +1 -1
  38. package/dist/cli/{index-spbxf9vn.js → index-za6bb2fd.js} +1 -1
  39. package/dist/cli/{index-egnpzfe3.js → index-zdgdf0e9.js} +3 -3
  40. package/dist/cli/index.js +22 -22
  41. package/dist/cli/{knowledge-escalator-z09aqvfe.js → knowledge-escalator-cq4e6v2j.js} +6 -6
  42. package/dist/cli/{knowledge-events-03f1rwm8.js → knowledge-events-sr5fqqaq.js} +4 -4
  43. package/dist/cli/{knowledge-store-sn28k13f.js → knowledge-store-2dww3dqz.js} +1 -1
  44. package/dist/cli/{knowledge-validator-rwrt3yja.js → knowledge-validator-yprsj4ye.js} +2 -2
  45. package/dist/cli/{pending-delegations-qe16vfrj.js → pending-delegations-7qvag076.js} +1 -1
  46. package/dist/cli/{runner-k1rkbjm8.js → runner-gheaxd5r.js} +3 -3
  47. package/dist/cli/{scan-cursor-h3mfzjc9.js → scan-cursor-6awybk8b.js} +2 -2
  48. package/dist/cli/{schema-c37h5xw4.js → schema-bf3smw7k.js} +5 -1
  49. package/dist/cli/{scope-persistence-35z42pj5.js → scope-persistence-kc42c6ph.js} +4 -4
  50. package/dist/cli/{skill-generator-60px2mvb.js → skill-generator-9k1ztt7c.js} +7 -7
  51. package/dist/cli/{worktree-collision-ownership-2pc20ypq.js → worktree-collision-ownership-ej10dhwe.js} +1 -1
  52. package/dist/cli/{worktree-isolation-w4yamc3b.js → worktree-isolation-r7qqy6ca.js} +22 -22
  53. package/dist/commands/command-dispatch.d.ts +2 -1
  54. package/dist/commands/harness.d.ts +14 -0
  55. package/dist/commands/index.d.ts +3 -1
  56. package/dist/commands/registry.d.ts +114 -1
  57. package/dist/config/schema.d.ts +34 -0
  58. package/dist/harness/contracts.d.ts +492 -0
  59. package/dist/harness/factory.d.ts +72 -0
  60. package/dist/harness/hash.d.ts +4 -0
  61. package/dist/harness/index.d.ts +6 -0
  62. package/dist/harness/patch.d.ts +3 -0
  63. package/dist/harness/public-api.d.ts +105 -0
  64. package/dist/harness/source-candidate.d.ts +45 -0
  65. package/dist/harness/store.d.ts +256 -0
  66. package/dist/index.d.ts +2 -0
  67. package/dist/index.js +256 -234
  68. package/dist/lang/manifest-files.d.ts +25 -0
  69. package/dist/security/write-authority.d.ts +2 -1
  70. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import type { AgentDefinition } from '../agents/index.js';
2
- import type { AutoReviewConfig } from '../config/schema.js';
2
+ import type { AutoReviewConfig, PluginConfig } from '../config/schema.js';
3
3
  import type { EvaluationModelDispatcher } from '../evaluation/model-dispatcher.js';
4
4
  import type { ReviewModelDispatcher } from '../review/contracts.js';
5
5
  import type { ReviewAgentModelRegistry } from '../review/runtime.js';
@@ -14,6 +14,7 @@ export type CommandContext = {
14
14
  args: string[];
15
15
  sessionID: string;
16
16
  agents: Record<string, AgentDefinition>;
17
+ config?: PluginConfig;
17
18
  packageRoot?: string;
18
19
  /**
19
20
  * Dispatch path identifier. Issue #890: forensic audit trail for
@@ -73,6 +74,118 @@ export type CommandEntry = {
73
74
  toolNoArgs?: boolean;
74
75
  };
75
76
  export declare const COMMAND_REGISTRY: {
77
+ readonly 'blueprint validate': {
78
+ readonly handler: (ctx: CommandContext) => Promise<string>;
79
+ readonly description: "Validate a declarative harness blueprint or atomic blueprint patch";
80
+ readonly args: "<project-relative-json>";
81
+ readonly category: "utility";
82
+ readonly toolPolicy: "none";
83
+ };
84
+ readonly 'blueprint current': {
85
+ readonly handler: (ctx: CommandContext) => Promise<string>;
86
+ readonly description: "Show the ledger-derived current harness blueprint projection";
87
+ readonly args: "";
88
+ readonly category: "utility";
89
+ readonly toolPolicy: "none";
90
+ };
91
+ readonly 'blueprint history': {
92
+ readonly handler: (ctx: CommandContext) => Promise<string>;
93
+ readonly description: "Show bounded hash-verified harness version history";
94
+ readonly args: "[--limit <1..100>]";
95
+ readonly category: "utility";
96
+ readonly toolPolicy: "none";
97
+ };
98
+ readonly 'blueprint diff': {
99
+ readonly handler: (ctx: CommandContext) => Promise<string>;
100
+ readonly description: "Compare two stored harness blueprint versions";
101
+ readonly args: "<from-version> <to-version>";
102
+ readonly category: "utility";
103
+ readonly toolPolicy: "none";
104
+ };
105
+ readonly 'blueprint export': {
106
+ readonly handler: (ctx: CommandContext) => Promise<string>;
107
+ readonly description: "Export a canonical stored harness blueprint";
108
+ readonly args: "[version]";
109
+ readonly category: "utility";
110
+ readonly toolPolicy: "none";
111
+ };
112
+ readonly 'harness candidate validate': {
113
+ readonly handler: (ctx: CommandContext) => Promise<string>;
114
+ readonly description: "Validate an inert harness candidate manifest";
115
+ readonly args: "<project-relative-json>";
116
+ readonly category: "utility";
117
+ readonly toolPolicy: "none";
118
+ };
119
+ readonly 'harness candidate show': {
120
+ readonly handler: (ctx: CommandContext) => Promise<string>;
121
+ readonly description: "Show bounded harness candidate metadata without raw patch content";
122
+ readonly args: "<candidate-id>";
123
+ readonly category: "utility";
124
+ readonly toolPolicy: "none";
125
+ };
126
+ readonly 'harness candidate diff': {
127
+ readonly handler: (ctx: CommandContext) => Promise<string>;
128
+ readonly description: "Show candidate file and blueprint-change metadata without raw patch content";
129
+ readonly args: "<candidate-id>";
130
+ readonly category: "utility";
131
+ readonly toolPolicy: "none";
132
+ };
133
+ readonly 'blueprint-validate': {
134
+ readonly handler: (ctx: CommandContext) => Promise<string>;
135
+ readonly description: "TUI shortcut alias for blueprint validate";
136
+ readonly category: "utility";
137
+ readonly aliasOf: "blueprint validate";
138
+ readonly deprecated: true;
139
+ };
140
+ readonly 'blueprint-current': {
141
+ readonly handler: (ctx: CommandContext) => Promise<string>;
142
+ readonly description: "TUI shortcut alias for blueprint current";
143
+ readonly category: "utility";
144
+ readonly aliasOf: "blueprint current";
145
+ readonly deprecated: true;
146
+ };
147
+ readonly 'blueprint-history': {
148
+ readonly handler: (ctx: CommandContext) => Promise<string>;
149
+ readonly description: "TUI shortcut alias for blueprint history";
150
+ readonly category: "utility";
151
+ readonly aliasOf: "blueprint history";
152
+ readonly deprecated: true;
153
+ };
154
+ readonly 'blueprint-diff': {
155
+ readonly handler: (ctx: CommandContext) => Promise<string>;
156
+ readonly description: "TUI shortcut alias for blueprint diff";
157
+ readonly category: "utility";
158
+ readonly aliasOf: "blueprint diff";
159
+ readonly deprecated: true;
160
+ };
161
+ readonly 'blueprint-export': {
162
+ readonly handler: (ctx: CommandContext) => Promise<string>;
163
+ readonly description: "TUI shortcut alias for blueprint export";
164
+ readonly category: "utility";
165
+ readonly aliasOf: "blueprint export";
166
+ readonly deprecated: true;
167
+ };
168
+ readonly 'harness-candidate-validate': {
169
+ readonly handler: (ctx: CommandContext) => Promise<string>;
170
+ readonly description: "TUI shortcut alias for harness candidate validate";
171
+ readonly category: "utility";
172
+ readonly aliasOf: "harness candidate validate";
173
+ readonly deprecated: true;
174
+ };
175
+ readonly 'harness-candidate-show': {
176
+ readonly handler: (ctx: CommandContext) => Promise<string>;
177
+ readonly description: "TUI shortcut alias for harness candidate show";
178
+ readonly category: "utility";
179
+ readonly aliasOf: "harness candidate show";
180
+ readonly deprecated: true;
181
+ };
182
+ readonly 'harness-candidate-diff': {
183
+ readonly handler: (ctx: CommandContext) => Promise<string>;
184
+ readonly description: "TUI shortcut alias for harness candidate diff";
185
+ readonly category: "utility";
186
+ readonly aliasOf: "harness candidate diff";
187
+ readonly deprecated: true;
188
+ };
76
189
  readonly 'acknowledge-spec-drift': {
77
190
  readonly handler: (ctx: CommandContext) => Promise<string>;
78
191
  readonly description: "Acknowledge that the spec has drifted from the plan and suppress further warnings";
@@ -1003,6 +1003,27 @@ export declare const SkillPropagationConfigSchema: z.ZodObject<{
1003
1003
  audiences: z.ZodDefault<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
1004
1004
  }, z.core.$strip>;
1005
1005
  export type SkillPropagationConfig = z.infer<typeof SkillPropagationConfigSchema>;
1006
+ /**
1007
+ * Declarative HarnessOpt mutation policy (issue #1825).
1008
+ *
1009
+ * This block is consumed only by explicit harness API/command calls. It does
1010
+ * not enable activation, optimization, init-time scans, or candidate execution.
1011
+ */
1012
+ export declare const HarnessEvolutionConfigSchema: z.ZodObject<{
1013
+ source_allowlist: z.ZodDefault<z.ZodArray<z.ZodString>>;
1014
+ extra_protected_paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
1015
+ max_patch_bytes: z.ZodDefault<z.ZodNumber>;
1016
+ max_files: z.ZodDefault<z.ZodNumber>;
1017
+ max_file_bytes: z.ZodDefault<z.ZodNumber>;
1018
+ max_total_bytes: z.ZodDefault<z.ZodNumber>;
1019
+ max_changed_lines: z.ZodDefault<z.ZodNumber>;
1020
+ max_versions: z.ZodDefault<z.ZodNumber>;
1021
+ max_inactive_candidates: z.ZodDefault<z.ZodNumber>;
1022
+ max_replay_records: z.ZodDefault<z.ZodNumber>;
1023
+ max_output_bytes: z.ZodDefault<z.ZodNumber>;
1024
+ }, z.core.$strict>;
1025
+ export type HarnessEvolutionConfig = z.infer<typeof HarnessEvolutionConfigSchema>;
1026
+ export declare const DEFAULT_HARNESS_EVOLUTION_CONFIG: HarnessEvolutionConfig;
1006
1027
  export declare const SkillImproverConfigSchema: z.ZodObject<{
1007
1028
  enabled: z.ZodDefault<z.ZodBoolean>;
1008
1029
  model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -2516,6 +2537,19 @@ export declare const PluginConfigSchema: z.ZodObject<{
2516
2537
  }>>;
2517
2538
  allow_deterministic_fallback: z.ZodDefault<z.ZodBoolean>;
2518
2539
  }, z.core.$strip>>;
2540
+ harness_evolution: z.ZodOptional<z.ZodObject<{
2541
+ source_allowlist: z.ZodDefault<z.ZodArray<z.ZodString>>;
2542
+ extra_protected_paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
2543
+ max_patch_bytes: z.ZodDefault<z.ZodNumber>;
2544
+ max_files: z.ZodDefault<z.ZodNumber>;
2545
+ max_file_bytes: z.ZodDefault<z.ZodNumber>;
2546
+ max_total_bytes: z.ZodDefault<z.ZodNumber>;
2547
+ max_changed_lines: z.ZodDefault<z.ZodNumber>;
2548
+ max_versions: z.ZodDefault<z.ZodNumber>;
2549
+ max_inactive_candidates: z.ZodDefault<z.ZodNumber>;
2550
+ max_replay_records: z.ZodDefault<z.ZodNumber>;
2551
+ max_output_bytes: z.ZodDefault<z.ZodNumber>;
2552
+ }, z.core.$strict>>;
2519
2553
  spec_writer: z.ZodOptional<z.ZodObject<{
2520
2554
  enabled: z.ZodDefault<z.ZodBoolean>;
2521
2555
  model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -0,0 +1,492 @@
1
+ import { z } from 'zod';
2
+ declare const RiskTierSchema: z.ZodEnum<{
3
+ low: "low";
4
+ medium: "medium";
5
+ high: "high";
6
+ }>;
7
+ export declare const HarnessIdentifierSchema: z.ZodString;
8
+ export declare const HarnessSha256Schema: z.ZodString;
9
+ export declare const HarnessRelativePathSchema: z.ZodString;
10
+ export declare const HarnessRiskTierSchema: z.ZodEnum<{
11
+ low: "low";
12
+ medium: "medium";
13
+ high: "high";
14
+ }>;
15
+ declare const PromptArtifactProvenanceV1Schema: z.ZodObject<{
16
+ source: z.ZodLiteral<"candidate">;
17
+ origin: z.ZodString;
18
+ }, z.core.$strict>;
19
+ export type PromptArtifactProvenanceV1 = z.infer<typeof PromptArtifactProvenanceV1Schema>;
20
+ export declare const PromptArtifactV1Schema: z.ZodObject<{
21
+ v: z.ZodLiteral<1>;
22
+ promptId: z.ZodString;
23
+ candidateId: z.ZodString;
24
+ sha256: z.ZodString;
25
+ bytes: z.ZodNumber;
26
+ mediaType: z.ZodLiteral<"text/plain; charset=utf-8">;
27
+ content: z.ZodString;
28
+ provenance: z.ZodObject<{
29
+ source: z.ZodLiteral<"candidate">;
30
+ origin: z.ZodString;
31
+ }, z.core.$strict>;
32
+ }, z.core.$strict>;
33
+ export type PromptArtifactV1 = z.infer<typeof PromptArtifactV1Schema>;
34
+ export declare const PromptBindingV1Schema: z.ZodObject<{
35
+ v: z.ZodLiteral<1>;
36
+ promptId: z.ZodString;
37
+ ref: z.ZodString;
38
+ sha256: z.ZodString;
39
+ }, z.core.$strict>;
40
+ export type PromptBindingV1 = z.infer<typeof PromptBindingV1Schema>;
41
+ export declare const ToolSpecV1Schema: z.ZodObject<{
42
+ v: z.ZodLiteral<1>;
43
+ toolId: z.ZodString;
44
+ description: z.ZodOptional<z.ZodString>;
45
+ }, z.core.$strict>;
46
+ export type ToolSpecV1 = z.infer<typeof ToolSpecV1Schema>;
47
+ export declare const AgentBlueprintV1Schema: z.ZodObject<{
48
+ v: z.ZodLiteral<1>;
49
+ agentName: z.ZodString;
50
+ description: z.ZodOptional<z.ZodString>;
51
+ mode: z.ZodEnum<{
52
+ primary: "primary";
53
+ subagent: "subagent";
54
+ }>;
55
+ model: z.ZodOptional<z.ZodString>;
56
+ variant: z.ZodOptional<z.ZodString>;
57
+ reasoning: z.ZodOptional<z.ZodObject<{
58
+ effort: z.ZodEnum<{
59
+ none: "none";
60
+ low: "low";
61
+ medium: "medium";
62
+ high: "high";
63
+ max: "max";
64
+ xhigh: "xhigh";
65
+ minimal: "minimal";
66
+ ultra: "ultra";
67
+ }>;
68
+ }, z.core.$strict>>;
69
+ thinking: z.ZodOptional<z.ZodObject<{
70
+ type: z.ZodEnum<{
71
+ enabled: "enabled";
72
+ disabled: "disabled";
73
+ }>;
74
+ budget_tokens: z.ZodOptional<z.ZodNumber>;
75
+ }, z.core.$strict>>;
76
+ temperature: z.ZodNumber;
77
+ prompt: z.ZodObject<{
78
+ v: z.ZodLiteral<1>;
79
+ promptId: z.ZodString;
80
+ ref: z.ZodString;
81
+ sha256: z.ZodString;
82
+ }, z.core.$strict>;
83
+ tools: z.ZodArray<z.ZodString>;
84
+ disabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
85
+ }, z.core.$strict>;
86
+ export type AgentBlueprintV1 = z.infer<typeof AgentBlueprintV1Schema>;
87
+ export declare const OrchestrationSpecV1Schema: z.ZodObject<{
88
+ v: z.ZodLiteral<1>;
89
+ defaultAgent: z.ZodString;
90
+ activation: z.ZodEnum<{
91
+ manual: "manual";
92
+ }>;
93
+ execution: z.ZodEnum<{
94
+ disabled: "disabled";
95
+ }>;
96
+ multiSwarm: z.ZodBoolean;
97
+ }, z.core.$strict>;
98
+ export type OrchestrationSpecV1 = z.infer<typeof OrchestrationSpecV1Schema>;
99
+ export declare const HarnessConstraintsV1Schema: z.ZodObject<{
100
+ v: z.ZodLiteral<1>;
101
+ sourceAllowlist: z.ZodArray<z.ZodString>;
102
+ extraProtectedPaths: z.ZodArray<z.ZodString>;
103
+ maxPatchBytes: z.ZodNumber;
104
+ maxFiles: z.ZodNumber;
105
+ maxFileBytes: z.ZodNumber;
106
+ maxTotalBytes: z.ZodNumber;
107
+ maxChangedLines: z.ZodNumber;
108
+ maxVersions: z.ZodNumber;
109
+ maxReplayRecords: z.ZodNumber;
110
+ maxOutputBytes: z.ZodNumber;
111
+ }, z.core.$strict>;
112
+ export type HarnessConstraintsV1 = z.infer<typeof HarnessConstraintsV1Schema>;
113
+ export declare const DEFAULT_HARNESS_CONSTRAINTS_V1: HarnessConstraintsV1;
114
+ export declare const HarnessBlueprintV1Schema: z.ZodObject<{
115
+ v: z.ZodLiteral<1>;
116
+ blueprintId: z.ZodString;
117
+ definitionsHash: z.ZodString;
118
+ tools: z.ZodArray<z.ZodObject<{
119
+ v: z.ZodLiteral<1>;
120
+ toolId: z.ZodString;
121
+ description: z.ZodOptional<z.ZodString>;
122
+ }, z.core.$strict>>;
123
+ agents: z.ZodArray<z.ZodObject<{
124
+ v: z.ZodLiteral<1>;
125
+ agentName: z.ZodString;
126
+ description: z.ZodOptional<z.ZodString>;
127
+ mode: z.ZodEnum<{
128
+ primary: "primary";
129
+ subagent: "subagent";
130
+ }>;
131
+ model: z.ZodOptional<z.ZodString>;
132
+ variant: z.ZodOptional<z.ZodString>;
133
+ reasoning: z.ZodOptional<z.ZodObject<{
134
+ effort: z.ZodEnum<{
135
+ none: "none";
136
+ low: "low";
137
+ medium: "medium";
138
+ high: "high";
139
+ max: "max";
140
+ xhigh: "xhigh";
141
+ minimal: "minimal";
142
+ ultra: "ultra";
143
+ }>;
144
+ }, z.core.$strict>>;
145
+ thinking: z.ZodOptional<z.ZodObject<{
146
+ type: z.ZodEnum<{
147
+ enabled: "enabled";
148
+ disabled: "disabled";
149
+ }>;
150
+ budget_tokens: z.ZodOptional<z.ZodNumber>;
151
+ }, z.core.$strict>>;
152
+ temperature: z.ZodNumber;
153
+ prompt: z.ZodObject<{
154
+ v: z.ZodLiteral<1>;
155
+ promptId: z.ZodString;
156
+ ref: z.ZodString;
157
+ sha256: z.ZodString;
158
+ }, z.core.$strict>;
159
+ tools: z.ZodArray<z.ZodString>;
160
+ disabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
161
+ }, z.core.$strict>>;
162
+ orchestration: z.ZodObject<{
163
+ v: z.ZodLiteral<1>;
164
+ defaultAgent: z.ZodString;
165
+ activation: z.ZodEnum<{
166
+ manual: "manual";
167
+ }>;
168
+ execution: z.ZodEnum<{
169
+ disabled: "disabled";
170
+ }>;
171
+ multiSwarm: z.ZodBoolean;
172
+ }, z.core.$strict>;
173
+ constraints: z.ZodObject<{
174
+ v: z.ZodLiteral<1>;
175
+ sourceAllowlist: z.ZodArray<z.ZodString>;
176
+ extraProtectedPaths: z.ZodArray<z.ZodString>;
177
+ maxPatchBytes: z.ZodNumber;
178
+ maxFiles: z.ZodNumber;
179
+ maxFileBytes: z.ZodNumber;
180
+ maxTotalBytes: z.ZodNumber;
181
+ maxChangedLines: z.ZodNumber;
182
+ maxVersions: z.ZodNumber;
183
+ maxReplayRecords: z.ZodNumber;
184
+ maxOutputBytes: z.ZodNumber;
185
+ }, z.core.$strict>;
186
+ contentHash: z.ZodString;
187
+ }, z.core.$strict>;
188
+ export type HarnessBlueprintV1 = z.infer<typeof HarnessBlueprintV1Schema>;
189
+ export declare const HarnessCandidateFileV1Schema: z.ZodObject<{
190
+ relativePath: z.ZodString;
191
+ oldRelativePath: z.ZodOptional<z.ZodString>;
192
+ operation: z.ZodOptional<z.ZodEnum<{
193
+ mode: "mode";
194
+ rename: "rename";
195
+ copy: "copy";
196
+ add: "add";
197
+ delete: "delete";
198
+ modify: "modify";
199
+ }>>;
200
+ trackedMode: z.ZodString;
201
+ afterMode: z.ZodOptional<z.ZodString>;
202
+ beforeSha256: z.ZodString;
203
+ afterSha256: z.ZodString;
204
+ bytesBefore: z.ZodNumber;
205
+ bytesAfter: z.ZodNumber;
206
+ addedLines: z.ZodNumber;
207
+ removedLines: z.ZodNumber;
208
+ changedLines: z.ZodNumber;
209
+ }, z.core.$strict>;
210
+ export type HarnessCandidateFileV1 = z.infer<typeof HarnessCandidateFileV1Schema>;
211
+ export declare const HarnessCandidateManifestV1Schema: z.ZodObject<{
212
+ v: z.ZodLiteral<1>;
213
+ candidateId: z.ZodString;
214
+ baseSha: z.ZodString;
215
+ origin: z.ZodString;
216
+ patchSha256: z.ZodString;
217
+ promptArtifactHashes: z.ZodArray<z.ZodString>;
218
+ manifestHash: z.ZodString;
219
+ riskTier: z.ZodEnum<{
220
+ low: "low";
221
+ medium: "medium";
222
+ high: "high";
223
+ }>;
224
+ approvedPaths: z.ZodArray<z.ZodString>;
225
+ files: z.ZodArray<z.ZodObject<{
226
+ relativePath: z.ZodString;
227
+ oldRelativePath: z.ZodOptional<z.ZodString>;
228
+ operation: z.ZodOptional<z.ZodEnum<{
229
+ mode: "mode";
230
+ rename: "rename";
231
+ copy: "copy";
232
+ add: "add";
233
+ delete: "delete";
234
+ modify: "modify";
235
+ }>>;
236
+ trackedMode: z.ZodString;
237
+ afterMode: z.ZodOptional<z.ZodString>;
238
+ beforeSha256: z.ZodString;
239
+ afterSha256: z.ZodString;
240
+ bytesBefore: z.ZodNumber;
241
+ bytesAfter: z.ZodNumber;
242
+ addedLines: z.ZodNumber;
243
+ removedLines: z.ZodNumber;
244
+ changedLines: z.ZodNumber;
245
+ }, z.core.$strict>>;
246
+ }, z.core.$strict>;
247
+ export type HarnessCandidateManifestV1 = z.infer<typeof HarnessCandidateManifestV1Schema>;
248
+ export declare const BlueprintPatchOperationV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
249
+ op: z.ZodLiteral<"upsert_prompt">;
250
+ fieldPath: z.ZodUnion<readonly [z.ZodLiteral<"orchestration">, z.ZodLiteral<"constraints">, z.ZodString]>;
251
+ expectedFieldHash: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
252
+ prompt: z.ZodObject<{
253
+ v: z.ZodLiteral<1>;
254
+ promptId: z.ZodString;
255
+ candidateId: z.ZodString;
256
+ sha256: z.ZodString;
257
+ bytes: z.ZodNumber;
258
+ mediaType: z.ZodLiteral<"text/plain; charset=utf-8">;
259
+ content: z.ZodString;
260
+ provenance: z.ZodObject<{
261
+ source: z.ZodLiteral<"candidate">;
262
+ origin: z.ZodString;
263
+ }, z.core.$strict>;
264
+ }, z.core.$strict>;
265
+ }, z.core.$strict>, z.ZodObject<{
266
+ op: z.ZodLiteral<"upsert_tool">;
267
+ fieldPath: z.ZodUnion<readonly [z.ZodLiteral<"orchestration">, z.ZodLiteral<"constraints">, z.ZodString]>;
268
+ expectedFieldHash: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
269
+ tool: z.ZodObject<{
270
+ v: z.ZodLiteral<1>;
271
+ toolId: z.ZodString;
272
+ description: z.ZodOptional<z.ZodString>;
273
+ }, z.core.$strict>;
274
+ }, z.core.$strict>, z.ZodObject<{
275
+ op: z.ZodLiteral<"remove_tool">;
276
+ fieldPath: z.ZodUnion<readonly [z.ZodLiteral<"orchestration">, z.ZodLiteral<"constraints">, z.ZodString]>;
277
+ expectedFieldHash: z.ZodString;
278
+ }, z.core.$strict>, z.ZodObject<{
279
+ op: z.ZodLiteral<"upsert_agent">;
280
+ fieldPath: z.ZodUnion<readonly [z.ZodLiteral<"orchestration">, z.ZodLiteral<"constraints">, z.ZodString]>;
281
+ expectedFieldHash: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
282
+ agent: z.ZodObject<{
283
+ v: z.ZodLiteral<1>;
284
+ agentName: z.ZodString;
285
+ description: z.ZodOptional<z.ZodString>;
286
+ mode: z.ZodEnum<{
287
+ primary: "primary";
288
+ subagent: "subagent";
289
+ }>;
290
+ model: z.ZodOptional<z.ZodString>;
291
+ variant: z.ZodOptional<z.ZodString>;
292
+ reasoning: z.ZodOptional<z.ZodObject<{
293
+ effort: z.ZodEnum<{
294
+ none: "none";
295
+ low: "low";
296
+ medium: "medium";
297
+ high: "high";
298
+ max: "max";
299
+ xhigh: "xhigh";
300
+ minimal: "minimal";
301
+ ultra: "ultra";
302
+ }>;
303
+ }, z.core.$strict>>;
304
+ thinking: z.ZodOptional<z.ZodObject<{
305
+ type: z.ZodEnum<{
306
+ enabled: "enabled";
307
+ disabled: "disabled";
308
+ }>;
309
+ budget_tokens: z.ZodOptional<z.ZodNumber>;
310
+ }, z.core.$strict>>;
311
+ temperature: z.ZodNumber;
312
+ prompt: z.ZodObject<{
313
+ v: z.ZodLiteral<1>;
314
+ promptId: z.ZodString;
315
+ ref: z.ZodString;
316
+ sha256: z.ZodString;
317
+ }, z.core.$strict>;
318
+ tools: z.ZodArray<z.ZodString>;
319
+ disabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
320
+ }, z.core.$strict>;
321
+ }, z.core.$strict>, z.ZodObject<{
322
+ op: z.ZodLiteral<"remove_agent">;
323
+ fieldPath: z.ZodUnion<readonly [z.ZodLiteral<"orchestration">, z.ZodLiteral<"constraints">, z.ZodString]>;
324
+ expectedFieldHash: z.ZodString;
325
+ }, z.core.$strict>, z.ZodObject<{
326
+ op: z.ZodLiteral<"replace_orchestration">;
327
+ fieldPath: z.ZodLiteral<"orchestration">;
328
+ expectedFieldHash: z.ZodString;
329
+ orchestration: z.ZodObject<{
330
+ v: z.ZodLiteral<1>;
331
+ defaultAgent: z.ZodString;
332
+ activation: z.ZodEnum<{
333
+ manual: "manual";
334
+ }>;
335
+ execution: z.ZodEnum<{
336
+ disabled: "disabled";
337
+ }>;
338
+ multiSwarm: z.ZodBoolean;
339
+ }, z.core.$strict>;
340
+ }, z.core.$strict>, z.ZodObject<{
341
+ op: z.ZodLiteral<"replace_constraints">;
342
+ fieldPath: z.ZodLiteral<"constraints">;
343
+ expectedFieldHash: z.ZodString;
344
+ constraints: z.ZodObject<{
345
+ v: z.ZodLiteral<1>;
346
+ sourceAllowlist: z.ZodArray<z.ZodString>;
347
+ extraProtectedPaths: z.ZodArray<z.ZodString>;
348
+ maxPatchBytes: z.ZodNumber;
349
+ maxFiles: z.ZodNumber;
350
+ maxFileBytes: z.ZodNumber;
351
+ maxTotalBytes: z.ZodNumber;
352
+ maxChangedLines: z.ZodNumber;
353
+ maxVersions: z.ZodNumber;
354
+ maxReplayRecords: z.ZodNumber;
355
+ maxOutputBytes: z.ZodNumber;
356
+ }, z.core.$strict>;
357
+ }, z.core.$strict>], "op">;
358
+ export type BlueprintPatchOperationV1 = z.infer<typeof BlueprintPatchOperationV1Schema>;
359
+ export declare const BlueprintPatchV1Schema: z.ZodObject<{
360
+ v: z.ZodLiteral<1>;
361
+ patchId: z.ZodString;
362
+ expectedBaseHash: z.ZodString;
363
+ expectedResultHash: z.ZodString;
364
+ operations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
365
+ op: z.ZodLiteral<"upsert_prompt">;
366
+ fieldPath: z.ZodUnion<readonly [z.ZodLiteral<"orchestration">, z.ZodLiteral<"constraints">, z.ZodString]>;
367
+ expectedFieldHash: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
368
+ prompt: z.ZodObject<{
369
+ v: z.ZodLiteral<1>;
370
+ promptId: z.ZodString;
371
+ candidateId: z.ZodString;
372
+ sha256: z.ZodString;
373
+ bytes: z.ZodNumber;
374
+ mediaType: z.ZodLiteral<"text/plain; charset=utf-8">;
375
+ content: z.ZodString;
376
+ provenance: z.ZodObject<{
377
+ source: z.ZodLiteral<"candidate">;
378
+ origin: z.ZodString;
379
+ }, z.core.$strict>;
380
+ }, z.core.$strict>;
381
+ }, z.core.$strict>, z.ZodObject<{
382
+ op: z.ZodLiteral<"upsert_tool">;
383
+ fieldPath: z.ZodUnion<readonly [z.ZodLiteral<"orchestration">, z.ZodLiteral<"constraints">, z.ZodString]>;
384
+ expectedFieldHash: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
385
+ tool: z.ZodObject<{
386
+ v: z.ZodLiteral<1>;
387
+ toolId: z.ZodString;
388
+ description: z.ZodOptional<z.ZodString>;
389
+ }, z.core.$strict>;
390
+ }, z.core.$strict>, z.ZodObject<{
391
+ op: z.ZodLiteral<"remove_tool">;
392
+ fieldPath: z.ZodUnion<readonly [z.ZodLiteral<"orchestration">, z.ZodLiteral<"constraints">, z.ZodString]>;
393
+ expectedFieldHash: z.ZodString;
394
+ }, z.core.$strict>, z.ZodObject<{
395
+ op: z.ZodLiteral<"upsert_agent">;
396
+ fieldPath: z.ZodUnion<readonly [z.ZodLiteral<"orchestration">, z.ZodLiteral<"constraints">, z.ZodString]>;
397
+ expectedFieldHash: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
398
+ agent: z.ZodObject<{
399
+ v: z.ZodLiteral<1>;
400
+ agentName: z.ZodString;
401
+ description: z.ZodOptional<z.ZodString>;
402
+ mode: z.ZodEnum<{
403
+ primary: "primary";
404
+ subagent: "subagent";
405
+ }>;
406
+ model: z.ZodOptional<z.ZodString>;
407
+ variant: z.ZodOptional<z.ZodString>;
408
+ reasoning: z.ZodOptional<z.ZodObject<{
409
+ effort: z.ZodEnum<{
410
+ none: "none";
411
+ low: "low";
412
+ medium: "medium";
413
+ high: "high";
414
+ max: "max";
415
+ xhigh: "xhigh";
416
+ minimal: "minimal";
417
+ ultra: "ultra";
418
+ }>;
419
+ }, z.core.$strict>>;
420
+ thinking: z.ZodOptional<z.ZodObject<{
421
+ type: z.ZodEnum<{
422
+ enabled: "enabled";
423
+ disabled: "disabled";
424
+ }>;
425
+ budget_tokens: z.ZodOptional<z.ZodNumber>;
426
+ }, z.core.$strict>>;
427
+ temperature: z.ZodNumber;
428
+ prompt: z.ZodObject<{
429
+ v: z.ZodLiteral<1>;
430
+ promptId: z.ZodString;
431
+ ref: z.ZodString;
432
+ sha256: z.ZodString;
433
+ }, z.core.$strict>;
434
+ tools: z.ZodArray<z.ZodString>;
435
+ disabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
436
+ }, z.core.$strict>;
437
+ }, z.core.$strict>, z.ZodObject<{
438
+ op: z.ZodLiteral<"remove_agent">;
439
+ fieldPath: z.ZodUnion<readonly [z.ZodLiteral<"orchestration">, z.ZodLiteral<"constraints">, z.ZodString]>;
440
+ expectedFieldHash: z.ZodString;
441
+ }, z.core.$strict>, z.ZodObject<{
442
+ op: z.ZodLiteral<"replace_orchestration">;
443
+ fieldPath: z.ZodLiteral<"orchestration">;
444
+ expectedFieldHash: z.ZodString;
445
+ orchestration: z.ZodObject<{
446
+ v: z.ZodLiteral<1>;
447
+ defaultAgent: z.ZodString;
448
+ activation: z.ZodEnum<{
449
+ manual: "manual";
450
+ }>;
451
+ execution: z.ZodEnum<{
452
+ disabled: "disabled";
453
+ }>;
454
+ multiSwarm: z.ZodBoolean;
455
+ }, z.core.$strict>;
456
+ }, z.core.$strict>, z.ZodObject<{
457
+ op: z.ZodLiteral<"replace_constraints">;
458
+ fieldPath: z.ZodLiteral<"constraints">;
459
+ expectedFieldHash: z.ZodString;
460
+ constraints: z.ZodObject<{
461
+ v: z.ZodLiteral<1>;
462
+ sourceAllowlist: z.ZodArray<z.ZodString>;
463
+ extraProtectedPaths: z.ZodArray<z.ZodString>;
464
+ maxPatchBytes: z.ZodNumber;
465
+ maxFiles: z.ZodNumber;
466
+ maxFileBytes: z.ZodNumber;
467
+ maxTotalBytes: z.ZodNumber;
468
+ maxChangedLines: z.ZodNumber;
469
+ maxVersions: z.ZodNumber;
470
+ maxReplayRecords: z.ZodNumber;
471
+ maxOutputBytes: z.ZodNumber;
472
+ }, z.core.$strict>;
473
+ }, z.core.$strict>], "op">>;
474
+ }, z.core.$strict>;
475
+ export type BlueprintPatchV1 = z.infer<typeof BlueprintPatchV1Schema>;
476
+ export declare function computePromptArtifactHash(value: Omit<PromptArtifactV1, 'sha256'> | PromptArtifactV1): string;
477
+ export declare function computePromptBindingHash(value: PromptBindingV1): string;
478
+ export declare function computeHarnessBlueprintHash(value: Omit<HarnessBlueprintV1, 'contentHash'> | HarnessBlueprintV1): string;
479
+ export declare function computeHarnessCandidateManifestHash(value: Omit<HarnessCandidateManifestV1, 'manifestHash' | 'riskTier'> | HarnessCandidateManifestV1): string;
480
+ export declare function computeBlueprintPatchHash(value: BlueprintPatchV1): string;
481
+ export declare function deriveHarnessCandidateFloors(value: Pick<HarnessCandidateManifestV1, 'files'>): {
482
+ maxFilesFloor: number;
483
+ maxFileBytesFloor: number;
484
+ maxTotalBytesFloor: number;
485
+ maxChangedLinesFloor: number;
486
+ };
487
+ export declare function deriveHarnessCandidateRiskTier(value: Pick<HarnessCandidateManifestV1, 'files'>): z.infer<typeof RiskTierSchema>;
488
+ export declare function parsePromptArtifact(value: unknown): PromptArtifactV1;
489
+ export declare function parseHarnessBlueprint(value: unknown): HarnessBlueprintV1;
490
+ export declare function parseHarnessCandidateManifest(value: unknown): HarnessCandidateManifestV1;
491
+ export declare function parseBlueprintPatch(value: unknown): BlueprintPatchV1;
492
+ export {};