@songsid/agend 2.4.0-beta.34 → 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 +45 -2
- package/dist/fleet-manager.js +298 -47
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +60 -0
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +15 -40
- 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/ui/panel-chat.js +3 -3
- 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-strings.js +2 -2
- 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;
|
|
@@ -2157,6 +2184,12 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
2157
2184
|
/** Existing Settings administrator scope. This only identifies a principal; it never bypasses per-change confirmation. */
|
|
2158
2185
|
requestContextControl?: RequestContextControlHost;
|
|
2159
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;
|
|
2160
2193
|
private requestContextBlockers;
|
|
2161
2194
|
protected requestContextActivationLease(): import("./request-context-update-guard.js").RequestContextActivationLease | null;
|
|
2162
2195
|
private ensureRequestContextController;
|
|
@@ -7111,6 +7144,16 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
|
|
|
7111
7144
|
/** The card, for a test or a chat reply. Null when nothing is offered, including a pin. */
|
|
7112
7145
|
updateOfferView(): UpdateCardView | null;
|
|
7113
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>;
|
|
7114
7157
|
refuseImmediateUpdate(): string | null;
|
|
7115
7158
|
beginUpdateRun(): void;
|
|
7116
7159
|
/** M-2738: record a look's answer for the web — the same offer the card keeps. */
|