@sleep2agi/agent-network 2.3.0-preview.27 → 2.3.0-preview.270

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 (206) hide show
  1. package/README.md +35 -434
  2. package/build-info.json +7 -0
  3. package/dist/bin/anet.cjs +104 -0
  4. package/dist/bin/cli.d.ts +1 -1
  5. package/dist/bin/cli.js +20 -1
  6. package/dist/src/active-network-task.d.ts +28 -0
  7. package/dist/src/batch-workdir.d.ts +9 -0
  8. package/dist/src/bootstrap-password-db.d.ts +13 -0
  9. package/dist/src/build-info.d.ts +26 -0
  10. package/dist/src/channel-attachments.d.ts +29 -0
  11. package/dist/src/channel-inbox-wake.d.ts +21 -0
  12. package/dist/src/channel-meta.d.ts +10 -0
  13. package/dist/src/channel-peer-reply.d.ts +41 -0
  14. package/dist/src/channel-task-trace.d.ts +14 -0
  15. package/dist/src/claude-vendor-env.d.ts +28 -0
  16. package/dist/src/cli-args.d.ts +8 -0
  17. package/dist/src/cli-auth-session.d.ts +47 -0
  18. package/dist/src/cli-errors.d.ts +41 -0
  19. package/dist/src/cli-exit.d.ts +11 -0
  20. package/dist/src/cli-help.d.ts +10 -0
  21. package/dist/src/cli-version-display.d.ts +16 -0
  22. package/dist/src/client-task-trace.d.ts +9 -0
  23. package/dist/src/client.js +1 -1
  24. package/dist/src/codex-adopt.d.ts +46 -0
  25. package/dist/src/codex-auth-fingerprint.d.ts +211 -0
  26. package/dist/src/codex-bin-pin.d.ts +23 -0
  27. package/dist/src/codex-commhub-mcp.d.ts +22 -0
  28. package/dist/src/codex-copresence-bridge-log.d.ts +44 -0
  29. package/dist/src/codex-copresence-env.d.ts +5 -0
  30. package/dist/src/codex-copresence-login-gate.d.ts +18 -0
  31. package/dist/src/codex-copresence-model.d.ts +23 -0
  32. package/dist/src/codex-copresence-preflight.d.ts +78 -0
  33. package/dist/src/codex-copresence-profile.d.ts +126 -0
  34. package/dist/src/codex-copresence-recovery.d.ts +70 -0
  35. package/dist/src/codex-copresence-resume-timeout.d.ts +28 -0
  36. package/dist/src/codex-copresence-rollout-guard.d.ts +36 -0
  37. package/dist/src/codex-copresence-rpc.d.ts +17 -0
  38. package/dist/src/codex-copresence-thread.d.ts +13 -0
  39. package/dist/src/codex-copresence-yolo.d.ts +16 -0
  40. package/dist/src/codex-external-appserver.d.ts +130 -0
  41. package/dist/src/codex-fork-recovery.d.ts +52 -0
  42. package/dist/src/codex-home-enforce.d.ts +88 -0
  43. package/dist/src/codex-lifecycle-account.d.ts +104 -0
  44. package/dist/src/codex-lifecycle-canary.d.ts +20 -0
  45. package/dist/src/codex-lifecycle-facts.d.ts +53 -0
  46. package/dist/src/codex-lifecycle-fork.d.ts +91 -0
  47. package/dist/src/codex-lifecycle-preflight.d.ts +79 -0
  48. package/dist/src/codex-lifecycle-receipt.d.ts +53 -0
  49. package/dist/src/codex-lifecycle-restart.d.ts +88 -0
  50. package/dist/src/codex-login-share-guard.d.ts +146 -0
  51. package/dist/src/codex-menu.d.ts +99 -0
  52. package/dist/src/codex-model-default.d.ts +6 -0
  53. package/dist/src/codex-node-login.d.ts +98 -0
  54. package/dist/src/codex-pending-thread-restart.d.ts +69 -0
  55. package/dist/src/codex-reasoning-effort.d.ts +17 -0
  56. package/dist/src/codex-recovery-lease.d.ts +39 -0
  57. package/dist/src/codex-recovery-resource-gate.d.ts +15 -0
  58. package/dist/src/codex-resume.d.ts +89 -0
  59. package/dist/src/codex-rollout-history-guard.d.ts +84 -0
  60. package/dist/src/codex-tui-client-health.d.ts +30 -0
  61. package/dist/src/commhub-response.d.ts +1 -0
  62. package/dist/src/controlled-upload.d.ts +83 -0
  63. package/dist/src/copresence-deps.d.ts +22 -0
  64. package/dist/src/copresence-identity.d.ts +363 -0
  65. package/dist/src/copresence-startup-diagnosis.d.ts +17 -0
  66. package/dist/src/daemon-adopt.d.ts +14 -0
  67. package/dist/src/daemon-anet-bin.d.ts +32 -0
  68. package/dist/src/daemon-capability-display.d.ts +110 -0
  69. package/dist/src/daemon-capability-display.js +21 -0
  70. package/dist/src/daemon-codex-inventory.d.ts +65 -0
  71. package/dist/src/daemon-inherited-env.d.ts +9 -0
  72. package/dist/src/daemon-provider-account-custody.d.ts +28 -0
  73. package/dist/src/daemon-provider-account-readback.d.ts +3 -0
  74. package/dist/src/daemon-provider-application.d.ts +36 -0
  75. package/dist/src/daemon-provider-apply-command.d.ts +9 -0
  76. package/dist/src/daemon-provider-collect.d.ts +29 -0
  77. package/dist/src/daemon-provider-command.d.ts +7 -0
  78. package/dist/src/daemon-provider-initialize.d.ts +27 -0
  79. package/dist/src/daemon-provider-lifecycle.d.ts +4 -0
  80. package/dist/src/daemon-provider-store.d.ts +104 -0
  81. package/dist/src/daemon-runtime-path-preflight.d.ts +22 -0
  82. package/dist/src/daemon-runtime-staleness.d.ts +13 -0
  83. package/dist/src/dashboard-managed-process.d.ts +35 -0
  84. package/dist/src/display-width.d.ts +27 -0
  85. package/dist/src/doctor-node-count.d.ts +28 -0
  86. package/dist/src/grok-attach-client.d.ts +15 -1
  87. package/dist/src/grok-build-drift.d.ts +15 -0
  88. package/dist/src/grok-copresence-disclosure.d.ts +11 -0
  89. package/dist/src/grok-copresence-orchestration.d.ts +75 -0
  90. package/dist/src/grok-copresence-profile.d.ts +22 -1
  91. package/dist/src/grok-create-mode.d.ts +19 -0
  92. package/dist/src/host-telemetry.d.ts +14 -0
  93. package/dist/src/hub-health-timeout.d.ts +4 -0
  94. package/dist/src/hub-server-version.d.ts +64 -0
  95. package/dist/src/hub-stop.d.ts +74 -0
  96. package/dist/src/hub-time-display.d.ts +20 -0
  97. package/dist/src/hub-version-skew.d.ts +19 -0
  98. package/dist/src/im/correlation-store.d.ts +34 -0
  99. package/dist/src/im/feishu/adapter.d.ts +47 -0
  100. package/dist/src/im/feishu/bridge.d.ts +72 -14
  101. package/dist/src/im/feishu/chat-context.d.ts +44 -0
  102. package/dist/src/im/feishu/config.d.ts +15 -1
  103. package/dist/src/im/feishu/hub-upload.d.ts +1 -1
  104. package/dist/src/im/feishu/queue-notice.d.ts +2 -0
  105. package/dist/src/im/feishu/worker-lifecycle.d.ts +13 -0
  106. package/dist/src/im/feishu/worker.js +171 -154
  107. package/dist/src/inbox-drain.d.ts +20 -0
  108. package/dist/src/local-process-state.d.ts +12 -0
  109. package/dist/src/locale-diagnostic.d.ts +12 -0
  110. package/dist/src/login-client-label.d.ts +6 -0
  111. package/dist/src/ls-columns.d.ts +15 -0
  112. package/dist/src/mock-llm.d.ts +12 -0
  113. package/dist/src/node-activity-log.d.ts +4 -0
  114. package/dist/src/node-clone.d.ts +134 -0
  115. package/dist/src/node-create-network.d.ts +17 -0
  116. package/dist/src/node-delete-hub.d.ts +42 -0
  117. package/dist/src/node-files.d.ts +62 -0
  118. package/dist/src/node-locate.d.ts +60 -0
  119. package/dist/src/node-ls-all.d.ts +80 -0
  120. package/dist/src/node-menu.d.ts +40 -0
  121. package/dist/src/node-not-found.d.ts +1 -0
  122. package/dist/src/node-perm.d.ts +74 -0
  123. package/dist/src/node-remote.d.ts +180 -0
  124. package/dist/src/node-running-guard.d.ts +9 -0
  125. package/dist/src/node-secret-file.d.ts +32 -0
  126. package/dist/src/node-server-identity.d.ts +35 -0
  127. package/dist/src/node-server-payload.d.ts +66 -0
  128. package/dist/src/node-server-rules-file.d.ts +14 -0
  129. package/dist/src/node-server-secrets.d.ts +60 -0
  130. package/dist/src/node-server-version.d.ts +39 -0
  131. package/dist/src/node-server.d.ts +0 -12
  132. package/dist/src/node-server.js +8 -1
  133. package/dist/src/node-skills.d.ts +57 -0
  134. package/dist/src/normalize-runtime.d.ts +29 -2
  135. package/dist/src/offline-age.d.ts +29 -0
  136. package/dist/src/one-line-cell.d.ts +20 -0
  137. package/dist/src/opencode-agent-node-pair.d.ts +41 -3
  138. package/dist/src/opencode-free-tier.d.ts +27 -0
  139. package/dist/src/opencode-generation-create.d.ts +37 -0
  140. package/dist/src/opencode-generation-record.d.ts +24 -0
  141. package/dist/src/opencode-package-binary.d.ts +24 -1
  142. package/dist/src/opencode-pin.d.ts +23 -8
  143. package/dist/src/opencode-preset.d.ts +6 -1
  144. package/dist/src/opencode-runtime-binding.d.ts +30 -0
  145. package/dist/src/opencode-safe-root.d.ts +10 -1
  146. package/dist/src/opencode-shared-server-create.d.ts +5 -0
  147. package/dist/src/opencode-start-mode.d.ts +8 -0
  148. package/dist/src/opencode-v2-configured-model.d.ts +34 -0
  149. package/dist/src/opencode-v2-create-align.d.ts +18 -0
  150. package/dist/src/opencode-versions.d.ts +44 -0
  151. package/dist/src/os-user.d.ts +4 -0
  152. package/dist/src/outbound-attachments.d.ts +60 -0
  153. package/dist/src/outbound-tool-names.d.ts +1 -0
  154. package/dist/src/owned-roots.d.ts +58 -0
  155. package/dist/src/owner-env-file.d.ts +2 -0
  156. package/dist/src/package-mode-preflight.d.ts +41 -0
  157. package/dist/src/posix-codex-copresence.d.ts +33 -0
  158. package/dist/src/posix-modes.d.ts +36 -0
  159. package/dist/src/primary-network.d.ts +23 -0
  160. package/dist/src/private-state.d.ts +18 -0
  161. package/dist/src/process-telemetry.d.ts +12 -0
  162. package/dist/src/profile-merge.d.ts +12 -0
  163. package/dist/src/profile-serialize.d.ts +1 -0
  164. package/dist/src/provider-application-contract.d.ts +11 -0
  165. package/dist/src/provider-apply.d.ts +28 -0
  166. package/dist/src/provider-presets.d.ts +76 -0
  167. package/dist/src/reply-local-links.d.ts +47 -0
  168. package/dist/src/reply-originator.d.ts +20 -0
  169. package/dist/src/resume-runtime-infer.d.ts +18 -0
  170. package/dist/src/rules-file.d.ts +76 -0
  171. package/dist/src/scoped-secrets.d.ts +56 -0
  172. package/dist/src/secret-shell-guidance.d.ts +4 -0
  173. package/dist/src/session-status-class.d.ts +48 -0
  174. package/dist/src/shared/opencode-borrowed-launch-health.d.ts +29 -0
  175. package/dist/src/shared/private-file.d.ts +65 -0
  176. package/dist/src/shared/provider-collection.d.ts +9 -0
  177. package/dist/src/shared/provider-initialization.d.ts +7 -0
  178. package/dist/src/shared/reserved-env.d.ts +3 -0
  179. package/dist/src/shared/scoped-secret-contract.d.ts +1 -0
  180. package/dist/src/shared/scoped-secret-env.d.ts +3 -0
  181. package/dist/src/sibling-agent-node.d.ts +23 -0
  182. package/dist/src/sse-session-match.d.ts +13 -0
  183. package/dist/src/stale-socket.d.ts +118 -0
  184. package/dist/src/standalone-bin.d.ts +101 -0
  185. package/dist/src/standalone-build-stamp.d.ts +33 -0
  186. package/dist/src/start-resource-gate.d.ts +146 -0
  187. package/dist/src/stopped-receipt.d.ts +8 -0
  188. package/dist/src/subcommand-redirect.d.ts +26 -0
  189. package/dist/src/task-trace.d.ts +33 -0
  190. package/dist/src/tmux-attach.d.ts +11 -0
  191. package/dist/src/tmux-capability.d.ts +58 -0
  192. package/dist/src/tmux-exact-target.d.ts +36 -0
  193. package/dist/src/tmux-format.d.ts +20 -0
  194. package/dist/src/tmux-pane-prompt.d.ts +22 -0
  195. package/dist/src/tmux.d.ts +44 -0
  196. package/dist/src/token-cli.d.ts +13 -0
  197. package/dist/src/tool-allowlist.d.ts +28 -0
  198. package/dist/src/unsafe-package-path-reason.d.ts +31 -0
  199. package/dist/src/upgrade-channel.d.ts +31 -0
  200. package/dist/src/win-launcher.d.ts +20 -0
  201. package/dist/src/windows-codex-copresence.d.ts +254 -0
  202. package/dist/src/windows-rename-retry.d.ts +13 -0
  203. package/dist/src/windows-runtime.d.ts +63 -0
  204. package/dist/src/windows-sdk-stop-evidence.d.ts +24 -0
  205. package/package.json +17 -11
  206. package/dist/src/runtime-choices.d.ts +0 -15
@@ -0,0 +1,24 @@
1
+ import { type WindowsManagedIdentity, type WindowsStopOrchestrationDeps, type AsyncWindowsStopDeps } from "./windows-codex-copresence.js";
2
+ export declare function windowsSdkHelperLaunch(): {
3
+ command: string;
4
+ args: string[];
5
+ };
6
+ export declare function windowsSdkEvidenceScript(identities: WindowsManagedIdentity[], capture: boolean, includePrelude?: boolean): string;
7
+ export declare function windowsSdkBatchEvidence(run: (script: string) => string): Pick<WindowsStopOrchestrationDeps, "captureRoots" | "readFinalEvidence">;
8
+ /** Deliberately never return upstream text, paths or environment values. */
9
+ export declare function sdkEvidenceReason(raw: string): string;
10
+ /** A private pipe, not a disk DLL cache. Compile once per stop, reuse for every
11
+ * capture, immediate pre-kill birth check and final query; dispose on all paths.
12
+ * Startup/compilation has its own bound, queries retain their 5s bound. */
13
+ export declare function openWindowsSdkEvidenceSession(options?: {
14
+ onProgress?: (message: string) => void;
15
+ startupTimeoutMs?: number;
16
+ queryTimeoutMs?: number;
17
+ launch?: {
18
+ command: string;
19
+ args: string[];
20
+ };
21
+ }): Promise<{
22
+ deps: AsyncWindowsStopDeps;
23
+ close: () => void;
24
+ }>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network",
3
- "version": "2.3.0-preview.27",
4
- "description": "AI Agent Network CLI — Local-first multi-agent orchestration across Claude, Codex, Grok (ACP plus experimental co-presence TUI), and OpenCode runtimes. Apache 2.0.",
3
+ "version": "2.3.0-preview.270",
4
+ "description": "AI Agent Network CLI — Local-first multi-agent orchestration across 6 runtimes (Claude Code CLI / Claude Agent SDK / Codex SDK / Codex app-server / Grok Build ACP / OpenCode CLI) and 8+ LLM providers. Apache 2.0.",
5
5
  "type": "module",
6
6
  "main": "dist/src/client.js",
7
7
  "types": "dist/client.d.ts",
@@ -9,19 +9,25 @@
9
9
  ".": {
10
10
  "import": "./dist/src/client.js",
11
11
  "types": "./dist/client.d.ts"
12
+ },
13
+ "./daemon-capability-display": {
14
+ "import": "./dist/src/daemon-capability-display.js",
15
+ "types": "./dist/src/daemon-capability-display.d.ts"
12
16
  }
13
17
  },
14
18
  "bin": {
15
- "anet": "dist/bin/cli.js"
19
+ "anet": "dist/bin/anet.cjs"
16
20
  },
17
21
  "files": [
18
- "dist"
22
+ "dist",
23
+ "build-info.json"
19
24
  ],
20
25
  "scripts": {
21
26
  "typecheck": "tsc --noEmit",
22
27
  "test:feishu-bridge": "bun tests/feishu-bridge-ackplaceholder.test.ts",
23
- "build": "bun build src/client.ts --outdir dist/src --target node --minify && bun build bin/cli.ts --outdir dist/bin --target node --minify --external @sleep2agi/commhub-server --external bun:sqlite --external '../../server/*' && bun build src/node-server.ts --outdir dist/src --target node --minify --external @modelcontextprotocol/sdk && bun build src/im/feishu/worker.ts --outdir dist/src/im/feishu --target node --minify --external @larksuiteoapi/node-sdk && tsc --emitDeclarationOnly --declaration --outDir dist && npx javascript-obfuscator dist/bin/cli.js --output dist/bin/cli.js --compact true --string-array true --string-array-encoding base64 && npx javascript-obfuscator dist/src/client.js --output dist/src/client.js --compact true --string-array true && npx javascript-obfuscator dist/src/node-server.js --output dist/src/node-server.js --compact true --string-array true",
24
- "prepublishOnly": "npm run build"
28
+ "build": "bun build src/client.ts --outdir dist/src --target node --minify && bun build src/daemon-capability-display.ts --outdir dist/src --target browser --minify && bun build bin/cli.ts --outdir dist/bin --target node --minify --external @sleep2agi/commhub-server --external bun:sqlite --external '../../server/*' && bun build src/node-server.ts --outdir dist/src --target node --minify && bun build src/im/feishu/worker.ts --outdir dist/src/im/feishu --target node --minify --external @larksuiteoapi/node-sdk && tsc --emitDeclarationOnly --declaration --outDir dist && npx javascript-obfuscator dist/bin/cli.js --output dist/bin/cli.js --compact true --string-array true --string-array-encoding base64 && npx javascript-obfuscator dist/src/client.js --output dist/src/client.js --compact true --string-array true && npx javascript-obfuscator dist/src/node-server.js --output dist/src/node-server.js --compact true --string-array true && node scripts/stamp-node-server-version.mjs && cp bin/anet.cjs dist/bin/anet.cjs",
29
+ "prepublishOnly": "npm run build",
30
+ "prepack": "node scripts/write-build-info.mjs"
25
31
  },
26
32
  "keywords": [
27
33
  "agent",
@@ -36,9 +42,6 @@
36
42
  "grok",
37
43
  "xai",
38
44
  "grok-build-acp",
39
- "grok-build-cli",
40
- "grok-tui",
41
- "copresence",
42
45
  "acp",
43
46
  "minimax",
44
47
  "mimo",
@@ -68,15 +71,18 @@
68
71
  "node": ">=22.13.0"
69
72
  },
70
73
  "dependencies": {
74
+ "smol-toml": "1.9.1",
71
75
  "@inquirer/prompts": "^8.4.3",
72
76
  "@larksuiteoapi/node-sdk": "^1.42.0",
73
77
  "markdown-it": "^14.1.0",
74
- "puppeteer-core": "^24.10.2"
78
+ "puppeteer-core": "^24.10.2",
79
+ "ws": "^8.22.0"
75
80
  },
76
81
  "devDependencies": {
77
- "@modelcontextprotocol/sdk": "^1.12.0",
82
+ "@modelcontextprotocol/sdk": "1.32.0",
78
83
  "@types/markdown-it": "^14.1.2",
79
84
  "@types/node": "^25.0.0",
85
+ "@types/ws": "^8.18.2",
80
86
  "javascript-obfuscator": "^5.4.1",
81
87
  "node-pty": "^1.1.0",
82
88
  "typescript": "^5.0.0"
@@ -1,15 +0,0 @@
1
- import type { RuntimeName } from "./normalize-runtime";
2
- export interface RuntimeChoice {
3
- value: RuntimeName;
4
- name: string;
5
- }
6
- /**
7
- * Single source of truth for every `anet node create` runtime picker.
8
- *
9
- * Keep this exact and ordered: the release gate imports this pure module to
10
- * prove that the rendered seven-way preview picker has neither a missing
11
- * OpenCode entry nor an unreviewed eighth choice.
12
- */
13
- export declare const RUNTIME_CHOICES: readonly RuntimeChoice[];
14
- /** Inquirer mutates choice objects in some prompt paths; return fresh rows. */
15
- export declare function createRuntimeChoices(): RuntimeChoice[];