@signetai/connector-openclaw 0.167.0 → 0.169.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 +110 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10342,6 +10342,36 @@ 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
|
+
}
|
|
10362
|
+
function up108(db) {
|
|
10363
|
+
db.exec(`
|
|
10364
|
+
CREATE TABLE IF NOT EXISTS embedding_usage (
|
|
10365
|
+
day TEXT NOT NULL,
|
|
10366
|
+
agent_id TEXT NOT NULL DEFAULT '',
|
|
10367
|
+
source_kind TEXT NOT NULL,
|
|
10368
|
+
provider TEXT NOT NULL,
|
|
10369
|
+
requests INTEGER NOT NULL DEFAULT 0,
|
|
10370
|
+
tokens INTEGER NOT NULL DEFAULT 0,
|
|
10371
|
+
PRIMARY KEY (day, agent_id, source_kind, provider)
|
|
10372
|
+
);
|
|
10373
|
+
`);
|
|
10374
|
+
}
|
|
10345
10375
|
var MIGRATIONS = [
|
|
10346
10376
|
{
|
|
10347
10377
|
version: 1,
|
|
@@ -11182,6 +11212,28 @@ var MIGRATIONS = [
|
|
|
11182
11212
|
artifacts: {
|
|
11183
11213
|
columns: [{ table: "memories", column: "review_after" }]
|
|
11184
11214
|
}
|
|
11215
|
+
},
|
|
11216
|
+
{
|
|
11217
|
+
version: 107,
|
|
11218
|
+
name: "dreaming-pass-usage",
|
|
11219
|
+
up: up107,
|
|
11220
|
+
artifacts: {
|
|
11221
|
+
columns: [
|
|
11222
|
+
{ table: "dreaming_passes", column: "tokens_input" },
|
|
11223
|
+
{ table: "dreaming_passes", column: "tokens_output" },
|
|
11224
|
+
{ table: "dreaming_passes", column: "tokens_cache_read" },
|
|
11225
|
+
{ table: "dreaming_passes", column: "tokens_cache_write" },
|
|
11226
|
+
{ table: "dreaming_passes", column: "tokens_cost" }
|
|
11227
|
+
]
|
|
11228
|
+
}
|
|
11229
|
+
},
|
|
11230
|
+
{
|
|
11231
|
+
version: 108,
|
|
11232
|
+
name: "embedding-usage",
|
|
11233
|
+
up: up108,
|
|
11234
|
+
artifacts: {
|
|
11235
|
+
tables: ["embedding_usage"]
|
|
11236
|
+
}
|
|
11185
11237
|
}
|
|
11186
11238
|
];
|
|
11187
11239
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -20445,7 +20497,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
20445
20497
|
return true;
|
|
20446
20498
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
20447
20499
|
}
|
|
20448
|
-
function
|
|
20500
|
+
function up109(db) {
|
|
20449
20501
|
db.exec(`
|
|
20450
20502
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
20451
20503
|
version INTEGER PRIMARY KEY,
|
|
@@ -20534,12 +20586,12 @@ function up107(db) {
|
|
|
20534
20586
|
} catch {}
|
|
20535
20587
|
createMemoriesFts2(db);
|
|
20536
20588
|
}
|
|
20537
|
-
function
|
|
20589
|
+
function hasColumn19(db, table, column) {
|
|
20538
20590
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
20539
20591
|
return rows.some((r) => r.name === column);
|
|
20540
20592
|
}
|
|
20541
20593
|
function addColumnIfMissing23(db, table, column, definition) {
|
|
20542
|
-
if (!
|
|
20594
|
+
if (!hasColumn19(db, table, column)) {
|
|
20543
20595
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
20544
20596
|
}
|
|
20545
20597
|
}
|
|
@@ -20857,7 +20909,7 @@ function up910(db) {
|
|
|
20857
20909
|
db.exec(`CREATE INDEX IF NOT EXISTS idx_summary_jobs_status
|
|
20858
20910
|
ON summary_jobs(status)`);
|
|
20859
20911
|
}
|
|
20860
|
-
function
|
|
20912
|
+
function up1010(db) {
|
|
20861
20913
|
db.exec(`
|
|
20862
20914
|
CREATE TABLE IF NOT EXISTS umap_cache (
|
|
20863
20915
|
id INTEGER PRIMARY KEY,
|
|
@@ -23824,11 +23876,41 @@ function up1062(db) {
|
|
|
23824
23876
|
}
|
|
23825
23877
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
|
|
23826
23878
|
}
|
|
23879
|
+
function hasColumn182(db, table, column) {
|
|
23880
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
23881
|
+
}
|
|
23882
|
+
var TOKEN_COLUMNS2 = [
|
|
23883
|
+
["tokens_input", "INTEGER"],
|
|
23884
|
+
["tokens_output", "INTEGER"],
|
|
23885
|
+
["tokens_cache_read", "INTEGER"],
|
|
23886
|
+
["tokens_cache_write", "INTEGER"],
|
|
23887
|
+
["tokens_cost", "REAL"]
|
|
23888
|
+
];
|
|
23889
|
+
function up1072(db) {
|
|
23890
|
+
for (const [column, type] of TOKEN_COLUMNS2) {
|
|
23891
|
+
if (!hasColumn182(db, "dreaming_passes", column)) {
|
|
23892
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
|
|
23893
|
+
}
|
|
23894
|
+
}
|
|
23895
|
+
}
|
|
23896
|
+
function up1082(db) {
|
|
23897
|
+
db.exec(`
|
|
23898
|
+
CREATE TABLE IF NOT EXISTS embedding_usage (
|
|
23899
|
+
day TEXT NOT NULL,
|
|
23900
|
+
agent_id TEXT NOT NULL DEFAULT '',
|
|
23901
|
+
source_kind TEXT NOT NULL,
|
|
23902
|
+
provider TEXT NOT NULL,
|
|
23903
|
+
requests INTEGER NOT NULL DEFAULT 0,
|
|
23904
|
+
tokens INTEGER NOT NULL DEFAULT 0,
|
|
23905
|
+
PRIMARY KEY (day, agent_id, source_kind, provider)
|
|
23906
|
+
);
|
|
23907
|
+
`);
|
|
23908
|
+
}
|
|
23827
23909
|
var MIGRATIONS2 = [
|
|
23828
23910
|
{
|
|
23829
23911
|
version: 1,
|
|
23830
23912
|
name: "baseline",
|
|
23831
|
-
up:
|
|
23913
|
+
up: up109,
|
|
23832
23914
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
23833
23915
|
},
|
|
23834
23916
|
{
|
|
@@ -23888,7 +23970,7 @@ var MIGRATIONS2 = [
|
|
|
23888
23970
|
{
|
|
23889
23971
|
version: 10,
|
|
23890
23972
|
name: "umap-cache",
|
|
23891
|
-
up:
|
|
23973
|
+
up: up1010,
|
|
23892
23974
|
artifacts: { tables: ["umap_cache"] }
|
|
23893
23975
|
},
|
|
23894
23976
|
{
|
|
@@ -24664,6 +24746,28 @@ var MIGRATIONS2 = [
|
|
|
24664
24746
|
artifacts: {
|
|
24665
24747
|
columns: [{ table: "memories", column: "review_after" }]
|
|
24666
24748
|
}
|
|
24749
|
+
},
|
|
24750
|
+
{
|
|
24751
|
+
version: 107,
|
|
24752
|
+
name: "dreaming-pass-usage",
|
|
24753
|
+
up: up1072,
|
|
24754
|
+
artifacts: {
|
|
24755
|
+
columns: [
|
|
24756
|
+
{ table: "dreaming_passes", column: "tokens_input" },
|
|
24757
|
+
{ table: "dreaming_passes", column: "tokens_output" },
|
|
24758
|
+
{ table: "dreaming_passes", column: "tokens_cache_read" },
|
|
24759
|
+
{ table: "dreaming_passes", column: "tokens_cache_write" },
|
|
24760
|
+
{ table: "dreaming_passes", column: "tokens_cost" }
|
|
24761
|
+
]
|
|
24762
|
+
}
|
|
24763
|
+
},
|
|
24764
|
+
{
|
|
24765
|
+
version: 108,
|
|
24766
|
+
name: "embedding-usage",
|
|
24767
|
+
up: up1082,
|
|
24768
|
+
artifacts: {
|
|
24769
|
+
tables: ["embedding_usage"]
|
|
24770
|
+
}
|
|
24667
24771
|
}
|
|
24668
24772
|
];
|
|
24669
24773
|
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.169.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.169.0",
|
|
29
|
+
"@signetai/core": "0.169.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.0.0",
|