@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
|
@@ -228,6 +228,30 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
|
|
|
228
228
|
deadline: string;
|
|
229
229
|
seconds: number;
|
|
230
230
|
note?: string | undefined;
|
|
231
|
+
} | {
|
|
232
|
+
id: string;
|
|
233
|
+
source: "agent" | "cezar";
|
|
234
|
+
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
235
|
+
registeredAt: string;
|
|
236
|
+
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
237
|
+
resolvedAt?: string | undefined;
|
|
238
|
+
deliveredAt?: string | undefined;
|
|
239
|
+
cancelledAt?: string | undefined;
|
|
240
|
+
turnId: string;
|
|
241
|
+
kind: "process";
|
|
242
|
+
deadline: string;
|
|
243
|
+
timeoutSeconds: number;
|
|
244
|
+
pid: number;
|
|
245
|
+
startToken?: string | undefined;
|
|
246
|
+
exitFile?: string | undefined;
|
|
247
|
+
note?: string | undefined;
|
|
248
|
+
result?: {
|
|
249
|
+
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
250
|
+
observedAt: string;
|
|
251
|
+
exitCode?: number | undefined;
|
|
252
|
+
exitFileNote?: "not-an-exit-code" | undefined;
|
|
253
|
+
diagnostic?: string | undefined;
|
|
254
|
+
} | undefined;
|
|
231
255
|
} | {
|
|
232
256
|
id: string;
|
|
233
257
|
source: "agent" | "cezar";
|
|
@@ -289,30 +313,6 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
|
|
|
289
313
|
reason: "outcome" | "timeout";
|
|
290
314
|
} | undefined;
|
|
291
315
|
wakeInputId?: string | undefined;
|
|
292
|
-
} | {
|
|
293
|
-
id: string;
|
|
294
|
-
source: "agent" | "cezar";
|
|
295
|
-
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
296
|
-
registeredAt: string;
|
|
297
|
-
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
298
|
-
resolvedAt?: string | undefined;
|
|
299
|
-
deliveredAt?: string | undefined;
|
|
300
|
-
cancelledAt?: string | undefined;
|
|
301
|
-
turnId: string;
|
|
302
|
-
kind: "process";
|
|
303
|
-
deadline: string;
|
|
304
|
-
timeoutSeconds: number;
|
|
305
|
-
pid: number;
|
|
306
|
-
startToken?: string | undefined;
|
|
307
|
-
exitFile?: string | undefined;
|
|
308
|
-
note?: string | undefined;
|
|
309
|
-
result?: {
|
|
310
|
-
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
311
|
-
observedAt: string;
|
|
312
|
-
exitCode?: number | undefined;
|
|
313
|
-
exitFileNote?: "not-an-exit-code" | undefined;
|
|
314
|
-
diagnostic?: string | undefined;
|
|
315
|
-
} | undefined;
|
|
316
316
|
} | {
|
|
317
317
|
id: string;
|
|
318
318
|
source: "agent" | "cezar";
|
|
@@ -424,6 +424,30 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
|
|
|
424
424
|
deadline: string;
|
|
425
425
|
seconds: number;
|
|
426
426
|
note?: string | undefined;
|
|
427
|
+
} | {
|
|
428
|
+
id: string;
|
|
429
|
+
source: "agent" | "cezar";
|
|
430
|
+
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
431
|
+
registeredAt: string;
|
|
432
|
+
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
433
|
+
resolvedAt?: string | undefined;
|
|
434
|
+
deliveredAt?: string | undefined;
|
|
435
|
+
cancelledAt?: string | undefined;
|
|
436
|
+
turnId: string;
|
|
437
|
+
kind: "process";
|
|
438
|
+
deadline: string;
|
|
439
|
+
timeoutSeconds: number;
|
|
440
|
+
pid: number;
|
|
441
|
+
startToken?: string | undefined;
|
|
442
|
+
exitFile?: string | undefined;
|
|
443
|
+
note?: string | undefined;
|
|
444
|
+
result?: {
|
|
445
|
+
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
446
|
+
observedAt: string;
|
|
447
|
+
exitCode?: number | undefined;
|
|
448
|
+
exitFileNote?: "not-an-exit-code" | undefined;
|
|
449
|
+
diagnostic?: string | undefined;
|
|
450
|
+
} | undefined;
|
|
427
451
|
} | {
|
|
428
452
|
id: string;
|
|
429
453
|
source: "agent" | "cezar";
|
|
@@ -485,30 +509,6 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
|
|
|
485
509
|
reason: "outcome" | "timeout";
|
|
486
510
|
} | undefined;
|
|
487
511
|
wakeInputId?: string | undefined;
|
|
488
|
-
} | {
|
|
489
|
-
id: string;
|
|
490
|
-
source: "agent" | "cezar";
|
|
491
|
-
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
492
|
-
registeredAt: string;
|
|
493
|
-
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
494
|
-
resolvedAt?: string | undefined;
|
|
495
|
-
deliveredAt?: string | undefined;
|
|
496
|
-
cancelledAt?: string | undefined;
|
|
497
|
-
turnId: string;
|
|
498
|
-
kind: "process";
|
|
499
|
-
deadline: string;
|
|
500
|
-
timeoutSeconds: number;
|
|
501
|
-
pid: number;
|
|
502
|
-
startToken?: string | undefined;
|
|
503
|
-
exitFile?: string | undefined;
|
|
504
|
-
note?: string | undefined;
|
|
505
|
-
result?: {
|
|
506
|
-
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
507
|
-
observedAt: string;
|
|
508
|
-
exitCode?: number | undefined;
|
|
509
|
-
exitFileNote?: "not-an-exit-code" | undefined;
|
|
510
|
-
diagnostic?: string | undefined;
|
|
511
|
-
} | undefined;
|
|
512
512
|
} | {
|
|
513
513
|
id: string;
|
|
514
514
|
source: "agent" | "cezar";
|
|
@@ -619,6 +619,30 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
|
|
|
619
619
|
deadline: string;
|
|
620
620
|
seconds: number;
|
|
621
621
|
note?: string | undefined;
|
|
622
|
+
} | {
|
|
623
|
+
id: string;
|
|
624
|
+
source: "agent" | "cezar";
|
|
625
|
+
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
626
|
+
registeredAt: string;
|
|
627
|
+
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
628
|
+
resolvedAt?: string | undefined;
|
|
629
|
+
deliveredAt?: string | undefined;
|
|
630
|
+
cancelledAt?: string | undefined;
|
|
631
|
+
turnId: string;
|
|
632
|
+
kind: "process";
|
|
633
|
+
deadline: string;
|
|
634
|
+
timeoutSeconds: number;
|
|
635
|
+
pid: number;
|
|
636
|
+
startToken?: string | undefined;
|
|
637
|
+
exitFile?: string | undefined;
|
|
638
|
+
note?: string | undefined;
|
|
639
|
+
result?: {
|
|
640
|
+
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
641
|
+
observedAt: string;
|
|
642
|
+
exitCode?: number | undefined;
|
|
643
|
+
exitFileNote?: "not-an-exit-code" | undefined;
|
|
644
|
+
diagnostic?: string | undefined;
|
|
645
|
+
} | undefined;
|
|
622
646
|
} | {
|
|
623
647
|
id: string;
|
|
624
648
|
source: "agent" | "cezar";
|
|
@@ -680,30 +704,6 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
|
|
|
680
704
|
reason: "outcome" | "timeout";
|
|
681
705
|
} | undefined;
|
|
682
706
|
wakeInputId?: string | undefined;
|
|
683
|
-
} | {
|
|
684
|
-
id: string;
|
|
685
|
-
source: "agent" | "cezar";
|
|
686
|
-
via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
|
|
687
|
-
registeredAt: string;
|
|
688
|
-
phase: "cancelled" | "delivered" | "open" | "resolved";
|
|
689
|
-
resolvedAt?: string | undefined;
|
|
690
|
-
deliveredAt?: string | undefined;
|
|
691
|
-
cancelledAt?: string | undefined;
|
|
692
|
-
turnId: string;
|
|
693
|
-
kind: "process";
|
|
694
|
-
deadline: string;
|
|
695
|
-
timeoutSeconds: number;
|
|
696
|
-
pid: number;
|
|
697
|
-
startToken?: string | undefined;
|
|
698
|
-
exitFile?: string | undefined;
|
|
699
|
-
note?: string | undefined;
|
|
700
|
-
result?: {
|
|
701
|
-
outcome: "deadline" | "error" | "exit_file" | "exited";
|
|
702
|
-
observedAt: string;
|
|
703
|
-
exitCode?: number | undefined;
|
|
704
|
-
exitFileNote?: "not-an-exit-code" | undefined;
|
|
705
|
-
diagnostic?: string | undefined;
|
|
706
|
-
} | undefined;
|
|
707
707
|
} | {
|
|
708
708
|
id: string;
|
|
709
709
|
source: "agent" | "cezar";
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import type { Wait } from '../contract/index.js';
|
|
1
|
+
import type { Wait, WaitPhase } from '../contract/index.js';
|
|
2
|
+
import type { FiredBy } from '../workflows/run-states.ts';
|
|
2
3
|
import type { RunRecord } from './store.ts';
|
|
4
|
+
/** The phases a wait entry moves through. Their writes go through RunStore.commitOutcome (hearsay-tools/cezarion#1805). */
|
|
5
|
+
export declare const WAIT_PHASES: {
|
|
6
|
+
readonly [P in WaitPhase]: readonly {
|
|
7
|
+
to: WaitPhase;
|
|
8
|
+
firedBy: readonly FiredBy[];
|
|
9
|
+
}[];
|
|
10
|
+
};
|
|
3
11
|
/** Check the entry a store write puts in place; an undeclared write still lands. */
|
|
4
12
|
export declare function checkWaitWrite(run: Pick<RunRecord, 'waits' | 'lastWaits'>, entry: Wait): void;
|
package/dist/runs/wait-phases.js
CHANGED
|
@@ -1,11 +1,26 @@
|
|
|
1
|
-
import { WAIT_PHASES } from '../workflows/run-states.js';
|
|
2
1
|
import { reportStoreViolation } from './run-exits.js';
|
|
2
|
+
/** The phases a wait entry moves through. Their writes go through RunStore.commitOutcome (hearsay-tools/cezarion#1805). */
|
|
3
|
+
export const WAIT_PHASES = {
|
|
4
|
+
open: [
|
|
5
|
+
{ to: 'open', firedBy: ['agent', 'human', 'engine', 'runner', 'worker'] },
|
|
6
|
+
{ to: 'delivered', firedBy: ['human'] },
|
|
7
|
+
{ to: 'resolved', firedBy: ['watcher', 'timer', 'worker', 'peer', 'human', 'parent', 'runner', 'recovery'] },
|
|
8
|
+
{ to: 'cancelled', firedBy: ['agent', 'human', 'engine', 'runner'] },
|
|
9
|
+
],
|
|
10
|
+
resolved: [
|
|
11
|
+
{ to: 'resolved', firedBy: ['recovery'] },
|
|
12
|
+
{ to: 'delivered', firedBy: ['runner'] },
|
|
13
|
+
{ to: 'cancelled', firedBy: ['human', 'engine'] },
|
|
14
|
+
],
|
|
15
|
+
delivered: [],
|
|
16
|
+
cancelled: [],
|
|
17
|
+
};
|
|
3
18
|
/** Check the entry a store write puts in place; an undeclared write still lands. */
|
|
4
19
|
export function checkWaitWrite(run, entry) {
|
|
5
20
|
const prior = run.waits?.find(wait => wait.id === entry.id);
|
|
6
21
|
const from = prior?.phase ?? (run.lastWaits?.some(wait => wait.id === entry.id) ? 'settled' : 'new');
|
|
7
22
|
if (prior ? WAIT_PHASES[prior.phase].some(row => row.to === entry.phase) : from === 'new' && entry.phase === 'open')
|
|
8
23
|
return;
|
|
9
|
-
reportStoreViolation(`undeclared wait transition: ${entry.kind} wait ${entry.id} from ${from} to ${entry.phase} (declare it in
|
|
24
|
+
reportStoreViolation(`undeclared wait transition: ${entry.kind} wait ${entry.id} from ${from} to ${entry.phase} (declare it in runs/wait-phases.ts WAIT_PHASES)`);
|
|
10
25
|
}
|
|
11
26
|
//# sourceMappingURL=wait-phases.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wait-phases.js","sourceRoot":"","sources":["../../src/runs/wait-phases.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wait-phases.js","sourceRoot":"","sources":["../../src/runs/wait-phases.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAGtD,2HAA2H;AAC3H,MAAM,CAAC,MAAM,WAAW,GAA6F;IACnH,IAAI,EAAE;QACJ,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE;QACzE,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE;QACvC,EAAE,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAE;QAC5G,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE;KACrE;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE;QACzC,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE;QACxC,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE;KAClD;IACD,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAE;CACd,CAAC;AAEF,oFAAoF;AACpF,MAAM,UAAU,cAAc,CAAC,GAA2C,EAAE,KAAW;IACrF,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CAAC,CAAC;IAC5D,MAAM,IAAI,GAAG,KAAK,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACrG,IAAI,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,IAAI,KAAK,CAAC,KAAK,KAAK,MAAM;QAAE,OAAO;IAC5H,oBAAoB,CAAC,+BAA+B,KAAK,CAAC,IAAI,SAAS,KAAK,CAAC,EAAE,SAAS,IAAI,OAAO,KAAK,CAAC,KAAK,kDAAkD,CAAC,CAAC;AACpK,CAAC"}
|
|
@@ -30,10 +30,19 @@ export declare function createModelsRoutes(options: {
|
|
|
30
30
|
};
|
|
31
31
|
} | {
|
|
32
32
|
output: {
|
|
33
|
-
|
|
33
|
+
runner: string;
|
|
34
|
+
models: {
|
|
35
|
+
id: string;
|
|
36
|
+
label: string;
|
|
37
|
+
description: string;
|
|
38
|
+
effortLevels?: import('../contract/index.js').EffortLevel[];
|
|
39
|
+
}[];
|
|
40
|
+
source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
|
|
41
|
+
stale: boolean;
|
|
42
|
+
reason?: string;
|
|
34
43
|
};
|
|
35
44
|
outputFormat: "json";
|
|
36
|
-
status:
|
|
45
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
37
46
|
input: {
|
|
38
47
|
query: {
|
|
39
48
|
runner: string | string[];
|
|
@@ -54,19 +63,10 @@ export declare function createModelsRoutes(options: {
|
|
|
54
63
|
};
|
|
55
64
|
} | {
|
|
56
65
|
output: {
|
|
57
|
-
|
|
58
|
-
models: {
|
|
59
|
-
id: string;
|
|
60
|
-
label: string;
|
|
61
|
-
description: string;
|
|
62
|
-
effortLevels?: import('../contract/index.js').EffortLevel[];
|
|
63
|
-
}[];
|
|
64
|
-
source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
|
|
65
|
-
stale: boolean;
|
|
66
|
-
reason?: string;
|
|
66
|
+
error: string;
|
|
67
67
|
};
|
|
68
68
|
outputFormat: "json";
|
|
69
|
-
status:
|
|
69
|
+
status: 400;
|
|
70
70
|
input: {
|
|
71
71
|
query: {
|
|
72
72
|
runner: string | string[];
|
|
@@ -51,15 +51,11 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
51
51
|
"/runner-install/:runner": {
|
|
52
52
|
$post: {
|
|
53
53
|
output: {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
latestVersion: string | null;
|
|
57
|
-
updateAvailable: boolean;
|
|
58
|
-
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
59
|
-
error: string | null;
|
|
54
|
+
error: string;
|
|
55
|
+
code?: "invalid_input" | undefined;
|
|
60
56
|
};
|
|
61
57
|
outputFormat: "json";
|
|
62
|
-
status:
|
|
58
|
+
status: 400;
|
|
63
59
|
input: {
|
|
64
60
|
param: {
|
|
65
61
|
runner: string;
|
|
@@ -71,11 +67,15 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
71
67
|
};
|
|
72
68
|
} | {
|
|
73
69
|
output: {
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
supported: boolean;
|
|
71
|
+
installedVersion: string | null;
|
|
72
|
+
latestVersion: string | null;
|
|
73
|
+
updateAvailable: boolean;
|
|
74
|
+
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
75
|
+
error: string | null;
|
|
76
76
|
};
|
|
77
77
|
outputFormat: "json";
|
|
78
|
-
status:
|
|
78
|
+
status: 202;
|
|
79
79
|
input: {
|
|
80
80
|
param: {
|
|
81
81
|
runner: string;
|