@signetai/connector-forge 0.167.0 → 0.169.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 +110 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10358,6 +10358,36 @@ 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
|
+
}
|
|
10378
|
+
function up108(db) {
|
|
10379
|
+
db.exec(`
|
|
10380
|
+
CREATE TABLE IF NOT EXISTS embedding_usage (
|
|
10381
|
+
day TEXT NOT NULL,
|
|
10382
|
+
agent_id TEXT NOT NULL DEFAULT '',
|
|
10383
|
+
source_kind TEXT NOT NULL,
|
|
10384
|
+
provider TEXT NOT NULL,
|
|
10385
|
+
requests INTEGER NOT NULL DEFAULT 0,
|
|
10386
|
+
tokens INTEGER NOT NULL DEFAULT 0,
|
|
10387
|
+
PRIMARY KEY (day, agent_id, source_kind, provider)
|
|
10388
|
+
);
|
|
10389
|
+
`);
|
|
10390
|
+
}
|
|
10361
10391
|
var MIGRATIONS = [
|
|
10362
10392
|
{
|
|
10363
10393
|
version: 1,
|
|
@@ -11198,6 +11228,28 @@ var MIGRATIONS = [
|
|
|
11198
11228
|
artifacts: {
|
|
11199
11229
|
columns: [{ table: "memories", column: "review_after" }]
|
|
11200
11230
|
}
|
|
11231
|
+
},
|
|
11232
|
+
{
|
|
11233
|
+
version: 107,
|
|
11234
|
+
name: "dreaming-pass-usage",
|
|
11235
|
+
up: up107,
|
|
11236
|
+
artifacts: {
|
|
11237
|
+
columns: [
|
|
11238
|
+
{ table: "dreaming_passes", column: "tokens_input" },
|
|
11239
|
+
{ table: "dreaming_passes", column: "tokens_output" },
|
|
11240
|
+
{ table: "dreaming_passes", column: "tokens_cache_read" },
|
|
11241
|
+
{ table: "dreaming_passes", column: "tokens_cache_write" },
|
|
11242
|
+
{ table: "dreaming_passes", column: "tokens_cost" }
|
|
11243
|
+
]
|
|
11244
|
+
}
|
|
11245
|
+
},
|
|
11246
|
+
{
|
|
11247
|
+
version: 108,
|
|
11248
|
+
name: "embedding-usage",
|
|
11249
|
+
up: up108,
|
|
11250
|
+
artifacts: {
|
|
11251
|
+
tables: ["embedding_usage"]
|
|
11252
|
+
}
|
|
11201
11253
|
}
|
|
11202
11254
|
];
|
|
11203
11255
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -18716,7 +18768,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
18716
18768
|
return true;
|
|
18717
18769
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
18718
18770
|
}
|
|
18719
|
-
function
|
|
18771
|
+
function up109(db) {
|
|
18720
18772
|
db.exec(`
|
|
18721
18773
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
18722
18774
|
version INTEGER PRIMARY KEY,
|
|
@@ -18805,12 +18857,12 @@ function up107(db) {
|
|
|
18805
18857
|
} catch {}
|
|
18806
18858
|
createMemoriesFts2(db);
|
|
18807
18859
|
}
|
|
18808
|
-
function
|
|
18860
|
+
function hasColumn19(db, table, column) {
|
|
18809
18861
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
18810
18862
|
return rows.some((r) => r.name === column);
|
|
18811
18863
|
}
|
|
18812
18864
|
function addColumnIfMissing23(db, table, column, definition) {
|
|
18813
|
-
if (!
|
|
18865
|
+
if (!hasColumn19(db, table, column)) {
|
|
18814
18866
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
18815
18867
|
}
|
|
18816
18868
|
}
|
|
@@ -19128,7 +19180,7 @@ function up910(db) {
|
|
|
19128
19180
|
db.exec(`CREATE INDEX IF NOT EXISTS idx_summary_jobs_status
|
|
19129
19181
|
ON summary_jobs(status)`);
|
|
19130
19182
|
}
|
|
19131
|
-
function
|
|
19183
|
+
function up1010(db) {
|
|
19132
19184
|
db.exec(`
|
|
19133
19185
|
CREATE TABLE IF NOT EXISTS umap_cache (
|
|
19134
19186
|
id INTEGER PRIMARY KEY,
|
|
@@ -22095,11 +22147,41 @@ function up1062(db) {
|
|
|
22095
22147
|
}
|
|
22096
22148
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
|
|
22097
22149
|
}
|
|
22150
|
+
function hasColumn182(db, table, column) {
|
|
22151
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
22152
|
+
}
|
|
22153
|
+
var TOKEN_COLUMNS2 = [
|
|
22154
|
+
["tokens_input", "INTEGER"],
|
|
22155
|
+
["tokens_output", "INTEGER"],
|
|
22156
|
+
["tokens_cache_read", "INTEGER"],
|
|
22157
|
+
["tokens_cache_write", "INTEGER"],
|
|
22158
|
+
["tokens_cost", "REAL"]
|
|
22159
|
+
];
|
|
22160
|
+
function up1072(db) {
|
|
22161
|
+
for (const [column, type] of TOKEN_COLUMNS2) {
|
|
22162
|
+
if (!hasColumn182(db, "dreaming_passes", column)) {
|
|
22163
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
|
|
22164
|
+
}
|
|
22165
|
+
}
|
|
22166
|
+
}
|
|
22167
|
+
function up1082(db) {
|
|
22168
|
+
db.exec(`
|
|
22169
|
+
CREATE TABLE IF NOT EXISTS embedding_usage (
|
|
22170
|
+
day TEXT NOT NULL,
|
|
22171
|
+
agent_id TEXT NOT NULL DEFAULT '',
|
|
22172
|
+
source_kind TEXT NOT NULL,
|
|
22173
|
+
provider TEXT NOT NULL,
|
|
22174
|
+
requests INTEGER NOT NULL DEFAULT 0,
|
|
22175
|
+
tokens INTEGER NOT NULL DEFAULT 0,
|
|
22176
|
+
PRIMARY KEY (day, agent_id, source_kind, provider)
|
|
22177
|
+
);
|
|
22178
|
+
`);
|
|
22179
|
+
}
|
|
22098
22180
|
var MIGRATIONS2 = [
|
|
22099
22181
|
{
|
|
22100
22182
|
version: 1,
|
|
22101
22183
|
name: "baseline",
|
|
22102
|
-
up:
|
|
22184
|
+
up: up109,
|
|
22103
22185
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
22104
22186
|
},
|
|
22105
22187
|
{
|
|
@@ -22159,7 +22241,7 @@ var MIGRATIONS2 = [
|
|
|
22159
22241
|
{
|
|
22160
22242
|
version: 10,
|
|
22161
22243
|
name: "umap-cache",
|
|
22162
|
-
up:
|
|
22244
|
+
up: up1010,
|
|
22163
22245
|
artifacts: { tables: ["umap_cache"] }
|
|
22164
22246
|
},
|
|
22165
22247
|
{
|
|
@@ -22935,6 +23017,28 @@ var MIGRATIONS2 = [
|
|
|
22935
23017
|
artifacts: {
|
|
22936
23018
|
columns: [{ table: "memories", column: "review_after" }]
|
|
22937
23019
|
}
|
|
23020
|
+
},
|
|
23021
|
+
{
|
|
23022
|
+
version: 107,
|
|
23023
|
+
name: "dreaming-pass-usage",
|
|
23024
|
+
up: up1072,
|
|
23025
|
+
artifacts: {
|
|
23026
|
+
columns: [
|
|
23027
|
+
{ table: "dreaming_passes", column: "tokens_input" },
|
|
23028
|
+
{ table: "dreaming_passes", column: "tokens_output" },
|
|
23029
|
+
{ table: "dreaming_passes", column: "tokens_cache_read" },
|
|
23030
|
+
{ table: "dreaming_passes", column: "tokens_cache_write" },
|
|
23031
|
+
{ table: "dreaming_passes", column: "tokens_cost" }
|
|
23032
|
+
]
|
|
23033
|
+
}
|
|
23034
|
+
},
|
|
23035
|
+
{
|
|
23036
|
+
version: 108,
|
|
23037
|
+
name: "embedding-usage",
|
|
23038
|
+
up: up1082,
|
|
23039
|
+
artifacts: {
|
|
23040
|
+
tables: ["embedding_usage"]
|
|
23041
|
+
}
|
|
22938
23042
|
}
|
|
22939
23043
|
];
|
|
22940
23044
|
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.169.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.169.0",
|
|
28
|
+
"@signetai/core": "0.169.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|