@tech-leads-club/harness-toolkit 0.4.0 → 0.4.2
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-cli.ts +70 -18
- package/dist/compact-before.mjs +60 -60
- package/dist/doctor.mjs +77 -77
- package/dist/help-topic.mjs +3 -3
- package/dist/init-project.mjs +86 -86
- package/dist/install-runtime.mjs +76 -76
- package/dist/lessons-cli.mjs +82 -82
- package/dist/obs-cli.mjs +73 -73
- package/dist/price-lookup.mjs +2 -2
- package/dist/prompt-submit.mjs +60 -60
- package/dist/refresh-model-prices.mjs +69 -69
- package/dist/response-after.mjs +61 -61
- package/dist/run.mjs +61 -61
- package/dist/session-end.mjs +65 -65
- package/dist/session-start.mjs +66 -66
- package/dist/shim.mjs +74 -74
- package/dist/stop.mjs +70 -70
- package/dist/subagent-start.mjs +59 -59
- package/dist/subagent-stop.mjs +61 -61
- package/dist/support.mjs +71 -71
- package/dist/tlc-cli.mjs +94 -94
- package/dist/tool-after.mjs +58 -58
- package/dist/tool-before.mjs +69 -69
- package/dist/tool-failure.mjs +60 -60
- package/dist/uninstall-runtime.mjs +4 -4
- package/package.json +1 -1
- package/src/core/core.facade.ts +7 -0
- package/src/core/policy/policy.integrity.ts +13 -1
- package/src/core/policy/policy.shadow.ts +36 -40
- package/src/platform/paths.ts +85 -3
- package/src/providers/index.ts +1 -0
- package/tools/doctor.ts +12 -33
- package/tools/install-runtime.ts +15 -21
package/dist/help-topic.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{existsSync as
|
|
1
|
+
import{existsSync as A,readFileSync as B}from"node:fs";import{join as V}from"node:path";import{homedir as Z}from"node:os";import{delimiter as W,dirname as _,join as $,resolve as N}from"node:path";function q(){return $(Z(),".tlc","harness")}function Q(J=process.env){return J.TLC_HOME??q()}var F=V(Q(),"docs"),z=(process.argv[2]??"").toLowerCase(),L={architecture:{file:"architecture.md"},concepts:{file:"concepts.md"},measure:{file:"measure.md"},metrics:{file:"measure.md"},prices:{file:"measure.md",section:"## Prices"},price:{file:"measure.md",section:"## Prices"},cost:{file:"measure.md",section:"## Prices"},costs:{file:"measure.md",section:"## Prices"},diagnose:{file:"diagnose.md"},doctor:{file:"diagnose.md"},debug:{file:"diagnose.md"},init:{file:"init.md"},setup:{file:"init.md"},lessons:{file:"lessons.md"},lesson:{file:"lessons.md"},rules:{file:"concepts.md",section:"## operator rules"},rule:{file:"concepts.md",section:"## operator rules"},runtime:{file:"concepts.md",section:"## which runtime answers a hook"},dev:{file:"concepts.md",section:"## which runtime answers a hook"},settings:{file:"concepts.md",section:"## where a setting lives"},config:{file:"concepts.md",section:"## where a setting lives"}};function Y(){console.log(`tlc harness help
|
|
2
2
|
|
|
3
3
|
TOPICS
|
|
4
4
|
tlc harness help architecture
|
|
@@ -18,6 +18,6 @@ PRICES
|
|
|
18
18
|
|
|
19
19
|
ALSO
|
|
20
20
|
tlc harness status | doctor | grind | mode | obs | lessons
|
|
21
|
-
`)}if(!
|
|
22
|
-
`)?
|
|
21
|
+
`)}if(!z||z==="help"||z==="-h"||z==="--help")Y(),process.exit(0);var K=L[z];if(!K)console.error(`unknown topic: ${z}`),Y(),process.exit(1);var M=V(F,K.file);if(!A(M))console.error(`missing doc: ${M}`),process.exit(1);var G=B(M,"utf8");if(K.section){let J=G.indexOf(K.section);if(J>=0)G=G.slice(J)}process.stdout.write(G.endsWith(`
|
|
22
|
+
`)?G:`${G}
|
|
23
23
|
`);
|