@hearsay-tools/squawk 0.18.0-dev.6799 → 0.18.0-dev.6807

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 (113) hide show
  1. package/dist/contract/index.js +23 -1
  2. package/dist/contract/run-predicates.d.ts +28 -1
  3. package/dist/contract/runs.d.ts +4 -0
  4. package/dist/delegation/conversations.d.ts +2 -0
  5. package/dist/delegation/execution-identity.d.ts +13 -5
  6. package/dist/delegation/execution-identity.js +21 -8
  7. package/dist/delegation/execution-identity.js.map +1 -1
  8. package/dist/delegation/routes.d.ts +62 -62
  9. package/dist/delegation/transport.d.ts +62 -62
  10. package/dist/runs/run-exits.d.ts +4 -0
  11. package/dist/runs/store.d.ts +5 -2
  12. package/dist/runs/store.js.map +1 -1
  13. package/dist/server/activity-routes.d.ts +23 -23
  14. package/dist/server/open-in-targets.js +5 -4
  15. package/dist/server/open-in-targets.js.map +1 -1
  16. package/dist/server/provider-auth-runtime.js +2 -1
  17. package/dist/server/provider-auth-runtime.js.map +1 -1
  18. package/dist/server/server.d.ts +1651 -1633
  19. package/dist/server/server.js +4 -7
  20. package/dist/server/server.js.map +1 -1
  21. package/dist/workflows/continuation-admission.d.ts +8 -1
  22. package/dist/workflows/continuation-admission.js +12 -7
  23. package/dist/workflows/continuation-admission.js.map +1 -1
  24. package/dist/workflows/execution-account.js +4 -3
  25. package/dist/workflows/execution-account.js.map +1 -1
  26. package/dist/workflows/run/compose.js +4 -2
  27. package/dist/workflows/run/compose.js.map +1 -1
  28. package/dist/workflows/run/continuation-acceptance.js +2 -1
  29. package/dist/workflows/run/continuation-acceptance.js.map +1 -1
  30. package/dist/workflows/run/continuation-session.js +4 -3
  31. package/dist/workflows/run/continuation-session.js.map +1 -1
  32. package/dist/workflows/run/human-waits.js +2 -0
  33. package/dist/workflows/run/human-waits.js.map +1 -1
  34. package/dist/workflows/run/input-delivery.d.ts +16 -0
  35. package/dist/workflows/run/input-delivery.js +51 -4
  36. package/dist/workflows/run/input-delivery.js.map +1 -1
  37. package/dist/workflows/run/input-receipts.d.ts +1 -0
  38. package/dist/workflows/run/input-receipts.js +1 -0
  39. package/dist/workflows/run/input-receipts.js.map +1 -1
  40. package/dist/workflows/run/launch-read-resolver.d.ts +3 -1
  41. package/dist/workflows/run/launch-read-resolver.js +11 -4
  42. package/dist/workflows/run/launch-read-resolver.js.map +1 -1
  43. package/dist/workflows/run/queued-revival.js +2 -1
  44. package/dist/workflows/run/queued-revival.js.map +1 -1
  45. package/dist/workflows/run/run-settlement.d.ts +1 -1
  46. package/dist/workflows/run/run-settlement.js +3 -3
  47. package/dist/workflows/run/run-settlement.js.map +1 -1
  48. package/dist/workflows/run/session-events.js +6 -3
  49. package/dist/workflows/run/session-events.js.map +1 -1
  50. package/dist/workflows/run/step-loop.d.ts +1 -1
  51. package/dist/workflows/run/step-loop.js +2 -2
  52. package/dist/workflows/run/step-loop.js.map +1 -1
  53. package/dist/workflows/run/turn-boundary.d.ts +16 -4
  54. package/dist/workflows/run/turn-boundary.js +6 -12
  55. package/dist/workflows/run/turn-boundary.js.map +1 -1
  56. package/dist/workflows/run/turn-nudges.d.ts +6 -0
  57. package/dist/workflows/run/turn-nudges.js +21 -2
  58. package/dist/workflows/run/turn-nudges.js.map +1 -1
  59. package/dist/workflows/run/turn-settler.js +6 -5
  60. package/dist/workflows/run/turn-settler.js.map +1 -1
  61. package/dist/workflows/run/wait-engine.d.ts +1 -0
  62. package/dist/workflows/run/wake-admission.d.ts +12 -0
  63. package/dist/workflows/run/wake-admission.js +27 -1
  64. package/dist/workflows/run/wake-admission.js.map +1 -1
  65. package/dist/workflows/run/wake-ledger.d.ts +8 -1
  66. package/dist/workflows/run/wake-ledger.js +12 -2
  67. package/dist/workflows/run/wake-ledger.js.map +1 -1
  68. package/package.json +4 -4
  69. package/web/dist/assets/{activity-motion-gOopdagH.js → activity-motion-ankV4z_y.js} +1 -1
  70. package/web/dist/assets/{activity-route-D7bDtXpW.js → activity-route-C7Lo4d_1.js} +1 -1
  71. package/web/dist/assets/{agent-accounts-otlDWnij.js → agent-accounts-BAUPVmTO.js} +1 -1
  72. package/web/dist/assets/attention-C6XIgMqB.js +1 -0
  73. package/web/dist/assets/{commit-diff-panel-iQf0Rlcx.js → commit-diff-panel-Cmqi-EvU.js} +1 -1
  74. package/web/dist/assets/{diff-DQfcliZC.js → diff-BawymO3F.js} +2 -2
  75. package/web/dist/assets/{diff-view-BbM-71Cs.js → diff-view-DHx_pu8b.js} +1 -1
  76. package/web/dist/assets/{file-preview-DgU8vo8k.js → file-preview-DV7f2pOk.js} +1 -1
  77. package/web/dist/assets/git-toolbar-BrVfyYBr.js +1 -0
  78. package/web/dist/assets/{github-hXmxAXmA.js → github-DVXWmfeu.js} +1 -1
  79. package/web/dist/assets/{global-activity-route-D_r1ImUh.js → global-activity-route-ybR1xgLf.js} +1 -1
  80. package/web/dist/assets/index-Dc_KmL4Z.js +17 -0
  81. package/web/dist/assets/{preview-pane-connected-D__9JwyU.js → preview-pane-connected-CT7tXifI.js} +1 -1
  82. package/web/dist/assets/{project-router-WQWd3UUn.js → project-router-CbWELZZ9.js} +1 -1
  83. package/web/dist/assets/{project-scope-context-bgdvGX9z.js → project-scope-context-p1OpXpSJ.js} +1 -1
  84. package/web/dist/assets/{prompt-template-menu-BJfUg1uF.js → prompt-template-menu-Ct3m86h1.js} +1 -1
  85. package/web/dist/assets/{queries-BJM44umy.js → queries-BAUtqJph.js} +1 -1
  86. package/web/dist/assets/{reference-chip-vraIzoEF.js → reference-chip-B2B-Ky7w.js} +1 -1
  87. package/web/dist/assets/{repo-git-B4qZq37d.js → repo-git-DRONt4_i.js} +1 -1
  88. package/web/dist/assets/{report-reader-Djix-ICM.js → report-reader-BF8rmJRD.js} +1 -1
  89. package/web/dist/assets/{reports-Do-dkavq.js → reports-Bv91XlcP.js} +1 -1
  90. package/web/dist/assets/{run-header-Di9LaKQs.js → run-header-CvJ84kr2.js} +1 -1
  91. package/web/dist/assets/{skills-CPnIvFnR.js → skills-Ceg2Y9LM.js} +1 -1
  92. package/web/dist/assets/{tab-link-DiNYVlpl.js → tab-link-CT5gqdai.js} +1 -1
  93. package/web/dist/assets/{task-changes-CW7NzgL5.js → task-changes-BplRsiSs.js} +1 -1
  94. package/web/dist/assets/{task-commits-Bkwi7o1B.js → task-commits-CYLy-lg-.js} +1 -1
  95. package/web/dist/assets/{task-files-geRzIszC.js → task-files-COYxL8mg.js} +1 -1
  96. package/web/dist/assets/task-github-item-DAD__wEa.js +1 -0
  97. package/web/dist/assets/task-thread-CTEobEyX.js +9 -0
  98. package/web/dist/assets/{thread-state-CajkV5Ft.js → thread-state-CpdUCQVd.js} +1 -1
  99. package/web/dist/assets/use-desktop-Bok38AjX.js +1 -0
  100. package/web/dist/assets/use-hand-to-agent-state-DiBEjj2Y.js +1 -0
  101. package/web/dist/assets/{useInfiniteQuery-s3lTx_YX.js → useInfiniteQuery-DD7iZHIJ.js} +1 -1
  102. package/web/dist/assets/useQuery-DVAeyc_X.js +1 -0
  103. package/web/dist/assets/{workflows-Csr2hbks.js → workflows-Cq6Fg1ZT.js} +1 -1
  104. package/web/dist/assets/{ws-WW6DrfbT.js → ws-CqtLOaJ8.js} +1 -1
  105. package/web/dist/index.html +12 -12
  106. package/web/dist/assets/attention-CVI366xV.js +0 -1
  107. package/web/dist/assets/git-toolbar-C8agvpYS.js +0 -1
  108. package/web/dist/assets/index-tN02NX7A.js +0 -17
  109. package/web/dist/assets/task-github-item-UbCCP2Ud.js +0 -1
  110. package/web/dist/assets/task-thread-CkiEiypn.js +0 -9
  111. package/web/dist/assets/use-desktop-Ct4lvA3b.js +0 -1
  112. package/web/dist/assets/use-hand-to-agent-state-Cnxq_2F6.js +0 -1
  113. package/web/dist/assets/useQuery-C0ee1rw5.js +0 -1
@@ -2,6 +2,18 @@ import type { DelegationRoutes } from './routes.ts';
2
2
  export declare function createDelegationApp(routes: DelegationRoutes): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
3
3
  "/list": {
4
4
  $get: {
5
+ output: {
6
+ error: string;
7
+ code?: "invalid_input" | undefined;
8
+ };
9
+ outputFormat: "json";
10
+ status: 400;
11
+ input: {
12
+ query: {
13
+ offset?: string | undefined;
14
+ };
15
+ };
16
+ } | {
5
17
  output: {
6
18
  workers: {
7
19
  workerId: string;
@@ -39,18 +51,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
39
51
  offset?: string | undefined;
40
52
  };
41
53
  };
42
- } | {
43
- output: {
44
- error: string;
45
- code?: "invalid_input" | undefined;
46
- };
47
- outputFormat: "json";
48
- status: 400;
49
- input: {
50
- query: {
51
- offset?: string | undefined;
52
- };
53
- };
54
54
  };
55
55
  };
56
56
  } & {
@@ -588,6 +588,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
588
588
  } & {
589
589
  "/:workerId": {
590
590
  $get: {
591
+ output: {
592
+ error: string;
593
+ code?: "invalid_input" | undefined;
594
+ };
595
+ outputFormat: "json";
596
+ status: 400;
597
+ input: {
598
+ param: {
599
+ workerId: string;
600
+ };
601
+ };
602
+ } | {
591
603
  output: {
592
604
  workerId: string;
593
605
  parentRunId: string;
@@ -691,7 +703,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
691
703
  workerId: string;
692
704
  };
693
705
  };
694
- } | {
706
+ };
707
+ };
708
+ } & {
709
+ "/:workerId/collect": {
710
+ $post: {
695
711
  output: {
696
712
  error: string;
697
713
  code?: "invalid_input" | undefined;
@@ -702,12 +718,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
702
718
  param: {
703
719
  workerId: string;
704
720
  };
721
+ } & {
722
+ json: Record<string, never>;
705
723
  };
706
- };
707
- };
708
- } & {
709
- "/:workerId/collect": {
710
- $post: {
724
+ } | {
711
725
  output: {
712
726
  workerId: string;
713
727
  parentRunId: string;
@@ -809,7 +823,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
809
823
  } & {
810
824
  json: Record<string, never>;
811
825
  };
812
- } | {
826
+ };
827
+ };
828
+ } & {
829
+ "/:workerId/steer": {
830
+ $post: {
813
831
  output: {
814
832
  error: string;
815
833
  code?: "invalid_input" | undefined;
@@ -821,13 +839,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
821
839
  workerId: string;
822
840
  };
823
841
  } & {
824
- json: Record<string, never>;
842
+ json: {
843
+ text: string;
844
+ };
825
845
  };
826
- };
827
- };
828
- } & {
829
- "/:workerId/steer": {
830
- $post: {
846
+ } | {
831
847
  output: {
832
848
  workerId: string;
833
849
  state: "delivered" | "queued";
@@ -843,7 +859,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
843
859
  text: string;
844
860
  };
845
861
  };
846
- } | {
862
+ };
863
+ };
864
+ } & {
865
+ "/:workerId/stop": {
866
+ $post: {
847
867
  output: {
848
868
  error: string;
849
869
  code?: "invalid_input" | undefined;
@@ -855,15 +875,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
855
875
  workerId: string;
856
876
  };
857
877
  } & {
858
- json: {
859
- text: string;
860
- };
878
+ json: Record<string, never>;
861
879
  };
862
- };
863
- };
864
- } & {
865
- "/:workerId/stop": {
866
- $post: {
880
+ } | {
867
881
  output: {
868
882
  workerId: string;
869
883
  state: "stopping" | "terminated";
@@ -877,7 +891,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
877
891
  } & {
878
892
  json: Record<string, never>;
879
893
  };
880
- } | {
894
+ };
895
+ };
896
+ } & {
897
+ "/:workerId/destroy": {
898
+ $post: {
881
899
  output: {
882
900
  error: string;
883
901
  code?: "invalid_input" | undefined;
@@ -891,11 +909,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
891
909
  } & {
892
910
  json: Record<string, never>;
893
911
  };
894
- };
895
- };
896
- } & {
897
- "/:workerId/destroy": {
898
- $post: {
912
+ } | {
899
913
  output: {
900
914
  workerId: string;
901
915
  state: "complete" | "incomplete";
@@ -918,20 +932,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
918
932
  } & {
919
933
  json: Record<string, never>;
920
934
  };
921
- } | {
922
- output: {
923
- error: string;
924
- code?: "invalid_input" | undefined;
925
- };
926
- outputFormat: "json";
927
- status: 400;
928
- input: {
929
- param: {
930
- workerId: string;
931
- };
932
- } & {
933
- json: Record<string, never>;
934
- };
935
935
  } | {
936
936
  output: {
937
937
  workerId: string;
@@ -961,13 +961,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
961
961
  "/:workerId/diff": {
962
962
  $get: {
963
963
  output: {
964
- workerId: string;
965
- baselineSha: string;
966
- diff: string;
967
- truncated: boolean;
964
+ error: string;
965
+ code?: "invalid_input" | undefined;
968
966
  };
969
967
  outputFormat: "json";
970
- status: 200;
968
+ status: 400;
971
969
  input: {
972
970
  param: {
973
971
  workerId: string;
@@ -975,11 +973,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
975
973
  };
976
974
  } | {
977
975
  output: {
978
- error: string;
979
- code?: "invalid_input" | undefined;
976
+ workerId: string;
977
+ baselineSha: string;
978
+ diff: string;
979
+ truncated: boolean;
980
980
  };
981
981
  outputFormat: "json";
982
- status: 400;
982
+ status: 200;
983
983
  input: {
984
984
  param: {
985
985
  workerId: string;
@@ -2575,6 +2575,7 @@ export declare const RUN_EXITS: {
2575
2575
  profileId?: string | undefined;
2576
2576
  costUsd?: number | undefined;
2577
2577
  synthetic?: "continuation" | undefined;
2578
+ continuesStepId?: string | undefined;
2578
2579
  }[];
2579
2580
  workflowDef?: {
2580
2581
  name: string;
@@ -3622,6 +3623,7 @@ export declare const RUN_EXITS: {
3622
3623
  profileId?: string | undefined;
3623
3624
  costUsd?: number | undefined;
3624
3625
  synthetic?: "continuation" | undefined;
3626
+ continuesStepId?: string | undefined;
3625
3627
  }[];
3626
3628
  workflowDef?: {
3627
3629
  name: string;
@@ -4689,6 +4691,7 @@ export declare const RUN_EXITS: {
4689
4691
  profileId?: string | undefined;
4690
4692
  costUsd?: number | undefined;
4691
4693
  synthetic?: "continuation" | undefined;
4694
+ continuesStepId?: string | undefined;
4692
4695
  }[];
4693
4696
  workflowDef?: {
4694
4697
  name: string;
@@ -5747,6 +5750,7 @@ export declare const RUN_EXITS: {
5747
5750
  profileId?: string | undefined;
5748
5751
  costUsd?: number | undefined;
5749
5752
  synthetic?: "continuation" | undefined;
5753
+ continuesStepId?: string | undefined;
5750
5754
  }[];
5751
5755
  workflowDef?: {
5752
5756
  name: string;
@@ -63,6 +63,7 @@ declare const stepStateSchema: z.ZodObject<{
63
63
  profileId: z.ZodOptional<z.ZodString>;
64
64
  costUsd: z.ZodOptional<z.ZodNumber>;
65
65
  synthetic: z.ZodOptional<z.ZodLiteral<"continuation">>;
66
+ continuesStepId: z.ZodOptional<z.ZodString>;
66
67
  backend: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
67
68
  claude: "claude";
68
69
  "claude-cli": "claude-cli";
@@ -1970,6 +1971,7 @@ export declare const runRecordSchema: z.ZodObject<{
1970
1971
  profileId: z.ZodOptional<z.ZodString>;
1971
1972
  costUsd: z.ZodOptional<z.ZodNumber>;
1972
1973
  synthetic: z.ZodOptional<z.ZodLiteral<"continuation">>;
1974
+ continuesStepId: z.ZodOptional<z.ZodString>;
1973
1975
  backend: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
1974
1976
  claude: "claude";
1975
1977
  "claude-cli": "claude-cli";
@@ -3035,6 +3037,7 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
3035
3037
  profileId?: string | undefined;
3036
3038
  costUsd?: number | undefined;
3037
3039
  synthetic?: "continuation" | undefined;
3040
+ continuesStepId?: string | undefined;
3038
3041
  backend?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
3039
3042
  }[];
3040
3043
  automation?: {
@@ -3664,7 +3667,7 @@ export declare class RunStore extends EventEmitter {
3664
3667
  * worker. Destroy progress: nothing the family reconcile reads changes. */
3665
3668
  commitDestroyRetry(id: string, retry: WorkerDestroyRetry | undefined): void;
3666
3669
  /** Accepted execution revision is public lifecycle identity, separate from process generations. */
3667
- commitWorkerContinuation(id: string, exit: RunExitId, patch?: Omit<RunPatch, 'delegation'>, step?: Pick<StepState, 'id' | 'name' | 'kind' | 'synthetic'>, conversation?: {
3670
+ commitWorkerContinuation(id: string, exit: RunExitId, patch?: Omit<RunPatch, 'delegation'>, step?: Pick<StepState, 'id' | 'name' | 'kind' | 'synthetic' | 'continuesStepId'>, conversation?: {
3668
3671
  rootId: string;
3669
3672
  state: ConversationState;
3670
3673
  input: AgentInput;
@@ -3724,7 +3727,7 @@ export declare class RunStore extends EventEmitter {
3724
3727
  private writeRun;
3725
3728
  private redactPatch;
3726
3729
  /** Append a step to an existing run (used by "Continue" — spec 003). */
3727
- addStep(runId: string, step: Pick<StepState, 'id' | 'name' | 'kind' | 'synthetic'>): void;
3730
+ addStep(runId: string, step: Pick<StepState, 'id' | 'name' | 'kind' | 'synthetic' | 'continuesStepId'>): void;
3728
3731
  updateStep(runId: string, stepId: string, patch: Partial<Omit<StepState, 'id'>>): void;
3729
3732
  listArchiveOnMergeCandidates(afterSeq?: number, limit?: number): Array<{
3730
3733
  id: string;