@hearsay-tools/squawk 0.18.0-pr3873.7231 → 0.18.0-pr3874.7302

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 (99) hide show
  1. package/dist/ci-wait/controller.d.ts +42 -42
  2. package/dist/ci-wait/tools.d.ts +4 -4
  3. package/dist/contract/agent-profiles.d.ts +3 -85
  4. package/dist/contract/index.js +9 -56
  5. package/dist/contract/provider-requests.d.ts +1 -6
  6. package/dist/contract/run-requests.d.ts +0 -1
  7. package/dist/core/agent-profiles.d.ts +7 -43
  8. package/dist/core/agent-profiles.js +15 -70
  9. package/dist/core/agent-profiles.js.map +1 -1
  10. package/dist/delegation/execution-identity.d.ts +1 -1
  11. package/dist/delegation/execution-identity.js +5 -30
  12. package/dist/delegation/execution-identity.js.map +1 -1
  13. package/dist/delegation/routes.d.ts +62 -62
  14. package/dist/headless-run.js +9 -5
  15. package/dist/headless-run.js.map +1 -1
  16. package/dist/home/legacy-account-paths.js +0 -4
  17. package/dist/home/legacy-account-paths.js.map +1 -1
  18. package/dist/home/migration-accounts.d.ts +0 -2
  19. package/dist/home/migration-accounts.js +1 -11
  20. package/dist/home/migration-accounts.js.map +1 -1
  21. package/dist/home/migration-plan.js +4 -5
  22. package/dist/home/migration-plan.js.map +1 -1
  23. package/dist/paths.d.ts +0 -6
  24. package/dist/paths.js +8 -8
  25. package/dist/paths.js.map +1 -1
  26. package/dist/planner.js +1 -3
  27. package/dist/planner.js.map +1 -1
  28. package/dist/server/open-in-targets.js +3 -7
  29. package/dist/server/open-in-targets.js.map +1 -1
  30. package/dist/server/server.d.ts +405 -669
  31. package/dist/server/server.js +22 -165
  32. package/dist/server/server.js.map +1 -1
  33. package/dist/workflows/continuation-admission.d.ts +1 -13
  34. package/dist/workflows/continuation-admission.js +4 -6
  35. package/dist/workflows/continuation-admission.js.map +1 -1
  36. package/dist/workflows/run/session-events.d.ts +1 -2
  37. package/dist/workflows/run/session-events.js +2 -4
  38. package/dist/workflows/run/session-events.js.map +1 -1
  39. package/dist/workspace/agent-accounts.d.ts +2 -15
  40. package/dist/workspace/agent-accounts.js +63 -35
  41. package/dist/workspace/agent-accounts.js.map +1 -1
  42. package/dist/workspace/agent-profiles.d.ts +2 -36
  43. package/dist/workspace/agent-profiles.js +4 -72
  44. package/dist/workspace/agent-profiles.js.map +1 -1
  45. package/package.json +4 -4
  46. package/web/dist/assets/{activity-motion-DUCV5L0w.js → activity-motion-YMvJpfC8.js} +2 -2
  47. package/web/dist/assets/{activity-route-DhR7Phxz.js → activity-route-C3nuQQR-.js} +1 -1
  48. package/web/dist/assets/{agent-accounts-Ck78cTaG.js → agent-accounts-C1IZE0uf.js} +1 -1
  49. package/web/dist/assets/attention-SAsrxB3a.js +1 -0
  50. package/web/dist/assets/{commit-diff-panel-DROIgIvc.js → commit-diff-panel-B78xqBBB.js} +1 -1
  51. package/web/dist/assets/{diff-DpxnwWWi.js → diff-CuoNLz3Q.js} +2 -2
  52. package/web/dist/assets/{diff-view-CT2koEmZ.js → diff-view-Dxt-xGXY.js} +1 -1
  53. package/web/dist/assets/{file-preview-DoN49plc.js → file-preview-D6fgR7rc.js} +1 -1
  54. package/web/dist/assets/{git-toolbar-BK3rzi1x.js → git-toolbar-B4gNpVK8.js} +1 -1
  55. package/web/dist/assets/github-D4IdDmEF.js +1 -0
  56. package/web/dist/assets/{global-activity-route-S7yzZmEr.js → global-activity-route-BQW6XCBZ.js} +1 -1
  57. package/web/dist/assets/index-CZSDjjxd.js +14 -0
  58. package/web/dist/assets/index-D6Jjh8b7.css +1 -0
  59. package/web/dist/assets/{markdown-B0anEsMd.js → markdown-CFpzsarc.js} +1 -1
  60. package/web/dist/assets/picker-pill-AQuDoa6t.js +15 -0
  61. package/web/dist/assets/{preview-pane-connected-BzekXFjg.js → preview-pane-connected-Divki4iS.js} +2 -2
  62. package/web/dist/assets/{project-router-BKoMKwmx.js → project-router-CuXiyyHq.js} +1 -1
  63. package/web/dist/assets/{project-scope-context-Cb2B_LxQ.js → project-scope-context-TjMvUo_E.js} +1 -1
  64. package/web/dist/assets/{prompt-template-menu-BBSaimz3.js → prompt-template-menu-DttDghYr.js} +1 -1
  65. package/web/dist/assets/queries-M7QM2Z_B.js +1 -0
  66. package/web/dist/assets/{reference-chip-AYFrAylA.js → reference-chip-C2uR5keT.js} +1 -1
  67. package/web/dist/assets/{repo-git-B7ZeLEvR.js → repo-git-Dl6O3hGA.js} +1 -1
  68. package/web/dist/assets/{report-reader-D3ClRGaS.js → report-reader-MmUDUBB6.js} +1 -1
  69. package/web/dist/assets/{reports-DY-sN7ya.js → reports-D5N5f1oD.js} +1 -1
  70. package/web/dist/assets/run-header-CWSg_ZYo.js +2 -0
  71. package/web/dist/assets/{skills-CvgUI4o3.js → skills-UhbdEQES.js} +1 -1
  72. package/web/dist/assets/{tab-link-CekOt2NF.js → tab-link-Bz7Tn_PW.js} +1 -1
  73. package/web/dist/assets/{task-changes-DI7U63bx.js → task-changes-Ciq3wQdC.js} +1 -1
  74. package/web/dist/assets/{task-commits-BHb8bDAK.js → task-commits-BYZEw7j8.js} +1 -1
  75. package/web/dist/assets/{task-files-C_JvFlH3.js → task-files-zvZu7yvk.js} +1 -1
  76. package/web/dist/assets/task-github-item-BYzml2gD.js +1 -0
  77. package/web/dist/assets/{task-thread-BcgJ2CLQ.js → task-thread-DSdn2fYx.js} +7 -7
  78. package/web/dist/assets/{thread-state-AfNliBC6.js → thread-state-BU_1o8aR.js} +1 -1
  79. package/web/dist/assets/{use-desktop-tg8hhNdq.js → use-desktop-Dc0-ZSdE.js} +1 -1
  80. package/web/dist/assets/use-hand-to-agent-state-C8jp_mTB.js +1 -0
  81. package/web/dist/assets/{useInfiniteQuery-De6BP_4x.js → useInfiniteQuery-BzvShKMo.js} +1 -1
  82. package/web/dist/assets/useQuery-BJvp3XYr.js +1 -0
  83. package/web/dist/assets/{workflows-C-sOpa7G.js → workflows-BdBF5bnk.js} +2 -2
  84. package/web/dist/assets/ws-BQRkvdhO.js +1 -0
  85. package/web/dist/index.html +14 -14
  86. package/dist/agent-config/account-identity.d.ts +0 -28
  87. package/dist/agent-config/account-identity.js +0 -132
  88. package/dist/agent-config/account-identity.js.map +0 -1
  89. package/web/dist/assets/attention-DLIMAzlf.js +0 -1
  90. package/web/dist/assets/github-C3NKXyls.js +0 -1
  91. package/web/dist/assets/index-BRcS2Xvy.css +0 -1
  92. package/web/dist/assets/index-DgjX4EGJ.js +0 -14
  93. package/web/dist/assets/picker-pill-Bd3Q9PFA.js +0 -15
  94. package/web/dist/assets/queries-Bb9GjWMQ.js +0 -1
  95. package/web/dist/assets/run-header-B2aqbtt8.js +0 -2
  96. package/web/dist/assets/task-github-item-Da601f-w.js +0 -1
  97. package/web/dist/assets/use-hand-to-agent-state-CFQoeO76.js +0 -1
  98. package/web/dist/assets/useQuery-BsOmvrd_.js +0 -1
  99. package/web/dist/assets/ws-2N3miuuZ.js +0 -1
@@ -282,11 +282,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
282
282
  "/api/v1/tools/ask": {
283
283
  $post: {
284
284
  output: {
285
- code: 'capability_revoked';
285
+ ok: false;
286
+ code: 'unavailable';
286
287
  message: string;
287
288
  };
288
289
  outputFormat: "json";
289
- status: 401;
290
+ status: import("hono/utils/http-status").ContentfulStatusCode;
290
291
  input: {
291
292
  json: {
292
293
  questions: {
@@ -304,12 +305,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
304
305
  };
305
306
  } | {
306
307
  output: {
307
- ok: false;
308
- code: 'unavailable';
308
+ code: 'capability_revoked';
309
309
  message: string;
310
310
  };
311
311
  outputFormat: "json";
312
- status: import("hono/utils/http-status").ContentfulStatusCode;
312
+ status: 401;
313
313
  input: {
314
314
  json: {
315
315
  questions: {
@@ -377,11 +377,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
377
377
  "/api/v1/tools/cancel-wait": {
378
378
  $post: {
379
379
  output: {
380
- code: 'capability_revoked';
380
+ cancelled: false;
381
+ code: 'unavailable';
381
382
  message: string;
382
383
  };
383
384
  outputFormat: "json";
384
- status: 401;
385
+ status: import("hono/utils/http-status").ContentfulStatusCode;
385
386
  input: {
386
387
  json: {
387
388
  wait_id: string;
@@ -389,12 +390,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
389
390
  };
390
391
  } | {
391
392
  output: {
392
- cancelled: false;
393
- code: 'unavailable';
393
+ code: 'capability_revoked';
394
394
  message: string;
395
395
  };
396
396
  outputFormat: "json";
397
- status: import("hono/utils/http-status").ContentfulStatusCode;
397
+ status: 401;
398
398
  input: {
399
399
  json: {
400
400
  wait_id: string;
@@ -442,11 +442,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
442
442
  "/api/v1/tools/done": {
443
443
  $post: {
444
444
  output: {
445
- code: 'capability_revoked';
445
+ ok: false;
446
+ code: 'unavailable';
446
447
  message: string;
447
448
  };
448
449
  outputFormat: "json";
449
- status: 401;
450
+ status: import("hono/utils/http-status").ContentfulStatusCode;
450
451
  input: {
451
452
  json: {
452
453
  summary?: string | undefined;
@@ -454,12 +455,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
454
455
  };
455
456
  } | {
456
457
  output: {
457
- ok: false;
458
- code: 'unavailable';
458
+ code: 'capability_revoked';
459
459
  message: string;
460
460
  };
461
461
  outputFormat: "json";
462
- status: import("hono/utils/http-status").ContentfulStatusCode;
462
+ status: 401;
463
463
  input: {
464
464
  json: {
465
465
  summary?: string | undefined;
@@ -542,11 +542,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
542
542
  "/api/v1/tools/preview-stop": {
543
543
  $post: {
544
544
  output: {
545
- code: 'capability_revoked';
545
+ ok: boolean;
546
+ code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
546
547
  message: string;
548
+ hint: string;
547
549
  };
548
550
  outputFormat: "json";
549
- status: 401;
551
+ status: import("hono/utils/http-status").ContentfulStatusCode;
550
552
  input: {
551
553
  json: {
552
554
  port: number;
@@ -555,13 +557,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
555
557
  };
556
558
  } | {
557
559
  output: {
558
- ok: boolean;
559
- code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
560
+ code: 'capability_revoked';
560
561
  message: string;
561
- hint: string;
562
562
  };
563
563
  outputFormat: "json";
564
- status: import("hono/utils/http-status").ContentfulStatusCode;
564
+ status: 401;
565
565
  input: {
566
566
  json: {
567
567
  port: number;
@@ -574,11 +574,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
574
574
  "/api/v1/tools/preview-serve": {
575
575
  $post: {
576
576
  output: {
577
- code: 'capability_revoked';
577
+ ok: boolean;
578
+ code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
578
579
  message: string;
580
+ hint: string;
579
581
  };
580
582
  outputFormat: "json";
581
- status: 401;
583
+ status: import("hono/utils/http-status").ContentfulStatusCode;
582
584
  input: {
583
585
  json: {
584
586
  command: string;
@@ -590,13 +592,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
590
592
  };
591
593
  } | {
592
594
  output: {
593
- ok: boolean;
594
- code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
595
+ code: 'capability_revoked';
595
596
  message: string;
596
- hint: string;
597
597
  };
598
598
  outputFormat: "json";
599
- status: import("hono/utils/http-status").ContentfulStatusCode;
599
+ status: 401;
600
600
  input: {
601
601
  json: {
602
602
  command: string;
@@ -612,11 +612,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
612
612
  "/api/v1/tools/automation": {
613
613
  $post: {
614
614
  output: {
615
- code: 'capability_revoked';
615
+ ok: false;
616
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
616
617
  message: string;
617
618
  };
618
619
  outputFormat: "json";
619
- status: 401;
620
+ status: import("hono/utils/http-status").ContentfulStatusCode;
620
621
  input: {
621
622
  json: {
622
623
  action: "create";
@@ -696,12 +697,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
696
697
  };
697
698
  } | {
698
699
  output: {
699
- ok: false;
700
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
700
+ code: 'capability_revoked';
701
701
  message: string;
702
702
  };
703
703
  outputFormat: "json";
704
- status: import("hono/utils/http-status").ContentfulStatusCode;
704
+ status: 401;
705
705
  input: {
706
706
  json: {
707
707
  action: "create";
@@ -957,11 +957,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
957
957
  "/api/v1/tools/schedule-task": {
958
958
  $post: {
959
959
  output: {
960
- code: 'capability_revoked';
960
+ ok: false;
961
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
961
962
  message: string;
962
963
  };
963
964
  outputFormat: "json";
964
- status: 401;
965
+ status: import("hono/utils/http-status").ContentfulStatusCode;
965
966
  input: {
966
967
  json: {
967
968
  at?: string | undefined;
@@ -978,12 +979,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
978
979
  };
979
980
  } | {
980
981
  output: {
981
- ok: false;
982
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
982
+ code: 'capability_revoked';
983
983
  message: string;
984
984
  };
985
985
  outputFormat: "json";
986
- status: import("hono/utils/http-status").ContentfulStatusCode;
986
+ status: 401;
987
987
  input: {
988
988
  json: {
989
989
  at?: string | undefined;
@@ -1038,11 +1038,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
1038
1038
  "/api/v1/tools/scheduled-tasks": {
1039
1039
  $post: {
1040
1040
  output: {
1041
- code: 'capability_revoked';
1041
+ ok: false;
1042
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
1042
1043
  message: string;
1043
1044
  };
1044
1045
  outputFormat: "json";
1045
- status: 401;
1046
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1046
1047
  input: {
1047
1048
  json: {
1048
1049
  at?: string | undefined;
@@ -1075,12 +1076,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
1075
1076
  };
1076
1077
  } | {
1077
1078
  output: {
1078
- ok: false;
1079
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
1079
+ code: 'capability_revoked';
1080
1080
  message: string;
1081
1081
  };
1082
1082
  outputFormat: "json";
1083
- status: import("hono/utils/http-status").ContentfulStatusCode;
1083
+ status: 401;
1084
1084
  input: {
1085
1085
  json: {
1086
1086
  at?: string | undefined;
@@ -263,10 +263,6 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
263
263
  }[];
264
264
  isError: boolean;
265
265
  details: {
266
- ok: false;
267
- code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
268
- message: string;
269
- } | {
270
266
  ok: true;
271
267
  task: {
272
268
  id: string;
@@ -278,6 +274,10 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
278
274
  url?: string | undefined;
279
275
  };
280
276
  note: string;
277
+ } | {
278
+ ok: false;
279
+ code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
280
+ message: string;
281
281
  };
282
282
  }>;
283
283
  export declare function invokeScheduledTasksTool(input: unknown): Promise<{
@@ -22,20 +22,6 @@ import { z } from 'zod';
22
22
  * selection. Defined here so the cockpit and the server cannot disagree about the spelling.
23
23
  */
24
24
  export declare const DEFAULT_AGENT_ACCOUNT_ID = "default";
25
- /**
26
- * One of the agent's OWN config files, resolved against THIS account's folder.
27
- *
28
- * Addressed by the catalog's stable, opaque `id` — never a path the client composes, which is what
29
- * makes the open route traversal-proof by construction (the same rule `/api/v1/agent-config/:id`
30
- * follows).
31
- */
32
- export declare const agentAccountFileSchema: z.ZodObject<{
33
- id: z.ZodString;
34
- label: z.ZodString;
35
- path: z.ZodString;
36
- exists: z.ZodBoolean;
37
- }, z.core.$strip>;
38
- export type AgentAccountFile = z.infer<typeof agentAccountFileSchema>;
39
25
  /**
40
26
  * One account, as the cockpit sees it.
41
27
  *
@@ -77,20 +63,14 @@ export declare const agentProfileSchema: z.ZodObject<{
77
63
  authFailureId: z.ZodOptional<z.ZodString>;
78
64
  profileId: z.ZodOptional<z.ZodString>;
79
65
  }, z.core.$strip>>;
80
- files: z.ZodArray<z.ZodObject<{
81
- id: z.ZodString;
82
- label: z.ZodString;
83
- path: z.ZodString;
84
- exists: z.ZodBoolean;
85
- }, z.core.$strip>>;
86
66
  }, z.core.$strip>;
87
67
  export type AgentProfile = z.infer<typeof agentProfileSchema>;
88
68
  /**
89
- * How to address one account in the per-account routes (`…/:id/details`, `…/:id/open`).
69
+ * How to address one account in the per-account status route (`…/:id/status`).
90
70
  *
91
71
  * Every DISCOVERED account shares `id: "default"` — that spelling is load-bearing in the selection
92
72
  * routes, where it means "back to the discovered account" — so it cannot identify which agent's
93
- * default is meant. These two routes therefore take `default:<provider>` for a discovered account
73
+ * default is meant. That route therefore takes `default:<provider>` for a discovered account
94
74
  * and the stored slug otherwise. Defined once, here, so the client and the server cannot disagree
95
75
  * about the encoding; still opaque, still not a path.
96
76
  */
@@ -147,12 +127,6 @@ export declare const agentProfilesResponseSchema: z.ZodObject<{
147
127
  authFailureId: z.ZodOptional<z.ZodString>;
148
128
  profileId: z.ZodOptional<z.ZodString>;
149
129
  }, z.core.$strip>>;
150
- files: z.ZodArray<z.ZodObject<{
151
- id: z.ZodString;
152
- label: z.ZodString;
153
- path: z.ZodString;
154
- exists: z.ZodBoolean;
155
- }, z.core.$strip>>;
156
130
  }, z.core.$strip>>;
157
131
  profileCapableProviders: z.ZodArray<z.ZodEnum<{
158
132
  claude: "claude";
@@ -168,13 +142,6 @@ export declare const agentProfilesResponseSchema: z.ZodObject<{
168
142
  pi: z.ZodOptional<z.ZodString>;
169
143
  omp: z.ZodOptional<z.ZodString>;
170
144
  }, z.core.$strip>>;
171
- defaults: z.ZodObject<{
172
- claude: z.ZodOptional<z.ZodString>;
173
- codex: z.ZodOptional<z.ZodString>;
174
- opencode: z.ZodOptional<z.ZodString>;
175
- pi: z.ZodOptional<z.ZodString>;
176
- omp: z.ZodOptional<z.ZodString>;
177
- }, z.core.$strip>;
178
145
  }, z.core.$strip>;
179
146
  export type AgentProfilesResponse = z.infer<typeof agentProfilesResponseSchema>;
180
147
  /**
@@ -185,7 +152,7 @@ export type AgentProfilesResponse = z.infer<typeof agentProfilesResponseSchema>;
185
152
  * degraded, because a typo the route accepted would quietly run the project on the wrong account.
186
153
  */
187
154
  export declare const selectAgentProfileInputSchema: z.ZodObject<{
188
- projectId: z.ZodNullable<z.ZodString>;
155
+ projectId: z.ZodString;
189
156
  provider: z.ZodEnum<{
190
157
  claude: "claude";
191
158
  codex: "codex";
@@ -205,13 +172,6 @@ export declare const agentProfileSelectionsResponseSchema: z.ZodObject<{
205
172
  pi: z.ZodOptional<z.ZodString>;
206
173
  omp: z.ZodOptional<z.ZodString>;
207
174
  }, z.core.$strip>>;
208
- defaults: z.ZodObject<{
209
- claude: z.ZodOptional<z.ZodString>;
210
- codex: z.ZodOptional<z.ZodString>;
211
- opencode: z.ZodOptional<z.ZodString>;
212
- pi: z.ZodOptional<z.ZodString>;
213
- omp: z.ZodOptional<z.ZodString>;
214
- }, z.core.$strip>;
215
175
  }, z.core.$strip>;
216
176
  export type AgentProfileSelectionsResponse = z.infer<typeof agentProfileSelectionsResponseSchema>;
217
177
  /** `GET /api/v1/workspace/agent-profiles/:id/status` — one account's auth state, probed for real.
@@ -239,42 +199,6 @@ export declare const agentAccountStatusResponseSchema: z.ZodObject<{
239
199
  }, z.core.$strip>;
240
200
  }, z.core.$strip>;
241
201
  export type AgentAccountStatusResponse = z.infer<typeof agentAccountStatusResponseSchema>;
242
- /**
243
- * On-demand local account details, separate from ordinary listings. fields contains only
244
- * explicitly selected display values; available:false includes a reason.
245
- */
246
- export declare const agentAccountDetailsResponseSchema: z.ZodObject<{
247
- available: z.ZodBoolean;
248
- reason: z.ZodOptional<z.ZodString>;
249
- fields: z.ZodArray<z.ZodObject<{
250
- label: z.ZodString;
251
- value: z.ZodString;
252
- }, z.core.$strip>>;
253
- }, z.core.$strip>;
254
- export type AgentAccountDetailsResponse = z.infer<typeof agentAccountDetailsResponseSchema>;
255
- /**
256
- * `POST /api/v1/workspace/agent-profiles/:id/open` — hand one of this account's config files (or
257
- * the folder itself) to a local app.
258
- *
259
- * `file` is a catalog id from the account's own `files`, or `folder` for the config dir. `target`
260
- * is an `/api/v1/open-targets` id — an editor, or the file manager for `folder` — and omitted means
261
- * the OS default handler.
262
- *
263
- * Two target families are refused with a 400 rather than silently misbehaving: `terminal` for a
264
- * FILE (it would `cd` into it) and any `cli:<runner>` handoff (it would start an agent session
265
- * inside the config folder). An unknown/undetected target is a 400 too.
266
- */
267
- export declare const openAgentAccountFileInputSchema: z.ZodObject<{
268
- file: z.ZodString;
269
- target: z.ZodOptional<z.ZodString>;
270
- }, z.core.$strip>;
271
- export type OpenAgentAccountFileInput = z.infer<typeof openAgentAccountFileInputSchema>;
272
- /** `POST …/open` — what was opened, so the UI can say so rather than guess. */
273
- export declare const openAgentAccountFileResponseSchema: z.ZodObject<{
274
- opened: z.ZodLiteral<true>;
275
- path: z.ZodString;
276
- }, z.core.$strip>;
277
- export type OpenAgentAccountFileResponse = z.infer<typeof openAgentAccountFileResponseSchema>;
278
202
  /** `POST /api/v1/workspace/agent-profiles` — the id is allocated server-side from the label. */
279
203
  export declare const createAgentProfileInputSchema: z.ZodObject<{
280
204
  provider: z.ZodEnum<{
@@ -330,12 +254,6 @@ export declare const agentProfileResponseSchema: z.ZodObject<{
330
254
  authFailureId: z.ZodOptional<z.ZodString>;
331
255
  profileId: z.ZodOptional<z.ZodString>;
332
256
  }, z.core.$strip>>;
333
- files: z.ZodArray<z.ZodObject<{
334
- id: z.ZodString;
335
- label: z.ZodString;
336
- path: z.ZodString;
337
- exists: z.ZodBoolean;
338
- }, z.core.$strip>>;
339
257
  }, z.core.$strip>;
340
258
  }, z.core.$strip>;
341
259
  export type AgentProfileResponse = z.infer<typeof agentProfileResponseSchema>;
@@ -3835,14 +3835,6 @@ var setAgentConfigInputSchema = z23.object({
3835
3835
  // ../contract/src/agent-profiles.ts
3836
3836
  import { z as z24 } from "zod";
3837
3837
  var DEFAULT_AGENT_ACCOUNT_ID = "default";
3838
- var agentAccountFileSchema = z24.object({
3839
- id: z24.string(),
3840
- /** e.g. `settings.json` — the file's own name, since the folder is shown once on the account. */
3841
- label: z24.string(),
3842
- /** Absolute, resolved inside this account's config folder. */
3843
- path: z24.string(),
3844
- exists: z24.boolean()
3845
- });
3846
3838
  var agentProfileSchema = z24.object({
3847
3839
  /** `default` for the discovered profile, else the stored slug. */
3848
3840
  id: z24.string(),
@@ -3867,10 +3859,7 @@ var agentProfileSchema = z24.object({
3867
3859
  * every cold load); it serves only what is already cached, exactly as `GET /api/v1/health`
3868
3860
  * serves a cached forge answer. Absent means "not determined yet" — NOT `unknown`, which is a
3869
3861
  * real probe result — and the cockpit fills it in from `…/:id/status`. */
3870
- status: providerStatusSchema.optional(),
3871
- /** This agent's own user-scope config files, resolved inside THIS account's folder — so a
3872
- * second login's `settings.json` is the one you open, not the default account's. */
3873
- files: z24.array(agentAccountFileSchema)
3862
+ status: providerStatusSchema.optional()
3874
3863
  });
3875
3864
  function agentAccountRouteId(profile) {
3876
3865
  return profile.isDefault ? `default:${profile.provider}` : profile.id;
@@ -3880,8 +3869,8 @@ var agentProfilesResponseSchema = z24.object({
3880
3869
  editable: z24.boolean(),
3881
3870
  profiles: z24.array(agentProfileSchema),
3882
3871
  /** Providers that can carry more than one account at all — what "Add account" is offered for.
3883
- * OpenCode is absent: its credentials live in a SQLite DB behind a separate `OPENCODE_DB`, so
3884
- * a config-dir profile would swap settings while still billing the other account. */
3872
+ * OpenCode and omp are absent: no folder variable moves their credentials, so a config-dir
3873
+ * profile would swap settings while still billing the other account. */
3885
3874
  profileCapableProviders: z24.array(providerIdSchema),
3886
3875
  /** Which account each project uses, keyed by the project's realpath'd ROOT.
3887
3876
  *
@@ -3889,41 +3878,18 @@ var agentProfilesResponseSchema = z24.object({
3889
3878
  * names (`~/.cezar/agent-accounts.json`) — one file, so deleting an account and scrubbing every
3890
3879
  * reference to it is one atomic write, and neither can be dropped by a Squawk version that never
3891
3880
  * heard of accounts. Empty in hosted mode, where the whole family is withheld. */
3892
- selections: z24.record(z24.string(), agentAccountSelectionSchema),
3893
- /** The machine-wide fallback account per provider, used by any repo that has chosen none. */
3894
- defaults: agentAccountSelectionSchema
3881
+ selections: z24.record(z24.string(), agentAccountSelectionSchema)
3895
3882
  });
3896
3883
  var selectAgentProfileInputSchema = z24.object({
3897
- /**
3898
- * Registry slug, or the reserved `default` boot alias. Resolved to a root server-side.
3899
- *
3900
- * `null` targets the MACHINE-WIDE default instead of one repo — the account a repo that has
3901
- * chosen nothing uses, so a second login is set up once rather than per checkout. A repo's own
3902
- * choice always wins over it, which is what keeps this a default and not an override.
3903
- */
3904
- projectId: z24.string().min(1).max(64).nullable(),
3884
+ /** Registry slug, or the reserved `default` boot alias. Resolved to a root server-side. */
3885
+ projectId: z24.string().min(1).max(64),
3905
3886
  provider: providerIdSchema,
3906
3887
  profileId: z24.string().max(64).nullable()
3907
3888
  });
3908
3889
  var agentProfileSelectionsResponseSchema = z24.object({
3909
- selections: z24.record(z24.string(), agentAccountSelectionSchema),
3910
- /** The machine-wide fallback, for repos with no selection of their own. */
3911
- defaults: agentAccountSelectionSchema
3890
+ selections: z24.record(z24.string(), agentAccountSelectionSchema)
3912
3891
  });
3913
3892
  var agentAccountStatusResponseSchema = z24.object({ status: providerStatusSchema });
3914
- var agentAccountDetailsResponseSchema = z24.object({
3915
- available: z24.boolean(),
3916
- reason: z24.string().optional(),
3917
- fields: z24.array(z24.object({ label: z24.string(), value: z24.string() }))
3918
- });
3919
- var openAgentAccountFileInputSchema = z24.object({
3920
- file: z24.string().min(1).max(200),
3921
- target: z24.string().min(1).max(64).optional()
3922
- });
3923
- var openAgentAccountFileResponseSchema = z24.object({
3924
- opened: z24.literal(true),
3925
- path: z24.string()
3926
- });
3927
3893
  var createAgentProfileInputSchema = z24.object({
3928
3894
  provider: providerIdSchema,
3929
3895
  label: z24.string().trim().max(200).optional(),
@@ -5372,10 +5338,6 @@ var createAgentProfileSchema = z35.object({
5372
5338
  label: z35.string().trim().max(200).optional(),
5373
5339
  configDir: z35.string().trim().min(1).max(4096)
5374
5340
  }).strict();
5375
- var openAgentAccountFileSchema = z35.object({
5376
- file: z35.string().min(1).max(200),
5377
- target: z35.string().min(1).max(64).optional()
5378
- }).strict();
5379
5341
  var updateAgentProfileSchema = z35.object({
5380
5342
  label: z35.string().trim().max(200).optional(),
5381
5343
  configDir: z35.string().trim().min(1).max(4096).optional()
@@ -5384,8 +5346,7 @@ var updateAgentProfileSchema = z35.object({
5384
5346
  "send label or configDir"
5385
5347
  );
5386
5348
  var selectAgentProfileSchema = z35.object({
5387
- /** `null` targets the machine-wide default rather than one repo. */
5388
- projectId: z35.string().min(1).max(64).nullable(),
5349
+ projectId: z35.string().min(1).max(64),
5389
5350
  provider: z35.enum(PROVIDER_IDS),
5390
5351
  profileId: z35.string().max(64).nullable()
5391
5352
  }).strict();
@@ -5705,10 +5666,7 @@ var continueSchema = z40.object({
5705
5666
  runner: z40.enum(RUNNER_IDS2).optional(),
5706
5667
  model: z40.string().max(200).optional(),
5707
5668
  /** Reasoning-effort pin (legacy reference 45). Omitted keeps the run's pin; empty string clears it. */
5708
- effort: z40.string().max(32).optional(),
5709
- /** Agent account for the reopened session (spec 2026-07-29-agent-profiles). Bound mirrors
5710
- * `POST /runs`' own `agentProfile`. Omitted = keep the account the run is already on. */
5711
- agentProfile: z40.string().max(64).optional()
5669
+ effort: z40.string().max(32).optional()
5712
5670
  });
5713
5671
  var archiveSchema = z40.object({
5714
5672
  archived: z40.boolean().optional()
@@ -6012,8 +5970,6 @@ export {
6012
5970
  activityWorkerSchema,
6013
5971
  advancePendingAsk,
6014
5972
  advancePendingHumanAsk,
6015
- agentAccountDetailsResponseSchema,
6016
- agentAccountFileSchema,
6017
5973
  agentAccountRouteId,
6018
5974
  agentAccountSelectionSchema,
6019
5975
  agentAccountStatusResponseSchema,
@@ -6299,9 +6255,6 @@ export {
6299
6255
  onceInstant,
6300
6256
  onceStatusSchema,
6301
6257
  onceWallParts,
6302
- openAgentAccountFileInputSchema,
6303
- openAgentAccountFileResponseSchema,
6304
- openAgentAccountFileSchema,
6305
6258
  openInCliResponseSchema,
6306
6259
  openInSchema,
6307
6260
  openProjectInResponseSchema,
@@ -23,11 +23,6 @@ export declare const createAgentProfileSchema: z.ZodObject<{
23
23
  label: z.ZodOptional<z.ZodString>;
24
24
  configDir: z.ZodString;
25
25
  }, z.core.$strict>;
26
- /** `POST …/agent-profiles/:id/open` — a catalog id (or `folder`) plus an optional open target. */
27
- export declare const openAgentAccountFileSchema: z.ZodObject<{
28
- file: z.ZodString;
29
- target: z.ZodOptional<z.ZodString>;
30
- }, z.core.$strict>;
31
26
  export declare const updateAgentProfileSchema: z.ZodObject<{
32
27
  label: z.ZodOptional<z.ZodString>;
33
28
  configDir: z.ZodOptional<z.ZodString>;
@@ -35,7 +30,7 @@ export declare const updateAgentProfileSchema: z.ZodObject<{
35
30
  /** `PUT …/agent-profiles/selection` — which account a project uses for one provider. `null`
36
31
  * clears it back to the discovered account. */
37
32
  export declare const selectAgentProfileSchema: z.ZodObject<{
38
- projectId: z.ZodNullable<z.ZodString>;
33
+ projectId: z.ZodString;
39
34
  provider: z.ZodEnum<{
40
35
  claude: "claude";
41
36
  codex: "codex";
@@ -21,7 +21,6 @@ export declare const continueSchema: z.ZodObject<{
21
21
  }>>;
22
22
  model: z.ZodOptional<z.ZodString>;
23
23
  effort: z.ZodOptional<z.ZodString>;
24
- agentProfile: z.ZodOptional<z.ZodString>;
25
24
  }, z.core.$strip>;
26
25
  export declare const archiveSchema: z.ZodObject<{
27
26
  archived: z.ZodOptional<z.ZodBoolean>;
@@ -7,20 +7,13 @@ import type { ProviderId } from './provider-auth.ts';
7
7
  /** How one provider lays out an account, declared once per provider id. */
8
8
  export interface AccountLayout {
9
9
  /**
10
- * How a named account reaches the CLI: the variable Squawk sets, and what it takes. `folder`: the
11
- * account folder. `profile-name`: a profile name parsed from the folder, which the CLI resolves
12
- * under its own root. null: the provider carries no named accounts.
10
+ * The variable Squawk sets to the account folder so the CLI opens that login. null: the provider
11
+ * carries no named accounts.
13
12
  */
14
- readonly select: {
15
- readonly envVar: string;
16
- readonly by: 'folder' | 'profile-name';
17
- } | null;
18
- /** Where the agent keeps its config inside a named account folder; null: the folder itself. */
19
- readonly configSubdir: string | null;
13
+ readonly envVar: string | null;
20
14
  /**
21
15
  * Whether a worker binding of the default account pins its discovered home. false: the default
22
- * spawns bare and follows the host env, as it did before pi and omp carried accounts
23
- * (hearsay-tools/cezarion#1283). A machine where the agent never ran has no home to pin.
16
+ * spawns bare and follows the host env. A machine where the agent never ran has no home to pin.
24
17
  */
25
18
  readonly defaultBindsHome: boolean;
26
19
  /**
@@ -30,47 +23,18 @@ export interface AccountLayout {
30
23
  */
31
24
  readonly stateFile: 'in-home' | 'beside-home';
32
25
  }
33
- /**
34
- * Account relocation per provider. Host values define the default; named overrides apply last.
35
- * Refuse a named profile-name folder outside the current profile root.
36
- */
26
+ /** Account relocation per provider. Host values define the default; named overrides apply last. */
37
27
  export declare const ACCOUNT_LAYOUT: Readonly<Record<ProviderId, AccountLayout>>;
38
28
  /** The variable that selects a named account per provider; null means named accounts are unsupported. */
39
29
  export declare const PROFILE_ENV_VAR: Readonly<Record<ProviderId, string | null>>;
40
- /**
41
- * Whether a provider selects a named account by profile name rather than by folder. Takes a stored
42
- * value, which may name no provider this version knows; such a value answers false.
43
- */
44
- export declare function selectsByProfileName(provider: unknown): boolean;
45
30
  /** Providers that can carry more than one account — what the UI offers "Add account" for. */
46
31
  export declare const PROFILE_CAPABLE_PROVIDERS: readonly ProviderId[];
47
32
  export declare function supportsProfiles(provider: ProviderId): boolean;
48
33
  /**
49
- * Build a provider-specific account override, or an empty object for the discovered default. A
50
- * `profile-name` provider takes a profile name parsed from its folder. Never emit another
51
- * provider’s variable.
34
+ * Build a provider-specific account override, or an empty object for the discovered default.
35
+ * Never emit another provider’s variable.
52
36
  */
53
37
  export declare function profileEnv(provider: ProviderId, configDir: string | null | undefined): Record<string, string>;
54
- /**
55
- * The omp profile a folder names, or `null` when it names none.
56
- *
57
- * A folder names a profile when its parent is called `profiles` and its own name passes every rule
58
- * omp applies, so Squawk never hands omp a profile it would refuse at startup. `default` is refused
59
- * too: omp reads it as "no profile", so a named account under that name would be the default.
60
- *
61
- * Shape only — whether `profiles/` is the one under omp's CURRENT root needs the environment, and
62
- * `ompProfileDirError` (workspace) checks that. Both separators are accepted so a Windows folder
63
- * parses on any host.
64
- */
65
- export declare function ompProfileName(dir: string): string | null;
66
- /** Whether omp accepts `name` as a profile of its own; `default` is omp's "no profile". */
67
- export declare function isOmpProfileName(name: string): boolean;
68
- /**
69
- * Where the agent keeps its config inside an account folder: `configSubdir` of the folder, or the
70
- * folder itself. The discovered omp default is ALREADY an agent dir (`agentHomePaths().omp`), so
71
- * callers apply this to named accounts only.
72
- */
73
- export declare function profileAgentDir(provider: ProviderId, dir: string): string;
74
38
  /**
75
39
  * Does `entries` look like a config dir this provider actually wrote?
76
40
  *