orionfold-relay 0.0.1 → 0.15.1

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 (1050) hide show
  1. package/LICENSE +191 -0
  2. package/README.md +194 -12
  3. package/components.json +21 -0
  4. package/dist/cli.js +25985 -0
  5. package/drizzle.config.ts +14 -0
  6. package/next.config.mjs +24 -0
  7. package/package.json +127 -16
  8. package/postcss.config.mjs +8 -0
  9. package/public/apple-icon-180.png +0 -0
  10. package/public/favicon.ico +0 -0
  11. package/public/icon-16.png +0 -0
  12. package/public/icon-192.png +0 -0
  13. package/public/icon-32.png +0 -0
  14. package/public/icon-48.png +0 -0
  15. package/public/icon-512-maskable.png +0 -0
  16. package/public/icon-512.png +0 -0
  17. package/src/app/analytics/page.tsx +40 -0
  18. package/src/app/api/apps/[id]/route.ts +47 -0
  19. package/src/app/api/apps/route.ts +12 -0
  20. package/src/app/api/blueprints/[id]/instantiate/route.ts +27 -0
  21. package/src/app/api/blueprints/[id]/route.ts +39 -0
  22. package/src/app/api/blueprints/import/route.ts +68 -0
  23. package/src/app/api/blueprints/route.ts +29 -0
  24. package/src/app/api/channels/[id]/route.ts +104 -0
  25. package/src/app/api/channels/[id]/test/route.ts +52 -0
  26. package/src/app/api/channels/inbound/slack/route.ts +116 -0
  27. package/src/app/api/channels/inbound/telegram/poll/route.ts +140 -0
  28. package/src/app/api/channels/inbound/telegram/route.ts +87 -0
  29. package/src/app/api/channels/route.ts +72 -0
  30. package/src/app/api/chat/branching/flag/route.ts +11 -0
  31. package/src/app/api/chat/conversations/[id]/branches/route.ts +33 -0
  32. package/src/app/api/chat/conversations/[id]/messages/route.ts +130 -0
  33. package/src/app/api/chat/conversations/[id]/redo/route.ts +34 -0
  34. package/src/app/api/chat/conversations/[id]/respond/route.ts +79 -0
  35. package/src/app/api/chat/conversations/[id]/rewind/route.ts +40 -0
  36. package/src/app/api/chat/conversations/[id]/route.ts +93 -0
  37. package/src/app/api/chat/conversations/[id]/skills/activate/route.ts +74 -0
  38. package/src/app/api/chat/conversations/[id]/skills/deactivate/route.ts +33 -0
  39. package/src/app/api/chat/conversations/route.ts +128 -0
  40. package/src/app/api/chat/entities/search/route.ts +121 -0
  41. package/src/app/api/chat/export/route.ts +52 -0
  42. package/src/app/api/chat/files/search/route.ts +50 -0
  43. package/src/app/api/chat/models/route.ts +12 -0
  44. package/src/app/api/chat/suggested-prompts/route.ts +11 -0
  45. package/src/app/api/command-palette/recent/route.ts +32 -0
  46. package/src/app/api/context/batch/route.ts +44 -0
  47. package/src/app/api/customers/[id]/link-project/route.ts +44 -0
  48. package/src/app/api/customers/[id]/route.ts +61 -0
  49. package/src/app/api/customers/route.ts +53 -0
  50. package/src/app/api/data/clear/route.ts +19 -0
  51. package/src/app/api/data/seed/route.ts +20 -0
  52. package/src/app/api/diagnostics/chat-streams/route.ts +65 -0
  53. package/src/app/api/documents/[id]/file/route.ts +47 -0
  54. package/src/app/api/documents/[id]/route.ts +159 -0
  55. package/src/app/api/documents/[id]/versions/route.ts +53 -0
  56. package/src/app/api/documents/route.ts +203 -0
  57. package/src/app/api/environment/artifacts/[id]/route.ts +17 -0
  58. package/src/app/api/environment/artifacts/route.ts +33 -0
  59. package/src/app/api/environment/checkpoints/[id]/route.ts +86 -0
  60. package/src/app/api/environment/checkpoints/route.ts +80 -0
  61. package/src/app/api/environment/profiles/create/route.ts +28 -0
  62. package/src/app/api/environment/profiles/suggest/route.ts +41 -0
  63. package/src/app/api/environment/rescan-if-stale/route.ts +23 -0
  64. package/src/app/api/environment/scan/route.ts +70 -0
  65. package/src/app/api/environment/skills/route.ts +13 -0
  66. package/src/app/api/environment/sync/history/route.ts +20 -0
  67. package/src/app/api/environment/sync/preview/route.ts +27 -0
  68. package/src/app/api/environment/sync/route.ts +43 -0
  69. package/src/app/api/environment/templates/[id]/route.ts +34 -0
  70. package/src/app/api/environment/templates/route.ts +27 -0
  71. package/src/app/api/handoffs/[id]/route.ts +76 -0
  72. package/src/app/api/handoffs/route.ts +89 -0
  73. package/src/app/api/instance/config/route.ts +60 -0
  74. package/src/app/api/instance/init/route.ts +34 -0
  75. package/src/app/api/instance/upgrade/check/route.ts +26 -0
  76. package/src/app/api/instance/upgrade/route.ts +97 -0
  77. package/src/app/api/instance/upgrade/status/route.ts +35 -0
  78. package/src/app/api/logs/stream/route.ts +101 -0
  79. package/src/app/api/memory/route.ts +181 -0
  80. package/src/app/api/notifications/[id]/route.ts +36 -0
  81. package/src/app/api/notifications/mark-all-read/route.ts +13 -0
  82. package/src/app/api/notifications/pending-approvals/route.ts +10 -0
  83. package/src/app/api/notifications/pending-approvals/stream/route.ts +101 -0
  84. package/src/app/api/notifications/route.ts +36 -0
  85. package/src/app/api/onboarding/progress/route.ts +60 -0
  86. package/src/app/api/permissions/presets/route.ts +80 -0
  87. package/src/app/api/permissions/route.ts +46 -0
  88. package/src/app/api/plugins/reload/route.ts +18 -0
  89. package/src/app/api/plugins/route.ts +9 -0
  90. package/src/app/api/plugins/scaffold/route.ts +78 -0
  91. package/src/app/api/profiles/[id]/context/route.ts +109 -0
  92. package/src/app/api/profiles/[id]/route.ts +94 -0
  93. package/src/app/api/profiles/[id]/test/route.ts +46 -0
  94. package/src/app/api/profiles/[id]/test-results/route.ts +22 -0
  95. package/src/app/api/profiles/[id]/test-single/route.ts +64 -0
  96. package/src/app/api/profiles/assist/route.ts +35 -0
  97. package/src/app/api/profiles/import/route.ts +108 -0
  98. package/src/app/api/profiles/import-repo/apply-updates/route.ts +123 -0
  99. package/src/app/api/profiles/import-repo/check-updates/route.ts +163 -0
  100. package/src/app/api/profiles/import-repo/confirm/route.ts +118 -0
  101. package/src/app/api/profiles/import-repo/preview/route.ts +107 -0
  102. package/src/app/api/profiles/import-repo/route.ts +29 -0
  103. package/src/app/api/profiles/import-repo/scan/route.ts +25 -0
  104. package/src/app/api/profiles/route.ts +103 -0
  105. package/src/app/api/projects/[id]/documents/route.ts +124 -0
  106. package/src/app/api/projects/[id]/route.ts +101 -0
  107. package/src/app/api/projects/route.ts +68 -0
  108. package/src/app/api/runtimes/ollama/route.ts +86 -0
  109. package/src/app/api/runtimes/suggest/route.ts +29 -0
  110. package/src/app/api/schedules/[id]/execute/route.ts +111 -0
  111. package/src/app/api/schedules/[id]/heartbeat-history/route.ts +77 -0
  112. package/src/app/api/schedules/[id]/route.ts +231 -0
  113. package/src/app/api/schedules/parse/route.ts +66 -0
  114. package/src/app/api/schedules/route.ts +224 -0
  115. package/src/app/api/settings/author-default/route.ts +7 -0
  116. package/src/app/api/settings/browser-tools/route.ts +68 -0
  117. package/src/app/api/settings/budgets/route.ts +24 -0
  118. package/src/app/api/settings/chat/pins/route.ts +94 -0
  119. package/src/app/api/settings/chat/route.ts +107 -0
  120. package/src/app/api/settings/chat/saved-searches/route.ts +79 -0
  121. package/src/app/api/settings/environment/route.ts +26 -0
  122. package/src/app/api/settings/learning/route.ts +41 -0
  123. package/src/app/api/settings/ollama/route.ts +34 -0
  124. package/src/app/api/settings/openai/login/route.ts +22 -0
  125. package/src/app/api/settings/openai/logout/route.ts +7 -0
  126. package/src/app/api/settings/openai/route.ts +44 -0
  127. package/src/app/api/settings/pricing/route.ts +15 -0
  128. package/src/app/api/settings/providers/route.ts +133 -0
  129. package/src/app/api/settings/route.ts +21 -0
  130. package/src/app/api/settings/routing/route.ts +24 -0
  131. package/src/app/api/settings/runtime/route.ts +46 -0
  132. package/src/app/api/settings/test/route.ts +26 -0
  133. package/src/app/api/settings/web-search/route.ts +28 -0
  134. package/src/app/api/snapshots/[id]/restore/route.ts +62 -0
  135. package/src/app/api/snapshots/[id]/route.ts +44 -0
  136. package/src/app/api/snapshots/route.ts +54 -0
  137. package/src/app/api/snapshots/settings/route.ts +67 -0
  138. package/src/app/api/tables/[id]/charts/[chartId]/route.ts +89 -0
  139. package/src/app/api/tables/[id]/charts/route.ts +72 -0
  140. package/src/app/api/tables/[id]/columns/route.ts +70 -0
  141. package/src/app/api/tables/[id]/enrich/plan/route.ts +98 -0
  142. package/src/app/api/tables/[id]/enrich/route.ts +147 -0
  143. package/src/app/api/tables/[id]/enrich/runs/route.ts +25 -0
  144. package/src/app/api/tables/[id]/export/route.ts +94 -0
  145. package/src/app/api/tables/[id]/history/route.ts +15 -0
  146. package/src/app/api/tables/[id]/import/route.ts +111 -0
  147. package/src/app/api/tables/[id]/route.ts +86 -0
  148. package/src/app/api/tables/[id]/rows/[rowId]/history/route.ts +32 -0
  149. package/src/app/api/tables/[id]/rows/[rowId]/route.ts +51 -0
  150. package/src/app/api/tables/[id]/rows/route.ts +104 -0
  151. package/src/app/api/tables/[id]/triggers/[triggerId]/route.ts +65 -0
  152. package/src/app/api/tables/[id]/triggers/route.ts +122 -0
  153. package/src/app/api/tables/route.ts +65 -0
  154. package/src/app/api/tables/templates/route.ts +92 -0
  155. package/src/app/api/tasks/[id]/cancel/route.ts +21 -0
  156. package/src/app/api/tasks/[id]/execute/route.ts +142 -0
  157. package/src/app/api/tasks/[id]/logs/route.ts +95 -0
  158. package/src/app/api/tasks/[id]/output/route.ts +47 -0
  159. package/src/app/api/tasks/[id]/provenance/route.ts +16 -0
  160. package/src/app/api/tasks/[id]/respond/route.ts +102 -0
  161. package/src/app/api/tasks/[id]/resume/route.ts +97 -0
  162. package/src/app/api/tasks/[id]/route.ts +163 -0
  163. package/src/app/api/tasks/[id]/siblings/route.ts +48 -0
  164. package/src/app/api/tasks/assist/route.ts +35 -0
  165. package/src/app/api/tasks/route.ts +94 -0
  166. package/src/app/api/telemetry/route.ts +231 -0
  167. package/src/app/api/uploads/[id]/route.ts +81 -0
  168. package/src/app/api/uploads/cleanup/route.ts +7 -0
  169. package/src/app/api/uploads/route.ts +80 -0
  170. package/src/app/api/views/[id]/route.ts +66 -0
  171. package/src/app/api/views/route.ts +67 -0
  172. package/src/app/api/workflows/[id]/debug/route.ts +18 -0
  173. package/src/app/api/workflows/[id]/documents/route.ts +209 -0
  174. package/src/app/api/workflows/[id]/execute/route.ts +117 -0
  175. package/src/app/api/workflows/[id]/resume/route.ts +59 -0
  176. package/src/app/api/workflows/[id]/route.ts +185 -0
  177. package/src/app/api/workflows/[id]/status/route.ts +152 -0
  178. package/src/app/api/workflows/[id]/steps/[stepId]/retry/route.ts +22 -0
  179. package/src/app/api/workflows/from-assist/route.ts +117 -0
  180. package/src/app/api/workflows/optimize/route.ts +30 -0
  181. package/src/app/api/workflows/route.ts +72 -0
  182. package/src/app/api/workspace/context/route.ts +11 -0
  183. package/src/app/api/workspace/discover/route.ts +61 -0
  184. package/src/app/api/workspace/fix-data-dir/route.ts +81 -0
  185. package/src/app/api/workspace/import/route.ts +107 -0
  186. package/src/app/apps/[id]/page.tsx +51 -0
  187. package/src/app/apps/page.tsx +141 -0
  188. package/src/app/chat/page.tsx +41 -0
  189. package/src/app/costs/page.tsx +270 -0
  190. package/src/app/customers/[id]/page.tsx +139 -0
  191. package/src/app/customers/page.tsx +47 -0
  192. package/src/app/documents/[id]/page.tsx +38 -0
  193. package/src/app/documents/page.tsx +56 -0
  194. package/src/app/environment/compare/page.tsx +20 -0
  195. package/src/app/environment/loading.tsx +56 -0
  196. package/src/app/environment/page.tsx +61 -0
  197. package/src/app/environment/skills/page.tsx +20 -0
  198. package/src/app/error.tsx +26 -0
  199. package/src/app/global-error.tsx +23 -0
  200. package/src/app/globals.css +626 -0
  201. package/src/app/inbox/loading.tsx +15 -0
  202. package/src/app/inbox/page.tsx +82 -0
  203. package/src/app/layout.tsx +136 -0
  204. package/src/app/manifest.ts +35 -0
  205. package/src/app/monitor/page.tsx +41 -0
  206. package/src/app/page.tsx +205 -0
  207. package/src/app/profiles/[id]/edit/page.tsx +32 -0
  208. package/src/app/profiles/[id]/page.tsx +23 -0
  209. package/src/app/profiles/new/page.tsx +12 -0
  210. package/src/app/profiles/page.tsx +24 -0
  211. package/src/app/projects/[id]/page.tsx +223 -0
  212. package/src/app/projects/loading.tsx +17 -0
  213. package/src/app/projects/page.tsx +35 -0
  214. package/src/app/schedules/[id]/page.tsx +10 -0
  215. package/src/app/schedules/page.tsx +24 -0
  216. package/src/app/settings/loading.tsx +24 -0
  217. package/src/app/settings/page.tsx +43 -0
  218. package/src/app/tables/[id]/page.tsx +67 -0
  219. package/src/app/tables/page.tsx +21 -0
  220. package/src/app/tables/templates/page.tsx +19 -0
  221. package/src/app/tasks/[id]/page.tsx +57 -0
  222. package/src/app/tasks/new/page.tsx +27 -0
  223. package/src/app/tasks/page.tsx +111 -0
  224. package/src/app/workflows/[id]/edit/page.tsx +61 -0
  225. package/src/app/workflows/[id]/page.tsx +55 -0
  226. package/src/app/workflows/blueprints/[id]/page.tsx +32 -0
  227. package/src/app/workflows/blueprints/new/page.tsx +12 -0
  228. package/src/app/workflows/blueprints/page.tsx +12 -0
  229. package/src/app/workflows/from-assist/page.tsx +25 -0
  230. package/src/app/workflows/new/page.tsx +28 -0
  231. package/src/app/workflows/page.tsx +20 -0
  232. package/src/components/analytics/analytics-dashboard.tsx +200 -0
  233. package/src/components/apps/app-card-delete-button.tsx +96 -0
  234. package/src/components/apps/app-detail-actions.tsx +107 -0
  235. package/src/components/apps/inbox-split-view.tsx +112 -0
  236. package/src/components/apps/kit-view/kit-view.tsx +34 -0
  237. package/src/components/apps/kit-view/manifest-pane-body.tsx +135 -0
  238. package/src/components/apps/kit-view/slots/activity.tsx +18 -0
  239. package/src/components/apps/kit-view/slots/footer.tsx +18 -0
  240. package/src/components/apps/kit-view/slots/header.tsx +59 -0
  241. package/src/components/apps/kit-view/slots/hero.tsx +14 -0
  242. package/src/components/apps/kit-view/slots/kpis.tsx +15 -0
  243. package/src/components/apps/kit-view/slots/manifest-sheet.tsx +57 -0
  244. package/src/components/apps/kit-view/slots/secondary.tsx +37 -0
  245. package/src/components/apps/kpi-strip.tsx +37 -0
  246. package/src/components/apps/last-run-card.tsx +209 -0
  247. package/src/components/apps/ledger-hero-panel.tsx +67 -0
  248. package/src/components/apps/monthly-close-summary.tsx +43 -0
  249. package/src/components/apps/period-selector-chip.tsx +40 -0
  250. package/src/components/apps/research-split-view.tsx +145 -0
  251. package/src/components/apps/run-history-strip.tsx +35 -0
  252. package/src/components/apps/run-history-timeline.tsx +98 -0
  253. package/src/components/apps/run-now-button.tsx +89 -0
  254. package/src/components/apps/run-now-sheet.tsx +124 -0
  255. package/src/components/apps/schedule-cadence-chip.tsx +39 -0
  256. package/src/components/apps/starter-template-card.tsx +134 -0
  257. package/src/components/apps/throughput-strip.tsx +110 -0
  258. package/src/components/apps/transactions-table.tsx +53 -0
  259. package/src/components/apps/trigger-source-chip.tsx +34 -0
  260. package/src/components/charts/donut-ring.tsx +64 -0
  261. package/src/components/charts/mini-bar.tsx +75 -0
  262. package/src/components/charts/run-cadence-heatmap.tsx +74 -0
  263. package/src/components/charts/sparkline.tsx +107 -0
  264. package/src/components/charts/time-series-chart.tsx +69 -0
  265. package/src/components/chat/app-composer-hero.tsx +85 -0
  266. package/src/components/chat/app-materialized-card.tsx +146 -0
  267. package/src/components/chat/app-view-editor-card.tsx +203 -0
  268. package/src/components/chat/branch-action-button.tsx +103 -0
  269. package/src/components/chat/branches-tree-dialog.tsx +147 -0
  270. package/src/components/chat/capability-banner.tsx +68 -0
  271. package/src/components/chat/chat-activity-indicator.tsx +92 -0
  272. package/src/components/chat/chat-command-popover.tsx +901 -0
  273. package/src/components/chat/chat-empty-state.tsx +187 -0
  274. package/src/components/chat/chat-input.tsx +388 -0
  275. package/src/components/chat/chat-message-list.tsx +87 -0
  276. package/src/components/chat/chat-message-markdown.tsx +205 -0
  277. package/src/components/chat/chat-message.tsx +293 -0
  278. package/src/components/chat/chat-model-selector.tsx +165 -0
  279. package/src/components/chat/chat-permission-request.tsx +121 -0
  280. package/src/components/chat/chat-question.tsx +175 -0
  281. package/src/components/chat/chat-quick-access.tsx +56 -0
  282. package/src/components/chat/chat-session-provider.tsx +958 -0
  283. package/src/components/chat/chat-shell.tsx +362 -0
  284. package/src/components/chat/chat-table-result.tsx +139 -0
  285. package/src/components/chat/command-tab-bar.tsx +68 -0
  286. package/src/components/chat/conversation-list.tsx +209 -0
  287. package/src/components/chat/conversation-template-picker.tsx +421 -0
  288. package/src/components/chat/extension-fallback-card.tsx +241 -0
  289. package/src/components/chat/help-dialog.tsx +39 -0
  290. package/src/components/chat/screenshot-gallery.tsx +96 -0
  291. package/src/components/chat/skill-composition-conflict-dialog.tsx +96 -0
  292. package/src/components/chat/skill-row.tsx +147 -0
  293. package/src/components/costs/cost-dashboard.tsx +769 -0
  294. package/src/components/costs/cost-filters.tsx +179 -0
  295. package/src/components/customers/customer-detail-actions.tsx +28 -0
  296. package/src/components/customers/customer-form-sheet.tsx +203 -0
  297. package/src/components/customers/customer-list.tsx +134 -0
  298. package/src/components/dashboard/activity-feed.tsx +99 -0
  299. package/src/components/dashboard/greeting.tsx +32 -0
  300. package/src/components/dashboard/priority-queue.tsx +128 -0
  301. package/src/components/dashboard/quick-actions.tsx +39 -0
  302. package/src/components/dashboard/recent-projects.tsx +79 -0
  303. package/src/components/dashboard/welcome-landing.tsx +109 -0
  304. package/src/components/data-table/data-table-column-header.tsx +48 -0
  305. package/src/components/data-table/data-table-pagination.tsx +99 -0
  306. package/src/components/data-table/data-table-toolbar.tsx +73 -0
  307. package/src/components/data-table/data-table.tsx +203 -0
  308. package/src/components/data-table/index.ts +4 -0
  309. package/src/components/detail-pane/detail-pane-header.tsx +56 -0
  310. package/src/components/detail-pane/detail-pane-provider.tsx +102 -0
  311. package/src/components/detail-pane/detail-pane-tabs.tsx +78 -0
  312. package/src/components/detail-pane/index.ts +11 -0
  313. package/src/components/documents/document-browser.tsx +266 -0
  314. package/src/components/documents/document-chip-bar.tsx +199 -0
  315. package/src/components/documents/document-content-renderer.tsx +146 -0
  316. package/src/components/documents/document-detail-sheet.tsx +290 -0
  317. package/src/components/documents/document-detail-view.tsx +195 -0
  318. package/src/components/documents/document-grid.tsx +83 -0
  319. package/src/components/documents/document-table.tsx +123 -0
  320. package/src/components/documents/document-upload-dialog.tsx +153 -0
  321. package/src/components/documents/image-zoom-view.tsx +60 -0
  322. package/src/components/documents/smart-extracted-text.tsx +47 -0
  323. package/src/components/documents/types.ts +9 -0
  324. package/src/components/documents/utils.ts +127 -0
  325. package/src/components/environment/adoption-prompt.tsx +76 -0
  326. package/src/components/environment/artifact-card.tsx +93 -0
  327. package/src/components/environment/artifact-detail-sheet.tsx +136 -0
  328. package/src/components/environment/artifact-presence-cell.tsx +44 -0
  329. package/src/components/environment/category-filter-bar.tsx +132 -0
  330. package/src/components/environment/checkpoint-list.tsx +169 -0
  331. package/src/components/environment/comparison-matrix.tsx +132 -0
  332. package/src/components/environment/environment-dashboard.tsx +248 -0
  333. package/src/components/environment/environment-summary-card.tsx +153 -0
  334. package/src/components/environment/health-score-card.tsx +86 -0
  335. package/src/components/environment/persona-indicator.tsx +43 -0
  336. package/src/components/environment/profile-create-dialog.tsx +178 -0
  337. package/src/components/environment/project-diff-view.tsx +59 -0
  338. package/src/components/environment/project-scan-badge.tsx +36 -0
  339. package/src/components/environment/rollback-confirm-dialog.tsx +105 -0
  340. package/src/components/environment/scan-status-bar.tsx +48 -0
  341. package/src/components/environment/skill-catalog.tsx +117 -0
  342. package/src/components/environment/skill-detail-sheet.tsx +106 -0
  343. package/src/components/environment/skill-drift-indicator.tsx +42 -0
  344. package/src/components/environment/suggested-profiles.tsx +162 -0
  345. package/src/components/environment/summary-cards-row.tsx +91 -0
  346. package/src/components/environment/sync-action-buttons.tsx +63 -0
  347. package/src/components/environment/sync-preview-dialog.tsx +205 -0
  348. package/src/components/environment/template-list.tsx +149 -0
  349. package/src/components/environment/tool-comparison-view.tsx +75 -0
  350. package/src/components/handoffs/handoff-approval-card.tsx +159 -0
  351. package/src/components/instance/instance-section.tsx +406 -0
  352. package/src/components/instance/upgrade-badge.tsx +219 -0
  353. package/src/components/memory/memory-browser.tsx +315 -0
  354. package/src/components/monitoring/connection-indicator.tsx +14 -0
  355. package/src/components/monitoring/log-entry.tsx +113 -0
  356. package/src/components/monitoring/log-filters.tsx +57 -0
  357. package/src/components/monitoring/log-stream.tsx +144 -0
  358. package/src/components/monitoring/monitor-overview-wrapper.tsx +64 -0
  359. package/src/components/monitoring/monitor-overview.tsx +119 -0
  360. package/src/components/notifications/batch-proposal-review.tsx +165 -0
  361. package/src/components/notifications/failure-action.tsx +38 -0
  362. package/src/components/notifications/governance-stats.tsx +62 -0
  363. package/src/components/notifications/inbox-list.tsx +173 -0
  364. package/src/components/notifications/message-response.tsx +196 -0
  365. package/src/components/notifications/notification-item.tsx +374 -0
  366. package/src/components/notifications/pending-approval-host.tsx +576 -0
  367. package/src/components/notifications/permission-action.tsx +37 -0
  368. package/src/components/notifications/permission-response-actions.tsx +280 -0
  369. package/src/components/notifications/unread-badge.tsx +35 -0
  370. package/src/components/onboarding/activation-checklist.tsx +64 -0
  371. package/src/components/onboarding/donut-ring.tsx +52 -0
  372. package/src/components/onboarding/runtime-preference-bootstrapper.tsx +51 -0
  373. package/src/components/onboarding/runtime-preference-modal.tsx +296 -0
  374. package/src/components/profiles/context-proposal-review.tsx +150 -0
  375. package/src/components/profiles/learned-context-panel.tsx +396 -0
  376. package/src/components/profiles/profile-assist-panel.tsx +512 -0
  377. package/src/components/profiles/profile-browser.tsx +211 -0
  378. package/src/components/profiles/profile-card.tsx +114 -0
  379. package/src/components/profiles/profile-detail-view.tsx +735 -0
  380. package/src/components/profiles/profile-form-view.tsx +596 -0
  381. package/src/components/profiles/profile-import-dialog.tsx +113 -0
  382. package/src/components/profiles/repo-import-wizard.tsx +648 -0
  383. package/src/components/profiles/smoke-test-editor.tsx +106 -0
  384. package/src/components/projects/project-card.tsx +79 -0
  385. package/src/components/projects/project-create-dialog.tsx +140 -0
  386. package/src/components/projects/project-detail.tsx +201 -0
  387. package/src/components/projects/project-edit-dialog.tsx +219 -0
  388. package/src/components/projects/project-form-sheet.tsx +386 -0
  389. package/src/components/projects/project-list.tsx +130 -0
  390. package/src/components/schedules/schedule-create-dialog.tsx +403 -0
  391. package/src/components/schedules/schedule-create-sheet.tsx +122 -0
  392. package/src/components/schedules/schedule-detail-sheet.tsx +309 -0
  393. package/src/components/schedules/schedule-detail-view.tsx +274 -0
  394. package/src/components/schedules/schedule-edit-sheet.tsx +178 -0
  395. package/src/components/schedules/schedule-form.tsx +870 -0
  396. package/src/components/schedules/schedule-list.tsx +294 -0
  397. package/src/components/schedules/schedule-status-badge.tsx +16 -0
  398. package/src/components/settings/api-key-form.tsx +103 -0
  399. package/src/components/settings/auth-config-section.tsx +145 -0
  400. package/src/components/settings/auth-method-selector.tsx +88 -0
  401. package/src/components/settings/auth-status-badge.tsx +73 -0
  402. package/src/components/settings/auth-status-dot.tsx +59 -0
  403. package/src/components/settings/browser-tools-section.tsx +247 -0
  404. package/src/components/settings/budget-guardrails-section.tsx +688 -0
  405. package/src/components/settings/channels-section.tsx +526 -0
  406. package/src/components/settings/chat-settings-section.tsx +214 -0
  407. package/src/components/settings/connection-test-control.tsx +63 -0
  408. package/src/components/settings/data-management-section.tsx +153 -0
  409. package/src/components/settings/database-snapshots-section.tsx +469 -0
  410. package/src/components/settings/environment-section.tsx +102 -0
  411. package/src/components/settings/learning-context-section.tsx +124 -0
  412. package/src/components/settings/ollama-section.tsx +270 -0
  413. package/src/components/settings/openai-chatgpt-auth-control.tsx +278 -0
  414. package/src/components/settings/openai-runtime-section.tsx +110 -0
  415. package/src/components/settings/permissions-section.tsx +101 -0
  416. package/src/components/settings/permissions-sections.tsx +24 -0
  417. package/src/components/settings/presets-section.tsx +159 -0
  418. package/src/components/settings/pricing-registry-panel.tsx +164 -0
  419. package/src/components/settings/providers-runtimes-section.tsx +1029 -0
  420. package/src/components/settings/runtime-timeout-section.tsx +170 -0
  421. package/src/components/settings/web-search-section.tsx +101 -0
  422. package/src/components/shared/ainative-logo.tsx +20 -0
  423. package/src/components/shared/ainative-wordmark.tsx +26 -0
  424. package/src/components/shared/card-skeleton.tsx +42 -0
  425. package/src/components/shared/command-palette.tsx +497 -0
  426. package/src/components/shared/confirm-dialog.tsx +52 -0
  427. package/src/components/shared/detail-pane.tsx +136 -0
  428. package/src/components/shared/document-picker-sheet.tsx +486 -0
  429. package/src/components/shared/empty-state.tsx +24 -0
  430. package/src/components/shared/error-boundary.tsx +24 -0
  431. package/src/components/shared/error-state.tsx +32 -0
  432. package/src/components/shared/filter-bar.tsx +62 -0
  433. package/src/components/shared/filter-hint.tsx +70 -0
  434. package/src/components/shared/filter-input.tsx +59 -0
  435. package/src/components/shared/form-section-card.tsx +33 -0
  436. package/src/components/shared/global-shortcuts.tsx +108 -0
  437. package/src/components/shared/light-markdown.tsx +134 -0
  438. package/src/components/shared/of-mark.tsx +35 -0
  439. package/src/components/shared/page-header.tsx +74 -0
  440. package/src/components/shared/page-shell.tsx +111 -0
  441. package/src/components/shared/saved-searches-manager.tsx +199 -0
  442. package/src/components/shared/screenshot-lightbox.tsx +151 -0
  443. package/src/components/shared/section-heading.tsx +20 -0
  444. package/src/components/shared/shortcut-hint.tsx +27 -0
  445. package/src/components/shared/status-chip.tsx +78 -0
  446. package/src/components/shared/tag-input.tsx +156 -0
  447. package/src/components/shared/theme-toggle.tsx +28 -0
  448. package/src/components/shared/trust-tier-badge.tsx +189 -0
  449. package/src/components/shared/view-switcher.tsx +266 -0
  450. package/src/components/shared/workspace-indicator.tsx +119 -0
  451. package/src/components/shell/app-bar.tsx +213 -0
  452. package/src/components/shell/app-shell.tsx +22 -0
  453. package/src/components/shell/nav-items.ts +108 -0
  454. package/src/components/shell/rail-cell.tsx +95 -0
  455. package/src/components/shell/telemetry-rail.tsx +166 -0
  456. package/src/components/shell/telemetry-types.ts +49 -0
  457. package/src/components/shell/use-telemetry.ts +76 -0
  458. package/src/components/tables/table-browser.tsx +234 -0
  459. package/src/components/tables/table-cell-editor.tsx +226 -0
  460. package/src/components/tables/table-chart-builder.tsx +288 -0
  461. package/src/components/tables/table-chart-view.tsx +146 -0
  462. package/src/components/tables/table-column-header.tsx +103 -0
  463. package/src/components/tables/table-column-sheet.tsx +331 -0
  464. package/src/components/tables/table-create-sheet.tsx +244 -0
  465. package/src/components/tables/table-detail-sheet.tsx +144 -0
  466. package/src/components/tables/table-detail-tabs.tsx +278 -0
  467. package/src/components/tables/table-enrichment-runs.tsx +103 -0
  468. package/src/components/tables/table-enrichment-sheet.tsx +538 -0
  469. package/src/components/tables/table-grid.tsx +61 -0
  470. package/src/components/tables/table-history-tab.tsx +148 -0
  471. package/src/components/tables/table-import-wizard.tsx +542 -0
  472. package/src/components/tables/table-list-table.tsx +95 -0
  473. package/src/components/tables/table-relation-combobox.tsx +217 -0
  474. package/src/components/tables/table-row-sheet.tsx +271 -0
  475. package/src/components/tables/table-spreadsheet.tsx +418 -0
  476. package/src/components/tables/table-template-gallery.tsx +162 -0
  477. package/src/components/tables/table-template-preview.tsx +219 -0
  478. package/src/components/tables/table-toolbar.tsx +88 -0
  479. package/src/components/tables/table-triggers-tab.tsx +446 -0
  480. package/src/components/tables/types.ts +6 -0
  481. package/src/components/tables/use-spreadsheet-keys.ts +171 -0
  482. package/src/components/tables/utils.ts +29 -0
  483. package/src/components/tasks/ai-assist-panel.tsx +320 -0
  484. package/src/components/tasks/behavior-explainer.tsx +169 -0
  485. package/src/components/tasks/content-preview.tsx +90 -0
  486. package/src/components/tasks/density-toggle.tsx +47 -0
  487. package/src/components/tasks/empty-board.tsx +12 -0
  488. package/src/components/tasks/kanban-board.tsx +472 -0
  489. package/src/components/tasks/kanban-column.tsx +278 -0
  490. package/src/components/tasks/skeleton-board.tsx +21 -0
  491. package/src/components/tasks/task-attachments.tsx +114 -0
  492. package/src/components/tasks/task-bento-cell.tsx +50 -0
  493. package/src/components/tasks/task-bento-grid.tsx +184 -0
  494. package/src/components/tasks/task-card.tsx +290 -0
  495. package/src/components/tasks/task-chip-bar.tsx +265 -0
  496. package/src/components/tasks/task-create-panel.tsx +547 -0
  497. package/src/components/tasks/task-detail-sheet.tsx +188 -0
  498. package/src/components/tasks/task-detail-view.tsx +185 -0
  499. package/src/components/tasks/task-edit-dialog.tsx +378 -0
  500. package/src/components/tasks/task-result-renderer.tsx +33 -0
  501. package/src/components/tasks/task-surface.tsx +154 -0
  502. package/src/components/tasks/task-table-view.tsx +395 -0
  503. package/src/components/tasks/task-view-toggle.tsx +77 -0
  504. package/src/components/ui/alert-dialog.tsx +196 -0
  505. package/src/components/ui/badge.tsx +50 -0
  506. package/src/components/ui/button.tsx +71 -0
  507. package/src/components/ui/card.tsx +92 -0
  508. package/src/components/ui/checkbox.tsx +32 -0
  509. package/src/components/ui/command.tsx +184 -0
  510. package/src/components/ui/dialog.tsx +158 -0
  511. package/src/components/ui/dropdown-menu.tsx +257 -0
  512. package/src/components/ui/form.tsx +167 -0
  513. package/src/components/ui/input.tsx +21 -0
  514. package/src/components/ui/label.tsx +24 -0
  515. package/src/components/ui/popover.tsx +89 -0
  516. package/src/components/ui/progress.tsx +31 -0
  517. package/src/components/ui/radio-group.tsx +45 -0
  518. package/src/components/ui/scroll-area.tsx +58 -0
  519. package/src/components/ui/select.tsx +190 -0
  520. package/src/components/ui/separator.tsx +28 -0
  521. package/src/components/ui/sheet.tsx +143 -0
  522. package/src/components/ui/sidebar.tsx +726 -0
  523. package/src/components/ui/skeleton.tsx +13 -0
  524. package/src/components/ui/slider.tsx +63 -0
  525. package/src/components/ui/sonner.tsx +36 -0
  526. package/src/components/ui/switch.tsx +35 -0
  527. package/src/components/ui/table.tsx +116 -0
  528. package/src/components/ui/tabs.tsx +91 -0
  529. package/src/components/ui/textarea.tsx +18 -0
  530. package/src/components/ui/tooltip.tsx +57 -0
  531. package/src/components/workflows/blueprint-editor.tsx +109 -0
  532. package/src/components/workflows/blueprint-gallery.tsx +162 -0
  533. package/src/components/workflows/blueprint-preview.tsx +172 -0
  534. package/src/components/workflows/delay-step-body.tsx +109 -0
  535. package/src/components/workflows/error-timeline.tsx +83 -0
  536. package/src/components/workflows/hooks/use-workflow-status.ts +50 -0
  537. package/src/components/workflows/loop-status-view.tsx +270 -0
  538. package/src/components/workflows/shared/step-result.tsx +78 -0
  539. package/src/components/workflows/shared/workflow-header.tsx +141 -0
  540. package/src/components/workflows/shared/workflow-loading-skeleton.tsx +36 -0
  541. package/src/components/workflows/step-live-metrics.tsx +182 -0
  542. package/src/components/workflows/step-progress-bar.tsx +77 -0
  543. package/src/components/workflows/swarm-dashboard.tsx +171 -0
  544. package/src/components/workflows/variable-input.tsx +90 -0
  545. package/src/components/workflows/views/loop-pattern-view.tsx +137 -0
  546. package/src/components/workflows/views/sequence-pattern-view.tsx +511 -0
  547. package/src/components/workflows/workflow-confirmation-view.tsx +442 -0
  548. package/src/components/workflows/workflow-debug-panel.tsx +192 -0
  549. package/src/components/workflows/workflow-form-view.tsx +1728 -0
  550. package/src/components/workflows/workflow-full-output.tsx +80 -0
  551. package/src/components/workflows/workflow-kanban-card.tsx +130 -0
  552. package/src/components/workflows/workflow-list.tsx +302 -0
  553. package/src/components/workflows/workflow-optimizer-panel.tsx +227 -0
  554. package/src/components/workflows/workflow-page-actions.tsx +22 -0
  555. package/src/components/workflows/workflow-status-view.tsx +64 -0
  556. package/src/components/workspace/discover-workspace-dialog.tsx +469 -0
  557. package/src/components/workspace/discovery-project-row.tsx +141 -0
  558. package/src/components/workspace/import-progress-list.tsx +92 -0
  559. package/src/hooks/use-active-skills.ts +110 -0
  560. package/src/hooks/use-caret-position.ts +104 -0
  561. package/src/hooks/use-chat-autocomplete.ts +401 -0
  562. package/src/hooks/use-enriched-skills.ts +19 -0
  563. package/src/hooks/use-mobile.ts +19 -0
  564. package/src/hooks/use-persisted-state.ts +40 -0
  565. package/src/hooks/use-pinned-entries.ts +104 -0
  566. package/src/hooks/use-project-skills.ts +66 -0
  567. package/src/hooks/use-recent-user-messages.ts +19 -0
  568. package/src/hooks/use-reduced-motion.ts +25 -0
  569. package/src/hooks/use-saved-searches.ts +142 -0
  570. package/src/hooks/use-shortcuts.ts +50 -0
  571. package/src/hooks/use-snoozed-banners.ts +73 -0
  572. package/src/hooks/use-tag-suggestions.ts +31 -0
  573. package/src/hooks/use-task-detail.ts +261 -0
  574. package/src/instrumentation-node.ts +129 -0
  575. package/src/instrumentation.ts +7 -0
  576. package/src/lib/agents/agentic-loop.ts +242 -0
  577. package/src/lib/agents/browser-mcp.ts +174 -0
  578. package/src/lib/agents/claude-agent.ts +922 -0
  579. package/src/lib/agents/execution-manager.ts +27 -0
  580. package/src/lib/agents/handoff/bus.ts +164 -0
  581. package/src/lib/agents/handoff/governance.ts +47 -0
  582. package/src/lib/agents/handoff/types.ts +16 -0
  583. package/src/lib/agents/learned-context.ts +347 -0
  584. package/src/lib/agents/learning-session.ts +367 -0
  585. package/src/lib/agents/memory/decay.ts +61 -0
  586. package/src/lib/agents/memory/extractor.ts +181 -0
  587. package/src/lib/agents/memory/retrieval.ts +96 -0
  588. package/src/lib/agents/memory/types.ts +6 -0
  589. package/src/lib/agents/pattern-extractor.ts +120 -0
  590. package/src/lib/agents/profiles/app-manifest-source.ts +85 -0
  591. package/src/lib/agents/profiles/assignment-validation.ts +75 -0
  592. package/src/lib/agents/profiles/builtins/code-reviewer/SKILL.md +21 -0
  593. package/src/lib/agents/profiles/builtins/code-reviewer/profile.yaml +27 -0
  594. package/src/lib/agents/profiles/builtins/content-creator/SKILL.md +19 -0
  595. package/src/lib/agents/profiles/builtins/content-creator/profile.yaml +27 -0
  596. package/src/lib/agents/profiles/builtins/customer-support-agent/SKILL.md +19 -0
  597. package/src/lib/agents/profiles/builtins/customer-support-agent/profile.yaml +26 -0
  598. package/src/lib/agents/profiles/builtins/data-analyst/SKILL.md +25 -0
  599. package/src/lib/agents/profiles/builtins/data-analyst/profile.yaml +26 -0
  600. package/src/lib/agents/profiles/builtins/devops-engineer/SKILL.md +34 -0
  601. package/src/lib/agents/profiles/builtins/devops-engineer/profile.yaml +26 -0
  602. package/src/lib/agents/profiles/builtins/document-writer/SKILL.md +38 -0
  603. package/src/lib/agents/profiles/builtins/document-writer/profile.yaml +26 -0
  604. package/src/lib/agents/profiles/builtins/financial-analyst/SKILL.md +19 -0
  605. package/src/lib/agents/profiles/builtins/financial-analyst/profile.yaml +24 -0
  606. package/src/lib/agents/profiles/builtins/general/SKILL.md +13 -0
  607. package/src/lib/agents/profiles/builtins/general/profile.yaml +17 -0
  608. package/src/lib/agents/profiles/builtins/health-fitness-coach/SKILL.md +34 -0
  609. package/src/lib/agents/profiles/builtins/health-fitness-coach/profile.yaml +25 -0
  610. package/src/lib/agents/profiles/builtins/learning-coach/SKILL.md +35 -0
  611. package/src/lib/agents/profiles/builtins/learning-coach/profile.yaml +25 -0
  612. package/src/lib/agents/profiles/builtins/marketing-strategist/SKILL.md +19 -0
  613. package/src/lib/agents/profiles/builtins/marketing-strategist/profile.yaml +27 -0
  614. package/src/lib/agents/profiles/builtins/operations-coordinator/SKILL.md +19 -0
  615. package/src/lib/agents/profiles/builtins/operations-coordinator/profile.yaml +26 -0
  616. package/src/lib/agents/profiles/builtins/project-manager/SKILL.md +26 -0
  617. package/src/lib/agents/profiles/builtins/project-manager/profile.yaml +25 -0
  618. package/src/lib/agents/profiles/builtins/researcher/SKILL.md +17 -0
  619. package/src/lib/agents/profiles/builtins/researcher/profile.yaml +26 -0
  620. package/src/lib/agents/profiles/builtins/sales-researcher/SKILL.md +19 -0
  621. package/src/lib/agents/profiles/builtins/sales-researcher/profile.yaml +26 -0
  622. package/src/lib/agents/profiles/builtins/shopping-assistant/SKILL.md +35 -0
  623. package/src/lib/agents/profiles/builtins/shopping-assistant/profile.yaml +25 -0
  624. package/src/lib/agents/profiles/builtins/sweep/SKILL.md +47 -0
  625. package/src/lib/agents/profiles/builtins/sweep/profile.yaml +11 -0
  626. package/src/lib/agents/profiles/builtins/technical-writer/SKILL.md +41 -0
  627. package/src/lib/agents/profiles/builtins/technical-writer/profile.yaml +28 -0
  628. package/src/lib/agents/profiles/builtins/travel-planner/SKILL.md +25 -0
  629. package/src/lib/agents/profiles/builtins/travel-planner/profile.yaml +25 -0
  630. package/src/lib/agents/profiles/builtins/upgrade-assistant/SKILL.md +97 -0
  631. package/src/lib/agents/profiles/builtins/upgrade-assistant/profile.yaml +36 -0
  632. package/src/lib/agents/profiles/builtins/wealth-manager/SKILL.md +26 -0
  633. package/src/lib/agents/profiles/builtins/wealth-manager/profile.yaml +25 -0
  634. package/src/lib/agents/profiles/compatibility.ts +109 -0
  635. package/src/lib/agents/profiles/list-fused-profiles.ts +104 -0
  636. package/src/lib/agents/profiles/project-profiles.ts +193 -0
  637. package/src/lib/agents/profiles/registry.ts +606 -0
  638. package/src/lib/agents/profiles/sort.ts +7 -0
  639. package/src/lib/agents/profiles/suggest.ts +36 -0
  640. package/src/lib/agents/profiles/test-runner.ts +18 -0
  641. package/src/lib/agents/profiles/test-types.ts +20 -0
  642. package/src/lib/agents/profiles/types.ts +76 -0
  643. package/src/lib/agents/provenance.ts +111 -0
  644. package/src/lib/agents/router.ts +225 -0
  645. package/src/lib/agents/runtime/anthropic-direct.ts +750 -0
  646. package/src/lib/agents/runtime/catalog.ts +333 -0
  647. package/src/lib/agents/runtime/claude-sdk.ts +58 -0
  648. package/src/lib/agents/runtime/claude.ts +734 -0
  649. package/src/lib/agents/runtime/codex-app-server-client.ts +319 -0
  650. package/src/lib/agents/runtime/execution-target.ts +516 -0
  651. package/src/lib/agents/runtime/index.ts +193 -0
  652. package/src/lib/agents/runtime/launch-failure.ts +101 -0
  653. package/src/lib/agents/runtime/ollama-adapter.ts +409 -0
  654. package/src/lib/agents/runtime/openai-codex-auth.ts +389 -0
  655. package/src/lib/agents/runtime/openai-codex.ts +1107 -0
  656. package/src/lib/agents/runtime/openai-direct.ts +646 -0
  657. package/src/lib/agents/runtime/profile-assist-types.ts +30 -0
  658. package/src/lib/agents/runtime/task-assist-types.ts +18 -0
  659. package/src/lib/agents/runtime/types.ts +40 -0
  660. package/src/lib/agents/sweep.ts +65 -0
  661. package/src/lib/agents/task-dispatch.ts +220 -0
  662. package/src/lib/agents/tool-permissions.ts +254 -0
  663. package/src/lib/analytics/queries.ts +207 -0
  664. package/src/lib/apps/compose-integration.ts +145 -0
  665. package/src/lib/apps/composition-detector.ts +123 -0
  666. package/src/lib/apps/manifest-trigger-dispatch.ts +195 -0
  667. package/src/lib/apps/registry.ts +575 -0
  668. package/src/lib/apps/starters.ts +64 -0
  669. package/src/lib/apps/use-apps.ts +51 -0
  670. package/src/lib/apps/view-kits/data.ts +819 -0
  671. package/src/lib/apps/view-kits/default-kpis.ts +128 -0
  672. package/src/lib/apps/view-kits/detect-trigger-source.ts +60 -0
  673. package/src/lib/apps/view-kits/evaluate-kpi.ts +94 -0
  674. package/src/lib/apps/view-kits/format-kpi.ts +60 -0
  675. package/src/lib/apps/view-kits/index.ts +120 -0
  676. package/src/lib/apps/view-kits/inference.ts +211 -0
  677. package/src/lib/apps/view-kits/kits/coach.ts +104 -0
  678. package/src/lib/apps/view-kits/kits/inbox.ts +135 -0
  679. package/src/lib/apps/view-kits/kits/ledger.ts +158 -0
  680. package/src/lib/apps/view-kits/kits/placeholder.ts +58 -0
  681. package/src/lib/apps/view-kits/kits/research.ts +129 -0
  682. package/src/lib/apps/view-kits/kits/tracker.ts +124 -0
  683. package/src/lib/apps/view-kits/kits/workflow-hub.ts +108 -0
  684. package/src/lib/apps/view-kits/kpi-context.ts +174 -0
  685. package/src/lib/apps/view-kits/resolve.ts +28 -0
  686. package/src/lib/apps/view-kits/types.ts +236 -0
  687. package/src/lib/channels/gateway.ts +321 -0
  688. package/src/lib/channels/poller.ts +268 -0
  689. package/src/lib/channels/registry.ts +90 -0
  690. package/src/lib/channels/slack-adapter.ts +188 -0
  691. package/src/lib/channels/telegram-adapter.ts +218 -0
  692. package/src/lib/channels/types.ts +75 -0
  693. package/src/lib/channels/webhook-adapter.ts +74 -0
  694. package/src/lib/chat/active-skills.ts +31 -0
  695. package/src/lib/chat/active-streams.ts +27 -0
  696. package/src/lib/chat/ainative-tools.ts +133 -0
  697. package/src/lib/chat/branching/flag.ts +22 -0
  698. package/src/lib/chat/clean-filter-input.ts +30 -0
  699. package/src/lib/chat/codex-engine.ts +559 -0
  700. package/src/lib/chat/command-data.ts +48 -0
  701. package/src/lib/chat/command-tabs.ts +61 -0
  702. package/src/lib/chat/context-builder.ts +478 -0
  703. package/src/lib/chat/dismissals.ts +73 -0
  704. package/src/lib/chat/engine.ts +1009 -0
  705. package/src/lib/chat/entity-detector.ts +244 -0
  706. package/src/lib/chat/files/expand-mention.ts +76 -0
  707. package/src/lib/chat/files/search.ts +99 -0
  708. package/src/lib/chat/model-discovery.ts +105 -0
  709. package/src/lib/chat/ollama-engine.ts +198 -0
  710. package/src/lib/chat/permission-bridge.ts +185 -0
  711. package/src/lib/chat/planner/classifier.ts +195 -0
  712. package/src/lib/chat/planner/composition-hint.ts +101 -0
  713. package/src/lib/chat/planner/primitive-map.ts +96 -0
  714. package/src/lib/chat/planner/trigger-phrases.ts +26 -0
  715. package/src/lib/chat/planner/types.ts +34 -0
  716. package/src/lib/chat/planner/view-editing-hint.ts +167 -0
  717. package/src/lib/chat/reconcile.ts +117 -0
  718. package/src/lib/chat/skill-composition.ts +210 -0
  719. package/src/lib/chat/skill-conflict.ts +105 -0
  720. package/src/lib/chat/slash-commands.ts +191 -0
  721. package/src/lib/chat/stream-telemetry.ts +137 -0
  722. package/src/lib/chat/suggested-prompts.ts +313 -0
  723. package/src/lib/chat/system-prompt.ts +139 -0
  724. package/src/lib/chat/tool-catalog.ts +275 -0
  725. package/src/lib/chat/tool-registry.ts +91 -0
  726. package/src/lib/chat/tools/app-view-tools.ts +207 -0
  727. package/src/lib/chat/tools/blueprint-tools.ts +241 -0
  728. package/src/lib/chat/tools/chat-history-tools.ts +177 -0
  729. package/src/lib/chat/tools/document-tools.ts +357 -0
  730. package/src/lib/chat/tools/handoff-tools.ts +70 -0
  731. package/src/lib/chat/tools/helpers.ts +65 -0
  732. package/src/lib/chat/tools/notification-tools.ts +149 -0
  733. package/src/lib/chat/tools/plugin-spec-tools.ts +574 -0
  734. package/src/lib/chat/tools/plugin-tools.ts +357 -0
  735. package/src/lib/chat/tools/profile-tools.ts +163 -0
  736. package/src/lib/chat/tools/project-tools.ts +122 -0
  737. package/src/lib/chat/tools/runtime-tools.ts +28 -0
  738. package/src/lib/chat/tools/schedule-spec-tools.ts +86 -0
  739. package/src/lib/chat/tools/schedule-tools.ts +384 -0
  740. package/src/lib/chat/tools/settings-tools.ts +212 -0
  741. package/src/lib/chat/tools/skill-tools.ts +183 -0
  742. package/src/lib/chat/tools/table-tools.ts +1071 -0
  743. package/src/lib/chat/tools/task-tools.ts +390 -0
  744. package/src/lib/chat/tools/usage-tools.ts +41 -0
  745. package/src/lib/chat/tools/workflow-tools.ts +841 -0
  746. package/src/lib/chat/types.ts +145 -0
  747. package/src/lib/config/env.ts +97 -0
  748. package/src/lib/constants/card-icons.tsx +202 -0
  749. package/src/lib/constants/known-tools.ts +19 -0
  750. package/src/lib/constants/prose-styles.ts +7 -0
  751. package/src/lib/constants/settings.ts +39 -0
  752. package/src/lib/constants/status-colors.ts +44 -0
  753. package/src/lib/constants/status-families.ts +238 -0
  754. package/src/lib/constants/table-status.ts +68 -0
  755. package/src/lib/constants/task-status.ts +58 -0
  756. package/src/lib/customers/index.ts +81 -0
  757. package/src/lib/data/channel-bindings.ts +85 -0
  758. package/src/lib/data/chat.ts +631 -0
  759. package/src/lib/data/clear.ts +215 -0
  760. package/src/lib/data/delete-project.ts +171 -0
  761. package/src/lib/data/profile-test-results.ts +48 -0
  762. package/src/lib/data/row-hash.ts +41 -0
  763. package/src/lib/data/seed-data/agent-memory.ts +320 -0
  764. package/src/lib/data/seed-data/agent-messages.ts +266 -0
  765. package/src/lib/data/seed-data/channels.ts +178 -0
  766. package/src/lib/data/seed-data/conversations.ts +504 -0
  767. package/src/lib/data/seed-data/document-pools.ts +192 -0
  768. package/src/lib/data/seed-data/documents.ts +679 -0
  769. package/src/lib/data/seed-data/environment.ts +507 -0
  770. package/src/lib/data/seed-data/learned-context.ts +178 -0
  771. package/src/lib/data/seed-data/logs.ts +195 -0
  772. package/src/lib/data/seed-data/notifications.ts +468 -0
  773. package/src/lib/data/seed-data/profile-test-results.ts +177 -0
  774. package/src/lib/data/seed-data/profiles.ts +270 -0
  775. package/src/lib/data/seed-data/projects.ts +93 -0
  776. package/src/lib/data/seed-data/repo-imports.ts +66 -0
  777. package/src/lib/data/seed-data/schedules.ts +275 -0
  778. package/src/lib/data/seed-data/table-extras.ts +226 -0
  779. package/src/lib/data/seed-data/table-templates.ts +314 -0
  780. package/src/lib/data/seed-data/tasks.ts +839 -0
  781. package/src/lib/data/seed-data/usage-ledger.ts +209 -0
  782. package/src/lib/data/seed-data/user-tables.ts +203 -0
  783. package/src/lib/data/seed-data/views.ts +105 -0
  784. package/src/lib/data/seed-data/workflow-stats.ts +202 -0
  785. package/src/lib/data/seed-data/workflows.ts +360 -0
  786. package/src/lib/data/seed.ts +418 -0
  787. package/src/lib/data/tables.ts +569 -0
  788. package/src/lib/db/bootstrap.ts +1043 -0
  789. package/src/lib/db/index.ts +31 -0
  790. package/src/lib/db/migrations/0000_aromatic_gargoyle.sql +59 -0
  791. package/src/lib/db/migrations/0001_first_iron_patriot.sql +6 -0
  792. package/src/lib/db/migrations/0002_add_resume_count.sql +1 -0
  793. package/src/lib/db/migrations/0003_add_settings.sql +5 -0
  794. package/src/lib/db/migrations/0004_add_documents.sql +21 -0
  795. package/src/lib/db/migrations/0005_add_document_preprocessing.sql +6 -0
  796. package/src/lib/db/migrations/0006_add_agent_profile.sql +3 -0
  797. package/src/lib/db/migrations/0007_add_usage_metering_ledger.sql +37 -0
  798. package/src/lib/db/migrations/0008_add_document_version.sql +1 -0
  799. package/src/lib/db/migrations/0009_add_app_instances.sql +25 -0
  800. package/src/lib/db/migrations/0009_add_views.sql +16 -0
  801. package/src/lib/db/migrations/0010_add_environment_tables.sql +74 -0
  802. package/src/lib/db/migrations/0011_add_environment_templates.sql +12 -0
  803. package/src/lib/db/migrations/0012_add_screenshot_columns.sql +5 -0
  804. package/src/lib/db/migrations/0013_add_repo_imports.sql +15 -0
  805. package/src/lib/db/migrations/0014_add_linked_profile_id.sql +3 -0
  806. package/src/lib/db/migrations/0015_add_channel_bindings.sql +23 -0
  807. package/src/lib/db/migrations/0016_add_workflow_document_inputs.sql +13 -0
  808. package/src/lib/db/migrations/0017_add_document_picker_tables.sql +25 -0
  809. package/src/lib/db/migrations/0018_add_workflow_run_number.sql +2 -0
  810. package/src/lib/db/migrations/0019_add_tables_feature.sql +160 -0
  811. package/src/lib/db/migrations/0020_add_table_triggers.sql +19 -0
  812. package/src/lib/db/migrations/0021_add_row_history.sql +15 -0
  813. package/src/lib/db/migrations/0022_workflow_intelligence_phase1.sql +5 -0
  814. package/src/lib/db/migrations/0023_add_execution_stats.sql +15 -0
  815. package/src/lib/db/migrations/0024_add_workflow_resume_at.sql +10 -0
  816. package/src/lib/db/migrations/0025_drop_app_instances.sql +3 -0
  817. package/src/lib/db/migrations/0026_drop_license.sql +3 -0
  818. package/src/lib/db/migrations/0027_add_tasks_context_row_id.sql +5 -0
  819. package/src/lib/db/migrations/0028_add_customer_dimension.sql +30 -0
  820. package/src/lib/db/migrations/XXXX_add_user_table_rows_data_hash.sql +15 -0
  821. package/src/lib/db/migrations/meta/0000_snapshot.json +416 -0
  822. package/src/lib/db/migrations/meta/0001_snapshot.json +461 -0
  823. package/src/lib/db/migrations/meta/0002_snapshot.json +469 -0
  824. package/src/lib/db/migrations/meta/_journal.json +90 -0
  825. package/src/lib/db/schema.ts +1331 -0
  826. package/src/lib/desktop/sidecar-launch.ts +85 -0
  827. package/src/lib/documents/cleanup.ts +51 -0
  828. package/src/lib/documents/context-builder.ts +189 -0
  829. package/src/lib/documents/document-resolver.ts +119 -0
  830. package/src/lib/documents/output-scanner.ts +164 -0
  831. package/src/lib/documents/processor.ts +120 -0
  832. package/src/lib/documents/processors/image.ts +21 -0
  833. package/src/lib/documents/processors/office.ts +36 -0
  834. package/src/lib/documents/processors/pdf.ts +12 -0
  835. package/src/lib/documents/processors/spreadsheet.ts +23 -0
  836. package/src/lib/documents/processors/text.ts +8 -0
  837. package/src/lib/documents/registry.ts +25 -0
  838. package/src/lib/environment/auto-scan.ts +48 -0
  839. package/src/lib/environment/backup-manager.ts +165 -0
  840. package/src/lib/environment/comparison.ts +170 -0
  841. package/src/lib/environment/data.ts +329 -0
  842. package/src/lib/environment/diff.ts +127 -0
  843. package/src/lib/environment/discovery.ts +270 -0
  844. package/src/lib/environment/git-manager.ts +160 -0
  845. package/src/lib/environment/health-scoring.ts +162 -0
  846. package/src/lib/environment/list-skills.ts +176 -0
  847. package/src/lib/environment/parsers/instructions.ts +68 -0
  848. package/src/lib/environment/parsers/mcp-config.ts +103 -0
  849. package/src/lib/environment/parsers/settings.ts +188 -0
  850. package/src/lib/environment/parsers/skill.ts +87 -0
  851. package/src/lib/environment/parsers/toml.ts +13 -0
  852. package/src/lib/environment/parsers/utils.ts +54 -0
  853. package/src/lib/environment/profile-generator.ts +185 -0
  854. package/src/lib/environment/profile-linker.ts +143 -0
  855. package/src/lib/environment/profile-rules.ts +297 -0
  856. package/src/lib/environment/scanner.ts +120 -0
  857. package/src/lib/environment/scanners/claude-code.ts +206 -0
  858. package/src/lib/environment/scanners/codex.ts +165 -0
  859. package/src/lib/environment/skill-enrichment.ts +106 -0
  860. package/src/lib/environment/skill-portfolio.ts +97 -0
  861. package/src/lib/environment/skill-recommendations.ts +66 -0
  862. package/src/lib/environment/sync/hook-sync.ts +39 -0
  863. package/src/lib/environment/sync/instruction-sync.ts +57 -0
  864. package/src/lib/environment/sync/mcp-sync.ts +259 -0
  865. package/src/lib/environment/sync/permission-sync.ts +44 -0
  866. package/src/lib/environment/sync/skill-sync.ts +95 -0
  867. package/src/lib/environment/sync-engine.ts +210 -0
  868. package/src/lib/environment/templates.ts +120 -0
  869. package/src/lib/environment/types.ts +51 -0
  870. package/src/lib/environment/workspace-context.ts +64 -0
  871. package/src/lib/filters/parse.ts +86 -0
  872. package/src/lib/import/dedup.ts +99 -0
  873. package/src/lib/import/format-adapter.ts +631 -0
  874. package/src/lib/import/github-api.ts +219 -0
  875. package/src/lib/import/repo-scanner.ts +251 -0
  876. package/src/lib/instance/bootstrap.ts +351 -0
  877. package/src/lib/instance/detect.ts +46 -0
  878. package/src/lib/instance/fingerprint.ts +76 -0
  879. package/src/lib/instance/git-ops.ts +97 -0
  880. package/src/lib/instance/settings.ts +61 -0
  881. package/src/lib/instance/types.ts +83 -0
  882. package/src/lib/instance/upgrade-poller.ts +205 -0
  883. package/src/lib/keyboard/shortcut-registry.ts +176 -0
  884. package/src/lib/licensing/canonicalize.ts +49 -0
  885. package/src/lib/licensing/gate.ts +82 -0
  886. package/src/lib/licensing/load.ts +90 -0
  887. package/src/lib/licensing/verify.ts +219 -0
  888. package/src/lib/notifications/actionable.ts +139 -0
  889. package/src/lib/notifications/permissions.ts +175 -0
  890. package/src/lib/notifications/visibility.ts +33 -0
  891. package/src/lib/packs/cli.ts +198 -0
  892. package/src/lib/packs/format.ts +204 -0
  893. package/src/lib/packs/install.ts +421 -0
  894. package/src/lib/packs/templates/relay-agency/base/blueprints/relay-agency--bookkeeping.yaml +55 -0
  895. package/src/lib/packs/templates/relay-agency/base/blueprints/relay-agency--client-onboarding.yaml +64 -0
  896. package/src/lib/packs/templates/relay-agency/base/blueprints/relay-agency--cre-listing.yaml +57 -0
  897. package/src/lib/packs/templates/relay-agency/base/blueprints/relay-agency--governance-billing.yaml +50 -0
  898. package/src/lib/packs/templates/relay-agency/base/blueprints/relay-agency--grant-cycle.yaml +53 -0
  899. package/src/lib/packs/templates/relay-agency/base/blueprints/relay-agency--impact-reporting.yaml +56 -0
  900. package/src/lib/packs/templates/relay-agency/base/blueprints/relay-agency--intake-summary.yaml +46 -0
  901. package/src/lib/packs/templates/relay-agency/base/blueprints/relay-agency--lease-abstraction.yaml +60 -0
  902. package/src/lib/packs/templates/relay-agency/base/manifest.yaml +83 -0
  903. package/src/lib/packs/templates/relay-agency/base/profiles/relay-agency--bookkeeper/SKILL.md +20 -0
  904. package/src/lib/packs/templates/relay-agency/base/profiles/relay-agency--bookkeeper/profile.yaml +18 -0
  905. package/src/lib/packs/templates/relay-agency/base/profiles/relay-agency--cre-analyst/SKILL.md +21 -0
  906. package/src/lib/packs/templates/relay-agency/base/profiles/relay-agency--cre-analyst/profile.yaml +19 -0
  907. package/src/lib/packs/templates/relay-agency/base/profiles/relay-agency--cre-listing-writer/SKILL.md +20 -0
  908. package/src/lib/packs/templates/relay-agency/base/profiles/relay-agency--cre-listing-writer/profile.yaml +19 -0
  909. package/src/lib/packs/templates/relay-agency/base/profiles/relay-agency--governance-officer/SKILL.md +20 -0
  910. package/src/lib/packs/templates/relay-agency/base/profiles/relay-agency--governance-officer/profile.yaml +17 -0
  911. package/src/lib/packs/templates/relay-agency/base/profiles/relay-agency--grant-researcher/SKILL.md +20 -0
  912. package/src/lib/packs/templates/relay-agency/base/profiles/relay-agency--grant-researcher/profile.yaml +19 -0
  913. package/src/lib/packs/templates/relay-agency/base/profiles/relay-agency--impact-writer/SKILL.md +20 -0
  914. package/src/lib/packs/templates/relay-agency/base/profiles/relay-agency--impact-writer/profile.yaml +19 -0
  915. package/src/lib/packs/templates/relay-agency/base/profiles/relay-agency--onboarding-runner/SKILL.md +20 -0
  916. package/src/lib/packs/templates/relay-agency/base/profiles/relay-agency--onboarding-runner/profile.yaml +17 -0
  917. package/src/lib/packs/templates/relay-agency/base/seed/customers.yaml +56 -0
  918. package/src/lib/packs/templates/relay-agency/base/seed/tables/clients.json +8 -0
  919. package/src/lib/packs/templates/relay-agency/pack.yaml +15 -0
  920. package/src/lib/plugins/capability-check.ts +889 -0
  921. package/src/lib/plugins/classify-trust.ts +116 -0
  922. package/src/lib/plugins/confinement/profiles/apparmor-child_process.profile +28 -0
  923. package/src/lib/plugins/confinement/profiles/apparmor-env.profile +30 -0
  924. package/src/lib/plugins/confinement/profiles/apparmor-fs.profile +25 -0
  925. package/src/lib/plugins/confinement/profiles/apparmor-net.profile +27 -0
  926. package/src/lib/plugins/confinement/profiles/seatbelt-child_process.sb +9 -0
  927. package/src/lib/plugins/confinement/profiles/seatbelt-env.sb +8 -0
  928. package/src/lib/plugins/confinement/profiles/seatbelt-fs.sb +10 -0
  929. package/src/lib/plugins/confinement/profiles/seatbelt-net.sb +9 -0
  930. package/src/lib/plugins/confinement/wrap.ts +565 -0
  931. package/src/lib/plugins/examples/echo-server/.mcp.json +8 -0
  932. package/src/lib/plugins/examples/echo-server/README.md +42 -0
  933. package/src/lib/plugins/examples/echo-server/plugin.yaml +15 -0
  934. package/src/lib/plugins/examples/echo-server/server.py +128 -0
  935. package/src/lib/plugins/examples/finance-pack/README.md +15 -0
  936. package/src/lib/plugins/examples/finance-pack/blueprints/monthly-close.yaml +38 -0
  937. package/src/lib/plugins/examples/finance-pack/plugin.yaml +13 -0
  938. package/src/lib/plugins/examples/finance-pack/profiles/personal-cfo/SKILL.md +21 -0
  939. package/src/lib/plugins/examples/finance-pack/profiles/personal-cfo/profile.yaml +17 -0
  940. package/src/lib/plugins/examples/finance-pack/schedules/monthly-close.yaml +14 -0
  941. package/src/lib/plugins/examples/finance-pack/tables/transactions.yaml +57 -0
  942. package/src/lib/plugins/examples/reading-radar/README.md +30 -0
  943. package/src/lib/plugins/examples/reading-radar/blueprints/weekly-synthesis.yaml +42 -0
  944. package/src/lib/plugins/examples/reading-radar/plugin.yaml +14 -0
  945. package/src/lib/plugins/examples/reading-radar/profiles/reader-coach/SKILL.md +19 -0
  946. package/src/lib/plugins/examples/reading-radar/profiles/reader-coach/profile.yaml +17 -0
  947. package/src/lib/plugins/examples/reading-radar/schedules/sunday-synth.yaml +15 -0
  948. package/src/lib/plugins/examples/reading-radar/tables/readings.yaml +49 -0
  949. package/src/lib/plugins/mcp-loader.ts +871 -0
  950. package/src/lib/plugins/registry.ts +667 -0
  951. package/src/lib/plugins/sdk/types.ts +87 -0
  952. package/src/lib/plugins/seed.ts +28 -0
  953. package/src/lib/plugins/transport-dispatch.ts +483 -0
  954. package/src/lib/queries/chart-data.ts +223 -0
  955. package/src/lib/schedules/active-hours.ts +120 -0
  956. package/src/lib/schedules/collision-check.ts +105 -0
  957. package/src/lib/schedules/config.ts +53 -0
  958. package/src/lib/schedules/heartbeat-parser.ts +224 -0
  959. package/src/lib/schedules/heartbeat-prompt.ts +153 -0
  960. package/src/lib/schedules/installer.ts +195 -0
  961. package/src/lib/schedules/interval-parser.ts +297 -0
  962. package/src/lib/schedules/nlp-parser.ts +357 -0
  963. package/src/lib/schedules/prompt-analyzer.ts +87 -0
  964. package/src/lib/schedules/registry.ts +238 -0
  965. package/src/lib/schedules/scheduler.ts +868 -0
  966. package/src/lib/schedules/slot-claim.ts +105 -0
  967. package/src/lib/screenshots/persist.ts +114 -0
  968. package/src/lib/settings/auth.ts +107 -0
  969. package/src/lib/settings/budget-guardrails.ts +718 -0
  970. package/src/lib/settings/helpers.ts +139 -0
  971. package/src/lib/settings/openai-auth.ts +182 -0
  972. package/src/lib/settings/openai-login-manager.ts +260 -0
  973. package/src/lib/settings/permission-presets.ts +150 -0
  974. package/src/lib/settings/permissions.ts +102 -0
  975. package/src/lib/settings/routing-recommendation.ts +111 -0
  976. package/src/lib/settings/routing.ts +24 -0
  977. package/src/lib/settings/runtime-setup.ts +108 -0
  978. package/src/lib/snapshots/auto-backup.ts +132 -0
  979. package/src/lib/snapshots/retention.ts +64 -0
  980. package/src/lib/snapshots/snapshot-manager.ts +429 -0
  981. package/src/lib/tables/computed.ts +61 -0
  982. package/src/lib/tables/context-builder.ts +139 -0
  983. package/src/lib/tables/enrichment-planner.ts +459 -0
  984. package/src/lib/tables/enrichment.ts +328 -0
  985. package/src/lib/tables/formula-engine.ts +415 -0
  986. package/src/lib/tables/history.ts +115 -0
  987. package/src/lib/tables/import.ts +345 -0
  988. package/src/lib/tables/query-builder.ts +155 -0
  989. package/src/lib/tables/trigger-evaluator.ts +217 -0
  990. package/src/lib/tables/types.ts +141 -0
  991. package/src/lib/tables/validation.ts +119 -0
  992. package/src/lib/theme.ts +71 -0
  993. package/src/lib/usage/ledger.ts +592 -0
  994. package/src/lib/usage/pricing-registry.ts +570 -0
  995. package/src/lib/usage/pricing.ts +42 -0
  996. package/src/lib/util/similarity.ts +77 -0
  997. package/src/lib/utils/ainative-paths.ts +94 -0
  998. package/src/lib/utils/app-root.ts +24 -0
  999. package/src/lib/utils/crypto.ts +87 -0
  1000. package/src/lib/utils/format-timestamp.ts +70 -0
  1001. package/src/lib/utils/keychain-migrate.ts +56 -0
  1002. package/src/lib/utils/learned-context-history.ts +150 -0
  1003. package/src/lib/utils/migrate-to-ainative.ts +186 -0
  1004. package/src/lib/utils/session-cleanup.ts +26 -0
  1005. package/src/lib/utils.ts +6 -0
  1006. package/src/lib/validators/blueprint.ts +104 -0
  1007. package/src/lib/validators/customer.ts +29 -0
  1008. package/src/lib/validators/profile.ts +104 -0
  1009. package/src/lib/validators/project.ts +17 -0
  1010. package/src/lib/validators/schedule-spec.ts +89 -0
  1011. package/src/lib/validators/settings.ts +55 -0
  1012. package/src/lib/validators/task.ts +36 -0
  1013. package/src/lib/validators/workspace.ts +27 -0
  1014. package/src/lib/workflows/assist-builder.ts +248 -0
  1015. package/src/lib/workflows/assist-session.ts +78 -0
  1016. package/src/lib/workflows/blueprints/builtins/business-daily-briefing.yaml +102 -0
  1017. package/src/lib/workflows/blueprints/builtins/code-review-pipeline.yaml +72 -0
  1018. package/src/lib/workflows/blueprints/builtins/content-marketing-pipeline.yaml +90 -0
  1019. package/src/lib/workflows/blueprints/builtins/customer-follow-up-drafter--draft-followup.yaml +55 -0
  1020. package/src/lib/workflows/blueprints/builtins/customer-support-triage.yaml +107 -0
  1021. package/src/lib/workflows/blueprints/builtins/documentation-generation.yaml +62 -0
  1022. package/src/lib/workflows/blueprints/builtins/financial-reporting.yaml +104 -0
  1023. package/src/lib/workflows/blueprints/builtins/investment-research.yaml +81 -0
  1024. package/src/lib/workflows/blueprints/builtins/lead-research-pipeline.yaml +82 -0
  1025. package/src/lib/workflows/blueprints/builtins/meal-planning.yaml +73 -0
  1026. package/src/lib/workflows/blueprints/builtins/product-research.yaml +72 -0
  1027. package/src/lib/workflows/blueprints/builtins/research-digest--weekly-digest.yaml +35 -0
  1028. package/src/lib/workflows/blueprints/builtins/research-report.yaml +77 -0
  1029. package/src/lib/workflows/blueprints/builtins/sprint-planning.yaml +77 -0
  1030. package/src/lib/workflows/blueprints/builtins/travel-planning.yaml +80 -0
  1031. package/src/lib/workflows/blueprints/instantiator.ts +156 -0
  1032. package/src/lib/workflows/blueprints/registry.ts +215 -0
  1033. package/src/lib/workflows/blueprints/render-prompt.ts +71 -0
  1034. package/src/lib/workflows/blueprints/template.ts +58 -0
  1035. package/src/lib/workflows/blueprints/types.ts +52 -0
  1036. package/src/lib/workflows/blueprints/validate-variables.ts +30 -0
  1037. package/src/lib/workflows/cost-estimator.ts +141 -0
  1038. package/src/lib/workflows/definition-validation.ts +121 -0
  1039. package/src/lib/workflows/delay.ts +106 -0
  1040. package/src/lib/workflows/engine.ts +1620 -0
  1041. package/src/lib/workflows/error-analysis.ts +249 -0
  1042. package/src/lib/workflows/execution-stats.ts +252 -0
  1043. package/src/lib/workflows/loop-executor.ts +595 -0
  1044. package/src/lib/workflows/optimizer.ts +193 -0
  1045. package/src/lib/workflows/parallel.ts +55 -0
  1046. package/src/lib/workflows/post-action.ts +91 -0
  1047. package/src/lib/workflows/swarm.ts +97 -0
  1048. package/src/lib/workflows/types.ts +299 -0
  1049. package/tsconfig.json +45 -0
  1050. package/bin/cli.js +0 -13
package/LICENSE ADDED
@@ -0,0 +1,191 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to the Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by the Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding any notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ Copyright 2025 Manav Sehgal
180
+
181
+ Licensed under the Apache License, Version 2.0 (the "License");
182
+ you may not use this file except in compliance with the License.
183
+ You may obtain a copy of the License at
184
+
185
+ http://www.apache.org/licenses/LICENSE-2.0
186
+
187
+ Unless required by applicable law or agreed to in writing, software
188
+ distributed under the License is distributed on an "AS IS" BASIS,
189
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ See the License for the specific language governing permissions and
191
+ limitations under the License.
package/README.md CHANGED
@@ -1,19 +1,201 @@
1
1
  # Orionfold Relay
2
2
 
3
- **The multi-agent coordination cockpit for forward-deployed AI services.**
3
+ > Run a forward-deployed AI agency on one cockpit. Every client a workspace, every vertical a profile, every service a workflow, every model a switch — on one governed, cost-controlled board you own.
4
4
 
5
- Run an AI services agency on one governed, cost-controlled board: every client a
6
- workspace, every vertical a profile, every service a workflow, every model a
7
- switch — Claude, Codex, Gemini, or a local model — with per-client billing and
8
- human-in-the-loop governance built in.
5
+ ```bash
6
+ npx orionfold-relay
7
+ ```
9
8
 
10
- > **This package name is reserved.** The Relay CLI ships with the public launch.
11
- > Until then, `npx orionfold-relay` prints a short notice.
9
+ Open [localhost:3000](http://localhost:3000). Zero config, local SQLite, your data stays on your machine.
12
10
 
13
- Part of the Orionfold studio family **Proof** (which AI can I trust?), **Arena**
14
- (which build wins?), and **Relay** (now make the trusted AI do the work).
11
+ [![npm](https://img.shields.io/npm/v/orionfold-relay)](https://www.npmjs.com/package/orionfold-relay) [![Next.js 16](https://img.shields.io/badge/Next.js-16-black)](https://nextjs.org/) [![React 19](https://img.shields.io/badge/React-19-61DAFB)](https://react.dev/) [![TypeScript](https://img.shields.io/badge/TypeScript-strict-3178C6)](https://www.typescriptlang.org/) [![Claude Agent SDK](https://img.shields.io/badge/Claude-Agent_SDK-D97706)](https://docs.anthropic.com/) [![OpenAI Codex App Server](https://img.shields.io/badge/OpenAI-Codex_App_Server-10A37F)](https://developers.openai.com/codex/app-server) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)
15
12
 
16
- - Website: https://orionfold.com
17
- - License: Apache-2.0
13
+ Orionfold Relay is the **operations layer** for AI builders, consultants, and forward-deployed services teams — the missing layer between "run one agent" and "run a managed service for a roomful of clients." You point it at your client work, run multi-step workflows across local and cloud models, route every client-facing deliverable through human approval, and watch per-client cost roll up automatically. It's local-first, open source (Apache-2.0), and ships as one command.
18
14
 
19
- © 2026 Orionfold.
15
+ Relay is the **third** product in the Orionfold line — **Proof** answers *"which AI can I trust?"*, **Arena** answers *"which build wins?"*, and **Relay** answers *"now make the trusted AI do the actual work."* It's the only one whose value compounds *after* evaluation stops.
16
+
17
+ <img src="https://raw.githubusercontent.com/orionfold/relay/main/public/readme/home-list.png" alt="The Relay home workspace: active work, pending review, project signals, and a live agent activity stream on one board" width="1200" />
18
+
19
+ ---
20
+
21
+ ## Describe an app — Relay builds it
22
+
23
+ The proof is in what Relay composes, not what it benchmarks. You describe a client module in plain language, and Relay assembles it from its primitives — an agent profile, a workflow blueprint, a schedule, and a table or two — into one running app. No new code, no deploy.
24
+
25
+ A "receipt photo → bookkeeping" module for a property-management client is one prompt away; the next client who needs the same thing reuses it in minutes. The composed app runs as a first-class instance with its own KPIs, and every agent run under it meters real cost back to that customer — the hardcoded billing line is gone, replaced by live per-client attribution from the usage ledger.
26
+
27
+ <img src="https://raw.githubusercontent.com/orionfold/relay/main/public/readme/apps-starter-to-chat.png" alt="Describe an app in plain language and Relay composes it from a profile, blueprint, schedule, and tables — no code, no deploy" width="1200" />
28
+
29
+ | Compose an app | Apps gallery | Inside a composed app |
30
+ |:-:|:-:|:-:|
31
+ | Plain-language prompt → a profile + blueprint + schedule + tables, wired into one running module | Composed apps run as first-class instances alongside ready-made starters | Live KPI tiles plus every service workflow as a one-click run — a whole vertical, composed not coded |
32
+
33
+ ---
34
+
35
+ ## The five gaps every AI agency hits
36
+
37
+ AI agents can already abstract a lease, research a grant, or categorize a receipt. The gap is everything *around* that — and for an agency, every gap multiplies by the number of clients you serve.
38
+
39
+ 1. **Orchestration** — Real client work is multi-step: ingest, abstract, verify, deliver. Relay runs sequences, checkpoints, and planner→executor pipelines without glue code you'd maintain.
40
+ 2. **Strategy → execution** — You think in clients, services, and deliverables; agent tools think in prompts and tokens. Projects, profiles, and blueprints give you a shared language between the engagement and the execution.
41
+ 3. **Lifecycle** — A deliverable needs scheduling, retries, resume-from-checkpoint, cost tracking, and an audit trail. Relay carries the whole operational lifecycle; recurring statements and deadline watches run themselves.
42
+ 4. **Trust & governance** — Agents that read client files and draft client-facing output need guardrails. Relay routes every deliverable through human approval and keeps the audit trail funders and stakeholders ask for.
43
+ 5. **Distribution** — Standing up an agent workspace shouldn't mean cloning a repo and wiring a database. Relay is `npx orionfold-relay` — one command, zero config, your data stays local.
44
+
45
+ ---
46
+
47
+ ## Built for an agency
48
+
49
+ | Your operating model | Relay primitive |
50
+ |---|---|
51
+ | **Clients** → one workspace per client, with scoped reference docs the agents consult automatically | **Projects** |
52
+ | **Verticals** → CRE underwriting, listing analysis, grant research, impact reporting — each a tuned agent | **Profiles** (21 built-ins) |
53
+ | **Services** → a repeatable, packaged service you instantiate per client with their variables | **Blueprints** (15 templates) |
54
+ | **Deliverables** → weekly digests, monthly statements, deadline watches running on a cadence | **Schedules** |
55
+ | **Billing** → per-client spend allocation that maps to the retainer, with a real margin you can see | **Cost & Usage** |
56
+ | **Governance** → every client-facing deliverable through human approval with a full audit trail | **Inbox** |
57
+
58
+ <img src="https://raw.githubusercontent.com/orionfold/relay/main/public/readme/tasks-list.png" alt="One Kanban board: multi-step, multi-client work across every status, each card carrying its client, workflow pattern, and assigned agent profile" width="1200" />
59
+
60
+ ---
61
+
62
+ ## The three pillars
63
+
64
+ ### 1 · One cockpit, your whole client book
65
+ Every client is a project with its own scoped documents, tasks, and working directory. One Kanban board replaces a wall of browser tabs and a "who's doing what" spreadsheet: lease abstraction, an offering memo, a grant narrative, receipt intake — across clients, every status, on one screen. Drag-and-drop columns or a sortable table.
66
+
67
+ ### 2 · Multi-vendor, no lock-in
68
+ Different work wants different models, and the best model changes every few months. A shared runtime registry lets you switch providers **per task, per schedule, or per workflow step** without redefining how your agents behave. Run reasoning on **Claude**, code generation on **Codex**, document work on **Gemini**, and route low-stakes or sensitive work to a local **Ollama** model at $0 compute. The cost dashboard shows the blended mix so you can prove the savings.
69
+
70
+ <img src="https://raw.githubusercontent.com/orionfold/relay/main/public/readme/costs-list.png" alt="Cost & Usage: spend pacing, active provider mix, and per-project allocation that maps straight to a client retainer" width="1200" />
71
+
72
+ ### 3 · Zero-code apps
73
+ Profiles, blueprints, schedules, and tables are the Lego bricks. Describe what you want and Relay composes a running app from them — the fastest way an agency ships a new client module. Package a whole vertical (profiles + workflows + a table + KPIs) as one pure-config bundle and install it in one click.
74
+
75
+ ---
76
+
77
+ ## Customers — now first-class
78
+
79
+ The customer dimension is **shipped**. Each account you run ops for is a first-class customer record — not a naming convention on a project. Link a customer's projects, and every agent run under them attributes its spend back automatically, so per-client cost is a real rollup from the usage ledger rather than a number you reconcile by hand. That foundation is the seam every pack seeds customers through, and the base for retainer-vs-cost margin.
80
+
81
+ | The customer book | A customer detail view |
82
+ |:-:|:-:|
83
+ | <img src="https://raw.githubusercontent.com/orionfold/relay/main/public/readme/customers-list.png" alt="The customer book: each account labeled by vertical, with linked projects and a 30-day cost rollup per customer" width="580" /> | <img src="https://raw.githubusercontent.com/orionfold/relay/main/public/readme/customers-detail.png" alt="A customer detail view: linked projects and AI spend rolled up from real agent runs — live per-client attribution, not a hardcoded billing line" width="580" /> |
84
+
85
+ ---
86
+
87
+ ## Orchestration — simple to governed
88
+
89
+ A workflow is how a repeatable service runs itself. The same screen runs **six patterns**:
90
+
91
+ - **Sequence** — a clean chain of steps an agent works top to bottom
92
+ - **Planner→Executor** — one agent plans, another executes each step
93
+ - **Human-in-the-Loop Checkpoint** — pauses at approval gates so nothing client-facing ships without sign-off
94
+ - **Parallel** — 2–5 concurrent branches followed by one synthesis step
95
+ - **Loop** — iterative execution with configurable stop conditions
96
+ - **Swarm** — mayor → worker pool → refinery orchestration
97
+
98
+ The governance is *in* the workflow, not bolted on. A blueprint is a fixed step shape plus a Configure form — fill in a client's variables and it becomes a ready-to-run workflow, the same service instantiated for the next client in minutes.
99
+
100
+ <img src="https://raw.githubusercontent.com/orionfold/relay/main/public/readme/workflows-blueprints.png" alt="Workflow blueprints: a fixed step shape with per-step agent profile and approval gates, plus a Configure form to instantiate per client" width="1200" />
101
+
102
+ ---
103
+
104
+ ## Why it stays trustworthy
105
+
106
+ - **Local-first** — SQLite database, no cloud dependency, `npx orionfold-relay` and go
107
+ - **Your rules, enforced** — tool permissions, inbox approvals, and audit trails for every agent action
108
+ - **Your AI team** — 21 specialist profiles ready to deploy, each with instructions, tool policies, and runtime tuning
109
+ - **Know what you spend** — usage metering, budgets, and per-provider/per-model spend visibility on governed runs
110
+ - **Open source** — Apache-2.0, read the engine and run it yourself
111
+
112
+ <img src="https://raw.githubusercontent.com/orionfold/relay/main/public/readme/inbox-list.png" alt="The governance command center: tool-permission approvals, agent questions, and a permission queue — nothing reaches a client without sign-off" width="1200" />
113
+
114
+ ---
115
+
116
+ ## Runtime bridge
117
+
118
+ Run the same business process on different AI providers without changing a line of configuration. Relay's shared runtime registry routes tasks, schedules, and workflow steps through **Claude Code** (Anthropic Claude Agent SDK) and **OpenAI Codex App Server**, landing everything in the same inbox, monitoring, and cost surfaces. Switching providers is a settings change, not a rewrite.
119
+
120
+ ---
121
+
122
+ ## Tech stack (boring on purpose)
123
+
124
+ | Layer | Technology | Why |
125
+ |-------|-----------|-----|
126
+ | Framework | Next.js 16 + React 19 | Server Components for zero-API reads, Turbopack for fast dev |
127
+ | Language | TypeScript (strict) | End-to-end type safety from DB schema to UI |
128
+ | Styling | Tailwind CSS v4 + shadcn/ui | Utility-first CSS with accessible component primitives |
129
+ | Database | SQLite (WAL) + Drizzle ORM | Zero-config embedded DB, type-safe queries, concurrent reads |
130
+ | AI Runtime | `@anthropic-ai/claude-agent-sdk` + `codex app-server` | Governed Claude and OpenAI execution behind a shared runtime layer |
131
+ | CLI | Commander + tsup | Familiar CLI framework, fast ESM bundling |
132
+ | Testing | Vitest + Testing Library | Fast test runner with React component testing |
133
+ | Validation | Zod v4 | Runtime type validation at system boundaries |
134
+
135
+ npm distribution name: `orionfold-relay` (CLI commands `relay` / `orionfold-relay`).
136
+
137
+ ---
138
+
139
+ ## Development
140
+
141
+ ```bash
142
+ git clone https://github.com/orionfold/relay.git && cd relay && npm install
143
+
144
+ # Set up one or both runtime credentials
145
+ cat > .env.local <<'EOF'
146
+ ANTHROPIC_API_KEY=your-anthropic-key
147
+ OPENAI_API_KEY=your-openai-key
148
+ EOF
149
+
150
+ npm run dev # Next.js dev server (Turbopack)
151
+ npm run build:cli # Build CLI → dist/cli.js
152
+ npm test # Run Vitest
153
+ npm run test:coverage # Coverage report
154
+ npm run test:e2e # E2E integration tests (requires runtime credentials)
155
+ ```
156
+
157
+ ### Pull requests
158
+
159
+ 1. Fork the repository
160
+ 2. Create a feature branch (`git checkout -b feature/your-feature`)
161
+ 3. Make your changes and add tests
162
+ 4. Run `npm test` and `npx tsc --noEmit`
163
+ 5. Submit a pull request
164
+
165
+ See `AGENTS.md` for architecture details and development conventions, and `CHANGELOG.md` for release history.
166
+
167
+ ---
168
+
169
+ <details>
170
+ <summary><b>Full feature inventory</b> — 211 features shipped across the platform</summary>
171
+
172
+ All 14 MVP features shipped (CLI bootstrap, database schema, app shell, project management, task board, agent integration, inbox notifications, monitoring, homepage dashboard, workflow engine, AI task assist, content handling, session management). 197 more shipped post-MVP:
173
+
174
+ | Category | Highlights |
175
+ |----------|-----------|
176
+ | **Documents** (5) | File attachments, preprocessing (5 formats), agent context injection, document browser, output generation |
177
+ | **Agent Intelligence** (6) | Multi-agent routing, autonomous loops, multi-agent swarm, AI assist→workflows, agent self-improvement, workflow context batching |
178
+ | **Agent Profiles** (2) | Agent profile catalog (21 profiles), workflow blueprints (15 templates) |
179
+ | **UI Enhancement** (13) | Ambient approvals, learned-context UX, micro-visualizations, command palette, accessibility, kanban operations, board persistence, playbook docs, workflow UX overhaul |
180
+ | **Platform** (8) | Scheduled prompt loops, tool permissions, provider runtimes, OpenAI Codex runtime, cross-provider profiles, parallel fork/join, tool permission presets, npm publish |
181
+ | **Runtime Quality** (2) | SDK runtime hardening, E2E test automation |
182
+ | **Governance** (3) | Usage metering ledger, spend budget guardrails, cost & usage dashboard |
183
+ | **Chat** (12) | 5-tier context engine + CRUD tools, SSE streaming, tool catalog, skill composition, `#key:value` filters, saved searches, conversation branching/rewind (`⌘Z`/`⌘⇧Z`), chat-driven app builder |
184
+ | **Composed Apps** (10) | `/apps` surface, starters showcase, 6 layout kits (Tracker, Coach, Ledger, Inbox, Research, Workflow Hub), manifest authoring tools, atomic writes, KPI ratio composition |
185
+ | **Onboarding** (2) | First-launch runtime preference modal (Best quality / Balanced / Lowest cost / Best privacy), instance bootstrap with dev-mode gate |
186
+ | **Customers** (first-class) | Hard `customers` table, write-time cost attribution, per-customer rollup, `/customers` list + detail |
187
+ | **Plugin Platform** (5) | Chat-tools plugin kind, MCP plugin spec, plugin tools registry, plugin spec tools, schedule spec tools |
188
+ | **Platform Hardening** (2) | Runtime validation hardening, upgrade detection (hourly upstream poll + guided merge sessions) |
189
+ | **Environment** (11) | Scanner, cache, dashboard, git checkpoint manager, sync engine, project onboarding, templates, cross-project comparison, skill portfolio, health scoring, profile-from-environment |
190
+
191
+ See `features/roadmap.md` for the full inventory and `features/stats/snapshot.json` for canonical counts.
192
+
193
+ </details>
194
+
195
+ ---
196
+
197
+ ## License
198
+
199
+ Licensed under the [Apache License 2.0](LICENSE).
200
+
201
+ Copyright 2025–2026 [Manav Sehgal](https://github.com/manavsehgal)
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema.json",
3
+ "style": "new-york",
4
+ "rsc": true,
5
+ "tsx": true,
6
+ "tailwind": {
7
+ "config": "",
8
+ "css": "src/app/globals.css",
9
+ "baseColor": "zinc",
10
+ "cssVariables": true,
11
+ "prefix": ""
12
+ },
13
+ "aliases": {
14
+ "components": "@/components",
15
+ "utils": "@/lib/utils",
16
+ "ui": "@/components/ui",
17
+ "lib": "@/lib",
18
+ "hooks": "@/hooks"
19
+ },
20
+ "iconLibrary": "lucide"
21
+ }