@signetai/connector-forge 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
@@ -9891,6 +9891,79 @@ function up87(db) {
9891
9891
  ON summary_jobs(agent_id, session_key, boundary_reason)
9892
9892
  `);
9893
9893
  }
9894
+ function up88(db) {
9895
+ db.exec(`
9896
+ CREATE TABLE IF NOT EXISTS transcript_recovery_files (
9897
+ agent_id TEXT NOT NULL,
9898
+ source_path TEXT NOT NULL,
9899
+ harness TEXT NOT NULL,
9900
+ size_bytes INTEGER NOT NULL,
9901
+ mtime_ms INTEGER NOT NULL,
9902
+ content_sha256 TEXT NOT NULL,
9903
+ session_id TEXT NOT NULL,
9904
+ last_scanned_at TEXT NOT NULL,
9905
+ PRIMARY KEY (agent_id, source_path)
9906
+ );
9907
+
9908
+ CREATE INDEX IF NOT EXISTS idx_transcript_capture_jobs_agent_session_id
9909
+ ON transcript_capture_jobs(agent_id, session_id, status);
9910
+ `);
9911
+ }
9912
+ function up89(db) {
9913
+ db.exec(`
9914
+ CREATE TABLE IF NOT EXISTS job_cancellations (
9915
+ id TEXT PRIMARY KEY,
9916
+ source_table TEXT NOT NULL,
9917
+ source_id TEXT NOT NULL,
9918
+ status_before TEXT NOT NULL,
9919
+ payload_json TEXT NOT NULL,
9920
+ reason TEXT,
9921
+ actor TEXT NOT NULL,
9922
+ actor_type TEXT NOT NULL,
9923
+ request_id TEXT,
9924
+ created_at TEXT NOT NULL
9925
+ )
9926
+ `);
9927
+ if (!indexExists(db, "job_cancellations", "idx_job_cancellations_source")) {
9928
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_source
9929
+ ON job_cancellations(source_table, source_id)`);
9930
+ }
9931
+ if (!indexExists(db, "job_cancellations", "idx_job_cancellations_created_at")) {
9932
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_created_at
9933
+ ON job_cancellations(created_at)`);
9934
+ }
9935
+ }
9936
+ function indexExists(db, table, indexName) {
9937
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
9938
+ return rows.some((row) => row.name === indexName);
9939
+ }
9940
+ function up90(db) {
9941
+ db.exec(`
9942
+ CREATE TABLE IF NOT EXISTS job_archive (
9943
+ id TEXT PRIMARY KEY,
9944
+ source_table TEXT NOT NULL,
9945
+ source_id TEXT NOT NULL,
9946
+ status TEXT NOT NULL,
9947
+ payload_json TEXT NOT NULL,
9948
+ archived_at TEXT NOT NULL,
9949
+ archived_by TEXT NOT NULL,
9950
+ reason TEXT,
9951
+ created_at TEXT NOT NULL
9952
+ )
9953
+ `);
9954
+ if (!indexExists2(db, "job_archive", "idx_job_archive_source")) {
9955
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_source
9956
+ ON job_archive(source_table, source_id)`);
9957
+ }
9958
+ if (!indexExists2(db, "job_archive", "idx_job_archive_archived_at")) {
9959
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_archived_at
9960
+ ON job_archive(archived_at)`);
9961
+ }
9962
+ }
9963
+ function indexExists2(db, table, indexName) {
9964
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
9965
+ return rows.some((row) => row.name === indexName);
9966
+ }
9894
9967
  var MIGRATIONS = [
9895
9968
  {
9896
9969
  version: 1,
@@ -10602,6 +10675,30 @@ var MIGRATIONS = [
10602
10675
  artifacts: {
10603
10676
  columns: [{ table: "summary_jobs", column: "boundary_reason" }]
10604
10677
  }
10678
+ },
10679
+ {
10680
+ version: 88,
10681
+ name: "transcript-recovery-files",
10682
+ up: up88,
10683
+ artifacts: {
10684
+ tables: ["transcript_recovery_files"]
10685
+ }
10686
+ },
10687
+ {
10688
+ version: 89,
10689
+ name: "job-cancellations",
10690
+ up: up89,
10691
+ artifacts: {
10692
+ tables: ["job_cancellations"]
10693
+ }
10694
+ },
10695
+ {
10696
+ version: 90,
10697
+ name: "job-archive",
10698
+ up: up90,
10699
+ artifacts: {
10700
+ tables: ["job_archive"]
10701
+ }
10605
10702
  }
10606
10703
  ];
10607
10704
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -18009,7 +18106,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
18009
18106
  return true;
18010
18107
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
18011
18108
  }
18012
- function up88(db) {
18109
+ function up91(db) {
18013
18110
  db.exec(`
18014
18111
  CREATE TABLE IF NOT EXISTS schema_migrations (
18015
18112
  version INTEGER PRIMARY KEY,
@@ -18384,7 +18481,7 @@ function up710(db) {
18384
18481
  db.exec("ALTER TABLE memory_jobs ADD COLUMN document_id TEXT");
18385
18482
  }
18386
18483
  }
18387
- function up89(db) {
18484
+ function up810(db) {
18388
18485
  const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='embeddings'").all();
18389
18486
  if (tables.length === 0)
18390
18487
  return;
@@ -20951,11 +21048,84 @@ function up872(db) {
20951
21048
  ON summary_jobs(agent_id, session_key, boundary_reason)
20952
21049
  `);
20953
21050
  }
21051
+ function up882(db) {
21052
+ db.exec(`
21053
+ CREATE TABLE IF NOT EXISTS transcript_recovery_files (
21054
+ agent_id TEXT NOT NULL,
21055
+ source_path TEXT NOT NULL,
21056
+ harness TEXT NOT NULL,
21057
+ size_bytes INTEGER NOT NULL,
21058
+ mtime_ms INTEGER NOT NULL,
21059
+ content_sha256 TEXT NOT NULL,
21060
+ session_id TEXT NOT NULL,
21061
+ last_scanned_at TEXT NOT NULL,
21062
+ PRIMARY KEY (agent_id, source_path)
21063
+ );
21064
+
21065
+ CREATE INDEX IF NOT EXISTS idx_transcript_capture_jobs_agent_session_id
21066
+ ON transcript_capture_jobs(agent_id, session_id, status);
21067
+ `);
21068
+ }
21069
+ function up892(db) {
21070
+ db.exec(`
21071
+ CREATE TABLE IF NOT EXISTS job_cancellations (
21072
+ id TEXT PRIMARY KEY,
21073
+ source_table TEXT NOT NULL,
21074
+ source_id TEXT NOT NULL,
21075
+ status_before TEXT NOT NULL,
21076
+ payload_json TEXT NOT NULL,
21077
+ reason TEXT,
21078
+ actor TEXT NOT NULL,
21079
+ actor_type TEXT NOT NULL,
21080
+ request_id TEXT,
21081
+ created_at TEXT NOT NULL
21082
+ )
21083
+ `);
21084
+ if (!indexExists3(db, "job_cancellations", "idx_job_cancellations_source")) {
21085
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_source
21086
+ ON job_cancellations(source_table, source_id)`);
21087
+ }
21088
+ if (!indexExists3(db, "job_cancellations", "idx_job_cancellations_created_at")) {
21089
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_created_at
21090
+ ON job_cancellations(created_at)`);
21091
+ }
21092
+ }
21093
+ function indexExists3(db, table, indexName) {
21094
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
21095
+ return rows.some((row) => row.name === indexName);
21096
+ }
21097
+ function up902(db) {
21098
+ db.exec(`
21099
+ CREATE TABLE IF NOT EXISTS job_archive (
21100
+ id TEXT PRIMARY KEY,
21101
+ source_table TEXT NOT NULL,
21102
+ source_id TEXT NOT NULL,
21103
+ status TEXT NOT NULL,
21104
+ payload_json TEXT NOT NULL,
21105
+ archived_at TEXT NOT NULL,
21106
+ archived_by TEXT NOT NULL,
21107
+ reason TEXT,
21108
+ created_at TEXT NOT NULL
21109
+ )
21110
+ `);
21111
+ if (!indexExists22(db, "job_archive", "idx_job_archive_source")) {
21112
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_source
21113
+ ON job_archive(source_table, source_id)`);
21114
+ }
21115
+ if (!indexExists22(db, "job_archive", "idx_job_archive_archived_at")) {
21116
+ db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_archived_at
21117
+ ON job_archive(archived_at)`);
21118
+ }
21119
+ }
21120
+ function indexExists22(db, table, indexName) {
21121
+ const rows = db.prepare(`PRAGMA index_list(${table})`).all();
21122
+ return rows.some((row) => row.name === indexName);
21123
+ }
20954
21124
  var MIGRATIONS2 = [
20955
21125
  {
20956
21126
  version: 1,
20957
21127
  name: "baseline",
20958
- up: up88,
21128
+ up: up91,
20959
21129
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
20960
21130
  },
20961
21131
  {
@@ -21004,7 +21174,7 @@ var MIGRATIONS2 = [
21004
21174
  {
21005
21175
  version: 8,
21006
21176
  name: "embeddings-unique-hash",
21007
- up: up89
21177
+ up: up810
21008
21178
  },
21009
21179
  {
21010
21180
  version: 9,
@@ -21662,6 +21832,30 @@ var MIGRATIONS2 = [
21662
21832
  artifacts: {
21663
21833
  columns: [{ table: "summary_jobs", column: "boundary_reason" }]
21664
21834
  }
21835
+ },
21836
+ {
21837
+ version: 88,
21838
+ name: "transcript-recovery-files",
21839
+ up: up882,
21840
+ artifacts: {
21841
+ tables: ["transcript_recovery_files"]
21842
+ }
21843
+ },
21844
+ {
21845
+ version: 89,
21846
+ name: "job-cancellations",
21847
+ up: up892,
21848
+ artifacts: {
21849
+ tables: ["job_cancellations"]
21850
+ }
21851
+ },
21852
+ {
21853
+ version: 90,
21854
+ name: "job-archive",
21855
+ up: up902,
21856
+ artifacts: {
21857
+ tables: ["job_archive"]
21858
+ }
21665
21859
  }
21666
21860
  ];
21667
21861
  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.150.5",
3
+ "version": "0.152.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.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",