@inhuman.tools/harness-contract 0.0.0-stage → 0.2.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 (53) hide show
  1. package/LICENSE.md +7 -0
  2. package/dist/contract.d.ts +1938 -0
  3. package/dist/contract.d.ts.map +1 -0
  4. package/dist/contract.js +371 -0
  5. package/dist/contract.js.map +1 -0
  6. package/dist/index.d.ts +7 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +7 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/jsonrpc.d.ts +18 -0
  11. package/dist/jsonrpc.d.ts.map +1 -0
  12. package/dist/jsonrpc.js +34 -0
  13. package/dist/jsonrpc.js.map +1 -0
  14. package/dist/schemas/authorization.d.ts +1721 -0
  15. package/dist/schemas/authorization.d.ts.map +1 -0
  16. package/dist/schemas/authorization.js +289 -0
  17. package/dist/schemas/authorization.js.map +1 -0
  18. package/dist/schemas/connection.d.ts +133 -0
  19. package/dist/schemas/connection.d.ts.map +1 -0
  20. package/dist/schemas/connection.js +55 -0
  21. package/dist/schemas/connection.js.map +1 -0
  22. package/dist/schemas/rpc.d.ts +86 -0
  23. package/dist/schemas/rpc.d.ts.map +1 -0
  24. package/dist/schemas/rpc.js +66 -0
  25. package/dist/schemas/rpc.js.map +1 -0
  26. package/dist/schemas/shapes.d.ts +539 -0
  27. package/dist/schemas/shapes.d.ts.map +1 -0
  28. package/dist/schemas/shapes.js +364 -0
  29. package/dist/schemas/shapes.js.map +1 -0
  30. package/dist/spec/cli.d.ts +3 -0
  31. package/dist/spec/cli.d.ts.map +1 -0
  32. package/dist/spec/cli.js +40 -0
  33. package/dist/spec/cli.js.map +1 -0
  34. package/dist/spec/generate.d.ts +21 -0
  35. package/dist/spec/generate.d.ts.map +1 -0
  36. package/dist/spec/generate.js +100 -0
  37. package/dist/spec/generate.js.map +1 -0
  38. package/dist/spec/readme.d.ts +4 -0
  39. package/dist/spec/readme.d.ts.map +1 -0
  40. package/dist/spec/readme.js +124 -0
  41. package/dist/spec/readme.js.map +1 -0
  42. package/package.json +57 -3
  43. package/src/contract.ts +437 -0
  44. package/src/index.ts +6 -0
  45. package/src/jsonrpc.ts +42 -0
  46. package/src/schemas/authorization.ts +312 -0
  47. package/src/schemas/connection.ts +68 -0
  48. package/src/schemas/rpc.ts +88 -0
  49. package/src/schemas/shapes.ts +402 -0
  50. package/src/spec/cli.ts +45 -0
  51. package/src/spec/generate.ts +115 -0
  52. package/src/spec/readme.ts +126 -0
  53. package/README.md +0 -3
@@ -0,0 +1,1938 @@
1
+ import { type AnyContractRouter, type ContractProcedure } from "@orpc/contract";
2
+ import { z } from "zod";
3
+ /**
4
+ * Which daemon owns the method. A method a host does not own falls through
5
+ * session, then project, then kernel, so a session socket can also call a
6
+ * kernel method; a kernel socket cannot call a session method (-32601).
7
+ * `any` is built into every host's request dispatch (`ui/resolve`).
8
+ */
9
+ export type HarnessHost = "session" | "kernel" | "any";
10
+ /** Carried by every procedure. `method` is the JSON-RPC wire name. */
11
+ export interface HarnessMeta {
12
+ readonly method: string;
13
+ readonly host: HarnessHost;
14
+ /** The method may answer `{form:"ui", pending, body}` instead of its result; the caller finishes it with `ui/resolve`. */
15
+ readonly mayPark?: true;
16
+ }
17
+ /** A contract procedure of this protocol: zod in and out, wire identity in `meta`. */
18
+ export type HarnessProcedure<I extends z.ZodType = z.ZodType, O extends z.ZodType = z.ZodType> = ContractProcedure<I, O, any, HarnessMeta>;
19
+ /** The HTTP path a procedure is projected to in the OpenAPI document. */
20
+ export declare function httpPathOf(meta: HarnessMeta): `/${string}`;
21
+ /**
22
+ * The daemon's RPC contract, grouped by host and namespace. The tree is for
23
+ * callers; the JSON-RPC wire name of each procedure is `meta.method`.
24
+ * `turn` is `session.turn.send`: the namespace and the bare method share a name.
25
+ */
26
+ export declare const contract: {
27
+ session: {
28
+ kv: {
29
+ set: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
30
+ key: z.ZodString;
31
+ value: z.ZodString;
32
+ scope: z.ZodDefault<z.ZodEnum<{
33
+ session: "session";
34
+ project: "project";
35
+ kernel: "kernel";
36
+ }>>;
37
+ remember: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"1">]>>, z.ZodTransform<boolean, boolean | "1" | undefined>>;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ ok: z.ZodLiteral<true>;
40
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
41
+ clear: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
42
+ key: z.ZodString;
43
+ scope: z.ZodDefault<z.ZodEnum<{
44
+ session: "session";
45
+ project: "project";
46
+ kernel: "kernel";
47
+ }>>;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ ok: z.ZodLiteral<true>;
50
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
51
+ };
52
+ plugin: {
53
+ method: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
54
+ plugin: z.ZodString;
55
+ method: z.ZodString;
56
+ scope: z.ZodDefault<z.ZodEnum<{
57
+ session: "session";
58
+ project: "project";
59
+ global: "global";
60
+ }>>;
61
+ args: z.ZodOptional<z.ZodString>;
62
+ field: z.ZodOptional<z.ZodString>;
63
+ input: z.ZodOptional<z.ZodString>;
64
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
65
+ ok: z.ZodLiteral<true>;
66
+ value: z.ZodUnknown;
67
+ }, z.core.$strip>, z.ZodObject<{
68
+ ok: z.ZodLiteral<false>;
69
+ error: z.ZodString;
70
+ }, z.core.$strip>]>, Record<never, never>, HarnessMeta & Record<never, never>>;
71
+ };
72
+ policy: {
73
+ set: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
74
+ policy: z.ZodEnum<{
75
+ manual: "manual";
76
+ auto: "auto";
77
+ yolo: "yolo";
78
+ }>;
79
+ }, z.core.$strip>, z.ZodObject<{
80
+ ok: z.ZodLiteral<true>;
81
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
82
+ explain: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
83
+ probe: z.ZodDiscriminatedUnion<[z.ZodObject<{
84
+ kind: z.ZodLiteral<"shell">;
85
+ command: z.ZodString;
86
+ cwd: z.ZodOptional<z.ZodString>;
87
+ }, z.core.$strict>, z.ZodObject<{
88
+ kind: z.ZodLiteral<"path">;
89
+ cluster: z.ZodEnum<{
90
+ read: "read";
91
+ write: "write";
92
+ }>;
93
+ path: z.ZodString;
94
+ }, z.core.$strict>, z.ZodObject<{
95
+ kind: z.ZodLiteral<"mcp">;
96
+ server: z.ZodString;
97
+ account: z.ZodOptional<z.ZodString>;
98
+ tool: z.ZodString;
99
+ }, z.core.$strict>, z.ZodObject<{
100
+ kind: z.ZodLiteral<"tool">;
101
+ name: z.ZodString;
102
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
103
+ }, z.core.$strict>], "kind">;
104
+ mode: z.ZodOptional<z.ZodEnum<{
105
+ manual: "manual";
106
+ auto: "auto";
107
+ yolo: "yolo";
108
+ }>>;
109
+ unattended: z.ZodOptional<z.ZodBoolean>;
110
+ }, z.core.$strict>, z.ZodObject<{
111
+ tier: z.ZodEnum<{
112
+ allow: "allow";
113
+ block: "block";
114
+ ask: "ask";
115
+ "soft-deny": "soft-deny";
116
+ }>;
117
+ classes: z.ZodArray<z.ZodObject<{
118
+ id: z.ZodEnum<{
119
+ "destroy-catastrophic": "destroy-catastrophic";
120
+ "destroy-local": "destroy-local";
121
+ "vcs-history": "vcs-history";
122
+ privilege: "privilege";
123
+ credential: "credential";
124
+ "control-plane": "control-plane";
125
+ "attack-shape": "attack-shape";
126
+ "policy-fault": "policy-fault";
127
+ "package-install": "package-install";
128
+ publish: "publish";
129
+ "remote-write": "remote-write";
130
+ "network-egress": "network-egress";
131
+ "exec-unknown": "exec-unknown";
132
+ unmodelled: "unmodelled";
133
+ "envelope-read": "envelope-read";
134
+ "envelope-write": "envelope-write";
135
+ "protected-file": "protected-file";
136
+ "workspace-write": "workspace-write";
137
+ "mcp-lookup": "mcp-lookup";
138
+ "mcp-action": "mcp-action";
139
+ }>;
140
+ label: z.ZodString;
141
+ }, z.core.$strip>>;
142
+ votes: z.ZodArray<z.ZodObject<{
143
+ tier: z.ZodEnum<{
144
+ allow: "allow";
145
+ block: "block";
146
+ ask: "ask";
147
+ "soft-deny": "soft-deny";
148
+ }>;
149
+ class: z.ZodEnum<{
150
+ "destroy-catastrophic": "destroy-catastrophic";
151
+ "destroy-local": "destroy-local";
152
+ "vcs-history": "vcs-history";
153
+ privilege: "privilege";
154
+ credential: "credential";
155
+ "control-plane": "control-plane";
156
+ "attack-shape": "attack-shape";
157
+ "policy-fault": "policy-fault";
158
+ "package-install": "package-install";
159
+ publish: "publish";
160
+ "remote-write": "remote-write";
161
+ "network-egress": "network-egress";
162
+ "exec-unknown": "exec-unknown";
163
+ unmodelled: "unmodelled";
164
+ "envelope-read": "envelope-read";
165
+ "envelope-write": "envelope-write";
166
+ "protected-file": "protected-file";
167
+ "workspace-write": "workspace-write";
168
+ "mcp-lookup": "mcp-lookup";
169
+ "mcp-action": "mcp-action";
170
+ }>;
171
+ ruleId: z.ZodString;
172
+ lift: z.ZodOptional<z.ZodString>;
173
+ }, z.core.$strip>>;
174
+ resolver: z.ZodNullable<z.ZodObject<{
175
+ kind: z.ZodEnum<{
176
+ allow: "allow";
177
+ judge: "judge";
178
+ human: "human";
179
+ deny: "deny";
180
+ }>;
181
+ layer: z.ZodEnum<{
182
+ session: "session";
183
+ project: "project";
184
+ dist: "dist";
185
+ managed: "managed";
186
+ user: "user";
187
+ }>;
188
+ onDeny: z.ZodOptional<z.ZodEnum<{
189
+ human: "human";
190
+ deny: "deny";
191
+ }>>;
192
+ onFail: z.ZodOptional<z.ZodEnum<{
193
+ human: "human";
194
+ deny: "deny";
195
+ }>>;
196
+ }, z.core.$strip>>;
197
+ grant: z.ZodNullable<z.ZodObject<{
198
+ id: z.ZodString;
199
+ kind: z.ZodOptional<z.ZodEnum<{
200
+ grant: "grant";
201
+ ack: "ack";
202
+ }>>;
203
+ scope: z.ZodEnum<{
204
+ session: "session";
205
+ project: "project";
206
+ bot: "bot";
207
+ global: "global";
208
+ }>;
209
+ scopeKey: z.ZodString;
210
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
211
+ kind: z.ZodLiteral<"command">;
212
+ argv0: z.ZodString;
213
+ spine: z.ZodArray<z.ZodString>;
214
+ args: z.ZodArray<z.ZodString>;
215
+ }, z.core.$strict>, z.ZodObject<{
216
+ kind: z.ZodLiteral<"path">;
217
+ cluster: z.ZodEnum<{
218
+ read: "read";
219
+ write: "write";
220
+ }>;
221
+ path: z.ZodString;
222
+ depth: z.ZodEnum<{
223
+ exact: "exact";
224
+ subtree: "subtree";
225
+ }>;
226
+ }, z.core.$strict>, z.ZodObject<{
227
+ kind: z.ZodLiteral<"mcp">;
228
+ server: z.ZodString;
229
+ account: z.ZodOptional<z.ZodString>;
230
+ tool: z.ZodOptional<z.ZodString>;
231
+ }, z.core.$strict>, z.ZodObject<{
232
+ kind: z.ZodLiteral<"tool">;
233
+ name: z.ZodString;
234
+ }, z.core.$strict>, z.ZodObject<{
235
+ kind: z.ZodLiteral<"class">;
236
+ class: z.ZodEnum<{
237
+ "destroy-catastrophic": "destroy-catastrophic";
238
+ "destroy-local": "destroy-local";
239
+ "vcs-history": "vcs-history";
240
+ privilege: "privilege";
241
+ credential: "credential";
242
+ "control-plane": "control-plane";
243
+ "attack-shape": "attack-shape";
244
+ "policy-fault": "policy-fault";
245
+ "package-install": "package-install";
246
+ publish: "publish";
247
+ "remote-write": "remote-write";
248
+ "network-egress": "network-egress";
249
+ "exec-unknown": "exec-unknown";
250
+ unmodelled: "unmodelled";
251
+ "envelope-read": "envelope-read";
252
+ "envelope-write": "envelope-write";
253
+ "protected-file": "protected-file";
254
+ "workspace-write": "workspace-write";
255
+ "mcp-lookup": "mcp-lookup";
256
+ "mcp-action": "mcp-action";
257
+ }>;
258
+ }, z.core.$strict>], "kind">;
259
+ createdAtMs: z.ZodNumber;
260
+ expiresAtMs: z.ZodNullable<z.ZodNumber>;
261
+ source: z.ZodEnum<{
262
+ prompt: "prompt";
263
+ settings: "settings";
264
+ }>;
265
+ label: z.ZodString;
266
+ }, z.core.$strict>>;
267
+ grantable: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
268
+ kind: z.ZodLiteral<"command">;
269
+ argv0: z.ZodString;
270
+ spine: z.ZodArray<z.ZodString>;
271
+ args: z.ZodArray<z.ZodString>;
272
+ }, z.core.$strict>, z.ZodObject<{
273
+ kind: z.ZodLiteral<"path">;
274
+ cluster: z.ZodEnum<{
275
+ read: "read";
276
+ write: "write";
277
+ }>;
278
+ path: z.ZodString;
279
+ depth: z.ZodEnum<{
280
+ exact: "exact";
281
+ subtree: "subtree";
282
+ }>;
283
+ }, z.core.$strict>, z.ZodObject<{
284
+ kind: z.ZodLiteral<"mcp">;
285
+ server: z.ZodString;
286
+ account: z.ZodOptional<z.ZodString>;
287
+ tool: z.ZodOptional<z.ZodString>;
288
+ }, z.core.$strict>, z.ZodObject<{
289
+ kind: z.ZodLiteral<"tool">;
290
+ name: z.ZodString;
291
+ }, z.core.$strict>, z.ZodObject<{
292
+ kind: z.ZodLiteral<"class">;
293
+ class: z.ZodEnum<{
294
+ "destroy-catastrophic": "destroy-catastrophic";
295
+ "destroy-local": "destroy-local";
296
+ "vcs-history": "vcs-history";
297
+ privilege: "privilege";
298
+ credential: "credential";
299
+ "control-plane": "control-plane";
300
+ "attack-shape": "attack-shape";
301
+ "policy-fault": "policy-fault";
302
+ "package-install": "package-install";
303
+ publish: "publish";
304
+ "remote-write": "remote-write";
305
+ "network-egress": "network-egress";
306
+ "exec-unknown": "exec-unknown";
307
+ unmodelled: "unmodelled";
308
+ "envelope-read": "envelope-read";
309
+ "envelope-write": "envelope-write";
310
+ "protected-file": "protected-file";
311
+ "workspace-write": "workspace-write";
312
+ "mcp-lookup": "mcp-lookup";
313
+ "mcp-action": "mcp-action";
314
+ }>;
315
+ }, z.core.$strict>], "kind">>;
316
+ outcome: z.ZodEnum<{
317
+ runs: "runs";
318
+ "judge-ask": "judge-ask";
319
+ "judge-soft-deny": "judge-soft-deny";
320
+ "prompts-you": "prompts-you";
321
+ denied: "denied";
322
+ blocked: "blocked";
323
+ }>;
324
+ ack: z.ZodNullable<z.ZodObject<{
325
+ flags: z.ZodArray<z.ZodObject<{
326
+ label: z.ZodString;
327
+ why: z.ZodOptional<z.ZodString>;
328
+ layer: z.ZodString;
329
+ }, z.core.$strip>>;
330
+ satisfiedBy: z.ZodNullable<z.ZodObject<{
331
+ id: z.ZodString;
332
+ kind: z.ZodOptional<z.ZodEnum<{
333
+ grant: "grant";
334
+ ack: "ack";
335
+ }>>;
336
+ scope: z.ZodEnum<{
337
+ session: "session";
338
+ project: "project";
339
+ bot: "bot";
340
+ global: "global";
341
+ }>;
342
+ scopeKey: z.ZodString;
343
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
344
+ kind: z.ZodLiteral<"command">;
345
+ argv0: z.ZodString;
346
+ spine: z.ZodArray<z.ZodString>;
347
+ args: z.ZodArray<z.ZodString>;
348
+ }, z.core.$strict>, z.ZodObject<{
349
+ kind: z.ZodLiteral<"path">;
350
+ cluster: z.ZodEnum<{
351
+ read: "read";
352
+ write: "write";
353
+ }>;
354
+ path: z.ZodString;
355
+ depth: z.ZodEnum<{
356
+ exact: "exact";
357
+ subtree: "subtree";
358
+ }>;
359
+ }, z.core.$strict>, z.ZodObject<{
360
+ kind: z.ZodLiteral<"mcp">;
361
+ server: z.ZodString;
362
+ account: z.ZodOptional<z.ZodString>;
363
+ tool: z.ZodOptional<z.ZodString>;
364
+ }, z.core.$strict>, z.ZodObject<{
365
+ kind: z.ZodLiteral<"tool">;
366
+ name: z.ZodString;
367
+ }, z.core.$strict>, z.ZodObject<{
368
+ kind: z.ZodLiteral<"class">;
369
+ class: z.ZodEnum<{
370
+ "destroy-catastrophic": "destroy-catastrophic";
371
+ "destroy-local": "destroy-local";
372
+ "vcs-history": "vcs-history";
373
+ privilege: "privilege";
374
+ credential: "credential";
375
+ "control-plane": "control-plane";
376
+ "attack-shape": "attack-shape";
377
+ "policy-fault": "policy-fault";
378
+ "package-install": "package-install";
379
+ publish: "publish";
380
+ "remote-write": "remote-write";
381
+ "network-egress": "network-egress";
382
+ "exec-unknown": "exec-unknown";
383
+ unmodelled: "unmodelled";
384
+ "envelope-read": "envelope-read";
385
+ "envelope-write": "envelope-write";
386
+ "protected-file": "protected-file";
387
+ "workspace-write": "workspace-write";
388
+ "mcp-lookup": "mcp-lookup";
389
+ "mcp-action": "mcp-action";
390
+ }>;
391
+ }, z.core.$strict>], "kind">;
392
+ createdAtMs: z.ZodNumber;
393
+ expiresAtMs: z.ZodNullable<z.ZodNumber>;
394
+ source: z.ZodEnum<{
395
+ prompt: "prompt";
396
+ settings: "settings";
397
+ }>;
398
+ label: z.ZodString;
399
+ }, z.core.$strict>>;
400
+ }, z.core.$strip>>;
401
+ reason: z.ZodString;
402
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
403
+ overlay: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
404
+ overlay: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
405
+ }, z.core.$strict>, z.ZodObject<{
406
+ ok: z.ZodBoolean;
407
+ errors: z.ZodArray<z.ZodString>;
408
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
409
+ configGet: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
410
+ layers: z.ZodObject<{
411
+ user: z.ZodString;
412
+ project: z.ZodString;
413
+ session: z.ZodString;
414
+ }, z.core.$strip>;
415
+ warnings: z.ZodArray<z.ZodString>;
416
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
417
+ };
418
+ connect: {
419
+ adopt: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
420
+ driver: z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodObject<{
421
+ name: z.ZodString;
422
+ }, z.core.$strip>, z.ZodTransform<string, {
423
+ name: string;
424
+ }>>]>;
425
+ name: z.ZodOptional<z.ZodString>;
426
+ settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
427
+ secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
428
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
429
+ id: z.ZodString;
430
+ }, z.core.$strip>, z.ZodObject<{
431
+ ok: z.ZodLiteral<false>;
432
+ }, z.core.$strip>]>, z.ZodObject<{
433
+ form: z.ZodLiteral<"ui">;
434
+ body: z.ZodString;
435
+ pending: z.ZodString;
436
+ }, z.core.$loose>]>, Record<never, never>, HarnessMeta & Record<never, never>>;
437
+ };
438
+ turn: {
439
+ send: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
440
+ prompt: z.ZodString;
441
+ kind: z.ZodOptional<z.ZodEnum<{
442
+ steer: "steer";
443
+ queue: "queue";
444
+ continue: "continue";
445
+ }>>;
446
+ visuals: z.ZodOptional<z.ZodArray<z.ZodObject<{
447
+ mime: z.ZodString;
448
+ bytesBase64: z.ZodString;
449
+ sourcePath: z.ZodOptional<z.ZodString>;
450
+ }, z.core.$strip>>>;
451
+ }, z.core.$strip>, z.ZodObject<{
452
+ ok: z.ZodLiteral<true>;
453
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
454
+ cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodUnion<readonly [z.ZodObject<{
455
+ turnId: z.ZodString;
456
+ }, z.core.$strict>, z.ZodObject<{
457
+ requestId: z.ZodString;
458
+ }, z.core.$strict>]>, z.ZodObject<{
459
+ ok: z.ZodLiteral<true>;
460
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
461
+ visual: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
462
+ id: z.ZodString;
463
+ }, z.core.$strip>, z.ZodObject<{
464
+ id: z.ZodString;
465
+ mime: z.ZodString;
466
+ bytesBase64: z.ZodString;
467
+ width: z.ZodNumber;
468
+ height: z.ZodNumber;
469
+ resizedFrom: z.ZodNullable<z.ZodObject<{
470
+ width: z.ZodNumber;
471
+ height: z.ZodNumber;
472
+ }, z.core.$strip>>;
473
+ sourcePath: z.ZodNullable<z.ZodString>;
474
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
475
+ rewind: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
476
+ turnId: z.ZodString;
477
+ }, z.core.$strip>, z.ZodObject<{
478
+ ok: z.ZodLiteral<true>;
479
+ turnId: z.ZodString;
480
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
481
+ retry: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
482
+ ok: z.ZodLiteral<true>;
483
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
484
+ };
485
+ blob: {
486
+ get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
487
+ sha256: z.ZodString;
488
+ }, z.core.$strip>, z.ZodObject<{
489
+ sha256: z.ZodString;
490
+ bytes: z.ZodNumber;
491
+ mime: z.ZodString;
492
+ text: z.ZodNullable<z.ZodString>;
493
+ bytesBase64: z.ZodNullable<z.ZodString>;
494
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
495
+ vacuum: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
496
+ dryRun: z.ZodOptional<z.ZodBoolean>;
497
+ }, z.core.$strip>, z.ZodObject<{
498
+ dryRun: z.ZodBoolean;
499
+ fileMutates: z.ZodNumber;
500
+ promptMessages: z.ZodNumber;
501
+ promptTexts: z.ZodNumber;
502
+ bytesMoved: z.ZodNumber;
503
+ imageBytesBefore: z.ZodNumber;
504
+ imageBytesAfter: z.ZodNumber;
505
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
506
+ };
507
+ compact: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
508
+ focus: z.ZodOptional<z.ZodString>;
509
+ from: z.ZodOptional<z.ZodLiteral<"overflow">>;
510
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
511
+ ok: z.ZodLiteral<true>;
512
+ compacted: z.ZodBoolean;
513
+ }, z.core.$strip>, z.ZodObject<{
514
+ ok: z.ZodLiteral<false>;
515
+ reason: z.ZodString;
516
+ }, z.core.$strip>]>, Record<never, never>, HarnessMeta & Record<never, never>>;
517
+ rename: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
518
+ title: z.ZodString;
519
+ }, z.core.$strip>, z.ZodObject<{
520
+ ok: z.ZodLiteral<true>;
521
+ title: z.ZodString;
522
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
523
+ eval: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
524
+ requestId: z.ZodString;
525
+ expr: z.ZodString;
526
+ source: z.ZodOptional<z.ZodString>;
527
+ sourcePath: z.ZodOptional<z.ZodString>;
528
+ policy: z.ZodDefault<z.ZodOptional<z.ZodString>>;
529
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
530
+ ok: z.ZodLiteral<true>;
531
+ turnId: z.ZodString;
532
+ programId: z.ZodString;
533
+ }, z.core.$strip>, z.ZodObject<{
534
+ ok: z.ZodLiteral<false>;
535
+ code: z.ZodLiteral<"policy_unavailable">;
536
+ text: z.ZodString;
537
+ }, z.core.$strip>]>, Record<never, never>, HarnessMeta & Record<never, never>>;
538
+ ask: {
539
+ answer: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
540
+ sessionId: z.ZodString;
541
+ jobId: z.ZodString;
542
+ allow: z.ZodBoolean;
543
+ comment: z.ZodOptional<z.ZodString>;
544
+ widen: z.ZodOptional<z.ZodString>;
545
+ store: z.ZodOptional<z.ZodObject<{
546
+ scope: z.ZodEnum<{
547
+ session: "session";
548
+ project: "project";
549
+ bot: "bot";
550
+ global: "global";
551
+ }>;
552
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
553
+ kind: z.ZodLiteral<"command">;
554
+ argv0: z.ZodString;
555
+ spine: z.ZodArray<z.ZodString>;
556
+ args: z.ZodArray<z.ZodString>;
557
+ }, z.core.$strict>, z.ZodObject<{
558
+ kind: z.ZodLiteral<"path">;
559
+ cluster: z.ZodEnum<{
560
+ read: "read";
561
+ write: "write";
562
+ }>;
563
+ path: z.ZodString;
564
+ depth: z.ZodEnum<{
565
+ exact: "exact";
566
+ subtree: "subtree";
567
+ }>;
568
+ }, z.core.$strict>, z.ZodObject<{
569
+ kind: z.ZodLiteral<"mcp">;
570
+ server: z.ZodString;
571
+ account: z.ZodOptional<z.ZodString>;
572
+ tool: z.ZodOptional<z.ZodString>;
573
+ }, z.core.$strict>, z.ZodObject<{
574
+ kind: z.ZodLiteral<"tool">;
575
+ name: z.ZodString;
576
+ }, z.core.$strict>, z.ZodObject<{
577
+ kind: z.ZodLiteral<"class">;
578
+ class: z.ZodEnum<{
579
+ "destroy-catastrophic": "destroy-catastrophic";
580
+ "destroy-local": "destroy-local";
581
+ "vcs-history": "vcs-history";
582
+ privilege: "privilege";
583
+ credential: "credential";
584
+ "control-plane": "control-plane";
585
+ "attack-shape": "attack-shape";
586
+ "policy-fault": "policy-fault";
587
+ "package-install": "package-install";
588
+ publish: "publish";
589
+ "remote-write": "remote-write";
590
+ "network-egress": "network-egress";
591
+ "exec-unknown": "exec-unknown";
592
+ unmodelled: "unmodelled";
593
+ "envelope-read": "envelope-read";
594
+ "envelope-write": "envelope-write";
595
+ "protected-file": "protected-file";
596
+ "workspace-write": "workspace-write";
597
+ "mcp-lookup": "mcp-lookup";
598
+ "mcp-action": "mcp-action";
599
+ }>;
600
+ }, z.core.$strict>], "kind">;
601
+ ttlMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
602
+ }, z.core.$strict>>;
603
+ ackStore: z.ZodOptional<z.ZodObject<{
604
+ scope: z.ZodEnum<{
605
+ session: "session";
606
+ project: "project";
607
+ bot: "bot";
608
+ global: "global";
609
+ }>;
610
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
611
+ kind: z.ZodLiteral<"command">;
612
+ argv0: z.ZodString;
613
+ spine: z.ZodArray<z.ZodString>;
614
+ args: z.ZodArray<z.ZodString>;
615
+ }, z.core.$strict>, z.ZodObject<{
616
+ kind: z.ZodLiteral<"path">;
617
+ cluster: z.ZodEnum<{
618
+ read: "read";
619
+ write: "write";
620
+ }>;
621
+ path: z.ZodString;
622
+ depth: z.ZodEnum<{
623
+ exact: "exact";
624
+ subtree: "subtree";
625
+ }>;
626
+ }, z.core.$strict>, z.ZodObject<{
627
+ kind: z.ZodLiteral<"mcp">;
628
+ server: z.ZodString;
629
+ account: z.ZodOptional<z.ZodString>;
630
+ tool: z.ZodOptional<z.ZodString>;
631
+ }, z.core.$strict>, z.ZodObject<{
632
+ kind: z.ZodLiteral<"tool">;
633
+ name: z.ZodString;
634
+ }, z.core.$strict>, z.ZodObject<{
635
+ kind: z.ZodLiteral<"class">;
636
+ class: z.ZodEnum<{
637
+ "destroy-catastrophic": "destroy-catastrophic";
638
+ "destroy-local": "destroy-local";
639
+ "vcs-history": "vcs-history";
640
+ privilege: "privilege";
641
+ credential: "credential";
642
+ "control-plane": "control-plane";
643
+ "attack-shape": "attack-shape";
644
+ "policy-fault": "policy-fault";
645
+ "package-install": "package-install";
646
+ publish: "publish";
647
+ "remote-write": "remote-write";
648
+ "network-egress": "network-egress";
649
+ "exec-unknown": "exec-unknown";
650
+ unmodelled: "unmodelled";
651
+ "envelope-read": "envelope-read";
652
+ "envelope-write": "envelope-write";
653
+ "protected-file": "protected-file";
654
+ "workspace-write": "workspace-write";
655
+ "mcp-lookup": "mcp-lookup";
656
+ "mcp-action": "mcp-action";
657
+ }>;
658
+ }, z.core.$strict>], "kind">;
659
+ ttlMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
660
+ }, z.core.$strict>>;
661
+ persist: z.ZodOptional<z.ZodEnum<{
662
+ session: "session";
663
+ always: "always";
664
+ }>>;
665
+ }, z.core.$strip>, z.ZodObject<{
666
+ ok: z.ZodBoolean;
667
+ reason: z.ZodOptional<z.ZodEnum<{
668
+ "not-pending": "not-pending";
669
+ block: "block";
670
+ "soft-deny-not-storable": "soft-deny-not-storable";
671
+ "subject-not-offered": "subject-not-offered";
672
+ "folder-not-allowed": "folder-not-allowed";
673
+ "scope-unavailable": "scope-unavailable";
674
+ }>>;
675
+ grant: z.ZodOptional<z.ZodObject<{
676
+ id: z.ZodString;
677
+ kind: z.ZodOptional<z.ZodEnum<{
678
+ grant: "grant";
679
+ ack: "ack";
680
+ }>>;
681
+ scope: z.ZodEnum<{
682
+ session: "session";
683
+ project: "project";
684
+ bot: "bot";
685
+ global: "global";
686
+ }>;
687
+ scopeKey: z.ZodString;
688
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
689
+ kind: z.ZodLiteral<"command">;
690
+ argv0: z.ZodString;
691
+ spine: z.ZodArray<z.ZodString>;
692
+ args: z.ZodArray<z.ZodString>;
693
+ }, z.core.$strict>, z.ZodObject<{
694
+ kind: z.ZodLiteral<"path">;
695
+ cluster: z.ZodEnum<{
696
+ read: "read";
697
+ write: "write";
698
+ }>;
699
+ path: z.ZodString;
700
+ depth: z.ZodEnum<{
701
+ exact: "exact";
702
+ subtree: "subtree";
703
+ }>;
704
+ }, z.core.$strict>, z.ZodObject<{
705
+ kind: z.ZodLiteral<"mcp">;
706
+ server: z.ZodString;
707
+ account: z.ZodOptional<z.ZodString>;
708
+ tool: z.ZodOptional<z.ZodString>;
709
+ }, z.core.$strict>, z.ZodObject<{
710
+ kind: z.ZodLiteral<"tool">;
711
+ name: z.ZodString;
712
+ }, z.core.$strict>, z.ZodObject<{
713
+ kind: z.ZodLiteral<"class">;
714
+ class: z.ZodEnum<{
715
+ "destroy-catastrophic": "destroy-catastrophic";
716
+ "destroy-local": "destroy-local";
717
+ "vcs-history": "vcs-history";
718
+ privilege: "privilege";
719
+ credential: "credential";
720
+ "control-plane": "control-plane";
721
+ "attack-shape": "attack-shape";
722
+ "policy-fault": "policy-fault";
723
+ "package-install": "package-install";
724
+ publish: "publish";
725
+ "remote-write": "remote-write";
726
+ "network-egress": "network-egress";
727
+ "exec-unknown": "exec-unknown";
728
+ unmodelled: "unmodelled";
729
+ "envelope-read": "envelope-read";
730
+ "envelope-write": "envelope-write";
731
+ "protected-file": "protected-file";
732
+ "workspace-write": "workspace-write";
733
+ "mcp-lookup": "mcp-lookup";
734
+ "mcp-action": "mcp-action";
735
+ }>;
736
+ }, z.core.$strict>], "kind">;
737
+ createdAtMs: z.ZodNumber;
738
+ expiresAtMs: z.ZodNullable<z.ZodNumber>;
739
+ source: z.ZodEnum<{
740
+ prompt: "prompt";
741
+ settings: "settings";
742
+ }>;
743
+ label: z.ZodString;
744
+ }, z.core.$strict>>;
745
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
746
+ };
747
+ ack: {
748
+ pending: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
749
+ sessionId: z.ZodOptional<z.ZodString>;
750
+ }, z.core.$strict>, z.ZodObject<{
751
+ acks: z.ZodArray<z.ZodObject<{
752
+ ackId: z.ZodString;
753
+ sessionId: z.ZodString;
754
+ jobId: z.ZodString;
755
+ tool: z.ZodString;
756
+ summary: z.ZodString;
757
+ detail: z.ZodString;
758
+ flags: z.ZodArray<z.ZodObject<{
759
+ label: z.ZodString;
760
+ why: z.ZodOptional<z.ZodString>;
761
+ layer: z.ZodEnum<{
762
+ session: "session";
763
+ project: "project";
764
+ dist: "dist";
765
+ managed: "managed";
766
+ user: "user";
767
+ }>;
768
+ }, z.core.$strip>>;
769
+ verdict: z.ZodObject<{
770
+ tier: z.ZodEnum<{
771
+ allow: "allow";
772
+ ask: "ask";
773
+ "soft-deny": "soft-deny";
774
+ }>;
775
+ classes: z.ZodArray<z.ZodEnum<{
776
+ "destroy-catastrophic": "destroy-catastrophic";
777
+ "destroy-local": "destroy-local";
778
+ "vcs-history": "vcs-history";
779
+ privilege: "privilege";
780
+ credential: "credential";
781
+ "control-plane": "control-plane";
782
+ "attack-shape": "attack-shape";
783
+ "policy-fault": "policy-fault";
784
+ "package-install": "package-install";
785
+ publish: "publish";
786
+ "remote-write": "remote-write";
787
+ "network-egress": "network-egress";
788
+ "exec-unknown": "exec-unknown";
789
+ unmodelled: "unmodelled";
790
+ "envelope-read": "envelope-read";
791
+ "envelope-write": "envelope-write";
792
+ "protected-file": "protected-file";
793
+ "workspace-write": "workspace-write";
794
+ "mcp-lookup": "mcp-lookup";
795
+ "mcp-action": "mcp-action";
796
+ }>>;
797
+ licensedBy: z.ZodEnum<{
798
+ grant: "grant";
799
+ floor: "floor";
800
+ judge: "judge";
801
+ resolver: "resolver";
802
+ pending: "pending";
803
+ }>;
804
+ }, z.core.$strip>;
805
+ storeOptions: z.ZodArray<z.ZodObject<{
806
+ scope: z.ZodEnum<{
807
+ session: "session";
808
+ project: "project";
809
+ bot: "bot";
810
+ global: "global";
811
+ }>;
812
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
813
+ kind: z.ZodLiteral<"command">;
814
+ argv0: z.ZodString;
815
+ spine: z.ZodArray<z.ZodString>;
816
+ args: z.ZodArray<z.ZodString>;
817
+ }, z.core.$strict>, z.ZodObject<{
818
+ kind: z.ZodLiteral<"path">;
819
+ cluster: z.ZodEnum<{
820
+ read: "read";
821
+ write: "write";
822
+ }>;
823
+ path: z.ZodString;
824
+ depth: z.ZodEnum<{
825
+ exact: "exact";
826
+ subtree: "subtree";
827
+ }>;
828
+ }, z.core.$strict>, z.ZodObject<{
829
+ kind: z.ZodLiteral<"mcp">;
830
+ server: z.ZodString;
831
+ account: z.ZodOptional<z.ZodString>;
832
+ tool: z.ZodOptional<z.ZodString>;
833
+ }, z.core.$strict>, z.ZodObject<{
834
+ kind: z.ZodLiteral<"tool">;
835
+ name: z.ZodString;
836
+ }, z.core.$strict>, z.ZodObject<{
837
+ kind: z.ZodLiteral<"class">;
838
+ class: z.ZodEnum<{
839
+ "destroy-catastrophic": "destroy-catastrophic";
840
+ "destroy-local": "destroy-local";
841
+ "vcs-history": "vcs-history";
842
+ privilege: "privilege";
843
+ credential: "credential";
844
+ "control-plane": "control-plane";
845
+ "attack-shape": "attack-shape";
846
+ "policy-fault": "policy-fault";
847
+ "package-install": "package-install";
848
+ publish: "publish";
849
+ "remote-write": "remote-write";
850
+ "network-egress": "network-egress";
851
+ "exec-unknown": "exec-unknown";
852
+ unmodelled: "unmodelled";
853
+ "envelope-read": "envelope-read";
854
+ "envelope-write": "envelope-write";
855
+ "protected-file": "protected-file";
856
+ "workspace-write": "workspace-write";
857
+ "mcp-lookup": "mcp-lookup";
858
+ "mcp-action": "mcp-action";
859
+ }>;
860
+ }, z.core.$strict>], "kind">;
861
+ label: z.ZodString;
862
+ defaultTtlMs: z.ZodNullable<z.ZodNumber>;
863
+ }, z.core.$strip>>;
864
+ createdAtMs: z.ZodNumber;
865
+ }, z.core.$strip>>;
866
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
867
+ answer: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
868
+ sessionId: z.ZodString;
869
+ jobId: z.ZodString;
870
+ ackId: z.ZodString;
871
+ accept: z.ZodBoolean;
872
+ store: z.ZodOptional<z.ZodObject<{
873
+ scope: z.ZodEnum<{
874
+ session: "session";
875
+ project: "project";
876
+ bot: "bot";
877
+ global: "global";
878
+ }>;
879
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
880
+ kind: z.ZodLiteral<"command">;
881
+ argv0: z.ZodString;
882
+ spine: z.ZodArray<z.ZodString>;
883
+ args: z.ZodArray<z.ZodString>;
884
+ }, z.core.$strict>, z.ZodObject<{
885
+ kind: z.ZodLiteral<"path">;
886
+ cluster: z.ZodEnum<{
887
+ read: "read";
888
+ write: "write";
889
+ }>;
890
+ path: z.ZodString;
891
+ depth: z.ZodEnum<{
892
+ exact: "exact";
893
+ subtree: "subtree";
894
+ }>;
895
+ }, z.core.$strict>, z.ZodObject<{
896
+ kind: z.ZodLiteral<"mcp">;
897
+ server: z.ZodString;
898
+ account: z.ZodOptional<z.ZodString>;
899
+ tool: z.ZodOptional<z.ZodString>;
900
+ }, z.core.$strict>, z.ZodObject<{
901
+ kind: z.ZodLiteral<"tool">;
902
+ name: z.ZodString;
903
+ }, z.core.$strict>, z.ZodObject<{
904
+ kind: z.ZodLiteral<"class">;
905
+ class: z.ZodEnum<{
906
+ "destroy-catastrophic": "destroy-catastrophic";
907
+ "destroy-local": "destroy-local";
908
+ "vcs-history": "vcs-history";
909
+ privilege: "privilege";
910
+ credential: "credential";
911
+ "control-plane": "control-plane";
912
+ "attack-shape": "attack-shape";
913
+ "policy-fault": "policy-fault";
914
+ "package-install": "package-install";
915
+ publish: "publish";
916
+ "remote-write": "remote-write";
917
+ "network-egress": "network-egress";
918
+ "exec-unknown": "exec-unknown";
919
+ unmodelled: "unmodelled";
920
+ "envelope-read": "envelope-read";
921
+ "envelope-write": "envelope-write";
922
+ "protected-file": "protected-file";
923
+ "workspace-write": "workspace-write";
924
+ "mcp-lookup": "mcp-lookup";
925
+ "mcp-action": "mcp-action";
926
+ }>;
927
+ }, z.core.$strict>], "kind">;
928
+ ttlMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
929
+ }, z.core.$strict>>;
930
+ comment: z.ZodOptional<z.ZodString>;
931
+ }, z.core.$strict>, z.ZodObject<{
932
+ ok: z.ZodBoolean;
933
+ reason: z.ZodOptional<z.ZodEnum<{
934
+ "not-pending": "not-pending";
935
+ "subject-not-offered": "subject-not-offered";
936
+ "scope-unavailable": "scope-unavailable";
937
+ }>>;
938
+ ack: z.ZodOptional<z.ZodObject<{
939
+ id: z.ZodString;
940
+ kind: z.ZodOptional<z.ZodEnum<{
941
+ grant: "grant";
942
+ ack: "ack";
943
+ }>>;
944
+ scope: z.ZodEnum<{
945
+ session: "session";
946
+ project: "project";
947
+ bot: "bot";
948
+ global: "global";
949
+ }>;
950
+ scopeKey: z.ZodString;
951
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
952
+ kind: z.ZodLiteral<"command">;
953
+ argv0: z.ZodString;
954
+ spine: z.ZodArray<z.ZodString>;
955
+ args: z.ZodArray<z.ZodString>;
956
+ }, z.core.$strict>, z.ZodObject<{
957
+ kind: z.ZodLiteral<"path">;
958
+ cluster: z.ZodEnum<{
959
+ read: "read";
960
+ write: "write";
961
+ }>;
962
+ path: z.ZodString;
963
+ depth: z.ZodEnum<{
964
+ exact: "exact";
965
+ subtree: "subtree";
966
+ }>;
967
+ }, z.core.$strict>, z.ZodObject<{
968
+ kind: z.ZodLiteral<"mcp">;
969
+ server: z.ZodString;
970
+ account: z.ZodOptional<z.ZodString>;
971
+ tool: z.ZodOptional<z.ZodString>;
972
+ }, z.core.$strict>, z.ZodObject<{
973
+ kind: z.ZodLiteral<"tool">;
974
+ name: z.ZodString;
975
+ }, z.core.$strict>, z.ZodObject<{
976
+ kind: z.ZodLiteral<"class">;
977
+ class: z.ZodEnum<{
978
+ "destroy-catastrophic": "destroy-catastrophic";
979
+ "destroy-local": "destroy-local";
980
+ "vcs-history": "vcs-history";
981
+ privilege: "privilege";
982
+ credential: "credential";
983
+ "control-plane": "control-plane";
984
+ "attack-shape": "attack-shape";
985
+ "policy-fault": "policy-fault";
986
+ "package-install": "package-install";
987
+ publish: "publish";
988
+ "remote-write": "remote-write";
989
+ "network-egress": "network-egress";
990
+ "exec-unknown": "exec-unknown";
991
+ unmodelled: "unmodelled";
992
+ "envelope-read": "envelope-read";
993
+ "envelope-write": "envelope-write";
994
+ "protected-file": "protected-file";
995
+ "workspace-write": "workspace-write";
996
+ "mcp-lookup": "mcp-lookup";
997
+ "mcp-action": "mcp-action";
998
+ }>;
999
+ }, z.core.$strict>], "kind">;
1000
+ createdAtMs: z.ZodNumber;
1001
+ expiresAtMs: z.ZodNullable<z.ZodNumber>;
1002
+ source: z.ZodEnum<{
1003
+ prompt: "prompt";
1004
+ settings: "settings";
1005
+ }>;
1006
+ label: z.ZodString;
1007
+ }, z.core.$strict>>;
1008
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1009
+ };
1010
+ resident: {
1011
+ set: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1012
+ resident: z.ZodBoolean;
1013
+ }, z.core.$strip>, z.ZodObject<{
1014
+ ok: z.ZodLiteral<true>;
1015
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1016
+ };
1017
+ queue: {
1018
+ steerFirst: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1019
+ id: z.ZodString;
1020
+ }, z.core.$strip>, z.ZodObject<{
1021
+ ok: z.ZodBoolean;
1022
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1023
+ retractLast: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1024
+ id: z.ZodString;
1025
+ }, z.core.$strip>, z.ZodObject<{
1026
+ ok: z.ZodBoolean;
1027
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1028
+ };
1029
+ agentCalls: {
1030
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
1031
+ calls: z.ZodArray<z.ZodObject<{
1032
+ requestId: z.ZodString;
1033
+ callerSessionId: z.ZodString;
1034
+ tool: z.ZodString;
1035
+ workerSessionId: z.ZodString;
1036
+ contributionRevision: z.ZodString;
1037
+ state: z.ZodEnum<{
1038
+ admitted: "admitted";
1039
+ accepted: "accepted";
1040
+ running: "running";
1041
+ paused: "paused";
1042
+ terminal: "terminal";
1043
+ }>;
1044
+ blocker: z.ZodNullable<z.ZodString>;
1045
+ delivery: z.ZodEnum<{
1046
+ pending: "pending";
1047
+ delivered: "delivered";
1048
+ }>;
1049
+ outcome: z.ZodNullable<z.ZodUnknown>;
1050
+ }, z.core.$strip>>;
1051
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1052
+ inspect: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1053
+ requestId: z.ZodString;
1054
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
1055
+ requestId: z.ZodString;
1056
+ callerSessionId: z.ZodString;
1057
+ tool: z.ZodString;
1058
+ workerSessionId: z.ZodString;
1059
+ contributionRevision: z.ZodString;
1060
+ state: z.ZodEnum<{
1061
+ admitted: "admitted";
1062
+ accepted: "accepted";
1063
+ running: "running";
1064
+ paused: "paused";
1065
+ terminal: "terminal";
1066
+ }>;
1067
+ blocker: z.ZodNullable<z.ZodString>;
1068
+ delivery: z.ZodEnum<{
1069
+ pending: "pending";
1070
+ delivered: "delivered";
1071
+ }>;
1072
+ outcome: z.ZodNullable<z.ZodUnknown>;
1073
+ }, z.core.$strip>, z.ZodObject<{
1074
+ ok: z.ZodLiteral<false>;
1075
+ reason: z.ZodString;
1076
+ }, z.core.$strip>]>, Record<never, never>, HarnessMeta & Record<never, never>>;
1077
+ cancel: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1078
+ requestId: z.ZodString;
1079
+ }, z.core.$strip>, z.ZodObject<{
1080
+ ok: z.ZodBoolean;
1081
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1082
+ };
1083
+ };
1084
+ kernel: {
1085
+ termContinue: {
1086
+ set: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1087
+ key: z.ZodString;
1088
+ sessionId: z.ZodString;
1089
+ }, z.core.$strip>, z.ZodObject<{
1090
+ ok: z.ZodLiteral<true>;
1091
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1092
+ clear: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1093
+ key: z.ZodString;
1094
+ }, z.core.$strip>, z.ZodObject<{
1095
+ ok: z.ZodLiteral<true>;
1096
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1097
+ };
1098
+ connect: {
1099
+ drop: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1100
+ id: z.ZodString;
1101
+ confirm: z.ZodOptional<z.ZodBoolean>;
1102
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
1103
+ ok: z.ZodBoolean;
1104
+ }, z.core.$strip>, z.ZodObject<{
1105
+ form: z.ZodLiteral<"ui">;
1106
+ body: z.ZodString;
1107
+ pending: z.ZodString;
1108
+ }, z.core.$loose>]>, Record<never, never>, HarnessMeta & Record<never, never>>;
1109
+ adopt: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1110
+ driver: z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodObject<{
1111
+ name: z.ZodString;
1112
+ }, z.core.$strip>, z.ZodTransform<string, {
1113
+ name: string;
1114
+ }>>]>;
1115
+ name: z.ZodOptional<z.ZodString>;
1116
+ settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1117
+ secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1118
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1119
+ id: z.ZodString;
1120
+ }, z.core.$strip>, z.ZodObject<{
1121
+ ok: z.ZodLiteral<false>;
1122
+ }, z.core.$strip>]>, z.ZodObject<{
1123
+ form: z.ZodLiteral<"ui">;
1124
+ body: z.ZodString;
1125
+ pending: z.ZodString;
1126
+ }, z.core.$loose>]>, Record<never, never>, HarnessMeta & Record<never, never>>;
1127
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1128
+ abilityClaim: z.ZodOptional<z.ZodString>;
1129
+ }, z.core.$strip>, z.ZodObject<{
1130
+ connections: z.ZodArray<z.ZodObject<{
1131
+ id: z.ZodString;
1132
+ name: z.ZodString;
1133
+ driver: z.ZodString;
1134
+ abilityClaim: z.ZodArray<z.ZodString>;
1135
+ enabled: z.ZodBoolean;
1136
+ status: z.ZodEnum<{
1137
+ idle: "idle";
1138
+ connecting: "connecting";
1139
+ ready: "ready";
1140
+ "needs-auth": "needs-auth";
1141
+ failed: "failed";
1142
+ disabled: "disabled";
1143
+ }>;
1144
+ toolCount: z.ZodNumber;
1145
+ error: z.ZodString;
1146
+ }, z.core.$strip>>;
1147
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1148
+ models: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1149
+ id: z.ZodOptional<z.ZodString>;
1150
+ }, z.core.$strip>, z.ZodObject<{
1151
+ connections: z.ZodArray<z.ZodObject<{
1152
+ id: z.ZodString;
1153
+ models: z.ZodArray<z.ZodString>;
1154
+ error: z.ZodString;
1155
+ }, z.core.$strip>>;
1156
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1157
+ get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1158
+ id: z.ZodString;
1159
+ }, z.core.$strip>, z.ZodObject<{
1160
+ id: z.ZodString;
1161
+ name: z.ZodString;
1162
+ driver: z.ZodString;
1163
+ abilityClaim: z.ZodArray<z.ZodString>;
1164
+ enabled: z.ZodBoolean;
1165
+ status: z.ZodEnum<{
1166
+ idle: "idle";
1167
+ connecting: "connecting";
1168
+ ready: "ready";
1169
+ "needs-auth": "needs-auth";
1170
+ failed: "failed";
1171
+ disabled: "disabled";
1172
+ }>;
1173
+ toolCount: z.ZodNumber;
1174
+ error: z.ZodString;
1175
+ settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1176
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1177
+ setEnabled: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1178
+ id: z.ZodString;
1179
+ enabled: z.ZodBoolean;
1180
+ }, z.core.$strip>, z.ZodObject<{
1181
+ ok: z.ZodBoolean;
1182
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1183
+ alwaysAllow: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1184
+ id: z.ZodString;
1185
+ tool: z.ZodString;
1186
+ }, z.core.$strip>, z.ZodObject<{
1187
+ ok: z.ZodLiteral<true>;
1188
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1189
+ excludeTool: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1190
+ id: z.ZodString;
1191
+ tool: z.ZodString;
1192
+ }, z.core.$strip>, z.ZodObject<{
1193
+ ok: z.ZodLiteral<true>;
1194
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1195
+ login: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1196
+ id: z.ZodString;
1197
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
1198
+ ok: z.ZodBoolean;
1199
+ }, z.core.$strip>, z.ZodObject<{
1200
+ form: z.ZodLiteral<"ui">;
1201
+ body: z.ZodString;
1202
+ pending: z.ZodString;
1203
+ }, z.core.$loose>]>, Record<never, never>, HarnessMeta & Record<never, never>>;
1204
+ logout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1205
+ id: z.ZodString;
1206
+ }, z.core.$strip>, z.ZodObject<{
1207
+ ok: z.ZodLiteral<true>;
1208
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1209
+ update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1210
+ id: z.ZodString;
1211
+ name: z.ZodOptional<z.ZodString>;
1212
+ settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1213
+ }, z.core.$strip>, z.ZodObject<{
1214
+ ok: z.ZodLiteral<true>;
1215
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1216
+ };
1217
+ mcpServer: {
1218
+ adopt: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1219
+ name: z.ZodOptional<z.ZodString>;
1220
+ input: z.ZodOptional<z.ZodString>;
1221
+ settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1222
+ secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1223
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1224
+ id: z.ZodString;
1225
+ }, z.core.$strip>, z.ZodObject<{
1226
+ ok: z.ZodLiteral<false>;
1227
+ }, z.core.$strip>]>, z.ZodObject<{
1228
+ form: z.ZodLiteral<"ui">;
1229
+ body: z.ZodString;
1230
+ pending: z.ZodString;
1231
+ }, z.core.$loose>]>, Record<never, never>, HarnessMeta & Record<never, never>>;
1232
+ search: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1233
+ query: z.ZodString;
1234
+ limit: z.ZodOptional<z.ZodNumber>;
1235
+ }, z.core.$strip>, z.ZodObject<{
1236
+ servers: z.ZodArray<z.ZodObject<{
1237
+ name: z.ZodString;
1238
+ title: z.ZodString;
1239
+ description: z.ZodString;
1240
+ install: z.ZodString;
1241
+ }, z.core.$strip>>;
1242
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1243
+ };
1244
+ config: {
1245
+ set: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1246
+ compact: z.ZodOptional<z.ZodString>;
1247
+ compactKeepTurns: z.ZodOptional<z.ZodNumber>;
1248
+ compactTriggers: z.ZodOptional<z.ZodObject<{
1249
+ hard: z.ZodOptional<z.ZodString>;
1250
+ soft: z.ZodOptional<z.ZodString>;
1251
+ }, z.core.$strip>>;
1252
+ contextGlowRemaining: z.ZodOptional<z.ZodString>;
1253
+ autoModeClassifier: z.ZodOptional<z.ZodString>;
1254
+ defaultPermissionMode: z.ZodOptional<z.ZodEnum<{
1255
+ manual: "manual";
1256
+ auto: "auto";
1257
+ yolo: "yolo";
1258
+ }>>;
1259
+ approvalAskThrottleMs: z.ZodOptional<z.ZodNumber>;
1260
+ shellTailBytes: z.ZodOptional<z.ZodNumber>;
1261
+ superKey: z.ZodOptional<z.ZodEnum<{
1262
+ ctrl: "ctrl";
1263
+ cmd: "cmd";
1264
+ }>>;
1265
+ hideFloorTools: z.ZodOptional<z.ZodBoolean>;
1266
+ statusline: z.ZodOptional<z.ZodString>;
1267
+ statuslineRefresh: z.ZodOptional<z.ZodString>;
1268
+ speculativePolicyProcessingTools: z.ZodOptional<z.ZodNumber>;
1269
+ textOnlyContinue: z.ZodOptional<z.ZodBoolean>;
1270
+ authorization: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1271
+ }, z.core.$strip>, z.ZodObject<{
1272
+ ok: z.ZodLiteral<true>;
1273
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1274
+ };
1275
+ grant: {
1276
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1277
+ kind: z.ZodOptional<z.ZodEnum<{
1278
+ grant: "grant";
1279
+ ack: "ack";
1280
+ }>>;
1281
+ scope: z.ZodOptional<z.ZodEnum<{
1282
+ session: "session";
1283
+ project: "project";
1284
+ bot: "bot";
1285
+ global: "global";
1286
+ }>>;
1287
+ sessionId: z.ZodOptional<z.ZodString>;
1288
+ projectPath: z.ZodOptional<z.ZodString>;
1289
+ bot: z.ZodOptional<z.ZodString>;
1290
+ includeExpired: z.ZodOptional<z.ZodBoolean>;
1291
+ }, z.core.$strict>, z.ZodObject<{
1292
+ rows: z.ZodArray<z.ZodObject<{
1293
+ id: z.ZodString;
1294
+ kind: z.ZodOptional<z.ZodEnum<{
1295
+ grant: "grant";
1296
+ ack: "ack";
1297
+ }>>;
1298
+ scope: z.ZodEnum<{
1299
+ session: "session";
1300
+ project: "project";
1301
+ bot: "bot";
1302
+ global: "global";
1303
+ }>;
1304
+ scopeKey: z.ZodString;
1305
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
1306
+ kind: z.ZodLiteral<"command">;
1307
+ argv0: z.ZodString;
1308
+ spine: z.ZodArray<z.ZodString>;
1309
+ args: z.ZodArray<z.ZodString>;
1310
+ }, z.core.$strict>, z.ZodObject<{
1311
+ kind: z.ZodLiteral<"path">;
1312
+ cluster: z.ZodEnum<{
1313
+ read: "read";
1314
+ write: "write";
1315
+ }>;
1316
+ path: z.ZodString;
1317
+ depth: z.ZodEnum<{
1318
+ exact: "exact";
1319
+ subtree: "subtree";
1320
+ }>;
1321
+ }, z.core.$strict>, z.ZodObject<{
1322
+ kind: z.ZodLiteral<"mcp">;
1323
+ server: z.ZodString;
1324
+ account: z.ZodOptional<z.ZodString>;
1325
+ tool: z.ZodOptional<z.ZodString>;
1326
+ }, z.core.$strict>, z.ZodObject<{
1327
+ kind: z.ZodLiteral<"tool">;
1328
+ name: z.ZodString;
1329
+ }, z.core.$strict>, z.ZodObject<{
1330
+ kind: z.ZodLiteral<"class">;
1331
+ class: z.ZodEnum<{
1332
+ "destroy-catastrophic": "destroy-catastrophic";
1333
+ "destroy-local": "destroy-local";
1334
+ "vcs-history": "vcs-history";
1335
+ privilege: "privilege";
1336
+ credential: "credential";
1337
+ "control-plane": "control-plane";
1338
+ "attack-shape": "attack-shape";
1339
+ "policy-fault": "policy-fault";
1340
+ "package-install": "package-install";
1341
+ publish: "publish";
1342
+ "remote-write": "remote-write";
1343
+ "network-egress": "network-egress";
1344
+ "exec-unknown": "exec-unknown";
1345
+ unmodelled: "unmodelled";
1346
+ "envelope-read": "envelope-read";
1347
+ "envelope-write": "envelope-write";
1348
+ "protected-file": "protected-file";
1349
+ "workspace-write": "workspace-write";
1350
+ "mcp-lookup": "mcp-lookup";
1351
+ "mcp-action": "mcp-action";
1352
+ }>;
1353
+ }, z.core.$strict>], "kind">;
1354
+ createdAtMs: z.ZodNumber;
1355
+ expiresAtMs: z.ZodNullable<z.ZodNumber>;
1356
+ source: z.ZodEnum<{
1357
+ prompt: "prompt";
1358
+ settings: "settings";
1359
+ }>;
1360
+ label: z.ZodString;
1361
+ }, z.core.$strict>>;
1362
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1363
+ add: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1364
+ kind: z.ZodOptional<z.ZodEnum<{
1365
+ grant: "grant";
1366
+ ack: "ack";
1367
+ }>>;
1368
+ scope: z.ZodEnum<{
1369
+ session: "session";
1370
+ project: "project";
1371
+ bot: "bot";
1372
+ global: "global";
1373
+ }>;
1374
+ scopeKey: z.ZodOptional<z.ZodString>;
1375
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
1376
+ kind: z.ZodLiteral<"command">;
1377
+ argv0: z.ZodString;
1378
+ spine: z.ZodArray<z.ZodString>;
1379
+ args: z.ZodArray<z.ZodString>;
1380
+ }, z.core.$strict>, z.ZodObject<{
1381
+ kind: z.ZodLiteral<"path">;
1382
+ cluster: z.ZodEnum<{
1383
+ read: "read";
1384
+ write: "write";
1385
+ }>;
1386
+ path: z.ZodString;
1387
+ depth: z.ZodEnum<{
1388
+ exact: "exact";
1389
+ subtree: "subtree";
1390
+ }>;
1391
+ }, z.core.$strict>, z.ZodObject<{
1392
+ kind: z.ZodLiteral<"mcp">;
1393
+ server: z.ZodString;
1394
+ account: z.ZodOptional<z.ZodString>;
1395
+ tool: z.ZodOptional<z.ZodString>;
1396
+ }, z.core.$strict>, z.ZodObject<{
1397
+ kind: z.ZodLiteral<"tool">;
1398
+ name: z.ZodString;
1399
+ }, z.core.$strict>, z.ZodObject<{
1400
+ kind: z.ZodLiteral<"class">;
1401
+ class: z.ZodEnum<{
1402
+ "destroy-catastrophic": "destroy-catastrophic";
1403
+ "destroy-local": "destroy-local";
1404
+ "vcs-history": "vcs-history";
1405
+ privilege: "privilege";
1406
+ credential: "credential";
1407
+ "control-plane": "control-plane";
1408
+ "attack-shape": "attack-shape";
1409
+ "policy-fault": "policy-fault";
1410
+ "package-install": "package-install";
1411
+ publish: "publish";
1412
+ "remote-write": "remote-write";
1413
+ "network-egress": "network-egress";
1414
+ "exec-unknown": "exec-unknown";
1415
+ unmodelled: "unmodelled";
1416
+ "envelope-read": "envelope-read";
1417
+ "envelope-write": "envelope-write";
1418
+ "protected-file": "protected-file";
1419
+ "workspace-write": "workspace-write";
1420
+ "mcp-lookup": "mcp-lookup";
1421
+ "mcp-action": "mcp-action";
1422
+ }>;
1423
+ }, z.core.$strict>], "kind">;
1424
+ ttlMs: z.ZodOptional<z.ZodNumber>;
1425
+ }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
1426
+ ok: z.ZodLiteral<true>;
1427
+ row: z.ZodObject<{
1428
+ id: z.ZodString;
1429
+ kind: z.ZodOptional<z.ZodEnum<{
1430
+ grant: "grant";
1431
+ ack: "ack";
1432
+ }>>;
1433
+ scope: z.ZodEnum<{
1434
+ session: "session";
1435
+ project: "project";
1436
+ bot: "bot";
1437
+ global: "global";
1438
+ }>;
1439
+ scopeKey: z.ZodString;
1440
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
1441
+ kind: z.ZodLiteral<"command">;
1442
+ argv0: z.ZodString;
1443
+ spine: z.ZodArray<z.ZodString>;
1444
+ args: z.ZodArray<z.ZodString>;
1445
+ }, z.core.$strict>, z.ZodObject<{
1446
+ kind: z.ZodLiteral<"path">;
1447
+ cluster: z.ZodEnum<{
1448
+ read: "read";
1449
+ write: "write";
1450
+ }>;
1451
+ path: z.ZodString;
1452
+ depth: z.ZodEnum<{
1453
+ exact: "exact";
1454
+ subtree: "subtree";
1455
+ }>;
1456
+ }, z.core.$strict>, z.ZodObject<{
1457
+ kind: z.ZodLiteral<"mcp">;
1458
+ server: z.ZodString;
1459
+ account: z.ZodOptional<z.ZodString>;
1460
+ tool: z.ZodOptional<z.ZodString>;
1461
+ }, z.core.$strict>, z.ZodObject<{
1462
+ kind: z.ZodLiteral<"tool">;
1463
+ name: z.ZodString;
1464
+ }, z.core.$strict>, z.ZodObject<{
1465
+ kind: z.ZodLiteral<"class">;
1466
+ class: z.ZodEnum<{
1467
+ "destroy-catastrophic": "destroy-catastrophic";
1468
+ "destroy-local": "destroy-local";
1469
+ "vcs-history": "vcs-history";
1470
+ privilege: "privilege";
1471
+ credential: "credential";
1472
+ "control-plane": "control-plane";
1473
+ "attack-shape": "attack-shape";
1474
+ "policy-fault": "policy-fault";
1475
+ "package-install": "package-install";
1476
+ publish: "publish";
1477
+ "remote-write": "remote-write";
1478
+ "network-egress": "network-egress";
1479
+ "exec-unknown": "exec-unknown";
1480
+ unmodelled: "unmodelled";
1481
+ "envelope-read": "envelope-read";
1482
+ "envelope-write": "envelope-write";
1483
+ "protected-file": "protected-file";
1484
+ "workspace-write": "workspace-write";
1485
+ "mcp-lookup": "mcp-lookup";
1486
+ "mcp-action": "mcp-action";
1487
+ }>;
1488
+ }, z.core.$strict>], "kind">;
1489
+ createdAtMs: z.ZodNumber;
1490
+ expiresAtMs: z.ZodNullable<z.ZodNumber>;
1491
+ source: z.ZodEnum<{
1492
+ prompt: "prompt";
1493
+ settings: "settings";
1494
+ }>;
1495
+ label: z.ZodString;
1496
+ }, z.core.$strict>;
1497
+ }, z.core.$strip>, z.ZodObject<{
1498
+ ok: z.ZodLiteral<false>;
1499
+ reason: z.ZodEnum<{
1500
+ "fenced-path": "fenced-path";
1501
+ "invalid-scope": "invalid-scope";
1502
+ "unknown-session": "unknown-session";
1503
+ "subject-not-allowed": "subject-not-allowed";
1504
+ }>;
1505
+ }, z.core.$strip>]>, Record<never, never>, HarnessMeta & Record<never, never>>;
1506
+ revoke: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1507
+ id: z.ZodString;
1508
+ sessionId: z.ZodOptional<z.ZodString>;
1509
+ }, z.core.$strict>, z.ZodObject<{
1510
+ ok: z.ZodBoolean;
1511
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1512
+ };
1513
+ ack: {
1514
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1515
+ bot: z.ZodOptional<z.ZodString>;
1516
+ scope: z.ZodOptional<z.ZodEnum<{
1517
+ session: "session";
1518
+ project: "project";
1519
+ bot: "bot";
1520
+ global: "global";
1521
+ }>>;
1522
+ sessionId: z.ZodOptional<z.ZodString>;
1523
+ projectPath: z.ZodOptional<z.ZodString>;
1524
+ includeExpired: z.ZodOptional<z.ZodBoolean>;
1525
+ }, z.core.$strict>, z.ZodObject<{
1526
+ rows: z.ZodArray<z.ZodObject<{
1527
+ id: z.ZodString;
1528
+ kind: z.ZodOptional<z.ZodEnum<{
1529
+ grant: "grant";
1530
+ ack: "ack";
1531
+ }>>;
1532
+ scope: z.ZodEnum<{
1533
+ session: "session";
1534
+ project: "project";
1535
+ bot: "bot";
1536
+ global: "global";
1537
+ }>;
1538
+ scopeKey: z.ZodString;
1539
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
1540
+ kind: z.ZodLiteral<"command">;
1541
+ argv0: z.ZodString;
1542
+ spine: z.ZodArray<z.ZodString>;
1543
+ args: z.ZodArray<z.ZodString>;
1544
+ }, z.core.$strict>, z.ZodObject<{
1545
+ kind: z.ZodLiteral<"path">;
1546
+ cluster: z.ZodEnum<{
1547
+ read: "read";
1548
+ write: "write";
1549
+ }>;
1550
+ path: z.ZodString;
1551
+ depth: z.ZodEnum<{
1552
+ exact: "exact";
1553
+ subtree: "subtree";
1554
+ }>;
1555
+ }, z.core.$strict>, z.ZodObject<{
1556
+ kind: z.ZodLiteral<"mcp">;
1557
+ server: z.ZodString;
1558
+ account: z.ZodOptional<z.ZodString>;
1559
+ tool: z.ZodOptional<z.ZodString>;
1560
+ }, z.core.$strict>, z.ZodObject<{
1561
+ kind: z.ZodLiteral<"tool">;
1562
+ name: z.ZodString;
1563
+ }, z.core.$strict>, z.ZodObject<{
1564
+ kind: z.ZodLiteral<"class">;
1565
+ class: z.ZodEnum<{
1566
+ "destroy-catastrophic": "destroy-catastrophic";
1567
+ "destroy-local": "destroy-local";
1568
+ "vcs-history": "vcs-history";
1569
+ privilege: "privilege";
1570
+ credential: "credential";
1571
+ "control-plane": "control-plane";
1572
+ "attack-shape": "attack-shape";
1573
+ "policy-fault": "policy-fault";
1574
+ "package-install": "package-install";
1575
+ publish: "publish";
1576
+ "remote-write": "remote-write";
1577
+ "network-egress": "network-egress";
1578
+ "exec-unknown": "exec-unknown";
1579
+ unmodelled: "unmodelled";
1580
+ "envelope-read": "envelope-read";
1581
+ "envelope-write": "envelope-write";
1582
+ "protected-file": "protected-file";
1583
+ "workspace-write": "workspace-write";
1584
+ "mcp-lookup": "mcp-lookup";
1585
+ "mcp-action": "mcp-action";
1586
+ }>;
1587
+ }, z.core.$strict>], "kind">;
1588
+ createdAtMs: z.ZodNumber;
1589
+ expiresAtMs: z.ZodNullable<z.ZodNumber>;
1590
+ source: z.ZodEnum<{
1591
+ prompt: "prompt";
1592
+ settings: "settings";
1593
+ }>;
1594
+ label: z.ZodString;
1595
+ }, z.core.$strict>>;
1596
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1597
+ add: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1598
+ scope: z.ZodEnum<{
1599
+ session: "session";
1600
+ project: "project";
1601
+ bot: "bot";
1602
+ global: "global";
1603
+ }>;
1604
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
1605
+ kind: z.ZodLiteral<"command">;
1606
+ argv0: z.ZodString;
1607
+ spine: z.ZodArray<z.ZodString>;
1608
+ args: z.ZodArray<z.ZodString>;
1609
+ }, z.core.$strict>, z.ZodObject<{
1610
+ kind: z.ZodLiteral<"path">;
1611
+ cluster: z.ZodEnum<{
1612
+ read: "read";
1613
+ write: "write";
1614
+ }>;
1615
+ path: z.ZodString;
1616
+ depth: z.ZodEnum<{
1617
+ exact: "exact";
1618
+ subtree: "subtree";
1619
+ }>;
1620
+ }, z.core.$strict>, z.ZodObject<{
1621
+ kind: z.ZodLiteral<"mcp">;
1622
+ server: z.ZodString;
1623
+ account: z.ZodOptional<z.ZodString>;
1624
+ tool: z.ZodOptional<z.ZodString>;
1625
+ }, z.core.$strict>, z.ZodObject<{
1626
+ kind: z.ZodLiteral<"tool">;
1627
+ name: z.ZodString;
1628
+ }, z.core.$strict>, z.ZodObject<{
1629
+ kind: z.ZodLiteral<"class">;
1630
+ class: z.ZodEnum<{
1631
+ "destroy-catastrophic": "destroy-catastrophic";
1632
+ "destroy-local": "destroy-local";
1633
+ "vcs-history": "vcs-history";
1634
+ privilege: "privilege";
1635
+ credential: "credential";
1636
+ "control-plane": "control-plane";
1637
+ "attack-shape": "attack-shape";
1638
+ "policy-fault": "policy-fault";
1639
+ "package-install": "package-install";
1640
+ publish: "publish";
1641
+ "remote-write": "remote-write";
1642
+ "network-egress": "network-egress";
1643
+ "exec-unknown": "exec-unknown";
1644
+ unmodelled: "unmodelled";
1645
+ "envelope-read": "envelope-read";
1646
+ "envelope-write": "envelope-write";
1647
+ "protected-file": "protected-file";
1648
+ "workspace-write": "workspace-write";
1649
+ "mcp-lookup": "mcp-lookup";
1650
+ "mcp-action": "mcp-action";
1651
+ }>;
1652
+ }, z.core.$strict>], "kind">;
1653
+ scopeKey: z.ZodOptional<z.ZodString>;
1654
+ ttlMs: z.ZodOptional<z.ZodNumber>;
1655
+ }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
1656
+ ok: z.ZodLiteral<true>;
1657
+ row: z.ZodObject<{
1658
+ id: z.ZodString;
1659
+ kind: z.ZodOptional<z.ZodEnum<{
1660
+ grant: "grant";
1661
+ ack: "ack";
1662
+ }>>;
1663
+ scope: z.ZodEnum<{
1664
+ session: "session";
1665
+ project: "project";
1666
+ bot: "bot";
1667
+ global: "global";
1668
+ }>;
1669
+ scopeKey: z.ZodString;
1670
+ subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
1671
+ kind: z.ZodLiteral<"command">;
1672
+ argv0: z.ZodString;
1673
+ spine: z.ZodArray<z.ZodString>;
1674
+ args: z.ZodArray<z.ZodString>;
1675
+ }, z.core.$strict>, z.ZodObject<{
1676
+ kind: z.ZodLiteral<"path">;
1677
+ cluster: z.ZodEnum<{
1678
+ read: "read";
1679
+ write: "write";
1680
+ }>;
1681
+ path: z.ZodString;
1682
+ depth: z.ZodEnum<{
1683
+ exact: "exact";
1684
+ subtree: "subtree";
1685
+ }>;
1686
+ }, z.core.$strict>, z.ZodObject<{
1687
+ kind: z.ZodLiteral<"mcp">;
1688
+ server: z.ZodString;
1689
+ account: z.ZodOptional<z.ZodString>;
1690
+ tool: z.ZodOptional<z.ZodString>;
1691
+ }, z.core.$strict>, z.ZodObject<{
1692
+ kind: z.ZodLiteral<"tool">;
1693
+ name: z.ZodString;
1694
+ }, z.core.$strict>, z.ZodObject<{
1695
+ kind: z.ZodLiteral<"class">;
1696
+ class: z.ZodEnum<{
1697
+ "destroy-catastrophic": "destroy-catastrophic";
1698
+ "destroy-local": "destroy-local";
1699
+ "vcs-history": "vcs-history";
1700
+ privilege: "privilege";
1701
+ credential: "credential";
1702
+ "control-plane": "control-plane";
1703
+ "attack-shape": "attack-shape";
1704
+ "policy-fault": "policy-fault";
1705
+ "package-install": "package-install";
1706
+ publish: "publish";
1707
+ "remote-write": "remote-write";
1708
+ "network-egress": "network-egress";
1709
+ "exec-unknown": "exec-unknown";
1710
+ unmodelled: "unmodelled";
1711
+ "envelope-read": "envelope-read";
1712
+ "envelope-write": "envelope-write";
1713
+ "protected-file": "protected-file";
1714
+ "workspace-write": "workspace-write";
1715
+ "mcp-lookup": "mcp-lookup";
1716
+ "mcp-action": "mcp-action";
1717
+ }>;
1718
+ }, z.core.$strict>], "kind">;
1719
+ createdAtMs: z.ZodNumber;
1720
+ expiresAtMs: z.ZodNullable<z.ZodNumber>;
1721
+ source: z.ZodEnum<{
1722
+ prompt: "prompt";
1723
+ settings: "settings";
1724
+ }>;
1725
+ label: z.ZodString;
1726
+ }, z.core.$strict>;
1727
+ }, z.core.$strip>, z.ZodObject<{
1728
+ ok: z.ZodLiteral<false>;
1729
+ reason: z.ZodEnum<{
1730
+ "fenced-path": "fenced-path";
1731
+ "invalid-scope": "invalid-scope";
1732
+ "unknown-session": "unknown-session";
1733
+ "subject-not-allowed": "subject-not-allowed";
1734
+ }>;
1735
+ }, z.core.$strip>]>, Record<never, never>, HarnessMeta & Record<never, never>>;
1736
+ revoke: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1737
+ id: z.ZodString;
1738
+ sessionId: z.ZodOptional<z.ZodString>;
1739
+ }, z.core.$strict>, z.ZodObject<{
1740
+ ok: z.ZodBoolean;
1741
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1742
+ };
1743
+ plugin: {
1744
+ set: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1745
+ name: z.ZodString;
1746
+ enabled: z.ZodOptional<z.ZodBoolean>;
1747
+ foreground: z.ZodOptional<z.ZodBoolean>;
1748
+ }, z.core.$strip>, z.ZodObject<{
1749
+ ok: z.ZodLiteral<true>;
1750
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1751
+ install: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1752
+ spec: z.ZodString;
1753
+ }, z.core.$strip>, z.ZodObject<{
1754
+ name: z.ZodString;
1755
+ npmName: z.ZodString;
1756
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1757
+ remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1758
+ name: z.ZodString;
1759
+ }, z.core.$strip>, z.ZodObject<{
1760
+ ok: z.ZodLiteral<true>;
1761
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1762
+ };
1763
+ skill: {
1764
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1765
+ project: z.ZodOptional<z.ZodString>;
1766
+ }, z.core.$strip>, z.ZodObject<{
1767
+ skills: z.ZodArray<z.ZodObject<{
1768
+ name: z.ZodString;
1769
+ description: z.ZodString;
1770
+ location: z.ZodString;
1771
+ invoke: z.ZodString;
1772
+ scope: z.ZodEnum<{
1773
+ project: "project";
1774
+ home: "home";
1775
+ }>;
1776
+ }, z.core.$strip>>;
1777
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1778
+ write: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1779
+ scope: z.ZodEnum<{
1780
+ project: "project";
1781
+ home: "home";
1782
+ }>;
1783
+ project: z.ZodOptional<z.ZodString>;
1784
+ name: z.ZodString;
1785
+ description: z.ZodDefault<z.ZodString>;
1786
+ body: z.ZodDefault<z.ZodString>;
1787
+ }, z.core.$strip>, z.ZodObject<{
1788
+ name: z.ZodString;
1789
+ description: z.ZodString;
1790
+ location: z.ZodString;
1791
+ invoke: z.ZodString;
1792
+ scope: z.ZodEnum<{
1793
+ project: "project";
1794
+ home: "home";
1795
+ }>;
1796
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1797
+ remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1798
+ scope: z.ZodEnum<{
1799
+ project: "project";
1800
+ home: "home";
1801
+ }>;
1802
+ project: z.ZodOptional<z.ZodString>;
1803
+ name: z.ZodString;
1804
+ }, z.core.$strip>, z.ZodObject<{
1805
+ ok: z.ZodLiteral<true>;
1806
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1807
+ read: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1808
+ scope: z.ZodEnum<{
1809
+ project: "project";
1810
+ home: "home";
1811
+ }>;
1812
+ project: z.ZodOptional<z.ZodString>;
1813
+ name: z.ZodString;
1814
+ }, z.core.$strip>, z.ZodObject<{
1815
+ name: z.ZodString;
1816
+ description: z.ZodString;
1817
+ location: z.ZodString;
1818
+ invoke: z.ZodString;
1819
+ scope: z.ZodEnum<{
1820
+ project: "project";
1821
+ home: "home";
1822
+ }>;
1823
+ body: z.ZodString;
1824
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1825
+ };
1826
+ remote: {
1827
+ login: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1828
+ name: z.ZodOptional<z.ZodString>;
1829
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1830
+ ok: z.ZodLiteral<true>;
1831
+ email: z.ZodString;
1832
+ machineId: z.ZodString;
1833
+ }, z.core.$strip>, z.ZodObject<{
1834
+ ok: z.ZodLiteral<false>;
1835
+ }, z.core.$strip>]>, z.ZodObject<{
1836
+ form: z.ZodLiteral<"ui">;
1837
+ body: z.ZodString;
1838
+ pending: z.ZodString;
1839
+ }, z.core.$loose>]>, Record<never, never>, HarnessMeta & Record<never, never>>;
1840
+ status: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
1841
+ loggedIn: z.ZodBoolean;
1842
+ email: z.ZodOptional<z.ZodString>;
1843
+ machineId: z.ZodString;
1844
+ machineName: z.ZodString;
1845
+ relayUrl: z.ZodString;
1846
+ connected: z.ZodBoolean;
1847
+ lastError: z.ZodOptional<z.ZodString>;
1848
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1849
+ logout: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
1850
+ ok: z.ZodLiteral<true>;
1851
+ wasLoggedIn: z.ZodBoolean;
1852
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1853
+ };
1854
+ bot: {
1855
+ write: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1856
+ scope: z.ZodEnum<{
1857
+ project: "project";
1858
+ home: "home";
1859
+ }>;
1860
+ project: z.ZodOptional<z.ZodString>;
1861
+ name: z.ZodString;
1862
+ description: z.ZodDefault<z.ZodString>;
1863
+ instructions: z.ZodDefault<z.ZodString>;
1864
+ recipeScope: z.ZodDefault<z.ZodEnum<{
1865
+ session: "session";
1866
+ project: "project";
1867
+ global: "global";
1868
+ }>>;
1869
+ tools: z.ZodDefault<z.ZodArray<z.ZodString>>;
1870
+ skills: z.ZodDefault<z.ZodArray<z.ZodString>>;
1871
+ keepAlive: z.ZodDefault<z.ZodBoolean>;
1872
+ invokes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1873
+ reasoningEffort: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1874
+ none: "none";
1875
+ minimal: "minimal";
1876
+ low: "low";
1877
+ medium: "medium";
1878
+ high: "high";
1879
+ xhigh: "xhigh";
1880
+ max: "max";
1881
+ }>>>;
1882
+ modelPreferences: z.ZodOptional<z.ZodArray<z.ZodString>>;
1883
+ mcp: z.ZodOptional<z.ZodArray<z.ZodObject<{
1884
+ server: z.ZodString;
1885
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
1886
+ account: z.ZodOptional<z.ZodString>;
1887
+ session: z.ZodOptional<z.ZodString>;
1888
+ }, z.core.$strict>>>;
1889
+ }, z.core.$strip>, z.ZodObject<{
1890
+ ok: z.ZodLiteral<true>;
1891
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1892
+ remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1893
+ scope: z.ZodEnum<{
1894
+ project: "project";
1895
+ home: "home";
1896
+ }>;
1897
+ project: z.ZodOptional<z.ZodString>;
1898
+ name: z.ZodString;
1899
+ }, z.core.$strip>, z.ZodObject<{
1900
+ ok: z.ZodLiteral<true>;
1901
+ }, z.core.$strip>, Record<never, never>, HarnessMeta & Record<never, never>>;
1902
+ };
1903
+ };
1904
+ ui: {
1905
+ resolve: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodDiscriminatedUnion<[z.ZodObject<{
1906
+ pending: z.ZodString;
1907
+ kind: z.ZodLiteral<"accept">;
1908
+ }, z.core.$strict>, z.ZodObject<{
1909
+ pending: z.ZodString;
1910
+ kind: z.ZodLiteral<"cancel">;
1911
+ }, z.core.$strict>, z.ZodObject<{
1912
+ pending: z.ZodString;
1913
+ kind: z.ZodLiteral<"text">;
1914
+ input: z.ZodString;
1915
+ }, z.core.$strict>, z.ZodObject<{
1916
+ pending: z.ZodString;
1917
+ kind: z.ZodLiteral<"opened">;
1918
+ url: z.ZodString;
1919
+ }, z.core.$strict>, z.ZodObject<{
1920
+ pending: z.ZodString;
1921
+ kind: z.ZodLiteral<"dismiss">;
1922
+ }, z.core.$strict>], "kind">, z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<never, never>, HarnessMeta & Record<never, never>>;
1923
+ };
1924
+ };
1925
+ export type HarnessContract = typeof contract;
1926
+ export interface ContractEntry {
1927
+ /** Tree path, e.g. `["session", "kv", "set"]`. */
1928
+ readonly path: readonly string[];
1929
+ readonly procedure: HarnessProcedure;
1930
+ readonly meta: HarnessMeta;
1931
+ }
1932
+ /** Every procedure of a router with its tree path, in declaration order. */
1933
+ export declare function listProcedures(router?: AnyContractRouter, path?: readonly string[]): ContractEntry[];
1934
+ /** The wire name of a procedure. */
1935
+ export declare function methodOf(procedure: HarnessProcedure): string;
1936
+ /** Wire name for a tree path (`["session","kv","set"]` is `kv/set`), or `undefined` for an unknown path. */
1937
+ export declare function methodForPath(path: readonly string[]): string | undefined;
1938
+ //# sourceMappingURL=contract.d.ts.map