refactor: hide gateway wake internals

This commit is contained in:
Peter Steinberger
2026-05-02 08:49:22 +01:00
parent 010f7a58a1
commit 314a197da9
3 changed files with 4 additions and 6 deletions

View File

@@ -11,8 +11,6 @@ import {
isSuppressedControlReplyText,
} from "./control-reply-text.js";
export { resolveAssistantEventPhase } from "../shared/chat-message-content.js";
export const MAX_LIVE_CHAT_BUFFER_CHARS = 500_000;
function capLiveAssistantBuffer(text: string): string {

View File

@@ -11,7 +11,7 @@ export type NodeWakeAttempt = {
apnsReason?: string;
};
export type NodeWakeState = {
type NodeWakeState = {
lastWakeAtMs: number;
inFlight?: Promise<NodeWakeAttempt>;
};

View File

@@ -71,9 +71,9 @@ vi.mock("./plugin-registry.js", async (importOriginal) => {
...actual,
loadPluginRegistrySnapshot: mocks.loadPluginRegistrySnapshot,
loadPluginRegistrySnapshotWithMetadata: (params?: { index?: unknown }) => {
const snapshot =
params?.index ??
(mocks.loadPluginRegistrySnapshot() as { plugins?: Array<Record<string, unknown>> });
const snapshot = (params?.index ?? mocks.loadPluginRegistrySnapshot()) as {
plugins?: Array<Record<string, unknown>>;
};
return {
snapshot: {
...snapshot,