@signetai/connector-forge 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
@@ -11160,10 +11160,21 @@ function readManagedTrimmedEnv(name) {
11160
11160
  const trimmed = value.trim();
11161
11161
  return trimmed.length > 0 ? trimmed : undefined;
11162
11162
  }
11163
+ function isExistingDirectory(path) {
11164
+ try {
11165
+ return statSync(path).isDirectory();
11166
+ } catch {
11167
+ return false;
11168
+ }
11169
+ }
11163
11170
  function resolveSignetWorkspacePath(home2 = homedir()) {
11164
11171
  const configured = readManagedTrimmedEnv("SIGNET_PATH");
11165
- if (configured)
11166
- return resolve(expandHome(configured));
11172
+ if (configured) {
11173
+ const resolved = resolve(expandHome(configured));
11174
+ if (isExistingDirectory(resolved))
11175
+ return resolved;
11176
+ console.warn(`[signet] SIGNET_PATH="${configured}" does not point to an existing workspace directory; using the default workspace resolution instead.`);
11177
+ }
11167
11178
  const defaultWorkspace = join3(home2, ".agents");
11168
11179
  const configHome = readManagedTrimmedEnv("XDG_CONFIG_HOME") ?? join3(home2, ".config");
11169
11180
  const workspaceConfigPath = join3(configHome, "signet", "workspace.json");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-forge",
3
- "version": "0.154.3",
3
+ "version": "0.154.6",
4
4
  "description": "Signet connector for ForgeCode - installs MCP, identity, and skills integration",
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",