@sleep2agi/agent-network 2.3.0-preview.23 → 2.3.0-preview.24
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.
- package/README.md +9 -80
- package/dist/bin/cli.js +1 -1
- package/dist/src/client.js +1 -1
- package/dist/src/im/feishu/worker.js +1 -1
- package/dist/src/node-server.js +1 -1
- package/dist/src/normalize-runtime.d.ts +9 -1
- package/package.json +3 -7
- package/dist/src/grok-attach-client.d.ts +0 -115
- package/dist/src/grok-copresence-profile.d.ts +0 -44
package/README.md
CHANGED
|
@@ -49,17 +49,14 @@ npm install -g @sleep2agi/agent-network@preview
|
|
|
49
49
|
anet -v
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
version table embedded in this source tree:
|
|
52
|
+
Current npm dist-tags verified on 2026-05-28 (v0.10.11 stable):
|
|
54
53
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
The Grok co-presence text below describes candidate source only until a
|
|
62
|
-
reviewed package is explicitly published to `preview`.
|
|
54
|
+
| Package | latest | preview |
|
|
55
|
+
|---|---:|---:|
|
|
56
|
+
| `@sleep2agi/agent-network` | `2.2.10` | `2.2.10-preview.3` |
|
|
57
|
+
| `@sleep2agi/commhub-server` | `0.8.4` | `0.8.4-preview.1` |
|
|
58
|
+
| `@sleep2agi/agent-network-dashboard` | `0.5.6` | `0.5.7-preview.2` |
|
|
59
|
+
| `@sleep2agi/agent-node` | `2.4.7` | `2.4.8-preview.0` |
|
|
63
60
|
|
|
64
61
|
## 5-Minute Quick Start
|
|
65
62
|
|
|
@@ -101,8 +98,8 @@ anet node start my-bot
|
|
|
101
98
|
|
|
102
99
|
`anet node create` walks you through:
|
|
103
100
|
|
|
104
|
-
1. Runtime: `claude-code-cli`, `claude-agent-sdk`, `codex-sdk`,
|
|
105
|
-
2. Provider preset: Anthropic, MiniMax, InternLM, Xiaomi MiMo, or `custom` (any Anthropic-compatible endpoint — used for DeepSeek / GLM / Kimi / OpenRouter etc.; codex-sdk for OpenAI Codex;
|
|
101
|
+
1. Runtime: `claude-code-cli`, `claude-agent-sdk`, `codex-sdk`, or `grok-build-acp`.
|
|
102
|
+
2. Provider preset: Anthropic, MiniMax, InternLM, Xiaomi MiMo, or `custom` (any Anthropic-compatible endpoint — used for DeepSeek / GLM / Kimi / OpenRouter etc.; codex-sdk for OpenAI Codex; grok-build-acp for xAI Grok).
|
|
106
103
|
3. API key and model settings.
|
|
107
104
|
|
|
108
105
|
When the node starts successfully, look for:
|
|
@@ -158,7 +155,6 @@ Do not expose the hub directly to the public internet without a reverse proxy, H
|
|
|
158
155
|
| `claude-agent-sdk` | You want Anthropic-compatible API providers | Good default for provider presets |
|
|
159
156
|
| `codex-sdk` | You want Codex-backed nodes | Useful as a backup runtime when Claude quota is constrained |
|
|
160
157
|
| `grok-build-acp` | You want Grok Build through `grok agent stdio` | Requires Grok Build CLI auth; stable for receive/reply, session persistence, and explicit `send_task` delegation |
|
|
161
|
-
| `grok-build-cli` | You want one human-visible, text-only Grok TUI shared with trusted network tasks | **Experimental preview only.** Fixed `[todo_write]` tool profile; Linux and an exact Grok CLI build are required; approval ownership is not fully hardened |
|
|
162
158
|
|
|
163
159
|
### Grok Build ACP
|
|
164
160
|
|
|
@@ -200,68 +196,6 @@ Current boundary:
|
|
|
200
196
|
|
|
201
197
|
Details: `docs/grok-build-runtime.md`.
|
|
202
198
|
|
|
203
|
-
### Grok Co-Presence TUI — Experimental Preview
|
|
204
|
-
|
|
205
|
-
> **Dangerous experimental feature:** network tasks drive the same Grok TUI and share its conversation context. Approval ownership is not fully hardened. Use only with trusted tasks on a trusted network. This runtime is not supported for production and is not part of the `latest` release channel.
|
|
206
|
-
|
|
207
|
-
The co-presence candidate is currently pinned to Linux with procfs mounted at `/proc` (including `/proc/self/fd`) and the exact Grok CLI build reported as `grok 0.2.93 (f00f96316d)` (the stable installer may append ` [stable]`). Install that build and log in as the same operating-system user that will run `anet`:
|
|
208
|
-
|
|
209
|
-
```bash
|
|
210
|
-
grok login
|
|
211
|
-
grok --version
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
Create the shared-TUI node and start its bridge in the first terminal:
|
|
215
|
-
|
|
216
|
-
```bash
|
|
217
|
-
anet node create grok-shared --runtime grok-build-cli
|
|
218
|
-
anet node start grok-shared
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
Attach an interactive terminal to the same TUI from a second terminal on the same machine and user account:
|
|
222
|
-
|
|
223
|
-
```bash
|
|
224
|
-
anet grok attach grok-shared
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
Press `Ctrl-]` to detach. While attached, a CommHub task sent to `grok-shared` is submitted to this same TUI, rendered in the visible session, and its completed answer is routed back to the originating task. This shared-session behavior is the reason untrusted tasks must not be connected.
|
|
228
|
-
|
|
229
|
-
This preview selects a runtime-owned TUI agent profile whose exact model-tool
|
|
230
|
-
inventory is `[todo_write]`. Filesystem, shell, network, media, MCP, scheduler,
|
|
231
|
-
and subagent tools are unavailable; custom `tools`/`maxTurns` are unsupported
|
|
232
|
-
in co-presence. It is a text-only co-presence preview, not a coding profile.
|
|
233
|
-
|
|
234
|
-
The pinned 0.2.93 TUI resolves its session-local `todo_write` helper without
|
|
235
|
-
human input. During an active network turn the preview admits only that exact
|
|
236
|
-
no-request-ID lifecycle with `decision=allow`, at most once per turn; every other tool, identity,
|
|
237
|
-
decision, overlap, mode transition, or unresolved completion remains closed.
|
|
238
|
-
This deliberately narrow preview exception is not production approval-owner
|
|
239
|
-
enforcement and is another reason to connect trusted tasks only.
|
|
240
|
-
|
|
241
|
-
`anet node start` capability-checks a compatible global `agent-node` if one exists. It requires the machine-readable `ANET_CAPABILITY_GROK_COPRESENCE_V2` marker, so an older headless-only or V1 co-presence binary cannot shadow the fixed-profile preview. A global install is not required: when it is absent or incompatible, `anet` uses `npx -y @sleep2agi/agent-node@preview` to fetch and resolve the preview package, verifies its metadata/capability, then launches the resolved `agent-node` entrypoint directly. Direct launch lets `anet node stop` signal the real runtime instead of an installer wrapper. The fallback therefore needs npm registry access or an already populated npm cache on first start.
|
|
242
|
-
|
|
243
|
-
The preview E2E covers the CommHub inbox path. `grok-build-cli` currently
|
|
244
|
-
refuses Feishu channels because that forked worker does not yet share the
|
|
245
|
-
credential-isolated log boundary; run Feishu on a separate non-Grok node.
|
|
246
|
-
|
|
247
|
-
For the older process-per-turn Grok CLI lane, opt out of co-presence explicitly:
|
|
248
|
-
|
|
249
|
-
```bash
|
|
250
|
-
anet node create grok-turn --runtime grok-build-cli --grok-headless
|
|
251
|
-
anet node start grok-turn
|
|
252
|
-
```
|
|
253
|
-
|
|
254
|
-
`anet grok attach` intentionally refuses a headless node. The separate ACP runtime remains available as:
|
|
255
|
-
|
|
256
|
-
```bash
|
|
257
|
-
anet node create grok-acp --runtime grok-build-acp
|
|
258
|
-
anet node start grok-acp
|
|
259
|
-
```
|
|
260
|
-
|
|
261
|
-
`grok-build-acp` uses `grok agent stdio`; it is not the same execution path as `grok-build-cli --grok-headless`.
|
|
262
|
-
|
|
263
|
-
This preview does **not** claim completion of the formal native Leader/Policy Gateway runtime. Its Phase 0 protocol freeze, Phase 1A implementation gate, production-grade approval ownership, and `latest` release gate remain locked. See the [Grok co-presence preview guide](../docs/grok-build-cli-preview.md) for the exact boundary.
|
|
264
|
-
|
|
265
199
|
## Provider Presets
|
|
266
200
|
|
|
267
201
|
`anet node create` writes the correct provider environment into `.anet/nodes/<name>/config.json`.
|
|
@@ -302,11 +236,6 @@ anet node ls
|
|
|
302
236
|
anet info <name>
|
|
303
237
|
anet logs <name>
|
|
304
238
|
|
|
305
|
-
# Grok co-presence (experimental preview; trusted tasks only)
|
|
306
|
-
anet node create grok-shared --runtime grok-build-cli
|
|
307
|
-
anet node start grok-shared
|
|
308
|
-
anet grok attach grok-shared
|
|
309
|
-
|
|
310
239
|
# Network status and repair
|
|
311
240
|
anet status
|
|
312
241
|
anet tasks [status]
|