@signetai/connector-claude-code 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
@@ -9879,6 +9879,79 @@ function up87(db) {
9879
9879
  ON summary_jobs(agent_id, session_key, boundary_reason)
9880
9880
  `);
9881
9881
  }
9882
+ function up88(db) {
9883
+ db.exec(`
9884
+ CREATE TABLE IF NOT EXISTS transcript_recovery_files (
9885
+ agent_id TEXT NOT NULL,
9886
+ source_path TEXT NOT NULL,
9887
+ harness TEXT NOT NULL,
9888
+ size_bytes INTEGER NOT NULL,
9889
+ mtime_ms INTEGER NOT NULL,
9890
+ content_sha256 TEXT NOT NULL,
9891
+ session_id TEXT NOT NULL,
9892
+ last_scanned_at TEXT NOT NULL,
9893
+ PRIMARY KEY (agent_id, source_path)
9894
+ );
9895
+
9896
+ CREATE INDEX IF NOT EXISTS idx_transcript_capture_jobs_agent_session_id
9897
+ ON transcript_capture_jobs(agent_id, session_id, status);
9898
+ `);
9899
+ }
9900
+ function up89(db) {
9901
+ db.exec(`
9902
+ CREATE TABLE IF NOT EXISTS job_cancellations (
9903
+ id TEXT PRIMARY KEY,
9904
+ source_table TEXT NOT NULL,
9905
+ source_id TEXT NOT NULL,
9906
+ status_before TEXT NOT NULL,
9907
+ payload_json TEXT NOT NULL,
9908
+ reason TEXT,
9909
+ actor TEXT NOT NULL,
9910
+ actor_type TEXT NOT NULL,
9911
+ request_id TEXT,
9912
+ created_at TEXT NOT NULL
9913
+ )
9914
+ `);
9915
+ if (!indexExists(db, "job_cancellations", "idx_job_cancellations_source")) {
9916
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_source
9917
+ ON job_cancellations(source_table, source_id)`);
9918
+ }
9919
+ if (!indexExists(db, "job_cancellations", "idx_job_cancellations_created_at")) {
9920
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_created_at
9921
+ ON job_cancellations(created_at)`);
9922
+ }
9923
+ }
9924
+ function indexExists(db, table, indexName) {
9925
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
9926
+ return rows.some((row) => row.name === indexName);
9927
+ }
9928
+ function up90(db) {
9929
+ db.exec(`
9930
+ CREATE TABLE IF NOT EXISTS job_archive (
9931
+ id TEXT PRIMARY KEY,
9932
+ source_table TEXT NOT NULL,
9933
+ source_id TEXT NOT NULL,
9934
+ status TEXT NOT NULL,
9935
+ payload_json TEXT NOT NULL,
9936
+ archived_at TEXT NOT NULL,
9937
+ archived_by TEXT NOT NULL,
9938
+ reason TEXT,
9939
+ created_at TEXT NOT NULL
9940
+ )
9941
+ `);
9942
+ if (!indexExists2(db, "job_archive", "idx_job_archive_source")) {
9943
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_source
9944
+ ON job_archive(source_table, source_id)`);
9945
+ }
9946
+ if (!indexExists2(db, "job_archive", "idx_job_archive_archived_at")) {
9947
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_archived_at
9948
+ ON job_archive(archived_at)`);
9949
+ }
9950
+ }
9951
+ function indexExists2(db, table, indexName) {
9952
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
9953
+ return rows.some((row) => row.name === indexName);
9954
+ }
9882
9955
  var MIGRATIONS = [
9883
9956
  {
9884
9957
  version: 1,
@@ -10590,6 +10663,30 @@ var MIGRATIONS = [
10590
10663
  artifacts: {
10591
10664
  columns: [{ table: "summary_jobs", column: "boundary_reason" }]
10592
10665
  }
10666
+ },
10667
+ {
10668
+ version: 88,
10669
+ name: "transcript-recovery-files",
10670
+ up: up88,
10671
+ artifacts: {
10672
+ tables: ["transcript_recovery_files"]
10673
+ }
10674
+ },
10675
+ {
10676
+ version: 89,
10677
+ name: "job-cancellations",
10678
+ up: up89,
10679
+ artifacts: {
10680
+ tables: ["job_cancellations"]
10681
+ }
10682
+ },
10683
+ {
10684
+ version: 90,
10685
+ name: "job-archive",
10686
+ up: up90,
10687
+ artifacts: {
10688
+ tables: ["job_archive"]
10689
+ }
10593
10690
  }
10594
10691
  ];
10595
10692
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -17953,7 +18050,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
17953
18050
  return true;
17954
18051
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
17955
18052
  }
17956
- function up88(db) {
18053
+ function up91(db) {
17957
18054
  db.exec(`
17958
18055
  CREATE TABLE IF NOT EXISTS schema_migrations (
17959
18056
  version INTEGER PRIMARY KEY,
@@ -18328,7 +18425,7 @@ function up710(db) {
18328
18425
  db.exec("ALTER TABLE memory_jobs ADD COLUMN document_id TEXT");
18329
18426
  }
18330
18427
  }
18331
- function up89(db) {
18428
+ function up810(db) {
18332
18429
  const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='embeddings'").all();
18333
18430
  if (tables.length === 0)
18334
18431
  return;
@@ -20895,11 +20992,84 @@ function up872(db) {
20895
20992
  ON summary_jobs(agent_id, session_key, boundary_reason)
20896
20993
  `);
20897
20994
  }
20995
+ function up882(db) {
20996
+ db.exec(`
20997
+ CREATE TABLE IF NOT EXISTS transcript_recovery_files (
20998
+ agent_id TEXT NOT NULL,
20999
+ source_path TEXT NOT NULL,
21000
+ harness TEXT NOT NULL,
21001
+ size_bytes INTEGER NOT NULL,
21002
+ mtime_ms INTEGER NOT NULL,
21003
+ content_sha256 TEXT NOT NULL,
21004
+ session_id TEXT NOT NULL,
21005
+ last_scanned_at TEXT NOT NULL,
21006
+ PRIMARY KEY (agent_id, source_path)
21007
+ );
21008
+
21009
+ CREATE INDEX IF NOT EXISTS idx_transcript_capture_jobs_agent_session_id
21010
+ ON transcript_capture_jobs(agent_id, session_id, status);
21011
+ `);
21012
+ }
21013
+ function up892(db) {
21014
+ db.exec(`
21015
+ CREATE TABLE IF NOT EXISTS job_cancellations (
21016
+ id TEXT PRIMARY KEY,
21017
+ source_table TEXT NOT NULL,
21018
+ source_id TEXT NOT NULL,
21019
+ status_before TEXT NOT NULL,
21020
+ payload_json TEXT NOT NULL,
21021
+ reason TEXT,
21022
+ actor TEXT NOT NULL,
21023
+ actor_type TEXT NOT NULL,
21024
+ request_id TEXT,
21025
+ created_at TEXT NOT NULL
21026
+ )
21027
+ `);
21028
+ if (!indexExists3(db, "job_cancellations", "idx_job_cancellations_source")) {
21029
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_source
21030
+ ON job_cancellations(source_table, source_id)`);
21031
+ }
21032
+ if (!indexExists3(db, "job_cancellations", "idx_job_cancellations_created_at")) {
21033
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_created_at
21034
+ ON job_cancellations(created_at)`);
21035
+ }
21036
+ }
21037
+ function indexExists3(db, table, indexName) {
21038
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
21039
+ return rows.some((row) => row.name === indexName);
21040
+ }
21041
+ function up902(db) {
21042
+ db.exec(`
21043
+ CREATE TABLE IF NOT EXISTS job_archive (
21044
+ id TEXT PRIMARY KEY,
21045
+ source_table TEXT NOT NULL,
21046
+ source_id TEXT NOT NULL,
21047
+ status TEXT NOT NULL,
21048
+ payload_json TEXT NOT NULL,
21049
+ archived_at TEXT NOT NULL,
21050
+ archived_by TEXT NOT NULL,
21051
+ reason TEXT,
21052
+ created_at TEXT NOT NULL
21053
+ )
21054
+ `);
21055
+ if (!indexExists22(db, "job_archive", "idx_job_archive_source")) {
21056
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_source
21057
+ ON job_archive(source_table, source_id)`);
21058
+ }
21059
+ if (!indexExists22(db, "job_archive", "idx_job_archive_archived_at")) {
21060
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_archived_at
21061
+ ON job_archive(archived_at)`);
21062
+ }
21063
+ }
21064
+ function indexExists22(db, table, indexName) {
21065
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
21066
+ return rows.some((row) => row.name === indexName);
21067
+ }
20898
21068
  var MIGRATIONS2 = [
20899
21069
  {
20900
21070
  version: 1,
20901
21071
  name: "baseline",
20902
- up: up88,
21072
+ up: up91,
20903
21073
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
20904
21074
  },
20905
21075
  {
@@ -20948,7 +21118,7 @@ var MIGRATIONS2 = [
20948
21118
  {
20949
21119
  version: 8,
20950
21120
  name: "embeddings-unique-hash",
20951
- up: up89
21121
+ up: up810
20952
21122
  },
20953
21123
  {
20954
21124
  version: 9,
@@ -21606,6 +21776,30 @@ var MIGRATIONS2 = [
21606
21776
  artifacts: {
21607
21777
  columns: [{ table: "summary_jobs", column: "boundary_reason" }]
21608
21778
  }
21779
+ },
21780
+ {
21781
+ version: 88,
21782
+ name: "transcript-recovery-files",
21783
+ up: up882,
21784
+ artifacts: {
21785
+ tables: ["transcript_recovery_files"]
21786
+ }
21787
+ },
21788
+ {
21789
+ version: 89,
21790
+ name: "job-cancellations",
21791
+ up: up892,
21792
+ artifacts: {
21793
+ tables: ["job_cancellations"]
21794
+ }
21795
+ },
21796
+ {
21797
+ version: 90,
21798
+ name: "job-archive",
21799
+ up: up902,
21800
+ artifacts: {
21801
+ tables: ["job_archive"]
21802
+ }
21609
21803
  }
21610
21804
  ];
21611
21805
  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-claude-code",
3
- "version": "0.150.5",
3
+ "version": "0.152.0",
4
4
  "description": "Signet connector for Claude Code (Anthropic CLI)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,8 +24,8 @@
24
24
  "typecheck": "tsc --noEmit"
25
25
  },
26
26
  "dependencies": {
27
- "@signetai/connector-base": "0.150.5",
28
- "@signetai/core": "0.150.5"
27
+ "@signetai/connector-base": "0.152.0",
28
+ "@signetai/core": "0.152.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",