@signetai/connector-openclaw 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 +95 -19
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -10,8 +10,15 @@ import { dirname as dirname2, isAbsolute, join as join3, relative, sep } from "n
10
10
  import { createRequire } from "node:module";
11
11
  import { dirname, join } from "node:path";
12
12
  import { fileURLToPath } from "node:url";
13
+ import {
14
+ execFile as nodeExecFile,
15
+ execFileSync as nodeExecFileSync,
16
+ execSync as nodeExecSync,
17
+ spawn as nodeSpawn,
18
+ spawnSync as nodeSpawnSync
19
+ } from "node:child_process";
20
+ import { promisify } from "node:util";
13
21
  import { createHash } from "node:crypto";
14
- import { execFileSync as execFileSync3 } from "node:child_process";
15
22
  import { createHash as createHash2 } from "node:crypto";
16
23
  import { createRequire as createRequire2 } from "node:module";
17
24
  import { createRequire as createRequire3 } from "node:module";
@@ -19,9 +26,9 @@ import { homedir as homedir5 } from "node:os";
19
26
  import { dirname as dirname4, join as join8, resolve as resolve3 } from "node:path";
20
27
  import { homedir as homedir6, platform as platform2 } from "node:os";
21
28
  import { basename, dirname as dirname5, resolve as resolve5 } from "node:path";
22
- import { homedir as homedir10 } from "node:os";
23
- import { existsSync as existsSync15, lstatSync, mkdirSync as mkdirSync10, readdirSync as readdirSync7, symlinkSync, unlinkSync as unlinkSync2 } from "node:fs";
24
- import { join as join15 } from "node:path";
29
+ import { homedir as homedir8 } from "node:os";
30
+ import { existsSync as existsSync13, lstatSync, mkdirSync as mkdirSync8, readdirSync as readdirSync6, symlinkSync, unlinkSync as unlinkSync2 } from "node:fs";
31
+ import { join as join13 } from "node:path";
25
32
  var __create2 = Object.create;
26
33
  var __getProtoOf2 = Object.getPrototypeOf;
27
34
  var __defProp2 = Object.defineProperty;
@@ -11164,6 +11171,37 @@ var PIPELINE_PROVIDER_CHOICES = [
11164
11171
  var SYNTHESIS_PROVIDER_CHOICES = PIPELINE_PROVIDER_CHOICES.filter((provider) => provider !== "command");
11165
11172
  var PIPELINE_PROVIDER_SET = new Set(PIPELINE_PROVIDER_CHOICES);
11166
11173
  var SYNTHESIS_PROVIDER_SET = new Set(SYNTHESIS_PROVIDER_CHOICES);
11174
+ function withWindowsHide(options) {
11175
+ return {
11176
+ ...options ?? {},
11177
+ windowsHide: options?.windowsHide ?? true
11178
+ };
11179
+ }
11180
+ function isOptions(value) {
11181
+ return typeof value === "object" && value !== null && !Array.isArray(value);
11182
+ }
11183
+ function withWindowsHideArgument(args, firstOptionIndex) {
11184
+ const normalized = [...args];
11185
+ const optionIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && isOptions(value));
11186
+ if (optionIndex >= 0) {
11187
+ normalized[optionIndex] = withWindowsHide(normalized[optionIndex]);
11188
+ return normalized;
11189
+ }
11190
+ const placeholderIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && (value === undefined || value === null));
11191
+ if (placeholderIndex >= 0) {
11192
+ normalized[placeholderIndex] = withWindowsHide(undefined);
11193
+ return normalized;
11194
+ }
11195
+ const callbackIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && typeof value === "function");
11196
+ normalized.splice(callbackIndex >= 0 ? callbackIndex : normalized.length, 0, { windowsHide: true });
11197
+ return normalized;
11198
+ }
11199
+ var nodeExecFileAsync = promisify(nodeExecFile);
11200
+ var execFileHiddenImpl = (...args) => Reflect.apply(nodeExecFile, undefined, withWindowsHideArgument(args, 1));
11201
+ Object.defineProperty(execFileHiddenImpl, promisify.custom, {
11202
+ value: (...args) => Reflect.apply(nodeExecFileAsync, undefined, withWindowsHideArgument(args, 1))
11203
+ });
11204
+ var execFileSyncHidden = (...args) => Reflect.apply(nodeExecFileSync, undefined, withWindowsHideArgument(args, 1));
11167
11205
  var MEMORY_CONTENT_SAFETY_POLICY_VERSION = "memory-content-safety-v1";
11168
11206
  var MEMORY_CONTENT_SAFETY_REASONS = [
11169
11207
  "prompt_injection",
@@ -17679,7 +17717,7 @@ function linuxKeyringAvailable() {
17679
17717
  };
17680
17718
  }
17681
17719
  try {
17682
- execFileSync3("busctl", ["--user", "status", "org.freedesktop.secrets"], {
17720
+ execFileSyncHidden("busctl", ["--user", "status", "org.freedesktop.secrets"], {
17683
17721
  stdio: "ignore",
17684
17722
  timeout: 1000
17685
17723
  });
@@ -17899,19 +17937,19 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
17899
17937
  skipped: [],
17900
17938
  errors: []
17901
17939
  };
17902
- if (!existsSync15(sourceDir)) {
17940
+ if (!existsSync13(sourceDir)) {
17903
17941
  return result;
17904
17942
  }
17905
- const targetParent = join15(targetDir, "..");
17906
- if (!existsSync15(targetParent)) {
17907
- mkdirSync10(targetParent, { recursive: true });
17943
+ const targetParent = join13(targetDir, "..");
17944
+ if (!existsSync13(targetParent)) {
17945
+ mkdirSync8(targetParent, { recursive: true });
17908
17946
  }
17909
- if (!existsSync15(targetDir)) {
17910
- mkdirSync10(targetDir, { recursive: true });
17947
+ if (!existsSync13(targetDir)) {
17948
+ mkdirSync8(targetDir, { recursive: true });
17911
17949
  }
17912
17950
  let entries;
17913
17951
  try {
17914
- entries = readdirSync7(sourceDir);
17952
+ entries = readdirSync6(sourceDir);
17915
17953
  } catch (e) {
17916
17954
  result.errors.push({
17917
17955
  path: sourceDir,
@@ -17920,8 +17958,8 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
17920
17958
  return result;
17921
17959
  }
17922
17960
  for (const entry of entries) {
17923
- const srcPath = join15(sourceDir, entry);
17924
- const destPath = join15(targetDir, entry);
17961
+ const srcPath = join13(sourceDir, entry);
17962
+ const destPath = join13(targetDir, entry);
17925
17963
  try {
17926
17964
  const src = lstatSync(srcPath);
17927
17965
  if (src.isSymbolicLink() || !src.isDirectory()) {
@@ -17962,7 +18000,7 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
17962
18000
  }
17963
18001
  return result;
17964
18002
  }
17965
- var home = homedir10();
18003
+ var home = homedir8();
17966
18004
  var SIGNET_BLOCK_START = "<!-- SIGNET:START -->";
17967
18005
  var SIGNET_BLOCK_END = "<!-- SIGNET:END -->";
17968
18006
  function stripSignetBlock(content) {
@@ -20063,10 +20101,17 @@ function parseLenientJsonObject(raw, options) {
20063
20101
  import { createRequire as createRequire4 } from "node:module";
20064
20102
  import { dirname as dirname3, join as join2 } from "node:path";
20065
20103
  import { fileURLToPath as fileURLToPath2 } from "node:url";
20104
+ import {
20105
+ execFile as nodeExecFile2,
20106
+ execFileSync as nodeExecFileSync2,
20107
+ execSync as nodeExecSync2,
20108
+ spawn as nodeSpawn2,
20109
+ spawnSync as nodeSpawnSync2
20110
+ } from "node:child_process";
20111
+ import { promisify as promisify2 } from "node:util";
20066
20112
  import { createHash as createHash3 } from "node:crypto";
20067
20113
  import { homedir as homedir2 } from "node:os";
20068
20114
  import { join as join22, resolve } from "node:path";
20069
- import { execFileSync as execFileSync32 } from "node:child_process";
20070
20115
  import { createHash as createHash22 } from "node:crypto";
20071
20116
  import { createRequire as createRequire22 } from "node:module";
20072
20117
  import { createRequire as createRequire32 } from "node:module";
@@ -20074,7 +20119,7 @@ import { homedir as homedir52 } from "node:os";
20074
20119
  import { dirname as dirname42, join as join82, resolve as resolve32 } from "node:path";
20075
20120
  import { homedir as homedir62, platform as platform22 } from "node:os";
20076
20121
  import { basename as basename2, dirname as dirname52, resolve as resolve52 } from "node:path";
20077
- import { homedir as homedir102 } from "node:os";
20122
+ import { homedir as homedir82 } from "node:os";
20078
20123
  var __create3 = Object.create;
20079
20124
  var __getProtoOf3 = Object.getPrototypeOf;
20080
20125
  var __defProp3 = Object.defineProperty;
@@ -31217,6 +31262,37 @@ var PIPELINE_PROVIDER_CHOICES2 = [
31217
31262
  var SYNTHESIS_PROVIDER_CHOICES2 = PIPELINE_PROVIDER_CHOICES2.filter((provider) => provider !== "command");
31218
31263
  var PIPELINE_PROVIDER_SET2 = new Set(PIPELINE_PROVIDER_CHOICES2);
31219
31264
  var SYNTHESIS_PROVIDER_SET2 = new Set(SYNTHESIS_PROVIDER_CHOICES2);
31265
+ function withWindowsHide2(options) {
31266
+ return {
31267
+ ...options ?? {},
31268
+ windowsHide: options?.windowsHide ?? true
31269
+ };
31270
+ }
31271
+ function isOptions2(value) {
31272
+ return typeof value === "object" && value !== null && !Array.isArray(value);
31273
+ }
31274
+ function withWindowsHideArgument2(args, firstOptionIndex) {
31275
+ const normalized = [...args];
31276
+ const optionIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && isOptions2(value));
31277
+ if (optionIndex >= 0) {
31278
+ normalized[optionIndex] = withWindowsHide2(normalized[optionIndex]);
31279
+ return normalized;
31280
+ }
31281
+ const placeholderIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && (value === undefined || value === null));
31282
+ if (placeholderIndex >= 0) {
31283
+ normalized[placeholderIndex] = withWindowsHide2(undefined);
31284
+ return normalized;
31285
+ }
31286
+ const callbackIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && typeof value === "function");
31287
+ normalized.splice(callbackIndex >= 0 ? callbackIndex : normalized.length, 0, { windowsHide: true });
31288
+ return normalized;
31289
+ }
31290
+ var nodeExecFileAsync2 = promisify2(nodeExecFile2);
31291
+ var execFileHiddenImpl2 = (...args) => Reflect.apply(nodeExecFile2, undefined, withWindowsHideArgument2(args, 1));
31292
+ Object.defineProperty(execFileHiddenImpl2, promisify2.custom, {
31293
+ value: (...args) => Reflect.apply(nodeExecFileAsync2, undefined, withWindowsHideArgument2(args, 1))
31294
+ });
31295
+ var execFileSyncHidden2 = (...args) => Reflect.apply(nodeExecFileSync2, undefined, withWindowsHideArgument2(args, 1));
31220
31296
  var MEMORY_CONTENT_SAFETY_POLICY_VERSION2 = "memory-content-safety-v1";
31221
31297
  var MEMORY_CONTENT_SAFETY_REASONS2 = [
31222
31298
  "prompt_injection",
@@ -37739,7 +37815,7 @@ function linuxKeyringAvailable2() {
37739
37815
  };
37740
37816
  }
37741
37817
  try {
37742
- execFileSync32("busctl", ["--user", "status", "org.freedesktop.secrets"], {
37818
+ execFileSyncHidden2("busctl", ["--user", "status", "org.freedesktop.secrets"], {
37743
37819
  stdio: "ignore",
37744
37820
  timeout: 1000
37745
37821
  });
@@ -37949,7 +38025,7 @@ var IDENTITY_FILES2 = {
37949
38025
  };
37950
38026
  var REQUIRED_IDENTITY_KEYS2 = Object.entries(IDENTITY_FILES2).filter(([, spec]) => !spec.optional).map(([key]) => key);
37951
38027
  var OPTIONAL_IDENTITY_KEYS2 = Object.entries(IDENTITY_FILES2).filter(([, spec]) => spec.optional).map(([key]) => key);
37952
- var home2 = homedir102();
38028
+ var home2 = homedir82();
37953
38029
 
37954
38030
  // src/index.ts
37955
38031
  var OPENCLAW_PARSE_OPTIONS = { label: "OpenClaw config" };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-openclaw",
3
- "version": "0.219.5",
3
+ "version": "0.220.0",
4
4
  "description": "Signet connector for OpenClaw - configures workspace and memory hooks",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,8 +25,8 @@
25
25
  "test": "bun test"
26
26
  },
27
27
  "dependencies": {
28
- "@signetai/connector-base": "0.219.5",
29
- "@signetai/core": "0.219.5"
28
+ "@signetai/connector-base": "0.220.0",
29
+ "@signetai/core": "0.220.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.0.0",