@deathbeam/pi-rtk 0.0.2 → 0.0.3

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 (2) hide show
  1. package/index.ts +1 -1
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -8,7 +8,7 @@ export function rewrittenCommand(result: ExecResult): string | null {
8
8
  }
9
9
 
10
10
  export default async function (pi: ExtensionAPI) {
11
- if ((await pi.exec("rtk", ["--version"]).catch(() => null))?.code !== 0) return;
11
+ if ((await pi.exec("rtk", ["gain", "--help"]).catch(() => null))?.code !== 0) return;
12
12
 
13
13
  pi.on("tool_call", async (event, ctx) => {
14
14
  if (!isBash(event)) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deathbeam/pi-rtk",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Minimal extension for rewriting bash commands to RTK (Rust Token Killer) for token savings.",
5
5
  "type": "module",
6
6
  "license": "MIT",