@hearsay-tools/squawk 0.18.0-dev.7889 → 0.18.0-dev.7893
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/cli-dispatch.d.ts +1 -2
- package/dist/cli-dispatch.js +7 -3
- 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 +42 -36
- package/dist/index.js.map +1 -1
- package/dist/legacy-runs.d.ts +6 -5
- package/dist/legacy-runs.js +16 -3
- package/dist/legacy-runs.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/provider-sign-in-routes.d.ts +2 -2
- package/dist/server/runner-install-routes.d.ts +10 -10
- package/dist/server/server.d.ts +98 -98
- package/dist/subcommands.d.ts +2 -0
- package/dist/subcommands.js +23 -2
- 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/dist/legacy-runs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legacy-runs.js","sourceRoot":"","sources":["../src/legacy-runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"legacy-runs.js","sourceRoot":"","sources":["../src/legacy-runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAElE;;;;;;;;;;;;;GAaG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AAEnD,gGAAg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;IAC5G,IAAI,GAAG,KAAK,MAAM,EAAE,CAAC;QACnB,MAAM,EAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACpC,OAAO,EAAE,IAAI,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAC5C,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,IAAY,EAAE,IAAY;IACtD,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IAC7C,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,GAAG,CAAC;QAAE,OAAO,KAAK,CAAC;IACnD,IAAI,GAAwB,CAAC;IAC7B,yFAAyF;IACzF,IAAI,CAAC;QAAC,GAAG,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;IAAC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACzE,IAAI,KAAK,YAAY,yBAAyB;YAAE,OAAO,KAAK,CAAC;QAC7D,MAAM,KAAK,CAAC;IACd,CAAC;IACD,OAAO,eAAe,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,KAAK,SAAS,CAAC;AACxF,CAAC"}
|
|
@@ -16,12 +16,6 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
|
|
|
16
16
|
output: {
|
|
17
17
|
generation: string;
|
|
18
18
|
results: ({
|
|
19
|
-
projectId: string;
|
|
20
|
-
runId: string;
|
|
21
|
-
type: "error" | "reset";
|
|
22
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
23
|
-
error: string;
|
|
24
|
-
} | {
|
|
25
19
|
projectId: string;
|
|
26
20
|
runId: string;
|
|
27
21
|
type: "batch";
|
|
@@ -35,6 +29,12 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
|
|
|
35
29
|
cursor: string;
|
|
36
30
|
afterSeq: number;
|
|
37
31
|
hasMore: boolean;
|
|
32
|
+
} | {
|
|
33
|
+
projectId: string;
|
|
34
|
+
runId: string;
|
|
35
|
+
type: "error" | "reset";
|
|
36
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
37
|
+
error: string;
|
|
38
38
|
})[];
|
|
39
39
|
};
|
|
40
40
|
outputFormat: "json";
|
|
@@ -18,7 +18,7 @@ export declare function createProviderSignInRoutes(options: {
|
|
|
18
18
|
error: string;
|
|
19
19
|
};
|
|
20
20
|
outputFormat: "json";
|
|
21
|
-
status:
|
|
21
|
+
status: 400;
|
|
22
22
|
input: {
|
|
23
23
|
json: {
|
|
24
24
|
provider: string;
|
|
@@ -30,7 +30,7 @@ export declare function createProviderSignInRoutes(options: {
|
|
|
30
30
|
error: string;
|
|
31
31
|
};
|
|
32
32
|
outputFormat: "json";
|
|
33
|
-
status:
|
|
33
|
+
status: 409;
|
|
34
34
|
input: {
|
|
35
35
|
json: {
|
|
36
36
|
provider: string;
|
|
@@ -51,11 +51,15 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
51
51
|
"/runner-install/:runner": {
|
|
52
52
|
$post: {
|
|
53
53
|
output: {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
supported: boolean;
|
|
55
|
+
installedVersion: string | null;
|
|
56
|
+
latestVersion: string | null;
|
|
57
|
+
updateAvailable: boolean;
|
|
58
|
+
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
59
|
+
error: string | null;
|
|
56
60
|
};
|
|
57
61
|
outputFormat: "json";
|
|
58
|
-
status:
|
|
62
|
+
status: 202;
|
|
59
63
|
input: {
|
|
60
64
|
param: {
|
|
61
65
|
runner: string;
|
|
@@ -67,15 +71,11 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
67
71
|
};
|
|
68
72
|
} | {
|
|
69
73
|
output: {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
latestVersion: string | null;
|
|
73
|
-
updateAvailable: boolean;
|
|
74
|
-
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
75
|
-
error: string | null;
|
|
74
|
+
error: string;
|
|
75
|
+
code?: "invalid_input" | undefined;
|
|
76
76
|
};
|
|
77
77
|
outputFormat: "json";
|
|
78
|
-
status:
|
|
78
|
+
status: 400;
|
|
79
79
|
input: {
|
|
80
80
|
param: {
|
|
81
81
|
runner: string;
|
package/dist/server/server.d.ts
CHANGED
|
@@ -3077,12 +3077,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3077
3077
|
output: {
|
|
3078
3078
|
generation: string;
|
|
3079
3079
|
results: ({
|
|
3080
|
-
projectId: string;
|
|
3081
|
-
runId: string;
|
|
3082
|
-
type: "error" | "reset";
|
|
3083
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
3084
|
-
error: string;
|
|
3085
|
-
} | {
|
|
3086
3080
|
projectId: string;
|
|
3087
3081
|
runId: string;
|
|
3088
3082
|
type: "batch";
|
|
@@ -3096,6 +3090,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
3096
3090
|
cursor: string;
|
|
3097
3091
|
afterSeq: number;
|
|
3098
3092
|
hasMore: boolean;
|
|
3093
|
+
} | {
|
|
3094
|
+
projectId: string;
|
|
3095
|
+
runId: string;
|
|
3096
|
+
type: "error" | "reset";
|
|
3097
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
3098
|
+
error: string;
|
|
3099
3099
|
})[];
|
|
3100
3100
|
};
|
|
3101
3101
|
outputFormat: "json";
|
|
@@ -4608,19 +4608,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4608
4608
|
} & {
|
|
4609
4609
|
"/repo/commit/:sha": {
|
|
4610
4610
|
$get: {
|
|
4611
|
-
output: string;
|
|
4612
|
-
outputFormat: "text";
|
|
4613
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4614
|
-
input: {
|
|
4615
|
-
query: {
|
|
4616
|
-
structured?: string | undefined;
|
|
4617
|
-
};
|
|
4618
|
-
} & {
|
|
4619
|
-
param: {
|
|
4620
|
-
sha: string;
|
|
4621
|
-
};
|
|
4622
|
-
};
|
|
4623
|
-
} | {
|
|
4624
4611
|
output: {
|
|
4625
4612
|
error: string;
|
|
4626
4613
|
code?: "invalid_input" | undefined;
|
|
@@ -4684,6 +4671,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
4684
4671
|
sha: string;
|
|
4685
4672
|
};
|
|
4686
4673
|
};
|
|
4674
|
+
} | {
|
|
4675
|
+
output: string;
|
|
4676
|
+
outputFormat: "text";
|
|
4677
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4678
|
+
input: {
|
|
4679
|
+
query: {
|
|
4680
|
+
structured?: string | undefined;
|
|
4681
|
+
};
|
|
4682
|
+
} & {
|
|
4683
|
+
param: {
|
|
4684
|
+
sha: string;
|
|
4685
|
+
};
|
|
4686
|
+
};
|
|
4687
4687
|
};
|
|
4688
4688
|
};
|
|
4689
4689
|
} & {
|
|
@@ -8457,11 +8457,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8457
8457
|
"/runs/:id/worker-destroy": {
|
|
8458
8458
|
$post: {
|
|
8459
8459
|
output: {
|
|
8460
|
-
|
|
8461
|
-
|
|
8460
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
8461
|
+
readonly error: string;
|
|
8462
|
+
readonly modelChoices?: {
|
|
8463
|
+
runner: string;
|
|
8464
|
+
requestedModel: string;
|
|
8465
|
+
availableModels: {
|
|
8466
|
+
id: string;
|
|
8467
|
+
label: string;
|
|
8468
|
+
description: string;
|
|
8469
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8470
|
+
}[];
|
|
8471
|
+
otherRunners: string[];
|
|
8472
|
+
} | undefined;
|
|
8462
8473
|
};
|
|
8463
8474
|
outputFormat: "json";
|
|
8464
|
-
status: 400;
|
|
8475
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
8465
8476
|
input: {
|
|
8466
8477
|
query: {
|
|
8467
8478
|
[x: string]: string | string[];
|
|
@@ -8477,22 +8488,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8477
8488
|
};
|
|
8478
8489
|
} | {
|
|
8479
8490
|
output: {
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
readonly modelChoices?: {
|
|
8483
|
-
runner: string;
|
|
8484
|
-
requestedModel: string;
|
|
8485
|
-
availableModels: {
|
|
8486
|
-
id: string;
|
|
8487
|
-
label: string;
|
|
8488
|
-
description: string;
|
|
8489
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8490
|
-
}[];
|
|
8491
|
-
otherRunners: string[];
|
|
8492
|
-
} | undefined;
|
|
8491
|
+
error: string;
|
|
8492
|
+
code?: "invalid_input" | undefined;
|
|
8493
8493
|
};
|
|
8494
8494
|
outputFormat: "json";
|
|
8495
|
-
status: 400
|
|
8495
|
+
status: 400;
|
|
8496
8496
|
input: {
|
|
8497
8497
|
query: {
|
|
8498
8498
|
[x: string]: string | string[];
|
|
@@ -18485,20 +18485,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18485
18485
|
} & {
|
|
18486
18486
|
"/runs/:id/handoff": {
|
|
18487
18487
|
$get: {
|
|
18488
|
-
output:
|
|
18489
|
-
|
|
18490
|
-
|
|
18488
|
+
output: {
|
|
18489
|
+
error: string;
|
|
18490
|
+
};
|
|
18491
|
+
outputFormat: "json";
|
|
18492
|
+
status: 404;
|
|
18491
18493
|
input: {
|
|
18492
18494
|
param: {
|
|
18493
18495
|
id: string;
|
|
18494
18496
|
};
|
|
18495
18497
|
};
|
|
18496
18498
|
} | {
|
|
18497
|
-
output:
|
|
18498
|
-
|
|
18499
|
-
|
|
18500
|
-
outputFormat: "json";
|
|
18501
|
-
status: 404;
|
|
18499
|
+
output: string;
|
|
18500
|
+
outputFormat: "text";
|
|
18501
|
+
status: 200;
|
|
18502
18502
|
input: {
|
|
18503
18503
|
param: {
|
|
18504
18504
|
id: string;
|
|
@@ -18536,20 +18536,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18536
18536
|
} & {
|
|
18537
18537
|
"/runs/:id/diff": {
|
|
18538
18538
|
$get: {
|
|
18539
|
-
output:
|
|
18540
|
-
|
|
18541
|
-
|
|
18539
|
+
output: {
|
|
18540
|
+
error: string;
|
|
18541
|
+
};
|
|
18542
|
+
outputFormat: "json";
|
|
18543
|
+
status: 404 | 409;
|
|
18542
18544
|
input: {
|
|
18543
18545
|
param: {
|
|
18544
18546
|
id: string;
|
|
18545
18547
|
};
|
|
18546
18548
|
};
|
|
18547
18549
|
} | {
|
|
18548
|
-
output:
|
|
18549
|
-
|
|
18550
|
-
|
|
18551
|
-
outputFormat: "json";
|
|
18552
|
-
status: 404 | 409;
|
|
18550
|
+
output: string;
|
|
18551
|
+
outputFormat: "text";
|
|
18552
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
18553
18553
|
input: {
|
|
18554
18554
|
param: {
|
|
18555
18555
|
id: string;
|
|
@@ -20567,19 +20567,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
20567
20567
|
} & {
|
|
20568
20568
|
"/repo/commit/:sha": {
|
|
20569
20569
|
$get: {
|
|
20570
|
-
output: string;
|
|
20571
|
-
outputFormat: "text";
|
|
20572
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20573
|
-
input: {
|
|
20574
|
-
query: {
|
|
20575
|
-
structured?: string | undefined;
|
|
20576
|
-
};
|
|
20577
|
-
} & {
|
|
20578
|
-
param: {
|
|
20579
|
-
sha: string;
|
|
20580
|
-
};
|
|
20581
|
-
};
|
|
20582
|
-
} | {
|
|
20583
20570
|
output: {
|
|
20584
20571
|
error: string;
|
|
20585
20572
|
code?: "invalid_input" | undefined;
|
|
@@ -20643,6 +20630,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
20643
20630
|
sha: string;
|
|
20644
20631
|
};
|
|
20645
20632
|
};
|
|
20633
|
+
} | {
|
|
20634
|
+
output: string;
|
|
20635
|
+
outputFormat: "text";
|
|
20636
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20637
|
+
input: {
|
|
20638
|
+
query: {
|
|
20639
|
+
structured?: string | undefined;
|
|
20640
|
+
};
|
|
20641
|
+
} & {
|
|
20642
|
+
param: {
|
|
20643
|
+
sha: string;
|
|
20644
|
+
};
|
|
20645
|
+
};
|
|
20646
20646
|
};
|
|
20647
20647
|
};
|
|
20648
20648
|
} & {
|
|
@@ -24416,11 +24416,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24416
24416
|
"/runs/:id/worker-destroy": {
|
|
24417
24417
|
$post: {
|
|
24418
24418
|
output: {
|
|
24419
|
-
|
|
24420
|
-
|
|
24419
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
24420
|
+
readonly error: string;
|
|
24421
|
+
readonly modelChoices?: {
|
|
24422
|
+
runner: string;
|
|
24423
|
+
requestedModel: string;
|
|
24424
|
+
availableModels: {
|
|
24425
|
+
id: string;
|
|
24426
|
+
label: string;
|
|
24427
|
+
description: string;
|
|
24428
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
24429
|
+
}[];
|
|
24430
|
+
otherRunners: string[];
|
|
24431
|
+
} | undefined;
|
|
24421
24432
|
};
|
|
24422
24433
|
outputFormat: "json";
|
|
24423
|
-
status: 400;
|
|
24434
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
24424
24435
|
input: {
|
|
24425
24436
|
query: {
|
|
24426
24437
|
[x: string]: string | string[];
|
|
@@ -24436,22 +24447,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
24436
24447
|
};
|
|
24437
24448
|
} | {
|
|
24438
24449
|
output: {
|
|
24439
|
-
|
|
24440
|
-
|
|
24441
|
-
readonly modelChoices?: {
|
|
24442
|
-
runner: string;
|
|
24443
|
-
requestedModel: string;
|
|
24444
|
-
availableModels: {
|
|
24445
|
-
id: string;
|
|
24446
|
-
label: string;
|
|
24447
|
-
description: string;
|
|
24448
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
24449
|
-
}[];
|
|
24450
|
-
otherRunners: string[];
|
|
24451
|
-
} | undefined;
|
|
24450
|
+
error: string;
|
|
24451
|
+
code?: "invalid_input" | undefined;
|
|
24452
24452
|
};
|
|
24453
24453
|
outputFormat: "json";
|
|
24454
|
-
status: 400
|
|
24454
|
+
status: 400;
|
|
24455
24455
|
input: {
|
|
24456
24456
|
query: {
|
|
24457
24457
|
[x: string]: string | string[];
|
|
@@ -34444,20 +34444,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34444
34444
|
} & {
|
|
34445
34445
|
"/runs/:id/handoff": {
|
|
34446
34446
|
$get: {
|
|
34447
|
-
output:
|
|
34448
|
-
|
|
34449
|
-
|
|
34447
|
+
output: {
|
|
34448
|
+
error: string;
|
|
34449
|
+
};
|
|
34450
|
+
outputFormat: "json";
|
|
34451
|
+
status: 404;
|
|
34450
34452
|
input: {
|
|
34451
34453
|
param: {
|
|
34452
34454
|
id: string;
|
|
34453
34455
|
};
|
|
34454
34456
|
};
|
|
34455
34457
|
} | {
|
|
34456
|
-
output:
|
|
34457
|
-
|
|
34458
|
-
|
|
34459
|
-
outputFormat: "json";
|
|
34460
|
-
status: 404;
|
|
34458
|
+
output: string;
|
|
34459
|
+
outputFormat: "text";
|
|
34460
|
+
status: 200;
|
|
34461
34461
|
input: {
|
|
34462
34462
|
param: {
|
|
34463
34463
|
id: string;
|
|
@@ -34495,20 +34495,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34495
34495
|
} & {
|
|
34496
34496
|
"/runs/:id/diff": {
|
|
34497
34497
|
$get: {
|
|
34498
|
-
output:
|
|
34499
|
-
|
|
34500
|
-
|
|
34498
|
+
output: {
|
|
34499
|
+
error: string;
|
|
34500
|
+
};
|
|
34501
|
+
outputFormat: "json";
|
|
34502
|
+
status: 404 | 409;
|
|
34501
34503
|
input: {
|
|
34502
34504
|
param: {
|
|
34503
34505
|
id: string;
|
|
34504
34506
|
};
|
|
34505
34507
|
};
|
|
34506
34508
|
} | {
|
|
34507
|
-
output:
|
|
34508
|
-
|
|
34509
|
-
|
|
34510
|
-
outputFormat: "json";
|
|
34511
|
-
status: 404 | 409;
|
|
34509
|
+
output: string;
|
|
34510
|
+
outputFormat: "text";
|
|
34511
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
34512
34512
|
input: {
|
|
34513
34513
|
param: {
|
|
34514
34514
|
id: string;
|
package/dist/subcommands.d.ts
CHANGED
|
@@ -10,3 +10,5 @@ export declare const SUBCOMMAND_NAMES: readonly ['backup', 'discover', 'artifact
|
|
|
10
10
|
export declare function loadSubcommand(name: string | undefined, home?: (env: NodeJS.ProcessEnv) => Home): Promise<SubcommandRunner | undefined>;
|
|
11
11
|
/** Run `argv[0]` when it names a subcommand and answer its exit code; anything else is not ours. */
|
|
12
12
|
export declare function runSubcommand(argv: string[], env: NodeJS.ProcessEnv, home?: () => Home): Promise<number | undefined>;
|
|
13
|
+
/** Install process services before loading commands that read runner or removal registries. */
|
|
14
|
+
export declare function prepareCommandRuntime(command: string, argv?: readonly string[]): Promise<void>;
|
package/dist/subcommands.js
CHANGED
|
@@ -27,7 +27,7 @@ export async function loadSubcommand(name, home = env => resolveHome({ purpose:
|
|
|
27
27
|
return (await import('./server-install/migrate-cli.js')).runServerMigrateCommand(argv, env, { legacy, target });
|
|
28
28
|
};
|
|
29
29
|
case 'backup': return async (argv, env) => {
|
|
30
|
-
const selected = home(env);
|
|
30
|
+
const selected = operatorHelp('backup', argv) ? resolveHome({ purpose: 'cli', env }) : home(env);
|
|
31
31
|
const source = selected.layout === 'split' && argv[0] === 'list' && !hasInstallMarker(selected.config)
|
|
32
32
|
? resolveHome({ purpose: 'cli', env, layout: 'legacy' }) : selected;
|
|
33
33
|
return (await import('./workspace/backup-cli.js')).runBackupCommand(argv, env, source, { contained: source !== selected });
|
|
@@ -41,15 +41,36 @@ export async function loadSubcommand(name, home = env => resolveHome({ purpose:
|
|
|
41
41
|
case 'message': return (await import('./delegation/cli.js')).runMessageCommand;
|
|
42
42
|
case 'worker': return (await import('./delegation/cli.js')).runWorkerCommand;
|
|
43
43
|
case 'remote-settings': return async (argv, env) => {
|
|
44
|
-
return (await import('./remote-settings-cli.js')).runRemoteSettingsCommand(argv, env, undefined,
|
|
44
|
+
return (await import('./remote-settings-cli.js')).runRemoteSettingsCommand(argv, env, undefined, operatorHelp('remote-settings', argv)
|
|
45
|
+
? resolveHome({ purpose: 'cli', env }) : home(env));
|
|
45
46
|
};
|
|
46
47
|
default: return undefined;
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
/** Run `argv[0]` when it names a subcommand and answer its exit code; anything else is not ours. */
|
|
50
51
|
export async function runSubcommand(argv, env, home = () => resolveHome({ purpose: 'cli', env })) {
|
|
52
|
+
if (SUBCOMMAND_NAMES.some(name => name === argv[0]))
|
|
53
|
+
await prepareCommandRuntime(argv[0], argv.slice(1));
|
|
51
54
|
// Only operator runners call the lazy Home factory. Task runners keep two arguments.
|
|
52
55
|
const run = await loadSubcommand(argv[0], () => home());
|
|
53
56
|
return run ? run(argv.slice(1), env) : undefined;
|
|
54
57
|
}
|
|
58
|
+
/** Install process services before loading commands that read runner or removal registries. */
|
|
59
|
+
export async function prepareCommandRuntime(command, argv = []) {
|
|
60
|
+
const help = argv.some(arg => arg === '--help' || arg === '-h');
|
|
61
|
+
const worker = command === 'worker' && (argv.length === 0 || help || argv[0] === 'help' || argv[0] === 'spawn');
|
|
62
|
+
const operator = command === 'backup' || command === 'remote-settings';
|
|
63
|
+
const operatorRuntime = operator && !operatorHelp(command, argv);
|
|
64
|
+
if (!worker && !operatorRuntime && !['serve', 'run', 'init', 'projects', 'server-install', 'server-deploy', 'server-uninstall',
|
|
65
|
+
'migrate', 'server-migrate', 'migrate-project', 'discover', 'task'].includes(command))
|
|
66
|
+
return;
|
|
67
|
+
const { registerBuiltInRunners } = await import('./runners/built-in.js');
|
|
68
|
+
registerBuiltInRunners();
|
|
69
|
+
const { registerBuiltInRunSlots } = await import('./built-in-run-slots.js');
|
|
70
|
+
registerBuiltInRunSlots();
|
|
71
|
+
}
|
|
72
|
+
/** Help must skip both runtime registration and the migrating operator Home factory. */
|
|
73
|
+
function operatorHelp(command, argv) {
|
|
74
|
+
return ['--help', '-h', ...(command === 'remote-settings' ? ['help'] : [])].includes(argv[0] ?? '');
|
|
75
|
+
}
|
|
55
76
|
//# sourceMappingURL=subcommands.js.map
|
package/dist/subcommands.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subcommands.js","sourceRoot":"","sources":["../src/subcommands.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAG7D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,QAAQ,E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AK,CAAC,IAAI,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC;IAChH,MAAM,QAAQ,GAAG,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,iBAAiB,CAAC;IACvE,MAAM,eAAe,GAAG,QAAQ,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACjE,IAAI,CAAC,MAAM,IAAI,CAAC,eAAe,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,eAAe,EAAE,kBAAkB;QAC5H,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;QAAE,OAAO;IAChG,MAAM,EAAE,sBAAsB,EAAE,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,CAAC;IACzE,sBAAsB,EAAE,CAAC;IACzB,MAAM,EAAE,uBAAuB,EAAE,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,CAAC;IAC5E,uBAAuB,EAAE,CAAC;AAC5B,CAAC;AAED,wFAAwF;AACxF,SAAS,YAAY,CAAC,OAAe,EAAE,IAAuB;IAC5D,OAAO,CAAC,QAAQ,EAAE,IAAI,EAAE,GAAG,CAAC,OAAO,KAAK,iBAAiB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AACtG,CAAC"}
|
package/dist/task-cli/cli.js
CHANGED
|
@@ -13,7 +13,7 @@ import { runHistoryContextSchema } from '../contract/index.js';
|
|
|
13
13
|
import { runnerSkillListSchema } from '../contract/index.js';
|
|
14
14
|
import { runnerSchema } from '../contract/index.js';
|
|
15
15
|
import { openUrl } from '../open-url.js';
|
|
16
|
-
import {
|
|
16
|
+
import { knownRunnerIds } from '../core/runner-registry.js';
|
|
17
17
|
import { runnerFlag, skillFlagIssue, skillTaskSteps } from '../workflows/types.js';
|
|
18
18
|
import { discoverCockpit } from './discovery.js';
|
|
19
19
|
import { handoffUrl, invalidResponse, refuse, request, TaskCliError, threadUrl } from './http.js';
|
|
@@ -47,7 +47,7 @@ export const OPERATIONS = {
|
|
|
47
47
|
'request-id': { type: 'string', help: '<UUID> Retry-safe id; reuse it when retrying this start.' },
|
|
48
48
|
workflow: { type: 'string', help: '<name> Workflow (default quick-task).' },
|
|
49
49
|
skill: { type: 'string', help: '<name> Run one discovered skill instead of a workflow.' },
|
|
50
|
-
runner: { type: 'string', help
|
|
50
|
+
runner: { type: 'string', get help() { return `<id> ${knownRunnerIds().join(' | ')}.`; } },
|
|
51
51
|
backend: { type: 'string', help: '<id> Alias of --runner.' },
|
|
52
52
|
model: { type: 'string', help: '<model> Model override.' },
|
|
53
53
|
effort: { type: 'string', help: '<level> Reasoning effort.' },
|