@tech-leads-club/harness-toolkit 0.3.2 → 0.3.4
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/bin/tlc-build.mjs +15 -29
- package/bin/tlc-cli.ts +99 -3
- package/dist/compact-before.mjs +7961 -13
- package/dist/doctor.mjs +8480 -33
- package/dist/help-topic.mjs +14 -6
- package/dist/init-project.mjs +793 -36
- package/dist/install-runtime.mjs +7268 -17
- package/dist/lessons-cli.mjs +7044 -26
- package/dist/obs-cli.mjs +7037 -27
- package/dist/price-lookup.mjs +201 -11
- package/dist/prompt-submit.mjs +7975 -15
- package/dist/refresh-model-prices.mjs +7060 -25
- package/dist/response-after.mjs +7962 -12
- package/dist/run.mjs +7960 -10
- package/dist/session-end.mjs +8030 -15
- package/dist/session-start.mjs +8076 -21
- package/dist/shim.mjs +7024 -18
- package/dist/stop.mjs +8042 -29
- package/dist/subagent-start.mjs +7983 -13
- package/dist/subagent-stop.mjs +7962 -12
- package/dist/support.mjs +7168 -21
- package/dist/tlc-cli.mjs +8250 -65
- package/dist/tool-after.mjs +8177 -21
- package/dist/tool-before.mjs +7991 -16
- package/dist/tool-failure.mjs +7962 -15
- package/dist/uninstall-runtime.mjs +1008 -61
- package/docs/log.md +1 -1
- package/package.json +1 -1
- package/dist/chunks/compact-before-1e4qg1qt.mjs +0 -1185
- package/dist/chunks/compact-before-2hpbfxm5.mjs +0 -5782
- package/dist/chunks/compact-before-49j320yp.mjs +0 -1283
- package/dist/chunks/compact-before-4jrq0sqs.mjs +0 -61
- package/dist/chunks/compact-before-6w8n1vh1.mjs +0 -186
- package/dist/chunks/compact-before-7sdmwswh.mjs +0 -52
- package/dist/chunks/compact-before-beqpmqrm.mjs +0 -187
- package/dist/chunks/compact-before-j9y4jgn4.mjs +0 -845
- package/dist/chunks/compact-before-pk86tqx2.mjs +0 -118
- package/dist/chunks/compact-before-pkqk5v29.mjs +0 -137
- package/dist/chunks/compact-before-w1293m4n.mjs +0 -315
- package/dist/chunks/compact-before-wnnds45y.mjs +0 -26
- package/dist/chunks/compact-before-wt2c3nh4.mjs +0 -551
package/dist/help-topic.mjs
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
runtimeHome
|
|
3
|
-
} from "./chunks/compact-before-4jrq0sqs.mjs";
|
|
4
|
-
|
|
5
1
|
// tools/help-topic.ts
|
|
6
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
|
+
import { join as join2 } from "node:path";
|
|
4
|
+
|
|
5
|
+
// src/platform/paths.ts
|
|
6
|
+
import { homedir } from "node:os";
|
|
7
7
|
import { join } from "node:path";
|
|
8
|
-
|
|
8
|
+
function conventionalRuntimeHome() {
|
|
9
|
+
return join(homedir(), ".tlc", "harness");
|
|
10
|
+
}
|
|
11
|
+
function runtimeHome(env = process.env) {
|
|
12
|
+
return env.TLC_HOME ?? conventionalRuntimeHome();
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// tools/help-topic.ts
|
|
16
|
+
var docsDir = join2(runtimeHome(), "docs");
|
|
9
17
|
var topic = (process.argv[2] ?? "").toLowerCase();
|
|
10
18
|
var TOPICS = {
|
|
11
19
|
architecture: "architecture.md",
|
|
@@ -54,7 +62,7 @@ if (!file) {
|
|
|
54
62
|
printIndex();
|
|
55
63
|
process.exit(1);
|
|
56
64
|
}
|
|
57
|
-
var path =
|
|
65
|
+
var path = join2(docsDir, file);
|
|
58
66
|
if (!existsSync(path)) {
|
|
59
67
|
console.error(`missing doc: ${path}`);
|
|
60
68
|
process.exit(1);
|