@lucern/contracts 1.0.50 → 1.0.52

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 (66) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/function-registry/beliefs.d.ts +77 -0
  3. package/dist/function-registry/beliefs.js +7 -2
  4. package/dist/function-registry/coding.d.ts +183 -0
  5. package/dist/function-registry/coding.js +60 -33
  6. package/dist/function-registry/context.d.ts +9 -0
  7. package/dist/function-registry/context.js +1 -0
  8. package/dist/function-registry/contracts.d.ts +16 -12
  9. package/dist/function-registry/contracts.js +5 -2
  10. package/dist/function-registry/coordination.d.ts +9 -0
  11. package/dist/function-registry/coordination.js +1 -0
  12. package/dist/function-registry/edges.d.ts +140 -0
  13. package/dist/function-registry/edges.js +6 -2
  14. package/dist/function-registry/embeddings.d.ts +4 -0
  15. package/dist/function-registry/embeddings.js +1 -0
  16. package/dist/function-registry/evidence.d.ts +251 -0
  17. package/dist/function-registry/evidence.js +94 -5
  18. package/dist/function-registry/graph.d.ts +15 -0
  19. package/dist/function-registry/graph.js +1 -0
  20. package/dist/function-registry/helpers.d.ts +2 -0
  21. package/dist/function-registry/helpers.js +1 -0
  22. package/dist/function-registry/hybrid.d.ts +6 -0
  23. package/dist/function-registry/hybrid.js +1 -0
  24. package/dist/function-registry/identity.d.ts +4 -0
  25. package/dist/function-registry/identity.js +1 -0
  26. package/dist/function-registry/index.js +1 -0
  27. package/dist/function-registry/judgments.d.ts +2 -0
  28. package/dist/function-registry/judgments.js +1 -0
  29. package/dist/function-registry/legacy.d.ts +1 -0
  30. package/dist/function-registry/legacy.js +1 -0
  31. package/dist/function-registry/lenses.d.ts +4 -0
  32. package/dist/function-registry/lenses.js +1 -0
  33. package/dist/function-registry/nodes.d.ts +106 -0
  34. package/dist/function-registry/nodes.js +9 -4
  35. package/dist/function-registry/ontologies.d.ts +11 -0
  36. package/dist/function-registry/ontologies.js +8 -2
  37. package/dist/function-registry/pipeline.d.ts +3 -0
  38. package/dist/function-registry/pipeline.js +1 -0
  39. package/dist/function-registry/policy.d.ts +1 -0
  40. package/dist/function-registry/policy.js +1 -0
  41. package/dist/function-registry/questions.d.ts +104 -0
  42. package/dist/function-registry/questions.js +10 -5
  43. package/dist/function-registry/tasks.d.ts +86 -0
  44. package/dist/function-registry/tasks.js +2 -1
  45. package/dist/function-registry/topics.d.ts +7 -0
  46. package/dist/function-registry/topics.js +7 -2
  47. package/dist/function-registry/types.d.ts +46 -0
  48. package/dist/function-registry/worktrees.d.ts +440 -0
  49. package/dist/function-registry/worktrees.js +9 -3
  50. package/dist/generated/convexSchemas.d.ts +10 -10
  51. package/dist/index.d.ts +1 -0
  52. package/dist/index.js +5 -0
  53. package/dist/infisical-runtime.base.js +5 -0
  54. package/dist/infisical-runtime.contract.js +5 -0
  55. package/dist/infisical-runtime.tenant-secrets.js +5 -0
  56. package/dist/manifests/infisical-runtime-manifest.js +5 -0
  57. package/dist/manifests/tenant-client-manifest.d.ts +5 -1
  58. package/dist/manifests/tenant-client-manifest.js +5 -0
  59. package/dist/operator-receipt.contract.d.ts +32 -0
  60. package/dist/operator-receipt.contract.js +1 -0
  61. package/dist/projections/create-evidence.projection.d.ts +12 -12
  62. package/dist/projections/index.d.ts +2 -2
  63. package/dist/proof-attestation.json +1 -1
  64. package/dist/tenant-client.contract.d.ts +5 -1
  65. package/dist/tenant-client.contract.js +5 -0
  66. package/package.json +1 -1
@@ -1,10 +1,438 @@
1
1
  import { z } from "zod";
2
+ export declare const addWorktreeArgs: z.ZodObject<{
3
+ title: z.ZodString;
4
+ name: z.ZodOptional<z.ZodString>;
5
+ topicId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
6
+ topicHint: z.ZodOptional<z.ZodString>;
7
+ branchId: z.ZodOptional<z.ZodString>;
8
+ objective: z.ZodOptional<z.ZodString>;
9
+ hypothesis: z.ZodOptional<z.ZodString>;
10
+ rationale: z.ZodOptional<z.ZodString>;
11
+ worktreeType: z.ZodOptional<z.ZodEnum<["belief_test", "lens", "existential", "contradiction", "refinement", "coverage", "discovery", "clarification", "confirmation"]>>;
12
+ gate: z.ZodOptional<z.ZodString>;
13
+ startDate: z.ZodOptional<z.ZodNumber>;
14
+ endDate: z.ZodOptional<z.ZodNumber>;
15
+ durationWeeks: z.ZodOptional<z.ZodNumber>;
16
+ confidenceImpact: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
17
+ beliefFocus: z.ZodOptional<z.ZodString>;
18
+ beliefIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
19
+ beliefs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
20
+ targetBeliefIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
21
+ targetQuestionIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
22
+ keyQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
23
+ question: z.ZodString;
24
+ status: z.ZodOptional<z.ZodEnum<["open", "answered", "forked"]>>;
25
+ answer: z.ZodOptional<z.ZodString>;
26
+ answerConfidence: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
27
+ linkedQuestionId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
28
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
29
+ question: z.ZodString;
30
+ status: z.ZodOptional<z.ZodEnum<["open", "answered", "forked"]>>;
31
+ answer: z.ZodOptional<z.ZodString>;
32
+ answerConfidence: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
33
+ linkedQuestionId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
34
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
35
+ question: z.ZodString;
36
+ status: z.ZodOptional<z.ZodEnum<["open", "answered", "forked"]>>;
37
+ answer: z.ZodOptional<z.ZodString>;
38
+ answerConfidence: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
39
+ linkedQuestionId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
40
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
41
+ evidenceSignals: z.ZodOptional<z.ZodArray<z.ZodObject<{
42
+ signal: z.ZodString;
43
+ collected: z.ZodOptional<z.ZodBoolean>;
44
+ progress: z.ZodOptional<z.ZodString>;
45
+ notes: z.ZodOptional<z.ZodString>;
46
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
47
+ signal: z.ZodString;
48
+ collected: z.ZodOptional<z.ZodBoolean>;
49
+ progress: z.ZodOptional<z.ZodString>;
50
+ notes: z.ZodOptional<z.ZodString>;
51
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
52
+ signal: z.ZodString;
53
+ collected: z.ZodOptional<z.ZodBoolean>;
54
+ progress: z.ZodOptional<z.ZodString>;
55
+ notes: z.ZodOptional<z.ZodString>;
56
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
57
+ decisionGate: z.ZodOptional<z.ZodObject<{
58
+ goCriteria: z.ZodArray<z.ZodString, "many">;
59
+ noGoSignals: z.ZodArray<z.ZodString, "many">;
60
+ verdict: z.ZodOptional<z.ZodEnum<["go", "no_go", "pivot", "pending"]>>;
61
+ verdictRationale: z.ZodOptional<z.ZodString>;
62
+ decidedAt: z.ZodOptional<z.ZodNumber>;
63
+ decidedBy: z.ZodOptional<z.ZodString>;
64
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
65
+ goCriteria: z.ZodArray<z.ZodString, "many">;
66
+ noGoSignals: z.ZodArray<z.ZodString, "many">;
67
+ verdict: z.ZodOptional<z.ZodEnum<["go", "no_go", "pivot", "pending"]>>;
68
+ verdictRationale: z.ZodOptional<z.ZodString>;
69
+ decidedAt: z.ZodOptional<z.ZodNumber>;
70
+ decidedBy: z.ZodOptional<z.ZodString>;
71
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
72
+ goCriteria: z.ZodArray<z.ZodString, "many">;
73
+ noGoSignals: z.ZodArray<z.ZodString, "many">;
74
+ verdict: z.ZodOptional<z.ZodEnum<["go", "no_go", "pivot", "pending"]>>;
75
+ verdictRationale: z.ZodOptional<z.ZodString>;
76
+ decidedAt: z.ZodOptional<z.ZodNumber>;
77
+ decidedBy: z.ZodOptional<z.ZodString>;
78
+ }, z.ZodTypeAny, "passthrough">>>;
79
+ docCompanionTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
80
+ docPath: z.ZodString;
81
+ sectionAnchor: z.ZodOptional<z.ZodString>;
82
+ reason: z.ZodString;
83
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
84
+ docPath: z.ZodString;
85
+ sectionAnchor: z.ZodOptional<z.ZodString>;
86
+ reason: z.ZodString;
87
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
88
+ docPath: z.ZodString;
89
+ sectionAnchor: z.ZodOptional<z.ZodString>;
90
+ reason: z.ZodString;
91
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
92
+ goCriteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
93
+ noGoSignals: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
94
+ proofArtifacts: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
95
+ autoShape: z.ZodOptional<z.ZodBoolean>;
96
+ autoFixPolicy: z.ZodOptional<z.ZodObject<{
97
+ enabled: z.ZodOptional<z.ZodBoolean>;
98
+ mode: z.ZodOptional<z.ZodString>;
99
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
100
+ reviewer: z.ZodOptional<z.ZodString>;
101
+ maxActionsPerRun: z.ZodOptional<z.ZodNumber>;
102
+ permittedMutationTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_only", "low_risk_write", "high_risk_write"]>, "many">>;
103
+ requireAuditTrail: z.ZodOptional<z.ZodBoolean>;
104
+ escalationGate: z.ZodOptional<z.ZodString>;
105
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
106
+ enabled: z.ZodOptional<z.ZodBoolean>;
107
+ mode: z.ZodOptional<z.ZodString>;
108
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
109
+ reviewer: z.ZodOptional<z.ZodString>;
110
+ maxActionsPerRun: z.ZodOptional<z.ZodNumber>;
111
+ permittedMutationTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_only", "low_risk_write", "high_risk_write"]>, "many">>;
112
+ requireAuditTrail: z.ZodOptional<z.ZodBoolean>;
113
+ escalationGate: z.ZodOptional<z.ZodString>;
114
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
115
+ enabled: z.ZodOptional<z.ZodBoolean>;
116
+ mode: z.ZodOptional<z.ZodString>;
117
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
118
+ reviewer: z.ZodOptional<z.ZodString>;
119
+ maxActionsPerRun: z.ZodOptional<z.ZodNumber>;
120
+ permittedMutationTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_only", "low_risk_write", "high_risk_write"]>, "many">>;
121
+ requireAuditTrail: z.ZodOptional<z.ZodBoolean>;
122
+ escalationGate: z.ZodOptional<z.ZodString>;
123
+ }, z.ZodTypeAny, "passthrough">>>;
124
+ domainPackId: z.ZodOptional<z.ZodString>;
125
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
126
+ touchedPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
127
+ sourceRef: z.ZodOptional<z.ZodString>;
128
+ sourceKind: z.ZodOptional<z.ZodString>;
129
+ campaign: z.ZodOptional<z.ZodNumber>;
130
+ lane: z.ZodOptional<z.ZodString>;
131
+ laneOrderInCampaign: z.ZodOptional<z.ZodNumber>;
132
+ orderInLane: z.ZodOptional<z.ZodNumber>;
133
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
134
+ blocks: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
135
+ staffingHint: z.ZodOptional<z.ZodString>;
136
+ lensId: z.ZodOptional<z.ZodString>;
137
+ lastReconciledAt: z.ZodOptional<z.ZodNumber>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ title: string;
140
+ name?: string | undefined;
141
+ blocks?: string[] | undefined;
142
+ campaign?: number | undefined;
143
+ dependsOn?: string[] | undefined;
144
+ topicId?: string | undefined;
145
+ sourceRef?: string | undefined;
146
+ lane?: string | undefined;
147
+ orderInLane?: number | undefined;
148
+ gate?: string | undefined;
149
+ targetBeliefIds?: string[] | undefined;
150
+ targetQuestionIds?: string[] | undefined;
151
+ hypothesis?: string | undefined;
152
+ rationale?: string | undefined;
153
+ sourceKind?: string | undefined;
154
+ tags?: string[] | undefined;
155
+ topicHint?: string | undefined;
156
+ touchedPaths?: string[] | undefined;
157
+ beliefs?: string[] | undefined;
158
+ beliefIds?: string[] | undefined;
159
+ lensId?: string | undefined;
160
+ laneOrderInCampaign?: number | undefined;
161
+ objective?: string | undefined;
162
+ proofArtifacts?: unknown[] | undefined;
163
+ staffingHint?: string | undefined;
164
+ lastReconciledAt?: number | undefined;
165
+ autoFixPolicy?: z.objectOutputType<{
166
+ enabled: z.ZodOptional<z.ZodBoolean>;
167
+ mode: z.ZodOptional<z.ZodString>;
168
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
169
+ reviewer: z.ZodOptional<z.ZodString>;
170
+ maxActionsPerRun: z.ZodOptional<z.ZodNumber>;
171
+ permittedMutationTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_only", "low_risk_write", "high_risk_write"]>, "many">>;
172
+ requireAuditTrail: z.ZodOptional<z.ZodBoolean>;
173
+ escalationGate: z.ZodOptional<z.ZodString>;
174
+ }, z.ZodTypeAny, "passthrough"> | undefined;
175
+ branchId?: string | undefined;
176
+ worktreeType?: "refinement" | "coverage" | "contradiction" | "lens" | "belief_test" | "existential" | "discovery" | "clarification" | "confirmation" | undefined;
177
+ startDate?: number | undefined;
178
+ endDate?: number | undefined;
179
+ durationWeeks?: number | undefined;
180
+ confidenceImpact?: "high" | "low" | "medium" | undefined;
181
+ beliefFocus?: string | undefined;
182
+ keyQuestions?: z.objectOutputType<{
183
+ question: z.ZodString;
184
+ status: z.ZodOptional<z.ZodEnum<["open", "answered", "forked"]>>;
185
+ answer: z.ZodOptional<z.ZodString>;
186
+ answerConfidence: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
187
+ linkedQuestionId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
188
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
189
+ evidenceSignals?: z.objectOutputType<{
190
+ signal: z.ZodString;
191
+ collected: z.ZodOptional<z.ZodBoolean>;
192
+ progress: z.ZodOptional<z.ZodString>;
193
+ notes: z.ZodOptional<z.ZodString>;
194
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
195
+ decisionGate?: z.objectOutputType<{
196
+ goCriteria: z.ZodArray<z.ZodString, "many">;
197
+ noGoSignals: z.ZodArray<z.ZodString, "many">;
198
+ verdict: z.ZodOptional<z.ZodEnum<["go", "no_go", "pivot", "pending"]>>;
199
+ verdictRationale: z.ZodOptional<z.ZodString>;
200
+ decidedAt: z.ZodOptional<z.ZodNumber>;
201
+ decidedBy: z.ZodOptional<z.ZodString>;
202
+ }, z.ZodTypeAny, "passthrough"> | undefined;
203
+ goCriteria?: string[] | undefined;
204
+ noGoSignals?: string[] | undefined;
205
+ autoShape?: boolean | undefined;
206
+ domainPackId?: string | undefined;
207
+ docCompanionTargets?: z.objectOutputType<{
208
+ docPath: z.ZodString;
209
+ sectionAnchor: z.ZodOptional<z.ZodString>;
210
+ reason: z.ZodString;
211
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
212
+ }, {
213
+ title: string;
214
+ name?: string | undefined;
215
+ blocks?: string[] | undefined;
216
+ campaign?: number | undefined;
217
+ dependsOn?: string[] | undefined;
218
+ topicId?: string | undefined;
219
+ sourceRef?: string | undefined;
220
+ lane?: string | undefined;
221
+ orderInLane?: number | undefined;
222
+ gate?: string | undefined;
223
+ targetBeliefIds?: string[] | undefined;
224
+ targetQuestionIds?: string[] | undefined;
225
+ hypothesis?: string | undefined;
226
+ rationale?: string | undefined;
227
+ sourceKind?: string | undefined;
228
+ tags?: string[] | undefined;
229
+ topicHint?: string | undefined;
230
+ touchedPaths?: string[] | undefined;
231
+ beliefs?: string[] | undefined;
232
+ beliefIds?: string[] | undefined;
233
+ lensId?: string | undefined;
234
+ laneOrderInCampaign?: number | undefined;
235
+ objective?: string | undefined;
236
+ proofArtifacts?: unknown[] | undefined;
237
+ staffingHint?: string | undefined;
238
+ lastReconciledAt?: number | undefined;
239
+ autoFixPolicy?: z.objectInputType<{
240
+ enabled: z.ZodOptional<z.ZodBoolean>;
241
+ mode: z.ZodOptional<z.ZodString>;
242
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
243
+ reviewer: z.ZodOptional<z.ZodString>;
244
+ maxActionsPerRun: z.ZodOptional<z.ZodNumber>;
245
+ permittedMutationTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_only", "low_risk_write", "high_risk_write"]>, "many">>;
246
+ requireAuditTrail: z.ZodOptional<z.ZodBoolean>;
247
+ escalationGate: z.ZodOptional<z.ZodString>;
248
+ }, z.ZodTypeAny, "passthrough"> | undefined;
249
+ branchId?: string | undefined;
250
+ worktreeType?: "refinement" | "coverage" | "contradiction" | "lens" | "belief_test" | "existential" | "discovery" | "clarification" | "confirmation" | undefined;
251
+ startDate?: number | undefined;
252
+ endDate?: number | undefined;
253
+ durationWeeks?: number | undefined;
254
+ confidenceImpact?: "high" | "low" | "medium" | undefined;
255
+ beliefFocus?: string | undefined;
256
+ keyQuestions?: z.objectInputType<{
257
+ question: z.ZodString;
258
+ status: z.ZodOptional<z.ZodEnum<["open", "answered", "forked"]>>;
259
+ answer: z.ZodOptional<z.ZodString>;
260
+ answerConfidence: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
261
+ linkedQuestionId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
262
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
263
+ evidenceSignals?: z.objectInputType<{
264
+ signal: z.ZodString;
265
+ collected: z.ZodOptional<z.ZodBoolean>;
266
+ progress: z.ZodOptional<z.ZodString>;
267
+ notes: z.ZodOptional<z.ZodString>;
268
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
269
+ decisionGate?: z.objectInputType<{
270
+ goCriteria: z.ZodArray<z.ZodString, "many">;
271
+ noGoSignals: z.ZodArray<z.ZodString, "many">;
272
+ verdict: z.ZodOptional<z.ZodEnum<["go", "no_go", "pivot", "pending"]>>;
273
+ verdictRationale: z.ZodOptional<z.ZodString>;
274
+ decidedAt: z.ZodOptional<z.ZodNumber>;
275
+ decidedBy: z.ZodOptional<z.ZodString>;
276
+ }, z.ZodTypeAny, "passthrough"> | undefined;
277
+ goCriteria?: string[] | undefined;
278
+ noGoSignals?: string[] | undefined;
279
+ autoShape?: boolean | undefined;
280
+ domainPackId?: string | undefined;
281
+ docCompanionTargets?: z.objectInputType<{
282
+ docPath: z.ZodString;
283
+ sectionAnchor: z.ZodOptional<z.ZodString>;
284
+ reason: z.ZodString;
285
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
286
+ }>;
287
+ export type AddWorktreeArgs = z.infer<typeof addWorktreeArgs>;
288
+ export declare const addWorktreeReturns: z.ZodObject<{
289
+ worktreeId: z.ZodEffects<z.ZodString, string, string>;
290
+ nodeId: z.ZodEffects<z.ZodString, string, string>;
291
+ id: z.ZodEffects<z.ZodString, string, string>;
292
+ title: z.ZodOptional<z.ZodString>;
293
+ status: z.ZodOptional<z.ZodString>;
294
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
295
+ worktreeId: z.ZodEffects<z.ZodString, string, string>;
296
+ nodeId: z.ZodEffects<z.ZodString, string, string>;
297
+ id: z.ZodEffects<z.ZodString, string, string>;
298
+ title: z.ZodOptional<z.ZodString>;
299
+ status: z.ZodOptional<z.ZodString>;
300
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
301
+ worktreeId: z.ZodEffects<z.ZodString, string, string>;
302
+ nodeId: z.ZodEffects<z.ZodString, string, string>;
303
+ id: z.ZodEffects<z.ZodString, string, string>;
304
+ title: z.ZodOptional<z.ZodString>;
305
+ status: z.ZodOptional<z.ZodString>;
306
+ }, z.ZodTypeAny, "passthrough">>;
307
+ export type AddWorktreeReturns = z.infer<typeof addWorktreeReturns>;
308
+ export declare const getWorktreeArgs: z.ZodObject<{
309
+ worktreeId: z.ZodEffects<z.ZodString, string, string>;
310
+ id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ worktreeId: string;
313
+ id?: string | undefined;
314
+ }, {
315
+ worktreeId: string;
316
+ id?: string | undefined;
317
+ }>;
318
+ export type GetWorktreeArgs = z.infer<typeof getWorktreeArgs>;
319
+ export declare const worktreeMetadataArgs: z.ZodObject<{
320
+ worktreeId: z.ZodEffects<z.ZodString, string, string>;
321
+ id: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
322
+ topicId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
323
+ additionalTopicIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
324
+ status: z.ZodOptional<z.ZodEnum<["planning", "active", "paused", "completed", "dismissed", "abandoned", "merged"]>>;
325
+ campaign: z.ZodOptional<z.ZodNumber>;
326
+ lane: z.ZodOptional<z.ZodString>;
327
+ laneOrderInCampaign: z.ZodOptional<z.ZodNumber>;
328
+ orderInLane: z.ZodOptional<z.ZodNumber>;
329
+ gate: z.ZodOptional<z.ZodString>;
330
+ hypothesis: z.ZodOptional<z.ZodString>;
331
+ objective: z.ZodOptional<z.ZodString>;
332
+ rationale: z.ZodOptional<z.ZodString>;
333
+ proofArtifacts: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
334
+ staffingHint: z.ZodOptional<z.ZodString>;
335
+ blocks: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
336
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
337
+ lensId: z.ZodOptional<z.ZodString>;
338
+ autoFixPolicy: z.ZodOptional<z.ZodObject<{
339
+ enabled: z.ZodOptional<z.ZodBoolean>;
340
+ mode: z.ZodOptional<z.ZodString>;
341
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
342
+ reviewer: z.ZodOptional<z.ZodString>;
343
+ maxActionsPerRun: z.ZodOptional<z.ZodNumber>;
344
+ permittedMutationTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_only", "low_risk_write", "high_risk_write"]>, "many">>;
345
+ requireAuditTrail: z.ZodOptional<z.ZodBoolean>;
346
+ escalationGate: z.ZodOptional<z.ZodString>;
347
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
348
+ enabled: z.ZodOptional<z.ZodBoolean>;
349
+ mode: z.ZodOptional<z.ZodString>;
350
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
351
+ reviewer: z.ZodOptional<z.ZodString>;
352
+ maxActionsPerRun: z.ZodOptional<z.ZodNumber>;
353
+ permittedMutationTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_only", "low_risk_write", "high_risk_write"]>, "many">>;
354
+ requireAuditTrail: z.ZodOptional<z.ZodBoolean>;
355
+ escalationGate: z.ZodOptional<z.ZodString>;
356
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
357
+ enabled: z.ZodOptional<z.ZodBoolean>;
358
+ mode: z.ZodOptional<z.ZodString>;
359
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
360
+ reviewer: z.ZodOptional<z.ZodString>;
361
+ maxActionsPerRun: z.ZodOptional<z.ZodNumber>;
362
+ permittedMutationTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_only", "low_risk_write", "high_risk_write"]>, "many">>;
363
+ requireAuditTrail: z.ZodOptional<z.ZodBoolean>;
364
+ escalationGate: z.ZodOptional<z.ZodString>;
365
+ }, z.ZodTypeAny, "passthrough">>>;
366
+ lastReconciledAt: z.ZodOptional<z.ZodNumber>;
367
+ }, "strip", z.ZodTypeAny, {
368
+ worktreeId: string;
369
+ id?: string | undefined;
370
+ status?: "active" | "completed" | "paused" | "merged" | "abandoned" | "planning" | "dismissed" | undefined;
371
+ blocks?: string[] | undefined;
372
+ campaign?: number | undefined;
373
+ dependsOn?: string[] | undefined;
374
+ topicId?: string | undefined;
375
+ lane?: string | undefined;
376
+ orderInLane?: number | undefined;
377
+ gate?: string | undefined;
378
+ hypothesis?: string | undefined;
379
+ rationale?: string | undefined;
380
+ lensId?: string | undefined;
381
+ laneOrderInCampaign?: number | undefined;
382
+ objective?: string | undefined;
383
+ proofArtifacts?: unknown[] | undefined;
384
+ staffingHint?: string | undefined;
385
+ lastReconciledAt?: number | undefined;
386
+ autoFixPolicy?: z.objectOutputType<{
387
+ enabled: z.ZodOptional<z.ZodBoolean>;
388
+ mode: z.ZodOptional<z.ZodString>;
389
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
390
+ reviewer: z.ZodOptional<z.ZodString>;
391
+ maxActionsPerRun: z.ZodOptional<z.ZodNumber>;
392
+ permittedMutationTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_only", "low_risk_write", "high_risk_write"]>, "many">>;
393
+ requireAuditTrail: z.ZodOptional<z.ZodBoolean>;
394
+ escalationGate: z.ZodOptional<z.ZodString>;
395
+ }, z.ZodTypeAny, "passthrough"> | undefined;
396
+ additionalTopicIds?: string[] | undefined;
397
+ }, {
398
+ worktreeId: string;
399
+ id?: string | undefined;
400
+ status?: "active" | "completed" | "paused" | "merged" | "abandoned" | "planning" | "dismissed" | undefined;
401
+ blocks?: string[] | undefined;
402
+ campaign?: number | undefined;
403
+ dependsOn?: string[] | undefined;
404
+ topicId?: string | undefined;
405
+ lane?: string | undefined;
406
+ orderInLane?: number | undefined;
407
+ gate?: string | undefined;
408
+ hypothesis?: string | undefined;
409
+ rationale?: string | undefined;
410
+ lensId?: string | undefined;
411
+ laneOrderInCampaign?: number | undefined;
412
+ objective?: string | undefined;
413
+ proofArtifacts?: unknown[] | undefined;
414
+ staffingHint?: string | undefined;
415
+ lastReconciledAt?: number | undefined;
416
+ autoFixPolicy?: z.objectInputType<{
417
+ enabled: z.ZodOptional<z.ZodBoolean>;
418
+ mode: z.ZodOptional<z.ZodString>;
419
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
420
+ reviewer: z.ZodOptional<z.ZodString>;
421
+ maxActionsPerRun: z.ZodOptional<z.ZodNumber>;
422
+ permittedMutationTiers: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_only", "low_risk_write", "high_risk_write"]>, "many">>;
423
+ requireAuditTrail: z.ZodOptional<z.ZodBoolean>;
424
+ escalationGate: z.ZodOptional<z.ZodString>;
425
+ }, z.ZodTypeAny, "passthrough"> | undefined;
426
+ additionalTopicIds?: string[] | undefined;
427
+ }>;
428
+ export type WorktreeMetadataArgs = z.infer<typeof worktreeMetadataArgs>;
2
429
  export declare const worktreesContracts: readonly [{
3
430
  name: string;
4
431
  kind: import("./types.js").FunctionKind;
5
432
  idempotent: import("./types.js").FunctionIdempotency;
6
433
  effects: readonly import("../dsl.js").FunctionEffect[];
7
434
  invariants: readonly string[] | undefined;
435
+ boundary: import("./types.js").BoundarySpec | undefined;
8
436
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
9
437
  domain: string;
10
438
  surfaceClass: import("./types.js").SurfaceClass;
@@ -50,6 +478,7 @@ export declare const worktreesContracts: readonly [{
50
478
  idempotent: import("./types.js").FunctionIdempotency;
51
479
  effects: readonly import("../dsl.js").FunctionEffect[];
52
480
  invariants: readonly string[] | undefined;
481
+ boundary: import("./types.js").BoundarySpec | undefined;
53
482
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
54
483
  domain: string;
55
484
  surfaceClass: import("./types.js").SurfaceClass;
@@ -95,6 +524,7 @@ export declare const worktreesContracts: readonly [{
95
524
  idempotent: import("./types.js").FunctionIdempotency;
96
525
  effects: readonly import("../dsl.js").FunctionEffect[];
97
526
  invariants: readonly string[] | undefined;
527
+ boundary: import("./types.js").BoundarySpec | undefined;
98
528
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
99
529
  domain: string;
100
530
  surfaceClass: import("./types.js").SurfaceClass;
@@ -140,6 +570,7 @@ export declare const worktreesContracts: readonly [{
140
570
  idempotent: import("./types.js").FunctionIdempotency;
141
571
  effects: readonly import("../dsl.js").FunctionEffect[];
142
572
  invariants: readonly string[] | undefined;
573
+ boundary: import("./types.js").BoundarySpec | undefined;
143
574
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
144
575
  domain: string;
145
576
  surfaceClass: import("./types.js").SurfaceClass;
@@ -185,6 +616,7 @@ export declare const worktreesContracts: readonly [{
185
616
  idempotent: import("./types.js").FunctionIdempotency;
186
617
  effects: readonly import("../dsl.js").FunctionEffect[];
187
618
  invariants: readonly string[] | undefined;
619
+ boundary: import("./types.js").BoundarySpec | undefined;
188
620
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
189
621
  domain: string;
190
622
  surfaceClass: import("./types.js").SurfaceClass;
@@ -230,6 +662,7 @@ export declare const worktreesContracts: readonly [{
230
662
  idempotent: import("./types.js").FunctionIdempotency;
231
663
  effects: readonly import("../dsl.js").FunctionEffect[];
232
664
  invariants: readonly string[] | undefined;
665
+ boundary: import("./types.js").BoundarySpec | undefined;
233
666
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
234
667
  domain: string;
235
668
  surfaceClass: import("./types.js").SurfaceClass;
@@ -275,6 +708,7 @@ export declare const worktreesContracts: readonly [{
275
708
  idempotent: import("./types.js").FunctionIdempotency;
276
709
  effects: readonly import("../dsl.js").FunctionEffect[];
277
710
  invariants: readonly string[] | undefined;
711
+ boundary: import("./types.js").BoundarySpec | undefined;
278
712
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
279
713
  domain: string;
280
714
  surfaceClass: import("./types.js").SurfaceClass;
@@ -320,6 +754,7 @@ export declare const worktreesContracts: readonly [{
320
754
  idempotent: import("./types.js").FunctionIdempotency;
321
755
  effects: readonly import("../dsl.js").FunctionEffect[];
322
756
  invariants: readonly string[] | undefined;
757
+ boundary: import("./types.js").BoundarySpec | undefined;
323
758
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
324
759
  domain: string;
325
760
  surfaceClass: import("./types.js").SurfaceClass;
@@ -365,6 +800,7 @@ export declare const worktreesContracts: readonly [{
365
800
  idempotent: import("./types.js").FunctionIdempotency;
366
801
  effects: readonly import("../dsl.js").FunctionEffect[];
367
802
  invariants: readonly string[] | undefined;
803
+ boundary: import("./types.js").BoundarySpec | undefined;
368
804
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
369
805
  domain: string;
370
806
  surfaceClass: import("./types.js").SurfaceClass;
@@ -410,6 +846,7 @@ export declare const worktreesContracts: readonly [{
410
846
  idempotent: import("./types.js").FunctionIdempotency;
411
847
  effects: readonly import("../dsl.js").FunctionEffect[];
412
848
  invariants: readonly string[] | undefined;
849
+ boundary: import("./types.js").BoundarySpec | undefined;
413
850
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
414
851
  domain: string;
415
852
  surfaceClass: import("./types.js").SurfaceClass;
@@ -455,6 +892,7 @@ export declare const worktreesContracts: readonly [{
455
892
  idempotent: import("./types.js").FunctionIdempotency;
456
893
  effects: readonly import("../dsl.js").FunctionEffect[];
457
894
  invariants: readonly string[] | undefined;
895
+ boundary: import("./types.js").BoundarySpec | undefined;
458
896
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
459
897
  domain: string;
460
898
  surfaceClass: import("./types.js").SurfaceClass;
@@ -500,6 +938,7 @@ export declare const worktreesContracts: readonly [{
500
938
  idempotent: import("./types.js").FunctionIdempotency;
501
939
  effects: readonly import("../dsl.js").FunctionEffect[];
502
940
  invariants: readonly string[] | undefined;
941
+ boundary: import("./types.js").BoundarySpec | undefined;
503
942
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
504
943
  domain: string;
505
944
  surfaceClass: import("./types.js").SurfaceClass;
@@ -545,6 +984,7 @@ export declare const worktreesContracts: readonly [{
545
984
  idempotent: import("./types.js").FunctionIdempotency;
546
985
  effects: readonly import("../dsl.js").FunctionEffect[];
547
986
  invariants: readonly string[] | undefined;
987
+ boundary: import("./types.js").BoundarySpec | undefined;
548
988
  surfaceIntent: import("./types.js").FunctionSurfaceIntent;
549
989
  domain: string;
550
990
  surfaceClass: import("./types.js").SurfaceClass;
@@ -6159,6 +6159,7 @@ function surfaceContract(args) {
6159
6159
  idempotent: args.idempotent ?? args.kind !== "query",
6160
6160
  effects: resolvedEffects,
6161
6161
  invariants: args.invariants,
6162
+ boundary: args.boundary,
6162
6163
  surfaceIntent: manifestEntry.surfaceIntent,
6163
6164
  domain: args.domain,
6164
6165
  surfaceClass: manifestEntry.surfaceClass,
@@ -6200,6 +6201,7 @@ function surfaceContract(args) {
6200
6201
  }
6201
6202
 
6202
6203
  // src/function-registry/worktrees.ts
6204
+ var worktreeListReturns = z.array(z.record(z.unknown()));
6203
6205
  var autoFixPolicyInputSchema = z.object({
6204
6206
  enabled: z.boolean().optional().describe("Whether automatic remediation is enabled."),
6205
6207
  mode: z.string().optional().describe("Automation mode for worktree auto-fixes."),
@@ -6499,7 +6501,10 @@ var worktreesContracts = [
6499
6501
  handler: "worktrees.create"
6500
6502
  },
6501
6503
  args: addWorktreeArgs,
6502
- returns: addWorktreeReturns
6504
+ returns: addWorktreeReturns,
6505
+ boundary: {
6506
+ scope: [{ rule: "worktree" }]
6507
+ }
6503
6508
  }),
6504
6509
  surfaceContract({
6505
6510
  name: "activate_worktree",
@@ -6554,7 +6559,8 @@ var worktreesContracts = [
6554
6559
  campaign: input.campaign,
6555
6560
  limit: input.limit
6556
6561
  })
6557
- }
6562
+ },
6563
+ returns: worktreeListReturns
6558
6564
  }),
6559
6565
  surfaceContract({
6560
6566
  name: "list_campaigns",
@@ -6703,4 +6709,4 @@ var worktreesContracts = [
6703
6709
  })
6704
6710
  ];
6705
6711
 
6706
- export { worktreesContracts };
6712
+ export { addWorktreeArgs, addWorktreeReturns, getWorktreeArgs, worktreeMetadataArgs, worktreesContracts };