@tech-leads-club/harness-toolkit 0.3.0 → 0.3.1
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/README.md +46 -11
- package/config.example.json +1 -1
- package/dist/install-runtime.mjs +6523 -293
- package/package.json +2 -2
- package/tools/install-runtime.ts +21 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tech-leads-club/harness-toolkit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Multi-provider agent steering: gates, follow-up, handoff, policy",
|
|
6
6
|
"keywords": [
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://github.com/tech-leads-club/harness-toolkit#readme",
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@biomejs/biome": "^2.5.
|
|
54
|
+
"@biomejs/biome": "^2.5.9",
|
|
55
55
|
"@types/node": "^24.13.3",
|
|
56
56
|
"typescript": "^7.0.2"
|
|
57
57
|
}
|
package/tools/install-runtime.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { spawnSync } from "node:child_process";
|
|
2
2
|
import { cpSync, existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { join, relative, resolve, sep } from "node:path";
|
|
4
|
-
import { NPM_MARKER, NPM_PACKAGE } from "../bin/tlc-cli.ts";
|
|
4
|
+
import { NPM_MARKER, NPM_PACKAGE, wireRuntime } from "../bin/tlc-cli.ts";
|
|
5
5
|
import { linkDir } from "../src/platform/links.ts";
|
|
6
6
|
import { conventionalRuntimeHome, runtimeHome, runtimeHomeWasChosen } from "../src/platform/paths.ts";
|
|
7
7
|
import { type Row, render, type Screen } from "../src/platform/screen.ts";
|
|
@@ -242,6 +242,26 @@ if (import.meta.main) {
|
|
|
242
242
|
if (report.kind === "refused") {
|
|
243
243
|
process.exit(1);
|
|
244
244
|
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* hazard: this command put the code in place and wired nothing. The provider hooks and the skill links came
|
|
248
|
+
* from the tail of `install.sh`, so deleting that script left a fresh `npm i -g` followed by
|
|
249
|
+
* `tlc harness install` with two empty provider directories and a harness that does nothing at all until
|
|
250
|
+
* `update` happens to run. Found by installing the published package on a clean machine and reading the output
|
|
251
|
+
* ([/decisions/ad-034.md](/decisions/ad-034.md), [/decisions/ad-097.md](/decisions/ad-097.md)).
|
|
252
|
+
*
|
|
253
|
+
* invariant: install and update wire through the same function. There is no third copy of this.
|
|
254
|
+
*/
|
|
255
|
+
const wired = wireRuntime(dest, dest);
|
|
256
|
+
for (const line of wired.lines) {
|
|
257
|
+
console.log(`install: ${line}`);
|
|
258
|
+
}
|
|
259
|
+
if (wired.missingSkill) {
|
|
260
|
+
console.error(`install: missing skill at ${join(dest, "skills", "harness-init")}`);
|
|
261
|
+
process.exit(1);
|
|
262
|
+
}
|
|
263
|
+
|
|
245
264
|
fetchPrices(dest);
|
|
265
|
+
console.log("install: ok — restart Cursor or Claude Code, then run `tlc harness doctor`");
|
|
246
266
|
process.exit(report.missing.length > 0 ? 1 : 0);
|
|
247
267
|
}
|