@zhin.js/agent 1.1.8 → 1.1.10

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 (673) hide show
  1. package/README.md +15 -23
  2. package/lib/activity-feedback/adapter-integration.d.ts +1 -2
  3. package/lib/activity-feedback/adapter-integration.d.ts.map +1 -1
  4. package/lib/activity-feedback/adapter-integration.js +46 -18
  5. package/lib/activity-feedback/adapter-integration.js.map +1 -1
  6. package/lib/assistant/index.d.ts +1 -1
  7. package/lib/assistant/index.d.ts.map +1 -1
  8. package/lib/assistant/index.js +1 -1
  9. package/lib/assistant/index.js.map +1 -1
  10. package/lib/assistant/job-creator.d.ts +0 -7
  11. package/lib/assistant/job-creator.d.ts.map +1 -1
  12. package/lib/assistant/job-creator.js +1 -12
  13. package/lib/assistant/job-creator.js.map +1 -1
  14. package/lib/builtin/five-agent/index.d.ts +6 -3
  15. package/lib/builtin/five-agent/index.d.ts.map +1 -1
  16. package/lib/builtin/five-agent/index.js +6 -4
  17. package/lib/builtin/five-agent/index.js.map +1 -1
  18. package/lib/builtin/five-agent/prompts.d.ts +3 -3
  19. package/lib/builtin/five-agent/prompts.d.ts.map +1 -1
  20. package/lib/builtin/five-agent/prompts.js +3 -3
  21. package/lib/builtin/five-agent/prompts.js.map +1 -1
  22. package/lib/builtin/five-agent/role-capability-policy.d.ts +9 -0
  23. package/lib/builtin/five-agent/role-capability-policy.d.ts.map +1 -0
  24. package/lib/builtin/five-agent/role-capability-policy.js +22 -0
  25. package/lib/builtin/five-agent/role-capability-policy.js.map +1 -0
  26. package/lib/builtin/five-agent/roles.d.ts +5 -0
  27. package/lib/builtin/five-agent/roles.d.ts.map +1 -0
  28. package/lib/builtin/five-agent/roles.js +12 -0
  29. package/lib/builtin/five-agent/roles.js.map +1 -0
  30. package/lib/builtin/generate-image-tool.d.ts +1 -1
  31. package/lib/builtin/generate-image-tool.d.ts.map +1 -1
  32. package/lib/builtin/generate-image-tool.js +3 -3
  33. package/lib/builtin/generate-image-tool.js.map +1 -1
  34. package/lib/builtin/orchestration-tools.d.ts.map +1 -1
  35. package/lib/builtin/orchestration-tools.js +12 -38
  36. package/lib/builtin/orchestration-tools.js.map +1 -1
  37. package/lib/builtin/spawn-task-tool.js +2 -2
  38. package/lib/builtin/spawn-task-tool.js.map +1 -1
  39. package/lib/builtins/builtin-tool-service.d.ts +28 -0
  40. package/lib/builtins/builtin-tool-service.d.ts.map +1 -0
  41. package/lib/builtins/builtin-tool-service.js +63 -0
  42. package/lib/builtins/builtin-tool-service.js.map +1 -0
  43. package/lib/config/agent-interfaces.d.ts +2 -2
  44. package/lib/config/agent-interfaces.d.ts.map +1 -1
  45. package/lib/config/fix-ai-config.d.ts.map +1 -1
  46. package/lib/config/fix-ai-config.js +1 -38
  47. package/lib/config/fix-ai-config.js.map +1 -1
  48. package/lib/config/index.d.ts +1 -1
  49. package/lib/config/index.d.ts.map +1 -1
  50. package/lib/config/index.js +1 -1
  51. package/lib/config/index.js.map +1 -1
  52. package/lib/config/resolve-five-agent-binding.d.ts +10 -0
  53. package/lib/config/resolve-five-agent-binding.d.ts.map +1 -0
  54. package/lib/config/resolve-five-agent-binding.js +31 -0
  55. package/lib/config/resolve-five-agent-binding.js.map +1 -0
  56. package/lib/config/zhin-agent-config.d.ts +4 -0
  57. package/lib/config/zhin-agent-config.d.ts.map +1 -1
  58. package/lib/config/zhin-agent-defaults.d.ts.map +1 -1
  59. package/lib/config/zhin-agent-defaults.js +2 -0
  60. package/lib/config/zhin-agent-defaults.js.map +1 -1
  61. package/lib/context/context-system.d.ts +2 -2
  62. package/lib/context/context-system.d.ts.map +1 -1
  63. package/lib/context/context-system.js +2 -3
  64. package/lib/context/context-system.js.map +1 -1
  65. package/lib/context/context-tail-limit.d.ts +0 -2
  66. package/lib/context/context-tail-limit.d.ts.map +1 -1
  67. package/lib/context/context-tail-limit.js +1 -3
  68. package/lib/context/context-tail-limit.js.map +1 -1
  69. package/lib/context/default-builders.d.ts +0 -4
  70. package/lib/context/default-builders.d.ts.map +1 -1
  71. package/lib/context/default-builders.js +0 -14
  72. package/lib/context/default-builders.js.map +1 -1
  73. package/lib/context/envelope-parts.d.ts +0 -1
  74. package/lib/context/envelope-parts.d.ts.map +1 -1
  75. package/lib/context/index.d.ts +2 -2
  76. package/lib/context/index.d.ts.map +1 -1
  77. package/lib/context/index.js +2 -2
  78. package/lib/context/index.js.map +1 -1
  79. package/lib/context/turn-envelope.d.ts +0 -1
  80. package/lib/context/turn-envelope.d.ts.map +1 -1
  81. package/lib/context/turn-envelope.js +0 -2
  82. package/lib/context/turn-envelope.js.map +1 -1
  83. package/lib/core/agent-core-run.js +1 -1
  84. package/lib/core/agent-core-run.js.map +1 -1
  85. package/lib/core/agent-loop-standalone.d.ts +2 -1
  86. package/lib/core/agent-loop-standalone.d.ts.map +1 -1
  87. package/lib/core/agent-loop-standalone.js.map +1 -1
  88. package/lib/core/turn-event-mapper.d.ts +3 -1
  89. package/lib/core/turn-event-mapper.d.ts.map +1 -1
  90. package/lib/core/turn-event-mapper.js +12 -2
  91. package/lib/core/turn-event-mapper.js.map +1 -1
  92. package/lib/event/agent-stream-bus.d.ts +0 -1
  93. package/lib/event/agent-stream-bus.d.ts.map +1 -1
  94. package/lib/event/agent-stream-bus.js.map +1 -1
  95. package/lib/event/publish-agent-stream.js +2 -2
  96. package/lib/event/publish-agent-stream.js.map +1 -1
  97. package/lib/event/turn-event.d.ts +16 -1
  98. package/lib/event/turn-event.d.ts.map +1 -1
  99. package/lib/event/turn-event.js.map +1 -1
  100. package/lib/index.d.ts +23 -21
  101. package/lib/index.d.ts.map +1 -1
  102. package/lib/index.js +13 -15
  103. package/lib/index.js.map +1 -1
  104. package/lib/init/activate-ai-database-storage.d.ts +2 -2
  105. package/lib/init/activate-ai-database-storage.d.ts.map +1 -1
  106. package/lib/init/activate-ai-database-storage.js +1 -3
  107. package/lib/init/activate-ai-database-storage.js.map +1 -1
  108. package/lib/init/define-ai-database-models.d.ts +1 -1
  109. package/lib/init/define-ai-database-models.d.ts.map +1 -1
  110. package/lib/init/define-ai-database-models.js +1 -9
  111. package/lib/init/define-ai-database-models.js.map +1 -1
  112. package/lib/init/runtime-management-commands.d.ts +2 -3
  113. package/lib/init/runtime-management-commands.d.ts.map +1 -1
  114. package/lib/init/runtime-management-commands.js +6 -6
  115. package/lib/init/runtime-management-commands.js.map +1 -1
  116. package/lib/internal/agent-host.d.ts +2 -3
  117. package/lib/internal/agent-host.d.ts.map +1 -1
  118. package/lib/internal/host-types.d.ts +0 -28
  119. package/lib/internal/host-types.d.ts.map +1 -1
  120. package/lib/memory/context-repository-store.js +1 -1
  121. package/lib/memory/context-repository-store.js.map +1 -1
  122. package/lib/memory/memory-system.d.ts +1 -2
  123. package/lib/memory/memory-system.d.ts.map +1 -1
  124. package/lib/memory/memory-system.js +1 -3
  125. package/lib/memory/memory-system.js.map +1 -1
  126. package/lib/orchestrator/bootstrap-executors.d.ts +0 -4
  127. package/lib/orchestrator/bootstrap-executors.d.ts.map +1 -1
  128. package/lib/orchestrator/bootstrap-executors.js +11 -137
  129. package/lib/orchestrator/bootstrap-executors.js.map +1 -1
  130. package/lib/orchestrator/orchestration-mappers.d.ts +1 -1
  131. package/lib/orchestrator/orchestration-mappers.d.ts.map +1 -1
  132. package/lib/orchestrator/orchestration-mappers.js +4 -49
  133. package/lib/orchestrator/orchestration-mappers.js.map +1 -1
  134. package/lib/orchestrator/orchestration-service.d.ts.map +1 -1
  135. package/lib/orchestrator/orchestration-service.js +2 -5
  136. package/lib/orchestrator/orchestration-service.js.map +1 -1
  137. package/lib/orchestrator/orchestration-source.d.ts +5 -0
  138. package/lib/orchestrator/orchestration-source.d.ts.map +1 -0
  139. package/lib/orchestrator/orchestration-source.js +22 -0
  140. package/lib/orchestrator/orchestration-source.js.map +1 -0
  141. package/lib/orchestrator/types.d.ts +9 -0
  142. package/lib/orchestrator/types.d.ts.map +1 -1
  143. package/lib/outbound/send-proactive.d.ts +3 -13
  144. package/lib/outbound/send-proactive.d.ts.map +1 -1
  145. package/lib/outbound/send-proactive.js +1 -53
  146. package/lib/outbound/send-proactive.js.map +1 -1
  147. package/lib/plugin-runtime/agent-host-port.d.ts +12 -3
  148. package/lib/plugin-runtime/agent-host-port.d.ts.map +1 -1
  149. package/lib/plugin-runtime/agent-host-port.js +1 -1
  150. package/lib/plugin-runtime/agent-host-port.js.map +1 -1
  151. package/lib/plugin-runtime/agent-runtime.d.ts +7 -4
  152. package/lib/plugin-runtime/agent-runtime.d.ts.map +1 -1
  153. package/lib/plugin-runtime/agent-runtime.js +3 -2
  154. package/lib/plugin-runtime/agent-runtime.js.map +1 -1
  155. package/lib/plugin-runtime/capability-tools.d.ts.map +1 -1
  156. package/lib/plugin-runtime/capability-tools.js +3 -0
  157. package/lib/plugin-runtime/capability-tools.js.map +1 -1
  158. package/lib/plugin-runtime/deferred-capability-plan.d.ts +1 -0
  159. package/lib/plugin-runtime/deferred-capability-plan.d.ts.map +1 -1
  160. package/lib/plugin-runtime/deferred-capability-plan.js +7 -1
  161. package/lib/plugin-runtime/deferred-capability-plan.js.map +1 -1
  162. package/lib/plugin-runtime/full-agent-turn-engine.d.ts.map +1 -1
  163. package/lib/plugin-runtime/full-agent-turn-engine.js +239 -14
  164. package/lib/plugin-runtime/full-agent-turn-engine.js.map +1 -1
  165. package/lib/plugin-runtime/host-mcp-projection.d.ts.map +1 -1
  166. package/lib/plugin-runtime/host-mcp-projection.js +17 -2
  167. package/lib/plugin-runtime/host-mcp-projection.js.map +1 -1
  168. package/lib/plugin-runtime/schedule-capability-plan.d.ts +20 -0
  169. package/lib/plugin-runtime/schedule-capability-plan.d.ts.map +1 -0
  170. package/lib/plugin-runtime/schedule-capability-plan.js +88 -0
  171. package/lib/plugin-runtime/schedule-capability-plan.js.map +1 -0
  172. package/lib/prompt/assembly.d.ts.map +1 -1
  173. package/lib/prompt/assembly.js +2 -0
  174. package/lib/prompt/assembly.js.map +1 -1
  175. package/lib/prompt/define-agent-prompt-section.d.ts +29 -0
  176. package/lib/prompt/define-agent-prompt-section.d.ts.map +1 -0
  177. package/lib/prompt/define-agent-prompt-section.js +22 -0
  178. package/lib/prompt/define-agent-prompt-section.js.map +1 -0
  179. package/lib/prompt/discover-prompt-sections.d.ts +21 -0
  180. package/lib/prompt/discover-prompt-sections.d.ts.map +1 -0
  181. package/lib/prompt/discover-prompt-sections.js +49 -0
  182. package/lib/prompt/discover-prompt-sections.js.map +1 -0
  183. package/lib/prompt/index.d.ts +10 -1
  184. package/lib/prompt/index.d.ts.map +1 -1
  185. package/lib/prompt/index.js +6 -1
  186. package/lib/prompt/index.js.map +1 -1
  187. package/lib/prompt/prompt-assembly-registry.d.ts +31 -0
  188. package/lib/prompt/prompt-assembly-registry.d.ts.map +1 -0
  189. package/lib/prompt/prompt-assembly-registry.js +56 -0
  190. package/lib/prompt/prompt-assembly-registry.js.map +1 -0
  191. package/lib/prompt/prompt-budget.d.ts +9 -0
  192. package/lib/prompt/prompt-budget.d.ts.map +1 -0
  193. package/lib/prompt/prompt-budget.js +28 -0
  194. package/lib/prompt/prompt-budget.js.map +1 -0
  195. package/lib/prompt/prompt-builder.js +1 -1
  196. package/lib/prompt/prompt-builder.js.map +1 -1
  197. package/lib/prompt/prompt-section-loader.d.ts +27 -0
  198. package/lib/prompt/prompt-section-loader.d.ts.map +1 -0
  199. package/lib/prompt/prompt-section-loader.js +75 -0
  200. package/lib/prompt/prompt-section-loader.js.map +1 -0
  201. package/lib/prompt/system-prompt.d.ts +5 -8
  202. package/lib/prompt/system-prompt.d.ts.map +1 -1
  203. package/lib/prompt/system-prompt.js +159 -78
  204. package/lib/prompt/system-prompt.js.map +1 -1
  205. package/lib/prompt/tokens.d.ts +8 -0
  206. package/lib/prompt/tokens.d.ts.map +1 -0
  207. package/lib/prompt/tokens.js +2 -0
  208. package/lib/prompt/tokens.js.map +1 -0
  209. package/lib/prompt/turn-prompt-profile.d.ts +1 -2
  210. package/lib/prompt/turn-prompt-profile.d.ts.map +1 -1
  211. package/lib/schedule-domain/audit-logger.d.ts +2 -2
  212. package/lib/schedule-domain/audit-logger.d.ts.map +1 -1
  213. package/lib/schedule-domain/execution-domain.d.ts +21 -17
  214. package/lib/schedule-domain/execution-domain.d.ts.map +1 -1
  215. package/lib/schedule-domain/execution-domain.js +41 -23
  216. package/lib/schedule-domain/execution-domain.js.map +1 -1
  217. package/lib/schedule-domain/index.d.ts +0 -1
  218. package/lib/schedule-domain/index.d.ts.map +1 -1
  219. package/lib/schedule-domain/index.js +0 -1
  220. package/lib/schedule-domain/index.js.map +1 -1
  221. package/lib/schedule-domain/prompt-assembler.d.ts +3 -4
  222. package/lib/schedule-domain/prompt-assembler.d.ts.map +1 -1
  223. package/lib/schedule-domain/prompt-assembler.js +0 -16
  224. package/lib/schedule-domain/prompt-assembler.js.map +1 -1
  225. package/lib/schedule-domain/security-harness.d.ts +10 -15
  226. package/lib/schedule-domain/security-harness.d.ts.map +1 -1
  227. package/lib/schedule-domain/security-harness.js +5 -78
  228. package/lib/schedule-domain/security-harness.js.map +1 -1
  229. package/lib/seam/index.d.ts +8 -0
  230. package/lib/seam/index.d.ts.map +1 -0
  231. package/lib/seam/index.js +4 -0
  232. package/lib/seam/index.js.map +1 -0
  233. package/lib/seam/seam-integration.d.ts +46 -0
  234. package/lib/seam/seam-integration.d.ts.map +1 -0
  235. package/lib/seam/seam-integration.js +70 -0
  236. package/lib/seam/seam-integration.js.map +1 -0
  237. package/lib/seam/seam-provider.d.ts +63 -0
  238. package/lib/seam/seam-provider.d.ts.map +1 -0
  239. package/lib/seam/seam-provider.js +66 -0
  240. package/lib/seam/seam-provider.js.map +1 -0
  241. package/lib/seam/skill-service.d.ts +49 -0
  242. package/lib/seam/skill-service.d.ts.map +1 -0
  243. package/lib/seam/skill-service.js +8 -0
  244. package/lib/seam/skill-service.js.map +1 -0
  245. package/lib/seam/tokens.d.ts +8 -0
  246. package/lib/seam/tokens.d.ts.map +1 -0
  247. package/lib/seam/tokens.js +5 -0
  248. package/lib/seam/tokens.js.map +1 -0
  249. package/lib/seam/tool-service.d.ts +58 -0
  250. package/lib/seam/tool-service.d.ts.map +1 -0
  251. package/lib/seam/tool-service.js +8 -0
  252. package/lib/seam/tool-service.js.map +1 -0
  253. package/lib/security/exec-policy.d.ts +2 -0
  254. package/lib/security/exec-policy.d.ts.map +1 -1
  255. package/lib/security/exec-policy.js +21 -0
  256. package/lib/security/exec-policy.js.map +1 -1
  257. package/lib/security/owner-approve-always-store.d.ts +8 -3
  258. package/lib/security/owner-approve-always-store.d.ts.map +1 -1
  259. package/lib/security/owner-approve-always-store.js +160 -173
  260. package/lib/security/owner-approve-always-store.js.map +1 -1
  261. package/lib/security/policy-facade.d.ts.map +1 -1
  262. package/lib/security/policy-facade.js +11 -1
  263. package/lib/security/policy-facade.js.map +1 -1
  264. package/lib/service.d.ts.map +1 -1
  265. package/lib/service.js +0 -7
  266. package/lib/service.js.map +1 -1
  267. package/lib/session/index.d.ts +3 -3
  268. package/lib/session/index.d.ts.map +1 -1
  269. package/lib/session/index.js +3 -3
  270. package/lib/session/index.js.map +1 -1
  271. package/lib/session/passive-group-session.js +1 -1
  272. package/lib/session/session-key.d.ts +4 -0
  273. package/lib/session/session-key.d.ts.map +1 -0
  274. package/lib/session/session-key.js +6 -0
  275. package/lib/session/session-key.js.map +1 -0
  276. package/lib/session/session-system.d.ts.map +1 -1
  277. package/lib/session/session-system.js +4 -4
  278. package/lib/session/session-system.js.map +1 -1
  279. package/lib/session/session-tree-commands.d.ts +2 -3
  280. package/lib/session/session-tree-commands.d.ts.map +1 -1
  281. package/lib/session/session-tree-commands.js +2 -5
  282. package/lib/session/session-tree-commands.js.map +1 -1
  283. package/lib/session/strategies.d.ts +1 -1
  284. package/lib/session/strategies.d.ts.map +1 -1
  285. package/lib/session/strategies.js +2 -2
  286. package/lib/session/strategies.js.map +1 -1
  287. package/lib/skill/skill-registry-as-service.d.ts +29 -0
  288. package/lib/skill/skill-registry-as-service.d.ts.map +1 -0
  289. package/lib/skill/skill-registry-as-service.js +53 -0
  290. package/lib/skill/skill-registry-as-service.js.map +1 -0
  291. package/lib/subagent/im-result-sink.d.ts.map +1 -1
  292. package/lib/subagent/im-result-sink.js +0 -1
  293. package/lib/subagent/im-result-sink.js.map +1 -1
  294. package/lib/subagent-goal-notify.d.ts +0 -9
  295. package/lib/subagent-goal-notify.d.ts.map +1 -1
  296. package/lib/subagent-goal-notify.js +0 -13
  297. package/lib/subagent-goal-notify.js.map +1 -1
  298. package/lib/task-executor.d.ts +14 -3
  299. package/lib/task-executor.d.ts.map +1 -1
  300. package/lib/task-executor.js +48 -61
  301. package/lib/task-executor.js.map +1 -1
  302. package/lib/tool/classic-tool-execution-authority.d.ts.map +1 -1
  303. package/lib/tool/classic-tool-execution-authority.js +4 -3
  304. package/lib/tool/classic-tool-execution-authority.js.map +1 -1
  305. package/lib/tool/prepare-turn-tools.d.ts +0 -2
  306. package/lib/tool/prepare-turn-tools.d.ts.map +1 -1
  307. package/lib/tool/prepare-turn-tools.js +1 -55
  308. package/lib/tool/prepare-turn-tools.js.map +1 -1
  309. package/lib/tool/tool-runtime.d.ts +1 -1
  310. package/lib/tool/tool-runtime.d.ts.map +1 -1
  311. package/lib/turn/auto-continue.js +1 -1
  312. package/lib/turn/auto-continue.js.map +1 -1
  313. package/lib/turn/cancel-intent.d.ts +2 -0
  314. package/lib/turn/cancel-intent.d.ts.map +1 -0
  315. package/lib/turn/cancel-intent.js +5 -0
  316. package/lib/turn/cancel-intent.js.map +1 -0
  317. package/lib/turn/index.d.ts +2 -0
  318. package/lib/turn/index.d.ts.map +1 -1
  319. package/lib/turn/index.js +2 -0
  320. package/lib/turn/index.js.map +1 -1
  321. package/lib/turn/persist-deferred-context.js +1 -1
  322. package/lib/turn/persist-deferred-context.js.map +1 -1
  323. package/lib/turn/persist-subagent-context.js +1 -1
  324. package/lib/turn/persist-subagent-context.js.map +1 -1
  325. package/lib/turn/process-stream.d.ts.map +1 -1
  326. package/lib/turn/process-stream.js +0 -2
  327. package/lib/turn/process-stream.js.map +1 -1
  328. package/lib/turn/prompt-controller.d.ts +2 -0
  329. package/lib/turn/prompt-controller.d.ts.map +1 -1
  330. package/lib/turn/prompt-controller.js +9 -0
  331. package/lib/turn/prompt-controller.js.map +1 -1
  332. package/lib/turn/trigger-cancelled-error.d.ts +10 -0
  333. package/lib/turn/trigger-cancelled-error.d.ts.map +1 -0
  334. package/lib/turn/trigger-cancelled-error.js +19 -0
  335. package/lib/turn/trigger-cancelled-error.js.map +1 -0
  336. package/lib/turn/turn-ingress.d.ts +21 -1
  337. package/lib/turn/turn-ingress.d.ts.map +1 -1
  338. package/lib/turn/turn-ingress.js +29 -0
  339. package/lib/turn/turn-ingress.js.map +1 -1
  340. package/lib/turn/turn-pipeline.d.ts +0 -5
  341. package/lib/turn/turn-pipeline.d.ts.map +1 -1
  342. package/lib/turn/turn-pipeline.js +12 -32
  343. package/lib/turn/turn-pipeline.js.map +1 -1
  344. package/lib/turn/turn-terminal.d.ts.map +1 -1
  345. package/lib/turn/turn-terminal.js +4 -0
  346. package/lib/turn/turn-terminal.js.map +1 -1
  347. package/lib/typing-indicator/adapter-integration.d.ts +1 -2
  348. package/lib/typing-indicator/adapter-integration.d.ts.map +1 -1
  349. package/lib/typing-indicator/adapter-integration.js.map +1 -1
  350. package/lib/typing-indicator/index.d.ts.map +1 -1
  351. package/lib/typing-indicator/index.js +3 -6
  352. package/lib/typing-indicator/index.js.map +1 -1
  353. package/lib/typing-indicator/integration.d.ts +2 -3
  354. package/lib/typing-indicator/integration.d.ts.map +1 -1
  355. package/lib/typing-indicator/integration.js +51 -17
  356. package/lib/typing-indicator/integration.js.map +1 -1
  357. package/lib/zhin-agent/index.d.ts +5 -8
  358. package/lib/zhin-agent/index.d.ts.map +1 -1
  359. package/lib/zhin-agent/index.js +21 -15
  360. package/lib/zhin-agent/index.js.map +1 -1
  361. package/package.json +9 -9
  362. package/lib/aop/index.d.ts +0 -11
  363. package/lib/aop/index.d.ts.map +0 -1
  364. package/lib/aop/index.js +0 -11
  365. package/lib/aop/index.js.map +0 -1
  366. package/lib/aop/pipeline/index.d.ts +0 -12
  367. package/lib/aop/pipeline/index.d.ts.map +0 -1
  368. package/lib/aop/pipeline/index.js +0 -12
  369. package/lib/aop/pipeline/index.js.map +0 -1
  370. package/lib/aop/pipeline/pipeline-flow.d.ts +0 -25
  371. package/lib/aop/pipeline/pipeline-flow.d.ts.map +0 -1
  372. package/lib/aop/pipeline/pipeline-flow.js +0 -115
  373. package/lib/aop/pipeline/pipeline-flow.js.map +0 -1
  374. package/lib/aop/pipeline/pipeline-mode.d.ts +0 -10
  375. package/lib/aop/pipeline/pipeline-mode.d.ts.map +0 -1
  376. package/lib/aop/pipeline/pipeline-mode.js +0 -16
  377. package/lib/aop/pipeline/pipeline-mode.js.map +0 -1
  378. package/lib/aop/pipeline/pipeline-service.d.ts +0 -123
  379. package/lib/aop/pipeline/pipeline-service.d.ts.map +0 -1
  380. package/lib/aop/pipeline/pipeline-service.js +0 -238
  381. package/lib/aop/pipeline/pipeline-service.js.map +0 -1
  382. package/lib/aop/pipeline/pipeline-transitions.d.ts +0 -14
  383. package/lib/aop/pipeline/pipeline-transitions.d.ts.map +0 -1
  384. package/lib/aop/pipeline/pipeline-transitions.js +0 -31
  385. package/lib/aop/pipeline/pipeline-transitions.js.map +0 -1
  386. package/lib/aop/pipeline/ports.d.ts +0 -16
  387. package/lib/aop/pipeline/ports.d.ts.map +0 -1
  388. package/lib/aop/pipeline/ports.js +0 -2
  389. package/lib/aop/pipeline/ports.js.map +0 -1
  390. package/lib/aop/pipeline/role-capability-policy.d.ts +0 -16
  391. package/lib/aop/pipeline/role-capability-policy.d.ts.map +0 -1
  392. package/lib/aop/pipeline/role-capability-policy.js +0 -29
  393. package/lib/aop/pipeline/role-capability-policy.js.map +0 -1
  394. package/lib/aop/runtime/index.d.ts +0 -9
  395. package/lib/aop/runtime/index.d.ts.map +0 -1
  396. package/lib/aop/runtime/index.js +0 -9
  397. package/lib/aop/runtime/index.js.map +0 -1
  398. package/lib/collaboration/collab-admin-gate.d.ts +0 -21
  399. package/lib/collaboration/collab-admin-gate.d.ts.map +0 -1
  400. package/lib/collaboration/collab-admin-gate.js +0 -74
  401. package/lib/collaboration/collab-admin-gate.js.map +0 -1
  402. package/lib/collaboration/collab-utils.d.ts +0 -15
  403. package/lib/collaboration/collab-utils.d.ts.map +0 -1
  404. package/lib/collaboration/collab-utils.js +0 -37
  405. package/lib/collaboration/collab-utils.js.map +0 -1
  406. package/lib/collaboration/collaboration-artifact-repository.d.ts +0 -48
  407. package/lib/collaboration/collaboration-artifact-repository.d.ts.map +0 -1
  408. package/lib/collaboration/collaboration-artifact-repository.js +0 -114
  409. package/lib/collaboration/collaboration-artifact-repository.js.map +0 -1
  410. package/lib/collaboration/collaboration-commands.d.ts +0 -38
  411. package/lib/collaboration/collaboration-commands.d.ts.map +0 -1
  412. package/lib/collaboration/collaboration-commands.js +0 -373
  413. package/lib/collaboration/collaboration-commands.js.map +0 -1
  414. package/lib/collaboration/collaboration-config.d.ts +0 -30
  415. package/lib/collaboration/collaboration-config.d.ts.map +0 -1
  416. package/lib/collaboration/collaboration-config.js +0 -170
  417. package/lib/collaboration/collaboration-config.js.map +0 -1
  418. package/lib/collaboration/collaboration-context.d.ts +0 -15
  419. package/lib/collaboration/collaboration-context.d.ts.map +0 -1
  420. package/lib/collaboration/collaboration-context.js +0 -101
  421. package/lib/collaboration/collaboration-context.js.map +0 -1
  422. package/lib/collaboration/collaboration-db-model.d.ts +0 -350
  423. package/lib/collaboration/collaboration-db-model.d.ts.map +0 -1
  424. package/lib/collaboration/collaboration-db-model.js +0 -112
  425. package/lib/collaboration/collaboration-db-model.js.map +0 -1
  426. package/lib/collaboration/collaboration-delegation.d.ts +0 -21
  427. package/lib/collaboration/collaboration-delegation.d.ts.map +0 -1
  428. package/lib/collaboration/collaboration-delegation.js +0 -221
  429. package/lib/collaboration/collaboration-delegation.js.map +0 -1
  430. package/lib/collaboration/collaboration-dispatch.d.ts +0 -32
  431. package/lib/collaboration/collaboration-dispatch.d.ts.map +0 -1
  432. package/lib/collaboration/collaboration-dispatch.js +0 -93
  433. package/lib/collaboration/collaboration-dispatch.js.map +0 -1
  434. package/lib/collaboration/collaboration-kernel-bridge.d.ts +0 -23
  435. package/lib/collaboration/collaboration-kernel-bridge.d.ts.map +0 -1
  436. package/lib/collaboration/collaboration-kernel-bridge.js +0 -105
  437. package/lib/collaboration/collaboration-kernel-bridge.js.map +0 -1
  438. package/lib/collaboration/collaboration-outbound.d.ts +0 -64
  439. package/lib/collaboration/collaboration-outbound.d.ts.map +0 -1
  440. package/lib/collaboration/collaboration-outbound.js +0 -312
  441. package/lib/collaboration/collaboration-outbound.js.map +0 -1
  442. package/lib/collaboration/collaboration-scene-repository.d.ts +0 -154
  443. package/lib/collaboration/collaboration-scene-repository.d.ts.map +0 -1
  444. package/lib/collaboration/collaboration-scene-repository.js +0 -451
  445. package/lib/collaboration/collaboration-scene-repository.js.map +0 -1
  446. package/lib/collaboration/collaboration-turn-snapshot.d.ts +0 -18
  447. package/lib/collaboration/collaboration-turn-snapshot.d.ts.map +0 -1
  448. package/lib/collaboration/collaboration-turn-snapshot.js +0 -35
  449. package/lib/collaboration/collaboration-turn-snapshot.js.map +0 -1
  450. package/lib/collaboration/delegation-state.d.ts +0 -30
  451. package/lib/collaboration/delegation-state.d.ts.map +0 -1
  452. package/lib/collaboration/delegation-state.js +0 -86
  453. package/lib/collaboration/delegation-state.js.map +0 -1
  454. package/lib/collaboration/endpoint-identity.d.ts +0 -28
  455. package/lib/collaboration/endpoint-identity.d.ts.map +0 -1
  456. package/lib/collaboration/endpoint-identity.js +0 -80
  457. package/lib/collaboration/endpoint-identity.js.map +0 -1
  458. package/lib/collaboration/group-feed.d.ts +0 -30
  459. package/lib/collaboration/group-feed.d.ts.map +0 -1
  460. package/lib/collaboration/group-feed.js +0 -150
  461. package/lib/collaboration/group-feed.js.map +0 -1
  462. package/lib/collaboration/group-message.d.ts +0 -53
  463. package/lib/collaboration/group-message.d.ts.map +0 -1
  464. package/lib/collaboration/group-message.js +0 -101
  465. package/lib/collaboration/group-message.js.map +0 -1
  466. package/lib/collaboration/im-mention-delegate.d.ts +0 -22
  467. package/lib/collaboration/im-mention-delegate.d.ts.map +0 -1
  468. package/lib/collaboration/im-mention-delegate.js +0 -15
  469. package/lib/collaboration/im-mention-delegate.js.map +0 -1
  470. package/lib/collaboration/inbound-peer-handback.d.ts +0 -18
  471. package/lib/collaboration/inbound-peer-handback.d.ts.map +0 -1
  472. package/lib/collaboration/inbound-peer-handback.js +0 -65
  473. package/lib/collaboration/inbound-peer-handback.js.map +0 -1
  474. package/lib/collaboration/inbound-spawn-task.d.ts +0 -29
  475. package/lib/collaboration/inbound-spawn-task.d.ts.map +0 -1
  476. package/lib/collaboration/inbound-spawn-task.js +0 -96
  477. package/lib/collaboration/inbound-spawn-task.js.map +0 -1
  478. package/lib/collaboration/inbound-turn-endpoint.d.ts +0 -16
  479. package/lib/collaboration/inbound-turn-endpoint.d.ts.map +0 -1
  480. package/lib/collaboration/inbound-turn-endpoint.js +0 -26
  481. package/lib/collaboration/inbound-turn-endpoint.js.map +0 -1
  482. package/lib/collaboration/inbound-turn-tools.d.ts +0 -13
  483. package/lib/collaboration/inbound-turn-tools.d.ts.map +0 -1
  484. package/lib/collaboration/inbound-turn-tools.js +0 -24
  485. package/lib/collaboration/inbound-turn-tools.js.map +0 -1
  486. package/lib/collaboration/index.d.ts +0 -21
  487. package/lib/collaboration/index.d.ts.map +0 -1
  488. package/lib/collaboration/index.js +0 -19
  489. package/lib/collaboration/index.js.map +0 -1
  490. package/lib/collaboration/init-observe-hook.d.ts +0 -56
  491. package/lib/collaboration/init-observe-hook.d.ts.map +0 -1
  492. package/lib/collaboration/init-observe-hook.js +0 -168
  493. package/lib/collaboration/init-observe-hook.js.map +0 -1
  494. package/lib/collaboration/init-wizard-service.d.ts +0 -57
  495. package/lib/collaboration/init-wizard-service.d.ts.map +0 -1
  496. package/lib/collaboration/init-wizard-service.js +0 -187
  497. package/lib/collaboration/init-wizard-service.js.map +0 -1
  498. package/lib/collaboration/outbound-resolver.d.ts +0 -37
  499. package/lib/collaboration/outbound-resolver.d.ts.map +0 -1
  500. package/lib/collaboration/outbound-resolver.js +0 -189
  501. package/lib/collaboration/outbound-resolver.js.map +0 -1
  502. package/lib/collaboration/peer-policy.d.ts +0 -29
  503. package/lib/collaboration/peer-policy.d.ts.map +0 -1
  504. package/lib/collaboration/peer-policy.js +0 -118
  505. package/lib/collaboration/peer-policy.js.map +0 -1
  506. package/lib/collaboration/resolve-agent-session-key.d.ts +0 -21
  507. package/lib/collaboration/resolve-agent-session-key.d.ts.map +0 -1
  508. package/lib/collaboration/resolve-agent-session-key.js +0 -61
  509. package/lib/collaboration/resolve-agent-session-key.js.map +0 -1
  510. package/lib/collaboration/runtime-inbound-gate.d.ts +0 -35
  511. package/lib/collaboration/runtime-inbound-gate.d.ts.map +0 -1
  512. package/lib/collaboration/runtime-inbound-gate.js +0 -105
  513. package/lib/collaboration/runtime-inbound-gate.js.map +0 -1
  514. package/lib/collaboration/scene-context.d.ts +0 -17
  515. package/lib/collaboration/scene-context.d.ts.map +0 -1
  516. package/lib/collaboration/scene-context.js +0 -22
  517. package/lib/collaboration/scene-context.js.map +0 -1
  518. package/lib/collaboration/scene-identity-service.d.ts +0 -169
  519. package/lib/collaboration/scene-identity-service.d.ts.map +0 -1
  520. package/lib/collaboration/scene-identity-service.js +0 -479
  521. package/lib/collaboration/scene-identity-service.js.map +0 -1
  522. package/lib/collaboration/scene-service.d.ts +0 -67
  523. package/lib/collaboration/scene-service.d.ts.map +0 -1
  524. package/lib/collaboration/scene-service.js +0 -157
  525. package/lib/collaboration/scene-service.js.map +0 -1
  526. package/lib/collaboration/structured-ai-outbound.d.ts +0 -25
  527. package/lib/collaboration/structured-ai-outbound.d.ts.map +0 -1
  528. package/lib/collaboration/structured-ai-outbound.js +0 -179
  529. package/lib/collaboration/structured-ai-outbound.js.map +0 -1
  530. package/lib/collaboration/turn-plan-resolver.d.ts +0 -17
  531. package/lib/collaboration/turn-plan-resolver.d.ts.map +0 -1
  532. package/lib/collaboration/turn-plan-resolver.js +0 -63
  533. package/lib/collaboration/turn-plan-resolver.js.map +0 -1
  534. package/lib/collaboration/types.d.ts +0 -147
  535. package/lib/collaboration/types.d.ts.map +0 -1
  536. package/lib/collaboration/types.js +0 -16
  537. package/lib/collaboration/types.js.map +0 -1
  538. package/lib/collaboration/wire-collaboration-storage.d.ts +0 -4
  539. package/lib/collaboration/wire-collaboration-storage.d.ts.map +0 -1
  540. package/lib/collaboration/wire-collaboration-storage.js +0 -26
  541. package/lib/collaboration/wire-collaboration-storage.js.map +0 -1
  542. package/lib/config/resolve-pipeline-binding.d.ts +0 -16
  543. package/lib/config/resolve-pipeline-binding.d.ts.map +0 -1
  544. package/lib/config/resolve-pipeline-binding.js +0 -35
  545. package/lib/config/resolve-pipeline-binding.js.map +0 -1
  546. package/lib/discovery/register-agent-surface.d.ts +0 -33
  547. package/lib/discovery/register-agent-surface.d.ts.map +0 -1
  548. package/lib/discovery/register-agent-surface.js +0 -170
  549. package/lib/discovery/register-agent-surface.js.map +0 -1
  550. package/lib/init/create-zhin-agent.d.ts +0 -3
  551. package/lib/init/create-zhin-agent.d.ts.map +0 -1
  552. package/lib/init/create-zhin-agent.js +0 -401
  553. package/lib/init/create-zhin-agent.js.map +0 -1
  554. package/lib/init/register-ai-service.d.ts +0 -7
  555. package/lib/init/register-ai-service.d.ts.map +0 -1
  556. package/lib/init/register-ai-service.js +0 -45
  557. package/lib/init/register-ai-service.js.map +0 -1
  558. package/lib/init/register-builtin-tools.d.ts +0 -3
  559. package/lib/init/register-builtin-tools.d.ts.map +0 -1
  560. package/lib/init/register-builtin-tools.js +0 -411
  561. package/lib/init/register-builtin-tools.js.map +0 -1
  562. package/lib/init/register-capability-features.d.ts +0 -2
  563. package/lib/init/register-capability-features.d.ts.map +0 -1
  564. package/lib/init/register-capability-features.js +0 -28
  565. package/lib/init/register-capability-features.js.map +0 -1
  566. package/lib/init/register-collaboration-commands.d.ts +0 -2
  567. package/lib/init/register-collaboration-commands.d.ts.map +0 -1
  568. package/lib/init/register-collaboration-commands.js +0 -110
  569. package/lib/init/register-collaboration-commands.js.map +0 -1
  570. package/lib/init/register-db-models.d.ts +0 -2
  571. package/lib/init/register-db-models.d.ts.map +0 -1
  572. package/lib/init/register-db-models.js +0 -18
  573. package/lib/init/register-db-models.js.map +0 -1
  574. package/lib/init/register-db-upgrade.d.ts +0 -7
  575. package/lib/init/register-db-upgrade.d.ts.map +0 -1
  576. package/lib/init/register-db-upgrade.js +0 -79
  577. package/lib/init/register-db-upgrade.js.map +0 -1
  578. package/lib/init/register-group-session-passive.d.ts +0 -3
  579. package/lib/init/register-group-session-passive.d.ts.map +0 -1
  580. package/lib/init/register-group-session-passive.js +0 -61
  581. package/lib/init/register-group-session-passive.js.map +0 -1
  582. package/lib/init/register-im-segment-filter.d.ts +0 -2
  583. package/lib/init/register-im-segment-filter.d.ts.map +0 -1
  584. package/lib/init/register-im-segment-filter.js +0 -23
  585. package/lib/init/register-im-segment-filter.js.map +0 -1
  586. package/lib/init/register-init-wizard-guardrail.d.ts +0 -2
  587. package/lib/init/register-init-wizard-guardrail.d.ts.map +0 -1
  588. package/lib/init/register-init-wizard-guardrail.js +0 -41
  589. package/lib/init/register-init-wizard-guardrail.js.map +0 -1
  590. package/lib/init/register-introspection-commands.d.ts +0 -3
  591. package/lib/init/register-introspection-commands.d.ts.map +0 -1
  592. package/lib/init/register-introspection-commands.js +0 -107
  593. package/lib/init/register-introspection-commands.js.map +0 -1
  594. package/lib/init/register-management-tools.d.ts +0 -10
  595. package/lib/init/register-management-tools.d.ts.map +0 -1
  596. package/lib/init/register-management-tools.js +0 -42
  597. package/lib/init/register-management-tools.js.map +0 -1
  598. package/lib/init/register-mcp-from-config.d.ts +0 -2
  599. package/lib/init/register-mcp-from-config.d.ts.map +0 -1
  600. package/lib/init/register-mcp-from-config.js +0 -87
  601. package/lib/init/register-mcp-from-config.js.map +0 -1
  602. package/lib/init/register-orchestrator.d.ts +0 -2
  603. package/lib/init/register-orchestrator.d.ts.map +0 -1
  604. package/lib/init/register-orchestrator.js +0 -15
  605. package/lib/init/register-orchestrator.js.map +0 -1
  606. package/lib/init/register-tool-service.d.ts +0 -2
  607. package/lib/init/register-tool-service.d.ts.map +0 -1
  608. package/lib/init/register-tool-service.js +0 -9
  609. package/lib/init/register-tool-service.js.map +0 -1
  610. package/lib/init/shared-refs.d.ts +0 -14
  611. package/lib/init/shared-refs.d.ts.map +0 -1
  612. package/lib/init/shared-refs.js +0 -7
  613. package/lib/init/shared-refs.js.map +0 -1
  614. package/lib/init/types.d.ts +0 -26
  615. package/lib/init/types.d.ts.map +0 -1
  616. package/lib/init/types.js +0 -7
  617. package/lib/init/types.js.map +0 -1
  618. package/lib/init.d.ts +0 -7
  619. package/lib/init.d.ts.map +0 -1
  620. package/lib/init.js +0 -11
  621. package/lib/init.js.map +0 -1
  622. package/lib/schedule-domain/tool-resolver.d.ts +0 -20
  623. package/lib/schedule-domain/tool-resolver.d.ts.map +0 -1
  624. package/lib/schedule-domain/tool-resolver.js +0 -80
  625. package/lib/schedule-domain/tool-resolver.js.map +0 -1
  626. package/lib/schedule-domain/turn-context.d.ts +0 -9
  627. package/lib/schedule-domain/turn-context.d.ts.map +0 -1
  628. package/lib/schedule-domain/turn-context.js +0 -36
  629. package/lib/schedule-domain/turn-context.js.map +0 -1
  630. package/lib/session/agent-session-host-port.d.ts +0 -23
  631. package/lib/session/agent-session-host-port.d.ts.map +0 -1
  632. package/lib/session/agent-session-host-port.js +0 -61
  633. package/lib/session/agent-session-host-port.js.map +0 -1
  634. package/lib/session/http-agent-session-store.d.ts +0 -76
  635. package/lib/session/http-agent-session-store.d.ts.map +0 -1
  636. package/lib/session/http-agent-session-store.js +0 -211
  637. package/lib/session/http-agent-session-store.js.map +0 -1
  638. package/lib/session/http-approval-adapter.d.ts +0 -11
  639. package/lib/session/http-approval-adapter.d.ts.map +0 -1
  640. package/lib/session/http-approval-adapter.js +0 -19
  641. package/lib/session/http-approval-adapter.js.map +0 -1
  642. package/lib/session/http-approval-waiter.d.ts +0 -11
  643. package/lib/session/http-approval-waiter.d.ts.map +0 -1
  644. package/lib/session/http-approval-waiter.js +0 -61
  645. package/lib/session/http-approval-waiter.js.map +0 -1
  646. package/lib/session/http-session-persistence.d.ts +0 -28
  647. package/lib/session/http-session-persistence.d.ts.map +0 -1
  648. package/lib/session/http-session-persistence.js +0 -60
  649. package/lib/session/http-session-persistence.js.map +0 -1
  650. package/lib/session/http-session-sink.d.ts +0 -11
  651. package/lib/session/http-session-sink.d.ts.map +0 -1
  652. package/lib/session/http-session-sink.js +0 -32
  653. package/lib/session/http-session-sink.js.map +0 -1
  654. package/lib/session/http-step-projector.d.ts +0 -16
  655. package/lib/session/http-step-projector.d.ts.map +0 -1
  656. package/lib/session/http-step-projector.js +0 -118
  657. package/lib/session/http-step-projector.js.map +0 -1
  658. package/lib/session/http-turn-runner.d.ts +0 -16
  659. package/lib/session/http-turn-runner.d.ts.map +0 -1
  660. package/lib/session/http-turn-runner.js +0 -57
  661. package/lib/session/http-turn-runner.js.map +0 -1
  662. package/lib/session/park-controller.d.ts +0 -24
  663. package/lib/session/park-controller.d.ts.map +0 -1
  664. package/lib/session/park-controller.js +0 -58
  665. package/lib/session/park-controller.js.map +0 -1
  666. package/lib/session/resolve-approval-port.d.ts +0 -7
  667. package/lib/session/resolve-approval-port.d.ts.map +0 -1
  668. package/lib/session/resolve-approval-port.js +0 -13
  669. package/lib/session/resolve-approval-port.js.map +0 -1
  670. package/lib/session/session-event-log.d.ts +0 -17
  671. package/lib/session/session-event-log.d.ts.map +0 -1
  672. package/lib/session/session-event-log.js +0 -56
  673. package/lib/session/session-event-log.js.map +0 -1
@@ -1,101 +0,0 @@
1
- import { buildAiOutboundPromptHint } from '@zhin.js/core';
2
- import { resolveCellForScene, findCellMemberByEndpoint } from './collaboration-config.js';
3
- /** 每轮 turn envelope 用的精简 Cell 提示(勿重复 buildAiOutboundPromptHint 长文)。 */
4
- export function formatCollaborationTurnCellHint(cell, currentEndpointKey) {
5
- const self = findCellMemberByEndpoint(cell, currentEndpointKey);
6
- const peers = cell.members.filter((m) => m.endpointKey !== currentEndpointKey);
7
- const peerBrief = peers
8
- .map((p) => `${p.primary}=${p.endpointKey}`)
9
- .join(', ');
10
- const lines = [
11
- `[Cell ${cell.id}] You: ${self?.primary ?? currentEndpointKey} (${currentEndpointKey})`,
12
- ];
13
- if (cell.goal?.trim())
14
- lines.push(`Goal: ${cell.goal.trim()}`);
15
- if (peerBrief)
16
- lines.push(`Peers: ${peerBrief}`);
17
- lines.push('Peer dispatch uses internal_room via the orchestration kernel; IM @ is optional (im_projection / project_to_im).');
18
- lines.push('If the inbound message includes #taskId (im_projection), include that #taskId in your public handback.');
19
- return lines.join('\n');
20
- }
21
- export function formatCollaborationSceneHint(cell, currentEndpointKey, options) {
22
- const self = findCellMemberByEndpoint(cell, currentEndpointKey);
23
- const peers = cell.members.filter((m) => m.endpointKey !== currentEndpointKey);
24
- const cellLines = [
25
- '[Collaboration cell]',
26
- `Cell: ${cell.id} (adapter ${cell.adapter}, scene ${cell.sceneId})`,
27
- ];
28
- if (cell.goal?.trim())
29
- cellLines.push(`Goal: ${cell.goal.trim()}`);
30
- if (self) {
31
- cellLines.push(`You: endpoint ${currentEndpointKey}, agent "${self.primary}"${self.role ? ` (${self.role})` : ''}.`);
32
- }
33
- if (peers.length > 0) {
34
- cellLines.push('Peers:');
35
- for (const peer of peers) {
36
- cellLines.push(`- "${peer.endpointKey}": agent "${peer.primary}"${peer.role ? ` (${peer.role})` : ''}`);
37
- }
38
- }
39
- const lines = [
40
- buildAiOutboundPromptHint({
41
- rosterLines: cellLines,
42
- forceJsonOnly: options?.forceJsonOnly ?? false,
43
- }),
44
- 'Peer dispatch and task handback are managed by the orchestration kernel (internal_room; IM projection is optional).',
45
- ];
46
- return lines.join('\n');
47
- }
48
- /** 仅当入站消息命中多 Bot 协作 Cell 时返回 Cell(私聊、非成员、单 Bot Cell 均不注入)。 */
49
- export function resolveCollaborationSceneForMessage(message) {
50
- if (!message)
51
- return undefined;
52
- const scope = message.$channel?.type;
53
- if (scope !== 'group' && scope !== 'channel')
54
- return undefined;
55
- const sceneId = message.$channel?.id;
56
- if (!sceneId)
57
- return undefined;
58
- const endpointKey = String(message.$endpoint ?? '');
59
- if (!endpointKey)
60
- return undefined;
61
- return resolveCollaborationScene({
62
- platform: String(message.$adapter ?? ''),
63
- endpoint: endpointKey,
64
- scope,
65
- sceneId: String(sceneId),
66
- });
67
- }
68
- function resolveCollaborationScene(input) {
69
- if (input.scope !== 'group' && input.scope !== 'channel')
70
- return undefined;
71
- const cell = resolveCellForScene(input.platform, input.sceneId);
72
- if (!cell || cell.members.length < 2)
73
- return undefined;
74
- if (!findCellMemberByEndpoint(cell, input.endpoint))
75
- return undefined;
76
- return cell;
77
- }
78
- /** 构建 turn envelope 用的协作提示;不满足场景时返回 undefined。 */
79
- export function resolveCollaborationTurnHint(message, _inboundContent) {
80
- const cell = resolveCollaborationSceneForMessage(message);
81
- if (!cell)
82
- return undefined;
83
- const endpointKey = String(message.$endpoint);
84
- const lines = [
85
- formatCollaborationTurnCellHint(cell, endpointKey),
86
- ].filter(Boolean);
87
- return lines.join('\n');
88
- }
89
- /** Canonical Turn variant used by Agent Context; no IM Message crosses the boundary. */
90
- export function resolveCollaborationTurnHintFromOrigin(origin) {
91
- if (origin.kind !== 'im')
92
- return undefined;
93
- const cell = resolveCollaborationScene({
94
- platform: origin.platform,
95
- endpoint: origin.endpoint,
96
- scope: origin.scope,
97
- sceneId: origin.sceneId,
98
- });
99
- return cell ? formatCollaborationTurnCellHint(cell, origin.endpoint) : undefined;
100
- }
101
- //# sourceMappingURL=collaboration-context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collaboration-context.js","sourceRoot":"","sources":["../../src/collaboration/collaboration-context.ts"],"names":[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AAC,OAAO,CAAC,CAAC;IAC1D,IAAI,CAAC,IAAI;QAAE,OAAO,SAAS,CAAC;IAC5B,MAAM,WAAW,GAAG,MAAM,CAAC,OAAQ,CAAC,SAAS,CAAC,CAAC;IAC/C,MAAM,KAAK,GAAG;QACZ,+BAA+B,CAAC,IAAI,EAAE,WAAW,CAAC;KACnD,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAClB,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,wFAAwF;AACxF,MAAM,UAAU,sCAAsC,CAAC,MAAkB;IACvE,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI;QAAE,OAAO,SAAS,CAAC;IAC3C,MAAM,IAAI,GAAG,yBAAyB,CAAC;QACrC,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,OAAO,EAAE,MAAM,CAAC,OAAO;KACxB,CAAC,CAAC;IACH,OAAO,IAAI,CAAC,CAAC,CAAC,+BAA+B,CAAC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACnF,CAAC"}
@@ -1,350 +0,0 @@
1
- /**
2
- * collaboration_scenes + collaboration_scene_members — GroupCell 持久化(ADR 0023)
3
- */
4
- export declare const COLLABORATION_SCENE_MODEL: {
5
- id: {
6
- type: "text";
7
- nullable: boolean;
8
- };
9
- adapter: {
10
- type: "text";
11
- nullable: boolean;
12
- };
13
- scene_id: {
14
- type: "text";
15
- nullable: boolean;
16
- };
17
- goal: {
18
- type: "text";
19
- default: string;
20
- };
21
- mission_run_id: {
22
- type: "text";
23
- default: string;
24
- };
25
- /** Pipeline 状态机 JSON(ADR 0024 D4);空串表示尚未初始化。 */
26
- pipeline_state: {
27
- type: "text";
28
- default: string;
29
- };
30
- version: {
31
- type: "integer";
32
- default: number;
33
- };
34
- enabled: {
35
- type: "integer";
36
- default: number;
37
- };
38
- created_at: {
39
- type: "integer";
40
- default: number;
41
- };
42
- updated_at: {
43
- type: "integer";
44
- default: number;
45
- };
46
- };
47
- export declare const COLLABORATION_SCENE_MEMBER_MODEL: {
48
- collaboration_scene_id: {
49
- type: "text";
50
- nullable: boolean;
51
- };
52
- endpoint_id: {
53
- type: "text";
54
- nullable: boolean;
55
- };
56
- /** 成员 transport adapter;空串表示继承 Cell.adapter */
57
- adapter: {
58
- type: "text";
59
- default: string;
60
- };
61
- primary: {
62
- type: "text";
63
- nullable: boolean;
64
- };
65
- role: {
66
- type: "text";
67
- default: string;
68
- };
69
- /** Five-Agent pipeline 角色(ADR 0024 D3)。 */
70
- pipeline_role: {
71
- type: "text";
72
- default: string;
73
- };
74
- sort_order: {
75
- type: "integer";
76
- default: number;
77
- };
78
- enabled: {
79
- type: "integer";
80
- default: number;
81
- };
82
- created_at: {
83
- type: "integer";
84
- default: number;
85
- };
86
- updated_at: {
87
- type: "integer";
88
- default: number;
89
- };
90
- };
91
- /** Pipeline 阶段产物表(ADR 0024 D4)。 */
92
- export declare const COLLABORATION_SCENE_ARTIFACT_MODEL: {
93
- id: {
94
- type: "text";
95
- nullable: boolean;
96
- };
97
- collaboration_scene_id: {
98
- type: "text";
99
- nullable: boolean;
100
- };
101
- run_id: {
102
- type: "text";
103
- default: string;
104
- };
105
- stage: {
106
- type: "text";
107
- default: string;
108
- };
109
- kind: {
110
- type: "text";
111
- default: string;
112
- };
113
- payload: {
114
- type: "text";
115
- default: string;
116
- };
117
- created_by_endpoint: {
118
- type: "text";
119
- default: string;
120
- };
121
- created_at: {
122
- type: "integer";
123
- default: number;
124
- };
125
- };
126
- export interface CollaborationSceneArtifactRow {
127
- id: string;
128
- collaboration_scene_id: string;
129
- run_id: string;
130
- stage: string;
131
- kind: string;
132
- payload: string;
133
- created_by_endpoint: string;
134
- created_at: number;
135
- }
136
- export interface CollaborationSceneRecord {
137
- id: string;
138
- adapter: string;
139
- scene_id: string;
140
- goal: string;
141
- mission_run_id: string;
142
- pipeline_state: string;
143
- version: number;
144
- enabled: number;
145
- created_at: number;
146
- updated_at: number;
147
- }
148
- export interface CollaborationSceneMemberRow {
149
- collaboration_scene_id: string;
150
- endpoint_id: string;
151
- adapter: string;
152
- primary: string;
153
- role: string;
154
- pipeline_role: string;
155
- sort_order: number;
156
- enabled: number;
157
- created_at: number;
158
- updated_at: number;
159
- }
160
- export interface CollaborationSceneMemberRecord {
161
- endpointKey: string;
162
- adapter?: string;
163
- primary: string;
164
- role?: string;
165
- pipelineRole?: string;
166
- sortOrder?: number;
167
- enabled?: boolean;
168
- }
169
- export interface UpsertCollaborationSceneInput {
170
- id: string;
171
- adapter: string;
172
- sceneId: string;
173
- goal?: string;
174
- missionRunId?: string;
175
- pipelineState?: string;
176
- members?: CollaborationSceneMemberRecord[];
177
- enabled?: boolean;
178
- }
179
- export interface UpsertCollaborationMemberInput {
180
- endpointKey: string;
181
- adapter?: string;
182
- primary: string;
183
- role?: string;
184
- pipelineRole?: string;
185
- sortOrder?: number;
186
- enabled?: boolean;
187
- }
188
- export declare function memberRowToRecord(row: CollaborationSceneMemberRow): CollaborationSceneMemberRecord;
189
- export declare function memberInputToRow(collaborationSceneId: string, input: UpsertCollaborationMemberInput, now?: number, existing?: CollaborationSceneMemberRow): CollaborationSceneMemberRow;
190
- export declare const COLLABORATION_SCENE_ALIAS_MODEL: {
191
- logical_scene_id: {
192
- type: "text";
193
- nullable: boolean;
194
- };
195
- adapter: {
196
- type: "text";
197
- nullable: boolean;
198
- };
199
- scene_id: {
200
- type: "text";
201
- nullable: boolean;
202
- };
203
- created_at: {
204
- type: "integer";
205
- default: number;
206
- };
207
- };
208
- export declare const COLLABORATION_INIT_SESSION_MODEL: {
209
- id: {
210
- type: "text";
211
- nullable: boolean;
212
- };
213
- logical_scene_id: {
214
- type: "text";
215
- default: string;
216
- };
217
- planner_endpoint_id: {
218
- type: "text";
219
- nullable: boolean;
220
- };
221
- planner_adapter: {
222
- type: "text";
223
- nullable: boolean;
224
- };
225
- planner_scene_id: {
226
- type: "text";
227
- default: string;
228
- };
229
- status: {
230
- type: "text";
231
- default: string;
232
- };
233
- wizard_step: {
234
- type: "text";
235
- default: string;
236
- };
237
- created_at: {
238
- type: "integer";
239
- default: number;
240
- };
241
- updated_at: {
242
- type: "integer";
243
- default: number;
244
- };
245
- };
246
- export declare const COLLABORATION_INIT_OBSERVATION_MODEL: {
247
- session_id: {
248
- type: "text";
249
- nullable: boolean;
250
- };
251
- observer_endpoint_id: {
252
- type: "text";
253
- nullable: boolean;
254
- };
255
- observer_adapter: {
256
- type: "text";
257
- nullable: boolean;
258
- };
259
- observer_scene_id: {
260
- type: "text";
261
- nullable: boolean;
262
- };
263
- at_target_platform_id: {
264
- type: "text";
265
- nullable: boolean;
266
- };
267
- wizard_step: {
268
- type: "text";
269
- default: string;
270
- };
271
- observed_at: {
272
- type: "integer";
273
- default: number;
274
- };
275
- };
276
- export interface CollaborationSceneAliasRow {
277
- logical_scene_id: string;
278
- adapter: string;
279
- scene_id: string;
280
- created_at: number;
281
- }
282
- export interface CollaborationInitSessionRow {
283
- id: string;
284
- logical_scene_id: string;
285
- planner_endpoint_id: string;
286
- planner_adapter: string;
287
- planner_scene_id: string;
288
- status: string;
289
- wizard_step: string;
290
- created_at: number;
291
- updated_at: number;
292
- }
293
- export type InitSessionStatus = 'wizard' | 'aggregating' | 'active' | 'cancelled';
294
- export declare const WIZARD_STEPS: readonly ["researcher", "evaluator", "executor", "reviewer", "done"];
295
- export type WizardStep = typeof WIZARD_STEPS[number];
296
- /** 可分配角色的向导步骤(不含 done)。 */
297
- export declare const ASSIGNABLE_WIZARD_ROLES: readonly ["researcher", "evaluator", "executor", "reviewer"];
298
- export type AssignableWizardRole = typeof ASSIGNABLE_WIZARD_ROLES[number];
299
- export declare function isWizardStep(value: unknown): value is WizardStep;
300
- export declare function isAssignableWizardRole(value: unknown): value is AssignableWizardRole;
301
- export interface CollaborationInitObservationRow {
302
- session_id: string;
303
- observer_endpoint_id: string;
304
- observer_adapter: string;
305
- observer_scene_id: string;
306
- at_target_platform_id: string;
307
- wizard_step: string;
308
- observed_at: number;
309
- }
310
- /** 成员跨 adapter 身份表(identity 边表)。 */
311
- export declare const COLLABORATION_SCENE_MEMBER_CHANNEL_MODEL: {
312
- logical_scene_id: {
313
- type: "text";
314
- nullable: boolean;
315
- };
316
- endpoint_id: {
317
- type: "text";
318
- nullable: boolean;
319
- };
320
- pipeline_role: {
321
- type: "text";
322
- default: string;
323
- };
324
- adapter: {
325
- type: "text";
326
- nullable: boolean;
327
- };
328
- scene_id: {
329
- type: "text";
330
- nullable: boolean;
331
- };
332
- bot_id: {
333
- type: "text";
334
- nullable: boolean;
335
- };
336
- created_at: {
337
- type: "integer";
338
- default: number;
339
- };
340
- };
341
- export interface CollaborationSceneMemberChannelRow {
342
- logical_scene_id: string;
343
- endpoint_id: string;
344
- pipeline_role: string;
345
- adapter: string;
346
- scene_id: string;
347
- bot_id: string;
348
- created_at: number;
349
- }
350
- //# sourceMappingURL=collaboration-db-model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collaboration-db-model.d.ts","sourceRoot":"","sources":["../../src/collaboration/collaboration-db-model.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;IAMpC,gDAAgD;;;;;;;;;;;;;;;;;;;;;CAMjD,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;IAG3C,+CAA+C;;;;;;;;;;;;;IAI/C,2CAA2C;;;;;;;;;;;;;;;;;;;;;CAM5C,CAAC;AAEF,mCAAmC;AACnC,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS9C,CAAC;AAEF,MAAM,WAAW,6BAA6B;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB,EAAE,MAAM,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,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久化(ADR 0023)
3
- */
4
- export const COLLABORATION_SCENE_MODEL = {
5
- id: { type: 'text', nullable: false },
6
- adapter: { type: 'text', nullable: false },
7
- scene_id: { type: 'text', nullable: false },
8
- goal: { type: 'text', default: '' },
9
- mission_run_id: { type: 'text', default: '' },
10
- /** Pipeline 状态机 JSON(ADR 0024 D4);空串表示尚未初始化。 */
11
- pipeline_state: { type: 'text', default: '' },
12
- version: { type: 'integer', default: 0 },
13
- enabled: { type: 'integer', default: 1 },
14
- created_at: { type: 'integer', default: 0 },
15
- updated_at: { type: 'integer', default: 0 },
16
- };
17
- export const COLLABORATION_SCENE_MEMBER_MODEL = {
18
- collaboration_scene_id: { type: 'text', nullable: false },
19
- endpoint_id: { type: 'text', nullable: false },
20
- /** 成员 transport adapter;空串表示继承 Cell.adapter */
21
- adapter: { type: 'text', default: '' },
22
- primary: { type: 'text', nullable: false },
23
- role: { type: 'text', default: '' },
24
- /** Five-Agent pipeline 角色(ADR 0024 D3)。 */
25
- pipeline_role: { type: 'text', default: '' },
26
- sort_order: { type: 'integer', default: 0 },
27
- enabled: { type: 'integer', default: 1 },
28
- created_at: { type: 'integer', default: 0 },
29
- updated_at: { type: 'integer', default: 0 },
30
- };
31
- /** Pipeline 阶段产物表(ADR 0024 D4)。 */
32
- export const COLLABORATION_SCENE_ARTIFACT_MODEL = {
33
- id: { type: 'text', nullable: false },
34
- collaboration_scene_id: { type: 'text', nullable: false },
35
- run_id: { type: 'text', default: '' },
36
- stage: { type: 'text', default: '' },
37
- kind: { type: 'text', default: '' },
38
- payload: { type: 'text', default: '' },
39
- created_by_endpoint: { type: 'text', default: '' },
40
- created_at: { type: 'integer', default: 0 },
41
- };
42
- export function memberRowToRecord(row) {
43
- return {
44
- endpointKey: row.endpoint_id,
45
- adapter: row.adapter || undefined,
46
- primary: row.primary,
47
- role: row.role || undefined,
48
- pipelineRole: row.pipeline_role || undefined,
49
- sortOrder: row.sort_order,
50
- enabled: row.enabled !== 0,
51
- };
52
- }
53
- export function memberInputToRow(collaborationSceneId, input, now = Date.now(), existing) {
54
- return {
55
- collaboration_scene_id: collaborationSceneId,
56
- endpoint_id: input.endpointKey,
57
- adapter: input.adapter ?? existing?.adapter ?? '',
58
- primary: input.primary,
59
- role: input.role ?? existing?.role ?? '',
60
- pipeline_role: input.pipelineRole ?? existing?.pipeline_role ?? '',
61
- sort_order: input.sortOrder ?? existing?.sort_order ?? 0,
62
- enabled: input.enabled == null ? existing?.enabled ?? 1 : input.enabled === false ? 0 : 1,
63
- created_at: existing?.created_at ?? now,
64
- updated_at: now,
65
- };
66
- }
67
- export const COLLABORATION_SCENE_ALIAS_MODEL = {
68
- logical_scene_id: { type: 'text', nullable: false },
69
- adapter: { type: 'text', nullable: false },
70
- scene_id: { type: 'text', nullable: false },
71
- created_at: { type: 'integer', default: 0 },
72
- };
73
- export const COLLABORATION_INIT_SESSION_MODEL = {
74
- id: { type: 'text', nullable: false },
75
- logical_scene_id: { type: 'text', default: '' },
76
- planner_endpoint_id: { type: 'text', nullable: false },
77
- planner_adapter: { type: 'text', nullable: false },
78
- planner_scene_id: { type: 'text', default: '' },
79
- status: { type: 'text', default: 'wizard' },
80
- wizard_step: { type: 'text', default: '' },
81
- created_at: { type: 'integer', default: 0 },
82
- updated_at: { type: 'integer', default: 0 },
83
- };
84
- export const COLLABORATION_INIT_OBSERVATION_MODEL = {
85
- session_id: { type: 'text', nullable: false },
86
- observer_endpoint_id: { type: 'text', nullable: false },
87
- observer_adapter: { type: 'text', nullable: false },
88
- observer_scene_id: { type: 'text', nullable: false },
89
- at_target_platform_id: { type: 'text', nullable: false },
90
- wizard_step: { type: 'text', default: '' },
91
- observed_at: { type: 'integer', default: 0 },
92
- };
93
- export const WIZARD_STEPS = ['researcher', 'evaluator', 'executor', 'reviewer', 'done'];
94
- /** 可分配角色的向导步骤(不含 done)。 */
95
- export const ASSIGNABLE_WIZARD_ROLES = ['researcher', 'evaluator', 'executor', 'reviewer'];
96
- export function isWizardStep(value) {
97
- return typeof value === 'string' && WIZARD_STEPS.includes(value);
98
- }
99
- export function isAssignableWizardRole(value) {
100
- return typeof value === 'string' && ASSIGNABLE_WIZARD_ROLES.includes(value);
101
- }
102
- /** 成员跨 adapter 身份表(identity 边表)。 */
103
- export const COLLABORATION_SCENE_MEMBER_CHANNEL_MODEL = {
104
- logical_scene_id: { type: 'text', nullable: false },
105
- endpoint_id: { type: 'text', nullable: false },
106
- pipeline_role: { type: 'text', default: '' },
107
- adapter: { type: 'text', nullable: false },
108
- scene_id: { type: 'text', nullable: false },
109
- bot_id: { type: 'text', nullable: false },
110
- created_at: { type: 'integer', default: 0 },
111
- };
112
- //# sourceMappingURL=collaboration-db-model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collaboration-db-model.js","sourceRoot":"","sources":["../../src/collaboration/collaboration-db-model.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAe,EAAE,QAAQ,EAAE,KAAK,EAAE;IAC9C,OAAO,EAAE,EAAE,IAAI,EAAE,MAAe,EAAE,QAAQ,EAAE,KAAK,EAAE;IACnD,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAe,EAAE,QAAQ,EAAE,KAAK,EAAE;IACpD,IAAI,EAAE,EAAE,IAAI,EAAE,MAAe,EAAE,OAAO,EAAE,EAAE,EAAE;IAC5C,cAAc,EAAE,EAAE,IAAI,EAAE,MAAe,EAAE,OAAO,EAAE,EAAE,EAAE;IACtD,gDAAgD;IAChD,cAAc,EAAE,EAAE,IAAI,EAAE,MAAe,EAAE,OAAO,EAAE,EAAE,EAAE;IACtD,OAAO,EAAE,EAAE,IAAI,EAAE,SAAkB,EAAE,OAAO,EAAE,CAAC,EAAE;IACjD,OAAO,EAAE,EAAE,IAAI,EAAE,SAAkB,EAAE,OAAO,EAAE,CAAC,EAAE;IACjD,UAAU,EAAE,EAAE,IAAI,EAAE,SAAkB,EAAE,OAA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AAoC;AACpC,MAAM,CAAC,MAAM,wCAAwC,GAAG;IACtD,gBAAgB,EAAE,EAAE,IAAI,EAAE,MAAe,EAAE,QAAQ,EAAE,KAAK,EAAE;IAC5D,WAAW,EAAE,EAAE,IAAI,EAAE,MAAe,EAAE,QAAQ,EAAE,KAAK,EAAE;IACvD,aAAa,EAAE,EAAE,IAAI,EAAE,MAAe,EAAE,OAAO,EAAE,EAAE,EAAE;IACrD,OAAO,EAAE,EAAE,IAAI,EAAE,MAAe,EAAE,QAAQ,EAAE,KAAK,EAAE;IACnD,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAe,EAAE,QAAQ,EAAE,KAAK,EAAE;IACpD,MAAM,EAAE,EAAE,IAAI,EAAE,MAAe,EAAE,QAAQ,EAAE,KAAK,EAAE;IAClD,UAAU,EAAE,EAAE,IAAI,EAAE,SAAkB,EAAE,OAAO,EAAE,CAAC,EAAE;CACrD,CAAC"}
@@ -1,21 +0,0 @@
1
- /**
2
- * Pipeline 协作委派识别与 handback 摘要(传输层 harness)。
3
- */
4
- import { type Message } from '@zhin.js/core';
5
- import type { CollaborationScene } from './types.js';
6
- export { resolvePlannerEndpointKey } from './collab-utils.js';
7
- export declare function messageTextContent(message: Message): string;
8
- /** 模型把 cell_* 工具返回值原样贴到群里的 JSON blob。 */
9
- export declare function isCellToolResultJson(text: string): boolean;
10
- /** 从混合正文中剥离内嵌的 legacy cell_* 工具 JSON(保留其余可读文本)。 */
11
- export declare function removeEmbeddedCellToolJsonFromText(text: string): string;
12
- /** 从被委派方出站正文提取公开回复摘要(剥离 JSON handback / markdown 围栏 / 工具 JSON)。 */
13
- export declare function summarizeDelegateeReply(text: string): string;
14
- /** Kernel / 群协作 handback:须为实质公开内容,不能只有「已完成」。 */
15
- export declare function isSubstantiveGroupTaskReply(text: string): boolean;
16
- /** 剥离模型贴到回复里的 cell_* 工具 JSON(勿发到群)。 */
17
- export declare function stripCellToolJsonFromOutputElements(elements: import('@zhin.js/ai').OutputElement[]): import('@zhin.js/ai').OutputElement[];
18
- export declare function formatActiveDelegationHint(cell: CollaborationScene, endpointKey: string): string | undefined;
19
- /** Planner 收到成员 handback @ 时的 turn 指引。 */
20
- export declare function formatPlannerHandbackHint(_cell: CollaborationScene): string | undefined;
21
- //# sourceMappingURL=collaboration-delegation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collaboration-delegation.d.ts","sourceRoot":"","sources":["../../src/collaboration/collaboration-delegation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,OAAO,EAAiC,MAAM,eAAe,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAwB,MAAM,YAAY,CAAC;AAG3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAQ3D;AAED,yCAAyC;AACzC,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CA8B1D;AAoCD,mDAAmD;AACnD,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAuCvE;AAED,mEAAmE;AACnE,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAY5D;AAED,gDAAgD;AAChD,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAMjE;AAED,uCAAuC;AACvC,wBAAgB,mCAAmC,CACjD,QAAQ,EAAE,OAAO,aAAa,EAAE,aAAa,EAAE,GAC9C,OAAO,aAAa,EAAE,aAAa,EAAE,CAcvC;AAkBD,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,kBAAkB,EACxB,WAAW,EAAE,MAAM,GAClB,MAAM,GAAG,SAAS,CAuBpB;AAED,0CAA0C;AAC1C,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,kBAAkB,GAAG,MAAM,GAAG,SAAS,CAOvF"}