@tokmizer/plugin 0.9.55 → 0.9.57
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/.claude-plugin/plugin.json +1 -1
- package/README.md +3 -3
- package/codex-plugin/plugin.json +1 -1
- package/command-templates/tkr-link.md +1 -1
- package/command-templates/tkr-status.md +2 -4
- package/command-templates/tkr-unlink.md +2 -2
- package/dist/bin/tkr-codex-hook.js +32 -32
- package/dist/bin/tkr-daemon.js +26 -26
- package/dist/bin/tkr-exec +32 -32
- package/dist/bin/tkr-exec.js +32 -32
- package/dist/bin/tkr-shim.js +21 -21
- package/dist/bin/tkr.js +106 -107
- package/dist/hooks-host/post-tool-use.js +35 -35
- package/dist/hooks-host/reducer-stop.js +16 -16
- package/dist/index.js +32 -32
- package/dist/native/manifest.json +8 -8
- package/dist/native/tkr-exec-darwin-arm64 +0 -0
- package/dist/native/tkr-exec-darwin-x64 +0 -0
- package/dist/native/tkr-exec-linux-arm64 +0 -0
- package/dist/native/tkr-exec-linux-x64 +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ In Claude Code:
|
|
|
13
13
|
/plugin install tokmizer@tokmizer
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
Then restart Claude Code once, hooks only load at startup. Verify with `/tkr-status`, you should see
|
|
16
|
+
Then restart Claude Code once, hooks only load at startup. Verify with `/tkr-status`, you should see Status active.
|
|
17
17
|
|
|
18
18
|
Any other tool (universal shell-shim):
|
|
19
19
|
|
|
@@ -63,7 +63,7 @@ In Claude Code:
|
|
|
63
63
|
- `/tkr-link tokmizer_yourkey` connects an optional account
|
|
64
64
|
- `/tkr-unlink` unlinks this machine from your account
|
|
65
65
|
- `/tkr-gain` shows the estimated reduction in command-output tokens
|
|
66
|
-
- `/tkr-status` shows your
|
|
66
|
+
- `/tkr-status` shows your account and engine status
|
|
67
67
|
- `/tkr-compression` picks the compression level (light, balanced, max)
|
|
68
68
|
- `/tkr-yolo on` explicitly enables YOLO on this machine; `/tkr-yolo off` disables it
|
|
69
69
|
- `/tkr-reducer` makes the assistant's replies shorter (off, light, balanced, max)
|
|
@@ -72,7 +72,7 @@ In Claude Code:
|
|
|
72
72
|
|
|
73
73
|
From any terminal (after the shell-shim install, or `npm install -g @tokmizer/plugin`):
|
|
74
74
|
|
|
75
|
-
- `tkr status` shows your
|
|
75
|
+
- `tkr status` shows your account and engine status
|
|
76
76
|
- `tkr gain` shows the estimated reduction in command-output tokens
|
|
77
77
|
- `tkr link <key>` connects an optional account
|
|
78
78
|
- `tkr unlink` unlinks this machine
|
package/codex-plugin/plugin.json
CHANGED
|
@@ -11,7 +11,7 @@ If $ARGUMENTS contains a value starting with `tokmizer_`, run it immediately, no
|
|
|
11
11
|
node "${CLAUDE_PLUGIN_ROOT}/dist/bin/tkr.js" link <that value>
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
On success the command prints
|
|
14
|
+
On success the command prints "Linked.". Tell the user it is done.
|
|
15
15
|
|
|
16
16
|
If $ARGUMENTS contains no `tokmizer_...` value, do not run anything and reply exactly:
|
|
17
17
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Show your Tokmizer
|
|
2
|
+
description: Show your Tokmizer account and engine status.
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
Show the user their Tokmizer account status.
|
|
@@ -10,8 +10,6 @@ Run the bundled CLI:
|
|
|
10
10
|
node "${CLAUDE_PLUGIN_ROOT}/dist/bin/tkr.js" status
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
Print the output as is. It includes the
|
|
14
|
-
|
|
15
|
-
If the user is on the free plan and asks how to upgrade, point them to https://tokmizer.com/#pricing and the `/tkr-link` command.
|
|
13
|
+
Print the output as is. It includes the token state, whether the device is linked and whether `/power` is available right now. Tokmizer is free: there is no plan or subscription to mention.
|
|
16
14
|
|
|
17
15
|
If the command fails because the plugin files are missing, tokmizer was uninstalled. Offer to clean up: delete the tokmizer-managed `tkr*.md` copies (they end with a `managed-by: tokmizer` marker) from `~/.claude/commands/`.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Unlink this machine from your Tokmizer account (
|
|
2
|
+
description: Unlink this machine from your Tokmizer account (it keeps working anonymously).
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
Unlink the local plugin from the user's Tokmizer account.
|
|
@@ -10,6 +10,6 @@ Run the bundled CLI:
|
|
|
10
10
|
node "${CLAUDE_PLUGIN_ROOT}/dist/bin/tkr.js" unlink
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
Print the output as is. After unlinking, the plugin
|
|
13
|
+
Print the output as is. After unlinking, the plugin keeps working with a fresh anonymous token from the next online run. To link another account, the user runs `tkr link` with the key from their dashboard.
|
|
14
14
|
|
|
15
15
|
If the command fails because the plugin files are missing, tokmizer was uninstalled. Offer to clean up: delete the tokmizer-managed `tkr*.md` copies (they end with a `managed-by: tokmizer` marker) from `~/.claude/commands/`.
|