@hearsay-tools/squawk 0.18.0-dev.7661 → 0.18.0-dev.7675
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 +49 -46
- package/dist/ci-wait/tool-catalog.d.ts +2 -0
- package/dist/contract/agent-profiles.d.ts +4 -0
- package/dist/contract/ask-schema.d.ts +2 -0
- package/dist/contract/conversations.d.ts +5 -0
- package/dist/contract/delegation.d.ts +1 -0
- package/dist/contract/discovery.d.ts +3 -0
- package/dist/contract/events.d.ts +1 -0
- package/dist/contract/index.js +19 -2
- package/dist/contract/provider-requests.d.ts +6 -0
- package/dist/contract/query-requests.d.ts +1 -0
- package/dist/contract/runners.d.ts +2 -0
- package/dist/contract/runs.d.ts +12 -0
- package/dist/contract/waits.d.ts +4 -0
- package/dist/contract/workspace.d.ts +19 -0
- package/dist/core/agent-profiles.js +5 -1
- package/dist/core/agent-profiles.js.map +1 -1
- package/dist/core/backend-detect.js +3 -2
- package/dist/core/backend-detect.js.map +1 -1
- package/dist/core/host-model-catalog.js +2 -1
- package/dist/core/host-model-catalog.js.map +1 -1
- package/dist/core/model-identity.d.ts +2 -0
- package/dist/core/model-identity.js +4 -0
- package/dist/core/model-identity.js.map +1 -1
- package/dist/core/model-presets.d.ts +2 -1
- package/dist/core/model-presets.js +3 -2
- package/dist/core/model-presets.js.map +1 -1
- package/dist/core/provider-auth.d.ts +1 -0
- package/dist/core/provider-auth.js +5 -2
- package/dist/core/provider-auth.js.map +1 -1
- package/dist/core/runner-definition.d.ts +21 -2
- package/dist/core/runner-definition.js.map +1 -1
- package/dist/core/runner-facts.d.ts +3 -0
- package/dist/core/runner-facts.js.map +1 -1
- package/dist/core/runner-model-catalog.d.ts +7 -2
- package/dist/core/runner-model-catalog.js +45 -19
- package/dist/core/runner-model-catalog.js.map +1 -1
- package/dist/core/session-descendants.d.ts +15 -0
- package/dist/core/session-descendants.js +95 -0
- package/dist/core/session-descendants.js.map +1 -0
- package/dist/core/ui-events.d.ts +2 -0
- package/dist/delegation/conversation-send.d.ts +1 -0
- package/dist/delegation/routes.d.ts +86 -80
- package/dist/delegation/transport.d.ts +82 -76
- package/dist/discovery/choices.js +4 -2
- package/dist/discovery/choices.js.map +1 -1
- package/dist/runners/acp/events.d.ts +1 -0
- package/dist/runners/acp/events.js +12 -0
- package/dist/runners/acp/events.js.map +1 -1
- package/dist/runners/acp/protocol.d.ts +4 -1
- package/dist/runners/acp/session.js +14 -1
- package/dist/runners/acp/session.js.map +1 -1
- package/dist/runners/antigravity/account-home.d.ts +2 -0
- package/dist/runners/antigravity/account-home.js +31 -0
- package/dist/runners/antigravity/account-home.js.map +1 -0
- package/dist/runners/antigravity/accounts.d.ts +6 -1
- package/dist/runners/antigravity/accounts.js +2 -2
- package/dist/runners/antigravity/accounts.js.map +1 -1
- package/dist/runners/antigravity/antigravity-model-catalog.d.ts +7 -2
- package/dist/runners/antigravity/antigravity-model-catalog.js +63 -3
- package/dist/runners/antigravity/antigravity-model-catalog.js.map +1 -1
- package/dist/runners/antigravity/antigravity-runner.d.ts +1 -0
- package/dist/runners/antigravity/antigravity-session.d.ts +4 -0
- package/dist/runners/antigravity/antigravity-session.js +29 -9
- package/dist/runners/antigravity/antigravity-session.js.map +1 -1
- package/dist/runners/antigravity/antigravity-skill-catalog.js +2 -0
- package/dist/runners/antigravity/antigravity-skill-catalog.js.map +1 -1
- package/dist/runners/antigravity/browser-sign-in.d.ts +4 -0
- package/dist/runners/antigravity/browser-sign-in.js +133 -0
- package/dist/runners/antigravity/browser-sign-in.js.map +1 -0
- package/dist/runners/antigravity/build-label.d.ts +2 -0
- package/dist/runners/antigravity/build-label.js +32 -0
- package/dist/runners/antigravity/build-label.js.map +1 -0
- package/dist/runners/antigravity/definition.js +2 -0
- package/dist/runners/antigravity/definition.js.map +1 -1
- package/dist/runners/antigravity/detection.d.ts +2 -1
- package/dist/runners/antigravity/detection.js +2 -1
- package/dist/runners/antigravity/detection.js.map +1 -1
- package/dist/runners/antigravity/facts.d.ts +1 -0
- package/dist/runners/antigravity/facts.js +1 -0
- package/dist/runners/antigravity/facts.js.map +1 -1
- package/dist/runners/antigravity/login-probe.d.ts +1 -0
- package/dist/runners/antigravity/login-probe.js +13 -6
- package/dist/runners/antigravity/login-probe.js.map +1 -1
- package/dist/runners/antigravity/models.js +2 -1
- package/dist/runners/antigravity/models.js.map +1 -1
- package/dist/runners/antigravity/permissions.d.ts +2 -2
- package/dist/runners/antigravity/permissions.js +9 -5
- package/dist/runners/antigravity/permissions.js.map +1 -1
- package/dist/runners/antigravity/probe-process.d.ts +16 -0
- package/dist/runners/antigravity/probe-process.js +58 -0
- package/dist/runners/antigravity/probe-process.js.map +1 -0
- package/dist/runners/antigravity/runtime-env.d.ts +1 -0
- package/dist/runners/antigravity/runtime-env.js +11 -3
- package/dist/runners/antigravity/runtime-env.js.map +1 -1
- package/dist/runners/antigravity/spec-support.js +2 -2
- package/dist/runners/antigravity/spec-support.js.map +1 -1
- package/dist/runners/antigravity/tool-normalization.d.ts +5 -0
- package/dist/runners/antigravity/tool-normalization.js +9 -0
- package/dist/runners/antigravity/tool-normalization.js.map +1 -1
- package/dist/runners/claude/claude-cli-runner.d.ts +1 -0
- package/dist/runners/claude/facts.d.ts +1 -0
- package/dist/runners/claude/facts.js +1 -0
- package/dist/runners/claude/facts.js.map +1 -1
- package/dist/runners/codex/codex-app-server-runner.d.ts +1 -0
- package/dist/runners/codex/facts.d.ts +1 -0
- package/dist/runners/codex/facts.js +1 -0
- package/dist/runners/codex/facts.js.map +1 -1
- package/dist/runners/omp/facts.d.ts +1 -0
- package/dist/runners/omp/facts.js +1 -0
- package/dist/runners/omp/facts.js.map +1 -1
- package/dist/runners/omp/omp-runner.d.ts +1 -0
- package/dist/runners/opencode/facts.d.ts +1 -0
- package/dist/runners/opencode/facts.js +1 -0
- package/dist/runners/opencode/facts.js.map +1 -1
- package/dist/runners/opencode/opencode-server-runner.d.ts +1 -0
- package/dist/runners/pi/facts.d.ts +1 -0
- package/dist/runners/pi/facts.js +1 -0
- package/dist/runners/pi/facts.js.map +1 -1
- package/dist/runners/pi/pi-runner.d.ts +1 -0
- package/dist/runs/delegation-state.d.ts +1 -0
- package/dist/runs/run-exits.d.ts +20 -0
- package/dist/runs/store.d.ts +8 -0
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/models-routes.d.ts +78 -0
- package/dist/server/models-routes.js +26 -0
- package/dist/server/models-routes.js.map +1 -0
- package/dist/server/provider-sign-in-routes.d.ts +231 -0
- package/dist/server/provider-sign-in-routes.js +59 -0
- package/dist/server/provider-sign-in-routes.js.map +1 -0
- package/dist/server/provider-sign-ins.d.ts +12 -0
- package/dist/server/provider-sign-ins.js +61 -0
- package/dist/server/provider-sign-ins.js.map +1 -0
- package/dist/server/runners-routes.d.ts +1 -0
- package/dist/server/runners-routes.js +2 -1
- package/dist/server/runners-routes.js.map +1 -1
- package/dist/server/server.d.ts +625 -302
- package/dist/server/server.js +5 -12
- package/dist/server/server.js.map +1 -1
- package/dist/workflows/completion-policy.d.ts +2 -0
- package/dist/workflows/continuation-admission.d.ts +4 -0
- package/dist/workflows/input-acknowledgement.d.ts +1 -0
- package/dist/workflows/run/completion-gate.d.ts +1 -0
- package/dist/workflows/run/human-waits.d.ts +1 -0
- package/dist/workflows/run/wait-engine.d.ts +4 -0
- package/package.json +4 -4
- package/scripts/mock-acp.mjs +42 -2
- package/scripts/mock-antigravity-auth.mjs +50 -0
- package/web/dist/assets/activity-motion-D9kDOQdA.js +2 -0
- package/web/dist/assets/{activity-route--JtxzMg2.js → activity-route-CZsGE2kr.js} +1 -1
- package/web/dist/assets/attention-zJ-ho5os.js +1 -0
- package/web/dist/assets/{button-RJMdCnZw.js → button-C1fD-ZFr.js} +1 -1
- package/web/dist/assets/{centered-state-dmABwupF.js → centered-state-CiiA8Vgw.js} +1 -1
- package/web/dist/assets/{cez-idle-C7yy2Oqo.js → cez-idle-D1rXzVuh.js} +1 -1
- package/web/dist/assets/commit-diff-panel-BuON_M0j.js +1 -0
- package/web/dist/assets/{dialog-7Mg2IZCP.js → dialog-DSwzMeY3.js} +1 -1
- package/web/dist/assets/{diff-gHdx2Gyg.js → diff-Db5bcfH_.js} +2 -2
- package/web/dist/assets/diff-controls-C8aqhty4.js +1 -0
- package/web/dist/assets/{diff-view-CiJf2jAb.js → diff-view-DqlLiU5V.js} +1 -1
- package/web/dist/assets/{dist-FHKv_Ysh.js → dist-Du8mGhoH.js} +1 -1
- package/web/dist/assets/{dropdown-menu-Cr9RsmWG.js → dropdown-menu-DRFDwG2X.js} +1 -1
- package/web/dist/assets/{es2015-VrVcR1vD.js → es2015-Ch36azR0.js} +1 -1
- package/web/dist/assets/{file-preview-wO3fbdrM.js → file-preview-DSnLzP2A.js} +1 -1
- package/web/dist/assets/{git-toolbar-kNAK8kM_.js → git-toolbar-WHsIb3zj.js} +1 -1
- package/web/dist/assets/github-BZSy7bl0.js +1 -0
- package/web/dist/assets/{global-activity-route-DpAnt7mF.js → global-activity-route-BPvST6Do.js} +1 -1
- package/web/dist/assets/{image-preview-BmcpjY75.js → image-preview-2AnVvt0e.js} +1 -1
- package/web/dist/assets/{index-D6Jjh8b7.css → index-CSsMeh0Q.css} +1 -1
- package/web/dist/assets/index-DmUnZuj2.js +14 -0
- package/web/dist/assets/{live-protocol-CjfZMf1X.js → live-protocol-DKHlCFyG.js} +1 -1
- package/web/dist/assets/{markdown-CcWvWY7-.js → markdown-EqokmdNx.js} +1 -1
- package/web/dist/assets/{nav-row-styles-D4xk5Osn.js → nav-row-styles-CFjnD-9J.js} +1 -1
- package/web/dist/assets/picker-pill-DP8YY8yK.js +15 -0
- package/web/dist/assets/{preview-pane-connected-CqKhv4IY.js → preview-pane-connected-DePVzNAm.js} +3 -3
- package/web/dist/assets/{project-router-BNi9OCwj.js → project-router-LT30LjzY.js} +1 -1
- package/web/dist/assets/project-scope-context-DMCS5p-N.js +4 -0
- package/web/dist/assets/{prompt-template-menu-CSWQm6rc.js → prompt-template-menu-DhXONhoB.js} +1 -1
- package/web/dist/assets/queries-DHY6U3e_.js +1 -0
- package/web/dist/assets/reference-chip-BKeVxG_E.js +1 -0
- package/web/dist/assets/{repo-git-_YXOm-_R.js → repo-git-CWn2Z4Un.js} +1 -1
- package/web/dist/assets/{report-reader-BzjGkXqT.js → report-reader-RkXaRhiv.js} +1 -1
- package/web/dist/assets/reports-CiU1cLpn.js +1 -0
- package/web/dist/assets/run-header-z48y-i75.js +2 -0
- package/web/dist/assets/runners-C-sPUQye.js +1 -0
- package/web/dist/assets/{skills-DkGf6wZ1.js → skills-BeZ9naR_.js} +1 -1
- package/web/dist/assets/{tab-link-Bi9k8bF7.js → tab-link-C_0J92TF.js} +1 -1
- package/web/dist/assets/{task-changes-CA3AKPxL.js → task-changes-R9UrXbyp.js} +1 -1
- package/web/dist/assets/task-commits-BgwKBJPa.js +1 -0
- package/web/dist/assets/{task-files-Dnpis8EC.js → task-files-BuoYB5UQ.js} +1 -1
- package/web/dist/assets/{task-github-item-CeKxOrC7.js → task-github-item-DQ_suCNz.js} +1 -1
- package/web/dist/assets/task-thread-B7GO7yjQ.js +9 -0
- package/web/dist/assets/thread-state-DSb5VKd8.js +4 -0
- package/web/dist/assets/{toaster-BWMQArHJ.js → toaster-Cxgzn9ip.js} +1 -1
- package/web/dist/assets/{use-desktop-BIR3yp9r.js → use-desktop-EnHXg46f.js} +1 -1
- package/web/dist/assets/use-hand-to-agent-state-C6FNQ2e0.js +1 -0
- package/web/dist/assets/{useInfiniteQuery-BipmcFHn.js → useInfiniteQuery-CvdGA_PU.js} +1 -1
- package/web/dist/assets/useQuery-BJFZunTR.js +1 -0
- package/web/dist/assets/{workflows-CLahFvij.js → workflows-b6WsU1qg.js} +3 -3
- package/web/dist/assets/{ws-Q8U4J3aJ.js → ws-BxsIvFCG.js} +1 -1
- package/web/dist/assets/{zoomable-image-DefjK4q5.js → zoomable-image-DrDnCL4V.js} +1 -1
- package/web/dist/index.html +24 -24
- package/web/dist/live-worker.js +1 -1
- package/web/dist/assets/activity-motion-DolQZDpQ.js +0 -2
- package/web/dist/assets/attention-BKUao3ek.js +0 -1
- package/web/dist/assets/commit-diff-panel-B2gS1ZaB.js +0 -1
- package/web/dist/assets/diff-controls-BpQyN23g.js +0 -1
- package/web/dist/assets/github-CeD4m2El.js +0 -1
- package/web/dist/assets/index-O5OYjDqv.js +0 -14
- package/web/dist/assets/picker-pill-B2VxxL1D.js +0 -15
- package/web/dist/assets/project-scope-context-DE_iUInX.js +0 -4
- package/web/dist/assets/queries-BeaJJEJK.js +0 -1
- package/web/dist/assets/reference-chip-7zf-u89p.js +0 -1
- package/web/dist/assets/reports-DXNWZuef.js +0 -1
- package/web/dist/assets/run-header-B-u7ZdQI.js +0 -2
- package/web/dist/assets/runners-DGs5n2Tx.js +0 -1
- package/web/dist/assets/task-commits-Dh2HOS5_.js +0 -1
- package/web/dist/assets/task-thread-pDMc83WZ.js +0 -9
- package/web/dist/assets/thread-state-Dmdwd-NJ.js +0 -4
- package/web/dist/assets/use-hand-to-agent-state-C-K9FCmf.js +0 -1
- package/web/dist/assets/useQuery-BfRbMVIN.js +0 -1
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { ChildProcess, spawnSync } from 'node:child_process';
|
|
2
|
+
import { readdirSync, readFileSync } from 'node:fs';
|
|
3
|
+
import { exitedStat, linuxBootId, parseProcStat, pidExists, processStartToken, statFields } from './process-stat.js';
|
|
4
|
+
function processRows() {
|
|
5
|
+
if (process.platform === 'linux') {
|
|
6
|
+
let names;
|
|
7
|
+
try {
|
|
8
|
+
names = readdirSync('/proc');
|
|
9
|
+
}
|
|
10
|
+
catch {
|
|
11
|
+
return [];
|
|
12
|
+
}
|
|
13
|
+
const boot = linuxBootId();
|
|
14
|
+
return names.filter(name => /^\d+$/.test(name)).flatMap(name => {
|
|
15
|
+
try {
|
|
16
|
+
const stat = readFileSync(`/proc/${name}/stat`, 'utf8');
|
|
17
|
+
const parsed = parseProcStat(stat);
|
|
18
|
+
return parsed && !exitedStat(statFields(stat)) ? [{ pid: Number(name), parent: Number(statFields(stat)[1]), token: boot ? `${boot}:${parsed.startToken}` : parsed.startToken }] : [];
|
|
19
|
+
}
|
|
20
|
+
catch {
|
|
21
|
+
return [];
|
|
22
|
+
} // A process can exit during the snapshot.
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
if (process.platform !== 'darwin')
|
|
26
|
+
return [];
|
|
27
|
+
const ps = spawnSync('ps', ['-axo', 'pid=,ppid=,lstart='], { encoding: 'utf8', timeout: 2_000,
|
|
28
|
+
env: { ...process.env, LC_ALL: 'C', TZ: 'UTC' } });
|
|
29
|
+
if (ps.status !== 0)
|
|
30
|
+
return [];
|
|
31
|
+
return ps.stdout.split('\n').flatMap(line => {
|
|
32
|
+
const match = /^\s*(\d+)\s+(\d+)\s+(.+?)\s*$/.exec(line);
|
|
33
|
+
return match ? [{ pid: Number(match[1]), parent: Number(match[2]), token: match[3] }] : [];
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
/** Capture before cancelling a harness: detached commands can be reparented when it exits.
|
|
37
|
+
* Only observed descendants with the same process incarnation are signalled. This is bounded
|
|
38
|
+
* cleanup, not containment of children that escape before the first snapshot. */
|
|
39
|
+
export class SessionDescendants {
|
|
40
|
+
child;
|
|
41
|
+
members = new Map();
|
|
42
|
+
rootToken;
|
|
43
|
+
terminating = false;
|
|
44
|
+
constructor(child) {
|
|
45
|
+
this.child = child;
|
|
46
|
+
this.rootToken = child instanceof ChildProcess && child.pid ? this.token(child.pid) : undefined;
|
|
47
|
+
}
|
|
48
|
+
token(pid) {
|
|
49
|
+
return processStartToken(pid);
|
|
50
|
+
}
|
|
51
|
+
capture() {
|
|
52
|
+
if (!this.child.pid || !this.rootToken)
|
|
53
|
+
return;
|
|
54
|
+
const rows = processRows();
|
|
55
|
+
const roots = new Set(rows.filter(row => this.members.get(row.pid) === row.token).map(row => row.pid));
|
|
56
|
+
if (rows.some(row => row.pid === this.child.pid && row.token === this.rootToken))
|
|
57
|
+
roots.add(this.child.pid);
|
|
58
|
+
let changed = true;
|
|
59
|
+
while (changed) {
|
|
60
|
+
changed = false;
|
|
61
|
+
for (const row of rows) {
|
|
62
|
+
if (roots.has(row.pid) || !roots.has(row.parent))
|
|
63
|
+
continue;
|
|
64
|
+
roots.add(row.pid);
|
|
65
|
+
this.members.set(row.pid, row.token);
|
|
66
|
+
changed = true;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
signal(signal) {
|
|
71
|
+
// Descendants before parents, so a dying harness cannot orphan a command first.
|
|
72
|
+
for (const [pid, token] of [...this.members].reverse()) {
|
|
73
|
+
if (pid <= 1 || this.token(pid) !== token || !pidExists(pid)) {
|
|
74
|
+
this.members.delete(pid);
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
try {
|
|
78
|
+
process.kill(pid, signal);
|
|
79
|
+
}
|
|
80
|
+
catch { /* It exited after the identity check. */ }
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
terminate(graceMs) {
|
|
84
|
+
if (this.terminating)
|
|
85
|
+
return;
|
|
86
|
+
this.terminating = true;
|
|
87
|
+
this.capture();
|
|
88
|
+
this.signal('SIGTERM');
|
|
89
|
+
if (!this.members.size)
|
|
90
|
+
return;
|
|
91
|
+
// Keep this timer after leader exit: a detached command can ignore SIGTERM.
|
|
92
|
+
setTimeout(() => { this.capture(); this.signal('SIGKILL'); }, graceMs);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=session-descendants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-descendants.js","sourceRoot":"","sources":["../../src/core/session-descendants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,U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,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;YACvD,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,KAAK,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;gBAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;gBAAC,SAAS;YAAC,CAAC;YACrG,IAAI,CAAC;gBAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;YAAC,CAAC;YAAC,MAAM,CAAC,CAAC,yCAAyC,CAAC,CAAC;QACxF,CAAC;IACH,CAAC;IACD,SAAS,CAAC,OAAe;QACvB,IAAI,IAAI,CAAC,WAAW;YAAE,OAAO;QAC7B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,IAAI,CAAC,OAAO,EAAE,CAAC;QAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACvC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI;YAAE,OAAO;QAC/B,4EAA4E;QAC5E,UAAU,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF"}
|
package/dist/core/ui-events.d.ts
CHANGED
|
@@ -317,6 +317,8 @@ export interface UiAskQuestion {
|
|
|
317
317
|
question: string;
|
|
318
318
|
options?: UiAskOption[];
|
|
319
319
|
multiSelect?: boolean;
|
|
320
|
+
/** False when the native question accepts option IDs only. Absent allows Other. */
|
|
321
|
+
allowFreeText?: boolean;
|
|
320
322
|
}
|
|
321
323
|
/**
|
|
322
324
|
* The agent asked the user a structured multiple-choice question (spec
|
|
@@ -27,18 +27,6 @@ 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
|
-
} | {
|
|
42
30
|
output: {
|
|
43
31
|
workers: {
|
|
44
32
|
workerId: string;
|
|
@@ -85,25 +73,27 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
85
73
|
offset?: string | undefined;
|
|
86
74
|
};
|
|
87
75
|
};
|
|
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
|
-
runner: string;
|
|
95
|
-
models: {
|
|
96
|
-
id: string;
|
|
97
|
-
label: string;
|
|
98
|
-
description: string;
|
|
99
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
100
|
-
}[];
|
|
101
|
-
source: "cache" | "live" | "unavailable";
|
|
102
|
-
stale: boolean;
|
|
103
|
-
reason?: string | undefined;
|
|
104
|
-
} | {
|
|
105
94
|
scope: "host-default-account";
|
|
106
95
|
runners: {
|
|
96
|
+
requiresAccountHome?: boolean | undefined;
|
|
107
97
|
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
108
98
|
enabled?: boolean | undefined;
|
|
109
99
|
hint?: string | undefined;
|
|
@@ -122,6 +112,17 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
122
112
|
reason?: string | undefined;
|
|
123
113
|
}[];
|
|
124
114
|
nextOffset?: number | undefined;
|
|
115
|
+
} | {
|
|
116
|
+
runner: string;
|
|
117
|
+
models: {
|
|
118
|
+
id: string;
|
|
119
|
+
label: string;
|
|
120
|
+
description: string;
|
|
121
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
122
|
+
}[];
|
|
123
|
+
source: "cache" | "live" | "unavailable";
|
|
124
|
+
stale: boolean;
|
|
125
|
+
reason?: string | undefined;
|
|
125
126
|
};
|
|
126
127
|
outputFormat: "json";
|
|
127
128
|
status: 200;
|
|
@@ -231,13 +232,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
231
232
|
status: 200;
|
|
232
233
|
input: {
|
|
233
234
|
json: {
|
|
234
|
-
requestIds: string[];
|
|
235
|
-
mode?: "all" | "any" | "one" | undefined;
|
|
236
|
-
timeoutSeconds?: number | undefined;
|
|
237
|
-
} | {
|
|
238
235
|
workerIds: string[];
|
|
239
236
|
timeoutSeconds?: number | undefined;
|
|
240
237
|
mode?: "all" | "any" | "one" | undefined;
|
|
238
|
+
} | {
|
|
239
|
+
requestIds: string[];
|
|
240
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
241
|
+
timeoutSeconds?: number | undefined;
|
|
241
242
|
} | {
|
|
242
243
|
peerIds: string[];
|
|
243
244
|
timeoutSeconds?: number | undefined;
|
|
@@ -332,6 +333,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
332
333
|
description?: string | undefined;
|
|
333
334
|
}[] | undefined;
|
|
334
335
|
multiSelect?: boolean | undefined;
|
|
336
|
+
allowFreeText?: boolean | undefined;
|
|
335
337
|
}[];
|
|
336
338
|
} | undefined;
|
|
337
339
|
};
|
|
@@ -388,6 +390,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
388
390
|
description?: string | undefined;
|
|
389
391
|
}[] | undefined;
|
|
390
392
|
multiSelect?: boolean | undefined;
|
|
393
|
+
allowFreeText?: boolean | undefined;
|
|
391
394
|
}[];
|
|
392
395
|
} | undefined;
|
|
393
396
|
};
|
|
@@ -444,6 +447,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
444
447
|
description?: string | undefined;
|
|
445
448
|
}[] | undefined;
|
|
446
449
|
multiSelect?: boolean | undefined;
|
|
450
|
+
allowFreeText?: boolean | undefined;
|
|
447
451
|
}[];
|
|
448
452
|
} | undefined;
|
|
449
453
|
};
|
|
@@ -500,6 +504,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
500
504
|
description?: string | undefined;
|
|
501
505
|
}[] | undefined;
|
|
502
506
|
multiSelect?: boolean | undefined;
|
|
507
|
+
allowFreeText?: boolean | undefined;
|
|
503
508
|
}[];
|
|
504
509
|
} | undefined;
|
|
505
510
|
}[];
|
|
@@ -551,6 +556,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
551
556
|
description?: string | undefined;
|
|
552
557
|
}[] | undefined;
|
|
553
558
|
multiSelect?: boolean | undefined;
|
|
559
|
+
allowFreeText?: boolean | undefined;
|
|
554
560
|
}[];
|
|
555
561
|
} | undefined;
|
|
556
562
|
}[];
|
|
@@ -623,18 +629,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
623
629
|
} & {
|
|
624
630
|
"/:workerId": {
|
|
625
631
|
$get: {
|
|
626
|
-
output: {
|
|
627
|
-
error: string;
|
|
628
|
-
code?: "invalid_input" | undefined;
|
|
629
|
-
};
|
|
630
|
-
outputFormat: "json";
|
|
631
|
-
status: 400;
|
|
632
|
-
input: {
|
|
633
|
-
param: {
|
|
634
|
-
workerId: string;
|
|
635
|
-
};
|
|
636
|
-
};
|
|
637
|
-
} | {
|
|
638
632
|
output: {
|
|
639
633
|
workerId: string;
|
|
640
634
|
settled: boolean;
|
|
@@ -752,11 +746,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
752
746
|
workerId: string;
|
|
753
747
|
};
|
|
754
748
|
};
|
|
755
|
-
}
|
|
756
|
-
};
|
|
757
|
-
} & {
|
|
758
|
-
"/:workerId/collect": {
|
|
759
|
-
$post: {
|
|
749
|
+
} | {
|
|
760
750
|
output: {
|
|
761
751
|
error: string;
|
|
762
752
|
code?: "invalid_input" | undefined;
|
|
@@ -767,10 +757,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
767
757
|
param: {
|
|
768
758
|
workerId: string;
|
|
769
759
|
};
|
|
770
|
-
} & {
|
|
771
|
-
json: Record<string, never>;
|
|
772
760
|
};
|
|
773
|
-
}
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
} & {
|
|
764
|
+
"/:workerId/collect": {
|
|
765
|
+
$post: {
|
|
774
766
|
output: {
|
|
775
767
|
workerId: string;
|
|
776
768
|
parentRunId: string;
|
|
@@ -893,11 +885,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
893
885
|
} & {
|
|
894
886
|
json: Record<string, never>;
|
|
895
887
|
};
|
|
896
|
-
}
|
|
897
|
-
};
|
|
898
|
-
} & {
|
|
899
|
-
"/:workerId/steer": {
|
|
900
|
-
$post: {
|
|
888
|
+
} | {
|
|
901
889
|
output: {
|
|
902
890
|
error: string;
|
|
903
891
|
code?: "invalid_input" | undefined;
|
|
@@ -909,11 +897,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
909
897
|
workerId: string;
|
|
910
898
|
};
|
|
911
899
|
} & {
|
|
912
|
-
json:
|
|
913
|
-
text: string;
|
|
914
|
-
};
|
|
900
|
+
json: Record<string, never>;
|
|
915
901
|
};
|
|
916
|
-
}
|
|
902
|
+
};
|
|
903
|
+
};
|
|
904
|
+
} & {
|
|
905
|
+
"/:workerId/steer": {
|
|
906
|
+
$post: {
|
|
917
907
|
output: {
|
|
918
908
|
workerId: string;
|
|
919
909
|
state: "delivered" | "queued";
|
|
@@ -929,11 +919,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
929
919
|
text: string;
|
|
930
920
|
};
|
|
931
921
|
};
|
|
932
|
-
}
|
|
933
|
-
};
|
|
934
|
-
} & {
|
|
935
|
-
"/:workerId/stop": {
|
|
936
|
-
$post: {
|
|
922
|
+
} | {
|
|
937
923
|
output: {
|
|
938
924
|
error: string;
|
|
939
925
|
code?: "invalid_input" | undefined;
|
|
@@ -945,9 +931,15 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
945
931
|
workerId: string;
|
|
946
932
|
};
|
|
947
933
|
} & {
|
|
948
|
-
json:
|
|
934
|
+
json: {
|
|
935
|
+
text: string;
|
|
936
|
+
};
|
|
949
937
|
};
|
|
950
|
-
}
|
|
938
|
+
};
|
|
939
|
+
};
|
|
940
|
+
} & {
|
|
941
|
+
"/:workerId/stop": {
|
|
942
|
+
$post: {
|
|
951
943
|
output: {
|
|
952
944
|
workerId: string;
|
|
953
945
|
state: "stopping" | "terminated";
|
|
@@ -961,11 +953,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
961
953
|
} & {
|
|
962
954
|
json: Record<string, never>;
|
|
963
955
|
};
|
|
964
|
-
}
|
|
965
|
-
};
|
|
966
|
-
} & {
|
|
967
|
-
"/:workerId/destroy": {
|
|
968
|
-
$post: {
|
|
956
|
+
} | {
|
|
969
957
|
output: {
|
|
970
958
|
error: string;
|
|
971
959
|
code?: "invalid_input" | undefined;
|
|
@@ -977,11 +965,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
977
965
|
workerId: string;
|
|
978
966
|
};
|
|
979
967
|
} & {
|
|
980
|
-
json:
|
|
981
|
-
discardWork?: true | undefined;
|
|
982
|
-
};
|
|
968
|
+
json: Record<string, never>;
|
|
983
969
|
};
|
|
984
|
-
}
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
} & {
|
|
973
|
+
"/:workerId/destroy": {
|
|
974
|
+
$post: {
|
|
985
975
|
output: {
|
|
986
976
|
workerId: string;
|
|
987
977
|
state: "complete" | "incomplete";
|
|
@@ -1010,6 +1000,22 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1010
1000
|
discardWork?: true | undefined;
|
|
1011
1001
|
};
|
|
1012
1002
|
};
|
|
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
|
+
};
|
|
1013
1019
|
} | {
|
|
1014
1020
|
output: {
|
|
1015
1021
|
workerId: string;
|
|
@@ -1045,11 +1051,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1045
1051
|
"/:workerId/diff": {
|
|
1046
1052
|
$get: {
|
|
1047
1053
|
output: {
|
|
1048
|
-
|
|
1049
|
-
|
|
1054
|
+
workerId: string;
|
|
1055
|
+
baselineSha: string;
|
|
1056
|
+
diff: string;
|
|
1057
|
+
truncated: boolean;
|
|
1050
1058
|
};
|
|
1051
1059
|
outputFormat: "json";
|
|
1052
|
-
status:
|
|
1060
|
+
status: 200;
|
|
1053
1061
|
input: {
|
|
1054
1062
|
param: {
|
|
1055
1063
|
workerId: string;
|
|
@@ -1057,13 +1065,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1057
1065
|
};
|
|
1058
1066
|
} | {
|
|
1059
1067
|
output: {
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
diff: string;
|
|
1063
|
-
truncated: boolean;
|
|
1068
|
+
error: string;
|
|
1069
|
+
code?: "invalid_input" | undefined;
|
|
1064
1070
|
};
|
|
1065
1071
|
outputFormat: "json";
|
|
1066
|
-
status:
|
|
1072
|
+
status: 400;
|
|
1067
1073
|
input: {
|
|
1068
1074
|
param: {
|
|
1069
1075
|
workerId: string;
|