claude-launchpad 1.8.0 → 1.9.0
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/{chunk-MDR73QT2.js → chunk-72VWDNAE.js} +2 -2
- package/dist/{chunk-NJQ2JFGF.js → chunk-DYHPVA6O.js} +2 -2
- package/dist/{chunk-GY3SK66Y.js → chunk-GA3IUQUM.js} +3 -3
- package/dist/{chunk-MIHOPQP4.js → chunk-I4S4Q2IV.js} +2 -2
- package/dist/{chunk-7QPZN27I.js → chunk-RCYLZUU6.js} +367 -197
- package/dist/chunk-RCYLZUU6.js.map +1 -0
- package/dist/cli.js +144 -35
- package/dist/cli.js.map +1 -1
- package/dist/commands/memory/server.js +3 -3
- package/dist/{context-XTPBYGKW.js → context-X7UP2ODK.js} +5 -5
- package/dist/{install-MQDN7TLA.js → install-XBCEI5QK.js} +37 -44
- package/dist/install-XBCEI5QK.js.map +1 -0
- package/dist/{pull-ELZGXQPJ.js → pull-VA62U3OP.js} +7 -7
- package/dist/{push-HJXEC7XC.js → push-C3M6Q4V7.js} +7 -7
- package/dist/{require-deps-3B3NWAEP.js → require-deps-UBU5CYM5.js} +3 -3
- package/dist/{stats-S3GNMUDF.js → stats-R4TWCPHW.js} +6 -6
- package/dist/{sync-clean-XNMLP3FZ.js → sync-clean-P4S7V2JS.js} +3 -3
- package/dist/{sync-status-4AGU776A.js → sync-status-TPYUF43G.js} +7 -7
- package/dist/{tui-CGXGXU5U.js → tui-FFLCUR7E.js} +4 -4
- package/package.json +1 -1
- package/dist/chunk-7QPZN27I.js.map +0 -1
- package/dist/install-MQDN7TLA.js.map +0 -1
- /package/dist/{chunk-MDR73QT2.js.map → chunk-72VWDNAE.js.map} +0 -0
- /package/dist/{chunk-NJQ2JFGF.js.map → chunk-DYHPVA6O.js.map} +0 -0
- /package/dist/{chunk-GY3SK66Y.js.map → chunk-GA3IUQUM.js.map} +0 -0
- /package/dist/{chunk-MIHOPQP4.js.map → chunk-I4S4Q2IV.js.map} +0 -0
- /package/dist/{context-XTPBYGKW.js.map → context-X7UP2ODK.js.map} +0 -0
- /package/dist/{pull-ELZGXQPJ.js.map → pull-VA62U3OP.js.map} +0 -0
- /package/dist/{push-HJXEC7XC.js.map → push-C3M6Q4V7.js.map} +0 -0
- /package/dist/{require-deps-3B3NWAEP.js.map → require-deps-UBU5CYM5.js.map} +0 -0
- /package/dist/{stats-S3GNMUDF.js.map → stats-R4TWCPHW.js.map} +0 -0
- /package/dist/{sync-clean-XNMLP3FZ.js.map → sync-clean-P4S7V2JS.js.map} +0 -0
- /package/dist/{sync-status-4AGU776A.js.map → sync-status-TPYUF43G.js.map} +0 -0
- /package/dist/{tui-CGXGXU5U.js.map → tui-FFLCUR7E.js.map} +0 -0
|
@@ -26,9 +26,9 @@ import {
|
|
|
26
26
|
loadConfig,
|
|
27
27
|
migrate,
|
|
28
28
|
resolveDataDir
|
|
29
|
-
} from "../../chunk-
|
|
30
|
-
import "../../chunk-
|
|
31
|
-
import "../../chunk-
|
|
29
|
+
} from "../../chunk-GA3IUQUM.js";
|
|
30
|
+
import "../../chunk-DYHPVA6O.js";
|
|
31
|
+
import "../../chunk-RCYLZUU6.js";
|
|
32
32
|
|
|
33
33
|
// src/commands/memory/server.ts
|
|
34
34
|
import { createRequire } from "module";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-NAW47BYA.js";
|
|
11
11
|
import {
|
|
12
12
|
initStorage
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-I4S4Q2IV.js";
|
|
14
14
|
import "./chunk-DXDOVWOA.js";
|
|
15
15
|
import {
|
|
16
16
|
DEFAULT_DECAY_PARAMS,
|
|
@@ -28,9 +28,9 @@ import {
|
|
|
28
28
|
RECENCY_HALF_LIFE,
|
|
29
29
|
TYPE_INJECTION_BONUS,
|
|
30
30
|
estimateTokens
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-GA3IUQUM.js";
|
|
32
|
+
import "./chunk-DYHPVA6O.js";
|
|
33
|
+
import "./chunk-RCYLZUU6.js";
|
|
34
34
|
|
|
35
35
|
// src/commands/memory/subcommands/context.ts
|
|
36
36
|
import { readFileSync, writeFileSync } from "fs";
|
|
@@ -503,4 +503,4 @@ async function runContext(opts) {
|
|
|
503
503
|
export {
|
|
504
504
|
runContext
|
|
505
505
|
};
|
|
506
|
-
//# sourceMappingURL=context-
|
|
506
|
+
//# sourceMappingURL=context-X7UP2ODK.js.map
|
|
@@ -5,16 +5,17 @@ import {
|
|
|
5
5
|
loadConfig,
|
|
6
6
|
migrate,
|
|
7
7
|
resolveDataDir
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-GA3IUQUM.js";
|
|
9
|
+
import "./chunk-DYHPVA6O.js";
|
|
10
10
|
import {
|
|
11
|
+
addOrUpdateHook,
|
|
11
12
|
getMemoryPlacement,
|
|
12
13
|
log,
|
|
13
14
|
readSettingsJson,
|
|
14
15
|
readSettingsLocalJson,
|
|
15
16
|
writeSettingsJson,
|
|
16
17
|
writeSettingsLocalJson
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RCYLZUU6.js";
|
|
18
19
|
|
|
19
20
|
// src/commands/memory/subcommands/install.ts
|
|
20
21
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
@@ -129,6 +130,9 @@ async function configureSettings(projectDir, placement) {
|
|
|
129
130
|
const read = placement === "local" ? readSettingsLocalJson : readSettingsJson;
|
|
130
131
|
const write = placement === "local" ? writeSettingsLocalJson : writeSettingsJson;
|
|
131
132
|
const settings = await read(projectDir);
|
|
133
|
+
if (settings === null) {
|
|
134
|
+
throw new Error("settings.json is unreadable; repair or remove it before installing memory.");
|
|
135
|
+
}
|
|
132
136
|
log.info("Built-in auto-memory disabled (replaced by knowledge base)");
|
|
133
137
|
const baseHooks = settings["hooks"] ?? {};
|
|
134
138
|
const withPull = addSessionStartPullHook(baseHooks);
|
|
@@ -145,52 +149,40 @@ async function configureSettings(projectDir, placement) {
|
|
|
145
149
|
log.success(`Claude Code configured in ${target}`);
|
|
146
150
|
}
|
|
147
151
|
function addSessionStartPullHook(hooks) {
|
|
148
|
-
const
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
const result = addOrUpdateHook(hooks, {
|
|
153
|
+
event: "SessionStart",
|
|
154
|
+
dedupKeyword: "memory pull",
|
|
155
|
+
entry: {
|
|
156
|
+
matcher: "startup",
|
|
157
|
+
hooks: [{ type: "command", command: "claude-launchpad memory pull -y 2>/dev/null; exit 0" }]
|
|
158
|
+
},
|
|
159
|
+
prepend: true
|
|
154
160
|
});
|
|
155
|
-
if (
|
|
156
|
-
|
|
157
|
-
matcher: "startup",
|
|
158
|
-
hooks: [{ type: "command", command: "claude-launchpad memory pull -y 2>/dev/null; exit 0" }]
|
|
159
|
-
};
|
|
160
|
-
log.info("Session start: memories will auto-pull from GitHub Gist");
|
|
161
|
-
return { ...hooks, SessionStart: [entry, ...sessionStartHooks] };
|
|
161
|
+
if (result.added) log.info("Session start: memories will auto-pull from GitHub Gist");
|
|
162
|
+
return result.hooks;
|
|
162
163
|
}
|
|
163
164
|
function addSessionStartHook(hooks) {
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
165
|
+
const result = addOrUpdateHook(hooks, {
|
|
166
|
+
event: "SessionStart",
|
|
167
|
+
dedupKeyword: "claude-launchpad memory context",
|
|
168
|
+
entry: {
|
|
169
|
+
matcher: "startup|resume",
|
|
170
|
+
hooks: [{ type: "command", command: "npx claude-launchpad memory context --json 2>/dev/null; exit 0" }]
|
|
171
|
+
}
|
|
171
172
|
});
|
|
172
|
-
if (
|
|
173
|
-
|
|
174
|
-
matcher: "startup|resume",
|
|
175
|
-
hooks: [{ type: "command", command: hookCommand }]
|
|
176
|
-
};
|
|
177
|
-
log.info("Session start: Claude will recall relevant context automatically");
|
|
178
|
-
return { ...hooks, SessionStart: [...sessionStartHooks, entry] };
|
|
173
|
+
if (result.added) log.info("Session start: Claude will recall relevant context automatically");
|
|
174
|
+
return result.hooks;
|
|
179
175
|
}
|
|
180
176
|
function addSessionEndPushHook(hooks) {
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
177
|
+
const result = addOrUpdateHook(hooks, {
|
|
178
|
+
event: "SessionEnd",
|
|
179
|
+
dedupKeyword: "memory push",
|
|
180
|
+
entry: {
|
|
181
|
+
hooks: [{ type: "command", command: "nohup claude-launchpad memory push -y </dev/null >/dev/null 2>&1 & exit 0" }]
|
|
182
|
+
}
|
|
187
183
|
});
|
|
188
|
-
if (
|
|
189
|
-
|
|
190
|
-
hooks: [{ type: "command", command: "nohup claude-launchpad memory push -y </dev/null >/dev/null 2>&1 & exit 0" }]
|
|
191
|
-
};
|
|
192
|
-
log.info("Session end: memories will auto-push to GitHub Gist");
|
|
193
|
-
return { ...hooks, SessionEnd: [...sessionEndHooks, entry] };
|
|
184
|
+
if (result.added) log.info("Session end: memories will auto-push to GitHub Gist");
|
|
185
|
+
return result.hooks;
|
|
194
186
|
}
|
|
195
187
|
function addToolPermissions(settings) {
|
|
196
188
|
const permissions = settings["permissions"] ?? {};
|
|
@@ -213,7 +205,7 @@ function addToolPermissions(settings) {
|
|
|
213
205
|
};
|
|
214
206
|
}
|
|
215
207
|
async function ensureNativeDeps() {
|
|
216
|
-
const { cwdRequire } = await import("./require-deps-
|
|
208
|
+
const { cwdRequire } = await import("./require-deps-UBU5CYM5.js");
|
|
217
209
|
try {
|
|
218
210
|
cwdRequire("better-sqlite3");
|
|
219
211
|
return;
|
|
@@ -237,6 +229,7 @@ async function ensureAllowedMcpServerIncludesMemory(projectDir, placement) {
|
|
|
237
229
|
const read = placement === "local" ? readSettingsLocalJson : readSettingsJson;
|
|
238
230
|
const write = placement === "local" ? writeSettingsLocalJson : writeSettingsJson;
|
|
239
231
|
const settings = await read(projectDir);
|
|
232
|
+
if (settings === null) return;
|
|
240
233
|
const existing = settings.allowedMcpServers;
|
|
241
234
|
if (!Array.isArray(existing)) return;
|
|
242
235
|
const list = existing;
|
|
@@ -357,4 +350,4 @@ export {
|
|
|
357
350
|
detectExistingSetup,
|
|
358
351
|
runInstall
|
|
359
352
|
};
|
|
360
|
-
//# sourceMappingURL=install-
|
|
353
|
+
//# sourceMappingURL=install-XBCEI5QK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/memory/subcommands/install.ts"],"sourcesContent":["import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { execSync } from 'node:child_process';\nimport { createDatabase, closeDatabase } from '../storage/database.js';\nimport { migrate } from '../storage/migrator.js';\nimport { loadConfig, resolveDataDir } from '../config.js';\nimport { readSettingsJson, writeSettingsJson, readSettingsLocalJson, writeSettingsLocalJson } from '../../../lib/settings.js';\nimport { addOrUpdateHook } from '../../../lib/hook-builder.js';\nimport { getMemoryPlacement } from '../../../lib/memory-placement.js';\nimport { log } from '../../../lib/output.js';\nimport type { MemoryPlacement } from '../../../types/index.js';\n\nfunction isGhAuthenticated(): boolean {\n try {\n execSync('gh auth status', { stdio: 'pipe', timeout: 5000 });\n return true;\n } catch {\n return false;\n }\n}\n\nfunction isClaudeCliOnPath(): boolean {\n try {\n execSync('claude --version', { stdio: 'pipe', timeout: 5000 });\n return true;\n } catch {\n return false;\n }\n}\n\nfunction isGhOnPath(): boolean {\n try {\n execSync('gh --version', { stdio: 'pipe', timeout: 5000 });\n return true;\n } catch {\n return false;\n }\n}\n\nfunction preflight(): void {\n if (!isClaudeCliOnPath()) {\n log.error('The `claude` CLI was not found on PATH.');\n log.blank();\n log.info('The knowledge base installs as a Claude Code MCP server, so the CLI is required.');\n log.info('Install: https://docs.claude.com/en/docs/claude-code');\n process.exit(1);\n }\n if (!isGhOnPath()) {\n log.warn('The GitHub CLI (`gh`) was not found on PATH — cross-device memory sync will be disabled.');\n log.info('Install later for sync: https://cli.github.com/ then `gh auth login`.');\n log.blank();\n }\n}\n\ninterface InstallOpts {\n readonly dbPath?: string;\n}\n\nexport async function runInstall(opts: InstallOpts): Promise<void> {\n log.blank();\n log.step('Setting up your knowledge base');\n log.blank();\n\n // Preflight: `claude` CLI is hard-required; `gh` is a soft warning for sync.\n preflight();\n\n // Step 0: Ensure native deps are installed globally\n await ensureNativeDeps();\n\n // Prompt for placement before any config writes\n const placement = await getMemoryPlacement(process.cwd());\n\n const config = loadConfig(opts.dbPath ? { dataDir: opts.dbPath } : undefined);\n const dataDir = resolveDataDir(config.dataDir);\n\n // Step 1: Database\n log.step('[1/5] Creating knowledge base...');\n if (!existsSync(dataDir)) {\n mkdirSync(dataDir, { recursive: true });\n }\n const db = createDatabase({ dataDir });\n migrate(db);\n closeDatabase(db);\n log.success(`Knowledge base created at ${dataDir}/memory.db`);\n\n // Step 2: Configure Claude Code settings\n log.step('[2/5] Connecting to Claude Code...');\n await configureSettings(process.cwd(), placement);\n\n // Step 3: Register MCP server (project scope for shared, local scope for local)\n log.step('[3/5] Enabling memory tools...');\n const mcpScope = placement === \"local\" ? \"local\" : \"project\";\n // Must run BEFORE `claude mcp add` — otherwise the add silently fails with \"not allowed by policy\"\n await ensureAllowedMcpServerIncludesMemory(process.cwd(), placement);\n const registered = registerMcpServer(mcpScope);\n if (registered) {\n log.success('Memory tools available in Claude Code');\n } else {\n log.warn('Could not enable memory tools automatically.');\n log.info(`Run: claude mcp add --scope ${mcpScope} agentic-memory -- npx claude-launchpad memory serve`);\n }\n\n // Step 4: CLAUDE.md + skills\n log.step('[4/5] Adding instructions...');\n const guidanceAdded = injectClaudeMdGuidance(process.cwd(), placement);\n if (guidanceAdded) {\n const label = placement === \"local\" ? \".claude/CLAUDE.md\" : \"CLAUDE.md\";\n log.success(`${label} updated with memory instructions`);\n }\n if (placement === \"shared\") {\n const skillsInstalled = installSkills(process.cwd());\n if (skillsInstalled > 0) {\n log.success(`Installed ${skillsInstalled} skill(s) to .claude/skills/`);\n }\n }\n\n log.blank();\n log.success('Knowledge base is ready. Claude will now remember across sessions.');\n log.info('Restart your Claude Code session to activate.');\n\n // Sync guidance\n if (isGhAuthenticated()) {\n log.info('Cross-device sync available. Run `memory push` to back up, or it auto-syncs each session.');\n } else {\n log.blank();\n log.info('Recommended: install the GitHub CLI for cross-device memory sync:');\n log.step(' https://cli.github.com/');\n log.step(' gh auth login');\n }\n log.blank();\n}\n\nexport function detectExistingSetup(projectDir: string): MemoryPlacement | null {\n // Check local CLAUDE.md\n try {\n const localClaude = readFileSync(join(projectDir, '.claude', 'CLAUDE.md'), 'utf-8');\n if (localClaude.includes('## Memory') || localClaude.includes('agentic-memory')) return \"local\";\n } catch { /* not found */ }\n\n // Check root CLAUDE.md\n try {\n const rootClaude = readFileSync(join(projectDir, 'CLAUDE.md'), 'utf-8');\n if (rootClaude.includes('## Memory (agentic-memory)')) return \"shared\";\n } catch { /* not found */ }\n\n return null;\n}\n\nasync function configureSettings(projectDir: string, placement: MemoryPlacement): Promise<void> {\n const read = placement === \"local\" ? readSettingsLocalJson : readSettingsJson;\n const write = placement === \"local\" ? writeSettingsLocalJson : writeSettingsJson;\n const settings = await read(projectDir);\n if (settings === null) {\n throw new Error(\"settings.json is unreadable; repair or remove it before installing memory.\");\n }\n\n // Disable built-in auto-memory\n log.info('Built-in auto-memory disabled (replaced by knowledge base)');\n\n // Build hooks immutably — always add sync hooks (they fail silently without gh)\n const baseHooks = (settings['hooks'] ?? {}) as Record<string, unknown[]>;\n const withPull = addSessionStartPullHook(baseHooks);\n const withContext = addSessionStartHook(withPull);\n const withPush = addSessionEndPushHook(withContext);\n\n // Build permissions immutably\n const withPermissions = addToolPermissions(settings);\n\n const updated = {\n ...withPermissions,\n autoMemoryEnabled: false,\n hooks: withPush,\n };\n\n await write(projectDir, updated);\n const target = placement === \"local\" ? \"settings.local.json\" : \"settings.json\";\n log.success(`Claude Code configured in ${target}`);\n}\n\nfunction addSessionStartPullHook(hooks: Record<string, unknown[]>): Record<string, unknown[]> {\n const result = addOrUpdateHook(hooks, {\n event: 'SessionStart',\n dedupKeyword: 'memory pull',\n entry: {\n matcher: 'startup',\n hooks: [{ type: 'command', command: 'claude-launchpad memory pull -y 2>/dev/null; exit 0' }],\n },\n prepend: true,\n });\n if (result.added) log.info('Session start: memories will auto-pull from GitHub Gist');\n return result.hooks;\n}\n\nfunction addSessionStartHook(hooks: Record<string, unknown[]>): Record<string, unknown[]> {\n const result = addOrUpdateHook(hooks, {\n event: 'SessionStart',\n dedupKeyword: 'claude-launchpad memory context',\n entry: {\n matcher: 'startup|resume',\n hooks: [{ type: 'command', command: 'npx claude-launchpad memory context --json 2>/dev/null; exit 0' }],\n },\n });\n if (result.added) log.info('Session start: Claude will recall relevant context automatically');\n return result.hooks;\n}\n\nfunction addSessionEndPushHook(hooks: Record<string, unknown[]>): Record<string, unknown[]> {\n const result = addOrUpdateHook(hooks, {\n event: 'SessionEnd',\n dedupKeyword: 'memory push',\n entry: {\n hooks: [{ type: 'command', command: 'nohup claude-launchpad memory push -y </dev/null >/dev/null 2>&1 & exit 0' }],\n },\n });\n if (result.added) log.info('Session end: memories will auto-push to GitHub Gist');\n return result.hooks;\n}\n\nfunction addToolPermissions(settings: Record<string, unknown>): Record<string, unknown> {\n const permissions = (settings['permissions'] ?? {}) as Record<string, unknown>;\n const allowList = (permissions['allow'] ?? []) as readonly string[];\n\n const memoryTools = [\n 'mcp__agentic-memory__memory_store',\n 'mcp__agentic-memory__memory_search',\n 'mcp__agentic-memory__memory_recent',\n 'mcp__agentic-memory__memory_forget',\n 'mcp__agentic-memory__memory_relate',\n 'mcp__agentic-memory__memory_stats',\n 'mcp__agentic-memory__memory_update',\n ];\n\n const missing = memoryTools.filter((t) => !allowList.includes(t));\n if (missing.length === 0) return settings;\n\n log.info(`${missing.length} memory tools auto-approved`);\n return {\n ...settings,\n permissions: { ...permissions, allow: [...allowList, ...missing] },\n };\n}\n\nasync function ensureNativeDeps(): Promise<void> {\n const { cwdRequire } = await import('../utils/require-deps.js');\n try {\n cwdRequire('better-sqlite3');\n return;\n } catch {\n // Not installed — install globally\n }\n\n log.step('Installing required database libraries...');\n try {\n execSync('npm install -g better-sqlite3 sqlite-vec', { stdio: 'pipe', timeout: 120000 });\n log.success('Database libraries installed');\n } catch {\n log.error('Could not install database libraries automatically.');\n log.blank();\n log.info('Install manually:');\n log.step(' npm install -g better-sqlite3 sqlite-vec');\n log.blank();\n log.info('Requires a C++ compiler (Xcode on macOS, build-essential on Linux).');\n process.exit(1);\n }\n}\n\nasync function ensureAllowedMcpServerIncludesMemory(\n projectDir: string,\n placement: MemoryPlacement,\n): Promise<void> {\n const read = placement === \"local\" ? readSettingsLocalJson : readSettingsJson;\n const write = placement === \"local\" ? writeSettingsLocalJson : writeSettingsJson;\n const settings = await read(projectDir);\n if (settings === null) return;\n const existing = settings.allowedMcpServers as unknown;\n // No allowlist configured — nothing to patch; Claude Code trusts any added server by default.\n if (!Array.isArray(existing)) return;\n\n const list = existing as Array<{ serverName?: unknown }>;\n const hasMemory = list.some((e) => e && typeof e === \"object\" && e.serverName === \"agentic-memory\");\n if (hasMemory) return;\n\n const updated = {\n ...settings,\n allowedMcpServers: [{ serverName: \"agentic-memory\" }, ...list],\n };\n await write(projectDir, updated);\n const target = placement === \"local\" ? \"settings.local.json\" : \"settings.json\";\n log.info(`Added agentic-memory to allowedMcpServers in ${target}`);\n}\n\nfunction registerMcpServer(scope: \"project\" | \"local\"): boolean {\n try {\n const existing = execSync('claude mcp list', { stdio: 'pipe', timeout: 10000, encoding: 'utf-8' });\n if (existing.includes('agentic-memory')) {\n log.info('Memory tools already registered');\n return true;\n }\n execSync(\n `claude mcp add --scope ${scope} agentic-memory -- npx claude-launchpad memory serve`,\n { stdio: 'pipe', timeout: 10000 },\n );\n return true;\n } catch {\n return false;\n }\n}\n\nconst MEMORY_GUIDANCE = `\n## Memory (agentic-memory)\nThis project uses **agentic-memory** for persistent memory across sessions.\n- **DO NOT** use the built-in auto-memory system (~/.claude/projects/*/memory/)\n- Memory context is **automatically injected** at session start via SessionStart hook - no need to call memory_recent manually\n- Use \\`memory_search\\` to find specific memories by keyword\n- Use \\`memory_store\\` to save decisions, gotchas, and learnings worth remembering\n- Use \\`memory_stats\\` to check memory health\n- **STORE IMMEDIATELY** when: a dependency strategy changes, an architecture decision is made, a convention is established, a bug pattern is discovered, or a feature is killed/added\n`;\n\nfunction injectClaudeMdGuidance(projectDir: string, placement: MemoryPlacement): boolean {\n const claudeMdPath = placement === \"local\"\n ? join(projectDir, '.claude', 'CLAUDE.md')\n : join(projectDir, 'CLAUDE.md');\n\n let content = '';\n try {\n content = readFileSync(claudeMdPath, 'utf-8');\n } catch {\n if (placement !== \"local\") return false;\n // Create local .claude/CLAUDE.md\n mkdirSync(join(projectDir, '.claude'), { recursive: true });\n content = '# Local Claude Config\\n';\n }\n\n if (content.includes('## Memory (agentic-memory)')) {\n return false;\n }\n\n const updated = content.trimEnd() + '\\n' + MEMORY_GUIDANCE;\n writeFileSync(claudeMdPath, updated, 'utf-8');\n return true;\n}\n\nconst MIGRATE_MEMORY_SKILL = `---\nname: lp-migrate-memory\ndescription: Migrate legacy Claude Code auto-memory files (~/.claude/projects/*/memory/*.md) into agentic-memory. Use when setting up agentic-memory on a project that already has built-in memories.\nallowed-tools: Read, Glob, Grep, mcp__agentic-memory__memory_store, mcp__agentic-memory__memory_search\n---\n\n# Migrate Legacy Claude Code Memories\n\nMigrate memory files from Claude Code's built-in auto-memory system into agentic-memory.\n\n## Steps\n\n1. **Find legacy memory files** for this project:\n - Scan \\`~/.claude/projects/*/memory/*.md\\` for directories whose slug matches the current project path\n - The slug format is the absolute path with \\`/\\` replaced by \\`-\\` and leading \\`-\\` (e.g. \\`-Users-john-projects-myapp\\`)\n - Also check \\`~/.claude/projects/*/memory/team/*.md\\` for team memories\n\n2. **For each memory file found**, read it and parse:\n - YAML frontmatter: \\`name\\`, \\`description\\`, \\`type\\` (user/feedback/project/reference)\n - Body content (everything after the frontmatter closing \\`---\\`)\n - Skip \\`MEMORY.md\\` (it's just an index file, not a memory)\n\n3. **Before storing**, check for duplicates:\n - Call \\`memory_search\\` with the memory description or first 100 chars of content\n - If a close match exists (same topic), skip it and report\n\n4. **Map types and store** each memory via \\`memory_store\\`:\n - \\`user\\` -> type: \\`semantic\\`, tags: [\\`user\\`, \\`migrated\\`], importance: 0.7\n - \\`feedback\\` -> type: \\`semantic\\`, tags: [\\`feedback\\`, \\`migrated\\`], importance: 0.8\n - \\`project\\` -> type: \\`semantic\\`, tags: [\\`project\\`, \\`migrated\\`], importance: 0.6\n - \\`reference\\` -> type: \\`semantic\\`, tags: [\\`reference\\`, \\`migrated\\`], importance: 0.5\n - Use the frontmatter \\`name\\` as the title\n - Use the body content as the memory content\n - Set source: \\`import\\`\n - Adjust importance up/down based on the content (decisions and gotchas deserve higher importance)\n\n5. **Report results**: list what was migrated, what was skipped (duplicates), and what failed\n\n## Important\n\n- Do NOT delete the original files - the user can do that manually after verifying\n- Do NOT migrate content that is purely derived from code (architecture, file structure) - it belongs in CLAUDE.md, not memory\n- If unsure about a memory's value, migrate it anyway - the decay system will naturally prune low-value memories over time\n`;\n\nconst SKILLS: Readonly<Record<string, string>> = {\n 'lp-migrate-memory': MIGRATE_MEMORY_SKILL,\n};\n\nfunction installSkills(projectDir: string): number {\n const skillsDir = join(projectDir, '.claude', 'skills');\n let installed = 0;\n\n for (const [name, content] of Object.entries(SKILLS)) {\n const skillDir = join(skillsDir, name);\n const skillPath = join(skillDir, 'SKILL.md');\n\n if (existsSync(skillPath)) continue;\n\n mkdirSync(skillDir, { recursive: true });\n writeFileSync(skillPath, content.trimStart(), 'utf-8');\n installed++;\n }\n\n return installed;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AA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fig,
|
|
11
11
|
projectToFilename,
|
|
12
12
|
readGistFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-72VWDNAE.js";
|
|
14
14
|
import "./chunk-YZ53W47Z.js";
|
|
15
15
|
import {
|
|
16
16
|
detectProject
|
|
17
17
|
} from "./chunk-NAW47BYA.js";
|
|
18
18
|
import {
|
|
19
19
|
initStorage
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-I4S4Q2IV.js";
|
|
21
21
|
import "./chunk-DXDOVWOA.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-GA3IUQUM.js";
|
|
23
|
+
import "./chunk-DYHPVA6O.js";
|
|
24
24
|
import {
|
|
25
25
|
log
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-RCYLZUU6.js";
|
|
27
27
|
|
|
28
28
|
// src/commands/memory/subcommands/pull.ts
|
|
29
29
|
async function runPull(opts) {
|
|
@@ -33,7 +33,7 @@ async function runPull(opts) {
|
|
|
33
33
|
log.error("No sync gist found. Run `memory push` first.");
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
|
-
const { requireMemoryDeps } = await import("./require-deps-
|
|
36
|
+
const { requireMemoryDeps } = await import("./require-deps-UBU5CYM5.js");
|
|
37
37
|
await requireMemoryDeps();
|
|
38
38
|
const ctx = initStorage();
|
|
39
39
|
try {
|
|
@@ -137,4 +137,4 @@ function printResult(result, project) {
|
|
|
137
137
|
export {
|
|
138
138
|
runPull
|
|
139
139
|
};
|
|
140
|
-
//# sourceMappingURL=pull-
|
|
140
|
+
//# sourceMappingURL=pull-VA62U3OP.js.map
|
|
@@ -12,20 +12,20 @@ import {
|
|
|
12
12
|
projectToFilename,
|
|
13
13
|
readGistFile,
|
|
14
14
|
updateGistFiles
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-72VWDNAE.js";
|
|
16
16
|
import "./chunk-YZ53W47Z.js";
|
|
17
17
|
import {
|
|
18
18
|
detectProject
|
|
19
19
|
} from "./chunk-NAW47BYA.js";
|
|
20
20
|
import {
|
|
21
21
|
initStorage
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-I4S4Q2IV.js";
|
|
23
23
|
import "./chunk-DXDOVWOA.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-GA3IUQUM.js";
|
|
25
|
+
import "./chunk-DYHPVA6O.js";
|
|
26
26
|
import {
|
|
27
27
|
log
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-RCYLZUU6.js";
|
|
29
29
|
|
|
30
30
|
// src/commands/memory/subcommands/push.ts
|
|
31
31
|
import { hostname } from "os";
|
|
@@ -50,7 +50,7 @@ function filterRelations(allRelations, memoryIds) {
|
|
|
50
50
|
}
|
|
51
51
|
async function runPush(opts) {
|
|
52
52
|
assertGhAvailable();
|
|
53
|
-
const { requireMemoryDeps } = await import("./require-deps-
|
|
53
|
+
const { requireMemoryDeps } = await import("./require-deps-UBU5CYM5.js");
|
|
54
54
|
await requireMemoryDeps();
|
|
55
55
|
const ctx = initStorage();
|
|
56
56
|
try {
|
|
@@ -171,4 +171,4 @@ async function confirmCreate() {
|
|
|
171
171
|
export {
|
|
172
172
|
runPush
|
|
173
173
|
};
|
|
174
|
-
//# sourceMappingURL=push-
|
|
174
|
+
//# sourceMappingURL=push-C3M6Q4V7.js.map
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
cwdRequire,
|
|
4
4
|
requireMemoryDeps
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-DYHPVA6O.js";
|
|
6
|
+
import "./chunk-RCYLZUU6.js";
|
|
7
7
|
export {
|
|
8
8
|
cwdRequire,
|
|
9
9
|
requireMemoryDeps
|
|
10
10
|
};
|
|
11
|
-
//# sourceMappingURL=require-deps-
|
|
11
|
+
//# sourceMappingURL=require-deps-UBU5CYM5.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
initStorage
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-I4S4Q2IV.js";
|
|
5
5
|
import "./chunk-DXDOVWOA.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-GA3IUQUM.js";
|
|
7
|
+
import "./chunk-DYHPVA6O.js";
|
|
8
8
|
import {
|
|
9
9
|
log
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RCYLZUU6.js";
|
|
11
11
|
|
|
12
12
|
// src/commands/memory/subcommands/stats.ts
|
|
13
13
|
import { existsSync, statSync } from "fs";
|
|
@@ -18,7 +18,7 @@ function formatBytes(bytes) {
|
|
|
18
18
|
return `${(bytes / (1024 * 1024)).toFixed(1)}MB`;
|
|
19
19
|
}
|
|
20
20
|
async function runStats(opts) {
|
|
21
|
-
const { requireMemoryDeps } = await import("./require-deps-
|
|
21
|
+
const { requireMemoryDeps } = await import("./require-deps-UBU5CYM5.js");
|
|
22
22
|
await requireMemoryDeps();
|
|
23
23
|
const ctx = initStorage(opts.dbPath);
|
|
24
24
|
try {
|
|
@@ -72,4 +72,4 @@ async function runStats(opts) {
|
|
|
72
72
|
export {
|
|
73
73
|
runStats
|
|
74
74
|
};
|
|
75
|
-
//# sourceMappingURL=stats-
|
|
75
|
+
//# sourceMappingURL=stats-R4TWCPHW.js.map
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
listGistFiles,
|
|
7
7
|
loadSyncConfig,
|
|
8
8
|
projectToFilename
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-72VWDNAE.js";
|
|
10
10
|
import {
|
|
11
11
|
log
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RCYLZUU6.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/memory/subcommands/sync-clean.ts
|
|
15
15
|
import { confirm } from "@inquirer/prompts";
|
|
@@ -50,4 +50,4 @@ async function runSyncClean(project, opts) {
|
|
|
50
50
|
export {
|
|
51
51
|
runSyncClean
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=sync-clean-
|
|
53
|
+
//# sourceMappingURL=sync-clean-P4S7V2JS.js.map
|
|
@@ -8,17 +8,17 @@ import {
|
|
|
8
8
|
listGistFiles,
|
|
9
9
|
loadSyncConfig,
|
|
10
10
|
readGistFile
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-72VWDNAE.js";
|
|
12
12
|
import "./chunk-YZ53W47Z.js";
|
|
13
13
|
import {
|
|
14
14
|
initStorage
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-I4S4Q2IV.js";
|
|
16
16
|
import "./chunk-DXDOVWOA.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-GA3IUQUM.js";
|
|
18
|
+
import "./chunk-DYHPVA6O.js";
|
|
19
19
|
import {
|
|
20
20
|
log
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RCYLZUU6.js";
|
|
22
22
|
|
|
23
23
|
// src/commands/memory/subcommands/sync-status.ts
|
|
24
24
|
async function runSyncStatus() {
|
|
@@ -28,7 +28,7 @@ async function runSyncStatus() {
|
|
|
28
28
|
log.error("No sync gist found. Run `memory push` first.");
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
const { requireMemoryDeps } = await import("./require-deps-
|
|
31
|
+
const { requireMemoryDeps } = await import("./require-deps-UBU5CYM5.js");
|
|
32
32
|
await requireMemoryDeps();
|
|
33
33
|
const ctx = initStorage();
|
|
34
34
|
try {
|
|
@@ -72,4 +72,4 @@ async function runSyncStatus() {
|
|
|
72
72
|
export {
|
|
73
73
|
runSyncStatus
|
|
74
74
|
};
|
|
75
|
-
//# sourceMappingURL=sync-status-
|
|
75
|
+
//# sourceMappingURL=sync-status-TPYUF43G.js.map
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
loadConfig,
|
|
12
12
|
migrate,
|
|
13
13
|
resolveDataDir
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-GA3IUQUM.js";
|
|
15
|
+
import "./chunk-DYHPVA6O.js";
|
|
16
|
+
import "./chunk-RCYLZUU6.js";
|
|
17
17
|
|
|
18
18
|
// src/commands/memory/dashboard/tui.tsx
|
|
19
19
|
import { render } from "ink";
|
|
@@ -1306,4 +1306,4 @@ async function startTui(options) {
|
|
|
1306
1306
|
export {
|
|
1307
1307
|
startTui
|
|
1308
1308
|
};
|
|
1309
|
-
//# sourceMappingURL=tui-
|
|
1309
|
+
//# sourceMappingURL=tui-FFLCUR7E.js.map
|
package/package.json
CHANGED