@songsid/agend 2.3.2-beta.1 → 2.3.2-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) hide show
  1. package/THIRD_PARTY_NOTICES.md +40 -0
  2. package/dist/agent-cli.js +69 -2
  3. package/dist/agent-cli.js.map +1 -1
  4. package/dist/agent-endpoint.js +11 -0
  5. package/dist/agent-endpoint.js.map +1 -1
  6. package/dist/agent-whats-new.js +3 -0
  7. package/dist/agent-whats-new.js.map +1 -1
  8. package/dist/antigravity-usage-scan.d.ts +58 -0
  9. package/dist/antigravity-usage-scan.js +257 -0
  10. package/dist/antigravity-usage-scan.js.map +1 -0
  11. package/dist/antigravity-usage-worker.d.ts +1 -0
  12. package/dist/antigravity-usage-worker.js +10 -0
  13. package/dist/antigravity-usage-worker.js.map +1 -0
  14. package/dist/auth-api.js +4 -0
  15. package/dist/auth-api.js.map +1 -1
  16. package/dist/backend/kiro-classic-archive.d.ts +52 -0
  17. package/dist/backend/kiro-classic-archive.js +444 -0
  18. package/dist/backend/kiro-classic-archive.js.map +1 -0
  19. package/dist/backend/kiro-identity.d.ts +83 -0
  20. package/dist/backend/kiro-identity.js +144 -0
  21. package/dist/backend/kiro-identity.js.map +1 -1
  22. package/dist/backend/kiro-migration-verify.d.ts +10 -0
  23. package/dist/backend/kiro-migration-verify.js +52 -0
  24. package/dist/backend/kiro-migration-verify.js.map +1 -0
  25. package/dist/backend/kiro-retired-model.d.ts +62 -0
  26. package/dist/backend/kiro-retired-model.js +160 -0
  27. package/dist/backend/kiro-retired-model.js.map +1 -0
  28. package/dist/backend/kiro-v2-store-worker.js +21 -1
  29. package/dist/backend/kiro-v2-store-worker.js.map +1 -1
  30. package/dist/backend/kiro-v2-store.d.ts +8 -0
  31. package/dist/backend/kiro-v2-store.js.map +1 -1
  32. package/dist/backend/kiro.d.ts +169 -2
  33. package/dist/backend/kiro.js +703 -28
  34. package/dist/backend/kiro.js.map +1 -1
  35. package/dist/backend/types.d.ts +108 -0
  36. package/dist/backend/types.js +9 -0
  37. package/dist/backend/types.js.map +1 -1
  38. package/dist/backend-signin-guide.d.ts +1 -0
  39. package/dist/backend-signin-guide.js +9 -0
  40. package/dist/backend-signin-guide.js.map +1 -0
  41. package/dist/backend-signin-pending.d.ts +10 -0
  42. package/dist/backend-signin-pending.js +44 -0
  43. package/dist/backend-signin-pending.js.map +1 -0
  44. package/dist/browser-backend-signins.d.ts +56 -0
  45. package/dist/browser-backend-signins.js +189 -0
  46. package/dist/browser-backend-signins.js.map +1 -0
  47. package/dist/cache-ledger.d.ts +38 -2
  48. package/dist/cache-ledger.js +133 -8
  49. package/dist/cache-ledger.js.map +1 -1
  50. package/dist/cache-prices.d.ts +2 -1
  51. package/dist/cache-prices.js +5 -2
  52. package/dist/cache-prices.js.map +1 -1
  53. package/dist/cache-service.d.ts +68 -0
  54. package/dist/cache-service.js +355 -13
  55. package/dist/cache-service.js.map +1 -1
  56. package/dist/channel/adapters/discord.d.ts +11 -0
  57. package/dist/channel/adapters/discord.js +71 -14
  58. package/dist/channel/adapters/discord.js.map +1 -1
  59. package/dist/channel/ipc-timeouts.js +3 -0
  60. package/dist/channel/ipc-timeouts.js.map +1 -1
  61. package/dist/channel/mcp-tools.js +41 -2
  62. package/dist/channel/mcp-tools.js.map +1 -1
  63. package/dist/channel/tool-router.js +2 -1
  64. package/dist/channel/tool-router.js.map +1 -1
  65. package/dist/classic-channel-manager.d.ts +11 -0
  66. package/dist/classic-channel-manager.js +39 -1
  67. package/dist/classic-channel-manager.js.map +1 -1
  68. package/dist/cli.js +54 -2
  69. package/dist/cli.js.map +1 -1
  70. package/dist/config-validator.d.ts +7 -1
  71. package/dist/config-validator.js +55 -10
  72. package/dist/config-validator.js.map +1 -1
  73. package/dist/config.d.ts +19 -0
  74. package/dist/config.js +33 -1
  75. package/dist/config.js.map +1 -1
  76. package/dist/cpu-quota.d.ts +23 -0
  77. package/dist/cpu-quota.js +86 -0
  78. package/dist/cpu-quota.js.map +1 -0
  79. package/dist/daemon.d.ts +68 -0
  80. package/dist/daemon.js +448 -26
  81. package/dist/daemon.js.map +1 -1
  82. package/dist/dashboard-permissions.d.ts +31 -6
  83. package/dist/dashboard-permissions.js +84 -9
  84. package/dist/dashboard-permissions.js.map +1 -1
  85. package/dist/doctor.js +2 -1
  86. package/dist/doctor.js.map +1 -1
  87. package/dist/fleet-control-audit.d.ts +1 -1
  88. package/dist/fleet-control-audit.js +3 -0
  89. package/dist/fleet-control-audit.js.map +1 -1
  90. package/dist/fleet-manager.d.ts +133 -2
  91. package/dist/fleet-manager.js +905 -94
  92. package/dist/fleet-manager.js.map +1 -1
  93. package/dist/forged-envelope-scan.d.ts +9 -0
  94. package/dist/forged-envelope-scan.js +30 -5
  95. package/dist/forged-envelope-scan.js.map +1 -1
  96. package/dist/general-knowledge/skills/credential-profiles/SKILL.md +5 -2
  97. package/dist/general-knowledge/skills/kiro-engine-migration/SKILL.md +24 -1
  98. package/dist/general-knowledge/skills/web-appearance/SKILL.canvas-worker-off.md +49 -1
  99. package/dist/general-knowledge/skills/web-appearance/SKILL.md +49 -1
  100. package/dist/general-knowledge/skills/web-dashboard/SKILL.canvas-worker-off.md +47 -9
  101. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +54 -11
  102. package/dist/instance-config-impact.js +10 -5
  103. package/dist/instance-config-impact.js.map +1 -1
  104. package/dist/instance-lifecycle.d.ts +23 -0
  105. package/dist/instance-lifecycle.js +62 -12
  106. package/dist/instance-lifecycle.js.map +1 -1
  107. package/dist/kiro-db-reader.d.ts +5 -0
  108. package/dist/kiro-db-reader.js +18 -0
  109. package/dist/kiro-db-reader.js.map +1 -1
  110. package/dist/kiro-engine-status.d.ts +2 -0
  111. package/dist/kiro-engine-status.js +9 -0
  112. package/dist/kiro-engine-status.js.map +1 -1
  113. package/dist/kiro-migrate.d.ts +60 -0
  114. package/dist/kiro-migrate.js +160 -0
  115. package/dist/kiro-migrate.js.map +1 -0
  116. package/dist/kiro-session-proof.d.ts +41 -0
  117. package/dist/kiro-session-proof.js +89 -0
  118. package/dist/kiro-session-proof.js.map +1 -0
  119. package/dist/kiro-transcript-lane.d.ts +2 -0
  120. package/dist/kiro-transcript-lane.js.map +1 -1
  121. package/dist/kiro-transcript-worker.js +1 -0
  122. package/dist/kiro-transcript-worker.js.map +1 -1
  123. package/dist/kiro-tui-forensic.d.ts +12 -0
  124. package/dist/kiro-tui-forensic.js +110 -0
  125. package/dist/kiro-tui-forensic.js.map +1 -0
  126. package/dist/kiro-usage-run.d.ts +7 -0
  127. package/dist/kiro-usage-run.js +39 -0
  128. package/dist/kiro-usage-run.js.map +1 -0
  129. package/dist/kiro-usage-scan.d.ts +49 -0
  130. package/dist/kiro-usage-scan.js +223 -0
  131. package/dist/kiro-usage-scan.js.map +1 -0
  132. package/dist/kiro-usage-worker.d.ts +1 -0
  133. package/dist/kiro-usage-worker.js +10 -0
  134. package/dist/kiro-usage-worker.js.map +1 -0
  135. package/dist/kiro-usage.d.ts +58 -0
  136. package/dist/kiro-usage.js +310 -0
  137. package/dist/kiro-usage.js.map +1 -0
  138. package/dist/locale.js +230 -8
  139. package/dist/locale.js.map +1 -1
  140. package/dist/log-service.js +1 -1
  141. package/dist/log-service.js.map +1 -1
  142. package/dist/login-url.d.ts +4 -0
  143. package/dist/login-url.js +22 -0
  144. package/dist/login-url.js.map +1 -0
  145. package/dist/needs-you-hub.d.ts +2 -1
  146. package/dist/needs-you-hub.js +1 -1
  147. package/dist/needs-you-hub.js.map +1 -1
  148. package/dist/needs-you.d.ts +10 -2
  149. package/dist/needs-you.js +10 -2
  150. package/dist/needs-you.js.map +1 -1
  151. package/dist/notice-delivery.d.ts +16 -0
  152. package/dist/notice-delivery.js +35 -0
  153. package/dist/notice-delivery.js.map +1 -0
  154. package/dist/office-share-page.d.ts +16 -0
  155. package/dist/office-share-page.js +85 -0
  156. package/dist/office-share-page.js.map +1 -0
  157. package/dist/office-share-service.d.ts +91 -0
  158. package/dist/office-share-service.js +176 -0
  159. package/dist/office-share-service.js.map +1 -0
  160. package/dist/office-share.d.ts +268 -0
  161. package/dist/office-share.js +574 -0
  162. package/dist/office-share.js.map +1 -0
  163. package/dist/opencode-usage-scan.d.ts +28 -0
  164. package/dist/opencode-usage-scan.js +92 -0
  165. package/dist/opencode-usage-scan.js.map +1 -0
  166. package/dist/opencode-usage-worker.d.ts +1 -0
  167. package/dist/opencode-usage-worker.js +10 -0
  168. package/dist/opencode-usage-worker.js.map +1 -0
  169. package/dist/outbound-handlers.js +22 -2
  170. package/dist/outbound-handlers.js.map +1 -1
  171. package/dist/outbound-schemas.d.ts +65 -2
  172. package/dist/outbound-schemas.js +56 -2
  173. package/dist/outbound-schemas.js.map +1 -1
  174. package/dist/public-web-gateway.js +7 -1
  175. package/dist/public-web-gateway.js.map +1 -1
  176. package/dist/quickstart-api.js +13 -2
  177. package/dist/quickstart-api.js.map +1 -1
  178. package/dist/quickstart.js +2 -1
  179. package/dist/quickstart.js.map +1 -1
  180. package/dist/remote-card-answer.d.ts +83 -0
  181. package/dist/remote-card-answer.js +208 -0
  182. package/dist/remote-card-answer.js.map +1 -0
  183. package/dist/remote-card-prompt.d.ts +38 -0
  184. package/dist/remote-card-prompt.js +86 -0
  185. package/dist/remote-card-prompt.js.map +1 -0
  186. package/dist/reply-triggers.d.ts +2 -0
  187. package/dist/reply-triggers.js +3 -0
  188. package/dist/reply-triggers.js.map +1 -0
  189. package/dist/settings-api.d.ts +2 -0
  190. package/dist/settings-api.js +41 -16
  191. package/dist/settings-api.js.map +1 -1
  192. package/dist/settings-change.js +20 -14
  193. package/dist/settings-change.js.map +1 -1
  194. package/dist/settings-effect.js +7 -1
  195. package/dist/settings-effect.js.map +1 -1
  196. package/dist/settings-instance-patch.js +4 -1
  197. package/dist/settings-instance-patch.js.map +1 -1
  198. package/dist/setup-form.d.ts +1 -1
  199. package/dist/setup-form.js +55 -6
  200. package/dist/setup-form.js.map +1 -1
  201. package/dist/setup-host.d.ts +9 -0
  202. package/dist/setup-host.js +127 -6
  203. package/dist/setup-host.js.map +1 -1
  204. package/dist/setup-signin-assets.d.ts +2 -0
  205. package/dist/setup-signin-assets.js +6 -0
  206. package/dist/setup-signin-assets.js.map +1 -0
  207. package/dist/setup-wizard.js +2 -0
  208. package/dist/setup-wizard.js.map +1 -1
  209. package/dist/structured-signin-transport.d.ts +8 -0
  210. package/dist/structured-signin-transport.js +79 -0
  211. package/dist/structured-signin-transport.js.map +1 -0
  212. package/dist/structured-signin.d.ts +131 -0
  213. package/dist/structured-signin.js +388 -0
  214. package/dist/structured-signin.js.map +1 -0
  215. package/dist/tool-permissions.js +29 -0
  216. package/dist/tool-permissions.js.map +1 -1
  217. package/dist/topic-commands.js +6 -2
  218. package/dist/topic-commands.js.map +1 -1
  219. package/dist/transcript-sources.d.ts +27 -2
  220. package/dist/transcript-sources.js +104 -40
  221. package/dist/transcript-sources.js.map +1 -1
  222. package/dist/turn-reply-guard.d.ts +1 -1
  223. package/dist/turn-reply-guard.js +1 -1
  224. package/dist/turn-reply-guard.js.map +1 -1
  225. package/dist/types.d.ts +33 -8
  226. package/dist/ui/backend-signin.js +63 -10
  227. package/dist/ui/chat-store.js +3 -2
  228. package/dist/ui/chat-strings.js +4 -4
  229. package/dist/ui/fleet-office-editor.js +68 -11
  230. package/dist/ui/fleet-office-layout.js +110 -35
  231. package/dist/ui/fleet-office-model.js +6 -3
  232. package/dist/ui/fleet-office-overview.js +167 -0
  233. package/dist/ui/fleet-office-pack.d.ts +13 -3
  234. package/dist/ui/fleet-office-pack.js +214 -24
  235. package/dist/ui/fleet-office-skin.js +98 -23
  236. package/dist/ui/fleet-office-store.js +82 -5
  237. package/dist/ui/fleet-office-view.js +5 -4
  238. package/dist/ui/fleet-office-zones.js +232 -21
  239. package/dist/ui/fleet-office.js +549 -186
  240. package/dist/ui/fleet-usage.js +19 -15
  241. package/dist/ui/office-share-dialog.js +145 -0
  242. package/dist/ui/office-share-page.js +164 -0
  243. package/dist/ui/panel-chat.js +22 -3
  244. package/dist/ui/panel-log.js +4 -4
  245. package/dist/ui/panel-needs.js +5 -5
  246. package/dist/ui/panel-settings.js +38 -12
  247. package/dist/ui/settings-dialogs.js +8 -1
  248. package/dist/ui/settings-guests.js +17 -7
  249. package/dist/ui/settings-model.js +22 -6
  250. package/dist/ui/settings-registry.js +4 -0
  251. package/dist/ui/settings-strings.js +18 -2
  252. package/dist/ui/shared/app-i18n.js +4 -2
  253. package/dist/ui/shared/app-shell.js +14 -6
  254. package/dist/ui/shared/app-stream.js +2 -1
  255. package/dist/ui/shared/app.css +85 -4
  256. package/dist/ui/shared/office/cozy.png +0 -0
  257. package/dist/ui/shared/side-panel.js +95 -0
  258. package/dist/ui/structured-signin.js +115 -0
  259. package/dist/usage-report.d.ts +20 -0
  260. package/dist/usage-report.js +54 -17
  261. package/dist/usage-report.js.map +1 -1
  262. package/dist/usage-rollup.d.ts +9 -1
  263. package/dist/usage-rollup.js +20 -4
  264. package/dist/usage-rollup.js.map +1 -1
  265. package/dist/web-api.d.ts +23 -1
  266. package/dist/web-api.js +292 -3
  267. package/dist/web-api.js.map +1 -1
  268. package/dist/web-auth.js +1 -1
  269. package/dist/web-auth.js.map +1 -1
  270. package/dist/web-backend-login.d.ts +1 -7
  271. package/dist/web-backend-login.js +2 -24
  272. package/dist/web-backend-login.js.map +1 -1
  273. package/dist/web-office-acts.d.ts +173 -0
  274. package/dist/web-office-acts.js +285 -0
  275. package/dist/web-office-acts.js.map +1 -0
  276. package/dist/web-office-pack-read.d.ts +35 -0
  277. package/dist/web-office-pack-read.js +252 -0
  278. package/dist/web-office-pack-read.js.map +1 -0
  279. package/dist/web-office-pack-tools.d.ts +232 -0
  280. package/dist/web-office-pack-tools.js +754 -0
  281. package/dist/web-office-pack-tools.js.map +1 -0
  282. package/dist/web-office-skins.d.ts +71 -6
  283. package/dist/web-office-skins.js +321 -35
  284. package/dist/web-office-skins.js.map +1 -1
  285. package/dist/web-office-store.d.ts +5 -2
  286. package/dist/web-office-store.js +69 -10
  287. package/dist/web-office-store.js.map +1 -1
  288. package/dist/web-settings-patch.d.ts +2 -1
  289. package/dist/web-settings-patch.js +4 -1
  290. package/dist/web-settings-patch.js.map +1 -1
  291. package/dist/working-recovery.d.ts +2 -2
  292. package/dist/working-recovery.js +43 -8
  293. package/dist/working-recovery.js.map +1 -1
  294. package/dist/working-state-journal.d.ts +2 -0
  295. package/dist/working-state-journal.js +16 -1
  296. package/dist/working-state-journal.js.map +1 -1
  297. package/package.json +3 -2
  298. package/templates/windows-shortcuts.ps1 +155 -140
@@ -1,6 +1,8 @@
1
1
  import { type HumanOrigin } from "./human-delivery-receipts.js";
2
2
  import { SettingsExecution } from "./settings-transaction.js";
3
3
  import { AppIconStore } from "./web-app-icon.js";
4
+ import { OfficeShareService } from "./office-share-service.js";
5
+ import { type OfficeShare } from "./office-share.js";
4
6
  import type { LoginCodeOwner } from "./web-login.js";
5
7
  import { type ProfileTicket } from "./runtime-cpu-profile.js";
6
8
  import type { CpuProfile } from "./cpu-profile.js";
@@ -65,6 +67,8 @@ import { OwnerCssStore } from "./web-owner-css-store.js";
65
67
  import { ThemeStore } from "./web-theme-store.js";
66
68
  import { OfficeStore, OfficeWriteLimiter } from "./web-office-store.js";
67
69
  import { OfficeSkinStore } from "./web-office-skins.js";
70
+ import { OfficeActs } from "./web-office-acts.js";
71
+ import { OfficePackTools } from "./web-office-pack-tools.js";
68
72
  import { WebAppearance } from "./web-appearance.js";
69
73
  import { WebEffectLibrary } from "./web-effect-library.js";
70
74
  import { WebEffectTrials } from "./web-effect-trials.js";
@@ -84,12 +88,13 @@ import { type CrossInstanceRecord, type XmsgVisibility } from "./search/search-d
84
88
  import { WebSettingsTools } from "./web-settings-tools.js";
85
89
  import { type Delegation, type TrafficItem } from "./fleet-traffic.js";
86
90
  import { WebBackendLogins, type SignInTarget } from "./web-backend-login.js";
91
+ import { BrowserBackendSignIns } from "./browser-backend-signins.js";
87
92
  import { type RawConfigPatch } from "./settings-api.js";
88
93
  import { type AgentEndpointContext } from "./agent-endpoint.js";
89
94
  import { ClassicChannelManager } from "./classic-channel-manager.js";
90
95
  import { type ExplicitInstanceRemoval } from "./instance-removal.js";
91
96
  import { type SessionOomRetry } from "./session-oom-stop.js";
92
- import type { InstanceState, InteractionSnapshot } from "./backend/types.js";
97
+ import type { InstanceState, InteractionSnapshot, RemoteCard } from "./backend/types.js";
93
98
  import { type Daemon } from "./daemon.js";
94
99
  import { WakeCoordinator } from "./wake-coordinator.js";
95
100
  import { TargetQueueWorker } from "./target-queue-worker.js";
@@ -156,6 +161,8 @@ export declare function insideManagedWorkspaces(dir: string, agendHome?: string)
156
161
  export declare function isOrphanInstanceWindowName(name: string): boolean;
157
162
  /** restartSingleInstance's options. `carry` (#1753): a credential-profile switch; its outcome is written into `result`. */
158
163
  export interface RestartOpts {
164
+ /** Internal ownership of a complete migration workflow. Never supplied by tool input. */
165
+ kiroMigration?: symbol;
159
166
  freshStart?: boolean;
160
167
  explicit?: boolean;
161
168
  /** Internal receipt captured when an OOM action was offered. */
@@ -245,6 +252,7 @@ export declare const CLI_ENV_PROBE_DEADLINE_MS = 16000;
245
252
  * started ten CLIs together, saturated the CPU, and healthy starts then missed
246
253
  * their startup budget — which used to cost the user their conversation. Cores
247
254
  * bound how many can actually make progress; memory bounds how many fit.
255
+ * `cores` is what this process may use (cpuset and cgroup quota, #749), not the host's count.
248
256
  */
249
257
  export declare function deriveSpawnConcurrency(freeMemMB: number, cores: number): number;
250
258
  /** #2499 review: one line of Settings → Guests' Recent changes (guestOverview), from the event log. */
@@ -284,6 +292,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
284
292
  private workingRecovery;
285
293
  private workingRecoveryTimer;
286
294
  private workingRecoveryCause;
295
+ private workingRecoveryGroup;
287
296
  private recoveryEnabled;
288
297
  private initializeWorkingRecovery;
289
298
  private recoveryDeliveryEligible;
@@ -453,6 +462,9 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
453
462
  private pendingBackendSelects;
454
463
  /** nonce → pending button prompt (hang restart, interactive assist, clean-exit restart). */
455
464
  private pendingNonceButtons;
465
+ /** #2598 B2: the kiro moves waiting on a fleet admin's Confirm in General, by prompt nonce. */
466
+ private pendingKiroMigrations;
467
+ private kiroMigrationRuns;
456
468
  /** #1386 "Needs you": the list, its live chat messages and Acknowledge. Started with the fleet (finishStartup). */
457
469
  private needsYou;
458
470
  /** When the fleet first saw an instance crashed, for its "Needs you" age; cleared when it is not. */
@@ -465,6 +477,12 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
465
477
  * adapter emits — whatever fields its payload carries — can claim a dashboard click's authority.
466
478
  */
467
479
  private readonly webPromptClicks;
480
+ /** #2675: a dashboard click's typed answer, for the click it came with. */
481
+ private readonly webPromptTexts;
482
+ /** #2675: the nonce of each instance's posted card. */
483
+ private readonly remoteCardPosts;
484
+ /** #2675: replies taken as a card's answer (`<chatId>|<messageId>` → monotonic expiry), so another bot's copy is dropped. */
485
+ private readonly takenCardReplies;
468
486
  /** The web clicks consumeNonceCallback actually claimed (the others were refused or lost a race). */
469
487
  private readonly webPromptClaims;
470
488
  private failoverActive;
@@ -658,6 +676,45 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
658
676
  readonly officeSkinWrites: OfficeWriteLimiter;
659
677
  /** How often a person may save the offices (PUT /ui/offices); memory only, as the appearance limiter. */
660
678
  readonly officeWrites: OfficeWriteLimiter;
679
+ private officeSharesInstance?;
680
+ /**
681
+ * #2636: Office share links — the live Office view for people outside the fleet, read-only, on a quick tunnel of
682
+ * their own (a manager and lease of its own: never the fleet's one tunnel lane nor the public link's preview tunnel).
683
+ */
684
+ get officeShares(): OfficeShareService;
685
+ /**
686
+ * #2636: a share made or ended — said in General, as a sign-in is (who, which office, for how long; never its URL).
687
+ * `share` null with `count`: "Revoke all".
688
+ */
689
+ officeShareNotice(event: "created" | "revoked", who: string, share: OfficeShare | null, count: number): void;
690
+ /** A share's owner: a person (`person:<adapter>:<user>`) still a fleet admin there; the host's own admin session stays. */
691
+ private officeShareOwnerCurrent;
692
+ private officeActsInstance?;
693
+ /** #2578: the agents' acts in the Office view (office_view / office_set), memory only; every change is `office_acts`. */
694
+ get officeActs(): OfficeActs;
695
+ private officePackToolsInstance?;
696
+ /** #2692: the agents' skin-pack tools — their log, the admins' approval mode and the pending changes (memory only). */
697
+ get officePackTools(): OfficePackTools;
698
+ /** #2692: the instances whose `office_packs` feature is on (their own switch, else the defaults'): the Office page lists them. */
699
+ private officePackAgents;
700
+ /** #2692: the nonce of each pending pack change's prompt in General (its buttons are retired when it is decided). */
701
+ private readonly officePackPrompts;
702
+ /**
703
+ * #2692: tell the fleet's admins of an agent's pack change — one short message in General (notifyFleetError, never a
704
+ * sign-in notice). A pending one comes with Approve / Reject (a fleet admin's, as a kiro move); where no General can
705
+ * carry buttons it is the plain message, and the Office page decides it.
706
+ */
707
+ private officePackNotice;
708
+ private retireOfficePackNonce;
709
+ /** #2692: a pending change was decided (here or on the page) or expired: its prompt says so and loses its buttons. */
710
+ private settleOfficePackPrompt;
711
+ /** #2692: Approve / Reject on a pending pack change. Any fleet admin (the default nonce authorization), in General. */
712
+ private handleOfficePackCallback;
713
+ /**
714
+ * #2578: each instance's state as the org chart shows it (fleet-org.js orgState, from the same fields the status
715
+ * frame and the Needs-you list carry) and its display name (resolveInstanceIdentity, as getUiStatus) — read once.
716
+ */
717
+ private officePeople;
661
718
  /** #1629: the theme tools, a person's reset and lock, and the one appearance rate limiter (shared with effects). */
662
719
  get webAppearance(): WebAppearance;
663
720
  private effectLibraryInstance?;
@@ -755,6 +812,21 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
755
812
  /** Exact configured effect owners; this does not depend on prompt location. */
756
813
  private settingsChatAuthority;
757
814
  private promptSettingsChange;
815
+ private kiroMigrateDeps;
816
+ /**
817
+ * #2598 B2, migrate_kiro_instance: judge the move, then ask in General for a fleet admin's Confirm. Nothing changes
818
+ * here; the move runs on the Confirm (handleKiroMigrateCallback), judged again then.
819
+ */
820
+ requestKiroMigration(name: string, startFresh: boolean): Promise<{
821
+ ok: true;
822
+ text: string;
823
+ classic_conversation: string | null;
824
+ } | {
825
+ ok: false;
826
+ error: string;
827
+ }>;
828
+ /** A fleet admin's Confirm or Cancel on a kiro move. Any fleet admin (the default nonce authorization), in General. */
829
+ private handleKiroMigrateCallback;
758
830
  private handleSettingsChangeCallback;
759
831
  startSettingsConfirmationControl(): Promise<void>;
760
832
  private get webToken();
@@ -1699,6 +1771,10 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1699
1771
  chat: boolean;
1700
1772
  explicit: boolean;
1701
1773
  instances: string[];
1774
+ rooms: Array<{
1775
+ name: string;
1776
+ display_name?: string;
1777
+ }>;
1702
1778
  connections: Array<{
1703
1779
  id: string;
1704
1780
  type: string;
@@ -1731,6 +1807,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1731
1807
  }>;
1732
1808
  audit: GuestAuditEntry[];
1733
1809
  };
1810
+ /** #2667: the ClassicBot rooms' instance names now — what a settings save's validation knows besides fleet.yaml's instances. */
1811
+ classicRoomNames(): string[];
1734
1812
  /**
1735
1813
  * #2499 review: the guest audit an admin reads — the newest grant changes and admin-sent codes from the event log
1736
1814
  * (`fleet` rows: no agent's Log shows them). Through guestOverview only: Settings' admin gate, never over the public
@@ -1959,6 +2037,10 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1959
2037
  private sweepOrphanedWebUploads;
1960
2038
  /** Start the shared channel adapter(s) for topic mode */
1961
2039
  private startSharedAdapter;
2040
+ /** How long fleet startup waits for its chat connections before it continues without the slow ones (#2642). */
2041
+ static ADAPTER_STARTUP_WAIT_MS: number;
2042
+ /** Track a connection's startup outcome; a failure gets the background retry. */
2043
+ private recordAdapterStartup;
1962
2044
  /** Keep trying while the fleet runs, with a five-minute cap even after a long outage. */
1963
2045
  private scheduleAdapterRetry;
1964
2046
  /** One login per connection, shared by the background timer and the operator's Retry now. */
@@ -2397,6 +2479,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2397
2479
  * non-identity instance leaves are canonicalized to inheritance afterward.
2398
2480
  */
2399
2481
  saveFleetConfig(explicitPatches?: RawConfigPatch[]): void;
2482
+ /** A permission tightening is effective when its save returns, independently of the later apply job or IPC. */
2483
+ private refreshSavedDashboardPermissions;
2400
2484
  /** Why the config written to `candidate` must not replace fleet.yaml, or null: it does not load, or it adds errors. */
2401
2485
  private savedFleetConfigProblem;
2402
2486
  /**
@@ -2405,6 +2489,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2405
2489
  */
2406
2490
  private logConfigWarningsAtStartup;
2407
2491
  /** One-time upgrade migration; invalid YAML is never rewritten. */
2492
+ private migrateNoticeDeliveryStorage;
2493
+ private migrateOfficeStorage;
2408
2494
  private slimFleetConfigAtStartup;
2409
2495
  private writeFleetConfigBackup;
2410
2496
  private patchFleetDocument;
@@ -2875,6 +2961,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2875
2961
  * without one); codex "unrecorded" (its rollouts don't say which login wrote them).
2876
2962
  */
2877
2963
  private usageProfileOf;
2964
+ /** #2122 §10: a Kiro instance with a credential profile writes its classic store in that profile's home. */
2965
+ private kiroDbPathOf;
2878
2966
  /** #2122: the fleet's day boundary zone — defaults.scheduler.default_timezone, else this host's. */
2879
2967
  usageZone(): string;
2880
2968
  /**
@@ -2980,7 +3068,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2980
3068
  error?: string;
2981
3069
  options?: number[];
2982
3070
  }>;
2983
- clickWebPrompt(instance: string, nonce: string, action: string): Promise<{
3071
+ clickWebPrompt(instance: string, nonce: string, action: string, text?: string): Promise<{
2984
3072
  status: 200 | 400 | 403 | 409;
2985
3073
  error?: string;
2986
3074
  outcome?: string;
@@ -3183,6 +3271,37 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
3183
3271
  offerBackendLogin(targetInstance: string, backend: string, profile?: string): Promise<void>;
3184
3272
  /** Consume a General assist button exactly once. */
3185
3273
  private handleInteractivePromptAssist;
3274
+ /**
3275
+ * Where an instance's card is put to people: its own place — its topic, or its ClassicBot room — or, on a fleet with
3276
+ * no chat platform, the dashboard. Never General: the answer is the instance's conversation.
3277
+ */
3278
+ private remoteCardPlace;
3279
+ /**
3280
+ * The daemon saw a card held still on `instanceName`'s screen (remote_card): put it to the people who talk to that
3281
+ * instance, with a button per answer. A card already posted for the instance is retired first (the daemon said it
3282
+ * was gone; this is the fallback).
3283
+ */
3284
+ postRemoteCard(instanceName: string, card: RemoteCard): Promise<void>;
3285
+ /**
3286
+ * The card is gone from the screen (remote_card_gone, `identity`; null: whichever is posted): its buttons collapse to
3287
+ * `text` if nobody answered them here.
3288
+ */
3289
+ retireRemoteCard(instanceName: string, identity: string | null, text?: string): void;
3290
+ /** Who may answer an instance's card: whoever may already talk to it there (a ClassicBot room is open to all). */
3291
+ private mayAnswerRemoteCard;
3292
+ /** A click on a card's button (platform or dashboard). */
3293
+ private handleRemoteCardClick;
3294
+ /**
3295
+ * An inbound message that replies to a posted question card, by someone who may answer it: its text is the typed
3296
+ * answer, and the message goes no further (true). Another bot's copy of a reply already taken is dropped (true).
3297
+ */
3298
+ private takeRemoteCardReply;
3299
+ /**
3300
+ * Key a claimed answer into the instance's card (the daemon checks it is still that card and walks a verified
3301
+ * cursor), then collapse the post to what happened. When the card is still waiting and was not answered — refused
3302
+ * or stopped part-way — it is posted again, so it can still be answered from here.
3303
+ */
3304
+ private answerRemoteCardFor;
3186
3305
  /** Send a "🛑 Cancel" button to the instance's topic/channel after delivery. */
3187
3306
  /**
3188
3307
  * Handle the DC `/save` slash command for both classic AND fleet-topic targets.
@@ -3355,6 +3474,13 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
3355
3474
  */
3356
3475
  private readonly loginWindow;
3357
3476
  private get webLogin();
3477
+ private browserBackendSignInsInstance;
3478
+ private structuredLoginCleanupFailed;
3479
+ private readonly pendingBackendSince;
3480
+ private browserSignInOwnerCurrent;
3481
+ /** #2599: default-account controls share the exact writer reservation with chat/profile/install. */
3482
+ get browserBackendSignIns(): BrowserBackendSignIns;
3483
+ private needsYouBackendSignIns;
3358
3484
  /** #2233: sign-ins started from the web dashboard (local admin sessions), on the same controller as chat's. */
3359
3485
  private webBackendLoginsInstance;
3360
3486
  get webBackendLogins(): WebBackendLogins;
@@ -3648,6 +3774,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
3648
3774
  private cliEnvPath;
3649
3775
  /** Read the cached CLI env for a backend (a credential profile's own, when given), or null if missing/stale/unparseable. */
3650
3776
  private readCliEnv;
3777
+ /**
3778
+ * #2122 §10: the version the CLI probe last recorded for a backend — its cache file read whatever its age (the usage
3779
+ * reader's version gate needs the last known version, not a fresh one); null when none was recorded. Never a probe.
3780
+ */
3781
+ private lastRecordedCliVersion;
3651
3782
  /** Return cached CLI versions immediately. Refresh is started after /sysinfo is sent. */
3652
3783
  getBackendCliVersionSnapshot(): BackendCliVersionSnapshot;
3653
3784
  /** Called only after the user-visible sysinfo send/respond has settled. */