@nocobase/app-plugin-agents 0.0.0-stage → 0.1.0-beta.10

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 (1339) hide show
  1. package/CHANGELOG.md +464 -0
  2. package/README.md +234 -2
  3. package/dist/cli/index.d.ts +4 -0
  4. package/dist/cli/index.d.ts.map +1 -0
  5. package/dist/cli/index.js +9 -0
  6. package/dist/cli/index.js.map +1 -0
  7. package/dist/cli/runner-token.d.ts +21 -0
  8. package/dist/cli/runner-token.d.ts.map +1 -0
  9. package/dist/cli/runner-token.js +52 -0
  10. package/dist/cli/runner-token.js.map +1 -0
  11. package/dist/client/api/client.d.ts +139 -0
  12. package/dist/client/api/client.d.ts.map +1 -0
  13. package/dist/client/api/client.js +278 -0
  14. package/dist/client/api/client.js.map +1 -0
  15. package/dist/client/api/keys.d.ts +31 -0
  16. package/dist/client/api/keys.d.ts.map +1 -0
  17. package/dist/client/api/keys.js +40 -0
  18. package/dist/client/api/keys.js.map +1 -0
  19. package/dist/client/api/runners.d.ts +24 -0
  20. package/dist/client/api/runners.d.ts.map +1 -0
  21. package/dist/client/api/runners.js +58 -0
  22. package/dist/client/api/runners.js.map +1 -0
  23. package/dist/client/chat/api.d.ts +37 -0
  24. package/dist/client/chat/api.d.ts.map +1 -0
  25. package/dist/client/chat/api.js +118 -0
  26. package/dist/client/chat/api.js.map +1 -0
  27. package/dist/client/chat/consultation-identity.d.ts +7 -0
  28. package/dist/client/chat/consultation-identity.d.ts.map +1 -0
  29. package/dist/client/chat/consultation-identity.js +39 -0
  30. package/dist/client/chat/consultation-identity.js.map +1 -0
  31. package/dist/client/chat/context-model.d.ts +67 -0
  32. package/dist/client/chat/context-model.d.ts.map +1 -0
  33. package/dist/client/chat/context-model.js +113 -0
  34. package/dist/client/chat/context-model.js.map +1 -0
  35. package/dist/client/chat/extensions.d.ts +41 -0
  36. package/dist/client/chat/extensions.d.ts.map +1 -0
  37. package/dist/client/chat/extensions.js +14 -0
  38. package/dist/client/chat/extensions.js.map +1 -0
  39. package/dist/client/chat/keys.d.ts +13 -0
  40. package/dist/client/chat/keys.d.ts.map +1 -0
  41. package/dist/client/chat/keys.js +12 -0
  42. package/dist/client/chat/keys.js.map +1 -0
  43. package/dist/client/chat/message-model.d.ts +113 -0
  44. package/dist/client/chat/message-model.d.ts.map +1 -0
  45. package/dist/client/chat/message-model.js +228 -0
  46. package/dist/client/chat/message-model.js.map +1 -0
  47. package/dist/client/chat/panel-state.d.ts +43 -0
  48. package/dist/client/chat/panel-state.d.ts.map +1 -0
  49. package/dist/client/chat/panel-state.js +113 -0
  50. package/dist/client/chat/panel-state.js.map +1 -0
  51. package/dist/client/chat/provider.d.ts +101 -0
  52. package/dist/client/chat/provider.d.ts.map +1 -0
  53. package/dist/client/chat/provider.js +399 -0
  54. package/dist/client/chat/provider.js.map +1 -0
  55. package/dist/client/chat/redirect.d.ts +8 -0
  56. package/dist/client/chat/redirect.d.ts.map +1 -0
  57. package/dist/client/chat/redirect.js +34 -0
  58. package/dist/client/chat/redirect.js.map +1 -0
  59. package/dist/client/chat/ui-hooks.d.ts +16 -0
  60. package/dist/client/chat/ui-hooks.d.ts.map +1 -0
  61. package/dist/client/chat/ui-hooks.js +35 -0
  62. package/dist/client/chat/ui-hooks.js.map +1 -0
  63. package/dist/client/chat/use-chat.d.ts +80 -0
  64. package/dist/client/chat/use-chat.d.ts.map +1 -0
  65. package/dist/client/chat/use-chat.js +392 -0
  66. package/dist/client/chat/use-chat.js.map +1 -0
  67. package/dist/client/chat.d.ts +44 -0
  68. package/dist/client/chat.d.ts.map +1 -0
  69. package/dist/client/chat.js +46 -0
  70. package/dist/client/chat.js.map +1 -0
  71. package/dist/client/components/ag-markdown.d.ts +7 -0
  72. package/dist/client/components/ag-markdown.d.ts.map +1 -0
  73. package/dist/client/components/ag-markdown.js +29 -0
  74. package/dist/client/components/ag-markdown.js.map +1 -0
  75. package/dist/client/components/ag-multi-select.d.ts +26 -0
  76. package/dist/client/components/ag-multi-select.d.ts.map +1 -0
  77. package/dist/client/components/ag-multi-select.js +48 -0
  78. package/dist/client/components/ag-multi-select.js.map +1 -0
  79. package/dist/client/components/ag-pulse.d.ts +4 -0
  80. package/dist/client/components/ag-pulse.d.ts.map +1 -0
  81. package/dist/client/components/ag-pulse.js +6 -0
  82. package/dist/client/components/ag-pulse.js.map +1 -0
  83. package/dist/client/components/ag-section.d.ts +11 -0
  84. package/dist/client/components/ag-section.d.ts.map +1 -0
  85. package/dist/client/components/ag-section.js +7 -0
  86. package/dist/client/components/ag-section.js.map +1 -0
  87. package/dist/client/components/ag-states.d.ts +27 -0
  88. package/dist/client/components/ag-states.d.ts.map +1 -0
  89. package/dist/client/components/ag-states.js +33 -0
  90. package/dist/client/components/ag-states.js.map +1 -0
  91. package/dist/client/components/ag-tag.d.ts +9 -0
  92. package/dist/client/components/ag-tag.d.ts.map +1 -0
  93. package/dist/client/components/ag-tag.js +20 -0
  94. package/dist/client/components/ag-tag.js.map +1 -0
  95. package/dist/client/components/agent-avatar.d.ts +16 -0
  96. package/dist/client/components/agent-avatar.d.ts.map +1 -0
  97. package/dist/client/components/agent-avatar.js +48 -0
  98. package/dist/client/components/agent-avatar.js.map +1 -0
  99. package/dist/client/components/agent-picker.d.ts +111 -0
  100. package/dist/client/components/agent-picker.d.ts.map +1 -0
  101. package/dist/client/components/agent-picker.js +130 -0
  102. package/dist/client/components/agent-picker.js.map +1 -0
  103. package/dist/client/components/availability-dot.d.ts +8 -0
  104. package/dist/client/components/availability-dot.d.ts.map +1 -0
  105. package/dist/client/components/availability-dot.js +15 -0
  106. package/dist/client/components/availability-dot.js.map +1 -0
  107. package/dist/client/components/brief-view.d.ts +6 -0
  108. package/dist/client/components/brief-view.d.ts.map +1 -0
  109. package/dist/client/components/brief-view.js +34 -0
  110. package/dist/client/components/brief-view.js.map +1 -0
  111. package/dist/client/components/command-line.d.ts +6 -0
  112. package/dist/client/components/command-line.d.ts.map +1 -0
  113. package/dist/client/components/command-line.js +24 -0
  114. package/dist/client/components/command-line.js.map +1 -0
  115. package/dist/client/components/default-skills.d.ts +10 -0
  116. package/dist/client/components/default-skills.d.ts.map +1 -0
  117. package/dist/client/components/default-skills.js +47 -0
  118. package/dist/client/components/default-skills.js.map +1 -0
  119. package/dist/client/components/diff-block.d.ts +8 -0
  120. package/dist/client/components/diff-block.d.ts.map +1 -0
  121. package/dist/client/components/diff-block.js +14 -0
  122. package/dist/client/components/diff-block.js.map +1 -0
  123. package/dist/client/components/page-container.d.ts +11 -0
  124. package/dist/client/components/page-container.d.ts.map +1 -0
  125. package/dist/client/components/page-container.js +13 -0
  126. package/dist/client/components/page-container.js.map +1 -0
  127. package/dist/client/components/page-header.d.ts +14 -0
  128. package/dist/client/components/page-header.d.ts.map +1 -0
  129. package/dist/client/components/page-header.js +10 -0
  130. package/dist/client/components/page-header.js.map +1 -0
  131. package/dist/client/components/refresh-button.d.ts +6 -0
  132. package/dist/client/components/refresh-button.d.ts.map +1 -0
  133. package/dist/client/components/refresh-button.js +26 -0
  134. package/dist/client/components/refresh-button.js.map +1 -0
  135. package/dist/client/components/route-child-page.d.ts +24 -0
  136. package/dist/client/components/route-child-page.d.ts.map +1 -0
  137. package/dist/client/components/route-child-page.js +46 -0
  138. package/dist/client/components/route-child-page.js.map +1 -0
  139. package/dist/client/components/route-dialog.d.ts +6 -0
  140. package/dist/client/components/route-dialog.d.ts.map +1 -0
  141. package/dist/client/components/route-dialog.js +7 -0
  142. package/dist/client/components/route-dialog.js.map +1 -0
  143. package/dist/client/components/route-overlay.d.ts +21 -0
  144. package/dist/client/components/route-overlay.d.ts.map +1 -0
  145. package/dist/client/components/route-overlay.js +87 -0
  146. package/dist/client/components/route-overlay.js.map +1 -0
  147. package/dist/client/components/runners-refresh.d.ts +3 -0
  148. package/dist/client/components/runners-refresh.d.ts.map +1 -0
  149. package/dist/client/components/runners-refresh.js +13 -0
  150. package/dist/client/components/runners-refresh.js.map +1 -0
  151. package/dist/client/components/secret-input.d.ts +7 -0
  152. package/dist/client/components/secret-input.d.ts.map +1 -0
  153. package/dist/client/components/secret-input.js +12 -0
  154. package/dist/client/components/secret-input.js.map +1 -0
  155. package/dist/client/components/skills-select.d.ts +16 -0
  156. package/dist/client/components/skills-select.d.ts.map +1 -0
  157. package/dist/client/components/skills-select.js +39 -0
  158. package/dist/client/components/skills-select.js.map +1 -0
  159. package/dist/client/components/ui/alert-dialog.d.ts +19 -0
  160. package/dist/client/components/ui/alert-dialog.d.ts.map +1 -0
  161. package/dist/client/components/ui/alert-dialog.js +42 -0
  162. package/dist/client/components/ui/alert-dialog.js.map +1 -0
  163. package/dist/client/components/ui/alert.d.ts +13 -0
  164. package/dist/client/components/ui/alert.d.ts.map +1 -0
  165. package/dist/client/components/ui/alert.js +31 -0
  166. package/dist/client/components/ui/alert.js.map +1 -0
  167. package/dist/client/components/ui/avatar.d.ts +12 -0
  168. package/dist/client/components/ui/avatar.d.ts.map +1 -0
  169. package/dist/client/components/ui/avatar.js +23 -0
  170. package/dist/client/components/ui/avatar.js.map +1 -0
  171. package/dist/client/components/ui/badge.d.ts +11 -0
  172. package/dist/client/components/ui/badge.d.ts.map +1 -0
  173. package/dist/client/components/ui/badge.js +37 -0
  174. package/dist/client/components/ui/badge.js.map +1 -0
  175. package/dist/client/components/ui/button.d.ts +12 -0
  176. package/dist/client/components/ui/button.d.ts.map +1 -0
  177. package/dist/client/components/ui/button.js +38 -0
  178. package/dist/client/components/ui/button.js.map +1 -0
  179. package/dist/client/components/ui/calendar.d.ts +11 -0
  180. package/dist/client/components/ui/calendar.d.ts.map +1 -0
  181. package/dist/client/components/ui/calendar.js +76 -0
  182. package/dist/client/components/ui/calendar.js.map +1 -0
  183. package/dist/client/components/ui/card.d.ts +12 -0
  184. package/dist/client/components/ui/card.d.ts.map +1 -0
  185. package/dist/client/components/ui/card.js +25 -0
  186. package/dist/client/components/ui/card.js.map +1 -0
  187. package/dist/client/components/ui/chart.d.ts +45 -0
  188. package/dist/client/components/ui/chart.d.ts.map +1 -0
  189. package/dist/client/components/ui/chart.js +133 -0
  190. package/dist/client/components/ui/chart.js.map +1 -0
  191. package/dist/client/components/ui/checkbox.d.ts +5 -0
  192. package/dist/client/components/ui/checkbox.d.ts.map +1 -0
  193. package/dist/client/components/ui/checkbox.js +9 -0
  194. package/dist/client/components/ui/checkbox.js.map +1 -0
  195. package/dist/client/components/ui/collapsible.d.ts +7 -0
  196. package/dist/client/components/ui/collapsible.d.ts.map +1 -0
  197. package/dist/client/components/ui/collapsible.js +13 -0
  198. package/dist/client/components/ui/collapsible.js.map +1 -0
  199. package/dist/client/components/ui/combobox.d.ts +25 -0
  200. package/dist/client/components/ui/combobox.d.ts.map +1 -0
  201. package/dist/client/components/ui/combobox.js +58 -0
  202. package/dist/client/components/ui/combobox.js.map +1 -0
  203. package/dist/client/components/ui/dialog.d.ts +18 -0
  204. package/dist/client/components/ui/dialog.d.ts.map +1 -0
  205. package/dist/client/components/ui/dialog.js +40 -0
  206. package/dist/client/components/ui/dialog.js.map +1 -0
  207. package/dist/client/components/ui/dropdown-menu.d.ts +30 -0
  208. package/dist/client/components/ui/dropdown-menu.d.ts.map +1 -0
  209. package/dist/client/components/ui/dropdown-menu.js +51 -0
  210. package/dist/client/components/ui/dropdown-menu.js.map +1 -0
  211. package/dist/client/components/ui/empty.d.ts +15 -0
  212. package/dist/client/components/ui/empty.d.ts.map +1 -0
  213. package/dist/client/components/ui/empty.js +37 -0
  214. package/dist/client/components/ui/empty.js.map +1 -0
  215. package/dist/client/components/ui/field.d.ts +28 -0
  216. package/dist/client/components/ui/field.d.ts.map +1 -0
  217. package/dist/client/components/ui/field.js +71 -0
  218. package/dist/client/components/ui/field.js.map +1 -0
  219. package/dist/client/components/ui/input-group.d.ts +22 -0
  220. package/dist/client/components/ui/input-group.d.ts.map +1 -0
  221. package/dist/client/components/ui/input-group.js +63 -0
  222. package/dist/client/components/ui/input-group.js.map +1 -0
  223. package/dist/client/components/ui/input.d.ts +4 -0
  224. package/dist/client/components/ui/input.d.ts.map +1 -0
  225. package/dist/client/components/ui/input.js +8 -0
  226. package/dist/client/components/ui/input.js.map +1 -0
  227. package/dist/client/components/ui/item.d.ts +25 -0
  228. package/dist/client/components/ui/item.d.ts.map +1 -0
  229. package/dist/client/components/ui/item.js +82 -0
  230. package/dist/client/components/ui/item.js.map +1 -0
  231. package/dist/client/components/ui/label.d.ts +4 -0
  232. package/dist/client/components/ui/label.d.ts.map +1 -0
  233. package/dist/client/components/ui/label.js +7 -0
  234. package/dist/client/components/ui/label.js.map +1 -0
  235. package/dist/client/components/ui/popover.d.ts +10 -0
  236. package/dist/client/components/ui/popover.d.ts.map +1 -0
  237. package/dist/client/components/ui/popover.js +23 -0
  238. package/dist/client/components/ui/popover.js.map +1 -0
  239. package/dist/client/components/ui/radio-group.d.ts +7 -0
  240. package/dist/client/components/ui/radio-group.d.ts.map +1 -0
  241. package/dist/client/components/ui/radio-group.js +12 -0
  242. package/dist/client/components/ui/radio-group.js.map +1 -0
  243. package/dist/client/components/ui/select.d.ts +16 -0
  244. package/dist/client/components/ui/select.d.ts.map +1 -0
  245. package/dist/client/components/ui/select.js +34 -0
  246. package/dist/client/components/ui/select.js.map +1 -0
  247. package/dist/client/components/ui/separator.d.ts +5 -0
  248. package/dist/client/components/ui/separator.d.ts.map +1 -0
  249. package/dist/client/components/ui/separator.js +8 -0
  250. package/dist/client/components/ui/separator.js.map +1 -0
  251. package/dist/client/components/ui/sheet.d.ts +15 -0
  252. package/dist/client/components/ui/sheet.d.ts.map +1 -0
  253. package/dist/client/components/ui/sheet.js +39 -0
  254. package/dist/client/components/ui/sheet.js.map +1 -0
  255. package/dist/client/components/ui/skeleton.d.ts +4 -0
  256. package/dist/client/components/ui/skeleton.d.ts.map +1 -0
  257. package/dist/client/components/ui/skeleton.js +7 -0
  258. package/dist/client/components/ui/skeleton.js.map +1 -0
  259. package/dist/client/components/ui/spinner.d.ts +4 -0
  260. package/dist/client/components/ui/spinner.d.ts.map +1 -0
  261. package/dist/client/components/ui/spinner.js +11 -0
  262. package/dist/client/components/ui/spinner.js.map +1 -0
  263. package/dist/client/components/ui/switch.d.ts +7 -0
  264. package/dist/client/components/ui/switch.d.ts.map +1 -0
  265. package/dist/client/components/ui/switch.js +8 -0
  266. package/dist/client/components/ui/switch.js.map +1 -0
  267. package/dist/client/components/ui/table.d.ts +11 -0
  268. package/dist/client/components/ui/table.d.ts.map +1 -0
  269. package/dist/client/components/ui/table.js +28 -0
  270. package/dist/client/components/ui/table.js.map +1 -0
  271. package/dist/client/components/ui/tabs.d.ts +14 -0
  272. package/dist/client/components/ui/tabs.d.ts.map +1 -0
  273. package/dist/client/components/ui/tabs.js +32 -0
  274. package/dist/client/components/ui/tabs.js.map +1 -0
  275. package/dist/client/components/ui/textarea.d.ts +4 -0
  276. package/dist/client/components/ui/textarea.d.ts.map +1 -0
  277. package/dist/client/components/ui/textarea.js +7 -0
  278. package/dist/client/components/ui/textarea.js.map +1 -0
  279. package/dist/client/components/ui/tooltip.d.ts +8 -0
  280. package/dist/client/components/ui/tooltip.d.ts.map +1 -0
  281. package/dist/client/components/ui/tooltip.js +17 -0
  282. package/dist/client/components/ui/tooltip.js.map +1 -0
  283. package/dist/client/components/unsaved-changes.d.ts +8 -0
  284. package/dist/client/components/unsaved-changes.d.ts.map +1 -0
  285. package/dist/client/components/unsaved-changes.js +19 -0
  286. package/dist/client/components/unsaved-changes.js.map +1 -0
  287. package/dist/client/components/use-route-overlay.d.ts +15 -0
  288. package/dist/client/components/use-route-overlay.d.ts.map +1 -0
  289. package/dist/client/components/use-route-overlay.js +15 -0
  290. package/dist/client/components/use-route-overlay.js.map +1 -0
  291. package/dist/client/components/variables/access-log.d.ts +17 -0
  292. package/dist/client/components/variables/access-log.d.ts.map +1 -0
  293. package/dist/client/components/variables/access-log.js +52 -0
  294. package/dist/client/components/variables/access-log.js.map +1 -0
  295. package/dist/client/components/variables/variable-dialogs.d.ts +31 -0
  296. package/dist/client/components/variables/variable-dialogs.d.ts.map +1 -0
  297. package/dist/client/components/variables/variable-dialogs.js +116 -0
  298. package/dist/client/components/variables/variable-dialogs.js.map +1 -0
  299. package/dist/client/components/variables/variables-panel.d.ts +24 -0
  300. package/dist/client/components/variables/variables-panel.d.ts.map +1 -0
  301. package/dist/client/components/variables/variables-panel.js +121 -0
  302. package/dist/client/components/variables/variables-panel.js.map +1 -0
  303. package/dist/client/config.d.ts +6 -0
  304. package/dist/client/config.d.ts.map +1 -0
  305. package/dist/client/config.js +6 -0
  306. package/dist/client/config.js.map +1 -0
  307. package/dist/client/hooks/use-access.d.ts +6 -0
  308. package/dist/client/hooks/use-access.d.ts.map +1 -0
  309. package/dist/client/hooks/use-access.js +8 -0
  310. package/dist/client/hooks/use-access.js.map +1 -0
  311. package/dist/client/hooks/use-agent-picker-labels.d.ts +4 -0
  312. package/dist/client/hooks/use-agent-picker-labels.d.ts.map +1 -0
  313. package/dist/client/hooks/use-agent-picker-labels.js +30 -0
  314. package/dist/client/hooks/use-agent-picker-labels.js.map +1 -0
  315. package/dist/client/hooks/use-agents-api.d.ts +4 -0
  316. package/dist/client/hooks/use-agents-api.d.ts.map +1 -0
  317. package/dist/client/hooks/use-agents-api.js +9 -0
  318. package/dist/client/hooks/use-agents-api.js.map +1 -0
  319. package/dist/client/hooks/use-media-query.d.ts +3 -0
  320. package/dist/client/hooks/use-media-query.d.ts.map +1 -0
  321. package/dist/client/hooks/use-media-query.js +14 -0
  322. package/dist/client/hooks/use-media-query.js.map +1 -0
  323. package/dist/client/hooks/use-notify.d.ts +9 -0
  324. package/dist/client/hooks/use-notify.d.ts.map +1 -0
  325. package/dist/client/hooks/use-notify.js +27 -0
  326. package/dist/client/hooks/use-notify.js.map +1 -0
  327. package/dist/client/hooks/use-realtime-topic.d.ts +6 -0
  328. package/dist/client/hooks/use-realtime-topic.d.ts.map +1 -0
  329. package/dist/client/hooks/use-realtime-topic.js +24 -0
  330. package/dist/client/hooks/use-realtime-topic.js.map +1 -0
  331. package/dist/client/hooks/use-server-url.d.ts +6 -0
  332. package/dist/client/hooks/use-server-url.d.ts.map +1 -0
  333. package/dist/client/hooks/use-server-url.js +10 -0
  334. package/dist/client/hooks/use-server-url.js.map +1 -0
  335. package/dist/client/hooks/use-vocabulary.d.ts +38 -0
  336. package/dist/client/hooks/use-vocabulary.d.ts.map +1 -0
  337. package/dist/client/hooks/use-vocabulary.js +77 -0
  338. package/dist/client/hooks/use-vocabulary.js.map +1 -0
  339. package/dist/client/index.d.ts +2 -0
  340. package/dist/client/index.d.ts.map +1 -0
  341. package/dist/client/index.js +4 -0
  342. package/dist/client/index.js.map +1 -0
  343. package/dist/client/kit.d.ts +62 -0
  344. package/dist/client/kit.d.ts.map +1 -0
  345. package/dist/client/kit.js +122 -0
  346. package/dist/client/kit.js.map +1 -0
  347. package/dist/client/lib/action-catalog.d.ts +13 -0
  348. package/dist/client/lib/action-catalog.d.ts.map +1 -0
  349. package/dist/client/lib/action-catalog.js +45 -0
  350. package/dist/client/lib/action-catalog.js.map +1 -0
  351. package/dist/client/lib/agents.d.ts +7 -0
  352. package/dist/client/lib/agents.d.ts.map +1 -0
  353. package/dist/client/lib/agents.js +33 -0
  354. package/dist/client/lib/agents.js.map +1 -0
  355. package/dist/client/lib/diff.d.ts +8 -0
  356. package/dist/client/lib/diff.d.ts.map +1 -0
  357. package/dist/client/lib/diff.js +55 -0
  358. package/dist/client/lib/diff.js.map +1 -0
  359. package/dist/client/lib/download.d.ts +5 -0
  360. package/dist/client/lib/download.d.ts.map +1 -0
  361. package/dist/client/lib/download.js +17 -0
  362. package/dist/client/lib/download.js.map +1 -0
  363. package/dist/client/lib/format.d.ts +15 -0
  364. package/dist/client/lib/format.d.ts.map +1 -0
  365. package/dist/client/lib/format.js +76 -0
  366. package/dist/client/lib/format.js.map +1 -0
  367. package/dist/client/lib/install.d.ts +23 -0
  368. package/dist/client/lib/install.d.ts.map +1 -0
  369. package/dist/client/lib/install.js +54 -0
  370. package/dist/client/lib/install.js.map +1 -0
  371. package/dist/client/lib/revision.d.ts +3 -0
  372. package/dist/client/lib/revision.d.ts.map +1 -0
  373. package/dist/client/lib/revision.js +10 -0
  374. package/dist/client/lib/revision.js.map +1 -0
  375. package/dist/client/lib/runs.d.ts +11 -0
  376. package/dist/client/lib/runs.d.ts.map +1 -0
  377. package/dist/client/lib/runs.js +22 -0
  378. package/dist/client/lib/runs.js.map +1 -0
  379. package/dist/client/lib/text.d.ts +3 -0
  380. package/dist/client/lib/text.d.ts.map +1 -0
  381. package/dist/client/lib/text.js +6 -0
  382. package/dist/client/lib/text.js.map +1 -0
  383. package/dist/client/lib/tool-slots.d.ts +16 -0
  384. package/dist/client/lib/tool-slots.d.ts.map +1 -0
  385. package/dist/client/lib/tool-slots.js +37 -0
  386. package/dist/client/lib/tool-slots.js.map +1 -0
  387. package/dist/client/lib/tool-summary.d.ts +6 -0
  388. package/dist/client/lib/tool-summary.d.ts.map +1 -0
  389. package/dist/client/lib/tool-summary.js +44 -0
  390. package/dist/client/lib/tool-summary.js.map +1 -0
  391. package/dist/client/locales/chat.en-US.d.ts +70 -0
  392. package/dist/client/locales/chat.en-US.d.ts.map +1 -0
  393. package/dist/client/locales/chat.en-US.js +70 -0
  394. package/dist/client/locales/chat.en-US.js.map +1 -0
  395. package/dist/client/locales/chat.zh-CN.d.ts +4 -0
  396. package/dist/client/locales/chat.zh-CN.d.ts.map +1 -0
  397. package/dist/client/locales/chat.zh-CN.js +64 -0
  398. package/dist/client/locales/chat.zh-CN.js.map +1 -0
  399. package/dist/client/locales/en-US.d.ts +491 -0
  400. package/dist/client/locales/en-US.d.ts.map +1 -0
  401. package/dist/client/locales/en-US.js +490 -0
  402. package/dist/client/locales/en-US.js.map +1 -0
  403. package/dist/client/locales/index.d.ts +4 -0
  404. package/dist/client/locales/index.d.ts.map +1 -0
  405. package/dist/client/locales/index.js +7 -0
  406. package/dist/client/locales/index.js.map +1 -0
  407. package/dist/client/locales/prices.en-US.d.ts +49 -0
  408. package/dist/client/locales/prices.en-US.d.ts.map +1 -0
  409. package/dist/client/locales/prices.en-US.js +48 -0
  410. package/dist/client/locales/prices.en-US.js.map +1 -0
  411. package/dist/client/locales/prices.zh-CN.d.ts +5 -0
  412. package/dist/client/locales/prices.zh-CN.d.ts.map +1 -0
  413. package/dist/client/locales/prices.zh-CN.js +48 -0
  414. package/dist/client/locales/prices.zh-CN.js.map +1 -0
  415. package/dist/client/locales/runWait.en-US.d.ts +38 -0
  416. package/dist/client/locales/runWait.en-US.d.ts.map +1 -0
  417. package/dist/client/locales/runWait.en-US.js +37 -0
  418. package/dist/client/locales/runWait.en-US.js.map +1 -0
  419. package/dist/client/locales/runWait.zh-CN.d.ts +5 -0
  420. package/dist/client/locales/runWait.zh-CN.d.ts.map +1 -0
  421. package/dist/client/locales/runWait.zh-CN.js +32 -0
  422. package/dist/client/locales/runWait.zh-CN.js.map +1 -0
  423. package/dist/client/locales/runtimes.en-US.d.ts +227 -0
  424. package/dist/client/locales/runtimes.en-US.d.ts.map +1 -0
  425. package/dist/client/locales/runtimes.en-US.js +226 -0
  426. package/dist/client/locales/runtimes.en-US.js.map +1 -0
  427. package/dist/client/locales/runtimes.zh-CN.d.ts +4 -0
  428. package/dist/client/locales/runtimes.zh-CN.d.ts.map +1 -0
  429. package/dist/client/locales/runtimes.zh-CN.js +225 -0
  430. package/dist/client/locales/runtimes.zh-CN.js.map +1 -0
  431. package/dist/client/locales/services.en-US.d.ts +112 -0
  432. package/dist/client/locales/services.en-US.d.ts.map +1 -0
  433. package/dist/client/locales/services.en-US.js +111 -0
  434. package/dist/client/locales/services.en-US.js.map +1 -0
  435. package/dist/client/locales/services.zh-CN.d.ts +4 -0
  436. package/dist/client/locales/services.zh-CN.d.ts.map +1 -0
  437. package/dist/client/locales/services.zh-CN.js +110 -0
  438. package/dist/client/locales/services.zh-CN.js.map +1 -0
  439. package/dist/client/locales/skills.en-US.d.ts +149 -0
  440. package/dist/client/locales/skills.en-US.d.ts.map +1 -0
  441. package/dist/client/locales/skills.en-US.js +149 -0
  442. package/dist/client/locales/skills.en-US.js.map +1 -0
  443. package/dist/client/locales/skills.zh-CN.d.ts +4 -0
  444. package/dist/client/locales/skills.zh-CN.d.ts.map +1 -0
  445. package/dist/client/locales/skills.zh-CN.js +148 -0
  446. package/dist/client/locales/skills.zh-CN.js.map +1 -0
  447. package/dist/client/locales/zh-CN.d.ts +4 -0
  448. package/dist/client/locales/zh-CN.d.ts.map +1 -0
  449. package/dist/client/locales/zh-CN.js +485 -0
  450. package/dist/client/locales/zh-CN.js.map +1 -0
  451. package/dist/client/online/model.d.ts +45 -0
  452. package/dist/client/online/model.d.ts.map +1 -0
  453. package/dist/client/online/model.js +128 -0
  454. package/dist/client/online/model.js.map +1 -0
  455. package/dist/client/online/service-editor.d.ts +11 -0
  456. package/dist/client/online/service-editor.d.ts.map +1 -0
  457. package/dist/client/online/service-editor.js +235 -0
  458. package/dist/client/online/service-editor.js.map +1 -0
  459. package/dist/client/online/services.d.ts +3 -0
  460. package/dist/client/online/services.d.ts.map +1 -0
  461. package/dist/client/online/services.js +108 -0
  462. package/dist/client/online/services.js.map +1 -0
  463. package/dist/client/pages/agents/agent-dialog.d.ts +9 -0
  464. package/dist/client/pages/agents/agent-dialog.d.ts.map +1 -0
  465. package/dist/client/pages/agents/agent-dialog.js +106 -0
  466. package/dist/client/pages/agents/agent-dialog.js.map +1 -0
  467. package/dist/client/pages/agents/agent-state.d.ts +11 -0
  468. package/dist/client/pages/agents/agent-state.d.ts.map +1 -0
  469. package/dist/client/pages/agents/agent-state.js +28 -0
  470. package/dist/client/pages/agents/agent-state.js.map +1 -0
  471. package/dist/client/pages/agents/index.d.ts +3 -0
  472. package/dist/client/pages/agents/index.d.ts.map +1 -0
  473. package/dist/client/pages/agents/index.js +15 -0
  474. package/dist/client/pages/agents/index.js.map +1 -0
  475. package/dist/client/pages/agents/runner-agents.d.ts +3 -0
  476. package/dist/client/pages/agents/runner-agents.d.ts.map +1 -0
  477. package/dist/client/pages/agents/runner-agents.js +172 -0
  478. package/dist/client/pages/agents/runner-agents.js.map +1 -0
  479. package/dist/client/pages/models/index.d.ts +6 -0
  480. package/dist/client/pages/models/index.d.ts.map +1 -0
  481. package/dist/client/pages/models/index.js +6 -0
  482. package/dist/client/pages/models/index.js.map +1 -0
  483. package/dist/client/pages/runtimes/connect.d.ts +3 -0
  484. package/dist/client/pages/runtimes/connect.d.ts.map +1 -0
  485. package/dist/client/pages/runtimes/connect.js +155 -0
  486. package/dist/client/pages/runtimes/connect.js.map +1 -0
  487. package/dist/client/pages/runtimes/index.d.ts +3 -0
  488. package/dist/client/pages/runtimes/index.d.ts.map +1 -0
  489. package/dist/client/pages/runtimes/index.js +111 -0
  490. package/dist/client/pages/runtimes/index.js.map +1 -0
  491. package/dist/client/pages/runtimes/runner-cells.d.ts +39 -0
  492. package/dist/client/pages/runtimes/runner-cells.d.ts.map +1 -0
  493. package/dist/client/pages/runtimes/runner-cells.js +120 -0
  494. package/dist/client/pages/runtimes/runner-cells.js.map +1 -0
  495. package/dist/client/pages/runtimes/runner-policy.d.ts +18 -0
  496. package/dist/client/pages/runtimes/runner-policy.d.ts.map +1 -0
  497. package/dist/client/pages/runtimes/runner-policy.js +10 -0
  498. package/dist/client/pages/runtimes/runner-policy.js.map +1 -0
  499. package/dist/client/pages/runtimes/runner-sheet.d.ts +8 -0
  500. package/dist/client/pages/runtimes/runner-sheet.d.ts.map +1 -0
  501. package/dist/client/pages/runtimes/runner-sheet.js +197 -0
  502. package/dist/client/pages/runtimes/runner-sheet.js.map +1 -0
  503. package/dist/client/pages/runtimes/tool-slots-fields.d.ts +33 -0
  504. package/dist/client/pages/runtimes/tool-slots-fields.d.ts.map +1 -0
  505. package/dist/client/pages/runtimes/tool-slots-fields.js +28 -0
  506. package/dist/client/pages/runtimes/tool-slots-fields.js.map +1 -0
  507. package/dist/client/pages/runtimes/workspace-diagnostics.d.ts +9 -0
  508. package/dist/client/pages/runtimes/workspace-diagnostics.d.ts.map +1 -0
  509. package/dist/client/pages/runtimes/workspace-diagnostics.js +70 -0
  510. package/dist/client/pages/runtimes/workspace-diagnostics.js.map +1 -0
  511. package/dist/client/pages/skills/detail/index.d.ts +3 -0
  512. package/dist/client/pages/skills/detail/index.d.ts.map +1 -0
  513. package/dist/client/pages/skills/detail/index.js +115 -0
  514. package/dist/client/pages/skills/detail/index.js.map +1 -0
  515. package/dist/client/pages/skills/detail/skill-editor.d.ts +13 -0
  516. package/dist/client/pages/skills/detail/skill-editor.d.ts.map +1 -0
  517. package/dist/client/pages/skills/detail/skill-editor.js +80 -0
  518. package/dist/client/pages/skills/detail/skill-editor.js.map +1 -0
  519. package/dist/client/pages/skills/detail/skill-versions.d.ts +7 -0
  520. package/dist/client/pages/skills/detail/skill-versions.d.ts.map +1 -0
  521. package/dist/client/pages/skills/detail/skill-versions.js +115 -0
  522. package/dist/client/pages/skills/detail/skill-versions.js.map +1 -0
  523. package/dist/client/pages/skills/import-button.d.ts +9 -0
  524. package/dist/client/pages/skills/import-button.d.ts.map +1 -0
  525. package/dist/client/pages/skills/import-button.js +69 -0
  526. package/dist/client/pages/skills/import-button.js.map +1 -0
  527. package/dist/client/pages/skills/index.d.ts +3 -0
  528. package/dist/client/pages/skills/index.d.ts.map +1 -0
  529. package/dist/client/pages/skills/index.js +49 -0
  530. package/dist/client/pages/skills/index.js.map +1 -0
  531. package/dist/client/pages/skills/new.d.ts +3 -0
  532. package/dist/client/pages/skills/new.d.ts.map +1 -0
  533. package/dist/client/pages/skills/new.js +81 -0
  534. package/dist/client/pages/skills/new.js.map +1 -0
  535. package/dist/client/pages/skills/workbench/discard-dialog.d.ts +8 -0
  536. package/dist/client/pages/skills/workbench/discard-dialog.d.ts.map +1 -0
  537. package/dist/client/pages/skills/workbench/discard-dialog.js +9 -0
  538. package/dist/client/pages/skills/workbench/discard-dialog.js.map +1 -0
  539. package/dist/client/pages/skills/workbench/entry-dialog.d.ts +23 -0
  540. package/dist/client/pages/skills/workbench/entry-dialog.d.ts.map +1 -0
  541. package/dist/client/pages/skills/workbench/entry-dialog.js +63 -0
  542. package/dist/client/pages/skills/workbench/entry-dialog.js.map +1 -0
  543. package/dist/client/pages/skills/workbench/file-pane.d.ts +27 -0
  544. package/dist/client/pages/skills/workbench/file-pane.d.ts.map +1 -0
  545. package/dist/client/pages/skills/workbench/file-pane.js +101 -0
  546. package/dist/client/pages/skills/workbench/file-pane.js.map +1 -0
  547. package/dist/client/pages/skills/workbench/file-tree.d.ts +23 -0
  548. package/dist/client/pages/skills/workbench/file-tree.d.ts.map +1 -0
  549. package/dist/client/pages/skills/workbench/file-tree.js +85 -0
  550. package/dist/client/pages/skills/workbench/file-tree.js.map +1 -0
  551. package/dist/client/pages/skills/workbench/model.d.ts +72 -0
  552. package/dist/client/pages/skills/workbench/model.d.ts.map +1 -0
  553. package/dist/client/pages/skills/workbench/model.js +176 -0
  554. package/dist/client/pages/skills/workbench/model.js.map +1 -0
  555. package/dist/client/pages/skills/workbench/skill-workbench.d.ts +13 -0
  556. package/dist/client/pages/skills/workbench/skill-workbench.d.ts.map +1 -0
  557. package/dist/client/pages/skills/workbench/skill-workbench.js +223 -0
  558. package/dist/client/pages/skills/workbench/skill-workbench.js.map +1 -0
  559. package/dist/client/pages/skills/workbench/state.d.ts +28 -0
  560. package/dist/client/pages/skills/workbench/state.d.ts.map +1 -0
  561. package/dist/client/pages/skills/workbench/state.js +62 -0
  562. package/dist/client/pages/skills/workbench/state.js.map +1 -0
  563. package/dist/client/pages/skills/workbench/use-element-width.d.ts +6 -0
  564. package/dist/client/pages/skills/workbench/use-element-width.d.ts.map +1 -0
  565. package/dist/client/pages/skills/workbench/use-element-width.js +18 -0
  566. package/dist/client/pages/skills/workbench/use-element-width.js.map +1 -0
  567. package/dist/client/pages/usage/date-range-picker.d.ts +10 -0
  568. package/dist/client/pages/usage/date-range-picker.d.ts.map +1 -0
  569. package/dist/client/pages/usage/date-range-picker.js +45 -0
  570. package/dist/client/pages/usage/date-range-picker.js.map +1 -0
  571. package/dist/client/pages/usage/index.d.ts +3 -0
  572. package/dist/client/pages/usage/index.d.ts.map +1 -0
  573. package/dist/client/pages/usage/index.js +269 -0
  574. package/dist/client/pages/usage/index.js.map +1 -0
  575. package/dist/client/pages/usage/model.d.ts +70 -0
  576. package/dist/client/pages/usage/model.d.ts.map +1 -0
  577. package/dist/client/pages/usage/model.js +234 -0
  578. package/dist/client/pages/usage/model.js.map +1 -0
  579. package/dist/client/pages/usage/prices/index.d.ts +6 -0
  580. package/dist/client/pages/usage/prices/index.d.ts.map +1 -0
  581. package/dist/client/pages/usage/prices/index.js +35 -0
  582. package/dist/client/pages/usage/prices/index.js.map +1 -0
  583. package/dist/client/pages/usage/prices/model.d.ts +43 -0
  584. package/dist/client/pages/usage/prices/model.d.ts.map +1 -0
  585. package/dist/client/pages/usage/prices/model.js +104 -0
  586. package/dist/client/pages/usage/prices/model.js.map +1 -0
  587. package/dist/client/pages/usage/prices/price-cells.d.ts +24 -0
  588. package/dist/client/pages/usage/prices/price-cells.d.ts.map +1 -0
  589. package/dist/client/pages/usage/prices/price-cells.js +61 -0
  590. package/dist/client/pages/usage/prices/price-cells.js.map +1 -0
  591. package/dist/client/pages/usage/prices/prices-section.d.ts +7 -0
  592. package/dist/client/pages/usage/prices/prices-section.d.ts.map +1 -0
  593. package/dist/client/pages/usage/prices/prices-section.js +50 -0
  594. package/dist/client/pages/usage/prices/prices-section.js.map +1 -0
  595. package/dist/client/pages/usage/prices/tool-panel.d.ts +9 -0
  596. package/dist/client/pages/usage/prices/tool-panel.d.ts.map +1 -0
  597. package/dist/client/pages/usage/prices/tool-panel.js +78 -0
  598. package/dist/client/pages/usage/prices/tool-panel.js.map +1 -0
  599. package/dist/client/pages/usage/prices/use-save-prices.d.ts +6 -0
  600. package/dist/client/pages/usage/prices/use-save-prices.d.ts.map +1 -0
  601. package/dist/client/pages/usage/prices/use-save-prices.js +14 -0
  602. package/dist/client/pages/usage/prices/use-save-prices.js.map +1 -0
  603. package/dist/client/plugin.d.ts +4 -0
  604. package/dist/client/plugin.d.ts.map +1 -0
  605. package/dist/client/plugin.js +11 -0
  606. package/dist/client/plugin.js.map +1 -0
  607. package/dist/client/profile/default-agent.d.ts +3 -0
  608. package/dist/client/profile/default-agent.d.ts.map +1 -0
  609. package/dist/client/profile/default-agent.js +87 -0
  610. package/dist/client/profile/default-agent.js.map +1 -0
  611. package/dist/client/profile.d.ts +8 -0
  612. package/dist/client/profile.d.ts.map +1 -0
  613. package/dist/client/profile.js +4 -0
  614. package/dist/client/profile.js.map +1 -0
  615. package/dist/client/query.d.ts +9 -0
  616. package/dist/client/query.d.ts.map +1 -0
  617. package/dist/client/query.js +41 -0
  618. package/dist/client/query.js.map +1 -0
  619. package/dist/client/routes.d.ts +25 -0
  620. package/dist/client/routes.d.ts.map +1 -0
  621. package/dist/client/routes.js +77 -0
  622. package/dist/client/routes.js.map +1 -0
  623. package/dist/client/runs/format-wait.d.ts +21 -0
  624. package/dist/client/runs/format-wait.d.ts.map +1 -0
  625. package/dist/client/runs/format-wait.js +90 -0
  626. package/dist/client/runs/format-wait.js.map +1 -0
  627. package/dist/client/runs/run-hooks.d.ts +35 -0
  628. package/dist/client/runs/run-hooks.d.ts.map +1 -0
  629. package/dist/client/runs/run-hooks.js +92 -0
  630. package/dist/client/runs/run-hooks.js.map +1 -0
  631. package/dist/client/runs/subject-runs.d.ts +17 -0
  632. package/dist/client/runs/subject-runs.d.ts.map +1 -0
  633. package/dist/client/runs/subject-runs.js +62 -0
  634. package/dist/client/runs/subject-runs.js.map +1 -0
  635. package/dist/client/runs/use-run-events.d.ts +24 -0
  636. package/dist/client/runs/use-run-events.d.ts.map +1 -0
  637. package/dist/client/runs/use-run-events.js +80 -0
  638. package/dist/client/runs/use-run-events.js.map +1 -0
  639. package/dist/client/runs.d.ts +16 -0
  640. package/dist/client/runs.d.ts.map +1 -0
  641. package/dist/client/runs.js +15 -0
  642. package/dist/client/runs.js.map +1 -0
  643. package/dist/database/migrations/.manifest.json +105 -0
  644. package/dist/database/migrations/202610020001_ag_create_agents.d.ts +4 -0
  645. package/dist/database/migrations/202610020001_ag_create_agents.d.ts.map +1 -0
  646. package/dist/database/migrations/202610020001_ag_create_agents.js +108 -0
  647. package/dist/database/migrations/202610020001_ag_create_agents.js.map +1 -0
  648. package/dist/database/migrations/202610020002_ag_create_runners.d.ts +4 -0
  649. package/dist/database/migrations/202610020002_ag_create_runners.d.ts.map +1 -0
  650. package/dist/database/migrations/202610020002_ag_create_runners.js +115 -0
  651. package/dist/database/migrations/202610020002_ag_create_runners.js.map +1 -0
  652. package/dist/database/migrations/202610020003_ag_create_runs.d.ts +4 -0
  653. package/dist/database/migrations/202610020003_ag_create_runs.d.ts.map +1 -0
  654. package/dist/database/migrations/202610020003_ag_create_runs.js +289 -0
  655. package/dist/database/migrations/202610020003_ag_create_runs.js.map +1 -0
  656. package/dist/database/migrations/202610020004_ag_create_variables.d.ts +4 -0
  657. package/dist/database/migrations/202610020004_ag_create_variables.d.ts.map +1 -0
  658. package/dist/database/migrations/202610020004_ag_create_variables.js +52 -0
  659. package/dist/database/migrations/202610020004_ag_create_variables.js.map +1 -0
  660. package/dist/database/migrations/202610020005_ag_create_skills.d.ts +4 -0
  661. package/dist/database/migrations/202610020005_ag_create_skills.d.ts.map +1 -0
  662. package/dist/database/migrations/202610020005_ag_create_skills.js +94 -0
  663. package/dist/database/migrations/202610020005_ag_create_skills.js.map +1 -0
  664. package/dist/database/migrations/202610020006_ag_create_model_prices.d.ts +4 -0
  665. package/dist/database/migrations/202610020006_ag_create_model_prices.d.ts.map +1 -0
  666. package/dist/database/migrations/202610020006_ag_create_model_prices.js +46 -0
  667. package/dist/database/migrations/202610020006_ag_create_model_prices.js.map +1 -0
  668. package/dist/database/migrations/202610020008_ag_create_conversations.d.ts +4 -0
  669. package/dist/database/migrations/202610020008_ag_create_conversations.d.ts.map +1 -0
  670. package/dist/database/migrations/202610020008_ag_create_conversations.js +113 -0
  671. package/dist/database/migrations/202610020008_ag_create_conversations.js.map +1 -0
  672. package/dist/database/migrations/202610020009_ag_create_jobs.d.ts +4 -0
  673. package/dist/database/migrations/202610020009_ag_create_jobs.d.ts.map +1 -0
  674. package/dist/database/migrations/202610020009_ag_create_jobs.js +102 -0
  675. package/dist/database/migrations/202610020009_ag_create_jobs.js.map +1 -0
  676. package/dist/database/migrations/202610020010_ag_create_model_services.d.ts +4 -0
  677. package/dist/database/migrations/202610020010_ag_create_model_services.d.ts.map +1 -0
  678. package/dist/database/migrations/202610020010_ag_create_model_services.js +57 -0
  679. package/dist/database/migrations/202610020010_ag_create_model_services.js.map +1 -0
  680. package/dist/database/migrations/202610020011_ag_create_vectors.d.ts +4 -0
  681. package/dist/database/migrations/202610020011_ag_create_vectors.d.ts.map +1 -0
  682. package/dist/database/migrations/202610020011_ag_create_vectors.js +68 -0
  683. package/dist/database/migrations/202610020011_ag_create_vectors.js.map +1 -0
  684. package/dist/database/migrations/202610060001_ag_add_runner_product.d.ts +8 -0
  685. package/dist/database/migrations/202610060001_ag_add_runner_product.d.ts.map +1 -0
  686. package/dist/database/migrations/202610060001_ag_add_runner_product.js +21 -0
  687. package/dist/database/migrations/202610060001_ag_add_runner_product.js.map +1 -0
  688. package/dist/database/migrations/202610070001_ag_create_chat_attachments.d.ts +4 -0
  689. package/dist/database/migrations/202610070001_ag_create_chat_attachments.d.ts.map +1 -0
  690. package/dist/database/migrations/202610070001_ag_create_chat_attachments.js +35 -0
  691. package/dist/database/migrations/202610070001_ag_create_chat_attachments.js.map +1 -0
  692. package/dist/database/migrations/202610080001_ag_add_runner_tool_slots.d.ts +9 -0
  693. package/dist/database/migrations/202610080001_ag_add_runner_tool_slots.d.ts.map +1 -0
  694. package/dist/database/migrations/202610080001_ag_add_runner_tool_slots.js +30 -0
  695. package/dist/database/migrations/202610080001_ag_add_runner_tool_slots.js.map +1 -0
  696. package/dist/database/migrations/202610090001_ag_add_team_runner_variables.d.ts +9 -0
  697. package/dist/database/migrations/202610090001_ag_add_team_runner_variables.d.ts.map +1 -0
  698. package/dist/database/migrations/202610090001_ag_add_team_runner_variables.js +28 -0
  699. package/dist/database/migrations/202610090001_ag_add_team_runner_variables.js.map +1 -0
  700. package/dist/database/migrations/202610090002_ag_create_run_requests.d.ts +10 -0
  701. package/dist/database/migrations/202610090002_ag_create_run_requests.d.ts.map +1 -0
  702. package/dist/database/migrations/202610090002_ag_create_run_requests.js +105 -0
  703. package/dist/database/migrations/202610090002_ag_create_run_requests.js.map +1 -0
  704. package/dist/database/migrations/202610090003_ag_add_execution_history.d.ts +4 -0
  705. package/dist/database/migrations/202610090003_ag_add_execution_history.d.ts.map +1 -0
  706. package/dist/database/migrations/202610090003_ag_add_execution_history.js +17 -0
  707. package/dist/database/migrations/202610090003_ag_add_execution_history.js.map +1 -0
  708. package/dist/database/migrations/202610090004_ag_add_runner_workspace_usage.d.ts +9 -0
  709. package/dist/database/migrations/202610090004_ag_add_runner_workspace_usage.d.ts.map +1 -0
  710. package/dist/database/migrations/202610090004_ag_add_runner_workspace_usage.js +22 -0
  711. package/dist/database/migrations/202610090004_ag_add_runner_workspace_usage.js.map +1 -0
  712. package/dist/database/migrations/202610090005_ag_add_runner_variables.d.ts +10 -0
  713. package/dist/database/migrations/202610090005_ag_add_runner_variables.d.ts.map +1 -0
  714. package/dist/database/migrations/202610090005_ag_add_runner_variables.js +36 -0
  715. package/dist/database/migrations/202610090005_ag_add_runner_variables.js.map +1 -0
  716. package/dist/database/migrations/202610100001_ag_index_run_event_types.d.ts +4 -0
  717. package/dist/database/migrations/202610100001_ag_index_run_event_types.d.ts.map +1 -0
  718. package/dist/database/migrations/202610100001_ag_index_run_event_types.js +17 -0
  719. package/dist/database/migrations/202610100001_ag_index_run_event_types.js.map +1 -0
  720. package/dist/database/migrations/202610100002_ag_add_run_git_credentials.d.ts +9 -0
  721. package/dist/database/migrations/202610100002_ag_add_run_git_credentials.d.ts.map +1 -0
  722. package/dist/database/migrations/202610100002_ag_add_run_git_credentials.js +30 -0
  723. package/dist/database/migrations/202610100002_ag_add_run_git_credentials.js.map +1 -0
  724. package/dist/database/migrations/202610110001_ag_add_fresh_sessions.d.ts +4 -0
  725. package/dist/database/migrations/202610110001_ag_add_fresh_sessions.d.ts.map +1 -0
  726. package/dist/database/migrations/202610110001_ag_add_fresh_sessions.js +23 -0
  727. package/dist/database/migrations/202610110001_ag_add_fresh_sessions.js.map +1 -0
  728. package/dist/database/migrations/202610120001_ag_index_run_retries.d.ts +4 -0
  729. package/dist/database/migrations/202610120001_ag_index_run_retries.d.ts.map +1 -0
  730. package/dist/database/migrations/202610120001_ag_index_run_retries.js +17 -0
  731. package/dist/database/migrations/202610120001_ag_index_run_retries.js.map +1 -0
  732. package/dist/database/migrations/202610120002_ag_add_queue_entered_at.d.ts +4 -0
  733. package/dist/database/migrations/202610120002_ag_add_queue_entered_at.d.ts.map +1 -0
  734. package/dist/database/migrations/202610120002_ag_add_queue_entered_at.js +50 -0
  735. package/dist/database/migrations/202610120002_ag_add_queue_entered_at.js.map +1 -0
  736. package/dist/database/migrations/202610240020_ag_runner_agents.d.ts +4 -0
  737. package/dist/database/migrations/202610240020_ag_runner_agents.d.ts.map +1 -0
  738. package/dist/database/migrations/202610240020_ag_runner_agents.js +115 -0
  739. package/dist/database/migrations/202610240020_ag_runner_agents.js.map +1 -0
  740. package/dist/database/migrations/202610240040_ag_discovery_preferences.d.ts +4 -0
  741. package/dist/database/migrations/202610240040_ag_discovery_preferences.d.ts.map +1 -0
  742. package/dist/database/migrations/202610240040_ag_discovery_preferences.js +18 -0
  743. package/dist/database/migrations/202610240040_ag_discovery_preferences.js.map +1 -0
  744. package/dist/database/seeds/.manifest.json +9 -0
  745. package/dist/database/seeds/202610020007_ag_default_model_prices.d.ts +4 -0
  746. package/dist/database/seeds/202610020007_ag_default_model_prices.d.ts.map +1 -0
  747. package/dist/database/seeds/202610020007_ag_default_model_prices.js +142 -0
  748. package/dist/database/seeds/202610020007_ag_default_model_prices.js.map +1 -0
  749. package/dist/package.d.ts +2 -0
  750. package/dist/package.d.ts.map +1 -0
  751. package/dist/package.js +2 -0
  752. package/dist/package.js.map +1 -0
  753. package/dist/package.json +310 -0
  754. package/dist/server/cli/run-credential.d.ts +17 -0
  755. package/dist/server/cli/run-credential.d.ts.map +1 -0
  756. package/dist/server/cli/run-credential.js +52 -0
  757. package/dist/server/cli/run-credential.js.map +1 -0
  758. package/dist/server/cli/surface.d.ts +20 -0
  759. package/dist/server/cli/surface.d.ts.map +1 -0
  760. package/dist/server/cli/surface.js +66 -0
  761. package/dist/server/cli/surface.js.map +1 -0
  762. package/dist/server/composition.d.ts +196 -0
  763. package/dist/server/composition.d.ts.map +1 -0
  764. package/dist/server/composition.js +353 -0
  765. package/dist/server/composition.js.map +1 -0
  766. package/dist/server/core/agents/actions.d.ts +16 -0
  767. package/dist/server/core/agents/actions.d.ts.map +1 -0
  768. package/dist/server/core/agents/actions.js +26 -0
  769. package/dist/server/core/agents/actions.js.map +1 -0
  770. package/dist/server/core/agents/agent.history.d.ts +32 -0
  771. package/dist/server/core/agents/agent.history.d.ts.map +1 -0
  772. package/dist/server/core/agents/agent.history.js +71 -0
  773. package/dist/server/core/agents/agent.history.js.map +1 -0
  774. package/dist/server/core/agents/agent.service.d.ts +93 -0
  775. package/dist/server/core/agents/agent.service.d.ts.map +1 -0
  776. package/dist/server/core/agents/agent.service.js +452 -0
  777. package/dist/server/core/agents/agent.service.js.map +1 -0
  778. package/dist/server/core/agents/agent.store.d.ts +63 -0
  779. package/dist/server/core/agents/agent.store.d.ts.map +1 -0
  780. package/dist/server/core/agents/agent.store.js +153 -0
  781. package/dist/server/core/agents/agent.store.js.map +1 -0
  782. package/dist/server/core/agents/agent.views.d.ts +29 -0
  783. package/dist/server/core/agents/agent.views.d.ts.map +1 -0
  784. package/dist/server/core/agents/agent.views.js +86 -0
  785. package/dist/server/core/agents/agent.views.js.map +1 -0
  786. package/dist/server/core/agents/discovery.d.ts +12 -0
  787. package/dist/server/core/agents/discovery.d.ts.map +1 -0
  788. package/dist/server/core/agents/discovery.js +39 -0
  789. package/dist/server/core/agents/discovery.js.map +1 -0
  790. package/dist/server/core/agents/index.d.ts +5 -0
  791. package/dist/server/core/agents/index.d.ts.map +1 -0
  792. package/dist/server/core/agents/index.js +5 -0
  793. package/dist/server/core/agents/index.js.map +1 -0
  794. package/dist/server/core/brief/brief.d.ts +114 -0
  795. package/dist/server/core/brief/brief.d.ts.map +1 -0
  796. package/dist/server/core/brief/brief.js +216 -0
  797. package/dist/server/core/brief/brief.js.map +1 -0
  798. package/dist/server/core/brief/index.d.ts +2 -0
  799. package/dist/server/core/brief/index.d.ts.map +1 -0
  800. package/dist/server/core/brief/index.js +2 -0
  801. package/dist/server/core/brief/index.js.map +1 -0
  802. package/dist/server/core/callers/index.d.ts +63 -0
  803. package/dist/server/core/callers/index.d.ts.map +1 -0
  804. package/dist/server/core/callers/index.js +42 -0
  805. package/dist/server/core/callers/index.js.map +1 -0
  806. package/dist/server/core/conversations/attachments.d.ts +159 -0
  807. package/dist/server/core/conversations/attachments.d.ts.map +1 -0
  808. package/dist/server/core/conversations/attachments.js +281 -0
  809. package/dist/server/core/conversations/attachments.js.map +1 -0
  810. package/dist/server/core/conversations/availability.d.ts +15 -0
  811. package/dist/server/core/conversations/availability.d.ts.map +1 -0
  812. package/dist/server/core/conversations/availability.js +24 -0
  813. package/dist/server/core/conversations/availability.js.map +1 -0
  814. package/dist/server/core/conversations/chat-settings.d.ts +26 -0
  815. package/dist/server/core/conversations/chat-settings.d.ts.map +1 -0
  816. package/dist/server/core/conversations/chat-settings.js +100 -0
  817. package/dist/server/core/conversations/chat-settings.js.map +1 -0
  818. package/dist/server/core/conversations/conversation.service.d.ts +29 -0
  819. package/dist/server/core/conversations/conversation.service.d.ts.map +1 -0
  820. package/dist/server/core/conversations/conversation.service.js +1098 -0
  821. package/dist/server/core/conversations/conversation.service.js.map +1 -0
  822. package/dist/server/core/conversations/conversation.store.d.ts +104 -0
  823. package/dist/server/core/conversations/conversation.store.d.ts.map +1 -0
  824. package/dist/server/core/conversations/conversation.store.js +159 -0
  825. package/dist/server/core/conversations/conversation.store.js.map +1 -0
  826. package/dist/server/core/conversations/index.d.ts +8 -0
  827. package/dist/server/core/conversations/index.d.ts.map +1 -0
  828. package/dist/server/core/conversations/index.js +7 -0
  829. package/dist/server/core/conversations/index.js.map +1 -0
  830. package/dist/server/core/conversations/page-context.d.ts +35 -0
  831. package/dist/server/core/conversations/page-context.d.ts.map +1 -0
  832. package/dist/server/core/conversations/page-context.js +144 -0
  833. package/dist/server/core/conversations/page-context.js.map +1 -0
  834. package/dist/server/core/conversations/ports.d.ts +131 -0
  835. package/dist/server/core/conversations/ports.d.ts.map +1 -0
  836. package/dist/server/core/conversations/ports.js +2 -0
  837. package/dist/server/core/conversations/ports.js.map +1 -0
  838. package/dist/server/core/conversations/prompt.d.ts +46 -0
  839. package/dist/server/core/conversations/prompt.d.ts.map +1 -0
  840. package/dist/server/core/conversations/prompt.js +107 -0
  841. package/dist/server/core/conversations/prompt.js.map +1 -0
  842. package/dist/server/core/conversations/titles.d.ts +9 -0
  843. package/dist/server/core/conversations/titles.d.ts.map +1 -0
  844. package/dist/server/core/conversations/titles.js +20 -0
  845. package/dist/server/core/conversations/titles.js.map +1 -0
  846. package/dist/server/core/reports/index.d.ts +7 -0
  847. package/dist/server/core/reports/index.d.ts.map +1 -0
  848. package/dist/server/core/reports/index.js +7 -0
  849. package/dist/server/core/reports/index.js.map +1 -0
  850. package/dist/server/core/reports/metrics.d.ts +23 -0
  851. package/dist/server/core/reports/metrics.d.ts.map +1 -0
  852. package/dist/server/core/reports/metrics.js +60 -0
  853. package/dist/server/core/reports/metrics.js.map +1 -0
  854. package/dist/server/core/reports/model-usage.d.ts +35 -0
  855. package/dist/server/core/reports/model-usage.d.ts.map +1 -0
  856. package/dist/server/core/reports/model-usage.js +84 -0
  857. package/dist/server/core/reports/model-usage.js.map +1 -0
  858. package/dist/server/core/reports/prices.d.ts +35 -0
  859. package/dist/server/core/reports/prices.d.ts.map +1 -0
  860. package/dist/server/core/reports/prices.js +173 -0
  861. package/dist/server/core/reports/prices.js.map +1 -0
  862. package/dist/server/core/reports/report.service.d.ts +57 -0
  863. package/dist/server/core/reports/report.service.d.ts.map +1 -0
  864. package/dist/server/core/reports/report.service.js +313 -0
  865. package/dist/server/core/reports/report.service.js.map +1 -0
  866. package/dist/server/core/reports/usage.d.ts +50 -0
  867. package/dist/server/core/reports/usage.d.ts.map +1 -0
  868. package/dist/server/core/reports/usage.js +159 -0
  869. package/dist/server/core/reports/usage.js.map +1 -0
  870. package/dist/server/core/runs/availability.d.ts +31 -0
  871. package/dist/server/core/runs/availability.d.ts.map +1 -0
  872. package/dist/server/core/runs/availability.js +42 -0
  873. package/dist/server/core/runs/availability.js.map +1 -0
  874. package/dist/server/core/runs/claim.d.ts +140 -0
  875. package/dist/server/core/runs/claim.d.ts.map +1 -0
  876. package/dist/server/core/runs/claim.js +1009 -0
  877. package/dist/server/core/runs/claim.js.map +1 -0
  878. package/dist/server/core/runs/cli-package.d.ts +16 -0
  879. package/dist/server/core/runs/cli-package.d.ts.map +1 -0
  880. package/dist/server/core/runs/cli-package.js +18 -0
  881. package/dist/server/core/runs/cli-package.js.map +1 -0
  882. package/dist/server/core/runs/eligibility.d.ts +51 -0
  883. package/dist/server/core/runs/eligibility.d.ts.map +1 -0
  884. package/dist/server/core/runs/eligibility.js +44 -0
  885. package/dist/server/core/runs/eligibility.js.map +1 -0
  886. package/dist/server/core/runs/execution-view.d.ts +10 -0
  887. package/dist/server/core/runs/execution-view.d.ts.map +1 -0
  888. package/dist/server/core/runs/execution-view.js +25 -0
  889. package/dist/server/core/runs/execution-view.js.map +1 -0
  890. package/dist/server/core/runs/execution.d.ts +13 -0
  891. package/dist/server/core/runs/execution.d.ts.map +1 -0
  892. package/dist/server/core/runs/execution.js +85 -0
  893. package/dist/server/core/runs/execution.js.map +1 -0
  894. package/dist/server/core/runs/extensions.d.ts +184 -0
  895. package/dist/server/core/runs/extensions.d.ts.map +1 -0
  896. package/dist/server/core/runs/extensions.js +220 -0
  897. package/dist/server/core/runs/extensions.js.map +1 -0
  898. package/dist/server/core/runs/git-credentials.d.ts +43 -0
  899. package/dist/server/core/runs/git-credentials.d.ts.map +1 -0
  900. package/dist/server/core/runs/git-credentials.js +129 -0
  901. package/dist/server/core/runs/git-credentials.js.map +1 -0
  902. package/dist/server/core/runs/identity.d.ts +6 -0
  903. package/dist/server/core/runs/identity.d.ts.map +1 -0
  904. package/dist/server/core/runs/identity.js +49 -0
  905. package/dist/server/core/runs/identity.js.map +1 -0
  906. package/dist/server/core/runs/index.d.ts +20 -0
  907. package/dist/server/core/runs/index.d.ts.map +1 -0
  908. package/dist/server/core/runs/index.js +19 -0
  909. package/dist/server/core/runs/index.js.map +1 -0
  910. package/dist/server/core/runs/input-gate.d.ts +34 -0
  911. package/dist/server/core/runs/input-gate.d.ts.map +1 -0
  912. package/dist/server/core/runs/input-gate.js +54 -0
  913. package/dist/server/core/runs/input-gate.js.map +1 -0
  914. package/dist/server/core/runs/lifecycle.d.ts +46 -0
  915. package/dist/server/core/runs/lifecycle.d.ts.map +1 -0
  916. package/dist/server/core/runs/lifecycle.js +390 -0
  917. package/dist/server/core/runs/lifecycle.js.map +1 -0
  918. package/dist/server/core/runs/policy.d.ts +41 -0
  919. package/dist/server/core/runs/policy.d.ts.map +1 -0
  920. package/dist/server/core/runs/policy.js +48 -0
  921. package/dist/server/core/runs/policy.js.map +1 -0
  922. package/dist/server/core/runs/ports.d.ts +253 -0
  923. package/dist/server/core/runs/ports.d.ts.map +1 -0
  924. package/dist/server/core/runs/ports.js +22 -0
  925. package/dist/server/core/runs/ports.js.map +1 -0
  926. package/dist/server/core/runs/preview.d.ts +47 -0
  927. package/dist/server/core/runs/preview.d.ts.map +1 -0
  928. package/dist/server/core/runs/preview.js +104 -0
  929. package/dist/server/core/runs/preview.js.map +1 -0
  930. package/dist/server/core/runs/run-requests.d.ts +220 -0
  931. package/dist/server/core/runs/run-requests.d.ts.map +1 -0
  932. package/dist/server/core/runs/run-requests.js +475 -0
  933. package/dist/server/core/runs/run-requests.js.map +1 -0
  934. package/dist/server/core/runs/run-tokens.d.ts +21 -0
  935. package/dist/server/core/runs/run-tokens.d.ts.map +1 -0
  936. package/dist/server/core/runs/run-tokens.js +51 -0
  937. package/dist/server/core/runs/run-tokens.js.map +1 -0
  938. package/dist/server/core/runs/run.service.d.ts +240 -0
  939. package/dist/server/core/runs/run.service.d.ts.map +1 -0
  940. package/dist/server/core/runs/run.service.js +813 -0
  941. package/dist/server/core/runs/run.service.js.map +1 -0
  942. package/dist/server/core/runs/run.store.d.ts +203 -0
  943. package/dist/server/core/runs/run.store.d.ts.map +1 -0
  944. package/dist/server/core/runs/run.store.js +293 -0
  945. package/dist/server/core/runs/run.store.js.map +1 -0
  946. package/dist/server/core/runs/runner-view.d.ts +48 -0
  947. package/dist/server/core/runs/runner-view.d.ts.map +1 -0
  948. package/dist/server/core/runs/runner-view.js +121 -0
  949. package/dist/server/core/runs/runner-view.js.map +1 -0
  950. package/dist/server/core/runs/selection.d.ts +13 -0
  951. package/dist/server/core/runs/selection.d.ts.map +1 -0
  952. package/dist/server/core/runs/selection.js +21 -0
  953. package/dist/server/core/runs/selection.js.map +1 -0
  954. package/dist/server/core/runs/sweeper.d.ts +28 -0
  955. package/dist/server/core/runs/sweeper.d.ts.map +1 -0
  956. package/dist/server/core/runs/sweeper.js +243 -0
  957. package/dist/server/core/runs/sweeper.js.map +1 -0
  958. package/dist/server/core/runs/transitions.d.ts +41 -0
  959. package/dist/server/core/runs/transitions.d.ts.map +1 -0
  960. package/dist/server/core/runs/transitions.js +169 -0
  961. package/dist/server/core/runs/transitions.js.map +1 -0
  962. package/dist/server/core/runs/workload.d.ts +49 -0
  963. package/dist/server/core/runs/workload.d.ts.map +1 -0
  964. package/dist/server/core/runs/workload.js +390 -0
  965. package/dist/server/core/runs/workload.js.map +1 -0
  966. package/dist/server/core/runs/workspace.store.d.ts +23 -0
  967. package/dist/server/core/runs/workspace.store.d.ts.map +1 -0
  968. package/dist/server/core/runs/workspace.store.js +77 -0
  969. package/dist/server/core/runs/workspace.store.js.map +1 -0
  970. package/dist/server/core/skills/blobs.d.ts +65 -0
  971. package/dist/server/core/skills/blobs.d.ts.map +1 -0
  972. package/dist/server/core/skills/blobs.js +212 -0
  973. package/dist/server/core/skills/blobs.js.map +1 -0
  974. package/dist/server/core/skills/bundle.d.ts +27 -0
  975. package/dist/server/core/skills/bundle.d.ts.map +1 -0
  976. package/dist/server/core/skills/bundle.js +71 -0
  977. package/dist/server/core/skills/bundle.js.map +1 -0
  978. package/dist/server/core/skills/index.d.ts +6 -0
  979. package/dist/server/core/skills/index.d.ts.map +1 -0
  980. package/dist/server/core/skills/index.js +6 -0
  981. package/dist/server/core/skills/index.js.map +1 -0
  982. package/dist/server/core/skills/skill.service.d.ts +105 -0
  983. package/dist/server/core/skills/skill.service.d.ts.map +1 -0
  984. package/dist/server/core/skills/skill.service.js +625 -0
  985. package/dist/server/core/skills/skill.service.js.map +1 -0
  986. package/dist/server/core/skills/skill.store.d.ts +50 -0
  987. package/dist/server/core/skills/skill.store.d.ts.map +1 -0
  988. package/dist/server/core/skills/skill.store.js +58 -0
  989. package/dist/server/core/skills/skill.store.js.map +1 -0
  990. package/dist/server/core/skills/zip.d.ts +13 -0
  991. package/dist/server/core/skills/zip.d.ts.map +1 -0
  992. package/dist/server/core/skills/zip.js +126 -0
  993. package/dist/server/core/skills/zip.js.map +1 -0
  994. package/dist/server/core/variables/index.d.ts +2 -0
  995. package/dist/server/core/variables/index.d.ts.map +1 -0
  996. package/dist/server/core/variables/index.js +2 -0
  997. package/dist/server/core/variables/index.js.map +1 -0
  998. package/dist/server/core/variables/variable.service.d.ts +115 -0
  999. package/dist/server/core/variables/variable.service.d.ts.map +1 -0
  1000. package/dist/server/core/variables/variable.service.js +370 -0
  1001. package/dist/server/core/variables/variable.service.js.map +1 -0
  1002. package/dist/server/distribution/dist.service.d.ts +72 -0
  1003. package/dist/server/distribution/dist.service.d.ts.map +1 -0
  1004. package/dist/server/distribution/dist.service.js +237 -0
  1005. package/dist/server/distribution/dist.service.js.map +1 -0
  1006. package/dist/server/distribution/download-tokens.d.ts +30 -0
  1007. package/dist/server/distribution/download-tokens.d.ts.map +1 -0
  1008. package/dist/server/distribution/download-tokens.js +85 -0
  1009. package/dist/server/distribution/download-tokens.js.map +1 -0
  1010. package/dist/server/distribution/index.d.ts +22 -0
  1011. package/dist/server/distribution/index.d.ts.map +1 -0
  1012. package/dist/server/distribution/index.js +51 -0
  1013. package/dist/server/distribution/index.js.map +1 -0
  1014. package/dist/server/index.d.ts +4 -0
  1015. package/dist/server/index.d.ts.map +1 -0
  1016. package/dist/server/index.js +4 -0
  1017. package/dist/server/index.js.map +1 -0
  1018. package/dist/server/jobs/index.d.ts +5 -0
  1019. package/dist/server/jobs/index.d.ts.map +1 -0
  1020. package/dist/server/jobs/index.js +5 -0
  1021. package/dist/server/jobs/index.js.map +1 -0
  1022. package/dist/server/jobs/job.service.d.ts +154 -0
  1023. package/dist/server/jobs/job.service.d.ts.map +1 -0
  1024. package/dist/server/jobs/job.service.js +721 -0
  1025. package/dist/server/jobs/job.service.js.map +1 -0
  1026. package/dist/server/jobs/job.store.d.ts +74 -0
  1027. package/dist/server/jobs/job.store.d.ts.map +1 -0
  1028. package/dist/server/jobs/job.store.js +110 -0
  1029. package/dist/server/jobs/job.store.js.map +1 -0
  1030. package/dist/server/jobs/job.transitions.d.ts +41 -0
  1031. package/dist/server/jobs/job.transitions.d.ts.map +1 -0
  1032. package/dist/server/jobs/job.transitions.js +112 -0
  1033. package/dist/server/jobs/job.transitions.js.map +1 -0
  1034. package/dist/server/jobs/registry.d.ts +53 -0
  1035. package/dist/server/jobs/registry.d.ts.map +1 -0
  1036. package/dist/server/jobs/registry.js +32 -0
  1037. package/dist/server/jobs/registry.js.map +1 -0
  1038. package/dist/server/jobs/spec.d.ts +49 -0
  1039. package/dist/server/jobs/spec.d.ts.map +1 -0
  1040. package/dist/server/jobs/spec.js +112 -0
  1041. package/dist/server/jobs/spec.js.map +1 -0
  1042. package/dist/server/kernel/clock.d.ts +10 -0
  1043. package/dist/server/kernel/clock.d.ts.map +1 -0
  1044. package/dist/server/kernel/clock.js +10 -0
  1045. package/dist/server/kernel/clock.js.map +1 -0
  1046. package/dist/server/kernel/crypto.d.ts +18 -0
  1047. package/dist/server/kernel/crypto.d.ts.map +1 -0
  1048. package/dist/server/kernel/crypto.js +25 -0
  1049. package/dist/server/kernel/crypto.js.map +1 -0
  1050. package/dist/server/kernel/errors.d.ts +16 -0
  1051. package/dist/server/kernel/errors.d.ts.map +1 -0
  1052. package/dist/server/kernel/errors.js +45 -0
  1053. package/dist/server/kernel/errors.js.map +1 -0
  1054. package/dist/server/kernel/events.d.ts +147 -0
  1055. package/dist/server/kernel/events.d.ts.map +1 -0
  1056. package/dist/server/kernel/events.js +32 -0
  1057. package/dist/server/kernel/events.js.map +1 -0
  1058. package/dist/server/kernel/http.d.ts +23 -0
  1059. package/dist/server/kernel/http.d.ts.map +1 -0
  1060. package/dist/server/kernel/http.js +56 -0
  1061. package/dist/server/kernel/http.js.map +1 -0
  1062. package/dist/server/kernel/ids.d.ts +9 -0
  1063. package/dist/server/kernel/ids.d.ts.map +1 -0
  1064. package/dist/server/kernel/ids.js +5 -0
  1065. package/dist/server/kernel/ids.js.map +1 -0
  1066. package/dist/server/kernel/people.d.ts +28 -0
  1067. package/dist/server/kernel/people.d.ts.map +1 -0
  1068. package/dist/server/kernel/people.js +30 -0
  1069. package/dist/server/kernel/people.js.map +1 -0
  1070. package/dist/server/kernel/redaction.d.ts +27 -0
  1071. package/dist/server/kernel/redaction.d.ts.map +1 -0
  1072. package/dist/server/kernel/redaction.js +56 -0
  1073. package/dist/server/kernel/redaction.js.map +1 -0
  1074. package/dist/server/kernel/scopes.d.ts +34 -0
  1075. package/dist/server/kernel/scopes.d.ts.map +1 -0
  1076. package/dist/server/kernel/scopes.js +47 -0
  1077. package/dist/server/kernel/scopes.js.map +1 -0
  1078. package/dist/server/kernel/secrets.d.ts +12 -0
  1079. package/dist/server/kernel/secrets.d.ts.map +1 -0
  1080. package/dist/server/kernel/secrets.js +20 -0
  1081. package/dist/server/kernel/secrets.js.map +1 -0
  1082. package/dist/server/kernel/tx.d.ts +18 -0
  1083. package/dist/server/kernel/tx.d.ts.map +1 -0
  1084. package/dist/server/kernel/tx.js +15 -0
  1085. package/dist/server/kernel/tx.js.map +1 -0
  1086. package/dist/server/kernel/values.d.ts +19 -0
  1087. package/dist/server/kernel/values.d.ts.map +1 -0
  1088. package/dist/server/kernel/values.js +64 -0
  1089. package/dist/server/kernel/values.js.map +1 -0
  1090. package/dist/server/locales/en-US.d.ts +4 -0
  1091. package/dist/server/locales/en-US.d.ts.map +1 -0
  1092. package/dist/server/locales/en-US.js +6 -0
  1093. package/dist/server/locales/en-US.js.map +1 -0
  1094. package/dist/server/locales/index.d.ts +4 -0
  1095. package/dist/server/locales/index.d.ts.map +1 -0
  1096. package/dist/server/locales/index.js +6 -0
  1097. package/dist/server/locales/index.js.map +1 -0
  1098. package/dist/server/locales/zh-CN.d.ts +4 -0
  1099. package/dist/server/locales/zh-CN.d.ts.map +1 -0
  1100. package/dist/server/locales/zh-CN.js +6 -0
  1101. package/dist/server/locales/zh-CN.js.map +1 -0
  1102. package/dist/server/online/gateway.d.ts +240 -0
  1103. package/dist/server/online/gateway.d.ts.map +1 -0
  1104. package/dist/server/online/gateway.js +552 -0
  1105. package/dist/server/online/gateway.js.map +1 -0
  1106. package/dist/server/online/index.d.ts +5 -0
  1107. package/dist/server/online/index.d.ts.map +1 -0
  1108. package/dist/server/online/index.js +5 -0
  1109. package/dist/server/online/index.js.map +1 -0
  1110. package/dist/server/online/providers.d.ts +58 -0
  1111. package/dist/server/online/providers.d.ts.map +1 -0
  1112. package/dist/server/online/providers.js +370 -0
  1113. package/dist/server/online/providers.js.map +1 -0
  1114. package/dist/server/online/routes.d.ts +9 -0
  1115. package/dist/server/online/routes.d.ts.map +1 -0
  1116. package/dist/server/online/routes.js +168 -0
  1117. package/dist/server/online/routes.js.map +1 -0
  1118. package/dist/server/online/services.d.ts +49 -0
  1119. package/dist/server/online/services.d.ts.map +1 -0
  1120. package/dist/server/online/services.js +444 -0
  1121. package/dist/server/online/services.js.map +1 -0
  1122. package/dist/server/plugin.d.ts +4 -0
  1123. package/dist/server/plugin.d.ts.map +1 -0
  1124. package/dist/server/plugin.js +20 -0
  1125. package/dist/server/plugin.js.map +1 -0
  1126. package/dist/server/providers/agents.d.ts +63 -0
  1127. package/dist/server/providers/agents.d.ts.map +1 -0
  1128. package/dist/server/providers/agents.js +236 -0
  1129. package/dist/server/providers/agents.js.map +1 -0
  1130. package/dist/server/providers/authorization.d.ts +17 -0
  1131. package/dist/server/providers/authorization.d.ts.map +1 -0
  1132. package/dist/server/providers/authorization.js +60 -0
  1133. package/dist/server/providers/authorization.js.map +1 -0
  1134. package/dist/server/providers/index.d.ts +4 -0
  1135. package/dist/server/providers/index.d.ts.map +1 -0
  1136. package/dist/server/providers/index.js +10 -0
  1137. package/dist/server/providers/index.js.map +1 -0
  1138. package/dist/server/providers/runners.d.ts +19 -0
  1139. package/dist/server/providers/runners.d.ts.map +1 -0
  1140. package/dist/server/providers/runners.js +143 -0
  1141. package/dist/server/providers/runners.js.map +1 -0
  1142. package/dist/server/routes/admin.d.ts +27 -0
  1143. package/dist/server/routes/admin.d.ts.map +1 -0
  1144. package/dist/server/routes/admin.js +1363 -0
  1145. package/dist/server/routes/admin.js.map +1 -0
  1146. package/dist/server/routes/chat.d.ts +9 -0
  1147. package/dist/server/routes/chat.d.ts.map +1 -0
  1148. package/dist/server/routes/chat.js +512 -0
  1149. package/dist/server/routes/chat.js.map +1 -0
  1150. package/dist/server/routes/index.d.ts +6 -0
  1151. package/dist/server/routes/index.d.ts.map +1 -0
  1152. package/dist/server/routes/index.js +110 -0
  1153. package/dist/server/routes/index.js.map +1 -0
  1154. package/dist/server/routes/openapi.d.ts +30 -0
  1155. package/dist/server/routes/openapi.d.ts.map +1 -0
  1156. package/dist/server/routes/openapi.js +101 -0
  1157. package/dist/server/routes/openapi.js.map +1 -0
  1158. package/dist/server/routes/roster.d.ts +6 -0
  1159. package/dist/server/routes/roster.d.ts.map +1 -0
  1160. package/dist/server/routes/roster.js +37 -0
  1161. package/dist/server/routes/roster.js.map +1 -0
  1162. package/dist/server/routes/run-requests.d.ts +6 -0
  1163. package/dist/server/routes/run-requests.d.ts.map +1 -0
  1164. package/dist/server/routes/run-requests.js +216 -0
  1165. package/dist/server/routes/run-requests.js.map +1 -0
  1166. package/dist/server/routes/run.d.ts +10 -0
  1167. package/dist/server/routes/run.d.ts.map +1 -0
  1168. package/dist/server/routes/run.js +91 -0
  1169. package/dist/server/routes/run.js.map +1 -0
  1170. package/dist/server/routes/runners/admin.d.ts +28 -0
  1171. package/dist/server/routes/runners/admin.d.ts.map +1 -0
  1172. package/dist/server/routes/runners/admin.js +318 -0
  1173. package/dist/server/routes/runners/admin.js.map +1 -0
  1174. package/dist/server/routes/runners/dist.d.ts +24 -0
  1175. package/dist/server/routes/runners/dist.d.ts.map +1 -0
  1176. package/dist/server/routes/runners/dist.js +217 -0
  1177. package/dist/server/routes/runners/dist.js.map +1 -0
  1178. package/dist/server/routes/runners/install.d.ts +23 -0
  1179. package/dist/server/routes/runners/install.d.ts.map +1 -0
  1180. package/dist/server/routes/runners/install.js +435 -0
  1181. package/dist/server/routes/runners/install.js.map +1 -0
  1182. package/dist/server/routes/runners/runner.d.ts +9 -0
  1183. package/dist/server/routes/runners/runner.d.ts.map +1 -0
  1184. package/dist/server/routes/runners/runner.js +321 -0
  1185. package/dist/server/routes/runners/runner.js.map +1 -0
  1186. package/dist/server/routes/runners/runs.d.ts +5 -0
  1187. package/dist/server/routes/runners/runs.d.ts.map +1 -0
  1188. package/dist/server/routes/runners/runs.js +94 -0
  1189. package/dist/server/routes/runners/runs.js.map +1 -0
  1190. package/dist/server/routes/schemas.d.ts +249 -0
  1191. package/dist/server/routes/schemas.d.ts.map +1 -0
  1192. package/dist/server/routes/schemas.js +1325 -0
  1193. package/dist/server/routes/schemas.js.map +1 -0
  1194. package/dist/server/runners/index.d.ts +14 -0
  1195. package/dist/server/runners/index.d.ts.map +1 -0
  1196. package/dist/server/runners/index.js +7 -0
  1197. package/dist/server/runners/index.js.map +1 -0
  1198. package/dist/server/runners/runner.service.d.ts +91 -0
  1199. package/dist/server/runners/runner.service.d.ts.map +1 -0
  1200. package/dist/server/runners/runner.service.js +482 -0
  1201. package/dist/server/runners/runner.service.js.map +1 -0
  1202. package/dist/server/runners/runner.store.d.ts +83 -0
  1203. package/dist/server/runners/runner.store.d.ts.map +1 -0
  1204. package/dist/server/runners/runner.store.js +234 -0
  1205. package/dist/server/runners/runner.store.js.map +1 -0
  1206. package/dist/server/runners/signal.d.ts +13 -0
  1207. package/dist/server/runners/signal.d.ts.map +1 -0
  1208. package/dist/server/runners/signal.js +30 -0
  1209. package/dist/server/runners/signal.js.map +1 -0
  1210. package/dist/server/runners/slots.d.ts +26 -0
  1211. package/dist/server/runners/slots.d.ts.map +1 -0
  1212. package/dist/server/runners/slots.js +27 -0
  1213. package/dist/server/runners/slots.js.map +1 -0
  1214. package/dist/server/runners/sweeper.d.ts +26 -0
  1215. package/dist/server/runners/sweeper.d.ts.map +1 -0
  1216. package/dist/server/runners/sweeper.js +21 -0
  1217. package/dist/server/runners/sweeper.js.map +1 -0
  1218. package/dist/server/runners/workspaces.d.ts +33 -0
  1219. package/dist/server/runners/workspaces.d.ts.map +1 -0
  1220. package/dist/server/runners/workspaces.js +248 -0
  1221. package/dist/server/runners/workspaces.js.map +1 -0
  1222. package/dist/server/secrets-stores.d.ts +8 -0
  1223. package/dist/server/secrets-stores.d.ts.map +1 -0
  1224. package/dist/server/secrets-stores.js +43 -0
  1225. package/dist/server/secrets-stores.js.map +1 -0
  1226. package/dist/server/testing.d.ts +14 -0
  1227. package/dist/server/testing.d.ts.map +1 -0
  1228. package/dist/server/testing.js +21 -0
  1229. package/dist/server/testing.js.map +1 -0
  1230. package/dist/server/tokens.d.ts +42 -0
  1231. package/dist/server/tokens.d.ts.map +1 -0
  1232. package/dist/server/tokens.js +12 -0
  1233. package/dist/server/tokens.js.map +1 -0
  1234. package/dist/server/vectors/index.d.ts +7 -0
  1235. package/dist/server/vectors/index.d.ts.map +1 -0
  1236. package/dist/server/vectors/index.js +6 -0
  1237. package/dist/server/vectors/index.js.map +1 -0
  1238. package/dist/server/vectors/naming.d.ts +6 -0
  1239. package/dist/server/vectors/naming.d.ts.map +1 -0
  1240. package/dist/server/vectors/naming.js +15 -0
  1241. package/dist/server/vectors/naming.js.map +1 -0
  1242. package/dist/server/vectors/pgvector.d.ts +26 -0
  1243. package/dist/server/vectors/pgvector.d.ts.map +1 -0
  1244. package/dist/server/vectors/pgvector.js +346 -0
  1245. package/dist/server/vectors/pgvector.js.map +1 -0
  1246. package/dist/server/vectors/sqlite-vec.d.ts +14 -0
  1247. package/dist/server/vectors/sqlite-vec.d.ts.map +1 -0
  1248. package/dist/server/vectors/sqlite-vec.js +286 -0
  1249. package/dist/server/vectors/sqlite-vec.js.map +1 -0
  1250. package/dist/server/vectors/types.d.ts +256 -0
  1251. package/dist/server/vectors/types.d.ts.map +1 -0
  1252. package/dist/server/vectors/types.js +2 -0
  1253. package/dist/server/vectors/types.js.map +1 -0
  1254. package/dist/server/vectors/vectors.d.ts +34 -0
  1255. package/dist/server/vectors/vectors.d.ts.map +1 -0
  1256. package/dist/server/vectors/vectors.js +866 -0
  1257. package/dist/server/vectors/vectors.js.map +1 -0
  1258. package/dist/shared/access.d.ts +150 -0
  1259. package/dist/shared/access.d.ts.map +1 -0
  1260. package/dist/shared/access.js +162 -0
  1261. package/dist/shared/access.js.map +1 -0
  1262. package/dist/shared/agents.d.ts +247 -0
  1263. package/dist/shared/agents.d.ts.map +1 -0
  1264. package/dist/shared/agents.js +92 -0
  1265. package/dist/shared/agents.js.map +1 -0
  1266. package/dist/shared/briefs.d.ts +46 -0
  1267. package/dist/shared/briefs.d.ts.map +1 -0
  1268. package/dist/shared/briefs.js +10 -0
  1269. package/dist/shared/briefs.js.map +1 -0
  1270. package/dist/shared/conversations.d.ts +577 -0
  1271. package/dist/shared/conversations.d.ts.map +1 -0
  1272. package/dist/shared/conversations.js +163 -0
  1273. package/dist/shared/conversations.js.map +1 -0
  1274. package/dist/shared/i18n.d.ts +10 -0
  1275. package/dist/shared/i18n.d.ts.map +1 -0
  1276. package/dist/shared/i18n.js +2 -0
  1277. package/dist/shared/i18n.js.map +1 -0
  1278. package/dist/shared/jobs.d.ts +73 -0
  1279. package/dist/shared/jobs.d.ts.map +1 -0
  1280. package/dist/shared/jobs.js +3 -0
  1281. package/dist/shared/jobs.js.map +1 -0
  1282. package/dist/shared/locales/access.en-US.d.ts +47 -0
  1283. package/dist/shared/locales/access.en-US.d.ts.map +1 -0
  1284. package/dist/shared/locales/access.en-US.js +51 -0
  1285. package/dist/shared/locales/access.en-US.js.map +1 -0
  1286. package/dist/shared/locales/access.zh-CN.d.ts +4 -0
  1287. package/dist/shared/locales/access.zh-CN.d.ts.map +1 -0
  1288. package/dist/shared/locales/access.zh-CN.js +51 -0
  1289. package/dist/shared/locales/access.zh-CN.js.map +1 -0
  1290. package/dist/shared/model-catalog.d.ts +48 -0
  1291. package/dist/shared/model-catalog.d.ts.map +1 -0
  1292. package/dist/shared/model-catalog.js +148 -0
  1293. package/dist/shared/model-catalog.js.map +1 -0
  1294. package/dist/shared/models.d.ts +196 -0
  1295. package/dist/shared/models.d.ts.map +1 -0
  1296. package/dist/shared/models.js +142 -0
  1297. package/dist/shared/models.js.map +1 -0
  1298. package/dist/shared/realtime.d.ts +27 -0
  1299. package/dist/shared/realtime.d.ts.map +1 -0
  1300. package/dist/shared/realtime.js +7 -0
  1301. package/dist/shared/realtime.js.map +1 -0
  1302. package/dist/shared/reports.d.ts +293 -0
  1303. package/dist/shared/reports.d.ts.map +1 -0
  1304. package/dist/shared/reports.js +135 -0
  1305. package/dist/shared/reports.js.map +1 -0
  1306. package/dist/shared/runners.d.ts +336 -0
  1307. package/dist/shared/runners.d.ts.map +1 -0
  1308. package/dist/shared/runners.js +132 -0
  1309. package/dist/shared/runners.js.map +1 -0
  1310. package/dist/shared/runs.d.ts +407 -0
  1311. package/dist/shared/runs.d.ts.map +1 -0
  1312. package/dist/shared/runs.js +65 -0
  1313. package/dist/shared/runs.js.map +1 -0
  1314. package/dist/shared/skill-markdown.d.ts +45 -0
  1315. package/dist/shared/skill-markdown.d.ts.map +1 -0
  1316. package/dist/shared/skill-markdown.js +131 -0
  1317. package/dist/shared/skill-markdown.js.map +1 -0
  1318. package/dist/shared/skills.d.ts +155 -0
  1319. package/dist/shared/skills.d.ts.map +1 -0
  1320. package/dist/shared/skills.js +61 -0
  1321. package/dist/shared/skills.js.map +1 -0
  1322. package/dist/shared/variables.d.ts +73 -0
  1323. package/dist/shared/variables.d.ts.map +1 -0
  1324. package/dist/shared/variables.js +54 -0
  1325. package/dist/shared/variables.js.map +1 -0
  1326. package/dist/shared/vocabulary.d.ts +44 -0
  1327. package/dist/shared/vocabulary.d.ts.map +1 -0
  1328. package/dist/shared/vocabulary.js +2 -0
  1329. package/dist/shared/vocabulary.js.map +1 -0
  1330. package/package.json +200 -3
  1331. package/skills/nocobase-app-plugin-agents/SKILL.md +35 -0
  1332. package/skills/nocobase-app-plugin-agents/references/agents.md +30 -0
  1333. package/skills/nocobase-app-plugin-agents/references/distribution.md +79 -0
  1334. package/skills/nocobase-app-plugin-agents/references/extension-points.md +43 -0
  1335. package/skills/nocobase-app-plugin-agents/references/model-services.md +17 -0
  1336. package/skills/nocobase-app-plugin-agents/references/runners.md +46 -0
  1337. package/skills/nocobase-app-plugin-agents/references/setup-and-config.md +57 -0
  1338. package/skills/nocobase-app-plugin-agents/references/variables-skills-usage.md +21 -0
  1339. package/skills/nocobase-app-plugin-agents/references/verification-and-troubleshooting.md +47 -0
package/package.json CHANGED
@@ -1,6 +1,203 @@
1
1
  {
2
2
  "name": "@nocobase/app-plugin-agents",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "displayName": "Agents",
4
+ "description": "Agents for NocoBase applications: agents, the model services online agents call, their runs and conversations, and the runners people connect to run them (registration, the long-poll claim, slots, the sweeper, build jobs, and the runner and CLI tarballs the application serves).",
5
+ "version": "0.1.0-beta.10",
6
+ "type": "module",
7
+ "prettier": "@nocobase/dev-config/prettier",
8
+ "engines": {
9
+ "node": ">=24.0.0"
10
+ },
11
+ "sideEffects": false,
12
+ "exports": {
13
+ "./server": {
14
+ "types": "./dist/server/index.d.ts",
15
+ "import": "./dist/server/index.js"
16
+ },
17
+ "./server/tokens": {
18
+ "types": "./dist/server/tokens.d.ts",
19
+ "import": "./dist/server/tokens.js"
20
+ },
21
+ "./testing": {
22
+ "types": "./dist/server/testing.d.ts",
23
+ "import": "./dist/server/testing.js"
24
+ },
25
+ "./shared/access": {
26
+ "types": "./dist/shared/access.d.ts",
27
+ "import": "./dist/shared/access.js"
28
+ },
29
+ "./shared/agents": {
30
+ "types": "./dist/shared/agents.d.ts",
31
+ "import": "./dist/shared/agents.js"
32
+ },
33
+ "./shared/runs": {
34
+ "types": "./dist/shared/runs.d.ts",
35
+ "import": "./dist/shared/runs.js"
36
+ },
37
+ "./shared/runners": {
38
+ "types": "./dist/shared/runners.d.ts",
39
+ "import": "./dist/shared/runners.js"
40
+ },
41
+ "./shared/jobs": {
42
+ "types": "./dist/shared/jobs.d.ts",
43
+ "import": "./dist/shared/jobs.js"
44
+ },
45
+ "./shared/variables": {
46
+ "types": "./dist/shared/variables.d.ts",
47
+ "import": "./dist/shared/variables.js"
48
+ },
49
+ "./shared/skills": {
50
+ "types": "./dist/shared/skills.d.ts",
51
+ "import": "./dist/shared/skills.js"
52
+ },
53
+ "./shared/briefs": {
54
+ "types": "./dist/shared/briefs.d.ts",
55
+ "import": "./dist/shared/briefs.js"
56
+ },
57
+ "./shared/realtime": {
58
+ "types": "./dist/shared/realtime.d.ts",
59
+ "import": "./dist/shared/realtime.js"
60
+ },
61
+ "./shared/reports": {
62
+ "types": "./dist/shared/reports.d.ts",
63
+ "import": "./dist/shared/reports.js"
64
+ },
65
+ "./shared/conversations": {
66
+ "types": "./dist/shared/conversations.d.ts",
67
+ "import": "./dist/shared/conversations.js"
68
+ },
69
+ "./shared/model-catalog": {
70
+ "types": "./dist/shared/model-catalog.d.ts",
71
+ "import": "./dist/shared/model-catalog.js"
72
+ },
73
+ "./shared/models": {
74
+ "types": "./dist/shared/models.d.ts",
75
+ "import": "./dist/shared/models.js"
76
+ },
77
+ "./shared/i18n": {
78
+ "types": "./dist/shared/i18n.d.ts",
79
+ "import": "./dist/shared/i18n.js"
80
+ },
81
+ "./shared/vocabulary": {
82
+ "types": "./dist/shared/vocabulary.d.ts",
83
+ "import": "./dist/shared/vocabulary.js"
84
+ },
85
+ "./client": {
86
+ "types": "./dist/client/index.d.ts",
87
+ "import": "./dist/client/index.js"
88
+ },
89
+ "./client/config": {
90
+ "types": "./dist/client/config.d.ts",
91
+ "import": "./dist/client/config.js"
92
+ },
93
+ "./client/routes": {
94
+ "types": "./dist/client/routes.d.ts",
95
+ "import": "./dist/client/routes.js"
96
+ },
97
+ "./client/runs": {
98
+ "types": "./dist/client/runs.d.ts",
99
+ "import": "./dist/client/runs.js"
100
+ },
101
+ "./client/kit": {
102
+ "types": "./dist/client/kit.d.ts",
103
+ "import": "./dist/client/kit.js"
104
+ },
105
+ "./client/chat": {
106
+ "types": "./dist/client/chat.d.ts",
107
+ "import": "./dist/client/chat.js"
108
+ },
109
+ "./client/profile": {
110
+ "types": "./dist/client/profile.d.ts",
111
+ "import": "./dist/client/profile.js"
112
+ },
113
+ "./cli": {
114
+ "types": "./dist/cli/index.d.ts",
115
+ "import": "./dist/cli/index.js"
116
+ },
117
+ "./package.json": "./package.json"
118
+ },
119
+ "files": [
120
+ "dist",
121
+ "README.md",
122
+ "CHANGELOG.md",
123
+ "skills"
124
+ ],
125
+ "publishConfig": {
126
+ "access": "public"
127
+ },
128
+ "dependencies": {
129
+ "@ai-sdk/alibaba": "^2.0.60",
130
+ "@ai-sdk/anthropic": "^4.0.71",
131
+ "@ai-sdk/cohere": "^4.0.54",
132
+ "@ai-sdk/deepseek": "^3.0.58",
133
+ "@ai-sdk/google": "^4.0.87",
134
+ "@ai-sdk/moonshotai": "^3.0.62",
135
+ "@ai-sdk/openai": "^4.0.83",
136
+ "@ai-sdk/openai-compatible": "^3.0.62",
137
+ "ai": "^7.0.127",
138
+ "better-sqlite3": "^13.0.3",
139
+ "hono": "^4.13.2",
140
+ "knex": "^3.1.0",
141
+ "ollama-ai-provider-v2": "^4.0.1",
142
+ "pg": "^8.23.0",
143
+ "sqlite-vec": "^0.1.9",
144
+ "yaml": "^2.9.0",
145
+ "zod": "^4.6.5",
146
+ "@nocobase/app-cli-client": "^0.1.0-beta.6",
147
+ "@nocobase/agent-protocol": "^0.1.0-beta.7",
148
+ "@nocobase/cli-envelope": "^0.1.0-beta.1"
149
+ },
150
+ "peerDependencies": {
151
+ "@base-ui/react": "^1.6.0",
152
+ "@oclif/core": "^4.14.0",
153
+ "@tanstack/react-query": "^5.81.5",
154
+ "class-variance-authority": "^0.7.1",
155
+ "cn": "^0.4.0",
156
+ "lucide-react": "^0.487.0",
157
+ "react": "^19.0.0",
158
+ "react-day-picker": "10.0.1",
159
+ "react-markdown": "^10.1.0",
160
+ "react-router": "^7.0.2",
161
+ "recharts": "^3.8.0",
162
+ "remark-gfm": "^4.0.1",
163
+ "@nocobase/app-cli": "^1.0.0-beta.21",
164
+ "@nocobase/app-client": "^3.0.0-beta.1",
165
+ "@nocobase/app-plugin-authentication": "^2.0.0-beta.8",
166
+ "@nocobase/app-plugin-authorization": "^1.0.0-beta.27",
167
+ "@nocobase/app-plugin-file": "^1.0.0-beta.23",
168
+ "@nocobase/app-server": "^2.0.0-beta.6",
169
+ "@nocobase/authorization": "^1.0.0-beta.13",
170
+ "@nocobase/db": "^1.0.0-beta.19",
171
+ "@nocobase/i18n": "^1.0.0-beta.7",
172
+ "@nocobase/markdown-mermaid": "^0.1.0-beta.2",
173
+ "@nocobase/service-provider": "^0.0.2-beta.2"
174
+ },
175
+ "devDependencies": {
176
+ "@testing-library/react": "^16.3.2",
177
+ "@testing-library/user-event": "^14.6.3",
178
+ "@types/node": "^24.0.0",
179
+ "@types/react": "^19.2.0",
180
+ "eslint": "^10.0.0",
181
+ "jsdom": "^30.0.1",
182
+ "prettier": "^3.9.6",
183
+ "react-dom": "^19.2.8",
184
+ "typescript": "^6.0.3",
185
+ "vitest": "^4.1.10",
186
+ "@nocobase/app-testing": "0.1.0-beta.3",
187
+ "@nocobase/db-postgres": "0.1.0-beta.4",
188
+ "@nocobase/db-sqlite": "0.1.0-beta.5",
189
+ "@nocobase/dev-config": "0.1.0-beta.22",
190
+ "@nocobase/jobs": "0.1.0-beta.3"
191
+ },
192
+ "scripts": {
193
+ "build": "tsc -p tsconfig.json && nocobase-db-manifests",
194
+ "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.type-tests.json --noEmit",
195
+ "test": "vitest run --passWithNoTests",
196
+ "lint": "eslint . --max-warnings 0",
197
+ "lint:fix": "eslint . --fix --max-warnings 0",
198
+ "format": "prettier . --write",
199
+ "format:check": "prettier . --check",
200
+ "check": "pnpm lint && pnpm format:check && pnpm typecheck && pnpm test && pnpm build",
201
+ "fix": "pnpm lint:fix && pnpm format"
202
+ }
6
203
  }
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: nocobase-app-plugin-agents
3
+ description: Register the Agents plugin in a NocoBase App and configure it (agents.* in config.yml), contribute subjects, scopes, business actions, agent defaults, the App's own agents, CLI commands and reports through agentsToken, enable the agents discovered from runners, set up model services for the App's own model calls, connect runners (registration tokens, protocol, upgrade_required), build and serve the CLI and runner tarballs (pnpm nocobase cli build, --runner), or work out why a run, a runner or a model fails.
4
+ metadata:
5
+ short-description: Agents, runners, model services and their distribution
6
+ ---
7
+
8
+ # Agents App Plugin
9
+
10
+ Use this Skill when an App gives people agents to work with: agents that drive a coding tool (Claude Code, Codex, OpenCode, Pi) on a runner someone connects, one for each tool and model the runners report. Use it as well to build the App's CLI and the runner as tarballs the App serves, and to diagnose a run, a runner or a model that does not work. Do not use it for the business data agents act on; that stays with `nocobase-app-development` and the plugins that own it.
11
+
12
+ The package README is the full reference: read it at `node_modules/@nocobase/app-plugin-agents/README.md` (in this repository, `packages/plugins/app-plugin-agents/README.md`). The references below say what to do and point to its sections rather than repeating them.
13
+
14
+ ## Key rules
15
+
16
+ - The plugin knows no business of its own. Subjects, scopes, business actions, the instructions and actions every discovered agent gets, CLI commands and report pages are the App's, contributed through `agentsToken` from `@nocobase/app-plugin-agents/server/tokens` when the App's providers boot. With nothing contributed, agents still work in conversations.
17
+ - Nobody creates agents: each coding tool and model a runner reports becomes one, pending until someone who manages agents writes what it is good at and enables it. Only enabled agents get work, and only on a runner that is online, has the agent's tool signed in with its model, and whose owner's local policy lets it take the work. There are no online agents; model services serve the App's own model calls.
18
+ - Variables and model service keys are sealed with the App's secrets service: configure `secrets.keys` before storing any, or the API answers `SECRETS_KEY_MISSING` (503).
19
+ - The plugin registers no pages. The App routes the exported pages and mounts the chat; the App also binds `agentsAccessToken`, or every business action level is `none`.
20
+ - `subjects.register`'s `context.assemble`, brief sections and mounts run inside the claim's transaction: database reads only, never a network or a model call. Read anything else in the optional `prepare(run)`.
21
+ - Tarballs are built by `pnpm nocobase cli build` (the App's CLI) and `cli build --runner` (`nocobase-runner`), either as separate CI artifacts mounted into `storage/runners/dist` (or `agents.dist.dir`), or by the App's own `pnpm build` into its build output (universal packages, at the versions it was built with) and served from there. Never commit them.
22
+ - In examples, name the App's CLI after the App (`acme`), never `nocobase` or `nocobase-runner`.
23
+
24
+ ## References
25
+
26
+ | Task | Read |
27
+ | --------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
28
+ | Register the plugin, its prerequisites and `agents.*` configuration, mount the pages and the chat | [Setup and configuration](references/setup-and-config.md) |
29
+ | Contribute subjects, scopes, actions, agent defaults, the App's own agents, CLI commands, people, reports, mounts | [Extension points](references/extension-points.md) |
30
+ | Agents discovered from runners, the model catalog, enabling agents, availability, the App's own agents | [Agents](references/agents.md) |
31
+ | Model services, the model gateway, vectors | [Model services](references/model-services.md) |
32
+ | Register runners, how claims and heartbeats work, local policy, protocol and `upgrade_required` | [Runners](references/runners.md) |
33
+ | Build the CLI and runner tarballs, serve them, CI artifacts, install script, download tokens, updates, the npm runner | [Distribution](references/distribution.md) |
34
+ | Variables and secrets, the skill library, chat attachments, usage, prices and reports | [Variables, skills, attachments and usage](references/variables-skills-usage.md) |
35
+ | Check that everything works, and diagnose failures | [Verification and troubleshooting](references/verification-and-troubleshooting.md) |
@@ -0,0 +1,30 @@
1
+ # Agents
2
+
3
+ Nobody creates an agent. Each coding tool and model a runner reports signed in becomes one agent, named from the model catalog that ships with the plugin (such as "Claude · Opus 5.5"), and starts pending. `docs/runner-agents.md` in the package and the README's "What it does" (Agents) are the reference.
4
+
5
+ ## Enabling agents
6
+
7
+ - A pending agent gets no work. Someone who manages agents (`agents.agents` manage) enables it on the Agent page ("Fill in and enable") or with `PATCH /api/agents/:agentId` (`agent update`), writing what it is good at — the project manager hands it work by this — and optionally its default reasoning effort. The page starts the description from the catalog's suggestion.
8
+ - Every change names the agent's revision (`expectedRevision`); `REVISION_CONFLICT` means someone changed it since, so read it again. `GOOD_AT_REQUIRED`: enabling needs a description. `EFFORT_UNSUPPORTED`: the tool does not take that effort. `AGENT_MANAGED`: an App's own agent is changed through the App.
9
+ - Disabling an agent withdraws its queued runs and announces `agent.removed` (`reason` `disabled`); the App lets go of the work it gave the agent. Work for an agent that is not enabled is refused with `AGENT_NOT_ENABLED`.
10
+ - Anyone signed in reads the agents (`GET /api/agents`, `agent list-all`); `GET /api/agents/agentNames` names every agent there has been, for runs that name a removed one.
11
+
12
+ ## Discovery management
13
+
14
+ The page defaults to enabled agents. New discoveries are collapsed, grouped by tool and known catalog model, and searchable by model or provider; unknown provider-qualified models are kept separate. The enable dialog chooses an original provider candidate without changing its ID or execution model. Opening an enabled group exposes the other provider candidates, and disabled agents remain accessible.
15
+
16
+ Administrators ignore pending groups individually or in an atomic batch through `PUT /api/agents/discoveryPreferences` (`agent discovery set --input <file>`). Read `discoveryKey`, `discoveryRevision` and `ignored` from `GET /api/agents`, then send unique groups with their expected revision and `ignored: true` or `false`. Preferences survive reports and restarts, including new providers in the same group. Restoring returns pending discoveries without enabling them. Enabled groups cannot be ignored; stale revisions conflict with concurrent enabling. See `docs/runner-agents.md` for the body and migration.
17
+
18
+ ## Where an agent can run
19
+
20
+ `GET /api/agents` answers, per caller, how many team and personal runners online have the agent's tool signed in with its model, whether only personal runners have it (`personalOnly`: they take their owners' work only), and `unusable`, why the caller's work cannot start now: `pending`, `disabled`, `unreported` (no runner reported it for 14 days), `notConfigured`, `noRunner` or `othersPersonal`. The roster (`GET /api/agents/available`, `agent list`, `Agents.roster`) lists the enabled agents reported recently with whether each would take the caller's work now. A run that fails `modelUnavailable` marks that tool and model unavailable on its runner until the runner reports the tool's models differently.
21
+
22
+ ## The App's own agents and defaults
23
+
24
+ - `agents.ensureSystem(input)` keeps an agent of the App's own, such as a project manager: fixed id, name, description, instructions, business actions and the tools and models it runs with. Call it at boot; it creates the agent the first time and writes changes after.
25
+ - `agents.setDefaults(provider)` gives every discovered agent the App's instructions and business actions; call `agents.applyDefaults()` after the provider changes so agents discovered earlier get them too. Without a provider, business actions marked `defaultOn` apply.
26
+ - The system default chat agent is the App's to set (`PATCH /api/agents/chatSettings`); upgrading clears it along with every agent an earlier version kept.
27
+
28
+ ## Upgrading from configured agents
29
+
30
+ The `202610240020_ag_runner_agents` migration removes every agent an earlier version kept, online agents included: their rows stay disabled with `deletedAt` so history still names them, their queued runs are cancelled, their pending run requests withdrawn, and default chat agents cleared. After upgrading, wait for runners to report (or restart them), enable the agents that appear, and set the system default chat agent again.
@@ -0,0 +1,79 @@
1
+ # Distribution: the CLI and runner tarballs
2
+
3
+ The App serves two products itself: its own CLI (the `nocobase.cli.bin` of its `package.json`, such as `acme`) and the runner, `nocobase-runner`, each as standalone tarballs that bundle Node.js, one per platform, or as one universal tarball without Node that runs on the machine's own Node.js 24 or newer on every platform. An App that serves no tarball of a product may instead name the exact npm version to install it from ("Naming a product on npm instead" below), as NocoBase Studio does. The README's "What it does" (Distribution) and "The CLI runs get" sections, and `@nocobase/app-cli`'s README section "The application's own CLI: `cli build` and `cli link`", are the reference.
4
+
5
+ ## Building
6
+
7
+ ```bash
8
+ pnpm nocobase cli build # the App's CLI (needs nocobase.cli in package.json)
9
+ pnpm nocobase cli build --runner # nocobase-runner, from @nocobase/agent-runner
10
+ ```
11
+
12
+ - `--targets` takes a comma-separated list; the default is `darwin-arm64,darwin-x64,linux-x64,linux-arm64`. Windows is not supported.
13
+ - `--universal` also packs `<product>-v<version>-universal.tar.gz`, which carries no Node.js and runs on the machine's Node.js 24 or newer; without `--targets` it packs only that one (no Node download). The App serves it to every platform without a tarball of its own; one built for the platform wins.
14
+ - Node.js for each target is downloaded from nodejs.org and checked against `SHASUMS256.txt` (cached in `node_modules/.cache/nocobase-cli/node`). `--node-version` picks the version (default: the one running the command). `--host-node` uses this machine's Node.js for its own platform instead of downloading, for a quick local build: `pnpm nocobase cli build --targets darwin-arm64 --host-node`.
15
+ - `--out` (default `storage/runners/dist`), `--channel` (default `stable`), `--version` (default `nocobase.cli.version`, else the App's version; with `--runner`, the runner's), `--skip-build`, `--keep-staging`.
16
+ - The App needs `@nocobase/app-cli-client` in its `devDependencies` for the CLI and `@nocobase/agent-runner` for the runner; `npm`, `pnpm` and `tar` come from the environment.
17
+
18
+ Each product lands in a directory of its own, with a manifest of every file's SHA-256 and size:
19
+
20
+ ```
21
+ <out>/<channel>/<product>/manifest.json
22
+ <out>/<channel>/<product>/<version>/<product>-v<version>-<target>.tar.gz
23
+ ```
24
+
25
+ ## Serving
26
+
27
+ The plugin serves `agents.dist.dir` (default `storage/runners/dist`, relative to the App root), channel `agents.dist.channel` (default `stable`). A product's current version is the highest in the channel, unless `agents.dist.versions` pins one. Only files a manifest lists are served. Routes (`DIST_ROUTES` of `@nocobase/agent-protocol`): `GET /api/agents/dist/manifest`, `GET /api/agents/dist/products/<product>/targets/<target>` (`?format=env` for a shell; 404 `PLATFORM_UNSUPPORTED` with the targets there are; the universal tarball answers with the asked target and `universal: true`, `universal=true` in env form), the tarball itself, and `POST /api/agents/dist/downloadTokens`.
28
+
29
+ ### Naming a product on npm instead
30
+
31
+ `agents.dist.npm` names the npm package and exact version (never a range) of a product, such as `{ nocobase-runner: { package: '@nocobase/agent-runner', version: 1.0.0 } }`. It is used only when `agents.dist.dir` has no current version of that product; a product the directory has is served from it exactly as without the setting. The machine needs Node.js 24 or later already; nothing bundles it on this path.
32
+
33
+ Only callers that say they understand the answer get it, so an older runner, install script or CLI never sees one:
34
+
35
+ - The resolve route with `accept=npm` (a comma-separated list) answers `{ kind: 'npm', product, version, package, channel }`, or with `format=env` the lines `kind=npm`, `product=`, `version=`, `package=` and `channel=`. Without it, such a product is 404 as before.
36
+ - A heartbeat answer carries `npmUpgrade` (`latestVersion`, `package`, `channel`, `reason`) instead of `upgrade` only to a runner that declares the `npm` feature (protocol 8) and runs an older version; any other runner is offered no update for that product. The Runtimes page marks only those runners "Upgradable".
37
+
38
+ An App that builds its runner and CLI into its deployment pins them to the versions it was built with this way, so redeploying it moves every runner to that version.
39
+
40
+ ## CI and deployment
41
+
42
+ There are two ways to deliver the packages. When the runner and CLI follow the App's own releases, build them with the App: an `afterServerBuild` build hook in `cli/plugins.ts` runs `pnpm nocobase cli build --universal --skip-build --out dist/runners` (and the same with `--runner`), and `agents.dist.dir` in the App's configuration points at that directory, so every build, archive and image serves the runner and CLI it was built with; universal packages keep the build small, and `cli build` needs the npm registry for their dependencies. NocoBase Studio does this. Otherwise build the two products as separate artifacts in CI, one job each (`pnpm nocobase cli build --out output/dist` and `pnpm nocobase cli build --runner --out output/dist`, uploading `output/dist`), and mount or copy each into the deployment's `storage/runners/dist` (or the directory `agents.dist.dir` names), keeping the `<channel>/<product>/` layout. Rebuild the runner whenever `@nocobase/agent-runner` or the agents plugin is upgraded, so runners can update to a version that speaks the App's protocol, and rebuild the CLI whenever the App's `nocobase.cli` or its CLI skills change.
43
+
44
+ ## Installing on a machine
45
+
46
+ The install script (`GET /api/agents/dist/installScript`, no credential, it carries no secret) installs the App's CLI under `~/.local/share/<cli>` and links it into `~/.local/bin`:
47
+
48
+ ```bash
49
+ # The CLI alone, with a download token any signed-in person mints (one platform, three downloads within 30 minutes):
50
+ curl -fsSL https://app.example.com/api/agents/dist/installScript | sh -s -- --token <download token>
51
+
52
+ # A runtime: also installs nocobase-runner, registers it and starts it as a user service. "Add runtime" shows this line:
53
+ curl -fsSL https://app.example.com/api/agents/dist/installScript | sh -s -- --runner --server https://app.example.com --token <registration token>
54
+ ```
55
+
56
+ Options: `--prefix`, `--bin-dir`, `--dry-run`; with `--runner`, `--runner-prefix`, `--name`, `--label` and `--no-service` (register only). A token of the other kind fails before anything is installed. An App that serves no CLI still installs the runtime.
57
+
58
+ For a universal tarball the script checks, before downloading, that `node` on PATH is Node.js 24 or newer and stops with how to install it otherwise; it then links `<prefix>/node` to that `node`. The package's launcher tries `NOCOBASE_NODE`, `<prefix>/node`, `node` on PATH, and a Node an older standalone version in `<prefix>/versions/` still carries, so a runner's user service (launchd, systemd), whose PATH usually has no `node`, starts it. An update to a universal version leaves the Node it ran on in `<prefix>/node` before removing old versions. With `--runner`, a missing `pnpm` only prints a hint to run `corepack enable`.
59
+
60
+ The script resolves with `accept=npm`. For an npm answer it checks Node.js 24 the same way and that `npm` is on PATH (or `NOCOBASE_NPM` names one), stopping with how to get it otherwise, then runs `npm install --prefix <prefix>/versions/<version>.partial --no-save --no-audit --no-fund --omit=optional <package>@<version>` with the npm configuration (registry, proxy) of the person running it, writes a launcher at `bin/<command>` beside `node_modules`, renames the directory to `<prefix>/versions/<version>` and links `<prefix>/node`. `current`, the command link and the runner's service are then exactly as for a tarball. `--omit=optional` keeps the coding tools' per-platform SDK packages, each carrying a binary the runner never starts, off the machine.
61
+
62
+ ## Updates
63
+
64
+ - The runner reports its product and version on every heartbeat; the answer names a newer `nocobase-runner` when the channel serves one for its platform (`upgrade`), or the npm version `agents.dist.npm` pins (`npmUpgrade`, to runners with the `npm` feature). An installed runner started by its service updates itself between runs; `nocobase-runner update` does it now (`--check` only checks, `--auto on|off` switches automatic updates). The Runtimes page marks such a runner "Upgradable".
65
+ - The App's CLI, installed by the script, has `<cli> update`, and says on stderr when a newer version is served.
66
+ - Both ask with `accept=npm` and install an npm answer into `<prefix>/versions/<version>` the way the install script does, with the machine's npm; an installation moves between tarball and npm versions in either direction. The runner and `@nocobase/app-cli-client` depend on exactly the `@nocobase/agent-protocol` they were built with, so an exact npm version speaks one known protocol.
67
+ - A run gets the App's CLI as `agents.cli.package` says: by default the tarball the App serves for the runner's platform (`{ kind: served }`), downloaded once per version. A runner without the `archives` feature, or a platform with no build, falls back to the CLI installed beside it (`preinstalled`). `{ kind: npm, package, version }` names an npm package instead.
68
+
69
+ ## The npm package as an alternative
70
+
71
+ `@nocobase/agent-runner` is published to npm with the `nocobase-runner` command, for a machine that already has Node.js 24 or later and prefers a package manager to the install script:
72
+
73
+ ```bash
74
+ npm install -g @nocobase/agent-runner
75
+ nocobase-runner register --server https://app.example.com --token <registration token>
76
+ nocobase-runner service install
77
+ ```
78
+
79
+ Such a runner is not in the install script's layout, so it does not update itself: upgrade it with npm to a version that speaks the App's protocol. Install the App's CLI separately (the download-token line above) unless runs get it from the served tarball.
@@ -0,0 +1,43 @@
1
+ # Extension points
2
+
3
+ Everything the App contributes goes through `agentsToken` (`@nocobase/app-plugin-agents/server/tokens`), resolved in one of the App's service providers when it boots. Text people read is an `I18nText` (`{ key, ns }`) in the App's own namespace. The README's "Extension points" section describes each field; this is the map. Where the two disagree, the types exported from `server/tokens` (the `Agents` interface) are authoritative.
4
+
5
+ | Extension point | Contributes | Typical use |
6
+ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
7
+ | `subjects.register(binding)` | A kind of subject runs work on: `kind`, `title`, `triggers`, `preview`, `context.assemble`, `sink.onRunFinished`, `queuedExpiryMs`, `reports.describe` | An issue, a ticket, a document an agent works on |
8
+ | `runs.enqueue(...)`, `runs.withdrawQueued(...)`, `runs.workload(...)` | Wake an agent on a subject, withdraw queued work, read the board of open runs | Assigning work to an agent from a business action |
9
+ | `scopes.register(kind)` | A scope of variables and default skills (`key`, `title`, `description`, `access(scopeId, userId)`); `agent` is reserved, `workdir` is registered by the App | Per-project or per-team variables |
10
+ | `actions.provide(source)` | The business actions an agent may be given (`key`, `group`, `title`, `description`, `defaultOn`), and those never granted (`grantable: false` with a `reason`) | What the agent editor's Capabilities tab offers |
11
+ | `agents.setDefaults(provider)`, `agents.applyDefaults()` | The instructions and business actions every agent discovered from runners gets; `applyDefaults` writes them to the agents that differ |
12
+ | `agents.ensureSystem(input)` | An agent of the App's own (fixed id, name, description, instructions, actions, tools and models), kept as given and enabled |
13
+ | `gate.set(gate)` (`ActionGate`: `allowed(identity)`, optional `consultable(action)`) | Which business actions a caller holds now: a person their own (narrowed by an API key's scope), a run those its agent is configured with within the waking person's | Bounding the command manifest and every request a run makes; without a gate a caller holds only `agents.agents/view` (and `agents.runs/self` for a run) |
14
+ | `conversations.sources.register`, `conversations.contextKinds.register`, `conversations.rules.provide`, `conversations.deliver`, `consultations.rules.provide` | Where conversations start from, what a page context may reference, extra system rules, news delivered into a conversation | "Ask agent" buttons on business pages |
15
+ | `people.provide(source)` | The App's directory: names, whom to pick, who can no longer act (`inactive`) | Disabling a person stops their runners |
16
+ | `events.on('agent.removed' \| 'notice', listener)` | An agent disabled; people to be told, such as `runner_upgrade_required` | Releasing work given to an agent; forwarding notices to the App's inbox |
17
+ | `jobs.register(kind, registration)` | A build job kind, only for an off-by-default runner build method | Builds on runners |
18
+ | `reporting.usage`, `reporting.runFigures`, `reporting.range`, `reporting.modelUsage` | What runs used and cost, grouped as the App needs | The App's report pages |
19
+ | `briefs.sections.register(provider)` | Sections added to every brief's context layer | Project conventions every run should read |
20
+ | `mounts.register(provider)` | Directories of files placed beside the agent | Reference material for a run |
21
+ | `repoAccess.register(provider)` | Commit identity and short-lived push credentials per run, at the claim or, with `issue`, whenever the runner's git needs one (`gitCredentials` runners) | Git hosting integration |
22
+ | `models.gateway` | The model gateway for the App's own model calls | See [Online agents](online-agents.md) |
23
+ | `vectors.collection(spec)`, `vectors.stores.register` | Vector collections searched by meaning; another vector store type | Semantic search for a knowledge base |
24
+
25
+ Rules that are easy to miss:
26
+
27
+ - `context.assemble`, brief sections and mounts run inside the claim's transaction and read the database through the claim's connection only (on SQLite it is the only connection). Read anything else in the provider's optional `prepare(run)`, which runs before the transaction. A throw leaves the run queued; three failures fail it `setupFailed`.
28
+ - `runs.enqueue` takes an optional outer transaction; inside another plugin's transaction, publish the collected events after it commits.
29
+ - When someone answers for the subject, pass `responsibleUserId` and the source (`requestedByUserId`, or `causedByRunId` for what a run did). Work another person causes then answers `outcome: 'pending'`: a run request only the responsible confirms (`runs.requests`, `/api/agents/runRequests`), unless `execution: 'mine'` runs it as the asker, which is refused with `NO_RUNNER_AVAILABLE` when no online runner would take the asker's work (`eligibility.canClaim` with the agent's variables). Both people must have agent access; identical pending snapshots are reused without renewing expiry. For mutable responsibility, bind `subjects.register({ …, responsibleUserId: (conn, subjectId) => … })` to read the current responsible using the supplied transaction connection, so old owners cannot confirm or reject before reassignment. Call `runs.requests.reassign` with each responsibility change; without a resolver this is the only protection against stale confirmation. If there is no usable new responsible, reassignment expires and notifies instead of dropping the work, preserving `runAsMe`. Forward `runRequest.*` events and `run_request_expired` notices to the App's inbox, and handle `outcome` before using a possibly null `runId`.
30
+ - To tell a person before queuing whether a runner would take their work, call `eligibility.canClaim` (online now) or `mayQueue` (some registered runner could) with the subject's variable scopes; a variable marked `teamRunnersOnly` needs a team runner. Enqueue itself does not refuse work run as the responsible or as whoever woke the agent: such work waits with `secretsNotAllowed`.
31
+ - Forward `notice` / `notice.cleared` using the exported `AgentsNotice` interface. Dispatch by its `type`: runner notices go to the runner's owner, `run_secrets_not_allowed` to the run's actor and owner, and `run_request_expired` to the requester. Subjects are of kind `runner`, `run` or `runRequest`. A secrets notice names the run, the agent and the team-only variables in its parameters. Deduplicate by the notice key. Existing copied queue components must merge the `secretsNotAllowed` type and label from the Registry.
32
+ - A repository provider minting credentials in `prepare` implements idempotent `discard(run, prepared)` to revoke undelivered credentials. The plugin calls it outside the transaction on a skipped or rolled-back claim; the App implements the code host revocation API.
33
+ - Name commands in a brief with `commandRef(cli, id, flag?)` rather than spelling them.
34
+ - The App's CLI commands are its API routes: a route declares `...cliRoute({ command, action, ... })` in `describeRoute()`, and lists `runToken` in its `security` when a run may call it. The command manifest (`GET /api/cli/manifest`) offers each caller only the commands whose `action` the gate allows. There is no separate command registry.
35
+ - `GET /api/agents/vocabulary` hands the browser the subjects, sources and scopes the App contributed; the browser never imports server code for them.
36
+
37
+ The README's example under "Extension points" shows a subject registered and work enqueued and withdrawn.
38
+
39
+ A subject assembly may return `inputs` containing only the effective inputs for its current task. Render the task and turn from that same selection. Claims use it for delivery, brief sections and mounts; omitted inputs are resolved in the claim transaction and retained in the audit history, so polling and completion do not replay obsolete work. Omit the field to deliver all queued inputs.
40
+
41
+ A working run is held to the same policy: before input joins a dispatched or running run, and before pending input is delivered to one, the plugin asks `admit` and then `selectInputs` with that input. New input either hook keeps from the working run waits in a queued run for the claim to admit or cancel; pending input rejected or left out by `selectInputs` is marked handled instead of being delivered. Implement `selectInputs` with the same selection the assembly returns as `inputs`.
42
+
43
+ For issue/card work indicators, use `runs.workingOn(subjectKind, subjectIds)` after filtering visible subjects. It returns unique `{ subjectId, agentId, working: true }` pairs for dispatched/running runs in that exact scope, with no run details or global board cap. Match the current executor and apply the application's pending approval rules separately; queued/terminal runs do not appear. Pass a bounded batch from a view, rather than querying each card's full history.
@@ -0,0 +1,17 @@
1
+ # Model services
2
+
3
+ Agents run on runners and do not use model services. The plugin keeps model services for the App's own model calls, such as a knowledge base's embeddings, reranking and short texts. The README's "Model services" and "Vectors" sections are the reference.
4
+
5
+ ## Model services
6
+
7
+ - A service is a provider type (`MODEL_PROVIDERS` in `@nocobase/app-plugin-agents/shared/models`: OpenAI, Anthropic, Google, DeepSeek, Alibaba, Moonshot, Cohere, Ollama, and OpenAI-compatible endpoints), a name, a base URL, a write-only API key sealed with the secrets service, an on/off switch and the models it offers. OpenCode Zen and Go serve each model family through its own API under one base URL: DeepSeek, GLM, Kimi and MiMo through a DeepSeek or OpenAI-compatible service, Claude, MiniMax and Qwen through an Anthropic one, GPT and Grok through an OpenAI one; a call to an OpenCode base URL sends `x-opencode-session` automatically. Each model has a kind: `chat` (short texts), `embedding` or `rerank`.
8
+ - Services are added on the Models page (`modelsRoute`, behind `agents.services`) or through the API (`service create|discover|check` on the CLI). They are never configured in `config.yml`.
9
+ - `GET /api/agents/models` (anyone signed in) lists the models of a kind the enabled services offer; `POST /api/agents/checkModel` (who reads agents) tests one with a short call and never throws.
10
+
11
+ ## The model gateway
12
+
13
+ `models.gateway` on `agentsToken` serves the App's own model calls: `catalog(kind)`, `check(ref)`, `embed({ model, values, source })`, `rerank({ model, query, documents, topN?, source })` and `generate({ model, system?, prompt, maxOutputTokens?, source })`. Each names who asks (`source`), is recorded in `agModelUsage` and priced from the service's model prices, and throws `ModelError` with a code (`config`, `auth`, `quota`, `rateLimit`, `network`, `contextOverflow`, `filtered`, `badResponse`, `aborted`, `unknown`). Use it rather than calling a provider SDK, so keys, usage and prices stay in one place.
14
+
15
+ ## Vectors
16
+
17
+ `vectors.collection(spec)` gives the App semantic search over items it names, embedded with the model it chooses, in the store `agents.vectors` configures (`sqlite-vec` by default, `pgvector` for several instances or Alpine). `status()` answers availability and a `VectorUnavailableCode` when it is not available; then search answers null and the caller keeps its keyword search. See the README's "Vectors" section.
@@ -0,0 +1,46 @@
1
+ # Runners
2
+
3
+ ## Ended workspace diagnostics
4
+
5
+ For application-owned task cleanup, keep `SubjectWorkspaces.settled` conservative and optionally register `resolveKeys` for legacy directory keys and `commits` for trusted merged PR heads by repository URL. The plugin checks current or historical runner ownership and excludes nonterminal runs; directory keys alone never authorize lookup or cleanup. Use the head at merge time, not a squash merge commit. See `packages/plugins/app-plugin-agents/docs/workspace-cleanup.md` in the source repository for protocol and integration details.
6
+
7
+ Runtime pages distinguish application settlement from the runner's local cleanup check. An allowed check is not a deletion receipt. Directory diagnostics require explicit `canSeeMachine: true`; disk warnings use the report's measurement time and show expired or offline readings as prior reports. An ended workspace still stays when tracked changes, unpushed submodule commits, missing local objects or insufficient evidence prevent verification. Upgrade and serve both plugin and runner before expecting new diagnostics.
8
+
9
+ A runner (shown as a runtime) is `nocobase-runner` from `@nocobase/agent-runner`, running on a server, a VM or someone's own device. It registers with one or more Apps, long-polls them for work and drives a coding tool for runner agents' runs. The wire protocol is `@nocobase/agent-protocol`. The README's "What it does" section (Runners, The claim, Runs, The sweep) and `@nocobase/agent-runner`'s README are the reference.
10
+
11
+ ## Registering a runner
12
+
13
+ A runner registers once per App with a one-time registration token (10 minutes):
14
+
15
+ - On the web: Runtimes page, "Add runtime". It asks who the runner works for (personal, or team for who manages `agents.runners`), which coding tools it may run and its maximum concurrent runs, then shows the one-line install and the register command with a fresh token, and waits for the runner to connect.
16
+ - Through the API: `POST /api/agents/runners/registrationTokens` (CLI: `runtime token create`).
17
+ - From the App's checkout or deployment: `pnpm nocobase agents runner-token --trust team` or `--trust ownerOnly --owner <user id>`, optionally `--tools claude,codex`. It prints the token (`--json` for the envelope).
18
+
19
+ Then on the runner's machine: `nocobase-runner register --server <App URL> --token <token>`, and `nocobase-runner start` or `nocobase-runner service install` (launchd on macOS, a systemd user unit on Linux). The install script does all of this in one line; see [Distribution](distribution.md).
20
+
21
+ A runner authenticates afterwards with its own key. Personal runners (`ownerOnly`) run only work their owner started, and receive its variables like any runner, except those marked "Team runtimes only" (`teamRunnersOnly`): a run that gets one goes to a team runner. Their owner may share them with the team. `nocobase-runner unregister --server <url>` or "Revoke" on the Runtimes page ends a registration.
22
+
23
+ ## How work reaches a runner
24
+
25
+ - **Heartbeat**: the runner reports its system, features, coding tools (version, installed, signed in), its owner's local policy and the product it runs as. It is marked offline after 150 s without one. The heartbeat answer reconciles what it holds (releasing what the server no longer thinks it holds, asking it to stop what was cancelled) and carries an `upgrade` notice when a newer `nocobase-runner` is served for its platform.
26
+ - **Claim**: one long-poll, `POST /api/agents/runners/claim?wait=true`, answers jobs and runs together, at most the runner's free slots. A run is handed over only when one of the agent's tools is enabled, installed and signed in there, the agent names no runner or this one, the runner is shared or owned by who woke the agent, its features cover what the run needs, the agent's concurrency has room and the runner's local policy allows the agent, subject and repositories. The claim renders the brief, mints a run token and hands over working directories, variables, skills and the CLI to install.
27
+ - **Lease and sweep**: a runner renews its lease while it works; the sweeper (every 30 s) takes back runs from runners that went away or lost their lease, and retries the retryable failures (`runnerOffline`, `policyRefused`, `leaseExpired`, `startTimeout`, `cliUnavailable`, `toolNetwork`, `toolRateLimit`) while attempts remain.
28
+ - **Local policy**: the machine's owner decides what it takes in `~/.nocobase-runner/policy.json` (agents, subjects, repos, build, per-App overrides). An App cannot change it. Work outside it fails `policyRefused` and goes to another runner; a policy file it cannot read makes it take nothing.
29
+
30
+ ## Protocol versions and `upgrade_required`
31
+
32
+ Every runner request carries its protocol version (`PROTOCOL_VERSION` of `@nocobase/agent-protocol`). The App serves a range (`MIN_PROTOCOL_VERSION` to `PROTOCOL_VERSION`; `RunnerSummary.requiredProtocol` on the API). A runner outside it stays connected with status `upgrade_required`: it gets no work, what it held is released, and its owner is told once per protocol through the `notice` event (`runner_upgrade_required`; `notice.cleared` once it connects with a supported protocol). Forward that event to the App's inbox or notifications so the owner hears about it.
33
+
34
+ What to do: upgrade the runner to a version that speaks the App's protocol. An installed runner updates itself between runs when the App serves a newer `nocobase-runner`, or now with `nocobase-runner update`; that only helps once the App serves a runner built from the matching `@nocobase/agent-runner`, so rebuild and remount the runner tarballs whenever the App's agents plugin is upgraded (see [Distribution](distribution.md)). A runner that reports no product (installed before products existed) is offered no update: install it again with the one-line install.
35
+
36
+ ## Coding tools
37
+
38
+ `RunnerSummary.tools` also carries optional advisory capabilities: `models` (model `id` and optional `efforts`), `modelsDetectedAt` (the last discovery attempt), `modelsDetectionStatus` (`detected`, `unsupported`, `failed`) and a fixed brief `modelsDetectionError` on failure. Missing status means capability information is unknown; missing efforts means unknown support, while an empty model list is a successful discovery of no available models. Discovery runs in the background every five minutes, so completed results arrive on a later heartbeat. The App stores these per runner in its existing tools JSON, keeps the same runner visibility and machine-information filtering, and never writes the suggestions into Agent configuration or uses them to authorize or route work. Pi reports provider/model IDs, and its table does not enumerate per-model efforts; OpenCode variants and Codex reasoning efforts do. Claude reports unsupported. Rebuild and serve the updated runner tarballs to enable reporting; upgrading the plugin alone does not update an already installed runner.
39
+
40
+ Capability reports are advisory across independently released runners and Apps: registration and heartbeats discard invalid model entries, individual invalid efforts, malformed detection timestamps and unfamiliar status or error values while still validating the tool's basic fields. A report containing only invalid models does not retain detected status; a valid empty list still means no models were found. Counts and identifier lengths remain bounded, and versioned model ids such as `claude-sonnet-4@20250514` are supported.
41
+
42
+ Run lists and details expose `executions`, one claim snapshot per attempt, with the runner's name, owner and trust, the tool version, requested model, reported `actualModels` and reasoning effort. Retries retain these facts after releasing `runnerId` to null; use the latest snapshot for historical display and the current holder for authorization. Only the primary tool's usage identifies its actual model, and multiple models remain visible. Older runs have no snapshots: their known usage models can be displayed, but their historical machine names and attempt boundaries must not be invented. Applications must forward the fields through custom CLI projections and update their installed UI Library run components.
43
+
44
+ `effort` is requested; `actualEffort` is only a tool report, with `actualEffortSource`, `actualEffortAt` and per-attempt `effortReports`. Show unreported actual values explicitly, never infer from requests or token counts. Import `runForViewer`/`executionForViewer` from `@nocobase/app-plugin-agents/server/tokens` and apply them to custom user-facing run/workload/CLI outputs, using the runner machine rights; `machineHidden` means a generic runtime label, not a fallback to the hostname/id. A projects viewer may provide `seesExecutionMachine` from those same rights. See `docs/execution-history.md` for the report and projection contracts.
45
+
46
+ The runner finds each coding tool on its PATH and reports whether it is signed in. A tool not found, or not signed in, is offered no runs: sign in on the runner's machine as the runner's user (for example `claude` and its login), then wait for the next heartbeat. Which tools a runner is offered work for is chosen on the Runtimes page (`enabledTools`). A model the tool's account cannot use fails the run `modelUnavailable`.
@@ -0,0 +1,57 @@
1
+ # Setup and configuration
2
+
3
+ ## Register the plugin
4
+
5
+ The plugin has three entries, each listed in the App's matching composition root:
6
+
7
+ | Root | Import | Entry |
8
+ | ------------------- | --------------------------------------------------------- | --------------------------------------------------- |
9
+ | `server/plugins.ts` | `import agents from '@nocobase/app-plugin-agents/server'` | `agents` |
10
+ | `client/plugins.ts` | `import agents from '@nocobase/app-plugin-agents/client'` | `agents()` |
11
+ | `cli/plugins.ts` | `import agents from '@nocobase/app-plugin-agents/cli'` | `agents` (adds `pnpm nocobase agents runner-token`) |
12
+
13
+ Register `@nocobase/app-plugin-authentication`, `@nocobase/app-plugin-authorization` and `@nocobase/app-plugin-file` before it; they are its peers, and chat attachments and the skill library store files through the file plugin and Drive. Run `pnpm nocobase db apply` after adding it: the plugin brings its own migrations. Run `pnpm nocobase skills sync` so this Skill reaches the App's `.agents/skills/`.
14
+
15
+ The App binds `agentsAccessToken` (`AgentsAccess.scopeOf(identity, key)`) from one of its own providers to say how far each caller's business actions reach (`BUSINESS_ACTIONS` in `@nocobase/app-plugin-agents/shared/access`). Unbound, every level is `none`, and only who manages agents (the `agents.agents` settings item) changes agents and skills. The README's "HTTP API" section lists the four settings items (`agents.agents`, `agents.runners`, `agents.prices`, `agents.services`) and what each allows.
16
+
17
+ Contributions (subjects, scopes, actions and the rest) go in a provider of the App that resolves `agentsToken` at boot; see [Extension points](extension-points.md). Keep them together, for example in `server/agents/`, and the browser's side in `client/agents/`.
18
+
19
+ ## The App's own CLI
20
+
21
+ Agents call the App through the App's CLI. An App that wants one declares it under `nocobase.cli` in its `package.json` (`bin`, `displayName`, `envPrefix`, `auth.clientId`, `skills`, …) and adds `@nocobase/app-cli-client` to its `devDependencies`, plus `@nocobase/agent-runner` to pack the runner. `@nocobase/app-cli`'s README, section "The application's own CLI: `cli build` and `cli link`", lists every field. `pnpm nocobase cli link` makes `pnpm exec acme` run it during development. Its commands are the App's API routes that declare `x-cli` (`cliRoute()` in `describeRoute()`), served by `GET /api/cli/manifest`; a route a run may call lists `runToken` in its `security` and gives its `x-cli` an `action`. The README's "The CLI's commands" section has the details.
22
+
23
+ ## Configuration
24
+
25
+ Everything is optional. Read the README's "Configuration" section for the annotated block; in short:
26
+
27
+ ```yaml
28
+ agents:
29
+ cli: # the CLI runs get
30
+ name: acme
31
+ credentialFile: .acme/run.json # .<name>/run.json by default
32
+ package: { kind: served } # or { kind: npm, package, version }, or { kind: preinstalled }
33
+ app: { id: acme, name: Acme } # how runners name this App
34
+ dist: # the runner and CLI tarballs
35
+ dir: storage/runners/dist # the default; relative to the App root
36
+ channel: stable
37
+ versions: { acme: 0.1.0 } # pin a product instead of the channel's highest
38
+ npm: # a product with no tarball in dir, named on npm instead (exact versions)
39
+ nocobase-runner: { package: '@nocobase/agent-runner', version: 1.0.0 }
40
+ vectors:
41
+ store: sqlite-vec # the default; pgvector (own PostgreSQL), or false
42
+ path: storage/vectors.sqlite
43
+ skills:
44
+ disk: s3 # Drive disk for skill files; drive.default by default
45
+ ```
46
+
47
+ - `agents.cli.name` defaults to `agents.app.id`; set it to the App's `nocobase.cli.bin` so runs install and call the same CLI the App serves.
48
+ - `sqlite-vec` is local to an instance and has no build for Alpine (musl), where it reports `SQLITE_VEC_UNSUPPORTED`; an App running several instances, or on Alpine, uses `pgvector`, which takes its own PostgreSQL connection and never the App's.
49
+ - Moving `agents.skills.disk` does not copy what is stored: copy `skills/blobs/` across first.
50
+ - Model services, for the App's own model calls, are not configured here; they are added on the Models page or through the API.
51
+ - `secrets.keys` (the App's secrets service) must be set before variables or model service keys can be stored. `pnpm nocobase secrets rotate` reseals both stores.
52
+
53
+ ## Pages and chat
54
+
55
+ The plugin has no routes of its own. The App routes what `@nocobase/app-plugin-agents/client/routes` exports (`agentsRoute`, `runtimesRoute`, `skillsRoute`, `usageRoute`, `modelsRoute`), each behind a page grant named like its route (`PAGES` in `shared/access`); `modelsRoute` stands behind `agents.services` read. `client/kit` has the pieces for the App's own pages (`RunnerAgentsSection`, the Agent page's list for an App that shows its own agents beside it, `VariablesSection`, `DefaultSkillsSection`, `useRunnerOptions`, `useAgentOptions`), `client/runs` the headless parts of a subject's runs, `client/profile` the person's default chat agent, and `client/config` the business-action catalog context.
56
+
57
+ The chat is headless in `client/chat`: wrap the App's routes in `ChatProvider` and install the UI Library's `agent-chat` block (`yes n | pnpm exec shadcn add @nocobase/agent-chat`) for its UI. The README's "Web UI" section describes every export.
@@ -0,0 +1,21 @@
1
+ # Variables, skills, attachments and usage
2
+
3
+ ## Variables and secrets
4
+
5
+ Variables (`agSecrets`) are environment variables for a runner agent's process. Every one is a secret sealed with the App's secrets service, so `secrets.keys` must be configured first (otherwise `SECRETS_KEY_MISSING`, 503). They are set on an agent, on a working directory (`workdir`) or on a scope the App registers (`scopes.register`), and merged for a run in the order the subject names its scopes, then its working directories, then the agent. They reach only runners with the `secrets` feature. Values are write-only; revealing one and every delivery are audited (`agSecretAudits`, `variable audit list`). The redactor replaces delivered values with `[REDACTED]` in everything a runner reports.
6
+
7
+ On the App's own pages, `VariablesSection` from `client/kit` edits a scope's variables. On the CLI: `variable list|set|delete|reveal <scope kind> <scope>`. `pnpm nocobase secrets rotate` reseals them under a new key.
8
+
9
+ ## The skill library
10
+
11
+ Skills (`agSkills`) follow the open Agent Skills format: a directory with `SKILL.md` (front matter `name` and `description` required) and supporting files under `scripts/`, `references/` and `assets/`. Every save is a version runs get at once; saves name the revision they were made against and conflict with 409 `REVISION_CONFLICT`. Skills are attached to agents, and as defaults to a working directory or a registered scope (`DefaultSkillsSection` in `client/kit`). Agents may run a skill's scripts. File contents go to the Drive disk `agents.skills.disk` names. See the README's "What it does" (Skills) and "Configuration" sections.
12
+
13
+ Skills the App's CLI ships (`nocobase.cli.skills`) reach every run beside the run's own.
14
+
15
+ ## Chat attachments
16
+
17
+ A person may send files with a message: each is uploaded first (`POST /api/agents/chatAttachments`, one file, stored through the file plugin), readable only by its uploader until sent, then sent with the message (`attachmentIds`). After that only the conversation's owner and a run of its agent on that conversation read it. The agent downloads a file with the CLI (`conversation attachment download <file-id>`). Uploads never sent are purged. Size and count limits are the `CHAT_ATTACHMENT_*` constants in `@nocobase/app-plugin-agents/shared/conversations`, whose header comment is the contract.
18
+
19
+ ## Usage, prices and reports
20
+
21
+ Every run records what it used (tokens per model and tool) as it reports. The Usage page (`usageRoute`, `GET /api/agents/usage`) groups it by agent, person, group, subject, day, model, tool or type; who reads `agents.prices` sets prices on its prices sheet, and costs are computed from them. Model calls outside runs (embeddings, reranking, short generations through `models.gateway`) appear as "Other model use" (`GET /api/agents/usage/models`). The App's own report pages read `reporting.usage`, `reporting.runFigures`, `reporting.range` and `reporting.modelUsage` from `agentsToken`, and each subject kind's `reports.describe` labels and groups its runs.