@signetai/signet-memory-openclaw 0.124.4 → 0.124.5
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/index.js +33 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9381,6 +9381,25 @@ function up74(db) {
|
|
|
9381
9381
|
ON aggregate_memory_sources(agent_id, aggregate_memory_id);
|
|
9382
9382
|
`);
|
|
9383
9383
|
}
|
|
9384
|
+
function addColumnIfMissing19(db, table, column, definition) {
|
|
9385
|
+
const cols = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
9386
|
+
if (cols.some((col) => col.name === column))
|
|
9387
|
+
return;
|
|
9388
|
+
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
9389
|
+
}
|
|
9390
|
+
function up75(db) {
|
|
9391
|
+
addColumnIfMissing19(db, "memory_artifacts", "source_id", "TEXT");
|
|
9392
|
+
addColumnIfMissing19(db, "memory_artifacts", "source_root", "TEXT");
|
|
9393
|
+
addColumnIfMissing19(db, "memory_artifacts", "source_external_id", "TEXT");
|
|
9394
|
+
addColumnIfMissing19(db, "memory_artifacts", "source_parent_path", "TEXT");
|
|
9395
|
+
addColumnIfMissing19(db, "memory_artifacts", "source_meta_json", "TEXT");
|
|
9396
|
+
db.exec(`
|
|
9397
|
+
CREATE INDEX IF NOT EXISTS idx_memory_artifacts_agent_source
|
|
9398
|
+
ON memory_artifacts(agent_id, source_id, source_external_id);
|
|
9399
|
+
CREATE INDEX IF NOT EXISTS idx_memory_artifacts_agent_source_root
|
|
9400
|
+
ON memory_artifacts(agent_id, source_id, source_root);
|
|
9401
|
+
`);
|
|
9402
|
+
}
|
|
9384
9403
|
var MIGRATIONS = [
|
|
9385
9404
|
{
|
|
9386
9405
|
version: 1,
|
|
@@ -9969,6 +9988,20 @@ var MIGRATIONS = [
|
|
|
9969
9988
|
artifacts: {
|
|
9970
9989
|
tables: ["aggregate_memory_sources"]
|
|
9971
9990
|
}
|
|
9991
|
+
},
|
|
9992
|
+
{
|
|
9993
|
+
version: 75,
|
|
9994
|
+
name: "memory-artifact-source-provenance",
|
|
9995
|
+
up: up75,
|
|
9996
|
+
artifacts: {
|
|
9997
|
+
columns: [
|
|
9998
|
+
{ table: "memory_artifacts", column: "source_id" },
|
|
9999
|
+
{ table: "memory_artifacts", column: "source_root" },
|
|
10000
|
+
{ table: "memory_artifacts", column: "source_external_id" },
|
|
10001
|
+
{ table: "memory_artifacts", column: "source_parent_path" },
|
|
10002
|
+
{ table: "memory_artifacts", column: "source_meta_json" }
|
|
10003
|
+
]
|
|
10004
|
+
}
|
|
9972
10005
|
}
|
|
9973
10006
|
];
|
|
9974
10007
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|