@signetai/signet-memory-openclaw 0.137.4 → 0.138.18
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 +32 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9425,6 +9425,30 @@ function up76(db) {
|
|
|
9425
9425
|
ON temporal_edges(agent_id, subject_type, subject_id);
|
|
9426
9426
|
`);
|
|
9427
9427
|
}
|
|
9428
|
+
function up77(db) {
|
|
9429
|
+
db.exec(`
|
|
9430
|
+
CREATE TABLE IF NOT EXISTS entity_aliases (
|
|
9431
|
+
id TEXT PRIMARY KEY,
|
|
9432
|
+
entity_id TEXT NOT NULL REFERENCES entities(id) ON DELETE CASCADE,
|
|
9433
|
+
agent_id TEXT NOT NULL DEFAULT 'default',
|
|
9434
|
+
alias TEXT NOT NULL,
|
|
9435
|
+
canonical_alias TEXT NOT NULL,
|
|
9436
|
+
confidence REAL NOT NULL DEFAULT 1.0,
|
|
9437
|
+
source TEXT,
|
|
9438
|
+
status TEXT NOT NULL DEFAULT 'active',
|
|
9439
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
9440
|
+
updated_at TEXT NOT NULL DEFAULT (datetime('now'))
|
|
9441
|
+
);
|
|
9442
|
+
|
|
9443
|
+
CREATE UNIQUE INDEX IF NOT EXISTS idx_entity_aliases_active_unique
|
|
9444
|
+
ON entity_aliases(agent_id, canonical_alias)
|
|
9445
|
+
WHERE status = 'active';
|
|
9446
|
+
CREATE INDEX IF NOT EXISTS idx_entity_aliases_entity
|
|
9447
|
+
ON entity_aliases(agent_id, entity_id, status);
|
|
9448
|
+
CREATE INDEX IF NOT EXISTS idx_entity_aliases_lookup
|
|
9449
|
+
ON entity_aliases(agent_id, canonical_alias, status);
|
|
9450
|
+
`);
|
|
9451
|
+
}
|
|
9428
9452
|
var MIGRATIONS = [
|
|
9429
9453
|
{
|
|
9430
9454
|
version: 1,
|
|
@@ -10035,6 +10059,14 @@ var MIGRATIONS = [
|
|
|
10035
10059
|
artifacts: {
|
|
10036
10060
|
tables: ["temporal_edges"]
|
|
10037
10061
|
}
|
|
10062
|
+
},
|
|
10063
|
+
{
|
|
10064
|
+
version: 77,
|
|
10065
|
+
name: "entity-aliases",
|
|
10066
|
+
up: up77,
|
|
10067
|
+
artifacts: {
|
|
10068
|
+
tables: ["entity_aliases"]
|
|
10069
|
+
}
|
|
10038
10070
|
}
|
|
10039
10071
|
];
|
|
10040
10072
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|