mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:30:43 +00:00
refactor: hide gateway wake internals
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -11,7 +11,7 @@ export type NodeWakeAttempt = {
|
||||
apnsReason?: string;
|
||||
};
|
||||
|
||||
export type NodeWakeState = {
|
||||
type NodeWakeState = {
|
||||
lastWakeAtMs: number;
|
||||
inFlight?: Promise<NodeWakeAttempt>;
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user