@signetai/connector-openclaw 0.184.1 → 0.185.0
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 +143 -27
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10497,6 +10497,50 @@ function up115(db) {
|
|
|
10497
10497
|
ON cross_agent_message_receipts(agent_id, acknowledged_at, message_id);
|
|
10498
10498
|
`);
|
|
10499
10499
|
}
|
|
10500
|
+
function hasColumn21(db, table, column) {
|
|
10501
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
10502
|
+
}
|
|
10503
|
+
function addColumnIfMissing24(db, column, definition) {
|
|
10504
|
+
if (!hasColumn21(db, "cross_agent_messages", column)) {
|
|
10505
|
+
db.exec(`ALTER TABLE cross_agent_messages ADD COLUMN ${column} ${definition}`);
|
|
10506
|
+
}
|
|
10507
|
+
}
|
|
10508
|
+
function up116(db) {
|
|
10509
|
+
const table = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'cross_agent_messages'").get();
|
|
10510
|
+
if (table == null)
|
|
10511
|
+
return;
|
|
10512
|
+
addColumnIfMissing24(db, "delivery_state", "TEXT NOT NULL DEFAULT 'pending'");
|
|
10513
|
+
addColumnIfMissing24(db, "delivery_attempt_id", "TEXT");
|
|
10514
|
+
addColumnIfMissing24(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
10515
|
+
addColumnIfMissing24(db, "delivery_lease_token", "TEXT");
|
|
10516
|
+
addColumnIfMissing24(db, "delivery_lease_expires_at", "TEXT");
|
|
10517
|
+
addColumnIfMissing24(db, "delivery_attempt_started_at", "TEXT");
|
|
10518
|
+
addColumnIfMissing24(db, "delivery_updated_at", "TEXT");
|
|
10519
|
+
addColumnIfMissing24(db, "acp_base_url", "TEXT");
|
|
10520
|
+
addColumnIfMissing24(db, "acp_target_agent_name", "TEXT");
|
|
10521
|
+
addColumnIfMissing24(db, "acp_timeout_ms", "INTEGER");
|
|
10522
|
+
addColumnIfMissing24(db, "acp_metadata_json", "TEXT");
|
|
10523
|
+
db.exec(`
|
|
10524
|
+
UPDATE cross_agent_messages
|
|
10525
|
+
SET delivery_state = CASE delivery_status
|
|
10526
|
+
WHEN 'delivered' THEN 'delivered'
|
|
10527
|
+
WHEN 'failed' THEN 'failed'
|
|
10528
|
+
ELSE 'pending'
|
|
10529
|
+
END
|
|
10530
|
+
WHERE delivery_state = 'pending';
|
|
10531
|
+
|
|
10532
|
+
UPDATE cross_agent_messages
|
|
10533
|
+
SET delivery_attempt_id = id
|
|
10534
|
+
WHERE delivery_attempt_id IS NULL;
|
|
10535
|
+
|
|
10536
|
+
UPDATE cross_agent_messages
|
|
10537
|
+
SET delivery_updated_at = created_at
|
|
10538
|
+
WHERE delivery_updated_at IS NULL;
|
|
10539
|
+
|
|
10540
|
+
CREATE INDEX IF NOT EXISTS idx_cross_agent_messages_delivery_reconciliation
|
|
10541
|
+
ON cross_agent_messages(delivery_path, delivery_state, delivery_lease_expires_at, delivery_updated_at);
|
|
10542
|
+
`);
|
|
10543
|
+
}
|
|
10500
10544
|
var MIGRATIONS = [
|
|
10501
10545
|
{
|
|
10502
10546
|
version: 1,
|
|
@@ -11422,6 +11466,20 @@ var MIGRATIONS = [
|
|
|
11422
11466
|
artifacts: {
|
|
11423
11467
|
tables: ["cross_agent_messages", "cross_agent_message_receipts"]
|
|
11424
11468
|
}
|
|
11469
|
+
},
|
|
11470
|
+
{
|
|
11471
|
+
version: 116,
|
|
11472
|
+
name: "acp-delivery-reconciliation",
|
|
11473
|
+
up: up116,
|
|
11474
|
+
artifacts: {
|
|
11475
|
+
columns: [
|
|
11476
|
+
{ table: "cross_agent_messages", column: "delivery_state" },
|
|
11477
|
+
{ table: "cross_agent_messages", column: "delivery_attempt_id" },
|
|
11478
|
+
{ table: "cross_agent_messages", column: "delivery_lease_expires_at" },
|
|
11479
|
+
{ table: "cross_agent_messages", column: "acp_base_url" },
|
|
11480
|
+
{ table: "cross_agent_messages", column: "acp_target_agent_name" }
|
|
11481
|
+
]
|
|
11482
|
+
}
|
|
11425
11483
|
}
|
|
11426
11484
|
];
|
|
11427
11485
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -20688,7 +20746,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
20688
20746
|
return true;
|
|
20689
20747
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
20690
20748
|
}
|
|
20691
|
-
function
|
|
20749
|
+
function up117(db) {
|
|
20692
20750
|
db.exec(`
|
|
20693
20751
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
20694
20752
|
version INTEGER PRIMARY KEY,
|
|
@@ -20777,31 +20835,31 @@ function up116(db) {
|
|
|
20777
20835
|
} catch {}
|
|
20778
20836
|
createMemoriesFts2(db);
|
|
20779
20837
|
}
|
|
20780
|
-
function
|
|
20838
|
+
function hasColumn22(db, table, column) {
|
|
20781
20839
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
20782
20840
|
return rows.some((r) => r.name === column);
|
|
20783
20841
|
}
|
|
20784
|
-
function
|
|
20785
|
-
if (!
|
|
20842
|
+
function addColumnIfMissing25(db, table, column, definition) {
|
|
20843
|
+
if (!hasColumn22(db, table, column)) {
|
|
20786
20844
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
20787
20845
|
}
|
|
20788
20846
|
}
|
|
20789
20847
|
function up210(db) {
|
|
20790
|
-
|
|
20791
|
-
|
|
20792
|
-
|
|
20793
|
-
|
|
20794
|
-
|
|
20795
|
-
|
|
20796
|
-
|
|
20797
|
-
|
|
20798
|
-
|
|
20799
|
-
|
|
20800
|
-
|
|
20801
|
-
|
|
20802
|
-
|
|
20803
|
-
|
|
20804
|
-
|
|
20848
|
+
addColumnIfMissing25(db, "memories", "content_hash", "TEXT");
|
|
20849
|
+
addColumnIfMissing25(db, "memories", "normalized_content", "TEXT");
|
|
20850
|
+
addColumnIfMissing25(db, "memories", "is_deleted", "INTEGER DEFAULT 0");
|
|
20851
|
+
addColumnIfMissing25(db, "memories", "deleted_at", "TEXT");
|
|
20852
|
+
addColumnIfMissing25(db, "memories", "extraction_status", "TEXT DEFAULT 'none'");
|
|
20853
|
+
addColumnIfMissing25(db, "memories", "embedding_model", "TEXT");
|
|
20854
|
+
addColumnIfMissing25(db, "memories", "extraction_model", "TEXT");
|
|
20855
|
+
addColumnIfMissing25(db, "memories", "update_count", "INTEGER DEFAULT 0");
|
|
20856
|
+
addColumnIfMissing25(db, "memories", "who", "TEXT");
|
|
20857
|
+
addColumnIfMissing25(db, "memories", "why", "TEXT");
|
|
20858
|
+
addColumnIfMissing25(db, "memories", "project", "TEXT");
|
|
20859
|
+
addColumnIfMissing25(db, "memories", "pinned", "INTEGER DEFAULT 0");
|
|
20860
|
+
addColumnIfMissing25(db, "memories", "importance", "REAL DEFAULT 0.5");
|
|
20861
|
+
addColumnIfMissing25(db, "memories", "last_accessed", "TEXT");
|
|
20862
|
+
addColumnIfMissing25(db, "memories", "access_count", "INTEGER DEFAULT 0");
|
|
20805
20863
|
db.exec(`
|
|
20806
20864
|
CREATE TABLE IF NOT EXISTS memory_history (
|
|
20807
20865
|
id TEXT PRIMARY KEY,
|
|
@@ -20897,7 +20955,7 @@ function up210(db) {
|
|
|
20897
20955
|
ON memory_entity_mentions(entity_id);
|
|
20898
20956
|
`);
|
|
20899
20957
|
}
|
|
20900
|
-
function
|
|
20958
|
+
function addColumnIfMissing26(db, table, column, definition) {
|
|
20901
20959
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
20902
20960
|
if (rows.some((r) => r.name === column))
|
|
20903
20961
|
return false;
|
|
@@ -20905,8 +20963,8 @@ function addColumnIfMissing25(db, table, column, definition) {
|
|
|
20905
20963
|
return true;
|
|
20906
20964
|
}
|
|
20907
20965
|
function up310(db) {
|
|
20908
|
-
|
|
20909
|
-
|
|
20966
|
+
addColumnIfMissing26(db, "memories", "why", "TEXT");
|
|
20967
|
+
addColumnIfMissing26(db, "memories", "project", "TEXT");
|
|
20910
20968
|
db.exec(`DROP INDEX IF EXISTS idx_memories_content_hash`);
|
|
20911
20969
|
db.exec(`
|
|
20912
20970
|
UPDATE memories
|
|
@@ -20932,12 +20990,12 @@ function up310(db) {
|
|
|
20932
20990
|
WHERE content_hash IS NOT NULL AND is_deleted = 0
|
|
20933
20991
|
`);
|
|
20934
20992
|
}
|
|
20935
|
-
function
|
|
20993
|
+
function hasColumn23(db, table, column) {
|
|
20936
20994
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
20937
20995
|
return rows.some((r) => r.name === column);
|
|
20938
20996
|
}
|
|
20939
20997
|
function addColumnIfMissing32(db, table, column, definition) {
|
|
20940
|
-
if (!
|
|
20998
|
+
if (!hasColumn23(db, table, column)) {
|
|
20941
20999
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
20942
21000
|
}
|
|
20943
21001
|
}
|
|
@@ -21111,7 +21169,7 @@ function up1010(db) {
|
|
|
21111
21169
|
)
|
|
21112
21170
|
`);
|
|
21113
21171
|
}
|
|
21114
|
-
function
|
|
21172
|
+
function up118(db) {
|
|
21115
21173
|
db.exec(`
|
|
21116
21174
|
CREATE TABLE IF NOT EXISTS session_scores (
|
|
21117
21175
|
id TEXT PRIMARY KEY,
|
|
@@ -24220,11 +24278,55 @@ function up1152(db) {
|
|
|
24220
24278
|
ON cross_agent_message_receipts(agent_id, acknowledged_at, message_id);
|
|
24221
24279
|
`);
|
|
24222
24280
|
}
|
|
24281
|
+
function hasColumn212(db, table, column) {
|
|
24282
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
24283
|
+
}
|
|
24284
|
+
function addColumnIfMissing242(db, column, definition) {
|
|
24285
|
+
if (!hasColumn212(db, "cross_agent_messages", column)) {
|
|
24286
|
+
db.exec(`ALTER TABLE cross_agent_messages ADD COLUMN ${column} ${definition}`);
|
|
24287
|
+
}
|
|
24288
|
+
}
|
|
24289
|
+
function up1162(db) {
|
|
24290
|
+
const table = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'cross_agent_messages'").get();
|
|
24291
|
+
if (table == null)
|
|
24292
|
+
return;
|
|
24293
|
+
addColumnIfMissing242(db, "delivery_state", "TEXT NOT NULL DEFAULT 'pending'");
|
|
24294
|
+
addColumnIfMissing242(db, "delivery_attempt_id", "TEXT");
|
|
24295
|
+
addColumnIfMissing242(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
24296
|
+
addColumnIfMissing242(db, "delivery_lease_token", "TEXT");
|
|
24297
|
+
addColumnIfMissing242(db, "delivery_lease_expires_at", "TEXT");
|
|
24298
|
+
addColumnIfMissing242(db, "delivery_attempt_started_at", "TEXT");
|
|
24299
|
+
addColumnIfMissing242(db, "delivery_updated_at", "TEXT");
|
|
24300
|
+
addColumnIfMissing242(db, "acp_base_url", "TEXT");
|
|
24301
|
+
addColumnIfMissing242(db, "acp_target_agent_name", "TEXT");
|
|
24302
|
+
addColumnIfMissing242(db, "acp_timeout_ms", "INTEGER");
|
|
24303
|
+
addColumnIfMissing242(db, "acp_metadata_json", "TEXT");
|
|
24304
|
+
db.exec(`
|
|
24305
|
+
UPDATE cross_agent_messages
|
|
24306
|
+
SET delivery_state = CASE delivery_status
|
|
24307
|
+
WHEN 'delivered' THEN 'delivered'
|
|
24308
|
+
WHEN 'failed' THEN 'failed'
|
|
24309
|
+
ELSE 'pending'
|
|
24310
|
+
END
|
|
24311
|
+
WHERE delivery_state = 'pending';
|
|
24312
|
+
|
|
24313
|
+
UPDATE cross_agent_messages
|
|
24314
|
+
SET delivery_attempt_id = id
|
|
24315
|
+
WHERE delivery_attempt_id IS NULL;
|
|
24316
|
+
|
|
24317
|
+
UPDATE cross_agent_messages
|
|
24318
|
+
SET delivery_updated_at = created_at
|
|
24319
|
+
WHERE delivery_updated_at IS NULL;
|
|
24320
|
+
|
|
24321
|
+
CREATE INDEX IF NOT EXISTS idx_cross_agent_messages_delivery_reconciliation
|
|
24322
|
+
ON cross_agent_messages(delivery_path, delivery_state, delivery_lease_expires_at, delivery_updated_at);
|
|
24323
|
+
`);
|
|
24324
|
+
}
|
|
24223
24325
|
var MIGRATIONS2 = [
|
|
24224
24326
|
{
|
|
24225
24327
|
version: 1,
|
|
24226
24328
|
name: "baseline",
|
|
24227
|
-
up:
|
|
24329
|
+
up: up117,
|
|
24228
24330
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
24229
24331
|
},
|
|
24230
24332
|
{
|
|
@@ -24290,7 +24392,7 @@ var MIGRATIONS2 = [
|
|
|
24290
24392
|
{
|
|
24291
24393
|
version: 11,
|
|
24292
24394
|
name: "session-scores",
|
|
24293
|
-
up:
|
|
24395
|
+
up: up118,
|
|
24294
24396
|
artifacts: { tables: ["session_scores"] }
|
|
24295
24397
|
},
|
|
24296
24398
|
{
|
|
@@ -25145,6 +25247,20 @@ var MIGRATIONS2 = [
|
|
|
25145
25247
|
artifacts: {
|
|
25146
25248
|
tables: ["cross_agent_messages", "cross_agent_message_receipts"]
|
|
25147
25249
|
}
|
|
25250
|
+
},
|
|
25251
|
+
{
|
|
25252
|
+
version: 116,
|
|
25253
|
+
name: "acp-delivery-reconciliation",
|
|
25254
|
+
up: up1162,
|
|
25255
|
+
artifacts: {
|
|
25256
|
+
columns: [
|
|
25257
|
+
{ table: "cross_agent_messages", column: "delivery_state" },
|
|
25258
|
+
{ table: "cross_agent_messages", column: "delivery_attempt_id" },
|
|
25259
|
+
{ table: "cross_agent_messages", column: "delivery_lease_expires_at" },
|
|
25260
|
+
{ table: "cross_agent_messages", column: "acp_base_url" },
|
|
25261
|
+
{ table: "cross_agent_messages", column: "acp_target_agent_name" }
|
|
25262
|
+
]
|
|
25263
|
+
}
|
|
25148
25264
|
}
|
|
25149
25265
|
];
|
|
25150
25266
|
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.185.0",
|
|
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.185.0",
|
|
29
|
+
"@signetai/core": "0.185.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.0.0",
|