@tokmizer/plugin 1.0.0 → 1.0.1
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/.codex-plugin/plugin.json +1 -1
- package/dist/bin/tkr-codex-hook.js +2 -2
- package/dist/bin/tkr-daemon.js +109 -109
- package/dist/bin/tkr-exec +0 -0
- package/dist/bin/tkr-exec.js +2 -2
- package/dist/bin/tkr-processor.js +79 -79
- package/dist/bin/tkr-shim.js +2 -2
- package/dist/bin/tkr.js +2 -2
- package/dist/hooks-host/post-tool-use.js +71 -71
- package/dist/hooks-host/reducer-stop.js +1 -1
- package/dist/hooks-host/session-recap.js +1 -1
- package/dist/index.js +2 -2
- package/dist/native/manifest.json +12 -12
- package/dist/native/single.json +12 -12
- 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/dist/native/tkr-exec-win32-arm64.exe +0 -0
- package/dist/native/tkr-exec-win32-x64.exe +0 -0
- package/hooks/hooks.json +2 -7
- package/hooks/on-session-start.mjs +2 -1
- package/package.json +7 -7
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"darwin-arm64": {
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"file": "tkr-exec-darwin-arm64",
|
|
5
|
-
"sha256": "
|
|
5
|
+
"sha256": "73b36777eff272145389b79b4f7e6dfd724405fc777aab316f66a4b6bc07a6d4"
|
|
6
6
|
},
|
|
7
7
|
"darwin-x64": {
|
|
8
|
-
"version": "1.0.
|
|
8
|
+
"version": "1.0.1",
|
|
9
9
|
"file": "tkr-exec-darwin-x64",
|
|
10
|
-
"sha256": "
|
|
10
|
+
"sha256": "2a90eb0152047926a353d5e5b7a176ca8f71fbb2b2165876d92dc8c61db45137"
|
|
11
11
|
},
|
|
12
12
|
"linux-arm64": {
|
|
13
|
-
"version": "1.0.
|
|
13
|
+
"version": "1.0.1",
|
|
14
14
|
"file": "tkr-exec-linux-arm64",
|
|
15
|
-
"sha256": "
|
|
15
|
+
"sha256": "3ab93ea30d7a308304bf38b7ff420c606f146dbcbb7ca27a48361e0b7b091e29"
|
|
16
16
|
},
|
|
17
17
|
"linux-x64": {
|
|
18
|
-
"version": "1.0.
|
|
18
|
+
"version": "1.0.1",
|
|
19
19
|
"file": "tkr-exec-linux-x64",
|
|
20
|
-
"sha256": "
|
|
20
|
+
"sha256": "7c4f985f03bfb261398ccc3d67a4f8209c4a3ece14312d50cf91389a7be09170"
|
|
21
21
|
},
|
|
22
22
|
"win32-arm64": {
|
|
23
|
-
"version": "1.0.
|
|
23
|
+
"version": "1.0.1",
|
|
24
24
|
"file": "tkr-exec-win32-arm64.exe",
|
|
25
|
-
"sha256": "
|
|
25
|
+
"sha256": "e29878b487ba681e3b15d6f8a09a88dff377df710afe8244803c37786f96851c"
|
|
26
26
|
},
|
|
27
27
|
"win32-x64": {
|
|
28
|
-
"version": "1.0.
|
|
28
|
+
"version": "1.0.1",
|
|
29
29
|
"file": "tkr-exec-win32-x64.exe",
|
|
30
|
-
"sha256": "
|
|
30
|
+
"sha256": "3acb73f23c6392c43fd45bc35f359d21edb4b323c934b3ce527638e4b75dc4b9"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/dist/native/single.json
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"darwin-arm64": {
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"package": "@tokmizer/plugin-darwin-arm64",
|
|
5
5
|
"file": "tkr",
|
|
6
|
-
"sha256": "
|
|
6
|
+
"sha256": "93c6cd6b41ac2de4e3a668989be858db32b4f3e7b28f39749288a93aa367994f"
|
|
7
7
|
},
|
|
8
8
|
"darwin-x64": {
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.1",
|
|
10
10
|
"package": "@tokmizer/plugin-darwin-x64",
|
|
11
11
|
"file": "tkr",
|
|
12
|
-
"sha256": "
|
|
12
|
+
"sha256": "bd1bb13672e10ee7fd9365dd39ba9e122ad1fb55a31851b34a51e9a577853069"
|
|
13
13
|
},
|
|
14
14
|
"linux-arm64": {
|
|
15
|
-
"version": "1.0.
|
|
15
|
+
"version": "1.0.1",
|
|
16
16
|
"package": "@tokmizer/plugin-linux-arm64",
|
|
17
17
|
"file": "tkr",
|
|
18
|
-
"sha256": "
|
|
18
|
+
"sha256": "619dcc788093123118b811fac7630b4ccb1a909f33a402c80bf7246e34efef5f"
|
|
19
19
|
},
|
|
20
20
|
"linux-x64": {
|
|
21
|
-
"version": "1.0.
|
|
21
|
+
"version": "1.0.1",
|
|
22
22
|
"package": "@tokmizer/plugin-linux-x64",
|
|
23
23
|
"file": "tkr",
|
|
24
|
-
"sha256": "
|
|
24
|
+
"sha256": "ea0e6ddd02cfd0479555a3666cc3087aa5bf2da3e37e9deeb9928946700bd95c"
|
|
25
25
|
},
|
|
26
26
|
"win32-arm64": {
|
|
27
|
-
"version": "1.0.
|
|
27
|
+
"version": "1.0.1",
|
|
28
28
|
"package": "@tokmizer/plugin-win32-arm64",
|
|
29
29
|
"file": "tkr.exe",
|
|
30
|
-
"sha256": "
|
|
30
|
+
"sha256": "2e134fd6804e4f3afaeacadd234f41bd54e5ae05e0252764283f021894a79156"
|
|
31
31
|
},
|
|
32
32
|
"win32-x64": {
|
|
33
|
-
"version": "1.0.
|
|
33
|
+
"version": "1.0.1",
|
|
34
34
|
"package": "@tokmizer/plugin-win32-x64",
|
|
35
35
|
"file": "tkr.exe",
|
|
36
|
-
"sha256": "
|
|
36
|
+
"sha256": "a17bc864ce283c85e89cd34bcb7e7fc468e68fe16d9a67f39681552ff16283f8"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/hooks/hooks.json
CHANGED
|
@@ -4,11 +4,6 @@
|
|
|
4
4
|
{
|
|
5
5
|
"matcher": "",
|
|
6
6
|
"hooks": [
|
|
7
|
-
{
|
|
8
|
-
"type": "command",
|
|
9
|
-
"command": "\"${CLAUDE_PLUGIN_ROOT}/dist/bin/tkr-exec\" --session-start",
|
|
10
|
-
"timeout": 5
|
|
11
|
-
},
|
|
12
7
|
{
|
|
13
8
|
"type": "command",
|
|
14
9
|
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/on-session-start.mjs\"",
|
|
@@ -57,7 +52,7 @@
|
|
|
57
52
|
"hooks": [
|
|
58
53
|
{
|
|
59
54
|
"type": "command",
|
|
60
|
-
"command": "\"${CLAUDE_PLUGIN_ROOT}/dist/
|
|
55
|
+
"command": "node \"${CLAUDE_PLUGIN_ROOT}/dist/hooks-host/pre-tool-use.js\"",
|
|
61
56
|
"timeout": 5
|
|
62
57
|
}
|
|
63
58
|
]
|
|
@@ -69,7 +64,7 @@
|
|
|
69
64
|
"hooks": [
|
|
70
65
|
{
|
|
71
66
|
"type": "command",
|
|
72
|
-
"command": "\"${CLAUDE_PLUGIN_ROOT}/dist/
|
|
67
|
+
"command": "node \"${CLAUDE_PLUGIN_ROOT}/dist/hooks-host/post-tool-use.js\"",
|
|
73
68
|
"timeout": 10
|
|
74
69
|
}
|
|
75
70
|
]
|
|
@@ -174,7 +174,8 @@ try {
|
|
|
174
174
|
last = Number(readFileSync(throttleFile, "utf8")) || 0;
|
|
175
175
|
} catch {}
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
const signedUp = existsSync(stateFile);
|
|
178
|
+
if (!networkOff && (signedUp || existsSync(join(home, "network-notice-shown"))) && (!signedUp || Date.now() - last >= THROTTLE_MS)) {
|
|
178
179
|
try {
|
|
179
180
|
writeFileSync(throttleFile, String(Date.now()));
|
|
180
181
|
} catch {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokmizer/plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Tokmizer reduces token consumption for AI coding tools (Claude Code, Codex, Cursor, Aider, Gemini CLI, Cline, Windsurf, Copilot). Cross-OS.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
"zod": "^3.23.8"
|
|
62
62
|
},
|
|
63
63
|
"optionalDependencies": {
|
|
64
|
-
"@tokmizer/plugin-darwin-arm64": "1.0.
|
|
65
|
-
"@tokmizer/plugin-darwin-x64": "1.0.
|
|
66
|
-
"@tokmizer/plugin-linux-arm64": "1.0.
|
|
67
|
-
"@tokmizer/plugin-linux-x64": "1.0.
|
|
68
|
-
"@tokmizer/plugin-win32-arm64": "1.0.
|
|
69
|
-
"@tokmizer/plugin-win32-x64": "1.0.
|
|
64
|
+
"@tokmizer/plugin-darwin-arm64": "1.0.1",
|
|
65
|
+
"@tokmizer/plugin-darwin-x64": "1.0.1",
|
|
66
|
+
"@tokmizer/plugin-linux-arm64": "1.0.1",
|
|
67
|
+
"@tokmizer/plugin-linux-x64": "1.0.1",
|
|
68
|
+
"@tokmizer/plugin-win32-arm64": "1.0.1",
|
|
69
|
+
"@tokmizer/plugin-win32-x64": "1.0.1"
|
|
70
70
|
},
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|