@signetai/connector-hermes-agent 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 +626 -538
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,20 +1,18 @@
1
- // src/index.ts
2
- import { spawnSync } from "node:child_process";
3
- import { createHash as createHash5 } from "node:crypto";
4
- import { existsSync as existsSync2, mkdirSync, readFileSync as readFileSync2, realpathSync as realpathSync3, rmSync, writeFileSync as writeFileSync2 } from "node:fs";
5
- import { homedir } from "node:os";
6
- import { dirname as dirname6, isAbsolute as isAbsolute2, join as join4, relative as relative2 } from "node:path";
7
- import { fileURLToPath as fileURLToPath3 } from "node:url";
8
-
9
- // ../../../libs/connector-base/dist/index.js
10
- import { randomBytes } from "node:crypto";
11
- import { existsSync, readFileSync, realpathSync, renameSync, statSync, unlinkSync, writeFileSync } from "node:fs";
12
- import { dirname as dirname2, isAbsolute, join as join3, relative, sep } from "node:path";
1
+ // ../../../platform/core/dist/index.js
13
2
  import { createRequire } from "node:module";
14
3
  import { dirname, join } from "node:path";
15
4
  import { fileURLToPath } from "node:url";
5
+ import {
6
+ execFile as nodeExecFile,
7
+ execFileSync as nodeExecFileSync,
8
+ execSync as nodeExecSync,
9
+ spawn as nodeSpawn,
10
+ spawnSync as nodeSpawnSync
11
+ } from "node:child_process";
12
+ import { promisify } from "node:util";
16
13
  import { createHash } from "node:crypto";
17
- import { execFileSync as execFileSync3 } from "node:child_process";
14
+ import { homedir as homedir2 } from "node:os";
15
+ import { join as join2, resolve } from "node:path";
18
16
  import { createHash as createHash2 } from "node:crypto";
19
17
  import { createRequire as createRequire2 } from "node:module";
20
18
  import { createRequire as createRequire3 } from "node:module";
@@ -22,47 +20,48 @@ import { homedir as homedir5 } from "node:os";
22
20
  import { dirname as dirname4, join as join8, resolve as resolve3 } from "node:path";
23
21
  import { homedir as homedir6, platform as platform2 } from "node:os";
24
22
  import { basename, dirname as dirname5, resolve as resolve5 } from "node:path";
23
+ import { existsSync as existsSync13, readFileSync as readFileSync11, readdirSync as readdirSync5, realpathSync, statSync as statSync7 } from "node:fs";
24
+ import { homedir as homedir9 } from "node:os";
25
+ import { dirname as dirname8, join as join13 } from "node:path";
25
26
  import { homedir as homedir10 } from "node:os";
26
- import { existsSync as existsSync15, lstatSync, mkdirSync as mkdirSync10, readdirSync as readdirSync7, symlinkSync, unlinkSync as unlinkSync2 } from "node:fs";
27
- import { join as join15 } from "node:path";
28
- var __create2 = Object.create;
29
- var __getProtoOf2 = Object.getPrototypeOf;
30
- var __defProp2 = Object.defineProperty;
31
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
32
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
33
- function __accessProp2(key) {
27
+ var __create = Object.create;
28
+ var __getProtoOf = Object.getPrototypeOf;
29
+ var __defProp = Object.defineProperty;
30
+ var __getOwnPropNames = Object.getOwnPropertyNames;
31
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
32
+ function __accessProp(key) {
34
33
  return this[key];
35
34
  }
36
- var __toESMCache_node2;
37
- var __toESMCache_esm2;
38
- var __toESM2 = (mod, isNodeMode, target) => {
35
+ var __toESMCache_node;
36
+ var __toESMCache_esm;
37
+ var __toESM = (mod, isNodeMode, target) => {
39
38
  var canCache = mod != null && typeof mod === "object";
40
39
  if (canCache) {
41
- var cache = isNodeMode ? __toESMCache_node2 ??= new WeakMap : __toESMCache_esm2 ??= new WeakMap;
40
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
42
41
  var cached = cache.get(mod);
43
42
  if (cached)
44
43
  return cached;
45
44
  }
46
- target = mod != null ? __create2(__getProtoOf2(mod)) : {};
47
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target;
48
- for (let key of __getOwnPropNames2(mod))
49
- if (!__hasOwnProp2.call(to, key))
50
- __defProp2(to, key, {
51
- get: __accessProp2.bind(mod, key),
45
+ target = mod != null ? __create(__getProtoOf(mod)) : {};
46
+ const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
47
+ for (let key of __getOwnPropNames(mod))
48
+ if (!__hasOwnProp.call(to, key))
49
+ __defProp(to, key, {
50
+ get: __accessProp.bind(mod, key),
52
51
  enumerable: true
53
52
  });
54
53
  if (canCache)
55
54
  cache.set(mod, to);
56
55
  return to;
57
56
  };
58
- var __commonJS2 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
57
+ var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
59
58
  var __returnValue = (v) => v;
60
59
  function __exportSetter(name, newValue) {
61
60
  this[name] = __returnValue.bind(null, newValue);
62
61
  }
63
62
  var __export = (target, all) => {
64
63
  for (var name in all)
65
- __defProp2(target, name, {
64
+ __defProp(target, name, {
66
65
  get: all[name],
67
66
  enumerable: true,
68
67
  configurable: true,
@@ -71,7 +70,7 @@ var __export = (target, all) => {
71
70
  };
72
71
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
73
72
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
74
- var require_identity = __commonJS2((exports) => {
73
+ var require_identity = __commonJS((exports) => {
75
74
  var ALIAS = Symbol.for("yaml.alias");
76
75
  var DOC = Symbol.for("yaml.document");
77
76
  var MAP = Symbol.for("yaml.map");
@@ -123,7 +122,7 @@ var require_identity = __commonJS2((exports) => {
123
122
  exports.isScalar = isScalar;
124
123
  exports.isSeq = isSeq;
125
124
  });
126
- var require_visit = __commonJS2((exports) => {
125
+ var require_visit = __commonJS((exports) => {
127
126
  var identity = require_identity();
128
127
  var BREAK = Symbol("break visit");
129
128
  var SKIP = Symbol("skip children");
@@ -276,7 +275,7 @@ var require_visit = __commonJS2((exports) => {
276
275
  exports.visit = visit;
277
276
  exports.visitAsync = visitAsync;
278
277
  });
279
- var require_directives = __commonJS2((exports) => {
278
+ var require_directives = __commonJS((exports) => {
280
279
  var identity = require_identity();
281
280
  var visit = require_visit();
282
281
  var escapeChars = {
@@ -426,7 +425,7 @@ var require_directives = __commonJS2((exports) => {
426
425
  Directives.defaultTags = { "!!": "tag:yaml.org,2002:" };
427
426
  exports.Directives = Directives;
428
427
  });
429
- var require_anchors = __commonJS2((exports) => {
428
+ var require_anchors = __commonJS((exports) => {
430
429
  var identity = require_identity();
431
430
  var visit = require_visit();
432
431
  function anchorIsValid(anchor) {
@@ -486,7 +485,7 @@ var require_anchors = __commonJS2((exports) => {
486
485
  exports.createNodeAnchors = createNodeAnchors;
487
486
  exports.findNewAnchor = findNewAnchor;
488
487
  });
489
- var require_applyReviver = __commonJS2((exports) => {
488
+ var require_applyReviver = __commonJS((exports) => {
490
489
  function applyReviver(reviver, obj, key, val) {
491
490
  if (val && typeof val === "object") {
492
491
  if (Array.isArray(val)) {
@@ -531,7 +530,7 @@ var require_applyReviver = __commonJS2((exports) => {
531
530
  }
532
531
  exports.applyReviver = applyReviver;
533
532
  });
534
- var require_toJS = __commonJS2((exports) => {
533
+ var require_toJS = __commonJS((exports) => {
535
534
  var identity = require_identity();
536
535
  function toJS(value, arg, ctx) {
537
536
  if (Array.isArray(value))
@@ -556,7 +555,7 @@ var require_toJS = __commonJS2((exports) => {
556
555
  }
557
556
  exports.toJS = toJS;
558
557
  });
559
- var require_Node = __commonJS2((exports) => {
558
+ var require_Node = __commonJS((exports) => {
560
559
  var applyReviver = require_applyReviver();
561
560
  var identity = require_identity();
562
561
  var toJS = require_toJS();
@@ -591,7 +590,7 @@ var require_Node = __commonJS2((exports) => {
591
590
  }
592
591
  exports.NodeBase = NodeBase;
593
592
  });
594
- var require_Alias = __commonJS2((exports) => {
593
+ var require_Alias = __commonJS((exports) => {
595
594
  var anchors = require_anchors();
596
595
  var visit = require_visit();
597
596
  var identity = require_identity();
@@ -699,7 +698,7 @@ var require_Alias = __commonJS2((exports) => {
699
698
  }
700
699
  exports.Alias = Alias;
701
700
  });
702
- var require_Scalar = __commonJS2((exports) => {
701
+ var require_Scalar = __commonJS((exports) => {
703
702
  var identity = require_identity();
704
703
  var Node = require_Node();
705
704
  var toJS = require_toJS();
@@ -725,7 +724,7 @@ var require_Scalar = __commonJS2((exports) => {
725
724
  exports.Scalar = Scalar;
726
725
  exports.isScalarValue = isScalarValue;
727
726
  });
728
- var require_createNode = __commonJS2((exports) => {
727
+ var require_createNode = __commonJS((exports) => {
729
728
  var Alias = require_Alias();
730
729
  var identity = require_identity();
731
730
  var Scalar = require_Scalar();
@@ -795,7 +794,7 @@ var require_createNode = __commonJS2((exports) => {
795
794
  }
796
795
  exports.createNode = createNode;
797
796
  });
798
- var require_Collection = __commonJS2((exports) => {
797
+ var require_Collection = __commonJS((exports) => {
799
798
  var createNode = require_createNode();
800
799
  var identity = require_identity();
801
800
  var Node = require_Node();
@@ -908,7 +907,7 @@ var require_Collection = __commonJS2((exports) => {
908
907
  exports.collectionFromPath = collectionFromPath;
909
908
  exports.isEmptyPath = isEmptyPath;
910
909
  });
911
- var require_stringifyComment = __commonJS2((exports) => {
910
+ var require_stringifyComment = __commonJS((exports) => {
912
911
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
913
912
  function indentComment(comment, indent) {
914
913
  if (/^\n+$/.test(comment))
@@ -923,7 +922,7 @@ var require_stringifyComment = __commonJS2((exports) => {
923
922
  exports.lineComment = lineComment;
924
923
  exports.stringifyComment = stringifyComment;
925
924
  });
926
- var require_foldFlowLines = __commonJS2((exports) => {
925
+ var require_foldFlowLines = __commonJS((exports) => {
927
926
  var FOLD_FLOW = "flow";
928
927
  var FOLD_BLOCK = "block";
929
928
  var FOLD_QUOTED = "quoted";
@@ -1058,7 +1057,7 @@ ${indent}${text.slice(fold + 1, end2)}`;
1058
1057
  exports.FOLD_QUOTED = FOLD_QUOTED;
1059
1058
  exports.foldFlowLines = foldFlowLines;
1060
1059
  });
1061
- var require_stringifyString = __commonJS2((exports) => {
1060
+ var require_stringifyString = __commonJS((exports) => {
1062
1061
  var Scalar = require_Scalar();
1063
1062
  var foldFlowLines = require_foldFlowLines();
1064
1063
  var getFoldOptions = (ctx, isBlock) => ({
@@ -1354,7 +1353,7 @@ ${indent}`);
1354
1353
  }
1355
1354
  exports.stringifyString = stringifyString;
1356
1355
  });
1357
- var require_stringify = __commonJS2((exports) => {
1356
+ var require_stringify = __commonJS((exports) => {
1358
1357
  var anchors = require_anchors();
1359
1358
  var identity = require_identity();
1360
1359
  var stringifyComment = require_stringifyComment();
@@ -1473,7 +1472,7 @@ ${ctx.indent}${str}`;
1473
1472
  exports.createStringifyContext = createStringifyContext;
1474
1473
  exports.stringify = stringify;
1475
1474
  });
1476
- var require_stringifyPair = __commonJS2((exports) => {
1475
+ var require_stringifyPair = __commonJS((exports) => {
1477
1476
  var identity = require_identity();
1478
1477
  var Scalar = require_Scalar();
1479
1478
  var stringify = require_stringify();
@@ -1607,7 +1606,7 @@ ${ctx.indent}`;
1607
1606
  }
1608
1607
  exports.stringifyPair = stringifyPair;
1609
1608
  });
1610
- var require_log = __commonJS2((exports) => {
1609
+ var require_log = __commonJS((exports) => {
1611
1610
  var node_process = __require("process");
1612
1611
  function debug(logLevel, ...messages) {
1613
1612
  if (logLevel === "debug")
@@ -1624,7 +1623,7 @@ var require_log = __commonJS2((exports) => {
1624
1623
  exports.debug = debug;
1625
1624
  exports.warn = warn;
1626
1625
  });
1627
- var require_merge = __commonJS2((exports) => {
1626
+ var require_merge = __commonJS((exports) => {
1628
1627
  var identity = require_identity();
1629
1628
  var Scalar = require_Scalar();
1630
1629
  var MERGE_KEY = "<<";
@@ -1679,7 +1678,7 @@ var require_merge = __commonJS2((exports) => {
1679
1678
  exports.isMergeKey = isMergeKey;
1680
1679
  exports.merge = merge;
1681
1680
  });
1682
- var require_addPairToJSMap = __commonJS2((exports) => {
1681
+ var require_addPairToJSMap = __commonJS((exports) => {
1683
1682
  var log = require_log();
1684
1683
  var merge = require_merge();
1685
1684
  var stringify = require_stringify();
@@ -1738,7 +1737,7 @@ var require_addPairToJSMap = __commonJS2((exports) => {
1738
1737
  }
1739
1738
  exports.addPairToJSMap = addPairToJSMap;
1740
1739
  });
1741
- var require_Pair = __commonJS2((exports) => {
1740
+ var require_Pair = __commonJS((exports) => {
1742
1741
  var createNode = require_createNode();
1743
1742
  var stringifyPair = require_stringifyPair();
1744
1743
  var addPairToJSMap = require_addPairToJSMap();
@@ -1774,7 +1773,7 @@ var require_Pair = __commonJS2((exports) => {
1774
1773
  exports.Pair = Pair;
1775
1774
  exports.createPair = createPair;
1776
1775
  });
1777
- var require_stringifyCollection = __commonJS2((exports) => {
1776
+ var require_stringifyCollection = __commonJS((exports) => {
1778
1777
  var identity = require_identity();
1779
1778
  var stringify = require_stringify();
1780
1779
  var stringifyComment = require_stringifyComment();
@@ -1924,7 +1923,7 @@ ${indent}${end}`;
1924
1923
  }
1925
1924
  exports.stringifyCollection = stringifyCollection;
1926
1925
  });
1927
- var require_YAMLMap = __commonJS2((exports) => {
1926
+ var require_YAMLMap = __commonJS((exports) => {
1928
1927
  var stringifyCollection = require_stringifyCollection();
1929
1928
  var addPairToJSMap = require_addPairToJSMap();
1930
1929
  var Collection = require_Collection();
@@ -2049,7 +2048,7 @@ var require_YAMLMap = __commonJS2((exports) => {
2049
2048
  exports.YAMLMap = YAMLMap;
2050
2049
  exports.findPair = findPair;
2051
2050
  });
2052
- var require_map = __commonJS2((exports) => {
2051
+ var require_map = __commonJS((exports) => {
2053
2052
  var identity = require_identity();
2054
2053
  var YAMLMap = require_YAMLMap();
2055
2054
  var map = {
@@ -2066,7 +2065,7 @@ var require_map = __commonJS2((exports) => {
2066
2065
  };
2067
2066
  exports.map = map;
2068
2067
  });
2069
- var require_YAMLSeq = __commonJS2((exports) => {
2068
+ var require_YAMLSeq = __commonJS((exports) => {
2070
2069
  var createNode = require_createNode();
2071
2070
  var stringifyCollection = require_stringifyCollection();
2072
2071
  var Collection = require_Collection();
@@ -2157,7 +2156,7 @@ var require_YAMLSeq = __commonJS2((exports) => {
2157
2156
  }
2158
2157
  exports.YAMLSeq = YAMLSeq;
2159
2158
  });
2160
- var require_seq = __commonJS2((exports) => {
2159
+ var require_seq = __commonJS((exports) => {
2161
2160
  var identity = require_identity();
2162
2161
  var YAMLSeq = require_YAMLSeq();
2163
2162
  var seq = {
@@ -2174,7 +2173,7 @@ var require_seq = __commonJS2((exports) => {
2174
2173
  };
2175
2174
  exports.seq = seq;
2176
2175
  });
2177
- var require_string = __commonJS2((exports) => {
2176
+ var require_string = __commonJS((exports) => {
2178
2177
  var stringifyString = require_stringifyString();
2179
2178
  var string = {
2180
2179
  identify: (value) => typeof value === "string",
@@ -2188,7 +2187,7 @@ var require_string = __commonJS2((exports) => {
2188
2187
  };
2189
2188
  exports.string = string;
2190
2189
  });
2191
- var require_null = __commonJS2((exports) => {
2190
+ var require_null = __commonJS((exports) => {
2192
2191
  var Scalar = require_Scalar();
2193
2192
  var nullTag = {
2194
2193
  identify: (value) => value == null,
@@ -2201,7 +2200,7 @@ var require_null = __commonJS2((exports) => {
2201
2200
  };
2202
2201
  exports.nullTag = nullTag;
2203
2202
  });
2204
- var require_bool = __commonJS2((exports) => {
2203
+ var require_bool = __commonJS((exports) => {
2205
2204
  var Scalar = require_Scalar();
2206
2205
  var boolTag = {
2207
2206
  identify: (value) => typeof value === "boolean",
@@ -2220,7 +2219,7 @@ var require_bool = __commonJS2((exports) => {
2220
2219
  };
2221
2220
  exports.boolTag = boolTag;
2222
2221
  });
2223
- var require_stringifyNumber = __commonJS2((exports) => {
2222
+ var require_stringifyNumber = __commonJS((exports) => {
2224
2223
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
2225
2224
  if (typeof value === "bigint")
2226
2225
  return String(value);
@@ -2242,7 +2241,7 @@ var require_stringifyNumber = __commonJS2((exports) => {
2242
2241
  }
2243
2242
  exports.stringifyNumber = stringifyNumber;
2244
2243
  });
2245
- var require_float = __commonJS2((exports) => {
2244
+ var require_float = __commonJS((exports) => {
2246
2245
  var Scalar = require_Scalar();
2247
2246
  var stringifyNumber = require_stringifyNumber();
2248
2247
  var floatNaN = {
@@ -2283,7 +2282,7 @@ var require_float = __commonJS2((exports) => {
2283
2282
  exports.floatExp = floatExp;
2284
2283
  exports.floatNaN = floatNaN;
2285
2284
  });
2286
- var require_int = __commonJS2((exports) => {
2285
+ var require_int = __commonJS((exports) => {
2287
2286
  var stringifyNumber = require_stringifyNumber();
2288
2287
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
2289
2288
  var intResolve = (str, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix);
@@ -2323,7 +2322,7 @@ var require_int = __commonJS2((exports) => {
2323
2322
  exports.intHex = intHex;
2324
2323
  exports.intOct = intOct;
2325
2324
  });
2326
- var require_schema = __commonJS2((exports) => {
2325
+ var require_schema = __commonJS((exports) => {
2327
2326
  var map = require_map();
2328
2327
  var _null = require_null();
2329
2328
  var seq = require_seq();
@@ -2346,7 +2345,7 @@ var require_schema = __commonJS2((exports) => {
2346
2345
  ];
2347
2346
  exports.schema = schema;
2348
2347
  });
2349
- var require_schema2 = __commonJS2((exports) => {
2348
+ var require_schema2 = __commonJS((exports) => {
2350
2349
  var Scalar = require_Scalar();
2351
2350
  var map = require_map();
2352
2351
  var seq = require_seq();
@@ -2408,7 +2407,7 @@ var require_schema2 = __commonJS2((exports) => {
2408
2407
  var schema = [map.map, seq.seq].concat(jsonScalars, jsonError);
2409
2408
  exports.schema = schema;
2410
2409
  });
2411
- var require_binary = __commonJS2((exports) => {
2410
+ var require_binary = __commonJS((exports) => {
2412
2411
  var node_buffer = __require("buffer");
2413
2412
  var Scalar = require_Scalar();
2414
2413
  var stringifyString = require_stringifyString();
@@ -2461,7 +2460,7 @@ var require_binary = __commonJS2((exports) => {
2461
2460
  };
2462
2461
  exports.binary = binary;
2463
2462
  });
2464
- var require_pairs = __commonJS2((exports) => {
2463
+ var require_pairs = __commonJS((exports) => {
2465
2464
  var identity = require_identity();
2466
2465
  var Pair = require_Pair();
2467
2466
  var Scalar = require_Scalar();
@@ -2534,7 +2533,7 @@ ${cn.comment}` : item.comment;
2534
2533
  exports.pairs = pairs;
2535
2534
  exports.resolvePairs = resolvePairs;
2536
2535
  });
2537
- var require_omap = __commonJS2((exports) => {
2536
+ var require_omap = __commonJS((exports) => {
2538
2537
  var identity = require_identity();
2539
2538
  var toJS = require_toJS();
2540
2539
  var YAMLMap = require_YAMLMap();
@@ -2604,7 +2603,7 @@ var require_omap = __commonJS2((exports) => {
2604
2603
  exports.YAMLOMap = YAMLOMap;
2605
2604
  exports.omap = omap;
2606
2605
  });
2607
- var require_bool2 = __commonJS2((exports) => {
2606
+ var require_bool2 = __commonJS((exports) => {
2608
2607
  var Scalar = require_Scalar();
2609
2608
  function boolStringify({ value, source }, ctx) {
2610
2609
  const boolObj = value ? trueTag : falseTag;
@@ -2631,7 +2630,7 @@ var require_bool2 = __commonJS2((exports) => {
2631
2630
  exports.falseTag = falseTag;
2632
2631
  exports.trueTag = trueTag;
2633
2632
  });
2634
- var require_float2 = __commonJS2((exports) => {
2633
+ var require_float2 = __commonJS((exports) => {
2635
2634
  var Scalar = require_Scalar();
2636
2635
  var stringifyNumber = require_stringifyNumber();
2637
2636
  var floatNaN = {
@@ -2675,7 +2674,7 @@ var require_float2 = __commonJS2((exports) => {
2675
2674
  exports.floatExp = floatExp;
2676
2675
  exports.floatNaN = floatNaN;
2677
2676
  });
2678
- var require_int2 = __commonJS2((exports) => {
2677
+ var require_int2 = __commonJS((exports) => {
2679
2678
  var stringifyNumber = require_stringifyNumber();
2680
2679
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
2681
2680
  function intResolve(str, offset, radix, { intAsBigInt }) {
@@ -2749,7 +2748,7 @@ var require_int2 = __commonJS2((exports) => {
2749
2748
  exports.intHex = intHex;
2750
2749
  exports.intOct = intOct;
2751
2750
  });
2752
- var require_set = __commonJS2((exports) => {
2751
+ var require_set = __commonJS((exports) => {
2753
2752
  var identity = require_identity();
2754
2753
  var Pair = require_Pair();
2755
2754
  var YAMLMap = require_YAMLMap();
@@ -2830,7 +2829,7 @@ var require_set = __commonJS2((exports) => {
2830
2829
  exports.YAMLSet = YAMLSet;
2831
2830
  exports.set = set;
2832
2831
  });
2833
- var require_timestamp = __commonJS2((exports) => {
2832
+ var require_timestamp = __commonJS((exports) => {
2834
2833
  var stringifyNumber = require_stringifyNumber();
2835
2834
  function parseSexagesimal(str, asBigInt) {
2836
2835
  const sign = str[0];
@@ -2910,7 +2909,7 @@ var require_timestamp = __commonJS2((exports) => {
2910
2909
  exports.intTime = intTime;
2911
2910
  exports.timestamp = timestamp;
2912
2911
  });
2913
- var require_schema3 = __commonJS2((exports) => {
2912
+ var require_schema3 = __commonJS((exports) => {
2914
2913
  var map = require_map();
2915
2914
  var _null = require_null();
2916
2915
  var seq = require_seq();
@@ -2949,7 +2948,7 @@ var require_schema3 = __commonJS2((exports) => {
2949
2948
  ];
2950
2949
  exports.schema = schema;
2951
2950
  });
2952
- var require_tags = __commonJS2((exports) => {
2951
+ var require_tags = __commonJS((exports) => {
2953
2952
  var map = require_map();
2954
2953
  var _null = require_null();
2955
2954
  var seq = require_seq();
@@ -3038,7 +3037,7 @@ var require_tags = __commonJS2((exports) => {
3038
3037
  exports.coreKnownTags = coreKnownTags;
3039
3038
  exports.getTags = getTags;
3040
3039
  });
3041
- var require_Schema = __commonJS2((exports) => {
3040
+ var require_Schema = __commonJS((exports) => {
3042
3041
  var identity = require_identity();
3043
3042
  var map = require_map();
3044
3043
  var seq = require_seq();
@@ -3066,7 +3065,7 @@ var require_Schema = __commonJS2((exports) => {
3066
3065
  }
3067
3066
  exports.Schema = Schema;
3068
3067
  });
3069
- var require_stringifyDocument = __commonJS2((exports) => {
3068
+ var require_stringifyDocument = __commonJS((exports) => {
3070
3069
  var identity = require_identity();
3071
3070
  var stringify = require_stringify();
3072
3071
  var stringifyComment = require_stringifyComment();
@@ -3144,7 +3143,7 @@ var require_stringifyDocument = __commonJS2((exports) => {
3144
3143
  }
3145
3144
  exports.stringifyDocument = stringifyDocument;
3146
3145
  });
3147
- var require_Document = __commonJS2((exports) => {
3146
+ var require_Document = __commonJS((exports) => {
3148
3147
  var Alias = require_Alias();
3149
3148
  var Collection = require_Collection();
3150
3149
  var identity = require_identity();
@@ -3377,7 +3376,7 @@ var require_Document = __commonJS2((exports) => {
3377
3376
  }
3378
3377
  exports.Document = Document;
3379
3378
  });
3380
- var require_errors = __commonJS2((exports) => {
3379
+ var require_errors = __commonJS((exports) => {
3381
3380
 
3382
3381
  class YAMLError extends Error {
3383
3382
  constructor(name, pos, code, message) {
@@ -3441,7 +3440,7 @@ ${pointer}
3441
3440
  exports.YAMLWarning = YAMLWarning;
3442
3441
  exports.prettifyError = prettifyError;
3443
3442
  });
3444
- var require_resolve_props = __commonJS2((exports) => {
3443
+ var require_resolve_props = __commonJS((exports) => {
3445
3444
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
3446
3445
  let spaceBefore = false;
3447
3446
  let atNewline = startOnNewline;
@@ -3569,7 +3568,7 @@ var require_resolve_props = __commonJS2((exports) => {
3569
3568
  }
3570
3569
  exports.resolveProps = resolveProps;
3571
3570
  });
3572
- var require_util_contains_newline = __commonJS2((exports) => {
3571
+ var require_util_contains_newline = __commonJS((exports) => {
3573
3572
  function containsNewline(key) {
3574
3573
  if (!key)
3575
3574
  return null;
@@ -3607,7 +3606,7 @@ var require_util_contains_newline = __commonJS2((exports) => {
3607
3606
  }
3608
3607
  exports.containsNewline = containsNewline;
3609
3608
  });
3610
- var require_util_flow_indent_check = __commonJS2((exports) => {
3609
+ var require_util_flow_indent_check = __commonJS((exports) => {
3611
3610
  var utilContainsNewline = require_util_contains_newline();
3612
3611
  function flowIndentCheck(indent, fc, onError) {
3613
3612
  if (fc?.type === "flow-collection") {
@@ -3620,7 +3619,7 @@ var require_util_flow_indent_check = __commonJS2((exports) => {
3620
3619
  }
3621
3620
  exports.flowIndentCheck = flowIndentCheck;
3622
3621
  });
3623
- var require_util_map_includes = __commonJS2((exports) => {
3622
+ var require_util_map_includes = __commonJS((exports) => {
3624
3623
  var identity = require_identity();
3625
3624
  function mapIncludes(ctx, items, search) {
3626
3625
  const { uniqueKeys } = ctx.options;
@@ -3631,7 +3630,7 @@ var require_util_map_includes = __commonJS2((exports) => {
3631
3630
  }
3632
3631
  exports.mapIncludes = mapIncludes;
3633
3632
  });
3634
- var require_resolve_block_map = __commonJS2((exports) => {
3633
+ var require_resolve_block_map = __commonJS((exports) => {
3635
3634
  var Pair = require_Pair();
3636
3635
  var YAMLMap = require_YAMLMap();
3637
3636
  var resolveProps = require_resolve_props();
@@ -3647,10 +3646,10 @@ var require_resolve_block_map = __commonJS2((exports) => {
3647
3646
  let offset = bm.offset;
3648
3647
  let commentEnd = null;
3649
3648
  for (const collItem of bm.items) {
3650
- const { start, key, sep: sep2, value } = collItem;
3649
+ const { start, key, sep, value } = collItem;
3651
3650
  const keyProps = resolveProps.resolveProps(start, {
3652
3651
  indicator: "explicit-key-ind",
3653
- next: key ?? sep2?.[0],
3652
+ next: key ?? sep?.[0],
3654
3653
  offset,
3655
3654
  onError,
3656
3655
  parentIndent: bm.indent,
@@ -3664,7 +3663,7 @@ var require_resolve_block_map = __commonJS2((exports) => {
3664
3663
  else if ("indent" in key && key.indent !== bm.indent)
3665
3664
  onError(offset, "BAD_INDENT", startColMsg);
3666
3665
  }
3667
- if (!keyProps.anchor && !keyProps.tag && !sep2) {
3666
+ if (!keyProps.anchor && !keyProps.tag && !sep) {
3668
3667
  commentEnd = keyProps.end;
3669
3668
  if (keyProps.comment) {
3670
3669
  if (map.comment)
@@ -3689,7 +3688,7 @@ var require_resolve_block_map = __commonJS2((exports) => {
3689
3688
  ctx.atKey = false;
3690
3689
  if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode))
3691
3690
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
3692
- const valueProps = resolveProps.resolveProps(sep2 ?? [], {
3691
+ const valueProps = resolveProps.resolveProps(sep ?? [], {
3693
3692
  indicator: "map-value-ind",
3694
3693
  next: value,
3695
3694
  offset: keyNode.range[2],
@@ -3705,7 +3704,7 @@ var require_resolve_block_map = __commonJS2((exports) => {
3705
3704
  if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024)
3706
3705
  onError(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
3707
3706
  }
3708
- const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep2, null, valueProps, onError);
3707
+ const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep, null, valueProps, onError);
3709
3708
  if (ctx.schema.compat)
3710
3709
  utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError);
3711
3710
  offset = valueNode.range[2];
@@ -3736,7 +3735,7 @@ var require_resolve_block_map = __commonJS2((exports) => {
3736
3735
  }
3737
3736
  exports.resolveBlockMap = resolveBlockMap;
3738
3737
  });
3739
- var require_resolve_block_seq = __commonJS2((exports) => {
3738
+ var require_resolve_block_seq = __commonJS((exports) => {
3740
3739
  var YAMLSeq = require_YAMLSeq();
3741
3740
  var resolveProps = require_resolve_props();
3742
3741
  var utilFlowIndentCheck = require_util_flow_indent_check();
@@ -3782,12 +3781,12 @@ var require_resolve_block_seq = __commonJS2((exports) => {
3782
3781
  }
3783
3782
  exports.resolveBlockSeq = resolveBlockSeq;
3784
3783
  });
3785
- var require_resolve_end = __commonJS2((exports) => {
3784
+ var require_resolve_end = __commonJS((exports) => {
3786
3785
  function resolveEnd(end, offset, reqSpace, onError) {
3787
3786
  let comment = "";
3788
3787
  if (end) {
3789
3788
  let hasSpace = false;
3790
- let sep2 = "";
3789
+ let sep = "";
3791
3790
  for (const token of end) {
3792
3791
  const { source, type } = token;
3793
3792
  switch (type) {
@@ -3801,13 +3800,13 @@ var require_resolve_end = __commonJS2((exports) => {
3801
3800
  if (!comment)
3802
3801
  comment = cb;
3803
3802
  else
3804
- comment += sep2 + cb;
3805
- sep2 = "";
3803
+ comment += sep + cb;
3804
+ sep = "";
3806
3805
  break;
3807
3806
  }
3808
3807
  case "newline":
3809
3808
  if (comment)
3810
- sep2 += source;
3809
+ sep += source;
3811
3810
  hasSpace = true;
3812
3811
  break;
3813
3812
  default:
@@ -3820,7 +3819,7 @@ var require_resolve_end = __commonJS2((exports) => {
3820
3819
  }
3821
3820
  exports.resolveEnd = resolveEnd;
3822
3821
  });
3823
- var require_resolve_flow_collection = __commonJS2((exports) => {
3822
+ var require_resolve_flow_collection = __commonJS((exports) => {
3824
3823
  var identity = require_identity();
3825
3824
  var Pair = require_Pair();
3826
3825
  var YAMLMap = require_YAMLMap();
@@ -3845,18 +3844,18 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
3845
3844
  let offset = fc.offset + fc.start.source.length;
3846
3845
  for (let i = 0;i < fc.items.length; ++i) {
3847
3846
  const collItem = fc.items[i];
3848
- const { start, key, sep: sep2, value } = collItem;
3847
+ const { start, key, sep, value } = collItem;
3849
3848
  const props = resolveProps.resolveProps(start, {
3850
3849
  flow: fcName,
3851
3850
  indicator: "explicit-key-ind",
3852
- next: key ?? sep2?.[0],
3851
+ next: key ?? sep?.[0],
3853
3852
  offset,
3854
3853
  onError,
3855
3854
  parentIndent: fc.indent,
3856
3855
  startOnNewline: false
3857
3856
  });
3858
3857
  if (!props.found) {
3859
- if (!props.anchor && !props.tag && !sep2 && !value) {
3858
+ if (!props.anchor && !props.tag && !sep && !value) {
3860
3859
  if (i === 0 && props.comma)
3861
3860
  onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
3862
3861
  else if (i < fc.items.length - 1)
@@ -3908,8 +3907,8 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
3908
3907
  }
3909
3908
  }
3910
3909
  }
3911
- if (!isMap && !sep2 && !props.found) {
3912
- const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep2, null, props, onError);
3910
+ if (!isMap && !sep && !props.found) {
3911
+ const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep, null, props, onError);
3913
3912
  coll.items.push(valueNode);
3914
3913
  offset = valueNode.range[2];
3915
3914
  if (isBlock(value))
@@ -3921,7 +3920,7 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
3921
3920
  if (isBlock(key))
3922
3921
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
3923
3922
  ctx.atKey = false;
3924
- const valueProps = resolveProps.resolveProps(sep2 ?? [], {
3923
+ const valueProps = resolveProps.resolveProps(sep ?? [], {
3925
3924
  flow: fcName,
3926
3925
  indicator: "map-value-ind",
3927
3926
  next: value,
@@ -3932,8 +3931,8 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
3932
3931
  });
3933
3932
  if (valueProps.found) {
3934
3933
  if (!isMap && !props.found && ctx.options.strict) {
3935
- if (sep2)
3936
- for (const st of sep2) {
3934
+ if (sep)
3935
+ for (const st of sep) {
3937
3936
  if (st === valueProps.found)
3938
3937
  break;
3939
3938
  if (st.type === "newline") {
@@ -3950,7 +3949,7 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
3950
3949
  else
3951
3950
  onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
3952
3951
  }
3953
- const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep2, null, valueProps, onError) : null;
3952
+ const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep, null, valueProps, onError) : null;
3954
3953
  if (valueNode) {
3955
3954
  if (isBlock(value))
3956
3955
  onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
@@ -4009,7 +4008,7 @@ var require_resolve_flow_collection = __commonJS2((exports) => {
4009
4008
  }
4010
4009
  exports.resolveFlowCollection = resolveFlowCollection;
4011
4010
  });
4012
- var require_compose_collection = __commonJS2((exports) => {
4011
+ var require_compose_collection = __commonJS((exports) => {
4013
4012
  var identity = require_identity();
4014
4013
  var Scalar = require_Scalar();
4015
4014
  var YAMLMap = require_YAMLMap();
@@ -4069,7 +4068,7 @@ var require_compose_collection = __commonJS2((exports) => {
4069
4068
  }
4070
4069
  exports.composeCollection = composeCollection;
4071
4070
  });
4072
- var require_resolve_block_scalar = __commonJS2((exports) => {
4071
+ var require_resolve_block_scalar = __commonJS((exports) => {
4073
4072
  var Scalar = require_Scalar();
4074
4073
  function resolveBlockScalar(ctx, scalar, onError) {
4075
4074
  const start = scalar.offset;
@@ -4123,7 +4122,7 @@ var require_resolve_block_scalar = __commonJS2((exports) => {
4123
4122
  chompStart = i + 1;
4124
4123
  }
4125
4124
  let value = "";
4126
- let sep2 = "";
4125
+ let sep = "";
4127
4126
  let prevMoreIndented = false;
4128
4127
  for (let i = 0;i < contentStart; ++i)
4129
4128
  value += lines[i][0].slice(trimIndent) + `
@@ -4141,33 +4140,33 @@ var require_resolve_block_scalar = __commonJS2((exports) => {
4141
4140
  indent = "";
4142
4141
  }
4143
4142
  if (type === Scalar.Scalar.BLOCK_LITERAL) {
4144
- value += sep2 + indent.slice(trimIndent) + content;
4145
- sep2 = `
4143
+ value += sep + indent.slice(trimIndent) + content;
4144
+ sep = `
4146
4145
  `;
4147
4146
  } else if (indent.length > trimIndent || content[0] === "\t") {
4148
- if (sep2 === " ")
4149
- sep2 = `
4147
+ if (sep === " ")
4148
+ sep = `
4150
4149
  `;
4151
- else if (!prevMoreIndented && sep2 === `
4150
+ else if (!prevMoreIndented && sep === `
4152
4151
  `)
4153
- sep2 = `
4152
+ sep = `
4154
4153
 
4155
4154
  `;
4156
- value += sep2 + indent.slice(trimIndent) + content;
4157
- sep2 = `
4155
+ value += sep + indent.slice(trimIndent) + content;
4156
+ sep = `
4158
4157
  `;
4159
4158
  prevMoreIndented = true;
4160
4159
  } else if (content === "") {
4161
- if (sep2 === `
4160
+ if (sep === `
4162
4161
  `)
4163
4162
  value += `
4164
4163
  `;
4165
4164
  else
4166
- sep2 = `
4165
+ sep = `
4167
4166
  `;
4168
4167
  } else {
4169
- value += sep2 + content;
4170
- sep2 = " ";
4168
+ value += sep + content;
4169
+ sep = " ";
4171
4170
  prevMoreIndented = false;
4172
4171
  }
4173
4172
  }
@@ -4260,7 +4259,7 @@ var require_resolve_block_scalar = __commonJS2((exports) => {
4260
4259
  }
4261
4260
  exports.resolveBlockScalar = resolveBlockScalar;
4262
4261
  });
4263
- var require_resolve_flow_scalar = __commonJS2((exports) => {
4262
+ var require_resolve_flow_scalar = __commonJS((exports) => {
4264
4263
  var Scalar = require_Scalar();
4265
4264
  var resolveEnd = require_resolve_end();
4266
4265
  function resolveFlowScalar(scalar, strict, onError) {
@@ -4346,27 +4345,27 @@ var require_resolve_flow_scalar = __commonJS2((exports) => {
4346
4345
  if (!match)
4347
4346
  return source;
4348
4347
  let res = match[1];
4349
- let sep2 = " ";
4348
+ let sep = " ";
4350
4349
  let pos = first.lastIndex;
4351
4350
  line.lastIndex = pos;
4352
4351
  while (match = line.exec(source)) {
4353
4352
  if (match[1] === "") {
4354
- if (sep2 === `
4353
+ if (sep === `
4355
4354
  `)
4356
- res += sep2;
4355
+ res += sep;
4357
4356
  else
4358
- sep2 = `
4357
+ sep = `
4359
4358
  `;
4360
4359
  } else {
4361
- res += sep2 + match[1];
4362
- sep2 = " ";
4360
+ res += sep + match[1];
4361
+ sep = " ";
4363
4362
  }
4364
4363
  pos = line.lastIndex;
4365
4364
  }
4366
4365
  const last = /[ \t]*(.*)/sy;
4367
4366
  last.lastIndex = pos;
4368
4367
  match = last.exec(source);
4369
- return res + sep2 + (match?.[1] ?? "");
4368
+ return res + sep + (match?.[1] ?? "");
4370
4369
  }
4371
4370
  function doubleQuotedValue(source, onError) {
4372
4371
  let res = "";
@@ -4475,7 +4474,7 @@ var require_resolve_flow_scalar = __commonJS2((exports) => {
4475
4474
  }
4476
4475
  exports.resolveFlowScalar = resolveFlowScalar;
4477
4476
  });
4478
- var require_compose_scalar = __commonJS2((exports) => {
4477
+ var require_compose_scalar = __commonJS((exports) => {
4479
4478
  var identity = require_identity();
4480
4479
  var Scalar = require_Scalar();
4481
4480
  var resolveBlockScalar = require_resolve_block_scalar();
@@ -4551,7 +4550,7 @@ var require_compose_scalar = __commonJS2((exports) => {
4551
4550
  }
4552
4551
  exports.composeScalar = composeScalar;
4553
4552
  });
4554
- var require_util_empty_scalar_position = __commonJS2((exports) => {
4553
+ var require_util_empty_scalar_position = __commonJS((exports) => {
4555
4554
  function emptyScalarPosition(offset, before, pos) {
4556
4555
  if (before) {
4557
4556
  pos ?? (pos = before.length);
@@ -4576,7 +4575,7 @@ var require_util_empty_scalar_position = __commonJS2((exports) => {
4576
4575
  }
4577
4576
  exports.emptyScalarPosition = emptyScalarPosition;
4578
4577
  });
4579
- var require_compose_node = __commonJS2((exports) => {
4578
+ var require_compose_node = __commonJS((exports) => {
4580
4579
  var Alias = require_Alias();
4581
4580
  var identity = require_identity();
4582
4581
  var composeCollection = require_compose_collection();
@@ -4677,7 +4676,7 @@ var require_compose_node = __commonJS2((exports) => {
4677
4676
  exports.composeEmptyNode = composeEmptyNode;
4678
4677
  exports.composeNode = composeNode;
4679
4678
  });
4680
- var require_compose_doc = __commonJS2((exports) => {
4679
+ var require_compose_doc = __commonJS((exports) => {
4681
4680
  var Document = require_Document();
4682
4681
  var composeNode = require_compose_node();
4683
4682
  var resolveEnd = require_resolve_end();
@@ -4715,7 +4714,7 @@ var require_compose_doc = __commonJS2((exports) => {
4715
4714
  }
4716
4715
  exports.composeDoc = composeDoc;
4717
4716
  });
4718
- var require_composer = __commonJS2((exports) => {
4717
+ var require_composer = __commonJS((exports) => {
4719
4718
  var node_process = __require("process");
4720
4719
  var directives = require_directives();
4721
4720
  var Document = require_Document();
@@ -4904,7 +4903,7 @@ ${end.comment}` : end.comment;
4904
4903
  }
4905
4904
  exports.Composer = Composer;
4906
4905
  });
4907
- var require_cst_scalar = __commonJS2((exports) => {
4906
+ var require_cst_scalar = __commonJS((exports) => {
4908
4907
  var resolveBlockScalar = require_resolve_block_scalar();
4909
4908
  var resolveFlowScalar = require_resolve_flow_scalar();
4910
4909
  var errors = require_errors();
@@ -5092,7 +5091,7 @@ var require_cst_scalar = __commonJS2((exports) => {
5092
5091
  exports.resolveAsScalar = resolveAsScalar;
5093
5092
  exports.setScalarValue = setScalarValue;
5094
5093
  });
5095
- var require_cst_stringify = __commonJS2((exports) => {
5094
+ var require_cst_stringify = __commonJS((exports) => {
5096
5095
  var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
5097
5096
  function stringifyToken(token) {
5098
5097
  switch (token.type) {
@@ -5133,14 +5132,14 @@ var require_cst_stringify = __commonJS2((exports) => {
5133
5132
  }
5134
5133
  }
5135
5134
  }
5136
- function stringifyItem({ start, key, sep: sep2, value }) {
5135
+ function stringifyItem({ start, key, sep, value }) {
5137
5136
  let res = "";
5138
5137
  for (const st of start)
5139
5138
  res += st.source;
5140
5139
  if (key)
5141
5140
  res += stringifyToken(key);
5142
- if (sep2)
5143
- for (const st of sep2)
5141
+ if (sep)
5142
+ for (const st of sep)
5144
5143
  res += st.source;
5145
5144
  if (value)
5146
5145
  res += stringifyToken(value);
@@ -5148,7 +5147,7 @@ var require_cst_stringify = __commonJS2((exports) => {
5148
5147
  }
5149
5148
  exports.stringify = stringify;
5150
5149
  });
5151
- var require_cst_visit = __commonJS2((exports) => {
5150
+ var require_cst_visit = __commonJS((exports) => {
5152
5151
  var BREAK = Symbol("break visit");
5153
5152
  var SKIP = Symbol("skip children");
5154
5153
  var REMOVE = Symbol("remove item");
@@ -5205,7 +5204,7 @@ var require_cst_visit = __commonJS2((exports) => {
5205
5204
  }
5206
5205
  exports.visit = visit;
5207
5206
  });
5208
- var require_cst = __commonJS2((exports) => {
5207
+ var require_cst = __commonJS((exports) => {
5209
5208
  var cstScalar = require_cst_scalar();
5210
5209
  var cstStringify = require_cst_stringify();
5211
5210
  var cstVisit = require_cst_visit();
@@ -5304,7 +5303,7 @@ var require_cst = __commonJS2((exports) => {
5304
5303
  exports.prettyToken = prettyToken;
5305
5304
  exports.tokenType = tokenType;
5306
5305
  });
5307
- var require_lexer = __commonJS2((exports) => {
5306
+ var require_lexer = __commonJS((exports) => {
5308
5307
  var cst = require_cst();
5309
5308
  function isEmpty(ch) {
5310
5309
  switch (ch) {
@@ -5899,7 +5898,7 @@ var require_lexer = __commonJS2((exports) => {
5899
5898
  }
5900
5899
  exports.Lexer = Lexer;
5901
5900
  });
5902
- var require_line_counter = __commonJS2((exports) => {
5901
+ var require_line_counter = __commonJS((exports) => {
5903
5902
 
5904
5903
  class LineCounter {
5905
5904
  constructor() {
@@ -5926,7 +5925,7 @@ var require_line_counter = __commonJS2((exports) => {
5926
5925
  }
5927
5926
  exports.LineCounter = LineCounter;
5928
5927
  });
5929
- var require_parser = __commonJS2((exports) => {
5928
+ var require_parser = __commonJS((exports) => {
5930
5929
  var node_process = __require("process");
5931
5930
  var cst = require_cst();
5932
5931
  var lexer = require_lexer();
@@ -6279,18 +6278,18 @@ var require_parser = __commonJS2((exports) => {
6279
6278
  if (this.type === "map-value-ind") {
6280
6279
  const prev = getPrevProps(this.peek(2));
6281
6280
  const start = getFirstKeyStartProps(prev);
6282
- let sep2;
6281
+ let sep;
6283
6282
  if (scalar.end) {
6284
- sep2 = scalar.end;
6285
- sep2.push(this.sourceToken);
6283
+ sep = scalar.end;
6284
+ sep.push(this.sourceToken);
6286
6285
  delete scalar.end;
6287
6286
  } else
6288
- sep2 = [this.sourceToken];
6287
+ sep = [this.sourceToken];
6289
6288
  const map = {
6290
6289
  type: "block-map",
6291
6290
  offset: scalar.offset,
6292
6291
  indent: scalar.indent,
6293
- items: [{ start, key: scalar, sep: sep2 }]
6292
+ items: [{ start, key: scalar, sep }]
6294
6293
  };
6295
6294
  this.onKeyLine = true;
6296
6295
  this.stack[this.stack.length - 1] = map;
@@ -6444,15 +6443,15 @@ var require_parser = __commonJS2((exports) => {
6444
6443
  } else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
6445
6444
  const start2 = getFirstKeyStartProps(it.start);
6446
6445
  const key = it.key;
6447
- const sep2 = it.sep;
6448
- sep2.push(this.sourceToken);
6446
+ const sep = it.sep;
6447
+ sep.push(this.sourceToken);
6449
6448
  delete it.key;
6450
6449
  delete it.sep;
6451
6450
  this.stack.push({
6452
6451
  type: "block-map",
6453
6452
  offset: this.offset,
6454
6453
  indent: this.indent,
6455
- items: [{ start: start2, key, sep: sep2 }]
6454
+ items: [{ start: start2, key, sep }]
6456
6455
  });
6457
6456
  } else if (start.length > 0) {
6458
6457
  it.sep = it.sep.concat(start, this.sourceToken);
@@ -6646,13 +6645,13 @@ var require_parser = __commonJS2((exports) => {
6646
6645
  const prev = getPrevProps(parent);
6647
6646
  const start = getFirstKeyStartProps(prev);
6648
6647
  fixFlowSeqItems(fc);
6649
- const sep2 = fc.end.splice(1, fc.end.length);
6650
- sep2.push(this.sourceToken);
6648
+ const sep = fc.end.splice(1, fc.end.length);
6649
+ sep.push(this.sourceToken);
6651
6650
  const map = {
6652
6651
  type: "block-map",
6653
6652
  offset: fc.offset,
6654
6653
  indent: fc.indent,
6655
- items: [{ start, key: fc, sep: sep2 }]
6654
+ items: [{ start, key: fc, sep }]
6656
6655
  };
6657
6656
  this.onKeyLine = true;
6658
6657
  this.stack[this.stack.length - 1] = map;
@@ -6780,7 +6779,7 @@ var require_parser = __commonJS2((exports) => {
6780
6779
  }
6781
6780
  exports.Parser = Parser;
6782
6781
  });
6783
- var require_public_api = __commonJS2((exports) => {
6782
+ var require_public_api = __commonJS((exports) => {
6784
6783
  var composer = require_composer();
6785
6784
  var Document = require_Document();
6786
6785
  var errors = require_errors();
@@ -6872,7 +6871,7 @@ var require_public_api = __commonJS2((exports) => {
6872
6871
  exports.parseDocument = parseDocument;
6873
6872
  exports.stringify = stringify;
6874
6873
  });
6875
- var require_dist = __commonJS2((exports) => {
6874
+ var require_dist = __commonJS((exports) => {
6876
6875
  var composer = require_composer();
6877
6876
  var Document = require_Document();
6878
6877
  var Schema = require_Schema();
@@ -6919,10 +6918,10 @@ var require_dist = __commonJS2((exports) => {
6919
6918
  exports.visit = visit.visit;
6920
6919
  exports.visitAsync = visit.visitAsync;
6921
6920
  });
6922
- var require_keyring_linux_x64_musl = __commonJS2((exports, module) => {
6921
+ var require_keyring_linux_x64_musl = __commonJS((exports, module) => {
6923
6922
  module.exports = __require("./keyring.linux-x64-musl-gxd42x54.node");
6924
6923
  });
6925
- var require_package = __commonJS2((exports, module) => {
6924
+ var require_package = __commonJS((exports, module) => {
6926
6925
  module.exports = {
6927
6926
  name: "@napi-rs/keyring-linux-x64-musl",
6928
6927
  version: "1.3.0",
@@ -6959,10 +6958,10 @@ var require_package = __commonJS2((exports, module) => {
6959
6958
  ]
6960
6959
  };
6961
6960
  });
6962
- var require_keyring_linux_x64_gnu = __commonJS2((exports, module) => {
6961
+ var require_keyring_linux_x64_gnu = __commonJS((exports, module) => {
6963
6962
  module.exports = __require("./keyring.linux-x64-gnu-0wbgnj90.node");
6964
6963
  });
6965
- var require_package2 = __commonJS2((exports, module) => {
6964
+ var require_package2 = __commonJS((exports, module) => {
6966
6965
  module.exports = {
6967
6966
  name: "@napi-rs/keyring-linux-x64-gnu",
6968
6967
  version: "1.3.0",
@@ -6999,7 +6998,7 @@ var require_package2 = __commonJS2((exports, module) => {
6999
6998
  ]
7000
6999
  };
7001
7000
  });
7002
- var require_keyring = __commonJS2((exports, module) => {
7001
+ var require_keyring = __commonJS((exports, module) => {
7003
7002
  var __filename2 = "/home/runner/work/signetai/signetai/node_modules/.bun/@napi-rs+keyring@1.3.0/node_modules/@napi-rs/keyring/index.js";
7004
7003
  var { createRequire: createRequire22 } = __require("node:module");
7005
7004
  __require = createRequire22(__filename2);
@@ -11167,6 +11166,51 @@ var PIPELINE_PROVIDER_CHOICES = [
11167
11166
  var SYNTHESIS_PROVIDER_CHOICES = PIPELINE_PROVIDER_CHOICES.filter((provider) => provider !== "command");
11168
11167
  var PIPELINE_PROVIDER_SET = new Set(PIPELINE_PROVIDER_CHOICES);
11169
11168
  var SYNTHESIS_PROVIDER_SET = new Set(SYNTHESIS_PROVIDER_CHOICES);
11169
+ function withWindowsHide(options) {
11170
+ return {
11171
+ ...options ?? {},
11172
+ windowsHide: options?.windowsHide ?? true
11173
+ };
11174
+ }
11175
+ function isOptions(value) {
11176
+ return typeof value === "object" && value !== null && !Array.isArray(value);
11177
+ }
11178
+ function withWindowsHideArgument(args, firstOptionIndex) {
11179
+ const normalized = [...args];
11180
+ const optionIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && isOptions(value));
11181
+ if (optionIndex >= 0) {
11182
+ normalized[optionIndex] = withWindowsHide(normalized[optionIndex]);
11183
+ return normalized;
11184
+ }
11185
+ const placeholderIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && (value === undefined || value === null));
11186
+ if (placeholderIndex >= 0) {
11187
+ normalized[placeholderIndex] = withWindowsHide(undefined);
11188
+ return normalized;
11189
+ }
11190
+ const callbackIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && typeof value === "function");
11191
+ normalized.splice(callbackIndex >= 0 ? callbackIndex : normalized.length, 0, { windowsHide: true });
11192
+ return normalized;
11193
+ }
11194
+ function withSpawnDefaults(options) {
11195
+ if (options?.shell !== undefined && options.shell !== false) {
11196
+ throw new TypeError("spawnHidden does not allow shell execution");
11197
+ }
11198
+ return {
11199
+ ...withWindowsHide(options),
11200
+ shell: false
11201
+ };
11202
+ }
11203
+ var spawnSyncHidden = (command, argsOrOptions, options) => {
11204
+ if (Array.isArray(argsOrOptions))
11205
+ return nodeSpawnSync(command, argsOrOptions, withSpawnDefaults(options));
11206
+ return nodeSpawnSync(command, withSpawnDefaults(options ?? argsOrOptions));
11207
+ };
11208
+ var nodeExecFileAsync = promisify(nodeExecFile);
11209
+ var execFileHiddenImpl = (...args) => Reflect.apply(nodeExecFile, undefined, withWindowsHideArgument(args, 1));
11210
+ Object.defineProperty(execFileHiddenImpl, promisify.custom, {
11211
+ value: (...args) => Reflect.apply(nodeExecFileAsync, undefined, withWindowsHideArgument(args, 1))
11212
+ });
11213
+ var execFileSyncHidden = (...args) => Reflect.apply(nodeExecFileSync, undefined, withWindowsHideArgument(args, 1));
11170
11214
  var MEMORY_CONTENT_SAFETY_POLICY_VERSION = "memory-content-safety-v1";
11171
11215
  var MEMORY_CONTENT_SAFETY_REASONS = [
11172
11216
  "prompt_injection",
@@ -17599,7 +17643,14 @@ var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
17599
17643
  var NETWORK_FILESYSTEM_TYPES = new Set(["afpfs", "nfs", "smbfs", "webdav"]);
17600
17644
  var __filename2 = fileURLToPath(import.meta.url);
17601
17645
  var __dirname2 = dirname(__filename2);
17602
- var import_yaml = __toESM2(require_dist(), 1);
17646
+ var import_yaml = __toESM(require_dist(), 1);
17647
+ function expandHome(p2, home = homedir2()) {
17648
+ if (p2 === "~")
17649
+ return home;
17650
+ if (p2.startsWith("~/") || p2.startsWith("~\\"))
17651
+ return join2(home, p2.slice(2));
17652
+ return p2;
17653
+ }
17603
17654
  var SERVICE = "ai.signet.secrets";
17604
17655
  var require2 = createRequire2(import.meta.url);
17605
17656
  var modulePromise = null;
@@ -17632,8 +17683,8 @@ function tryRequireOverride() {
17632
17683
  const override = process.env.SIGNET_KEYRING_NATIVE_MODULE_PATH?.trim();
17633
17684
  if (!override)
17634
17685
  return null;
17635
- const isAbsolute2 = override.startsWith("/") || /^\\\\[^\\]+\\[^\\]+/.test(override) || /^[A-Za-z]:[\\/]/.test(override);
17636
- if (!isAbsolute2)
17686
+ const isAbsolute = override.startsWith("/") || /^\\\\[^\\]+\\[^\\]+/.test(override) || /^[A-Za-z]:[\\/]/.test(override);
17687
+ if (!isAbsolute)
17637
17688
  return null;
17638
17689
  try {
17639
17690
  return require2(override);
@@ -17646,7 +17697,7 @@ async function loadModule() {
17646
17697
  const override = process.env.SIGNET_KEYRING_NATIVE_MODULE_PATH?.trim();
17647
17698
  if (override)
17648
17699
  return tryRequireOverride();
17649
- return await Promise.resolve().then(() => __toESM2(require_keyring(), 1)).catch(() => null);
17700
+ return await Promise.resolve().then(() => __toESM(require_keyring(), 1)).catch(() => null);
17650
17701
  })();
17651
17702
  return modulePromise;
17652
17703
  }
@@ -17682,7 +17733,7 @@ function linuxKeyringAvailable() {
17682
17733
  };
17683
17734
  }
17684
17735
  try {
17685
- execFileSync3("busctl", ["--user", "status", "org.freedesktop.secrets"], {
17736
+ execFileSyncHidden("busctl", ["--user", "status", "org.freedesktop.secrets"], {
17686
17737
  stdio: "ignore",
17687
17738
  timeout: 1000
17688
17739
  });
@@ -17754,7 +17805,7 @@ class NativeSecretKeyringAdapter {
17754
17805
  }
17755
17806
  var LOOPBACK_HOST = "127.0.0.1";
17756
17807
  var LOCAL_BINDS = new Set([LOOPBACK_HOST, "localhost", "::1", "::ffff:127.0.0.1"]);
17757
- var import_yaml2 = __toESM2(require_dist(), 1);
17808
+ var import_yaml2 = __toESM(require_dist(), 1);
17758
17809
  var native = null;
17759
17810
  try {
17760
17811
  const esmRequire = createRequire3(import.meta.url);
@@ -17892,179 +17943,73 @@ var IDENTITY_FILES = {
17892
17943
  };
17893
17944
  var REQUIRED_IDENTITY_KEYS = Object.entries(IDENTITY_FILES).filter(([, spec]) => !spec.optional).map(([key]) => key);
17894
17945
  var OPTIONAL_IDENTITY_KEYS = Object.entries(IDENTITY_FILES).filter(([, spec]) => spec.optional).map(([key]) => key);
17895
- function linkDirSync(target, path) {
17896
- const type = process.platform === "win32" ? "junction" : "dir";
17897
- symlinkSync(target, path, type);
17946
+ function userHome() {
17947
+ return process.env.HOME?.trim() || homedir9();
17898
17948
  }
17899
- function symlinkSkills(sourceDir, targetDir, options = {}) {
17900
- const result = {
17901
- created: [],
17902
- skipped: [],
17903
- errors: []
17904
- };
17905
- if (!existsSync15(sourceDir)) {
17906
- return result;
17907
- }
17908
- const targetParent = join15(targetDir, "..");
17909
- if (!existsSync15(targetParent)) {
17910
- mkdirSync10(targetParent, { recursive: true });
17949
+ function resolveHermesHomePath() {
17950
+ const hermesHome = process.env.HERMES_HOME?.trim();
17951
+ return hermesHome || join13(userHome(), ".hermes");
17952
+ }
17953
+ function hermesAgentCandidateDirs() {
17954
+ const home = userHome();
17955
+ const hermesHome = resolveHermesHomePath();
17956
+ return [
17957
+ hermesHome,
17958
+ join13(hermesHome, "hermes-agent"),
17959
+ join13(home, "hermes-agent"),
17960
+ join13(home, ".local", "share", "hermes-agent"),
17961
+ join13(home, "src", "hermes-agent"),
17962
+ "/opt/hermes-agent"
17963
+ ];
17964
+ }
17965
+ function resolveHermesRepoPath() {
17966
+ const hermesRepo = process.env.HERMES_REPO?.trim();
17967
+ if (hermesRepo && existsSync13(join13(hermesRepo, "plugins", "memory"))) {
17968
+ return hermesRepo;
17911
17969
  }
17912
- if (!existsSync15(targetDir)) {
17913
- mkdirSync10(targetDir, { recursive: true });
17970
+ for (const base of hermesAgentCandidateDirs()) {
17971
+ if (existsSync13(join13(base, "plugins", "memory")))
17972
+ return base;
17914
17973
  }
17915
- let entries;
17916
17974
  try {
17917
- entries = readdirSync7(sourceDir);
17918
- } catch (e) {
17919
- result.errors.push({
17920
- path: sourceDir,
17921
- error: `Failed to read directory: ${e.message}`
17922
- });
17923
- return result;
17924
- }
17925
- for (const entry of entries) {
17926
- const srcPath = join15(sourceDir, entry);
17927
- const destPath = join15(targetDir, entry);
17928
- try {
17929
- const src = lstatSync(srcPath);
17930
- if (src.isSymbolicLink() || !src.isDirectory()) {
17931
- result.skipped.push(srcPath);
17932
- continue;
17933
- }
17934
- } catch (e) {
17935
- result.errors.push({
17936
- path: srcPath,
17937
- error: `Failed to stat: ${e.message}`
17938
- });
17939
- continue;
17940
- }
17941
- try {
17942
- const destStat = lstatSync(destPath);
17943
- if (destStat.isSymbolicLink()) {
17944
- if (!options.dryRun) {
17945
- unlinkSync2(destPath);
17946
- }
17947
- } else {
17948
- result.skipped.push(destPath);
17949
- continue;
17950
- }
17951
- } catch {}
17952
- if (options.dryRun) {
17953
- result.created.push(`${destPath} (dry-run)`);
17954
- } else {
17955
- try {
17956
- linkDirSync(srcPath, destPath);
17957
- result.created.push(destPath);
17958
- } catch (e) {
17959
- result.errors.push({
17960
- path: destPath,
17961
- error: `Failed to create symlink: ${e.message}`
17962
- });
17963
- }
17975
+ const hermesPath = execFileSyncHidden("which", ["hermes"], {
17976
+ encoding: "utf-8",
17977
+ stdio: ["ignore", "pipe", "ignore"],
17978
+ timeout: 3000
17979
+ }).trim();
17980
+ if (hermesPath) {
17981
+ const repoDir = dirname8(realpathSync(hermesPath));
17982
+ if (existsSync13(join13(repoDir, "plugins", "memory")))
17983
+ return repoDir;
17964
17984
  }
17965
- }
17966
- return result;
17985
+ } catch {}
17986
+ return null;
17967
17987
  }
17968
17988
  var home = homedir10();
17969
- var SIGNET_BLOCK_START = "<!-- SIGNET:START -->";
17970
- var SIGNET_BLOCK_END = "<!-- SIGNET:END -->";
17971
- function stripSignetBlock(content) {
17972
- const pattern = new RegExp(`${escapeRegex(SIGNET_BLOCK_START)}[\\s\\S]*?${escapeRegex(SIGNET_BLOCK_END)}\\n?`, "g");
17973
- return content.replace(pattern, "");
17974
- }
17975
- function escapeRegex(str) {
17976
- return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
17977
- }
17978
17989
 
17979
- class BaseConnector {
17980
- stripSignetBlock(content) {
17981
- return stripSignetBlock(content);
17982
- }
17983
- stripLegacySignetBlock(basePath) {
17984
- const agentsPath = join3(basePath, "AGENTS.md");
17985
- if (!existsSync(agentsPath))
17986
- return null;
17987
- const raw = readFileSync(agentsPath, "utf-8");
17988
- const cleaned = stripSignetBlock(raw);
17989
- if (cleaned === raw)
17990
- return null;
17991
- const root = realpathSync(basePath);
17992
- const parent = realpathSync(dirname2(agentsPath));
17993
- const rel = relative(root, join3(parent, "AGENTS.md"));
17994
- if (rel.startsWith("..") || isAbsolute(rel)) {
17995
- throw new Error(`Target path escapes validated root: ${agentsPath}`);
17996
- }
17997
- const tmp = join3(basePath, `.${randomBytes(6).toString("hex")}.tmp`);
17998
- try {
17999
- writeFileSync(tmp, cleaned, "utf-8");
18000
- renameSync(tmp, agentsPath);
18001
- } catch (err) {
18002
- try {
18003
- unlinkSync(tmp);
18004
- } catch {}
18005
- throw err;
18006
- }
18007
- return agentsPath;
18008
- }
18009
- symlinkSkills(sourceDir, targetDir, options) {
18010
- return symlinkSkills(sourceDir, targetDir, options);
18011
- }
18012
- generateHeader(sourcePath, targetName) {
18013
- const name = targetName || this.name;
18014
- const safe = (p2) => p2.replace(/[\n\r]/g, "");
18015
- const root = dirname2(sourcePath);
18016
- return `# Auto-generated from ${safe(sourcePath)}
18017
- # Source: ${safe(sourcePath)}
18018
- # Generated: ${new Date().toISOString()}
18019
- # DO NOT EDIT - changes will be overwritten
18020
- # Edit the source files in ${safe(root)}/ instead
18021
-
18022
- `;
18023
- }
18024
- composeIdentityExtras(basePath) {
18025
- const files = ["SOUL.md", "IDENTITY.md", "USER.md", "MEMORY.md"];
18026
- const parts = [];
18027
- for (const name of files) {
18028
- const filePath = join3(basePath, name);
18029
- if (!existsSync(filePath))
18030
- continue;
18031
- try {
18032
- const content = readFileSync(filePath, "utf-8").trim();
18033
- if (!content)
18034
- continue;
18035
- const header = name.replace(".md", "");
18036
- parts.push(`
18037
- ## ${header}
18038
-
18039
- ${content}`);
18040
- } catch {}
18041
- }
18042
- return parts.join(`
18043
- `);
18044
- }
18045
- }
18046
- function readTrimmedEnv2(name) {
18047
- const value = process.env[name];
18048
- if (typeof value !== "string")
18049
- return;
18050
- const trimmed = value.trim().replace(/[\r\n]+/g, "");
18051
- return trimmed.length > 0 ? trimmed : undefined;
18052
- }
18053
- function readManagedTrimmedEnv(name) {
18054
- return readTrimmedEnv2(name);
18055
- }
18056
- function resolveSignetApiKey() {
18057
- return readManagedTrimmedEnv("SIGNET_API_KEY") ?? readManagedTrimmedEnv("SIGNET_TOKEN");
18058
- }
17990
+ // src/index.ts
17991
+ import { createHash as createHash5 } from "node:crypto";
17992
+ import { existsSync as existsSync2, mkdirSync, readFileSync as readFileSync2, realpathSync as realpathSync3, rmSync, writeFileSync as writeFileSync2 } from "node:fs";
17993
+ import { homedir } from "node:os";
17994
+ import { dirname as dirname6, isAbsolute as isAbsolute2, join as join6, relative as relative2 } from "node:path";
17995
+ import { fileURLToPath as fileURLToPath3 } from "node:url";
18059
17996
 
18060
- // ../../../platform/core/dist/index.js
17997
+ // ../../../libs/connector-base/dist/index.js
17998
+ import { randomBytes } from "node:crypto";
17999
+ import { existsSync, readFileSync, realpathSync as realpathSync2, renameSync, statSync, unlinkSync, writeFileSync } from "node:fs";
18000
+ import { dirname as dirname2, isAbsolute, join as join3, relative, sep } from "node:path";
18061
18001
  import { createRequire as createRequire4 } from "node:module";
18062
- import { dirname as dirname3, join as join2 } from "node:path";
18002
+ import { dirname as dirname3, join as join4 } from "node:path";
18063
18003
  import { fileURLToPath as fileURLToPath2 } from "node:url";
18004
+ import {
18005
+ execFile as nodeExecFile2,
18006
+ execFileSync as nodeExecFileSync2,
18007
+ execSync as nodeExecSync2,
18008
+ spawn as nodeSpawn2,
18009
+ spawnSync as nodeSpawnSync2
18010
+ } from "node:child_process";
18011
+ import { promisify as promisify2 } from "node:util";
18064
18012
  import { createHash as createHash3 } from "node:crypto";
18065
- import { homedir as homedir2 } from "node:os";
18066
- import { join as join22, resolve } from "node:path";
18067
- import { execFileSync as execFileSync32 } from "node:child_process";
18068
18013
  import { createHash as createHash22 } from "node:crypto";
18069
18014
  import { createRequire as createRequire22 } from "node:module";
18070
18015
  import { createRequire as createRequire32 } from "node:module";
@@ -18072,49 +18017,47 @@ import { homedir as homedir52 } from "node:os";
18072
18017
  import { dirname as dirname42, join as join82, resolve as resolve32 } from "node:path";
18073
18018
  import { homedir as homedir62, platform as platform22 } from "node:os";
18074
18019
  import { basename as basename2, dirname as dirname52, resolve as resolve52 } from "node:path";
18075
- import { execFileSync as execFileSync4 } from "node:child_process";
18076
- import { existsSync as existsSync13, readFileSync as readFileSync11, readdirSync as readdirSync5, realpathSync as realpathSync2, statSync as statSync7 } from "node:fs";
18077
- import { homedir as homedir9 } from "node:os";
18078
- import { dirname as dirname8, join as join13 } from "node:path";
18079
18020
  import { homedir as homedir102 } from "node:os";
18080
- var __create = Object.create;
18081
- var __getProtoOf = Object.getPrototypeOf;
18082
- var __defProp = Object.defineProperty;
18083
- var __getOwnPropNames = Object.getOwnPropertyNames;
18084
- var __hasOwnProp = Object.prototype.hasOwnProperty;
18085
- function __accessProp(key) {
18021
+ import { existsSync as existsSync15, lstatSync, mkdirSync as mkdirSync10, readdirSync as readdirSync7, symlinkSync, unlinkSync as unlinkSync2 } from "node:fs";
18022
+ import { join as join15 } from "node:path";
18023
+ var __create2 = Object.create;
18024
+ var __getProtoOf2 = Object.getPrototypeOf;
18025
+ var __defProp2 = Object.defineProperty;
18026
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
18027
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
18028
+ function __accessProp2(key) {
18086
18029
  return this[key];
18087
18030
  }
18088
- var __toESMCache_node;
18089
- var __toESMCache_esm;
18090
- var __toESM = (mod, isNodeMode, target) => {
18031
+ var __toESMCache_node2;
18032
+ var __toESMCache_esm2;
18033
+ var __toESM2 = (mod, isNodeMode, target) => {
18091
18034
  var canCache = mod != null && typeof mod === "object";
18092
18035
  if (canCache) {
18093
- var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
18036
+ var cache = isNodeMode ? __toESMCache_node2 ??= new WeakMap : __toESMCache_esm2 ??= new WeakMap;
18094
18037
  var cached = cache.get(mod);
18095
18038
  if (cached)
18096
18039
  return cached;
18097
18040
  }
18098
- target = mod != null ? __create(__getProtoOf(mod)) : {};
18099
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
18100
- for (let key of __getOwnPropNames(mod))
18101
- if (!__hasOwnProp.call(to, key))
18102
- __defProp(to, key, {
18103
- get: __accessProp.bind(mod, key),
18041
+ target = mod != null ? __create2(__getProtoOf2(mod)) : {};
18042
+ const to = isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target;
18043
+ for (let key of __getOwnPropNames2(mod))
18044
+ if (!__hasOwnProp2.call(to, key))
18045
+ __defProp2(to, key, {
18046
+ get: __accessProp2.bind(mod, key),
18104
18047
  enumerable: true
18105
18048
  });
18106
18049
  if (canCache)
18107
18050
  cache.set(mod, to);
18108
18051
  return to;
18109
18052
  };
18110
- var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
18053
+ var __commonJS2 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
18111
18054
  var __returnValue2 = (v2) => v2;
18112
18055
  function __exportSetter2(name, newValue) {
18113
18056
  this[name] = __returnValue2.bind(null, newValue);
18114
18057
  }
18115
18058
  var __export2 = (target, all) => {
18116
18059
  for (var name in all)
18117
- __defProp(target, name, {
18060
+ __defProp2(target, name, {
18118
18061
  get: all[name],
18119
18062
  enumerable: true,
18120
18063
  configurable: true,
@@ -18123,7 +18066,7 @@ var __export2 = (target, all) => {
18123
18066
  };
18124
18067
  var __esm2 = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
18125
18068
  var __require2 = /* @__PURE__ */ createRequire4(import.meta.url);
18126
- var require_identity2 = __commonJS((exports) => {
18069
+ var require_identity2 = __commonJS2((exports) => {
18127
18070
  var ALIAS = Symbol.for("yaml.alias");
18128
18071
  var DOC = Symbol.for("yaml.document");
18129
18072
  var MAP = Symbol.for("yaml.map");
@@ -18175,7 +18118,7 @@ var require_identity2 = __commonJS((exports) => {
18175
18118
  exports.isScalar = isScalar;
18176
18119
  exports.isSeq = isSeq;
18177
18120
  });
18178
- var require_visit2 = __commonJS((exports) => {
18121
+ var require_visit2 = __commonJS2((exports) => {
18179
18122
  var identity = require_identity2();
18180
18123
  var BREAK = Symbol("break visit");
18181
18124
  var SKIP = Symbol("skip children");
@@ -18328,7 +18271,7 @@ var require_visit2 = __commonJS((exports) => {
18328
18271
  exports.visit = visit;
18329
18272
  exports.visitAsync = visitAsync;
18330
18273
  });
18331
- var require_directives2 = __commonJS((exports) => {
18274
+ var require_directives2 = __commonJS2((exports) => {
18332
18275
  var identity = require_identity2();
18333
18276
  var visit = require_visit2();
18334
18277
  var escapeChars = {
@@ -18478,7 +18421,7 @@ var require_directives2 = __commonJS((exports) => {
18478
18421
  Directives.defaultTags = { "!!": "tag:yaml.org,2002:" };
18479
18422
  exports.Directives = Directives;
18480
18423
  });
18481
- var require_anchors2 = __commonJS((exports) => {
18424
+ var require_anchors2 = __commonJS2((exports) => {
18482
18425
  var identity = require_identity2();
18483
18426
  var visit = require_visit2();
18484
18427
  function anchorIsValid(anchor) {
@@ -18538,7 +18481,7 @@ var require_anchors2 = __commonJS((exports) => {
18538
18481
  exports.createNodeAnchors = createNodeAnchors;
18539
18482
  exports.findNewAnchor = findNewAnchor;
18540
18483
  });
18541
- var require_applyReviver2 = __commonJS((exports) => {
18484
+ var require_applyReviver2 = __commonJS2((exports) => {
18542
18485
  function applyReviver(reviver, obj, key, val) {
18543
18486
  if (val && typeof val === "object") {
18544
18487
  if (Array.isArray(val)) {
@@ -18583,7 +18526,7 @@ var require_applyReviver2 = __commonJS((exports) => {
18583
18526
  }
18584
18527
  exports.applyReviver = applyReviver;
18585
18528
  });
18586
- var require_toJS2 = __commonJS((exports) => {
18529
+ var require_toJS2 = __commonJS2((exports) => {
18587
18530
  var identity = require_identity2();
18588
18531
  function toJS(value, arg, ctx) {
18589
18532
  if (Array.isArray(value))
@@ -18608,7 +18551,7 @@ var require_toJS2 = __commonJS((exports) => {
18608
18551
  }
18609
18552
  exports.toJS = toJS;
18610
18553
  });
18611
- var require_Node2 = __commonJS((exports) => {
18554
+ var require_Node2 = __commonJS2((exports) => {
18612
18555
  var applyReviver = require_applyReviver2();
18613
18556
  var identity = require_identity2();
18614
18557
  var toJS = require_toJS2();
@@ -18643,7 +18586,7 @@ var require_Node2 = __commonJS((exports) => {
18643
18586
  }
18644
18587
  exports.NodeBase = NodeBase;
18645
18588
  });
18646
- var require_Alias2 = __commonJS((exports) => {
18589
+ var require_Alias2 = __commonJS2((exports) => {
18647
18590
  var anchors = require_anchors2();
18648
18591
  var visit = require_visit2();
18649
18592
  var identity = require_identity2();
@@ -18751,7 +18694,7 @@ var require_Alias2 = __commonJS((exports) => {
18751
18694
  }
18752
18695
  exports.Alias = Alias;
18753
18696
  });
18754
- var require_Scalar2 = __commonJS((exports) => {
18697
+ var require_Scalar2 = __commonJS2((exports) => {
18755
18698
  var identity = require_identity2();
18756
18699
  var Node = require_Node2();
18757
18700
  var toJS = require_toJS2();
@@ -18777,7 +18720,7 @@ var require_Scalar2 = __commonJS((exports) => {
18777
18720
  exports.Scalar = Scalar;
18778
18721
  exports.isScalarValue = isScalarValue;
18779
18722
  });
18780
- var require_createNode2 = __commonJS((exports) => {
18723
+ var require_createNode2 = __commonJS2((exports) => {
18781
18724
  var Alias = require_Alias2();
18782
18725
  var identity = require_identity2();
18783
18726
  var Scalar = require_Scalar2();
@@ -18847,7 +18790,7 @@ var require_createNode2 = __commonJS((exports) => {
18847
18790
  }
18848
18791
  exports.createNode = createNode;
18849
18792
  });
18850
- var require_Collection2 = __commonJS((exports) => {
18793
+ var require_Collection2 = __commonJS2((exports) => {
18851
18794
  var createNode = require_createNode2();
18852
18795
  var identity = require_identity2();
18853
18796
  var Node = require_Node2();
@@ -18960,7 +18903,7 @@ var require_Collection2 = __commonJS((exports) => {
18960
18903
  exports.collectionFromPath = collectionFromPath;
18961
18904
  exports.isEmptyPath = isEmptyPath;
18962
18905
  });
18963
- var require_stringifyComment2 = __commonJS((exports) => {
18906
+ var require_stringifyComment2 = __commonJS2((exports) => {
18964
18907
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
18965
18908
  function indentComment(comment, indent) {
18966
18909
  if (/^\n+$/.test(comment))
@@ -18975,7 +18918,7 @@ var require_stringifyComment2 = __commonJS((exports) => {
18975
18918
  exports.lineComment = lineComment;
18976
18919
  exports.stringifyComment = stringifyComment;
18977
18920
  });
18978
- var require_foldFlowLines2 = __commonJS((exports) => {
18921
+ var require_foldFlowLines2 = __commonJS2((exports) => {
18979
18922
  var FOLD_FLOW = "flow";
18980
18923
  var FOLD_BLOCK = "block";
18981
18924
  var FOLD_QUOTED = "quoted";
@@ -19110,7 +19053,7 @@ ${indent}${text.slice(fold + 1, end2)}`;
19110
19053
  exports.FOLD_QUOTED = FOLD_QUOTED;
19111
19054
  exports.foldFlowLines = foldFlowLines;
19112
19055
  });
19113
- var require_stringifyString2 = __commonJS((exports) => {
19056
+ var require_stringifyString2 = __commonJS2((exports) => {
19114
19057
  var Scalar = require_Scalar2();
19115
19058
  var foldFlowLines = require_foldFlowLines2();
19116
19059
  var getFoldOptions = (ctx, isBlock) => ({
@@ -19406,7 +19349,7 @@ ${indent}`);
19406
19349
  }
19407
19350
  exports.stringifyString = stringifyString;
19408
19351
  });
19409
- var require_stringify2 = __commonJS((exports) => {
19352
+ var require_stringify2 = __commonJS2((exports) => {
19410
19353
  var anchors = require_anchors2();
19411
19354
  var identity = require_identity2();
19412
19355
  var stringifyComment = require_stringifyComment2();
@@ -19525,7 +19468,7 @@ ${ctx.indent}${str}`;
19525
19468
  exports.createStringifyContext = createStringifyContext;
19526
19469
  exports.stringify = stringify;
19527
19470
  });
19528
- var require_stringifyPair2 = __commonJS((exports) => {
19471
+ var require_stringifyPair2 = __commonJS2((exports) => {
19529
19472
  var identity = require_identity2();
19530
19473
  var Scalar = require_Scalar2();
19531
19474
  var stringify = require_stringify2();
@@ -19659,7 +19602,7 @@ ${ctx.indent}`;
19659
19602
  }
19660
19603
  exports.stringifyPair = stringifyPair;
19661
19604
  });
19662
- var require_log2 = __commonJS((exports) => {
19605
+ var require_log2 = __commonJS2((exports) => {
19663
19606
  var node_process = __require2("process");
19664
19607
  function debug(logLevel, ...messages) {
19665
19608
  if (logLevel === "debug")
@@ -19676,7 +19619,7 @@ var require_log2 = __commonJS((exports) => {
19676
19619
  exports.debug = debug;
19677
19620
  exports.warn = warn;
19678
19621
  });
19679
- var require_merge2 = __commonJS((exports) => {
19622
+ var require_merge2 = __commonJS2((exports) => {
19680
19623
  var identity = require_identity2();
19681
19624
  var Scalar = require_Scalar2();
19682
19625
  var MERGE_KEY = "<<";
@@ -19731,7 +19674,7 @@ var require_merge2 = __commonJS((exports) => {
19731
19674
  exports.isMergeKey = isMergeKey;
19732
19675
  exports.merge = merge;
19733
19676
  });
19734
- var require_addPairToJSMap2 = __commonJS((exports) => {
19677
+ var require_addPairToJSMap2 = __commonJS2((exports) => {
19735
19678
  var log = require_log2();
19736
19679
  var merge = require_merge2();
19737
19680
  var stringify = require_stringify2();
@@ -19790,7 +19733,7 @@ var require_addPairToJSMap2 = __commonJS((exports) => {
19790
19733
  }
19791
19734
  exports.addPairToJSMap = addPairToJSMap;
19792
19735
  });
19793
- var require_Pair2 = __commonJS((exports) => {
19736
+ var require_Pair2 = __commonJS2((exports) => {
19794
19737
  var createNode = require_createNode2();
19795
19738
  var stringifyPair = require_stringifyPair2();
19796
19739
  var addPairToJSMap = require_addPairToJSMap2();
@@ -19826,7 +19769,7 @@ var require_Pair2 = __commonJS((exports) => {
19826
19769
  exports.Pair = Pair;
19827
19770
  exports.createPair = createPair;
19828
19771
  });
19829
- var require_stringifyCollection2 = __commonJS((exports) => {
19772
+ var require_stringifyCollection2 = __commonJS2((exports) => {
19830
19773
  var identity = require_identity2();
19831
19774
  var stringify = require_stringify2();
19832
19775
  var stringifyComment = require_stringifyComment2();
@@ -19976,7 +19919,7 @@ ${indent}${end}`;
19976
19919
  }
19977
19920
  exports.stringifyCollection = stringifyCollection;
19978
19921
  });
19979
- var require_YAMLMap2 = __commonJS((exports) => {
19922
+ var require_YAMLMap2 = __commonJS2((exports) => {
19980
19923
  var stringifyCollection = require_stringifyCollection2();
19981
19924
  var addPairToJSMap = require_addPairToJSMap2();
19982
19925
  var Collection = require_Collection2();
@@ -20101,7 +20044,7 @@ var require_YAMLMap2 = __commonJS((exports) => {
20101
20044
  exports.YAMLMap = YAMLMap;
20102
20045
  exports.findPair = findPair;
20103
20046
  });
20104
- var require_map2 = __commonJS((exports) => {
20047
+ var require_map2 = __commonJS2((exports) => {
20105
20048
  var identity = require_identity2();
20106
20049
  var YAMLMap = require_YAMLMap2();
20107
20050
  var map = {
@@ -20118,7 +20061,7 @@ var require_map2 = __commonJS((exports) => {
20118
20061
  };
20119
20062
  exports.map = map;
20120
20063
  });
20121
- var require_YAMLSeq2 = __commonJS((exports) => {
20064
+ var require_YAMLSeq2 = __commonJS2((exports) => {
20122
20065
  var createNode = require_createNode2();
20123
20066
  var stringifyCollection = require_stringifyCollection2();
20124
20067
  var Collection = require_Collection2();
@@ -20209,7 +20152,7 @@ var require_YAMLSeq2 = __commonJS((exports) => {
20209
20152
  }
20210
20153
  exports.YAMLSeq = YAMLSeq;
20211
20154
  });
20212
- var require_seq2 = __commonJS((exports) => {
20155
+ var require_seq2 = __commonJS2((exports) => {
20213
20156
  var identity = require_identity2();
20214
20157
  var YAMLSeq = require_YAMLSeq2();
20215
20158
  var seq = {
@@ -20226,7 +20169,7 @@ var require_seq2 = __commonJS((exports) => {
20226
20169
  };
20227
20170
  exports.seq = seq;
20228
20171
  });
20229
- var require_string2 = __commonJS((exports) => {
20172
+ var require_string2 = __commonJS2((exports) => {
20230
20173
  var stringifyString = require_stringifyString2();
20231
20174
  var string = {
20232
20175
  identify: (value) => typeof value === "string",
@@ -20240,7 +20183,7 @@ var require_string2 = __commonJS((exports) => {
20240
20183
  };
20241
20184
  exports.string = string;
20242
20185
  });
20243
- var require_null2 = __commonJS((exports) => {
20186
+ var require_null2 = __commonJS2((exports) => {
20244
20187
  var Scalar = require_Scalar2();
20245
20188
  var nullTag = {
20246
20189
  identify: (value) => value == null,
@@ -20253,7 +20196,7 @@ var require_null2 = __commonJS((exports) => {
20253
20196
  };
20254
20197
  exports.nullTag = nullTag;
20255
20198
  });
20256
- var require_bool3 = __commonJS((exports) => {
20199
+ var require_bool3 = __commonJS2((exports) => {
20257
20200
  var Scalar = require_Scalar2();
20258
20201
  var boolTag = {
20259
20202
  identify: (value) => typeof value === "boolean",
@@ -20272,7 +20215,7 @@ var require_bool3 = __commonJS((exports) => {
20272
20215
  };
20273
20216
  exports.boolTag = boolTag;
20274
20217
  });
20275
- var require_stringifyNumber2 = __commonJS((exports) => {
20218
+ var require_stringifyNumber2 = __commonJS2((exports) => {
20276
20219
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
20277
20220
  if (typeof value === "bigint")
20278
20221
  return String(value);
@@ -20294,7 +20237,7 @@ var require_stringifyNumber2 = __commonJS((exports) => {
20294
20237
  }
20295
20238
  exports.stringifyNumber = stringifyNumber;
20296
20239
  });
20297
- var require_float3 = __commonJS((exports) => {
20240
+ var require_float3 = __commonJS2((exports) => {
20298
20241
  var Scalar = require_Scalar2();
20299
20242
  var stringifyNumber = require_stringifyNumber2();
20300
20243
  var floatNaN = {
@@ -20335,7 +20278,7 @@ var require_float3 = __commonJS((exports) => {
20335
20278
  exports.floatExp = floatExp;
20336
20279
  exports.floatNaN = floatNaN;
20337
20280
  });
20338
- var require_int3 = __commonJS((exports) => {
20281
+ var require_int3 = __commonJS2((exports) => {
20339
20282
  var stringifyNumber = require_stringifyNumber2();
20340
20283
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
20341
20284
  var intResolve = (str, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix);
@@ -20375,7 +20318,7 @@ var require_int3 = __commonJS((exports) => {
20375
20318
  exports.intHex = intHex;
20376
20319
  exports.intOct = intOct;
20377
20320
  });
20378
- var require_schema4 = __commonJS((exports) => {
20321
+ var require_schema4 = __commonJS2((exports) => {
20379
20322
  var map = require_map2();
20380
20323
  var _null = require_null2();
20381
20324
  var seq = require_seq2();
@@ -20398,7 +20341,7 @@ var require_schema4 = __commonJS((exports) => {
20398
20341
  ];
20399
20342
  exports.schema = schema;
20400
20343
  });
20401
- var require_schema22 = __commonJS((exports) => {
20344
+ var require_schema22 = __commonJS2((exports) => {
20402
20345
  var Scalar = require_Scalar2();
20403
20346
  var map = require_map2();
20404
20347
  var seq = require_seq2();
@@ -20460,7 +20403,7 @@ var require_schema22 = __commonJS((exports) => {
20460
20403
  var schema = [map.map, seq.seq].concat(jsonScalars, jsonError);
20461
20404
  exports.schema = schema;
20462
20405
  });
20463
- var require_binary2 = __commonJS((exports) => {
20406
+ var require_binary2 = __commonJS2((exports) => {
20464
20407
  var node_buffer = __require2("buffer");
20465
20408
  var Scalar = require_Scalar2();
20466
20409
  var stringifyString = require_stringifyString2();
@@ -20513,7 +20456,7 @@ var require_binary2 = __commonJS((exports) => {
20513
20456
  };
20514
20457
  exports.binary = binary;
20515
20458
  });
20516
- var require_pairs2 = __commonJS((exports) => {
20459
+ var require_pairs2 = __commonJS2((exports) => {
20517
20460
  var identity = require_identity2();
20518
20461
  var Pair = require_Pair2();
20519
20462
  var Scalar = require_Scalar2();
@@ -20586,7 +20529,7 @@ ${cn.comment}` : item.comment;
20586
20529
  exports.pairs = pairs;
20587
20530
  exports.resolvePairs = resolvePairs;
20588
20531
  });
20589
- var require_omap2 = __commonJS((exports) => {
20532
+ var require_omap2 = __commonJS2((exports) => {
20590
20533
  var identity = require_identity2();
20591
20534
  var toJS = require_toJS2();
20592
20535
  var YAMLMap = require_YAMLMap2();
@@ -20656,7 +20599,7 @@ var require_omap2 = __commonJS((exports) => {
20656
20599
  exports.YAMLOMap = YAMLOMap;
20657
20600
  exports.omap = omap;
20658
20601
  });
20659
- var require_bool22 = __commonJS((exports) => {
20602
+ var require_bool22 = __commonJS2((exports) => {
20660
20603
  var Scalar = require_Scalar2();
20661
20604
  function boolStringify({ value, source }, ctx) {
20662
20605
  const boolObj = value ? trueTag : falseTag;
@@ -20683,7 +20626,7 @@ var require_bool22 = __commonJS((exports) => {
20683
20626
  exports.falseTag = falseTag;
20684
20627
  exports.trueTag = trueTag;
20685
20628
  });
20686
- var require_float22 = __commonJS((exports) => {
20629
+ var require_float22 = __commonJS2((exports) => {
20687
20630
  var Scalar = require_Scalar2();
20688
20631
  var stringifyNumber = require_stringifyNumber2();
20689
20632
  var floatNaN = {
@@ -20727,7 +20670,7 @@ var require_float22 = __commonJS((exports) => {
20727
20670
  exports.floatExp = floatExp;
20728
20671
  exports.floatNaN = floatNaN;
20729
20672
  });
20730
- var require_int22 = __commonJS((exports) => {
20673
+ var require_int22 = __commonJS2((exports) => {
20731
20674
  var stringifyNumber = require_stringifyNumber2();
20732
20675
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
20733
20676
  function intResolve(str, offset, radix, { intAsBigInt }) {
@@ -20801,7 +20744,7 @@ var require_int22 = __commonJS((exports) => {
20801
20744
  exports.intHex = intHex;
20802
20745
  exports.intOct = intOct;
20803
20746
  });
20804
- var require_set2 = __commonJS((exports) => {
20747
+ var require_set2 = __commonJS2((exports) => {
20805
20748
  var identity = require_identity2();
20806
20749
  var Pair = require_Pair2();
20807
20750
  var YAMLMap = require_YAMLMap2();
@@ -20882,7 +20825,7 @@ var require_set2 = __commonJS((exports) => {
20882
20825
  exports.YAMLSet = YAMLSet;
20883
20826
  exports.set = set;
20884
20827
  });
20885
- var require_timestamp2 = __commonJS((exports) => {
20828
+ var require_timestamp2 = __commonJS2((exports) => {
20886
20829
  var stringifyNumber = require_stringifyNumber2();
20887
20830
  function parseSexagesimal(str, asBigInt) {
20888
20831
  const sign = str[0];
@@ -20962,7 +20905,7 @@ var require_timestamp2 = __commonJS((exports) => {
20962
20905
  exports.intTime = intTime;
20963
20906
  exports.timestamp = timestamp;
20964
20907
  });
20965
- var require_schema32 = __commonJS((exports) => {
20908
+ var require_schema32 = __commonJS2((exports) => {
20966
20909
  var map = require_map2();
20967
20910
  var _null = require_null2();
20968
20911
  var seq = require_seq2();
@@ -21001,7 +20944,7 @@ var require_schema32 = __commonJS((exports) => {
21001
20944
  ];
21002
20945
  exports.schema = schema;
21003
20946
  });
21004
- var require_tags2 = __commonJS((exports) => {
20947
+ var require_tags2 = __commonJS2((exports) => {
21005
20948
  var map = require_map2();
21006
20949
  var _null = require_null2();
21007
20950
  var seq = require_seq2();
@@ -21090,7 +21033,7 @@ var require_tags2 = __commonJS((exports) => {
21090
21033
  exports.coreKnownTags = coreKnownTags;
21091
21034
  exports.getTags = getTags;
21092
21035
  });
21093
- var require_Schema2 = __commonJS((exports) => {
21036
+ var require_Schema2 = __commonJS2((exports) => {
21094
21037
  var identity = require_identity2();
21095
21038
  var map = require_map2();
21096
21039
  var seq = require_seq2();
@@ -21118,7 +21061,7 @@ var require_Schema2 = __commonJS((exports) => {
21118
21061
  }
21119
21062
  exports.Schema = Schema;
21120
21063
  });
21121
- var require_stringifyDocument2 = __commonJS((exports) => {
21064
+ var require_stringifyDocument2 = __commonJS2((exports) => {
21122
21065
  var identity = require_identity2();
21123
21066
  var stringify = require_stringify2();
21124
21067
  var stringifyComment = require_stringifyComment2();
@@ -21196,7 +21139,7 @@ var require_stringifyDocument2 = __commonJS((exports) => {
21196
21139
  }
21197
21140
  exports.stringifyDocument = stringifyDocument;
21198
21141
  });
21199
- var require_Document2 = __commonJS((exports) => {
21142
+ var require_Document2 = __commonJS2((exports) => {
21200
21143
  var Alias = require_Alias2();
21201
21144
  var Collection = require_Collection2();
21202
21145
  var identity = require_identity2();
@@ -21429,7 +21372,7 @@ var require_Document2 = __commonJS((exports) => {
21429
21372
  }
21430
21373
  exports.Document = Document;
21431
21374
  });
21432
- var require_errors2 = __commonJS((exports) => {
21375
+ var require_errors2 = __commonJS2((exports) => {
21433
21376
 
21434
21377
  class YAMLError extends Error {
21435
21378
  constructor(name, pos, code, message) {
@@ -21493,7 +21436,7 @@ ${pointer}
21493
21436
  exports.YAMLWarning = YAMLWarning;
21494
21437
  exports.prettifyError = prettifyError;
21495
21438
  });
21496
- var require_resolve_props2 = __commonJS((exports) => {
21439
+ var require_resolve_props2 = __commonJS2((exports) => {
21497
21440
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
21498
21441
  let spaceBefore = false;
21499
21442
  let atNewline = startOnNewline;
@@ -21621,7 +21564,7 @@ var require_resolve_props2 = __commonJS((exports) => {
21621
21564
  }
21622
21565
  exports.resolveProps = resolveProps;
21623
21566
  });
21624
- var require_util_contains_newline2 = __commonJS((exports) => {
21567
+ var require_util_contains_newline2 = __commonJS2((exports) => {
21625
21568
  function containsNewline(key) {
21626
21569
  if (!key)
21627
21570
  return null;
@@ -21659,7 +21602,7 @@ var require_util_contains_newline2 = __commonJS((exports) => {
21659
21602
  }
21660
21603
  exports.containsNewline = containsNewline;
21661
21604
  });
21662
- var require_util_flow_indent_check2 = __commonJS((exports) => {
21605
+ var require_util_flow_indent_check2 = __commonJS2((exports) => {
21663
21606
  var utilContainsNewline = require_util_contains_newline2();
21664
21607
  function flowIndentCheck(indent, fc, onError) {
21665
21608
  if (fc?.type === "flow-collection") {
@@ -21672,7 +21615,7 @@ var require_util_flow_indent_check2 = __commonJS((exports) => {
21672
21615
  }
21673
21616
  exports.flowIndentCheck = flowIndentCheck;
21674
21617
  });
21675
- var require_util_map_includes2 = __commonJS((exports) => {
21618
+ var require_util_map_includes2 = __commonJS2((exports) => {
21676
21619
  var identity = require_identity2();
21677
21620
  function mapIncludes(ctx, items, search) {
21678
21621
  const { uniqueKeys } = ctx.options;
@@ -21683,7 +21626,7 @@ var require_util_map_includes2 = __commonJS((exports) => {
21683
21626
  }
21684
21627
  exports.mapIncludes = mapIncludes;
21685
21628
  });
21686
- var require_resolve_block_map2 = __commonJS((exports) => {
21629
+ var require_resolve_block_map2 = __commonJS2((exports) => {
21687
21630
  var Pair = require_Pair2();
21688
21631
  var YAMLMap = require_YAMLMap2();
21689
21632
  var resolveProps = require_resolve_props2();
@@ -21788,7 +21731,7 @@ var require_resolve_block_map2 = __commonJS((exports) => {
21788
21731
  }
21789
21732
  exports.resolveBlockMap = resolveBlockMap;
21790
21733
  });
21791
- var require_resolve_block_seq2 = __commonJS((exports) => {
21734
+ var require_resolve_block_seq2 = __commonJS2((exports) => {
21792
21735
  var YAMLSeq = require_YAMLSeq2();
21793
21736
  var resolveProps = require_resolve_props2();
21794
21737
  var utilFlowIndentCheck = require_util_flow_indent_check2();
@@ -21834,7 +21777,7 @@ var require_resolve_block_seq2 = __commonJS((exports) => {
21834
21777
  }
21835
21778
  exports.resolveBlockSeq = resolveBlockSeq;
21836
21779
  });
21837
- var require_resolve_end2 = __commonJS((exports) => {
21780
+ var require_resolve_end2 = __commonJS2((exports) => {
21838
21781
  function resolveEnd(end, offset, reqSpace, onError) {
21839
21782
  let comment = "";
21840
21783
  if (end) {
@@ -21872,7 +21815,7 @@ var require_resolve_end2 = __commonJS((exports) => {
21872
21815
  }
21873
21816
  exports.resolveEnd = resolveEnd;
21874
21817
  });
21875
- var require_resolve_flow_collection2 = __commonJS((exports) => {
21818
+ var require_resolve_flow_collection2 = __commonJS2((exports) => {
21876
21819
  var identity = require_identity2();
21877
21820
  var Pair = require_Pair2();
21878
21821
  var YAMLMap = require_YAMLMap2();
@@ -22061,7 +22004,7 @@ var require_resolve_flow_collection2 = __commonJS((exports) => {
22061
22004
  }
22062
22005
  exports.resolveFlowCollection = resolveFlowCollection;
22063
22006
  });
22064
- var require_compose_collection2 = __commonJS((exports) => {
22007
+ var require_compose_collection2 = __commonJS2((exports) => {
22065
22008
  var identity = require_identity2();
22066
22009
  var Scalar = require_Scalar2();
22067
22010
  var YAMLMap = require_YAMLMap2();
@@ -22121,7 +22064,7 @@ var require_compose_collection2 = __commonJS((exports) => {
22121
22064
  }
22122
22065
  exports.composeCollection = composeCollection;
22123
22066
  });
22124
- var require_resolve_block_scalar2 = __commonJS((exports) => {
22067
+ var require_resolve_block_scalar2 = __commonJS2((exports) => {
22125
22068
  var Scalar = require_Scalar2();
22126
22069
  function resolveBlockScalar(ctx, scalar, onError) {
22127
22070
  const start = scalar.offset;
@@ -22312,7 +22255,7 @@ var require_resolve_block_scalar2 = __commonJS((exports) => {
22312
22255
  }
22313
22256
  exports.resolveBlockScalar = resolveBlockScalar;
22314
22257
  });
22315
- var require_resolve_flow_scalar2 = __commonJS((exports) => {
22258
+ var require_resolve_flow_scalar2 = __commonJS2((exports) => {
22316
22259
  var Scalar = require_Scalar2();
22317
22260
  var resolveEnd = require_resolve_end2();
22318
22261
  function resolveFlowScalar(scalar, strict, onError) {
@@ -22527,7 +22470,7 @@ var require_resolve_flow_scalar2 = __commonJS((exports) => {
22527
22470
  }
22528
22471
  exports.resolveFlowScalar = resolveFlowScalar;
22529
22472
  });
22530
- var require_compose_scalar2 = __commonJS((exports) => {
22473
+ var require_compose_scalar2 = __commonJS2((exports) => {
22531
22474
  var identity = require_identity2();
22532
22475
  var Scalar = require_Scalar2();
22533
22476
  var resolveBlockScalar = require_resolve_block_scalar2();
@@ -22603,7 +22546,7 @@ var require_compose_scalar2 = __commonJS((exports) => {
22603
22546
  }
22604
22547
  exports.composeScalar = composeScalar;
22605
22548
  });
22606
- var require_util_empty_scalar_position2 = __commonJS((exports) => {
22549
+ var require_util_empty_scalar_position2 = __commonJS2((exports) => {
22607
22550
  function emptyScalarPosition(offset, before, pos) {
22608
22551
  if (before) {
22609
22552
  pos ?? (pos = before.length);
@@ -22628,7 +22571,7 @@ var require_util_empty_scalar_position2 = __commonJS((exports) => {
22628
22571
  }
22629
22572
  exports.emptyScalarPosition = emptyScalarPosition;
22630
22573
  });
22631
- var require_compose_node2 = __commonJS((exports) => {
22574
+ var require_compose_node2 = __commonJS2((exports) => {
22632
22575
  var Alias = require_Alias2();
22633
22576
  var identity = require_identity2();
22634
22577
  var composeCollection = require_compose_collection2();
@@ -22729,7 +22672,7 @@ var require_compose_node2 = __commonJS((exports) => {
22729
22672
  exports.composeEmptyNode = composeEmptyNode;
22730
22673
  exports.composeNode = composeNode;
22731
22674
  });
22732
- var require_compose_doc2 = __commonJS((exports) => {
22675
+ var require_compose_doc2 = __commonJS2((exports) => {
22733
22676
  var Document = require_Document2();
22734
22677
  var composeNode = require_compose_node2();
22735
22678
  var resolveEnd = require_resolve_end2();
@@ -22767,7 +22710,7 @@ var require_compose_doc2 = __commonJS((exports) => {
22767
22710
  }
22768
22711
  exports.composeDoc = composeDoc;
22769
22712
  });
22770
- var require_composer2 = __commonJS((exports) => {
22713
+ var require_composer2 = __commonJS2((exports) => {
22771
22714
  var node_process = __require2("process");
22772
22715
  var directives = require_directives2();
22773
22716
  var Document = require_Document2();
@@ -22956,7 +22899,7 @@ ${end.comment}` : end.comment;
22956
22899
  }
22957
22900
  exports.Composer = Composer;
22958
22901
  });
22959
- var require_cst_scalar2 = __commonJS((exports) => {
22902
+ var require_cst_scalar2 = __commonJS2((exports) => {
22960
22903
  var resolveBlockScalar = require_resolve_block_scalar2();
22961
22904
  var resolveFlowScalar = require_resolve_flow_scalar2();
22962
22905
  var errors = require_errors2();
@@ -23144,7 +23087,7 @@ var require_cst_scalar2 = __commonJS((exports) => {
23144
23087
  exports.resolveAsScalar = resolveAsScalar;
23145
23088
  exports.setScalarValue = setScalarValue;
23146
23089
  });
23147
- var require_cst_stringify2 = __commonJS((exports) => {
23090
+ var require_cst_stringify2 = __commonJS2((exports) => {
23148
23091
  var stringify = (cst) => ("type" in cst) ? stringifyToken(cst) : stringifyItem(cst);
23149
23092
  function stringifyToken(token) {
23150
23093
  switch (token.type) {
@@ -23200,7 +23143,7 @@ var require_cst_stringify2 = __commonJS((exports) => {
23200
23143
  }
23201
23144
  exports.stringify = stringify;
23202
23145
  });
23203
- var require_cst_visit2 = __commonJS((exports) => {
23146
+ var require_cst_visit2 = __commonJS2((exports) => {
23204
23147
  var BREAK = Symbol("break visit");
23205
23148
  var SKIP = Symbol("skip children");
23206
23149
  var REMOVE = Symbol("remove item");
@@ -23257,7 +23200,7 @@ var require_cst_visit2 = __commonJS((exports) => {
23257
23200
  }
23258
23201
  exports.visit = visit;
23259
23202
  });
23260
- var require_cst2 = __commonJS((exports) => {
23203
+ var require_cst2 = __commonJS2((exports) => {
23261
23204
  var cstScalar = require_cst_scalar2();
23262
23205
  var cstStringify = require_cst_stringify2();
23263
23206
  var cstVisit = require_cst_visit2();
@@ -23356,7 +23299,7 @@ var require_cst2 = __commonJS((exports) => {
23356
23299
  exports.prettyToken = prettyToken;
23357
23300
  exports.tokenType = tokenType;
23358
23301
  });
23359
- var require_lexer2 = __commonJS((exports) => {
23302
+ var require_lexer2 = __commonJS2((exports) => {
23360
23303
  var cst = require_cst2();
23361
23304
  function isEmpty(ch) {
23362
23305
  switch (ch) {
@@ -23951,7 +23894,7 @@ var require_lexer2 = __commonJS((exports) => {
23951
23894
  }
23952
23895
  exports.Lexer = Lexer;
23953
23896
  });
23954
- var require_line_counter2 = __commonJS((exports) => {
23897
+ var require_line_counter2 = __commonJS2((exports) => {
23955
23898
 
23956
23899
  class LineCounter {
23957
23900
  constructor() {
@@ -23978,7 +23921,7 @@ var require_line_counter2 = __commonJS((exports) => {
23978
23921
  }
23979
23922
  exports.LineCounter = LineCounter;
23980
23923
  });
23981
- var require_parser2 = __commonJS((exports) => {
23924
+ var require_parser2 = __commonJS2((exports) => {
23982
23925
  var node_process = __require2("process");
23983
23926
  var cst = require_cst2();
23984
23927
  var lexer = require_lexer2();
@@ -24832,7 +24775,7 @@ var require_parser2 = __commonJS((exports) => {
24832
24775
  }
24833
24776
  exports.Parser = Parser;
24834
24777
  });
24835
- var require_public_api2 = __commonJS((exports) => {
24778
+ var require_public_api2 = __commonJS2((exports) => {
24836
24779
  var composer = require_composer2();
24837
24780
  var Document = require_Document2();
24838
24781
  var errors = require_errors2();
@@ -24924,7 +24867,7 @@ var require_public_api2 = __commonJS((exports) => {
24924
24867
  exports.parseDocument = parseDocument;
24925
24868
  exports.stringify = stringify;
24926
24869
  });
24927
- var require_dist2 = __commonJS((exports) => {
24870
+ var require_dist2 = __commonJS2((exports) => {
24928
24871
  var composer = require_composer2();
24929
24872
  var Document = require_Document2();
24930
24873
  var Schema = require_Schema2();
@@ -24971,10 +24914,10 @@ var require_dist2 = __commonJS((exports) => {
24971
24914
  exports.visit = visit.visit;
24972
24915
  exports.visitAsync = visit.visitAsync;
24973
24916
  });
24974
- var require_keyring_linux_x64_musl2 = __commonJS((exports, module) => {
24917
+ var require_keyring_linux_x64_musl2 = __commonJS2((exports, module) => {
24975
24918
  module.exports = __require2("./keyring.linux-x64-musl-gxd42x54.node");
24976
24919
  });
24977
- var require_package3 = __commonJS((exports, module) => {
24920
+ var require_package3 = __commonJS2((exports, module) => {
24978
24921
  module.exports = {
24979
24922
  name: "@napi-rs/keyring-linux-x64-musl",
24980
24923
  version: "1.3.0",
@@ -25011,10 +24954,10 @@ var require_package3 = __commonJS((exports, module) => {
25011
24954
  ]
25012
24955
  };
25013
24956
  });
25014
- var require_keyring_linux_x64_gnu2 = __commonJS((exports, module) => {
24957
+ var require_keyring_linux_x64_gnu2 = __commonJS2((exports, module) => {
25015
24958
  module.exports = __require2("./keyring.linux-x64-gnu-0wbgnj90.node");
25016
24959
  });
25017
- var require_package22 = __commonJS((exports, module) => {
24960
+ var require_package22 = __commonJS2((exports, module) => {
25018
24961
  module.exports = {
25019
24962
  name: "@napi-rs/keyring-linux-x64-gnu",
25020
24963
  version: "1.3.0",
@@ -25051,10 +24994,10 @@ var require_package22 = __commonJS((exports, module) => {
25051
24994
  ]
25052
24995
  };
25053
24996
  });
25054
- var require_keyring2 = __commonJS((exports, module) => {
25055
- var __filename3 = "/home/runner/work/signetai/signetai/node_modules/.bun/@napi-rs+keyring@1.3.0/node_modules/@napi-rs/keyring/index.js";
25056
- var { createRequire: createRequire23 } = __require2("node:module");
25057
- __require2 = createRequire23(__filename3);
24997
+ var require_keyring2 = __commonJS2((exports, module) => {
24998
+ var __filename22 = "/home/runner/work/signetai/signetai/node_modules/.bun/@napi-rs+keyring@1.3.0/node_modules/@napi-rs/keyring/index.js";
24999
+ var { createRequire: createRequire222 } = __require2("node:module");
25000
+ __require2 = createRequire222(__filename22);
25058
25001
  var { readFileSync: readFileSync3 } = __require2("node:fs");
25059
25002
  var nativeBinding = null;
25060
25003
  var loadErrors = [];
@@ -29185,15 +29128,15 @@ var init_libsodium_wrappers2 = __esm2(() => {
29185
29128
  typeof r2["_" + e2[_3]] == "function" && (t2[e2[_3]] = a3[_3]);
29186
29129
  var n3 = ["SODIUM_LIBRARY_VERSION_MAJOR", "SODIUM_LIBRARY_VERSION_MINOR", "crypto_aead_aegis128l_ABYTES", "crypto_aead_aegis128l_KEYBYTES", "crypto_aead_aegis128l_MESSAGEBYTES_MAX", "crypto_aead_aegis128l_NPUBBYTES", "crypto_aead_aegis128l_NSECBYTES", "crypto_aead_aegis256_ABYTES", "crypto_aead_aegis256_KEYBYTES", "crypto_aead_aegis256_MESSAGEBYTES_MAX", "crypto_aead_aegis256_NPUBBYTES", "crypto_aead_aegis256_NSECBYTES", "crypto_aead_aes256gcm_ABYTES", "crypto_aead_aes256gcm_KEYBYTES", "crypto_aead_aes256gcm_MESSAGEBYTES_MAX", "crypto_aead_aes256gcm_NPUBBYTES", "crypto_aead_aes256gcm_NSECBYTES", "crypto_aead_chacha20poly1305_ABYTES", "crypto_aead_chacha20poly1305_IETF_ABYTES", "crypto_aead_chacha20poly1305_IETF_KEYBYTES", "crypto_aead_chacha20poly1305_IETF_MESSAGEBYTES_MAX", "crypto_aead_chacha20poly1305_IETF_NPUBBYTES", "crypto_aead_chacha20poly1305_IETF_NSECBYTES", "crypto_aead_chacha20poly1305_KEYBYTES", "crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX", "crypto_aead_chacha20poly1305_NPUBBYTES", "crypto_aead_chacha20poly1305_NSECBYTES", "crypto_aead_chacha20poly1305_ietf_ABYTES", "crypto_aead_chacha20poly1305_ietf_KEYBYTES", "crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX", "crypto_aead_chacha20poly1305_ietf_NPUBBYTES", "crypto_aead_chacha20poly1305_ietf_NSECBYTES", "crypto_aead_xchacha20poly1305_IETF_ABYTES", "crypto_aead_xchacha20poly1305_IETF_KEYBYTES", "crypto_aead_xchacha20poly1305_IETF_MESSAGEBYTES_MAX", "crypto_aead_xchacha20poly1305_IETF_NPUBBYTES", "crypto_aead_xchacha20poly1305_IETF_NSECBYTES", "crypto_aead_xchacha20poly1305_ietf_ABYTES", "crypto_aead_xchacha20poly1305_ietf_KEYBYTES", "crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX", "crypto_aead_xchacha20poly1305_ietf_NPUBBYTES", "crypto_aead_xchacha20poly1305_ietf_NSECBYTES", "crypto_auth_BYTES", "crypto_auth_KEYBYTES", "crypto_auth_hmacsha256_BYTES", "crypto_auth_hmacsha256_KEYBYTES", "crypto_auth_hmacsha512256_BYTES", "crypto_auth_hmacsha512256_KEYBYTES", "crypto_auth_hmacsha512_BYTES", "crypto_auth_hmacsha512_KEYBYTES", "crypto_box_BEFORENMBYTES", "crypto_box_MACBYTES", "crypto_box_MESSAGEBYTES_MAX", "crypto_box_NONCEBYTES", "crypto_box_PUBLICKEYBYTES", "crypto_box_SEALBYTES", "crypto_box_SECRETKEYBYTES", "crypto_box_SEEDBYTES", "crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES", "crypto_box_curve25519xchacha20poly1305_MACBYTES", "crypto_box_curve25519xchacha20poly1305_MESSAGEBYTES_MAX", "crypto_box_curve25519xchacha20poly1305_NONCEBYTES", "crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES", "crypto_box_curve25519xchacha20poly1305_SEALBYTES", "crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES", "crypto_box_curve25519xchacha20poly1305_SEEDBYTES", "crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES", "crypto_box_curve25519xsalsa20poly1305_MACBYTES", "crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX", "crypto_box_curve25519xsalsa20poly1305_NONCEBYTES", "crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES", "crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES", "crypto_box_curve25519xsalsa20poly1305_SEEDBYTES", "crypto_core_ed25519_BYTES", "crypto_core_ed25519_HASHBYTES", "crypto_core_ed25519_NONREDUCEDSCALARBYTES", "crypto_core_ed25519_SCALARBYTES", "crypto_core_ed25519_UNIFORMBYTES", "crypto_core_hchacha20_CONSTBYTES", "crypto_core_hchacha20_INPUTBYTES", "crypto_core_hchacha20_KEYBYTES", "crypto_core_hchacha20_OUTPUTBYTES", "crypto_core_hsalsa20_CONSTBYTES", "crypto_core_hsalsa20_INPUTBYTES", "crypto_core_hsalsa20_KEYBYTES", "crypto_core_hsalsa20_OUTPUTBYTES", "crypto_core_ristretto255_BYTES", "crypto_core_ristretto255_HASHBYTES", "crypto_core_ristretto255_NONREDUCEDSCALARBYTES", "crypto_core_ristretto255_SCALARBYTES", "crypto_core_salsa2012_CONSTBYTES", "crypto_core_salsa2012_INPUTBYTES", "crypto_core_salsa2012_KEYBYTES", "crypto_core_salsa2012_OUTPUTBYTES", "crypto_core_salsa208_CONSTBYTES", "crypto_core_salsa208_INPUTBYTES", "crypto_core_salsa208_KEYBYTES", "crypto_core_salsa208_OUTPUTBYTES", "crypto_core_salsa20_CONSTBYTES", "crypto_core_salsa20_INPUTBYTES", "crypto_core_salsa20_KEYBYTES", "crypto_core_salsa20_OUTPUTBYTES", "crypto_generichash_BYTES", "crypto_generichash_BYTES_MAX", "crypto_generichash_BYTES_MIN", "crypto_generichash_KEYBYTES", "crypto_generichash_KEYBYTES_MAX", "crypto_generichash_KEYBYTES_MIN", "crypto_generichash_blake2b_BYTES", "crypto_generichash_blake2b_BYTES_MAX", "crypto_generichash_blake2b_BYTES_MIN", "crypto_generichash_blake2b_KEYBYTES", "crypto_generichash_blake2b_KEYBYTES_MAX", "crypto_generichash_blake2b_KEYBYTES_MIN", "crypto_generichash_blake2b_PERSONALBYTES", "crypto_generichash_blake2b_SALTBYTES", "crypto_hash_BYTES", "crypto_hash_sha256_BYTES", "crypto_hash_sha3256_BYTES", "crypto_hash_sha3512_BYTES", "crypto_hash_sha512_BYTES", "crypto_ipcrypt_BYTES", "crypto_ipcrypt_KEYBYTES", "crypto_ipcrypt_NDX_INPUTBYTES", "crypto_ipcrypt_NDX_KEYBYTES", "crypto_ipcrypt_NDX_OUTPUTBYTES", "crypto_ipcrypt_NDX_TWEAKBYTES", "crypto_ipcrypt_ND_INPUTBYTES", "crypto_ipcrypt_ND_KEYBYTES", "crypto_ipcrypt_ND_OUTPUTBYTES", "crypto_ipcrypt_ND_TWEAKBYTES", "crypto_ipcrypt_PFX_BYTES", "crypto_ipcrypt_PFX_KEYBYTES", "crypto_kdf_BYTES_MAX", "crypto_kdf_BYTES_MIN", "crypto_kdf_CONTEXTBYTES", "crypto_kdf_KEYBYTES", "crypto_kdf_blake2b_BYTES_MAX", "crypto_kdf_blake2b_BYTES_MIN", "crypto_kdf_blake2b_CONTEXTBYTES", "crypto_kdf_blake2b_KEYBYTES", "crypto_kdf_hkdf_sha256_BYTES_MAX", "crypto_kdf_hkdf_sha256_BYTES_MIN", "crypto_kdf_hkdf_sha256_KEYBYTES", "crypto_kdf_hkdf_sha512_BYTES_MAX", "crypto_kdf_hkdf_sha512_BYTES_MIN", "crypto_kdf_hkdf_sha512_KEYBYTES", "crypto_kem_CIPHERTEXTBYTES", "crypto_kem_PUBLICKEYBYTES", "crypto_kem_SECRETKEYBYTES", "crypto_kem_SEEDBYTES", "crypto_kem_SHAREDSECRETBYTES", "crypto_kem_mlkem768_CIPHERTEXTBYTES", "crypto_kem_mlkem768_PUBLICKEYBYTES", "crypto_kem_mlkem768_SECRETKEYBYTES", "crypto_kem_mlkem768_SEEDBYTES", "crypto_kem_mlkem768_SHAREDSECRETBYTES", "crypto_kem_xwing_CIPHERTEXTBYTES", "crypto_kem_xwing_PUBLICKEYBYTES", "crypto_kem_xwing_SECRETKEYBYTES", "crypto_kem_xwing_SEEDBYTES", "crypto_kem_xwing_SHAREDSECRETBYTES", "crypto_kx_PUBLICKEYBYTES", "crypto_kx_SECRETKEYBYTES", "crypto_kx_SEEDBYTES", "crypto_kx_SESSIONKEYBYTES", "crypto_onetimeauth_BYTES", "crypto_onetimeauth_KEYBYTES", "crypto_onetimeauth_poly1305_BYTES", "crypto_onetimeauth_poly1305_KEYBYTES", "crypto_pwhash_ALG_ARGON2I13", "crypto_pwhash_ALG_ARGON2ID13", "crypto_pwhash_ALG_DEFAULT", "crypto_pwhash_BYTES_MAX", "crypto_pwhash_BYTES_MIN", "crypto_pwhash_MEMLIMIT_INTERACTIVE", "crypto_pwhash_MEMLIMIT_MAX", "crypto_pwhash_MEMLIMIT_MIN", "crypto_pwhash_MEMLIMIT_MODERATE", "crypto_pwhash_MEMLIMIT_SENSITIVE", "crypto_pwhash_OPSLIMIT_INTERACTIVE", "crypto_pwhash_OPSLIMIT_MAX", "crypto_pwhash_OPSLIMIT_MIN", "crypto_pwhash_OPSLIMIT_MODERATE", "crypto_pwhash_OPSLIMIT_SENSITIVE", "crypto_pwhash_PASSWD_MAX", "crypto_pwhash_PASSWD_MIN", "crypto_pwhash_SALTBYTES", "crypto_pwhash_STRBYTES", "crypto_pwhash_argon2i_BYTES_MAX", "crypto_pwhash_argon2i_BYTES_MIN", "crypto_pwhash_argon2i_MEMLIMIT_INTERACTIVE", "crypto_pwhash_argon2i_MEMLIMIT_MAX", "crypto_pwhash_argon2i_MEMLIMIT_MIN", "crypto_pwhash_argon2i_MEMLIMIT_MODERATE", "crypto_pwhash_argon2i_MEMLIMIT_SENSITIVE", "crypto_pwhash_argon2i_OPSLIMIT_INTERACTIVE", "crypto_pwhash_argon2i_OPSLIMIT_MAX", "crypto_pwhash_argon2i_OPSLIMIT_MIN", "crypto_pwhash_argon2i_OPSLIMIT_MODERATE", "crypto_pwhash_argon2i_OPSLIMIT_SENSITIVE", "crypto_pwhash_argon2i_PASSWD_MAX", "crypto_pwhash_argon2i_PASSWD_MIN", "crypto_pwhash_argon2i_SALTBYTES", "crypto_pwhash_argon2i_STRBYTES", "crypto_pwhash_argon2id_BYTES_MAX", "crypto_pwhash_argon2id_BYTES_MIN", "crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE", "crypto_pwhash_argon2id_MEMLIMIT_MAX", "crypto_pwhash_argon2id_MEMLIMIT_MIN", "crypto_pwhash_argon2id_MEMLIMIT_MODERATE", "crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE", "crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE", "crypto_pwhash_argon2id_OPSLIMIT_MAX", "crypto_pwhash_argon2id_OPSLIMIT_MIN", "crypto_pwhash_argon2id_OPSLIMIT_MODERATE", "crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE", "crypto_pwhash_argon2id_PASSWD_MAX", "crypto_pwhash_argon2id_PASSWD_MIN", "crypto_pwhash_argon2id_SALTBYTES", "crypto_pwhash_argon2id_STRBYTES", "crypto_pwhash_scryptsalsa208sha256_BYTES_MAX", "crypto_pwhash_scryptsalsa208sha256_BYTES_MIN", "crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE", "crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX", "crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN", "crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE", "crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE", "crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX", "crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN", "crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE", "crypto_pwhash_scryptsalsa208sha256_PASSWD_MAX", "crypto_pwhash_scryptsalsa208sha256_PASSWD_MIN", "crypto_pwhash_scryptsalsa208sha256_SALTBYTES", "crypto_pwhash_scryptsalsa208sha256_STRBYTES", "crypto_scalarmult_BYTES", "crypto_scalarmult_SCALARBYTES", "crypto_scalarmult_curve25519_BYTES", "crypto_scalarmult_curve25519_SCALARBYTES", "crypto_scalarmult_ed25519_BYTES", "crypto_scalarmult_ed25519_SCALARBYTES", "crypto_scalarmult_ristretto255_BYTES", "crypto_scalarmult_ristretto255_SCALARBYTES", "crypto_secretbox_KEYBYTES", "crypto_secretbox_MACBYTES", "crypto_secretbox_MESSAGEBYTES_MAX", "crypto_secretbox_NONCEBYTES", "crypto_secretbox_xchacha20poly1305_KEYBYTES", "crypto_secretbox_xchacha20poly1305_MACBYTES", "crypto_secretbox_xchacha20poly1305_MESSAGEBYTES_MAX", "crypto_secretbox_xchacha20poly1305_NONCEBYTES", "crypto_secretbox_xsalsa20poly1305_KEYBYTES", "crypto_secretbox_xsalsa20poly1305_MACBYTES", "crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX", "crypto_secretbox_xsalsa20poly1305_NONCEBYTES", "crypto_secretstream_xchacha20poly1305_ABYTES", "crypto_secretstream_xchacha20poly1305_HEADERBYTES", "crypto_secretstream_xchacha20poly1305_KEYBYTES", "crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX", "crypto_secretstream_xchacha20poly1305_TAG_FINAL", "crypto_secretstream_xchacha20poly1305_TAG_MESSAGE", "crypto_secretstream_xchacha20poly1305_TAG_PUSH", "crypto_secretstream_xchacha20poly1305_TAG_REKEY", "crypto_shorthash_BYTES", "crypto_shorthash_KEYBYTES", "crypto_shorthash_siphash24_BYTES", "crypto_shorthash_siphash24_KEYBYTES", "crypto_shorthash_siphashx24_BYTES", "crypto_shorthash_siphashx24_KEYBYTES", "crypto_sign_BYTES", "crypto_sign_MESSAGEBYTES_MAX", "crypto_sign_PUBLICKEYBYTES", "crypto_sign_SECRETKEYBYTES", "crypto_sign_SEEDBYTES", "crypto_sign_ed25519_BYTES", "crypto_sign_ed25519_MESSAGEBYTES_MAX", "crypto_sign_ed25519_PUBLICKEYBYTES", "crypto_sign_ed25519_SECRETKEYBYTES", "crypto_sign_ed25519_SEEDBYTES", "crypto_stream_KEYBYTES", "crypto_stream_MESSAGEBYTES_MAX", "crypto_stream_NONCEBYTES", "crypto_stream_chacha20_IETF_KEYBYTES", "crypto_stream_chacha20_IETF_MESSAGEBYTES_MAX", "crypto_stream_chacha20_IETF_NONCEBYTES", "crypto_stream_chacha20_KEYBYTES", "crypto_stream_chacha20_MESSAGEBYTES_MAX", "crypto_stream_chacha20_NONCEBYTES", "crypto_stream_chacha20_ietf_KEYBYTES", "crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX", "crypto_stream_chacha20_ietf_NONCEBYTES", "crypto_stream_salsa2012_KEYBYTES", "crypto_stream_salsa2012_MESSAGEBYTES_MAX", "crypto_stream_salsa2012_NONCEBYTES", "crypto_stream_salsa208_KEYBYTES", "crypto_stream_salsa208_MESSAGEBYTES_MAX", "crypto_stream_salsa208_NONCEBYTES", "crypto_stream_salsa20_KEYBYTES", "crypto_stream_salsa20_MESSAGEBYTES_MAX", "crypto_stream_salsa20_NONCEBYTES", "crypto_stream_xchacha20_KEYBYTES", "crypto_stream_xchacha20_MESSAGEBYTES_MAX", "crypto_stream_xchacha20_NONCEBYTES", "crypto_stream_xsalsa20_KEYBYTES", "crypto_stream_xsalsa20_MESSAGEBYTES_MAX", "crypto_stream_xsalsa20_NONCEBYTES", "crypto_verify_16_BYTES", "crypto_verify_32_BYTES", "crypto_verify_64_BYTES", "crypto_xof_shake128_BLOCKBYTES", "crypto_xof_shake128_STATEBYTES", "crypto_xof_shake256_BLOCKBYTES", "crypto_xof_shake256_STATEBYTES", "crypto_xof_turboshake128_BLOCKBYTES", "crypto_xof_turboshake128_STATEBYTES", "crypto_xof_turboshake256_BLOCKBYTES", "crypto_xof_turboshake256_STATEBYTES"];
29187
29130
  for (_3 = 0;_3 < n3.length; _3++)
29188
- typeof (c22 = r2["_" + n3[_3].toLowerCase()]) == "function" && (t2[n3[_3]] = c22());
29131
+ typeof (c222 = r2["_" + n3[_3].toLowerCase()]) == "function" && (t2[n3[_3]] = c222());
29189
29132
  var s3 = ["SODIUM_VERSION_STRING", "crypto_kem_PRIMITIVE", "crypto_pwhash_STRPREFIX", "crypto_pwhash_argon2i_STRPREFIX", "crypto_pwhash_argon2id_STRPREFIX", "crypto_pwhash_scryptsalsa208sha256_STRPREFIX"];
29190
29133
  for (_3 = 0;_3 < s3.length; _3++) {
29191
- var c22;
29192
- typeof (c22 = r2["_" + s3[_3].toLowerCase()]) == "function" && (t2[s3[_3]] = r2.UTF8ToString(c22()));
29134
+ var c222;
29135
+ typeof (c222 = r2["_" + s3[_3].toLowerCase()]) == "function" && (t2[s3[_3]] = r2.UTF8ToString(c222()));
29193
29136
  }
29194
29137
  }();
29195
- var a22 = new Uint8Array([98, 97, 108, 108, 115]), _22 = t2.randombytes_buf(t2.crypto_secretbox_NONCEBYTES), n22 = t2.randombytes_buf(t2.crypto_secretbox_KEYBYTES), s22 = t2.crypto_secretbox_easy(a22, _22, n22), c3 = t2.crypto_secretbox_open_easy(s22, _22, n22);
29196
- if (!t2.memcmp(a22, c3))
29138
+ var a22 = new Uint8Array([98, 97, 108, 108, 115]), _22 = t2.randombytes_buf(t2.crypto_secretbox_NONCEBYTES), n22 = t2.randombytes_buf(t2.crypto_secretbox_KEYBYTES), s22 = t2.crypto_secretbox_easy(a22, _22, n22), c22 = t2.crypto_secretbox_open_easy(s22, _22, n22);
29139
+ if (!t2.memcmp(a22, c22))
29197
29140
  throw new Error("Initialization self-test failed");
29198
29141
  });
29199
29142
  m2 = { ORIGINAL: 1, ORIGINAL_NO_PADDING: 3, URLSAFE: 5, URLSAFE_NO_PADDING: 7 };
@@ -29219,6 +29162,37 @@ var PIPELINE_PROVIDER_CHOICES2 = [
29219
29162
  var SYNTHESIS_PROVIDER_CHOICES2 = PIPELINE_PROVIDER_CHOICES2.filter((provider) => provider !== "command");
29220
29163
  var PIPELINE_PROVIDER_SET2 = new Set(PIPELINE_PROVIDER_CHOICES2);
29221
29164
  var SYNTHESIS_PROVIDER_SET2 = new Set(SYNTHESIS_PROVIDER_CHOICES2);
29165
+ function withWindowsHide2(options) {
29166
+ return {
29167
+ ...options ?? {},
29168
+ windowsHide: options?.windowsHide ?? true
29169
+ };
29170
+ }
29171
+ function isOptions2(value) {
29172
+ return typeof value === "object" && value !== null && !Array.isArray(value);
29173
+ }
29174
+ function withWindowsHideArgument2(args, firstOptionIndex) {
29175
+ const normalized = [...args];
29176
+ const optionIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && isOptions2(value));
29177
+ if (optionIndex >= 0) {
29178
+ normalized[optionIndex] = withWindowsHide2(normalized[optionIndex]);
29179
+ return normalized;
29180
+ }
29181
+ const placeholderIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && (value === undefined || value === null));
29182
+ if (placeholderIndex >= 0) {
29183
+ normalized[placeholderIndex] = withWindowsHide2(undefined);
29184
+ return normalized;
29185
+ }
29186
+ const callbackIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && typeof value === "function");
29187
+ normalized.splice(callbackIndex >= 0 ? callbackIndex : normalized.length, 0, { windowsHide: true });
29188
+ return normalized;
29189
+ }
29190
+ var nodeExecFileAsync2 = promisify2(nodeExecFile2);
29191
+ var execFileHiddenImpl2 = (...args) => Reflect.apply(nodeExecFile2, undefined, withWindowsHideArgument2(args, 1));
29192
+ Object.defineProperty(execFileHiddenImpl2, promisify2.custom, {
29193
+ value: (...args) => Reflect.apply(nodeExecFileAsync2, undefined, withWindowsHideArgument2(args, 1))
29194
+ });
29195
+ var execFileSyncHidden2 = (...args) => Reflect.apply(nodeExecFileSync2, undefined, withWindowsHideArgument2(args, 1));
29222
29196
  var MEMORY_CONTENT_SAFETY_POLICY_VERSION2 = "memory-content-safety-v1";
29223
29197
  var MEMORY_CONTENT_SAFETY_REASONS2 = [
29224
29198
  "prompt_injection",
@@ -29525,7 +29499,7 @@ function up151(db) {
29525
29499
  }
29526
29500
  function hasColumn26(db, table, column) {
29527
29501
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
29528
- return rows.some((r3) => r3.name === column);
29502
+ return rows.some((r22) => r22.name === column);
29529
29503
  }
29530
29504
  function addColumnIfMissing29(db, table, column, definition) {
29531
29505
  if (!hasColumn26(db, table, column)) {
@@ -29645,7 +29619,7 @@ function up210(db) {
29645
29619
  }
29646
29620
  function addColumnIfMissing210(db, table, column, definition) {
29647
29621
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
29648
- if (rows.some((r3) => r3.name === column))
29622
+ if (rows.some((r22) => r22.name === column))
29649
29623
  return false;
29650
29624
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
29651
29625
  return true;
@@ -29680,7 +29654,7 @@ function up310(db) {
29680
29654
  }
29681
29655
  function hasColumn27(db, table, column) {
29682
29656
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
29683
- return rows.some((r3) => r3.name === column);
29657
+ return rows.some((r22) => r22.name === column);
29684
29658
  }
29685
29659
  function addColumnIfMissing32(db, table, column, definition) {
29686
29660
  if (!hasColumn27(db, table, column)) {
@@ -29713,7 +29687,7 @@ function up410(db) {
29713
29687
  }
29714
29688
  function hasColumn32(db, table, column) {
29715
29689
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
29716
- return rows.some((r3) => r3.name === column);
29690
+ return rows.some((r22) => r22.name === column);
29717
29691
  }
29718
29692
  function addColumnIfMissing42(db, table, column, definition) {
29719
29693
  if (!hasColumn32(db, table, column)) {
@@ -29735,7 +29709,7 @@ function up510(db) {
29735
29709
  }
29736
29710
  function hasColumn42(db, table, column) {
29737
29711
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
29738
- return rows.some((r3) => r3.name === column);
29712
+ return rows.some((r22) => r22.name === column);
29739
29713
  }
29740
29714
  function up610(db) {
29741
29715
  if (!hasColumn42(db, "memories", "idempotency_key")) {
@@ -29750,7 +29724,7 @@ function up610(db) {
29750
29724
  }
29751
29725
  function hasColumn52(db, table, column) {
29752
29726
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
29753
- return rows.some((r3) => r3.name === column);
29727
+ return rows.some((r22) => r22.name === column);
29754
29728
  }
29755
29729
  function up710(db) {
29756
29730
  db.exec(`
@@ -29914,7 +29888,7 @@ function up1210(db) {
29914
29888
  }
29915
29889
  function addColumnIfMissing52(db, table, column, definition) {
29916
29890
  const cols = db.prepare(`PRAGMA table_info(${table})`).all();
29917
- if (!cols.some((c3) => c3.name === column)) {
29891
+ if (!cols.some((c22) => c22.name === column)) {
29918
29892
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
29919
29893
  }
29920
29894
  }
@@ -29965,7 +29939,7 @@ function up1410(db) {
29965
29939
  }
29966
29940
  function addColumnIfMissing62(db, table, column, definition) {
29967
29941
  const cols = db.prepare(`PRAGMA table_info(${table})`).all();
29968
- if (!cols.some((c3) => c3.name === column)) {
29942
+ if (!cols.some((c22) => c22.name === column)) {
29969
29943
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
29970
29944
  }
29971
29945
  }
@@ -30020,7 +29994,7 @@ function up162(db) {
30020
29994
  }
30021
29995
  function up172(db) {
30022
29996
  const cols = db.prepare("PRAGMA table_info(scheduled_tasks)").all();
30023
- const colNames = new Set(cols.flatMap((c3) => typeof c3.name === "string" ? [c3.name] : []));
29997
+ const colNames = new Set(cols.flatMap((c22) => typeof c22.name === "string" ? [c22.name] : []));
30024
29998
  if (!colNames.has("skill_name")) {
30025
29999
  db.exec("ALTER TABLE scheduled_tasks ADD COLUMN skill_name TEXT");
30026
30000
  }
@@ -30063,7 +30037,7 @@ function up182(db) {
30063
30037
  }
30064
30038
  function up192(db) {
30065
30039
  const entityCols = db.prepare("PRAGMA table_info(entities)").all();
30066
- const entityColNames = new Set(entityCols.flatMap((c3) => typeof c3.name === "string" ? [c3.name] : []));
30040
+ const entityColNames = new Set(entityCols.flatMap((c22) => typeof c22.name === "string" ? [c22.name] : []));
30067
30041
  if (!entityColNames.has("agent_id")) {
30068
30042
  db.exec("ALTER TABLE entities ADD COLUMN agent_id TEXT NOT NULL DEFAULT 'default'");
30069
30043
  }
@@ -30142,7 +30116,7 @@ function up192(db) {
30142
30116
  }
30143
30117
  function addColumnIfMissing72(db, table, column, definition) {
30144
30118
  const cols = db.prepare(`PRAGMA table_info(${table})`).all();
30145
- if (!cols.some((c3) => c3.name === column)) {
30119
+ if (!cols.some((c22) => c22.name === column)) {
30146
30120
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
30147
30121
  }
30148
30122
  }
@@ -30173,7 +30147,7 @@ function up212(db) {
30173
30147
  }
30174
30148
  function addColumnIfMissing82(db, table, column, definition) {
30175
30149
  const cols = db.prepare(`PRAGMA table_info(${table})`).all();
30176
- if (!cols.some((c3) => c3.name === column)) {
30150
+ if (!cols.some((c22) => c22.name === column)) {
30177
30151
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
30178
30152
  }
30179
30153
  }
@@ -30186,7 +30160,7 @@ function up232(_db) {}
30186
30160
  function up242(_db) {}
30187
30161
  function addColumnIfMissing92(db, table, column, definition) {
30188
30162
  const cols = db.prepare(`PRAGMA table_info(${table})`).all();
30189
- if (!cols.some((c3) => c3.name === column)) {
30163
+ if (!cols.some((c22) => c22.name === column)) {
30190
30164
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
30191
30165
  }
30192
30166
  }
@@ -30333,11 +30307,11 @@ function up302(db) {
30333
30307
  }
30334
30308
  function up312(db) {
30335
30309
  const depCols = db.prepare("PRAGMA table_info(entity_dependencies)").all();
30336
- if (!depCols.some((c3) => c3.name === "reason")) {
30310
+ if (!depCols.some((c22) => c22.name === "reason")) {
30337
30311
  db.exec("ALTER TABLE entity_dependencies ADD COLUMN reason TEXT");
30338
30312
  }
30339
30313
  const entCols = db.prepare("PRAGMA table_info(entities)").all();
30340
- if (!entCols.some((c3) => c3.name === "last_synthesized_at")) {
30314
+ if (!entCols.some((c22) => c22.name === "last_synthesized_at")) {
30341
30315
  db.exec("ALTER TABLE entities ADD COLUMN last_synthesized_at TEXT");
30342
30316
  }
30343
30317
  }
@@ -30345,13 +30319,13 @@ function up322(db) {
30345
30319
  const cols = db.prepare("PRAGMA table_info(embeddings)").all();
30346
30320
  if (cols.length === 0)
30347
30321
  return;
30348
- if (!cols.some((c3) => c3.name === "vector")) {
30322
+ if (!cols.some((c22) => c22.name === "vector")) {
30349
30323
  db.exec("ALTER TABLE embeddings ADD COLUMN vector BLOB");
30350
30324
  }
30351
30325
  }
30352
30326
  function up332(db) {
30353
30327
  const cols = db.prepare("PRAGMA table_info(memories)").all();
30354
- if (!cols.some((c3) => c3.name === "scope")) {
30328
+ if (!cols.some((c22) => c22.name === "scope")) {
30355
30329
  db.exec("ALTER TABLE memories ADD COLUMN scope TEXT DEFAULT NULL");
30356
30330
  }
30357
30331
  db.exec("CREATE INDEX IF NOT EXISTS idx_memories_scope ON memories(scope) WHERE scope IS NOT NULL");
@@ -30398,7 +30372,7 @@ function up352(db) {
30398
30372
  }
30399
30373
  function up362(db) {
30400
30374
  const cols = db.prepare("PRAGMA table_info(entity_dependencies)").all();
30401
- if (!cols.some((c3) => c3.name === "confidence")) {
30375
+ if (!cols.some((c22) => c22.name === "confidence")) {
30402
30376
  db.exec("ALTER TABLE entity_dependencies ADD COLUMN confidence REAL DEFAULT 0.7");
30403
30377
  }
30404
30378
  }
@@ -30416,7 +30390,7 @@ function up372(db) {
30416
30390
  `);
30417
30391
  db.exec("CREATE INDEX IF NOT EXISTS idx_entity_communities_agent ON entity_communities(agent_id)");
30418
30392
  const cols = db.prepare("PRAGMA table_info(entities)").all();
30419
- if (!cols.some((c3) => c3.name === "community_id")) {
30393
+ if (!cols.some((c22) => c22.name === "community_id")) {
30420
30394
  db.exec("ALTER TABLE entities ADD COLUMN community_id TEXT REFERENCES entity_communities(id)");
30421
30395
  }
30422
30396
  }
@@ -30497,7 +30471,7 @@ function up402(db) {
30497
30471
  }
30498
30472
  function addColumnIfMissing102(db, table, column, definition) {
30499
30473
  const cols = db.prepare(`PRAGMA table_info(${table})`).all();
30500
- if (!cols.some((c3) => c3.name === column)) {
30474
+ if (!cols.some((c22) => c22.name === column)) {
30501
30475
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
30502
30476
  }
30503
30477
  }
@@ -30660,7 +30634,7 @@ function up422(db) {
30660
30634
  }
30661
30635
  function addColumnIfMissing122(db, table, column, definition) {
30662
30636
  const cols = db.prepare(`PRAGMA table_info(${table})`).all();
30663
- if (cols.some((c3) => c3.name === column))
30637
+ if (cols.some((c22) => c22.name === column))
30664
30638
  return;
30665
30639
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
30666
30640
  }
@@ -30689,7 +30663,7 @@ function up432(db) {
30689
30663
  }
30690
30664
  function addColumnIfMissing132(db, table, column, definition) {
30691
30665
  const cols = db.prepare(`PRAGMA table_info(${table})`).all();
30692
- if (cols.some((c3) => c3.name === column))
30666
+ if (cols.some((c22) => c22.name === column))
30693
30667
  return;
30694
30668
  db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
30695
30669
  }
@@ -31679,7 +31653,7 @@ function up682(db) {
31679
31653
  }
31680
31654
  function up692(db) {
31681
31655
  const cols = db.prepare("PRAGMA table_info(daily_reflections)").all();
31682
- const colNames = new Set(cols.flatMap((c3) => typeof c3.name === "string" ? [c3.name] : []));
31656
+ const colNames = new Set(cols.flatMap((c22) => typeof c22.name === "string" ? [c22.name] : []));
31683
31657
  if (!colNames.has("content_key")) {
31684
31658
  db.exec("ALTER TABLE daily_reflections ADD COLUMN content_key TEXT");
31685
31659
  }
@@ -32299,13 +32273,13 @@ function up842(db) {
32299
32273
  }
32300
32274
  function up852(db) {
32301
32275
  const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name IN ('relations', 'entity_dependencies')").all();
32302
- const tableNames = new Set(tables.map((r3) => String(r3.name)));
32276
+ const tableNames = new Set(tables.map((r22) => String(r22.name)));
32303
32277
  if (!tableNames.has("relations") || !tableNames.has("entity_dependencies"))
32304
32278
  return;
32305
32279
  const relCols = db.prepare("PRAGMA table_info(relations)").all();
32306
32280
  const depCols = db.prepare("PRAGMA table_info(entity_dependencies)").all();
32307
- const rel = new Set(relCols.map((c3) => String(c3.name)));
32308
- const dep = new Set(depCols.map((c3) => String(c3.name)));
32281
+ const rel = new Set(relCols.map((c22) => String(c22.name)));
32282
+ const dep = new Set(depCols.map((c22) => String(c22.name)));
32309
32283
  if (!rel.has("source_entity_id") || !rel.has("relation_type"))
32310
32284
  return;
32311
32285
  if (!dep.has("source_entity_id") || !dep.has("dependency_type") || !dep.has("agent_id"))
@@ -32490,7 +32464,7 @@ function up932(db) {
32490
32464
  var DERIVED_SOURCE_TYPES2 = DAEMON_DERIVED_MEMORY_SOURCE_TYPES2;
32491
32465
  function hasColumn132(db, table, column) {
32492
32466
  const rows = db.prepare(`PRAGMA table_info(${table})`).all();
32493
- return rows.some((r3) => r3.name === column);
32467
+ return rows.some((r22) => r22.name === column);
32494
32468
  }
32495
32469
  function up942(db) {
32496
32470
  const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name = 'memories'").all();
@@ -33760,7 +33734,7 @@ function up1352(db) {
33760
33734
  `);
33761
33735
  }
33762
33736
  function up1362(db) {
33763
- const cols = new Set(db.prepare("PRAGMA table_info(memory_head_revisions)").all().map((r3) => r3.name));
33737
+ const cols = new Set(db.prepare("PRAGMA table_info(memory_head_revisions)").all().map((r22) => r22.name));
33764
33738
  for (const [name, type] of [
33765
33739
  ["entry_id", "TEXT"],
33766
33740
  ["entry_text", "TEXT"],
@@ -33774,7 +33748,7 @@ function up1362(db) {
33774
33748
  db.exec("CREATE UNIQUE INDEX IF NOT EXISTS idx_memory_head_revisions_entry ON memory_head_revisions(agent_id, revision, entry_id)");
33775
33749
  }
33776
33750
  function up1372(db) {
33777
- const cols = new Set(db.prepare("PRAGMA table_info(dreaming_passes)").all().map((r3) => r3.name));
33751
+ const cols = new Set(db.prepare("PRAGMA table_info(dreaming_passes)").all().map((r22) => r22.name));
33778
33752
  for (const [name, type] of [
33779
33753
  ["head_revision", "INTEGER"],
33780
33754
  ["head_hash", "TEXT"],
@@ -35651,14 +35625,7 @@ var LATEST_SCHEMA_VERSION2 = MIGRATIONS2[MIGRATIONS2.length - 1]?.version ?? 0;
35651
35625
  var NETWORK_FILESYSTEM_TYPES2 = new Set(["afpfs", "nfs", "smbfs", "webdav"]);
35652
35626
  var __filename22 = fileURLToPath2(import.meta.url);
35653
35627
  var __dirname22 = dirname3(__filename22);
35654
- var import_yaml3 = __toESM(require_dist2(), 1);
35655
- function expandHome(p3, home2 = homedir2()) {
35656
- if (p3 === "~")
35657
- return home2;
35658
- if (p3.startsWith("~/") || p3.startsWith("~\\"))
35659
- return join22(home2, p3.slice(2));
35660
- return p3;
35661
- }
35628
+ var import_yaml3 = __toESM2(require_dist2(), 1);
35662
35629
  var SERVICE2 = "ai.signet.secrets";
35663
35630
  var require22 = createRequire22(import.meta.url);
35664
35631
  var modulePromise2 = null;
@@ -35705,7 +35672,7 @@ async function loadModule2() {
35705
35672
  const override = process.env.SIGNET_KEYRING_NATIVE_MODULE_PATH?.trim();
35706
35673
  if (override)
35707
35674
  return tryRequireOverride2();
35708
- return await Promise.resolve().then(() => __toESM(require_keyring2(), 1)).catch(() => null);
35675
+ return await Promise.resolve().then(() => __toESM2(require_keyring2(), 1)).catch(() => null);
35709
35676
  })();
35710
35677
  return modulePromise2;
35711
35678
  }
@@ -35741,7 +35708,7 @@ function linuxKeyringAvailable2() {
35741
35708
  };
35742
35709
  }
35743
35710
  try {
35744
- execFileSync32("busctl", ["--user", "status", "org.freedesktop.secrets"], {
35711
+ execFileSyncHidden2("busctl", ["--user", "status", "org.freedesktop.secrets"], {
35745
35712
  stdio: "ignore",
35746
35713
  timeout: 1000
35747
35714
  });
@@ -35813,7 +35780,7 @@ class NativeSecretKeyringAdapter2 {
35813
35780
  }
35814
35781
  var LOOPBACK_HOST2 = "127.0.0.1";
35815
35782
  var LOCAL_BINDS2 = new Set([LOOPBACK_HOST2, "localhost", "::1", "::ffff:127.0.0.1"]);
35816
- var import_yaml22 = __toESM(require_dist2(), 1);
35783
+ var import_yaml22 = __toESM2(require_dist2(), 1);
35817
35784
  var native2 = null;
35818
35785
  try {
35819
35786
  const esmRequire = createRequire32(import.meta.url);
@@ -35951,68 +35918,189 @@ var IDENTITY_FILES2 = {
35951
35918
  };
35952
35919
  var REQUIRED_IDENTITY_KEYS2 = Object.entries(IDENTITY_FILES2).filter(([, spec]) => !spec.optional).map(([key]) => key);
35953
35920
  var OPTIONAL_IDENTITY_KEYS2 = Object.entries(IDENTITY_FILES2).filter(([, spec]) => spec.optional).map(([key]) => key);
35954
- function userHome() {
35955
- return process.env.HOME?.trim() || homedir9();
35956
- }
35957
- function resolveHermesHomePath() {
35958
- const hermesHome = process.env.HERMES_HOME?.trim();
35959
- return hermesHome || join13(userHome(), ".hermes");
35960
- }
35961
- function hermesAgentCandidateDirs() {
35962
- const home2 = userHome();
35963
- const hermesHome = resolveHermesHomePath();
35964
- return [
35965
- hermesHome,
35966
- join13(hermesHome, "hermes-agent"),
35967
- join13(home2, "hermes-agent"),
35968
- join13(home2, ".local", "share", "hermes-agent"),
35969
- join13(home2, "src", "hermes-agent"),
35970
- "/opt/hermes-agent"
35971
- ];
35921
+ function linkDirSync(target, path) {
35922
+ const type = process.platform === "win32" ? "junction" : "dir";
35923
+ symlinkSync(target, path, type);
35972
35924
  }
35973
- function resolveHermesRepoPath() {
35974
- const hermesRepo = process.env.HERMES_REPO?.trim();
35975
- if (hermesRepo && existsSync13(join13(hermesRepo, "plugins", "memory"))) {
35976
- return hermesRepo;
35925
+ function symlinkSkills(sourceDir, targetDir, options = {}) {
35926
+ const result = {
35927
+ created: [],
35928
+ skipped: [],
35929
+ errors: []
35930
+ };
35931
+ if (!existsSync15(sourceDir)) {
35932
+ return result;
35977
35933
  }
35978
- for (const base of hermesAgentCandidateDirs()) {
35979
- if (existsSync13(join13(base, "plugins", "memory")))
35980
- return base;
35934
+ const targetParent = join15(targetDir, "..");
35935
+ if (!existsSync15(targetParent)) {
35936
+ mkdirSync10(targetParent, { recursive: true });
35937
+ }
35938
+ if (!existsSync15(targetDir)) {
35939
+ mkdirSync10(targetDir, { recursive: true });
35981
35940
  }
35941
+ let entries;
35982
35942
  try {
35983
- const hermesPath = execFileSync4("which", ["hermes"], {
35984
- encoding: "utf-8",
35985
- stdio: ["ignore", "pipe", "ignore"],
35986
- timeout: 3000
35987
- }).trim();
35988
- if (hermesPath) {
35989
- const repoDir = dirname8(realpathSync2(hermesPath));
35990
- if (existsSync13(join13(repoDir, "plugins", "memory")))
35991
- return repoDir;
35943
+ entries = readdirSync7(sourceDir);
35944
+ } catch (e) {
35945
+ result.errors.push({
35946
+ path: sourceDir,
35947
+ error: `Failed to read directory: ${e.message}`
35948
+ });
35949
+ return result;
35950
+ }
35951
+ for (const entry of entries) {
35952
+ const srcPath = join15(sourceDir, entry);
35953
+ const destPath = join15(targetDir, entry);
35954
+ try {
35955
+ const src = lstatSync(srcPath);
35956
+ if (src.isSymbolicLink() || !src.isDirectory()) {
35957
+ result.skipped.push(srcPath);
35958
+ continue;
35959
+ }
35960
+ } catch (e) {
35961
+ result.errors.push({
35962
+ path: srcPath,
35963
+ error: `Failed to stat: ${e.message}`
35964
+ });
35965
+ continue;
35992
35966
  }
35993
- } catch {}
35994
- return null;
35967
+ try {
35968
+ const destStat = lstatSync(destPath);
35969
+ if (destStat.isSymbolicLink()) {
35970
+ if (!options.dryRun) {
35971
+ unlinkSync2(destPath);
35972
+ }
35973
+ } else {
35974
+ result.skipped.push(destPath);
35975
+ continue;
35976
+ }
35977
+ } catch {}
35978
+ if (options.dryRun) {
35979
+ result.created.push(`${destPath} (dry-run)`);
35980
+ } else {
35981
+ try {
35982
+ linkDirSync(srcPath, destPath);
35983
+ result.created.push(destPath);
35984
+ } catch (e) {
35985
+ result.errors.push({
35986
+ path: destPath,
35987
+ error: `Failed to create symlink: ${e.message}`
35988
+ });
35989
+ }
35990
+ }
35991
+ }
35992
+ return result;
35995
35993
  }
35996
35994
  var home2 = homedir102();
35995
+ var SIGNET_BLOCK_START = "<!-- SIGNET:START -->";
35996
+ var SIGNET_BLOCK_END = "<!-- SIGNET:END -->";
35997
+ function stripSignetBlock(content) {
35998
+ const pattern = new RegExp(`${escapeRegex(SIGNET_BLOCK_START)}[\\s\\S]*?${escapeRegex(SIGNET_BLOCK_END)}\\n?`, "g");
35999
+ return content.replace(pattern, "");
36000
+ }
36001
+ function escapeRegex(str) {
36002
+ return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
36003
+ }
36004
+
36005
+ class BaseConnector {
36006
+ stripSignetBlock(content) {
36007
+ return stripSignetBlock(content);
36008
+ }
36009
+ stripLegacySignetBlock(basePath) {
36010
+ const agentsPath = join3(basePath, "AGENTS.md");
36011
+ if (!existsSync(agentsPath))
36012
+ return null;
36013
+ const raw = readFileSync(agentsPath, "utf-8");
36014
+ const cleaned = stripSignetBlock(raw);
36015
+ if (cleaned === raw)
36016
+ return null;
36017
+ const root = realpathSync2(basePath);
36018
+ const parent = realpathSync2(dirname2(agentsPath));
36019
+ const rel = relative(root, join3(parent, "AGENTS.md"));
36020
+ if (rel.startsWith("..") || isAbsolute(rel)) {
36021
+ throw new Error(`Target path escapes validated root: ${agentsPath}`);
36022
+ }
36023
+ const tmp = join3(basePath, `.${randomBytes(6).toString("hex")}.tmp`);
36024
+ try {
36025
+ writeFileSync(tmp, cleaned, "utf-8");
36026
+ renameSync(tmp, agentsPath);
36027
+ } catch (err) {
36028
+ try {
36029
+ unlinkSync(tmp);
36030
+ } catch {}
36031
+ throw err;
36032
+ }
36033
+ return agentsPath;
36034
+ }
36035
+ symlinkSkills(sourceDir, targetDir, options) {
36036
+ return symlinkSkills(sourceDir, targetDir, options);
36037
+ }
36038
+ generateHeader(sourcePath, targetName) {
36039
+ const name = targetName || this.name;
36040
+ const safe = (p22) => p22.replace(/[\n\r]/g, "");
36041
+ const root = dirname2(sourcePath);
36042
+ return `# Auto-generated from ${safe(sourcePath)}
36043
+ # Source: ${safe(sourcePath)}
36044
+ # Generated: ${new Date().toISOString()}
36045
+ # DO NOT EDIT - changes will be overwritten
36046
+ # Edit the source files in ${safe(root)}/ instead
36047
+
36048
+ `;
36049
+ }
36050
+ composeIdentityExtras(basePath) {
36051
+ const files = ["SOUL.md", "IDENTITY.md", "USER.md", "MEMORY.md"];
36052
+ const parts = [];
36053
+ for (const name of files) {
36054
+ const filePath = join3(basePath, name);
36055
+ if (!existsSync(filePath))
36056
+ continue;
36057
+ try {
36058
+ const content = readFileSync(filePath, "utf-8").trim();
36059
+ if (!content)
36060
+ continue;
36061
+ const header = name.replace(".md", "");
36062
+ parts.push(`
36063
+ ## ${header}
36064
+
36065
+ ${content}`);
36066
+ } catch {}
36067
+ }
36068
+ return parts.join(`
36069
+ `);
36070
+ }
36071
+ }
36072
+ function readTrimmedEnv2(name) {
36073
+ const value = process.env[name];
36074
+ if (typeof value !== "string")
36075
+ return;
36076
+ const trimmed = value.trim().replace(/[\r\n]+/g, "");
36077
+ return trimmed.length > 0 ? trimmed : undefined;
36078
+ }
36079
+ function readManagedTrimmedEnv(name) {
36080
+ return readTrimmedEnv2(name);
36081
+ }
36082
+ function resolveSignetApiKey() {
36083
+ return readManagedTrimmedEnv("SIGNET_API_KEY") ?? readManagedTrimmedEnv("SIGNET_TOKEN");
36084
+ }
35997
36085
 
35998
36086
  // src/index.ts
35999
36087
  var __dirname3 = dirname6(fileURLToPath3(import.meta.url));
36000
36088
  function getPluginSourceDir() {
36001
- const fromDist = join4(__dirname3, "..", "hermes-plugin");
36089
+ const fromDist = join6(__dirname3, "..", "hermes-plugin");
36002
36090
  if (existsSync2(fromDist))
36003
36091
  return fromDist;
36004
- const fromSrc = join4(__dirname3, "..", "..", "hermes-plugin");
36092
+ const fromSrc = join6(__dirname3, "..", "..", "hermes-plugin");
36005
36093
  if (existsSync2(fromSrc))
36006
36094
  return fromSrc;
36007
36095
  const connectorAssetsDir = process.env.SIGNET_CONNECTOR_ASSETS_DIR?.trim();
36008
36096
  if (connectorAssetsDir) {
36009
- const fromEmbeddedAssets = join4(connectorAssetsDir, "hermes-agent", "hermes-plugin");
36097
+ const fromEmbeddedAssets = join6(connectorAssetsDir, "hermes-agent", "hermes-plugin");
36010
36098
  if (existsSync2(fromEmbeddedAssets))
36011
36099
  return fromEmbeddedAssets;
36012
36100
  }
36013
36101
  const signetDir = process.env.SIGNET_DIR?.trim();
36014
36102
  if (signetDir) {
36015
- const fromConnectors = join4(signetDir, "runtime", "connectors", "hermes-agent", "hermes-plugin");
36103
+ const fromConnectors = join6(signetDir, "runtime", "connectors", "hermes-agent", "hermes-plugin");
36016
36104
  if (existsSync2(fromConnectors))
36017
36105
  return fromConnectors;
36018
36106
  }
@@ -36053,7 +36141,7 @@ function resolveContainedWritePath(targetPath, targetRoot) {
36053
36141
  missing.unshift(existing.slice(parent.length + 1));
36054
36142
  existing = parent;
36055
36143
  }
36056
- const candidate = join4(realpathSync3(existing), ...missing);
36144
+ const candidate = join6(realpathSync3(existing), ...missing);
36057
36145
  const rel = relative2(root, candidate);
36058
36146
  if (rel.startsWith("..") || isAbsolute2(rel)) {
36059
36147
  throw new Error(`Hermes target path escapes validated root: ${targetPath}`);
@@ -36061,13 +36149,13 @@ function resolveContainedWritePath(targetPath, targetRoot) {
36061
36149
  return candidate;
36062
36150
  }
36063
36151
  function getRepoPluginTargetDir(hermesRepo) {
36064
- return join4(hermesRepo, "plugins", "memory", "signet");
36152
+ return join6(hermesRepo, "plugins", "memory", "signet");
36065
36153
  }
36066
36154
  function getUserPluginTargetDir(hermesHome) {
36067
- return join4(hermesHome, "plugins", "signet");
36155
+ return join6(hermesHome, "plugins", "signet");
36068
36156
  }
36069
36157
  function getProviderBackupPath(hermesHome) {
36070
- return join4(hermesHome, PROVIDER_BACKUP_FILE);
36158
+ return join6(hermesHome, PROVIDER_BACKUP_FILE);
36071
36159
  }
36072
36160
  function installPlugin(targetDir, targetKind, targetRoot) {
36073
36161
  const writeDir = targetRoot ? resolveContainedWritePath(targetDir, targetRoot) : targetDir;
@@ -36075,8 +36163,8 @@ function installPlugin(targetDir, targetKind, targetRoot) {
36075
36163
  mkdirSync(writeDir, { recursive: true });
36076
36164
  const written = [];
36077
36165
  for (const file of PLUGIN_FILES) {
36078
- const src = join4(sourceDir, file);
36079
- const dst = targetRoot ? resolveContainedWritePath(join4(writeDir, file), targetRoot) : join4(writeDir, file);
36166
+ const src = join6(sourceDir, file);
36167
+ const dst = targetRoot ? resolveContainedWritePath(join6(writeDir, file), targetRoot) : join6(writeDir, file);
36080
36168
  if (existsSync2(src)) {
36081
36169
  writeFileSync2(dst, readFileSync2(src));
36082
36170
  written.push(dst);
@@ -36096,7 +36184,7 @@ function uninstallPlugin(targetDir, targetRoot) {
36096
36184
  return [targetDir];
36097
36185
  }
36098
36186
  function getConfigCandidates(hermesHome, targetRoot) {
36099
- const candidates = [join4(hermesHome, "config.yaml"), join4(hermesHome, "cli-config.yaml")];
36187
+ const candidates = [join6(hermesHome, "config.yaml"), join6(hermesHome, "cli-config.yaml")];
36100
36188
  return targetRoot ? candidates.map((candidate) => resolveContainedWritePath(candidate, targetRoot)) : candidates;
36101
36189
  }
36102
36190
  function resolveConfigPath(hermesHome, targetRoot) {
@@ -36104,7 +36192,7 @@ function resolveConfigPath(hermesHome, targetRoot) {
36104
36192
  if (existsSync2(candidate))
36105
36193
  return candidate;
36106
36194
  }
36107
- const fallback = join4(hermesHome, "config.yaml");
36195
+ const fallback = join6(hermesHome, "config.yaml");
36108
36196
  return targetRoot ? resolveContainedWritePath(fallback, targetRoot) : fallback;
36109
36197
  }
36110
36198
  function readConfigYaml(hermesHome, targetRoot) {
@@ -36386,9 +36474,9 @@ function pluginHasStaticToolSchemas(pluginFile) {
36386
36474
  }
36387
36475
  function getConnectorPackageJsonPath() {
36388
36476
  const candidates = [
36389
- join4(__dirname3, "..", "package.json"),
36390
- join4(__dirname3, "..", "..", "package.json"),
36391
- join4(__dirname3, "..", "..", "..", "package.json")
36477
+ join6(__dirname3, "..", "package.json"),
36478
+ join6(__dirname3, "..", "..", "package.json"),
36479
+ join6(__dirname3, "..", "..", "..", "package.json")
36392
36480
  ];
36393
36481
  return candidates.find((candidate) => existsSync2(candidate)) ?? null;
36394
36482
  }
@@ -36410,7 +36498,7 @@ function computePluginSourceHash() {
36410
36498
  const sourceDir = getPluginSourceDir();
36411
36499
  const hash = createHash5("sha256");
36412
36500
  for (const file of PLUGIN_FILES) {
36413
- const path = join4(sourceDir, file);
36501
+ const path = join6(sourceDir, file);
36414
36502
  hash.update(file);
36415
36503
  hash.update("\x00");
36416
36504
  if (existsSync2(path)) {
@@ -36421,7 +36509,7 @@ function computePluginSourceHash() {
36421
36509
  return hash.digest("hex");
36422
36510
  }
36423
36511
  function writeInstallMarker(targetDir, targetKind) {
36424
- const markerPath = join4(targetDir, INSTALL_MARKER_FILE);
36512
+ const markerPath = join6(targetDir, INSTALL_MARKER_FILE);
36425
36513
  const marker = {
36426
36514
  connector: "@signetai/connector-hermes-agent",
36427
36515
  schemaVersion: 1,
@@ -36435,7 +36523,7 @@ function writeInstallMarker(targetDir, targetKind) {
36435
36523
  return markerPath;
36436
36524
  }
36437
36525
  function readInstallMarker(targetDir) {
36438
- const markerPath = join4(targetDir, INSTALL_MARKER_FILE);
36526
+ const markerPath = join6(targetDir, INSTALL_MARKER_FILE);
36439
36527
  if (!existsSync2(markerPath))
36440
36528
  return null;
36441
36529
  try {
@@ -36453,7 +36541,7 @@ function pluginMarkerIsFresh(targetDir) {
36453
36541
  return marker !== null && marker.sourceHash === computePluginSourceHash();
36454
36542
  }
36455
36543
  function pluginLooksCurrent(targetDir) {
36456
- return pluginHasStaticToolSchemas(join4(targetDir, "__init__.py")) && pluginMarkerIsFresh(targetDir);
36544
+ return pluginHasStaticToolSchemas(join6(targetDir, "__init__.py")) && pluginMarkerIsFresh(targetDir);
36457
36545
  }
36458
36546
  function probeHermesProvider(hermesRepo) {
36459
36547
  if (!existsSync2(hermesRepo)) {
@@ -36482,7 +36570,7 @@ function probeHermesProvider(hermesRepo) {
36482
36570
  ];
36483
36571
  const errors = [];
36484
36572
  for (const candidate of candidates) {
36485
- const result = spawnSync(candidate.command, [...candidate.args, "-c", script], {
36573
+ const result = spawnSyncHidden(candidate.command, [...candidate.args, "-c", script], {
36486
36574
  cwd: hermesRepo,
36487
36575
  env: { ...process.env, PYTHONPATH: hermesRepo },
36488
36576
  encoding: "utf-8",
@@ -36637,8 +36725,8 @@ class HermesAgentConnector extends BaseConnector {
36637
36725
  throw new Error("Invalid Hermes profile name; use 1-64 letters, numbers, '.', '_' or '-'.");
36638
36726
  }
36639
36727
  const userHome2 = process.env.HOME?.trim() || homedir();
36640
- const profileHome = join4(userHome2, ".hermes", "profiles", this.target.profile);
36641
- return resolveContainedWritePath(profileHome, join4(userHome2, ".hermes", "profiles"));
36728
+ const profileHome = join6(userHome2, ".hermes", "profiles", this.target.profile);
36729
+ return resolveContainedWritePath(profileHome, join6(userHome2, ".hermes", "profiles"));
36642
36730
  }
36643
36731
  return resolveHermesHomePath();
36644
36732
  }
@@ -36654,7 +36742,7 @@ class HermesAgentConnector extends BaseConnector {
36654
36742
  const filesWritten = [];
36655
36743
  const configsPatched = [];
36656
36744
  const warnings = [];
36657
- const expandedBasePath = expandHome(basePath || join4(homedir(), ".agents"));
36745
+ const expandedBasePath = expandHome(basePath || join6(homedir(), ".agents"));
36658
36746
  const strippedAgentsPath = this.target?.profile ? null : this.stripLegacySignetBlock(expandedBasePath);
36659
36747
  if (strippedAgentsPath !== null) {
36660
36748
  filesWritten.push(strippedAgentsPath);
@@ -36691,7 +36779,7 @@ class HermesAgentConnector extends BaseConnector {
36691
36779
  warnings
36692
36780
  };
36693
36781
  }
36694
- const envPath = options.profile ? resolveContainedWritePath(join4(hermesHome, ".env"), hermesHome) : join4(hermesHome, ".env");
36782
+ const envPath = options.profile ? resolveContainedWritePath(join6(hermesHome, ".env"), hermesHome) : join6(hermesHome, ".env");
36695
36783
  let configuredSignetAgentId = "default";
36696
36784
  const configuredDaemonUrl = (process.env.SIGNET_DAEMON_URL?.trim() || "http://127.0.0.1:3850").replace(/[\r\n]+/g, "");
36697
36785
  try {
@@ -36720,7 +36808,7 @@ class HermesAgentConnector extends BaseConnector {
36720
36808
  if (explicitAgentWorkspace) {
36721
36809
  signetVars.SIGNET_AGENT_WORKSPACE = expandHome(explicitAgentWorkspace).replace(/[\r\n]+/g, "");
36722
36810
  } else if (signetAgentId && signetAgentId !== "default") {
36723
- const agentWorkspace = join4(expandedBasePath, "agents", signetAgentId);
36811
+ const agentWorkspace = join6(expandedBasePath, "agents", signetAgentId);
36724
36812
  if (existsSync2(agentWorkspace)) {
36725
36813
  signetVars.SIGNET_AGENT_WORKSPACE = agentWorkspace;
36726
36814
  }
@@ -36820,7 +36908,7 @@ ${key}=${value}
36820
36908
  if (providerConfig.backupPath) {
36821
36909
  filesRemoved.push(providerConfig.backupPath);
36822
36910
  }
36823
- const envPath = this.target?.profile ? resolveContainedWritePath(join4(hermesHome, ".env"), hermesHome) : join4(hermesHome, ".env");
36911
+ const envPath = this.target?.profile ? resolveContainedWritePath(join6(hermesHome, ".env"), hermesHome) : join6(hermesHome, ".env");
36824
36912
  if (existsSync2(envPath)) {
36825
36913
  try {
36826
36914
  let envContent = readFileSync2(envPath, "utf-8");