@signetai/connector-forge 0.145.10 → 0.146.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 +66 -6
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -9614,6 +9614,25 @@ function up81(db) {
9614
9614
  ON aggregate_evidence_sources(source_kind, source_id);
9615
9615
  `);
9616
9616
  }
9617
+ function hasColumn11(db, table, column) {
9618
+ const rows = db.prepare(`PRAGMA table_info(${table})`).all();
9619
+ return rows.some((row) => row.name === column);
9620
+ }
9621
+ var COLUMNS = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
9622
+ function up82(db) {
9623
+ for (const column of COLUMNS) {
9624
+ if (!hasColumn11(db, "skill_invocations", column)) {
9625
+ db.exec(`ALTER TABLE skill_invocations ADD COLUMN ${column} TEXT`);
9626
+ }
9627
+ }
9628
+ db.exec("DROP INDEX IF EXISTS idx_skill_inv_dedupe");
9629
+ db.exec(`
9630
+ CREATE UNIQUE INDEX idx_skill_inv_dedupe
9631
+ ON skill_invocations(agent_id, harness, session_id, tool_use_id)
9632
+ WHERE harness IS NOT NULL AND session_id IS NOT NULL AND tool_use_id IS NOT NULL
9633
+ `);
9634
+ db.exec("CREATE INDEX IF NOT EXISTS idx_skill_inv_harness ON skill_invocations(harness, created_at)");
9635
+ }
9617
9636
  var MIGRATIONS = [
9618
9637
  {
9619
9638
  version: 1,
@@ -10267,6 +10286,17 @@ var MIGRATIONS = [
10267
10286
  artifacts: {
10268
10287
  tables: ["aggregate_evidence_sources"]
10269
10288
  }
10289
+ },
10290
+ {
10291
+ version: 82,
10292
+ name: "skill-invocations-harness",
10293
+ up: up82,
10294
+ artifacts: {
10295
+ columns: [
10296
+ { table: "skill_invocations", column: "harness" },
10297
+ { table: "skill_invocations", column: "tool_use_id" }
10298
+ ]
10299
+ }
10270
10300
  }
10271
10301
  ];
10272
10302
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -17666,7 +17696,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
17666
17696
  return true;
17667
17697
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
17668
17698
  }
17669
- function up82(db) {
17699
+ function up83(db) {
17670
17700
  db.exec(`
17671
17701
  CREATE TABLE IF NOT EXISTS schema_migrations (
17672
17702
  version INTEGER PRIMARY KEY,
@@ -17755,12 +17785,12 @@ function up82(db) {
17755
17785
  } catch {}
17756
17786
  createMemoriesFts2(db);
17757
17787
  }
17758
- function hasColumn11(db, table, column) {
17788
+ function hasColumn12(db, table, column) {
17759
17789
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
17760
17790
  return rows.some((r) => r.name === column);
17761
17791
  }
17762
17792
  function addColumnIfMissing20(db, table, column, definition) {
17763
- if (!hasColumn11(db, table, column)) {
17793
+ if (!hasColumn12(db, table, column)) {
17764
17794
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
17765
17795
  }
17766
17796
  }
@@ -18041,7 +18071,7 @@ function up710(db) {
18041
18071
  db.exec("ALTER TABLE memory_jobs ADD COLUMN document_id TEXT");
18042
18072
  }
18043
18073
  }
18044
- function up83(db) {
18074
+ function up84(db) {
18045
18075
  const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='embeddings'").all();
18046
18076
  if (tables.length === 0)
18047
18077
  return;
@@ -20331,11 +20361,30 @@ function up812(db) {
20331
20361
  ON aggregate_evidence_sources(source_kind, source_id);
20332
20362
  `);
20333
20363
  }
20364
+ function hasColumn112(db, table, column) {
20365
+ const rows = db.prepare(`PRAGMA table_info(${table})`).all();
20366
+ return rows.some((row) => row.name === column);
20367
+ }
20368
+ var COLUMNS2 = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
20369
+ function up822(db) {
20370
+ for (const column of COLUMNS2) {
20371
+ if (!hasColumn112(db, "skill_invocations", column)) {
20372
+ db.exec(`ALTER TABLE skill_invocations ADD COLUMN ${column} TEXT`);
20373
+ }
20374
+ }
20375
+ db.exec("DROP INDEX IF EXISTS idx_skill_inv_dedupe");
20376
+ db.exec(`
20377
+ CREATE UNIQUE INDEX idx_skill_inv_dedupe
20378
+ ON skill_invocations(agent_id, harness, session_id, tool_use_id)
20379
+ WHERE harness IS NOT NULL AND session_id IS NOT NULL AND tool_use_id IS NOT NULL
20380
+ `);
20381
+ db.exec("CREATE INDEX IF NOT EXISTS idx_skill_inv_harness ON skill_invocations(harness, created_at)");
20382
+ }
20334
20383
  var MIGRATIONS2 = [
20335
20384
  {
20336
20385
  version: 1,
20337
20386
  name: "baseline",
20338
- up: up82,
20387
+ up: up83,
20339
20388
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
20340
20389
  },
20341
20390
  {
@@ -20384,7 +20433,7 @@ var MIGRATIONS2 = [
20384
20433
  {
20385
20434
  version: 8,
20386
20435
  name: "embeddings-unique-hash",
20387
- up: up83
20436
+ up: up84
20388
20437
  },
20389
20438
  {
20390
20439
  version: 9,
@@ -20984,6 +21033,17 @@ var MIGRATIONS2 = [
20984
21033
  artifacts: {
20985
21034
  tables: ["aggregate_evidence_sources"]
20986
21035
  }
21036
+ },
21037
+ {
21038
+ version: 82,
21039
+ name: "skill-invocations-harness",
21040
+ up: up822,
21041
+ artifacts: {
21042
+ columns: [
21043
+ { table: "skill_invocations", column: "harness" },
21044
+ { table: "skill_invocations", column: "tool_use_id" }
21045
+ ]
21046
+ }
20987
21047
  }
20988
21048
  ];
20989
21049
  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-forge",
3
- "version": "0.145.10",
3
+ "version": "0.146.0",
4
4
  "description": "Signet connector for ForgeCode - installs MCP, identity, and skills integration",
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.145.10",
28
- "@signetai/core": "0.145.10"
27
+ "@signetai/connector-base": "0.146.0",
28
+ "@signetai/core": "0.146.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",