@hearsay-tools/squawk 0.18.0-pr4113.7894 → 0.18.0-pr4114.7891
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 +42 -42
- package/dist/cli-dispatch.d.ts +2 -1
- package/dist/cli-dispatch.js +3 -7
- package/dist/cli-dispatch.js.map +1 -1
- package/dist/delegation/routes.d.ts +81 -81
- package/dist/delegation/transport.d.ts +21 -21
- package/dist/index.js +36 -42
- package/dist/index.js.map +1 -1
- package/dist/legacy-runs.d.ts +5 -6
- package/dist/legacy-runs.js +3 -16
- package/dist/legacy-runs.js.map +1 -1
- package/dist/runs/project-run-connection.d.ts +1 -2
- package/dist/runs/project-run-connection.js +1 -4
- package/dist/runs/project-run-connection.js.map +1 -1
- package/dist/runs/project-run-sources.d.ts +2 -2
- package/dist/runs/project-run-sources.js +3 -4
- package/dist/runs/project-run-sources.js.map +1 -1
- package/dist/runs/run-database-migrations.js +0 -41
- package/dist/runs/run-database-migrations.js.map +1 -1
- package/dist/runs/run-database-version.d.ts +2 -3
- package/dist/runs/run-database-version.js +2 -3
- package/dist/runs/run-database-version.js.map +1 -1
- package/dist/runs/run-database.d.ts +1 -1
- package/dist/runs/run-database.js +45 -60
- package/dist/runs/run-database.js.map +1 -1
- package/dist/runs/run-index.js +6 -12
- package/dist/runs/run-index.js.map +1 -1
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/models-routes.d.ts +13 -13
- package/dist/server/provider-sign-in-routes.d.ts +2 -2
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/runner-install-routes.d.ts +10 -10
- package/dist/server/runners-routes.d.ts +10 -10
- package/dist/server/server.d.ts +1927 -1927
- package/dist/subcommands.d.ts +0 -2
- package/dist/subcommands.js +2 -23
- package/dist/subcommands.js.map +1 -1
- package/dist/task-cli/cli.js +2 -2
- package/dist/task-cli/cli.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/{activity-motion-BNen0Yj8.js → activity-motion-DKY_Cd-w.js} +1 -1
- package/web/dist/assets/{activity-route-BGQMI1Yu.js → activity-route-CFOKEc61.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-Cr-XVbz_.js → commit-diff-panel-BiNUdbd8.js} +1 -1
- package/web/dist/assets/design-icons-CzEoMH9c.js +1 -0
- package/web/dist/assets/{dialog-DSwzMeY3.js → dialog-B3EUmMBQ.js} +1 -1
- package/web/dist/assets/{diff-DqLaONaB.js → diff-WtmvA0fu.js} +2 -2
- package/web/dist/assets/{diff-controls-C8aqhty4.js → diff-controls-CA6lS7Yp.js} +1 -1
- package/web/dist/assets/{diff-view-CHj5zMlT.js → diff-view-BG91xPpY.js} +1 -1
- package/web/dist/assets/{dropdown-menu-D4zMgwkC.js → dropdown-menu-Dso6iTId.js} +1 -1
- package/web/dist/assets/{file-preview-C9yv3267.js → file-preview-YCD-8e6S.js} +1 -1
- package/web/dist/assets/{git-toolbar-uHPKACQa.js → git-toolbar-B5YAUWQ7.js} +1 -1
- package/web/dist/assets/{github-Fy6-Zf4b.js → github-DHeSsbSc.js} +1 -1
- package/web/dist/assets/{global-activity-route-CpAGVfbb.js → global-activity-route-CMq49K4H.js} +1 -1
- package/web/dist/assets/{index-Dn02NPUV.js → index-C3pMUosD.js} +4 -4
- package/web/dist/assets/{markdown-9j2EqN9q.js → markdown-OTuqNLUj.js} +1 -1
- package/web/dist/assets/{picker-pill-D8SyrTxD.js → picker-pill-BhCKGHAn.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-CBKK0crt.js → preview-pane-connected-BvOk8924.js} +1 -1
- package/web/dist/assets/{prompt-template-menu-DT_0Pyd5.js → prompt-template-menu-YN8kTo5-.js} +1 -1
- package/web/dist/assets/{reference-chip-DwiE3MIR.js → reference-chip-BuUCKkhB.js} +1 -1
- package/web/dist/assets/{repo-git-CjKFvYdb.js → repo-git-B2M2bD92.js} +1 -1
- package/web/dist/assets/{report-reader--BXJs1DJ.js → report-reader-DeyzG6gC.js} +1 -1
- package/web/dist/assets/{reports-CZw5ztdC.js → reports-Ca8vCNah.js} +1 -1
- package/web/dist/assets/{run-header-BOEjnB1z.js → run-header-DP7P0saA.js} +1 -1
- package/web/dist/assets/{skills-aBp_7vVU.js → skills-5ODbLwjd.js} +1 -1
- package/web/dist/assets/{task-changes-B0u392zf.js → task-changes-BkeLycTI.js} +1 -1
- package/web/dist/assets/{task-commits-DzWFfo43.js → task-commits-Db8B7L6o.js} +1 -1
- package/web/dist/assets/{task-files-DTWfdMRi.js → task-files-CFVAB4Bl.js} +1 -1
- package/web/dist/assets/{task-github-item-CFWE3MpX.js → task-github-item-z295iYNd.js} +1 -1
- package/web/dist/assets/{task-thread-vYwAvLtU.js → task-thread-UXl-CsYi.js} +1 -1
- package/web/dist/assets/{thread-state-zGEm4Ym4.js → thread-state-BsbjdGGk.js} +1 -1
- package/web/dist/assets/{use-desktop-DN7wbSS7.js → use-desktop-BqVEJ3dr.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-C9YTgLEG.js → use-hand-to-agent-state-DXfR9R5L.js} +1 -1
- package/web/dist/assets/{workflows-C8EnR0NU.js → workflows-BCuRK6_a.js} +1 -1
- package/web/dist/index.html +8 -8
- package/dist/runs/run-index-cache.d.ts +0 -10
- package/dist/runs/run-index-cache.js +0 -45
- package/dist/runs/run-index-cache.js.map +0 -1
- package/web/dist/assets/design-icons-B6-0w7Aw.js +0 -1
|
@@ -285,12 +285,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
285
285
|
"/api/v1/tools/ask": {
|
|
286
286
|
$post: {
|
|
287
287
|
output: {
|
|
288
|
-
|
|
289
|
-
code: 'unavailable';
|
|
288
|
+
code: 'capability_revoked';
|
|
290
289
|
message: string;
|
|
291
290
|
};
|
|
292
291
|
outputFormat: "json";
|
|
293
|
-
status:
|
|
292
|
+
status: 401;
|
|
294
293
|
input: {
|
|
295
294
|
json: {
|
|
296
295
|
questions: {
|
|
@@ -309,11 +308,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
309
308
|
};
|
|
310
309
|
} | {
|
|
311
310
|
output: {
|
|
312
|
-
|
|
311
|
+
ok: false;
|
|
312
|
+
code: 'unavailable';
|
|
313
313
|
message: string;
|
|
314
314
|
};
|
|
315
315
|
outputFormat: "json";
|
|
316
|
-
status:
|
|
316
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
317
317
|
input: {
|
|
318
318
|
json: {
|
|
319
319
|
questions: {
|
|
@@ -383,12 +383,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
383
383
|
"/api/v1/tools/cancel-wait": {
|
|
384
384
|
$post: {
|
|
385
385
|
output: {
|
|
386
|
-
|
|
387
|
-
code: 'unavailable';
|
|
386
|
+
code: 'capability_revoked';
|
|
388
387
|
message: string;
|
|
389
388
|
};
|
|
390
389
|
outputFormat: "json";
|
|
391
|
-
status:
|
|
390
|
+
status: 401;
|
|
392
391
|
input: {
|
|
393
392
|
json: {
|
|
394
393
|
wait_id: string;
|
|
@@ -396,11 +395,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
396
395
|
};
|
|
397
396
|
} | {
|
|
398
397
|
output: {
|
|
399
|
-
|
|
398
|
+
cancelled: false;
|
|
399
|
+
code: 'unavailable';
|
|
400
400
|
message: string;
|
|
401
401
|
};
|
|
402
402
|
outputFormat: "json";
|
|
403
|
-
status:
|
|
403
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
404
404
|
input: {
|
|
405
405
|
json: {
|
|
406
406
|
wait_id: string;
|
|
@@ -448,12 +448,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
448
448
|
"/api/v1/tools/done": {
|
|
449
449
|
$post: {
|
|
450
450
|
output: {
|
|
451
|
-
|
|
452
|
-
code: 'unavailable';
|
|
451
|
+
code: 'capability_revoked';
|
|
453
452
|
message: string;
|
|
454
453
|
};
|
|
455
454
|
outputFormat: "json";
|
|
456
|
-
status:
|
|
455
|
+
status: 401;
|
|
457
456
|
input: {
|
|
458
457
|
json: {
|
|
459
458
|
summary?: string | undefined;
|
|
@@ -461,11 +460,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
461
460
|
};
|
|
462
461
|
} | {
|
|
463
462
|
output: {
|
|
464
|
-
|
|
463
|
+
ok: false;
|
|
464
|
+
code: 'unavailable';
|
|
465
465
|
message: string;
|
|
466
466
|
};
|
|
467
467
|
outputFormat: "json";
|
|
468
|
-
status:
|
|
468
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
469
469
|
input: {
|
|
470
470
|
json: {
|
|
471
471
|
summary?: string | undefined;
|
|
@@ -548,13 +548,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
548
548
|
"/api/v1/tools/preview-stop": {
|
|
549
549
|
$post: {
|
|
550
550
|
output: {
|
|
551
|
-
|
|
552
|
-
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
551
|
+
code: 'capability_revoked';
|
|
553
552
|
message: string;
|
|
554
|
-
hint: string;
|
|
555
553
|
};
|
|
556
554
|
outputFormat: "json";
|
|
557
|
-
status:
|
|
555
|
+
status: 401;
|
|
558
556
|
input: {
|
|
559
557
|
json: {
|
|
560
558
|
port: number;
|
|
@@ -563,11 +561,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
563
561
|
};
|
|
564
562
|
} | {
|
|
565
563
|
output: {
|
|
566
|
-
|
|
564
|
+
ok: boolean;
|
|
565
|
+
code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
|
|
567
566
|
message: string;
|
|
567
|
+
hint: string;
|
|
568
568
|
};
|
|
569
569
|
outputFormat: "json";
|
|
570
|
-
status:
|
|
570
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
571
571
|
input: {
|
|
572
572
|
json: {
|
|
573
573
|
port: number;
|
|
@@ -580,13 +580,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
580
580
|
"/api/v1/tools/preview-serve": {
|
|
581
581
|
$post: {
|
|
582
582
|
output: {
|
|
583
|
-
|
|
584
|
-
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
583
|
+
code: 'capability_revoked';
|
|
585
584
|
message: string;
|
|
586
|
-
hint: string;
|
|
587
585
|
};
|
|
588
586
|
outputFormat: "json";
|
|
589
|
-
status:
|
|
587
|
+
status: 401;
|
|
590
588
|
input: {
|
|
591
589
|
json: {
|
|
592
590
|
command: string;
|
|
@@ -598,11 +596,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
598
596
|
};
|
|
599
597
|
} | {
|
|
600
598
|
output: {
|
|
601
|
-
|
|
599
|
+
ok: boolean;
|
|
600
|
+
code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
|
|
602
601
|
message: string;
|
|
602
|
+
hint: string;
|
|
603
603
|
};
|
|
604
604
|
outputFormat: "json";
|
|
605
|
-
status:
|
|
605
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
606
606
|
input: {
|
|
607
607
|
json: {
|
|
608
608
|
command: string;
|
|
@@ -618,12 +618,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
618
618
|
"/api/v1/tools/automation": {
|
|
619
619
|
$post: {
|
|
620
620
|
output: {
|
|
621
|
-
|
|
622
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
621
|
+
code: 'capability_revoked';
|
|
623
622
|
message: string;
|
|
624
623
|
};
|
|
625
624
|
outputFormat: "json";
|
|
626
|
-
status:
|
|
625
|
+
status: 401;
|
|
627
626
|
input: {
|
|
628
627
|
json: {
|
|
629
628
|
action: "create";
|
|
@@ -703,11 +702,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
703
702
|
};
|
|
704
703
|
} | {
|
|
705
704
|
output: {
|
|
706
|
-
|
|
705
|
+
ok: false;
|
|
706
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
707
707
|
message: string;
|
|
708
708
|
};
|
|
709
709
|
outputFormat: "json";
|
|
710
|
-
status:
|
|
710
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
711
711
|
input: {
|
|
712
712
|
json: {
|
|
713
713
|
action: "create";
|
|
@@ -963,12 +963,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
963
963
|
"/api/v1/tools/schedule-task": {
|
|
964
964
|
$post: {
|
|
965
965
|
output: {
|
|
966
|
-
|
|
967
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
966
|
+
code: 'capability_revoked';
|
|
968
967
|
message: string;
|
|
969
968
|
};
|
|
970
969
|
outputFormat: "json";
|
|
971
|
-
status:
|
|
970
|
+
status: 401;
|
|
972
971
|
input: {
|
|
973
972
|
json: {
|
|
974
973
|
at?: string | undefined;
|
|
@@ -985,11 +984,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
985
984
|
};
|
|
986
985
|
} | {
|
|
987
986
|
output: {
|
|
988
|
-
|
|
987
|
+
ok: false;
|
|
988
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
989
989
|
message: string;
|
|
990
990
|
};
|
|
991
991
|
outputFormat: "json";
|
|
992
|
-
status:
|
|
992
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
993
993
|
input: {
|
|
994
994
|
json: {
|
|
995
995
|
at?: string | undefined;
|
|
@@ -1044,12 +1044,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1044
1044
|
"/api/v1/tools/scheduled-tasks": {
|
|
1045
1045
|
$post: {
|
|
1046
1046
|
output: {
|
|
1047
|
-
|
|
1048
|
-
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
1047
|
+
code: 'capability_revoked';
|
|
1049
1048
|
message: string;
|
|
1050
1049
|
};
|
|
1051
1050
|
outputFormat: "json";
|
|
1052
|
-
status:
|
|
1051
|
+
status: 401;
|
|
1053
1052
|
input: {
|
|
1054
1053
|
json: {
|
|
1055
1054
|
at?: string | undefined;
|
|
@@ -1082,11 +1081,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
1082
1081
|
};
|
|
1083
1082
|
} | {
|
|
1084
1083
|
output: {
|
|
1085
|
-
|
|
1084
|
+
ok: false;
|
|
1085
|
+
code: import('../contract/index.js').ScheduledTaskRefusalCode;
|
|
1086
1086
|
message: string;
|
|
1087
1087
|
};
|
|
1088
1088
|
outputFormat: "json";
|
|
1089
|
-
status:
|
|
1089
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1090
1090
|
input: {
|
|
1091
1091
|
json: {
|
|
1092
1092
|
at?: string | undefined;
|
package/dist/cli-dispatch.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { operatorHomeEntry, prepareOperatorHome } from './home/entry.ts';
|
|
|
3
3
|
import type { Home } from './home/home.ts';
|
|
4
4
|
import { runSubcommand } from './subcommands.ts';
|
|
5
5
|
import { getRepoInfo } from './server/git.ts';
|
|
6
|
+
import { runProjectsCommand } from './workspace/projects-cli.ts';
|
|
6
7
|
import type { serverCommand } from './server-command.ts';
|
|
7
8
|
import type { TaskAccess } from './headless-run.ts';
|
|
8
9
|
export declare const defaultCliDeps: {
|
|
@@ -11,7 +12,7 @@ export declare const defaultCliDeps: {
|
|
|
11
12
|
prepareOperatorHome: typeof prepareOperatorHome;
|
|
12
13
|
runSubcommand: typeof runSubcommand;
|
|
13
14
|
getRepoInfo: typeof getRepoInfo;
|
|
14
|
-
runProjectsCommand:
|
|
15
|
+
runProjectsCommand: typeof runProjectsCommand;
|
|
15
16
|
process: NodeJS.Process;
|
|
16
17
|
console: Console;
|
|
17
18
|
};
|
package/dist/cli-dispatch.js
CHANGED
|
@@ -3,15 +3,14 @@ import { parseArgs } from 'node:util';
|
|
|
3
3
|
import { resolve } from 'node:path';
|
|
4
4
|
import { operatorHomeEntry, prepareOperatorHome } from './home/entry.js';
|
|
5
5
|
import { bindManagedCliHome } from './managed-install/runtime-home.js';
|
|
6
|
-
import { runSubcommand
|
|
6
|
+
import { runSubcommand } from './subcommands.js';
|
|
7
7
|
import { getRepoInfo } from './server/git.js';
|
|
8
|
+
import { runProjectsCommand } from './workspace/projects-cli.js';
|
|
8
9
|
import { projectPaths } from './project-paths.js';
|
|
9
10
|
import { assertProjectAdmitted, projectAdmissionRefusal } from './server/cockpit-ownership.js';
|
|
10
11
|
export const defaultCliDeps = {
|
|
11
12
|
parseArgs, operatorHomeEntry, prepareOperatorHome,
|
|
12
|
-
runSubcommand, getRepoInfo,
|
|
13
|
-
runProjectsCommand: async (...args) => (await import('./workspace/projects-cli.js')).runProjectsCommand(...args),
|
|
14
|
-
process, console,
|
|
13
|
+
runSubcommand, getRepoInfo, runProjectsCommand, process, console,
|
|
15
14
|
};
|
|
16
15
|
function cliHelp() {
|
|
17
16
|
return `Squawk — local cockpit for AI agent tasks in your repo
|
|
@@ -152,9 +151,6 @@ async function dispatch(deps) {
|
|
|
152
151
|
if (printCliMetadata(deps, values, help))
|
|
153
152
|
return;
|
|
154
153
|
const command = positionals[0] ?? 'serve';
|
|
155
|
-
if (['serve', 'run', 'init', 'projects', 'server-install', 'server-deploy', 'server-uninstall'].includes(command)) {
|
|
156
|
-
await prepareCommandRuntime(command);
|
|
157
|
-
}
|
|
158
154
|
const task = positionals.slice(1).join(' ').trim();
|
|
159
155
|
homeEntry = commandHomeEntry(command, task);
|
|
160
156
|
const cwd = resolve(values.repo ?? deps.process.cwd());
|
package/dist/cli-dispatch.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-dispatch.js","sourceRoot":"","sources":["../src/cli-dispatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,OAAO,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"cli-dispatch.js","sourceRoot":"","sources":["../src/cli-dispatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAI/F,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,iBAAiB,EAAE,mBAA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,GAAG,CAAC;gBACxB,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAC,CAAC;YACH,OAAO;QACT,KAAK,kBAAkB;YACrB,MAAM,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE;gBACvE,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC;gBACxB,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAC,CAAC;YACH,OAAO;QACT;YACE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,oBAAoB,OAAO,IAAI,CAAC,CAAC;YACpD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;YACzB,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IAC9B,CAAC;AACH,CAAC"}
|
|
@@ -27,6 +27,18 @@ export declare function delegationFailure(error: unknown): {
|
|
|
27
27
|
export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
|
|
28
28
|
"/list": {
|
|
29
29
|
$get: {
|
|
30
|
+
output: {
|
|
31
|
+
error: string;
|
|
32
|
+
code?: "invalid_input" | undefined;
|
|
33
|
+
};
|
|
34
|
+
outputFormat: "json";
|
|
35
|
+
status: 400;
|
|
36
|
+
input: {
|
|
37
|
+
query: {
|
|
38
|
+
offset?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
} | {
|
|
30
42
|
output: {
|
|
31
43
|
workers: {
|
|
32
44
|
workerId: string;
|
|
@@ -73,24 +85,24 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
73
85
|
offset?: string | undefined;
|
|
74
86
|
};
|
|
75
87
|
};
|
|
76
|
-
} | {
|
|
77
|
-
output: {
|
|
78
|
-
error: string;
|
|
79
|
-
code?: "invalid_input" | undefined;
|
|
80
|
-
};
|
|
81
|
-
outputFormat: "json";
|
|
82
|
-
status: 400;
|
|
83
|
-
input: {
|
|
84
|
-
query: {
|
|
85
|
-
offset?: string | undefined;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
90
|
} & {
|
|
91
91
|
"/discover": {
|
|
92
92
|
$post: {
|
|
93
93
|
output: {
|
|
94
|
+
tasks: {
|
|
95
|
+
id: string;
|
|
96
|
+
title: string;
|
|
97
|
+
runner?: string | undefined;
|
|
98
|
+
status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
99
|
+
attention: "error" | "none" | "permission" | "running" | "unseen" | "waiting";
|
|
100
|
+
attentionLabel: string;
|
|
101
|
+
accepts: boolean;
|
|
102
|
+
reason?: string | undefined;
|
|
103
|
+
}[];
|
|
104
|
+
nextOffset?: number | undefined;
|
|
105
|
+
} | {
|
|
94
106
|
scope: "host-default-account";
|
|
95
107
|
runners: {
|
|
96
108
|
requiresAccountHome?: boolean | undefined;
|
|
@@ -111,18 +123,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
111
123
|
source: "cache" | "live" | "unavailable";
|
|
112
124
|
stale: boolean;
|
|
113
125
|
reason?: string | undefined;
|
|
114
|
-
} | {
|
|
115
|
-
tasks: {
|
|
116
|
-
id: string;
|
|
117
|
-
title: string;
|
|
118
|
-
runner?: string | undefined;
|
|
119
|
-
status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
120
|
-
attention: "error" | "none" | "permission" | "running" | "unseen" | "waiting";
|
|
121
|
-
attentionLabel: string;
|
|
122
|
-
accepts: boolean;
|
|
123
|
-
reason?: string | undefined;
|
|
124
|
-
}[];
|
|
125
|
-
nextOffset?: number | undefined;
|
|
126
126
|
};
|
|
127
127
|
outputFormat: "json";
|
|
128
128
|
status: 200;
|
|
@@ -232,13 +232,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
232
232
|
status: 200;
|
|
233
233
|
input: {
|
|
234
234
|
json: {
|
|
235
|
-
workerIds: string[];
|
|
236
|
-
timeoutSeconds?: number | undefined;
|
|
237
|
-
mode?: "all" | "any" | "one" | undefined;
|
|
238
|
-
} | {
|
|
239
235
|
requestIds: string[];
|
|
240
236
|
mode?: "all" | "any" | "one" | undefined;
|
|
241
237
|
timeoutSeconds?: number | undefined;
|
|
238
|
+
} | {
|
|
239
|
+
workerIds: string[];
|
|
240
|
+
timeoutSeconds?: number | undefined;
|
|
241
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
242
242
|
} | {
|
|
243
243
|
peerIds: string[];
|
|
244
244
|
timeoutSeconds?: number | undefined;
|
|
@@ -629,6 +629,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
629
629
|
} & {
|
|
630
630
|
"/:workerId": {
|
|
631
631
|
$get: {
|
|
632
|
+
output: {
|
|
633
|
+
error: string;
|
|
634
|
+
code?: "invalid_input" | undefined;
|
|
635
|
+
};
|
|
636
|
+
outputFormat: "json";
|
|
637
|
+
status: 400;
|
|
638
|
+
input: {
|
|
639
|
+
param: {
|
|
640
|
+
workerId: string;
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
} | {
|
|
632
644
|
output: {
|
|
633
645
|
workerId: string;
|
|
634
646
|
settled: boolean;
|
|
@@ -746,7 +758,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
746
758
|
workerId: string;
|
|
747
759
|
};
|
|
748
760
|
};
|
|
749
|
-
}
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
} & {
|
|
764
|
+
"/:workerId/collect": {
|
|
765
|
+
$post: {
|
|
750
766
|
output: {
|
|
751
767
|
error: string;
|
|
752
768
|
code?: "invalid_input" | undefined;
|
|
@@ -757,12 +773,10 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
757
773
|
param: {
|
|
758
774
|
workerId: string;
|
|
759
775
|
};
|
|
776
|
+
} & {
|
|
777
|
+
json: Record<string, never>;
|
|
760
778
|
};
|
|
761
|
-
}
|
|
762
|
-
};
|
|
763
|
-
} & {
|
|
764
|
-
"/:workerId/collect": {
|
|
765
|
-
$post: {
|
|
779
|
+
} | {
|
|
766
780
|
output: {
|
|
767
781
|
workerId: string;
|
|
768
782
|
parentRunId: string;
|
|
@@ -885,7 +899,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
885
899
|
} & {
|
|
886
900
|
json: Record<string, never>;
|
|
887
901
|
};
|
|
888
|
-
}
|
|
902
|
+
};
|
|
903
|
+
};
|
|
904
|
+
} & {
|
|
905
|
+
"/:workerId/steer": {
|
|
906
|
+
$post: {
|
|
889
907
|
output: {
|
|
890
908
|
error: string;
|
|
891
909
|
code?: "invalid_input" | undefined;
|
|
@@ -897,13 +915,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
897
915
|
workerId: string;
|
|
898
916
|
};
|
|
899
917
|
} & {
|
|
900
|
-
json:
|
|
918
|
+
json: {
|
|
919
|
+
text: string;
|
|
920
|
+
};
|
|
901
921
|
};
|
|
902
|
-
}
|
|
903
|
-
};
|
|
904
|
-
} & {
|
|
905
|
-
"/:workerId/steer": {
|
|
906
|
-
$post: {
|
|
922
|
+
} | {
|
|
907
923
|
output: {
|
|
908
924
|
workerId: string;
|
|
909
925
|
state: "delivered" | "queued";
|
|
@@ -919,7 +935,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
919
935
|
text: string;
|
|
920
936
|
};
|
|
921
937
|
};
|
|
922
|
-
}
|
|
938
|
+
};
|
|
939
|
+
};
|
|
940
|
+
} & {
|
|
941
|
+
"/:workerId/stop": {
|
|
942
|
+
$post: {
|
|
923
943
|
output: {
|
|
924
944
|
error: string;
|
|
925
945
|
code?: "invalid_input" | undefined;
|
|
@@ -931,15 +951,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
931
951
|
workerId: string;
|
|
932
952
|
};
|
|
933
953
|
} & {
|
|
934
|
-
json:
|
|
935
|
-
text: string;
|
|
936
|
-
};
|
|
954
|
+
json: Record<string, never>;
|
|
937
955
|
};
|
|
938
|
-
}
|
|
939
|
-
};
|
|
940
|
-
} & {
|
|
941
|
-
"/:workerId/stop": {
|
|
942
|
-
$post: {
|
|
956
|
+
} | {
|
|
943
957
|
output: {
|
|
944
958
|
workerId: string;
|
|
945
959
|
state: "stopping" | "terminated";
|
|
@@ -953,7 +967,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
953
967
|
} & {
|
|
954
968
|
json: Record<string, never>;
|
|
955
969
|
};
|
|
956
|
-
}
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
} & {
|
|
973
|
+
"/:workerId/destroy": {
|
|
974
|
+
$post: {
|
|
957
975
|
output: {
|
|
958
976
|
error: string;
|
|
959
977
|
code?: "invalid_input" | undefined;
|
|
@@ -965,13 +983,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
965
983
|
workerId: string;
|
|
966
984
|
};
|
|
967
985
|
} & {
|
|
968
|
-
json:
|
|
986
|
+
json: {
|
|
987
|
+
discardWork?: true | undefined;
|
|
988
|
+
};
|
|
969
989
|
};
|
|
970
|
-
}
|
|
971
|
-
};
|
|
972
|
-
} & {
|
|
973
|
-
"/:workerId/destroy": {
|
|
974
|
-
$post: {
|
|
990
|
+
} | {
|
|
975
991
|
output: {
|
|
976
992
|
workerId: string;
|
|
977
993
|
state: "complete" | "incomplete";
|
|
@@ -1000,22 +1016,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1000
1016
|
discardWork?: true | undefined;
|
|
1001
1017
|
};
|
|
1002
1018
|
};
|
|
1003
|
-
} | {
|
|
1004
|
-
output: {
|
|
1005
|
-
error: string;
|
|
1006
|
-
code?: "invalid_input" | undefined;
|
|
1007
|
-
};
|
|
1008
|
-
outputFormat: "json";
|
|
1009
|
-
status: 400;
|
|
1010
|
-
input: {
|
|
1011
|
-
param: {
|
|
1012
|
-
workerId: string;
|
|
1013
|
-
};
|
|
1014
|
-
} & {
|
|
1015
|
-
json: {
|
|
1016
|
-
discardWork?: true | undefined;
|
|
1017
|
-
};
|
|
1018
|
-
};
|
|
1019
1019
|
} | {
|
|
1020
1020
|
output: {
|
|
1021
1021
|
workerId: string;
|
|
@@ -1051,13 +1051,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1051
1051
|
"/:workerId/diff": {
|
|
1052
1052
|
$get: {
|
|
1053
1053
|
output: {
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
diff: string;
|
|
1057
|
-
truncated: boolean;
|
|
1054
|
+
error: string;
|
|
1055
|
+
code?: "invalid_input" | undefined;
|
|
1058
1056
|
};
|
|
1059
1057
|
outputFormat: "json";
|
|
1060
|
-
status:
|
|
1058
|
+
status: 400;
|
|
1061
1059
|
input: {
|
|
1062
1060
|
param: {
|
|
1063
1061
|
workerId: string;
|
|
@@ -1065,11 +1063,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1065
1063
|
};
|
|
1066
1064
|
} | {
|
|
1067
1065
|
output: {
|
|
1068
|
-
|
|
1069
|
-
|
|
1066
|
+
workerId: string;
|
|
1067
|
+
baselineSha: string;
|
|
1068
|
+
diff: string;
|
|
1069
|
+
truncated: boolean;
|
|
1070
1070
|
};
|
|
1071
1071
|
outputFormat: "json";
|
|
1072
|
-
status:
|
|
1072
|
+
status: 200;
|
|
1073
1073
|
input: {
|
|
1074
1074
|
param: {
|
|
1075
1075
|
workerId: string;
|
|
@@ -66,16 +66,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
66
66
|
"/discover": {
|
|
67
67
|
$post: {
|
|
68
68
|
output: {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
scope: "host-default-account";
|
|
70
|
+
runners: {
|
|
71
|
+
requiresAccountHome?: boolean | undefined;
|
|
72
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
73
|
+
enabled?: boolean | undefined;
|
|
74
|
+
hint?: string | undefined;
|
|
75
|
+
authFailureId?: string | undefined;
|
|
76
|
+
runner: string;
|
|
75
77
|
}[];
|
|
76
|
-
source: "cache" | "live" | "unavailable";
|
|
77
|
-
stale: boolean;
|
|
78
|
-
reason?: string | undefined;
|
|
79
78
|
} | {
|
|
80
79
|
tasks: {
|
|
81
80
|
id: string;
|
|
@@ -89,15 +88,16 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
89
88
|
}[];
|
|
90
89
|
nextOffset?: number | undefined;
|
|
91
90
|
} | {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
authFailureId?: string | undefined;
|
|
99
|
-
runner: string;
|
|
91
|
+
runner: string;
|
|
92
|
+
models: {
|
|
93
|
+
id: string;
|
|
94
|
+
label: string;
|
|
95
|
+
description: string;
|
|
96
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
100
97
|
}[];
|
|
98
|
+
source: "cache" | "live" | "unavailable";
|
|
99
|
+
stale: boolean;
|
|
100
|
+
reason?: string | undefined;
|
|
101
101
|
};
|
|
102
102
|
outputFormat: "json";
|
|
103
103
|
status: 200;
|
|
@@ -207,13 +207,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
207
207
|
status: 200;
|
|
208
208
|
input: {
|
|
209
209
|
json: {
|
|
210
|
-
requestIds: string[];
|
|
211
|
-
mode?: "all" | "any" | "one" | undefined;
|
|
212
|
-
timeoutSeconds?: number | undefined;
|
|
213
|
-
} | {
|
|
214
210
|
workerIds: string[];
|
|
215
211
|
timeoutSeconds?: number | undefined;
|
|
216
212
|
mode?: "all" | "any" | "one" | undefined;
|
|
213
|
+
} | {
|
|
214
|
+
requestIds: string[];
|
|
215
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
216
|
+
timeoutSeconds?: number | undefined;
|
|
217
217
|
} | {
|
|
218
218
|
peerIds: string[];
|
|
219
219
|
timeoutSeconds?: number | undefined;
|