@signetai/connector-forge 0.188.2 → 0.189.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.
- package/dist/index.js +113 -27
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10821,6 +10821,35 @@ function up120(db) {
|
|
|
10821
10821
|
ON source_lifecycle_state(agent_id, source_class, first_searchable_at, first_recall_at);
|
|
10822
10822
|
`);
|
|
10823
10823
|
}
|
|
10824
|
+
function hasColumn23(db, table, column) {
|
|
10825
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
10826
|
+
}
|
|
10827
|
+
function addColumnIfMissing26(db, column, definition) {
|
|
10828
|
+
if (!hasColumn23(db, "telemetry_events", column)) {
|
|
10829
|
+
db.exec(`ALTER TABLE telemetry_events ADD COLUMN ${column} ${definition}`);
|
|
10830
|
+
}
|
|
10831
|
+
}
|
|
10832
|
+
function up121(db) {
|
|
10833
|
+
addColumnIfMissing26(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
10834
|
+
addColumnIfMissing26(db, "last_attempt_at", "TEXT");
|
|
10835
|
+
addColumnIfMissing26(db, "sent_at", "TEXT");
|
|
10836
|
+
addColumnIfMissing26(db, "last_failure_code", "TEXT");
|
|
10837
|
+
db.exec(`
|
|
10838
|
+
CREATE TABLE IF NOT EXISTS telemetry_delivery_state (
|
|
10839
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
10840
|
+
window_started_at TEXT NOT NULL,
|
|
10841
|
+
success_count INTEGER NOT NULL DEFAULT 0,
|
|
10842
|
+
failure_count INTEGER NOT NULL DEFAULT 0,
|
|
10843
|
+
consecutive_failures INTEGER NOT NULL DEFAULT 0,
|
|
10844
|
+
last_attempt_at TEXT,
|
|
10845
|
+
last_success_at TEXT,
|
|
10846
|
+
last_failure_code TEXT,
|
|
10847
|
+
dropped_event_count INTEGER NOT NULL DEFAULT 0
|
|
10848
|
+
);
|
|
10849
|
+
INSERT OR IGNORE INTO telemetry_delivery_state (id, window_started_at)
|
|
10850
|
+
VALUES (1, CURRENT_TIMESTAMP);
|
|
10851
|
+
`);
|
|
10852
|
+
}
|
|
10824
10853
|
var MIGRATIONS = [
|
|
10825
10854
|
{
|
|
10826
10855
|
version: 1,
|
|
@@ -11788,6 +11817,20 @@ var MIGRATIONS = [
|
|
|
11788
11817
|
name: "source-lifecycle-telemetry",
|
|
11789
11818
|
up: up120,
|
|
11790
11819
|
artifacts: { tables: ["source_lifecycle_state"] }
|
|
11820
|
+
},
|
|
11821
|
+
{
|
|
11822
|
+
version: 121,
|
|
11823
|
+
name: "telemetry-delivery-health",
|
|
11824
|
+
up: up121,
|
|
11825
|
+
artifacts: {
|
|
11826
|
+
tables: ["telemetry_delivery_state"],
|
|
11827
|
+
columns: [
|
|
11828
|
+
{ table: "telemetry_events", column: "delivery_attempts" },
|
|
11829
|
+
{ table: "telemetry_events", column: "last_attempt_at" },
|
|
11830
|
+
{ table: "telemetry_events", column: "sent_at" },
|
|
11831
|
+
{ table: "telemetry_events", column: "last_failure_code" }
|
|
11832
|
+
]
|
|
11833
|
+
}
|
|
11791
11834
|
}
|
|
11792
11835
|
];
|
|
11793
11836
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -19310,7 +19353,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
19310
19353
|
return true;
|
|
19311
19354
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
19312
19355
|
}
|
|
19313
|
-
function
|
|
19356
|
+
function up122(db) {
|
|
19314
19357
|
db.exec(`
|
|
19315
19358
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
19316
19359
|
version INTEGER PRIMARY KEY,
|
|
@@ -19399,31 +19442,31 @@ function up121(db) {
|
|
|
19399
19442
|
} catch {}
|
|
19400
19443
|
createMemoriesFts2(db);
|
|
19401
19444
|
}
|
|
19402
|
-
function
|
|
19445
|
+
function hasColumn24(db, table, column) {
|
|
19403
19446
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
19404
19447
|
return rows.some((r) => r.name === column);
|
|
19405
19448
|
}
|
|
19406
|
-
function
|
|
19407
|
-
if (!
|
|
19449
|
+
function addColumnIfMissing27(db, table, column, definition) {
|
|
19450
|
+
if (!hasColumn24(db, table, column)) {
|
|
19408
19451
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
19409
19452
|
}
|
|
19410
19453
|
}
|
|
19411
19454
|
function up210(db) {
|
|
19412
|
-
|
|
19413
|
-
|
|
19414
|
-
|
|
19415
|
-
|
|
19416
|
-
|
|
19417
|
-
|
|
19418
|
-
|
|
19419
|
-
|
|
19420
|
-
|
|
19421
|
-
|
|
19422
|
-
|
|
19423
|
-
|
|
19424
|
-
|
|
19425
|
-
|
|
19426
|
-
|
|
19455
|
+
addColumnIfMissing27(db, "memories", "content_hash", "TEXT");
|
|
19456
|
+
addColumnIfMissing27(db, "memories", "normalized_content", "TEXT");
|
|
19457
|
+
addColumnIfMissing27(db, "memories", "is_deleted", "INTEGER DEFAULT 0");
|
|
19458
|
+
addColumnIfMissing27(db, "memories", "deleted_at", "TEXT");
|
|
19459
|
+
addColumnIfMissing27(db, "memories", "extraction_status", "TEXT DEFAULT 'none'");
|
|
19460
|
+
addColumnIfMissing27(db, "memories", "embedding_model", "TEXT");
|
|
19461
|
+
addColumnIfMissing27(db, "memories", "extraction_model", "TEXT");
|
|
19462
|
+
addColumnIfMissing27(db, "memories", "update_count", "INTEGER DEFAULT 0");
|
|
19463
|
+
addColumnIfMissing27(db, "memories", "who", "TEXT");
|
|
19464
|
+
addColumnIfMissing27(db, "memories", "why", "TEXT");
|
|
19465
|
+
addColumnIfMissing27(db, "memories", "project", "TEXT");
|
|
19466
|
+
addColumnIfMissing27(db, "memories", "pinned", "INTEGER DEFAULT 0");
|
|
19467
|
+
addColumnIfMissing27(db, "memories", "importance", "REAL DEFAULT 0.5");
|
|
19468
|
+
addColumnIfMissing27(db, "memories", "last_accessed", "TEXT");
|
|
19469
|
+
addColumnIfMissing27(db, "memories", "access_count", "INTEGER DEFAULT 0");
|
|
19427
19470
|
db.exec(`
|
|
19428
19471
|
CREATE TABLE IF NOT EXISTS memory_history (
|
|
19429
19472
|
id TEXT PRIMARY KEY,
|
|
@@ -19519,7 +19562,7 @@ function up210(db) {
|
|
|
19519
19562
|
ON memory_entity_mentions(entity_id);
|
|
19520
19563
|
`);
|
|
19521
19564
|
}
|
|
19522
|
-
function
|
|
19565
|
+
function addColumnIfMissing28(db, table, column, definition) {
|
|
19523
19566
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
19524
19567
|
if (rows.some((r) => r.name === column))
|
|
19525
19568
|
return false;
|
|
@@ -19527,8 +19570,8 @@ function addColumnIfMissing27(db, table, column, definition) {
|
|
|
19527
19570
|
return true;
|
|
19528
19571
|
}
|
|
19529
19572
|
function up310(db) {
|
|
19530
|
-
|
|
19531
|
-
|
|
19573
|
+
addColumnIfMissing28(db, "memories", "why", "TEXT");
|
|
19574
|
+
addColumnIfMissing28(db, "memories", "project", "TEXT");
|
|
19532
19575
|
db.exec(`DROP INDEX IF EXISTS idx_memories_content_hash`);
|
|
19533
19576
|
db.exec(`
|
|
19534
19577
|
UPDATE memories
|
|
@@ -19554,12 +19597,12 @@ function up310(db) {
|
|
|
19554
19597
|
WHERE content_hash IS NOT NULL AND is_deleted = 0
|
|
19555
19598
|
`);
|
|
19556
19599
|
}
|
|
19557
|
-
function
|
|
19600
|
+
function hasColumn25(db, table, column) {
|
|
19558
19601
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
19559
19602
|
return rows.some((r) => r.name === column);
|
|
19560
19603
|
}
|
|
19561
19604
|
function addColumnIfMissing32(db, table, column, definition) {
|
|
19562
|
-
if (!
|
|
19605
|
+
if (!hasColumn25(db, table, column)) {
|
|
19563
19606
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
19564
19607
|
}
|
|
19565
19608
|
}
|
|
@@ -19753,7 +19796,7 @@ function up1110(db) {
|
|
|
19753
19796
|
ON session_scores(session_key);
|
|
19754
19797
|
`);
|
|
19755
19798
|
}
|
|
19756
|
-
function
|
|
19799
|
+
function up123(db) {
|
|
19757
19800
|
db.exec(`
|
|
19758
19801
|
CREATE TABLE IF NOT EXISTS scheduled_tasks (
|
|
19759
19802
|
id TEXT PRIMARY KEY,
|
|
@@ -23149,11 +23192,40 @@ function up1202(db) {
|
|
|
23149
23192
|
ON source_lifecycle_state(agent_id, source_class, first_searchable_at, first_recall_at);
|
|
23150
23193
|
`);
|
|
23151
23194
|
}
|
|
23195
|
+
function hasColumn232(db, table, column) {
|
|
23196
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
23197
|
+
}
|
|
23198
|
+
function addColumnIfMissing262(db, column, definition) {
|
|
23199
|
+
if (!hasColumn232(db, "telemetry_events", column)) {
|
|
23200
|
+
db.exec(`ALTER TABLE telemetry_events ADD COLUMN ${column} ${definition}`);
|
|
23201
|
+
}
|
|
23202
|
+
}
|
|
23203
|
+
function up1212(db) {
|
|
23204
|
+
addColumnIfMissing262(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
23205
|
+
addColumnIfMissing262(db, "last_attempt_at", "TEXT");
|
|
23206
|
+
addColumnIfMissing262(db, "sent_at", "TEXT");
|
|
23207
|
+
addColumnIfMissing262(db, "last_failure_code", "TEXT");
|
|
23208
|
+
db.exec(`
|
|
23209
|
+
CREATE TABLE IF NOT EXISTS telemetry_delivery_state (
|
|
23210
|
+
id INTEGER PRIMARY KEY CHECK (id = 1),
|
|
23211
|
+
window_started_at TEXT NOT NULL,
|
|
23212
|
+
success_count INTEGER NOT NULL DEFAULT 0,
|
|
23213
|
+
failure_count INTEGER NOT NULL DEFAULT 0,
|
|
23214
|
+
consecutive_failures INTEGER NOT NULL DEFAULT 0,
|
|
23215
|
+
last_attempt_at TEXT,
|
|
23216
|
+
last_success_at TEXT,
|
|
23217
|
+
last_failure_code TEXT,
|
|
23218
|
+
dropped_event_count INTEGER NOT NULL DEFAULT 0
|
|
23219
|
+
);
|
|
23220
|
+
INSERT OR IGNORE INTO telemetry_delivery_state (id, window_started_at)
|
|
23221
|
+
VALUES (1, CURRENT_TIMESTAMP);
|
|
23222
|
+
`);
|
|
23223
|
+
}
|
|
23152
23224
|
var MIGRATIONS2 = [
|
|
23153
23225
|
{
|
|
23154
23226
|
version: 1,
|
|
23155
23227
|
name: "baseline",
|
|
23156
|
-
up:
|
|
23228
|
+
up: up122,
|
|
23157
23229
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
23158
23230
|
},
|
|
23159
23231
|
{
|
|
@@ -23225,7 +23297,7 @@ var MIGRATIONS2 = [
|
|
|
23225
23297
|
{
|
|
23226
23298
|
version: 12,
|
|
23227
23299
|
name: "scheduled-tasks",
|
|
23228
|
-
up:
|
|
23300
|
+
up: up123,
|
|
23229
23301
|
artifacts: { tables: ["scheduled_tasks", "task_runs"] }
|
|
23230
23302
|
},
|
|
23231
23303
|
{
|
|
@@ -24116,6 +24188,20 @@ var MIGRATIONS2 = [
|
|
|
24116
24188
|
name: "source-lifecycle-telemetry",
|
|
24117
24189
|
up: up1202,
|
|
24118
24190
|
artifacts: { tables: ["source_lifecycle_state"] }
|
|
24191
|
+
},
|
|
24192
|
+
{
|
|
24193
|
+
version: 121,
|
|
24194
|
+
name: "telemetry-delivery-health",
|
|
24195
|
+
up: up1212,
|
|
24196
|
+
artifacts: {
|
|
24197
|
+
tables: ["telemetry_delivery_state"],
|
|
24198
|
+
columns: [
|
|
24199
|
+
{ table: "telemetry_events", column: "delivery_attempts" },
|
|
24200
|
+
{ table: "telemetry_events", column: "last_attempt_at" },
|
|
24201
|
+
{ table: "telemetry_events", column: "sent_at" },
|
|
24202
|
+
{ table: "telemetry_events", column: "last_failure_code" }
|
|
24203
|
+
]
|
|
24204
|
+
}
|
|
24119
24205
|
}
|
|
24120
24206
|
];
|
|
24121
24207
|
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.
|
|
3
|
+
"version": "0.189.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.
|
|
28
|
-
"@signetai/core": "0.
|
|
27
|
+
"@signetai/connector-base": "0.189.0",
|
|
28
|
+
"@signetai/core": "0.189.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|