@switchbot/openapi-cli 3.2.0 → 3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +3 -1
  2. package/dist/index.js +429 -26
  3. package/package.json +9 -5
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
- #!/usr/bin/env node
2
+ import { createRequire as __cjsReq } from "node:module";
3
+ const require = __cjsReq(import.meta.url);
3
4
  var __create = Object.create;
4
5
  var __defProp = Object.defineProperty;
5
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -39,9 +40,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
39
40
  mod
40
41
  ));
41
42
 
43
+ // scripts/cjs-shim.mjs
44
+ import { createRequire } from "node:module";
45
+ var require2;
46
+ var init_cjs_shim = __esm({
47
+ "scripts/cjs-shim.mjs"() {
48
+ "use strict";
49
+ require2 = createRequire(import.meta.url);
50
+ }
51
+ });
52
+
42
53
  // node_modules/commander/lib/error.js
43
54
  var require_error = __commonJS({
44
55
  "node_modules/commander/lib/error.js"(exports) {
56
+ init_cjs_shim();
45
57
  var CommanderError2 = class extends Error {
46
58
  /**
47
59
  * Constructs the CommanderError class
@@ -77,6 +89,7 @@ var require_error = __commonJS({
77
89
  // node_modules/commander/lib/argument.js
78
90
  var require_argument = __commonJS({
79
91
  "node_modules/commander/lib/argument.js"(exports) {
92
+ init_cjs_shim();
80
93
  var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
81
94
  var Argument2 = class {
82
95
  /**
@@ -204,6 +217,7 @@ var require_argument = __commonJS({
204
217
  // node_modules/commander/lib/help.js
205
218
  var require_help = __commonJS({
206
219
  "node_modules/commander/lib/help.js"(exports) {
220
+ init_cjs_shim();
207
221
  var { humanReadableArgName } = require_argument();
208
222
  var Help2 = class {
209
223
  constructor() {
@@ -618,6 +632,7 @@ var require_help = __commonJS({
618
632
  // node_modules/commander/lib/option.js
619
633
  var require_option = __commonJS({
620
634
  "node_modules/commander/lib/option.js"(exports) {
635
+ init_cjs_shim();
621
636
  var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
622
637
  var Option2 = class {
623
638
  /**
@@ -890,6 +905,7 @@ var require_option = __commonJS({
890
905
  // node_modules/commander/lib/suggestSimilar.js
891
906
  var require_suggestSimilar = __commonJS({
892
907
  "node_modules/commander/lib/suggestSimilar.js"(exports) {
908
+ init_cjs_shim();
893
909
  var maxDistance = 3;
894
910
  function editDistance(a, b2) {
895
911
  if (Math.abs(a.length - b2.length) > maxDistance)
@@ -970,6 +986,7 @@ var require_suggestSimilar = __commonJS({
970
986
  // node_modules/commander/lib/command.js
971
987
  var require_command = __commonJS({
972
988
  "node_modules/commander/lib/command.js"(exports) {
989
+ init_cjs_shim();
973
990
  var EventEmitter = __require("node:events").EventEmitter;
974
991
  var childProcess = __require("node:child_process");
975
992
  var path26 = __require("node:path");
@@ -3013,6 +3030,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
3013
3030
  // node_modules/commander/index.js
3014
3031
  var require_commander = __commonJS({
3015
3032
  "node_modules/commander/index.js"(exports) {
3033
+ init_cjs_shim();
3016
3034
  var { Argument: Argument2 } = require_argument();
3017
3035
  var { Command: Command4 } = require_command();
3018
3036
  var { CommanderError: CommanderError2, InvalidArgumentError: InvalidArgumentError2 } = require_error();
@@ -3036,6 +3054,7 @@ var require_commander = __commonJS({
3036
3054
  var import_index, program, createCommand, createArgument, createOption, CommanderError, InvalidArgumentError, InvalidOptionArgumentError, Command, Argument, Option, Help;
3037
3055
  var init_esm = __esm({
3038
3056
  "node_modules/commander/esm.mjs"() {
3057
+ init_cjs_shim();
3039
3058
  import_index = __toESM(require_commander(), 1);
3040
3059
  ({
3041
3060
  program,
@@ -3174,6 +3193,7 @@ function assembleStyles() {
3174
3193
  var ANSI_BACKGROUND_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, styles, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default;
3175
3194
  var init_ansi_styles = __esm({
3176
3195
  "node_modules/chalk/source/vendor/ansi-styles/index.js"() {
3196
+ init_cjs_shim();
3177
3197
  ANSI_BACKGROUND_OFFSET = 10;
3178
3198
  wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
3179
3199
  wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
@@ -3369,6 +3389,7 @@ function createSupportsColor(stream, options = {}) {
3369
3389
  var env, flagForceColor, supportsColor, supports_color_default;
3370
3390
  var init_supports_color = __esm({
3371
3391
  "node_modules/chalk/source/vendor/supports-color/index.js"() {
3392
+ init_cjs_shim();
3372
3393
  ({ env } = process2);
3373
3394
  if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
3374
3395
  flagForceColor = 0;
@@ -3414,6 +3435,7 @@ function stringEncaseCRLFWithFirstIndex(string4, prefix, postfix, index) {
3414
3435
  }
3415
3436
  var init_utilities = __esm({
3416
3437
  "node_modules/chalk/source/utilities.js"() {
3438
+ init_cjs_shim();
3417
3439
  }
3418
3440
  });
3419
3441
 
@@ -3424,6 +3446,7 @@ function createChalk(options) {
3424
3446
  var stdoutColor, stderrColor, GENERATOR, STYLER, IS_EMPTY, levelMapping, styles2, applyOptions, Chalk, chalkFactory, getModelAnsi, usedModels, proto, createStyler, createBuilder, applyStyle, chalk, chalkStderr, source_default;
3425
3447
  var init_source = __esm({
3426
3448
  "node_modules/chalk/source/index.js"() {
3449
+ init_cjs_shim();
3427
3450
  init_ansi_styles();
3428
3451
  init_supports_color();
3429
3452
  init_utilities();
@@ -3714,6 +3737,7 @@ var DEFAULT_LIST_TTL_MS;
3714
3737
  var init_flags = __esm({
3715
3738
  "src/utils/flags.ts"() {
3716
3739
  "use strict";
3740
+ init_cjs_shim();
3717
3741
  DEFAULT_LIST_TTL_MS = 60 * 60 * 1e3;
3718
3742
  }
3719
3743
  });
@@ -3783,6 +3807,7 @@ function enumArg(flagName, allowed) {
3783
3807
  var init_arg_parsers = __esm({
3784
3808
  "src/utils/arg-parsers.ts"() {
3785
3809
  "use strict";
3810
+ init_cjs_shim();
3786
3811
  init_esm();
3787
3812
  init_flags();
3788
3813
  }
@@ -3791,6 +3816,7 @@ var init_arg_parsers = __esm({
3791
3816
  // node_modules/cli-table3/src/debug.js
3792
3817
  var require_debug = __commonJS({
3793
3818
  "node_modules/cli-table3/src/debug.js"(exports, module) {
3819
+ init_cjs_shim();
3794
3820
  var messages = [];
3795
3821
  var level = 0;
3796
3822
  var debug = (msg, min) => {
@@ -3819,6 +3845,7 @@ var require_debug = __commonJS({
3819
3845
  var require_ansi_regex = __commonJS({
3820
3846
  "node_modules/ansi-regex/index.js"(exports, module) {
3821
3847
  "use strict";
3848
+ init_cjs_shim();
3822
3849
  module.exports = ({ onlyFirst = false } = {}) => {
3823
3850
  const pattern = [
3824
3851
  "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
@@ -3833,6 +3860,7 @@ var require_ansi_regex = __commonJS({
3833
3860
  var require_strip_ansi = __commonJS({
3834
3861
  "node_modules/strip-ansi/index.js"(exports, module) {
3835
3862
  "use strict";
3863
+ init_cjs_shim();
3836
3864
  var ansiRegex = require_ansi_regex();
3837
3865
  module.exports = (string4) => typeof string4 === "string" ? string4.replace(ansiRegex(), "") : string4;
3838
3866
  }
@@ -3842,6 +3870,7 @@ var require_strip_ansi = __commonJS({
3842
3870
  var require_is_fullwidth_code_point = __commonJS({
3843
3871
  "node_modules/is-fullwidth-code-point/index.js"(exports, module) {
3844
3872
  "use strict";
3873
+ init_cjs_shim();
3845
3874
  var isFullwidthCodePoint = (codePoint) => {
3846
3875
  if (Number.isNaN(codePoint)) {
3847
3876
  return false;
@@ -3875,6 +3904,7 @@ var require_is_fullwidth_code_point = __commonJS({
3875
3904
  var require_emoji_regex = __commonJS({
3876
3905
  "node_modules/emoji-regex/index.js"(exports, module) {
3877
3906
  "use strict";
3907
+ init_cjs_shim();
3878
3908
  module.exports = function() {
3879
3909
  return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
3880
3910
  };
@@ -3885,6 +3915,7 @@ var require_emoji_regex = __commonJS({
3885
3915
  var require_string_width = __commonJS({
3886
3916
  "node_modules/string-width/index.js"(exports, module) {
3887
3917
  "use strict";
3918
+ init_cjs_shim();
3888
3919
  var stripAnsi = require_strip_ansi();
3889
3920
  var isFullwidthCodePoint = require_is_fullwidth_code_point();
3890
3921
  var emojiRegex = require_emoji_regex();
@@ -3921,6 +3952,7 @@ var require_string_width = __commonJS({
3921
3952
  // node_modules/cli-table3/src/utils.js
3922
3953
  var require_utils = __commonJS({
3923
3954
  "node_modules/cli-table3/src/utils.js"(exports, module) {
3955
+ init_cjs_shim();
3924
3956
  var stringWidth = require_string_width();
3925
3957
  function codeRegex(capture) {
3926
3958
  return capture ? /\u001b\[((?:\d*;){0,5}\d*)m/g : /\u001b\[(?:\d*;){0,5}\d*m/g;
@@ -4223,6 +4255,7 @@ var require_utils = __commonJS({
4223
4255
  // node_modules/@colors/colors/lib/styles.js
4224
4256
  var require_styles = __commonJS({
4225
4257
  "node_modules/@colors/colors/lib/styles.js"(exports, module) {
4258
+ init_cjs_shim();
4226
4259
  var styles3 = {};
4227
4260
  module["exports"] = styles3;
4228
4261
  var codes = {
@@ -4291,6 +4324,7 @@ var require_styles = __commonJS({
4291
4324
  var require_has_flag = __commonJS({
4292
4325
  "node_modules/@colors/colors/lib/system/has-flag.js"(exports, module) {
4293
4326
  "use strict";
4327
+ init_cjs_shim();
4294
4328
  module.exports = function(flag, argv) {
4295
4329
  argv = argv || process.argv;
4296
4330
  var terminatorPos = argv.indexOf("--");
@@ -4305,6 +4339,7 @@ var require_has_flag = __commonJS({
4305
4339
  var require_supports_colors = __commonJS({
4306
4340
  "node_modules/@colors/colors/lib/system/supports-colors.js"(exports, module) {
4307
4341
  "use strict";
4342
+ init_cjs_shim();
4308
4343
  var os25 = __require("os");
4309
4344
  var hasFlag2 = require_has_flag();
4310
4345
  var env2 = process.env;
@@ -4400,6 +4435,7 @@ var require_supports_colors = __commonJS({
4400
4435
  // node_modules/@colors/colors/lib/custom/trap.js
4401
4436
  var require_trap = __commonJS({
4402
4437
  "node_modules/@colors/colors/lib/custom/trap.js"(exports, module) {
4438
+ init_cjs_shim();
4403
4439
  module["exports"] = function runTheTrap(text, options) {
4404
4440
  var result = "";
4405
4441
  text = text || "Run the trap, drop the bass";
@@ -4469,6 +4505,7 @@ var require_trap = __commonJS({
4469
4505
  // node_modules/@colors/colors/lib/custom/zalgo.js
4470
4506
  var require_zalgo = __commonJS({
4471
4507
  "node_modules/@colors/colors/lib/custom/zalgo.js"(exports, module) {
4508
+ init_cjs_shim();
4472
4509
  module["exports"] = function zalgo(text, options) {
4473
4510
  text = text || " he is here ";
4474
4511
  var soul = {
@@ -4656,6 +4693,7 @@ var require_zalgo = __commonJS({
4656
4693
  // node_modules/@colors/colors/lib/maps/america.js
4657
4694
  var require_america = __commonJS({
4658
4695
  "node_modules/@colors/colors/lib/maps/america.js"(exports, module) {
4696
+ init_cjs_shim();
4659
4697
  module["exports"] = function(colors) {
4660
4698
  return function(letter, i, exploded) {
4661
4699
  if (letter === " ") return letter;
@@ -4675,6 +4713,7 @@ var require_america = __commonJS({
4675
4713
  // node_modules/@colors/colors/lib/maps/zebra.js
4676
4714
  var require_zebra = __commonJS({
4677
4715
  "node_modules/@colors/colors/lib/maps/zebra.js"(exports, module) {
4716
+ init_cjs_shim();
4678
4717
  module["exports"] = function(colors) {
4679
4718
  return function(letter, i, exploded) {
4680
4719
  return i % 2 === 0 ? letter : colors.inverse(letter);
@@ -4686,6 +4725,7 @@ var require_zebra = __commonJS({
4686
4725
  // node_modules/@colors/colors/lib/maps/rainbow.js
4687
4726
  var require_rainbow = __commonJS({
4688
4727
  "node_modules/@colors/colors/lib/maps/rainbow.js"(exports, module) {
4728
+ init_cjs_shim();
4689
4729
  module["exports"] = function(colors) {
4690
4730
  var rainbowColors = ["red", "yellow", "green", "blue", "magenta"];
4691
4731
  return function(letter, i, exploded) {
@@ -4702,6 +4742,7 @@ var require_rainbow = __commonJS({
4702
4742
  // node_modules/@colors/colors/lib/maps/random.js
4703
4743
  var require_random = __commonJS({
4704
4744
  "node_modules/@colors/colors/lib/maps/random.js"(exports, module) {
4745
+ init_cjs_shim();
4705
4746
  module["exports"] = function(colors) {
4706
4747
  var available = [
4707
4748
  "underline",
@@ -4732,6 +4773,7 @@ var require_random = __commonJS({
4732
4773
  // node_modules/@colors/colors/lib/colors.js
4733
4774
  var require_colors = __commonJS({
4734
4775
  "node_modules/@colors/colors/lib/colors.js"(exports, module) {
4776
+ init_cjs_shim();
4735
4777
  var colors = {};
4736
4778
  module["exports"] = colors;
4737
4779
  colors.themes = {};
@@ -4876,6 +4918,7 @@ var require_colors = __commonJS({
4876
4918
  // node_modules/@colors/colors/safe.js
4877
4919
  var require_safe = __commonJS({
4878
4920
  "node_modules/@colors/colors/safe.js"(exports, module) {
4921
+ init_cjs_shim();
4879
4922
  var colors = require_colors();
4880
4923
  module["exports"] = colors;
4881
4924
  }
@@ -4884,6 +4927,7 @@ var require_safe = __commonJS({
4884
4927
  // node_modules/cli-table3/src/cell.js
4885
4928
  var require_cell = __commonJS({
4886
4929
  "node_modules/cli-table3/src/cell.js"(exports, module) {
4930
+ init_cjs_shim();
4887
4931
  var { info, debug } = require_debug();
4888
4932
  var utils = require_utils();
4889
4933
  var Cell = class _Cell {
@@ -5258,6 +5302,7 @@ var require_cell = __commonJS({
5258
5302
  // node_modules/cli-table3/src/layout-manager.js
5259
5303
  var require_layout_manager = __commonJS({
5260
5304
  "node_modules/cli-table3/src/layout-manager.js"(exports, module) {
5305
+ init_cjs_shim();
5261
5306
  var { warn, debug } = require_debug();
5262
5307
  var Cell = require_cell();
5263
5308
  var { ColSpanCell, RowSpanCell } = Cell;
@@ -5495,6 +5540,7 @@ var require_layout_manager = __commonJS({
5495
5540
  // node_modules/cli-table3/src/table.js
5496
5541
  var require_table = __commonJS({
5497
5542
  "node_modules/cli-table3/src/table.js"(exports, module) {
5543
+ init_cjs_shim();
5498
5544
  var debug = require_debug();
5499
5545
  var utils = require_utils();
5500
5546
  var tableLayout = require_layout_manager();
@@ -5589,6 +5635,7 @@ var require_table = __commonJS({
5589
5635
  // node_modules/cli-table3/index.js
5590
5636
  var require_cli_table3 = __commonJS({
5591
5637
  "node_modules/cli-table3/index.js"(exports, module) {
5638
+ init_cjs_shim();
5592
5639
  module.exports = require_table();
5593
5640
  }
5594
5641
  });
@@ -5600,6 +5647,7 @@ function unsafeStringify(arr, offset = 0) {
5600
5647
  var byteToHex;
5601
5648
  var init_stringify = __esm({
5602
5649
  "node_modules/uuid/dist/esm/stringify.js"() {
5650
+ init_cjs_shim();
5603
5651
  byteToHex = [];
5604
5652
  for (let i = 0; i < 256; ++i) {
5605
5653
  byteToHex.push((i + 256).toString(16).slice(1));
@@ -5619,6 +5667,7 @@ function rng() {
5619
5667
  var rnds8Pool, poolPtr;
5620
5668
  var init_rng = __esm({
5621
5669
  "node_modules/uuid/dist/esm/rng.js"() {
5670
+ init_cjs_shim();
5622
5671
  rnds8Pool = new Uint8Array(256);
5623
5672
  poolPtr = rnds8Pool.length;
5624
5673
  }
@@ -5629,6 +5678,7 @@ import { randomUUID } from "crypto";
5629
5678
  var native_default;
5630
5679
  var init_native = __esm({
5631
5680
  "node_modules/uuid/dist/esm/native.js"() {
5681
+ init_cjs_shim();
5632
5682
  native_default = { randomUUID };
5633
5683
  }
5634
5684
  });
@@ -5660,6 +5710,7 @@ function v4(options, buf, offset) {
5660
5710
  var v4_default;
5661
5711
  var init_v4 = __esm({
5662
5712
  "node_modules/uuid/dist/esm/v4.js"() {
5713
+ init_cjs_shim();
5663
5714
  init_native();
5664
5715
  init_rng();
5665
5716
  init_stringify();
@@ -5670,6 +5721,7 @@ var init_v4 = __esm({
5670
5721
  // node_modules/uuid/dist/esm/index.js
5671
5722
  var init_esm2 = __esm({
5672
5723
  "node_modules/uuid/dist/esm/index.js"() {
5724
+ init_cjs_shim();
5673
5725
  init_v4();
5674
5726
  }
5675
5727
  });
@@ -5693,6 +5745,7 @@ function buildAuthHeaders(token, secret) {
5693
5745
  var init_auth = __esm({
5694
5746
  "src/auth.ts"() {
5695
5747
  "use strict";
5748
+ init_cjs_shim();
5696
5749
  init_esm2();
5697
5750
  }
5698
5751
  });
@@ -5711,6 +5764,7 @@ var requestContext;
5711
5764
  var init_request_context = __esm({
5712
5765
  "src/lib/request-context.ts"() {
5713
5766
  "use strict";
5767
+ init_cjs_shim();
5714
5768
  init_flags();
5715
5769
  requestContext = new AsyncLocalStorage();
5716
5770
  }
@@ -5799,6 +5853,7 @@ function createFileBackend() {
5799
5853
  var init_file = __esm({
5800
5854
  "src/credentials/backends/file.ts"() {
5801
5855
  "use strict";
5856
+ init_cjs_shim();
5802
5857
  init_keychain();
5803
5858
  }
5804
5859
  });
@@ -5926,6 +5981,7 @@ function createMacOsBackend() {
5926
5981
  var init_macos = __esm({
5927
5982
  "src/credentials/backends/macos.ts"() {
5928
5983
  "use strict";
5984
+ init_cjs_shim();
5929
5985
  init_keychain();
5930
5986
  }
5931
5987
  });
@@ -6049,6 +6105,7 @@ function createLinuxBackend() {
6049
6105
  var init_linux = __esm({
6050
6106
  "src/credentials/backends/linux.ts"() {
6051
6107
  "use strict";
6108
+ init_cjs_shim();
6052
6109
  init_keychain();
6053
6110
  }
6054
6111
  });
@@ -6179,6 +6236,7 @@ var PS_HEADER, PS_GET, PS_SET, PS_DELETE;
6179
6236
  var init_windows = __esm({
6180
6237
  "src/credentials/backends/windows.ts"() {
6181
6238
  "use strict";
6239
+ init_cjs_shim();
6182
6240
  init_keychain();
6183
6241
  PS_HEADER = `$ErrorActionPreference = 'Stop'
6184
6242
  Add-Type -MemberDefinition @'
@@ -6292,6 +6350,7 @@ var CREDENTIAL_SERVICE, CREDENTIAL_FIELDS, KeychainError;
6292
6350
  var init_keychain = __esm({
6293
6351
  "src/credentials/keychain.ts"() {
6294
6352
  "use strict";
6353
+ init_cjs_shim();
6295
6354
  CREDENTIAL_SERVICE = "com.openclaw.switchbot";
6296
6355
  CREDENTIAL_FIELDS = ["token", "secret"];
6297
6356
  KeychainError = class extends Error {
@@ -6327,6 +6386,7 @@ var cache;
6327
6386
  var init_prime = __esm({
6328
6387
  "src/credentials/prime.ts"() {
6329
6388
  "use strict";
6389
+ init_cjs_shim();
6330
6390
  init_keychain();
6331
6391
  cache = null;
6332
6392
  }
@@ -6536,6 +6596,7 @@ function maskSecret(secret) {
6536
6596
  var init_config = __esm({
6537
6597
  "src/config.ts"() {
6538
6598
  "use strict";
6599
+ init_cjs_shim();
6539
6600
  init_flags();
6540
6601
  init_request_context();
6541
6602
  init_output();
@@ -6578,6 +6639,7 @@ var BASE_MS, MAX_MS, CircuitOpenError, CircuitBreaker;
6578
6639
  var init_retry = __esm({
6579
6640
  "src/utils/retry.ts"() {
6580
6641
  "use strict";
6642
+ init_cjs_shim();
6581
6643
  BASE_MS = 1e3;
6582
6644
  MAX_MS = 3e4;
6583
6645
  CircuitOpenError = class extends Error {
@@ -6818,6 +6880,7 @@ var DAILY_QUOTA, MAX_RETAINED_DAYS, FLUSH_DELAY_MS, quotaCache, loadedPath, dirt
6818
6880
  var init_quota = __esm({
6819
6881
  "src/utils/quota.ts"() {
6820
6882
  "use strict";
6883
+ init_cjs_shim();
6821
6884
  DAILY_QUOTA = 1e4;
6822
6885
  MAX_RETAINED_DAYS = 7;
6823
6886
  FLUSH_DELAY_MS = 250;
@@ -6866,6 +6929,7 @@ var SENSITIVE_HEADER_PATTERNS, SENSITIVE_EXACT_KEYS, unsafeBannerShown;
6866
6929
  var init_redact = __esm({
6867
6930
  "src/utils/redact.ts"() {
6868
6931
  "use strict";
6932
+ init_cjs_shim();
6869
6933
  init_flags();
6870
6934
  SENSITIVE_HEADER_PATTERNS = [
6871
6935
  /^authorization$/i,
@@ -7073,6 +7137,7 @@ var DailyCapExceededError, API_ERROR_MESSAGES, DryRunSignal, apiCircuitBreaker,
7073
7137
  var init_client = __esm({
7074
7138
  "src/api/client.ts"() {
7075
7139
  "use strict";
7140
+ init_cjs_shim();
7076
7141
  init_source();
7077
7142
  init_auth();
7078
7143
  init_config();
@@ -7459,6 +7524,7 @@ var import_cli_table3, SCHEMA_VERSION, ASCII_BORDER_CHARS, UsageError, Structure
7459
7524
  var init_output = __esm({
7460
7525
  "src/utils/output.ts"() {
7461
7526
  "use strict";
7527
+ init_cjs_shim();
7462
7528
  import_cli_table3 = __toESM(require_cli_table3(), 1);
7463
7529
  init_source();
7464
7530
  init_client();
@@ -7503,6 +7569,7 @@ var IDENTITY, PRODUCT_TAGLINE;
7503
7569
  var init_identity = __esm({
7504
7570
  "src/commands/identity.ts"() {
7505
7571
  "use strict";
7572
+ init_cjs_shim();
7506
7573
  IDENTITY = {
7507
7574
  product: "SwitchBot",
7508
7575
  domain: "IoT smart home device control",
@@ -7670,6 +7737,7 @@ var CATALOG_SCHEMA_VERSION, STATUS_FIELD_DESCRIPTIONS, onOff, onOffToggle, light
7670
7737
  var init_catalog = __esm({
7671
7738
  "src/devices/catalog.ts"() {
7672
7739
  "use strict";
7740
+ init_cjs_shim();
7673
7741
  CATALOG_SCHEMA_VERSION = "1.0";
7674
7742
  STATUS_FIELD_DESCRIPTIONS = {
7675
7743
  power: "Power state (on/off)",
@@ -8458,6 +8526,7 @@ var DEFAULT_STATUS_GC_TTL_MS, _listCacheByProfile, _statusCacheByProfile;
8458
8526
  var init_cache = __esm({
8459
8527
  "src/devices/cache.ts"() {
8460
8528
  "use strict";
8529
+ init_cjs_shim();
8461
8530
  init_flags();
8462
8531
  init_request_context();
8463
8532
  DEFAULT_STATUS_GC_TTL_MS = 24 * 60 * 60 * 1e3;
@@ -8476,6 +8545,7 @@ var SwitchBotMqttClient;
8476
8545
  var init_client2 = __esm({
8477
8546
  "src/mqtt/client.ts"() {
8478
8547
  "use strict";
8548
+ init_cjs_shim();
8479
8549
  SwitchBotMqttClient = class {
8480
8550
  client = null;
8481
8551
  credential;
@@ -8676,6 +8746,7 @@ var CREDENTIAL_ENDPOINT;
8676
8746
  var init_credential = __esm({
8677
8747
  "src/mqtt/credential.ts"() {
8678
8748
  "use strict";
8749
+ init_cjs_shim();
8679
8750
  init_auth();
8680
8751
  CREDENTIAL_ENDPOINT = "https://api.switchbot.net/v1.1/iot/credential";
8681
8752
  }
@@ -8685,6 +8756,7 @@ var init_credential = __esm({
8685
8756
  var require_identity = __commonJS({
8686
8757
  "node_modules/yaml/dist/nodes/identity.js"(exports) {
8687
8758
  "use strict";
8759
+ init_cjs_shim();
8688
8760
  var ALIAS = /* @__PURE__ */ Symbol.for("yaml.alias");
8689
8761
  var DOC = /* @__PURE__ */ Symbol.for("yaml.document");
8690
8762
  var MAP = /* @__PURE__ */ Symbol.for("yaml.map");
@@ -8742,6 +8814,7 @@ var require_identity = __commonJS({
8742
8814
  var require_visit = __commonJS({
8743
8815
  "node_modules/yaml/dist/visit.js"(exports) {
8744
8816
  "use strict";
8817
+ init_cjs_shim();
8745
8818
  var identity = require_identity();
8746
8819
  var BREAK = /* @__PURE__ */ Symbol("break visit");
8747
8820
  var SKIP = /* @__PURE__ */ Symbol("skip children");
@@ -8900,6 +8973,7 @@ var require_visit = __commonJS({
8900
8973
  var require_directives = __commonJS({
8901
8974
  "node_modules/yaml/dist/doc/directives.js"(exports) {
8902
8975
  "use strict";
8976
+ init_cjs_shim();
8903
8977
  var identity = require_identity();
8904
8978
  var visit = require_visit();
8905
8979
  var escapeChars = {
@@ -9071,6 +9145,7 @@ var require_directives = __commonJS({
9071
9145
  var require_anchors = __commonJS({
9072
9146
  "node_modules/yaml/dist/doc/anchors.js"(exports) {
9073
9147
  "use strict";
9148
+ init_cjs_shim();
9074
9149
  var identity = require_identity();
9075
9150
  var visit = require_visit();
9076
9151
  function anchorIsValid(anchor) {
@@ -9141,6 +9216,7 @@ var require_anchors = __commonJS({
9141
9216
  var require_applyReviver = __commonJS({
9142
9217
  "node_modules/yaml/dist/doc/applyReviver.js"(exports) {
9143
9218
  "use strict";
9219
+ init_cjs_shim();
9144
9220
  function applyReviver(reviver, obj, key, val) {
9145
9221
  if (val && typeof val === "object") {
9146
9222
  if (Array.isArray(val)) {
@@ -9191,6 +9267,7 @@ var require_applyReviver = __commonJS({
9191
9267
  var require_toJS = __commonJS({
9192
9268
  "node_modules/yaml/dist/nodes/toJS.js"(exports) {
9193
9269
  "use strict";
9270
+ init_cjs_shim();
9194
9271
  var identity = require_identity();
9195
9272
  function toJS(value, arg, ctx) {
9196
9273
  if (Array.isArray(value))
@@ -9221,6 +9298,7 @@ var require_toJS = __commonJS({
9221
9298
  var require_Node = __commonJS({
9222
9299
  "node_modules/yaml/dist/nodes/Node.js"(exports) {
9223
9300
  "use strict";
9301
+ init_cjs_shim();
9224
9302
  var applyReviver = require_applyReviver();
9225
9303
  var identity = require_identity();
9226
9304
  var toJS = require_toJS();
@@ -9262,6 +9340,7 @@ var require_Node = __commonJS({
9262
9340
  var require_Alias = __commonJS({
9263
9341
  "node_modules/yaml/dist/nodes/Alias.js"(exports) {
9264
9342
  "use strict";
9343
+ init_cjs_shim();
9265
9344
  var anchors = require_anchors();
9266
9345
  var visit = require_visit();
9267
9346
  var identity = require_identity();
@@ -9376,6 +9455,7 @@ var require_Alias = __commonJS({
9376
9455
  var require_Scalar = __commonJS({
9377
9456
  "node_modules/yaml/dist/nodes/Scalar.js"(exports) {
9378
9457
  "use strict";
9458
+ init_cjs_shim();
9379
9459
  var identity = require_identity();
9380
9460
  var Node = require_Node();
9381
9461
  var toJS = require_toJS();
@@ -9406,6 +9486,7 @@ var require_Scalar = __commonJS({
9406
9486
  var require_createNode = __commonJS({
9407
9487
  "node_modules/yaml/dist/doc/createNode.js"(exports) {
9408
9488
  "use strict";
9489
+ init_cjs_shim();
9409
9490
  var Alias = require_Alias();
9410
9491
  var identity = require_identity();
9411
9492
  var Scalar = require_Scalar();
@@ -9481,6 +9562,7 @@ var require_createNode = __commonJS({
9481
9562
  var require_Collection = __commonJS({
9482
9563
  "node_modules/yaml/dist/nodes/Collection.js"(exports) {
9483
9564
  "use strict";
9565
+ init_cjs_shim();
9484
9566
  var createNode = require_createNode();
9485
9567
  var identity = require_identity();
9486
9568
  var Node = require_Node();
@@ -9624,6 +9706,7 @@ var require_Collection = __commonJS({
9624
9706
  var require_stringifyComment = __commonJS({
9625
9707
  "node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
9626
9708
  "use strict";
9709
+ init_cjs_shim();
9627
9710
  var stringifyComment = (str2) => str2.replace(/^(?!$)(?: $)?/gm, "#");
9628
9711
  function indentComment(comment, indent) {
9629
9712
  if (/^\n+$/.test(comment))
@@ -9641,6 +9724,7 @@ var require_stringifyComment = __commonJS({
9641
9724
  var require_foldFlowLines = __commonJS({
9642
9725
  "node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
9643
9726
  "use strict";
9727
+ init_cjs_shim();
9644
9728
  var FOLD_FLOW = "flow";
9645
9729
  var FOLD_BLOCK = "block";
9646
9730
  var FOLD_QUOTED = "quoted";
@@ -9777,6 +9861,7 @@ ${indent}${text.slice(fold + 1, end2)}`;
9777
9861
  var require_stringifyString = __commonJS({
9778
9862
  "node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
9779
9863
  "use strict";
9864
+ init_cjs_shim();
9780
9865
  var Scalar = require_Scalar();
9781
9866
  var foldFlowLines = require_foldFlowLines();
9782
9867
  var getFoldOptions = (ctx, isBlock) => ({
@@ -10060,6 +10145,7 @@ ${indent}`);
10060
10145
  var require_stringify = __commonJS({
10061
10146
  "node_modules/yaml/dist/stringify/stringify.js"(exports) {
10062
10147
  "use strict";
10148
+ init_cjs_shim();
10063
10149
  var anchors = require_anchors();
10064
10150
  var identity = require_identity();
10065
10151
  var stringifyComment = require_stringifyComment();
@@ -10184,6 +10270,7 @@ ${ctx.indent}${str2}`;
10184
10270
  var require_stringifyPair = __commonJS({
10185
10271
  "node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
10186
10272
  "use strict";
10273
+ init_cjs_shim();
10187
10274
  var identity = require_identity();
10188
10275
  var Scalar = require_Scalar();
10189
10276
  var stringify = require_stringify();
@@ -10317,6 +10404,7 @@ ${ctx.indent}`;
10317
10404
  var require_log = __commonJS({
10318
10405
  "node_modules/yaml/dist/log.js"(exports) {
10319
10406
  "use strict";
10407
+ init_cjs_shim();
10320
10408
  var node_process = __require("process");
10321
10409
  function debug(logLevel2, ...messages) {
10322
10410
  if (logLevel2 === "debug")
@@ -10339,6 +10427,7 @@ var require_log = __commonJS({
10339
10427
  var require_merge = __commonJS({
10340
10428
  "node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
10341
10429
  "use strict";
10430
+ init_cjs_shim();
10342
10431
  var identity = require_identity();
10343
10432
  var Scalar = require_Scalar();
10344
10433
  var MERGE_KEY = "<<";
@@ -10396,6 +10485,7 @@ var require_merge = __commonJS({
10396
10485
  var require_addPairToJSMap = __commonJS({
10397
10486
  "node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
10398
10487
  "use strict";
10488
+ init_cjs_shim();
10399
10489
  var log2 = require_log();
10400
10490
  var merge3 = require_merge();
10401
10491
  var stringify = require_stringify();
@@ -10460,6 +10550,7 @@ var require_addPairToJSMap = __commonJS({
10460
10550
  var require_Pair = __commonJS({
10461
10551
  "node_modules/yaml/dist/nodes/Pair.js"(exports) {
10462
10552
  "use strict";
10553
+ init_cjs_shim();
10463
10554
  var createNode = require_createNode();
10464
10555
  var stringifyPair = require_stringifyPair();
10465
10556
  var addPairToJSMap = require_addPairToJSMap();
@@ -10500,6 +10591,7 @@ var require_Pair = __commonJS({
10500
10591
  var require_stringifyCollection = __commonJS({
10501
10592
  "node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
10502
10593
  "use strict";
10594
+ init_cjs_shim();
10503
10595
  var identity = require_identity();
10504
10596
  var stringify = require_stringify();
10505
10597
  var stringifyComment = require_stringifyComment();
@@ -10651,6 +10743,7 @@ ${indent}${end}`;
10651
10743
  var require_YAMLMap = __commonJS({
10652
10744
  "node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
10653
10745
  "use strict";
10746
+ init_cjs_shim();
10654
10747
  var stringifyCollection = require_stringifyCollection();
10655
10748
  var addPairToJSMap = require_addPairToJSMap();
10656
10749
  var Collection = require_Collection();
@@ -10795,6 +10888,7 @@ var require_YAMLMap = __commonJS({
10795
10888
  var require_map = __commonJS({
10796
10889
  "node_modules/yaml/dist/schema/common/map.js"(exports) {
10797
10890
  "use strict";
10891
+ init_cjs_shim();
10798
10892
  var identity = require_identity();
10799
10893
  var YAMLMap = require_YAMLMap();
10800
10894
  var map3 = {
@@ -10817,6 +10911,7 @@ var require_map = __commonJS({
10817
10911
  var require_YAMLSeq = __commonJS({
10818
10912
  "node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
10819
10913
  "use strict";
10914
+ init_cjs_shim();
10820
10915
  var createNode = require_createNode();
10821
10916
  var stringifyCollection = require_stringifyCollection();
10822
10917
  var Collection = require_Collection();
@@ -10933,6 +11028,7 @@ var require_YAMLSeq = __commonJS({
10933
11028
  var require_seq = __commonJS({
10934
11029
  "node_modules/yaml/dist/schema/common/seq.js"(exports) {
10935
11030
  "use strict";
11031
+ init_cjs_shim();
10936
11032
  var identity = require_identity();
10937
11033
  var YAMLSeq = require_YAMLSeq();
10938
11034
  var seq2 = {
@@ -10955,6 +11051,7 @@ var require_seq = __commonJS({
10955
11051
  var require_string = __commonJS({
10956
11052
  "node_modules/yaml/dist/schema/common/string.js"(exports) {
10957
11053
  "use strict";
11054
+ init_cjs_shim();
10958
11055
  var stringifyString = require_stringifyString();
10959
11056
  var string4 = {
10960
11057
  identify: (value) => typeof value === "string",
@@ -10974,6 +11071,7 @@ var require_string = __commonJS({
10974
11071
  var require_null = __commonJS({
10975
11072
  "node_modules/yaml/dist/schema/common/null.js"(exports) {
10976
11073
  "use strict";
11074
+ init_cjs_shim();
10977
11075
  var Scalar = require_Scalar();
10978
11076
  var nullTag = {
10979
11077
  identify: (value) => value == null,
@@ -10992,6 +11090,7 @@ var require_null = __commonJS({
10992
11090
  var require_bool = __commonJS({
10993
11091
  "node_modules/yaml/dist/schema/core/bool.js"(exports) {
10994
11092
  "use strict";
11093
+ init_cjs_shim();
10995
11094
  var Scalar = require_Scalar();
10996
11095
  var boolTag = {
10997
11096
  identify: (value) => typeof value === "boolean",
@@ -11016,6 +11115,7 @@ var require_bool = __commonJS({
11016
11115
  var require_stringifyNumber = __commonJS({
11017
11116
  "node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
11018
11117
  "use strict";
11118
+ init_cjs_shim();
11019
11119
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
11020
11120
  if (typeof value === "bigint")
11021
11121
  return String(value);
@@ -11043,6 +11143,7 @@ var require_stringifyNumber = __commonJS({
11043
11143
  var require_float = __commonJS({
11044
11144
  "node_modules/yaml/dist/schema/core/float.js"(exports) {
11045
11145
  "use strict";
11146
+ init_cjs_shim();
11046
11147
  var Scalar = require_Scalar();
11047
11148
  var stringifyNumber = require_stringifyNumber();
11048
11149
  var floatNaN = {
@@ -11089,6 +11190,7 @@ var require_float = __commonJS({
11089
11190
  var require_int = __commonJS({
11090
11191
  "node_modules/yaml/dist/schema/core/int.js"(exports) {
11091
11192
  "use strict";
11193
+ init_cjs_shim();
11092
11194
  var stringifyNumber = require_stringifyNumber();
11093
11195
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
11094
11196
  var intResolve = (str2, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str2) : parseInt(str2.substring(offset), radix);
@@ -11134,6 +11236,7 @@ var require_int = __commonJS({
11134
11236
  var require_schema = __commonJS({
11135
11237
  "node_modules/yaml/dist/schema/core/schema.js"(exports) {
11136
11238
  "use strict";
11239
+ init_cjs_shim();
11137
11240
  var map3 = require_map();
11138
11241
  var _null5 = require_null();
11139
11242
  var seq2 = require_seq();
@@ -11162,6 +11265,7 @@ var require_schema = __commonJS({
11162
11265
  var require_schema2 = __commonJS({
11163
11266
  "node_modules/yaml/dist/schema/json/schema.js"(exports) {
11164
11267
  "use strict";
11268
+ init_cjs_shim();
11165
11269
  var Scalar = require_Scalar();
11166
11270
  var map3 = require_map();
11167
11271
  var seq2 = require_seq();
@@ -11229,6 +11333,7 @@ var require_schema2 = __commonJS({
11229
11333
  var require_binary = __commonJS({
11230
11334
  "node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
11231
11335
  "use strict";
11336
+ init_cjs_shim();
11232
11337
  var node_buffer = __require("buffer");
11233
11338
  var Scalar = require_Scalar();
11234
11339
  var stringifyString = require_stringifyString();
@@ -11295,6 +11400,7 @@ var require_binary = __commonJS({
11295
11400
  var require_pairs = __commonJS({
11296
11401
  "node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
11297
11402
  "use strict";
11403
+ init_cjs_shim();
11298
11404
  var identity = require_identity();
11299
11405
  var Pair = require_Pair();
11300
11406
  var Scalar = require_Scalar();
@@ -11373,6 +11479,7 @@ ${cn.comment}` : item.comment;
11373
11479
  var require_omap = __commonJS({
11374
11480
  "node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
11375
11481
  "use strict";
11482
+ init_cjs_shim();
11376
11483
  var identity = require_identity();
11377
11484
  var toJS = require_toJS();
11378
11485
  var YAMLMap = require_YAMLMap();
@@ -11451,6 +11558,7 @@ var require_omap = __commonJS({
11451
11558
  var require_bool2 = __commonJS({
11452
11559
  "node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
11453
11560
  "use strict";
11561
+ init_cjs_shim();
11454
11562
  var Scalar = require_Scalar();
11455
11563
  function boolStringify({ value, source }, ctx) {
11456
11564
  const boolObj = value ? trueTag : falseTag;
@@ -11483,6 +11591,7 @@ var require_bool2 = __commonJS({
11483
11591
  var require_float2 = __commonJS({
11484
11592
  "node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
11485
11593
  "use strict";
11594
+ init_cjs_shim();
11486
11595
  var Scalar = require_Scalar();
11487
11596
  var stringifyNumber = require_stringifyNumber();
11488
11597
  var floatNaN = {
@@ -11532,6 +11641,7 @@ var require_float2 = __commonJS({
11532
11641
  var require_int2 = __commonJS({
11533
11642
  "node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
11534
11643
  "use strict";
11644
+ init_cjs_shim();
11535
11645
  var stringifyNumber = require_stringifyNumber();
11536
11646
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
11537
11647
  function intResolve(str2, offset, radix, { intAsBigInt }) {
@@ -11611,6 +11721,7 @@ var require_int2 = __commonJS({
11611
11721
  var require_set = __commonJS({
11612
11722
  "node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
11613
11723
  "use strict";
11724
+ init_cjs_shim();
11614
11725
  var identity = require_identity();
11615
11726
  var Pair = require_Pair();
11616
11727
  var YAMLMap = require_YAMLMap();
@@ -11700,6 +11811,7 @@ var require_set = __commonJS({
11700
11811
  var require_timestamp = __commonJS({
11701
11812
  "node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
11702
11813
  "use strict";
11814
+ init_cjs_shim();
11703
11815
  var stringifyNumber = require_stringifyNumber();
11704
11816
  function parseSexagesimal(str2, asBigInt) {
11705
11817
  const sign = str2[0];
@@ -11788,6 +11900,7 @@ var require_timestamp = __commonJS({
11788
11900
  var require_schema3 = __commonJS({
11789
11901
  "node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
11790
11902
  "use strict";
11903
+ init_cjs_shim();
11791
11904
  var map3 = require_map();
11792
11905
  var _null5 = require_null();
11793
11906
  var seq2 = require_seq();
@@ -11832,6 +11945,7 @@ var require_schema3 = __commonJS({
11832
11945
  var require_tags = __commonJS({
11833
11946
  "node_modules/yaml/dist/schema/tags.js"(exports) {
11834
11947
  "use strict";
11948
+ init_cjs_shim();
11835
11949
  var map3 = require_map();
11836
11950
  var _null5 = require_null();
11837
11951
  var seq2 = require_seq();
@@ -11926,6 +12040,7 @@ var require_tags = __commonJS({
11926
12040
  var require_Schema = __commonJS({
11927
12041
  "node_modules/yaml/dist/schema/Schema.js"(exports) {
11928
12042
  "use strict";
12043
+ init_cjs_shim();
11929
12044
  var identity = require_identity();
11930
12045
  var map3 = require_map();
11931
12046
  var seq2 = require_seq();
@@ -11958,6 +12073,7 @@ var require_Schema = __commonJS({
11958
12073
  var require_stringifyDocument = __commonJS({
11959
12074
  "node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
11960
12075
  "use strict";
12076
+ init_cjs_shim();
11961
12077
  var identity = require_identity();
11962
12078
  var stringify = require_stringify();
11963
12079
  var stringifyComment = require_stringifyComment();
@@ -12038,6 +12154,7 @@ var require_stringifyDocument = __commonJS({
12038
12154
  var require_Document = __commonJS({
12039
12155
  "node_modules/yaml/dist/doc/Document.js"(exports) {
12040
12156
  "use strict";
12157
+ init_cjs_shim();
12041
12158
  var Alias = require_Alias();
12042
12159
  var Collection = require_Collection();
12043
12160
  var identity = require_identity();
@@ -12347,6 +12464,7 @@ var require_Document = __commonJS({
12347
12464
  var require_errors = __commonJS({
12348
12465
  "node_modules/yaml/dist/errors.js"(exports) {
12349
12466
  "use strict";
12467
+ init_cjs_shim();
12350
12468
  var YAMLError = class extends Error {
12351
12469
  constructor(name, pos, code, message) {
12352
12470
  super();
@@ -12412,6 +12530,7 @@ ${pointer}
12412
12530
  var require_resolve_props = __commonJS({
12413
12531
  "node_modules/yaml/dist/compose/resolve-props.js"(exports) {
12414
12532
  "use strict";
12533
+ init_cjs_shim();
12415
12534
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
12416
12535
  let spaceBefore = false;
12417
12536
  let atNewline = startOnNewline;
@@ -12546,6 +12665,7 @@ var require_resolve_props = __commonJS({
12546
12665
  var require_util_contains_newline = __commonJS({
12547
12666
  "node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
12548
12667
  "use strict";
12668
+ init_cjs_shim();
12549
12669
  function containsNewline(key) {
12550
12670
  if (!key)
12551
12671
  return null;
@@ -12588,6 +12708,7 @@ var require_util_contains_newline = __commonJS({
12588
12708
  var require_util_flow_indent_check = __commonJS({
12589
12709
  "node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
12590
12710
  "use strict";
12711
+ init_cjs_shim();
12591
12712
  var utilContainsNewline = require_util_contains_newline();
12592
12713
  function flowIndentCheck(indent, fc, onError) {
12593
12714
  if (fc?.type === "flow-collection") {
@@ -12606,6 +12727,7 @@ var require_util_flow_indent_check = __commonJS({
12606
12727
  var require_util_map_includes = __commonJS({
12607
12728
  "node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
12608
12729
  "use strict";
12730
+ init_cjs_shim();
12609
12731
  var identity = require_identity();
12610
12732
  function mapIncludes(ctx, items, search) {
12611
12733
  const { uniqueKeys } = ctx.options;
@@ -12622,6 +12744,7 @@ var require_util_map_includes = __commonJS({
12622
12744
  var require_resolve_block_map = __commonJS({
12623
12745
  "node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
12624
12746
  "use strict";
12747
+ init_cjs_shim();
12625
12748
  var Pair = require_Pair();
12626
12749
  var YAMLMap = require_YAMLMap();
12627
12750
  var resolveProps = require_resolve_props();
@@ -12730,6 +12853,7 @@ var require_resolve_block_map = __commonJS({
12730
12853
  var require_resolve_block_seq = __commonJS({
12731
12854
  "node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
12732
12855
  "use strict";
12856
+ init_cjs_shim();
12733
12857
  var YAMLSeq = require_YAMLSeq();
12734
12858
  var resolveProps = require_resolve_props();
12735
12859
  var utilFlowIndentCheck = require_util_flow_indent_check();
@@ -12781,6 +12905,7 @@ var require_resolve_block_seq = __commonJS({
12781
12905
  var require_resolve_end = __commonJS({
12782
12906
  "node_modules/yaml/dist/compose/resolve-end.js"(exports) {
12783
12907
  "use strict";
12908
+ init_cjs_shim();
12784
12909
  function resolveEnd(end, offset, reqSpace, onError) {
12785
12910
  let comment = "";
12786
12911
  if (end) {
@@ -12824,6 +12949,7 @@ var require_resolve_end = __commonJS({
12824
12949
  var require_resolve_flow_collection = __commonJS({
12825
12950
  "node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
12826
12951
  "use strict";
12952
+ init_cjs_shim();
12827
12953
  var identity = require_identity();
12828
12954
  var Pair = require_Pair();
12829
12955
  var YAMLMap = require_YAMLMap();
@@ -13018,6 +13144,7 @@ var require_resolve_flow_collection = __commonJS({
13018
13144
  var require_compose_collection = __commonJS({
13019
13145
  "node_modules/yaml/dist/compose/compose-collection.js"(exports) {
13020
13146
  "use strict";
13147
+ init_cjs_shim();
13021
13148
  var identity = require_identity();
13022
13149
  var Scalar = require_Scalar();
13023
13150
  var YAMLMap = require_YAMLMap();
@@ -13083,6 +13210,7 @@ var require_compose_collection = __commonJS({
13083
13210
  var require_resolve_block_scalar = __commonJS({
13084
13211
  "node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
13085
13212
  "use strict";
13213
+ init_cjs_shim();
13086
13214
  var Scalar = require_Scalar();
13087
13215
  function resolveBlockScalar(ctx, scalar, onError) {
13088
13216
  const start = scalar.offset;
@@ -13266,6 +13394,7 @@ var require_resolve_block_scalar = __commonJS({
13266
13394
  var require_resolve_flow_scalar = __commonJS({
13267
13395
  "node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
13268
13396
  "use strict";
13397
+ init_cjs_shim();
13269
13398
  var Scalar = require_Scalar();
13270
13399
  var resolveEnd = require_resolve_end();
13271
13400
  function resolveFlowScalar(scalar, strict, onError) {
@@ -13485,6 +13614,7 @@ var require_resolve_flow_scalar = __commonJS({
13485
13614
  var require_compose_scalar = __commonJS({
13486
13615
  "node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
13487
13616
  "use strict";
13617
+ init_cjs_shim();
13488
13618
  var identity = require_identity();
13489
13619
  var Scalar = require_Scalar();
13490
13620
  var resolveBlockScalar = require_resolve_block_scalar();
@@ -13566,6 +13696,7 @@ var require_compose_scalar = __commonJS({
13566
13696
  var require_util_empty_scalar_position = __commonJS({
13567
13697
  "node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
13568
13698
  "use strict";
13699
+ init_cjs_shim();
13569
13700
  function emptyScalarPosition(offset, before, pos) {
13570
13701
  if (before) {
13571
13702
  pos ?? (pos = before.length);
@@ -13596,6 +13727,7 @@ var require_util_empty_scalar_position = __commonJS({
13596
13727
  var require_compose_node = __commonJS({
13597
13728
  "node_modules/yaml/dist/compose/compose-node.js"(exports) {
13598
13729
  "use strict";
13730
+ init_cjs_shim();
13599
13731
  var Alias = require_Alias();
13600
13732
  var identity = require_identity();
13601
13733
  var composeCollection = require_compose_collection();
@@ -13702,6 +13834,7 @@ var require_compose_node = __commonJS({
13702
13834
  var require_compose_doc = __commonJS({
13703
13835
  "node_modules/yaml/dist/compose/compose-doc.js"(exports) {
13704
13836
  "use strict";
13837
+ init_cjs_shim();
13705
13838
  var Document = require_Document();
13706
13839
  var composeNode2 = require_compose_node();
13707
13840
  var resolveEnd = require_resolve_end();
@@ -13745,6 +13878,7 @@ var require_compose_doc = __commonJS({
13745
13878
  var require_composer = __commonJS({
13746
13879
  "node_modules/yaml/dist/compose/composer.js"(exports) {
13747
13880
  "use strict";
13881
+ init_cjs_shim();
13748
13882
  var node_process = __require("process");
13749
13883
  var directives = require_directives();
13750
13884
  var Document = require_Document();
@@ -13951,6 +14085,7 @@ ${end.comment}` : end.comment;
13951
14085
  var require_cst_scalar = __commonJS({
13952
14086
  "node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
13953
14087
  "use strict";
14088
+ init_cjs_shim();
13954
14089
  var resolveBlockScalar = require_resolve_block_scalar();
13955
14090
  var resolveFlowScalar = require_resolve_flow_scalar();
13956
14091
  var errors = require_errors();
@@ -14136,6 +14271,7 @@ var require_cst_scalar = __commonJS({
14136
14271
  var require_cst_stringify = __commonJS({
14137
14272
  "node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
14138
14273
  "use strict";
14274
+ init_cjs_shim();
14139
14275
  var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
14140
14276
  function stringifyToken(token) {
14141
14277
  switch (token.type) {
@@ -14197,6 +14333,7 @@ var require_cst_stringify = __commonJS({
14197
14333
  var require_cst_visit = __commonJS({
14198
14334
  "node_modules/yaml/dist/parse/cst-visit.js"(exports) {
14199
14335
  "use strict";
14336
+ init_cjs_shim();
14200
14337
  var BREAK = /* @__PURE__ */ Symbol("break visit");
14201
14338
  var SKIP = /* @__PURE__ */ Symbol("skip children");
14202
14339
  var REMOVE = /* @__PURE__ */ Symbol("remove item");
@@ -14259,6 +14396,7 @@ var require_cst_visit = __commonJS({
14259
14396
  var require_cst = __commonJS({
14260
14397
  "node_modules/yaml/dist/parse/cst.js"(exports) {
14261
14398
  "use strict";
14399
+ init_cjs_shim();
14262
14400
  var cstScalar = require_cst_scalar();
14263
14401
  var cstStringify = require_cst_stringify();
14264
14402
  var cstVisit = require_cst_visit();
@@ -14361,6 +14499,7 @@ var require_cst = __commonJS({
14361
14499
  var require_lexer = __commonJS({
14362
14500
  "node_modules/yaml/dist/parse/lexer.js"(exports) {
14363
14501
  "use strict";
14502
+ init_cjs_shim();
14364
14503
  var cst = require_cst();
14365
14504
  function isEmpty(ch) {
14366
14505
  switch (ch) {
@@ -14940,6 +15079,7 @@ var require_lexer = __commonJS({
14940
15079
  var require_line_counter = __commonJS({
14941
15080
  "node_modules/yaml/dist/parse/line-counter.js"(exports) {
14942
15081
  "use strict";
15082
+ init_cjs_shim();
14943
15083
  var LineCounter4 = class {
14944
15084
  constructor() {
14945
15085
  this.lineStarts = [];
@@ -14971,6 +15111,7 @@ var require_line_counter = __commonJS({
14971
15111
  var require_parser = __commonJS({
14972
15112
  "node_modules/yaml/dist/parse/parser.js"(exports) {
14973
15113
  "use strict";
15114
+ init_cjs_shim();
14974
15115
  var node_process = __require("process");
14975
15116
  var cst = require_cst();
14976
15117
  var lexer = require_lexer();
@@ -15838,6 +15979,7 @@ var require_parser = __commonJS({
15838
15979
  var require_public_api = __commonJS({
15839
15980
  "node_modules/yaml/dist/public-api.js"(exports) {
15840
15981
  "use strict";
15982
+ init_cjs_shim();
15841
15983
  var composer = require_composer();
15842
15984
  var Document = require_Document();
15843
15985
  var errors = require_errors();
@@ -15935,6 +16077,7 @@ var require_public_api = __commonJS({
15935
16077
  var require_dist = __commonJS({
15936
16078
  "node_modules/yaml/dist/index.js"(exports) {
15937
16079
  "use strict";
16080
+ init_cjs_shim();
15938
16081
  var composer = require_composer();
15939
16082
  var Document = require_Document();
15940
16083
  var Schema = require_Schema();
@@ -15987,6 +16130,7 @@ var require_dist = __commonJS({
15987
16130
  var require_code = __commonJS({
15988
16131
  "node_modules/ajv/dist/compile/codegen/code.js"(exports) {
15989
16132
  "use strict";
16133
+ init_cjs_shim();
15990
16134
  Object.defineProperty(exports, "__esModule", { value: true });
15991
16135
  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 = void 0;
15992
16136
  var _CodeOrName = class {
@@ -16141,6 +16285,7 @@ var require_code = __commonJS({
16141
16285
  var require_scope = __commonJS({
16142
16286
  "node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
16143
16287
  "use strict";
16288
+ init_cjs_shim();
16144
16289
  Object.defineProperty(exports, "__esModule", { value: true });
16145
16290
  exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
16146
16291
  var code_1 = require_code();
@@ -16286,6 +16431,7 @@ var require_scope = __commonJS({
16286
16431
  var require_codegen = __commonJS({
16287
16432
  "node_modules/ajv/dist/compile/codegen/index.js"(exports) {
16288
16433
  "use strict";
16434
+ init_cjs_shim();
16289
16435
  Object.defineProperty(exports, "__esModule", { value: true });
16290
16436
  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._ = void 0;
16291
16437
  var code_1 = require_code();
@@ -17006,6 +17152,7 @@ var require_codegen = __commonJS({
17006
17152
  var require_util = __commonJS({
17007
17153
  "node_modules/ajv/dist/compile/util.js"(exports) {
17008
17154
  "use strict";
17155
+ init_cjs_shim();
17009
17156
  Object.defineProperty(exports, "__esModule", { value: true });
17010
17157
  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 = void 0;
17011
17158
  var codegen_1 = require_codegen();
@@ -17173,6 +17320,7 @@ var require_util = __commonJS({
17173
17320
  var require_names = __commonJS({
17174
17321
  "node_modules/ajv/dist/compile/names.js"(exports) {
17175
17322
  "use strict";
17323
+ init_cjs_shim();
17176
17324
  Object.defineProperty(exports, "__esModule", { value: true });
17177
17325
  var codegen_1 = require_codegen();
17178
17326
  var names = {
@@ -17212,6 +17360,7 @@ var require_names = __commonJS({
17212
17360
  var require_errors2 = __commonJS({
17213
17361
  "node_modules/ajv/dist/compile/errors.js"(exports) {
17214
17362
  "use strict";
17363
+ init_cjs_shim();
17215
17364
  Object.defineProperty(exports, "__esModule", { value: true });
17216
17365
  exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
17217
17366
  var codegen_1 = require_codegen();
@@ -17334,6 +17483,7 @@ var require_errors2 = __commonJS({
17334
17483
  var require_boolSchema = __commonJS({
17335
17484
  "node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
17336
17485
  "use strict";
17486
+ init_cjs_shim();
17337
17487
  Object.defineProperty(exports, "__esModule", { value: true });
17338
17488
  exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
17339
17489
  var errors_1 = require_errors2();
@@ -17385,6 +17535,7 @@ var require_boolSchema = __commonJS({
17385
17535
  var require_rules = __commonJS({
17386
17536
  "node_modules/ajv/dist/compile/rules.js"(exports) {
17387
17537
  "use strict";
17538
+ init_cjs_shim();
17388
17539
  Object.defineProperty(exports, "__esModule", { value: true });
17389
17540
  exports.getRules = exports.isJSONType = void 0;
17390
17541
  var _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"];
@@ -17416,6 +17567,7 @@ var require_rules = __commonJS({
17416
17567
  var require_applicability = __commonJS({
17417
17568
  "node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
17418
17569
  "use strict";
17570
+ init_cjs_shim();
17419
17571
  Object.defineProperty(exports, "__esModule", { value: true });
17420
17572
  exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
17421
17573
  function schemaHasRulesForType({ schema: schema2, self }, type2) {
@@ -17439,6 +17591,7 @@ var require_applicability = __commonJS({
17439
17591
  var require_dataType = __commonJS({
17440
17592
  "node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
17441
17593
  "use strict";
17594
+ init_cjs_shim();
17442
17595
  Object.defineProperty(exports, "__esModule", { value: true });
17443
17596
  exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
17444
17597
  var rules_1 = require_rules();
@@ -17623,6 +17776,7 @@ var require_dataType = __commonJS({
17623
17776
  var require_defaults = __commonJS({
17624
17777
  "node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
17625
17778
  "use strict";
17779
+ init_cjs_shim();
17626
17780
  Object.defineProperty(exports, "__esModule", { value: true });
17627
17781
  exports.assignDefaults = void 0;
17628
17782
  var codegen_1 = require_codegen();
@@ -17660,6 +17814,7 @@ var require_defaults = __commonJS({
17660
17814
  var require_code2 = __commonJS({
17661
17815
  "node_modules/ajv/dist/vocabularies/code.js"(exports) {
17662
17816
  "use strict";
17817
+ init_cjs_shim();
17663
17818
  Object.defineProperty(exports, "__esModule", { value: true });
17664
17819
  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 = void 0;
17665
17820
  var codegen_1 = require_codegen();
@@ -17793,6 +17948,7 @@ var require_code2 = __commonJS({
17793
17948
  var require_keyword = __commonJS({
17794
17949
  "node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
17795
17950
  "use strict";
17951
+ init_cjs_shim();
17796
17952
  Object.defineProperty(exports, "__esModule", { value: true });
17797
17953
  exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
17798
17954
  var codegen_1 = require_codegen();
@@ -17911,6 +18067,7 @@ var require_keyword = __commonJS({
17911
18067
  var require_subschema = __commonJS({
17912
18068
  "node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
17913
18069
  "use strict";
18070
+ init_cjs_shim();
17914
18071
  Object.defineProperty(exports, "__esModule", { value: true });
17915
18072
  exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
17916
18073
  var codegen_1 = require_codegen();
@@ -17994,6 +18151,7 @@ var require_subschema = __commonJS({
17994
18151
  var require_fast_deep_equal = __commonJS({
17995
18152
  "node_modules/fast-deep-equal/index.js"(exports, module) {
17996
18153
  "use strict";
18154
+ init_cjs_shim();
17997
18155
  module.exports = function equal(a, b2) {
17998
18156
  if (a === b2) return true;
17999
18157
  if (a && b2 && typeof a == "object" && typeof b2 == "object") {
@@ -18029,6 +18187,7 @@ var require_fast_deep_equal = __commonJS({
18029
18187
  var require_json_schema_traverse = __commonJS({
18030
18188
  "node_modules/json-schema-traverse/index.js"(exports, module) {
18031
18189
  "use strict";
18190
+ init_cjs_shim();
18032
18191
  var traverse = module.exports = function(schema2, opts, cb) {
18033
18192
  if (typeof opts == "function") {
18034
18193
  cb = opts;
@@ -18117,6 +18276,7 @@ var require_json_schema_traverse = __commonJS({
18117
18276
  var require_resolve = __commonJS({
18118
18277
  "node_modules/ajv/dist/compile/resolve.js"(exports) {
18119
18278
  "use strict";
18279
+ init_cjs_shim();
18120
18280
  Object.defineProperty(exports, "__esModule", { value: true });
18121
18281
  exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
18122
18282
  var util_1 = require_util();
@@ -18273,6 +18433,7 @@ var require_resolve = __commonJS({
18273
18433
  var require_validate = __commonJS({
18274
18434
  "node_modules/ajv/dist/compile/validate/index.js"(exports) {
18275
18435
  "use strict";
18436
+ init_cjs_shim();
18276
18437
  Object.defineProperty(exports, "__esModule", { value: true });
18277
18438
  exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
18278
18439
  var boolSchema_1 = require_boolSchema();
@@ -18781,6 +18942,7 @@ var require_validate = __commonJS({
18781
18942
  var require_validation_error = __commonJS({
18782
18943
  "node_modules/ajv/dist/runtime/validation_error.js"(exports) {
18783
18944
  "use strict";
18945
+ init_cjs_shim();
18784
18946
  Object.defineProperty(exports, "__esModule", { value: true });
18785
18947
  var ValidationError = class extends Error {
18786
18948
  constructor(errors) {
@@ -18797,6 +18959,7 @@ var require_validation_error = __commonJS({
18797
18959
  var require_ref_error = __commonJS({
18798
18960
  "node_modules/ajv/dist/compile/ref_error.js"(exports) {
18799
18961
  "use strict";
18962
+ init_cjs_shim();
18800
18963
  Object.defineProperty(exports, "__esModule", { value: true });
18801
18964
  var resolve_1 = require_resolve();
18802
18965
  var MissingRefError = class extends Error {
@@ -18814,6 +18977,7 @@ var require_ref_error = __commonJS({
18814
18977
  var require_compile = __commonJS({
18815
18978
  "node_modules/ajv/dist/compile/index.js"(exports) {
18816
18979
  "use strict";
18980
+ init_cjs_shim();
18817
18981
  Object.defineProperty(exports, "__esModule", { value: true });
18818
18982
  exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
18819
18983
  var codegen_1 = require_codegen();
@@ -19057,6 +19221,7 @@ var require_data = __commonJS({
19057
19221
  var require_utils2 = __commonJS({
19058
19222
  "node_modules/fast-uri/lib/utils.js"(exports, module) {
19059
19223
  "use strict";
19224
+ init_cjs_shim();
19060
19225
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
19061
19226
  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);
19062
19227
  function stringArrayToHexStripped(input) {
@@ -19314,6 +19479,7 @@ var require_utils2 = __commonJS({
19314
19479
  var require_schemes = __commonJS({
19315
19480
  "node_modules/fast-uri/lib/schemes.js"(exports, module) {
19316
19481
  "use strict";
19482
+ init_cjs_shim();
19317
19483
  var { isUUID } = require_utils2();
19318
19484
  var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
19319
19485
  var supportedSchemeNames = (
@@ -19524,6 +19690,7 @@ var require_schemes = __commonJS({
19524
19690
  var require_fast_uri = __commonJS({
19525
19691
  "node_modules/fast-uri/index.js"(exports, module) {
19526
19692
  "use strict";
19693
+ init_cjs_shim();
19527
19694
  var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils2();
19528
19695
  var { SCHEMES, getSchemeHandler } = require_schemes();
19529
19696
  function normalize(uri, options) {
@@ -19779,6 +19946,7 @@ var require_fast_uri = __commonJS({
19779
19946
  var require_uri = __commonJS({
19780
19947
  "node_modules/ajv/dist/runtime/uri.js"(exports) {
19781
19948
  "use strict";
19949
+ init_cjs_shim();
19782
19950
  Object.defineProperty(exports, "__esModule", { value: true });
19783
19951
  var uri = require_fast_uri();
19784
19952
  uri.code = 'require("ajv/dist/runtime/uri").default';
@@ -19790,6 +19958,7 @@ var require_uri = __commonJS({
19790
19958
  var require_core = __commonJS({
19791
19959
  "node_modules/ajv/dist/core.js"(exports) {
19792
19960
  "use strict";
19961
+ init_cjs_shim();
19793
19962
  Object.defineProperty(exports, "__esModule", { value: true });
19794
19963
  exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
19795
19964
  var validate_1 = require_validate();
@@ -20401,6 +20570,7 @@ var require_core = __commonJS({
20401
20570
  var require_id = __commonJS({
20402
20571
  "node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
20403
20572
  "use strict";
20573
+ init_cjs_shim();
20404
20574
  Object.defineProperty(exports, "__esModule", { value: true });
20405
20575
  var def = {
20406
20576
  keyword: "id",
@@ -20416,6 +20586,7 @@ var require_id = __commonJS({
20416
20586
  var require_ref = __commonJS({
20417
20587
  "node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
20418
20588
  "use strict";
20589
+ init_cjs_shim();
20419
20590
  Object.defineProperty(exports, "__esModule", { value: true });
20420
20591
  exports.callRef = exports.getValidate = void 0;
20421
20592
  var ref_error_1 = require_ref_error();
@@ -20538,6 +20709,7 @@ var require_ref = __commonJS({
20538
20709
  var require_core2 = __commonJS({
20539
20710
  "node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
20540
20711
  "use strict";
20712
+ init_cjs_shim();
20541
20713
  Object.defineProperty(exports, "__esModule", { value: true });
20542
20714
  var id_1 = require_id();
20543
20715
  var ref_1 = require_ref();
@@ -20559,6 +20731,7 @@ var require_core2 = __commonJS({
20559
20731
  var require_limitNumber = __commonJS({
20560
20732
  "node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
20561
20733
  "use strict";
20734
+ init_cjs_shim();
20562
20735
  Object.defineProperty(exports, "__esModule", { value: true });
20563
20736
  var codegen_1 = require_codegen();
20564
20737
  var ops = codegen_1.operators;
@@ -20591,6 +20764,7 @@ var require_limitNumber = __commonJS({
20591
20764
  var require_multipleOf = __commonJS({
20592
20765
  "node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
20593
20766
  "use strict";
20767
+ init_cjs_shim();
20594
20768
  Object.defineProperty(exports, "__esModule", { value: true });
20595
20769
  var codegen_1 = require_codegen();
20596
20770
  var error48 = {
@@ -20619,6 +20793,7 @@ var require_multipleOf = __commonJS({
20619
20793
  var require_ucs2length = __commonJS({
20620
20794
  "node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
20621
20795
  "use strict";
20796
+ init_cjs_shim();
20622
20797
  Object.defineProperty(exports, "__esModule", { value: true });
20623
20798
  function ucs2length(str2) {
20624
20799
  const len = str2.length;
@@ -20645,6 +20820,7 @@ var require_ucs2length = __commonJS({
20645
20820
  var require_limitLength = __commonJS({
20646
20821
  "node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
20647
20822
  "use strict";
20823
+ init_cjs_shim();
20648
20824
  Object.defineProperty(exports, "__esModule", { value: true });
20649
20825
  var codegen_1 = require_codegen();
20650
20826
  var util_1 = require_util();
@@ -20677,6 +20853,7 @@ var require_limitLength = __commonJS({
20677
20853
  var require_pattern = __commonJS({
20678
20854
  "node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
20679
20855
  "use strict";
20856
+ init_cjs_shim();
20680
20857
  Object.defineProperty(exports, "__esModule", { value: true });
20681
20858
  var code_1 = require_code2();
20682
20859
  var util_1 = require_util();
@@ -20714,6 +20891,7 @@ var require_pattern = __commonJS({
20714
20891
  var require_limitProperties = __commonJS({
20715
20892
  "node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
20716
20893
  "use strict";
20894
+ init_cjs_shim();
20717
20895
  Object.defineProperty(exports, "__esModule", { value: true });
20718
20896
  var codegen_1 = require_codegen();
20719
20897
  var error48 = {
@@ -20743,6 +20921,7 @@ var require_limitProperties = __commonJS({
20743
20921
  var require_required = __commonJS({
20744
20922
  "node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
20745
20923
  "use strict";
20924
+ init_cjs_shim();
20746
20925
  Object.defineProperty(exports, "__esModule", { value: true });
20747
20926
  var code_1 = require_code2();
20748
20927
  var codegen_1 = require_codegen();
@@ -20825,6 +21004,7 @@ var require_required = __commonJS({
20825
21004
  var require_limitItems = __commonJS({
20826
21005
  "node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
20827
21006
  "use strict";
21007
+ init_cjs_shim();
20828
21008
  Object.defineProperty(exports, "__esModule", { value: true });
20829
21009
  var codegen_1 = require_codegen();
20830
21010
  var error48 = {
@@ -20854,6 +21034,7 @@ var require_limitItems = __commonJS({
20854
21034
  var require_equal = __commonJS({
20855
21035
  "node_modules/ajv/dist/runtime/equal.js"(exports) {
20856
21036
  "use strict";
21037
+ init_cjs_shim();
20857
21038
  Object.defineProperty(exports, "__esModule", { value: true });
20858
21039
  var equal = require_fast_deep_equal();
20859
21040
  equal.code = 'require("ajv/dist/runtime/equal").default';
@@ -20865,6 +21046,7 @@ var require_equal = __commonJS({
20865
21046
  var require_uniqueItems = __commonJS({
20866
21047
  "node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
20867
21048
  "use strict";
21049
+ init_cjs_shim();
20868
21050
  Object.defineProperty(exports, "__esModule", { value: true });
20869
21051
  var dataType_1 = require_dataType();
20870
21052
  var codegen_1 = require_codegen();
@@ -20932,6 +21114,7 @@ var require_uniqueItems = __commonJS({
20932
21114
  var require_const = __commonJS({
20933
21115
  "node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
20934
21116
  "use strict";
21117
+ init_cjs_shim();
20935
21118
  Object.defineProperty(exports, "__esModule", { value: true });
20936
21119
  var codegen_1 = require_codegen();
20937
21120
  var util_1 = require_util();
@@ -20961,6 +21144,7 @@ var require_const = __commonJS({
20961
21144
  var require_enum = __commonJS({
20962
21145
  "node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
20963
21146
  "use strict";
21147
+ init_cjs_shim();
20964
21148
  Object.defineProperty(exports, "__esModule", { value: true });
20965
21149
  var codegen_1 = require_codegen();
20966
21150
  var util_1 = require_util();
@@ -21010,6 +21194,7 @@ var require_enum = __commonJS({
21010
21194
  var require_validation = __commonJS({
21011
21195
  "node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
21012
21196
  "use strict";
21197
+ init_cjs_shim();
21013
21198
  Object.defineProperty(exports, "__esModule", { value: true });
21014
21199
  var limitNumber_1 = require_limitNumber();
21015
21200
  var multipleOf_1 = require_multipleOf();
@@ -21048,6 +21233,7 @@ var require_validation = __commonJS({
21048
21233
  var require_additionalItems = __commonJS({
21049
21234
  "node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
21050
21235
  "use strict";
21236
+ init_cjs_shim();
21051
21237
  Object.defineProperty(exports, "__esModule", { value: true });
21052
21238
  exports.validateAdditionalItems = void 0;
21053
21239
  var codegen_1 = require_codegen();
@@ -21101,6 +21287,7 @@ var require_additionalItems = __commonJS({
21101
21287
  var require_items = __commonJS({
21102
21288
  "node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
21103
21289
  "use strict";
21290
+ init_cjs_shim();
21104
21291
  Object.defineProperty(exports, "__esModule", { value: true });
21105
21292
  exports.validateTuple = void 0;
21106
21293
  var codegen_1 = require_codegen();
@@ -21158,6 +21345,7 @@ var require_items = __commonJS({
21158
21345
  var require_prefixItems = __commonJS({
21159
21346
  "node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
21160
21347
  "use strict";
21348
+ init_cjs_shim();
21161
21349
  Object.defineProperty(exports, "__esModule", { value: true });
21162
21350
  var items_1 = require_items();
21163
21351
  var def = {
@@ -21175,6 +21363,7 @@ var require_prefixItems = __commonJS({
21175
21363
  var require_items2020 = __commonJS({
21176
21364
  "node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
21177
21365
  "use strict";
21366
+ init_cjs_shim();
21178
21367
  Object.defineProperty(exports, "__esModule", { value: true });
21179
21368
  var codegen_1 = require_codegen();
21180
21369
  var util_1 = require_util();
@@ -21210,6 +21399,7 @@ var require_items2020 = __commonJS({
21210
21399
  var require_contains = __commonJS({
21211
21400
  "node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
21212
21401
  "use strict";
21402
+ init_cjs_shim();
21213
21403
  Object.defineProperty(exports, "__esModule", { value: true });
21214
21404
  var codegen_1 = require_codegen();
21215
21405
  var util_1 = require_util();
@@ -21304,6 +21494,7 @@ var require_contains = __commonJS({
21304
21494
  var require_dependencies = __commonJS({
21305
21495
  "node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
21306
21496
  "use strict";
21497
+ init_cjs_shim();
21307
21498
  Object.defineProperty(exports, "__esModule", { value: true });
21308
21499
  exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
21309
21500
  var codegen_1 = require_codegen();
@@ -21398,6 +21589,7 @@ var require_dependencies = __commonJS({
21398
21589
  var require_propertyNames = __commonJS({
21399
21590
  "node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
21400
21591
  "use strict";
21592
+ init_cjs_shim();
21401
21593
  Object.defineProperty(exports, "__esModule", { value: true });
21402
21594
  var codegen_1 = require_codegen();
21403
21595
  var util_1 = require_util();
@@ -21441,6 +21633,7 @@ var require_propertyNames = __commonJS({
21441
21633
  var require_additionalProperties = __commonJS({
21442
21634
  "node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
21443
21635
  "use strict";
21636
+ init_cjs_shim();
21444
21637
  Object.defineProperty(exports, "__esModule", { value: true });
21445
21638
  var code_1 = require_code2();
21446
21639
  var codegen_1 = require_codegen();
@@ -21547,6 +21740,7 @@ var require_additionalProperties = __commonJS({
21547
21740
  var require_properties = __commonJS({
21548
21741
  "node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
21549
21742
  "use strict";
21743
+ init_cjs_shim();
21550
21744
  Object.defineProperty(exports, "__esModule", { value: true });
21551
21745
  var validate_1 = require_validate();
21552
21746
  var code_1 = require_code2();
@@ -21605,6 +21799,7 @@ var require_properties = __commonJS({
21605
21799
  var require_patternProperties = __commonJS({
21606
21800
  "node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
21607
21801
  "use strict";
21802
+ init_cjs_shim();
21608
21803
  Object.defineProperty(exports, "__esModule", { value: true });
21609
21804
  var code_1 = require_code2();
21610
21805
  var codegen_1 = require_codegen();
@@ -21679,6 +21874,7 @@ var require_patternProperties = __commonJS({
21679
21874
  var require_not = __commonJS({
21680
21875
  "node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
21681
21876
  "use strict";
21877
+ init_cjs_shim();
21682
21878
  Object.defineProperty(exports, "__esModule", { value: true });
21683
21879
  var util_1 = require_util();
21684
21880
  var def = {
@@ -21710,6 +21906,7 @@ var require_not = __commonJS({
21710
21906
  var require_anyOf = __commonJS({
21711
21907
  "node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
21712
21908
  "use strict";
21909
+ init_cjs_shim();
21713
21910
  Object.defineProperty(exports, "__esModule", { value: true });
21714
21911
  var code_1 = require_code2();
21715
21912
  var def = {
@@ -21727,6 +21924,7 @@ var require_anyOf = __commonJS({
21727
21924
  var require_oneOf = __commonJS({
21728
21925
  "node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
21729
21926
  "use strict";
21927
+ init_cjs_shim();
21730
21928
  Object.defineProperty(exports, "__esModule", { value: true });
21731
21929
  var codegen_1 = require_codegen();
21732
21930
  var util_1 = require_util();
@@ -21785,6 +21983,7 @@ var require_oneOf = __commonJS({
21785
21983
  var require_allOf = __commonJS({
21786
21984
  "node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
21787
21985
  "use strict";
21986
+ init_cjs_shim();
21788
21987
  Object.defineProperty(exports, "__esModule", { value: true });
21789
21988
  var util_1 = require_util();
21790
21989
  var def = {
@@ -21812,6 +22011,7 @@ var require_allOf = __commonJS({
21812
22011
  var require_if = __commonJS({
21813
22012
  "node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
21814
22013
  "use strict";
22014
+ init_cjs_shim();
21815
22015
  Object.defineProperty(exports, "__esModule", { value: true });
21816
22016
  var codegen_1 = require_codegen();
21817
22017
  var util_1 = require_util();
@@ -21881,6 +22081,7 @@ var require_if = __commonJS({
21881
22081
  var require_thenElse = __commonJS({
21882
22082
  "node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
21883
22083
  "use strict";
22084
+ init_cjs_shim();
21884
22085
  Object.defineProperty(exports, "__esModule", { value: true });
21885
22086
  var util_1 = require_util();
21886
22087
  var def = {
@@ -21899,6 +22100,7 @@ var require_thenElse = __commonJS({
21899
22100
  var require_applicator = __commonJS({
21900
22101
  "node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
21901
22102
  "use strict";
22103
+ init_cjs_shim();
21902
22104
  Object.defineProperty(exports, "__esModule", { value: true });
21903
22105
  var additionalItems_1 = require_additionalItems();
21904
22106
  var prefixItems_1 = require_prefixItems();
@@ -21947,6 +22149,7 @@ var require_applicator = __commonJS({
21947
22149
  var require_dynamicAnchor = __commonJS({
21948
22150
  "node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js"(exports) {
21949
22151
  "use strict";
22152
+ init_cjs_shim();
21950
22153
  Object.defineProperty(exports, "__esModule", { value: true });
21951
22154
  exports.dynamicAnchor = void 0;
21952
22155
  var codegen_1 = require_codegen();
@@ -21982,6 +22185,7 @@ var require_dynamicAnchor = __commonJS({
21982
22185
  var require_dynamicRef = __commonJS({
21983
22186
  "node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js"(exports) {
21984
22187
  "use strict";
22188
+ init_cjs_shim();
21985
22189
  Object.defineProperty(exports, "__esModule", { value: true });
21986
22190
  exports.dynamicRef = void 0;
21987
22191
  var codegen_1 = require_codegen();
@@ -22028,6 +22232,7 @@ var require_dynamicRef = __commonJS({
22028
22232
  var require_recursiveAnchor = __commonJS({
22029
22233
  "node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js"(exports) {
22030
22234
  "use strict";
22235
+ init_cjs_shim();
22031
22236
  Object.defineProperty(exports, "__esModule", { value: true });
22032
22237
  var dynamicAnchor_1 = require_dynamicAnchor();
22033
22238
  var util_1 = require_util();
@@ -22049,6 +22254,7 @@ var require_recursiveAnchor = __commonJS({
22049
22254
  var require_recursiveRef = __commonJS({
22050
22255
  "node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js"(exports) {
22051
22256
  "use strict";
22257
+ init_cjs_shim();
22052
22258
  Object.defineProperty(exports, "__esModule", { value: true });
22053
22259
  var dynamicRef_1 = require_dynamicRef();
22054
22260
  var def = {
@@ -22064,6 +22270,7 @@ var require_recursiveRef = __commonJS({
22064
22270
  var require_dynamic = __commonJS({
22065
22271
  "node_modules/ajv/dist/vocabularies/dynamic/index.js"(exports) {
22066
22272
  "use strict";
22273
+ init_cjs_shim();
22067
22274
  Object.defineProperty(exports, "__esModule", { value: true });
22068
22275
  var dynamicAnchor_1 = require_dynamicAnchor();
22069
22276
  var dynamicRef_1 = require_dynamicRef();
@@ -22078,6 +22285,7 @@ var require_dynamic = __commonJS({
22078
22285
  var require_dependentRequired = __commonJS({
22079
22286
  "node_modules/ajv/dist/vocabularies/validation/dependentRequired.js"(exports) {
22080
22287
  "use strict";
22288
+ init_cjs_shim();
22081
22289
  Object.defineProperty(exports, "__esModule", { value: true });
22082
22290
  var dependencies_1 = require_dependencies();
22083
22291
  var def = {
@@ -22095,6 +22303,7 @@ var require_dependentRequired = __commonJS({
22095
22303
  var require_dependentSchemas = __commonJS({
22096
22304
  "node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js"(exports) {
22097
22305
  "use strict";
22306
+ init_cjs_shim();
22098
22307
  Object.defineProperty(exports, "__esModule", { value: true });
22099
22308
  var dependencies_1 = require_dependencies();
22100
22309
  var def = {
@@ -22111,6 +22320,7 @@ var require_dependentSchemas = __commonJS({
22111
22320
  var require_limitContains = __commonJS({
22112
22321
  "node_modules/ajv/dist/vocabularies/validation/limitContains.js"(exports) {
22113
22322
  "use strict";
22323
+ init_cjs_shim();
22114
22324
  Object.defineProperty(exports, "__esModule", { value: true });
22115
22325
  var util_1 = require_util();
22116
22326
  var def = {
@@ -22131,6 +22341,7 @@ var require_limitContains = __commonJS({
22131
22341
  var require_next = __commonJS({
22132
22342
  "node_modules/ajv/dist/vocabularies/next.js"(exports) {
22133
22343
  "use strict";
22344
+ init_cjs_shim();
22134
22345
  Object.defineProperty(exports, "__esModule", { value: true });
22135
22346
  var dependentRequired_1 = require_dependentRequired();
22136
22347
  var dependentSchemas_1 = require_dependentSchemas();
@@ -22144,6 +22355,7 @@ var require_next = __commonJS({
22144
22355
  var require_unevaluatedProperties = __commonJS({
22145
22356
  "node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js"(exports) {
22146
22357
  "use strict";
22358
+ init_cjs_shim();
22147
22359
  Object.defineProperty(exports, "__esModule", { value: true });
22148
22360
  var codegen_1 = require_codegen();
22149
22361
  var util_1 = require_util();
@@ -22210,6 +22422,7 @@ var require_unevaluatedProperties = __commonJS({
22210
22422
  var require_unevaluatedItems = __commonJS({
22211
22423
  "node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js"(exports) {
22212
22424
  "use strict";
22425
+ init_cjs_shim();
22213
22426
  Object.defineProperty(exports, "__esModule", { value: true });
22214
22427
  var codegen_1 = require_codegen();
22215
22428
  var util_1 = require_util();
@@ -22254,6 +22467,7 @@ var require_unevaluatedItems = __commonJS({
22254
22467
  var require_unevaluated = __commonJS({
22255
22468
  "node_modules/ajv/dist/vocabularies/unevaluated/index.js"(exports) {
22256
22469
  "use strict";
22470
+ init_cjs_shim();
22257
22471
  Object.defineProperty(exports, "__esModule", { value: true });
22258
22472
  var unevaluatedProperties_1 = require_unevaluatedProperties();
22259
22473
  var unevaluatedItems_1 = require_unevaluatedItems();
@@ -22266,6 +22480,7 @@ var require_unevaluated = __commonJS({
22266
22480
  var require_format = __commonJS({
22267
22481
  "node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
22268
22482
  "use strict";
22483
+ init_cjs_shim();
22269
22484
  Object.defineProperty(exports, "__esModule", { value: true });
22270
22485
  var codegen_1 = require_codegen();
22271
22486
  var error48 = {
@@ -22356,6 +22571,7 @@ var require_format = __commonJS({
22356
22571
  var require_format2 = __commonJS({
22357
22572
  "node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
22358
22573
  "use strict";
22574
+ init_cjs_shim();
22359
22575
  Object.defineProperty(exports, "__esModule", { value: true });
22360
22576
  var format_1 = require_format();
22361
22577
  var format = [format_1.default];
@@ -22367,6 +22583,7 @@ var require_format2 = __commonJS({
22367
22583
  var require_metadata = __commonJS({
22368
22584
  "node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
22369
22585
  "use strict";
22586
+ init_cjs_shim();
22370
22587
  Object.defineProperty(exports, "__esModule", { value: true });
22371
22588
  exports.contentVocabulary = exports.metadataVocabulary = void 0;
22372
22589
  exports.metadataVocabulary = [
@@ -22390,6 +22607,7 @@ var require_metadata = __commonJS({
22390
22607
  var require_draft2020 = __commonJS({
22391
22608
  "node_modules/ajv/dist/vocabularies/draft2020.js"(exports) {
22392
22609
  "use strict";
22610
+ init_cjs_shim();
22393
22611
  Object.defineProperty(exports, "__esModule", { value: true });
22394
22612
  var core_1 = require_core2();
22395
22613
  var validation_1 = require_validation();
@@ -22418,6 +22636,7 @@ var require_draft2020 = __commonJS({
22418
22636
  var require_types = __commonJS({
22419
22637
  "node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
22420
22638
  "use strict";
22639
+ init_cjs_shim();
22421
22640
  Object.defineProperty(exports, "__esModule", { value: true });
22422
22641
  exports.DiscrError = void 0;
22423
22642
  var DiscrError;
@@ -22432,6 +22651,7 @@ var require_types = __commonJS({
22432
22651
  var require_discriminator = __commonJS({
22433
22652
  "node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
22434
22653
  "use strict";
22654
+ init_cjs_shim();
22435
22655
  Object.defineProperty(exports, "__esModule", { value: true });
22436
22656
  var codegen_1 = require_codegen();
22437
22657
  var types_1 = require_types();
@@ -22902,6 +23122,7 @@ var require_validation2 = __commonJS({
22902
23122
  var require_json_schema_2020_12 = __commonJS({
22903
23123
  "node_modules/ajv/dist/refs/json-schema-2020-12/index.js"(exports) {
22904
23124
  "use strict";
23125
+ init_cjs_shim();
22905
23126
  Object.defineProperty(exports, "__esModule", { value: true });
22906
23127
  var metaSchema = require_schema4();
22907
23128
  var applicator = require_applicator2();
@@ -22937,6 +23158,7 @@ var require_json_schema_2020_12 = __commonJS({
22937
23158
  var require__ = __commonJS({
22938
23159
  "node_modules/ajv/dist/2020.js"(exports, module) {
22939
23160
  "use strict";
23161
+ init_cjs_shim();
22940
23162
  Object.defineProperty(exports, "__esModule", { value: true });
22941
23163
  exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv2020 = void 0;
22942
23164
  var core_1 = require_core();
@@ -23015,6 +23237,7 @@ var COMMON_WEBHOOK_FIELDS, RESOURCE_CATALOG;
23015
23237
  var init_resources = __esm({
23016
23238
  "src/devices/resources.ts"() {
23017
23239
  "use strict";
23240
+ init_cjs_shim();
23018
23241
  COMMON_WEBHOOK_FIELDS = [
23019
23242
  { name: "deviceType", type: "string", description: "SwitchBot device type string", example: "WoMeter" },
23020
23243
  { name: "deviceMac", type: "string", description: "Bluetooth MAC address (uppercase, colon-separated)", example: "AA:BB:CC:11:22:33" },
@@ -23474,6 +23697,7 @@ var AGENT_GUIDE, READ_LOCAL, READ_REMOTE, ACTION_LOCAL, ACTION_REMOTE, ACTION_RE
23474
23697
  var init_capabilities = __esm({
23475
23698
  "src/commands/capabilities.ts"() {
23476
23699
  "use strict";
23700
+ init_cjs_shim();
23477
23701
  init_catalog();
23478
23702
  init_resources();
23479
23703
  init_cache();
@@ -23638,14 +23862,16 @@ var init_capabilities = __esm({
23638
23862
  });
23639
23863
 
23640
23864
  // src/index.ts
23865
+ init_cjs_shim();
23641
23866
  init_esm();
23642
23867
  init_source();
23643
23868
  init_arg_parsers();
23644
23869
  init_flags();
23645
23870
  init_output();
23646
- import { createRequire as createRequire5 } from "node:module";
23871
+ import { createRequire as createRequire4 } from "node:module";
23647
23872
 
23648
23873
  // src/utils/help-json.ts
23874
+ init_cjs_shim();
23649
23875
  init_identity();
23650
23876
  function commandToJson(cmd, opts = {}) {
23651
23877
  const args = cmd.registeredArguments.map((a) => ({
@@ -23698,6 +23924,7 @@ function resolveTargetCommand(root, argv) {
23698
23924
  init_identity();
23699
23925
 
23700
23926
  // src/commands/config.ts
23927
+ init_cjs_shim();
23701
23928
  init_arg_parsers();
23702
23929
  init_arg_parsers();
23703
23930
  init_config();
@@ -24009,14 +24236,17 @@ Then use the profile:
24009
24236
  }
24010
24237
 
24011
24238
  // src/commands/devices.ts
24239
+ init_cjs_shim();
24012
24240
  init_arg_parsers();
24013
24241
  init_output();
24014
24242
 
24015
24243
  // src/utils/format.ts
24244
+ init_cjs_shim();
24016
24245
  init_output();
24017
24246
  init_flags();
24018
24247
 
24019
24248
  // node_modules/js-yaml/dist/js-yaml.mjs
24249
+ init_cjs_shim();
24020
24250
  function isNothing(subject) {
24021
24251
  return typeof subject === "undefined" || subject === null;
24022
24252
  }
@@ -26720,6 +26950,7 @@ init_catalog();
26720
26950
  init_cache();
26721
26951
 
26722
26952
  // src/devices/device-meta.ts
26953
+ init_cjs_shim();
26723
26954
  init_flags();
26724
26955
  import fs7 from "node:fs";
26725
26956
  import path7 from "node:path";
@@ -26770,9 +27001,11 @@ function clearDeviceMeta(deviceId) {
26770
27001
  }
26771
27002
 
26772
27003
  // src/utils/name-resolver.ts
27004
+ init_cjs_shim();
26773
27005
  init_cache();
26774
27006
 
26775
27007
  // src/utils/string.ts
27008
+ init_cjs_shim();
26776
27009
  function levenshtein(a, b2) {
26777
27010
  if (a === b2) return 0;
26778
27011
  if (a.length === 0) return b2.length;
@@ -26916,9 +27149,11 @@ function resolveDeviceId(deviceId, nameQuery, opts = {}) {
26916
27149
  }
26917
27150
 
26918
27151
  // src/lib/devices.ts
27152
+ init_cjs_shim();
26919
27153
  init_client();
26920
27154
 
26921
27155
  // src/lib/idempotency.ts
27156
+ init_cjs_shim();
26922
27157
  import crypto2 from "node:crypto";
26923
27158
  var DEFAULT_TTL_MS = 6e4;
26924
27159
  var DEFAULT_MAX_ENTRIES = 1024;
@@ -27019,6 +27254,7 @@ init_cache();
27019
27254
  init_flags();
27020
27255
 
27021
27256
  // src/utils/audit.ts
27257
+ init_cjs_shim();
27022
27258
  init_flags();
27023
27259
  import fs8 from "node:fs";
27024
27260
  import os9 from "node:os";
@@ -27439,6 +27675,7 @@ function toMcpIrDeviceShape(d) {
27439
27675
  }
27440
27676
 
27441
27677
  // src/utils/filter.ts
27678
+ init_cjs_shim();
27442
27679
  var FilterSyntaxError = class extends Error {
27443
27680
  constructor(message) {
27444
27681
  super(message);
@@ -27591,6 +27828,7 @@ function applyFilter(clauses, deviceList, infraredRemoteList, hubLocation) {
27591
27828
  }
27592
27829
 
27593
27830
  // src/devices/param-validator.ts
27831
+ init_cjs_shim();
27594
27832
  init_output();
27595
27833
  var AC_MODE_MAP = { auto: 1, cool: 2, dry: 3, fan: 4, heat: 5 };
27596
27834
  var AC_FAN_MAP = { auto: 1, low: 2, mid: 3, high: 4 };
@@ -27984,6 +28222,7 @@ function validateRelaySetMode(raw) {
27984
28222
  }
27985
28223
 
27986
28224
  // src/commands/batch.ts
28225
+ init_cjs_shim();
27987
28226
  init_arg_parsers();
27988
28227
  init_output();
27989
28228
  init_client();
@@ -27992,6 +28231,7 @@ init_client();
27992
28231
  init_cache();
27993
28232
 
27994
28233
  // src/lib/destructive-mode.ts
28234
+ init_cjs_shim();
27995
28235
  init_request_context();
27996
28236
  var DIRECT_DESTRUCTIVE_PROFILES = /* @__PURE__ */ new Set(["dev", "development"]);
27997
28237
  function allowsDirectDestructiveExecution(profile = getActiveProfile()) {
@@ -28357,6 +28597,7 @@ Summary: ${result.summary.ok} ok, ${result.summary.failed} failed, ${result.summ
28357
28597
  }
28358
28598
 
28359
28599
  // src/commands/watch.ts
28600
+ init_cjs_shim();
28360
28601
  init_output();
28361
28602
  init_cache();
28362
28603
  init_flags();
@@ -28364,6 +28605,7 @@ init_arg_parsers();
28364
28605
  init_client();
28365
28606
 
28366
28607
  // src/schema/field-aliases.ts
28608
+ init_cjs_shim();
28367
28609
  init_output();
28368
28610
  var FIELD_ALIASES = {
28369
28611
  // Identification (shared with list/filter)
@@ -28627,6 +28869,7 @@ Examples:
28627
28869
  }
28628
28870
 
28629
28871
  // src/commands/explain.ts
28872
+ init_cjs_shim();
28630
28873
  init_output();
28631
28874
  function deviceName(d) {
28632
28875
  return d.deviceName;
@@ -28748,6 +28991,7 @@ function printHuman(r) {
28748
28991
  }
28749
28992
 
28750
28993
  // src/commands/expand.ts
28994
+ init_cjs_shim();
28751
28995
  init_arg_parsers();
28752
28996
  init_output();
28753
28997
  init_cache();
@@ -28850,6 +29094,7 @@ Examples:
28850
29094
  }
28851
29095
 
28852
29096
  // src/commands/device-meta.ts
29097
+ init_cjs_shim();
28853
29098
  init_arg_parsers();
28854
29099
  init_output();
28855
29100
  function registerDevicesMetaCommand(devices) {
@@ -29793,9 +30038,11 @@ Tip: Use 'devices expand <id> ${expandHint.command} ${expandHint.flags}' for sem
29793
30038
  }
29794
30039
 
29795
30040
  // src/commands/scenes.ts
30041
+ init_cjs_shim();
29796
30042
  init_output();
29797
30043
 
29798
30044
  // src/lib/scenes.ts
30045
+ init_cjs_shim();
29799
30046
  init_client();
29800
30047
  async function fetchScenes(client) {
29801
30048
  const c = client ?? createClient();
@@ -30029,6 +30276,7 @@ Example:
30029
30276
  }
30030
30277
 
30031
30278
  // src/commands/webhook.ts
30279
+ init_cjs_shim();
30032
30280
  init_arg_parsers();
30033
30281
  init_client();
30034
30282
  init_output();
@@ -30183,6 +30431,7 @@ Example:
30183
30431
  }
30184
30432
 
30185
30433
  // src/commands/completion.ts
30434
+ init_cjs_shim();
30186
30435
  var BASH_SCRIPT = `# switchbot bash completion
30187
30436
  # Install: source <(switchbot completion bash)
30188
30437
  # Or add to ~/.bashrc:
@@ -30568,10 +30817,14 @@ source it directly:
30568
30817
  }
30569
30818
 
30570
30819
  // src/commands/mcp.ts
30820
+ init_cjs_shim();
30571
30821
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
30572
30822
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
30573
30823
  import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
30574
30824
 
30825
+ // node_modules/zod/index.js
30826
+ init_cjs_shim();
30827
+
30575
30828
  // node_modules/zod/v4/classic/external.js
30576
30829
  var external_exports = {};
30577
30830
  __export(external_exports, {
@@ -30812,6 +31065,7 @@ __export(external_exports, {
30812
31065
  xid: () => xid2,
30813
31066
  xor: () => xor
30814
31067
  });
31068
+ init_cjs_shim();
30815
31069
 
30816
31070
  // node_modules/zod/v4/core/index.js
30817
31071
  var core_exports2 = {};
@@ -31090,8 +31344,10 @@ __export(core_exports2, {
31090
31344
  util: () => util_exports,
31091
31345
  version: () => version
31092
31346
  });
31347
+ init_cjs_shim();
31093
31348
 
31094
31349
  // node_modules/zod/v4/core/core.js
31350
+ init_cjs_shim();
31095
31351
  var NEVER = Object.freeze({
31096
31352
  status: "aborted"
31097
31353
  });
@@ -31166,6 +31422,12 @@ function config(newConfig) {
31166
31422
  return globalConfig;
31167
31423
  }
31168
31424
 
31425
+ // node_modules/zod/v4/core/parse.js
31426
+ init_cjs_shim();
31427
+
31428
+ // node_modules/zod/v4/core/errors.js
31429
+ init_cjs_shim();
31430
+
31169
31431
  // node_modules/zod/v4/core/util.js
31170
31432
  var util_exports = {};
31171
31433
  __export(util_exports, {
@@ -31232,6 +31494,7 @@ __export(util_exports, {
31232
31494
  uint8ArrayToHex: () => uint8ArrayToHex,
31233
31495
  unwrapMessage: () => unwrapMessage
31234
31496
  });
31497
+ init_cjs_shim();
31235
31498
  function assertEqual(val) {
31236
31499
  return val;
31237
31500
  }
@@ -32069,6 +32332,12 @@ var _safeDecodeAsync = (_Err) => async (schema2, value, _ctx) => {
32069
32332
  };
32070
32333
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
32071
32334
 
32335
+ // node_modules/zod/v4/core/schemas.js
32336
+ init_cjs_shim();
32337
+
32338
+ // node_modules/zod/v4/core/checks.js
32339
+ init_cjs_shim();
32340
+
32072
32341
  // node_modules/zod/v4/core/regexes.js
32073
32342
  var regexes_exports = {};
32074
32343
  __export(regexes_exports, {
@@ -32131,6 +32400,7 @@ __export(regexes_exports, {
32131
32400
  uuid7: () => uuid7,
32132
32401
  xid: () => xid
32133
32402
  });
32403
+ init_cjs_shim();
32134
32404
  var cuid = /^[cC][^\s-]{8,}$/;
32135
32405
  var cuid2 = /^[0-9a-z]+$/;
32136
32406
  var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
@@ -32775,6 +33045,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
32775
33045
  });
32776
33046
 
32777
33047
  // node_modules/zod/v4/core/doc.js
33048
+ init_cjs_shim();
32778
33049
  var Doc = class {
32779
33050
  constructor(args = []) {
32780
33051
  this.content = [];
@@ -32811,6 +33082,7 @@ var Doc = class {
32811
33082
  };
32812
33083
 
32813
33084
  // node_modules/zod/v4/core/versions.js
33085
+ init_cjs_shim();
32814
33086
  var version = {
32815
33087
  major: 4,
32816
33088
  minor: 3,
@@ -34841,8 +35113,10 @@ __export(locales_exports, {
34841
35113
  zhCN: () => zh_CN_default,
34842
35114
  zhTW: () => zh_TW_default
34843
35115
  });
35116
+ init_cjs_shim();
34844
35117
 
34845
35118
  // node_modules/zod/v4/locales/ar.js
35119
+ init_cjs_shim();
34846
35120
  var error = () => {
34847
35121
  const Sizable = {
34848
35122
  string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
@@ -34950,6 +35224,7 @@ function ar_default() {
34950
35224
  }
34951
35225
 
34952
35226
  // node_modules/zod/v4/locales/az.js
35227
+ init_cjs_shim();
34953
35228
  var error2 = () => {
34954
35229
  const Sizable = {
34955
35230
  string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
@@ -35056,6 +35331,7 @@ function az_default() {
35056
35331
  }
35057
35332
 
35058
35333
  // node_modules/zod/v4/locales/be.js
35334
+ init_cjs_shim();
35059
35335
  function getBelarusianPlural(count, one, few, many) {
35060
35336
  const absCount = Math.abs(count);
35061
35337
  const lastDigit = absCount % 10;
@@ -35213,6 +35489,7 @@ function be_default() {
35213
35489
  }
35214
35490
 
35215
35491
  // node_modules/zod/v4/locales/bg.js
35492
+ init_cjs_shim();
35216
35493
  var error4 = () => {
35217
35494
  const Sizable = {
35218
35495
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
@@ -35334,6 +35611,7 @@ function bg_default() {
35334
35611
  }
35335
35612
 
35336
35613
  // node_modules/zod/v4/locales/ca.js
35614
+ init_cjs_shim();
35337
35615
  var error5 = () => {
35338
35616
  const Sizable = {
35339
35617
  string: { unit: "car\xE0cters", verb: "contenir" },
@@ -35443,6 +35721,7 @@ function ca_default() {
35443
35721
  }
35444
35722
 
35445
35723
  // node_modules/zod/v4/locales/cs.js
35724
+ init_cjs_shim();
35446
35725
  var error6 = () => {
35447
35726
  const Sizable = {
35448
35727
  string: { unit: "znak\u016F", verb: "m\xEDt" },
@@ -35555,6 +35834,7 @@ function cs_default() {
35555
35834
  }
35556
35835
 
35557
35836
  // node_modules/zod/v4/locales/da.js
35837
+ init_cjs_shim();
35558
35838
  var error7 = () => {
35559
35839
  const Sizable = {
35560
35840
  string: { unit: "tegn", verb: "havde" },
@@ -35671,6 +35951,7 @@ function da_default() {
35671
35951
  }
35672
35952
 
35673
35953
  // node_modules/zod/v4/locales/de.js
35954
+ init_cjs_shim();
35674
35955
  var error8 = () => {
35675
35956
  const Sizable = {
35676
35957
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -35780,6 +36061,7 @@ function de_default() {
35780
36061
  }
35781
36062
 
35782
36063
  // node_modules/zod/v4/locales/en.js
36064
+ init_cjs_shim();
35783
36065
  var error9 = () => {
35784
36066
  const Sizable = {
35785
36067
  string: { unit: "characters", verb: "to have" },
@@ -35889,6 +36171,7 @@ function en_default() {
35889
36171
  }
35890
36172
 
35891
36173
  // node_modules/zod/v4/locales/eo.js
36174
+ init_cjs_shim();
35892
36175
  var error10 = () => {
35893
36176
  const Sizable = {
35894
36177
  string: { unit: "karaktrojn", verb: "havi" },
@@ -35999,6 +36282,7 @@ function eo_default() {
35999
36282
  }
36000
36283
 
36001
36284
  // node_modules/zod/v4/locales/es.js
36285
+ init_cjs_shim();
36002
36286
  var error11 = () => {
36003
36287
  const Sizable = {
36004
36288
  string: { unit: "caracteres", verb: "tener" },
@@ -36132,6 +36416,7 @@ function es_default() {
36132
36416
  }
36133
36417
 
36134
36418
  // node_modules/zod/v4/locales/fa.js
36419
+ init_cjs_shim();
36135
36420
  var error12 = () => {
36136
36421
  const Sizable = {
36137
36422
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -36247,6 +36532,7 @@ function fa_default() {
36247
36532
  }
36248
36533
 
36249
36534
  // node_modules/zod/v4/locales/fi.js
36535
+ init_cjs_shim();
36250
36536
  var error13 = () => {
36251
36537
  const Sizable = {
36252
36538
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
@@ -36360,6 +36646,7 @@ function fi_default() {
36360
36646
  }
36361
36647
 
36362
36648
  // node_modules/zod/v4/locales/fr.js
36649
+ init_cjs_shim();
36363
36650
  var error14 = () => {
36364
36651
  const Sizable = {
36365
36652
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -36469,6 +36756,7 @@ function fr_default() {
36469
36756
  }
36470
36757
 
36471
36758
  // node_modules/zod/v4/locales/fr-CA.js
36759
+ init_cjs_shim();
36472
36760
  var error15 = () => {
36473
36761
  const Sizable = {
36474
36762
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -36577,6 +36865,7 @@ function fr_CA_default() {
36577
36865
  }
36578
36866
 
36579
36867
  // node_modules/zod/v4/locales/he.js
36868
+ init_cjs_shim();
36580
36869
  var error16 = () => {
36581
36870
  const TypeNames = {
36582
36871
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
@@ -36772,6 +37061,7 @@ function he_default() {
36772
37061
  }
36773
37062
 
36774
37063
  // node_modules/zod/v4/locales/hu.js
37064
+ init_cjs_shim();
36775
37065
  var error17 = () => {
36776
37066
  const Sizable = {
36777
37067
  string: { unit: "karakter", verb: "legyen" },
@@ -36881,6 +37171,7 @@ function hu_default() {
36881
37171
  }
36882
37172
 
36883
37173
  // node_modules/zod/v4/locales/hy.js
37174
+ init_cjs_shim();
36884
37175
  function getArmenianPlural(count, one, many) {
36885
37176
  return Math.abs(count) === 1 ? one : many;
36886
37177
  }
@@ -37029,6 +37320,7 @@ function hy_default() {
37029
37320
  }
37030
37321
 
37031
37322
  // node_modules/zod/v4/locales/id.js
37323
+ init_cjs_shim();
37032
37324
  var error19 = () => {
37033
37325
  const Sizable = {
37034
37326
  string: { unit: "karakter", verb: "memiliki" },
@@ -37136,6 +37428,7 @@ function id_default() {
37136
37428
  }
37137
37429
 
37138
37430
  // node_modules/zod/v4/locales/is.js
37431
+ init_cjs_shim();
37139
37432
  var error20 = () => {
37140
37433
  const Sizable = {
37141
37434
  string: { unit: "stafi", verb: "a\xF0 hafa" },
@@ -37246,6 +37539,7 @@ function is_default() {
37246
37539
  }
37247
37540
 
37248
37541
  // node_modules/zod/v4/locales/it.js
37542
+ init_cjs_shim();
37249
37543
  var error21 = () => {
37250
37544
  const Sizable = {
37251
37545
  string: { unit: "caratteri", verb: "avere" },
@@ -37355,6 +37649,7 @@ function it_default() {
37355
37649
  }
37356
37650
 
37357
37651
  // node_modules/zod/v4/locales/ja.js
37652
+ init_cjs_shim();
37358
37653
  var error22 = () => {
37359
37654
  const Sizable = {
37360
37655
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
@@ -37463,6 +37758,7 @@ function ja_default() {
37463
37758
  }
37464
37759
 
37465
37760
  // node_modules/zod/v4/locales/ka.js
37761
+ init_cjs_shim();
37466
37762
  var error23 = () => {
37467
37763
  const Sizable = {
37468
37764
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -37575,7 +37871,11 @@ function ka_default() {
37575
37871
  };
37576
37872
  }
37577
37873
 
37874
+ // node_modules/zod/v4/locales/kh.js
37875
+ init_cjs_shim();
37876
+
37578
37877
  // node_modules/zod/v4/locales/km.js
37878
+ init_cjs_shim();
37579
37879
  var error24 = () => {
37580
37880
  const Sizable = {
37581
37881
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -37692,6 +37992,7 @@ function kh_default() {
37692
37992
  }
37693
37993
 
37694
37994
  // node_modules/zod/v4/locales/ko.js
37995
+ init_cjs_shim();
37695
37996
  var error25 = () => {
37696
37997
  const Sizable = {
37697
37998
  string: { unit: "\uBB38\uC790", verb: "to have" },
@@ -37804,6 +38105,7 @@ function ko_default() {
37804
38105
  }
37805
38106
 
37806
38107
  // node_modules/zod/v4/locales/lt.js
38108
+ init_cjs_shim();
37807
38109
  var capitalizeFirstCharacter = (text) => {
37808
38110
  return text.charAt(0).toUpperCase() + text.slice(1);
37809
38111
  };
@@ -38008,6 +38310,7 @@ function lt_default() {
38008
38310
  }
38009
38311
 
38010
38312
  // node_modules/zod/v4/locales/mk.js
38313
+ init_cjs_shim();
38011
38314
  var error27 = () => {
38012
38315
  const Sizable = {
38013
38316
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -38118,6 +38421,7 @@ function mk_default() {
38118
38421
  }
38119
38422
 
38120
38423
  // node_modules/zod/v4/locales/ms.js
38424
+ init_cjs_shim();
38121
38425
  var error28 = () => {
38122
38426
  const Sizable = {
38123
38427
  string: { unit: "aksara", verb: "mempunyai" },
@@ -38226,6 +38530,7 @@ function ms_default() {
38226
38530
  }
38227
38531
 
38228
38532
  // node_modules/zod/v4/locales/nl.js
38533
+ init_cjs_shim();
38229
38534
  var error29 = () => {
38230
38535
  const Sizable = {
38231
38536
  string: { unit: "tekens", verb: "heeft" },
@@ -38337,6 +38642,7 @@ function nl_default() {
38337
38642
  }
38338
38643
 
38339
38644
  // node_modules/zod/v4/locales/no.js
38645
+ init_cjs_shim();
38340
38646
  var error30 = () => {
38341
38647
  const Sizable = {
38342
38648
  string: { unit: "tegn", verb: "\xE5 ha" },
@@ -38446,6 +38752,7 @@ function no_default() {
38446
38752
  }
38447
38753
 
38448
38754
  // node_modules/zod/v4/locales/ota.js
38755
+ init_cjs_shim();
38449
38756
  var error31 = () => {
38450
38757
  const Sizable = {
38451
38758
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
@@ -38556,6 +38863,7 @@ function ota_default() {
38556
38863
  }
38557
38864
 
38558
38865
  // node_modules/zod/v4/locales/ps.js
38866
+ init_cjs_shim();
38559
38867
  var error32 = () => {
38560
38868
  const Sizable = {
38561
38869
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
@@ -38671,6 +38979,7 @@ function ps_default() {
38671
38979
  }
38672
38980
 
38673
38981
  // node_modules/zod/v4/locales/pl.js
38982
+ init_cjs_shim();
38674
38983
  var error33 = () => {
38675
38984
  const Sizable = {
38676
38985
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
@@ -38781,6 +39090,7 @@ function pl_default() {
38781
39090
  }
38782
39091
 
38783
39092
  // node_modules/zod/v4/locales/pt.js
39093
+ init_cjs_shim();
38784
39094
  var error34 = () => {
38785
39095
  const Sizable = {
38786
39096
  string: { unit: "caracteres", verb: "ter" },
@@ -38890,6 +39200,7 @@ function pt_default() {
38890
39200
  }
38891
39201
 
38892
39202
  // node_modules/zod/v4/locales/ru.js
39203
+ init_cjs_shim();
38893
39204
  function getRussianPlural(count, one, few, many) {
38894
39205
  const absCount = Math.abs(count);
38895
39206
  const lastDigit = absCount % 10;
@@ -39047,6 +39358,7 @@ function ru_default() {
39047
39358
  }
39048
39359
 
39049
39360
  // node_modules/zod/v4/locales/sl.js
39361
+ init_cjs_shim();
39050
39362
  var error36 = () => {
39051
39363
  const Sizable = {
39052
39364
  string: { unit: "znakov", verb: "imeti" },
@@ -39157,6 +39469,7 @@ function sl_default() {
39157
39469
  }
39158
39470
 
39159
39471
  // node_modules/zod/v4/locales/sv.js
39472
+ init_cjs_shim();
39160
39473
  var error37 = () => {
39161
39474
  const Sizable = {
39162
39475
  string: { unit: "tecken", verb: "att ha" },
@@ -39268,6 +39581,7 @@ function sv_default() {
39268
39581
  }
39269
39582
 
39270
39583
  // node_modules/zod/v4/locales/ta.js
39584
+ init_cjs_shim();
39271
39585
  var error38 = () => {
39272
39586
  const Sizable = {
39273
39587
  string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
@@ -39379,6 +39693,7 @@ function ta_default() {
39379
39693
  }
39380
39694
 
39381
39695
  // node_modules/zod/v4/locales/th.js
39696
+ init_cjs_shim();
39382
39697
  var error39 = () => {
39383
39698
  const Sizable = {
39384
39699
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -39490,6 +39805,7 @@ function th_default() {
39490
39805
  }
39491
39806
 
39492
39807
  // node_modules/zod/v4/locales/tr.js
39808
+ init_cjs_shim();
39493
39809
  var error40 = () => {
39494
39810
  const Sizable = {
39495
39811
  string: { unit: "karakter", verb: "olmal\u0131" },
@@ -39595,7 +39911,11 @@ function tr_default() {
39595
39911
  };
39596
39912
  }
39597
39913
 
39914
+ // node_modules/zod/v4/locales/ua.js
39915
+ init_cjs_shim();
39916
+
39598
39917
  // node_modules/zod/v4/locales/uk.js
39918
+ init_cjs_shim();
39599
39919
  var error41 = () => {
39600
39920
  const Sizable = {
39601
39921
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -39710,6 +40030,7 @@ function ua_default() {
39710
40030
  }
39711
40031
 
39712
40032
  // node_modules/zod/v4/locales/ur.js
40033
+ init_cjs_shim();
39713
40034
  var error42 = () => {
39714
40035
  const Sizable = {
39715
40036
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
@@ -39821,6 +40142,7 @@ function ur_default() {
39821
40142
  }
39822
40143
 
39823
40144
  // node_modules/zod/v4/locales/uz.js
40145
+ init_cjs_shim();
39824
40146
  var error43 = () => {
39825
40147
  const Sizable = {
39826
40148
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
@@ -39931,6 +40253,7 @@ function uz_default() {
39931
40253
  }
39932
40254
 
39933
40255
  // node_modules/zod/v4/locales/vi.js
40256
+ init_cjs_shim();
39934
40257
  var error44 = () => {
39935
40258
  const Sizable = {
39936
40259
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
@@ -40040,6 +40363,7 @@ function vi_default() {
40040
40363
  }
40041
40364
 
40042
40365
  // node_modules/zod/v4/locales/zh-CN.js
40366
+ init_cjs_shim();
40043
40367
  var error45 = () => {
40044
40368
  const Sizable = {
40045
40369
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
@@ -40150,6 +40474,7 @@ function zh_CN_default() {
40150
40474
  }
40151
40475
 
40152
40476
  // node_modules/zod/v4/locales/zh-TW.js
40477
+ init_cjs_shim();
40153
40478
  var error46 = () => {
40154
40479
  const Sizable = {
40155
40480
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
@@ -40258,6 +40583,7 @@ function zh_TW_default() {
40258
40583
  }
40259
40584
 
40260
40585
  // node_modules/zod/v4/locales/yo.js
40586
+ init_cjs_shim();
40261
40587
  var error47 = () => {
40262
40588
  const Sizable = {
40263
40589
  string: { unit: "\xE0mi", verb: "n\xED" },
@@ -40366,6 +40692,7 @@ function yo_default() {
40366
40692
  }
40367
40693
 
40368
40694
  // node_modules/zod/v4/core/registries.js
40695
+ init_cjs_shim();
40369
40696
  var _a;
40370
40697
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
40371
40698
  var $input = /* @__PURE__ */ Symbol("ZodInput");
@@ -40416,6 +40743,7 @@ function registry() {
40416
40743
  var globalRegistry = globalThis.__zod_globalRegistry;
40417
40744
 
40418
40745
  // node_modules/zod/v4/core/api.js
40746
+ init_cjs_shim();
40419
40747
  // @__NO_SIDE_EFFECTS__
40420
40748
  function _string(Class2, params) {
40421
40749
  return new Class2({
@@ -41455,6 +41783,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
41455
41783
  }
41456
41784
 
41457
41785
  // node_modules/zod/v4/core/to-json-schema.js
41786
+ init_cjs_shim();
41458
41787
  function initializeContext(params) {
41459
41788
  let target = params?.target ?? "draft-2020-12";
41460
41789
  if (target === "draft-4")
@@ -41807,6 +42136,7 @@ var createStandardJSONSchemaMethod = (schema2, io, processors = {}) => (params)
41807
42136
  };
41808
42137
 
41809
42138
  // node_modules/zod/v4/core/json-schema-processors.js
42139
+ init_cjs_shim();
41810
42140
  var formatMap = {
41811
42141
  guid: "uuid",
41812
42142
  url: "uri",
@@ -42358,6 +42688,7 @@ function toJSONSchema(input, params) {
42358
42688
  }
42359
42689
 
42360
42690
  // node_modules/zod/v4/core/json-schema-generator.js
42691
+ init_cjs_shim();
42361
42692
  var JSONSchemaGenerator = class {
42362
42693
  /** @deprecated Access via ctx instead */
42363
42694
  get metadataRegistry() {
@@ -42434,6 +42765,7 @@ var JSONSchemaGenerator = class {
42434
42765
 
42435
42766
  // node_modules/zod/v4/core/json-schema.js
42436
42767
  var json_schema_exports = {};
42768
+ init_cjs_shim();
42437
42769
 
42438
42770
  // node_modules/zod/v4/classic/schemas.js
42439
42771
  var schemas_exports2 = {};
@@ -42603,6 +42935,7 @@ __export(schemas_exports2, {
42603
42935
  xid: () => xid2,
42604
42936
  xor: () => xor
42605
42937
  });
42938
+ init_cjs_shim();
42606
42939
 
42607
42940
  // node_modules/zod/v4/classic/checks.js
42608
42941
  var checks_exports2 = {};
@@ -42637,6 +42970,7 @@ __export(checks_exports2, {
42637
42970
  trim: () => _trim,
42638
42971
  uppercase: () => _uppercase
42639
42972
  });
42973
+ init_cjs_shim();
42640
42974
 
42641
42975
  // node_modules/zod/v4/classic/iso.js
42642
42976
  var iso_exports = {};
@@ -42650,6 +42984,7 @@ __export(iso_exports, {
42650
42984
  duration: () => duration2,
42651
42985
  time: () => time2
42652
42986
  });
42987
+ init_cjs_shim();
42653
42988
  var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
42654
42989
  $ZodISODateTime.init(inst, def);
42655
42990
  ZodStringFormat.init(inst, def);
@@ -42679,7 +43014,11 @@ function duration2(params) {
42679
43014
  return _isoDuration(ZodISODuration, params);
42680
43015
  }
42681
43016
 
43017
+ // node_modules/zod/v4/classic/parse.js
43018
+ init_cjs_shim();
43019
+
42682
43020
  // node_modules/zod/v4/classic/errors.js
43021
+ init_cjs_shim();
42683
43022
  var initializer2 = (inst, issues) => {
42684
43023
  $ZodError.init(inst, issues);
42685
43024
  inst.name = "ZodError";
@@ -43813,6 +44152,7 @@ function preprocess(fn, schema2) {
43813
44152
  }
43814
44153
 
43815
44154
  // node_modules/zod/v4/classic/compat.js
44155
+ init_cjs_shim();
43816
44156
  var ZodIssueCode = {
43817
44157
  invalid_type: "invalid_type",
43818
44158
  too_big: "too_big",
@@ -43839,6 +44179,7 @@ var ZodFirstPartyTypeKind;
43839
44179
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
43840
44180
 
43841
44181
  // node_modules/zod/v4/classic/from-json-schema.js
44182
+ init_cjs_shim();
43842
44183
  var z = {
43843
44184
  ...schemas_exports2,
43844
44185
  ...checks_exports2,
@@ -44321,6 +44662,7 @@ __export(coerce_exports, {
44321
44662
  number: () => number3,
44322
44663
  string: () => string3
44323
44664
  });
44665
+ init_cjs_shim();
44324
44666
  function string3(params) {
44325
44667
  return _coercedString(ZodString, params);
44326
44668
  }
@@ -44345,21 +44687,24 @@ init_arg_parsers();
44345
44687
  init_output();
44346
44688
 
44347
44689
  // src/version.ts
44348
- import { createRequire } from "module";
44349
- var require2 = createRequire(import.meta.url);
44350
- var { version: VERSION } = require2("../package.json");
44690
+ init_cjs_shim();
44691
+ import { createRequire as createRequire2 } from "module";
44692
+ var require3 = createRequire2(import.meta.url);
44693
+ var { version: VERSION } = require3("../package.json");
44351
44694
 
44352
44695
  // src/commands/mcp.ts
44353
44696
  init_catalog();
44354
44697
  init_cache();
44355
44698
 
44356
44699
  // src/mcp/events-subscription.ts
44700
+ init_cjs_shim();
44357
44701
  init_client2();
44358
44702
  init_credential();
44359
44703
  init_cache();
44360
44704
  init_client();
44361
44705
 
44362
44706
  // src/logger.ts
44707
+ init_cjs_shim();
44363
44708
  import pino from "pino";
44364
44709
  var logLevel = process.env.LOG_LEVEL || "warn";
44365
44710
  var logFormat = process.env.LOG_FORMAT || "json";
@@ -44370,6 +44715,7 @@ var pinoConfig = {
44370
44715
  var log = pino(pinoConfig);
44371
44716
 
44372
44717
  // src/mcp/device-history.ts
44718
+ init_cjs_shim();
44373
44719
  import fs9 from "node:fs";
44374
44720
  import path9 from "node:path";
44375
44721
  import os10 from "node:os";
@@ -44674,6 +45020,7 @@ var EventSubscriptionManager = class {
44674
45020
  };
44675
45021
 
44676
45022
  // src/devices/history-query.ts
45023
+ init_cjs_shim();
44677
45024
  import fs10 from "node:fs";
44678
45025
  import path10 from "node:path";
44679
45026
  import os11 from "node:os";
@@ -44822,6 +45169,7 @@ function queryDeviceHistoryStats(deviceId) {
44822
45169
  }
44823
45170
 
44824
45171
  // src/devices/history-agg.ts
45172
+ init_cjs_shim();
44825
45173
  import fs11 from "node:fs";
44826
45174
  import readline3 from "node:readline";
44827
45175
  var ALL_AGG_FNS = ["count", "min", "max", "avg", "sum", "p50", "p95"];
@@ -44955,6 +45303,7 @@ init_request_context();
44955
45303
  init_config();
44956
45304
 
44957
45305
  // src/policy/load.ts
45306
+ init_cjs_shim();
44958
45307
  var import_yaml = __toESM(require_dist(), 1);
44959
45308
  import { readFileSync } from "node:fs";
44960
45309
  import { homedir } from "node:os";
@@ -45014,11 +45363,13 @@ function loadPolicyFile(policyPath) {
45014
45363
  }
45015
45364
 
45016
45365
  // src/policy/validate.ts
45366
+ init_cjs_shim();
45017
45367
  var import__ = __toESM(require__(), 1);
45018
45368
  var import_yaml2 = __toESM(require_dist(), 1);
45019
- import { createRequire as createRequire2 } from "node:module";
45369
+ import { createRequire as createRequire3 } from "node:module";
45020
45370
 
45021
45371
  // src/policy/schema.ts
45372
+ init_cjs_shim();
45022
45373
  import { readFileSync as readFileSync2 } from "node:fs";
45023
45374
  import { fileURLToPath } from "node:url";
45024
45375
  var SUPPORTED_POLICY_SCHEMA_VERSIONS = ["0.2"];
@@ -45038,6 +45389,7 @@ function isSupportedPolicySchemaVersion(v2) {
45038
45389
  }
45039
45390
 
45040
45391
  // src/rules/destructive.ts
45392
+ init_cjs_shim();
45041
45393
  var DESTRUCTIVE_COMMANDS = [
45042
45394
  "lock",
45043
45395
  "unlock",
@@ -45070,8 +45422,8 @@ function destructiveVerbOf(cmd) {
45070
45422
  }
45071
45423
 
45072
45424
  // src/policy/validate.ts
45073
- var require3 = createRequire2(import.meta.url);
45074
- var addFormats = require3("ajv-formats");
45425
+ var require4 = createRequire3(import.meta.url);
45426
+ var addFormats = require4("ajv-formats");
45075
45427
  var validators = /* @__PURE__ */ new Map();
45076
45428
  function getValidator(version2) {
45077
45429
  const cached2 = validators.get(version2);
@@ -45289,6 +45641,7 @@ function validateLoadedPolicy(loaded) {
45289
45641
  }
45290
45642
 
45291
45643
  // src/policy/migrate.ts
45644
+ init_cjs_shim();
45292
45645
  var import_yaml3 = __toESM(require_dist(), 1);
45293
45646
  var PolicyMigrationError = class extends Error {
45294
45647
  constructor(message, code) {
@@ -45344,6 +45697,7 @@ function planMigration(loaded, from, to) {
45344
45697
  }
45345
45698
 
45346
45699
  // src/commands/plan.ts
45700
+ init_cjs_shim();
45347
45701
  init_output();
45348
45702
  import fs13 from "node:fs";
45349
45703
  import readline4 from "node:readline";
@@ -45351,6 +45705,7 @@ import { randomUUID as randomUUID3 } from "node:crypto";
45351
45705
  init_cache();
45352
45706
 
45353
45707
  // src/lib/command-keywords.ts
45708
+ init_cjs_shim();
45354
45709
  var COMMAND_KEYWORDS = [
45355
45710
  { pattern: /\boff\b|\bturn.?off\b|\bstop\b/i, command: "turnOff" },
45356
45711
  { pattern: /\bon\b|\bturn.?on\b|\bstart\b/i, command: "turnOn" },
@@ -45363,6 +45718,7 @@ var COMMAND_KEYWORDS = [
45363
45718
  ];
45364
45719
 
45365
45720
  // src/lib/plan-store.ts
45721
+ init_cjs_shim();
45366
45722
  import fs12 from "node:fs";
45367
45723
  import os12 from "node:os";
45368
45724
  import path11 from "node:path";
@@ -45980,6 +46336,7 @@ summary: ok=${ok} error=${error48} skipped=${skipped} total=${out.summary.total}
45980
46336
  }
45981
46337
 
45982
46338
  // src/rules/suggest.ts
46339
+ init_cjs_shim();
45983
46340
  var import_yaml4 = __toESM(require_dist(), 1);
45984
46341
  var TRIGGER_KEYWORDS = [
45985
46342
  { pattern: /\bmotion\b|\bdetect/i, trigger: "mqtt", event: "motion.detected" },
@@ -46065,6 +46422,7 @@ function suggestRule(opts) {
46065
46422
  }
46066
46423
 
46067
46424
  // src/policy/add-rule.ts
46425
+ init_cjs_shim();
46068
46426
  var import_yaml5 = __toESM(require_dist(), 1);
46069
46427
  var import_yaml6 = __toESM(require_dist(), 1);
46070
46428
  import fs14 from "node:fs";
@@ -46195,6 +46553,7 @@ init_flags();
46195
46553
  var import_yaml7 = __toESM(require_dist(), 1);
46196
46554
 
46197
46555
  // src/policy/diff.ts
46556
+ init_cjs_shim();
46198
46557
  var MAX_POLICY_DIFF_CHANGES = 200;
46199
46558
  function isPlainObject2(v2) {
46200
46559
  return !!v2 && typeof v2 === "object" && !Array.isArray(v2);
@@ -48155,6 +48514,7 @@ process_uptime_seconds ${Math.floor(process.uptime())}
48155
48514
  }
48156
48515
 
48157
48516
  // src/commands/quota.ts
48517
+ init_cjs_shim();
48158
48518
  init_output();
48159
48519
  init_quota();
48160
48520
  function registerQuotaCommand(program3) {
@@ -48221,6 +48581,7 @@ Examples:
48221
48581
  }
48222
48582
 
48223
48583
  // src/commands/catalog.ts
48584
+ init_cjs_shim();
48224
48585
  init_arg_parsers();
48225
48586
  init_output();
48226
48587
  init_catalog();
@@ -48524,6 +48885,7 @@ function renderEntry(entry) {
48524
48885
  }
48525
48886
 
48526
48887
  // src/commands/cache.ts
48888
+ init_cjs_shim();
48527
48889
  init_arg_parsers();
48528
48890
  init_output();
48529
48891
  init_cache();
@@ -48633,6 +48995,7 @@ touch does not invalidate; use 'cache clear' to force a refresh.
48633
48995
  }
48634
48996
 
48635
48997
  // src/commands/events.ts
48998
+ init_cjs_shim();
48636
48999
  init_output();
48637
49000
  init_arg_parsers();
48638
49001
  init_flags();
@@ -48643,6 +49006,7 @@ init_credential();
48643
49006
  init_config();
48644
49007
 
48645
49008
  // src/sinks/dispatcher.ts
49009
+ init_cjs_shim();
48646
49010
  var SinkDispatcher = class {
48647
49011
  sinks;
48648
49012
  constructor(sinks) {
@@ -48657,6 +49021,7 @@ var SinkDispatcher = class {
48657
49021
  };
48658
49022
 
48659
49023
  // src/sinks/stdout.ts
49024
+ init_cjs_shim();
48660
49025
  var StdoutSink = class {
48661
49026
  async write(event) {
48662
49027
  console.log(JSON.stringify(event));
@@ -48664,6 +49029,7 @@ var StdoutSink = class {
48664
49029
  };
48665
49030
 
48666
49031
  // src/sinks/file.ts
49032
+ init_cjs_shim();
48667
49033
  import fs16 from "node:fs";
48668
49034
  import path12 from "node:path";
48669
49035
  var FileSink = class {
@@ -48682,6 +49048,7 @@ var FileSink = class {
48682
49048
  };
48683
49049
 
48684
49050
  // src/sinks/webhook.ts
49051
+ init_cjs_shim();
48685
49052
  var WebhookSink = class {
48686
49053
  url;
48687
49054
  constructor(url2) {
@@ -48705,6 +49072,7 @@ var WebhookSink = class {
48705
49072
  };
48706
49073
 
48707
49074
  // src/sinks/openclaw.ts
49075
+ init_cjs_shim();
48708
49076
  var OpenClawSink = class {
48709
49077
  url;
48710
49078
  token;
@@ -48739,6 +49107,7 @@ var OpenClawSink = class {
48739
49107
  };
48740
49108
 
48741
49109
  // src/sinks/telegram.ts
49110
+ init_cjs_shim();
48742
49111
  var TelegramSink = class {
48743
49112
  token;
48744
49113
  chatId;
@@ -48768,6 +49137,7 @@ var TelegramSink = class {
48768
49137
  };
48769
49138
 
48770
49139
  // src/sinks/homeassistant.ts
49140
+ init_cjs_shim();
48771
49141
  var HomeAssistantSink = class {
48772
49142
  url;
48773
49143
  token;
@@ -48809,6 +49179,7 @@ var HomeAssistantSink = class {
48809
49179
  };
48810
49180
 
48811
49181
  // src/sinks/format.ts
49182
+ init_cjs_shim();
48812
49183
  var ICONS = {
48813
49184
  "Bot": "\u{1F916}",
48814
49185
  "Curtain": "\u{1FA9F}",
@@ -49326,6 +49697,7 @@ Examples:
49326
49697
  }
49327
49698
 
49328
49699
  // src/commands/doctor.ts
49700
+ init_cjs_shim();
49329
49701
  init_output();
49330
49702
  init_catalog();
49331
49703
  init_config();
@@ -49337,6 +49709,7 @@ import path15 from "node:path";
49337
49709
  import { execSync } from "node:child_process";
49338
49710
 
49339
49711
  // src/commands/agent-bootstrap.ts
49712
+ init_cjs_shim();
49340
49713
  init_output();
49341
49714
  init_cache();
49342
49715
  init_catalog();
@@ -49344,9 +49717,6 @@ init_config();
49344
49717
  init_quota();
49345
49718
  init_identity();
49346
49719
  init_keychain();
49347
- import { createRequire as createRequire3 } from "node:module";
49348
- var require4 = createRequire3(import.meta.url);
49349
- var { version: pkgVersion } = require4("../../package.json");
49350
49720
  var AGENT_BOOTSTRAP_SCHEMA_VERSION = CATALOG_SCHEMA_VERSION;
49351
49721
  var SAFETY_TIERS = {
49352
49722
  read: "No state mutation; safe to call freely.",
@@ -49469,7 +49839,7 @@ Examples:
49469
49839
  const payload = {
49470
49840
  schemaVersion: AGENT_BOOTSTRAP_SCHEMA_VERSION,
49471
49841
  generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
49472
- cliVersion: pkgVersion,
49842
+ cliVersion: VERSION,
49473
49843
  identity: IDENTITY,
49474
49844
  quickReference: QUICK_REFERENCE,
49475
49845
  safetyTiers: SAFETY_TIERS,
@@ -49539,6 +49909,7 @@ init_keychain();
49539
49909
  init_request_context();
49540
49910
 
49541
49911
  // src/lib/daemon-state.ts
49912
+ init_cjs_shim();
49542
49913
  import fs17 from "node:fs";
49543
49914
  import os14 from "node:os";
49544
49915
  import path13 from "node:path";
@@ -49578,6 +49949,7 @@ function readDaemonState() {
49578
49949
  }
49579
49950
 
49580
49951
  // src/rules/pid-file.ts
49952
+ init_cjs_shim();
49581
49953
  import fs18 from "node:fs";
49582
49954
  import os15 from "node:os";
49583
49955
  import path14 from "node:path";
@@ -50519,6 +50891,7 @@ Examples:
50519
50891
  }
50520
50892
 
50521
50893
  // src/commands/schema.ts
50894
+ init_cjs_shim();
50522
50895
  init_arg_parsers();
50523
50896
  init_output();
50524
50897
  init_catalog();
@@ -50694,6 +51067,7 @@ Examples:
50694
51067
  }
50695
51068
 
50696
51069
  // src/commands/history.ts
51070
+ init_cjs_shim();
50697
51071
  init_arg_parsers();
50698
51072
  init_output();
50699
51073
  import path16 from "node:path";
@@ -50952,6 +51326,7 @@ Examples:
50952
51326
  init_capabilities();
50953
51327
 
50954
51328
  // src/commands/policy.ts
51329
+ init_cjs_shim();
50955
51330
  var import_yaml8 = __toESM(require_dist(), 1);
50956
51331
  init_output();
50957
51332
  import { readFileSync as readFileSync3, writeFileSync as writeFileSync2, existsSync, mkdirSync, copyFileSync, statSync } from "node:fs";
@@ -50959,6 +51334,7 @@ import { dirname, resolve as resolvePath } from "node:path";
50959
51334
  import { fileURLToPath as fileURLToPath3 } from "node:url";
50960
51335
 
50961
51336
  // src/policy/format.ts
51337
+ init_cjs_shim();
50962
51338
  init_source();
50963
51339
  var noColorChalk = new Chalk({ level: 0 });
50964
51340
  function colorize(enabled) {
@@ -51510,12 +51886,14 @@ function readStdinText() {
51510
51886
  }
51511
51887
 
51512
51888
  // src/commands/rules.ts
51889
+ init_cjs_shim();
51513
51890
  init_output();
51514
51891
  import fs21 from "node:fs";
51515
51892
  import os19 from "node:os";
51516
51893
  import path18 from "node:path";
51517
51894
 
51518
51895
  // src/rules/types.ts
51896
+ init_cjs_shim();
51519
51897
  function isMqttTrigger(t) {
51520
51898
  return t.source === "mqtt";
51521
51899
  }
@@ -51543,9 +51921,14 @@ function isNotCondition(c) {
51543
51921
  }
51544
51922
 
51545
51923
  // src/rules/engine.ts
51924
+ init_cjs_shim();
51546
51925
  import { randomUUID as randomUUID4 } from "node:crypto";
51547
51926
 
51927
+ // src/rules/matcher.ts
51928
+ init_cjs_shim();
51929
+
51548
51930
  // src/rules/quiet-hours.ts
51931
+ init_cjs_shim();
51549
51932
  var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
51550
51933
  function toMinutes(hhmm) {
51551
51934
  if (!HHMM.test(hhmm)) {
@@ -51733,6 +52116,7 @@ function formatValue(v2) {
51733
52116
  }
51734
52117
 
51735
52118
  // src/rules/throttle.ts
52119
+ init_cjs_shim();
51736
52120
  var DURATION_RE = /^(\d+)([smh])$/;
51737
52121
  function parseMaxPerMs(expr) {
51738
52122
  const m2 = DURATION_RE.exec(expr.trim());
@@ -51823,6 +52207,7 @@ var ThrottleGate = class {
51823
52207
  };
51824
52208
 
51825
52209
  // src/rules/action.ts
52210
+ init_cjs_shim();
51826
52211
  var DEVICES_COMMAND_RE = /^devices\s+command\s+(\S+)\s+(\S+)(?:\s+(.*))?$/;
51827
52212
  function parseRuleCommand(cmd) {
51828
52213
  const m2 = DEVICES_COMMAND_RE.exec(cmd.trim());
@@ -51998,7 +52383,11 @@ function extractDeviceIdFromAction(action) {
51998
52383
  return m2 ? m2[1] : null;
51999
52384
  }
52000
52385
 
52386
+ // src/rules/cron-scheduler.ts
52387
+ init_cjs_shim();
52388
+
52001
52389
  // node_modules/croner/dist/croner.js
52390
+ init_cjs_shim();
52002
52391
  function T(s2) {
52003
52392
  return Date.UTC(s2.y, s2.m - 1, s2.d, s2.h, s2.i, s2.s);
52004
52393
  }
@@ -52795,6 +53184,7 @@ var CronScheduler = class {
52795
53184
  };
52796
53185
 
52797
53186
  // src/rules/webhook-listener.ts
53187
+ init_cjs_shim();
52798
53188
  import http2 from "node:http";
52799
53189
  import { timingSafeEqual } from "node:crypto";
52800
53190
  var DEFAULT_WEBHOOK_PORT = 18790;
@@ -53650,6 +54040,7 @@ var RulesEngine = class {
53650
54040
  };
53651
54041
 
53652
54042
  // src/rules/conflict-analyzer.ts
54043
+ init_cjs_shim();
53653
54044
  var OPPOSING_PAIRS = [
53654
54045
  ["turnOn", "turnOff"],
53655
54046
  ["lock", "unlock"],
@@ -53801,6 +54192,7 @@ init_credential();
53801
54192
  init_client2();
53802
54193
 
53803
54194
  // src/rules/webhook-token.ts
54195
+ init_cjs_shim();
53804
54196
  import fs20 from "node:fs";
53805
54197
  import os18 from "node:os";
53806
54198
  import path17 from "node:path";
@@ -53870,6 +54262,7 @@ function generateToken() {
53870
54262
  init_cache();
53871
54263
 
53872
54264
  // src/rules/audit-query.ts
54265
+ init_cjs_shim();
53873
54266
  var RULE_AUDIT_KINDS = [
53874
54267
  "rule-fire",
53875
54268
  "rule-fire-dry",
@@ -54680,6 +55073,7 @@ Exit codes (lint):
54680
55073
  }
54681
55074
 
54682
55075
  // src/commands/auth.ts
55076
+ init_cjs_shim();
54683
55077
  init_output();
54684
55078
  init_arg_parsers();
54685
55079
  init_request_context();
@@ -54975,11 +55369,13 @@ function registerAuthCommand(program3) {
54975
55369
  }
54976
55370
 
54977
55371
  // src/commands/install.ts
55372
+ init_cjs_shim();
54978
55373
  init_esm();
54979
55374
  import fs25 from "node:fs";
54980
55375
  import path22 from "node:path";
54981
55376
 
54982
55377
  // src/install/steps.ts
55378
+ init_cjs_shim();
54983
55379
  async function runInstall(steps, options = {}) {
54984
55380
  const ctx = options.context ?? {};
54985
55381
  const outcomes = [];
@@ -55024,6 +55420,7 @@ async function runInstall(steps, options = {}) {
55024
55420
  }
55025
55421
 
55026
55422
  // src/install/preflight.ts
55423
+ init_cjs_shim();
55027
55424
  import fs23 from "node:fs";
55028
55425
  import path20 from "node:path";
55029
55426
  import os21 from "node:os";
@@ -55210,6 +55607,7 @@ async function runPreflight(options = {}) {
55210
55607
  }
55211
55608
 
55212
55609
  // src/install/default-steps.ts
55610
+ init_cjs_shim();
55213
55611
  import fs24 from "node:fs";
55214
55612
  import path21 from "node:path";
55215
55613
  import os22 from "node:os";
@@ -55606,6 +56004,7 @@ Examples:
55606
56004
  }
55607
56005
 
55608
56006
  // src/commands/uninstall.ts
56007
+ init_cjs_shim();
55609
56008
  init_esm();
55610
56009
  import fs26 from "node:fs";
55611
56010
  import readline6 from "node:readline";
@@ -55799,10 +56198,12 @@ Examples:
55799
56198
  }
55800
56199
 
55801
56200
  // src/commands/status-sync.ts
56201
+ init_cjs_shim();
55802
56202
  init_arg_parsers();
55803
56203
  init_output();
55804
56204
 
55805
56205
  // src/status-sync/manager.ts
56206
+ init_cjs_shim();
55806
56207
  init_config();
55807
56208
  init_request_context();
55808
56209
  init_output();
@@ -56170,10 +56571,12 @@ Examples:
56170
56571
  }
56171
56572
 
56172
56573
  // src/commands/health.ts
56574
+ init_cjs_shim();
56173
56575
  init_output();
56174
56576
  import http3 from "node:http";
56175
56577
 
56176
56578
  // src/utils/health.ts
56579
+ init_cjs_shim();
56177
56580
  init_quota();
56178
56581
  import fs28 from "node:fs";
56179
56582
  import os24 from "node:os";
@@ -56357,12 +56760,11 @@ Example:
56357
56760
  }
56358
56761
 
56359
56762
  // src/commands/upgrade-check.ts
56763
+ init_cjs_shim();
56360
56764
  init_output();
56361
56765
  init_source();
56362
- import { createRequire as createRequire4 } from "node:module";
56363
56766
  import https from "node:https";
56364
- var require5 = createRequire4(import.meta.url);
56365
- var { name: pkgName, version: currentVersion } = require5("../../package.json");
56767
+ var pkgName = "@switchbot/openapi-cli";
56366
56768
  function fetchLatestVersion(packageName, timeoutMs = 8e3) {
56367
56769
  const encoded = packageName.replace("/", "%2F");
56368
56770
  const url2 = `https://registry.npmjs.org/${encoded}/latest`;
@@ -56404,20 +56806,20 @@ function registerUpgradeCheckCommand(program3) {
56404
56806
  } catch (err) {
56405
56807
  const msg = err instanceof Error ? err.message : String(err);
56406
56808
  if (isJsonMode()) {
56407
- printJson({ ok: false, error: msg, current: currentVersion });
56809
+ printJson({ ok: false, error: msg, current: VERSION });
56408
56810
  } else {
56409
56811
  console.error(source_default.red(`upgrade-check failed: ${msg}`));
56410
56812
  }
56411
56813
  process.exit(1);
56412
56814
  }
56413
- const upToDate = !semverGt(latestVersion, currentVersion);
56414
- const currentMajor = Number.parseInt(currentVersion.split(".")[0], 10);
56815
+ const upToDate = !semverGt(latestVersion, VERSION);
56816
+ const currentMajor = Number.parseInt(VERSION.split(".")[0], 10);
56415
56817
  const latestMajor = Number.parseInt(latestVersion.split(".")[0], 10);
56416
56818
  if (latestVersion.includes("-")) {
56417
56819
  const msg = `Latest registry version (${latestVersion}) is a prerelease \u2014 skipping update check.`;
56418
56820
  if (isJsonMode()) {
56419
56821
  printJson({
56420
- current: currentVersion,
56822
+ current: VERSION,
56421
56823
  latest: latestVersion,
56422
56824
  upToDate: true,
56423
56825
  updateAvailable: false,
@@ -56426,12 +56828,12 @@ function registerUpgradeCheckCommand(program3) {
56426
56828
  note: msg
56427
56829
  });
56428
56830
  } else {
56429
- console.log(`${source_default.green("\u2713")} You are running the latest stable version (${currentVersion}). Registry latest (${latestVersion}) is a prerelease \u2014 skipping.`);
56831
+ console.log(`${source_default.green("\u2713")} You are running the latest stable version (${VERSION}). Registry latest (${latestVersion}) is a prerelease \u2014 skipping.`);
56430
56832
  }
56431
56833
  return;
56432
56834
  }
56433
56835
  const result = {
56434
- current: currentVersion,
56836
+ current: VERSION,
56435
56837
  latest: latestVersion,
56436
56838
  upToDate,
56437
56839
  updateAvailable: !upToDate,
@@ -56443,9 +56845,9 @@ function registerUpgradeCheckCommand(program3) {
56443
56845
  return;
56444
56846
  }
56445
56847
  if (upToDate) {
56446
- console.log(`${source_default.green("\u2713")} You are running the latest version (${currentVersion}).`);
56848
+ console.log(`${source_default.green("\u2713")} You are running the latest version (${VERSION}).`);
56447
56849
  } else {
56448
- console.log(`${source_default.yellow("!")} Update available: ${source_default.bold(currentVersion)} \u2192 ${source_default.bold(latestVersion)}`);
56850
+ console.log(`${source_default.yellow("!")} Update available: ${source_default.bold(VERSION)} \u2192 ${source_default.bold(latestVersion)}`);
56449
56851
  console.log(` Run: ${source_default.cyan(`npm install -g ${pkgName}@${latestVersion}`)}`);
56450
56852
  process.exit(1);
56451
56853
  }
@@ -56453,6 +56855,7 @@ function registerUpgradeCheckCommand(program3) {
56453
56855
  }
56454
56856
 
56455
56857
  // src/commands/daemon.ts
56858
+ init_cjs_shim();
56456
56859
  init_output();
56457
56860
  import { spawn as spawn5 } from "node:child_process";
56458
56861
  import fs29 from "node:fs";
@@ -56828,8 +57231,8 @@ The daemon reads the same policy file as \`switchbot rules run\`.
56828
57231
  // src/index.ts
56829
57232
  init_prime();
56830
57233
  init_request_context();
56831
- var require6 = createRequire5(import.meta.url);
56832
- var { version: pkgVersion2 } = require6("../package.json");
57234
+ var require5 = createRequire4(import.meta.url);
57235
+ var { version: pkgVersion } = require5("../package.json");
56833
57236
  if (process.argv.includes("--no-color") || Boolean(process.env.NO_COLOR)) {
56834
57237
  source_default.level = 0;
56835
57238
  }
@@ -56874,7 +57277,7 @@ var cacheModeArg = (value) => {
56874
57277
  `--cache must be "off", "auto", or a duration like "30s"/"5m"/"1h" (got "${value}")`
56875
57278
  );
56876
57279
  };
56877
- program2.name("switchbot").description(PRODUCT_TAGLINE).version(pkgVersion2).option("--no-color", "Disable ANSI colors in output").option("--json", "Output raw JSON response (disables tables; useful for pipes/scripts)").option("--format <type>", "Output format: table (default), json, jsonl, tsv, yaml, id, markdown", enumArg("--format", ["table", "json", "jsonl", "tsv", "yaml", "id", "markdown"])).option("--fields <csv>", "Comma-separated list of columns to include (e.g. --fields=id,name,type)", stringArg("--fields", { disallow: TOP_LEVEL_COMMANDS })).option("--table-style <style>", "Table rendering style: unicode (default on TTY), ascii (default on pipes), simple, markdown", enumArg("--table-style", ["unicode", "ascii", "simple", "markdown"])).option("-v, --verbose", "Log HTTP request/response details to stderr").option("--dry-run", "Print mutating requests without sending them (GETs still execute)").option("--timeout <ms>", "HTTP request timeout in milliseconds (default: 30000)", intArg("--timeout", { min: 1 })).option("--retry-on-429 <n>", "Max 429 retries before surfacing the error (default: 3)", intArg("--retry-on-429", { min: 0 })).option("--backoff <strategy>", 'Backoff strategy for retries: "linear" or "exponential" (default)', enumArg("--backoff", ["linear", "exponential"])).option("--no-retry", "Disable 429 retries entirely (equivalent to --retry-on-429 0)").option("--no-quota", "Disable the local ~/.switchbot/quota.json counter for this run").option("--cache <mode>", 'Cache mode: "off" | "auto" (default: list 1h, status off) | duration like 5m, 1h, 30s (enables both stores)', cacheModeArg).option("--no-cache", "Disable cache reads (equivalent to --cache off)").option("--config <path>", "Override credential file location (default: ~/.switchbot/config.json)", stringArg("--config", { disallow: TOP_LEVEL_COMMANDS })).option("--profile <name>", "Use a named profile: ~/.switchbot/profiles/<name>.json", stringArg("--profile", { disallow: TOP_LEVEL_COMMANDS })).option("--audit-log", "Append every mutating command to JSONL audit log (default path: ~/.switchbot/audit.log)").option("--audit-log-path <path>", "Custom audit log file path; use together with --audit-log", stringArg("--audit-log-path", { disallow: TOP_LEVEL_COMMANDS })).showHelpAfterError("(run with --help to see usage)").showSuggestionAfterError();
57280
+ program2.name("switchbot").description(PRODUCT_TAGLINE).version(pkgVersion).option("--no-color", "Disable ANSI colors in output").option("--json", "Output raw JSON response (disables tables; useful for pipes/scripts)").option("--format <type>", "Output format: table (default), json, jsonl, tsv, yaml, id, markdown", enumArg("--format", ["table", "json", "jsonl", "tsv", "yaml", "id", "markdown"])).option("--fields <csv>", "Comma-separated list of columns to include (e.g. --fields=id,name,type)", stringArg("--fields", { disallow: TOP_LEVEL_COMMANDS })).option("--table-style <style>", "Table rendering style: unicode (default on TTY), ascii (default on pipes), simple, markdown", enumArg("--table-style", ["unicode", "ascii", "simple", "markdown"])).option("-v, --verbose", "Log HTTP request/response details to stderr").option("--dry-run", "Print mutating requests without sending them (GETs still execute)").option("--timeout <ms>", "HTTP request timeout in milliseconds (default: 30000)", intArg("--timeout", { min: 1 })).option("--retry-on-429 <n>", "Max 429 retries before surfacing the error (default: 3)", intArg("--retry-on-429", { min: 0 })).option("--backoff <strategy>", 'Backoff strategy for retries: "linear" or "exponential" (default)', enumArg("--backoff", ["linear", "exponential"])).option("--no-retry", "Disable 429 retries entirely (equivalent to --retry-on-429 0)").option("--no-quota", "Disable the local ~/.switchbot/quota.json counter for this run").option("--cache <mode>", 'Cache mode: "off" | "auto" (default: list 1h, status off) | duration like 5m, 1h, 30s (enables both stores)', cacheModeArg).option("--no-cache", "Disable cache reads (equivalent to --cache off)").option("--config <path>", "Override credential file location (default: ~/.switchbot/config.json)", stringArg("--config", { disallow: TOP_LEVEL_COMMANDS })).option("--profile <name>", "Use a named profile: ~/.switchbot/profiles/<name>.json", stringArg("--profile", { disallow: TOP_LEVEL_COMMANDS })).option("--audit-log", "Append every mutating command to JSONL audit log (default path: ~/.switchbot/audit.log)").option("--audit-log-path <path>", "Custom audit log file path; use together with --audit-log", stringArg("--audit-log-path", { disallow: TOP_LEVEL_COMMANDS })).showHelpAfterError("(run with --help to see usage)").showSuggestionAfterError();
56878
57281
  registerConfigCommand(program2);
56879
57282
  registerDevicesCommand(program2);
56880
57283
  registerScenesCommand(program2);