@hearsay-tools/squawk 0.19.0-pr4597.9122 → 0.19.0-pr4598.9138
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/ci-wait/controller.d.ts +7 -7
- package/dist/ci-wait/errors.js +1 -1
- package/dist/ci-wait/errors.js.map +1 -1
- package/dist/contract/hosts.d.ts +254 -0
- package/dist/contract/index.js +35 -0
- package/dist/{delegation/input.js → core/agent-input-queue.js} +2 -2
- package/dist/core/agent-input-queue.js.map +1 -0
- package/dist/core/agent-runner.d.ts +1 -1
- package/dist/core/delegation-error.d.ts +13 -0
- package/dist/core/delegation-error.js +18 -0
- package/dist/core/delegation-error.js.map +1 -0
- package/dist/core/http-route-registry.d.ts +7 -4
- package/dist/core/http-route-registry.js +6 -0
- package/dist/core/http-route-registry.js.map +1 -1
- package/dist/core/retry-backoff.js.map +1 -0
- package/dist/core/session-process.d.ts +1 -1
- package/dist/core/spawn-scope.d.ts +10 -0
- package/dist/core/spawn-scope.js +2 -0
- package/dist/core/spawn-scope.js.map +1 -0
- package/dist/delegation/cli.js +1 -1
- package/dist/delegation/cli.js.map +1 -1
- package/dist/delegation/context.d.ts +1 -1
- package/dist/delegation/context.js +1 -1
- package/dist/delegation/context.js.map +1 -1
- package/dist/delegation/conversation-send.js +1 -1
- package/dist/delegation/conversation-send.js.map +1 -1
- package/dist/delegation/conversations.js +1 -1
- package/dist/delegation/conversations.js.map +1 -1
- package/dist/delegation/effort.js +1 -1
- package/dist/delegation/effort.js.map +1 -1
- package/dist/delegation/execution-settings.js +1 -1
- package/dist/delegation/execution-settings.js.map +1 -1
- package/dist/delegation/policy.d.ts +1 -12
- package/dist/delegation/policy.js +1 -16
- package/dist/delegation/policy.js.map +1 -1
- package/dist/delegation/routes.d.ts +15 -15
- package/dist/delegation/routes.js +1 -1
- package/dist/delegation/routes.js.map +1 -1
- package/dist/delegation/scratch-cleanup.js +1 -1
- package/dist/delegation/scratch-cleanup.js.map +1 -1
- package/dist/delegation/service.js +2 -1
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/task-discovery.js +2 -1
- package/dist/delegation/task-discovery.js.map +1 -1
- package/dist/delegation/transport.d.ts +10 -10
- package/dist/delegation/wait-kinds.js +2 -1
- package/dist/delegation/wait-kinds.js.map +1 -1
- package/dist/delegation/worker-cleanup.d.ts +1 -1
- package/dist/delegation/worker-cleanup.js +2 -2
- package/dist/delegation/worker-cleanup.js.map +1 -1
- package/dist/delegation/worker-executions.d.ts +2 -1
- package/dist/delegation/worker-executions.js.map +1 -1
- package/dist/delegation/workspace-kinds.js +1 -1
- package/dist/delegation/workspace-kinds.js.map +1 -1
- package/dist/delegation/workspace.js +1 -1
- package/dist/delegation/workspace.js.map +1 -1
- package/dist/features/automations/server-plugin.js.map +1 -1
- package/dist/features/hosts/bootstrap.d.ts +1 -0
- package/dist/features/hosts/bootstrap.js +9 -6
- package/dist/features/hosts/bootstrap.js.map +1 -1
- package/dist/features/hosts/gateway-routes.d.ts +14 -0
- package/dist/features/hosts/gateway-routes.js +20 -0
- package/dist/features/hosts/gateway-routes.js.map +1 -0
- package/dist/features/hosts/gateway.d.ts +105 -0
- package/dist/features/hosts/gateway.js +758 -0
- package/dist/features/hosts/gateway.js.map +1 -0
- package/dist/features/hosts/index.d.ts +7 -1
- package/dist/features/hosts/index.js +23 -16
- package/dist/features/hosts/index.js.map +1 -1
- package/dist/features/hosts/routes.d.ts +134 -45
- package/dist/features/hosts/routes.js +134 -11
- package/dist/features/hosts/routes.js.map +1 -1
- package/dist/features/hosts/supervisor.d.ts +22 -8
- package/dist/features/hosts/supervisor.js +94 -37
- package/dist/features/hosts/supervisor.js.map +1 -1
- package/dist/features/webhooks/routes.d.ts +38 -38
- package/dist/features/webhooks/server-plugin.js.map +1 -1
- package/dist/plugin/index.d.ts +1 -1
- package/dist/plugin/index.js.map +1 -1
- package/dist/plugin/runner-kit.d.ts +1 -1
- package/dist/preview/dev-server.d.ts +1 -1
- package/dist/preview/host.d.ts +1 -1
- package/dist/runs/run-archive.d.ts +72 -72
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/checkout.d.ts +10 -0
- package/dist/server/checkout.js +1 -1
- package/dist/server/checkout.js.map +1 -1
- package/dist/server/create-project.d.ts +6 -0
- package/dist/server/create-project.js +1 -1
- package/dist/server/create-project.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/plugin-http-routes.d.ts +18 -6
- package/dist/server/plugin-http-routes.js +24 -14
- package/dist/server/plugin-http-routes.js.map +1 -1
- package/dist/server/project-run-files.js +1 -1
- package/dist/server/project-run-files.js.map +1 -1
- package/dist/server/projects-routes.d.ts +41 -41
- package/dist/server/repo-routes.d.ts +13 -13
- package/dist/server/runs-routes.d.ts +948 -948
- package/dist/server/server.js +10 -8
- package/dist/server/server.js.map +1 -1
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/worker-scope/scope.d.ts +0 -10
- package/dist/worker-scope/worker-scopes.d.ts +2 -1
- package/dist/worker-scope/worker-scopes.js.map +1 -1
- package/dist/workflows/continuation-admission.d.ts +72 -72
- package/dist/workflows/grouped-command.d.ts +1 -1
- package/dist/workflows/run/auto-resume.js +1 -1
- package/dist/workflows/run/auto-resume.js.map +1 -1
- package/dist/workflows/run/inbox-claims.js +1 -1
- package/dist/workflows/run/inbox-claims.js.map +1 -1
- package/dist/workflows/run/input-batch.js +1 -1
- package/dist/workflows/run/input-batch.js.map +1 -1
- package/dist/workflows/run/input-delivery.js +2 -2
- package/dist/workflows/run/input-delivery.js.map +1 -1
- package/dist/workflows/run/launch-read-resolver.js +1 -1
- package/dist/workflows/run/launch-read-resolver.js.map +1 -1
- package/dist/workflows/run/resolved-wait-input-batch.js +1 -1
- package/dist/workflows/run/resolved-wait-input-batch.js.map +1 -1
- package/dist/workflows/run/run-cancel.js +1 -1
- package/dist/workflows/run/run-cancel.js.map +1 -1
- package/dist/workflows/run/run-recovery.js +1 -1
- package/dist/workflows/run/run-recovery.js.map +1 -1
- package/dist/workflows/run/run-start.js +1 -1
- package/dist/workflows/run/run-start.js.map +1 -1
- package/dist/workflows/run/turn-nudges.js +1 -1
- package/dist/workflows/run/turn-nudges.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +72 -72
- package/dist/workflows/run/wake-admission.js +1 -1
- package/dist/workflows/run/wake-admission.js.map +1 -1
- package/dist/workflows/run/wake-ledger.js +1 -1
- package/dist/workflows/run/wake-ledger.js.map +1 -1
- package/dist/workflows/run/wake-retries.d.ts +1 -1
- package/dist/workflows/run/wake-retries.js +1 -1
- package/dist/workflows/run/wake-retries.js.map +1 -1
- package/dist/workflows/run/worker-orphans.d.ts +1 -1
- package/dist/workflows/run/worker-orphans.js +1 -1
- package/dist/workflows/run/worker-orphans.js.map +1 -1
- package/dist/workflows/run/worker-questions.js +1 -1
- package/dist/workflows/run/worker-questions.js.map +1 -1
- package/dist/workflows/wait-scope.d.ts +1 -1
- package/dist/workflows/wait-scope.js +2 -2
- package/dist/workflows/wait-scope.js.map +1 -1
- package/dist/worktree-setup.d.ts +1 -1
- package/package.json +4 -4
- package/web/dist/assets/{accounts-section-CB4vkCsb.js → accounts-section-BsgnDmow.js} +1 -1
- package/web/dist/assets/{activity-motion-CWVqj0za.js → activity-motion-Ckq9kC3I.js} +1 -1
- package/web/dist/assets/{activity-route-D_1WO5Z1.js → activity-route-5S9WhN9U.js} +1 -1
- package/web/dist/assets/{agent-config-section-DoqyETC4.js → agent-config-section-D8pxNy2V.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-OS2L78-e.js → agent-defaults-section-et5LHv9W.js} +1 -1
- package/web/dist/assets/{appearance-CLcSBCp1.js → appearance-D_t3wCjY.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-C2Byigt_.js → archive-on-merge-field-C63xRNFZ.js} +1 -1
- package/web/dist/assets/{ask-card-C4IYkE2O.js → ask-card-kqWOqKIc.js} +3 -3
- package/web/dist/assets/{automations-route-BZHu5YyF.js → automations-route-B5YBpGMc.js} +2 -2
- package/web/dist/assets/{commit-list-B8WibZ6m.js → commit-list-Bjc-pQxv.js} +1 -1
- package/web/dist/assets/{diff-controls-QX-jSmyx.js → diff-controls-CaCUSyxs.js} +1 -1
- package/web/dist/assets/{diff-B_8aWFPC.js → diff-lwWO-At7.js} +2 -2
- package/web/dist/assets/{diff-view-BS1q2trQ.js → diff-view-4wxDvYXE.js} +1 -1
- package/web/dist/assets/discard-changes-dialog-B3gvm7lX.js +1 -0
- package/web/dist/assets/{file-preview-Dfpn6tQe.js → file-preview-98pJhZJj.js} +1 -1
- package/web/dist/assets/{git-toolbar-DuUdRzI1.js → git-toolbar-CepvG0Ng.js} +1 -1
- package/web/dist/assets/{github-CPC8EK-y.js → github-4Jhl7lLG.js} +1 -1
- package/web/dist/assets/{global-activity-route-B7WkPq9M.js → global-activity-route-DhmrWj31.js} +1 -1
- package/web/dist/assets/{index-FmHk4o3n.css → index-BK1FcZrA.css} +1 -1
- package/web/dist/assets/index-DJB0lid-.js +21 -0
- package/web/dist/assets/{markdown-B0yqWHDP.js → markdown-BAPhDASs.js} +1 -1
- package/web/dist/assets/{option-select-COXy_9e6.js → option-select-BwSkbCrQ.js} +1 -1
- package/web/dist/assets/{preferences-section-Bbzs9RW1.js → preferences-section-Cvh644K0.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-dMTWNhX8.js → preview-pane-connected-B08ZdGux.js} +2 -2
- package/web/dist/assets/{project-location-B-O2lQQU.js → project-location-DR8go8oL.js} +1 -1
- package/web/dist/assets/{projects-section-BjffHvrf.js → projects-section-XDboHBFP.js} +1 -1
- package/web/dist/assets/{prompt-templates-section--SsT2vbo.js → prompt-templates-section-DcxD28iA.js} +2 -2
- package/web/dist/assets/{remote-settings-notice-DyWrqTzR.js → remote-settings-notice-Dtaa3ovl.js} +1 -1
- package/web/dist/assets/repo-git-Dp9R2TuI.js +1 -0
- package/web/dist/assets/{report-reader-Cu5tL1Ph.js → report-reader-mbkd2DKt.js} +1 -1
- package/web/dist/assets/{reports-D9ouruqt.js → reports-ya2OW-iR.js} +1 -1
- package/web/dist/assets/{resources-section-D21Lq0Jb.js → resources-section-g5XRlefz.js} +1 -1
- package/web/dist/assets/{review-notes-drafts-AEBwPEaV.js → review-notes-drafts-BdBvLP6E.js} +1 -1
- package/web/dist/assets/{review-panel-Cy1EYoBI.js → review-panel-Ba8yb8Fu.js} +1 -1
- package/web/dist/assets/{review-strip-ClN1AfmS.js → review-strip-CdlMeV2i.js} +1 -1
- package/web/dist/assets/run-header-BTRXYB4W.js +2 -0
- package/web/dist/assets/{select-JCfCIElu.js → select-DdH25sWT.js} +1 -1
- package/web/dist/assets/{session-context-section-Cbzxxjcu.js → session-context-section-BqEdLdTv.js} +2 -2
- package/web/dist/assets/{settings-agent-picker-1H6fIPXo.js → settings-agent-picker-b4M6fQ8m.js} +1 -1
- package/web/dist/assets/{settings-save-bar-BUi6H-gE.js → settings-save-bar-DFY_Km4X.js} +1 -1
- package/web/dist/assets/{settings-shell-lj--GRCk.js → settings-shell-BUwdvhI9.js} +1 -1
- package/web/dist/assets/{sidebar-section-Cv1ulfXy.js → sidebar-section-CcucfASN.js} +1 -1
- package/web/dist/assets/{skills-DAJzu767.js → skills-BLkPhZO8.js} +1 -1
- package/web/dist/assets/{task-changes-GTdXC-dZ.js → task-changes-Drvnew5P.js} +2 -2
- package/web/dist/assets/{task-commits-6ZKh7FRW.js → task-commits-1MJHuX1i.js} +1 -1
- package/web/dist/assets/{task-file-scope-CaJR98S8.js → task-file-scope-CB3L3KQl.js} +1 -1
- package/web/dist/assets/{task-files-DRnSkRoC.js → task-files-B9okW1TC.js} +1 -1
- package/web/dist/assets/{task-github-item-080YJpbP.js → task-github-item-CMNk7FxR.js} +1 -1
- package/web/dist/assets/{task-thread-D1bM1I_e.js → task-thread-_2ch8BRt.js} +2 -2
- package/web/dist/assets/{task-thread-C70CCqyd.css → task-thread-a6CXLxwn.css} +1 -1
- package/web/dist/assets/{thread-state-CmjIQNn7.js → thread-state-qNczqxZQ.js} +1 -1
- package/web/dist/assets/{use-finish-run-BE6ugaLE.js → use-finish-run-Dvm4JnAH.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-CK_1_QCG.js → use-hand-to-agent-state-CBJvP-US.js} +1 -1
- package/web/dist/assets/use-path-bases-C9yvZF5B.js +1 -0
- package/web/dist/assets/{workflows-D9hqYoNT.js → workflows-BUcx-n8J.js} +3 -3
- package/web/dist/assets/{workspace-tools-DuYt1zu5.js → workspace-tools-dbiR1fzO.js} +1 -1
- package/web/dist/assets/{worktrees-section-JViXzzNC.js → worktrees-section-Dyb_QkSd.js} +1 -1
- package/web/dist/index.html +2 -2
- package/dist/delegation/input.js.map +0 -1
- package/dist/delegation/retry-backoff.js.map +0 -1
- package/web/dist/assets/discard-changes-dialog-_XKURVyg.js +0 -1
- package/web/dist/assets/index-BovBmPyJ.js +0 -21
- package/web/dist/assets/repo-git-CAX7JKaD.js +0 -1
- package/web/dist/assets/run-header-C7L9lspH.js +0 -2
- package/web/dist/assets/use-path-bases-RiQd3y2m.js +0 -1
- /package/dist/{delegation/input.d.ts → core/agent-input-queue.d.ts} +0 -0
- /package/dist/{delegation → core}/retry-backoff.d.ts +0 -0
- /package/dist/{delegation → core}/retry-backoff.js +0 -0
|
@@ -121,12 +121,9 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
121
121
|
} & {
|
|
122
122
|
"/api/v1/tools/:name": {
|
|
123
123
|
$post: {
|
|
124
|
-
output:
|
|
125
|
-
code: string;
|
|
126
|
-
message: string;
|
|
127
|
-
};
|
|
124
|
+
output: never;
|
|
128
125
|
outputFormat: "json";
|
|
129
|
-
status:
|
|
126
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
130
127
|
input: {
|
|
131
128
|
json: unknown;
|
|
132
129
|
} & {
|
|
@@ -149,9 +146,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
149
146
|
};
|
|
150
147
|
};
|
|
151
148
|
} | {
|
|
152
|
-
output:
|
|
149
|
+
output: {
|
|
150
|
+
code: string;
|
|
151
|
+
message: string;
|
|
152
|
+
};
|
|
153
153
|
outputFormat: "json";
|
|
154
|
-
status:
|
|
154
|
+
status: 401;
|
|
155
155
|
input: {
|
|
156
156
|
json: unknown;
|
|
157
157
|
} & {
|
package/dist/ci-wait/errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { commandText } from '../home/command.js';
|
|
2
2
|
import { TIMER_MAX_SECONDS, TIMER_MIN_SECONDS } from '../contract/index.js';
|
|
3
|
-
import { MESSAGING_OFF } from '../delegation
|
|
3
|
+
import { MESSAGING_OFF } from '../core/delegation-error.js';
|
|
4
4
|
import { ASK_LIMITS } from '../contract/index.js';
|
|
5
5
|
/** Safe diagnostics shared by the manager and private transport. Never forward raw errors. */
|
|
6
6
|
const messages = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/ci-wait/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAChG,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/ci-wait/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAChG,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAIrE,8FAA8F;AAC9F,MAAM,QAAQ,GAAoC;IAChD,aAAa,EAAE,qDAAqD;IACpE,gBAAgB,EAAE,wIAAwI;IAC1J,UAAU,EAAE,yC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C,CAAC;IAC/B,IAAI,KAAK,EAAE,IAAI,KAAK,mBAAmB;QAAE,OAAO,iBAAiB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,WAAW,GAAG,CAAC;IACvJ,MAAM,KAAK,GAAG,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAiB,EAAE,CAAC,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,IAAI,gBAAgB,CAAC,CAAC;IACzI,IAAI,KAAK;QAAE,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC;IAC7D,OAAO,wCAAwC,WAAW,GAAG,CAAC;AAChE,CAAC;AAED,+DAA+D;AAC/D,MAAM,OAAO,oBAAqB,SAAQ,KAAK;IAExB,YAAY;IADxB,IAAI,GAAG,oBAAoB,CAAC;IACrC,YAAqB,YAAkB;QACrC,KAAK,CAAC,iCAAiC,YAAY,CAAC,EAAE,yBAAyB,UAAU,IAAI,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,uBAAuB,2CAA2C,CAAC,CAAC;4BADrL,YAAY;IAEjC,CAAC;CACF"}
|
package/dist/contract/hosts.d.ts
CHANGED
|
@@ -342,3 +342,257 @@ export declare const hostServerActiveTasksResultSchema: z.ZodObject<{
|
|
|
342
342
|
activeCount: z.ZodNumber;
|
|
343
343
|
}, z.core.$strip>;
|
|
344
344
|
export type HostServerActiveTasksResult = z.infer<typeof hostServerActiveTasksResultSchema>;
|
|
345
|
+
/**
|
|
346
|
+
* Machine-readable error codes returned by the main server's host gateway
|
|
347
|
+
* (`ALL /api/v1/hosts/:hostId/api/v1/*`, spec § Architecture 3 & § 6, hearsay-tools/squawk#4540).
|
|
348
|
+
*/
|
|
349
|
+
export declare const HOST_GATEWAY_ERROR_CODES: readonly ['host-unreachable', 'host-version-mismatch', 'host-not-hosted', 'host-identity-changed', 'host-several-servers', 'host-paused', 'host-upgrade-unsupported', 'host-unexpected-redirect', 'host-nested-gateway-unsupported'];
|
|
350
|
+
export declare const hostGatewayErrorCodeSchema: z.ZodEnum<{
|
|
351
|
+
"host-identity-changed": "host-identity-changed";
|
|
352
|
+
"host-nested-gateway-unsupported": "host-nested-gateway-unsupported";
|
|
353
|
+
"host-not-hosted": "host-not-hosted";
|
|
354
|
+
"host-paused": "host-paused";
|
|
355
|
+
"host-several-servers": "host-several-servers";
|
|
356
|
+
"host-unexpected-redirect": "host-unexpected-redirect";
|
|
357
|
+
"host-unreachable": "host-unreachable";
|
|
358
|
+
"host-upgrade-unsupported": "host-upgrade-unsupported";
|
|
359
|
+
"host-version-mismatch": "host-version-mismatch";
|
|
360
|
+
}>;
|
|
361
|
+
export type HostGatewayErrorCode = z.infer<typeof hostGatewayErrorCodeSchema>;
|
|
362
|
+
/** Error body returned by the host gateway on 400 / 409 / 502 refusals. */
|
|
363
|
+
export declare const hostGatewayErrorResponseSchema: z.ZodObject<{
|
|
364
|
+
code: z.ZodEnum<{
|
|
365
|
+
"host-identity-changed": "host-identity-changed";
|
|
366
|
+
"host-nested-gateway-unsupported": "host-nested-gateway-unsupported";
|
|
367
|
+
"host-not-hosted": "host-not-hosted";
|
|
368
|
+
"host-paused": "host-paused";
|
|
369
|
+
"host-several-servers": "host-several-servers";
|
|
370
|
+
"host-unexpected-redirect": "host-unexpected-redirect";
|
|
371
|
+
"host-unreachable": "host-unreachable";
|
|
372
|
+
"host-upgrade-unsupported": "host-upgrade-unsupported";
|
|
373
|
+
"host-version-mismatch": "host-version-mismatch";
|
|
374
|
+
}>;
|
|
375
|
+
error: z.ZodString;
|
|
376
|
+
}, z.core.$strip>;
|
|
377
|
+
export type HostGatewayErrorResponse = z.infer<typeof hostGatewayErrorResponseSchema>;
|
|
378
|
+
/**
|
|
379
|
+
* Per-host project listing in `GET /api/v1/hosts/projects` (spec § Architecture 4,
|
|
380
|
+
* hearsay-tools/squawk#4540). Every session may read it, so it carries ONLY `id`, `label`,
|
|
381
|
+
* `state`, and `projects` (never `reason`, `sshAlias`, or other admin-only host fields).
|
|
382
|
+
*
|
|
383
|
+
* `projects` is:
|
|
384
|
+
* - `[...]` when the host is connected and its project list was read (`[]` = no projects),
|
|
385
|
+
* - `[]` when the host is not connected,
|
|
386
|
+
* - `null` when the host was connected but reading its projects failed (timeout, non-2xx,
|
|
387
|
+
* malformed JSON, or response > 1 MiB), so the rail can distinguish "no projects" from
|
|
388
|
+
* "could not read".
|
|
389
|
+
*/
|
|
390
|
+
export declare const hostProjectsEntrySchema: z.ZodObject<{
|
|
391
|
+
id: z.ZodString;
|
|
392
|
+
label: z.ZodString;
|
|
393
|
+
state: z.ZodEnum<{
|
|
394
|
+
"cannot-persist": "cannot-persist";
|
|
395
|
+
connected: "connected";
|
|
396
|
+
connecting: "connecting";
|
|
397
|
+
"identity-changed": "identity-changed";
|
|
398
|
+
"needs-node": "needs-node";
|
|
399
|
+
"not-hosted": "not-hosted";
|
|
400
|
+
paused: "paused";
|
|
401
|
+
"several-servers": "several-servers";
|
|
402
|
+
unreachable: "unreachable";
|
|
403
|
+
"version-mismatch": "version-mismatch";
|
|
404
|
+
}>;
|
|
405
|
+
projects: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
406
|
+
id: z.ZodString;
|
|
407
|
+
name: z.ZodString;
|
|
408
|
+
root: z.ZodString;
|
|
409
|
+
addedAt: z.ZodString;
|
|
410
|
+
lastOpenedAt: z.ZodString;
|
|
411
|
+
source: z.ZodEnum<{
|
|
412
|
+
checkout: "checkout";
|
|
413
|
+
local: "local";
|
|
414
|
+
}>;
|
|
415
|
+
status: z.ZodEnum<{
|
|
416
|
+
missing: "missing";
|
|
417
|
+
"not-git": "not-git";
|
|
418
|
+
ok: "ok";
|
|
419
|
+
}>;
|
|
420
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
421
|
+
forge: z.ZodOptional<z.ZodString>;
|
|
422
|
+
repoUrl: z.ZodOptional<z.ZodString>;
|
|
423
|
+
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
424
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
425
|
+
webhook: z.ZodOptional<z.ZodObject<{
|
|
426
|
+
url: z.ZodString;
|
|
427
|
+
tokenSet: z.ZodBoolean;
|
|
428
|
+
triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
429
|
+
cancelled: "cancelled";
|
|
430
|
+
done: "done";
|
|
431
|
+
failed: "failed";
|
|
432
|
+
"needs-you": "needs-you";
|
|
433
|
+
running: "running";
|
|
434
|
+
"waiting-ci": "waiting-ci";
|
|
435
|
+
"waiting-other": "waiting-other";
|
|
436
|
+
"waiting-timer": "waiting-timer";
|
|
437
|
+
"waiting-workers": "waiting-workers";
|
|
438
|
+
}>>>;
|
|
439
|
+
}, z.core.$strip>>;
|
|
440
|
+
webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
441
|
+
id: z.ZodString;
|
|
442
|
+
name: z.ZodString;
|
|
443
|
+
description: z.ZodOptional<z.ZodString>;
|
|
444
|
+
url: z.ZodString;
|
|
445
|
+
tokenSet: z.ZodBoolean;
|
|
446
|
+
tasks: z.ZodBoolean;
|
|
447
|
+
triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
448
|
+
cancelled: "cancelled";
|
|
449
|
+
done: "done";
|
|
450
|
+
failed: "failed";
|
|
451
|
+
"needs-you": "needs-you";
|
|
452
|
+
running: "running";
|
|
453
|
+
"waiting-ci": "waiting-ci";
|
|
454
|
+
"waiting-other": "waiting-other";
|
|
455
|
+
"waiting-timer": "waiting-timer";
|
|
456
|
+
"waiting-workers": "waiting-workers";
|
|
457
|
+
}>>>;
|
|
458
|
+
agent: z.ZodBoolean;
|
|
459
|
+
}, z.core.$strip>>>;
|
|
460
|
+
}, z.core.$strip>>>;
|
|
461
|
+
}, z.core.$strip>;
|
|
462
|
+
export type HostProjectsEntry = z.infer<typeof hostProjectsEntrySchema>;
|
|
463
|
+
/** `GET /api/v1/hosts/projects` response: local projects plus every saved host's state and projects. */
|
|
464
|
+
export declare const hostsProjectsResponseSchema: z.ZodObject<{
|
|
465
|
+
local: z.ZodObject<{
|
|
466
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
467
|
+
id: z.ZodString;
|
|
468
|
+
name: z.ZodString;
|
|
469
|
+
root: z.ZodString;
|
|
470
|
+
addedAt: z.ZodString;
|
|
471
|
+
lastOpenedAt: z.ZodString;
|
|
472
|
+
source: z.ZodEnum<{
|
|
473
|
+
checkout: "checkout";
|
|
474
|
+
local: "local";
|
|
475
|
+
}>;
|
|
476
|
+
status: z.ZodEnum<{
|
|
477
|
+
missing: "missing";
|
|
478
|
+
"not-git": "not-git";
|
|
479
|
+
ok: "ok";
|
|
480
|
+
}>;
|
|
481
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
482
|
+
forge: z.ZodOptional<z.ZodString>;
|
|
483
|
+
repoUrl: z.ZodOptional<z.ZodString>;
|
|
484
|
+
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
485
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
486
|
+
webhook: z.ZodOptional<z.ZodObject<{
|
|
487
|
+
url: z.ZodString;
|
|
488
|
+
tokenSet: z.ZodBoolean;
|
|
489
|
+
triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
490
|
+
cancelled: "cancelled";
|
|
491
|
+
done: "done";
|
|
492
|
+
failed: "failed";
|
|
493
|
+
"needs-you": "needs-you";
|
|
494
|
+
running: "running";
|
|
495
|
+
"waiting-ci": "waiting-ci";
|
|
496
|
+
"waiting-other": "waiting-other";
|
|
497
|
+
"waiting-timer": "waiting-timer";
|
|
498
|
+
"waiting-workers": "waiting-workers";
|
|
499
|
+
}>>>;
|
|
500
|
+
}, z.core.$strip>>;
|
|
501
|
+
webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
502
|
+
id: z.ZodString;
|
|
503
|
+
name: z.ZodString;
|
|
504
|
+
description: z.ZodOptional<z.ZodString>;
|
|
505
|
+
url: z.ZodString;
|
|
506
|
+
tokenSet: z.ZodBoolean;
|
|
507
|
+
tasks: z.ZodBoolean;
|
|
508
|
+
triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
509
|
+
cancelled: "cancelled";
|
|
510
|
+
done: "done";
|
|
511
|
+
failed: "failed";
|
|
512
|
+
"needs-you": "needs-you";
|
|
513
|
+
running: "running";
|
|
514
|
+
"waiting-ci": "waiting-ci";
|
|
515
|
+
"waiting-other": "waiting-other";
|
|
516
|
+
"waiting-timer": "waiting-timer";
|
|
517
|
+
"waiting-workers": "waiting-workers";
|
|
518
|
+
}>>>;
|
|
519
|
+
agent: z.ZodBoolean;
|
|
520
|
+
}, z.core.$strip>>>;
|
|
521
|
+
}, z.core.$strip>>;
|
|
522
|
+
bootProject: z.ZodNullable<z.ZodString>;
|
|
523
|
+
}, z.core.$strip>;
|
|
524
|
+
hosts: z.ZodArray<z.ZodObject<{
|
|
525
|
+
id: z.ZodString;
|
|
526
|
+
label: z.ZodString;
|
|
527
|
+
state: z.ZodEnum<{
|
|
528
|
+
"cannot-persist": "cannot-persist";
|
|
529
|
+
connected: "connected";
|
|
530
|
+
connecting: "connecting";
|
|
531
|
+
"identity-changed": "identity-changed";
|
|
532
|
+
"needs-node": "needs-node";
|
|
533
|
+
"not-hosted": "not-hosted";
|
|
534
|
+
paused: "paused";
|
|
535
|
+
"several-servers": "several-servers";
|
|
536
|
+
unreachable: "unreachable";
|
|
537
|
+
"version-mismatch": "version-mismatch";
|
|
538
|
+
}>;
|
|
539
|
+
projects: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
540
|
+
id: z.ZodString;
|
|
541
|
+
name: z.ZodString;
|
|
542
|
+
root: z.ZodString;
|
|
543
|
+
addedAt: z.ZodString;
|
|
544
|
+
lastOpenedAt: z.ZodString;
|
|
545
|
+
source: z.ZodEnum<{
|
|
546
|
+
checkout: "checkout";
|
|
547
|
+
local: "local";
|
|
548
|
+
}>;
|
|
549
|
+
status: z.ZodEnum<{
|
|
550
|
+
missing: "missing";
|
|
551
|
+
"not-git": "not-git";
|
|
552
|
+
ok: "ok";
|
|
553
|
+
}>;
|
|
554
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
555
|
+
forge: z.ZodOptional<z.ZodString>;
|
|
556
|
+
repoUrl: z.ZodOptional<z.ZodString>;
|
|
557
|
+
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
558
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
559
|
+
webhook: z.ZodOptional<z.ZodObject<{
|
|
560
|
+
url: z.ZodString;
|
|
561
|
+
tokenSet: z.ZodBoolean;
|
|
562
|
+
triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
563
|
+
cancelled: "cancelled";
|
|
564
|
+
done: "done";
|
|
565
|
+
failed: "failed";
|
|
566
|
+
"needs-you": "needs-you";
|
|
567
|
+
running: "running";
|
|
568
|
+
"waiting-ci": "waiting-ci";
|
|
569
|
+
"waiting-other": "waiting-other";
|
|
570
|
+
"waiting-timer": "waiting-timer";
|
|
571
|
+
"waiting-workers": "waiting-workers";
|
|
572
|
+
}>>>;
|
|
573
|
+
}, z.core.$strip>>;
|
|
574
|
+
webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
575
|
+
id: z.ZodString;
|
|
576
|
+
name: z.ZodString;
|
|
577
|
+
description: z.ZodOptional<z.ZodString>;
|
|
578
|
+
url: z.ZodString;
|
|
579
|
+
tokenSet: z.ZodBoolean;
|
|
580
|
+
tasks: z.ZodBoolean;
|
|
581
|
+
triggers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
582
|
+
cancelled: "cancelled";
|
|
583
|
+
done: "done";
|
|
584
|
+
failed: "failed";
|
|
585
|
+
"needs-you": "needs-you";
|
|
586
|
+
running: "running";
|
|
587
|
+
"waiting-ci": "waiting-ci";
|
|
588
|
+
"waiting-other": "waiting-other";
|
|
589
|
+
"waiting-timer": "waiting-timer";
|
|
590
|
+
"waiting-workers": "waiting-workers";
|
|
591
|
+
}>>>;
|
|
592
|
+
agent: z.ZodBoolean;
|
|
593
|
+
}, z.core.$strip>>>;
|
|
594
|
+
}, z.core.$strip>>>;
|
|
595
|
+
}, z.core.$strip>>;
|
|
596
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
597
|
+
}, z.core.$strip>;
|
|
598
|
+
export type HostsProjectsResponse = z.infer<typeof hostsProjectsResponseSchema>;
|
package/dist/contract/index.js
CHANGED
|
@@ -6722,6 +6722,36 @@ var hostServerActiveTasksResultSchema = z61.object({
|
|
|
6722
6722
|
port: hostPortSchema,
|
|
6723
6723
|
activeCount: z61.number().int().min(0)
|
|
6724
6724
|
});
|
|
6725
|
+
var HOST_GATEWAY_ERROR_CODES = [
|
|
6726
|
+
"host-unreachable",
|
|
6727
|
+
"host-version-mismatch",
|
|
6728
|
+
"host-not-hosted",
|
|
6729
|
+
"host-identity-changed",
|
|
6730
|
+
"host-several-servers",
|
|
6731
|
+
"host-paused",
|
|
6732
|
+
"host-upgrade-unsupported",
|
|
6733
|
+
"host-unexpected-redirect",
|
|
6734
|
+
"host-nested-gateway-unsupported"
|
|
6735
|
+
];
|
|
6736
|
+
var hostGatewayErrorCodeSchema = z61.enum(HOST_GATEWAY_ERROR_CODES);
|
|
6737
|
+
var hostGatewayErrorResponseSchema = z61.object({
|
|
6738
|
+
code: hostGatewayErrorCodeSchema,
|
|
6739
|
+
error: z61.string().min(1)
|
|
6740
|
+
});
|
|
6741
|
+
var hostProjectsEntrySchema = z61.object({
|
|
6742
|
+
id: hostIdSchema,
|
|
6743
|
+
label: hostLabelSchema,
|
|
6744
|
+
state: hostStateSchema,
|
|
6745
|
+
projects: z61.array(projectListEntrySchema).nullable()
|
|
6746
|
+
});
|
|
6747
|
+
var hostsProjectsResponseSchema = z61.object({
|
|
6748
|
+
local: z61.object({
|
|
6749
|
+
projects: z61.array(projectListEntrySchema),
|
|
6750
|
+
bootProject: z61.string().nullable()
|
|
6751
|
+
}),
|
|
6752
|
+
hosts: z61.array(hostProjectsEntrySchema),
|
|
6753
|
+
warning: z61.string().optional()
|
|
6754
|
+
});
|
|
6725
6755
|
export {
|
|
6726
6756
|
ACTIVITY_CHECKS_MAX,
|
|
6727
6757
|
ACTIVITY_CHECK_NAME_MAX,
|
|
@@ -6758,6 +6788,7 @@ export {
|
|
|
6758
6788
|
HANDOFF_AUTOSAVE_RECORDS_MAX,
|
|
6759
6789
|
HOME_FILE_PATTERN,
|
|
6760
6790
|
HOME_RECOVERY_REASONS,
|
|
6791
|
+
HOST_GATEWAY_ERROR_CODES,
|
|
6761
6792
|
HOST_ID_PATTERN,
|
|
6762
6793
|
HOST_NOT_CONNECTED_REASON,
|
|
6763
6794
|
HOST_STATES,
|
|
@@ -7079,9 +7110,12 @@ export {
|
|
|
7079
7110
|
homeRecoverySchema,
|
|
7080
7111
|
hostDiscoveryRequestSchema,
|
|
7081
7112
|
hostEntrySchema,
|
|
7113
|
+
hostGatewayErrorCodeSchema,
|
|
7114
|
+
hostGatewayErrorResponseSchema,
|
|
7082
7115
|
hostIdSchema,
|
|
7083
7116
|
hostLabelSchema,
|
|
7084
7117
|
hostPortSchema,
|
|
7118
|
+
hostProjectsEntrySchema,
|
|
7085
7119
|
hostResponseSchema,
|
|
7086
7120
|
hostRouteParamsSchema,
|
|
7087
7121
|
hostServerActiveTasksResultSchema,
|
|
@@ -7099,6 +7133,7 @@ export {
|
|
|
7099
7133
|
hostStateSchema,
|
|
7100
7134
|
hostSummarySchema,
|
|
7101
7135
|
hostsListResponseSchema,
|
|
7136
|
+
hostsProjectsResponseSchema,
|
|
7102
7137
|
hostsRegistryFileSchema,
|
|
7103
7138
|
humanAskClosedEventSchema,
|
|
7104
7139
|
humanInputDeliveredEventSchema,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { agentInputSchema } from '../contract/index.js';
|
|
2
|
-
import { DelegationPolicyError } from './
|
|
2
|
+
import { DelegationPolicyError } from './delegation-error.js';
|
|
3
3
|
/** Pure admission: callers persist the returned queue before attempting delivery. */
|
|
4
4
|
export function enqueueAgentInput(run, input) {
|
|
5
5
|
if (!['queued', 'running', 'waiting'].includes(run.status) ||
|
|
@@ -47,4 +47,4 @@ export function agentInputBatch(queue, format, now = Date.now()) {
|
|
|
47
47
|
}
|
|
48
48
|
return inputs.length ? { inputs, text: parts.join('\n\n') } : undefined;
|
|
49
49
|
}
|
|
50
|
-
//# sourceMappingURL=input.js.map
|
|
50
|
+
//# sourceMappingURL=agent-input-queue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-input-queue.js","sourceRoot":"","sources":["../../src/core/agent-input-queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAmB,MAAM,0CAA0C,CAAC;AAE7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,qFAAqF;AACrF,MAAM,UAAU,iBAAiB,CAAC,GAAc,EAAE,KAAiB;IACjE,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC;QACxD,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,KAAK,QAAQ,IAAI,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QAChE,MAAM,IAAI,qBAAqB,CAAC,oBAAoB,EAAE,uCAAuC,CAAC,CAAC;IACjG,CAAC;IACD,MAAM,MAAM,GAAG,gBAAgB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC7C,IAAI,MAAM,CA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,IAAI,MAAM,GAAG,CAAC,CAAC;IAC5E,KAAK,MAAM,KAAK,IAAI,KAAK,EAAE,CAAC;QAC1B,IAAI,KAAK,CAAC,WAAW;YAAE,SAAS;QAChC,IAAI,iBAAiB,CAAC,KAAK,EAAE,GAAG,CAAC;YAAE,MAAM;QACzC,IAAI,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAE,CAAC,YAAY,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC;YAAE,MAAM;QAC9E,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3B,IAAI,MAAM,CAAC,MAAM,IAAI,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,GAAG,OAAO;YAAE,MAAM;QAC/D,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAAC,MAAM,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACzF,IAAI,MAAM,CAAC,MAAM,KAAK,EAAE;YAAE,MAAM;IAClC,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1E,CAAC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { UiEvent } from './ui-events.ts';
|
|
8
8
|
import type { RunnerTimings } from './runner-runtime.ts';
|
|
9
|
-
import type { SpawnScope } from '
|
|
9
|
+
import type { SpawnScope } from './spawn-scope.ts';
|
|
10
10
|
import type { RunnerFacts } from './runner-facts.ts';
|
|
11
11
|
export interface AgentRunSpec {
|
|
12
12
|
/** Internal deadline overrides; never persisted or sent to the native wire. */
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DelegationErrorResponse, ModelChoices } from '../contract/index.js';
|
|
2
|
+
export declare class DelegationPolicyError extends Error {
|
|
3
|
+
readonly code: DelegationErrorResponse['code'];
|
|
4
|
+
readonly modelChoices?: ModelChoices | undefined;
|
|
5
|
+
constructor(code: DelegationErrorResponse['code'], message: string, modelChoices?: ModelChoices | undefined);
|
|
6
|
+
}
|
|
7
|
+
/** Task access (hearsay-tools/cezarion#2784): the human's per-task switches, read at every call. */
|
|
8
|
+
export declare const MESSAGING_OFF = "Task messaging is off for this task. A human can turn it on in the task menu.";
|
|
9
|
+
/** The messaging-off refusal. The CLI still answers `incompatible_state` with MESSAGING_OFF;
|
|
10
|
+
* `cezar_wait` tells it apart by this class, never by its text. */
|
|
11
|
+
export declare class MessagingOffError extends DelegationPolicyError {
|
|
12
|
+
constructor();
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export class DelegationPolicyError extends Error {
|
|
2
|
+
code;
|
|
3
|
+
modelChoices;
|
|
4
|
+
constructor(code, message, modelChoices) {
|
|
5
|
+
super(message);
|
|
6
|
+
this.code = code;
|
|
7
|
+
this.modelChoices = modelChoices;
|
|
8
|
+
this.name = 'DelegationPolicyError';
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
/** Task access (hearsay-tools/cezarion#2784): the human's per-task switches, read at every call. */
|
|
12
|
+
export const MESSAGING_OFF = 'Task messaging is off for this task. A human can turn it on in the task menu.';
|
|
13
|
+
/** The messaging-off refusal. The CLI still answers `incompatible_state` with MESSAGING_OFF;
|
|
14
|
+
* `cezar_wait` tells it apart by this class, never by its text. */
|
|
15
|
+
export class MessagingOffError extends DelegationPolicyError {
|
|
16
|
+
constructor() { super('incompatible_state', MESSAGING_OFF); }
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=delegation-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delegation-error.js","sourceRoot":"","sources":["../../src/core/delegation-error.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,qBAAsB,SAAQ,KAAK;IACzB,IAAI;IAA6D,YAAY;IAAlG,YAAqB,IAAqC,EAAE,OAAe,EAAW,YAA2B;QAC/G,KAAK,CAAC,OAAO,CAAC,CAAC;oBADI,IAAI;4BAA6D,YAAY;QAEhG,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;IACtC,CAAC;CACF;AAED,oGAAoG;AACpG,MAAM,CAAC,MAAM,aAAa,GAAG,+EAA+E,CAAC;AAC7G;oEACoE;AACpE,MAAM,OAAO,iBAAkB,SAAQ,qBAAqB;IAC1D,gBAAgB,KAAK,CAAC,oBAAoB,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;CAC9D"}
|
|
@@ -18,9 +18,7 @@ export interface HttpRouteContext {
|
|
|
18
18
|
readonly isHostedMode: () => boolean;
|
|
19
19
|
/** Invoke the cockpit HTTP app in-process (synthetic loopback Host, no Origin). */
|
|
20
20
|
fetchApp(request: Request): Promise<Response>;
|
|
21
|
-
|
|
22
|
-
export interface HttpRouteBundleContext extends HttpRouteContext {
|
|
23
|
-
/** Shared cockpit server context for route bundles (hearsay-tools/squawk#4442). */
|
|
21
|
+
/** Shared cockpit server context (hearsay-tools/squawk#4442, hearsay-tools/squawk#4540). */
|
|
24
22
|
readonly server?: ServerPluginContext | undefined;
|
|
25
23
|
}
|
|
26
24
|
export interface HttpHandlerRouteDefinition {
|
|
@@ -34,6 +32,11 @@ export interface HttpHandlerRouteDefinition {
|
|
|
34
32
|
* enforces auth and its own streaming body cap before buffering request bytes.
|
|
35
33
|
*/
|
|
36
34
|
readonly managesBodyLimit?: boolean | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* When true, the main server's response-compression middleware skips this route so streaming
|
|
37
|
+
* proxy responses are never buffered or re-compressed after the upstream applied `Accept-Encoding`.
|
|
38
|
+
*/
|
|
39
|
+
readonly skipCompression?: boolean | undefined;
|
|
37
40
|
handle(request: Request, context: HttpRouteContext): Response | Promise<Response>;
|
|
38
41
|
}
|
|
39
42
|
export interface HttpBundleRouteDefinition {
|
|
@@ -44,7 +47,7 @@ export interface HttpBundleRouteDefinition {
|
|
|
44
47
|
* Build the Hono sub-app mounted under `/api/v1/p/:projectId` and `/api/v1` (when `scope` is
|
|
45
48
|
* `'project'`) or under `/api/v1` only (when `scope` is `'workspace'`).
|
|
46
49
|
*/
|
|
47
|
-
createRoutes(context:
|
|
50
|
+
createRoutes(context: HttpRouteContext): Hono<any, any, any>;
|
|
48
51
|
}
|
|
49
52
|
export type HttpRouteDefinition = HttpHandlerRouteDefinition | HttpBundleRouteDefinition;
|
|
50
53
|
export declare function isHttpBundleRoute(route: HttpRouteDefinition): route is HttpBundleRouteDefinition;
|
|
@@ -17,9 +17,15 @@ function checkHandlerShape(route) {
|
|
|
17
17
|
if (typeof route.path !== 'string' || !route.path.startsWith(API_V1_PREFIX) || route.path.length <= API_V1_PREFIX.length) {
|
|
18
18
|
throw new Error(`HTTP routes: '${route.id}' path must start with '${API_V1_PREFIX}', got ${JSON.stringify(route.path)}.`);
|
|
19
19
|
}
|
|
20
|
+
if (route.path === `${API_V1_PREFIX}*`) {
|
|
21
|
+
throw new Error(`HTTP routes: '${route.id}' cannot register a root wildcard path ('${route.path}').`);
|
|
22
|
+
}
|
|
20
23
|
if (route.managesBodyLimit !== undefined && typeof route.managesBodyLimit !== 'boolean') {
|
|
21
24
|
throw new Error(`HTTP routes: '${route.id}' managesBodyLimit must be a boolean.`);
|
|
22
25
|
}
|
|
26
|
+
if (route.skipCompression !== undefined && typeof route.skipCompression !== 'boolean') {
|
|
27
|
+
throw new Error(`HTTP routes: '${route.id}' skipCompression must be a boolean.`);
|
|
28
|
+
}
|
|
23
29
|
if (typeof route.handle !== 'function')
|
|
24
30
|
throw new Error(`HTTP routes: '${route.id}' needs a handle function.`);
|
|
25
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-route-registry.js","sourceRoot":"","sources":["../../src/core/http-route-registry.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAU,CAAC;AAG5F,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,SAAS,EAAE,WAAW,CAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"http-route-registry.js","sourceRoot":"","sources":["../../src/core/http-route-registry.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAU,CAAC;AAG5F,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,SAAS,EAAE,WAAW,CAAU,CAAC;AA8CnE,MAAM,UAAU,iBAAiB,CAAC,KAA0B;IAC1D,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC;AACjC,CAAC;AAED,MAAM,aAAa,GAAG,UAAU,CAAC;AAEjC,MAAM,MAAM,GAAG,mBAAmB,CAA8B;IAC9D,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,kIAAkI;CAC7I,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,IAAI,GAAG,EAAsC,CAAC;AAEnE,SAAS,iBAAiB,CAAC,KAAiC;IAC1D,IAAI,CAAE,kBAAwC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;QACtE,MAAM,IAAI,KAAK,CAAC,iBAAiB,KAAK,CAAC,EAAE,4BAA4B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACxG,CAAC;IACD,IAAI,OAAO,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imings } from './runner-runtime.ts';
|
|
3
|
-
import type { SpawnScope } from '
|
|
3
|
+
import type { SpawnScope } from './spawn-scope.ts';
|
|
4
4
|
type ExitState = {
|
|
5
5
|
gracefulEnd?: boolean;
|
|
6
6
|
forcedKill?: boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** What a spawn site needs: the argv that runs a command inside the scope, and a report of the
|
|
2
|
+
* process it started. `command` may throw; the caller then starts nothing. `cgroupDir` and
|
|
3
|
+
* `jobName` let `spawnSessionLeader` nest a per-session container directly inside the worker's
|
|
4
|
+
* container without double-wrapping (hearsay-tools/squawk#1345). */
|
|
5
|
+
export interface SpawnScope {
|
|
6
|
+
command(file: string, args: readonly string[]): [string, string[]];
|
|
7
|
+
started(pid: number): void;
|
|
8
|
+
cgroupDir?(): string | undefined;
|
|
9
|
+
jobName?(): string | undefined;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spawn-scope.js","sourceRoot":"","sources":["../../src/core/spawn-scope.ts"],"names":[],"mappings":""}
|
package/dist/delegation/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ import { conversationSendRequestSchema, conversationSendEffectSchema, conversati
|
|
|
11
11
|
import { workerListPageSchema, workerListResultSchema, workerCollectedResultSchema, workerCancelWaitRequestSchema, delegationCancelWaitResultSchema, workerOperationSchema, workerParamsSchema, sharedSpawnRefusal, workerSpawnRequestSchema, workerSteerRequestSchema, workerDestroyRequestSchema, workerWaitRequestSchema, workerSpawnResultSchema, workerInspectionSchema, workerSteerResultSchema, workerStopResultSchema, workerDestroyResultSchema, workerDiffSchema, workerSummaryPageSchema, workerSummaryRequestSchema, workerWaitResultSchema, delegationWaitResultSchema, peerWaitRequestSchema, delegationErrorResponseSchema, } from '../contract/index.js';
|
|
12
12
|
import { discoveryRequestSchema, discoveredTasksSchema } from '../contract/index.js';
|
|
13
13
|
import { runnerFlag, skillFlagIssue } from '../workflows/types.js';
|
|
14
|
-
import { DelegationPolicyError } from '
|
|
14
|
+
import { DelegationPolicyError } from '../core/delegation-error.js';
|
|
15
15
|
import { gitSync } from '../git-command.js';
|
|
16
16
|
/** Accept exactly the endpoint format minted by this installation's private listener. */
|
|
17
17
|
export function delegationEndpoint(value) {
|