@zhin.js/agent 1.1.22 → 1.1.26

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 (1246) hide show
  1. package/README.md +54 -25
  2. package/lib/activity-feedback/adapter-integration.d.ts +1 -1
  3. package/lib/activity-feedback/adapter-integration.d.ts.map +1 -1
  4. package/lib/activity-feedback/index.d.ts +0 -1
  5. package/lib/activity-feedback/index.d.ts.map +1 -1
  6. package/lib/activity-feedback/index.js +0 -1
  7. package/lib/activity-feedback/index.js.map +1 -1
  8. package/lib/activity-feedback/subagent-prefix.d.ts +1 -1
  9. package/lib/activity-feedback/subagent-prefix.js +1 -1
  10. package/lib/ai-event-bus.d.ts +6 -10
  11. package/lib/ai-event-bus.d.ts.map +1 -1
  12. package/lib/ai-event-bus.js +0 -13
  13. package/lib/ai-event-bus.js.map +1 -1
  14. package/lib/ai-event-contract.d.ts +43 -0
  15. package/lib/ai-event-contract.d.ts.map +1 -0
  16. package/lib/ai-event-contract.js +2 -0
  17. package/lib/ai-event-contract.js.map +1 -0
  18. package/lib/ai-event-subscriber.d.ts +3 -5
  19. package/lib/ai-event-subscriber.d.ts.map +1 -1
  20. package/lib/ai-event-subscriber.js +0 -19
  21. package/lib/ai-event-subscriber.js.map +1 -1
  22. package/lib/ai-hook-runtime-bus.d.ts +3 -4
  23. package/lib/ai-hook-runtime-bus.d.ts.map +1 -1
  24. package/lib/ai-hook-runtime-bus.js +2 -3
  25. package/lib/ai-hook-runtime-bus.js.map +1 -1
  26. package/lib/assistant/deliver-schedule-to-adapter.d.ts +2 -4
  27. package/lib/assistant/deliver-schedule-to-adapter.d.ts.map +1 -1
  28. package/lib/assistant/deliver-schedule-to-adapter.js +1 -8
  29. package/lib/assistant/deliver-schedule-to-adapter.js.map +1 -1
  30. package/lib/assistant/domains/ha-home-backend.d.ts.map +1 -1
  31. package/lib/assistant/domains/ha-home-backend.js +1 -2
  32. package/lib/assistant/domains/ha-home-backend.js.map +1 -1
  33. package/lib/assistant/domains/ha-ws-transport.d.ts.map +1 -1
  34. package/lib/assistant/domains/ha-ws-transport.js +1 -2
  35. package/lib/assistant/domains/ha-ws-transport.js.map +1 -1
  36. package/lib/assistant/domains/home-state-watch.d.ts.map +1 -1
  37. package/lib/assistant/domains/home-state-watch.js +1 -2
  38. package/lib/assistant/domains/home-state-watch.js.map +1 -1
  39. package/lib/assistant/event-ingress.d.ts.map +1 -1
  40. package/lib/assistant/event-ingress.js +1 -2
  41. package/lib/assistant/event-ingress.js.map +1 -1
  42. package/lib/assistant/home-policy.d.ts +1 -1
  43. package/lib/assistant/home-policy.d.ts.map +1 -1
  44. package/lib/assistant/home-tools.d.ts.map +1 -1
  45. package/lib/assistant/home-tools.js.map +1 -1
  46. package/lib/assistant/index.d.ts +2 -2
  47. package/lib/assistant/index.d.ts.map +1 -1
  48. package/lib/assistant/index.js +2 -2
  49. package/lib/assistant/index.js.map +1 -1
  50. package/lib/assistant/job-engine.d.ts +3 -2
  51. package/lib/assistant/job-engine.d.ts.map +1 -1
  52. package/lib/assistant/job-engine.js +6 -4
  53. package/lib/assistant/job-engine.js.map +1 -1
  54. package/lib/assistant/job-scheduler.d.ts +2 -2
  55. package/lib/assistant/job-scheduler.d.ts.map +1 -1
  56. package/lib/assistant/job-scheduler.js +2 -11
  57. package/lib/assistant/job-scheduler.js.map +1 -1
  58. package/lib/assistant/job-worker.js +1 -1
  59. package/lib/assistant/job-worker.js.map +1 -1
  60. package/lib/assistant/notification-router.d.ts.map +1 -1
  61. package/lib/assistant/notification-router.js +2 -2
  62. package/lib/assistant/notification-router.js.map +1 -1
  63. package/lib/assistant/profile-loader.d.ts +0 -4
  64. package/lib/assistant/profile-loader.d.ts.map +1 -1
  65. package/lib/assistant/profile-loader.js +0 -4
  66. package/lib/assistant/profile-loader.js.map +1 -1
  67. package/lib/assistant/schedule-skills.d.ts.map +1 -1
  68. package/lib/assistant/schedule-skills.js +5 -7
  69. package/lib/assistant/schedule-skills.js.map +1 -1
  70. package/lib/authoring/bridge.d.ts +2 -16
  71. package/lib/authoring/bridge.d.ts.map +1 -1
  72. package/lib/authoring/bridge.js +1 -74
  73. package/lib/authoring/bridge.js.map +1 -1
  74. package/lib/authoring/disable-tool.d.ts +2 -2
  75. package/lib/authoring/disable-tool.d.ts.map +1 -1
  76. package/lib/authoring/disable-tool.js +2 -2
  77. package/lib/authoring/disable-tool.js.map +1 -1
  78. package/lib/authoring/index.d.ts +1 -11
  79. package/lib/authoring/index.d.ts.map +1 -1
  80. package/lib/authoring/index.js +1 -6
  81. package/lib/authoring/index.js.map +1 -1
  82. package/lib/authoring/types.d.ts +3 -116
  83. package/lib/authoring/types.d.ts.map +1 -1
  84. package/lib/authoring/types.js.map +1 -1
  85. package/lib/bootstrap.d.ts +3 -8
  86. package/lib/bootstrap.d.ts.map +1 -1
  87. package/lib/bootstrap.js +9 -29
  88. package/lib/bootstrap.js.map +1 -1
  89. package/lib/builtins/builtin-tool-service.d.ts +2 -1
  90. package/lib/builtins/builtin-tool-service.d.ts.map +1 -1
  91. package/lib/builtins/builtin-tool-service.js +16 -5
  92. package/lib/builtins/builtin-tool-service.js.map +1 -1
  93. package/lib/config/fix-ai-config.d.ts.map +1 -1
  94. package/lib/config/fix-ai-config.js +0 -57
  95. package/lib/config/fix-ai-config.js.map +1 -1
  96. package/lib/config/index.d.ts +2 -1
  97. package/lib/config/index.d.ts.map +1 -1
  98. package/lib/config/index.js +2 -1
  99. package/lib/config/index.js.map +1 -1
  100. package/lib/config/provider-instance.d.ts +3 -3
  101. package/lib/config/provider-instance.d.ts.map +1 -1
  102. package/lib/config/provider-instance.js.map +1 -1
  103. package/lib/config/resolve-five-agent-binding.d.ts +1 -1
  104. package/lib/config/resolve-five-agent-binding.d.ts.map +1 -1
  105. package/lib/config/validate-ai-config.d.ts +0 -1
  106. package/lib/config/validate-ai-config.d.ts.map +1 -1
  107. package/lib/config/validate-ai-config.js +0 -229
  108. package/lib/config/validate-ai-config.js.map +1 -1
  109. package/lib/config/zhin-agent-config.d.ts +1 -1
  110. package/lib/config/zhin-agent-config.d.ts.map +1 -1
  111. package/lib/config/zhin-agent-defaults.js +4 -4
  112. package/lib/config/zhin-agent-dependencies.d.ts +5 -5
  113. package/lib/config/zhin-agent-dependencies.d.ts.map +1 -1
  114. package/lib/context/agents-instruction.d.ts +0 -1
  115. package/lib/context/agents-instruction.d.ts.map +1 -1
  116. package/lib/context/agents-instruction.js +1 -14
  117. package/lib/context/agents-instruction.js.map +1 -1
  118. package/lib/context/context-system.d.ts.map +1 -1
  119. package/lib/context/context-system.js +2 -2
  120. package/lib/context/context-system.js.map +1 -1
  121. package/lib/context/index.d.ts +1 -1
  122. package/lib/context/index.d.ts.map +1 -1
  123. package/lib/context/index.js +1 -1
  124. package/lib/context/index.js.map +1 -1
  125. package/lib/context/turn-user-message.d.ts.map +1 -1
  126. package/lib/context/turn-user-message.js +1 -2
  127. package/lib/context/turn-user-message.js.map +1 -1
  128. package/lib/core/agent-core-run.d.ts.map +1 -1
  129. package/lib/core/agent-core-run.js +17 -16
  130. package/lib/core/agent-core-run.js.map +1 -1
  131. package/lib/core/agent-loop-standalone.d.ts +2 -1
  132. package/lib/core/agent-loop-standalone.d.ts.map +1 -1
  133. package/lib/core/agent-loop-standalone.js +19 -18
  134. package/lib/core/agent-loop-standalone.js.map +1 -1
  135. package/lib/core/tool-calls-user-format.d.ts.map +1 -1
  136. package/lib/core/tool-calls-user-format.js +2 -76
  137. package/lib/core/tool-calls-user-format.js.map +1 -1
  138. package/lib/create-agent-session.d.ts +1 -1
  139. package/lib/create-agent-session.d.ts.map +1 -1
  140. package/lib/create-agent-session.js +2 -2
  141. package/lib/create-agent-session.js.map +1 -1
  142. package/lib/data-governance/disclosure-authority.d.ts +38 -0
  143. package/lib/data-governance/disclosure-authority.d.ts.map +1 -0
  144. package/lib/data-governance/disclosure-authority.js +2 -0
  145. package/lib/data-governance/disclosure-authority.js.map +1 -0
  146. package/lib/data-governance/governance-authority-repository.d.ts +3 -0
  147. package/lib/data-governance/governance-authority-repository.d.ts.map +1 -1
  148. package/lib/data-governance/governance-authority-repository.js +10 -1
  149. package/lib/data-governance/governance-authority-repository.js.map +1 -1
  150. package/lib/deferred-worker-runner.d.ts +2 -1
  151. package/lib/deferred-worker-runner.d.ts.map +1 -1
  152. package/lib/deferred-worker-runner.js +6 -4
  153. package/lib/deferred-worker-runner.js.map +1 -1
  154. package/lib/discovery/agent-surface-info.d.ts +5 -9
  155. package/lib/discovery/agent-surface-info.d.ts.map +1 -1
  156. package/lib/discovery/agent-surface-info.js +81 -45
  157. package/lib/discovery/agent-surface-info.js.map +1 -1
  158. package/lib/discovery/agent-surface.d.ts +2 -22
  159. package/lib/discovery/agent-surface.d.ts.map +1 -1
  160. package/lib/discovery/agent-surface.js +72 -287
  161. package/lib/discovery/agent-surface.js.map +1 -1
  162. package/lib/discovery/agents.d.ts +10 -12
  163. package/lib/discovery/agents.d.ts.map +1 -1
  164. package/lib/discovery/agents.js +91 -90
  165. package/lib/discovery/agents.js.map +1 -1
  166. package/lib/discovery/utils.d.ts +2 -15
  167. package/lib/discovery/utils.d.ts.map +1 -1
  168. package/lib/discovery/utils.js +2 -76
  169. package/lib/discovery/utils.js.map +1 -1
  170. package/lib/event/agent-stream-hooks.d.ts +0 -2
  171. package/lib/event/agent-stream-hooks.d.ts.map +1 -1
  172. package/lib/event/agent-stream-hooks.js +0 -8
  173. package/lib/event/agent-stream-hooks.js.map +1 -1
  174. package/lib/event/ai-event-bus.d.ts +13 -0
  175. package/lib/event/ai-event-bus.d.ts.map +1 -0
  176. package/lib/event/ai-event-bus.js +45 -0
  177. package/lib/event/ai-event-bus.js.map +1 -0
  178. package/lib/event/event-emitter.d.ts +8 -14
  179. package/lib/event/event-emitter.d.ts.map +1 -1
  180. package/lib/event/event-emitter.js +7 -37
  181. package/lib/event/event-emitter.js.map +1 -1
  182. package/lib/index.d.ts +42 -74
  183. package/lib/index.d.ts.map +1 -1
  184. package/lib/index.js +29 -58
  185. package/lib/index.js.map +1 -1
  186. package/lib/init/activate-ai-database-storage.d.ts +1 -1
  187. package/lib/init/activate-ai-database-storage.d.ts.map +1 -1
  188. package/lib/init/activate-ai-database-storage.js +28 -32
  189. package/lib/init/activate-ai-database-storage.js.map +1 -1
  190. package/lib/init/compose-zhin-agent-runtime.d.ts +2 -0
  191. package/lib/init/compose-zhin-agent-runtime.d.ts.map +1 -1
  192. package/lib/init/compose-zhin-agent-runtime.js +1 -0
  193. package/lib/init/compose-zhin-agent-runtime.js.map +1 -1
  194. package/lib/init/configure-zhin-agent.d.ts +3 -4
  195. package/lib/init/configure-zhin-agent.d.ts.map +1 -1
  196. package/lib/init/configure-zhin-agent.js +9 -7
  197. package/lib/init/configure-zhin-agent.js.map +1 -1
  198. package/lib/init/define-ai-database-models.js +1 -1
  199. package/lib/init/dispose-zhin-agent.d.ts +1 -1
  200. package/lib/init/dispose-zhin-agent.d.ts.map +1 -1
  201. package/lib/init/dispose-zhin-agent.js +0 -1
  202. package/lib/init/dispose-zhin-agent.js.map +1 -1
  203. package/lib/init/runtime-management-commands.d.ts +1 -2
  204. package/lib/init/runtime-management-commands.d.ts.map +1 -1
  205. package/lib/init/runtime-management-commands.js.map +1 -1
  206. package/lib/internal/agent-host.d.ts +10 -5
  207. package/lib/internal/agent-host.d.ts.map +1 -1
  208. package/lib/internal/host-types.d.ts +5 -7
  209. package/lib/internal/host-types.d.ts.map +1 -1
  210. package/lib/mcp-client/bridge.d.ts +1 -2
  211. package/lib/mcp-client/bridge.d.ts.map +1 -1
  212. package/lib/mcp-client/bridge.js +1 -2
  213. package/lib/mcp-client/bridge.js.map +1 -1
  214. package/lib/media/media-publisher.d.ts +1 -1
  215. package/lib/media/media-publisher.d.ts.map +1 -1
  216. package/lib/media/media-router.d.ts +4 -7
  217. package/lib/media/media-router.d.ts.map +1 -1
  218. package/lib/media/media-router.js +10 -26
  219. package/lib/media/media-router.js.map +1 -1
  220. package/lib/media/media-types.d.ts +4 -0
  221. package/lib/media/media-types.d.ts.map +1 -1
  222. package/lib/media/media-types.js.map +1 -1
  223. package/lib/media/resolve-config.d.ts +0 -1
  224. package/lib/media/resolve-config.d.ts.map +1 -1
  225. package/lib/media/resolve-config.js +0 -3
  226. package/lib/media/resolve-config.js.map +1 -1
  227. package/lib/media/subagent-inbound.d.ts +3 -2
  228. package/lib/media/subagent-inbound.d.ts.map +1 -1
  229. package/lib/media/subagent-inbound.js +5 -8
  230. package/lib/media/subagent-inbound.js.map +1 -1
  231. package/lib/memory/ai-compaction-strategy.d.ts +3 -2
  232. package/lib/memory/ai-compaction-strategy.d.ts.map +1 -1
  233. package/lib/memory/ai-compaction-strategy.js +4 -1
  234. package/lib/memory/ai-compaction-strategy.js.map +1 -1
  235. package/lib/memory/compaction-runtime.d.ts +23 -14
  236. package/lib/memory/compaction-runtime.d.ts.map +1 -1
  237. package/lib/memory/compaction-runtime.js +92 -76
  238. package/lib/memory/compaction-runtime.js.map +1 -1
  239. package/lib/memory/context-repository-store.js +1 -1
  240. package/lib/memory/context-repository-store.js.map +1 -1
  241. package/lib/memory/index.d.ts +2 -2
  242. package/lib/memory/index.d.ts.map +1 -1
  243. package/lib/memory/index.js +1 -1
  244. package/lib/memory/index.js.map +1 -1
  245. package/lib/memory/memory-system.d.ts.map +1 -1
  246. package/lib/memory/memory-system.js +5 -6
  247. package/lib/memory/memory-system.js.map +1 -1
  248. package/lib/memory-layers.d.ts +2 -6
  249. package/lib/memory-layers.d.ts.map +1 -1
  250. package/lib/memory-layers.js +23 -75
  251. package/lib/memory-layers.js.map +1 -1
  252. package/lib/orchestration/five-agent/index.d.ts.map +1 -0
  253. package/lib/orchestration/five-agent/index.js.map +1 -0
  254. package/lib/orchestration/five-agent/prompts.d.ts.map +1 -0
  255. package/lib/orchestration/five-agent/prompts.js.map +1 -0
  256. package/lib/orchestration/five-agent/role-capability-policy.d.ts.map +1 -0
  257. package/lib/orchestration/five-agent/role-capability-policy.js.map +1 -0
  258. package/lib/orchestration/five-agent/roles.d.ts.map +1 -0
  259. package/lib/orchestration/five-agent/roles.js.map +1 -0
  260. package/lib/plugin-ai-hook-bus.d.ts +3 -7
  261. package/lib/plugin-ai-hook-bus.d.ts.map +1 -1
  262. package/lib/plugin-ai-hook-bus.js +1 -7
  263. package/lib/plugin-ai-hook-bus.js.map +1 -1
  264. package/lib/plugin-runtime/agent-event-bus.d.ts +4 -0
  265. package/lib/plugin-runtime/agent-event-bus.d.ts.map +1 -0
  266. package/lib/plugin-runtime/agent-event-bus.js +4 -0
  267. package/lib/plugin-runtime/agent-event-bus.js.map +1 -0
  268. package/lib/plugin-runtime/agent-host-port.d.ts +0 -6
  269. package/lib/plugin-runtime/agent-host-port.d.ts.map +1 -1
  270. package/lib/plugin-runtime/agent-host-port.js.map +1 -1
  271. package/lib/plugin-runtime/agent-runtime.d.ts +1 -1
  272. package/lib/plugin-runtime/agent-runtime.d.ts.map +1 -1
  273. package/lib/plugin-runtime/agent-runtime.js +9 -4
  274. package/lib/plugin-runtime/agent-runtime.js.map +1 -1
  275. package/lib/plugin-runtime/capability-ingress.d.ts +1 -1
  276. package/lib/plugin-runtime/capability-ingress.d.ts.map +1 -1
  277. package/lib/plugin-runtime/capability-ingress.js +118 -12
  278. package/lib/plugin-runtime/capability-ingress.js.map +1 -1
  279. package/lib/plugin-runtime/capability-tools.d.ts.map +1 -1
  280. package/lib/plugin-runtime/capability-tools.js +5 -3
  281. package/lib/plugin-runtime/capability-tools.js.map +1 -1
  282. package/lib/plugin-runtime/deferred-capability-plan.d.ts.map +1 -1
  283. package/lib/plugin-runtime/deferred-capability-plan.js +50 -21
  284. package/lib/plugin-runtime/deferred-capability-plan.js.map +1 -1
  285. package/lib/plugin-runtime/file-edit-quote-utils.d.ts.map +1 -0
  286. package/lib/plugin-runtime/file-edit-quote-utils.js.map +1 -0
  287. package/lib/plugin-runtime/full-agent-turn-engine.d.ts.map +1 -1
  288. package/lib/plugin-runtime/full-agent-turn-engine.js +10 -10
  289. package/lib/plugin-runtime/full-agent-turn-engine.js.map +1 -1
  290. package/lib/plugin-runtime/github-actions-delivery-provider.d.ts +44 -0
  291. package/lib/plugin-runtime/github-actions-delivery-provider.d.ts.map +1 -0
  292. package/lib/plugin-runtime/github-actions-delivery-provider.js +246 -0
  293. package/lib/plugin-runtime/github-actions-delivery-provider.js.map +1 -0
  294. package/lib/plugin-runtime/github-exact-merge-gateway.d.ts +62 -0
  295. package/lib/plugin-runtime/github-exact-merge-gateway.d.ts.map +1 -0
  296. package/lib/plugin-runtime/github-exact-merge-gateway.js +79 -0
  297. package/lib/plugin-runtime/github-exact-merge-gateway.js.map +1 -0
  298. package/lib/plugin-runtime/github-workroom-capability.d.ts +15 -0
  299. package/lib/plugin-runtime/github-workroom-capability.d.ts.map +1 -0
  300. package/lib/plugin-runtime/github-workroom-capability.js +79 -0
  301. package/lib/plugin-runtime/github-workroom-capability.js.map +1 -0
  302. package/lib/plugin-runtime/host-tool-projection.d.ts +1 -1
  303. package/lib/plugin-runtime/host-tool-projection.d.ts.map +1 -1
  304. package/lib/plugin-runtime/host-tool-projection.js +5 -3
  305. package/lib/plugin-runtime/host-tool-projection.js.map +1 -1
  306. package/lib/plugin-runtime/index.d.ts +29 -1
  307. package/lib/plugin-runtime/index.d.ts.map +1 -1
  308. package/lib/plugin-runtime/index.js +26 -1
  309. package/lib/plugin-runtime/index.js.map +1 -1
  310. package/lib/plugin-runtime/native-bash-tool.d.ts +35 -0
  311. package/lib/plugin-runtime/native-bash-tool.d.ts.map +1 -0
  312. package/lib/plugin-runtime/native-bash-tool.js +110 -0
  313. package/lib/plugin-runtime/native-bash-tool.js.map +1 -0
  314. package/lib/plugin-runtime/native-file-tools.d.ts.map +1 -1
  315. package/lib/plugin-runtime/native-file-tools.js +10 -9
  316. package/lib/plugin-runtime/native-file-tools.js.map +1 -1
  317. package/lib/plugin-runtime/native-image-tool.d.ts +12 -0
  318. package/lib/plugin-runtime/native-image-tool.d.ts.map +1 -0
  319. package/lib/plugin-runtime/native-image-tool.js +73 -0
  320. package/lib/plugin-runtime/native-image-tool.js.map +1 -0
  321. package/lib/plugin-runtime/native-interaction-tools.js +1 -1
  322. package/lib/plugin-runtime/native-interaction-tools.js.map +1 -1
  323. package/lib/plugin-runtime/native-knowledge-tool.d.ts +34 -0
  324. package/lib/plugin-runtime/native-knowledge-tool.d.ts.map +1 -0
  325. package/lib/plugin-runtime/native-knowledge-tool.js +170 -0
  326. package/lib/plugin-runtime/native-knowledge-tool.js.map +1 -0
  327. package/lib/plugin-runtime/native-semantic-memory-tools.js +2 -2
  328. package/lib/plugin-runtime/native-semantic-memory-tools.js.map +1 -1
  329. package/lib/plugin-runtime/native-todo-tools.js +2 -2
  330. package/lib/plugin-runtime/native-todo-tools.js.map +1 -1
  331. package/lib/plugin-runtime/native-tool-suite.d.ts +15 -0
  332. package/lib/plugin-runtime/native-tool-suite.d.ts.map +1 -0
  333. package/lib/plugin-runtime/native-tool-suite.js +18 -0
  334. package/lib/plugin-runtime/native-tool-suite.js.map +1 -0
  335. package/lib/plugin-runtime/native-web-tools.d.ts.map +1 -1
  336. package/lib/plugin-runtime/native-web-tools.js +6 -19
  337. package/lib/plugin-runtime/native-web-tools.js.map +1 -1
  338. package/lib/plugin-runtime/schedule-capability-plan.js +6 -1
  339. package/lib/plugin-runtime/schedule-capability-plan.js.map +1 -1
  340. package/lib/plugin-runtime/self-delivery-project-composition.d.ts +25 -0
  341. package/lib/plugin-runtime/self-delivery-project-composition.d.ts.map +1 -0
  342. package/lib/plugin-runtime/self-delivery-project-composition.js +85 -0
  343. package/lib/plugin-runtime/self-delivery-project-composition.js.map +1 -0
  344. package/lib/plugin-runtime/self-delivery-project.d.ts +65 -0
  345. package/lib/plugin-runtime/self-delivery-project.d.ts.map +1 -0
  346. package/lib/plugin-runtime/self-delivery-project.js +140 -0
  347. package/lib/plugin-runtime/self-delivery-project.js.map +1 -0
  348. package/lib/plugin-runtime/workroom-acceptance-internal-providers.d.ts.map +1 -1
  349. package/lib/plugin-runtime/workroom-acceptance-internal-providers.js +7 -2
  350. package/lib/plugin-runtime/workroom-acceptance-internal-providers.js.map +1 -1
  351. package/lib/plugin-runtime/workroom-acceptance-production-composition.d.ts +2 -0
  352. package/lib/plugin-runtime/workroom-acceptance-production-composition.d.ts.map +1 -1
  353. package/lib/plugin-runtime/workroom-acceptance-production-composition.js +1 -0
  354. package/lib/plugin-runtime/workroom-acceptance-production-composition.js.map +1 -1
  355. package/lib/plugin-runtime/workroom-acceptance-provider-composition.d.ts +3 -0
  356. package/lib/plugin-runtime/workroom-acceptance-provider-composition.d.ts.map +1 -1
  357. package/lib/plugin-runtime/workroom-acceptance-provider-composition.js +43 -6
  358. package/lib/plugin-runtime/workroom-acceptance-provider-composition.js.map +1 -1
  359. package/lib/plugin-runtime/workroom-accepted-source-runtime.d.ts +1 -1
  360. package/lib/plugin-runtime/workroom-accepted-source-runtime.d.ts.map +1 -1
  361. package/lib/plugin-runtime/workroom-assignment-authority-provider.d.ts +3 -77
  362. package/lib/plugin-runtime/workroom-assignment-authority-provider.d.ts.map +1 -1
  363. package/lib/plugin-runtime/workroom-assignment-authority-provider.js +12 -112
  364. package/lib/plugin-runtime/workroom-assignment-authority-provider.js.map +1 -1
  365. package/lib/plugin-runtime/workroom-assignment-knowledge-composition.d.ts +1 -1
  366. package/lib/plugin-runtime/workroom-assignment-knowledge-composition.d.ts.map +1 -1
  367. package/lib/plugin-runtime/workroom-data-governance-authority-writer.d.ts +2 -0
  368. package/lib/plugin-runtime/workroom-data-governance-authority-writer.d.ts.map +1 -1
  369. package/lib/plugin-runtime/workroom-data-governance-authority-writer.js +24 -0
  370. package/lib/plugin-runtime/workroom-data-governance-authority-writer.js.map +1 -1
  371. package/lib/plugin-runtime/workroom-data-governance-bootstrap.d.ts.map +1 -1
  372. package/lib/plugin-runtime/workroom-data-governance-bootstrap.js +19 -0
  373. package/lib/plugin-runtime/workroom-data-governance-bootstrap.js.map +1 -1
  374. package/lib/plugin-runtime/workroom-data-governance-runtime.d.ts +4 -38
  375. package/lib/plugin-runtime/workroom-data-governance-runtime.d.ts.map +1 -1
  376. package/lib/plugin-runtime/workroom-data-governance-runtime.js +145 -42
  377. package/lib/plugin-runtime/workroom-data-governance-runtime.js.map +1 -1
  378. package/lib/plugin-runtime/workroom-data-governance-storage.d.ts.map +1 -1
  379. package/lib/plugin-runtime/workroom-data-governance-storage.js +1 -2
  380. package/lib/plugin-runtime/workroom-data-governance-storage.js.map +1 -1
  381. package/lib/plugin-runtime/workroom-delivery-gateway.d.ts +96 -0
  382. package/lib/plugin-runtime/workroom-delivery-gateway.d.ts.map +1 -0
  383. package/lib/plugin-runtime/workroom-delivery-gateway.js +129 -0
  384. package/lib/plugin-runtime/workroom-delivery-gateway.js.map +1 -0
  385. package/lib/plugin-runtime/workroom-dynamic-planning-provider.d.ts.map +1 -1
  386. package/lib/plugin-runtime/workroom-dynamic-planning-provider.js +2 -1
  387. package/lib/plugin-runtime/workroom-dynamic-planning-provider.js.map +1 -1
  388. package/lib/plugin-runtime/workroom-effect-composition.d.ts.map +1 -1
  389. package/lib/plugin-runtime/workroom-effect-composition.js +12 -1
  390. package/lib/plugin-runtime/workroom-effect-composition.js.map +1 -1
  391. package/lib/plugin-runtime/workroom-effect-production.d.ts +5 -0
  392. package/lib/plugin-runtime/workroom-effect-production.d.ts.map +1 -1
  393. package/lib/plugin-runtime/workroom-effect-production.js +22 -3
  394. package/lib/plugin-runtime/workroom-effect-production.js.map +1 -1
  395. package/lib/plugin-runtime/workroom-effect-runtime.d.ts +1 -17
  396. package/lib/plugin-runtime/workroom-effect-runtime.d.ts.map +1 -1
  397. package/lib/plugin-runtime/workroom-effect-runtime.js +77 -17
  398. package/lib/plugin-runtime/workroom-effect-runtime.js.map +1 -1
  399. package/lib/plugin-runtime/workroom-governed-dispatch-composition.d.ts +8 -3
  400. package/lib/plugin-runtime/workroom-governed-dispatch-composition.d.ts.map +1 -1
  401. package/lib/plugin-runtime/workroom-governed-dispatch-composition.js +21 -18
  402. package/lib/plugin-runtime/workroom-governed-dispatch-composition.js.map +1 -1
  403. package/lib/plugin-runtime/workroom-journal-payload-composition.d.ts +1 -1
  404. package/lib/plugin-runtime/workroom-journal-payload-composition.d.ts.map +1 -1
  405. package/lib/plugin-runtime/workroom-journal-payload-composition.js +1 -1
  406. package/lib/plugin-runtime/workroom-journal-payload-composition.js.map +1 -1
  407. package/lib/plugin-runtime/workroom-local-agent-core-adapter.js +3 -3
  408. package/lib/plugin-runtime/workroom-local-agent-core-adapter.js.map +1 -1
  409. package/lib/plugin-runtime/workroom-local-agent-loop.d.ts +2 -1
  410. package/lib/plugin-runtime/workroom-local-agent-loop.d.ts.map +1 -1
  411. package/lib/plugin-runtime/workroom-local-agent-loop.js +11 -1
  412. package/lib/plugin-runtime/workroom-local-agent-loop.js.map +1 -1
  413. package/lib/{workroom/local-assignment-executor.d.ts → plugin-runtime/workroom-local-assignment-executor.d.ts} +4 -4
  414. package/lib/plugin-runtime/workroom-local-assignment-executor.d.ts.map +1 -0
  415. package/lib/{workroom/local-assignment-executor.js → plugin-runtime/workroom-local-assignment-executor.js} +3 -3
  416. package/lib/plugin-runtime/workroom-local-assignment-executor.js.map +1 -0
  417. package/lib/plugin-runtime/workroom-local-assignment-runtime.d.ts +1 -0
  418. package/lib/plugin-runtime/workroom-local-assignment-runtime.d.ts.map +1 -1
  419. package/lib/plugin-runtime/workroom-local-assignment-runtime.js +72 -26
  420. package/lib/plugin-runtime/workroom-local-assignment-runtime.js.map +1 -1
  421. package/lib/plugin-runtime/workroom-portfolio-checkpoint-ack.d.ts +1 -1
  422. package/lib/plugin-runtime/workroom-portfolio-checkpoint-ack.d.ts.map +1 -1
  423. package/lib/plugin-runtime/workroom-portfolio-control-composition.d.ts.map +1 -1
  424. package/lib/plugin-runtime/workroom-portfolio-control-composition.js +1 -0
  425. package/lib/plugin-runtime/workroom-portfolio-control-composition.js.map +1 -1
  426. package/lib/plugin-runtime/workroom-portfolio-control-runtime.d.ts +1 -0
  427. package/lib/plugin-runtime/workroom-portfolio-control-runtime.d.ts.map +1 -1
  428. package/lib/plugin-runtime/workroom-portfolio-control-runtime.js +1 -0
  429. package/lib/plugin-runtime/workroom-portfolio-control-runtime.js.map +1 -1
  430. package/lib/plugin-runtime/workroom-portfolio-grant-assignment.d.ts +1 -1
  431. package/lib/plugin-runtime/workroom-portfolio-grant-assignment.d.ts.map +1 -1
  432. package/lib/plugin-runtime/workroom-portfolio-grant-assignment.js +6 -3
  433. package/lib/plugin-runtime/workroom-portfolio-grant-assignment.js.map +1 -1
  434. package/lib/plugin-runtime/workroom-portfolio-kernel-authority.d.ts +1 -1
  435. package/lib/plugin-runtime/workroom-portfolio-kernel-authority.d.ts.map +1 -1
  436. package/lib/plugin-runtime/workroom-portfolio-kernel-authority.js +11 -5
  437. package/lib/plugin-runtime/workroom-portfolio-kernel-authority.js.map +1 -1
  438. package/lib/plugin-runtime/workroom-preemption-runtime.d.ts +1 -1
  439. package/lib/plugin-runtime/workroom-preemption-runtime.d.ts.map +1 -1
  440. package/lib/plugin-runtime/workroom-priority-authority.d.ts +11 -3
  441. package/lib/plugin-runtime/workroom-priority-authority.d.ts.map +1 -1
  442. package/lib/plugin-runtime/workroom-priority-authority.js +51 -47
  443. package/lib/plugin-runtime/workroom-priority-authority.js.map +1 -1
  444. package/lib/plugin-runtime/workroom-profile-authority-composition.d.ts.map +1 -1
  445. package/lib/plugin-runtime/workroom-profile-authority-composition.js +2 -1
  446. package/lib/plugin-runtime/workroom-profile-authority-composition.js.map +1 -1
  447. package/lib/plugin-runtime/workroom-profile-authority-runtime.d.ts +1 -0
  448. package/lib/plugin-runtime/workroom-profile-authority-runtime.d.ts.map +1 -1
  449. package/lib/plugin-runtime/workroom-profile-authority-runtime.js +1 -0
  450. package/lib/plugin-runtime/workroom-profile-authority-runtime.js.map +1 -1
  451. package/lib/plugin-runtime/workroom-projection-outbound.d.ts +1 -1
  452. package/lib/plugin-runtime/workroom-projection-outbound.d.ts.map +1 -1
  453. package/lib/plugin-runtime/workroom-projection-runtime.d.ts +6 -4
  454. package/lib/plugin-runtime/workroom-projection-runtime.d.ts.map +1 -1
  455. package/lib/plugin-runtime/workroom-projection-runtime.js +11 -1
  456. package/lib/plugin-runtime/workroom-projection-runtime.js.map +1 -1
  457. package/lib/plugin-runtime/workroom-remote-callback-runtime.d.ts +2 -2
  458. package/lib/plugin-runtime/workroom-remote-callback-runtime.d.ts.map +1 -1
  459. package/lib/plugin-runtime/workroom-remote-executor.d.ts +1 -12
  460. package/lib/plugin-runtime/workroom-remote-executor.d.ts.map +1 -1
  461. package/lib/plugin-runtime/workroom-remote-executor.js +1 -20
  462. package/lib/plugin-runtime/workroom-remote-executor.js.map +1 -1
  463. package/lib/plugin-runtime/workroom-run-profile-pin-authority.d.ts +1 -1
  464. package/lib/plugin-runtime/workroom-run-profile-pin-authority.d.ts.map +1 -1
  465. package/lib/plugin-runtime/workroom-scheduler-portfolio-composition.d.ts +8 -1
  466. package/lib/plugin-runtime/workroom-scheduler-portfolio-composition.d.ts.map +1 -1
  467. package/lib/plugin-runtime/workroom-scheduler-portfolio-composition.js +4 -0
  468. package/lib/plugin-runtime/workroom-scheduler-portfolio-composition.js.map +1 -1
  469. package/lib/plugin-runtime/workroom-scheduler-portfolio-request-authority.d.ts +4 -1
  470. package/lib/plugin-runtime/workroom-scheduler-portfolio-request-authority.d.ts.map +1 -1
  471. package/lib/plugin-runtime/workroom-scheduler-portfolio-request-authority.js +23 -6
  472. package/lib/plugin-runtime/workroom-scheduler-portfolio-request-authority.js.map +1 -1
  473. package/lib/plugin-runtime/workroom-scheduler-portfolio-supply.d.ts +5 -0
  474. package/lib/plugin-runtime/workroom-scheduler-portfolio-supply.d.ts.map +1 -1
  475. package/lib/plugin-runtime/workroom-scheduler-portfolio-supply.js +20 -1
  476. package/lib/plugin-runtime/workroom-scheduler-portfolio-supply.js.map +1 -1
  477. package/lib/plugin-runtime/workroom-scheduler-runtime.d.ts +1 -1
  478. package/lib/plugin-runtime/workroom-scheduler-runtime.d.ts.map +1 -1
  479. package/lib/plugin-runtime/workroom-scheduler-runtime.js +6 -1
  480. package/lib/plugin-runtime/workroom-scheduler-runtime.js.map +1 -1
  481. package/lib/prompt/assembly.d.ts.map +1 -1
  482. package/lib/prompt/assembly.js +1 -2
  483. package/lib/prompt/assembly.js.map +1 -1
  484. package/lib/prompt/git-context.d.ts +0 -2
  485. package/lib/prompt/git-context.d.ts.map +1 -1
  486. package/lib/prompt/git-context.js +1 -12
  487. package/lib/prompt/git-context.js.map +1 -1
  488. package/lib/prompt/index.d.ts +1 -1
  489. package/lib/prompt/index.d.ts.map +1 -1
  490. package/lib/prompt/index.js +1 -1
  491. package/lib/prompt/index.js.map +1 -1
  492. package/lib/prompt/prompt-assembly-registry.d.ts +1 -1
  493. package/lib/prompt/prompt-assembly-registry.d.ts.map +1 -1
  494. package/lib/prompt/prompt-assembly-registry.js.map +1 -1
  495. package/lib/prompt/system-prompt.d.ts +1 -1
  496. package/lib/prompt/system-prompt.d.ts.map +1 -1
  497. package/lib/prompt/system-prompt.js +1 -2
  498. package/lib/prompt/system-prompt.js.map +1 -1
  499. package/lib/prompt/templates.d.ts +2 -5
  500. package/lib/prompt/templates.d.ts.map +1 -1
  501. package/lib/prompt/templates.js +2 -16
  502. package/lib/prompt/templates.js.map +1 -1
  503. package/lib/prompt/workspace-prompt.d.ts +0 -1
  504. package/lib/prompt/workspace-prompt.d.ts.map +1 -1
  505. package/lib/prompt/workspace-prompt.js +1 -14
  506. package/lib/prompt/workspace-prompt.js.map +1 -1
  507. package/lib/reserved-tools.d.ts.map +1 -1
  508. package/lib/reserved-tools.js +0 -3
  509. package/lib/reserved-tools.js.map +1 -1
  510. package/lib/resource-hub/hook-registry.d.ts +1 -1
  511. package/lib/resource-hub/hook-registry.d.ts.map +1 -1
  512. package/lib/resource-hub/hook-registry.js +3 -15
  513. package/lib/resource-hub/hook-registry.js.map +1 -1
  514. package/lib/resource-hub/index.d.ts +4 -16
  515. package/lib/resource-hub/index.d.ts.map +1 -1
  516. package/lib/resource-hub/index.js +3 -20
  517. package/lib/resource-hub/index.js.map +1 -1
  518. package/lib/resource-hub/mcp-registry.js +1 -1
  519. package/lib/resource-hub/mcp-registry.js.map +1 -1
  520. package/lib/resource-hub/public-api.d.ts +0 -1
  521. package/lib/resource-hub/public-api.d.ts.map +1 -1
  522. package/lib/resource-hub/resolve-subagent-tools.d.ts.map +1 -1
  523. package/lib/resource-hub/resolve-subagent-tools.js +6 -4
  524. package/lib/resource-hub/resolve-subagent-tools.js.map +1 -1
  525. package/lib/resource-hub/role-configs.js +4 -4
  526. package/lib/resource-hub/role-configs.js.map +1 -1
  527. package/lib/resource-hub/skill-registry.d.ts +1 -1
  528. package/lib/resource-hub/skill-registry.js +1 -1
  529. package/lib/resource-hub/subagent-registry.d.ts +0 -2
  530. package/lib/resource-hub/subagent-registry.d.ts.map +1 -1
  531. package/lib/resource-hub/subagent-registry.js +0 -2
  532. package/lib/resource-hub/subagent-registry.js.map +1 -1
  533. package/lib/resource-hub/tool-selection.d.ts +4 -30
  534. package/lib/resource-hub/tool-selection.d.ts.map +1 -1
  535. package/lib/resource-hub/tool-selection.js +4 -289
  536. package/lib/resource-hub/tool-selection.js.map +1 -1
  537. package/lib/resource-hub/types.d.ts +6 -1
  538. package/lib/resource-hub/types.d.ts.map +1 -1
  539. package/lib/routing/route-matcher.d.ts +1 -1
  540. package/lib/routing/route-matcher.js +1 -1
  541. package/lib/schedule-manager.d.ts.map +1 -1
  542. package/lib/schedule-manager.js.map +1 -1
  543. package/lib/seam/index.d.ts +4 -3
  544. package/lib/seam/index.d.ts.map +1 -1
  545. package/lib/seam/index.js +1 -1
  546. package/lib/seam/index.js.map +1 -1
  547. package/lib/seam/seam-integration.d.ts +26 -37
  548. package/lib/seam/seam-integration.d.ts.map +1 -1
  549. package/lib/seam/seam-integration.js +82 -52
  550. package/lib/seam/seam-integration.js.map +1 -1
  551. package/lib/seam/seam-provider.d.ts +2 -1
  552. package/lib/seam/seam-provider.d.ts.map +1 -1
  553. package/lib/seam/seam-provider.js +25 -11
  554. package/lib/seam/seam-provider.js.map +1 -1
  555. package/lib/seam/skill-service.d.ts +0 -21
  556. package/lib/seam/skill-service.d.ts.map +1 -1
  557. package/lib/seam/tokens.d.ts +3 -2
  558. package/lib/seam/tokens.d.ts.map +1 -1
  559. package/lib/seam/tokens.js +3 -1
  560. package/lib/seam/tokens.js.map +1 -1
  561. package/lib/seam/tool-service.d.ts +12 -6
  562. package/lib/seam/tool-service.d.ts.map +1 -1
  563. package/lib/security/anomaly-detection.d.ts +2 -7
  564. package/lib/security/anomaly-detection.d.ts.map +1 -1
  565. package/lib/security/anomaly-detection.js +2 -20
  566. package/lib/security/anomaly-detection.js.map +1 -1
  567. package/lib/security/audit-logger.d.ts +0 -13
  568. package/lib/security/audit-logger.d.ts.map +1 -1
  569. package/lib/security/audit-logger.js +0 -30
  570. package/lib/security/audit-logger.js.map +1 -1
  571. package/lib/security/comm-message-context.d.ts +4 -0
  572. package/lib/security/comm-message-context.d.ts.map +1 -1
  573. package/lib/security/comm-message-context.js +9 -1
  574. package/lib/security/comm-message-context.js.map +1 -1
  575. package/lib/security/dangerous-tool-policy.d.ts +3 -3
  576. package/lib/security/dangerous-tool-policy.d.ts.map +1 -1
  577. package/lib/security/dangerous-tool-policy.js +8 -28
  578. package/lib/security/dangerous-tool-policy.js.map +1 -1
  579. package/lib/security/exec-policy.d.ts +4 -4
  580. package/lib/security/exec-policy.d.ts.map +1 -1
  581. package/lib/security/exec-policy.js +21 -62
  582. package/lib/security/exec-policy.js.map +1 -1
  583. package/lib/security/file-policy.d.ts.map +1 -1
  584. package/lib/security/file-policy.js +9 -57
  585. package/lib/security/file-policy.js.map +1 -1
  586. package/lib/security/file-role-policy.d.ts +1 -5
  587. package/lib/security/file-role-policy.d.ts.map +1 -1
  588. package/lib/security/file-role-policy.js +1 -25
  589. package/lib/security/file-role-policy.js.map +1 -1
  590. package/lib/security/index.d.ts +1 -1
  591. package/lib/security/index.d.ts.map +1 -1
  592. package/lib/security/index.js +1 -1
  593. package/lib/security/index.js.map +1 -1
  594. package/lib/security/owner-approval-contracts.d.ts +6 -0
  595. package/lib/security/owner-approval-contracts.d.ts.map +1 -0
  596. package/lib/security/owner-approval-contracts.js +2 -0
  597. package/lib/security/owner-approval-contracts.js.map +1 -0
  598. package/lib/security/owner-approval-runtime.d.ts +39 -0
  599. package/lib/security/owner-approval-runtime.d.ts.map +1 -0
  600. package/lib/security/owner-approval-runtime.js +159 -0
  601. package/lib/security/owner-approval-runtime.js.map +1 -0
  602. package/lib/security/owner-approval-store.d.ts +34 -0
  603. package/lib/security/owner-approval-store.d.ts.map +1 -0
  604. package/lib/security/owner-approval-store.js +154 -0
  605. package/lib/security/owner-approval-store.js.map +1 -0
  606. package/lib/security/policy-facade.d.ts +8 -15
  607. package/lib/security/policy-facade.d.ts.map +1 -1
  608. package/lib/security/policy-facade.js +33 -38
  609. package/lib/security/policy-facade.js.map +1 -1
  610. package/lib/security/sandbox.d.ts +0 -13
  611. package/lib/security/sandbox.d.ts.map +1 -1
  612. package/lib/security/sandbox.js +0 -21
  613. package/lib/security/sandbox.js.map +1 -1
  614. package/lib/security/turn-file-authority.d.ts.map +1 -1
  615. package/lib/security/turn-file-authority.js +0 -1
  616. package/lib/security/turn-file-authority.js.map +1 -1
  617. package/lib/service.d.ts +15 -19
  618. package/lib/service.d.ts.map +1 -1
  619. package/lib/service.js +42 -39
  620. package/lib/service.js.map +1 -1
  621. package/lib/session/approval-port.d.ts +16 -0
  622. package/lib/session/approval-port.d.ts.map +1 -1
  623. package/lib/session/approval-port.js.map +1 -1
  624. package/lib/session/approval-review-agent.d.ts +29 -0
  625. package/lib/session/approval-review-agent.d.ts.map +1 -0
  626. package/lib/session/approval-review-agent.js +183 -0
  627. package/lib/session/approval-review-agent.js.map +1 -0
  628. package/lib/session/branch-summarization-runtime.d.ts.map +1 -1
  629. package/lib/session/branch-summarization-runtime.js +3 -2
  630. package/lib/session/branch-summarization-runtime.js.map +1 -1
  631. package/lib/session/index.d.ts +2 -2
  632. package/lib/session/index.d.ts.map +1 -1
  633. package/lib/session/index.js +2 -2
  634. package/lib/session/index.js.map +1 -1
  635. package/lib/session/session-io.d.ts +7 -14
  636. package/lib/session/session-io.d.ts.map +1 -1
  637. package/lib/session/session-io.js +14 -47
  638. package/lib/session/session-io.js.map +1 -1
  639. package/lib/session/turn-ingress-session.d.ts +2 -5
  640. package/lib/session/turn-ingress-session.d.ts.map +1 -1
  641. package/lib/session/turn-ingress-session.js +8 -51
  642. package/lib/session/turn-ingress-session.js.map +1 -1
  643. package/lib/skill/skill-instruction-reader-factory.d.ts +5 -0
  644. package/lib/skill/skill-instruction-reader-factory.d.ts.map +1 -0
  645. package/lib/skill/skill-instruction-reader-factory.js +13 -0
  646. package/lib/skill/skill-instruction-reader-factory.js.map +1 -0
  647. package/lib/skill/skill-instruction-reader.d.ts +22 -0
  648. package/lib/skill/skill-instruction-reader.d.ts.map +1 -0
  649. package/lib/skill/skill-instruction-reader.js +44 -0
  650. package/lib/skill/skill-instruction-reader.js.map +1 -0
  651. package/lib/skill/skill-instructions.d.ts +5 -0
  652. package/lib/skill/skill-instructions.d.ts.map +1 -0
  653. package/lib/skill/skill-instructions.js +78 -0
  654. package/lib/skill/skill-instructions.js.map +1 -0
  655. package/lib/skill/skill-registry-as-service.d.ts +5 -5
  656. package/lib/skill/skill-registry-as-service.d.ts.map +1 -1
  657. package/lib/skill/skill-registry-as-service.js +21 -16
  658. package/lib/skill/skill-registry-as-service.js.map +1 -1
  659. package/lib/skill/skill-system.js +3 -3
  660. package/lib/skill/skill-system.js.map +1 -1
  661. package/lib/{builtin → spawn}/spawn-task-tool.d.ts +5 -6
  662. package/lib/spawn/spawn-task-tool.d.ts.map +1 -0
  663. package/lib/{builtin → spawn}/spawn-task-tool.js +17 -15
  664. package/lib/spawn/spawn-task-tool.js.map +1 -0
  665. package/lib/stability/memory-pressure.d.ts +5 -4
  666. package/lib/stability/memory-pressure.d.ts.map +1 -1
  667. package/lib/stability/memory-pressure.js +14 -23
  668. package/lib/stability/memory-pressure.js.map +1 -1
  669. package/lib/standalone/standalone-tool-catalog.d.ts +13 -0
  670. package/lib/standalone/standalone-tool-catalog.d.ts.map +1 -0
  671. package/lib/standalone/standalone-tool-catalog.js +46 -0
  672. package/lib/standalone/standalone-tool-catalog.js.map +1 -0
  673. package/lib/subagent/subagent-runtime.d.ts +7 -5
  674. package/lib/subagent/subagent-runtime.d.ts.map +1 -1
  675. package/lib/subagent/subagent-runtime.js +13 -16
  676. package/lib/subagent/subagent-runtime.js.map +1 -1
  677. package/lib/subagent/subagent-system-init.d.ts +2 -1
  678. package/lib/subagent/subagent-system-init.d.ts.map +1 -1
  679. package/lib/subagent/subagent-system-init.js +1 -0
  680. package/lib/subagent/subagent-system-init.js.map +1 -1
  681. package/lib/subagent-ai-events.d.ts +3 -2
  682. package/lib/subagent-ai-events.d.ts.map +1 -1
  683. package/lib/subagent-ai-events.js.map +1 -1
  684. package/lib/subagent-parent-context.js +1 -1
  685. package/lib/subagent-parent-context.js.map +1 -1
  686. package/lib/subagent-prompt.d.ts +1 -1
  687. package/lib/subagent-prompt.js +2 -5
  688. package/lib/subagent-prompt.js.map +1 -1
  689. package/lib/task-executor.d.ts +2 -14
  690. package/lib/task-executor.d.ts.map +1 -1
  691. package/lib/task-executor.js +2 -11
  692. package/lib/task-executor.js.map +1 -1
  693. package/lib/tool/builtin-policy-extractors.d.ts +2 -1
  694. package/lib/tool/builtin-policy-extractors.d.ts.map +1 -1
  695. package/lib/tool/builtin-policy-extractors.js +18 -15
  696. package/lib/tool/builtin-policy-extractors.js.map +1 -1
  697. package/lib/tool/context-tools.js +1 -1
  698. package/lib/tool/context-tools.js.map +1 -1
  699. package/lib/tool/conversation-reference-tool.d.ts.map +1 -1
  700. package/lib/tool/conversation-reference-tool.js +1 -1
  701. package/lib/tool/conversation-reference-tool.js.map +1 -1
  702. package/lib/tool/deferred-resolution.js +2 -2
  703. package/lib/tool/deferred-resolution.js.map +1 -1
  704. package/lib/tool/executable-tool-registry.d.ts +11 -0
  705. package/lib/tool/executable-tool-registry.d.ts.map +1 -0
  706. package/lib/tool/executable-tool-registry.js +25 -0
  707. package/lib/tool/executable-tool-registry.js.map +1 -0
  708. package/lib/tool/index.d.ts +1 -1
  709. package/lib/tool/index.d.ts.map +1 -1
  710. package/lib/tool/index.js +1 -1
  711. package/lib/tool/index.js.map +1 -1
  712. package/lib/tool/prepare-turn-tools.d.ts.map +1 -1
  713. package/lib/tool/prepare-turn-tools.js +1 -2
  714. package/lib/tool/prepare-turn-tools.js.map +1 -1
  715. package/lib/tool/sources.d.ts.map +1 -1
  716. package/lib/tool/sources.js +5 -4
  717. package/lib/tool/sources.js.map +1 -1
  718. package/lib/tool/tool-approval-gate.d.ts +1 -2
  719. package/lib/tool/tool-approval-gate.d.ts.map +1 -1
  720. package/lib/tool/tool-approval-gate.js +24 -0
  721. package/lib/tool/tool-approval-gate.js.map +1 -1
  722. package/lib/tool/tool-execution-authority.d.ts +26 -0
  723. package/lib/tool/tool-execution-authority.d.ts.map +1 -0
  724. package/lib/tool/tool-execution-authority.js +84 -0
  725. package/lib/tool/tool-execution-authority.js.map +1 -0
  726. package/lib/tool/tool-runtime.d.ts +10 -9
  727. package/lib/tool/tool-runtime.d.ts.map +1 -1
  728. package/lib/tool/tool-runtime.js +77 -79
  729. package/lib/tool/tool-runtime.js.map +1 -1
  730. package/lib/tool/tool-system.js +1 -1
  731. package/lib/tool/tool-system.js.map +1 -1
  732. package/lib/tool/turn-tool-runtime.d.ts +6 -2
  733. package/lib/tool/turn-tool-runtime.d.ts.map +1 -1
  734. package/lib/tool/turn-tool-runtime.js +19 -5
  735. package/lib/tool/turn-tool-runtime.js.map +1 -1
  736. package/lib/tool-catalog/deferred-turn-controller.d.ts +2 -2
  737. package/lib/tool-catalog/deferred-turn-controller.d.ts.map +1 -1
  738. package/lib/tool-catalog/deferred-turn-controller.js +4 -4
  739. package/lib/tool-catalog/deferred-turn-controller.js.map +1 -1
  740. package/lib/turn/deferred-auto-continue.js +1 -1
  741. package/lib/turn/deferred-auto-continue.js.map +1 -1
  742. package/lib/turn/deferred-delivery.js +1 -1
  743. package/lib/turn/deferred-delivery.js.map +1 -1
  744. package/lib/turn/inbound-media.d.ts +8 -1
  745. package/lib/turn/inbound-media.d.ts.map +1 -1
  746. package/lib/turn/inbound-media.js +4 -6
  747. package/lib/turn/inbound-media.js.map +1 -1
  748. package/lib/turn/index.d.ts +2 -2
  749. package/lib/turn/index.d.ts.map +1 -1
  750. package/lib/turn/index.js +2 -2
  751. package/lib/turn/index.js.map +1 -1
  752. package/lib/turn/persist-deferred-context.js +1 -1
  753. package/lib/turn/prompt-api.d.ts +3 -4
  754. package/lib/turn/prompt-api.d.ts.map +1 -1
  755. package/lib/turn/prompt-api.js +7 -11
  756. package/lib/turn/prompt-api.js.map +1 -1
  757. package/lib/turn/task-continuation.d.ts +0 -5
  758. package/lib/turn/task-continuation.d.ts.map +1 -1
  759. package/lib/turn/task-continuation.js +0 -15
  760. package/lib/turn/task-continuation.js.map +1 -1
  761. package/lib/turn/turn-ingress.d.ts +1 -1
  762. package/lib/turn/turn-ingress.d.ts.map +1 -1
  763. package/lib/turn/turn-metrics.d.ts +0 -4
  764. package/lib/turn/turn-metrics.d.ts.map +1 -1
  765. package/lib/turn/turn-metrics.js +0 -8
  766. package/lib/turn/turn-metrics.js.map +1 -1
  767. package/lib/turn/turn-pipeline.js +7 -4
  768. package/lib/turn/turn-pipeline.js.map +1 -1
  769. package/lib/typing-indicator/adapter-integration.d.ts +1 -4
  770. package/lib/typing-indicator/adapter-integration.d.ts.map +1 -1
  771. package/lib/typing-indicator/adapter-integration.js.map +1 -1
  772. package/lib/typing-indicator/index.d.ts +0 -17
  773. package/lib/typing-indicator/index.d.ts.map +1 -1
  774. package/lib/typing-indicator/index.js +0 -31
  775. package/lib/typing-indicator/index.js.map +1 -1
  776. package/lib/user-profile.js +1 -1
  777. package/lib/user-profile.js.map +1 -1
  778. package/lib/utils/config-env.d.ts +1 -1
  779. package/lib/utils/config-env.js +1 -1
  780. package/lib/web/bing-search-html.d.ts.map +1 -0
  781. package/lib/{builtin → web}/bing-search-html.js +2 -6
  782. package/lib/web/bing-search-html.js.map +1 -0
  783. package/lib/web/web-search-locale.d.ts +5 -0
  784. package/lib/web/web-search-locale.d.ts.map +1 -0
  785. package/lib/web/web-search-locale.js +13 -0
  786. package/lib/web/web-search-locale.js.map +1 -0
  787. package/lib/{builtin → web}/web-tool-utils.d.ts +0 -1
  788. package/lib/web/web-tool-utils.d.ts.map +1 -0
  789. package/lib/{builtin → web}/web-tool-utils.js +0 -1
  790. package/lib/web/web-tool-utils.js.map +1 -0
  791. package/lib/workroom/acceptance-control.d.ts +2 -1
  792. package/lib/workroom/acceptance-control.d.ts.map +1 -1
  793. package/lib/workroom/acceptance-control.js +12 -2
  794. package/lib/workroom/acceptance-control.js.map +1 -1
  795. package/lib/workroom/accepted-source-memory-application.d.ts +1 -1
  796. package/lib/workroom/accepted-source-memory-application.d.ts.map +1 -1
  797. package/lib/workroom/assignment-authority-grant-application.d.ts +2 -2
  798. package/lib/workroom/assignment-authority-grant-application.d.ts.map +1 -1
  799. package/lib/workroom/assignment-authority-grant-application.js +1 -1
  800. package/lib/workroom/assignment-authority-grant-application.js.map +1 -1
  801. package/lib/workroom/assignment-authority-grant-repository.d.ts +3 -2
  802. package/lib/workroom/assignment-authority-grant-repository.d.ts.map +1 -1
  803. package/lib/workroom/assignment-authority-grant-repository.js +3 -1
  804. package/lib/workroom/assignment-authority-grant-repository.js.map +1 -1
  805. package/lib/workroom/assignment-authority.d.ts +75 -0
  806. package/lib/workroom/assignment-authority.d.ts.map +1 -0
  807. package/lib/workroom/assignment-authority.js +179 -0
  808. package/lib/workroom/assignment-authority.js.map +1 -0
  809. package/lib/workroom/catalog-definition.d.ts +0 -6
  810. package/lib/workroom/catalog-definition.d.ts.map +1 -1
  811. package/lib/workroom/catalog.js +1 -1
  812. package/lib/workroom/catalog.js.map +1 -1
  813. package/lib/workroom/coding-assignment-executor.d.ts +90 -0
  814. package/lib/workroom/coding-assignment-executor.d.ts.map +1 -0
  815. package/lib/workroom/coding-assignment-executor.js +250 -0
  816. package/lib/workroom/coding-assignment-executor.js.map +1 -0
  817. package/lib/workroom/coding-git-objects.d.ts +17 -0
  818. package/lib/workroom/coding-git-objects.d.ts.map +1 -0
  819. package/lib/workroom/coding-git-objects.js +68 -0
  820. package/lib/workroom/coding-git-objects.js.map +1 -0
  821. package/lib/workroom/durable-file-store.d.ts +2 -0
  822. package/lib/workroom/durable-file-store.d.ts.map +1 -1
  823. package/lib/workroom/durable-file-store.js +5 -0
  824. package/lib/workroom/durable-file-store.js.map +1 -1
  825. package/lib/workroom/effect-blocker-repository.d.ts +17 -1
  826. package/lib/workroom/effect-blocker-repository.d.ts.map +1 -1
  827. package/lib/workroom/effect-blocker-repository.js.map +1 -1
  828. package/lib/workroom/effect-ledger.d.ts +21 -1
  829. package/lib/workroom/effect-ledger.d.ts.map +1 -1
  830. package/lib/workroom/effect-ledger.js +44 -3
  831. package/lib/workroom/effect-ledger.js.map +1 -1
  832. package/lib/workroom/file-accepted-source-memory-repository.d.ts.map +1 -1
  833. package/lib/workroom/file-accepted-source-memory-repository.js +6 -3
  834. package/lib/workroom/file-accepted-source-memory-repository.js.map +1 -1
  835. package/lib/workroom/file-coding-execution-store.d.ts +25 -0
  836. package/lib/workroom/file-coding-execution-store.d.ts.map +1 -0
  837. package/lib/workroom/file-coding-execution-store.js +122 -0
  838. package/lib/workroom/file-coding-execution-store.js.map +1 -0
  839. package/lib/workroom/file-effect-ledger.d.ts.map +1 -1
  840. package/lib/workroom/file-effect-ledger.js +6 -3
  841. package/lib/workroom/file-effect-ledger.js.map +1 -1
  842. package/lib/workroom/git-workspace-gateway.d.ts +6 -3
  843. package/lib/workroom/git-workspace-gateway.d.ts.map +1 -1
  844. package/lib/workroom/git-workspace-gateway.js +10 -1
  845. package/lib/workroom/git-workspace-gateway.js.map +1 -1
  846. package/lib/workroom/github-workspace-transport.d.ts +30 -0
  847. package/lib/workroom/github-workspace-transport.d.ts.map +1 -0
  848. package/lib/workroom/github-workspace-transport.js +224 -0
  849. package/lib/workroom/github-workspace-transport.js.map +1 -0
  850. package/lib/{plugin-runtime/workroom-governed-dispatch-reasons.d.ts → workroom/governed-dispatch-reasons.d.ts} +2 -2
  851. package/lib/workroom/governed-dispatch-reasons.d.ts.map +1 -0
  852. package/lib/{plugin-runtime/workroom-governed-dispatch-reasons.js → workroom/governed-dispatch-reasons.js} +1 -1
  853. package/lib/workroom/governed-dispatch-reasons.js.map +1 -0
  854. package/lib/workroom/human-ingress-orchestrator.d.ts.map +1 -1
  855. package/lib/workroom/human-ingress-orchestrator.js +29 -1
  856. package/lib/workroom/human-ingress-orchestrator.js.map +1 -1
  857. package/lib/workroom/human-ingress-source-reader.d.ts +3 -3
  858. package/lib/workroom/human-ingress-source-reader.d.ts.map +1 -1
  859. package/lib/workroom/human-ingress-source-reader.js.map +1 -1
  860. package/lib/workroom/journal/activatable-journal.d.ts +15 -0
  861. package/lib/workroom/journal/activatable-journal.d.ts.map +1 -0
  862. package/lib/workroom/journal/activatable-journal.js +39 -0
  863. package/lib/workroom/journal/activatable-journal.js.map +1 -0
  864. package/lib/workroom/{journal.d.ts → journal/contracts.d.ts} +19 -95
  865. package/lib/workroom/journal/contracts.d.ts.map +1 -0
  866. package/lib/workroom/journal/contracts.js +19 -0
  867. package/lib/workroom/journal/contracts.js.map +1 -0
  868. package/lib/workroom/journal/database-journal.d.ts +31 -0
  869. package/lib/workroom/journal/database-journal.d.ts.map +1 -0
  870. package/lib/workroom/journal/database-journal.js +118 -0
  871. package/lib/workroom/journal/database-journal.js.map +1 -0
  872. package/lib/workroom/journal/event-codec.d.ts +26 -0
  873. package/lib/workroom/journal/event-codec.d.ts.map +1 -0
  874. package/lib/workroom/journal/event-codec.js +233 -0
  875. package/lib/workroom/journal/event-codec.js.map +1 -0
  876. package/lib/workroom/journal/event-validation.d.ts +10 -0
  877. package/lib/workroom/journal/event-validation.d.ts.map +1 -0
  878. package/lib/workroom/journal/event-validation.js +671 -0
  879. package/lib/workroom/journal/event-validation.js.map +1 -0
  880. package/lib/workroom/journal/file-journal.d.ts +15 -0
  881. package/lib/workroom/journal/file-journal.d.ts.map +1 -0
  882. package/lib/workroom/journal/file-journal.js +272 -0
  883. package/lib/workroom/journal/file-journal.js.map +1 -0
  884. package/lib/workroom/journal/index.d.ts +9 -0
  885. package/lib/workroom/journal/index.d.ts.map +1 -0
  886. package/lib/workroom/journal/index.js +8 -0
  887. package/lib/workroom/journal/index.js.map +1 -0
  888. package/lib/workroom/journal/memory-journal.d.ts +27 -0
  889. package/lib/workroom/journal/memory-journal.d.ts.map +1 -0
  890. package/lib/workroom/journal/memory-journal.js +103 -0
  891. package/lib/workroom/journal/memory-journal.js.map +1 -0
  892. package/lib/workroom/journal/payload-governance.d.ts +29 -0
  893. package/lib/workroom/journal/payload-governance.d.ts.map +1 -0
  894. package/lib/workroom/journal/payload-governance.js +282 -0
  895. package/lib/workroom/journal/payload-governance.js.map +1 -0
  896. package/lib/workroom/journal/payload-reference.d.ts +9 -0
  897. package/lib/workroom/journal/payload-reference.d.ts.map +1 -0
  898. package/lib/workroom/journal/payload-reference.js +60 -0
  899. package/lib/workroom/journal/payload-reference.js.map +1 -0
  900. package/lib/workroom/journal/stored-event-projection.d.ts +6 -0
  901. package/lib/workroom/journal/stored-event-projection.d.ts.map +1 -0
  902. package/lib/workroom/journal/stored-event-projection.js +280 -0
  903. package/lib/workroom/journal/stored-event-projection.js.map +1 -0
  904. package/lib/workroom/kernel-state.d.ts.map +1 -1
  905. package/lib/workroom/kernel-state.js +35 -3
  906. package/lib/workroom/kernel-state.js.map +1 -1
  907. package/lib/workroom/{projection-outbox.d.ts → projection-outbox/contracts.d.ts} +8 -72
  908. package/lib/workroom/projection-outbox/contracts.d.ts.map +1 -0
  909. package/lib/workroom/projection-outbox/contracts.js +11 -0
  910. package/lib/workroom/projection-outbox/contracts.js.map +1 -0
  911. package/lib/workroom/projection-outbox/delivery-worker.d.ts +22 -0
  912. package/lib/workroom/projection-outbox/delivery-worker.d.ts.map +1 -0
  913. package/lib/workroom/projection-outbox/delivery-worker.js +96 -0
  914. package/lib/workroom/projection-outbox/delivery-worker.js.map +1 -0
  915. package/lib/workroom/projection-outbox/file-repository.d.ts +11 -0
  916. package/lib/workroom/projection-outbox/file-repository.d.ts.map +1 -0
  917. package/lib/workroom/projection-outbox/file-repository.js +89 -0
  918. package/lib/workroom/projection-outbox/file-repository.js.map +1 -0
  919. package/lib/workroom/projection-outbox/index.d.ts +10 -0
  920. package/lib/workroom/projection-outbox/index.d.ts.map +1 -0
  921. package/lib/workroom/projection-outbox/index.js +8 -0
  922. package/lib/workroom/projection-outbox/index.js.map +1 -0
  923. package/lib/workroom/projection-outbox/memory-repository.d.ts +11 -0
  924. package/lib/workroom/projection-outbox/memory-repository.d.ts.map +1 -0
  925. package/lib/workroom/projection-outbox/memory-repository.js +40 -0
  926. package/lib/workroom/projection-outbox/memory-repository.js.map +1 -0
  927. package/lib/workroom/projection-outbox/projector.d.ts +36 -0
  928. package/lib/workroom/projection-outbox/projector.d.ts.map +1 -0
  929. package/lib/workroom/projection-outbox/projector.js +517 -0
  930. package/lib/workroom/projection-outbox/projector.js.map +1 -0
  931. package/lib/workroom/projection-outbox/repository-state.d.ts +17 -0
  932. package/lib/workroom/projection-outbox/repository-state.d.ts.map +1 -0
  933. package/lib/workroom/projection-outbox/repository-state.js +343 -0
  934. package/lib/workroom/projection-outbox/repository-state.js.map +1 -0
  935. package/lib/workroom/projection-outbox/tracer.d.ts +19 -0
  936. package/lib/workroom/projection-outbox/tracer.d.ts.map +1 -0
  937. package/lib/workroom/projection-outbox/tracer.js +201 -0
  938. package/lib/workroom/projection-outbox/tracer.js.map +1 -0
  939. package/lib/workroom/remote-dispatch-admission.d.ts +2 -2
  940. package/lib/workroom/remote-dispatch-admission.d.ts.map +1 -1
  941. package/lib/workroom/remote-dispatch-admission.js +1 -1
  942. package/lib/workroom/remote-dispatch-admission.js.map +1 -1
  943. package/lib/workroom/remote-dispatch-worker.d.ts +1 -1
  944. package/lib/workroom/remote-dispatch-worker.d.ts.map +1 -1
  945. package/lib/workroom/remote-dispatch-worker.js +1 -1
  946. package/lib/workroom/remote-dispatch-worker.js.map +1 -1
  947. package/lib/workroom/remote-executor.d.ts +15 -0
  948. package/lib/workroom/remote-executor.d.ts.map +1 -0
  949. package/lib/workroom/remote-executor.js +21 -0
  950. package/lib/workroom/remote-executor.js.map +1 -0
  951. package/lib/workroom/runtime.d.ts +1 -1
  952. package/lib/workroom/runtime.d.ts.map +1 -1
  953. package/lib/workroom/software-delivery-plan.d.ts +32 -0
  954. package/lib/workroom/software-delivery-plan.d.ts.map +1 -0
  955. package/lib/workroom/software-delivery-plan.js +60 -0
  956. package/lib/workroom/software-delivery-plan.js.map +1 -0
  957. package/lib/workroom/validate-catalog.d.ts +2 -0
  958. package/lib/workroom/validate-catalog.d.ts.map +1 -0
  959. package/lib/workroom/validate-catalog.js +230 -0
  960. package/lib/workroom/validate-catalog.js.map +1 -0
  961. package/lib/workroom/workroom-kernel.d.ts +11 -1
  962. package/lib/workroom/workroom-kernel.d.ts.map +1 -1
  963. package/lib/workroom/workroom-kernel.js +102 -30
  964. package/lib/workroom/workroom-kernel.js.map +1 -1
  965. package/lib/workroom/workroom-preemption.d.ts +1 -1
  966. package/lib/workroom/workroom-preemption.d.ts.map +1 -1
  967. package/lib/workroom/workroom-scheduler-application.d.ts +1 -1
  968. package/lib/workroom/workroom-scheduler-application.d.ts.map +1 -1
  969. package/lib/workroom/workroom-scheduler-application.js +1 -1
  970. package/lib/workroom/workroom-scheduler-application.js.map +1 -1
  971. package/lib/workroom/workroom-scheduler.js +3 -0
  972. package/lib/workroom/workroom-scheduler.js.map +1 -1
  973. package/lib/zhin-agent/index.d.ts +12 -6
  974. package/lib/zhin-agent/index.d.ts.map +1 -1
  975. package/lib/zhin-agent/index.js +18 -12
  976. package/lib/zhin-agent/index.js.map +1 -1
  977. package/package.json +14 -29
  978. package/lib/activity-feedback/ai-bus.d.ts +0 -21
  979. package/lib/activity-feedback/ai-bus.d.ts.map +0 -1
  980. package/lib/activity-feedback/ai-bus.js +0 -59
  981. package/lib/activity-feedback/ai-bus.js.map +0 -1
  982. package/lib/ai-hook-handlers.d.ts +0 -8
  983. package/lib/ai-hook-handlers.d.ts.map +0 -1
  984. package/lib/ai-hook-handlers.js +0 -46
  985. package/lib/ai-hook-handlers.js.map +0 -1
  986. package/lib/authoring/define-agent.d.ts +0 -4
  987. package/lib/authoring/define-agent.d.ts.map +0 -1
  988. package/lib/authoring/define-agent.js +0 -8
  989. package/lib/authoring/define-agent.js.map +0 -1
  990. package/lib/authoring/define-connection.d.ts +0 -5
  991. package/lib/authoring/define-connection.d.ts.map +0 -1
  992. package/lib/authoring/define-connection.js +0 -8
  993. package/lib/authoring/define-connection.js.map +0 -1
  994. package/lib/authoring/define-schedule.d.ts +0 -4
  995. package/lib/authoring/define-schedule.d.ts.map +0 -1
  996. package/lib/authoring/define-schedule.js +0 -8
  997. package/lib/authoring/define-schedule.js.map +0 -1
  998. package/lib/authoring/define-tool.d.ts +0 -20
  999. package/lib/authoring/define-tool.d.ts.map +0 -1
  1000. package/lib/authoring/define-tool.js +0 -28
  1001. package/lib/authoring/define-tool.js.map +0 -1
  1002. package/lib/authoring/entries/connections.d.ts +0 -3
  1003. package/lib/authoring/entries/connections.d.ts.map +0 -1
  1004. package/lib/authoring/entries/connections.js +0 -2
  1005. package/lib/authoring/entries/connections.js.map +0 -1
  1006. package/lib/authoring/entries/schedules.d.ts +0 -3
  1007. package/lib/authoring/entries/schedules.d.ts.map +0 -1
  1008. package/lib/authoring/entries/schedules.js +0 -2
  1009. package/lib/authoring/entries/schedules.js.map +0 -1
  1010. package/lib/authoring/entries/tools.d.ts +0 -5
  1011. package/lib/authoring/entries/tools.d.ts.map +0 -1
  1012. package/lib/authoring/entries/tools.js +0 -3
  1013. package/lib/authoring/entries/tools.js.map +0 -1
  1014. package/lib/authoring/tool-policy.d.ts +0 -3
  1015. package/lib/authoring/tool-policy.d.ts.map +0 -1
  1016. package/lib/authoring/tool-policy.js +0 -2
  1017. package/lib/authoring/tool-policy.js.map +0 -1
  1018. package/lib/authoring/zod-schema.d.ts +0 -10
  1019. package/lib/authoring/zod-schema.d.ts.map +0 -1
  1020. package/lib/authoring/zod-schema.js +0 -7
  1021. package/lib/authoring/zod-schema.js.map +0 -1
  1022. package/lib/builtin/analyze-media-tool.d.ts +0 -13
  1023. package/lib/builtin/analyze-media-tool.d.ts.map +0 -1
  1024. package/lib/builtin/analyze-media-tool.js +0 -94
  1025. package/lib/builtin/analyze-media-tool.js.map +0 -1
  1026. package/lib/builtin/bash-tool.d.ts +0 -29
  1027. package/lib/builtin/bash-tool.d.ts.map +0 -1
  1028. package/lib/builtin/bash-tool.js +0 -107
  1029. package/lib/builtin/bash-tool.js.map +0 -1
  1030. package/lib/builtin/bing-search-html.d.ts.map +0 -1
  1031. package/lib/builtin/bing-search-html.js.map +0 -1
  1032. package/lib/builtin/builtin-base-tool.d.ts +0 -27
  1033. package/lib/builtin/builtin-base-tool.d.ts.map +0 -1
  1034. package/lib/builtin/builtin-base-tool.js +0 -35
  1035. package/lib/builtin/builtin-base-tool.js.map +0 -1
  1036. package/lib/builtin/edit-file-tool.d.ts +0 -13
  1037. package/lib/builtin/edit-file-tool.d.ts.map +0 -1
  1038. package/lib/builtin/edit-file-tool.js +0 -86
  1039. package/lib/builtin/edit-file-tool.js.map +0 -1
  1040. package/lib/builtin/file-edit-quote-utils.d.ts.map +0 -1
  1041. package/lib/builtin/file-edit-quote-utils.js.map +0 -1
  1042. package/lib/builtin/five-agent/index.d.ts.map +0 -1
  1043. package/lib/builtin/five-agent/index.js.map +0 -1
  1044. package/lib/builtin/five-agent/prompts.d.ts.map +0 -1
  1045. package/lib/builtin/five-agent/prompts.js.map +0 -1
  1046. package/lib/builtin/five-agent/role-capability-policy.d.ts.map +0 -1
  1047. package/lib/builtin/five-agent/role-capability-policy.js.map +0 -1
  1048. package/lib/builtin/five-agent/roles.d.ts.map +0 -1
  1049. package/lib/builtin/five-agent/roles.js.map +0 -1
  1050. package/lib/builtin/generate-image-tool.d.ts +0 -21
  1051. package/lib/builtin/generate-image-tool.d.ts.map +0 -1
  1052. package/lib/builtin/generate-image-tool.js +0 -138
  1053. package/lib/builtin/generate-image-tool.js.map +0 -1
  1054. package/lib/builtin/glob-tool.d.ts +0 -23
  1055. package/lib/builtin/glob-tool.d.ts.map +0 -1
  1056. package/lib/builtin/glob-tool.js +0 -53
  1057. package/lib/builtin/glob-tool.js.map +0 -1
  1058. package/lib/builtin/grep-tool.d.ts +0 -23
  1059. package/lib/builtin/grep-tool.d.ts.map +0 -1
  1060. package/lib/builtin/grep-tool.js +0 -121
  1061. package/lib/builtin/grep-tool.js.map +0 -1
  1062. package/lib/builtin/install-skill-tool.d.ts +0 -24
  1063. package/lib/builtin/install-skill-tool.d.ts.map +0 -1
  1064. package/lib/builtin/install-skill-tool.js +0 -76
  1065. package/lib/builtin/install-skill-tool.js.map +0 -1
  1066. package/lib/builtin/knowledge-search-tool.d.ts +0 -6
  1067. package/lib/builtin/knowledge-search-tool.d.ts.map +0 -1
  1068. package/lib/builtin/knowledge-search-tool.js +0 -184
  1069. package/lib/builtin/knowledge-search-tool.js.map +0 -1
  1070. package/lib/builtin/list-dir-tool.d.ts +0 -13
  1071. package/lib/builtin/list-dir-tool.d.ts.map +0 -1
  1072. package/lib/builtin/list-dir-tool.js +0 -57
  1073. package/lib/builtin/list-dir-tool.js.map +0 -1
  1074. package/lib/builtin/load-skill-tool.d.ts +0 -20
  1075. package/lib/builtin/load-skill-tool.d.ts.map +0 -1
  1076. package/lib/builtin/load-skill-tool.js +0 -60
  1077. package/lib/builtin/load-skill-tool.js.map +0 -1
  1078. package/lib/builtin/read-file-tool.d.ts +0 -14
  1079. package/lib/builtin/read-file-tool.d.ts.map +0 -1
  1080. package/lib/builtin/read-file-tool.js +0 -74
  1081. package/lib/builtin/read-file-tool.js.map +0 -1
  1082. package/lib/builtin/run-deferred-task-tool.d.ts +0 -23
  1083. package/lib/builtin/run-deferred-task-tool.d.ts.map +0 -1
  1084. package/lib/builtin/run-deferred-task-tool.js +0 -41
  1085. package/lib/builtin/run-deferred-task-tool.js.map +0 -1
  1086. package/lib/builtin/spawn-task-tool.d.ts.map +0 -1
  1087. package/lib/builtin/spawn-task-tool.js.map +0 -1
  1088. package/lib/builtin/todo-read-tool.d.ts +0 -14
  1089. package/lib/builtin/todo-read-tool.d.ts.map +0 -1
  1090. package/lib/builtin/todo-read-tool.js +0 -56
  1091. package/lib/builtin/todo-read-tool.js.map +0 -1
  1092. package/lib/builtin/todo-write-tool.d.ts +0 -14
  1093. package/lib/builtin/todo-write-tool.d.ts.map +0 -1
  1094. package/lib/builtin/todo-write-tool.js +0 -54
  1095. package/lib/builtin/todo-write-tool.js.map +0 -1
  1096. package/lib/builtin/web-fetch-tool.d.ts +0 -21
  1097. package/lib/builtin/web-fetch-tool.d.ts.map +0 -1
  1098. package/lib/builtin/web-fetch-tool.js +0 -86
  1099. package/lib/builtin/web-fetch-tool.js.map +0 -1
  1100. package/lib/builtin/web-search-locale.d.ts +0 -16
  1101. package/lib/builtin/web-search-locale.d.ts.map +0 -1
  1102. package/lib/builtin/web-search-locale.js +0 -74
  1103. package/lib/builtin/web-search-locale.js.map +0 -1
  1104. package/lib/builtin/web-search-tool.d.ts +0 -20
  1105. package/lib/builtin/web-search-tool.d.ts.map +0 -1
  1106. package/lib/builtin/web-search-tool.js +0 -115
  1107. package/lib/builtin/web-search-tool.js.map +0 -1
  1108. package/lib/builtin/web-tool-utils.d.ts.map +0 -1
  1109. package/lib/builtin/web-tool-utils.js.map +0 -1
  1110. package/lib/builtin/write-file-tool.d.ts +0 -13
  1111. package/lib/builtin/write-file-tool.d.ts.map +0 -1
  1112. package/lib/builtin/write-file-tool.js +0 -55
  1113. package/lib/builtin/write-file-tool.js.map +0 -1
  1114. package/lib/builtin-tools.d.ts +0 -25
  1115. package/lib/builtin-tools.d.ts.map +0 -1
  1116. package/lib/builtin-tools.js +0 -54
  1117. package/lib/builtin-tools.js.map +0 -1
  1118. package/lib/defaults/hooks.d.ts +0 -6
  1119. package/lib/defaults/hooks.d.ts.map +0 -1
  1120. package/lib/defaults/hooks.js +0 -9
  1121. package/lib/defaults/hooks.js.map +0 -1
  1122. package/lib/defaults/subagents.d.ts +0 -6
  1123. package/lib/defaults/subagents.d.ts.map +0 -1
  1124. package/lib/defaults/subagents.js +0 -23
  1125. package/lib/defaults/subagents.js.map +0 -1
  1126. package/lib/defaults/tools.d.ts +0 -5
  1127. package/lib/defaults/tools.d.ts.map +0 -1
  1128. package/lib/defaults/tools.js +0 -6
  1129. package/lib/defaults/tools.js.map +0 -1
  1130. package/lib/discovery/index.d.ts +0 -5
  1131. package/lib/discovery/index.d.ts.map +0 -1
  1132. package/lib/discovery/index.js +0 -5
  1133. package/lib/discovery/index.js.map +0 -1
  1134. package/lib/discovery/skills.d.ts +0 -53
  1135. package/lib/discovery/skills.d.ts.map +0 -1
  1136. package/lib/discovery/skills.js +0 -306
  1137. package/lib/discovery/skills.js.map +0 -1
  1138. package/lib/discovery/tools.d.ts +0 -53
  1139. package/lib/discovery/tools.d.ts.map +0 -1
  1140. package/lib/discovery/tools.js +0 -305
  1141. package/lib/discovery/tools.js.map +0 -1
  1142. package/lib/features/agent-feature.d.ts +0 -23
  1143. package/lib/features/agent-feature.d.ts.map +0 -1
  1144. package/lib/features/agent-feature.js +0 -51
  1145. package/lib/features/agent-feature.js.map +0 -1
  1146. package/lib/features/index.d.ts +0 -3
  1147. package/lib/features/index.d.ts.map +0 -1
  1148. package/lib/features/index.js +0 -3
  1149. package/lib/features/index.js.map +0 -1
  1150. package/lib/features/mcp-feature.d.ts +0 -25
  1151. package/lib/features/mcp-feature.d.ts.map +0 -1
  1152. package/lib/features/mcp-feature.js +0 -52
  1153. package/lib/features/mcp-feature.js.map +0 -1
  1154. package/lib/hooks.d.ts +0 -144
  1155. package/lib/hooks.d.ts.map +0 -1
  1156. package/lib/hooks.js +0 -82
  1157. package/lib/hooks.js.map +0 -1
  1158. package/lib/ingress/capability-ingress.d.ts +0 -76
  1159. package/lib/ingress/capability-ingress.d.ts.map +0 -1
  1160. package/lib/ingress/capability-ingress.js +0 -274
  1161. package/lib/ingress/capability-ingress.js.map +0 -1
  1162. package/lib/ingress/index.d.ts +0 -2
  1163. package/lib/ingress/index.d.ts.map +0 -1
  1164. package/lib/ingress/index.js +0 -2
  1165. package/lib/ingress/index.js.map +0 -1
  1166. package/lib/init/introspection-args.d.ts +0 -37
  1167. package/lib/init/introspection-args.d.ts.map +0 -1
  1168. package/lib/init/introspection-args.js +0 -71
  1169. package/lib/init/introspection-args.js.map +0 -1
  1170. package/lib/init/introspection-collectors.d.ts +0 -26
  1171. package/lib/init/introspection-collectors.d.ts.map +0 -1
  1172. package/lib/init/introspection-collectors.js +0 -108
  1173. package/lib/init/introspection-collectors.js.map +0 -1
  1174. package/lib/init/introspection-commands-format.d.ts +0 -40
  1175. package/lib/init/introspection-commands-format.d.ts.map +0 -1
  1176. package/lib/init/introspection-commands-format.js +0 -93
  1177. package/lib/init/introspection-commands-format.js.map +0 -1
  1178. package/lib/init/introspection-pagination.d.ts +0 -14
  1179. package/lib/init/introspection-pagination.d.ts.map +0 -1
  1180. package/lib/init/introspection-pagination.js +0 -33
  1181. package/lib/init/introspection-pagination.js.map +0 -1
  1182. package/lib/init/introspection-rest.d.ts +0 -24
  1183. package/lib/init/introspection-rest.d.ts.map +0 -1
  1184. package/lib/init/introspection-rest.js +0 -65
  1185. package/lib/init/introspection-rest.js.map +0 -1
  1186. package/lib/init/upgrade-agent-db-schema.d.ts +0 -49
  1187. package/lib/init/upgrade-agent-db-schema.d.ts.map +0 -1
  1188. package/lib/init/upgrade-agent-db-schema.js +0 -210
  1189. package/lib/init/upgrade-agent-db-schema.js.map +0 -1
  1190. package/lib/init/upgrade-endpoint-id-schema.d.ts +0 -12
  1191. package/lib/init/upgrade-endpoint-id-schema.d.ts.map +0 -1
  1192. package/lib/init/upgrade-endpoint-id-schema.js +0 -58
  1193. package/lib/init/upgrade-endpoint-id-schema.js.map +0 -1
  1194. package/lib/plugin-runtime/workroom-governed-dispatch-reasons.d.ts.map +0 -1
  1195. package/lib/plugin-runtime/workroom-governed-dispatch-reasons.js.map +0 -1
  1196. package/lib/resource-hub/tool-registry.d.ts +0 -60
  1197. package/lib/resource-hub/tool-registry.d.ts.map +0 -1
  1198. package/lib/resource-hub/tool-registry.js +0 -228
  1199. package/lib/resource-hub/tool-registry.js.map +0 -1
  1200. package/lib/security/owner-approve-always-store.d.ts +0 -67
  1201. package/lib/security/owner-approve-always-store.d.ts.map +0 -1
  1202. package/lib/security/owner-approve-always-store.js +0 -510
  1203. package/lib/security/owner-approve-always-store.js.map +0 -1
  1204. package/lib/security/turn-sandbox-authority.d.ts +0 -13
  1205. package/lib/security/turn-sandbox-authority.d.ts.map +0 -1
  1206. package/lib/security/turn-sandbox-authority.js +0 -42
  1207. package/lib/security/turn-sandbox-authority.js.map +0 -1
  1208. package/lib/skill/skill-load-opts.d.ts +0 -5
  1209. package/lib/skill/skill-load-opts.d.ts.map +0 -1
  1210. package/lib/skill/skill-load-opts.js +0 -14
  1211. package/lib/skill/skill-load-opts.js.map +0 -1
  1212. package/lib/stability/registry-cleanup.d.ts +0 -5
  1213. package/lib/stability/registry-cleanup.d.ts.map +0 -1
  1214. package/lib/stability/registry-cleanup.js +0 -20
  1215. package/lib/stability/registry-cleanup.js.map +0 -1
  1216. package/lib/tool/classic-tool-execution-authority.d.ts +0 -22
  1217. package/lib/tool/classic-tool-execution-authority.d.ts.map +0 -1
  1218. package/lib/tool/classic-tool-execution-authority.js +0 -80
  1219. package/lib/tool/classic-tool-execution-authority.js.map +0 -1
  1220. package/lib/tool/web-search-locale-attach.d.ts +0 -4
  1221. package/lib/tool/web-search-locale-attach.d.ts.map +0 -1
  1222. package/lib/tool/web-search-locale-attach.js +0 -20
  1223. package/lib/tool/web-search-locale-attach.js.map +0 -1
  1224. package/lib/typing-indicator/integration.d.ts +0 -89
  1225. package/lib/typing-indicator/integration.d.ts.map +0 -1
  1226. package/lib/typing-indicator/integration.js +0 -261
  1227. package/lib/typing-indicator/integration.js.map +0 -1
  1228. package/lib/workroom/journal.d.ts.map +0 -1
  1229. package/lib/workroom/journal.js +0 -2022
  1230. package/lib/workroom/journal.js.map +0 -1
  1231. package/lib/workroom/local-assignment-executor.d.ts.map +0 -1
  1232. package/lib/workroom/local-assignment-executor.js.map +0 -1
  1233. package/lib/workroom/projection-outbox.d.ts.map +0 -1
  1234. package/lib/workroom/projection-outbox.js +0 -1324
  1235. package/lib/workroom/projection-outbox.js.map +0 -1
  1236. /package/lib/{builtin → orchestration}/five-agent/index.d.ts +0 -0
  1237. /package/lib/{builtin → orchestration}/five-agent/index.js +0 -0
  1238. /package/lib/{builtin → orchestration}/five-agent/prompts.d.ts +0 -0
  1239. /package/lib/{builtin → orchestration}/five-agent/prompts.js +0 -0
  1240. /package/lib/{builtin → orchestration}/five-agent/role-capability-policy.d.ts +0 -0
  1241. /package/lib/{builtin → orchestration}/five-agent/role-capability-policy.js +0 -0
  1242. /package/lib/{builtin → orchestration}/five-agent/roles.d.ts +0 -0
  1243. /package/lib/{builtin → orchestration}/five-agent/roles.js +0 -0
  1244. /package/lib/{builtin → plugin-runtime}/file-edit-quote-utils.d.ts +0 -0
  1245. /package/lib/{builtin → plugin-runtime}/file-edit-quote-utils.js +0 -0
  1246. /package/lib/{builtin → web}/bing-search-html.d.ts +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"grep-tool.js","sourceRoot":"","sources":["../../src/builtin/grep-tool.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,IAAI,EAAoB,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OA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CAAC,OAAO,CAAC,EAAE;oBAC1C,CAAC,CAAC,EAAE,CAAC;gBACT,GAAG,GAAG,QAAQ,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,WAAW,IAAI,WAAW,IAAI,QAAQ,wBAAwB,KAAK,EAAE,CAAC;YAC7G,CAAC;YAED,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;YACrE,MAAM,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;YACnD,OAAO,MAAM,CAAC,IAAI,EAAE;gBAClB,CAAC,CAAC,GAAG,MAAM,KAAK,MAAM,CAAC,IAAI,EAAE,EAAE;gBAC/B,CAAC,CAAC,mBAAmB,UAAU,KAAK,MAAM,EAAE,CAAC;QACjD,CAAC;QAAC,OAAO,CAAU,EAAE,CAAC;YACpB,MAAM,GAAG,GAAG,CAAiD,CAAC;YAC9D,4DAA4D;YAC5D,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC;gBAAE,OAAO,mBAAmB,UAAU,GAAG,CAAC;YACpE,OAAO,UAAU,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/B,CAAC;IACH,CAAC;CACF;AAED,MAAM,UAAU,cAAc;IAC5B,OAAO,IAAI,eAAe,EAAE,CAAC,MAAM,EAAE,CAAC;AACxC,CAAC"}
@@ -1,24 +0,0 @@
1
- import { type Tool, type Message, type ToolParametersSchema, type ToolResult } from '@zhin.js/core';
2
- import { BuiltinBaseTool } from './builtin-base-tool.js';
3
- export interface InstallSkillToolOptions {
4
- /**
5
- * 安装根目录:将创建 `<skillName>/SKILL.md`。
6
- * 默认 `join(process.cwd(), 'skills')`(与历史行为一致)。
7
- */
8
- skillsInstallRoot?: string;
9
- /** 可注入以便单测 mock */
10
- fetchImpl?: typeof fetch;
11
- }
12
- export declare const INSTALL_SKILL_PARAMETERS: ToolParametersSchema;
13
- export declare class InstallSkillBuiltinTool extends BuiltinBaseTool {
14
- private readonly opts;
15
- readonly name = "install_skill";
16
- readonly description = "Download SKILL.md from a URL and install it under local skills/. Use when the user asks to add, install, or download a skill.";
17
- readonly parameters: ToolParametersSchema<Record<string, any>>;
18
- readonly kind = "skill";
19
- constructor(opts?: InstallSkillToolOptions);
20
- private skillsRoot;
21
- run(args: Record<string, unknown>, _commMessage?: Message): Promise<ToolResult>;
22
- }
23
- export declare function createInstallSkillTool(opts?: InstallSkillToolOptions): Tool;
24
- //# sourceMappingURL=install-skill-tool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"install-skill-tool.d.ts","sourceRoot":"","sources":["../../src/builtin/install-skill-tool.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAC;AAE/G,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB;IACnB,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;CAC1B;AAED,eAAO,MAAM,wBAAwB,EAAE,oBAStC,CAAC;AAIF,qBAAa,uBAAwB,SAAQ,eAAe;IAO9C,OAAO,CAAC,QAAQ,CAAC,IAAI;IANjC,QAAQ,CAAC,IAAI,mBAAmB;IAChC,QAAQ,CAAC,WAAW,mIAC8G;IAClI,QAAQ,CAAC,UAAU,4CAA4B;IAC/C,QAAQ,CAAC,IAAI,WAAW;gBAEK,IAAI,GAAE,uBAA4B;IAgB/D,OAAO,CAAC,UAAU;IAIZ,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC;CAoCtF;AAED,wBAAgB,sBAAsB,CAAC,IAAI,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAE3E"}
@@ -1,76 +0,0 @@
1
- /**
2
- * install_skill — 从 URL 下载 SKILL.md 并安装到本地 skills/ 目录
3
- */
4
- import * as fs from 'node:fs/promises';
5
- import * as path from 'node:path';
6
- import { getLogger } from '@zhin.js/core';
7
- import { errMsg } from '../discovery/utils.js';
8
- import { BuiltinBaseTool } from './builtin-base-tool.js';
9
- export const INSTALL_SKILL_PARAMETERS = {
10
- type: 'object',
11
- properties: {
12
- url: {
13
- type: 'string',
14
- description: 'Full URL of a SKILL.md file (e.g. https://example.com/skill.md)',
15
- },
16
- },
17
- required: ['url'],
18
- };
19
- const logger = getLogger('install-skill-tool');
20
- export class InstallSkillBuiltinTool extends BuiltinBaseTool {
21
- opts;
22
- name = 'install_skill';
23
- description = 'Download SKILL.md from a URL and install it under local skills/. Use when the user asks to add, install, or download a skill.';
24
- parameters = INSTALL_SKILL_PARAMETERS;
25
- kind = 'skill';
26
- constructor(opts = {}) {
27
- super();
28
- this.opts = opts;
29
- this.tags.push('skill', 'install');
30
- this.keywords.push('安装技能', '下载技能', '加入', '添加技能', 'install', 'skill', 'join', '学会', '学习技能');
31
- }
32
- skillsRoot() {
33
- return this.opts.skillsInstallRoot ?? path.join(process.cwd(), 'skills');
34
- }
35
- async run(args, _commMessage) {
36
- const fetchFn = this.opts.fetchImpl ?? globalThis.fetch.bind(globalThis);
37
- try {
38
- const response = await fetchFn(args.url, {
39
- headers: { 'User-Agent': 'Mozilla/5.0 (compatible; ZhinBot/1.0)' },
40
- signal: AbortSignal.timeout(15000),
41
- });
42
- if (!response.ok)
43
- return `Error: HTTP ${response.status} ${response.statusText}`;
44
- const content = await response.text();
45
- const fmMatch = content.match(/^---\s*\n([\s\S]*?)\n---/);
46
- if (!fmMatch)
47
- return 'Error: 无效的 SKILL.md 文件(缺少 frontmatter)';
48
- let jsYaml;
49
- try {
50
- jsYaml = await import('js-yaml');
51
- if (jsYaml.default)
52
- jsYaml = jsYaml.default;
53
- }
54
- catch {
55
- return 'Error: 无法加载 yaml 解析器';
56
- }
57
- const metadata = jsYaml.load(fmMatch[1]);
58
- if (!metadata?.name)
59
- return 'Error: SKILL.md 缺少 name 字段';
60
- const skillName = metadata.name;
61
- const skillDir = path.join(this.skillsRoot(), skillName);
62
- await fs.mkdir(skillDir, { recursive: true });
63
- const skillPath = path.join(skillDir, 'SKILL.md');
64
- await fs.writeFile(skillPath, content, 'utf-8');
65
- logger.info(`技能已安装: ${skillName} → ${skillPath}`);
66
- return `✅ 技能「${skillName}」已安装到 ${skillPath}。现在可以用 load_skill("${skillName}") 加载它。`;
67
- }
68
- catch (e) {
69
- return `Error: ${errMsg(e)}`;
70
- }
71
- }
72
- }
73
- export function createInstallSkillTool(opts) {
74
- return new InstallSkillBuiltinTool(opts).toTool();
75
- }
76
- //# sourceMappingURL=install-skill-tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"install-skill-tool.js","sourceRoot":"","sources":["../../src/builtin/install-skill-tool.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAuE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAYzD,MAAM,CAAC,MAAM,wBAAwB,GAAyB;IAC5D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,GAAG,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,iEAAiE;SAC/E;KACF;IACD,QAAQ,EAAE,CAAC,KAAK,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,GAAG,SAAS,CAAC,oBAAoB,CAAC,CAAC;AAE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C;AACpD,CAAC"}
@@ -1,6 +0,0 @@
1
- export interface KnowledgeSearchOptions {
2
- /** 知识库目录绝对路径 */
3
- knowledgeDir: string;
4
- }
5
- export declare function createKnowledgeSearchTool(options: KnowledgeSearchOptions): import("@zhin.js/core").Tool<Record<string, any>>;
6
- //# sourceMappingURL=knowledge-search-tool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"knowledge-search-tool.d.ts","sourceRoot":"","sources":["../../src/builtin/knowledge-search-tool.ts"],"names":[],"mappings":"AAmMA,MAAM,WAAW,sBAAsB;IACrC,gBAAgB;IAChB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,sBAAsB,qDAExE"}
@@ -1,184 +0,0 @@
1
- /**
2
- * knowledge_search — 本地知识库全文检索(v0:段落分块 + 关键词匹配)。
3
- *
4
- * 从配置的 `ai.knowledge.baseDir`(默认 `cwd/knowledge/`)读取 Markdown 文件,
5
- * 按段落分块后用关键词匹配搜索,返回匹配片段及来源路径。
6
- */
7
- import { readdir, readFile, stat } from 'node:fs/promises';
8
- import { join, relative, resolve } from 'node:path';
9
- import { BuiltinBaseTool } from './builtin-base-tool.js';
10
- const PARAMS = {
11
- type: 'object',
12
- properties: {
13
- query: { type: 'string', description: 'Search keywords or phrase (multi-word supported)' },
14
- limit: { type: 'number', description: 'Max entries to return (default 5)' },
15
- },
16
- required: ['query'],
17
- };
18
- /**
19
- * 递归扫描目录,收集所有 .md / .txt 文件路径。
20
- */
21
- async function collectFiles(dir, maxDepth = 5) {
22
- if (maxDepth <= 0)
23
- return [];
24
- const results = [];
25
- let entries;
26
- try {
27
- entries = await readdir(dir, { withFileTypes: true });
28
- }
29
- catch {
30
- return [];
31
- }
32
- for (const entry of entries) {
33
- if (entry.name.startsWith('.'))
34
- continue;
35
- const fullPath = join(dir, entry.name);
36
- if (entry.isDirectory()) {
37
- results.push(...await collectFiles(fullPath, maxDepth - 1));
38
- }
39
- else if (entry.isFile() && /\.(md|txt|markdown)$/i.test(entry.name)) {
40
- results.push(fullPath);
41
- }
42
- }
43
- return results;
44
- }
45
- /**
46
- * 将文件内容按段落分块(双换行符分隔)。
47
- * 每块上限 1000 字符,超过则按单换行符再拆。
48
- */
49
- function chunkText(text, maxChunkSize = 1000) {
50
- const paragraphs = text.split(/\n{2,}/).map(p => p.trim()).filter(Boolean);
51
- const chunks = [];
52
- for (const para of paragraphs) {
53
- if (para.length <= maxChunkSize) {
54
- chunks.push(para);
55
- }
56
- else {
57
- // 按单换行拆分大段落
58
- const lines = para.split('\n');
59
- let current = '';
60
- for (const line of lines) {
61
- // 超长行(无换行的单行段落)按字符强制拆分
62
- if (line.length > maxChunkSize) {
63
- if (current) {
64
- chunks.push(current);
65
- current = '';
66
- }
67
- for (let i = 0; i < line.length; i += maxChunkSize) {
68
- chunks.push(line.slice(i, i + maxChunkSize));
69
- }
70
- }
71
- else if (current && (current.length + line.length + 1) > maxChunkSize) {
72
- chunks.push(current);
73
- current = line;
74
- }
75
- else {
76
- current = current ? `${current}\n${line}` : line;
77
- }
78
- }
79
- if (current)
80
- chunks.push(current);
81
- }
82
- }
83
- return chunks;
84
- }
85
- /**
86
- * 关键词匹配评分:返回 query 中命中的关键词数量。
87
- * 支持多词空格分隔,每个词独立匹配。
88
- */
89
- function scoreChunk(text, query) {
90
- const lower = text.toLowerCase();
91
- const terms = query.toLowerCase().split(/\s+/).filter(Boolean);
92
- let score = 0;
93
- for (const term of terms) {
94
- if (lower.includes(term))
95
- score++;
96
- }
97
- return score;
98
- }
99
- class KnowledgeSearchTool extends BuiltinBaseTool {
100
- name = 'knowledge_search';
101
- description = 'Search the local knowledge base (Markdown files under knowledge/). Returns matching snippets and source paths. Use for manuals, policies, recipes, FAQs, and other local docs.';
102
- parameters = PARAMS;
103
- kind = 'knowledge';
104
- keywords = ['knowledge', 'search', '知识', '检索', '文档', 'FAQ', '说明'];
105
- knowledgeDir;
106
- /** 缓存:加载时间戳 */
107
- cacheTime = 0;
108
- /** 缓存:分块数据 */
109
- cachedChunks = [];
110
- /** 缓存 TTL(毫秒) */
111
- cacheTtl = 60_000;
112
- constructor(knowledgeDir) {
113
- super();
114
- this.knowledgeDir = resolve(knowledgeDir);
115
- }
116
- /**
117
- * 加载并分块索引知识库文件。
118
- * 带 60 秒缓存避免重复 IO。
119
- */
120
- async loadChunks() {
121
- const now = Date.now();
122
- if (this.cacheTime > 0 && (now - this.cacheTime) < this.cacheTtl) {
123
- return this.cachedChunks;
124
- }
125
- const files = await collectFiles(this.knowledgeDir);
126
- const chunks = [];
127
- for (const filePath of files) {
128
- try {
129
- const content = await readFile(filePath, 'utf-8');
130
- const relPath = relative(this.knowledgeDir, filePath);
131
- const textChunks = chunkText(content);
132
- for (let i = 0; i < textChunks.length; i++) {
133
- chunks.push({
134
- filePath,
135
- relPath,
136
- chunkIndex: i,
137
- text: textChunks[i],
138
- });
139
- }
140
- }
141
- catch {
142
- // 跳过不可读文件
143
- }
144
- }
145
- this.cachedChunks = chunks;
146
- this.cacheTime = now;
147
- return chunks;
148
- }
149
- async run(args, _commMessage) {
150
- const query = String(args.query ?? '').trim();
151
- if (!query)
152
- return '请提供搜索关键词(query)。';
153
- const limit = typeof args.limit === 'number' && args.limit > 0 ? args.limit : 5;
154
- // 检查知识库目录是否存在
155
- try {
156
- const s = await stat(this.knowledgeDir);
157
- if (!s.isDirectory())
158
- return `知识库路径不是目录: ${this.knowledgeDir}`;
159
- }
160
- catch {
161
- return `知识库目录不存在: ${this.knowledgeDir}\n请创建该目录并放入 .md 文件,或在 zhin.config.yml 中配置 ai.knowledge.baseDir。`;
162
- }
163
- const chunks = await this.loadChunks();
164
- if (!chunks.length)
165
- return `知识库目录为空: ${this.knowledgeDir}\n请放入 .md / .txt 文件。`;
166
- // 评分并排序
167
- const scored = chunks
168
- .map(chunk => ({ ...chunk, score: scoreChunk(chunk.text, query) }))
169
- .filter(c => c.score > 0)
170
- .sort((a, b) => b.score - a.score)
171
- .slice(0, limit);
172
- if (!scored.length)
173
- return `未找到与 "${query}" 相关的知识库内容(共索引 ${chunks.length} 个段落)。`;
174
- const lines = scored.map((c, i) => {
175
- const snippet = c.text.length > 300 ? c.text.slice(0, 300) + '...' : c.text;
176
- return `### ${i + 1}. [${c.relPath}] (匹配度: ${c.score})\n${snippet}`;
177
- });
178
- return `找到 ${scored.length} 条相关结果(共索引 ${chunks.length} 个段落):\n\n${lines.join('\n\n')}`;
179
- }
180
- }
181
- export function createKnowledgeSearchTool(options) {
182
- return new KnowledgeSearchTool(options.knowledgeDir).toTool();
183
- }
184
- //# sourceMappingURL=knowledge-search-tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"knowledge-search-tool.js","sourceRoot":"","sources":["../../src/builtin/knowledge-search-tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAczD,MAAM,MAAM,GAAyB;IACnC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,kDAAkD,EAAE;QAC1F,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,mCAAmC,EAAE;KAC5E;IACD,QAAQ,EAAE,CAAC,OAAO,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,KAAK,UAAU,YAAY,CAAC,GAAW,EAAE,QAAQ,GAAG,CAAC;IACnD,IAAI,QAAQ,IAAI,CAAC;QAAE,OAAO,EAAE,CAAC;IAC7B,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAI,OAAO,CAAC;IACZ,IAAI,CAAC;QACH,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,E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AAM,UAAU,yBAAyB,CAAC,OAA+B;IACvE,OAAO,IAAI,mBAAmB,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,MAAM,EAAE,CAAC;AAChE,CAAC"}
@@ -1,13 +0,0 @@
1
- import type { Tool, Message, ToolParametersSchema, ToolResult } from '@zhin.js/core';
2
- import { BuiltinBaseTool } from './builtin-base-tool.js';
3
- export declare const LIST_DIR_PARAMETERS: ToolParametersSchema;
4
- export declare class ListDirBuiltinTool extends BuiltinBaseTool {
5
- readonly name = "list_dir";
6
- readonly description = "List file and subdirectory names in a directory. Use to inspect directory structure and available files.";
7
- readonly parameters: ToolParametersSchema<Record<string, any>>;
8
- readonly kind = "file";
9
- constructor();
10
- run(args: Record<string, unknown>, commMessage?: Message): Promise<ToolResult>;
11
- }
12
- export declare function createListDirTool(): Tool;
13
- //# sourceMappingURL=list-dir-tool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-dir-tool.d.ts","sourceRoot":"","sources":["../../src/builtin/list-dir-tool.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAErF,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,eAAO,MAAM,mBAAmB,EAAE,oBASjC,CAAC;AAEF,qBAAa,kBAAmB,SAAQ,eAAe;IACrD,QAAQ,CAAC,IAAI,cAAc;IAC3B,QAAQ,CAAC,WAAW,8GACyF;IAC7G,QAAQ,CAAC,UAAU,4CAAuB;IAC1C,QAAQ,CAAC,IAAI,UAAU;;IAmBjB,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC;CAwBrF;AAED,wBAAgB,iBAAiB,IAAI,IAAI,CAExC"}
@@ -1,57 +0,0 @@
1
- /**
2
- * list_dir — 列出目录内容
3
- */
4
- import * as fs from 'node:fs/promises';
5
- import * as path from 'node:path';
6
- import { expandHome, nodeErrToFileMessage } from '../discovery/utils.js';
7
- import { BuiltinBaseTool } from './builtin-base-tool.js';
8
- export const LIST_DIR_PARAMETERS = {
9
- type: 'object',
10
- properties: {
11
- path: {
12
- type: 'string',
13
- description: 'Directory path to list (absolute or relative to project root)',
14
- },
15
- },
16
- required: ['path'],
17
- };
18
- export class ListDirBuiltinTool extends BuiltinBaseTool {
19
- name = 'list_dir';
20
- description = 'List file and subdirectory names in a directory. Use to inspect directory structure and available files.';
21
- parameters = LIST_DIR_PARAMETERS;
22
- kind = 'file';
23
- constructor() {
24
- super();
25
- this.tags.push('file', 'list');
26
- this.keywords.push('列目录', '列出目录', '目录列表', '查看目录', 'list directory', 'list dir', 'ls', 'dir', '目录内容', '有哪些文件');
27
- }
28
- async run(args, commMessage) {
29
- const pathArg = args.path;
30
- if (typeof pathArg !== 'string' || !pathArg.trim()) {
31
- return 'Error: path is required';
32
- }
33
- try {
34
- const dirPath = path.resolve(process.cwd(), expandHome(pathArg));
35
- const stat = await fs.stat(dirPath);
36
- if (!stat.isDirectory()) {
37
- return `Error: Not a directory: ${pathArg}`;
38
- }
39
- const entries = await fs.readdir(dirPath, { withFileTypes: true });
40
- if (entries.length === 0) {
41
- return `Directory ${pathArg} is empty`;
42
- }
43
- const lines = [];
44
- for (const e of entries.sort((a, b) => a.name.localeCompare(b.name))) {
45
- lines.push((e.isDirectory() ? '[DIR] ' : ' ') + e.name);
46
- }
47
- return lines.join('\n');
48
- }
49
- catch (e) {
50
- return nodeErrToFileMessage(e, pathArg, 'list');
51
- }
52
- }
53
- }
54
- export function createListDirTool() {
55
- return new ListDirBuiltinTool().toTool();
56
- }
57
- //# sourceMappingURL=list-dir-tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-dir-tool.js","sourceRoot":"","sources":["../../src/builtin/list-dir-tool.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,K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CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACpC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;gBACxB,OAAO,2BAA2B,OAAO,EAAE,CAAC;YAC9C,CAAC;YACD,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;YACnE,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACzB,OAAO,aAAa,OAAO,WAAW,CAAC;YACzC,CAAC;YACD,MAAM,KAAK,GAAa,EAAE,CAAC;YAC3B,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;gBACrE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;YACjE,CAAC;YACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;QAAC,OAAO,CAAU,EAAE,CAAC;YACpB,OAAO,oBAAoB,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAClD,CAAC;IACH,CAAC;CACF;AAED,MAAM,UAAU,iBAAiB;IAC/B,OAAO,IAAI,kBAAkB,EAAE,CAAC,MAAM,EAAE,CAAC;AAC3C,CAAC"}
@@ -1,20 +0,0 @@
1
- import type { Tool, Message, ToolParametersSchema, ToolResult } from '@zhin.js/core';
2
- import { BuiltinBaseTool } from './builtin-base-tool.js';
3
- export interface LoadSkillToolOptions {
4
- skillFileLookup?: (name: string) => string | undefined;
5
- skillDirList: () => string[];
6
- skillMaxChars: number;
7
- }
8
- export declare const LOAD_SKILL_PARAMETERS: ToolParametersSchema;
9
- export declare function readSkillInstructions(name: string, opts: LoadSkillToolOptions): Promise<string>;
10
- export declare class LoadSkillBuiltinTool extends BuiltinBaseTool {
11
- private readonly opts;
12
- readonly name = "load_skill";
13
- readonly description = "Load full skill instructions by name. Call after discover finds a relevant skill; unlocks tools linked to the skill.";
14
- readonly parameters: ToolParametersSchema<Record<string, any>>;
15
- readonly kind = "skill";
16
- constructor(opts: LoadSkillToolOptions);
17
- run(args: Record<string, unknown>, _commMessage?: Message): Promise<ToolResult>;
18
- }
19
- export declare function createLoadSkillTool(opts: LoadSkillToolOptions): Tool;
20
- //# sourceMappingURL=load-skill-tool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"load-skill-tool.d.ts","sourceRoot":"","sources":["../../src/builtin/load-skill-tool.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGrF,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,oBAAoB;IACnC,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACvD,YAAY,EAAE,MAAM,MAAM,EAAE,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,qBAAqB,EAAE,oBAMnC,CAAC;AAEF,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,oBAAoB,GACzB,OAAO,CAAC,MAAM,CAAC,CAkBjB;AAED,qBAAa,oBAAqB,SAAQ,eAAe;IAO3C,OAAO,CAAC,QAAQ,CAAC,IAAI;IANjC,QAAQ,CAAC,IAAI,gBAAgB;IAC7B,QAAQ,CAAC,WAAW,0HACqG;IACzH,QAAQ,CAAC,UAAU,4CAAyB;IAC5C,QAAQ,CAAC,IAAI,WAAW;gBAEK,IAAI,EAAE,oBAAoB;IAMjD,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC;CAQtF;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,oBAAoB,GAAG,IAAI,CAEpE"}
@@ -1,60 +0,0 @@
1
- /**
2
- * load_skill — 按名称加载技能指令(取代 activate_skill)
3
- */
4
- import * as fs from 'node:fs';
5
- import * as path from 'node:path';
6
- import { checkSkillDeps, extractSkillInstructions } from '../discovery/skills.js';
7
- import { errMsg } from '../discovery/utils.js';
8
- import { BuiltinBaseTool } from './builtin-base-tool.js';
9
- export const LOAD_SKILL_PARAMETERS = {
10
- type: 'object',
11
- properties: {
12
- name: { type: 'string', description: 'Skill name' },
13
- },
14
- required: ['name'],
15
- };
16
- export async function readSkillInstructions(name, opts) {
17
- const registeredPath = opts.skillFileLookup?.(name);
18
- if (registeredPath && fs.existsSync(registeredPath)) {
19
- const fullContent = await fs.promises.readFile(registeredPath, 'utf-8');
20
- const depWarning = await checkSkillDeps(fullContent);
21
- const instructions = extractSkillInstructions(name, fullContent, opts.skillMaxChars);
22
- return depWarning ? `${depWarning}\n\n${instructions}` : instructions;
23
- }
24
- for (const dir of opts.skillDirList()) {
25
- const skillPath = path.join(dir, name, 'SKILL.md');
26
- if (fs.existsSync(skillPath)) {
27
- const fullContent = await fs.promises.readFile(skillPath, 'utf-8');
28
- const depWarning = await checkSkillDeps(fullContent);
29
- const instructions = extractSkillInstructions(name, fullContent, opts.skillMaxChars);
30
- return depWarning ? `${depWarning}\n\n${instructions}` : instructions;
31
- }
32
- }
33
- return `Skill '${name}' not found. Check skills/ directory.`;
34
- }
35
- export class LoadSkillBuiltinTool extends BuiltinBaseTool {
36
- opts;
37
- name = 'load_skill';
38
- description = 'Load full skill instructions by name. Call after discover finds a relevant skill; unlocks tools linked to the skill.';
39
- parameters = LOAD_SKILL_PARAMETERS;
40
- kind = 'skill';
41
- constructor(opts) {
42
- super();
43
- this.opts = opts;
44
- this.tags.push('skill', 'load');
45
- this.keywords.push('技能', '加载', 'skill', 'load');
46
- }
47
- async run(args, _commMessage) {
48
- try {
49
- const name = String(args.name);
50
- return await readSkillInstructions(name, this.opts);
51
- }
52
- catch (e) {
53
- return `Error: ${errMsg(e)}`;
54
- }
55
- }
56
- }
57
- export function createLoadSkillTool(opts) {
58
- return new LoadSkillBuiltinTool(opts).toTool();
59
- }
60
- //# sourceMappingURL=load-skill-tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"load-skill-tool.js","sourceRoot":"","sources":["../../src/builtin/load-skill-tool.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAQzD,MAAM,CAAC,MAAM,qBAAqB,GAAyB;IACzD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE;KACpD;IACD,QAAQ,EAAE,CAAC,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,IAAY,EACZ,IAA0B;IAE1B,MAAM,cAAc,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC,IAAI,CAAC,CAAC;IACpD,IAAI,cAAc,IAAI,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;QACpD,MAAM,WAAW,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;QACxE,MAAM,UAAU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,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,IAA6B,EAAE,YAAsB;QAC7D,IAAI,CAAC;YACH,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC/B,OAAO,MAAM,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACtD,CAAC;QAAC,OAAO,CAAU,EAAE,CAAC;YACpB,OAAO,UAAU,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/B,CAAC;IACH,CAAC;CACF;AAED,MAAM,UAAU,mBAAmB,CAAC,IAA0B;IAC5D,OAAO,IAAI,oBAAoB,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;AACjD,CAAC"}
@@ -1,14 +0,0 @@
1
- import type { Tool, Message, ToolParametersSchema, ToolResult } from '@zhin.js/core';
2
- import { BuiltinBaseTool } from './builtin-base-tool.js';
3
- export declare const READ_FILE_PARAMETERS: ToolParametersSchema;
4
- export declare class ReadFileBuiltinTool extends BuiltinBaseTool {
5
- readonly name = "read_file";
6
- readonly description = "Read text file contents at the given path. For images/audio/video use analyze_media, not read_file.";
7
- readonly parameters: ToolParametersSchema<Record<string, any>>;
8
- readonly kind = "file";
9
- constructor();
10
- run(args: Record<string, unknown>, commMessage?: Message): Promise<ToolResult>;
11
- }
12
- /** 工厂:供 createBuiltinTools 与其它入口使用 */
13
- export declare function createReadFileTool(): Tool;
14
- //# sourceMappingURL=read-file-tool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"read-file-tool.d.ts","sourceRoot":"","sources":["../../src/builtin/read-file-tool.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAKrF,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAUzD,eAAO,MAAM,oBAAoB,EAAE,oBAWlC,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,eAAe;IACtD,QAAQ,CAAC,IAAI,eAAe;IAC5B,QAAQ,CAAC,WAAW,yGACoF;IACxG,QAAQ,CAAC,UAAU,4CAAwB;IAC3C,QAAQ,CAAC,IAAI,UAAU;;IAmBjB,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC;CAkCrF;AAED,sCAAsC;AACtC,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC"}
@@ -1,74 +0,0 @@
1
- /**
2
- * read_file — 内置文件读取(PRD #389 竖切1)
3
- */
4
- import * as fs from 'node:fs/promises';
5
- import * as path from 'node:path';
6
- import { MAX_READ_FILE_SIZE, } from '../security/file-policy.js';
7
- import { expandHome, nodeErrToFileMessage } from '../discovery/utils.js';
8
- import { BuiltinBaseTool } from './builtin-base-tool.js';
9
- const IMAGE_EXTENSIONS = new Set([
10
- '.png', '.jpg', '.jpeg', '.gif', '.webp', '.bmp', '.svg', '.ico',
11
- ]);
12
- function isImageFile(filePath) {
13
- return IMAGE_EXTENSIONS.has(path.extname(filePath).toLowerCase());
14
- }
15
- export const READ_FILE_PARAMETERS = {
16
- type: 'object',
17
- properties: {
18
- file_path: {
19
- type: 'string',
20
- description: 'File path to read (absolute or relative to project root)',
21
- },
22
- offset: { type: 'number', description: 'Start line (0-based, optional; default from line 1)' },
23
- limit: { type: 'number', description: 'Max lines to read (optional; default all)' },
24
- },
25
- required: ['file_path'],
26
- };
27
- export class ReadFileBuiltinTool extends BuiltinBaseTool {
28
- name = 'read_file';
29
- description = 'Read text file contents at the given path. For images/audio/video use analyze_media, not read_file.';
30
- parameters = READ_FILE_PARAMETERS;
31
- kind = 'file';
32
- constructor() {
33
- super();
34
- this.tags.push('file', 'read');
35
- this.keywords.push('读文件', '读取文件', '查看文件', '打开文件', '文件内容', 'read file', 'read', 'cat', '查看', '打开');
36
- }
37
- async run(args, commMessage) {
38
- const filePathArg = args.file_path;
39
- if (typeof filePathArg !== 'string' || !filePathArg.trim()) {
40
- return 'Error: file_path is required';
41
- }
42
- let fp;
43
- try {
44
- fp = expandHome(filePathArg);
45
- }
46
- catch (e) {
47
- return nodeErrToFileMessage(e, String(filePathArg), 'read');
48
- }
49
- try {
50
- const stat = await fs.stat(fp);
51
- if (stat.size > MAX_READ_FILE_SIZE) {
52
- return `Error: 文件过大 (${(stat.size / 1024 / 1024).toFixed(1)} MiB),超过 ${MAX_READ_FILE_SIZE / 1024 / 1024} MiB 限制。请使用 offset/limit 分段读取。`;
53
- }
54
- if (isImageFile(fp)) {
55
- return `Error: 请使用 analyze_media 分析图片文件: ${fp}`;
56
- }
57
- const content = await fs.readFile(fp, 'utf-8');
58
- const lines = content.split('\n');
59
- const offset = typeof args.offset === 'number' ? args.offset : 0;
60
- const limit = typeof args.limit === 'number' ? args.limit : lines.length;
61
- const sliced = lines.slice(offset, offset + limit);
62
- const numbered = sliced.map((line, i) => `${offset + i + 1} | ${line}`).join('\n');
63
- return `File: ${fp} (${lines.length} lines, showing ${offset + 1}-${Math.min(offset + limit, lines.length)})\n${numbered}`;
64
- }
65
- catch (e) {
66
- return nodeErrToFileMessage(e, String(filePathArg), 'read');
67
- }
68
- }
69
- }
70
- /** 工厂:供 createBuiltinTools 与其它入口使用 */
71
- export function createReadFileTool() {
72
- return new ReadFileBuiltinTool().toTool();
73
- }
74
- //# sourceMappingURL=read-file-tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"read-file-tool.js","sourceRoot":"","sources":["../../src/builtin/read-file-tool.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EACL,kBAAkB,GACnB,MAAM,4BAA4B,CAAC;AACpC,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,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;YACzE,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC,CAAC;YACnD,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,IAAY,EAAE,CAAS,EAAE,EAAE,CAAC,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACnG,OAAO,SAAS,EAAE,KAAK,KAAK,CAAC,MAAM,mBAAmB,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,QAAQ,EAAE,CAAC;QAC7H,CAAC;QAAC,OAAO,CAAU,EAAE,CAAC;YACpB,OAAO,oBAAoB,CAAC,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;QAC9D,CAAC;IACH,CAAC;CACF;AAED,sCAAsC;AACtC,MAAM,UAAU,kBAAkB;IAChC,OAAO,IAAI,mBAAmB,EAAE,CAAC,MAAM,EAAE,CAAC;AAC5C,CAAC"}
@@ -1,23 +0,0 @@
1
- /**
2
- * run_deferred_task — 在同步 Worker 子 Agent 中执行 deferred 工具任务
3
- */
4
- import type { Tool, ToolParametersSchema, ToolResult } from '@zhin.js/core';
5
- import { BuiltinBaseTool } from './builtin-base-tool.js';
6
- export declare const RUN_DEFERRED_TASK_PARAMETERS: ToolParametersSchema;
7
- export interface RunDeferredTaskToolOptions {
8
- runWorker: (goal: string, toolQuery?: string) => Promise<string>;
9
- /** Agent 层工具执行超时(毫秒),默认 180_000 */
10
- timeoutMs?: number;
11
- }
12
- export declare class RunDeferredTaskBuiltinTool extends BuiltinBaseTool {
13
- private readonly opts;
14
- readonly name = "run_deferred_task";
15
- readonly description = "Run a deferred-tool task synchronously in an isolated Worker sub-agent (github/mcp/plugins, etc.). Returns the Worker result to the main agent to continue orchestration or reply. This is the only entry point for deferred capabilities.";
16
- readonly parameters: ToolParametersSchema<Record<string, any>>;
17
- readonly kind = "meta";
18
- readonly executionTimeoutMs: number;
19
- constructor(opts: RunDeferredTaskToolOptions);
20
- run(args: Record<string, unknown>): Promise<ToolResult>;
21
- }
22
- export declare function createRunDeferredTaskTool(opts: RunDeferredTaskToolOptions): Tool;
23
- //# sourceMappingURL=run-deferred-task-tool.d.ts.map