rookery-agent 0.3.1 → 0.4.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 (740) hide show
  1. package/README.md +3 -3
  2. package/docs/updates.md +12 -0
  3. package/package.json +1 -1
  4. package/packages/cli/dist/commands/chat.d.ts.map +1 -1
  5. package/packages/cli/dist/commands/chat.js +37 -74
  6. package/packages/cli/dist/commands/chat.js.map +1 -1
  7. package/packages/cli/dist/commands/config.js +4 -4
  8. package/packages/cli/dist/commands/config.js.map +1 -1
  9. package/packages/cli/dist/commands/doctor.d.ts.map +1 -1
  10. package/packages/cli/dist/commands/doctor.js +113 -91
  11. package/packages/cli/dist/commands/doctor.js.map +1 -1
  12. package/packages/cli/dist/commands/memory.d.ts.map +1 -1
  13. package/packages/cli/dist/commands/memory.js +28 -31
  14. package/packages/cli/dist/commands/memory.js.map +1 -1
  15. package/packages/cli/dist/commands/org.d.ts.map +1 -1
  16. package/packages/cli/dist/commands/org.js +36 -103
  17. package/packages/cli/dist/commands/org.js.map +1 -1
  18. package/packages/cli/dist/commands/serve.d.ts.map +1 -1
  19. package/packages/cli/dist/commands/serve.js +8 -6
  20. package/packages/cli/dist/commands/serve.js.map +1 -1
  21. package/packages/cli/dist/commands/sessions.d.ts.map +1 -1
  22. package/packages/cli/dist/commands/sessions.js +18 -17
  23. package/packages/cli/dist/commands/sessions.js.map +1 -1
  24. package/packages/cli/dist/commands/shared.d.ts +26 -5
  25. package/packages/cli/dist/commands/shared.d.ts.map +1 -1
  26. package/packages/cli/dist/commands/shared.js +85 -63
  27. package/packages/cli/dist/commands/shared.js.map +1 -1
  28. package/packages/cli/dist/commands/slash.d.ts +51 -0
  29. package/packages/cli/dist/commands/slash.d.ts.map +1 -0
  30. package/packages/cli/dist/commands/slash.js +110 -0
  31. package/packages/cli/dist/commands/slash.js.map +1 -0
  32. package/packages/cli/dist/commands/tasks.d.ts.map +1 -1
  33. package/packages/cli/dist/commands/tasks.js +74 -115
  34. package/packages/cli/dist/commands/tasks.js.map +1 -1
  35. package/packages/cli/dist/commands/tools.d.ts.map +1 -1
  36. package/packages/cli/dist/commands/tools.js +51 -34
  37. package/packages/cli/dist/commands/tools.js.map +1 -1
  38. package/packages/cli/dist/index.js +42 -52
  39. package/packages/cli/dist/index.js.map +1 -1
  40. package/packages/cli/dist/repl.d.ts +1 -25
  41. package/packages/cli/dist/repl.d.ts.map +1 -1
  42. package/packages/cli/dist/repl.js +165 -726
  43. package/packages/cli/dist/repl.js.map +1 -1
  44. package/packages/cli/dist/replInput.d.ts +33 -0
  45. package/packages/cli/dist/replInput.d.ts.map +1 -0
  46. package/packages/cli/dist/replInput.js +97 -0
  47. package/packages/cli/dist/replInput.js.map +1 -0
  48. package/packages/cli/dist/replOutput.d.ts +11 -0
  49. package/packages/cli/dist/replOutput.d.ts.map +1 -0
  50. package/packages/cli/dist/replOutput.js +22 -0
  51. package/packages/cli/dist/replOutput.js.map +1 -0
  52. package/packages/cli/dist/replQuestions.d.ts +32 -0
  53. package/packages/cli/dist/replQuestions.d.ts.map +1 -0
  54. package/packages/cli/dist/replQuestions.js +122 -0
  55. package/packages/cli/dist/replQuestions.js.map +1 -0
  56. package/packages/cli/dist/replSlash.d.ts +24 -0
  57. package/packages/cli/dist/replSlash.d.ts.map +1 -0
  58. package/packages/cli/dist/replSlash.js +311 -0
  59. package/packages/cli/dist/replSlash.js.map +1 -0
  60. package/packages/cli/dist/replState.d.ts +56 -0
  61. package/packages/cli/dist/replState.d.ts.map +1 -0
  62. package/packages/cli/dist/replState.js +89 -0
  63. package/packages/cli/dist/replState.js.map +1 -0
  64. package/packages/cli/dist/tui/App.d.ts +7 -24
  65. package/packages/cli/dist/tui/App.d.ts.map +1 -1
  66. package/packages/cli/dist/tui/App.js +139 -513
  67. package/packages/cli/dist/tui/App.js.map +1 -1
  68. package/packages/cli/dist/tui/LiveRegion.d.ts +16 -0
  69. package/packages/cli/dist/tui/LiveRegion.d.ts.map +1 -0
  70. package/packages/cli/dist/tui/LiveRegion.js +37 -0
  71. package/packages/cli/dist/tui/LiveRegion.js.map +1 -0
  72. package/packages/cli/dist/tui/boot.d.ts +34 -0
  73. package/packages/cli/dist/tui/boot.d.ts.map +1 -0
  74. package/packages/cli/dist/tui/boot.js +133 -0
  75. package/packages/cli/dist/tui/boot.js.map +1 -0
  76. package/packages/cli/dist/tui/commands.d.ts +3 -4
  77. package/packages/cli/dist/tui/commands.d.ts.map +1 -1
  78. package/packages/cli/dist/tui/commands.js +339 -405
  79. package/packages/cli/dist/tui/commands.js.map +1 -1
  80. package/packages/cli/dist/tui/components/ActivityLine.d.ts +1 -1
  81. package/packages/cli/dist/tui/components/ActivityLine.d.ts.map +1 -1
  82. package/packages/cli/dist/tui/components/ActivityLine.js +2 -2
  83. package/packages/cli/dist/tui/components/ActivityLine.js.map +1 -1
  84. package/packages/cli/dist/tui/components/AssignmentsView.d.ts.map +1 -1
  85. package/packages/cli/dist/tui/components/AssignmentsView.js +34 -20
  86. package/packages/cli/dist/tui/components/AssignmentsView.js.map +1 -1
  87. package/packages/cli/dist/tui/components/Logo.d.ts +3 -19
  88. package/packages/cli/dist/tui/components/Logo.d.ts.map +1 -1
  89. package/packages/cli/dist/tui/components/Logo.js +13 -13
  90. package/packages/cli/dist/tui/components/Logo.js.map +1 -1
  91. package/packages/cli/dist/tui/components/Markdown.d.ts.map +1 -1
  92. package/packages/cli/dist/tui/components/Markdown.js +201 -146
  93. package/packages/cli/dist/tui/components/Markdown.js.map +1 -1
  94. package/packages/cli/dist/tui/components/QuestionView.d.ts +0 -2
  95. package/packages/cli/dist/tui/components/QuestionView.d.ts.map +1 -1
  96. package/packages/cli/dist/tui/components/QuestionView.js +21 -12
  97. package/packages/cli/dist/tui/components/QuestionView.js.map +1 -1
  98. package/packages/cli/dist/tui/components/Scrollback.d.ts.map +1 -1
  99. package/packages/cli/dist/tui/components/Scrollback.js +6 -3
  100. package/packages/cli/dist/tui/components/Scrollback.js.map +1 -1
  101. package/packages/cli/dist/tui/components/SlashPalette.d.ts.map +1 -1
  102. package/packages/cli/dist/tui/components/SlashPalette.js +14 -9
  103. package/packages/cli/dist/tui/components/SlashPalette.js.map +1 -1
  104. package/packages/cli/dist/tui/components/StatusLine.d.ts.map +1 -1
  105. package/packages/cli/dist/tui/components/StatusLine.js +45 -22
  106. package/packages/cli/dist/tui/components/StatusLine.js.map +1 -1
  107. package/packages/cli/dist/tui/components/ToolGroup.d.ts.map +1 -1
  108. package/packages/cli/dist/tui/components/ToolGroup.js +12 -7
  109. package/packages/cli/dist/tui/components/ToolGroup.js.map +1 -1
  110. package/packages/cli/dist/tui/components/WatchView.d.ts.map +1 -1
  111. package/packages/cli/dist/tui/components/WatchView.js +28 -17
  112. package/packages/cli/dist/tui/components/WatchView.js.map +1 -1
  113. package/packages/cli/dist/tui/highlight.d.ts +0 -2
  114. package/packages/cli/dist/tui/highlight.d.ts.map +1 -1
  115. package/packages/cli/dist/tui/highlight.js +8 -6
  116. package/packages/cli/dist/tui/highlight.js.map +1 -1
  117. package/packages/cli/dist/tui/history.d.ts +30 -4
  118. package/packages/cli/dist/tui/history.d.ts.map +1 -1
  119. package/packages/cli/dist/tui/history.js +100 -75
  120. package/packages/cli/dist/tui/history.js.map +1 -1
  121. package/packages/cli/dist/tui/hooks/coalescer.d.ts +18 -0
  122. package/packages/cli/dist/tui/hooks/coalescer.d.ts.map +1 -0
  123. package/packages/cli/dist/tui/hooks/coalescer.js +36 -0
  124. package/packages/cli/dist/tui/hooks/coalescer.js.map +1 -0
  125. package/packages/cli/dist/tui/hooks/useColumns.d.ts +2 -7
  126. package/packages/cli/dist/tui/hooks/useColumns.d.ts.map +1 -1
  127. package/packages/cli/dist/tui/hooks/useColumns.js +6 -11
  128. package/packages/cli/dist/tui/hooks/useColumns.js.map +1 -1
  129. package/packages/cli/dist/tui/hooks/useHistory.d.ts +7 -4
  130. package/packages/cli/dist/tui/hooks/useHistory.d.ts.map +1 -1
  131. package/packages/cli/dist/tui/hooks/useHistory.js +21 -18
  132. package/packages/cli/dist/tui/hooks/useHistory.js.map +1 -1
  133. package/packages/cli/dist/tui/hooks/usePrompt.d.ts +27 -0
  134. package/packages/cli/dist/tui/hooks/usePrompt.d.ts.map +1 -0
  135. package/packages/cli/dist/tui/hooks/usePrompt.js +169 -0
  136. package/packages/cli/dist/tui/hooks/usePrompt.js.map +1 -0
  137. package/packages/cli/dist/tui/hooks/useQuestion.d.ts +23 -0
  138. package/packages/cli/dist/tui/hooks/useQuestion.d.ts.map +1 -0
  139. package/packages/cli/dist/tui/hooks/useQuestion.js +43 -0
  140. package/packages/cli/dist/tui/hooks/useQuestion.js.map +1 -0
  141. package/packages/cli/dist/tui/hooks/useScrollback.d.ts +18 -0
  142. package/packages/cli/dist/tui/hooks/useScrollback.d.ts.map +1 -0
  143. package/packages/cli/dist/tui/hooks/useScrollback.js +29 -0
  144. package/packages/cli/dist/tui/hooks/useScrollback.js.map +1 -0
  145. package/packages/cli/dist/tui/hooks/useSession.d.ts +25 -0
  146. package/packages/cli/dist/tui/hooks/useSession.d.ts.map +1 -0
  147. package/packages/cli/dist/tui/hooks/useSession.js +36 -0
  148. package/packages/cli/dist/tui/hooks/useSession.js.map +1 -0
  149. package/packages/cli/dist/tui/hooks/useSlash.d.ts +0 -2
  150. package/packages/cli/dist/tui/hooks/useSlash.d.ts.map +1 -1
  151. package/packages/cli/dist/tui/hooks/useSlash.js +0 -1
  152. package/packages/cli/dist/tui/hooks/useSlash.js.map +1 -1
  153. package/packages/cli/dist/tui/hooks/useSpeech.d.ts +19 -0
  154. package/packages/cli/dist/tui/hooks/useSpeech.d.ts.map +1 -0
  155. package/packages/cli/dist/tui/hooks/useSpeech.js +33 -0
  156. package/packages/cli/dist/tui/hooks/useSpeech.js.map +1 -0
  157. package/packages/cli/dist/tui/hooks/useTicker.d.ts +13 -0
  158. package/packages/cli/dist/tui/hooks/useTicker.d.ts.map +1 -0
  159. package/packages/cli/dist/tui/hooks/useTicker.js +24 -0
  160. package/packages/cli/dist/tui/hooks/useTicker.js.map +1 -0
  161. package/packages/cli/dist/tui/hooks/useTurn.d.ts +4 -4
  162. package/packages/cli/dist/tui/hooks/useTurn.d.ts.map +1 -1
  163. package/packages/cli/dist/tui/hooks/useTurn.js +167 -289
  164. package/packages/cli/dist/tui/hooks/useTurn.js.map +1 -1
  165. package/packages/cli/dist/tui/hooks/useWatch.d.ts.map +1 -1
  166. package/packages/cli/dist/tui/hooks/useWatch.js +15 -48
  167. package/packages/cli/dist/tui/hooks/useWatch.js.map +1 -1
  168. package/packages/cli/dist/tui/inkTheme.d.ts.map +1 -1
  169. package/packages/cli/dist/tui/inkTheme.js +9 -11
  170. package/packages/cli/dist/tui/inkTheme.js.map +1 -1
  171. package/packages/cli/dist/tui/theme.d.ts +7 -13
  172. package/packages/cli/dist/tui/theme.d.ts.map +1 -1
  173. package/packages/cli/dist/tui/theme.js +18 -15
  174. package/packages/cli/dist/tui/theme.js.map +1 -1
  175. package/packages/cli/dist/tui/types.d.ts +10 -23
  176. package/packages/cli/dist/tui/types.d.ts.map +1 -1
  177. package/packages/cli/dist/tui/types.js +13 -31
  178. package/packages/cli/dist/tui/types.js.map +1 -1
  179. package/packages/cli/dist/ui/modelNames.d.ts.map +1 -1
  180. package/packages/cli/dist/ui/modelNames.js +45 -37
  181. package/packages/cli/dist/ui/modelNames.js.map +1 -1
  182. package/packages/cli/dist/ui/render.d.ts +32 -14
  183. package/packages/cli/dist/ui/render.d.ts.map +1 -1
  184. package/packages/cli/dist/ui/render.js +155 -98
  185. package/packages/cli/dist/ui/render.js.map +1 -1
  186. package/packages/cli/dist/ui/speech.d.ts +4 -7
  187. package/packages/cli/dist/ui/speech.d.ts.map +1 -1
  188. package/packages/cli/dist/ui/speech.js +37 -51
  189. package/packages/cli/dist/ui/speech.js.map +1 -1
  190. package/packages/cli/dist/ui/spinner.d.ts +1 -4
  191. package/packages/cli/dist/ui/spinner.d.ts.map +1 -1
  192. package/packages/cli/dist/ui/spinner.js +1 -12
  193. package/packages/cli/dist/ui/spinner.js.map +1 -1
  194. package/packages/cli/package.json +1 -1
  195. package/packages/core/dist/agents/persona.d.ts.map +1 -1
  196. package/packages/core/dist/agents/persona.js +27 -11
  197. package/packages/core/dist/agents/persona.js.map +1 -1
  198. package/packages/core/dist/assistant/board-watch.d.ts +72 -0
  199. package/packages/core/dist/assistant/board-watch.d.ts.map +1 -0
  200. package/packages/core/dist/assistant/board-watch.js +224 -0
  201. package/packages/core/dist/assistant/board-watch.js.map +1 -0
  202. package/packages/core/dist/assistant/chat-turn.d.ts +14 -0
  203. package/packages/core/dist/assistant/chat-turn.d.ts.map +1 -0
  204. package/packages/core/dist/assistant/chat-turn.js +159 -0
  205. package/packages/core/dist/assistant/chat-turn.js.map +1 -0
  206. package/packages/core/dist/assistant/dream-recorder.d.ts +74 -0
  207. package/packages/core/dist/assistant/dream-recorder.d.ts.map +1 -0
  208. package/packages/core/dist/assistant/dream-recorder.js +282 -0
  209. package/packages/core/dist/assistant/dream-recorder.js.map +1 -0
  210. package/packages/core/dist/assistant/headless-turn.d.ts +17 -0
  211. package/packages/core/dist/assistant/headless-turn.d.ts.map +1 -0
  212. package/packages/core/dist/assistant/headless-turn.js +330 -0
  213. package/packages/core/dist/assistant/headless-turn.js.map +1 -0
  214. package/packages/core/dist/assistant/journalled-turn.d.ts +39 -0
  215. package/packages/core/dist/assistant/journalled-turn.d.ts.map +1 -0
  216. package/packages/core/dist/assistant/journalled-turn.js +75 -0
  217. package/packages/core/dist/assistant/journalled-turn.js.map +1 -0
  218. package/packages/core/dist/assistant/memory-learning.d.ts +27 -0
  219. package/packages/core/dist/assistant/memory-learning.d.ts.map +1 -0
  220. package/packages/core/dist/assistant/memory-learning.js +82 -0
  221. package/packages/core/dist/assistant/memory-learning.js.map +1 -0
  222. package/packages/core/dist/assistant/promotion-notice.d.ts +14 -0
  223. package/packages/core/dist/assistant/promotion-notice.d.ts.map +1 -0
  224. package/packages/core/dist/assistant/promotion-notice.js +33 -0
  225. package/packages/core/dist/assistant/promotion-notice.js.map +1 -0
  226. package/packages/core/dist/assistant/scheduled-runs.d.ts +30 -0
  227. package/packages/core/dist/assistant/scheduled-runs.d.ts.map +1 -0
  228. package/packages/core/dist/assistant/scheduled-runs.js +184 -0
  229. package/packages/core/dist/assistant/scheduled-runs.js.map +1 -0
  230. package/packages/core/dist/assistant/sessions.d.ts +44 -0
  231. package/packages/core/dist/assistant/sessions.d.ts.map +1 -0
  232. package/packages/core/dist/assistant/sessions.js +75 -0
  233. package/packages/core/dist/assistant/sessions.js.map +1 -0
  234. package/packages/core/dist/assistant/terminal-turn.d.ts +18 -0
  235. package/packages/core/dist/assistant/terminal-turn.d.ts.map +1 -0
  236. package/packages/core/dist/assistant/terminal-turn.js +228 -0
  237. package/packages/core/dist/assistant/terminal-turn.js.map +1 -0
  238. package/packages/core/dist/assistant/terminals.d.ts +91 -0
  239. package/packages/core/dist/assistant/terminals.d.ts.map +1 -0
  240. package/packages/core/dist/assistant/terminals.js +266 -0
  241. package/packages/core/dist/assistant/terminals.js.map +1 -0
  242. package/packages/core/dist/assistant/turn-support.d.ts +109 -0
  243. package/packages/core/dist/assistant/turn-support.d.ts.map +1 -0
  244. package/packages/core/dist/assistant/turn-support.js +80 -0
  245. package/packages/core/dist/assistant/turn-support.js.map +1 -0
  246. package/packages/core/dist/assistant/turn-transcript.d.ts +44 -0
  247. package/packages/core/dist/assistant/turn-transcript.d.ts.map +1 -0
  248. package/packages/core/dist/assistant/turn-transcript.js +82 -0
  249. package/packages/core/dist/assistant/turn-transcript.js.map +1 -0
  250. package/packages/core/dist/assistant/types.d.ts +120 -0
  251. package/packages/core/dist/assistant/types.d.ts.map +1 -0
  252. package/packages/core/dist/assistant/types.js +2 -0
  253. package/packages/core/dist/assistant/types.js.map +1 -0
  254. package/packages/core/dist/computer/accessibility.d.ts.map +1 -1
  255. package/packages/core/dist/computer/accessibility.js +40 -35
  256. package/packages/core/dist/computer/accessibility.js.map +1 -1
  257. package/packages/core/dist/computer/mcp-server.js +426 -364
  258. package/packages/core/dist/computer/mcp-server.js.map +1 -1
  259. package/packages/core/dist/computer/powershell.d.ts.map +1 -1
  260. package/packages/core/dist/computer/powershell.js +25 -16
  261. package/packages/core/dist/computer/powershell.js.map +1 -1
  262. package/packages/core/dist/computer/screen-text.d.ts.map +1 -1
  263. package/packages/core/dist/computer/screen-text.js +54 -34
  264. package/packages/core/dist/computer/screen-text.js.map +1 -1
  265. package/packages/core/dist/computer/sketch.d.ts.map +1 -1
  266. package/packages/core/dist/computer/sketch.js +185 -128
  267. package/packages/core/dist/computer/sketch.js.map +1 -1
  268. package/packages/core/dist/computer/tools.d.ts +2 -0
  269. package/packages/core/dist/computer/tools.d.ts.map +1 -1
  270. package/packages/core/dist/computer/tools.js +31 -27
  271. package/packages/core/dist/computer/tools.js.map +1 -1
  272. package/packages/core/dist/computer/validation.d.ts +16 -16
  273. package/packages/core/dist/computer/validation.d.ts.map +1 -1
  274. package/packages/core/dist/computer/validation.js +28 -20
  275. package/packages/core/dist/computer/validation.js.map +1 -1
  276. package/packages/core/dist/config.d.ts +10 -1
  277. package/packages/core/dist/config.d.ts.map +1 -1
  278. package/packages/core/dist/config.js +64 -23
  279. package/packages/core/dist/config.js.map +1 -1
  280. package/packages/core/dist/cron/parse.d.ts.map +1 -1
  281. package/packages/core/dist/cron/parse.js +90 -77
  282. package/packages/core/dist/cron/parse.js.map +1 -1
  283. package/packages/core/dist/cron/scheduler.d.ts.map +1 -1
  284. package/packages/core/dist/cron/scheduler.js +99 -65
  285. package/packages/core/dist/cron/scheduler.js.map +1 -1
  286. package/packages/core/dist/cron/script.d.ts.map +1 -1
  287. package/packages/core/dist/cron/script.js +72 -42
  288. package/packages/core/dist/cron/script.js.map +1 -1
  289. package/packages/core/dist/external/claude-code.d.ts.map +1 -1
  290. package/packages/core/dist/external/claude-code.js +41 -28
  291. package/packages/core/dist/external/claude-code.js.map +1 -1
  292. package/packages/core/dist/external/discovery.d.ts.map +1 -1
  293. package/packages/core/dist/external/discovery.js +14 -11
  294. package/packages/core/dist/external/discovery.js.map +1 -1
  295. package/packages/core/dist/external/shared.d.ts.map +1 -1
  296. package/packages/core/dist/external/shared.js +55 -74
  297. package/packages/core/dist/external/shared.js.map +1 -1
  298. package/packages/core/dist/gateway/policy.d.ts.map +1 -1
  299. package/packages/core/dist/gateway/policy.js +5 -2
  300. package/packages/core/dist/gateway/policy.js.map +1 -1
  301. package/packages/core/dist/logger.d.ts.map +1 -1
  302. package/packages/core/dist/logger.js +11 -11
  303. package/packages/core/dist/logger.js.map +1 -1
  304. package/packages/core/dist/memory/db.d.ts.map +1 -1
  305. package/packages/core/dist/memory/db.js +175 -226
  306. package/packages/core/dist/memory/db.js.map +1 -1
  307. package/packages/core/dist/memory/dream/admission.d.ts +5 -0
  308. package/packages/core/dist/memory/dream/admission.d.ts.map +1 -1
  309. package/packages/core/dist/memory/dream/admission.js +8 -14
  310. package/packages/core/dist/memory/dream/admission.js.map +1 -1
  311. package/packages/core/dist/memory/dream/candidate.d.ts.map +1 -1
  312. package/packages/core/dist/memory/dream/candidate.js +119 -92
  313. package/packages/core/dist/memory/dream/candidate.js.map +1 -1
  314. package/packages/core/dist/memory/dream/evaluate.d.ts +13 -4
  315. package/packages/core/dist/memory/dream/evaluate.d.ts.map +1 -1
  316. package/packages/core/dist/memory/dream/evaluate.js +264 -288
  317. package/packages/core/dist/memory/dream/evaluate.js.map +1 -1
  318. package/packages/core/dist/memory/dream/frame.d.ts +6 -0
  319. package/packages/core/dist/memory/dream/frame.d.ts.map +1 -1
  320. package/packages/core/dist/memory/dream/frame.js +137 -91
  321. package/packages/core/dist/memory/dream/frame.js.map +1 -1
  322. package/packages/core/dist/memory/dream/label.d.ts.map +1 -1
  323. package/packages/core/dist/memory/dream/label.js +6 -9
  324. package/packages/core/dist/memory/dream/label.js.map +1 -1
  325. package/packages/core/dist/memory/dream/measure.d.ts +4 -0
  326. package/packages/core/dist/memory/dream/measure.d.ts.map +1 -1
  327. package/packages/core/dist/memory/dream/measure.js +13 -58
  328. package/packages/core/dist/memory/dream/measure.js.map +1 -1
  329. package/packages/core/dist/memory/dream/policy.d.ts.map +1 -1
  330. package/packages/core/dist/memory/dream/policy.js +4 -2
  331. package/packages/core/dist/memory/dream/policy.js.map +1 -1
  332. package/packages/core/dist/memory/dream/probe.d.ts +31 -4
  333. package/packages/core/dist/memory/dream/probe.d.ts.map +1 -1
  334. package/packages/core/dist/memory/dream/probe.js +290 -289
  335. package/packages/core/dist/memory/dream/probe.js.map +1 -1
  336. package/packages/core/dist/memory/dream/promote.d.ts.map +1 -1
  337. package/packages/core/dist/memory/dream/promote.js +10 -11
  338. package/packages/core/dist/memory/dream/promote.js.map +1 -1
  339. package/packages/core/dist/memory/dream/score.d.ts +9 -0
  340. package/packages/core/dist/memory/dream/score.d.ts.map +1 -1
  341. package/packages/core/dist/memory/dream/score.js +6 -7
  342. package/packages/core/dist/memory/dream/score.js.map +1 -1
  343. package/packages/core/dist/memory/dream/slots.d.ts.map +1 -1
  344. package/packages/core/dist/memory/dream/slots.js +0 -0
  345. package/packages/core/dist/memory/dream/slots.js.map +1 -1
  346. package/packages/core/dist/memory/dream/trajectory.d.ts.map +1 -1
  347. package/packages/core/dist/memory/dream/trajectory.js +76 -53
  348. package/packages/core/dist/memory/dream/trajectory.js.map +1 -1
  349. package/packages/core/dist/memory/dream/util.d.ts +44 -0
  350. package/packages/core/dist/memory/dream/util.d.ts.map +1 -0
  351. package/packages/core/dist/memory/dream/util.js +83 -0
  352. package/packages/core/dist/memory/dream/util.js.map +1 -0
  353. package/packages/core/dist/memory/extractor.d.ts.map +1 -1
  354. package/packages/core/dist/memory/extractor.js +67 -46
  355. package/packages/core/dist/memory/extractor.js.map +1 -1
  356. package/packages/core/dist/memory/gate.d.ts.map +1 -1
  357. package/packages/core/dist/memory/gate.js +55 -44
  358. package/packages/core/dist/memory/gate.js.map +1 -1
  359. package/packages/core/dist/memory/recall.d.ts +1 -1
  360. package/packages/core/dist/memory/recall.d.ts.map +1 -1
  361. package/packages/core/dist/memory/recall.js +42 -39
  362. package/packages/core/dist/memory/recall.js.map +1 -1
  363. package/packages/core/dist/memory/sleep-dream.d.ts +210 -0
  364. package/packages/core/dist/memory/sleep-dream.d.ts.map +1 -0
  365. package/packages/core/dist/memory/sleep-dream.js +1109 -0
  366. package/packages/core/dist/memory/sleep-dream.js.map +1 -0
  367. package/packages/core/dist/memory/sleep-frames.d.ts +40 -0
  368. package/packages/core/dist/memory/sleep-frames.d.ts.map +1 -0
  369. package/packages/core/dist/memory/sleep-frames.js +127 -0
  370. package/packages/core/dist/memory/sleep-frames.js.map +1 -0
  371. package/packages/core/dist/memory/sleep-limits.d.ts +18 -0
  372. package/packages/core/dist/memory/sleep-limits.d.ts.map +1 -0
  373. package/packages/core/dist/memory/sleep-limits.js +34 -0
  374. package/packages/core/dist/memory/sleep-limits.js.map +1 -0
  375. package/packages/core/dist/memory/sleep-model.d.ts +36 -0
  376. package/packages/core/dist/memory/sleep-model.d.ts.map +1 -0
  377. package/packages/core/dist/memory/sleep-model.js +80 -0
  378. package/packages/core/dist/memory/sleep-model.js.map +1 -0
  379. package/packages/core/dist/memory/sleep-policy.d.ts +19 -0
  380. package/packages/core/dist/memory/sleep-policy.d.ts.map +1 -0
  381. package/packages/core/dist/memory/sleep-policy.js +79 -0
  382. package/packages/core/dist/memory/sleep-policy.js.map +1 -0
  383. package/packages/core/dist/memory/sleep-prompts.d.ts +15 -0
  384. package/packages/core/dist/memory/sleep-prompts.d.ts.map +1 -0
  385. package/packages/core/dist/memory/sleep-prompts.js +212 -0
  386. package/packages/core/dist/memory/sleep-prompts.js.map +1 -0
  387. package/packages/core/dist/memory/sleep-report.d.ts +63 -0
  388. package/packages/core/dist/memory/sleep-report.d.ts.map +1 -0
  389. package/packages/core/dist/memory/sleep-report.js +97 -0
  390. package/packages/core/dist/memory/sleep-report.js.map +1 -0
  391. package/packages/core/dist/memory/sleep-verdicts.d.ts +77 -0
  392. package/packages/core/dist/memory/sleep-verdicts.d.ts.map +1 -0
  393. package/packages/core/dist/memory/sleep-verdicts.js +198 -0
  394. package/packages/core/dist/memory/sleep-verdicts.js.map +1 -0
  395. package/packages/core/dist/memory/sleep.d.ts +6 -61
  396. package/packages/core/dist/memory/sleep.d.ts.map +1 -1
  397. package/packages/core/dist/memory/sleep.js +1099 -2458
  398. package/packages/core/dist/memory/sleep.js.map +1 -1
  399. package/packages/core/dist/memory/store-rows.d.ts +43 -0
  400. package/packages/core/dist/memory/store-rows.d.ts.map +1 -0
  401. package/packages/core/dist/memory/store-rows.js +330 -0
  402. package/packages/core/dist/memory/store-rows.js.map +1 -0
  403. package/packages/core/dist/memory/store.d.ts +34 -20
  404. package/packages/core/dist/memory/store.d.ts.map +1 -1
  405. package/packages/core/dist/memory/store.js +634 -861
  406. package/packages/core/dist/memory/store.js.map +1 -1
  407. package/packages/core/dist/migration-cron.d.ts +2 -1
  408. package/packages/core/dist/migration-cron.d.ts.map +1 -1
  409. package/packages/core/dist/migration-cron.js +197 -154
  410. package/packages/core/dist/migration-cron.js.map +1 -1
  411. package/packages/core/dist/migration-scripts.d.ts +11 -3
  412. package/packages/core/dist/migration-scripts.d.ts.map +1 -1
  413. package/packages/core/dist/migration-scripts.js +81 -61
  414. package/packages/core/dist/migration-scripts.js.map +1 -1
  415. package/packages/core/dist/migration-shared.d.ts +9 -0
  416. package/packages/core/dist/migration-shared.d.ts.map +1 -0
  417. package/packages/core/dist/migration-shared.js +16 -0
  418. package/packages/core/dist/migration-shared.js.map +1 -0
  419. package/packages/core/dist/migration.d.ts.map +1 -1
  420. package/packages/core/dist/migration.js +150 -111
  421. package/packages/core/dist/migration.js.map +1 -1
  422. package/packages/core/dist/org/assignment-log.d.ts +28 -0
  423. package/packages/core/dist/org/assignment-log.d.ts.map +1 -0
  424. package/packages/core/dist/org/assignment-log.js +86 -0
  425. package/packages/core/dist/org/assignment-log.js.map +1 -0
  426. package/packages/core/dist/org/bridge.d.ts.map +1 -1
  427. package/packages/core/dist/org/bridge.js +32 -30
  428. package/packages/core/dist/org/bridge.js.map +1 -1
  429. package/packages/core/dist/org/controller.d.ts +18 -21
  430. package/packages/core/dist/org/controller.d.ts.map +1 -1
  431. package/packages/core/dist/org/controller.js +2042 -1848
  432. package/packages/core/dist/org/controller.js.map +1 -1
  433. package/packages/core/dist/org/json-reply.d.ts +6 -0
  434. package/packages/core/dist/org/json-reply.d.ts.map +1 -0
  435. package/packages/core/dist/org/json-reply.js +23 -0
  436. package/packages/core/dist/org/json-reply.js.map +1 -0
  437. package/packages/core/dist/org/mcp-bridge.js +34 -26
  438. package/packages/core/dist/org/mcp-bridge.js.map +1 -1
  439. package/packages/core/dist/org/planner.d.ts.map +1 -1
  440. package/packages/core/dist/org/planner.js +38 -42
  441. package/packages/core/dist/org/planner.js.map +1 -1
  442. package/packages/core/dist/org/project-mcp.d.ts.map +1 -1
  443. package/packages/core/dist/org/project-mcp.js +2 -5
  444. package/packages/core/dist/org/project-mcp.js.map +1 -1
  445. package/packages/core/dist/org/prompts.d.ts.map +1 -1
  446. package/packages/core/dist/org/prompts.js +176 -156
  447. package/packages/core/dist/org/prompts.js.map +1 -1
  448. package/packages/core/dist/org/questions.d.ts.map +1 -1
  449. package/packages/core/dist/org/questions.js +19 -14
  450. package/packages/core/dist/org/questions.js.map +1 -1
  451. package/packages/core/dist/org/review.d.ts.map +1 -1
  452. package/packages/core/dist/org/review.js +27 -43
  453. package/packages/core/dist/org/review.js.map +1 -1
  454. package/packages/core/dist/org/store.d.ts +19 -32
  455. package/packages/core/dist/org/store.d.ts.map +1 -1
  456. package/packages/core/dist/org/store.js +250 -206
  457. package/packages/core/dist/org/store.js.map +1 -1
  458. package/packages/core/dist/org/tool-args.d.ts +54 -0
  459. package/packages/core/dist/org/tool-args.d.ts.map +1 -0
  460. package/packages/core/dist/org/tool-args.js +104 -0
  461. package/packages/core/dist/org/tool-args.js.map +1 -0
  462. package/packages/core/dist/org/tools.d.ts.map +1 -1
  463. package/packages/core/dist/org/tools.js +238 -443
  464. package/packages/core/dist/org/tools.js.map +1 -1
  465. package/packages/core/dist/profile.d.ts.map +1 -1
  466. package/packages/core/dist/profile.js +114 -57
  467. package/packages/core/dist/profile.js.map +1 -1
  468. package/packages/core/dist/providers/catalogue.d.ts.map +1 -1
  469. package/packages/core/dist/providers/catalogue.js +89 -60
  470. package/packages/core/dist/providers/catalogue.js.map +1 -1
  471. package/packages/core/dist/providers/claude-code.d.ts.map +1 -1
  472. package/packages/core/dist/providers/claude-code.js +418 -357
  473. package/packages/core/dist/providers/claude-code.js.map +1 -1
  474. package/packages/core/dist/providers/claude-tui.d.ts +13 -9
  475. package/packages/core/dist/providers/claude-tui.d.ts.map +1 -1
  476. package/packages/core/dist/providers/claude-tui.js +568 -396
  477. package/packages/core/dist/providers/claude-tui.js.map +1 -1
  478. package/packages/core/dist/providers/codex-auth.d.ts +3 -0
  479. package/packages/core/dist/providers/codex-auth.d.ts.map +1 -1
  480. package/packages/core/dist/providers/codex-auth.js +9 -7
  481. package/packages/core/dist/providers/codex-auth.js.map +1 -1
  482. package/packages/core/dist/providers/codex-bridge.d.ts +24 -7
  483. package/packages/core/dist/providers/codex-bridge.d.ts.map +1 -1
  484. package/packages/core/dist/providers/codex-bridge.js +128 -168
  485. package/packages/core/dist/providers/codex-bridge.js.map +1 -1
  486. package/packages/core/dist/providers/codex-translate.d.ts.map +1 -1
  487. package/packages/core/dist/providers/codex-translate.js +195 -197
  488. package/packages/core/dist/providers/codex-translate.js.map +1 -1
  489. package/packages/core/dist/providers/loopback-server.d.ts +33 -0
  490. package/packages/core/dist/providers/loopback-server.d.ts.map +1 -0
  491. package/packages/core/dist/providers/loopback-server.js +104 -0
  492. package/packages/core/dist/providers/loopback-server.js.map +1 -0
  493. package/packages/core/dist/providers/model-gateway.d.ts +2 -4
  494. package/packages/core/dist/providers/model-gateway.d.ts.map +1 -1
  495. package/packages/core/dist/providers/model-gateway.js +39 -75
  496. package/packages/core/dist/providers/model-gateway.js.map +1 -1
  497. package/packages/core/dist/providers/process.d.ts.map +1 -1
  498. package/packages/core/dist/providers/process.js +32 -23
  499. package/packages/core/dist/providers/process.js.map +1 -1
  500. package/packages/core/dist/providers/provider-catalog.d.ts.map +1 -1
  501. package/packages/core/dist/providers/provider-catalog.js +21 -23
  502. package/packages/core/dist/providers/provider-catalog.js.map +1 -1
  503. package/packages/core/dist/providers/quota.d.ts.map +1 -1
  504. package/packages/core/dist/providers/quota.js +37 -37
  505. package/packages/core/dist/providers/quota.js.map +1 -1
  506. package/packages/core/dist/providers/registry.d.ts.map +1 -1
  507. package/packages/core/dist/providers/registry.js +3 -1
  508. package/packages/core/dist/providers/registry.js.map +1 -1
  509. package/packages/core/dist/providers/user-settings-guard.d.ts.map +1 -1
  510. package/packages/core/dist/providers/user-settings-guard.js +7 -2
  511. package/packages/core/dist/providers/user-settings-guard.js.map +1 -1
  512. package/packages/core/dist/runtime.d.ts +45 -158
  513. package/packages/core/dist/runtime.d.ts.map +1 -1
  514. package/packages/core/dist/runtime.js +184 -1701
  515. package/packages/core/dist/runtime.js.map +1 -1
  516. package/packages/core/dist/skills/import.d.ts.map +1 -1
  517. package/packages/core/dist/skills/import.js +52 -36
  518. package/packages/core/dist/skills/import.js.map +1 -1
  519. package/packages/core/dist/skills/shelf.d.ts +14 -0
  520. package/packages/core/dist/skills/shelf.d.ts.map +1 -1
  521. package/packages/core/dist/skills/shelf.js +2 -3
  522. package/packages/core/dist/skills/shelf.js.map +1 -1
  523. package/packages/core/dist/skills/store.d.ts +2 -0
  524. package/packages/core/dist/skills/store.d.ts.map +1 -1
  525. package/packages/core/dist/skills/store.js +17 -12
  526. package/packages/core/dist/skills/store.js.map +1 -1
  527. package/packages/core/dist/tools/catalog.d.ts.map +1 -1
  528. package/packages/core/dist/tools/catalog.js +6 -2
  529. package/packages/core/dist/tools/catalog.js.map +1 -1
  530. package/packages/core/dist/tools/hub.d.ts.map +1 -1
  531. package/packages/core/dist/tools/hub.js +97 -79
  532. package/packages/core/dist/tools/hub.js.map +1 -1
  533. package/packages/core/dist/turns/journal.d.ts.map +1 -1
  534. package/packages/core/dist/turns/journal.js +12 -18
  535. package/packages/core/dist/turns/journal.js.map +1 -1
  536. package/packages/core/dist/types.d.ts +12 -3
  537. package/packages/core/dist/types.d.ts.map +1 -1
  538. package/packages/core/dist/types.js.map +1 -1
  539. package/packages/core/dist/util/blocks.d.ts.map +1 -1
  540. package/packages/core/dist/util/blocks.js +14 -22
  541. package/packages/core/dist/util/blocks.js.map +1 -1
  542. package/packages/core/dist/util/queue.d.ts +0 -2
  543. package/packages/core/dist/util/queue.d.ts.map +1 -1
  544. package/packages/core/dist/util/queue.js +0 -6
  545. package/packages/core/dist/util/queue.js.map +1 -1
  546. package/packages/core/package.json +1 -1
  547. package/packages/server/dist/auth.d.ts +8 -0
  548. package/packages/server/dist/auth.d.ts.map +1 -1
  549. package/packages/server/dist/auth.js +8 -8
  550. package/packages/server/dist/auth.js.map +1 -1
  551. package/packages/server/dist/env.d.ts.map +1 -1
  552. package/packages/server/dist/env.js +18 -15
  553. package/packages/server/dist/env.js.map +1 -1
  554. package/packages/server/dist/errors.d.ts +3 -0
  555. package/packages/server/dist/errors.d.ts.map +1 -0
  556. package/packages/server/dist/errors.js +5 -0
  557. package/packages/server/dist/errors.js.map +1 -0
  558. package/packages/server/dist/gateways/attachments.d.ts.map +1 -1
  559. package/packages/server/dist/gateways/attachments.js +38 -21
  560. package/packages/server/dist/gateways/attachments.js.map +1 -1
  561. package/packages/server/dist/gateways/markdown.d.ts.map +1 -1
  562. package/packages/server/dist/gateways/markdown.js +30 -12
  563. package/packages/server/dist/gateways/markdown.js.map +1 -1
  564. package/packages/server/dist/gateways/push.d.ts +6 -6
  565. package/packages/server/dist/gateways/push.d.ts.map +1 -1
  566. package/packages/server/dist/gateways/push.js +101 -74
  567. package/packages/server/dist/gateways/push.js.map +1 -1
  568. package/packages/server/dist/gateways/telegram-api.d.ts.map +1 -1
  569. package/packages/server/dist/gateways/telegram-api.js +61 -44
  570. package/packages/server/dist/gateways/telegram-api.js.map +1 -1
  571. package/packages/server/dist/gateways/telegram.d.ts +5 -0
  572. package/packages/server/dist/gateways/telegram.d.ts.map +1 -1
  573. package/packages/server/dist/gateways/telegram.js +985 -753
  574. package/packages/server/dist/gateways/telegram.js.map +1 -1
  575. package/packages/server/dist/gateways/threads.d.ts.map +1 -1
  576. package/packages/server/dist/gateways/threads.js +144 -130
  577. package/packages/server/dist/gateways/threads.js.map +1 -1
  578. package/packages/server/dist/listeners/imap.d.ts.map +1 -1
  579. package/packages/server/dist/listeners/imap.js +0 -0
  580. package/packages/server/dist/listeners/imap.js.map +1 -1
  581. package/packages/server/dist/listeners/registry.d.ts.map +1 -1
  582. package/packages/server/dist/listeners/registry.js +15 -15
  583. package/packages/server/dist/listeners/registry.js.map +1 -1
  584. package/packages/server/dist/main.js +3 -2
  585. package/packages/server/dist/main.js.map +1 -1
  586. package/packages/server/dist/routes/chat.d.ts.map +1 -1
  587. package/packages/server/dist/routes/chat.js +5 -8
  588. package/packages/server/dist/routes/chat.js.map +1 -1
  589. package/packages/server/dist/routes/config.d.ts +6 -0
  590. package/packages/server/dist/routes/config.d.ts.map +1 -1
  591. package/packages/server/dist/routes/config.js +34 -31
  592. package/packages/server/dist/routes/config.js.map +1 -1
  593. package/packages/server/dist/routes/cron.d.ts.map +1 -1
  594. package/packages/server/dist/routes/cron.js +33 -23
  595. package/packages/server/dist/routes/cron.js.map +1 -1
  596. package/packages/server/dist/routes/dream.d.ts +1 -1
  597. package/packages/server/dist/routes/dream.d.ts.map +1 -1
  598. package/packages/server/dist/routes/dream.js +16 -34
  599. package/packages/server/dist/routes/dream.js.map +1 -1
  600. package/packages/server/dist/routes/gateways.d.ts.map +1 -1
  601. package/packages/server/dist/routes/gateways.js +8 -13
  602. package/packages/server/dist/routes/gateways.js.map +1 -1
  603. package/packages/server/dist/routes/memories.d.ts.map +1 -1
  604. package/packages/server/dist/routes/memories.js +16 -29
  605. package/packages/server/dist/routes/memories.js.map +1 -1
  606. package/packages/server/dist/routes/night.d.ts +31 -0
  607. package/packages/server/dist/routes/night.d.ts.map +1 -0
  608. package/packages/server/dist/routes/night.js +28 -0
  609. package/packages/server/dist/routes/night.js.map +1 -0
  610. package/packages/server/dist/routes/org.d.ts.map +1 -1
  611. package/packages/server/dist/routes/org.js +125 -119
  612. package/packages/server/dist/routes/org.js.map +1 -1
  613. package/packages/server/dist/routes/profile.d.ts.map +1 -1
  614. package/packages/server/dist/routes/profile.js +5 -6
  615. package/packages/server/dist/routes/profile.js.map +1 -1
  616. package/packages/server/dist/routes/providers.d.ts.map +1 -1
  617. package/packages/server/dist/routes/providers.js +1 -3
  618. package/packages/server/dist/routes/providers.js.map +1 -1
  619. package/packages/server/dist/routes/query.d.ts +10 -0
  620. package/packages/server/dist/routes/query.d.ts.map +1 -0
  621. package/packages/server/dist/routes/query.js +17 -0
  622. package/packages/server/dist/routes/query.js.map +1 -0
  623. package/packages/server/dist/routes/questions.d.ts.map +1 -1
  624. package/packages/server/dist/routes/questions.js +5 -11
  625. package/packages/server/dist/routes/questions.js.map +1 -1
  626. package/packages/server/dist/routes/sessions.d.ts.map +1 -1
  627. package/packages/server/dist/routes/sessions.js +20 -28
  628. package/packages/server/dist/routes/sessions.js.map +1 -1
  629. package/packages/server/dist/routes/sleep.d.ts.map +1 -1
  630. package/packages/server/dist/routes/sleep.js +21 -36
  631. package/packages/server/dist/routes/sleep.js.map +1 -1
  632. package/packages/server/dist/routes/stats.d.ts.map +1 -1
  633. package/packages/server/dist/routes/stats.js +2 -7
  634. package/packages/server/dist/routes/stats.js.map +1 -1
  635. package/packages/server/dist/routes/terminals.d.ts.map +1 -1
  636. package/packages/server/dist/routes/terminals.js +19 -14
  637. package/packages/server/dist/routes/terminals.js.map +1 -1
  638. package/packages/server/dist/routes/tools.d.ts.map +1 -1
  639. package/packages/server/dist/routes/tools.js +7 -5
  640. package/packages/server/dist/routes/tools.js.map +1 -1
  641. package/packages/server/dist/routes/ws.d.ts.map +1 -1
  642. package/packages/server/dist/routes/ws.js +235 -207
  643. package/packages/server/dist/routes/ws.js.map +1 -1
  644. package/packages/server/dist/schemas.d.ts +30 -21
  645. package/packages/server/dist/schemas.d.ts.map +1 -1
  646. package/packages/server/dist/schemas.js +3 -2
  647. package/packages/server/dist/schemas.js.map +1 -1
  648. package/packages/server/dist/server.d.ts.map +1 -1
  649. package/packages/server/dist/server.js +250 -230
  650. package/packages/server/dist/server.js.map +1 -1
  651. package/packages/server/dist/services/stream.d.ts.map +1 -1
  652. package/packages/server/dist/services/stream.js +6 -4
  653. package/packages/server/dist/services/stream.js.map +1 -1
  654. package/packages/server/dist/services/stt.d.ts +1 -1
  655. package/packages/server/dist/services/stt.d.ts.map +1 -1
  656. package/packages/server/dist/services/stt.js +175 -124
  657. package/packages/server/dist/services/stt.js.map +1 -1
  658. package/packages/server/dist/services/tts.d.ts.map +1 -1
  659. package/packages/server/dist/services/tts.js +82 -54
  660. package/packages/server/dist/services/tts.js.map +1 -1
  661. package/packages/server/dist/services/turns.d.ts +8 -6
  662. package/packages/server/dist/services/turns.d.ts.map +1 -1
  663. package/packages/server/dist/services/turns.js +36 -32
  664. package/packages/server/dist/services/turns.js.map +1 -1
  665. package/packages/server/dist/services/updates.d.ts +1 -0
  666. package/packages/server/dist/services/updates.d.ts.map +1 -1
  667. package/packages/server/dist/services/updates.js +150 -91
  668. package/packages/server/dist/services/updates.js.map +1 -1
  669. package/packages/server/dist/services/voice-keys.d.ts.map +1 -1
  670. package/packages/server/dist/services/voice-keys.js +4 -2
  671. package/packages/server/dist/services/voice-keys.js.map +1 -1
  672. package/packages/server/dist/static.d.ts +1 -1
  673. package/packages/server/dist/static.d.ts.map +1 -1
  674. package/packages/server/dist/static.js +7 -7
  675. package/packages/server/dist/static.js.map +1 -1
  676. package/packages/server/package.json +1 -1
  677. package/packages/web/dist/assets/{abnfDiagram-O67JEVCF-D7YyFndQ.js → abnfDiagram-O67JEVCF-c90Gs7pG.js} +1 -1
  678. package/packages/web/dist/assets/{arc-C_Zgk2dJ.js → arc-C28-SQX8.js} +1 -1
  679. package/packages/web/dist/assets/{architectureDiagram-NJMV4G6O-eI0adu1B.js → architectureDiagram-NJMV4G6O-CBPhVAKx.js} +1 -1
  680. package/packages/web/dist/assets/{blockDiagram-BEXU5L5S-WAoOFUA9.js → blockDiagram-BEXU5L5S-CwKMvCbh.js} +1 -1
  681. package/packages/web/dist/assets/{c4Diagram-YGBWAQC7-DE8Zyhng.js → c4Diagram-YGBWAQC7-CsL4YtmG.js} +1 -1
  682. package/packages/web/dist/assets/channel-gYp6Rt3b.js +1 -0
  683. package/packages/web/dist/assets/{chunk-2Q5K7J3B-bnqLP2XD.js → chunk-2Q5K7J3B-C9Bji_Nr.js} +1 -1
  684. package/packages/web/dist/assets/{chunk-3FUC2YCW-Ck1_SVe0.js → chunk-3FUC2YCW-BUnPWClf.js} +2 -2
  685. package/packages/web/dist/assets/{chunk-5VM5RSS4-hDmC41gD.js → chunk-5VM5RSS4-CdfpfDTC.js} +1 -1
  686. package/packages/web/dist/assets/{chunk-GTNCS2PH-PoWvfCrT.js → chunk-GTNCS2PH-BZrKT8Ne.js} +1 -1
  687. package/packages/web/dist/assets/{chunk-GWA4HPMP-D3V0IG43.js → chunk-GWA4HPMP-C0jEzDJu.js} +1 -1
  688. package/packages/web/dist/assets/{chunk-JWPE2WC7-BryfpHM5.js → chunk-JWPE2WC7-CkLRmEro.js} +1 -1
  689. package/packages/web/dist/assets/{chunk-NETBCI7D-8ic1iEdT.js → chunk-NETBCI7D-BBeWMDmk.js} +1 -1
  690. package/packages/web/dist/assets/{chunk-WEXAMYUT-nM8tmQT2.js → chunk-WEXAMYUT-B6IqsBxs.js} +1 -1
  691. package/packages/web/dist/assets/{chunk-XXDRQBXY-Do28F482.js → chunk-XXDRQBXY-BPXeDnB2.js} +1 -1
  692. package/packages/web/dist/assets/{classDiagram-v2-NBCMYWYE-Bop9oNNO.js → classDiagram-v2-NBCMYWYE-2kqq2mJ8.js} +1 -1
  693. package/packages/web/dist/assets/{cose-bilkent-JH36ORCC-a7f_bpnt.js → cose-bilkent-JH36ORCC-G49FKtk6.js} +1 -1
  694. package/packages/web/dist/assets/{cynefin-OW5HDTMX-DnArcis_.js → cynefin-OW5HDTMX-98M_mPg9.js} +1 -1
  695. package/packages/web/dist/assets/{cynefinDiagram-VND7K2PF-vEuTb1GD.js → cynefinDiagram-VND7K2PF-BYJTAxOT.js} +1 -1
  696. package/packages/web/dist/assets/{dagre-6A5THRUB-BgG4MynJ.js → dagre-6A5THRUB-Bxcb5kkl.js} +1 -1
  697. package/packages/web/dist/assets/{diagram-22UHCM2B-DRCQpafv.js → diagram-22UHCM2B-DK7wAztC.js} +1 -1
  698. package/packages/web/dist/assets/{diagram-3UASUU5V-BKgmAXde.js → diagram-3UASUU5V-BMRz0ele.js} +1 -1
  699. package/packages/web/dist/assets/{diagram-ATOU4E4O-B6Hsy36X.js → diagram-ATOU4E4O-O23sdVpm.js} +1 -1
  700. package/packages/web/dist/assets/{diagram-CDSNMT55-JflyfyoB.js → diagram-CDSNMT55-CGxai-zV.js} +1 -1
  701. package/packages/web/dist/assets/{diagram-MLGK6HIB-Dd2QPJjT.js → diagram-MLGK6HIB-B_29W-sW.js} +1 -1
  702. package/packages/web/dist/assets/{diagram-MPIPVDR6-DE5QU60x.js → diagram-MPIPVDR6-OSt1qPU_.js} +1 -1
  703. package/packages/web/dist/assets/{ebnfDiagram-ZINNZB2B-D7AQ741b.js → ebnfDiagram-ZINNZB2B-DnZcwiew.js} +1 -1
  704. package/packages/web/dist/assets/{elk-276RUBZZ-CeewBVLF.js → elk-276RUBZZ-BP6-xQAF.js} +1 -1
  705. package/packages/web/dist/assets/{erDiagram-OPXOYQCR-mLLYkZ5c.js → erDiagram-OPXOYQCR-DhG7UZtA.js} +1 -1
  706. package/packages/web/dist/assets/{flowDiagram-KWPJA3E3-DtpSpsQN.js → flowDiagram-KWPJA3E3-CNTS1YPA.js} +1 -1
  707. package/packages/web/dist/assets/{ganttDiagram-FUAMR5RP-1_lh-3ky.js → ganttDiagram-FUAMR5RP-_eKkbUxc.js} +1 -1
  708. package/packages/web/dist/assets/{gitGraphDiagram-X574FWY7-DoPXZuT5.js → gitGraphDiagram-X574FWY7-N_PXNE-o.js} +1 -1
  709. package/packages/web/dist/assets/index-DGq8BOVF.js +646 -0
  710. package/packages/web/dist/assets/index-DgMuFFt3.css +32 -0
  711. package/packages/web/dist/assets/{infoDiagram-VRGFBTTK-DQpRGGiD.js → infoDiagram-VRGFBTTK-vj_EDhft.js} +1 -1
  712. package/packages/web/dist/assets/{ishikawaDiagram-OU5B5YK6-gH5C9Q2e.js → ishikawaDiagram-OU5B5YK6-Dr0BodVq.js} +1 -1
  713. package/packages/web/dist/assets/{journeyDiagram-ZHPQQLJL-Bg-oeFjb.js → journeyDiagram-ZHPQQLJL-DykOPAu9.js} +1 -1
  714. package/packages/web/dist/assets/{kanban-definition-PNTS6WVX-BnpI4VH8.js → kanban-definition-PNTS6WVX-zslQcJnX.js} +1 -1
  715. package/packages/web/dist/assets/{mermaid.core-BwBKxlRA.js → mermaid.core-C888eQE1.js} +4 -4
  716. package/packages/web/dist/assets/{mindmap-definition-NLK3R4M7-NBnnxEoO.js → mindmap-definition-NLK3R4M7-CpdltDoL.js} +1 -1
  717. package/packages/web/dist/assets/{pegDiagram-GJSIUBJH-RrXXbIvO.js → pegDiagram-GJSIUBJH-Dsx3NmVN.js} +1 -1
  718. package/packages/web/dist/assets/{pieDiagram-5QR66LMP-B27q6Gso.js → pieDiagram-5QR66LMP-D_4DJLkr.js} +1 -1
  719. package/packages/web/dist/assets/{quadrantDiagram-O4NWA36T-DGDsdur2.js → quadrantDiagram-O4NWA36T-BXgGWrJ1.js} +1 -1
  720. package/packages/web/dist/assets/{railroadDiagram-XR7U4H2S-GdjkE3mI.js → railroadDiagram-XR7U4H2S-WMsrl4TR.js} +1 -1
  721. package/packages/web/dist/assets/{requirementDiagram-PLB6GJNP-DjK0GfgO.js → requirementDiagram-PLB6GJNP-m2PpXDpq.js} +1 -1
  722. package/packages/web/dist/assets/{sankeyDiagram-IPEJSGJF-BG_AIkwF.js → sankeyDiagram-IPEJSGJF-DfcxNy3C.js} +1 -1
  723. package/packages/web/dist/assets/scene-BA1PRRU7.js +4620 -0
  724. package/packages/web/dist/assets/{sequenceDiagram-PO4LG4MO-CIQwUb4y.js → sequenceDiagram-PO4LG4MO-B8yIKbJ8.js} +1 -1
  725. package/packages/web/dist/assets/{sizeCapture-INFHLROL-bpIoPxdJ.js → sizeCapture-INFHLROL-Cic9nV7h.js} +1 -1
  726. package/packages/web/dist/assets/{stateDiagram-v2-GCMORJYK-8hYXvPPv.js → stateDiagram-v2-GCMORJYK-oOFJPdg1.js} +1 -1
  727. package/packages/web/dist/assets/{swimlanes-2SLR337P-gfflUMF9.js → swimlanes-2SLR337P-UCvVVk9j.js} +1 -1
  728. package/packages/web/dist/assets/swimlanesDiagram-TC7HE7FX-B8q2Z_Nb.js +8 -0
  729. package/packages/web/dist/assets/{timeline-definition-EJHVYXUP-PHMNoGTZ.js → timeline-definition-EJHVYXUP-BLgviPCi.js} +1 -1
  730. package/packages/web/dist/assets/{usecaseDiagram-POWQR4AR-B2j5iteO.js → usecaseDiagram-POWQR4AR-CV7U5Y4h.js} +1 -1
  731. package/packages/web/dist/assets/{vennDiagram-UO4OBE2U-BzxtZ-_2.js → vennDiagram-UO4OBE2U-C8OA0JqM.js} +1 -1
  732. package/packages/web/dist/assets/{wardleyDiagram-VNRHLVJA-DL7YbMpY.js → wardleyDiagram-VNRHLVJA-F55WtNqt.js} +1 -1
  733. package/packages/web/dist/assets/{xychartDiagram-PMCCYNJV-CisgP1cT.js → xychartDiagram-PMCCYNJV-C93Bzul9.js} +1 -1
  734. package/packages/web/dist/index.html +2 -2
  735. package/packages/web/package.json +1 -1
  736. package/packages/web/dist/assets/channel-egZxcyUK.js +0 -1
  737. package/packages/web/dist/assets/index-Cw2Opmx7.js +0 -648
  738. package/packages/web/dist/assets/index-j0zBRCgT.css +0 -32
  739. package/packages/web/dist/assets/scene-D4LPicHk.js +0 -4620
  740. package/packages/web/dist/assets/swimlanesDiagram-TC7HE7FX-9wdzGXU-.js +0 -8
@@ -28,6 +28,21 @@ const WATCH_TOOLS = new Set([
28
28
  const BOTH = ['assistant', 'agent'];
29
29
  const ASSISTANT_ONLY = ['assistant'];
30
30
  const str = (description) => ({ type: 'string', description });
31
+ const bool = (description) => ({ type: 'boolean', description });
32
+ const num = (description) => ({ type: 'number', description });
33
+ const oneOf = (values, description) => ({
34
+ type: 'string',
35
+ enum: values,
36
+ description,
37
+ });
38
+ const PERMISSIONS = ['chat', 'read', 'write', 'full'];
39
+ const TASK_PRIORITIES = ['low', 'normal', 'high'];
40
+ /** A closed object schema: no properties beyond the ones listed. */
41
+ function objectSchema(properties, required) {
42
+ return required
43
+ ? { type: 'object', properties, required, additionalProperties: false }
44
+ : { type: 'object', properties, additionalProperties: false };
45
+ }
31
46
  /**
32
47
  * The one rule for naming work, word for word wherever a name is asked for.
33
48
  * Whoever writes a brief can name it; a name nobody can write is a brief
@@ -51,20 +66,20 @@ export const ORG_TOOLS = [
51
66
  {
52
67
  name: 'read_profile',
53
68
  description: 'Read saved identity or memory notes. Names: IDENTITY.md, SOUL.md, USER.md, AGENTS.md, TOOLS.md, MEMORY.md or memory/*.md. Use offsets to read beyond context excerpts.',
54
- inputSchema: { type: 'object', properties: { name: str('Workspace-relative profile file name.'), offset: { type: 'integer', minimum: 0 }, limit: { type: 'integer', minimum: 1, maximum: 24000 } }, required: ['name'], additionalProperties: false },
69
+ inputSchema: objectSchema({ name: str('Workspace-relative profile file name.'), offset: { type: 'integer', minimum: 0 }, limit: { type: 'integer', minimum: 1, maximum: 24000 } }, ['name']),
55
70
  audience: ASSISTANT_ONLY,
56
71
  },
57
72
  {
58
73
  name: 'search_profile',
59
74
  description: 'Search portable Markdown profile and memory notes imported from Hermes or OpenClaw. Returns file names and excerpt offsets for read_profile. Native learned memories use search_memory.',
60
- inputSchema: { type: 'object', properties: { query: str('Words to find in the portable notes.') }, required: ['query'], additionalProperties: false },
75
+ inputSchema: objectSchema({ query: str('Words to find in the portable notes.') }, ['query']),
61
76
  audience: ASSISTANT_ONLY,
62
77
  },
63
78
  {
64
79
  name: 'org_overview',
65
80
  description: 'The company you run: teams, agents (with slug, title and manager), projects, and the work ' +
66
81
  'currently running. Call this before delegating when you are unsure who does what.',
67
- inputSchema: { type: 'object', properties: {}, additionalProperties: false },
82
+ inputSchema: objectSchema({}),
68
83
  audience: BOTH,
69
84
  },
70
85
  {
@@ -80,32 +95,19 @@ export const ORG_TOOLS = [
80
95
  '(tell the user then, not before); handed off from inside a task, your task stays open and ' +
81
96
  'you are run again with the result once it is back. Nothing needs polling, but ' +
82
97
  'assignment_status shows where it stands. Handing work to yourself must use wait=false.',
83
- inputSchema: {
84
- type: 'object',
85
- properties: {
86
- agent: str('Agent slug or name.'),
87
- title: str(TITLE_RULE),
88
- task: str('The full, self-contained instruction.'),
89
- project: str("Project name or id. The agent works in that project's directory. Optional."),
90
- wait: {
91
- type: 'boolean',
92
- description: 'Default true. False hands the task off and returns immediately.',
93
- },
94
- },
95
- required: ['agent', 'title', 'task'],
96
- additionalProperties: false,
97
- },
98
+ inputSchema: objectSchema({
99
+ agent: str('Agent slug or name.'),
100
+ title: str(TITLE_RULE),
101
+ task: str('The full, self-contained instruction.'),
102
+ project: str("Project name or id. The agent works in that project's directory. Optional."),
103
+ wait: bool('Default true. False hands the task off and returns immediately.'),
104
+ }, ['agent', 'title', 'task']),
98
105
  audience: BOTH,
99
106
  },
100
107
  {
101
108
  name: 'assignment_status',
102
109
  description: 'Status, duration and result of one run by id.',
103
- inputSchema: {
104
- type: 'object',
105
- properties: { id: str('Run id.') },
106
- required: ['id'],
107
- additionalProperties: false,
108
- },
110
+ inputSchema: objectSchema({ id: str('Run id.') }, ['id']),
109
111
  audience: BOTH,
110
112
  },
111
113
  {
@@ -113,28 +115,19 @@ export const ORG_TOOLS = [
113
115
  description: 'Stop a pending or running task. The agent process is killed and the run ends ' +
114
116
  'as cancelled; whatever it had written so far is lost. Use it for a stuck or runaway agent, ' +
115
117
  'or when the user changes their mind.',
116
- inputSchema: {
117
- type: 'object',
118
- properties: { id: str('Run id or prefix.') },
119
- required: ['id'],
120
- additionalProperties: false,
121
- },
118
+ inputSchema: objectSchema({ id: str('Run id or prefix.') }, ['id']),
122
119
  audience: ASSISTANT_ONLY,
123
120
  },
124
121
  {
125
122
  name: 'list_assignments',
126
123
  description: 'The history of what ran: for whom, how it ended, how long it took. Newest first. ' +
127
124
  'Filter by agent, status or project when the question is about one of them.',
128
- inputSchema: {
129
- type: 'object',
130
- properties: {
131
- agent: str('Agent slug or name. Optional.'),
132
- status: str('Comma-separated statuses (pending, running, done, failed, cancelled). Optional.'),
133
- project: str('Project name or id. Optional.'),
134
- limit: { type: 'number', description: 'How many to return, 1 to 200. Default 20.' },
135
- },
136
- additionalProperties: false,
137
- },
125
+ inputSchema: objectSchema({
126
+ agent: str('Agent slug or name. Optional.'),
127
+ status: str('Comma-separated statuses (pending, running, done, failed, cancelled). Optional.'),
128
+ project: str('Project name or id. Optional.'),
129
+ limit: num('How many to return, 1 to 200. Default 20.'),
130
+ }),
138
131
  audience: ASSISTANT_ONLY,
139
132
  },
140
133
  {
@@ -144,12 +137,7 @@ export const ORG_TOOLS = [
144
137
  'and you are started again with the answer once it comes. After calling it, end your run with a ' +
145
138
  'short summary of where the work stands - do not keep working on a guess. Only inside a task; ' +
146
139
  '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
- },
140
+ inputSchema: objectSchema({ question: str('The question, self-contained: what you need to know and why.') }, ['question']),
153
141
  audience: ['agent'],
154
142
  },
155
143
  {
@@ -157,15 +145,10 @@ export const ORG_TOOLS = [
157
145
  description: 'Answer the question a task is waiting on. The answer goes on the card and the task runs again ' +
158
146
  'with it, as the same task. The assistant may answer any task; an agent only the tasks it handed ' +
159
147
  'out itself. Use task_activity first when you need to see what exactly was asked.',
160
- inputSchema: {
161
- type: 'object',
162
- properties: {
163
- id: str('Task id or prefix.'),
164
- answer: str('The answer, self-contained.'),
165
- },
166
- required: ['id', 'answer'],
167
- additionalProperties: false,
168
- },
148
+ inputSchema: objectSchema({
149
+ id: str('Task id or prefix.'),
150
+ answer: str('The answer, self-contained.'),
151
+ }, ['id', 'answer']),
169
152
  audience: BOTH,
170
153
  },
171
154
  {
@@ -174,15 +157,10 @@ export const ORG_TOOLS = [
174
157
  'on their settings, on their phone. Use it sparingly, for something they genuinely need to know ' +
175
158
  'that does not belong in your result - your result already reaches whoever asked for the work. ' +
176
159
  '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
- },
160
+ inputSchema: objectSchema({
161
+ title: str('One short line: what this is about.'),
162
+ body: str('The message itself. Say the thing and stop.'),
163
+ }, ['title', 'body']),
186
164
  audience: BOTH,
187
165
  // The assistant has `notify` and the conversation itself; only its board
188
166
  // watcher, which has neither, is offered this one.
@@ -192,12 +170,7 @@ export const ORG_TOOLS = [
192
170
  name: 'task_activity',
193
171
  description: "One task's activity, oldest first: its brief, every run and how it ended, questions and " +
194
172
  '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
- },
173
+ inputSchema: objectSchema({ id: str('Task id or prefix.') }, ['id']),
201
174
  audience: BOTH,
202
175
  },
203
176
  // ASSISTANT_ONLY on purpose: an agent that thinks something deserves the
@@ -210,19 +183,10 @@ export const ORG_TOOLS = [
210
183
  'conversation is running - a phone push, say. For something worth surfacing on its own, not ' +
211
184
  'for an ordinary answer inside a turn. urgency "high" breaks through quiet hours, so use it ' +
212
185
  'only when that is worth it.',
213
- inputSchema: {
214
- type: 'object',
215
- properties: {
216
- text: str('The message to send.'),
217
- urgency: {
218
- type: 'string',
219
- enum: ['normal', 'high'],
220
- description: 'Default normal. "high" breaks through quiet hours.',
221
- },
222
- },
223
- required: ['text'],
224
- additionalProperties: false,
225
- },
186
+ inputSchema: objectSchema({
187
+ text: str('The message to send.'),
188
+ urgency: oneOf(['normal', 'high'], 'Default normal. "high" breaks through quiet hours.'),
189
+ }, ['text']),
226
190
  audience: ASSISTANT_ONLY,
227
191
  },
228
192
  {
@@ -235,34 +199,26 @@ export const ORG_TOOLS = [
235
199
  'simply state and be corrected on. Offer two to four concrete options, each a choice you are ' +
236
200
  'ready to act on, and keep the labels short enough for a phone button. This call blocks; if ' +
237
201
  '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,
202
+ inputSchema: objectSchema({
203
+ header: str('Two or three words naming the decision, e.g. "Deploy target".'),
204
+ question: str('The question itself, one or two sentences.'),
205
+ options: {
206
+ type: 'array',
207
+ minItems: 2,
208
+ maxItems: 4,
209
+ description: 'Two to four answers to choose from.',
210
+ items: {
211
+ type: 'object',
212
+ properties: {
213
+ label: str('The button text. A few words.'),
214
+ description: str('One line of detail under the label. Optional.'),
256
215
  },
257
- },
258
- multiSelect: {
259
- type: 'boolean',
260
- description: 'Default false. True when several options may be picked at once.',
216
+ required: ['label'],
217
+ additionalProperties: false,
261
218
  },
262
219
  },
263
- required: ['header', 'question', 'options'],
264
- additionalProperties: false,
265
- },
220
+ multiSelect: bool('Default false. True when several options may be picked at once.'),
221
+ }, ['header', 'question', 'options']),
266
222
  audience: ASSISTANT_ONLY,
267
223
  needsPerson: true,
268
224
  },
@@ -271,12 +227,7 @@ export const ORG_TOOLS = [
271
227
  description: 'Open a skill: a written procedure for a particular kind of task. Takes a name from the list ' +
272
228
  'in your instructions or one that find_skill turned up. Returns the full instructions and the ' +
273
229
  'files that come with them. Open the matching skill before starting such a task, then follow it.',
274
- inputSchema: {
275
- type: 'object',
276
- properties: { name: str('The skill name from the list, or from a find_skill result.') },
277
- required: ['name'],
278
- additionalProperties: false,
279
- },
230
+ inputSchema: objectSchema({ name: str('The skill name from the list, or from a find_skill result.') }, ['name']),
280
231
  audience: BOTH,
281
232
  },
282
233
  // The shelf the instructions cannot carry. Hundreds of skills are installed
@@ -288,12 +239,7 @@ export const ORG_TOOLS = [
288
239
  'Use it when a task sounds like a procedure somebody has already written down - a file format, ' +
289
240
  'a framework, a tool, a kind of document. Returns names with their one-line description; open ' +
290
241
  '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
- },
242
+ inputSchema: objectSchema({ query: str('What the task is about, e.g. "pdf", "scroll animation", "vercel deploy".') }, ['query']),
297
243
  audience: BOTH,
298
244
  },
299
245
  // The other half of remembering. A memory records that something is true;
@@ -309,17 +255,12 @@ export const ORG_TOOLS = [
309
255
  'Writing over a skill you wrote earlier is how you improve one, so revise instead of ' +
310
256
  'inventing a second name for the same subject. Skills the user wrote are theirs and cannot ' +
311
257
  '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
- },
258
+ inputSchema: objectSchema({
259
+ name: str('Short name, lower case with dashes, e.g. release-checklist.'),
260
+ description: str('One line saying when this skill should be opened. It is all the index shows.'),
261
+ body: str('The instructions themselves, in Markdown. Steps someone can follow, not prose.'),
262
+ audience: str('assistant, agents or both. Default both.'),
263
+ }, ['name', 'description', 'body']),
323
264
  audience: BOTH,
324
265
  },
325
266
  {
@@ -327,7 +268,7 @@ export const ORG_TOOLS = [
327
268
  description: 'The tool hub: which MCP servers exist (computer control, browser, filesystem, GitHub, ' +
328
269
  'documentation, custom ones), whether they are on, and for whom. A server you switch on ' +
329
270
  'is attached as soon as you stop talking, and the turn carries on with it.',
330
- inputSchema: { type: 'object', properties: {}, additionalProperties: false },
271
+ inputSchema: objectSchema({}),
331
272
  audience: ASSISTANT_ONLY,
332
273
  },
333
274
  {
@@ -337,16 +278,11 @@ export const ORG_TOOLS = [
337
278
  'server you switch on for yourself is attached the moment this answer ends, and you get ' +
338
279
  'to go on working with it in the same turn, so switch it on and continue instead of ' +
339
280
  'asking the user to try again.',
340
- inputSchema: {
341
- type: 'object',
342
- properties: {
343
- id: str('Server id from tool_servers, e.g. playwright.'),
344
- enabled: { type: 'boolean', description: 'On or off.' },
345
- audience: str('assistant, agents or both. Optional.'),
346
- },
347
- required: ['id', 'enabled'],
348
- additionalProperties: false,
349
- },
281
+ inputSchema: objectSchema({
282
+ id: str('Server id from tool_servers, e.g. playwright.'),
283
+ enabled: bool('On or off.'),
284
+ audience: str('assistant, agents or both. Optional.'),
285
+ }, ['id', 'enabled']),
350
286
  audience: ASSISTANT_ONLY,
351
287
  },
352
288
  {
@@ -357,34 +293,25 @@ export const ORG_TOOLS = [
357
293
  'memory, generates a handover (or uses the one you pass), hires the successor with the ' +
358
294
  'name/title/instructions given, and carries over its team, manager and reports. Only call ' +
359
295
  'that after the user has approved the replacement agent_performance proposed.',
360
- inputSchema: {
361
- type: 'object',
362
- properties: {
363
- name: str('Display name, e.g. "Mara". With replaces set, must differ from the outgoing agent\'s name.'),
364
- title: str('Job title, e.g. "Backend Engineer".'),
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.'),
371
- slug: str('Short handle, lowercase with dashes. Derived from the name when omitted.'),
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.'),
375
- model: str('Model name for that provider. Optional.'),
376
- permission: {
377
- type: 'string',
378
- enum: ['chat', 'read', 'write', 'full'],
379
- description: 'What the agent may do on the machine. Optional; defaults to the company default.',
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.'),
384
- },
385
- required: ['name', 'title', 'instructions'],
386
- additionalProperties: false,
387
- },
296
+ inputSchema: objectSchema({
297
+ name: str('Display name, e.g. "Mara". With replaces set, must differ from the outgoing agent\'s name.'),
298
+ title: str('Job title, e.g. "Backend Engineer".'),
299
+ instructions: str('Standing instructions for the role, two to six sentences.'),
300
+ voice: str('Two to four sentences on HOW this person writes - never what they can do, which stays in ' +
301
+ "instructions. When the user described a voice, use it; when they said nothing, invent one " +
302
+ 'yourself that fits the role rather than leaving it out. With replaces set, write a new voice ' +
303
+ "- a successor's is never the outgoing agent's. Omit only when the user explicitly wants a " +
304
+ 'plain, colourless agent.'),
305
+ slug: str('Short handle, lowercase with dashes. Derived from the name when omitted.'),
306
+ team: str('Team name or id. Optional. Ignored when replaces is set (inherited instead).'),
307
+ manager: str('Manager agent slug. Omit for an agent reporting to you directly. Ignored when replaces is set.'),
308
+ provider: str(PROVIDER_HINT + ' Optional.'),
309
+ model: str('Model name for that provider. Optional.'),
310
+ permission: oneOf(PERMISSIONS, 'What the agent may do on the machine. Optional; defaults to the company default.'),
311
+ replaces: str('Slug of an agent to retire and replace with this one (stage 4). Their team, manager and ' +
312
+ 'reports pass to the successor; the outgoing slug is never freed. Optional.'),
313
+ handover: str('Override the auto-generated handover document for the successor, when replaces is set. Optional.'),
314
+ }, ['name', 'title', 'instructions']),
388
315
  audience: ASSISTANT_ONLY,
389
316
  },
390
317
  {
@@ -395,26 +322,21 @@ export const ORG_TOOLS = [
395
322
  'agent_performance) needs `reason` set to change its instructions - that reason is written ' +
396
323
  'to its personnel record as a reconfig, together with the before/after text, so the change ' +
397
324
  'stays accountable and reversible.',
398
- inputSchema: {
399
- type: 'object',
400
- properties: {
401
- agent: str('Agent slug or name.'),
402
- name: str('New display name. Optional.'),
403
- title: str('New job title. Optional.'),
404
- instructions: str('New standing instructions. Optional.'),
405
- team: str('Team name or id, or "none" to remove from its team. Optional.'),
406
- manager: str('Manager slug, or "assistant" to report to you directly. Optional.'),
407
- provider: str(PROVIDER_HINT + ' Optional.'),
408
- model: str('Optional.'),
409
- permission: { type: 'string', enum: ['chat', 'read', 'write', 'full'], description: 'Optional.' },
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.'),
414
- },
415
- required: ['agent'],
416
- additionalProperties: false,
417
- },
325
+ inputSchema: objectSchema({
326
+ agent: str('Agent slug or name.'),
327
+ name: str('New display name. Optional.'),
328
+ title: str('New job title. Optional.'),
329
+ instructions: str('New standing instructions. Optional.'),
330
+ team: str('Team name or id, or "none" to remove from its team. Optional.'),
331
+ manager: str('Manager slug, or "assistant" to report to you directly. Optional.'),
332
+ provider: str(PROVIDER_HINT + ' Optional.'),
333
+ model: str('Optional.'),
334
+ permission: oneOf(PERMISSIONS, 'Optional.'),
335
+ archived: bool('true retires the agent, false brings it back. Optional.'),
336
+ reason: str('Why the instructions are changing. Required to change instructions once the agent is at ' +
337
+ 'escalation stage 1 or higher; logged to the personnel record as a reconfig either way ' +
338
+ 'when instructions change and this is set.'),
339
+ }, ['agent']),
418
340
  audience: ASSISTANT_ONLY,
419
341
  },
420
342
  {
@@ -423,16 +345,11 @@ export const ORG_TOOLS = [
423
345
  'automatically after every run, but by hand: after the user disagreed with the automatic ' +
424
346
  'one, or for a run from before this existed. Upserts: a second call for the same run ' +
425
347
  '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
- },
348
+ inputSchema: objectSchema({
349
+ id: str('Run id or prefix.'),
350
+ overall: num('1 to 5. 5 as good as a good colleague would do it, 1 unusable or invented.'),
351
+ comment: str('One to three sentences on what was good or bad. Optional.'),
352
+ }, ['id', 'overall']),
436
353
  audience: ASSISTANT_ONLY,
437
354
  },
438
355
  {
@@ -441,28 +358,18 @@ export const ORG_TOOLS = [
441
358
  'rate, and its personnel record (notes, reconfigs, probation, replacement proposals). This ' +
442
359
  'is the "development conversation" tool - open it before deciding whether a weak run is a ' +
443
360
  '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
- },
361
+ inputSchema: objectSchema({ agent: str('Agent slug or name.') }, ['agent']),
450
362
  audience: ASSISTANT_ONLY,
451
363
  },
452
364
  {
453
365
  name: 'update_team',
454
366
  description: 'Rename a team, change its purpose, or name its lead.',
455
- inputSchema: {
456
- type: 'object',
457
- properties: {
458
- team: str('Team name or id.'),
459
- name: str('New name. Optional.'),
460
- purpose: str('New purpose. Optional.'),
461
- lead: str('Agent slug leading the team, or "none". Optional.'),
462
- },
463
- required: ['team'],
464
- additionalProperties: false,
465
- },
367
+ inputSchema: objectSchema({
368
+ team: str('Team name or id.'),
369
+ name: str('New name. Optional.'),
370
+ purpose: str('New purpose. Optional.'),
371
+ lead: str('Agent slug leading the team, or "none". Optional.'),
372
+ }, ['team']),
466
373
  audience: ASSISTANT_ONLY,
467
374
  },
468
375
  {
@@ -470,54 +377,36 @@ export const ORG_TOOLS = [
470
377
  description: 'Put a task on the company board without running it yet. Use this for work the user ' +
471
378
  'wants tracked, or for anything bigger than one quick hand-off. Then plan_task decides ' +
472
379
  'who does it and whether to split it, and run_task executes it.',
473
- inputSchema: {
474
- type: 'object',
475
- properties: {
476
- title: str(TITLE_RULE),
477
- description: str('Everything an agent needs to do the task: goal, constraints, files, definition of done.'),
478
- project: str('Project name or id. Optional.'),
479
- priority: { type: 'string', enum: ['low', 'normal', 'high'], description: 'Optional, default normal.' },
480
- assignee: str('Agent slug, when you already know who should do it. Optional.'),
481
- },
482
- required: ['title', 'description'],
483
- additionalProperties: false,
484
- },
380
+ inputSchema: objectSchema({
381
+ title: str(TITLE_RULE),
382
+ description: str('Everything an agent needs to do the task: goal, constraints, files, definition of done.'),
383
+ project: str('Project name or id. Optional.'),
384
+ priority: oneOf(TASK_PRIORITIES, 'Optional, default normal.'),
385
+ assignee: str('Agent slug, when you already know who should do it. Optional.'),
386
+ }, ['title', 'description']),
485
387
  audience: BOTH,
486
388
  },
487
389
  {
488
390
  name: 'list_tasks',
489
391
  description: 'The board: open, planned, running and recently finished tasks with their assignees.',
490
- inputSchema: {
491
- type: 'object',
492
- properties: {
493
- status: str('Comma-separated statuses to include (open, planned, running, blocked, done, failed, cancelled). Optional.'),
494
- },
495
- additionalProperties: false,
496
- },
392
+ inputSchema: objectSchema({
393
+ status: str('Comma-separated statuses to include (open, planned, running, blocked, done, failed, cancelled). Optional.'),
394
+ }),
497
395
  audience: BOTH,
498
396
  },
499
397
  {
500
398
  name: 'update_task',
501
399
  description: 'Edit a task: title, description, priority, assignee, or set its status by hand - done, ' +
502
400
  'cancelled, or blocked while it waits for an answer.',
503
- inputSchema: {
504
- type: 'object',
505
- properties: {
506
- id: str('Task id or prefix.'),
507
- title: str('Optional.'),
508
- description: str('Optional.'),
509
- priority: { type: 'string', enum: ['low', 'normal', 'high'], description: 'Optional.' },
510
- assignee: str('Agent slug, or "none". Optional.'),
511
- status: {
512
- type: 'string',
513
- enum: ['open', 'done', 'cancelled', 'blocked'],
514
- description: 'Optional. "blocked" means it waits for an answer.',
515
- },
516
- result: str('What was done, when closing by hand. Optional.'),
517
- },
518
- required: ['id'],
519
- additionalProperties: false,
520
- },
401
+ inputSchema: objectSchema({
402
+ id: str('Task id or prefix.'),
403
+ title: str('Optional.'),
404
+ description: str('Optional.'),
405
+ priority: oneOf(TASK_PRIORITIES, 'Optional.'),
406
+ assignee: str('Agent slug, or "none". Optional.'),
407
+ status: oneOf(['open', 'done', 'cancelled', 'blocked'], 'Optional. "blocked" means it waits for an answer.'),
408
+ result: str('What was done, when closing by hand. Optional.'),
409
+ }, ['id']),
521
410
  audience: BOTH,
522
411
  },
523
412
  {
@@ -526,15 +415,10 @@ export const ORG_TOOLS = [
526
415
  'dependencies. A planner reads the board and the org chart and proposes the plan; the ' +
527
416
  'subtasks are created on the board. Nothing runs yet. Returns the plan so you can adjust ' +
528
417
  'it with update_task before run_task.',
529
- inputSchema: {
530
- type: 'object',
531
- properties: {
532
- id: str('Task id or prefix.'),
533
- hint: str('Your own guidance for the planner, e.g. who should be involved or what not to split. Optional.'),
534
- },
535
- required: ['id'],
536
- additionalProperties: false,
537
- },
418
+ inputSchema: objectSchema({
419
+ id: str('Task id or prefix.'),
420
+ hint: str('Your own guidance for the planner, e.g. who should be involved or what not to split. Optional.'),
421
+ }, ['id']),
538
422
  audience: ASSISTANT_ONLY,
539
423
  },
540
424
  {
@@ -542,61 +426,41 @@ export const ORG_TOOLS = [
542
426
  description: 'Execute a task from the board and wait for the outcome. A task without a plan is planned ' +
543
427
  'first. Subtasks run in parallel in dependency order; their reports come back ' +
544
428
  'combined. This is the right tool for anything that should be tracked on the board.',
545
- inputSchema: {
546
- type: 'object',
547
- properties: { id: str('Task id or prefix.') },
548
- required: ['id'],
549
- additionalProperties: false,
550
- },
429
+ inputSchema: objectSchema({ id: str('Task id or prefix.') }, ['id']),
551
430
  audience: ASSISTANT_ONLY,
552
431
  },
553
432
  {
554
433
  name: 'create_team',
555
434
  description: 'Create a team. Agents can be placed in it when hired or later by the user.',
556
- inputSchema: {
557
- type: 'object',
558
- properties: {
559
- name: str('Team name.'),
560
- purpose: str('What the team is for. Optional.'),
561
- lead: str('Agent slug leading the team. Optional.'),
562
- },
563
- required: ['name'],
564
- additionalProperties: false,
565
- },
435
+ inputSchema: objectSchema({
436
+ name: str('Team name.'),
437
+ purpose: str('What the team is for. Optional.'),
438
+ lead: str('Agent slug leading the team. Optional.'),
439
+ }, ['name']),
566
440
  audience: ASSISTANT_ONLY,
567
441
  },
568
442
  {
569
443
  name: 'create_project',
570
444
  description: 'Create a project. With a path, work on it runs inside that directory; without one, ' +
571
445
  'agents work in the scratch workspace.',
572
- inputSchema: {
573
- type: 'object',
574
- properties: {
575
- name: str('Project name.'),
576
- description: str('What the project is. Optional.'),
577
- path: str('Absolute directory the project lives in. Optional.'),
578
- },
579
- required: ['name'],
580
- additionalProperties: false,
581
- },
446
+ inputSchema: objectSchema({
447
+ name: str('Project name.'),
448
+ description: str('What the project is. Optional.'),
449
+ path: str('Absolute directory the project lives in. Optional.'),
450
+ }, ['name']),
582
451
  audience: ASSISTANT_ONLY,
583
452
  },
584
453
  {
585
454
  name: 'update_project',
586
455
  description: 'Rename a project, change its description or directory, or archive it (archived projects ' +
587
456
  'disappear from the lists but keep their history). Only the fields given change.',
588
- inputSchema: {
589
- type: 'object',
590
- properties: {
591
- project: str('Project name or id.'),
592
- name: str('New name. Optional.'),
593
- description: str('New description. Optional.'),
594
- path: str('New absolute directory, or "none" to detach it. Optional.'),
595
- archived: { type: 'boolean', description: 'true archives the project, false restores it. Optional.' },
596
- },
597
- required: ['project'],
598
- additionalProperties: false,
599
- },
457
+ inputSchema: objectSchema({
458
+ project: str('Project name or id.'),
459
+ name: str('New name. Optional.'),
460
+ description: str('New description. Optional.'),
461
+ path: str('New absolute directory, or "none" to detach it. Optional.'),
462
+ archived: bool('true archives the project, false restores it. Optional.'),
463
+ }, ['project']),
600
464
  audience: ASSISTANT_ONLY,
601
465
  },
602
466
  {
@@ -604,12 +468,7 @@ export const ORG_TOOLS = [
604
468
  description: "The MCP servers listed in a project's own .mcp.json - the same file a person's own Claude " +
605
469
  'Code session in that folder would read - and whether they are trusted yet. An untrusted or ' +
606
470
  'changed file never starts its servers for a run. Call this before trust_project_mcp.',
607
- inputSchema: {
608
- type: 'object',
609
- properties: { project: str('Project name or id.') },
610
- required: ['project'],
611
- additionalProperties: false,
612
- },
471
+ inputSchema: objectSchema({ project: str('Project name or id.') }, ['project']),
613
472
  audience: ASSISTANT_ONLY,
614
473
  },
615
474
  {
@@ -619,22 +478,17 @@ export const ORG_TOOLS = [
619
478
  'own folder, so show the user the server list and command lines from project_mcp_servers ' +
620
479
  'before approving. A later edit to .mcp.json needs approving again; revoke turns the ' +
621
480
  'servers off again without touching the file.',
622
- inputSchema: {
623
- type: 'object',
624
- properties: {
625
- project: str('Project name or id.'),
626
- decision: { type: 'string', enum: ['approve', 'revoke'], description: 'approve or revoke.' },
627
- },
628
- required: ['project', 'decision'],
629
- additionalProperties: false,
630
- },
481
+ inputSchema: objectSchema({
482
+ project: str('Project name or id.'),
483
+ decision: oneOf(['approve', 'revoke'], 'approve or revoke.'),
484
+ }, ['project', 'decision']),
631
485
  audience: ASSISTANT_ONLY,
632
486
  },
633
487
  {
634
488
  name: 'list_schedules',
635
489
  description: 'Your schedules (cron jobs): standing orders that fire on a timetable while the server ' +
636
490
  'runs, each with its next and last run. Call it before changing or deleting one.',
637
- inputSchema: { type: 'object', properties: {}, additionalProperties: false },
491
+ inputSchema: objectSchema({}),
638
492
  audience: ASSISTANT_ONLY,
639
493
  },
640
494
  {
@@ -652,79 +506,53 @@ export const ORG_TOOLS = [
652
506
  '(every 30 minutes), "0 18 1 * *" (the 1st at 18:00), "30 15 11 9 *" with once=true ' +
653
507
  '(11 September 15:30, one time); aliases @hourly, @daily, @weekly, @monthly. Write the ' +
654
508
  'prompt for whoever runs it: self-contained, and say what the report should contain.',
655
- inputSchema: {
656
- type: 'object',
657
- properties: {
658
- name: str('Short name, e.g. "Morgenbriefing".'),
659
- schedule: str('Five-field cron expression or alias. Leave empty only when triggerMode is "event".'),
660
- prompt: str('What to do on each run, self-contained.'),
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.'),
672
- project: str('Project name or id the run belongs to. Optional.'),
673
- once: { type: 'boolean', description: 'Fire once, then switch the schedule off. Default false.' },
674
- enabled: { type: 'boolean', description: 'Default true.' },
675
- },
676
- required: ['name', 'prompt'],
677
- additionalProperties: false,
678
- },
509
+ inputSchema: objectSchema({
510
+ name: str('Short name, e.g. "Morgenbriefing".'),
511
+ schedule: str('Five-field cron expression or alias. Leave empty only when triggerMode is "event".'),
512
+ prompt: str('What to do on each run, self-contained.'),
513
+ triggerMode: str('"schedule" (default) puts it on the clock; "event" means no clock at all - it waits for ' +
514
+ 'a webhook call or a watched mailbox. An expression AND an event source together is the ' +
515
+ 'useful third case: the event is the fast path, the expression the backstop for the ' +
516
+ 'event that never arrived. Optional.'),
517
+ cooldownSeconds: num('How long it rests after a run before an event may start the next one, 0 to 86400. ' +
518
+ 'Events arriving during the rest are not lost - they collapse into one run at the end ' +
519
+ 'of it. Default 60. Optional.'),
520
+ agent: str('Agent slug or name to run it as their task. Omit to run it yourself.'),
521
+ project: str('Project name or id the run belongs to. Optional.'),
522
+ once: bool('Fire once, then switch the schedule off. Default false.'),
523
+ enabled: bool('Default true.'),
524
+ }, ['name', 'prompt']),
679
525
  audience: ASSISTANT_ONLY,
680
526
  },
681
527
  {
682
528
  name: 'update_schedule',
683
529
  description: 'Change a schedule: rename it, move it to another time, rewrite the prompt, hand it to ' +
684
530
  'an agent or take it back, switch it on or off. Only the fields you pass change.',
685
- inputSchema: {
686
- type: 'object',
687
- properties: {
688
- id: str('Schedule id, prefix, or exact name.'),
689
- name: str('Optional.'),
690
- schedule: str('New cron expression. Optional.'),
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
- },
697
- agent: str('Agent slug or name, or "assistant" to run it yourself. Optional.'),
698
- project: str('Project name or id, or "none". Optional.'),
699
- enabled: { type: 'boolean', description: 'Optional.' },
700
- once: { type: 'boolean', description: 'Optional.' },
701
- },
702
- required: ['id'],
703
- additionalProperties: false,
704
- },
531
+ inputSchema: objectSchema({
532
+ id: str('Schedule id, prefix, or exact name.'),
533
+ name: str('Optional.'),
534
+ schedule: str('New cron expression. Optional.'),
535
+ prompt: str('Optional.'),
536
+ triggerMode: str('"schedule" to put it on the clock, "event" to take it off. Optional.'),
537
+ cooldownSeconds: num('Rest between event runs, 0 to 86400. Optional.'),
538
+ agent: str('Agent slug or name, or "assistant" to run it yourself. Optional.'),
539
+ project: str('Project name or id, or "none". Optional.'),
540
+ enabled: bool('Optional.'),
541
+ once: bool('Optional.'),
542
+ }, ['id']),
705
543
  audience: ASSISTANT_ONLY,
706
544
  },
707
545
  {
708
546
  name: 'delete_schedule',
709
547
  description: 'Remove a schedule for good, with its run history. To pause it instead, update it with enabled=false.',
710
- inputSchema: {
711
- type: 'object',
712
- properties: { id: str('Schedule id, prefix, or exact name.') },
713
- required: ['id'],
714
- additionalProperties: false,
715
- },
548
+ inputSchema: objectSchema({ id: str('Schedule id, prefix, or exact name.') }, ['id']),
716
549
  audience: ASSISTANT_ONLY,
717
550
  },
718
551
  {
719
552
  name: 'run_schedule',
720
553
  description: 'Fire a schedule right now, in the background; returns at once. The result reaches the user as a ' +
721
554
  'notification and appears on the Schedules page when the run is over.',
722
- inputSchema: {
723
- type: 'object',
724
- properties: { id: str('Schedule id, prefix, or exact name.') },
725
- required: ['id'],
726
- additionalProperties: false,
727
- },
555
+ inputSchema: objectSchema({ id: str('Schedule id, prefix, or exact name.') }, ['id']),
728
556
  audience: ASSISTANT_ONLY,
729
557
  },
730
558
  {
@@ -745,29 +573,19 @@ export const ORG_TOOLS = [
745
573
  'is the memory of the user; an agent writes into its own working memory of its work. ' +
746
574
  'One self-contained sentence per call. Use it when you are told to remember something, or ' +
747
575
  'for something clearly worth keeping that the automatic extraction might miss.',
748
- inputSchema: {
749
- type: 'object',
750
- properties: {
751
- content: str('The memory, one self-contained sentence.'),
752
- kind: str('fact, preference, project or event. Default fact.'),
753
- tags: str('Comma-separated tags. Optional.'),
754
- importance: { type: 'number', description: '0 to 1, how much this should outrank others. Default 0.7.' },
755
- },
756
- required: ['content'],
757
- additionalProperties: false,
758
- },
576
+ inputSchema: objectSchema({
577
+ content: str('The memory, one self-contained sentence.'),
578
+ kind: str('fact, preference, project or event. Default fact.'),
579
+ tags: str('Comma-separated tags. Optional.'),
580
+ importance: num('0 to 1, how much this should outrank others. Default 0.7.'),
581
+ }, ['content']),
759
582
  audience: BOTH,
760
583
  },
761
584
  {
762
585
  name: 'forget',
763
586
  description: 'Retire a memory that is wrong or that the user wants gone. Find its id with search_memory ' +
764
587
  'first. The memory stops being recalled but stays auditable.',
765
- inputSchema: {
766
- type: 'object',
767
- properties: { id: str('Memory id or prefix.') },
768
- required: ['id'],
769
- additionalProperties: false,
770
- },
588
+ inputSchema: objectSchema({ id: str('Memory id or prefix.') }, ['id']),
771
589
  audience: ASSISTANT_ONLY,
772
590
  },
773
591
  {
@@ -775,14 +593,10 @@ export const ORG_TOOLS = [
775
593
  description: 'Search your long-term memory - for the assistant that is what it knows about the user, for ' +
776
594
  'an agent its own working memory. Without a query, the most important memories. Returns ids, ' +
777
595
  'so a wrong one can be passed to forget.',
778
- inputSchema: {
779
- type: 'object',
780
- properties: {
781
- query: str('What to look for. Optional.'),
782
- limit: { type: 'number', description: 'How many to return, 1 to 100. Default 20.' },
783
- },
784
- additionalProperties: false,
785
- },
596
+ inputSchema: objectSchema({
597
+ query: str('What to look for. Optional.'),
598
+ limit: num('How many to return, 1 to 100. Default 20.'),
599
+ }),
786
600
  audience: BOTH,
787
601
  },
788
602
  {
@@ -790,7 +604,7 @@ export const ORG_TOOLS = [
790
604
  description: 'The mailboxes Rookery watches, and the schedule each one fires. A listener holds one IMAP ' +
791
605
  'connection open and starts its schedule the moment mail arrives, which is what a schedule ' +
792
606
  'that polls every few minutes is for. Passwords are never shown, only whether one is set.',
793
- inputSchema: { type: 'object', properties: {}, additionalProperties: false },
607
+ inputSchema: objectSchema({}),
794
608
  audience: ASSISTANT_ONLY,
795
609
  },
796
610
  {
@@ -800,33 +614,23 @@ export const ORG_TOOLS = [
800
614
  'so the details can be checked first. Tell the user plainly that a password they type here ' +
801
615
  'stays in this conversation, and offer the Listeners settings page as the alternative - the ' +
802
616
  '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
- },
617
+ inputSchema: objectSchema({
618
+ id: str('Short name for the mailbox, e.g. "work". Runs record it as imap:<id>.'),
619
+ schedule: str('The schedule this mailbox fires: id, prefix, or exact name.'),
620
+ host: str('IMAP server, e.g. imap.fastmail.com.'),
621
+ port: num('Default 993. Optional.'),
622
+ secure: bool('TLS from the first byte (993). Default true.'),
623
+ user: str('Mailbox user, usually the address.'),
624
+ password: str('Mailbox password, or an app password where the provider wants one.'),
625
+ mailbox: str('Which mailbox to watch. Default INBOX.'),
626
+ enabled: bool('Default false when creating.'),
627
+ }, ['id']),
819
628
  audience: ASSISTANT_ONLY,
820
629
  },
821
630
  {
822
631
  name: 'remove_listener',
823
632
  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
- },
633
+ inputSchema: objectSchema({ id: str('The listener id.') }, ['id']),
830
634
  audience: ASSISTANT_ONLY,
831
635
  },
832
636
  {
@@ -835,15 +639,10 @@ export const ORG_TOOLS = [
835
639
  'and the previous URL stops working that second. Whoever holds the URL can start that one ' +
836
640
  'schedule and nothing else. Say it out loud only when the user asked for it: once said, it ' +
837
641
  '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
- },
642
+ inputSchema: objectSchema({
643
+ id: str('Schedule id, prefix, or exact name.'),
644
+ action: str('"create" to issue or rotate it, "remove" to take it away. Default create.'),
645
+ }, ['id']),
847
646
  audience: ASSISTANT_ONLY,
848
647
  },
849
648
  {
@@ -851,25 +650,21 @@ export const ORG_TOOLS = [
851
650
  description: 'The current settings you may change: default provider, model and effort for turns and ' +
852
651
  'runs, and the company limits (parallel runs, delegation depth, run ' +
853
652
  'timeout).',
854
- inputSchema: { type: 'object', properties: {}, additionalProperties: false },
653
+ inputSchema: objectSchema({}),
855
654
  audience: ASSISTANT_ONLY,
856
655
  },
857
656
  {
858
657
  name: 'update_settings',
859
658
  description: 'Change settings and persist them; they apply from the next turn or run. Only the ' +
860
659
  'fields given change. Do this when the user asks for it, or say what you changed and why.',
861
- inputSchema: {
862
- type: 'object',
863
- properties: {
864
- defaultProvider: str(PROVIDER_HINT + ' Optional.'),
865
- defaultModel: str('Model id, or "default" for the provider default. Optional.'),
866
- defaultEffort: str('low, medium, high, or "default". Optional.'),
867
- maxConcurrentAssignments: { type: 'number', description: 'Agent processes at the same time, 1 to 16. Optional.' },
868
- maxDelegationDepth: { type: 'number', description: 'How deep agents may delegate below you, 1 to 6. Optional.' },
869
- assignmentTimeoutMinutes: { type: 'number', description: 'Hard stop for one run, 1 to 600. Optional.' },
870
- },
871
- additionalProperties: false,
872
- },
660
+ inputSchema: objectSchema({
661
+ defaultProvider: str(PROVIDER_HINT + ' Optional.'),
662
+ defaultModel: str('Model id, or "default" for the provider default. Optional.'),
663
+ defaultEffort: str('low, medium, high, or "default". Optional.'),
664
+ maxConcurrentAssignments: num('Agent processes at the same time, 1 to 16. Optional.'),
665
+ maxDelegationDepth: num('How deep agents may delegate below you, 1 to 6. Optional.'),
666
+ assignmentTimeoutMinutes: num('Hard stop for one run, 1 to 600. Optional.'),
667
+ }),
873
668
  audience: ASSISTANT_ONLY,
874
669
  },
875
670
  ];