@songsid/agend 2.4.0-beta.32 → 2.4.0-beta.35
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/build-provenance.json +1 -1
- package/dist/delivery-outbox.d.ts +12 -0
- package/dist/delivery-outbox.js +26 -2
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/fleet-context.d.ts +11 -0
- package/dist/fleet-manager.d.ts +54 -2
- package/dist/fleet-manager.js +324 -49
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +60 -0
- package/dist/general-knowledge/skills/hub/SKILL.md +10 -4
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +15 -40
- package/dist/hub/client.js +16 -6
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.js +3 -2
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.js +2 -1
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/group-policy/resources.d.ts +1 -1
- package/dist/hub/http/compose.d.ts +2 -0
- package/dist/hub/http/compose.js +45 -6
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/member-reconciliation.d.ts +2 -0
- package/dist/hub/member-reconciliation.js +3 -1
- package/dist/hub/member-reconciliation.js.map +1 -1
- package/dist/hub/protocol.d.ts +8 -8
- package/dist/hub/protocol.js +7 -2
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/receipt-reason.d.ts +6 -0
- package/dist/hub/receipt-reason.js +12 -0
- package/dist/hub/receipt-reason.js.map +1 -0
- package/dist/hub/representative.d.ts +2 -0
- package/dist/hub/representative.js +7 -3
- package/dist/hub/representative.js.map +1 -1
- package/dist/hub/rooms/direct-view.js +2 -0
- package/dist/hub/rooms/direct-view.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +2 -0
- package/dist/hub/rooms.d.ts +12 -0
- package/dist/hub/rooms.js +14 -3
- package/dist/hub/rooms.js.map +1 -1
- package/dist/hub/server.js +4 -1
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/settings-member-address-decision.js +1 -1
- package/dist/hub/settings-member-address-decision.js.map +1 -1
- package/dist/hub/settings-web-address-decision.js +2 -2
- package/dist/hub/settings-web-address-decision.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +2 -0
- package/dist/instance-lifecycle.js +4 -0
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/locale.js +36 -6
- package/dist/locale.js.map +1 -1
- package/dist/request-context-control-api.d.ts +18 -0
- package/dist/request-context-control-api.js +9 -1
- package/dist/request-context-control-api.js.map +1 -1
- package/dist/settings-effect.js +5 -2
- package/dist/settings-effect.js.map +1 -1
- package/dist/tips.js +1 -1
- package/dist/tips.js.map +1 -1
- package/dist/topic-commands.js +10 -1
- package/dist/topic-commands.js.map +1 -1
- package/dist/turn-reply-guard.js +4 -1
- package/dist/turn-reply-guard.js.map +1 -1
- package/dist/ui/hub-assistant-admin.js +10 -3
- package/dist/ui/hub-assistant-usage-strings.js +8 -0
- package/dist/ui/hub-owner-strings.js +2 -2
- package/dist/ui/hub-room-composer.js +9 -2
- package/dist/ui/hub-room-strings.js +2 -2
- package/dist/ui/hub-room-thread.js +37 -9
- package/dist/ui/panel-chat.js +3 -3
- package/dist/ui/panel-hub.js +1 -1
- package/dist/ui/request-context-control.js +72 -12
- package/dist/ui/shared/app-update.js +35 -5
- package/dist/ui/shared/app.css +21 -0
- package/dist/ui/shared/chat-msg-actions.js +1 -1
- package/dist/ui/shared/chat-strings.js +2 -2
- package/dist/ui/shared/chat-thread.js +1 -1
- package/dist/ui/shared/hub-owner.css +12 -0
- package/dist/ui/shared/update-card-ui.js +21 -7
- package/dist/update-card.d.ts +17 -2
- package/dist/update-card.js +58 -9
- package/dist/update-card.js.map +1 -1
- package/package.json +1 -1
package/dist/fleet-manager.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ import { BackendAvailabilityStore, type AvailabilityProbes, type BackendAvailabi
|
|
|
49
49
|
import { AdapterWorld } from "./adapter-world.js";
|
|
50
50
|
import { CostGuard } from "./cost-guard.js";
|
|
51
51
|
import { type InstanceClient } from "./channel/ipc-bridge.js";
|
|
52
|
-
import type { AdapterHealthSnapshot, ChannelAdapter, InboundMessage, InboundReaction } from "./channel/types.js";
|
|
52
|
+
import type { AdapterHealthSnapshot, ChannelAdapter, InboundMessage, InboundReaction, Choice } from "./channel/types.js";
|
|
53
53
|
import { type BackendCliVersionSnapshot } from "./backend/types.js";
|
|
54
54
|
import { type Logger } from "./logger.js";
|
|
55
55
|
import { Scheduler } from "./scheduler/index.js";
|
|
@@ -299,6 +299,14 @@ export interface DeliveryOptions {
|
|
|
299
299
|
* that was 06:00 the next morning.
|
|
300
300
|
*/
|
|
301
301
|
export declare function updateTonightAt(now: number, tz: string): number;
|
|
302
|
+
/** M-3967: where a typed `/update` posts the card (the chat it was typed in); a Discord slash answers through its own reply. */
|
|
303
|
+
interface UpdateChatCardHere {
|
|
304
|
+
adapter: ChannelAdapter;
|
|
305
|
+
adapterId: string;
|
|
306
|
+
chatId: string;
|
|
307
|
+
threadId?: string;
|
|
308
|
+
respondButtons?: (text: string, choices: Choice[]) => Promise<string | undefined>;
|
|
309
|
+
}
|
|
302
310
|
export declare const LOGIN_CALLBACK_PREFIX = "login:";
|
|
303
311
|
/**
|
|
304
312
|
* Upper bound on a live probe driven by `/model`.
|
|
@@ -807,6 +815,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
807
815
|
private updateChatCardAnswered;
|
|
808
816
|
/** Prism #4584 (1): a press refused while its card was still being posted (the post records it, so it isn't relabelled expired). */
|
|
809
817
|
private updateChatCardRefused;
|
|
818
|
+
/** M-3967: 立即更新's question is open (its nonce): the card is not posted again until it is answered. */
|
|
819
|
+
private updateChatCardConfirming;
|
|
810
820
|
private updateChatCardTimer;
|
|
811
821
|
private readUpdateChatCard;
|
|
812
822
|
private writeUpdateChatCard;
|
|
@@ -818,6 +828,10 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
818
828
|
* result yet: all three (the launch decides, as on the web).
|
|
819
829
|
*/
|
|
820
830
|
private updateChatCardActions;
|
|
831
|
+
/** Two names, then how many more (the web's namesShown). */
|
|
832
|
+
private updateChatCardNames;
|
|
833
|
+
/** M-3967: where a posted card is, as a place to post its next one; null when its adapter is gone. */
|
|
834
|
+
private updateChatCardPlaceOf;
|
|
821
835
|
/** General's chat place for the card, or null (no General, no chat: a web-only fleet's banner says it). */
|
|
822
836
|
private updateChatCardPlace;
|
|
823
837
|
/**
|
|
@@ -825,7 +839,13 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
825
839
|
* newly qualifies (a new version, or back after Not now) is posted with its buttons; every later state edits that same
|
|
826
840
|
* message (its buttons retired: the adapters cannot swap them). Never throws; one at a time.
|
|
827
841
|
*/
|
|
828
|
-
syncUpdateChatCard(): Promise<
|
|
842
|
+
syncUpdateChatCard(here?: UpdateChatCardHere): Promise<boolean>;
|
|
843
|
+
/**
|
|
844
|
+
* M-3967: a fleet admin's bare `/update` in a chat: a fresh check, then the one update card with its buttons, posted
|
|
845
|
+
* where it was typed (General's earlier card says so). Null when the card was posted; otherwise the words to reply
|
|
846
|
+
* with (a state with no buttons — updating, done, pinned, nothing to offer — or a card that could not be posted).
|
|
847
|
+
*/
|
|
848
|
+
showUpdateCard(here: UpdateChatCardHere): Promise<string | null>;
|
|
829
849
|
/** Edit the posted card: retire its buttons if they are still live (with `text`), else edit its text without buttons. */
|
|
830
850
|
private editUpdateChatCard;
|
|
831
851
|
/**
|
|
@@ -833,6 +853,13 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
833
853
|
* same gate as the Hub's Update now). The answer is the web's (the one card); the message is edited to its new state.
|
|
834
854
|
*/
|
|
835
855
|
private handleUpdateCardCallback;
|
|
856
|
+
/**
|
|
857
|
+
* M-3967: 立即更新 on the chat card: the card's buttons go (its words stay, with who asked), and one question is posted
|
|
858
|
+
* under it, naming the agents at work (the web's Update now question). Its answer is the card's Update now.
|
|
859
|
+
*/
|
|
860
|
+
private askUpdateNow;
|
|
861
|
+
/** M-3967: the answer to 立即更新's question: the card's Update now (the web's), or the card back as it was. */
|
|
862
|
+
private handleUpdateNowCallback;
|
|
836
863
|
private hubUpdates;
|
|
837
864
|
private hubUpdateOwned;
|
|
838
865
|
private hubUpdateBootProgress;
|
|
@@ -843,6 +870,15 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
843
870
|
hubFleetUpdates(): import("./hub/member/updates.js").HubMemberUpdates | null;
|
|
844
871
|
/** `ownClaim` is this caller's launch, so that launch does not look busy to itself. The Hub queue passes its claim; the local card passes its own. */
|
|
845
872
|
private hubUpdateIdle;
|
|
873
|
+
/**
|
|
874
|
+
* M-3960: a paused instance that is doing no work, for both idle checks (the Hub-requested update and Update when idle).
|
|
875
|
+
* A pause persisted across a restart starts no daemon at all ("Persisted paused instance — skipping startup"): before,
|
|
876
|
+
* that read as an unknown process, counted as busy and held every idle update until it expired. A live daemon is
|
|
877
|
+
* asleep only once its process has stopped. A wake on its way is checked first, by wakeOnItsWay().
|
|
878
|
+
*/
|
|
879
|
+
private pausedAndAsleep;
|
|
880
|
+
/** M-3960: a wake of `name` is under way: its lifecycle flight, or the wake coordinator's admission. Busy for both idle checks. */
|
|
881
|
+
private wakeOnItsWay;
|
|
846
882
|
private hubUpdateCanInstall;
|
|
847
883
|
private launchHubUpdate;
|
|
848
884
|
/**
|
|
@@ -2148,6 +2184,12 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2148
2184
|
/** Existing Settings administrator scope. This only identifies a principal; it never bypasses per-change confirmation. */
|
|
2149
2185
|
requestContextControl?: RequestContextControlHost;
|
|
2150
2186
|
private requestContextShadow;
|
|
2187
|
+
/**
|
|
2188
|
+
* M-3963: earlier unscoped uncertain deliveries grouped by source → target, newest first. Each group's id binds every
|
|
2189
|
+
* member's exact row image, so the resolve only acknowledges the rows the owner saw; with two or more groups, a first
|
|
2190
|
+
* "all" group binds every member. Ticket-bound ones are settled by their Retire instead.
|
|
2191
|
+
*/
|
|
2192
|
+
private requestContextUncertainGroups;
|
|
2151
2193
|
private requestContextBlockers;
|
|
2152
2194
|
protected requestContextActivationLease(): import("./request-context-update-guard.js").RequestContextActivationLease | null;
|
|
2153
2195
|
private ensureRequestContextController;
|
|
@@ -7102,6 +7144,16 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
7102
7144
|
/** The card, for a test or a chat reply. Null when nothing is offered, including a pin. */
|
|
7103
7145
|
updateOfferView(): UpdateCardView | null;
|
|
7104
7146
|
describeUpdateOffer(): string;
|
|
7147
|
+
/**
|
|
7148
|
+
* M-3964: bare `/update` answers from a fresh check, not one up to a day old (a fleet that last checked before a new
|
|
7149
|
+
* beta offered the older one). One a minute (checkUpdateNow); a slow npm is cut off at 10 s and the stored check answers.
|
|
7150
|
+
*/
|
|
7151
|
+
describeFreshUpdateOffer(): Promise<string>;
|
|
7152
|
+
/**
|
|
7153
|
+
* M-3964: look again before an unpinned run too, so the card names what `agend update` is about to install (the newest
|
|
7154
|
+
* on the line), not an offer from hours ago. At most 10 s; then the stored check stands.
|
|
7155
|
+
*/
|
|
7156
|
+
refreshUpdateOffer(): Promise<void>;
|
|
7105
7157
|
refuseImmediateUpdate(): string | null;
|
|
7106
7158
|
beginUpdateRun(): void;
|
|
7107
7159
|
/** M-2738: record a look's answer for the web — the same offer the card keeps. */
|