@hearsay-tools/squawk 0.18.0-pr4165.8028 → 0.18.0-pr4166.8029.2

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 (116) hide show
  1. package/dist/activity/wait.js +5 -0
  2. package/dist/activity/wait.js.map +1 -1
  3. package/dist/built-in-run-slots.d.ts +1 -3
  4. package/dist/built-in-run-slots.js +2 -6
  5. package/dist/built-in-run-slots.js.map +1 -1
  6. package/dist/ci-wait/controller.d.ts +74 -2
  7. package/dist/ci-wait/tool-catalog.js +3 -3
  8. package/dist/ci-wait/tool-catalog.js.map +1 -1
  9. package/dist/ci-wait/tools.d.ts +62 -2
  10. package/dist/contract/activity.d.ts +64 -0
  11. package/dist/contract/index.js +52 -6
  12. package/dist/contract/runs.d.ts +240 -0
  13. package/dist/contract/wait-tools.d.ts +231 -10
  14. package/dist/contract/waits.d.ts +87 -0
  15. package/dist/contract/workspace-events.d.ts +12 -0
  16. package/dist/runs/removal-slots.js +20 -27
  17. package/dist/runs/removal-slots.js.map +1 -1
  18. package/dist/runs/run-archive.d.ts +48 -0
  19. package/dist/runs/run-decode.d.ts +120 -0
  20. package/dist/runs/run-exits.d.ts +224 -0
  21. package/dist/runs/worker-executions-registry.d.ts +3 -5
  22. package/dist/runs/worker-executions-registry.js +15 -13
  23. package/dist/runs/worker-executions-registry.js.map +1 -1
  24. package/dist/server/activity-routes.d.ts +16 -0
  25. package/dist/server/server.d.ts +1132 -0
  26. package/dist/subcommands.js +1 -2
  27. package/dist/subcommands.js.map +1 -1
  28. package/dist/workflows/continuation-admission.d.ts +48 -0
  29. package/dist/workflows/input-acknowledgement.d.ts +16 -0
  30. package/dist/workflows/run/wait-engine.d.ts +48 -0
  31. package/dist/workflows/run/wait-engine.js +4 -0
  32. package/dist/workflows/run/wait-engine.js.map +1 -1
  33. package/dist/workflows/run/wait-kinds.d.ts +6 -3
  34. package/dist/workflows/run/wait-kinds.js +24 -2
  35. package/dist/workflows/run/wait-kinds.js.map +1 -1
  36. package/dist/workflows/run/wait-registration.js +4 -3
  37. package/dist/workflows/run/wait-registration.js.map +1 -1
  38. package/dist/workflows/run/wait-registry.js +2 -2
  39. package/dist/workflows/run/wait-registry.js.map +1 -1
  40. package/dist/workflows/run-states.d.ts +1 -1
  41. package/dist/workflows/run-states.js +3 -2
  42. package/dist/workflows/run-states.js.map +1 -1
  43. package/dist/workflows/waits.js +5 -3
  44. package/dist/workflows/waits.js.map +1 -1
  45. package/package.json +4 -4
  46. package/scripts/benchmark-family-reconcile.ts +1 -2
  47. package/scripts/benchmark-run-store.ts +1 -2
  48. package/scripts/benchmark-stuck-destroys.ts +1 -2
  49. package/scripts/benchmark-worker-lifecycle.ts +1 -2
  50. package/scripts/benchmark-workspace-events.ts +1 -2
  51. package/scripts/benchmark-worktree-retention.ts +1 -2
  52. package/scripts/measure-transcript-facts-health.mjs +1 -2
  53. package/web/dist/assets/{accounts-section-Lxa13E8O.js → accounts-section-B-zlsH7k.js} +1 -1
  54. package/web/dist/assets/activity-motion-psm6jyeg.js +2 -0
  55. package/web/dist/assets/{activity-route-Bo-Cyzsz.js → activity-route-DeK0riM9.js} +1 -1
  56. package/web/dist/assets/{agent-config-section-BE239EYo.js → agent-config-section-BvmWn_h-.js} +1 -1
  57. package/web/dist/assets/{agent-defaults-section-Bj5dO6F3.js → agent-defaults-section-DsuYOQpY.js} +1 -1
  58. package/web/dist/assets/{appearance-C2v7z5MF.js → appearance-DNMXL1v0.js} +1 -1
  59. package/web/dist/assets/{archive-on-merge-field-Ta3WlY1p.js → archive-on-merge-field-BovFB0t7.js} +1 -1
  60. package/web/dist/assets/attention-DaLkUl4h.js +1 -0
  61. package/web/dist/assets/{automations-route-DPpaFR0Q.js → automations-route-DyiKOd25.js} +1 -1
  62. package/web/dist/assets/{commit-diff-panel-CzY8bO3p.js → commit-diff-panel-DawdFJ6E.js} +1 -1
  63. package/web/dist/assets/{diff-3jSM3IH7.js → diff-CfoXwmnl.js} +2 -2
  64. package/web/dist/assets/{diff-view-C3cwyYRv.js → diff-view-5xkdG47g.js} +1 -1
  65. package/web/dist/assets/{file-preview-B71T62DU.js → file-preview-DIVTxup4.js} +1 -1
  66. package/web/dist/assets/{folder-browser-BTYMFLBY.js → folder-browser-BzVWaANT.js} +1 -1
  67. package/web/dist/assets/{git-toolbar-Dng31AhK.js → git-toolbar-BUViNmxj.js} +1 -1
  68. package/web/dist/assets/{github-Cft2RNHM.js → github-COe1nsmn.js} +1 -1
  69. package/web/dist/assets/{global-activity-route-CngRjBlD.js → global-activity-route-B-cJo1pg.js} +1 -1
  70. package/web/dist/assets/{index-MG3T7zFQ.js → index-BZiixXpY.js} +5 -5
  71. package/web/dist/assets/{label-C9IGG0mW.js → label-DVUPtyTI.js} +1 -1
  72. package/web/dist/assets/{markdown-BDWm6oGX.js → markdown-bvY77s5D.js} +1 -1
  73. package/web/dist/assets/{notifications-section-BxIKJ1NF.js → notifications-section-Cet1mmEc.js} +1 -1
  74. package/web/dist/assets/{open-in-menu-LbTu2sP4.js → open-in-menu-BpSp2CJF.js} +1 -1
  75. package/web/dist/assets/{preview-pane-connected-CGQngtTw.js → preview-pane-connected-BCrpsIIn.js} +1 -1
  76. package/web/dist/assets/{project-location-B-18C392.js → project-location-ClZPnbBZ.js} +1 -1
  77. package/web/dist/assets/{project-router-DImKA81z.js → project-router-BYrAO9Ws.js} +1 -1
  78. package/web/dist/assets/{project-scope-context-D3_4Nfjk.js → project-scope-context-BDU1qGx3.js} +2 -2
  79. package/web/dist/assets/{projects-section-DQ1LxJ3A.js → projects-section-CdUdrEPd.js} +1 -1
  80. package/web/dist/assets/{prompt-templates-section-C5AYB6Ig.js → prompt-templates-section-D3ojaPZw.js} +1 -1
  81. package/web/dist/assets/{queries-BaHOUYn4.js → queries--x5yVcip.js} +1 -1
  82. package/web/dist/assets/{reference-chip-CdOqXRll.js → reference-chip-013dL8dQ.js} +1 -1
  83. package/web/dist/assets/{remote-settings-notice-BTdflMqO.js → remote-settings-notice-BbBWWAm8.js} +1 -1
  84. package/web/dist/assets/{repo-git-DChiMWrS.js → repo-git-1hSBzyJQ.js} +1 -1
  85. package/web/dist/assets/{report-reader-nV2G6iRk.js → report-reader-BNtgxtSI.js} +1 -1
  86. package/web/dist/assets/{reports-CoQqVEy4.js → reports-C64cW2KP.js} +1 -1
  87. package/web/dist/assets/{resources-section-CVaIlicS.js → resources-section-xAUouGNM.js} +1 -1
  88. package/web/dist/assets/{run-header-xPtXOBkm.js → run-header-75eMWFhM.js} +1 -1
  89. package/web/dist/assets/{runners-DccsyraI.js → runners-C4-xD5Cz.js} +1 -1
  90. package/web/dist/assets/{settings-agent-picker-ixlEQ-MP.js → settings-agent-picker-4P5j_ZP8.js} +1 -1
  91. package/web/dist/assets/{settings-shell-BwknM_fs.js → settings-shell-CME_R4D1.js} +1 -1
  92. package/web/dist/assets/{sidebar-section-BNy-fRPU.js → sidebar-section-BQSB_KxK.js} +1 -1
  93. package/web/dist/assets/{skills-CKceHo5J.js → skills-RUJCWIve.js} +1 -1
  94. package/web/dist/assets/{tab-link-VCVNqxFc.js → tab-link-DnbdjF4r.js} +1 -1
  95. package/web/dist/assets/{task-changes-D4H5YbMo.js → task-changes-Boec_UFj.js} +1 -1
  96. package/web/dist/assets/{task-commits-BNu0VTTf.js → task-commits-B6k-DdnE.js} +1 -1
  97. package/web/dist/assets/{task-files-C8q8GHYK.js → task-files-T731cz4q.js} +1 -1
  98. package/web/dist/assets/{task-github-item-D5kHfnwY.js → task-github-item-iQd_C1Y4.js} +1 -1
  99. package/web/dist/assets/{task-groups-C7yO8nMy.js → task-groups-BTMFLRHJ.js} +1 -1
  100. package/web/dist/assets/{task-thread-Dhts8Nbu.js → task-thread-BaPz3rdA.js} +3 -3
  101. package/web/dist/assets/{tasks-table-I_z4e7uI.js → tasks-table-BCuA9Kx7.js} +1 -1
  102. package/web/dist/assets/{thread-state-DV19z3BD.js → thread-state-B3Ichxx9.js} +1 -1
  103. package/web/dist/assets/{use-hand-to-agent-state-C6e6Mgi1.js → use-hand-to-agent-state-DIIBuX3r.js} +1 -1
  104. package/web/dist/assets/{useInfiniteQuery-DR5UfhCS.js → useInfiniteQuery-BxpPo6z-.js} +1 -1
  105. package/web/dist/assets/useQuery-DcVi2Spi.js +1 -0
  106. package/web/dist/assets/{workflows-BNHmFZRc.js → workflows-8HhOvPhw.js} +1 -1
  107. package/web/dist/assets/{workspace-tools-UHJAnHEN.js → workspace-tools-D6C2Yjat.js} +1 -1
  108. package/web/dist/assets/{worktrees-section-B4XPx6R5.js → worktrees-section-Cm4JH128.js} +1 -1
  109. package/web/dist/assets/{ws-CH3zNFKR.js → ws-Iixb-QFR.js} +1 -1
  110. package/web/dist/index.html +15 -15
  111. package/dist/core/registry.d.ts +0 -36
  112. package/dist/core/registry.js +0 -85
  113. package/dist/core/registry.js.map +0 -1
  114. package/web/dist/assets/activity-motion-D-8GF_WP.js +0 -2
  115. package/web/dist/assets/attention-B1Ei1IW6.js +0 -1
  116. package/web/dist/assets/useQuery-BMyCehPp.js +0 -1
@@ -526,6 +526,30 @@ export declare const runRecordSchema: z.ZodObject<{
526
526
  timeout: "timeout";
527
527
  }>;
528
528
  }, z.core.$strict>>;
529
+ }, z.core.$strict>, z.ZodObject<{
530
+ id: z.ZodUUID;
531
+ source: z.ZodEnum<{
532
+ agent: "agent";
533
+ cezar: "cezar";
534
+ }>;
535
+ registeredAt: z.ZodISODateTime;
536
+ phase: z.ZodEnum<{
537
+ cancelled: "cancelled";
538
+ delivered: "delivered";
539
+ open: "open";
540
+ resolved: "resolved";
541
+ }>;
542
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
543
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
544
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
545
+ turnId: z.ZodString;
546
+ via: z.ZodString;
547
+ kind: z.ZodLiteral<"plugin">;
548
+ pluginKind: z.ZodString;
549
+ deadline: z.ZodOptional<z.ZodISODateTime>;
550
+ summary: z.ZodString;
551
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
552
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
529
553
  }, z.core.$strict>], "kind">>>;
530
554
  waitRegistrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
531
555
  operationId: z.ZodUUID;
@@ -926,6 +950,30 @@ export declare const runRecordSchema: z.ZodObject<{
926
950
  timeout: "timeout";
927
951
  }>;
928
952
  }, z.core.$strict>>;
953
+ }, z.core.$strict>, z.ZodObject<{
954
+ id: z.ZodUUID;
955
+ source: z.ZodEnum<{
956
+ agent: "agent";
957
+ cezar: "cezar";
958
+ }>;
959
+ registeredAt: z.ZodISODateTime;
960
+ phase: z.ZodEnum<{
961
+ cancelled: "cancelled";
962
+ delivered: "delivered";
963
+ open: "open";
964
+ resolved: "resolved";
965
+ }>;
966
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
967
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
968
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
969
+ turnId: z.ZodString;
970
+ via: z.ZodString;
971
+ kind: z.ZodLiteral<"plugin">;
972
+ pluginKind: z.ZodString;
973
+ deadline: z.ZodOptional<z.ZodISODateTime>;
974
+ summary: z.ZodString;
975
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
976
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
929
977
  }, z.core.$strict>], "kind">;
930
978
  deduplicated: z.ZodBoolean;
931
979
  }, z.core.$strict>>>;
@@ -1325,6 +1373,30 @@ export declare const runRecordSchema: z.ZodObject<{
1325
1373
  timeout: "timeout";
1326
1374
  }>;
1327
1375
  }, z.core.$strict>>;
1376
+ }, z.core.$strict>, z.ZodObject<{
1377
+ id: z.ZodUUID;
1378
+ source: z.ZodEnum<{
1379
+ agent: "agent";
1380
+ cezar: "cezar";
1381
+ }>;
1382
+ registeredAt: z.ZodISODateTime;
1383
+ phase: z.ZodEnum<{
1384
+ cancelled: "cancelled";
1385
+ delivered: "delivered";
1386
+ open: "open";
1387
+ resolved: "resolved";
1388
+ }>;
1389
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
1390
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
1391
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
1392
+ turnId: z.ZodString;
1393
+ via: z.ZodString;
1394
+ kind: z.ZodLiteral<"plugin">;
1395
+ pluginKind: z.ZodString;
1396
+ deadline: z.ZodOptional<z.ZodISODateTime>;
1397
+ summary: z.ZodString;
1398
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1399
+ result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1328
1400
  }, z.core.$strict>], "kind">>>;
1329
1401
  previewServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1330
1402
  port: z.ZodNumber;
@@ -2276,6 +2348,22 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2276
2348
  result?: {
2277
2349
  reason: "interrupted" | "settled" | "superseded" | "timeout";
2278
2350
  } | undefined;
2351
+ } | {
2352
+ id: string;
2353
+ source: "agent" | "cezar";
2354
+ registeredAt: string;
2355
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2356
+ resolvedAt?: string | undefined;
2357
+ deliveredAt?: string | undefined;
2358
+ cancelledAt?: string | undefined;
2359
+ turnId: string;
2360
+ via: string;
2361
+ kind: "plugin";
2362
+ pluginKind: string;
2363
+ deadline?: string | undefined;
2364
+ summary: string;
2365
+ payload: Record<string, unknown>;
2366
+ result?: Record<string, unknown> | undefined;
2279
2367
  })[] | undefined;
2280
2368
  waitRegistrations?: {
2281
2369
  operationId: string;
@@ -2472,6 +2560,22 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2472
2560
  result?: {
2473
2561
  reason: "interrupted" | "settled" | "superseded" | "timeout";
2474
2562
  } | undefined;
2563
+ } | {
2564
+ id: string;
2565
+ source: "agent" | "cezar";
2566
+ registeredAt: string;
2567
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2568
+ resolvedAt?: string | undefined;
2569
+ deliveredAt?: string | undefined;
2570
+ cancelledAt?: string | undefined;
2571
+ turnId: string;
2572
+ via: string;
2573
+ kind: "plugin";
2574
+ pluginKind: string;
2575
+ deadline?: string | undefined;
2576
+ summary: string;
2577
+ payload: Record<string, unknown>;
2578
+ result?: Record<string, unknown> | undefined;
2475
2579
  };
2476
2580
  deduplicated: boolean;
2477
2581
  }[] | undefined;
@@ -2667,6 +2771,22 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2667
2771
  result?: {
2668
2772
  reason: "interrupted" | "settled" | "superseded" | "timeout";
2669
2773
  } | undefined;
2774
+ } | {
2775
+ id: string;
2776
+ source: "agent" | "cezar";
2777
+ registeredAt: string;
2778
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2779
+ resolvedAt?: string | undefined;
2780
+ deliveredAt?: string | undefined;
2781
+ cancelledAt?: string | undefined;
2782
+ turnId: string;
2783
+ via: string;
2784
+ kind: "plugin";
2785
+ pluginKind: string;
2786
+ deadline?: string | undefined;
2787
+ summary: string;
2788
+ payload: Record<string, unknown>;
2789
+ result?: Record<string, unknown> | undefined;
2670
2790
  })[] | undefined;
2671
2791
  previewServers?: {
2672
2792
  port: number;
@@ -637,6 +637,22 @@ export declare const RUN_EXITS: {
637
637
  result?: {
638
638
  reason: "interrupted" | "settled" | "superseded" | "timeout";
639
639
  } | undefined;
640
+ } | {
641
+ id: string;
642
+ source: "agent" | "cezar";
643
+ registeredAt: string;
644
+ phase: "cancelled" | "delivered" | "open" | "resolved";
645
+ resolvedAt?: string | undefined;
646
+ deliveredAt?: string | undefined;
647
+ cancelledAt?: string | undefined;
648
+ turnId: string;
649
+ via: string;
650
+ kind: "plugin";
651
+ pluginKind: string;
652
+ deadline?: string | undefined;
653
+ summary: string;
654
+ payload: Record<string, unknown>;
655
+ result?: Record<string, unknown> | undefined;
640
656
  };
641
657
  deduplicated: boolean;
642
658
  }[] | undefined;
@@ -1380,6 +1396,22 @@ export declare const RUN_EXITS: {
1380
1396
  result?: {
1381
1397
  reason: "interrupted" | "settled" | "superseded" | "timeout";
1382
1398
  } | undefined;
1399
+ } | {
1400
+ id: string;
1401
+ source: "agent" | "cezar";
1402
+ registeredAt: string;
1403
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1404
+ resolvedAt?: string | undefined;
1405
+ deliveredAt?: string | undefined;
1406
+ cancelledAt?: string | undefined;
1407
+ turnId: string;
1408
+ via: string;
1409
+ kind: "plugin";
1410
+ pluginKind: string;
1411
+ deadline?: string | undefined;
1412
+ summary: string;
1413
+ payload: Record<string, unknown>;
1414
+ result?: Record<string, unknown> | undefined;
1383
1415
  };
1384
1416
  deduplicated: boolean;
1385
1417
  }[] | undefined;
@@ -2161,6 +2193,22 @@ export declare const RUN_EXITS: {
2161
2193
  result?: {
2162
2194
  reason: "interrupted" | "settled" | "superseded" | "timeout";
2163
2195
  } | undefined;
2196
+ } | {
2197
+ id: string;
2198
+ source: "agent" | "cezar";
2199
+ registeredAt: string;
2200
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2201
+ resolvedAt?: string | undefined;
2202
+ deliveredAt?: string | undefined;
2203
+ cancelledAt?: string | undefined;
2204
+ turnId: string;
2205
+ via: string;
2206
+ kind: "plugin";
2207
+ pluginKind: string;
2208
+ deadline?: string | undefined;
2209
+ summary: string;
2210
+ payload: Record<string, unknown>;
2211
+ result?: Record<string, unknown> | undefined;
2164
2212
  })[] | undefined;
2165
2213
  waitRegistrations?: {
2166
2214
  operationId: string;
@@ -2357,6 +2405,22 @@ export declare const RUN_EXITS: {
2357
2405
  result?: {
2358
2406
  reason: "interrupted" | "settled" | "superseded" | "timeout";
2359
2407
  } | undefined;
2408
+ } | {
2409
+ id: string;
2410
+ source: "agent" | "cezar";
2411
+ registeredAt: string;
2412
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2413
+ resolvedAt?: string | undefined;
2414
+ deliveredAt?: string | undefined;
2415
+ cancelledAt?: string | undefined;
2416
+ turnId: string;
2417
+ via: string;
2418
+ kind: "plugin";
2419
+ pluginKind: string;
2420
+ deadline?: string | undefined;
2421
+ summary: string;
2422
+ payload: Record<string, unknown>;
2423
+ result?: Record<string, unknown> | undefined;
2360
2424
  };
2361
2425
  deduplicated: boolean;
2362
2426
  }[] | undefined;
@@ -2552,6 +2616,22 @@ export declare const RUN_EXITS: {
2552
2616
  result?: {
2553
2617
  reason: "interrupted" | "settled" | "superseded" | "timeout";
2554
2618
  } | undefined;
2619
+ } | {
2620
+ id: string;
2621
+ source: "agent" | "cezar";
2622
+ registeredAt: string;
2623
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2624
+ resolvedAt?: string | undefined;
2625
+ deliveredAt?: string | undefined;
2626
+ cancelledAt?: string | undefined;
2627
+ turnId: string;
2628
+ via: string;
2629
+ kind: "plugin";
2630
+ pluginKind: string;
2631
+ deadline?: string | undefined;
2632
+ summary: string;
2633
+ payload: Record<string, unknown>;
2634
+ result?: Record<string, unknown> | undefined;
2555
2635
  })[] | undefined;
2556
2636
  lastWaitsError?: string | undefined;
2557
2637
  automaticWakes?: number | undefined;
@@ -3258,6 +3338,22 @@ export declare const RUN_EXITS: {
3258
3338
  result?: {
3259
3339
  reason: "interrupted" | "settled" | "superseded" | "timeout";
3260
3340
  } | undefined;
3341
+ } | {
3342
+ id: string;
3343
+ source: "agent" | "cezar";
3344
+ registeredAt: string;
3345
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3346
+ resolvedAt?: string | undefined;
3347
+ deliveredAt?: string | undefined;
3348
+ cancelledAt?: string | undefined;
3349
+ turnId: string;
3350
+ via: string;
3351
+ kind: "plugin";
3352
+ pluginKind: string;
3353
+ deadline?: string | undefined;
3354
+ summary: string;
3355
+ payload: Record<string, unknown>;
3356
+ result?: Record<string, unknown> | undefined;
3261
3357
  })[] | undefined;
3262
3358
  waitRegistrations?: {
3263
3359
  operationId: string;
@@ -3454,6 +3550,22 @@ export declare const RUN_EXITS: {
3454
3550
  result?: {
3455
3551
  reason: "interrupted" | "settled" | "superseded" | "timeout";
3456
3552
  } | undefined;
3553
+ } | {
3554
+ id: string;
3555
+ source: "agent" | "cezar";
3556
+ registeredAt: string;
3557
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3558
+ resolvedAt?: string | undefined;
3559
+ deliveredAt?: string | undefined;
3560
+ cancelledAt?: string | undefined;
3561
+ turnId: string;
3562
+ via: string;
3563
+ kind: "plugin";
3564
+ pluginKind: string;
3565
+ deadline?: string | undefined;
3566
+ summary: string;
3567
+ payload: Record<string, unknown>;
3568
+ result?: Record<string, unknown> | undefined;
3457
3569
  };
3458
3570
  deduplicated: boolean;
3459
3571
  }[] | undefined;
@@ -3649,6 +3761,22 @@ export declare const RUN_EXITS: {
3649
3761
  result?: {
3650
3762
  reason: "interrupted" | "settled" | "superseded" | "timeout";
3651
3763
  } | undefined;
3764
+ } | {
3765
+ id: string;
3766
+ source: "agent" | "cezar";
3767
+ registeredAt: string;
3768
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3769
+ resolvedAt?: string | undefined;
3770
+ deliveredAt?: string | undefined;
3771
+ cancelledAt?: string | undefined;
3772
+ turnId: string;
3773
+ via: string;
3774
+ kind: "plugin";
3775
+ pluginKind: string;
3776
+ deadline?: string | undefined;
3777
+ summary: string;
3778
+ payload: Record<string, unknown>;
3779
+ result?: Record<string, unknown> | undefined;
3652
3780
  })[] | undefined;
3653
3781
  lastWaitsError?: string | undefined;
3654
3782
  automaticWakes?: number | undefined;
@@ -4369,6 +4497,22 @@ export declare const RUN_EXITS: {
4369
4497
  result?: {
4370
4498
  reason: "interrupted" | "settled" | "superseded" | "timeout";
4371
4499
  } | undefined;
4500
+ } | {
4501
+ id: string;
4502
+ source: "agent" | "cezar";
4503
+ registeredAt: string;
4504
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4505
+ resolvedAt?: string | undefined;
4506
+ deliveredAt?: string | undefined;
4507
+ cancelledAt?: string | undefined;
4508
+ turnId: string;
4509
+ via: string;
4510
+ kind: "plugin";
4511
+ pluginKind: string;
4512
+ deadline?: string | undefined;
4513
+ summary: string;
4514
+ payload: Record<string, unknown>;
4515
+ result?: Record<string, unknown> | undefined;
4372
4516
  })[] | undefined;
4373
4517
  waitRegistrations?: {
4374
4518
  operationId: string;
@@ -4565,6 +4709,22 @@ export declare const RUN_EXITS: {
4565
4709
  result?: {
4566
4710
  reason: "interrupted" | "settled" | "superseded" | "timeout";
4567
4711
  } | undefined;
4712
+ } | {
4713
+ id: string;
4714
+ source: "agent" | "cezar";
4715
+ registeredAt: string;
4716
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4717
+ resolvedAt?: string | undefined;
4718
+ deliveredAt?: string | undefined;
4719
+ cancelledAt?: string | undefined;
4720
+ turnId: string;
4721
+ via: string;
4722
+ kind: "plugin";
4723
+ pluginKind: string;
4724
+ deadline?: string | undefined;
4725
+ summary: string;
4726
+ payload: Record<string, unknown>;
4727
+ result?: Record<string, unknown> | undefined;
4568
4728
  };
4569
4729
  deduplicated: boolean;
4570
4730
  }[] | undefined;
@@ -4760,6 +4920,22 @@ export declare const RUN_EXITS: {
4760
4920
  result?: {
4761
4921
  reason: "interrupted" | "settled" | "superseded" | "timeout";
4762
4922
  } | undefined;
4923
+ } | {
4924
+ id: string;
4925
+ source: "agent" | "cezar";
4926
+ registeredAt: string;
4927
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4928
+ resolvedAt?: string | undefined;
4929
+ deliveredAt?: string | undefined;
4930
+ cancelledAt?: string | undefined;
4931
+ turnId: string;
4932
+ via: string;
4933
+ kind: "plugin";
4934
+ pluginKind: string;
4935
+ deadline?: string | undefined;
4936
+ summary: string;
4937
+ payload: Record<string, unknown>;
4938
+ result?: Record<string, unknown> | undefined;
4763
4939
  })[] | undefined;
4764
4940
  lastWaitsError?: string | undefined;
4765
4941
  automaticWakes?: number | undefined;
@@ -5474,6 +5650,22 @@ export declare const RUN_EXITS: {
5474
5650
  result?: {
5475
5651
  reason: "interrupted" | "settled" | "superseded" | "timeout";
5476
5652
  } | undefined;
5653
+ } | {
5654
+ id: string;
5655
+ source: "agent" | "cezar";
5656
+ registeredAt: string;
5657
+ phase: "cancelled" | "delivered" | "open" | "resolved";
5658
+ resolvedAt?: string | undefined;
5659
+ deliveredAt?: string | undefined;
5660
+ cancelledAt?: string | undefined;
5661
+ turnId: string;
5662
+ via: string;
5663
+ kind: "plugin";
5664
+ pluginKind: string;
5665
+ deadline?: string | undefined;
5666
+ summary: string;
5667
+ payload: Record<string, unknown>;
5668
+ result?: Record<string, unknown> | undefined;
5477
5669
  })[] | undefined;
5478
5670
  waitRegistrations?: {
5479
5671
  operationId: string;
@@ -5670,6 +5862,22 @@ export declare const RUN_EXITS: {
5670
5862
  result?: {
5671
5863
  reason: "interrupted" | "settled" | "superseded" | "timeout";
5672
5864
  } | undefined;
5865
+ } | {
5866
+ id: string;
5867
+ source: "agent" | "cezar";
5868
+ registeredAt: string;
5869
+ phase: "cancelled" | "delivered" | "open" | "resolved";
5870
+ resolvedAt?: string | undefined;
5871
+ deliveredAt?: string | undefined;
5872
+ cancelledAt?: string | undefined;
5873
+ turnId: string;
5874
+ via: string;
5875
+ kind: "plugin";
5876
+ pluginKind: string;
5877
+ deadline?: string | undefined;
5878
+ summary: string;
5879
+ payload: Record<string, unknown>;
5880
+ result?: Record<string, unknown> | undefined;
5673
5881
  };
5674
5882
  deduplicated: boolean;
5675
5883
  }[] | undefined;
@@ -5865,6 +6073,22 @@ export declare const RUN_EXITS: {
5865
6073
  result?: {
5866
6074
  reason: "interrupted" | "settled" | "superseded" | "timeout";
5867
6075
  } | undefined;
6076
+ } | {
6077
+ id: string;
6078
+ source: "agent" | "cezar";
6079
+ registeredAt: string;
6080
+ phase: "cancelled" | "delivered" | "open" | "resolved";
6081
+ resolvedAt?: string | undefined;
6082
+ deliveredAt?: string | undefined;
6083
+ cancelledAt?: string | undefined;
6084
+ turnId: string;
6085
+ via: string;
6086
+ kind: "plugin";
6087
+ pluginKind: string;
6088
+ deadline?: string | undefined;
6089
+ summary: string;
6090
+ payload: Record<string, unknown>;
6091
+ result?: Record<string, unknown> | undefined;
5868
6092
  })[] | undefined;
5869
6093
  lastWaitsError?: string | undefined;
5870
6094
  automaticWakes?: number | undefined;
@@ -23,11 +23,9 @@ export interface WorkerExecutionsState {
23
23
  readonly workerResults: WorkerResults;
24
24
  }
25
25
  export type WorkerExecutionsFactory = (dataDir: string, state: WorkerExecutionsState) => WorkerExecutions & WorkerExecutionRecords;
26
- /** Register the factory without sealing the registry. */
26
+ /** Register this process's factory. Registering the same factory again does nothing; another one throws. */
27
27
  export declare function registerWorkerExecutions(factory: WorkerExecutionsFactory): void;
28
- export declare function sealWorkerExecutions(): void;
29
- export declare function workerExecutionsSealed(): boolean;
30
- /** Fail closed before boot seals the registry, and when boot supplied no factory. */
28
+ /** The registered factory. Throws when none is registered. */
31
29
  export declare function workerExecutionsFactory(): WorkerExecutionsFactory;
32
- /** Passive cold inspection: an unsealed factory cannot be used yet. */
30
+ /** Whether this process registered a factory. Never throws. */
33
31
  export declare function workerExecutionsRegistered(): boolean;
@@ -1,18 +1,20 @@
1
- import { createSingleRegistry } from '../core/registry.js';
2
- const registry = createSingleRegistry({
3
- name: 'No worker-executions factory is registered (worker-executions registry)',
4
- bootHint: 'call registerBuiltInRunSlots(), then sealBuiltInRunSlots(), or import delegation/worker-executions.testkit.ts in this test.',
5
- });
6
- /** Register the factory without sealing the registry. */
1
+ let registered;
2
+ /** Register this process's factory. Registering the same factory again does nothing; another one throws. */
7
3
  export function registerWorkerExecutions(factory) {
8
- registry.register(factory);
4
+ if (registered && registered !== factory)
5
+ throw new Error('A different worker-executions factory is already registered in this process.');
6
+ registered = factory;
9
7
  }
10
- export function sealWorkerExecutions() { registry.seal(); }
11
- export function workerExecutionsSealed() { return registry.isSealed(); }
12
- /** Fail closed before boot seals the registry, and when boot supplied no factory. */
13
- export function workerExecutionsFactory() { return registry.get(); }
14
- /** Passive cold inspection: an unsealed factory cannot be used yet. */
8
+ /** The registered factory. Throws when none is registered. */
9
+ export function workerExecutionsFactory() {
10
+ if (!registered) {
11
+ throw new Error('No worker-executions factory is registered: call registerBuiltInRunSlots() from built-in-run-slots.ts at the process entry, '
12
+ + 'or import delegation/worker-executions.testkit.ts in this test.');
13
+ }
14
+ return registered;
15
+ }
16
+ /** Whether this process registered a factory. Never throws. */
15
17
  export function workerExecutionsRegistered() {
16
- return registry.isSealed() && registry.has();
18
+ return registered !== undefined;
17
19
  }
18
20
  //# sourceMappingURL=worker-executions-registry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"worker-executions-registry.js","sourceRoot":"","sources":["../../src/runs/worker-executions-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AA8B3D,MAAM,QAAQ,GAAG,oBAAoB,CAA0B;IAC7D,IAAI,EAAE,yEAAyE;IAC/E,QAAQ,EAAE,6HAA6H;CACxI,CAAC,CAAC;AAEH,yDAAyD;AACzD,MAAM,UAAU,wBAAwB,CAAC,OAAgC;IACvE,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,oBAAoB,KAAW,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AACjE,MAAM,UAAU,sBAAsB,KAAc,OAAO,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;AAEjF,qFAAqF;AACrF,MAAM,UAAU,uBAAuB,KAA8B,OAAO,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAE7F,uEAAuE;AACvE,MAAM,UAAU,0BAA0B;IACxC,OAAO,QAAQ,CAAC,QAAQ,EAAE,IAAI,QAAQ,CAAC,GAAG,EAAE,CAAC;AAC/C,CAAC"}
1
+ {"version":3,"file":"worker-executions-registry.js","sourceRoot":"","sources":["../../src/runs/worker-executions-registry.ts"],"names":[],"mappings":"AA6BA,IAAI,UAA+C,CAAC;AAEpD,4GAA4G;AAC5G,MAAM,UAAU,wBAAwB,CAAC,OAAgC;IACvE,IAAI,UAAU,IAAI,UAAU,KAAK,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,8EAA8E,CAAC,CAAC;IAC1I,UAAU,GAAG,OAAO,CAAC;AACvB,CAAC;AAED,8DAA8D;AAC9D,MAAM,UAAU,uBAAuB;IACrC,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,MAAM,IAAI,KAAK,CAAC,8HAA8H;cAC1I,iEAAiE,CAAC,CAAC;IACzE,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,+DAA+D;AAC/D,MAAM,UAAU,0BAA0B;IACxC,OAAO,UAAU,KAAK,SAAS,CAAC;AAClC,CAAC"}
@@ -168,6 +168,14 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
168
168
  pid: number;
169
169
  note?: string | undefined;
170
170
  };
171
+ } | {
172
+ kind: "plugin";
173
+ since: string;
174
+ deadline?: string | undefined;
175
+ detail: {
176
+ pluginKind: string;
177
+ summary: string;
178
+ };
171
179
  } | {
172
180
  kind: "timer";
173
181
  since: string;
@@ -262,6 +270,14 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
262
270
  pid: number;
263
271
  note?: string | undefined;
264
272
  };
273
+ } | {
274
+ kind: "plugin";
275
+ since: string;
276
+ deadline?: string | undefined;
277
+ detail: {
278
+ pluginKind: string;
279
+ summary: string;
280
+ };
265
281
  } | {
266
282
  kind: "timer";
267
283
  since: string;