rookery-agent 0.1.0 → 0.3.0

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 (670) hide show
  1. package/README.md +467 -367
  2. package/docs/migration.md +88 -88
  3. package/docs/updates.md +112 -0
  4. package/package.json +13 -3
  5. package/packages/cli/dist/commands/config.js +2 -2
  6. package/packages/cli/dist/commands/doctor.d.ts.map +1 -1
  7. package/packages/cli/dist/commands/doctor.js +13 -9
  8. package/packages/cli/dist/commands/doctor.js.map +1 -1
  9. package/packages/cli/dist/commands/memory.js +1 -1
  10. package/packages/cli/dist/commands/org.d.ts +2 -2
  11. package/packages/cli/dist/commands/org.d.ts.map +1 -1
  12. package/packages/cli/dist/commands/org.js +19 -17
  13. package/packages/cli/dist/commands/org.js.map +1 -1
  14. package/packages/cli/dist/commands/serve.js +1 -1
  15. package/packages/cli/dist/commands/serve.js.map +1 -1
  16. package/packages/cli/dist/commands/shared.d.ts.map +1 -1
  17. package/packages/cli/dist/commands/shared.js +2 -1
  18. package/packages/cli/dist/commands/shared.js.map +1 -1
  19. package/packages/cli/dist/commands/tasks.d.ts.map +1 -1
  20. package/packages/cli/dist/commands/tasks.js +25 -11
  21. package/packages/cli/dist/commands/tasks.js.map +1 -1
  22. package/packages/cli/dist/commands/tools.js +1 -1
  23. package/packages/cli/dist/commands/tools.js.map +1 -1
  24. package/packages/cli/dist/index.js +13 -13
  25. package/packages/cli/dist/index.js.map +1 -1
  26. package/packages/cli/dist/repl.d.ts +12 -0
  27. package/packages/cli/dist/repl.d.ts.map +1 -1
  28. package/packages/cli/dist/repl.js +170 -16
  29. package/packages/cli/dist/repl.js.map +1 -1
  30. package/packages/cli/dist/tui/App.d.ts +7 -3
  31. package/packages/cli/dist/tui/App.d.ts.map +1 -1
  32. package/packages/cli/dist/tui/App.js +182 -16
  33. package/packages/cli/dist/tui/App.js.map +1 -1
  34. package/packages/cli/dist/tui/commands.d.ts +7 -0
  35. package/packages/cli/dist/tui/commands.d.ts.map +1 -1
  36. package/packages/cli/dist/tui/commands.js +70 -8
  37. package/packages/cli/dist/tui/commands.js.map +1 -1
  38. package/packages/cli/dist/tui/components/AssignmentsView.js +4 -4
  39. package/packages/cli/dist/tui/components/AssignmentsView.js.map +1 -1
  40. package/packages/cli/dist/tui/components/Banner.d.ts +11 -2
  41. package/packages/cli/dist/tui/components/Banner.d.ts.map +1 -1
  42. package/packages/cli/dist/tui/components/Banner.js +7 -10
  43. package/packages/cli/dist/tui/components/Banner.js.map +1 -1
  44. package/packages/cli/dist/tui/components/CodeBlock.js +2 -2
  45. package/packages/cli/dist/tui/components/CodeBlock.js.map +1 -1
  46. package/packages/cli/dist/tui/components/InputBox.d.ts.map +1 -1
  47. package/packages/cli/dist/tui/components/InputBox.js +4 -4
  48. package/packages/cli/dist/tui/components/InputBox.js.map +1 -1
  49. package/packages/cli/dist/tui/components/Logo.d.ts +56 -0
  50. package/packages/cli/dist/tui/components/Logo.d.ts.map +1 -0
  51. package/packages/cli/dist/tui/components/Logo.js +50 -0
  52. package/packages/cli/dist/tui/components/Logo.js.map +1 -0
  53. package/packages/cli/dist/tui/components/Markdown.js +8 -8
  54. package/packages/cli/dist/tui/components/Markdown.js.map +1 -1
  55. package/packages/cli/dist/tui/components/Message.d.ts +1 -1
  56. package/packages/cli/dist/tui/components/Message.d.ts.map +1 -1
  57. package/packages/cli/dist/tui/components/Message.js +5 -4
  58. package/packages/cli/dist/tui/components/Message.js.map +1 -1
  59. package/packages/cli/dist/tui/components/QuestionView.d.ts +29 -0
  60. package/packages/cli/dist/tui/components/QuestionView.d.ts.map +1 -0
  61. package/packages/cli/dist/tui/components/QuestionView.js +53 -0
  62. package/packages/cli/dist/tui/components/QuestionView.js.map +1 -0
  63. package/packages/cli/dist/tui/components/SlashPalette.d.ts +5 -2
  64. package/packages/cli/dist/tui/components/SlashPalette.d.ts.map +1 -1
  65. package/packages/cli/dist/tui/components/SlashPalette.js +2 -2
  66. package/packages/cli/dist/tui/components/SlashPalette.js.map +1 -1
  67. package/packages/cli/dist/tui/components/StatusLine.d.ts +0 -2
  68. package/packages/cli/dist/tui/components/StatusLine.d.ts.map +1 -1
  69. package/packages/cli/dist/tui/components/StatusLine.js +8 -5
  70. package/packages/cli/dist/tui/components/StatusLine.js.map +1 -1
  71. package/packages/cli/dist/tui/components/ToolGroup.js +2 -2
  72. package/packages/cli/dist/tui/components/ToolGroup.js.map +1 -1
  73. package/packages/cli/dist/tui/components/WatchView.d.ts +21 -0
  74. package/packages/cli/dist/tui/components/WatchView.d.ts.map +1 -0
  75. package/packages/cli/dist/tui/components/WatchView.js +36 -0
  76. package/packages/cli/dist/tui/components/WatchView.js.map +1 -0
  77. package/packages/cli/dist/tui/history.d.ts +20 -0
  78. package/packages/cli/dist/tui/history.d.ts.map +1 -0
  79. package/packages/cli/dist/tui/history.js +105 -0
  80. package/packages/cli/dist/tui/history.js.map +1 -0
  81. package/packages/cli/dist/tui/hooks/useSlash.d.ts.map +1 -1
  82. package/packages/cli/dist/tui/hooks/useSlash.js +3 -2
  83. package/packages/cli/dist/tui/hooks/useSlash.js.map +1 -1
  84. package/packages/cli/dist/tui/hooks/useTurn.d.ts +58 -1
  85. package/packages/cli/dist/tui/hooks/useTurn.d.ts.map +1 -1
  86. package/packages/cli/dist/tui/hooks/useTurn.js +214 -36
  87. package/packages/cli/dist/tui/hooks/useTurn.js.map +1 -1
  88. package/packages/cli/dist/tui/hooks/useWatch.d.ts +52 -0
  89. package/packages/cli/dist/tui/hooks/useWatch.d.ts.map +1 -0
  90. package/packages/cli/dist/tui/hooks/useWatch.js +145 -0
  91. package/packages/cli/dist/tui/hooks/useWatch.js.map +1 -0
  92. package/packages/cli/dist/tui/inkTheme.d.ts +19 -0
  93. package/packages/cli/dist/tui/inkTheme.d.ts.map +1 -0
  94. package/packages/cli/dist/tui/inkTheme.js +81 -0
  95. package/packages/cli/dist/tui/inkTheme.js.map +1 -0
  96. package/packages/cli/dist/tui/theme.d.ts +39 -29
  97. package/packages/cli/dist/tui/theme.d.ts.map +1 -1
  98. package/packages/cli/dist/tui/theme.js +35 -25
  99. package/packages/cli/dist/tui/theme.js.map +1 -1
  100. package/packages/cli/dist/tui/types.d.ts +56 -3
  101. package/packages/cli/dist/tui/types.d.ts.map +1 -1
  102. package/packages/cli/dist/tui/types.js +85 -0
  103. package/packages/cli/dist/tui/types.js.map +1 -1
  104. package/packages/cli/dist/ui/modelNames.d.ts +51 -0
  105. package/packages/cli/dist/ui/modelNames.d.ts.map +1 -0
  106. package/packages/cli/dist/ui/modelNames.js +134 -0
  107. package/packages/cli/dist/ui/modelNames.js.map +1 -0
  108. package/packages/cli/dist/ui/render.d.ts.map +1 -1
  109. package/packages/cli/dist/ui/render.js +17 -8
  110. package/packages/cli/dist/ui/render.js.map +1 -1
  111. package/packages/cli/dist/ui/speech.js +5 -0
  112. package/packages/cli/dist/ui/speech.js.map +1 -1
  113. package/packages/cli/dist/ui/theme.d.ts +33 -9
  114. package/packages/cli/dist/ui/theme.d.ts.map +1 -1
  115. package/packages/cli/dist/ui/theme.js +33 -9
  116. package/packages/cli/dist/ui/theme.js.map +1 -1
  117. package/packages/cli/package.json +1 -1
  118. package/packages/core/dist/agents/persona.d.ts.map +1 -1
  119. package/packages/core/dist/agents/persona.js +5 -2
  120. package/packages/core/dist/agents/persona.js.map +1 -1
  121. package/packages/core/dist/computer/accessibility.d.ts +78 -0
  122. package/packages/core/dist/computer/accessibility.d.ts.map +1 -0
  123. package/packages/core/dist/computer/accessibility.js +270 -0
  124. package/packages/core/dist/computer/accessibility.js.map +1 -0
  125. package/packages/core/dist/computer/assemblies.d.ts +17 -0
  126. package/packages/core/dist/computer/assemblies.d.ts.map +1 -0
  127. package/packages/core/dist/computer/assemblies.js +55 -0
  128. package/packages/core/dist/computer/assemblies.js.map +1 -0
  129. package/packages/core/dist/computer/browser-init.d.ts +9 -0
  130. package/packages/core/dist/computer/browser-init.d.ts.map +1 -0
  131. package/packages/core/dist/computer/browser-init.js +133 -0
  132. package/packages/core/dist/computer/browser-init.js.map +1 -0
  133. package/packages/core/dist/computer/cursor.d.ts +30 -0
  134. package/packages/core/dist/computer/cursor.d.ts.map +1 -0
  135. package/packages/core/dist/computer/cursor.js +30 -0
  136. package/packages/core/dist/computer/cursor.js.map +1 -0
  137. package/packages/core/dist/computer/mcp-server.js +524 -82
  138. package/packages/core/dist/computer/mcp-server.js.map +1 -1
  139. package/packages/core/dist/computer/powershell.d.ts +4 -0
  140. package/packages/core/dist/computer/powershell.d.ts.map +1 -1
  141. package/packages/core/dist/computer/powershell.js +471 -81
  142. package/packages/core/dist/computer/powershell.js.map +1 -1
  143. package/packages/core/dist/computer/screen-text.d.ts +82 -0
  144. package/packages/core/dist/computer/screen-text.d.ts.map +1 -0
  145. package/packages/core/dist/computer/screen-text.js +243 -0
  146. package/packages/core/dist/computer/screen-text.js.map +1 -0
  147. package/packages/core/dist/computer/sketch.d.ts +66 -0
  148. package/packages/core/dist/computer/sketch.d.ts.map +1 -0
  149. package/packages/core/dist/computer/sketch.js +540 -0
  150. package/packages/core/dist/computer/sketch.js.map +1 -0
  151. package/packages/core/dist/computer/tools.d.ts +8 -8
  152. package/packages/core/dist/computer/tools.d.ts.map +1 -1
  153. package/packages/core/dist/computer/tools.js +186 -31
  154. package/packages/core/dist/computer/tools.js.map +1 -1
  155. package/packages/core/dist/computer/validation.d.ts +555 -0
  156. package/packages/core/dist/computer/validation.d.ts.map +1 -0
  157. package/packages/core/dist/computer/validation.js +111 -0
  158. package/packages/core/dist/computer/validation.js.map +1 -0
  159. package/packages/core/dist/computer/windows-cursor.d.ts +14 -0
  160. package/packages/core/dist/computer/windows-cursor.d.ts.map +1 -0
  161. package/packages/core/dist/computer/windows-cursor.js +713 -0
  162. package/packages/core/dist/computer/windows-cursor.js.map +1 -0
  163. package/packages/core/dist/config.d.ts +34 -1
  164. package/packages/core/dist/config.d.ts.map +1 -1
  165. package/packages/core/dist/config.js +362 -11
  166. package/packages/core/dist/config.js.map +1 -1
  167. package/packages/core/dist/cron/scheduler.d.ts +59 -6
  168. package/packages/core/dist/cron/scheduler.d.ts.map +1 -1
  169. package/packages/core/dist/cron/scheduler.js +295 -27
  170. package/packages/core/dist/cron/scheduler.js.map +1 -1
  171. package/packages/core/dist/cron/store.d.ts +19 -1
  172. package/packages/core/dist/cron/store.d.ts.map +1 -1
  173. package/packages/core/dist/cron/store.js +36 -8
  174. package/packages/core/dist/cron/store.js.map +1 -1
  175. package/packages/core/dist/external/claude-code.d.ts +4 -0
  176. package/packages/core/dist/external/claude-code.d.ts.map +1 -0
  177. package/packages/core/dist/external/claude-code.js +111 -0
  178. package/packages/core/dist/external/claude-code.js.map +1 -0
  179. package/packages/core/dist/external/discovery.d.ts +33 -0
  180. package/packages/core/dist/external/discovery.d.ts.map +1 -0
  181. package/packages/core/dist/external/discovery.js +144 -0
  182. package/packages/core/dist/external/discovery.js.map +1 -0
  183. package/packages/core/dist/external/homes.d.ts +26 -0
  184. package/packages/core/dist/external/homes.d.ts.map +1 -0
  185. package/packages/core/dist/external/homes.js +49 -0
  186. package/packages/core/dist/external/homes.js.map +1 -0
  187. package/packages/core/dist/external/shared.d.ts +201 -0
  188. package/packages/core/dist/external/shared.d.ts.map +1 -0
  189. package/packages/core/dist/external/shared.js +308 -0
  190. package/packages/core/dist/external/shared.js.map +1 -0
  191. package/packages/core/dist/gateway/policy.d.ts +117 -2
  192. package/packages/core/dist/gateway/policy.d.ts.map +1 -1
  193. package/packages/core/dist/gateway/policy.js +286 -6
  194. package/packages/core/dist/gateway/policy.js.map +1 -1
  195. package/packages/core/dist/index.d.ts +38 -12
  196. package/packages/core/dist/index.d.ts.map +1 -1
  197. package/packages/core/dist/index.js +66 -12
  198. package/packages/core/dist/index.js.map +1 -1
  199. package/packages/core/dist/memory/db.d.ts +1 -1
  200. package/packages/core/dist/memory/db.d.ts.map +1 -1
  201. package/packages/core/dist/memory/db.js +878 -1
  202. package/packages/core/dist/memory/db.js.map +1 -1
  203. package/packages/core/dist/memory/dream/admission.d.ts +124 -0
  204. package/packages/core/dist/memory/dream/admission.d.ts.map +1 -0
  205. package/packages/core/dist/memory/dream/admission.js +116 -0
  206. package/packages/core/dist/memory/dream/admission.js.map +1 -0
  207. package/packages/core/dist/memory/dream/candidate.d.ts +152 -0
  208. package/packages/core/dist/memory/dream/candidate.d.ts.map +1 -0
  209. package/packages/core/dist/memory/dream/candidate.js +547 -0
  210. package/packages/core/dist/memory/dream/candidate.js.map +1 -0
  211. package/packages/core/dist/memory/dream/evaluate.d.ts +394 -0
  212. package/packages/core/dist/memory/dream/evaluate.d.ts.map +1 -0
  213. package/packages/core/dist/memory/dream/evaluate.js +1032 -0
  214. package/packages/core/dist/memory/dream/evaluate.js.map +1 -0
  215. package/packages/core/dist/memory/dream/frame.d.ts +61 -0
  216. package/packages/core/dist/memory/dream/frame.d.ts.map +1 -0
  217. package/packages/core/dist/memory/dream/frame.js +292 -0
  218. package/packages/core/dist/memory/dream/frame.js.map +1 -0
  219. package/packages/core/dist/memory/dream/label.d.ts +370 -0
  220. package/packages/core/dist/memory/dream/label.d.ts.map +1 -0
  221. package/packages/core/dist/memory/dream/label.js +439 -0
  222. package/packages/core/dist/memory/dream/label.js.map +1 -0
  223. package/packages/core/dist/memory/dream/measure.d.ts +114 -0
  224. package/packages/core/dist/memory/dream/measure.d.ts.map +1 -0
  225. package/packages/core/dist/memory/dream/measure.js +205 -0
  226. package/packages/core/dist/memory/dream/measure.js.map +1 -0
  227. package/packages/core/dist/memory/dream/policy.d.ts +21 -0
  228. package/packages/core/dist/memory/dream/policy.d.ts.map +1 -0
  229. package/packages/core/dist/memory/dream/policy.js +157 -0
  230. package/packages/core/dist/memory/dream/policy.js.map +1 -0
  231. package/packages/core/dist/memory/dream/probe.d.ts +202 -0
  232. package/packages/core/dist/memory/dream/probe.d.ts.map +1 -0
  233. package/packages/core/dist/memory/dream/probe.js +671 -0
  234. package/packages/core/dist/memory/dream/probe.js.map +1 -0
  235. package/packages/core/dist/memory/dream/promote.d.ts +312 -0
  236. package/packages/core/dist/memory/dream/promote.d.ts.map +1 -0
  237. package/packages/core/dist/memory/dream/promote.js +528 -0
  238. package/packages/core/dist/memory/dream/promote.js.map +1 -0
  239. package/packages/core/dist/memory/dream/score.d.ts +103 -0
  240. package/packages/core/dist/memory/dream/score.d.ts.map +1 -0
  241. package/packages/core/dist/memory/dream/score.js +334 -0
  242. package/packages/core/dist/memory/dream/score.js.map +1 -0
  243. package/packages/core/dist/memory/dream/slots.d.ts +193 -0
  244. package/packages/core/dist/memory/dream/slots.d.ts.map +1 -0
  245. package/packages/core/dist/memory/dream/slots.js +0 -0
  246. package/packages/core/dist/memory/dream/slots.js.map +1 -0
  247. package/packages/core/dist/memory/dream/trajectory.d.ts +262 -0
  248. package/packages/core/dist/memory/dream/trajectory.d.ts.map +1 -0
  249. package/packages/core/dist/memory/dream/trajectory.js +366 -0
  250. package/packages/core/dist/memory/dream/trajectory.js.map +1 -0
  251. package/packages/core/dist/memory/extractor.d.ts +7 -0
  252. package/packages/core/dist/memory/extractor.d.ts.map +1 -1
  253. package/packages/core/dist/memory/extractor.js +35 -12
  254. package/packages/core/dist/memory/extractor.js.map +1 -1
  255. package/packages/core/dist/memory/gate.d.ts +43 -7
  256. package/packages/core/dist/memory/gate.d.ts.map +1 -1
  257. package/packages/core/dist/memory/gate.js +91 -4
  258. package/packages/core/dist/memory/gate.js.map +1 -1
  259. package/packages/core/dist/memory/recall.d.ts +57 -0
  260. package/packages/core/dist/memory/recall.d.ts.map +1 -1
  261. package/packages/core/dist/memory/recall.js +60 -123
  262. package/packages/core/dist/memory/recall.js.map +1 -1
  263. package/packages/core/dist/memory/sleep.d.ts +131 -4
  264. package/packages/core/dist/memory/sleep.d.ts.map +1 -1
  265. package/packages/core/dist/memory/sleep.js +2384 -65
  266. package/packages/core/dist/memory/sleep.js.map +1 -1
  267. package/packages/core/dist/memory/store.d.ts +564 -10
  268. package/packages/core/dist/memory/store.d.ts.map +1 -1
  269. package/packages/core/dist/memory/store.js +1673 -102
  270. package/packages/core/dist/memory/store.js.map +1 -1
  271. package/packages/core/dist/org/controller.d.ts +268 -4
  272. package/packages/core/dist/org/controller.d.ts.map +1 -1
  273. package/packages/core/dist/org/controller.js +2298 -248
  274. package/packages/core/dist/org/controller.js.map +1 -1
  275. package/packages/core/dist/org/ponytail.d.ts +1 -1
  276. package/packages/core/dist/org/ponytail.js +1 -1
  277. package/packages/core/dist/org/project-mcp.d.ts +3 -3
  278. package/packages/core/dist/org/prompts.d.ts +44 -30
  279. package/packages/core/dist/org/prompts.d.ts.map +1 -1
  280. package/packages/core/dist/org/prompts.js +209 -92
  281. package/packages/core/dist/org/prompts.js.map +1 -1
  282. package/packages/core/dist/org/questions.d.ts +104 -0
  283. package/packages/core/dist/org/questions.d.ts.map +1 -0
  284. package/packages/core/dist/org/questions.js +136 -0
  285. package/packages/core/dist/org/questions.js.map +1 -0
  286. package/packages/core/dist/org/review.d.ts +100 -0
  287. package/packages/core/dist/org/review.d.ts.map +1 -0
  288. package/packages/core/dist/org/review.js +256 -0
  289. package/packages/core/dist/org/review.js.map +1 -0
  290. package/packages/core/dist/org/store.d.ts +311 -2
  291. package/packages/core/dist/org/store.d.ts.map +1 -1
  292. package/packages/core/dist/org/store.js +981 -13
  293. package/packages/core/dist/org/store.js.map +1 -1
  294. package/packages/core/dist/org/tools.d.ts +33 -3
  295. package/packages/core/dist/org/tools.d.ts.map +1 -1
  296. package/packages/core/dist/org/tools.js +380 -67
  297. package/packages/core/dist/org/tools.js.map +1 -1
  298. package/packages/core/dist/providers/catalogue.d.ts +1 -1
  299. package/packages/core/dist/providers/catalogue.d.ts.map +1 -1
  300. package/packages/core/dist/providers/catalogue.js +2 -2
  301. package/packages/core/dist/providers/catalogue.js.map +1 -1
  302. package/packages/core/dist/providers/claude-code.d.ts +19 -3
  303. package/packages/core/dist/providers/claude-code.d.ts.map +1 -1
  304. package/packages/core/dist/providers/claude-code.js +501 -40
  305. package/packages/core/dist/providers/claude-code.js.map +1 -1
  306. package/packages/core/dist/providers/claude-tui.d.ts +288 -0
  307. package/packages/core/dist/providers/claude-tui.d.ts.map +1 -0
  308. package/packages/core/dist/providers/claude-tui.js +1118 -0
  309. package/packages/core/dist/providers/claude-tui.js.map +1 -0
  310. package/packages/core/dist/providers/codex-auth.d.ts +15 -0
  311. package/packages/core/dist/providers/codex-auth.d.ts.map +1 -0
  312. package/packages/core/dist/providers/codex-auth.js +127 -0
  313. package/packages/core/dist/providers/codex-auth.js.map +1 -0
  314. package/packages/core/dist/providers/codex-bridge.d.ts +58 -0
  315. package/packages/core/dist/providers/codex-bridge.d.ts.map +1 -0
  316. package/packages/core/dist/providers/codex-bridge.js +375 -0
  317. package/packages/core/dist/providers/codex-bridge.js.map +1 -0
  318. package/packages/core/dist/providers/codex-translate.d.ts +75 -0
  319. package/packages/core/dist/providers/codex-translate.d.ts.map +1 -0
  320. package/packages/core/dist/providers/codex-translate.js +383 -0
  321. package/packages/core/dist/providers/codex-translate.js.map +1 -0
  322. package/packages/core/dist/providers/model-gateway.d.ts +56 -0
  323. package/packages/core/dist/providers/model-gateway.d.ts.map +1 -0
  324. package/packages/core/dist/providers/model-gateway.js +119 -0
  325. package/packages/core/dist/providers/model-gateway.js.map +1 -0
  326. package/packages/core/dist/providers/process.d.ts +3 -1
  327. package/packages/core/dist/providers/process.d.ts.map +1 -1
  328. package/packages/core/dist/providers/process.js +3 -3
  329. package/packages/core/dist/providers/process.js.map +1 -1
  330. package/packages/core/dist/providers/profiles.d.ts +11 -0
  331. package/packages/core/dist/providers/profiles.d.ts.map +1 -0
  332. package/packages/core/dist/providers/profiles.js +28 -0
  333. package/packages/core/dist/providers/profiles.js.map +1 -0
  334. package/packages/core/dist/providers/provider-catalog.d.ts +72 -0
  335. package/packages/core/dist/providers/provider-catalog.d.ts.map +1 -0
  336. package/packages/core/dist/providers/provider-catalog.js +144 -0
  337. package/packages/core/dist/providers/provider-catalog.js.map +1 -0
  338. package/packages/core/dist/providers/quota.d.ts +40 -1
  339. package/packages/core/dist/providers/quota.d.ts.map +1 -1
  340. package/packages/core/dist/providers/quota.js +288 -25
  341. package/packages/core/dist/providers/quota.js.map +1 -1
  342. package/packages/core/dist/providers/registry.d.ts +46 -3
  343. package/packages/core/dist/providers/registry.d.ts.map +1 -1
  344. package/packages/core/dist/providers/registry.js +148 -13
  345. package/packages/core/dist/providers/registry.js.map +1 -1
  346. package/packages/core/dist/providers/router.d.ts +28 -0
  347. package/packages/core/dist/providers/router.d.ts.map +1 -0
  348. package/packages/core/dist/providers/router.js +88 -0
  349. package/packages/core/dist/providers/router.js.map +1 -0
  350. package/packages/core/dist/providers/user-settings-guard.d.ts +12 -0
  351. package/packages/core/dist/providers/user-settings-guard.d.ts.map +1 -0
  352. package/packages/core/dist/providers/user-settings-guard.js +130 -0
  353. package/packages/core/dist/providers/user-settings-guard.js.map +1 -0
  354. package/packages/core/dist/runtime.d.ts +193 -7
  355. package/packages/core/dist/runtime.d.ts.map +1 -1
  356. package/packages/core/dist/runtime.js +1676 -219
  357. package/packages/core/dist/runtime.js.map +1 -1
  358. package/packages/core/dist/skills/builtin.d.ts +34 -0
  359. package/packages/core/dist/skills/builtin.d.ts.map +1 -0
  360. package/packages/core/dist/skills/builtin.js +305 -0
  361. package/packages/core/dist/skills/builtin.js.map +1 -0
  362. package/packages/core/dist/skills/shelf.d.ts +30 -0
  363. package/packages/core/dist/skills/shelf.d.ts.map +1 -0
  364. package/packages/core/dist/skills/shelf.js +159 -0
  365. package/packages/core/dist/skills/shelf.js.map +1 -0
  366. package/packages/core/dist/skills/store.d.ts +66 -4
  367. package/packages/core/dist/skills/store.d.ts.map +1 -1
  368. package/packages/core/dist/skills/store.js +105 -18
  369. package/packages/core/dist/skills/store.js.map +1 -1
  370. package/packages/core/dist/skills/suggest.d.ts +21 -0
  371. package/packages/core/dist/skills/suggest.d.ts.map +1 -0
  372. package/packages/core/dist/skills/suggest.js +150 -0
  373. package/packages/core/dist/skills/suggest.js.map +1 -0
  374. package/packages/core/dist/tools/catalog.d.ts +1 -3
  375. package/packages/core/dist/tools/catalog.d.ts.map +1 -1
  376. package/packages/core/dist/tools/catalog.js +38 -26
  377. package/packages/core/dist/tools/catalog.js.map +1 -1
  378. package/packages/core/dist/tools/hub.d.ts +136 -10
  379. package/packages/core/dist/tools/hub.d.ts.map +1 -1
  380. package/packages/core/dist/tools/hub.js +418 -24
  381. package/packages/core/dist/tools/hub.js.map +1 -1
  382. package/packages/core/dist/turns/journal.d.ts +78 -0
  383. package/packages/core/dist/turns/journal.d.ts.map +1 -0
  384. package/packages/core/dist/turns/journal.js +104 -0
  385. package/packages/core/dist/turns/journal.js.map +1 -0
  386. package/packages/core/dist/types.d.ts +1776 -12
  387. package/packages/core/dist/types.d.ts.map +1 -1
  388. package/packages/core/dist/types.js.map +1 -1
  389. package/packages/core/dist/util/blocks.d.ts +41 -0
  390. package/packages/core/dist/util/blocks.d.ts.map +1 -0
  391. package/packages/core/dist/util/blocks.js +175 -0
  392. package/packages/core/dist/util/blocks.js.map +1 -0
  393. package/packages/core/dist/util/queue.d.ts +12 -0
  394. package/packages/core/dist/util/queue.d.ts.map +1 -1
  395. package/packages/core/dist/util/queue.js +16 -0
  396. package/packages/core/dist/util/queue.js.map +1 -1
  397. package/packages/core/dist/util/time.d.ts +39 -0
  398. package/packages/core/dist/util/time.d.ts.map +1 -0
  399. package/packages/core/dist/util/time.js +71 -0
  400. package/packages/core/dist/util/time.js.map +1 -0
  401. package/packages/core/package.json +1 -1
  402. package/packages/server/dist/auth.d.ts +14 -1
  403. package/packages/server/dist/auth.d.ts.map +1 -1
  404. package/packages/server/dist/auth.js +19 -0
  405. package/packages/server/dist/auth.js.map +1 -1
  406. package/packages/server/dist/context.d.ts +35 -1
  407. package/packages/server/dist/context.d.ts.map +1 -1
  408. package/packages/server/dist/context.js +39 -10
  409. package/packages/server/dist/context.js.map +1 -1
  410. package/packages/server/dist/gateways/attachments.d.ts +32 -0
  411. package/packages/server/dist/gateways/attachments.d.ts.map +1 -0
  412. package/packages/server/dist/gateways/attachments.js +167 -0
  413. package/packages/server/dist/gateways/attachments.js.map +1 -0
  414. package/packages/server/dist/gateways/markdown.d.ts +9 -0
  415. package/packages/server/dist/gateways/markdown.d.ts.map +1 -0
  416. package/packages/server/dist/gateways/markdown.js +170 -0
  417. package/packages/server/dist/gateways/markdown.js.map +1 -0
  418. package/packages/server/dist/gateways/push.d.ts +1 -1
  419. package/packages/server/dist/gateways/push.d.ts.map +1 -1
  420. package/packages/server/dist/gateways/push.js +420 -13
  421. package/packages/server/dist/gateways/push.js.map +1 -1
  422. package/packages/server/dist/gateways/telegram-api.d.ts +70 -1
  423. package/packages/server/dist/gateways/telegram-api.d.ts.map +1 -1
  424. package/packages/server/dist/gateways/telegram-api.js +140 -1
  425. package/packages/server/dist/gateways/telegram-api.js.map +1 -1
  426. package/packages/server/dist/gateways/telegram.d.ts +181 -1
  427. package/packages/server/dist/gateways/telegram.d.ts.map +1 -1
  428. package/packages/server/dist/gateways/telegram.js +1572 -78
  429. package/packages/server/dist/gateways/telegram.js.map +1 -1
  430. package/packages/server/dist/gateways/threads.d.ts +84 -0
  431. package/packages/server/dist/gateways/threads.d.ts.map +1 -0
  432. package/packages/server/dist/gateways/threads.js +289 -0
  433. package/packages/server/dist/gateways/threads.js.map +1 -0
  434. package/packages/server/dist/index.d.ts +2 -1
  435. package/packages/server/dist/index.d.ts.map +1 -1
  436. package/packages/server/dist/index.js +2 -1
  437. package/packages/server/dist/index.js.map +1 -1
  438. package/packages/server/dist/listeners/imap.d.ts +13 -0
  439. package/packages/server/dist/listeners/imap.d.ts.map +1 -0
  440. package/packages/server/dist/listeners/imap.js +0 -0
  441. package/packages/server/dist/listeners/imap.js.map +1 -0
  442. package/packages/server/dist/listeners/registry.d.ts +18 -0
  443. package/packages/server/dist/listeners/registry.d.ts.map +1 -0
  444. package/packages/server/dist/listeners/registry.js +88 -0
  445. package/packages/server/dist/listeners/registry.js.map +1 -0
  446. package/packages/server/dist/listeners/types.d.ts +55 -0
  447. package/packages/server/dist/listeners/types.d.ts.map +1 -0
  448. package/packages/server/dist/listeners/types.js +2 -0
  449. package/packages/server/dist/listeners/types.js.map +1 -0
  450. package/packages/server/dist/main.js +15 -1
  451. package/packages/server/dist/main.js.map +1 -1
  452. package/packages/server/dist/routes/chat.d.ts +7 -3
  453. package/packages/server/dist/routes/chat.d.ts.map +1 -1
  454. package/packages/server/dist/routes/chat.js +8 -17
  455. package/packages/server/dist/routes/chat.js.map +1 -1
  456. package/packages/server/dist/routes/config.d.ts.map +1 -1
  457. package/packages/server/dist/routes/config.js +66 -7
  458. package/packages/server/dist/routes/config.js.map +1 -1
  459. package/packages/server/dist/routes/cron.d.ts.map +1 -1
  460. package/packages/server/dist/routes/cron.js +65 -8
  461. package/packages/server/dist/routes/cron.js.map +1 -1
  462. package/packages/server/dist/routes/dream.d.ts +22 -0
  463. package/packages/server/dist/routes/dream.d.ts.map +1 -0
  464. package/packages/server/dist/routes/dream.js +152 -0
  465. package/packages/server/dist/routes/dream.js.map +1 -0
  466. package/packages/server/dist/routes/hooks.d.ts +18 -0
  467. package/packages/server/dist/routes/hooks.d.ts.map +1 -0
  468. package/packages/server/dist/routes/hooks.js +62 -0
  469. package/packages/server/dist/routes/hooks.js.map +1 -0
  470. package/packages/server/dist/routes/listeners.d.ts +10 -0
  471. package/packages/server/dist/routes/listeners.d.ts.map +1 -0
  472. package/packages/server/dist/routes/listeners.js +12 -0
  473. package/packages/server/dist/routes/listeners.js.map +1 -0
  474. package/packages/server/dist/routes/memories.d.ts.map +1 -1
  475. package/packages/server/dist/routes/memories.js +55 -3
  476. package/packages/server/dist/routes/memories.js.map +1 -1
  477. package/packages/server/dist/routes/org.d.ts.map +1 -1
  478. package/packages/server/dist/routes/org.js +289 -49
  479. package/packages/server/dist/routes/org.js.map +1 -1
  480. package/packages/server/dist/routes/profile.d.ts.map +1 -1
  481. package/packages/server/dist/routes/profile.js +6 -3
  482. package/packages/server/dist/routes/profile.js.map +1 -1
  483. package/packages/server/dist/routes/providers.d.ts.map +1 -1
  484. package/packages/server/dist/routes/providers.js +66 -7
  485. package/packages/server/dist/routes/providers.js.map +1 -1
  486. package/packages/server/dist/routes/questions.d.ts +45 -0
  487. package/packages/server/dist/routes/questions.d.ts.map +1 -0
  488. package/packages/server/dist/routes/questions.js +73 -0
  489. package/packages/server/dist/routes/questions.js.map +1 -0
  490. package/packages/server/dist/routes/sessions.d.ts.map +1 -1
  491. package/packages/server/dist/routes/sessions.js +26 -6
  492. package/packages/server/dist/routes/sessions.js.map +1 -1
  493. package/packages/server/dist/routes/sleep.d.ts.map +1 -1
  494. package/packages/server/dist/routes/sleep.js +71 -2
  495. package/packages/server/dist/routes/sleep.js.map +1 -1
  496. package/packages/server/dist/routes/terminals.d.ts +25 -0
  497. package/packages/server/dist/routes/terminals.d.ts.map +1 -0
  498. package/packages/server/dist/routes/terminals.js +35 -0
  499. package/packages/server/dist/routes/terminals.js.map +1 -0
  500. package/packages/server/dist/routes/tools.d.ts.map +1 -1
  501. package/packages/server/dist/routes/tools.js +140 -6
  502. package/packages/server/dist/routes/tools.js.map +1 -1
  503. package/packages/server/dist/routes/updates.d.ts +10 -0
  504. package/packages/server/dist/routes/updates.d.ts.map +1 -0
  505. package/packages/server/dist/routes/updates.js +22 -0
  506. package/packages/server/dist/routes/updates.js.map +1 -0
  507. package/packages/server/dist/routes/ws.d.ts +11 -5
  508. package/packages/server/dist/routes/ws.d.ts.map +1 -1
  509. package/packages/server/dist/routes/ws.js +168 -28
  510. package/packages/server/dist/routes/ws.js.map +1 -1
  511. package/packages/server/dist/schemas.d.ts +1177 -215
  512. package/packages/server/dist/schemas.d.ts.map +1 -1
  513. package/packages/server/dist/schemas.js +317 -12
  514. package/packages/server/dist/schemas.js.map +1 -1
  515. package/packages/server/dist/server.d.ts +7 -1
  516. package/packages/server/dist/server.d.ts.map +1 -1
  517. package/packages/server/dist/server.js +210 -3
  518. package/packages/server/dist/server.js.map +1 -1
  519. package/packages/server/dist/services/stream.d.ts +94 -5
  520. package/packages/server/dist/services/stream.d.ts.map +1 -1
  521. package/packages/server/dist/services/stream.js +9 -20
  522. package/packages/server/dist/services/stream.js.map +1 -1
  523. package/packages/server/dist/services/stt.d.ts +65 -0
  524. package/packages/server/dist/services/stt.d.ts.map +1 -0
  525. package/packages/server/dist/services/stt.js +306 -0
  526. package/packages/server/dist/services/stt.js.map +1 -0
  527. package/packages/server/dist/services/turns.d.ts +54 -0
  528. package/packages/server/dist/services/turns.d.ts.map +1 -0
  529. package/packages/server/dist/services/turns.js +186 -0
  530. package/packages/server/dist/services/turns.js.map +1 -0
  531. package/packages/server/dist/services/updates.d.ts +99 -0
  532. package/packages/server/dist/services/updates.d.ts.map +1 -0
  533. package/packages/server/dist/services/updates.js +316 -0
  534. package/packages/server/dist/services/updates.js.map +1 -0
  535. package/packages/server/package.json +1 -1
  536. package/packages/web/dist/app-icon.svg +2 -0
  537. package/packages/web/dist/apple-touch-icon.png +0 -0
  538. package/packages/web/dist/assets/abnfDiagram-O67JEVCF-D7YyFndQ.js +1 -0
  539. package/packages/web/dist/assets/arc-C_Zgk2dJ.js +1 -0
  540. package/packages/web/dist/assets/architectureDiagram-NJMV4G6O-eI0adu1B.js +36 -0
  541. package/packages/web/dist/assets/blockDiagram-BEXU5L5S-WAoOFUA9.js +140 -0
  542. package/packages/web/dist/assets/c4Diagram-YGBWAQC7-DE8Zyhng.js +38 -0
  543. package/packages/web/dist/assets/channel-egZxcyUK.js +1 -0
  544. package/packages/web/dist/assets/chunk-2Q5K7J3B-bnqLP2XD.js +1 -0
  545. package/packages/web/dist/assets/chunk-3FUC2YCW-Ck1_SVe0.js +2 -0
  546. package/packages/web/dist/assets/chunk-5VM5RSS4-hDmC41gD.js +15 -0
  547. package/packages/web/dist/assets/chunk-GTNCS2PH-PoWvfCrT.js +88 -0
  548. package/packages/web/dist/assets/chunk-GWA4HPMP-D3V0IG43.js +1 -0
  549. package/packages/web/dist/assets/chunk-JWPE2WC7-BryfpHM5.js +1 -0
  550. package/packages/web/dist/assets/chunk-NETBCI7D-8ic1iEdT.js +1 -0
  551. package/packages/web/dist/assets/chunk-WEXAMYUT-nM8tmQT2.js +1 -0
  552. package/packages/web/dist/assets/chunk-XXDRQBXY-Do28F482.js +1 -0
  553. package/packages/web/dist/assets/classDiagram-v2-NBCMYWYE-Bop9oNNO.js +217 -0
  554. package/packages/web/dist/assets/cose-bilkent-JH36ORCC-a7f_bpnt.js +1 -0
  555. package/packages/web/dist/assets/cynefin-OW5HDTMX-DnArcis_.js +178 -0
  556. package/packages/web/dist/assets/cynefinDiagram-VND7K2PF-vEuTb1GD.js +62 -0
  557. package/packages/web/dist/assets/cytoscape.esm-Ix0LnXOy.js +331 -0
  558. package/packages/web/dist/assets/dagre-6A5THRUB-BgG4MynJ.js +4 -0
  559. package/packages/web/dist/assets/diagram-22UHCM2B-DRCQpafv.js +200 -0
  560. package/packages/web/dist/assets/diagram-3UASUU5V-BKgmAXde.js +24 -0
  561. package/packages/web/dist/assets/diagram-ATOU4E4O-B6Hsy36X.js +3 -0
  562. package/packages/web/dist/assets/diagram-CDSNMT55-JflyfyoB.js +30 -0
  563. package/packages/web/dist/assets/diagram-MLGK6HIB-Dd2QPJjT.js +24 -0
  564. package/packages/web/dist/assets/diagram-MPIPVDR6-DE5QU60x.js +41 -0
  565. package/packages/web/dist/assets/draco_decoder-C32yEggz.wasm +0 -0
  566. package/packages/web/dist/assets/draco_decoder-Z1_iN-Ht.wasm +0 -0
  567. package/packages/web/dist/assets/draco_decoder-fzg4nYZr.js +34 -0
  568. package/packages/web/dist/assets/draco_wasm_wrapper-DxJM36Ib.js +117 -0
  569. package/packages/web/dist/assets/draco_wasm_wrapper-fZCQGLGb.js +116 -0
  570. package/packages/web/dist/assets/ebnfDiagram-ZINNZB2B-D7AQ741b.js +1 -0
  571. package/packages/web/dist/assets/elk-276RUBZZ-CeewBVLF.js +27 -0
  572. package/packages/web/dist/assets/erDiagram-OPXOYQCR-mLLYkZ5c.js +99 -0
  573. package/packages/web/dist/assets/flowDiagram-KWPJA3E3-DtpSpsQN.js +213 -0
  574. package/packages/web/dist/assets/ganttDiagram-FUAMR5RP-1_lh-3ky.js +292 -0
  575. package/packages/web/dist/assets/gitGraphDiagram-X574FWY7-DoPXZuT5.js +106 -0
  576. package/packages/web/dist/assets/graph-Bn3Yngep.js +1 -0
  577. package/packages/web/dist/assets/index-Cw2Opmx7.js +648 -0
  578. package/packages/web/dist/assets/index-j0zBRCgT.css +32 -0
  579. package/packages/web/dist/assets/infoDiagram-VRGFBTTK-DQpRGGiD.js +2 -0
  580. package/packages/web/dist/assets/ishikawaDiagram-OU5B5YK6-gH5C9Q2e.js +70 -0
  581. package/packages/web/dist/assets/journeyDiagram-ZHPQQLJL-Bg-oeFjb.js +139 -0
  582. package/packages/web/dist/assets/kanban-definition-PNTS6WVX-BnpI4VH8.js +89 -0
  583. package/packages/web/dist/assets/katex-C5jXJg4s.js +257 -0
  584. package/packages/web/dist/assets/mermaid.core-BwBKxlRA.js +313 -0
  585. package/packages/web/dist/assets/mindmap-definition-NLK3R4M7-NBnnxEoO.js +96 -0
  586. package/packages/web/dist/assets/pegDiagram-GJSIUBJH-RrXXbIvO.js +1 -0
  587. package/packages/web/dist/assets/pieDiagram-5QR66LMP-B27q6Gso.js +39 -0
  588. package/packages/web/dist/assets/quadrantDiagram-O4NWA36T-DGDsdur2.js +7 -0
  589. package/packages/web/dist/assets/railroadDiagram-XR7U4H2S-GdjkE3mI.js +1 -0
  590. package/packages/web/dist/assets/requirementDiagram-PLB6GJNP-DjK0GfgO.js +84 -0
  591. package/packages/web/dist/assets/sankeyDiagram-IPEJSGJF-BG_AIkwF.js +40 -0
  592. package/packages/web/dist/assets/scene-D4LPicHk.js +4620 -0
  593. package/packages/web/dist/assets/sequenceDiagram-PO4LG4MO-CIQwUb4y.js +169 -0
  594. package/packages/web/dist/assets/sizeCapture-INFHLROL-bpIoPxdJ.js +1 -0
  595. package/packages/web/dist/assets/stateDiagram-v2-GCMORJYK-8hYXvPPv.js +291 -0
  596. package/packages/web/dist/assets/swimlanes-2SLR337P-gfflUMF9.js +1 -0
  597. package/packages/web/dist/assets/swimlanesDiagram-TC7HE7FX-9wdzGXU-.js +8 -0
  598. package/packages/web/dist/assets/timeline-definition-EJHVYXUP-PHMNoGTZ.js +120 -0
  599. package/packages/web/dist/assets/usecaseDiagram-POWQR4AR-B2j5iteO.js +370 -0
  600. package/packages/web/dist/assets/vennDiagram-UO4OBE2U-BzxtZ-_2.js +34 -0
  601. package/packages/web/dist/assets/wardleyDiagram-VNRHLVJA-DL7YbMpY.js +78 -0
  602. package/packages/web/dist/assets/xychartDiagram-PMCCYNJV-CisgP1cT.js +7 -0
  603. package/packages/web/dist/draco/draco_decoder.js +33 -0
  604. package/packages/web/dist/draco/draco_decoder.wasm +0 -0
  605. package/packages/web/dist/draco/draco_wasm_wrapper.js +116 -0
  606. package/packages/web/dist/favicon-16.png +0 -0
  607. package/packages/web/dist/favicon-32.png +0 -0
  608. package/packages/web/dist/favicon-48.png +0 -0
  609. package/packages/web/dist/favicon.ico +0 -0
  610. package/packages/web/dist/favicon.svg +1 -1
  611. package/packages/web/dist/icon-192.png +0 -0
  612. package/packages/web/dist/icon-512.png +0 -0
  613. package/packages/web/dist/index.html +12 -4
  614. package/packages/web/dist/logo-light.svg +1 -1
  615. package/packages/web/dist/logo-mono.svg +2 -0
  616. package/packages/web/dist/logo-stacked-light.svg +2 -0
  617. package/packages/web/dist/logo-stacked.svg +2 -0
  618. package/packages/web/dist/logo-white.svg +2 -0
  619. package/packages/web/dist/logo.svg +1 -1
  620. package/packages/web/dist/mark-light.svg +1 -1
  621. package/packages/web/dist/mark-mono.svg +2 -0
  622. package/packages/web/dist/mark-small-light.svg +2 -0
  623. package/packages/web/dist/mark-small.svg +2 -0
  624. package/packages/web/dist/mark-white.svg +2 -0
  625. package/packages/web/dist/mark.svg +1 -1
  626. package/packages/web/dist/models/LICENSE.txt +5 -0
  627. package/packages/web/dist/models/brain.glb +0 -0
  628. package/packages/web/dist/site.webmanifest +23 -0
  629. package/packages/web/dist/wordmark-light.svg +2 -0
  630. package/packages/web/dist/wordmark.svg +2 -0
  631. package/packages/web/package.json +1 -1
  632. package/scripts/rookery.mjs +204 -122
  633. package/scripts/updater.mjs +227 -0
  634. package/packages/cli/dist/tui/components/Wordmark.d.ts +0 -35
  635. package/packages/cli/dist/tui/components/Wordmark.d.ts.map +0 -1
  636. package/packages/cli/dist/tui/components/Wordmark.js +0 -81
  637. package/packages/cli/dist/tui/components/Wordmark.js.map +0 -1
  638. package/packages/core/dist/agents/orchestrator.d.ts +0 -24
  639. package/packages/core/dist/agents/orchestrator.d.ts.map +0 -1
  640. package/packages/core/dist/agents/orchestrator.js +0 -88
  641. package/packages/core/dist/agents/orchestrator.js.map +0 -1
  642. package/packages/core/dist/agents/roles.d.ts +0 -21
  643. package/packages/core/dist/agents/roles.d.ts.map +0 -1
  644. package/packages/core/dist/agents/roles.js +0 -81
  645. package/packages/core/dist/agents/roles.js.map +0 -1
  646. package/packages/core/dist/agents/team.d.ts +0 -105
  647. package/packages/core/dist/agents/team.d.ts.map +0 -1
  648. package/packages/core/dist/agents/team.js +0 -623
  649. package/packages/core/dist/agents/team.js.map +0 -1
  650. package/packages/core/dist/providers/codex.d.ts +0 -10
  651. package/packages/core/dist/providers/codex.d.ts.map +0 -1
  652. package/packages/core/dist/providers/codex.js +0 -375
  653. package/packages/core/dist/providers/codex.js.map +0 -1
  654. package/packages/core/dist/tools/browser.d.ts +0 -20
  655. package/packages/core/dist/tools/browser.d.ts.map +0 -1
  656. package/packages/core/dist/tools/browser.js +0 -72
  657. package/packages/core/dist/tools/browser.js.map +0 -1
  658. package/packages/server/dist/routes/agents.d.ts +0 -5
  659. package/packages/server/dist/routes/agents.d.ts.map +0 -1
  660. package/packages/server/dist/routes/agents.js +0 -6
  661. package/packages/server/dist/routes/agents.js.map +0 -1
  662. package/packages/server/dist/routes/team.d.ts +0 -11
  663. package/packages/server/dist/routes/team.d.ts.map +0 -1
  664. package/packages/server/dist/routes/team.js +0 -36
  665. package/packages/server/dist/routes/team.js.map +0 -1
  666. package/packages/web/dist/assets/3d-force-graph-BPZmoydi.js +0 -1163
  667. package/packages/web/dist/assets/index-IBSTzK7-.js +0 -1255
  668. package/packages/web/dist/assets/index-qUXUui7W.css +0 -1
  669. package/packages/web/dist/assets/three-spritetext-B9ZIW7c-.js +0 -4
  670. package/packages/web/dist/assets/three.module-cmFfBtHS.js +0 -4228
@@ -3,12 +3,50 @@
3
3
  *
4
4
  * Two audiences share one vocabulary. The assistant gets everything; an
5
5
  * agent gets the subset a member of staff would have - it can hand work to
6
- * its own reports and write to its manager, but it cannot hire anyone or
6
+ * its own reports and ask whoever gave it the work, but it cannot hire anyone or
7
7
  * restructure the company.
8
8
  */
9
+ /**
10
+ * Everything the board watcher may call - an allowlist, not a set of
11
+ * exclusions, and deliberately so. The watcher runs unattended, on a clock,
12
+ * with nobody reading along, so a tool added to this file later must be
13
+ * argued onto this list rather than silently inherited by it. Nothing here
14
+ * starts work, moves a card, or changes the company: the watcher's whole job
15
+ * is to look at the board and, when something genuinely needs a person, say
16
+ * so once. Acting on what it finds is the person's call, not its own.
17
+ */
18
+ const WATCH_TOOLS = new Set([
19
+ 'org_overview',
20
+ 'list_tasks',
21
+ 'list_assignments',
22
+ 'assignment_status',
23
+ 'agent_performance',
24
+ 'task_activity',
25
+ 'report_to_user',
26
+ 'notify',
27
+ ]);
9
28
  const BOTH = ['assistant', 'agent'];
10
29
  const ASSISTANT_ONLY = ['assistant'];
11
30
  const str = (description) => ({ type: 'string', description });
31
+ /**
32
+ * The one rule for naming work, word for word wherever a name is asked for.
33
+ * Whoever writes a brief can name it; a name nobody can write is a brief
34
+ * nobody understood (decision E16), so there is no model call for this and
35
+ * no fallback worth advertising.
36
+ */
37
+ const TITLE_RULE = 'A name for this work: three to eight words, no full stop, a noun phrase or an imperative, ' +
38
+ 'in the language of the brief. "Login bug in the password reset", not "Please have a look at ' +
39
+ 'why the login sometimes". Never the brief itself.';
40
+ /**
41
+ * How a provider argument is described to the model.
42
+ *
43
+ * Deliberately not an enum: every turn runs on the same harness and the id
44
+ * only says what it is pointed at, so the set is open - the two built-ins
45
+ * plus one id per provider profile somebody configured. A fixed enum here
46
+ * would reject a backend the moment it was added on the Providers page.
47
+ * The controller checks the id against the registry instead.
48
+ */
49
+ const PROVIDER_HINT = 'Provider id: "claude" for the Claude login, "codex" for ChatGPT, or the id of a configured provider profile.';
12
50
  export const ORG_TOOLS = [
13
51
  {
14
52
  name: 'read_profile',
@@ -24,23 +62,29 @@ export const ORG_TOOLS = [
24
62
  },
25
63
  {
26
64
  name: 'org_overview',
27
- description: 'The company you run: teams, agents (with slug, title and manager), projects, and assignments ' +
65
+ description: 'The company you run: teams, agents (with slug, title and manager), projects, and the work ' +
28
66
  'currently running. Call this before delegating when you are unsure who does what.',
29
67
  inputSchema: { type: 'object', properties: {}, additionalProperties: false },
30
68
  audience: BOTH,
31
69
  },
32
70
  {
33
71
  name: 'assign',
34
- description: 'Hand a task to one agent and wait for the finished result. The agent works in a separate ' +
35
- 'process with no access to this conversation, so the task must be self-contained: restate ' +
36
- 'every fact, file and constraint it needs. Call assign several times in one message to run ' +
37
- "agents in parallel. Returns the agent's complete report. With wait=false it returns at once " +
38
- 'with the assignment id and the agent keeps working in the background; check on it with ' +
39
- 'assignment_status.',
72
+ description: 'Hand a task to one agent and wait for the finished result. It goes on the board as a task ' +
73
+ 'of its own, so the work is visible while it runs and afterwards; handed on from inside a ' +
74
+ 'task, it becomes a subtask of that one. The agent works in a separate process with no ' +
75
+ 'access to this conversation, so the instruction must be self-contained: restate every ' +
76
+ 'fact, file and constraint it needs. Call assign several times in one message to run agents ' +
77
+ "in parallel. Returns the agent's complete report. With wait=false it returns at once and " +
78
+ 'the agent keeps working in the background - and you are guaranteed to hear how it ends: ' +
79
+ 'handed off from a conversation, a message with the outcome arrives in that conversation ' +
80
+ '(tell the user then, not before); handed off from inside a task, your task stays open and ' +
81
+ 'you are run again with the result once it is back. Nothing needs polling, but ' +
82
+ 'assignment_status shows where it stands. Handing work to yourself must use wait=false.',
40
83
  inputSchema: {
41
84
  type: 'object',
42
85
  properties: {
43
86
  agent: str('Agent slug or name.'),
87
+ title: str(TITLE_RULE),
44
88
  task: str('The full, self-contained instruction.'),
45
89
  project: str("Project name or id. The agent works in that project's directory. Optional."),
46
90
  wait: {
@@ -48,17 +92,17 @@ export const ORG_TOOLS = [
48
92
  description: 'Default true. False hands the task off and returns immediately.',
49
93
  },
50
94
  },
51
- required: ['agent', 'task'],
95
+ required: ['agent', 'title', 'task'],
52
96
  additionalProperties: false,
53
97
  },
54
98
  audience: BOTH,
55
99
  },
56
100
  {
57
101
  name: 'assignment_status',
58
- description: 'Status, duration and result of one assignment by id.',
102
+ description: 'Status, duration and result of one run by id.',
59
103
  inputSchema: {
60
104
  type: 'object',
61
- properties: { id: str('Assignment id.') },
105
+ properties: { id: str('Run id.') },
62
106
  required: ['id'],
63
107
  additionalProperties: false,
64
108
  },
@@ -66,12 +110,12 @@ export const ORG_TOOLS = [
66
110
  },
67
111
  {
68
112
  name: 'cancel_assignment',
69
- description: 'Stop a pending or running assignment. The agent process is killed and the assignment ends ' +
113
+ description: 'Stop a pending or running task. The agent process is killed and the run ends ' +
70
114
  'as cancelled; whatever it had written so far is lost. Use it for a stuck or runaway agent, ' +
71
115
  'or when the user changes their mind.',
72
116
  inputSchema: {
73
117
  type: 'object',
74
- properties: { id: str('Assignment id or prefix.') },
118
+ properties: { id: str('Run id or prefix.') },
75
119
  required: ['id'],
76
120
  additionalProperties: false,
77
121
  },
@@ -79,7 +123,7 @@ export const ORG_TOOLS = [
79
123
  },
80
124
  {
81
125
  name: 'list_assignments',
82
- description: 'The assignment history: what ran, for whom, how it ended, how long it took. Newest first. ' +
126
+ description: 'The history of what ran: for whom, how it ended, how long it took. Newest first. ' +
83
127
  'Filter by agent, status or project when the question is about one of them.',
84
128
  inputSchema: {
85
129
  type: 'object',
@@ -94,31 +138,72 @@ export const ORG_TOOLS = [
94
138
  audience: ASSISTANT_ONLY,
95
139
  },
96
140
  {
97
- name: 'send_message',
98
- description: 'Leave a short message for an agent, or for the assistant (to: "assistant"). Messages wait ' +
99
- "in the recipient's inbox until their next assignment or turn. Not for handing out work - " +
100
- 'use assign for that.',
141
+ name: 'ask_requester',
142
+ description: 'Ask whoever gave you this task a question you cannot answer yourself and that changes what you ' +
143
+ 'do next. The question goes on the task card, the task waits for the answer (status "blocked"), ' +
144
+ 'and you are started again with the answer once it comes. After calling it, end your run with a ' +
145
+ 'short summary of where the work stands - do not keep working on a guess. Only inside a task; ' +
146
+ 'for anything you can decide, look up or state as an assumption, do that instead.',
147
+ inputSchema: {
148
+ type: 'object',
149
+ properties: { question: str('The question, self-contained: what you need to know and why.') },
150
+ required: ['question'],
151
+ additionalProperties: false,
152
+ },
153
+ audience: ['agent'],
154
+ },
155
+ {
156
+ name: 'answer_task',
157
+ description: 'Answer the question a task is waiting on. The answer goes on the card and the task runs again ' +
158
+ 'with it, as the same task. The assistant may answer any task; an agent only the tasks it handed ' +
159
+ 'out itself. Use task_activity first when you need to see what exactly was asked.',
101
160
  inputSchema: {
102
161
  type: 'object',
103
162
  properties: {
104
- to: str('Agent slug or name, or "assistant".'),
105
- content: str('The message.'),
163
+ id: str('Task id or prefix.'),
164
+ answer: str('The answer, self-contained.'),
106
165
  },
107
- required: ['to', 'content'],
166
+ required: ['id', 'answer'],
108
167
  additionalProperties: false,
109
168
  },
110
169
  audience: BOTH,
111
170
  },
112
171
  {
113
- name: 'read_inbox',
114
- description: 'Unread messages addressed to you. Reading marks them as read.',
115
- inputSchema: { type: 'object', properties: {}, additionalProperties: false },
172
+ name: 'report_to_user',
173
+ description: 'Leave the user a notification: a title and a short body they read on the web and, depending ' +
174
+ 'on their settings, on their phone. Use it sparingly, for something they genuinely need to know ' +
175
+ 'that does not belong in your result - your result already reaches whoever asked for the work. ' +
176
+ 'Never a running commentary, never a thank-you.',
177
+ inputSchema: {
178
+ type: 'object',
179
+ properties: {
180
+ title: str('One short line: what this is about.'),
181
+ body: str('The message itself. Say the thing and stop.'),
182
+ },
183
+ required: ['title', 'body'],
184
+ additionalProperties: false,
185
+ },
186
+ audience: BOTH,
187
+ // The assistant has `notify` and the conversation itself; only its board
188
+ // watcher, which has neither, is offered this one.
189
+ assistantOnlyWhenWatching: true,
190
+ },
191
+ {
192
+ name: 'task_activity',
193
+ description: "One task's activity, oldest first: its brief, every run and how it ended, questions and " +
194
+ 'answers, status changes. Call it when what you do depends on what already happened on the card.',
195
+ inputSchema: {
196
+ type: 'object',
197
+ properties: { id: str('Task id or prefix.') },
198
+ required: ['id'],
199
+ additionalProperties: false,
200
+ },
116
201
  audience: BOTH,
117
202
  },
118
203
  // ASSISTANT_ONLY on purpose: an agent that thinks something deserves the
119
- // user's attention writes to its manager (send_message), same as any other
120
- // report. Only the assistant decides whether that is worth a push to the
121
- // phone - agents never reach the user directly.
204
+ // user's attention writes it into its result, or - when it truly cannot
205
+ // wait - uses report_to_user, whose push the user's own settings govern.
206
+ // Only the assistant decides that a line has to arrive right now.
122
207
  {
123
208
  name: 'notify',
124
209
  description: 'Send the user a message over whatever notification channel is open right now, even when no ' +
@@ -140,19 +225,103 @@ export const ORG_TOOLS = [
140
225
  },
141
226
  audience: ASSISTANT_ONLY,
142
227
  },
228
+ {
229
+ name: 'ask_user',
230
+ description: 'Put one question to the user and wait for the answer before carrying on. The question ' +
231
+ 'appears wherever they are - the web chat, the terminal, their phone - and any of those may ' +
232
+ 'answer it. Ask only when the answer changes what you do next and you cannot find it out ' +
233
+ 'yourself: a fork with real consequences, a missing fact only they have, a destructive step ' +
234
+ 'worth confirming. Never ask for something you can look up, decide on your own merits, or ' +
235
+ 'simply state and be corrected on. Offer two to four concrete options, each a choice you are ' +
236
+ 'ready to act on, and keep the labels short enough for a phone button. This call blocks; if ' +
237
+ 'nobody answers in time it comes back saying so and you carry on with your best judgement.',
238
+ inputSchema: {
239
+ type: 'object',
240
+ properties: {
241
+ header: str('Two or three words naming the decision, e.g. "Deploy target".'),
242
+ question: str('The question itself, one or two sentences.'),
243
+ options: {
244
+ type: 'array',
245
+ minItems: 2,
246
+ maxItems: 4,
247
+ description: 'Two to four answers to choose from.',
248
+ items: {
249
+ type: 'object',
250
+ properties: {
251
+ label: str('The button text. A few words.'),
252
+ description: str('One line of detail under the label. Optional.'),
253
+ },
254
+ required: ['label'],
255
+ additionalProperties: false,
256
+ },
257
+ },
258
+ multiSelect: {
259
+ type: 'boolean',
260
+ description: 'Default false. True when several options may be picked at once.',
261
+ },
262
+ },
263
+ required: ['header', 'question', 'options'],
264
+ additionalProperties: false,
265
+ },
266
+ audience: ASSISTANT_ONLY,
267
+ needsPerson: true,
268
+ },
143
269
  {
144
270
  name: 'use_skill',
145
- description: 'Open one of the skills listed in your instructions: written procedures for particular kinds ' +
146
- 'of task. Returns the full instructions and the files that come with them. Open the matching ' +
147
- 'skill before starting such a task, then follow it.',
271
+ description: 'Open a skill: a written procedure for a particular kind of task. Takes a name from the list ' +
272
+ 'in your instructions or one that find_skill turned up. Returns the full instructions and the ' +
273
+ 'files that come with them. Open the matching skill before starting such a task, then follow it.',
148
274
  inputSchema: {
149
275
  type: 'object',
150
- properties: { name: str('The skill name from the list.') },
276
+ properties: { name: str('The skill name from the list, or from a find_skill result.') },
151
277
  required: ['name'],
152
278
  additionalProperties: false,
153
279
  },
154
280
  audience: BOTH,
155
281
  },
282
+ // The shelf the instructions cannot carry. Hundreds of skills are installed
283
+ // in the Claude Code on this machine; the prompt says how many and from
284
+ // where, this finds the one that fits.
285
+ {
286
+ name: 'find_skill',
287
+ description: 'Search the skills installed on this machine that are too many to list in your instructions. ' +
288
+ 'Use it when a task sounds like a procedure somebody has already written down - a file format, ' +
289
+ 'a framework, a tool, a kind of document. Returns names with their one-line description; open ' +
290
+ 'one with use_skill. Searching costs nothing, so look before working something out from scratch.',
291
+ inputSchema: {
292
+ type: 'object',
293
+ properties: { query: str('What the task is about, e.g. "pdf", "scroll animation", "vercel deploy".') },
294
+ required: ['query'],
295
+ additionalProperties: false,
296
+ },
297
+ audience: BOTH,
298
+ },
299
+ // The other half of remembering. A memory records that something is true;
300
+ // this records how something is done - the part that otherwise gets worked
301
+ // out from scratch every single time.
302
+ {
303
+ name: 'write_skill',
304
+ description: 'Write down how a kind of task is done, so that next time it is not worked out from ' +
305
+ 'scratch. Use it when you have just solved something you will clearly meet again, when you ' +
306
+ 'had to discover a procedure the hard way, or when the user has corrected the same thing ' +
307
+ 'twice - that correction belongs in a skill. Write the steps you would want to be handed: ' +
308
+ 'concrete commands, paths, names and the traps you hit, not a summary of what you did. ' +
309
+ 'Writing over a skill you wrote earlier is how you improve one, so revise instead of ' +
310
+ 'inventing a second name for the same subject. Skills the user wrote are theirs and cannot ' +
311
+ 'be overwritten. Not for one-off notes about a single task - that is what memory is for.',
312
+ inputSchema: {
313
+ type: 'object',
314
+ properties: {
315
+ name: str('Short name, lower case with dashes, e.g. release-checklist.'),
316
+ description: str('One line saying when this skill should be opened. It is all the index shows.'),
317
+ body: str('The instructions themselves, in Markdown. Steps someone can follow, not prose.'),
318
+ audience: str('assistant, agents or both. Default both.'),
319
+ },
320
+ required: ['name', 'description', 'body'],
321
+ additionalProperties: false,
322
+ },
323
+ audience: BOTH,
324
+ },
156
325
  {
157
326
  name: 'tool_servers',
158
327
  description: 'The tool hub: which MCP servers exist (computer control, browser, filesystem, GitHub, ' +
@@ -183,23 +352,35 @@ export const ORG_TOOLS = [
183
352
  {
184
353
  name: 'hire_agent',
185
354
  description: 'Create a permanent agent in the company. Give it a clear role: a name, a job title, and ' +
186
- 'standing instructions describing how it works and what it is responsible for.',
355
+ 'standing instructions describing how it works and what it is responsible for. With ' +
356
+ '`replaces` set, this is a stage-4 personnel action instead: archives that agent and its ' +
357
+ 'memory, generates a handover (or uses the one you pass), hires the successor with the ' +
358
+ 'name/title/instructions given, and carries over its team, manager and reports. Only call ' +
359
+ 'that after the user has approved the replacement agent_performance proposed.',
187
360
  inputSchema: {
188
361
  type: 'object',
189
362
  properties: {
190
- name: str('Display name, e.g. "Mara".'),
363
+ name: str('Display name, e.g. "Mara". With replaces set, must differ from the outgoing agent\'s name.'),
191
364
  title: str('Job title, e.g. "Backend Engineer".'),
192
365
  instructions: str('Standing instructions for the role, two to six sentences.'),
366
+ voice: str('Two to four sentences on HOW this person writes - never what they can do, which stays in ' +
367
+ "instructions. When the user described a voice, use it; when they said nothing, invent one " +
368
+ 'yourself that fits the role rather than leaving it out. With replaces set, write a new voice ' +
369
+ "- a successor's is never the outgoing agent's. Omit only when the user explicitly wants a " +
370
+ 'plain, colourless agent.'),
193
371
  slug: str('Short handle, lowercase with dashes. Derived from the name when omitted.'),
194
- team: str('Team name or id. Optional.'),
195
- manager: str('Manager agent slug. Omit for an agent reporting to you directly.'),
196
- provider: { type: 'string', enum: ['claude', 'codex'], description: 'Preferred CLI. Optional.' },
372
+ team: str('Team name or id. Optional. Ignored when replaces is set (inherited instead).'),
373
+ manager: str('Manager agent slug. Omit for an agent reporting to you directly. Ignored when replaces is set.'),
374
+ provider: str(PROVIDER_HINT + ' Optional.'),
197
375
  model: str('Model name for that provider. Optional.'),
198
376
  permission: {
199
377
  type: 'string',
200
378
  enum: ['chat', 'read', 'write', 'full'],
201
379
  description: 'What the agent may do on the machine. Optional; defaults to the company default.',
202
380
  },
381
+ replaces: str('Slug of an agent to retire and replace with this one (stage 4). Their team, manager and ' +
382
+ 'reports pass to the successor; the outgoing slug is never freed. Optional.'),
383
+ handover: str('Override the auto-generated handover document for the successor, when replaces is set. Optional.'),
203
384
  },
204
385
  required: ['name', 'title', 'instructions'],
205
386
  additionalProperties: false,
@@ -210,7 +391,10 @@ export const ORG_TOOLS = [
210
391
  name: 'update_agent',
211
392
  description: 'Change an existing agent: move it to a team, give it a manager, rewrite its title or ' +
212
393
  'standing instructions, change provider, model or permission, or archive it. Only the ' +
213
- 'fields you pass change.',
394
+ 'fields you pass change. An agent at escalation stage 1 or higher (check with ' +
395
+ 'agent_performance) needs `reason` set to change its instructions - that reason is written ' +
396
+ 'to its personnel record as a reconfig, together with the before/after text, so the change ' +
397
+ 'stays accountable and reversible.',
214
398
  inputSchema: {
215
399
  type: 'object',
216
400
  properties: {
@@ -220,16 +404,51 @@ export const ORG_TOOLS = [
220
404
  instructions: str('New standing instructions. Optional.'),
221
405
  team: str('Team name or id, or "none" to remove from its team. Optional.'),
222
406
  manager: str('Manager slug, or "assistant" to report to you directly. Optional.'),
223
- provider: { type: 'string', enum: ['claude', 'codex'], description: 'Optional.' },
407
+ provider: str(PROVIDER_HINT + ' Optional.'),
224
408
  model: str('Optional.'),
225
409
  permission: { type: 'string', enum: ['chat', 'read', 'write', 'full'], description: 'Optional.' },
226
410
  archived: { type: 'boolean', description: 'true retires the agent, false brings it back. Optional.' },
411
+ reason: str('Why the instructions are changing. Required to change instructions once the agent is at ' +
412
+ 'escalation stage 1 or higher; logged to the personnel record as a reconfig either way ' +
413
+ 'when instructions change and this is set.'),
227
414
  },
228
415
  required: ['agent'],
229
416
  additionalProperties: false,
230
417
  },
231
418
  audience: ASSISTANT_ONLY,
232
419
  },
420
+ {
421
+ name: 'review_assignment',
422
+ description: 'Add or correct your own judgment of one finished run - the same review that runs ' +
423
+ 'automatically after every run, but by hand: after the user disagreed with the automatic ' +
424
+ 'one, or for a run from before this existed. Upserts: a second call for the same run ' +
425
+ 'replaces your earlier judgment rather than adding a second one.',
426
+ inputSchema: {
427
+ type: 'object',
428
+ properties: {
429
+ id: str('Run id or prefix.'),
430
+ overall: { type: 'number', description: '1 to 5. 5 as good as a good colleague would do it, 1 unusable or invented.' },
431
+ comment: str('One to three sentences on what was good or bad. Optional.'),
432
+ },
433
+ required: ['id', 'overall'],
434
+ additionalProperties: false,
435
+ },
436
+ audience: ASSISTANT_ONLY,
437
+ },
438
+ {
439
+ name: 'agent_performance',
440
+ description: 'One agent\'s standing: review history, rolling average, trend, escalation stage, failure ' +
441
+ 'rate, and its personnel record (notes, reconfigs, probation, replacement proposals). This ' +
442
+ 'is the "development conversation" tool - open it before deciding whether a weak run is a ' +
443
+ 'pattern or a one-off, and before update_agent on a flagged agent.',
444
+ inputSchema: {
445
+ type: 'object',
446
+ properties: { agent: str('Agent slug or name.') },
447
+ required: ['agent'],
448
+ additionalProperties: false,
449
+ },
450
+ audience: ASSISTANT_ONLY,
451
+ },
233
452
  {
234
453
  name: 'update_team',
235
454
  description: 'Rename a team, change its purpose, or name its lead.',
@@ -249,12 +468,12 @@ export const ORG_TOOLS = [
249
468
  {
250
469
  name: 'create_task',
251
470
  description: 'Put a task on the company board without running it yet. Use this for work the user ' +
252
- 'wants tracked, or for anything bigger than one quick assignment. Then plan_task decides ' +
471
+ 'wants tracked, or for anything bigger than one quick hand-off. Then plan_task decides ' +
253
472
  'who does it and whether to split it, and run_task executes it.',
254
473
  inputSchema: {
255
474
  type: 'object',
256
475
  properties: {
257
- title: str('Short title.'),
476
+ title: str(TITLE_RULE),
258
477
  description: str('Everything an agent needs to do the task: goal, constraints, files, definition of done.'),
259
478
  project: str('Project name or id. Optional.'),
260
479
  priority: { type: 'string', enum: ['low', 'normal', 'high'], description: 'Optional, default normal.' },
@@ -271,7 +490,7 @@ export const ORG_TOOLS = [
271
490
  inputSchema: {
272
491
  type: 'object',
273
492
  properties: {
274
- status: str('Comma-separated statuses to include (open, planned, running, done, failed, cancelled). Optional.'),
493
+ status: str('Comma-separated statuses to include (open, planned, running, blocked, done, failed, cancelled). Optional.'),
275
494
  },
276
495
  additionalProperties: false,
277
496
  },
@@ -279,7 +498,8 @@ export const ORG_TOOLS = [
279
498
  },
280
499
  {
281
500
  name: 'update_task',
282
- description: 'Edit a task: title, description, priority, assignee, or mark it done or cancelled by hand.',
501
+ description: 'Edit a task: title, description, priority, assignee, or set its status by hand - done, ' +
502
+ 'cancelled, or blocked while it waits for an answer.',
283
503
  inputSchema: {
284
504
  type: 'object',
285
505
  properties: {
@@ -288,7 +508,11 @@ export const ORG_TOOLS = [
288
508
  description: str('Optional.'),
289
509
  priority: { type: 'string', enum: ['low', 'normal', 'high'], description: 'Optional.' },
290
510
  assignee: str('Agent slug, or "none". Optional.'),
291
- status: { type: 'string', enum: ['open', 'done', 'cancelled'], description: 'Optional.' },
511
+ status: {
512
+ type: 'string',
513
+ enum: ['open', 'done', 'cancelled', 'blocked'],
514
+ description: 'Optional. "blocked" means it waits for an answer.',
515
+ },
292
516
  result: str('What was done, when closing by hand. Optional.'),
293
517
  },
294
518
  required: ['id'],
@@ -316,7 +540,7 @@ export const ORG_TOOLS = [
316
540
  {
317
541
  name: 'run_task',
318
542
  description: 'Execute a task from the board and wait for the outcome. A task without a plan is planned ' +
319
- 'first. Subtasks run as parallel assignments in dependency order; their reports come back ' +
543
+ 'first. Subtasks run in parallel in dependency order; their reports come back ' +
320
544
  'combined. This is the right tool for anything that should be tracked on the board.',
321
545
  inputSchema: {
322
546
  type: 'object',
@@ -343,7 +567,7 @@ export const ORG_TOOLS = [
343
567
  },
344
568
  {
345
569
  name: 'create_project',
346
- description: 'Create a project. With a path, assignments for it run inside that directory; without one, ' +
570
+ description: 'Create a project. With a path, work on it runs inside that directory; without one, ' +
347
571
  'agents work in the scratch workspace.',
348
572
  inputSchema: {
349
573
  type: 'object',
@@ -379,7 +603,7 @@ export const ORG_TOOLS = [
379
603
  name: 'project_mcp_servers',
380
604
  description: "The MCP servers listed in a project's own .mcp.json - the same file a person's own Claude " +
381
605
  'Code session in that folder would read - and whether they are trusted yet. An untrusted or ' +
382
- 'changed file never starts its servers for an assignment. Call this before trust_project_mcp.',
606
+ 'changed file never starts its servers for a run. Call this before trust_project_mcp.',
383
607
  inputSchema: {
384
608
  type: 'object',
385
609
  properties: { project: str('Project name or id.') },
@@ -391,7 +615,7 @@ export const ORG_TOOLS = [
391
615
  {
392
616
  name: 'trust_project_mcp',
393
617
  description: "Approve or revoke a project's own .mcp.json, so its MCP servers do or do not start for " +
394
- "assignments in that project. This starts real processes from a file inside the project's " +
618
+ "runs in that project. This starts real processes from a file inside the project's " +
395
619
  'own folder, so show the user the server list and command lines from project_mcp_servers ' +
396
620
  'before approving. A later edit to .mcp.json needs approving again; revoke turns the ' +
397
621
  'servers off again without touching the file.',
@@ -419,7 +643,10 @@ export const ORG_TOOLS = [
419
643
  '...", "every Friday at 17:00, have Mara ...", or a single later run (once=true) for ' +
420
644
  '"tomorrow at 15:00 remind me ...". By default you run the prompt yourself, as a turn of ' +
421
645
  'your own in a conversation dedicated to the job, with all your tools; name an agent to ' +
422
- 'have it run as an assignment instead. The outcome of every run lands in your inbox. The ' +
646
+ 'have an agent run it instead. The outcome of every run reaches the user as a notification; a ' +
647
+ 'one-time run you do yourself (once=true, no agent) also replies directly in the ' +
648
+ 'conversation you are having right now, so "I\'ll get back to you here" actually happens - ' +
649
+ 'a recurring job, or one handed to an agent, keeps its own dedicated conversation. The ' +
423
650
  "schedule is a five-field cron expression in the machine's local time - minute hour " +
424
651
  'day-of-month month day-of-week - e.g. "0 8 * * 1-5" (weekdays 08:00), "*/30 * * * *" ' +
425
652
  '(every 30 minutes), "0 18 1 * *" (the 1st at 18:00), "30 15 11 9 *" with once=true ' +
@@ -429,14 +656,24 @@ export const ORG_TOOLS = [
429
656
  type: 'object',
430
657
  properties: {
431
658
  name: str('Short name, e.g. "Morgenbriefing".'),
432
- schedule: str('Five-field cron expression or alias.'),
659
+ schedule: str('Five-field cron expression or alias. Leave empty only when triggerMode is "event".'),
433
660
  prompt: str('What to do on each run, self-contained.'),
434
- agent: str('Agent slug or name to run it as an assignment. Omit to run it yourself.'),
661
+ triggerMode: str('"schedule" (default) puts it on the clock; "event" means no clock at all - it waits for ' +
662
+ 'a webhook call or a watched mailbox. An expression AND an event source together is the ' +
663
+ 'useful third case: the event is the fast path, the expression the backstop for the ' +
664
+ 'event that never arrived. Optional.'),
665
+ cooldownSeconds: {
666
+ type: 'number',
667
+ description: 'How long it rests after a run before an event may start the next one, 0 to 86400. ' +
668
+ 'Events arriving during the rest are not lost - they collapse into one run at the end ' +
669
+ 'of it. Default 60. Optional.',
670
+ },
671
+ agent: str('Agent slug or name to run it as their task. Omit to run it yourself.'),
435
672
  project: str('Project name or id the run belongs to. Optional.'),
436
673
  once: { type: 'boolean', description: 'Fire once, then switch the schedule off. Default false.' },
437
674
  enabled: { type: 'boolean', description: 'Default true.' },
438
675
  },
439
- required: ['name', 'schedule', 'prompt'],
676
+ required: ['name', 'prompt'],
440
677
  additionalProperties: false,
441
678
  },
442
679
  audience: ASSISTANT_ONLY,
@@ -452,6 +689,11 @@ export const ORG_TOOLS = [
452
689
  name: str('Optional.'),
453
690
  schedule: str('New cron expression. Optional.'),
454
691
  prompt: str('Optional.'),
692
+ triggerMode: str('"schedule" to put it on the clock, "event" to take it off. Optional.'),
693
+ cooldownSeconds: {
694
+ type: 'number',
695
+ description: 'Rest between event runs, 0 to 86400. Optional.',
696
+ },
455
697
  agent: str('Agent slug or name, or "assistant" to run it yourself. Optional.'),
456
698
  project: str('Project name or id, or "none". Optional.'),
457
699
  enabled: { type: 'boolean', description: 'Optional.' },
@@ -475,8 +717,8 @@ export const ORG_TOOLS = [
475
717
  },
476
718
  {
477
719
  name: 'run_schedule',
478
- description: 'Fire a schedule right now, in the background; returns at once. The result appears in ' +
479
- 'your inbox and on the Schedules page when the run is over.',
720
+ description: 'Fire a schedule right now, in the background; returns at once. The result reaches the user as a ' +
721
+ 'notification and appears on the Schedules page when the run is over.',
480
722
  inputSchema: {
481
723
  type: 'object',
482
724
  properties: { id: str('Schedule id, prefix, or exact name.') },
@@ -499,10 +741,10 @@ export const ORG_TOOLS = [
499
741
  },
500
742
  {
501
743
  name: 'remember',
502
- description: 'Write one fact into your long-term memory of the user, so it comes back in later ' +
503
- 'conversations. One self-contained sentence per call. Use it when the user tells you to ' +
504
- 'remember something, or for something clearly worth keeping that the automatic extraction ' +
505
- 'might miss.',
744
+ description: 'Write one fact into your long-term memory, so it comes back later. For the assistant this ' +
745
+ 'is the memory of the user; an agent writes into its own working memory of its work. ' +
746
+ 'One self-contained sentence per call. Use it when you are told to remember something, or ' +
747
+ 'for something clearly worth keeping that the automatic extraction might miss.',
506
748
  inputSchema: {
507
749
  type: 'object',
508
750
  properties: {
@@ -514,7 +756,7 @@ export const ORG_TOOLS = [
514
756
  required: ['content'],
515
757
  additionalProperties: false,
516
758
  },
517
- audience: ASSISTANT_ONLY,
759
+ audience: BOTH,
518
760
  },
519
761
  {
520
762
  name: 'forget',
@@ -530,8 +772,9 @@ export const ORG_TOOLS = [
530
772
  },
531
773
  {
532
774
  name: 'search_memory',
533
- description: 'Search your long-term memory of the user. Without a query, the most important memories. ' +
534
- 'Returns ids, so a wrong one can be passed to forget.',
775
+ description: 'Search your long-term memory - for the assistant that is what it knows about the user, for ' +
776
+ 'an agent its own working memory. Without a query, the most important memories. Returns ids, ' +
777
+ 'so a wrong one can be passed to forget.',
535
778
  inputSchema: {
536
779
  type: 'object',
537
780
  properties: {
@@ -540,38 +783,108 @@ export const ORG_TOOLS = [
540
783
  },
541
784
  additionalProperties: false,
542
785
  },
786
+ audience: BOTH,
787
+ },
788
+ {
789
+ name: 'list_listeners',
790
+ description: 'The mailboxes Rookery watches, and the schedule each one fires. A listener holds one IMAP ' +
791
+ 'connection open and starts its schedule the moment mail arrives, which is what a schedule ' +
792
+ 'that polls every few minutes is for. Passwords are never shown, only whether one is set.',
793
+ inputSchema: { type: 'object', properties: {}, additionalProperties: false },
794
+ audience: ASSISTANT_ONLY,
795
+ },
796
+ {
797
+ name: 'set_listener',
798
+ description: 'Add a watched mailbox, or change one by id. Only the fields given change; a new one needs ' +
799
+ 'host, user, password, mailbox and the schedule it fires, and stays off until enabled=true ' +
800
+ 'so the details can be checked first. Tell the user plainly that a password they type here ' +
801
+ 'stays in this conversation, and offer the Listeners settings page as the alternative - the ' +
802
+ 'password is stored either way, this is only about the transcript.',
803
+ inputSchema: {
804
+ type: 'object',
805
+ properties: {
806
+ id: str('Short name for the mailbox, e.g. "work". Runs record it as imap:<id>.'),
807
+ schedule: str('The schedule this mailbox fires: id, prefix, or exact name.'),
808
+ host: str('IMAP server, e.g. imap.fastmail.com.'),
809
+ port: { type: 'number', description: 'Default 993. Optional.' },
810
+ secure: { type: 'boolean', description: 'TLS from the first byte (993). Default true.' },
811
+ user: str('Mailbox user, usually the address.'),
812
+ password: str('Mailbox password, or an app password where the provider wants one.'),
813
+ mailbox: str('Which mailbox to watch. Default INBOX.'),
814
+ enabled: { type: 'boolean', description: 'Default false when creating.' },
815
+ },
816
+ required: ['id'],
817
+ additionalProperties: false,
818
+ },
819
+ audience: ASSISTANT_ONLY,
820
+ },
821
+ {
822
+ name: 'remove_listener',
823
+ description: 'Stop watching a mailbox and forget its settings, the stored password included.',
824
+ inputSchema: {
825
+ type: 'object',
826
+ properties: { id: str('The listener id.') },
827
+ required: ['id'],
828
+ additionalProperties: false,
829
+ },
830
+ audience: ASSISTANT_ONLY,
831
+ },
832
+ {
833
+ name: 'set_webhook',
834
+ description: 'Give a schedule a URL that starts it, or take the URL away. Creating one again rotates it, ' +
835
+ 'and the previous URL stops working that second. Whoever holds the URL can start that one ' +
836
+ 'schedule and nothing else. Say it out loud only when the user asked for it: once said, it ' +
837
+ 'is in this conversation for good, and rotating is the way back.',
838
+ inputSchema: {
839
+ type: 'object',
840
+ properties: {
841
+ id: str('Schedule id, prefix, or exact name.'),
842
+ action: str('"create" to issue or rotate it, "remove" to take it away. Default create.'),
843
+ },
844
+ required: ['id'],
845
+ additionalProperties: false,
846
+ },
543
847
  audience: ASSISTANT_ONLY,
544
848
  },
545
849
  {
546
850
  name: 'get_settings',
547
851
  description: 'The current settings you may change: default provider, model and effort for turns and ' +
548
- 'assignments, and the company limits (parallel assignments, delegation depth, assignment ' +
852
+ 'runs, and the company limits (parallel runs, delegation depth, run ' +
549
853
  'timeout).',
550
854
  inputSchema: { type: 'object', properties: {}, additionalProperties: false },
551
855
  audience: ASSISTANT_ONLY,
552
856
  },
553
857
  {
554
858
  name: 'update_settings',
555
- description: 'Change settings and persist them; they apply from the next turn or assignment. Only the ' +
859
+ description: 'Change settings and persist them; they apply from the next turn or run. Only the ' +
556
860
  'fields given change. Do this when the user asks for it, or say what you changed and why.',
557
861
  inputSchema: {
558
862
  type: 'object',
559
863
  properties: {
560
- defaultProvider: str('claude or codex. Optional.'),
864
+ defaultProvider: str(PROVIDER_HINT + ' Optional.'),
561
865
  defaultModel: str('Model id, or "default" for the provider default. Optional.'),
562
866
  defaultEffort: str('low, medium, high, or "default". Optional.'),
563
867
  maxConcurrentAssignments: { type: 'number', description: 'Agent processes at the same time, 1 to 16. Optional.' },
564
868
  maxDelegationDepth: { type: 'number', description: 'How deep agents may delegate below you, 1 to 6. Optional.' },
565
- assignmentTimeoutMinutes: { type: 'number', description: 'Hard stop for one assignment, 1 to 600. Optional.' },
869
+ assignmentTimeoutMinutes: { type: 'number', description: 'Hard stop for one run, 1 to 600. Optional.' },
566
870
  },
567
871
  additionalProperties: false,
568
872
  },
569
873
  audience: ASSISTANT_ONLY,
570
874
  },
571
875
  ];
572
- /** The tools one audience may call. */
573
- export function toolsFor(audience) {
574
- return ORG_TOOLS.filter((tool) => tool.audience.includes(audience));
876
+ /**
877
+ * The tools one audience may call. The second argument narrows it further:
878
+ * an unattended run drops everything marked `needsPerson`, so the model is
879
+ * never offered a way to wait for an answer that cannot come, and the board
880
+ * watcher is cut down to {@link WATCH_TOOLS} - the one caller whose limits
881
+ * are a list of what it may do rather than a list of what it may not.
882
+ */
883
+ export function toolsFor(audience, availability = {}) {
884
+ return ORG_TOOLS.filter((tool) => tool.audience.includes(audience) &&
885
+ !(availability.scheduled && tool.needsPerson) &&
886
+ !(audience === 'assistant' && tool.assistantOnlyWhenWatching && !availability.watching) &&
887
+ !(availability.watching && !WATCH_TOOLS.has(tool.name)));
575
888
  }
576
889
  /** The MCP server name; the CLI exposes tools as `mcp__rookery__<name>`. */
577
890
  export const MCP_SERVER_NAME = 'rookery';