@signetai/connector-forge 0.200.18 → 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
@@ -12502,7 +12502,8 @@ function isRecord4(value) {
12502
12502
  function getWorkspaceConfigPath(env = process.env, home = homedir4()) {
12503
12503
  return join6(readConfigHome(env, home), "signet", "workspace.json");
12504
12504
  }
12505
- function readConfiguredWorkspacePath(env = process.env, home = homedir4(), _options = {}) {
12505
+ function readConfiguredWorkspacePath(env = process.env, home = homedir4(), options = {}) {
12506
+ const strict = options.strict ?? true;
12506
12507
  const configPath = getWorkspaceConfigPath(env, home);
12507
12508
  if (!existsSync4(configPath))
12508
12509
  return null;
@@ -12510,14 +12511,20 @@ function readConfiguredWorkspacePath(env = process.env, home = homedir4(), _opti
12510
12511
  try {
12511
12512
  raw = JSON.parse(readFileSync3(configPath, "utf-8"));
12512
12513
  } catch (err) {
12514
+ if (!strict)
12515
+ return null;
12513
12516
  const detail = err instanceof Error ? err.message : String(err);
12514
12517
  throw new Error(`Invalid Signet workspace config at ${configPath}: ${detail}`);
12515
12518
  }
12516
12519
  if (!isRecord4(raw) || !("workspace" in raw)) {
12520
+ if (!strict)
12521
+ return null;
12517
12522
  throw new Error(`Invalid Signet workspace config at ${configPath}: missing workspace`);
12518
12523
  }
12519
12524
  const workspace = raw.workspace;
12520
12525
  if (typeof workspace !== "string" || workspace.trim().length === 0) {
12526
+ if (!strict)
12527
+ return null;
12521
12528
  throw new Error(`Invalid Signet workspace config at ${configPath}: workspace must be a non-empty string`);
12522
12529
  }
12523
12530
  return normalizeWorkspacePath(workspace, home);
@@ -12525,10 +12532,11 @@ function readConfiguredWorkspacePath(env = process.env, home = homedir4(), _opti
12525
12532
  function resolveWorkspacePath(options = {}) {
12526
12533
  const env = options.env ?? process.env;
12527
12534
  const home = options.home ?? homedir4();
12535
+ const strict = options.strict ?? true;
12528
12536
  const requireExistingEnvPath = options.requireExistingEnvPath ?? false;
12529
12537
  const configPath = getWorkspaceConfigPath(env, home);
12530
12538
  const envPath = resolveEnvWorkspace(env, home, requireExistingEnvPath);
12531
- const configValue = readConfiguredWorkspacePath(env, home);
12539
+ const configValue = readConfiguredWorkspacePath(env, home, { strict: envPath ? false : strict });
12532
12540
  if (envPath) {
12533
12541
  return {
12534
12542
  path: envPath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-forge",
3
- "version": "0.200.18",
3
+ "version": "0.200.19",
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.200.18",
28
- "@signetai/core": "0.200.18"
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",