@hearsay-tools/squawk 0.18.0-pr4230.8173 → 0.18.0-pr4231.8178
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/boot.d.ts +4 -2
- package/dist/boot.js +9 -5
- package/dist/boot.js.map +1 -1
- package/dist/built-in-run-slots.d.ts +1 -1
- package/dist/built-in-run-slots.js +1 -1
- package/dist/ci-wait/controller.d.ts +7 -7
- package/dist/core/agent-runner.d.ts +1 -1
- package/dist/core/agent-runner.js +1 -1
- package/dist/core/runner-registry.js +1 -1
- package/dist/core/runner-registry.js.map +1 -1
- package/dist/delegation/routes.d.ts +65 -65
- package/dist/pack-check.d.ts +8 -1
- package/dist/pack-check.js +25 -1
- package/dist/pack-check.js.map +1 -1
- package/dist/plugin/bundled-runners.d.ts +28 -0
- package/dist/plugin/bundled-runners.js +56 -0
- package/dist/plugin/bundled-runners.js.map +1 -0
- package/dist/plugin/cli.js +5 -4
- package/dist/plugin/cli.js.map +1 -1
- package/dist/plugin/loader.d.ts +10 -1
- package/dist/plugin/loader.js +31 -0
- package/dist/plugin/loader.js.map +1 -1
- package/dist/runners/antigravity/index.d.ts +6 -0
- package/dist/runners/antigravity/index.js +9 -0
- package/dist/runners/antigravity/index.js.map +1 -0
- package/dist/runners/claude/index.d.ts +6 -0
- package/dist/runners/claude/index.js +9 -0
- package/dist/runners/claude/index.js.map +1 -0
- package/dist/runners/codex/index.d.ts +6 -0
- package/dist/runners/codex/index.js +9 -0
- package/dist/runners/codex/index.js.map +1 -0
- package/dist/runners/omp/index.d.ts +6 -0
- package/dist/runners/omp/index.js +9 -0
- package/dist/runners/omp/index.js.map +1 -0
- package/dist/runners/opencode/index.d.ts +6 -0
- package/dist/runners/opencode/index.js +9 -0
- package/dist/runners/opencode/index.js.map +1 -0
- package/dist/runners/pi/index.d.ts +6 -0
- package/dist/runners/pi/index.js +9 -0
- package/dist/runners/pi/index.js.map +1 -0
- package/dist/server/runner-install-routes.d.ts +10 -10
- package/dist/server/server.d.ts +96 -96
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/package.json +4 -4
- package/scripts/benchmark-runtime.ts +5 -3
- package/scripts/check-pack.mjs +5 -2
- package/scripts/measure-transcript-facts-health.mjs +4 -3
- package/scripts/parity-rows.ts +1 -1
- package/dist/runners/built-in.d.ts +0 -10
- package/dist/runners/built-in.js +0 -20
- package/dist/runners/built-in.js.map +0 -1
- package/dist/runners/ids.d.ts +0 -8
- package/dist/runners/ids.js +0 -9
- package/dist/runners/ids.js.map +0 -1
package/dist/plugin/loader.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ import { type PluginContributions } from './api.ts';
|
|
|
4
4
|
* The plugin loader (spec 2026-11-24-plugin-loader-and-runner-kit § 4). A plugin is one folder
|
|
5
5
|
* whose `index.mjs` or `index.js` default-exports a setup function. The loader runs each folder's
|
|
6
6
|
* setup through `runPluginSetup`, so a plugin that throws or collides commits nothing. A broken
|
|
7
|
-
* plugin is skipped with one stderr warning and never stops boot.
|
|
7
|
+
* host plugin is skipped with one stderr warning and never stops boot. The bundled runners
|
|
8
|
+
* (`runners/<id>/index.ts`) load through the same setup first; a bundled runner that fails stops
|
|
9
|
+
* boot, because it is a defect of Squawk itself.
|
|
8
10
|
*/
|
|
9
11
|
/** `bundled` ships inside Squawk; `host` comes from `<config>/plugins/`. */
|
|
10
12
|
export type PluginSource = 'bundled' | 'host';
|
|
@@ -46,6 +48,13 @@ export interface LoadPluginFolderOptions {
|
|
|
46
48
|
* the process report. Installs the `@hearsay-tools/squawk/plugin` resolve hook first.
|
|
47
49
|
*/
|
|
48
50
|
export declare function loadPluginFolder({ dir, source, warn }: LoadPluginFolderOptions): Promise<PluginLoadReport>;
|
|
51
|
+
/**
|
|
52
|
+
* Load the bundled runners under `dir` (default: the `runners/` folder of this Squawk copy) in
|
|
53
|
+
* display order, each through `runPluginSetup` like a host plugin, and add them to the report as
|
|
54
|
+
* `bundled`. A folder with no bundled runner, or a bundled runner that fails to import or to register, throws: Squawk shipped it, so
|
|
55
|
+
* the cockpit would miss a runner it promises, and boot stops instead of hiding the defect.
|
|
56
|
+
*/
|
|
57
|
+
export declare function loadBundledRunners(dir?: string): Promise<PluginLoadReport>;
|
|
49
58
|
/**
|
|
50
59
|
* The text health sends for each reason. A plugin's own message can name host paths or carry a
|
|
51
60
|
* secret, and health is CORS-open, so health never sends it; `hsq plugins` on the host does.
|
package/dist/plugin/loader.js
CHANGED
|
@@ -10,6 +10,7 @@ import { readdirSync, statSync } from 'node:fs';
|
|
|
10
10
|
import { join } from 'node:path';
|
|
11
11
|
import { pathToFileURL } from 'node:url';
|
|
12
12
|
import { runPluginSetup } from './api.js';
|
|
13
|
+
import { bundledRunnerFolders, bundledRunnersDir } from './bundled-runners.js';
|
|
13
14
|
import { installPluginResolveHook } from './resolve-hook.js';
|
|
14
15
|
class PluginLoadFailure extends Error {
|
|
15
16
|
reason;
|
|
@@ -79,6 +80,10 @@ async function loadOne(path) {
|
|
|
79
80
|
const entry = PLUGIN_ENTRY_FILES.map(file => join(path, file)).find(isFile);
|
|
80
81
|
if (!entry)
|
|
81
82
|
throw new PluginLoadFailure('missing-entry', `missing ${PLUGIN_ENTRY_FILES.join(' or ')}`);
|
|
83
|
+
return loadEntry(path, entry);
|
|
84
|
+
}
|
|
85
|
+
/** Import `entry`, the entry file of the plugin folder `path`, and run its setup. */
|
|
86
|
+
async function loadEntry(path, entry) {
|
|
82
87
|
const entryModule = await import(__rewriteRelativeImportExtension(pathToFileURL(entry).href)).catch((error) => {
|
|
83
88
|
throw new PluginLoadFailure('import', errorText(error));
|
|
84
89
|
});
|
|
@@ -110,6 +115,9 @@ export async function loadPluginFolder({ dir, source, warn = line => { process.s
|
|
|
110
115
|
warn(`[hsq] plugin "${name}" skipped: ${failure.error}`);
|
|
111
116
|
}
|
|
112
117
|
}
|
|
118
|
+
return addToReport(dir, loaded, failed);
|
|
119
|
+
}
|
|
120
|
+
function addToReport(dir, loaded, failed) {
|
|
113
121
|
report = Object.freeze({
|
|
114
122
|
folders: Object.freeze([...report.folders, dir]),
|
|
115
123
|
loaded: Object.freeze([...report.loaded, ...loaded]),
|
|
@@ -117,6 +125,29 @@ export async function loadPluginFolder({ dir, source, warn = line => { process.s
|
|
|
117
125
|
});
|
|
118
126
|
return report;
|
|
119
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* Load the bundled runners under `dir` (default: the `runners/` folder of this Squawk copy) in
|
|
130
|
+
* display order, each through `runPluginSetup` like a host plugin, and add them to the report as
|
|
131
|
+
* `bundled`. A folder with no bundled runner, or a bundled runner that fails to import or to register, throws: Squawk shipped it, so
|
|
132
|
+
* the cockpit would miss a runner it promises, and boot stops instead of hiding the defect.
|
|
133
|
+
*/
|
|
134
|
+
export async function loadBundledRunners(dir = bundledRunnersDir()) {
|
|
135
|
+
const folders = bundledRunnerFolders(dir);
|
|
136
|
+
// Squawk always ships its runners: none found means a broken build, never an empty cockpit.
|
|
137
|
+
if (folders.length === 0)
|
|
138
|
+
throw new Error(`No bundled runner was found in ${dir}: Squawk ships runners/<id>/index.js for each runner; rebuild it.`);
|
|
139
|
+
installPluginResolveHook();
|
|
140
|
+
const loaded = [];
|
|
141
|
+
for (const { id, path, entry } of folders) {
|
|
142
|
+
try {
|
|
143
|
+
loaded.push(Object.freeze({ name: id, source: 'bundled', path, contributions: await loadEntry(path, entry) }));
|
|
144
|
+
}
|
|
145
|
+
catch (error) {
|
|
146
|
+
throw new Error(`Bundled runner "${id}" failed to load: ${errorText(error)}`, { cause: error });
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return addToReport(dir, loaded, []);
|
|
150
|
+
}
|
|
120
151
|
/**
|
|
121
152
|
* The text health sends for each reason. A plugin's own message can name host paths or carry a
|
|
122
153
|
* secret, and health is CORS-open, so health never sends it; `hsq plugins` on the host does.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../../src/plugin/loader.ts"],"names":[],"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{ SquawkPlugin } from '../../plugin/index.js';
|
|
2
|
+
/** Where the antigravity runner sits among the bundled runners: lower comes first. `plugin/bundled-runners.ts` reads this line as text. */
|
|
3
|
+
export declare const displayOrder = 60;
|
|
4
|
+
/** The antigravity runner's plugin entry. Boot loads it through the plugin loader. */
|
|
5
|
+
declare const plugin: SquawkPlugin;
|
|
6
|
+
export default plugin;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { antigravityRunner } from './definition.js';
|
|
2
|
+
/** Where the antigravity runner sits among the bundled runners: lower comes first. `plugin/bundled-runners.ts` reads this line as text. */
|
|
3
|
+
export const displayOrder = 60;
|
|
4
|
+
/** The antigravity runner's plugin entry. Boot loads it through the plugin loader. */
|
|
5
|
+
const plugin = (api) => {
|
|
6
|
+
api.registerRunner(antigravityRunner);
|
|
7
|
+
};
|
|
8
|
+
export default plugin;
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/runners/antigravity/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,2IAA2I;AAC3I,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,CAAC;AAE/B,sFAAsF;AACtF,MAAM,MAAM,GAAiB,CAAC,GAAG,EAAE,EAAE;IACnC,GAAG,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;AACxC,CAAC,CAAC;AACF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SquawkPlugin } from '../../plugin/index.js';
|
|
2
|
+
/** Where the claude runner sits among the bundled runners: lower comes first. `plugin/bundled-runners.ts` reads this line as text. */
|
|
3
|
+
export declare const displayOrder = 10;
|
|
4
|
+
/** The claude runner's plugin entry. Boot loads it through the plugin loader. */
|
|
5
|
+
declare const plugin: SquawkPlugin;
|
|
6
|
+
export default plugin;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { claudeRunner } from './definition.js';
|
|
2
|
+
/** Where the claude runner sits among the bundled runners: lower comes first. `plugin/bundled-runners.ts` reads this line as text. */
|
|
3
|
+
export const displayOrder = 10;
|
|
4
|
+
/** The claude runner's plugin entry. Boot loads it through the plugin loader. */
|
|
5
|
+
const plugin = (api) => {
|
|
6
|
+
api.registerRunner(claudeRunner);
|
|
7
|
+
};
|
|
8
|
+
export default plugin;
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/runners/claude/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,sIAAsI;AACtI,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,CAAC;AAE/B,iFAAiF;AACjF,MAAM,MAAM,GAAiB,CAAC,GAAG,EAAE,EAAE;IACnC,GAAG,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;AACnC,CAAC,CAAC;AACF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SquawkPlugin } from '../../plugin/index.js';
|
|
2
|
+
/** Where the codex runner sits among the bundled runners: lower comes first. `plugin/bundled-runners.ts` reads this line as text. */
|
|
3
|
+
export declare const displayOrder = 20;
|
|
4
|
+
/** The codex runner's plugin entry. Boot loads it through the plugin loader. */
|
|
5
|
+
declare const plugin: SquawkPlugin;
|
|
6
|
+
export default plugin;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { codexRunner } from './definition.js';
|
|
2
|
+
/** Where the codex runner sits among the bundled runners: lower comes first. `plugin/bundled-runners.ts` reads this line as text. */
|
|
3
|
+
export const displayOrder = 20;
|
|
4
|
+
/** The codex runner's plugin entry. Boot loads it through the plugin loader. */
|
|
5
|
+
const plugin = (api) => {
|
|
6
|
+
api.registerRunner(codexRunner);
|
|
7
|
+
};
|
|
8
|
+
export default plugin;
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/runners/codex/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,qIAAqI;AACrI,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,CAAC;AAE/B,gFAAgF;AAChF,MAAM,MAAM,GAAiB,CAAC,GAAG,EAAE,EAAE;IACnC,GAAG,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AAClC,CAAC,CAAC;AACF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SquawkPlugin } from '../../plugin/index.js';
|
|
2
|
+
/** Where the omp runner sits among the bundled runners: lower comes first. `plugin/bundled-runners.ts` reads this line as text. */
|
|
3
|
+
export declare const displayOrder = 50;
|
|
4
|
+
/** The omp runner's plugin entry. Boot loads it through the plugin loader. */
|
|
5
|
+
declare const plugin: SquawkPlugin;
|
|
6
|
+
export default plugin;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ompRunner } from './definition.js';
|
|
2
|
+
/** Where the omp runner sits among the bundled runners: lower comes first. `plugin/bundled-runners.ts` reads this line as text. */
|
|
3
|
+
export const displayOrder = 50;
|
|
4
|
+
/** The omp runner's plugin entry. Boot loads it through the plugin loader. */
|
|
5
|
+
const plugin = (api) => {
|
|
6
|
+
api.registerRunner(ompRunner);
|
|
7
|
+
};
|
|
8
|
+
export default plugin;
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/runners/omp/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,mIAAmI;AACnI,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,CAAC;AAE/B,8EAA8E;AAC9E,MAAM,MAAM,GAAiB,CAAC,GAAG,EAAE,EAAE;IACnC,GAAG,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;AAChC,CAAC,CAAC;AACF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SquawkPlugin } from '../../plugin/index.js';
|
|
2
|
+
/** Where the opencode runner sits among the bundled runners: lower comes first. `plugin/bundled-runners.ts` reads this line as text. */
|
|
3
|
+
export declare const displayOrder = 30;
|
|
4
|
+
/** The opencode runner's plugin entry. Boot loads it through the plugin loader. */
|
|
5
|
+
declare const plugin: SquawkPlugin;
|
|
6
|
+
export default plugin;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { opencodeRunner } from './definition.js';
|
|
2
|
+
/** Where the opencode runner sits among the bundled runners: lower comes first. `plugin/bundled-runners.ts` reads this line as text. */
|
|
3
|
+
export const displayOrder = 30;
|
|
4
|
+
/** The opencode runner's plugin entry. Boot loads it through the plugin loader. */
|
|
5
|
+
const plugin = (api) => {
|
|
6
|
+
api.registerRunner(opencodeRunner);
|
|
7
|
+
};
|
|
8
|
+
export default plugin;
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/runners/opencode/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,wIAAwI;AACxI,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,CAAC;AAE/B,mFAAmF;AACnF,MAAM,MAAM,GAAiB,CAAC,GAAG,EAAE,EAAE;IACnC,GAAG,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;AACrC,CAAC,CAAC;AACF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SquawkPlugin } from '../../plugin/index.js';
|
|
2
|
+
/** Where the pi runner sits among the bundled runners: lower comes first. `plugin/bundled-runners.ts` reads this line as text. */
|
|
3
|
+
export declare const displayOrder = 40;
|
|
4
|
+
/** The pi runner's plugin entry. Boot loads it through the plugin loader. */
|
|
5
|
+
declare const plugin: SquawkPlugin;
|
|
6
|
+
export default plugin;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { piRunner } from './definition.js';
|
|
2
|
+
/** Where the pi runner sits among the bundled runners: lower comes first. `plugin/bundled-runners.ts` reads this line as text. */
|
|
3
|
+
export const displayOrder = 40;
|
|
4
|
+
/** The pi runner's plugin entry. Boot loads it through the plugin loader. */
|
|
5
|
+
const plugin = (api) => {
|
|
6
|
+
api.registerRunner(piRunner);
|
|
7
|
+
};
|
|
8
|
+
export default plugin;
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/runners/pi/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,kIAAkI;AAClI,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,CAAC;AAE/B,6EAA6E;AAC7E,MAAM,MAAM,GAAiB,CAAC,GAAG,EAAE,EAAE;IACnC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AAC/B,CAAC,CAAC;AACF,eAAe,MAAM,CAAC"}
|
|
@@ -52,15 +52,11 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
52
52
|
"/runner-install/:runner": {
|
|
53
53
|
$post: {
|
|
54
54
|
output: {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
latestVersion: string | null;
|
|
58
|
-
updateAvailable: boolean;
|
|
59
|
-
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
60
|
-
error: string | null;
|
|
55
|
+
error: string;
|
|
56
|
+
code?: "invalid_input" | undefined;
|
|
61
57
|
};
|
|
62
58
|
outputFormat: "json";
|
|
63
|
-
status:
|
|
59
|
+
status: 400;
|
|
64
60
|
input: {
|
|
65
61
|
param: {
|
|
66
62
|
runner: string;
|
|
@@ -72,11 +68,15 @@ export declare function createRunnerInstallRoutes(options: {
|
|
|
72
68
|
};
|
|
73
69
|
} | {
|
|
74
70
|
output: {
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
supported: boolean;
|
|
72
|
+
installedVersion: string | null;
|
|
73
|
+
latestVersion: string | null;
|
|
74
|
+
updateAvailable: boolean;
|
|
75
|
+
phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
|
|
76
|
+
error: string | null;
|
|
77
77
|
};
|
|
78
78
|
outputFormat: "json";
|
|
79
|
-
status:
|
|
79
|
+
status: 202;
|
|
80
80
|
input: {
|
|
81
81
|
param: {
|
|
82
82
|
runner: string;
|
package/dist/server/server.d.ts
CHANGED
|
@@ -182,68 +182,6 @@ export declare class WorkspaceEventBus {
|
|
|
182
182
|
on(listener: (event: WorkspaceEventName, data: unknown) => void): () => void;
|
|
183
183
|
}
|
|
184
184
|
export declare function createApp(deps: ServerDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
185
|
-
"/models": {
|
|
186
|
-
$get: {
|
|
187
|
-
output: {
|
|
188
|
-
error: string;
|
|
189
|
-
code?: "invalid_input" | undefined;
|
|
190
|
-
};
|
|
191
|
-
outputFormat: "json";
|
|
192
|
-
status: 400;
|
|
193
|
-
input: {
|
|
194
|
-
query: {
|
|
195
|
-
runner: string | string[];
|
|
196
|
-
profileId?: string | undefined;
|
|
197
|
-
};
|
|
198
|
-
};
|
|
199
|
-
} | {
|
|
200
|
-
output: {
|
|
201
|
-
runner: string;
|
|
202
|
-
models: {
|
|
203
|
-
id: string;
|
|
204
|
-
label: string;
|
|
205
|
-
description: string;
|
|
206
|
-
effortLevels?: import('../contract/index.js').EffortLevel[];
|
|
207
|
-
}[];
|
|
208
|
-
source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
|
|
209
|
-
stale: boolean;
|
|
210
|
-
reason?: string;
|
|
211
|
-
};
|
|
212
|
-
outputFormat: "json";
|
|
213
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
214
|
-
input: {
|
|
215
|
-
query: {
|
|
216
|
-
runner: string | string[];
|
|
217
|
-
profileId?: string | undefined;
|
|
218
|
-
};
|
|
219
|
-
};
|
|
220
|
-
} | {
|
|
221
|
-
output: {
|
|
222
|
-
error: string;
|
|
223
|
-
};
|
|
224
|
-
outputFormat: "json";
|
|
225
|
-
status: 409;
|
|
226
|
-
input: {
|
|
227
|
-
query: {
|
|
228
|
-
runner: string | string[];
|
|
229
|
-
profileId?: string | undefined;
|
|
230
|
-
};
|
|
231
|
-
};
|
|
232
|
-
} | {
|
|
233
|
-
output: {
|
|
234
|
-
error: string;
|
|
235
|
-
};
|
|
236
|
-
outputFormat: "json";
|
|
237
|
-
status: 400;
|
|
238
|
-
input: {
|
|
239
|
-
query: {
|
|
240
|
-
runner: string | string[];
|
|
241
|
-
profileId?: string | undefined;
|
|
242
|
-
};
|
|
243
|
-
};
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
247
185
|
"/health": {
|
|
248
186
|
$get: {
|
|
249
187
|
output: {
|
|
@@ -408,6 +346,68 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
408
346
|
};
|
|
409
347
|
};
|
|
410
348
|
};
|
|
349
|
+
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
350
|
+
"/models": {
|
|
351
|
+
$get: {
|
|
352
|
+
output: {
|
|
353
|
+
error: string;
|
|
354
|
+
code?: "invalid_input" | undefined;
|
|
355
|
+
};
|
|
356
|
+
outputFormat: "json";
|
|
357
|
+
status: 400;
|
|
358
|
+
input: {
|
|
359
|
+
query: {
|
|
360
|
+
runner: string | string[];
|
|
361
|
+
profileId?: string | undefined;
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
} | {
|
|
365
|
+
output: {
|
|
366
|
+
runner: string;
|
|
367
|
+
models: {
|
|
368
|
+
id: string;
|
|
369
|
+
label: string;
|
|
370
|
+
description: string;
|
|
371
|
+
effortLevels?: import('../contract/index.js').EffortLevel[];
|
|
372
|
+
}[];
|
|
373
|
+
source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
|
|
374
|
+
stale: boolean;
|
|
375
|
+
reason?: string;
|
|
376
|
+
};
|
|
377
|
+
outputFormat: "json";
|
|
378
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
379
|
+
input: {
|
|
380
|
+
query: {
|
|
381
|
+
runner: string | string[];
|
|
382
|
+
profileId?: string | undefined;
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
} | {
|
|
386
|
+
output: {
|
|
387
|
+
error: string;
|
|
388
|
+
};
|
|
389
|
+
outputFormat: "json";
|
|
390
|
+
status: 409;
|
|
391
|
+
input: {
|
|
392
|
+
query: {
|
|
393
|
+
runner: string | string[];
|
|
394
|
+
profileId?: string | undefined;
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
} | {
|
|
398
|
+
output: {
|
|
399
|
+
error: string;
|
|
400
|
+
};
|
|
401
|
+
outputFormat: "json";
|
|
402
|
+
status: 400;
|
|
403
|
+
input: {
|
|
404
|
+
query: {
|
|
405
|
+
runner: string | string[];
|
|
406
|
+
profileId?: string | undefined;
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
411
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
412
412
|
"/workspace/activity": {
|
|
413
413
|
$get: {
|
|
@@ -8659,11 +8659,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8659
8659
|
"/runs/:id/worker-destroy": {
|
|
8660
8660
|
$post: {
|
|
8661
8661
|
output: {
|
|
8662
|
-
|
|
8663
|
-
|
|
8662
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
8663
|
+
readonly error: string;
|
|
8664
|
+
readonly modelChoices?: {
|
|
8665
|
+
runner: string;
|
|
8666
|
+
requestedModel: string;
|
|
8667
|
+
availableModels: {
|
|
8668
|
+
id: string;
|
|
8669
|
+
label: string;
|
|
8670
|
+
description: string;
|
|
8671
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8672
|
+
}[];
|
|
8673
|
+
otherRunners: string[];
|
|
8674
|
+
} | undefined;
|
|
8664
8675
|
};
|
|
8665
8676
|
outputFormat: "json";
|
|
8666
|
-
status: 400;
|
|
8677
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
8667
8678
|
input: {
|
|
8668
8679
|
query: {
|
|
8669
8680
|
[x: string]: string | string[];
|
|
@@ -8679,22 +8690,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
8679
8690
|
};
|
|
8680
8691
|
} | {
|
|
8681
8692
|
output: {
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
readonly modelChoices?: {
|
|
8685
|
-
runner: string;
|
|
8686
|
-
requestedModel: string;
|
|
8687
|
-
availableModels: {
|
|
8688
|
-
id: string;
|
|
8689
|
-
label: string;
|
|
8690
|
-
description: string;
|
|
8691
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
8692
|
-
}[];
|
|
8693
|
-
otherRunners: string[];
|
|
8694
|
-
} | undefined;
|
|
8693
|
+
error: string;
|
|
8694
|
+
code?: "invalid_input" | undefined;
|
|
8695
8695
|
};
|
|
8696
8696
|
outputFormat: "json";
|
|
8697
|
-
status: 400
|
|
8697
|
+
status: 400;
|
|
8698
8698
|
input: {
|
|
8699
8699
|
query: {
|
|
8700
8700
|
[x: string]: string | string[];
|
|
@@ -25313,11 +25313,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
25313
25313
|
"/runs/:id/worker-destroy": {
|
|
25314
25314
|
$post: {
|
|
25315
25315
|
output: {
|
|
25316
|
-
|
|
25317
|
-
|
|
25316
|
+
readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
|
|
25317
|
+
readonly error: string;
|
|
25318
|
+
readonly modelChoices?: {
|
|
25319
|
+
runner: string;
|
|
25320
|
+
requestedModel: string;
|
|
25321
|
+
availableModels: {
|
|
25322
|
+
id: string;
|
|
25323
|
+
label: string;
|
|
25324
|
+
description: string;
|
|
25325
|
+
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
25326
|
+
}[];
|
|
25327
|
+
otherRunners: string[];
|
|
25328
|
+
} | undefined;
|
|
25318
25329
|
};
|
|
25319
25330
|
outputFormat: "json";
|
|
25320
|
-
status: 400;
|
|
25331
|
+
status: 400 | 401 | 403 | 409 | 503;
|
|
25321
25332
|
input: {
|
|
25322
25333
|
query: {
|
|
25323
25334
|
[x: string]: string | string[];
|
|
@@ -25333,22 +25344,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
25333
25344
|
};
|
|
25334
25345
|
} | {
|
|
25335
25346
|
output: {
|
|
25336
|
-
|
|
25337
|
-
|
|
25338
|
-
readonly modelChoices?: {
|
|
25339
|
-
runner: string;
|
|
25340
|
-
requestedModel: string;
|
|
25341
|
-
availableModels: {
|
|
25342
|
-
id: string;
|
|
25343
|
-
label: string;
|
|
25344
|
-
description: string;
|
|
25345
|
-
effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
|
|
25346
|
-
}[];
|
|
25347
|
-
otherRunners: string[];
|
|
25348
|
-
} | undefined;
|
|
25347
|
+
error: string;
|
|
25348
|
+
code?: "invalid_input" | undefined;
|
|
25349
25349
|
};
|
|
25350
25350
|
outputFormat: "json";
|
|
25351
|
-
status: 400
|
|
25351
|
+
status: 400;
|
|
25352
25352
|
input: {
|
|
25353
25353
|
query: {
|
|
25354
25354
|
[x: string]: string | string[];
|
|
@@ -7,12 +7,6 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
|
|
|
7
7
|
output: {
|
|
8
8
|
generation: string;
|
|
9
9
|
results: ({
|
|
10
|
-
projectId: string;
|
|
11
|
-
runId: string;
|
|
12
|
-
type: "error" | "reset";
|
|
13
|
-
status: 400 | 404 | 409 | 413 | 503;
|
|
14
|
-
error: string;
|
|
15
|
-
} | {
|
|
16
10
|
projectId: string;
|
|
17
11
|
runId: string;
|
|
18
12
|
type: "batch";
|
|
@@ -26,6 +20,12 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
|
|
|
26
20
|
cursor: string;
|
|
27
21
|
afterSeq: number;
|
|
28
22
|
hasMore: boolean;
|
|
23
|
+
} | {
|
|
24
|
+
projectId: string;
|
|
25
|
+
runId: string;
|
|
26
|
+
type: "error" | "reset";
|
|
27
|
+
status: 400 | 404 | 409 | 413 | 503;
|
|
28
|
+
error: string;
|
|
29
29
|
})[];
|
|
30
30
|
};
|
|
31
31
|
outputFormat: "json";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hearsay-tools/squawk",
|
|
3
|
-
"version": "0.18.0-
|
|
3
|
+
"version": "0.18.0-pr4231.8178",
|
|
4
4
|
"description": "Local cockpit for running and tracking AI agent tasks in your repo. Uses your logged-in `claude` CLI and `gh` — zero config, zero database.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@babel/parser": "^8.0.8",
|
|
70
70
|
"@babel/types": "^8.0.8",
|
|
71
|
-
"@open-mercato/cezar-api-client": "0.18.0-
|
|
72
|
-
"@open-mercato/cezar-contract": "0.18.0-
|
|
71
|
+
"@open-mercato/cezar-api-client": "0.18.0-pr4231.8178",
|
|
72
|
+
"@open-mercato/cezar-contract": "0.18.0-pr4231.8178",
|
|
73
73
|
"@types/node": "^24.19.1",
|
|
74
74
|
"@types/ws": "^8.18.1",
|
|
75
75
|
"esbuild": "^0.28.1",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "6f42f15807a87999850229ba70171155bc6ab06b"
|
|
90
90
|
}
|
|
@@ -6,14 +6,16 @@ import { installPluginResolveHook } from '../src/plugin/resolve-hook.ts';
|
|
|
6
6
|
import { registerBuiltInRunSlots, sealBuiltInRunSlots } from '../src/built-in-run-slots.ts';
|
|
7
7
|
|
|
8
8
|
installPluginResolveHook();
|
|
9
|
-
const {
|
|
9
|
+
const { loadBundledRunners } = await import('../src/plugin/loader.ts');
|
|
10
|
+
const { sealRunners } = await import('../src/core/runner-registry.ts');
|
|
11
|
+
// The bundled runners load at import, so prepareBenchmarkRuntime stays synchronous.
|
|
12
|
+
await loadBundledRunners();
|
|
10
13
|
|
|
11
14
|
/** Boot the process services used by benchmarks that open a run store. */
|
|
12
15
|
export function prepareBenchmarkRuntime(): void {
|
|
13
16
|
// Workspace receipts and markers use the host's identity store (ADR 0032).
|
|
14
17
|
installWindowsIdentityStore();
|
|
15
|
-
|
|
16
|
-
sealBuiltInRunners();
|
|
18
|
+
sealRunners();
|
|
17
19
|
registerBuiltInRunSlots();
|
|
18
20
|
sealBuiltInRunSlots();
|
|
19
21
|
registerBuiltInStepKinds();
|
package/scripts/check-pack.mjs
CHANGED
|
@@ -15,6 +15,7 @@ import { execFileSync } from 'node:child_process';
|
|
|
15
15
|
import path from 'node:path';
|
|
16
16
|
import { fileURLToPath } from 'node:url';
|
|
17
17
|
import { findPackGaps } from '../dist/pack-check.js';
|
|
18
|
+
import { bundledRunnerIds } from '../dist/plugin/bundled-runners.js';
|
|
18
19
|
|
|
19
20
|
const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
20
21
|
|
|
@@ -37,7 +38,9 @@ if (files.length === 0) {
|
|
|
37
38
|
process.exit(1);
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
// The bundled runners the source declares: each must ship its built plugin entry.
|
|
42
|
+
const runnerIds = bundledRunnerIds(path.join(repoRoot, 'src/runners'));
|
|
43
|
+
const gaps = findPackGaps(files, runnerIds);
|
|
41
44
|
if (gaps.length > 0) {
|
|
42
45
|
console.error('check:pack: the npm tarball would ship a broken cockpit:');
|
|
43
46
|
for (const gap of gaps) console.error(` - ${gap}`);
|
|
@@ -45,4 +48,4 @@ if (gaps.length > 0) {
|
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
const uiFiles = files.filter((f) => f.startsWith('web/dist/')).length;
|
|
48
|
-
console.log(`check:pack ok — ${files.length} files, ${uiFiles} under web/dist (shell + assets present)`);
|
|
51
|
+
console.log(`check:pack ok — ${files.length} files, ${uiFiles} under web/dist (shell + assets present), bundled runners ${runnerIds.join(', ')}`);
|
|
@@ -32,11 +32,12 @@ try {
|
|
|
32
32
|
const { startServer } = await import(new URL('server/start-server.js', runtime.url));
|
|
33
33
|
const { installPluginResolveHook } = await import(new URL('plugin/resolve-hook.js', runtime.url));
|
|
34
34
|
installPluginResolveHook();
|
|
35
|
-
const {
|
|
35
|
+
const { loadBundledRunners } = await import(new URL('plugin/loader.js', runtime.url));
|
|
36
|
+
const { sealRunners } = await import(new URL('core/runner-registry.js', runtime.url));
|
|
36
37
|
// This measurement is a process entry like index.ts: the server reads every registered runner,
|
|
37
38
|
// and a reclaim or a deletion asks the removal slots.
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
await loadBundledRunners();
|
|
40
|
+
sealRunners();
|
|
40
41
|
const { registerBuiltInRunSlots, sealBuiltInRunSlots } = await import(new URL('built-in-run-slots.js', runtime.url));
|
|
41
42
|
registerBuiltInRunSlots();
|
|
42
43
|
sealBuiltInRunSlots();
|