@signetai/connector-gemini 0.207.2 → 0.208.1
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 +102 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import { dirname as dirname9, join as join6, resolve as resolve3 } from "node:pa
|
|
|
15
15
|
|
|
16
16
|
// ../../../libs/connector-base/dist/index.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
|
-
import { existsSync, readFileSync, renameSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
18
|
+
import { existsSync, readFileSync, realpathSync, renameSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { homedir } from "node:os";
|
|
20
20
|
import { dirname as dirname2, isAbsolute, join as join3, relative, sep } from "node:path";
|
|
21
21
|
import { createRequire } from "node:module";
|
|
@@ -15731,6 +15731,34 @@ function up135(db) {
|
|
|
15731
15731
|
ON memory_head_publications(agent_id, status, revision DESC);
|
|
15732
15732
|
`);
|
|
15733
15733
|
}
|
|
15734
|
+
function up136(db) {
|
|
15735
|
+
const cols = new Set(db.prepare("PRAGMA table_info(memory_head_revisions)").all().map((r2) => r2.name));
|
|
15736
|
+
for (const [name, type] of [
|
|
15737
|
+
["entry_id", "TEXT"],
|
|
15738
|
+
["entry_text", "TEXT"],
|
|
15739
|
+
["operation", "TEXT"],
|
|
15740
|
+
["source_refs_json", "TEXT"],
|
|
15741
|
+
["supporting_quotes_json", "TEXT"]
|
|
15742
|
+
]) {
|
|
15743
|
+
if (!cols.has(name))
|
|
15744
|
+
db.exec(`ALTER TABLE memory_head_revisions ADD COLUMN ${name} ${type}`);
|
|
15745
|
+
}
|
|
15746
|
+
db.exec("CREATE UNIQUE INDEX IF NOT EXISTS idx_memory_head_revisions_entry ON memory_head_revisions(agent_id, revision, entry_id)");
|
|
15747
|
+
}
|
|
15748
|
+
function up137(db) {
|
|
15749
|
+
const cols = new Set(db.prepare("PRAGMA table_info(dreaming_passes)").all().map((r2) => r2.name));
|
|
15750
|
+
for (const [name, type] of [
|
|
15751
|
+
["head_revision", "INTEGER"],
|
|
15752
|
+
["head_hash", "TEXT"],
|
|
15753
|
+
["head_added", "INTEGER NOT NULL DEFAULT 0"],
|
|
15754
|
+
["head_updated", "INTEGER NOT NULL DEFAULT 0"],
|
|
15755
|
+
["head_removed", "INTEGER NOT NULL DEFAULT 0"],
|
|
15756
|
+
["head_deferred", "INTEGER NOT NULL DEFAULT 0"],
|
|
15757
|
+
["head_no_op", "INTEGER NOT NULL DEFAULT 0"]
|
|
15758
|
+
])
|
|
15759
|
+
if (!cols.has(name))
|
|
15760
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${name} ${type}`);
|
|
15761
|
+
}
|
|
15734
15762
|
var MIGRATIONS = [
|
|
15735
15763
|
{
|
|
15736
15764
|
version: 1,
|
|
@@ -16803,6 +16831,23 @@ var MIGRATIONS = [
|
|
|
16803
16831
|
name: "memory-head-publication",
|
|
16804
16832
|
up: up135,
|
|
16805
16833
|
artifacts: { tables: ["memory_head_publications"] }
|
|
16834
|
+
},
|
|
16835
|
+
{
|
|
16836
|
+
version: 136,
|
|
16837
|
+
name: "memory-head-revisions",
|
|
16838
|
+
up: up136,
|
|
16839
|
+
artifacts: { tables: ["memory_head_revisions"] }
|
|
16840
|
+
},
|
|
16841
|
+
{
|
|
16842
|
+
version: 137,
|
|
16843
|
+
name: "dreaming-head-manifest",
|
|
16844
|
+
up: up137,
|
|
16845
|
+
artifacts: {
|
|
16846
|
+
columns: [
|
|
16847
|
+
{ table: "dreaming_passes", column: "head_revision" },
|
|
16848
|
+
{ table: "dreaming_passes", column: "head_hash" }
|
|
16849
|
+
]
|
|
16850
|
+
}
|
|
16806
16851
|
}
|
|
16807
16852
|
];
|
|
16808
16853
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -17307,6 +17352,12 @@ class BaseConnector {
|
|
|
17307
17352
|
const cleaned = stripSignetBlock(raw);
|
|
17308
17353
|
if (cleaned === raw)
|
|
17309
17354
|
return null;
|
|
17355
|
+
const root = realpathSync(basePath);
|
|
17356
|
+
const parent = realpathSync(dirname2(agentsPath));
|
|
17357
|
+
const rel = relative(root, join3(parent, "AGENTS.md"));
|
|
17358
|
+
if (rel.startsWith("..") || isAbsolute(rel)) {
|
|
17359
|
+
throw new Error(`Target path escapes validated root: ${agentsPath}`);
|
|
17360
|
+
}
|
|
17310
17361
|
const tmp = join3(basePath, `.${randomBytes(6).toString("hex")}.tmp`);
|
|
17311
17362
|
try {
|
|
17312
17363
|
writeFileSync(tmp, cleaned, "utf-8");
|
|
@@ -17412,7 +17463,7 @@ import { homedir as homedir52 } from "node:os";
|
|
|
17412
17463
|
import { dirname as dirname42, join as join82, resolve as resolve22 } from "node:path";
|
|
17413
17464
|
import { homedir as homedir62, platform as platform22 } from "node:os";
|
|
17414
17465
|
import { basename as basename2, dirname as dirname52, resolve as resolve42 } from "node:path";
|
|
17415
|
-
import { existsSync as existsSync12, readFileSync as readFileSync10, readdirSync as readdirSync5, realpathSync, statSync as statSync7 } from "node:fs";
|
|
17466
|
+
import { existsSync as existsSync12, readFileSync as readFileSync10, readdirSync as readdirSync5, realpathSync as realpathSync2, statSync as statSync7 } from "node:fs";
|
|
17416
17467
|
import { dirname as dirname8, join as join13 } from "node:path";
|
|
17417
17468
|
import { homedir as homedir102 } from "node:os";
|
|
17418
17469
|
var __create = Object.create;
|
|
@@ -28772,7 +28823,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
28772
28823
|
return true;
|
|
28773
28824
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
28774
28825
|
}
|
|
28775
|
-
function
|
|
28826
|
+
function up138(db) {
|
|
28776
28827
|
db.exec(`
|
|
28777
28828
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
28778
28829
|
version INTEGER PRIMARY KEY,
|
|
@@ -29256,7 +29307,7 @@ function addColumnIfMissing52(db, table, column, definition) {
|
|
|
29256
29307
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
29257
29308
|
}
|
|
29258
29309
|
}
|
|
29259
|
-
function
|
|
29310
|
+
function up139(db) {
|
|
29260
29311
|
db.exec(`
|
|
29261
29312
|
CREATE TABLE IF NOT EXISTS ingestion_jobs (
|
|
29262
29313
|
id TEXT PRIMARY KEY,
|
|
@@ -33097,11 +33148,39 @@ function up1352(db) {
|
|
|
33097
33148
|
ON memory_head_publications(agent_id, status, revision DESC);
|
|
33098
33149
|
`);
|
|
33099
33150
|
}
|
|
33151
|
+
function up1362(db) {
|
|
33152
|
+
const cols = new Set(db.prepare("PRAGMA table_info(memory_head_revisions)").all().map((r3) => r3.name));
|
|
33153
|
+
for (const [name, type] of [
|
|
33154
|
+
["entry_id", "TEXT"],
|
|
33155
|
+
["entry_text", "TEXT"],
|
|
33156
|
+
["operation", "TEXT"],
|
|
33157
|
+
["source_refs_json", "TEXT"],
|
|
33158
|
+
["supporting_quotes_json", "TEXT"]
|
|
33159
|
+
]) {
|
|
33160
|
+
if (!cols.has(name))
|
|
33161
|
+
db.exec(`ALTER TABLE memory_head_revisions ADD COLUMN ${name} ${type}`);
|
|
33162
|
+
}
|
|
33163
|
+
db.exec("CREATE UNIQUE INDEX IF NOT EXISTS idx_memory_head_revisions_entry ON memory_head_revisions(agent_id, revision, entry_id)");
|
|
33164
|
+
}
|
|
33165
|
+
function up1372(db) {
|
|
33166
|
+
const cols = new Set(db.prepare("PRAGMA table_info(dreaming_passes)").all().map((r3) => r3.name));
|
|
33167
|
+
for (const [name, type] of [
|
|
33168
|
+
["head_revision", "INTEGER"],
|
|
33169
|
+
["head_hash", "TEXT"],
|
|
33170
|
+
["head_added", "INTEGER NOT NULL DEFAULT 0"],
|
|
33171
|
+
["head_updated", "INTEGER NOT NULL DEFAULT 0"],
|
|
33172
|
+
["head_removed", "INTEGER NOT NULL DEFAULT 0"],
|
|
33173
|
+
["head_deferred", "INTEGER NOT NULL DEFAULT 0"],
|
|
33174
|
+
["head_no_op", "INTEGER NOT NULL DEFAULT 0"]
|
|
33175
|
+
])
|
|
33176
|
+
if (!cols.has(name))
|
|
33177
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${name} ${type}`);
|
|
33178
|
+
}
|
|
33100
33179
|
var MIGRATIONS2 = [
|
|
33101
33180
|
{
|
|
33102
33181
|
version: 1,
|
|
33103
33182
|
name: "baseline",
|
|
33104
|
-
up:
|
|
33183
|
+
up: up138,
|
|
33105
33184
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
33106
33185
|
},
|
|
33107
33186
|
{
|
|
@@ -33179,7 +33258,7 @@ var MIGRATIONS2 = [
|
|
|
33179
33258
|
{
|
|
33180
33259
|
version: 13,
|
|
33181
33260
|
name: "ingestion-tracking",
|
|
33182
|
-
up:
|
|
33261
|
+
up: up139,
|
|
33183
33262
|
artifacts: {
|
|
33184
33263
|
columns: [
|
|
33185
33264
|
{ table: "memories", column: "source_path" },
|
|
@@ -34169,6 +34248,23 @@ var MIGRATIONS2 = [
|
|
|
34169
34248
|
name: "memory-head-publication",
|
|
34170
34249
|
up: up1352,
|
|
34171
34250
|
artifacts: { tables: ["memory_head_publications"] }
|
|
34251
|
+
},
|
|
34252
|
+
{
|
|
34253
|
+
version: 136,
|
|
34254
|
+
name: "memory-head-revisions",
|
|
34255
|
+
up: up1362,
|
|
34256
|
+
artifacts: { tables: ["memory_head_revisions"] }
|
|
34257
|
+
},
|
|
34258
|
+
{
|
|
34259
|
+
version: 137,
|
|
34260
|
+
name: "dreaming-head-manifest",
|
|
34261
|
+
up: up1372,
|
|
34262
|
+
artifacts: {
|
|
34263
|
+
columns: [
|
|
34264
|
+
{ table: "dreaming_passes", column: "head_revision" },
|
|
34265
|
+
{ table: "dreaming_passes", column: "head_hash" }
|
|
34266
|
+
]
|
|
34267
|
+
}
|
|
34172
34268
|
}
|
|
34173
34269
|
];
|
|
34174
34270
|
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.208.1",
|
|
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.208.1",
|
|
28
|
+
"@signetai/core": "0.208.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|