@signetai/connector-forge 0.214.42 → 0.216.4

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 +38 -38
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  writeFileSync as writeFileSync2
12
12
  } from "node:fs";
13
13
  import { homedir as homedir3 } from "node:os";
14
- import { join as join6, resolve as resolve3 } from "node:path";
14
+ import { join as join6, resolve as resolve6 } from "node:path";
15
15
 
16
16
  // ../../../libs/connector-base/dist/index.js
17
17
  import { randomBytes } from "node:crypto";
@@ -22,32 +22,32 @@ import { createRequire } from "node:module";
22
22
  import { dirname, join } from "node:path";
23
23
  import { fileURLToPath } from "node:url";
24
24
  import { createHash } from "node:crypto";
25
- import { homedir as homedir2 } from "os";
26
- import { join as join2 } from "path";
25
+ import { homedir as homedir2 } from "node:os";
26
+ import { join as join2, resolve } from "node:path";
27
27
  import { execFileSync as execFileSync2 } from "node:child_process";
28
28
  import { createHash as createHash2 } from "node:crypto";
29
29
  import { createRequire as createRequire2 } from "node:module";
30
30
  import {
31
31
  closeSync as closeSync2,
32
- existsSync as existsSync5,
32
+ existsSync as existsSync6,
33
33
  fsyncSync as fsyncSync2,
34
34
  mkdirSync as mkdirSync3,
35
35
  openSync as openSync2,
36
- readFileSync as readFileSync4,
36
+ readFileSync as readFileSync5,
37
37
  renameSync as renameSync2,
38
38
  rmSync,
39
39
  statSync as statSync3,
40
40
  writeSync
41
41
  } from "node:fs";
42
42
  import { homedir as homedir4 } from "node:os";
43
- import { dirname as dirname3, join as join7, resolve } from "node:path";
43
+ import { dirname as dirname3, join as join7, resolve as resolve2 } from "node:path";
44
44
  import { createRequire as createRequire3 } from "node:module";
45
45
  import { homedir as homedir5 } from "node:os";
46
- import { dirname as dirname4, join as join8, resolve as resolve2 } from "node:path";
46
+ import { dirname as dirname4, join as join8, resolve as resolve3 } from "node:path";
47
47
  import { homedir as homedir6, platform as platform2 } from "node:os";
48
- import { basename, dirname as dirname5, resolve as resolve4 } from "node:path";
48
+ import { basename, dirname as dirname5, resolve as resolve5 } from "node:path";
49
49
  import { homedir as homedir10 } from "node:os";
50
- import { existsSync as existsSync14, lstatSync, mkdirSync as mkdirSync10, readdirSync as readdirSync7, symlinkSync, unlinkSync as unlinkSync2 } from "node:fs";
50
+ import { existsSync as existsSync15, lstatSync, mkdirSync as mkdirSync10, readdirSync as readdirSync7, symlinkSync, unlinkSync as unlinkSync2 } from "node:fs";
51
51
  import { join as join15 } from "node:path";
52
52
  var __create2 = Object.create;
53
53
  var __getProtoOf2 = Object.getPrototypeOf;
@@ -7027,7 +7027,7 @@ var require_keyring = __commonJS2((exports, module) => {
7027
7027
  var __filename2 = "/home/runner/work/signetai/signetai/node_modules/.bun/@napi-rs+keyring@1.3.0/node_modules/@napi-rs/keyring/index.js";
7028
7028
  var { createRequire: createRequire22 } = __require("node:module");
7029
7029
  __require = createRequire22(__filename2);
7030
- var { readFileSync: readFileSync2 } = __require("node:fs");
7030
+ var { readFileSync: readFileSync3 } = __require("node:fs");
7031
7031
  var nativeBinding = null;
7032
7032
  var loadErrors = [];
7033
7033
  var isMusl = () => {
@@ -7046,7 +7046,7 @@ var require_keyring = __commonJS2((exports, module) => {
7046
7046
  var isFileMusl = (f) => f.includes("libc.musl-") || f.includes("ld-musl-");
7047
7047
  var isMuslFromFilesystem = () => {
7048
7048
  try {
7049
- return readFileSync2("/usr/bin/ldd", "utf-8").includes("musl");
7049
+ return readFileSync3("/usr/bin/ldd", "utf-8").includes("musl");
7050
7050
  } catch {
7051
7051
  return null;
7052
7052
  }
@@ -17580,7 +17580,7 @@ function resolveSignetDaemonUrl(opts = {}) {
17580
17580
  var WORKSPACE_ENV_KEYS = ["SIGNET_PATH", "SIGNET_WORKSPACE"];
17581
17581
  var DEFAULT_AGENTS_DIRNAME = ".agents";
17582
17582
  function normalizeWorkspacePath(pathValue, home = homedir4()) {
17583
- return resolve(expandHome(pathValue.trim(), home));
17583
+ return resolve2(expandHome(pathValue.trim(), home));
17584
17584
  }
17585
17585
  function readTrimmedEnv(env, name) {
17586
17586
  const value = env[name];
@@ -17612,11 +17612,11 @@ function getWorkspaceConfigPath(env = process.env, home = homedir4()) {
17612
17612
  function readConfiguredWorkspacePath(env = process.env, home = homedir4(), options = {}) {
17613
17613
  const strict = options.strict ?? true;
17614
17614
  const configPath = getWorkspaceConfigPath(env, home);
17615
- if (!existsSync5(configPath))
17615
+ if (!existsSync6(configPath))
17616
17616
  return null;
17617
17617
  let raw;
17618
17618
  try {
17619
- raw = JSON.parse(readFileSync4(configPath, "utf-8"));
17619
+ raw = JSON.parse(readFileSync5(configPath, "utf-8"));
17620
17620
  } catch (err) {
17621
17621
  if (!strict)
17622
17622
  return null;
@@ -17754,11 +17754,11 @@ var VALID_GITHUB_RESOURCE_TYPES = new Set(DEFAULT_GITHUB_RESOURCE_TYPES);
17754
17754
  function defaultDiscordDesktopCachePath() {
17755
17755
  switch (platform2()) {
17756
17756
  case "darwin":
17757
- return resolve4(homedir6(), "Library", "Application Support", "discord");
17757
+ return resolve5(homedir6(), "Library", "Application Support", "discord");
17758
17758
  case "win32":
17759
- return resolve4(process.env.APPDATA || resolve4(homedir6(), "AppData", "Roaming"), "discord");
17759
+ return resolve5(process.env.APPDATA || resolve5(homedir6(), "AppData", "Roaming"), "discord");
17760
17760
  default:
17761
- return resolve4(process.env.XDG_CONFIG_HOME || resolve4(homedir6(), ".config"), "discord");
17761
+ return resolve5(process.env.XDG_CONFIG_HOME || resolve5(homedir6(), ".config"), "discord");
17762
17762
  }
17763
17763
  }
17764
17764
  var IDENTITY_FILES = {
@@ -17826,14 +17826,14 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
17826
17826
  skipped: [],
17827
17827
  errors: []
17828
17828
  };
17829
- if (!existsSync14(sourceDir)) {
17829
+ if (!existsSync15(sourceDir)) {
17830
17830
  return result;
17831
17831
  }
17832
17832
  const targetParent = join15(targetDir, "..");
17833
- if (!existsSync14(targetParent)) {
17833
+ if (!existsSync15(targetParent)) {
17834
17834
  mkdirSync10(targetParent, { recursive: true });
17835
17835
  }
17836
- if (!existsSync14(targetDir)) {
17836
+ if (!existsSync15(targetDir)) {
17837
17837
  mkdirSync10(targetDir, { recursive: true });
17838
17838
  }
17839
17839
  let entries;
@@ -18062,17 +18062,17 @@ import { createRequire as createRequire4 } from "node:module";
18062
18062
  import { dirname as dirname6, join as join4 } from "node:path";
18063
18063
  import { fileURLToPath as fileURLToPath2 } from "node:url";
18064
18064
  import { createHash as createHash3 } from "node:crypto";
18065
- import { homedir as homedir22 } from "os";
18066
- import { join as join22 } from "path";
18065
+ import { homedir as homedir22 } from "node:os";
18066
+ import { join as join22, resolve as resolve4 } from "node:path";
18067
18067
  import { execFileSync as execFileSync22 } from "node:child_process";
18068
18068
  import { createHash as createHash22 } from "node:crypto";
18069
18069
  import { createRequire as createRequire22 } from "node:module";
18070
18070
  import { createRequire as createRequire32 } from "node:module";
18071
18071
  import { homedir as homedir52 } from "node:os";
18072
- import { dirname as dirname42, join as join82, resolve as resolve22 } from "node:path";
18072
+ import { dirname as dirname42, join as join82, resolve as resolve32 } from "node:path";
18073
18073
  import { homedir as homedir62, platform as platform22 } from "node:os";
18074
- import { basename as basename2, dirname as dirname52, resolve as resolve42 } from "node:path";
18075
- import { existsSync as existsSync12, readFileSync as readFileSync10, readdirSync as readdirSync5, realpathSync as realpathSync2, statSync as statSync7 } from "node:fs";
18074
+ import { basename as basename2, dirname as dirname52, resolve as resolve52 } from "node:path";
18075
+ import { existsSync as existsSync13, readFileSync as readFileSync11, readdirSync as readdirSync5, realpathSync as realpathSync2, statSync as statSync7 } from "node:fs";
18076
18076
  import { dirname as dirname8, join as join13 } from "node:path";
18077
18077
  import { homedir as homedir102 } from "node:os";
18078
18078
  var __create = Object.create;
@@ -25053,7 +25053,7 @@ var require_keyring2 = __commonJS((exports, module) => {
25053
25053
  var __filename3 = "/home/runner/work/signetai/signetai/node_modules/.bun/@napi-rs+keyring@1.3.0/node_modules/@napi-rs/keyring/index.js";
25054
25054
  var { createRequire: createRequire23 } = __require2("node:module");
25055
25055
  __require2 = createRequire23(__filename3);
25056
- var { readFileSync: readFileSync2 } = __require2("node:fs");
25056
+ var { readFileSync: readFileSync3 } = __require2("node:fs");
25057
25057
  var nativeBinding = null;
25058
25058
  var loadErrors = [];
25059
25059
  var isMusl = () => {
@@ -25072,7 +25072,7 @@ var require_keyring2 = __commonJS((exports, module) => {
25072
25072
  var isFileMusl = (f2) => f2.includes("libc.musl-") || f2.includes("ld-musl-");
25073
25073
  var isMuslFromFilesystem = () => {
25074
25074
  try {
25075
- return readFileSync2("/usr/bin/ldd", "utf-8").includes("musl");
25075
+ return readFileSync3("/usr/bin/ldd", "utf-8").includes("musl");
25076
25076
  } catch {
25077
25077
  return null;
25078
25078
  }
@@ -35606,11 +35606,11 @@ var VALID_GITHUB_RESOURCE_TYPES2 = new Set(DEFAULT_GITHUB_RESOURCE_TYPES2);
35606
35606
  function defaultDiscordDesktopCachePath2() {
35607
35607
  switch (platform22()) {
35608
35608
  case "darwin":
35609
- return resolve42(homedir62(), "Library", "Application Support", "discord");
35609
+ return resolve52(homedir62(), "Library", "Application Support", "discord");
35610
35610
  case "win32":
35611
- return resolve42(process.env.APPDATA || resolve42(homedir62(), "AppData", "Roaming"), "discord");
35611
+ return resolve52(process.env.APPDATA || resolve52(homedir62(), "AppData", "Roaming"), "discord");
35612
35612
  default:
35613
- return resolve42(process.env.XDG_CONFIG_HOME || resolve42(homedir62(), ".config"), "discord");
35613
+ return resolve52(process.env.XDG_CONFIG_HOME || resolve52(homedir62(), ".config"), "discord");
35614
35614
  }
35615
35615
  }
35616
35616
  var IDENTITY_MODES = ["managed", "off"];
@@ -35713,7 +35713,7 @@ function hasValidIdentity(basePath) {
35713
35713
  if (mode !== "managed")
35714
35714
  return true;
35715
35715
  for (const path of resolveRequiredIdentityPaths(basePath)) {
35716
- if (!existsSync12(join13(basePath, path))) {
35716
+ if (!existsSync13(join13(basePath, path))) {
35717
35717
  return false;
35718
35718
  }
35719
35719
  }
@@ -35722,10 +35722,10 @@ function hasValidIdentity(basePath) {
35722
35722
  function resolveRequiredIdentityPaths(basePath) {
35723
35723
  const legacyRequired = () => REQUIRED_IDENTITY_KEYS2.map((key) => IDENTITY_FILES2[key].path);
35724
35724
  const agentYaml = join13(basePath, "agent.yaml");
35725
- if (!existsSync12(agentYaml))
35725
+ if (!existsSync13(agentYaml))
35726
35726
  return legacyRequired();
35727
35727
  try {
35728
- const config = parseSimpleYaml(readFileSync10(agentYaml, "utf-8"));
35728
+ const config = parseSimpleYaml(readFileSync11(agentYaml, "utf-8"));
35729
35729
  const identity = readRecord(readRecord(config).identity);
35730
35730
  const configured = readIdentityEntryList(readRecord(identity.startup).load);
35731
35731
  if (configured.length > 0)
@@ -35769,10 +35769,10 @@ function resolveIdentityModeFromConfig(config) {
35769
35769
  }
35770
35770
  function loadIdentityMode(agentsDir) {
35771
35771
  const agentYaml = join13(agentsDir, "agent.yaml");
35772
- if (!existsSync12(agentYaml))
35772
+ if (!existsSync13(agentYaml))
35773
35773
  return "managed";
35774
35774
  try {
35775
- return resolveIdentityModeFromConfig(parseSimpleYaml(readFileSync10(agentYaml, "utf-8")));
35775
+ return resolveIdentityModeFromConfig(parseSimpleYaml(readFileSync11(agentYaml, "utf-8")));
35776
35776
  } catch {
35777
35777
  return "managed";
35778
35778
  }
@@ -35844,7 +35844,7 @@ class ForgeConnector extends BaseConnector {
35844
35844
  getForgeHome() {
35845
35845
  const configured = readTrimmedEnv2("FORGE_CONFIG");
35846
35846
  if (configured)
35847
- return resolve3(expandHome2(configured));
35847
+ return resolve6(expandHome2(configured));
35848
35848
  const legacyPath = join6(getHomeDir(), "forge");
35849
35849
  if (existsSync2(legacyPath))
35850
35850
  return legacyPath;
@@ -36030,7 +36030,7 @@ ${header}${body}
36030
36030
  const skillsDir = this.getSkillsPath();
36031
36031
  if (!existsSync2(skillsDir))
36032
36032
  return;
36033
- const skillsSource = resolve3(signetPath ?? resolveSignetWorkspacePath(), "skills");
36033
+ const skillsSource = resolve6(signetPath ?? resolveSignetWorkspacePath(), "skills");
36034
36034
  let entries;
36035
36035
  try {
36036
36036
  entries = readdirSync(skillsDir);
@@ -36043,7 +36043,7 @@ ${header}${body}
36043
36043
  if (!lstatSync2(entryPath).isSymbolicLink())
36044
36044
  continue;
36045
36045
  const rawTarget = readlinkSync(entryPath);
36046
- const target = resolve3(skillsDir, rawTarget);
36046
+ const target = resolve6(skillsDir, rawTarget);
36047
36047
  if (!isChildOf(target, skillsSource))
36048
36048
  continue;
36049
36049
  unlinkSync3(entryPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-forge",
3
- "version": "0.214.42",
3
+ "version": "0.216.4",
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.214.42",
28
- "@signetai/core": "0.214.42"
27
+ "@signetai/connector-base": "0.216.4",
28
+ "@signetai/core": "0.216.4"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",