grix-connector 4.7.2 → 4.9.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.
Files changed (40) hide show
  1. package/README.md +23 -2
  2. package/dist/adapter/claude/claude-adapter.js +19 -19
  3. package/dist/adapter/claude/claude-bridge-server.js +1 -1
  4. package/dist/adapter/claude/claude-tools.js +1 -1
  5. package/dist/adapter/claude/claude-worker-client.js +1 -1
  6. package/dist/adapter/claude/mcp-http-launcher.js +2 -2
  7. package/dist/adapter/claude/result-timeout.js +1 -1
  8. package/dist/adapter/claude/usage-parser.js +7 -7
  9. package/dist/assets/dsh-bridge/grix-dsh-bridge-4.9.1.tgz +0 -0
  10. package/dist/assets/dsh-bridge/manifest.json +6 -6
  11. package/dist/bridge/bridge.js +5 -5
  12. package/dist/bridge/remote-admin.js +1 -0
  13. package/dist/bridge/send-controller.js +3 -3
  14. package/dist/bridge/session-usage.js +1 -1
  15. package/dist/core/access/allowlist-store.js +1 -1
  16. package/dist/core/admin/admin-server.js +1 -1
  17. package/dist/core/aibot/client.js +1 -1
  18. package/dist/core/config/remote-admin-settings.js +1 -0
  19. package/dist/core/file-ops/list-files.js +1 -1
  20. package/dist/core/installer/installer.js +10 -10
  21. package/dist/core/installer/progress-view.js +1 -0
  22. package/dist/core/mcp/internal-api-server.js +1 -1
  23. package/dist/core/mcp/tools.js +1 -1
  24. package/dist/core/probe/installed-clients.js +1 -0
  25. package/dist/core/protocol/inbound-attachments.js +1 -0
  26. package/dist/core/protocol/index.js +1 -1
  27. package/dist/default-skills/grix-agent-dispatch/SKILL.md +1 -1
  28. package/dist/grix.js +8 -8
  29. package/dist/log.js +2 -2
  30. package/dist/manager.js +1 -1
  31. package/dist/mcp/stdio/server.js +9 -8
  32. package/dist/mcp/stream-http/config.js +1 -1
  33. package/dist/mcp/stream-http/connection-binding.js +1 -1
  34. package/dist/mcp/stream-http/tool-executor.js +1 -1
  35. package/dist/mcp/stream-http/tool-registry.js +1 -1
  36. package/dist/mcp/stream-http/tool-schemas.js +1 -1
  37. package/openclaw-plugin/index.js +4 -2
  38. package/openclaw-plugin/skills/grix-agent-dispatch/SKILL.md +1 -1
  39. package/package.json +1 -1
  40. package/dist/assets/dsh-bridge/grix-dsh-bridge-4.7.2.tgz +0 -0
package/README.md CHANGED
@@ -33,8 +33,27 @@ Set `client_type` in your config to one of the values below. Each `client_type`
33
33
  | `openhuman` | OpenHuman | openhuman | `openhuman-core` |
34
34
  | `agy` | Agy (Antigravity) | agy | `agy` |
35
35
  | `hermes` | [Hermes](https://github.com/askie/grix-hermes-python) | external | `hermes` |
36
+ | `acp` | Any Agent Client Protocol CLI | acp | your own (`command`) |
36
37
 
37
- The ACP adapter (Agent Client Protocol over JSON-RPC) backs Gemini, Qwen, Copilot, Kiro and Reasonix. Hermes is an external agent maintained in a separate project — see [grix-hermes-python](https://github.com/askie/grix-hermes-python) for setup.
38
+ The ACP adapter (Agent Client Protocol over JSON-RPC) backs Gemini, Qwen, Copilot, Kiro, Kimi and Reasonix. Hermes is an external agent maintained in a separate project — see [grix-hermes-python](https://github.com/askie/grix-hermes-python) for setup.
39
+
40
+ `client_type: "acp"` is the generic entry: if your CLI speaks the Agent Client Protocol over stdio JSON-RPC, connect it with configuration only — no code change, no new release. Give it the executable in `command`, and put the CLI's own ACP subcommand or flag in `args` (nothing is injected for you):
41
+
42
+ ```json
43
+ {
44
+ "name": "my-acp-agent",
45
+ "ws_url": "wss://ws.grix.im/v1/agent-api/ws",
46
+ "agent_id": "your-agent-id",
47
+ "api_key": "your-grix-api-key",
48
+ "client_type": "acp",
49
+ "command": "my-cli",
50
+ "args": ["acp"]
51
+ }
52
+ ```
53
+
54
+ The generic entry ships the shared ACP surface (session binding, permission prompts, model/mode switching, file browsing). Per-agent extras — an installation guide, a dedicated toolbar, session usage parsing — still require a registered `client_type`.
55
+
56
+ Two limits of the generic entry are deliberate and will not be changed. Skill discovery for `client_type: "acp"` falls back to the Gemini layout, so it reads `~/.gemini/skills` and shares that directory with a real Gemini agent on the same machine. `get_session_usage` is not declared for it, because there is no parser for an unknown CLI's usage output. A CLI that needs its own skill directory or usage parsing must be registered as its own `client_type`.
38
57
 
39
58
  For DeepSeek Harness, install the official CLI and complete its login/profile setup before starting the connector:
40
59
 
@@ -242,8 +261,10 @@ Each agent entry uses one flat structure:
242
261
  | `pool.maxSize` | no | Max adapter pool size (default 20) |
243
262
  | `pool.idleTimeoutMs` | no | Idle adapter eviction timeout (default 300000 = 5 min) |
244
263
  | `codex_config_overrides` | no | Codex-only app-server config overrides. The connector serializes this JSON object into validated `-c` flags. |
264
+ | `command` | `acp` only | Executable to spawn for `client_type: "acp"`. Required for that type, ignored by every other type (their command is built in). |
265
+ | `args` | no | Extra CLI arguments appended to the adapter's built-in ones. For `client_type: "acp"` these are the only arguments passed. |
245
266
 
246
- Adapter command/args/options are built in and resolved from `client_type`. To connect a different agent, simply change `client_type` — no other config changes needed.
267
+ Adapter command/args/options are built in and resolved from `client_type`. To connect a different agent, simply change `client_type` — no other config changes needed. The one exception is `client_type: "acp"`, where the command comes from your config.
247
268
 
248
269
  For Codex context trimming, disable plugin suggestions without changing the user's own Codex CLI profile:
249
270