codemem 0.22.4 → 0.23.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.
Files changed (61) hide show
  1. package/dist/index.js +1708 -566
  2. package/dist/index.js.map +1 -1
  3. package/package.json +10 -10
  4. package/dist/commands/claude-hook-ingest.d.ts +0 -51
  5. package/dist/commands/claude-hook-ingest.d.ts.map +0 -1
  6. package/dist/commands/claude-hook-ingest.test.d.ts +0 -2
  7. package/dist/commands/claude-hook-ingest.test.d.ts.map +0 -1
  8. package/dist/commands/db.d.ts +0 -3
  9. package/dist/commands/db.d.ts.map +0 -1
  10. package/dist/commands/db.test.d.ts +0 -2
  11. package/dist/commands/db.test.d.ts.map +0 -1
  12. package/dist/commands/embed.d.ts +0 -4
  13. package/dist/commands/embed.d.ts.map +0 -1
  14. package/dist/commands/embed.test.d.ts +0 -2
  15. package/dist/commands/embed.test.d.ts.map +0 -1
  16. package/dist/commands/enqueue-raw-event.d.ts +0 -3
  17. package/dist/commands/enqueue-raw-event.d.ts.map +0 -1
  18. package/dist/commands/export-memories.d.ts +0 -3
  19. package/dist/commands/export-memories.d.ts.map +0 -1
  20. package/dist/commands/import-memories.d.ts +0 -3
  21. package/dist/commands/import-memories.d.ts.map +0 -1
  22. package/dist/commands/mcp.d.ts +0 -3
  23. package/dist/commands/mcp.d.ts.map +0 -1
  24. package/dist/commands/memory.d.ts +0 -13
  25. package/dist/commands/memory.d.ts.map +0 -1
  26. package/dist/commands/memory.test.d.ts +0 -2
  27. package/dist/commands/memory.test.d.ts.map +0 -1
  28. package/dist/commands/pack.d.ts +0 -3
  29. package/dist/commands/pack.d.ts.map +0 -1
  30. package/dist/commands/recent.d.ts +0 -3
  31. package/dist/commands/recent.d.ts.map +0 -1
  32. package/dist/commands/search.d.ts +0 -3
  33. package/dist/commands/search.d.ts.map +0 -1
  34. package/dist/commands/serve-invocation.d.ts +0 -37
  35. package/dist/commands/serve-invocation.d.ts.map +0 -1
  36. package/dist/commands/serve.d.ts +0 -13
  37. package/dist/commands/serve.d.ts.map +0 -1
  38. package/dist/commands/serve.test.d.ts +0 -2
  39. package/dist/commands/serve.test.d.ts.map +0 -1
  40. package/dist/commands/setup-config.d.ts +0 -4
  41. package/dist/commands/setup-config.d.ts.map +0 -1
  42. package/dist/commands/setup-config.test.d.ts +0 -2
  43. package/dist/commands/setup-config.test.d.ts.map +0 -1
  44. package/dist/commands/setup.d.ts +0 -15
  45. package/dist/commands/setup.d.ts.map +0 -1
  46. package/dist/commands/stats.d.ts +0 -3
  47. package/dist/commands/stats.d.ts.map +0 -1
  48. package/dist/commands/sync-helpers.d.ts +0 -31
  49. package/dist/commands/sync-helpers.d.ts.map +0 -1
  50. package/dist/commands/sync.d.ts +0 -6
  51. package/dist/commands/sync.d.ts.map +0 -1
  52. package/dist/commands/sync.test.d.ts +0 -2
  53. package/dist/commands/sync.test.d.ts.map +0 -1
  54. package/dist/commands/version.d.ts +0 -3
  55. package/dist/commands/version.d.ts.map +0 -1
  56. package/dist/help-style.d.ts +0 -9
  57. package/dist/help-style.d.ts.map +0 -1
  58. package/dist/index.d.ts +0 -13
  59. package/dist/index.d.ts.map +0 -1
  60. package/dist/index.smoke.test.d.ts +0 -2
  61. package/dist/index.smoke.test.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codemem",
3
- "version": "0.22.4",
3
+ "version": "0.23.0",
4
4
  "description": "Memory layer for AI coding agents — search, recall, and sync context across sessions",
5
5
  "type": "module",
6
6
  "bin": {
@@ -13,24 +13,24 @@
13
13
  ],
14
14
  "dependencies": {
15
15
  "@clack/prompts": "^1.1.0",
16
- "@hono/node-server": "^1.14.3",
16
+ "@hono/node-server": "^1.19.12",
17
17
  "commander": "^14.0.3",
18
- "drizzle-orm": "^0.45.1",
18
+ "drizzle-orm": "^0.45.2",
19
19
  "omelette": "^0.4.17",
20
- "@codemem/server": "^0.22.4",
21
- "@codemem/mcp": "^0.22.4",
22
- "@codemem/core": "^0.22.4"
20
+ "@codemem/mcp": "^0.23.0",
21
+ "@codemem/core": "^0.23.0",
22
+ "@codemem/server": "^0.23.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/node": "^25.5.0",
26
26
  "@types/omelette": "^0.4.5",
27
27
  "tsx": "^4.21.0",
28
- "typescript": "^5.8.2",
29
- "vite": "8.0.1",
30
- "vitest": "4.0.17"
28
+ "typescript": "^5.9.3",
29
+ "vite": "^8.0.5",
30
+ "vitest": "^4.1.2"
31
31
  },
32
32
  "engines": {
33
- "node": ">=22"
33
+ "node": ">=24"
34
34
  },
35
35
  "repository": {
36
36
  "type": "git",
@@ -1,51 +0,0 @@
1
- /**
2
- * codemem claude-hook-ingest — read a single Claude Code hook payload
3
- * from stdin and enqueue it for processing.
4
- *
5
- * Ports codemem/commands/claude_hook_runtime_cmds.py with an HTTP-first
6
- * strategy: try POST /api/claude-hooks (viewer must be running), then
7
- * fall back to direct raw-event enqueue via the local store.
8
- *
9
- * Usage (from Claude hooks config):
10
- * echo '{"hook_event_name":"Stop","session_id":"...","last_assistant_message":"..."}' \
11
- * | codemem claude-hook-ingest
12
- */
13
- import { resolveDbPath } from "@codemem/core";
14
- import { Command } from "commander";
15
- type IngestResult = {
16
- inserted: number;
17
- skipped: number;
18
- via: "http" | "direct";
19
- };
20
- type IngestOpts = {
21
- host: string;
22
- port: number;
23
- db?: string;
24
- dbPath?: string;
25
- };
26
- type IngestDeps = {
27
- httpIngest?: typeof tryHttpIngest;
28
- directIngest?: typeof directEnqueue;
29
- resolveDb?: typeof resolveDbPath;
30
- };
31
- /** Try to POST the hook payload to the running viewer server. */
32
- declare function tryHttpIngest(payload: Record<string, unknown>, host: string, port: number): Promise<{
33
- ok: boolean;
34
- inserted: number;
35
- skipped: number;
36
- }>;
37
- /** Fall back to direct raw-event enqueue via the local SQLite store. */
38
- export declare function directEnqueue(payload: Record<string, unknown>, dbPath: string): {
39
- inserted: number;
40
- skipped: number;
41
- };
42
- /**
43
- * Ingest one Claude hook payload using the TS contract:
44
- * HTTP enqueue first, then direct local enqueue fallback.
45
- *
46
- * This path intentionally does not implement file-spool/lock durability.
47
- */
48
- export declare function ingestClaudeHookPayload(payload: Record<string, unknown>, opts: IngestOpts, deps?: IngestDeps): Promise<IngestResult>;
49
- export declare const claudeHookIngestCommand: Command;
50
- export {};
51
- //# sourceMappingURL=claude-hook-ingest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"claude-hook-ingest.d.ts","sourceRoot":"","sources":["../../src/commands/claude-hook-ingest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAIN,aAAa,EAEb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,KAAK,YAAY,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAA;CAAE,CAAC;AAElF,KAAK,UAAU,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,UAAU,GAAG;IACjB,UAAU,CAAC,EAAE,OAAO,aAAa,CAAC;IAClC,YAAY,CAAC,EAAE,OAAO,aAAa,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,aAAa,CAAC;CACjC,CAAC;AAEF,iEAAiE;AACjE,iBAAe,aAAa,CAC3B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACV,OAAO,CAAC;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAuB7D;AAED,wEAAwE;AACxE,wBAAgB,aAAa,CAC5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,MAAM,EAAE,MAAM,GACZ;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CA2EvC;AAED;;;;;GAKG;AACH,wBAAsB,uBAAuB,CAC5C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,IAAI,EAAE,UAAU,EAChB,IAAI,GAAE,UAAe,GACnB,OAAO,CAAC,YAAY,CAAC,CAavB;AAED,eAAO,MAAM,uBAAuB,SAgDjC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=claude-hook-ingest.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"claude-hook-ingest.test.d.ts","sourceRoot":"","sources":["../../src/commands/claude-hook-ingest.test.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { Command } from "commander";
2
- export declare const dbCommand: Command;
3
- //# sourceMappingURL=db.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../src/commands/db.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA4CpC,eAAO,MAAM,SAAS,SAEe,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=db.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"db.test.d.ts","sourceRoot":"","sources":["../../src/commands/db.test.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import { Command } from "commander";
2
- export declare function resolveEmbedProjectScope(cwd: string, projectOpt: string | undefined, allProjects: boolean | undefined): string | null;
3
- export declare const embedCommand: Command;
4
- //# sourceMappingURL=embed.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"embed.d.ts","sourceRoot":"","sources":["../../src/commands/embed.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAYpC,wBAAgB,wBAAwB,CACvC,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,WAAW,EAAE,OAAO,GAAG,SAAS,GAC9B,MAAM,GAAG,IAAI,CAOf;AAED,eAAO,MAAM,YAAY,SAuDvB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=embed.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"embed.test.d.ts","sourceRoot":"","sources":["../../src/commands/embed.test.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { Command } from "commander";
2
- export declare const enqueueRawEventCommand: Command;
3
- //# sourceMappingURL=enqueue-raw-event.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enqueue-raw-event.d.ts","sourceRoot":"","sources":["../../src/commands/enqueue-raw-event.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA0CpC,eAAO,MAAM,sBAAsB,SAmDhC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { Command } from "commander";
2
- export declare const exportMemoriesCommand: Command;
3
- //# sourceMappingURL=export-memories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"export-memories.d.ts","sourceRoot":"","sources":["../../src/commands/export-memories.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOpC,eAAO,MAAM,qBAAqB,SAgDhC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { Command } from "commander";
2
- export declare const importMemoriesCommand: Command;
3
- //# sourceMappingURL=import-memories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"import-memories.d.ts","sourceRoot":"","sources":["../../src/commands/import-memories.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,eAAO,MAAM,qBAAqB,SAsDhC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { Command } from "commander";
2
- export declare const mcpCommand: Command;
3
- //# sourceMappingURL=mcp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/commands/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,eAAO,MAAM,UAAU,SAUpB,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Memory management CLI commands — show, forget, remember.
3
- *
4
- * Ports codemem/commands/memory_cmds.py (show_cmd, forget_cmd, remember_cmd).
5
- * Compact and inject are deferred — compact requires the summarizer pipeline,
6
- * and inject is just pack_text output which the existing pack command covers.
7
- */
8
- import { Command } from "commander";
9
- export declare const showMemoryCommand: Command;
10
- export declare const forgetMemoryCommand: Command;
11
- export declare const rememberMemoryCommand: Command;
12
- export declare const memoryCommand: Command;
13
- //# sourceMappingURL=memory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/commands/memory.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAyMpC,eAAO,MAAM,iBAAiB,SAA4B,CAAC;AAC3D,eAAO,MAAM,mBAAmB,SAA8B,CAAC;AAC/D,eAAO,MAAM,qBAAqB,SAAgC,CAAC;AAEnE,eAAO,MAAM,aAAa,SAEa,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=memory.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"memory.test.d.ts","sourceRoot":"","sources":["../../src/commands/memory.test.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { Command } from "commander";
2
- export declare const packCommand: Command;
3
- //# sourceMappingURL=pack.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pack.d.ts","sourceRoot":"","sources":["../../src/commands/pack.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOpC,eAAO,MAAM,WAAW,SAgFtB,CAAC"}
@@ -1,3 +0,0 @@
1
- import { Command } from "commander";
2
- export declare const recentCommand: Command;
3
- //# sourceMappingURL=recent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"recent.d.ts","sourceRoot":"","sources":["../../src/commands/recent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,eAAO,MAAM,aAAa,SAoCxB,CAAC"}
@@ -1,3 +0,0 @@
1
- import { Command } from "commander";
2
- export declare const searchCommand: Command;
3
- //# sourceMappingURL=search.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/commands/search.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,eAAO,MAAM,aAAa,SAgExB,CAAC"}
@@ -1,37 +0,0 @@
1
- export type ServeMode = "start" | "stop" | "restart";
2
- export type ServeAction = ServeMode | undefined;
3
- export interface LegacyServeOptions {
4
- db?: string;
5
- dbPath?: string;
6
- host: string;
7
- port: string;
8
- background?: boolean;
9
- foreground?: boolean;
10
- stop?: boolean;
11
- restart?: boolean;
12
- }
13
- export interface StartServeOptions {
14
- db?: string;
15
- dbPath?: string;
16
- host: string;
17
- port: string;
18
- foreground?: boolean;
19
- }
20
- export interface StopRestartServeOptions {
21
- db?: string;
22
- dbPath?: string;
23
- host: string;
24
- port: string;
25
- }
26
- export interface ResolvedServeInvocation {
27
- mode: ServeMode;
28
- dbPath: string | null;
29
- host: string;
30
- port: number;
31
- background: boolean;
32
- }
33
- export declare function resolveLegacyServeInvocation(opts: LegacyServeOptions): ResolvedServeInvocation;
34
- export declare function resolveServeInvocation(action: ServeAction, opts: LegacyServeOptions): ResolvedServeInvocation;
35
- export declare function resolveStartServeInvocation(opts: StartServeOptions): ResolvedServeInvocation;
36
- export declare function resolveStopRestartInvocation(mode: "stop" | "restart", opts: StopRestartServeOptions): ResolvedServeInvocation;
37
- //# sourceMappingURL=serve-invocation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serve-invocation.d.ts","sourceRoot":"","sources":["../../src/commands/serve-invocation.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAErD,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,CAAC;AAEhD,MAAM,WAAW,kBAAkB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,uBAAuB;IACvC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,uBAAuB;IACvC,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;CACpB;AAUD,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,kBAAkB,GAAG,uBAAuB,CAe9F;AAED,wBAAgB,sBAAsB,CACrC,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,kBAAkB,GACtB,uBAAuB,CAWzB;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,iBAAiB,GAAG,uBAAuB,CAS5F;AAED,wBAAgB,4BAA4B,CAC3C,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,IAAI,EAAE,uBAAuB,GAC3B,uBAAuB,CASzB"}
@@ -1,13 +0,0 @@
1
- import { Command } from "commander";
2
- import { type ResolvedServeInvocation } from "./serve-invocation.js";
3
- export declare function extractViewerPid(payload: unknown): number | null;
4
- export declare function isLocalHost(host: string): boolean;
5
- export declare function isLoopbackOnlyHost(host: string): boolean;
6
- export declare function isLikelyViewerCommand(command: string): boolean;
7
- export declare function prepareViewerDatabase(dbPath?: string | null): string;
8
- export declare function pickViewerPidCandidate(statsPid: number | null, listenerPid: number | null): number | null;
9
- export declare function buildForegroundRunnerArgs(scriptPath: string, invocation: ResolvedServeInvocation, execArgv?: string[]): string[];
10
- export declare function isSqliteVecLoadFailure(error: unknown): boolean;
11
- export declare function sqliteVecFailureDiagnostics(error: unknown, dbPath: string): string[];
12
- export declare const serveCommand: Command;
13
- //# sourceMappingURL=serve.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../src/commands/serve.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAEN,KAAK,uBAAuB,EAG5B,MAAM,uBAAuB,CAAC;AAQ/B,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAKhE;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CASjD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAQxD;AASD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAQ9D;AAED,wBAAgB,qBAAqB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAEpE;AAED,wBAAgB,sBAAsB,CACrC,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,WAAW,EAAE,MAAM,GAAG,IAAI,GACxB,MAAM,GAAG,IAAI,CAGf;AAqLD,wBAAgB,yBAAyB,CACxC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,uBAAuB,EACnC,QAAQ,GAAE,MAAM,EAAqB,GACnC,MAAM,EAAE,CAgBV;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAS9D;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAUpF;AA8SD,eAAO,MAAM,YAAY,SAuBtB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=serve.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serve.test.d.ts","sourceRoot":"","sources":["../../src/commands/serve.test.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export declare function resolveOpencodeConfigPath(configDir: string): string;
2
- export declare function loadJsoncConfig(path: string): Record<string, unknown>;
3
- export declare function writeJsonConfig(path: string, data: Record<string, unknown>): void;
4
- //# sourceMappingURL=setup-config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup-config.d.ts","sourceRoot":"","sources":["../../src/commands/setup-config.ts"],"names":[],"mappings":"AAIA,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAMnE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CASrE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAGjF"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=setup-config.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup-config.test.d.ts","sourceRoot":"","sources":["../../src/commands/setup-config.test.ts"],"names":[],"mappings":""}
@@ -1,15 +0,0 @@
1
- /**
2
- * codemem setup — one-command installation for OpenCode plugin + MCP config.
3
- *
4
- * Replaces Python's install_plugin_cmd + install_mcp_cmd.
5
- *
6
- * What it does:
7
- * 1. Adds "@codemem/opencode-plugin" to the plugin array in ~/.config/opencode/opencode.jsonc
8
- * 2. Adds/updates the MCP entry in ~/.config/opencode/opencode.jsonc
9
- * 3. For Claude Code: installs MCP config and guides marketplace plugin install
10
- *
11
- * Designed to be safe to run repeatedly (idempotent unless --force).
12
- */
13
- import { Command } from "commander";
14
- export declare const setupCommand: Command;
15
- //# sourceMappingURL=setup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/commands/setup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAOH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiRpC,eAAO,MAAM,YAAY,SA6BtB,CAAC"}
@@ -1,3 +0,0 @@
1
- import { Command } from "commander";
2
- export declare const statsCommand: Command;
3
- //# sourceMappingURL=stats.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../src/commands/stats.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAcpC,eAAO,MAAM,YAAY,SAsDtB,CAAC"}
@@ -1,31 +0,0 @@
1
- export interface SyncAttemptRow {
2
- peer_device_id: string;
3
- ok: number;
4
- ops_in: number;
5
- ops_out: number;
6
- error: string | null;
7
- finished_at: string | null;
8
- }
9
- export declare function formatSyncAttempt(row: SyncAttemptRow): string;
10
- export interface SyncLifecycleOptions {
11
- db?: string;
12
- dbPath?: string;
13
- host?: string;
14
- port?: string;
15
- user?: boolean;
16
- system?: boolean;
17
- }
18
- export declare function buildServeLifecycleArgs(action: "start" | "stop" | "restart", opts: SyncLifecycleOptions, scriptPath: string, execArgv?: string[]): string[];
19
- export declare function formatSyncOnceResult(peerDeviceId: string, result: {
20
- ok: boolean;
21
- error?: string;
22
- }): string;
23
- export declare function parseProjectList(value: string | undefined): string[];
24
- type InterfaceMap = Record<string, Array<{
25
- address: string;
26
- family?: string | number;
27
- internal?: boolean;
28
- }> | undefined>;
29
- export declare function collectAdvertiseAddresses(explicitAddress: string | null, configuredHost: string | null, port: number, interfaces: InterfaceMap): string[];
30
- export {};
31
- //# sourceMappingURL=sync-helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sync-helpers.d.ts","sourceRoot":"","sources":["../../src/commands/sync-helpers.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,MAAM,CAK7D;AAED,MAAM,WAAW,oBAAoB;IACpC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,EACpC,IAAI,EAAE,oBAAoB,EAC1B,UAAU,EAAE,MAAM,EAClB,QAAQ,GAAE,MAAM,EAAO,GACrB,MAAM,EAAE,CAcV;AAED,wBAAgB,oBAAoB,CACnC,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GACrC,MAAM,CAIR;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,EAAE,CAMpE;AAED,KAAK,YAAY,GAAG,MAAM,CACzB,MAAM,EACN,KAAK,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,GAAG,SAAS,CACpF,CAAC;AAEF,wBAAgB,yBAAyB,CACxC,eAAe,EAAE,MAAM,GAAG,IAAI,EAC9B,cAAc,EAAE,MAAM,GAAG,IAAI,EAC7B,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,YAAY,GACtB,MAAM,EAAE,CAcV"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Sync CLI commands — enable/disable/status/peers/connect.
3
- */
4
- import { Command } from "commander";
5
- export declare const syncCommand: Command;
6
- //# sourceMappingURL=sync.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../src/commands/sync.ts"],"names":[],"mappings":"AAAA;;GAEG;AA2CH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA0JpC,eAAO,MAAM,WAAW,SAE+B,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=sync.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sync.test.d.ts","sourceRoot":"","sources":["../../src/commands/sync.test.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { Command } from "commander";
2
- export declare const versionCommand: Command;
3
- //# sourceMappingURL=version.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/commands/version.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,eAAO,MAAM,cAAc,SAKxB,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * Shared Commander help style configuration.
3
- *
4
- * Applied to every Command instance so subcommand --help
5
- * output gets the same colors as the root.
6
- */
7
- import type { HelpConfiguration } from "commander";
8
- export declare const helpStyle: HelpConfiguration;
9
- //# sourceMappingURL=help-style.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"help-style.d.ts","sourceRoot":"","sources":["../src/help-style.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEnD,eAAO,MAAM,SAAS,EAAE,iBASvB,CAAC"}
package/dist/index.d.ts DELETED
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * @codemem/cli — CLI entry point.
4
- *
5
- * Commands:
6
- * codemem stats → database statistics
7
- * codemem search → FTS5 memory search
8
- * codemem pack → context-aware memory pack
9
- * codemem serve → viewer server
10
- * codemem mcp → MCP stdio server
11
- */
12
- export {};
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;;GASG"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.smoke.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.smoke.test.d.ts","sourceRoot":"","sources":["../src/index.smoke.test.ts"],"names":[],"mappings":""}