/** * [WHO]: storeInsight(), loadRecentInsights(), buildInsightInjection(), projectKeyFromCwd() — project-scoped nanomem insight storage and injection * [FROM]: Depends on node:fs, node:path, node:os, packages/mem-core/src/store and packages/mem-core/src/types for validated persistent memory entries * [TO]: Consumed by ./index.ts (idle-think extension entry) * [HERE]: extensions/builtin/idle-think/insights.ts - persistent insight storage via nanomem knowledge.json * * Insights are stored in nanomem's knowledge.json with tag "idle-think". * This keeps persistence compatible with nanomem's entry migration and * avoids injecting notes from unrelated projects. */ import type { MemoryEntry } from "../../../packages/mem-core/src/types.js"; export declare function projectKeyFromCwd(cwd: string): string; /** * Store an insight as a nanomem knowledge entry. * Entry is tagged "idle-think" for traceability and filtering. */ export declare function storeInsight(insightText: string, project: string): Promise; /** * Load recent idle-think insights from nanomem. * Returns the last `count` entries, newest first. */ export declare function loadRecentInsights(count?: number, project?: string): Promise; /** * Build a system prompt injection for before_agent_start. * Reads from nanomem (persistent), not session state. */ export declare function buildInsightInjection(project?: string): Promise;