shennian 0.5.0 → 0.5.2

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 (342) hide show
  1. package/README.md +2 -2
  2. package/dist/publish-build-manifest.json +165 -125
  3. package/dist/src/agents/acp/adapter.js +2 -2
  4. package/dist/src/agents/acp/capability-cache.js +2 -2
  5. package/dist/src/agents/acp/catalog.js +2 -2
  6. package/dist/src/agents/acp/manifests.js +2 -2
  7. package/dist/src/agents/claude.js +8 -6
  8. package/dist/src/agents/codex.js +2 -2
  9. package/dist/src/agents/command-spec.js +4 -4
  10. package/dist/src/agents/cursor.js +1 -1
  11. package/dist/src/agents/custom-recovery-conformance.js +2 -2
  12. package/dist/src/agents/gemini.js +1 -1
  13. package/dist/src/agents/model-registry/discovery.js +3 -3
  14. package/dist/src/agents/model-registry/service.js +1 -1
  15. package/dist/src/agents/model-registry.js +1 -1
  16. package/dist/src/agents/openclaw.js +2 -2
  17. package/dist/src/agents/opencode.js +1 -1
  18. package/dist/src/agents/pi-coding-agent.js +3 -4
  19. package/dist/src/agents/pi-session-ownership.js +2 -2
  20. package/dist/src/agents/spawn-errors.js +1 -0
  21. package/dist/src/agents/windows-agent-paths.js +1 -0
  22. package/dist/src/commands/agent-readiness.js +2 -2
  23. package/dist/src/commands/daemon-service-spec.js +1 -1
  24. package/dist/src/commands/daemon.js +6 -6
  25. package/dist/src/commands/queue.js +1 -0
  26. package/dist/src/commands/room.js +3 -3
  27. package/dist/src/config/index.js +2 -2
  28. package/dist/src/fs/atomic-rename.js +1 -0
  29. package/dist/src/index.js +3 -3
  30. package/dist/src/native-fusion/claude-entry-parser.js +7 -0
  31. package/dist/src/native-fusion/local-repository.js +2 -2
  32. package/dist/src/native-fusion/native-source-deletions.js +2 -2
  33. package/dist/src/native-fusion/parsers.js +1 -3
  34. package/dist/src/native-fusion/state.js +2 -2
  35. package/dist/src/personal-sync/epoch.js +2 -2
  36. package/dist/src/personal-sync/identity.js +2 -2
  37. package/dist/src/relay/client.js +1 -1
  38. package/dist/src/room/activation-service.js +6 -6
  39. package/dist/src/room/attachment-cache.js +2 -2
  40. package/dist/src/room/host-session-observations.js +2 -2
  41. package/dist/src/room/managed-context.js +1 -1
  42. package/dist/src/room/managed-room-ipc.js +2 -2
  43. package/dist/src/room/mirror-sync-service.js +1 -1
  44. package/dist/src/room/public-attachment-cache.js +2 -2
  45. package/dist/src/room/room-error-guidance.js +1 -0
  46. package/dist/src/room/session-registry.js +2 -2
  47. package/dist/src/security/managed-agent-policy.js +1 -1
  48. package/dist/src/security/managed-agent-runtime.js +1 -1
  49. package/dist/src/session/attachment-transfer-store.js +2 -2
  50. package/dist/src/session/canonical-store.js +5 -5
  51. package/dist/src/session/deletion-sync-state.js +2 -2
  52. package/dist/src/session/handlers/agent-workspace-validation.js +1 -1
  53. package/dist/src/session/handlers/chat-adapter-config.js +1 -1
  54. package/dist/src/session/handlers/chat-events.js +2 -2
  55. package/dist/src/session/handlers/chat-recovery.js +1 -1
  56. package/dist/src/session/handlers/chat.js +1 -1
  57. package/dist/src/session/manager.js +1 -1
  58. package/dist/src/session/native-cleanup-outbox.js +2 -2
  59. package/dist/src/session/queue-diagnostics.js +1 -0
  60. package/dist/src/session/queue-dispatch-failure.js +1 -0
  61. package/dist/src/session/queue-helpers.js +5 -5
  62. package/dist/src/session/queue-retry.js +1 -1
  63. package/dist/src/session/queue-storage.js +2 -2
  64. package/dist/src/session/queue.js +1 -1
  65. package/dist/src/session/room-reply-notice.js +1 -0
  66. package/dist/src/session/run-recovery/journal.js +2 -2
  67. package/dist/src/session/run-stall.js +1 -0
  68. package/dist/src/session/store.js +2 -2
  69. package/dist/src/session/tool-detail-store.js +2 -2
  70. package/node_modules/@shennian/wire/dist/agent-capabilities.js +1 -1
  71. package/node_modules/@shennian/wire/dist/agent-workspace.js +1 -144
  72. package/node_modules/@shennian/wire/dist/envelope.js +1 -1
  73. package/node_modules/@shennian/wire/dist/events.js +1 -1
  74. package/node_modules/@shennian/wire/dist/external-message-format.js +3 -70
  75. package/node_modules/@shennian/wire/dist/frames.js +1 -1
  76. package/node_modules/@shennian/wire/dist/fs.js +2 -7
  77. package/node_modules/@shennian/wire/dist/index.js +1 -21
  78. package/node_modules/@shennian/wire/dist/machine.js +1 -1
  79. package/node_modules/@shennian/wire/dist/message-payload.js +8 -307
  80. package/node_modules/@shennian/wire/dist/methods.js +1 -3
  81. package/node_modules/@shennian/wire/dist/native-session.js +1 -1
  82. package/node_modules/@shennian/wire/dist/project-fs.js +1 -462
  83. package/node_modules/@shennian/wire/dist/project-path.js +1 -25
  84. package/node_modules/@shennian/wire/dist/project.js +1 -3
  85. package/node_modules/@shennian/wire/dist/relay-connectivity.js +1 -29
  86. package/node_modules/@shennian/wire/dist/room.js +1 -20
  87. package/node_modules/@shennian/wire/dist/schedule.js +1 -1
  88. package/node_modules/@shennian/wire/dist/session-sync.js +1 -123
  89. package/node_modules/@shennian/wire/dist/session.js +1 -60
  90. package/node_modules/@shennian/wire/dist/tool-detail.js +1 -9
  91. package/node_modules/@shennian/wire/dist/voice-chief.js +1 -3
  92. package/package.json +3 -8
  93. package/dist/bin/shennian.d.ts +0 -2
  94. package/dist/src/agent-env.d.ts +0 -44
  95. package/dist/src/agents/acp/adapter.d.ts +0 -82
  96. package/dist/src/agents/acp/auth-state.d.ts +0 -3
  97. package/dist/src/agents/acp/auth.d.ts +0 -7
  98. package/dist/src/agents/acp/capability-cache.d.ts +0 -14
  99. package/dist/src/agents/acp/catalog.d.ts +0 -11
  100. package/dist/src/agents/acp/client-services.d.ts +0 -37
  101. package/dist/src/agents/acp/discovery.d.ts +0 -10
  102. package/dist/src/agents/acp/events.d.ts +0 -4
  103. package/dist/src/agents/acp/manifests.d.ts +0 -63
  104. package/dist/src/agents/acp/metrics.d.ts +0 -24
  105. package/dist/src/agents/acp/package-commands.d.ts +0 -4
  106. package/dist/src/agents/acp/process-client.d.ts +0 -41
  107. package/dist/src/agents/acp/process-tree.d.ts +0 -2
  108. package/dist/src/agents/acp/types.d.ts +0 -31
  109. package/dist/src/agents/acp/watcher.d.ts +0 -22
  110. package/dist/src/agents/adapter.d.ts +0 -180
  111. package/dist/src/agents/auth-status.d.ts +0 -4
  112. package/dist/src/agents/claude-managed-permissions.d.ts +0 -33
  113. package/dist/src/agents/claude.d.ts +0 -69
  114. package/dist/src/agents/codex-managed-permissions.d.ts +0 -32
  115. package/dist/src/agents/codex-managed-room-tools.d.ts +0 -41
  116. package/dist/src/agents/codex-protocol.d.ts +0 -103
  117. package/dist/src/agents/codex-runtime.d.ts +0 -91
  118. package/dist/src/agents/codex-utils.d.ts +0 -29
  119. package/dist/src/agents/codex.d.ts +0 -59
  120. package/dist/src/agents/command-spec.d.ts +0 -55
  121. package/dist/src/agents/config-status.d.ts +0 -18
  122. package/dist/src/agents/cursor-managed-permissions.d.ts +0 -28
  123. package/dist/src/agents/cursor.d.ts +0 -44
  124. package/dist/src/agents/custom-managed-runtime.d.ts +0 -37
  125. package/dist/src/agents/custom-recovery-conformance.d.ts +0 -2
  126. package/dist/src/agents/custom.d.ts +0 -62
  127. package/dist/src/agents/detect.d.ts +0 -23
  128. package/dist/src/agents/event-terminal-gate.d.ts +0 -16
  129. package/dist/src/agents/external-channel-instructions.d.ts +0 -4
  130. package/dist/src/agents/gemini.d.ts +0 -32
  131. package/dist/src/agents/manager.d.ts +0 -57
  132. package/dist/src/agents/model-registry/cache.d.ts +0 -4
  133. package/dist/src/agents/model-registry/discovery.d.ts +0 -4
  134. package/dist/src/agents/model-registry/opencode-api.d.ts +0 -2
  135. package/dist/src/agents/model-registry/parsers.d.ts +0 -20
  136. package/dist/src/agents/model-registry/runner.d.ts +0 -6
  137. package/dist/src/agents/model-registry/service.d.ts +0 -10
  138. package/dist/src/agents/model-registry/types.d.ts +0 -39
  139. package/dist/src/agents/model-registry.d.ts +0 -17
  140. package/dist/src/agents/native-capabilities.d.ts +0 -10
  141. package/dist/src/agents/openclaw.d.ts +0 -29
  142. package/dist/src/agents/opencode-managed-permissions.d.ts +0 -25
  143. package/dist/src/agents/opencode.d.ts +0 -46
  144. package/dist/src/agents/pi-coding-agent-managed-permissions.d.ts +0 -7
  145. package/dist/src/agents/pi-coding-agent.d.ts +0 -63
  146. package/dist/src/agents/pi-managed-extension.d.ts +0 -12
  147. package/dist/src/agents/pi-managed-model-broker.d.ts +0 -27
  148. package/dist/src/agents/pi-managed-model-broker.js +0 -1
  149. package/dist/src/agents/pi-rpc-client.d.ts +0 -31
  150. package/dist/src/agents/pi-session-ownership.d.ts +0 -2
  151. package/dist/src/agents/platform-instructions.d.ts +0 -5
  152. package/dist/src/agents/runtime-compatibility.d.ts +0 -11
  153. package/dist/src/agents/workbuddy-managed-permissions.d.ts +0 -37
  154. package/dist/src/agents/workbuddy.d.ts +0 -63
  155. package/dist/src/commands/agent-readiness.d.ts +0 -17
  156. package/dist/src/commands/agent.d.ts +0 -2
  157. package/dist/src/commands/daemon-instance-lock.d.ts +0 -21
  158. package/dist/src/commands/daemon-process.d.ts +0 -6
  159. package/dist/src/commands/daemon-service-spec.d.ts +0 -26
  160. package/dist/src/commands/daemon-start-wait.d.ts +0 -9
  161. package/dist/src/commands/daemon-state.d.ts +0 -57
  162. package/dist/src/commands/daemon-windows.d.ts +0 -33
  163. package/dist/src/commands/daemon.d.ts +0 -67
  164. package/dist/src/commands/integration.d.ts +0 -3
  165. package/dist/src/commands/logout.d.ts +0 -3
  166. package/dist/src/commands/manager.d.ts +0 -2
  167. package/dist/src/commands/pair-authorization.d.ts +0 -3
  168. package/dist/src/commands/pair-browser.d.ts +0 -44
  169. package/dist/src/commands/pair-qr.d.ts +0 -4
  170. package/dist/src/commands/pair.d.ts +0 -19
  171. package/dist/src/commands/room.d.ts +0 -16
  172. package/dist/src/commands/runtime.d.ts +0 -2
  173. package/dist/src/commands/schedule.d.ts +0 -2
  174. package/dist/src/commands/tools.d.ts +0 -2
  175. package/dist/src/commands/upgrade.d.ts +0 -31
  176. package/dist/src/commands/worker.d.ts +0 -11
  177. package/dist/src/config/index.d.ts +0 -58
  178. package/dist/src/daemon-ipc/agent-readiness.d.ts +0 -15
  179. package/dist/src/daemon-ipc/client.d.ts +0 -8
  180. package/dist/src/daemon-ipc/control.d.ts +0 -16
  181. package/dist/src/daemon-ipc/json.d.ts +0 -3
  182. package/dist/src/daemon-ipc/paths.d.ts +0 -15
  183. package/dist/src/daemon-ipc/protocol.d.ts +0 -31
  184. package/dist/src/daemon-ipc/secret.d.ts +0 -3
  185. package/dist/src/daemon-ipc/server.d.ts +0 -20
  186. package/dist/src/daemon-log.d.ts +0 -9
  187. package/dist/src/env-path.d.ts +0 -15
  188. package/dist/src/fs/boundary.d.ts +0 -23
  189. package/dist/src/fs/handler.d.ts +0 -26
  190. package/dist/src/fs/security.d.ts +0 -2
  191. package/dist/src/fs/text-decoder.d.ts +0 -10
  192. package/dist/src/index.d.ts +0 -1
  193. package/dist/src/log-redaction.d.ts +0 -4
  194. package/dist/src/log-reporter.d.ts +0 -41
  195. package/dist/src/manager/prompt.d.ts +0 -2
  196. package/dist/src/manager/registry.d.ts +0 -184
  197. package/dist/src/manager/retired-external-channel-compat.d.ts +0 -78
  198. package/dist/src/manager/runtime.d.ts +0 -90
  199. package/dist/src/manager/worker-ipc.d.ts +0 -28
  200. package/dist/src/manager/worker-markdown.d.ts +0 -10
  201. package/dist/src/native-fusion/codex-files.d.ts +0 -10
  202. package/dist/src/native-fusion/codex-message-parser.d.ts +0 -9
  203. package/dist/src/native-fusion/codex-parser.d.ts +0 -8
  204. package/dist/src/native-fusion/codex-user-input.d.ts +0 -11
  205. package/dist/src/native-fusion/config.d.ts +0 -1
  206. package/dist/src/native-fusion/file-identity.d.ts +0 -9
  207. package/dist/src/native-fusion/file-watcher.d.ts +0 -26
  208. package/dist/src/native-fusion/local-repository.d.ts +0 -90
  209. package/dist/src/native-fusion/native-source-deletions.d.ts +0 -47
  210. package/dist/src/native-fusion/opencode-parser.d.ts +0 -29
  211. package/dist/src/native-fusion/parser-common.d.ts +0 -35
  212. package/dist/src/native-fusion/parsers.d.ts +0 -13
  213. package/dist/src/native-fusion/service.d.ts +0 -64
  214. package/dist/src/native-fusion/session-header.d.ts +0 -13
  215. package/dist/src/native-fusion/session-native-sources.d.ts +0 -24
  216. package/dist/src/native-fusion/source-visibility-audit.d.ts +0 -16
  217. package/dist/src/native-fusion/source-visibility.d.ts +0 -25
  218. package/dist/src/native-fusion/state.d.ts +0 -4
  219. package/dist/src/native-fusion/types.d.ts +0 -82
  220. package/dist/src/personal-sync/epoch.d.ts +0 -17
  221. package/dist/src/personal-sync/identity.d.ts +0 -1
  222. package/dist/src/personal-sync/machine-authority.d.ts +0 -12
  223. package/dist/src/personal-sync/metrics.d.ts +0 -25
  224. package/dist/src/personal-sync/paths.d.ts +0 -5
  225. package/dist/src/region.d.ts +0 -15
  226. package/dist/src/relay/client.d.ts +0 -81
  227. package/dist/src/room/activation-audit.d.ts +0 -15
  228. package/dist/src/room/activation-policy.d.ts +0 -8
  229. package/dist/src/room/activation-service.d.ts +0 -77
  230. package/dist/src/room/attachment-cache.d.ts +0 -44
  231. package/dist/src/room/attachment-upload.d.ts +0 -20
  232. package/dist/src/room/device-authorization-client.d.ts +0 -91
  233. package/dist/src/room/host-session-observations.d.ts +0 -54
  234. package/dist/src/room/invite-bootstrap.d.ts +0 -49
  235. package/dist/src/room/invite-qr.d.ts +0 -6
  236. package/dist/src/room/live-delivery.d.ts +0 -5
  237. package/dist/src/room/managed-context.d.ts +0 -49
  238. package/dist/src/room/managed-prompt-composer.d.ts +0 -47
  239. package/dist/src/room/managed-room-binding.d.ts +0 -69
  240. package/dist/src/room/managed-room-ipc.d.ts +0 -65
  241. package/dist/src/room/mirror-sync-service.d.ts +0 -49
  242. package/dist/src/room/public-attachment-cache.d.ts +0 -34
  243. package/dist/src/room/public-room-client.d.ts +0 -37
  244. package/dist/src/room/registration-authority.d.ts +0 -4
  245. package/dist/src/room/room-action-client-types.d.ts +0 -137
  246. package/dist/src/room/room-action-client.d.ts +0 -116
  247. package/dist/src/room/room-binding-client.d.ts +0 -62
  248. package/dist/src/room/session-registry.d.ts +0 -158
  249. package/dist/src/runtime-distribution.d.ts +0 -7
  250. package/dist/src/schedules/personal-context.d.ts +0 -2
  251. package/dist/src/schedules/server-client.d.ts +0 -19
  252. package/dist/src/security/managed-agent-credential-paths.d.ts +0 -6
  253. package/dist/src/security/managed-agent-executable.d.ts +0 -19
  254. package/dist/src/security/managed-agent-policy.d.ts +0 -66
  255. package/dist/src/security/managed-agent-runtime.d.ts +0 -44
  256. package/dist/src/session/archive-zip.d.ts +0 -10
  257. package/dist/src/session/attachment-reference.d.ts +0 -2
  258. package/dist/src/session/attachment-transfer-store.d.ts +0 -45
  259. package/dist/src/session/canonical-store.d.ts +0 -104
  260. package/dist/src/session/deletion-sync-state.d.ts +0 -20
  261. package/dist/src/session/deletion-sync-validation.d.ts +0 -2
  262. package/dist/src/session/deletion-synchronizer.d.ts +0 -9
  263. package/dist/src/session/handlers/agent-capabilities.d.ts +0 -3
  264. package/dist/src/session/handlers/agent-config.d.ts +0 -7
  265. package/dist/src/session/handlers/agent-control.d.ts +0 -4
  266. package/dist/src/session/handlers/agent-workspace-validation.d.ts +0 -28
  267. package/dist/src/session/handlers/agents.d.ts +0 -11
  268. package/dist/src/session/handlers/chat-adapter-config.d.ts +0 -11
  269. package/dist/src/session/handlers/chat-context.d.ts +0 -31
  270. package/dist/src/session/handlers/chat-events.d.ts +0 -5
  271. package/dist/src/session/handlers/chat-recovery.d.ts +0 -4
  272. package/dist/src/session/handlers/chat-session-lifecycle.d.ts +0 -9
  273. package/dist/src/session/handlers/chat.d.ts +0 -6
  274. package/dist/src/session/handlers/control.d.ts +0 -5
  275. package/dist/src/session/handlers/fs.d.ts +0 -14
  276. package/dist/src/session/handlers/message-status.d.ts +0 -3
  277. package/dist/src/session/handlers/pi-validation-session.d.ts +0 -7
  278. package/dist/src/session/handlers/pi-validation-session.js +0 -1
  279. package/dist/src/session/handlers/project-fs.d.ts +0 -11
  280. package/dist/src/session/handlers/remote-access.d.ts +0 -4
  281. package/dist/src/session/handlers/room-managed.d.ts +0 -6
  282. package/dist/src/session/handlers/session-refresh.d.ts +0 -3
  283. package/dist/src/session/handlers/title.d.ts +0 -3
  284. package/dist/src/session/handlers/tool-detail.d.ts +0 -3
  285. package/dist/src/session/handlers/voice-window.d.ts +0 -3
  286. package/dist/src/session/history-subscriptions.d.ts +0 -29
  287. package/dist/src/session/index-publisher.d.ts +0 -3
  288. package/dist/src/session/manager-event-authority.d.ts +0 -3
  289. package/dist/src/session/manager.d.ts +0 -95
  290. package/dist/src/session/native-cleanup-outbox.d.ts +0 -64
  291. package/dist/src/session/native-session-lifecycle.d.ts +0 -56
  292. package/dist/src/session/project-fs-store.d.ts +0 -43
  293. package/dist/src/session/projection.d.ts +0 -3
  294. package/dist/src/session/queue-control.d.ts +0 -27
  295. package/dist/src/session/queue-helpers.d.ts +0 -20
  296. package/dist/src/session/queue-message.d.ts +0 -35
  297. package/dist/src/session/queue-retry.d.ts +0 -11
  298. package/dist/src/session/queue-storage.d.ts +0 -8
  299. package/dist/src/session/queue-types.d.ts +0 -31
  300. package/dist/src/session/queue.d.ts +0 -73
  301. package/dist/src/session/queued-chat-dispatch.d.ts +0 -12
  302. package/dist/src/session/run-recovery/barrier.d.ts +0 -12
  303. package/dist/src/session/run-recovery/coordinator.d.ts +0 -32
  304. package/dist/src/session/run-recovery/journal.d.ts +0 -30
  305. package/dist/src/session/run-recovery/schema.d.ts +0 -48
  306. package/dist/src/session/store.d.ts +0 -128
  307. package/dist/src/session/tool-detail-store.d.ts +0 -17
  308. package/dist/src/session/turn-trigger.d.ts +0 -43
  309. package/dist/src/session/types.d.ts +0 -93
  310. package/dist/src/tools/markdown-to-pdf.d.ts +0 -42
  311. package/dist/src/upgrade/channel.d.ts +0 -5
  312. package/dist/src/upgrade/distribution.d.ts +0 -21
  313. package/dist/src/upgrade/engine.d.ts +0 -104
  314. package/dist/src/upgrade/scheduler.d.ts +0 -60
  315. package/dist/src/upgrade/updater-bootstrap.d.ts +0 -12
  316. package/dist/src/upgrade/updater-launcher.d.ts +0 -37
  317. package/dist/src/upgrade/updater-protocol.d.ts +0 -40
  318. package/dist/src/upgrade/updater-service-entry.d.ts +0 -7
  319. package/dist/src/upgrade/updater-worker.d.ts +0 -57
  320. package/dist/src/windows-shell.d.ts +0 -6
  321. package/node_modules/@shennian/wire/dist/agent-capabilities.d.ts +0 -16
  322. package/node_modules/@shennian/wire/dist/agent-workspace.d.ts +0 -133
  323. package/node_modules/@shennian/wire/dist/envelope.d.ts +0 -7
  324. package/node_modules/@shennian/wire/dist/events.d.ts +0 -125
  325. package/node_modules/@shennian/wire/dist/external-message-format.d.ts +0 -37
  326. package/node_modules/@shennian/wire/dist/frames.d.ts +0 -33
  327. package/node_modules/@shennian/wire/dist/fs.d.ts +0 -107
  328. package/node_modules/@shennian/wire/dist/index.d.ts +0 -21
  329. package/node_modules/@shennian/wire/dist/machine.d.ts +0 -160
  330. package/node_modules/@shennian/wire/dist/message-payload.d.ts +0 -71
  331. package/node_modules/@shennian/wire/dist/methods.d.ts +0 -5
  332. package/node_modules/@shennian/wire/dist/native-session.d.ts +0 -20
  333. package/node_modules/@shennian/wire/dist/project-fs.d.ts +0 -146
  334. package/node_modules/@shennian/wire/dist/project-path.d.ts +0 -4
  335. package/node_modules/@shennian/wire/dist/project.d.ts +0 -16
  336. package/node_modules/@shennian/wire/dist/relay-connectivity.d.ts +0 -30
  337. package/node_modules/@shennian/wire/dist/room.d.ts +0 -190
  338. package/node_modules/@shennian/wire/dist/schedule.d.ts +0 -37
  339. package/node_modules/@shennian/wire/dist/session-sync.d.ts +0 -406
  340. package/node_modules/@shennian/wire/dist/session.d.ts +0 -465
  341. package/node_modules/@shennian/wire/dist/tool-detail.d.ts +0 -38
  342. package/node_modules/@shennian/wire/dist/voice-chief.d.ts +0 -116
package/README.md CHANGED
@@ -6,9 +6,9 @@
6
6
  > - [CLI 设计哲学](../../docs/architecture/cli/design-philosophy.md) — CLI、Skill、daemon、身份与宿主适配边界
7
7
  > - [Daemon 架构](../../docs/architecture/cli/daemon.md) — 模块拓扑、数据流、守护进程
8
8
  > - [Agent Adapters](../../docs/architecture/cli/agent-adapters.md) — 5 种 agent 的适配与归一化
9
- > - [开源 Agent Protocol](../../docs/architecture/cli/agent-protocol.md) — 第三方 agent 接入协议
9
+ > - [Agent Protocol](../../docs/architecture/cli/agent-protocol.md) — 第三方 agent 接入协议
10
10
  >
11
- > **开源协议 & SDK** → [packages/agent-protocol/](../agent-protocol/)
11
+ > **Agent 协议 & SDK** → [packages/agent-protocol/](../agent-protocol/)
12
12
 
13
13
  ## 常用命令
14
14
 
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 1,
3
3
  "jsMinified": true,
4
4
  "minifier": "esbuild",
5
- "fileCount": 226,
5
+ "fileCount": 234,
6
6
  "files": [
7
7
  {
8
8
  "file": "bin/shennian.js",
@@ -16,8 +16,8 @@
16
16
  },
17
17
  {
18
18
  "file": "src/agents/acp/adapter.js",
19
- "beforeBytes": 25920,
20
- "afterBytes": 13755
19
+ "beforeBytes": 26392,
20
+ "afterBytes": 13813
21
21
  },
22
22
  {
23
23
  "file": "src/agents/acp/auth-state.js",
@@ -31,13 +31,13 @@
31
31
  },
32
32
  {
33
33
  "file": "src/agents/acp/capability-cache.js",
34
- "beforeBytes": 2374,
35
- "afterBytes": 1411
34
+ "beforeBytes": 2445,
35
+ "afterBytes": 1464
36
36
  },
37
37
  {
38
38
  "file": "src/agents/acp/catalog.js",
39
- "beforeBytes": 5188,
40
- "afterBytes": 2657
39
+ "beforeBytes": 5259,
40
+ "afterBytes": 2710
41
41
  },
42
42
  {
43
43
  "file": "src/agents/acp/client-services.js",
@@ -56,8 +56,8 @@
56
56
  },
57
57
  {
58
58
  "file": "src/agents/acp/manifests.js",
59
- "beforeBytes": 4036,
60
- "afterBytes": 2299
59
+ "beforeBytes": 4107,
60
+ "afterBytes": 2352
61
61
  },
62
62
  {
63
63
  "file": "src/agents/acp/metrics.js",
@@ -106,8 +106,8 @@
106
106
  },
107
107
  {
108
108
  "file": "src/agents/claude.js",
109
- "beforeBytes": 19582,
110
- "afterBytes": 9365
109
+ "beforeBytes": 21692,
110
+ "afterBytes": 10167
111
111
  },
112
112
  {
113
113
  "file": "src/agents/codex-managed-permissions.js",
@@ -136,13 +136,13 @@
136
136
  },
137
137
  {
138
138
  "file": "src/agents/codex.js",
139
- "beforeBytes": 34652,
140
- "afterBytes": 18423
139
+ "beforeBytes": 35060,
140
+ "afterBytes": 18791
141
141
  },
142
142
  {
143
143
  "file": "src/agents/command-spec.js",
144
- "beforeBytes": 19955,
145
- "afterBytes": 9040
144
+ "beforeBytes": 21138,
145
+ "afterBytes": 9486
146
146
  },
147
147
  {
148
148
  "file": "src/agents/config-status.js",
@@ -156,8 +156,8 @@
156
156
  },
157
157
  {
158
158
  "file": "src/agents/cursor.js",
159
- "beforeBytes": 12731,
160
- "afterBytes": 6097
159
+ "beforeBytes": 12806,
160
+ "afterBytes": 6155
161
161
  },
162
162
  {
163
163
  "file": "src/agents/custom-managed-runtime.js",
@@ -166,8 +166,8 @@
166
166
  },
167
167
  {
168
168
  "file": "src/agents/custom-recovery-conformance.js",
169
- "beforeBytes": 1998,
170
- "afterBytes": 1084
169
+ "beforeBytes": 2066,
170
+ "afterBytes": 1134
171
171
  },
172
172
  {
173
173
  "file": "src/agents/custom.js",
@@ -191,8 +191,8 @@
191
191
  },
192
192
  {
193
193
  "file": "src/agents/gemini.js",
194
- "beforeBytes": 6353,
195
- "afterBytes": 3309
194
+ "beforeBytes": 6428,
195
+ "afterBytes": 3367
196
196
  },
197
197
  {
198
198
  "file": "src/agents/manager.js",
@@ -206,8 +206,8 @@
206
206
  },
207
207
  {
208
208
  "file": "src/agents/model-registry/discovery.js",
209
- "beforeBytes": 11711,
210
- "afterBytes": 5499
209
+ "beforeBytes": 11107,
210
+ "afterBytes": 5219
211
211
  },
212
212
  {
213
213
  "file": "src/agents/model-registry/opencode-api.js",
@@ -226,8 +226,8 @@
226
226
  },
227
227
  {
228
228
  "file": "src/agents/model-registry/service.js",
229
- "beforeBytes": 7401,
230
- "afterBytes": 2929
229
+ "beforeBytes": 8864,
230
+ "afterBytes": 3358
231
231
  },
232
232
  {
233
233
  "file": "src/agents/model-registry/types.js",
@@ -236,8 +236,8 @@
236
236
  },
237
237
  {
238
238
  "file": "src/agents/model-registry.js",
239
- "beforeBytes": 964,
240
- "afterBytes": 876
239
+ "beforeBytes": 986,
240
+ "afterBytes": 928
241
241
  },
242
242
  {
243
243
  "file": "src/agents/native-capabilities.js",
@@ -246,8 +246,8 @@
246
246
  },
247
247
  {
248
248
  "file": "src/agents/openclaw.js",
249
- "beforeBytes": 11104,
250
- "afterBytes": 4973
249
+ "beforeBytes": 11179,
250
+ "afterBytes": 5031
251
251
  },
252
252
  {
253
253
  "file": "src/agents/opencode-managed-permissions.js",
@@ -256,8 +256,8 @@
256
256
  },
257
257
  {
258
258
  "file": "src/agents/opencode.js",
259
- "beforeBytes": 13211,
260
- "afterBytes": 6927
259
+ "beforeBytes": 13286,
260
+ "afterBytes": 6985
261
261
  },
262
262
  {
263
263
  "file": "src/agents/pi-coding-agent-managed-permissions.js",
@@ -266,19 +266,14 @@
266
266
  },
267
267
  {
268
268
  "file": "src/agents/pi-coding-agent.js",
269
- "beforeBytes": 25531,
270
- "afterBytes": 13883
269
+ "beforeBytes": 22758,
270
+ "afterBytes": 12494
271
271
  },
272
272
  {
273
273
  "file": "src/agents/pi-managed-extension.js",
274
274
  "beforeBytes": 10227,
275
275
  "afterBytes": 9273
276
276
  },
277
- {
278
- "file": "src/agents/pi-managed-model-broker.js",
279
- "beforeBytes": 8635,
280
- "afterBytes": 4663
281
- },
282
277
  {
283
278
  "file": "src/agents/pi-rpc-client.js",
284
279
  "beforeBytes": 5326,
@@ -286,8 +281,8 @@
286
281
  },
287
282
  {
288
283
  "file": "src/agents/pi-session-ownership.js",
289
- "beforeBytes": 2329,
290
- "afterBytes": 1278
284
+ "beforeBytes": 2397,
285
+ "afterBytes": 1328
291
286
  },
292
287
  {
293
288
  "file": "src/agents/platform-instructions.js",
@@ -299,6 +294,16 @@
299
294
  "beforeBytes": 1587,
300
295
  "afterBytes": 732
301
296
  },
297
+ {
298
+ "file": "src/agents/spawn-errors.js",
299
+ "beforeBytes": 638,
300
+ "afterBytes": 201
301
+ },
302
+ {
303
+ "file": "src/agents/windows-agent-paths.js",
304
+ "beforeBytes": 4140,
305
+ "afterBytes": 2288
306
+ },
302
307
  {
303
308
  "file": "src/agents/workbuddy-managed-permissions.js",
304
309
  "beforeBytes": 13486,
@@ -311,8 +316,8 @@
311
316
  },
312
317
  {
313
318
  "file": "src/commands/agent-readiness.js",
314
- "beforeBytes": 3848,
315
- "afterBytes": 3118
319
+ "beforeBytes": 7032,
320
+ "afterBytes": 5639
316
321
  },
317
322
  {
318
323
  "file": "src/commands/agent.js",
@@ -331,8 +336,8 @@
331
336
  },
332
337
  {
333
338
  "file": "src/commands/daemon-service-spec.js",
334
- "beforeBytes": 3873,
335
- "afterBytes": 2332
339
+ "beforeBytes": 4008,
340
+ "afterBytes": 2436
336
341
  },
337
342
  {
338
343
  "file": "src/commands/daemon-start-wait.js",
@@ -351,8 +356,8 @@
351
356
  },
352
357
  {
353
358
  "file": "src/commands/daemon.js",
354
- "beforeBytes": 35833,
355
- "afterBytes": 17960
359
+ "beforeBytes": 35901,
360
+ "afterBytes": 18012
356
361
  },
357
362
  {
358
363
  "file": "src/commands/integration.js",
@@ -389,10 +394,15 @@
389
394
  "beforeBytes": 16512,
390
395
  "afterBytes": 9134
391
396
  },
397
+ {
398
+ "file": "src/commands/queue.js",
399
+ "beforeBytes": 1711,
400
+ "afterBytes": 1157
401
+ },
392
402
  {
393
403
  "file": "src/commands/room.js",
394
- "beforeBytes": 18311,
395
- "afterBytes": 10572
404
+ "beforeBytes": 18602,
405
+ "afterBytes": 10736
396
406
  },
397
407
  {
398
408
  "file": "src/commands/runtime.js",
@@ -421,8 +431,8 @@
421
431
  },
422
432
  {
423
433
  "file": "src/config/index.js",
424
- "beforeBytes": 2801,
425
- "afterBytes": 1662
434
+ "beforeBytes": 2869,
435
+ "afterBytes": 1712
426
436
  },
427
437
  {
428
438
  "file": "src/daemon-ipc/agent-readiness.js",
@@ -474,6 +484,11 @@
474
484
  "beforeBytes": 3337,
475
485
  "afterBytes": 1634
476
486
  },
487
+ {
488
+ "file": "src/fs/atomic-rename.js",
489
+ "beforeBytes": 1619,
490
+ "afterBytes": 407
491
+ },
477
492
  {
478
493
  "file": "src/fs/boundary.js",
479
494
  "beforeBytes": 7102,
@@ -496,8 +511,8 @@
496
511
  },
497
512
  {
498
513
  "file": "src/index.js",
499
- "beforeBytes": 41937,
500
- "afterBytes": 20803
514
+ "beforeBytes": 42379,
515
+ "afterBytes": 20999
501
516
  },
502
517
  {
503
518
  "file": "src/log-redaction.js",
@@ -539,6 +554,11 @@
539
554
  "beforeBytes": 1327,
540
555
  "afterBytes": 884
541
556
  },
557
+ {
558
+ "file": "src/native-fusion/claude-entry-parser.js",
559
+ "beforeBytes": 12235,
560
+ "afterBytes": 5313
561
+ },
542
562
  {
543
563
  "file": "src/native-fusion/codex-files.js",
544
564
  "beforeBytes": 4582,
@@ -576,13 +596,13 @@
576
596
  },
577
597
  {
578
598
  "file": "src/native-fusion/local-repository.js",
579
- "beforeBytes": 27624,
580
- "afterBytes": 13695
599
+ "beforeBytes": 28392,
600
+ "afterBytes": 13832
581
601
  },
582
602
  {
583
603
  "file": "src/native-fusion/native-source-deletions.js",
584
- "beforeBytes": 6821,
585
- "afterBytes": 3687
604
+ "beforeBytes": 6889,
605
+ "afterBytes": 3737
586
606
  },
587
607
  {
588
608
  "file": "src/native-fusion/opencode-parser.js",
@@ -596,8 +616,8 @@
596
616
  },
597
617
  {
598
618
  "file": "src/native-fusion/parsers.js",
599
- "beforeBytes": 6594,
600
- "afterBytes": 3602
619
+ "beforeBytes": 4626,
620
+ "afterBytes": 2785
601
621
  },
602
622
  {
603
623
  "file": "src/native-fusion/service.js",
@@ -626,8 +646,8 @@
626
646
  },
627
647
  {
628
648
  "file": "src/native-fusion/state.js",
629
- "beforeBytes": 5715,
630
- "afterBytes": 3080
649
+ "beforeBytes": 5783,
650
+ "afterBytes": 3130
631
651
  },
632
652
  {
633
653
  "file": "src/native-fusion/types.js",
@@ -636,13 +656,13 @@
636
656
  },
637
657
  {
638
658
  "file": "src/personal-sync/epoch.js",
639
- "beforeBytes": 8116,
640
- "afterBytes": 3955
659
+ "beforeBytes": 8184,
660
+ "afterBytes": 4005
641
661
  },
642
662
  {
643
663
  "file": "src/personal-sync/identity.js",
644
- "beforeBytes": 2427,
645
- "afterBytes": 1324
664
+ "beforeBytes": 2495,
665
+ "afterBytes": 1374
646
666
  },
647
667
  {
648
668
  "file": "src/personal-sync/machine-authority.js",
@@ -666,8 +686,8 @@
666
686
  },
667
687
  {
668
688
  "file": "src/relay/client.js",
669
- "beforeBytes": 18466,
670
- "afterBytes": 8826
689
+ "beforeBytes": 19773,
690
+ "afterBytes": 9589
671
691
  },
672
692
  {
673
693
  "file": "src/room/activation-audit.js",
@@ -681,13 +701,13 @@
681
701
  },
682
702
  {
683
703
  "file": "src/room/activation-service.js",
684
- "beforeBytes": 27631,
685
- "afterBytes": 14835
704
+ "beforeBytes": 28566,
705
+ "afterBytes": 15641
686
706
  },
687
707
  {
688
708
  "file": "src/room/attachment-cache.js",
689
- "beforeBytes": 13659,
690
- "afterBytes": 6480
709
+ "beforeBytes": 13733,
710
+ "afterBytes": 6519
691
711
  },
692
712
  {
693
713
  "file": "src/room/attachment-upload.js",
@@ -701,8 +721,8 @@
701
721
  },
702
722
  {
703
723
  "file": "src/room/host-session-observations.js",
704
- "beforeBytes": 9450,
705
- "afterBytes": 5170
724
+ "beforeBytes": 9518,
725
+ "afterBytes": 5220
706
726
  },
707
727
  {
708
728
  "file": "src/room/invite-bootstrap.js",
@@ -721,8 +741,8 @@
721
741
  },
722
742
  {
723
743
  "file": "src/room/managed-context.js",
724
- "beforeBytes": 4743,
725
- "afterBytes": 2662
744
+ "beforeBytes": 5441,
745
+ "afterBytes": 2760
726
746
  },
727
747
  {
728
748
  "file": "src/room/managed-prompt-composer.js",
@@ -736,18 +756,18 @@
736
756
  },
737
757
  {
738
758
  "file": "src/room/managed-room-ipc.js",
739
- "beforeBytes": 14796,
740
- "afterBytes": 7019
759
+ "beforeBytes": 15469,
760
+ "afterBytes": 7269
741
761
  },
742
762
  {
743
763
  "file": "src/room/mirror-sync-service.js",
744
- "beforeBytes": 11100,
745
- "afterBytes": 5019
764
+ "beforeBytes": 12115,
765
+ "afterBytes": 5558
746
766
  },
747
767
  {
748
768
  "file": "src/room/public-attachment-cache.js",
749
- "beforeBytes": 10361,
750
- "afterBytes": 5048
769
+ "beforeBytes": 10435,
770
+ "afterBytes": 5087
751
771
  },
752
772
  {
753
773
  "file": "src/room/public-room-client.js",
@@ -774,10 +794,15 @@
774
794
  "beforeBytes": 7086,
775
795
  "afterBytes": 4075
776
796
  },
797
+ {
798
+ "file": "src/room/room-error-guidance.js",
799
+ "beforeBytes": 3084,
800
+ "afterBytes": 2082
801
+ },
777
802
  {
778
803
  "file": "src/room/session-registry.js",
779
- "beforeBytes": 30575,
780
- "afterBytes": 17164
804
+ "beforeBytes": 30643,
805
+ "afterBytes": 17214
781
806
  },
782
807
  {
783
808
  "file": "src/runtime-distribution.js",
@@ -806,13 +831,13 @@
806
831
  },
807
832
  {
808
833
  "file": "src/security/managed-agent-policy.js",
809
- "beforeBytes": 7465,
810
- "afterBytes": 3578
834
+ "beforeBytes": 7684,
835
+ "afterBytes": 3719
811
836
  },
812
837
  {
813
838
  "file": "src/security/managed-agent-runtime.js",
814
- "beforeBytes": 6814,
815
- "afterBytes": 3251
839
+ "beforeBytes": 7393,
840
+ "afterBytes": 3348
816
841
  },
817
842
  {
818
843
  "file": "src/session/archive-zip.js",
@@ -826,18 +851,18 @@
826
851
  },
827
852
  {
828
853
  "file": "src/session/attachment-transfer-store.js",
829
- "beforeBytes": 18717,
830
- "afterBytes": 9372
854
+ "beforeBytes": 18791,
855
+ "afterBytes": 9414
831
856
  },
832
857
  {
833
858
  "file": "src/session/canonical-store.js",
834
- "beforeBytes": 31107,
835
- "afterBytes": 15127
859
+ "beforeBytes": 31181,
860
+ "afterBytes": 15168
836
861
  },
837
862
  {
838
863
  "file": "src/session/deletion-sync-state.js",
839
- "beforeBytes": 6026,
840
- "afterBytes": 3190
864
+ "beforeBytes": 6094,
865
+ "afterBytes": 3240
841
866
  },
842
867
  {
843
868
  "file": "src/session/deletion-sync-validation.js",
@@ -866,8 +891,8 @@
866
891
  },
867
892
  {
868
893
  "file": "src/session/handlers/agent-workspace-validation.js",
869
- "beforeBytes": 9845,
870
- "afterBytes": 5250
894
+ "beforeBytes": 9136,
895
+ "afterBytes": 4977
871
896
  },
872
897
  {
873
898
  "file": "src/session/handlers/agents.js",
@@ -876,8 +901,8 @@
876
901
  },
877
902
  {
878
903
  "file": "src/session/handlers/chat-adapter-config.js",
879
- "beforeBytes": 2831,
880
- "afterBytes": 1159
904
+ "beforeBytes": 2897,
905
+ "afterBytes": 1207
881
906
  },
882
907
  {
883
908
  "file": "src/session/handlers/chat-context.js",
@@ -886,13 +911,13 @@
886
911
  },
887
912
  {
888
913
  "file": "src/session/handlers/chat-events.js",
889
- "beforeBytes": 16257,
890
- "afterBytes": 6965
914
+ "beforeBytes": 18625,
915
+ "afterBytes": 7583
891
916
  },
892
917
  {
893
918
  "file": "src/session/handlers/chat-recovery.js",
894
- "beforeBytes": 6525,
895
- "afterBytes": 3449
919
+ "beforeBytes": 6623,
920
+ "afterBytes": 3485
896
921
  },
897
922
  {
898
923
  "file": "src/session/handlers/chat-session-lifecycle.js",
@@ -901,8 +926,8 @@
901
926
  },
902
927
  {
903
928
  "file": "src/session/handlers/chat.js",
904
- "beforeBytes": 33163,
905
- "afterBytes": 13967
929
+ "beforeBytes": 35005,
930
+ "afterBytes": 14959
906
931
  },
907
932
  {
908
933
  "file": "src/session/handlers/control.js",
@@ -919,11 +944,6 @@
919
944
  "beforeBytes": 676,
920
945
  "afterBytes": 392
921
946
  },
922
- {
923
- "file": "src/session/handlers/pi-validation-session.js",
924
- "beforeBytes": 2016,
925
- "afterBytes": 1147
926
- },
927
947
  {
928
948
  "file": "src/session/handlers/project-fs.js",
929
949
  "beforeBytes": 3778,
@@ -976,13 +996,13 @@
976
996
  },
977
997
  {
978
998
  "file": "src/session/manager.js",
979
- "beforeBytes": 39543,
980
- "afterBytes": 20725
999
+ "beforeBytes": 40313,
1000
+ "afterBytes": 21179
981
1001
  },
982
1002
  {
983
1003
  "file": "src/session/native-cleanup-outbox.js",
984
- "beforeBytes": 10756,
985
- "afterBytes": 5526
1004
+ "beforeBytes": 10824,
1005
+ "afterBytes": 5576
986
1006
  },
987
1007
  {
988
1008
  "file": "src/session/native-session-lifecycle.js",
@@ -1004,10 +1024,20 @@
1004
1024
  "beforeBytes": 11508,
1005
1025
  "afterBytes": 5870
1006
1026
  },
1027
+ {
1028
+ "file": "src/session/queue-diagnostics.js",
1029
+ "beforeBytes": 2229,
1030
+ "afterBytes": 959
1031
+ },
1032
+ {
1033
+ "file": "src/session/queue-dispatch-failure.js",
1034
+ "beforeBytes": 10071,
1035
+ "afterBytes": 7679
1036
+ },
1007
1037
  {
1008
1038
  "file": "src/session/queue-helpers.js",
1009
- "beforeBytes": 8579,
1010
- "afterBytes": 4271
1039
+ "beforeBytes": 9055,
1040
+ "afterBytes": 4369
1011
1041
  },
1012
1042
  {
1013
1043
  "file": "src/session/queue-message.js",
@@ -1016,13 +1046,13 @@
1016
1046
  },
1017
1047
  {
1018
1048
  "file": "src/session/queue-retry.js",
1019
- "beforeBytes": 1253,
1020
- "afterBytes": 561
1049
+ "beforeBytes": 1302,
1050
+ "afterBytes": 588
1021
1051
  },
1022
1052
  {
1023
1053
  "file": "src/session/queue-storage.js",
1024
- "beforeBytes": 2362,
1025
- "afterBytes": 1166
1054
+ "beforeBytes": 2430,
1055
+ "afterBytes": 1216
1026
1056
  },
1027
1057
  {
1028
1058
  "file": "src/session/queue-types.js",
@@ -1031,14 +1061,19 @@
1031
1061
  },
1032
1062
  {
1033
1063
  "file": "src/session/queue.js",
1034
- "beforeBytes": 40411,
1035
- "afterBytes": 17823
1064
+ "beforeBytes": 40313,
1065
+ "afterBytes": 17923
1036
1066
  },
1037
1067
  {
1038
1068
  "file": "src/session/queued-chat-dispatch.js",
1039
1069
  "beforeBytes": 3189,
1040
1070
  "afterBytes": 1809
1041
1071
  },
1072
+ {
1073
+ "file": "src/session/room-reply-notice.js",
1074
+ "beforeBytes": 1984,
1075
+ "afterBytes": 1845
1076
+ },
1042
1077
  {
1043
1078
  "file": "src/session/run-recovery/barrier.js",
1044
1079
  "beforeBytes": 1061,
@@ -1051,23 +1086,28 @@
1051
1086
  },
1052
1087
  {
1053
1088
  "file": "src/session/run-recovery/journal.js",
1054
- "beforeBytes": 8713,
1055
- "afterBytes": 4267
1089
+ "beforeBytes": 8790,
1090
+ "afterBytes": 4309
1056
1091
  },
1057
1092
  {
1058
1093
  "file": "src/session/run-recovery/schema.js",
1059
1094
  "beforeBytes": 6647,
1060
1095
  "afterBytes": 4272
1061
1096
  },
1097
+ {
1098
+ "file": "src/session/run-stall.js",
1099
+ "beforeBytes": 2885,
1100
+ "afterBytes": 1668
1101
+ },
1062
1102
  {
1063
1103
  "file": "src/session/store.js",
1064
- "beforeBytes": 32798,
1065
- "afterBytes": 16719
1104
+ "beforeBytes": 32866,
1105
+ "afterBytes": 16769
1066
1106
  },
1067
1107
  {
1068
1108
  "file": "src/session/tool-detail-store.js",
1069
- "beforeBytes": 2906,
1070
- "afterBytes": 1429
1109
+ "beforeBytes": 2974,
1110
+ "afterBytes": 1479
1071
1111
  },
1072
1112
  {
1073
1113
  "file": "src/session/turn-trigger.js",