rookery-agent 0.1.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 (508) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +367 -0
  3. package/docs/migration.md +88 -0
  4. package/package.json +39 -0
  5. package/packages/cli/dist/commands/chat.d.ts +52 -0
  6. package/packages/cli/dist/commands/chat.d.ts.map +1 -0
  7. package/packages/cli/dist/commands/chat.js +107 -0
  8. package/packages/cli/dist/commands/chat.js.map +1 -0
  9. package/packages/cli/dist/commands/config.d.ts +12 -0
  10. package/packages/cli/dist/commands/config.d.ts.map +1 -0
  11. package/packages/cli/dist/commands/config.js +156 -0
  12. package/packages/cli/dist/commands/config.js.map +1 -0
  13. package/packages/cli/dist/commands/doctor.d.ts +12 -0
  14. package/packages/cli/dist/commands/doctor.d.ts.map +1 -0
  15. package/packages/cli/dist/commands/doctor.js +137 -0
  16. package/packages/cli/dist/commands/doctor.js.map +1 -0
  17. package/packages/cli/dist/commands/memory.d.ts +34 -0
  18. package/packages/cli/dist/commands/memory.d.ts.map +1 -0
  19. package/packages/cli/dist/commands/memory.js +133 -0
  20. package/packages/cli/dist/commands/memory.js.map +1 -0
  21. package/packages/cli/dist/commands/org.d.ts +93 -0
  22. package/packages/cli/dist/commands/org.d.ts.map +1 -0
  23. package/packages/cli/dist/commands/org.js +389 -0
  24. package/packages/cli/dist/commands/org.js.map +1 -0
  25. package/packages/cli/dist/commands/serve.d.ts +13 -0
  26. package/packages/cli/dist/commands/serve.d.ts.map +1 -0
  27. package/packages/cli/dist/commands/serve.js +100 -0
  28. package/packages/cli/dist/commands/serve.js.map +1 -0
  29. package/packages/cli/dist/commands/sessions.d.ts +18 -0
  30. package/packages/cli/dist/commands/sessions.d.ts.map +1 -0
  31. package/packages/cli/dist/commands/sessions.js +88 -0
  32. package/packages/cli/dist/commands/sessions.js.map +1 -0
  33. package/packages/cli/dist/commands/shared.d.ts +59 -0
  34. package/packages/cli/dist/commands/shared.d.ts.map +1 -0
  35. package/packages/cli/dist/commands/shared.js +230 -0
  36. package/packages/cli/dist/commands/shared.js.map +1 -0
  37. package/packages/cli/dist/commands/tasks.d.ts +62 -0
  38. package/packages/cli/dist/commands/tasks.d.ts.map +1 -0
  39. package/packages/cli/dist/commands/tasks.js +262 -0
  40. package/packages/cli/dist/commands/tasks.js.map +1 -0
  41. package/packages/cli/dist/commands/tools.d.ts +8 -0
  42. package/packages/cli/dist/commands/tools.d.ts.map +1 -0
  43. package/packages/cli/dist/commands/tools.js +65 -0
  44. package/packages/cli/dist/commands/tools.js.map +1 -0
  45. package/packages/cli/dist/index.d.ts +15 -0
  46. package/packages/cli/dist/index.d.ts.map +1 -0
  47. package/packages/cli/dist/index.js +513 -0
  48. package/packages/cli/dist/index.js.map +1 -0
  49. package/packages/cli/dist/repl.d.ts +29 -0
  50. package/packages/cli/dist/repl.d.ts.map +1 -0
  51. package/packages/cli/dist/repl.js +634 -0
  52. package/packages/cli/dist/repl.js.map +1 -0
  53. package/packages/cli/dist/tui/App.d.ts +51 -0
  54. package/packages/cli/dist/tui/App.d.ts.map +1 -0
  55. package/packages/cli/dist/tui/App.js +461 -0
  56. package/packages/cli/dist/tui/App.js.map +1 -0
  57. package/packages/cli/dist/tui/commands.d.ts +34 -0
  58. package/packages/cli/dist/tui/commands.d.ts.map +1 -0
  59. package/packages/cli/dist/tui/commands.js +367 -0
  60. package/packages/cli/dist/tui/commands.js.map +1 -0
  61. package/packages/cli/dist/tui/components/ActivityLine.d.ts +16 -0
  62. package/packages/cli/dist/tui/components/ActivityLine.d.ts.map +1 -0
  63. package/packages/cli/dist/tui/components/ActivityLine.js +7 -0
  64. package/packages/cli/dist/tui/components/ActivityLine.js.map +1 -0
  65. package/packages/cli/dist/tui/components/AssignmentsView.d.ts +31 -0
  66. package/packages/cli/dist/tui/components/AssignmentsView.d.ts.map +1 -0
  67. package/packages/cli/dist/tui/components/AssignmentsView.js +79 -0
  68. package/packages/cli/dist/tui/components/AssignmentsView.js.map +1 -0
  69. package/packages/cli/dist/tui/components/Banner.d.ts +18 -0
  70. package/packages/cli/dist/tui/components/Banner.d.ts.map +1 -0
  71. package/packages/cli/dist/tui/components/Banner.js +16 -0
  72. package/packages/cli/dist/tui/components/Banner.js.map +1 -0
  73. package/packages/cli/dist/tui/components/CodeBlock.d.ts +19 -0
  74. package/packages/cli/dist/tui/components/CodeBlock.d.ts.map +1 -0
  75. package/packages/cli/dist/tui/components/CodeBlock.js +21 -0
  76. package/packages/cli/dist/tui/components/CodeBlock.js.map +1 -0
  77. package/packages/cli/dist/tui/components/InputBox.d.ts +25 -0
  78. package/packages/cli/dist/tui/components/InputBox.d.ts.map +1 -0
  79. package/packages/cli/dist/tui/components/InputBox.js +35 -0
  80. package/packages/cli/dist/tui/components/InputBox.js.map +1 -0
  81. package/packages/cli/dist/tui/components/Markdown.d.ts +74 -0
  82. package/packages/cli/dist/tui/components/Markdown.d.ts.map +1 -0
  83. package/packages/cli/dist/tui/components/Markdown.js +293 -0
  84. package/packages/cli/dist/tui/components/Markdown.js.map +1 -0
  85. package/packages/cli/dist/tui/components/Message.d.ts +29 -0
  86. package/packages/cli/dist/tui/components/Message.d.ts.map +1 -0
  87. package/packages/cli/dist/tui/components/Message.js +28 -0
  88. package/packages/cli/dist/tui/components/Message.js.map +1 -0
  89. package/packages/cli/dist/tui/components/Scrollback.d.ts +23 -0
  90. package/packages/cli/dist/tui/components/Scrollback.d.ts.map +1 -0
  91. package/packages/cli/dist/tui/components/Scrollback.js +36 -0
  92. package/packages/cli/dist/tui/components/Scrollback.js.map +1 -0
  93. package/packages/cli/dist/tui/components/SlashPalette.d.ts +17 -0
  94. package/packages/cli/dist/tui/components/SlashPalette.d.ts.map +1 -0
  95. package/packages/cli/dist/tui/components/SlashPalette.js +19 -0
  96. package/packages/cli/dist/tui/components/SlashPalette.js.map +1 -0
  97. package/packages/cli/dist/tui/components/StatusLine.d.ts +61 -0
  98. package/packages/cli/dist/tui/components/StatusLine.d.ts.map +1 -0
  99. package/packages/cli/dist/tui/components/StatusLine.js +55 -0
  100. package/packages/cli/dist/tui/components/StatusLine.js.map +1 -0
  101. package/packages/cli/dist/tui/components/ToolGroup.d.ts +33 -0
  102. package/packages/cli/dist/tui/components/ToolGroup.d.ts.map +1 -0
  103. package/packages/cli/dist/tui/components/ToolGroup.js +52 -0
  104. package/packages/cli/dist/tui/components/ToolGroup.js.map +1 -0
  105. package/packages/cli/dist/tui/components/Wordmark.d.ts +35 -0
  106. package/packages/cli/dist/tui/components/Wordmark.d.ts.map +1 -0
  107. package/packages/cli/dist/tui/components/Wordmark.js +81 -0
  108. package/packages/cli/dist/tui/components/Wordmark.js.map +1 -0
  109. package/packages/cli/dist/tui/highlight.d.ts +29 -0
  110. package/packages/cli/dist/tui/highlight.d.ts.map +1 -0
  111. package/packages/cli/dist/tui/highlight.js +137 -0
  112. package/packages/cli/dist/tui/highlight.js.map +1 -0
  113. package/packages/cli/dist/tui/hooks/useColumns.d.ts +20 -0
  114. package/packages/cli/dist/tui/hooks/useColumns.d.ts.map +1 -0
  115. package/packages/cli/dist/tui/hooks/useColumns.js +38 -0
  116. package/packages/cli/dist/tui/hooks/useColumns.js.map +1 -0
  117. package/packages/cli/dist/tui/hooks/useHistory.d.ts +21 -0
  118. package/packages/cli/dist/tui/hooks/useHistory.d.ts.map +1 -0
  119. package/packages/cli/dist/tui/hooks/useHistory.js +57 -0
  120. package/packages/cli/dist/tui/hooks/useHistory.js.map +1 -0
  121. package/packages/cli/dist/tui/hooks/useSlash.d.ts +38 -0
  122. package/packages/cli/dist/tui/hooks/useSlash.d.ts.map +1 -0
  123. package/packages/cli/dist/tui/hooks/useSlash.js +89 -0
  124. package/packages/cli/dist/tui/hooks/useSlash.js.map +1 -0
  125. package/packages/cli/dist/tui/hooks/useTurn.d.ts +75 -0
  126. package/packages/cli/dist/tui/hooks/useTurn.d.ts.map +1 -0
  127. package/packages/cli/dist/tui/hooks/useTurn.js +396 -0
  128. package/packages/cli/dist/tui/hooks/useTurn.js.map +1 -0
  129. package/packages/cli/dist/tui/theme.d.ts +126 -0
  130. package/packages/cli/dist/tui/theme.d.ts.map +1 -0
  131. package/packages/cli/dist/tui/theme.js +127 -0
  132. package/packages/cli/dist/tui/theme.js.map +1 -0
  133. package/packages/cli/dist/tui/types.d.ts +205 -0
  134. package/packages/cli/dist/tui/types.d.ts.map +1 -0
  135. package/packages/cli/dist/tui/types.js +55 -0
  136. package/packages/cli/dist/tui/types.js.map +1 -0
  137. package/packages/cli/dist/ui/render.d.ts +74 -0
  138. package/packages/cli/dist/ui/render.d.ts.map +1 -0
  139. package/packages/cli/dist/ui/render.js +349 -0
  140. package/packages/cli/dist/ui/render.js.map +1 -0
  141. package/packages/cli/dist/ui/speech.d.ts +42 -0
  142. package/packages/cli/dist/ui/speech.d.ts.map +1 -0
  143. package/packages/cli/dist/ui/speech.js +257 -0
  144. package/packages/cli/dist/ui/speech.js.map +1 -0
  145. package/packages/cli/dist/ui/spinner.d.ts +17 -0
  146. package/packages/cli/dist/ui/spinner.d.ts.map +1 -0
  147. package/packages/cli/dist/ui/spinner.js +61 -0
  148. package/packages/cli/dist/ui/spinner.js.map +1 -0
  149. package/packages/cli/dist/ui/theme.d.ts +54 -0
  150. package/packages/cli/dist/ui/theme.d.ts.map +1 -0
  151. package/packages/cli/dist/ui/theme.js +74 -0
  152. package/packages/cli/dist/ui/theme.js.map +1 -0
  153. package/packages/cli/package.json +1 -0
  154. package/packages/core/dist/agents/legacy-persona.d.ts +4 -0
  155. package/packages/core/dist/agents/legacy-persona.d.ts.map +1 -0
  156. package/packages/core/dist/agents/legacy-persona.js +39 -0
  157. package/packages/core/dist/agents/legacy-persona.js.map +1 -0
  158. package/packages/core/dist/agents/orchestrator.d.ts +24 -0
  159. package/packages/core/dist/agents/orchestrator.d.ts.map +1 -0
  160. package/packages/core/dist/agents/orchestrator.js +88 -0
  161. package/packages/core/dist/agents/orchestrator.js.map +1 -0
  162. package/packages/core/dist/agents/persona.d.ts +56 -0
  163. package/packages/core/dist/agents/persona.d.ts.map +1 -0
  164. package/packages/core/dist/agents/persona.js +153 -0
  165. package/packages/core/dist/agents/persona.js.map +1 -0
  166. package/packages/core/dist/agents/roles.d.ts +21 -0
  167. package/packages/core/dist/agents/roles.d.ts.map +1 -0
  168. package/packages/core/dist/agents/roles.js +81 -0
  169. package/packages/core/dist/agents/roles.js.map +1 -0
  170. package/packages/core/dist/agents/team.d.ts +105 -0
  171. package/packages/core/dist/agents/team.d.ts.map +1 -0
  172. package/packages/core/dist/agents/team.js +623 -0
  173. package/packages/core/dist/agents/team.js.map +1 -0
  174. package/packages/core/dist/computer/keys.d.ts +12 -0
  175. package/packages/core/dist/computer/keys.d.ts.map +1 -0
  176. package/packages/core/dist/computer/keys.js +56 -0
  177. package/packages/core/dist/computer/keys.js.map +1 -0
  178. package/packages/core/dist/computer/mcp-server.d.ts +11 -0
  179. package/packages/core/dist/computer/mcp-server.d.ts.map +1 -0
  180. package/packages/core/dist/computer/mcp-server.js +228 -0
  181. package/packages/core/dist/computer/mcp-server.js.map +1 -0
  182. package/packages/core/dist/computer/powershell.d.ts +13 -0
  183. package/packages/core/dist/computer/powershell.d.ts.map +1 -0
  184. package/packages/core/dist/computer/powershell.js +359 -0
  185. package/packages/core/dist/computer/powershell.js.map +1 -0
  186. package/packages/core/dist/computer/tools.d.ts +43 -0
  187. package/packages/core/dist/computer/tools.d.ts.map +1 -0
  188. package/packages/core/dist/computer/tools.js +260 -0
  189. package/packages/core/dist/computer/tools.js.map +1 -0
  190. package/packages/core/dist/config.d.ts +32 -0
  191. package/packages/core/dist/config.d.ts.map +1 -0
  192. package/packages/core/dist/config.js +329 -0
  193. package/packages/core/dist/config.js.map +1 -0
  194. package/packages/core/dist/cron/parse.d.ts +52 -0
  195. package/packages/core/dist/cron/parse.d.ts.map +1 -0
  196. package/packages/core/dist/cron/parse.js +277 -0
  197. package/packages/core/dist/cron/parse.js.map +1 -0
  198. package/packages/core/dist/cron/scheduler.d.ts +102 -0
  199. package/packages/core/dist/cron/scheduler.d.ts.map +1 -0
  200. package/packages/core/dist/cron/scheduler.js +334 -0
  201. package/packages/core/dist/cron/scheduler.js.map +1 -0
  202. package/packages/core/dist/cron/script.d.ts +9 -0
  203. package/packages/core/dist/cron/script.d.ts.map +1 -0
  204. package/packages/core/dist/cron/script.js +113 -0
  205. package/packages/core/dist/cron/script.js.map +1 -0
  206. package/packages/core/dist/cron/store.d.ts +77 -0
  207. package/packages/core/dist/cron/store.d.ts.map +1 -0
  208. package/packages/core/dist/cron/store.js +229 -0
  209. package/packages/core/dist/cron/store.js.map +1 -0
  210. package/packages/core/dist/gateway/policy.d.ts +113 -0
  211. package/packages/core/dist/gateway/policy.d.ts.map +1 -0
  212. package/packages/core/dist/gateway/policy.js +373 -0
  213. package/packages/core/dist/gateway/policy.js.map +1 -0
  214. package/packages/core/dist/index.d.ts +45 -0
  215. package/packages/core/dist/index.d.ts.map +1 -0
  216. package/packages/core/dist/index.js +52 -0
  217. package/packages/core/dist/index.js.map +1 -0
  218. package/packages/core/dist/logger.d.ts +21 -0
  219. package/packages/core/dist/logger.d.ts.map +1 -0
  220. package/packages/core/dist/logger.js +61 -0
  221. package/packages/core/dist/logger.js.map +1 -0
  222. package/packages/core/dist/memory/db.d.ts +12 -0
  223. package/packages/core/dist/memory/db.d.ts.map +1 -0
  224. package/packages/core/dist/memory/db.js +414 -0
  225. package/packages/core/dist/memory/db.js.map +1 -0
  226. package/packages/core/dist/memory/extractor.d.ts +35 -0
  227. package/packages/core/dist/memory/extractor.d.ts.map +1 -0
  228. package/packages/core/dist/memory/extractor.js +159 -0
  229. package/packages/core/dist/memory/extractor.js.map +1 -0
  230. package/packages/core/dist/memory/gate.d.ts +68 -0
  231. package/packages/core/dist/memory/gate.d.ts.map +1 -0
  232. package/packages/core/dist/memory/gate.js +163 -0
  233. package/packages/core/dist/memory/gate.js.map +1 -0
  234. package/packages/core/dist/memory/recall.d.ts +61 -0
  235. package/packages/core/dist/memory/recall.d.ts.map +1 -0
  236. package/packages/core/dist/memory/recall.js +342 -0
  237. package/packages/core/dist/memory/recall.js.map +1 -0
  238. package/packages/core/dist/memory/sleep.d.ts +105 -0
  239. package/packages/core/dist/memory/sleep.d.ts.map +1 -0
  240. package/packages/core/dist/memory/sleep.js +888 -0
  241. package/packages/core/dist/memory/sleep.js.map +1 -0
  242. package/packages/core/dist/memory/store.d.ts +263 -0
  243. package/packages/core/dist/memory/store.d.ts.map +1 -0
  244. package/packages/core/dist/memory/store.js +999 -0
  245. package/packages/core/dist/memory/store.js.map +1 -0
  246. package/packages/core/dist/migration-cron.d.ts +37 -0
  247. package/packages/core/dist/migration-cron.d.ts.map +1 -0
  248. package/packages/core/dist/migration-cron.js +257 -0
  249. package/packages/core/dist/migration-cron.js.map +1 -0
  250. package/packages/core/dist/migration-scripts.d.ts +15 -0
  251. package/packages/core/dist/migration-scripts.d.ts.map +1 -0
  252. package/packages/core/dist/migration-scripts.js +97 -0
  253. package/packages/core/dist/migration-scripts.js.map +1 -0
  254. package/packages/core/dist/migration.d.ts +33 -0
  255. package/packages/core/dist/migration.d.ts.map +1 -0
  256. package/packages/core/dist/migration.js +296 -0
  257. package/packages/core/dist/migration.js.map +1 -0
  258. package/packages/core/dist/org/bridge.d.ts +42 -0
  259. package/packages/core/dist/org/bridge.d.ts.map +1 -0
  260. package/packages/core/dist/org/bridge.js +139 -0
  261. package/packages/core/dist/org/bridge.js.map +1 -0
  262. package/packages/core/dist/org/controller.d.ts +118 -0
  263. package/packages/core/dist/org/controller.d.ts.map +1 -0
  264. package/packages/core/dist/org/controller.js +1431 -0
  265. package/packages/core/dist/org/controller.js.map +1 -0
  266. package/packages/core/dist/org/mcp-bridge.d.ts +11 -0
  267. package/packages/core/dist/org/mcp-bridge.d.ts.map +1 -0
  268. package/packages/core/dist/org/mcp-bridge.js +148 -0
  269. package/packages/core/dist/org/mcp-bridge.js.map +1 -0
  270. package/packages/core/dist/org/planner.d.ts +60 -0
  271. package/packages/core/dist/org/planner.d.ts.map +1 -0
  272. package/packages/core/dist/org/planner.js +175 -0
  273. package/packages/core/dist/org/planner.js.map +1 -0
  274. package/packages/core/dist/org/ponytail.d.ts +24 -0
  275. package/packages/core/dist/org/ponytail.d.ts.map +1 -0
  276. package/packages/core/dist/org/ponytail.js +53 -0
  277. package/packages/core/dist/org/ponytail.js.map +1 -0
  278. package/packages/core/dist/org/project-mcp.d.ts +32 -0
  279. package/packages/core/dist/org/project-mcp.d.ts.map +1 -0
  280. package/packages/core/dist/org/project-mcp.js +53 -0
  281. package/packages/core/dist/org/project-mcp.js.map +1 -0
  282. package/packages/core/dist/org/prompts.d.ts +71 -0
  283. package/packages/core/dist/org/prompts.d.ts.map +1 -0
  284. package/packages/core/dist/org/prompts.js +268 -0
  285. package/packages/core/dist/org/prompts.js.map +1 -0
  286. package/packages/core/dist/org/store.d.ts +176 -0
  287. package/packages/core/dist/org/store.d.ts.map +1 -0
  288. package/packages/core/dist/org/store.js +594 -0
  289. package/packages/core/dist/org/store.js.map +1 -0
  290. package/packages/core/dist/org/tools.d.ts +22 -0
  291. package/packages/core/dist/org/tools.d.ts.map +1 -0
  292. package/packages/core/dist/org/tools.js +578 -0
  293. package/packages/core/dist/org/tools.js.map +1 -0
  294. package/packages/core/dist/profile.d.ts +16 -0
  295. package/packages/core/dist/profile.d.ts.map +1 -0
  296. package/packages/core/dist/profile.js +176 -0
  297. package/packages/core/dist/profile.js.map +1 -0
  298. package/packages/core/dist/providers/catalogue.d.ts +6 -0
  299. package/packages/core/dist/providers/catalogue.d.ts.map +1 -0
  300. package/packages/core/dist/providers/catalogue.js +104 -0
  301. package/packages/core/dist/providers/catalogue.js.map +1 -0
  302. package/packages/core/dist/providers/claude-code.d.ts +10 -0
  303. package/packages/core/dist/providers/claude-code.d.ts.map +1 -0
  304. package/packages/core/dist/providers/claude-code.js +321 -0
  305. package/packages/core/dist/providers/claude-code.js.map +1 -0
  306. package/packages/core/dist/providers/codex.d.ts +10 -0
  307. package/packages/core/dist/providers/codex.d.ts.map +1 -0
  308. package/packages/core/dist/providers/codex.js +375 -0
  309. package/packages/core/dist/providers/codex.js.map +1 -0
  310. package/packages/core/dist/providers/process.d.ts +48 -0
  311. package/packages/core/dist/providers/process.d.ts.map +1 -0
  312. package/packages/core/dist/providers/process.js +165 -0
  313. package/packages/core/dist/providers/process.js.map +1 -0
  314. package/packages/core/dist/providers/quota.d.ts +13 -0
  315. package/packages/core/dist/providers/quota.d.ts.map +1 -0
  316. package/packages/core/dist/providers/quota.js +231 -0
  317. package/packages/core/dist/providers/quota.js.map +1 -0
  318. package/packages/core/dist/providers/registry.d.ts +27 -0
  319. package/packages/core/dist/providers/registry.d.ts.map +1 -0
  320. package/packages/core/dist/providers/registry.js +64 -0
  321. package/packages/core/dist/providers/registry.js.map +1 -0
  322. package/packages/core/dist/runtime.d.ts +149 -0
  323. package/packages/core/dist/runtime.d.ts.map +1 -0
  324. package/packages/core/dist/runtime.js +778 -0
  325. package/packages/core/dist/runtime.js.map +1 -0
  326. package/packages/core/dist/skills/import.d.ts +41 -0
  327. package/packages/core/dist/skills/import.d.ts.map +1 -0
  328. package/packages/core/dist/skills/import.js +129 -0
  329. package/packages/core/dist/skills/import.js.map +1 -0
  330. package/packages/core/dist/skills/store.d.ts +57 -0
  331. package/packages/core/dist/skills/store.d.ts.map +1 -0
  332. package/packages/core/dist/skills/store.js +126 -0
  333. package/packages/core/dist/skills/store.js.map +1 -0
  334. package/packages/core/dist/tools/browser.d.ts +20 -0
  335. package/packages/core/dist/tools/browser.d.ts.map +1 -0
  336. package/packages/core/dist/tools/browser.js +72 -0
  337. package/packages/core/dist/tools/browser.js.map +1 -0
  338. package/packages/core/dist/tools/catalog.d.ts +67 -0
  339. package/packages/core/dist/tools/catalog.d.ts.map +1 -0
  340. package/packages/core/dist/tools/catalog.js +233 -0
  341. package/packages/core/dist/tools/catalog.js.map +1 -0
  342. package/packages/core/dist/tools/hub.d.ts +68 -0
  343. package/packages/core/dist/tools/hub.d.ts.map +1 -0
  344. package/packages/core/dist/tools/hub.js +213 -0
  345. package/packages/core/dist/tools/hub.js.map +1 -0
  346. package/packages/core/dist/types.d.ts +1031 -0
  347. package/packages/core/dist/types.d.ts.map +1 -0
  348. package/packages/core/dist/types.js +22 -0
  349. package/packages/core/dist/types.js.map +1 -0
  350. package/packages/core/dist/util/queue.d.ts +25 -0
  351. package/packages/core/dist/util/queue.d.ts.map +1 -0
  352. package/packages/core/dist/util/queue.js +64 -0
  353. package/packages/core/dist/util/queue.js.map +1 -0
  354. package/packages/core/package.json +1 -0
  355. package/packages/server/dist/auth.d.ts +12 -0
  356. package/packages/server/dist/auth.d.ts.map +1 -0
  357. package/packages/server/dist/auth.js +61 -0
  358. package/packages/server/dist/auth.js.map +1 -0
  359. package/packages/server/dist/context.d.ts +29 -0
  360. package/packages/server/dist/context.d.ts.map +1 -0
  361. package/packages/server/dist/context.js +46 -0
  362. package/packages/server/dist/context.js.map +1 -0
  363. package/packages/server/dist/env.d.ts +8 -0
  364. package/packages/server/dist/env.d.ts.map +1 -0
  365. package/packages/server/dist/env.js +36 -0
  366. package/packages/server/dist/env.js.map +1 -0
  367. package/packages/server/dist/gateways/push.d.ts +22 -0
  368. package/packages/server/dist/gateways/push.d.ts.map +1 -0
  369. package/packages/server/dist/gateways/push.js +267 -0
  370. package/packages/server/dist/gateways/push.js.map +1 -0
  371. package/packages/server/dist/gateways/telegram-api.d.ts +82 -0
  372. package/packages/server/dist/gateways/telegram-api.d.ts.map +1 -0
  373. package/packages/server/dist/gateways/telegram-api.js +168 -0
  374. package/packages/server/dist/gateways/telegram-api.js.map +1 -0
  375. package/packages/server/dist/gateways/telegram.d.ts +32 -0
  376. package/packages/server/dist/gateways/telegram.d.ts.map +1 -0
  377. package/packages/server/dist/gateways/telegram.js +583 -0
  378. package/packages/server/dist/gateways/telegram.js.map +1 -0
  379. package/packages/server/dist/index.d.ts +12 -0
  380. package/packages/server/dist/index.d.ts.map +1 -0
  381. package/packages/server/dist/index.js +12 -0
  382. package/packages/server/dist/index.js.map +1 -0
  383. package/packages/server/dist/main.d.ts +2 -0
  384. package/packages/server/dist/main.d.ts.map +1 -0
  385. package/packages/server/dist/main.js +74 -0
  386. package/packages/server/dist/main.js.map +1 -0
  387. package/packages/server/dist/routes/agents.d.ts +5 -0
  388. package/packages/server/dist/routes/agents.d.ts.map +1 -0
  389. package/packages/server/dist/routes/agents.js +6 -0
  390. package/packages/server/dist/routes/agents.js.map +1 -0
  391. package/packages/server/dist/routes/chat.d.ts +10 -0
  392. package/packages/server/dist/routes/chat.d.ts.map +1 -0
  393. package/packages/server/dist/routes/chat.js +36 -0
  394. package/packages/server/dist/routes/chat.js.map +1 -0
  395. package/packages/server/dist/routes/config.d.ts +4 -0
  396. package/packages/server/dist/routes/config.d.ts.map +1 -0
  397. package/packages/server/dist/routes/config.js +58 -0
  398. package/packages/server/dist/routes/config.js.map +1 -0
  399. package/packages/server/dist/routes/cron.d.ts +10 -0
  400. package/packages/server/dist/routes/cron.d.ts.map +1 -0
  401. package/packages/server/dist/routes/cron.js +128 -0
  402. package/packages/server/dist/routes/cron.js.map +1 -0
  403. package/packages/server/dist/routes/gateways.d.ts +10 -0
  404. package/packages/server/dist/routes/gateways.d.ts.map +1 -0
  405. package/packages/server/dist/routes/gateways.js +32 -0
  406. package/packages/server/dist/routes/gateways.js.map +1 -0
  407. package/packages/server/dist/routes/health.d.ts +8 -0
  408. package/packages/server/dist/routes/health.d.ts.map +1 -0
  409. package/packages/server/dist/routes/health.js +12 -0
  410. package/packages/server/dist/routes/health.js.map +1 -0
  411. package/packages/server/dist/routes/memories.d.ts +11 -0
  412. package/packages/server/dist/routes/memories.d.ts.map +1 -0
  413. package/packages/server/dist/routes/memories.js +134 -0
  414. package/packages/server/dist/routes/memories.js.map +1 -0
  415. package/packages/server/dist/routes/org.d.ts +13 -0
  416. package/packages/server/dist/routes/org.d.ts.map +1 -0
  417. package/packages/server/dist/routes/org.js +316 -0
  418. package/packages/server/dist/routes/org.js.map +1 -0
  419. package/packages/server/dist/routes/profile.d.ts +4 -0
  420. package/packages/server/dist/routes/profile.d.ts.map +1 -0
  421. package/packages/server/dist/routes/profile.js +51 -0
  422. package/packages/server/dist/routes/profile.js.map +1 -0
  423. package/packages/server/dist/routes/providers.d.ts +9 -0
  424. package/packages/server/dist/routes/providers.d.ts.map +1 -0
  425. package/packages/server/dist/routes/providers.js +41 -0
  426. package/packages/server/dist/routes/providers.js.map +1 -0
  427. package/packages/server/dist/routes/sessions.d.ts +9 -0
  428. package/packages/server/dist/routes/sessions.d.ts.map +1 -0
  429. package/packages/server/dist/routes/sessions.js +72 -0
  430. package/packages/server/dist/routes/sessions.js.map +1 -0
  431. package/packages/server/dist/routes/sleep.d.ts +12 -0
  432. package/packages/server/dist/routes/sleep.d.ts.map +1 -0
  433. package/packages/server/dist/routes/sleep.js +70 -0
  434. package/packages/server/dist/routes/sleep.js.map +1 -0
  435. package/packages/server/dist/routes/stats.d.ts +17 -0
  436. package/packages/server/dist/routes/stats.d.ts.map +1 -0
  437. package/packages/server/dist/routes/stats.js +57 -0
  438. package/packages/server/dist/routes/stats.js.map +1 -0
  439. package/packages/server/dist/routes/team.d.ts +11 -0
  440. package/packages/server/dist/routes/team.d.ts.map +1 -0
  441. package/packages/server/dist/routes/team.js +36 -0
  442. package/packages/server/dist/routes/team.js.map +1 -0
  443. package/packages/server/dist/routes/tools.d.ts +10 -0
  444. package/packages/server/dist/routes/tools.d.ts.map +1 -0
  445. package/packages/server/dist/routes/tools.js +128 -0
  446. package/packages/server/dist/routes/tools.js.map +1 -0
  447. package/packages/server/dist/routes/tts.d.ts +12 -0
  448. package/packages/server/dist/routes/tts.d.ts.map +1 -0
  449. package/packages/server/dist/routes/tts.js +38 -0
  450. package/packages/server/dist/routes/tts.js.map +1 -0
  451. package/packages/server/dist/routes/ws.d.ts +13 -0
  452. package/packages/server/dist/routes/ws.d.ts.map +1 -0
  453. package/packages/server/dist/routes/ws.js +96 -0
  454. package/packages/server/dist/routes/ws.js.map +1 -0
  455. package/packages/server/dist/schemas.d.ts +981 -0
  456. package/packages/server/dist/schemas.d.ts.map +1 -0
  457. package/packages/server/dist/schemas.js +339 -0
  458. package/packages/server/dist/schemas.js.map +1 -0
  459. package/packages/server/dist/server.d.ts +20 -0
  460. package/packages/server/dist/server.d.ts.map +1 -0
  461. package/packages/server/dist/server.js +234 -0
  462. package/packages/server/dist/server.js.map +1 -0
  463. package/packages/server/dist/services/stream.d.ts +77 -0
  464. package/packages/server/dist/services/stream.d.ts.map +1 -0
  465. package/packages/server/dist/services/stream.js +84 -0
  466. package/packages/server/dist/services/stream.js.map +1 -0
  467. package/packages/server/dist/services/tts.d.ts +53 -0
  468. package/packages/server/dist/services/tts.d.ts.map +1 -0
  469. package/packages/server/dist/services/tts.js +281 -0
  470. package/packages/server/dist/services/tts.js.map +1 -0
  471. package/packages/server/dist/services/voice-keys.d.ts +26 -0
  472. package/packages/server/dist/services/voice-keys.d.ts.map +1 -0
  473. package/packages/server/dist/services/voice-keys.js +51 -0
  474. package/packages/server/dist/services/voice-keys.js.map +1 -0
  475. package/packages/server/dist/static.d.ts +12 -0
  476. package/packages/server/dist/static.d.ts.map +1 -0
  477. package/packages/server/dist/static.js +63 -0
  478. package/packages/server/dist/static.js.map +1 -0
  479. package/packages/server/package.json +1 -0
  480. package/packages/web/dist/apple-touch-icon.png +0 -0
  481. package/packages/web/dist/assets/3d-force-graph-BPZmoydi.js +1163 -0
  482. package/packages/web/dist/assets/bricolage-grotesque-latin-ext-wght-normal-CcLUaPy7.woff2 +0 -0
  483. package/packages/web/dist/assets/bricolage-grotesque-latin-wght-normal-DLoelf7F.woff2 +0 -0
  484. package/packages/web/dist/assets/bricolage-grotesque-vietnamese-wght-normal-BUzh504Q.woff2 +0 -0
  485. package/packages/web/dist/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  486. package/packages/web/dist/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  487. package/packages/web/dist/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  488. package/packages/web/dist/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  489. package/packages/web/dist/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2 +0 -0
  490. package/packages/web/dist/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2 +0 -0
  491. package/packages/web/dist/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2 +0 -0
  492. package/packages/web/dist/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
  493. package/packages/web/dist/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2 +0 -0
  494. package/packages/web/dist/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2 +0 -0
  495. package/packages/web/dist/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  496. package/packages/web/dist/assets/index-IBSTzK7-.js +1255 -0
  497. package/packages/web/dist/assets/index-qUXUui7W.css +1 -0
  498. package/packages/web/dist/assets/three-spritetext-B9ZIW7c-.js +4 -0
  499. package/packages/web/dist/assets/three.module-cmFfBtHS.js +4228 -0
  500. package/packages/web/dist/favicon.ico +0 -0
  501. package/packages/web/dist/favicon.svg +2 -0
  502. package/packages/web/dist/index.html +28 -0
  503. package/packages/web/dist/logo-light.svg +2 -0
  504. package/packages/web/dist/logo.svg +2 -0
  505. package/packages/web/dist/mark-light.svg +2 -0
  506. package/packages/web/dist/mark.svg +2 -0
  507. package/packages/web/package.json +1 -0
  508. package/scripts/rookery.mjs +183 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jonas Laux
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,367 @@
1
+ <p align="center">
2
+ <img src="branding/logo.png#gh-light-mode-only" alt="Rookery" width="260" height="77">
3
+ <img src="branding/logo-light.png#gh-dark-mode-only" alt="Rookery" width="260" height="77">
4
+ </p>
5
+
6
+ <p align="center">
7
+ <b>A personal AI assistant powered by your existing Claude Code and Codex CLI logins.</b><br>
8
+ Local orchestration and storage. No model API keys required.
9
+ </p>
10
+
11
+ ## What Rookery does
12
+
13
+ Rookery runs the installed `claude` and `codex` CLIs as child processes using their signed-in sessions. It adds persistent memory, an assistant identity, an organization of agents, a task board, schedules, tools, skills, and voice. The web app, terminal, and Telegram share the same core.
14
+
15
+ The application and database run on your machine. Model requests still go to the selected provider; Telegram, network tools, and server speech engines also use external services. Provider usage follows the account signed in to each CLI.
16
+
17
+ ## Quick start
18
+
19
+ ### Easy Windows installation
20
+
21
+ Run this in PowerShell. The installer downloads the public repository and sets up Rookery for your Windows user:
22
+
23
+ ```powershell
24
+ irm https://raw.githubusercontent.com/jonax1337/rookery-agent/main/scripts/install.ps1 | iex
25
+ ```
26
+
27
+ The installer installs Node.js LTS through winget if Node is missing, downloads and builds Rookery, installs its npm package, starts the server, opens the migration/start-fresh choice in Settings, and enables startup after Windows sign-in. Node installation may show the standard Windows approval dialog. No Git or `.env` editing is needed. An existing Node older than 22.5 must be updated first.
28
+
29
+ If neither provider CLI is installed, the installer offers Codex or Claude Code and opens that CLI's login flow; you can also skip this step. Existing installations and logins are reused. Select your provider in **Settings**. Configure your name, assistant, models, and voice there; configure Telegram in **Gateways**. Default voice needs no key. Add optional OpenAI/ElevenLabs speech keys directly under **Settings → Voice → Speech service keys**.
30
+
31
+ ```powershell
32
+ rookery setup # start, open migration/start-fresh choice, enable autostart
33
+ rookery start # start in the background (safe to repeat)
34
+ rookery autostart off # disable future automatic starts; keep data/current server
35
+ rookery autostart on # enable again
36
+ rookery doctor # check installed provider CLIs and logins
37
+ ```
38
+
39
+ Autostart runs as your Windows user **after sign-in**, not before login, and does not keep a sleeping or powered-off PC online. Background startup output goes to `~/.rookery/server.log`. Settings and data stay in `~/.rookery` when the package is upgraded. Disable autostart before `npm uninstall -g rookery-agent`. Re-run setup after moving Node or the installation. On macOS use `rookery setup --no-autostart` or `rookery serve`.
40
+
41
+ ### Linux installation
42
+
43
+ Requirements: Node.js **22.5+**, npm, curl, and tar. Run as your normal user, without sudo. From a checkout, run `bash scripts/install.sh`. The one-liner is:
44
+
45
+ ```bash
46
+ curl -fsSL https://raw.githubusercontent.com/jonax1337/rookery-agent/main/scripts/install.sh | bash
47
+ ```
48
+
49
+ The installer builds and installs the package under `~/.local`, offers a provider CLI and login if needed, and opens the migration/start-fresh choice in Settings. No Git or `.env` editing is needed. If `rookery` is not found in a new shell, add `~/.local/bin` to your shell's PATH; the absolute command is `~/.local/bin/rookery`.
50
+
51
+ With a systemd user session, setup enables `rookery.service` for the **next login**. The initial server runs in the background immediately. The service runs as your user, retaining access to provider logins and the PATH captured during setup. Its unit is stored under `${XDG_CONFIG_HOME:-~/.config}/systemd/user/rookery.service`. After the next login, inspect it with:
52
+
53
+ ```bash
54
+ systemctl --user status rookery.service
55
+ journalctl --user -u rookery.service
56
+ ```
57
+
58
+ For a headless machine that should start the service at boot before login and keep it running after logout, an administrator can enable lingering with `loginctl enable-linger "$USER"`. Setup does not change that system setting. Without systemd, the installer uses `setup --no-autostart`; run `rookery serve` under your existing service manager for automatic startup. `rookery autostart off` disables future starts without stopping the current server; `rookery autostart on` enables them again. Remove autostart before uninstalling with `npm uninstall -g --prefix "$HOME/.local" rookery-agent`.
59
+
60
+ ### npm distribution
61
+
62
+ The standalone package includes the built web app, server, core, and CLI. No build tools or repository checkout are needed by people installing a release tarball:
63
+
64
+ ```powershell
65
+ npm install -g --ignore-scripts ./rookery-agent-0.1.0.tgz; if ($LASTEXITCODE -eq 0) { rookery setup }
66
+ ```
67
+
68
+ Maintainers create it with `npm run package` (output: `dist/rookery-agent-0.1.0.tgz`). It is **not yet published to the npm registry**; use a locally built tarball or one shared by the maintainer. The dependencies ship compiled artifacts; skipping install scripts avoids `msedge-tts`'s upstream pnpm-only check. Use a persistent installation for autostart, not an `npx` cache directory.
69
+
70
+ ### From source
71
+
72
+ Requirements: **Node.js 22.5 or newer** (for `node:sqlite`), npm, and at least one installed, signed-in provider CLI. For Claude Code, run `claude` and `/login`; for Codex, run `codex login`.
73
+
74
+ ```bash
75
+ npm install --ignore-scripts
76
+ npm run build
77
+ npm run doctor
78
+ npm start
79
+ ```
80
+
81
+ Open <http://127.0.0.1:4317>. The server serves both the API and the built web app.
82
+
83
+ For background startup and Windows/Linux autostart from a built checkout, run `npm run setup`. Keep that checkout in place while autostart is enabled. The setup/start/autostart commands belong to the standalone launcher; the workspace CLI below provides the terminal commands.
84
+
85
+ ```bash
86
+ npm run cli # interactive terminal
87
+ npm run cli -- chat "Hello" # one turn
88
+ npm run cli -- --plain # line-based terminal
89
+ ```
90
+
91
+ The CLI package declares `rookery` and `rk`. npm links them under `node_modules/.bin`, so examples below work as `npx rookery ...` or `npm run cli -- ...`. Run `npm link -w @rookery/cli` if you want the bare command on your PATH.
92
+
93
+ The UI and built-in messages are English. New installations use English voice defaults. Existing conversations, memories, agent instructions, and explicitly saved voice settings are preserved. To switch an existing installation's speech, select English and an English voice under **Settings → Voice**; environment overrides also apply on startup.
94
+
95
+ ## Bring your agent from Hermes or OpenClaw
96
+
97
+ Setup opens **Settings → Migration** (`/settings/migration`). Choose Hermes or OpenClaw, review the detected files and any conflicts, select the individual files and jobs you want, then import. Choose **Start fresh** to keep Rookery's new neutral profile. You can return to Migration later and edit the Markdown files under **Settings → Identity**.
98
+
99
+ Rookery preserves identity, personality, user knowledge, and Markdown memory in its assistant workspace: `IDENTITY.md`, `SOUL.md`, `USER.md`, `AGENTS.md`, `TOOLS.md`, `MEMORY.md`, and `memory/`. Imported instructions use Rookery's tools and permissions; source files stay untouched. Replaced files are backed up. Sessions, credentials, services, and executable skills are not automatically transferred.
100
+
101
+ Compatible recurring cron jobs transfer as **paused schedules** for review. Five-field cron expressions with assistant text prompts, Hermes script bundles and remaining repeat counts are supported; unsupported timings and execution features appear in the migration warnings. Review permissions, tools, and delivery in **Schedules** before enabling them. Script jobs require source review and an explicit Full access grant before execution.
102
+
103
+ The standalone launcher also supports a local preview and explicit import:
104
+
105
+ ```bash
106
+ rookery migrate hermes
107
+ rookery migrate openclaw --from /path/to/openclaw/workspace
108
+ rookery migrate hermes --from /path/to/hermes/profile --apply
109
+ ```
110
+
111
+ Without `--apply`, no source files are imported. From a built checkout use `node scripts/rookery.mjs migrate ...`. See [migration and portable identity](docs/migration.md) for source paths, file mappings, backups, and limitations. Preserving persona and knowledge does not guarantee identical answers across models and harnesses.
112
+
113
+ ## Web app
114
+
115
+ | Area | What you can do |
116
+ |---|---|
117
+ | Chat and Conversations | Stream replies, resume conversations, filter by counterpart/project, inspect transcripts, and archive conversations |
118
+ | Dashboard | Inspect totals and activity trends from `GET /api/stats` |
119
+ | Tasks | Create, plan, run, finish, and cancel task-board entries |
120
+ | Assignments | Follow agent runs, progress, reports, and failures |
121
+ | Schedules | Configure recurring jobs, run them manually, and inspect history |
122
+ | Gateways | Configure Telegram, controller IDs, pairing, and push notifications live |
123
+ | Organization | Manage agents, teams, and projects |
124
+ | Memory | Browse memories, explore their 3D graph, and inspect sleep runs |
125
+ | Tools and Skills | Configure MCP servers and create, edit, or import instructions |
126
+ | Settings | Import a Hermes/OpenClaw profile, edit identity Markdown, and configure providers, memory, voice, and runtime options |
127
+
128
+ The sidebar provides navigation, new conversation and voice actions, connection status, and search (`Ctrl+K`). Summary totals come from database counts, not capped list responses. Cards based on a limited list describe that basis.
129
+
130
+ ## Telegram gateway
131
+
132
+ Configure Telegram under **Gateways → Telegram** (`/gateways/telegram`):
133
+
134
+ 1. Create a bot with [BotFather](https://t.me/BotFather).
135
+ 2. Enter its token, enable the gateway and pairing, and save.
136
+ 3. Send `/id` to the bot in a private chat.
137
+ 4. Add the returned numeric user ID to allowed controllers. Adding a controller closes pairing.
138
+ 5. Save the controller list. Changes apply without restarting the server.
139
+
140
+ Only allowed user IDs can control the assistant. Group chats and bot senders are rejected. Pairing identifies a controller; it does not grant access to chat or tools. An empty allowlist grants no control access.
141
+
142
+ Telegram uses long polling, so no public webhook is required. Each controller gets a separate gateway conversation. Check the gateway permission setting when enabling the bot: its built-in default is `full`.
143
+
144
+ Use `/start` for commands, `/new` for a fresh conversation, `/stop` to interrupt a turn, and `/status` for current state. `/off` stops the entire Telegram gateway, including push delivery and active turns, until the server process restarts. Earlier `/neu` and `/aus` commands remain accepted. To disable only push messages, use the gateway's push setting. Push settings cover assignments, schedules, sleep runs, and optional task updates, with quiet hours, recipient selection, and an hourly cap.
145
+
146
+ The token is stored in local configuration; browser config responses expose whether a token is set rather than returning the secret. Keep the Rookery home directory private. See [the gateway design document](docs/concepts/telegram-channel.md) for background.
147
+
148
+ ## Architecture and turn flow
149
+
150
+ ```text
151
+ packages/core Providers, memory, persona, runtime, organization, computer tools.
152
+ No HTTP server or terminal UI dependencies.
153
+ packages/server Fastify REST, WebSocket, SSE, static hosting, TTS, gateways.
154
+ packages/cli Commander commands, Ink TUI, plain REPL, operating-system speech.
155
+ packages/web React + Vite, assistant-ui, shadcn and shared page templates.
156
+ ```
157
+
158
+ A turn recalls memories, builds context with identity and organization/inbox information, streams the provider CLI, stores the exchange, and starts background memory extraction. Assignments and tool activity arrive as events alongside the answer. Learning runs after the answer.
159
+
160
+ If the assistant enables a previously unavailable MCP tool server during a turn, the runtime can resume the provider once with updated tools. Output is combined into the same turn, bounded to two passes.
161
+
162
+ The assistant's working directory defaults to **`~/.rookery/workspace`**, independently of the launch directory. `ROOKERY_HOME` relocates the default workspace; `ROOKERY_WORKSPACE` or configuration can override it. Rookery creates workspace instructions when absent. Agents use their assigned project directories, or a separate `~/.rookery/agent-workspaces/<agent-id>` directory when no project is selected. This selects the working directory; it is not a filesystem isolation guarantee.
163
+
164
+ The assistant keeps its configured identity. You can start a separate direct conversation with an agent using `--agent` or `/talk`; an existing conversation keeps its counterpart. Switching provider starts a new provider conversation where necessary.
165
+
166
+ ### Provider authentication
167
+
168
+ The adapters launch real CLIs and consume their JSON streams:
169
+
170
+ ```text
171
+ claude -p --output-format stream-json --verbose --include-partial-messages
172
+ codex exec [resume <id>] --json --skip-git-repo-check --color never -s <sandbox>
173
+ ```
174
+
175
+ They use existing CLI authentication and native session IDs (`--resume` or `codex exec resume`). Model access requires no API-key setting in Rookery. Optional OpenAI and ElevenLabs **speech** engines are separate: their keys are configured in Settings → Voice and kept on the server.
176
+
177
+ Claude runs with `--setting-sources ""`. When Rookery supplies MCP servers, it also passes `--mcp-config` and `--strict-mcp-config`. Rookery replaces the coding system prompt for the assistant; project agents retain their coding role. A `CLAUDE.md` in the selected working directory can still be read by Claude.
178
+
179
+ ### Permission levels
180
+
181
+ | Level | Claude Code | Codex |
182
+ |---|---|---|
183
+ | `chat` | `--restricted` and additional read/search/task tools blocked | `read-only` sandbox |
184
+ | `read` | `--restricted`; edit/write/notebook-edit tools blocked | `read-only` sandbox |
185
+ | `write` | `--restricted --permission-mode acceptEdits` | `workspace-write` sandbox |
186
+ | `full` | `--dangerously-skip-permissions` | `danger-full-access` sandbox |
187
+
188
+ The default agent permission is `read`; agents can override it. Claude's restricted levels disable shell access, while Codex uses its sandbox rather than the same tool restrictions. The assistant's MCP bridge and gateway policy impose their own boundaries. Prompt instructions to ask before irreversible actions do not replace those controls.
189
+
190
+ ## Memory
191
+
192
+ Rookery combines portable Markdown knowledge in the assistant workspace (`USER.md`, `MEMORY.md`, and `memory/`) with its existing structured memory in `~/.rookery/rookery.db`. Identity and core Markdown knowledge are loaded for assistant turns; detailed Markdown notes can be retrieved through the assistant's Rookery MCP profile tools. The SQLite bank uses built-in `node:sqlite` without a native database build step. Its kinds are `fact`, `preference`, `project`, `event`, `summary`, and sleep-generated `insight`.
193
+
194
+ Extraction proposes durable memories after a turn. A gate limits candidates (three per turn by default), filters low-importance candidates without known entities, and reinforces near-duplicates instead of inserting another copy. Deduplication uses lexical similarity, not embeddings.
195
+
196
+ Recall combines FTS5/BM25 relevance (0.55), importance (0.20), recency (0.15, with a 30-day half-life), and usage (0.10), plus tag matches. A core profile adds pinned memories, insights, and selected important facts independently of the query. Graph expansion follows shared entities and selected edges. Results include reasons such as `strong text match` or `high importance`.
197
+
198
+ Each agent has its own memory owner; agent recall does not expose the assistant's personal bank. The graph connects memories to entities and other memories through `refines`, `supersedes`, `contradicts`, `caused_by`, and `co_occurs` edges. The graph is lazy-loaded and requires WebGL; the memory list remains available separately.
199
+
200
+ ```bash
201
+ rookery memory list
202
+ rookery memory add "I prefer concise replies." --kind preference --importance 0.9
203
+ rookery memory search deployment
204
+ rookery memory forget <id> # soft-delete
205
+ rookery memory forget <id> --hard # permanent deletion
206
+ rookery memory stats
207
+ ```
208
+
209
+ ### Sleep
210
+
211
+ The server creates a normal `sleep` schedule, defaulting to **03:30 in the server's local time**. It can be disabled or run manually. The server must be running for schedules to execute.
212
+
213
+ Sleep cycles contain light sleep (strength bookkeeping and dormancy), deep sleep (merging and resolving contradictions), and dream sleep (connections and insights). Defaults include two cycles and Sonnet for merging and insights; limits and models are configurable under `memory.sleep`.
214
+
215
+ Dormant memories remain in the database and can be woken. Sleep does not retire user-authored or pinned memories; conflicts between two protected memories remain for the user to decide. Undo wakes memories marked dormant by the run and removes its recorded generated memories and edges. It is not a database snapshot: entity updates and deleted pre-existing contradiction edges are not restored. Cancelling a run keeps changes already completed. See [the sleep design document](docs/concepts/memory-graph-and-sleep.md), with code as the source of current behavior.
216
+
217
+ ## Organization, tasks, and assignments
218
+
219
+ | Term | Meaning |
220
+ |---|---|
221
+ | Agent | Persistent role, instructions, provider/model, permission, team, manager, and separate memory |
222
+ | Team | Group of agents with a purpose and optional lead |
223
+ | Project | Work context with an optional directory for assignments |
224
+ | Assignment | One agent run with progress, report, status, and duration |
225
+ | Task | Board entry planned and executed as one or more assignments |
226
+ | Message | Communication between agents, managers, and the assistant |
227
+
228
+ A persistent agent is a stored role, not a permanently running provider process. Assignments launch fresh CLI processes. Delegation follows reporting relationships and is bounded by depth and concurrency limits. Defaults are four concurrent assignments, depth three, and a 45-minute timeout per assignment.
229
+
230
+ ```bash
231
+ rookery org
232
+ rookery org hire --name Mara --title "Backend Engineer" --instructions "Maintain the server."
233
+ rookery org projects add Example --path /path/to/project
234
+ rookery assign mara "Describe the server routes" --project Example
235
+ rookery org assignments
236
+ rookery --agent mara
237
+ rookery tasks add "Write release notes"
238
+ rookery tasks plan <id>
239
+ rookery tasks run <id>
240
+ ```
241
+
242
+ Use `rookery org --help`, `rookery tasks --help`, and `/help` for the full command set. The TUI shows streamed output, tool calls, live assignment rows, reported usage, and a slash-command palette. `Ctrl+C` interrupts a turn and exits when idle; `Ctrl+D` exits. Pipes, `TERM=dumb`, `ROOKERY_TUI=0`, or `--plain` use the line-based REPL.
243
+
244
+ ## Tools and skills
245
+
246
+ **Tools** (`/tools`, `rookery tools`) are MCP servers configured for the assistant, agents, or both. The catalog includes computer control and browser tooling; availability depends on platform and installed server. Some servers start on demand through `npx`. Custom servers can be configured in the UI.
247
+
248
+ Rookery's organization and memory tools use its per-turn MCP bridge; the tool hub attaches additional MCP servers directly to each provider process for the configured audience. Provider-native tools are governed by the permission flags above, so MCP-only execution is a design intent, not a universal enforced guarantee. Toggles apply to subsequent provider processes, including the bounded second pass described above. Showing tool calls in web chat is a browser-local preference.
249
+
250
+ **Skills** (`/skills`, `rookery skills`) are folders under `~/.rookery/skills`, each containing a `SKILL.md` with name, description, and audience metadata, plus supporting files. Rookery advertises the catalog in context; `use_skill` loads instructions and the file list. Skills can be authored in the UI or imported from GitHub using a repository path or URL.
251
+
252
+ `use_skill` returns instructions and a file list; it does not execute scripts. Running a script requires an available execution tool and its permissions. Project-scoped skill/MCP proposals under `docs/concepts` should not be assumed fully implemented.
253
+
254
+ ## Voice
255
+
256
+ The full-screen `/voice` page uses its own voice conversation. Tap the orb to begin, speak, and hear streamed replies. The orb reflects microphone, thinking, and speaking activity. Space or the orb interrupts, `M` toggles the microphone, and Escape exits. Wake-word detection and barge-in are optional. A saved voice conversation can be resumed from its transcript.
257
+
258
+ Voice turns request concise, speech-friendly replies without Markdown or code blocks. The `jarvis` style adds a composed butler register; `neutral` disables it. The optional browser audio effect adds EQ, compression, and a short room effect. Background assignment completion can be announced after the spoken turn ends.
259
+
260
+ | Engine | Configuration |
261
+ |---|---|
262
+ | Edge (default) | Server `msedge-tts`; no API key; new default `en-GB-RyanNeural` |
263
+ | ElevenLabs | Key and voice selection in Settings → Voice |
264
+ | OpenAI | Key in Settings → Voice; `gpt-4o-mini-tts` |
265
+ | Browser | Browser `speechSynthesis`; also used when server speech fails |
266
+
267
+ New installations use `voice.lang = "en-GB"`. Existing configured languages and voices remain selected. Browser recognition depends on browser support and microphone permission; the UI reports when unavailable. Chat supports push-to-talk dictation.
268
+
269
+ The CLI uses OS speech: PowerShell `System.Speech` on Windows, `say` on macOS, and `spd-say` or eSpeak on Linux. Server TTS: `POST /api/tts` with `{ "text": "Hello" }`; `GET /api/tts/voices` lists capabilities.
270
+
271
+ ## Configuration
272
+
273
+ Optional speech keys can be saved, replaced, or removed under **Settings → Voice → Speech service keys** without a restart. They are stored in `~/.rookery/voice-keys.json`, separately from assistant configuration, and API responses expose only their status. This is a local plaintext file: keep the Rookery home private. Saved keys take precedence over legacy `OPENAI_API_KEY` / `ELEVENLABS_API_KEY` environment values; removing a saved key restores that environment fallback. Empty password fields leave existing keys unchanged.
274
+
275
+ The default file is `~/.rookery/config.json`. Startup precedence:
276
+
277
+ ```text
278
+ built-in defaults → config.json → environment → explicit invocation overrides
279
+ ```
280
+
281
+ The server entry point first loads `<ROOKERY_HOME>/.env` (default `~/.rookery/.env`), then the checkout root's `.env`, resolved relative to the server module. Existing shell variables win; values from the home file take precedence over the checkout file. The loader supports simple `KEY=value` lines without interpolation. See [`.env.example`](.env.example). Direct CLI commands read their process environment and saved configuration; they do not run this `.env` loader.
282
+
283
+ Settings, runtime tool toggles, and the assistant's `update_settings` tool share the configuration update path. Changes are saved to `config.json` and applied to the shared runtime object. Startup overrides such as `--port` remain until explicitly changed and are not silently persisted. Resetting an optional value removes its saved override.
284
+
285
+ Example configuration fragment:
286
+
287
+ ```json
288
+ {
289
+ "assistantName": "Rookery",
290
+ "defaultProvider": "claude",
291
+ "defaultPermission": "read",
292
+ "voice": {
293
+ "lang": "en-GB",
294
+ "engine": "edge",
295
+ "edgeVoice": "en-GB-RyanNeural",
296
+ "style": "jarvis"
297
+ },
298
+ "org": {
299
+ "maxConcurrentAssignments": 4,
300
+ "maxDelegationDepth": 3,
301
+ "assignmentTimeoutMs": 2700000
302
+ }
303
+ }
304
+ ```
305
+
306
+ Use the UI or `rookery config get`, `rookery config set <key> <value>`, and `rookery config path`. Complete defaults/types: [`config.ts`](packages/core/src/config.ts) and [`types.ts`](packages/core/src/types.ts).
307
+
308
+ ### Remote access
309
+
310
+ The server binds to `127.0.0.1` by default. With an empty `ROOKERY_TOKEN`, API access is unauthenticated; binding another host does **not** automatically enable authentication. Set a strong shared token before exposing the server beyond loopback.
311
+
312
+ ```powershell
313
+ $env:ROOKERY_HOST = '0.0.0.0'
314
+ $env:ROOKERY_TOKEN = '<your-long-random-secret>'
315
+ npm start
316
+ ```
317
+
318
+ API clients send `Authorization: Bearer <token>`. Browser WebSockets use the token query parameter. This is a shared-token model, not individual user accounts. Telegram controller IDs are a separate policy.
319
+
320
+ ## Development and checks
321
+
322
+ ```bash
323
+ npm run build
324
+ npm run dev:all
325
+ ```
326
+
327
+ The combined script starts the built server plus Vite at <http://localhost:5317>. It does not watch or restart the backend: rebuild and restart after backend changes. For automatic backend restarts, run `npm run dev` alongside the core/server package `watch` commands. Vite proxies to `http://127.0.0.1:4317` by default; set `ROOKERY_BACKEND` when the backend uses another address.
328
+
329
+ | Command | Purpose |
330
+ |---|---|
331
+ | `npm run build` | Build core, server, CLI, and web in order |
332
+ | `npm run build:core` | Build core only |
333
+ | `npm run typecheck` | TypeScript project build/check for core, server, CLI |
334
+ | `npm test` | Core tests |
335
+ | `npm test -w @rookery/server` | Server integration tests |
336
+ | `npm test -w @rookery/web` | Web utility and table tests |
337
+ | `npm run tui:check -w @rookery/cli` | Render terminal components and check output |
338
+ | `npm run tui:drive -w @rookery/cli` | Drive the terminal with stubbed provider events |
339
+ | `npm run dev:web` | Vite development server only |
340
+ | `npm run doctor` | Provider readiness and setup diagnostics |
341
+ | `npm run setup` | Start in the background, open Settings, and enable Windows/Linux autostart |
342
+ | `npm run package` | Build and pack the standalone npm tarball into `dist` |
343
+ | `npm run test:install` | Check installer arguments and Windows/Linux autostart configuration |
344
+ | `npm run clean` | Remove build artifacts |
345
+
346
+ Build before tests that import `dist` output. The web build includes its own TypeScript check. Keep package boundaries intact and reuse `components/shell`, `components/blocks`, and `components/common` for pages. Built-in user-facing text is English.
347
+
348
+ ## Troubleshooting
349
+
350
+ | Symptom | Check |
351
+ |---|---|
352
+ | No provider ready | Install/sign in to a CLI and run `npm run doctor` |
353
+ | Web app offline | Start server and check host, port, and token |
354
+ | First turn is slow | CLI startup and prompt processing add latency |
355
+ | No microphone response | Check recognition support and permission |
356
+ | Speech still German after updating | Change saved language/voice and check environment overrides |
357
+ | Telegram ignores messages | Use a private chat; check allowed ID, token, pairing, and status |
358
+ | `dev:all` exits immediately | Run `npm run build` first |
359
+ | API works but web app is missing | Build `@rookery/web`; server supports API-only operation |
360
+
361
+ ## Design documents
362
+
363
+ [`docs/concepts`](docs/concepts) contains design history and proposals, some partly implemented. They may retain their original German text; current behavior is determined by code. Topics: [agent performance](docs/concepts/agent-performance-management.md), [memory and sleep](docs/concepts/memory-graph-and-sleep.md), [project-scoped skills and MCP](docs/concepts/project-scoped-skills-and-mcp.md), and [Telegram](docs/concepts/telegram-channel.md).
364
+
365
+ ## License
366
+
367
+ MIT. See [`LICENSE`](LICENSE).
@@ -0,0 +1,88 @@
1
+ # Migrate your agent to Rookery
2
+
3
+ Bring the personality and saved knowledge of a Hermes or OpenClaw agent into Rookery. Rookery provides this importer; it is not an endorsement or compatibility guarantee from either source project. Your agent keeps its imported Markdown identity while Rookery supplies the runtime, provider integration, tools, and permissions. A different model or harness can still change how it responds.
4
+
5
+ ## During installation
6
+
7
+ The Windows and Linux installers run `rookery setup`, which opens **Settings → Migration**. Choose **Hermes** or **OpenClaw**, inspect the detected source directory, then select individual files and schedules with their checkboxes. Files and schedules each have their own select-all/clear controls. Only selected entries are imported and backed up; selecting only schedules leaves your existing personality files unchanged. A custom path refers to a directory on the machine running the Rookery server. For a browser on another machine, first copy your source profile to the server.
8
+
9
+ Choose **Start fresh** to continue with Rookery's neutral profile, then personalize it under **Settings → Identity**. Existing Rookery users can open Migration later. Setup does not import anything automatically.
10
+
11
+ ## Terminal
12
+
13
+ The installed standalone launcher supports:
14
+
15
+ ```bash
16
+ rookery migrate hermes
17
+ rookery migrate openclaw --from /path/to/openclaw/workspace
18
+ rookery migrate hermes --from /path/to/hermes/profile --apply
19
+ rookery migrate hermes --job <source-job-id> --apply
20
+ rookery migrate openclaw --file SOUL.md --file USER.md --apply
21
+ ```
22
+
23
+ The default is a preview of files and compatible schedules. Repeat `--file` and `--job` to import only named target paths and source job IDs; when either flag is present, unlisted files and jobs are excluded. Without selection flags, all compatible entries are selected. `--apply` prints the current preview, verifies that its source and destination fingerprint still matches, then imports. Review the preview before adding `--apply`: that flag also authorizes replacing conflicting destination files with backups. The command does not start the server or enable autostart. From a built source checkout, use `node scripts/rookery.mjs migrate ...`.
24
+
25
+ ## Source directories
26
+
27
+ - **Hermes:** normally `~/.hermes`; custom instances use `HERMES_HOME`, and named profiles live under `~/.hermes/profiles/<name>`. `hermes profile show <name>` reports a profile's home. Pass the desired profile directory with `--from`. Hermes stores `SOUL.md` at that root and `USER.md` and `MEMORY.md` under `memories/`. See the official [file map](https://hermes-agent.nousresearch.com/docs/user-guide/which-file-does-what) and [profile documentation](https://hermes-agent.nousresearch.com/docs/user-guide/profiles/).
28
+ - **OpenClaw:** normally `~/.openclaw/workspace`. Profiles, environment overrides, and per-agent workspace configuration can change it. Select the actual agent workspace with `--from` when using a custom or multi-agent installation. Files from different agents should not be merged by guessing their directories. See the official [workspace documentation](https://docs.openclaw.ai/concepts/agent-workspace).
29
+
30
+ For another machine, copy the source directory first. Hermes also offers `hermes profile export <name> -o profile.tar.gz`; extract that archive yourself and select the extracted profile directory. Rookery's importer accepts directories, not archive uploads. An export can contain personal history even though Hermes excludes `.env` and `auth.json` by filename. See the official [export command](https://hermes-agent.nousresearch.com/docs/reference/profile-commands).
31
+
32
+ ## What transfers
33
+
34
+ | Data | Hermes source | OpenClaw source | Rookery destination |
35
+ |---|---|---|---|
36
+ | Name and identity | `IDENTITY.md`, if present | `IDENTITY.md` | `IDENTITY.md` |
37
+ | Personality and tone | `SOUL.md` | `SOUL.md` | `SOUL.md` |
38
+ | User profile | `memories/USER.md` | `USER.md` | `USER.md` |
39
+ | Curated knowledge | `memories/MEMORY.md` | `MEMORY.md` | `MEMORY.md` |
40
+ | Workspace guidance | `AGENTS.md`, if present at the selected root | `AGENTS.md` | `AGENTS.md` |
41
+ | Tool conventions | `TOOLS.md`, if present | `TOOLS.md`, if present | `TOOLS.md` |
42
+ | Detailed notes | No additional note folders imported | `memory/**/*.md` | `memory/` |
43
+
44
+ Hermes uses `SOUL.md` as its primary identity, so an absent `IDENTITY.md` is normal. Its memory files may use `§` separators; those remain intact. OpenClaw's newer templates keep tool conventions in the `## Tools` section of `AGENTS.md`; legacy `TOOLS.md` is also supported. These files carry instructions and notes, not tool implementations. [Hermes identity](https://hermes-agent.nousresearch.com/docs/user-guide/features/personality), [Hermes memory](https://hermes-agent.nousresearch.com/docs/user-guide/features/memory), [OpenClaw memory](https://docs.openclaw.ai/concepts/memory).
45
+
46
+ The preview is the exact list for your installation. `HEARTBEAT.md`, `BOOT.md`, and `BOOTSTRAP.md` are retained as inactive `.md.txt` files under `migration-archive/<source>/` when present. Those archived instructions do not create schedules, run startup actions, or restart an old onboarding ritual.
47
+
48
+ ## Scheduled jobs
49
+
50
+ Compatible recurring cron jobs appear in the same migration preview and import into **Schedules**, paused with `chat` permission. The importer keeps their names, prompt text, and supported five-field cron expressions. It does not run jobs during migration or replay missed occurrences. Review each schedule's timing, tools, permissions, and output delivery before enabling it. Repeating an import does not replace your local edits to a previously imported schedule.
51
+
52
+ Hermes jobs are read from `<profile>/cron/jobs.json`. Hermes can also attach skills, scripts, finite repeat counts, custom models, and delivery targets; those source features need separate treatment. See [Hermes cron internals](https://hermes-agent.nousresearch.com/docs/developer-guide/cron-internals).
53
+
54
+ Current OpenClaw stores schedules in its shared `<state-dir>/state/openclaw.sqlite` database. For a selected workspace named `workspace`, Rookery checks the adjacent state directory and its default cron partition. Legacy `<state-dir>/cron/jobs.json` is used when the database is absent. A moved database may retain the old absolute partition path, and custom or multi-agent layouts need an explicit export. See [OpenClaw automations](https://docs.openclaw.ai/cli/cron).
55
+
56
+ For those layouts, run `openclaw automations list --json` (optionally filter with `--agent <id>`) and save the output as UTF-8 `jobs.json` in the workspace directory you select for migration. Rookery accepts a job list or an object containing `jobs`; this file takes precedence over automatic cron discovery. A `cron/jobs.json` directly under the selected directory is also supported. Review the exported jobs to ensure they belong to the agent you are migrating. The official [CLI reference](https://docs.openclaw.ai/cli/cron) describes JSON output.
57
+
58
+ The converter accepts recurring five-field cron schedules with assistant text prompts, plus Hermes script jobs. Finite repeats preserve the remaining attempt count (`times - completed`); it is reserved before each run, including failed attempts, so restarts cannot exceed the limit. It skips one-shot timestamps, fixed intervals, six-field schedules, unsupported command/heartbeat/system-event payloads, unmapped custom agents, monitor gates, chained contexts, custom script working directories, explicit timezones that differ from the Rookery host, staggering, conditional triggers, and pacing. OpenClaw top-of-hour jobs need an explicit exact-timing setting (`staggerMs: 0`) because its implicit staggering is not reproduced. Source delivery destinations and model/tool settings are not enabled automatically. Warnings identify unsupported or unmapped features; their definitions remain in the source installation. OpenClaw supports these broader schedule types natively, as documented in its [schedule guide](https://docs.openclaw.ai/automation/cron-jobs/schedules).
59
+
60
+ ## Script schedules
61
+
62
+ Selecting a Hermes script schedule also selects its script bundle. Python, Node.js, Bash and PowerShell scripts are supported. The preview lists locally resolved helper modules and referenced JSON state/rule files. They are copied into `<ROOKERY_HOME>/imported-scripts/`; credential-like JSON sidecars are excluded. Script files themselves can contain embedded credentials, so review the code before importing. Separate authentication stores, installed interpreters, third-party packages and dynamically located dependencies are not installed or copied automatically.
63
+
64
+ Imported scripts remain paused with chat-only permission. Open their detail page in **Schedules**, review the source and its dependencies, explicitly grant **Full access**, then enable or run the job. Script execution is a local process with filesystem/network access, not a sandbox. Rookery uses an interpreter argument array, a two-minute script timeout, bounded output and process-tree cancellation. It does not forward provider/gateway secrets from its environment.
65
+
66
+ Hermes `no_agent` jobs return script output directly. Other script jobs feed stdout into the assistant with the saved job prompt. Empty script-only output, `wakeAgent: false` control output and the assistant's `[SILENT]` response suppress notifications. Absolute paths inside scripts are preserved and flagged: a script that refers to an old Hermes installation or external authentication files needs those references reviewed before the old installation is removed. Source delivery destinations do not become Rookery gateway settings.
67
+
68
+ ## Rookery's portable profile
69
+
70
+ The assistant workspace defaults to `~/.rookery/workspace`. The standard files are `IDENTITY.md`, `SOUL.md`, `USER.md`, `AGENTS.md`, `TOOLS.md`, and `MEMORY.md`. New generated templates can use `{{assistantName}}`, `{{userName}}`, `{{honorific}}`, and `{{formalAddress}}` to follow Settings. Imported identity text remains authoritative about the agent's persona.
71
+
72
+ Rookery loads the profile for assistant turns and exposes Markdown notes through its own MCP profile tools. Existing SQLite memories remain available alongside those files. Project agents keep their separate identities and memory scope. This migration does not add group-chat access: Telegram continues to accept only permitted controllers in private chats. Keep personal knowledge in a private Rookery home.
73
+
74
+ Automatic context includes up to 12,000 characters per standard file, with explicit excerpt notices. Note searches scan up to 16 MiB and label partial results; `read_profile` can read a known file in pages. Retrieval errors are reported without replacing the saved personality or breaking the conversation. Projectless staff use `<ROOKERY_HOME>/agent-workspaces/<agent-id>` so their provider does not automatically load the assistant's private profile.
75
+
76
+ Review the files under **Settings → Identity** after importing. Start a new conversation for the cleanest transition; an old provider conversation can still contain its earlier identity context.
77
+
78
+ ## Backups and recovery
79
+
80
+ The importer leaves the source directory unchanged, reports conflicts before applying, and preserves backups when replacing destination files under `<ROOKERY_HOME>/migration-backups/`. Keep the backup/report path printed by the CLI or shown by the UI. Its `manifest.json` identifies selected files, their `targetRoot` and relative `targetPath`, and which originals were backed up. Profile files belong to the assistant workspace; script bundles belong to the Rookery home. If files change between preview and apply, obtain a new preview.
81
+
82
+ To undo an import manually, stop Rookery and use the migration report to identify changed files. Restore replaced files from the backup and remove only files the report identifies as newly created by that import. Preserve later edits separately before restoring. Restart Rookery, review Identity, and remove the imported schedules you no longer want under **Schedules**. There is no automatic rollback command; a migration backup is not a snapshot of the complete Rookery database or provider sessions.
83
+
84
+ ## What needs separate setup
85
+
86
+ Chat sessions and native provider thread IDs, conversation databases and search indexes, credentials, API keys, channel pairing, approvals, hooks, plugins, executable skills, external memory services, and model/provider settings are not automatically converted. Configure Rookery's provider login, Gateways, Tools, and Skills separately. Markdown cannot grant permissions or reproduce an unavailable source tool.
87
+
88
+ Hermes stores searchable conversation history in `state.db`; current OpenClaw stores per-agent runtime data in `agents/<id>/agent/openclaw-agent.sqlite`, with older session directories retained as legacy artifacts. Importing Markdown does not import either conversation store. External memory providers may also hold knowledge that is absent from local Markdown. [Hermes memory and sessions](https://hermes-agent.nousresearch.com/docs/user-guide/features/memory), [OpenClaw state locations](https://docs.openclaw.ai/concepts/agent-workspace).
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "rookery-agent",
3
+ "version": "0.1.0",
4
+ "description": "Rookery - a personal AI assistant powered by your existing Claude Code and Codex CLI subscriptions. No API keys.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "engines": {
8
+ "node": ">=22.5.0"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/jonax1337/rookery-agent.git"
13
+ },
14
+ "homepage": "https://github.com/jonax1337/rookery-agent#readme",
15
+ "bin": {
16
+ "rookery": "scripts/rookery.mjs",
17
+ "rk": "scripts/rookery.mjs"
18
+ },
19
+ "files": [
20
+ "packages/*/dist",
21
+ "packages/*/package.json",
22
+ "scripts/rookery.mjs",
23
+ "docs/migration.md"
24
+ ],
25
+ "dependencies": {
26
+ "@playwright/mcp": "^0.0.80",
27
+ "@zavora-ai/computer-use-mcp": "^7.1.0",
28
+ "zod": "^3.24.1",
29
+ "@fastify/cors": "^10.0.2",
30
+ "@fastify/static": "^10.1.3",
31
+ "@fastify/websocket": "^11.0.2",
32
+ "fastify": "^5.2.1",
33
+ "msedge-tts": "^2.0.7",
34
+ "chalk": "^5.3.0",
35
+ "commander": "^12.1.0",
36
+ "ink": "^7.1.1",
37
+ "react": "^19.2.8"
38
+ }
39
+ }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * One-shot chat.
3
+ *
4
+ * `runTurn` is the single place a turn is streamed to a terminal; the REPL
5
+ * calls it too, so both paths render identically and abort identically.
6
+ *
7
+ * A turn has no working directory of its own any more: the assistant always
8
+ * runs in the Rookery workspace, and a project only says which directory the
9
+ * agents it delegates to will work in.
10
+ */
11
+ import { Assistant } from '@rookery/core';
12
+ import type { ChatInput } from '@rookery/core';
13
+ export interface TurnOptions {
14
+ /** Emit raw AgentEvent JSON lines. */
15
+ json?: boolean;
16
+ /** Print only the final answer. */
17
+ quiet?: boolean;
18
+ /** Show thinking traces and tool completions. */
19
+ verbose?: boolean;
20
+ spinnerLabel?: string;
21
+ }
22
+ export interface TurnResult {
23
+ text: string;
24
+ sessionId?: string;
25
+ /** The user interrupted this turn. */
26
+ aborted: boolean;
27
+ /** The turn ended in a fatal error. */
28
+ failed: boolean;
29
+ }
30
+ /** Stream one assistant turn to the terminal. Never throws. */
31
+ export declare function runTurn(assistant: Assistant, input: ChatInput, options?: TurnOptions): Promise<TurnResult>;
32
+ export interface ChatCommandOptions {
33
+ session?: string;
34
+ provider?: string;
35
+ model?: string;
36
+ effort?: string;
37
+ permission?: string;
38
+ /** Project name or id this conversation is about. */
39
+ project?: string;
40
+ /**
41
+ * Talk to one agent instead of the assistant. Only honoured for a new
42
+ * conversation: a session resumed with `-s` keeps its own counterpart.
43
+ */
44
+ agent?: string;
45
+ json?: boolean;
46
+ quiet?: boolean;
47
+ verbose?: boolean;
48
+ voice?: boolean;
49
+ }
50
+ /** `rookery chat <prompt...>` - run a single turn and exit. */
51
+ export declare function chatCommand(promptParts: string[], options: ChatCommandOptions): Promise<number>;
52
+ //# sourceMappingURL=chat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/commands/chat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAa/C,MAAM,WAAW,WAAW;IAC1B,sCAAsC;IACtC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,mCAAmC;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,iDAAiD;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,uCAAuC;IACvC,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,+DAA+D;AAC/D,wBAAsB,OAAO,CAC3B,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,SAAS,EAChB,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,UAAU,CAAC,CAuCrB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,+DAA+D;AAC/D,wBAAsB,WAAW,CAC/B,WAAW,EAAE,MAAM,EAAE,EACrB,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,MAAM,CAAC,CAoDjB"}