@hearsay-tools/squawk 0.19.0-dev.9172 → 0.19.0-dev.9180
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/contract/hosts.d.ts +925 -0
- package/dist/contract/index.js +104 -2
- package/dist/core/server-hook-registry.d.ts +13 -0
- package/dist/core/server-hook-registry.js.map +1 -1
- package/dist/delegation/routes.d.ts +78 -78
- package/dist/features/hosts/admission.d.ts +52 -0
- package/dist/features/hosts/admission.js +89 -0
- package/dist/features/hosts/admission.js.map +1 -0
- package/dist/features/hosts/gateway.d.ts +14 -3
- package/dist/features/hosts/gateway.js +35 -21
- package/dist/features/hosts/gateway.js.map +1 -1
- package/dist/features/hosts/index.d.ts +7 -3
- package/dist/features/hosts/index.js +41 -7
- package/dist/features/hosts/index.js.map +1 -1
- package/dist/features/hosts/registry-reconciler.d.ts +41 -0
- package/dist/features/hosts/registry-reconciler.js +168 -0
- package/dist/features/hosts/registry-reconciler.js.map +1 -0
- package/dist/features/hosts/routes.d.ts +414 -48
- package/dist/features/hosts/routes.js +72 -62
- package/dist/features/hosts/routes.js.map +1 -1
- package/dist/features/hosts/runs-index-events.d.ts +23 -0
- package/dist/features/hosts/runs-index-events.js +116 -0
- package/dist/features/hosts/runs-index-events.js.map +1 -0
- package/dist/features/hosts/runs-index-patch.d.ts +203 -0
- package/dist/features/hosts/runs-index-patch.js +798 -0
- package/dist/features/hosts/runs-index-patch.js.map +1 -0
- package/dist/features/hosts/runs-index.d.ts +149 -0
- package/dist/features/hosts/runs-index.js +762 -0
- package/dist/features/hosts/runs-index.js.map +1 -0
- package/dist/features/hosts/runs-search.d.ts +28 -0
- package/dist/features/hosts/runs-search.js +151 -0
- package/dist/features/hosts/runs-search.js.map +1 -0
- package/dist/features/hosts/supervisor.d.ts +4 -0
- package/dist/features/hosts/supervisor.js +14 -6
- package/dist/features/hosts/supervisor.js.map +1 -1
- package/dist/features/reports/routes.d.ts +2 -2
- package/dist/features/webhooks/routes.d.ts +38 -38
- package/dist/plugin/index.d.ts +1 -1
- package/dist/plugin/index.js.map +1 -1
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/models-routes.d.ts +12 -12
- package/dist/server/project-settings-routes.d.ts +107 -107
- package/dist/server/projects-routes.d.ts +41 -41
- package/dist/server/provider-sign-in-routes.d.ts +2 -2
- package/dist/server/providers-routes.d.ts +58 -58
- package/dist/server/runner-install-routes.d.ts +10 -10
- package/dist/server/runners-routes.d.ts +10 -10
- package/dist/server/runs-routes.d.ts +344 -344
- package/dist/server/server.d.ts +1195 -1195
- package/dist/server/server.js +7 -1
- package/dist/server/server.js.map +1 -1
- package/dist/server/workspace-identity-routes.d.ts +5 -5
- package/dist/server/workspace-live-routes.d.ts +5 -5
- package/dist/server/workspace-routes.d.ts +85 -85
- package/dist/server/workspace-run-feed.d.ts +4 -0
- package/dist/server/workspace-run-feed.js +13 -0
- package/dist/server/workspace-run-feed.js.map +1 -1
- package/package.json +4 -4
- package/scripts/benchmark-hosts-runs-index-probes.ts +242 -0
- package/scripts/benchmark-hosts-runs-index.ts +776 -0
- package/web/dist/assets/accounts-section-BDUoikVg.js +1 -0
- package/web/dist/assets/activity-motion-CYdEr0hu.js +1 -0
- package/web/dist/assets/{activity-route-C2zP5vVV.js → activity-route-D8BPLoZj.js} +1 -1
- package/web/dist/assets/{agent-accounts-D_ZKAmaW.js → agent-accounts-C2ILQhZy.js} +1 -1
- package/web/dist/assets/{agent-config-section-CwK_izpU.js → agent-config-section-BO8w2cry.js} +2 -2
- package/web/dist/assets/agent-defaults-section-BBcv7Vbh.js +1 -0
- package/web/dist/assets/{appearance-DvoRcoRX.js → appearance-yF_NXlq5.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-DWPtF9dh.js → archive-on-merge-field-Dh1M21D6.js} +1 -1
- package/web/dist/assets/{ask-card-D-om0EtP.js → ask-card-2E9m5VRA.js} +1 -1
- package/web/dist/assets/attention-C7BUdd2s.js +1 -0
- package/web/dist/assets/automations-route-D27bK2j6.js +2 -0
- package/web/dist/assets/{commit-list-CPJLP4DU.js → commit-list-sFxchD2V.js} +1 -1
- package/web/dist/assets/{diff-BQJN6jzN.js → diff-C5-32cRp.js} +2 -2
- package/web/dist/assets/{diff-controls-AsSX7gfO.js → diff-controls-Ci36iPlK.js} +1 -1
- package/web/dist/assets/{diff-view-BW5bbiaq.js → diff-view-CCtuYJNL.js} +1 -1
- package/web/dist/assets/{discard-changes-dialog-Bv4yc0N1.js → discard-changes-dialog-BACqR1hj.js} +1 -1
- package/web/dist/assets/{file-preview-CnrFxbea.js → file-preview-B7T7jFYo.js} +1 -1
- package/web/dist/assets/{folder-browser-CFd1U5hn.js → folder-browser-3cBLlnE9.js} +1 -1
- package/web/dist/assets/{git-toolbar-C7iolhIi.js → git-toolbar-UkRnjuDs.js} +1 -1
- package/web/dist/assets/github-CkbZgMnJ.js +1 -0
- package/web/dist/assets/{global-activity-route-Dijwg4OL.js → global-activity-route-j37l-BQU.js} +1 -1
- package/web/dist/assets/hosts-iUyg8S3j.js +1 -0
- package/web/dist/assets/index-DkQ5xrLr.js +21 -0
- package/web/dist/assets/{label-CgU9vxuM.js → label-CWlxyeC-.js} +1 -1
- package/web/dist/assets/{markdown-Cljq4S1h.js → markdown-FIfZPsax.js} +1 -1
- package/web/dist/assets/{open-in-menu-BI7mnPPf.js → open-in-menu-Bf8JA2DJ.js} +1 -1
- package/web/dist/assets/{option-select-BcTkv-7t.js → option-select-DylfDjGi.js} +1 -1
- package/web/dist/assets/{preferences-section-CEKXGhEj.js → preferences-section-DjWfc1i-.js} +1 -1
- package/web/dist/assets/{preview-EtD19mg1.js → preview-BSFJfN4s.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-CKRBfx7t.js → preview-pane-connected-CfiPFvTH.js} +2 -2
- package/web/dist/assets/{project-location-hufc_p8y.js → project-location-CEX0-MZp.js} +1 -1
- package/web/dist/assets/{project-router-Dc6KBQsv.js → project-router-CwD1firw.js} +1 -1
- package/web/dist/assets/{projects-section-vOFZ4lbx.js → projects-section-Czmf0wFK.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-Caash2nq.js → prompt-templates-section-DK4CV73w.js} +1 -1
- package/web/dist/assets/queries-D9mg7sFY.js +1 -0
- package/web/dist/assets/{read-state-BeVNfGkB.js → read-state-BsTfJki5.js} +1 -1
- package/web/dist/assets/{reference-chip-BjerVjzM.js → reference-chip-CZKBU_Ud.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-fNgh5LdN.js → remote-settings-notice-Dott-jyP.js} +1 -1
- package/web/dist/assets/repo-git-Djt3N2wP.js +1 -0
- package/web/dist/assets/{report-reader-CK1WDtEH.js → report-reader-CrdDix7Z.js} +1 -1
- package/web/dist/assets/{report-selection-CZ8eb9QP.js → report-selection-Y2F9NTAs.js} +1 -1
- package/web/dist/assets/{reports-B-GImLAo.js → reports-Iw4LUvz2.js} +1 -1
- package/web/dist/assets/{resources-section-ApF3gXrw.js → resources-section-D3wUzdUQ.js} +1 -1
- package/web/dist/assets/{review-notes-drafts-BdjEFs1G.js → review-notes-drafts-xyC7GvRB.js} +1 -1
- package/web/dist/assets/{review-panel-D4zmYH8O.js → review-panel-3x_2lbej.js} +1 -1
- package/web/dist/assets/{review-strip-BpHXklAn.js → review-strip-CDYpq9_S.js} +1 -1
- package/web/dist/assets/{run-detail-refresh-CE0vyYYA.js → run-detail-refresh-SYZM94ch.js} +1 -1
- package/web/dist/assets/{run-diff-ClfLRsHF.js → run-diff-D26PXp6r.js} +1 -1
- package/web/dist/assets/run-header-DZ0rkryR.js +2 -0
- package/web/dist/assets/{select-CwDhRDtw.js → select-DC_G2no3.js} +1 -1
- package/web/dist/assets/{session-context-section-C87jx7RB.js → session-context-section-DEUv-ISr.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-Dk8yJ57U.js → settings-agent-picker-BrFN2RaQ.js} +1 -1
- package/web/dist/assets/{settings-save-bar-cu8BKCGT.js → settings-save-bar-C0pFHqte.js} +1 -1
- package/web/dist/assets/{settings-shell-mhQfQKf1.js → settings-shell-BWWbVxv-.js} +1 -1
- package/web/dist/assets/{sidebar-section-DOQ5N1L6.js → sidebar-section-BGo1zjJt.js} +1 -1
- package/web/dist/assets/{skills-DXJ1gQBD.js → skills-qFMQz6sm.js} +1 -1
- package/web/dist/assets/{status-dot-Bmn4xhch.js → status-dot-DTU7afRv.js} +1 -1
- package/web/dist/assets/{tab-link-6TltE1jl.js → tab-link-BJDe5cT4.js} +1 -1
- package/web/dist/assets/{task-changes-D9Sdmpmw.js → task-changes-DKJHAtKC.js} +2 -2
- package/web/dist/assets/{task-commits-A0UIqxpL.js → task-commits-Dtt60D0o.js} +1 -1
- package/web/dist/assets/{task-file-scope-ID220XKo.js → task-file-scope-FTt7SiGn.js} +1 -1
- package/web/dist/assets/{task-files-Id2tuAAG.js → task-files-DVz4222z.js} +1 -1
- package/web/dist/assets/{task-github-item-YKUcwp2o.js → task-github-item-CJpKQ6cU.js} +1 -1
- package/web/dist/assets/{task-groups-DCg4iOB9.js → task-groups-BvVfsQKd.js} +1 -1
- package/web/dist/assets/{task-thread-A_vkygGX.js → task-thread-DiYtqka4.js} +2 -2
- package/web/dist/assets/{thread-state-6-BzRrJ_.js → thread-state-pO7Wy_7R.js} +1 -1
- package/web/dist/assets/toaster-2ud_VdfV.js +4 -0
- package/web/dist/assets/{use-finish-run-DO-nnAaa.js → use-finish-run-5S30Eu3d.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-CADaL8U8.js → use-hand-to-agent-state-BB_VmbF7.js} +1 -1
- package/web/dist/assets/use-path-bases-npA-uKvg.js +1 -0
- package/web/dist/assets/use-workspace-config-save-DDI7_WtK.js +1 -0
- package/web/dist/assets/{workflows-DOLG-Rns.js → workflows-DLuBawpi.js} +2 -2
- package/web/dist/assets/{workspace-tools-DTCJVDTE.js → workspace-tools-D4jshe-2.js} +1 -1
- package/web/dist/assets/{worktrees-section-BOHDbywt.js → worktrees-section-CESTBOem.js} +5 -5
- package/web/dist/index.html +19 -19
- package/web/dist/assets/accounts-section-Bnr89jmC.js +0 -1
- package/web/dist/assets/activity-motion-BW0tAmYF.js +0 -1
- package/web/dist/assets/agent-defaults-section-RyEogH0g.js +0 -1
- package/web/dist/assets/attention-BI6592lk.js +0 -1
- package/web/dist/assets/automations-route-DfGE4xWT.js +0 -2
- package/web/dist/assets/github-DGElvfMU.js +0 -1
- package/web/dist/assets/hosts-CpDMDiQW.js +0 -1
- package/web/dist/assets/index-DPfg7xSB.js +0 -21
- package/web/dist/assets/queries-IlC9MZgh.js +0 -1
- package/web/dist/assets/repo-git-5MK_RAR6.js +0 -1
- package/web/dist/assets/run-header-BUe92WWr.js +0 -2
- package/web/dist/assets/toaster-DNnL8v10.js +0 -4
- package/web/dist/assets/use-path-bases-CFAmFn_E.js +0 -1
- package/web/dist/assets/use-workspace-config-save-DScW6_8J.js +0 -1
|
@@ -1,21 +1,36 @@
|
|
|
1
|
+
import { type HostsRunsIndexResponse } from '../../contract/index.js';
|
|
1
2
|
import type { Home } from '../../home/home.ts';
|
|
2
|
-
import type
|
|
3
|
+
import { type HostAdmissionSupervisor } from './admission.ts';
|
|
4
|
+
import { type HostSearchFetcher } from './runs-search.ts';
|
|
3
5
|
export declare const HOST_PROJECTS_FETCH_TIMEOUT_MS = 5000;
|
|
4
6
|
export declare const HOST_PROJECTS_MAX_RESPONSE_BYTES: number;
|
|
5
|
-
export interface HostRoutesSupervisor {
|
|
7
|
+
export interface HostRoutesSupervisor extends HostAdmissionSupervisor {
|
|
6
8
|
isRunning?(): boolean;
|
|
7
9
|
reconcile?(): void;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
}
|
|
11
|
+
export interface HostRoutesRunsIndex {
|
|
12
|
+
getSnapshot(options?: {
|
|
13
|
+
hostId?: string | undefined;
|
|
14
|
+
}): HostsRunsIndexResponse;
|
|
15
|
+
reconcile?(): void;
|
|
10
16
|
}
|
|
11
17
|
export interface HostsRouteDeps {
|
|
12
18
|
home: Home;
|
|
13
19
|
capabilities: () => Readonly<Record<string, boolean | undefined>>;
|
|
14
20
|
supervisorManager?: HostRoutesSupervisor | undefined;
|
|
21
|
+
runsIndexManager?: HostRoutesRunsIndex | undefined;
|
|
22
|
+
/** Shared registry reconciler synchronizing both supervisors and index tracking with `<config>/hosts.json`. */
|
|
23
|
+
reconcileHosts?: ((mode: 'read' | 'write') => void) | undefined;
|
|
24
|
+
/** Main server generation id for fallback `GET /api/v1/hosts/runs-index` answers. */
|
|
25
|
+
generation?: string | undefined;
|
|
15
26
|
/** Invoke the main cockpit HTTP app in-process (for local & gateway project reads). */
|
|
16
27
|
fetchApp?: ((request: Request) => Promise<Response>) | undefined;
|
|
17
28
|
/** Per-host deadline signal for `GET /api/v1/hosts/projects` gateway reads; defaults to `HOST_PROJECTS_FETCH_TIMEOUT_MS`. */
|
|
18
29
|
hostProjectsDeadline?: ((hostId: string) => AbortSignal) | undefined;
|
|
30
|
+
/** Optional per-host search timeout override (ms) for `GET /api/v1/hosts/runs-search`. */
|
|
31
|
+
hostSearchTimeoutMs?: number | undefined;
|
|
32
|
+
/** Optional connected-host fetcher override for `GET /api/v1/hosts/runs-search` tests. */
|
|
33
|
+
hostSearchFetch?: HostSearchFetcher | undefined;
|
|
19
34
|
/** Optional `~/.ssh/config` path override for tests. */
|
|
20
35
|
sshConfigPath?: string | undefined;
|
|
21
36
|
env?: NodeJS.ProcessEnv | undefined;
|
|
@@ -121,14 +136,375 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
121
136
|
input: {};
|
|
122
137
|
};
|
|
123
138
|
};
|
|
139
|
+
} & {
|
|
140
|
+
"/hosts/runs-index": {
|
|
141
|
+
$get: {
|
|
142
|
+
output: {
|
|
143
|
+
runs: {
|
|
144
|
+
id: string;
|
|
145
|
+
title: string;
|
|
146
|
+
titleSummary?: string | undefined;
|
|
147
|
+
titleOrigin?: "auto" | "marker" | "user" | undefined;
|
|
148
|
+
status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
149
|
+
hasPendingPermission?: boolean | undefined;
|
|
150
|
+
waitingOn?: {
|
|
151
|
+
kind: "human";
|
|
152
|
+
shown?: true | undefined;
|
|
153
|
+
} | {
|
|
154
|
+
kind: "usage-limit";
|
|
155
|
+
at: string;
|
|
156
|
+
} | {
|
|
157
|
+
kind: "workers";
|
|
158
|
+
count: number;
|
|
159
|
+
replies?: true | undefined;
|
|
160
|
+
peers?: true | undefined;
|
|
161
|
+
} | {
|
|
162
|
+
kind: "peers";
|
|
163
|
+
count: number;
|
|
164
|
+
} | {
|
|
165
|
+
kind: "subagents";
|
|
166
|
+
count: number;
|
|
167
|
+
} | {
|
|
168
|
+
kind: "pr";
|
|
169
|
+
until: "checks" | "merge" | "merge_or_blocked";
|
|
170
|
+
waitId: string;
|
|
171
|
+
prUrl: string;
|
|
172
|
+
repository: string;
|
|
173
|
+
prNumber: number;
|
|
174
|
+
deadline: string;
|
|
175
|
+
} | {
|
|
176
|
+
kind: "process";
|
|
177
|
+
waitId: string;
|
|
178
|
+
pid: number;
|
|
179
|
+
deadline: string;
|
|
180
|
+
note?: string | undefined;
|
|
181
|
+
} | {
|
|
182
|
+
kind: "plugin";
|
|
183
|
+
pluginKind: string;
|
|
184
|
+
waitId: string;
|
|
185
|
+
summary: string;
|
|
186
|
+
deadline?: string | undefined;
|
|
187
|
+
} | {
|
|
188
|
+
kind: "timer";
|
|
189
|
+
waitId: string;
|
|
190
|
+
at: string;
|
|
191
|
+
note?: string | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
waitWakePending?: true | undefined;
|
|
194
|
+
delegation?: {
|
|
195
|
+
role: "invalid";
|
|
196
|
+
} | {
|
|
197
|
+
role: "root";
|
|
198
|
+
wait?: {
|
|
199
|
+
workerIds?: string[] | undefined;
|
|
200
|
+
requestIds?: string[] | undefined;
|
|
201
|
+
phase: "parked" | "registered" | "wake-pending";
|
|
202
|
+
outcomes?: {
|
|
203
|
+
workerId: string;
|
|
204
|
+
}[] | undefined;
|
|
205
|
+
} | undefined;
|
|
206
|
+
} | {
|
|
207
|
+
role: "worker";
|
|
208
|
+
parentRunId: string;
|
|
209
|
+
supervisorRunId?: string | undefined;
|
|
210
|
+
wait?: {
|
|
211
|
+
requestIds?: string[] | undefined;
|
|
212
|
+
phase: "parked" | "registered" | "wake-pending";
|
|
213
|
+
} | undefined;
|
|
214
|
+
} | undefined;
|
|
215
|
+
createdAt: string;
|
|
216
|
+
finishedAt?: string | undefined;
|
|
217
|
+
seenAt?: string | undefined;
|
|
218
|
+
archived: boolean;
|
|
219
|
+
autoResumeAt?: string | undefined;
|
|
220
|
+
autoResumeReason?: "provider-error" | "usage-limit" | undefined;
|
|
221
|
+
workflow: string;
|
|
222
|
+
branch?: string | undefined;
|
|
223
|
+
startedAt?: string | undefined;
|
|
224
|
+
pullRequestUrl?: string | undefined;
|
|
225
|
+
pullRequests?: {
|
|
226
|
+
number: number;
|
|
227
|
+
url?: string | undefined;
|
|
228
|
+
source: "created" | "declared";
|
|
229
|
+
}[] | undefined;
|
|
230
|
+
referencedPullRequestUrl?: string | undefined;
|
|
231
|
+
prNumber?: number | undefined;
|
|
232
|
+
issueNumber?: number | undefined;
|
|
233
|
+
referencedIssueUrl?: string | undefined;
|
|
234
|
+
markerRefs?: {
|
|
235
|
+
pr?: number | undefined;
|
|
236
|
+
issue?: number | undefined;
|
|
237
|
+
} | undefined;
|
|
238
|
+
costUsd?: number | undefined;
|
|
239
|
+
peakRssBytes?: number | undefined;
|
|
240
|
+
peakProcCount?: number | undefined;
|
|
241
|
+
usage?: {
|
|
242
|
+
cpuPct: number;
|
|
243
|
+
rssBytes: number;
|
|
244
|
+
procCount: number;
|
|
245
|
+
} | undefined;
|
|
246
|
+
workflowLabel: string;
|
|
247
|
+
groupId?: string | undefined;
|
|
248
|
+
variant?: string | undefined;
|
|
249
|
+
pinned?: boolean | undefined;
|
|
250
|
+
automationId?: string | undefined;
|
|
251
|
+
runner?: string | undefined;
|
|
252
|
+
removedRunner?: string | undefined;
|
|
253
|
+
model?: string | undefined;
|
|
254
|
+
notify?: boolean | undefined;
|
|
255
|
+
diffStat?: {
|
|
256
|
+
adds: number;
|
|
257
|
+
dels: number;
|
|
258
|
+
files: number;
|
|
259
|
+
repointed?: boolean | undefined;
|
|
260
|
+
} | undefined;
|
|
261
|
+
tokensUsed: number;
|
|
262
|
+
inputTokens?: number | undefined;
|
|
263
|
+
outputTokens?: number | undefined;
|
|
264
|
+
currentStepId?: string | undefined;
|
|
265
|
+
currentStepBackend?: string | undefined;
|
|
266
|
+
error?: string | undefined;
|
|
267
|
+
statePreview?: {
|
|
268
|
+
kind: "ask" | "error" | "permission" | "review";
|
|
269
|
+
text: string;
|
|
270
|
+
} | undefined;
|
|
271
|
+
worktreePath?: string | undefined;
|
|
272
|
+
projectId: string;
|
|
273
|
+
hostId: string;
|
|
274
|
+
}[];
|
|
275
|
+
hosts: {
|
|
276
|
+
id: string;
|
|
277
|
+
label: string;
|
|
278
|
+
state: "cannot-persist" | "connected" | "connecting" | "identity-changed" | "needs-node" | "not-hosted" | "paused" | "several-servers" | "unreachable" | "version-mismatch";
|
|
279
|
+
stale: boolean;
|
|
280
|
+
loaded: boolean;
|
|
281
|
+
truncated: string[];
|
|
282
|
+
referenceStatuses: {
|
|
283
|
+
[x: string]: {
|
|
284
|
+
prs: {
|
|
285
|
+
[x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
|
|
286
|
+
};
|
|
287
|
+
issues: {
|
|
288
|
+
[x: number]: "changes-requested" | "checks-failing" | "checks-pending" | "closed" | "completed" | "draft" | "merged" | "not-planned" | "open" | "ready" | "review-required";
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
perProjectLimit?: number | undefined;
|
|
293
|
+
}[];
|
|
294
|
+
generation: string;
|
|
295
|
+
eventSeq: number;
|
|
296
|
+
warning?: string | undefined;
|
|
297
|
+
};
|
|
298
|
+
outputFormat: "json";
|
|
299
|
+
status: 200;
|
|
300
|
+
input: {
|
|
301
|
+
query: {
|
|
302
|
+
hostId?: string | undefined;
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
} | {
|
|
306
|
+
output: {
|
|
307
|
+
error: string;
|
|
308
|
+
code?: "invalid_input" | undefined;
|
|
309
|
+
};
|
|
310
|
+
outputFormat: "json";
|
|
311
|
+
status: 400;
|
|
312
|
+
input: {
|
|
313
|
+
query: {
|
|
314
|
+
hostId?: string | undefined;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
} & {
|
|
320
|
+
"/hosts/runs-search": {
|
|
321
|
+
$get: {
|
|
322
|
+
output: {
|
|
323
|
+
runs: {
|
|
324
|
+
id: string;
|
|
325
|
+
title: string;
|
|
326
|
+
titleSummary?: string | undefined;
|
|
327
|
+
titleOrigin?: "auto" | "marker" | "user" | undefined;
|
|
328
|
+
status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
329
|
+
hasPendingPermission?: boolean | undefined;
|
|
330
|
+
waitingOn?: {
|
|
331
|
+
kind: "human";
|
|
332
|
+
shown?: true | undefined;
|
|
333
|
+
} | {
|
|
334
|
+
kind: "usage-limit";
|
|
335
|
+
at: string;
|
|
336
|
+
} | {
|
|
337
|
+
kind: "workers";
|
|
338
|
+
count: number;
|
|
339
|
+
replies?: true | undefined;
|
|
340
|
+
peers?: true | undefined;
|
|
341
|
+
} | {
|
|
342
|
+
kind: "peers";
|
|
343
|
+
count: number;
|
|
344
|
+
} | {
|
|
345
|
+
kind: "subagents";
|
|
346
|
+
count: number;
|
|
347
|
+
} | {
|
|
348
|
+
kind: "pr";
|
|
349
|
+
until: "checks" | "merge" | "merge_or_blocked";
|
|
350
|
+
waitId: string;
|
|
351
|
+
prUrl: string;
|
|
352
|
+
repository: string;
|
|
353
|
+
prNumber: number;
|
|
354
|
+
deadline: string;
|
|
355
|
+
} | {
|
|
356
|
+
kind: "process";
|
|
357
|
+
waitId: string;
|
|
358
|
+
pid: number;
|
|
359
|
+
deadline: string;
|
|
360
|
+
note?: string | undefined;
|
|
361
|
+
} | {
|
|
362
|
+
kind: "plugin";
|
|
363
|
+
pluginKind: string;
|
|
364
|
+
waitId: string;
|
|
365
|
+
summary: string;
|
|
366
|
+
deadline?: string | undefined;
|
|
367
|
+
} | {
|
|
368
|
+
kind: "timer";
|
|
369
|
+
waitId: string;
|
|
370
|
+
at: string;
|
|
371
|
+
note?: string | undefined;
|
|
372
|
+
} | undefined;
|
|
373
|
+
waitWakePending?: true | undefined;
|
|
374
|
+
delegation?: {
|
|
375
|
+
role: "invalid";
|
|
376
|
+
} | {
|
|
377
|
+
role: "root";
|
|
378
|
+
wait?: {
|
|
379
|
+
workerIds?: string[] | undefined;
|
|
380
|
+
requestIds?: string[] | undefined;
|
|
381
|
+
phase: "parked" | "registered" | "wake-pending";
|
|
382
|
+
outcomes?: {
|
|
383
|
+
workerId: string;
|
|
384
|
+
}[] | undefined;
|
|
385
|
+
} | undefined;
|
|
386
|
+
} | {
|
|
387
|
+
role: "worker";
|
|
388
|
+
parentRunId: string;
|
|
389
|
+
supervisorRunId?: string | undefined;
|
|
390
|
+
wait?: {
|
|
391
|
+
requestIds?: string[] | undefined;
|
|
392
|
+
phase: "parked" | "registered" | "wake-pending";
|
|
393
|
+
} | undefined;
|
|
394
|
+
} | undefined;
|
|
395
|
+
createdAt: string;
|
|
396
|
+
finishedAt?: string | undefined;
|
|
397
|
+
seenAt?: string | undefined;
|
|
398
|
+
archived: boolean;
|
|
399
|
+
autoResumeAt?: string | undefined;
|
|
400
|
+
autoResumeReason?: "provider-error" | "usage-limit" | undefined;
|
|
401
|
+
workflow: string;
|
|
402
|
+
branch?: string | undefined;
|
|
403
|
+
startedAt?: string | undefined;
|
|
404
|
+
pullRequestUrl?: string | undefined;
|
|
405
|
+
pullRequests?: {
|
|
406
|
+
number: number;
|
|
407
|
+
url?: string | undefined;
|
|
408
|
+
source: "created" | "declared";
|
|
409
|
+
}[] | undefined;
|
|
410
|
+
referencedPullRequestUrl?: string | undefined;
|
|
411
|
+
prNumber?: number | undefined;
|
|
412
|
+
issueNumber?: number | undefined;
|
|
413
|
+
referencedIssueUrl?: string | undefined;
|
|
414
|
+
markerRefs?: {
|
|
415
|
+
pr?: number | undefined;
|
|
416
|
+
issue?: number | undefined;
|
|
417
|
+
} | undefined;
|
|
418
|
+
costUsd?: number | undefined;
|
|
419
|
+
peakRssBytes?: number | undefined;
|
|
420
|
+
peakProcCount?: number | undefined;
|
|
421
|
+
usage?: {
|
|
422
|
+
cpuPct: number;
|
|
423
|
+
rssBytes: number;
|
|
424
|
+
procCount: number;
|
|
425
|
+
} | undefined;
|
|
426
|
+
workflowLabel: string;
|
|
427
|
+
groupId?: string | undefined;
|
|
428
|
+
variant?: string | undefined;
|
|
429
|
+
pinned?: boolean | undefined;
|
|
430
|
+
automationId?: string | undefined;
|
|
431
|
+
runner?: string | undefined;
|
|
432
|
+
removedRunner?: string | undefined;
|
|
433
|
+
model?: string | undefined;
|
|
434
|
+
notify?: boolean | undefined;
|
|
435
|
+
diffStat?: {
|
|
436
|
+
adds: number;
|
|
437
|
+
dels: number;
|
|
438
|
+
files: number;
|
|
439
|
+
repointed?: boolean | undefined;
|
|
440
|
+
} | undefined;
|
|
441
|
+
tokensUsed: number;
|
|
442
|
+
inputTokens?: number | undefined;
|
|
443
|
+
outputTokens?: number | undefined;
|
|
444
|
+
currentStepId?: string | undefined;
|
|
445
|
+
currentStepBackend?: string | undefined;
|
|
446
|
+
error?: string | undefined;
|
|
447
|
+
statePreview?: {
|
|
448
|
+
kind: "ask" | "error" | "permission" | "review";
|
|
449
|
+
text: string;
|
|
450
|
+
} | undefined;
|
|
451
|
+
worktreePath?: string | undefined;
|
|
452
|
+
projectId: string;
|
|
453
|
+
hostId: string;
|
|
454
|
+
}[];
|
|
455
|
+
truncated: {
|
|
456
|
+
hostId: string;
|
|
457
|
+
projectId: string;
|
|
458
|
+
}[];
|
|
459
|
+
unanswered: {
|
|
460
|
+
hostId: string;
|
|
461
|
+
label: string;
|
|
462
|
+
state: "cannot-persist" | "connected" | "connecting" | "identity-changed" | "needs-node" | "not-hosted" | "paused" | "several-servers" | "unreachable" | "version-mismatch";
|
|
463
|
+
reason: "deadline" | "error" | "not-connected";
|
|
464
|
+
}[];
|
|
465
|
+
warning?: string | undefined;
|
|
466
|
+
};
|
|
467
|
+
outputFormat: "json";
|
|
468
|
+
status: 200;
|
|
469
|
+
input: {
|
|
470
|
+
query: {
|
|
471
|
+
q: string | string[];
|
|
472
|
+
limit?: number | undefined;
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
} | {
|
|
476
|
+
output: {
|
|
477
|
+
error: string;
|
|
478
|
+
code?: "invalid_input" | undefined;
|
|
479
|
+
};
|
|
480
|
+
outputFormat: "json";
|
|
481
|
+
status: 400;
|
|
482
|
+
input: {
|
|
483
|
+
query: {
|
|
484
|
+
q: string | string[];
|
|
485
|
+
limit?: number | undefined;
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
};
|
|
124
490
|
} & {
|
|
125
491
|
"/hosts": {
|
|
126
492
|
$post: {
|
|
127
493
|
output: {
|
|
128
|
-
|
|
494
|
+
host: {
|
|
495
|
+
id: string;
|
|
496
|
+
label: string;
|
|
497
|
+
state: "cannot-persist" | "connected" | "connecting" | "identity-changed" | "needs-node" | "not-hosted" | "paused" | "several-servers" | "unreachable" | "version-mismatch";
|
|
498
|
+
reason?: string | undefined;
|
|
499
|
+
kind?: "ssh" | undefined;
|
|
500
|
+
sshAlias?: string | undefined;
|
|
501
|
+
installId?: string | undefined;
|
|
502
|
+
port?: number | undefined;
|
|
503
|
+
addedAt?: string | undefined;
|
|
504
|
+
};
|
|
129
505
|
};
|
|
130
506
|
outputFormat: "json";
|
|
131
|
-
status:
|
|
507
|
+
status: 201;
|
|
132
508
|
input: {
|
|
133
509
|
json: {
|
|
134
510
|
sshAlias: string;
|
|
@@ -156,7 +532,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
156
532
|
error: string;
|
|
157
533
|
};
|
|
158
534
|
outputFormat: "json";
|
|
159
|
-
status:
|
|
535
|
+
status: 404;
|
|
160
536
|
input: {
|
|
161
537
|
json: {
|
|
162
538
|
sshAlias: string;
|
|
@@ -170,7 +546,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
170
546
|
error: string;
|
|
171
547
|
};
|
|
172
548
|
outputFormat: "json";
|
|
173
|
-
status:
|
|
549
|
+
status: 409;
|
|
174
550
|
input: {
|
|
175
551
|
json: {
|
|
176
552
|
sshAlias: string;
|
|
@@ -181,20 +557,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
181
557
|
};
|
|
182
558
|
} | {
|
|
183
559
|
output: {
|
|
184
|
-
|
|
185
|
-
id: string;
|
|
186
|
-
label: string;
|
|
187
|
-
state: "cannot-persist" | "connected" | "connecting" | "identity-changed" | "needs-node" | "not-hosted" | "paused" | "several-servers" | "unreachable" | "version-mismatch";
|
|
188
|
-
reason?: string | undefined;
|
|
189
|
-
kind?: "ssh" | undefined;
|
|
190
|
-
sshAlias?: string | undefined;
|
|
191
|
-
installId?: string | undefined;
|
|
192
|
-
port?: number | undefined;
|
|
193
|
-
addedAt?: string | undefined;
|
|
194
|
-
};
|
|
560
|
+
error: string;
|
|
195
561
|
};
|
|
196
562
|
outputFormat: "json";
|
|
197
|
-
status:
|
|
563
|
+
status: 409;
|
|
198
564
|
input: {
|
|
199
565
|
json: {
|
|
200
566
|
sshAlias: string;
|
|
@@ -208,7 +574,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
208
574
|
error: string;
|
|
209
575
|
};
|
|
210
576
|
outputFormat: "json";
|
|
211
|
-
status:
|
|
577
|
+
status: 500;
|
|
212
578
|
input: {
|
|
213
579
|
json: {
|
|
214
580
|
sshAlias: string;
|
|
@@ -223,11 +589,20 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
223
589
|
"/hosts/:id": {
|
|
224
590
|
$patch: {
|
|
225
591
|
output: {
|
|
226
|
-
|
|
227
|
-
|
|
592
|
+
host: {
|
|
593
|
+
id: string;
|
|
594
|
+
label: string;
|
|
595
|
+
state: "cannot-persist" | "connected" | "connecting" | "identity-changed" | "needs-node" | "not-hosted" | "paused" | "several-servers" | "unreachable" | "version-mismatch";
|
|
596
|
+
reason?: string | undefined;
|
|
597
|
+
kind?: "ssh" | undefined;
|
|
598
|
+
sshAlias?: string | undefined;
|
|
599
|
+
installId?: string | undefined;
|
|
600
|
+
port?: number | undefined;
|
|
601
|
+
addedAt?: string | undefined;
|
|
602
|
+
};
|
|
228
603
|
};
|
|
229
604
|
outputFormat: "json";
|
|
230
|
-
status:
|
|
605
|
+
status: 200;
|
|
231
606
|
input: {
|
|
232
607
|
param: {
|
|
233
608
|
id: string;
|
|
@@ -242,9 +617,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
242
617
|
} | {
|
|
243
618
|
output: {
|
|
244
619
|
error: string;
|
|
620
|
+
code?: "invalid_input" | undefined;
|
|
245
621
|
};
|
|
246
622
|
outputFormat: "json";
|
|
247
|
-
status:
|
|
623
|
+
status: 400;
|
|
248
624
|
input: {
|
|
249
625
|
param: {
|
|
250
626
|
id: string;
|
|
@@ -278,7 +654,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
278
654
|
error: string;
|
|
279
655
|
};
|
|
280
656
|
outputFormat: "json";
|
|
281
|
-
status:
|
|
657
|
+
status: 404;
|
|
282
658
|
input: {
|
|
283
659
|
param: {
|
|
284
660
|
id: string;
|
|
@@ -295,7 +671,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
295
671
|
error: string;
|
|
296
672
|
};
|
|
297
673
|
outputFormat: "json";
|
|
298
|
-
status:
|
|
674
|
+
status: 409;
|
|
299
675
|
input: {
|
|
300
676
|
param: {
|
|
301
677
|
id: string;
|
|
@@ -326,20 +702,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
326
702
|
};
|
|
327
703
|
} | {
|
|
328
704
|
output: {
|
|
329
|
-
|
|
330
|
-
id: string;
|
|
331
|
-
label: string;
|
|
332
|
-
state: "cannot-persist" | "connected" | "connecting" | "identity-changed" | "needs-node" | "not-hosted" | "paused" | "several-servers" | "unreachable" | "version-mismatch";
|
|
333
|
-
reason?: string | undefined;
|
|
334
|
-
kind?: "ssh" | undefined;
|
|
335
|
-
sshAlias?: string | undefined;
|
|
336
|
-
installId?: string | undefined;
|
|
337
|
-
port?: number | undefined;
|
|
338
|
-
addedAt?: string | undefined;
|
|
339
|
-
};
|
|
705
|
+
error: string;
|
|
340
706
|
};
|
|
341
707
|
outputFormat: "json";
|
|
342
|
-
status:
|
|
708
|
+
status: 500;
|
|
343
709
|
input: {
|
|
344
710
|
param: {
|
|
345
711
|
id: string;
|
|
@@ -357,11 +723,11 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
357
723
|
"/hosts/:id": {
|
|
358
724
|
$delete: {
|
|
359
725
|
output: {
|
|
360
|
-
|
|
361
|
-
|
|
726
|
+
removed: true;
|
|
727
|
+
id: string;
|
|
362
728
|
};
|
|
363
729
|
outputFormat: "json";
|
|
364
|
-
status:
|
|
730
|
+
status: 200;
|
|
365
731
|
input: {
|
|
366
732
|
param: {
|
|
367
733
|
id: string;
|
|
@@ -370,9 +736,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
370
736
|
} | {
|
|
371
737
|
output: {
|
|
372
738
|
error: string;
|
|
739
|
+
code?: "invalid_input" | undefined;
|
|
373
740
|
};
|
|
374
741
|
outputFormat: "json";
|
|
375
|
-
status:
|
|
742
|
+
status: 400;
|
|
376
743
|
input: {
|
|
377
744
|
param: {
|
|
378
745
|
id: string;
|
|
@@ -394,7 +761,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
394
761
|
error: string;
|
|
395
762
|
};
|
|
396
763
|
outputFormat: "json";
|
|
397
|
-
status:
|
|
764
|
+
status: 404;
|
|
398
765
|
input: {
|
|
399
766
|
param: {
|
|
400
767
|
id: string;
|
|
@@ -405,7 +772,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
405
772
|
error: string;
|
|
406
773
|
};
|
|
407
774
|
outputFormat: "json";
|
|
408
|
-
status:
|
|
775
|
+
status: 409;
|
|
409
776
|
input: {
|
|
410
777
|
param: {
|
|
411
778
|
id: string;
|
|
@@ -424,11 +791,10 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
424
791
|
};
|
|
425
792
|
} | {
|
|
426
793
|
output: {
|
|
427
|
-
|
|
428
|
-
id: string;
|
|
794
|
+
error: string;
|
|
429
795
|
};
|
|
430
796
|
outputFormat: "json";
|
|
431
|
-
status:
|
|
797
|
+
status: 500;
|
|
432
798
|
input: {
|
|
433
799
|
param: {
|
|
434
800
|
id: string;
|