@signetai/connector-base 0.219.5 → 0.219.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 +40 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -40,10 +40,17 @@ import { dirname as dirname2, isAbsolute, join as join3, relative, sep } from "n
40
40
  import { createRequire } from "node:module";
41
41
  import { dirname, join } from "node:path";
42
42
  import { fileURLToPath } from "node:url";
43
+ import {
44
+ execFile as nodeExecFile,
45
+ execFileSync as nodeExecFileSync,
46
+ execSync as nodeExecSync,
47
+ spawn as nodeSpawn,
48
+ spawnSync as nodeSpawnSync
49
+ } from "node:child_process";
50
+ import { promisify } from "node:util";
43
51
  import { createHash } from "node:crypto";
44
52
  import { homedir as homedir2 } from "node:os";
45
53
  import { join as join2, resolve } from "node:path";
46
- import { execFileSync as execFileSync3 } from "node:child_process";
47
54
  import { createHash as createHash2 } from "node:crypto";
48
55
  import { createRequire as createRequire2 } from "node:module";
49
56
  import {
@@ -11210,6 +11217,37 @@ var PIPELINE_PROVIDER_CHOICES = [
11210
11217
  var SYNTHESIS_PROVIDER_CHOICES = PIPELINE_PROVIDER_CHOICES.filter((provider) => provider !== "command");
11211
11218
  var PIPELINE_PROVIDER_SET = new Set(PIPELINE_PROVIDER_CHOICES);
11212
11219
  var SYNTHESIS_PROVIDER_SET = new Set(SYNTHESIS_PROVIDER_CHOICES);
11220
+ function withWindowsHide(options) {
11221
+ return {
11222
+ ...options ?? {},
11223
+ windowsHide: options?.windowsHide ?? true
11224
+ };
11225
+ }
11226
+ function isOptions(value) {
11227
+ return typeof value === "object" && value !== null && !Array.isArray(value);
11228
+ }
11229
+ function withWindowsHideArgument(args, firstOptionIndex) {
11230
+ const normalized = [...args];
11231
+ const optionIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && isOptions(value));
11232
+ if (optionIndex >= 0) {
11233
+ normalized[optionIndex] = withWindowsHide(normalized[optionIndex]);
11234
+ return normalized;
11235
+ }
11236
+ const placeholderIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && (value === undefined || value === null));
11237
+ if (placeholderIndex >= 0) {
11238
+ normalized[placeholderIndex] = withWindowsHide(undefined);
11239
+ return normalized;
11240
+ }
11241
+ const callbackIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && typeof value === "function");
11242
+ normalized.splice(callbackIndex >= 0 ? callbackIndex : normalized.length, 0, { windowsHide: true });
11243
+ return normalized;
11244
+ }
11245
+ var nodeExecFileAsync = promisify(nodeExecFile);
11246
+ var execFileHiddenImpl = (...args) => Reflect.apply(nodeExecFile, undefined, withWindowsHideArgument(args, 1));
11247
+ Object.defineProperty(execFileHiddenImpl, promisify.custom, {
11248
+ value: (...args) => Reflect.apply(nodeExecFileAsync, undefined, withWindowsHideArgument(args, 1))
11249
+ });
11250
+ var execFileSyncHidden = (...args) => Reflect.apply(nodeExecFileSync, undefined, withWindowsHideArgument(args, 1));
11213
11251
  var MEMORY_CONTENT_SAFETY_POLICY_VERSION = "memory-content-safety-v1";
11214
11252
  var MEMORY_CONTENT_SAFETY_REASONS = [
11215
11253
  "prompt_injection",
@@ -17732,7 +17770,7 @@ function linuxKeyringAvailable() {
17732
17770
  };
17733
17771
  }
17734
17772
  try {
17735
- execFileSync3("busctl", ["--user", "status", "org.freedesktop.secrets"], {
17773
+ execFileSyncHidden("busctl", ["--user", "status", "org.freedesktop.secrets"], {
17736
17774
  stdio: "ignore",
17737
17775
  timeout: 1000
17738
17776
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-base",
3
- "version": "0.219.5",
3
+ "version": "0.219.6",
4
4
  "description": "Base class for Signet harness connectors",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "typecheck": "tsc --noEmit"
27
27
  },
28
28
  "dependencies": {
29
- "@signetai/core": "0.219.5",
29
+ "@signetai/core": "0.219.6",
30
30
  "json5": "^2.2.3",
31
31
  "jsonc-parser": "3.3.1"
32
32
  },