@exaudeus/workrail 0.17.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/application/services/output-normalizer.d.ts +9 -0
- package/dist/application/services/output-normalizer.js +38 -0
- package/dist/di/container.js +8 -0
- package/dist/di/tokens.d.ts +2 -0
- package/dist/di/tokens.js +2 -0
- package/dist/infrastructure/session/HttpServer.d.ts +2 -1
- package/dist/infrastructure/session/HttpServer.js +34 -10
- package/dist/infrastructure/session/SessionManager.js +19 -1
- package/dist/infrastructure/storage/enhanced-multi-source-workflow-storage.js +26 -2
- package/dist/infrastructure/storage/file-workflow-storage.js +4 -4
- package/dist/infrastructure/storage/git-workflow-storage.d.ts +0 -1
- package/dist/infrastructure/storage/git-workflow-storage.js +28 -29
- package/dist/infrastructure/storage/plugin-workflow-storage.js +11 -5
- package/dist/manifest.json +276 -92
- package/dist/mcp/handler-factory.d.ts +7 -0
- package/dist/mcp/handler-factory.js +70 -0
- package/dist/mcp/handlers/v2-execution-helpers.d.ts +4 -4
- package/dist/mcp/handlers/v2-execution-helpers.js +29 -0
- package/dist/mcp/handlers/v2-execution.js +460 -166
- package/dist/mcp/output-schemas.d.ts +350 -37
- package/dist/mcp/output-schemas.js +91 -18
- package/dist/mcp/server.js +32 -130
- package/dist/mcp/tool-descriptions.js +126 -18
- package/dist/mcp/types/workflow-tool-edition.d.ts +28 -0
- package/dist/mcp/types/workflow-tool-edition.js +10 -0
- package/dist/mcp/types.d.ts +2 -6
- package/dist/mcp/v1/tool-registry.d.ts +8 -0
- package/dist/mcp/v1/tool-registry.js +49 -0
- package/dist/mcp/v2/tool-registry.d.ts +2 -5
- package/dist/mcp/v2/tool-registry.js +33 -32
- package/dist/mcp/v2/tools.js +6 -6
- package/dist/mcp/workflow-tool-edition-selector.d.ts +4 -0
- package/dist/mcp/workflow-tool-edition-selector.js +13 -0
- package/dist/utils/storage-security.js +15 -1
- package/dist/v2/durable-core/constants.d.ts +1 -0
- package/dist/v2/durable-core/constants.js +2 -1
- package/dist/v2/durable-core/domain/ack-advance-append-plan.d.ts +14 -7
- package/dist/v2/durable-core/domain/ack-advance-append-plan.js +78 -23
- package/dist/v2/durable-core/domain/blocking-decision.d.ts +32 -0
- package/dist/v2/durable-core/domain/blocking-decision.js +41 -0
- package/dist/v2/durable-core/domain/context-merge.d.ts +8 -0
- package/dist/v2/durable-core/domain/context-merge.js +40 -0
- package/dist/v2/durable-core/domain/function-definition-expander.d.ts +14 -0
- package/dist/v2/durable-core/domain/function-definition-expander.js +66 -0
- package/dist/v2/durable-core/domain/gap-builder.d.ts +19 -0
- package/dist/v2/durable-core/domain/gap-builder.js +24 -0
- package/dist/v2/durable-core/domain/prompt-renderer.d.ts +24 -0
- package/dist/v2/durable-core/domain/prompt-renderer.js +167 -0
- package/dist/v2/durable-core/domain/reason-model.d.ts +94 -0
- package/dist/v2/durable-core/domain/reason-model.js +228 -0
- package/dist/v2/durable-core/domain/recap-recovery.d.ts +24 -0
- package/dist/v2/durable-core/domain/recap-recovery.js +71 -0
- package/dist/v2/durable-core/domain/validation-criteria-validator.d.ts +8 -0
- package/dist/v2/durable-core/domain/validation-criteria-validator.js +16 -0
- package/dist/v2/durable-core/domain/validation-requirements-extractor.d.ts +2 -0
- package/dist/v2/durable-core/domain/validation-requirements-extractor.js +58 -0
- package/dist/v2/durable-core/encoding/base32-lower.d.ts +1 -0
- package/dist/v2/durable-core/encoding/base32-lower.js +28 -0
- package/dist/v2/durable-core/ids/index.d.ts +4 -0
- package/dist/v2/durable-core/ids/index.js +7 -0
- package/dist/v2/durable-core/ids/workflow-hash-ref.d.ts +7 -0
- package/dist/v2/durable-core/ids/workflow-hash-ref.js +23 -0
- package/dist/v2/durable-core/schemas/export-bundle/index.d.ts +206 -0
- package/dist/v2/durable-core/schemas/session/events.d.ts +58 -0
- package/dist/v2/durable-core/schemas/session/events.js +9 -0
- package/dist/v2/durable-core/tokens/binary-payload.d.ts +35 -0
- package/dist/v2/durable-core/tokens/binary-payload.js +279 -0
- package/dist/v2/durable-core/tokens/index.d.ts +9 -4
- package/dist/v2/durable-core/tokens/index.js +17 -7
- package/dist/v2/durable-core/tokens/payloads.d.ts +12 -8
- package/dist/v2/durable-core/tokens/payloads.js +5 -3
- package/dist/v2/durable-core/tokens/token-codec-capabilities.d.ts +4 -0
- package/dist/v2/durable-core/tokens/token-codec-capabilities.js +2 -0
- package/dist/v2/durable-core/tokens/token-codec-ports.d.ts +42 -0
- package/dist/v2/durable-core/tokens/token-codec-ports.js +27 -0
- package/dist/v2/durable-core/tokens/token-codec.d.ts +18 -0
- package/dist/v2/durable-core/tokens/token-codec.js +108 -0
- package/dist/v2/durable-core/tokens/token-signer.d.ts +13 -1
- package/dist/v2/durable-core/tokens/token-signer.js +65 -0
- package/dist/v2/infra/local/base32/index.d.ts +6 -0
- package/dist/v2/infra/local/base32/index.js +44 -0
- package/dist/v2/infra/local/bech32m/index.d.ts +8 -0
- package/dist/v2/infra/local/bech32m/index.js +56 -0
- package/dist/v2/infra/local/data-dir/index.d.ts +1 -0
- package/dist/v2/infra/local/data-dir/index.js +5 -2
- package/dist/v2/infra/local/fs/index.js +3 -0
- package/dist/v2/infra/local/session-store/index.js +38 -4
- package/dist/v2/ports/base32.port.d.ts +16 -0
- package/dist/v2/ports/base32.port.js +2 -0
- package/dist/v2/ports/bech32m.port.d.ts +11 -0
- package/dist/v2/ports/bech32m.port.js +2 -0
- package/dist/v2/projections/run-context.d.ts +22 -0
- package/dist/v2/projections/run-context.js +33 -0
- package/package.json +20 -2
|
@@ -245,8 +245,19 @@ export declare const V2PendingStepSchema: z.ZodObject<{
|
|
|
245
245
|
prompt: string;
|
|
246
246
|
stepId: string;
|
|
247
247
|
}>;
|
|
248
|
-
export declare const
|
|
249
|
-
|
|
248
|
+
export declare const V2PreferencesSchema: z.ZodObject<{
|
|
249
|
+
autonomy: z.ZodEnum<["guided", "full_auto_stop_on_user_deps", "full_auto_never_stop"]>;
|
|
250
|
+
riskPolicy: z.ZodEnum<["conservative", "balanced", "aggressive"]>;
|
|
251
|
+
}, "strip", z.ZodTypeAny, {
|
|
252
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
253
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
254
|
+
}, {
|
|
255
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
256
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
257
|
+
}>;
|
|
258
|
+
export declare const V2NextIntentSchema: z.ZodEnum<["perform_pending_then_continue", "await_user_confirmation", "rehydrate_only", "complete"]>;
|
|
259
|
+
export declare const V2BlockerReportSchema: z.ZodEffects<z.ZodObject<{
|
|
260
|
+
blockers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
250
261
|
code: z.ZodEnum<["USER_ONLY_DEPENDENCY", "MISSING_REQUIRED_OUTPUT", "INVALID_REQUIRED_OUTPUT", "REQUIRED_CAPABILITY_UNKNOWN", "REQUIRED_CAPABILITY_UNAVAILABLE", "INVARIANT_VIOLATION", "STORAGE_CORRUPTION_DETECTED"]>;
|
|
251
262
|
pointer: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
252
263
|
kind: z.ZodLiteral<"context_key">;
|
|
@@ -257,6 +268,12 @@ export declare const V2BlockerReportSchema: z.ZodObject<{
|
|
|
257
268
|
}, {
|
|
258
269
|
key: string;
|
|
259
270
|
kind: "context_key";
|
|
271
|
+
}>, z.ZodObject<{
|
|
272
|
+
kind: z.ZodLiteral<"context_budget">;
|
|
273
|
+
}, "strip", z.ZodTypeAny, {
|
|
274
|
+
kind: "context_budget";
|
|
275
|
+
}, {
|
|
276
|
+
kind: "context_budget";
|
|
260
277
|
}>, z.ZodObject<{
|
|
261
278
|
kind: z.ZodLiteral<"output_contract">;
|
|
262
279
|
contractRef: z.ZodString;
|
|
@@ -285,14 +302,16 @@ export declare const V2BlockerReportSchema: z.ZodObject<{
|
|
|
285
302
|
kind: "workflow_step";
|
|
286
303
|
stepId: string;
|
|
287
304
|
}>]>;
|
|
288
|
-
message: z.ZodString
|
|
289
|
-
suggestedFix: z.ZodOptional<z.ZodString
|
|
305
|
+
message: z.ZodEffects<z.ZodString, string, string>;
|
|
306
|
+
suggestedFix: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
290
307
|
}, "strip", z.ZodTypeAny, {
|
|
291
308
|
message: string;
|
|
292
309
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
293
310
|
pointer: {
|
|
294
311
|
key: string;
|
|
295
312
|
kind: "context_key";
|
|
313
|
+
} | {
|
|
314
|
+
kind: "context_budget";
|
|
296
315
|
} | {
|
|
297
316
|
kind: "output_contract";
|
|
298
317
|
contractRef: string;
|
|
@@ -310,6 +329,8 @@ export declare const V2BlockerReportSchema: z.ZodObject<{
|
|
|
310
329
|
pointer: {
|
|
311
330
|
key: string;
|
|
312
331
|
kind: "context_key";
|
|
332
|
+
} | {
|
|
333
|
+
kind: "context_budget";
|
|
313
334
|
} | {
|
|
314
335
|
kind: "output_contract";
|
|
315
336
|
contractRef: string;
|
|
@@ -321,14 +342,16 @@ export declare const V2BlockerReportSchema: z.ZodObject<{
|
|
|
321
342
|
stepId: string;
|
|
322
343
|
};
|
|
323
344
|
suggestedFix?: string | undefined;
|
|
324
|
-
}>, "many"
|
|
345
|
+
}>, "many">>;
|
|
325
346
|
}, "strip", z.ZodTypeAny, {
|
|
326
|
-
blockers: {
|
|
347
|
+
blockers: readonly {
|
|
327
348
|
message: string;
|
|
328
349
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
329
350
|
pointer: {
|
|
330
351
|
key: string;
|
|
331
352
|
kind: "context_key";
|
|
353
|
+
} | {
|
|
354
|
+
kind: "context_budget";
|
|
332
355
|
} | {
|
|
333
356
|
kind: "output_contract";
|
|
334
357
|
contractRef: string;
|
|
@@ -342,12 +365,56 @@ export declare const V2BlockerReportSchema: z.ZodObject<{
|
|
|
342
365
|
suggestedFix?: string | undefined;
|
|
343
366
|
}[];
|
|
344
367
|
}, {
|
|
345
|
-
blockers: {
|
|
368
|
+
blockers: readonly {
|
|
369
|
+
message: string;
|
|
370
|
+
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
371
|
+
pointer: {
|
|
372
|
+
key: string;
|
|
373
|
+
kind: "context_key";
|
|
374
|
+
} | {
|
|
375
|
+
kind: "context_budget";
|
|
376
|
+
} | {
|
|
377
|
+
kind: "output_contract";
|
|
378
|
+
contractRef: string;
|
|
379
|
+
} | {
|
|
380
|
+
kind: "capability";
|
|
381
|
+
capability: "delegation" | "web_browsing";
|
|
382
|
+
} | {
|
|
383
|
+
kind: "workflow_step";
|
|
384
|
+
stepId: string;
|
|
385
|
+
};
|
|
386
|
+
suggestedFix?: string | undefined;
|
|
387
|
+
}[];
|
|
388
|
+
}>, {
|
|
389
|
+
blockers: readonly {
|
|
390
|
+
message: string;
|
|
391
|
+
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
392
|
+
pointer: {
|
|
393
|
+
key: string;
|
|
394
|
+
kind: "context_key";
|
|
395
|
+
} | {
|
|
396
|
+
kind: "context_budget";
|
|
397
|
+
} | {
|
|
398
|
+
kind: "output_contract";
|
|
399
|
+
contractRef: string;
|
|
400
|
+
} | {
|
|
401
|
+
kind: "capability";
|
|
402
|
+
capability: "delegation" | "web_browsing";
|
|
403
|
+
} | {
|
|
404
|
+
kind: "workflow_step";
|
|
405
|
+
stepId: string;
|
|
406
|
+
};
|
|
407
|
+
suggestedFix?: string | undefined;
|
|
408
|
+
}[];
|
|
409
|
+
}, {
|
|
410
|
+
blockers: readonly {
|
|
346
411
|
message: string;
|
|
347
412
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
348
413
|
pointer: {
|
|
349
414
|
key: string;
|
|
350
415
|
kind: "context_key";
|
|
416
|
+
} | {
|
|
417
|
+
kind: "context_budget";
|
|
351
418
|
} | {
|
|
352
419
|
kind: "output_contract";
|
|
353
420
|
contractRef: string;
|
|
@@ -361,11 +428,10 @@ export declare const V2BlockerReportSchema: z.ZodObject<{
|
|
|
361
428
|
suggestedFix?: string | undefined;
|
|
362
429
|
}[];
|
|
363
430
|
}>;
|
|
364
|
-
export declare const V2ContinueWorkflowOutputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
431
|
+
export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
365
432
|
kind: z.ZodLiteral<"ok">;
|
|
366
433
|
stateToken: z.ZodString;
|
|
367
|
-
ackToken: z.ZodString
|
|
368
|
-
checkpointToken: z.ZodString;
|
|
434
|
+
ackToken: z.ZodOptional<z.ZodString>;
|
|
369
435
|
isComplete: z.ZodBoolean;
|
|
370
436
|
pending: z.ZodNullable<z.ZodObject<{
|
|
371
437
|
stepId: z.ZodString;
|
|
@@ -380,6 +446,17 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodDiscriminatedUnion<"ki
|
|
|
380
446
|
prompt: string;
|
|
381
447
|
stepId: string;
|
|
382
448
|
}>>;
|
|
449
|
+
preferences: z.ZodObject<{
|
|
450
|
+
autonomy: z.ZodEnum<["guided", "full_auto_stop_on_user_deps", "full_auto_never_stop"]>;
|
|
451
|
+
riskPolicy: z.ZodEnum<["conservative", "balanced", "aggressive"]>;
|
|
452
|
+
}, "strip", z.ZodTypeAny, {
|
|
453
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
454
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
455
|
+
}, {
|
|
456
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
457
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
458
|
+
}>;
|
|
459
|
+
nextIntent: z.ZodEnum<["perform_pending_then_continue", "await_user_confirmation", "rehydrate_only", "complete"]>;
|
|
383
460
|
}, "strip", z.ZodTypeAny, {
|
|
384
461
|
kind: "ok";
|
|
385
462
|
pending: {
|
|
@@ -389,8 +466,12 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodDiscriminatedUnion<"ki
|
|
|
389
466
|
} | null;
|
|
390
467
|
isComplete: boolean;
|
|
391
468
|
stateToken: string;
|
|
392
|
-
|
|
393
|
-
|
|
469
|
+
preferences: {
|
|
470
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
471
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
472
|
+
};
|
|
473
|
+
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
474
|
+
ackToken?: string | undefined;
|
|
394
475
|
}, {
|
|
395
476
|
kind: "ok";
|
|
396
477
|
pending: {
|
|
@@ -400,13 +481,16 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodDiscriminatedUnion<"ki
|
|
|
400
481
|
} | null;
|
|
401
482
|
isComplete: boolean;
|
|
402
483
|
stateToken: string;
|
|
403
|
-
|
|
404
|
-
|
|
484
|
+
preferences: {
|
|
485
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
486
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
487
|
+
};
|
|
488
|
+
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
489
|
+
ackToken?: string | undefined;
|
|
405
490
|
}>, z.ZodObject<{
|
|
406
491
|
kind: z.ZodLiteral<"blocked">;
|
|
407
492
|
stateToken: z.ZodString;
|
|
408
|
-
ackToken: z.ZodString
|
|
409
|
-
checkpointToken: z.ZodString;
|
|
493
|
+
ackToken: z.ZodOptional<z.ZodString>;
|
|
410
494
|
isComplete: z.ZodBoolean;
|
|
411
495
|
pending: z.ZodNullable<z.ZodObject<{
|
|
412
496
|
stepId: z.ZodString;
|
|
@@ -421,8 +505,19 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodDiscriminatedUnion<"ki
|
|
|
421
505
|
prompt: string;
|
|
422
506
|
stepId: string;
|
|
423
507
|
}>>;
|
|
424
|
-
|
|
425
|
-
|
|
508
|
+
preferences: z.ZodObject<{
|
|
509
|
+
autonomy: z.ZodEnum<["guided", "full_auto_stop_on_user_deps", "full_auto_never_stop"]>;
|
|
510
|
+
riskPolicy: z.ZodEnum<["conservative", "balanced", "aggressive"]>;
|
|
511
|
+
}, "strip", z.ZodTypeAny, {
|
|
512
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
513
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
514
|
+
}, {
|
|
515
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
516
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
517
|
+
}>;
|
|
518
|
+
nextIntent: z.ZodEnum<["perform_pending_then_continue", "await_user_confirmation", "rehydrate_only", "complete"]>;
|
|
519
|
+
blockers: z.ZodEffects<z.ZodObject<{
|
|
520
|
+
blockers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
426
521
|
code: z.ZodEnum<["USER_ONLY_DEPENDENCY", "MISSING_REQUIRED_OUTPUT", "INVALID_REQUIRED_OUTPUT", "REQUIRED_CAPABILITY_UNKNOWN", "REQUIRED_CAPABILITY_UNAVAILABLE", "INVARIANT_VIOLATION", "STORAGE_CORRUPTION_DETECTED"]>;
|
|
427
522
|
pointer: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
428
523
|
kind: z.ZodLiteral<"context_key">;
|
|
@@ -433,6 +528,12 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodDiscriminatedUnion<"ki
|
|
|
433
528
|
}, {
|
|
434
529
|
key: string;
|
|
435
530
|
kind: "context_key";
|
|
531
|
+
}>, z.ZodObject<{
|
|
532
|
+
kind: z.ZodLiteral<"context_budget">;
|
|
533
|
+
}, "strip", z.ZodTypeAny, {
|
|
534
|
+
kind: "context_budget";
|
|
535
|
+
}, {
|
|
536
|
+
kind: "context_budget";
|
|
436
537
|
}>, z.ZodObject<{
|
|
437
538
|
kind: z.ZodLiteral<"output_contract">;
|
|
438
539
|
contractRef: z.ZodString;
|
|
@@ -461,14 +562,16 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodDiscriminatedUnion<"ki
|
|
|
461
562
|
kind: "workflow_step";
|
|
462
563
|
stepId: string;
|
|
463
564
|
}>]>;
|
|
464
|
-
message: z.ZodString
|
|
465
|
-
suggestedFix: z.ZodOptional<z.ZodString
|
|
565
|
+
message: z.ZodEffects<z.ZodString, string, string>;
|
|
566
|
+
suggestedFix: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
466
567
|
}, "strip", z.ZodTypeAny, {
|
|
467
568
|
message: string;
|
|
468
569
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
469
570
|
pointer: {
|
|
470
571
|
key: string;
|
|
471
572
|
kind: "context_key";
|
|
573
|
+
} | {
|
|
574
|
+
kind: "context_budget";
|
|
472
575
|
} | {
|
|
473
576
|
kind: "output_contract";
|
|
474
577
|
contractRef: string;
|
|
@@ -486,6 +589,8 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodDiscriminatedUnion<"ki
|
|
|
486
589
|
pointer: {
|
|
487
590
|
key: string;
|
|
488
591
|
kind: "context_key";
|
|
592
|
+
} | {
|
|
593
|
+
kind: "context_budget";
|
|
489
594
|
} | {
|
|
490
595
|
kind: "output_contract";
|
|
491
596
|
contractRef: string;
|
|
@@ -497,14 +602,58 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodDiscriminatedUnion<"ki
|
|
|
497
602
|
stepId: string;
|
|
498
603
|
};
|
|
499
604
|
suggestedFix?: string | undefined;
|
|
500
|
-
}>, "many"
|
|
605
|
+
}>, "many">>;
|
|
501
606
|
}, "strip", z.ZodTypeAny, {
|
|
502
|
-
blockers: {
|
|
607
|
+
blockers: readonly {
|
|
608
|
+
message: string;
|
|
609
|
+
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
610
|
+
pointer: {
|
|
611
|
+
key: string;
|
|
612
|
+
kind: "context_key";
|
|
613
|
+
} | {
|
|
614
|
+
kind: "context_budget";
|
|
615
|
+
} | {
|
|
616
|
+
kind: "output_contract";
|
|
617
|
+
contractRef: string;
|
|
618
|
+
} | {
|
|
619
|
+
kind: "capability";
|
|
620
|
+
capability: "delegation" | "web_browsing";
|
|
621
|
+
} | {
|
|
622
|
+
kind: "workflow_step";
|
|
623
|
+
stepId: string;
|
|
624
|
+
};
|
|
625
|
+
suggestedFix?: string | undefined;
|
|
626
|
+
}[];
|
|
627
|
+
}, {
|
|
628
|
+
blockers: readonly {
|
|
629
|
+
message: string;
|
|
630
|
+
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
631
|
+
pointer: {
|
|
632
|
+
key: string;
|
|
633
|
+
kind: "context_key";
|
|
634
|
+
} | {
|
|
635
|
+
kind: "context_budget";
|
|
636
|
+
} | {
|
|
637
|
+
kind: "output_contract";
|
|
638
|
+
contractRef: string;
|
|
639
|
+
} | {
|
|
640
|
+
kind: "capability";
|
|
641
|
+
capability: "delegation" | "web_browsing";
|
|
642
|
+
} | {
|
|
643
|
+
kind: "workflow_step";
|
|
644
|
+
stepId: string;
|
|
645
|
+
};
|
|
646
|
+
suggestedFix?: string | undefined;
|
|
647
|
+
}[];
|
|
648
|
+
}>, {
|
|
649
|
+
blockers: readonly {
|
|
503
650
|
message: string;
|
|
504
651
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
505
652
|
pointer: {
|
|
506
653
|
key: string;
|
|
507
654
|
kind: "context_key";
|
|
655
|
+
} | {
|
|
656
|
+
kind: "context_budget";
|
|
508
657
|
} | {
|
|
509
658
|
kind: "output_contract";
|
|
510
659
|
contractRef: string;
|
|
@@ -518,12 +667,14 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodDiscriminatedUnion<"ki
|
|
|
518
667
|
suggestedFix?: string | undefined;
|
|
519
668
|
}[];
|
|
520
669
|
}, {
|
|
521
|
-
blockers: {
|
|
670
|
+
blockers: readonly {
|
|
522
671
|
message: string;
|
|
523
672
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
524
673
|
pointer: {
|
|
525
674
|
key: string;
|
|
526
675
|
kind: "context_key";
|
|
676
|
+
} | {
|
|
677
|
+
kind: "context_budget";
|
|
527
678
|
} | {
|
|
528
679
|
kind: "output_contract";
|
|
529
680
|
contractRef: string;
|
|
@@ -545,12 +696,103 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodDiscriminatedUnion<"ki
|
|
|
545
696
|
stepId: string;
|
|
546
697
|
} | null;
|
|
547
698
|
blockers: {
|
|
548
|
-
blockers: {
|
|
699
|
+
blockers: readonly {
|
|
549
700
|
message: string;
|
|
550
701
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
551
702
|
pointer: {
|
|
552
703
|
key: string;
|
|
553
704
|
kind: "context_key";
|
|
705
|
+
} | {
|
|
706
|
+
kind: "context_budget";
|
|
707
|
+
} | {
|
|
708
|
+
kind: "output_contract";
|
|
709
|
+
contractRef: string;
|
|
710
|
+
} | {
|
|
711
|
+
kind: "capability";
|
|
712
|
+
capability: "delegation" | "web_browsing";
|
|
713
|
+
} | {
|
|
714
|
+
kind: "workflow_step";
|
|
715
|
+
stepId: string;
|
|
716
|
+
};
|
|
717
|
+
suggestedFix?: string | undefined;
|
|
718
|
+
}[];
|
|
719
|
+
};
|
|
720
|
+
isComplete: boolean;
|
|
721
|
+
stateToken: string;
|
|
722
|
+
preferences: {
|
|
723
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
724
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
725
|
+
};
|
|
726
|
+
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
727
|
+
ackToken?: string | undefined;
|
|
728
|
+
}, {
|
|
729
|
+
kind: "blocked";
|
|
730
|
+
pending: {
|
|
731
|
+
title: string;
|
|
732
|
+
prompt: string;
|
|
733
|
+
stepId: string;
|
|
734
|
+
} | null;
|
|
735
|
+
blockers: {
|
|
736
|
+
blockers: readonly {
|
|
737
|
+
message: string;
|
|
738
|
+
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
739
|
+
pointer: {
|
|
740
|
+
key: string;
|
|
741
|
+
kind: "context_key";
|
|
742
|
+
} | {
|
|
743
|
+
kind: "context_budget";
|
|
744
|
+
} | {
|
|
745
|
+
kind: "output_contract";
|
|
746
|
+
contractRef: string;
|
|
747
|
+
} | {
|
|
748
|
+
kind: "capability";
|
|
749
|
+
capability: "delegation" | "web_browsing";
|
|
750
|
+
} | {
|
|
751
|
+
kind: "workflow_step";
|
|
752
|
+
stepId: string;
|
|
753
|
+
};
|
|
754
|
+
suggestedFix?: string | undefined;
|
|
755
|
+
}[];
|
|
756
|
+
};
|
|
757
|
+
isComplete: boolean;
|
|
758
|
+
stateToken: string;
|
|
759
|
+
preferences: {
|
|
760
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
761
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
762
|
+
};
|
|
763
|
+
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
764
|
+
ackToken?: string | undefined;
|
|
765
|
+
}>]>, {
|
|
766
|
+
kind: "ok";
|
|
767
|
+
pending: {
|
|
768
|
+
title: string;
|
|
769
|
+
prompt: string;
|
|
770
|
+
stepId: string;
|
|
771
|
+
} | null;
|
|
772
|
+
isComplete: boolean;
|
|
773
|
+
stateToken: string;
|
|
774
|
+
preferences: {
|
|
775
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
776
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
777
|
+
};
|
|
778
|
+
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
779
|
+
ackToken?: string | undefined;
|
|
780
|
+
} | {
|
|
781
|
+
kind: "blocked";
|
|
782
|
+
pending: {
|
|
783
|
+
title: string;
|
|
784
|
+
prompt: string;
|
|
785
|
+
stepId: string;
|
|
786
|
+
} | null;
|
|
787
|
+
blockers: {
|
|
788
|
+
blockers: readonly {
|
|
789
|
+
message: string;
|
|
790
|
+
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
791
|
+
pointer: {
|
|
792
|
+
key: string;
|
|
793
|
+
kind: "context_key";
|
|
794
|
+
} | {
|
|
795
|
+
kind: "context_budget";
|
|
554
796
|
} | {
|
|
555
797
|
kind: "output_contract";
|
|
556
798
|
contractRef: string;
|
|
@@ -566,9 +808,28 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodDiscriminatedUnion<"ki
|
|
|
566
808
|
};
|
|
567
809
|
isComplete: boolean;
|
|
568
810
|
stateToken: string;
|
|
569
|
-
|
|
570
|
-
|
|
811
|
+
preferences: {
|
|
812
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
813
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
814
|
+
};
|
|
815
|
+
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
816
|
+
ackToken?: string | undefined;
|
|
571
817
|
}, {
|
|
818
|
+
kind: "ok";
|
|
819
|
+
pending: {
|
|
820
|
+
title: string;
|
|
821
|
+
prompt: string;
|
|
822
|
+
stepId: string;
|
|
823
|
+
} | null;
|
|
824
|
+
isComplete: boolean;
|
|
825
|
+
stateToken: string;
|
|
826
|
+
preferences: {
|
|
827
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
828
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
829
|
+
};
|
|
830
|
+
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
831
|
+
ackToken?: string | undefined;
|
|
832
|
+
} | {
|
|
572
833
|
kind: "blocked";
|
|
573
834
|
pending: {
|
|
574
835
|
title: string;
|
|
@@ -576,12 +837,14 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodDiscriminatedUnion<"ki
|
|
|
576
837
|
stepId: string;
|
|
577
838
|
} | null;
|
|
578
839
|
blockers: {
|
|
579
|
-
blockers: {
|
|
840
|
+
blockers: readonly {
|
|
580
841
|
message: string;
|
|
581
842
|
code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
|
|
582
843
|
pointer: {
|
|
583
844
|
key: string;
|
|
584
845
|
kind: "context_key";
|
|
846
|
+
} | {
|
|
847
|
+
kind: "context_budget";
|
|
585
848
|
} | {
|
|
586
849
|
kind: "output_contract";
|
|
587
850
|
contractRef: string;
|
|
@@ -597,13 +860,16 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodDiscriminatedUnion<"ki
|
|
|
597
860
|
};
|
|
598
861
|
isComplete: boolean;
|
|
599
862
|
stateToken: string;
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
863
|
+
preferences: {
|
|
864
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
865
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
866
|
+
};
|
|
867
|
+
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
868
|
+
ackToken?: string | undefined;
|
|
869
|
+
}>;
|
|
870
|
+
export declare const V2StartWorkflowOutputSchema: z.ZodEffects<z.ZodObject<{
|
|
604
871
|
stateToken: z.ZodString;
|
|
605
|
-
ackToken: z.ZodString
|
|
606
|
-
checkpointToken: z.ZodString;
|
|
872
|
+
ackToken: z.ZodOptional<z.ZodString>;
|
|
607
873
|
isComplete: z.ZodBoolean;
|
|
608
874
|
pending: z.ZodNullable<z.ZodObject<{
|
|
609
875
|
stepId: z.ZodString;
|
|
@@ -618,6 +884,17 @@ export declare const V2StartWorkflowOutputSchema: z.ZodObject<{
|
|
|
618
884
|
prompt: string;
|
|
619
885
|
stepId: string;
|
|
620
886
|
}>>;
|
|
887
|
+
preferences: z.ZodObject<{
|
|
888
|
+
autonomy: z.ZodEnum<["guided", "full_auto_stop_on_user_deps", "full_auto_never_stop"]>;
|
|
889
|
+
riskPolicy: z.ZodEnum<["conservative", "balanced", "aggressive"]>;
|
|
890
|
+
}, "strip", z.ZodTypeAny, {
|
|
891
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
892
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
893
|
+
}, {
|
|
894
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
895
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
896
|
+
}>;
|
|
897
|
+
nextIntent: z.ZodEnum<["perform_pending_then_continue", "await_user_confirmation", "rehydrate_only", "complete"]>;
|
|
621
898
|
}, "strip", z.ZodTypeAny, {
|
|
622
899
|
pending: {
|
|
623
900
|
title: string;
|
|
@@ -626,8 +903,40 @@ export declare const V2StartWorkflowOutputSchema: z.ZodObject<{
|
|
|
626
903
|
} | null;
|
|
627
904
|
isComplete: boolean;
|
|
628
905
|
stateToken: string;
|
|
629
|
-
|
|
630
|
-
|
|
906
|
+
preferences: {
|
|
907
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
908
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
909
|
+
};
|
|
910
|
+
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
911
|
+
ackToken?: string | undefined;
|
|
912
|
+
}, {
|
|
913
|
+
pending: {
|
|
914
|
+
title: string;
|
|
915
|
+
prompt: string;
|
|
916
|
+
stepId: string;
|
|
917
|
+
} | null;
|
|
918
|
+
isComplete: boolean;
|
|
919
|
+
stateToken: string;
|
|
920
|
+
preferences: {
|
|
921
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
922
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
923
|
+
};
|
|
924
|
+
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
925
|
+
ackToken?: string | undefined;
|
|
926
|
+
}>, {
|
|
927
|
+
pending: {
|
|
928
|
+
title: string;
|
|
929
|
+
prompt: string;
|
|
930
|
+
stepId: string;
|
|
931
|
+
} | null;
|
|
932
|
+
isComplete: boolean;
|
|
933
|
+
stateToken: string;
|
|
934
|
+
preferences: {
|
|
935
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
936
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
937
|
+
};
|
|
938
|
+
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
939
|
+
ackToken?: string | undefined;
|
|
631
940
|
}, {
|
|
632
941
|
pending: {
|
|
633
942
|
title: string;
|
|
@@ -636,8 +945,12 @@ export declare const V2StartWorkflowOutputSchema: z.ZodObject<{
|
|
|
636
945
|
} | null;
|
|
637
946
|
isComplete: boolean;
|
|
638
947
|
stateToken: string;
|
|
639
|
-
|
|
640
|
-
|
|
948
|
+
preferences: {
|
|
949
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
950
|
+
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
951
|
+
};
|
|
952
|
+
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
953
|
+
ackToken?: string | undefined;
|
|
641
954
|
}>;
|
|
642
955
|
export declare const CreateSessionOutputSchema: z.ZodObject<{
|
|
643
956
|
sessionId: z.ZodString;
|