@signetai/connector-gemini 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;
|
|
@@ -18594,7 +18625,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
18594
18625
|
return true;
|
|
18595
18626
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
18596
18627
|
}
|
|
18597
|
-
function
|
|
18628
|
+
function up108(db) {
|
|
18598
18629
|
db.exec(`
|
|
18599
18630
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
18600
18631
|
version INTEGER PRIMARY KEY,
|
|
@@ -18683,12 +18714,12 @@ function up107(db) {
|
|
|
18683
18714
|
} catch {}
|
|
18684
18715
|
createMemoriesFts2(db);
|
|
18685
18716
|
}
|
|
18686
|
-
function
|
|
18717
|
+
function hasColumn19(db, table, column) {
|
|
18687
18718
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
18688
18719
|
return rows.some((r) => r.name === column);
|
|
18689
18720
|
}
|
|
18690
18721
|
function addColumnIfMissing23(db, table, column, definition) {
|
|
18691
|
-
if (!
|
|
18722
|
+
if (!hasColumn19(db, table, column)) {
|
|
18692
18723
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
18693
18724
|
}
|
|
18694
18725
|
}
|
|
@@ -19006,7 +19037,7 @@ function up910(db) {
|
|
|
19006
19037
|
db.exec(`CREATE INDEX IF NOT EXISTS idx_summary_jobs_status
|
|
19007
19038
|
ON summary_jobs(status)`);
|
|
19008
19039
|
}
|
|
19009
|
-
function
|
|
19040
|
+
function up109(db) {
|
|
19010
19041
|
db.exec(`
|
|
19011
19042
|
CREATE TABLE IF NOT EXISTS umap_cache (
|
|
19012
19043
|
id INTEGER PRIMARY KEY,
|
|
@@ -21973,11 +22004,28 @@ function up1062(db) {
|
|
|
21973
22004
|
}
|
|
21974
22005
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
|
|
21975
22006
|
}
|
|
22007
|
+
function hasColumn182(db, table, column) {
|
|
22008
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
22009
|
+
}
|
|
22010
|
+
var TOKEN_COLUMNS2 = [
|
|
22011
|
+
["tokens_input", "INTEGER"],
|
|
22012
|
+
["tokens_output", "INTEGER"],
|
|
22013
|
+
["tokens_cache_read", "INTEGER"],
|
|
22014
|
+
["tokens_cache_write", "INTEGER"],
|
|
22015
|
+
["tokens_cost", "REAL"]
|
|
22016
|
+
];
|
|
22017
|
+
function up1072(db) {
|
|
22018
|
+
for (const [column, type] of TOKEN_COLUMNS2) {
|
|
22019
|
+
if (!hasColumn182(db, "dreaming_passes", column)) {
|
|
22020
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
|
|
22021
|
+
}
|
|
22022
|
+
}
|
|
22023
|
+
}
|
|
21976
22024
|
var MIGRATIONS2 = [
|
|
21977
22025
|
{
|
|
21978
22026
|
version: 1,
|
|
21979
22027
|
name: "baseline",
|
|
21980
|
-
up:
|
|
22028
|
+
up: up108,
|
|
21981
22029
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
21982
22030
|
},
|
|
21983
22031
|
{
|
|
@@ -22037,7 +22085,7 @@ var MIGRATIONS2 = [
|
|
|
22037
22085
|
{
|
|
22038
22086
|
version: 10,
|
|
22039
22087
|
name: "umap-cache",
|
|
22040
|
-
up:
|
|
22088
|
+
up: up109,
|
|
22041
22089
|
artifacts: { tables: ["umap_cache"] }
|
|
22042
22090
|
},
|
|
22043
22091
|
{
|
|
@@ -22813,6 +22861,20 @@ var MIGRATIONS2 = [
|
|
|
22813
22861
|
artifacts: {
|
|
22814
22862
|
columns: [{ table: "memories", column: "review_after" }]
|
|
22815
22863
|
}
|
|
22864
|
+
},
|
|
22865
|
+
{
|
|
22866
|
+
version: 107,
|
|
22867
|
+
name: "dreaming-pass-usage",
|
|
22868
|
+
up: up1072,
|
|
22869
|
+
artifacts: {
|
|
22870
|
+
columns: [
|
|
22871
|
+
{ table: "dreaming_passes", column: "tokens_input" },
|
|
22872
|
+
{ table: "dreaming_passes", column: "tokens_output" },
|
|
22873
|
+
{ table: "dreaming_passes", column: "tokens_cache_read" },
|
|
22874
|
+
{ table: "dreaming_passes", column: "tokens_cache_write" },
|
|
22875
|
+
{ table: "dreaming_passes", column: "tokens_cost" }
|
|
22876
|
+
]
|
|
22877
|
+
}
|
|
22816
22878
|
}
|
|
22817
22879
|
];
|
|
22818
22880
|
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-gemini",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.168.0",
|
|
4
4
|
"description": "Signet connector for Gemini CLI",
|
|
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",
|