@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.
- package/dist/agent-cli-instructions.md +3 -3
- package/dist/agent-cli.js +5 -2
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-whats-new.js +4 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/auth-api.d.ts +3 -1
- package/dist/auth-api.js +6 -2
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/claude-code.d.ts +3 -0
- package/dist/backend/claude-code.js +72 -13
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/cli-env-probe.js +6 -2
- package/dist/backend/cli-env-probe.js.map +1 -1
- package/dist/backend/codex.d.ts +5 -3
- package/dist/backend/codex.js +31 -13
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/kiro.js +1 -1
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/types.d.ts +9 -1
- package/dist/backend/types.js.map +1 -1
- package/dist/bundled-tmux-guard.d.ts +4 -0
- package/dist/bundled-tmux-guard.js +7 -0
- package/dist/bundled-tmux-guard.js.map +1 -1
- package/dist/cache-service.d.ts +6 -0
- package/dist/cache-service.js +105 -0
- package/dist/cache-service.js.map +1 -1
- package/dist/channel/access-manager.d.ts +1 -6
- package/dist/channel/access-manager.js +4 -94
- package/dist/channel/access-manager.js.map +1 -1
- package/dist/channel/adapters/discord.d.ts +0 -2
- package/dist/channel/adapters/discord.js +0 -8
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/adapters/telegram.d.ts +0 -3
- package/dist/channel/adapters/telegram.js +1 -30
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/mcp-tools.js +4 -4
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/channel/types.d.ts +0 -2
- package/dist/claude-model-minimum.d.ts +7 -0
- package/dist/claude-model-minimum.js +16 -0
- package/dist/claude-model-minimum.js.map +1 -0
- package/dist/cli.js +1 -19
- package/dist/cli.js.map +1 -1
- package/dist/config-validator.js +2 -1
- package/dist/config-validator.js.map +1 -1
- package/dist/daemon.d.ts +46 -1
- package/dist/daemon.js +193 -29
- package/dist/daemon.js.map +1 -1
- package/dist/decision-list.d.ts +2 -0
- package/dist/decision-list.js +1 -1
- package/dist/decision-list.js.map +1 -1
- package/dist/fleet-manager.d.ts +95 -0
- package/dist/fleet-manager.js +491 -113
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-process-handlers.d.ts +1 -1
- package/dist/fleet-process-handlers.js +3 -2
- package/dist/fleet-process-handlers.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +28 -18
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +9 -1
- package/dist/general-knowledge/skills/delegation-playbook/SKILL.md +4 -1
- package/dist/general-knowledge/skills/fleet-config/SKILL.md +12 -0
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +1 -1
- package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +4 -0
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +16 -11
- package/dist/general-knowledge/steering/core-rules.md +6 -4
- package/dist/instance-lifecycle.d.ts +4 -1
- package/dist/instance-lifecycle.js +20 -1
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instructions.js +29 -6
- package/dist/instructions.js.map +1 -1
- package/dist/kiro-history-scan.d.ts +26 -0
- package/dist/kiro-history-scan.js +141 -0
- package/dist/kiro-history-scan.js.map +1 -0
- package/dist/kiro-history-worker.d.ts +1 -0
- package/dist/kiro-history-worker.js +9 -0
- package/dist/kiro-history-worker.js.map +1 -0
- package/dist/kiro-history.d.ts +20 -0
- package/dist/kiro-history.js +96 -0
- package/dist/kiro-history.js.map +1 -0
- package/dist/kiro-usage-run.d.ts +2 -0
- package/dist/kiro-usage-run.js +4 -1
- package/dist/kiro-usage-run.js.map +1 -1
- package/dist/locale.js +107 -97
- package/dist/locale.js.map +1 -1
- package/dist/login-flows.d.ts +4 -0
- package/dist/login-flows.js +8 -4
- package/dist/login-flows.js.map +1 -1
- package/dist/office-levels.d.ts +4 -3
- package/dist/office-levels.js +3 -3
- package/dist/office-levels.js.map +1 -1
- package/dist/outbound-handlers.js +33 -13
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +16 -0
- package/dist/outbound-schemas.js +8 -2
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/quickstart-api.js +2 -2
- package/dist/quickstart-api.js.map +1 -1
- package/dist/reply-buttons-controller.d.ts +5 -1
- package/dist/reply-buttons-controller.js +8 -4
- package/dist/reply-buttons-controller.js.map +1 -1
- package/dist/reply-buttons.d.ts +6 -2
- package/dist/reply-buttons.js +7 -3
- package/dist/reply-buttons.js.map +1 -1
- package/dist/scheduler/db.d.ts +10 -0
- package/dist/scheduler/db.js +38 -11
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/types.d.ts +6 -1
- package/dist/setup-i18n.js +4 -4
- package/dist/setup-i18n.js.map +1 -1
- package/dist/structured-signin.js +3 -1
- package/dist/structured-signin.js.map +1 -1
- package/dist/subagent-records.d.ts +42 -0
- package/dist/subagent-records.js +159 -0
- package/dist/subagent-records.js.map +1 -0
- package/dist/subagent-service.d.ts +27 -0
- package/dist/subagent-service.js +199 -0
- package/dist/subagent-service.js.map +1 -0
- package/dist/team-membership.d.ts +7 -0
- package/dist/team-membership.js +10 -0
- package/dist/team-membership.js.map +1 -0
- package/dist/tips.js +4 -4
- package/dist/tips.js.map +1 -1
- package/dist/tmux-manager.d.ts +1 -1
- package/dist/tmux-manager.js +4 -1
- package/dist/tmux-manager.js.map +1 -1
- package/dist/tool-permissions.d.ts +2 -3
- package/dist/tool-permissions.js +3 -3
- package/dist/tool-permissions.js.map +1 -1
- package/dist/topic-commands.js +1 -1
- package/dist/topic-commands.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.js.map +1 -1
- package/dist/ui/backend-signin.js +62 -62
- package/dist/ui/chat-commands.js +7 -0
- package/dist/ui/chat-store.js +9 -4
- package/dist/ui/chat-strings.js +25 -25
- package/dist/ui/fleet-cache.js +3 -3
- package/dist/ui/fleet-canvas.js +2 -2
- package/dist/ui/fleet-office-editor.js +1 -1
- package/dist/ui/fleet-office.js +1 -1
- package/dist/ui/fleet-org.js +2 -2
- package/dist/ui/fleet-task-card.js +1 -1
- package/dist/ui/fleet-task-common.js +7 -7
- package/dist/ui/model-picker.js +64 -0
- package/dist/ui/panel-chat.js +47 -16
- package/dist/ui/panel-fleet.js +8 -8
- package/dist/ui/panel-needs.js +3 -3
- package/dist/ui/panel-settings.js +16 -6
- package/dist/ui/settings-catalog.js +19 -4
- package/dist/ui/settings-dialogs.js +28 -9
- package/dist/ui/settings-guests.js +1 -1
- package/dist/ui/settings-quota-notice.js +8 -6
- package/dist/ui/settings-registry.js +3 -1
- package/dist/ui/settings-strings.js +36 -30
- package/dist/ui/settings-update.js +69 -0
- package/dist/ui/shared/app-i18n.js +12 -6
- package/dist/ui/shared/app-shell.js +10 -3
- package/dist/ui/shared/app-update.js +215 -0
- package/dist/ui/shared/app.css +48 -2
- package/dist/ui/shared/instance-nav.js +1 -1
- package/dist/ui/shared/model-picker.css +21 -0
- package/dist/ui/shared/setup-host-text.js +8 -5
- package/dist/ui/shared/signin.js +35 -17
- package/dist/ui/shared/subagent-row.css +15 -0
- package/dist/ui/shared/view-strings.js +17 -17
- package/dist/ui/shared/web-authorize.js +4 -4
- package/dist/ui/structured-signin.js +26 -26
- package/dist/ui/subagent-row.js +64 -0
- package/dist/ui/web-terminal/terminal.js +9 -9
- package/dist/update-dispatch.d.ts +32 -4
- package/dist/update-dispatch.js +146 -16
- package/dist/update-dispatch.js.map +1 -1
- package/dist/update-launch.d.ts +1 -1
- package/dist/update-launch.js +2 -2
- package/dist/update-launch.js.map +1 -1
- package/dist/update-marker.d.ts +2 -2
- package/dist/update-marker.js +4 -3
- package/dist/update-marker.js.map +1 -1
- package/dist/usage/providers.d.ts +1 -0
- package/dist/usage/providers.js +13 -9
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage-rollup.d.ts +3 -0
- package/dist/usage-rollup.js +2 -0
- package/dist/usage-rollup.js.map +1 -1
- package/dist/view-api.d.ts +2 -8
- package/dist/view-api.js +3 -9
- package/dist/view-api.js.map +1 -1
- package/dist/web-api.d.ts +14 -0
- package/dist/web-api.js +216 -2
- package/dist/web-api.js.map +1 -1
- package/dist/web-auth.js +2 -1
- package/dist/web-auth.js.map +1 -1
- package/dist/web-commands.d.ts +8 -0
- package/dist/web-commands.js +6 -0
- package/dist/web-commands.js.map +1 -1
- package/dist/web-update.d.ts +77 -0
- package/dist/web-update.js +102 -0
- package/dist/web-update.js.map +1 -0
- package/package.json +3 -2
package/dist/decision-list.d.ts
CHANGED
package/dist/decision-list.js
CHANGED
|
@@ -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":"
|
|
1
|
+
{"version":3,"file":"decision-list.js","sourceRoot":"","sources":["../src/decision-list.ts"],"names":[],"mappings":"AAoBA,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,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,gBAAgB,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,oEAAoE,EAAE,CAAC;IAC7I,CAAC;IACD,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI;QAAE,OAAO,GAAG,CAAC;IACnC,MAAM,MAAM,GAAoB,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAC5C,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,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"}
|
package/dist/fleet-manager.d.ts
CHANGED
|
@@ -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
|