@songsid/agend 2.4.0-beta.23 → 2.4.0-beta.24

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 (152) hide show
  1. package/dist/agent-cli-instructions.md +4 -3
  2. package/dist/agent-cli.js +32 -2
  3. package/dist/agent-cli.js.map +1 -1
  4. package/dist/agent-file-read.js +2 -2
  5. package/dist/agent-file-read.js.map +1 -1
  6. package/dist/agent-whats-new.js +11 -1
  7. package/dist/agent-whats-new.js.map +1 -1
  8. package/dist/backend/claude-code.d.ts +15 -0
  9. package/dist/backend/claude-code.js +8 -3
  10. package/dist/backend/claude-code.js.map +1 -1
  11. package/dist/backend/claude-mcp-carry.d.ts +63 -0
  12. package/dist/backend/claude-mcp-carry.js +242 -0
  13. package/dist/backend/claude-mcp-carry.js.map +1 -0
  14. package/dist/build-provenance.json +1 -1
  15. package/dist/channel/mcp-tools.js +7 -6
  16. package/dist/channel/mcp-tools.js.map +1 -1
  17. package/dist/config-validator.js +6 -0
  18. package/dist/config-validator.js.map +1 -1
  19. package/dist/daemon.d.ts +11 -0
  20. package/dist/daemon.js +66 -15
  21. package/dist/daemon.js.map +1 -1
  22. package/dist/dashboard-permissions.d.ts +8 -0
  23. package/dist/dashboard-permissions.js +8 -0
  24. package/dist/dashboard-permissions.js.map +1 -1
  25. package/dist/delivery-outbox.d.ts +15 -1
  26. package/dist/delivery-outbox.js +60 -2
  27. package/dist/delivery-outbox.js.map +1 -1
  28. package/dist/fleet-manager.d.ts +14 -0
  29. package/dist/fleet-manager.js +67 -0
  30. package/dist/fleet-manager.js.map +1 -1
  31. package/dist/general-knowledge/skills/concepts/SKILL.md +22 -9
  32. package/dist/general-knowledge/skills/credential-profiles/SKILL.md +6 -0
  33. package/dist/general-knowledge/skills/fleet-config/SKILL.md +3 -3
  34. package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +1 -1
  35. package/dist/general-knowledge/skills/task-board/SKILL.md +17 -0
  36. package/dist/general-knowledge/skills/web-appearance/SKILL.md +4 -0
  37. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +21 -3
  38. package/dist/hub/group-policy/resources.d.ts +1 -1
  39. package/dist/instance-lifecycle.d.ts +2 -0
  40. package/dist/instance-lifecycle.js +29 -1
  41. package/dist/instance-lifecycle.js.map +1 -1
  42. package/dist/locale.js +10 -0
  43. package/dist/locale.js.map +1 -1
  44. package/dist/needs-you-hub.d.ts +3 -0
  45. package/dist/needs-you-hub.js +31 -5
  46. package/dist/needs-you-hub.js.map +1 -1
  47. package/dist/needs-you.d.ts +14 -1
  48. package/dist/needs-you.js +5 -0
  49. package/dist/needs-you.js.map +1 -1
  50. package/dist/office-share-page.js +1 -1
  51. package/dist/office-share-page.js.map +1 -1
  52. package/dist/office-share.js +2 -1
  53. package/dist/office-share.js.map +1 -1
  54. package/dist/outbound-handlers.js +29 -6
  55. package/dist/outbound-handlers.js.map +1 -1
  56. package/dist/outbound-schemas.d.ts +3 -0
  57. package/dist/outbound-schemas.js +7 -5
  58. package/dist/outbound-schemas.js.map +1 -1
  59. package/dist/public-web-gateway.js +3 -0
  60. package/dist/public-web-gateway.js.map +1 -1
  61. package/dist/request-context-compatibility.d.ts +20 -0
  62. package/dist/request-context-compatibility.js +74 -0
  63. package/dist/request-context-compatibility.js.map +1 -0
  64. package/dist/request-context-protocol.d.ts +137 -0
  65. package/dist/request-context-protocol.js +38 -0
  66. package/dist/request-context-protocol.js.map +1 -0
  67. package/dist/request-context-store.d.ts +25 -0
  68. package/dist/request-context-store.js +137 -0
  69. package/dist/request-context-store.js.map +1 -0
  70. package/dist/scheduler/db.js +26 -0
  71. package/dist/scheduler/db.js.map +1 -1
  72. package/dist/scheduler/task-board-text.d.ts +2 -0
  73. package/dist/scheduler/task-board-text.js +12 -0
  74. package/dist/scheduler/task-board-text.js.map +1 -1
  75. package/dist/scheduler/task-board.d.ts +102 -2
  76. package/dist/scheduler/task-board.js +242 -24
  77. package/dist/scheduler/task-board.js.map +1 -1
  78. package/dist/scheduler/task-files.d.ts +80 -0
  79. package/dist/scheduler/task-files.js +357 -0
  80. package/dist/scheduler/task-files.js.map +1 -0
  81. package/dist/settings-api.d.ts +2 -0
  82. package/dist/settings-api.js +6 -1
  83. package/dist/settings-api.js.map +1 -1
  84. package/dist/settings-baseline.d.ts +1 -0
  85. package/dist/settings-baseline.js +1 -1
  86. package/dist/settings-baseline.js.map +1 -1
  87. package/dist/settings-effect.d.ts +2 -0
  88. package/dist/settings-effect.js +5 -1
  89. package/dist/settings-effect.js.map +1 -1
  90. package/dist/task-attach-client.d.ts +43 -0
  91. package/dist/task-attach-client.js +125 -0
  92. package/dist/task-attach-client.js.map +1 -0
  93. package/dist/task-board-tool.d.ts +12 -0
  94. package/dist/task-board-tool.js +107 -6
  95. package/dist/task-board-tool.js.map +1 -1
  96. package/dist/task-file-limits.d.ts +15 -0
  97. package/dist/task-file-limits.js +21 -0
  98. package/dist/task-file-limits.js.map +1 -0
  99. package/dist/tool-permissions.d.ts +32 -0
  100. package/dist/tool-permissions.js +63 -0
  101. package/dist/tool-permissions.js.map +1 -1
  102. package/dist/types.d.ts +6 -0
  103. package/dist/ui/agent-details-settings.js +7 -5
  104. package/dist/ui/agent-who-can-use-strings.js +125 -0
  105. package/dist/ui/agent-who-can-use.js +238 -0
  106. package/dist/ui/fleet-office-card.js +23 -5
  107. package/dist/ui/fleet-office-editor.js +5 -5
  108. package/dist/ui/fleet-office-pack.d.ts +10 -0
  109. package/dist/ui/fleet-office-pack.js +65 -2
  110. package/dist/ui/fleet-office-skin.js +42 -8
  111. package/dist/ui/fleet-office-store.js +33 -2
  112. package/dist/ui/fleet-office-vehicles.js +130 -0
  113. package/dist/ui/fleet-office-zones.js +5 -1
  114. package/dist/ui/fleet-office.js +112 -31
  115. package/dist/ui/fleet-task-activity.js +9 -82
  116. package/dist/ui/fleet-task-archive.js +111 -0
  117. package/dist/ui/fleet-task-card.js +6 -4
  118. package/dist/ui/fleet-task-common.js +2 -2
  119. package/dist/ui/fleet-task-edit.js +8 -1
  120. package/dist/ui/fleet-task-files.js +196 -0
  121. package/dist/ui/fleet-task-md.js +98 -0
  122. package/dist/ui/fleet-task-menu.js +1 -1
  123. package/dist/ui/fleet-task-stats.js +2 -2
  124. package/dist/ui/fleet-task-view.js +12 -8
  125. package/dist/ui/fleet-tasks.js +42 -18
  126. package/dist/ui/panel-details.js +3 -1
  127. package/dist/ui/panel-needs.js +3 -3
  128. package/dist/ui/panel-settings.js +15 -1
  129. package/dist/ui/settings-registry.js +1 -0
  130. package/dist/ui/settings-shared-strings.js +9 -0
  131. package/dist/ui/settings-shared.js +6 -1
  132. package/dist/ui/shared/app-i18n.js +2 -2
  133. package/dist/ui/shared/app-needs.js +8 -1
  134. package/dist/ui/shared/app.css +55 -3
  135. package/dist/ui/shared/chat-strings.js +4 -4
  136. package/dist/ui/shared/task-board.css +64 -0
  137. package/dist/web-api.d.ts +3 -0
  138. package/dist/web-api.js +97 -14
  139. package/dist/web-api.js.map +1 -1
  140. package/dist/web-office-acts.d.ts +16 -0
  141. package/dist/web-office-acts.js +27 -9
  142. package/dist/web-office-acts.js.map +1 -1
  143. package/dist/web-office-pack-read.js +1 -1
  144. package/dist/web-office-pack-read.js.map +1 -1
  145. package/dist/web-office-skins.d.ts +5 -3
  146. package/dist/web-office-skins.js +20 -16
  147. package/dist/web-office-skins.js.map +1 -1
  148. package/dist/web-settings-patch.d.ts +27 -0
  149. package/dist/web-settings-patch.js +67 -0
  150. package/dist/web-settings-patch.js.map +1 -1
  151. package/dist/workflow-templates/default.md +1 -0
  152. package/package.json +1 -1
@@ -58,8 +58,17 @@ confirmations stay: sensitive config (tokens and access) is confirmed by a
58
58
  fleet admin. Decision 36525f1b (user 2026-11-09) adds `get_instance_logs`,
59
59
  `get_fleet_config`, `validate_config` and `list_deployments`, and lets General
60
60
  set another agent’s `tool_set` directly through `update_instance_config` or
61
- `create_instance`, without confirmation. Non-General callers, coordinators
62
- included, retain the #804/#814 refusal; `skipPermissions` is refused for everyone.
61
+ `create_instance`, without confirmation. Any other creator may set `tool_set`
62
+ on `create_instance` and `deploy_template` only, up to its own resolved profile.
63
+ Changing an existing agent's `tool_set` through `update_instance_config` stays
64
+ General-only. The
65
+ order is defined once (`toolSetRank`): `full`, `general`, `coordinator`,
66
+ `worker`, `standard`, `minimal`, highest privilege first. A non-General creator
67
+ cannot grant `full` or `general`; a creator already on one of those is capped
68
+ at `coordinator`. Above the cap is refused, and the refusal names the cap.
69
+ Omitting `tool_set` still means `worker`, unless fleet defaults would copy a
70
+ higher profile onto the new instance: that effective profile is what the cap
71
+ sees. `skipPermissions` is refused for everyone.
63
72
  It supersedes the 2026-09-21 "dispatcher" rationale and lands in beta.8 (agy's
64
73
  PR). General is the fleet's admin instance — the first agent on a new fleet —
65
74
  and owns the General topic. An instance runs under the `general` tool set when
@@ -79,9 +88,13 @@ runs part of the fleet.
79
88
  - Can: create/delete/replace/start/stop/pause/wake/restart instances, manage
80
89
  teams and templates, edit fleet defaults and instance config, run kiro
81
90
  migration/reconciliation, change others' decisions and web settings
82
- (`src/tool-permissions.ts:80-93`).
91
+ (`src/tool-permissions.ts:80-93`). Set another agent's `tool_set` to
92
+ `coordinator` or lower (`worker`, `standard`, `minimal`) when creating or
93
+ deploying it, with no confirmation card. The new agent starts on that profile.
83
94
  - Can't: exceed the table — anything not listed is refused, with the reason
84
- naming what the instance runs under.
95
+ naming what the instance runs under. Grant `full` or `general`, grant a
96
+ profile above its own resolved profile, change an existing agent's
97
+ `tool_set` through `update_instance_config`, or change its own `tool_set`.
85
98
  - Code: `src/tool-permissions.ts:100-107`.
86
99
  - Refs: `docs/design/coordinator-tool-perms.zh-TW.md` (zh-TW only).
87
100
 
@@ -533,11 +546,11 @@ right after the agent's Role, with a fixed preface.
533
546
 
534
547
  Real code-vs-decision gaps only. Nothing here is papered over.
535
548
 
536
- 1. **General's read-only debug tools and direct `tool_set` assignment
537
- (convention, not enforced in code).** The extra abilities listed in the
538
- General section come from user decision 36525f1b (2026-11-09); there is no
539
- corresponding enforcement in tool-permissions. Recorded as convention;
540
- where implementation differs, code wins.
549
+ The previous entry (General's `tool_set` assignment recorded as convention
550
+ only) is closed. `toolSetRank` defines the order, and `create_instance` and
551
+ `deploy_template` enforce the cap. `update_instance_config` changing an
552
+ existing agent's `tool_set` stays General-only. General still sets any
553
+ writable profile except the role-derived `general` profile.
541
554
 
542
555
  [繁體中文](concepts.zh-TW.md)
543
556
 
@@ -74,6 +74,12 @@ CLAUDE_CONFIG_DIR="${AGEND_HOME:-$HOME/.agend}/credential-profiles/claude-code/<
74
74
  A Claude Code profile keeps its own login, trust and conversations, and a
75
75
  `settings.json` that starts as a copy of the user's; the user's `CLAUDE.md`,
76
76
  agents, commands, skills, output styles and plugins are shared with it.
77
+ A switch also merges the agent's own MCP servers (user scope, and local scope
78
+ for its folder) into the new profile, never overwriting one it already has. If
79
+ an agent still starts without some it had, it is told which, and Needs you
80
+ lists them until they are back: re-add with `claude mcp add -s local …` in the
81
+ new profile. Acknowledge there only dismisses the item; it does not restore
82
+ anything.
77
83
 
78
84
  **When a switch was refused, relay the command from the refusal, character for
79
85
  character** — never one you assembled from the templates above. It carries the
@@ -35,13 +35,13 @@ templates: # Reusable fleet deployment templates
35
35
 
36
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
37
 
38
- As General, set another agent’s profile directly, without asking for a confirmation card:
38
+ Set a new agent's profile directly, without a confirmation card. Any creator may set a profile at or below its own resolved profile on `create_instance` and `deploy_template`. The order, highest privilege first, is `full`, `general`, `coordinator`, `worker`, `standard`, `minimal`. A non-General creator cannot grant `full` or `general` (those creators are capped at `coordinator`). General may set any writable profile. Above the cap is refused, and the refusal names the cap. The new agent starts on that profile; do not reload. Changing an existing agent's `tool_set` through `update_instance_config` stays General-only.
39
39
 
40
40
  ```js
41
- update_instance_config({ name: "worker", config: { tool_set: "worker" } })
41
+ update_instance_config({ name: "worker", config: { tool_set: "worker" } }) // General only
42
42
  create_instance({ topic_name: "new-worker", tool_set: "worker" })
43
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. This direct exception covers portable/local agents only. Native Windows keeps its separate admin request for creation and for display name, description or model changes; set its `tool_set` in Settings on the host.
44
+ Writable values: `full`, `standard`, `worker`, `coordinator`, `minimal`. `general` is assigned by role and cannot be written. 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. Nobody can change their own `tool_set` through a create that resolves to the existing agent, or through General's own update; a person may still change it in Settings or fleet.yaml. This direct path covers portable/local agents only. Native Windows keeps its separate admin request for creation and for display name, description or model changes; set its `tool_set` in Settings on the host.
45
45
 
46
46
  ## kiro-cli UI mode (kiro_ui)
47
47
 
@@ -6,7 +6,7 @@ roles: [general]
6
6
 
7
7
  ## Create with a tool profile
8
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. This direct exception covers portable/local agents only. Native Windows keeps its separate admin request for creation and for display name, description or model changes; set its `tool_set` in Settings on the host.
9
+ Any creator may supply `tool_set` to `create_instance` or `deploy_template`, without a confirmation card. The profile must be at or below the creator’s own resolved profile. Highest privilege first: `full`, `general`, `coordinator`, `worker`, `standard`, `minimal`. A non-General creator cannot grant `full` or `general`; the refusal names the cap. General may set any writable profile. Changing an existing agent's `tool_set` through `update_instance_config` stays General-only. See the fleet-config skill. `skipPermissions` remains refused even for General. Nobody can change their own `tool_set` through a create that resolves to the existing agent, or through General's own update; a person may still change it in Settings or fleet.yaml. Do not add a redundant reload after creation; the fleet reconciles itself and the new agent starts on that profile. This direct path covers portable/local agents only. Native Windows keeps its separate admin request for creation and for display name, description or model changes; set its `tool_set` in Settings on the host.
10
10
 
11
11
  ## Choose a working directory
12
12
 
@@ -25,6 +25,7 @@ roles: [general, worker]
25
25
  - **move** — to a status; blocked/cancelled need a `reason`, finishing needs a `result`.
26
26
  - **projects** (each with its id), **create_project** (name, description; changing or archiving a project is a person's),
27
27
  **move_project** (`ids` + `project`: several main tasks, each moved or refused on its own).
28
+ - **attach** — files on the card (`id`, `attach: [paths]`, optional `comment`); see "Reporting on the card".
28
29
  - **watch** / **unwatch** (`id`, `watcher`) — follow a card yourself, or name another instance on a card you may edit
29
30
  (see Following below).
30
31
 
@@ -45,6 +46,22 @@ are any. A field an action does not take is refused by name, and nothing is chan
45
46
  to you: ask the person, then move it back to `claimed` with the decision as the comment.
46
47
  - A `[Task board]` notice is news on your cards: act on them with this tool.
47
48
 
49
+ ## Reporting on the card
50
+
51
+ The person reads the card — its result, its timeline, its files — not your chat, and not your machine. When you finish a step
52
+ or have something they can use, put it ON the card, in the same write as the move:
53
+
54
+ - `result` — a short Markdown summary (at most 1000 characters): what was done, how it was checked.
55
+ - `comment` — the content itself, in Markdown, written for the person: what this is and how to open it ("download `survivor.html`
56
+ and open it in a browser"), not a command that only runs on your machine. Short text goes here (up to 4000 characters), not in a file.
57
+ - `attach: ["./survivor.html"]` — the finished thing, on `update`, `move` or `attach` (CLI: `--attach FILE`). Attach what the person
58
+ will open, not your working files: usually one file, at most three; never source, modules, config, logs or drafts. A web prototype
59
+ is ONE `.html` with its CSS and JS inline; keep the source in your workspace or branch and link the PR or repo in the comment. Do
60
+ not attach a file again unless it changed, and then say what changed. Read from your working directory (no symlinks), 10 MiB each.
61
+ - Never give only a path on your machine (`/data/workspaces/...`): the person cannot open it. If your words name one, the
62
+ answer says so and how to attach the file.
63
+ - Goal, scope, context, state, result and comments are drawn as Markdown; the progress `log` stays one plain line.
64
+
48
65
  ## Comments and mentions
49
66
 
50
67
  - A comment on your card by someone else, or an `@<instance name>` naming you in a comment on any card, wakes you with a
@@ -303,6 +303,10 @@ are not in your list), you can direct your own character for a moment:
303
303
  office_view lists it), `waypoint` (an id) or `person` (a member of the same office); `say` a line of 1..40 characters
304
304
  (a speech bubble); `pose` one of idle, working, needs, paused; `seconds` 5..120 (default 30). `clear: true`, alone,
305
305
  ends your act. `office` is needed only when you are in more than one.
306
+ - `office_set { ride }`: work on board one of the office's vehicles (`office_view`'s `vehicles`, a train going round a
307
+ loop of track): you walk to its platform, wait until it stops there, take a free seat and go round with it, working.
308
+ A ride lasts its `seconds` (60..28800, default 3600); new work does not end it — `clear: true` or a new office_set
309
+ does, and you get off at the next stop it makes. Not with `go`. A full train: you wait on the platform for the next.
306
310
  - Each call replaces your act. It ends when its seconds are up or you begin new work (the turn you set it in, and being
307
311
  idle after, keep it; working again after that, or after setting it while idle, ends it); it is not shown while you
308
312
  need a person (needs, crashed, stuck), are paused or stopped, or are asleep at bedtime — real work always shows. At most **6 calls a minute** and **60 an hour**: a refusal says `cooldown_ms`.
@@ -119,6 +119,17 @@ as their own Discord or Telegram account. What a guest sees:
119
119
  ClassicBot room, and ClassicBot group rooms while their membership is verified, minus any `web.guests.narrow`.
120
120
  **Start from today's guests** turns that into grants.
121
121
 
122
+ **Who can use, on an agent's page (M-3734, #4459).** Each agent's page (and a ClassicBot room's) has a **Who can use**
123
+ category (「誰能用」), before Permissions. It lists and edits the same two records, with no permissions of its own:
124
+ - **Web guests:** everyone whose grant names this agent, each with their level, **Add a person**, **Chat | Trusted** and
125
+ **Remove**. Each change writes that person's grant in `web.guests.grants`, the same data as Settings → Guests, under the
126
+ same confirmations. Before any grant is saved, the list is read-only and offers **Start from today's guests**.
127
+ - **Hub:** whether the agent is shared on the Hub and, when it is, **Choose who may ask on the Hub**. That button opens the
128
+ Hub's own page (people or AD groups, each until a chosen date), which only opens where the Hub can be reached (today, the
129
+ internal network). The Fleet itself never reads or changes who may ask.
130
+
131
+ Fleet admins can always use every agent. Who can talk to the bot in Discord or Telegram (`allowed_users`) is unchanged.
132
+
122
133
  Guests can filter their granted agents and rooms, change sorting, and use **Custom** (「自訂」) for detailed or compact
123
134
  rows and a compact row's display name or instance name. Choices belong to that guest's account, including over the
124
135
  public link; they never change the host's preferences. Desktop and phone keep separate density choices and share the
@@ -423,7 +434,14 @@ The sidebar's **Fleet** (zh "Fleet 概覽", at the top) and the phone's Fleet ta
423
434
  number, title, fields, checklist or assignee), **Filter** (status, assignee or nobody, priority, size, **Needs you**;
424
435
  each chip **is** / **is not**; a main task stays when it or a sub task matches) and **Display** (the list grouped by
425
436
  status, assignee or priority, ordered by board order, priority, last change, newest, assignee or title;
426
- **Sub tasks as rows of their own**; finished cards last 7 days / all / hidden). The list shows every row's priority,
437
+ **Sub tasks as rows of their own**; finished cards shown or hidden). **Finished work (M-3668):** the Done column shows its
438
+ newest 20 (**Show 20 more**) with "N this week" beside its title; a main task done or cancelled is **archived**
439
+ `defaults.task_board.archive_after_days` after it finished (default 3; 0 = never: then "last 7 days / all" as before;
440
+ Settings → Shared agent settings → Advanced → **Archive finished cards after**, in days). An archived main task's sub
441
+ tasks go with it.
442
+ Archived cards leave the columns and the project's numbers; the header's **Archived · N** opens the project's Archive
443
+ (newest first, by assignee); search marks them **Archived**, their number still opens them, and moving one to To do
444
+ reopens it. Nothing is deleted by it. The list shows every row's priority,
427
445
  sorts by its column headers (again: reversed) and folds its groups. The project and filters are in the address
428
446
  (`?tp=`, `?tf=`): a link opens that filtered board; the choices are remembered per device (`agend_tasks_display`,
429
447
  `agend_tasks_filters`, `agend_tasks_query`, `agend_tasks_collapsed`). **A card is a page** (`?card=`; Back returns to
@@ -502,8 +520,8 @@ in each (Everyone, Picked: whole teams or single instances, or #2752 Nobody: its
502
520
  someone onto another valid seat in their area (#4266) to seat them there immediately (persisted per device/office/style, swapping cleanly and respecting reserved seats and `stayInArea`) or drop on empty floor to walk back; while held they play a `dragged` pose (#4267: optional `characters.<set>.dragged` / `default.dragged` strip or built-in lifted dangle, returning to their prior pose on drop); their card's Pat/Feed show hearts and words; nothing reaches the agent unless that card's
503
521
  **Tell <agent> (with their next message)** is ticked (per agent, off) — then one `[Office] … patted your head ×N` line rides
504
522
  its next real message's `[Recent reactions: …]` (never a wake; capped); a pack's `bubbles.<lang>.pat` / `.feed` give the words; (#4255) packs with optional `snacks` (1–12 items, `sprite`, optional `eat` overlay, `radius`) and `characters.<set>.eat` show a floating snack tray (bottom-left; above zone pills on phone) for drag-to-feed, tap-to-arm, and placed snacks (up to 6 on floor, 30 s TTL, up to 4 nearest idle racers honoring `stayInArea`, first eats and others scatter; packs without `snacks` stay unchanged), and upload or delete **skin packs** (an
505
- artist's pictures: `manifest.json` plus PNGs, format v1, kept in `web-office-skins/` in the AgEnD home; the host
506
- checks every rule — PNG only, each strip sheet exactly frames·w × h (or, cut with `row`/`col`, at least (col+frames)·w × (row+1)·h), a 16:9 background (or the shape of the pack's own `canvas: [w, h]`, 640×360 to 5120×2880), 220 files, 42 MiB and 64 Mpx decoded-pixel caps — and never changes a
523
+ artist's pictures: `manifest.json` plus PNG or WebP pictures, format v1, kept in `web-office-skins/` in the AgEnD home; the host
524
+ checks every rule — PNG or WebP as each name ends (5120 px a side, 16 Mpx), each strip sheet exactly frames·w × h (or, cut with `row`/`col`, at least (col+frames)·w × (row+1)·h), a 16:9 background (or the shape of the pack's own `canvas: [w, h]`, 640×360 to 5120×2880), 220 files, 42 MiB and 64 Mpx decoded-pixel caps — and never changes a
507
525
  pack; a strip may give its displayed size, `dw`/`dh`, apart from its pictures' size, a character may walk four
508
526
  ways with `walkDown`, `walkUp` and `walkSide` (the side one mirrored for left unless the set gives `walkLeft`), a set may give `pat` (played in full when patted) and `stand` (the card's still avatar), and (#4231) any strip may chain
509
527
  multiple sheets (`src: [...]`, up to 32 sheets / 600 frames) or list individual frames with per-frame `ms`
@@ -22,7 +22,6 @@ declare const resourceSchema: z.ZodObject<{
22
22
  export type HubGroupResource = z.infer<typeof resourceSchema>;
23
23
  export declare function parseHubGroupResource(input: unknown): HubGroupResource;
24
24
  export declare function parseStoredHubGroupResource(input: unknown, source: string): {
25
- code?: undefined;
26
25
  resource: {
27
26
  kind: "asker" | "exposure" | "fleet";
28
27
  id: string;
@@ -32,6 +31,7 @@ export declare function parseStoredHubGroupResource(input: unknown, source: stri
32
31
  objectId: string;
33
32
  };
34
33
  };
34
+ code?: undefined;
35
35
  } | {
36
36
  resource: {
37
37
  kind: "asker" | "exposure" | "fleet";
@@ -153,6 +153,8 @@ export interface LifecycleContext {
153
153
  retireRemoteCard?(name: string, identity: string | null): void;
154
154
  /** #1386: an instance's interaction observation, pause or wake changed ("Needs you" recomputes at once, not at its tick). */
155
155
  onAttentionChanged?(name: string): void;
156
+ /** M-3749: a Claude launch found (or no longer has) MCP servers missing after a profile switch: tell the agent once. */
157
+ onMcpMissing?(name: string, missing: import("./backend/claude-mcp-carry.js").McpMissing | null): void;
156
158
  /** #3647: supervision gave up on the instance (crash loop, supervision ended): it will not come back by itself. */
157
159
  onSupervisionGone?(name: string, kind: "crash_loop" | "supervision_ended", reason: string): void;
158
160
  /**
@@ -29,6 +29,7 @@ import { clearPausedMarker, hasPausedMarker, readPausedAt, readPauseReason, writ
29
29
  import { antigravityCapKey, reportProviderRateLimit } from "./usage/provider-alerts.js";
30
30
  import { isFleetStartCommandLine } from "./fleet-lock.js";
31
31
  import { GENERAL_PAUSE_ERROR, isGeneralInstance, GENERAL_NAME } from "./general-instance.js";
32
+ import { resolveToolSet, toolSetGrantRefusal } from "./tool-permissions.js";
32
33
  import { BACKEND_AUTH_CHECKS, checkAuthStatus, LOGIN_FLOWS } from "./login-flows.js";
33
34
  import { CHAT_PROFILE_LOGIN_BACKENDS, credentialHomeSpec, credentialProfileLaunch, credentialProfileLoginCommand, instanceCredentialProfile } from "./backend/credential-profile.js";
34
35
  import { fetchClaudeUsage, fetchCodexUsage } from "./usage/providers.js";
@@ -1193,6 +1194,15 @@ export class InstanceLifecycle {
1193
1194
  // #2822: a usage-limit hold began or ended — Needs you lists it while it lasts.
1194
1195
  daemon.on("model_observation", () => this.ctx.onAttentionChanged?.(name));
1195
1196
  daemon.on("usage_hold", () => this.ctx.onAttentionChanged?.(name));
1197
+ daemon.on("mcp_missing", (data) => {
1198
+ try {
1199
+ this.ctx.onMcpMissing?.(name, data?.missing ?? null);
1200
+ }
1201
+ catch (err) {
1202
+ this.ctx.logger.warn({ err, name }, "MCP-missing notice failed");
1203
+ }
1204
+ this.ctx.onAttentionChanged?.(name);
1205
+ });
1196
1206
  daemon.on("interactive_prompt", safeHandler(async (data) => {
1197
1207
  this.ctx.eventLog?.insert(name, "interactive_prompt", { kind: data.kind, ...this.screenForLog(name, data.screen) });
1198
1208
  this.ctx.logger.warn({ name, kind: data.kind, prompt: data.prompt }, "Instance is waiting for interactive terminal input");
@@ -2382,7 +2392,25 @@ export class InstanceLifecycle {
2382
2392
  respond(null, "sandbox is supported only by the Windows runtime");
2383
2393
  return;
2384
2394
  }
2385
- const selfToolSetError = "General cannot change its own tool_set through a tool; use Settings or fleet.yaml (privilege boundary, #804/#814)";
2395
+ // Backstop for create_instance and deploy_template: the caller's resolved
2396
+ // profile caps the child, including a fleet default copied onto it.
2397
+ const grantCaller = originCaller || toolSetCaller || "";
2398
+ if (grantCaller && this.ctx.fleetConfig) {
2399
+ const instances = this.ctx.fleetConfig.instances;
2400
+ const creatorConfig = instances && Object.hasOwn(instances, grantCaller) ? instances[grantCaller] : undefined;
2401
+ const grantError = toolSetGrantRefusal({
2402
+ caller: grantCaller,
2403
+ creator: resolveToolSet(creatorConfig, grantCaller),
2404
+ explicit: args.tool_set,
2405
+ defaultsToolSet: this.ctx.fleetConfig.defaults?.tool_set,
2406
+ isGeneral: isGeneralInstance(this.ctx.fleetConfig, grantCaller),
2407
+ });
2408
+ if (grantError) {
2409
+ respond(null, grantError);
2410
+ return;
2411
+ }
2412
+ }
2413
+ const selfToolSetError = "An agent cannot change its own tool_set through a tool; use Settings or fleet.yaml (privilege boundary, #804/#814)";
2386
2414
  const rawDirectory = args.directory;
2387
2415
  const directory = rawDirectory ? rawDirectory.replace(/^~/, process.env.HOME || "~") : undefined;
2388
2416
  const topicName = args.topic_name || (directory ? basename(directory) : undefined);