@nocobase/app-plugin-agents 0.1.0-beta.9 → 1.0.0-beta.15

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 (831) hide show
  1. package/CHANGELOG.md +293 -0
  2. package/README.md +94 -51
  3. package/dist/client/api/client.d.ts +25 -19
  4. package/dist/client/api/client.d.ts.map +1 -1
  5. package/dist/client/api/client.js +23 -24
  6. package/dist/client/api/client.js.map +1 -1
  7. package/dist/client/api/keys.d.ts +4 -1
  8. package/dist/client/api/keys.d.ts.map +1 -1
  9. package/dist/client/api/keys.js +4 -1
  10. package/dist/client/api/keys.js.map +1 -1
  11. package/dist/client/api/runners.d.ts +8 -4
  12. package/dist/client/api/runners.d.ts.map +1 -1
  13. package/dist/client/api/runners.js +9 -0
  14. package/dist/client/api/runners.js.map +1 -1
  15. package/dist/client/chat/ai-form.d.ts +13 -0
  16. package/dist/client/chat/ai-form.d.ts.map +1 -0
  17. package/dist/client/chat/ai-form.js +57 -0
  18. package/dist/client/chat/ai-form.js.map +1 -0
  19. package/dist/client/chat/api.d.ts +16 -14
  20. package/dist/client/chat/api.d.ts.map +1 -1
  21. package/dist/client/chat/api.js +85 -18
  22. package/dist/client/chat/api.js.map +1 -1
  23. package/dist/client/chat/client-id.d.ts +3 -0
  24. package/dist/client/chat/client-id.d.ts.map +1 -0
  25. package/dist/client/chat/client-id.js +17 -0
  26. package/dist/client/chat/client-id.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 +21 -3
  32. package/dist/client/chat/context-model.d.ts.map +1 -1
  33. package/dist/client/chat/context-model.js +33 -4
  34. package/dist/client/chat/context-model.js.map +1 -1
  35. package/dist/client/chat/controller.d.ts +83 -0
  36. package/dist/client/chat/controller.d.ts.map +1 -0
  37. package/dist/client/chat/controller.js +767 -0
  38. package/dist/client/chat/controller.js.map +1 -0
  39. package/dist/client/chat/extensions.d.ts +8 -3
  40. package/dist/client/chat/extensions.d.ts.map +1 -1
  41. package/dist/client/chat/extensions.js.map +1 -1
  42. package/dist/client/chat/feedback.d.ts +18 -0
  43. package/dist/client/chat/feedback.d.ts.map +1 -0
  44. package/dist/client/chat/feedback.js +38 -0
  45. package/dist/client/chat/feedback.js.map +1 -0
  46. package/dist/client/chat/form-registry.d.ts +95 -0
  47. package/dist/client/chat/form-registry.d.ts.map +1 -0
  48. package/dist/client/chat/form-registry.js +384 -0
  49. package/dist/client/chat/form-registry.js.map +1 -0
  50. package/dist/client/chat/keys.d.ts +1 -0
  51. package/dist/client/chat/keys.d.ts.map +1 -1
  52. package/dist/client/chat/keys.js +3 -1
  53. package/dist/client/chat/keys.js.map +1 -1
  54. package/dist/client/chat/message-model.d.ts +38 -44
  55. package/dist/client/chat/message-model.d.ts.map +1 -1
  56. package/dist/client/chat/message-model.js +138 -56
  57. package/dist/client/chat/message-model.js.map +1 -1
  58. package/dist/client/chat/provider.d.ts +12 -2
  59. package/dist/client/chat/provider.d.ts.map +1 -1
  60. package/dist/client/chat/provider.js +130 -4
  61. package/dist/client/chat/provider.js.map +1 -1
  62. package/dist/client/chat/submissions.d.ts +67 -0
  63. package/dist/client/chat/submissions.d.ts.map +1 -0
  64. package/dist/client/chat/submissions.js +241 -0
  65. package/dist/client/chat/submissions.js.map +1 -0
  66. package/dist/client/chat/tool-renderer.d.ts +39 -0
  67. package/dist/client/chat/tool-renderer.d.ts.map +1 -0
  68. package/dist/client/chat/tool-renderer.js +27 -0
  69. package/dist/client/chat/tool-renderer.js.map +1 -0
  70. package/dist/client/chat/use-chat-scroll.d.ts +4 -0
  71. package/dist/client/chat/use-chat-scroll.d.ts.map +1 -0
  72. package/dist/client/chat/use-chat-scroll.js +73 -0
  73. package/dist/client/chat/use-chat-scroll.js.map +1 -0
  74. package/dist/client/chat/use-chat.d.ts +13 -24
  75. package/dist/client/chat/use-chat.d.ts.map +1 -1
  76. package/dist/client/chat/use-chat.js +250 -235
  77. package/dist/client/chat/use-chat.js.map +1 -1
  78. package/dist/client/chat.d.ts +20 -8
  79. package/dist/client/chat.d.ts.map +1 -1
  80. package/dist/client/chat.js +16 -4
  81. package/dist/client/chat.js.map +1 -1
  82. package/dist/client/components/agent-picker.d.ts +6 -23
  83. package/dist/client/components/agent-picker.d.ts.map +1 -1
  84. package/dist/client/components/agent-picker.js +20 -39
  85. package/dist/client/components/agent-picker.js.map +1 -1
  86. package/dist/client/components/quota-status.d.ts +16 -0
  87. package/dist/client/components/quota-status.d.ts.map +1 -0
  88. package/dist/client/components/quota-status.js +39 -0
  89. package/dist/client/components/quota-status.js.map +1 -0
  90. package/dist/client/components/runners-refresh.d.ts.map +1 -1
  91. package/dist/client/components/runners-refresh.js +1 -0
  92. package/dist/client/components/runners-refresh.js.map +1 -1
  93. package/dist/client/components/variables/variable-dialogs.d.ts.map +1 -1
  94. package/dist/client/components/variables/variable-dialogs.js +7 -7
  95. package/dist/client/components/variables/variable-dialogs.js.map +1 -1
  96. package/dist/client/config.d.ts +2 -0
  97. package/dist/client/config.d.ts.map +1 -1
  98. package/dist/client/config.js +2 -0
  99. package/dist/client/config.js.map +1 -1
  100. package/dist/client/hooks/use-agent-picker-labels.d.ts.map +1 -1
  101. package/dist/client/hooks/use-agent-picker-labels.js +4 -12
  102. package/dist/client/hooks/use-agent-picker-labels.js.map +1 -1
  103. package/dist/client/hooks/use-quota-expiry.d.ts +7 -0
  104. package/dist/client/hooks/use-quota-expiry.d.ts.map +1 -0
  105. package/dist/client/hooks/use-quota-expiry.js +92 -0
  106. package/dist/client/hooks/use-quota-expiry.js.map +1 -0
  107. package/dist/client/hooks/use-realtime-topic.d.ts +1 -4
  108. package/dist/client/hooks/use-realtime-topic.d.ts.map +1 -1
  109. package/dist/client/hooks/use-realtime-topic.js +7 -11
  110. package/dist/client/hooks/use-realtime-topic.js.map +1 -1
  111. package/dist/client/kit.d.ts +14 -12
  112. package/dist/client/kit.d.ts.map +1 -1
  113. package/dist/client/kit.js +37 -14
  114. package/dist/client/kit.js.map +1 -1
  115. package/dist/client/lib/agents.d.ts +5 -18
  116. package/dist/client/lib/agents.d.ts.map +1 -1
  117. package/dist/client/lib/agents.js +18 -55
  118. package/dist/client/lib/agents.js.map +1 -1
  119. package/dist/client/lib/format.d.ts +3 -1
  120. package/dist/client/lib/format.d.ts.map +1 -1
  121. package/dist/client/lib/format.js +25 -0
  122. package/dist/client/lib/format.js.map +1 -1
  123. package/dist/client/lib/skill-settings-context.d.ts +9 -0
  124. package/dist/client/lib/skill-settings-context.d.ts.map +1 -0
  125. package/dist/client/lib/skill-settings-context.js +4 -0
  126. package/dist/client/lib/skill-settings-context.js.map +1 -0
  127. package/dist/client/lib/skill-settings.d.ts +12 -0
  128. package/dist/client/lib/skill-settings.d.ts.map +1 -0
  129. package/dist/client/lib/skill-settings.js +37 -0
  130. package/dist/client/lib/skill-settings.js.map +1 -0
  131. package/dist/client/locales/chat.en-US.d.ts +8 -27
  132. package/dist/client/locales/chat.en-US.d.ts.map +1 -1
  133. package/dist/client/locales/chat.en-US.js +12 -30
  134. package/dist/client/locales/chat.en-US.js.map +1 -1
  135. package/dist/client/locales/chat.zh-CN.d.ts.map +1 -1
  136. package/dist/client/locales/chat.zh-CN.js +9 -27
  137. package/dist/client/locales/chat.zh-CN.js.map +1 -1
  138. package/dist/client/locales/en-US.d.ts +87 -217
  139. package/dist/client/locales/en-US.d.ts.map +1 -1
  140. package/dist/client/locales/en-US.js +92 -218
  141. package/dist/client/locales/en-US.js.map +1 -1
  142. package/dist/client/locales/runWait.en-US.d.ts +7 -0
  143. package/dist/client/locales/runWait.en-US.d.ts.map +1 -1
  144. package/dist/client/locales/runWait.en-US.js +10 -3
  145. package/dist/client/locales/runWait.en-US.js.map +1 -1
  146. package/dist/client/locales/runWait.zh-CN.d.ts +1 -1
  147. package/dist/client/locales/runWait.zh-CN.d.ts.map +1 -1
  148. package/dist/client/locales/runWait.zh-CN.js +11 -4
  149. package/dist/client/locales/runWait.zh-CN.js.map +1 -1
  150. package/dist/client/locales/runtimes.en-US.d.ts +83 -0
  151. package/dist/client/locales/runtimes.en-US.d.ts.map +1 -1
  152. package/dist/client/locales/runtimes.en-US.js +84 -1
  153. package/dist/client/locales/runtimes.en-US.js.map +1 -1
  154. package/dist/client/locales/runtimes.zh-CN.d.ts.map +1 -1
  155. package/dist/client/locales/runtimes.zh-CN.js +83 -0
  156. package/dist/client/locales/runtimes.zh-CN.js.map +1 -1
  157. package/dist/client/locales/skills.en-US.d.ts +7 -0
  158. package/dist/client/locales/skills.en-US.d.ts.map +1 -1
  159. package/dist/client/locales/skills.en-US.js +8 -1
  160. package/dist/client/locales/skills.en-US.js.map +1 -1
  161. package/dist/client/locales/skills.zh-CN.d.ts.map +1 -1
  162. package/dist/client/locales/skills.zh-CN.js +8 -1
  163. package/dist/client/locales/skills.zh-CN.js.map +1 -1
  164. package/dist/client/locales/zh-CN.d.ts.map +1 -1
  165. package/dist/client/locales/zh-CN.js +94 -220
  166. package/dist/client/locales/zh-CN.js.map +1 -1
  167. package/dist/client/online/services.d.ts.map +1 -1
  168. package/dist/client/online/services.js +5 -6
  169. package/dist/client/online/services.js.map +1 -1
  170. package/dist/client/pages/agents/agent-dialog.d.ts +9 -0
  171. package/dist/client/pages/agents/agent-dialog.d.ts.map +1 -0
  172. package/dist/client/pages/agents/agent-dialog.js +106 -0
  173. package/dist/client/pages/agents/agent-dialog.js.map +1 -0
  174. package/dist/client/pages/agents/agent-state.d.ts +11 -0
  175. package/dist/client/pages/agents/agent-state.d.ts.map +1 -0
  176. package/dist/client/pages/agents/agent-state.js +28 -0
  177. package/dist/client/pages/agents/agent-state.js.map +1 -0
  178. package/dist/client/pages/agents/index.d.ts +1 -1
  179. package/dist/client/pages/agents/index.d.ts.map +1 -1
  180. package/dist/client/pages/agents/index.js +7 -101
  181. package/dist/client/pages/agents/index.js.map +1 -1
  182. package/dist/client/pages/agents/runner-agents.d.ts +3 -0
  183. package/dist/client/pages/agents/runner-agents.d.ts.map +1 -0
  184. package/dist/client/pages/agents/runner-agents.js +185 -0
  185. package/dist/client/pages/agents/runner-agents.js.map +1 -0
  186. package/dist/client/pages/runtimes/connect.js.map +1 -1
  187. package/dist/client/pages/runtimes/index.d.ts.map +1 -1
  188. package/dist/client/pages/runtimes/index.js +1 -1
  189. package/dist/client/pages/runtimes/index.js.map +1 -1
  190. package/dist/client/pages/runtimes/quota-targets.d.ts +4 -0
  191. package/dist/client/pages/runtimes/quota-targets.d.ts.map +1 -0
  192. package/dist/client/pages/runtimes/quota-targets.js +18 -0
  193. package/dist/client/pages/runtimes/quota-targets.js.map +1 -0
  194. package/dist/client/pages/runtimes/quota.d.ts +17 -0
  195. package/dist/client/pages/runtimes/quota.d.ts.map +1 -0
  196. package/dist/client/pages/runtimes/quota.js +50 -0
  197. package/dist/client/pages/runtimes/quota.js.map +1 -0
  198. package/dist/client/pages/runtimes/runner-cells.d.ts +11 -4
  199. package/dist/client/pages/runtimes/runner-cells.d.ts.map +1 -1
  200. package/dist/client/pages/runtimes/runner-cells.js +6 -3
  201. package/dist/client/pages/runtimes/runner-cells.js.map +1 -1
  202. package/dist/client/pages/runtimes/runner-overview.d.ts +9 -0
  203. package/dist/client/pages/runtimes/runner-overview.d.ts.map +1 -0
  204. package/dist/client/pages/runtimes/runner-overview.js +109 -0
  205. package/dist/client/pages/runtimes/runner-overview.js.map +1 -0
  206. package/dist/client/pages/runtimes/runner-runs.d.ts +5 -0
  207. package/dist/client/pages/runtimes/runner-runs.d.ts.map +1 -0
  208. package/dist/client/pages/runtimes/runner-runs.js +35 -0
  209. package/dist/client/pages/runtimes/runner-runs.js.map +1 -0
  210. package/dist/client/pages/runtimes/runner-sheet.d.ts +2 -3
  211. package/dist/client/pages/runtimes/runner-sheet.d.ts.map +1 -1
  212. package/dist/client/pages/runtimes/runner-sheet.js +43 -171
  213. package/dist/client/pages/runtimes/runner-sheet.js.map +1 -1
  214. package/dist/client/pages/runtimes/runner-tools.d.ts +17 -0
  215. package/dist/client/pages/runtimes/runner-tools.d.ts.map +1 -0
  216. package/dist/client/pages/runtimes/runner-tools.js +75 -0
  217. package/dist/client/pages/runtimes/runner-tools.js.map +1 -0
  218. package/dist/client/pages/runtimes/runner-workspaces.d.ts +6 -0
  219. package/dist/client/pages/runtimes/runner-workspaces.d.ts.map +1 -0
  220. package/dist/client/pages/runtimes/runner-workspaces.js +37 -0
  221. package/dist/client/pages/runtimes/runner-workspaces.js.map +1 -0
  222. package/dist/client/pages/runtimes/tool-slots-fields.js +1 -1
  223. package/dist/client/pages/runtimes/tool-slots-fields.js.map +1 -1
  224. package/dist/client/pages/runtimes/workspace-diagnostics.d.ts +6 -4
  225. package/dist/client/pages/runtimes/workspace-diagnostics.d.ts.map +1 -1
  226. package/dist/client/pages/runtimes/workspace-diagnostics.js +67 -33
  227. package/dist/client/pages/runtimes/workspace-diagnostics.js.map +1 -1
  228. package/dist/client/pages/skills/detail/index.d.ts.map +1 -1
  229. package/dist/client/pages/skills/detail/index.js +11 -15
  230. package/dist/client/pages/skills/detail/index.js.map +1 -1
  231. package/dist/client/pages/skills/index.d.ts.map +1 -1
  232. package/dist/client/pages/skills/index.js +2 -2
  233. package/dist/client/pages/skills/index.js.map +1 -1
  234. package/dist/client/pages/usage/index.js +2 -2
  235. package/dist/client/pages/usage/index.js.map +1 -1
  236. package/dist/client/profile/default-agent.d.ts.map +1 -1
  237. package/dist/client/profile/default-agent.js +2 -4
  238. package/dist/client/profile/default-agent.js.map +1 -1
  239. package/dist/client/routes.d.ts +1 -1
  240. package/dist/client/routes.d.ts.map +1 -1
  241. package/dist/client/routes.js +1 -13
  242. package/dist/client/routes.js.map +1 -1
  243. package/dist/client/runs/format-wait.d.ts.map +1 -1
  244. package/dist/client/runs/format-wait.js +15 -1
  245. package/dist/client/runs/format-wait.js.map +1 -1
  246. package/dist/client/runs/subject-runs.d.ts +5 -0
  247. package/dist/client/runs/subject-runs.d.ts.map +1 -1
  248. package/dist/client/runs/subject-runs.js +24 -9
  249. package/dist/client/runs/subject-runs.js.map +1 -1
  250. package/dist/client/runs/use-run-events.d.ts +1 -1
  251. package/dist/client/runs/use-run-events.d.ts.map +1 -1
  252. package/dist/client/runs/use-run-events.js +5 -2
  253. package/dist/client/runs/use-run-events.js.map +1 -1
  254. package/dist/client/runs.d.ts +1 -1
  255. package/dist/client/runs.d.ts.map +1 -1
  256. package/dist/client/runs.js +1 -1
  257. package/dist/client/runs.js.map +1 -1
  258. package/dist/database/migrations/.manifest.json +38 -2
  259. package/dist/database/migrations/202610020003_ag_create_runs.d.ts.map +1 -1
  260. package/dist/database/migrations/202610020003_ag_create_runs.js +0 -1
  261. package/dist/database/migrations/202610020003_ag_create_runs.js.map +1 -1
  262. package/dist/database/migrations/202610120002_ag_add_queue_entered_at.d.ts +4 -0
  263. package/dist/database/migrations/202610120002_ag_add_queue_entered_at.d.ts.map +1 -0
  264. package/dist/database/migrations/202610120002_ag_add_queue_entered_at.js +50 -0
  265. package/dist/database/migrations/202610120002_ag_add_queue_entered_at.js.map +1 -0
  266. package/dist/database/migrations/202610170001_ag_runner_quota.d.ts +4 -0
  267. package/dist/database/migrations/202610170001_ag_runner_quota.d.ts.map +1 -0
  268. package/dist/database/migrations/202610170001_ag_runner_quota.js +19 -0
  269. package/dist/database/migrations/202610170001_ag_runner_quota.js.map +1 -0
  270. package/dist/database/migrations/202610240020_ag_runner_agents.d.ts +4 -0
  271. package/dist/database/migrations/202610240020_ag_runner_agents.d.ts.map +1 -0
  272. package/dist/database/migrations/202610240020_ag_runner_agents.js +115 -0
  273. package/dist/database/migrations/202610240020_ag_runner_agents.js.map +1 -0
  274. package/dist/database/migrations/202610240040_ag_discovery_preferences.d.ts +4 -0
  275. package/dist/database/migrations/202610240040_ag_discovery_preferences.d.ts.map +1 -0
  276. package/dist/database/migrations/202610240040_ag_discovery_preferences.js +18 -0
  277. package/dist/database/migrations/202610240040_ag_discovery_preferences.js.map +1 -0
  278. package/dist/database/migrations/202610250001_ag_comment_runner_consent.d.ts +4 -0
  279. package/dist/database/migrations/202610250001_ag_comment_runner_consent.d.ts.map +1 -0
  280. package/dist/database/migrations/202610250001_ag_comment_runner_consent.js +41 -0
  281. package/dist/database/migrations/202610250001_ag_comment_runner_consent.js.map +1 -0
  282. package/dist/database/migrations/202610260001_ag_drop_directory_index.d.ts +4 -0
  283. package/dist/database/migrations/202610260001_ag_drop_directory_index.d.ts.map +1 -0
  284. package/dist/database/migrations/202610260001_ag_drop_directory_index.js +24 -0
  285. package/dist/database/migrations/202610260001_ag_drop_directory_index.js.map +1 -0
  286. package/dist/database/migrations/202610260001_ag_run_revision.d.ts +4 -0
  287. package/dist/database/migrations/202610260001_ag_run_revision.d.ts.map +1 -0
  288. package/dist/database/migrations/202610260001_ag_run_revision.js +19 -0
  289. package/dist/database/migrations/202610260001_ag_run_revision.js.map +1 -0
  290. package/dist/database/migrations/202610270001_ag_online_agent.d.ts +4 -0
  291. package/dist/database/migrations/202610270001_ag_online_agent.d.ts.map +1 -0
  292. package/dist/database/migrations/202610270001_ag_online_agent.js +43 -0
  293. package/dist/database/migrations/202610270001_ag_online_agent.js.map +1 -0
  294. package/dist/database/migrations/202610270002_ag_chat_list_visibility.d.ts +4 -0
  295. package/dist/database/migrations/202610270002_ag_chat_list_visibility.d.ts.map +1 -0
  296. package/dist/database/migrations/202610270002_ag_chat_list_visibility.js +17 -0
  297. package/dist/database/migrations/202610270002_ag_chat_list_visibility.js.map +1 -0
  298. package/dist/package.json +34 -12
  299. package/dist/server/cli/run-credential.js +1 -1
  300. package/dist/server/cli/surface.d.ts.map +1 -1
  301. package/dist/server/cli/surface.js +4 -1
  302. package/dist/server/cli/surface.js.map +1 -1
  303. package/dist/server/composition.d.ts +36 -35
  304. package/dist/server/composition.d.ts.map +1 -1
  305. package/dist/server/composition.js +99 -66
  306. package/dist/server/composition.js.map +1 -1
  307. package/dist/server/core/agents/agent.service.d.ts +51 -43
  308. package/dist/server/core/agents/agent.service.d.ts.map +1 -1
  309. package/dist/server/core/agents/agent.service.js +347 -321
  310. package/dist/server/core/agents/agent.service.js.map +1 -1
  311. package/dist/server/core/agents/agent.store.d.ts +26 -12
  312. package/dist/server/core/agents/agent.store.d.ts.map +1 -1
  313. package/dist/server/core/agents/agent.store.js +74 -66
  314. package/dist/server/core/agents/agent.store.js.map +1 -1
  315. package/dist/server/core/agents/agent.views.d.ts +29 -0
  316. package/dist/server/core/agents/agent.views.d.ts.map +1 -0
  317. package/dist/server/core/agents/agent.views.js +88 -0
  318. package/dist/server/core/agents/agent.views.js.map +1 -0
  319. package/dist/server/core/agents/discovery.d.ts +12 -0
  320. package/dist/server/core/agents/discovery.d.ts.map +1 -0
  321. package/dist/server/core/agents/discovery.js +39 -0
  322. package/dist/server/core/agents/discovery.js.map +1 -0
  323. package/dist/server/core/agents/index.d.ts +3 -2
  324. package/dist/server/core/agents/index.d.ts.map +1 -1
  325. package/dist/server/core/agents/index.js +3 -2
  326. package/dist/server/core/agents/index.js.map +1 -1
  327. package/dist/server/core/brief/brief.js +3 -3
  328. package/dist/server/core/brief/brief.js.map +1 -1
  329. package/dist/server/core/callers/index.d.ts +10 -1
  330. package/dist/server/core/callers/index.d.ts.map +1 -1
  331. package/dist/server/core/callers/index.js +15 -0
  332. package/dist/server/core/callers/index.js.map +1 -1
  333. package/dist/server/core/conversations/attachments.d.ts.map +1 -1
  334. package/dist/server/core/conversations/attachments.js +6 -1
  335. package/dist/server/core/conversations/attachments.js.map +1 -1
  336. package/dist/server/core/conversations/availability.d.ts +6 -11
  337. package/dist/server/core/conversations/availability.d.ts.map +1 -1
  338. package/dist/server/core/conversations/availability.js +11 -15
  339. package/dist/server/core/conversations/availability.js.map +1 -1
  340. package/dist/server/core/conversations/chat-settings.d.ts +2 -2
  341. package/dist/server/core/conversations/chat-settings.d.ts.map +1 -1
  342. package/dist/server/core/conversations/chat-settings.js +17 -22
  343. package/dist/server/core/conversations/chat-settings.js.map +1 -1
  344. package/dist/server/core/conversations/conversation.service.d.ts +13 -8
  345. package/dist/server/core/conversations/conversation.service.d.ts.map +1 -1
  346. package/dist/server/core/conversations/conversation.service.js +397 -383
  347. package/dist/server/core/conversations/conversation.service.js.map +1 -1
  348. package/dist/server/core/conversations/conversation.store.d.ts +3 -0
  349. package/dist/server/core/conversations/conversation.store.d.ts.map +1 -1
  350. package/dist/server/core/conversations/conversation.store.js +2 -1
  351. package/dist/server/core/conversations/conversation.store.js.map +1 -1
  352. package/dist/server/core/conversations/page-context.d.ts +8 -2
  353. package/dist/server/core/conversations/page-context.d.ts.map +1 -1
  354. package/dist/server/core/conversations/page-context.js +61 -2
  355. package/dist/server/core/conversations/page-context.js.map +1 -1
  356. package/dist/server/core/conversations/ports.d.ts +18 -20
  357. package/dist/server/core/conversations/ports.d.ts.map +1 -1
  358. package/dist/server/core/reports/model-usage.d.ts.map +1 -1
  359. package/dist/server/core/reports/model-usage.js +42 -44
  360. package/dist/server/core/reports/model-usage.js.map +1 -1
  361. package/dist/server/core/reports/prices.d.ts.map +1 -1
  362. package/dist/server/core/reports/prices.js +29 -5
  363. package/dist/server/core/reports/prices.js.map +1 -1
  364. package/dist/server/core/reports/report.service.d.ts +4 -2
  365. package/dist/server/core/reports/report.service.d.ts.map +1 -1
  366. package/dist/server/core/reports/report.service.js +148 -66
  367. package/dist/server/core/reports/report.service.js.map +1 -1
  368. package/dist/server/core/runs/access.d.ts +5 -0
  369. package/dist/server/core/runs/access.d.ts.map +1 -0
  370. package/dist/server/core/runs/access.js +10 -0
  371. package/dist/server/core/runs/access.js.map +1 -0
  372. package/dist/server/core/runs/availability.d.ts +18 -6
  373. package/dist/server/core/runs/availability.d.ts.map +1 -1
  374. package/dist/server/core/runs/availability.js +40 -34
  375. package/dist/server/core/runs/availability.js.map +1 -1
  376. package/dist/server/core/runs/claim.d.ts +30 -106
  377. package/dist/server/core/runs/claim.d.ts.map +1 -1
  378. package/dist/server/core/runs/claim.js +630 -323
  379. package/dist/server/core/runs/claim.js.map +1 -1
  380. package/dist/server/core/runs/comment-consent.d.ts +24 -0
  381. package/dist/server/core/runs/comment-consent.d.ts.map +1 -0
  382. package/dist/server/core/runs/comment-consent.js +116 -0
  383. package/dist/server/core/runs/comment-consent.js.map +1 -0
  384. package/dist/server/core/runs/eligibility.d.ts +13 -1
  385. package/dist/server/core/runs/eligibility.d.ts.map +1 -1
  386. package/dist/server/core/runs/eligibility.js +41 -10
  387. package/dist/server/core/runs/eligibility.js.map +1 -1
  388. package/dist/server/core/runs/execution-view.d.ts +8 -0
  389. package/dist/server/core/runs/execution-view.d.ts.map +1 -1
  390. package/dist/server/core/runs/execution-view.js +9 -0
  391. package/dist/server/core/runs/execution-view.js.map +1 -1
  392. package/dist/server/core/runs/execution.d.ts +1 -1
  393. package/dist/server/core/runs/execution.d.ts.map +1 -1
  394. package/dist/server/core/runs/execution.js +8 -2
  395. package/dist/server/core/runs/execution.js.map +1 -1
  396. package/dist/server/core/runs/identity.d.ts +9 -0
  397. package/dist/server/core/runs/identity.d.ts.map +1 -0
  398. package/dist/server/core/runs/identity.js +75 -0
  399. package/dist/server/core/runs/identity.js.map +1 -0
  400. package/dist/server/core/runs/index.d.ts +6 -6
  401. package/dist/server/core/runs/index.d.ts.map +1 -1
  402. package/dist/server/core/runs/index.js +6 -6
  403. package/dist/server/core/runs/index.js.map +1 -1
  404. package/dist/server/core/runs/input-gate.d.ts +1 -1
  405. package/dist/server/core/runs/input-gate.d.ts.map +1 -1
  406. package/dist/server/core/runs/input-gate.js +4 -2
  407. package/dist/server/core/runs/input-gate.js.map +1 -1
  408. package/dist/server/core/runs/lifecycle.d.ts +16 -18
  409. package/dist/server/core/runs/lifecycle.d.ts.map +1 -1
  410. package/dist/server/core/runs/lifecycle.js +146 -60
  411. package/dist/server/core/runs/lifecycle.js.map +1 -1
  412. package/dist/server/core/runs/policy.d.ts +9 -2
  413. package/dist/server/core/runs/policy.d.ts.map +1 -1
  414. package/dist/server/core/runs/policy.js +17 -8
  415. package/dist/server/core/runs/policy.js.map +1 -1
  416. package/dist/server/core/runs/ports.d.ts +41 -31
  417. package/dist/server/core/runs/ports.d.ts.map +1 -1
  418. package/dist/server/core/runs/ports.js +2 -13
  419. package/dist/server/core/runs/ports.js.map +1 -1
  420. package/dist/server/core/runs/preview.d.ts.map +1 -1
  421. package/dist/server/core/runs/preview.js +1 -3
  422. package/dist/server/core/runs/preview.js.map +1 -1
  423. package/dist/server/core/runs/run-data-purge.d.ts +15 -0
  424. package/dist/server/core/runs/run-data-purge.d.ts.map +1 -0
  425. package/dist/server/core/runs/run-data-purge.js +82 -0
  426. package/dist/server/core/runs/run-data-purge.js.map +1 -0
  427. package/dist/server/core/runs/run-requests.d.ts +25 -0
  428. package/dist/server/core/runs/run-requests.d.ts.map +1 -1
  429. package/dist/server/core/runs/run-requests.js +131 -64
  430. package/dist/server/core/runs/run-requests.js.map +1 -1
  431. package/dist/server/core/runs/run.service.d.ts +31 -2
  432. package/dist/server/core/runs/run.service.d.ts.map +1 -1
  433. package/dist/server/core/runs/run.service.js +638 -74
  434. package/dist/server/core/runs/run.service.js.map +1 -1
  435. package/dist/server/core/runs/run.store.d.ts +11 -0
  436. package/dist/server/core/runs/run.store.d.ts.map +1 -1
  437. package/dist/server/core/runs/run.store.js +39 -11
  438. package/dist/server/core/runs/run.store.js.map +1 -1
  439. package/dist/server/core/runs/runner-view.d.ts +12 -2
  440. package/dist/server/core/runs/runner-view.d.ts.map +1 -1
  441. package/dist/server/core/runs/runner-view.js +55 -13
  442. package/dist/server/core/runs/runner-view.js.map +1 -1
  443. package/dist/server/core/runs/selection.d.ts +13 -0
  444. package/dist/server/core/runs/selection.d.ts.map +1 -0
  445. package/dist/server/core/runs/selection.js +21 -0
  446. package/dist/server/core/runs/selection.js.map +1 -0
  447. package/dist/server/core/runs/sweeper.d.ts +1 -0
  448. package/dist/server/core/runs/sweeper.d.ts.map +1 -1
  449. package/dist/server/core/runs/sweeper.js +66 -17
  450. package/dist/server/core/runs/sweeper.js.map +1 -1
  451. package/dist/server/core/runs/transitions.d.ts +6 -2
  452. package/dist/server/core/runs/transitions.d.ts.map +1 -1
  453. package/dist/server/core/runs/transitions.js +73 -19
  454. package/dist/server/core/runs/transitions.js.map +1 -1
  455. package/dist/server/core/runs/workload.d.ts +17 -5
  456. package/dist/server/core/runs/workload.d.ts.map +1 -1
  457. package/dist/server/core/runs/workload.js +203 -68
  458. package/dist/server/core/runs/workload.js.map +1 -1
  459. package/dist/server/core/skills/skill.service.d.ts +6 -2
  460. package/dist/server/core/skills/skill.service.d.ts.map +1 -1
  461. package/dist/server/core/skills/skill.service.js +87 -66
  462. package/dist/server/core/skills/skill.service.js.map +1 -1
  463. package/dist/server/core/skills/skill.store.d.ts +14 -0
  464. package/dist/server/core/skills/skill.store.d.ts.map +1 -1
  465. package/dist/server/core/skills/skill.store.js +30 -0
  466. package/dist/server/core/skills/skill.store.js.map +1 -1
  467. package/dist/server/core/transaction-read.d.ts +4 -0
  468. package/dist/server/core/transaction-read.d.ts.map +1 -0
  469. package/dist/server/core/transaction-read.js +30 -0
  470. package/dist/server/core/transaction-read.js.map +1 -0
  471. package/dist/server/core/variables/index.d.ts +1 -1
  472. package/dist/server/core/variables/index.d.ts.map +1 -1
  473. package/dist/server/core/variables/index.js.map +1 -1
  474. package/dist/server/core/variables/variable.service.d.ts +18 -0
  475. package/dist/server/core/variables/variable.service.d.ts.map +1 -1
  476. package/dist/server/core/variables/variable.service.js +95 -20
  477. package/dist/server/core/variables/variable.service.js.map +1 -1
  478. package/dist/server/index.d.ts +4 -0
  479. package/dist/server/index.d.ts.map +1 -1
  480. package/dist/server/index.js +3 -0
  481. package/dist/server/index.js.map +1 -1
  482. package/dist/server/jobs/job.service.d.ts +1 -1
  483. package/dist/server/jobs/job.service.d.ts.map +1 -1
  484. package/dist/server/jobs/job.service.js +8 -2
  485. package/dist/server/jobs/job.service.js.map +1 -1
  486. package/dist/server/kernel/events.d.ts +7 -3
  487. package/dist/server/kernel/events.d.ts.map +1 -1
  488. package/dist/server/kernel/events.js.map +1 -1
  489. package/dist/server/kernel/scopes.d.ts +6 -0
  490. package/dist/server/kernel/scopes.d.ts.map +1 -1
  491. package/dist/server/kernel/scopes.js +3 -1
  492. package/dist/server/kernel/scopes.js.map +1 -1
  493. package/dist/server/online/agent/configuration.d.ts +26 -0
  494. package/dist/server/online/agent/configuration.d.ts.map +1 -0
  495. package/dist/server/online/agent/configuration.js +261 -0
  496. package/dist/server/online/agent/configuration.js.map +1 -0
  497. package/dist/server/online/agent/contracts.d.ts +87 -0
  498. package/dist/server/online/agent/contracts.d.ts.map +1 -0
  499. package/dist/server/online/agent/contracts.js +2 -0
  500. package/dist/server/online/agent/contracts.js.map +1 -0
  501. package/dist/server/online/agent/errors.d.ts +11 -0
  502. package/dist/server/online/agent/errors.d.ts.map +1 -0
  503. package/dist/server/online/agent/errors.js +21 -0
  504. package/dist/server/online/agent/errors.js.map +1 -0
  505. package/dist/server/online/agent/index.d.ts +11 -0
  506. package/dist/server/online/agent/index.d.ts.map +1 -0
  507. package/dist/server/online/agent/index.js +9 -0
  508. package/dist/server/online/agent/index.js.map +1 -0
  509. package/dist/server/online/agent/messages/json.d.ts +5 -0
  510. package/dist/server/online/agent/messages/json.d.ts.map +1 -0
  511. package/dist/server/online/agent/messages/json.js +88 -0
  512. package/dist/server/online/agent/messages/json.js.map +1 -0
  513. package/dist/server/online/agent/messages/projection.d.ts +20 -0
  514. package/dist/server/online/agent/messages/projection.d.ts.map +1 -0
  515. package/dist/server/online/agent/messages/projection.js +495 -0
  516. package/dist/server/online/agent/messages/projection.js.map +1 -0
  517. package/dist/server/online/agent/messages/validation.d.ts +7 -0
  518. package/dist/server/online/agent/messages/validation.d.ts.map +1 -0
  519. package/dist/server/online/agent/messages/validation.js +159 -0
  520. package/dist/server/online/agent/messages/validation.js.map +1 -0
  521. package/dist/server/online/agent/native/backend.d.ts +60 -0
  522. package/dist/server/online/agent/native/backend.d.ts.map +1 -0
  523. package/dist/server/online/agent/native/backend.js +411 -0
  524. package/dist/server/online/agent/native/backend.js.map +1 -0
  525. package/dist/server/online/agent/native/execution.d.ts +41 -0
  526. package/dist/server/online/agent/native/execution.d.ts.map +1 -0
  527. package/dist/server/online/agent/native/execution.js +430 -0
  528. package/dist/server/online/agent/native/execution.js.map +1 -0
  529. package/dist/server/online/agent/native/session.d.ts +40 -0
  530. package/dist/server/online/agent/native/session.d.ts.map +1 -0
  531. package/dist/server/online/agent/native/session.js +104 -0
  532. package/dist/server/online/agent/native/session.js.map +1 -0
  533. package/dist/server/online/agent/native/types.d.ts +32 -0
  534. package/dist/server/online/agent/native/types.d.ts.map +1 -0
  535. package/dist/server/online/agent/native/types.js +2 -0
  536. package/dist/server/online/agent/native/types.js.map +1 -0
  537. package/dist/server/online/agent/persistence/manager.d.ts +16 -0
  538. package/dist/server/online/agent/persistence/manager.d.ts.map +1 -0
  539. package/dist/server/online/agent/persistence/manager.js +209 -0
  540. package/dist/server/online/agent/persistence/manager.js.map +1 -0
  541. package/dist/server/online/agent/persistence/state.d.ts +11 -0
  542. package/dist/server/online/agent/persistence/state.d.ts.map +1 -0
  543. package/dist/server/online/agent/persistence/state.js +45 -0
  544. package/dist/server/online/agent/persistence/state.js.map +1 -0
  545. package/dist/server/online/agent/persistence/store.d.ts +58 -0
  546. package/dist/server/online/agent/persistence/store.d.ts.map +1 -0
  547. package/dist/server/online/agent/persistence/store.js +634 -0
  548. package/dist/server/online/agent/persistence/store.js.map +1 -0
  549. package/dist/server/online/agent/persistence/types.d.ts +44 -0
  550. package/dist/server/online/agent/persistence/types.d.ts.map +1 -0
  551. package/dist/server/online/agent/persistence/types.js +2 -0
  552. package/dist/server/online/agent/persistence/types.js.map +1 -0
  553. package/dist/server/online/agent/runner/backend.d.ts +57 -0
  554. package/dist/server/online/agent/runner/backend.d.ts.map +1 -0
  555. package/dist/server/online/agent/runner/backend.js +501 -0
  556. package/dist/server/online/agent/runner/backend.js.map +1 -0
  557. package/dist/server/online/agent/runner/projection.d.ts +10 -0
  558. package/dist/server/online/agent/runner/projection.d.ts.map +1 -0
  559. package/dist/server/online/agent/runner/projection.js +171 -0
  560. package/dist/server/online/agent/runner/projection.js.map +1 -0
  561. package/dist/server/online/agent/runner/types.d.ts +44 -0
  562. package/dist/server/online/agent/runner/types.d.ts.map +1 -0
  563. package/dist/server/online/agent/runner/types.js +2 -0
  564. package/dist/server/online/agent/runner/types.js.map +1 -0
  565. package/dist/server/online/agent/service.d.ts +47 -0
  566. package/dist/server/online/agent/service.d.ts.map +1 -0
  567. package/dist/server/online/agent/service.js +111 -0
  568. package/dist/server/online/agent/service.js.map +1 -0
  569. package/dist/server/online/agent/transport/streams.d.ts +54 -0
  570. package/dist/server/online/agent/transport/streams.d.ts.map +1 -0
  571. package/dist/server/online/agent/transport/streams.js +440 -0
  572. package/dist/server/online/agent/transport/streams.js.map +1 -0
  573. package/dist/server/online/agent/types.d.ts +155 -0
  574. package/dist/server/online/agent/types.d.ts.map +1 -0
  575. package/dist/server/online/agent/types.js +2 -0
  576. package/dist/server/online/agent/types.js.map +1 -0
  577. package/dist/server/online/index.d.ts +0 -5
  578. package/dist/server/online/index.d.ts.map +1 -1
  579. package/dist/server/online/index.js +0 -5
  580. package/dist/server/online/index.js.map +1 -1
  581. package/dist/server/online/providers.d.ts.map +1 -1
  582. package/dist/server/online/providers.js +26 -2
  583. package/dist/server/online/providers.js.map +1 -1
  584. package/dist/server/online/routes.d.ts.map +1 -1
  585. package/dist/server/online/routes.js +6 -35
  586. package/dist/server/online/routes.js.map +1 -1
  587. package/dist/server/online/services.d.ts.map +1 -1
  588. package/dist/server/online/services.js +101 -24
  589. package/dist/server/online/services.js.map +1 -1
  590. package/dist/server/providers/agents.d.ts +18 -25
  591. package/dist/server/providers/agents.d.ts.map +1 -1
  592. package/dist/server/providers/agents.js +72 -101
  593. package/dist/server/providers/agents.js.map +1 -1
  594. package/dist/server/providers/runners.d.ts +3 -1
  595. package/dist/server/providers/runners.d.ts.map +1 -1
  596. package/dist/server/providers/runners.js +38 -9
  597. package/dist/server/providers/runners.js.map +1 -1
  598. package/dist/server/routes/admin.d.ts +4 -0
  599. package/dist/server/routes/admin.d.ts.map +1 -1
  600. package/dist/server/routes/admin.js +131 -209
  601. package/dist/server/routes/admin.js.map +1 -1
  602. package/dist/server/routes/chat.d.ts.map +1 -1
  603. package/dist/server/routes/chat.js +313 -164
  604. package/dist/server/routes/chat.js.map +1 -1
  605. package/dist/server/routes/index.d.ts.map +1 -1
  606. package/dist/server/routes/index.js +8 -0
  607. package/dist/server/routes/index.js.map +1 -1
  608. package/dist/server/routes/roster.d.ts.map +1 -1
  609. package/dist/server/routes/roster.js +6 -22
  610. package/dist/server/routes/roster.js.map +1 -1
  611. package/dist/server/routes/run-requests.js +3 -3
  612. package/dist/server/routes/run-requests.js.map +1 -1
  613. package/dist/server/routes/runners/admin.d.ts.map +1 -1
  614. package/dist/server/routes/runners/admin.js +219 -25
  615. package/dist/server/routes/runners/admin.js.map +1 -1
  616. package/dist/server/routes/runners/install.d.ts.map +1 -1
  617. package/dist/server/routes/runners/install.js +7 -2
  618. package/dist/server/routes/runners/install.js.map +1 -1
  619. package/dist/server/routes/runners/runner.d.ts.map +1 -1
  620. package/dist/server/routes/runners/runner.js +2 -0
  621. package/dist/server/routes/runners/runner.js.map +1 -1
  622. package/dist/server/routes/schemas.d.ts +18 -10
  623. package/dist/server/routes/schemas.d.ts.map +1 -1
  624. package/dist/server/routes/schemas.js +497 -153
  625. package/dist/server/routes/schemas.js.map +1 -1
  626. package/dist/server/runners/runner.service.d.ts +47 -4
  627. package/dist/server/runners/runner.service.d.ts.map +1 -1
  628. package/dist/server/runners/runner.service.js +423 -79
  629. package/dist/server/runners/runner.service.js.map +1 -1
  630. package/dist/server/runners/runner.store.d.ts +8 -3
  631. package/dist/server/runners/runner.store.d.ts.map +1 -1
  632. package/dist/server/runners/runner.store.js +63 -6
  633. package/dist/server/runners/runner.store.js.map +1 -1
  634. package/dist/server/runners/slots.d.ts +5 -2
  635. package/dist/server/runners/slots.d.ts.map +1 -1
  636. package/dist/server/runners/slots.js +3 -4
  637. package/dist/server/runners/slots.js.map +1 -1
  638. package/dist/server/runners/workspaces.d.ts.map +1 -1
  639. package/dist/server/runners/workspaces.js +18 -2
  640. package/dist/server/runners/workspaces.js.map +1 -1
  641. package/dist/server/testing.d.ts +0 -2
  642. package/dist/server/testing.d.ts.map +1 -1
  643. package/dist/server/testing.js +1 -4
  644. package/dist/server/testing.js.map +1 -1
  645. package/dist/server/tokens.d.ts +8 -7
  646. package/dist/server/tokens.d.ts.map +1 -1
  647. package/dist/server/tokens.js +4 -2
  648. package/dist/server/tokens.js.map +1 -1
  649. package/dist/shared/access.d.ts +2 -6
  650. package/dist/shared/access.d.ts.map +1 -1
  651. package/dist/shared/access.js +2 -6
  652. package/dist/shared/access.js.map +1 -1
  653. package/dist/shared/agents.d.ts +131 -169
  654. package/dist/shared/agents.d.ts.map +1 -1
  655. package/dist/shared/agents.js +36 -102
  656. package/dist/shared/agents.js.map +1 -1
  657. package/dist/shared/conversations.d.ts +93 -170
  658. package/dist/shared/conversations.d.ts.map +1 -1
  659. package/dist/shared/conversations.js +8 -30
  660. package/dist/shared/conversations.js.map +1 -1
  661. package/dist/shared/model-catalog.d.ts +53 -0
  662. package/dist/shared/model-catalog.d.ts.map +1 -0
  663. package/dist/shared/model-catalog.js +182 -0
  664. package/dist/shared/model-catalog.js.map +1 -0
  665. package/dist/shared/online-agent.d.ts +3 -0
  666. package/dist/shared/online-agent.d.ts.map +1 -0
  667. package/dist/shared/online-agent.js +3 -0
  668. package/dist/shared/online-agent.js.map +1 -0
  669. package/dist/shared/page-ui-context.d.ts +26 -0
  670. package/dist/shared/page-ui-context.d.ts.map +1 -0
  671. package/dist/shared/page-ui-context.js +129 -0
  672. package/dist/shared/page-ui-context.js.map +1 -0
  673. package/dist/shared/quota.d.ts +15 -0
  674. package/dist/shared/quota.d.ts.map +1 -0
  675. package/dist/shared/quota.js +2 -0
  676. package/dist/shared/quota.js.map +1 -0
  677. package/dist/shared/runners.d.ts +132 -14
  678. package/dist/shared/runners.d.ts.map +1 -1
  679. package/dist/shared/runners.js +171 -11
  680. package/dist/shared/runners.js.map +1 -1
  681. package/dist/shared/runs.d.ts +57 -1
  682. package/dist/shared/runs.d.ts.map +1 -1
  683. package/dist/shared/runs.js +28 -0
  684. package/dist/shared/runs.js.map +1 -1
  685. package/dist/shared/skills.d.ts +11 -5
  686. package/dist/shared/skills.d.ts.map +1 -1
  687. package/dist/shared/skills.js +7 -2
  688. package/dist/shared/skills.js.map +1 -1
  689. package/dist/shared/ui-message.d.ts +80 -0
  690. package/dist/shared/ui-message.d.ts.map +1 -0
  691. package/dist/shared/ui-message.js +153 -0
  692. package/dist/shared/ui-message.js.map +1 -0
  693. package/dist/shared/variables.js +1 -1
  694. package/dist/shared/variables.js.map +1 -1
  695. package/docs/ai-forms.md +346 -0
  696. package/docs/execution-history.md +19 -0
  697. package/docs/mysql-installation-upgrade.md +7 -0
  698. package/docs/runner-agents.md +27 -0
  699. package/docs/ui-message-clients.md +80 -0
  700. package/docs/ui-messages.md +209 -0
  701. package/docs/workspace-cleanup.md +13 -0
  702. package/package.json +41 -27
  703. package/skills/nocobase-app-plugin-agents/SKILL.md +16 -13
  704. package/skills/nocobase-app-plugin-agents/references/agents.md +30 -0
  705. package/skills/nocobase-app-plugin-agents/references/extension-points.md +21 -21
  706. package/skills/nocobase-app-plugin-agents/references/model-services.md +17 -0
  707. package/skills/nocobase-app-plugin-agents/references/online-agent.md +216 -0
  708. package/skills/nocobase-app-plugin-agents/references/runners.md +12 -0
  709. package/skills/nocobase-app-plugin-agents/references/setup-and-config.md +6 -7
  710. package/skills/nocobase-app-plugin-agents/references/variables-skills-usage.md +6 -4
  711. package/skills/nocobase-app-plugin-agents/references/verification-and-troubleshooting.md +29 -32
  712. package/dist/client/chat/settings-section.d.ts +0 -5
  713. package/dist/client/chat/settings-section.d.ts.map +0 -1
  714. package/dist/client/chat/settings-section.js +0 -86
  715. package/dist/client/chat/settings-section.js.map +0 -1
  716. package/dist/client/components/agent-fields.d.ts +0 -45
  717. package/dist/client/components/agent-fields.d.ts.map +0 -1
  718. package/dist/client/components/agent-fields.js +0 -83
  719. package/dist/client/components/agent-fields.js.map +0 -1
  720. package/dist/client/components/agent-type.d.ts +0 -32
  721. package/dist/client/components/agent-type.d.ts.map +0 -1
  722. package/dist/client/components/agent-type.js +0 -80
  723. package/dist/client/components/agent-type.js.map +0 -1
  724. package/dist/client/components/model-entries.d.ts +0 -44
  725. package/dist/client/components/model-entries.d.ts.map +0 -1
  726. package/dist/client/components/model-entries.js +0 -104
  727. package/dist/client/components/model-entries.js.map +0 -1
  728. package/dist/client/hooks/use-agent-save.d.ts +0 -9
  729. package/dist/client/hooks/use-agent-save.d.ts.map +0 -1
  730. package/dist/client/hooks/use-agent-save.js +0 -40
  731. package/dist/client/hooks/use-agent-save.js.map +0 -1
  732. package/dist/client/hooks/use-model-catalog.d.ts +0 -9
  733. package/dist/client/hooks/use-model-catalog.d.ts.map +0 -1
  734. package/dist/client/hooks/use-model-catalog.js +0 -27
  735. package/dist/client/hooks/use-model-catalog.js.map +0 -1
  736. package/dist/client/lib/model-suggestions.d.ts +0 -28
  737. package/dist/client/lib/model-suggestions.d.ts.map +0 -1
  738. package/dist/client/lib/model-suggestions.js +0 -44
  739. package/dist/client/lib/model-suggestions.js.map +0 -1
  740. package/dist/client/lib/tool-policy.d.ts +0 -3
  741. package/dist/client/lib/tool-policy.d.ts.map +0 -1
  742. package/dist/client/lib/tool-policy.js +0 -5
  743. package/dist/client/lib/tool-policy.js.map +0 -1
  744. package/dist/client/online/default-model.d.ts +0 -5
  745. package/dist/client/online/default-model.d.ts.map +0 -1
  746. package/dist/client/online/default-model.js +0 -65
  747. package/dist/client/online/default-model.js.map +0 -1
  748. package/dist/client/pages/agents/agent-model.d.ts +0 -69
  749. package/dist/client/pages/agents/agent-model.d.ts.map +0 -1
  750. package/dist/client/pages/agents/agent-model.js +0 -153
  751. package/dist/client/pages/agents/agent-model.js.map +0 -1
  752. package/dist/client/pages/agents/detail/brief-preview.d.ts +0 -7
  753. package/dist/client/pages/agents/detail/brief-preview.d.ts.map +0 -1
  754. package/dist/client/pages/agents/detail/brief-preview.js +0 -43
  755. package/dist/client/pages/agents/detail/brief-preview.js.map +0 -1
  756. package/dist/client/pages/agents/detail/history.d.ts +0 -11
  757. package/dist/client/pages/agents/detail/history.d.ts.map +0 -1
  758. package/dist/client/pages/agents/detail/history.js +0 -149
  759. package/dist/client/pages/agents/detail/history.js.map +0 -1
  760. package/dist/client/pages/agents/detail/index.d.ts +0 -3
  761. package/dist/client/pages/agents/detail/index.d.ts.map +0 -1
  762. package/dist/client/pages/agents/detail/index.js +0 -241
  763. package/dist/client/pages/agents/detail/index.js.map +0 -1
  764. package/dist/client/pages/agents/detail/sections.d.ts +0 -21
  765. package/dist/client/pages/agents/detail/sections.d.ts.map +0 -1
  766. package/dist/client/pages/agents/detail/sections.js +0 -280
  767. package/dist/client/pages/agents/detail/sections.js.map +0 -1
  768. package/dist/client/pages/agents/detail/tab-draft.d.ts +0 -43
  769. package/dist/client/pages/agents/detail/tab-draft.d.ts.map +0 -1
  770. package/dist/client/pages/agents/detail/tab-draft.js +0 -115
  771. package/dist/client/pages/agents/detail/tab-draft.js.map +0 -1
  772. package/dist/client/pages/agents/detail/unsaved-bar.d.ts +0 -13
  773. package/dist/client/pages/agents/detail/unsaved-bar.d.ts.map +0 -1
  774. package/dist/client/pages/agents/detail/unsaved-bar.js +0 -21
  775. package/dist/client/pages/agents/detail/unsaved-bar.js.map +0 -1
  776. package/dist/client/pages/agents/new.d.ts +0 -3
  777. package/dist/client/pages/agents/new.d.ts.map +0 -1
  778. package/dist/client/pages/agents/new.js +0 -149
  779. package/dist/client/pages/agents/new.js.map +0 -1
  780. package/dist/client/pages/agents/preset-picker.d.ts +0 -8
  781. package/dist/client/pages/agents/preset-picker.d.ts.map +0 -1
  782. package/dist/client/pages/agents/preset-picker.js +0 -41
  783. package/dist/client/pages/agents/preset-picker.js.map +0 -1
  784. package/dist/server/core/consultations/consultation.service.d.ts +0 -59
  785. package/dist/server/core/consultations/consultation.service.d.ts.map +0 -1
  786. package/dist/server/core/consultations/consultation.service.js +0 -198
  787. package/dist/server/core/consultations/consultation.service.js.map +0 -1
  788. package/dist/server/core/consultations/index.d.ts +0 -3
  789. package/dist/server/core/consultations/index.d.ts.map +0 -1
  790. package/dist/server/core/consultations/index.js +0 -3
  791. package/dist/server/core/consultations/index.js.map +0 -1
  792. package/dist/server/core/consultations/prompt.d.ts +0 -41
  793. package/dist/server/core/consultations/prompt.d.ts.map +0 -1
  794. package/dist/server/core/consultations/prompt.js +0 -64
  795. package/dist/server/core/consultations/prompt.js.map +0 -1
  796. package/dist/server/core/presets/index.d.ts +0 -19
  797. package/dist/server/core/presets/index.d.ts.map +0 -1
  798. package/dist/server/core/presets/index.js +0 -28
  799. package/dist/server/core/presets/index.js.map +0 -1
  800. package/dist/server/online/cli-command.d.ts +0 -20
  801. package/dist/server/online/cli-command.d.ts.map +0 -1
  802. package/dist/server/online/cli-command.js +0 -345
  803. package/dist/server/online/cli-command.js.map +0 -1
  804. package/dist/server/online/consult-tool.d.ts +0 -54
  805. package/dist/server/online/consult-tool.d.ts.map +0 -1
  806. package/dist/server/online/consult-tool.js +0 -177
  807. package/dist/server/online/consult-tool.js.map +0 -1
  808. package/dist/server/online/executor.d.ts +0 -83
  809. package/dist/server/online/executor.d.ts.map +0 -1
  810. package/dist/server/online/executor.js +0 -714
  811. package/dist/server/online/executor.js.map +0 -1
  812. package/dist/server/online/sandbox.d.ts +0 -32
  813. package/dist/server/online/sandbox.d.ts.map +0 -1
  814. package/dist/server/online/sandbox.js +0 -246
  815. package/dist/server/online/sandbox.js.map +0 -1
  816. package/dist/server/online/scripted.d.ts +0 -12
  817. package/dist/server/online/scripted.d.ts.map +0 -1
  818. package/dist/server/online/scripted.js +0 -176
  819. package/dist/server/online/scripted.js.map +0 -1
  820. package/dist/server/online/tools.d.ts +0 -17
  821. package/dist/server/online/tools.d.ts.map +0 -1
  822. package/dist/server/online/tools.js +0 -31
  823. package/dist/server/online/tools.js.map +0 -1
  824. package/dist/server/vendor/THIRD_PARTY_LICENSES.txt +0 -782
  825. package/dist/server/vendor/just-bash.d.ts +0 -83
  826. package/dist/server/vendor/just-bash.js +0 -2102
  827. package/dist/shared/presets.d.ts +0 -30
  828. package/dist/shared/presets.d.ts.map +0 -1
  829. package/dist/shared/presets.js +0 -2
  830. package/dist/shared/presets.js.map +0 -1
  831. package/skills/nocobase-app-plugin-agents/references/online-agents.md +0 -31
package/CHANGELOG.md CHANGED
@@ -1,5 +1,298 @@
1
1
  # @nocobase/app-plugin-agents
2
2
 
3
+ ## 1.0.0-beta.15
4
+
5
+ ### Major Changes
6
+
7
+ - baf80fe: Remove the old conversation start, fallback and restore HTTP operations and the conversation fallback/restore CLI commands without aliases. Replace start with POST /api/agents/conversations followed by POST /api/agents/conversations/:id/messages, or conversation create followed by conversation message send. These are two non-atomic requests and may leave an empty conversation if sending fails. Fallback and restore have no same-session replacement: explicitly create a new conversation with the desired executor/agent, without automatically copying history or changing an existing binding. Trusted domain start/fallback/restore methods remain available.
8
+
9
+ Historical unbound conversations remain read-only, with owner-authorized cancellation of unfinished old runs. Browser callers must use the narrow configuration input: move tool lists, model lists and system-prompt policy into trusted server configuration, and declare business variables through selected-scope schemas. Existing thinking handling remains unchanged. Apply the visibility migration before serving requests; existing ordinary records default to visible and new background sessions are hidden, with known-session authorization preserved.
10
+
11
+ Background run still acknowledges admission. Use get to wait for validated, saved and finalized results, or try with a finite observation budget; observation timeout does not cancel execution. Deliver can return null after saving a notice in the caller's transaction without waking a new-bound conversation. Remove proposed-plan quantity hints from consultation cards while retaining historical data and plan mechanisms, and consolidate the framework and application upgrade documentation.
12
+
13
+ ### Minor Changes
14
+
15
+ - baf80fe: Add extensible UI context snapshots, application-owned tool renderers, and guarded browser form registries to Agents. Preserve exact originating message linkage through public history and recovery, and demonstrate reviewed, draft-only form proposals in Examples without saving records or continuing completed tools.
16
+ - baf80fe: Add a shared public chat-model catalog hook and explicit model selection when creating Online Agent conversations. Update the Examples chat selector to group models by service alongside Agents, with an online-model-or-runner conversation hint and vertical-only option scrolling, preserving Runner status, metadata, and draft content.
17
+ - baf80fe: Use shared AI SDK Chat owners for public chat clients, render ordered UIMessage parts and Runner source segments, and reconcile durable history, tool approval, recovery and independent Stop across application surfaces.
18
+ - baf80fe: Stream native text increments immediately and support callable Runner agents through the shared OnlineAgent realtime service, atomic conversation admission, canonical block history and unified chat controls. Preserve executor bindings, explicit configuration validation and cancellation confirmation, and exclude server business context from public message metadata.
19
+ - baf80fe: Persist native OnlineAgent UI messages directly, expose standard AI SDK response streams, and bind durable tool approval continuations to the owning conversation and execution. Keep private model evidence separate from public parts and retry failed finalization without rerunning effects.
20
+ - baf80fe: Extract Native execution ownership behind the execution-specific OnlineAgentBackend contract and delegate backend selection, session creation, restoration and configuration from OnlineAgentService. Replace the Runner-specific backend interface and forwarding wrapper with one concrete Runner session, require explicit unsupported-capability rejection, preserve accepted response ownership across failed sends, retain deferred HTTP configuration boundaries, pin shared recovery to accepted submissions and drain Runner admissions before shutdown without cancelling or redispatching remote work.
21
+
22
+ Use admission-only Runner receipts to avoid treating post-commit conversation projection failures as failed inputs. The server-side `ConversationService.sendRealtime()` return contract is now `{ seq, run }`; ordinary conversation send and HTTP response contracts are unchanged.
23
+
24
+ Keep startup repair on the session manager and shared producer probing on OnlineAgentService instead of duplicating them in every backend. Remove the public Service `isActive()` and `notify()` methods, the backend notification entry and the `OnlineAgentNotification` type. Existing transactional conversation notices and Runner event refresh are unchanged. Restore sessions by authorized persisted mode and binding metadata, reject invalid bindings or unavailable backends explicitly, and never use configuration reads to infer backend identity.
25
+
26
+ Organize OnlineAgent internals under `server/online/agent/`, alongside the online model gateway and services, by Native execution, Runner execution, persistence, message conversion/validation and shared transport. Consolidate fragmented helpers and separate interfaces and data types from runtime implementations while preserving the public server entry points and execution behavior.
27
+
28
+ - baf80fe: Require a plain JSON Schema in OnlineAgent background `run()` calls instead of Zod. Pass the schema to the AI SDK for structured generation and validate the generated result before persistence. Reject invalid, remote-reference and oversized schemas before accepting execution.
29
+ - baf80fe: Add the OnlineAgent server service foundation with versioned conversation configuration, complete SDK message persistence, injectable business tools, shared execution control, and first-subscription stream caching. Preserve ordinary conversation and message identifiers without persistent request deduplication. Connect the original chat HTTP resources and first-subscription events to one shared browser submission and stream controller for application and Registry chat views. Preserve uploaded attachments, per-view drafts and unknown-outcome feedback without hidden retries or Runner fallback.
30
+
31
+ Recognize no-content streaming responses by HTTP status even when a browser exposes an empty body, so completed chats read saved history without a false disconnect warning.
32
+
33
+ Resolve Scope/Provider model changes consistently through the configuration API. Let users explicitly permit a new input after an unknown send result, and preserve Registry drafts and files when the shared client refuses a submission.
34
+
35
+ Let application-provided Organize entries own their availability feedback while retaining default Runner availability hints.
36
+
37
+ Bind the authoritative execution session ID to each business tool context so applications can associate business proposals with the current chat without trusting model-supplied identifiers.
38
+
39
+ - baf80fe: Export validated SDK UI message contracts for OnlineAgent integration and align application SDK dependencies with the matching React client.
40
+ - baf80fe: Project saved Runner blocks into SDK UI messages with stable source identities, support optional cross-instance Redis stream recovery and native Stop, and persist independent native business notifications.
41
+
42
+ ### Patch Changes
43
+
44
+ - baf80fe: Keep an acknowledged realtime recovery from attaching an older stream after a new chat input has started, preserving the active SDK response and its writing state.
45
+ - baf80fe: Avoid empty assistant bubbles while thinking and redundant success notifications in shared Agents chat. Keep chat transcripts within their available width while preserving bounded scrolling for wide code blocks and tables, application-owned message extras, and actionable execution feedback.
46
+ - baf80fe: Rename the OnlineAgent configuration component to `OnlineAgentConfigurator` and expose it as `onlineAgent.configurator`. Update public exports, tool registration examples, and application consumers to use the consistent naming.
47
+ - baf80fe: Reauthorize bounded references from the most recent historical page for follow-up chat input, preserving current context priority and omitting stale parameters or inaccessible records.
48
+ - baf80fe: Persist partial tool approval decisions without executing tools or continuing the model until every approval in the step is answered. Automatically finalize saved terminal Runner conversations after final synchronization when their projection producer has restarted.
49
+ - baf80fe: Describe Runner cancellation history as a request until termination is confirmed, preserving existing notice identifiers and cancellation behavior.
50
+ - baf80fe: Read the chat Agent directory directly from the conversation service without changing the HTTP response or eligibility checks. Remove `chatAgents` from the OnlineAgent service, runtime contract, and constructor dependencies; server callers should use `conversations.chatAgents(userId)` instead.
51
+ - baf80fe: Show shared chat progress and safe outcomes, follow growing replies only near the bottom, and align Native defaults, read state and cancellation confirmation across chat consumers.
52
+ - baf80fe: Describe conversation configuration, native model selection and SDK message input in generated API and CLI help.
53
+ - baf80fe: Save notices for native and Runner OnlineAgent conversations in the caller's transaction without waking an execution, including when input is supplied. Preserve active execution results and propagate persistence errors.
54
+
55
+ Reject direct HTTP tool, model-list and system-prompt overrides. Validate business variables against schemas declared by the selected scopes, while preserving trusted server SDK configuration and existing thinking handling.
56
+
57
+ Add showInChatList with a non-null true default. Filter ordinary chat lists before database pagination, allow explicit visibility at ordinary conversation creation, and always hide new background sessions. Known-session ownership checks and direct reads remain unchanged.
58
+
59
+ - baf80fe: Keep conversation agent identifiers non-null with a default sentinel, keep historical conversations readable and read-only while permitting owners to cancel unfinished old runs, and allow application shutdown to complete with a warning if OnlineAgent finalization fails. Persist tool messages using the existing display roles while retaining their canonical SDK roles. Prefix OnlineAgent integration types, narrow server exports, and document the service and configuration API in the plugin Skill.
60
+ - baf80fe: Wait for the admitted OnlineAgent execution in get(), including validated result persistence, finalization and occupancy release. Add try({ wait }) for bounded observation with distinct pending, failed and cancelled results and safe errors. Preserve run() admission semantics and finalization retries without rerunning model or tools.
61
+
62
+ Update translation and structured extraction examples to await results without status polling while preserving deadlines, disconnect handling and cancellation of late admission.
63
+
64
+ - baf80fe: Use `OnlineAgentService` directly as the application service contract and remove redundant service interfaces. Update application dependencies, tests, and integration guidance to use the complete service type while retaining the shared realtime-session and Runner-backend contracts.
65
+ - baf80fe: Integrate single-instance startup correction, transactional UI notifications and background result observation with standard SDK chat. Preserve approval barriers and actual tool occupancy while making interrupted-effect feedback advisory after finalization.
66
+ - baf80fe: Repair previous-process native conversation occupancy during server startup while preserving saved results. Keep interrupted tool facts in private model history, remove effect-review admission locks, and allow owners to cancel historical runs while keeping historical conversations read-only. Stop continues to wait for actual native tool termination and finalization; cancellation requests for Runner and historical runs still require terminal confirmation.
67
+ - baf80fe: Show OnlineAgent thinking feedback before the first stream event and place animated waiting feedback directly after the latest chat message in Examples and the Registry block.
68
+ - baf80fe: Remove the unused legacy realtime protocol and process-local replay manager after migrating public chat consumers to SDK UI messages. Keep background structured execution and its private model evidence separate from browser streams, and verify the installed application contract.
69
+
70
+ Show writing indicators only for the active SDK response so saved partial replies stay still after cancellation, refresh and subsequent turns.
71
+
72
+ - baf80fe: Store native realtime OnlineAgent messages once as complete SDK UIMessage originals. Derive public history and streams through shared safe projections and model history through current tool converters, enforce lossless JSON tool results, and preserve approval, recovery and finalization idempotency.
73
+ - baf80fe: Keep committed chat messages, execution occupancy, paginated history and command results consistent across views. Confirm uncertain submissions into canonical history without resending or reconnecting, and guard delayed actions and Undo callbacks for the authenticated provider lifetime.
74
+
75
+ Keep published client test fixtures, navigation guards and language providers in the same Router and application contexts as application pages, and exercise translation model selection through its keyboard interaction.
76
+
77
+ - baf80fe: Unify native realtime and background conversations on complete internal SDK UI messages, deriving safe public UI history and private model replay from the same original. Restore the common `OnlineAgent` interface with `RealtimeOnlineAgent` and `BackgroundOnlineAgent` subinterfaces and concrete session implementations. Background agents expose `run`, `get`, and `try` without `send` or browser-stream dependencies; structured results remain independently validated execution data. Update application consumers to use the background interface. Historical background ModelMessage storage is not supported by the new reader.
78
+ - @nocobase/app-server@3.0.0-beta.0
79
+ - @nocobase/app-plugin-file@1.0.0-beta.25
80
+
81
+ ## 0.1.0-beta.14
82
+
83
+ ### Patch Changes
84
+
85
+ - c640d35: Clarify runtime coding tool quota percentages as used capacity.
86
+ - 1952789: Require explicitly declared realtime topics and authorize dynamic resources before subscription and delivery. Isolate the server core behind a broker contract, retain the application adapter and service tokens, and handle asynchronous publication throughout plugins and examples. Add acknowledged browser subscriptions, bounded recovery and heartbeat handling, shared React refresh helpers, original-session revalidation, transport limits, and usage documentation. The included adapter remains in-process; events are transient and clients recover by refetching after acknowledgement.
87
+ - 1952789: Make mail synchronization and office workflow views refresh from committed state notifications, including empty sync results, failures, cancellation and lifecycle transitions. Add optional periodic reconciliation to the shared refresh scheduler, pause hidden views, and retain one-minute reconciliation for transient announcements and out-of-band changes. Reduce existing task, run, session and chat fallback reads to one minute while retaining time-based computer status checks, external indexing status reads, deployment health probes and bounded initialization waits.
88
+
89
+ Announce knowledge rechunking start and completion even when no chunks change, and support optional committed status notifications from external indexers. Continue tracking pending index work when some sections have already failed.
90
+
91
+ Preserve application providers when `renderWithApp` rerenders its page. Exercise mail refresh through real application services and fix the mail account navigation translation key exposed by those checks.
92
+
93
+ - 1952789: Add `refreshRealtimeQueries` to refresh active TanStack Query snapshots after pre-event requests settle, including initial loads, prefixes and predicates. Keep inactive snapshots invalid, expose refresh failures, and stop queued follow-ups when their owner is disposed. The application client now declares its TanStack Query peer contract.
94
+
95
+ Use the shared catch-up behavior in Projects, Knowledge, Agents, Agent Sessions and the inbox. Refresh additional inbox topics after subscription readiness and preserve refresh promises so concurrent events coalesce correctly. Update application guidance to avoid reusing stale in-flight responses.
96
+
97
+ - 1952789: Retry transient subscription failures independently with bounded exponential backoff and jitter. Preserve permanent authorization refusals and correlation checks, cancel retries on disposal, and probe healthy foreground connections instead of rebuilding them.
98
+
99
+ Retain stale snapshot state after failed reads and retry transient refresh failures without another realtime event. Expose refresh status, last successful synchronization, manual retry and separate subscription error callbacks. Clear previously authorized query data after an HTTP 401 or 403. Reuse the scheduler for Agent Sessions and subject run discovery while preserving slow reads and stream coalescing.
100
+
101
+ - 7afd595: Remove Refine from the client runtime
102
+
103
+ The application shell no longer mounts Refine. `@nocobase/app-client` drops `app.refine`, `app.refineConfig`, `AppClientRefineConfig`, `AppClientRefineRegistry`, `AppClientRefineSetters`, `AppClientRefineSetterValue` and the provider-context methods `runWithProviderContext` and `runWithProviderContextAsync`, which existed only to attribute Refine settings to the provider that made them. Nothing in the repository read what was registered there: a title set through `app.refine.setOptions` never reached the page, and Refine resources never produced a menu entry.
104
+
105
+ Refine also created the TanStack Query cache that pages read through `useQueryClient()`; `AppClientProviders` now creates it in the same place, the same way, so pages and plugins behave as before. `@tanstack/react-query` becomes a peer dependency of `@nocobase/app-client` and joins the identity-sensitive packages that plugins must declare as peers.
106
+
107
+ `@nocobase/i18n/client` drops `createRefineI18nProvider`, `CreateRefineI18nProviderOptions` and `RefineI18nProvider`. `@nocobase/app-plugin-repository-example` drops its Client ServiceProvider and the `./client/providers` export, which only registered Refine resources.
108
+
109
+ `nocobase build` builds the client with `vite build` instead of `refine build`, and `@nocobase/app-cli` no longer lists `@refinedev/cli` as an optional peer. The Default and Examples templates remove every `@refinedev/*` development dependency. The development and plugin Skills no longer mention Refine, and the upgrade Skill explains how an existing application removes its `this.app.refine` calls and Refine packages.
110
+
111
+ - 7356599: Vertically center runtime tool controls and quota details in their rows.
112
+ - Updated dependencies [1952789]
113
+ - Updated dependencies [1952789]
114
+ - Updated dependencies [1952789]
115
+ - Updated dependencies [1952789]
116
+ - Updated dependencies [1952789]
117
+ - Updated dependencies [7afd595]
118
+ - @nocobase/app-cli@1.0.0-beta.25
119
+ - @nocobase/app-client@4.0.0-beta.0
120
+ - @nocobase/app-plugin-authentication@2.0.0-beta.11
121
+ - @nocobase/app-plugin-authorization@1.0.0-beta.29
122
+ - @nocobase/app-plugin-file@1.0.0-beta.25
123
+ - @nocobase/app-server@3.0.0-beta.0
124
+ - @nocobase/i18n@2.0.0-beta.0
125
+ - @nocobase/authorization@1.0.0-beta.14
126
+ - @nocobase/db@1.0.0-beta.21
127
+ - @nocobase/markdown-mermaid@0.1.0-beta.2
128
+ - @nocobase/service-provider@0.0.2-beta.2
129
+
130
+ ## 0.1.0-beta.13
131
+
132
+ ### Minor Changes
133
+
134
+ - 32ed5e2: Report coding account quota windows, filter scoped exhausted tools before claims, and restore eligibility at known reset times or after an authorized manual clear. Show quota status and usage in runtime tabs and agent availability, and batch page reads independently of the catalog size.
135
+
136
+ Runtime API and CLI: runtime get returns directory totals without directory rows; runtime list omits models, policy, variables, quota details and load, and caps takes at three with takesCount. Use the paginated runtime workspaces command for directory rows. Runtime quota clear takes structured tool/scope/target/window fields and no client revision; only unknown-reset marks may be cleared.
137
+
138
+ Classify quota revision races as retryable REVISION_CONFLICT while known-reset clears fail with QUOTA_RESET_KNOWN / FAILED_PRECONDITION.
139
+
140
+ Batch related-task visibility and missing blocker reads with the existing issue visibility filter, preserving per-request permissions and hidden blocker counts as task and project counts grow.
141
+
142
+ ### Patch Changes
143
+
144
+ - Updated dependencies [22717d7]
145
+ - Updated dependencies [32ed5e2]
146
+ - @nocobase/app-server@2.0.0-beta.9
147
+ - @nocobase/agent-protocol@0.1.0-beta.10
148
+ - @nocobase/app-plugin-file@1.0.0-beta.24
149
+ - @nocobase/app-plugin-authentication@2.0.0-beta.10
150
+ - @nocobase/app-cli-client@0.1.0-beta.10
151
+
152
+ ## 0.1.0-beta.12
153
+
154
+ ### Minor Changes
155
+
156
+ - c28f719: The agent queue reads a fixed number of queries however many runs are held or queued: each queued row carries the claim rules' quick explanation, the newest activity of all held runs takes two reads, and the exact reason a queued run waits is read only when its row is unfolded (`RunService.queueWait`, `GET /api/agentBoard/issues/:issueId/agents/:agentId/wait`). The queue refreshes from coalesced announcements with a 45-second fallback poll, and the agents' work marks on issue lists refresh only for announcements about the issues shown, with a 60-second fallback poll.
157
+
158
+ ### Patch Changes
159
+
160
+ - 14b7aec: Make the run retry back-off and the runners sweep interval configurable: `agents.runs.retryBaseDelayMs` sets the first back-off of a failed run attempt (30 seconds by default, still doubling up to ten minutes) and `agents.runners.sweepIntervalMs` how often the sweep runs (30 seconds by default). The defaults are unchanged; shorter values are meant for tests.
161
+ - 56251bc: Reuse issue context, previous summaries, comment deltas and initialization reads for matching parameters within a transaction, reducing repeated work during runner claims.
162
+ - ff3ce5d: Clarify that native agents must use the CLI for management operations while explicitly authorized independent test instances allow browser and HTTP verification, with existing credential and permission protections preserved.
163
+ - f1f3bd7: Read the dashboard, usage and metrics reports with a fixed number of queries whatever the number of issues, runs and usage records: runs, usage and issues are read in one query each with only the columns the figures use, model usage outside runs is summed in the database, and issue facts are read in three queries instead of two per 200 issues. The Studio dashboard now loads each panel from its own route, `GET /api/reports/delivery`, `GET /api/reports/agents` and `GET /api/reports/projects` (CLI `report delivery`, `report agents`, `report projects`), each loading, failing and refreshing on its own; `GET /api/reports/dashboard` and `report dashboard` are removed.
164
+ - 644a773: Reuse claim-local run, capacity, skill and sealed variable reads, batch candidate agent reads, and update routine runner activity timestamps without a separate transaction while preserving dispatch writes and delivery audits.
165
+ - 8b9fff1: Read run status without a transaction when no new input needs delivery, while preserving cancellation, lease ownership checks, and input redelivery.
166
+ - 616561b: Give dispatched agent runs five minutes to start while their runtime stays online. Immediately requeue server-reclaimed pre-start runtime interruptions without consuming failure attempts or losing unhandled input, stopping after ten consecutive interruptions. Count runner-reported worker startup failures against the normal failure budget with backoff, and distinguish terminal runtime failures from agent failures. Count and list only inbox decisions whose in-app messages still exist, filtering before pagination.
167
+ - f2fa59b: Revoke all prior runner registrations and keys when the same owner registers the same name and host again, without a registration lock or new table. Simultaneous registrations may temporarily leave multiple active records, which the next registration revokes. Add a paginated runtime token list that exposes only usable token metadata within the caller's permissions, provide executable revoke/delete guidance, and require an explicit server for runner installation before any files are installed.
168
+ - 7abd72b: Allow administrators to configure global and new-project skill defaults in the attachment section, and show visible attachment targets by name with project settings links. Align new-project defaults CLI access with the existing settings permissions.
169
+ - c2132c9: Return only workspace totals from the runner list API and `runtime list`, read independent runner summaries concurrently, and fetch directory diagnostics when opening a runner's details. Scripts reading `workspaceUsage.workspaces` from the list must use `runtime get` or the single-runner API instead. The CLI table now includes directory counts, unpushed counts and free disk bytes.
170
+ - e94b470: Send selected PNG and JPEG images through the existing conversation attachment flow when organizing requirements. Keep the source requirements and files in memory across navigation, with a manual return to edit or choose another agent after a reading failure.
171
+ - 49f61b9: Show optional settings permissions separately from business actions in CLI identity output, and explain run-token-only permissions. Add available-command typo suggestions, a hint for truncated text, and clean shutdown when a pipe closes early. Describe route schema inputs so generated CLI help and reference tables explain their parameters. The manifest identity and whoami JSON result gain an optional settings list; command admission and authorization are unchanged.
172
+ - e8f52c9: Keep variable and agent capability dialog actions reachable by limiting dialog height and scrolling long form content internally.
173
+ - Updated dependencies [846e75f]
174
+ - Updated dependencies [d34b6eb]
175
+ - Updated dependencies [98b3862]
176
+ - Updated dependencies [525ace4]
177
+ - Updated dependencies [1cdbaf4]
178
+ - Updated dependencies [5fe8773]
179
+ - Updated dependencies [b22d999]
180
+ - Updated dependencies [616561b]
181
+ - Updated dependencies [83e3609]
182
+ - Updated dependencies [00c5970]
183
+ - Updated dependencies [0037dd2]
184
+ - Updated dependencies [55fcee1]
185
+ - Updated dependencies [c0b7537]
186
+ - Updated dependencies [eb4b081]
187
+ - Updated dependencies [14b7aec]
188
+ - Updated dependencies [49f61b9]
189
+ - Updated dependencies [0037dd2]
190
+ - @nocobase/app-cli-client@0.1.0-beta.8
191
+ - @nocobase/app-cli@1.0.0-beta.23
192
+ - @nocobase/db@1.0.0-beta.21
193
+ - @nocobase/app-client@3.0.0-beta.2
194
+ - @nocobase/app-server@2.0.0-beta.8
195
+ - @nocobase/agent-protocol@0.1.0-beta.9
196
+ - @nocobase/app-plugin-file@1.0.0-beta.24
197
+ - @nocobase/app-plugin-authentication@2.0.0-beta.10
198
+ - @nocobase/app-plugin-authorization@1.0.0-beta.28
199
+ - @nocobase/authorization@1.0.0-beta.14
200
+ - @nocobase/i18n@1.0.0-beta.7
201
+ - @nocobase/markdown-mermaid@0.1.0-beta.2
202
+ - @nocobase/service-provider@0.0.2-beta.2
203
+
204
+ ## 0.1.0-beta.11
205
+
206
+ ### Minor Changes
207
+
208
+ - 862a542: Support global default skills and transactional defaults for newly created Studio projects. Resolve skills from global through application scopes to working directories in one query, with more specific targets winning. Stop reading and exposing legacy agent skill attachments while preserving agent variables.
209
+ - aae3508: Clear finished runs' events and prompt snapshots hourly after a configurable retention period, defaulting to 14 days. Keep run history and delivery records, and show a retention notice when an expired run has no process data.
210
+
211
+ ### Patch Changes
212
+
213
+ - 42aaf81: Append authorized project manager follow-ups to compatible active runs, deduplicate source comments, preserve comment authorization when dispatching multiple agents, and guard run completion with Collection optimistic revisions.
214
+ - 8e4cf26: Recover runners and agent-session bridges after a protocol upgrade. Heartbeat answers now carry the server's runner protocol (`protocolVersion`), and a runner that speaks an older protocol while no newer version is offered logs what it speaks, what the application needs and how to update, instead of looking up to date. A bridge refused for its protocol now receives the protocols the application speaks in the error's `metadata`; `acp start` then updates the CLI as `update` does and exits non-zero so its launchd, systemd or Startup service starts it again on the new version, and when no update helps it still exits non-zero after a pause rather than stopping with success. A computer whose bridge was refused as too old is shown on My agents with the commands to update it.
215
+ - facfe5c: Clear failures when a retried agent run is dispatched or succeeds, and show queued retry explanations separately from current failures while preserving historical errors.
216
+ - c1d2601: Claim polls no longer lock or write anything for queued runs they cannot take: comment consent, identity and the agent's concurrency limit are decided from reads, and a transaction opens only for the run about to be claimed. Consent decisions use guarded updates on the request and on each run instead of locking the whole comment run chain, which had exhausted the database pool when several runners polled at once.
217
+ - c1d2601: Require owner consent before another person's comment can run on the owner's personal runner. Team runners can take the queued work directly. Keep consent within the comment's run chain, show decisions in Studio's existing Needs you card and inbox, and let the original commenter run pending or rejected work as themselves.
218
+ - 92afa27: Make My follow-ups fast for someone who owns many open issues. `GET /api/followUps` reads what every row's progress needs in a fixed number of queries instead of a few per issue, and a row no longer works out why queued work has not been claimed (`waiting`, `managerWait`): the issue's own progress (`GET /api/issueProgress/{issueId}`), shown beside the list, still does. A new `GET /api/followUps/issues?issueIds=…` answers the rows of the named issues, and the page uses it to refresh only the rows an announced change names, a burst at a time, reading the whole overview again only when the list itself changed, on reconnect, for a change that names no issue, and on its fallback poll. The follow star on an issue reads only what the viewer follows from a new `GET /api/followUps/following` (`follow-up following` on the command line) instead of the whole overview, and an agent session's issue progress reads its issues in the same fixed number of queries. The projects plugin's comment queries gain `newestByEach`, the agents plugin's runs gain `openOnEach`, and its run request list takes `subjectIds` and `statuses`.
219
+ - 943a9a8: Fix MySQL installation of the agents and releases plugins by removing the unused directory/status index and limiting archive artifact keys to 172 characters while preserving full-value uniqueness. Add a Collection builder inspection method and forward migrations to converge existing installations without truncating data; oversized legacy artifact keys stop the upgrade before any column or index change. Rebuild the existing artifact-key unique index within the migration transaction on SQL Server so indexed legacy columns can be shortened while retaining uniqueness, nullable behavior and the actual index name under custom naming configurations.
220
+
221
+ This fix edits the released migrations `202610020003_ag_create_runs` and `202610020001_rel_create_tables` because their oversized indexes prevent fresh MySQL installations from reaching a later repair migration. Existing installations should expect checksum warnings on the next `nocobase db apply`; installations using `onChecksumMismatch: error` stop instead. After reviewing these exact changes, use `nocobase db repair --dry-run` and then `nocobase db repair` to acknowledge the new checksums, followed by `nocobase db apply` to perform the forward schema changes. Repairing checksums alone does not upgrade the schema. The forward corrections are irreversible because restoring the old indexes would make MySQL installations invalid again. See the plugins' `docs/mysql-installation-upgrade.md` for the upgrade and failed-installation recovery procedure.
222
+
223
+ - 4626949: Start issue runs from the earliest linked open pull request in the same repository, allow agents to manage branches and pull request associations without rewriting pushed history, and preserve shared local branches and stashes when removing run worktrees. Only published runner-created temporary branches are cleaned up. A run that ends on another branch is preserved by that branch, without a saved head or push failure on the starting target.
224
+ - c1d2601: Preserve owner-initiated comment delegation without extra personal runner consent and retain every unfinished target and input when the commenter chooses Run as me.
225
+ - bdb0581: Reduce the server load of open issue and My follow-ups pages. Issue change announcements are gathered for a moment and name the issues that changed, so a page refreshes only what it shows of them; Studio announces new runs on an issue, so issue pages, What it waits for, owner handoffs and My follow-ups fall back to a slow poll instead of polling every few seconds; a preview label the server failed to set no longer makes the issue page poll every three seconds. Polled reads check issue visibility without loading the whole issue page (`IssueQueries.visible`), What it waits for reads only the project manager's newest comments (`CommentQueries.newestBy`), My follow-ups shares lookups across its issues, and pull request marks check visibility in one read. A runner heartbeat no longer announces a runner change, waking every waiting claim and refreshing every runtimes page, unless its disk sample moved by a gigabyte, crossed the free-space threshold or changed size.
226
+ - f36da62: Keep a runner claiming work while it collects working directories. Collection no longer measures every directory's size by reading every file, which on runners with many directories took tens of minutes per round and held all claims meanwhile; only pruning the shared pnpm store still holds claims. Routine collection now runs an hour after the previous round ended (`WORKSPACE_REPORT_INTERVAL_MS`), still at once when the disk runs low, and the runner logs each round's start and duration. Workspace diagnostics show a directory's size only when a runner reported one.
227
+ - 99be3d0: Use short private per-run temporary directories on Linux and macOS so Unix sockets can start, reserve TMP and TEMP alongside TMPDIR, and reclaim temporary files through the existing run lifecycle and garbage collection.
228
+ - bdb0581: A public realtime topic can be defined with `authenticated: true` (`defineTopic` and `registerTopic` of `@nocobase/app-server/realtime`): subscribing without a signed-in principal is then refused with `AUTHENTICATION_REQUIRED`, as for a user topic, and publishing skips connections without one. The projects plugin's `pm:changes`, the agents plugin's `agents:runners` and Studio's `studio:issues:runs`, whose announcements name records by id, now reach signed-in connections only. The authentication plugin opens the realtime connection again when the signed-in person changes, so a page signed in without a reload receives these topics and user topics.
229
+ - Updated dependencies [8e4cf26]
230
+ - Updated dependencies [69e212c]
231
+ - Updated dependencies [943a9a8]
232
+ - Updated dependencies [943a9a8]
233
+ - Updated dependencies [e23633e]
234
+ - Updated dependencies [1cd749c]
235
+ - Updated dependencies [f36da62]
236
+ - Updated dependencies [bdb0581]
237
+ - Updated dependencies [9b946f4]
238
+ - @nocobase/agent-protocol@0.1.0-beta.8
239
+ - @nocobase/app-cli-client@0.1.0-beta.7
240
+ - @nocobase/app-server@2.0.0-beta.7
241
+ - @nocobase/app-cli@1.0.0-beta.22
242
+ - @nocobase/db@1.0.0-beta.20
243
+ - @nocobase/app-plugin-authentication@2.0.0-beta.9
244
+ - @nocobase/app-plugin-file@1.0.0-beta.23
245
+ - @nocobase/app-plugin-authorization@1.0.0-beta.27
246
+
247
+ ## 0.1.0-beta.10
248
+
249
+ ### Minor Changes
250
+
251
+ - ddfe1b1: Discover agents from what runners report instead of having people create them. Each coding tool and normalized model a runner reports becomes one agent (`source: 'runner'`, a deterministic id, named from a model catalog such as "Claude · Opus 5.5"), pending until someone who manages agents writes what it is good at and enables it (`PATCH /api/agents/{agentId}` with `description`, `effort`, `enabled`); an application keeps agents of its own with `agents.ensureSystem`, and sets every discovered agent's instructions and actions with `agents.setDefaults`. A model a run reports unavailable is marked on that runner until the runner reports its models again, and an agent no runner reported for 14 days is shown without a runner and left out of `roster`. Online agents, consultations, the online executor, agent presets, creating, archiving and deleting agents, the chat model choice and the default chat model settings are removed; conversations go to an enabled agent and say why one cannot answer (`othersPersonal` added, `AGENT_NOT_ENABLED`). Model services remain for the application's own model calls through `models.gateway` (renamed from `online.gateway`). Claims carry `workspace.key` and `workspace.readOnly` from the subject's assembly (`SubjectAssembly.workspaceKey`, `readOnly`). The migration `202610240020_ag_runner_agents` adds the new columns, removes every existing agent (rows kept and marked deleted so history still names them), cancels their queued runs, withdraws their pending run requests and clears default chat agents.
252
+ - 6fc0af2: Require the issue owner to start or continue Studio project manager work, and ignore agent wakeups from comments on unstarted issues. Run the manager and its delegated steps as the current owner while preserving trigger audit information. Withdraw all queued agent work and request cancellation of held runs on owner transfers, without automatically restarting them. Correct legacy queued identities before claim and expose waiting reasons.
253
+
254
+ Expose the existing transactional `Projects.activity` recorder for application issue events and deliver owner transfers to all work kinds before ordinary triggers, including executor clearing. Restore Studio wording for models, efforts, the start dialog and historical sub-issue activity.
255
+
256
+ Preserve delegated execution identity throughout repeated retries, including handled inputs, and show the initiator of the current retry instead of copied retry history.
257
+
258
+ - abc3fcb: Keep enabled agents prominent, group new discoveries by tool and catalog model, and persist shared ignore and restore preferences with revision protection. Choose a provider without changing existing execution identities and show personal runner names. Discover only authenticated Pi providers and prevent model overrides from bypassing that filter. In Studio, authorize runs through their running identity and existing command scope instead of intersecting with legacy agent action lists, including reports, while retaining object permissions, credential scopes, read-only modes and human approval requirements.
259
+
260
+ Show recognizable provider and runner labels when selecting a model and cap atomic bulk discovery operations at 256 selected groups with explicit counts and limits.
261
+
262
+ ### Patch Changes
263
+
264
+ - 10e261b: Use a private linked Git worktree per run and save local continuation after stopping its tools. Fast-forward the resume reference, retain divergent heads as separately listed saved references, and preserve the directory on cleanup failure. Keep Codex state outside disposable worktrees. Other tools start fresh when their code directory changes; legacy sessions and clones are not migrated. Distinguish private local branches from task push targets and retain older runner compatibility.
265
+ - ee24e95: Clean idle build artifacts before pushed workspaces when disk space is low, pause new work until heartbeats detect recovery, and report disk-full failures for reassignment without counting a project-manager step failure. Show current disk capacity and workspace size, type and push diagnostics.
266
+
267
+ Retry interrupted removal of verified pushed attempt directories from GC or the next run, stop their remaining processes before deleting remnants, and retain cleanup failure reasons without blocking later tasks. Preserve unpublished or uncommitted work for recovery.
268
+
269
+ Verify the actual checkout branch and HEAD before retrying removal, report disk exhaustion even when local preservation metadata or events cannot be written, and continue safe pressure cleanup when diagnostic cache writes fail.
270
+
271
+ - 4748117: Allow the project manager to use an idle fallback after a configurable queue delay, exclude runners that cannot honor its workspace, and show selection and waiting reasons. Persist queue episodes through retries and restarts, withdraw unclaimed manager delegations after a configurable timeout, reliably report their cause in the dispatch thread, and publish identity-aware immediate capacity in each manager roster.
272
+ - fad531f: Initialize the project manager's name and description once in the installation's default language and allow administrators to edit them, including clearing the description. Restarts and unrelated settings saves preserve the identity. Later changes to the installation language do not rename an initialized manager.
273
+
274
+ An upgrade seed preserves valid explicit settings, custom legacy agent values, empty descriptions, and unknown settings. Legacy agent values identical to the former built-in English defaults cannot be distinguished from manual writes and are initialized in the upgrade language when no valid explicit setting exists. A damaged `studioSettings.projectManager.value` stops initialization with a repair instruction instead of overwriting it.
275
+
276
+ Resolve historical run inputs, notifications, delegation cards, plans, and consultation identity labels from stable agent IDs without rewriting historical text or execution snapshots. Legacy limit notices and plans whose identity cannot be recovered use neutral labels, and unresolved consultations mark the originally requested subject. Refresh identity caches when the manager is renamed.
277
+
278
+ Mount application query effects inside the projects plugin's cache using its optional `queryEffects` composition point. Keep completed consultation labels current after renames and distinguish loading, inaccessible agents, and historical request snapshots.
279
+
280
+ - a2cf036: Interrupt agent runs for runner updates after stopping tools and preserving local continuation references. Requeue upgrade interruptions without consuming failure attempts or notifying project managers, retain task inputs, and report draining capacity and reasons in runner and queue views.
281
+ - Updated dependencies [157a914]
282
+ - Updated dependencies [8698e80]
283
+ - Updated dependencies [10e261b]
284
+ - Updated dependencies [9e99702]
285
+ - Updated dependencies [ddfe1b1]
286
+ - Updated dependencies [ee24e95]
287
+ - Updated dependencies [4748117]
288
+ - Updated dependencies [a2cf036]
289
+ - Updated dependencies [6758f9f]
290
+ - @nocobase/app-cli-client@0.1.0-beta.6
291
+ - @nocobase/agent-protocol@0.1.0-beta.7
292
+ - @nocobase/app-server@2.0.0-beta.6
293
+ - @nocobase/app-plugin-authentication@2.0.0-beta.8
294
+ - @nocobase/app-plugin-file@1.0.0-beta.23
295
+
3
296
  ## 0.1.0-beta.9
4
297
 
5
298
  ### Patch Changes