@songsid/agend 2.4.0-beta.22 → 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 (284) 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 +17 -1
  7. package/dist/agent-whats-new.js.map +1 -1
  8. package/dist/auth-api.d.ts +2 -0
  9. package/dist/auth-api.js +5 -2
  10. package/dist/auth-api.js.map +1 -1
  11. package/dist/authority/web-authority.d.ts +17 -3
  12. package/dist/authority/web-authority.js +56 -3
  13. package/dist/authority/web-authority.js.map +1 -1
  14. package/dist/backend/claude-code.d.ts +15 -0
  15. package/dist/backend/claude-code.js +8 -3
  16. package/dist/backend/claude-code.js.map +1 -1
  17. package/dist/backend/claude-mcp-carry.d.ts +63 -0
  18. package/dist/backend/claude-mcp-carry.js +242 -0
  19. package/dist/backend/claude-mcp-carry.js.map +1 -0
  20. package/dist/build-provenance.json +1 -1
  21. package/dist/channel/mcp-tools.js +15 -7
  22. package/dist/channel/mcp-tools.js.map +1 -1
  23. package/dist/classic-channel-manager.d.ts +1 -1
  24. package/dist/classic-channel-manager.js +2 -2
  25. package/dist/classic-channel-manager.js.map +1 -1
  26. package/dist/config-validator.js +6 -0
  27. package/dist/config-validator.js.map +1 -1
  28. package/dist/contact-auth-api.js +3 -1
  29. package/dist/contact-auth-api.js.map +1 -1
  30. package/dist/contact-auth-service.js +1 -1
  31. package/dist/contact-auth-service.js.map +1 -1
  32. package/dist/contact-auth-store.d.ts +28 -2
  33. package/dist/contact-auth-store.js +72 -4
  34. package/dist/contact-auth-store.js.map +1 -1
  35. package/dist/contact-change-proposals.d.ts +18 -1
  36. package/dist/contact-change-proposals.js +38 -4
  37. package/dist/contact-change-proposals.js.map +1 -1
  38. package/dist/contact-state-view.d.ts +103 -0
  39. package/dist/contact-state-view.js +80 -0
  40. package/dist/contact-state-view.js.map +1 -0
  41. package/dist/daemon.d.ts +11 -0
  42. package/dist/daemon.js +66 -15
  43. package/dist/daemon.js.map +1 -1
  44. package/dist/dashboard-permissions.d.ts +8 -0
  45. package/dist/dashboard-permissions.js +8 -0
  46. package/dist/dashboard-permissions.js.map +1 -1
  47. package/dist/delivery-outbox.d.ts +15 -1
  48. package/dist/delivery-outbox.js +60 -2
  49. package/dist/delivery-outbox.js.map +1 -1
  50. package/dist/fleet-manager.d.ts +157 -15
  51. package/dist/fleet-manager.js +522 -78
  52. package/dist/fleet-manager.js.map +1 -1
  53. package/dist/general-knowledge/skills/admin/SKILL.md +52 -0
  54. package/dist/general-knowledge/skills/concepts/SKILL.md +31 -21
  55. package/dist/general-knowledge/skills/credential-profiles/SKILL.md +6 -0
  56. package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +6 -3
  57. package/dist/general-knowledge/skills/fleet-config/SKILL.md +3 -3
  58. package/dist/general-knowledge/skills/hub/SKILL.md +6 -1
  59. package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +1 -1
  60. package/dist/general-knowledge/skills/task-board/SKILL.md +17 -0
  61. package/dist/general-knowledge/skills/web-appearance/SKILL.md +4 -0
  62. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +75 -12
  63. package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +1 -1
  64. package/dist/general-role.d.ts +1 -1
  65. package/dist/general-role.js +1 -0
  66. package/dist/general-role.js.map +1 -1
  67. package/dist/hub/client.js +6 -1
  68. package/dist/hub/client.js.map +1 -1
  69. package/dist/hub/compose/member.d.ts +2 -1
  70. package/dist/hub/compose/member.js +3 -2
  71. package/dist/hub/compose/member.js.map +1 -1
  72. package/dist/hub/compose/server.js +2 -1
  73. package/dist/hub/compose/server.js.map +1 -1
  74. package/dist/hub/http/compose.js +5 -0
  75. package/dist/hub/http/compose.js.map +1 -1
  76. package/dist/hub/protocol.d.ts +21 -0
  77. package/dist/hub/protocol.js +3 -0
  78. package/dist/hub/protocol.js.map +1 -1
  79. package/dist/hub/question-close-model.d.ts +17 -0
  80. package/dist/hub/question-close-model.js +7 -0
  81. package/dist/hub/question-close-model.js.map +1 -0
  82. package/dist/hub/representative.d.ts +5 -0
  83. package/dist/hub/representative.js +51 -1
  84. package/dist/hub/representative.js.map +1 -1
  85. package/dist/hub/rooms/direct-view.js +1 -0
  86. package/dist/hub/rooms/direct-view.js.map +1 -1
  87. package/dist/hub/rooms/types.d.ts +1 -1
  88. package/dist/hub/rooms.d.ts +3 -0
  89. package/dist/hub/rooms.js +27 -1
  90. package/dist/hub/rooms.js.map +1 -1
  91. package/dist/hub/server.js +6 -1
  92. package/dist/hub/server.js.map +1 -1
  93. package/dist/hub/types.d.ts +2 -2
  94. package/dist/human-delivery-receipts.d.ts +12 -2
  95. package/dist/human-delivery-receipts.js +19 -4
  96. package/dist/human-delivery-receipts.js.map +1 -1
  97. package/dist/instance-lifecycle.d.ts +2 -0
  98. package/dist/instance-lifecycle.js +29 -1
  99. package/dist/instance-lifecycle.js.map +1 -1
  100. package/dist/instructions.d.ts +1 -1
  101. package/dist/instructions.js +1 -1
  102. package/dist/instructions.js.map +1 -1
  103. package/dist/locale.js +110 -12
  104. package/dist/locale.js.map +1 -1
  105. package/dist/needs-you-hub.d.ts +3 -0
  106. package/dist/needs-you-hub.js +31 -5
  107. package/dist/needs-you-hub.js.map +1 -1
  108. package/dist/needs-you.d.ts +16 -1
  109. package/dist/needs-you.js +7 -1
  110. package/dist/needs-you.js.map +1 -1
  111. package/dist/office-share-page.js +2 -2
  112. package/dist/office-share-page.js.map +1 -1
  113. package/dist/office-share.js +2 -1
  114. package/dist/office-share.js.map +1 -1
  115. package/dist/outbound-handlers.d.ts +4 -0
  116. package/dist/outbound-handlers.js +69 -11
  117. package/dist/outbound-handlers.js.map +1 -1
  118. package/dist/outbound-schemas.d.ts +5 -1
  119. package/dist/outbound-schemas.js +10 -7
  120. package/dist/outbound-schemas.js.map +1 -1
  121. package/dist/public-web-gateway.js +21 -0
  122. package/dist/public-web-gateway.js.map +1 -1
  123. package/dist/reply-buttons-controller.d.ts +2 -1
  124. package/dist/reply-buttons-controller.js +1 -1
  125. package/dist/reply-buttons-controller.js.map +1 -1
  126. package/dist/request-context-compatibility.d.ts +20 -0
  127. package/dist/request-context-compatibility.js +74 -0
  128. package/dist/request-context-compatibility.js.map +1 -0
  129. package/dist/request-context-protocol.d.ts +137 -0
  130. package/dist/request-context-protocol.js +38 -0
  131. package/dist/request-context-protocol.js.map +1 -0
  132. package/dist/request-context-store.d.ts +25 -0
  133. package/dist/request-context-store.js +137 -0
  134. package/dist/request-context-store.js.map +1 -0
  135. package/dist/scheduler/db.js +26 -0
  136. package/dist/scheduler/db.js.map +1 -1
  137. package/dist/scheduler/task-board-text.d.ts +2 -0
  138. package/dist/scheduler/task-board-text.js +12 -0
  139. package/dist/scheduler/task-board-text.js.map +1 -1
  140. package/dist/scheduler/task-board.d.ts +102 -2
  141. package/dist/scheduler/task-board.js +242 -24
  142. package/dist/scheduler/task-board.js.map +1 -1
  143. package/dist/scheduler/task-files.d.ts +80 -0
  144. package/dist/scheduler/task-files.js +357 -0
  145. package/dist/scheduler/task-files.js.map +1 -0
  146. package/dist/settings-api.d.ts +2 -0
  147. package/dist/settings-api.js +6 -1
  148. package/dist/settings-api.js.map +1 -1
  149. package/dist/settings-baseline.d.ts +1 -0
  150. package/dist/settings-baseline.js +1 -1
  151. package/dist/settings-baseline.js.map +1 -1
  152. package/dist/settings-effect.d.ts +2 -0
  153. package/dist/settings-effect.js +5 -1
  154. package/dist/settings-effect.js.map +1 -1
  155. package/dist/task-attach-client.d.ts +43 -0
  156. package/dist/task-attach-client.js +125 -0
  157. package/dist/task-attach-client.js.map +1 -0
  158. package/dist/task-board-tool.d.ts +12 -0
  159. package/dist/task-board-tool.js +107 -6
  160. package/dist/task-board-tool.js.map +1 -1
  161. package/dist/task-file-limits.d.ts +15 -0
  162. package/dist/task-file-limits.js +21 -0
  163. package/dist/task-file-limits.js.map +1 -0
  164. package/dist/tool-permissions.d.ts +32 -0
  165. package/dist/tool-permissions.js +64 -1
  166. package/dist/tool-permissions.js.map +1 -1
  167. package/dist/types.d.ts +6 -0
  168. package/dist/ui/accounts-keepalive.js +2 -1
  169. package/dist/ui/agent-details-settings.js +7 -5
  170. package/dist/ui/agent-who-can-use-strings.js +125 -0
  171. package/dist/ui/agent-who-can-use.js +238 -0
  172. package/dist/ui/chat-activity.js +2 -1
  173. package/dist/ui/chat-pins.js +2 -1
  174. package/dist/ui/claude-credentials.js +2 -1
  175. package/dist/ui/contact-auth-strings.js +28 -17
  176. package/dist/ui/contact-authorizations.js +6 -4
  177. package/dist/ui/contact-needs.js +6 -1
  178. package/dist/ui/contact-permissions.js +6 -4
  179. package/dist/ui/contact-tool-groups.js +1 -1
  180. package/dist/ui/contact-verify-need.js +46 -0
  181. package/dist/ui/fleet-cache.js +2 -1
  182. package/dist/ui/fleet-office-card.js +23 -5
  183. package/dist/ui/fleet-office-editor.js +5 -5
  184. package/dist/ui/fleet-office-pack.d.ts +10 -0
  185. package/dist/ui/fleet-office-pack.js +65 -2
  186. package/dist/ui/fleet-office-skin.js +52 -14
  187. package/dist/ui/fleet-office-store.js +33 -2
  188. package/dist/ui/fleet-office-vehicles.js +130 -0
  189. package/dist/ui/fleet-office-zones.js +27 -10
  190. package/dist/ui/fleet-office.js +128 -40
  191. package/dist/ui/fleet-org.js +6 -1
  192. package/dist/ui/fleet-tab-icons.js +19 -0
  193. package/dist/ui/fleet-task-activity.js +11 -83
  194. package/dist/ui/fleet-task-archive.js +111 -0
  195. package/dist/ui/fleet-task-card.js +6 -4
  196. package/dist/ui/fleet-task-common.js +2 -2
  197. package/dist/ui/fleet-task-edit.js +8 -1
  198. package/dist/ui/fleet-task-files.js +196 -0
  199. package/dist/ui/fleet-task-md.js +98 -0
  200. package/dist/ui/fleet-task-menu.js +1 -1
  201. package/dist/ui/fleet-task-stats.js +2 -2
  202. package/dist/ui/fleet-task-view.js +14 -9
  203. package/dist/ui/fleet-tasks.js +42 -18
  204. package/dist/ui/fleet-usage.js +2 -1
  205. package/dist/ui/hub-admin-overview.js +2 -1
  206. package/dist/ui/hub-agent-intro.js +2 -1
  207. package/dist/ui/hub-assistant-admin.js +2 -1
  208. package/dist/ui/hub-directory-notices.js +2 -1
  209. package/dist/ui/hub-enrolment-code.js +2 -1
  210. package/dist/ui/hub-my-agents.js +2 -1
  211. package/dist/ui/hub-quick-pairing.js +2 -1
  212. package/dist/ui/hub-role-audit.js +2 -1
  213. package/dist/ui/hub-role-forms.js +3 -2
  214. package/dist/ui/hub-role-view.js +3 -2
  215. package/dist/ui/hub-roles.js +2 -1
  216. package/dist/ui/hub-room-agent-strings.js +2 -1
  217. package/dist/ui/hub-room-list.js +2 -1
  218. package/dist/ui/hub-room-owner-requests.js +2 -1
  219. package/dist/ui/hub-room-pins.js +2 -1
  220. package/dist/ui/hub-room-strings.js +2 -2
  221. package/dist/ui/hub-room-thread.js +1 -1
  222. package/dist/ui/log-row.js +4 -3
  223. package/dist/ui/office-share-dialog.js +2 -1
  224. package/dist/ui/office-share-page.js +2 -1
  225. package/dist/ui/page-share-dialog.js +3 -2
  226. package/dist/ui/panel-chat.js +2 -1
  227. package/dist/ui/panel-details.js +5 -2
  228. package/dist/ui/panel-fleet.js +10 -5
  229. package/dist/ui/panel-hub.js +2 -1
  230. package/dist/ui/panel-needs.js +34 -6
  231. package/dist/ui/panel-notices.js +2 -1
  232. package/dist/ui/panel-runtimes.js +2 -1
  233. package/dist/ui/panel-settings.js +15 -1
  234. package/dist/ui/panel-windows-cli.js +3 -2
  235. package/dist/ui/runtime-cli-install.js +2 -1
  236. package/dist/ui/settings-appearance.js +2 -1
  237. package/dist/ui/settings-guests.js +4 -3
  238. package/dist/ui/settings-hub-member-address.js +2 -1
  239. package/dist/ui/settings-hub-setup.js +2 -1
  240. package/dist/ui/settings-hub-web-address.js +2 -1
  241. package/dist/ui/settings-hub.js +2 -1
  242. package/dist/ui/settings-registry.js +1 -0
  243. package/dist/ui/settings-shared-strings.js +9 -0
  244. package/dist/ui/settings-shared.js +6 -1
  245. package/dist/ui/settings-update.js +2 -1
  246. package/dist/ui/settings-web-authority.js +2 -1
  247. package/dist/ui/shared/agent-sheet.js +2 -1
  248. package/dist/ui/shared/app-i18n.js +2 -2
  249. package/dist/ui/shared/app-needs.js +8 -1
  250. package/dist/ui/shared/app-session.js +4 -3
  251. package/dist/ui/shared/app-shell.js +6 -2
  252. package/dist/ui/shared/app.css +93 -11
  253. package/dist/ui/shared/chat-strings.js +4 -4
  254. package/dist/ui/shared/chat-time.js +7 -4
  255. package/dist/ui/shared/clock-text.js +57 -0
  256. package/dist/ui/shared/device-roles.js +6 -5
  257. package/dist/ui/shared/instance-nav.js +17 -22
  258. package/dist/ui/shared/task-board.css +64 -0
  259. package/dist/ui/shared/usage-dialog.js +2 -1
  260. package/dist/ui/shared/view-strings.js +0 -14
  261. package/dist/ui/shared/web-authorize.js +3 -2
  262. package/dist/ui/subagent-row.js +2 -1
  263. package/dist/web-api.d.ts +18 -2
  264. package/dist/web-api.js +159 -27
  265. package/dist/web-api.js.map +1 -1
  266. package/dist/web-login.d.ts +6 -1
  267. package/dist/web-login.js +8 -3
  268. package/dist/web-login.js.map +1 -1
  269. package/dist/web-office-acts.d.ts +16 -0
  270. package/dist/web-office-acts.js +27 -9
  271. package/dist/web-office-acts.js.map +1 -1
  272. package/dist/web-office-pack-read.js +1 -1
  273. package/dist/web-office-pack-read.js.map +1 -1
  274. package/dist/web-office-skins.d.ts +5 -3
  275. package/dist/web-office-skins.js +20 -16
  276. package/dist/web-office-skins.js.map +1 -1
  277. package/dist/web-session-authorization.d.ts +3 -0
  278. package/dist/web-session-authorization.js +1 -1
  279. package/dist/web-session-authorization.js.map +1 -1
  280. package/dist/web-settings-patch.d.ts +27 -0
  281. package/dist/web-settings-patch.js +67 -0
  282. package/dist/web-settings-patch.js.map +1 -1
  283. package/dist/workflow-templates/default.md +1 -0
  284. package/package.json +1 -1
@@ -1,12 +1,13 @@
1
+ type HubHeldCloseOutcome = import("./hub/question-close-model.js").HubHeldCloseOutcome;
1
2
  import { type HostAlertSettings } from './host-monitoring-alert-settings.js';
2
3
  import { type SetupTokenOwner, type SetupTokenRequest } from "./claude-setup-token.js";
3
4
  import { type ClaudeCredentialKind, type ClaudeCredentialMetadata, type CredentialActor } from "./claude-credential-vault.js";
4
5
  import { type ContactFileLease } from "./contact-auth-files.js";
5
- import { type ContactOriginClear, type ContactPerson, type ContactPermissions, type ContactPermissionsWrite, type ContactTicketDecision } from "./contact-auth-types.js";
6
+ import { type ContactOriginClear, type ContactPerson, type ContactPermissions, type ContactPermissionsWrite, type ContactTicket, type ContactTicketDecision } from "./contact-auth-types.js";
6
7
  import { type HubSharingController } from "./hub-sharing-notice.js";
7
8
  import { type SettingsSummaryPresentation } from "./settings-summary.js";
8
9
  import { AgentRuntimeChanges } from "./agent-runtime-change.js";
9
- import { type HumanOrigin } from "./human-delivery-receipts.js";
10
+ import { type WebSessionIdentity, type HumanOrigin } from "./human-delivery-receipts.js";
10
11
  import { SettingsConfirmationStore, type SettingsPendingView } from "./settings-confirmation.js";
11
12
  import { type GeneralSwitchInput } from "./general-binding.js";
12
13
  import { SettingsExecution } from "./settings-transaction.js";
@@ -1016,6 +1017,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1016
1017
  private signInKeepAlive;
1017
1018
  private hubExecutionAttention;
1018
1019
  /** M-3632: the member's "Try again" for a held Hub question (null while no member runs). */
1020
+ private hubHeldClose;
1019
1021
  private hubHeldRetry;
1020
1022
  private missedOfflineStore;
1021
1023
  private configHistory;
@@ -1451,7 +1453,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1451
1453
  retryAfterMs?: number;
1452
1454
  };
1453
1455
  /**
1454
- * alpha.2 (M-2300; #2973's agent requests, junsion's §6): on a fleet with no chat connection there is no General to
1456
+ * alpha.2 (M-2300; #2973's agent requests, a colleague's §6): on a fleet with no chat connection there is no General to
1455
1457
  * post an agent's Windows request in — it waited for `agend settings confirm` on the host. Its owner (decision
1456
1458
  * 28c2d3a3: the `agend web --code` session on this computer, web-verified) now sees and decides it from the web's
1457
1459
  * Needs you. The authority is asked from the request each time, and again at execution by the store (`current`):
@@ -1762,11 +1764,93 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1762
1764
  writeContactPermissions(name: string, raw: ContactPermissionsWrite, actor: ContactPerson): ContactPermissions;
1763
1765
  clearContactOrigin(name: string, raw: ContactOriginClear, actor: ContactPerson): ContactPermissions;
1764
1766
  /** General can propose only. The platform callback supplies the human actor. */
1767
+ /** M-3693: what contact permissions hold now, for General (read-only; no write, no identity computed here). */
1768
+ contactState(agent?: string): {
1769
+ held: Record<string, unknown>[];
1770
+ held_truncated?: string | undefined;
1771
+ grants: {
1772
+ grant_id: string;
1773
+ target: string;
1774
+ revision: number;
1775
+ person: string;
1776
+ from: string;
1777
+ verbs: import("./contact-auth-types.js").ContactVerb[];
1778
+ expires_at: string;
1779
+ remaining_uses: number | null;
1780
+ current: boolean;
1781
+ }[];
1782
+ rooms: {
1783
+ room: string;
1784
+ mode: string;
1785
+ stored_as: "legacy" | "restricted";
1786
+ revision: number;
1787
+ }[];
1788
+ retained_origins: {
1789
+ agent: string;
1790
+ kind: "mixed" | "unknown";
1791
+ people: string[];
1792
+ chain: string[];
1793
+ }[];
1794
+ how_to: string[];
1795
+ };
1796
+ /** M-3716: the caller's OWN held requests (delivery_status { held_requests: true }); the caller is the authenticated agent. */
1797
+ ownContactRequests(agent: string): {
1798
+ requests: ({
1799
+ short_id: string;
1800
+ ticket_id: string;
1801
+ to: string;
1802
+ verb: import("./contact-auth-types.js").ContactVerb;
1803
+ state: string;
1804
+ asked_at: string;
1805
+ decided_at?: string | undefined;
1806
+ approved_by_rule: boolean;
1807
+ expires_at?: string | undefined;
1808
+ delivery_id?: string | undefined;
1809
+ next: string;
1810
+ } | {
1811
+ short_id: string;
1812
+ ticket_id: string;
1813
+ to: string;
1814
+ verb: import("./contact-auth-types.js").ContactVerb;
1815
+ state: string;
1816
+ asked_at: string;
1817
+ decided_at?: string | undefined;
1818
+ decided_by: string | undefined;
1819
+ expires_at?: string | undefined;
1820
+ delivery_id?: string | undefined;
1821
+ next: string;
1822
+ } | {
1823
+ short_id: string;
1824
+ ticket_id: string;
1825
+ to: string;
1826
+ verb: import("./contact-auth-types.js").ContactVerb;
1827
+ state: string;
1828
+ asked_at: string;
1829
+ decided_at?: string | undefined;
1830
+ expires_at?: string | undefined;
1831
+ delivery_id?: string | undefined;
1832
+ next: string;
1833
+ })[];
1834
+ note?: string | undefined;
1835
+ };
1765
1836
  requestContactChange(requester: string, raw: unknown, callerCurrent: () => boolean): Promise<{
1766
1837
  status: string;
1767
1838
  }>;
1768
1839
  private handleContactChangeCallback;
1769
- contactAuthorization(id: string, actor: ContactPerson): import("./contact-auth-types.js").ContactTicket;
1840
+ /**
1841
+ * M-3680 (the user, 11-25): a fleet agent's send held for approval reaches an administrator in General on the target's
1842
+ * Discord or Telegram, as a card with Approve once / Decline — until then a held request had no chat path (the live
1843
+ * Needs you message lists it without buttons). One card per request. Whoever clicks must be one who may decide it
1844
+ * (ContactAuthService.view(...).canDecide, read at the click); the decision is theirs, never the bot's. A request decided
1845
+ * anywhere else (the web, another card) retires its card. #4448 (R21079937): a ClassicBot room's request to a fleet agent
1846
+ * gets the same card, in the General of the target's connection; a room's request to anything else gets none.
1847
+ */
1848
+ /** Requests whose card was posted or tried: forgotten when the request is decided, and at most HELD_CARDS_KEPT. */
1849
+ private heldTicketCards?;
1850
+ private syncHeldTicketCard;
1851
+ private postHeldTicketCard;
1852
+ private handleContactTicketCallback;
1853
+ contactAuthorization(id: string, actor: ContactPerson): ContactTicket;
1770
1854
  contactAuthorizations(actor: ContactPerson, filter: {
1771
1855
  agent?: string;
1772
1856
  status?: string;
@@ -1774,11 +1858,19 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1774
1858
  cursor?: string;
1775
1859
  }): {
1776
1860
  nextCursor: string | null;
1777
- items: import("./contact-auth-types.js").ContactTicket[];
1861
+ items: ContactTicket[];
1778
1862
  };
1779
- decideContactAuthorization(id: string, decision: ContactTicketDecision, actor: ContactPerson): import("./contact-auth-types.js").ContactTicket;
1863
+ decideContactAuthorization(id: string, decision: ContactTicketDecision, actor: ContactPerson): ContactTicket;
1780
1864
  /** Status only: no human receipt, approval capability or original correlation is attached. */
1781
1865
  private sweepContactAuthorizationOutcomes;
1866
+ /**
1867
+ * M-3710: how many contact requests wait, and since when — no ids, people or text. Needs you tells an admin session with
1868
+ * no verified person behind it (contactActor null) that they exist, so a request is never silently missing there.
1869
+ */
1870
+ contactPendingCount(): {
1871
+ count: number;
1872
+ since: number;
1873
+ };
1782
1874
  contactNeeds(actor: ContactPerson): WebNeedsItem[];
1783
1875
  /**
1784
1876
  * The chat's contact items. M-3381 (the user, beta.14): the restricted-mode suggestions are ONE low-key line per world —
@@ -2308,6 +2400,12 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2308
2400
  adminGate(userId: string, ownerAdapterId?: string): "ok" | "disabled" | "denied";
2309
2401
  /** Fleet admin is an explicit config allowlist entry, not merely an open/paired user. See adminGate. */
2310
2402
  isFleetAdmin(userId: string, adapterId?: string): boolean;
2403
+ /**
2404
+ * Free mode at /start is the fleet-admin allowlist of the adapter that owns the room (adminGate).
2405
+ * A ClassicBot admin (`classicBot.yaml` admin_users) is not enough. A stub with no fleet and no worlds
2406
+ * is not an admin: the menu offers Restricted only.
2407
+ */
2408
+ private canChooseFreeMode;
2311
2409
  /** Whether this adapter has any fleet admin at all (an empty allowlist means the admin commands are off). */
2312
2410
  hasFleetAdmins(adapterId?: string): boolean;
2313
2411
  /**
@@ -2831,6 +2929,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2831
2929
  }>;
2832
2930
  audit: GuestAuditEntry[];
2833
2931
  };
2932
+ /**
2933
+ * M-3734: each guest's agents now, as guestOverview lists them (#1920's derived access while no grants are saved) — the
2934
+ * scopes "Start from today's guests" on an agent's page is checked against, as it is admitted and as it applies.
2935
+ */
2936
+ guestDerivedScopes(): Record<string, string[]>;
2834
2937
  /** #2667: the ClassicBot rooms' instance names now — what a settings save's validation knows besides fleet.yaml's instances. */
2835
2938
  classicRoomNames(): string[];
2836
2939
  /**
@@ -4175,14 +4278,27 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
4175
4278
  private interactionWaitKey;
4176
4279
  /** An instance's interaction observation, pause or wake changed (relayed by the lifecycle): recompute now, not at the tick. */
4177
4280
  onAttentionChanged(name: string): void;
4281
+ /** M-3749: the credential profile a Claude config dir belongs to, for people and agents: its name, or "default". */
4282
+ private claudeProfileLabel;
4283
+ /**
4284
+ * M-3749: a launch found MCP servers the agent had under its previous profile and does not have now. Told to the agent
4285
+ * once per set (the outbox key), held until it is delivered; Needs you lists it from the daemon (instancesForNeeds).
4286
+ */
4287
+ onMcpMissing(name: string, missing: import("./backend/claude-mcp-carry.js").McpMissing | null): void;
4288
+ /** M-3749: a person dismissed an agent's missing-MCP item (web or chat Acknowledge). false: nothing was outstanding. */
4289
+ acknowledgeMcpMissing(name: string): boolean;
4178
4290
  /** The list for the web: every world's items, and those of instances with no world (#1386 §5.0). */
4179
4291
  needsYouItems(): WebNeedsItem[];
4180
- /** Enabled member composition supplies only a local attention reader, never an approval/execution callback. */
4181
- attachHubExecutionAttention(read: (() => import("./needs-you.js").HubExecutionAttentionInput[]) | null, retry?: ((id: string) => "queued" | "not-found" | "not-retryable") | null): void;
4292
+ /** Enabled member composition supplies held-work readers and explicit owner retry/close operations. */
4293
+ attachHubExecutionAttention(read: (() => import("./needs-you.js").HubExecutionAttentionInput[]) | null, retry?: ((id: string) => "queued" | "not-found" | "not-retryable") | null, close?: ((id: string) => Promise<HubHeldCloseOutcome>) | undefined): void;
4182
4294
  /**
4183
4295
  * M-3632: Needs you → "Try again" on held Hub work (`hub:hold:<row>`). The question goes back through the member's whole
4184
4296
  * hand-off, including the Hub's begin lease; nothing is delivered without it.
4185
4297
  */
4298
+ closeHubHeld(itemId: string, actor: ContactPerson): Promise<{
4299
+ status: number;
4300
+ code: string;
4301
+ }>;
4186
4302
  retryHubHeld(itemId: string): {
4187
4303
  status: 200 | 404 | 409;
4188
4304
  code: "queued" | "not-found" | "not-retryable";
@@ -4339,6 +4455,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
4339
4455
  name: string;
4340
4456
  guest?: true;
4341
4457
  authority?: HumanAuthority;
4458
+ identity?: WebSessionIdentity;
4342
4459
  }): Promise<{
4343
4460
  status: 200 | 400 | 403 | 409;
4344
4461
  error?: string;
@@ -4381,6 +4498,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
4381
4498
  * #1939 S1: the design's §3 for one web request (authority/web-authority.ts), with this fleet's admins, policy and
4382
4499
  * token; `instance` once the body has named it. Observe only: receipts record it, no agent acts on it yet.
4383
4500
  */
4501
+ /** A signed-in account is recognizable before verification; this supplies no action authority. */
4502
+ webSessionIdentity(session: SessionRecord): WebSessionIdentity | undefined;
4384
4503
  webAuthority(input: {
4385
4504
  session: SessionRecord | null;
4386
4505
  gateway: boolean;
@@ -4404,6 +4523,14 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
4404
4523
  ok: false;
4405
4524
  refusal: WebAuthorityRefusal;
4406
4525
  };
4526
+ /** M-3651 (auth-api's /auth/session): until when this guest session is verified as its account now; null when it is not. */
4527
+ guestVerifiedUntil(req: IncomingMessage, session: SessionRecord): number | null;
4528
+ /**
4529
+ * M-3651: a guest session that signed in with a code AgEnD delivered privately to its own account — recorded as that
4530
+ * account's authorization of it, judged by evaluateGuestIdentity (the switch, the links, "Only this computer", the token):
4531
+ * its messages then carry `web-guest`, who it is and never more. Only at sign-in: a guest is never sent a Confirm card.
4532
+ */
4533
+ private authorizeGuestSession;
4407
4534
  /**
4408
4535
  * M-3277 (decision 7933bf90; auth-api, at sign-in): an admin session that signed in with a code AgEnD delivered privately
4409
4536
  * to its account (a DM, or Discord's ephemeral reply) starts verified — that code went to the very DM a Confirm card
@@ -4714,6 +4841,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
4714
4841
  publicLink: boolean;
4715
4842
  person?: Pick<WebPersonView, "userId" | "name">;
4716
4843
  authority?: HumanAuthority;
4844
+ identity?: WebSessionIdentity;
4717
4845
  guest?: boolean;
4718
4846
  }): Promise<WebCommandResult>;
4719
4847
  /** Consume `/clear` Confirm/Cancel exactly once; only Confirm reaches IPC. */
@@ -5961,21 +6089,34 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
5961
6089
  /** #2072: from the published snapshot (no `which` on the loop); not checked yet counts as installed (no false alarm). */
5962
6090
  private isBackendInstalled;
5963
6091
  private getMissingBackendWarning;
5964
- /** Coverage is not proven before launch; disclose the fallback without blocking an unsupported CLI. */
5965
- private getClassicStartWarning;
5966
- /** Handle Discord's required static slash choice, warning before a likely startup failure. */
6092
+ /** Discord buttons when the interaction can draw them; otherwise the adapter's own chooser. Never the backend select. */
6093
+ private classicModePoster;
6094
+ /** Where the finished start (and a hold notice) lands: the Discord interaction, or the Telegram menu message. */
6095
+ private classicStartComplete;
6096
+ /** Handle Discord's required static slash choice. The room waits for the mode menu. */
5967
6097
  private handleClassicStartSlash;
5968
6098
  private handleClassicStartSlashCore;
5969
- /** Present platform-native backend choices, then start on selection or timeout. */
6099
+ /** Present platform-native backend choices. A choice opens the mode menu; a timeout or a failed menu creates nothing. */
5970
6100
  private beginClassicBackendSelection;
5971
- /** Consume a selection callback. Returns true for all ClassicBot callback IDs, including stale ones. */
6101
+ /** Drop a pending /start without creating a room. */
6102
+ private cancelClassicPending;
6103
+ /** Consume a backend click. Returns true for every classic-backend id, including a stale one. */
5972
6104
  private handleClassicBackendSelection;
5973
- /** Atomically claim one pending request so timeout/click races create at most one instance. */
6105
+ /** The backend is chosen. Retire that menu and ask for the mode. Nothing is registered here. */
5974
6106
  private finishClassicBackendSelection;
6107
+ /** After a backend is known (slash, `/start BACKEND`, or a backend click). The room waits for a mode click. */
6108
+ private beginClassicModeSelection;
6109
+ /** For a fleet admin, Free is first and labeled recommended. Restricted stays a button.
6110
+ * Anyone else sees only Restricted. Either way the room waits for a tap. */
6111
+ private openClassicModeMenu;
6112
+ /** Consume a mode click. A Free click from anyone else is ignored and the menu stays up. */
6113
+ private handleClassicModeSelection;
6114
+ /** Claim the mode choice and create the room. A second click or the timeout finds nothing. */
6115
+ private finishClassicModeSelection;
5975
6116
  /** Start a classic channel instance with lightweight config */
5976
6117
  private startClassicInstance;
5977
6118
  /** Handle /start slash command — register classic channel */
5978
- handleClassicStart(channelId: string, channelName: string, userId: string, guildId?: string, adapterId?: string, backend?: string): Promise<string>;
6119
+ handleClassicStart(channelId: string, channelName: string, userId: string, guildId?: string, adapterId?: string, backend?: string, restricted?: boolean): Promise<string>;
5979
6120
  /** Handle /stop slash command — unregister classic channel */
5980
6121
  handleClassicStop(channelId: string, adapterId?: string): Promise<string>;
5981
6122
  /**
@@ -6412,3 +6553,4 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
6412
6553
  }
6413
6554
  /** alpha.2 (M-2300): the agent an applied Windows request created (its name, for the page's "Open chat"), or null. */
6414
6555
  export declare function agentNameOf(view: SettingsPendingView): string | null;
6556
+ export {};