@hearsay-tools/squawk 0.19.0-dev.9113 → 0.19.0-dev.9128

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 (114) hide show
  1. package/dist/ci-wait/errors.js +1 -1
  2. package/dist/ci-wait/errors.js.map +1 -1
  3. package/dist/{delegation/input.js → core/agent-input-queue.js} +2 -2
  4. package/dist/core/agent-input-queue.js.map +1 -0
  5. package/dist/core/agent-runner.d.ts +1 -1
  6. package/dist/core/delegation-error.d.ts +13 -0
  7. package/dist/core/delegation-error.js +18 -0
  8. package/dist/core/delegation-error.js.map +1 -0
  9. package/dist/core/retry-backoff.js.map +1 -0
  10. package/dist/core/session-process.d.ts +1 -1
  11. package/dist/core/spawn-scope.d.ts +10 -0
  12. package/dist/core/spawn-scope.js +2 -0
  13. package/dist/core/spawn-scope.js.map +1 -0
  14. package/dist/delegation/cli.js +1 -1
  15. package/dist/delegation/cli.js.map +1 -1
  16. package/dist/delegation/context.d.ts +1 -1
  17. package/dist/delegation/context.js +1 -1
  18. package/dist/delegation/context.js.map +1 -1
  19. package/dist/delegation/conversation-send.js +1 -1
  20. package/dist/delegation/conversation-send.js.map +1 -1
  21. package/dist/delegation/conversations.js +1 -1
  22. package/dist/delegation/conversations.js.map +1 -1
  23. package/dist/delegation/effort.js +1 -1
  24. package/dist/delegation/effort.js.map +1 -1
  25. package/dist/delegation/execution-settings.js +1 -1
  26. package/dist/delegation/execution-settings.js.map +1 -1
  27. package/dist/delegation/policy.d.ts +1 -12
  28. package/dist/delegation/policy.js +1 -16
  29. package/dist/delegation/policy.js.map +1 -1
  30. package/dist/delegation/routes.d.ts +93 -93
  31. package/dist/delegation/routes.js +1 -1
  32. package/dist/delegation/routes.js.map +1 -1
  33. package/dist/delegation/scratch-cleanup.js +1 -1
  34. package/dist/delegation/scratch-cleanup.js.map +1 -1
  35. package/dist/delegation/service.js +2 -1
  36. package/dist/delegation/service.js.map +1 -1
  37. package/dist/delegation/task-discovery.js +2 -1
  38. package/dist/delegation/task-discovery.js.map +1 -1
  39. package/dist/delegation/transport.d.ts +88 -88
  40. package/dist/delegation/wait-kinds.js +2 -1
  41. package/dist/delegation/wait-kinds.js.map +1 -1
  42. package/dist/delegation/worker-cleanup.d.ts +1 -1
  43. package/dist/delegation/worker-cleanup.js +2 -2
  44. package/dist/delegation/worker-cleanup.js.map +1 -1
  45. package/dist/delegation/worker-executions.d.ts +2 -1
  46. package/dist/delegation/worker-executions.js.map +1 -1
  47. package/dist/delegation/workspace-kinds.js +1 -1
  48. package/dist/delegation/workspace-kinds.js.map +1 -1
  49. package/dist/delegation/workspace.js +1 -1
  50. package/dist/delegation/workspace.js.map +1 -1
  51. package/dist/features/automations/automations-routes.d.ts +150 -150
  52. package/dist/features/reports/routes.d.ts +2 -2
  53. package/dist/plugin/runner-kit.d.ts +1 -1
  54. package/dist/preview/dev-server.d.ts +1 -1
  55. package/dist/preview/host.d.ts +1 -1
  56. package/dist/runs/run-archive.d.ts +72 -72
  57. package/dist/server/live-routes.d.ts +6 -6
  58. package/dist/server/models-routes.d.ts +12 -12
  59. package/dist/server/project-run-files.js +1 -1
  60. package/dist/server/project-run-files.js.map +1 -1
  61. package/dist/server/providers-routes.d.ts +58 -58
  62. package/dist/server/repo-routes.d.ts +52 -52
  63. package/dist/server/runners-routes.d.ts +10 -10
  64. package/dist/server/runs-routes.d.ts +666 -666
  65. package/dist/server/workspace-live-routes.d.ts +11 -11
  66. package/dist/server/workspace-routes.d.ts +85 -85
  67. package/dist/worker-scope/scope.d.ts +0 -10
  68. package/dist/worker-scope/worker-scopes.d.ts +2 -1
  69. package/dist/worker-scope/worker-scopes.js.map +1 -1
  70. package/dist/workflows/continuation-admission.d.ts +72 -72
  71. package/dist/workflows/grouped-command.d.ts +1 -1
  72. package/dist/workflows/run/auto-resume.js +1 -1
  73. package/dist/workflows/run/auto-resume.js.map +1 -1
  74. package/dist/workflows/run/inbox-claims.js +1 -1
  75. package/dist/workflows/run/inbox-claims.js.map +1 -1
  76. package/dist/workflows/run/input-batch.js +1 -1
  77. package/dist/workflows/run/input-batch.js.map +1 -1
  78. package/dist/workflows/run/input-delivery.js +2 -2
  79. package/dist/workflows/run/input-delivery.js.map +1 -1
  80. package/dist/workflows/run/launch-read-resolver.js +1 -1
  81. package/dist/workflows/run/launch-read-resolver.js.map +1 -1
  82. package/dist/workflows/run/resolved-wait-input-batch.js +1 -1
  83. package/dist/workflows/run/resolved-wait-input-batch.js.map +1 -1
  84. package/dist/workflows/run/run-cancel.js +1 -1
  85. package/dist/workflows/run/run-cancel.js.map +1 -1
  86. package/dist/workflows/run/run-recovery.js +1 -1
  87. package/dist/workflows/run/run-recovery.js.map +1 -1
  88. package/dist/workflows/run/run-start.js +1 -1
  89. package/dist/workflows/run/run-start.js.map +1 -1
  90. package/dist/workflows/run/turn-nudges.js +1 -1
  91. package/dist/workflows/run/turn-nudges.js.map +1 -1
  92. package/dist/workflows/run/wait-engine.d.ts +72 -72
  93. package/dist/workflows/run/wake-admission.js +1 -1
  94. package/dist/workflows/run/wake-admission.js.map +1 -1
  95. package/dist/workflows/run/wake-ledger.js +1 -1
  96. package/dist/workflows/run/wake-ledger.js.map +1 -1
  97. package/dist/workflows/run/wake-retries.d.ts +1 -1
  98. package/dist/workflows/run/wake-retries.js +1 -1
  99. package/dist/workflows/run/wake-retries.js.map +1 -1
  100. package/dist/workflows/run/worker-orphans.d.ts +1 -1
  101. package/dist/workflows/run/worker-orphans.js +1 -1
  102. package/dist/workflows/run/worker-orphans.js.map +1 -1
  103. package/dist/workflows/run/worker-questions.js +1 -1
  104. package/dist/workflows/run/worker-questions.js.map +1 -1
  105. package/dist/workflows/wait-scope.d.ts +1 -1
  106. package/dist/workflows/wait-scope.js +2 -2
  107. package/dist/workflows/wait-scope.js.map +1 -1
  108. package/dist/worktree-setup.d.ts +1 -1
  109. package/package.json +4 -4
  110. package/dist/delegation/input.js.map +0 -1
  111. package/dist/delegation/retry-backoff.js.map +0 -1
  112. /package/dist/{delegation/input.d.ts → core/agent-input-queue.d.ts} +0 -0
  113. /package/dist/{delegation → core}/retry-backoff.d.ts +0 -0
  114. /package/dist/{delegation → core}/retry-backoff.js +0 -0
@@ -233,30 +233,6 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
233
233
  deadline: string;
234
234
  seconds: number;
235
235
  note?: string | undefined;
236
- } | {
237
- id: string;
238
- source: "agent" | "cezar";
239
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
240
- registeredAt: string;
241
- phase: "cancelled" | "delivered" | "open" | "resolved";
242
- resolvedAt?: string | undefined;
243
- deliveredAt?: string | undefined;
244
- cancelledAt?: string | undefined;
245
- turnId: string;
246
- kind: "process";
247
- deadline: string;
248
- timeoutSeconds: number;
249
- pid: number;
250
- startToken?: string | undefined;
251
- exitFile?: string | undefined;
252
- note?: string | undefined;
253
- result?: {
254
- outcome: "deadline" | "error" | "exit_file" | "exited";
255
- observedAt: string;
256
- exitCode?: number | undefined;
257
- exitFileNote?: "not-an-exit-code" | undefined;
258
- diagnostic?: string | undefined;
259
- } | undefined;
260
236
  } | {
261
237
  id: string;
262
238
  source: "agent" | "cezar";
@@ -318,6 +294,30 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
318
294
  reason: "outcome" | "timeout";
319
295
  } | undefined;
320
296
  wakeInputId?: string | undefined;
297
+ } | {
298
+ id: string;
299
+ source: "agent" | "cezar";
300
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
301
+ registeredAt: string;
302
+ phase: "cancelled" | "delivered" | "open" | "resolved";
303
+ resolvedAt?: string | undefined;
304
+ deliveredAt?: string | undefined;
305
+ cancelledAt?: string | undefined;
306
+ turnId: string;
307
+ kind: "process";
308
+ deadline: string;
309
+ timeoutSeconds: number;
310
+ pid: number;
311
+ startToken?: string | undefined;
312
+ exitFile?: string | undefined;
313
+ note?: string | undefined;
314
+ result?: {
315
+ outcome: "deadline" | "error" | "exit_file" | "exited";
316
+ observedAt: string;
317
+ exitCode?: number | undefined;
318
+ exitFileNote?: "not-an-exit-code" | undefined;
319
+ diagnostic?: string | undefined;
320
+ } | undefined;
321
321
  } | {
322
322
  id: string;
323
323
  source: "agent" | "cezar";
@@ -446,30 +446,6 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
446
446
  deadline: string;
447
447
  seconds: number;
448
448
  note?: string | undefined;
449
- } | {
450
- id: string;
451
- source: "agent" | "cezar";
452
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
453
- registeredAt: string;
454
- phase: "cancelled" | "delivered" | "open" | "resolved";
455
- resolvedAt?: string | undefined;
456
- deliveredAt?: string | undefined;
457
- cancelledAt?: string | undefined;
458
- turnId: string;
459
- kind: "process";
460
- deadline: string;
461
- timeoutSeconds: number;
462
- pid: number;
463
- startToken?: string | undefined;
464
- exitFile?: string | undefined;
465
- note?: string | undefined;
466
- result?: {
467
- outcome: "deadline" | "error" | "exit_file" | "exited";
468
- observedAt: string;
469
- exitCode?: number | undefined;
470
- exitFileNote?: "not-an-exit-code" | undefined;
471
- diagnostic?: string | undefined;
472
- } | undefined;
473
449
  } | {
474
450
  id: string;
475
451
  source: "agent" | "cezar";
@@ -531,6 +507,30 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
531
507
  reason: "outcome" | "timeout";
532
508
  } | undefined;
533
509
  wakeInputId?: string | undefined;
510
+ } | {
511
+ id: string;
512
+ source: "agent" | "cezar";
513
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
514
+ registeredAt: string;
515
+ phase: "cancelled" | "delivered" | "open" | "resolved";
516
+ resolvedAt?: string | undefined;
517
+ deliveredAt?: string | undefined;
518
+ cancelledAt?: string | undefined;
519
+ turnId: string;
520
+ kind: "process";
521
+ deadline: string;
522
+ timeoutSeconds: number;
523
+ pid: number;
524
+ startToken?: string | undefined;
525
+ exitFile?: string | undefined;
526
+ note?: string | undefined;
527
+ result?: {
528
+ outcome: "deadline" | "error" | "exit_file" | "exited";
529
+ observedAt: string;
530
+ exitCode?: number | undefined;
531
+ exitFileNote?: "not-an-exit-code" | undefined;
532
+ diagnostic?: string | undefined;
533
+ } | undefined;
534
534
  } | {
535
535
  id: string;
536
536
  source: "agent" | "cezar";
@@ -658,30 +658,6 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
658
658
  deadline: string;
659
659
  seconds: number;
660
660
  note?: string | undefined;
661
- } | {
662
- id: string;
663
- source: "agent" | "cezar";
664
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
665
- registeredAt: string;
666
- phase: "cancelled" | "delivered" | "open" | "resolved";
667
- resolvedAt?: string | undefined;
668
- deliveredAt?: string | undefined;
669
- cancelledAt?: string | undefined;
670
- turnId: string;
671
- kind: "process";
672
- deadline: string;
673
- timeoutSeconds: number;
674
- pid: number;
675
- startToken?: string | undefined;
676
- exitFile?: string | undefined;
677
- note?: string | undefined;
678
- result?: {
679
- outcome: "deadline" | "error" | "exit_file" | "exited";
680
- observedAt: string;
681
- exitCode?: number | undefined;
682
- exitFileNote?: "not-an-exit-code" | undefined;
683
- diagnostic?: string | undefined;
684
- } | undefined;
685
661
  } | {
686
662
  id: string;
687
663
  source: "agent" | "cezar";
@@ -743,6 +719,30 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
743
719
  reason: "outcome" | "timeout";
744
720
  } | undefined;
745
721
  wakeInputId?: string | undefined;
722
+ } | {
723
+ id: string;
724
+ source: "agent" | "cezar";
725
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
726
+ registeredAt: string;
727
+ phase: "cancelled" | "delivered" | "open" | "resolved";
728
+ resolvedAt?: string | undefined;
729
+ deliveredAt?: string | undefined;
730
+ cancelledAt?: string | undefined;
731
+ turnId: string;
732
+ kind: "process";
733
+ deadline: string;
734
+ timeoutSeconds: number;
735
+ pid: number;
736
+ startToken?: string | undefined;
737
+ exitFile?: string | undefined;
738
+ note?: string | undefined;
739
+ result?: {
740
+ outcome: "deadline" | "error" | "exit_file" | "exited";
741
+ observedAt: string;
742
+ exitCode?: number | undefined;
743
+ exitFileNote?: "not-an-exit-code" | undefined;
744
+ diagnostic?: string | undefined;
745
+ } | undefined;
746
746
  } | {
747
747
  id: string;
748
748
  source: "agent" | "cezar";
@@ -17,6 +17,12 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
17
17
  output: {
18
18
  generation: string;
19
19
  results: ({
20
+ projectId: string;
21
+ runId: string;
22
+ type: "error" | "reset";
23
+ status: 400 | 404 | 409 | 413 | 503;
24
+ error: string;
25
+ } | {
20
26
  projectId: string;
21
27
  runId: string;
22
28
  type: "batch";
@@ -37,12 +43,6 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
37
43
  cursor: string;
38
44
  afterSeq: number;
39
45
  hasMore: boolean;
40
- } | {
41
- projectId: string;
42
- runId: string;
43
- type: "error" | "reset";
44
- status: 400 | 404 | 409 | 413 | 503;
45
- error: string;
46
46
  })[];
47
47
  };
48
48
  outputFormat: "json";
@@ -22,6 +22,18 @@ export declare function createModelsRoutes(options: {
22
22
  profileId?: string | undefined;
23
23
  };
24
24
  };
25
+ } | {
26
+ output: {
27
+ error: string;
28
+ };
29
+ outputFormat: "json";
30
+ status: 400;
31
+ input: {
32
+ query: {
33
+ runner: string | string[];
34
+ profileId?: string | undefined;
35
+ };
36
+ };
25
37
  } | {
26
38
  output: {
27
39
  runner: string;
@@ -43,18 +55,6 @@ export declare function createModelsRoutes(options: {
43
55
  profileId?: string | undefined;
44
56
  };
45
57
  };
46
- } | {
47
- output: {
48
- error: string;
49
- };
50
- outputFormat: "json";
51
- status: 400;
52
- input: {
53
- query: {
54
- runner: string | string[];
55
- profileId?: string | undefined;
56
- };
57
- };
58
58
  };
59
59
  };
60
60
  }, "/", "/models">;
@@ -1,7 +1,7 @@
1
1
  import { artifactDirectory } from '../task-files/artifact-kind.js';
2
2
  import { matchedRoutes } from 'hono/route';
3
3
  import { delegationFailure } from '../delegation/routes.js';
4
- import { DelegationPolicyError } from '../delegation/policy.js';
4
+ import { DelegationPolicyError } from '../core/delegation-error.js';
5
5
  /** Logical deletion cannot expose a fallback copy. Legacy-only resource cleanup remains allowed. */
6
6
  export function protectFallbackRun(kind) {
7
7
  return async (context, next) => {
@@ -1 +1 @@
1
- {"version":3,"file":"project-run-files.js","sourceRoot":"","sources":["../../src/server/project-run-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAInE,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,oGAAoG;AACpG,MAAM,UAAU,kBAAkB,CAAC,IAA2B;IAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QAC7B,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,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,KAAK,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;QAAE,OAAO,IAAI,EAAE,CAAC;IAC1J,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC;IAC3C,IAAI,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,KAAK,UAAU;QAAE,OAAO,IAAI,EAAE,CAAC;IAChE,IAAI,CAAC;QAAC,KAAK,CAAC,MAAM,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC;IAC7C,OAAO,KAAK,EAAE,CAAC;QACb,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvE,2FAA2F;QAC3F,IAAI,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC;YAAE,OAAO,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,qBAAqB,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QACjJ,OAAO,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,GAAG,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO,IAAI,EAAE,CAAC;AAChB,CAAC,CAAC;AAEF,wFAAwF;AACxF,MAAM,UAAU,oBAAoB,CAAC,KAA4D,EAAE,KAAa;IAC9G,OAAO,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC;AACrE,CAAC"}
@@ -70,18 +70,10 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
70
70
  };
71
71
  } | {
72
72
  output: {
73
- providers: {
74
- requiresAccountHome?: boolean | undefined;
75
- provider: string;
76
- status: "connected" | "disconnected" | "not-installed" | "unknown";
77
- enabled?: boolean | undefined;
78
- hint?: string | undefined;
79
- authFailureId?: string | undefined;
80
- profileId?: string | undefined;
81
- }[];
73
+ error: string;
82
74
  };
83
75
  outputFormat: "json";
84
- status: import("hono/utils/http-status").ContentfulStatusCode;
76
+ status: 500;
85
77
  input: {
86
78
  param: {
87
79
  provider: string;
@@ -93,10 +85,18 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
93
85
  };
94
86
  } | {
95
87
  output: {
96
- error: string;
88
+ providers: {
89
+ requiresAccountHome?: boolean | undefined;
90
+ provider: string;
91
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
92
+ enabled?: boolean | undefined;
93
+ hint?: string | undefined;
94
+ authFailureId?: string | undefined;
95
+ profileId?: string | undefined;
96
+ }[];
97
97
  };
98
98
  outputFormat: "json";
99
- status: 500;
99
+ status: import("hono/utils/http-status").ContentfulStatusCode;
100
100
  input: {
101
101
  param: {
102
102
  provider: string;
@@ -128,18 +128,10 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
128
128
  };
129
129
  } | {
130
130
  output: {
131
- providers: {
132
- requiresAccountHome?: boolean | undefined;
133
- provider: string;
134
- status: "connected" | "disconnected" | "not-installed" | "unknown";
135
- enabled?: boolean | undefined;
136
- hint?: string | undefined;
137
- authFailureId?: string | undefined;
138
- profileId?: string | undefined;
139
- }[];
131
+ error: string;
140
132
  };
141
133
  outputFormat: "json";
142
- status: import("hono/utils/http-status").ContentfulStatusCode;
134
+ status: 409;
143
135
  input: {
144
136
  param: {
145
137
  provider: string;
@@ -151,10 +143,18 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
151
143
  };
152
144
  } | {
153
145
  output: {
154
- error: string;
146
+ providers: {
147
+ requiresAccountHome?: boolean | undefined;
148
+ provider: string;
149
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
150
+ enabled?: boolean | undefined;
151
+ hint?: string | undefined;
152
+ authFailureId?: string | undefined;
153
+ profileId?: string | undefined;
154
+ }[];
155
155
  };
156
156
  outputFormat: "json";
157
- status: 409;
157
+ status: import("hono/utils/http-status").ContentfulStatusCode;
158
158
  input: {
159
159
  param: {
160
160
  provider: string;
@@ -173,7 +173,7 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
173
173
  error: string;
174
174
  };
175
175
  outputFormat: "json";
176
- status: 409;
176
+ status: 400;
177
177
  input: {
178
178
  json: {
179
179
  provider: string;
@@ -185,7 +185,7 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
185
185
  error: string;
186
186
  };
187
187
  outputFormat: "json";
188
- status: 400;
188
+ status: 409;
189
189
  input: {
190
190
  json: {
191
191
  provider: string;
@@ -290,10 +290,28 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
290
290
  "/workspace/agent-profiles": {
291
291
  $post: {
292
292
  output: {
293
- error: string;
293
+ profile: {
294
+ id: string;
295
+ provider: string;
296
+ label: string;
297
+ configDir?: string | undefined;
298
+ path?: string | undefined;
299
+ exists: boolean;
300
+ looksValid: boolean;
301
+ isDefault: boolean;
302
+ status?: {
303
+ requiresAccountHome?: boolean | undefined;
304
+ provider: string;
305
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
306
+ enabled?: boolean | undefined;
307
+ hint?: string | undefined;
308
+ authFailureId?: string | undefined;
309
+ profileId?: string | undefined;
310
+ } | undefined;
311
+ };
294
312
  };
295
313
  outputFormat: "json";
296
- status: 409;
314
+ status: 201;
297
315
  input: {
298
316
  json: {
299
317
  provider: string;
@@ -319,7 +337,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
319
337
  error: string;
320
338
  };
321
339
  outputFormat: "json";
322
- status: 500;
340
+ status: 409;
323
341
  input: {
324
342
  json: {
325
343
  provider: string;
@@ -329,28 +347,10 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
329
347
  };
330
348
  } | {
331
349
  output: {
332
- profile: {
333
- id: string;
334
- provider: string;
335
- label: string;
336
- configDir?: string | undefined;
337
- path?: string | undefined;
338
- exists: boolean;
339
- looksValid: boolean;
340
- isDefault: boolean;
341
- status?: {
342
- requiresAccountHome?: boolean | undefined;
343
- provider: string;
344
- status: "connected" | "disconnected" | "not-installed" | "unknown";
345
- enabled?: boolean | undefined;
346
- hint?: string | undefined;
347
- authFailureId?: string | undefined;
348
- profileId?: string | undefined;
349
- } | undefined;
350
- };
350
+ error: string;
351
351
  };
352
352
  outputFormat: "json";
353
- status: 201;
353
+ status: 500;
354
354
  input: {
355
355
  json: {
356
356
  provider: string;
@@ -384,7 +384,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
384
384
  error: string;
385
385
  };
386
386
  outputFormat: "json";
387
- status: 409;
387
+ status: 400;
388
388
  input: {
389
389
  param: {
390
390
  id: string;
@@ -400,7 +400,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
400
400
  error: string;
401
401
  };
402
402
  outputFormat: "json";
403
- status: 400;
403
+ status: 404;
404
404
  input: {
405
405
  param: {
406
406
  id: string;
@@ -416,7 +416,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
416
416
  error: string;
417
417
  };
418
418
  outputFormat: "json";
419
- status: 404;
419
+ status: 409;
420
420
  input: {
421
421
  param: {
422
422
  id: string;
@@ -542,10 +542,9 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
542
542
  $put: {
543
543
  output: {
544
544
  error: string;
545
- code: "no-boot-project";
546
545
  };
547
546
  outputFormat: "json";
548
- status: 409;
547
+ status: 400;
549
548
  input: {
550
549
  json: {
551
550
  projectId: string;
@@ -569,9 +568,10 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
569
568
  } | {
570
569
  output: {
571
570
  error: string;
571
+ code: "no-boot-project";
572
572
  };
573
573
  outputFormat: "json";
574
- status: 400;
574
+ status: 409;
575
575
  input: {
576
576
  json: {
577
577
  projectId: string;
@@ -635,7 +635,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
635
635
  error: string;
636
636
  };
637
637
  outputFormat: "json";
638
- status: 409;
638
+ status: 404;
639
639
  input: {
640
640
  param: {
641
641
  id: string;
@@ -646,7 +646,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
646
646
  error: string;
647
647
  };
648
648
  outputFormat: "json";
649
- status: 500;
649
+ status: 409;
650
650
  input: {
651
651
  param: {
652
652
  id: string;
@@ -657,7 +657,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
657
657
  error: string;
658
658
  };
659
659
  outputFormat: "json";
660
- status: 404;
660
+ status: 500;
661
661
  input: {
662
662
  param: {
663
663
  id: string;