@nocobase/app-plugin-agents 2.0.0-beta.1 → 2.0.0-beta.3

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 (79) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +6 -2
  3. package/dist/client/chat/controller.d.ts +5 -0
  4. package/dist/client/chat/controller.d.ts.map +1 -1
  5. package/dist/client/chat/controller.js +32 -11
  6. package/dist/client/chat/controller.js.map +1 -1
  7. package/dist/client/locales/de-DE.d.ts.map +1 -1
  8. package/dist/client/locales/de-DE.js +2 -0
  9. package/dist/client/locales/de-DE.js.map +1 -1
  10. package/dist/client/locales/es-ES.d.ts.map +1 -1
  11. package/dist/client/locales/es-ES.js +2 -0
  12. package/dist/client/locales/es-ES.js.map +1 -1
  13. package/dist/client/locales/fr-FR.d.ts.map +1 -1
  14. package/dist/client/locales/fr-FR.js +2 -0
  15. package/dist/client/locales/fr-FR.js.map +1 -1
  16. package/dist/client/locales/id-ID.d.ts.map +1 -1
  17. package/dist/client/locales/id-ID.js +2 -0
  18. package/dist/client/locales/id-ID.js.map +1 -1
  19. package/dist/client/locales/ja-JP.d.ts.map +1 -1
  20. package/dist/client/locales/ja-JP.js +2 -0
  21. package/dist/client/locales/ja-JP.js.map +1 -1
  22. package/dist/client/locales/pt-BR.d.ts.map +1 -1
  23. package/dist/client/locales/pt-BR.js +2 -0
  24. package/dist/client/locales/pt-BR.js.map +1 -1
  25. package/dist/client/locales/runWait.en-US.d.ts +2 -0
  26. package/dist/client/locales/runWait.en-US.d.ts.map +1 -1
  27. package/dist/client/locales/runWait.en-US.js +2 -0
  28. package/dist/client/locales/runWait.en-US.js.map +1 -1
  29. package/dist/client/locales/runWait.zh-CN.d.ts.map +1 -1
  30. package/dist/client/locales/runWait.zh-CN.js +2 -0
  31. package/dist/client/locales/runWait.zh-CN.js.map +1 -1
  32. package/dist/client/locales/vi-VN.d.ts.map +1 -1
  33. package/dist/client/locales/vi-VN.js +2 -0
  34. package/dist/client/locales/vi-VN.js.map +1 -1
  35. package/dist/client/locales/zh-TW.d.ts.map +1 -1
  36. package/dist/client/locales/zh-TW.js +2 -0
  37. package/dist/client/locales/zh-TW.js.map +1 -1
  38. package/dist/client/runs/format-wait.d.ts.map +1 -1
  39. package/dist/client/runs/format-wait.js +2 -0
  40. package/dist/client/runs/format-wait.js.map +1 -1
  41. package/dist/package.json +1 -1
  42. package/dist/server/core/conversations/attachments.d.ts +2 -1
  43. package/dist/server/core/conversations/attachments.d.ts.map +1 -1
  44. package/dist/server/core/conversations/attachments.js +31 -9
  45. package/dist/server/core/conversations/attachments.js.map +1 -1
  46. package/dist/server/core/conversations/conversation.service.d.ts +1 -1
  47. package/dist/server/core/conversations/conversation.service.d.ts.map +1 -1
  48. package/dist/server/core/conversations/conversation.service.js +68 -17
  49. package/dist/server/core/conversations/conversation.service.js.map +1 -1
  50. package/dist/server/core/conversations/ports.d.ts +2 -2
  51. package/dist/server/core/conversations/ports.d.ts.map +1 -1
  52. package/dist/server/core/runs/claim.d.ts.map +1 -1
  53. package/dist/server/core/runs/claim.js +24 -7
  54. package/dist/server/core/runs/claim.js.map +1 -1
  55. package/dist/server/core/runs/run.service.d.ts +2 -1
  56. package/dist/server/core/runs/run.service.d.ts.map +1 -1
  57. package/dist/server/core/runs/run.service.js +2 -2
  58. package/dist/server/core/runs/run.service.js.map +1 -1
  59. package/dist/server/core/runs/workload.d.ts +1 -1
  60. package/dist/server/core/runs/workload.d.ts.map +1 -1
  61. package/dist/server/core/runs/workload.js +43 -5
  62. package/dist/server/core/runs/workload.js.map +1 -1
  63. package/dist/server/routes/chat.js +4 -4
  64. package/dist/server/routes/chat.js.map +1 -1
  65. package/dist/server/routes/index.d.ts.map +1 -1
  66. package/dist/server/routes/index.js +3 -1
  67. package/dist/server/routes/index.js.map +1 -1
  68. package/dist/server/routes/schemas.d.ts.map +1 -1
  69. package/dist/server/routes/schemas.js +1 -0
  70. package/dist/server/routes/schemas.js.map +1 -1
  71. package/dist/shared/conversations.d.ts +5 -0
  72. package/dist/shared/conversations.d.ts.map +1 -1
  73. package/dist/shared/conversations.js.map +1 -1
  74. package/dist/shared/runs.d.ts +7 -3
  75. package/dist/shared/runs.d.ts.map +1 -1
  76. package/dist/shared/runs.js +2 -0
  77. package/dist/shared/runs.js.map +1 -1
  78. package/package.json +9 -9
  79. package/skills/nocobase-app-plugin-agents/references/verification-and-troubleshooting.md +2 -1
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@nocobase/app-plugin-agents",
3
3
  "displayName": "Agents",
4
4
  "description": "Agents for NocoBase applications: agents, the model services online agents call, their runs and conversations, and the runners people connect to run them (registration, the long-poll claim, slots, the sweeper, build jobs, and the runner and CLI tarballs the application serves).",
5
- "version": "2.0.0-beta.1",
5
+ "version": "2.0.0-beta.3",
6
6
  "type": "module",
7
7
  "prettier": "@nocobase/dev-config/prettier",
8
8
  "engines": {
@@ -183,14 +183,14 @@
183
183
  "react-virtuoso": "^4.18.15",
184
184
  "recharts": "^3.8.0",
185
185
  "remark-gfm": "^4.0.1",
186
- "@nocobase/app-cli": "^1.0.0-beta.31",
187
- "@nocobase/app-client": "^4.0.0-beta.6",
188
- "@nocobase/app-plugin-authentication": "^2.0.0-beta.17",
189
- "@nocobase/app-plugin-authorization": "^1.0.0-beta.34",
190
- "@nocobase/app-plugin-file": "^1.0.0-beta.28",
191
- "@nocobase/app-server": "^4.0.0-beta.0",
186
+ "@nocobase/app-cli": "^1.0.0-beta.32",
187
+ "@nocobase/app-client": "^4.0.0-beta.7",
188
+ "@nocobase/app-plugin-authentication": "^2.0.0-beta.18",
189
+ "@nocobase/app-plugin-authorization": "^1.0.0-beta.35",
190
+ "@nocobase/app-plugin-file": "^1.0.0-beta.29",
191
+ "@nocobase/app-server": "^5.0.0-beta.0",
192
192
  "@nocobase/authorization": "^1.0.0-beta.16",
193
- "@nocobase/db": "^1.0.0-beta.24",
193
+ "@nocobase/db": "^1.0.0-beta.25",
194
194
  "@nocobase/i18n": "^2.0.0-beta.1",
195
195
  "@nocobase/markdown-mermaid": "^0.1.0-beta.2",
196
196
  "@nocobase/service-provider": "^0.0.2-beta.2"
@@ -211,7 +211,7 @@
211
211
  "knex": "^3.1.0",
212
212
  "pg": "^8.23.0",
213
213
  "@nocobase/agent-runner": "0.1.0-beta.22",
214
- "@nocobase/app-testing": "0.1.0-beta.7",
214
+ "@nocobase/app-testing": "0.1.0-beta.8",
215
215
  "@nocobase/db-postgres": "0.1.0-beta.5",
216
216
  "@nocobase/db-sqlite": "0.1.0-beta.6",
217
217
  "@nocobase/dev-config": "0.1.0-beta.25",
@@ -15,7 +15,7 @@ Test what the App builds on the plugin, not the plugin itself. `@nocobase/app-pl
15
15
  | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
16
16
  | Runners | `GET /api/agents/runners` (`runtime list`): `status` (`online`, `offline`, `revoked`, `upgrade_required`), `lastSeenAt`, `tools` (installed, version, signed in), `policy`, `updateVersion`, `requiredProtocol` |
17
17
  | Agents that can take work | `GET /api/agents` (`agent list-all`): every agent, its state and why it cannot take the caller's work (`unusable`); `GET /api/agents/available` (`agent list`): the enabled ones and whether each can take work now |
18
- | Why a run waits | The run's detail and `runs.workload()`: `RUN_WAIT_REASONS` (`noRunnerOnline`, `toolUnavailable`, `noSharedRunner`, `missingFeatures`, `secretsNotAllowed`, `concurrencyFull`, `runnersBusy`, …) |
18
+ | Why a run waits | The run's detail and `runs.workload()`: `RUN_WAIT_REASONS` (`noRunnerOnline`, `toolQuota`, `toolUnavailable`, `noSharedRunner`, `missingFeatures`, `secretsNotAllowed`, `concurrencyFull`, `runnersBusy`, …) |
19
19
  | A run's history | `GET /api/agents/runs/:runId` and its events (`run get`, `run events`); `failureReason` and `failureDetail` |
20
20
  | Model services | `GET /api/agents/models` (what the App's own model calls may use), `POST /api/agents/checkModel` (`model check`) |
21
21
  | Tarballs served | `GET /api/agents/dist/manifest` signed in; `GET /api/agents/dist/products/<product>/targets/linux-x64?format=env` |
@@ -31,6 +31,7 @@ Test what the App builds on the plugin, not the plugin itself. `@nocobase/app-pl
31
31
  | ----------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
32
32
  | Runner shows offline | No heartbeat for 150 s. Check `nocobase-runner status` and `logs`, that its service is installed (`nocobase-runner service install`) and that it reaches the App's URL. `RUNNER_KEY_INVALID` or `RUNNER_REVOKED`: register it again with a new token. `RUNNER_OWNER_DISABLED`: its owner can no longer act (`people.provide` `inactive`). |
33
33
  | Runner shows `upgrade_required` | It speaks a protocol outside the App's range. Rebuild and remount the runner tarball from the App's `@nocobase/agent-runner`, then `nocobase-runner update` (an npm-installed runner: `npm install -g @nocobase/agent-runner@<version>`); one that reports no product: reinstall with the one-line install. See [Runners](runners.md). |
34
+ | Runs queue with `toolQuota` | The tool account quota is exhausted on otherwise fitting runners. The wait and model diagnostic include the earliest known reset in `until`; null means unknown. Choose another agent or runner, or restore quota. Scheduling and retries are unchanged. |
34
35
  | Runs queue with `toolUnavailable` or fail `toolAuth` | The agent's coding tool is not installed, not enabled for that runner, or not signed in. Sign in on the runner's machine as the runner's user and check the Runtimes page's Tools tab. |
35
36
  | Runs queue with `noRunnerOnline`, `noSharedRunner` or `missingFeatures` | No online runner fits: only other people's personal runners have the agent, or the runner is too old for what the run needs (skills, secrets, mounts). Add or share a runner, or update it. |
36
37
  | Run fails `policyRefused` | The runner owner's `policy.json` excludes the agent, subject or repository. Retried on another runner; change the policy on the machine if this one should take it. |