@nocobase/app-plugin-agents 0.1.0-beta.11 → 0.1.0-beta.13

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 (330) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/README.md +22 -2
  3. package/dist/client/api/client.d.ts +9 -4
  4. package/dist/client/api/client.d.ts.map +1 -1
  5. package/dist/client/api/client.js +9 -0
  6. package/dist/client/api/client.js.map +1 -1
  7. package/dist/client/api/keys.d.ts +3 -0
  8. package/dist/client/api/keys.d.ts.map +1 -1
  9. package/dist/client/api/keys.js +3 -0
  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/keys.d.ts.map +1 -1
  16. package/dist/client/chat/keys.js +2 -1
  17. package/dist/client/chat/keys.js.map +1 -1
  18. package/dist/client/chat/use-chat.d.ts.map +1 -1
  19. package/dist/client/chat/use-chat.js +8 -1
  20. package/dist/client/chat/use-chat.js.map +1 -1
  21. package/dist/client/components/quota-status.d.ts +16 -0
  22. package/dist/client/components/quota-status.d.ts.map +1 -0
  23. package/dist/client/components/quota-status.js +39 -0
  24. package/dist/client/components/quota-status.js.map +1 -0
  25. package/dist/client/components/runners-refresh.d.ts.map +1 -1
  26. package/dist/client/components/runners-refresh.js +1 -0
  27. package/dist/client/components/runners-refresh.js.map +1 -1
  28. package/dist/client/components/variables/variable-dialogs.d.ts.map +1 -1
  29. package/dist/client/components/variables/variable-dialogs.js +7 -7
  30. package/dist/client/components/variables/variable-dialogs.js.map +1 -1
  31. package/dist/client/config.d.ts +2 -0
  32. package/dist/client/config.d.ts.map +1 -1
  33. package/dist/client/config.js +2 -0
  34. package/dist/client/config.js.map +1 -1
  35. package/dist/client/hooks/use-quota-expiry.d.ts +7 -0
  36. package/dist/client/hooks/use-quota-expiry.d.ts.map +1 -0
  37. package/dist/client/hooks/use-quota-expiry.js +92 -0
  38. package/dist/client/hooks/use-quota-expiry.js.map +1 -0
  39. package/dist/client/kit.d.ts +5 -0
  40. package/dist/client/kit.d.ts.map +1 -1
  41. package/dist/client/kit.js +25 -0
  42. package/dist/client/kit.js.map +1 -1
  43. package/dist/client/lib/agents.d.ts +1 -1
  44. package/dist/client/lib/agents.d.ts.map +1 -1
  45. package/dist/client/lib/agents.js +2 -1
  46. package/dist/client/lib/agents.js.map +1 -1
  47. package/dist/client/lib/format.d.ts +3 -1
  48. package/dist/client/lib/format.d.ts.map +1 -1
  49. package/dist/client/lib/format.js +25 -0
  50. package/dist/client/lib/format.js.map +1 -1
  51. package/dist/client/lib/skill-settings-context.d.ts +9 -0
  52. package/dist/client/lib/skill-settings-context.d.ts.map +1 -0
  53. package/dist/client/lib/skill-settings-context.js +4 -0
  54. package/dist/client/lib/skill-settings-context.js.map +1 -0
  55. package/dist/client/lib/skill-settings.d.ts +12 -0
  56. package/dist/client/lib/skill-settings.d.ts.map +1 -0
  57. package/dist/client/lib/skill-settings.js +37 -0
  58. package/dist/client/lib/skill-settings.js.map +1 -0
  59. package/dist/client/locales/en-US.d.ts +1 -0
  60. package/dist/client/locales/en-US.d.ts.map +1 -1
  61. package/dist/client/locales/en-US.js +1 -0
  62. package/dist/client/locales/en-US.js.map +1 -1
  63. package/dist/client/locales/runtimes.en-US.d.ts +72 -0
  64. package/dist/client/locales/runtimes.en-US.d.ts.map +1 -1
  65. package/dist/client/locales/runtimes.en-US.js +73 -1
  66. package/dist/client/locales/runtimes.en-US.js.map +1 -1
  67. package/dist/client/locales/runtimes.zh-CN.d.ts.map +1 -1
  68. package/dist/client/locales/runtimes.zh-CN.js +72 -0
  69. package/dist/client/locales/runtimes.zh-CN.js.map +1 -1
  70. package/dist/client/locales/skills.en-US.d.ts +6 -0
  71. package/dist/client/locales/skills.en-US.d.ts.map +1 -1
  72. package/dist/client/locales/skills.en-US.js +6 -0
  73. package/dist/client/locales/skills.en-US.js.map +1 -1
  74. package/dist/client/locales/skills.zh-CN.d.ts.map +1 -1
  75. package/dist/client/locales/skills.zh-CN.js +6 -0
  76. package/dist/client/locales/skills.zh-CN.js.map +1 -1
  77. package/dist/client/locales/zh-CN.d.ts.map +1 -1
  78. package/dist/client/locales/zh-CN.js +1 -0
  79. package/dist/client/locales/zh-CN.js.map +1 -1
  80. package/dist/client/pages/agents/agent-dialog.d.ts.map +1 -1
  81. package/dist/client/pages/agents/agent-dialog.js +4 -4
  82. package/dist/client/pages/agents/agent-dialog.js.map +1 -1
  83. package/dist/client/pages/agents/runner-agents.d.ts.map +1 -1
  84. package/dist/client/pages/agents/runner-agents.js +23 -10
  85. package/dist/client/pages/agents/runner-agents.js.map +1 -1
  86. package/dist/client/pages/runtimes/connect.js.map +1 -1
  87. package/dist/client/pages/runtimes/index.d.ts.map +1 -1
  88. package/dist/client/pages/runtimes/index.js +1 -1
  89. package/dist/client/pages/runtimes/index.js.map +1 -1
  90. package/dist/client/pages/runtimes/quota-targets.d.ts +4 -0
  91. package/dist/client/pages/runtimes/quota-targets.d.ts.map +1 -0
  92. package/dist/client/pages/runtimes/quota-targets.js +18 -0
  93. package/dist/client/pages/runtimes/quota-targets.js.map +1 -0
  94. package/dist/client/pages/runtimes/quota.d.ts +17 -0
  95. package/dist/client/pages/runtimes/quota.d.ts.map +1 -0
  96. package/dist/client/pages/runtimes/quota.js +48 -0
  97. package/dist/client/pages/runtimes/quota.js.map +1 -0
  98. package/dist/client/pages/runtimes/runner-cells.d.ts +11 -4
  99. package/dist/client/pages/runtimes/runner-cells.d.ts.map +1 -1
  100. package/dist/client/pages/runtimes/runner-cells.js +2 -2
  101. package/dist/client/pages/runtimes/runner-cells.js.map +1 -1
  102. package/dist/client/pages/runtimes/runner-overview.d.ts +9 -0
  103. package/dist/client/pages/runtimes/runner-overview.d.ts.map +1 -0
  104. package/dist/client/pages/runtimes/runner-overview.js +109 -0
  105. package/dist/client/pages/runtimes/runner-overview.js.map +1 -0
  106. package/dist/client/pages/runtimes/runner-runs.d.ts +5 -0
  107. package/dist/client/pages/runtimes/runner-runs.d.ts.map +1 -0
  108. package/dist/client/pages/runtimes/runner-runs.js +35 -0
  109. package/dist/client/pages/runtimes/runner-runs.js.map +1 -0
  110. package/dist/client/pages/runtimes/runner-sheet.d.ts +2 -3
  111. package/dist/client/pages/runtimes/runner-sheet.d.ts.map +1 -1
  112. package/dist/client/pages/runtimes/runner-sheet.js +43 -171
  113. package/dist/client/pages/runtimes/runner-sheet.js.map +1 -1
  114. package/dist/client/pages/runtimes/runner-tools.d.ts +17 -0
  115. package/dist/client/pages/runtimes/runner-tools.d.ts.map +1 -0
  116. package/dist/client/pages/runtimes/runner-tools.js +75 -0
  117. package/dist/client/pages/runtimes/runner-tools.js.map +1 -0
  118. package/dist/client/pages/runtimes/runner-workspaces.d.ts +6 -0
  119. package/dist/client/pages/runtimes/runner-workspaces.d.ts.map +1 -0
  120. package/dist/client/pages/runtimes/runner-workspaces.js +37 -0
  121. package/dist/client/pages/runtimes/runner-workspaces.js.map +1 -0
  122. package/dist/client/pages/runtimes/tool-slots-fields.js +1 -1
  123. package/dist/client/pages/runtimes/tool-slots-fields.js.map +1 -1
  124. package/dist/client/pages/runtimes/workspace-diagnostics.d.ts +6 -4
  125. package/dist/client/pages/runtimes/workspace-diagnostics.d.ts.map +1 -1
  126. package/dist/client/pages/runtimes/workspace-diagnostics.js +61 -37
  127. package/dist/client/pages/runtimes/workspace-diagnostics.js.map +1 -1
  128. package/dist/client/pages/skills/detail/index.d.ts.map +1 -1
  129. package/dist/client/pages/skills/detail/index.js +11 -12
  130. package/dist/client/pages/skills/detail/index.js.map +1 -1
  131. package/dist/database/migrations/.manifest.json +4 -0
  132. package/dist/database/migrations/202610170001_ag_runner_quota.d.ts +4 -0
  133. package/dist/database/migrations/202610170001_ag_runner_quota.d.ts.map +1 -0
  134. package/dist/database/migrations/202610170001_ag_runner_quota.js +19 -0
  135. package/dist/database/migrations/202610170001_ag_runner_quota.js.map +1 -0
  136. package/dist/package.json +1 -1
  137. package/dist/server/cli/surface.d.ts.map +1 -1
  138. package/dist/server/cli/surface.js +4 -1
  139. package/dist/server/cli/surface.js.map +1 -1
  140. package/dist/server/composition.d.ts +2 -0
  141. package/dist/server/composition.d.ts.map +1 -1
  142. package/dist/server/composition.js +15 -4
  143. package/dist/server/composition.js.map +1 -1
  144. package/dist/server/core/agents/agent.service.d.ts.map +1 -1
  145. package/dist/server/core/agents/agent.service.js +5 -1
  146. package/dist/server/core/agents/agent.service.js.map +1 -1
  147. package/dist/server/core/agents/agent.store.d.ts +2 -0
  148. package/dist/server/core/agents/agent.store.d.ts.map +1 -1
  149. package/dist/server/core/agents/agent.store.js +10 -0
  150. package/dist/server/core/agents/agent.store.js.map +1 -1
  151. package/dist/server/core/agents/agent.views.d.ts.map +1 -1
  152. package/dist/server/core/agents/agent.views.js +2 -0
  153. package/dist/server/core/agents/agent.views.js.map +1 -1
  154. package/dist/server/core/agents/index.d.ts +1 -1
  155. package/dist/server/core/agents/index.d.ts.map +1 -1
  156. package/dist/server/core/agents/index.js +1 -1
  157. package/dist/server/core/agents/index.js.map +1 -1
  158. package/dist/server/core/brief/brief.js +2 -2
  159. package/dist/server/core/brief/brief.js.map +1 -1
  160. package/dist/server/core/callers/index.d.ts +9 -0
  161. package/dist/server/core/callers/index.d.ts.map +1 -1
  162. package/dist/server/core/callers/index.js +15 -0
  163. package/dist/server/core/callers/index.js.map +1 -1
  164. package/dist/server/core/conversations/chat-settings.d.ts.map +1 -1
  165. package/dist/server/core/conversations/chat-settings.js +12 -2
  166. package/dist/server/core/conversations/chat-settings.js.map +1 -1
  167. package/dist/server/core/conversations/conversation.service.d.ts +1 -1
  168. package/dist/server/core/conversations/conversation.service.d.ts.map +1 -1
  169. package/dist/server/core/conversations/conversation.service.js +32 -4
  170. package/dist/server/core/conversations/conversation.service.js.map +1 -1
  171. package/dist/server/core/reports/model-usage.d.ts.map +1 -1
  172. package/dist/server/core/reports/model-usage.js +42 -44
  173. package/dist/server/core/reports/model-usage.js.map +1 -1
  174. package/dist/server/core/reports/prices.d.ts.map +1 -1
  175. package/dist/server/core/reports/prices.js +29 -5
  176. package/dist/server/core/reports/prices.js.map +1 -1
  177. package/dist/server/core/reports/report.service.d.ts +4 -2
  178. package/dist/server/core/reports/report.service.d.ts.map +1 -1
  179. package/dist/server/core/reports/report.service.js +147 -68
  180. package/dist/server/core/reports/report.service.js.map +1 -1
  181. package/dist/server/core/runs/availability.d.ts +5 -1
  182. package/dist/server/core/runs/availability.d.ts.map +1 -1
  183. package/dist/server/core/runs/availability.js +8 -2
  184. package/dist/server/core/runs/availability.js.map +1 -1
  185. package/dist/server/core/runs/claim.d.ts +7 -48
  186. package/dist/server/core/runs/claim.d.ts.map +1 -1
  187. package/dist/server/core/runs/claim.js +93 -71
  188. package/dist/server/core/runs/claim.js.map +1 -1
  189. package/dist/server/core/runs/eligibility.d.ts +11 -1
  190. package/dist/server/core/runs/eligibility.d.ts.map +1 -1
  191. package/dist/server/core/runs/eligibility.js +38 -7
  192. package/dist/server/core/runs/eligibility.js.map +1 -1
  193. package/dist/server/core/runs/execution-view.d.ts +8 -0
  194. package/dist/server/core/runs/execution-view.d.ts.map +1 -1
  195. package/dist/server/core/runs/execution-view.js +9 -0
  196. package/dist/server/core/runs/execution-view.js.map +1 -1
  197. package/dist/server/core/runs/execution.d.ts +1 -1
  198. package/dist/server/core/runs/execution.d.ts.map +1 -1
  199. package/dist/server/core/runs/execution.js +8 -2
  200. package/dist/server/core/runs/execution.js.map +1 -1
  201. package/dist/server/core/runs/index.d.ts +3 -3
  202. package/dist/server/core/runs/index.d.ts.map +1 -1
  203. package/dist/server/core/runs/index.js +3 -3
  204. package/dist/server/core/runs/index.js.map +1 -1
  205. package/dist/server/core/runs/lifecycle.d.ts +9 -0
  206. package/dist/server/core/runs/lifecycle.d.ts.map +1 -1
  207. package/dist/server/core/runs/lifecycle.js +102 -18
  208. package/dist/server/core/runs/lifecycle.js.map +1 -1
  209. package/dist/server/core/runs/policy.d.ts +9 -2
  210. package/dist/server/core/runs/policy.d.ts.map +1 -1
  211. package/dist/server/core/runs/policy.js +17 -8
  212. package/dist/server/core/runs/policy.js.map +1 -1
  213. package/dist/server/core/runs/run.service.d.ts +11 -1
  214. package/dist/server/core/runs/run.service.d.ts.map +1 -1
  215. package/dist/server/core/runs/run.service.js +32 -2
  216. package/dist/server/core/runs/run.service.js.map +1 -1
  217. package/dist/server/core/runs/run.store.d.ts +5 -0
  218. package/dist/server/core/runs/run.store.d.ts.map +1 -1
  219. package/dist/server/core/runs/run.store.js +35 -11
  220. package/dist/server/core/runs/run.store.js.map +1 -1
  221. package/dist/server/core/runs/runner-view.d.ts +11 -1
  222. package/dist/server/core/runs/runner-view.d.ts.map +1 -1
  223. package/dist/server/core/runs/runner-view.js +51 -6
  224. package/dist/server/core/runs/runner-view.js.map +1 -1
  225. package/dist/server/core/runs/sweeper.d.ts.map +1 -1
  226. package/dist/server/core/runs/sweeper.js +12 -8
  227. package/dist/server/core/runs/sweeper.js.map +1 -1
  228. package/dist/server/core/runs/transitions.d.ts +5 -1
  229. package/dist/server/core/runs/transitions.d.ts.map +1 -1
  230. package/dist/server/core/runs/transitions.js +31 -11
  231. package/dist/server/core/runs/transitions.js.map +1 -1
  232. package/dist/server/core/runs/workload.d.ts +17 -6
  233. package/dist/server/core/runs/workload.d.ts.map +1 -1
  234. package/dist/server/core/runs/workload.js +186 -129
  235. package/dist/server/core/runs/workload.js.map +1 -1
  236. package/dist/server/core/skills/skill.service.d.ts.map +1 -1
  237. package/dist/server/core/skills/skill.service.js +44 -8
  238. package/dist/server/core/skills/skill.service.js.map +1 -1
  239. package/dist/server/core/transaction-read.d.ts +4 -0
  240. package/dist/server/core/transaction-read.d.ts.map +1 -0
  241. package/dist/server/core/transaction-read.js +30 -0
  242. package/dist/server/core/transaction-read.js.map +1 -0
  243. package/dist/server/core/variables/index.d.ts +1 -1
  244. package/dist/server/core/variables/index.d.ts.map +1 -1
  245. package/dist/server/core/variables/index.js.map +1 -1
  246. package/dist/server/core/variables/variable.service.d.ts +18 -0
  247. package/dist/server/core/variables/variable.service.d.ts.map +1 -1
  248. package/dist/server/core/variables/variable.service.js +95 -20
  249. package/dist/server/core/variables/variable.service.js.map +1 -1
  250. package/dist/server/index.d.ts +2 -0
  251. package/dist/server/index.d.ts.map +1 -1
  252. package/dist/server/index.js +2 -0
  253. package/dist/server/index.js.map +1 -1
  254. package/dist/server/kernel/events.d.ts +4 -2
  255. package/dist/server/kernel/events.d.ts.map +1 -1
  256. package/dist/server/kernel/events.js.map +1 -1
  257. package/dist/server/kernel/scopes.d.ts +6 -0
  258. package/dist/server/kernel/scopes.d.ts.map +1 -1
  259. package/dist/server/kernel/scopes.js.map +1 -1
  260. package/dist/server/online/services.d.ts.map +1 -1
  261. package/dist/server/online/services.js +101 -24
  262. package/dist/server/online/services.js.map +1 -1
  263. package/dist/server/providers/agents.d.ts +9 -1
  264. package/dist/server/providers/agents.d.ts.map +1 -1
  265. package/dist/server/providers/agents.js +3 -0
  266. package/dist/server/providers/agents.js.map +1 -1
  267. package/dist/server/providers/runners.d.ts +3 -1
  268. package/dist/server/providers/runners.d.ts.map +1 -1
  269. package/dist/server/providers/runners.js +12 -3
  270. package/dist/server/providers/runners.js.map +1 -1
  271. package/dist/server/routes/admin.d.ts +2 -0
  272. package/dist/server/routes/admin.d.ts.map +1 -1
  273. package/dist/server/routes/admin.js +18 -5
  274. package/dist/server/routes/admin.js.map +1 -1
  275. package/dist/server/routes/chat.d.ts.map +1 -1
  276. package/dist/server/routes/chat.js +27 -6
  277. package/dist/server/routes/chat.js.map +1 -1
  278. package/dist/server/routes/index.d.ts.map +1 -1
  279. package/dist/server/routes/index.js +3 -0
  280. package/dist/server/routes/index.js.map +1 -1
  281. package/dist/server/routes/runners/admin.d.ts.map +1 -1
  282. package/dist/server/routes/runners/admin.js +219 -25
  283. package/dist/server/routes/runners/admin.js.map +1 -1
  284. package/dist/server/routes/runners/install.d.ts.map +1 -1
  285. package/dist/server/routes/runners/install.js +7 -2
  286. package/dist/server/routes/runners/install.js.map +1 -1
  287. package/dist/server/routes/schemas.d.ts +13 -6
  288. package/dist/server/routes/schemas.d.ts.map +1 -1
  289. package/dist/server/routes/schemas.js +350 -66
  290. package/dist/server/routes/schemas.js.map +1 -1
  291. package/dist/server/runners/runner.service.d.ts +27 -3
  292. package/dist/server/runners/runner.service.d.ts.map +1 -1
  293. package/dist/server/runners/runner.service.js +336 -83
  294. package/dist/server/runners/runner.service.js.map +1 -1
  295. package/dist/server/runners/runner.store.d.ts +4 -2
  296. package/dist/server/runners/runner.store.d.ts.map +1 -1
  297. package/dist/server/runners/runner.store.js +24 -5
  298. package/dist/server/runners/runner.store.js.map +1 -1
  299. package/dist/server/runners/slots.d.ts +5 -2
  300. package/dist/server/runners/slots.d.ts.map +1 -1
  301. package/dist/server/runners/slots.js +3 -4
  302. package/dist/server/runners/slots.js.map +1 -1
  303. package/dist/shared/agents.d.ts +3 -0
  304. package/dist/shared/agents.d.ts.map +1 -1
  305. package/dist/shared/agents.js +0 -15
  306. package/dist/shared/agents.js.map +1 -1
  307. package/dist/shared/conversations.d.ts +6 -0
  308. package/dist/shared/conversations.d.ts.map +1 -1
  309. package/dist/shared/conversations.js.map +1 -1
  310. package/dist/shared/model-catalog.d.ts +5 -0
  311. package/dist/shared/model-catalog.d.ts.map +1 -1
  312. package/dist/shared/model-catalog.js +35 -1
  313. package/dist/shared/model-catalog.js.map +1 -1
  314. package/dist/shared/quota.d.ts +15 -0
  315. package/dist/shared/quota.d.ts.map +1 -0
  316. package/dist/shared/quota.js +2 -0
  317. package/dist/shared/quota.js.map +1 -0
  318. package/dist/shared/runners.d.ts +88 -5
  319. package/dist/shared/runners.d.ts.map +1 -1
  320. package/dist/shared/runners.js +126 -8
  321. package/dist/shared/runners.js.map +1 -1
  322. package/dist/shared/runs.d.ts +10 -0
  323. package/dist/shared/runs.d.ts.map +1 -1
  324. package/dist/shared/runs.js +22 -0
  325. package/dist/shared/runs.js.map +1 -1
  326. package/dist/shared/skills.d.ts +3 -1
  327. package/dist/shared/skills.d.ts.map +1 -1
  328. package/dist/shared/skills.js.map +1 -1
  329. package/package.json +14 -14
  330. package/skills/nocobase-app-plugin-agents/references/runners.md +12 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,79 @@
1
1
  # @nocobase/app-plugin-agents
2
2
 
3
+ ## 0.1.0-beta.13
4
+
5
+ ### Minor Changes
6
+
7
+ - 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.
8
+
9
+ 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.
10
+
11
+ Classify quota revision races as retryable REVISION_CONFLICT while known-reset clears fail with QUOTA_RESET_KNOWN / FAILED_PRECONDITION.
12
+
13
+ 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.
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [22717d7]
18
+ - Updated dependencies [32ed5e2]
19
+ - @nocobase/app-server@2.0.0-beta.9
20
+ - @nocobase/agent-protocol@0.1.0-beta.10
21
+ - @nocobase/app-plugin-file@1.0.0-beta.24
22
+ - @nocobase/app-plugin-authentication@2.0.0-beta.10
23
+ - @nocobase/app-cli-client@0.1.0-beta.10
24
+
25
+ ## 0.1.0-beta.12
26
+
27
+ ### Minor Changes
28
+
29
+ - 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.
30
+
31
+ ### Patch Changes
32
+
33
+ - 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.
34
+ - 56251bc: Reuse issue context, previous summaries, comment deltas and initialization reads for matching parameters within a transaction, reducing repeated work during runner claims.
35
+ - 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.
36
+ - 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.
37
+ - 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.
38
+ - 8b9fff1: Read run status without a transaction when no new input needs delivery, while preserving cancellation, lease ownership checks, and input redelivery.
39
+ - 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.
40
+ - 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.
41
+ - 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.
42
+ - 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.
43
+ - 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.
44
+ - 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.
45
+ - e8f52c9: Keep variable and agent capability dialog actions reachable by limiting dialog height and scrolling long form content internally.
46
+ - Updated dependencies [846e75f]
47
+ - Updated dependencies [d34b6eb]
48
+ - Updated dependencies [98b3862]
49
+ - Updated dependencies [525ace4]
50
+ - Updated dependencies [1cdbaf4]
51
+ - Updated dependencies [5fe8773]
52
+ - Updated dependencies [b22d999]
53
+ - Updated dependencies [616561b]
54
+ - Updated dependencies [83e3609]
55
+ - Updated dependencies [00c5970]
56
+ - Updated dependencies [0037dd2]
57
+ - Updated dependencies [55fcee1]
58
+ - Updated dependencies [c0b7537]
59
+ - Updated dependencies [eb4b081]
60
+ - Updated dependencies [14b7aec]
61
+ - Updated dependencies [49f61b9]
62
+ - Updated dependencies [0037dd2]
63
+ - @nocobase/app-cli-client@0.1.0-beta.8
64
+ - @nocobase/app-cli@1.0.0-beta.23
65
+ - @nocobase/db@1.0.0-beta.21
66
+ - @nocobase/app-client@3.0.0-beta.2
67
+ - @nocobase/app-server@2.0.0-beta.8
68
+ - @nocobase/agent-protocol@0.1.0-beta.9
69
+ - @nocobase/app-plugin-file@1.0.0-beta.24
70
+ - @nocobase/app-plugin-authentication@2.0.0-beta.10
71
+ - @nocobase/app-plugin-authorization@1.0.0-beta.28
72
+ - @nocobase/authorization@1.0.0-beta.14
73
+ - @nocobase/i18n@1.0.0-beta.7
74
+ - @nocobase/markdown-mermaid@0.1.0-beta.2
75
+ - @nocobase/service-provider@0.0.2-beta.2
76
+
3
77
  ## 0.1.0-beta.11
4
78
 
5
79
  ### Minor Changes
package/README.md CHANGED
@@ -6,12 +6,16 @@ Agents for NocoBase applications: the agents discovered from the runners people
6
6
 
7
7
  Workspace cleanup supports optional application bindings for legacy subject keys (`SubjectWorkspaces.resolveKeys`) and trusted merged PR head evidence by repository (`SubjectWorkspaces.commits`). Ownership must be confirmed from saved runs; settlement never bypasses local tracked-change, commit or submodule checks. Runtime diagnostics require the existing machine-information permission and distinguish ended work, allowed cleanup and retained work, with the workspace report's timestamp. See [workspace cleanup integration](https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-agents/docs/workspace-cleanup.md) for the protocol, binding rules and compatibility behavior.
8
8
 
9
+ `GET /api/agents/runners` and `runtime list` return workspace totals only: disk capacity, directory count, unpushed count, collection time, disk measurement time and report interval. They omit `workspaceUsage.workspaces`. Open a runtime's details, call `GET /api/agents/runners/:runnerId`, or use `runtime get` to load directory diagnostics. Directory paths and cleanup evidence retain the existing machine-information permission checks; callers without that permission receive an empty directory array in the detail response. The list uses stored totals without normalizing directory entries (older reports without totals still derive them); database reads and permissions are unchanged.
10
+
9
11
  Nobody creates an agent. Each coding tool and model a runner reports signed in becomes one agent (`AgentService.syncRunner`, in the transaction of the runner's report), named from the model catalog that ships with the plugin (`shared/model-catalog.ts`: `normalizeModel` makes one model reported under two spellings one agent, and `agentNameOf` names it, such as "Claude · Opus 5.5" for Claude Code's `claude-opus-5-5`; a model the catalog does not know is named after its id), and starts **pending**. Someone who manages agents writes what it is good at, starting from the catalog's suggestion, picks its default reasoning effort and enables it; only **enabled** agents are offered work, and an agent may be disabled again. An application may also keep agents of its own (`ensureSystem`, `source` `system`), such as a project manager, whose name, instructions, business actions and models it writes itself. There are no online agents: the model services this plugin keeps serve the application's own model calls (embeddings, reranking, short texts), not agents.
10
12
 
11
13
  The plugin knows no domain of its own beyond conversations: what agents work on (subjects), the scopes variables are kept in, the business actions an agent may be given and those every discovered agent gets, and the report pages are the application's, which contributes them through the extension points below; the CLI's business commands are the application's own routes, each described with `cliRoute()`. The assembling application does it in `server/agents` and `client/agents`. With nothing contributed, the plugin still runs agents in conversations on runners, with its own commands.
12
14
 
13
15
  ## What it does
14
16
 
17
+ Registering the same runner name and hostname again revokes every active prior registration and its keys for the token's owner, leaving other owners' runners untouched. Registration uses the existing transaction without a dedicated lock or additional table. Simultaneous registrations may leave multiple active records until the next registration cleans them up. Existing tasks continue through the usual sweep and retry rules.
18
+
15
19
  Applications forward the `notice` event of type `run_secrets_not_allowed` to the run's actor and owner: a personal runner left the run because some of its variables are for team runners only. Its subject is the run, its parameters are `runId`, `agentId` and `variables` (in words), and its key is stable per run. `notice.cleared` settles it once a runner takes the run.
16
20
 
17
21
  Repository access providers that mint credentials in `prepare` implement the idempotent `discard(run, prepared)` hook to revoke them when the claim is skipped or rolled back. It runs outside the transaction and receives the same prepared value as `forRun`. The application owns code host credentials and their revocation API; providers without this hook cannot revoke externally issued credentials.
@@ -22,11 +26,11 @@ Repository access providers that mint credentials in `prepare` implement the ide
22
26
  - **Jobs** (`agJobs`, `agJobEvents`): only for the off-by-default runner build method (such as an application's `acme.builds.method: runner`): a `build` (check out a commit, run an administrator's command, upload its outputs), of kinds the application registers (`jobs.register(kind, { validate, prepare, onEvent, onDone })`, then `jobs.enqueue`, `get` and `watch`). A runner takes a job only when it reports `jobs.build`, someone turned on "Takes build jobs" (`acceptJobs`), it is shared or belongs to who started the job, and its policy lets it check out the job's repository. Jobs retry `runnerOffline`, `leaseExpired`, `startTimeout`, `checkoutFailed` and `policyRefused` while attempts remain, and open the stored variables they name through this plugin's variables at claim, audited as delivered.
23
27
  - **Distribution**: the application serves two products as standalone tarballs that bundle Node, one per platform, or as one universal tarball (`cli build --universal`) that runs on the machine's Node.js 24 or newer and is served to every platform without one of its own, answered with `universal: true` (`server/distribution`): its CLI (`agents.cli.name`, such as `acme`) and the runner, `nocobase-runner` (`RUNNER_PRODUCT`). `pnpm nocobase cli build` of `@nocobase/app-cli` packs the CLI the application's `package.json` declares under `nocobase.cli`, and `cli build --runner` the runner, each into a directory of its own, `storage/runners/dist/<channel>/<product>/`, with a `manifest.json` of every file's SHA-256 and size, so CI builds them as separate artifacts mounted into storage, or an application builds them into its own build output and points `agents.dist.dir` there, as NocoBase Studio does. The install script installs the CLI under `~/.local/share/<cli>`: by default the CLI alone, with a download token any signed-in person mints (`POST /api/agents/dist/downloadTokens`, `agDownloadTokens`: the CLI for one platform, three downloads within 30 minutes), as `curl -fsSL <server>/api/agents/dist/installScript | sh -s -- --token <token>`; "Add runtime" shows the same line with `--runner --server <server>` and a registration token, which also installs `nocobase-runner` under `~/.local/share/nocobase-runner`, runs `nocobase-runner register` and `nocobase-runner service install` (an application that serves no CLI still gets its runtime). A token of the other kind fails before anything is installed. A runner reports the product it runs as on registration and every heartbeat (`agRunners.product`), and the heartbeat answer carries an `upgrade` notice when the channel serves a newer version of that product for the runner's platform; a runner that reports none (one from before) is offered no update, and the Runtimes page says to install it again. A product the directory has no current version of may be named on npm instead (`agents.dist.npm`: its package and exact version, which a machine installs with the Node.js 24 or later it already has): the resolve route answers `{ kind: 'npm', product, version, package, channel }` to a caller that sends `accept=npm`, and a heartbeat answer carries `npmUpgrade` to a runner with the `npm` feature when it runs an older version. Everyone else is answered as before (404, no update), and a product the directory has is always served from it. The install script, `<cli> update` and the runner's self-update all ask with `accept=npm` (the runner declares `npm`) and install an npm answer with the machine's npm into the same layout as a tarball: `npm install --prefix <prefix>/versions/<version> --no-save --no-audit --no-fund --omit=optional <package>@<version>`, then a launcher at `versions/<version>/bin/<command>` that starts `node_modules/.bin/<command>` on `<prefix>/node` (`npmLauncherScript` of `@nocobase/app-cli-client/install`).
24
28
 
25
- - **Runs** (`agRuns`): one agent working on one subject, keyed by (agent, subject, thread) (`agentType` is `runner`; `online` only on runs earlier versions kept). New work joins the run already on it as the same person (`actorUserId`) while that run can still be told, else that person's queued one, else starts a new run: work woken by different people never shares a run, so it neither borrows another's identity nor waits for a runner that will not take it. Runs of one key are still claimed one at a time, whoever they work as. Queued runs are claimed by `priority` (lower first; 0 by default), then oldest first; a run given a `fireAt` is not claimed before that moment. Work merged into a queued run raises it to the more urgent priority and the earlier moment of the two. A claim hands a run to a runner that fits in one transaction: the agent's tool enabled, installed and signed in there with its model among those the runner reports for the tool and not marked unavailable there (`runsEntry` in `shared/runners.ts`; recorded on the run as `tool` and `model` and passed to the tool; a model the tool's account cannot use fails the run `modelUnavailable` and marks that tool and model unavailable on the runner, `Runner.unavailableModels`, until it reports the tool's models differently), the runner shared with the team or owned by the person who woke the agent, its features covering what the run needs (worked out from the payload: checkouts, directories, skills, secrets), a team runner when one of the variables the run gets is for team runners only (`teamRunnersOnly`), and a free slot within the agent's concurrency. The variables are checked and opened in the claim's transaction, so the runner receives what was checked; a personal runner left out for them notes on the run which variables asked for a team runner (`teamOnlyVariables`, cleared when the run is taken, requeued or given new input), and its wait is `secretsNotAllowed` with those variables. Before a run exists, `eligibility` (`runnersFor`, `canClaim`, `mayQueue`, `teamOnly`) answers by the same rules whether a runner would take an agent's work done as a person, with the scopes and features the caller names; `availability` and `GET /api/agents/available` use it for the caller. A working directory that is a directory on one runner pins the run to that runner, one run at a time per directory. The claim renders the brief (kept per run, `agRunBriefs`), mints a run token, and hands over the working directories, the merged variables, the skills and the CLI to install. Events, usage and branches are recorded as the runner reports them; completing requires every input to be handled. A runner that finds the subject's working directory held by another live run reports `workspaceBusy`: the run goes back to the queue, freeing its slot, and is tried again after 30 seconds, doubling up to two minutes; these waits do not count against the agent's attempts, and the run fails `workspaceBusy` only once it has waited six hours (`WORKSPACE_WAIT_LIMIT_MS`).
29
+ - **Runs** (`agRuns`): one agent working on one subject, keyed by (agent, subject, thread) (`agentType` is `runner`; `online` only on runs earlier versions kept). New work joins the run already on it as the same person (`actorUserId`) while that run can still be told, else that person's queued one, else starts a new run: work woken by different people never shares a run, so it neither borrows another's identity nor waits for a runner that will not take it. Runs of one key are still claimed one at a time, whoever they work as. Queued runs are claimed by `priority` (lower first; 0 by default), then oldest first; a run given a `fireAt` is not claimed before that moment. Work merged into a queued run raises it to the more urgent priority and the earlier moment of the two. A claim hands a run to a runner that fits in one transaction: the agent's tool enabled, installed and signed in there with its model among those the runner reports for the tool and not marked unavailable there (`runsEntry` in `shared/runners.ts`; recorded on the run as `tool` and `model` and passed to the tool; a model the tool's account cannot use fails the run `modelUnavailable` and marks that tool and model unavailable on the runner, `Runner.unavailableModels`, until it reports the tool's models differently), the runner shared with the team or owned by the person who woke the agent, its features covering what the run needs (worked out from the payload: checkouts, directories, skills, secrets), a team runner when one of the variables the run gets is for team runners only (`teamRunnersOnly`), and a free slot within the agent's concurrency. The variables are checked and opened in the claim's transaction, so the runner receives what was checked; a personal runner left out for them notes on the run which variables asked for a team runner (`teamOnlyVariables`, cleared when the run is taken, requeued or given new input), and its wait is `secretsNotAllowed` with those variables. Before a run exists, `eligibility` (`runnersFor`, `canClaim`, `mayQueue`, `teamOnly`) answers by the same rules whether a runner would take an agent's work done as a person, with the scopes and features the caller names; `availability` and `GET /api/agents/available` use it for the caller. A working directory that is a directory on one runner pins the run to that runner, one run at a time per directory. The claim renders the brief (kept per run, `agRunBriefs`), mints a run token, and hands over the working directories, the merged variables, the skills and the CLI to install. Events, usage and branches are recorded as the runner reports them; completing requires every input to be handled. A failed attempt is tried again after 30 seconds (`agents.runs.retryBaseDelayMs`), doubling up to ten minutes, except when the runner went away or lost its lease, which retries at once. A runner that finds the subject's working directory held by another live run reports `workspaceBusy`: the run goes back to the queue, freeing its slot, and is tried again after 30 seconds, doubling up to two minutes; these waits do not count against the agent's attempts, and the run fails `workspaceBusy` only once it has waited six hours (`WORKSPACE_WAIT_LIMIT_MS`).
26
30
  - **Run requests** (`agRunRequests`): work someone asked of an agent on a subject another person answers for, waiting for that person to confirm it (see "Work someone else causes" below).
27
31
  - **Workload** (`runs.workload({ subjectKind, limit? })`, `shared/runs.ts`): the open runs on one kind of subject for a board of work, without claiming anything. Held runs come with their runner, the newest input's trigger and their newest text, tool call, status or error (`lastActivity`); queued runs with their place in the claim order (among the runs claimable now, and among the agent's) and why they wait, by the claim's own rules in its order (`RUN_WAIT_REASONS`: the agent not enabled, `agentArchived`, delayed until a moment, no runner online, the agent's named runners offline, its tool not signed in anywhere, only other people's personal runners, missing features, only personal runners whose owner may not receive the run's variables, the same work already held, the agent's concurrency full, every fitting runner busy, preparation retrying, or next). A wait is a code and the values its words need (`params`), never text: the client words it with `formatRunWait(t, wait)` from `client/runs.ts`, in this plugin's namespace (`runWait.reasons.<reason>`), which an application may override in its locale file or replace with its own formatter. It also answers each agent's load (held, queued, its limit, whether a runner could take its work) and the runners' (online, holding work, slots and slots used). It reads a bounded number of tables, never one query per subject; the caller decides what of it a person may see.
28
32
  - **Redaction**: what runners report is stored redacted. The runner redacts first; the server redacts every run event (content, output, input and meta), summary and failure detail, and every job event and failure detail again before storing them, with the protocol's redactor (`createRedactor` of `@nocobase/agent-protocol`): the secrets the claim handed out (a run's variables and token, a job's opened variables, repository token and upload headers, remembered in memory for recent claims) and the common secret patterns, each replaced with `[REDACTED]` (`server/kernel/redaction.ts`). After a restart, or on another instance, the patterns and the runner's own redaction still apply.
29
- - **The sweep** (`server/runners/sweeper.ts`, the `RunnersSweep` schedule every 30 seconds on the application's jobs service, or an in-process timer without one) marks runners not heard from for 150 s offline, takes jobs back from silent runners and fails jobs far past their timeout, and takes runs back from runners that went away, lost their lease or never started, fails runs idle for twice their idle timeout, records unacknowledged cancellations, cancels queued runs of archived agents, and fails a queued run that waited longer than its subject allows (`queuedExpiryMs` on the subject's binding, counted from the run's last change or from its `fireAt`) as `queuedExpired`.
33
+ - **The sweep** (`server/runners/sweeper.ts`, the `RunnersSweep` schedule every 30 seconds, or `agents.runners.sweepIntervalMs`, on the application's jobs service, or an in-process timer without one) marks runners not heard from for 150 s offline, takes jobs back from silent runners and fails jobs far past their timeout, and takes runs back from runners that went away, lost their lease or never started, fails runs idle for twice their idle timeout, records unacknowledged cancellations, cancels queued runs of archived agents, and fails a queued run that waited longer than its subject allows (`queuedExpiryMs` on the subject's binding, counted from the run's last change or from its `fireAt`) as `queuedExpired`.
30
34
  - **Variables** (`agSecrets`): environment variables for the agent's process, every one a secret sealed with the application's secrets service (`secrets.keys`) and bound to its scope and name, set on an agent, a working directory (`workdir`) or a scope the application registers, merged for a run in the order the subject names its scopes < its working directories < the agent, delivered only to runners with the `secrets` feature: to whichever runner takes the run, a personal runner of anyone who may use the agent included, since sharing an agent shares the tokens it works with. A variable marked `teamRunnersOnly` (off by default; `PUT /api/agents/variables/...` with `teamRunnersOnly`, and without `value` to change only that) keeps runs and jobs that get it on team runners. Jobs check the exact variables referenced by their prepared spec, including repository credentials, before opening any value in the claim transaction; a personal runner skips such a job without counting a preparation failure, leaving it queued for a team runner and continuing to other jobs. Values are write-only; reading them back and every delivery are audited (`agSecretAudits`).
31
35
  - **Skills** (`agSkills`, `agSkillVersions`, `agSkillAttachments`): a library of skills in the open Agent Skills format (https://agentskills.io/specification): a directory of `SKILL.md` and supporting files, conventionally under `scripts/`, `references/` and `assets/`. Only the front matter of `SKILL.md` names and describes a skill: `name` (1–64 lower-case letters, digits and single hyphens) is its slug and directory, so a save that changes it renames the skill, and `description` (1–1024 characters) is required; `license`, `compatibility` (at most 500 characters), `metadata` (string values) and `allowed-tools` are checked when present, and other keys are kept. Every create, save, restore and import is checked against these rules in the browser as it is typed and on the server (`shared/skill-markdown.ts`), which answers 400 with each problem's `field` and `reason` in `metadata.problems` (`taken` for a name another skill has; `mismatch` for an archive whose folder is named otherwise). Files under `scripts/` or marked executable are scripts (`Skill.scripts`): runners may run them. Every save is a new version that runs get at once, with older versions to compare and restore. Skills are attached globally, or as defaults to a working directory or a registered scope. A skill's revision is its current version: a save or a restore names the version it was made against (`expectedRevision`) and is refused with 409 `REVISION_CONFLICT` when another save came first. A runner fetches a run's skills from `GET /api/agents/runners/runs/:runId/skills/:slug` and places them where the run's coding tool finds them.
32
36
  - **Conversations** (`agConversations`, `agConversationMessages`): a person chatting with an enabled agent, from the chat panel. Only the owner reads a conversation, administrators included; its runs are hidden from everyone they do not involve. Each message the owner sends wakes the agent on the `conversation` subject as the owner, or joins the run already working on it; every text the agent writes becomes a message. A run resumes the session its runner kept; on another runner, or after the conversation switched agents, it starts fresh with the last 20 messages and the previous run's summary. When the agent is disabled or gone, no longer available to the owner, has no online runner that would take the owner's work (`noRunner`), or only other people's personal runners have it (`othersPersonal`), messages are still saved and the conversation reports why; the owner may switch it to the system default chat agent and back (`fallbackFrom` names its own agent meanwhile). Availability uses claim eligibility, including required features and variables restricted to team runners. The owner answers for their own conversation, so none of this asks anyone to confirm. `chatAgents` lists the enabled agents, each with its availability for the caller and whether only personal runners have it (`personalOnly`). Conversations an earlier version answered with an online agent keep `mode` `online`, and their notices (`switchedToOnline`, `onlineFallbackUnavailable`, consultation cards) still render; nothing answers them any more. `shared/conversations` is the contract (HTTP API under `/api/agents/conversations` and `/api/agents/chat*`, page context and its limits, the per-user realtime topic `agents:conversations`); `ConversationService` is the interface other code uses, so the storage can move to a shared platform layer later.
@@ -171,6 +175,8 @@ Runners poll together, so anything a poll does per queued candidate is multiplie
171
175
 
172
176
  ## The CLI's commands
173
177
 
178
+ Native agents use the application's CLI for every operation on the management instance hosting their task, identified by the server URL in the CLI's `--help`. Its commands remain bounded by the requesting person's identity and permissions; a refusal must never be bypassed through a browser, HTTP, another identity or a test environment. Within the task's authorized scope, local builds and tests are allowed, as are Playwright, browser and test HTTP requests to an explicitly authorized PR preview or independent test instance identified separately from management, even if both products share a name. Establish the target's host, port, application base path and instance ownership from the task and existing preview information; a different URL alone does not establish independence. Use only the test instance's authorized native authentication, never management run credentials or credential files, and clarify an uncertain target before accessing it outside the CLI. Workspace and tool restrictions still apply. Online agents retain their sandboxed shell and skill tools; this native-agent boundary does not add browser or real build capabilities to their sandbox.
179
+
174
180
  The CLI's commands are the application's API routes: `GET /api/cli/manifest` (`@nocobase/app-server/router`) answers every command the API document describes for the caller, named and shaped by each route's `x-cli` extension, and this plugin tells it who calls (a run by its run token, a person by the application's authentication) and which business actions each holds (`gate.allowed`). A run token is also a credential of the application's authentication (`server/cli/run-credential.ts`): a request carrying it acts for the person who woke the agent, as a scoped session the routes accept only where their security lists `runToken`; the application bounds it by its scope (for example, `server/agents/run-principal.ts`). A route lists `runToken` and gives its `x-cli` an `action` for the commands a run may use.
175
181
 
176
182
  The plugin's own commands are its routes. A run uses `run self`, `run context` and `conversation title set` (`GET /api/agents/runs/current`, `/current/context`, `PATCH /current/conversation`, action `agents.runs/self`), and a run or a person `agent list` (`GET /api/agents/available`, action `agents.agents/view`: the agents the caller may give work to, with what each is good at and whether it can take work now). The rest are a person's: `agent list-all|get|update|history|brief`, `agent action list`, `skill …` (with `skill version …` and `skill attachment get|set`), `variable list|set|delete|reveal` and `variable audit list` (positional scope kind and scope), `runtime list|get|update|revoke|delete|work` and `runtime token create`, `model list|check|usage` and `model price get|set`, `service list|create|update|delete|discover|check`, `conversation list|get|create|update|stop|fallback|restore`, `conversation message list|send`, `conversation preferences|settings get|update`, and `run list|get|events|brief|cancel|retry|usage`, `run workspace reset` and `run request list|get|confirm|reject|withdraw|run-as-me`. The runner protocol, the downloads and the browser's helpers (the vocabulary, the people picker, every agent's name, the chat agent picker, starting a conversation from a page, marking one read) stay off the command line. The application's routes and custom commands are the rest.
@@ -242,6 +248,8 @@ A subject assembly may return `inputs` to select the effective claim inputs. Use
242
248
 
243
249
  ## Team default skills
244
250
 
251
+ Managers can change global attachment from the skill editor, independently of saving a content version. `SkillSettingsContext` from `client/config` accepts an optional host component with `skillId` for application-owned defaults; `SkillMountToggle` supplies the same immediate-save list membership control. Applications can provide `ScopeKind.describe(scopeIds, userId, keyScope)` to resolve visible names and internal links in a batch on skill detail responses, preserving the credential's action and object limits when a key scope is supplied. Omitted or invisible targets retain a neutral placeholder; this callback is never used when resolving run skills.
252
+
245
253
  Attach skills to `global default` to include them in every new run. The fixed scope ID is `default`; other IDs are refused. Global reads require `agents.agents` read or manage, and writes require manage. Use `nb-studio skill attachment get global default` and `nb-studio skill attachment set global default --skills <id>,<id>`; pass a JSON file containing `{ "skillIds": [] }` with `--file` to clear defaults. Registered application scopes and working directories retain their own access policies.
246
254
 
247
255
  Runs resolve skills in global → application scopes → workdir order, with the later target winning a shared slug. Resolution reads attachment and current-version metadata with one joined query, without reading file bodies. Missing current versions still fail. Effective skills feed the existing fingerprint and workspace preparation; clearing global attachments affects later claims. Agent skill attachments are no longer accepted, read or shown; existing rows remain stored. Agent variables and CLI-packaged skills retain their existing behavior. The global name is reserved for skills and is unavailable to variables or application scope registration.
@@ -255,3 +263,15 @@ Each batch selects up to 200 runs with events or briefs, ordered by finish time
255
263
  Multi-instance deployments must set `jobs.default: redis` with a shared Redis connection and namespace so the existing jobs scheduler claims each firing on one instance. Memory jobs and the in-process timer fallback when no jobs service is installed serve single-instance deployments. No additional distributed lock or exactly-once ledger is introduced.
256
264
 
257
265
  Studio publishes `agents.runs.retentionDays` through its existing public configuration. The process view displays a retention notice only for an expired terminal run with a complete empty transcript and no brief. This uses the current retention rule, rather than a historical cleanup marker; changing or disabling the policy changes the inferred notice. Run, event and brief API contracts are unchanged.
266
+
267
+ ## Runtime quotas and detail tabs
268
+
269
+ Runtime quota marks share `unavailableModels` with model availability marks and use internal `quotaRevision` conditional writes. Known reset times restore eligibility automatically and cannot be cleared manually. Unknown limits remain until the owner or a runtime administrator clears the selected mark. Expiry and clearing never revive terminal runs or extend queue deadlines.
270
+
271
+ Usage snapshots are saved when usage changes by at least five percentage points, crosses the near-limit threshold, or changes window state. Only mark changes broadcast `runner.changed`. Quota reports use the existing events/fail transaction; ordinary heartbeats and claims add no queries, writes or locks. Final failures read only accepted quota-event metadata for deduplication, retaining the complete failure snapshot. New event sequences and new runs can mark exhaustion again.
272
+
273
+ The runtime list omits model catalogs, policy, variables, quota details and load; `takes` contains at most three entries with `takesCount`. Runtime get returns Overview and workspace totals without directory rows. Its recent-run count uses a bounded ten-row read. Workspace sizes and category counts reuse the directory snapshot already read. `GET /agents/runners/:runnerId/workspaces` accepts `status`, `page` and `pageSize` and returns directory rows in `data`, with totals and paging in `meta`. Recent runs load from `/runs` only when that tab opens.
274
+
275
+ `POST /agents/runners/:runnerId/quota/clear` takes structured `tool`, `scope`, `target` and `window` fields, without a client revision. The server rereads state transactionally and removes only that target, idempotently. A known reset returns `409 CONFLICT`; a concurrent conditional-write race returns `409 REVISION_CONFLICT`. Only revision races are retryable. Clear checks ownership or `agents.runners/manage` independently of edit permission. Owner notices include the triggering run and issue identifiers; `notice.cleared` names the selected quota key so applications settle only that notice group.
276
+
277
+ Applications can call `useAgentOption(id)` from the client kit for a system executor's viewer-scoped availability, rather than listing only discovered runner agents. The shared cache refreshes at quota reset or runtime changes.
@@ -3,13 +3,15 @@
3
3
  * unwrapped from `{ data }`. Failures throw `ApiClientError` (`status`, `reason`, `domain`). Runners and registration
4
4
  * tokens go through the runners' API (`RunnersApi`, `/api/agents/runners`).
5
5
  */
6
+ import type { QuotaMarkTarget } from '../../shared/quota.js';
7
+ import type { RunnerWorkspacePage } from '../../shared/runners.js';
6
8
  import type { ApiClient } from '@nocobase/app-client';
7
9
  import type { RunStatus } from '@nocobase/agent-protocol';
8
10
  import type { Agent, AgentActionOption, AgentChange, AgentName, AgentPatch, AgentView, UserRef } from '../../shared/agents.js';
9
11
  import type { BriefPreview, RunBrief } from '../../shared/briefs.js';
10
12
  import type { PricesAnswer, PricesInput } from '../../shared/reports.js';
11
13
  import type { CreateModelServiceRequest, ModelCatalog, ModelCheck, ModelConnectionCheckRequest, ModelConnectionRequest, ModelKind, ModelRef, ModelServiceView, ProviderModels, UpdateModelServiceRequest } from '../../shared/models.js';
12
- import type { RegistrationToken, RegistrationTokenInput, Runner, RunnerPatch, RunnerRecentRun, RunnerSummary } from '../../shared/runners.js';
14
+ import type { RegistrationToken, RegistrationTokenInput, Runner, RunnerPatch, RunnerRecentRun, RunnerSummary, RunnerListItem } from '../../shared/runners.js';
13
15
  import type { Run, RunDetail, RunEventPage } from '../../shared/runs.js';
14
16
  import type { Skill, SkillDetail, SkillImport, SkillInput, SkillSave, SkillUpload, SkillVersion, SkillVersionDetail, SkillView } from '../../shared/skills.js';
15
17
  import type { Variable, VariableAudit, VariableScope, VariableValue } from '../../shared/variables.js';
@@ -66,12 +68,15 @@ export declare class AgentsApi {
66
68
  agentHistory(agentId: string, afterRevision?: number): Promise<AgentChange[]>;
67
69
  /** What a run of the agent would be sent now in `scenario` (a subject kind), on a made-up subject; the first by default. */
68
70
  briefPreview(agentId: string, scenario: string | null): Promise<BriefPreview>;
69
- runners(): Promise<RunnerSummary[]>;
71
+ runners(): Promise<RunnerListItem[]>;
72
+ clearQuota(runnerId: string, target: QuotaMarkTarget): Promise<void>;
73
+ runnerWorkspaces(runnerId: string, status?: string, page?: number): Promise<RunnerWorkspacePage>;
74
+ runner(runnerId: string): Promise<RunnerSummary>;
70
75
  /** A runner's latest runs, newest first. */
71
76
  runnerRuns(runnerId: string): Promise<RunnerRecentRun[]>;
72
77
  createRegistrationToken(input: RegistrationTokenInput): Promise<RegistrationToken>;
73
- updateRunner(runnerId: string, patch: RunnerPatch): Promise<Runner>;
74
- revokeRunner(runnerId: string): Promise<Runner>;
78
+ updateRunner(runnerId: string, patch: RunnerPatch): Promise<Omit<Runner, 'quotaRevision'>>;
79
+ revokeRunner(runnerId: string): Promise<Omit<Runner, 'quotaRevision'>>;
75
80
  deleteRunner(runnerId: string): Promise<void>;
76
81
  /** What runs used and cost (`USAGE_ROUTE`); needs the usage page's grant. */
77
82
  usage(query: UsageQuery): Promise<UsageReport>;
@@ -1 +1 @@
1
- {"version":3,"file":"client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MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIjD,0FAA0F;IACnF,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOrE,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAI7C,wCAAwC;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;YAI9B,IAAI;IAIlB,OAAO,CAAC,IAAI;YAIE,IAAI;YAQJ,GAAG;IAIjB,OAAO,CAAC,IAAI;YAcE,IAAI;CAYnB"}
@@ -91,6 +91,15 @@ export class AgentsApi {
91
91
  runners() {
92
92
  return this.runnersApi.runners();
93
93
  }
94
+ clearQuota(runnerId, target) {
95
+ return this.runnersApi.clearQuota(runnerId, target);
96
+ }
97
+ runnerWorkspaces(runnerId, status = 'all', page = 1) {
98
+ return this.runnersApi.runnerWorkspaces(runnerId, status, page);
99
+ }
100
+ runner(runnerId) {
101
+ return this.runnersApi.runner(runnerId);
102
+ }
94
103
  /** A runner's latest runs, newest first. */
95
104
  runnerRuns(runnerId) {
96
105
  return this.runnersApi.runnerRuns(runnerId);
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../client/api/client.ts"],"names":[],"mappings":"AA+DA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,MAAM,IAAI,GAAG,QAAQ,CAAC;AACtB,MAAM,EAAE,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;AAChE,MAAM,MAAM,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAiB3E,MAAM,OAAO,SAAS;IACH,GAAG,CAAY;IAChC,+DAA+D;IAC9C,UAAU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,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;SACxC,CAAC,CAAC;QACH,OAAO,MAAM,EAAE,IAAS,CAAC;IAC3B,CAAC;CACF"}
@@ -1,6 +1,9 @@
1
1
  import type { UsageQuery } from '../../shared/reports.js';
2
2
  /** Query keys of this plugin's cache, all under `['agents']`. */
3
3
  export declare const agentsKeys: {
4
+ readonly available: readonly ['agents', 'available'];
5
+ readonly chatAgents: readonly ['agents', 'chat', 'agents'];
6
+ readonly runner: (id: string) => readonly ['agents', 'runners', 'detail', string];
4
7
  readonly all: readonly ['agents'];
5
8
  readonly agents: readonly ['agents', 'agents'];
6
9
  readonly agentNames: readonly ['agents', 'agent-names'];
@@ -1 +1 @@
1
- {"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../client/api/keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,iEAAiE;AACjE,eAAO,MAAM,UAAU,EAAE;IACvB,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC/C,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IACxD,QAAQ,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1E,QAAQ,CAAC,YAAY,EAAE,CACrB,OAAO,EAAE,MAAM,KACZ,SAAS,CAAC,QAAQ,EAAE,eAAe,EAAE,MAAM,CAAC,CAAC;IAClD,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC7C,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,QA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ACZ,SAAS,CAAC,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACzD,QAAQ,CAAC,IAAI,EAAE,CACb,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,KACd,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;IACpE,QAAQ,CAAC,QAAQ,EAAE,CACjB,KAAK,EAAE,MAAM,KACV,SAAS,CAAC,QAAQ,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;IAC9C,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;IACpE,QAAQ,CAAC,YAAY,EAAE,CACrB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GAAG,IAAI,KACpB,SAAS,CAAC,QAAQ,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;CAyClE,CAAC"}
@@ -1,5 +1,8 @@
1
1
  /** Query keys of this plugin's cache, all under `['agents']`. */
2
2
  export const agentsKeys = {
3
+ available: ['agents', 'available'],
4
+ chatAgents: ['agents', 'chat', 'agents'],
5
+ runner: (id) => ['agents', 'runners', 'detail', id],
3
6
  all: ['agents'],
4
7
  agents: ['agents', 'agents'],
5
8
  agentNames: ['agents', 'agent-names'],
@@ -1 +1 @@
1
- {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../client/api/keys.ts"],"names":[],"mappings":"AAEA,iEAAiE;AACjE,MAAM,CAAC,MAAM,UAAU,GAyDnB;IACF,GAAG,EAAE,CAAC,QAAQ,CAAC;IACf,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,UAAU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E,QAAQ,CAAC;IAC5B,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC;IAChD,aAAa,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,gBAAgB,EAAE,OAAO,CAAC;IACjE,WAAW,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,CAAC;IAC3E,IAAI,EAAE,CAAC,WAAW,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,CAAC;IAC5E,GAAG,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC;IACxC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,CAAC;IACnD,GAAG,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC;IACxC,YAAY,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,CAAC;QACnC,QAAQ;QACR,eAAe;QACf,OAAO;QACP,QAAQ;KACT;CACF,CAAC"}
@@ -2,20 +2,24 @@
2
2
  * The browser API of `/api/agents/runners`, typed with the `shared/` view models: one method per endpoint, answers
3
3
  * unwrapped from `{ data }`. Failures throw `ApiClientError` (`status`, `reason`, `domain`).
4
4
  */
5
+ import type { QuotaMarkTarget } from '../../shared/quota.js';
6
+ import type { RunnerWorkspacePage } from '../../shared/runners.js';
5
7
  import type { ApiClient } from '@nocobase/app-client';
6
- import type { RegistrationToken, RegistrationTokenInput, Runner, RunnerHeldItem, RunnerPatch, RunnerRecentRun, RunnerSummary } from '../../shared/runners.js';
8
+ import type { RegistrationToken, RegistrationTokenInput, Runner, RunnerHeldItem, RunnerPatch, RunnerRecentRun, RunnerSummary, RunnerListItem } from '../../shared/runners.js';
7
9
  export declare class RunnersApi {
8
10
  private readonly api;
9
11
  constructor(api: ApiClient);
10
- runners(): Promise<RunnerSummary[]>;
12
+ runners(): Promise<RunnerListItem[]>;
13
+ clearQuota(runnerId: string, target: QuotaMarkTarget): Promise<void>;
14
+ runnerWorkspaces(runnerId: string, status?: string, page?: number): Promise<RunnerWorkspacePage>;
11
15
  runner(runnerId: string): Promise<RunnerSummary>;
12
16
  /** What the runner holds now: runs, then jobs. */
13
17
  runnerWork(runnerId: string): Promise<RunnerHeldItem[]>;
14
18
  /** Its latest runs, newest first. */
15
19
  runnerRuns(runnerId: string): Promise<RunnerRecentRun[]>;
16
20
  createRegistrationToken(input: RegistrationTokenInput): Promise<RegistrationToken>;
17
- updateRunner(runnerId: string, patch: RunnerPatch): Promise<Runner>;
18
- revokeRunner(runnerId: string): Promise<Runner>;
21
+ updateRunner(runnerId: string, patch: RunnerPatch): Promise<Omit<Runner, 'quotaRevision'>>;
22
+ revokeRunner(runnerId: string): Promise<Omit<Runner, 'quotaRevision'>>;
19
23
  deleteRunner(runnerId: string): Promise<void>;
20
24
  private list;
21
25
  private get;
@@ -1 +1 @@
1
- {"version":3,"file":"runners.d.ts","sourceRoot":"","sources":["../../../client/api/runners.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACtB,MAAM,EACN,cAAc,EACd,WAAW,EACX,eAAe,EACf,aAAa,EACd,MAAM,yBAAyB,CAAC;AASjC,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAY;gBAEb,GAAG,EAAE,SAAS;IAM1B,OAAO,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;IAInC,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IA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I,GACP,OAAO,CAAC,mBAAmB,CAAC;IAOxB,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAIvD,kDAAkD;IAC3C,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAI9D,qCAAqC;IAC9B,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAIxD,uBAAuB,CAC5B,KAAK,EAAE,sBAAsB,GAC5B,OAAO,CAAC,iBAAiB,CAAC;IAItB,YAAY,CACjB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,WAAW,GACjB,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAIlC,YAAY,CACjB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAIlC,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YAItC,IAAI;YAIJ,GAAG;YAeH,IAAI;CAYnB"}
@@ -10,6 +10,15 @@ export class RunnersApi {
10
10
  runners() {
11
11
  return this.list('');
12
12
  }
13
+ clearQuota(runnerId, target) {
14
+ return this.send(`${id(runnerId)}/quota/clear`, 'POST', target);
15
+ }
16
+ runnerWorkspaces(runnerId, status = 'all', page = 1) {
17
+ return this.api.request({
18
+ path: pathOf(`${id(runnerId)}/workspaces`),
19
+ query: { status, page, pageSize: 50 },
20
+ });
21
+ }
13
22
  runner(runnerId) {
14
23
  return this.get(id(runnerId));
15
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"runners.js","sourceRoot":"","sources":["../../../client/api/runners.ts"],"names":[],"mappings":"AAmBA,MAAM,IAAI,GAAG,gBAAgB,CAAC;AAC9B,MAAM,EAAE,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;AAChE,MAAM,MA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AAS,CAAC,CAAC;CAU1D,CAAC"}
@@ -1,10 +1,11 @@
1
+ import { agentsKeys } from '../api/keys.js';
1
2
  /** Query keys of the chat, all under `['agents', 'chat']`, so invalidating the prefix refreshes every chat view. */
2
3
  export const chatKeys = {
3
4
  all: ['agents', 'chat'],
4
5
  lists: ['agents', 'chat', 'conversations'],
5
6
  list: (query) => ['agents', 'chat', 'conversations', query],
6
7
  conversation: (id) => ['agents', 'chat', 'conversation', id],
7
- agents: ['agents', 'chat', 'agents'],
8
+ agents: agentsKeys.chatAgents,
8
9
  preferences: ['agents', 'chat', 'preferences'],
9
10
  settings: ['agents', 'chat', 'settings'],
10
11
  presets: ['agents', 'chat', 'presets'],
@@ -1 +1 @@
1
- {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../client/chat/keys.ts"],"names":[],"mappings":"AAEA,oHAAoH;AACpH,MAAM,CAAC,MAAM,QAAQ,GAajB;IACF,GAAG,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,eAAe,CAAC;IAC1C,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,KAAK,CAAC;IAC3D,YAAY,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE,CAAC;IAC5D,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC;IACpC,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,CAAC;IAC9C,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC;IACxC,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC;CACvC,CAAC"}
1
+ {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../client/chat/keys.ts"],"names":[],"mappings":"AAEA,OAAO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,iBAAiB,CAAC,kBAAkB,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACtE,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC,kBAAkB,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1E,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC,kBAAkB,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACzE,QAAQ,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,wBAAgB,sBAAsB,IAAI,mBAAmB,CAmH5D"}
@@ -15,6 +15,8 @@ import { useCallback, useEffect, useMemo, useReducer, useRef, useState, } from '
15
15
  import { ACCESS_NAMESPACE } from '../../shared/access.js';
16
16
  import { CONVERSATIONS_TOPIC, MESSAGE_PAGE_DEFAULT, } from '../../shared/conversations.js';
17
17
  import { useRealtimeTopic } from '../hooks/use-realtime-topic.js';
18
+ import { useQuotaExpiry } from '../hooks/use-quota-expiry.js';
19
+ import { RUNNERS_TOPIC } from '../../shared/realtime.js';
18
20
  import { errorText } from '../hooks/use-notify.js';
19
21
  import { agentsQueryClient } from '../query.js';
20
22
  import { ChatApi } from './api.js';
@@ -44,12 +46,14 @@ export function isChatPayload(payload) {
44
46
  /** The agents the viewer may chat with, with whether each can answer now. */
45
47
  export function useChatAgents(enabled = true) {
46
48
  const api = useChatApi();
47
- return useQuery({
49
+ const result = useQuery({
48
50
  queryKey: chatKeys.agents,
49
51
  queryFn: () => api.agents(),
50
52
  enabled,
51
53
  staleTime: 15_000,
52
54
  }, agentsQueryClient());
55
+ useQuotaExpiry(result.data ?? []);
56
+ return result;
53
57
  }
54
58
  /** One conversation; polled while its run is open. */
55
59
  export function useConversation(conversationId) {
@@ -83,6 +87,9 @@ export function useConversationList(query) {
83
87
  */
84
88
  export function useChatRealtime(enabled) {
85
89
  const queryClient = agentsQueryClient();
90
+ useRealtimeTopic(enabled ? RUNNERS_TOPIC : null, () => {
91
+ void queryClient.invalidateQueries({ queryKey: chatKeys.agents });
92
+ });
86
93
  useRealtimeTopic(enabled ? CONVERSATIONS_TOPIC : null, (payload) => {
87
94
  if (payload === undefined) {
88
95
  void queryClient.invalidateQueries({ queryKey: chatKeys.all });