@signetai/connector-claude-code 0.147.10 → 0.147.13

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 +65 -23
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -9866,6 +9866,19 @@ function up86(db) {
9866
9866
  ON summary_jobs(agent_id, session_key, content_hash)
9867
9867
  `);
9868
9868
  }
9869
+ function addColumnIfMissing22(db, table, column, definition) {
9870
+ const cols = db.prepare(`PRAGMA table_info(${table})`).all();
9871
+ if (cols.some((col) => col.name === column))
9872
+ return;
9873
+ db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
9874
+ }
9875
+ function up87(db) {
9876
+ addColumnIfMissing22(db, "summary_jobs", "boundary_reason", "TEXT");
9877
+ db.exec(`
9878
+ CREATE INDEX IF NOT EXISTS idx_summary_jobs_boundary_reason
9879
+ ON summary_jobs(agent_id, session_key, boundary_reason)
9880
+ `);
9881
+ }
9869
9882
  var MIGRATIONS = [
9870
9883
  {
9871
9884
  version: 1,
@@ -10569,6 +10582,14 @@ var MIGRATIONS = [
10569
10582
  artifacts: {
10570
10583
  columns: [{ table: "summary_jobs", column: "content_hash" }]
10571
10584
  }
10585
+ },
10586
+ {
10587
+ version: 87,
10588
+ name: "summary-jobs-boundary-reason",
10589
+ up: up87,
10590
+ artifacts: {
10591
+ columns: [{ table: "summary_jobs", column: "boundary_reason" }]
10592
+ }
10572
10593
  }
10573
10594
  ];
10574
10595
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -17924,7 +17945,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
17924
17945
  return true;
17925
17946
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
17926
17947
  }
17927
- function up87(db) {
17948
+ function up88(db) {
17928
17949
  db.exec(`
17929
17950
  CREATE TABLE IF NOT EXISTS schema_migrations (
17930
17951
  version INTEGER PRIMARY KEY,
@@ -18017,27 +18038,27 @@ function hasColumn13(db, table, column) {
18017
18038
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
18018
18039
  return rows.some((r) => r.name === column);
18019
18040
  }
18020
- function addColumnIfMissing22(db, table, column, definition) {
18041
+ function addColumnIfMissing23(db, table, column, definition) {
18021
18042
  if (!hasColumn13(db, table, column)) {
18022
18043
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
18023
18044
  }
18024
18045
  }
18025
18046
  function up210(db) {
18026
- addColumnIfMissing22(db, "memories", "content_hash", "TEXT");
18027
- addColumnIfMissing22(db, "memories", "normalized_content", "TEXT");
18028
- addColumnIfMissing22(db, "memories", "is_deleted", "INTEGER DEFAULT 0");
18029
- addColumnIfMissing22(db, "memories", "deleted_at", "TEXT");
18030
- addColumnIfMissing22(db, "memories", "extraction_status", "TEXT DEFAULT 'none'");
18031
- addColumnIfMissing22(db, "memories", "embedding_model", "TEXT");
18032
- addColumnIfMissing22(db, "memories", "extraction_model", "TEXT");
18033
- addColumnIfMissing22(db, "memories", "update_count", "INTEGER DEFAULT 0");
18034
- addColumnIfMissing22(db, "memories", "who", "TEXT");
18035
- addColumnIfMissing22(db, "memories", "why", "TEXT");
18036
- addColumnIfMissing22(db, "memories", "project", "TEXT");
18037
- addColumnIfMissing22(db, "memories", "pinned", "INTEGER DEFAULT 0");
18038
- addColumnIfMissing22(db, "memories", "importance", "REAL DEFAULT 0.5");
18039
- addColumnIfMissing22(db, "memories", "last_accessed", "TEXT");
18040
- addColumnIfMissing22(db, "memories", "access_count", "INTEGER DEFAULT 0");
18047
+ addColumnIfMissing23(db, "memories", "content_hash", "TEXT");
18048
+ addColumnIfMissing23(db, "memories", "normalized_content", "TEXT");
18049
+ addColumnIfMissing23(db, "memories", "is_deleted", "INTEGER DEFAULT 0");
18050
+ addColumnIfMissing23(db, "memories", "deleted_at", "TEXT");
18051
+ addColumnIfMissing23(db, "memories", "extraction_status", "TEXT DEFAULT 'none'");
18052
+ addColumnIfMissing23(db, "memories", "embedding_model", "TEXT");
18053
+ addColumnIfMissing23(db, "memories", "extraction_model", "TEXT");
18054
+ addColumnIfMissing23(db, "memories", "update_count", "INTEGER DEFAULT 0");
18055
+ addColumnIfMissing23(db, "memories", "who", "TEXT");
18056
+ addColumnIfMissing23(db, "memories", "why", "TEXT");
18057
+ addColumnIfMissing23(db, "memories", "project", "TEXT");
18058
+ addColumnIfMissing23(db, "memories", "pinned", "INTEGER DEFAULT 0");
18059
+ addColumnIfMissing23(db, "memories", "importance", "REAL DEFAULT 0.5");
18060
+ addColumnIfMissing23(db, "memories", "last_accessed", "TEXT");
18061
+ addColumnIfMissing23(db, "memories", "access_count", "INTEGER DEFAULT 0");
18041
18062
  db.exec(`
18042
18063
  CREATE TABLE IF NOT EXISTS memory_history (
18043
18064
  id TEXT PRIMARY KEY,
@@ -18133,7 +18154,7 @@ function up210(db) {
18133
18154
  ON memory_entity_mentions(entity_id);
18134
18155
  `);
18135
18156
  }
18136
- function addColumnIfMissing23(db, table, column, definition) {
18157
+ function addColumnIfMissing24(db, table, column, definition) {
18137
18158
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
18138
18159
  if (rows.some((r) => r.name === column))
18139
18160
  return false;
@@ -18141,8 +18162,8 @@ function addColumnIfMissing23(db, table, column, definition) {
18141
18162
  return true;
18142
18163
  }
18143
18164
  function up310(db) {
18144
- addColumnIfMissing23(db, "memories", "why", "TEXT");
18145
- addColumnIfMissing23(db, "memories", "project", "TEXT");
18165
+ addColumnIfMissing24(db, "memories", "why", "TEXT");
18166
+ addColumnIfMissing24(db, "memories", "project", "TEXT");
18146
18167
  db.exec(`DROP INDEX IF EXISTS idx_memories_content_hash`);
18147
18168
  db.exec(`
18148
18169
  UPDATE memories
@@ -18299,7 +18320,7 @@ function up710(db) {
18299
18320
  db.exec("ALTER TABLE memory_jobs ADD COLUMN document_id TEXT");
18300
18321
  }
18301
18322
  }
18302
- function up88(db) {
18323
+ function up89(db) {
18303
18324
  const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='embeddings'").all();
18304
18325
  if (tables.length === 0)
18305
18326
  return;
@@ -20853,11 +20874,24 @@ function up862(db) {
20853
20874
  ON summary_jobs(agent_id, session_key, content_hash)
20854
20875
  `);
20855
20876
  }
20877
+ function addColumnIfMissing222(db, table, column, definition) {
20878
+ const cols = db.prepare(`PRAGMA table_info(${table})`).all();
20879
+ if (cols.some((col) => col.name === column))
20880
+ return;
20881
+ db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
20882
+ }
20883
+ function up872(db) {
20884
+ addColumnIfMissing222(db, "summary_jobs", "boundary_reason", "TEXT");
20885
+ db.exec(`
20886
+ CREATE INDEX IF NOT EXISTS idx_summary_jobs_boundary_reason
20887
+ ON summary_jobs(agent_id, session_key, boundary_reason)
20888
+ `);
20889
+ }
20856
20890
  var MIGRATIONS2 = [
20857
20891
  {
20858
20892
  version: 1,
20859
20893
  name: "baseline",
20860
- up: up87,
20894
+ up: up88,
20861
20895
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
20862
20896
  },
20863
20897
  {
@@ -20906,7 +20940,7 @@ var MIGRATIONS2 = [
20906
20940
  {
20907
20941
  version: 8,
20908
20942
  name: "embeddings-unique-hash",
20909
- up: up88
20943
+ up: up89
20910
20944
  },
20911
20945
  {
20912
20946
  version: 9,
@@ -21556,6 +21590,14 @@ var MIGRATIONS2 = [
21556
21590
  artifacts: {
21557
21591
  columns: [{ table: "summary_jobs", column: "content_hash" }]
21558
21592
  }
21593
+ },
21594
+ {
21595
+ version: 87,
21596
+ name: "summary-jobs-boundary-reason",
21597
+ up: up872,
21598
+ artifacts: {
21599
+ columns: [{ table: "summary_jobs", column: "boundary_reason" }]
21600
+ }
21559
21601
  }
21560
21602
  ];
21561
21603
  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.147.10",
3
+ "version": "0.147.13",
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.147.10",
28
- "@signetai/core": "0.147.10"
27
+ "@signetai/connector-base": "0.147.13",
28
+ "@signetai/core": "0.147.13"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",