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