@signetai/connector-openclaw 0.145.9 → 0.146.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 +66 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10747,6 +10747,25 @@ function up81(db) {
|
|
|
10747
10747
|
ON aggregate_evidence_sources(source_kind, source_id);
|
|
10748
10748
|
`);
|
|
10749
10749
|
}
|
|
10750
|
+
function hasColumn11(db, table, column) {
|
|
10751
|
+
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
10752
|
+
return rows.some((row) => row.name === column);
|
|
10753
|
+
}
|
|
10754
|
+
var COLUMNS = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
|
|
10755
|
+
function up82(db) {
|
|
10756
|
+
for (const column of COLUMNS) {
|
|
10757
|
+
if (!hasColumn11(db, "skill_invocations", column)) {
|
|
10758
|
+
db.exec(`ALTER TABLE skill_invocations ADD COLUMN ${column} TEXT`);
|
|
10759
|
+
}
|
|
10760
|
+
}
|
|
10761
|
+
db.exec("DROP INDEX IF EXISTS idx_skill_inv_dedupe");
|
|
10762
|
+
db.exec(`
|
|
10763
|
+
CREATE UNIQUE INDEX idx_skill_inv_dedupe
|
|
10764
|
+
ON skill_invocations(agent_id, harness, session_id, tool_use_id)
|
|
10765
|
+
WHERE harness IS NOT NULL AND session_id IS NOT NULL AND tool_use_id IS NOT NULL
|
|
10766
|
+
`);
|
|
10767
|
+
db.exec("CREATE INDEX IF NOT EXISTS idx_skill_inv_harness ON skill_invocations(harness, created_at)");
|
|
10768
|
+
}
|
|
10750
10769
|
var MIGRATIONS = [
|
|
10751
10770
|
{
|
|
10752
10771
|
version: 1,
|
|
@@ -11400,6 +11419,17 @@ var MIGRATIONS = [
|
|
|
11400
11419
|
artifacts: {
|
|
11401
11420
|
tables: ["aggregate_evidence_sources"]
|
|
11402
11421
|
}
|
|
11422
|
+
},
|
|
11423
|
+
{
|
|
11424
|
+
version: 82,
|
|
11425
|
+
name: "skill-invocations-harness",
|
|
11426
|
+
up: up82,
|
|
11427
|
+
artifacts: {
|
|
11428
|
+
columns: [
|
|
11429
|
+
{ table: "skill_invocations", column: "harness" },
|
|
11430
|
+
{ table: "skill_invocations", column: "tool_use_id" }
|
|
11431
|
+
]
|
|
11432
|
+
}
|
|
11403
11433
|
}
|
|
11404
11434
|
];
|
|
11405
11435
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -18750,7 +18780,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
18750
18780
|
return true;
|
|
18751
18781
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
18752
18782
|
}
|
|
18753
|
-
function
|
|
18783
|
+
function up83(db) {
|
|
18754
18784
|
db.exec(`
|
|
18755
18785
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
18756
18786
|
version INTEGER PRIMARY KEY,
|
|
@@ -18839,12 +18869,12 @@ function up82(db) {
|
|
|
18839
18869
|
} catch {}
|
|
18840
18870
|
createMemoriesFts2(db);
|
|
18841
18871
|
}
|
|
18842
|
-
function
|
|
18872
|
+
function hasColumn12(db, table, column) {
|
|
18843
18873
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
18844
18874
|
return rows.some((r) => r.name === column);
|
|
18845
18875
|
}
|
|
18846
18876
|
function addColumnIfMissing20(db, table, column, definition) {
|
|
18847
|
-
if (!
|
|
18877
|
+
if (!hasColumn12(db, table, column)) {
|
|
18848
18878
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
18849
18879
|
}
|
|
18850
18880
|
}
|
|
@@ -19125,7 +19155,7 @@ function up710(db) {
|
|
|
19125
19155
|
db.exec("ALTER TABLE memory_jobs ADD COLUMN document_id TEXT");
|
|
19126
19156
|
}
|
|
19127
19157
|
}
|
|
19128
|
-
function
|
|
19158
|
+
function up84(db) {
|
|
19129
19159
|
const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='embeddings'").all();
|
|
19130
19160
|
if (tables.length === 0)
|
|
19131
19161
|
return;
|
|
@@ -21415,11 +21445,30 @@ function up812(db) {
|
|
|
21415
21445
|
ON aggregate_evidence_sources(source_kind, source_id);
|
|
21416
21446
|
`);
|
|
21417
21447
|
}
|
|
21448
|
+
function hasColumn112(db, table, column) {
|
|
21449
|
+
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
21450
|
+
return rows.some((row) => row.name === column);
|
|
21451
|
+
}
|
|
21452
|
+
var COLUMNS2 = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
|
|
21453
|
+
function up822(db) {
|
|
21454
|
+
for (const column of COLUMNS2) {
|
|
21455
|
+
if (!hasColumn112(db, "skill_invocations", column)) {
|
|
21456
|
+
db.exec(`ALTER TABLE skill_invocations ADD COLUMN ${column} TEXT`);
|
|
21457
|
+
}
|
|
21458
|
+
}
|
|
21459
|
+
db.exec("DROP INDEX IF EXISTS idx_skill_inv_dedupe");
|
|
21460
|
+
db.exec(`
|
|
21461
|
+
CREATE UNIQUE INDEX idx_skill_inv_dedupe
|
|
21462
|
+
ON skill_invocations(agent_id, harness, session_id, tool_use_id)
|
|
21463
|
+
WHERE harness IS NOT NULL AND session_id IS NOT NULL AND tool_use_id IS NOT NULL
|
|
21464
|
+
`);
|
|
21465
|
+
db.exec("CREATE INDEX IF NOT EXISTS idx_skill_inv_harness ON skill_invocations(harness, created_at)");
|
|
21466
|
+
}
|
|
21418
21467
|
var MIGRATIONS2 = [
|
|
21419
21468
|
{
|
|
21420
21469
|
version: 1,
|
|
21421
21470
|
name: "baseline",
|
|
21422
|
-
up:
|
|
21471
|
+
up: up83,
|
|
21423
21472
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
21424
21473
|
},
|
|
21425
21474
|
{
|
|
@@ -21468,7 +21517,7 @@ var MIGRATIONS2 = [
|
|
|
21468
21517
|
{
|
|
21469
21518
|
version: 8,
|
|
21470
21519
|
name: "embeddings-unique-hash",
|
|
21471
|
-
up:
|
|
21520
|
+
up: up84
|
|
21472
21521
|
},
|
|
21473
21522
|
{
|
|
21474
21523
|
version: 9,
|
|
@@ -22068,6 +22117,17 @@ var MIGRATIONS2 = [
|
|
|
22068
22117
|
artifacts: {
|
|
22069
22118
|
tables: ["aggregate_evidence_sources"]
|
|
22070
22119
|
}
|
|
22120
|
+
},
|
|
22121
|
+
{
|
|
22122
|
+
version: 82,
|
|
22123
|
+
name: "skill-invocations-harness",
|
|
22124
|
+
up: up822,
|
|
22125
|
+
artifacts: {
|
|
22126
|
+
columns: [
|
|
22127
|
+
{ table: "skill_invocations", column: "harness" },
|
|
22128
|
+
{ table: "skill_invocations", column: "tool_use_id" }
|
|
22129
|
+
]
|
|
22130
|
+
}
|
|
22071
22131
|
}
|
|
22072
22132
|
];
|
|
22073
22133
|
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.146.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.146.0",
|
|
29
|
+
"@signetai/core": "0.146.0",
|
|
30
30
|
"json5": "^2.2.3"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|