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

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 (649) hide show
  1. package/CHANGELOG.md +398 -0
  2. package/README.md +129 -67
  3. package/dist/client/api/client.d.ts +25 -17
  4. package/dist/client/api/client.d.ts.map +1 -1
  5. package/dist/client/api/client.js +29 -27
  6. package/dist/client/api/client.js.map +1 -1
  7. package/dist/client/api/keys.d.ts +1 -1
  8. package/dist/client/api/keys.d.ts.map +1 -1
  9. package/dist/client/api/keys.js +1 -1
  10. package/dist/client/api/keys.js.map +1 -1
  11. package/dist/client/chat/api.d.ts +2 -7
  12. package/dist/client/chat/api.d.ts.map +1 -1
  13. package/dist/client/chat/api.js +0 -7
  14. package/dist/client/chat/api.js.map +1 -1
  15. package/dist/client/chat/consultation-identity.d.ts +7 -0
  16. package/dist/client/chat/consultation-identity.d.ts.map +1 -0
  17. package/dist/client/chat/consultation-identity.js +39 -0
  18. package/dist/client/chat/consultation-identity.js.map +1 -0
  19. package/dist/client/chat/message-model.d.ts +4 -2
  20. package/dist/client/chat/message-model.d.ts.map +1 -1
  21. package/dist/client/chat/message-model.js +28 -3
  22. package/dist/client/chat/message-model.js.map +1 -1
  23. package/dist/client/chat/use-chat.d.ts +2 -10
  24. package/dist/client/chat/use-chat.d.ts.map +1 -1
  25. package/dist/client/chat/use-chat.js +3 -10
  26. package/dist/client/chat/use-chat.js.map +1 -1
  27. package/dist/client/chat.d.ts +4 -1
  28. package/dist/client/chat.d.ts.map +1 -1
  29. package/dist/client/chat.js +3 -0
  30. package/dist/client/chat.js.map +1 -1
  31. package/dist/client/components/agent-picker.d.ts +6 -23
  32. package/dist/client/components/agent-picker.d.ts.map +1 -1
  33. package/dist/client/components/agent-picker.js +19 -39
  34. package/dist/client/components/agent-picker.js.map +1 -1
  35. package/dist/client/components/variables/variable-dialogs.d.ts +6 -1
  36. package/dist/client/components/variables/variable-dialogs.d.ts.map +1 -1
  37. package/dist/client/components/variables/variable-dialogs.js +27 -11
  38. package/dist/client/components/variables/variable-dialogs.js.map +1 -1
  39. package/dist/client/components/variables/variables-panel.d.ts.map +1 -1
  40. package/dist/client/components/variables/variables-panel.js +9 -2
  41. package/dist/client/components/variables/variables-panel.js.map +1 -1
  42. package/dist/client/hooks/use-agent-picker-labels.d.ts.map +1 -1
  43. package/dist/client/hooks/use-agent-picker-labels.js +3 -12
  44. package/dist/client/hooks/use-agent-picker-labels.js.map +1 -1
  45. package/dist/client/kit.d.ts +9 -12
  46. package/dist/client/kit.d.ts.map +1 -1
  47. package/dist/client/kit.js +12 -14
  48. package/dist/client/kit.js.map +1 -1
  49. package/dist/client/lib/agents.d.ts +5 -13
  50. package/dist/client/lib/agents.d.ts.map +1 -1
  51. package/dist/client/lib/agents.js +17 -32
  52. package/dist/client/lib/agents.js.map +1 -1
  53. package/dist/client/lib/install.js +1 -1
  54. package/dist/client/locales/chat.en-US.d.ts +9 -22
  55. package/dist/client/locales/chat.en-US.d.ts.map +1 -1
  56. package/dist/client/locales/chat.en-US.js +13 -25
  57. package/dist/client/locales/chat.en-US.js.map +1 -1
  58. package/dist/client/locales/chat.zh-CN.d.ts.map +1 -1
  59. package/dist/client/locales/chat.zh-CN.js +10 -22
  60. package/dist/client/locales/chat.zh-CN.js.map +1 -1
  61. package/dist/client/locales/en-US.d.ts +101 -219
  62. package/dist/client/locales/en-US.d.ts.map +1 -1
  63. package/dist/client/locales/en-US.js +106 -219
  64. package/dist/client/locales/en-US.js.map +1 -1
  65. package/dist/client/locales/runWait.en-US.d.ts +38 -0
  66. package/dist/client/locales/runWait.en-US.d.ts.map +1 -0
  67. package/dist/client/locales/runWait.en-US.js +37 -0
  68. package/dist/client/locales/runWait.en-US.js.map +1 -0
  69. package/dist/client/locales/runWait.zh-CN.d.ts +5 -0
  70. package/dist/client/locales/runWait.zh-CN.d.ts.map +1 -0
  71. package/dist/client/locales/runWait.zh-CN.js +32 -0
  72. package/dist/client/locales/runWait.zh-CN.js.map +1 -0
  73. package/dist/client/locales/runtimes.en-US.d.ts +54 -0
  74. package/dist/client/locales/runtimes.en-US.d.ts.map +1 -1
  75. package/dist/client/locales/runtimes.en-US.js +57 -3
  76. package/dist/client/locales/runtimes.en-US.js.map +1 -1
  77. package/dist/client/locales/runtimes.zh-CN.d.ts.map +1 -1
  78. package/dist/client/locales/runtimes.zh-CN.js +57 -3
  79. package/dist/client/locales/runtimes.zh-CN.js.map +1 -1
  80. package/dist/client/locales/skills.en-US.d.ts +1 -0
  81. package/dist/client/locales/skills.en-US.d.ts.map +1 -1
  82. package/dist/client/locales/skills.en-US.js +2 -1
  83. package/dist/client/locales/skills.en-US.js.map +1 -1
  84. package/dist/client/locales/skills.zh-CN.d.ts.map +1 -1
  85. package/dist/client/locales/skills.zh-CN.js +2 -1
  86. package/dist/client/locales/skills.zh-CN.js.map +1 -1
  87. package/dist/client/locales/zh-CN.d.ts.map +1 -1
  88. package/dist/client/locales/zh-CN.js +108 -221
  89. package/dist/client/locales/zh-CN.js.map +1 -1
  90. package/dist/client/online/services.d.ts.map +1 -1
  91. package/dist/client/online/services.js +5 -6
  92. package/dist/client/online/services.js.map +1 -1
  93. package/dist/client/pages/agents/agent-dialog.d.ts +9 -0
  94. package/dist/client/pages/agents/agent-dialog.d.ts.map +1 -0
  95. package/dist/client/pages/agents/agent-dialog.js +106 -0
  96. package/dist/client/pages/agents/agent-dialog.js.map +1 -0
  97. package/dist/client/pages/agents/agent-state.d.ts +11 -0
  98. package/dist/client/pages/agents/agent-state.d.ts.map +1 -0
  99. package/dist/client/pages/agents/agent-state.js +28 -0
  100. package/dist/client/pages/agents/agent-state.js.map +1 -0
  101. package/dist/client/pages/agents/index.d.ts +1 -1
  102. package/dist/client/pages/agents/index.d.ts.map +1 -1
  103. package/dist/client/pages/agents/index.js +6 -100
  104. package/dist/client/pages/agents/index.js.map +1 -1
  105. package/dist/client/pages/agents/runner-agents.d.ts +3 -0
  106. package/dist/client/pages/agents/runner-agents.d.ts.map +1 -0
  107. package/dist/client/pages/agents/runner-agents.js +172 -0
  108. package/dist/client/pages/agents/runner-agents.js.map +1 -0
  109. package/dist/client/pages/runtimes/connect.js +1 -1
  110. package/dist/client/pages/runtimes/connect.js.map +1 -1
  111. package/dist/client/pages/runtimes/index.d.ts.map +1 -1
  112. package/dist/client/pages/runtimes/index.js +3 -2
  113. package/dist/client/pages/runtimes/index.js.map +1 -1
  114. package/dist/client/pages/runtimes/runner-cells.d.ts +1 -1
  115. package/dist/client/pages/runtimes/runner-cells.d.ts.map +1 -1
  116. package/dist/client/pages/runtimes/runner-cells.js +4 -1
  117. package/dist/client/pages/runtimes/runner-cells.js.map +1 -1
  118. package/dist/client/pages/runtimes/runner-sheet.d.ts.map +1 -1
  119. package/dist/client/pages/runtimes/runner-sheet.js +12 -3
  120. package/dist/client/pages/runtimes/runner-sheet.js.map +1 -1
  121. package/dist/client/pages/runtimes/workspace-diagnostics.d.ts +9 -0
  122. package/dist/client/pages/runtimes/workspace-diagnostics.d.ts.map +1 -0
  123. package/dist/client/pages/runtimes/workspace-diagnostics.js +68 -0
  124. package/dist/client/pages/runtimes/workspace-diagnostics.js.map +1 -0
  125. package/dist/client/pages/skills/detail/index.d.ts.map +1 -1
  126. package/dist/client/pages/skills/detail/index.js +7 -10
  127. package/dist/client/pages/skills/detail/index.js.map +1 -1
  128. package/dist/client/pages/skills/index.d.ts.map +1 -1
  129. package/dist/client/pages/skills/index.js +2 -2
  130. package/dist/client/pages/skills/index.js.map +1 -1
  131. package/dist/client/pages/usage/index.js +2 -2
  132. package/dist/client/pages/usage/index.js.map +1 -1
  133. package/dist/client/profile/default-agent.d.ts.map +1 -1
  134. package/dist/client/profile/default-agent.js +2 -4
  135. package/dist/client/profile/default-agent.js.map +1 -1
  136. package/dist/client/routes.d.ts +1 -1
  137. package/dist/client/routes.d.ts.map +1 -1
  138. package/dist/client/routes.js +1 -13
  139. package/dist/client/routes.js.map +1 -1
  140. package/dist/client/runs/format-wait.d.ts +21 -0
  141. package/dist/client/runs/format-wait.d.ts.map +1 -0
  142. package/dist/client/runs/format-wait.js +90 -0
  143. package/dist/client/runs/format-wait.js.map +1 -0
  144. package/dist/client/runs/subject-runs.d.ts +5 -0
  145. package/dist/client/runs/subject-runs.d.ts.map +1 -1
  146. package/dist/client/runs/subject-runs.js +13 -7
  147. package/dist/client/runs/subject-runs.js.map +1 -1
  148. package/dist/client/runs.d.ts +3 -1
  149. package/dist/client/runs.d.ts.map +1 -1
  150. package/dist/client/runs.js +3 -1
  151. package/dist/client/runs.js.map +1 -1
  152. package/dist/database/migrations/.manifest.json +62 -2
  153. package/dist/database/migrations/202610020003_ag_create_runs.d.ts.map +1 -1
  154. package/dist/database/migrations/202610020003_ag_create_runs.js +0 -1
  155. package/dist/database/migrations/202610020003_ag_create_runs.js.map +1 -1
  156. package/dist/database/migrations/202610090001_ag_add_team_runner_variables.d.ts +9 -0
  157. package/dist/database/migrations/202610090001_ag_add_team_runner_variables.d.ts.map +1 -0
  158. package/dist/database/migrations/202610090001_ag_add_team_runner_variables.js +28 -0
  159. package/dist/database/migrations/202610090001_ag_add_team_runner_variables.js.map +1 -0
  160. package/dist/database/migrations/202610090002_ag_create_run_requests.d.ts +10 -0
  161. package/dist/database/migrations/202610090002_ag_create_run_requests.d.ts.map +1 -0
  162. package/dist/database/migrations/202610090002_ag_create_run_requests.js +105 -0
  163. package/dist/database/migrations/202610090002_ag_create_run_requests.js.map +1 -0
  164. package/dist/database/migrations/202610090003_ag_add_execution_history.d.ts +4 -0
  165. package/dist/database/migrations/202610090003_ag_add_execution_history.d.ts.map +1 -0
  166. package/dist/database/migrations/202610090003_ag_add_execution_history.js +17 -0
  167. package/dist/database/migrations/202610090003_ag_add_execution_history.js.map +1 -0
  168. package/dist/database/migrations/202610090004_ag_add_runner_workspace_usage.d.ts +9 -0
  169. package/dist/database/migrations/202610090004_ag_add_runner_workspace_usage.d.ts.map +1 -0
  170. package/dist/database/migrations/202610090004_ag_add_runner_workspace_usage.js +22 -0
  171. package/dist/database/migrations/202610090004_ag_add_runner_workspace_usage.js.map +1 -0
  172. package/dist/database/migrations/202610090005_ag_add_runner_variables.d.ts +10 -0
  173. package/dist/database/migrations/202610090005_ag_add_runner_variables.d.ts.map +1 -0
  174. package/dist/database/migrations/202610090005_ag_add_runner_variables.js +36 -0
  175. package/dist/database/migrations/202610090005_ag_add_runner_variables.js.map +1 -0
  176. package/dist/database/migrations/202610100001_ag_index_run_event_types.d.ts +4 -0
  177. package/dist/database/migrations/202610100001_ag_index_run_event_types.d.ts.map +1 -0
  178. package/dist/database/migrations/202610100001_ag_index_run_event_types.js +17 -0
  179. package/dist/database/migrations/202610100001_ag_index_run_event_types.js.map +1 -0
  180. package/dist/database/migrations/202610100002_ag_add_run_git_credentials.d.ts +9 -0
  181. package/dist/database/migrations/202610100002_ag_add_run_git_credentials.d.ts.map +1 -0
  182. package/dist/database/migrations/202610100002_ag_add_run_git_credentials.js +30 -0
  183. package/dist/database/migrations/202610100002_ag_add_run_git_credentials.js.map +1 -0
  184. package/dist/database/migrations/202610110001_ag_add_fresh_sessions.d.ts +4 -0
  185. package/dist/database/migrations/202610110001_ag_add_fresh_sessions.d.ts.map +1 -0
  186. package/dist/database/migrations/202610110001_ag_add_fresh_sessions.js +23 -0
  187. package/dist/database/migrations/202610110001_ag_add_fresh_sessions.js.map +1 -0
  188. package/dist/database/migrations/202610120001_ag_index_run_retries.d.ts +4 -0
  189. package/dist/database/migrations/202610120001_ag_index_run_retries.d.ts.map +1 -0
  190. package/dist/database/migrations/202610120001_ag_index_run_retries.js +17 -0
  191. package/dist/database/migrations/202610120001_ag_index_run_retries.js.map +1 -0
  192. package/dist/database/migrations/202610120002_ag_add_queue_entered_at.d.ts +4 -0
  193. package/dist/database/migrations/202610120002_ag_add_queue_entered_at.d.ts.map +1 -0
  194. package/dist/database/migrations/202610120002_ag_add_queue_entered_at.js +50 -0
  195. package/dist/database/migrations/202610120002_ag_add_queue_entered_at.js.map +1 -0
  196. package/dist/database/migrations/202610240020_ag_runner_agents.d.ts +4 -0
  197. package/dist/database/migrations/202610240020_ag_runner_agents.d.ts.map +1 -0
  198. package/dist/database/migrations/202610240020_ag_runner_agents.js +115 -0
  199. package/dist/database/migrations/202610240020_ag_runner_agents.js.map +1 -0
  200. package/dist/database/migrations/202610240040_ag_discovery_preferences.d.ts +4 -0
  201. package/dist/database/migrations/202610240040_ag_discovery_preferences.d.ts.map +1 -0
  202. package/dist/database/migrations/202610240040_ag_discovery_preferences.js +18 -0
  203. package/dist/database/migrations/202610240040_ag_discovery_preferences.js.map +1 -0
  204. package/dist/database/migrations/202610250001_ag_comment_runner_consent.d.ts +4 -0
  205. package/dist/database/migrations/202610250001_ag_comment_runner_consent.d.ts.map +1 -0
  206. package/dist/database/migrations/202610250001_ag_comment_runner_consent.js +41 -0
  207. package/dist/database/migrations/202610250001_ag_comment_runner_consent.js.map +1 -0
  208. package/dist/database/migrations/202610260001_ag_drop_directory_index.d.ts +4 -0
  209. package/dist/database/migrations/202610260001_ag_drop_directory_index.d.ts.map +1 -0
  210. package/dist/database/migrations/202610260001_ag_drop_directory_index.js +24 -0
  211. package/dist/database/migrations/202610260001_ag_drop_directory_index.js.map +1 -0
  212. package/dist/database/migrations/202610260001_ag_run_revision.d.ts +4 -0
  213. package/dist/database/migrations/202610260001_ag_run_revision.d.ts.map +1 -0
  214. package/dist/database/migrations/202610260001_ag_run_revision.js +19 -0
  215. package/dist/database/migrations/202610260001_ag_run_revision.js.map +1 -0
  216. package/dist/package.json +8 -10
  217. package/dist/server/cli/run-credential.js +1 -1
  218. package/dist/server/composition.d.ts +41 -37
  219. package/dist/server/composition.d.ts.map +1 -1
  220. package/dist/server/composition.js +66 -66
  221. package/dist/server/composition.js.map +1 -1
  222. package/dist/server/core/agents/agent.service.d.ts +51 -43
  223. package/dist/server/core/agents/agent.service.d.ts.map +1 -1
  224. package/dist/server/core/agents/agent.service.js +342 -317
  225. package/dist/server/core/agents/agent.service.js.map +1 -1
  226. package/dist/server/core/agents/agent.store.d.ts +24 -12
  227. package/dist/server/core/agents/agent.store.d.ts.map +1 -1
  228. package/dist/server/core/agents/agent.store.js +64 -66
  229. package/dist/server/core/agents/agent.store.js.map +1 -1
  230. package/dist/server/core/agents/agent.views.d.ts +29 -0
  231. package/dist/server/core/agents/agent.views.d.ts.map +1 -0
  232. package/dist/server/core/agents/agent.views.js +86 -0
  233. package/dist/server/core/agents/agent.views.js.map +1 -0
  234. package/dist/server/core/agents/discovery.d.ts +12 -0
  235. package/dist/server/core/agents/discovery.d.ts.map +1 -0
  236. package/dist/server/core/agents/discovery.js +39 -0
  237. package/dist/server/core/agents/discovery.js.map +1 -0
  238. package/dist/server/core/agents/index.d.ts +2 -1
  239. package/dist/server/core/agents/index.d.ts.map +1 -1
  240. package/dist/server/core/agents/index.js +2 -1
  241. package/dist/server/core/agents/index.js.map +1 -1
  242. package/dist/server/core/brief/brief.js +1 -1
  243. package/dist/server/core/brief/brief.js.map +1 -1
  244. package/dist/server/core/callers/index.d.ts +1 -1
  245. package/dist/server/core/conversations/availability.d.ts +11 -10
  246. package/dist/server/core/conversations/availability.d.ts.map +1 -1
  247. package/dist/server/core/conversations/availability.js +14 -32
  248. package/dist/server/core/conversations/availability.js.map +1 -1
  249. package/dist/server/core/conversations/chat-settings.d.ts.map +1 -1
  250. package/dist/server/core/conversations/chat-settings.js +5 -3
  251. package/dist/server/core/conversations/chat-settings.js.map +1 -1
  252. package/dist/server/core/conversations/conversation.service.d.ts +3 -5
  253. package/dist/server/core/conversations/conversation.service.d.ts.map +1 -1
  254. package/dist/server/core/conversations/conversation.service.js +161 -221
  255. package/dist/server/core/conversations/conversation.service.js.map +1 -1
  256. package/dist/server/core/conversations/ports.d.ts +3 -17
  257. package/dist/server/core/conversations/ports.d.ts.map +1 -1
  258. package/dist/server/core/reports/report.service.d.ts.map +1 -1
  259. package/dist/server/core/reports/report.service.js +5 -2
  260. package/dist/server/core/reports/report.service.js.map +1 -1
  261. package/dist/server/core/runs/availability.d.ts +18 -7
  262. package/dist/server/core/runs/availability.d.ts.map +1 -1
  263. package/dist/server/core/runs/availability.js +35 -24
  264. package/dist/server/core/runs/availability.js.map +1 -1
  265. package/dist/server/core/runs/claim.d.ts +47 -67
  266. package/dist/server/core/runs/claim.d.ts.map +1 -1
  267. package/dist/server/core/runs/claim.js +805 -313
  268. package/dist/server/core/runs/claim.js.map +1 -1
  269. package/dist/server/core/runs/comment-consent.d.ts +24 -0
  270. package/dist/server/core/runs/comment-consent.d.ts.map +1 -0
  271. package/dist/server/core/runs/comment-consent.js +116 -0
  272. package/dist/server/core/runs/comment-consent.js.map +1 -0
  273. package/dist/server/core/runs/eligibility.d.ts +51 -0
  274. package/dist/server/core/runs/eligibility.d.ts.map +1 -0
  275. package/dist/server/core/runs/eligibility.js +44 -0
  276. package/dist/server/core/runs/eligibility.js.map +1 -0
  277. package/dist/server/core/runs/execution-view.d.ts +10 -0
  278. package/dist/server/core/runs/execution-view.d.ts.map +1 -0
  279. package/dist/server/core/runs/execution-view.js +25 -0
  280. package/dist/server/core/runs/execution-view.js.map +1 -0
  281. package/dist/server/core/runs/execution.d.ts +13 -0
  282. package/dist/server/core/runs/execution.d.ts.map +1 -0
  283. package/dist/server/core/runs/execution.js +85 -0
  284. package/dist/server/core/runs/execution.js.map +1 -0
  285. package/dist/server/core/runs/extensions.d.ts +59 -4
  286. package/dist/server/core/runs/extensions.d.ts.map +1 -1
  287. package/dist/server/core/runs/extensions.js +45 -9
  288. package/dist/server/core/runs/extensions.js.map +1 -1
  289. package/dist/server/core/runs/git-credentials.d.ts +43 -0
  290. package/dist/server/core/runs/git-credentials.d.ts.map +1 -0
  291. package/dist/server/core/runs/git-credentials.js +129 -0
  292. package/dist/server/core/runs/git-credentials.js.map +1 -0
  293. package/dist/server/core/runs/identity.d.ts +9 -0
  294. package/dist/server/core/runs/identity.d.ts.map +1 -0
  295. package/dist/server/core/runs/identity.js +75 -0
  296. package/dist/server/core/runs/identity.js.map +1 -0
  297. package/dist/server/core/runs/index.d.ts +9 -5
  298. package/dist/server/core/runs/index.d.ts.map +1 -1
  299. package/dist/server/core/runs/index.js +9 -5
  300. package/dist/server/core/runs/index.js.map +1 -1
  301. package/dist/server/core/runs/input-gate.d.ts +34 -0
  302. package/dist/server/core/runs/input-gate.d.ts.map +1 -0
  303. package/dist/server/core/runs/input-gate.js +58 -0
  304. package/dist/server/core/runs/input-gate.js.map +1 -0
  305. package/dist/server/core/runs/lifecycle.d.ts +9 -19
  306. package/dist/server/core/runs/lifecycle.d.ts.map +1 -1
  307. package/dist/server/core/runs/lifecycle.js +98 -50
  308. package/dist/server/core/runs/lifecycle.js.map +1 -1
  309. package/dist/server/core/runs/policy.d.ts +8 -0
  310. package/dist/server/core/runs/policy.d.ts.map +1 -1
  311. package/dist/server/core/runs/policy.js +10 -0
  312. package/dist/server/core/runs/policy.js.map +1 -1
  313. package/dist/server/core/runs/ports.d.ts +91 -28
  314. package/dist/server/core/runs/ports.d.ts.map +1 -1
  315. package/dist/server/core/runs/ports.js +2 -13
  316. package/dist/server/core/runs/ports.js.map +1 -1
  317. package/dist/server/core/runs/preview.d.ts.map +1 -1
  318. package/dist/server/core/runs/preview.js +3 -3
  319. package/dist/server/core/runs/preview.js.map +1 -1
  320. package/dist/server/core/runs/run-data-purge.d.ts +15 -0
  321. package/dist/server/core/runs/run-data-purge.d.ts.map +1 -0
  322. package/dist/server/core/runs/run-data-purge.js +82 -0
  323. package/dist/server/core/runs/run-data-purge.js.map +1 -0
  324. package/dist/server/core/runs/run-requests.d.ts +245 -0
  325. package/dist/server/core/runs/run-requests.d.ts.map +1 -0
  326. package/dist/server/core/runs/run-requests.js +543 -0
  327. package/dist/server/core/runs/run-requests.js.map +1 -0
  328. package/dist/server/core/runs/run.service.d.ts +96 -11
  329. package/dist/server/core/runs/run.service.d.ts.map +1 -1
  330. package/dist/server/core/runs/run.service.js +921 -96
  331. package/dist/server/core/runs/run.service.js.map +1 -1
  332. package/dist/server/core/runs/run.store.d.ts +25 -3
  333. package/dist/server/core/runs/run.store.d.ts.map +1 -1
  334. package/dist/server/core/runs/run.store.js +52 -2
  335. package/dist/server/core/runs/run.store.js.map +1 -1
  336. package/dist/server/core/runs/runner-view.d.ts +6 -4
  337. package/dist/server/core/runs/runner-view.d.ts.map +1 -1
  338. package/dist/server/core/runs/runner-view.js +13 -11
  339. package/dist/server/core/runs/runner-view.js.map +1 -1
  340. package/dist/server/core/runs/selection.d.ts +13 -0
  341. package/dist/server/core/runs/selection.d.ts.map +1 -0
  342. package/dist/server/core/runs/selection.js +21 -0
  343. package/dist/server/core/runs/selection.js.map +1 -0
  344. package/dist/server/core/runs/sweeper.d.ts +1 -0
  345. package/dist/server/core/runs/sweeper.d.ts.map +1 -1
  346. package/dist/server/core/runs/sweeper.js +55 -10
  347. package/dist/server/core/runs/sweeper.js.map +1 -1
  348. package/dist/server/core/runs/transitions.d.ts +2 -2
  349. package/dist/server/core/runs/transitions.d.ts.map +1 -1
  350. package/dist/server/core/runs/transitions.js +80 -8
  351. package/dist/server/core/runs/transitions.js.map +1 -1
  352. package/dist/server/core/runs/workload.d.ts +3 -3
  353. package/dist/server/core/runs/workload.d.ts.map +1 -1
  354. package/dist/server/core/runs/workload.js +154 -45
  355. package/dist/server/core/runs/workload.js.map +1 -1
  356. package/dist/server/core/skills/skill.service.d.ts +6 -2
  357. package/dist/server/core/skills/skill.service.d.ts.map +1 -1
  358. package/dist/server/core/skills/skill.service.js +43 -58
  359. package/dist/server/core/skills/skill.service.js.map +1 -1
  360. package/dist/server/core/skills/skill.store.d.ts +14 -0
  361. package/dist/server/core/skills/skill.store.d.ts.map +1 -1
  362. package/dist/server/core/skills/skill.store.js +30 -0
  363. package/dist/server/core/skills/skill.store.js.map +1 -1
  364. package/dist/server/core/variables/index.d.ts +1 -1
  365. package/dist/server/core/variables/index.d.ts.map +1 -1
  366. package/dist/server/core/variables/index.js +1 -1
  367. package/dist/server/core/variables/index.js.map +1 -1
  368. package/dist/server/core/variables/variable.service.d.ts +38 -6
  369. package/dist/server/core/variables/variable.service.d.ts.map +1 -1
  370. package/dist/server/core/variables/variable.service.js +201 -30
  371. package/dist/server/core/variables/variable.service.js.map +1 -1
  372. package/dist/server/distribution/dist.service.d.ts +27 -5
  373. package/dist/server/distribution/dist.service.d.ts.map +1 -1
  374. package/dist/server/distribution/dist.service.js +41 -5
  375. package/dist/server/distribution/dist.service.js.map +1 -1
  376. package/dist/server/distribution/download-tokens.d.ts +1 -1
  377. package/dist/server/distribution/download-tokens.d.ts.map +1 -1
  378. package/dist/server/distribution/download-tokens.js +7 -4
  379. package/dist/server/distribution/download-tokens.js.map +1 -1
  380. package/dist/server/distribution/index.d.ts +11 -3
  381. package/dist/server/distribution/index.d.ts.map +1 -1
  382. package/dist/server/distribution/index.js +31 -8
  383. package/dist/server/distribution/index.js.map +1 -1
  384. package/dist/server/jobs/index.d.ts +1 -1
  385. package/dist/server/jobs/index.d.ts.map +1 -1
  386. package/dist/server/jobs/index.js +1 -1
  387. package/dist/server/jobs/index.js.map +1 -1
  388. package/dist/server/jobs/job.service.d.ts +3 -1
  389. package/dist/server/jobs/job.service.d.ts.map +1 -1
  390. package/dist/server/jobs/job.service.js +11 -3
  391. package/dist/server/jobs/job.service.js.map +1 -1
  392. package/dist/server/jobs/spec.d.ts +4 -0
  393. package/dist/server/jobs/spec.d.ts.map +1 -1
  394. package/dist/server/jobs/spec.js +6 -0
  395. package/dist/server/jobs/spec.js.map +1 -1
  396. package/dist/server/kernel/errors.d.ts +1 -1
  397. package/dist/server/kernel/errors.d.ts.map +1 -1
  398. package/dist/server/kernel/errors.js +1 -0
  399. package/dist/server/kernel/errors.js.map +1 -1
  400. package/dist/server/kernel/events.d.ts +34 -9
  401. package/dist/server/kernel/events.d.ts.map +1 -1
  402. package/dist/server/kernel/events.js.map +1 -1
  403. package/dist/server/kernel/redaction.d.ts +2 -0
  404. package/dist/server/kernel/redaction.d.ts.map +1 -1
  405. package/dist/server/kernel/redaction.js +17 -0
  406. package/dist/server/kernel/redaction.js.map +1 -1
  407. package/dist/server/kernel/scopes.d.ts.map +1 -1
  408. package/dist/server/kernel/scopes.js +3 -1
  409. package/dist/server/kernel/scopes.js.map +1 -1
  410. package/dist/server/online/index.d.ts +0 -5
  411. package/dist/server/online/index.d.ts.map +1 -1
  412. package/dist/server/online/index.js +0 -5
  413. package/dist/server/online/index.js.map +1 -1
  414. package/dist/server/online/routes.d.ts.map +1 -1
  415. package/dist/server/online/routes.js +6 -35
  416. package/dist/server/online/routes.js.map +1 -1
  417. package/dist/server/providers/agents.d.ts +8 -25
  418. package/dist/server/providers/agents.d.ts.map +1 -1
  419. package/dist/server/providers/agents.js +11 -75
  420. package/dist/server/providers/agents.js.map +1 -1
  421. package/dist/server/providers/runners.d.ts.map +1 -1
  422. package/dist/server/providers/runners.js +23 -0
  423. package/dist/server/providers/runners.js.map +1 -1
  424. package/dist/server/routes/admin.d.ts.map +1 -1
  425. package/dist/server/routes/admin.js +158 -209
  426. package/dist/server/routes/admin.js.map +1 -1
  427. package/dist/server/routes/chat.d.ts.map +1 -1
  428. package/dist/server/routes/chat.js +12 -70
  429. package/dist/server/routes/chat.js.map +1 -1
  430. package/dist/server/routes/index.d.ts.map +1 -1
  431. package/dist/server/routes/index.js +11 -1
  432. package/dist/server/routes/index.js.map +1 -1
  433. package/dist/server/routes/roster.d.ts.map +1 -1
  434. package/dist/server/routes/roster.js +6 -21
  435. package/dist/server/routes/roster.js.map +1 -1
  436. package/dist/server/routes/run-requests.d.ts +6 -0
  437. package/dist/server/routes/run-requests.d.ts.map +1 -0
  438. package/dist/server/routes/run-requests.js +216 -0
  439. package/dist/server/routes/run-requests.js.map +1 -0
  440. package/dist/server/routes/runners/admin.d.ts +9 -1
  441. package/dist/server/routes/runners/admin.d.ts.map +1 -1
  442. package/dist/server/routes/runners/admin.js +62 -24
  443. package/dist/server/routes/runners/admin.js.map +1 -1
  444. package/dist/server/routes/runners/dist.d.ts +5 -1
  445. package/dist/server/routes/runners/dist.d.ts.map +1 -1
  446. package/dist/server/routes/runners/dist.js +36 -9
  447. package/dist/server/routes/runners/dist.js.map +1 -1
  448. package/dist/server/routes/runners/install.d.ts.map +1 -1
  449. package/dist/server/routes/runners/install.js +98 -15
  450. package/dist/server/routes/runners/install.js.map +1 -1
  451. package/dist/server/routes/runners/runner.d.ts.map +1 -1
  452. package/dist/server/routes/runners/runner.js +27 -7
  453. package/dist/server/routes/runners/runner.js.map +1 -1
  454. package/dist/server/routes/runners/runs.d.ts +1 -1
  455. package/dist/server/routes/runners/runs.d.ts.map +1 -1
  456. package/dist/server/routes/runners/runs.js +23 -3
  457. package/dist/server/routes/runners/runs.js.map +1 -1
  458. package/dist/server/routes/schemas.d.ts +37 -8
  459. package/dist/server/routes/schemas.d.ts.map +1 -1
  460. package/dist/server/routes/schemas.js +381 -84
  461. package/dist/server/routes/schemas.js.map +1 -1
  462. package/dist/server/runners/index.d.ts +1 -0
  463. package/dist/server/runners/index.d.ts.map +1 -1
  464. package/dist/server/runners/index.js +1 -0
  465. package/dist/server/runners/index.js.map +1 -1
  466. package/dist/server/runners/runner.service.d.ts +32 -8
  467. package/dist/server/runners/runner.service.d.ts.map +1 -1
  468. package/dist/server/runners/runner.service.js +130 -14
  469. package/dist/server/runners/runner.service.js.map +1 -1
  470. package/dist/server/runners/runner.store.d.ts +10 -1
  471. package/dist/server/runners/runner.store.d.ts.map +1 -1
  472. package/dist/server/runners/runner.store.js +117 -4
  473. package/dist/server/runners/runner.store.js.map +1 -1
  474. package/dist/server/runners/sweeper.d.ts +5 -0
  475. package/dist/server/runners/sweeper.d.ts.map +1 -1
  476. package/dist/server/runners/sweeper.js +4 -2
  477. package/dist/server/runners/sweeper.js.map +1 -1
  478. package/dist/server/runners/workspaces.d.ts +33 -0
  479. package/dist/server/runners/workspaces.d.ts.map +1 -0
  480. package/dist/server/runners/workspaces.js +248 -0
  481. package/dist/server/runners/workspaces.js.map +1 -0
  482. package/dist/server/testing.d.ts +0 -2
  483. package/dist/server/testing.d.ts.map +1 -1
  484. package/dist/server/testing.js +1 -4
  485. package/dist/server/testing.js.map +1 -1
  486. package/dist/server/tokens.d.ts +13 -9
  487. package/dist/server/tokens.d.ts.map +1 -1
  488. package/dist/server/tokens.js +7 -2
  489. package/dist/server/tokens.js.map +1 -1
  490. package/dist/shared/access.d.ts +2 -6
  491. package/dist/shared/access.d.ts.map +1 -1
  492. package/dist/shared/access.js +2 -6
  493. package/dist/shared/access.js.map +1 -1
  494. package/dist/shared/agents.d.ts +128 -167
  495. package/dist/shared/agents.d.ts.map +1 -1
  496. package/dist/shared/agents.js +46 -97
  497. package/dist/shared/agents.js.map +1 -1
  498. package/dist/shared/conversations.d.ts +43 -89
  499. package/dist/shared/conversations.d.ts.map +1 -1
  500. package/dist/shared/conversations.js +5 -24
  501. package/dist/shared/conversations.js.map +1 -1
  502. package/dist/shared/model-catalog.d.ts +48 -0
  503. package/dist/shared/model-catalog.d.ts.map +1 -0
  504. package/dist/shared/model-catalog.js +148 -0
  505. package/dist/shared/model-catalog.js.map +1 -0
  506. package/dist/shared/models.js +1 -1
  507. package/dist/shared/models.js.map +1 -1
  508. package/dist/shared/runners.d.ts +107 -17
  509. package/dist/shared/runners.d.ts.map +1 -1
  510. package/dist/shared/runners.js +49 -7
  511. package/dist/shared/runners.js.map +1 -1
  512. package/dist/shared/runs.d.ts +213 -1
  513. package/dist/shared/runs.d.ts.map +1 -1
  514. package/dist/shared/runs.js +24 -0
  515. package/dist/shared/runs.js.map +1 -1
  516. package/dist/shared/skills.d.ts +8 -4
  517. package/dist/shared/skills.d.ts.map +1 -1
  518. package/dist/shared/skills.js +7 -2
  519. package/dist/shared/skills.js.map +1 -1
  520. package/dist/shared/variables.d.ts +22 -0
  521. package/dist/shared/variables.d.ts.map +1 -1
  522. package/dist/shared/variables.js +10 -2
  523. package/dist/shared/variables.js.map +1 -1
  524. package/package.json +24 -26
  525. package/skills/nocobase-app-plugin-agents/SKILL.md +8 -7
  526. package/skills/nocobase-app-plugin-agents/references/agents.md +30 -0
  527. package/skills/nocobase-app-plugin-agents/references/distribution.md +21 -4
  528. package/skills/nocobase-app-plugin-agents/references/extension-points.md +30 -20
  529. package/skills/nocobase-app-plugin-agents/references/model-services.md +17 -0
  530. package/skills/nocobase-app-plugin-agents/references/runners.md +15 -1
  531. package/skills/nocobase-app-plugin-agents/references/setup-and-config.md +4 -7
  532. package/skills/nocobase-app-plugin-agents/references/variables-skills-usage.md +6 -4
  533. package/skills/nocobase-app-plugin-agents/references/verification-and-troubleshooting.md +33 -32
  534. package/dist/client/chat/settings-section.d.ts +0 -5
  535. package/dist/client/chat/settings-section.d.ts.map +0 -1
  536. package/dist/client/chat/settings-section.js +0 -76
  537. package/dist/client/chat/settings-section.js.map +0 -1
  538. package/dist/client/components/agent-fields.d.ts +0 -45
  539. package/dist/client/components/agent-fields.d.ts.map +0 -1
  540. package/dist/client/components/agent-fields.js +0 -83
  541. package/dist/client/components/agent-fields.js.map +0 -1
  542. package/dist/client/components/agent-type.d.ts +0 -32
  543. package/dist/client/components/agent-type.d.ts.map +0 -1
  544. package/dist/client/components/agent-type.js +0 -80
  545. package/dist/client/components/agent-type.js.map +0 -1
  546. package/dist/client/components/model-entries.d.ts +0 -35
  547. package/dist/client/components/model-entries.d.ts.map +0 -1
  548. package/dist/client/components/model-entries.js +0 -82
  549. package/dist/client/components/model-entries.js.map +0 -1
  550. package/dist/client/hooks/use-agent-save.d.ts +0 -9
  551. package/dist/client/hooks/use-agent-save.d.ts.map +0 -1
  552. package/dist/client/hooks/use-agent-save.js +0 -40
  553. package/dist/client/hooks/use-agent-save.js.map +0 -1
  554. package/dist/client/hooks/use-model-catalog.d.ts +0 -9
  555. package/dist/client/hooks/use-model-catalog.d.ts.map +0 -1
  556. package/dist/client/hooks/use-model-catalog.js +0 -27
  557. package/dist/client/hooks/use-model-catalog.js.map +0 -1
  558. package/dist/client/lib/tool-policy.d.ts +0 -5
  559. package/dist/client/lib/tool-policy.d.ts.map +0 -1
  560. package/dist/client/lib/tool-policy.js +0 -10
  561. package/dist/client/lib/tool-policy.js.map +0 -1
  562. package/dist/client/online/default-model.d.ts +0 -5
  563. package/dist/client/online/default-model.d.ts.map +0 -1
  564. package/dist/client/online/default-model.js +0 -65
  565. package/dist/client/online/default-model.js.map +0 -1
  566. package/dist/client/pages/agents/agent-model.d.ts +0 -73
  567. package/dist/client/pages/agents/agent-model.d.ts.map +0 -1
  568. package/dist/client/pages/agents/agent-model.js +0 -172
  569. package/dist/client/pages/agents/agent-model.js.map +0 -1
  570. package/dist/client/pages/agents/detail/brief-preview.d.ts +0 -7
  571. package/dist/client/pages/agents/detail/brief-preview.d.ts.map +0 -1
  572. package/dist/client/pages/agents/detail/brief-preview.js +0 -43
  573. package/dist/client/pages/agents/detail/brief-preview.js.map +0 -1
  574. package/dist/client/pages/agents/detail/history.d.ts +0 -11
  575. package/dist/client/pages/agents/detail/history.d.ts.map +0 -1
  576. package/dist/client/pages/agents/detail/history.js +0 -149
  577. package/dist/client/pages/agents/detail/history.js.map +0 -1
  578. package/dist/client/pages/agents/detail/index.d.ts +0 -3
  579. package/dist/client/pages/agents/detail/index.d.ts.map +0 -1
  580. package/dist/client/pages/agents/detail/index.js +0 -241
  581. package/dist/client/pages/agents/detail/index.js.map +0 -1
  582. package/dist/client/pages/agents/detail/sections.d.ts +0 -22
  583. package/dist/client/pages/agents/detail/sections.d.ts.map +0 -1
  584. package/dist/client/pages/agents/detail/sections.js +0 -311
  585. package/dist/client/pages/agents/detail/sections.js.map +0 -1
  586. package/dist/client/pages/agents/detail/tab-draft.d.ts +0 -43
  587. package/dist/client/pages/agents/detail/tab-draft.d.ts.map +0 -1
  588. package/dist/client/pages/agents/detail/tab-draft.js +0 -115
  589. package/dist/client/pages/agents/detail/tab-draft.js.map +0 -1
  590. package/dist/client/pages/agents/detail/unsaved-bar.d.ts +0 -13
  591. package/dist/client/pages/agents/detail/unsaved-bar.d.ts.map +0 -1
  592. package/dist/client/pages/agents/detail/unsaved-bar.js +0 -21
  593. package/dist/client/pages/agents/detail/unsaved-bar.js.map +0 -1
  594. package/dist/client/pages/agents/new.d.ts +0 -3
  595. package/dist/client/pages/agents/new.d.ts.map +0 -1
  596. package/dist/client/pages/agents/new.js +0 -149
  597. package/dist/client/pages/agents/new.js.map +0 -1
  598. package/dist/client/pages/agents/preset-picker.d.ts +0 -8
  599. package/dist/client/pages/agents/preset-picker.d.ts.map +0 -1
  600. package/dist/client/pages/agents/preset-picker.js +0 -41
  601. package/dist/client/pages/agents/preset-picker.js.map +0 -1
  602. package/dist/server/core/consultations/consultation.service.d.ts +0 -59
  603. package/dist/server/core/consultations/consultation.service.d.ts.map +0 -1
  604. package/dist/server/core/consultations/consultation.service.js +0 -195
  605. package/dist/server/core/consultations/consultation.service.js.map +0 -1
  606. package/dist/server/core/consultations/index.d.ts +0 -3
  607. package/dist/server/core/consultations/index.d.ts.map +0 -1
  608. package/dist/server/core/consultations/index.js +0 -3
  609. package/dist/server/core/consultations/index.js.map +0 -1
  610. package/dist/server/core/consultations/prompt.d.ts +0 -41
  611. package/dist/server/core/consultations/prompt.d.ts.map +0 -1
  612. package/dist/server/core/consultations/prompt.js +0 -64
  613. package/dist/server/core/consultations/prompt.js.map +0 -1
  614. package/dist/server/core/presets/index.d.ts +0 -19
  615. package/dist/server/core/presets/index.d.ts.map +0 -1
  616. package/dist/server/core/presets/index.js +0 -28
  617. package/dist/server/core/presets/index.js.map +0 -1
  618. package/dist/server/online/cli-command.d.ts +0 -20
  619. package/dist/server/online/cli-command.d.ts.map +0 -1
  620. package/dist/server/online/cli-command.js +0 -345
  621. package/dist/server/online/cli-command.js.map +0 -1
  622. package/dist/server/online/consult-tool.d.ts +0 -54
  623. package/dist/server/online/consult-tool.d.ts.map +0 -1
  624. package/dist/server/online/consult-tool.js +0 -177
  625. package/dist/server/online/consult-tool.js.map +0 -1
  626. package/dist/server/online/executor.d.ts +0 -83
  627. package/dist/server/online/executor.d.ts.map +0 -1
  628. package/dist/server/online/executor.js +0 -714
  629. package/dist/server/online/executor.js.map +0 -1
  630. package/dist/server/online/sandbox.d.ts +0 -32
  631. package/dist/server/online/sandbox.d.ts.map +0 -1
  632. package/dist/server/online/sandbox.js +0 -246
  633. package/dist/server/online/sandbox.js.map +0 -1
  634. package/dist/server/online/scripted.d.ts +0 -12
  635. package/dist/server/online/scripted.d.ts.map +0 -1
  636. package/dist/server/online/scripted.js +0 -176
  637. package/dist/server/online/scripted.js.map +0 -1
  638. package/dist/server/online/tools.d.ts +0 -17
  639. package/dist/server/online/tools.d.ts.map +0 -1
  640. package/dist/server/online/tools.js +0 -31
  641. package/dist/server/online/tools.js.map +0 -1
  642. package/dist/server/vendor/THIRD_PARTY_LICENSES.txt +0 -782
  643. package/dist/server/vendor/just-bash.d.ts +0 -83
  644. package/dist/server/vendor/just-bash.js +0 -2102
  645. package/dist/shared/presets.d.ts +0 -30
  646. package/dist/shared/presets.d.ts.map +0 -1
  647. package/dist/shared/presets.js +0 -2
  648. package/dist/shared/presets.js.map +0 -1
  649. package/skills/nocobase-app-plugin-agents/references/online-agents.md +0 -31
@@ -1,130 +1,79 @@
1
1
  /**
2
2
  * Agents as the browser and the server's admin API exchange them.
3
3
  *
4
- * An agent is who works and how: its name and instructions, its type, the business actions it may perform. Its type is
5
- * chosen when it is created and never changes:
4
+ * Nobody creates an agent. Each coding tool and model the runners report becomes one agent (`source: 'runner'`): the
5
+ * runners report, per tool, whether it is installed and signed in and which models it can use, and the server keeps one
6
+ * agent per tool and model (`model-catalog.ts` names it and normalizes the model), however many runners report it. A new
7
+ * one waits (`pending`) until someone who manages agents writes what it is good at and enables it. The application may
8
+ * also keep agents of its own (`source: 'system'`), such as a project manager, which it configures through its own
9
+ * settings and runs with the tool and model of the agents it names.
6
10
  *
7
- * - `runner`: it drives a coding tool on a runner, with its skills, its tool policy and its own
8
- * variables. Where it runs is not configured beyond an optional list of runners: a run goes to any online runner that
9
- * has one of its tools installed and signed in, may run the waking person's work, and has a free slot.
10
- * - `online`: it talks to a model of a model service directly, on the server: no runner, no working directory, no
11
- * variables. Its tools are the application's commands it may run, and whatever else the application offers
12
- * (knowledge search). It answers in seconds and runs only on subjects that need no working directory, such as
13
- * conversations.
14
- *
15
- * Which tool or model it works with, and with what reasoning effort, is an ordered list (`modelEntries`), the first
16
- * being its default. A runner takes a runner agent's run with the first entry whose tool it has enabled and signed in;
17
- * nobody chooses. An online agent's runs use the first entry, except in a conversation, whose owner may pick another of
18
- * its entries. The run records the entry it used (`Run.tool`, `Run.modelService`, `Run.model`, `Run.effort`).
19
- *
20
- * An online agent with no entry is not configured yet (such as an application's built-in assistant before a model service exists): it is
21
- * kept, shown as needing a model, and offered no work until an entry is added. A runner agent always has one.
11
+ * Which tool and model an agent works with, and with what reasoning effort, is an ordered list (`modelEntries`); a
12
+ * runner takes a run with the first entry it reports. An agent discovered from runners has exactly one entry, its own
13
+ * tool and model; only its default reasoning effort can be changed. The rest of what an agent is (its instructions,
14
+ * the business actions it may perform, how many attempts a run gets) is the application's, the same for every agent.
22
15
  */
23
16
  import { TOOL_EFFORTS, } from '@nocobase/agent-protocol';
24
- /** Who may wake an agent: its owner, the listed users, or everyone. */
25
- export const AGENT_ACCESS = ['ownerOnly', 'users', 'everyone'];
26
- /** What kind of agent it is; chosen at creation and never changed (`runner`: a coding tool on a runner, `online`: a model on the server). */
27
- export const AGENT_TYPES = ['online', 'runner'];
17
+ /** Where an agent comes from: discovered from what runners report, or kept by the application. */
18
+ export const AGENT_SOURCES = ['runner', 'system'];
28
19
  /**
29
- * When an agent in a conversation asks the person before changing data for them: `always` (every change goes through an
30
- * operation plan they confirm) or `larger` (small changes are made directly, within the application's direct-write
31
- * rules, and anything larger goes through a plan). There is no "never": what the rules call larger (waking an agent,
32
- * finishing an issue, changing an owner, …) always needs the person's confirmation.
20
+ * Whether an agent is offered work: `pending` (discovered, nobody enabled it yet), `enabled`, `disabled`. Only enabled
21
+ * agents are offered work, mentioned or chatted with.
33
22
  */
23
+ export const AGENT_STATUSES = ['pending', 'enabled', 'disabled'];
24
+ /** How long a tool and model may go unreported by every runner before its agent shows as having no runner. */
25
+ export const AGENT_UNREPORTED_AFTER_MS = 14 * 24 * 60 * 60_000;
26
+ /** When in a conversation an agent asks before changing data: every change, or only larger ones. */
34
27
  export const CONFIRM_CHANGES = ['always', 'larger'];
35
- /** The reasoning efforts an online agent's entry may name, weakest first, as the model gateway passes them to providers. */
36
- export const ONLINE_EFFORTS = [
37
- 'minimal',
38
- 'low',
39
- 'medium',
40
- 'high',
41
- 'xhigh',
42
- ];
43
28
  /** The most entries an agent's list holds. */
44
29
  export const MAX_MODEL_ENTRIES = 20;
45
- export function isRunnerEntry(entry) {
46
- return 'tool' in entry;
47
- }
48
- export function isOnlineEntry(entry) {
49
- return 'modelService' in entry;
50
- }
51
- /** The reasoning efforts `entry` may name: its tool's for a runner entry, `ONLINE_EFFORTS` for an online one. */
30
+ /** The reasoning efforts `entry`'s tool takes. */
52
31
  export function effortsFor(entry) {
53
- return 'tool' in entry ? TOOL_EFFORTS[entry.tool] : ONLINE_EFFORTS;
54
- }
55
- /** A runner agent's entries, in order; empty for an online agent. */
56
- export function runnerEntries(agent) {
57
- return agent.modelEntries.filter(isRunnerEntry);
58
- }
59
- /** An online agent's entries, in order; empty for a runner agent. */
60
- export function onlineEntries(agent) {
61
- return agent.modelEntries.filter(isOnlineEntry);
62
- }
63
- /**
64
- * The entries an online agent answers with: its own, or, when it lists none, the system default chat model
65
- * (`DefaultModels`) as its only one; empty for a runner agent or when there is no default either.
66
- */
67
- export function onlineEntriesOrDefault(agent, defaultModel) {
68
- if (agent.type !== 'online')
69
- return [];
70
- const own = onlineEntries(agent);
71
- if (own.length > 0)
72
- return own;
73
- return defaultModel
74
- ? [{ modelService: defaultModel.modelService, model: defaultModel.model }]
75
- : [];
32
+ return TOOL_EFFORTS[entry.tool];
76
33
  }
77
- /** The coding tools a runner agent's entries name, in order and once each; empty for an online agent. */
34
+ /** The coding tools an agent's entries name, in order and once each. */
78
35
  export function entryTools(agent) {
79
- return [...new Set(runnerEntries(agent).map((entry) => entry.tool))];
36
+ return [...new Set(agent.modelEntries.map((entry) => entry.tool))];
80
37
  }
81
- /** Whether two entries name the same tool or service and model, whatever their efforts. */
38
+ /** Whether two entries name the same tool and model, whatever their efforts. */
82
39
  export function sameEntry(a, b) {
83
- if (isRunnerEntry(a))
84
- return (isRunnerEntry(b) &&
85
- a.tool === b.tool &&
86
- (a.model ?? null) === (b.model ?? null));
87
- return (isOnlineEntry(b) && a.modelService === b.modelService && a.model === b.model);
40
+ return a.tool === b.tool && (a.model ?? null) === (b.model ?? null);
88
41
  }
89
- /** What a change to an agent's configuration was. */
42
+ /**
43
+ * Why an agent cannot take the caller's work now: `pending` and `disabled` (not enabled), `unreported` (no runner
44
+ * reported its tool and model for `AGENT_UNREPORTED_AFTER_MS`), `notConfigured` (an application's own agent with no
45
+ * tool and model yet), `noRunner` (no runner online that has it and would take the caller's work), `othersPersonal`
46
+ * (only other people's personal runners have it).
47
+ */
48
+ export const AGENT_UNUSABLE_REASONS = [
49
+ 'pending',
50
+ 'disabled',
51
+ 'unreported',
52
+ 'notConfigured',
53
+ 'noRunner',
54
+ 'othersPersonal',
55
+ ];
56
+ /** What a change to an agent was. */
90
57
  export const AGENT_CHANGE_ACTIONS = [
91
58
  'created',
92
59
  'updated',
60
+ 'enabled',
61
+ 'disabled',
62
+ 'variables',
63
+ // Recorded by earlier versions, which kept agents people configured.
93
64
  'archived',
94
65
  'restored',
95
- 'variables',
96
66
  ];
97
67
  /** The fields of an agent whose changes its history records, in the order the history shows them. */
98
68
  export const AGENT_HISTORY_FIELDS = [
99
69
  'name',
100
70
  'description',
101
- 'avatar',
102
- 'instructions',
103
- 'type',
71
+ 'status',
104
72
  'modelEntries',
105
- 'skillIds',
73
+ 'instructions',
106
74
  'actions',
107
- 'confirmChanges',
108
- 'toolPolicy',
109
- 'runnerIds',
110
- 'maxConcurrentRuns',
111
- 'maxAttempts',
112
- 'access',
113
- 'userIds',
114
- 'ownerUserId',
115
- ];
116
- /** Fields no longer recorded that older history entries still carry, so the history can still name them. */
117
- export const RETIRED_AGENT_HISTORY_FIELDS = [
118
- 'tool',
119
- 'model',
120
- 'llmService',
121
- 'modelService',
122
- 'reasoningEffort',
123
75
  ];
124
- /**
125
- * The tool policy an agent starts from; an agent's `toolPolicy` overrides fields of it. The editor shows it so people
126
- * see what they override.
127
- */
76
+ /** The tool policy every agent runs with; an agent's `toolPolicy` overrides fields of it. */
128
77
  export const DEFAULT_TOOL_POLICY = {
129
78
  permissionMode: 'acceptEdits',
130
79
  allowedCommands: [
@@ -1 +1 @@
1
- {"version":3,"file":"agents.js","sourceRoot":"","sources":["../../shared/agents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EACL,YAAY,GAGb,MAAM,0BAA0B,CAAC;AAIlC,uEAAuE;AACvE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,CAAU,CAAC;AAIxE,6IAA6I;AAC7I,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAU,CAAC;AAIzD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAU,CAAC;AAI7D,4HAA4H;AAC5H,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS;IACT,KAAK;IACL,QAAQ;IACR,MAAM;IACN,OAAO;CACC,CAAC;AAyBX,8CAA8C;AAC9C,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAEpC,MAAM,UAAU,aAAa,CAC3B,KAAsB;IAEtB,OAAO,MAAM,IAAI,KAAK,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,aAAa,CAC3B,KAAsB;IAEtB,OAAO,cAAc,IAAI,KAAK,CAAC;AACjC,CAAC;AAED,iHAAiH;AACjH,MAAM,UAAU,UAAU,C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U;CACF,CAAC;AAIX,qGAAqG;AACrG,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,MAAM;IACN,aAAa;IACb,QAAQ;IACR,cAAc;IACd,cAAc;IACd,SAAS;CACD,CAAC;AA8DX,6FAA6F;AAC7F,MAAM,CAAC,MAAM,mBAAmB,GAAe;IAC7C,cAAc,EAAE,aAAa;IAC7B,eAAe,EAAE;QACf,8GAA8G;QAC9G,kGAAkG;KACnG;IACD,cAAc,EAAE;QACd,uCAAuC;QACvC,YAAY;QACZ,wCAAwC;QACxC,oCAAoC;QACpC,0BAA0B;KAC3B;IACD,aAAa,EAAE,EAAE,GAAG,MAAM;CAC3B,CAAC"}
@@ -5,10 +5,9 @@
5
5
  *
6
6
  * ## Model
7
7
  *
8
- * - A **conversation** belongs to one person (its owner) and is bound to one agent. Its **mode** is the type of the agent
9
- * it was started with (`online`: a model on the server answers in seconds; `runner`: a coding agent on a runner) and stays
10
- * so for its whole life: it never moves to an agent of the other type. A person who needs the other kind of agent
11
- * starts another conversation. Only the owner reads its content:
8
+ * - A **conversation** belongs to one person (its owner) and is bound to one agent, which answers on a runner. Its
9
+ * **mode** is `runner`; conversations an earlier version answered with an online agent keep `online`. Only the owner
10
+ * reads its content:
12
11
  * the API answers 404 to everyone else, administrators included, and the runs a conversation starts are hidden from
13
12
  * anyone the run does not involve. Administrators see usage only.
14
13
  * - A **message** is what the owner sent (`user`), what the agent replied (`assistant`), or a notice the server wrote
@@ -17,16 +16,17 @@
17
16
  * - Each message the owner sends wakes the agent: a run with the subject `{ kind: 'conversation', id }`, woken by the
18
17
  * owner (whose permissions bound it). A message sent while the agent is working joins that run as input; a message
19
18
  * sent while it waits for a runner joins the waiting run. Every text the agent writes in a run becomes an assistant
20
- * message, in order, as the runner reports it. An online agent's reply appears as it is written: a draft message
21
- * (`metadata.streaming`) whose content grows until the reply is final, in place, at the same `seq`. The run's
22
- * step-by-step transcript stays readable through the runs API
19
+ * message, in order, as the runner reports it. The run's step-by-step transcript stays readable through the runs API
23
20
  * (`/api/agents/admin/runs/:runId/events`), for the "thinking / reading X" lines.
24
21
  * - **Sessions**: a run resumes the session the same runner kept for the conversation. On another runner it starts a
25
22
  * fresh session and its prompt carries the last `CONVERSATION_HISTORY_IN_PROMPT` messages and the previous run's
26
23
  * summary. Switching the conversation's agent (to the system default and back) starts a new session every time.
27
- * - **Availability**: a message is always saved. When the agent is archived, the owner may no longer use it, or no
28
- * online, signed-in runner may run it, the conversation reports `offline` with the reason; the owner may switch the
29
- * conversation to the system default agent and later switch back.
24
+ * - **Availability**: a message is always saved. When the agent is not enabled, the owner may no longer use it, or no
25
+ * online runner that has its tool and model may run the owner's work (including claim's feature and team-only
26
+ * variable restrictions), the conversation reports `offline` with the reason; the owner may switch the conversation
27
+ * to the system default agent and later switch back. Switching transfers unanswered queued messages. Manual fallback
28
+ * skips an unavailable system default, and restoring requires the original agent to be available again. The owner is
29
+ * the one answerable for their conversation, so none of this waits for anyone's confirmation.
30
30
  * - **Titles**: the first message's first `CONVERSATION_TITLE_AUTO_CHARS` characters (`auto`), until the agent sets one
31
31
  * of at most `CONVERSATION_TITLE_AGENT_MAX` characters (`agent`), which it may do until the owner renames the
32
32
  * conversation (`user`); after that the agent's attempts answer `CONVERSATION_CONFLICT` with `reason: 'titleLocked'`.
@@ -48,8 +48,7 @@
48
48
  * which attaches it to the conversation. From then on only the conversation's owner, and a run of its agent on that
49
49
  * conversation (by its run token), may read it. An upload never sent is purged after `CHAT_ATTACHMENT_ORPHAN_HOURS`.
50
50
  * The agent reads the files' names, types and ids with the message; a runner agent downloads one into its working
51
- * directory with the CLI (`conversation attachment download <file-id>`), and an online agent is shown the images among
52
- * them (`CHAT_IMAGE_TO_MODEL_MAX` bytes each at most) and only the names of the rest. Agents do not send files back.
51
+ * directory with the CLI (`conversation attachment download <file-id>`). Agents do not send files back.
53
52
  *
54
53
  * ## Realtime
55
54
  *
@@ -58,9 +57,7 @@
58
57
  * open, because announcements reach only the browsers connected to the instance that made the change.
59
58
  */
60
59
  import type { FailureReason, RunStatus } from '@nocobase/agent-protocol';
61
- import type { OnlineModelEntry } from './agents.js';
62
60
  import type { I18nText } from './i18n.js';
63
- import type { ModelCatalog } from './models.js';
64
61
  /** The run subject kind of a conversation. */
65
62
  export declare const CONVERSATION_SUBJECT = "conversation";
66
63
  /** The automatic title: the first message's first characters, without Markdown punctuation. */
@@ -77,8 +74,6 @@ export declare const CHAT_ATTACHMENT_SIZE_MAX: number;
77
74
  export declare const CHAT_ATTACHMENTS_PER_MESSAGE_MAX = 10;
78
75
  /** How long an upload not sent with a message is kept. */
79
76
  export declare const CHAT_ATTACHMENT_ORPHAN_HOURS = 24;
80
- /** The largest image an online agent's model is shown; a larger one is listed by name only. */
81
- export declare const CHAT_IMAGE_TO_MODEL_MAX: number;
82
77
  /** The raster images shown inline, by extension: the declared type must be the one listed. */
83
78
  export declare const INLINE_IMAGE_TYPES: Readonly<Record<string, string>>;
84
79
  /** A safe raster image, whose declared type matches its extension; anything else is only downloaded. */
@@ -193,17 +188,17 @@ export interface ConversationAgent {
193
188
  readonly archived: boolean;
194
189
  }
195
190
  /** Why a conversation's agent cannot answer now. */
196
- export declare const OFFLINE_REASONS: readonly ["agentMissing", "agentArchived", "forbidden", "noRunner", "modelUnavailable"];
191
+ export declare const OFFLINE_REASONS: readonly ["agentMissing", "agentArchived", "forbidden", "noRunner", "othersPersonal"];
197
192
  export type OfflineReason = (typeof OFFLINE_REASONS)[number];
198
193
  /** Whether the agent can answer now. */
199
194
  export interface ChatAvailability {
200
195
  readonly online: boolean;
201
196
  /** Null when online. */
202
197
  readonly reason: OfflineReason | null;
203
- /** Runners that may run the agent for the owner now; for an online agent, 1 while its model is offered. */
198
+ /** Runners that may run the agent for the owner now. */
204
199
  readonly onlineRunners: number;
205
200
  }
206
- /** A conversation's mode: the type of its agent, for its whole life (`AgentType`). */
201
+ /** A conversation's mode: `runner`, or `online` for a conversation an earlier version answered with an online agent. */
207
202
  export type ConversationMode = 'online' | 'runner';
208
203
  /** The conversation's open run: queued, waiting for a runner, or working. */
209
204
  export interface ConversationRun {
@@ -220,20 +215,10 @@ export interface ConversationSummary {
220
215
  readonly titleSource: TitleSource;
221
216
  readonly category: ConversationCategory;
222
217
  readonly source: ConversationSource;
223
- /** `online` or `runner`, for the conversation's whole life. */
224
218
  readonly mode: ConversationMode;
225
219
  readonly agent: ConversationAgent;
226
- /**
227
- * While the conversation uses the system default agent in place of its own (`fallback`): the agent it switches back
228
- * to. Null otherwise.
229
- */
220
+ /** While the conversation uses the system default agent in place of its own (`fallback`): the agent it switches back to. */
230
221
  readonly fallbackFrom: ConversationAgent | null;
231
- /**
232
- * An online conversation: the entry of its agent's list it answers with, the owner's choice
233
- * (`ConversationPatch.model`) while the agent lists it, else the agent's first. Null for a runner conversation, or
234
- * when the agent is gone.
235
- */
236
- readonly model: OnlineModelEntry | null;
237
222
  /** False when the agent wrote since the owner last marked it read. */
238
223
  readonly read: boolean;
239
224
  readonly lastMessageAt: string;
@@ -243,23 +228,12 @@ export interface ConversationSummary {
243
228
  /** The open run, if any: the panel shows "working" and offers to stop. */
244
229
  readonly run: ConversationRun | null;
245
230
  }
246
- /** An entry a conversation may answer with, named as the person reads it: its service's title and the model's label. */
247
- export interface ChatModelChoice extends OnlineModelEntry {
248
- /** Its service's title; its name when no enabled service has it any more. */
249
- readonly serviceTitle: string;
250
- /** The model's label in its service; its id when the service no longer offers it. */
251
- readonly modelLabel: string;
252
- }
253
- /** The entries named from the catalog (`ChatModelChoice`); what the catalog no longer has keeps its ids. */
254
- export declare function chatModelChoices(entries: readonly OnlineModelEntry[], catalog: Pick<ModelCatalog, 'services'>): ChatModelChoice[];
255
231
  /** One conversation as the panel opens it. */
256
232
  export interface ConversationDetail extends ConversationSummary {
257
233
  readonly availability: ChatAvailability;
258
- /** An online conversation: the entries of its agent's list the owner may choose from, in order; empty otherwise. */
259
- readonly models: readonly ChatModelChoice[];
260
- /** The system default agent may take over (`POST …/fallback`). */
234
+ /** Another agent may take over (`POST …/fallback`): the system default agent, when it can answer. */
261
235
  readonly canFallback: boolean;
262
- /** The conversation is on the system default and its own agent may take it back (`POST …/restore`). */
236
+ /** The conversation uses another agent and its original agent can answer again (`POST …/restore`). */
263
237
  readonly canRestore: boolean;
264
238
  }
265
239
  /** `aiMessages.content`. */
@@ -279,6 +253,18 @@ export type ConversationNotice =
279
253
  readonly agentId: string;
280
254
  readonly fromAgentId: string;
281
255
  }
256
+ /** Written by earlier versions: the conversation used the online fallback agent in place of its runner agent. */
257
+ | {
258
+ readonly code: 'switchedToOnline';
259
+ readonly agentId: string;
260
+ readonly fromAgentId: string;
261
+ }
262
+ /** Written by earlier versions: the configured online fallback could not answer. */
263
+ | {
264
+ readonly code: 'onlineFallbackUnavailable';
265
+ readonly fromAgentId: string;
266
+ readonly reason: OfflineReason;
267
+ }
282
268
  /** The conversation is back on its own agent. */
283
269
  | {
284
270
  readonly code: 'switchedBack';
@@ -311,11 +297,12 @@ export type ConversationNotice =
311
297
  export declare const CONSULTATION_STATES: readonly ["running", "completed", "failed", "refused"];
312
298
  export type ConsultationState = (typeof CONSULTATION_STATES)[number];
313
299
  /**
314
- * The agent consulted another one (`ask_agent`) while answering: one card per call, rewritten in place (same id and
315
- * `seq`, `metadata.streaming` while it runs) as the consultation goes. The consulted agent's own run (`runId`) has its
316
- * transcript and usage.
300
+ * Written by earlier versions: the online agent consulted another one (`ask_agent`) while answering, one card per call.
301
+ * The consulted agent's own run (`runId`) has its transcript and usage.
317
302
  */
318
303
  export interface ConsultationNotice {
304
+ /** Display-only marker: the requested subject could not be resolved; agentName is a historical snapshot. */
305
+ readonly identitySnapshot?: boolean;
319
306
  readonly code: 'consultation';
320
307
  /** The tool call: one card per call. */
321
308
  readonly callId: string;
@@ -349,14 +336,13 @@ export interface MessageMetadata {
349
336
  readonly runEventSeq?: number;
350
337
  /** A system message: what happened. */
351
338
  readonly notice?: ConversationNotice;
339
+ /** Written by earlier versions: an online fallback failure no longer applied. */
340
+ readonly onlineFallbackResolved?: boolean;
352
341
  /** The id the browser gave a message it sent, echoed so it can replace its optimistic copy. */
353
342
  readonly clientId?: string;
354
- /**
355
- * An assistant message an online agent is still writing: its content grows in place (same id and `seq`) until the reply
356
- * is final, when the flag goes. Fetch messages again from before the first streaming one to see it grow.
357
- */
343
+ /** Written by earlier versions: an online agent's reply still being written. */
358
344
  readonly streaming?: boolean;
359
- /** A draft whose run ended before the reply was final: what it had written. */
345
+ /** Written by earlier versions: a draft whose run ended before the reply was final. */
360
346
  readonly interrupted?: boolean;
361
347
  }
362
348
  /** A file sent with a message (`SendMessageRequest.attachmentIds`), or an upload not sent yet. */
@@ -412,7 +398,6 @@ export interface ConversationMessage {
412
398
  * | POST | `fallback` | | `ConversationDetail` |
413
399
  * | POST | `restore` | | `ConversationDetail` |
414
400
  * | GET | `agents` | | `ChatAgent[]` |
415
- * | POST | `copyAgent` | `CopyAgentRequest` | `Agent` |
416
401
  * | GET | `preferences` | | `ChatPreferences` |
417
402
  * | PATCH | `preferences` | `ChatPreferencesPatch` | `ChatPreferences` |
418
403
  * | GET | `settings` | | `ChatSettings` |
@@ -434,7 +419,6 @@ export declare const CHAT_ROUTES: {
434
419
  readonly restore: "agents/conversations/:conversationId/restore";
435
420
  readonly start: "agents/conversations/start";
436
421
  readonly agents: "agents/chatAgents";
437
- readonly copyAgent: "agents/:agentId/copy";
438
422
  readonly preferences: "agents/chatPreferences";
439
423
  readonly settings: "agents/chatSettings";
440
424
  readonly attachments: "agents/chatAttachments";
@@ -468,32 +452,20 @@ export interface ConversationPage {
468
452
  /** `POST conversations`. Creating starts no run; the first message does. */
469
453
  export interface CreateConversationRequest {
470
454
  /**
471
- * The agent to chat with, which the person must be allowed to wake; its type is the conversation's mode for good.
472
- * Without one: the person's default online agent
473
- * (`ChatPreferences.defaultAgentId`) while they may still wake it, else the system default
474
- * (`ChatSettings.defaultAgentId`), else `CONVERSATION_CONFLICT` `noChatAgent`.
455
+ * The agent to chat with, which must be enabled. Without one: the person's default agent
456
+ * (`ChatPreferences.defaultAgentId`) while it is enabled, else the system default (`ChatSettings.defaultAgentId`),
457
+ * else `CONVERSATION_CONFLICT` `noChatAgent`.
475
458
  */
476
459
  readonly agentId?: string;
477
460
  /** An explicit title (`user`); otherwise the first message gives one. */
478
461
  readonly title?: string;
479
462
  /** `panel` by default; otherwise a registered source. */
480
463
  readonly source?: ConversationSource;
481
- /**
482
- * An online agent: the entry of its list (`ChatAgent.models`) the conversation answers with, as `ConversationPatch.model`
483
- * sets it later; null or left out for the agent's default. 400 `INVALID_REQUEST` (`MODEL_NOT_LISTED`) for one the
484
- * agent does not list.
485
- */
486
- readonly model?: OnlineModelEntry | null;
487
464
  }
488
- /**
489
- * `PATCH conversation`: rename (the title becomes `user`'s and the agent may no longer change it), archive, or choose
490
- * the model an online conversation answers with: one of `ConversationDetail.models`, or null for the agent's default.
491
- * The choice applies from the next run; a model that fails fails the run, nothing falls back to another.
492
- */
465
+ /** `PATCH conversation`: rename (the title becomes `user`'s and the agent may no longer change it), or archive. */
493
466
  export interface ConversationPatch {
494
467
  readonly title?: string;
495
468
  readonly archived?: boolean;
496
- readonly model?: OnlineModelEntry | null;
497
469
  }
498
470
  /**
499
471
  * `GET messages`: without a page token, the newest `pageSize` messages; `meta.nextPageToken` pages back through older
@@ -570,29 +542,11 @@ export interface ChatAgent {
570
542
  readonly nameText: I18nText | null;
571
543
  readonly descriptionText: I18nText | null;
572
544
  readonly avatar: string | null;
573
- /** `online` or `runner`: the mode of the conversations it is started in. */
574
- readonly type: 'online' | 'runner';
575
- /**
576
- * An online agent: the entries of its list a new conversation may answer with (`CreateConversationRequest.model`), in
577
- * order, the first its default; empty for a runner agent.
578
- */
579
- readonly models: readonly ChatModelChoice[];
580
- /** The person's own agent, which only they may use (a "copy for myself"). */
581
- readonly personal: boolean;
582
545
  readonly isSystemDefault: boolean;
583
546
  readonly isMyDefault: boolean;
584
547
  readonly availability: ChatAvailability;
585
- }
586
- /**
587
- * `POST copyAgent`: a private copy of an agent the person may wake, owned by them and usable only by them. The copy
588
- * takes the agent's description, avatar, tool, model, instructions, business actions, skills, runners and limits, not
589
- * its variables.
590
- */
591
- export interface CopyAgentRequest {
592
- /** The copy's name; `<name> (copy)` by default. */
593
- readonly name?: string;
594
- /** Also make the copy the person's default online agent. */
595
- readonly makeDefault?: boolean;
548
+ /** Only personal runners have it: it takes only their owners' work. */
549
+ readonly personalOnly: boolean;
596
550
  }
597
551
  /** The person's own chat settings ("Profile › Agent"). */
598
552
  export interface ChatPreferences {
@@ -1 +1 @@
1
- {"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../shared/conversations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAEzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,8CAA8C;AAC9C,eAAO,MAAM,oBAAoB,iBAAiB,CAAC;AAEnD,+FAA+F;AAC/F,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAChD,0CAA0C;AAC1C,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAC/C,0CAA0C;AAC1C,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAC1C,4DAA4D;AAC5D,eAAO,MAAM,mBAAmB,QAAS,CAAC;AAC1C,8CAA8C;AAC9C,eAAO,MAAM,wBAAwB,EAAE,MAAyB,CAAC;AACjE,mCAAmC;AACnC,eAAO,MAAM,gCAAgC,KAAK,CAAC;AACnD,0DAA0D;AAC1D,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAC/C,+FAA+F;AAC/F,eAAO,MAAM,uBAAuB,EAAE,MAAwB,CAA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024 * 1024;
14
14
  export const CHAT_ATTACHMENTS_PER_MESSAGE_MAX = 10;
15
15
  /** How long an upload not sent with a message is kept. */
16
16
  export const CHAT_ATTACHMENT_ORPHAN_HOURS = 24;
17
- /** The largest image an online agent's model is shown; a larger one is listed by name only. */
18
- export const CHAT_IMAGE_TO_MODEL_MAX = 5 * 1024 * 1024;
19
17
  /** The raster images shown inline, by extension: the declared type must be the one listed. */
20
18
  export const INLINE_IMAGE_TYPES = {
21
19
  png: 'image/png',
@@ -74,27 +72,15 @@ export const PAGE_CONTEXT_KIND_PATTERN = /^[a-zA-Z][a-zA-Z0-9._-]{0,31}$/u;
74
72
  export const OFFLINE_REASONS = [
75
73
  /** The agent was deleted. */
76
74
  'agentMissing',
77
- /** The agent is archived. */
75
+ /** The agent is not enabled. */
78
76
  'agentArchived',
79
77
  /** The owner may no longer wake the agent. */
80
78
  'forbidden',
81
- /** No online runner with the agent's tool installed and signed in may run the owner's work. */
79
+ /** No online runner that has the agent's tool and model may run the owner's work. */
82
80
  'noRunner',
83
- /** An online agent: its model service no longer offers its model, or no model services are available. */
84
- 'modelUnavailable',
81
+ /** Only other people's personal runners have the agent's tool and model. */
82
+ 'othersPersonal',
85
83
  ];
86
- /** The entries named from the catalog (`ChatModelChoice`); what the catalog no longer has keeps its ids. */
87
- export function chatModelChoices(entries, catalog) {
88
- return entries.map((entry) => {
89
- const service = catalog.services.find((item) => item.name === entry.modelService);
90
- const option = service?.models.find((item) => item.value === entry.model);
91
- return {
92
- ...entry,
93
- serviceTitle: service?.title || entry.modelService,
94
- modelLabel: option?.label || entry.model,
95
- };
96
- });
97
- }
98
84
  /** How a consultation went: asked and not answered yet, answered, failed, or refused before it started. */
99
85
  export const CONSULTATION_STATES = [
100
86
  'running',
@@ -124,7 +110,6 @@ export const CONSULTATION_STATES = [
124
110
  * | POST | `fallback` | | `ConversationDetail` |
125
111
  * | POST | `restore` | | `ConversationDetail` |
126
112
  * | GET | `agents` | | `ChatAgent[]` |
127
- * | POST | `copyAgent` | `CopyAgentRequest` | `Agent` |
128
113
  * | GET | `preferences` | | `ChatPreferences` |
129
114
  * | PATCH | `preferences` | `ChatPreferencesPatch` | `ChatPreferences` |
130
115
  * | GET | `settings` | | `ChatSettings` |
@@ -146,7 +131,6 @@ export const CHAT_ROUTES = {
146
131
  restore: 'agents/conversations/:conversationId/restore',
147
132
  start: 'agents/conversations/start',
148
133
  agents: 'agents/chatAgents',
149
- copyAgent: 'agents/:agentId/copy',
150
134
  preferences: 'agents/chatPreferences',
151
135
  settings: 'agents/chatSettings',
152
136
  attachments: 'agents/chatAttachments',
@@ -166,10 +150,7 @@ export const CONVERSATION_CONFLICTS = [
166
150
  'noChatAgent',
167
151
  /** The agent tried to set the title after the owner renamed the conversation. */
168
152
  'titleLocked',
169
- /**
170
- * `fallback`: the conversation already uses the system default, or none is set or usable, or it is of the other type
171
- * (a conversation keeps its mode).
172
- */
153
+ /** `fallback`: the conversation already uses another agent in place of its own, or the system default cannot answer. */
173
154
  'noFallback',
174
155
  /** `restore`: the conversation is not on the system default, or its own agent is still unavailable. */
175
156
  'noRestore',
@@ -1 +1 @@
1
- {"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../shared/conversations.ts"],"names":[],"mappings":"AAiEA,8CAA8C;AAC9C,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAAC;AAEnD,+FAA+F;AAC/F,MAAM,CAAC,MAAM,6BAA6B,GAAG,EAAE,CAAC;AAChD,0CAA0C;AAC1C,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAC/C,0CAA0C;AAC1C,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAC;AAC1C,4DAA4D;AAC5D,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAC1C,8CAA8C;AAC9C,MAAM,CAAC,MAAM,wBAAwB,GAAW,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AACjE,mCAAmC;AACnC,MAAM,CAAC,MAAM,g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