@tokmizer/plugin 1.0.0 → 1.0.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.
@@ -1,32 +1,32 @@
1
1
  {
2
2
  "darwin-arm64": {
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "file": "tkr-exec-darwin-arm64",
5
- "sha256": "84924034de29a69eab4879242237dd75c280c2c6b0a67640664098dbaffbd285"
5
+ "sha256": "a9053c420bacb1afafbd304d8cfafb81081a078595f66091d2fd93b7eb756eb0"
6
6
  },
7
7
  "darwin-x64": {
8
- "version": "1.0.0",
8
+ "version": "1.0.2",
9
9
  "file": "tkr-exec-darwin-x64",
10
- "sha256": "d1d07b4e8670ae748b568c56de407e4e84ed540beb7074c81af378b741f133dc"
10
+ "sha256": "c7d96e9b694ed5331acb24f820331a1897deda8facb25cacd426da1ff3d18426"
11
11
  },
12
12
  "linux-arm64": {
13
- "version": "1.0.0",
13
+ "version": "1.0.2",
14
14
  "file": "tkr-exec-linux-arm64",
15
- "sha256": "e4de8e379595d6024e868cecb5eef58b9f03f0b470a3b16ccc6255b3727d96db"
15
+ "sha256": "f61f37dc02d32fbdf4e14923aa87762ef37cb8112204fce9a03ab5b67705c168"
16
16
  },
17
17
  "linux-x64": {
18
- "version": "1.0.0",
18
+ "version": "1.0.2",
19
19
  "file": "tkr-exec-linux-x64",
20
- "sha256": "f6e64d2863fd797850b2f5316f71f180bdfaaffff87b39e28c4258e64181676b"
20
+ "sha256": "1fb93b7635262b23468587856f75def716ca28a3b968c5bb3916714800c4134a"
21
21
  },
22
22
  "win32-arm64": {
23
- "version": "1.0.0",
23
+ "version": "1.0.2",
24
24
  "file": "tkr-exec-win32-arm64.exe",
25
- "sha256": "2ac38cc4417ba6bf7539137b5e6ea30e0ef9b35a40205ff7e2a0dec0a34d40ca"
25
+ "sha256": "11567881e6e3d6a934fa1876dd05d6ced07a21c8dfd1b42a28b923c99cb3737c"
26
26
  },
27
27
  "win32-x64": {
28
- "version": "1.0.0",
28
+ "version": "1.0.2",
29
29
  "file": "tkr-exec-win32-x64.exe",
30
- "sha256": "d104ab8b1d172cdac9e3f9a81dc254fd1370eca92a0464b1f7597654365d67ac"
30
+ "sha256": "0c31f93ed22d5ce5465cf1291871267f0af0c1b01aefdf89c6a67b6f39c7ee7f"
31
31
  }
32
32
  }
@@ -1,38 +1,38 @@
1
1
  {
2
2
  "darwin-arm64": {
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "package": "@tokmizer/plugin-darwin-arm64",
5
5
  "file": "tkr",
6
- "sha256": "a2f5e76ce5fbcdedc2acd8397bb812b4da0ff54a5ab5a8022fc0fe978d64b9d0"
6
+ "sha256": "c3a922203beeea40ab178446a5ee9c2211ff6d404552849e307c2a4fbe6cd31b"
7
7
  },
8
8
  "darwin-x64": {
9
- "version": "1.0.0",
9
+ "version": "1.0.2",
10
10
  "package": "@tokmizer/plugin-darwin-x64",
11
11
  "file": "tkr",
12
- "sha256": "84cdbc84941921d32588a8e765eaaa85dffed927fe53225b1393c0a3328d77f1"
12
+ "sha256": "91320d2895336223feaeec97122c8648dbe9bd062145255e6625636bb3b3e522"
13
13
  },
14
14
  "linux-arm64": {
15
- "version": "1.0.0",
15
+ "version": "1.0.2",
16
16
  "package": "@tokmizer/plugin-linux-arm64",
17
17
  "file": "tkr",
18
- "sha256": "5713419d9807bf3d577c043cfb4e2075a03046cfff8cb73ee95673797f57d4ea"
18
+ "sha256": "c96cfa0da106a9549ff6dae5c5f49952a43ba884af0ee26a820babdc7c7fa039"
19
19
  },
20
20
  "linux-x64": {
21
- "version": "1.0.0",
21
+ "version": "1.0.2",
22
22
  "package": "@tokmizer/plugin-linux-x64",
23
23
  "file": "tkr",
24
- "sha256": "539f39fb64363c25490bf84e6ad016630f841d297b9b68725377ee4f53fed559"
24
+ "sha256": "93da2776d2b88fdbf848a1c4441ec746e99f5ee70ae288265f806b8733737b4e"
25
25
  },
26
26
  "win32-arm64": {
27
- "version": "1.0.0",
27
+ "version": "1.0.2",
28
28
  "package": "@tokmizer/plugin-win32-arm64",
29
29
  "file": "tkr.exe",
30
- "sha256": "38d3ab2118c7f251b50389484d158c3fbcbbb381145ee2cb1ed2018b116d2c5e"
30
+ "sha256": "7c991cda7d7fd4d5556069ee87f0ecb2a0c94845d3e53fdbcf8a8bfda17db189"
31
31
  },
32
32
  "win32-x64": {
33
- "version": "1.0.0",
33
+ "version": "1.0.2",
34
34
  "package": "@tokmizer/plugin-win32-x64",
35
35
  "file": "tkr.exe",
36
- "sha256": "5a7df5b10a92239c4e65801351b4bd1d3e4e7a31194e10deb0e7c8d4dd3861d8"
36
+ "sha256": "1fb02290c4b4c9ae63ed7d6acf3dd1bf3212f6c2558b76230c7ce2823fe944e9"
37
37
  }
38
38
  }
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/bin/tkr-exec\" --pre-tool-use",
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/bin/tkr-exec\" --post-tool-use",
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
- if (!networkOff && existsSync(stateFile) && Date.now() - last >= THROTTLE_MS) {
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.0",
3
+ "version": "1.0.2",
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.0",
65
- "@tokmizer/plugin-darwin-x64": "1.0.0",
66
- "@tokmizer/plugin-linux-arm64": "1.0.0",
67
- "@tokmizer/plugin-linux-x64": "1.0.0",
68
- "@tokmizer/plugin-win32-arm64": "1.0.0",
69
- "@tokmizer/plugin-win32-x64": "1.0.0"
64
+ "@tokmizer/plugin-darwin-arm64": "1.0.2",
65
+ "@tokmizer/plugin-darwin-x64": "1.0.2",
66
+ "@tokmizer/plugin-linux-arm64": "1.0.2",
67
+ "@tokmizer/plugin-linux-x64": "1.0.2",
68
+ "@tokmizer/plugin-win32-arm64": "1.0.2",
69
+ "@tokmizer/plugin-win32-x64": "1.0.2"
70
70
  },
71
71
  "publishConfig": {
72
72
  "access": "public"