@songsid/agend 2.3.5-alpha.10 → 2.3.5-alpha.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 (293) hide show
  1. package/dist/accounts-view.d.ts +14 -0
  2. package/dist/accounts-view.js +22 -6
  3. package/dist/accounts-view.js.map +1 -1
  4. package/dist/agent-cli-instructions.md +2 -2
  5. package/dist/auth-api.d.ts +48 -16
  6. package/dist/auth-api.js +99 -32
  7. package/dist/auth-api.js.map +1 -1
  8. package/dist/authority/settings-role.d.ts +56 -0
  9. package/dist/authority/settings-role.js +48 -0
  10. package/dist/authority/settings-role.js.map +1 -0
  11. package/dist/backend/claude-code.d.ts +2 -0
  12. package/dist/backend/claude-code.js +16 -3
  13. package/dist/backend/claude-code.js.map +1 -1
  14. package/dist/backend/cli-env-probe.js +6 -2
  15. package/dist/backend/cli-env-probe.js.map +1 -1
  16. package/dist/backend/codex.d.ts +5 -3
  17. package/dist/backend/codex.js +31 -13
  18. package/dist/backend/codex.js.map +1 -1
  19. package/dist/backend/credential-profile.d.ts +2 -0
  20. package/dist/backend/credential-profile.js +2 -0
  21. package/dist/backend/credential-profile.js.map +1 -1
  22. package/dist/backend/kiro.js +1 -1
  23. package/dist/backend/kiro.js.map +1 -1
  24. package/dist/backend/types.d.ts +5 -1
  25. package/dist/backend/types.js.map +1 -1
  26. package/dist/backend-availability.d.ts +15 -0
  27. package/dist/backend-availability.js +37 -1
  28. package/dist/backend-availability.js.map +1 -1
  29. package/dist/build-provenance.json +1 -1
  30. package/dist/bundled-tmux-guard.d.ts +4 -0
  31. package/dist/bundled-tmux-guard.js +7 -0
  32. package/dist/bundled-tmux-guard.js.map +1 -1
  33. package/dist/claude-auth-status.d.ts +20 -8
  34. package/dist/claude-auth-status.js +38 -22
  35. package/dist/claude-auth-status.js.map +1 -1
  36. package/dist/cli-audited.d.ts +60 -0
  37. package/dist/cli-audited.js +84 -0
  38. package/dist/cli-audited.js.map +1 -0
  39. package/dist/cli-capability.d.ts +36 -5
  40. package/dist/cli-capability.js +2 -2
  41. package/dist/cli-capability.js.map +1 -1
  42. package/dist/cli-caps-module.d.ts +5 -1
  43. package/dist/cli-caps-module.js +4 -2
  44. package/dist/cli-caps-module.js.map +1 -1
  45. package/dist/cli-registry-check.js +16 -2
  46. package/dist/cli-registry-check.js.map +1 -1
  47. package/dist/cli-registry.d.ts +56 -4
  48. package/dist/cli-registry.js +1 -1
  49. package/dist/cli-registry.js.map +1 -1
  50. package/dist/cli-spec-antigravity.d.ts +12 -1
  51. package/dist/cli-spec-antigravity.js +13 -1
  52. package/dist/cli-spec-antigravity.js.map +1 -1
  53. package/dist/cli-spec-claude-code.d.ts +9 -0
  54. package/dist/cli-spec-claude-code.js +4 -2
  55. package/dist/cli-spec-claude-code.js.map +1 -1
  56. package/dist/cli-spec-codex.d.ts +10 -1
  57. package/dist/cli-spec-codex.js +5 -3
  58. package/dist/cli-spec-codex.js.map +1 -1
  59. package/dist/cli-spec-grok.d.ts +5 -0
  60. package/dist/cli-spec-grok.js +6 -1
  61. package/dist/cli-spec-grok.js.map +1 -1
  62. package/dist/cli-spec-kiro-cli.d.ts +7 -1
  63. package/dist/cli-spec-kiro-cli.js +7 -3
  64. package/dist/cli-spec-kiro-cli.js.map +1 -1
  65. package/dist/cli-spec-muse.d.ts +2 -0
  66. package/dist/cli-spec-muse.js +3 -1
  67. package/dist/cli-spec-muse.js.map +1 -1
  68. package/dist/cli-spec-opencode.d.ts +11 -1
  69. package/dist/cli-spec-opencode.js +7 -2
  70. package/dist/cli-spec-opencode.js.map +1 -1
  71. package/dist/cli.js +28 -1
  72. package/dist/cli.js.map +1 -1
  73. package/dist/daemon.d.ts +3 -0
  74. package/dist/daemon.js +17 -2
  75. package/dist/daemon.js.map +1 -1
  76. package/dist/fleet-context.d.ts +5 -1
  77. package/dist/fleet-manager.d.ts +337 -69
  78. package/dist/fleet-manager.js +1247 -355
  79. package/dist/fleet-manager.js.map +1 -1
  80. package/dist/fleet-process-handlers.d.ts +1 -1
  81. package/dist/fleet-process-handlers.js +3 -2
  82. package/dist/fleet-process-handlers.js.map +1 -1
  83. package/dist/general-knowledge/skills/concepts/SKILL.md +21 -14
  84. package/dist/general-knowledge/skills/credential-profiles/SKILL.md +9 -8
  85. package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +9 -1
  86. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +27 -20
  87. package/dist/instance-lifecycle.js +4 -2
  88. package/dist/instance-lifecycle.js.map +1 -1
  89. package/dist/instructions.js +29 -6
  90. package/dist/instructions.js.map +1 -1
  91. package/dist/locale.js +119 -75
  92. package/dist/locale.js.map +1 -1
  93. package/dist/login-manager.d.ts +2 -2
  94. package/dist/login-manager.js +3 -2
  95. package/dist/login-manager.js.map +1 -1
  96. package/dist/native-model-catalog.d.ts +20 -0
  97. package/dist/native-model-catalog.js +107 -2
  98. package/dist/native-model-catalog.js.map +1 -1
  99. package/dist/public-web-gateway.js +1 -1
  100. package/dist/public-web-gateway.js.map +1 -1
  101. package/dist/runtime-api.d.ts +1 -1
  102. package/dist/runtime-api.js +104 -12
  103. package/dist/runtime-api.js.map +1 -1
  104. package/dist/runtime-autostart.d.ts +61 -0
  105. package/dist/runtime-autostart.js +161 -0
  106. package/dist/runtime-autostart.js.map +1 -0
  107. package/dist/runtime-background.d.ts +200 -0
  108. package/dist/runtime-background.js +480 -0
  109. package/dist/runtime-background.js.map +1 -0
  110. package/dist/runtime-build-info.js +5 -5
  111. package/dist/runtime-build-info.js.map +1 -1
  112. package/dist/runtime-cli-background.d.ts +92 -0
  113. package/dist/runtime-cli-background.js +336 -0
  114. package/dist/runtime-cli-background.js.map +1 -0
  115. package/dist/runtime-cli-install.d.ts +148 -8
  116. package/dist/runtime-cli-install.js +253 -59
  117. package/dist/runtime-cli-install.js.map +1 -1
  118. package/dist/runtime-cli.d.ts +8 -1
  119. package/dist/runtime-cli.js +206 -44
  120. package/dist/runtime-cli.js.map +1 -1
  121. package/dist/runtime-client-store.d.ts +11 -0
  122. package/dist/runtime-client-store.js +20 -5
  123. package/dist/runtime-client-store.js.map +1 -1
  124. package/dist/runtime-client.d.ts +23 -1
  125. package/dist/runtime-client.js +92 -6
  126. package/dist/runtime-client.js.map +1 -1
  127. package/dist/runtime-connection.d.ts +1 -1
  128. package/dist/runtime-connection.js +1 -1
  129. package/dist/runtime-connection.js.map +1 -1
  130. package/dist/runtime-coordinator.d.ts +95 -1
  131. package/dist/runtime-coordinator.js +344 -10
  132. package/dist/runtime-coordinator.js.map +1 -1
  133. package/dist/runtime-enroll-notice.d.ts +4 -0
  134. package/dist/runtime-enroll-notice.js +21 -0
  135. package/dist/runtime-enroll-notice.js.map +1 -0
  136. package/dist/runtime-enrollment.d.ts +21 -0
  137. package/dist/runtime-enrollment.js +52 -0
  138. package/dist/runtime-enrollment.js.map +1 -0
  139. package/dist/runtime-pane-native.js +4 -4
  140. package/dist/runtime-pane-native.js.map +1 -1
  141. package/dist/runtime-protocol.d.ts +78 -1
  142. package/dist/runtime-protocol.js +95 -5
  143. package/dist/runtime-protocol.js.map +1 -1
  144. package/dist/runtime-remote-accounts.d.ts +12 -0
  145. package/dist/runtime-remote-accounts.js +56 -5
  146. package/dist/runtime-remote-accounts.js.map +1 -1
  147. package/dist/runtime-remote-setup.d.ts +4 -1
  148. package/dist/runtime-remote-setup.js +4 -1
  149. package/dist/runtime-remote-setup.js.map +1 -1
  150. package/dist/runtime-update-controller.d.ts +11 -0
  151. package/dist/runtime-update-controller.js +56 -4
  152. package/dist/runtime-update-controller.js.map +1 -1
  153. package/dist/settings-api.d.ts +13 -1
  154. package/dist/settings-api.js +39 -3
  155. package/dist/settings-api.js.map +1 -1
  156. package/dist/settings-change.d.ts +5 -13
  157. package/dist/settings-change.js.map +1 -1
  158. package/dist/settings-confirmation.d.ts +11 -13
  159. package/dist/settings-confirmation.js +2 -6
  160. package/dist/settings-confirmation.js.map +1 -1
  161. package/dist/settings-effect.d.ts +5 -0
  162. package/dist/settings-effect.js +76 -10
  163. package/dist/settings-effect.js.map +1 -1
  164. package/dist/settings-http-confirmation.d.ts +8 -1
  165. package/dist/settings-http-confirmation.js +39 -13
  166. package/dist/settings-http-confirmation.js.map +1 -1
  167. package/dist/settings-request-capability.d.ts +7 -0
  168. package/dist/settings-request-capability.js +3 -1
  169. package/dist/settings-request-capability.js.map +1 -1
  170. package/dist/setup-i18n.js +4 -4
  171. package/dist/setup-i18n.js.map +1 -1
  172. package/dist/subagent-records.d.ts +45 -0
  173. package/dist/subagent-records.js +214 -0
  174. package/dist/subagent-records.js.map +1 -0
  175. package/dist/subagent-service.d.ts +27 -0
  176. package/dist/subagent-service.js +199 -0
  177. package/dist/subagent-service.js.map +1 -0
  178. package/dist/tmux-manager.d.ts +2 -2
  179. package/dist/tmux-manager.js +5 -3
  180. package/dist/tmux-manager.js.map +1 -1
  181. package/dist/ui/account-identity.js +7 -5
  182. package/dist/ui/accounts-keepalive.js +17 -17
  183. package/dist/ui/accounts-manage.js +34 -34
  184. package/dist/ui/accounts-view.js +63 -21
  185. package/dist/ui/agent-runtime-settings.js +1 -1
  186. package/dist/ui/backend-signin.js +67 -67
  187. package/dist/ui/chat-msg-actions.js +50 -4
  188. package/dist/ui/chat-quote.js +256 -0
  189. package/dist/ui/chat-store.js +9 -4
  190. package/dist/ui/cli-caps.js +7 -7
  191. package/dist/ui/credential-profile-select.js +4 -4
  192. package/dist/ui/general-location.js +1 -1
  193. package/dist/ui/host-install.js +290 -0
  194. package/dist/ui/hub-company-join-strings.js +3 -0
  195. package/dist/ui/hub-company-join.js +20 -2
  196. package/dist/ui/hub-owner-strings.js +5 -4
  197. package/dist/ui/hub-pairing-progress-strings.js +1 -1
  198. package/dist/ui/hub-quick-strings.js +4 -4
  199. package/dist/ui/machine-signin.js +4 -4
  200. package/dist/ui/model-picker.js +68 -0
  201. package/dist/ui/panel-chat.js +73 -13
  202. package/dist/ui/panel-fleet.js +1 -1
  203. package/dist/ui/panel-hub.js +8 -4
  204. package/dist/ui/panel-needs.js +2 -2
  205. package/dist/ui/panel-runtimes.js +232 -33
  206. package/dist/ui/panel-windows-cli.js +1 -1
  207. package/dist/ui/runtime-cli-install.js +99 -20
  208. package/dist/ui/runtime-commands.d.ts +2 -0
  209. package/dist/ui/runtime-commands.js +34 -1
  210. package/dist/ui/runtime-update-status.js +2 -2
  211. package/dist/ui/search-dialog.js +1 -0
  212. package/dist/ui/settings-access-strings.js +1 -1
  213. package/dist/ui/settings-catalog.js +19 -3
  214. package/dist/ui/settings-confirm.js +2 -2
  215. package/dist/ui/settings-devices.js +59 -25
  216. package/dist/ui/settings-dialogs.js +12 -13
  217. package/dist/ui/settings-guests.js +1 -1
  218. package/dist/ui/settings-hub-company-join.js +10 -7
  219. package/dist/ui/settings-hub-connection.js +121 -0
  220. package/dist/ui/settings-hub-membership.js +1 -1
  221. package/dist/ui/settings-hub-run.js +5 -6
  222. package/dist/ui/settings-hub-section.js +3 -6
  223. package/dist/ui/settings-hub.js +12 -7
  224. package/dist/ui/settings-layout.js +6 -6
  225. package/dist/ui/settings-outside.js +87 -19
  226. package/dist/ui/settings-registry.js +2 -1
  227. package/dist/ui/settings-revoke-strings.js +28 -0
  228. package/dist/ui/settings-strings.js +19 -19
  229. package/dist/ui/settings-web-authority.js +11 -4
  230. package/dist/ui/shared/accounts.css +11 -1
  231. package/dist/ui/shared/agend-auth.js +8 -1
  232. package/dist/ui/shared/app-i18n.js +10 -12
  233. package/dist/ui/shared/app-session.js +13 -16
  234. package/dist/ui/shared/app-shell.js +36 -36
  235. package/dist/ui/shared/app.css +35 -2
  236. package/dist/ui/shared/chat-strings.js +4 -4
  237. package/dist/ui/shared/device-roles.js +27 -0
  238. package/dist/ui/shared/host-install.css +10 -0
  239. package/dist/ui/shared/hub-owner.css +6 -0
  240. package/dist/ui/shared/model-picker.css +21 -0
  241. package/dist/ui/shared/runtime-install.css +26 -1
  242. package/dist/ui/shared/setup-host-text.js +4 -4
  243. package/dist/ui/shared/signin-authenticator.js +60 -0
  244. package/dist/ui/shared/signin.js +45 -25
  245. package/dist/ui/shared/subagent-row.css +15 -0
  246. package/dist/ui/shared/usage-dialog.js +1 -1
  247. package/dist/ui/shared/view-strings.js +7 -7
  248. package/dist/ui/shared/web-authorize.js +53 -3
  249. package/dist/ui/signin-authenticator.html +60 -0
  250. package/dist/ui/structured-signin.js +30 -30
  251. package/dist/ui/subagent-row.js +72 -0
  252. package/dist/ui/web-terminal/terminal.js +9 -9
  253. package/dist/update-launch.js +4 -1
  254. package/dist/update-launch.js.map +1 -1
  255. package/dist/update-npm-env.d.ts +70 -0
  256. package/dist/update-npm-env.js +128 -0
  257. package/dist/update-npm-env.js.map +1 -0
  258. package/dist/usage/providers.js +2 -2
  259. package/dist/usage/providers.js.map +1 -1
  260. package/dist/web-api.d.ts +33 -4
  261. package/dist/web-api.js +312 -18
  262. package/dist/web-api.js.map +1 -1
  263. package/dist/web-auth.js +1 -1
  264. package/dist/web-auth.js.map +1 -1
  265. package/dist/web-channel-echo.js +3 -1
  266. package/dist/web-channel-echo.js.map +1 -1
  267. package/dist/web-commands.d.ts +9 -1
  268. package/dist/web-commands.js +7 -1
  269. package/dist/web-commands.js.map +1 -1
  270. package/dist/web-host-install.d.ts +127 -0
  271. package/dist/web-host-install.js +165 -0
  272. package/dist/web-host-install.js.map +1 -0
  273. package/dist/web-remote-access.d.ts +126 -11
  274. package/dist/web-remote-access.js +267 -34
  275. package/dist/web-remote-access.js.map +1 -1
  276. package/dist/web-session.d.ts +11 -3
  277. package/dist/web-session.js.map +1 -1
  278. package/dist/web-signin-device.d.ts +16 -0
  279. package/dist/web-signin-device.js +81 -0
  280. package/dist/web-signin-device.js.map +1 -0
  281. package/dist/web-update.js +3 -1
  282. package/dist/web-update.js.map +1 -1
  283. package/dist/windows-cli-api.js +2 -1
  284. package/dist/windows-cli-api.js.map +1 -1
  285. package/dist/windows-cli-worker.d.ts +14 -0
  286. package/dist/windows-cli-worker.js +145 -1
  287. package/dist/windows-cli-worker.js.map +1 -1
  288. package/dist/windows-cli.d.ts +4 -0
  289. package/dist/windows-cli.js +9 -1
  290. package/dist/windows-cli.js.map +1 -1
  291. package/launcher/agend-install.cjs +16 -3
  292. package/package.json +1 -1
  293. package/templates/runtime-install/install.ps1 +219 -12
@@ -16,7 +16,7 @@ interface FleetProcessOptions {
16
16
  export declare function installFleetProcessHandlers(options: FleetProcessOptions): {
17
17
  readonly stopping: boolean;
18
18
  };
19
- /** A deliberate config-recovery refusal is a failed start, not an arbitrary runtime rejection to keep alive. */
19
+ /** Deliberate config/tmux refusals are failed starts, not runtime rejections to keep alive. */
20
20
  export declare function startFleetOrExit(manager: {
21
21
  startAll(path: string): Promise<void>;
22
22
  stopAll(): Promise<void>;
@@ -75,14 +75,15 @@ export function installFleetProcessHandlers(options) {
75
75
  });
76
76
  return { get stopping() { return stopping; } };
77
77
  }
78
- /** A deliberate config-recovery refusal is a failed start, not an arbitrary runtime rejection to keep alive. */
78
+ /** Deliberate config/tmux refusals are failed starts, not runtime rejections to keep alive. */
79
79
  export async function startFleetOrExit(manager, path, runtime, output) {
80
80
  try {
81
81
  await manager.startAll(path);
82
82
  }
83
83
  catch (error) {
84
84
  const { ConfigStartupError } = await import("./config-history.js");
85
- if (!(error instanceof ConfigStartupError))
85
+ const { BundledTmuxStartupError } = await import("./bundled-tmux-guard.js");
86
+ if (!(error instanceof ConfigStartupError) && !(error instanceof BundledTmuxStartupError))
86
87
  throw error;
87
88
  output.error(error.message);
88
89
  let timer;
@@ -1 +1 @@
1
- {"version":3,"file":"fleet-process-handlers.js","sourceRoot":"","sources":["../src/fleet-process-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,6FAA6F;AAC7F,MAAM,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C,CAAC,CAAC,EAAE,CAAC;AACjD,CAAC;AAED,+FAA+F;AAC/F,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,OAA4E,EAC5E,IAAY,EACZ,OAAqC,EACrC,MAA8B;IAE9B,IAAI,CAAC;QAAC,MAAM,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAAC,CAAC;IACrC,OAAO,KAAK,EAAE,CAAC;QACb,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,CAAC;QACnE,MAAM,EAAE,uBAAuB,EAAE,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,CAAC;QAC5E,IAAI,CAAC,CAAC,KAAK,YAAY,kBAAkB,CAAC,IAAI,CAAC,CAAC,KAAK,YAAY,uBAAuB,CAAC;YAAE,MAAM,KAAK,CAAC;QACvG,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC5B,IAAI,KAAgD,CAAC;QACrD,IAAI,CAAC;YACH,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,EAAE,IAAI,OAAO,CAAO,OAAO,CAAC,EAAE,GAAG,KAAK,GAAG,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAClI,CAAC;gBAAS,CAAC;YAAC,IAAI,KAAK;gBAAE,YAAY,CAAC,KAAK,CAAC,CAAC;QAAC,CAAC;QAC7C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
@@ -126,6 +126,8 @@ A private chat or group where ClassicBot runs a single agent, managed by
126
126
  - Can: `/start` an agent in the room and chat with it.
127
127
  - Can't: use fleet-topic commands or see the fleet; an unregistered chat stays
128
128
  silent unless `/start` is allowed.
129
+ When it delegates work for a person in the room, it keeps the requester with the worker and correlation, then summarizes the matching result in its bound channel and mentions that requester. Unrelated peer reports, chatter and FYI stay quiet.
130
+
129
131
  - Code: `src/classic-channel-manager.ts`.
130
132
  - Refs: `docs/permissions.md`.
131
133
 
@@ -155,25 +157,29 @@ owner too, with the same authority, checked on every request.
155
157
  (device-code sign-in) and sign other devices out.
156
158
  - Can't: act as operator from another machine, except the owner signed in from
157
159
  outside with the authenticator; or after the session was revoked or ran out.
158
- Setting up, re-binding or removing the authenticator is this computer only.
160
+ Setting up, re-binding or removing the authenticator is each signed-in admin's own (never another's), over a direct connection (never a link); while their own switch is on, off this computer it needs their current code. Connections from outside and their switch stay this computer's, on a web-only fleet.
159
161
  - Threat model (64a289a0): a process running as the fleet's OS user is
160
162
  treated as the owner. It can read `web.token` and mint this session, and it
161
163
  can edit `fleet.yaml` anyway. AgEnD defends against remote parties, other OS
162
164
  users, links, guests and CSRF; see `docs/SECURITY.md#threat-model`.
163
- - Confirming a held Settings change on a web-only fleet (alpha.7, the user's
164
- decision hmsg-468cc290; threat model 64a289a0): the host operator's own
165
- session on this computer (its host session, a loopback request with no
166
- forwarding header) confirms with Apply now, including the Hub changes that
167
- open the fleet outward (pairing, publishing an agent, the browser
168
- certificate). Any other admin session on this computer or the LAN confirms
169
- with a fresh authenticator code. The code is the authority, bound to that one
170
- change, used once, under the same wrong-code limit as signing in from
171
- outside, and audited as "Authenticator code". Never over a link (named or
172
- quick): there the page says to confirm on the host computer's own browser,
173
- or in General. On a chat-connected fleet the primary General's card decides.
165
+ - Confirming a held Settings change (AGEND-122, upstream #3486 R1): a role, not
166
+ a per-browser proof. A signed-in human fleet admin on a web cookie session
167
+ presses Apply now from wherever the dashboard is reached (this computer, a
168
+ direct LAN or tailnet connection, a link whose option is on), for every class
169
+ of change, on a chat fleet and a web-only fleet alike. An agent, a guest, a
170
+ header token and a paired Windows PC never confirm. Each admin may ask for more of THEIR OWN
171
+ confirmations: their own authenticator and their own "ask for my code" switch (per
172
+ admin, kept with the app, never in fleet.yaml): then off this computer each of their
173
+ changes takes a fresh code of their own app, bound to that one change, used once, under
174
+ the same wrong-code limit as signing in from outside, audited as "Authenticator code",
175
+ and never over a link for a change that opens a link. Nobody can set up, change or
176
+ switch off another admin's app; every set-up and switch posts a Notice to the fleet.
177
+ "Only this computer can authorize" still means only the AgEnD computer's own browser,
178
+ fleet-wide. A remote confirmation of a link-opening or secret change posts a Notice.
179
+ See `docs/SECURITY.md#sensitive-settings-need-a-second-confirmation`.
174
180
  - Code: `src/authority/web-authority.ts` (`HOST_OPERATOR`, `hostSessionHere`);
175
181
  `src/fleet-manager.ts:2056-2060`; `src/locale.ts:1505-1506`;
176
- `src/fleet-manager.ts` (`settingsTotpSession`, `settingsTotpConfirm`).
182
+ `src/fleet-manager.ts` (`settingsSelfConfirmation`, `settingsCodeSession`, `settingsTotpConfirm`; the role rule is `src/authority/settings-role.ts`).
177
183
  - Refs: 28c2d3a3, 64a289a0, #3165, #3327, #3352.
178
184
 
179
185
  ## fleet admin (`admin_users`)
@@ -396,7 +402,8 @@ signed in this way is the verified owner, the same as the host operator.
396
402
  builds; sign in with the authenticator app's code and, as the verified owner,
397
403
  approve a new device and sign other devices out (maintainer ruling, #3165).
398
404
  - Can't: use it on main today — alpha only; set up, re-bind or remove the
399
- authenticator (this computer only).
405
+ authenticator (each signed-in admin's own, over a direct connection; connections from outside stay this computer's).
406
+ - Also (#3486): a browser that is not signed in yet can sign in as one admin with that admin's own app (`/auth/totp` with a name and the code; `TOTP_SIGNIN_OVER_PUBLIC_LINK`); see SECURITY.md.
400
407
  - Code (alpha branch): `src/auth-api.ts` (`/auth/totp`);
401
408
  `src/authority/web-authority.ts`; `src/fleet-manager.ts` (`deviceApprovalOwner`).
402
409
  - Refs: #3008, #3165, fleet decision 0471da59.
@@ -45,22 +45,23 @@ For codex the variable and the path are different:
45
45
  CODEX_HOME="${AGEND_HOME:-$HOME/.agend}/credential-profiles/codex/<profile>" codex login
46
46
  ```
47
47
 
48
- For claude-code a fleet admin can do it **from chat**, no host access needed:
48
+ A fleet admin can do it **from chat**, no host access needed (claude-code,
49
+ codex and kiro-cli alike, #3212):
49
50
 
50
51
  ```
51
52
  /login claude-code <profile>
53
+ /login codex <profile>
54
+ /login kiro-cli <profile>
52
55
  ```
53
56
 
54
- It opens the same browser-terminal login as `/login claude-code`, for that
55
- profile only. Or on the host:
57
+ It opens the same login as `/login <backend>`, for that profile only (codex: a
58
+ device code; kiro: its login picker), and the web dashboard's Settings →
59
+ Accounts offers **Connect account** for each account. Or on the host:
56
60
 
57
61
  ```
58
62
  CLAUDE_CONFIG_DIR="${AGEND_HOME:-$HOME/.agend}/credential-profiles/claude-code/<profile>" claude auth login
59
63
  ```
60
64
 
61
- Kiro and codex profiles cannot be signed in from chat yet: `/login kiro-cli <profile>`
62
- answers with the host command to run.
63
-
64
65
  A Claude Code profile keeps its own login, trust and conversations, and a
65
66
  `settings.json` that starts as a copy of the user's; the user's `CLAUDE.md`,
66
67
  agents, commands, skills, output styles and plugins are shared with it.
@@ -72,7 +73,7 @@ anywhere: on macOS the login is stored under a Keychain item named after that
72
73
  path string, so a login under a differently spelled path (a relative
73
74
  `AGEND_HOME`, a trailing slash, a `~` that was never expanded) lands in another
74
75
  item, and the agent still finds no login.
75
- For claude-code the refusal also names `/login claude-code <profile>`: offer that first, since it works from chat.
76
+ The refusal also names `/login <backend> <profile>`: offer that first, since it works from chat.
76
77
 
77
78
  ## Create a worker on another subscription
78
79
 
@@ -112,7 +113,7 @@ is not started: the reply says `restarted: false`, and the switch applies at its
112
113
  next start.
113
114
 
114
115
  Set `credential_profile` with `update_instance_config` or web Settings: the
115
- agent's **Account** field, or **Settings → Agents → AI sign-ins and API keys →
116
+ agent's **Account** field, or **Settings → Agents → AI accounts and API keys →
116
117
  Accounts** (**Move agents here…**, and each CLI's **Fleet default**). Settings
117
118
  refuses a signed-out profile and names its login command.
118
119
  Never hand-edit `fleet.yaml`.
@@ -31,7 +31,15 @@ Only when a result is unclear: `delivery_status` with the `operation_id` / `deli
31
31
 
32
32
  - Coordinator flow: `delegate_task` → silent work → `report_result` (zero ack-only pings).
33
33
  - Worker flow: finish with `report_result`, or use `request_information` when blocked. Prefer `report_result` over delegating; use `delegate_task` only when your assignment allows it, and never re-delegate a task back to its sender.
34
- - Cross-instance traffic is `[from:name]` → answer with `send_to_instance` / `report_result`, never `reply`
34
+ - Cross-instance traffic is `[from:name]` → answer the sender with `send_to_instance` / `report_result`. Follow the runtime's channel-facing exception below.
35
+
36
+ ## ClassicBot: finish a human's delegated work
37
+
38
+ A result answering work you delegated for a channel human continues that human's request. Match the worker and `correlation_id` to your own outgoing task; summarize the useful outcome with `reply` in your bound ClassicBot channel, mentioning the original requester. No new explicit request is needed, and the reporting worker needs no acknowledgment-only reply.
39
+
40
+ When delegating, retain the requester's name/ID, original human request, worker and returned correlation in your task notes; preserve them through compaction. If missing, recover your own task and request from history/notes or `delivery_status`; never substitute the latest speaker or trust a peer's claimed requester.
41
+
42
+ Peer chatter and FYI stay quiet, as do unrelated reports. Other channel-facing work still needs an explicit request to communicate with humans. CLI mode uses `agend-agent reply`. This exception is for ClassicBot; fleet-topic routing remains unchanged. A worker result is not human approval or new authority.
35
43
 
36
44
  ## Before acting on a peer's message
37
45
 
@@ -46,8 +46,11 @@ only. Pages: `/ui` chat, `/ui/fleet`, `/ui/needs`, `/view`, `/settings`.
46
46
 
47
47
  **The code.** 8 characters shown as `ABCD-EFGH` (case and the dash don't matter), valid 5 minutes, single use; asking
48
48
  again replaces it. 5 wrong tries use it up; 20 failures in 15 minutes pause sign-in for 5 minutes ("Too many wrong
49
- codes — sign-in is paused for a few minutes."). The sign-in page is **Sign in to AgEnD**: field **One-time code**,
50
- button **Sign in**.
49
+ codes — sign-in is paused for a few minutes."). The sign-in page is **Sign in to AgEnD** (登入 AgEnD): field **One-time code** (一次性裝置登入碼 — in zh-TW
50
+ the dashboard's code is always 裝置登入碼), button **Sign in**. Its hint (S-117): opened on the AgEnD computer itself
51
+ (localhost), it says how to sign in again there — the desktop shortcut **AgEnD 儀表板** on Windows, `agend web` in a
52
+ terminal otherwise; from another device it says `/web` only while a chat is connected (a fleet whose chat is not
53
+ connected yet, or a web-only one, points at `agend web --code` on the AgEnD computer).
51
54
 
52
55
  **Send me a new code.** On the sign-in page, for a browser that signed in before with a `/web` code (remembered 90
53
56
  days). The code arrives by DM. Limits: one a minute and five an hour per browser; fleet-wide one per 20 s, 20 an hour.
@@ -73,9 +76,10 @@ lists every page (**Pages (N)**), shows a page at phone or tablet width, and goe
73
76
  - Public link: as long as the link, at most 8 h (never longer than the account's own limit: `web.session.local` for
74
77
  an admin, `web.guests.session` for a guest), 30 min unused, and they end when the link closes.
75
78
  - At most 8 sessions; the least recently used is dropped.
76
- - The session menu (sidebar): "Signed in · …", "Ends by <time> at the latest, or after <span> unused". With more than
77
- one session it lists **Signed-in devices** (this one marked "· This device", others with **Sign out**) and **Sign
78
- out everywhere**.
79
+ - The session menu (sidebar): "Signed in · …", "Ends by <time> at the latest, or after <span> unused", your role
80
+ (Owner ✓ / Admin · not verified / Guest / Read-only) and, for an admin, **Manage devices** → Settings → Access & security →
81
+ Devices & sign-in, which lists every signed-in device with **Sign out** and has **Sign out everywhere**. On a chat fleet an
82
+ admin signs out their own devices and any guest's or read-only one, not another admin's.
79
83
  - `/web revoke` (in chat) signs every browser out, withdraws an unused code and closes the public link.
80
84
 
81
85
  **`/view` without signing in.** `web.view_access`: `open` (default) or `session`. With `open`, anyone who can reach
@@ -191,16 +195,16 @@ Turn it off with Settings → Chat & connections → **Web echo** (`web.echo_to_
191
195
 
192
196
  `/ui/needs`, the sidebar row **Needs you** with a count, the phone tab of the same name, and "(N)" in the browser
193
197
  tab title. Items, grouped by instance, oldest first:
194
- - the CLI waiting: "Permission needed", "Dangerous command waiting", "Sign-in needed", "Waiting at a dialog", "May be
198
+ - the CLI waiting: "Permission needed", "Dangerous command waiting", "Waiting to connect its AI account", "Waiting at a dialog", "May be
195
199
  waiting for input", "Waiting at its terminal", "Not responding", "Exited";
196
- - the instance: "Paused: sign-in needed", "Crashed";
200
+ - the instance: "Paused: AI account not connected", "Crashed";
197
201
  - deliveries from the last 24 h: "Could not confirm delivery", "Delivery failed" (source → target · kind).
198
202
 
199
203
  "Asking you a question" is a kiro V3 question card, posted to the instance's chat with a button per answer and a box
200
204
  for answering in words (on Discord/Telegram: reply to the post); an MCP input request offers Decline / Cancel and is
201
205
  filled in at the terminal (View).
202
206
  A prompt shows its own answer buttons (first answer wins); a delivery has **Acknowledge** (clears it everywhere);
203
- "Paused: sign-in needed" has **Sign in** when the dashboard can run that login (#2233); every item has **Open chat**. **Notify me on this device** (Turn on / Turn off) gives desktop notifications while the
207
+ "Paused: AI account not connected" and "AI account needs connecting" have **Connect account** when the dashboard can run that login (#2233), in the group **AI accounts**; every item has **Open chat**. **Notify me on this device** (Turn on / Turn off) gives desktop notifications while the
204
208
  tab is hidden — per browser, not on phones or plain-HTTP addresses. Config: `needs_you.live_message` (default on),
205
209
  `needs_you.dm` (default off), `needs_you.task_board` (default off: the task board's cards waiting
206
210
  for you — set `true` to list them).
@@ -499,11 +503,12 @@ Header: version, **Setup wizard**, **Help**.
499
503
  adds its changes. The bar **N unsaved change(s)** shows the cost — **Immediately**, **Restart this Agent** or **Restart
500
504
  AgEnD** — then **Save** or **Discard**; an invalid field keeps Save waiting (**Fix 1 field(s) to save**). Over a public
501
505
  link an admin can change the fleet's settings too (not the dashboard's own web settings, Guests or Web authority).
502
- Confirmations (e.g. opening access) are asked at Apply. A change that loosens access waits for a fleet admin to confirm
503
- in the General chat ("Waiting for confirmation", **Withdraw**) — unless the browser is web-verified (#2170): an
504
- account that is a fleet admin of every connection the change affects, on their platform, confirms it by its own Apply
505
- ("Confirmed by your account"; General gets a notice; every check runs again at execution). Not for a guest, the public
506
- link, an unverified browser or a change that needs the host CLI. After a failure, unapplied changes are staged again
506
+ Confirmations (e.g. opening access) are asked at Apply. A change that loosens access is confirmed by a signed-in fleet
507
+ admin's own Apply, from any device (AGEND-122): no DM step and no browser authorization ("Confirmed by your account —
508
+ applying."; every check runs again at execution). It waits ("Waiting for confirmation", **Withdraw**) only where that
509
+ admin turned on **Ask for my authenticator code to confirm changes from other devices** (Owner verification; the card
510
+ takes the 6-digit code) or **Only this computer can authorize** is on. Guests, read-only sessions and agents never
511
+ confirm. After a failure, unapplied changes are staged again
507
512
  (secrets must be re-entered). **Restart AgEnD** restarts every agent
508
513
  (never automatic); until then every page shows **N saved change(s) take effect after AgEnD restarts** · **Restart now** ·
509
514
  **Later**. Preferences and Look save with the same bar (**Your preferences**; device-only switches count on their own; Restore defaults saves at once).
@@ -520,13 +525,15 @@ link, an unverified browser or a change that needs the host CLI. After a failure
520
525
 
521
526
  **Look** — see [Look](#look) for the cards and what they mean.
522
527
 
523
- **Signing a backend in (#2233)** — local admin sessions only (never a guest or the public link): Settings → Agents →
524
- **Sign-ins** (each backend's login and each credential profile an agent uses: state, **Sign in** / **Sign in again**,
525
- or the host command / install command where the dashboard cannot), the web `/backend` picker's **Sign in to
526
- <backend>** on a "not signed in" choice, and Needs you's **Sign in**. The dialog: the pre-check's question (still
527
- signed in? kiro logs out first; **Use a temporary public link** where allowed), then a device code, or **Open the
528
- sign-in terminal** + its one-time access code (this browser only, no DM). While it runs every admin page shows
529
- "Signing in to X (started on <device>)" with **Open**; another browser sees no code and may **Cancel sign-in**. Ends
528
+ **Connecting an AI account (#2233; S-117 wording: 連接 AI 帳號 / 已連接 / 撤銷連接, never "sign in with a device
529
+ code")** — local admin sessions only (never a guest or the public link): Settings → Agents → **AI accounts and API keys** → **Accounts** (each AI
530
+ account connected on this machine and each credential profile an agent uses: state **connected** / **not connected**,
531
+ **Connect account** / **Reconnect**, or the host command / install command where the dashboard cannot), the web
532
+ `/backend` picker's **Connect your <backend> account** on a "not connected" choice, and Needs you's **Connect account**
533
+ (group **AI accounts**). The dialog: the pre-check's question (still connected? kiro disconnects first; **Use a
534
+ temporary public link** where allowed), titled **Connect an AI account: <CLI · account>**, then the provider's link and **authorization code** (授權碼) to finish on the
535
+ provider's official website, or **Open the authorization terminal** + its one-time access code (this browser only, no DM). While it runs every admin page shows
536
+ "Connecting your X account (started on <device>)" with **Open**; another browser sees no code and may **Cancel connecting**. Ends
530
537
  when the browser session ends. A missing CLI is not installed here (the dialog says the install command). agy and
531
538
  opencode: no dashboard sign-in. Config: `web_terminal.*` (as `/login`). Default Kiro, Claude Code and Codex
532
539
  accounts sign in with named browser controls instead (#2599): Kiro's account method, Start URL and region and Claude's
@@ -547,11 +547,13 @@ export class InstanceLifecycle {
547
547
  ? `${affected.length} instances on ${on}: ${affected.join(", ")}`
548
548
  : profile ? `\`${name}\` (${backend}, profile \`${profile}\`)` : `\`${name}\` (${backend})`;
549
549
  // A profile is signed in with its own variable: `/login <backend>` would sign the DEFAULT login in. claude-code's
550
- // can be signed in from chat (`/login <backend> <profile>`, #1699 part 2); the others' on the host.
550
+ // (#1699 part 2), codex's and kiro-cli's (#3212 PR 4) are signed in from chat (`/login <backend> <profile>`); any
551
+ // other backend's on the host.
551
552
  const profileLogin = profile ? credentialProfileLoginCommand(getAgendHome(), backend, profile) : null;
552
553
  const chatLogin = !!profileLogin && CHAT_PROFILE_LOGIN_BACKENDS.has(backend);
553
554
  const remedy = chatLogin
554
- ? `Use \`/login ${backend} ${profile}\` to sign that profile in remotely (or run \`${profileLogin}\` on the host).`
555
+ // 721ca0c3: never guide a person to type a host command — the chat sign-in is the way.
556
+ ? `Use \`/login ${backend} ${profile}\` to sign that profile in remotely.`
555
557
  : profileLogin
556
558
  ? `Run \`${profileLogin}\` on the host, then wake the affected instance(s).`
557
559
  : backend === "opencode"