@signetai/connector-openclaw 0.197.17 → 0.198.1
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 +94 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -11229,6 +11229,46 @@ function up129(db) {
|
|
|
11229
11229
|
AND status IN ('pending', 'leased');
|
|
11230
11230
|
`);
|
|
11231
11231
|
}
|
|
11232
|
+
function up130(db) {
|
|
11233
|
+
db.exec(`
|
|
11234
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_budget (
|
|
11235
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
11236
|
+
window_started_at TEXT NOT NULL,
|
|
11237
|
+
batches_started INTEGER NOT NULL DEFAULT 0 CHECK (batches_started >= 0),
|
|
11238
|
+
last_completed_at TEXT,
|
|
11239
|
+
last_affected INTEGER NOT NULL DEFAULT 0 CHECK (last_affected >= 0),
|
|
11240
|
+
lease_id TEXT,
|
|
11241
|
+
lease_expires_at TEXT,
|
|
11242
|
+
last_error TEXT,
|
|
11243
|
+
updated_at TEXT NOT NULL
|
|
11244
|
+
);
|
|
11245
|
+
|
|
11246
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_backoff (
|
|
11247
|
+
memory_id TEXT NOT NULL,
|
|
11248
|
+
content_hash TEXT NOT NULL,
|
|
11249
|
+
model TEXT NOT NULL,
|
|
11250
|
+
attempts INTEGER NOT NULL DEFAULT 1 CHECK (attempts > 0),
|
|
11251
|
+
retry_at TEXT NOT NULL,
|
|
11252
|
+
updated_at TEXT NOT NULL,
|
|
11253
|
+
PRIMARY KEY (memory_id, content_hash, model)
|
|
11254
|
+
);
|
|
11255
|
+
CREATE INDEX IF NOT EXISTS idx_embedding_repair_backoff_retry
|
|
11256
|
+
ON embedding_repair_backoff(model, retry_at);
|
|
11257
|
+
|
|
11258
|
+
-- Backoff is derived state. Retire it when the source memory disappears
|
|
11259
|
+
-- or moves to a new hash so stale retry keys cannot accumulate forever.
|
|
11260
|
+
CREATE TRIGGER IF NOT EXISTS embedding_repair_backoff_memory_deleted
|
|
11261
|
+
AFTER DELETE ON memories BEGIN
|
|
11262
|
+
DELETE FROM embedding_repair_backoff WHERE memory_id = OLD.id;
|
|
11263
|
+
END;
|
|
11264
|
+
CREATE TRIGGER IF NOT EXISTS embedding_repair_backoff_content_hash_changed
|
|
11265
|
+
AFTER UPDATE OF content_hash ON memories
|
|
11266
|
+
WHEN OLD.content_hash IS NOT NEW.content_hash BEGIN
|
|
11267
|
+
DELETE FROM embedding_repair_backoff
|
|
11268
|
+
WHERE memory_id = OLD.id AND content_hash IS NOT NEW.content_hash;
|
|
11269
|
+
END;
|
|
11270
|
+
`);
|
|
11271
|
+
}
|
|
11232
11272
|
var MIGRATIONS = [
|
|
11233
11273
|
{
|
|
11234
11274
|
version: 1,
|
|
@@ -12265,6 +12305,12 @@ var MIGRATIONS = [
|
|
|
12265
12305
|
version: 129,
|
|
12266
12306
|
name: "retire-structural-jobs",
|
|
12267
12307
|
up: up129
|
|
12308
|
+
},
|
|
12309
|
+
{
|
|
12310
|
+
version: 130,
|
|
12311
|
+
name: "embedding-repair-state",
|
|
12312
|
+
up: up130,
|
|
12313
|
+
artifacts: { tables: ["embedding_repair_budget", "embedding_repair_backoff"] }
|
|
12268
12314
|
}
|
|
12269
12315
|
];
|
|
12270
12316
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -21625,7 +21671,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
21625
21671
|
return true;
|
|
21626
21672
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
21627
21673
|
}
|
|
21628
|
-
function
|
|
21674
|
+
function up131(db) {
|
|
21629
21675
|
db.exec(`
|
|
21630
21676
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
21631
21677
|
version INTEGER PRIMARY KEY,
|
|
@@ -25795,11 +25841,51 @@ function up1292(db) {
|
|
|
25795
25841
|
AND status IN ('pending', 'leased');
|
|
25796
25842
|
`);
|
|
25797
25843
|
}
|
|
25844
|
+
function up1302(db) {
|
|
25845
|
+
db.exec(`
|
|
25846
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_budget (
|
|
25847
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
25848
|
+
window_started_at TEXT NOT NULL,
|
|
25849
|
+
batches_started INTEGER NOT NULL DEFAULT 0 CHECK (batches_started >= 0),
|
|
25850
|
+
last_completed_at TEXT,
|
|
25851
|
+
last_affected INTEGER NOT NULL DEFAULT 0 CHECK (last_affected >= 0),
|
|
25852
|
+
lease_id TEXT,
|
|
25853
|
+
lease_expires_at TEXT,
|
|
25854
|
+
last_error TEXT,
|
|
25855
|
+
updated_at TEXT NOT NULL
|
|
25856
|
+
);
|
|
25857
|
+
|
|
25858
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_backoff (
|
|
25859
|
+
memory_id TEXT NOT NULL,
|
|
25860
|
+
content_hash TEXT NOT NULL,
|
|
25861
|
+
model TEXT NOT NULL,
|
|
25862
|
+
attempts INTEGER NOT NULL DEFAULT 1 CHECK (attempts > 0),
|
|
25863
|
+
retry_at TEXT NOT NULL,
|
|
25864
|
+
updated_at TEXT NOT NULL,
|
|
25865
|
+
PRIMARY KEY (memory_id, content_hash, model)
|
|
25866
|
+
);
|
|
25867
|
+
CREATE INDEX IF NOT EXISTS idx_embedding_repair_backoff_retry
|
|
25868
|
+
ON embedding_repair_backoff(model, retry_at);
|
|
25869
|
+
|
|
25870
|
+
-- Backoff is derived state. Retire it when the source memory disappears
|
|
25871
|
+
-- or moves to a new hash so stale retry keys cannot accumulate forever.
|
|
25872
|
+
CREATE TRIGGER IF NOT EXISTS embedding_repair_backoff_memory_deleted
|
|
25873
|
+
AFTER DELETE ON memories BEGIN
|
|
25874
|
+
DELETE FROM embedding_repair_backoff WHERE memory_id = OLD.id;
|
|
25875
|
+
END;
|
|
25876
|
+
CREATE TRIGGER IF NOT EXISTS embedding_repair_backoff_content_hash_changed
|
|
25877
|
+
AFTER UPDATE OF content_hash ON memories
|
|
25878
|
+
WHEN OLD.content_hash IS NOT NEW.content_hash BEGIN
|
|
25879
|
+
DELETE FROM embedding_repair_backoff
|
|
25880
|
+
WHERE memory_id = OLD.id AND content_hash IS NOT NEW.content_hash;
|
|
25881
|
+
END;
|
|
25882
|
+
`);
|
|
25883
|
+
}
|
|
25798
25884
|
var MIGRATIONS2 = [
|
|
25799
25885
|
{
|
|
25800
25886
|
version: 1,
|
|
25801
25887
|
name: "baseline",
|
|
25802
|
-
up:
|
|
25888
|
+
up: up131,
|
|
25803
25889
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
25804
25890
|
},
|
|
25805
25891
|
{
|
|
@@ -26831,6 +26917,12 @@ var MIGRATIONS2 = [
|
|
|
26831
26917
|
version: 129,
|
|
26832
26918
|
name: "retire-structural-jobs",
|
|
26833
26919
|
up: up1292
|
|
26920
|
+
},
|
|
26921
|
+
{
|
|
26922
|
+
version: 130,
|
|
26923
|
+
name: "embedding-repair-state",
|
|
26924
|
+
up: up1302,
|
|
26925
|
+
artifacts: { tables: ["embedding_repair_budget", "embedding_repair_backoff"] }
|
|
26834
26926
|
}
|
|
26835
26927
|
];
|
|
26836
26928
|
var LATEST_SCHEMA_VERSION2 = MIGRATIONS2[MIGRATIONS2.length - 1]?.version ?? 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-openclaw",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.198.1",
|
|
4
4
|
"description": "Signet connector for OpenClaw - configures workspace and memory hooks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"test": "bun test"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@signetai/connector-base": "0.
|
|
29
|
-
"@signetai/core": "0.
|
|
28
|
+
"@signetai/connector-base": "0.198.1",
|
|
29
|
+
"@signetai/core": "0.198.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.0.0",
|