@signetai/connector-gemini 0.154.3 → 0.154.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.
Files changed (2) hide show
  1. package/dist/index.js +13 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -11145,10 +11145,21 @@ function readManagedTrimmedEnv(name) {
11145
11145
  const trimmed = value.trim();
11146
11146
  return trimmed.length > 0 ? trimmed : undefined;
11147
11147
  }
11148
+ function isExistingDirectory(path) {
11149
+ try {
11150
+ return statSync(path).isDirectory();
11151
+ } catch {
11152
+ return false;
11153
+ }
11154
+ }
11148
11155
  function resolveSignetWorkspacePath(home2 = homedir()) {
11149
11156
  const configured = readManagedTrimmedEnv("SIGNET_PATH");
11150
- if (configured)
11151
- return resolve(expandHome(configured));
11157
+ if (configured) {
11158
+ const resolved = resolve(expandHome(configured));
11159
+ if (isExistingDirectory(resolved))
11160
+ return resolved;
11161
+ console.warn(`[signet] SIGNET_PATH="${configured}" does not point to an existing workspace directory; using the default workspace resolution instead.`);
11162
+ }
11152
11163
  const defaultWorkspace = join3(home2, ".agents");
11153
11164
  const configHome = readManagedTrimmedEnv("XDG_CONFIG_HOME") ?? join3(home2, ".config");
11154
11165
  const workspaceConfigPath = join3(configHome, "signet", "workspace.json");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-gemini",
3
- "version": "0.154.3",
3
+ "version": "0.154.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.154.3",
28
- "@signetai/core": "0.154.3"
27
+ "@signetai/connector-base": "0.154.6",
28
+ "@signetai/core": "0.154.6"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",