@hearsay-tools/squawk 0.18.0-dev.7999 → 0.18.0-dev.8009
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/contract/create-run-input.d.ts +59 -0
- package/dist/contract/discovery.d.ts +0 -1
- package/dist/contract/github.d.ts +0 -18
- package/dist/contract/index.d.ts +3 -0
- package/dist/contract/index.js +2305 -2294
- package/dist/contract/model-choices.d.ts +40 -0
- package/dist/contract/reference-status.d.ts +19 -0
- package/dist/contract/runs.d.ts +0 -57
- package/dist/contract/workspace.d.ts +0 -40
- package/dist/delegation/routes.d.ts +75 -75
- package/dist/delegation/transport.d.ts +65 -65
- package/dist/runs/run-archive.d.ts +72 -72
- package/dist/runs/wait-phases.d.ts +9 -1
- package/dist/runs/wait-phases.js +17 -2
- package/dist/runs/wait-phases.js.map +1 -1
- package/dist/server/models-routes.d.ts +13 -13
- package/dist/server/runner-install-routes.d.ts +10 -10
- package/dist/server/server.d.ts +1523 -1523
- package/dist/workflows/input-acknowledgement.d.ts +24 -24
- package/dist/workflows/run/wait-engine.d.ts +72 -72
- package/dist/workflows/run-states.d.ts +1 -8
- package/dist/workflows/run-states.js +0 -16
- package/dist/workflows/run-states.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/{accounts-section-BvrCdhB1.js → accounts-section-CJ1xR0FN.js} +1 -1
- package/web/dist/assets/activity-motion-C01GEN0y.js +2 -0
- package/web/dist/assets/{activity-route-BZPRmiNI.js → activity-route-BZ1NIKSY.js} +1 -1
- package/web/dist/assets/{agent-config-section-DEeDIcK_.js → agent-config-section-DvFcRRLD.js} +2 -2
- package/web/dist/assets/{agent-defaults-section-RYnao4vB.js → agent-defaults-section-BE88c2RN.js} +1 -1
- package/web/dist/assets/{appearance-obeD0TrH.js → appearance-B9Z6lNEm.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-DP12N-QW.js → archive-on-merge-field-DtR7twJI.js} +1 -1
- package/web/dist/assets/attention-B6NEiTGm.js +1 -0
- package/web/dist/assets/{automations-route-bJYe7JKX.js → automations-route-Dpa01C3j.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-yCI8kY--.js → commit-diff-panel-CGjhxIPJ.js} +1 -1
- package/web/dist/assets/{diff-B9wl20YA.js → diff-DQ18_bA-.js} +2 -2
- package/web/dist/assets/{diff-view-C-HieogW.js → diff-view-CMwe_Rx7.js} +1 -1
- package/web/dist/assets/{file-preview-BzialgZg.js → file-preview-_lAUlt5u.js} +1 -1
- package/web/dist/assets/{folder-browser-B8_lzQT7.js → folder-browser-Cy26Y6YK.js} +1 -1
- package/web/dist/assets/{git-toolbar-lvqVHT9o.js → git-toolbar-BJM3pWHY.js} +1 -1
- package/web/dist/assets/{github-CQhVzG31.js → github-aO7y0526.js} +1 -1
- package/web/dist/assets/{global-activity-route-Cnk7K6kB.js → global-activity-route-BWOfw2C5.js} +1 -1
- package/web/dist/assets/index-D-Y1olb1.js +21 -0
- package/web/dist/assets/label-CbEJ99h4.js +1 -0
- package/web/dist/assets/{markdown-BLWEExIH.js → markdown-BDWII3gy.js} +1 -1
- package/web/dist/assets/{notifications-section-Ci4iCnOt.js → notifications-section-Z_4IW83J.js} +1 -1
- package/web/dist/assets/{open-in-menu-JhT-c8K6.js → open-in-menu-21vcjK3t.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-COUwLzj1.js → preview-pane-connected-CxwvH4pt.js} +2 -2
- package/web/dist/assets/{project-location-BMreyTgv.js → project-location-CvJMe_Vp.js} +1 -1
- package/web/dist/assets/{project-router-DG3CwEiO.js → project-router-hhGBPlav.js} +1 -1
- package/web/dist/assets/project-scope-context-BiijuuWU.js +4 -0
- package/web/dist/assets/{projects-section-I4Umh57f.js → projects-section-CQ34YFnT.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-Byinr-jH.js → prompt-templates-section-UIxQCLJq.js} +1 -1
- package/web/dist/assets/queries-D6ioEk6c.js +1 -0
- package/web/dist/assets/{reference-chip-Bphmq8DU.js → reference-chip-B5br2cfV.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-CcYe1mbK.js → remote-settings-notice-BWDpTH5W.js} +1 -1
- package/web/dist/assets/{repo-git-tmqJIA3Y.js → repo-git-U12bPaG-.js} +1 -1
- package/web/dist/assets/{report-reader-GE7zBDlE.js → report-reader-B5vipU-m.js} +1 -1
- package/web/dist/assets/{reports-Dzd6o31r.js → reports-Cdk8Dc-w.js} +1 -1
- package/web/dist/assets/{resources-section-D6yjk2_7.js → resources-section-BCLu3v1Z.js} +1 -1
- package/web/dist/assets/run-header-gOqc0BKa.js +2 -0
- package/web/dist/assets/{runners-GyEIYtzT.js → runners-5cgs0qUY.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-gDWJBt2q.js → settings-agent-picker-CB7l8AW-.js} +1 -1
- package/web/dist/assets/{settings-shell-1kV0mCGg.js → settings-shell-BUHHoCDs.js} +1 -1
- package/web/dist/assets/{sidebar-section-bytwajV6.js → sidebar-section-8dTKLdQw.js} +1 -1
- package/web/dist/assets/{skills-oC915Joa.js → skills-thuBrq2s.js} +1 -1
- package/web/dist/assets/{tab-link-BrrGCBYJ.js → tab-link-DaFUyEhe.js} +1 -1
- package/web/dist/assets/{task-changes-CgEF750z.js → task-changes-DSpeg6sX.js} +1 -1
- package/web/dist/assets/{task-commits-CmewNVBz.js → task-commits-DRDRswBh.js} +1 -1
- package/web/dist/assets/{task-files-x0fUUNIG.js → task-files-Cevz9Mex.js} +1 -1
- package/web/dist/assets/{task-github-item-DuwLqcE4.js → task-github-item-DpLkKSKy.js} +1 -1
- package/web/dist/assets/{task-groups-Ccol3P2t.js → task-groups-CafTiSSz.js} +1 -1
- package/web/dist/assets/{task-thread-DkgKDQSG.js → task-thread-BvM4rEQe.js} +6 -6
- package/web/dist/assets/{tasks-table-CbfBNxAB.js → tasks-table-DYjfmofR.js} +1 -1
- package/web/dist/assets/{thread-state-Nzl4pHXB.js → thread-state-A3TSuI5v.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-BMWlCZBX.js → use-hand-to-agent-state-IepoiFbj.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-C8q14xTE.js → useInfiniteQuery-B20OnjTe.js} +1 -1
- package/web/dist/assets/useQuery-BTg3x78A.js +1 -0
- package/web/dist/assets/{workflows-BV5oZdB_.js → workflows-B0TaHAzz.js} +2 -2
- package/web/dist/assets/{workspace-tools-NWKvRhWg.js → workspace-tools-B8sP_p5c.js} +1 -1
- package/web/dist/assets/{worktrees-section--MUxuXUq.js → worktrees-section-BDfwadB6.js} +4 -4
- package/web/dist/assets/{ws-BYbBRDfC.js → ws-ExzR2_Yn.js} +1 -1
- package/web/dist/index.html +15 -15
- package/web/dist/assets/activity-motion-CyQUo8rH.js +0 -2
- package/web/dist/assets/attention-CSFsCoi5.js +0 -1
- package/web/dist/assets/index-D0DvUgTj.js +0 -21
- package/web/dist/assets/label-CYqEyapm.js +0 -1
- package/web/dist/assets/project-scope-context-BairiAvs.js +0 -4
- package/web/dist/assets/queries-bg9YtgmX.js +0 -1
- package/web/dist/assets/run-header-Cc5Flvc9.js +0 -2
- package/web/dist/assets/useQuery-Berjv5Ts.js +0 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* A runner whose model list is discovered from the host: every registered runner has a model
|
|
4
|
+
* catalog (its definition's `loadModelCatalog`). The route's query validator and the picker use it.
|
|
5
|
+
*/
|
|
6
|
+
export declare const modelDiscoveryRunnerSchema: z.ZodString;
|
|
7
|
+
export type ModelDiscoveryRunner = z.infer<typeof modelDiscoveryRunnerSchema>;
|
|
8
|
+
export declare const runnerModelOptionSchema: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
label: z.ZodString;
|
|
11
|
+
description: z.ZodString;
|
|
12
|
+
effortLevels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
13
|
+
high: "high";
|
|
14
|
+
low: "low";
|
|
15
|
+
max: "max";
|
|
16
|
+
medium: "medium";
|
|
17
|
+
xhigh: "xhigh";
|
|
18
|
+
}>>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type RunnerModelOption = z.infer<typeof runnerModelOptionSchema>;
|
|
21
|
+
/** The models a spawn could pin instead of an unknown one, in a delegation error. It lives in its
|
|
22
|
+
* own leaf module so `delegation.ts` does not load `workspace.ts` (hearsay-tools/squawk#3935). */
|
|
23
|
+
export declare const modelChoicesSchema: z.ZodObject<{
|
|
24
|
+
runner: z.ZodString;
|
|
25
|
+
requestedModel: z.ZodString;
|
|
26
|
+
availableModels: z.ZodArray<z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
label: z.ZodString;
|
|
29
|
+
description: z.ZodString;
|
|
30
|
+
effortLevels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
31
|
+
high: "high";
|
|
32
|
+
low: "low";
|
|
33
|
+
max: "max";
|
|
34
|
+
medium: "medium";
|
|
35
|
+
xhigh: "xhigh";
|
|
36
|
+
}>>>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
otherRunners: z.ZodArray<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export type ModelChoices = z.infer<typeof modelChoicesSchema>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Shared reference-status vocabulary for PRs and issues. Closed PR and completed issue remain
|
|
4
|
+
* distinct outcomes. Server ranking describes the next action; merge conflict is independent.
|
|
5
|
+
*/
|
|
6
|
+
export declare const referenceStatusSchema: z.ZodEnum<{
|
|
7
|
+
"changes-requested": "changes-requested";
|
|
8
|
+
"checks-failing": "checks-failing";
|
|
9
|
+
"checks-pending": "checks-pending";
|
|
10
|
+
closed: "closed";
|
|
11
|
+
completed: "completed";
|
|
12
|
+
draft: "draft";
|
|
13
|
+
merged: "merged";
|
|
14
|
+
"not-planned": "not-planned";
|
|
15
|
+
open: "open";
|
|
16
|
+
ready: "ready";
|
|
17
|
+
"review-required": "review-required";
|
|
18
|
+
}>;
|
|
19
|
+
export type ReferenceStatus = z.infer<typeof referenceStatusSchema>;
|
package/dist/contract/runs.d.ts
CHANGED
|
@@ -7008,63 +7008,6 @@ export declare const attachmentFileParamSchema: z.ZodObject<{
|
|
|
7008
7008
|
file: z.ZodString;
|
|
7009
7009
|
}, z.core.$strip>;
|
|
7010
7010
|
export type AttachmentFileParam = z.infer<typeof attachmentFileParamSchema>;
|
|
7011
|
-
export declare const attachmentInputSchema: z.ZodObject<{
|
|
7012
|
-
mediaType: z.ZodString;
|
|
7013
|
-
data: z.ZodString;
|
|
7014
|
-
}, z.core.$strip>;
|
|
7015
|
-
export type AttachmentInput = z.input<typeof attachmentInputSchema>;
|
|
7016
|
-
/** @deprecated Attachments are no longer images only — use `attachmentInputSchema`. Kept because
|
|
7017
|
-
* the `images` key it validates is the wire contract and did not change name. */
|
|
7018
|
-
export declare const imageInputSchema: z.ZodObject<{
|
|
7019
|
-
mediaType: z.ZodString;
|
|
7020
|
-
data: z.ZodString;
|
|
7021
|
-
}, z.core.$strip>;
|
|
7022
|
-
export type ImageInput = AttachmentInput;
|
|
7023
|
-
/**
|
|
7024
|
-
* The KEYS of `POST /runs`' body, before the XOR refinement that `createRunInputSchema` adds.
|
|
7025
|
-
*
|
|
7026
|
-
* Split out for one reason: `./automations.ts` builds an automation's task on top of this shape
|
|
7027
|
-
* (a task IS a run-creation body minus the three keys an automation supplies itself), and zod
|
|
7028
|
-
* refuses `.omit()` on a schema that carries refinements. Validate with `createRunInputSchema`
|
|
7029
|
-
* below — this half accepts a body naming both `workflow` and `steps`, which the server does not.
|
|
7030
|
-
*/
|
|
7031
|
-
export declare const createRunInputBaseSchema: z.ZodObject<{
|
|
7032
|
-
archiveWhenDone: z.ZodOptional<z.ZodBoolean>;
|
|
7033
|
-
autoMergePr: z.ZodOptional<z.ZodBoolean>;
|
|
7034
|
-
allowWorkers: z.ZodOptional<z.ZodBoolean>;
|
|
7035
|
-
allowMessaging: z.ZodOptional<z.ZodBoolean>;
|
|
7036
|
-
workflow: z.ZodOptional<z.ZodString>;
|
|
7037
|
-
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7038
|
-
id: z.ZodString;
|
|
7039
|
-
name: z.ZodOptional<z.ZodString>;
|
|
7040
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
7041
|
-
skill: z.ZodOptional<z.ZodString>;
|
|
7042
|
-
model: z.ZodOptional<z.ZodString>;
|
|
7043
|
-
effort: z.ZodOptional<z.ZodString>;
|
|
7044
|
-
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
7045
|
-
runner: z.ZodOptional<z.ZodString>;
|
|
7046
|
-
agentProfile: z.ZodOptional<z.ZodString>;
|
|
7047
|
-
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7048
|
-
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7049
|
-
command: z.ZodOptional<z.ZodString>;
|
|
7050
|
-
onFail: z.ZodOptional<z.ZodObject<{
|
|
7051
|
-
retry: z.ZodString;
|
|
7052
|
-
max: z.ZodDefault<z.ZodNumber>;
|
|
7053
|
-
}, z.core.$strip>>;
|
|
7054
|
-
}, z.core.$strip>>>;
|
|
7055
|
-
task: z.ZodString;
|
|
7056
|
-
model: z.ZodOptional<z.ZodString>;
|
|
7057
|
-
effort: z.ZodOptional<z.ZodString>;
|
|
7058
|
-
runner: z.ZodOptional<z.ZodString>;
|
|
7059
|
-
agentProfile: z.ZodOptional<z.ZodString>;
|
|
7060
|
-
worktree: z.ZodOptional<z.ZodBoolean>;
|
|
7061
|
-
autonomous: z.ZodOptional<z.ZodBoolean>;
|
|
7062
|
-
systemPrompt: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>;
|
|
7063
|
-
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7064
|
-
mediaType: z.ZodString;
|
|
7065
|
-
data: z.ZodString;
|
|
7066
|
-
}, z.core.$strip>>>;
|
|
7067
|
-
}, z.core.$strip>;
|
|
7068
7011
|
/**
|
|
7069
7012
|
* `POST /runs`. Exactly one of `workflow` / `steps` — the server rejects both or neither.
|
|
7070
7013
|
*
|
|
@@ -446,25 +446,6 @@ export declare const providerSignInSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
446
446
|
error: z.ZodString;
|
|
447
447
|
}, z.core.$strip>], "state">;
|
|
448
448
|
export type ProviderSignIn = z.infer<typeof providerSignInSchema>;
|
|
449
|
-
/**
|
|
450
|
-
* A runner whose model list is discovered from the host: every registered runner has a model
|
|
451
|
-
* catalog (its definition's `loadModelCatalog`). The route's query validator and the picker use it.
|
|
452
|
-
*/
|
|
453
|
-
export declare const modelDiscoveryRunnerSchema: z.ZodString;
|
|
454
|
-
export type ModelDiscoveryRunner = z.infer<typeof modelDiscoveryRunnerSchema>;
|
|
455
|
-
export declare const runnerModelOptionSchema: z.ZodObject<{
|
|
456
|
-
id: z.ZodString;
|
|
457
|
-
label: z.ZodString;
|
|
458
|
-
description: z.ZodString;
|
|
459
|
-
effortLevels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
460
|
-
high: "high";
|
|
461
|
-
low: "low";
|
|
462
|
-
max: "max";
|
|
463
|
-
medium: "medium";
|
|
464
|
-
xhigh: "xhigh";
|
|
465
|
-
}>>>;
|
|
466
|
-
}, z.core.$strip>;
|
|
467
|
-
export type RunnerModelOption = z.infer<typeof runnerModelOptionSchema>;
|
|
468
449
|
/** `GET /api/v1/models?runner=codex|opencode|pi` — the models discovered from that runner's own
|
|
469
450
|
* host installation, plus how fresh the answer is. Never an error: an unavailable CLI degrades
|
|
470
451
|
* to `source: 'unavailable'` with a `reason`. Claude has no host-local catalog and is rejected. */
|
|
@@ -491,27 +472,6 @@ export declare const runnerModelCatalogResponseSchema: z.ZodObject<{
|
|
|
491
472
|
reason: z.ZodOptional<z.ZodString>;
|
|
492
473
|
}, z.core.$strip>;
|
|
493
474
|
export type RunnerModelCatalogResponse = z.infer<typeof runnerModelCatalogResponseSchema>;
|
|
494
|
-
/** The models a spawn could pin instead of an unknown one, in a delegation error. It lives here,
|
|
495
|
-
* beside its parts, so `delegation.ts` does not load `discovery.ts` (hearsay-tools/cezarion#3241);
|
|
496
|
-
* `discovery.ts` re-exports it. */
|
|
497
|
-
export declare const modelChoicesSchema: z.ZodObject<{
|
|
498
|
-
runner: z.ZodString;
|
|
499
|
-
requestedModel: z.ZodString;
|
|
500
|
-
availableModels: z.ZodArray<z.ZodObject<{
|
|
501
|
-
id: z.ZodString;
|
|
502
|
-
label: z.ZodString;
|
|
503
|
-
description: z.ZodString;
|
|
504
|
-
effortLevels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
505
|
-
high: "high";
|
|
506
|
-
low: "low";
|
|
507
|
-
max: "max";
|
|
508
|
-
medium: "medium";
|
|
509
|
-
xhigh: "xhigh";
|
|
510
|
-
}>>>;
|
|
511
|
-
}, z.core.$strip>>;
|
|
512
|
-
otherRunners: z.ZodArray<z.ZodString>;
|
|
513
|
-
}, z.core.$strip>;
|
|
514
|
-
export type ModelChoices = z.infer<typeof modelChoicesSchema>;
|
|
515
475
|
/** A local app a worktree can be opened in (#open-in): editor, file manager, or terminal. */
|
|
516
476
|
export declare const openTargetSchema: z.ZodObject<{
|
|
517
477
|
id: z.ZodString;
|
|
@@ -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,22 @@ 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
|
+
scope: "host-default-account";
|
|
95
|
+
runners: {
|
|
96
|
+
requiresAccountHome?: boolean | undefined;
|
|
97
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
98
|
+
enabled?: boolean | undefined;
|
|
99
|
+
hint?: string | undefined;
|
|
100
|
+
authFailureId?: string | undefined;
|
|
101
|
+
runner: string;
|
|
102
|
+
}[];
|
|
103
|
+
} | {
|
|
94
104
|
runner: string;
|
|
95
105
|
models: {
|
|
96
106
|
id: string;
|
|
@@ -101,16 +111,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
101
111
|
source: "cache" | "live" | "unavailable";
|
|
102
112
|
stale: boolean;
|
|
103
113
|
reason?: string | undefined;
|
|
104
|
-
} | {
|
|
105
|
-
scope: "host-default-account";
|
|
106
|
-
runners: {
|
|
107
|
-
requiresAccountHome?: boolean | undefined;
|
|
108
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
109
|
-
enabled?: boolean | undefined;
|
|
110
|
-
hint?: string | undefined;
|
|
111
|
-
authFailureId?: string | undefined;
|
|
112
|
-
runner: string;
|
|
113
|
-
}[];
|
|
114
114
|
} | {
|
|
115
115
|
tasks: {
|
|
116
116
|
id: string;
|
|
@@ -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;
|
|
@@ -2,6 +2,18 @@ import type { DelegationRoutes } from './routes.ts';
|
|
|
2
2
|
export declare function createDelegationApp(routes: DelegationRoutes): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
3
3
|
"/list": {
|
|
4
4
|
$get: {
|
|
5
|
+
output: {
|
|
6
|
+
error: string;
|
|
7
|
+
code?: "invalid_input" | undefined;
|
|
8
|
+
};
|
|
9
|
+
outputFormat: "json";
|
|
10
|
+
status: 400;
|
|
11
|
+
input: {
|
|
12
|
+
query: {
|
|
13
|
+
offset?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
5
17
|
output: {
|
|
6
18
|
workers: {
|
|
7
19
|
workerId: string;
|
|
@@ -48,18 +60,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
48
60
|
offset?: string | undefined;
|
|
49
61
|
};
|
|
50
62
|
};
|
|
51
|
-
} | {
|
|
52
|
-
output: {
|
|
53
|
-
error: string;
|
|
54
|
-
code?: "invalid_input" | undefined;
|
|
55
|
-
};
|
|
56
|
-
outputFormat: "json";
|
|
57
|
-
status: 400;
|
|
58
|
-
input: {
|
|
59
|
-
query: {
|
|
60
|
-
offset?: string | undefined;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
} & {
|
|
@@ -604,6 +604,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
604
604
|
} & {
|
|
605
605
|
"/:workerId": {
|
|
606
606
|
$get: {
|
|
607
|
+
output: {
|
|
608
|
+
error: string;
|
|
609
|
+
code?: "invalid_input" | undefined;
|
|
610
|
+
};
|
|
611
|
+
outputFormat: "json";
|
|
612
|
+
status: 400;
|
|
613
|
+
input: {
|
|
614
|
+
param: {
|
|
615
|
+
workerId: string;
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
} | {
|
|
607
619
|
output: {
|
|
608
620
|
workerId: string;
|
|
609
621
|
settled: boolean;
|
|
@@ -721,7 +733,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
721
733
|
workerId: string;
|
|
722
734
|
};
|
|
723
735
|
};
|
|
724
|
-
}
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
} & {
|
|
739
|
+
"/:workerId/collect": {
|
|
740
|
+
$post: {
|
|
725
741
|
output: {
|
|
726
742
|
error: string;
|
|
727
743
|
code?: "invalid_input" | undefined;
|
|
@@ -732,12 +748,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
732
748
|
param: {
|
|
733
749
|
workerId: string;
|
|
734
750
|
};
|
|
751
|
+
} & {
|
|
752
|
+
json: Record<string, never>;
|
|
735
753
|
};
|
|
736
|
-
}
|
|
737
|
-
};
|
|
738
|
-
} & {
|
|
739
|
-
"/:workerId/collect": {
|
|
740
|
-
$post: {
|
|
754
|
+
} | {
|
|
741
755
|
output: {
|
|
742
756
|
workerId: string;
|
|
743
757
|
parentRunId: string;
|
|
@@ -860,7 +874,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
860
874
|
} & {
|
|
861
875
|
json: Record<string, never>;
|
|
862
876
|
};
|
|
863
|
-
}
|
|
877
|
+
};
|
|
878
|
+
};
|
|
879
|
+
} & {
|
|
880
|
+
"/:workerId/steer": {
|
|
881
|
+
$post: {
|
|
864
882
|
output: {
|
|
865
883
|
error: string;
|
|
866
884
|
code?: "invalid_input" | undefined;
|
|
@@ -872,13 +890,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
872
890
|
workerId: string;
|
|
873
891
|
};
|
|
874
892
|
} & {
|
|
875
|
-
json:
|
|
893
|
+
json: {
|
|
894
|
+
text: string;
|
|
895
|
+
};
|
|
876
896
|
};
|
|
877
|
-
}
|
|
878
|
-
};
|
|
879
|
-
} & {
|
|
880
|
-
"/:workerId/steer": {
|
|
881
|
-
$post: {
|
|
897
|
+
} | {
|
|
882
898
|
output: {
|
|
883
899
|
workerId: string;
|
|
884
900
|
state: "delivered" | "queued";
|
|
@@ -894,7 +910,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
894
910
|
text: string;
|
|
895
911
|
};
|
|
896
912
|
};
|
|
897
|
-
}
|
|
913
|
+
};
|
|
914
|
+
};
|
|
915
|
+
} & {
|
|
916
|
+
"/:workerId/stop": {
|
|
917
|
+
$post: {
|
|
898
918
|
output: {
|
|
899
919
|
error: string;
|
|
900
920
|
code?: "invalid_input" | undefined;
|
|
@@ -906,15 +926,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
906
926
|
workerId: string;
|
|
907
927
|
};
|
|
908
928
|
} & {
|
|
909
|
-
json:
|
|
910
|
-
text: string;
|
|
911
|
-
};
|
|
929
|
+
json: Record<string, never>;
|
|
912
930
|
};
|
|
913
|
-
}
|
|
914
|
-
};
|
|
915
|
-
} & {
|
|
916
|
-
"/:workerId/stop": {
|
|
917
|
-
$post: {
|
|
931
|
+
} | {
|
|
918
932
|
output: {
|
|
919
933
|
workerId: string;
|
|
920
934
|
state: "stopping" | "terminated";
|
|
@@ -928,7 +942,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
928
942
|
} & {
|
|
929
943
|
json: Record<string, never>;
|
|
930
944
|
};
|
|
931
|
-
}
|
|
945
|
+
};
|
|
946
|
+
};
|
|
947
|
+
} & {
|
|
948
|
+
"/:workerId/destroy": {
|
|
949
|
+
$post: {
|
|
932
950
|
output: {
|
|
933
951
|
error: string;
|
|
934
952
|
code?: "invalid_input" | undefined;
|
|
@@ -940,13 +958,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
940
958
|
workerId: string;
|
|
941
959
|
};
|
|
942
960
|
} & {
|
|
943
|
-
json:
|
|
961
|
+
json: {
|
|
962
|
+
discardWork?: true | undefined;
|
|
963
|
+
};
|
|
944
964
|
};
|
|
945
|
-
}
|
|
946
|
-
};
|
|
947
|
-
} & {
|
|
948
|
-
"/:workerId/destroy": {
|
|
949
|
-
$post: {
|
|
965
|
+
} | {
|
|
950
966
|
output: {
|
|
951
967
|
workerId: string;
|
|
952
968
|
state: "complete" | "incomplete";
|
|
@@ -975,22 +991,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
975
991
|
discardWork?: true | undefined;
|
|
976
992
|
};
|
|
977
993
|
};
|
|
978
|
-
} | {
|
|
979
|
-
output: {
|
|
980
|
-
error: string;
|
|
981
|
-
code?: "invalid_input" | undefined;
|
|
982
|
-
};
|
|
983
|
-
outputFormat: "json";
|
|
984
|
-
status: 400;
|
|
985
|
-
input: {
|
|
986
|
-
param: {
|
|
987
|
-
workerId: string;
|
|
988
|
-
};
|
|
989
|
-
} & {
|
|
990
|
-
json: {
|
|
991
|
-
discardWork?: true | undefined;
|
|
992
|
-
};
|
|
993
|
-
};
|
|
994
994
|
} | {
|
|
995
995
|
output: {
|
|
996
996
|
workerId: string;
|
|
@@ -1026,13 +1026,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1026
1026
|
"/:workerId/diff": {
|
|
1027
1027
|
$get: {
|
|
1028
1028
|
output: {
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
diff: string;
|
|
1032
|
-
truncated: boolean;
|
|
1029
|
+
error: string;
|
|
1030
|
+
code?: "invalid_input" | undefined;
|
|
1033
1031
|
};
|
|
1034
1032
|
outputFormat: "json";
|
|
1035
|
-
status:
|
|
1033
|
+
status: 400;
|
|
1036
1034
|
input: {
|
|
1037
1035
|
param: {
|
|
1038
1036
|
workerId: string;
|
|
@@ -1040,11 +1038,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1040
1038
|
};
|
|
1041
1039
|
} | {
|
|
1042
1040
|
output: {
|
|
1043
|
-
|
|
1044
|
-
|
|
1041
|
+
workerId: string;
|
|
1042
|
+
baselineSha: string;
|
|
1043
|
+
diff: string;
|
|
1044
|
+
truncated: boolean;
|
|
1045
1045
|
};
|
|
1046
1046
|
outputFormat: "json";
|
|
1047
|
-
status:
|
|
1047
|
+
status: 200;
|
|
1048
1048
|
input: {
|
|
1049
1049
|
param: {
|
|
1050
1050
|
workerId: string;
|