anolisa-tokenless 0.7.14 → 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 (30) hide show
  1. package/README.md +206 -79
  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 +1 -1
  5. package/adapters/tokenless/common/cosh-extension.json +4 -4
  6. package/adapters/tokenless/common/hooks/compress_response_hook.py +180 -96
  7. package/adapters/tokenless/common/hooks/compress_schema_hook.py +19 -31
  8. package/adapters/tokenless/common/hooks/hook_utils.py +240 -70
  9. package/adapters/tokenless/common/hooks/rewrite_hook.py +53 -169
  10. package/adapters/tokenless/dsh/dist/index.js +353 -264
  11. package/adapters/tokenless/dsh/package.json +2 -2
  12. package/adapters/tokenless/hermes/__init__.py +191 -357
  13. package/adapters/tokenless/hermes/plugin.yaml +2 -2
  14. package/adapters/tokenless/manifest.json +17 -1
  15. package/adapters/tokenless/openclaw/dist/index.d.ts +4 -16
  16. package/adapters/tokenless/openclaw/dist/index.js +291 -507
  17. package/adapters/tokenless/openclaw/index.ts +408 -628
  18. package/adapters/tokenless/openclaw/openclaw.plugin.json +4 -20
  19. package/adapters/tokenless/openclaw/package.json +6 -4
  20. package/adapters/tokenless/qoder/.qoder-plugin/plugin.json +1 -1
  21. package/adapters/tokenless/qwencode/hooks/run-hook.sh +62 -0
  22. package/adapters/tokenless/qwencode/qwen-extension.json +4 -4
  23. package/adapters/tokenless/qwenpaw/plugin.json +17 -0
  24. package/adapters/tokenless/qwenpaw/plugin.py +390 -0
  25. package/adapters/tokenless/qwenpaw/requirements.txt +6 -0
  26. package/adapters/tokenless/qwenpaw/scripts/detect.sh +131 -0
  27. package/adapters/tokenless/qwenpaw/scripts/install.sh +98 -0
  28. package/adapters/tokenless/qwenpaw/scripts/uninstall.sh +61 -0
  29. package/package.json +5 -5
  30. package/adapters/tokenless/common/hooks/compress_toon_hook.py +0 -174
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "component": "tokenless",
3
- "version": "0.7.14",
3
+ "version": "0.8.0",
4
4
  "targets": {
5
5
  "cosh": {
6
6
  "compatibleVersions": "*",
@@ -141,6 +141,22 @@
141
141
  "install": "qwencode/scripts/install.sh",
142
142
  "uninstall": "qwencode/scripts/uninstall.sh"
143
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
+ }
144
160
  }
145
161
  }
146
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;