@unlinearity/cli-wechat-bridge 1.1.4 → 1.1.6

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 (42) hide show
  1. package/README.md +153 -131
  2. package/bin/_run-entry.mjs +20 -17
  3. package/dist/bridge/bridge-adapters.claude.js +429 -11
  4. package/dist/bridge/bridge-adapters.codex.js +441 -22
  5. package/dist/bridge/bridge-adapters.core.js +2 -1
  6. package/dist/bridge/bridge-adapters.opencode.js +392 -53
  7. package/dist/bridge/bridge-adapters.pi.js +33 -7
  8. package/dist/bridge/bridge-adapters.shared.js +2 -1
  9. package/dist/bridge/bridge-controller.js +3 -0
  10. package/dist/bridge/bridge-final-reply.js +2 -65
  11. package/dist/bridge/bridge-session-resume.js +151 -0
  12. package/dist/bridge/bridge-state.js +1 -1
  13. package/dist/bridge/bridge-utils.js +30 -101
  14. package/dist/bridge/claude-hooks.js +1 -0
  15. package/dist/bridge/wechat-bridge.js +256 -211
  16. package/dist/bridge/wechat-forwarding.js +2 -58
  17. package/dist/bridge/wechat-outbound-queue.js +2 -0
  18. package/dist/channels/wechat/bridge-final-reply.js +65 -0
  19. package/dist/channels/wechat/channel-message.js +24 -0
  20. package/dist/channels/wechat/index.js +5 -0
  21. package/dist/channels/wechat/wechat-channel-port.js +67 -0
  22. package/dist/channels/wechat/wechat-forwarding.js +79 -0
  23. package/dist/channels/wechat/wechat-outbound-queue.js +72 -0
  24. package/dist/companion/codex-remote-client.js +291 -32
  25. package/dist/companion/codex-visible-client-link.js +122 -0
  26. package/dist/companion/local-companion-link.js +26 -0
  27. package/dist/companion/local-companion-start.js +0 -1
  28. package/dist/companion/opencode-tui-bridge-plugin.js +73 -0
  29. package/dist/companion/pi-tui-bridge-extension.js +42 -3
  30. package/dist/core/bridge-control.js +32 -0
  31. package/dist/core/bridge-event-forwarder.js +50 -0
  32. package/dist/core/bridge-message-router.js +32 -0
  33. package/dist/core/channel-types.js +1 -0
  34. package/dist/core/text-utils.js +63 -0
  35. package/dist/daemon/wechat-daemon.js +242 -159
  36. package/dist/i18n/messages-en.js +2 -2
  37. package/dist/i18n/messages-zh.js +2 -2
  38. package/package.json +2 -6
  39. package/bin/wechat-claude-start.mjs +0 -10
  40. package/bin/wechat-codex-start.mjs +0 -10
  41. package/bin/wechat-opencode-start.mjs +0 -10
  42. package/bin/wechat-pi-start.mjs +0 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unlinearity/cli-wechat-bridge",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "CLI WeChat Bridge for Codex, Claude Code, OpenCode, and Pi over WeChat",
5
5
  "type": "module",
6
6
  "files": [
@@ -35,13 +35,9 @@
35
35
  },
36
36
  "bin": {
37
37
  "wechat-codex": "bin/wechat-codex.mjs",
38
- "wechat-codex-start": "bin/wechat-codex-start.mjs",
39
38
  "wechat-claude": "bin/wechat-claude.mjs",
40
- "wechat-claude-start": "bin/wechat-claude-start.mjs",
41
39
  "wechat-opencode": "bin/wechat-opencode.mjs",
42
- "wechat-opencode-start": "bin/wechat-opencode-start.mjs",
43
40
  "wechat-pi": "bin/wechat-pi.mjs",
44
- "wechat-pi-start": "bin/wechat-pi-start.mjs",
45
41
  "wechat-daemon": "bin/wechat-daemon.mjs",
46
42
  "wechat-setup": "bin/wechat-setup.mjs",
47
43
  "wechat-check-update": "bin/wechat-check-update.mjs"
@@ -65,7 +61,7 @@
65
61
  },
66
62
  "engines": {
67
63
  "bun": ">=1.0.0",
68
- "node": ">=24.0.0"
64
+ "node": ">=22.13.0"
69
65
  },
70
66
  "scripts": {
71
67
  "postinstall": "node scripts/ensure-node-pty-permissions.mjs"
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import { runDeprecatedJsEntry } from "./_run-entry.mjs";
4
-
5
- runDeprecatedJsEntry(
6
- "wechat-claude-start",
7
- "wechat-claude",
8
- "dist/companion/local-companion-start.js",
9
- ["--adapter", "claude"],
10
- );
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import { runDeprecatedJsEntry } from "./_run-entry.mjs";
4
-
5
- runDeprecatedJsEntry(
6
- "wechat-codex-start",
7
- "wechat-codex",
8
- "dist/companion/local-companion-start.js",
9
- ["--adapter", "codex"],
10
- );
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import { runDeprecatedJsEntry } from "./_run-entry.mjs";
4
-
5
- runDeprecatedJsEntry(
6
- "wechat-opencode-start",
7
- "wechat-opencode",
8
- "dist/companion/local-companion-start.js",
9
- ["--adapter", "opencode"],
10
- );
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import { runDeprecatedJsEntry } from "./_run-entry.mjs";
4
-
5
- runDeprecatedJsEntry(
6
- "wechat-pi-start",
7
- "wechat-pi",
8
- "dist/companion/local-companion-start.js",
9
- ["--adapter", "pi"],
10
- );