@krtclcdy/tersio 2.25.7 → 2.25.8

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 (120) hide show
  1. package/README.md +17 -10
  2. package/dashboard/dist/index.html +1 -1
  3. package/dist/cli/common.js +25 -3
  4. package/dist/cli/dashboard.js +7 -2
  5. package/dist/cli/doctor-fix.js +12 -7
  6. package/dist/cli/doctor.js +16 -3
  7. package/dist/cli/install.js +5 -5
  8. package/dist/cli/profile.js +28 -3
  9. package/dist/cli/rtk-wiring.js +13 -10
  10. package/dist/cli/usage.js +5 -0
  11. package/dist/extensions/caveman/index.js +3 -6
  12. package/dist/extensions/combo/index.js +1 -6
  13. package/dist/extensions/commands/index.js +7 -2
  14. package/dist/extensions/pstack/index.js +2 -1
  15. package/dist/extensions/rtk/filter.js +45 -4
  16. package/dist/extensions/rtk/session.js +4 -2
  17. package/dist/extensions/server.js +44 -29
  18. package/dist/extensions/shared/agent-stats.js +21 -13
  19. package/dist/extensions/shared/pricing.js +5 -4
  20. package/dist/extensions/shared/rtk-eligible.js +7 -11
  21. package/dist/extensions/shared/rtk-gain.js +2 -6
  22. package/dist/extensions/shared/sqlite.js +1 -6
  23. package/dist/extensions/shared/usage-ledger.js +97 -12
  24. package/dist/extensions/shared/utils.js +33 -0
  25. package/dist/extensions/updater/index.js +15 -7
  26. package/extensions/caveman/index.ts +3 -6
  27. package/extensions/combo/index.ts +1 -6
  28. package/extensions/commands/index.ts +7 -2
  29. package/extensions/pstack/index.ts +2 -1
  30. package/extensions/pstack/playbooks/autopilot-full.md +1 -1
  31. package/extensions/pstack/playbooks/babysit.md +1 -1
  32. package/extensions/pstack/playbooks/eval.md +1 -1
  33. package/extensions/pstack/playbooks/multi-phase-plan.md +2 -2
  34. package/extensions/pstack/playbooks/orchestrate.md +3 -3
  35. package/extensions/pstack/playbooks/session-pickup.md +1 -1
  36. package/extensions/pstack/playbooks/shipping.md +2 -2
  37. package/extensions/pstack/playbooks/worktree-cleanup.md +1 -1
  38. package/extensions/pstack/skills/reflect/SKILL.md +2 -2
  39. package/extensions/pstack/skills/show-me-your-work/SKILL.md +2 -2
  40. package/extensions/rtk/filter.ts +51 -4
  41. package/extensions/rtk/session.ts +4 -2
  42. package/extensions/server.ts +31 -23
  43. package/extensions/shared/agent-stats.ts +21 -12
  44. package/extensions/shared/pricing.ts +7 -5
  45. package/extensions/shared/rtk-eligible.ts +7 -11
  46. package/extensions/shared/rtk-gain.ts +2 -6
  47. package/extensions/shared/sqlite.ts +1 -6
  48. package/extensions/shared/usage-ledger.ts +102 -14
  49. package/extensions/shared/utils.ts +29 -0
  50. package/extensions/updater/index.ts +18 -7
  51. package/package.json +3 -5
  52. package/dist/bench/code-out/pfull-0/debounce.js +0 -13
  53. package/dist/bench/code-out/pfull-0/deepClone.js +0 -18
  54. package/dist/bench/code-out/pfull-0/groupBy.js +0 -15
  55. package/dist/bench/code-out/pfull-1/debounce.js +0 -13
  56. package/dist/bench/code-out/pfull-1/deepClone.js +0 -17
  57. package/dist/bench/code-out/pfull-1/groupBy.js +0 -14
  58. package/dist/bench/code-out/pfull-2/debounce.js +0 -13
  59. package/dist/bench/code-out/pfull-2/deepClone.js +0 -18
  60. package/dist/bench/code-out/pfull-2/groupBy.js +0 -15
  61. package/dist/bench/code-out/pfull-3/debounce.js +0 -12
  62. package/dist/bench/code-out/pfull-3/deepClone.js +0 -17
  63. package/dist/bench/code-out/pfull-3/groupBy.js +0 -7
  64. package/dist/bench/code-out/pfull-4/debounce.js +0 -10
  65. package/dist/bench/code-out/pfull-4/deepClone.js +0 -17
  66. package/dist/bench/code-out/pfull-4/groupBy.js +0 -14
  67. package/dist/bench/code-out/plite-0/debounce.js +0 -13
  68. package/dist/bench/code-out/plite-0/deepClone.js +0 -18
  69. package/dist/bench/code-out/plite-0/groupBy.js +0 -15
  70. package/dist/bench/code-out/plite-1/debounce.js +0 -13
  71. package/dist/bench/code-out/plite-1/deepClone.js +0 -17
  72. package/dist/bench/code-out/plite-1/groupBy.js +0 -11
  73. package/dist/bench/code-out/plite-2/debounce.js +0 -12
  74. package/dist/bench/code-out/plite-2/deepClone.js +0 -17
  75. package/dist/bench/code-out/plite-2/groupBy.js +0 -14
  76. package/dist/bench/code-out/plite-3/debounce.js +0 -12
  77. package/dist/bench/code-out/plite-3/deepClone.js +0 -17
  78. package/dist/bench/code-out/plite-3/groupBy.js +0 -14
  79. package/dist/bench/code-out/plite-4/debounce.js +0 -12
  80. package/dist/bench/code-out/plite-4/deepClone.js +0 -17
  81. package/dist/bench/code-out/plite-4/groupBy.js +0 -14
  82. package/dist/bench/code-out/pultra-0/debounce.js +0 -12
  83. package/dist/bench/code-out/pultra-0/deepClone.js +0 -20
  84. package/dist/bench/code-out/pultra-0/groupBy.js +0 -14
  85. package/dist/bench/code-out/pultra-1/debounce.js +0 -10
  86. package/dist/bench/code-out/pultra-1/deepClone.js +0 -17
  87. package/dist/bench/code-out/pultra-1/groupBy.js +0 -7
  88. package/dist/bench/code-out/pultra-2/debounce.js +0 -13
  89. package/dist/bench/code-out/pultra-2/deepClone.js +0 -18
  90. package/dist/bench/code-out/pultra-2/groupBy.js +0 -15
  91. package/dist/bench/code-out/pultra-3/debounce.js +0 -13
  92. package/dist/bench/code-out/pultra-3/deepClone.js +0 -18
  93. package/dist/bench/code-out/pultra-3/groupBy.js +0 -15
  94. package/dist/bench/code-out/pultra-4/debounce.js +0 -13
  95. package/dist/bench/code-out/pultra-4/deepClone.js +0 -18
  96. package/dist/bench/code-out/pultra-4/groupBy.js +0 -15
  97. package/dist/bench/code-out/run-0/debounce.js +0 -12
  98. package/dist/bench/code-out/run-0/deepClone.js +0 -17
  99. package/dist/bench/code-out/run-0/groupBy.js +0 -14
  100. package/dist/bench/code-out/run-1/debounce.js +0 -13
  101. package/dist/bench/code-out/run-1/deepClone.js +0 -15
  102. package/dist/bench/code-out/run-1/groupBy.js +0 -13
  103. package/dist/bench/code-out/run-2/debounce.js +0 -12
  104. package/dist/bench/code-out/run-2/deepClone.js +0 -18
  105. package/dist/bench/code-out/run-2/groupBy.js +0 -13
  106. package/dist/bench/code-out/run-3/debounce.js +0 -12
  107. package/dist/bench/code-out/run-3/deepClone.js +0 -18
  108. package/dist/bench/code-out/run-3/groupBy.js +0 -14
  109. package/dist/bench/code-out/run-4/debounce.js +0 -12
  110. package/dist/bench/code-out/run-4/deepClone.js +0 -16
  111. package/dist/bench/code-out/run-4/groupBy.js +0 -13
  112. package/dist/extensions/caveman/rule-lite.md +0 -77
  113. package/dist/extensions/caveman/rule-megacave-lite.md +0 -59
  114. package/dist/extensions/caveman/rule-megacave-ultra.md +0 -59
  115. package/dist/extensions/caveman/rule-megacave.md +0 -65
  116. package/dist/extensions/caveman/rule-ultra.md +0 -63
  117. package/dist/extensions/caveman/rule.md +0 -89
  118. package/dist/extensions/pstack/rule.md +0 -141
  119. package/dist/probe-catalog.js +0 -48
  120. package/dist/probe-catalog188.js +0 -44
package/README.md CHANGED
@@ -39,12 +39,19 @@ Use an agent daily and pay per token? This is for you. Use one a few times a wee
39
39
 
40
40
  All install paths in one table, with update and remove commands: [INSTALL.md](./INSTALL.md).
41
41
 
42
- **Default** (macOS/Linux/WSL) — one line. Installs the CLI via npm, then runs the main installer (scope + Combo preset menus) in the same pass:
42
+ **Default** (macOS/Linux) — one line. Installs the CLI via npm, then runs the main installer (scope + Combo preset menus) in the same pass:
43
43
 
44
44
  ```bash
45
45
  curl -fsSL https://github.com/KurutoDenzeru/tersio/releases/latest/download/install.sh | sh
46
46
  ```
47
47
 
48
+ **Windows** — the same pass through PowerShell. The piped form takes the defaults; the scriptblock form keeps the console, so it shows the menus and takes flags:
49
+
50
+ ```powershell
51
+ irm https://github.com/KurutoDenzeru/tersio/releases/latest/download/install.ps1 | iex
52
+ & ([scriptblock]::Create((irm https://github.com/KurutoDenzeru/tersio/releases/latest/download/install.ps1))) --npm
53
+ ```
54
+
48
55
  Then run the CLI. Bare `tersio` opens a menu and asks which agent to install into:
49
56
 
50
57
  ```bash
@@ -74,13 +81,13 @@ npm exec --yes --prefer-online --package=@krtclcdy/tersio@latest -- tersio insta
74
81
 
75
82
  ### Requirements
76
83
 
77
- - [OMP](https://github.com/can1357/oh-my-pi), [pi](https://github.com/earendil-works/pi), or [OpenCode](https://opencode.ai) — all three are supported; pick one with `tersio install --host <omp|pi|opencode>`
78
- - **Node.js 20.12+ with npm.** That is the requirement. The extensions load inside your host, the CLI runs under Node, and the package declares no Bun entry point
79
- - **Bun is optional.** The installer prefers it when it is on PATH and falls back to npm. `npm i -g` alone installs everything. Bun also supplies SQLite in process, which is its only effect on the code
80
- - SQLite comes from the runtime where it can: Bun, or Node 22.5+ through `node:sqlite`. An older Node needs the `sqlite3` binary on PATH, and every engine answers identically
81
- - macOS or Linux, native or WSL
82
-
83
- On Windows, use WSL. There is no native Windows path: the installer, the extensions, and the RTK wiring are tested on macOS and Linux only. WSL has its own home directory, so install from inside WSL — `command -v npm` must resolve to a Linux path, not `/mnt/c/`.
84
+ | Need | Detail |
85
+ |---|---|
86
+ | Host | [OMP](https://github.com/can1357/oh-my-pi), [pi](https://github.com/earendil-works/pi), or [OpenCode](https://opencode.ai) — `tersio install --host <omp\|pi\|opencode>` |
87
+ | Node.js | 20.12+ with npm. The CLI runs under Node |
88
+ | Bun | Optional. Preferred when on PATH, npm otherwise; also supplies SQLite in process |
89
+ | SQLite | Bun, Node 22.5+ `node:sqlite`, or the `sqlite3` binary on PATH |
90
+ | OS | macOS, Linux, or Windows, native (`install.ps1`). WSL works too, installed from inside it |
84
91
 
85
92
  ## 🖥️ CLI
86
93
 
@@ -159,9 +166,9 @@ An OMP install also registers the package in `~/.omp/plugins`, so it shows under
159
166
 
160
167
  **Ponytail or Combo command missing on OMP:** confirm `~/.omp/plugins/package.json` lists `@krtclcdy/tersio`, then run `tersio install`, restart OMP, and check `tersio doctor`. A damaged tree is repaired by `tersio doctor --fix extensions`.
161
168
 
162
- **RTK missing or not executable:** run `tersio install`, then `tersio doctor`. On Linux/macOS: `chmod +x ~/.bun/bin/rtk`.
169
+ **RTK missing or not executable:** run `tersio install`, then `tersio doctor`. On Linux/macOS: `chmod +x ~/.bun/bin/rtk`. On Windows the binary is `rtk.exe`, and rtk publishes no `aarch64-pc-windows` build, so a Windows-on-ARM host has no rtk to install. The doctor's Platform row names this directly.
163
170
 
164
- **RTK savings and adoption:** the Gain numbers read rtk's own `history.db`, which the binary writes on every host, so pi and OpenCode runs are already in them. The adoption row counts executed Bash calls from all three stores: the omp and pi session transcripts, and OpenCode's v2 sqlite or pre-v2 JSON message tree. The eligible command list comes from `rtk rewrite` itself, cached per binary version. Native tool calls (`read`/`edit`/`eval`) stay out of RTK by design, and exact bytes bypass RTK.
171
+ **RTK savings and adoption:** the Gain numbers read rtk's own `history.db` (`%LOCALAPPDATA%\rtk` on Windows), so pi and OpenCode runs are already in them. The adoption row counts executed Bash calls from the omp and pi transcripts and OpenCode's v2 sqlite or pre-v2 JSON tree. The eligible list comes from `rtk rewrite`, cached per binary version. Native tool calls (`read`/`edit`/`eval`) and exact bytes bypass RTK.
165
172
 
166
173
  **Checksum warning or failure:** the installer aborts on RTK checksum mismatch but warns and continues when checksum metadata is unavailable; `/tersio update rtk` aborts when metadata is missing.
167
174