@songsid/agend 2.3.2-beta.4 → 2.3.2-beta.6
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/THIRD_PARTY_NOTICES.md +40 -0
- package/dist/antigravity-usage-scan.d.ts +58 -0
- package/dist/antigravity-usage-scan.js +257 -0
- package/dist/antigravity-usage-scan.js.map +1 -0
- package/dist/antigravity-usage-worker.d.ts +1 -0
- package/dist/antigravity-usage-worker.js +10 -0
- package/dist/antigravity-usage-worker.js.map +1 -0
- package/dist/backend/kiro-identity.d.ts +45 -0
- package/dist/backend/kiro-identity.js +74 -0
- package/dist/backend/kiro-identity.js.map +1 -1
- package/dist/backend/kiro.d.ts +15 -0
- package/dist/backend/kiro.js +42 -5
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/types.d.ts +6 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-signin-guide.d.ts +1 -0
- package/dist/backend-signin-guide.js +9 -0
- package/dist/backend-signin-guide.js.map +1 -0
- package/dist/backend-signin-pending.d.ts +10 -0
- package/dist/backend-signin-pending.js +44 -0
- package/dist/backend-signin-pending.js.map +1 -0
- package/dist/browser-backend-signins.d.ts +56 -0
- package/dist/browser-backend-signins.js +189 -0
- package/dist/browser-backend-signins.js.map +1 -0
- package/dist/cache-ledger.d.ts +38 -2
- package/dist/cache-ledger.js +133 -8
- package/dist/cache-ledger.js.map +1 -1
- package/dist/cache-prices.d.ts +2 -1
- package/dist/cache-prices.js +5 -2
- package/dist/cache-prices.js.map +1 -1
- package/dist/cache-service.d.ts +68 -0
- package/dist/cache-service.js +355 -13
- package/dist/cache-service.js.map +1 -1
- package/dist/channel/adapters/discord.d.ts +11 -0
- package/dist/channel/adapters/discord.js +50 -8
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/mcp-tools.js +3 -1
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/cli.js +21 -2
- package/dist/cli.js.map +1 -1
- package/dist/config-validator.js +25 -3
- package/dist/config-validator.js.map +1 -1
- package/dist/config.d.ts +19 -0
- package/dist/config.js +25 -0
- package/dist/config.js.map +1 -1
- package/dist/cpu-quota.d.ts +23 -0
- package/dist/cpu-quota.js +86 -0
- package/dist/cpu-quota.js.map +1 -0
- package/dist/daemon.js +6 -3
- package/dist/daemon.js.map +1 -1
- package/dist/fleet-manager.d.ts +56 -5
- package/dist/fleet-manager.js +387 -144
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +5 -2
- package/dist/general-knowledge/skills/kiro-engine-migration/SKILL.md +14 -1
- package/dist/general-knowledge/skills/web-dashboard/SKILL.canvas-worker-off.md +20 -4
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +20 -4
- package/dist/instance-lifecycle.d.ts +9 -0
- package/dist/instance-lifecycle.js +27 -1
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/kiro-db-reader.d.ts +5 -0
- package/dist/kiro-db-reader.js +18 -0
- package/dist/kiro-db-reader.js.map +1 -1
- package/dist/kiro-engine-status.d.ts +2 -0
- package/dist/kiro-engine-status.js +9 -0
- package/dist/kiro-engine-status.js.map +1 -1
- package/dist/kiro-migrate.d.ts +49 -0
- package/dist/kiro-migrate.js +105 -0
- package/dist/kiro-migrate.js.map +1 -0
- package/dist/kiro-transcript-lane.d.ts +2 -0
- package/dist/kiro-transcript-lane.js.map +1 -1
- package/dist/kiro-transcript-worker.js +1 -0
- package/dist/kiro-transcript-worker.js.map +1 -1
- package/dist/kiro-usage-run.d.ts +7 -0
- package/dist/kiro-usage-run.js +39 -0
- package/dist/kiro-usage-run.js.map +1 -0
- package/dist/kiro-usage-scan.d.ts +49 -0
- package/dist/kiro-usage-scan.js +223 -0
- package/dist/kiro-usage-scan.js.map +1 -0
- package/dist/kiro-usage-worker.d.ts +1 -0
- package/dist/kiro-usage-worker.js +10 -0
- package/dist/kiro-usage-worker.js.map +1 -0
- package/dist/kiro-usage.d.ts +58 -0
- package/dist/kiro-usage.js +310 -0
- package/dist/kiro-usage.js.map +1 -0
- package/dist/locale.js +78 -2
- package/dist/locale.js.map +1 -1
- package/dist/log-service.js +1 -1
- package/dist/log-service.js.map +1 -1
- package/dist/login-url.d.ts +4 -0
- package/dist/login-url.js +22 -0
- package/dist/login-url.js.map +1 -0
- package/dist/needs-you-hub.d.ts +2 -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 -2
- package/dist/needs-you.js +6 -0
- package/dist/needs-you.js.map +1 -1
- package/dist/notice-delivery.d.ts +7 -6
- package/dist/notice-delivery.js +16 -18
- package/dist/notice-delivery.js.map +1 -1
- package/dist/office-share-page.d.ts +13 -0
- package/dist/office-share-page.js +82 -0
- package/dist/office-share-page.js.map +1 -0
- package/dist/office-share-service.d.ts +89 -0
- package/dist/office-share-service.js +172 -0
- package/dist/office-share-service.js.map +1 -0
- package/dist/office-share.d.ts +228 -0
- package/dist/office-share.js +489 -0
- package/dist/office-share.js.map +1 -0
- package/dist/opencode-usage-scan.d.ts +28 -0
- package/dist/opencode-usage-scan.js +92 -0
- package/dist/opencode-usage-scan.js.map +1 -0
- package/dist/opencode-usage-worker.d.ts +1 -0
- package/dist/opencode-usage-worker.js +10 -0
- package/dist/opencode-usage-worker.js.map +1 -0
- package/dist/outbound-handlers.js +22 -2
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +4 -0
- package/dist/outbound-schemas.js +4 -0
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/public-web-gateway.js +6 -0
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/quickstart-api.js +13 -2
- package/dist/quickstart-api.js.map +1 -1
- package/dist/quickstart.js +2 -3
- package/dist/quickstart.js.map +1 -1
- package/dist/settings-api.js +1 -1
- package/dist/settings-api.js.map +1 -1
- package/dist/setup-form.d.ts +1 -1
- package/dist/setup-form.js +7 -1
- package/dist/setup-form.js.map +1 -1
- package/dist/setup-host.d.ts +9 -0
- package/dist/setup-host.js +125 -7
- package/dist/setup-host.js.map +1 -1
- package/dist/setup-signin-assets.d.ts +2 -0
- package/dist/setup-signin-assets.js +6 -0
- package/dist/setup-signin-assets.js.map +1 -0
- package/dist/setup-wizard.js +2 -2
- package/dist/setup-wizard.js.map +1 -1
- package/dist/structured-signin-transport.d.ts +8 -0
- package/dist/structured-signin-transport.js +79 -0
- package/dist/structured-signin-transport.js.map +1 -0
- package/dist/structured-signin.d.ts +131 -0
- package/dist/structured-signin.js +388 -0
- package/dist/structured-signin.js.map +1 -0
- package/dist/tool-permissions.js +2 -0
- package/dist/tool-permissions.js.map +1 -1
- package/dist/topic-commands.js +4 -1
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-sources.d.ts +26 -2
- package/dist/transcript-sources.js +87 -40
- package/dist/transcript-sources.js.map +1 -1
- package/dist/types.d.ts +15 -5
- package/dist/ui/backend-signin.js +63 -10
- package/dist/ui/fleet-office-pack.js +7 -2
- package/dist/ui/fleet-office-skin.js +5 -4
- package/dist/ui/fleet-office-zones.js +17 -6
- package/dist/ui/fleet-office.js +20 -10
- package/dist/ui/fleet-usage.js +19 -15
- package/dist/ui/office-share-dialog.js +145 -0
- package/dist/ui/office-share-page.js +116 -0
- package/dist/ui/panel-log.js +2 -2
- package/dist/ui/panel-needs.js +4 -4
- package/dist/ui/panel-settings.js +12 -8
- package/dist/ui/settings-registry.js +2 -2
- package/dist/ui/settings-strings.js +6 -6
- package/dist/ui/shared/app-i18n.js +2 -2
- package/dist/ui/shared/app.css +29 -0
- package/dist/ui/structured-signin.js +115 -0
- package/dist/usage-report.d.ts +20 -0
- package/dist/usage-report.js +54 -17
- package/dist/usage-report.js.map +1 -1
- package/dist/usage-rollup.d.ts +9 -1
- package/dist/usage-rollup.js +20 -4
- package/dist/usage-rollup.js.map +1 -1
- package/dist/web-api.d.ts +15 -0
- package/dist/web-api.js +190 -0
- package/dist/web-api.js.map +1 -1
- package/dist/web-auth.js +1 -1
- package/dist/web-auth.js.map +1 -1
- package/dist/web-backend-login.d.ts +1 -7
- package/dist/web-backend-login.js +2 -24
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-office-skins.d.ts +2 -1
- package/dist/web-office-skins.js +2 -1
- package/dist/web-office-skins.js.map +1 -1
- package/dist/web-settings-patch.js +1 -1
- package/dist/web-settings-patch.js.map +1 -1
- package/dist/working-recovery.d.ts +2 -2
- package/dist/working-recovery.js +43 -8
- package/dist/working-recovery.js.map +1 -1
- package/dist/working-state-journal.d.ts +2 -0
- package/dist/working-state-journal.js +16 -1
- package/dist/working-state-journal.js.map +1 -1
- package/package.json +2 -1
- package/templates/windows-shortcuts.ps1 +7 -5
package/dist/fleet-manager.d.ts
CHANGED
|
@@ -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";
|
|
@@ -85,6 +87,7 @@ import { type CrossInstanceRecord, type XmsgVisibility } from "./search/search-d
|
|
|
85
87
|
import { WebSettingsTools } from "./web-settings-tools.js";
|
|
86
88
|
import { type Delegation, type TrafficItem } from "./fleet-traffic.js";
|
|
87
89
|
import { WebBackendLogins, type SignInTarget } from "./web-backend-login.js";
|
|
90
|
+
import { BrowserBackendSignIns } from "./browser-backend-signins.js";
|
|
88
91
|
import { type RawConfigPatch } from "./settings-api.js";
|
|
89
92
|
import { type AgentEndpointContext } from "./agent-endpoint.js";
|
|
90
93
|
import { ClassicChannelManager } from "./classic-channel-manager.js";
|
|
@@ -246,6 +249,7 @@ export declare const CLI_ENV_PROBE_DEADLINE_MS = 16000;
|
|
|
246
249
|
* started ten CLIs together, saturated the CPU, and healthy starts then missed
|
|
247
250
|
* their startup budget — which used to cost the user their conversation. Cores
|
|
248
251
|
* bound how many can actually make progress; memory bounds how many fit.
|
|
252
|
+
* `cores` is what this process may use (cpuset and cgroup quota, #749), not the host's count.
|
|
249
253
|
*/
|
|
250
254
|
export declare function deriveSpawnConcurrency(freeMemMB: number, cores: number): number;
|
|
251
255
|
/** #2499 review: one line of Settings → Guests' Recent changes (guestOverview), from the event log. */
|
|
@@ -285,6 +289,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
285
289
|
private workingRecovery;
|
|
286
290
|
private workingRecoveryTimer;
|
|
287
291
|
private workingRecoveryCause;
|
|
292
|
+
private workingRecoveryGroup;
|
|
288
293
|
private recoveryEnabled;
|
|
289
294
|
private initializeWorkingRecovery;
|
|
290
295
|
private recoveryDeliveryEligible;
|
|
@@ -454,6 +459,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
454
459
|
private pendingBackendSelects;
|
|
455
460
|
/** nonce → pending button prompt (hang restart, interactive assist, clean-exit restart). */
|
|
456
461
|
private pendingNonceButtons;
|
|
462
|
+
/** #2598 B2: the kiro moves waiting on a fleet admin's Confirm in General, by prompt nonce. */
|
|
463
|
+
private pendingKiroMigrations;
|
|
457
464
|
/** #1386 "Needs you": the list, its live chat messages and Acknowledge. Started with the fleet (finishStartup). */
|
|
458
465
|
private needsYou;
|
|
459
466
|
/** When the fleet first saw an instance crashed, for its "Needs you" age; cleared when it is not. */
|
|
@@ -659,6 +666,19 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
659
666
|
readonly officeSkinWrites: OfficeWriteLimiter;
|
|
660
667
|
/** How often a person may save the offices (PUT /ui/offices); memory only, as the appearance limiter. */
|
|
661
668
|
readonly officeWrites: OfficeWriteLimiter;
|
|
669
|
+
private officeSharesInstance?;
|
|
670
|
+
/**
|
|
671
|
+
* #2636: Office share links — the live Office view for people outside the fleet, read-only, on a quick tunnel of
|
|
672
|
+
* their own (a manager and lease of its own: never the fleet's one tunnel lane nor the public link's preview tunnel).
|
|
673
|
+
*/
|
|
674
|
+
get officeShares(): OfficeShareService;
|
|
675
|
+
/**
|
|
676
|
+
* #2636: a share made or ended — said in General, as a sign-in is (who, which office, for how long; never its URL).
|
|
677
|
+
* `share` null with `count`: "Revoke all".
|
|
678
|
+
*/
|
|
679
|
+
officeShareNotice(event: "created" | "revoked", who: string, share: OfficeShare | null, count: number): void;
|
|
680
|
+
/** A share's owner: a person (`person:<adapter>:<user>`) still a fleet admin there; the host's own admin session stays. */
|
|
681
|
+
private officeShareOwnerCurrent;
|
|
662
682
|
private officeActsInstance?;
|
|
663
683
|
/** #2578: the agents' acts in the Office view (office_view / office_set), memory only; every change is `office_acts`. */
|
|
664
684
|
get officeActs(): OfficeActs;
|
|
@@ -764,6 +784,21 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
764
784
|
/** Exact configured effect owners; this does not depend on prompt location. */
|
|
765
785
|
private settingsChatAuthority;
|
|
766
786
|
private promptSettingsChange;
|
|
787
|
+
private kiroMigrateDeps;
|
|
788
|
+
/**
|
|
789
|
+
* #2598 B2, migrate_kiro_instance: judge the move, then ask in General for a fleet admin's Confirm. Nothing changes
|
|
790
|
+
* here; the move runs on the Confirm (handleKiroMigrateCallback), judged again then.
|
|
791
|
+
*/
|
|
792
|
+
requestKiroMigration(name: string, startFresh: boolean): Promise<{
|
|
793
|
+
ok: true;
|
|
794
|
+
text: string;
|
|
795
|
+
classic_conversation: string | null;
|
|
796
|
+
} | {
|
|
797
|
+
ok: false;
|
|
798
|
+
error: string;
|
|
799
|
+
}>;
|
|
800
|
+
/** A fleet admin's Confirm or Cancel on a kiro move. Any fleet admin (the default nonce authorization), in General. */
|
|
801
|
+
private handleKiroMigrateCallback;
|
|
767
802
|
private handleSettingsChangeCallback;
|
|
768
803
|
startSettingsConfirmationControl(): Promise<void>;
|
|
769
804
|
private get webToken();
|
|
@@ -1642,10 +1677,6 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1642
1677
|
remainingSeconds?: number;
|
|
1643
1678
|
noExpiry?: true;
|
|
1644
1679
|
};
|
|
1645
|
-
/** Notices use the first explicit admin of the owning connection; never a guest/paired account. */
|
|
1646
|
-
private noticeAdmin;
|
|
1647
|
-
/** Best-effort private delivery. The caller retains its existing topic fallback and authority fences. */
|
|
1648
|
-
private tryNoticeDm;
|
|
1649
1680
|
confirmPublicWebLogin(info: {
|
|
1650
1681
|
label: string;
|
|
1651
1682
|
handle: string;
|
|
@@ -1972,6 +2003,10 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
1972
2003
|
private sweepOrphanedWebUploads;
|
|
1973
2004
|
/** Start the shared channel adapter(s) for topic mode */
|
|
1974
2005
|
private startSharedAdapter;
|
|
2006
|
+
/** How long fleet startup waits for its chat connections before it continues without the slow ones (#2642). */
|
|
2007
|
+
static ADAPTER_STARTUP_WAIT_MS: number;
|
|
2008
|
+
/** Track a connection's startup outcome; a failure gets the background retry. */
|
|
2009
|
+
private recordAdapterStartup;
|
|
1975
2010
|
/** Keep trying while the fleet runs, with a five-minute cap even after a long outage. */
|
|
1976
2011
|
private scheduleAdapterRetry;
|
|
1977
2012
|
/** One login per connection, shared by the background timer and the operator's Retry now. */
|
|
@@ -2410,6 +2445,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2410
2445
|
* non-identity instance leaves are canonicalized to inheritance afterward.
|
|
2411
2446
|
*/
|
|
2412
2447
|
saveFleetConfig(explicitPatches?: RawConfigPatch[]): void;
|
|
2448
|
+
/** A permission tightening is effective when its save returns, independently of the later apply job or IPC. */
|
|
2449
|
+
private refreshSavedDashboardPermissions;
|
|
2413
2450
|
/** Why the config written to `candidate` must not replace fleet.yaml, or null: it does not load, or it adds errors. */
|
|
2414
2451
|
private savedFleetConfigProblem;
|
|
2415
2452
|
/**
|
|
@@ -2890,6 +2927,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2890
2927
|
* without one); codex "unrecorded" (its rollouts don't say which login wrote them).
|
|
2891
2928
|
*/
|
|
2892
2929
|
private usageProfileOf;
|
|
2930
|
+
/** #2122 §10: a Kiro instance with a credential profile writes its classic store in that profile's home. */
|
|
2931
|
+
private kiroDbPathOf;
|
|
2893
2932
|
/** #2122: the fleet's day boundary zone — defaults.scheduler.default_timezone, else this host's. */
|
|
2894
2933
|
usageZone(): string;
|
|
2895
2934
|
/**
|
|
@@ -3009,7 +3048,7 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3009
3048
|
/** Persistently enable advanced tips through the admin-only slash command. */
|
|
3010
3049
|
unlockAdvancedTips(userId: string): boolean;
|
|
3011
3050
|
/** Post one fresh nonce-armed tip in a known General channel. */
|
|
3012
|
-
promptTip(generalName: string, adapter: ChannelAdapter, chatId: string, threadId?: string
|
|
3051
|
+
promptTip(generalName: string, adapter: ChannelAdapter, chatId: string, threadId?: string): Promise<"posted" | "empty" | "unavailable">;
|
|
3013
3052
|
private promptAdvancedTipUnlock;
|
|
3014
3053
|
private sendTipToGeneral;
|
|
3015
3054
|
private handleTipDismiss;
|
|
@@ -3370,6 +3409,13 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3370
3409
|
*/
|
|
3371
3410
|
private readonly loginWindow;
|
|
3372
3411
|
private get webLogin();
|
|
3412
|
+
private browserBackendSignInsInstance;
|
|
3413
|
+
private structuredLoginCleanupFailed;
|
|
3414
|
+
private readonly pendingBackendSince;
|
|
3415
|
+
private browserSignInOwnerCurrent;
|
|
3416
|
+
/** #2599: default-account controls share the exact writer reservation with chat/profile/install. */
|
|
3417
|
+
get browserBackendSignIns(): BrowserBackendSignIns;
|
|
3418
|
+
private needsYouBackendSignIns;
|
|
3373
3419
|
/** #2233: sign-ins started from the web dashboard (local admin sessions), on the same controller as chat's. */
|
|
3374
3420
|
private webBackendLoginsInstance;
|
|
3375
3421
|
get webBackendLogins(): WebBackendLogins;
|
|
@@ -3663,6 +3709,11 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
3663
3709
|
private cliEnvPath;
|
|
3664
3710
|
/** Read the cached CLI env for a backend (a credential profile's own, when given), or null if missing/stale/unparseable. */
|
|
3665
3711
|
private readCliEnv;
|
|
3712
|
+
/**
|
|
3713
|
+
* #2122 §10: the version the CLI probe last recorded for a backend — its cache file read whatever its age (the usage
|
|
3714
|
+
* reader's version gate needs the last known version, not a fresh one); null when none was recorded. Never a probe.
|
|
3715
|
+
*/
|
|
3716
|
+
private lastRecordedCliVersion;
|
|
3666
3717
|
/** Return cached CLI versions immediately. Refresh is started after /sysinfo is sent. */
|
|
3667
3718
|
getBackendCliVersionSnapshot(): BackendCliVersionSnapshot;
|
|
3668
3719
|
/** Called only after the user-visible sysinfo send/respond has settled. */
|