@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.
Files changed (41) hide show
  1. package/bin/tlc-build.mjs +15 -29
  2. package/bin/tlc-cli.ts +99 -3
  3. package/dist/compact-before.mjs +7961 -13
  4. package/dist/doctor.mjs +8480 -33
  5. package/dist/help-topic.mjs +14 -6
  6. package/dist/init-project.mjs +793 -36
  7. package/dist/install-runtime.mjs +7268 -17
  8. package/dist/lessons-cli.mjs +7044 -26
  9. package/dist/obs-cli.mjs +7037 -27
  10. package/dist/price-lookup.mjs +201 -11
  11. package/dist/prompt-submit.mjs +7975 -15
  12. package/dist/refresh-model-prices.mjs +7060 -25
  13. package/dist/response-after.mjs +7962 -12
  14. package/dist/run.mjs +7960 -10
  15. package/dist/session-end.mjs +8030 -15
  16. package/dist/session-start.mjs +8076 -21
  17. package/dist/shim.mjs +7024 -18
  18. package/dist/stop.mjs +8042 -29
  19. package/dist/subagent-start.mjs +7983 -13
  20. package/dist/subagent-stop.mjs +7962 -12
  21. package/dist/support.mjs +7168 -21
  22. package/dist/tlc-cli.mjs +8250 -65
  23. package/dist/tool-after.mjs +8177 -21
  24. package/dist/tool-before.mjs +7991 -16
  25. package/dist/tool-failure.mjs +7962 -15
  26. package/dist/uninstall-runtime.mjs +1008 -61
  27. package/docs/log.md +1 -1
  28. package/package.json +1 -1
  29. package/dist/chunks/compact-before-1e4qg1qt.mjs +0 -1185
  30. package/dist/chunks/compact-before-2hpbfxm5.mjs +0 -5782
  31. package/dist/chunks/compact-before-49j320yp.mjs +0 -1283
  32. package/dist/chunks/compact-before-4jrq0sqs.mjs +0 -61
  33. package/dist/chunks/compact-before-6w8n1vh1.mjs +0 -186
  34. package/dist/chunks/compact-before-7sdmwswh.mjs +0 -52
  35. package/dist/chunks/compact-before-beqpmqrm.mjs +0 -187
  36. package/dist/chunks/compact-before-j9y4jgn4.mjs +0 -845
  37. package/dist/chunks/compact-before-pk86tqx2.mjs +0 -118
  38. package/dist/chunks/compact-before-pkqk5v29.mjs +0 -137
  39. package/dist/chunks/compact-before-w1293m4n.mjs +0 -315
  40. package/dist/chunks/compact-before-wnnds45y.mjs +0 -26
  41. package/dist/chunks/compact-before-wt2c3nh4.mjs +0 -551
@@ -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
- var docsDir = join(runtimeHome(), "docs");
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 = join(docsDir, file);
65
+ var path = join2(docsDir, file);
58
66
  if (!existsSync(path)) {
59
67
  console.error(`missing doc: ${path}`);
60
68
  process.exit(1);