@signetai/connector-forge 0.219.6 → 0.221.1

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 +24 -24
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -53,9 +53,9 @@ import { homedir as homedir5 } from "node:os";
53
53
  import { dirname as dirname4, join as join8, resolve as resolve3 } from "node:path";
54
54
  import { homedir as homedir6, platform as platform2 } from "node:os";
55
55
  import { basename, dirname as dirname5, resolve as resolve5 } from "node:path";
56
- import { homedir as homedir10 } from "node:os";
57
- import { existsSync as existsSync15, lstatSync, mkdirSync as mkdirSync10, readdirSync as readdirSync7, symlinkSync, unlinkSync as unlinkSync2 } from "node:fs";
58
- import { join as join15 } from "node:path";
56
+ import { homedir as homedir8 } from "node:os";
57
+ import { existsSync as existsSync13, lstatSync, mkdirSync as mkdirSync8, readdirSync as readdirSync6, symlinkSync, unlinkSync as unlinkSync2 } from "node:fs";
58
+ import { join as join13 } from "node:path";
59
59
  var __create2 = Object.create;
60
60
  var __getProtoOf2 = Object.getPrototypeOf;
61
61
  var __defProp2 = Object.defineProperty;
@@ -18153,19 +18153,19 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
18153
18153
  skipped: [],
18154
18154
  errors: []
18155
18155
  };
18156
- if (!existsSync15(sourceDir)) {
18156
+ if (!existsSync13(sourceDir)) {
18157
18157
  return result;
18158
18158
  }
18159
- const targetParent = join15(targetDir, "..");
18160
- if (!existsSync15(targetParent)) {
18161
- mkdirSync10(targetParent, { recursive: true });
18159
+ const targetParent = join13(targetDir, "..");
18160
+ if (!existsSync13(targetParent)) {
18161
+ mkdirSync8(targetParent, { recursive: true });
18162
18162
  }
18163
- if (!existsSync15(targetDir)) {
18164
- mkdirSync10(targetDir, { recursive: true });
18163
+ if (!existsSync13(targetDir)) {
18164
+ mkdirSync8(targetDir, { recursive: true });
18165
18165
  }
18166
18166
  let entries;
18167
18167
  try {
18168
- entries = readdirSync7(sourceDir);
18168
+ entries = readdirSync6(sourceDir);
18169
18169
  } catch (e) {
18170
18170
  result.errors.push({
18171
18171
  path: sourceDir,
@@ -18174,8 +18174,8 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
18174
18174
  return result;
18175
18175
  }
18176
18176
  for (const entry of entries) {
18177
- const srcPath = join15(sourceDir, entry);
18178
- const destPath = join15(targetDir, entry);
18177
+ const srcPath = join13(sourceDir, entry);
18178
+ const destPath = join13(targetDir, entry);
18179
18179
  try {
18180
18180
  const src = lstatSync(srcPath);
18181
18181
  if (src.isSymbolicLink() || !src.isDirectory()) {
@@ -18216,7 +18216,7 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
18216
18216
  }
18217
18217
  return result;
18218
18218
  }
18219
- var home = homedir10();
18219
+ var home = homedir8();
18220
18220
  var SIGNET_BLOCK_START = "<!-- SIGNET:START -->";
18221
18221
  var SIGNET_BLOCK_END = "<!-- SIGNET:END -->";
18222
18222
  function stripSignetBlock(content) {
@@ -18406,9 +18406,9 @@ import { homedir as homedir52 } from "node:os";
18406
18406
  import { dirname as dirname42, join as join82, resolve as resolve32 } from "node:path";
18407
18407
  import { homedir as homedir62, platform as platform22 } from "node:os";
18408
18408
  import { basename as basename2, dirname as dirname52, resolve as resolve52 } from "node:path";
18409
- import { existsSync as existsSync13, readFileSync as readFileSync11, readdirSync as readdirSync5, realpathSync as realpathSync2, statSync as statSync7 } from "node:fs";
18410
- import { dirname as dirname8, join as join13 } from "node:path";
18411
- import { homedir as homedir102 } from "node:os";
18409
+ import { existsSync as existsSync11, readFileSync as readFileSync9, realpathSync as realpathSync2, statSync as statSync7 } from "node:fs";
18410
+ import { dirname as dirname62, join as join11 } from "node:path";
18411
+ import { homedir as homedir82 } from "node:os";
18412
18412
  var __create = Object.create;
18413
18413
  var __getProtoOf = Object.getPrototypeOf;
18414
18414
  var __defProp = Object.defineProperty;
@@ -36367,7 +36367,7 @@ function hasValidIdentity(basePath) {
36367
36367
  if (mode !== "managed")
36368
36368
  return true;
36369
36369
  for (const path of resolveRequiredIdentityPaths(basePath)) {
36370
- if (!existsSync13(join13(basePath, path))) {
36370
+ if (!existsSync11(join11(basePath, path))) {
36371
36371
  return false;
36372
36372
  }
36373
36373
  }
@@ -36375,11 +36375,11 @@ function hasValidIdentity(basePath) {
36375
36375
  }
36376
36376
  function resolveRequiredIdentityPaths(basePath) {
36377
36377
  const legacyRequired = () => REQUIRED_IDENTITY_KEYS2.map((key) => IDENTITY_FILES2[key].path);
36378
- const agentYaml = join13(basePath, "agent.yaml");
36379
- if (!existsSync13(agentYaml))
36378
+ const agentYaml = join11(basePath, "agent.yaml");
36379
+ if (!existsSync11(agentYaml))
36380
36380
  return legacyRequired();
36381
36381
  try {
36382
- const config = parseSimpleYaml(readFileSync11(agentYaml, "utf-8"));
36382
+ const config = parseSimpleYaml(readFileSync9(agentYaml, "utf-8"));
36383
36383
  const identity = readRecord(readRecord(config).identity);
36384
36384
  const configured = readIdentityEntryList(readRecord(identity.startup).load);
36385
36385
  if (configured.length > 0)
@@ -36422,11 +36422,11 @@ function resolveIdentityModeFromConfig(config) {
36422
36422
  return "managed";
36423
36423
  }
36424
36424
  function loadIdentityMode(agentsDir) {
36425
- const agentYaml = join13(agentsDir, "agent.yaml");
36426
- if (!existsSync13(agentYaml))
36425
+ const agentYaml = join11(agentsDir, "agent.yaml");
36426
+ if (!existsSync11(agentYaml))
36427
36427
  return "managed";
36428
36428
  try {
36429
- return resolveIdentityModeFromConfig(parseSimpleYaml(readFileSync11(agentYaml, "utf-8")));
36429
+ return resolveIdentityModeFromConfig(parseSimpleYaml(readFileSync9(agentYaml, "utf-8")));
36430
36430
  } catch {
36431
36431
  return "managed";
36432
36432
  }
@@ -36451,7 +36451,7 @@ function readIdentityEntryList(value) {
36451
36451
  return [];
36452
36452
  return value.map(readIdentityEntry).filter((entry) => entry !== null);
36453
36453
  }
36454
- var home2 = homedir102();
36454
+ var home2 = homedir82();
36455
36455
 
36456
36456
  // src/index.ts
36457
36457
  var SIGNET_FORGE_MARKER = "Managed by Signet (@signetai/connector-forge)";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-forge",
3
- "version": "0.219.6",
3
+ "version": "0.221.1",
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.219.6",
28
- "@signetai/core": "0.219.6"
27
+ "@signetai/connector-base": "0.221.1",
28
+ "@signetai/core": "0.221.1"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",