audrey 0.3.1 → 0.3.2

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/README.md CHANGED
@@ -403,7 +403,7 @@ brain.on('error', (err) => { ... });
403
403
 
404
404
  ### `brain.close()`
405
405
 
406
- Close the database connection and stop auto-consolidation.
406
+ Close the database connection.
407
407
 
408
408
  ## Architecture
409
409
 
@@ -522,28 +522,28 @@ Demonstrates the full pipeline: encode 3 rate-limit observations → consolidate
522
522
  - [x] Automatic migration from v0.2.0 embedding BLOBs to vec0 tables
523
523
  - [x] 168 tests across 16 test files
524
524
 
525
- ### v0.3.1 — MCP Server (current)
525
+ ### v0.3.1 — MCP Server + JSDoc Types (current)
526
526
 
527
527
  - [x] MCP tool server via `@modelcontextprotocol/sdk` with stdio transport
528
528
  - [x] 5 tools: `memory_encode`, `memory_recall`, `memory_consolidate`, `memory_introspect`, `memory_resolve_truth`
529
529
  - [x] Configuration via environment variables (data dir, embedding provider, LLM provider)
530
530
  - [x] One-command install: `npx audrey install` (auto-detects API keys)
531
531
  - [x] CLI subcommands: `install`, `uninstall`, `status`
532
+ - [x] JSDoc type annotations on all public exports (16 source files)
533
+ - [x] Published to npm with proper package metadata
532
534
  - [x] 194 tests across 17 test files
533
535
 
534
- ### v0.3.5 — Embedding Migration (deferred from v0.3.0)
535
-
536
- - [ ] Embedding migration pipeline (re-embed when models change)
537
- - [ ] Re-consolidation queue (re-run consolidation with new embedding model)
538
-
539
536
  ### v0.4.0 — Type Safety & Developer Experience
540
537
 
541
538
  - [ ] Full TypeScript conversion with strict mode
542
- - [ ] JSDoc types on all exports (interim before TS conversion)
543
539
  - [ ] Published type declarations (.d.ts)
544
540
  - [ ] Schema versioning and migration system
545
541
  - [ ] Structured logging (optional, pluggable)
546
- - [ ] npm publish with proper package metadata
542
+
543
+ ### v0.4.5 — Embedding Migration (deferred from v0.3.0)
544
+
545
+ - [ ] Embedding migration pipeline (re-embed when models change)
546
+ - [ ] Re-consolidation queue (re-run consolidation with new embedding model)
547
547
 
548
548
  ### v0.5.0 — Advanced Memory Features
549
549
 
@@ -1,7 +1,7 @@
1
1
  import { homedir } from 'node:os';
2
2
  import { join } from 'node:path';
3
3
 
4
- export const VERSION = '0.3.1';
4
+ export const VERSION = '0.3.2';
5
5
  export const SERVER_NAME = 'audrey-memory';
6
6
  export const DEFAULT_DATA_DIR = join(homedir(), '.audrey', 'data');
7
7
 
@@ -45,6 +45,13 @@ function install() {
45
45
  console.log('Detected ANTHROPIC_API_KEY — enabling LLM-powered consolidation + contradiction detection');
46
46
  }
47
47
 
48
+ // Remove existing entry first so re-installs work cleanly
49
+ try {
50
+ execFileSync('claude', ['mcp', 'remove', SERVER_NAME], { stdio: 'ignore' });
51
+ } catch {
52
+ // Not registered yet — that's fine
53
+ }
54
+
48
55
  const args = buildInstallArgs(process.env);
49
56
 
50
57
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "audrey",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Biological memory architecture for AI agents — encode, consolidate, and recall memories with confidence decay, contradiction detection, and causal graphs",
5
5
  "type": "module",
6
6
  "main": "src/index.js",