@signetai/connector-forge 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.
- package/dist/index.js +68 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10358,6 +10358,23 @@ function up106(db) {
|
|
|
10358
10358
|
}
|
|
10359
10359
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
|
|
10360
10360
|
}
|
|
10361
|
+
function hasColumn18(db, table, column) {
|
|
10362
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
10363
|
+
}
|
|
10364
|
+
var TOKEN_COLUMNS = [
|
|
10365
|
+
["tokens_input", "INTEGER"],
|
|
10366
|
+
["tokens_output", "INTEGER"],
|
|
10367
|
+
["tokens_cache_read", "INTEGER"],
|
|
10368
|
+
["tokens_cache_write", "INTEGER"],
|
|
10369
|
+
["tokens_cost", "REAL"]
|
|
10370
|
+
];
|
|
10371
|
+
function up107(db) {
|
|
10372
|
+
for (const [column, type] of TOKEN_COLUMNS) {
|
|
10373
|
+
if (!hasColumn18(db, "dreaming_passes", column)) {
|
|
10374
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
|
|
10375
|
+
}
|
|
10376
|
+
}
|
|
10377
|
+
}
|
|
10361
10378
|
var MIGRATIONS = [
|
|
10362
10379
|
{
|
|
10363
10380
|
version: 1,
|
|
@@ -11198,6 +11215,20 @@ var MIGRATIONS = [
|
|
|
11198
11215
|
artifacts: {
|
|
11199
11216
|
columns: [{ table: "memories", column: "review_after" }]
|
|
11200
11217
|
}
|
|
11218
|
+
},
|
|
11219
|
+
{
|
|
11220
|
+
version: 107,
|
|
11221
|
+
name: "dreaming-pass-usage",
|
|
11222
|
+
up: up107,
|
|
11223
|
+
artifacts: {
|
|
11224
|
+
columns: [
|
|
11225
|
+
{ table: "dreaming_passes", column: "tokens_input" },
|
|
11226
|
+
{ table: "dreaming_passes", column: "tokens_output" },
|
|
11227
|
+
{ table: "dreaming_passes", column: "tokens_cache_read" },
|
|
11228
|
+
{ table: "dreaming_passes", column: "tokens_cache_write" },
|
|
11229
|
+
{ table: "dreaming_passes", column: "tokens_cost" }
|
|
11230
|
+
]
|
|
11231
|
+
}
|
|
11201
11232
|
}
|
|
11202
11233
|
];
|
|
11203
11234
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -18716,7 +18747,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
18716
18747
|
return true;
|
|
18717
18748
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
18718
18749
|
}
|
|
18719
|
-
function
|
|
18750
|
+
function up108(db) {
|
|
18720
18751
|
db.exec(`
|
|
18721
18752
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
18722
18753
|
version INTEGER PRIMARY KEY,
|
|
@@ -18805,12 +18836,12 @@ function up107(db) {
|
|
|
18805
18836
|
} catch {}
|
|
18806
18837
|
createMemoriesFts2(db);
|
|
18807
18838
|
}
|
|
18808
|
-
function
|
|
18839
|
+
function hasColumn19(db, table, column) {
|
|
18809
18840
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
18810
18841
|
return rows.some((r) => r.name === column);
|
|
18811
18842
|
}
|
|
18812
18843
|
function addColumnIfMissing23(db, table, column, definition) {
|
|
18813
|
-
if (!
|
|
18844
|
+
if (!hasColumn19(db, table, column)) {
|
|
18814
18845
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
18815
18846
|
}
|
|
18816
18847
|
}
|
|
@@ -19128,7 +19159,7 @@ function up910(db) {
|
|
|
19128
19159
|
db.exec(`CREATE INDEX IF NOT EXISTS idx_summary_jobs_status
|
|
19129
19160
|
ON summary_jobs(status)`);
|
|
19130
19161
|
}
|
|
19131
|
-
function
|
|
19162
|
+
function up109(db) {
|
|
19132
19163
|
db.exec(`
|
|
19133
19164
|
CREATE TABLE IF NOT EXISTS umap_cache (
|
|
19134
19165
|
id INTEGER PRIMARY KEY,
|
|
@@ -22095,11 +22126,28 @@ function up1062(db) {
|
|
|
22095
22126
|
}
|
|
22096
22127
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
|
|
22097
22128
|
}
|
|
22129
|
+
function hasColumn182(db, table, column) {
|
|
22130
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
22131
|
+
}
|
|
22132
|
+
var TOKEN_COLUMNS2 = [
|
|
22133
|
+
["tokens_input", "INTEGER"],
|
|
22134
|
+
["tokens_output", "INTEGER"],
|
|
22135
|
+
["tokens_cache_read", "INTEGER"],
|
|
22136
|
+
["tokens_cache_write", "INTEGER"],
|
|
22137
|
+
["tokens_cost", "REAL"]
|
|
22138
|
+
];
|
|
22139
|
+
function up1072(db) {
|
|
22140
|
+
for (const [column, type] of TOKEN_COLUMNS2) {
|
|
22141
|
+
if (!hasColumn182(db, "dreaming_passes", column)) {
|
|
22142
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
|
|
22143
|
+
}
|
|
22144
|
+
}
|
|
22145
|
+
}
|
|
22098
22146
|
var MIGRATIONS2 = [
|
|
22099
22147
|
{
|
|
22100
22148
|
version: 1,
|
|
22101
22149
|
name: "baseline",
|
|
22102
|
-
up:
|
|
22150
|
+
up: up108,
|
|
22103
22151
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
22104
22152
|
},
|
|
22105
22153
|
{
|
|
@@ -22159,7 +22207,7 @@ var MIGRATIONS2 = [
|
|
|
22159
22207
|
{
|
|
22160
22208
|
version: 10,
|
|
22161
22209
|
name: "umap-cache",
|
|
22162
|
-
up:
|
|
22210
|
+
up: up109,
|
|
22163
22211
|
artifacts: { tables: ["umap_cache"] }
|
|
22164
22212
|
},
|
|
22165
22213
|
{
|
|
@@ -22935,6 +22983,20 @@ var MIGRATIONS2 = [
|
|
|
22935
22983
|
artifacts: {
|
|
22936
22984
|
columns: [{ table: "memories", column: "review_after" }]
|
|
22937
22985
|
}
|
|
22986
|
+
},
|
|
22987
|
+
{
|
|
22988
|
+
version: 107,
|
|
22989
|
+
name: "dreaming-pass-usage",
|
|
22990
|
+
up: up1072,
|
|
22991
|
+
artifacts: {
|
|
22992
|
+
columns: [
|
|
22993
|
+
{ table: "dreaming_passes", column: "tokens_input" },
|
|
22994
|
+
{ table: "dreaming_passes", column: "tokens_output" },
|
|
22995
|
+
{ table: "dreaming_passes", column: "tokens_cache_read" },
|
|
22996
|
+
{ table: "dreaming_passes", column: "tokens_cache_write" },
|
|
22997
|
+
{ table: "dreaming_passes", column: "tokens_cost" }
|
|
22998
|
+
]
|
|
22999
|
+
}
|
|
22938
23000
|
}
|
|
22939
23001
|
];
|
|
22940
23002
|
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.168.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.168.0",
|
|
28
|
+
"@signetai/core": "0.168.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|