@songsid/agend 2.4.0-beta.11 → 2.4.0-beta.12
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/accounts-view.d.ts +29 -0
- package/dist/accounts-view.js +2 -14
- package/dist/accounts-view.js.map +1 -1
- package/dist/agent-endpoint.d.ts +1 -0
- package/dist/agent-endpoint.js +4 -2
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/auth-api.d.ts +2 -0
- package/dist/auth-api.js +28 -2
- package/dist/auth-api.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/mcp-server.js +1 -1
- package/dist/channel/mcp-server.js.map +1 -1
- package/dist/channel/mcp-tools.js +3 -1
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/claude-install-kind.d.ts +19 -0
- package/dist/claude-install-kind.js +54 -0
- package/dist/claude-install-kind.js.map +1 -0
- package/dist/daemon.d.ts +5 -0
- package/dist/daemon.js +20 -2
- package/dist/daemon.js.map +1 -1
- package/dist/fleet-manager.d.ts +105 -1
- package/dist/fleet-manager.js +366 -24
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/hub/SKILL.md +25 -0
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +6 -0
- package/dist/hub/agent-intro-model.d.ts +38 -0
- package/dist/hub/agent-intro-model.js +14 -0
- package/dist/hub/agent-intro-model.js.map +1 -0
- package/dist/hub/agent-intro-tool.d.ts +35 -0
- package/dist/hub/agent-intro-tool.js +83 -0
- package/dist/hub/agent-intro-tool.js.map +1 -0
- package/dist/hub/client.d.ts +1 -0
- package/dist/hub/client.js +26 -0
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +13 -5
- package/dist/hub/compose/member.js +28 -5
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +1 -0
- package/dist/hub/compose/server.js +5 -1
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/http/compose.d.ts +1 -0
- package/dist/hub/http/compose.js +28 -5
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/schema.js +6 -0
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/member/agent-intro.d.ts +28 -0
- package/dist/hub/member/agent-intro.js +66 -0
- package/dist/hub/member/agent-intro.js.map +1 -0
- package/dist/hub/member/room-ask.d.ts +10 -0
- package/dist/hub/member/room-ask.js +70 -7
- package/dist/hub/member/room-ask.js.map +1 -1
- package/dist/hub/member/room-notification.d.ts +1 -1
- package/dist/hub/member/room-post.d.ts +6 -3
- package/dist/hub/member/room-post.js +9 -3
- package/dist/hub/member/room-post.js.map +1 -1
- package/dist/hub/protocol.d.ts +172 -4
- package/dist/hub/protocol.js +10 -5
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/room-answer-status-model.d.ts +3 -0
- package/dist/hub/room-answer-status-model.js +4 -0
- package/dist/hub/room-answer-status-model.js.map +1 -0
- package/dist/hub/room-brief-model.d.ts +30 -0
- package/dist/hub/room-brief-model.js +37 -0
- package/dist/hub/room-brief-model.js.map +1 -0
- package/dist/hub/room-context-model.d.ts +2 -0
- package/dist/hub/room-context-model.js +2 -2
- package/dist/hub/room-context-model.js.map +1 -1
- package/dist/hub/room-members-model.d.ts +63 -0
- package/dist/hub/room-members-model.js +7 -0
- package/dist/hub/room-members-model.js.map +1 -0
- package/dist/hub/rooms/agents.js +50 -10
- package/dist/hub/rooms/agents.js.map +1 -1
- package/dist/hub/rooms/brief.d.ts +18 -0
- package/dist/hub/rooms/brief.js +39 -0
- package/dist/hub/rooms/brief.js.map +1 -0
- package/dist/hub/rooms/members-page.d.ts +33 -0
- package/dist/hub/rooms/members-page.js +37 -0
- package/dist/hub/rooms/members-page.js.map +1 -0
- package/dist/hub/rooms/purpose.d.ts +7 -0
- package/dist/hub/rooms/purpose.js +14 -0
- package/dist/hub/rooms/purpose.js.map +1 -0
- package/dist/hub/rooms/service.d.ts +11 -0
- package/dist/hub/rooms/service.js +56 -12
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +6 -2
- package/dist/hub/runtime.d.ts +1 -1
- package/dist/hub/server.js +27 -1
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/types.d.ts +9 -5
- package/dist/hub-room-reply-warning.d.ts +2 -0
- package/dist/hub-room-reply-warning.js +16 -0
- package/dist/hub-room-reply-warning.js.map +1 -0
- package/dist/instance-lifecycle.d.ts +15 -0
- package/dist/instance-lifecycle.js +36 -1
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/locale.js +20 -0
- package/dist/locale.js.map +1 -1
- package/dist/login-controller.d.ts +26 -0
- package/dist/login-controller.js +72 -2
- package/dist/login-controller.js.map +1 -1
- package/dist/native-mcp.js +1 -1
- package/dist/native-mcp.js.map +1 -1
- package/dist/needs-you-hub.js +1 -1
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +8 -1
- package/dist/needs-you.js +5 -0
- package/dist/needs-you.js.map +1 -1
- package/dist/outbound-handlers.d.ts +2 -1
- package/dist/outbound-handlers.js +17 -4
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +10 -0
- package/dist/outbound-schemas.js +3 -1
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/public-web-gateway.js +5 -1
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/restart-progress.d.ts +6 -0
- package/dist/restart-progress.js +5 -0
- package/dist/restart-progress.js.map +1 -1
- package/dist/settings-effect.js +17 -1
- package/dist/settings-effect.js.map +1 -1
- package/dist/tool-permissions.js +3 -3
- package/dist/tool-permissions.js.map +1 -1
- package/dist/ui/chat-quote.js +3 -261
- package/dist/ui/host-install.js +77 -3
- package/dist/ui/hub-agent-intro.js +15 -6
- package/dist/ui/hub-attachments.js +81 -3
- package/dist/ui/hub-client.js +4 -0
- package/dist/ui/hub-intro-notice.js +16 -0
- package/dist/ui/hub-my-agents.js +5 -2
- package/dist/ui/hub-room-composer.js +10 -2
- package/dist/ui/hub-room-list.js +1 -1
- package/dist/ui/hub-room-members.js +2 -0
- package/dist/ui/hub-room-new.js +7 -4
- package/dist/ui/hub-room-purpose.js +19 -0
- package/dist/ui/hub-room-search.js +1 -1
- package/dist/ui/hub-room-settings.js +9 -0
- package/dist/ui/hub-room-strings.js +6 -4
- package/dist/ui/hub-room-thread.js +68 -17
- package/dist/ui/panel-chat.js +19 -5
- package/dist/ui/panel-hub.js +61 -18
- package/dist/ui/shared/app-i18n.js +2 -2
- package/dist/ui/shared/app-shell.js +6 -0
- package/dist/ui/shared/app.js +3 -1
- package/dist/ui/shared/chat-msg-actions.js +3 -1
- package/dist/ui/shared/chat-quote.js +261 -0
- package/dist/ui/shared/hub-chat.css +28 -0
- package/dist/ui/shared/hub-rooms-u2.css +5 -0
- package/dist/ui/shared/module-warm.d.ts +3 -0
- package/dist/ui/shared/module-warm.js +39 -0
- package/dist/web-api.d.ts +17 -4
- package/dist/web-api.js +83 -6
- package/dist/web-api.js.map +1 -1
- package/dist/web-asset-version.d.ts +65 -0
- package/dist/web-asset-version.js +259 -0
- package/dist/web-asset-version.js.map +1 -0
- package/dist/web-host-guard.js +3 -1
- package/dist/web-host-guard.js.map +1 -1
- package/dist/web-host-install.d.ts +30 -3
- package/dist/web-host-install.js +50 -4
- package/dist/web-host-install.js.map +1 -1
- package/dist/web-terminal.d.ts +5 -0
- package/dist/web-terminal.js +11 -0
- package/dist/web-terminal.js.map +1 -1
- package/launcher/agend-install.cjs +48 -7
- package/package.json +1 -1
package/dist/fleet-manager.d.ts
CHANGED
|
@@ -106,6 +106,7 @@ import { WebSettingsTools } from "./web-settings-tools.js";
|
|
|
106
106
|
import { type Delegation, type TrafficItem } from "./fleet-traffic.js";
|
|
107
107
|
import { type WebUpdateHost } from "./web-update.js";
|
|
108
108
|
import { WebBackendLogins, type SignInTarget } from "./web-backend-login.js";
|
|
109
|
+
import { type ClaudeInstall } from "./claude-install-kind.js";
|
|
109
110
|
import { WebHostInstalls, type HostInstallMode, type HostInstallReporter, type HostInstallStart } from "./web-host-install.js";
|
|
110
111
|
import { BrowserBackendSignIns } from "./browser-backend-signins.js";
|
|
111
112
|
import { type ClassicProfileSwitch, type RawConfigPatch } from "./settings-api.js";
|
|
@@ -145,6 +146,7 @@ import { type SignOutResult } from "./accounts-signout.js";
|
|
|
145
146
|
import { MachineAccounts, type MachineActor, type MachineAccountResult } from "./machine-accounts.js";
|
|
146
147
|
import { MachineSignIns } from "./machine-signins.js";
|
|
147
148
|
import { ProfileSignIns } from "./profile-signins.js";
|
|
149
|
+
import { type RestartProgressSummary } from "./restart-progress.js";
|
|
148
150
|
import { StormWindow } from "./storm-window.js";
|
|
149
151
|
import { SpawnGate } from "./spawn-gate.js";
|
|
150
152
|
import { BackendOutageTracker } from "./backend-outage.js";
|
|
@@ -321,6 +323,8 @@ export type GuestAuditEntry = {
|
|
|
321
323
|
name: string;
|
|
322
324
|
outcome: string;
|
|
323
325
|
};
|
|
326
|
+
/** M-3302: what a delivery log line says of a notice — its first line, places as plain text, at most 100 characters. */
|
|
327
|
+
export declare function noticePreview(text: string): string;
|
|
324
328
|
/** #1490 row 27: a restart asked for one lifecycle of an instance after it was stopped, restarted or replaced. */
|
|
325
329
|
export declare class RestartSupersededError extends Error {
|
|
326
330
|
/** `shown`: the instance as the chat list names it (shownInstanceName). */
|
|
@@ -636,6 +640,18 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
636
640
|
private hubContactWindows;
|
|
637
641
|
private contactWindows;
|
|
638
642
|
hubContactRestricted(agent: string): boolean;
|
|
643
|
+
/**
|
|
644
|
+
* M-3313 (#4145 for the Hub): what a Hub question or room notification hands the agent, with this fleet's sign-in
|
|
645
|
+
* access token hidden (exact match, as a chat's). The live one is taken back and replaced, and the sign-in's chat told.
|
|
646
|
+
* The Hub's own copy of the post is beyond the Fleet: it keeps it (encrypted) until its retention deletes it.
|
|
647
|
+
*/
|
|
648
|
+
/**
|
|
649
|
+
* M-3313 (Fable #4165 F1): a Hub frame's content as the member link receives it — before it waits for its agent (busy,
|
|
650
|
+
* paused, offline) or is dropped undelivered — so a live sign-in token in it is taken back at once, not at delivery.
|
|
651
|
+
* Nothing is changed here: the delivery hides it from the agent (screenHubText).
|
|
652
|
+
*/
|
|
653
|
+
private sawHubText;
|
|
654
|
+
private screenHubText;
|
|
639
655
|
/**
|
|
640
656
|
* A Hub question to its representative agent: ordinary cross-instance delivery (idle gate, wake, retries), from the
|
|
641
657
|
* reserved Hub sender with the Hub-issued correlation id. beforeInput runs immediately before the IPC hand-off.
|
|
@@ -696,13 +712,30 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
696
712
|
}): Promise<import("./hub-report-target.js").HubReportOutcome> | null;
|
|
697
713
|
private hubReacts;
|
|
698
714
|
/** The member side's pane-failure hook for a Hub-issued correlation id (else null). */
|
|
715
|
+
private hubRoomOwed;
|
|
716
|
+
hubRoomReplyWarning(agent: string): string | undefined;
|
|
699
717
|
private hubRoomInput;
|
|
700
718
|
private hubDeliveryFailed;
|
|
701
719
|
/** The connected member adapter; never an agent-selectable identity. */
|
|
702
720
|
private hubAgentRooms;
|
|
721
|
+
private hubAgentIntro;
|
|
722
|
+
hubSetIntro(caller: import("./hub/member/room-post.js").RoomCaller, text: string, operationId: string): Promise<{
|
|
723
|
+
ok: false;
|
|
724
|
+
code: "unavailable";
|
|
725
|
+
}> | Promise<{
|
|
726
|
+
ok: true;
|
|
727
|
+
intro: string;
|
|
728
|
+
introBy: "agent" | "default" | "owner";
|
|
729
|
+
introAt: number;
|
|
730
|
+
changed: boolean;
|
|
731
|
+
} | {
|
|
732
|
+
ok: false;
|
|
733
|
+
code: "denied" | "invalid" | "limit" | "stale" | "unavailable" | "uncertain" | "unsupported";
|
|
734
|
+
resetsAt?: number | undefined;
|
|
735
|
+
}>;
|
|
703
736
|
hubRoomToolsAvailable(): boolean;
|
|
704
737
|
hubRoomList(caller: import("./hub/member/room-post.js").RoomCaller): Promise<import("./hub/member/room-post.js").RoomListResult>;
|
|
705
|
-
hubRoomMembers(caller: import("./hub/member/room-post.js").RoomCaller, room: string): Promise<{
|
|
738
|
+
hubRoomMembers(caller: import("./hub/member/room-post.js").RoomCaller, room: string, options?: import("./hub/room-members-model.js").RoomMemberOptions): Promise<{
|
|
706
739
|
ok: false;
|
|
707
740
|
code: "unavailable";
|
|
708
741
|
}> | Promise<import("./hub/types.js").HubRoomMembersResult>;
|
|
@@ -853,6 +886,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
853
886
|
private startupRetries;
|
|
854
887
|
/** #2484: instances whose automatic startup retry is running now (between its timer and its outcome). */
|
|
855
888
|
private startupRetriesRunning;
|
|
889
|
+
/** M-3302 (#4146): instances held because their backend's CLI is not installed — started again the moment it is (watchMissingBinaries). */
|
|
890
|
+
private missingBinaryHolds;
|
|
891
|
+
private missingBinaryWatch;
|
|
892
|
+
private missingBinaryNotices;
|
|
893
|
+
static MISSING_BINARY_WATCH_MS: number;
|
|
856
894
|
/** Bumped by every explicit stop (incl. the stop half of a restart); fences the outage hand-off. */
|
|
857
895
|
private explicitStopGeneration;
|
|
858
896
|
/** instanceName → outage hand-off currently executing; a repeat joins it. */
|
|
@@ -2273,6 +2311,42 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2273
2311
|
scheduleStartupRetry(name: string, attempt: number): void;
|
|
2274
2312
|
/** Drop a pending automatic retry (an operator start/stop/restart supersedes it). */
|
|
2275
2313
|
cancelStartupRetry(name: string): void;
|
|
2314
|
+
/**
|
|
2315
|
+
* M-3302 (#4146): the start failed because the backend's CLI is not installed (BackendBinaryMissingError). That does not get better
|
|
2316
|
+
* on the 1 → 5 → 15 min backoff and should not be given up on either: the instance is held, one notice per binary names the binary
|
|
2317
|
+
* and the install command (Needs you shows it too), and the fleet looks for the binary every MISSING_BINARY_WATCH_MS and starts each
|
|
2318
|
+
* held instance the moment it is back. True: handled.
|
|
2319
|
+
*/
|
|
2320
|
+
private holdMissingBinary;
|
|
2321
|
+
/** The install command shown for a missing binary: the registry's (what /login and the dashboard run). */
|
|
2322
|
+
missingBinaryFix(backend: string): string;
|
|
2323
|
+
/**
|
|
2324
|
+
* M-3302: the summary a restart/update completion posts — `base` plus the "why" of its failed instances (missingBinarySummary). The one place both completions
|
|
2325
|
+
* (the startup batch after an update or restart, and the in-process restart) build it, so neither can drop the line (Fable on #4161).
|
|
2326
|
+
*/
|
|
2327
|
+
completionSummary(base: RestartProgressSummary): RestartProgressSummary;
|
|
2328
|
+
/** M-3302: the restart/update completion's "why" for the failed instances held on a missing binary, grouped by binary ({} when none). */
|
|
2329
|
+
missingBinarySummary(failedNames: readonly string[]): {
|
|
2330
|
+
missingBinaries?: Array<{
|
|
2331
|
+
binary: string;
|
|
2332
|
+
fix: string;
|
|
2333
|
+
names: string[];
|
|
2334
|
+
}>;
|
|
2335
|
+
};
|
|
2336
|
+
/** M-3302: a missing binary's hold, for Needs you (null: none). */
|
|
2337
|
+
missingBinaryHold(name: string): {
|
|
2338
|
+
backend: string;
|
|
2339
|
+
binary: string;
|
|
2340
|
+
since: number;
|
|
2341
|
+
fix: string;
|
|
2342
|
+
} | null;
|
|
2343
|
+
/** One notice per missing binary, however many instances it stopped (the same aggregation window as the start-retry notices). */
|
|
2344
|
+
private queueMissingBinaryNotice;
|
|
2345
|
+
private ensureMissingBinaryWatch;
|
|
2346
|
+
private stopMissingBinaryWatchIfIdle;
|
|
2347
|
+
private missingBinaryCheckRunning;
|
|
2348
|
+
/** One look per backend still missing; each held instance whose binary is back is started now (through the spawn gate, as a retry). */
|
|
2349
|
+
checkMissingBinaries(): Promise<void>;
|
|
2276
2350
|
/** #2484: the instance's own start retry is scheduled or running, and no person paused it (a stop cancels the retry). */
|
|
2277
2351
|
private inStartRetryBackoff;
|
|
2278
2352
|
/** Pending automatic retry, if any (status display / tests). */
|
|
@@ -3120,6 +3194,17 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3120
3194
|
*/
|
|
3121
3195
|
private resolveInboundTarget;
|
|
3122
3196
|
private handleInboundMessage;
|
|
3197
|
+
/** #4145 (the web chat's /ui/send too): `text` with this fleet's sign-in access token hidden; null when there is none in it. */
|
|
3198
|
+
screenLoginToken(text: string): {
|
|
3199
|
+
text: string;
|
|
3200
|
+
live: boolean;
|
|
3201
|
+
} | null;
|
|
3202
|
+
/** #4145: take a pasted access token back (a new one goes the way the first went); the line for the chat it was pasted in, or null. */
|
|
3203
|
+
loginTokenPasted(): Promise<string | null>;
|
|
3204
|
+
/** #4145: the message with the live (or a just-taken-back) sign-in access token hidden in its text and its receipt body; null when neither has one. */
|
|
3205
|
+
private screenPastedLoginToken;
|
|
3206
|
+
/** #4145: take the pasted token back (a new one goes privately) and say so once, where it was pasted. Never the token in a log line. */
|
|
3207
|
+
private takeBackPastedLoginToken;
|
|
3123
3208
|
/**
|
|
3124
3209
|
* #1752: the bot that speaks back about an inbound message — in a fleet topic the owning instance's adapter, never
|
|
3125
3210
|
* the sibling that happened to win the dedup race; elsewhere (ClassicBot rooms, no routed instance) the receiver.
|
|
@@ -4800,6 +4885,19 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
4800
4885
|
* usage is the usage panel's cached read (never forced), given at most `usageWaitMs` before the view is sent without it.
|
|
4801
4886
|
*/
|
|
4802
4887
|
accountsView(usageWaitMs?: number): Promise<AccountsView>;
|
|
4888
|
+
/**
|
|
4889
|
+
* M-3307: the install kind as the AI accounts page is told it — paths `~`-abbreviated (Fable note 2 on #4163) — and, for a native install, the npm copy still left on
|
|
4890
|
+
* this computer (note 1: found again here, not only remembered from a switch in this process), so its removal is offered after a restart too.
|
|
4891
|
+
*/
|
|
4892
|
+
private claudeInstallShown;
|
|
4893
|
+
private claudeNpmCopyCache;
|
|
4894
|
+
/**
|
|
4895
|
+
* M-3307 (Fable note 1 on #4163): an npm copy of Claude Code on this computer, looked for afresh: the one a switch in this process found, else `<npm root -g>/@anthropic-ai/claude-code`
|
|
4896
|
+
* (a fresh login shell's npm), else the system prefixes' (/usr/lib, /usr/local/lib). The answer is kept a minute (the page reads it on each view). Null: none.
|
|
4897
|
+
*/
|
|
4898
|
+
private findClaudeNpmCopy;
|
|
4899
|
+
/** M-3307 (#4146): the kind of the host's Claude Code install, from the real path of the `claude` the availability snapshot resolved (null: none, or unreadable). */
|
|
4900
|
+
claudeInstall(path?: string | null): Promise<ClaudeInstall | null>;
|
|
4803
4901
|
/**
|
|
4804
4902
|
* AGEND-113: a dashboard sign-in just finished: read the usage once more now (the panel's own forced read, so its 30-second floor and Retry-After hold), instead of showing what was read
|
|
4805
4903
|
* before it for up to five minutes, and tell the pages to read their view again when something really was fetched. Never awaited, never allowed to fail the sign-in's follow-up.
|
|
@@ -5058,6 +5156,12 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
5058
5156
|
* reported through `reporter`; nothing is posted to any chat, and no sign-in is started (the page offers Sign in itself).
|
|
5059
5157
|
*/
|
|
5060
5158
|
startWebInstall(backendArg: string, reporter: HostInstallReporter, execution?: SettingsExecution, mode?: HostInstallMode): Promise<HostInstallStart>;
|
|
5159
|
+
/** M-3307: the npm copy of Claude Code the last switch found (its package directory), the one `remove-npm` removes. */
|
|
5160
|
+
private claudeNpmCopy;
|
|
5161
|
+
/** M-3307: Claude's native install is there: `~/.local/bin/claude` leads into its versions folder. */
|
|
5162
|
+
private nativeClaudePresent;
|
|
5163
|
+
/** M-3307: where `binary` resolves in a fresh login shell now, the kind of that install, and whether `npmCopy` (a package directory) is still there. */
|
|
5164
|
+
private claudeInstallAfter;
|
|
5061
5165
|
/** A fresh login shell's answer for `binary`, else the installer's own directories (see locateBinaryOnLoginShell / locateInstalledBackend). */
|
|
5062
5166
|
private locateInstalledCli;
|
|
5063
5167
|
/** Whether this backend's CLI is on the fleet's PATH (what `/login` installs when it is not). */
|