Fix memory-service: remove manual id assignment for auto-increment PK

This commit is contained in:
JC Beasley
2026-07-04 17:05:27 -07:00
parent cb5e26b561
commit 93b21a8164
10 changed files with 186 additions and 19 deletions
-3
View File
@@ -33,7 +33,6 @@ async function test() {
console.log('\n2. Testing correction storage...');
try {
const correction = await memory.storeCorrection({
id: `correction_${Date.now()}`,
pattern: '\\d+\\s*(%|percent)',
severity: 'auto-correct',
message: 'Quantitative claim requires evidence',
@@ -61,7 +60,6 @@ async function test() {
console.log('\n4. Testing preference storage...');
try {
const pref = await memory.storePreference({
id: `pref_${Date.now()}`,
category: 'communication',
key: 'format',
value: 'concise',
@@ -87,7 +85,6 @@ async function test() {
console.log('\n6. Testing validation logging...');
try {
await memory.logValidation({
id: `run_${Date.now()}`,
sessionId: 'test-session',
inputLength: 100,
outputLength: 200,