@signetai/connector-forge 0.219.5 → 0.220.0

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 +104 -28
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -21,10 +21,17 @@ import { dirname as dirname2, isAbsolute, join as join3, relative, sep } from "n
21
21
  import { createRequire } from "node:module";
22
22
  import { dirname, join } from "node:path";
23
23
  import { fileURLToPath } from "node:url";
24
+ import {
25
+ execFile as nodeExecFile,
26
+ execFileSync as nodeExecFileSync,
27
+ execSync as nodeExecSync,
28
+ spawn as nodeSpawn,
29
+ spawnSync as nodeSpawnSync
30
+ } from "node:child_process";
31
+ import { promisify } from "node:util";
24
32
  import { createHash } from "node:crypto";
25
33
  import { homedir as homedir2 } from "node:os";
26
34
  import { join as join2, resolve } from "node:path";
27
- import { execFileSync as execFileSync3 } from "node:child_process";
28
35
  import { createHash as createHash2 } from "node:crypto";
29
36
  import { createRequire as createRequire2 } from "node:module";
30
37
  import {
@@ -46,9 +53,9 @@ import { homedir as homedir5 } from "node:os";
46
53
  import { dirname as dirname4, join as join8, resolve as resolve3 } from "node:path";
47
54
  import { homedir as homedir6, platform as platform2 } from "node:os";
48
55
  import { basename, dirname as dirname5, resolve as resolve5 } from "node:path";
49
- import { homedir as homedir10 } from "node:os";
50
- import { existsSync as existsSync15, lstatSync, mkdirSync as mkdirSync10, readdirSync as readdirSync7, symlinkSync, unlinkSync as unlinkSync2 } from "node:fs";
51
- 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";
52
59
  var __create2 = Object.create;
53
60
  var __getProtoOf2 = Object.getPrototypeOf;
54
61
  var __defProp2 = Object.defineProperty;
@@ -11191,6 +11198,37 @@ var PIPELINE_PROVIDER_CHOICES = [
11191
11198
  var SYNTHESIS_PROVIDER_CHOICES = PIPELINE_PROVIDER_CHOICES.filter((provider) => provider !== "command");
11192
11199
  var PIPELINE_PROVIDER_SET = new Set(PIPELINE_PROVIDER_CHOICES);
11193
11200
  var SYNTHESIS_PROVIDER_SET = new Set(SYNTHESIS_PROVIDER_CHOICES);
11201
+ function withWindowsHide(options) {
11202
+ return {
11203
+ ...options ?? {},
11204
+ windowsHide: options?.windowsHide ?? true
11205
+ };
11206
+ }
11207
+ function isOptions(value) {
11208
+ return typeof value === "object" && value !== null && !Array.isArray(value);
11209
+ }
11210
+ function withWindowsHideArgument(args, firstOptionIndex) {
11211
+ const normalized = [...args];
11212
+ const optionIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && isOptions(value));
11213
+ if (optionIndex >= 0) {
11214
+ normalized[optionIndex] = withWindowsHide(normalized[optionIndex]);
11215
+ return normalized;
11216
+ }
11217
+ const placeholderIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && (value === undefined || value === null));
11218
+ if (placeholderIndex >= 0) {
11219
+ normalized[placeholderIndex] = withWindowsHide(undefined);
11220
+ return normalized;
11221
+ }
11222
+ const callbackIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && typeof value === "function");
11223
+ normalized.splice(callbackIndex >= 0 ? callbackIndex : normalized.length, 0, { windowsHide: true });
11224
+ return normalized;
11225
+ }
11226
+ var nodeExecFileAsync = promisify(nodeExecFile);
11227
+ var execFileHiddenImpl = (...args) => Reflect.apply(nodeExecFile, undefined, withWindowsHideArgument(args, 1));
11228
+ Object.defineProperty(execFileHiddenImpl, promisify.custom, {
11229
+ value: (...args) => Reflect.apply(nodeExecFileAsync, undefined, withWindowsHideArgument(args, 1))
11230
+ });
11231
+ var execFileSyncHidden = (...args) => Reflect.apply(nodeExecFileSync, undefined, withWindowsHideArgument(args, 1));
11194
11232
  var MEMORY_CONTENT_SAFETY_POLICY_VERSION = "memory-content-safety-v1";
11195
11233
  var MEMORY_CONTENT_SAFETY_REASONS = [
11196
11234
  "prompt_injection",
@@ -17713,7 +17751,7 @@ function linuxKeyringAvailable() {
17713
17751
  };
17714
17752
  }
17715
17753
  try {
17716
- execFileSync3("busctl", ["--user", "status", "org.freedesktop.secrets"], {
17754
+ execFileSyncHidden("busctl", ["--user", "status", "org.freedesktop.secrets"], {
17717
17755
  stdio: "ignore",
17718
17756
  timeout: 1000
17719
17757
  });
@@ -18115,19 +18153,19 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
18115
18153
  skipped: [],
18116
18154
  errors: []
18117
18155
  };
18118
- if (!existsSync15(sourceDir)) {
18156
+ if (!existsSync13(sourceDir)) {
18119
18157
  return result;
18120
18158
  }
18121
- const targetParent = join15(targetDir, "..");
18122
- if (!existsSync15(targetParent)) {
18123
- mkdirSync10(targetParent, { recursive: true });
18159
+ const targetParent = join13(targetDir, "..");
18160
+ if (!existsSync13(targetParent)) {
18161
+ mkdirSync8(targetParent, { recursive: true });
18124
18162
  }
18125
- if (!existsSync15(targetDir)) {
18126
- mkdirSync10(targetDir, { recursive: true });
18163
+ if (!existsSync13(targetDir)) {
18164
+ mkdirSync8(targetDir, { recursive: true });
18127
18165
  }
18128
18166
  let entries;
18129
18167
  try {
18130
- entries = readdirSync7(sourceDir);
18168
+ entries = readdirSync6(sourceDir);
18131
18169
  } catch (e) {
18132
18170
  result.errors.push({
18133
18171
  path: sourceDir,
@@ -18136,8 +18174,8 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
18136
18174
  return result;
18137
18175
  }
18138
18176
  for (const entry of entries) {
18139
- const srcPath = join15(sourceDir, entry);
18140
- const destPath = join15(targetDir, entry);
18177
+ const srcPath = join13(sourceDir, entry);
18178
+ const destPath = join13(targetDir, entry);
18141
18179
  try {
18142
18180
  const src = lstatSync(srcPath);
18143
18181
  if (src.isSymbolicLink() || !src.isDirectory()) {
@@ -18178,7 +18216,7 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
18178
18216
  }
18179
18217
  return result;
18180
18218
  }
18181
- var home = homedir10();
18219
+ var home = homedir8();
18182
18220
  var SIGNET_BLOCK_START = "<!-- SIGNET:START -->";
18183
18221
  var SIGNET_BLOCK_END = "<!-- SIGNET:END -->";
18184
18222
  function stripSignetBlock(content) {
@@ -18350,10 +18388,17 @@ function resolveRemoteDaemonUrl() {
18350
18388
  import { createRequire as createRequire4 } from "node:module";
18351
18389
  import { dirname as dirname6, join as join4 } from "node:path";
18352
18390
  import { fileURLToPath as fileURLToPath2 } from "node:url";
18391
+ import {
18392
+ execFile as nodeExecFile2,
18393
+ execFileSync as nodeExecFileSync2,
18394
+ execSync as nodeExecSync2,
18395
+ spawn as nodeSpawn2,
18396
+ spawnSync as nodeSpawnSync2
18397
+ } from "node:child_process";
18398
+ import { promisify as promisify2 } from "node:util";
18353
18399
  import { createHash as createHash3 } from "node:crypto";
18354
18400
  import { homedir as homedir22 } from "node:os";
18355
18401
  import { join as join22, resolve as resolve4 } from "node:path";
18356
- import { execFileSync as execFileSync32 } from "node:child_process";
18357
18402
  import { createHash as createHash22 } from "node:crypto";
18358
18403
  import { createRequire as createRequire22 } from "node:module";
18359
18404
  import { createRequire as createRequire32 } from "node:module";
@@ -18361,9 +18406,9 @@ import { homedir as homedir52 } from "node:os";
18361
18406
  import { dirname as dirname42, join as join82, resolve as resolve32 } from "node:path";
18362
18407
  import { homedir as homedir62, platform as platform22 } from "node:os";
18363
18408
  import { basename as basename2, dirname as dirname52, resolve as resolve52 } from "node:path";
18364
- import { existsSync as existsSync13, readFileSync as readFileSync11, readdirSync as readdirSync5, realpathSync as realpathSync2, statSync as statSync7 } from "node:fs";
18365
- import { dirname as dirname8, join as join13 } from "node:path";
18366
- 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";
18367
18412
  var __create = Object.create;
18368
18413
  var __getProtoOf = Object.getPrototypeOf;
18369
18414
  var __defProp = Object.defineProperty;
@@ -29506,6 +29551,37 @@ var PIPELINE_PROVIDER_CHOICES2 = [
29506
29551
  var SYNTHESIS_PROVIDER_CHOICES2 = PIPELINE_PROVIDER_CHOICES2.filter((provider) => provider !== "command");
29507
29552
  var PIPELINE_PROVIDER_SET2 = new Set(PIPELINE_PROVIDER_CHOICES2);
29508
29553
  var SYNTHESIS_PROVIDER_SET2 = new Set(SYNTHESIS_PROVIDER_CHOICES2);
29554
+ function withWindowsHide2(options) {
29555
+ return {
29556
+ ...options ?? {},
29557
+ windowsHide: options?.windowsHide ?? true
29558
+ };
29559
+ }
29560
+ function isOptions2(value) {
29561
+ return typeof value === "object" && value !== null && !Array.isArray(value);
29562
+ }
29563
+ function withWindowsHideArgument2(args, firstOptionIndex) {
29564
+ const normalized = [...args];
29565
+ const optionIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && isOptions2(value));
29566
+ if (optionIndex >= 0) {
29567
+ normalized[optionIndex] = withWindowsHide2(normalized[optionIndex]);
29568
+ return normalized;
29569
+ }
29570
+ const placeholderIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && (value === undefined || value === null));
29571
+ if (placeholderIndex >= 0) {
29572
+ normalized[placeholderIndex] = withWindowsHide2(undefined);
29573
+ return normalized;
29574
+ }
29575
+ const callbackIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && typeof value === "function");
29576
+ normalized.splice(callbackIndex >= 0 ? callbackIndex : normalized.length, 0, { windowsHide: true });
29577
+ return normalized;
29578
+ }
29579
+ var nodeExecFileAsync2 = promisify2(nodeExecFile2);
29580
+ var execFileHiddenImpl2 = (...args) => Reflect.apply(nodeExecFile2, undefined, withWindowsHideArgument2(args, 1));
29581
+ Object.defineProperty(execFileHiddenImpl2, promisify2.custom, {
29582
+ value: (...args) => Reflect.apply(nodeExecFileAsync2, undefined, withWindowsHideArgument2(args, 1))
29583
+ });
29584
+ var execFileSyncHidden2 = (...args) => Reflect.apply(nodeExecFileSync2, undefined, withWindowsHideArgument2(args, 1));
29509
29585
  var MEMORY_CONTENT_SAFETY_POLICY_VERSION2 = "memory-content-safety-v1";
29510
29586
  var MEMORY_CONTENT_SAFETY_REASONS2 = [
29511
29587
  "prompt_injection",
@@ -36028,7 +36104,7 @@ function linuxKeyringAvailable2() {
36028
36104
  };
36029
36105
  }
36030
36106
  try {
36031
- execFileSync32("busctl", ["--user", "status", "org.freedesktop.secrets"], {
36107
+ execFileSyncHidden2("busctl", ["--user", "status", "org.freedesktop.secrets"], {
36032
36108
  stdio: "ignore",
36033
36109
  timeout: 1000
36034
36110
  });
@@ -36291,7 +36367,7 @@ function hasValidIdentity(basePath) {
36291
36367
  if (mode !== "managed")
36292
36368
  return true;
36293
36369
  for (const path of resolveRequiredIdentityPaths(basePath)) {
36294
- if (!existsSync13(join13(basePath, path))) {
36370
+ if (!existsSync11(join11(basePath, path))) {
36295
36371
  return false;
36296
36372
  }
36297
36373
  }
@@ -36299,11 +36375,11 @@ function hasValidIdentity(basePath) {
36299
36375
  }
36300
36376
  function resolveRequiredIdentityPaths(basePath) {
36301
36377
  const legacyRequired = () => REQUIRED_IDENTITY_KEYS2.map((key) => IDENTITY_FILES2[key].path);
36302
- const agentYaml = join13(basePath, "agent.yaml");
36303
- if (!existsSync13(agentYaml))
36378
+ const agentYaml = join11(basePath, "agent.yaml");
36379
+ if (!existsSync11(agentYaml))
36304
36380
  return legacyRequired();
36305
36381
  try {
36306
- const config = parseSimpleYaml(readFileSync11(agentYaml, "utf-8"));
36382
+ const config = parseSimpleYaml(readFileSync9(agentYaml, "utf-8"));
36307
36383
  const identity = readRecord(readRecord(config).identity);
36308
36384
  const configured = readIdentityEntryList(readRecord(identity.startup).load);
36309
36385
  if (configured.length > 0)
@@ -36346,11 +36422,11 @@ function resolveIdentityModeFromConfig(config) {
36346
36422
  return "managed";
36347
36423
  }
36348
36424
  function loadIdentityMode(agentsDir) {
36349
- const agentYaml = join13(agentsDir, "agent.yaml");
36350
- if (!existsSync13(agentYaml))
36425
+ const agentYaml = join11(agentsDir, "agent.yaml");
36426
+ if (!existsSync11(agentYaml))
36351
36427
  return "managed";
36352
36428
  try {
36353
- return resolveIdentityModeFromConfig(parseSimpleYaml(readFileSync11(agentYaml, "utf-8")));
36429
+ return resolveIdentityModeFromConfig(parseSimpleYaml(readFileSync9(agentYaml, "utf-8")));
36354
36430
  } catch {
36355
36431
  return "managed";
36356
36432
  }
@@ -36375,7 +36451,7 @@ function readIdentityEntryList(value) {
36375
36451
  return [];
36376
36452
  return value.map(readIdentityEntry).filter((entry) => entry !== null);
36377
36453
  }
36378
- var home2 = homedir102();
36454
+ var home2 = homedir82();
36379
36455
 
36380
36456
  // src/index.ts
36381
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.5",
3
+ "version": "0.220.0",
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.5",
28
- "@signetai/core": "0.219.5"
27
+ "@signetai/connector-base": "0.220.0",
28
+ "@signetai/core": "0.220.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",