@signetai/connector-gemini 0.219.5 → 0.219.6
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 +80 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -21,10 +21,17 @@ import { dirname as dirname2, isAbsolute, join as join3, relative, sep } from "n
|
|
|
21
21
|
import { createRequire } from "node:module";
|
|
22
22
|
import { dirname, join } from "node:path";
|
|
23
23
|
import { fileURLToPath } from "node:url";
|
|
24
|
+
import {
|
|
25
|
+
execFile as nodeExecFile,
|
|
26
|
+
execFileSync as nodeExecFileSync,
|
|
27
|
+
execSync as nodeExecSync,
|
|
28
|
+
spawn as nodeSpawn,
|
|
29
|
+
spawnSync as nodeSpawnSync
|
|
30
|
+
} from "node:child_process";
|
|
31
|
+
import { promisify } from "node:util";
|
|
24
32
|
import { createHash } from "node:crypto";
|
|
25
33
|
import { homedir as homedir2 } from "node:os";
|
|
26
34
|
import { join as join2, resolve } from "node:path";
|
|
27
|
-
import { execFileSync as execFileSync3 } from "node:child_process";
|
|
28
35
|
import { createHash as createHash2 } from "node:crypto";
|
|
29
36
|
import { createRequire as createRequire2 } from "node:module";
|
|
30
37
|
import {
|
|
@@ -11191,6 +11198,37 @@ var PIPELINE_PROVIDER_CHOICES = [
|
|
|
11191
11198
|
var SYNTHESIS_PROVIDER_CHOICES = PIPELINE_PROVIDER_CHOICES.filter((provider) => provider !== "command");
|
|
11192
11199
|
var PIPELINE_PROVIDER_SET = new Set(PIPELINE_PROVIDER_CHOICES);
|
|
11193
11200
|
var SYNTHESIS_PROVIDER_SET = new Set(SYNTHESIS_PROVIDER_CHOICES);
|
|
11201
|
+
function withWindowsHide(options) {
|
|
11202
|
+
return {
|
|
11203
|
+
...options ?? {},
|
|
11204
|
+
windowsHide: options?.windowsHide ?? true
|
|
11205
|
+
};
|
|
11206
|
+
}
|
|
11207
|
+
function isOptions(value) {
|
|
11208
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
11209
|
+
}
|
|
11210
|
+
function withWindowsHideArgument(args, firstOptionIndex) {
|
|
11211
|
+
const normalized = [...args];
|
|
11212
|
+
const optionIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && isOptions(value));
|
|
11213
|
+
if (optionIndex >= 0) {
|
|
11214
|
+
normalized[optionIndex] = withWindowsHide(normalized[optionIndex]);
|
|
11215
|
+
return normalized;
|
|
11216
|
+
}
|
|
11217
|
+
const placeholderIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && (value === undefined || value === null));
|
|
11218
|
+
if (placeholderIndex >= 0) {
|
|
11219
|
+
normalized[placeholderIndex] = withWindowsHide(undefined);
|
|
11220
|
+
return normalized;
|
|
11221
|
+
}
|
|
11222
|
+
const callbackIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && typeof value === "function");
|
|
11223
|
+
normalized.splice(callbackIndex >= 0 ? callbackIndex : normalized.length, 0, { windowsHide: true });
|
|
11224
|
+
return normalized;
|
|
11225
|
+
}
|
|
11226
|
+
var nodeExecFileAsync = promisify(nodeExecFile);
|
|
11227
|
+
var execFileHiddenImpl = (...args) => Reflect.apply(nodeExecFile, undefined, withWindowsHideArgument(args, 1));
|
|
11228
|
+
Object.defineProperty(execFileHiddenImpl, promisify.custom, {
|
|
11229
|
+
value: (...args) => Reflect.apply(nodeExecFileAsync, undefined, withWindowsHideArgument(args, 1))
|
|
11230
|
+
});
|
|
11231
|
+
var execFileSyncHidden = (...args) => Reflect.apply(nodeExecFileSync, undefined, withWindowsHideArgument(args, 1));
|
|
11194
11232
|
var MEMORY_CONTENT_SAFETY_POLICY_VERSION = "memory-content-safety-v1";
|
|
11195
11233
|
var MEMORY_CONTENT_SAFETY_REASONS = [
|
|
11196
11234
|
"prompt_injection",
|
|
@@ -17713,7 +17751,7 @@ function linuxKeyringAvailable() {
|
|
|
17713
17751
|
};
|
|
17714
17752
|
}
|
|
17715
17753
|
try {
|
|
17716
|
-
|
|
17754
|
+
execFileSyncHidden("busctl", ["--user", "status", "org.freedesktop.secrets"], {
|
|
17717
17755
|
stdio: "ignore",
|
|
17718
17756
|
timeout: 1000
|
|
17719
17757
|
});
|
|
@@ -18221,10 +18259,17 @@ function resolveSignetWorkspacePath(home2 = homedir()) {
|
|
|
18221
18259
|
import { createRequire as createRequire4 } from "node:module";
|
|
18222
18260
|
import { dirname as dirname6, join as join4 } from "node:path";
|
|
18223
18261
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
18262
|
+
import {
|
|
18263
|
+
execFile as nodeExecFile2,
|
|
18264
|
+
execFileSync as nodeExecFileSync2,
|
|
18265
|
+
execSync as nodeExecSync2,
|
|
18266
|
+
spawn as nodeSpawn2,
|
|
18267
|
+
spawnSync as nodeSpawnSync2
|
|
18268
|
+
} from "node:child_process";
|
|
18269
|
+
import { promisify as promisify2 } from "node:util";
|
|
18224
18270
|
import { createHash as createHash3 } from "node:crypto";
|
|
18225
18271
|
import { homedir as homedir22 } from "node:os";
|
|
18226
18272
|
import { join as join22, resolve as resolve4 } from "node:path";
|
|
18227
|
-
import { execFileSync as execFileSync32 } from "node:child_process";
|
|
18228
18273
|
import { createHash as createHash22 } from "node:crypto";
|
|
18229
18274
|
import { createRequire as createRequire22 } from "node:module";
|
|
18230
18275
|
import { createRequire as createRequire32 } from "node:module";
|
|
@@ -29377,6 +29422,37 @@ var PIPELINE_PROVIDER_CHOICES2 = [
|
|
|
29377
29422
|
var SYNTHESIS_PROVIDER_CHOICES2 = PIPELINE_PROVIDER_CHOICES2.filter((provider) => provider !== "command");
|
|
29378
29423
|
var PIPELINE_PROVIDER_SET2 = new Set(PIPELINE_PROVIDER_CHOICES2);
|
|
29379
29424
|
var SYNTHESIS_PROVIDER_SET2 = new Set(SYNTHESIS_PROVIDER_CHOICES2);
|
|
29425
|
+
function withWindowsHide2(options) {
|
|
29426
|
+
return {
|
|
29427
|
+
...options ?? {},
|
|
29428
|
+
windowsHide: options?.windowsHide ?? true
|
|
29429
|
+
};
|
|
29430
|
+
}
|
|
29431
|
+
function isOptions2(value) {
|
|
29432
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
29433
|
+
}
|
|
29434
|
+
function withWindowsHideArgument2(args, firstOptionIndex) {
|
|
29435
|
+
const normalized = [...args];
|
|
29436
|
+
const optionIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && isOptions2(value));
|
|
29437
|
+
if (optionIndex >= 0) {
|
|
29438
|
+
normalized[optionIndex] = withWindowsHide2(normalized[optionIndex]);
|
|
29439
|
+
return normalized;
|
|
29440
|
+
}
|
|
29441
|
+
const placeholderIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && (value === undefined || value === null));
|
|
29442
|
+
if (placeholderIndex >= 0) {
|
|
29443
|
+
normalized[placeholderIndex] = withWindowsHide2(undefined);
|
|
29444
|
+
return normalized;
|
|
29445
|
+
}
|
|
29446
|
+
const callbackIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && typeof value === "function");
|
|
29447
|
+
normalized.splice(callbackIndex >= 0 ? callbackIndex : normalized.length, 0, { windowsHide: true });
|
|
29448
|
+
return normalized;
|
|
29449
|
+
}
|
|
29450
|
+
var nodeExecFileAsync2 = promisify2(nodeExecFile2);
|
|
29451
|
+
var execFileHiddenImpl2 = (...args) => Reflect.apply(nodeExecFile2, undefined, withWindowsHideArgument2(args, 1));
|
|
29452
|
+
Object.defineProperty(execFileHiddenImpl2, promisify2.custom, {
|
|
29453
|
+
value: (...args) => Reflect.apply(nodeExecFileAsync2, undefined, withWindowsHideArgument2(args, 1))
|
|
29454
|
+
});
|
|
29455
|
+
var execFileSyncHidden2 = (...args) => Reflect.apply(nodeExecFileSync2, undefined, withWindowsHideArgument2(args, 1));
|
|
29380
29456
|
var MEMORY_CONTENT_SAFETY_POLICY_VERSION2 = "memory-content-safety-v1";
|
|
29381
29457
|
var MEMORY_CONTENT_SAFETY_REASONS2 = [
|
|
29382
29458
|
"prompt_injection",
|
|
@@ -35899,7 +35975,7 @@ function linuxKeyringAvailable2() {
|
|
|
35899
35975
|
};
|
|
35900
35976
|
}
|
|
35901
35977
|
try {
|
|
35902
|
-
|
|
35978
|
+
execFileSyncHidden2("busctl", ["--user", "status", "org.freedesktop.secrets"], {
|
|
35903
35979
|
stdio: "ignore",
|
|
35904
35980
|
timeout: 1000
|
|
35905
35981
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-gemini",
|
|
3
|
-
"version": "0.219.
|
|
3
|
+
"version": "0.219.6",
|
|
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.219.
|
|
28
|
-
"@signetai/core": "0.219.
|
|
27
|
+
"@signetai/connector-base": "0.219.6",
|
|
28
|
+
"@signetai/core": "0.219.6"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|