universal-agent-memory 2.7.0 → 2.7.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
|
@@ -41,12 +41,16 @@ UAM fixes this by giving AI agents:
|
|
|
41
41
|
| Capability | What It Means |
|
|
42
42
|
|------------|---------------|
|
|
43
43
|
| **4-Layer Memory** | Recall decisions from months ago |
|
|
44
|
-
| **
|
|
44
|
+
| **Hierarchical Memory** | Hot/warm/cold tiering with auto-promotion |
|
|
45
|
+
| **58 Optimizations** | Battle-tested from Terminal-Bench 2.0 benchmarking |
|
|
45
46
|
| **Pattern Router** | Auto-selects optimal patterns per task |
|
|
47
|
+
| **Adaptive Context** | Selectively loads context based on task type and history |
|
|
46
48
|
| **Multi-Agent Coordination** | Multiple AIs work without conflicts |
|
|
47
49
|
| **Worktree Isolation** | No accidental commits to main |
|
|
48
50
|
| **Code Field** | 89% bug detection vs 39% baseline |
|
|
49
51
|
| **Completion Gates** | 3 mandatory checks before "done" |
|
|
52
|
+
| **MCP Router** | 98%+ token reduction for multi-tool contexts |
|
|
53
|
+
| **Pre-execution Hooks** | Domain-specific setup before agent runs |
|
|
50
54
|
|
|
51
55
|
---
|
|
52
56
|
|
|
@@ -111,9 +115,9 @@ Memory persists with the project in SQLite databases that travel with the code:
|
|
|
111
115
|
|
|
112
116
|
```
|
|
113
117
|
agents/data/memory/
|
|
114
|
-
├── short_term.db
|
|
115
|
-
├──
|
|
116
|
-
└──
|
|
118
|
+
├── short_term.db # L1/L2: Recent actions + session memories (SQLite)
|
|
119
|
+
├── long_term_prepopulated.json # L3: Prepopulated learnings for search
|
|
120
|
+
└── historical_context.db # Adaptive context + semantic cache (SQLite/WAL)
|
|
117
121
|
```
|
|
118
122
|
|
|
119
123
|
This means:
|
|
@@ -143,7 +147,7 @@ uam droids add rust-expert --capabilities "ownership,lifetimes,async" --triggers
|
|
|
143
147
|
|
|
144
148
|
### 🎯 Pattern Router - Battle-Tested Intelligence
|
|
145
149
|
|
|
146
|
-
**
|
|
150
|
+
**58 optimizations in v2.7.0 from Terminal-Bench 2.0 analysis.**
|
|
147
151
|
|
|
148
152
|
Before ANY task, UAM's Pattern Router auto-selects which patterns apply:
|
|
149
153
|
|
|
@@ -151,14 +155,11 @@ Before ANY task, UAM's Pattern Router auto-selects which patterns apply:
|
|
|
151
155
|
=== PATTERN ROUTER ===
|
|
152
156
|
Task: Implement user authentication
|
|
153
157
|
Classification: file-creation
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
ACTIVE PATTERNS: P3, P12, P17
|
|
161
|
-
=== END ROUTER ===
|
|
158
|
+
PATTERNS: P12:[Y] P17:[Y] P20:[N] P11:[N] P35:[N]
|
|
159
|
+
ACTIVE: P3, P12, P17
|
|
160
|
+
BLOCKING: [none]
|
|
161
|
+
VERIFIER: [read tests first]
|
|
162
|
+
=== END ===
|
|
162
163
|
```
|
|
163
164
|
|
|
164
165
|
**Key Patterns:**
|
|
@@ -169,17 +170,23 @@ ACTIVE PATTERNS: P3, P12, P17
|
|
|
169
170
|
| **P17** | Constraint Extraction | Catches "exactly/only/single" requirements |
|
|
170
171
|
| **P3** | Pre-execution State Protection | Backups before destructive actions |
|
|
171
172
|
| **P20** | Adversarial Thinking | Attack mindset for security bypass tasks |
|
|
172
|
-
| **
|
|
173
|
-
| **
|
|
173
|
+
| **P35** | Decoder-First Analysis | Read decoder BEFORE writing encoder |
|
|
174
|
+
| **P11** | Pre-Computed Solutions | Use libraries (Stockfish, scipy) not custom code |
|
|
174
175
|
|
|
175
176
|
**Pattern Categories:**
|
|
176
|
-
- **
|
|
177
|
-
- **Output (P12-P16)**: File creation verification, format validation
|
|
177
|
+
- **Core (P1-P12)**: Tool checks, state protection, output verification
|
|
178
178
|
- **Constraints (P17)**: Extract hidden requirements from task descriptions
|
|
179
179
|
- **Domain (P21-P26)**: Chess, git recovery, compression, polyglot code
|
|
180
180
|
- **Verification (P27-P31)**: Output cleanup, smoke tests, round-trip checks
|
|
181
181
|
- **Advanced (P32-P36)**: CLI execution, numerical stability, decoder-first analysis
|
|
182
182
|
|
|
183
|
+
**Optimization Categories (#40-#58):**
|
|
184
|
+
- **Code Field (#40)**: State assumptions before coding
|
|
185
|
+
- **Pattern Router (#41, #47)**: Auto-classification and blocking gates
|
|
186
|
+
- **Verifier-First (#53)**: Read tests before implementing
|
|
187
|
+
- **Near-Miss Handling (#54)**: 60-89% pass = fix specific failures, don't change approach
|
|
188
|
+
- **Compression (#55-#57)**: Reduced template size while preserving effectiveness
|
|
189
|
+
|
|
183
190
|
---
|
|
184
191
|
|
|
185
192
|
### 🔬 What Works vs What Doesn't (From 40-Task Benchmark)
|
|
@@ -324,6 +331,7 @@ bash <(curl -fsSL https://raw.githubusercontent.com/DammianMiller/universal-agen
|
|
|
324
331
|
| `uam init` | Initialize/update UAM (auto-merges, never loses data) |
|
|
325
332
|
| `uam generate` | Regenerate CLAUDE.md from project analysis |
|
|
326
333
|
| `uam update` | Update templates while preserving customizations |
|
|
334
|
+
| `uam analyze` | Analyze project structure and generate metadata |
|
|
327
335
|
|
|
328
336
|
### Memory
|
|
329
337
|
|
|
@@ -343,6 +351,8 @@ bash <(curl -fsSL https://raw.githubusercontent.com/DammianMiller/universal-agen
|
|
|
343
351
|
| `uam task list` | List all tasks |
|
|
344
352
|
| `uam task claim <id>` | Claim task (announces to other agents) |
|
|
345
353
|
| `uam task release <id>` | Complete task |
|
|
354
|
+
| `uam task ready` | List tasks ready to work on |
|
|
355
|
+
| `uam task stats` | Show task statistics |
|
|
346
356
|
|
|
347
357
|
### Worktrees
|
|
348
358
|
|
|
@@ -351,6 +361,7 @@ bash <(curl -fsSL https://raw.githubusercontent.com/DammianMiller/universal-agen
|
|
|
351
361
|
| `uam worktree create <name>` | Create isolated branch |
|
|
352
362
|
| `uam worktree pr <id>` | Create PR from worktree |
|
|
353
363
|
| `uam worktree cleanup <id>` | Remove worktree |
|
|
364
|
+
| `uam worktree list` | List all worktrees |
|
|
354
365
|
|
|
355
366
|
### Droids
|
|
356
367
|
|
|
@@ -358,6 +369,7 @@ bash <(curl -fsSL https://raw.githubusercontent.com/DammianMiller/universal-agen
|
|
|
358
369
|
|---------|-------------|
|
|
359
370
|
| `uam droids list` | List available expert droids |
|
|
360
371
|
| `uam droids add <name>` | Create new expert droid |
|
|
372
|
+
| `uam droids import <path>` | Import droids from another platform |
|
|
361
373
|
|
|
362
374
|
### Coordination
|
|
363
375
|
|
|
@@ -365,29 +377,60 @@ bash <(curl -fsSL https://raw.githubusercontent.com/DammianMiller/universal-agen
|
|
|
365
377
|
|---------|-------------|
|
|
366
378
|
| `uam agent status` | View active agents |
|
|
367
379
|
| `uam agent overlaps` | Check for file conflicts |
|
|
380
|
+
| `uam agent announce` | Announce intent to work on a resource |
|
|
368
381
|
| `uam coord status` | Coordination overview |
|
|
369
382
|
|
|
383
|
+
### Deploy Batching
|
|
384
|
+
|
|
385
|
+
| Command | Description |
|
|
386
|
+
|---------|-------------|
|
|
387
|
+
| `uam deploy queue` | Queue a deploy action for batching |
|
|
388
|
+
| `uam deploy batch` | Create a batch from pending actions |
|
|
389
|
+
| `uam deploy execute` | Execute a deploy batch |
|
|
390
|
+
| `uam deploy flush` | Flush all pending deploys |
|
|
391
|
+
|
|
392
|
+
### Multi-Model Architecture
|
|
393
|
+
|
|
394
|
+
| Command | Description |
|
|
395
|
+
|---------|-------------|
|
|
396
|
+
| `uam model status` | Show model router status |
|
|
397
|
+
| `uam model list` | List available models |
|
|
398
|
+
| `uam model fingerprint` | Show model performance fingerprints |
|
|
399
|
+
|
|
400
|
+
### MCP Router (98%+ token reduction)
|
|
401
|
+
|
|
402
|
+
| Command | Description |
|
|
403
|
+
|---------|-------------|
|
|
404
|
+
| `uam mcp-router start` | Start hierarchical MCP router |
|
|
405
|
+
| `uam mcp-router stats` | Show router statistics and token savings |
|
|
406
|
+
| `uam mcp-router discover` | Discover tools matching a query |
|
|
407
|
+
| `uam mcp-router list` | List configured MCP servers |
|
|
408
|
+
|
|
370
409
|
## How It Works
|
|
371
410
|
|
|
372
411
|
1. **Install & Init**: `npm i -g universal-agent-memory && uam init`
|
|
373
412
|
|
|
374
|
-
2. **CLAUDE.md Generated**: Auto-populated with project structure, commands, droids
|
|
413
|
+
2. **CLAUDE.md Generated**: Auto-populated with project structure, commands, patterns, droids, and memory system instructions
|
|
375
414
|
|
|
376
415
|
3. **AI Reads CLAUDE.md**: Follows the embedded workflows automatically
|
|
377
416
|
|
|
378
417
|
4. **Every Task**:
|
|
379
|
-
-
|
|
380
|
-
-
|
|
418
|
+
- Pattern Router classifies task and selects applicable patterns
|
|
419
|
+
- Adaptive context decides what memory to load (none/minimal/full)
|
|
420
|
+
- Dynamic retrieval queries relevant memories from all tiers
|
|
421
|
+
- Check for agent overlaps before starting work
|
|
381
422
|
- Route to specialist droids if needed
|
|
382
|
-
- Create worktree for changes
|
|
383
|
-
- Apply Code Field for better code
|
|
384
|
-
- Run
|
|
385
|
-
- Store learnings in memory
|
|
423
|
+
- Create worktree for isolated changes
|
|
424
|
+
- Apply Code Field for better code generation
|
|
425
|
+
- Run completion gates: outputs exist, constraints met, tests pass
|
|
426
|
+
- Store learnings in memory for future sessions
|
|
386
427
|
|
|
387
428
|
5. **Close-Out**: Merge → Deploy → Monitor → Fix loop until 100%
|
|
388
429
|
|
|
389
430
|
## Memory Architecture
|
|
390
431
|
|
|
432
|
+
### 4-Layer Memory System
|
|
433
|
+
|
|
391
434
|
```
|
|
392
435
|
┌─────────────────────────────────────────────────────────────────┐
|
|
393
436
|
│ L1: WORKING │ Recent actions │ 50 max │ SQLite │
|
|
@@ -397,6 +440,40 @@ bash <(curl -fsSL https://raw.githubusercontent.com/DammianMiller/universal-agen
|
|
|
397
440
|
└─────────────────────────────────────────────────────────────────┘
|
|
398
441
|
```
|
|
399
442
|
|
|
443
|
+
### Hierarchical Memory (Hot/Warm/Cold Tiering)
|
|
444
|
+
|
|
445
|
+
On top of the 4-layer system, UAM implements hierarchical memory management:
|
|
446
|
+
|
|
447
|
+
```
|
|
448
|
+
HOT (10 entries) → In-context, always included → <1ms access
|
|
449
|
+
WARM (50 entries) → Cached, promoted on access → <5ms access
|
|
450
|
+
COLD (500 entries) → Archived, semantic search only → ~50ms access
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
- **Time-decay importance**: `importance * (0.95 ^ days_since_access)`
|
|
454
|
+
- **Auto-promotion**: Frequently accessed cold/warm entries promote to hotter tiers
|
|
455
|
+
- **Consolidation**: Old warm entries summarized into compressed cold entries
|
|
456
|
+
- **SQLite persistence**: Survives across sessions via `hierarchical_memory` table
|
|
457
|
+
|
|
458
|
+
### Adaptive Context System
|
|
459
|
+
|
|
460
|
+
The memory system selectively loads context based on task classification:
|
|
461
|
+
|
|
462
|
+
- **21 optimizations** including SQLite-backed historical benefit tracking
|
|
463
|
+
- **TF-IDF-like keyword scoring** for section relevance
|
|
464
|
+
- **13 domain-specific context sections** (security, file formats, git recovery, etc.)
|
|
465
|
+
- **Error-to-section mapping** for progressive escalation on failure
|
|
466
|
+
- **Semantic caching** for task-to-outcome mappings
|
|
467
|
+
|
|
468
|
+
### Additional Memory Features
|
|
469
|
+
|
|
470
|
+
- **Dynamic retrieval**: Adaptive depth based on query complexity (simple/moderate/complex)
|
|
471
|
+
- **Semantic compression**: 2-3x token reduction while preserving meaning
|
|
472
|
+
- **Speculative cache**: Pre-warms queries based on category patterns
|
|
473
|
+
- **Deduplication**: SHA-256 content hash + Jaccard similarity (0.8 threshold)
|
|
474
|
+
- **Feedback loop**: `recordTaskFeedback()` captures success/failure to improve future runs
|
|
475
|
+
- **Model router**: Per-model performance fingerprints by task category
|
|
476
|
+
|
|
400
477
|
**Data is never deleted.** Memory databases persist with the project.
|
|
401
478
|
|
|
402
479
|
Update with `uam init` or `uam generate` always merges - nothing is lost.
|
|
@@ -441,13 +518,24 @@ Configuration in `.uam.json`:
|
|
|
441
518
|
| Droid | Specialization | When Used |
|
|
442
519
|
|-------|----------------|-----------|
|
|
443
520
|
| `code-quality-guardian` | SOLID, complexity, naming | Before every PR |
|
|
444
|
-
| `security-auditor` | OWASP, secrets, injection | Before every PR |
|
|
521
|
+
| `security-auditor` | OWASP, secrets, injection (enhanced with 150+ security sources) | Before every PR |
|
|
445
522
|
| `performance-optimizer` | Algorithms, memory, caching | On request |
|
|
446
523
|
| `documentation-expert` | JSDoc, README, accuracy | On request |
|
|
447
|
-
| `debug-expert` | Dependency conflicts, runtime errors | Error handling |
|
|
448
|
-
| `sysadmin-expert` | Kernel, QEMU, networking | Infrastructure tasks |
|
|
449
|
-
| `ml-training-expert` | Model training, MTEB, datasets | ML tasks |
|
|
450
|
-
| `terminal-bench-optimizer` | Task routing, time budgets | Benchmarking |
|
|
524
|
+
| `debug-expert` | Dependency conflicts, runtime errors, SWE-bench debugging | Error handling |
|
|
525
|
+
| `sysadmin-expert` | Kernel, QEMU, networking, DNS, systemd | Infrastructure tasks |
|
|
526
|
+
| `ml-training-expert` | Model training, MTEB, RL, datasets | ML tasks |
|
|
527
|
+
| `terminal-bench-optimizer` | Task routing, time budgets, strategy orchestration | Benchmarking |
|
|
528
|
+
|
|
529
|
+
## Built-in Skills
|
|
530
|
+
|
|
531
|
+
| Skill | Purpose | Trigger |
|
|
532
|
+
|-------|---------|---------|
|
|
533
|
+
| `balls-mode` | Decomposed reasoning with confidence scoring | Complex decisions, debugging |
|
|
534
|
+
| `cli-design-expert` | CLI/TUI design patterns, UX, help systems | Building CLI tools |
|
|
535
|
+
| `typescript-node-expert` | TypeScript best practices, strict typing | TypeScript projects |
|
|
536
|
+
| `terminal-bench-strategies` | Proven strategies for Terminal-Bench tasks | Benchmark tasks |
|
|
537
|
+
| `unreal-engine-developer` | UE5, Blueprints, C++, Python scripting | Game development |
|
|
538
|
+
| `sec-context-review` | Security context review patterns | Security analysis |
|
|
451
539
|
|
|
452
540
|
## Requirements
|
|
453
541
|
|
|
@@ -478,31 +566,57 @@ A: A prompt technique that makes AI state assumptions before coding. Based on [c
|
|
|
478
566
|
|
|
479
567
|
Want to understand how UAM works under the hood?
|
|
480
568
|
|
|
569
|
+
### Architecture & Analysis
|
|
570
|
+
|
|
481
571
|
| Document | Description |
|
|
482
572
|
|----------|-------------|
|
|
483
573
|
| [UAM Complete Analysis](docs/UAM_COMPLETE_ANALYSIS.md) | Full system architecture, all features |
|
|
484
|
-
| [
|
|
574
|
+
| [Adaptive UAM Design](docs/ADAPTIVE_UAM_DESIGN.md) | Hybrid adaptive context selector design |
|
|
575
|
+
| [Multi-Model Architecture](docs/MULTI_MODEL_ARCHITECTURE.md) | Model routing and fingerprints |
|
|
576
|
+
| [MCP Router Setup](docs/MCP_ROUTER_SETUP.md) | Hierarchical MCP router for token reduction |
|
|
577
|
+
|
|
578
|
+
### Benchmarking & Optimization
|
|
579
|
+
|
|
580
|
+
| Document | Description |
|
|
581
|
+
|----------|-------------|
|
|
582
|
+
| [Terminal-Bench Learnings](docs/TERMINAL_BENCH_LEARNINGS.md) | Universal agent patterns discovered |
|
|
485
583
|
| [Behavioral Patterns](docs/BEHAVIORAL_PATTERNS.md) | What works vs what doesn't analysis |
|
|
486
584
|
| [Failing Tasks Solution Plan](docs/FAILING_TASKS_SOLUTION_PLAN.md) | Detailed fix strategies for each failure mode |
|
|
487
585
|
| [Benchmark Results](benchmark-results/) | All Terminal-Bench 2.0 run results |
|
|
586
|
+
| [Benchmark Evolution](docs/BENCHMARK_EVOLUTION.md) | How benchmark performance evolved |
|
|
587
|
+
| [Domain Strategy Guides](docs/DOMAIN_STRATEGY_GUIDES.md) | Task-specific strategies |
|
|
588
|
+
|
|
589
|
+
### Optimization Plans
|
|
590
|
+
|
|
591
|
+
| Document | Description |
|
|
592
|
+
|----------|-------------|
|
|
593
|
+
| [UAM Performance Analysis](docs/UAM_PERFORMANCE_ANALYSIS_2026-01-18.md) | Performance metrics and analysis |
|
|
594
|
+
| [Optimization Options](docs/OPTIMIZATION_OPTIONS.md) | Available optimization strategies |
|
|
595
|
+
| [V110 Pattern Analysis](docs/UAM_V110_PATTERN_ANALYSIS_2026-01-18.md) | Pattern effectiveness analysis |
|
|
488
596
|
|
|
489
597
|
---
|
|
490
598
|
|
|
491
599
|
## What's Next?
|
|
492
600
|
|
|
493
|
-
UAM
|
|
601
|
+
UAM v2.7.0 includes 58 optimizations. Recent additions:
|
|
494
602
|
|
|
495
|
-
- ✅ **
|
|
496
|
-
- ✅ **Pattern Router** - Auto-selects optimal patterns per task
|
|
603
|
+
- ✅ **58 Optimizations** - Battle-tested from Terminal-Bench 2.0
|
|
604
|
+
- ✅ **Pattern Router** - Auto-selects optimal patterns per task with blocking gates
|
|
497
605
|
- ✅ **Completion Gates** - 3 mandatory checks before "done"
|
|
498
606
|
- ✅ **8 Expert Droids** - Specialized agents for common tasks
|
|
499
|
-
- ✅ **
|
|
607
|
+
- ✅ **6 Skills** - Reusable capabilities (balls-mode, CLI design, etc.)
|
|
608
|
+
- ✅ **Pre-execution Hooks** - Task-specific setup before agent runs
|
|
609
|
+
- ✅ **Hierarchical Memory** - Hot/warm/cold tiering with auto-promotion
|
|
610
|
+
- ✅ **Adaptive Context** - Selective context loading based on task type
|
|
611
|
+
- ✅ **MCP Router** - 98%+ token reduction for multi-tool contexts
|
|
612
|
+
- ✅ **Harbor Integration** - Terminal-Bench 2.0 benchmarking agent
|
|
613
|
+
- ✅ **Model Router** - Per-model performance fingerprints
|
|
500
614
|
|
|
501
615
|
Coming soon:
|
|
502
616
|
|
|
503
|
-
- **Pre-execution Hooks** - Task-specific setup before agent runs
|
|
504
617
|
- **Cross-Project Learning** - Share patterns between codebases
|
|
505
618
|
- **Visual Memory Dashboard** - See what your AI knows
|
|
619
|
+
- **Continuous Benchmark Tracking** - Auto-run benchmarks on template changes
|
|
506
620
|
|
|
507
621
|
**Star the repo** to follow updates. **Open an issue** to request features.
|
|
508
622
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/memory/short-term/schema.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAItC,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,QAAQ,CAAC,QAAQ,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/memory/short-term/schema.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAItC,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAsDjE;AAED,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,QAAQ,CAAC,QAAQ,GAAG,IAAI,CA0B/D;AAED,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,QAAQ,CAAC,QAAQ,GAAG,IAAI,CA0BjE;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAW7D"}
|
|
@@ -15,19 +15,19 @@ export function ensureShortTermSchema(db) {
|
|
|
15
15
|
CREATE INDEX IF NOT EXISTS idx_memories_timestamp ON memories(timestamp);
|
|
16
16
|
CREATE INDEX IF NOT EXISTS idx_memories_type ON memories(type);
|
|
17
17
|
CREATE INDEX IF NOT EXISTS idx_memories_project_type ON memories(project_id, type);
|
|
18
|
-
CREATE INDEX IF NOT EXISTS idx_memories_importance ON memories(importance DESC);
|
|
19
18
|
`);
|
|
20
|
-
// Migration: add importance column if missing (for existing databases)
|
|
19
|
+
// Migration: add importance column if missing (for existing databases created before importance was added)
|
|
21
20
|
try {
|
|
22
21
|
const cols = db.prepare("PRAGMA table_info(memories)").all();
|
|
23
22
|
if (!cols.some(c => c.name === 'importance')) {
|
|
24
23
|
db.exec(`ALTER TABLE memories ADD COLUMN importance INTEGER NOT NULL DEFAULT 5`);
|
|
25
|
-
db.exec(`CREATE INDEX IF NOT EXISTS idx_memories_importance ON memories(importance DESC)`);
|
|
26
24
|
}
|
|
27
25
|
}
|
|
28
26
|
catch {
|
|
29
27
|
// Ignore migration errors - column may already exist
|
|
30
28
|
}
|
|
29
|
+
// Create importance index after migration ensures column exists
|
|
30
|
+
db.exec(`CREATE INDEX IF NOT EXISTS idx_memories_importance ON memories(importance DESC)`);
|
|
31
31
|
// Enable WAL mode for concurrent reads and better write performance
|
|
32
32
|
db.pragma('journal_mode = WAL');
|
|
33
33
|
db.pragma('synchronous = NORMAL');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/memory/short-term/schema.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,MAAM,UAAU,qBAAqB,CAAC,EAAqB;IACzD,EAAE,CAAC,IAAI,CAAC
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/memory/short-term/schema.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,MAAM,UAAU,qBAAqB,CAAC,EAAqB;IACzD,EAAE,CAAC,IAAI,CAAC;;;;;;;;;;;;;GAaP,CAAC,CAAC;IAEH,2GAA2G;IAC3G,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,EAAE,CAAC,OAAO,CAAC,6BAA6B,CAAC,CAAC,GAAG,EAA6B,CAAC;QACxF,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,YAAY,CAAC,EAAE,CAAC;YAC7C,EAAE,CAAC,IAAI,CAAC,uEAAuE,CAAC,CAAC;QACnF,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,qDAAqD;IACvD,CAAC;IAED,gEAAgE;IAChE,EAAE,CAAC,IAAI,CAAC,iFAAiF,CAAC,CAAC;IAE3F,oEAAoE;IACpE,EAAE,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAChC,EAAE,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;IAClC,EAAE,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC;IACnC,EAAE,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAEjC,iDAAiD;IACjD,EAAE,CAAC,IAAI,CAAC;;;;;;;GAOP,CAAC,CAAC;IAEH,2CAA2C;IAC3C,MAAM,QAAQ,GAAI,EAAE,CAAC,OAAO,CAAC,wCAAwC,CAAC,CAAC,GAAG,EAAoB,CAAC,CAAC,CAAC;IACjG,MAAM,QAAQ,GAAI,EAAE,CAAC,OAAO,CAAC,oCAAoC,CAAC,CAAC,GAAG,EAAoB,CAAC,CAAC,CAAC;IAC7F,IAAI,QAAQ,KAAK,CAAC,IAAI,QAAQ,GAAG,CAAC,EAAE,CAAC;QACnC,EAAE,CAAC,IAAI,CAAC;;;KAGP,CAAC,CAAC;IACL,CAAC;AACH,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,EAAqB;IACvD,EAAE,CAAC,IAAI,CAAC;;;;;;;;;;;;;;GAcP,CAAC,CAAC;IAEH,mCAAmC;IACnC,EAAE,CAAC,IAAI,CAAC;;;;;;;GAOP,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,EAAqB;IACzD,EAAE,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;GAwBP,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,MAAc;IACrD,MAAM,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5B,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACrB,SAAS,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACtC,CAAC;IAED,MAAM,EAAE,GAAG,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAC;IAChC,qBAAqB,CAAC,EAAE,CAAC,CAAC;IAC1B,mBAAmB,CAAC,EAAE,CAAC,CAAC;IACxB,qBAAqB,CAAC,EAAE,CAAC,CAAC;IAC1B,EAAE,CAAC,KAAK,EAAE,CAAC;AACb,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "universal-agent-memory",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.2",
|
|
4
4
|
"description": "Universal AI agent memory system - CLAUDE.md templates, memory, worktrees for Claude Code, Factory.AI, VSCode, OpenCode",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|