anolisa-tokenless 0.7.13 → 0.8.0

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 (34) hide show
  1. package/README.md +219 -87
  2. package/adapters/tokenless/claude-code/.claude-plugin/plugin.json +1 -1
  3. package/adapters/tokenless/claude-code/hooks/run-hook.sh +62 -0
  4. package/adapters/tokenless/codex/.codex-plugin/plugin.json +5 -4
  5. package/adapters/tokenless/codex/README.md +22 -32
  6. package/adapters/tokenless/codex/hooks/hooks.json +3 -3
  7. package/adapters/tokenless/codex/scripts/response-diagnostics +170 -0
  8. package/adapters/tokenless/common/cosh-extension.json +4 -4
  9. package/adapters/tokenless/common/hooks/compress_response_hook.py +250 -307
  10. package/adapters/tokenless/common/hooks/compress_schema_hook.py +34 -42
  11. package/adapters/tokenless/common/hooks/hook_utils.py +281 -44
  12. package/adapters/tokenless/common/hooks/rewrite_hook.py +53 -169
  13. package/adapters/tokenless/dsh/dist/index.js +353 -264
  14. package/adapters/tokenless/dsh/package.json +2 -2
  15. package/adapters/tokenless/hermes/__init__.py +191 -355
  16. package/adapters/tokenless/hermes/plugin.yaml +2 -2
  17. package/adapters/tokenless/manifest.json +18 -3
  18. package/adapters/tokenless/openclaw/dist/index.d.ts +4 -16
  19. package/adapters/tokenless/openclaw/dist/index.js +291 -507
  20. package/adapters/tokenless/openclaw/index.ts +408 -628
  21. package/adapters/tokenless/openclaw/openclaw.plugin.json +4 -20
  22. package/adapters/tokenless/openclaw/package.json +6 -4
  23. package/adapters/tokenless/qoder/.qoder-plugin/plugin.json +1 -1
  24. package/adapters/tokenless/qwencode/hooks/run-hook.sh +62 -0
  25. package/adapters/tokenless/qwencode/qwen-extension.json +4 -4
  26. package/adapters/tokenless/qwenpaw/plugin.json +17 -0
  27. package/adapters/tokenless/qwenpaw/plugin.py +390 -0
  28. package/adapters/tokenless/qwenpaw/requirements.txt +6 -0
  29. package/adapters/tokenless/qwenpaw/scripts/detect.sh +131 -0
  30. package/adapters/tokenless/qwenpaw/scripts/install.sh +98 -0
  31. package/adapters/tokenless/qwenpaw/scripts/uninstall.sh +61 -0
  32. package/package.json +5 -5
  33. package/adapters/tokenless/codex/scripts/compress-response +0 -445
  34. package/adapters/tokenless/common/hooks/compress_toon_hook.py +0 -171
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "component": "tokenless",
3
- "version": "0.7.13",
3
+ "version": "0.8.0",
4
4
  "targets": {
5
5
  "cosh": {
6
6
  "compatibleVersions": "*",
@@ -99,8 +99,7 @@
99
99
  "hooks": [
100
100
  "tool-ready",
101
101
  "rewrite",
102
- "compress-response",
103
- "compress-toon"
102
+ "response-diagnostics"
104
103
  ]
105
104
  },
106
105
  "actions": {
@@ -142,6 +141,22 @@
142
141
  "install": "qwencode/scripts/install.sh",
143
142
  "uninstall": "qwencode/scripts/uninstall.sh"
144
143
  }
144
+ },
145
+ "qwenpaw": {
146
+ "compatibleVersions": ">=2.0.0 <3.0.0",
147
+ "capabilities": {
148
+ "hooks": [
149
+ "compress-schema",
150
+ "rewrite",
151
+ "compress-response",
152
+ "compress-toon"
153
+ ]
154
+ },
155
+ "actions": {
156
+ "detect": "qwenpaw/scripts/detect.sh",
157
+ "install": "qwenpaw/scripts/install.sh",
158
+ "uninstall": "qwenpaw/scripts/uninstall.sh"
159
+ }
145
160
  }
146
161
  }
147
162
  }
@@ -1,21 +1,9 @@
1
1
  /**
2
- * Token-Less Unified Plugin for OpenClaw v5
2
+ * Tokenless lifecycle adapter for OpenClaw.
3
3
  *
4
- * Combines multiple complementary optimisation strategies into a single plugin:
5
- *
6
- * 1. RTK command rewriting — transparently rewrites exec tool commands to
7
- * their RTK equivalents (delegated to `rtk rewrite`).
8
- * 2. Tokenless response compression — compresses tool responses via
9
- * `tokenless compress-response` (removes debug/null/empty values).
10
- * 3. TOON context compression — encodes JSON tool responses to TOON format
11
- * via `tokenless compress-toon`, reducing token usage for structured data. When both
12
- * response and TOON compression are enabled, they run sequentially:
13
- * Response Compression strips noise → TOON eliminates JSON format overhead.
14
- *
15
- * Stats are recorded automatically by tokenless compress-response.
16
- * RTK rewrite and proxy processes receive the same per-call context snapshot;
17
- * the rewrite-context file remains a compatibility fallback for launch paths
18
- * that do not preserve exec environment overrides.
4
+ * OpenClaw can replace arguments before a tool call and synchronously rewrite
5
+ * tool-result transcript entries. Core owns RTK execution and PostTool policy;
6
+ * this adapter only translates those host events to Protocol v2.
19
7
  */
20
8
  declare const _default: {
21
9
  id: string;