@nocobase/app-plugin-agents 1.0.0-beta.24 → 1.0.0-beta.25

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 (158) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +7 -3
  3. package/dist/client/api/client.d.ts +1 -19
  4. package/dist/client/api/client.d.ts.map +1 -1
  5. package/dist/client/api/client.js +0 -22
  6. package/dist/client/api/client.js.map +1 -1
  7. package/dist/client/api/keys.d.ts +0 -4
  8. package/dist/client/api/keys.d.ts.map +1 -1
  9. package/dist/client/api/keys.js +0 -3
  10. package/dist/client/api/keys.js.map +1 -1
  11. package/dist/client/chat/message-model.d.ts.map +1 -1
  12. package/dist/client/chat/message-model.js +24 -0
  13. package/dist/client/chat/message-model.js.map +1 -1
  14. package/dist/client/kit.d.ts +1 -1
  15. package/dist/client/kit.js +1 -1
  16. package/dist/client/locales/de-DE.d.ts.map +1 -1
  17. package/dist/client/locales/de-DE.js +4 -53
  18. package/dist/client/locales/de-DE.js.map +1 -1
  19. package/dist/client/locales/en-US.d.ts +1 -42
  20. package/dist/client/locales/en-US.d.ts.map +1 -1
  21. package/dist/client/locales/en-US.js +4 -45
  22. package/dist/client/locales/en-US.js.map +1 -1
  23. package/dist/client/locales/es-ES.d.ts.map +1 -1
  24. package/dist/client/locales/es-ES.js +4 -56
  25. package/dist/client/locales/es-ES.js.map +1 -1
  26. package/dist/client/locales/fr-FR.d.ts.map +1 -1
  27. package/dist/client/locales/fr-FR.js +4 -56
  28. package/dist/client/locales/fr-FR.js.map +1 -1
  29. package/dist/client/locales/id-ID.d.ts.map +1 -1
  30. package/dist/client/locales/id-ID.js +4 -53
  31. package/dist/client/locales/id-ID.js.map +1 -1
  32. package/dist/client/locales/ja-JP.d.ts.map +1 -1
  33. package/dist/client/locales/ja-JP.js +4 -53
  34. package/dist/client/locales/ja-JP.js.map +1 -1
  35. package/dist/client/locales/pt-BR.d.ts.map +1 -1
  36. package/dist/client/locales/pt-BR.js +4 -56
  37. package/dist/client/locales/pt-BR.js.map +1 -1
  38. package/dist/client/locales/runtimes.en-US.d.ts +0 -8
  39. package/dist/client/locales/runtimes.en-US.d.ts.map +1 -1
  40. package/dist/client/locales/runtimes.en-US.js +0 -8
  41. package/dist/client/locales/runtimes.en-US.js.map +1 -1
  42. package/dist/client/locales/runtimes.zh-CN.d.ts.map +1 -1
  43. package/dist/client/locales/runtimes.zh-CN.js +0 -8
  44. package/dist/client/locales/runtimes.zh-CN.js.map +1 -1
  45. package/dist/client/locales/vi-VN.d.ts.map +1 -1
  46. package/dist/client/locales/vi-VN.js +4 -53
  47. package/dist/client/locales/vi-VN.js.map +1 -1
  48. package/dist/client/locales/zh-CN.d.ts.map +1 -1
  49. package/dist/client/locales/zh-CN.js +4 -45
  50. package/dist/client/locales/zh-CN.js.map +1 -1
  51. package/dist/client/locales/zh-TW.d.ts.map +1 -1
  52. package/dist/client/locales/zh-TW.js +4 -53
  53. package/dist/client/locales/zh-TW.js.map +1 -1
  54. package/dist/client/pages/agents/agent-dialog.d.ts +1 -2
  55. package/dist/client/pages/agents/agent-dialog.d.ts.map +1 -1
  56. package/dist/client/pages/agents/agent-dialog.js +9 -25
  57. package/dist/client/pages/agents/agent-dialog.js.map +1 -1
  58. package/dist/client/pages/agents/agent-state.d.ts +4 -4
  59. package/dist/client/pages/agents/agent-state.d.ts.map +1 -1
  60. package/dist/client/pages/agents/agent-state.js +4 -8
  61. package/dist/client/pages/agents/agent-state.js.map +1 -1
  62. package/dist/client/pages/agents/available-models-drawer.js +2 -2
  63. package/dist/client/pages/agents/available-models-drawer.js.map +1 -1
  64. package/dist/client/pages/agents/index.js +1 -1
  65. package/dist/client/pages/agents/runner-agents.d.ts.map +1 -1
  66. package/dist/client/pages/agents/runner-agents.js +6 -15
  67. package/dist/client/pages/agents/runner-agents.js.map +1 -1
  68. package/dist/client/pages/runtimes/runner-cells.d.ts +2 -4
  69. package/dist/client/pages/runtimes/runner-cells.d.ts.map +1 -1
  70. package/dist/client/pages/runtimes/runner-cells.js +7 -34
  71. package/dist/client/pages/runtimes/runner-cells.js.map +1 -1
  72. package/dist/client/pages/runtimes/runner-sheet.js +1 -1
  73. package/dist/client/pages/runtimes/runner-sheet.js.map +1 -1
  74. package/dist/database/migrations/.manifest.json +4 -0
  75. package/dist/database/migrations/202610310001_ag_retire_pending_runner_agents.d.ts +12 -0
  76. package/dist/database/migrations/202610310001_ag_retire_pending_runner_agents.d.ts.map +1 -0
  77. package/dist/database/migrations/202610310001_ag_retire_pending_runner_agents.js +174 -0
  78. package/dist/database/migrations/202610310001_ag_retire_pending_runner_agents.js.map +1 -0
  79. package/dist/package.json +1 -1
  80. package/dist/server/composition.d.ts +3 -3
  81. package/dist/server/composition.js +1 -1
  82. package/dist/server/composition.js.map +1 -1
  83. package/dist/server/core/agents/agent.history.d.ts +0 -2
  84. package/dist/server/core/agents/agent.history.d.ts.map +1 -1
  85. package/dist/server/core/agents/agent.history.js +0 -4
  86. package/dist/server/core/agents/agent.history.js.map +1 -1
  87. package/dist/server/core/agents/agent.service.d.ts +3 -30
  88. package/dist/server/core/agents/agent.service.d.ts.map +1 -1
  89. package/dist/server/core/agents/agent.service.js +9 -124
  90. package/dist/server/core/agents/agent.service.js.map +1 -1
  91. package/dist/server/core/agents/agent.store.d.ts +0 -2
  92. package/dist/server/core/agents/agent.store.d.ts.map +1 -1
  93. package/dist/server/core/agents/agent.store.js +1 -5
  94. package/dist/server/core/agents/agent.store.js.map +1 -1
  95. package/dist/server/core/agents/agent.views.d.ts.map +1 -1
  96. package/dist/server/core/agents/agent.views.js +0 -14
  97. package/dist/server/core/agents/agent.views.js.map +1 -1
  98. package/dist/server/core/agents/available-models.d.ts.map +1 -1
  99. package/dist/server/core/agents/available-models.js +6 -2
  100. package/dist/server/core/agents/available-models.js.map +1 -1
  101. package/dist/server/online/agent/configuration.d.ts +1 -0
  102. package/dist/server/online/agent/configuration.d.ts.map +1 -1
  103. package/dist/server/online/agent/configuration.js +86 -46
  104. package/dist/server/online/agent/configuration.js.map +1 -1
  105. package/dist/server/online/agent/runner/backend.d.ts.map +1 -1
  106. package/dist/server/online/agent/runner/backend.js +20 -9
  107. package/dist/server/online/agent/runner/backend.js.map +1 -1
  108. package/dist/server/online/agent/runner/projection.d.ts +6 -1
  109. package/dist/server/online/agent/runner/projection.d.ts.map +1 -1
  110. package/dist/server/online/agent/runner/projection.js +106 -5
  111. package/dist/server/online/agent/runner/projection.js.map +1 -1
  112. package/dist/server/online/agent/service.d.ts.map +1 -1
  113. package/dist/server/online/agent/service.js +0 -2
  114. package/dist/server/online/agent/service.js.map +1 -1
  115. package/dist/server/online/gateway.d.ts +6 -2
  116. package/dist/server/online/gateway.d.ts.map +1 -1
  117. package/dist/server/online/gateway.js +1 -1
  118. package/dist/server/online/gateway.js.map +1 -1
  119. package/dist/server/online/providers.d.ts.map +1 -1
  120. package/dist/server/online/providers.js +26 -16
  121. package/dist/server/online/providers.js.map +1 -1
  122. package/dist/server/online/services.d.ts.map +1 -1
  123. package/dist/server/online/services.js +10 -4
  124. package/dist/server/online/services.js.map +1 -1
  125. package/dist/server/routes/admin.d.ts.map +1 -1
  126. package/dist/server/routes/admin.js +1 -103
  127. package/dist/server/routes/admin.js.map +1 -1
  128. package/dist/server/routes/schemas.d.ts +1 -13
  129. package/dist/server/routes/schemas.d.ts.map +1 -1
  130. package/dist/server/routes/schemas.js +1 -45
  131. package/dist/server/routes/schemas.js.map +1 -1
  132. package/dist/server/tokens.d.ts +1 -0
  133. package/dist/server/tokens.d.ts.map +1 -1
  134. package/dist/server/tokens.js +1 -0
  135. package/dist/server/tokens.js.map +1 -1
  136. package/dist/shared/agents.d.ts +8 -41
  137. package/dist/shared/agents.d.ts.map +1 -1
  138. package/dist/shared/agents.js +3 -4
  139. package/dist/shared/agents.js.map +1 -1
  140. package/dist/shared/model-catalog.d.ts +0 -2
  141. package/dist/shared/model-catalog.d.ts.map +1 -1
  142. package/dist/shared/model-catalog.js +0 -4
  143. package/dist/shared/model-catalog.js.map +1 -1
  144. package/docs/native-sandbox.md +3 -3
  145. package/docs/retire-pending-runner-agents.md +46 -0
  146. package/docs/runner-agents.md +8 -12
  147. package/package.json +3 -3
  148. package/skills/nocobase-app-plugin-agents/SKILL.md +1 -1
  149. package/skills/nocobase-app-plugin-agents/references/agents.md +8 -8
  150. package/skills/nocobase-app-plugin-agents/references/online-agent.md +5 -3
  151. package/dist/client/pages/agents/cleanup-drawer.d.ts +0 -7
  152. package/dist/client/pages/agents/cleanup-drawer.d.ts.map +0 -1
  153. package/dist/client/pages/agents/cleanup-drawer.js +0 -214
  154. package/dist/client/pages/agents/cleanup-drawer.js.map +0 -1
  155. package/dist/server/core/agents/discovery.d.ts +0 -12
  156. package/dist/server/core/agents/discovery.d.ts.map +0 -1
  157. package/dist/server/core/agents/discovery.js +0 -39
  158. package/dist/server/core/agents/discovery.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../shared/agents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,kGAAkG;AAClG,eAAO,MAAM,aAAa,+BAAgC,CAAC;AAE3D,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,cAAc,6CAA8C,CAAC;AAE1E,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,8GAA8G;AAC9G,eAAO,MAAM,yBAAyB,EAAE,MAA8B,CAAC;AAEvE,oGAAoG;AACpG,eAAO,MAAM,eAAe,+BAA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AQ,CAAC;IAC1B,kDAAkD;IAClD,QAAQ,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC;IAC/B,iDAAiD;IACjD,QAAQ,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC;IAChC,+CAA+C;IAC/C,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,iHAAiH;IACjH,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,gFAAgF;IAChF,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC;CAC5B;AAED,gFAAgF;AAChF,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,6FAA6F;AAC7F,eAAO,MAAM,mBAAmB,EAAE,UAcjC,CAAC"}
@@ -2,10 +2,10 @@ import { TOOL_EFFORTS, } from '@nocobase/agent-protocol';
2
2
  /** Where an agent comes from: discovered from what runners report, or kept by the application. */
3
3
  export const AGENT_SOURCES = ['runner', 'system'];
4
4
  /**
5
- * Whether an agent is offered work: `pending` (discovered, nobody enabled it yet), `enabled`, `disabled`. Only enabled
5
+ * Whether an agent is offered work: `enabled` or `disabled`. Only enabled
6
6
  * agents are offered work, mentioned or chatted with.
7
7
  */
8
- export const AGENT_STATUSES = ['pending', 'enabled', 'disabled'];
8
+ export const AGENT_STATUSES = ['enabled', 'disabled'];
9
9
  /** How long a tool and model may go unreported by every runner before its agent shows as having no runner. */
10
10
  export const AGENT_UNREPORTED_AFTER_MS = 14 * 24 * 60 * 60_000;
11
11
  /** When in a conversation an agent asks before changing data: every change, or only larger ones. */
@@ -25,13 +25,12 @@ export function sameEntry(a, b) {
25
25
  return a.tool === b.tool && (a.model ?? null) === (b.model ?? null);
26
26
  }
27
27
  /**
28
- * Why an agent cannot take the caller's work now: `pending` and `disabled` (not enabled), `unreported` (no runner
28
+ * Why an agent cannot take the caller's work now: `disabled` (not enabled), `unreported` (no runner
29
29
  * reported its tool and model for `AGENT_UNREPORTED_AFTER_MS`), `notConfigured` (an application's own agent with no
30
30
  * tool and model yet), `noRunner` (no runner online that has it and would take the caller's work), `othersPersonal`
31
31
  * (only other people's personal runners have it).
32
32
  */
33
33
  export const AGENT_UNUSABLE_REASONS = [
34
- 'pending',
35
34
  'disabled',
36
35
  'unreported',
37
36
  'notConfigured',
@@ -1 +1 @@
1
- {"version":3,"file":"agents.js","sourceRoot":"","sources":["../../shared/agents.ts"],"names":[],"mappings":"AAiBA,OAAO,EACL,YAAY,GAGb,MAAM,0BAA0B,CAAC;AAIlC,kGAAkG;AAClG,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAU,CAAC;AAI3D;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,CAAU,CAAC;AAI1E,8GAA8G;AAC9G,MAAM,CAAC,MAAM,yBAAyB,GAAW,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;AAEvE,oGAAoG;AACpG,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAU,CAAC;AAc7D,8CAA8C;AAC9C,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAEpC,kDAAkD;AAClD,MAAM,UAAU,UAAU,CAAC,KAE1B;IACC,OAAO,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;AACxC,CAAC;AAED,wEAAwE;AACxE,MAAM,UAAU,UAAU,CAAC,KAE1B;IACC,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACrE,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,SAAS,CAAC,CAAmB,EAAE,CAA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AAW;IACX,qEAAqE;IACrE,UAAU;IACV,UAAU;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"}
@@ -57,8 +57,6 @@ export declare function sanitizeAgentNamePart(value: string): string;
57
57
  export declare function agentNameOf(tool: AgentTool, model: string, displayModel?: string): string;
58
58
  /** Whether two ids of one tool's model name the same model. */
59
59
  export declare function sameModel(tool: AgentTool, a: string, b: string): boolean;
60
- /** Display identity only. Unknown models retain their provider; execution identity never changes. */
61
- export declare function discoveryKey(tool: AgentTool, model: string): string;
62
60
  /** Provider ids remain execution identities; these names are for display only. */
63
61
  export declare function providerLabel(provider: string): string;
64
62
  export declare function quotaTargetLabel(tool: AgentTool, scope: 'tool' | 'provider' | 'model', target: string): string;
@@ -1 +1 @@
1
- {"version":3,"file":"model-catalog.d.ts","sourceRoot":"","sources":["../../shared/model-catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGxE,4CAA4C;AAC5C,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAQ3D,CAAC;AAEF,oEAAoE;AACpE,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAGlE,CAAC;AAEF;;;;GA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EAAE,SAAS,YAAY,EAiFhD,CAAC;AAkBF;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAYxE;AAED,8GAA8G;AAC9G,wBAAgB,YAAY,CAC1B,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,MAAM,GACZ,YAAY,GAAG,SAAS,CAK1B;AAED,4FAA4F;AAC5F,wBAAgB,UAAU,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAajE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAU3D;AAED,iEAAiE;AACjE,wBAAgB,WAAW,CACzB,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,MAAM,GACpB,MAAM,CAQR;AAED,+DAA+D;AAC/D,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAExE;AAED,kFAAkF;AAClF,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAmBtD;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,EACpC,MAAM,EAAE,MAAM,GACb,MAAM,CAMR"}
@@ -196,10 +196,6 @@ export function agentNameOf(tool, model, displayModel) {
196
196
  export function sameModel(tool, a, b) {
197
197
  return normalizeModel(tool, a) === normalizeModel(tool, b);
198
198
  }
199
- /** Display identity only. Unknown models retain their provider; execution identity never changes. */
200
- export function discoveryKey(tool, model) {
201
- return `${tool}:${catalogEntry(tool, model)?.id ?? model}`;
202
- }
203
199
  /** Provider ids remain execution identities; these names are for display only. */
204
200
  export function providerLabel(provider) {
205
201
  const names = {
@@ -1 +1 @@
1
- {"version":3,"file":"model-catalog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M,CAAC,WAAW,EAAE,EAAE,CAC7D;aACA,IAAI,EAAE,CACV,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC9B,IAAe,EACf,KAAoC,EACpC,MAAc;IAEd,OAAO,KAAK,KAAK,MAAM;QACrB,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,UAAU;YACpB,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC;YACvB,CAAC,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AACjC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  # Native Skills and application CLI
2
2
 
3
- Native OnlineAgent realtime and background sessions may explicitly select a virtual Shell and Skills. This is not a Runner, a checkout or a host execution environment. Existing sessions with no environment tools keep their existing behavior; nothing is enabled application-wide by default.
3
+ Native OnlineAgent realtime and background sessions enable the virtual Shell (`bash`) and Skill reader (`skill`) by default. This is not a Runner, a checkout or a host execution environment. Global scopes, named scopes and trusted options can replace the tool list, including `tool: []` to disable all tools. Existing sessions retain their saved tool selection; Runner sessions do not inherit these native defaults.
4
4
 
5
5
  ## Select capabilities on the server
6
6
 
@@ -16,7 +16,7 @@ const chat = await online.realtime(actor, { scope: ['reports'] });
16
16
  await chat.send([{ role: 'user', content: 'Follow the report Skill.' }]);
17
17
  ```
18
18
 
19
- Select both `bash` and `skill` when selecting Skills. Bash alone may have no Skills. HTTP may select an allowed scope, not raw tools/Skill IDs. Scopes select configuration and grant no permission. Native background uses the same scope through `online.background(actor, { scope: ['reports'] })`, then the ordinary `run(messages, draft07Schema)`, `get()` and `try({ wait })`. An observation timeout returns `{ ok: false, reason: 'pending' }` and does not stop work. `get` returns only a validated, persisted, finalized result. Runner refuses these native-only capabilities instead of silently switching execution modes.
19
+ New native sessions can select Skills without repeating the default tools. If a scope or trusted options replace the tool list, include both `bash` and `skill` when selecting Skills. Either tool may be enabled without selected Skills; the Skill reader reports an unknown selected Skill when none matches. HTTP may select an allowed scope, not raw tools/Skill IDs. Scopes select configuration and grant no permission. Native background uses the same scope through `online.background(actor, { scope: ['reports'] })`, then the ordinary `run(messages, draft07Schema)`, `get()` and `try({ wait })`. An observation timeout returns `{ ok: false, reason: 'pending' }` and does not stop work. `get` returns only a validated, persisted, finalized result. Runner refuses explicitly selected native-only capabilities instead of silently switching execution modes.
20
20
 
21
21
  ## Current resources, not persisted environments
22
22
 
@@ -44,7 +44,7 @@ Real upload/download/ticket/stream/file transfer remains unavailable. Commands r
44
44
 
45
45
  The standard provider creates an application-local fgo_ credential only on first bash; the existing x-nocobase-run-token/runToken transport also carries independent real fgr_ Run credentials. Each resolver only recognizes its own prefix. The token service takes trusted user/execution IDs, retains hashes in memory with a 30-minute fallback expiry and releases after actual work exits. It adds no API key, token table, fake Run, new Header/scheme or framework-wide authentication semantics. Credentials never enter model input, argv, VFS/env or private/public messages.
46
46
 
47
- The application manifest is caller-filtered and every dispatched request still checks actual authentication, user state, authorization and business Policies. Only the explicitly declared owner-checked conversation list/get/update accept this new identity; their CLI identities are person-only, not Run. Other routes must explicitly support the existing scoped-credential boundary before an agent can use them. Run, Runner and attachment routes are unchanged. The CLI is not a general network proxy or a second permission system.
47
+ The application manifest is caller-filtered and every dispatched request still checks actual authentication, user state, authorization and business Policies. The explicitly declared owner-checked conversation list/get/update accept this identity; their CLI identities are person-only, not Run. When the optional Knowledge plugin is enabled, it separately opts in only its `kb search` and `kb read <docId>` routes, preserving the current user's document ACL and rejecting Run credentials. Other routes must explicitly support the existing scoped-credential boundary before an agent can use them. Run, Runner and attachment routes are unchanged. The CLI is not a general network proxy or a second permission system.
48
48
 
49
49
  Stop propagates to interpreter, request and response reader and waits for actual accepted work to exit. Stop is not rollback; an already committed write can remain committed. Neither tools nor entire scripts are automatically retried, and toolCallId is not a business idempotency key. For a lost/failed response, query the record first; if still uncertain, report an unknown outcome rather than claiming success or rollback. Dispose or persistence failure keeps execution busy; `retryFinalization()` retries only closed-resource cleanup/persistence.
50
50
 
@@ -0,0 +1,46 @@
1
+ # Retiring legacy runner discoveries
2
+
3
+ Upgrade deletes runner records with the retired `pending` status only when they have no run or known reference other than automatic creation audits. An audit is ignored exactly when `agAgentChanges.action = 'created' AND actorUserId IS NULL`, regardless of its revision or change contents. Those audits are deleted by the existing foreign-key cascade with their agent. Any other audit, run or business reference keeps the agent disabled and its history intact. Existing enabled/disabled agents and other sources are unchanged. Deployment rollback does not restore deleted agents, their cascaded audits or the retired state; restoration needs an operator’s existing database backup.
4
+
5
+ ## Read-only preflight
6
+
7
+ Run the preflight separately for each installation before applying the new migration. The operator must already have authorized read-only database access and the installation’s own connection and naming configuration. Do not use an agent run token, manufacture a different identity, or run an application startup that auto-applies migrations to obtain these counts. A read-only database account provides an additional enforcement boundary.
8
+
9
+ The frozen migration exports `classifyPendingRunnerAgents({ builder, query })`. It issues SELECT and collection-existence queries only and uses no application service, transaction, lock or write. Use the installation’s already-open `DatabaseConnection` in its authorized maintenance tooling and import that function from the reviewed migration source (or its compiled `dist/database/migrations/202610310001_ag_retire_pending_runner_agents.js`). Do not call the migration’s `up` during preflight.
10
+
11
+ ```ts
12
+ const result = await classifyPendingRunnerAgents({
13
+ builder: connection.builder,
14
+ query: connection.query,
15
+ });
16
+ console.log(
17
+ JSON.stringify({
18
+ candidates: result.candidates.length,
19
+ delete: result.remove.length,
20
+ disable: result.disable.length,
21
+ references: result.reasons,
22
+ }),
23
+ );
24
+ ```
25
+
26
+ Return only the installation label, application/framework revision, observation time, dialect, candidate/deletion/disable counts and aggregated reference reasons. Deletion plus disable must equal candidates; reference totals may overlap because one record can have several references. Never return identifiers, variable values, tokens or personal data. Any failed query or malformed reference JSON fails preflight; do not substitute zero.
27
+
28
+ The management Studio CLI does not currently expose this full classification. Its callable `agent list` is a roster of enabled agents, so it cannot establish these counts. An authorized management operator and each customer’s administrator must return their own preflight result; reported examples are not measured deletion counts.
29
+
30
+ ## Frozen reference boundary
31
+
32
+ - Runs in every status, resumable sessions, run tokens and run requests; Agent actors of run inputs and requests.
33
+ - Conversations and fallback agents, personal/team default chat choices, agent users and configuration audits other than system creation audits (`action = 'created' AND actorUserId IS NULL`). Human creation audits and all non-creation audits, including system ones, retain the agent. Ignoring a system creation audit never overrides another reference.
34
+ - Agent-scoped variables, variable audits and skill attachments; only scope identifiers are selected, never encrypted values.
35
+ - Optional Projects executors, comment authors/deleters, activity actors and structured origins/details, plan creators/executors/proposers/source data and row parameters/results.
36
+ - Optional Studio project initializations, delegations, stage guards and their structured configuration, saved settings (including manager first/fallback choices), and inbox actors/data.
37
+
38
+ Structured JSON is examined recursively for exact candidate identifiers, including object keys. Both decoded objects and serialized JSON are supported. This deliberately retains an exact identifier match conservatively. Comment prose is not parsed. Archived/deleted history and final/cancelled requests are included. Personal-computer `agentSessions.agentId` belongs to the separate ACP computer namespace and is not a runner-agent reference.
39
+
40
+ Custom customer extensions are outside this frozen source list. Before approving an upgrade, the customer administrator must identify any extra runner-agent references and retain those candidates; unresolved custom references block claiming a record is safe to delete. If extra references exist, extend and review the migration before release rather than executing an ad hoc deletion.
41
+
42
+ ## Release and cost
43
+
44
+ Apply the ordinary upgrade with the old application stopped. The new migration sorts after `202610290001_ag_repair_runner_agents`, which clears stale runner markers without changing status. Classification completes before any mutation, inside the migration runner’s existing transaction. Queries and mutations use batches of at most 200 identifiers; JSON scans page by a stable key. No new table or recurring cleanup is installed.
45
+
46
+ Regular requests, polls, claims and sweepers gain no queries, writes, locks or transactions. Agent lists stop reading discovery preferences; edits stop locking those preferences. Recommended-model creation and report refresh behavior remain as before. Merge the framework first, then update the application’s framework pointer to a commit carried by its public target branch and regenerate the CLI reference.
@@ -1,12 +1,12 @@
1
1
  # Agents discovered from runners
2
2
 
3
- Each runner reports the coding tools it has, and for each tool whether it is signed in and the models its account lists (`tools[].models`). In the transaction of that report, `AgentService.syncRunner` keeps one agent for each tool and model the runner reports for a tool it has enabled, installed and signed in (`reportedModels` in `shared/runners.ts`): a combination no agent exists for yet becomes a new agent, `pending`, and the agents the runner still reports get their `lastReportedAt` refreshed, at most every ten minutes. The agent's id is `runnerAgentId(tool, model)`, so two runners reporting the same combination keep one agent. Reports do not restore marked records or fill missing model entries. Runner agents are listed according to their status; their model entry is derived from their own tool and model when read, preserving a stored reasoning effort when present.
3
+ Runners report their signed-in coding tools and models. `AgentService.syncRunner` automatically creates and enables only the application’s `recommendedModels`; other models appear in the live `GET /api/agents/availableModels` list without a database row. An administrator adds one with `POST /api/agents/runnerAgents` (`agent create`), providing what it is good at. The deterministic `runnerAgentId(tool, model)` keeps one agent per combination. Reports refresh existing agents’ `lastReportedAt` at most every ten minutes and never re-enable disabled agents or repair historical data.
4
4
 
5
5
  Models are normalized before they are compared (`normalizeModel` in `shared/model-catalog.ts`): a known alias such as Claude Code's `opus` becomes the catalog's id, a release suffix (a date or `-latest`) is dropped, and OpenCode and Pi keep their `provider/` prefix with the model after it normalized the same way. The catalog names each agent (`agentNameOf`, such as "Claude · Opus 5.5") and suggests, in English and Chinese, what it is good at; a model it does not know is named after its id with nothing suggested. Keep the catalog to the models the tools offer today, checked against `TOOL_MODEL_SUGGESTIONS` in `@nocobase/agent-protocol`; removing a model from it only loses its label and suggestion, never the agent.
6
6
 
7
- A pending agent is offered no work. Someone who manages agents (`agents.agents` manage) enables it on the Agent page or with `PATCH /api/agents/:agentId` (`agent update` on the CLI), writing what it is good at (required: `GOOD_AT_REQUIRED` otherwise) and, optionally, its default reasoning effort among those its tool takes (`EFFORT_UNSUPPORTED` otherwise; `medium` by default when the tool takes it). Every change names the revision it was made against and is refused with `REVISION_CONFLICT` when the agent changed since. Disabling an agent withdraws its queued runs and announces `agent.removed` with `reason` `disabled`; its conversations report it as not enabled until it is enabled again.
7
+ Runner agents have two states: enabled and disabled. Adding one enables it directly. An administrator changes its description, default reasoning effort or enabled state with `PATCH /api/agents/:agentId` (`agent update`). Enabling requires a description (`GOOD_AT_REQUIRED`); unsupported efforts return `EFFORT_UNSUPPORTED`. Every edit supplies `expectedRevision`; stale edits return `REVISION_CONFLICT`. Disabling still withdraws queued runs and announces `agent.removed` with reason `disabled`.
8
8
 
9
- Where an agent can run is worked out per caller (`GET /api/agents`, `AgentView`): the online shared runners and personal runners whose tool is enabled, installed and signed in with the agent's model, not marked unavailable there, and whose owner's policy takes the agent. `personalOnly` says only personal runners have it, which take their owners' work only. `unusable` says why the caller's work cannot start now: `pending`, `disabled`, `unreported` (no runner reported it for 14 days, `AGENT_UNREPORTED_AFTER_MS`), `notConfigured` (an application's own agent with no tool and model yet), `noRunner` or `othersPersonal` (only other people's personal runners have it). The roster a project manager picks from (`GET /api/agents/available`, `Agents.roster`) lists the enabled agents reported recently, each with whether a runner would take the caller's work now.
9
+ Where an agent can run is worked out per caller (`GET /api/agents`, `AgentView`): the online shared runners and personal runners whose tool is enabled, installed and signed in with the agent's model, not marked unavailable there, and whose owner's policy takes the agent. `personalOnly` says only personal runners have it, which take their owners' work only. `unusable` says why the caller's work cannot start now: `disabled`, `unreported` (no runner reported it for 14 days, `AGENT_UNREPORTED_AFTER_MS`), `notConfigured` (an application's own agent with no tool and model yet), `noRunner` or `othersPersonal` (only other people's personal runners have it). The roster a project manager picks from (`GET /api/agents/available`, `Agents.roster`) lists the enabled agents reported recently, each with whether a runner would take the caller's work now.
10
10
 
11
11
  A run fails `modelUnavailable` when the tool's account cannot use the model after all. The claim's runner then marks that tool and model unavailable (`Runner.unavailableModels`, with the models it reported at the time), and no claim offers the model there until the runner reports the tool's models differently, such as after its account changed. Other runners are unaffected.
12
12
 
@@ -14,16 +14,12 @@ An application keeps agents of its own with `ensureSystem` (`source` `system`),
14
14
 
15
15
  Upgrading from before runner agents were introduced removes every agent an earlier version kept, online agents included (`202610240020_ag_runner_agents`): their rows stay marked `deletedAt` and disabled, so runs, comments and conversations that name them still show their names; their queued runs are cancelled, pending run requests withdrawn, and default chat agents that named them cleared. Those legacy records remain removed. A repair migration clears stale deletion and archive markers on runner agents and fills an empty model entry from the stored tool and model, using the tool's initial reasoning effort. It keeps each agent's status unchanged, and rolling back leaves the repaired data in place. Reads already show runner agents by status and derive a missing model entry, so an enabled agent can keep taking work before the migration runs. Older hand-configured and application-owned agents keep their existing removal behavior. The model services stay and keep serving the application's own model calls.
16
16
 
17
- ## Discovery management
17
+ ## Available models and history
18
18
 
19
- Subject context providers may implement `prepare(run)` to read permissions outside the claim transaction; `assemble(conn, claim, prepared)` consumes its result inside the transaction. Failed preparation provides no result, so consumers must default to no capabilities. The same preparation runs when reading an active run's context or skill list. This prepares context and checkout guidance only; operation authorization still checks current identity permissions on every request.
19
+ The Agent page lists enabled agents by default. “Show disabled” includes disabled agents in the same table. “Available models” reads current runner reports and existing enabled/disabled runner agents; an “Added” label means an agent with one of those states actually exists. Its availability is computed separately from the agent state. Adding an existing combination returns `AGENT_EXISTS`; edit the existing agent to enable it again.
20
20
 
21
- The Agent page opens with enabled agents only, including enabled agents without an online runner. New discoveries are collapsed by default, grouped by tool, and searchable by catalog name, model ID or provider. Its count is the number of display groups. Disabled agents have a separate accessible view. Known catalog models share a display group across providers; unknown models keep the full provider-qualified ID. This grouping never changes `runnerAgentId`, existing database rows or execution model entries. The enable dialog selects the original provider candidate and shows its runner availability; opening an enabled agent also exposes its other provider candidates.
21
+ The old discovery preference and cleanup endpoints have been removed, together with `agent discovery set` and `agent cleanup list/run`. Historical migrations and the unused preference collection remain unchanged.
22
22
 
23
- Administrators share ignore preferences, stored separately in `agDiscoveryPreferences` by `discoveryKey(tool, model)`. Only pending discoveries are hidden; disabled agents stay accessible and enabled groups cannot be ignored. The ignored view restores a group to the pending discovery list without enabling it. Reports, refreshes, restarts and newly reported providers of the same known model preserve the preference. Ignoring never deletes an agent or changes its description, execution entries or historical references.
23
+ Migration `202610310001_ag_retire_pending_runner_agents` runs after the runner-marker repair. It deletes only runner agents still in the retired state with no run and no known reference except system creation audits (`agAgentChanges.action = 'created' AND actorUserId IS NULL`, without revision or change-content restrictions). The existing foreign key cascades those audits when deleting the agent. All other audits, runs and business references retain the agent as disabled with its history intact. Optional Projects and Studio references are checked when those collections exist. Malformed reference JSON or a failed reference query aborts classification before writes. The migration and its `down` do not restore deleted agents, their cascaded creation audits or the retired state. See [operator preflight](retire-pending-runner-agents.md) before upgrading an installation with custom references.
24
24
 
25
- `PUT /api/agents/discoveryPreferences` (`agent discovery set --input <file>`) requires `agents.agents` manage. Send `{ "groups": [{ "key": "pi:gpt-6-astra", "expectedRevision": 0 }], "ignored": true }`; use `false` to restore. `GET /api/agents` returns each group's `discoveryKey`, `discoveryRevision` and `ignored` alongside the existing view. Batches are atomic and limited to 256 unique keys. Ignoring and enabling lock and increment the same preference revision; stale requests return `409 REVISION_CONFLICT`, and enabling an ignored group requires restoring it first. Non-pending candidates remain in their existing state. The new migration adds only the preference table, leaving every existing agent and reference unchanged; rollback removes preferences and does not remove agents.
26
-
27
- Bulk ignore and restore select at most 256 discovery groups per transaction. The page shows the selected count and limit; when more results match, the selection button explicitly chooses only the first 256. Searches reset selection, and additional unchecked groups cannot be selected until a group is deselected. Provider selectors display the full model and runner names while submitting the original agent ID.
28
-
29
- Applications can also provide `modelDescriptions` through `setDefaults`: a map from coding tool to normalized model id to `{ en, zh }`, matching the catalog's `goodAt`. Agent views prefer these suggestions and fall back to the catalog for unconfigured models. The enable dialog selects the viewer's language and keeps an existing description. Suggestions are never stored by discovery or `applyDefaults()`.
25
+ Applications can provide localized `modelDescriptions` through `setDefaults`. Suggestions fall back to the catalog and do not change an existing description through `applyDefaults()`.
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": "1.0.0-beta.24",
5
+ "version": "1.0.0-beta.25",
6
6
  "type": "module",
7
7
  "prettier": "@nocobase/dev-config/prettier",
8
8
  "engines": {
@@ -168,8 +168,8 @@
168
168
  "zod": "^4.6.5",
169
169
  "@nocobase/document-extractor": "^0.1.0-beta.0",
170
170
  "@nocobase/agent-protocol": "^0.1.0-beta.15",
171
- "@nocobase/cli-envelope": "^0.1.0-beta.1",
172
171
  "@nocobase/app-cli-client": "^0.1.0-beta.16",
172
+ "@nocobase/cli-envelope": "^0.1.0-beta.1",
173
173
  "@nocobase/acp-bridge": "^1.0.0-beta.4"
174
174
  },
175
175
  "peerDependencies": {
@@ -212,7 +212,7 @@
212
212
  "react-dom": "^19.2.8",
213
213
  "typescript": "^6.0.3",
214
214
  "vitest": "^4.1.10",
215
- "@nocobase/agent-runner": "0.1.0-beta.19",
215
+ "@nocobase/agent-runner": "0.1.0-beta.20",
216
216
  "@nocobase/app-testing": "0.1.0-beta.6",
217
217
  "@nocobase/db-postgres": "0.1.0-beta.5",
218
218
  "@nocobase/db-sqlite": "0.1.0-beta.6",
@@ -16,7 +16,7 @@ The package README is the full reference: read it at `node_modules/@nocobase/app
16
16
  - Runner tool selection is server-owned and explicit. New registrations default to Codex and Claude Code; additional catalog tools must be selected. Native adapters take precedence over ACP. Owners manage personal tools, and runner managers may also manage shared tools. Unknown tools and custom launch commands are not supported. See the README’s “Selecting runner tools and ACP agents” for protocol upgrades, detection triggers and default-model behavior.
17
17
 
18
18
  - The plugin knows no business of its own. Subjects, scopes, business actions, the instructions and actions every discovered agent gets, CLI commands and report pages are the App's, contributed through `agentsToken` from `@nocobase/app-plugin-agents/server/tokens` when the App's providers boot. With nothing contributed, agents still work in conversations.
19
- - Nobody creates agents: each coding tool and model a runner reports becomes one, pending until someone who manages agents writes what it is good at and enables it. Only enabled agents get work, and only on a runner that is online, has the agent's tool signed in with its model, and whose owner's local policy lets it take the work. The `agentsToken.onlineAgent` service selects native SDK execution or an explicitly chosen Runner Agent through one realtime conversation contract. Native execution runs registered business tools directly through the SDK; Runner chat uses the existing queue and canonical history. The original chat API and shared browser controller use this service, and never silently change executors. Read [OnlineAgent chats and business tools](references/online-agent.md) to configure that service and its `OnlineAgentConfigurator`.
19
+ - Add runner agents from the live available-model list, enabled directly. Recommended models are auto-added; other reports create no agent. Runner agents are enabled or disabled. Only enabled agents take work.
20
20
  - Native files follow legacy Provider defaults: OpenAI/Anthropic/Google/OpenAI-compatible forward PDFs and images, Alibaba forwards images and extracts document text locally, and Moonshot forwards images and uploads supported documents to its selected Kimi Files service automatically. Ollama images remain native; PDF and other supported documents use local text extraction by default, not failure-triggered fallback. DeepSeek/Cohere retain local document extraction and do not forward undeclared images; existing exact profiles still override defaults. Read the package README's **Native document inputs** before configuring exact service/model/Provider/protocol/base URL overrides. Never promote extracted content above the user role, or silently change routes after failure.
21
21
  - Unsupported user attachments must not terminate the conversation: replace only the model replay file part with an untrusted filename/MIME/controlled-limitation description, explicitly stating that the contents were not parsed. Apply the same policy to historical follow-up and explicit extractor `unsupported` results; never forward unsupported bytes, guess contents, persist the description as an original message or cache it as extracted text. Keep authorization, inline validation, format-mismatch, budget, cancellation and actual parsing/Provider failures unchanged.
22
22
  - Local DOCX text extraction omits embedded binary images before budgeting; it does not perform OCR. Image-only documents fail as unreadable. Do not raise text limits to accommodate base64 image data or change Knowledge's default image representation.
@@ -1,23 +1,21 @@
1
1
  # Agents
2
2
 
3
- Nobody creates an agent. Each coding tool and model a runner reports signed in becomes one agent, named from the model catalog that ships with the plugin (such as "Claude · Opus 5.5"), and starts pending. `docs/runner-agents.md` in the package and the README's "What it does" (Agents) are the reference.
3
+ Add an agent from the live available-model list, already enabled. Only the application’s recommended combinations are automatically added when runners report them. Runner agents are enabled or disabled. `docs/runner-agents.md` in the package and the README's "What it does" (Agents) are the reference.
4
4
 
5
5
  ## Enabling agents
6
6
 
7
- - A pending agent gets no work. Someone who manages agents (`agents.agents` manage) enables it on the Agent page ("Fill in and enable") or with `PATCH /api/agents/:agentId` (`agent update`), writing what it is good at — the project manager hands it work by this — and optionally its default reasoning effort. The page starts the description from the catalog's suggestion.
7
+ - Someone who manages agents (`agents.agents` manage) adds one with `POST /api/agents/runnerAgents` (`agent create`), writing what it is good at — the project manager hands it work by this — and optionally its default reasoning effort. The page starts the description from the catalog's suggestion.
8
8
  - Every change names the agent's revision (`expectedRevision`); `REVISION_CONFLICT` means someone changed it since, so read it again. `GOOD_AT_REQUIRED`: enabling needs a description. `EFFORT_UNSUPPORTED`: the tool does not take that effort. `AGENT_MANAGED`: an App's own agent is changed through the App.
9
9
  - Disabling an agent withdraws its queued runs and announces `agent.removed` (`reason` `disabled`); the App lets go of the work it gave the agent. Work for an agent that is not enabled is refused with `AGENT_NOT_ENABLED`.
10
10
  - Anyone signed in reads the agents (`GET /api/agents`, `agent list-all`); `GET /api/agents/agentNames` names every agent there has been, for runs that name a removed one.
11
11
 
12
- ## Discovery management
12
+ ## Available models
13
13
 
14
- The page defaults to enabled agents. New discoveries are collapsed, grouped by tool and known catalog model, and searchable by model or provider; unknown provider-qualified models are kept separate. The enable dialog chooses an original provider candidate without changing its ID or execution model. Opening an enabled group exposes the other provider candidates, and disabled agents remain accessible.
15
-
16
- Administrators ignore pending groups individually or in an atomic batch through `PUT /api/agents/discoveryPreferences` (`agent discovery set --input <file>`). Read `discoveryKey`, `discoveryRevision` and `ignored` from `GET /api/agents`, then send unique groups with their expected revision and `ignored: true` or `false`. Preferences survive reports and restarts, including new providers in the same group. Restoring returns pending discoveries without enabling them. Enabled groups cannot be ignored; stale revisions conflict with concurrent enabling. See `docs/runner-agents.md` for the body and migration.
14
+ The page defaults to enabled agents, with “Show disabled” to include disabled agents. Available models are computed live, grouped by tool and searchable. “Added” means an enabled or disabled runner agent exists. Adding enables directly; adding the same combination again returns `AGENT_EXISTS`. Edit the existing agent to enable it again. The old discovery ignore/restore and cleanup routes and commands have been removed.
17
15
 
18
16
  ## Where an agent can run
19
17
 
20
- `GET /api/agents` answers, per caller, how many team and personal runners online have the agent's tool signed in with its model, whether only personal runners have it (`personalOnly`: they take their owners' work only), and `unusable`, why the caller's work cannot start now: `pending`, `disabled`, `unreported` (no runner reported it for 14 days), `notConfigured`, `noRunner` or `othersPersonal`. The roster (`GET /api/agents/available`, `agent list`, `Agents.roster`) lists the enabled agents reported recently with whether each would take the caller's work now. A run that fails `modelUnavailable` marks that tool and model unavailable on its runner until the runner reports the tool's models differently.
18
+ `GET /api/agents` answers, per caller, how many team and personal runners online have the agent's tool signed in with its model, whether only personal runners have it (`personalOnly`: they take their owners' work only), and `unusable`, why the caller's work cannot start now: `disabled`, `unreported` (no runner reported it for 14 days), `notConfigured`, `noRunner` or `othersPersonal`. The roster (`GET /api/agents/available`, `agent list`, `Agents.roster`) lists the enabled agents reported recently with whether each would take the caller's work now. A run that fails `modelUnavailable` marks that tool and model unavailable on its runner until the runner reports the tool's models differently.
21
19
 
22
20
  ## The App's own agents and defaults
23
21
 
@@ -27,4 +25,6 @@ Administrators ignore pending groups individually or in an atomic batch through
27
25
 
28
26
  ## Upgrading from configured agents
29
27
 
30
- The `202610240020_ag_runner_agents` migration removes every agent an earlier version kept, online agents included: their rows stay disabled with `deletedAt` so history still names them, their queued runs are cancelled, their pending run requests withdrawn, and default chat agents cleared. After upgrading, wait for runners to report (or restart them), enable the agents that appear, and set the system default chat agent again.
28
+ The `202610240020_ag_runner_agents` migration removes every agent an earlier version kept, online agents included: their rows stay disabled with `deletedAt` so history still names them, their queued runs are cancelled, their pending run requests withdrawn, and default chat agents cleared. After upgrading, wait for runners to report (or restart them), add agents from Available models, and set the system default chat agent again.
29
+
30
+ The retirement migration preserves all referenced legacy records as disabled, including records with only a creation audit. Only unreferenced runner records are deleted. This data change is irreversible; deployment rollback leaves the cleanup in place. See `docs/retire-pending-runner-agents.md` for the read-only operator preflight and custom-reference boundary.
@@ -60,7 +60,9 @@ export function configureInvoices(
60
60
 
61
61
  Replace `billing-models/chat` with an enabled chat model in the application's existing model services. Model credentials remain in that service. Factories resolve application dependencies once and must not capture a current user. Each tool invocation receives fresh `OnlineAgentToolContext`: user, current authorization, complete entry credentials, business data, signal and the authoritative runtime `sessionId`. Forward it to the original business service; retain its object, row and field checks. Never use model-provided user/session IDs as authority. Keep secrets out of tool output, prompts, variables and saved configuration. Every tool result and async yield must already be lossless JSON: convert Date to an ISO string and other business objects to intentional JSON values inside `execute`. Non-JSON returns are rejected, not implicitly serialized or retried. The SDK's `toModelOutput` derives model input from that raw JSON without replacing the saved result.
62
62
 
63
- Layers resolve in order: global registrations, selected named scopes, then explicit options. Providers run sequentially; omitted fields keep their preceding value and arrays replace it, including empty arrays. Prompt functions can compose `context.systemPrompt` and validate variables. The resolved serializable snapshot is saved. Loading an existing session restores it without reevaluating Providers. Idle explicit overrides reevaluate only the named sources requested; running configuration is frozen. `selectedModel` explicitly selects the existing model columns, while a model-list replacement selects its first entry. A prompt-only override retains the selected model.
63
+ Layers resolve in order: global registrations, selected named scopes, then explicit options. Resolution has two phases: Providers run exactly once, see accumulated raw variables and the prompt snapshot entering resolution, and collect configuration before any prompt is rendered. Omitted fields keep their preceding value and arrays replace it, including empty arrays; context.variable is also whole-value replacement, not deep merging. All template object schemas validate only their declared fields against the final candidate, retaining defaults, transforms and object-level constraints without stripping other scopes' fields. Shared fields must normalize to identical JSON-safe values or configuration fails. A missing candidate allows schema defaults; null, arrays and scalars cannot stand in for an object schema. Each template then sees an independent copy of the same final normalized variables. Prompt assembly still follows layer order: context.systemPrompt first, then a replacing string or a function composing the accumulated context.systemPrompt. Logic requiring earlier rendered prompts belongs in a template, not a Provider.
64
+
65
+ The resolved serializable snapshot is saved. Loading an existing session restores it without reevaluating Providers or templates. Idle explicit overrides reevaluate only the named sources requested; running configuration is frozen. Globals are not replayed for variable-only updates, so changing a variable alone cannot regenerate a saved global prompt. Create a new session when a global variable-driven policy must change. HTTP business variables remain limited to fields explicitly declared in selected scopes' variableSchema; a global schema never expands that browser whitelist, and input is authorized before any template runs. selectedModel explicitly selects the existing model columns, while a model-list replacement selects its first entry. A prompt-only override retains the selected model.
64
66
 
65
67
  ## Native web search
66
68
 
@@ -135,7 +137,7 @@ Native public history and realtime streams include actual model-provided SDK rea
135
137
 
136
138
  Native and Runner realtime receive use the standard SDK stream with optional shared Redis recovery. Background sessions have no browser receive transport and do not require Redis. Browser disconnect never cancels generation. Finish ends the HTTP response, possibly while waiting for approval; execution detail and saved history determine business state. Failed persistence keeps occupancy and supports explicit finalization without reexecution. Missing streams require history/status reconciliation, never automatic resend. A lost producer remains interrupted and is not automatically restarted. The public ChatProvider and installed Registry/Examples consumers use SDK Chat ownership and GET recovery. See [UI messages](../../../docs/ui-messages.md) and [client coordination](../../../docs/ui-message-clients.md) for configuration, costs and limits.
137
139
 
138
- Permission-restricted configuration and custom permission/approval protocols remain unsupported. Native scopes may explicitly select Skills and bash; follow [Native Skills and application CLI](../../../docs/native-sandbox.md) for current support trees, VFS-only inputs, lazy `context.execution`, existing business authorization and approval/new-environment boundaries. SDK approval is native-only; Runner remote tool approval is refused. Verify with isolated model fixtures and authorized application services, never real business writes.
140
+ Permission-restricted configuration and custom permission/approval protocols remain unsupported. New native sessions enable bash and skill by default; scopes may select Skills or explicitly replace the tool list; follow [Native Skills and application CLI](../../../docs/native-sandbox.md) for current support trees, VFS-only inputs, lazy `context.execution`, existing business authorization and approval/new-environment boundaries. SDK approval is native-only; Runner remote tool approval is refused. Verify with isolated model fixtures and authorized application services, never real business writes.
139
141
 
140
142
  ## Open UI context, custom tool cards and local form drafts
141
143
 
@@ -229,6 +231,6 @@ HTTP creation/configuration cannot override tool lists, model lists or system pr
229
231
 
230
232
  Upgrade the server agents plugin before runners. Conversation claims automatically include `outputBlocks: true` when the runner advertises the capability; tasks never receive it, and there is no application configuration switch. All task adapters, storage, summaries and run-history components keep their previous behavior.
231
233
 
232
- Update the application chat consumers to retain standard text/reasoning stream parts, `sourceRecords[].output`, stable part IDs, whitespace and part state. Render one text part as one Markdown document through `chatMessageSegments`. Previews are realtime-only; a completed block produces one canonical record, so prompt history retains the previous user turns. Interrupted previews are closed without storing partial text. A mid-block refresh may wait for block completion; do not add recovery or replay services. Task/transcript Registry components need no change.
234
+ Update the application chat consumers to retain standard text/reasoning stream parts, `sourceRecords[].output`, stable part IDs, whitespace and part state. Render one text part as one Markdown document through `chatMessageSegments`. Previews are realtime-only; a completed block produces one canonical record, so prompt history retains the previous user turns. Completed negotiated reasoning summaries are restored from existing run events alongside the response's text records; one batched read covers the runs in a history page, with no new conversation writes or model-context changes. Interrupted previews are closed without storing partial text unless the tool supplies a completed partial snapshot. A mid-block refresh may wait for block completion; do not add recovery or replay services. Task/transcript Registry components need no change.
233
235
 
234
236
  Validate conversation text and supplied reasoning summaries, split Markdown and whitespace, independent messages and child/tool boundaries, refresh and cancellation using native application authentication. Studio integration and real-model page verification are application work; source Registry components copied into an application still belong to that application.
@@ -1,7 +0,0 @@
1
- import { type ReactElement } from 'react';
2
- export interface CleanupDrawerProps {
3
- readonly open: boolean;
4
- readonly onClose: () => void;
5
- }
6
- export declare function CleanupDrawer({ open, onClose, }: CleanupDrawerProps): ReactElement;
7
- //# sourceMappingURL=cleanup-drawer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cleanup-drawer.d.ts","sourceRoot":"","sources":["../../../../client/pages/agents/cleanup-drawer.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAoD7D,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,OAAO,GACR,EAAE,kBAAkB,GAAG,YAAY,CAyOnC"}