@signetai/connector-gemini 0.200.17 → 0.200.19

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -12422,7 +12422,8 @@ function isRecord4(value) {
12422
12422
  function getWorkspaceConfigPath(env = process.env, home = homedir4()) {
12423
12423
  return join6(readConfigHome(env, home), "signet", "workspace.json");
12424
12424
  }
12425
- function readConfiguredWorkspacePath(env = process.env, home = homedir4(), _options = {}) {
12425
+ function readConfiguredWorkspacePath(env = process.env, home = homedir4(), options = {}) {
12426
+ const strict = options.strict ?? true;
12426
12427
  const configPath = getWorkspaceConfigPath(env, home);
12427
12428
  if (!existsSync4(configPath))
12428
12429
  return null;
@@ -12430,14 +12431,20 @@ function readConfiguredWorkspacePath(env = process.env, home = homedir4(), _opti
12430
12431
  try {
12431
12432
  raw = JSON.parse(readFileSync3(configPath, "utf-8"));
12432
12433
  } catch (err) {
12434
+ if (!strict)
12435
+ return null;
12433
12436
  const detail = err instanceof Error ? err.message : String(err);
12434
12437
  throw new Error(`Invalid Signet workspace config at ${configPath}: ${detail}`);
12435
12438
  }
12436
12439
  if (!isRecord4(raw) || !("workspace" in raw)) {
12440
+ if (!strict)
12441
+ return null;
12437
12442
  throw new Error(`Invalid Signet workspace config at ${configPath}: missing workspace`);
12438
12443
  }
12439
12444
  const workspace = raw.workspace;
12440
12445
  if (typeof workspace !== "string" || workspace.trim().length === 0) {
12446
+ if (!strict)
12447
+ return null;
12441
12448
  throw new Error(`Invalid Signet workspace config at ${configPath}: workspace must be a non-empty string`);
12442
12449
  }
12443
12450
  return normalizeWorkspacePath(workspace, home);
@@ -12445,10 +12452,11 @@ function readConfiguredWorkspacePath(env = process.env, home = homedir4(), _opti
12445
12452
  function resolveWorkspacePath(options = {}) {
12446
12453
  const env = options.env ?? process.env;
12447
12454
  const home = options.home ?? homedir4();
12455
+ const strict = options.strict ?? true;
12448
12456
  const requireExistingEnvPath = options.requireExistingEnvPath ?? false;
12449
12457
  const configPath = getWorkspaceConfigPath(env, home);
12450
12458
  const envPath = resolveEnvWorkspace(env, home, requireExistingEnvPath);
12451
- const configValue = readConfiguredWorkspacePath(env, home);
12459
+ const configValue = readConfiguredWorkspacePath(env, home, { strict: envPath ? false : strict });
12452
12460
  if (envPath) {
12453
12461
  return {
12454
12462
  path: envPath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-gemini",
3
- "version": "0.200.17",
3
+ "version": "0.200.19",
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.200.17",
28
- "@signetai/core": "0.200.17"
27
+ "@signetai/connector-base": "0.200.19",
28
+ "@signetai/core": "0.200.19"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",