@songsid/agend 2.3.5-beta.2 → 2.3.5-beta.4

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 (154) hide show
  1. package/dist/agent-cli-instructions.md +2 -2
  2. package/dist/auth-api.d.ts +2 -0
  3. package/dist/auth-api.js +5 -1
  4. package/dist/auth-api.js.map +1 -1
  5. package/dist/backend/claude-code.d.ts +2 -0
  6. package/dist/backend/claude-code.js +16 -3
  7. package/dist/backend/claude-code.js.map +1 -1
  8. package/dist/backend/cli-env-probe.js +6 -2
  9. package/dist/backend/cli-env-probe.js.map +1 -1
  10. package/dist/backend/codex.d.ts +5 -3
  11. package/dist/backend/codex.js +31 -13
  12. package/dist/backend/codex.js.map +1 -1
  13. package/dist/backend/kiro.js +1 -1
  14. package/dist/backend/kiro.js.map +1 -1
  15. package/dist/backend/types.d.ts +5 -1
  16. package/dist/backend/types.js.map +1 -1
  17. package/dist/bundled-tmux-guard.d.ts +4 -0
  18. package/dist/bundled-tmux-guard.js +7 -0
  19. package/dist/bundled-tmux-guard.js.map +1 -1
  20. package/dist/cache-service.d.ts +6 -0
  21. package/dist/cache-service.js +105 -0
  22. package/dist/cache-service.js.map +1 -1
  23. package/dist/channel/mcp-tools.js +2 -2
  24. package/dist/channel/mcp-tools.js.map +1 -1
  25. package/dist/cli.js +28 -1
  26. package/dist/cli.js.map +1 -1
  27. package/dist/daemon.d.ts +3 -0
  28. package/dist/daemon.js +17 -2
  29. package/dist/daemon.js.map +1 -1
  30. package/dist/fleet-manager.d.ts +71 -0
  31. package/dist/fleet-manager.js +393 -92
  32. package/dist/fleet-manager.js.map +1 -1
  33. package/dist/fleet-process-handlers.d.ts +1 -1
  34. package/dist/fleet-process-handlers.js +3 -2
  35. package/dist/fleet-process-handlers.js.map +1 -1
  36. package/dist/general-knowledge/skills/concepts/SKILL.md +11 -12
  37. package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +9 -1
  38. package/dist/general-knowledge/skills/fleet-config/SKILL.md +12 -0
  39. package/dist/general-knowledge/skills/fleet-health/SKILL.md +1 -1
  40. package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +4 -0
  41. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +16 -11
  42. package/dist/instance-lifecycle.d.ts +1 -1
  43. package/dist/instance-lifecycle.js +16 -1
  44. package/dist/instance-lifecycle.js.map +1 -1
  45. package/dist/instructions.js +29 -6
  46. package/dist/instructions.js.map +1 -1
  47. package/dist/kiro-history-scan.d.ts +26 -0
  48. package/dist/kiro-history-scan.js +141 -0
  49. package/dist/kiro-history-scan.js.map +1 -0
  50. package/dist/kiro-history-worker.d.ts +1 -0
  51. package/dist/kiro-history-worker.js +9 -0
  52. package/dist/kiro-history-worker.js.map +1 -0
  53. package/dist/kiro-history.d.ts +20 -0
  54. package/dist/kiro-history.js +96 -0
  55. package/dist/kiro-history.js.map +1 -0
  56. package/dist/kiro-usage-run.d.ts +2 -0
  57. package/dist/kiro-usage-run.js +4 -1
  58. package/dist/kiro-usage-run.js.map +1 -1
  59. package/dist/locale.js +69 -67
  60. package/dist/locale.js.map +1 -1
  61. package/dist/login-flows.d.ts +4 -0
  62. package/dist/login-flows.js +8 -4
  63. package/dist/login-flows.js.map +1 -1
  64. package/dist/office-levels.d.ts +4 -3
  65. package/dist/office-levels.js +3 -3
  66. package/dist/office-levels.js.map +1 -1
  67. package/dist/outbound-handlers.js +32 -12
  68. package/dist/outbound-handlers.js.map +1 -1
  69. package/dist/outbound-schemas.d.ts +14 -0
  70. package/dist/outbound-schemas.js +4 -0
  71. package/dist/outbound-schemas.js.map +1 -1
  72. package/dist/setup-i18n.js +4 -4
  73. package/dist/setup-i18n.js.map +1 -1
  74. package/dist/subagent-records.d.ts +45 -0
  75. package/dist/subagent-records.js +214 -0
  76. package/dist/subagent-records.js.map +1 -0
  77. package/dist/subagent-service.d.ts +27 -0
  78. package/dist/subagent-service.js +199 -0
  79. package/dist/subagent-service.js.map +1 -0
  80. package/dist/tool-permissions.d.ts +2 -3
  81. package/dist/tool-permissions.js +3 -3
  82. package/dist/tool-permissions.js.map +1 -1
  83. package/dist/ui/backend-signin.js +62 -62
  84. package/dist/ui/chat-commands.js +7 -0
  85. package/dist/ui/chat-msg-actions.js +50 -4
  86. package/dist/ui/chat-quote.js +256 -0
  87. package/dist/ui/chat-render.js +17 -5
  88. package/dist/ui/chat-store.js +9 -4
  89. package/dist/ui/chat-strings.js +18 -18
  90. package/dist/ui/fleet-cache.js +3 -3
  91. package/dist/ui/fleet-canvas.js +2 -2
  92. package/dist/ui/fleet-office-editor.js +1 -1
  93. package/dist/ui/fleet-office.js +1 -1
  94. package/dist/ui/fleet-org.js +2 -2
  95. package/dist/ui/fleet-task-card.js +1 -1
  96. package/dist/ui/fleet-task-common.js +7 -7
  97. package/dist/ui/model-picker.js +64 -0
  98. package/dist/ui/panel-chat.js +81 -17
  99. package/dist/ui/panel-fleet.js +8 -8
  100. package/dist/ui/panel-needs.js +3 -3
  101. package/dist/ui/panel-settings.js +16 -6
  102. package/dist/ui/settings-catalog.js +19 -4
  103. package/dist/ui/settings-dialogs.js +25 -8
  104. package/dist/ui/settings-guests.js +1 -1
  105. package/dist/ui/settings-registry.js +3 -1
  106. package/dist/ui/settings-strings.js +30 -26
  107. package/dist/ui/settings-update.js +69 -0
  108. package/dist/ui/shared/app-i18n.js +8 -4
  109. package/dist/ui/shared/app-shell.js +15 -2
  110. package/dist/ui/shared/app-update.js +215 -0
  111. package/dist/ui/shared/app.css +58 -6
  112. package/dist/ui/shared/instance-nav.js +1 -1
  113. package/dist/ui/shared/model-picker.css +21 -0
  114. package/dist/ui/shared/setup-host-text.js +4 -4
  115. package/dist/ui/shared/signin.js +32 -16
  116. package/dist/ui/shared/subagent-row.css +15 -0
  117. package/dist/ui/shared/usage-dialog.js +28 -16
  118. package/dist/ui/shared/view-strings.js +18 -18
  119. package/dist/ui/structured-signin.js +26 -26
  120. package/dist/ui/subagent-row.js +72 -0
  121. package/dist/ui/web-terminal/terminal.js +9 -9
  122. package/dist/update-launch.js +4 -1
  123. package/dist/update-launch.js.map +1 -1
  124. package/dist/update-marker.d.ts +2 -2
  125. package/dist/update-marker.js +4 -3
  126. package/dist/update-marker.js.map +1 -1
  127. package/dist/update-npm-env.d.ts +70 -0
  128. package/dist/update-npm-env.js +128 -0
  129. package/dist/update-npm-env.js.map +1 -0
  130. package/dist/usage/format-rich.js +1 -1
  131. package/dist/usage/format-rich.js.map +1 -1
  132. package/dist/usage/providers.js +2 -2
  133. package/dist/usage/providers.js.map +1 -1
  134. package/dist/usage/usage-api.d.ts +8 -2
  135. package/dist/usage/usage-api.js +12 -5
  136. package/dist/usage/usage-api.js.map +1 -1
  137. package/dist/usage-rollup.d.ts +3 -0
  138. package/dist/usage-rollup.js +2 -0
  139. package/dist/usage-rollup.js.map +1 -1
  140. package/dist/web-api.d.ts +14 -0
  141. package/dist/web-api.js +216 -2
  142. package/dist/web-api.js.map +1 -1
  143. package/dist/web-auth.js +2 -1
  144. package/dist/web-auth.js.map +1 -1
  145. package/dist/web-channel-echo.js +3 -1
  146. package/dist/web-channel-echo.js.map +1 -1
  147. package/dist/web-commands.d.ts +8 -0
  148. package/dist/web-commands.js +6 -0
  149. package/dist/web-commands.js.map +1 -1
  150. package/dist/web-update.d.ts +77 -0
  151. package/dist/web-update.js +104 -0
  152. package/dist/web-update.js.map +1 -0
  153. package/launcher/agend-install.cjs +16 -3
  154. package/package.json +2 -2
@@ -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,UAAU,gBAAgB,CAAC,OAAe,EAAE,KAAc;IAC9D,eAAe,CAAC,OAAO,CAAC,CAAC;IACzB,MAAM,EAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,iBAAiB,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IAClE,IAAI,CAAC;QACH,SAAS,CAAC,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG;YAClF,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC;YACrE,KAAK,EAAE,KAAK,YAAY,KAAK,CAA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Y,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"}
@@ -46,23 +46,20 @@ pause, wake and restart; templates; teams; `update_fleet_defaults`;
46
46
  `update_instance_config`; the kiro migrate and reconcile tools;
47
47
  `update_decision`; web settings — with no extra confirmation. The existing
48
48
  confirmations stay: sensitive config (tokens and access) is confirmed by a
49
- fleet admin, and #804 still refuses `tool_set` or `skipPermissions` escalation.
49
+ fleet admin. Decision 36525f1b (user 2026-11-09) adds `get_instance_logs`,
50
+ `get_fleet_config`, `validate_config` and `list_deployments`, and lets General
51
+ set another agent’s `tool_set` directly through `update_instance_config` or
52
+ `create_instance`, without confirmation. Non-General callers, coordinators
53
+ included, retain the #804/#814 refusal; `skipPermissions` is refused for everyone.
50
54
  It supersedes the 2026-09-21 "dispatcher" rationale and lands in beta.8 (agy's
51
55
  PR). General is the fleet's admin instance — the first agent on a new fleet —
52
56
  and owns the General topic. An instance runs under the `general` tool set when
53
57
  `general_topic: true` or its name is `general`.
54
58
 
55
- - Can (as of beta.8): everything in the worker profile plus the full
56
- ORCHESTRATION set, delegation, schedules, and the user's web-appearance
57
- settings.
58
- - Can't: exceed that set. Note the code on main is pre-beta.8 and still shows
59
- the smaller subset (`src/tool-permissions.ts:107-136` holds only
60
- `create/start/restart/wake_instance` plus the web settings
61
- (`get/set_web_settings`) of the orchestration verbs) — expected
62
- to change when beta.8 lands; see Mismatches.
63
- - Code: `src/tool-permissions.ts:107-136`, `:201-208`;
64
- `src/instance-lifecycle.ts:2741` (the General instance cannot be replaced).
65
- - Refs: fleet decision 9e3bea6c.
59
+ - Can: use the coordinator tools except repository leases, including the read-only debug tools, and directly set another agent’s `tool_set` to a writable profile (`full`, `standard`, `worker`, `coordinator` or `minimal`).
60
+ - Can’t: use `checkout_repo` or `release_repo` under the default General profile, assign the role-derived `general` profile, or pass `skipPermissions` through either configuration tool. General cannot change its own `tool_set` through either tool (including a create operation that resolves to itself); a person may still set it in Settings or fleet.yaml. An explicitly narrowed General remains narrowed.
61
+ - Code: `src/tool-permissions.ts`, `src/general-instance.ts`, `src/outbound-handlers.ts`.
62
+ - Refs: fleet decisions 9e3bea6c and 36525f1b.
66
63
 
67
64
  ## `coordinator` tool set
68
65
 
@@ -130,6 +127,8 @@ A private chat or group where ClassicBot runs a single agent, managed by
130
127
  - Can: `/start` an agent in the room and chat with it.
131
128
  - Can't: use fleet-topic commands or see the fleet; an unregistered chat stays
132
129
  silent unless `/start` is allowed.
130
+ 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.
131
+
133
132
  - Code: `src/classic-channel-manager.ts`.
134
133
  - Refs: `docs/permissions.md`.
135
134
 
@@ -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
 
@@ -31,6 +31,18 @@ templates: # Reusable fleet deployment templates
31
31
  - Instance logs: `~/.agend/instances/<name>/output.log`
32
32
  - Runtime logs: `agend logs` / `~/.agend/daemon.log`; service startup errors and Node warnings: `~/.agend/fleet.log`
33
33
 
34
+ ## Inspect and set an agent’s tool profile
35
+
36
+ Use `get_fleet_config({ scope: "instance", name })` or `scope: "defaults"` to inspect the current configuration, and `list_deployments` to inspect deployed groups. These read-only tools and `validate_config` are in General’s default profile.
37
+
38
+ As General, set another agent’s profile directly, without asking for a confirmation card:
39
+
40
+ ```js
41
+ update_instance_config({ name: "worker", config: { tool_set: "worker" } })
42
+ create_instance({ topic_name: "new-worker", tool_set: "worker" })
43
+ ```
44
+ Writable values: `full`, `standard`, `worker`, `coordinator`, `minimal`. `general` is assigned by role and cannot be written. Other callers (including coordinators and non-General `full` agents) remain refused under #804/#814. Both tools refuse `skipPermissions` for everyone, including General; do not pass it. Sensitive Settings changes (tokens, access and admin membership) still use their existing confirmation. An explicitly narrowed General remains narrowed. General cannot change its own `tool_set` through either tool, including a create operation that resolves to the existing General; a person may still change it in Settings or fleet.yaml.
45
+
34
46
  ## kiro-cli UI mode (kiro_ui)
35
47
 
36
48
  For `backend: kiro-cli` instances, `kiro_ui` selects the CLI's UI/agent profile:
@@ -6,7 +6,7 @@ roles: [general]
6
6
 
7
7
  ## Check health
8
8
 
9
- Prefer the fleet tools — they already know each instance's state:
9
+ Prefer the fleet tools — they already know each instance's state. General’s default profile includes the read-only debug tools `get_instance_logs`, `get_fleet_config`, `validate_config` and `list_deployments`; use them before dropping to host commands:
10
10
  - `list_instances` — every instance with its status and `instance_state`: idle / working / stuck / paused / awaiting_input (the CLI is waiting at an on-screen dialog or input).
11
11
  - `describe_instance("<name>")` — one instance's status, state, last activity, description.
12
12
  - `get_fleet_status` — just the counts: total, running, paused, stopped.
@@ -4,6 +4,10 @@ description: restart vs replace vs pause/wake; when to use each
4
4
  roles: [general]
5
5
  ---
6
6
 
7
+ ## Create with a tool profile
8
+
9
+ General may supply `tool_set` to `create_instance` directly, without a confirmation card, or change another agent’s profile through `update_instance_config`. See the fleet-config skill for valid profiles. `skipPermissions` remains refused even for General. General cannot change its own `tool_set` through either tool, including a create operation that resolves to the existing General; a person may still change it in Settings or fleet.yaml. Do not add a redundant reload after creation; the fleet reconciles itself.
10
+
7
11
  ## Restart vs Replace vs Stop / Delete
8
12
 
9
13
  - `restart_instance("<name>")` — keeps the session, reloads config. Use when config changed.
@@ -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.
@@ -191,16 +194,16 @@ Turn it off with Settings → Chat & connections → **Web echo** (`web.echo_to_
191
194
 
192
195
  `/ui/needs`, the sidebar row **Needs you** with a count, the phone tab of the same name, and "(N)" in the browser
193
196
  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
197
+ - the CLI waiting: "Permission needed", "Dangerous command waiting", "Waiting to connect its AI account", "Waiting at a dialog", "May be
195
198
  waiting for input", "Waiting at its terminal", "Not responding", "Exited";
196
- - the instance: "Paused: sign-in needed", "Crashed";
199
+ - the instance: "Paused: AI account not connected", "Crashed";
197
200
  - deliveries from the last 24 h: "Could not confirm delivery", "Delivery failed" (source → target · kind).
198
201
 
199
202
  "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
203
  for answering in words (on Discord/Telegram: reply to the post); an MCP input request offers Decline / Cancel and is
201
204
  filled in at the terminal (View).
202
205
  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
206
+ "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
207
  tab is hidden — per browser, not on phones or plain-HTTP addresses. Config: `needs_you.live_message` (default on),
205
208
  `needs_you.dm` (default off), `needs_you.task_board` (default off: the task board's cards waiting
206
209
  for you — set `true` to list them).
@@ -510,12 +513,14 @@ link, an unverified browser or a change that needs the host CLI. After a failure
510
513
 
511
514
  **Look** — see [Look](#look) for the cards and what they mean.
512
515
 
513
- **Signing a backend in (#2233)** — local admin sessions only (never a guest or the public link): Settings → Agents →
514
- **Sign-ins** (each backend's login and each credential profile an agent uses: state, **Sign in** / **Sign in again**,
515
- or the host command / install command where the dashboard cannot), the web `/backend` picker's **Sign in to
516
- <backend>** on a "not signed in" choice, and Needs you's **Sign in**. The dialog: the pre-check's question (still
517
- signed in? kiro logs out first; **Use a temporary public link** where allowed), then a device code, or **Open the
518
- sign-in terminal** + its one-time access code (this browser only, no DM). While it runs every admin page shows
516
+ **Connecting an AI account (#2233; S-117 wording: 連接 AI 帳號 / 已連接 / 撤銷連接, never "sign in with a device
517
+ code")** — local admin sessions only (never a guest or the public link): Settings → Agents → **AI accounts** (each AI
518
+ account connected on this machine and each credential profile an agent uses: state **connected** / **not connected**,
519
+ **Connect account** / **Reconnect**, or the host command / install command where the dashboard cannot), the web
520
+ `/backend` picker's **Connect your <backend> account** on a "not connected" choice, and Needs you's **Connect account**
521
+ (group **AI accounts**). The dialog: the pre-check's question (still connected? kiro disconnects first; **Use a
522
+ temporary public link** where allowed), then the provider's link and **authorization code** (授權碼) to finish on the
523
+ 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
519
524
  "Signing in to X (started on <device>)" with **Open**; another browser sees no code and may **Cancel sign-in**. Ends
520
525
  when the browser session ends. A missing CLI is not installed here (the dialog says the install command). agy and
521
526
  opencode: no dashboard sign-in. Config: `web_terminal.*` (as `/login`). Default Kiro, Claude Code and Codex
@@ -573,7 +573,7 @@ export declare class InstanceLifecycle {
573
573
  */
574
574
  private bindsAdapter;
575
575
  /** Handle create_instance tool call from a daemon. */
576
- handleCreate(args: LifecycleCreateArgs, respond: (result: unknown, error?: string) => void, adapterId?: string, execution?: SettingsExecution): Promise<void>;
576
+ handleCreate(args: LifecycleCreateArgs, respond: (result: unknown, error?: string) => void, adapterId?: string, execution?: SettingsExecution, toolSetCaller?: string): Promise<void>;
577
577
  /** Handle delete_instance tool call from a daemon. */
578
578
  handleDelete(args: LifecycleDeleteArgs, respond: (result: unknown, error?: string) => void): Promise<void>;
579
579
  has(name: string): boolean;
@@ -2031,9 +2031,10 @@ export class InstanceLifecycle {
2031
2031
  return channels.length > 1 || adapterId !== first;
2032
2032
  }
2033
2033
  /** Handle create_instance tool call from a daemon. */
2034
- async handleCreate(args, respond, adapterId, execution) {
2034
+ async handleCreate(args, respond, adapterId, execution, toolSetCaller) {
2035
2035
  const check = () => execution?.assert();
2036
2036
  check();
2037
+ const selfToolSetError = "General cannot change its own tool_set through a tool; use Settings or fleet.yaml (privilege boundary, #804/#814)";
2037
2038
  const rawDirectory = args.directory;
2038
2039
  const directory = rawDirectory ? rawDirectory.replace(/^~/, process.env.HOME || "~") : undefined;
2039
2040
  const topicName = args.topic_name || (directory ? basename(directory) : undefined);
@@ -2094,6 +2095,10 @@ export class InstanceLifecycle {
2094
2095
  .find(([_, config]) => expandHome(config.working_directory) === directory);
2095
2096
  if (existingInstance) {
2096
2097
  const [eName, eConfig] = existingInstance;
2098
+ if (eName === toolSetCaller) {
2099
+ respond(null, selfToolSetError);
2100
+ return;
2101
+ }
2097
2102
  respond({
2098
2103
  success: true,
2099
2104
  status: "already_exists",
@@ -2218,6 +2223,10 @@ export class InstanceLifecycle {
2218
2223
  .find(([_, config]) => expandHome(config.working_directory) === workDir);
2219
2224
  if (existingInstance) {
2220
2225
  const [eName, eConfig] = existingInstance;
2226
+ if (eName === toolSetCaller) {
2227
+ respond(null, selfToolSetError);
2228
+ return;
2229
+ }
2221
2230
  respond({
2222
2231
  success: true,
2223
2232
  status: "already_exists",
@@ -2279,6 +2288,12 @@ export class InstanceLifecycle {
2279
2288
  return true;
2280
2289
  });
2281
2290
  }
2291
+ // A retried topic allocation may resolve to an existing General. Its
2292
+ // authenticated caller may set other agents' profiles, never its own.
2293
+ // Check before markers, config or startup; rollback retains referenced topics.
2294
+ if (newInstanceName === toolSetCaller) {
2295
+ throw new Error(selfToolSetError);
2296
+ }
2282
2297
  // A recycled name must never inherit a stale pause marker.
2283
2298
  clearPausedMarker(this.ctx.getInstanceDir(newInstanceName));
2284
2299
  // If no directory was provided, auto-create default workspace