@signetai/connector-openclaw 0.194.0 → 0.195.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.
Files changed (2) hide show
  1. package/dist/index.js +84 -4
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -11075,6 +11075,40 @@ function up125(db) {
11075
11075
  scannedAt
11076
11076
  });
11077
11077
  }
11078
+ function up126(db) {
11079
+ const table = db.prepare("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'dreaming_attention'").get();
11080
+ if (!table)
11081
+ return;
11082
+ if (table.sql?.includes("'surprisal'"))
11083
+ return;
11084
+ db.exec(`
11085
+ DROP INDEX IF EXISTS idx_dreaming_attention_pending;
11086
+ ALTER TABLE dreaming_attention RENAME TO dreaming_attention_legacy_126;
11087
+ CREATE TABLE dreaming_attention (
11088
+ id TEXT PRIMARY KEY,
11089
+ agent_id TEXT NOT NULL,
11090
+ kind TEXT NOT NULL CHECK (kind IN ('review_due', 'hygiene', 'contested_claim', 'evidence_requeue', 'surprisal')),
11091
+ subject_ref TEXT NOT NULL,
11092
+ details_json TEXT NOT NULL DEFAULT '{}',
11093
+ priority INTEGER NOT NULL DEFAULT 0 CHECK (priority >= 0 AND priority <= 100),
11094
+ created_at TEXT NOT NULL DEFAULT (datetime('now')),
11095
+ generation INTEGER NOT NULL DEFAULT 0,
11096
+ resolved_at TEXT,
11097
+ resolved_by_pass_id TEXT,
11098
+ UNIQUE(agent_id, kind, subject_ref)
11099
+ );
11100
+ INSERT INTO dreaming_attention (
11101
+ id, agent_id, kind, subject_ref, details_json, priority, created_at,
11102
+ generation, resolved_at, resolved_by_pass_id
11103
+ )
11104
+ SELECT id, agent_id, kind, subject_ref, details_json, priority, created_at,
11105
+ generation, resolved_at, resolved_by_pass_id
11106
+ FROM dreaming_attention_legacy_126;
11107
+ DROP TABLE dreaming_attention_legacy_126;
11108
+ CREATE INDEX idx_dreaming_attention_pending
11109
+ ON dreaming_attention (agent_id, resolved_at, priority DESC, created_at ASC);
11110
+ `);
11111
+ }
11078
11112
  var MIGRATIONS = [
11079
11113
  {
11080
11114
  version: 1,
@@ -12089,6 +12123,12 @@ var MIGRATIONS = [
12089
12123
  name: "memory-content-safety",
12090
12124
  up: up125,
12091
12125
  artifacts: { tables: ["memory_content_safety"] }
12126
+ },
12127
+ {
12128
+ version: 126,
12129
+ name: "dreaming-surprisal-attention",
12130
+ up: up126,
12131
+ artifacts: { tables: ["dreaming_attention"] }
12092
12132
  }
12093
12133
  ];
12094
12134
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -21449,7 +21489,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
21449
21489
  return true;
21450
21490
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
21451
21491
  }
21452
- function up126(db) {
21492
+ function up127(db) {
21453
21493
  db.exec(`
21454
21494
  CREATE TABLE IF NOT EXISTS schema_migrations (
21455
21495
  version INTEGER PRIMARY KEY,
@@ -21892,7 +21932,7 @@ function up1110(db) {
21892
21932
  ON session_scores(session_key);
21893
21933
  `);
21894
21934
  }
21895
- function up127(db) {
21935
+ function up128(db) {
21896
21936
  db.exec(`
21897
21937
  CREATE TABLE IF NOT EXISTS scheduled_tasks (
21898
21938
  id TEXT PRIMARY KEY,
@@ -25465,11 +25505,45 @@ function up1252(db) {
25465
25505
  scannedAt
25466
25506
  });
25467
25507
  }
25508
+ function up1262(db) {
25509
+ const table = db.prepare("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'dreaming_attention'").get();
25510
+ if (!table)
25511
+ return;
25512
+ if (table.sql?.includes("'surprisal'"))
25513
+ return;
25514
+ db.exec(`
25515
+ DROP INDEX IF EXISTS idx_dreaming_attention_pending;
25516
+ ALTER TABLE dreaming_attention RENAME TO dreaming_attention_legacy_126;
25517
+ CREATE TABLE dreaming_attention (
25518
+ id TEXT PRIMARY KEY,
25519
+ agent_id TEXT NOT NULL,
25520
+ kind TEXT NOT NULL CHECK (kind IN ('review_due', 'hygiene', 'contested_claim', 'evidence_requeue', 'surprisal')),
25521
+ subject_ref TEXT NOT NULL,
25522
+ details_json TEXT NOT NULL DEFAULT '{}',
25523
+ priority INTEGER NOT NULL DEFAULT 0 CHECK (priority >= 0 AND priority <= 100),
25524
+ created_at TEXT NOT NULL DEFAULT (datetime('now')),
25525
+ generation INTEGER NOT NULL DEFAULT 0,
25526
+ resolved_at TEXT,
25527
+ resolved_by_pass_id TEXT,
25528
+ UNIQUE(agent_id, kind, subject_ref)
25529
+ );
25530
+ INSERT INTO dreaming_attention (
25531
+ id, agent_id, kind, subject_ref, details_json, priority, created_at,
25532
+ generation, resolved_at, resolved_by_pass_id
25533
+ )
25534
+ SELECT id, agent_id, kind, subject_ref, details_json, priority, created_at,
25535
+ generation, resolved_at, resolved_by_pass_id
25536
+ FROM dreaming_attention_legacy_126;
25537
+ DROP TABLE dreaming_attention_legacy_126;
25538
+ CREATE INDEX idx_dreaming_attention_pending
25539
+ ON dreaming_attention (agent_id, resolved_at, priority DESC, created_at ASC);
25540
+ `);
25541
+ }
25468
25542
  var MIGRATIONS2 = [
25469
25543
  {
25470
25544
  version: 1,
25471
25545
  name: "baseline",
25472
- up: up126,
25546
+ up: up127,
25473
25547
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
25474
25548
  },
25475
25549
  {
@@ -25541,7 +25615,7 @@ var MIGRATIONS2 = [
25541
25615
  {
25542
25616
  version: 12,
25543
25617
  name: "scheduled-tasks",
25544
- up: up127,
25618
+ up: up128,
25545
25619
  artifacts: { tables: ["scheduled_tasks", "task_runs"] }
25546
25620
  },
25547
25621
  {
@@ -26479,6 +26553,12 @@ var MIGRATIONS2 = [
26479
26553
  name: "memory-content-safety",
26480
26554
  up: up1252,
26481
26555
  artifacts: { tables: ["memory_content_safety"] }
26556
+ },
26557
+ {
26558
+ version: 126,
26559
+ name: "dreaming-surprisal-attention",
26560
+ up: up1262,
26561
+ artifacts: { tables: ["dreaming_attention"] }
26482
26562
  }
26483
26563
  ];
26484
26564
  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.194.0",
3
+ "version": "0.195.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.194.0",
29
- "@signetai/core": "0.194.0"
28
+ "@signetai/connector-base": "0.195.0",
29
+ "@signetai/core": "0.195.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.0.0",