@hasna/skills 0.5.3 → 0.5.4

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.
package/bin/index.js CHANGED
@@ -20,12 +20,14 @@ var __toESM = (mod, isNodeMode, target) => {
20
20
  }
21
21
  target = mod != null ? __create(__getProtoOf(mod)) : {};
22
22
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
23
- for (let key of __getOwnPropNames(mod))
24
- if (!__hasOwnProp.call(to, key))
25
- __defProp(to, key, {
26
- get: __accessProp.bind(mod, key),
27
- enumerable: true
28
- });
23
+ if (mod && typeof mod === "object" || typeof mod === "function") {
24
+ for (let key of __getOwnPropNames(mod))
25
+ if (!__hasOwnProp.call(to, key))
26
+ __defProp(to, key, {
27
+ get: __accessProp.bind(mod, key),
28
+ enumerable: true
29
+ });
30
+ }
29
31
  if (canCache)
30
32
  cache.set(mod, to);
31
33
  return to;
@@ -48,7 +50,7 @@ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
48
50
  var __require = import.meta.require;
49
51
 
50
52
  // ../../node_modules/.bun/react@18.3.1/node_modules/react/cjs/react.development.js
51
- var require_react_development = __commonJS((exports, module) => {
53
+ var require_react_development = __commonJS(function(exports, module) {
52
54
  if (true) {
53
55
  (function() {
54
56
  if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
@@ -1851,7 +1853,7 @@ Check the top-level render call using <` + parentName + ">.";
1851
1853
  });
1852
1854
 
1853
1855
  // ../../node_modules/.bun/react@18.3.1/node_modules/react/index.js
1854
- var require_react = __commonJS((exports, module) => {
1856
+ var require_react = __commonJS(function(exports, module) {
1855
1857
  var react_development = __toESM(require_react_development());
1856
1858
  if (false) {} else {
1857
1859
  module.exports = react_development;
@@ -1859,7 +1861,7 @@ var require_react = __commonJS((exports, module) => {
1859
1861
  });
1860
1862
 
1861
1863
  // ../../node_modules/.bun/signal-exit@3.0.7/node_modules/signal-exit/signals.js
1862
- var require_signals = __commonJS((exports, module) => {
1864
+ var require_signals = __commonJS(function(exports, module) {
1863
1865
  module.exports = [
1864
1866
  "SIGABRT",
1865
1867
  "SIGALRM",
@@ -1876,7 +1878,7 @@ var require_signals = __commonJS((exports, module) => {
1876
1878
  });
1877
1879
 
1878
1880
  // ../../node_modules/.bun/signal-exit@3.0.7/node_modules/signal-exit/index.js
1879
- var require_signal_exit = __commonJS((exports, module) => {
1881
+ var require_signal_exit = __commonJS(function(exports, module) {
1880
1882
  var process3 = global.process;
1881
1883
  var processOk = function(process4) {
1882
1884
  return process4 && typeof process4 === "object" && typeof process4.removeListener === "function" && typeof process4.emit === "function" && typeof process4.reallyExit === "function" && typeof process4.listeners === "function" && typeof process4.kill === "function" && typeof process4.pid === "number" && typeof process4.on === "function";
@@ -2029,7 +2031,7 @@ var require_signal_exit = __commonJS((exports, module) => {
2029
2031
  });
2030
2032
 
2031
2033
  // ../../node_modules/.bun/scheduler@0.23.2/node_modules/scheduler/cjs/scheduler.development.js
2032
- var require_scheduler_development = __commonJS((exports) => {
2034
+ var require_scheduler_development = __commonJS(function(exports) {
2033
2035
  if (true) {
2034
2036
  (function() {
2035
2037
  if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
@@ -2472,7 +2474,7 @@ var require_scheduler_development = __commonJS((exports) => {
2472
2474
  });
2473
2475
 
2474
2476
  // ../../node_modules/.bun/scheduler@0.23.2/node_modules/scheduler/index.js
2475
- var require_scheduler = __commonJS((exports, module) => {
2477
+ var require_scheduler = __commonJS(function(exports, module) {
2476
2478
  var scheduler_development = __toESM(require_scheduler_development());
2477
2479
  if (false) {} else {
2478
2480
  module.exports = scheduler_development;
@@ -2480,7 +2482,7 @@ var require_scheduler = __commonJS((exports, module) => {
2480
2482
  });
2481
2483
 
2482
2484
  // ../../node_modules/.bun/react-reconciler@0.29.2+f4eacebf2041cd4f/node_modules/react-reconciler/cjs/react-reconciler.development.js
2483
- var require_react_reconciler_development = __commonJS((exports, module) => {
2485
+ var require_react_reconciler_development = __commonJS(function(exports, module) {
2484
2486
  var React = __toESM(require_react());
2485
2487
  var Scheduler = __toESM(require_scheduler());
2486
2488
  if (true) {
@@ -17226,14 +17228,14 @@ Check the render method of \`` + ownerName + "`.";
17226
17228
  });
17227
17229
 
17228
17230
  // ../../node_modules/.bun/react-reconciler@0.29.2+f4eacebf2041cd4f/node_modules/react-reconciler/index.js
17229
- var require_react_reconciler = __commonJS((exports, module) => {
17231
+ var require_react_reconciler = __commonJS(function(exports, module) {
17230
17232
  if (false) {} else {
17231
17233
  module.exports = require_react_reconciler_development();
17232
17234
  }
17233
17235
  });
17234
17236
 
17235
17237
  // ../../node_modules/.bun/react-reconciler@0.29.2+f4eacebf2041cd4f/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js
17236
- var require_react_reconciler_constants_development = __commonJS((exports) => {
17238
+ var require_react_reconciler_constants_development = __commonJS(function(exports) {
17237
17239
  if (true) {
17238
17240
  (function() {
17239
17241
  var SyncLane = 1;
@@ -17257,7 +17259,7 @@ var require_react_reconciler_constants_development = __commonJS((exports) => {
17257
17259
  });
17258
17260
 
17259
17261
  // ../../node_modules/.bun/react-reconciler@0.29.2+f4eacebf2041cd4f/node_modules/react-reconciler/constants.js
17260
- var require_constants = __commonJS((exports, module) => {
17262
+ var require_constants = __commonJS(function(exports, module) {
17261
17263
  if (false) {} else {
17262
17264
  module.exports = require_react_reconciler_constants_development();
17263
17265
  }
@@ -17317,7 +17319,7 @@ var init_devtools_window_polyfill = __esm(() => {
17317
17319
  });
17318
17320
 
17319
17321
  // ../../node_modules/.bun/react-devtools-core@7.0.1/node_modules/react-devtools-core/dist/backend.js
17320
- var require_backend = __commonJS((exports, module) => {
17322
+ var require_backend = __commonJS(function(exports, module) {
17321
17323
  (function webpackUniversalModuleDefinition(root, factory) {
17322
17324
  if (typeof exports === "object" && typeof module === "object")
17323
17325
  module.exports = factory();
@@ -34120,7 +34122,7 @@ var init_devtools = __esm(() => {
34120
34122
  });
34121
34123
 
34122
34124
  // ../../node_modules/.bun/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json
34123
- var require_boxes = __commonJS((exports, module) => {
34125
+ var require_boxes = __commonJS(function(exports, module) {
34124
34126
  module.exports = {
34125
34127
  single: {
34126
34128
  topLeft: "\u250C",
@@ -34206,7 +34208,7 @@ var require_boxes = __commonJS((exports, module) => {
34206
34208
  });
34207
34209
 
34208
34210
  // ../../node_modules/.bun/cli-boxes@3.0.0/node_modules/cli-boxes/index.js
34209
- var require_cli_boxes = __commonJS((exports, module) => {
34211
+ var require_cli_boxes = __commonJS(function(exports, module) {
34210
34212
  var cliBoxes = require_boxes();
34211
34213
  module.exports = cliBoxes;
34212
34214
  module.exports.default = cliBoxes;
@@ -34702,7 +34704,7 @@ var init_source = __esm(() => {
34702
34704
  });
34703
34705
 
34704
34706
  // ../../node_modules/.bun/mimic-fn@2.1.0/node_modules/mimic-fn/index.js
34705
- var require_mimic_fn = __commonJS((exports, module) => {
34707
+ var require_mimic_fn = __commonJS(function(exports, module) {
34706
34708
  var mimicFn = (to, from) => {
34707
34709
  for (const prop of Reflect.ownKeys(from)) {
34708
34710
  Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
@@ -34714,7 +34716,7 @@ var require_mimic_fn = __commonJS((exports, module) => {
34714
34716
  });
34715
34717
 
34716
34718
  // ../../node_modules/.bun/onetime@5.1.2/node_modules/onetime/index.js
34717
- var require_onetime = __commonJS((exports, module) => {
34719
+ var require_onetime = __commonJS(function(exports, module) {
34718
34720
  var mimicFn = require_mimic_fn();
34719
34721
  var calledFunctions = new WeakMap;
34720
34722
  var onetime = (function_, options = {}) => {
@@ -34749,7 +34751,7 @@ var require_onetime = __commonJS((exports, module) => {
34749
34751
  });
34750
34752
 
34751
34753
  // ../../node_modules/.bun/escape-string-regexp@2.0.0/node_modules/escape-string-regexp/index.js
34752
- var require_escape_string_regexp = __commonJS((exports, module) => {
34754
+ var require_escape_string_regexp = __commonJS(function(exports, module) {
34753
34755
  var matchOperatorsRegex = /[|\\{}()[\]^$+*?.-]/g;
34754
34756
  module.exports = (string) => {
34755
34757
  if (typeof string !== "string") {
@@ -34760,7 +34762,7 @@ var require_escape_string_regexp = __commonJS((exports, module) => {
34760
34762
  });
34761
34763
 
34762
34764
  // ../../node_modules/.bun/stack-utils@2.0.6/node_modules/stack-utils/index.js
34763
- var require_stack_utils = __commonJS((exports, module) => {
34765
+ var require_stack_utils = __commonJS(function(exports, module) {
34764
34766
  var escapeStringRegexp = require_escape_string_regexp();
34765
34767
  var cwd = typeof process === "object" && process && typeof process.cwd === "function" ? process.cwd() : ".";
34766
34768
  var natives = [].concat(__require("module").builtinModules, "bootstrap_node", "node").map((n) => new RegExp(`(?:\\((?:node:)?${n}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${n}(?:\\.js)?:\\d+:\\d+$)`));
@@ -34998,7 +35000,7 @@ var require_stack_utils = __commonJS((exports, module) => {
34998
35000
  });
34999
35001
 
35000
35002
  // ../../node_modules/.bun/commander@12.1.0/node_modules/commander/lib/error.js
35001
- var require_error = __commonJS((exports) => {
35003
+ var require_error = __commonJS(function(exports) {
35002
35004
  class CommanderError extends Error {
35003
35005
  constructor(exitCode, code, message) {
35004
35006
  super(message);
@@ -35022,7 +35024,7 @@ var require_error = __commonJS((exports) => {
35022
35024
  });
35023
35025
 
35024
35026
  // ../../node_modules/.bun/commander@12.1.0/node_modules/commander/lib/argument.js
35025
- var require_argument = __commonJS((exports) => {
35027
+ var require_argument = __commonJS(function(exports) {
35026
35028
  var { InvalidArgumentError } = require_error();
35027
35029
 
35028
35030
  class Argument {
@@ -35101,7 +35103,7 @@ var require_argument = __commonJS((exports) => {
35101
35103
  });
35102
35104
 
35103
35105
  // ../../node_modules/.bun/commander@12.1.0/node_modules/commander/lib/help.js
35104
- var require_help = __commonJS((exports) => {
35106
+ var require_help = __commonJS(function(exports) {
35105
35107
  var { humanReadableArgName } = require_argument();
35106
35108
 
35107
35109
  class Help {
@@ -35350,7 +35352,7 @@ var require_help = __commonJS((exports) => {
35350
35352
  });
35351
35353
 
35352
35354
  // ../../node_modules/.bun/commander@12.1.0/node_modules/commander/lib/option.js
35353
- var require_option = __commonJS((exports) => {
35355
+ var require_option = __commonJS(function(exports) {
35354
35356
  var { InvalidArgumentError } = require_error();
35355
35357
 
35356
35358
  class Option {
@@ -35501,7 +35503,7 @@ var require_option = __commonJS((exports) => {
35501
35503
  });
35502
35504
 
35503
35505
  // ../../node_modules/.bun/commander@12.1.0/node_modules/commander/lib/suggestSimilar.js
35504
- var require_suggestSimilar = __commonJS((exports) => {
35506
+ var require_suggestSimilar = __commonJS(function(exports) {
35505
35507
  var maxDistance = 3;
35506
35508
  function editDistance(a, b) {
35507
35509
  if (Math.abs(a.length - b.length) > maxDistance)
@@ -35574,7 +35576,7 @@ var require_suggestSimilar = __commonJS((exports) => {
35574
35576
  });
35575
35577
 
35576
35578
  // ../../node_modules/.bun/commander@12.1.0/node_modules/commander/lib/command.js
35577
- var require_command = __commonJS((exports) => {
35579
+ var require_command = __commonJS(function(exports) {
35578
35580
  var EventEmitter3 = __require("events").EventEmitter;
35579
35581
  var childProcess = __require("child_process");
35580
35582
  var path = __require("path");
@@ -36817,7 +36819,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
36817
36819
  });
36818
36820
 
36819
36821
  // ../../node_modules/.bun/commander@12.1.0/node_modules/commander/index.js
36820
- var require_commander = __commonJS((exports) => {
36822
+ var require_commander = __commonJS(function(exports) {
36821
36823
  var { Argument } = require_argument();
36822
36824
  var { Command } = require_command();
36823
36825
  var { CommanderError, InvalidArgumentError } = require_error();
@@ -36860,7 +36862,7 @@ var package_default;
36860
36862
  var init_package = __esm(() => {
36861
36863
  package_default = {
36862
36864
  name: "@hasna/skills",
36863
- version: "0.5.3",
36865
+ version: "0.5.4",
36864
36866
  description: "Skills library for AI coding agents",
36865
36867
  type: "module",
36866
36868
  bin: {
@@ -36984,7 +36986,7 @@ var init_package = __esm(() => {
36984
36986
  });
36985
36987
 
36986
36988
  // ../../node_modules/.bun/react@18.3.1/node_modules/react/cjs/react-jsx-dev-runtime.development.js
36987
- var require_react_jsx_dev_runtime_development = __commonJS((exports) => {
36989
+ var require_react_jsx_dev_runtime_development = __commonJS(function(exports) {
36988
36990
  var React13 = __toESM(require_react());
36989
36991
  if (true) {
36990
36992
  (function() {
@@ -37865,7 +37867,7 @@ Check the top-level render call using <` + parentName + ">.";
37865
37867
  });
37866
37868
 
37867
37869
  // ../../node_modules/.bun/react@18.3.1/node_modules/react/jsx-dev-runtime.js
37868
- var require_jsx_dev_runtime = __commonJS((exports, module) => {
37870
+ var require_jsx_dev_runtime = __commonJS(function(exports, module) {
37869
37871
  var react_jsx_dev_runtime_development = __toESM(require_react_jsx_dev_runtime_development());
37870
37872
  if (false) {} else {
37871
37873
  module.exports = react_jsx_dev_runtime_development;
@@ -39322,39 +39324,6 @@ var init_skill_validation = __esm(() => {
39322
39324
  VALID_PROVENANCE_SOURCES = new Set(["official", "custom", "remote", "private", "private-hosted", "upstream", "extension"]);
39323
39325
  VALID_BIN_COMMAND = /^[a-z0-9][a-z0-9._-]*$/;
39324
39326
  });
39325
-
39326
- // src/lib/skill-entry-path.ts
39327
- class SkillEntryPaths {
39328
- files = new Set;
39329
- directories = new Set;
39330
- add(path, maxBytes, invalid, limit) {
39331
- if (path.length > maxBytes)
39332
- limit();
39333
- const encoded = new TextEncoder().encode(path);
39334
- if (encoded.byteLength > maxBytes)
39335
- limit();
39336
- if (new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode(encoded) !== path)
39337
- invalid("Invalid UTF-8 entry path");
39338
- if (!path || /[\\:\x00-\x1f\x7f]/u.test(path))
39339
- invalid("Unsafe entry path");
39340
- if (path.split("/").some((segment) => !segment || segment === "." || segment === ".."))
39341
- invalid("Unsafe entry path segment");
39342
- const key = path.normalize("NFC").toLowerCase().normalize("NFC");
39343
- if (this.files.has(key) || this.directories.has(key))
39344
- invalid("Duplicate or conflicting entry path");
39345
- const parents = key.split("/");
39346
- parents.pop();
39347
- while (parents.length) {
39348
- const parent = parents.join("/");
39349
- if (this.files.has(parent))
39350
- invalid("Conflicting entry file ancestor");
39351
- this.directories.add(parent);
39352
- parents.pop();
39353
- }
39354
- this.files.add(key);
39355
- }
39356
- }
39357
-
39358
39327
  // src/lib/skill-hash.ts
39359
39328
  import { createHash } from "crypto";
39360
39329
  import { existsSync as existsSync9, readdirSync as readdirSync4, readFileSync as readFileSync5, statSync as statSync4 } from "fs";
@@ -40948,21 +40917,21 @@ var init_search = __esm(() => {
40948
40917
  // src/lib/registry.ts
40949
40918
  var exports_registry = {};
40950
40919
  __export(exports_registry, {
40951
- searchSkills: () => searchSkills,
40952
- loadRegistryProfile: () => loadRegistryProfile,
40953
- loadRegistry: () => loadRegistry,
40954
- loadBasicRegistry: () => loadBasicRegistry,
40955
- isBasicSkillName: () => isBasicSkillName,
40956
- getSkillsByTag: () => getSkillsByTag,
40957
- getSkillsByCategory: () => getSkillsByCategory,
40958
- getSkill: () => getSkill,
40959
- getAllTags: () => getAllTags,
40960
- findSimilarSkills: () => findSimilarSkills,
40961
- findExtensionSkillPath: () => findExtensionSkillPath,
40962
- clearRegistryCache: () => clearRegistryCache,
40963
- SKILLS: () => SKILLS,
40920
+ BASIC_SKILL_NAMES: () => BASIC_SKILL_NAMES,
40964
40921
  CATEGORIES: () => CATEGORIES,
40965
- BASIC_SKILL_NAMES: () => BASIC_SKILL_NAMES
40922
+ SKILLS: () => SKILLS,
40923
+ clearRegistryCache: () => clearRegistryCache,
40924
+ findExtensionSkillPath: () => findExtensionSkillPath,
40925
+ findSimilarSkills: () => findSimilarSkills,
40926
+ getAllTags: () => getAllTags,
40927
+ getSkill: () => getSkill,
40928
+ getSkillsByCategory: () => getSkillsByCategory,
40929
+ getSkillsByTag: () => getSkillsByTag,
40930
+ isBasicSkillName: () => isBasicSkillName,
40931
+ loadBasicRegistry: () => loadBasicRegistry,
40932
+ loadRegistry: () => loadRegistry,
40933
+ loadRegistryProfile: () => loadRegistryProfile,
40934
+ searchSkills: () => searchSkills
40966
40935
  });
40967
40936
  import { existsSync as existsSync12, readFileSync as readFileSync7, readdirSync as readdirSync6 } from "fs";
40968
40937
  import { join as join12 } from "path";
@@ -41139,7 +41108,7 @@ var init_registry = __esm(() => {
41139
41108
  });
41140
41109
 
41141
41110
  // ../../node_modules/.bun/cli-spinners@2.9.2/node_modules/cli-spinners/spinners.json
41142
- var require_spinners = __commonJS((exports, module) => {
41111
+ var require_spinners = __commonJS(function(exports, module) {
41143
41112
  module.exports = {
41144
41113
  dots: {
41145
41114
  interval: 80,
@@ -42765,7 +42734,7 @@ var require_spinners = __commonJS((exports, module) => {
42765
42734
  });
42766
42735
 
42767
42736
  // ../../node_modules/.bun/cli-spinners@2.9.2/node_modules/cli-spinners/index.js
42768
- var require_cli_spinners = __commonJS((exports, module) => {
42737
+ var require_cli_spinners = __commonJS(function(exports, module) {
42769
42738
  var spinners = Object.assign({}, require_spinners());
42770
42739
  var spinnersList = Object.keys(spinners);
42771
42740
  Object.defineProperty(spinners, "random", {
@@ -43395,30 +43364,30 @@ var init_project_state = __esm(() => {
43395
43364
  // src/lib/installer.ts
43396
43365
  var exports_installer = {};
43397
43366
  __export(exports_installer, {
43398
- unpinSkill: () => unpinSkill,
43399
- skillExists: () => skillExists,
43400
- resolveAgents: () => resolveAgents,
43401
- removeSkillForAgent: () => removeSkillForAgent,
43402
- removeSkill: () => removeSkill,
43403
- pinSkill: () => pinSkill,
43404
- installSkills: () => installSkills,
43405
- installSkillSource: () => installSkillSource,
43406
- installSkillManifest: () => installSkillManifest,
43407
- installSkillForAgent: () => installSkillForAgent,
43408
- installSkill: () => installSkill,
43409
- installRemoteSkill: () => installRemoteSkill,
43410
- getSkillPath: () => getSkillPath,
43411
- getPinnedSkills: () => getPinnedSkills,
43412
- getInstalledSkills: () => getInstalledSkills,
43413
- getInstallMeta: () => getInstallMeta,
43414
- getDisabledSkills: () => getDisabledSkills,
43415
- getAgentSkillsDir: () => getAgentSkillsDir,
43416
- getAgentSkillPath: () => getAgentSkillPath,
43417
- enableSkill: () => enableSkill,
43418
- disableSkill: () => disableSkill,
43419
- createLocalSkillManifest: () => createLocalSkillManifest,
43367
+ AGENT_LABELS: () => AGENT_LABELS,
43420
43368
  AGENT_TARGETS: () => AGENT_TARGETS,
43421
- AGENT_LABELS: () => AGENT_LABELS
43369
+ createLocalSkillManifest: () => createLocalSkillManifest,
43370
+ disableSkill: () => disableSkill,
43371
+ enableSkill: () => enableSkill,
43372
+ getAgentSkillPath: () => getAgentSkillPath,
43373
+ getAgentSkillsDir: () => getAgentSkillsDir,
43374
+ getDisabledSkills: () => getDisabledSkills,
43375
+ getInstallMeta: () => getInstallMeta,
43376
+ getInstalledSkills: () => getInstalledSkills,
43377
+ getPinnedSkills: () => getPinnedSkills,
43378
+ getSkillPath: () => getSkillPath,
43379
+ installRemoteSkill: () => installRemoteSkill,
43380
+ installSkill: () => installSkill,
43381
+ installSkillForAgent: () => installSkillForAgent,
43382
+ installSkillManifest: () => installSkillManifest,
43383
+ installSkillSource: () => installSkillSource,
43384
+ installSkills: () => installSkills,
43385
+ pinSkill: () => pinSkill,
43386
+ removeSkill: () => removeSkill,
43387
+ removeSkillForAgent: () => removeSkillForAgent,
43388
+ resolveAgents: () => resolveAgents,
43389
+ skillExists: () => skillExists,
43390
+ unpinSkill: () => unpinSkill
43422
43391
  });
43423
43392
  import { existsSync as existsSync16, readFileSync as readFileSync10, rmSync as rmSync4 } from "fs";
43424
43393
  import { dirname as dirname5, join as join16 } from "path";
@@ -43841,7 +43810,7 @@ import { isIP as isIP2 } from "net";
43841
43810
  import { spawnSync } from "child_process";
43842
43811
  import { closeSync, fstatSync, openSync, readFileSync as readFileSync11 } from "fs";
43843
43812
  import { O_NOFOLLOW, O_NONBLOCK, O_RDONLY } from "constants";
43844
- import { createRequire } from "module";
43813
+ import { createRequire as createRequire2 } from "module";
43845
43814
  import { hostname as osHostname } from "os";
43846
43815
  import { isAbsolute as isAbsolute3, join as join17 } from "path";
43847
43816
  function envToken(name) {
@@ -43962,7 +43931,7 @@ function readAppConfigFile(path) {
43962
43931
  const uid = process.getuid?.() ?? process.geteuid?.();
43963
43932
  if (uid !== undefined && before2.uid !== uid)
43964
43933
  unsafe("the file is not owned by the current user");
43965
- if (before2.size > MAX_CREDENTIAL_FILE_BYTES)
43934
+ if (before2.size > MAX_CREDENTIAL_FILE_BYTES2)
43966
43935
  unsafe("the file exceeds the size limit");
43967
43936
  const bytes = readFileSync11(fd);
43968
43937
  const after2 = fstatSync(fd);
@@ -44046,13 +44015,13 @@ function sealCredential(fields) {
44046
44015
  configurable: false
44047
44016
  });
44048
44017
  }
44049
- Object.defineProperty(sealed, INSPECT_CUSTOM, {
44018
+ Object.defineProperty(sealed, INSPECT_CUSTOM2, {
44050
44019
  value: () => ({ ...visible, apiKey: "[redacted]" }),
44051
44020
  enumerable: false,
44052
44021
  writable: false,
44053
44022
  configurable: false
44054
44023
  });
44055
- Object.defineProperty(sealed, CREDENTIAL_SEAL, {
44024
+ Object.defineProperty(sealed, CREDENTIAL_SEAL2, {
44056
44025
  value: true,
44057
44026
  enumerable: false,
44058
44027
  writable: false,
@@ -44071,7 +44040,7 @@ function firstEnvValue(env3, keys2) {
44071
44040
  return null;
44072
44041
  }
44073
44042
  function isAmbientEnvironment(env3) {
44074
- return env3 === process.env || env3[AMBIENT_ENVIRONMENT] === true;
44043
+ return env3 === process.env || env3[AMBIENT_ENVIRONMENT2] === true;
44075
44044
  }
44076
44045
  function defaultKeychainRunner(argv) {
44077
44046
  const result2 = spawnSync(KEYCHAIN_SECURITY_BIN, [...argv], {
@@ -44165,7 +44134,7 @@ function snapshotClientEnvironment(name, env3) {
44165
44134
  snapshot[key] = descriptor.value;
44166
44135
  }
44167
44136
  if (ambient) {
44168
- Object.defineProperty(snapshot, AMBIENT_ENVIRONMENT, {
44137
+ Object.defineProperty(snapshot, AMBIENT_ENVIRONMENT2, {
44169
44138
  value: true,
44170
44139
  enumerable: false,
44171
44140
  writable: false,
@@ -44322,7 +44291,7 @@ async function completePointerCredential(name, pointerResolution, env3 = process
44322
44291
  }
44323
44292
  let secretsSdk;
44324
44293
  try {
44325
- secretsSdk = requireSecretsSdk(SECRETS_PACKAGE_SPECIFIER);
44294
+ secretsSdk = requireSecretsSdk2(SECRETS_PACKAGE_SPECIFIER2);
44326
44295
  } catch {
44327
44296
  throw new CredentialResolutionError(name, `${pointerEnvKey} names vault item '${vaultKey}', but the secrets SDK (@hasna/secrets) is not installed ` + `in this process. A vault pointer is TERMINAL: install @hasna/secrets to resolve it, or unset ${pointerEnvKey}.`, [pointerEnvKey]);
44328
44297
  }
@@ -44468,7 +44437,7 @@ function toV1BaseUrl(apiUrl) {
44468
44437
  url.pathname = `${path}/v1`;
44469
44438
  return url.toString().replace(/\/+$/, "");
44470
44439
  }
44471
- var CREDENTIAL_PROFILE_ENV_KEY = "HASNA_PROFILE", CredentialResolutionError, CredentialFileUnsafeError, HASNA_HOME_ENV_KEY = "HASNA_HOME", HASNA_CONFIG_HOME_ENV_KEY = "HASNA_CONFIG_HOME", KEYCHAIN_STATION_ENV_KEY = "HASNA_STATION", HASNA_HOME_DIR = ".hasna", CONFIG_SUBDIR = "config", CREDENTIALS_FILE = "credentials", KEYCHAIN_SECURITY_BIN = "/usr/bin/security", KEYCHAIN_SERVICE_PREFIX = "hasna.credentials", KEYCHAIN_ITEM_NOT_FOUND_STATUS = 44, KEYCHAIN_SPAWN_TIMEOUT_MS = 1e4, MAX_CREDENTIAL_FILE_BYTES, SAFE_APP_SLUG, SAFE_PROFILE, ILLEGAL_IN_HEADER_VALUE, VAULT_POINTER_SHAPE, CREDENTIAL_SHAPED_KEY, INSPECT_CUSTOM, CREDENTIAL_SEAL, AMBIENT_ENVIRONMENT, SECRETS_PACKAGE_SPECIFIER, requireSecretsSdk, DEFAULT_FLEET_GATEWAY_ORIGIN = "https://api.hasna.com", ASCII_CONTROL_PATTERN, DNS_LABEL_PATTERN, IDEMPOTENT_METHODS, AUTHORITY_OVERRIDE_HEADERS;
44440
+ var CREDENTIAL_PROFILE_ENV_KEY = "HASNA_PROFILE", CredentialResolutionError, CredentialFileUnsafeError, HASNA_HOME_ENV_KEY = "HASNA_HOME", HASNA_CONFIG_HOME_ENV_KEY = "HASNA_CONFIG_HOME", KEYCHAIN_STATION_ENV_KEY = "HASNA_STATION", HASNA_HOME_DIR = ".hasna", CONFIG_SUBDIR = "config", CREDENTIALS_FILE = "credentials", KEYCHAIN_SECURITY_BIN = "/usr/bin/security", KEYCHAIN_SERVICE_PREFIX = "hasna.credentials", KEYCHAIN_ITEM_NOT_FOUND_STATUS = 44, KEYCHAIN_SPAWN_TIMEOUT_MS = 1e4, MAX_CREDENTIAL_FILE_BYTES2, SAFE_APP_SLUG, SAFE_PROFILE, ILLEGAL_IN_HEADER_VALUE, VAULT_POINTER_SHAPE, CREDENTIAL_SHAPED_KEY, INSPECT_CUSTOM2, CREDENTIAL_SEAL2, AMBIENT_ENVIRONMENT2, SECRETS_PACKAGE_SPECIFIER2, requireSecretsSdk2, DEFAULT_FLEET_GATEWAY_ORIGIN = "https://api.hasna.com", ASCII_CONTROL_PATTERN, DNS_LABEL_PATTERN, IDEMPOTENT_METHODS2, AUTHORITY_OVERRIDE_HEADERS2;
44472
44441
  var init_transport = __esm(() => {
44473
44442
  CredentialResolutionError = class CredentialResolutionError extends Error {
44474
44443
  appName;
@@ -44488,21 +44457,21 @@ var init_transport = __esm(() => {
44488
44457
  this.path = path;
44489
44458
  }
44490
44459
  };
44491
- MAX_CREDENTIAL_FILE_BYTES = 64 * 1024;
44460
+ MAX_CREDENTIAL_FILE_BYTES2 = 64 * 1024;
44492
44461
  SAFE_APP_SLUG = /^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/;
44493
44462
  SAFE_PROFILE = /^[A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?$/;
44494
44463
  ILLEGAL_IN_HEADER_VALUE = /[^\t\x20-\x7e]/;
44495
44464
  VAULT_POINTER_SHAPE = /^[a-z0-9][a-z0-9-]*(?:\/[a-z0-9][a-z0-9-_.]*){2,}$/;
44496
44465
  CREDENTIAL_SHAPED_KEY = /(?:^|_)(?:API_KEY|KEY|TOKEN|SECRET|PASSWORD|PASSWD|CREDENTIAL|AUTH)(?:_|$)/;
44497
- INSPECT_CUSTOM = Symbol.for("nodejs.util.inspect.custom");
44498
- CREDENTIAL_SEAL = Symbol.for("hasna:contracts:sealedCredential");
44499
- AMBIENT_ENVIRONMENT = Symbol.for("hasna:contracts:ambientClientEnvironment");
44500
- SECRETS_PACKAGE_SPECIFIER = "@hasna/" + "secrets";
44501
- requireSecretsSdk = createRequire(import.meta.url);
44466
+ INSPECT_CUSTOM2 = Symbol.for("nodejs.util.inspect.custom");
44467
+ CREDENTIAL_SEAL2 = Symbol.for("hasna:contracts:sealedCredential");
44468
+ AMBIENT_ENVIRONMENT2 = Symbol.for("hasna:contracts:ambientClientEnvironment");
44469
+ SECRETS_PACKAGE_SPECIFIER2 = "@hasna/" + "secrets";
44470
+ requireSecretsSdk2 = createRequire2(import.meta.url);
44502
44471
  ASCII_CONTROL_PATTERN = /[\u0000-\u001f\u007f]/;
44503
44472
  DNS_LABEL_PATTERN = /^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/;
44504
- IDEMPOTENT_METHODS = new Set(["GET", "HEAD", "PUT", "DELETE", "OPTIONS"]);
44505
- AUTHORITY_OVERRIDE_HEADERS = new Set([
44473
+ IDEMPOTENT_METHODS2 = new Set(["GET", "HEAD", "PUT", "DELETE", "OPTIONS"]);
44474
+ AUTHORITY_OVERRIDE_HEADERS2 = new Set([
44506
44475
  "host",
44507
44476
  ":authority",
44508
44477
  "forwarded",
@@ -44631,31 +44600,31 @@ var init_local_opt_in = __esm(() => {
44631
44600
  // src/lib/fleet-credentials.ts
44632
44601
  var exports_fleet_credentials = {};
44633
44602
  __export(exports_fleet_credentials, {
44634
- skillsCredentialOrReason: () => skillsCredentialOrReason,
44635
- skillsCredentialFiles: () => skillsCredentialFiles,
44636
- skillsCredentialFilePath: () => skillsCredentialFilePath,
44637
- selectsSkillsLocalMode: () => selectsSkillsLocalMode,
44638
- resolveSkillsFleet: () => resolveSkillsFleet,
44639
- resolveSkillsConnection: () => resolveSkillsConnection,
44640
- resolveSkillsApiOrigin: () => resolveSkillsApiOrigin,
44641
- resolveSkillsApiKey: () => resolveSkillsApiKey,
44642
- resetLocalSkillsModeNotice: () => resetLocalSkillsModeNotice,
44643
- requireSkillsFleet: () => requireSkillsFleet,
44644
- requireSkillsApiOrigin: () => requireSkillsApiOrigin,
44645
- requireSkillsApiKey: () => requireSkillsApiKey,
44646
- noticeLocalSkillsMode: () => noticeLocalSkillsMode,
44647
- normalizeSkillsApiOrigin: () => normalizeSkillsApiOrigin,
44648
- isSkillsLocalOptIn: () => isSkillsLocalOptIn,
44649
- isSkillsFleetCredentialError: () => isSkillsFleetCredentialError,
44650
- configuredSkillsApiUrl: () => configuredSkillsApiUrl,
44651
- SkillsFleetCredentialError: () => SkillsFleetCredentialError,
44652
- SKILLS_LOCAL_OPT_IN_ENV_KEYS: () => SKILLS_LOCAL_OPT_IN_ENV_KEYS,
44653
- SKILLS_APP: () => SKILLS_APP,
44654
- SKILLS_API_URL_ENV_KEYS: () => SKILLS_API_URL_ENV_KEYS,
44655
- SKILLS_API_URL_ENV: () => SKILLS_API_URL_ENV,
44656
- SKILLS_API_KEY_ENV_KEYS: () => SKILLS_API_KEY_ENV_KEYS,
44603
+ MissingSkillsFleetError: () => MissingSkillsFleetError,
44657
44604
  SKILLS_API_KEY_ENV: () => SKILLS_API_KEY_ENV,
44658
- MissingSkillsFleetError: () => MissingSkillsFleetError
44605
+ SKILLS_API_KEY_ENV_KEYS: () => SKILLS_API_KEY_ENV_KEYS,
44606
+ SKILLS_API_URL_ENV: () => SKILLS_API_URL_ENV,
44607
+ SKILLS_API_URL_ENV_KEYS: () => SKILLS_API_URL_ENV_KEYS,
44608
+ SKILLS_APP: () => SKILLS_APP,
44609
+ SKILLS_LOCAL_OPT_IN_ENV_KEYS: () => SKILLS_LOCAL_OPT_IN_ENV_KEYS,
44610
+ SkillsFleetCredentialError: () => SkillsFleetCredentialError,
44611
+ configuredSkillsApiUrl: () => configuredSkillsApiUrl,
44612
+ isSkillsFleetCredentialError: () => isSkillsFleetCredentialError,
44613
+ isSkillsLocalOptIn: () => isSkillsLocalOptIn,
44614
+ normalizeSkillsApiOrigin: () => normalizeSkillsApiOrigin,
44615
+ noticeLocalSkillsMode: () => noticeLocalSkillsMode,
44616
+ requireSkillsApiKey: () => requireSkillsApiKey,
44617
+ requireSkillsApiOrigin: () => requireSkillsApiOrigin,
44618
+ requireSkillsFleet: () => requireSkillsFleet,
44619
+ resetLocalSkillsModeNotice: () => resetLocalSkillsModeNotice,
44620
+ resolveSkillsApiKey: () => resolveSkillsApiKey,
44621
+ resolveSkillsApiOrigin: () => resolveSkillsApiOrigin,
44622
+ resolveSkillsConnection: () => resolveSkillsConnection,
44623
+ resolveSkillsFleet: () => resolveSkillsFleet,
44624
+ selectsSkillsLocalMode: () => selectsSkillsLocalMode,
44625
+ skillsCredentialFilePath: () => skillsCredentialFilePath,
44626
+ skillsCredentialFiles: () => skillsCredentialFiles,
44627
+ skillsCredentialOrReason: () => skillsCredentialOrReason
44659
44628
  });
44660
44629
  function isCredentialResolutionError(error) {
44661
44630
  return error instanceof CredentialResolutionError || typeof error === "object" && error !== null && error.name === "CredentialResolutionError";
@@ -48761,113 +48730,113 @@ var init_types = __esm(() => {
48761
48730
  // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/external.js
48762
48731
  var exports_external = {};
48763
48732
  __export(exports_external, {
48764
- void: () => voidType,
48765
- util: () => util,
48766
- unknown: () => unknownType,
48767
- union: () => unionType,
48768
- undefined: () => undefinedType,
48769
- tuple: () => tupleType,
48770
- transformer: () => effectsType,
48771
- symbol: () => symbolType,
48772
- string: () => stringType,
48773
- strictObject: () => strictObjectType,
48774
- setErrorMap: () => setErrorMap,
48775
- set: () => setType,
48776
- record: () => recordType,
48777
- quotelessJson: () => quotelessJson,
48778
- promise: () => promiseType,
48779
- preprocess: () => preprocessType,
48780
- pipeline: () => pipelineType,
48781
- ostring: () => ostring,
48782
- optional: () => optionalType,
48783
- onumber: () => onumber,
48784
- oboolean: () => oboolean,
48785
- objectUtil: () => objectUtil,
48786
- object: () => objectType,
48787
- number: () => numberType,
48788
- nullable: () => nullableType,
48789
- null: () => nullType,
48790
- never: () => neverType,
48791
- nativeEnum: () => nativeEnumType,
48792
- nan: () => nanType,
48793
- map: () => mapType,
48794
- makeIssue: () => makeIssue,
48795
- literal: () => literalType,
48796
- lazy: () => lazyType,
48797
- late: () => late,
48798
- isValid: () => isValid,
48799
- isDirty: () => isDirty,
48800
- isAsync: () => isAsync,
48801
- isAborted: () => isAborted,
48802
- intersection: () => intersectionType,
48803
- instanceof: () => instanceOfType,
48804
- getParsedType: () => getParsedType,
48805
- getErrorMap: () => getErrorMap,
48806
- function: () => functionType,
48807
- enum: () => enumType,
48808
- effect: () => effectsType,
48809
- discriminatedUnion: () => discriminatedUnionType,
48810
- defaultErrorMap: () => en_default,
48811
- datetimeRegex: () => datetimeRegex,
48812
- date: () => dateType,
48813
- custom: () => custom,
48814
- coerce: () => coerce,
48815
- boolean: () => booleanType,
48816
- bigint: () => bigIntType,
48817
- array: () => arrayType,
48818
- any: () => anyType,
48819
- addIssueToContext: () => addIssueToContext,
48820
- ZodVoid: () => ZodVoid,
48821
- ZodUnknown: () => ZodUnknown,
48822
- ZodUnion: () => ZodUnion,
48823
- ZodUndefined: () => ZodUndefined,
48824
- ZodType: () => ZodType,
48825
- ZodTuple: () => ZodTuple,
48826
- ZodTransformer: () => ZodEffects,
48827
- ZodSymbol: () => ZodSymbol,
48828
- ZodString: () => ZodString,
48829
- ZodSet: () => ZodSet,
48830
- ZodSchema: () => ZodType,
48831
- ZodRecord: () => ZodRecord,
48832
- ZodReadonly: () => ZodReadonly,
48833
- ZodPromise: () => ZodPromise,
48834
- ZodPipeline: () => ZodPipeline,
48835
- ZodParsedType: () => ZodParsedType,
48836
- ZodOptional: () => ZodOptional,
48837
- ZodObject: () => ZodObject,
48838
- ZodNumber: () => ZodNumber,
48839
- ZodNullable: () => ZodNullable,
48840
- ZodNull: () => ZodNull,
48841
- ZodNever: () => ZodNever,
48842
- ZodNativeEnum: () => ZodNativeEnum,
48843
- ZodNaN: () => ZodNaN,
48844
- ZodMap: () => ZodMap,
48845
- ZodLiteral: () => ZodLiteral,
48846
- ZodLazy: () => ZodLazy,
48847
- ZodIssueCode: () => ZodIssueCode,
48848
- ZodIntersection: () => ZodIntersection,
48849
- ZodFunction: () => ZodFunction,
48850
- ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
48851
- ZodError: () => ZodError,
48852
- ZodEnum: () => ZodEnum,
48853
- ZodEffects: () => ZodEffects,
48854
- ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
48855
- ZodDefault: () => ZodDefault,
48856
- ZodDate: () => ZodDate,
48857
- ZodCatch: () => ZodCatch,
48858
- ZodBranded: () => ZodBranded,
48859
- ZodBoolean: () => ZodBoolean,
48860
- ZodBigInt: () => ZodBigInt,
48861
- ZodArray: () => ZodArray,
48862
- ZodAny: () => ZodAny,
48863
- Schema: () => ZodType,
48864
- ParseStatus: () => ParseStatus,
48865
- OK: () => OK,
48866
- NEVER: () => NEVER,
48867
- INVALID: () => INVALID,
48868
- EMPTY_PATH: () => EMPTY_PATH,
48733
+ BRAND: () => BRAND,
48869
48734
  DIRTY: () => DIRTY,
48870
- BRAND: () => BRAND
48735
+ EMPTY_PATH: () => EMPTY_PATH,
48736
+ INVALID: () => INVALID,
48737
+ NEVER: () => NEVER,
48738
+ OK: () => OK,
48739
+ ParseStatus: () => ParseStatus,
48740
+ Schema: () => ZodType,
48741
+ ZodAny: () => ZodAny,
48742
+ ZodArray: () => ZodArray,
48743
+ ZodBigInt: () => ZodBigInt,
48744
+ ZodBoolean: () => ZodBoolean,
48745
+ ZodBranded: () => ZodBranded,
48746
+ ZodCatch: () => ZodCatch,
48747
+ ZodDate: () => ZodDate,
48748
+ ZodDefault: () => ZodDefault,
48749
+ ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
48750
+ ZodEffects: () => ZodEffects,
48751
+ ZodEnum: () => ZodEnum,
48752
+ ZodError: () => ZodError,
48753
+ ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
48754
+ ZodFunction: () => ZodFunction,
48755
+ ZodIntersection: () => ZodIntersection,
48756
+ ZodIssueCode: () => ZodIssueCode,
48757
+ ZodLazy: () => ZodLazy,
48758
+ ZodLiteral: () => ZodLiteral,
48759
+ ZodMap: () => ZodMap,
48760
+ ZodNaN: () => ZodNaN,
48761
+ ZodNativeEnum: () => ZodNativeEnum,
48762
+ ZodNever: () => ZodNever,
48763
+ ZodNull: () => ZodNull,
48764
+ ZodNullable: () => ZodNullable,
48765
+ ZodNumber: () => ZodNumber,
48766
+ ZodObject: () => ZodObject,
48767
+ ZodOptional: () => ZodOptional,
48768
+ ZodParsedType: () => ZodParsedType,
48769
+ ZodPipeline: () => ZodPipeline,
48770
+ ZodPromise: () => ZodPromise,
48771
+ ZodReadonly: () => ZodReadonly,
48772
+ ZodRecord: () => ZodRecord,
48773
+ ZodSchema: () => ZodType,
48774
+ ZodSet: () => ZodSet,
48775
+ ZodString: () => ZodString,
48776
+ ZodSymbol: () => ZodSymbol,
48777
+ ZodTransformer: () => ZodEffects,
48778
+ ZodTuple: () => ZodTuple,
48779
+ ZodType: () => ZodType,
48780
+ ZodUndefined: () => ZodUndefined,
48781
+ ZodUnion: () => ZodUnion,
48782
+ ZodUnknown: () => ZodUnknown,
48783
+ ZodVoid: () => ZodVoid,
48784
+ addIssueToContext: () => addIssueToContext,
48785
+ any: () => anyType,
48786
+ array: () => arrayType,
48787
+ bigint: () => bigIntType,
48788
+ boolean: () => booleanType,
48789
+ coerce: () => coerce,
48790
+ custom: () => custom,
48791
+ date: () => dateType,
48792
+ datetimeRegex: () => datetimeRegex,
48793
+ defaultErrorMap: () => en_default,
48794
+ discriminatedUnion: () => discriminatedUnionType,
48795
+ effect: () => effectsType,
48796
+ enum: () => enumType,
48797
+ function: () => functionType,
48798
+ getErrorMap: () => getErrorMap,
48799
+ getParsedType: () => getParsedType,
48800
+ instanceof: () => instanceOfType,
48801
+ intersection: () => intersectionType,
48802
+ isAborted: () => isAborted,
48803
+ isAsync: () => isAsync,
48804
+ isDirty: () => isDirty,
48805
+ isValid: () => isValid,
48806
+ late: () => late,
48807
+ lazy: () => lazyType,
48808
+ literal: () => literalType,
48809
+ makeIssue: () => makeIssue,
48810
+ map: () => mapType,
48811
+ nan: () => nanType,
48812
+ nativeEnum: () => nativeEnumType,
48813
+ never: () => neverType,
48814
+ null: () => nullType,
48815
+ nullable: () => nullableType,
48816
+ number: () => numberType,
48817
+ object: () => objectType,
48818
+ objectUtil: () => objectUtil,
48819
+ oboolean: () => oboolean,
48820
+ onumber: () => onumber,
48821
+ optional: () => optionalType,
48822
+ ostring: () => ostring,
48823
+ pipeline: () => pipelineType,
48824
+ preprocess: () => preprocessType,
48825
+ promise: () => promiseType,
48826
+ quotelessJson: () => quotelessJson,
48827
+ record: () => recordType,
48828
+ set: () => setType,
48829
+ setErrorMap: () => setErrorMap,
48830
+ strictObject: () => strictObjectType,
48831
+ string: () => stringType,
48832
+ symbol: () => symbolType,
48833
+ transformer: () => effectsType,
48834
+ tuple: () => tupleType,
48835
+ undefined: () => undefinedType,
48836
+ union: () => unionType,
48837
+ unknown: () => unknownType,
48838
+ util: () => util,
48839
+ void: () => voidType
48871
48840
  });
48872
48841
  var init_external = __esm(() => {
48873
48842
  init_errors();
@@ -49819,11 +49788,11 @@ var init_remote_account = __esm(() => {
49819
49788
  // src/lib/remote-files.ts
49820
49789
  var exports_remote_files = {};
49821
49790
  __export(exports_remote_files, {
49822
- sha256: () => sha256,
49823
- readBoundedResponse: () => readBoundedResponse,
49824
- describeRemoteFiles: () => describeRemoteFiles,
49791
+ MAX_REMOTE_FILE_BYTES: () => MAX_REMOTE_FILE_BYTES,
49825
49792
  decodeRemoteFiles: () => decodeRemoteFiles,
49826
- MAX_REMOTE_FILE_BYTES: () => MAX_REMOTE_FILE_BYTES
49793
+ describeRemoteFiles: () => describeRemoteFiles,
49794
+ readBoundedResponse: () => readBoundedResponse,
49795
+ sha256: () => sha256
49827
49796
  });
49828
49797
  import { createHash as createHash2 } from "crypto";
49829
49798
  function describeRemoteFiles(files) {
@@ -49931,17 +49900,84 @@ function parseUpdatedWorkspace(value) {
49931
49900
  return { organization: { id: organization2.id, slug: organization2.slug, name: organization2.name } };
49932
49901
  }
49933
49902
 
49903
+ // src/lib/remote-quote-errors.ts
49904
+ async function readQuoteUnavailableCode(response) {
49905
+ const maximum = 16 * 1024;
49906
+ const length = response.headers.get("content-length");
49907
+ if (response.status !== 503 || response.headers.get("content-type")?.split(";")[0]?.trim().toLowerCase() !== "application/json" || length !== null && (!/^\d+$/.test(length) || Number(length) > maximum)) {
49908
+ response.body?.cancel().catch(() => {});
49909
+ return null;
49910
+ }
49911
+ const reader = response.body?.getReader();
49912
+ if (!reader)
49913
+ return null;
49914
+ let timer;
49915
+ let deadlineExceeded = false;
49916
+ const expired = Symbol("quote body deadline");
49917
+ const deadline = new Promise((resolve3) => {
49918
+ timer = setTimeout(() => {
49919
+ deadlineExceeded = true;
49920
+ resolve3(expired);
49921
+ reader.cancel().catch(() => {});
49922
+ }, 1500);
49923
+ });
49924
+ const chunks = [];
49925
+ let size2 = 0;
49926
+ try {
49927
+ while (true) {
49928
+ const next = await Promise.race([reader.read(), deadline]);
49929
+ if (next === expired || deadlineExceeded)
49930
+ return null;
49931
+ if (next.done)
49932
+ break;
49933
+ size2 += next.value.byteLength;
49934
+ if (size2 > maximum)
49935
+ return null;
49936
+ chunks.push(next.value);
49937
+ }
49938
+ const bytes = new Uint8Array(size2);
49939
+ let offset = 0;
49940
+ for (const chunk2 of chunks) {
49941
+ bytes.set(chunk2, offset);
49942
+ offset += chunk2.byteLength;
49943
+ }
49944
+ const value = JSON.parse(new TextDecoder("utf-8", { fatal: true }).decode(bytes));
49945
+ if (!value || typeof value !== "object" || Array.isArray(value))
49946
+ return null;
49947
+ const code = value.code;
49948
+ return typeof code === "string" && Object.hasOwn(quoteUnavailableMessages, code) ? code : null;
49949
+ } catch {
49950
+ return null;
49951
+ } finally {
49952
+ clearTimeout(timer);
49953
+ reader.cancel().catch(() => {});
49954
+ reader.releaseLock();
49955
+ }
49956
+ }
49957
+ var quoteUnavailableMessages;
49958
+ var init_remote_quote_errors = __esm(() => {
49959
+ quoteUnavailableMessages = Object.freeze({
49960
+ HOSTED_PROVIDER_UNAVAILABLE: "Hosted execution is temporarily unavailable on this Skills instance.",
49961
+ HOSTED_CONNECTORS_UNAVAILABLE: "Hosted connector execution is unavailable on this Skills instance.",
49962
+ SKILL_IMPLEMENTATION_UNAVAILABLE: "This skill has no hosted execution implementation.",
49963
+ HOSTED_PRICING_UNAVAILABLE: "Hosted execution is unavailable while this skill's pricing is reviewed.",
49964
+ RUNTIME_ALLOWLIST_REQUIRED: "Hosted execution is unavailable until this Skills instance enables its skill catalog.",
49965
+ RUNTIME_SKILL_NOT_ALLOWED: "This skill is not enabled for hosted execution on this Skills instance."
49966
+ });
49967
+ });
49968
+
49934
49969
  // src/lib/remote-client.ts
49935
49970
  var exports_remote_client = {};
49936
49971
  __export(exports_remote_client, {
49937
- createRemoteSkillsClientReadOnly: () => createRemoteSkillsClientReadOnly,
49938
- createRemoteSkillsClient: () => createRemoteSkillsClient,
49939
- RemoteWorkspaceSelectionError: () => RemoteWorkspaceSelectionError,
49940
- RemoteWorkspaceMemberError: () => RemoteWorkspaceMemberError,
49941
- RemoteSkillsClient: () => RemoteSkillsClient,
49942
- RemoteRouteUnsupportedError: () => RemoteRouteUnsupportedError,
49972
+ RemoteCapabilityUnavailableError: () => RemoteCapabilityUnavailableError,
49973
+ RemoteQuoteUnavailableError: () => RemoteQuoteUnavailableError,
49943
49974
  RemoteRequestError: () => RemoteRequestError,
49944
- RemoteCapabilityUnavailableError: () => RemoteCapabilityUnavailableError
49975
+ RemoteRouteUnsupportedError: () => RemoteRouteUnsupportedError,
49976
+ RemoteSkillsClient: () => RemoteSkillsClient,
49977
+ RemoteWorkspaceMemberError: () => RemoteWorkspaceMemberError,
49978
+ RemoteWorkspaceSelectionError: () => RemoteWorkspaceSelectionError,
49979
+ createRemoteSkillsClient: () => createRemoteSkillsClient,
49980
+ createRemoteSkillsClientReadOnly: () => createRemoteSkillsClientReadOnly
49945
49981
  });
49946
49982
 
49947
49983
  class RemoteSkillsClient {
@@ -49976,6 +50012,11 @@ class RemoteSkillsClient {
49976
50012
  throw new RemoteRouteUnsupportedError(routePath, response.status, this.apiUrl);
49977
50013
  }
49978
50014
  if (!response.ok) {
50015
+ if (opts.quoteRefusal && options?.method === "POST" && /^\/api\/v1\/skills\/[^/?#]+\/quote$/.test(routePath) && response.status === 503) {
50016
+ const code = await readQuoteUnavailableCode(response);
50017
+ if (code)
50018
+ throw new RemoteQuoteUnavailableError(routePath, code);
50019
+ }
49979
50020
  if (path === "/api/v1/billing/checkout" && options?.method === "POST" && response.status === 503 && await responseBodyCarriesCode(response, ["SUBSCRIPTION_CHECKOUT_UNAVAILABLE"])) {
49980
50021
  throw new RemoteCapabilityUnavailableError;
49981
50022
  }
@@ -50033,7 +50074,7 @@ class RemoteSkillsClient {
50033
50074
  const response = await this.requestNewRoute(`/api/v1/skills/${encodeURIComponent(slug)}/quote`, {
50034
50075
  method: "POST",
50035
50076
  body: JSON.stringify({ input, args })
50036
- });
50077
+ }, { quoteRefusal: true });
50037
50078
  return parseRemoteRunQuote(await response.json());
50038
50079
  }
50039
50080
  getCapabilities() {
@@ -50632,7 +50673,7 @@ async function createRemoteSkillsClient(env3 = process.env) {
50632
50673
  function createRemoteSkillsClientReadOnly(env3 = process.env) {
50633
50674
  return createRemoteSkillsClient(env3);
50634
50675
  }
50635
- var RemoteRouteUnsupportedError, RemoteRequestError, RemoteWorkspaceMemberError, RemoteWorkspaceSelectionError, RemoteCapabilityUnavailableError, INVALID_SKILL_VERSION_RESPONSE = "Remote skill version payload did not match the expected contract.";
50676
+ var RemoteRouteUnsupportedError, RemoteRequestError, RemoteQuoteUnavailableError, RemoteWorkspaceMemberError, RemoteWorkspaceSelectionError, RemoteCapabilityUnavailableError, INVALID_SKILL_VERSION_RESPONSE = "Remote skill version payload did not match the expected contract.";
50636
50677
  var init_remote_client = __esm(() => {
50637
50678
  init_remote_invitations();
50638
50679
  init_remote_workspace_leave();
@@ -50643,6 +50684,7 @@ var init_remote_client = __esm(() => {
50643
50684
  init_fleet_credentials();
50644
50685
  init_remote_account();
50645
50686
  init_remote_files();
50687
+ init_remote_quote_errors();
50646
50688
  RemoteRouteUnsupportedError = class RemoteRouteUnsupportedError extends Error {
50647
50689
  path;
50648
50690
  status;
@@ -50665,6 +50707,17 @@ var init_remote_client = __esm(() => {
50665
50707
  this.name = "RemoteRequestError";
50666
50708
  }
50667
50709
  };
50710
+ RemoteQuoteUnavailableError = class RemoteQuoteUnavailableError extends RemoteRequestError {
50711
+ code;
50712
+ constructor(path, code) {
50713
+ super(path, 503);
50714
+ this.code = code;
50715
+ if (!Object.hasOwn(quoteUnavailableMessages, code))
50716
+ throw new Error("Unknown quote refusal code");
50717
+ this.name = "RemoteQuoteUnavailableError";
50718
+ this.message = quoteUnavailableMessages[code];
50719
+ }
50720
+ };
50668
50721
  RemoteWorkspaceMemberError = class RemoteWorkspaceMemberError extends RemoteRequestError {
50669
50722
  code;
50670
50723
  constructor(path, code) {
@@ -50919,129 +50972,7 @@ function concat2(chunks) {
50919
50972
  }
50920
50973
  return merged;
50921
50974
  }
50922
- function invalidBundle(message) {
50923
- throw new SkillBundleInspectionError("BUNDLE_INVALID", message);
50924
- }
50925
-
50926
- class BoundedTarReader {
50927
- limits;
50928
- check;
50929
- header = new Uint8Array(BLOCK);
50930
- headerOffset = 0;
50931
- pending;
50932
- bodyOffset = 0;
50933
- padding = 0;
50934
- zeroBlocks = 0;
50935
- entries = [];
50936
- paths = new SkillEntryPaths;
50937
- fileBytes = 0;
50938
- constructor(limits, check) {
50939
- this.limits = limits;
50940
- this.check = check;
50941
- }
50942
- push(chunk2) {
50943
- let offset = 0;
50944
- while (offset < chunk2.byteLength) {
50945
- this.check();
50946
- if (this.pending) {
50947
- const count = Math.min(this.pending.bytes.byteLength - this.bodyOffset, chunk2.byteLength - offset);
50948
- this.pending.bytes.set(chunk2.subarray(offset, offset + count), this.bodyOffset);
50949
- offset += count;
50950
- this.bodyOffset += count;
50951
- if (this.bodyOffset === this.pending.bytes.byteLength) {
50952
- this.entries.push(this.pending);
50953
- this.pending = undefined;
50954
- }
50955
- } else if (this.padding) {
50956
- const count = Math.min(this.padding, chunk2.byteLength - offset);
50957
- if (chunk2.subarray(offset, offset + count).some((byte) => byte !== 0))
50958
- invalidBundle("Nonzero tar body padding");
50959
- offset += count;
50960
- this.padding -= count;
50961
- } else {
50962
- const count = Math.min(BLOCK - this.headerOffset, chunk2.byteLength - offset);
50963
- this.header.set(chunk2.subarray(offset, offset + count), this.headerOffset);
50964
- offset += count;
50965
- this.headerOffset += count;
50966
- if (this.headerOffset === BLOCK) {
50967
- this.readHeader();
50968
- this.headerOffset = 0;
50969
- }
50970
- }
50971
- }
50972
- }
50973
- finish() {
50974
- this.check();
50975
- if (this.pending || this.padding || this.headerOffset || this.zeroBlocks < 2)
50976
- invalidBundle("Truncated tar bundle");
50977
- return this.entries;
50978
- }
50979
- readHeader() {
50980
- this.check();
50981
- const h = this.header;
50982
- if (h.every((byte) => byte === 0)) {
50983
- this.zeroBlocks++;
50984
- return;
50985
- }
50986
- if (this.zeroBlocks)
50987
- invalidBundle("Nonzero tar data after terminator");
50988
- if (this.entries.length >= this.limits.entries)
50989
- throw new SkillBundleInspectionError("BUNDLE_LIMIT", "Bundle entry limit exceeded");
50990
- let checksum = 0;
50991
- for (let i = 0;i < BLOCK; i++)
50992
- checksum += i >= 148 && i < 156 ? 32 : h[i];
50993
- if (tarOctal(h.subarray(148, 156)) !== checksum)
50994
- invalidBundle("Invalid tar header checksum");
50995
- if (new TextDecoder().decode(h.subarray(257, 265)) !== "ustar\x00" + "00")
50996
- invalidBundle("Unsupported tar format");
50997
- if (h[156] !== 48 && h[156] !== 0 || h.subarray(157, 257).some((b) => b !== 0) || h.subarray(345).some((b) => b !== 0))
50998
- invalidBundle("Unsupported tar entry or path prefix");
50999
- const mode = tarOctal(h.subarray(100, 108));
51000
- if (mode > 511)
51001
- invalidBundle("Unsupported tar permission bits");
51002
- tarOctal(h.subarray(108, 116));
51003
- tarOctal(h.subarray(116, 124));
51004
- tarOctal(h.subarray(136, 148));
51005
- const size2 = tarOctal(h.subarray(124, 136));
51006
- if (size2 > this.limits.fileBytes || this.fileBytes + size2 > this.limits.decompressedBytes) {
51007
- throw new SkillBundleInspectionError("BUNDLE_LIMIT", "Bundle file byte limit exceeded");
51008
- }
51009
- const name = h.subarray(0, 100);
51010
- const end = name.indexOf(0);
51011
- if (end !== -1 && name.subarray(end).some((b) => b !== 0))
51012
- invalidBundle("Invalid tar path padding");
51013
- const raw = end === -1 ? name : name.subarray(0, end);
51014
- if (raw.byteLength > this.limits.pathBytes)
51015
- throw new SkillBundleInspectionError("BUNDLE_LIMIT", "Bundle path byte limit exceeded");
51016
- let path;
51017
- try {
51018
- path = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode(raw);
51019
- } catch {
51020
- return invalidBundle("Invalid UTF-8 bundle path");
51021
- }
51022
- this.paths.add(path, this.limits.pathBytes, invalidBundle, () => {
51023
- throw new SkillBundleInspectionError("BUNDLE_LIMIT", "Bundle path byte limit exceeded");
51024
- });
51025
- this.fileBytes += size2;
51026
- this.pending = { path, mode, bytes: new Uint8Array(new ArrayBuffer(size2)) };
51027
- this.bodyOffset = 0;
51028
- this.padding = (BLOCK - size2 % BLOCK) % BLOCK;
51029
- if (!size2) {
51030
- this.entries.push(this.pending);
51031
- this.pending = undefined;
51032
- }
51033
- }
51034
- }
51035
- function tarOctal(field) {
51036
- const text2 = new TextDecoder().decode(field);
51037
- if (!/^[0-7]+[\0 ]*$/.test(text2))
51038
- invalidBundle("Invalid tar octal field");
51039
- const value = Number.parseInt(text2, 8);
51040
- if (!Number.isSafeInteger(value))
51041
- invalidBundle("Tar integer is out of range");
51042
- return value;
51043
- }
51044
- var BLOCK = 512, ANY_SEGMENT_EXCLUDES, ROOT_EXCLUDES, TOOL_SIDECAR_FILENAMES, CREDENTIAL_FILENAMES, CREDENTIAL_EXTENSIONS, ENV_TEMPLATE_NAMES, NON_DOTENV_EXTENSIONS, SKILL_BUNDLE_INSPECTION_LIMITS, SkillBundleInspectionError;
50975
+ var BLOCK = 512, ANY_SEGMENT_EXCLUDES, ROOT_EXCLUDES, TOOL_SIDECAR_FILENAMES, CREDENTIAL_FILENAMES, CREDENTIAL_EXTENSIONS, ENV_TEMPLATE_NAMES, NON_DOTENV_EXTENSIONS, SKILL_BUNDLE_INSPECTION_LIMITS;
51045
50976
  var init_skill_bundle = __esm(() => {
51046
50977
  ANY_SEGMENT_EXCLUDES = new Set([
51047
50978
  ".git",
@@ -51173,14 +51104,6 @@ var init_skill_bundle = __esm(() => {
51173
51104
  pathBytes: 100,
51174
51105
  timeoutMs: 5000
51175
51106
  });
51176
- SkillBundleInspectionError = class SkillBundleInspectionError extends Error {
51177
- code;
51178
- constructor(code, message) {
51179
- super(message);
51180
- this.code = code;
51181
- this.name = "SkillBundleInspectionError";
51182
- }
51183
- };
51184
51107
  });
51185
51108
 
51186
51109
  // src/lib/skill-version.ts
@@ -51636,8 +51559,8 @@ var init_pull = __esm(() => {
51636
51559
  // src/cli/commands/install.ts
51637
51560
  var exports_install = {};
51638
51561
  __export(exports_install, {
51639
- registerInstall: () => registerInstall,
51640
- pinExactVersion: () => pinExactVersion
51562
+ pinExactVersion: () => pinExactVersion,
51563
+ registerInstall: () => registerInstall
51641
51564
  });
51642
51565
  function registerInstall(parent) {
51643
51566
  parent.command("install").argument("[args...]", "Deprecated. Use 'skills pin <name>' for project skill pins.").option("--json", "Output result as JSON", false).description("Deprecated. Render skills into native agent folders with 'skills render'.").action((args, options) => handleDeprecatedInstall(args, options));
@@ -52316,14 +52239,14 @@ var init_list = __esm(() => {
52316
52239
  // src/lib/skillinfo.ts
52317
52240
  var exports_skillinfo = {};
52318
52241
  __export(exports_skillinfo, {
52319
- runSkill: () => runSkill,
52320
- getSkillRequirements: () => getSkillRequirements,
52321
- getSkillDocs: () => getSkillDocs,
52322
- getSkillDependencyStatus: () => getSkillDependencyStatus,
52323
- getSkillBestDoc: () => getSkillBestDoc,
52324
- generateSkillMd: () => generateSkillMd,
52242
+ detectProjectSkills: () => detectProjectSkills,
52325
52243
  generateEnvExample: () => generateEnvExample,
52326
- detectProjectSkills: () => detectProjectSkills
52244
+ generateSkillMd: () => generateSkillMd,
52245
+ getSkillBestDoc: () => getSkillBestDoc,
52246
+ getSkillDependencyStatus: () => getSkillDependencyStatus,
52247
+ getSkillDocs: () => getSkillDocs,
52248
+ getSkillRequirements: () => getSkillRequirements,
52249
+ runSkill: () => runSkill
52327
52250
  });
52328
52251
  import { existsSync as existsSync19, readFileSync as readFileSync15 } from "fs";
52329
52252
  import { join as join21 } from "path";
@@ -54610,10 +54533,10 @@ var init_diagnostic = __esm(() => {
54610
54533
  // src/lib/blog-article.ts
54611
54534
  var exports_blog_article = {};
54612
54535
  __export(exports_blog_article, {
54613
- validateBlogArticleRunOptions: () => validateBlogArticleRunOptions,
54614
- ARTICLE_MAX_COUNT: () => ARTICLE_MAX_COUNT,
54536
+ ARTICLE_COUNT_ERROR: () => ARTICLE_COUNT_ERROR,
54615
54537
  ARTICLE_GENERATION_SLUG: () => ARTICLE_GENERATION_SLUG,
54616
- ARTICLE_COUNT_ERROR: () => ARTICLE_COUNT_ERROR
54538
+ ARTICLE_MAX_COUNT: () => ARTICLE_MAX_COUNT,
54539
+ validateBlogArticleRunOptions: () => validateBlogArticleRunOptions
54617
54540
  });
54618
54541
  function validateBlogArticleRunOptions(input, args = [], validation = {}) {
54619
54542
  const options = collectRunOptions(input, args);
@@ -55053,55 +54976,55 @@ var init_core = __esm(() => {
55053
54976
  // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/util.js
55054
54977
  var exports_util = {};
55055
54978
  __export(exports_util, {
55056
- unwrapMessage: () => unwrapMessage,
55057
- stringifyPrimitive: () => stringifyPrimitive,
55058
- required: () => required,
55059
- randomString: () => randomString,
55060
- propertyKeyTypes: () => propertyKeyTypes,
55061
- promiseAllObject: () => promiseAllObject,
55062
- primitiveTypes: () => primitiveTypes,
55063
- prefixIssues: () => prefixIssues,
55064
- pick: () => pick2,
55065
- partial: () => partial2,
55066
- optionalKeys: () => optionalKeys,
55067
- omit: () => omit2,
55068
- numKeys: () => numKeys,
55069
- nullish: () => nullish,
55070
- normalizeParams: () => normalizeParams,
55071
- merge: () => merge2,
55072
- jsonStringifyReplacer: () => jsonStringifyReplacer,
55073
- joinValues: () => joinValues,
55074
- issue: () => issue,
55075
- isPlainObject: () => isPlainObject2,
55076
- isObject: () => isObject2,
55077
- getSizableOrigin: () => getSizableOrigin,
55078
- getParsedType: () => getParsedType2,
55079
- getLengthableOrigin: () => getLengthableOrigin,
55080
- getEnumValues: () => getEnumValues,
55081
- getElementAtPath: () => getElementAtPath,
55082
- floatSafeRemainder: () => floatSafeRemainder2,
55083
- finalizeIssue: () => finalizeIssue,
55084
- extend: () => extend,
55085
- escapeRegex: () => escapeRegex,
55086
- esc: () => esc,
55087
- defineLazy: () => defineLazy,
55088
- createTransparentProxy: () => createTransparentProxy,
55089
- clone: () => clone3,
55090
- cleanRegex: () => cleanRegex,
55091
- cleanEnum: () => cleanEnum,
55092
- captureStackTrace: () => captureStackTrace,
55093
- cached: () => cached,
55094
- assignProp: () => assignProp,
55095
- assertNotEqual: () => assertNotEqual,
55096
- assertNever: () => assertNever,
55097
- assertIs: () => assertIs,
55098
- assertEqual: () => assertEqual,
55099
- assert: () => assert,
55100
- allowsEval: () => allowsEval,
55101
- aborted: () => aborted,
55102
- NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
54979
+ BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
55103
54980
  Class: () => Class,
55104
- BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES
54981
+ NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
54982
+ aborted: () => aborted,
54983
+ allowsEval: () => allowsEval,
54984
+ assert: () => assert,
54985
+ assertEqual: () => assertEqual,
54986
+ assertIs: () => assertIs,
54987
+ assertNever: () => assertNever,
54988
+ assertNotEqual: () => assertNotEqual,
54989
+ assignProp: () => assignProp,
54990
+ cached: () => cached,
54991
+ captureStackTrace: () => captureStackTrace,
54992
+ cleanEnum: () => cleanEnum,
54993
+ cleanRegex: () => cleanRegex,
54994
+ clone: () => clone3,
54995
+ createTransparentProxy: () => createTransparentProxy,
54996
+ defineLazy: () => defineLazy,
54997
+ esc: () => esc,
54998
+ escapeRegex: () => escapeRegex,
54999
+ extend: () => extend,
55000
+ finalizeIssue: () => finalizeIssue,
55001
+ floatSafeRemainder: () => floatSafeRemainder2,
55002
+ getElementAtPath: () => getElementAtPath,
55003
+ getEnumValues: () => getEnumValues,
55004
+ getLengthableOrigin: () => getLengthableOrigin,
55005
+ getParsedType: () => getParsedType2,
55006
+ getSizableOrigin: () => getSizableOrigin,
55007
+ isObject: () => isObject2,
55008
+ isPlainObject: () => isPlainObject2,
55009
+ issue: () => issue,
55010
+ joinValues: () => joinValues,
55011
+ jsonStringifyReplacer: () => jsonStringifyReplacer,
55012
+ merge: () => merge2,
55013
+ normalizeParams: () => normalizeParams,
55014
+ nullish: () => nullish,
55015
+ numKeys: () => numKeys,
55016
+ omit: () => omit2,
55017
+ optionalKeys: () => optionalKeys,
55018
+ partial: () => partial2,
55019
+ pick: () => pick2,
55020
+ prefixIssues: () => prefixIssues,
55021
+ primitiveTypes: () => primitiveTypes,
55022
+ promiseAllObject: () => promiseAllObject,
55023
+ propertyKeyTypes: () => propertyKeyTypes,
55024
+ randomString: () => randomString,
55025
+ required: () => required,
55026
+ stringifyPrimitive: () => stringifyPrimitive,
55027
+ unwrapMessage: () => unwrapMessage
55105
55028
  });
55106
55029
  function assertEqual(val) {
55107
55030
  return val;
@@ -58840,14 +58763,14 @@ var init_checks2 = __esm(() => {
58840
58763
  // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/classic/iso.js
58841
58764
  var exports_iso = {};
58842
58765
  __export(exports_iso, {
58843
- time: () => time2,
58844
- duration: () => duration2,
58845
- datetime: () => datetime2,
58846
- date: () => date2,
58847
- ZodISOTime: () => ZodISOTime,
58848
- ZodISODuration: () => ZodISODuration,
58766
+ ZodISODate: () => ZodISODate,
58849
58767
  ZodISODateTime: () => ZodISODateTime,
58850
- ZodISODate: () => ZodISODate
58768
+ ZodISODuration: () => ZodISODuration,
58769
+ ZodISOTime: () => ZodISOTime,
58770
+ date: () => date2,
58771
+ datetime: () => datetime2,
58772
+ duration: () => duration2,
58773
+ time: () => time2
58851
58774
  });
58852
58775
  function datetime2(params) {
58853
58776
  return _isoDateTime(ZodISODateTime, params);
@@ -63069,7 +62992,7 @@ var init_protocol = __esm(() => {
63069
62992
  });
63070
62993
 
63071
62994
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js
63072
- var require_code = __commonJS((exports) => {
62995
+ var require_code = __commonJS(function(exports) {
63073
62996
  Object.defineProperty(exports, "__esModule", { value: true });
63074
62997
  exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = undefined;
63075
62998
 
@@ -63223,7 +63146,7 @@ var require_code = __commonJS((exports) => {
63223
63146
  });
63224
63147
 
63225
63148
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js
63226
- var require_scope = __commonJS((exports) => {
63149
+ var require_scope = __commonJS(function(exports) {
63227
63150
  Object.defineProperty(exports, "__esModule", { value: true });
63228
63151
  exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = undefined;
63229
63152
  var code_1 = require_code();
@@ -63369,7 +63292,7 @@ var require_scope = __commonJS((exports) => {
63369
63292
  });
63370
63293
 
63371
63294
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js
63372
- var require_codegen = __commonJS((exports) => {
63295
+ var require_codegen = __commonJS(function(exports) {
63373
63296
  Object.defineProperty(exports, "__esModule", { value: true });
63374
63297
  exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = undefined;
63375
63298
  var code_1 = require_code();
@@ -64079,7 +64002,7 @@ var require_codegen = __commonJS((exports) => {
64079
64002
  });
64080
64003
 
64081
64004
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/util.js
64082
- var require_util = __commonJS((exports) => {
64005
+ var require_util = __commonJS(function(exports) {
64083
64006
  Object.defineProperty(exports, "__esModule", { value: true });
64084
64007
  exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = undefined;
64085
64008
  var codegen_1 = require_codegen();
@@ -64243,7 +64166,7 @@ var require_util = __commonJS((exports) => {
64243
64166
  });
64244
64167
 
64245
64168
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/names.js
64246
- var require_names = __commonJS((exports) => {
64169
+ var require_names = __commonJS(function(exports) {
64247
64170
  Object.defineProperty(exports, "__esModule", { value: true });
64248
64171
  var codegen_1 = require_codegen();
64249
64172
  var names = {
@@ -64268,7 +64191,7 @@ var require_names = __commonJS((exports) => {
64268
64191
  });
64269
64192
 
64270
64193
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js
64271
- var require_errors = __commonJS((exports) => {
64194
+ var require_errors = __commonJS(function(exports) {
64272
64195
  Object.defineProperty(exports, "__esModule", { value: true });
64273
64196
  exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = undefined;
64274
64197
  var codegen_1 = require_codegen();
@@ -64386,7 +64309,7 @@ var require_errors = __commonJS((exports) => {
64386
64309
  });
64387
64310
 
64388
64311
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js
64389
- var require_boolSchema = __commonJS((exports) => {
64312
+ var require_boolSchema = __commonJS(function(exports) {
64390
64313
  Object.defineProperty(exports, "__esModule", { value: true });
64391
64314
  exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = undefined;
64392
64315
  var errors_1 = require_errors();
@@ -64434,7 +64357,7 @@ var require_boolSchema = __commonJS((exports) => {
64434
64357
  });
64435
64358
 
64436
64359
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js
64437
- var require_rules = __commonJS((exports) => {
64360
+ var require_rules = __commonJS(function(exports) {
64438
64361
  Object.defineProperty(exports, "__esModule", { value: true });
64439
64362
  exports.getRules = exports.isJSONType = undefined;
64440
64363
  var _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"];
@@ -64462,7 +64385,7 @@ var require_rules = __commonJS((exports) => {
64462
64385
  });
64463
64386
 
64464
64387
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js
64465
- var require_applicability = __commonJS((exports) => {
64388
+ var require_applicability = __commonJS(function(exports) {
64466
64389
  Object.defineProperty(exports, "__esModule", { value: true });
64467
64390
  exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = undefined;
64468
64391
  function schemaHasRulesForType({ schema, self: self2 }, type) {
@@ -64482,7 +64405,7 @@ var require_applicability = __commonJS((exports) => {
64482
64405
  });
64483
64406
 
64484
64407
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js
64485
- var require_dataType = __commonJS((exports) => {
64408
+ var require_dataType = __commonJS(function(exports) {
64486
64409
  Object.defineProperty(exports, "__esModule", { value: true });
64487
64410
  exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = undefined;
64488
64411
  var rules_1 = require_rules();
@@ -64663,7 +64586,7 @@ var require_dataType = __commonJS((exports) => {
64663
64586
  });
64664
64587
 
64665
64588
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js
64666
- var require_defaults = __commonJS((exports) => {
64589
+ var require_defaults = __commonJS(function(exports) {
64667
64590
  Object.defineProperty(exports, "__esModule", { value: true });
64668
64591
  exports.assignDefaults = undefined;
64669
64592
  var codegen_1 = require_codegen();
@@ -64697,7 +64620,7 @@ var require_defaults = __commonJS((exports) => {
64697
64620
  });
64698
64621
 
64699
64622
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js
64700
- var require_code2 = __commonJS((exports) => {
64623
+ var require_code2 = __commonJS(function(exports) {
64701
64624
  Object.defineProperty(exports, "__esModule", { value: true });
64702
64625
  exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = undefined;
64703
64626
  var codegen_1 = require_codegen();
@@ -64826,7 +64749,7 @@ var require_code2 = __commonJS((exports) => {
64826
64749
  });
64827
64750
 
64828
64751
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js
64829
- var require_keyword = __commonJS((exports) => {
64752
+ var require_keyword = __commonJS(function(exports) {
64830
64753
  Object.defineProperty(exports, "__esModule", { value: true });
64831
64754
  exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = undefined;
64832
64755
  var codegen_1 = require_codegen();
@@ -64941,7 +64864,7 @@ var require_keyword = __commonJS((exports) => {
64941
64864
  });
64942
64865
 
64943
64866
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js
64944
- var require_subschema = __commonJS((exports) => {
64867
+ var require_subschema = __commonJS(function(exports) {
64945
64868
  Object.defineProperty(exports, "__esModule", { value: true });
64946
64869
  exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = undefined;
64947
64870
  var codegen_1 = require_codegen();
@@ -65021,7 +64944,7 @@ var require_subschema = __commonJS((exports) => {
65021
64944
  });
65022
64945
 
65023
64946
  // ../../node_modules/.bun/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
65024
- var require_fast_deep_equal = __commonJS((exports, module) => {
64947
+ var require_fast_deep_equal = __commonJS(function(exports, module) {
65025
64948
  module.exports = function equal(a, b) {
65026
64949
  if (a === b)
65027
64950
  return true;
@@ -65063,7 +64986,7 @@ var require_fast_deep_equal = __commonJS((exports, module) => {
65063
64986
  });
65064
64987
 
65065
64988
  // ../../node_modules/.bun/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js
65066
- var require_json_schema_traverse = __commonJS((exports, module) => {
64989
+ var require_json_schema_traverse = __commonJS(function(exports, module) {
65067
64990
  var traverse = module.exports = function(schema, opts, cb) {
65068
64991
  if (typeof opts == "function") {
65069
64992
  cb = opts;
@@ -65146,7 +65069,7 @@ var require_json_schema_traverse = __commonJS((exports, module) => {
65146
65069
  });
65147
65070
 
65148
65071
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js
65149
- var require_resolve = __commonJS((exports) => {
65072
+ var require_resolve = __commonJS(function(exports) {
65150
65073
  Object.defineProperty(exports, "__esModule", { value: true });
65151
65074
  exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = undefined;
65152
65075
  var util_1 = require_util();
@@ -65299,7 +65222,7 @@ var require_resolve = __commonJS((exports) => {
65299
65222
  });
65300
65223
 
65301
65224
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js
65302
- var require_validate = __commonJS((exports) => {
65225
+ var require_validate = __commonJS(function(exports) {
65303
65226
  Object.defineProperty(exports, "__esModule", { value: true });
65304
65227
  exports.getData = exports.KeywordCxt = exports.validateFunctionCode = undefined;
65305
65228
  var boolSchema_1 = require_boolSchema();
@@ -65804,7 +65727,7 @@ var require_validate = __commonJS((exports) => {
65804
65727
  });
65805
65728
 
65806
65729
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js
65807
- var require_validation_error = __commonJS((exports) => {
65730
+ var require_validation_error = __commonJS(function(exports) {
65808
65731
  Object.defineProperty(exports, "__esModule", { value: true });
65809
65732
 
65810
65733
  class ValidationError extends Error {
@@ -65818,7 +65741,7 @@ var require_validation_error = __commonJS((exports) => {
65818
65741
  });
65819
65742
 
65820
65743
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js
65821
- var require_ref_error = __commonJS((exports) => {
65744
+ var require_ref_error = __commonJS(function(exports) {
65822
65745
  Object.defineProperty(exports, "__esModule", { value: true });
65823
65746
  var resolve_1 = require_resolve();
65824
65747
 
@@ -65833,7 +65756,7 @@ var require_ref_error = __commonJS((exports) => {
65833
65756
  });
65834
65757
 
65835
65758
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/index.js
65836
- var require_compile = __commonJS((exports) => {
65759
+ var require_compile = __commonJS(function(exports) {
65837
65760
  Object.defineProperty(exports, "__esModule", { value: true });
65838
65761
  exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = undefined;
65839
65762
  var codegen_1 = require_codegen();
@@ -66054,7 +65977,7 @@ var require_compile = __commonJS((exports) => {
66054
65977
  });
66055
65978
 
66056
65979
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/data.json
66057
- var require_data = __commonJS((exports, module) => {
65980
+ var require_data = __commonJS(function(exports, module) {
66058
65981
  module.exports = {
66059
65982
  $id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
66060
65983
  description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
@@ -66071,7 +65994,7 @@ var require_data = __commonJS((exports, module) => {
66071
65994
  });
66072
65995
 
66073
65996
  // ../../node_modules/.bun/fast-uri@3.1.7/node_modules/fast-uri/lib/utils.js
66074
- var require_utils = __commonJS((exports, module) => {
65997
+ var require_utils = __commonJS(function(exports, module) {
66075
65998
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
66076
65999
  var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
66077
66000
  var isPort = RegExp.prototype.test.bind(/^\d*$/u);
@@ -66588,7 +66511,7 @@ var require_utils = __commonJS((exports, module) => {
66588
66511
  });
66589
66512
 
66590
66513
  // ../../node_modules/.bun/fast-uri@3.1.7/node_modules/fast-uri/lib/schemes.js
66591
- var require_schemes = __commonJS((exports, module) => {
66514
+ var require_schemes = __commonJS(function(exports, module) {
66592
66515
  var { isUUID } = require_utils();
66593
66516
  var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
66594
66517
  var supportedSchemeNames = [
@@ -66763,7 +66686,7 @@ var require_schemes = __commonJS((exports, module) => {
66763
66686
  });
66764
66687
 
66765
66688
  // ../../node_modules/.bun/fast-uri@3.1.7/node_modules/fast-uri/index.js
66766
- var require_fast_uri = __commonJS((exports, module) => {
66689
+ var require_fast_uri = __commonJS(function(exports, module) {
66767
66690
  var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
66768
66691
  var { SCHEMES, getSchemeHandler } = require_schemes();
66769
66692
  var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
@@ -67165,7 +67088,7 @@ var require_fast_uri = __commonJS((exports, module) => {
67165
67088
  });
67166
67089
 
67167
67090
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js
67168
- var require_uri = __commonJS((exports) => {
67091
+ var require_uri = __commonJS(function(exports) {
67169
67092
  Object.defineProperty(exports, "__esModule", { value: true });
67170
67093
  var uri = require_fast_uri();
67171
67094
  uri.code = 'require("ajv/dist/runtime/uri").default';
@@ -67173,7 +67096,7 @@ var require_uri = __commonJS((exports) => {
67173
67096
  });
67174
67097
 
67175
67098
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/core.js
67176
- var require_core = __commonJS((exports) => {
67099
+ var require_core = __commonJS(function(exports) {
67177
67100
  Object.defineProperty(exports, "__esModule", { value: true });
67178
67101
  exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = undefined;
67179
67102
  var validate_1 = require_validate();
@@ -67766,7 +67689,7 @@ var require_core = __commonJS((exports) => {
67766
67689
  });
67767
67690
 
67768
67691
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js
67769
- var require_id = __commonJS((exports) => {
67692
+ var require_id = __commonJS(function(exports) {
67770
67693
  Object.defineProperty(exports, "__esModule", { value: true });
67771
67694
  var def = {
67772
67695
  keyword: "id",
@@ -67778,7 +67701,7 @@ var require_id = __commonJS((exports) => {
67778
67701
  });
67779
67702
 
67780
67703
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js
67781
- var require_ref = __commonJS((exports) => {
67704
+ var require_ref = __commonJS(function(exports) {
67782
67705
  Object.defineProperty(exports, "__esModule", { value: true });
67783
67706
  exports.callRef = exports.getValidate = undefined;
67784
67707
  var ref_error_1 = require_ref_error();
@@ -67897,7 +67820,7 @@ var require_ref = __commonJS((exports) => {
67897
67820
  });
67898
67821
 
67899
67822
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js
67900
- var require_core2 = __commonJS((exports) => {
67823
+ var require_core2 = __commonJS(function(exports) {
67901
67824
  Object.defineProperty(exports, "__esModule", { value: true });
67902
67825
  var id_1 = require_id();
67903
67826
  var ref_1 = require_ref();
@@ -67915,7 +67838,7 @@ var require_core2 = __commonJS((exports) => {
67915
67838
  });
67916
67839
 
67917
67840
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
67918
- var require_limitNumber = __commonJS((exports) => {
67841
+ var require_limitNumber = __commonJS(function(exports) {
67919
67842
  Object.defineProperty(exports, "__esModule", { value: true });
67920
67843
  var codegen_1 = require_codegen();
67921
67844
  var ops = codegen_1.operators;
@@ -67944,7 +67867,7 @@ var require_limitNumber = __commonJS((exports) => {
67944
67867
  });
67945
67868
 
67946
67869
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
67947
- var require_multipleOf = __commonJS((exports) => {
67870
+ var require_multipleOf = __commonJS(function(exports) {
67948
67871
  Object.defineProperty(exports, "__esModule", { value: true });
67949
67872
  var codegen_1 = require_codegen();
67950
67873
  var error2 = {
@@ -67969,7 +67892,7 @@ var require_multipleOf = __commonJS((exports) => {
67969
67892
  });
67970
67893
 
67971
67894
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js
67972
- var require_ucs2length = __commonJS((exports) => {
67895
+ var require_ucs2length = __commonJS(function(exports) {
67973
67896
  Object.defineProperty(exports, "__esModule", { value: true });
67974
67897
  function ucs2length(str2) {
67975
67898
  const len = str2.length;
@@ -67992,7 +67915,7 @@ var require_ucs2length = __commonJS((exports) => {
67992
67915
  });
67993
67916
 
67994
67917
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
67995
- var require_limitLength = __commonJS((exports) => {
67918
+ var require_limitLength = __commonJS(function(exports) {
67996
67919
  Object.defineProperty(exports, "__esModule", { value: true });
67997
67920
  var codegen_1 = require_codegen();
67998
67921
  var util_1 = require_util();
@@ -68021,7 +67944,7 @@ var require_limitLength = __commonJS((exports) => {
68021
67944
  });
68022
67945
 
68023
67946
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
68024
- var require_pattern = __commonJS((exports) => {
67947
+ var require_pattern = __commonJS(function(exports) {
68025
67948
  Object.defineProperty(exports, "__esModule", { value: true });
68026
67949
  var code_1 = require_code2();
68027
67950
  var util_1 = require_util();
@@ -68055,7 +67978,7 @@ var require_pattern = __commonJS((exports) => {
68055
67978
  });
68056
67979
 
68057
67980
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
68058
- var require_limitProperties = __commonJS((exports) => {
67981
+ var require_limitProperties = __commonJS(function(exports) {
68059
67982
  Object.defineProperty(exports, "__esModule", { value: true });
68060
67983
  var codegen_1 = require_codegen();
68061
67984
  var error2 = {
@@ -68081,7 +68004,7 @@ var require_limitProperties = __commonJS((exports) => {
68081
68004
  });
68082
68005
 
68083
68006
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js
68084
- var require_required = __commonJS((exports) => {
68007
+ var require_required = __commonJS(function(exports) {
68085
68008
  Object.defineProperty(exports, "__esModule", { value: true });
68086
68009
  var code_1 = require_code2();
68087
68010
  var codegen_1 = require_codegen();
@@ -68160,7 +68083,7 @@ var require_required = __commonJS((exports) => {
68160
68083
  });
68161
68084
 
68162
68085
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
68163
- var require_limitItems = __commonJS((exports) => {
68086
+ var require_limitItems = __commonJS(function(exports) {
68164
68087
  Object.defineProperty(exports, "__esModule", { value: true });
68165
68088
  var codegen_1 = require_codegen();
68166
68089
  var error2 = {
@@ -68186,7 +68109,7 @@ var require_limitItems = __commonJS((exports) => {
68186
68109
  });
68187
68110
 
68188
68111
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js
68189
- var require_equal = __commonJS((exports) => {
68112
+ var require_equal = __commonJS(function(exports) {
68190
68113
  Object.defineProperty(exports, "__esModule", { value: true });
68191
68114
  var equal = require_fast_deep_equal();
68192
68115
  equal.code = 'require("ajv/dist/runtime/equal").default';
@@ -68194,7 +68117,7 @@ var require_equal = __commonJS((exports) => {
68194
68117
  });
68195
68118
 
68196
68119
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
68197
- var require_uniqueItems = __commonJS((exports) => {
68120
+ var require_uniqueItems = __commonJS(function(exports) {
68198
68121
  Object.defineProperty(exports, "__esModule", { value: true });
68199
68122
  var dataType_1 = require_dataType();
68200
68123
  var codegen_1 = require_codegen();
@@ -68258,7 +68181,7 @@ var require_uniqueItems = __commonJS((exports) => {
68258
68181
  });
68259
68182
 
68260
68183
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js
68261
- var require_const = __commonJS((exports) => {
68184
+ var require_const = __commonJS(function(exports) {
68262
68185
  Object.defineProperty(exports, "__esModule", { value: true });
68263
68186
  var codegen_1 = require_codegen();
68264
68187
  var util_1 = require_util();
@@ -68284,7 +68207,7 @@ var require_const = __commonJS((exports) => {
68284
68207
  });
68285
68208
 
68286
68209
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js
68287
- var require_enum = __commonJS((exports) => {
68210
+ var require_enum = __commonJS(function(exports) {
68288
68211
  Object.defineProperty(exports, "__esModule", { value: true });
68289
68212
  var codegen_1 = require_codegen();
68290
68213
  var util_1 = require_util();
@@ -68330,7 +68253,7 @@ var require_enum = __commonJS((exports) => {
68330
68253
  });
68331
68254
 
68332
68255
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js
68333
- var require_validation = __commonJS((exports) => {
68256
+ var require_validation = __commonJS(function(exports) {
68334
68257
  Object.defineProperty(exports, "__esModule", { value: true });
68335
68258
  var limitNumber_1 = require_limitNumber();
68336
68259
  var multipleOf_1 = require_multipleOf();
@@ -68360,7 +68283,7 @@ var require_validation = __commonJS((exports) => {
68360
68283
  });
68361
68284
 
68362
68285
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
68363
- var require_additionalItems = __commonJS((exports) => {
68286
+ var require_additionalItems = __commonJS(function(exports) {
68364
68287
  Object.defineProperty(exports, "__esModule", { value: true });
68365
68288
  exports.validateAdditionalItems = undefined;
68366
68289
  var codegen_1 = require_codegen();
@@ -68410,7 +68333,7 @@ var require_additionalItems = __commonJS((exports) => {
68410
68333
  });
68411
68334
 
68412
68335
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js
68413
- var require_items = __commonJS((exports) => {
68336
+ var require_items = __commonJS(function(exports) {
68414
68337
  Object.defineProperty(exports, "__esModule", { value: true });
68415
68338
  exports.validateTuple = undefined;
68416
68339
  var codegen_1 = require_codegen();
@@ -68464,7 +68387,7 @@ var require_items = __commonJS((exports) => {
68464
68387
  });
68465
68388
 
68466
68389
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
68467
- var require_prefixItems = __commonJS((exports) => {
68390
+ var require_prefixItems = __commonJS(function(exports) {
68468
68391
  Object.defineProperty(exports, "__esModule", { value: true });
68469
68392
  var items_1 = require_items();
68470
68393
  var def = {
@@ -68478,7 +68401,7 @@ var require_prefixItems = __commonJS((exports) => {
68478
68401
  });
68479
68402
 
68480
68403
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
68481
- var require_items2020 = __commonJS((exports) => {
68404
+ var require_items2020 = __commonJS(function(exports) {
68482
68405
  Object.defineProperty(exports, "__esModule", { value: true });
68483
68406
  var codegen_1 = require_codegen();
68484
68407
  var util_1 = require_util();
@@ -68510,7 +68433,7 @@ var require_items2020 = __commonJS((exports) => {
68510
68433
  });
68511
68434
 
68512
68435
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
68513
- var require_contains = __commonJS((exports) => {
68436
+ var require_contains = __commonJS(function(exports) {
68514
68437
  Object.defineProperty(exports, "__esModule", { value: true });
68515
68438
  var codegen_1 = require_codegen();
68516
68439
  var util_1 = require_util();
@@ -68601,7 +68524,7 @@ var require_contains = __commonJS((exports) => {
68601
68524
  });
68602
68525
 
68603
68526
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
68604
- var require_dependencies = __commonJS((exports) => {
68527
+ var require_dependencies = __commonJS(function(exports) {
68605
68528
  Object.defineProperty(exports, "__esModule", { value: true });
68606
68529
  exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = undefined;
68607
68530
  var codegen_1 = require_codegen();
@@ -68686,7 +68609,7 @@ var require_dependencies = __commonJS((exports) => {
68686
68609
  });
68687
68610
 
68688
68611
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
68689
- var require_propertyNames = __commonJS((exports) => {
68612
+ var require_propertyNames = __commonJS(function(exports) {
68690
68613
  Object.defineProperty(exports, "__esModule", { value: true });
68691
68614
  var codegen_1 = require_codegen();
68692
68615
  var util_1 = require_util();
@@ -68726,7 +68649,7 @@ var require_propertyNames = __commonJS((exports) => {
68726
68649
  });
68727
68650
 
68728
68651
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
68729
- var require_additionalProperties = __commonJS((exports) => {
68652
+ var require_additionalProperties = __commonJS(function(exports) {
68730
68653
  Object.defineProperty(exports, "__esModule", { value: true });
68731
68654
  var code_1 = require_code2();
68732
68655
  var codegen_1 = require_codegen();
@@ -68829,7 +68752,7 @@ var require_additionalProperties = __commonJS((exports) => {
68829
68752
  });
68830
68753
 
68831
68754
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
68832
- var require_properties = __commonJS((exports) => {
68755
+ var require_properties = __commonJS(function(exports) {
68833
68756
  Object.defineProperty(exports, "__esModule", { value: true });
68834
68757
  var validate_1 = require_validate();
68835
68758
  var code_1 = require_code2();
@@ -68884,7 +68807,7 @@ var require_properties = __commonJS((exports) => {
68884
68807
  });
68885
68808
 
68886
68809
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
68887
- var require_patternProperties = __commonJS((exports) => {
68810
+ var require_patternProperties = __commonJS(function(exports) {
68888
68811
  Object.defineProperty(exports, "__esModule", { value: true });
68889
68812
  var code_1 = require_code2();
68890
68813
  var codegen_1 = require_codegen();
@@ -68955,7 +68878,7 @@ var require_patternProperties = __commonJS((exports) => {
68955
68878
  });
68956
68879
 
68957
68880
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js
68958
- var require_not = __commonJS((exports) => {
68881
+ var require_not = __commonJS(function(exports) {
68959
68882
  Object.defineProperty(exports, "__esModule", { value: true });
68960
68883
  var util_1 = require_util();
68961
68884
  var def = {
@@ -68983,7 +68906,7 @@ var require_not = __commonJS((exports) => {
68983
68906
  });
68984
68907
 
68985
68908
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
68986
- var require_anyOf = __commonJS((exports) => {
68909
+ var require_anyOf = __commonJS(function(exports) {
68987
68910
  Object.defineProperty(exports, "__esModule", { value: true });
68988
68911
  var code_1 = require_code2();
68989
68912
  var def = {
@@ -68997,7 +68920,7 @@ var require_anyOf = __commonJS((exports) => {
68997
68920
  });
68998
68921
 
68999
68922
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
69000
- var require_oneOf = __commonJS((exports) => {
68923
+ var require_oneOf = __commonJS(function(exports) {
69001
68924
  Object.defineProperty(exports, "__esModule", { value: true });
69002
68925
  var codegen_1 = require_codegen();
69003
68926
  var util_1 = require_util();
@@ -69052,7 +68975,7 @@ var require_oneOf = __commonJS((exports) => {
69052
68975
  });
69053
68976
 
69054
68977
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
69055
- var require_allOf = __commonJS((exports) => {
68978
+ var require_allOf = __commonJS(function(exports) {
69056
68979
  Object.defineProperty(exports, "__esModule", { value: true });
69057
68980
  var util_1 = require_util();
69058
68981
  var def = {
@@ -69076,7 +68999,7 @@ var require_allOf = __commonJS((exports) => {
69076
68999
  });
69077
69000
 
69078
69001
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js
69079
- var require_if = __commonJS((exports) => {
69002
+ var require_if = __commonJS(function(exports) {
69080
69003
  Object.defineProperty(exports, "__esModule", { value: true });
69081
69004
  var codegen_1 = require_codegen();
69082
69005
  var util_1 = require_util();
@@ -69142,7 +69065,7 @@ var require_if = __commonJS((exports) => {
69142
69065
  });
69143
69066
 
69144
69067
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
69145
- var require_thenElse = __commonJS((exports) => {
69068
+ var require_thenElse = __commonJS(function(exports) {
69146
69069
  Object.defineProperty(exports, "__esModule", { value: true });
69147
69070
  var util_1 = require_util();
69148
69071
  var def = {
@@ -69157,7 +69080,7 @@ var require_thenElse = __commonJS((exports) => {
69157
69080
  });
69158
69081
 
69159
69082
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js
69160
- var require_applicator = __commonJS((exports) => {
69083
+ var require_applicator = __commonJS(function(exports) {
69161
69084
  Object.defineProperty(exports, "__esModule", { value: true });
69162
69085
  var additionalItems_1 = require_additionalItems();
69163
69086
  var prefixItems_1 = require_prefixItems();
@@ -69200,7 +69123,7 @@ var require_applicator = __commonJS((exports) => {
69200
69123
  });
69201
69124
 
69202
69125
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js
69203
- var require_format = __commonJS((exports) => {
69126
+ var require_format = __commonJS(function(exports) {
69204
69127
  Object.defineProperty(exports, "__esModule", { value: true });
69205
69128
  var codegen_1 = require_codegen();
69206
69129
  var error2 = {
@@ -69287,7 +69210,7 @@ var require_format = __commonJS((exports) => {
69287
69210
  });
69288
69211
 
69289
69212
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js
69290
- var require_format2 = __commonJS((exports) => {
69213
+ var require_format2 = __commonJS(function(exports) {
69291
69214
  Object.defineProperty(exports, "__esModule", { value: true });
69292
69215
  var format_1 = require_format();
69293
69216
  var format = [format_1.default];
@@ -69295,7 +69218,7 @@ var require_format2 = __commonJS((exports) => {
69295
69218
  });
69296
69219
 
69297
69220
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js
69298
- var require_metadata = __commonJS((exports) => {
69221
+ var require_metadata = __commonJS(function(exports) {
69299
69222
  Object.defineProperty(exports, "__esModule", { value: true });
69300
69223
  exports.contentVocabulary = exports.metadataVocabulary = undefined;
69301
69224
  exports.metadataVocabulary = [
@@ -69315,7 +69238,7 @@ var require_metadata = __commonJS((exports) => {
69315
69238
  });
69316
69239
 
69317
69240
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js
69318
- var require_draft7 = __commonJS((exports) => {
69241
+ var require_draft7 = __commonJS(function(exports) {
69319
69242
  Object.defineProperty(exports, "__esModule", { value: true });
69320
69243
  var core_1 = require_core2();
69321
69244
  var validation_1 = require_validation();
@@ -69334,7 +69257,7 @@ var require_draft7 = __commonJS((exports) => {
69334
69257
  });
69335
69258
 
69336
69259
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
69337
- var require_types = __commonJS((exports) => {
69260
+ var require_types = __commonJS(function(exports) {
69338
69261
  Object.defineProperty(exports, "__esModule", { value: true });
69339
69262
  exports.DiscrError = undefined;
69340
69263
  var DiscrError;
@@ -69345,7 +69268,7 @@ var require_types = __commonJS((exports) => {
69345
69268
  });
69346
69269
 
69347
69270
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
69348
- var require_discriminator = __commonJS((exports) => {
69271
+ var require_discriminator = __commonJS(function(exports) {
69349
69272
  Object.defineProperty(exports, "__esModule", { value: true });
69350
69273
  var codegen_1 = require_codegen();
69351
69274
  var types_1 = require_types();
@@ -69447,7 +69370,7 @@ var require_discriminator = __commonJS((exports) => {
69447
69370
  });
69448
69371
 
69449
69372
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
69450
- var require_json_schema_draft_07 = __commonJS((exports, module) => {
69373
+ var require_json_schema_draft_07 = __commonJS(function(exports, module) {
69451
69374
  module.exports = {
69452
69375
  $schema: "http://json-schema.org/draft-07/schema#",
69453
69376
  $id: "http://json-schema.org/draft-07/schema#",
@@ -69602,7 +69525,7 @@ var require_json_schema_draft_07 = __commonJS((exports, module) => {
69602
69525
  });
69603
69526
 
69604
69527
  // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/ajv.js
69605
- var require_ajv = __commonJS((exports, module) => {
69528
+ var require_ajv = __commonJS(function(exports, module) {
69606
69529
  Object.defineProperty(exports, "__esModule", { value: true });
69607
69530
  exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = undefined;
69608
69531
  var core_1 = require_core();
@@ -69670,7 +69593,7 @@ var require_ajv = __commonJS((exports, module) => {
69670
69593
  });
69671
69594
 
69672
69595
  // ../../node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/formats.js
69673
- var require_formats = __commonJS((exports) => {
69596
+ var require_formats = __commonJS(function(exports) {
69674
69597
  Object.defineProperty(exports, "__esModule", { value: true });
69675
69598
  exports.formatNames = exports.fastFormats = exports.fullFormats = undefined;
69676
69599
  function fmtDef(validate2, compare) {
@@ -69847,7 +69770,7 @@ var require_formats = __commonJS((exports) => {
69847
69770
  });
69848
69771
 
69849
69772
  // ../../node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/limit.js
69850
- var require_limit = __commonJS((exports) => {
69773
+ var require_limit = __commonJS(function(exports) {
69851
69774
  Object.defineProperty(exports, "__esModule", { value: true });
69852
69775
  exports.formatLimitDefinition = undefined;
69853
69776
  var ajv_1 = require_ajv();
@@ -69916,7 +69839,7 @@ var require_limit = __commonJS((exports) => {
69916
69839
  });
69917
69840
 
69918
69841
  // ../../node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/index.js
69919
- var require_dist = __commonJS((exports, module) => {
69842
+ var require_dist = __commonJS(function(exports, module) {
69920
69843
  Object.defineProperty(exports, "__esModule", { value: true });
69921
69844
  var formats_1 = require_formats();
69922
69845
  var limit_1 = require_limit();
@@ -72741,9 +72664,9 @@ var init_discovery_tools = __esm(() => {
72741
72664
  // src/lib/run-routing.ts
72742
72665
  var exports_run_routing = {};
72743
72666
  __export(exports_run_routing, {
72744
- resolveRunRouting: () => resolveRunRouting,
72667
+ isServerOwnedSkill: () => isServerOwnedSkill,
72745
72668
  resolveConfiguredRunRouting: () => resolveConfiguredRunRouting,
72746
- isServerOwnedSkill: () => isServerOwnedSkill
72669
+ resolveRunRouting: () => resolveRunRouting
72747
72670
  });
72748
72671
  function isServerOwnedSkill(skill) {
72749
72672
  return skill.serverOwned === true;
@@ -74847,8 +74770,8 @@ var init_remote_customer_tools = __esm(() => {
74847
74770
  // src/mcp/server.ts
74848
74771
  var exports_server = {};
74849
74772
  __export(exports_server, {
74850
- server: () => server,
74851
- buildServer: () => buildServer
74773
+ buildServer: () => buildServer,
74774
+ server: () => server
74852
74775
  });
74853
74776
  function buildServer() {
74854
74777
  const server = new McpServer({
@@ -74879,8 +74802,8 @@ var init_server3 = __esm(() => {
74879
74802
  // src/mcp/index.ts
74880
74803
  var exports_mcp = {};
74881
74804
  __export(exports_mcp, {
74882
- startMcpStdio: () => startMcpStdio,
74883
- assertSkillsMcpConfigured: () => assertSkillsMcpConfigured
74805
+ assertSkillsMcpConfigured: () => assertSkillsMcpConfigured,
74806
+ startMcpStdio: () => startMcpStdio
74884
74807
  });
74885
74808
  function printHelp() {
74886
74809
  console.log(`Usage: skills-mcp [options]
@@ -75154,8 +75077,8 @@ var init_runtime_mcp = __esm(() => {
75154
75077
  // src/cli/commands/remote-account.ts
75155
75078
  var exports_remote_account = {};
75156
75079
  __export(exports_remote_account, {
75157
- registerRemoteAccount: () => registerRemoteAccount,
75158
- execute: () => execute
75080
+ execute: () => execute,
75081
+ registerRemoteAccount: () => registerRemoteAccount
75159
75082
  });
75160
75083
  function registerRemoteAccount(parent) {
75161
75084
  parent.command("capabilities").option("--json", "Output as JSON", false).description("Inspect the selected server's supported API contract").action((options) => execute(options, (client) => client.getCapabilities()));
@@ -75182,7 +75105,7 @@ async function execute(options, action) {
75182
75105
  if (options.json)
75183
75106
  console.log(JSON.stringify({
75184
75107
  error: message,
75185
- ...error2 instanceof RemoteCapabilityUnavailableError ? { code: error2.code, status: error2.status } : {}
75108
+ ...error2 instanceof RemoteCapabilityUnavailableError || error2 instanceof RemoteQuoteUnavailableError ? { code: error2.code, status: error2.status } : {}
75186
75109
  }));
75187
75110
  else
75188
75111
  console.error(message);
@@ -77749,9 +77672,9 @@ var init_registry_sync = __esm(() => {
77749
77672
  // src/cli/commands/registry.ts
77750
77673
  var exports_registry2 = {};
77751
77674
  __export(exports_registry2, {
77752
- registerVersions: () => registerVersions,
77675
+ registerPull: () => registerPull,
77753
77676
  registerRegistry: () => registerRegistry,
77754
- registerPull: () => registerPull
77677
+ registerVersions: () => registerVersions
77755
77678
  });
77756
77679
  function registerRegistry(parent) {
77757
77680
  const registry2 = parent.command("registry").description("Generate registry artifacts for hosted skills services");
@@ -77893,12 +77816,12 @@ var init_registry2 = __esm(() => {
77893
77816
  // src/cli/commands/publish.ts
77894
77817
  var exports_publish = {};
77895
77818
  __export(exports_publish, {
77896
- sanitizeGitRemote: () => sanitizeGitRemote,
77897
- registerPublish: () => registerPublish,
77898
- pushSkill: () => pushSkill,
77899
- bumpPatch: () => bumpPatch,
77819
+ PushSkillError: () => PushSkillError,
77900
77820
  buildVersionManifest: () => buildVersionManifest,
77901
- PushSkillError: () => PushSkillError
77821
+ bumpPatch: () => bumpPatch,
77822
+ pushSkill: () => pushSkill,
77823
+ registerPublish: () => registerPublish,
77824
+ sanitizeGitRemote: () => sanitizeGitRemote
77902
77825
  });
77903
77826
  import { execFileSync } from "child_process";
77904
77827
  import { existsSync as existsSync32, readFileSync as readFileSync30 } from "fs";
@@ -80063,43 +79986,43 @@ function throttle(func, throttleMs = 0, options = {}) {
80063
79986
  // ../../node_modules/.bun/ansi-escapes@7.3.0/node_modules/ansi-escapes/base.js
80064
79987
  var exports_base = {};
80065
79988
  __export(exports_base, {
80066
- synchronizedOutput: () => synchronizedOutput,
80067
- setCwd: () => setCwd,
80068
- scrollUp: () => scrollUp,
80069
- scrollDown: () => scrollDown,
80070
- link: () => link,
80071
- image: () => image,
80072
- iTerm: () => iTerm,
80073
- exitAlternativeScreen: () => exitAlternativeScreen,
80074
- eraseUp: () => eraseUp,
80075
- eraseStartLine: () => eraseStartLine,
80076
- eraseScreen: () => eraseScreen,
80077
- eraseLines: () => eraseLines,
80078
- eraseLine: () => eraseLine,
80079
- eraseEndLine: () => eraseEndLine,
80080
- eraseDown: () => eraseDown,
80081
- enterAlternativeScreen: () => enterAlternativeScreen,
80082
- endSynchronizedOutput: () => endSynchronizedOutput,
80083
- cursorUp: () => cursorUp,
80084
- cursorTo: () => cursorTo,
80085
- cursorShow: () => cursorShow,
80086
- cursorSavePosition: () => cursorSavePosition,
80087
- cursorRestorePosition: () => cursorRestorePosition,
80088
- cursorPrevLine: () => cursorPrevLine,
80089
- cursorNextLine: () => cursorNextLine,
80090
- cursorMove: () => cursorMove,
80091
- cursorLeft: () => cursorLeft,
80092
- cursorHide: () => cursorHide,
80093
- cursorGetPosition: () => cursorGetPosition,
80094
- cursorForward: () => cursorForward,
80095
- cursorDown: () => cursorDown,
80096
- cursorBackward: () => cursorBackward,
80097
- clearViewport: () => clearViewport,
80098
- clearTerminal: () => clearTerminal,
80099
- clearScreen: () => clearScreen,
80100
- beginSynchronizedOutput: () => beginSynchronizedOutput,
79989
+ ConEmu: () => ConEmu,
80101
79990
  beep: () => beep,
80102
- ConEmu: () => ConEmu
79991
+ beginSynchronizedOutput: () => beginSynchronizedOutput,
79992
+ clearScreen: () => clearScreen,
79993
+ clearTerminal: () => clearTerminal,
79994
+ clearViewport: () => clearViewport,
79995
+ cursorBackward: () => cursorBackward,
79996
+ cursorDown: () => cursorDown,
79997
+ cursorForward: () => cursorForward,
79998
+ cursorGetPosition: () => cursorGetPosition,
79999
+ cursorHide: () => cursorHide,
80000
+ cursorLeft: () => cursorLeft,
80001
+ cursorMove: () => cursorMove,
80002
+ cursorNextLine: () => cursorNextLine,
80003
+ cursorPrevLine: () => cursorPrevLine,
80004
+ cursorRestorePosition: () => cursorRestorePosition,
80005
+ cursorSavePosition: () => cursorSavePosition,
80006
+ cursorShow: () => cursorShow,
80007
+ cursorTo: () => cursorTo,
80008
+ cursorUp: () => cursorUp,
80009
+ endSynchronizedOutput: () => endSynchronizedOutput,
80010
+ enterAlternativeScreen: () => enterAlternativeScreen,
80011
+ eraseDown: () => eraseDown,
80012
+ eraseEndLine: () => eraseEndLine,
80013
+ eraseLine: () => eraseLine,
80014
+ eraseLines: () => eraseLines,
80015
+ eraseScreen: () => eraseScreen,
80016
+ eraseStartLine: () => eraseStartLine,
80017
+ eraseUp: () => eraseUp,
80018
+ exitAlternativeScreen: () => exitAlternativeScreen,
80019
+ iTerm: () => iTerm,
80020
+ image: () => image,
80021
+ link: () => link,
80022
+ scrollDown: () => scrollDown,
80023
+ scrollUp: () => scrollUp,
80024
+ setCwd: () => setCwd,
80025
+ synchronizedOutput: () => synchronizedOutput
80103
80026
  });
80104
80027
  import process2 from "process";
80105
80028
  import os from "os";
@@ -84984,6 +84907,7 @@ import { spawn } from "child_process";
84984
84907
  import { request as nodeHttpRequest } from "http";
84985
84908
  import { request as nodeHttpsRequest } from "https";
84986
84909
  import { randomUUID as randomUUID2 } from "crypto";
84910
+ import { createRequire } from "module";
84987
84911
  function getPathValue(input, path) {
84988
84912
  return path.split(".").reduce((value, part) => {
84989
84913
  if (value && typeof value === "object" && part in value) {
@@ -86081,6 +86005,22 @@ function setPath(input, path, replacement) {
86081
86005
  if (last2 && last2 in cursor)
86082
86006
  cursor[last2] = replacement;
86083
86007
  }
86008
+ var MAX_CREDENTIAL_FILE_BYTES = 64 * 1024;
86009
+ var INSPECT_CUSTOM = Symbol.for("nodejs.util.inspect.custom");
86010
+ var CREDENTIAL_SEAL = Symbol.for("hasna:contracts:sealedCredential");
86011
+ var AMBIENT_ENVIRONMENT = Symbol.for("hasna:contracts:ambientClientEnvironment");
86012
+ var SECRETS_PACKAGE_SPECIFIER = "@hasna/" + "secrets";
86013
+ var requireSecretsSdk = createRequire(import.meta.url);
86014
+ var IDEMPOTENT_METHODS = new Set(["GET", "HEAD", "PUT", "DELETE", "OPTIONS"]);
86015
+ var AUTHORITY_OVERRIDE_HEADERS = new Set([
86016
+ "host",
86017
+ ":authority",
86018
+ "forwarded",
86019
+ "x-forwarded-host",
86020
+ "x-original-host"
86021
+ ]);
86022
+ var MAX_ENVELOPE_BYTES = 256 * 1024;
86023
+ var MAX_REQUEST_BYTES = MAX_ENVELOPE_BYTES * 2 + 8192;
86084
86024
  function createEvent(input) {
86085
86025
  return {
86086
86026
  id: input.id ?? randomUUID2(),