@osstack/protocol 0.15.0 → 0.22.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 (73) hide show
  1. package/dist/attention.d.ts +863 -0
  2. package/dist/attention.d.ts.map +1 -0
  3. package/dist/attention.js +112 -0
  4. package/dist/attention.js.map +1 -0
  5. package/dist/autonomy.d.ts +14 -14
  6. package/dist/delivery-contract.d.ts +734 -0
  7. package/dist/delivery-contract.d.ts.map +1 -0
  8. package/dist/delivery-contract.js +111 -0
  9. package/dist/delivery-contract.js.map +1 -0
  10. package/dist/envelope.d.ts +42 -42
  11. package/dist/event.d.ts +4 -4
  12. package/dist/follow-up-delivery.d.ts +1831 -0
  13. package/dist/follow-up-delivery.d.ts.map +1 -0
  14. package/dist/follow-up-delivery.js +174 -0
  15. package/dist/follow-up-delivery.js.map +1 -0
  16. package/dist/follow-up.d.ts +1100 -0
  17. package/dist/follow-up.d.ts.map +1 -0
  18. package/dist/follow-up.js +28 -0
  19. package/dist/follow-up.js.map +1 -0
  20. package/dist/generate.d.ts +1 -0
  21. package/dist/generate.d.ts.map +1 -1
  22. package/dist/generate.js +61 -1
  23. package/dist/generate.js.map +1 -1
  24. package/dist/graph-checkpoint.d.ts +409 -0
  25. package/dist/graph-checkpoint.d.ts.map +1 -0
  26. package/dist/graph-checkpoint.js +91 -0
  27. package/dist/graph-checkpoint.js.map +1 -0
  28. package/dist/graph-worker.d.ts +1663 -0
  29. package/dist/graph-worker.d.ts.map +1 -0
  30. package/dist/graph-worker.js +152 -0
  31. package/dist/graph-worker.js.map +1 -0
  32. package/dist/graph.d.ts +13169 -0
  33. package/dist/graph.d.ts.map +1 -0
  34. package/dist/graph.js +427 -0
  35. package/dist/graph.js.map +1 -0
  36. package/dist/index.d.ts +11 -0
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +11 -2
  39. package/dist/index.js.map +1 -1
  40. package/dist/policy.d.ts +10 -10
  41. package/dist/run.d.ts +4 -4
  42. package/dist/session-continuation-grant.d.ts +414 -0
  43. package/dist/session-continuation-grant.d.ts.map +1 -0
  44. package/dist/session-continuation-grant.js +59 -0
  45. package/dist/session-continuation-grant.js.map +1 -0
  46. package/dist/session-continuation.d.ts +129 -0
  47. package/dist/session-continuation.d.ts.map +1 -0
  48. package/dist/session-continuation.js +30 -0
  49. package/dist/session-continuation.js.map +1 -0
  50. package/dist/task.d.ts +2 -2
  51. package/package.json +11 -10
  52. package/schemas/attention-inbox.schema.json +271 -0
  53. package/schemas/attention-status.schema.json +434 -0
  54. package/schemas/continuation-grant-body.schema.json +189 -0
  55. package/schemas/continuation-output-check.schema.json +65 -0
  56. package/schemas/delivery-contract-v2.schema.json +238 -0
  57. package/schemas/delivery-verification-receipt-v2.schema.json +223 -0
  58. package/schemas/follow-up-create-params.schema.json +78 -0
  59. package/schemas/follow-up-draft-params.schema.json +39 -0
  60. package/schemas/follow-up-list-params.schema.json +42 -0
  61. package/schemas/follow-up-list-result.schema.json +241 -0
  62. package/schemas/follow-up-mutation-result.schema.json +361 -0
  63. package/schemas/follow-up-obligation.schema.json +343 -0
  64. package/schemas/follow-up-resolve-params.schema.json +53 -0
  65. package/schemas/frozen-delivery-contract-v2.schema.json +258 -0
  66. package/schemas/graph-checkpoint-request.schema.json +222 -0
  67. package/schemas/graph-checkpoint-response.schema.json +258 -0
  68. package/schemas/graph-worker.schema.json +546 -0
  69. package/schemas/graph.schema.json +1798 -0
  70. package/schemas/session-continuation-request.schema.json +62 -0
  71. package/schemas/session-decision.schema.json +107 -0
  72. package/schemas/signed-continuation-grant.schema.json +209 -0
  73. package/LICENSE +0 -21
@@ -0,0 +1,1663 @@
1
+ import type { Readable, Writable } from 'node:stream';
2
+ import { z } from 'zod';
3
+ import { GraphJsonValue } from './graph.js';
4
+ export declare const GRAPH_WORKER_MAX_FRAME_BYTES: number;
5
+ export declare const GraphWorkerIdentity: z.ZodObject<{
6
+ executionModel: z.ZodLiteral<"langgraph-functional-v1">;
7
+ durability: z.ZodLiteral<"sync">;
8
+ engineVersion: z.ZodString;
9
+ checkpointVersion: z.ZodString;
10
+ templateVersion: z.ZodString;
11
+ registryVersion: z.ZodString;
12
+ compilerVersion: z.ZodString;
13
+ schemaVersion: z.ZodString;
14
+ compiledProgramDigest: z.ZodString;
15
+ specHash: z.ZodString;
16
+ inputDigest: z.ZodString;
17
+ }, "strict", z.ZodTypeAny, {
18
+ schemaVersion: string;
19
+ specHash: string;
20
+ inputDigest: string;
21
+ executionModel: "langgraph-functional-v1";
22
+ durability: "sync";
23
+ engineVersion: string;
24
+ checkpointVersion: string;
25
+ templateVersion: string;
26
+ registryVersion: string;
27
+ compilerVersion: string;
28
+ compiledProgramDigest: string;
29
+ }, {
30
+ schemaVersion: string;
31
+ specHash: string;
32
+ inputDigest: string;
33
+ executionModel: "langgraph-functional-v1";
34
+ durability: "sync";
35
+ engineVersion: string;
36
+ checkpointVersion: string;
37
+ templateVersion: string;
38
+ registryVersion: string;
39
+ compilerVersion: string;
40
+ compiledProgramDigest: string;
41
+ }>;
42
+ export declare const GraphWorkerBinding: z.ZodObject<{
43
+ scope: z.ZodEffects<z.ZodObject<{
44
+ schemaVersion: z.ZodLiteral<1>;
45
+ tenantId: z.ZodString;
46
+ principalId: z.ZodString;
47
+ workspaceId: z.ZodString;
48
+ }, "strict", z.ZodTypeAny, {
49
+ schemaVersion: 1;
50
+ tenantId: string;
51
+ principalId: string;
52
+ workspaceId: string;
53
+ }, {
54
+ schemaVersion: 1;
55
+ tenantId: string;
56
+ principalId: string;
57
+ workspaceId: string;
58
+ }>, {
59
+ schemaVersion: 1;
60
+ tenantId: string;
61
+ principalId: string;
62
+ workspaceId: string;
63
+ }, unknown>;
64
+ graphRunId: z.ZodString;
65
+ generation: z.ZodNumber;
66
+ owner: z.ZodString;
67
+ identity: z.ZodObject<{
68
+ executionModel: z.ZodLiteral<"langgraph-functional-v1">;
69
+ durability: z.ZodLiteral<"sync">;
70
+ engineVersion: z.ZodString;
71
+ checkpointVersion: z.ZodString;
72
+ templateVersion: z.ZodString;
73
+ registryVersion: z.ZodString;
74
+ compilerVersion: z.ZodString;
75
+ schemaVersion: z.ZodString;
76
+ compiledProgramDigest: z.ZodString;
77
+ specHash: z.ZodString;
78
+ inputDigest: z.ZodString;
79
+ }, "strict", z.ZodTypeAny, {
80
+ schemaVersion: string;
81
+ specHash: string;
82
+ inputDigest: string;
83
+ executionModel: "langgraph-functional-v1";
84
+ durability: "sync";
85
+ engineVersion: string;
86
+ checkpointVersion: string;
87
+ templateVersion: string;
88
+ registryVersion: string;
89
+ compilerVersion: string;
90
+ compiledProgramDigest: string;
91
+ }, {
92
+ schemaVersion: string;
93
+ specHash: string;
94
+ inputDigest: string;
95
+ executionModel: "langgraph-functional-v1";
96
+ durability: "sync";
97
+ engineVersion: string;
98
+ checkpointVersion: string;
99
+ templateVersion: string;
100
+ registryVersion: string;
101
+ compilerVersion: string;
102
+ compiledProgramDigest: string;
103
+ }>;
104
+ }, "strict", z.ZodTypeAny, {
105
+ owner: string;
106
+ scope: {
107
+ schemaVersion: 1;
108
+ tenantId: string;
109
+ principalId: string;
110
+ workspaceId: string;
111
+ };
112
+ graphRunId: string;
113
+ generation: number;
114
+ identity: {
115
+ schemaVersion: string;
116
+ specHash: string;
117
+ inputDigest: string;
118
+ executionModel: "langgraph-functional-v1";
119
+ durability: "sync";
120
+ engineVersion: string;
121
+ checkpointVersion: string;
122
+ templateVersion: string;
123
+ registryVersion: string;
124
+ compilerVersion: string;
125
+ compiledProgramDigest: string;
126
+ };
127
+ }, {
128
+ owner: string;
129
+ graphRunId: string;
130
+ generation: number;
131
+ identity: {
132
+ schemaVersion: string;
133
+ specHash: string;
134
+ inputDigest: string;
135
+ executionModel: "langgraph-functional-v1";
136
+ durability: "sync";
137
+ engineVersion: string;
138
+ checkpointVersion: string;
139
+ templateVersion: string;
140
+ registryVersion: string;
141
+ compilerVersion: string;
142
+ compiledProgramDigest: string;
143
+ };
144
+ scope?: unknown;
145
+ }>;
146
+ export type GraphWorkerBinding = z.infer<typeof GraphWorkerBinding>;
147
+ export declare const GraphWorkerResume: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
148
+ kind: z.ZodLiteral<"continue">;
149
+ }, "strict", z.ZodTypeAny, {
150
+ kind: "continue";
151
+ }, {
152
+ kind: "continue";
153
+ }>, z.ZodObject<{
154
+ kind: z.ZodLiteral<"interrupt">;
155
+ value: z.ZodEffects<z.ZodType<GraphJsonValue, z.ZodTypeDef, GraphJsonValue>, GraphJsonValue, unknown>;
156
+ }, "strict", z.ZodTypeAny, {
157
+ value: GraphJsonValue;
158
+ kind: "interrupt";
159
+ }, {
160
+ kind: "interrupt";
161
+ value?: unknown;
162
+ }>]>;
163
+ export type GraphWorkerResume = z.infer<typeof GraphWorkerResume>;
164
+ export declare const GraphWorkerMessage: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
165
+ programId: z.ZodString;
166
+ source: z.ZodString;
167
+ input: z.ZodEffects<z.ZodObject<{
168
+ kind: z.ZodLiteral<"start">;
169
+ spec: z.ZodObject<{
170
+ schemaVersion: z.ZodLiteral<1>;
171
+ template: z.ZodLiteral<"code-delivery-v1">;
172
+ input: z.ZodObject<{
173
+ taskRef: z.ZodString;
174
+ repositoryRef: z.ZodString;
175
+ baseRevision: z.ZodString;
176
+ acceptanceRef: z.ZodString;
177
+ }, "strict", z.ZodTypeAny, {
178
+ taskRef: string;
179
+ repositoryRef: string;
180
+ baseRevision: string;
181
+ acceptanceRef: string;
182
+ }, {
183
+ taskRef: string;
184
+ repositoryRef: string;
185
+ baseRevision: string;
186
+ acceptanceRef: string;
187
+ }>;
188
+ limits: z.ZodObject<{
189
+ maxEpochs: z.ZodNumber;
190
+ maxBranchAttempts: z.ZodNumber;
191
+ maxConcurrentReaders: z.ZodNumber;
192
+ maxConcurrentWritersPerRepo: z.ZodLiteral<1>;
193
+ maxActionStarts: z.ZodNumber;
194
+ deadlineSeconds: z.ZodNumber;
195
+ tokenReservationLimit: z.ZodNumber;
196
+ }, "strict", z.ZodTypeAny, {
197
+ maxEpochs: number;
198
+ maxBranchAttempts: number;
199
+ maxConcurrentReaders: number;
200
+ maxConcurrentWritersPerRepo: 1;
201
+ maxActionStarts: number;
202
+ deadlineSeconds: number;
203
+ tokenReservationLimit: number;
204
+ }, {
205
+ maxEpochs: number;
206
+ maxBranchAttempts: number;
207
+ maxConcurrentReaders: number;
208
+ maxConcurrentWritersPerRepo: 1;
209
+ maxActionStarts: number;
210
+ deadlineSeconds: number;
211
+ tokenReservationLimit: number;
212
+ }>;
213
+ publication: z.ZodLiteral<"artifact_only">;
214
+ }, "strict", z.ZodTypeAny, {
215
+ input: {
216
+ taskRef: string;
217
+ repositoryRef: string;
218
+ baseRevision: string;
219
+ acceptanceRef: string;
220
+ };
221
+ schemaVersion: 1;
222
+ template: "code-delivery-v1";
223
+ limits: {
224
+ maxEpochs: number;
225
+ maxBranchAttempts: number;
226
+ maxConcurrentReaders: number;
227
+ maxConcurrentWritersPerRepo: 1;
228
+ maxActionStarts: number;
229
+ deadlineSeconds: number;
230
+ tokenReservationLimit: number;
231
+ };
232
+ publication: "artifact_only";
233
+ }, {
234
+ input: {
235
+ taskRef: string;
236
+ repositoryRef: string;
237
+ baseRevision: string;
238
+ acceptanceRef: string;
239
+ };
240
+ schemaVersion: 1;
241
+ template: "code-delivery-v1";
242
+ limits: {
243
+ maxEpochs: number;
244
+ maxBranchAttempts: number;
245
+ maxConcurrentReaders: number;
246
+ maxConcurrentWritersPerRepo: 1;
247
+ maxActionStarts: number;
248
+ deadlineSeconds: number;
249
+ tokenReservationLimit: number;
250
+ };
251
+ publication: "artifact_only";
252
+ }>;
253
+ inputArtifactRef: z.ZodString;
254
+ source: z.ZodObject<{
255
+ product: z.ZodEnum<["osstack", "osbot", "ostag"]>;
256
+ requestId: z.ZodString;
257
+ parentRunId: z.ZodOptional<z.ZodString>;
258
+ }, "strict", z.ZodTypeAny, {
259
+ product: "osstack" | "osbot" | "ostag";
260
+ requestId: string;
261
+ parentRunId?: string | undefined;
262
+ }, {
263
+ product: "osstack" | "osbot" | "ostag";
264
+ requestId: string;
265
+ parentRunId?: string | undefined;
266
+ }>;
267
+ schemaVersion: z.ZodLiteral<1>;
268
+ scope: z.ZodObject<{
269
+ schemaVersion: z.ZodLiteral<1>;
270
+ tenantId: z.ZodString;
271
+ principalId: z.ZodString;
272
+ workspaceId: z.ZodString;
273
+ }, "strict", z.ZodTypeAny, {
274
+ schemaVersion: 1;
275
+ tenantId: string;
276
+ principalId: string;
277
+ workspaceId: string;
278
+ }, {
279
+ schemaVersion: 1;
280
+ tenantId: string;
281
+ principalId: string;
282
+ workspaceId: string;
283
+ }>;
284
+ idempotencyKey: z.ZodString;
285
+ metadata: z.ZodOptional<z.ZodObject<{
286
+ trace: z.ZodOptional<z.ZodObject<{
287
+ traceId: z.ZodString;
288
+ spanId: z.ZodOptional<z.ZodString>;
289
+ }, "strict", z.ZodTypeAny, {
290
+ traceId: string;
291
+ spanId?: string | undefined;
292
+ }, {
293
+ traceId: string;
294
+ spanId?: string | undefined;
295
+ }>>;
296
+ requestedAt: z.ZodOptional<z.ZodString>;
297
+ }, "strict", z.ZodTypeAny, {
298
+ trace?: {
299
+ traceId: string;
300
+ spanId?: string | undefined;
301
+ } | undefined;
302
+ requestedAt?: string | undefined;
303
+ }, {
304
+ trace?: {
305
+ traceId: string;
306
+ spanId?: string | undefined;
307
+ } | undefined;
308
+ requestedAt?: string | undefined;
309
+ }>>;
310
+ }, "strict", z.ZodTypeAny, {
311
+ scope: {
312
+ schemaVersion: 1;
313
+ tenantId: string;
314
+ principalId: string;
315
+ workspaceId: string;
316
+ };
317
+ source: {
318
+ product: "osstack" | "osbot" | "ostag";
319
+ requestId: string;
320
+ parentRunId?: string | undefined;
321
+ };
322
+ kind: "start";
323
+ schemaVersion: 1;
324
+ spec: {
325
+ input: {
326
+ taskRef: string;
327
+ repositoryRef: string;
328
+ baseRevision: string;
329
+ acceptanceRef: string;
330
+ };
331
+ schemaVersion: 1;
332
+ template: "code-delivery-v1";
333
+ limits: {
334
+ maxEpochs: number;
335
+ maxBranchAttempts: number;
336
+ maxConcurrentReaders: number;
337
+ maxConcurrentWritersPerRepo: 1;
338
+ maxActionStarts: number;
339
+ deadlineSeconds: number;
340
+ tokenReservationLimit: number;
341
+ };
342
+ publication: "artifact_only";
343
+ };
344
+ inputArtifactRef: string;
345
+ idempotencyKey: string;
346
+ metadata?: {
347
+ trace?: {
348
+ traceId: string;
349
+ spanId?: string | undefined;
350
+ } | undefined;
351
+ requestedAt?: string | undefined;
352
+ } | undefined;
353
+ }, {
354
+ scope: {
355
+ schemaVersion: 1;
356
+ tenantId: string;
357
+ principalId: string;
358
+ workspaceId: string;
359
+ };
360
+ source: {
361
+ product: "osstack" | "osbot" | "ostag";
362
+ requestId: string;
363
+ parentRunId?: string | undefined;
364
+ };
365
+ kind: "start";
366
+ schemaVersion: 1;
367
+ spec: {
368
+ input: {
369
+ taskRef: string;
370
+ repositoryRef: string;
371
+ baseRevision: string;
372
+ acceptanceRef: string;
373
+ };
374
+ schemaVersion: 1;
375
+ template: "code-delivery-v1";
376
+ limits: {
377
+ maxEpochs: number;
378
+ maxBranchAttempts: number;
379
+ maxConcurrentReaders: number;
380
+ maxConcurrentWritersPerRepo: 1;
381
+ maxActionStarts: number;
382
+ deadlineSeconds: number;
383
+ tokenReservationLimit: number;
384
+ };
385
+ publication: "artifact_only";
386
+ };
387
+ inputArtifactRef: string;
388
+ idempotencyKey: string;
389
+ metadata?: {
390
+ trace?: {
391
+ traceId: string;
392
+ spanId?: string | undefined;
393
+ } | undefined;
394
+ requestedAt?: string | undefined;
395
+ } | undefined;
396
+ }>, {
397
+ scope: {
398
+ schemaVersion: 1;
399
+ tenantId: string;
400
+ principalId: string;
401
+ workspaceId: string;
402
+ };
403
+ source: {
404
+ product: "osstack" | "osbot" | "ostag";
405
+ requestId: string;
406
+ parentRunId?: string | undefined;
407
+ };
408
+ kind: "start";
409
+ schemaVersion: 1;
410
+ spec: {
411
+ input: {
412
+ taskRef: string;
413
+ repositoryRef: string;
414
+ baseRevision: string;
415
+ acceptanceRef: string;
416
+ };
417
+ schemaVersion: 1;
418
+ template: "code-delivery-v1";
419
+ limits: {
420
+ maxEpochs: number;
421
+ maxBranchAttempts: number;
422
+ maxConcurrentReaders: number;
423
+ maxConcurrentWritersPerRepo: 1;
424
+ maxActionStarts: number;
425
+ deadlineSeconds: number;
426
+ tokenReservationLimit: number;
427
+ };
428
+ publication: "artifact_only";
429
+ };
430
+ inputArtifactRef: string;
431
+ idempotencyKey: string;
432
+ metadata?: {
433
+ trace?: {
434
+ traceId: string;
435
+ spanId?: string | undefined;
436
+ } | undefined;
437
+ requestedAt?: string | undefined;
438
+ } | undefined;
439
+ }, unknown>;
440
+ resume: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
441
+ kind: z.ZodLiteral<"continue">;
442
+ }, "strict", z.ZodTypeAny, {
443
+ kind: "continue";
444
+ }, {
445
+ kind: "continue";
446
+ }>, z.ZodObject<{
447
+ kind: z.ZodLiteral<"interrupt">;
448
+ value: z.ZodEffects<z.ZodType<GraphJsonValue, z.ZodTypeDef, GraphJsonValue>, GraphJsonValue, unknown>;
449
+ }, "strict", z.ZodTypeAny, {
450
+ value: GraphJsonValue;
451
+ kind: "interrupt";
452
+ }, {
453
+ kind: "interrupt";
454
+ value?: unknown;
455
+ }>]>>;
456
+ heartbeatMs: z.ZodNumber;
457
+ maxInFlight: z.ZodNumber;
458
+ requestTimeoutMs: z.ZodNumber;
459
+ binding: z.ZodObject<{
460
+ scope: z.ZodEffects<z.ZodObject<{
461
+ schemaVersion: z.ZodLiteral<1>;
462
+ tenantId: z.ZodString;
463
+ principalId: z.ZodString;
464
+ workspaceId: z.ZodString;
465
+ }, "strict", z.ZodTypeAny, {
466
+ schemaVersion: 1;
467
+ tenantId: string;
468
+ principalId: string;
469
+ workspaceId: string;
470
+ }, {
471
+ schemaVersion: 1;
472
+ tenantId: string;
473
+ principalId: string;
474
+ workspaceId: string;
475
+ }>, {
476
+ schemaVersion: 1;
477
+ tenantId: string;
478
+ principalId: string;
479
+ workspaceId: string;
480
+ }, unknown>;
481
+ graphRunId: z.ZodString;
482
+ generation: z.ZodNumber;
483
+ owner: z.ZodString;
484
+ identity: z.ZodObject<{
485
+ executionModel: z.ZodLiteral<"langgraph-functional-v1">;
486
+ durability: z.ZodLiteral<"sync">;
487
+ engineVersion: z.ZodString;
488
+ checkpointVersion: z.ZodString;
489
+ templateVersion: z.ZodString;
490
+ registryVersion: z.ZodString;
491
+ compilerVersion: z.ZodString;
492
+ schemaVersion: z.ZodString;
493
+ compiledProgramDigest: z.ZodString;
494
+ specHash: z.ZodString;
495
+ inputDigest: z.ZodString;
496
+ }, "strict", z.ZodTypeAny, {
497
+ schemaVersion: string;
498
+ specHash: string;
499
+ inputDigest: string;
500
+ executionModel: "langgraph-functional-v1";
501
+ durability: "sync";
502
+ engineVersion: string;
503
+ checkpointVersion: string;
504
+ templateVersion: string;
505
+ registryVersion: string;
506
+ compilerVersion: string;
507
+ compiledProgramDigest: string;
508
+ }, {
509
+ schemaVersion: string;
510
+ specHash: string;
511
+ inputDigest: string;
512
+ executionModel: "langgraph-functional-v1";
513
+ durability: "sync";
514
+ engineVersion: string;
515
+ checkpointVersion: string;
516
+ templateVersion: string;
517
+ registryVersion: string;
518
+ compilerVersion: string;
519
+ compiledProgramDigest: string;
520
+ }>;
521
+ }, "strict", z.ZodTypeAny, {
522
+ owner: string;
523
+ scope: {
524
+ schemaVersion: 1;
525
+ tenantId: string;
526
+ principalId: string;
527
+ workspaceId: string;
528
+ };
529
+ graphRunId: string;
530
+ generation: number;
531
+ identity: {
532
+ schemaVersion: string;
533
+ specHash: string;
534
+ inputDigest: string;
535
+ executionModel: "langgraph-functional-v1";
536
+ durability: "sync";
537
+ engineVersion: string;
538
+ checkpointVersion: string;
539
+ templateVersion: string;
540
+ registryVersion: string;
541
+ compilerVersion: string;
542
+ compiledProgramDigest: string;
543
+ };
544
+ }, {
545
+ owner: string;
546
+ graphRunId: string;
547
+ generation: number;
548
+ identity: {
549
+ schemaVersion: string;
550
+ specHash: string;
551
+ inputDigest: string;
552
+ executionModel: "langgraph-functional-v1";
553
+ durability: "sync";
554
+ engineVersion: string;
555
+ checkpointVersion: string;
556
+ templateVersion: string;
557
+ registryVersion: string;
558
+ compilerVersion: string;
559
+ compiledProgramDigest: string;
560
+ };
561
+ scope?: unknown;
562
+ }>;
563
+ kind: z.ZodLiteral<"init">;
564
+ }, "strict", z.ZodTypeAny, {
565
+ source: string;
566
+ kind: "init";
567
+ input: {
568
+ scope: {
569
+ schemaVersion: 1;
570
+ tenantId: string;
571
+ principalId: string;
572
+ workspaceId: string;
573
+ };
574
+ source: {
575
+ product: "osstack" | "osbot" | "ostag";
576
+ requestId: string;
577
+ parentRunId?: string | undefined;
578
+ };
579
+ kind: "start";
580
+ schemaVersion: 1;
581
+ spec: {
582
+ input: {
583
+ taskRef: string;
584
+ repositoryRef: string;
585
+ baseRevision: string;
586
+ acceptanceRef: string;
587
+ };
588
+ schemaVersion: 1;
589
+ template: "code-delivery-v1";
590
+ limits: {
591
+ maxEpochs: number;
592
+ maxBranchAttempts: number;
593
+ maxConcurrentReaders: number;
594
+ maxConcurrentWritersPerRepo: 1;
595
+ maxActionStarts: number;
596
+ deadlineSeconds: number;
597
+ tokenReservationLimit: number;
598
+ };
599
+ publication: "artifact_only";
600
+ };
601
+ inputArtifactRef: string;
602
+ idempotencyKey: string;
603
+ metadata?: {
604
+ trace?: {
605
+ traceId: string;
606
+ spanId?: string | undefined;
607
+ } | undefined;
608
+ requestedAt?: string | undefined;
609
+ } | undefined;
610
+ };
611
+ programId: string;
612
+ heartbeatMs: number;
613
+ maxInFlight: number;
614
+ requestTimeoutMs: number;
615
+ binding: {
616
+ owner: string;
617
+ scope: {
618
+ schemaVersion: 1;
619
+ tenantId: string;
620
+ principalId: string;
621
+ workspaceId: string;
622
+ };
623
+ graphRunId: string;
624
+ generation: number;
625
+ identity: {
626
+ schemaVersion: string;
627
+ specHash: string;
628
+ inputDigest: string;
629
+ executionModel: "langgraph-functional-v1";
630
+ durability: "sync";
631
+ engineVersion: string;
632
+ checkpointVersion: string;
633
+ templateVersion: string;
634
+ registryVersion: string;
635
+ compilerVersion: string;
636
+ compiledProgramDigest: string;
637
+ };
638
+ };
639
+ resume?: {
640
+ kind: "continue";
641
+ } | {
642
+ value: GraphJsonValue;
643
+ kind: "interrupt";
644
+ } | undefined;
645
+ }, {
646
+ source: string;
647
+ kind: "init";
648
+ programId: string;
649
+ heartbeatMs: number;
650
+ maxInFlight: number;
651
+ requestTimeoutMs: number;
652
+ binding: {
653
+ owner: string;
654
+ graphRunId: string;
655
+ generation: number;
656
+ identity: {
657
+ schemaVersion: string;
658
+ specHash: string;
659
+ inputDigest: string;
660
+ executionModel: "langgraph-functional-v1";
661
+ durability: "sync";
662
+ engineVersion: string;
663
+ checkpointVersion: string;
664
+ templateVersion: string;
665
+ registryVersion: string;
666
+ compilerVersion: string;
667
+ compiledProgramDigest: string;
668
+ };
669
+ scope?: unknown;
670
+ };
671
+ input?: unknown;
672
+ resume?: {
673
+ kind: "continue";
674
+ } | {
675
+ kind: "interrupt";
676
+ value?: unknown;
677
+ } | undefined;
678
+ }>, z.ZodObject<{
679
+ binding: z.ZodObject<{
680
+ scope: z.ZodEffects<z.ZodObject<{
681
+ schemaVersion: z.ZodLiteral<1>;
682
+ tenantId: z.ZodString;
683
+ principalId: z.ZodString;
684
+ workspaceId: z.ZodString;
685
+ }, "strict", z.ZodTypeAny, {
686
+ schemaVersion: 1;
687
+ tenantId: string;
688
+ principalId: string;
689
+ workspaceId: string;
690
+ }, {
691
+ schemaVersion: 1;
692
+ tenantId: string;
693
+ principalId: string;
694
+ workspaceId: string;
695
+ }>, {
696
+ schemaVersion: 1;
697
+ tenantId: string;
698
+ principalId: string;
699
+ workspaceId: string;
700
+ }, unknown>;
701
+ graphRunId: z.ZodString;
702
+ generation: z.ZodNumber;
703
+ owner: z.ZodString;
704
+ identity: z.ZodObject<{
705
+ executionModel: z.ZodLiteral<"langgraph-functional-v1">;
706
+ durability: z.ZodLiteral<"sync">;
707
+ engineVersion: z.ZodString;
708
+ checkpointVersion: z.ZodString;
709
+ templateVersion: z.ZodString;
710
+ registryVersion: z.ZodString;
711
+ compilerVersion: z.ZodString;
712
+ schemaVersion: z.ZodString;
713
+ compiledProgramDigest: z.ZodString;
714
+ specHash: z.ZodString;
715
+ inputDigest: z.ZodString;
716
+ }, "strict", z.ZodTypeAny, {
717
+ schemaVersion: string;
718
+ specHash: string;
719
+ inputDigest: string;
720
+ executionModel: "langgraph-functional-v1";
721
+ durability: "sync";
722
+ engineVersion: string;
723
+ checkpointVersion: string;
724
+ templateVersion: string;
725
+ registryVersion: string;
726
+ compilerVersion: string;
727
+ compiledProgramDigest: string;
728
+ }, {
729
+ schemaVersion: string;
730
+ specHash: string;
731
+ inputDigest: string;
732
+ executionModel: "langgraph-functional-v1";
733
+ durability: "sync";
734
+ engineVersion: string;
735
+ checkpointVersion: string;
736
+ templateVersion: string;
737
+ registryVersion: string;
738
+ compilerVersion: string;
739
+ compiledProgramDigest: string;
740
+ }>;
741
+ }, "strict", z.ZodTypeAny, {
742
+ owner: string;
743
+ scope: {
744
+ schemaVersion: 1;
745
+ tenantId: string;
746
+ principalId: string;
747
+ workspaceId: string;
748
+ };
749
+ graphRunId: string;
750
+ generation: number;
751
+ identity: {
752
+ schemaVersion: string;
753
+ specHash: string;
754
+ inputDigest: string;
755
+ executionModel: "langgraph-functional-v1";
756
+ durability: "sync";
757
+ engineVersion: string;
758
+ checkpointVersion: string;
759
+ templateVersion: string;
760
+ registryVersion: string;
761
+ compilerVersion: string;
762
+ compiledProgramDigest: string;
763
+ };
764
+ }, {
765
+ owner: string;
766
+ graphRunId: string;
767
+ generation: number;
768
+ identity: {
769
+ schemaVersion: string;
770
+ specHash: string;
771
+ inputDigest: string;
772
+ executionModel: "langgraph-functional-v1";
773
+ durability: "sync";
774
+ engineVersion: string;
775
+ checkpointVersion: string;
776
+ templateVersion: string;
777
+ registryVersion: string;
778
+ compilerVersion: string;
779
+ compiledProgramDigest: string;
780
+ };
781
+ scope?: unknown;
782
+ }>;
783
+ kind: z.ZodLiteral<"ready">;
784
+ }, "strict", z.ZodTypeAny, {
785
+ kind: "ready";
786
+ binding: {
787
+ owner: string;
788
+ scope: {
789
+ schemaVersion: 1;
790
+ tenantId: string;
791
+ principalId: string;
792
+ workspaceId: string;
793
+ };
794
+ graphRunId: string;
795
+ generation: number;
796
+ identity: {
797
+ schemaVersion: string;
798
+ specHash: string;
799
+ inputDigest: string;
800
+ executionModel: "langgraph-functional-v1";
801
+ durability: "sync";
802
+ engineVersion: string;
803
+ checkpointVersion: string;
804
+ templateVersion: string;
805
+ registryVersion: string;
806
+ compilerVersion: string;
807
+ compiledProgramDigest: string;
808
+ };
809
+ };
810
+ }, {
811
+ kind: "ready";
812
+ binding: {
813
+ owner: string;
814
+ graphRunId: string;
815
+ generation: number;
816
+ identity: {
817
+ schemaVersion: string;
818
+ specHash: string;
819
+ inputDigest: string;
820
+ executionModel: "langgraph-functional-v1";
821
+ durability: "sync";
822
+ engineVersion: string;
823
+ checkpointVersion: string;
824
+ templateVersion: string;
825
+ registryVersion: string;
826
+ compilerVersion: string;
827
+ compiledProgramDigest: string;
828
+ };
829
+ scope?: unknown;
830
+ };
831
+ }>, z.ZodObject<{
832
+ binding: z.ZodObject<{
833
+ scope: z.ZodEffects<z.ZodObject<{
834
+ schemaVersion: z.ZodLiteral<1>;
835
+ tenantId: z.ZodString;
836
+ principalId: z.ZodString;
837
+ workspaceId: z.ZodString;
838
+ }, "strict", z.ZodTypeAny, {
839
+ schemaVersion: 1;
840
+ tenantId: string;
841
+ principalId: string;
842
+ workspaceId: string;
843
+ }, {
844
+ schemaVersion: 1;
845
+ tenantId: string;
846
+ principalId: string;
847
+ workspaceId: string;
848
+ }>, {
849
+ schemaVersion: 1;
850
+ tenantId: string;
851
+ principalId: string;
852
+ workspaceId: string;
853
+ }, unknown>;
854
+ graphRunId: z.ZodString;
855
+ generation: z.ZodNumber;
856
+ owner: z.ZodString;
857
+ identity: z.ZodObject<{
858
+ executionModel: z.ZodLiteral<"langgraph-functional-v1">;
859
+ durability: z.ZodLiteral<"sync">;
860
+ engineVersion: z.ZodString;
861
+ checkpointVersion: z.ZodString;
862
+ templateVersion: z.ZodString;
863
+ registryVersion: z.ZodString;
864
+ compilerVersion: z.ZodString;
865
+ schemaVersion: z.ZodString;
866
+ compiledProgramDigest: z.ZodString;
867
+ specHash: z.ZodString;
868
+ inputDigest: z.ZodString;
869
+ }, "strict", z.ZodTypeAny, {
870
+ schemaVersion: string;
871
+ specHash: string;
872
+ inputDigest: string;
873
+ executionModel: "langgraph-functional-v1";
874
+ durability: "sync";
875
+ engineVersion: string;
876
+ checkpointVersion: string;
877
+ templateVersion: string;
878
+ registryVersion: string;
879
+ compilerVersion: string;
880
+ compiledProgramDigest: string;
881
+ }, {
882
+ schemaVersion: string;
883
+ specHash: string;
884
+ inputDigest: string;
885
+ executionModel: "langgraph-functional-v1";
886
+ durability: "sync";
887
+ engineVersion: string;
888
+ checkpointVersion: string;
889
+ templateVersion: string;
890
+ registryVersion: string;
891
+ compilerVersion: string;
892
+ compiledProgramDigest: string;
893
+ }>;
894
+ }, "strict", z.ZodTypeAny, {
895
+ owner: string;
896
+ scope: {
897
+ schemaVersion: 1;
898
+ tenantId: string;
899
+ principalId: string;
900
+ workspaceId: string;
901
+ };
902
+ graphRunId: string;
903
+ generation: number;
904
+ identity: {
905
+ schemaVersion: string;
906
+ specHash: string;
907
+ inputDigest: string;
908
+ executionModel: "langgraph-functional-v1";
909
+ durability: "sync";
910
+ engineVersion: string;
911
+ checkpointVersion: string;
912
+ templateVersion: string;
913
+ registryVersion: string;
914
+ compilerVersion: string;
915
+ compiledProgramDigest: string;
916
+ };
917
+ }, {
918
+ owner: string;
919
+ graphRunId: string;
920
+ generation: number;
921
+ identity: {
922
+ schemaVersion: string;
923
+ specHash: string;
924
+ inputDigest: string;
925
+ executionModel: "langgraph-functional-v1";
926
+ durability: "sync";
927
+ engineVersion: string;
928
+ checkpointVersion: string;
929
+ templateVersion: string;
930
+ registryVersion: string;
931
+ compilerVersion: string;
932
+ compiledProgramDigest: string;
933
+ };
934
+ scope?: unknown;
935
+ }>;
936
+ kind: z.ZodLiteral<"heartbeat">;
937
+ }, "strict", z.ZodTypeAny, {
938
+ kind: "heartbeat";
939
+ binding: {
940
+ owner: string;
941
+ scope: {
942
+ schemaVersion: 1;
943
+ tenantId: string;
944
+ principalId: string;
945
+ workspaceId: string;
946
+ };
947
+ graphRunId: string;
948
+ generation: number;
949
+ identity: {
950
+ schemaVersion: string;
951
+ specHash: string;
952
+ inputDigest: string;
953
+ executionModel: "langgraph-functional-v1";
954
+ durability: "sync";
955
+ engineVersion: string;
956
+ checkpointVersion: string;
957
+ templateVersion: string;
958
+ registryVersion: string;
959
+ compilerVersion: string;
960
+ compiledProgramDigest: string;
961
+ };
962
+ };
963
+ }, {
964
+ kind: "heartbeat";
965
+ binding: {
966
+ owner: string;
967
+ graphRunId: string;
968
+ generation: number;
969
+ identity: {
970
+ schemaVersion: string;
971
+ specHash: string;
972
+ inputDigest: string;
973
+ executionModel: "langgraph-functional-v1";
974
+ durability: "sync";
975
+ engineVersion: string;
976
+ checkpointVersion: string;
977
+ templateVersion: string;
978
+ registryVersion: string;
979
+ compilerVersion: string;
980
+ compiledProgramDigest: string;
981
+ };
982
+ scope?: unknown;
983
+ };
984
+ }>, z.ZodObject<{
985
+ reason: z.ZodString;
986
+ binding: z.ZodObject<{
987
+ scope: z.ZodEffects<z.ZodObject<{
988
+ schemaVersion: z.ZodLiteral<1>;
989
+ tenantId: z.ZodString;
990
+ principalId: z.ZodString;
991
+ workspaceId: z.ZodString;
992
+ }, "strict", z.ZodTypeAny, {
993
+ schemaVersion: 1;
994
+ tenantId: string;
995
+ principalId: string;
996
+ workspaceId: string;
997
+ }, {
998
+ schemaVersion: 1;
999
+ tenantId: string;
1000
+ principalId: string;
1001
+ workspaceId: string;
1002
+ }>, {
1003
+ schemaVersion: 1;
1004
+ tenantId: string;
1005
+ principalId: string;
1006
+ workspaceId: string;
1007
+ }, unknown>;
1008
+ graphRunId: z.ZodString;
1009
+ generation: z.ZodNumber;
1010
+ owner: z.ZodString;
1011
+ identity: z.ZodObject<{
1012
+ executionModel: z.ZodLiteral<"langgraph-functional-v1">;
1013
+ durability: z.ZodLiteral<"sync">;
1014
+ engineVersion: z.ZodString;
1015
+ checkpointVersion: z.ZodString;
1016
+ templateVersion: z.ZodString;
1017
+ registryVersion: z.ZodString;
1018
+ compilerVersion: z.ZodString;
1019
+ schemaVersion: z.ZodString;
1020
+ compiledProgramDigest: z.ZodString;
1021
+ specHash: z.ZodString;
1022
+ inputDigest: z.ZodString;
1023
+ }, "strict", z.ZodTypeAny, {
1024
+ schemaVersion: string;
1025
+ specHash: string;
1026
+ inputDigest: string;
1027
+ executionModel: "langgraph-functional-v1";
1028
+ durability: "sync";
1029
+ engineVersion: string;
1030
+ checkpointVersion: string;
1031
+ templateVersion: string;
1032
+ registryVersion: string;
1033
+ compilerVersion: string;
1034
+ compiledProgramDigest: string;
1035
+ }, {
1036
+ schemaVersion: string;
1037
+ specHash: string;
1038
+ inputDigest: string;
1039
+ executionModel: "langgraph-functional-v1";
1040
+ durability: "sync";
1041
+ engineVersion: string;
1042
+ checkpointVersion: string;
1043
+ templateVersion: string;
1044
+ registryVersion: string;
1045
+ compilerVersion: string;
1046
+ compiledProgramDigest: string;
1047
+ }>;
1048
+ }, "strict", z.ZodTypeAny, {
1049
+ owner: string;
1050
+ scope: {
1051
+ schemaVersion: 1;
1052
+ tenantId: string;
1053
+ principalId: string;
1054
+ workspaceId: string;
1055
+ };
1056
+ graphRunId: string;
1057
+ generation: number;
1058
+ identity: {
1059
+ schemaVersion: string;
1060
+ specHash: string;
1061
+ inputDigest: string;
1062
+ executionModel: "langgraph-functional-v1";
1063
+ durability: "sync";
1064
+ engineVersion: string;
1065
+ checkpointVersion: string;
1066
+ templateVersion: string;
1067
+ registryVersion: string;
1068
+ compilerVersion: string;
1069
+ compiledProgramDigest: string;
1070
+ };
1071
+ }, {
1072
+ owner: string;
1073
+ graphRunId: string;
1074
+ generation: number;
1075
+ identity: {
1076
+ schemaVersion: string;
1077
+ specHash: string;
1078
+ inputDigest: string;
1079
+ executionModel: "langgraph-functional-v1";
1080
+ durability: "sync";
1081
+ engineVersion: string;
1082
+ checkpointVersion: string;
1083
+ templateVersion: string;
1084
+ registryVersion: string;
1085
+ compilerVersion: string;
1086
+ compiledProgramDigest: string;
1087
+ };
1088
+ scope?: unknown;
1089
+ }>;
1090
+ kind: z.ZodLiteral<"cancel">;
1091
+ }, "strict", z.ZodTypeAny, {
1092
+ reason: string;
1093
+ kind: "cancel";
1094
+ binding: {
1095
+ owner: string;
1096
+ scope: {
1097
+ schemaVersion: 1;
1098
+ tenantId: string;
1099
+ principalId: string;
1100
+ workspaceId: string;
1101
+ };
1102
+ graphRunId: string;
1103
+ generation: number;
1104
+ identity: {
1105
+ schemaVersion: string;
1106
+ specHash: string;
1107
+ inputDigest: string;
1108
+ executionModel: "langgraph-functional-v1";
1109
+ durability: "sync";
1110
+ engineVersion: string;
1111
+ checkpointVersion: string;
1112
+ templateVersion: string;
1113
+ registryVersion: string;
1114
+ compilerVersion: string;
1115
+ compiledProgramDigest: string;
1116
+ };
1117
+ };
1118
+ }, {
1119
+ reason: string;
1120
+ kind: "cancel";
1121
+ binding: {
1122
+ owner: string;
1123
+ graphRunId: string;
1124
+ generation: number;
1125
+ identity: {
1126
+ schemaVersion: string;
1127
+ specHash: string;
1128
+ inputDigest: string;
1129
+ executionModel: "langgraph-functional-v1";
1130
+ durability: "sync";
1131
+ engineVersion: string;
1132
+ checkpointVersion: string;
1133
+ templateVersion: string;
1134
+ registryVersion: string;
1135
+ compilerVersion: string;
1136
+ compiledProgramDigest: string;
1137
+ };
1138
+ scope?: unknown;
1139
+ };
1140
+ }>, z.ZodObject<{
1141
+ id: z.ZodString;
1142
+ method: z.ZodEnum<["action", "checkpoint"]>;
1143
+ payload: z.ZodUnknown;
1144
+ binding: z.ZodObject<{
1145
+ scope: z.ZodEffects<z.ZodObject<{
1146
+ schemaVersion: z.ZodLiteral<1>;
1147
+ tenantId: z.ZodString;
1148
+ principalId: z.ZodString;
1149
+ workspaceId: z.ZodString;
1150
+ }, "strict", z.ZodTypeAny, {
1151
+ schemaVersion: 1;
1152
+ tenantId: string;
1153
+ principalId: string;
1154
+ workspaceId: string;
1155
+ }, {
1156
+ schemaVersion: 1;
1157
+ tenantId: string;
1158
+ principalId: string;
1159
+ workspaceId: string;
1160
+ }>, {
1161
+ schemaVersion: 1;
1162
+ tenantId: string;
1163
+ principalId: string;
1164
+ workspaceId: string;
1165
+ }, unknown>;
1166
+ graphRunId: z.ZodString;
1167
+ generation: z.ZodNumber;
1168
+ owner: z.ZodString;
1169
+ identity: z.ZodObject<{
1170
+ executionModel: z.ZodLiteral<"langgraph-functional-v1">;
1171
+ durability: z.ZodLiteral<"sync">;
1172
+ engineVersion: z.ZodString;
1173
+ checkpointVersion: z.ZodString;
1174
+ templateVersion: z.ZodString;
1175
+ registryVersion: z.ZodString;
1176
+ compilerVersion: z.ZodString;
1177
+ schemaVersion: z.ZodString;
1178
+ compiledProgramDigest: z.ZodString;
1179
+ specHash: z.ZodString;
1180
+ inputDigest: z.ZodString;
1181
+ }, "strict", z.ZodTypeAny, {
1182
+ schemaVersion: string;
1183
+ specHash: string;
1184
+ inputDigest: string;
1185
+ executionModel: "langgraph-functional-v1";
1186
+ durability: "sync";
1187
+ engineVersion: string;
1188
+ checkpointVersion: string;
1189
+ templateVersion: string;
1190
+ registryVersion: string;
1191
+ compilerVersion: string;
1192
+ compiledProgramDigest: string;
1193
+ }, {
1194
+ schemaVersion: string;
1195
+ specHash: string;
1196
+ inputDigest: string;
1197
+ executionModel: "langgraph-functional-v1";
1198
+ durability: "sync";
1199
+ engineVersion: string;
1200
+ checkpointVersion: string;
1201
+ templateVersion: string;
1202
+ registryVersion: string;
1203
+ compilerVersion: string;
1204
+ compiledProgramDigest: string;
1205
+ }>;
1206
+ }, "strict", z.ZodTypeAny, {
1207
+ owner: string;
1208
+ scope: {
1209
+ schemaVersion: 1;
1210
+ tenantId: string;
1211
+ principalId: string;
1212
+ workspaceId: string;
1213
+ };
1214
+ graphRunId: string;
1215
+ generation: number;
1216
+ identity: {
1217
+ schemaVersion: string;
1218
+ specHash: string;
1219
+ inputDigest: string;
1220
+ executionModel: "langgraph-functional-v1";
1221
+ durability: "sync";
1222
+ engineVersion: string;
1223
+ checkpointVersion: string;
1224
+ templateVersion: string;
1225
+ registryVersion: string;
1226
+ compilerVersion: string;
1227
+ compiledProgramDigest: string;
1228
+ };
1229
+ }, {
1230
+ owner: string;
1231
+ graphRunId: string;
1232
+ generation: number;
1233
+ identity: {
1234
+ schemaVersion: string;
1235
+ specHash: string;
1236
+ inputDigest: string;
1237
+ executionModel: "langgraph-functional-v1";
1238
+ durability: "sync";
1239
+ engineVersion: string;
1240
+ checkpointVersion: string;
1241
+ templateVersion: string;
1242
+ registryVersion: string;
1243
+ compilerVersion: string;
1244
+ compiledProgramDigest: string;
1245
+ };
1246
+ scope?: unknown;
1247
+ }>;
1248
+ kind: z.ZodLiteral<"request">;
1249
+ }, "strict", z.ZodTypeAny, {
1250
+ id: string;
1251
+ kind: "request";
1252
+ binding: {
1253
+ owner: string;
1254
+ scope: {
1255
+ schemaVersion: 1;
1256
+ tenantId: string;
1257
+ principalId: string;
1258
+ workspaceId: string;
1259
+ };
1260
+ graphRunId: string;
1261
+ generation: number;
1262
+ identity: {
1263
+ schemaVersion: string;
1264
+ specHash: string;
1265
+ inputDigest: string;
1266
+ executionModel: "langgraph-functional-v1";
1267
+ durability: "sync";
1268
+ engineVersion: string;
1269
+ checkpointVersion: string;
1270
+ templateVersion: string;
1271
+ registryVersion: string;
1272
+ compilerVersion: string;
1273
+ compiledProgramDigest: string;
1274
+ };
1275
+ };
1276
+ method: "action" | "checkpoint";
1277
+ payload?: unknown;
1278
+ }, {
1279
+ id: string;
1280
+ kind: "request";
1281
+ binding: {
1282
+ owner: string;
1283
+ graphRunId: string;
1284
+ generation: number;
1285
+ identity: {
1286
+ schemaVersion: string;
1287
+ specHash: string;
1288
+ inputDigest: string;
1289
+ executionModel: "langgraph-functional-v1";
1290
+ durability: "sync";
1291
+ engineVersion: string;
1292
+ checkpointVersion: string;
1293
+ templateVersion: string;
1294
+ registryVersion: string;
1295
+ compilerVersion: string;
1296
+ compiledProgramDigest: string;
1297
+ };
1298
+ scope?: unknown;
1299
+ };
1300
+ method: "action" | "checkpoint";
1301
+ payload?: unknown;
1302
+ }>, z.ZodObject<{
1303
+ id: z.ZodString;
1304
+ ok: z.ZodBoolean;
1305
+ payload: z.ZodOptional<z.ZodUnknown>;
1306
+ error: z.ZodOptional<z.ZodString>;
1307
+ binding: z.ZodObject<{
1308
+ scope: z.ZodEffects<z.ZodObject<{
1309
+ schemaVersion: z.ZodLiteral<1>;
1310
+ tenantId: z.ZodString;
1311
+ principalId: z.ZodString;
1312
+ workspaceId: z.ZodString;
1313
+ }, "strict", z.ZodTypeAny, {
1314
+ schemaVersion: 1;
1315
+ tenantId: string;
1316
+ principalId: string;
1317
+ workspaceId: string;
1318
+ }, {
1319
+ schemaVersion: 1;
1320
+ tenantId: string;
1321
+ principalId: string;
1322
+ workspaceId: string;
1323
+ }>, {
1324
+ schemaVersion: 1;
1325
+ tenantId: string;
1326
+ principalId: string;
1327
+ workspaceId: string;
1328
+ }, unknown>;
1329
+ graphRunId: z.ZodString;
1330
+ generation: z.ZodNumber;
1331
+ owner: z.ZodString;
1332
+ identity: z.ZodObject<{
1333
+ executionModel: z.ZodLiteral<"langgraph-functional-v1">;
1334
+ durability: z.ZodLiteral<"sync">;
1335
+ engineVersion: z.ZodString;
1336
+ checkpointVersion: z.ZodString;
1337
+ templateVersion: z.ZodString;
1338
+ registryVersion: z.ZodString;
1339
+ compilerVersion: z.ZodString;
1340
+ schemaVersion: z.ZodString;
1341
+ compiledProgramDigest: z.ZodString;
1342
+ specHash: z.ZodString;
1343
+ inputDigest: z.ZodString;
1344
+ }, "strict", z.ZodTypeAny, {
1345
+ schemaVersion: string;
1346
+ specHash: string;
1347
+ inputDigest: string;
1348
+ executionModel: "langgraph-functional-v1";
1349
+ durability: "sync";
1350
+ engineVersion: string;
1351
+ checkpointVersion: string;
1352
+ templateVersion: string;
1353
+ registryVersion: string;
1354
+ compilerVersion: string;
1355
+ compiledProgramDigest: string;
1356
+ }, {
1357
+ schemaVersion: string;
1358
+ specHash: string;
1359
+ inputDigest: string;
1360
+ executionModel: "langgraph-functional-v1";
1361
+ durability: "sync";
1362
+ engineVersion: string;
1363
+ checkpointVersion: string;
1364
+ templateVersion: string;
1365
+ registryVersion: string;
1366
+ compilerVersion: string;
1367
+ compiledProgramDigest: string;
1368
+ }>;
1369
+ }, "strict", z.ZodTypeAny, {
1370
+ owner: string;
1371
+ scope: {
1372
+ schemaVersion: 1;
1373
+ tenantId: string;
1374
+ principalId: string;
1375
+ workspaceId: string;
1376
+ };
1377
+ graphRunId: string;
1378
+ generation: number;
1379
+ identity: {
1380
+ schemaVersion: string;
1381
+ specHash: string;
1382
+ inputDigest: string;
1383
+ executionModel: "langgraph-functional-v1";
1384
+ durability: "sync";
1385
+ engineVersion: string;
1386
+ checkpointVersion: string;
1387
+ templateVersion: string;
1388
+ registryVersion: string;
1389
+ compilerVersion: string;
1390
+ compiledProgramDigest: string;
1391
+ };
1392
+ }, {
1393
+ owner: string;
1394
+ graphRunId: string;
1395
+ generation: number;
1396
+ identity: {
1397
+ schemaVersion: string;
1398
+ specHash: string;
1399
+ inputDigest: string;
1400
+ executionModel: "langgraph-functional-v1";
1401
+ durability: "sync";
1402
+ engineVersion: string;
1403
+ checkpointVersion: string;
1404
+ templateVersion: string;
1405
+ registryVersion: string;
1406
+ compilerVersion: string;
1407
+ compiledProgramDigest: string;
1408
+ };
1409
+ scope?: unknown;
1410
+ }>;
1411
+ kind: z.ZodLiteral<"response">;
1412
+ }, "strict", z.ZodTypeAny, {
1413
+ id: string;
1414
+ ok: boolean;
1415
+ kind: "response";
1416
+ binding: {
1417
+ owner: string;
1418
+ scope: {
1419
+ schemaVersion: 1;
1420
+ tenantId: string;
1421
+ principalId: string;
1422
+ workspaceId: string;
1423
+ };
1424
+ graphRunId: string;
1425
+ generation: number;
1426
+ identity: {
1427
+ schemaVersion: string;
1428
+ specHash: string;
1429
+ inputDigest: string;
1430
+ executionModel: "langgraph-functional-v1";
1431
+ durability: "sync";
1432
+ engineVersion: string;
1433
+ checkpointVersion: string;
1434
+ templateVersion: string;
1435
+ registryVersion: string;
1436
+ compilerVersion: string;
1437
+ compiledProgramDigest: string;
1438
+ };
1439
+ };
1440
+ payload?: unknown;
1441
+ error?: string | undefined;
1442
+ }, {
1443
+ id: string;
1444
+ ok: boolean;
1445
+ kind: "response";
1446
+ binding: {
1447
+ owner: string;
1448
+ graphRunId: string;
1449
+ generation: number;
1450
+ identity: {
1451
+ schemaVersion: string;
1452
+ specHash: string;
1453
+ inputDigest: string;
1454
+ executionModel: "langgraph-functional-v1";
1455
+ durability: "sync";
1456
+ engineVersion: string;
1457
+ checkpointVersion: string;
1458
+ templateVersion: string;
1459
+ registryVersion: string;
1460
+ compilerVersion: string;
1461
+ compiledProgramDigest: string;
1462
+ };
1463
+ scope?: unknown;
1464
+ };
1465
+ payload?: unknown;
1466
+ error?: string | undefined;
1467
+ }>, z.ZodObject<{
1468
+ ok: z.ZodBoolean;
1469
+ value: z.ZodOptional<z.ZodEffects<z.ZodType<GraphJsonValue, z.ZodTypeDef, GraphJsonValue>, GraphJsonValue, unknown>>;
1470
+ error: z.ZodOptional<z.ZodString>;
1471
+ binding: z.ZodObject<{
1472
+ scope: z.ZodEffects<z.ZodObject<{
1473
+ schemaVersion: z.ZodLiteral<1>;
1474
+ tenantId: z.ZodString;
1475
+ principalId: z.ZodString;
1476
+ workspaceId: z.ZodString;
1477
+ }, "strict", z.ZodTypeAny, {
1478
+ schemaVersion: 1;
1479
+ tenantId: string;
1480
+ principalId: string;
1481
+ workspaceId: string;
1482
+ }, {
1483
+ schemaVersion: 1;
1484
+ tenantId: string;
1485
+ principalId: string;
1486
+ workspaceId: string;
1487
+ }>, {
1488
+ schemaVersion: 1;
1489
+ tenantId: string;
1490
+ principalId: string;
1491
+ workspaceId: string;
1492
+ }, unknown>;
1493
+ graphRunId: z.ZodString;
1494
+ generation: z.ZodNumber;
1495
+ owner: z.ZodString;
1496
+ identity: z.ZodObject<{
1497
+ executionModel: z.ZodLiteral<"langgraph-functional-v1">;
1498
+ durability: z.ZodLiteral<"sync">;
1499
+ engineVersion: z.ZodString;
1500
+ checkpointVersion: z.ZodString;
1501
+ templateVersion: z.ZodString;
1502
+ registryVersion: z.ZodString;
1503
+ compilerVersion: z.ZodString;
1504
+ schemaVersion: z.ZodString;
1505
+ compiledProgramDigest: z.ZodString;
1506
+ specHash: z.ZodString;
1507
+ inputDigest: z.ZodString;
1508
+ }, "strict", z.ZodTypeAny, {
1509
+ schemaVersion: string;
1510
+ specHash: string;
1511
+ inputDigest: string;
1512
+ executionModel: "langgraph-functional-v1";
1513
+ durability: "sync";
1514
+ engineVersion: string;
1515
+ checkpointVersion: string;
1516
+ templateVersion: string;
1517
+ registryVersion: string;
1518
+ compilerVersion: string;
1519
+ compiledProgramDigest: string;
1520
+ }, {
1521
+ schemaVersion: string;
1522
+ specHash: string;
1523
+ inputDigest: string;
1524
+ executionModel: "langgraph-functional-v1";
1525
+ durability: "sync";
1526
+ engineVersion: string;
1527
+ checkpointVersion: string;
1528
+ templateVersion: string;
1529
+ registryVersion: string;
1530
+ compilerVersion: string;
1531
+ compiledProgramDigest: string;
1532
+ }>;
1533
+ }, "strict", z.ZodTypeAny, {
1534
+ owner: string;
1535
+ scope: {
1536
+ schemaVersion: 1;
1537
+ tenantId: string;
1538
+ principalId: string;
1539
+ workspaceId: string;
1540
+ };
1541
+ graphRunId: string;
1542
+ generation: number;
1543
+ identity: {
1544
+ schemaVersion: string;
1545
+ specHash: string;
1546
+ inputDigest: string;
1547
+ executionModel: "langgraph-functional-v1";
1548
+ durability: "sync";
1549
+ engineVersion: string;
1550
+ checkpointVersion: string;
1551
+ templateVersion: string;
1552
+ registryVersion: string;
1553
+ compilerVersion: string;
1554
+ compiledProgramDigest: string;
1555
+ };
1556
+ }, {
1557
+ owner: string;
1558
+ graphRunId: string;
1559
+ generation: number;
1560
+ identity: {
1561
+ schemaVersion: string;
1562
+ specHash: string;
1563
+ inputDigest: string;
1564
+ executionModel: "langgraph-functional-v1";
1565
+ durability: "sync";
1566
+ engineVersion: string;
1567
+ checkpointVersion: string;
1568
+ templateVersion: string;
1569
+ registryVersion: string;
1570
+ compilerVersion: string;
1571
+ compiledProgramDigest: string;
1572
+ };
1573
+ scope?: unknown;
1574
+ }>;
1575
+ kind: z.ZodLiteral<"done">;
1576
+ }, "strict", z.ZodTypeAny, {
1577
+ ok: boolean;
1578
+ kind: "done";
1579
+ binding: {
1580
+ owner: string;
1581
+ scope: {
1582
+ schemaVersion: 1;
1583
+ tenantId: string;
1584
+ principalId: string;
1585
+ workspaceId: string;
1586
+ };
1587
+ graphRunId: string;
1588
+ generation: number;
1589
+ identity: {
1590
+ schemaVersion: string;
1591
+ specHash: string;
1592
+ inputDigest: string;
1593
+ executionModel: "langgraph-functional-v1";
1594
+ durability: "sync";
1595
+ engineVersion: string;
1596
+ checkpointVersion: string;
1597
+ templateVersion: string;
1598
+ registryVersion: string;
1599
+ compilerVersion: string;
1600
+ compiledProgramDigest: string;
1601
+ };
1602
+ };
1603
+ value?: GraphJsonValue | undefined;
1604
+ error?: string | undefined;
1605
+ }, {
1606
+ ok: boolean;
1607
+ kind: "done";
1608
+ binding: {
1609
+ owner: string;
1610
+ graphRunId: string;
1611
+ generation: number;
1612
+ identity: {
1613
+ schemaVersion: string;
1614
+ specHash: string;
1615
+ inputDigest: string;
1616
+ executionModel: "langgraph-functional-v1";
1617
+ durability: "sync";
1618
+ engineVersion: string;
1619
+ checkpointVersion: string;
1620
+ templateVersion: string;
1621
+ registryVersion: string;
1622
+ compilerVersion: string;
1623
+ compiledProgramDigest: string;
1624
+ };
1625
+ scope?: unknown;
1626
+ };
1627
+ value?: unknown;
1628
+ error?: string | undefined;
1629
+ }>]>;
1630
+ export type GraphWorkerMessage = z.infer<typeof GraphWorkerMessage>;
1631
+ export declare function workerCanonical(value: unknown): string;
1632
+ export declare function freezeWorkerData<T>(value: T): T;
1633
+ export declare function encodeWorkerFrame(value: unknown, maxBytes?: number): Buffer;
1634
+ /** Never concatenates arbitrary incoming chunks. Only a checked length allocates a body. */
1635
+ export declare class WorkerFrameDecoder {
1636
+ private readonly receive;
1637
+ private readonly maxBytes;
1638
+ private readonly header;
1639
+ private headerUsed;
1640
+ private body;
1641
+ private used;
1642
+ private failed;
1643
+ constructor(receive: (value: unknown) => void, maxBytes?: number);
1644
+ get bufferedBytes(): number;
1645
+ push(chunk: Buffer): void;
1646
+ }
1647
+ /** Fail closed on a stalled peer; no additional userland send queue. */
1648
+ export declare class WorkerFramedTransport {
1649
+ private readonly readable;
1650
+ private readonly writable;
1651
+ private readonly failure;
1652
+ private closed;
1653
+ private readonly maxFrameBytes;
1654
+ private readonly maxBufferedBytes;
1655
+ constructor(readable: Readable, writable: Writable, receive: (value: unknown) => void, failure: (error: Error) => void, limits?: {
1656
+ maxFrameBytes?: number;
1657
+ maxBufferedBytes?: number;
1658
+ });
1659
+ send(value: unknown): void;
1660
+ private fail;
1661
+ close(): void;
1662
+ }
1663
+ //# sourceMappingURL=graph-worker.d.ts.map