@signetai/connector-openclaw 0.198.0 → 0.198.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/dist/index.js +96 -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;
|
|
@@ -14563,6 +14609,8 @@ function parseLenientJsonObject(raw, options) {
|
|
|
14563
14609
|
parsed = import_json5.parse(source);
|
|
14564
14610
|
} catch {
|
|
14565
14611
|
const first = errors[0];
|
|
14612
|
+
if (!first)
|
|
14613
|
+
throw new Error(`Invalid ${options.label}`);
|
|
14566
14614
|
throw new Error(`Invalid ${options.label} at offset ${first.offset} (${printParseErrorCode(first.error)})`);
|
|
14567
14615
|
}
|
|
14568
14616
|
}
|
|
@@ -21625,7 +21673,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
21625
21673
|
return true;
|
|
21626
21674
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
21627
21675
|
}
|
|
21628
|
-
function
|
|
21676
|
+
function up131(db) {
|
|
21629
21677
|
db.exec(`
|
|
21630
21678
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
21631
21679
|
version INTEGER PRIMARY KEY,
|
|
@@ -25795,11 +25843,51 @@ function up1292(db) {
|
|
|
25795
25843
|
AND status IN ('pending', 'leased');
|
|
25796
25844
|
`);
|
|
25797
25845
|
}
|
|
25846
|
+
function up1302(db) {
|
|
25847
|
+
db.exec(`
|
|
25848
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_budget (
|
|
25849
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
25850
|
+
window_started_at TEXT NOT NULL,
|
|
25851
|
+
batches_started INTEGER NOT NULL DEFAULT 0 CHECK (batches_started >= 0),
|
|
25852
|
+
last_completed_at TEXT,
|
|
25853
|
+
last_affected INTEGER NOT NULL DEFAULT 0 CHECK (last_affected >= 0),
|
|
25854
|
+
lease_id TEXT,
|
|
25855
|
+
lease_expires_at TEXT,
|
|
25856
|
+
last_error TEXT,
|
|
25857
|
+
updated_at TEXT NOT NULL
|
|
25858
|
+
);
|
|
25859
|
+
|
|
25860
|
+
CREATE TABLE IF NOT EXISTS embedding_repair_backoff (
|
|
25861
|
+
memory_id TEXT NOT NULL,
|
|
25862
|
+
content_hash TEXT NOT NULL,
|
|
25863
|
+
model TEXT NOT NULL,
|
|
25864
|
+
attempts INTEGER NOT NULL DEFAULT 1 CHECK (attempts > 0),
|
|
25865
|
+
retry_at TEXT NOT NULL,
|
|
25866
|
+
updated_at TEXT NOT NULL,
|
|
25867
|
+
PRIMARY KEY (memory_id, content_hash, model)
|
|
25868
|
+
);
|
|
25869
|
+
CREATE INDEX IF NOT EXISTS idx_embedding_repair_backoff_retry
|
|
25870
|
+
ON embedding_repair_backoff(model, retry_at);
|
|
25871
|
+
|
|
25872
|
+
-- Backoff is derived state. Retire it when the source memory disappears
|
|
25873
|
+
-- or moves to a new hash so stale retry keys cannot accumulate forever.
|
|
25874
|
+
CREATE TRIGGER IF NOT EXISTS embedding_repair_backoff_memory_deleted
|
|
25875
|
+
AFTER DELETE ON memories BEGIN
|
|
25876
|
+
DELETE FROM embedding_repair_backoff WHERE memory_id = OLD.id;
|
|
25877
|
+
END;
|
|
25878
|
+
CREATE TRIGGER IF NOT EXISTS embedding_repair_backoff_content_hash_changed
|
|
25879
|
+
AFTER UPDATE OF content_hash ON memories
|
|
25880
|
+
WHEN OLD.content_hash IS NOT NEW.content_hash BEGIN
|
|
25881
|
+
DELETE FROM embedding_repair_backoff
|
|
25882
|
+
WHERE memory_id = OLD.id AND content_hash IS NOT NEW.content_hash;
|
|
25883
|
+
END;
|
|
25884
|
+
`);
|
|
25885
|
+
}
|
|
25798
25886
|
var MIGRATIONS2 = [
|
|
25799
25887
|
{
|
|
25800
25888
|
version: 1,
|
|
25801
25889
|
name: "baseline",
|
|
25802
|
-
up:
|
|
25890
|
+
up: up131,
|
|
25803
25891
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
25804
25892
|
},
|
|
25805
25893
|
{
|
|
@@ -26831,6 +26919,12 @@ var MIGRATIONS2 = [
|
|
|
26831
26919
|
version: 129,
|
|
26832
26920
|
name: "retire-structural-jobs",
|
|
26833
26921
|
up: up1292
|
|
26922
|
+
},
|
|
26923
|
+
{
|
|
26924
|
+
version: 130,
|
|
26925
|
+
name: "embedding-repair-state",
|
|
26926
|
+
up: up1302,
|
|
26927
|
+
artifacts: { tables: ["embedding_repair_budget", "embedding_repair_backoff"] }
|
|
26834
26928
|
}
|
|
26835
26929
|
];
|
|
26836
26930
|
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.198.
|
|
3
|
+
"version": "0.198.2",
|
|
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.198.
|
|
29
|
-
"@signetai/core": "0.198.
|
|
28
|
+
"@signetai/connector-base": "0.198.2",
|
|
29
|
+
"@signetai/core": "0.198.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.0.0",
|