openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
108 lines • 3.58 kB
TypeScript
import "./types.openclaw-yUy4bDSr.js";
import "./config-contracts-DzLaG7FV.js";
import "./common-Q2b1qL6v.js";
import "./config-BqyL0TqI.js";
import "./paths-DCz7T0Bd.js";
import "./diagnostic-run-activity-0gZbjqFY.js";
import "./fs-safe-KRE4Cckk.js";
import "./utils-DhaCU8ER.js";
import "./memory-search-DyStcN_y.js";
import "./workspace-files-x9EKEDXj.js";
import "./fs-utils-8PiYFN32.js";
import { DatabaseSync } from "node:sqlite";
//#region src/memory-host-sdk/dreaming.d.ts
type MemoryDreamingStorageMode = "inline" | "separate" | "both";
type MemoryDreamingStorageConfig = {
mode: MemoryDreamingStorageMode;
separateReports: boolean;
};
type DreamingArtifactsAuditIssue = {
severity: "warn" | "error";
code: "dreaming-session-corpus-unreadable" | "dreaming-session-corpus-self-ingested" | "dreaming-session-ingestion-unreadable" | "dreaming-diary-unreadable";
message: string;
fixable: boolean;
};
type DreamingArtifactsAuditSummary = {
dreamsPath?: string;
sessionCorpusDir: string;
sessionCorpusFileCount: number;
suspiciousSessionCorpusFileCount: number;
suspiciousSessionCorpusLineCount: number;
sessionIngestionPath: string;
sessionIngestionExists: boolean;
issues: DreamingArtifactsAuditIssue[];
};
type RepairDreamingArtifactsResult = {
changed: boolean;
archiveDir?: string;
archivedDreamsDiary: boolean;
archivedSessionCorpus: boolean;
archivedSessionIngestion: boolean;
archivedPaths: string[];
warnings: string[];
};
type ShortTermAuditIssue = {
severity: "warn" | "error";
code: "recall-store-unreadable" | "recall-store-empty" | "recall-store-invalid" | "recall-store-dangling" | "recall-store-over-limit" | "recall-lock-stale" | "recall-lock-unreadable";
message: string;
fixable: boolean;
};
type ShortTermAuditSummary<TConceptTagScripts = Record<string, unknown>> = {
storePath: string;
lockPath: string;
updatedAt?: string;
exists: boolean;
entryCount: number;
promotedCount: number;
spacedEntryCount: number;
conceptTaggedEntryCount: number;
conceptTagScripts?: TConceptTagScripts;
invalidEntryCount: number;
danglingEntryCount?: number;
issues: ShortTermAuditIssue[];
};
type RepairShortTermPromotionArtifactsResult = {
changed: boolean;
removedInvalidEntries: number;
removedDanglingEntries?: number;
removedOverflowEntries?: number;
rewroteStore: boolean;
removedStaleLock: boolean;
};
type ShortTermDreamingStatsEntry = {
key: string;
path: string;
startLine: number;
endLine: number;
snippet: string;
recallCount: number;
dailyCount: number;
groundedCount: number;
totalSignalCount: number;
lightHits: number;
remHits: number;
phaseHitCount: number;
promotedAt?: string;
lastRecalledAt?: string;
};
type ShortTermDreamingStats = {
shortTermCount: number;
recallSignalCount: number;
dailySignalCount: number;
groundedSignalCount: number;
totalSignalCount: number;
phaseSignalCount: number;
lightPhaseHitCount: number;
remPhaseHitCount: number;
promotedTotal: number;
promotedToday: number;
storePath: string;
phaseSignalPath: string;
phaseSignalError?: string;
lastPromotedAt?: string;
shortTermEntries: ShortTermDreamingStatsEntry[];
signalEntries: ShortTermDreamingStatsEntry[];
promotedEntries: ShortTermDreamingStatsEntry[];
};
//#endregion
export { ShortTermAuditSummary as a, RepairShortTermPromotionArtifactsResult as i, MemoryDreamingStorageConfig as n, ShortTermDreamingStats as o, RepairDreamingArtifactsResult as r, ShortTermDreamingStatsEntry as s, DreamingArtifactsAuditSummary as t };