@songsid/agend 2.3.5-beta.1 → 2.3.5-beta.3

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 (199) hide show
  1. package/dist/agent-cli-instructions.md +3 -3
  2. package/dist/agent-cli.js +5 -2
  3. package/dist/agent-cli.js.map +1 -1
  4. package/dist/agent-whats-new.js +4 -0
  5. package/dist/agent-whats-new.js.map +1 -1
  6. package/dist/auth-api.d.ts +3 -1
  7. package/dist/auth-api.js +6 -2
  8. package/dist/auth-api.js.map +1 -1
  9. package/dist/backend/claude-code.d.ts +3 -0
  10. package/dist/backend/claude-code.js +72 -13
  11. package/dist/backend/claude-code.js.map +1 -1
  12. package/dist/backend/cli-env-probe.js +6 -2
  13. package/dist/backend/cli-env-probe.js.map +1 -1
  14. package/dist/backend/codex.d.ts +5 -3
  15. package/dist/backend/codex.js +31 -13
  16. package/dist/backend/codex.js.map +1 -1
  17. package/dist/backend/kiro.js +1 -1
  18. package/dist/backend/kiro.js.map +1 -1
  19. package/dist/backend/types.d.ts +9 -1
  20. package/dist/backend/types.js.map +1 -1
  21. package/dist/bundled-tmux-guard.d.ts +4 -0
  22. package/dist/bundled-tmux-guard.js +7 -0
  23. package/dist/bundled-tmux-guard.js.map +1 -1
  24. package/dist/cache-service.d.ts +6 -0
  25. package/dist/cache-service.js +105 -0
  26. package/dist/cache-service.js.map +1 -1
  27. package/dist/channel/access-manager.d.ts +1 -6
  28. package/dist/channel/access-manager.js +4 -94
  29. package/dist/channel/access-manager.js.map +1 -1
  30. package/dist/channel/adapters/discord.d.ts +0 -2
  31. package/dist/channel/adapters/discord.js +0 -8
  32. package/dist/channel/adapters/discord.js.map +1 -1
  33. package/dist/channel/adapters/telegram.d.ts +0 -3
  34. package/dist/channel/adapters/telegram.js +1 -30
  35. package/dist/channel/adapters/telegram.js.map +1 -1
  36. package/dist/channel/mcp-tools.js +4 -4
  37. package/dist/channel/mcp-tools.js.map +1 -1
  38. package/dist/channel/types.d.ts +0 -2
  39. package/dist/claude-model-minimum.d.ts +7 -0
  40. package/dist/claude-model-minimum.js +16 -0
  41. package/dist/claude-model-minimum.js.map +1 -0
  42. package/dist/cli.js +1 -19
  43. package/dist/cli.js.map +1 -1
  44. package/dist/config-validator.js +2 -1
  45. package/dist/config-validator.js.map +1 -1
  46. package/dist/daemon.d.ts +46 -1
  47. package/dist/daemon.js +193 -29
  48. package/dist/daemon.js.map +1 -1
  49. package/dist/decision-list.d.ts +2 -0
  50. package/dist/decision-list.js +1 -1
  51. package/dist/decision-list.js.map +1 -1
  52. package/dist/fleet-manager.d.ts +95 -0
  53. package/dist/fleet-manager.js +491 -113
  54. package/dist/fleet-manager.js.map +1 -1
  55. package/dist/fleet-process-handlers.d.ts +1 -1
  56. package/dist/fleet-process-handlers.js +3 -2
  57. package/dist/fleet-process-handlers.js.map +1 -1
  58. package/dist/general-knowledge/skills/concepts/SKILL.md +28 -18
  59. package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +9 -1
  60. package/dist/general-knowledge/skills/delegation-playbook/SKILL.md +4 -1
  61. package/dist/general-knowledge/skills/fleet-config/SKILL.md +12 -0
  62. package/dist/general-knowledge/skills/fleet-health/SKILL.md +1 -1
  63. package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +4 -0
  64. package/dist/general-knowledge/skills/web-dashboard/SKILL.md +16 -11
  65. package/dist/general-knowledge/steering/core-rules.md +6 -4
  66. package/dist/instance-lifecycle.d.ts +4 -1
  67. package/dist/instance-lifecycle.js +20 -1
  68. package/dist/instance-lifecycle.js.map +1 -1
  69. package/dist/instructions.js +29 -6
  70. package/dist/instructions.js.map +1 -1
  71. package/dist/kiro-history-scan.d.ts +26 -0
  72. package/dist/kiro-history-scan.js +141 -0
  73. package/dist/kiro-history-scan.js.map +1 -0
  74. package/dist/kiro-history-worker.d.ts +1 -0
  75. package/dist/kiro-history-worker.js +9 -0
  76. package/dist/kiro-history-worker.js.map +1 -0
  77. package/dist/kiro-history.d.ts +20 -0
  78. package/dist/kiro-history.js +96 -0
  79. package/dist/kiro-history.js.map +1 -0
  80. package/dist/kiro-usage-run.d.ts +2 -0
  81. package/dist/kiro-usage-run.js +4 -1
  82. package/dist/kiro-usage-run.js.map +1 -1
  83. package/dist/locale.js +107 -97
  84. package/dist/locale.js.map +1 -1
  85. package/dist/login-flows.d.ts +4 -0
  86. package/dist/login-flows.js +8 -4
  87. package/dist/login-flows.js.map +1 -1
  88. package/dist/office-levels.d.ts +4 -3
  89. package/dist/office-levels.js +3 -3
  90. package/dist/office-levels.js.map +1 -1
  91. package/dist/outbound-handlers.js +33 -13
  92. package/dist/outbound-handlers.js.map +1 -1
  93. package/dist/outbound-schemas.d.ts +16 -0
  94. package/dist/outbound-schemas.js +8 -2
  95. package/dist/outbound-schemas.js.map +1 -1
  96. package/dist/quickstart-api.js +2 -2
  97. package/dist/quickstart-api.js.map +1 -1
  98. package/dist/reply-buttons-controller.d.ts +5 -1
  99. package/dist/reply-buttons-controller.js +8 -4
  100. package/dist/reply-buttons-controller.js.map +1 -1
  101. package/dist/reply-buttons.d.ts +6 -2
  102. package/dist/reply-buttons.js +7 -3
  103. package/dist/reply-buttons.js.map +1 -1
  104. package/dist/scheduler/db.d.ts +10 -0
  105. package/dist/scheduler/db.js +38 -11
  106. package/dist/scheduler/db.js.map +1 -1
  107. package/dist/scheduler/types.d.ts +6 -1
  108. package/dist/setup-i18n.js +4 -4
  109. package/dist/setup-i18n.js.map +1 -1
  110. package/dist/structured-signin.js +3 -1
  111. package/dist/structured-signin.js.map +1 -1
  112. package/dist/subagent-records.d.ts +42 -0
  113. package/dist/subagent-records.js +159 -0
  114. package/dist/subagent-records.js.map +1 -0
  115. package/dist/subagent-service.d.ts +27 -0
  116. package/dist/subagent-service.js +199 -0
  117. package/dist/subagent-service.js.map +1 -0
  118. package/dist/team-membership.d.ts +7 -0
  119. package/dist/team-membership.js +10 -0
  120. package/dist/team-membership.js.map +1 -0
  121. package/dist/tips.js +4 -4
  122. package/dist/tips.js.map +1 -1
  123. package/dist/tmux-manager.d.ts +1 -1
  124. package/dist/tmux-manager.js +4 -1
  125. package/dist/tmux-manager.js.map +1 -1
  126. package/dist/tool-permissions.d.ts +2 -3
  127. package/dist/tool-permissions.js +3 -3
  128. package/dist/tool-permissions.js.map +1 -1
  129. package/dist/topic-commands.js +1 -1
  130. package/dist/topic-commands.js.map +1 -1
  131. package/dist/types.d.ts +2 -0
  132. package/dist/types.js.map +1 -1
  133. package/dist/ui/backend-signin.js +62 -62
  134. package/dist/ui/chat-commands.js +7 -0
  135. package/dist/ui/chat-store.js +9 -4
  136. package/dist/ui/chat-strings.js +25 -25
  137. package/dist/ui/fleet-cache.js +3 -3
  138. package/dist/ui/fleet-canvas.js +2 -2
  139. package/dist/ui/fleet-office-editor.js +1 -1
  140. package/dist/ui/fleet-office.js +1 -1
  141. package/dist/ui/fleet-org.js +2 -2
  142. package/dist/ui/fleet-task-card.js +1 -1
  143. package/dist/ui/fleet-task-common.js +7 -7
  144. package/dist/ui/model-picker.js +64 -0
  145. package/dist/ui/panel-chat.js +47 -16
  146. package/dist/ui/panel-fleet.js +8 -8
  147. package/dist/ui/panel-needs.js +3 -3
  148. package/dist/ui/panel-settings.js +16 -6
  149. package/dist/ui/settings-catalog.js +19 -4
  150. package/dist/ui/settings-dialogs.js +28 -9
  151. package/dist/ui/settings-guests.js +1 -1
  152. package/dist/ui/settings-quota-notice.js +8 -6
  153. package/dist/ui/settings-registry.js +3 -1
  154. package/dist/ui/settings-strings.js +36 -30
  155. package/dist/ui/settings-update.js +69 -0
  156. package/dist/ui/shared/app-i18n.js +12 -6
  157. package/dist/ui/shared/app-shell.js +10 -3
  158. package/dist/ui/shared/app-update.js +215 -0
  159. package/dist/ui/shared/app.css +48 -2
  160. package/dist/ui/shared/instance-nav.js +1 -1
  161. package/dist/ui/shared/model-picker.css +21 -0
  162. package/dist/ui/shared/setup-host-text.js +8 -5
  163. package/dist/ui/shared/signin.js +35 -17
  164. package/dist/ui/shared/subagent-row.css +15 -0
  165. package/dist/ui/shared/view-strings.js +17 -17
  166. package/dist/ui/shared/web-authorize.js +4 -4
  167. package/dist/ui/structured-signin.js +26 -26
  168. package/dist/ui/subagent-row.js +64 -0
  169. package/dist/ui/web-terminal/terminal.js +9 -9
  170. package/dist/update-dispatch.d.ts +32 -4
  171. package/dist/update-dispatch.js +146 -16
  172. package/dist/update-dispatch.js.map +1 -1
  173. package/dist/update-launch.d.ts +1 -1
  174. package/dist/update-launch.js +2 -2
  175. package/dist/update-launch.js.map +1 -1
  176. package/dist/update-marker.d.ts +2 -2
  177. package/dist/update-marker.js +4 -3
  178. package/dist/update-marker.js.map +1 -1
  179. package/dist/usage/providers.d.ts +1 -0
  180. package/dist/usage/providers.js +13 -9
  181. package/dist/usage/providers.js.map +1 -1
  182. package/dist/usage-rollup.d.ts +3 -0
  183. package/dist/usage-rollup.js +2 -0
  184. package/dist/usage-rollup.js.map +1 -1
  185. package/dist/view-api.d.ts +2 -8
  186. package/dist/view-api.js +3 -9
  187. package/dist/view-api.js.map +1 -1
  188. package/dist/web-api.d.ts +14 -0
  189. package/dist/web-api.js +216 -2
  190. package/dist/web-api.js.map +1 -1
  191. package/dist/web-auth.js +2 -1
  192. package/dist/web-auth.js.map +1 -1
  193. package/dist/web-commands.d.ts +8 -0
  194. package/dist/web-commands.js +6 -0
  195. package/dist/web-commands.js.map +1 -1
  196. package/dist/web-update.d.ts +77 -0
  197. package/dist/web-update.js +102 -0
  198. package/dist/web-update.js.map +1 -0
  199. package/package.json +3 -2
@@ -9,6 +9,8 @@ export interface DecisionTitle {
9
9
  id: string;
10
10
  title: string;
11
11
  scope: Decision["scope"];
12
+ /** A team decision's team. */
13
+ team?: string;
12
14
  /** The day it was last changed (YYYY-MM-DD). */
13
15
  date: string;
14
16
  tags?: string[];
@@ -21,7 +21,7 @@ export function decisionListAnswer(all, opts = {}) {
21
21
  if (opts.full === true)
22
22
  return all;
23
23
  const titles = all.map(d => ({
24
- id: d.id, title: d.title, scope: d.scope, date: (d.updated_at || d.created_at || "").slice(0, 10),
24
+ id: d.id, title: d.title, scope: d.scope, ...(d.team ? { team: d.team } : {}), date: (d.updated_at || d.created_at || "").slice(0, 10),
25
25
  ...(d.tags?.length ? { tags: d.tags } : {}),
26
26
  ...(d.status && d.status !== "active" ? { status: d.status } : {}),
27
27
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"decision-list.js","sourceRoot":"","sources":["../src/decision-list.ts"],"names":[],"mappings":"AAkBA,MAAM,CAAC,MAAM,oBAAoB,GAAG,6GAA6G,CAAC;AAElJ,sHAAsH;AACtH,SAAS,IAAI,CAAC,GAAwB,EAAE,EAAU;IAChD,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IACzC,IAAI,KAAK;QAAE,OAAO,KAAK,CAAC;IACxB,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IAC/B,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC;IAClD,OAAO,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAAwB,EAAE,IAAI,GAAqC,EAAE;IACtG,IAAI,OAAO,IAAI,CAAC,EAAE,KAAK,QAAQ,IAAI,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;QAClD,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;QACpC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,EA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AC,UAAU,IAAI,CAAC,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;QACtI,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3C,GAAG,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACnE,CAAC,CAAC,CAAC;IACJ,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;AAC3D,CAAC"}
@@ -84,6 +84,7 @@ import { type WebAccount } from "./web-profile.js";
84
84
  import type { WebPerson as WebPersonView } from "./web-api.js";
85
85
  import { ReplyButtonsController } from "./reply-buttons-controller.js";
86
86
  import { WebFileLedger } from "./web-upload.js";
87
+ import type { ActiveDecisionRow } from "./daemon.js";
87
88
  import { AppearanceTools } from "./web-appearance-tools.js";
88
89
  import { ModStore } from "./web-mod-store.js";
89
90
  import { type CachedImage } from "./web-images.js";
@@ -91,6 +92,7 @@ import { SearchIndex } from "./search/search-index.js";
91
92
  import { type CrossInstanceRecord, type XmsgVisibility } from "./search/search-docs.js";
92
93
  import { WebSettingsTools } from "./web-settings-tools.js";
93
94
  import { type Delegation, type TrafficItem } from "./fleet-traffic.js";
95
+ import { type WebUpdateHost } from "./web-update.js";
94
96
  import { WebBackendLogins, type SignInTarget } from "./web-backend-login.js";
95
97
  import { BrowserBackendSignIns } from "./browser-backend-signins.js";
96
98
  import { type RawConfigPatch } from "./settings-api.js";
@@ -292,6 +294,7 @@ export declare class RestartSupersededError extends Error {
292
294
  }
293
295
  export declare class FleetManager implements FleetContext, LifecycleContext, ArchiverContext, StatuslineWatcherContext, OutboundContext, AgentEndpointContext {
294
296
  dataDir: string;
297
+ private decisionSnapshot;
295
298
  private static signalTarget;
296
299
  private static sighupHandlerInstalled;
297
300
  /** Test seam: inject a spy to verify saveFleetConfig calls fsync. Default: fsyncSync. */
@@ -571,6 +574,18 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
571
574
  private previewInputs;
572
575
  private healthPortRetried;
573
576
  private updateCheckTimer;
577
+ /** M-2738: the last update check's answer, for the web (null until the first check settles). */
578
+ private updateCheckState;
579
+ /** M-2738: a web "check now" in flight, and when the last one ran (one a minute at most). */
580
+ private updateCheckNow;
581
+ /** M-2738: a web start's Idempotency-Key → its answer (a retried request never starts a second update). */
582
+ private webUpdateStarts;
583
+ /**
584
+ * M-2738 (Prism #3505 P2-2): this fleet's own claim on a web-started update, from admission until its updater exits
585
+ * (or was never launched). The progress marker expires after 15 minutes so a crashed update cannot silence incident
586
+ * reports; that expiry never proves the update ended, so it never admits a second one while this is held.
587
+ */
588
+ private webUpdateOwned;
574
589
  private updateProgressTimer;
575
590
  private updateProgressEditRunning;
576
591
  private lastUpdateProgressText;
@@ -1137,6 +1152,12 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1137
1152
  /** SIGUSR1: full process reload. Names who asked (#1120). */
1138
1153
  private onFullRestartSignal;
1139
1154
  private handleUpdateSlash;
1155
+ /**
1156
+ * The update itself, for slash `/update` and the web's Update (M-2738): the installed `agend`, verified, launched
1157
+ * independently with its log — or a failure in the progress marker. `stillAllowed` is asked again once the awaits
1158
+ * are done (the asker may have lost the right, or the fleet begun stopping, meanwhile).
1159
+ */
1160
+ private launchInstalledUpdate;
1140
1161
  private handleProfileSlash;
1141
1162
  /** Typed /profile belongs only to Telegram's General dispatcher. */
1142
1163
  runProfileCommand(msg: InboundMessage, seconds?: string): Promise<void>;
@@ -1236,6 +1257,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1236
1257
  viewHistory(name: string, q: ViewHistoryQuery): Promise<ViewHistoryAnswer | null>;
1237
1258
  /** #1218: GET /ui/steps — an instance's steps, read on demand (null: no such instance). */
1238
1259
  logSteps(name: string, q: LogQuery): Promise<LogAnswer | null>;
1260
+ private subagentReader;
1261
+ subagentRuns(name: string): Promise<import("./subagent-service.js").SubagentAnswer>;
1239
1262
  /**
1240
1263
  * #1218: where an instance's steps are read from, resolved only when its Log asks: the transcript its daemon follows
1241
1264
  * now; for claude-code, also the path its statusline last named (so a stopped instance's Log still shows its last
@@ -1584,6 +1607,10 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
1584
1607
  * Stopped/paused ClassicBot entries count too; their workspace is exactly
1585
1608
  * the one startClassicInstance builds, not this FleetManager's dataDir.
1586
1609
  */
1610
+ /** Take the startup snapshot of every active decision (text cut to 200 characters); see activeDecisions. */
1611
+ snapshotActiveDecisions(): void;
1612
+ /** The startup snapshot of active decisions, for a daemon's Active Decisions (it selects and caps its own). */
1613
+ activeDecisions(): readonly ActiveDecisionRow[];
1587
1614
  kiroPeerWorkingDirectories(name: string): string[];
1588
1615
  /**
1589
1616
  * Probe the same executable set exposed by the web backend catalog.
@@ -2374,6 +2401,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2374
2401
  /** No chat platform is configured at all: the web dashboard is the fleet's only surface. */
2375
2402
  /** #2910: no Discord or Telegram connection at all (src/web-only-fleet.ts). */
2376
2403
  isWebOnlyFleet(): boolean;
2404
+ /**
2405
+ * S-117 story 1: the sign-in page's "no chat" words (no /web to send) — a web-only fleet, or one whose chat is not
2406
+ * connected yet (a fresh install whose bot is still being set up, or is down): /web cannot answer there.
2407
+ */
2408
+ signinWithoutChat(): boolean;
2377
2409
  /** On a fleet with no chat platform, the dashboard is where an instance-health prompt is posted (#1307 item 6). */
2378
2410
  private webOnlyPromptPlace;
2379
2411
  /** Resolves when the reply is in the web chat (#1770: after its files are copied); the caller need not wait. */
@@ -2488,6 +2520,33 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
2488
2520
  * create paths. An empty or absent value supersedes nothing and needs nothing; anything else must be an id.
2489
2521
  */
2490
2522
  private decisionSupersedes;
2523
+ /**
2524
+ * The scope (and team) a new decision gets. Team membership is read from fleet.yaml now. Omitted scope: the poster's
2525
+ * team when they are in exactly one, project (this exact directory) when they are in none; in several, they choose.
2526
+ * A team decision goes only to a team the poster is in.
2527
+ */
2528
+ decisionScopeFor(instance: string, scope: unknown, team: unknown): {
2529
+ scope: "project" | "team" | "fleet";
2530
+ team?: string;
2531
+ teams: string[];
2532
+ } | {
2533
+ error: string;
2534
+ };
2535
+ /**
2536
+ * #3421 review: a team decision is only for its team's current members — reading it back through an update (even an
2537
+ * empty one) or archiving it is refused to anyone else, exactly as list/get and supersede are. The refusal names it
2538
+ * "not found", as for an id that does not exist, and changes nothing. Project and fleet decisions: as before.
2539
+ */
2540
+ decisionHiddenFrom(instance: string, id: unknown): string | null;
2541
+ /** A ClassicBot agent's own folder — where startClassicInstance launches it, and its project for decisions (#3454). */
2542
+ classicWorkspaceDir(instanceName: string): string;
2543
+ /**
2544
+ * #3454: the project root of an agent calling the agent endpoint (CLI mode), as the MCP path has it from the daemon's
2545
+ * own working directory. A fleet instance: its fleet.yaml working_directory, as before. A ClassicBot agent (not in
2546
+ * fleet.yaml): its own workspace — it used to fall back to "", one project shared by every CLI-mode ClassicBot room.
2547
+ * Anything else: null, and the caller refuses rather than guess.
2548
+ */
2549
+ decisionProjectRootFor(instance: string): string | null;
2491
2550
  handleDecisionCrudHttp(instance: string, op: string, args: Record<string, unknown>): Promise<unknown>;
2492
2551
  handleTaskCrudHttp(instance: string, args: Record<string, unknown>): Promise<unknown>;
2493
2552
  handleSetDisplayNameHttp(instance: string, name: string): Promise<unknown>;
@@ -3373,6 +3432,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
3373
3432
  command: string;
3374
3433
  args?: string;
3375
3434
  confirm?: string;
3435
+ action?: import("./web-commands.js").WebModelAction;
3376
3436
  }, opts: {
3377
3437
  publicLink: boolean;
3378
3438
  person?: Pick<WebPersonView, "userId" | "name">;
@@ -4001,6 +4061,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
4001
4061
  private persistCliEnvProbeResult;
4002
4062
  /** Background-probe every distinct backend in use at startup (non-blocking). */
4003
4063
  private probeCliEnvs;
4064
+ /** Maintain discovery after committed config changes; a model-field read remains passive. */
4065
+ private probeChangedCliEnvs;
4004
4066
  /** Best-effort model list for `/model`: cached CLI env first, else live probe. Never throws. */
4005
4067
  private getModelOptions;
4006
4068
  /**
@@ -4182,7 +4244,19 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
4182
4244
  * #2072 part 3: the models a Settings field offers for `backend` — the cached catalog (an instance's own credential
4183
4245
  * profile's, when it is named and has one), claude's account catalog included. Read only: never a probe.
4184
4246
  */
4247
+ private webModelTargetIds;
4248
+ private webModelTargetSequence;
4249
+ private webModelCatalogs;
4250
+ private webModelRefreshes;
4251
+ /** Resolve only trusted config; the browser never supplies a home, provider URL or credentials. */
4252
+ private webModelBinding;
4253
+ private webModelEnv;
4185
4254
  modelCatalogFor(backend: string, instance: string | null): import("./backend/types.js").ModelOption[];
4255
+ /** Explicit, bounded vendor rediscovery. Never publish an answer under a different account/config/instance. */
4256
+ refreshModelCatalogFor(backend: string, instance: string | null): Promise<{
4257
+ models: import("./backend/types.js").ModelOption[];
4258
+ refreshed: boolean;
4259
+ }>;
4186
4260
  /**
4187
4261
  * #2072 (#2078 review): the snapshot as THIS instance would see it. Its sign-in on a backend is its own credential
4188
4262
  * profile's when it has one there — the host's default login says nothing about it. A profile's login is a file check
@@ -4550,7 +4624,28 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
4550
4624
  };
4551
4625
  private runSettingsApply;
4552
4626
  restartInstances(): Promise<void>;
4627
+ /** The running package's version (package.json next to this code). */
4628
+ private runningAgendVersion;
4629
+ /**
4630
+ * What the install's own channel offers: the target version and whether it came from that channel's dist-tag. Throws
4631
+ * when npm cannot be asked (the callers decide what a failed look means).
4632
+ */
4633
+ private lookUpUpdateTarget;
4634
+ /** M-2738: record a look's answer for the web — the same offer the notice below would make. */
4635
+ private recordUpdateCheck;
4553
4636
  private checkForUpdates;
4637
+ /** The web's update routes (web-api.ts handleWebUpdate) read and start through this. */
4638
+ get webUpdate(): WebUpdateHost;
4639
+ /** "Check for updates": look now, no chat notice. One a minute; a second ask while one runs waits for it. */
4640
+ private checkUpdateNow;
4641
+ /**
4642
+ * M-2738: Update from the web — a fleet admin's session, after its own confirmation (the leader's D1). Only what the
4643
+ * last check offers as installable; the update itself is chat `/update`'s (launchInstalledUpdate). Its progress marker
4644
+ * targets no chat message (WEB_UPDATE_ADAPTER); the page reads the stages the updater writes into it.
4645
+ */
4646
+ private startWebUpdate;
4647
+ /** M-2738: a web start's answer for its key, the same on a retry (at most 32 kept). */
4648
+ private startWebUpdateOnce;
4554
4649
  /**
4555
4650
  * Semver "a > b". Compares major.minor.patch numerically; a version without a
4556
4651
  * prerelease outranks the same core with one (2.0.8 > 2.0.8-beta.16); two