@signetai/connector-openclaw 0.167.0 → 0.168.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 +68 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10342,6 +10342,23 @@ function up106(db) {
|
|
|
10342
10342
|
}
|
|
10343
10343
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
|
|
10344
10344
|
}
|
|
10345
|
+
function hasColumn18(db, table, column) {
|
|
10346
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
10347
|
+
}
|
|
10348
|
+
var TOKEN_COLUMNS = [
|
|
10349
|
+
["tokens_input", "INTEGER"],
|
|
10350
|
+
["tokens_output", "INTEGER"],
|
|
10351
|
+
["tokens_cache_read", "INTEGER"],
|
|
10352
|
+
["tokens_cache_write", "INTEGER"],
|
|
10353
|
+
["tokens_cost", "REAL"]
|
|
10354
|
+
];
|
|
10355
|
+
function up107(db) {
|
|
10356
|
+
for (const [column, type] of TOKEN_COLUMNS) {
|
|
10357
|
+
if (!hasColumn18(db, "dreaming_passes", column)) {
|
|
10358
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
|
|
10359
|
+
}
|
|
10360
|
+
}
|
|
10361
|
+
}
|
|
10345
10362
|
var MIGRATIONS = [
|
|
10346
10363
|
{
|
|
10347
10364
|
version: 1,
|
|
@@ -11182,6 +11199,20 @@ var MIGRATIONS = [
|
|
|
11182
11199
|
artifacts: {
|
|
11183
11200
|
columns: [{ table: "memories", column: "review_after" }]
|
|
11184
11201
|
}
|
|
11202
|
+
},
|
|
11203
|
+
{
|
|
11204
|
+
version: 107,
|
|
11205
|
+
name: "dreaming-pass-usage",
|
|
11206
|
+
up: up107,
|
|
11207
|
+
artifacts: {
|
|
11208
|
+
columns: [
|
|
11209
|
+
{ table: "dreaming_passes", column: "tokens_input" },
|
|
11210
|
+
{ table: "dreaming_passes", column: "tokens_output" },
|
|
11211
|
+
{ table: "dreaming_passes", column: "tokens_cache_read" },
|
|
11212
|
+
{ table: "dreaming_passes", column: "tokens_cache_write" },
|
|
11213
|
+
{ table: "dreaming_passes", column: "tokens_cost" }
|
|
11214
|
+
]
|
|
11215
|
+
}
|
|
11185
11216
|
}
|
|
11186
11217
|
];
|
|
11187
11218
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -20445,7 +20476,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
20445
20476
|
return true;
|
|
20446
20477
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
20447
20478
|
}
|
|
20448
|
-
function
|
|
20479
|
+
function up108(db) {
|
|
20449
20480
|
db.exec(`
|
|
20450
20481
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
20451
20482
|
version INTEGER PRIMARY KEY,
|
|
@@ -20534,12 +20565,12 @@ function up107(db) {
|
|
|
20534
20565
|
} catch {}
|
|
20535
20566
|
createMemoriesFts2(db);
|
|
20536
20567
|
}
|
|
20537
|
-
function
|
|
20568
|
+
function hasColumn19(db, table, column) {
|
|
20538
20569
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
20539
20570
|
return rows.some((r) => r.name === column);
|
|
20540
20571
|
}
|
|
20541
20572
|
function addColumnIfMissing23(db, table, column, definition) {
|
|
20542
|
-
if (!
|
|
20573
|
+
if (!hasColumn19(db, table, column)) {
|
|
20543
20574
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
20544
20575
|
}
|
|
20545
20576
|
}
|
|
@@ -20857,7 +20888,7 @@ function up910(db) {
|
|
|
20857
20888
|
db.exec(`CREATE INDEX IF NOT EXISTS idx_summary_jobs_status
|
|
20858
20889
|
ON summary_jobs(status)`);
|
|
20859
20890
|
}
|
|
20860
|
-
function
|
|
20891
|
+
function up109(db) {
|
|
20861
20892
|
db.exec(`
|
|
20862
20893
|
CREATE TABLE IF NOT EXISTS umap_cache (
|
|
20863
20894
|
id INTEGER PRIMARY KEY,
|
|
@@ -23824,11 +23855,28 @@ function up1062(db) {
|
|
|
23824
23855
|
}
|
|
23825
23856
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
|
|
23826
23857
|
}
|
|
23858
|
+
function hasColumn182(db, table, column) {
|
|
23859
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
23860
|
+
}
|
|
23861
|
+
var TOKEN_COLUMNS2 = [
|
|
23862
|
+
["tokens_input", "INTEGER"],
|
|
23863
|
+
["tokens_output", "INTEGER"],
|
|
23864
|
+
["tokens_cache_read", "INTEGER"],
|
|
23865
|
+
["tokens_cache_write", "INTEGER"],
|
|
23866
|
+
["tokens_cost", "REAL"]
|
|
23867
|
+
];
|
|
23868
|
+
function up1072(db) {
|
|
23869
|
+
for (const [column, type] of TOKEN_COLUMNS2) {
|
|
23870
|
+
if (!hasColumn182(db, "dreaming_passes", column)) {
|
|
23871
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
|
|
23872
|
+
}
|
|
23873
|
+
}
|
|
23874
|
+
}
|
|
23827
23875
|
var MIGRATIONS2 = [
|
|
23828
23876
|
{
|
|
23829
23877
|
version: 1,
|
|
23830
23878
|
name: "baseline",
|
|
23831
|
-
up:
|
|
23879
|
+
up: up108,
|
|
23832
23880
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
23833
23881
|
},
|
|
23834
23882
|
{
|
|
@@ -23888,7 +23936,7 @@ var MIGRATIONS2 = [
|
|
|
23888
23936
|
{
|
|
23889
23937
|
version: 10,
|
|
23890
23938
|
name: "umap-cache",
|
|
23891
|
-
up:
|
|
23939
|
+
up: up109,
|
|
23892
23940
|
artifacts: { tables: ["umap_cache"] }
|
|
23893
23941
|
},
|
|
23894
23942
|
{
|
|
@@ -24664,6 +24712,20 @@ var MIGRATIONS2 = [
|
|
|
24664
24712
|
artifacts: {
|
|
24665
24713
|
columns: [{ table: "memories", column: "review_after" }]
|
|
24666
24714
|
}
|
|
24715
|
+
},
|
|
24716
|
+
{
|
|
24717
|
+
version: 107,
|
|
24718
|
+
name: "dreaming-pass-usage",
|
|
24719
|
+
up: up1072,
|
|
24720
|
+
artifacts: {
|
|
24721
|
+
columns: [
|
|
24722
|
+
{ table: "dreaming_passes", column: "tokens_input" },
|
|
24723
|
+
{ table: "dreaming_passes", column: "tokens_output" },
|
|
24724
|
+
{ table: "dreaming_passes", column: "tokens_cache_read" },
|
|
24725
|
+
{ table: "dreaming_passes", column: "tokens_cache_write" },
|
|
24726
|
+
{ table: "dreaming_passes", column: "tokens_cost" }
|
|
24727
|
+
]
|
|
24728
|
+
}
|
|
24667
24729
|
}
|
|
24668
24730
|
];
|
|
24669
24731
|
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.168.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.168.0",
|
|
29
|
+
"@signetai/core": "0.168.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.0.0",
|