@signetai/connector-gemini 0.184.0 → 0.185.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 +143 -27
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10513,6 +10513,50 @@ function up115(db) {
|
|
|
10513
10513
|
ON cross_agent_message_receipts(agent_id, acknowledged_at, message_id);
|
|
10514
10514
|
`);
|
|
10515
10515
|
}
|
|
10516
|
+
function hasColumn21(db, table, column) {
|
|
10517
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
10518
|
+
}
|
|
10519
|
+
function addColumnIfMissing24(db, column, definition) {
|
|
10520
|
+
if (!hasColumn21(db, "cross_agent_messages", column)) {
|
|
10521
|
+
db.exec(`ALTER TABLE cross_agent_messages ADD COLUMN ${column} ${definition}`);
|
|
10522
|
+
}
|
|
10523
|
+
}
|
|
10524
|
+
function up116(db) {
|
|
10525
|
+
const table = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'cross_agent_messages'").get();
|
|
10526
|
+
if (table == null)
|
|
10527
|
+
return;
|
|
10528
|
+
addColumnIfMissing24(db, "delivery_state", "TEXT NOT NULL DEFAULT 'pending'");
|
|
10529
|
+
addColumnIfMissing24(db, "delivery_attempt_id", "TEXT");
|
|
10530
|
+
addColumnIfMissing24(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
10531
|
+
addColumnIfMissing24(db, "delivery_lease_token", "TEXT");
|
|
10532
|
+
addColumnIfMissing24(db, "delivery_lease_expires_at", "TEXT");
|
|
10533
|
+
addColumnIfMissing24(db, "delivery_attempt_started_at", "TEXT");
|
|
10534
|
+
addColumnIfMissing24(db, "delivery_updated_at", "TEXT");
|
|
10535
|
+
addColumnIfMissing24(db, "acp_base_url", "TEXT");
|
|
10536
|
+
addColumnIfMissing24(db, "acp_target_agent_name", "TEXT");
|
|
10537
|
+
addColumnIfMissing24(db, "acp_timeout_ms", "INTEGER");
|
|
10538
|
+
addColumnIfMissing24(db, "acp_metadata_json", "TEXT");
|
|
10539
|
+
db.exec(`
|
|
10540
|
+
UPDATE cross_agent_messages
|
|
10541
|
+
SET delivery_state = CASE delivery_status
|
|
10542
|
+
WHEN 'delivered' THEN 'delivered'
|
|
10543
|
+
WHEN 'failed' THEN 'failed'
|
|
10544
|
+
ELSE 'pending'
|
|
10545
|
+
END
|
|
10546
|
+
WHERE delivery_state = 'pending';
|
|
10547
|
+
|
|
10548
|
+
UPDATE cross_agent_messages
|
|
10549
|
+
SET delivery_attempt_id = id
|
|
10550
|
+
WHERE delivery_attempt_id IS NULL;
|
|
10551
|
+
|
|
10552
|
+
UPDATE cross_agent_messages
|
|
10553
|
+
SET delivery_updated_at = created_at
|
|
10554
|
+
WHERE delivery_updated_at IS NULL;
|
|
10555
|
+
|
|
10556
|
+
CREATE INDEX IF NOT EXISTS idx_cross_agent_messages_delivery_reconciliation
|
|
10557
|
+
ON cross_agent_messages(delivery_path, delivery_state, delivery_lease_expires_at, delivery_updated_at);
|
|
10558
|
+
`);
|
|
10559
|
+
}
|
|
10516
10560
|
var MIGRATIONS = [
|
|
10517
10561
|
{
|
|
10518
10562
|
version: 1,
|
|
@@ -11438,6 +11482,20 @@ var MIGRATIONS = [
|
|
|
11438
11482
|
artifacts: {
|
|
11439
11483
|
tables: ["cross_agent_messages", "cross_agent_message_receipts"]
|
|
11440
11484
|
}
|
|
11485
|
+
},
|
|
11486
|
+
{
|
|
11487
|
+
version: 116,
|
|
11488
|
+
name: "acp-delivery-reconciliation",
|
|
11489
|
+
up: up116,
|
|
11490
|
+
artifacts: {
|
|
11491
|
+
columns: [
|
|
11492
|
+
{ table: "cross_agent_messages", column: "delivery_state" },
|
|
11493
|
+
{ table: "cross_agent_messages", column: "delivery_attempt_id" },
|
|
11494
|
+
{ table: "cross_agent_messages", column: "delivery_lease_expires_at" },
|
|
11495
|
+
{ table: "cross_agent_messages", column: "acp_base_url" },
|
|
11496
|
+
{ table: "cross_agent_messages", column: "acp_target_agent_name" }
|
|
11497
|
+
]
|
|
11498
|
+
}
|
|
11441
11499
|
}
|
|
11442
11500
|
];
|
|
11443
11501
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -18837,7 +18895,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
18837
18895
|
return true;
|
|
18838
18896
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
18839
18897
|
}
|
|
18840
|
-
function
|
|
18898
|
+
function up117(db) {
|
|
18841
18899
|
db.exec(`
|
|
18842
18900
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
18843
18901
|
version INTEGER PRIMARY KEY,
|
|
@@ -18926,31 +18984,31 @@ function up116(db) {
|
|
|
18926
18984
|
} catch {}
|
|
18927
18985
|
createMemoriesFts2(db);
|
|
18928
18986
|
}
|
|
18929
|
-
function
|
|
18987
|
+
function hasColumn22(db, table, column) {
|
|
18930
18988
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
18931
18989
|
return rows.some((r) => r.name === column);
|
|
18932
18990
|
}
|
|
18933
|
-
function
|
|
18934
|
-
if (!
|
|
18991
|
+
function addColumnIfMissing25(db, table, column, definition) {
|
|
18992
|
+
if (!hasColumn22(db, table, column)) {
|
|
18935
18993
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
18936
18994
|
}
|
|
18937
18995
|
}
|
|
18938
18996
|
function up210(db) {
|
|
18939
|
-
|
|
18940
|
-
|
|
18941
|
-
|
|
18942
|
-
|
|
18943
|
-
|
|
18944
|
-
|
|
18945
|
-
|
|
18946
|
-
|
|
18947
|
-
|
|
18948
|
-
|
|
18949
|
-
|
|
18950
|
-
|
|
18951
|
-
|
|
18952
|
-
|
|
18953
|
-
|
|
18997
|
+
addColumnIfMissing25(db, "memories", "content_hash", "TEXT");
|
|
18998
|
+
addColumnIfMissing25(db, "memories", "normalized_content", "TEXT");
|
|
18999
|
+
addColumnIfMissing25(db, "memories", "is_deleted", "INTEGER DEFAULT 0");
|
|
19000
|
+
addColumnIfMissing25(db, "memories", "deleted_at", "TEXT");
|
|
19001
|
+
addColumnIfMissing25(db, "memories", "extraction_status", "TEXT DEFAULT 'none'");
|
|
19002
|
+
addColumnIfMissing25(db, "memories", "embedding_model", "TEXT");
|
|
19003
|
+
addColumnIfMissing25(db, "memories", "extraction_model", "TEXT");
|
|
19004
|
+
addColumnIfMissing25(db, "memories", "update_count", "INTEGER DEFAULT 0");
|
|
19005
|
+
addColumnIfMissing25(db, "memories", "who", "TEXT");
|
|
19006
|
+
addColumnIfMissing25(db, "memories", "why", "TEXT");
|
|
19007
|
+
addColumnIfMissing25(db, "memories", "project", "TEXT");
|
|
19008
|
+
addColumnIfMissing25(db, "memories", "pinned", "INTEGER DEFAULT 0");
|
|
19009
|
+
addColumnIfMissing25(db, "memories", "importance", "REAL DEFAULT 0.5");
|
|
19010
|
+
addColumnIfMissing25(db, "memories", "last_accessed", "TEXT");
|
|
19011
|
+
addColumnIfMissing25(db, "memories", "access_count", "INTEGER DEFAULT 0");
|
|
18954
19012
|
db.exec(`
|
|
18955
19013
|
CREATE TABLE IF NOT EXISTS memory_history (
|
|
18956
19014
|
id TEXT PRIMARY KEY,
|
|
@@ -19046,7 +19104,7 @@ function up210(db) {
|
|
|
19046
19104
|
ON memory_entity_mentions(entity_id);
|
|
19047
19105
|
`);
|
|
19048
19106
|
}
|
|
19049
|
-
function
|
|
19107
|
+
function addColumnIfMissing26(db, table, column, definition) {
|
|
19050
19108
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
19051
19109
|
if (rows.some((r) => r.name === column))
|
|
19052
19110
|
return false;
|
|
@@ -19054,8 +19112,8 @@ function addColumnIfMissing25(db, table, column, definition) {
|
|
|
19054
19112
|
return true;
|
|
19055
19113
|
}
|
|
19056
19114
|
function up310(db) {
|
|
19057
|
-
|
|
19058
|
-
|
|
19115
|
+
addColumnIfMissing26(db, "memories", "why", "TEXT");
|
|
19116
|
+
addColumnIfMissing26(db, "memories", "project", "TEXT");
|
|
19059
19117
|
db.exec(`DROP INDEX IF EXISTS idx_memories_content_hash`);
|
|
19060
19118
|
db.exec(`
|
|
19061
19119
|
UPDATE memories
|
|
@@ -19081,12 +19139,12 @@ function up310(db) {
|
|
|
19081
19139
|
WHERE content_hash IS NOT NULL AND is_deleted = 0
|
|
19082
19140
|
`);
|
|
19083
19141
|
}
|
|
19084
|
-
function
|
|
19142
|
+
function hasColumn23(db, table, column) {
|
|
19085
19143
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
19086
19144
|
return rows.some((r) => r.name === column);
|
|
19087
19145
|
}
|
|
19088
19146
|
function addColumnIfMissing32(db, table, column, definition) {
|
|
19089
|
-
if (!
|
|
19147
|
+
if (!hasColumn23(db, table, column)) {
|
|
19090
19148
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
19091
19149
|
}
|
|
19092
19150
|
}
|
|
@@ -19260,7 +19318,7 @@ function up1010(db) {
|
|
|
19260
19318
|
)
|
|
19261
19319
|
`);
|
|
19262
19320
|
}
|
|
19263
|
-
function
|
|
19321
|
+
function up118(db) {
|
|
19264
19322
|
db.exec(`
|
|
19265
19323
|
CREATE TABLE IF NOT EXISTS session_scores (
|
|
19266
19324
|
id TEXT PRIMARY KEY,
|
|
@@ -22369,11 +22427,55 @@ function up1152(db) {
|
|
|
22369
22427
|
ON cross_agent_message_receipts(agent_id, acknowledged_at, message_id);
|
|
22370
22428
|
`);
|
|
22371
22429
|
}
|
|
22430
|
+
function hasColumn212(db, table, column) {
|
|
22431
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
22432
|
+
}
|
|
22433
|
+
function addColumnIfMissing242(db, column, definition) {
|
|
22434
|
+
if (!hasColumn212(db, "cross_agent_messages", column)) {
|
|
22435
|
+
db.exec(`ALTER TABLE cross_agent_messages ADD COLUMN ${column} ${definition}`);
|
|
22436
|
+
}
|
|
22437
|
+
}
|
|
22438
|
+
function up1162(db) {
|
|
22439
|
+
const table = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'cross_agent_messages'").get();
|
|
22440
|
+
if (table == null)
|
|
22441
|
+
return;
|
|
22442
|
+
addColumnIfMissing242(db, "delivery_state", "TEXT NOT NULL DEFAULT 'pending'");
|
|
22443
|
+
addColumnIfMissing242(db, "delivery_attempt_id", "TEXT");
|
|
22444
|
+
addColumnIfMissing242(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
22445
|
+
addColumnIfMissing242(db, "delivery_lease_token", "TEXT");
|
|
22446
|
+
addColumnIfMissing242(db, "delivery_lease_expires_at", "TEXT");
|
|
22447
|
+
addColumnIfMissing242(db, "delivery_attempt_started_at", "TEXT");
|
|
22448
|
+
addColumnIfMissing242(db, "delivery_updated_at", "TEXT");
|
|
22449
|
+
addColumnIfMissing242(db, "acp_base_url", "TEXT");
|
|
22450
|
+
addColumnIfMissing242(db, "acp_target_agent_name", "TEXT");
|
|
22451
|
+
addColumnIfMissing242(db, "acp_timeout_ms", "INTEGER");
|
|
22452
|
+
addColumnIfMissing242(db, "acp_metadata_json", "TEXT");
|
|
22453
|
+
db.exec(`
|
|
22454
|
+
UPDATE cross_agent_messages
|
|
22455
|
+
SET delivery_state = CASE delivery_status
|
|
22456
|
+
WHEN 'delivered' THEN 'delivered'
|
|
22457
|
+
WHEN 'failed' THEN 'failed'
|
|
22458
|
+
ELSE 'pending'
|
|
22459
|
+
END
|
|
22460
|
+
WHERE delivery_state = 'pending';
|
|
22461
|
+
|
|
22462
|
+
UPDATE cross_agent_messages
|
|
22463
|
+
SET delivery_attempt_id = id
|
|
22464
|
+
WHERE delivery_attempt_id IS NULL;
|
|
22465
|
+
|
|
22466
|
+
UPDATE cross_agent_messages
|
|
22467
|
+
SET delivery_updated_at = created_at
|
|
22468
|
+
WHERE delivery_updated_at IS NULL;
|
|
22469
|
+
|
|
22470
|
+
CREATE INDEX IF NOT EXISTS idx_cross_agent_messages_delivery_reconciliation
|
|
22471
|
+
ON cross_agent_messages(delivery_path, delivery_state, delivery_lease_expires_at, delivery_updated_at);
|
|
22472
|
+
`);
|
|
22473
|
+
}
|
|
22372
22474
|
var MIGRATIONS2 = [
|
|
22373
22475
|
{
|
|
22374
22476
|
version: 1,
|
|
22375
22477
|
name: "baseline",
|
|
22376
|
-
up:
|
|
22478
|
+
up: up117,
|
|
22377
22479
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
22378
22480
|
},
|
|
22379
22481
|
{
|
|
@@ -22439,7 +22541,7 @@ var MIGRATIONS2 = [
|
|
|
22439
22541
|
{
|
|
22440
22542
|
version: 11,
|
|
22441
22543
|
name: "session-scores",
|
|
22442
|
-
up:
|
|
22544
|
+
up: up118,
|
|
22443
22545
|
artifacts: { tables: ["session_scores"] }
|
|
22444
22546
|
},
|
|
22445
22547
|
{
|
|
@@ -23294,6 +23396,20 @@ var MIGRATIONS2 = [
|
|
|
23294
23396
|
artifacts: {
|
|
23295
23397
|
tables: ["cross_agent_messages", "cross_agent_message_receipts"]
|
|
23296
23398
|
}
|
|
23399
|
+
},
|
|
23400
|
+
{
|
|
23401
|
+
version: 116,
|
|
23402
|
+
name: "acp-delivery-reconciliation",
|
|
23403
|
+
up: up1162,
|
|
23404
|
+
artifacts: {
|
|
23405
|
+
columns: [
|
|
23406
|
+
{ table: "cross_agent_messages", column: "delivery_state" },
|
|
23407
|
+
{ table: "cross_agent_messages", column: "delivery_attempt_id" },
|
|
23408
|
+
{ table: "cross_agent_messages", column: "delivery_lease_expires_at" },
|
|
23409
|
+
{ table: "cross_agent_messages", column: "acp_base_url" },
|
|
23410
|
+
{ table: "cross_agent_messages", column: "acp_target_agent_name" }
|
|
23411
|
+
]
|
|
23412
|
+
}
|
|
23297
23413
|
}
|
|
23298
23414
|
];
|
|
23299
23415
|
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.185.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.185.0",
|
|
28
|
+
"@signetai/core": "0.185.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|