@signetai/connector-openclaw 0.188.2 → 0.189.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 +113 -27
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10805,6 +10805,35 @@ function up120(db) {
|
|
|
10805
10805
|
ON source_lifecycle_state(agent_id, source_class, first_searchable_at, first_recall_at);
|
|
10806
10806
|
`);
|
|
10807
10807
|
}
|
|
10808
|
+
function hasColumn23(db, table, column) {
|
|
10809
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
10810
|
+
}
|
|
10811
|
+
function addColumnIfMissing26(db, column, definition) {
|
|
10812
|
+
if (!hasColumn23(db, "telemetry_events", column)) {
|
|
10813
|
+
db.exec(`ALTER TABLE telemetry_events ADD COLUMN ${column} ${definition}`);
|
|
10814
|
+
}
|
|
10815
|
+
}
|
|
10816
|
+
function up121(db) {
|
|
10817
|
+
addColumnIfMissing26(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
10818
|
+
addColumnIfMissing26(db, "last_attempt_at", "TEXT");
|
|
10819
|
+
addColumnIfMissing26(db, "sent_at", "TEXT");
|
|
10820
|
+
addColumnIfMissing26(db, "last_failure_code", "TEXT");
|
|
10821
|
+
db.exec(`
|
|
10822
|
+
CREATE TABLE IF NOT EXISTS telemetry_delivery_state (
|
|
10823
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
10824
|
+
window_started_at TEXT NOT NULL,
|
|
10825
|
+
success_count INTEGER NOT NULL DEFAULT 0,
|
|
10826
|
+
failure_count INTEGER NOT NULL DEFAULT 0,
|
|
10827
|
+
consecutive_failures INTEGER NOT NULL DEFAULT 0,
|
|
10828
|
+
last_attempt_at TEXT,
|
|
10829
|
+
last_success_at TEXT,
|
|
10830
|
+
last_failure_code TEXT,
|
|
10831
|
+
dropped_event_count INTEGER NOT NULL DEFAULT 0
|
|
10832
|
+
);
|
|
10833
|
+
INSERT OR IGNORE INTO telemetry_delivery_state (id, window_started_at)
|
|
10834
|
+
VALUES (1, CURRENT_TIMESTAMP);
|
|
10835
|
+
`);
|
|
10836
|
+
}
|
|
10808
10837
|
var MIGRATIONS = [
|
|
10809
10838
|
{
|
|
10810
10839
|
version: 1,
|
|
@@ -11772,6 +11801,20 @@ var MIGRATIONS = [
|
|
|
11772
11801
|
name: "source-lifecycle-telemetry",
|
|
11773
11802
|
up: up120,
|
|
11774
11803
|
artifacts: { tables: ["source_lifecycle_state"] }
|
|
11804
|
+
},
|
|
11805
|
+
{
|
|
11806
|
+
version: 121,
|
|
11807
|
+
name: "telemetry-delivery-health",
|
|
11808
|
+
up: up121,
|
|
11809
|
+
artifacts: {
|
|
11810
|
+
tables: ["telemetry_delivery_state"],
|
|
11811
|
+
columns: [
|
|
11812
|
+
{ table: "telemetry_events", column: "delivery_attempts" },
|
|
11813
|
+
{ table: "telemetry_events", column: "last_attempt_at" },
|
|
11814
|
+
{ table: "telemetry_events", column: "sent_at" },
|
|
11815
|
+
{ table: "telemetry_events", column: "last_failure_code" }
|
|
11816
|
+
]
|
|
11817
|
+
}
|
|
11775
11818
|
}
|
|
11776
11819
|
];
|
|
11777
11820
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -21039,7 +21082,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
21039
21082
|
return true;
|
|
21040
21083
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
21041
21084
|
}
|
|
21042
|
-
function
|
|
21085
|
+
function up122(db) {
|
|
21043
21086
|
db.exec(`
|
|
21044
21087
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
21045
21088
|
version INTEGER PRIMARY KEY,
|
|
@@ -21128,31 +21171,31 @@ function up121(db) {
|
|
|
21128
21171
|
} catch {}
|
|
21129
21172
|
createMemoriesFts2(db);
|
|
21130
21173
|
}
|
|
21131
|
-
function
|
|
21174
|
+
function hasColumn24(db, table, column) {
|
|
21132
21175
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
21133
21176
|
return rows.some((r) => r.name === column);
|
|
21134
21177
|
}
|
|
21135
|
-
function
|
|
21136
|
-
if (!
|
|
21178
|
+
function addColumnIfMissing27(db, table, column, definition) {
|
|
21179
|
+
if (!hasColumn24(db, table, column)) {
|
|
21137
21180
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
21138
21181
|
}
|
|
21139
21182
|
}
|
|
21140
21183
|
function up210(db) {
|
|
21141
|
-
|
|
21142
|
-
|
|
21143
|
-
|
|
21144
|
-
|
|
21145
|
-
|
|
21146
|
-
|
|
21147
|
-
|
|
21148
|
-
|
|
21149
|
-
|
|
21150
|
-
|
|
21151
|
-
|
|
21152
|
-
|
|
21153
|
-
|
|
21154
|
-
|
|
21155
|
-
|
|
21184
|
+
addColumnIfMissing27(db, "memories", "content_hash", "TEXT");
|
|
21185
|
+
addColumnIfMissing27(db, "memories", "normalized_content", "TEXT");
|
|
21186
|
+
addColumnIfMissing27(db, "memories", "is_deleted", "INTEGER DEFAULT 0");
|
|
21187
|
+
addColumnIfMissing27(db, "memories", "deleted_at", "TEXT");
|
|
21188
|
+
addColumnIfMissing27(db, "memories", "extraction_status", "TEXT DEFAULT 'none'");
|
|
21189
|
+
addColumnIfMissing27(db, "memories", "embedding_model", "TEXT");
|
|
21190
|
+
addColumnIfMissing27(db, "memories", "extraction_model", "TEXT");
|
|
21191
|
+
addColumnIfMissing27(db, "memories", "update_count", "INTEGER DEFAULT 0");
|
|
21192
|
+
addColumnIfMissing27(db, "memories", "who", "TEXT");
|
|
21193
|
+
addColumnIfMissing27(db, "memories", "why", "TEXT");
|
|
21194
|
+
addColumnIfMissing27(db, "memories", "project", "TEXT");
|
|
21195
|
+
addColumnIfMissing27(db, "memories", "pinned", "INTEGER DEFAULT 0");
|
|
21196
|
+
addColumnIfMissing27(db, "memories", "importance", "REAL DEFAULT 0.5");
|
|
21197
|
+
addColumnIfMissing27(db, "memories", "last_accessed", "TEXT");
|
|
21198
|
+
addColumnIfMissing27(db, "memories", "access_count", "INTEGER DEFAULT 0");
|
|
21156
21199
|
db.exec(`
|
|
21157
21200
|
CREATE TABLE IF NOT EXISTS memory_history (
|
|
21158
21201
|
id TEXT PRIMARY KEY,
|
|
@@ -21248,7 +21291,7 @@ function up210(db) {
|
|
|
21248
21291
|
ON memory_entity_mentions(entity_id);
|
|
21249
21292
|
`);
|
|
21250
21293
|
}
|
|
21251
|
-
function
|
|
21294
|
+
function addColumnIfMissing28(db, table, column, definition) {
|
|
21252
21295
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
21253
21296
|
if (rows.some((r) => r.name === column))
|
|
21254
21297
|
return false;
|
|
@@ -21256,8 +21299,8 @@ function addColumnIfMissing27(db, table, column, definition) {
|
|
|
21256
21299
|
return true;
|
|
21257
21300
|
}
|
|
21258
21301
|
function up310(db) {
|
|
21259
|
-
|
|
21260
|
-
|
|
21302
|
+
addColumnIfMissing28(db, "memories", "why", "TEXT");
|
|
21303
|
+
addColumnIfMissing28(db, "memories", "project", "TEXT");
|
|
21261
21304
|
db.exec(`DROP INDEX IF EXISTS idx_memories_content_hash`);
|
|
21262
21305
|
db.exec(`
|
|
21263
21306
|
UPDATE memories
|
|
@@ -21283,12 +21326,12 @@ function up310(db) {
|
|
|
21283
21326
|
WHERE content_hash IS NOT NULL AND is_deleted = 0
|
|
21284
21327
|
`);
|
|
21285
21328
|
}
|
|
21286
|
-
function
|
|
21329
|
+
function hasColumn25(db, table, column) {
|
|
21287
21330
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
21288
21331
|
return rows.some((r) => r.name === column);
|
|
21289
21332
|
}
|
|
21290
21333
|
function addColumnIfMissing32(db, table, column, definition) {
|
|
21291
|
-
if (!
|
|
21334
|
+
if (!hasColumn25(db, table, column)) {
|
|
21292
21335
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
21293
21336
|
}
|
|
21294
21337
|
}
|
|
@@ -21482,7 +21525,7 @@ function up1110(db) {
|
|
|
21482
21525
|
ON session_scores(session_key);
|
|
21483
21526
|
`);
|
|
21484
21527
|
}
|
|
21485
|
-
function
|
|
21528
|
+
function up123(db) {
|
|
21486
21529
|
db.exec(`
|
|
21487
21530
|
CREATE TABLE IF NOT EXISTS scheduled_tasks (
|
|
21488
21531
|
id TEXT PRIMARY KEY,
|
|
@@ -24878,11 +24921,40 @@ function up1202(db) {
|
|
|
24878
24921
|
ON source_lifecycle_state(agent_id, source_class, first_searchable_at, first_recall_at);
|
|
24879
24922
|
`);
|
|
24880
24923
|
}
|
|
24924
|
+
function hasColumn232(db, table, column) {
|
|
24925
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
24926
|
+
}
|
|
24927
|
+
function addColumnIfMissing262(db, column, definition) {
|
|
24928
|
+
if (!hasColumn232(db, "telemetry_events", column)) {
|
|
24929
|
+
db.exec(`ALTER TABLE telemetry_events ADD COLUMN ${column} ${definition}`);
|
|
24930
|
+
}
|
|
24931
|
+
}
|
|
24932
|
+
function up1212(db) {
|
|
24933
|
+
addColumnIfMissing262(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
24934
|
+
addColumnIfMissing262(db, "last_attempt_at", "TEXT");
|
|
24935
|
+
addColumnIfMissing262(db, "sent_at", "TEXT");
|
|
24936
|
+
addColumnIfMissing262(db, "last_failure_code", "TEXT");
|
|
24937
|
+
db.exec(`
|
|
24938
|
+
CREATE TABLE IF NOT EXISTS telemetry_delivery_state (
|
|
24939
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
24940
|
+
window_started_at TEXT NOT NULL,
|
|
24941
|
+
success_count INTEGER NOT NULL DEFAULT 0,
|
|
24942
|
+
failure_count INTEGER NOT NULL DEFAULT 0,
|
|
24943
|
+
consecutive_failures INTEGER NOT NULL DEFAULT 0,
|
|
24944
|
+
last_attempt_at TEXT,
|
|
24945
|
+
last_success_at TEXT,
|
|
24946
|
+
last_failure_code TEXT,
|
|
24947
|
+
dropped_event_count INTEGER NOT NULL DEFAULT 0
|
|
24948
|
+
);
|
|
24949
|
+
INSERT OR IGNORE INTO telemetry_delivery_state (id, window_started_at)
|
|
24950
|
+
VALUES (1, CURRENT_TIMESTAMP);
|
|
24951
|
+
`);
|
|
24952
|
+
}
|
|
24881
24953
|
var MIGRATIONS2 = [
|
|
24882
24954
|
{
|
|
24883
24955
|
version: 1,
|
|
24884
24956
|
name: "baseline",
|
|
24885
|
-
up:
|
|
24957
|
+
up: up122,
|
|
24886
24958
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
24887
24959
|
},
|
|
24888
24960
|
{
|
|
@@ -24954,7 +25026,7 @@ var MIGRATIONS2 = [
|
|
|
24954
25026
|
{
|
|
24955
25027
|
version: 12,
|
|
24956
25028
|
name: "scheduled-tasks",
|
|
24957
|
-
up:
|
|
25029
|
+
up: up123,
|
|
24958
25030
|
artifacts: { tables: ["scheduled_tasks", "task_runs"] }
|
|
24959
25031
|
},
|
|
24960
25032
|
{
|
|
@@ -25845,6 +25917,20 @@ var MIGRATIONS2 = [
|
|
|
25845
25917
|
name: "source-lifecycle-telemetry",
|
|
25846
25918
|
up: up1202,
|
|
25847
25919
|
artifacts: { tables: ["source_lifecycle_state"] }
|
|
25920
|
+
},
|
|
25921
|
+
{
|
|
25922
|
+
version: 121,
|
|
25923
|
+
name: "telemetry-delivery-health",
|
|
25924
|
+
up: up1212,
|
|
25925
|
+
artifacts: {
|
|
25926
|
+
tables: ["telemetry_delivery_state"],
|
|
25927
|
+
columns: [
|
|
25928
|
+
{ table: "telemetry_events", column: "delivery_attempts" },
|
|
25929
|
+
{ table: "telemetry_events", column: "last_attempt_at" },
|
|
25930
|
+
{ table: "telemetry_events", column: "sent_at" },
|
|
25931
|
+
{ table: "telemetry_events", column: "last_failure_code" }
|
|
25932
|
+
]
|
|
25933
|
+
}
|
|
25848
25934
|
}
|
|
25849
25935
|
];
|
|
25850
25936
|
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.189.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.189.0",
|
|
29
|
+
"@signetai/core": "0.189.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.0.0",
|