@hearsay-tools/squawk 0.18.0-pr4265.8230 → 0.18.0-pr4267.8233
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/automations/tools.d.ts +8 -8
- package/dist/ci-wait/controller.d.ts +0 -2
- package/dist/ci-wait/controller.js +2 -6
- package/dist/ci-wait/controller.js.map +1 -1
- package/dist/core/agent-env.js +0 -1
- package/dist/core/agent-env.js.map +1 -1
- package/dist/core/runner-definition.d.ts +1 -6
- package/dist/core/runner-definition.js.map +1 -1
- package/dist/core/skill-probe.js +2 -2
- package/dist/core/skill-probe.js.map +1 -1
- package/dist/delegation/routes.d.ts +10 -10
- package/dist/delegation/transport.d.ts +79 -79
- package/dist/pack-check.d.ts +1 -3
- package/dist/pack-check.js +1 -7
- package/dist/pack-check.js.map +1 -1
- package/dist/plugin/runner-kit.d.ts +0 -1
- package/dist/plugin/runner-kit.js +0 -1
- package/dist/plugin/runner-kit.js.map +1 -1
- package/dist/plugin/runtime.d.ts +0 -1
- package/dist/plugin/runtime.js +0 -1
- package/dist/plugin/runtime.js.map +1 -1
- package/dist/runs/run-decode.d.ts +72 -72
- package/dist/server/provider-sign-in-routes.d.ts +2 -2
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/runner-install-routes.d.ts +10 -10
- package/dist/server/server.d.ts +6 -6
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/workflows/input-acknowledgement.d.ts +24 -24
- package/dist/workflows/run/wait-engine.d.ts +72 -72
- package/package.json +5 -5
- package/scripts/check-pack.mjs +4 -7
- package/dist/core/native-mock.d.ts +0 -6
- package/dist/core/native-mock.js +0 -26
- package/dist/core/native-mock.js.map +0 -1
- package/scripts/copy-runner-assets.d.mts +0 -2
- package/scripts/copy-runner-assets.mjs +0 -69
package/dist/core/native-mock.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { statSync } from 'node:fs';
|
|
2
|
-
import { basename, join } from 'node:path';
|
|
3
|
-
import { fileURLToPath } from 'node:url';
|
|
4
|
-
const SCRIPTS_DIR = fileURLToPath(new URL('../../scripts', import.meta.url));
|
|
5
|
-
function isFile(path) {
|
|
6
|
-
try {
|
|
7
|
-
return statSync(path).isFile();
|
|
8
|
-
}
|
|
9
|
-
catch {
|
|
10
|
-
return false;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Resolve `RunnerMock.script` against the running copy's `scripts/` folder.
|
|
15
|
-
* Throws an error naming the script when the running installation does not ship it.
|
|
16
|
-
*/
|
|
17
|
-
export function nativeMockPath(mock) {
|
|
18
|
-
const { script } = mock;
|
|
19
|
-
const validName = script.length > 0 && script !== '.' && script !== '..' && !script.includes('/') && !script.includes('\\') && basename(script) === script;
|
|
20
|
-
const resolved = validName ? join(SCRIPTS_DIR, script) : undefined;
|
|
21
|
-
if (!resolved || !isFile(resolved)) {
|
|
22
|
-
throw new Error(`Native mock script "${script}" is not shipped by this Squawk installation.`);
|
|
23
|
-
}
|
|
24
|
-
return resolved;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=native-mock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"native-mock.js","sourceRoot":"","sources":["../../src/core/native-mock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,MAAM,WAAW,GAAG,aAAa,CAAC,IAAI,GAAG,CAAC,eAAe,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAE7E,SAAS,MAAM,CAAC,IAAY;IAC1B,IAAI,CAAC;QACH,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;IACjC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,IAAgC;IAC7D,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACxB,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,KAAK,GAAG,IAAI,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,MAAM,CAAC,KAAK,MAAM,CAAC;IAC3J,MAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACnE,IAAI,CAAC,QAAQ,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;QACnC,MAAM,IAAI,KAAK,CAAC,uBAAuB,MAAM,+CAA+C,CAAC,CAAC;IAChG,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Copy every non-test `.mjs` asset under `src/runners/<id>/` to the same relative path under
|
|
4
|
-
* `dist/runners/<id>/` (spec 2026-11-25-self-contained-runner-folders, Decision 3). `tsc` copies
|
|
5
|
-
* no `.mjs` files; `postbuild` runs this script after `inline-contract.mjs`, and `check:pack`
|
|
6
|
-
* verifies every copied asset is present in the tarball.
|
|
7
|
-
*/
|
|
8
|
-
import { copyFileSync, mkdirSync, readdirSync, statSync } from 'node:fs';
|
|
9
|
-
import { dirname, join, relative, resolve } from 'node:path';
|
|
10
|
-
import { fileURLToPath } from 'node:url';
|
|
11
|
-
|
|
12
|
-
const ENTRY_FILES = ['index.mjs', 'index.js', 'index.ts'];
|
|
13
|
-
const SKIP_DIRS = new Set(['__fixtures__', '__tests__', 'fixtures', 'node_modules']);
|
|
14
|
-
const TEST_MJS = /\.(?:test|testkit|spec)\.mjs$/;
|
|
15
|
-
|
|
16
|
-
function isFile(filePath) {
|
|
17
|
-
try {
|
|
18
|
-
return statSync(filePath).isFile();
|
|
19
|
-
} catch {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function discoverBundledRunnerIds(srcRunnersDir) {
|
|
25
|
-
return readdirSync(srcRunnersDir, { withFileTypes: true })
|
|
26
|
-
.filter((entry) => entry.isDirectory() && ENTRY_FILES.some((file) => isFile(join(srcRunnersDir, entry.name, file))))
|
|
27
|
-
.map((entry) => entry.name)
|
|
28
|
-
.sort();
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* List POSIX paths relative to `srcRunnersDir` (e.g. `pi/extensions/pi-ci-wait.mjs`) for every
|
|
33
|
-
* non-test `.mjs` asset under the bundled runner folders.
|
|
34
|
-
*/
|
|
35
|
-
export function listRunnerAssets(srcRunnersDir, runnerIds) {
|
|
36
|
-
const ids = runnerIds ?? discoverBundledRunnerIds(srcRunnersDir);
|
|
37
|
-
const assets = [];
|
|
38
|
-
const walk = (dir) => {
|
|
39
|
-
for (const entry of readdirSync(dir, { withFileTypes: true })) {
|
|
40
|
-
const fullPath = join(dir, entry.name);
|
|
41
|
-
if (entry.isDirectory()) {
|
|
42
|
-
if (!SKIP_DIRS.has(entry.name)) walk(fullPath);
|
|
43
|
-
} else if (entry.isFile() && entry.name.endsWith('.mjs') && !TEST_MJS.test(entry.name)) {
|
|
44
|
-
assets.push(relative(srcRunnersDir, fullPath).replaceAll('\\', '/'));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
for (const id of ids) walk(join(srcRunnersDir, id));
|
|
49
|
-
return assets.sort();
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/** Copy every listed runner `.mjs` asset from `srcRunnersDir` into `distRunnersDir`. */
|
|
53
|
-
export function copyRunnerAssets(srcRunnersDir, distRunnersDir, runnerIds) {
|
|
54
|
-
const assets = listRunnerAssets(srcRunnersDir, runnerIds);
|
|
55
|
-
for (const rel of assets) {
|
|
56
|
-
const dest = join(distRunnersDir, rel);
|
|
57
|
-
mkdirSync(dirname(dest), { recursive: true });
|
|
58
|
-
copyFileSync(join(srcRunnersDir, rel), dest);
|
|
59
|
-
}
|
|
60
|
-
return assets;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
|
|
64
|
-
const pkgRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..');
|
|
65
|
-
const srcRunnersDir = process.argv[2] ? resolve(process.argv[2]) : join(pkgRoot, 'src', 'runners');
|
|
66
|
-
const distRunnersDir = process.argv[3] ? resolve(process.argv[3]) : join(pkgRoot, 'dist', 'runners');
|
|
67
|
-
const copied = copyRunnerAssets(srcRunnersDir, distRunnersDir);
|
|
68
|
-
console.log(`copy-runner-assets ok — copied ${copied.length} runner asset(s)`);
|
|
69
|
-
}
|