@signetai/connector-openclaw 0.150.5 → 0.152.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 +198 -4
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -11024,6 +11024,79 @@ function up87(db) {
11024
11024
  ON summary_jobs(agent_id, session_key, boundary_reason)
11025
11025
  `);
11026
11026
  }
11027
+ function up88(db) {
11028
+ db.exec(`
11029
+ CREATE TABLE IF NOT EXISTS transcript_recovery_files (
11030
+ agent_id TEXT NOT NULL,
11031
+ source_path TEXT NOT NULL,
11032
+ harness TEXT NOT NULL,
11033
+ size_bytes INTEGER NOT NULL,
11034
+ mtime_ms INTEGER NOT NULL,
11035
+ content_sha256 TEXT NOT NULL,
11036
+ session_id TEXT NOT NULL,
11037
+ last_scanned_at TEXT NOT NULL,
11038
+ PRIMARY KEY (agent_id, source_path)
11039
+ );
11040
+
11041
+ CREATE INDEX IF NOT EXISTS idx_transcript_capture_jobs_agent_session_id
11042
+ ON transcript_capture_jobs(agent_id, session_id, status);
11043
+ `);
11044
+ }
11045
+ function up89(db) {
11046
+ db.exec(`
11047
+ CREATE TABLE IF NOT EXISTS job_cancellations (
11048
+ id TEXT PRIMARY KEY,
11049
+ source_table TEXT NOT NULL,
11050
+ source_id TEXT NOT NULL,
11051
+ status_before TEXT NOT NULL,
11052
+ payload_json TEXT NOT NULL,
11053
+ reason TEXT,
11054
+ actor TEXT NOT NULL,
11055
+ actor_type TEXT NOT NULL,
11056
+ request_id TEXT,
11057
+ created_at TEXT NOT NULL
11058
+ )
11059
+ `);
11060
+ if (!indexExists(db, "job_cancellations", "idx_job_cancellations_source")) {
11061
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_source
11062
+ ON job_cancellations(source_table, source_id)`);
11063
+ }
11064
+ if (!indexExists(db, "job_cancellations", "idx_job_cancellations_created_at")) {
11065
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_created_at
11066
+ ON job_cancellations(created_at)`);
11067
+ }
11068
+ }
11069
+ function indexExists(db, table, indexName) {
11070
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
11071
+ return rows.some((row) => row.name === indexName);
11072
+ }
11073
+ function up90(db) {
11074
+ db.exec(`
11075
+ CREATE TABLE IF NOT EXISTS job_archive (
11076
+ id TEXT PRIMARY KEY,
11077
+ source_table TEXT NOT NULL,
11078
+ source_id TEXT NOT NULL,
11079
+ status TEXT NOT NULL,
11080
+ payload_json TEXT NOT NULL,
11081
+ archived_at TEXT NOT NULL,
11082
+ archived_by TEXT NOT NULL,
11083
+ reason TEXT,
11084
+ created_at TEXT NOT NULL
11085
+ )
11086
+ `);
11087
+ if (!indexExists2(db, "job_archive", "idx_job_archive_source")) {
11088
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_source
11089
+ ON job_archive(source_table, source_id)`);
11090
+ }
11091
+ if (!indexExists2(db, "job_archive", "idx_job_archive_archived_at")) {
11092
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_archived_at
11093
+ ON job_archive(archived_at)`);
11094
+ }
11095
+ }
11096
+ function indexExists2(db, table, indexName) {
11097
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
11098
+ return rows.some((row) => row.name === indexName);
11099
+ }
11027
11100
  var MIGRATIONS = [
11028
11101
  {
11029
11102
  version: 1,
@@ -11735,6 +11808,30 @@ var MIGRATIONS = [
11735
11808
  artifacts: {
11736
11809
  columns: [{ table: "summary_jobs", column: "boundary_reason" }]
11737
11810
  }
11811
+ },
11812
+ {
11813
+ version: 88,
11814
+ name: "transcript-recovery-files",
11815
+ up: up88,
11816
+ artifacts: {
11817
+ tables: ["transcript_recovery_files"]
11818
+ }
11819
+ },
11820
+ {
11821
+ version: 89,
11822
+ name: "job-cancellations",
11823
+ up: up89,
11824
+ artifacts: {
11825
+ tables: ["job_cancellations"]
11826
+ }
11827
+ },
11828
+ {
11829
+ version: 90,
11830
+ name: "job-archive",
11831
+ up: up90,
11832
+ artifacts: {
11833
+ tables: ["job_archive"]
11834
+ }
11738
11835
  }
11739
11836
  ];
11740
11837
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -19093,7 +19190,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
19093
19190
  return true;
19094
19191
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
19095
19192
  }
19096
- function up88(db) {
19193
+ function up91(db) {
19097
19194
  db.exec(`
19098
19195
  CREATE TABLE IF NOT EXISTS schema_migrations (
19099
19196
  version INTEGER PRIMARY KEY,
@@ -19468,7 +19565,7 @@ function up710(db) {
19468
19565
  db.exec("ALTER TABLE memory_jobs ADD COLUMN document_id TEXT");
19469
19566
  }
19470
19567
  }
19471
- function up89(db) {
19568
+ function up810(db) {
19472
19569
  const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='embeddings'").all();
19473
19570
  if (tables.length === 0)
19474
19571
  return;
@@ -22035,11 +22132,84 @@ function up872(db) {
22035
22132
  ON summary_jobs(agent_id, session_key, boundary_reason)
22036
22133
  `);
22037
22134
  }
22135
+ function up882(db) {
22136
+ db.exec(`
22137
+ CREATE TABLE IF NOT EXISTS transcript_recovery_files (
22138
+ agent_id TEXT NOT NULL,
22139
+ source_path TEXT NOT NULL,
22140
+ harness TEXT NOT NULL,
22141
+ size_bytes INTEGER NOT NULL,
22142
+ mtime_ms INTEGER NOT NULL,
22143
+ content_sha256 TEXT NOT NULL,
22144
+ session_id TEXT NOT NULL,
22145
+ last_scanned_at TEXT NOT NULL,
22146
+ PRIMARY KEY (agent_id, source_path)
22147
+ );
22148
+
22149
+ CREATE INDEX IF NOT EXISTS idx_transcript_capture_jobs_agent_session_id
22150
+ ON transcript_capture_jobs(agent_id, session_id, status);
22151
+ `);
22152
+ }
22153
+ function up892(db) {
22154
+ db.exec(`
22155
+ CREATE TABLE IF NOT EXISTS job_cancellations (
22156
+ id TEXT PRIMARY KEY,
22157
+ source_table TEXT NOT NULL,
22158
+ source_id TEXT NOT NULL,
22159
+ status_before TEXT NOT NULL,
22160
+ payload_json TEXT NOT NULL,
22161
+ reason TEXT,
22162
+ actor TEXT NOT NULL,
22163
+ actor_type TEXT NOT NULL,
22164
+ request_id TEXT,
22165
+ created_at TEXT NOT NULL
22166
+ )
22167
+ `);
22168
+ if (!indexExists3(db, "job_cancellations", "idx_job_cancellations_source")) {
22169
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_source
22170
+ ON job_cancellations(source_table, source_id)`);
22171
+ }
22172
+ if (!indexExists3(db, "job_cancellations", "idx_job_cancellations_created_at")) {
22173
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_created_at
22174
+ ON job_cancellations(created_at)`);
22175
+ }
22176
+ }
22177
+ function indexExists3(db, table, indexName) {
22178
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
22179
+ return rows.some((row) => row.name === indexName);
22180
+ }
22181
+ function up902(db) {
22182
+ db.exec(`
22183
+ CREATE TABLE IF NOT EXISTS job_archive (
22184
+ id TEXT PRIMARY KEY,
22185
+ source_table TEXT NOT NULL,
22186
+ source_id TEXT NOT NULL,
22187
+ status TEXT NOT NULL,
22188
+ payload_json TEXT NOT NULL,
22189
+ archived_at TEXT NOT NULL,
22190
+ archived_by TEXT NOT NULL,
22191
+ reason TEXT,
22192
+ created_at TEXT NOT NULL
22193
+ )
22194
+ `);
22195
+ if (!indexExists22(db, "job_archive", "idx_job_archive_source")) {
22196
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_source
22197
+ ON job_archive(source_table, source_id)`);
22198
+ }
22199
+ if (!indexExists22(db, "job_archive", "idx_job_archive_archived_at")) {
22200
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_archived_at
22201
+ ON job_archive(archived_at)`);
22202
+ }
22203
+ }
22204
+ function indexExists22(db, table, indexName) {
22205
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
22206
+ return rows.some((row) => row.name === indexName);
22207
+ }
22038
22208
  var MIGRATIONS2 = [
22039
22209
  {
22040
22210
  version: 1,
22041
22211
  name: "baseline",
22042
- up: up88,
22212
+ up: up91,
22043
22213
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
22044
22214
  },
22045
22215
  {
@@ -22088,7 +22258,7 @@ var MIGRATIONS2 = [
22088
22258
  {
22089
22259
  version: 8,
22090
22260
  name: "embeddings-unique-hash",
22091
- up: up89
22261
+ up: up810
22092
22262
  },
22093
22263
  {
22094
22264
  version: 9,
@@ -22746,6 +22916,30 @@ var MIGRATIONS2 = [
22746
22916
  artifacts: {
22747
22917
  columns: [{ table: "summary_jobs", column: "boundary_reason" }]
22748
22918
  }
22919
+ },
22920
+ {
22921
+ version: 88,
22922
+ name: "transcript-recovery-files",
22923
+ up: up882,
22924
+ artifacts: {
22925
+ tables: ["transcript_recovery_files"]
22926
+ }
22927
+ },
22928
+ {
22929
+ version: 89,
22930
+ name: "job-cancellations",
22931
+ up: up892,
22932
+ artifacts: {
22933
+ tables: ["job_cancellations"]
22934
+ }
22935
+ },
22936
+ {
22937
+ version: 90,
22938
+ name: "job-archive",
22939
+ up: up902,
22940
+ artifacts: {
22941
+ tables: ["job_archive"]
22942
+ }
22749
22943
  }
22750
22944
  ];
22751
22945
  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.150.5",
3
+ "version": "0.152.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.150.5",
29
- "@signetai/core": "0.150.5",
28
+ "@signetai/connector-base": "0.152.0",
29
+ "@signetai/core": "0.152.0",
30
30
  "json5": "^2.2.3"
31
31
  },
32
32
  "devDependencies": {