@signetai/connector-claude-code 0.167.0 → 0.168.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 +68 -6
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -10343,6 +10343,23 @@ function up106(db) {
10343
10343
  }
10344
10344
  db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
10345
10345
  }
10346
+ function hasColumn18(db, table, column) {
10347
+ return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
10348
+ }
10349
+ var TOKEN_COLUMNS = [
10350
+ ["tokens_input", "INTEGER"],
10351
+ ["tokens_output", "INTEGER"],
10352
+ ["tokens_cache_read", "INTEGER"],
10353
+ ["tokens_cache_write", "INTEGER"],
10354
+ ["tokens_cost", "REAL"]
10355
+ ];
10356
+ function up107(db) {
10357
+ for (const [column, type] of TOKEN_COLUMNS) {
10358
+ if (!hasColumn18(db, "dreaming_passes", column)) {
10359
+ db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
10360
+ }
10361
+ }
10362
+ }
10346
10363
  var MIGRATIONS = [
10347
10364
  {
10348
10365
  version: 1,
@@ -11183,6 +11200,20 @@ var MIGRATIONS = [
11183
11200
  artifacts: {
11184
11201
  columns: [{ table: "memories", column: "review_after" }]
11185
11202
  }
11203
+ },
11204
+ {
11205
+ version: 107,
11206
+ name: "dreaming-pass-usage",
11207
+ up: up107,
11208
+ artifacts: {
11209
+ columns: [
11210
+ { table: "dreaming_passes", column: "tokens_input" },
11211
+ { table: "dreaming_passes", column: "tokens_output" },
11212
+ { table: "dreaming_passes", column: "tokens_cache_read" },
11213
+ { table: "dreaming_passes", column: "tokens_cache_write" },
11214
+ { table: "dreaming_passes", column: "tokens_cost" }
11215
+ ]
11216
+ }
11186
11217
  }
11187
11218
  ];
11188
11219
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -18472,7 +18503,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
18472
18503
  return true;
18473
18504
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
18474
18505
  }
18475
- function up107(db) {
18506
+ function up108(db) {
18476
18507
  db.exec(`
18477
18508
  CREATE TABLE IF NOT EXISTS schema_migrations (
18478
18509
  version INTEGER PRIMARY KEY,
@@ -18561,12 +18592,12 @@ function up107(db) {
18561
18592
  } catch {}
18562
18593
  createMemoriesFts2(db);
18563
18594
  }
18564
- function hasColumn18(db, table, column) {
18595
+ function hasColumn19(db, table, column) {
18565
18596
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
18566
18597
  return rows.some((r) => r.name === column);
18567
18598
  }
18568
18599
  function addColumnIfMissing23(db, table, column, definition) {
18569
- if (!hasColumn18(db, table, column)) {
18600
+ if (!hasColumn19(db, table, column)) {
18570
18601
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
18571
18602
  }
18572
18603
  }
@@ -18884,7 +18915,7 @@ function up910(db) {
18884
18915
  db.exec(`CREATE INDEX IF NOT EXISTS idx_summary_jobs_status
18885
18916
  ON summary_jobs(status)`);
18886
18917
  }
18887
- function up108(db) {
18918
+ function up109(db) {
18888
18919
  db.exec(`
18889
18920
  CREATE TABLE IF NOT EXISTS umap_cache (
18890
18921
  id INTEGER PRIMARY KEY,
@@ -21851,11 +21882,28 @@ function up1062(db) {
21851
21882
  }
21852
21883
  db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
21853
21884
  }
21885
+ function hasColumn182(db, table, column) {
21886
+ return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
21887
+ }
21888
+ var TOKEN_COLUMNS2 = [
21889
+ ["tokens_input", "INTEGER"],
21890
+ ["tokens_output", "INTEGER"],
21891
+ ["tokens_cache_read", "INTEGER"],
21892
+ ["tokens_cache_write", "INTEGER"],
21893
+ ["tokens_cost", "REAL"]
21894
+ ];
21895
+ function up1072(db) {
21896
+ for (const [column, type] of TOKEN_COLUMNS2) {
21897
+ if (!hasColumn182(db, "dreaming_passes", column)) {
21898
+ db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
21899
+ }
21900
+ }
21901
+ }
21854
21902
  var MIGRATIONS2 = [
21855
21903
  {
21856
21904
  version: 1,
21857
21905
  name: "baseline",
21858
- up: up107,
21906
+ up: up108,
21859
21907
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
21860
21908
  },
21861
21909
  {
@@ -21915,7 +21963,7 @@ var MIGRATIONS2 = [
21915
21963
  {
21916
21964
  version: 10,
21917
21965
  name: "umap-cache",
21918
- up: up108,
21966
+ up: up109,
21919
21967
  artifacts: { tables: ["umap_cache"] }
21920
21968
  },
21921
21969
  {
@@ -22691,6 +22739,20 @@ var MIGRATIONS2 = [
22691
22739
  artifacts: {
22692
22740
  columns: [{ table: "memories", column: "review_after" }]
22693
22741
  }
22742
+ },
22743
+ {
22744
+ version: 107,
22745
+ name: "dreaming-pass-usage",
22746
+ up: up1072,
22747
+ artifacts: {
22748
+ columns: [
22749
+ { table: "dreaming_passes", column: "tokens_input" },
22750
+ { table: "dreaming_passes", column: "tokens_output" },
22751
+ { table: "dreaming_passes", column: "tokens_cache_read" },
22752
+ { table: "dreaming_passes", column: "tokens_cache_write" },
22753
+ { table: "dreaming_passes", column: "tokens_cost" }
22754
+ ]
22755
+ }
22694
22756
  }
22695
22757
  ];
22696
22758
  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.167.0",
3
+ "version": "0.168.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.167.0",
28
- "@signetai/core": "0.167.0"
27
+ "@signetai/connector-base": "0.168.0",
28
+ "@signetai/core": "0.168.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",