@hearsay-tools/squawk 0.18.0-pr4338.8441 → 0.18.0-pr4339.8450
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/automations/tools.d.ts +8 -8
- package/dist/autosave-cleanup.js +2 -1
- package/dist/autosave-cleanup.js.map +1 -1
- package/dist/built-in-cli-commands.js +0 -4
- package/dist/built-in-cli-commands.js.map +1 -1
- package/dist/built-in-launch-parts.d.ts +0 -2
- package/dist/built-in-launch-parts.js +1 -8
- package/dist/built-in-launch-parts.js.map +1 -1
- package/dist/built-in-run-slots.js +1 -2
- package/dist/built-in-run-slots.js.map +1 -1
- package/dist/ci-wait/tool-catalog.d.ts +2 -1
- package/dist/ci-wait/tool-catalog.js +22 -16
- package/dist/ci-wait/tool-catalog.js.map +1 -1
- package/dist/core/cli-registry.d.ts +3 -0
- package/dist/core/cli-registry.js +3 -0
- package/dist/core/cli-registry.js.map +1 -1
- package/dist/core/process-ownership.d.ts +12 -0
- package/dist/core/process-ownership.js +33 -0
- package/dist/core/process-ownership.js.map +1 -0
- package/dist/delegation/process-liveness.d.ts +6 -3
- package/dist/delegation/process-liveness.js +0 -16
- package/dist/delegation/process-liveness.js.map +1 -1
- package/dist/delegation/scratch-cleanup.js +5 -5
- package/dist/delegation/scratch-cleanup.js.map +1 -1
- package/dist/delegation/transport.d.ts +10 -10
- package/dist/{jobs → features/jobs}/cli.js +1 -1
- package/dist/features/jobs/cli.js.map +1 -0
- package/dist/{jobs → features/jobs}/command.js +2 -2
- package/dist/features/jobs/command.js.map +1 -0
- package/dist/features/jobs/index.d.ts +11 -0
- package/dist/features/jobs/index.js +20 -0
- package/dist/features/jobs/index.js.map +1 -0
- package/dist/{jobs → features/jobs}/job.js +9 -10
- package/dist/features/jobs/job.js.map +1 -0
- package/dist/features/jobs/removal-slot.d.ts +14 -0
- package/dist/features/jobs/removal-slot.js +50 -0
- package/dist/features/jobs/removal-slot.js.map +1 -0
- package/dist/legacy-runs.js.map +1 -1
- package/dist/pack-check.d.ts +4 -1
- package/dist/pack-check.js +9 -1
- package/dist/pack-check.js.map +1 -1
- package/dist/plugin/index.d.ts +1 -1
- package/dist/runners/claude/claude-cli-runner.d.ts +2 -0
- package/dist/runners/claude/claude-cli-runner.js +6 -1
- package/dist/runners/claude/claude-cli-runner.js.map +1 -1
- package/dist/runners/claude/claude-partial-messages.d.ts +32 -0
- package/dist/runners/claude/claude-partial-messages.js +129 -0
- package/dist/runners/claude/claude-partial-messages.js.map +1 -0
- package/dist/runners/claude/claude-stream.d.ts +1 -0
- package/dist/runners/claude/claude-stream.js +32 -1
- package/dist/runners/claude/claude-stream.js.map +1 -1
- package/dist/runners/claude/claude-ui-mapper.d.ts +2 -1
- package/dist/runners/claude/claude-ui-mapper.js +14 -2
- package/dist/runners/claude/claude-ui-mapper.js.map +1 -1
- package/dist/runs/agent-tmpdir.d.ts +5 -4
- package/dist/runs/agent-tmpdir.js +7 -5
- package/dist/runs/agent-tmpdir.js.map +1 -1
- package/dist/runs/removal-slots.d.ts +15 -3
- package/dist/runs/removal-slots.js +12 -2
- package/dist/runs/removal-slots.js.map +1 -1
- package/dist/runs/run-exits.d.ts +352 -352
- package/dist/runs/worker-execution.js.map +1 -1
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/models-routes.d.ts +12 -12
- package/dist/server/providers-routes.d.ts +57 -57
- package/dist/server/repo-routes.d.ts +34 -34
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/server.d.ts +126 -126
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/server/workspace-routes.d.ts +84 -84
- package/dist/worker-scope/groups.d.ts +0 -9
- package/dist/worker-scope/groups.js +3 -18
- package/dist/worker-scope/groups.js.map +1 -1
- package/dist/workflows/input-acknowledgement.d.ts +24 -24
- package/dist/workflows/run/run-settlement.d.ts +0 -10
- package/dist/workflows/run/run-settlement.js +5 -38
- package/dist/workflows/run/run-settlement.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +72 -72
- package/dist/workflows/run/wait-input-descriptors.js +11 -2
- package/dist/workflows/run/wait-input-descriptors.js.map +1 -1
- package/dist/workflows/run/wait-kinds.d.ts +52 -52
- package/package.json +4 -4
- package/scripts/check-pack.mjs +5 -2
- package/web/dist/assets/{accounts-section-DN0FBK_g.js → accounts-section-COnLhVcc.js} +1 -1
- package/web/dist/assets/{activity-motion-f8hpl5Ze.js → activity-motion-BepAhXl7.js} +1 -1
- package/web/dist/assets/{activity-route-Wg282MWR.js → activity-route-BAGYVlk1.js} +1 -1
- package/web/dist/assets/{agent-config-section-DYBoyQjx.js → agent-config-section-D3eY8kW2.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-DvKhfLah.js → agent-defaults-section-BxIztnP5.js} +1 -1
- package/web/dist/assets/{appearance-bxy5kq6O.js → appearance-Bbmz3RPP.js} +1 -1
- package/web/dist/assets/{automations-route-CfkpBhz1.js → automations-route-vO4VXsmB.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-Gb9038QD.js → commit-diff-panel-CR9lCdYd.js} +1 -1
- package/web/dist/assets/{diff-f_-bSIKM.js → diff-BUihlcHW.js} +2 -2
- package/web/dist/assets/{diff-view-X6OteUc2.js → diff-view-Dy1iZUpI.js} +1 -1
- package/web/dist/assets/{file-preview-badfok9-.js → file-preview-Cq_WJ308.js} +1 -1
- package/web/dist/assets/{git-toolbar-DN0_Mq8X.js → git-toolbar-CUQ8veXw.js} +1 -1
- package/web/dist/assets/{github-CkzNHNBP.js → github-ClGhwLM1.js} +1 -1
- package/web/dist/assets/{global-activity-route-DD15s5cC.js → global-activity-route-DzdSy7Wm.js} +1 -1
- package/web/dist/assets/{index-Dedol522.js → index-8Pe4JlYM.js} +4 -4
- package/web/dist/assets/{markdown-C4Vx2p8H.js → markdown-DvutydYG.js} +1 -1
- package/web/dist/assets/{notifications-section-B-dnPl16.js → notifications-section-BAqEIyDN.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-wlT7my-5.js → preview-pane-connected-BU0pxY0y.js} +1 -1
- package/web/dist/assets/{projects-section-Cmk9b5sT.js → projects-section-DbCjlMOl.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-BKieLK_2.js → prompt-templates-section-BsAYf057.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-CX1Fz0Rm.js → remote-settings-notice-Buq1mILf.js} +1 -1
- package/web/dist/assets/{repo-git-DPYA8VnX.js → repo-git-P8s3o1t9.js} +1 -1
- package/web/dist/assets/{report-reader-BYc3i5OQ.js → report-reader-BGHRGd46.js} +1 -1
- package/web/dist/assets/{reports-DtAmI1Ei.js → reports-D-IUJk8n.js} +1 -1
- package/web/dist/assets/{resources-section-Dje_gDYP.js → resources-section-CIF3uOPg.js} +1 -1
- package/web/dist/assets/{run-header-3nM40dop.js → run-header-x8ZoTs8l.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-BxH3NSsW.js → settings-agent-picker-D7x87Fza.js} +1 -1
- package/web/dist/assets/{settings-shell-UvqivQaP.js → settings-shell-CdsAJa6b.js} +1 -1
- package/web/dist/assets/{sidebar-section-BQ3vF2oy.js → sidebar-section-2j1dPZW-.js} +1 -1
- package/web/dist/assets/{skills-Dh0FFNiL.js → skills-BZQKuRIK.js} +1 -1
- package/web/dist/assets/{task-changes-DIGOC-vV.js → task-changes-CMCstWbh.js} +1 -1
- package/web/dist/assets/{task-commits-BI8NVi-K.js → task-commits-De5jDVRc.js} +1 -1
- package/web/dist/assets/{task-files-DS7fsOMA.js → task-files-BTaS-k-o.js} +1 -1
- package/web/dist/assets/{task-github-item-BBWTgTX0.js → task-github-item-Da-J1yOO.js} +1 -1
- package/web/dist/assets/{task-thread-CGszK8tw.js → task-thread-A2rldNuS.js} +1 -1
- package/web/dist/assets/{thread-state-BpGQxoQF.js → thread-state-q7EKE8NY.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-Bs7tQKKt.js → use-hand-to-agent-state-V15iu0Vf.js} +1 -1
- package/web/dist/assets/{workflows-CUMw82nv.js → workflows-BWde25JO.js} +1 -1
- package/web/dist/assets/{workspace-tools-DKpPyGmZ.js → workspace-tools-BSJXB55E.js} +1 -1
- package/web/dist/assets/{worktrees-section-D-Ga83TD.js → worktrees-section-DWfvhcFw.js} +1 -1
- package/web/dist/index.html +1 -1
- package/dist/jobs/cli.js.map +0 -1
- package/dist/jobs/command.js.map +0 -1
- package/dist/jobs/job.js.map +0 -1
- package/dist/jobs/removal-slot.d.ts +0 -4
- package/dist/jobs/removal-slot.js +0 -10
- package/dist/jobs/removal-slot.js.map +0 -1
- /package/dist/{jobs → features/jobs}/cli.d.ts +0 -0
- /package/dist/{jobs → features/jobs}/command.d.ts +0 -0
- /package/dist/{jobs → features/jobs}/job.d.ts +0 -0
package/dist/server/server.d.ts
CHANGED
|
@@ -3062,12 +3062,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3062
3062
|
output: {
|
|
3063
3063
|
generation: string;
|
|
3064
3064
|
results: ({
|
|
3065
|
-
projectId: string;
|
|
3066
|
-
runId: string;
|
|
3067
|
-
type: "error" | "reset";
|
|
3068
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
3069
|
-
error: string;
|
|
3070
|
-
} | {
|
|
3071
3065
|
projectId: string;
|
|
3072
3066
|
runId: string;
|
|
3073
3067
|
type: "batch";
|
|
@@ -3088,6 +3082,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3088
3082
|
cursor: string;
|
|
3089
3083
|
afterSeq: number;
|
|
3090
3084
|
hasMore: boolean;
|
|
3085
|
+
} | {
|
|
3086
|
+
projectId: string;
|
|
3087
|
+
runId: string;
|
|
3088
|
+
type: "error" | "reset";
|
|
3089
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
3090
|
+
error: string;
|
|
3091
3091
|
})[];
|
|
3092
3092
|
};
|
|
3093
3093
|
outputFormat: "json";
|
|
@@ -4616,19 +4616,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4616
4616
|
} & {
|
|
4617
4617
|
"/repo/commit/:sha": {
|
|
4618
4618
|
$get: {
|
|
4619
|
-
output: string;
|
|
4620
|
-
outputFormat: "text";
|
|
4621
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4622
|
-
input: {
|
|
4623
|
-
query: {
|
|
4624
|
-
structured?: string | undefined;
|
|
4625
|
-
};
|
|
4626
|
-
} & {
|
|
4627
|
-
param: {
|
|
4628
|
-
sha: string;
|
|
4629
|
-
};
|
|
4630
|
-
};
|
|
4631
|
-
} | {
|
|
4632
4619
|
output: {
|
|
4633
4620
|
error: string;
|
|
4634
4621
|
code?: "invalid_input" | undefined;
|
|
@@ -4692,6 +4679,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4692
4679
|
sha: string;
|
|
4693
4680
|
};
|
|
4694
4681
|
};
|
|
4682
|
+
} | {
|
|
4683
|
+
output: string;
|
|
4684
|
+
outputFormat: "text";
|
|
4685
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4686
|
+
input: {
|
|
4687
|
+
query: {
|
|
4688
|
+
structured?: string | undefined;
|
|
4689
|
+
};
|
|
4690
|
+
} & {
|
|
4691
|
+
param: {
|
|
4692
|
+
sha: string;
|
|
4693
|
+
};
|
|
4694
|
+
};
|
|
4695
4695
|
};
|
|
4696
4696
|
};
|
|
4697
4697
|
} & {
|
|
@@ -8596,6 +8596,37 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8596
8596
|
} & {
|
|
8597
8597
|
"/runs/:id/worker-destroy": {
|
|
8598
8598
|
$post: {
|
|
8599
|
+
output: {
|
|
8600
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
8601
|
+
readonly error: string;
|
|
8602
|
+
readonly modelChoices?: {
|
|
8603
|
+
runner: string;
|
|
8604
|
+
requestedModel: string;
|
|
8605
|
+
availableModels: {
|
|
8606
|
+
id: string;
|
|
8607
|
+
label: string;
|
|
8608
|
+
description: string;
|
|
8609
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8610
|
+
}[];
|
|
8611
|
+
otherRunners: string[];
|
|
8612
|
+
} | undefined;
|
|
8613
|
+
};
|
|
8614
|
+
outputFormat: "json";
|
|
8615
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
8616
|
+
input: {
|
|
8617
|
+
query: {
|
|
8618
|
+
[x: string]: string | string[];
|
|
8619
|
+
};
|
|
8620
|
+
} & {
|
|
8621
|
+
param: {
|
|
8622
|
+
id: string;
|
|
8623
|
+
};
|
|
8624
|
+
} & {
|
|
8625
|
+
json: {
|
|
8626
|
+
discardWork?: true | undefined;
|
|
8627
|
+
};
|
|
8628
|
+
};
|
|
8629
|
+
} | {
|
|
8599
8630
|
output: {
|
|
8600
8631
|
error: string;
|
|
8601
8632
|
code?: "invalid_input" | undefined;
|
|
@@ -8681,37 +8712,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8681
8712
|
discardWork?: true | undefined;
|
|
8682
8713
|
};
|
|
8683
8714
|
};
|
|
8684
|
-
} | {
|
|
8685
|
-
output: {
|
|
8686
|
-
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
8687
|
-
readonly error: string;
|
|
8688
|
-
readonly modelChoices?: {
|
|
8689
|
-
runner: string;
|
|
8690
|
-
requestedModel: string;
|
|
8691
|
-
availableModels: {
|
|
8692
|
-
id: string;
|
|
8693
|
-
label: string;
|
|
8694
|
-
description: string;
|
|
8695
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8696
|
-
}[];
|
|
8697
|
-
otherRunners: string[];
|
|
8698
|
-
} | undefined;
|
|
8699
|
-
};
|
|
8700
|
-
outputFormat: "json";
|
|
8701
|
-
status: 400 | 401 | 403 | 409 | 503;
|
|
8702
|
-
input: {
|
|
8703
|
-
query: {
|
|
8704
|
-
[x: string]: string | string[];
|
|
8705
|
-
};
|
|
8706
|
-
} & {
|
|
8707
|
-
param: {
|
|
8708
|
-
id: string;
|
|
8709
|
-
};
|
|
8710
|
-
} & {
|
|
8711
|
-
json: {
|
|
8712
|
-
discardWork?: true | undefined;
|
|
8713
|
-
};
|
|
8714
|
-
};
|
|
8715
8715
|
};
|
|
8716
8716
|
};
|
|
8717
8717
|
} & {
|
|
@@ -19159,20 +19159,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19159
19159
|
} & {
|
|
19160
19160
|
"/runs/:id/handoff": {
|
|
19161
19161
|
$get: {
|
|
19162
|
-
output:
|
|
19163
|
-
|
|
19164
|
-
|
|
19162
|
+
output: {
|
|
19163
|
+
error: string;
|
|
19164
|
+
};
|
|
19165
|
+
outputFormat: "json";
|
|
19166
|
+
status: 404;
|
|
19165
19167
|
input: {
|
|
19166
19168
|
param: {
|
|
19167
19169
|
id: string;
|
|
19168
19170
|
};
|
|
19169
19171
|
};
|
|
19170
19172
|
} | {
|
|
19171
|
-
output:
|
|
19172
|
-
|
|
19173
|
-
|
|
19174
|
-
outputFormat: "json";
|
|
19175
|
-
status: 404;
|
|
19173
|
+
output: string;
|
|
19174
|
+
outputFormat: "text";
|
|
19175
|
+
status: 200;
|
|
19176
19176
|
input: {
|
|
19177
19177
|
param: {
|
|
19178
19178
|
id: string;
|
|
@@ -19210,20 +19210,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
19210
19210
|
} & {
|
|
19211
19211
|
"/runs/:id/diff": {
|
|
19212
19212
|
$get: {
|
|
19213
|
-
output:
|
|
19214
|
-
|
|
19215
|
-
|
|
19213
|
+
output: {
|
|
19214
|
+
error: string;
|
|
19215
|
+
};
|
|
19216
|
+
outputFormat: "json";
|
|
19217
|
+
status: 404 | 409;
|
|
19216
19218
|
input: {
|
|
19217
19219
|
param: {
|
|
19218
19220
|
id: string;
|
|
19219
19221
|
};
|
|
19220
19222
|
};
|
|
19221
19223
|
} | {
|
|
19222
|
-
output:
|
|
19223
|
-
|
|
19224
|
-
|
|
19225
|
-
outputFormat: "json";
|
|
19226
|
-
status: 404 | 409;
|
|
19224
|
+
output: string;
|
|
19225
|
+
outputFormat: "text";
|
|
19226
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19227
19227
|
input: {
|
|
19228
19228
|
param: {
|
|
19229
19229
|
id: string;
|
|
@@ -21257,19 +21257,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
21257
21257
|
} & {
|
|
21258
21258
|
"/repo/commit/:sha": {
|
|
21259
21259
|
$get: {
|
|
21260
|
-
output: string;
|
|
21261
|
-
outputFormat: "text";
|
|
21262
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
21263
|
-
input: {
|
|
21264
|
-
query: {
|
|
21265
|
-
structured?: string | undefined;
|
|
21266
|
-
};
|
|
21267
|
-
} & {
|
|
21268
|
-
param: {
|
|
21269
|
-
sha: string;
|
|
21270
|
-
};
|
|
21271
|
-
};
|
|
21272
|
-
} | {
|
|
21273
21260
|
output: {
|
|
21274
21261
|
error: string;
|
|
21275
21262
|
code?: "invalid_input" | undefined;
|
|
@@ -21333,6 +21320,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
21333
21320
|
sha: string;
|
|
21334
21321
|
};
|
|
21335
21322
|
};
|
|
21323
|
+
} | {
|
|
21324
|
+
output: string;
|
|
21325
|
+
outputFormat: "text";
|
|
21326
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
21327
|
+
input: {
|
|
21328
|
+
query: {
|
|
21329
|
+
structured?: string | undefined;
|
|
21330
|
+
};
|
|
21331
|
+
} & {
|
|
21332
|
+
param: {
|
|
21333
|
+
sha: string;
|
|
21334
|
+
};
|
|
21335
|
+
};
|
|
21336
21336
|
};
|
|
21337
21337
|
};
|
|
21338
21338
|
} & {
|
|
@@ -25237,6 +25237,37 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
25237
25237
|
} & {
|
|
25238
25238
|
"/runs/:id/worker-destroy": {
|
|
25239
25239
|
$post: {
|
|
25240
|
+
output: {
|
|
25241
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
25242
|
+
readonly error: string;
|
|
25243
|
+
readonly modelChoices?: {
|
|
25244
|
+
runner: string;
|
|
25245
|
+
requestedModel: string;
|
|
25246
|
+
availableModels: {
|
|
25247
|
+
id: string;
|
|
25248
|
+
label: string;
|
|
25249
|
+
description: string;
|
|
25250
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
25251
|
+
}[];
|
|
25252
|
+
otherRunners: string[];
|
|
25253
|
+
} | undefined;
|
|
25254
|
+
};
|
|
25255
|
+
outputFormat: "json";
|
|
25256
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
25257
|
+
input: {
|
|
25258
|
+
query: {
|
|
25259
|
+
[x: string]: string | string[];
|
|
25260
|
+
};
|
|
25261
|
+
} & {
|
|
25262
|
+
param: {
|
|
25263
|
+
id: string;
|
|
25264
|
+
};
|
|
25265
|
+
} & {
|
|
25266
|
+
json: {
|
|
25267
|
+
discardWork?: true | undefined;
|
|
25268
|
+
};
|
|
25269
|
+
};
|
|
25270
|
+
} | {
|
|
25240
25271
|
output: {
|
|
25241
25272
|
error: string;
|
|
25242
25273
|
code?: "invalid_input" | undefined;
|
|
@@ -25322,37 +25353,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
25322
25353
|
discardWork?: true | undefined;
|
|
25323
25354
|
};
|
|
25324
25355
|
};
|
|
25325
|
-
} | {
|
|
25326
|
-
output: {
|
|
25327
|
-
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
25328
|
-
readonly error: string;
|
|
25329
|
-
readonly modelChoices?: {
|
|
25330
|
-
runner: string;
|
|
25331
|
-
requestedModel: string;
|
|
25332
|
-
availableModels: {
|
|
25333
|
-
id: string;
|
|
25334
|
-
label: string;
|
|
25335
|
-
description: string;
|
|
25336
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
25337
|
-
}[];
|
|
25338
|
-
otherRunners: string[];
|
|
25339
|
-
} | undefined;
|
|
25340
|
-
};
|
|
25341
|
-
outputFormat: "json";
|
|
25342
|
-
status: 400 | 401 | 403 | 409 | 503;
|
|
25343
|
-
input: {
|
|
25344
|
-
query: {
|
|
25345
|
-
[x: string]: string | string[];
|
|
25346
|
-
};
|
|
25347
|
-
} & {
|
|
25348
|
-
param: {
|
|
25349
|
-
id: string;
|
|
25350
|
-
};
|
|
25351
|
-
} & {
|
|
25352
|
-
json: {
|
|
25353
|
-
discardWork?: true | undefined;
|
|
25354
|
-
};
|
|
25355
|
-
};
|
|
25356
25356
|
};
|
|
25357
25357
|
};
|
|
25358
25358
|
} & {
|
|
@@ -35800,20 +35800,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
35800
35800
|
} & {
|
|
35801
35801
|
"/runs/:id/handoff": {
|
|
35802
35802
|
$get: {
|
|
35803
|
-
output:
|
|
35804
|
-
|
|
35805
|
-
|
|
35803
|
+
output: {
|
|
35804
|
+
error: string;
|
|
35805
|
+
};
|
|
35806
|
+
outputFormat: "json";
|
|
35807
|
+
status: 404;
|
|
35806
35808
|
input: {
|
|
35807
35809
|
param: {
|
|
35808
35810
|
id: string;
|
|
35809
35811
|
};
|
|
35810
35812
|
};
|
|
35811
35813
|
} | {
|
|
35812
|
-
output:
|
|
35813
|
-
|
|
35814
|
-
|
|
35815
|
-
outputFormat: "json";
|
|
35816
|
-
status: 404;
|
|
35814
|
+
output: string;
|
|
35815
|
+
outputFormat: "text";
|
|
35816
|
+
status: 200;
|
|
35817
35817
|
input: {
|
|
35818
35818
|
param: {
|
|
35819
35819
|
id: string;
|
|
@@ -35851,20 +35851,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
35851
35851
|
} & {
|
|
35852
35852
|
"/runs/:id/diff": {
|
|
35853
35853
|
$get: {
|
|
35854
|
-
output:
|
|
35855
|
-
|
|
35856
|
-
|
|
35854
|
+
output: {
|
|
35855
|
+
error: string;
|
|
35856
|
+
};
|
|
35857
|
+
outputFormat: "json";
|
|
35858
|
+
status: 404 | 409;
|
|
35857
35859
|
input: {
|
|
35858
35860
|
param: {
|
|
35859
35861
|
id: string;
|
|
35860
35862
|
};
|
|
35861
35863
|
};
|
|
35862
35864
|
} | {
|
|
35863
|
-
output:
|
|
35864
|
-
|
|
35865
|
-
|
|
35866
|
-
outputFormat: "json";
|
|
35867
|
-
status: 404 | 409;
|
|
35865
|
+
output: string;
|
|
35866
|
+
outputFormat: "text";
|
|
35867
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
35868
35868
|
input: {
|
|
35869
35869
|
param: {
|
|
35870
35870
|
id: string;
|
|
@@ -7,6 +7,12 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
|
|
|
7
7
|
output: {
|
|
8
8
|
generation: string;
|
|
9
9
|
results: ({
|
|
10
|
+
projectId: string;
|
|
11
|
+
runId: string;
|
|
12
|
+
type: "error" | "reset";
|
|
13
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
14
|
+
error: string;
|
|
15
|
+
} | {
|
|
10
16
|
projectId: string;
|
|
11
17
|
runId: string;
|
|
12
18
|
type: "batch";
|
|
@@ -27,12 +33,6 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
|
|
|
27
33
|
cursor: string;
|
|
28
34
|
afterSeq: number;
|
|
29
35
|
hasMore: boolean;
|
|
30
|
-
} | {
|
|
31
|
-
projectId: string;
|
|
32
|
-
runId: string;
|
|
33
|
-
type: "error" | "reset";
|
|
34
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
35
|
-
error: string;
|
|
36
36
|
})[];
|
|
37
37
|
};
|
|
38
38
|
outputFormat: "json";
|
|
@@ -51,34 +51,10 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
|
|
|
51
51
|
"/workspace/config": {
|
|
52
52
|
$put: {
|
|
53
53
|
output: {
|
|
54
|
-
|
|
55
|
-
projectsDir: string;
|
|
56
|
-
archiveOnMerge: boolean | null;
|
|
57
|
-
effectiveArchiveOnMerge: boolean;
|
|
58
|
-
archiveOnMergeSource: "default" | "environment" | "global";
|
|
59
|
-
composerDefaults: {
|
|
60
|
-
autonomous: boolean | null;
|
|
61
|
-
worktree: boolean | null;
|
|
62
|
-
inheritedAutonomous: "source-dependent" | boolean;
|
|
63
|
-
inheritedWorktree: boolean;
|
|
64
|
-
};
|
|
65
|
-
resources: {
|
|
66
|
-
maxParallel: number;
|
|
67
|
-
maxMonitoringSessions: number;
|
|
68
|
-
monitoringWakeIntervalMinutes: number | null;
|
|
69
|
-
autoResumeOnUsageLimit: boolean;
|
|
70
|
-
memoryLimitMb: number | null;
|
|
71
|
-
worktreeRetentionDefault: number;
|
|
72
|
-
};
|
|
73
|
-
agentDefaults: {
|
|
74
|
-
runner?: string | undefined;
|
|
75
|
-
models?: {
|
|
76
|
-
[x: string]: string | undefined;
|
|
77
|
-
} | undefined;
|
|
78
|
-
};
|
|
54
|
+
error: string;
|
|
79
55
|
};
|
|
80
56
|
outputFormat: "json";
|
|
81
|
-
status:
|
|
57
|
+
status: 400;
|
|
82
58
|
input: {
|
|
83
59
|
json: {
|
|
84
60
|
browseRoot?: string | undefined;
|
|
@@ -107,7 +83,7 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
|
|
|
107
83
|
error: string;
|
|
108
84
|
};
|
|
109
85
|
outputFormat: "json";
|
|
110
|
-
status:
|
|
86
|
+
status: 500;
|
|
111
87
|
input: {
|
|
112
88
|
json: {
|
|
113
89
|
browseRoot?: string | undefined;
|
|
@@ -133,10 +109,34 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
|
|
|
133
109
|
};
|
|
134
110
|
} | {
|
|
135
111
|
output: {
|
|
136
|
-
|
|
112
|
+
browseRoot: string;
|
|
113
|
+
projectsDir: string;
|
|
114
|
+
archiveOnMerge: boolean | null;
|
|
115
|
+
effectiveArchiveOnMerge: boolean;
|
|
116
|
+
archiveOnMergeSource: "default" | "environment" | "global";
|
|
117
|
+
composerDefaults: {
|
|
118
|
+
autonomous: boolean | null;
|
|
119
|
+
worktree: boolean | null;
|
|
120
|
+
inheritedAutonomous: "source-dependent" | boolean;
|
|
121
|
+
inheritedWorktree: boolean;
|
|
122
|
+
};
|
|
123
|
+
resources: {
|
|
124
|
+
maxParallel: number;
|
|
125
|
+
maxMonitoringSessions: number;
|
|
126
|
+
monitoringWakeIntervalMinutes: number | null;
|
|
127
|
+
autoResumeOnUsageLimit: boolean;
|
|
128
|
+
memoryLimitMb: number | null;
|
|
129
|
+
worktreeRetentionDefault: number;
|
|
130
|
+
};
|
|
131
|
+
agentDefaults: {
|
|
132
|
+
runner?: string | undefined;
|
|
133
|
+
models?: {
|
|
134
|
+
[x: string]: string | undefined;
|
|
135
|
+
} | undefined;
|
|
136
|
+
};
|
|
137
137
|
};
|
|
138
138
|
outputFormat: "json";
|
|
139
|
-
status:
|
|
139
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
140
140
|
input: {
|
|
141
141
|
json: {
|
|
142
142
|
browseRoot?: string | undefined;
|
|
@@ -208,41 +208,10 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
|
|
|
208
208
|
"/workspace/ui-state": {
|
|
209
209
|
$put: {
|
|
210
210
|
output: {
|
|
211
|
-
|
|
212
|
-
sidebar?: {
|
|
213
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
214
|
-
collapsed?: {
|
|
215
|
-
[x: string]: boolean;
|
|
216
|
-
} | undefined;
|
|
217
|
-
projectOrder?: string[] | undefined;
|
|
218
|
-
} | undefined;
|
|
219
|
-
dismissedProviderAuthFailures?: {
|
|
220
|
-
[x: string]: string | undefined;
|
|
221
|
-
} | undefined;
|
|
222
|
-
appearance?: {
|
|
223
|
-
accent?: "cezarion" | "lime" | "violet" | undefined;
|
|
224
|
-
density?: "comfortable" | "compact" | "ultra" | undefined;
|
|
225
|
-
width?: "narrow" | "wide" | undefined;
|
|
226
|
-
} | undefined;
|
|
227
|
-
notifications?: {
|
|
228
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
229
|
-
enabled?: boolean | undefined;
|
|
230
|
-
} | undefined;
|
|
231
|
-
taskTable?: {
|
|
232
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
233
|
-
expandedColumns?: {
|
|
234
|
-
[x: string]: boolean;
|
|
235
|
-
} | undefined;
|
|
236
|
-
} | undefined;
|
|
237
|
-
lastLocation?: {
|
|
238
|
-
projectId: string;
|
|
239
|
-
pathname: string;
|
|
240
|
-
search?: string | undefined;
|
|
241
|
-
hash?: string | undefined;
|
|
242
|
-
} | undefined;
|
|
211
|
+
error: string;
|
|
243
212
|
};
|
|
244
213
|
outputFormat: "json";
|
|
245
|
-
status:
|
|
214
|
+
status: 500;
|
|
246
215
|
input: {
|
|
247
216
|
json: {
|
|
248
217
|
[x: string]: unknown;
|
|
@@ -275,10 +244,41 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
|
|
|
275
244
|
};
|
|
276
245
|
} | {
|
|
277
246
|
output: {
|
|
278
|
-
|
|
247
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
248
|
+
sidebar?: {
|
|
249
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
250
|
+
collapsed?: {
|
|
251
|
+
[x: string]: boolean;
|
|
252
|
+
} | undefined;
|
|
253
|
+
projectOrder?: string[] | undefined;
|
|
254
|
+
} | undefined;
|
|
255
|
+
dismissedProviderAuthFailures?: {
|
|
256
|
+
[x: string]: string | undefined;
|
|
257
|
+
} | undefined;
|
|
258
|
+
appearance?: {
|
|
259
|
+
accent?: "cezarion" | "lime" | "violet" | undefined;
|
|
260
|
+
density?: "comfortable" | "compact" | "ultra" | undefined;
|
|
261
|
+
width?: "narrow" | "wide" | undefined;
|
|
262
|
+
} | undefined;
|
|
263
|
+
notifications?: {
|
|
264
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
265
|
+
enabled?: boolean | undefined;
|
|
266
|
+
} | undefined;
|
|
267
|
+
taskTable?: {
|
|
268
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
269
|
+
expandedColumns?: {
|
|
270
|
+
[x: string]: boolean;
|
|
271
|
+
} | undefined;
|
|
272
|
+
} | undefined;
|
|
273
|
+
lastLocation?: {
|
|
274
|
+
projectId: string;
|
|
275
|
+
pathname: string;
|
|
276
|
+
search?: string | undefined;
|
|
277
|
+
hash?: string | undefined;
|
|
278
|
+
} | undefined;
|
|
279
279
|
};
|
|
280
280
|
outputFormat: "json";
|
|
281
|
-
status:
|
|
281
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
282
282
|
input: {
|
|
283
283
|
json: {
|
|
284
284
|
[x: string]: unknown;
|
|
@@ -329,10 +329,17 @@ export declare function createFsBrowseRoutes(workspaceBrowseRoot: () => Promise<
|
|
|
329
329
|
};
|
|
330
330
|
} | {
|
|
331
331
|
output: {
|
|
332
|
-
|
|
332
|
+
path: string;
|
|
333
|
+
parent: string | null;
|
|
334
|
+
dirs: {
|
|
335
|
+
name: string;
|
|
336
|
+
path: string;
|
|
337
|
+
isRepo: boolean;
|
|
338
|
+
}[];
|
|
339
|
+
truncated: boolean;
|
|
333
340
|
};
|
|
334
341
|
outputFormat: "json";
|
|
335
|
-
status:
|
|
342
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
336
343
|
input: {
|
|
337
344
|
query: {
|
|
338
345
|
path?: string | undefined;
|
|
@@ -341,17 +348,10 @@ export declare function createFsBrowseRoutes(workspaceBrowseRoot: () => Promise<
|
|
|
341
348
|
};
|
|
342
349
|
} | {
|
|
343
350
|
output: {
|
|
344
|
-
|
|
345
|
-
parent: string | null;
|
|
346
|
-
dirs: {
|
|
347
|
-
name: string;
|
|
348
|
-
path: string;
|
|
349
|
-
isRepo: boolean;
|
|
350
|
-
}[];
|
|
351
|
-
truncated: boolean;
|
|
351
|
+
error: string;
|
|
352
352
|
};
|
|
353
353
|
outputFormat: "json";
|
|
354
|
-
status:
|
|
354
|
+
status: 400 | 403 | 404;
|
|
355
355
|
input: {
|
|
356
356
|
query: {
|
|
357
357
|
path?: string | undefined;
|
|
@@ -370,15 +370,6 @@ export interface WorkspaceEventsRouteDeps {
|
|
|
370
370
|
export declare function createWorkspaceEventsRoutes(deps: WorkspaceEventsRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
|
|
371
371
|
"/workspace/events": {
|
|
372
372
|
$get: {
|
|
373
|
-
output: {};
|
|
374
|
-
outputFormat: string;
|
|
375
|
-
status: import("hono/utils/http-status").StatusCode;
|
|
376
|
-
input: {
|
|
377
|
-
query: {
|
|
378
|
-
runs?: "summary" | undefined;
|
|
379
|
-
};
|
|
380
|
-
};
|
|
381
|
-
} | {
|
|
382
373
|
output: {
|
|
383
374
|
error: string;
|
|
384
375
|
code?: "invalid_input" | undefined;
|
|
@@ -390,6 +381,15 @@ export declare function createWorkspaceEventsRoutes(deps: WorkspaceEventsRouteDe
|
|
|
390
381
|
runs?: "summary" | undefined;
|
|
391
382
|
};
|
|
392
383
|
};
|
|
384
|
+
} | {
|
|
385
|
+
output: {};
|
|
386
|
+
outputFormat: string;
|
|
387
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
388
|
+
input: {
|
|
389
|
+
query: {
|
|
390
|
+
runs?: "summary" | undefined;
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
393
|
};
|
|
394
394
|
};
|
|
395
395
|
}, "/", "/workspace/events">;
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
import { type RecordedProcess } from '../core/process-stat.ts';
|
|
2
2
|
/** A group leader at spawn: its pid is its group id. */
|
|
3
3
|
export declare function groupEntry(pid: number): RecordedProcess;
|
|
4
|
-
/** Whether the recorded group is the one Squawk started. A live leader must be the recorded
|
|
5
|
-
* incarnation. A group whose leader is gone keeps its number while it has members, and the kernel
|
|
6
|
-
* does not reuse a pid while a group of that number exists; a reused number needs the group to
|
|
7
|
-
* empty first. So a leaderless group counts only where the record proves this boot: on Linux the
|
|
8
|
-
* start token carries the boot id, and a token from another boot (or none) is refused. The
|
|
9
|
-
* remaining case, the pid space wrapping within one boot while the worker lives, is ADR 0032's
|
|
10
|
-
* stated residual. Elsewhere (macOS: no boot id, a small pid space) a leaderless group is never
|
|
11
|
-
* signalled. */
|
|
12
|
-
export declare function groupOwned(entry: RecordedProcess): boolean;
|
|
13
4
|
/** SIGKILL every recorded group that is still ours, and every recorded process outside a group
|
|
14
5
|
* that is still the recorded incarnation. */
|
|
15
6
|
export declare function killGroups(entries: readonly RecordedProcess[]): void;
|
|
@@ -1,28 +1,13 @@
|
|
|
1
1
|
/** The `groups` backend: the worker's recorded POSIX process groups. A process that leaves its group
|
|
2
2
|
* (`setsid`, Node `detached`) is outside it; ADR 0032 states that limit. */
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { processGroupRunning, signalProcessGroup } from '../core/session-process.js';
|
|
4
|
+
import { pidExists, processStartToken } from '../core/process-stat.js';
|
|
5
|
+
import { groupOwned } from '../core/process-ownership.js';
|
|
5
6
|
/** A group leader at spawn: its pid is its group id. */
|
|
6
7
|
export function groupEntry(pid) {
|
|
7
8
|
const startToken = processStartToken(pid);
|
|
8
9
|
return { pid, pgid: pid, ...(startToken === undefined ? {} : { startToken }) };
|
|
9
10
|
}
|
|
10
|
-
/** Whether the recorded group is the one Squawk started. A live leader must be the recorded
|
|
11
|
-
* incarnation. A group whose leader is gone keeps its number while it has members, and the kernel
|
|
12
|
-
* does not reuse a pid while a group of that number exists; a reused number needs the group to
|
|
13
|
-
* empty first. So a leaderless group counts only where the record proves this boot: on Linux the
|
|
14
|
-
* start token carries the boot id, and a token from another boot (or none) is refused. The
|
|
15
|
-
* remaining case, the pid space wrapping within one boot while the worker lives, is ADR 0032's
|
|
16
|
-
* stated residual. Elsewhere (macOS: no boot id, a small pid space) a leaderless group is never
|
|
17
|
-
* signalled. */
|
|
18
|
-
export function groupOwned(entry) {
|
|
19
|
-
if (entry.pgid === undefined || entry.pgid !== entry.pid || entry.startToken === undefined || !processGroupAlive(entry.pgid))
|
|
20
|
-
return false;
|
|
21
|
-
if (pidExists(entry.pid))
|
|
22
|
-
return processStartToken(entry.pid) === entry.startToken;
|
|
23
|
-
const boot = process.platform === 'linux' ? linuxBootId() : undefined;
|
|
24
|
-
return boot !== undefined && entry.startToken.startsWith(`${boot}:`);
|
|
25
|
-
}
|
|
26
11
|
/** SIGKILL every recorded group that is still ours, and every recorded process outside a group
|
|
27
12
|
* that is still the recorded incarnation. */
|
|
28
13
|
export function killGroups(entries) {
|