@sleep2agi/agent-network 2.3.0-preview.21 → 2.3.0-preview.23

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 CHANGED
@@ -49,14 +49,17 @@ npm install -g @sleep2agi/agent-network@preview
49
49
  anet -v
50
50
  ```
51
51
 
52
- Current npm dist-tags verified on 2026-05-28 (v0.10.11 stable):
52
+ Npm dist-tags move independently. Query the registry instead of relying on a
53
+ version table embedded in this source tree:
53
54
 
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` |
55
+ ```bash
56
+ npm view @sleep2agi/agent-network dist-tags --json
57
+ npm view @sleep2agi/agent-node dist-tags --json
58
+ npm view @sleep2agi/commhub-server dist-tags --json
59
+ ```
60
+
61
+ The Grok co-presence text below describes candidate source only until a
62
+ reviewed package is explicitly published to `preview`.
60
63
 
61
64
  ## 5-Minute Quick Start
62
65
 
@@ -98,8 +101,8 @@ anet node start my-bot
98
101
 
99
102
  `anet node create` walks you through:
100
103
 
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).
104
+ 1. Runtime: `claude-code-cli`, `claude-agent-sdk`, `codex-sdk`, `grok-build-acp`, or the experimental preview-only `grok-build-cli` co-presence runtime.
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; Grok runtimes reuse the local Grok CLI login).
103
106
  3. API key and model settings.
104
107
 
105
108
  When the node starts successfully, look for:
@@ -155,6 +158,7 @@ Do not expose the hub directly to the public internet without a reverse proxy, H
155
158
  | `claude-agent-sdk` | You want Anthropic-compatible API providers | Good default for provider presets |
156
159
  | `codex-sdk` | You want Codex-backed nodes | Useful as a backup runtime when Claude quota is constrained |
157
160
  | `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 |
158
162
 
159
163
  ### Grok Build ACP
160
164
 
@@ -196,6 +200,68 @@ Current boundary:
196
200
 
197
201
  Details: `docs/grok-build-runtime.md`.
198
202
 
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
+
199
265
  ## Provider Presets
200
266
 
201
267
  `anet node create` writes the correct provider environment into `.anet/nodes/<name>/config.json`.
@@ -236,6 +302,11 @@ anet node ls
236
302
  anet info <name>
237
303
  anet logs <name>
238
304
 
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
+
239
310
  # Network status and repair
240
311
  anet status
241
312
  anet tasks [status]