@signetai/connector-gemini 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;
|
|
@@ -18594,7 +18646,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
18594
18646
|
return true;
|
|
18595
18647
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
18596
18648
|
}
|
|
18597
|
-
function
|
|
18649
|
+
function up109(db) {
|
|
18598
18650
|
db.exec(`
|
|
18599
18651
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
18600
18652
|
version INTEGER PRIMARY KEY,
|
|
@@ -18683,12 +18735,12 @@ function up107(db) {
|
|
|
18683
18735
|
} catch {}
|
|
18684
18736
|
createMemoriesFts2(db);
|
|
18685
18737
|
}
|
|
18686
|
-
function
|
|
18738
|
+
function hasColumn19(db, table, column) {
|
|
18687
18739
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
18688
18740
|
return rows.some((r) => r.name === column);
|
|
18689
18741
|
}
|
|
18690
18742
|
function addColumnIfMissing23(db, table, column, definition) {
|
|
18691
|
-
if (!
|
|
18743
|
+
if (!hasColumn19(db, table, column)) {
|
|
18692
18744
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
18693
18745
|
}
|
|
18694
18746
|
}
|
|
@@ -19006,7 +19058,7 @@ function up910(db) {
|
|
|
19006
19058
|
db.exec(`CREATE INDEX IF NOT EXISTS idx_summary_jobs_status
|
|
19007
19059
|
ON summary_jobs(status)`);
|
|
19008
19060
|
}
|
|
19009
|
-
function
|
|
19061
|
+
function up1010(db) {
|
|
19010
19062
|
db.exec(`
|
|
19011
19063
|
CREATE TABLE IF NOT EXISTS umap_cache (
|
|
19012
19064
|
id INTEGER PRIMARY KEY,
|
|
@@ -21973,11 +22025,41 @@ function up1062(db) {
|
|
|
21973
22025
|
}
|
|
21974
22026
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
|
|
21975
22027
|
}
|
|
22028
|
+
function hasColumn182(db, table, column) {
|
|
22029
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
22030
|
+
}
|
|
22031
|
+
var TOKEN_COLUMNS2 = [
|
|
22032
|
+
["tokens_input", "INTEGER"],
|
|
22033
|
+
["tokens_output", "INTEGER"],
|
|
22034
|
+
["tokens_cache_read", "INTEGER"],
|
|
22035
|
+
["tokens_cache_write", "INTEGER"],
|
|
22036
|
+
["tokens_cost", "REAL"]
|
|
22037
|
+
];
|
|
22038
|
+
function up1072(db) {
|
|
22039
|
+
for (const [column, type] of TOKEN_COLUMNS2) {
|
|
22040
|
+
if (!hasColumn182(db, "dreaming_passes", column)) {
|
|
22041
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
|
|
22042
|
+
}
|
|
22043
|
+
}
|
|
22044
|
+
}
|
|
22045
|
+
function up1082(db) {
|
|
22046
|
+
db.exec(`
|
|
22047
|
+
CREATE TABLE IF NOT EXISTS embedding_usage (
|
|
22048
|
+
day TEXT NOT NULL,
|
|
22049
|
+
agent_id TEXT NOT NULL DEFAULT '',
|
|
22050
|
+
source_kind TEXT NOT NULL,
|
|
22051
|
+
provider TEXT NOT NULL,
|
|
22052
|
+
requests INTEGER NOT NULL DEFAULT 0,
|
|
22053
|
+
tokens INTEGER NOT NULL DEFAULT 0,
|
|
22054
|
+
PRIMARY KEY (day, agent_id, source_kind, provider)
|
|
22055
|
+
);
|
|
22056
|
+
`);
|
|
22057
|
+
}
|
|
21976
22058
|
var MIGRATIONS2 = [
|
|
21977
22059
|
{
|
|
21978
22060
|
version: 1,
|
|
21979
22061
|
name: "baseline",
|
|
21980
|
-
up:
|
|
22062
|
+
up: up109,
|
|
21981
22063
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
21982
22064
|
},
|
|
21983
22065
|
{
|
|
@@ -22037,7 +22119,7 @@ var MIGRATIONS2 = [
|
|
|
22037
22119
|
{
|
|
22038
22120
|
version: 10,
|
|
22039
22121
|
name: "umap-cache",
|
|
22040
|
-
up:
|
|
22122
|
+
up: up1010,
|
|
22041
22123
|
artifacts: { tables: ["umap_cache"] }
|
|
22042
22124
|
},
|
|
22043
22125
|
{
|
|
@@ -22813,6 +22895,28 @@ var MIGRATIONS2 = [
|
|
|
22813
22895
|
artifacts: {
|
|
22814
22896
|
columns: [{ table: "memories", column: "review_after" }]
|
|
22815
22897
|
}
|
|
22898
|
+
},
|
|
22899
|
+
{
|
|
22900
|
+
version: 107,
|
|
22901
|
+
name: "dreaming-pass-usage",
|
|
22902
|
+
up: up1072,
|
|
22903
|
+
artifacts: {
|
|
22904
|
+
columns: [
|
|
22905
|
+
{ table: "dreaming_passes", column: "tokens_input" },
|
|
22906
|
+
{ table: "dreaming_passes", column: "tokens_output" },
|
|
22907
|
+
{ table: "dreaming_passes", column: "tokens_cache_read" },
|
|
22908
|
+
{ table: "dreaming_passes", column: "tokens_cache_write" },
|
|
22909
|
+
{ table: "dreaming_passes", column: "tokens_cost" }
|
|
22910
|
+
]
|
|
22911
|
+
}
|
|
22912
|
+
},
|
|
22913
|
+
{
|
|
22914
|
+
version: 108,
|
|
22915
|
+
name: "embedding-usage",
|
|
22916
|
+
up: up1082,
|
|
22917
|
+
artifacts: {
|
|
22918
|
+
tables: ["embedding_usage"]
|
|
22919
|
+
}
|
|
22816
22920
|
}
|
|
22817
22921
|
];
|
|
22818
22922
|
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.169.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.169.0",
|
|
28
|
+
"@signetai/core": "0.169.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|