@signetai/connector-gemini 0.194.0 → 0.195.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 +84 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -11091,6 +11091,40 @@ function up125(db) {
|
|
|
11091
11091
|
scannedAt
|
|
11092
11092
|
});
|
|
11093
11093
|
}
|
|
11094
|
+
function up126(db) {
|
|
11095
|
+
const table = db.prepare("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'dreaming_attention'").get();
|
|
11096
|
+
if (!table)
|
|
11097
|
+
return;
|
|
11098
|
+
if (table.sql?.includes("'surprisal'"))
|
|
11099
|
+
return;
|
|
11100
|
+
db.exec(`
|
|
11101
|
+
DROP INDEX IF EXISTS idx_dreaming_attention_pending;
|
|
11102
|
+
ALTER TABLE dreaming_attention RENAME TO dreaming_attention_legacy_126;
|
|
11103
|
+
CREATE TABLE dreaming_attention (
|
|
11104
|
+
id TEXT PRIMARY KEY,
|
|
11105
|
+
agent_id TEXT NOT NULL,
|
|
11106
|
+
kind TEXT NOT NULL CHECK (kind IN ('review_due', 'hygiene', 'contested_claim', 'evidence_requeue', 'surprisal')),
|
|
11107
|
+
subject_ref TEXT NOT NULL,
|
|
11108
|
+
details_json TEXT NOT NULL DEFAULT '{}',
|
|
11109
|
+
priority INTEGER NOT NULL DEFAULT 0 CHECK (priority >= 0 AND priority <= 100),
|
|
11110
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
11111
|
+
generation INTEGER NOT NULL DEFAULT 0,
|
|
11112
|
+
resolved_at TEXT,
|
|
11113
|
+
resolved_by_pass_id TEXT,
|
|
11114
|
+
UNIQUE(agent_id, kind, subject_ref)
|
|
11115
|
+
);
|
|
11116
|
+
INSERT INTO dreaming_attention (
|
|
11117
|
+
id, agent_id, kind, subject_ref, details_json, priority, created_at,
|
|
11118
|
+
generation, resolved_at, resolved_by_pass_id
|
|
11119
|
+
)
|
|
11120
|
+
SELECT id, agent_id, kind, subject_ref, details_json, priority, created_at,
|
|
11121
|
+
generation, resolved_at, resolved_by_pass_id
|
|
11122
|
+
FROM dreaming_attention_legacy_126;
|
|
11123
|
+
DROP TABLE dreaming_attention_legacy_126;
|
|
11124
|
+
CREATE INDEX idx_dreaming_attention_pending
|
|
11125
|
+
ON dreaming_attention (agent_id, resolved_at, priority DESC, created_at ASC);
|
|
11126
|
+
`);
|
|
11127
|
+
}
|
|
11094
11128
|
var MIGRATIONS = [
|
|
11095
11129
|
{
|
|
11096
11130
|
version: 1,
|
|
@@ -12105,6 +12139,12 @@ var MIGRATIONS = [
|
|
|
12105
12139
|
name: "memory-content-safety",
|
|
12106
12140
|
up: up125,
|
|
12107
12141
|
artifacts: { tables: ["memory_content_safety"] }
|
|
12142
|
+
},
|
|
12143
|
+
{
|
|
12144
|
+
version: 126,
|
|
12145
|
+
name: "dreaming-surprisal-attention",
|
|
12146
|
+
up: up126,
|
|
12147
|
+
artifacts: { tables: ["dreaming_attention"] }
|
|
12108
12148
|
}
|
|
12109
12149
|
];
|
|
12110
12150
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -19598,7 +19638,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
19598
19638
|
return true;
|
|
19599
19639
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
19600
19640
|
}
|
|
19601
|
-
function
|
|
19641
|
+
function up127(db) {
|
|
19602
19642
|
db.exec(`
|
|
19603
19643
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
19604
19644
|
version INTEGER PRIMARY KEY,
|
|
@@ -20041,7 +20081,7 @@ function up1110(db) {
|
|
|
20041
20081
|
ON session_scores(session_key);
|
|
20042
20082
|
`);
|
|
20043
20083
|
}
|
|
20044
|
-
function
|
|
20084
|
+
function up128(db) {
|
|
20045
20085
|
db.exec(`
|
|
20046
20086
|
CREATE TABLE IF NOT EXISTS scheduled_tasks (
|
|
20047
20087
|
id TEXT PRIMARY KEY,
|
|
@@ -23614,11 +23654,45 @@ function up1252(db) {
|
|
|
23614
23654
|
scannedAt
|
|
23615
23655
|
});
|
|
23616
23656
|
}
|
|
23657
|
+
function up1262(db) {
|
|
23658
|
+
const table = db.prepare("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'dreaming_attention'").get();
|
|
23659
|
+
if (!table)
|
|
23660
|
+
return;
|
|
23661
|
+
if (table.sql?.includes("'surprisal'"))
|
|
23662
|
+
return;
|
|
23663
|
+
db.exec(`
|
|
23664
|
+
DROP INDEX IF EXISTS idx_dreaming_attention_pending;
|
|
23665
|
+
ALTER TABLE dreaming_attention RENAME TO dreaming_attention_legacy_126;
|
|
23666
|
+
CREATE TABLE dreaming_attention (
|
|
23667
|
+
id TEXT PRIMARY KEY,
|
|
23668
|
+
agent_id TEXT NOT NULL,
|
|
23669
|
+
kind TEXT NOT NULL CHECK (kind IN ('review_due', 'hygiene', 'contested_claim', 'evidence_requeue', 'surprisal')),
|
|
23670
|
+
subject_ref TEXT NOT NULL,
|
|
23671
|
+
details_json TEXT NOT NULL DEFAULT '{}',
|
|
23672
|
+
priority INTEGER NOT NULL DEFAULT 0 CHECK (priority >= 0 AND priority <= 100),
|
|
23673
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
23674
|
+
generation INTEGER NOT NULL DEFAULT 0,
|
|
23675
|
+
resolved_at TEXT,
|
|
23676
|
+
resolved_by_pass_id TEXT,
|
|
23677
|
+
UNIQUE(agent_id, kind, subject_ref)
|
|
23678
|
+
);
|
|
23679
|
+
INSERT INTO dreaming_attention (
|
|
23680
|
+
id, agent_id, kind, subject_ref, details_json, priority, created_at,
|
|
23681
|
+
generation, resolved_at, resolved_by_pass_id
|
|
23682
|
+
)
|
|
23683
|
+
SELECT id, agent_id, kind, subject_ref, details_json, priority, created_at,
|
|
23684
|
+
generation, resolved_at, resolved_by_pass_id
|
|
23685
|
+
FROM dreaming_attention_legacy_126;
|
|
23686
|
+
DROP TABLE dreaming_attention_legacy_126;
|
|
23687
|
+
CREATE INDEX idx_dreaming_attention_pending
|
|
23688
|
+
ON dreaming_attention (agent_id, resolved_at, priority DESC, created_at ASC);
|
|
23689
|
+
`);
|
|
23690
|
+
}
|
|
23617
23691
|
var MIGRATIONS2 = [
|
|
23618
23692
|
{
|
|
23619
23693
|
version: 1,
|
|
23620
23694
|
name: "baseline",
|
|
23621
|
-
up:
|
|
23695
|
+
up: up127,
|
|
23622
23696
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
23623
23697
|
},
|
|
23624
23698
|
{
|
|
@@ -23690,7 +23764,7 @@ var MIGRATIONS2 = [
|
|
|
23690
23764
|
{
|
|
23691
23765
|
version: 12,
|
|
23692
23766
|
name: "scheduled-tasks",
|
|
23693
|
-
up:
|
|
23767
|
+
up: up128,
|
|
23694
23768
|
artifacts: { tables: ["scheduled_tasks", "task_runs"] }
|
|
23695
23769
|
},
|
|
23696
23770
|
{
|
|
@@ -24628,6 +24702,12 @@ var MIGRATIONS2 = [
|
|
|
24628
24702
|
name: "memory-content-safety",
|
|
24629
24703
|
up: up1252,
|
|
24630
24704
|
artifacts: { tables: ["memory_content_safety"] }
|
|
24705
|
+
},
|
|
24706
|
+
{
|
|
24707
|
+
version: 126,
|
|
24708
|
+
name: "dreaming-surprisal-attention",
|
|
24709
|
+
up: up1262,
|
|
24710
|
+
artifacts: { tables: ["dreaming_attention"] }
|
|
24631
24711
|
}
|
|
24632
24712
|
];
|
|
24633
24713
|
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.195.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.195.0",
|
|
28
|
+
"@signetai/core": "0.195.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|