claudemesh-cli 0.5.9 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +811 -230
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ var __export = (target, all) => {
29
29
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
30
30
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
31
31
 
32
- // ../../node_modules/ajv/dist/compile/codegen/code.js
32
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/codegen/code.js
33
33
  var require_code = __commonJS((exports) => {
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
35
  exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = undefined;
@@ -183,7 +183,7 @@ var require_code = __commonJS((exports) => {
183
183
  exports.regexpCode = regexpCode;
184
184
  });
185
185
 
186
- // ../../node_modules/ajv/dist/compile/codegen/scope.js
186
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/codegen/scope.js
187
187
  var require_scope = __commonJS((exports) => {
188
188
  Object.defineProperty(exports, "__esModule", { value: true });
189
189
  exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = undefined;
@@ -329,7 +329,7 @@ var require_scope = __commonJS((exports) => {
329
329
  exports.ValueScope = ValueScope;
330
330
  });
331
331
 
332
- // ../../node_modules/ajv/dist/compile/codegen/index.js
332
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/codegen/index.js
333
333
  var require_codegen = __commonJS((exports) => {
334
334
  Object.defineProperty(exports, "__esModule", { value: true });
335
335
  exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = undefined;
@@ -1039,7 +1039,7 @@ var require_codegen = __commonJS((exports) => {
1039
1039
  }
1040
1040
  });
1041
1041
 
1042
- // ../../node_modules/ajv/dist/compile/util.js
1042
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/util.js
1043
1043
  var require_util = __commonJS((exports) => {
1044
1044
  Object.defineProperty(exports, "__esModule", { value: true });
1045
1045
  exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = undefined;
@@ -1203,7 +1203,7 @@ var require_util = __commonJS((exports) => {
1203
1203
  exports.checkStrictMode = checkStrictMode;
1204
1204
  });
1205
1205
 
1206
- // ../../node_modules/ajv/dist/compile/names.js
1206
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/names.js
1207
1207
  var require_names = __commonJS((exports) => {
1208
1208
  Object.defineProperty(exports, "__esModule", { value: true });
1209
1209
  var codegen_1 = require_codegen();
@@ -1228,7 +1228,7 @@ var require_names = __commonJS((exports) => {
1228
1228
  exports.default = names;
1229
1229
  });
1230
1230
 
1231
- // ../../node_modules/ajv/dist/compile/errors.js
1231
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/errors.js
1232
1232
  var require_errors = __commonJS((exports) => {
1233
1233
  Object.defineProperty(exports, "__esModule", { value: true });
1234
1234
  exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = undefined;
@@ -1346,7 +1346,7 @@ var require_errors = __commonJS((exports) => {
1346
1346
  }
1347
1347
  });
1348
1348
 
1349
- // ../../node_modules/ajv/dist/compile/validate/boolSchema.js
1349
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/validate/boolSchema.js
1350
1350
  var require_boolSchema = __commonJS((exports) => {
1351
1351
  Object.defineProperty(exports, "__esModule", { value: true });
1352
1352
  exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = undefined;
@@ -1394,7 +1394,7 @@ var require_boolSchema = __commonJS((exports) => {
1394
1394
  }
1395
1395
  });
1396
1396
 
1397
- // ../../node_modules/ajv/dist/compile/rules.js
1397
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/rules.js
1398
1398
  var require_rules = __commonJS((exports) => {
1399
1399
  Object.defineProperty(exports, "__esModule", { value: true });
1400
1400
  exports.getRules = exports.isJSONType = undefined;
@@ -1422,7 +1422,7 @@ var require_rules = __commonJS((exports) => {
1422
1422
  exports.getRules = getRules;
1423
1423
  });
1424
1424
 
1425
- // ../../node_modules/ajv/dist/compile/validate/applicability.js
1425
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/validate/applicability.js
1426
1426
  var require_applicability = __commonJS((exports) => {
1427
1427
  Object.defineProperty(exports, "__esModule", { value: true });
1428
1428
  exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = undefined;
@@ -1442,7 +1442,7 @@ var require_applicability = __commonJS((exports) => {
1442
1442
  exports.shouldUseRule = shouldUseRule;
1443
1443
  });
1444
1444
 
1445
- // ../../node_modules/ajv/dist/compile/validate/dataType.js
1445
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/validate/dataType.js
1446
1446
  var require_dataType = __commonJS((exports) => {
1447
1447
  Object.defineProperty(exports, "__esModule", { value: true });
1448
1448
  exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = undefined;
@@ -1623,7 +1623,7 @@ var require_dataType = __commonJS((exports) => {
1623
1623
  }
1624
1624
  });
1625
1625
 
1626
- // ../../node_modules/ajv/dist/compile/validate/defaults.js
1626
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/validate/defaults.js
1627
1627
  var require_defaults = __commonJS((exports) => {
1628
1628
  Object.defineProperty(exports, "__esModule", { value: true });
1629
1629
  exports.assignDefaults = undefined;
@@ -1657,7 +1657,7 @@ var require_defaults = __commonJS((exports) => {
1657
1657
  }
1658
1658
  });
1659
1659
 
1660
- // ../../node_modules/ajv/dist/vocabularies/code.js
1660
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/code.js
1661
1661
  var require_code2 = __commonJS((exports) => {
1662
1662
  Object.defineProperty(exports, "__esModule", { value: true });
1663
1663
  exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = undefined;
@@ -1786,7 +1786,7 @@ var require_code2 = __commonJS((exports) => {
1786
1786
  exports.validateUnion = validateUnion;
1787
1787
  });
1788
1788
 
1789
- // ../../node_modules/ajv/dist/compile/validate/keyword.js
1789
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/validate/keyword.js
1790
1790
  var require_keyword = __commonJS((exports) => {
1791
1791
  Object.defineProperty(exports, "__esModule", { value: true });
1792
1792
  exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = undefined;
@@ -1901,7 +1901,7 @@ var require_keyword = __commonJS((exports) => {
1901
1901
  exports.validateKeywordUsage = validateKeywordUsage;
1902
1902
  });
1903
1903
 
1904
- // ../../node_modules/ajv/dist/compile/validate/subschema.js
1904
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/validate/subschema.js
1905
1905
  var require_subschema = __commonJS((exports) => {
1906
1906
  Object.defineProperty(exports, "__esModule", { value: true });
1907
1907
  exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = undefined;
@@ -2023,7 +2023,7 @@ var require_fast_deep_equal = __commonJS((exports, module) => {
2023
2023
  };
2024
2024
  });
2025
2025
 
2026
- // ../../node_modules/json-schema-traverse/index.js
2026
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/node_modules/json-schema-traverse/index.js
2027
2027
  var require_json_schema_traverse = __commonJS((exports, module) => {
2028
2028
  var traverse = module.exports = function(schema, opts, cb) {
2029
2029
  if (typeof opts == "function") {
@@ -2106,7 +2106,7 @@ var require_json_schema_traverse = __commonJS((exports, module) => {
2106
2106
  }
2107
2107
  });
2108
2108
 
2109
- // ../../node_modules/ajv/dist/compile/resolve.js
2109
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/resolve.js
2110
2110
  var require_resolve = __commonJS((exports) => {
2111
2111
  Object.defineProperty(exports, "__esModule", { value: true });
2112
2112
  exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = undefined;
@@ -2259,7 +2259,7 @@ var require_resolve = __commonJS((exports) => {
2259
2259
  exports.getSchemaRefs = getSchemaRefs;
2260
2260
  });
2261
2261
 
2262
- // ../../node_modules/ajv/dist/compile/validate/index.js
2262
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/validate/index.js
2263
2263
  var require_validate = __commonJS((exports) => {
2264
2264
  Object.defineProperty(exports, "__esModule", { value: true });
2265
2265
  exports.getData = exports.KeywordCxt = exports.validateFunctionCode = undefined;
@@ -2764,7 +2764,7 @@ var require_validate = __commonJS((exports) => {
2764
2764
  exports.getData = getData;
2765
2765
  });
2766
2766
 
2767
- // ../../node_modules/ajv/dist/runtime/validation_error.js
2767
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/runtime/validation_error.js
2768
2768
  var require_validation_error = __commonJS((exports) => {
2769
2769
  Object.defineProperty(exports, "__esModule", { value: true });
2770
2770
 
@@ -2778,7 +2778,7 @@ var require_validation_error = __commonJS((exports) => {
2778
2778
  exports.default = ValidationError;
2779
2779
  });
2780
2780
 
2781
- // ../../node_modules/ajv/dist/compile/ref_error.js
2781
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/ref_error.js
2782
2782
  var require_ref_error = __commonJS((exports) => {
2783
2783
  Object.defineProperty(exports, "__esModule", { value: true });
2784
2784
  var resolve_1 = require_resolve();
@@ -2793,7 +2793,7 @@ var require_ref_error = __commonJS((exports) => {
2793
2793
  exports.default = MissingRefError;
2794
2794
  });
2795
2795
 
2796
- // ../../node_modules/ajv/dist/compile/index.js
2796
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/index.js
2797
2797
  var require_compile = __commonJS((exports) => {
2798
2798
  Object.defineProperty(exports, "__esModule", { value: true });
2799
2799
  exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = undefined;
@@ -3014,7 +3014,7 @@ var require_compile = __commonJS((exports) => {
3014
3014
  }
3015
3015
  });
3016
3016
 
3017
- // ../../node_modules/ajv/dist/refs/data.json
3017
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/refs/data.json
3018
3018
  var require_data = __commonJS((exports, module) => {
3019
3019
  module.exports = {
3020
3020
  $id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
@@ -3694,7 +3694,7 @@ var require_fast_uri = __commonJS((exports, module) => {
3694
3694
  module.exports.fastUri = fastUri;
3695
3695
  });
3696
3696
 
3697
- // ../../node_modules/ajv/dist/runtime/uri.js
3697
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/runtime/uri.js
3698
3698
  var require_uri = __commonJS((exports) => {
3699
3699
  Object.defineProperty(exports, "__esModule", { value: true });
3700
3700
  var uri = require_fast_uri();
@@ -3702,7 +3702,7 @@ var require_uri = __commonJS((exports) => {
3702
3702
  exports.default = uri;
3703
3703
  });
3704
3704
 
3705
- // ../../node_modules/ajv/dist/core.js
3705
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/core.js
3706
3706
  var require_core = __commonJS((exports) => {
3707
3707
  Object.defineProperty(exports, "__esModule", { value: true });
3708
3708
  exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = undefined;
@@ -3781,11 +3781,11 @@ var require_core = __commonJS((exports) => {
3781
3781
  };
3782
3782
  var MAX_EXPRESSION = 200;
3783
3783
  function requiredOptions(o) {
3784
- var _a2, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
3784
+ var _a2, _b, _c2, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
3785
3785
  const s = o.strict;
3786
3786
  const _optz = (_a2 = o.code) === null || _a2 === undefined ? undefined : _a2.optimize;
3787
3787
  const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0;
3788
- const regExp = (_c = (_b = o.code) === null || _b === undefined ? undefined : _b.regExp) !== null && _c !== undefined ? _c : defaultRegExp;
3788
+ const regExp = (_c2 = (_b = o.code) === null || _b === undefined ? undefined : _b.regExp) !== null && _c2 !== undefined ? _c2 : defaultRegExp;
3789
3789
  const uriResolver = (_d = o.uriResolver) !== null && _d !== undefined ? _d : uri_1.default;
3790
3790
  return {
3791
3791
  strictSchema: (_f = (_e = o.strictSchema) !== null && _e !== undefined ? _e : s) !== null && _f !== undefined ? _f : true,
@@ -4295,7 +4295,7 @@ var require_core = __commonJS((exports) => {
4295
4295
  }
4296
4296
  });
4297
4297
 
4298
- // ../../node_modules/ajv/dist/vocabularies/core/id.js
4298
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/core/id.js
4299
4299
  var require_id = __commonJS((exports) => {
4300
4300
  Object.defineProperty(exports, "__esModule", { value: true });
4301
4301
  var def = {
@@ -4307,7 +4307,7 @@ var require_id = __commonJS((exports) => {
4307
4307
  exports.default = def;
4308
4308
  });
4309
4309
 
4310
- // ../../node_modules/ajv/dist/vocabularies/core/ref.js
4310
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/core/ref.js
4311
4311
  var require_ref = __commonJS((exports) => {
4312
4312
  Object.defineProperty(exports, "__esModule", { value: true });
4313
4313
  exports.callRef = exports.getValidate = undefined;
@@ -4426,7 +4426,7 @@ var require_ref = __commonJS((exports) => {
4426
4426
  exports.default = def;
4427
4427
  });
4428
4428
 
4429
- // ../../node_modules/ajv/dist/vocabularies/core/index.js
4429
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/core/index.js
4430
4430
  var require_core2 = __commonJS((exports) => {
4431
4431
  Object.defineProperty(exports, "__esModule", { value: true });
4432
4432
  var id_1 = require_id();
@@ -4444,7 +4444,7 @@ var require_core2 = __commonJS((exports) => {
4444
4444
  exports.default = core2;
4445
4445
  });
4446
4446
 
4447
- // ../../node_modules/ajv/dist/vocabularies/validation/limitNumber.js
4447
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
4448
4448
  var require_limitNumber = __commonJS((exports) => {
4449
4449
  Object.defineProperty(exports, "__esModule", { value: true });
4450
4450
  var codegen_1 = require_codegen();
@@ -4473,7 +4473,7 @@ var require_limitNumber = __commonJS((exports) => {
4473
4473
  exports.default = def;
4474
4474
  });
4475
4475
 
4476
- // ../../node_modules/ajv/dist/vocabularies/validation/multipleOf.js
4476
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
4477
4477
  var require_multipleOf = __commonJS((exports) => {
4478
4478
  Object.defineProperty(exports, "__esModule", { value: true });
4479
4479
  var codegen_1 = require_codegen();
@@ -4498,7 +4498,7 @@ var require_multipleOf = __commonJS((exports) => {
4498
4498
  exports.default = def;
4499
4499
  });
4500
4500
 
4501
- // ../../node_modules/ajv/dist/runtime/ucs2length.js
4501
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/runtime/ucs2length.js
4502
4502
  var require_ucs2length = __commonJS((exports) => {
4503
4503
  Object.defineProperty(exports, "__esModule", { value: true });
4504
4504
  function ucs2length(str) {
@@ -4521,7 +4521,7 @@ var require_ucs2length = __commonJS((exports) => {
4521
4521
  ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
4522
4522
  });
4523
4523
 
4524
- // ../../node_modules/ajv/dist/vocabularies/validation/limitLength.js
4524
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/limitLength.js
4525
4525
  var require_limitLength = __commonJS((exports) => {
4526
4526
  Object.defineProperty(exports, "__esModule", { value: true });
4527
4527
  var codegen_1 = require_codegen();
@@ -4550,7 +4550,7 @@ var require_limitLength = __commonJS((exports) => {
4550
4550
  exports.default = def;
4551
4551
  });
4552
4552
 
4553
- // ../../node_modules/ajv/dist/vocabularies/validation/pattern.js
4553
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/pattern.js
4554
4554
  var require_pattern = __commonJS((exports) => {
4555
4555
  Object.defineProperty(exports, "__esModule", { value: true });
4556
4556
  var code_1 = require_code2();
@@ -4575,7 +4575,7 @@ var require_pattern = __commonJS((exports) => {
4575
4575
  exports.default = def;
4576
4576
  });
4577
4577
 
4578
- // ../../node_modules/ajv/dist/vocabularies/validation/limitProperties.js
4578
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
4579
4579
  var require_limitProperties = __commonJS((exports) => {
4580
4580
  Object.defineProperty(exports, "__esModule", { value: true });
4581
4581
  var codegen_1 = require_codegen();
@@ -4601,7 +4601,7 @@ var require_limitProperties = __commonJS((exports) => {
4601
4601
  exports.default = def;
4602
4602
  });
4603
4603
 
4604
- // ../../node_modules/ajv/dist/vocabularies/validation/required.js
4604
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/required.js
4605
4605
  var require_required = __commonJS((exports) => {
4606
4606
  Object.defineProperty(exports, "__esModule", { value: true });
4607
4607
  var code_1 = require_code2();
@@ -4680,7 +4680,7 @@ var require_required = __commonJS((exports) => {
4680
4680
  exports.default = def;
4681
4681
  });
4682
4682
 
4683
- // ../../node_modules/ajv/dist/vocabularies/validation/limitItems.js
4683
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/limitItems.js
4684
4684
  var require_limitItems = __commonJS((exports) => {
4685
4685
  Object.defineProperty(exports, "__esModule", { value: true });
4686
4686
  var codegen_1 = require_codegen();
@@ -4706,7 +4706,7 @@ var require_limitItems = __commonJS((exports) => {
4706
4706
  exports.default = def;
4707
4707
  });
4708
4708
 
4709
- // ../../node_modules/ajv/dist/runtime/equal.js
4709
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/runtime/equal.js
4710
4710
  var require_equal = __commonJS((exports) => {
4711
4711
  Object.defineProperty(exports, "__esModule", { value: true });
4712
4712
  var equal = require_fast_deep_equal();
@@ -4714,7 +4714,7 @@ var require_equal = __commonJS((exports) => {
4714
4714
  exports.default = equal;
4715
4715
  });
4716
4716
 
4717
- // ../../node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
4717
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
4718
4718
  var require_uniqueItems = __commonJS((exports) => {
4719
4719
  Object.defineProperty(exports, "__esModule", { value: true });
4720
4720
  var dataType_1 = require_dataType();
@@ -4778,7 +4778,7 @@ var require_uniqueItems = __commonJS((exports) => {
4778
4778
  exports.default = def;
4779
4779
  });
4780
4780
 
4781
- // ../../node_modules/ajv/dist/vocabularies/validation/const.js
4781
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/const.js
4782
4782
  var require_const = __commonJS((exports) => {
4783
4783
  Object.defineProperty(exports, "__esModule", { value: true });
4784
4784
  var codegen_1 = require_codegen();
@@ -4804,7 +4804,7 @@ var require_const = __commonJS((exports) => {
4804
4804
  exports.default = def;
4805
4805
  });
4806
4806
 
4807
- // ../../node_modules/ajv/dist/vocabularies/validation/enum.js
4807
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/enum.js
4808
4808
  var require_enum = __commonJS((exports) => {
4809
4809
  Object.defineProperty(exports, "__esModule", { value: true });
4810
4810
  var codegen_1 = require_codegen();
@@ -4850,7 +4850,7 @@ var require_enum = __commonJS((exports) => {
4850
4850
  exports.default = def;
4851
4851
  });
4852
4852
 
4853
- // ../../node_modules/ajv/dist/vocabularies/validation/index.js
4853
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/index.js
4854
4854
  var require_validation = __commonJS((exports) => {
4855
4855
  Object.defineProperty(exports, "__esModule", { value: true });
4856
4856
  var limitNumber_1 = require_limitNumber();
@@ -4880,7 +4880,7 @@ var require_validation = __commonJS((exports) => {
4880
4880
  exports.default = validation;
4881
4881
  });
4882
4882
 
4883
- // ../../node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
4883
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
4884
4884
  var require_additionalItems = __commonJS((exports) => {
4885
4885
  Object.defineProperty(exports, "__esModule", { value: true });
4886
4886
  exports.validateAdditionalItems = undefined;
@@ -4930,7 +4930,7 @@ var require_additionalItems = __commonJS((exports) => {
4930
4930
  exports.default = def;
4931
4931
  });
4932
4932
 
4933
- // ../../node_modules/ajv/dist/vocabularies/applicator/items.js
4933
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/items.js
4934
4934
  var require_items = __commonJS((exports) => {
4935
4935
  Object.defineProperty(exports, "__esModule", { value: true });
4936
4936
  exports.validateTuple = undefined;
@@ -4984,7 +4984,7 @@ var require_items = __commonJS((exports) => {
4984
4984
  exports.default = def;
4985
4985
  });
4986
4986
 
4987
- // ../../node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
4987
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
4988
4988
  var require_prefixItems = __commonJS((exports) => {
4989
4989
  Object.defineProperty(exports, "__esModule", { value: true });
4990
4990
  var items_1 = require_items();
@@ -4998,7 +4998,7 @@ var require_prefixItems = __commonJS((exports) => {
4998
4998
  exports.default = def;
4999
4999
  });
5000
5000
 
5001
- // ../../node_modules/ajv/dist/vocabularies/applicator/items2020.js
5001
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/items2020.js
5002
5002
  var require_items2020 = __commonJS((exports) => {
5003
5003
  Object.defineProperty(exports, "__esModule", { value: true });
5004
5004
  var codegen_1 = require_codegen();
@@ -5030,7 +5030,7 @@ var require_items2020 = __commonJS((exports) => {
5030
5030
  exports.default = def;
5031
5031
  });
5032
5032
 
5033
- // ../../node_modules/ajv/dist/vocabularies/applicator/contains.js
5033
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/contains.js
5034
5034
  var require_contains = __commonJS((exports) => {
5035
5035
  Object.defineProperty(exports, "__esModule", { value: true });
5036
5036
  var codegen_1 = require_codegen();
@@ -5121,7 +5121,7 @@ var require_contains = __commonJS((exports) => {
5121
5121
  exports.default = def;
5122
5122
  });
5123
5123
 
5124
- // ../../node_modules/ajv/dist/vocabularies/applicator/dependencies.js
5124
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
5125
5125
  var require_dependencies = __commonJS((exports) => {
5126
5126
  Object.defineProperty(exports, "__esModule", { value: true });
5127
5127
  exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = undefined;
@@ -5206,7 +5206,7 @@ var require_dependencies = __commonJS((exports) => {
5206
5206
  exports.default = def;
5207
5207
  });
5208
5208
 
5209
- // ../../node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
5209
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
5210
5210
  var require_propertyNames = __commonJS((exports) => {
5211
5211
  Object.defineProperty(exports, "__esModule", { value: true });
5212
5212
  var codegen_1 = require_codegen();
@@ -5246,7 +5246,7 @@ var require_propertyNames = __commonJS((exports) => {
5246
5246
  exports.default = def;
5247
5247
  });
5248
5248
 
5249
- // ../../node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
5249
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
5250
5250
  var require_additionalProperties = __commonJS((exports) => {
5251
5251
  Object.defineProperty(exports, "__esModule", { value: true });
5252
5252
  var code_1 = require_code2();
@@ -5349,7 +5349,7 @@ var require_additionalProperties = __commonJS((exports) => {
5349
5349
  exports.default = def;
5350
5350
  });
5351
5351
 
5352
- // ../../node_modules/ajv/dist/vocabularies/applicator/properties.js
5352
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/properties.js
5353
5353
  var require_properties = __commonJS((exports) => {
5354
5354
  Object.defineProperty(exports, "__esModule", { value: true });
5355
5355
  var validate_1 = require_validate();
@@ -5404,7 +5404,7 @@ var require_properties = __commonJS((exports) => {
5404
5404
  exports.default = def;
5405
5405
  });
5406
5406
 
5407
- // ../../node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
5407
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
5408
5408
  var require_patternProperties = __commonJS((exports) => {
5409
5409
  Object.defineProperty(exports, "__esModule", { value: true });
5410
5410
  var code_1 = require_code2();
@@ -5475,7 +5475,7 @@ var require_patternProperties = __commonJS((exports) => {
5475
5475
  exports.default = def;
5476
5476
  });
5477
5477
 
5478
- // ../../node_modules/ajv/dist/vocabularies/applicator/not.js
5478
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/not.js
5479
5479
  var require_not = __commonJS((exports) => {
5480
5480
  Object.defineProperty(exports, "__esModule", { value: true });
5481
5481
  var util_1 = require_util();
@@ -5503,7 +5503,7 @@ var require_not = __commonJS((exports) => {
5503
5503
  exports.default = def;
5504
5504
  });
5505
5505
 
5506
- // ../../node_modules/ajv/dist/vocabularies/applicator/anyOf.js
5506
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
5507
5507
  var require_anyOf = __commonJS((exports) => {
5508
5508
  Object.defineProperty(exports, "__esModule", { value: true });
5509
5509
  var code_1 = require_code2();
@@ -5517,7 +5517,7 @@ var require_anyOf = __commonJS((exports) => {
5517
5517
  exports.default = def;
5518
5518
  });
5519
5519
 
5520
- // ../../node_modules/ajv/dist/vocabularies/applicator/oneOf.js
5520
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
5521
5521
  var require_oneOf = __commonJS((exports) => {
5522
5522
  Object.defineProperty(exports, "__esModule", { value: true });
5523
5523
  var codegen_1 = require_codegen();
@@ -5572,7 +5572,7 @@ var require_oneOf = __commonJS((exports) => {
5572
5572
  exports.default = def;
5573
5573
  });
5574
5574
 
5575
- // ../../node_modules/ajv/dist/vocabularies/applicator/allOf.js
5575
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/allOf.js
5576
5576
  var require_allOf = __commonJS((exports) => {
5577
5577
  Object.defineProperty(exports, "__esModule", { value: true });
5578
5578
  var util_1 = require_util();
@@ -5596,7 +5596,7 @@ var require_allOf = __commonJS((exports) => {
5596
5596
  exports.default = def;
5597
5597
  });
5598
5598
 
5599
- // ../../node_modules/ajv/dist/vocabularies/applicator/if.js
5599
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/if.js
5600
5600
  var require_if = __commonJS((exports) => {
5601
5601
  Object.defineProperty(exports, "__esModule", { value: true });
5602
5602
  var codegen_1 = require_codegen();
@@ -5662,7 +5662,7 @@ var require_if = __commonJS((exports) => {
5662
5662
  exports.default = def;
5663
5663
  });
5664
5664
 
5665
- // ../../node_modules/ajv/dist/vocabularies/applicator/thenElse.js
5665
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
5666
5666
  var require_thenElse = __commonJS((exports) => {
5667
5667
  Object.defineProperty(exports, "__esModule", { value: true });
5668
5668
  var util_1 = require_util();
@@ -5677,7 +5677,7 @@ var require_thenElse = __commonJS((exports) => {
5677
5677
  exports.default = def;
5678
5678
  });
5679
5679
 
5680
- // ../../node_modules/ajv/dist/vocabularies/applicator/index.js
5680
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/index.js
5681
5681
  var require_applicator = __commonJS((exports) => {
5682
5682
  Object.defineProperty(exports, "__esModule", { value: true });
5683
5683
  var additionalItems_1 = require_additionalItems();
@@ -5720,7 +5720,7 @@ var require_applicator = __commonJS((exports) => {
5720
5720
  exports.default = getApplicator;
5721
5721
  });
5722
5722
 
5723
- // ../../node_modules/ajv/dist/vocabularies/format/format.js
5723
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/format/format.js
5724
5724
  var require_format = __commonJS((exports) => {
5725
5725
  Object.defineProperty(exports, "__esModule", { value: true });
5726
5726
  var codegen_1 = require_codegen();
@@ -5807,7 +5807,7 @@ var require_format = __commonJS((exports) => {
5807
5807
  exports.default = def;
5808
5808
  });
5809
5809
 
5810
- // ../../node_modules/ajv/dist/vocabularies/format/index.js
5810
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/format/index.js
5811
5811
  var require_format2 = __commonJS((exports) => {
5812
5812
  Object.defineProperty(exports, "__esModule", { value: true });
5813
5813
  var format_1 = require_format();
@@ -5815,7 +5815,7 @@ var require_format2 = __commonJS((exports) => {
5815
5815
  exports.default = format;
5816
5816
  });
5817
5817
 
5818
- // ../../node_modules/ajv/dist/vocabularies/metadata.js
5818
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/metadata.js
5819
5819
  var require_metadata = __commonJS((exports) => {
5820
5820
  Object.defineProperty(exports, "__esModule", { value: true });
5821
5821
  exports.contentVocabulary = exports.metadataVocabulary = undefined;
@@ -5835,7 +5835,7 @@ var require_metadata = __commonJS((exports) => {
5835
5835
  ];
5836
5836
  });
5837
5837
 
5838
- // ../../node_modules/ajv/dist/vocabularies/draft7.js
5838
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/draft7.js
5839
5839
  var require_draft7 = __commonJS((exports) => {
5840
5840
  Object.defineProperty(exports, "__esModule", { value: true });
5841
5841
  var core_1 = require_core2();
@@ -5854,7 +5854,7 @@ var require_draft7 = __commonJS((exports) => {
5854
5854
  exports.default = draft7Vocabularies;
5855
5855
  });
5856
5856
 
5857
- // ../../node_modules/ajv/dist/vocabularies/discriminator/types.js
5857
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/discriminator/types.js
5858
5858
  var require_types = __commonJS((exports) => {
5859
5859
  Object.defineProperty(exports, "__esModule", { value: true });
5860
5860
  exports.DiscrError = undefined;
@@ -5865,7 +5865,7 @@ var require_types = __commonJS((exports) => {
5865
5865
  })(DiscrError || (exports.DiscrError = DiscrError = {}));
5866
5866
  });
5867
5867
 
5868
- // ../../node_modules/ajv/dist/vocabularies/discriminator/index.js
5868
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/discriminator/index.js
5869
5869
  var require_discriminator = __commonJS((exports) => {
5870
5870
  Object.defineProperty(exports, "__esModule", { value: true });
5871
5871
  var codegen_1 = require_codegen();
@@ -5967,7 +5967,7 @@ var require_discriminator = __commonJS((exports) => {
5967
5967
  exports.default = def;
5968
5968
  });
5969
5969
 
5970
- // ../../node_modules/ajv/dist/refs/json-schema-draft-07.json
5970
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/refs/json-schema-draft-07.json
5971
5971
  var require_json_schema_draft_07 = __commonJS((exports, module) => {
5972
5972
  module.exports = {
5973
5973
  $schema: "http://json-schema.org/draft-07/schema#",
@@ -6122,7 +6122,7 @@ var require_json_schema_draft_07 = __commonJS((exports, module) => {
6122
6122
  };
6123
6123
  });
6124
6124
 
6125
- // ../../node_modules/ajv/dist/ajv.js
6125
+ // ../../node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/ajv.js
6126
6126
  var require_ajv = __commonJS((exports, module) => {
6127
6127
  Object.defineProperty(exports, "__esModule", { value: true });
6128
6128
  exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = undefined;
@@ -6514,7 +6514,7 @@ function loadConfig() {
6514
6514
  if (!parsed || !Array.isArray(parsed.meshes)) {
6515
6515
  return { version: 1, meshes: [] };
6516
6516
  }
6517
- return { version: 1, meshes: parsed.meshes, displayName: parsed.displayName, groups: parsed.groups, messageMode: parsed.messageMode };
6517
+ return { version: 1, meshes: parsed.meshes, displayName: parsed.displayName, role: parsed.role, groups: parsed.groups, messageMode: parsed.messageMode };
6518
6518
  } catch (e) {
6519
6519
  throw new Error(`Failed to load ${CONFIG_PATH}: ${e instanceof Error ? e.message : String(e)}`);
6520
6520
  }
@@ -35623,7 +35623,7 @@ var require_libsodium = __commonJS((exports, module) => {
35623
35623
  }
35624
35624
  return wb(a2, b2, c2) | 0;
35625
35625
  }
35626
- function _c(a2, b2, c2, d, e, f, g) {
35626
+ function _c2(a2, b2, c2, d, e, f, g) {
35627
35627
  a2 = a2 | 0;
35628
35628
  b2 = b2 | 0;
35629
35629
  c2 = c2 | 0;
@@ -36045,7 +36045,7 @@ var require_libsodium = __commonJS((exports, module) => {
36045
36045
  }
36046
36046
  return { e: Object.create(Object.prototype, { grow: { value: $ }, buffer: { get: function() {
36047
36047
  return v;
36048
- } } }), f: re, g: na, h: wa, i: na, j: ia, k: Ib, l: Hb, m: xd, n: wd, o: vd, p: ud, q: ia, r: wa, s: ia, t: ia, u: Ib, v: pa, w: td, x: sd, y: rd, z: qd, A: wa, B: pd, C: od, D: nd, E: md, F: ld, G: kd, H: jd, I: id, J: ia, K: Ld, L: wa, M: na, N: Ma, O: pa, P: ia, Q: qb, R: wa, S: na, T: Ma, U: pa, V: gd, W: fd, X: ed, Y: dd, Z: ia, _: db, $: wa, aa: na, ba: Ma, ca: pa, da: ia, ea: ia, fa: cd, ga: bd, ha: pa, ia, ja: ia, ka: ia, la: ia, ma: db, na, oa: Ma, pa: Kd, qa: pb, ra: La, sa: Zb, ta: ad, ua: $c, va: _c, wa: Yb, xa: Yc, ya: Xb, za: Xc, Aa: Wc, Ba: Vc, Ca: yd, Da: na, Ea: Ca, Fa: ia, Ga: na, Ha: Ca, Ia: ia, Ja: ie, Ka: Uc, La: he, Ma: Tc, Na: Qa, Oa: pa, Pa: Ca, Qa: Sc, Ra: na, Sa: Ca, Ta: qb, Ua: ia, Va: Rc, Wa: pa, Xa: $d, Ya: _d, Za: Zd, _a: Yd, $a: pa, ab: Xd, bb: ia, cb: wa, db: Wd, eb: gc, fb: qe, gb: pe, hb: oe, ib: ne, jb: me, kb: le, lb: Ca, mb: wa, nb: ke, ob: je, pb: Cd, qb: pb, rb: Bd, sb: Ad, tb: ia, ub: ia, vb: ia, wb: ia, xb: Jd, yb: Id, zb: ia, Ab: ia, Bb: ia, Cb: db, Db: na, Eb: Ma, Fb: pa, Gb: Zb, Hb: Pc, Ib: Yb, Jb: Xb, Kb: pa, Lb: ge, Mb: fe, Nb: ee, Ob: Oc, Pb: Nc, Qb: de, Rb: ce, Sb: db, Tb: ia, Ub: be, Vb: wa, Wb: jc, Xb: ic, Yb: ae, Zb: qb, _b: na, $b: Mc, ac: Hb, bc: gc, cc: Ca, dc: ia, ec: ia, fc: Ca, gc: Rd, hc: Qd, ic: Pd, jc: Lc, kc: Kc, lc: Jc, mc: Ic, nc: Od, oc: Hc, pc: Nd, qc: Md, rc: Td, sc: Sd, tc: oc, uc: xb, vc: mc, wc: xa, xc: lc, yc: ia, zc: kc, Ac: Gc, Bc: Hd, Cc: Gd, Dc: Fd, Ec: Ed, Fc: Dd, Gc: uc, Hc: sc, Ic: nc, Jc: Vd, Kc: Ud, Lc: ic, Mc: jc, Nc: hd, Oc: Dc };
36048
+ } } }), f: re, g: na, h: wa, i: na, j: ia, k: Ib, l: Hb, m: xd, n: wd, o: vd, p: ud, q: ia, r: wa, s: ia, t: ia, u: Ib, v: pa, w: td, x: sd, y: rd, z: qd, A: wa, B: pd, C: od, D: nd, E: md, F: ld, G: kd, H: jd, I: id, J: ia, K: Ld, L: wa, M: na, N: Ma, O: pa, P: ia, Q: qb, R: wa, S: na, T: Ma, U: pa, V: gd, W: fd, X: ed, Y: dd, Z: ia, _: db, $: wa, aa: na, ba: Ma, ca: pa, da: ia, ea: ia, fa: cd, ga: bd, ha: pa, ia, ja: ia, ka: ia, la: ia, ma: db, na, oa: Ma, pa: Kd, qa: pb, ra: La, sa: Zb, ta: ad, ua: $c, va: _c2, wa: Yb, xa: Yc, ya: Xb, za: Xc, Aa: Wc, Ba: Vc, Ca: yd, Da: na, Ea: Ca, Fa: ia, Ga: na, Ha: Ca, Ia: ia, Ja: ie, Ka: Uc, La: he, Ma: Tc, Na: Qa, Oa: pa, Pa: Ca, Qa: Sc, Ra: na, Sa: Ca, Ta: qb, Ua: ia, Va: Rc, Wa: pa, Xa: $d, Ya: _d, Za: Zd, _a: Yd, $a: pa, ab: Xd, bb: ia, cb: wa, db: Wd, eb: gc, fb: qe, gb: pe, hb: oe, ib: ne, jb: me, kb: le, lb: Ca, mb: wa, nb: ke, ob: je, pb: Cd, qb: pb, rb: Bd, sb: Ad, tb: ia, ub: ia, vb: ia, wb: ia, xb: Jd, yb: Id, zb: ia, Ab: ia, Bb: ia, Cb: db, Db: na, Eb: Ma, Fb: pa, Gb: Zb, Hb: Pc, Ib: Yb, Jb: Xb, Kb: pa, Lb: ge, Mb: fe, Nb: ee, Ob: Oc, Pb: Nc, Qb: de, Rb: ce, Sb: db, Tb: ia, Ub: be, Vb: wa, Wb: jc, Xb: ic, Yb: ae, Zb: qb, _b: na, $b: Mc, ac: Hb, bc: gc, cc: Ca, dc: ia, ec: ia, fc: Ca, gc: Rd, hc: Qd, ic: Pd, jc: Lc, kc: Kc, lc: Jc, mc: Ic, nc: Od, oc: Hc, pc: Nd, qc: Md, rc: Td, sc: Sd, tc: oc, uc: xb, vc: mc, wc: xa, xc: lc, yc: ia, zc: kc, Ac: Gc, Bc: Hd, Cc: Gd, Dc: Fd, Ec: Ed, Fc: Dd, Gc: uc, Hc: sc, Ic: nc, Jc: Vd, Kc: Ud, Lc: ic, Mc: jc, Nc: hd, Oc: Dc };
36049
36049
  }
36050
36050
  return ba(ca);
36051
36051
  }(info);
@@ -39930,6 +39930,548 @@ var require_libsodium_wrappers = __commonJS((exports) => {
39930
39930
  })(exports);
39931
39931
  });
39932
39932
 
39933
+ // ../../node_modules/citty/dist/_chunks/libs/scule.mjs
39934
+ var NUMBER_CHAR_RE = /\d/;
39935
+ var STR_SPLITTERS = [
39936
+ "-",
39937
+ "_",
39938
+ "/",
39939
+ "."
39940
+ ];
39941
+ function isUppercase(char = "") {
39942
+ if (NUMBER_CHAR_RE.test(char))
39943
+ return;
39944
+ return char !== char.toLowerCase();
39945
+ }
39946
+ function splitByCase(str, separators) {
39947
+ const splitters = separators ?? STR_SPLITTERS;
39948
+ const parts = [];
39949
+ if (!str || typeof str !== "string")
39950
+ return parts;
39951
+ let buff = "";
39952
+ let previousUpper;
39953
+ let previousSplitter;
39954
+ for (const char of str) {
39955
+ const isSplitter = splitters.includes(char);
39956
+ if (isSplitter === true) {
39957
+ parts.push(buff);
39958
+ buff = "";
39959
+ previousUpper = undefined;
39960
+ continue;
39961
+ }
39962
+ const isUpper = isUppercase(char);
39963
+ if (previousSplitter === false) {
39964
+ if (previousUpper === false && isUpper === true) {
39965
+ parts.push(buff);
39966
+ buff = char;
39967
+ previousUpper = isUpper;
39968
+ continue;
39969
+ }
39970
+ if (previousUpper === true && isUpper === false && buff.length > 1) {
39971
+ const lastChar = buff.at(-1);
39972
+ parts.push(buff.slice(0, Math.max(0, buff.length - 1)));
39973
+ buff = lastChar + char;
39974
+ previousUpper = isUpper;
39975
+ continue;
39976
+ }
39977
+ }
39978
+ buff += char;
39979
+ previousUpper = isUpper;
39980
+ previousSplitter = isSplitter;
39981
+ }
39982
+ parts.push(buff);
39983
+ return parts;
39984
+ }
39985
+ function upperFirst(str) {
39986
+ return str ? str[0].toUpperCase() + str.slice(1) : "";
39987
+ }
39988
+ function lowerFirst(str) {
39989
+ return str ? str[0].toLowerCase() + str.slice(1) : "";
39990
+ }
39991
+ function pascalCase(str, opts) {
39992
+ return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => upperFirst(opts?.normalize ? p.toLowerCase() : p)).join("") : "";
39993
+ }
39994
+ function camelCase(str, opts) {
39995
+ return lowerFirst(pascalCase(str || "", opts));
39996
+ }
39997
+ function kebabCase(str, joiner) {
39998
+ return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => p.toLowerCase()).join(joiner ?? "-") : "";
39999
+ }
40000
+ function snakeCase(str) {
40001
+ return kebabCase(str || "", "_");
40002
+ }
40003
+
40004
+ // ../../node_modules/citty/dist/index.mjs
40005
+ import { parseArgs as parseArgs$1 } from "node:util";
40006
+ function toArray(val) {
40007
+ if (Array.isArray(val))
40008
+ return val;
40009
+ return val === undefined ? [] : [val];
40010
+ }
40011
+ function formatLineColumns(lines, linePrefix = "") {
40012
+ const maxLength = [];
40013
+ for (const line of lines)
40014
+ for (const [i, element] of line.entries())
40015
+ maxLength[i] = Math.max(maxLength[i] || 0, element.length);
40016
+ return lines.map((l) => l.map((c, i) => linePrefix + c[i === 0 ? "padStart" : "padEnd"](maxLength[i])).join(" ")).join(`
40017
+ `);
40018
+ }
40019
+ function resolveValue(input) {
40020
+ return typeof input === "function" ? input() : input;
40021
+ }
40022
+ var CLIError = class extends Error {
40023
+ code;
40024
+ constructor(message, code) {
40025
+ super(message);
40026
+ this.name = "CLIError";
40027
+ this.code = code;
40028
+ }
40029
+ };
40030
+ function parseRawArgs(args = [], opts = {}) {
40031
+ const booleans = new Set(opts.boolean || []);
40032
+ const strings = new Set(opts.string || []);
40033
+ const aliasMap = opts.alias || {};
40034
+ const defaults = opts.default || {};
40035
+ const aliasToMain = /* @__PURE__ */ new Map;
40036
+ const mainToAliases = /* @__PURE__ */ new Map;
40037
+ for (const [key, value] of Object.entries(aliasMap)) {
40038
+ const targets = value;
40039
+ for (const target of targets) {
40040
+ aliasToMain.set(key, target);
40041
+ if (!mainToAliases.has(target))
40042
+ mainToAliases.set(target, []);
40043
+ mainToAliases.get(target).push(key);
40044
+ aliasToMain.set(target, key);
40045
+ if (!mainToAliases.has(key))
40046
+ mainToAliases.set(key, []);
40047
+ mainToAliases.get(key).push(target);
40048
+ }
40049
+ }
40050
+ const options = {};
40051
+ function getType(name) {
40052
+ if (booleans.has(name))
40053
+ return "boolean";
40054
+ const aliases = mainToAliases.get(name) || [];
40055
+ for (const alias of aliases)
40056
+ if (booleans.has(alias))
40057
+ return "boolean";
40058
+ return "string";
40059
+ }
40060
+ function isStringType(name) {
40061
+ if (strings.has(name))
40062
+ return true;
40063
+ const aliases = mainToAliases.get(name) || [];
40064
+ for (const alias of aliases)
40065
+ if (strings.has(alias))
40066
+ return true;
40067
+ return false;
40068
+ }
40069
+ const allOptions = new Set([
40070
+ ...booleans,
40071
+ ...strings,
40072
+ ...Object.keys(aliasMap),
40073
+ ...Object.values(aliasMap).flat(),
40074
+ ...Object.keys(defaults)
40075
+ ]);
40076
+ for (const name of allOptions)
40077
+ if (!options[name])
40078
+ options[name] = {
40079
+ type: getType(name),
40080
+ default: defaults[name]
40081
+ };
40082
+ for (const [alias, main] of aliasToMain.entries())
40083
+ if (alias.length === 1 && options[main] && !options[main].short)
40084
+ options[main].short = alias;
40085
+ const processedArgs = [];
40086
+ const negatedFlags = {};
40087
+ for (let i = 0;i < args.length; i++) {
40088
+ const arg = args[i];
40089
+ if (arg === "--") {
40090
+ processedArgs.push(...args.slice(i));
40091
+ break;
40092
+ }
40093
+ if (arg.startsWith("--no-")) {
40094
+ const flagName = arg.slice(5);
40095
+ negatedFlags[flagName] = true;
40096
+ continue;
40097
+ }
40098
+ processedArgs.push(arg);
40099
+ }
40100
+ let parsed;
40101
+ try {
40102
+ parsed = parseArgs$1({
40103
+ args: processedArgs,
40104
+ options: Object.keys(options).length > 0 ? options : undefined,
40105
+ allowPositionals: true,
40106
+ strict: false
40107
+ });
40108
+ } catch {
40109
+ parsed = {
40110
+ values: {},
40111
+ positionals: processedArgs
40112
+ };
40113
+ }
40114
+ const out = { _: [] };
40115
+ out._ = parsed.positionals;
40116
+ for (const [key, value] of Object.entries(parsed.values)) {
40117
+ let coerced = value;
40118
+ if (getType(key) === "boolean" && typeof value === "string")
40119
+ coerced = value !== "false";
40120
+ else if (isStringType(key) && typeof value === "boolean")
40121
+ coerced = "";
40122
+ out[key] = coerced;
40123
+ }
40124
+ for (const [name] of Object.entries(negatedFlags)) {
40125
+ out[name] = false;
40126
+ const mainName = aliasToMain.get(name);
40127
+ if (mainName)
40128
+ out[mainName] = false;
40129
+ const aliases = mainToAliases.get(name);
40130
+ if (aliases)
40131
+ for (const alias of aliases)
40132
+ out[alias] = false;
40133
+ }
40134
+ for (const [alias, main] of aliasToMain.entries()) {
40135
+ if (out[alias] !== undefined && out[main] === undefined)
40136
+ out[main] = out[alias];
40137
+ if (out[main] !== undefined && out[alias] === undefined)
40138
+ out[alias] = out[main];
40139
+ if (out[alias] !== out[main] && defaults[main] === out[main])
40140
+ out[main] = out[alias];
40141
+ }
40142
+ return out;
40143
+ }
40144
+ var noColor = /* @__PURE__ */ (() => {
40145
+ const env = globalThis.process?.env ?? {};
40146
+ return env.NO_COLOR === "1" || env.TERM === "dumb" || env.TEST || env.CI;
40147
+ })();
40148
+ var _c = (c, r = 39) => (t) => noColor ? t : `\x1B[${c}m${t}\x1B[${r}m`;
40149
+ var bold = /* @__PURE__ */ _c(1, 22);
40150
+ var cyan = /* @__PURE__ */ _c(36);
40151
+ var gray = /* @__PURE__ */ _c(90);
40152
+ var underline = /* @__PURE__ */ _c(4, 24);
40153
+ function parseArgs(rawArgs, argsDef) {
40154
+ const parseOptions = {
40155
+ boolean: [],
40156
+ string: [],
40157
+ alias: {},
40158
+ default: {}
40159
+ };
40160
+ const args = resolveArgs(argsDef);
40161
+ for (const arg of args) {
40162
+ if (arg.type === "positional")
40163
+ continue;
40164
+ if (arg.type === "string" || arg.type === "enum")
40165
+ parseOptions.string.push(arg.name);
40166
+ else if (arg.type === "boolean")
40167
+ parseOptions.boolean.push(arg.name);
40168
+ if (arg.default !== undefined)
40169
+ parseOptions.default[arg.name] = arg.default;
40170
+ if (arg.alias)
40171
+ parseOptions.alias[arg.name] = arg.alias;
40172
+ const camelName = camelCase(arg.name);
40173
+ const kebabName = kebabCase(arg.name);
40174
+ if (camelName !== arg.name || kebabName !== arg.name) {
40175
+ const existingAliases = toArray(parseOptions.alias[arg.name] || []);
40176
+ if (camelName !== arg.name && !existingAliases.includes(camelName))
40177
+ existingAliases.push(camelName);
40178
+ if (kebabName !== arg.name && !existingAliases.includes(kebabName))
40179
+ existingAliases.push(kebabName);
40180
+ if (existingAliases.length > 0)
40181
+ parseOptions.alias[arg.name] = existingAliases;
40182
+ }
40183
+ }
40184
+ const parsed = parseRawArgs(rawArgs, parseOptions);
40185
+ const [...positionalArguments] = parsed._;
40186
+ const parsedArgsProxy = new Proxy(parsed, { get(target, prop) {
40187
+ return target[prop] ?? target[camelCase(prop)] ?? target[kebabCase(prop)];
40188
+ } });
40189
+ for (const [, arg] of args.entries())
40190
+ if (arg.type === "positional") {
40191
+ const nextPositionalArgument = positionalArguments.shift();
40192
+ if (nextPositionalArgument !== undefined)
40193
+ parsedArgsProxy[arg.name] = nextPositionalArgument;
40194
+ else if (arg.default === undefined && arg.required !== false)
40195
+ throw new CLIError(`Missing required positional argument: ${arg.name.toUpperCase()}`, "EARG");
40196
+ else
40197
+ parsedArgsProxy[arg.name] = arg.default;
40198
+ } else if (arg.type === "enum") {
40199
+ const argument = parsedArgsProxy[arg.name];
40200
+ const options = arg.options || [];
40201
+ if (argument !== undefined && options.length > 0 && !options.includes(argument))
40202
+ throw new CLIError(`Invalid value for argument: ${cyan(`--${arg.name}`)} (${cyan(argument)}). Expected one of: ${options.map((o) => cyan(o)).join(", ")}.`, "EARG");
40203
+ } else if (arg.required && parsedArgsProxy[arg.name] === undefined)
40204
+ throw new CLIError(`Missing required argument: --${arg.name}`, "EARG");
40205
+ return parsedArgsProxy;
40206
+ }
40207
+ function resolveArgs(argsDef) {
40208
+ const args = [];
40209
+ for (const [name, argDef] of Object.entries(argsDef || {}))
40210
+ args.push({
40211
+ ...argDef,
40212
+ name,
40213
+ alias: toArray(argDef.alias)
40214
+ });
40215
+ return args;
40216
+ }
40217
+ async function resolvePlugins(plugins) {
40218
+ return Promise.all(plugins.map((p) => resolveValue(p)));
40219
+ }
40220
+ function defineCommand(def) {
40221
+ return def;
40222
+ }
40223
+ async function runCommand(cmd, opts) {
40224
+ const cmdArgs = await resolveValue(cmd.args || {});
40225
+ const parsedArgs = parseArgs(opts.rawArgs, cmdArgs);
40226
+ const context = {
40227
+ rawArgs: opts.rawArgs,
40228
+ args: parsedArgs,
40229
+ data: opts.data,
40230
+ cmd
40231
+ };
40232
+ const plugins = await resolvePlugins(cmd.plugins ?? []);
40233
+ let result;
40234
+ let runError;
40235
+ try {
40236
+ for (const plugin of plugins)
40237
+ await plugin.setup?.(context);
40238
+ if (typeof cmd.setup === "function")
40239
+ await cmd.setup(context);
40240
+ const subCommands = await resolveValue(cmd.subCommands);
40241
+ if (subCommands && Object.keys(subCommands).length > 0) {
40242
+ const subCommandArgIndex = findSubCommandIndex(opts.rawArgs, cmdArgs);
40243
+ const explicitName = opts.rawArgs[subCommandArgIndex];
40244
+ if (explicitName) {
40245
+ const subCommand = await _findSubCommand(subCommands, explicitName);
40246
+ if (!subCommand)
40247
+ throw new CLIError(`Unknown command ${cyan(explicitName)}`, "E_UNKNOWN_COMMAND");
40248
+ await runCommand(subCommand, { rawArgs: opts.rawArgs.slice(subCommandArgIndex + 1) });
40249
+ } else {
40250
+ const defaultSubCommand = await resolveValue(cmd.default);
40251
+ if (defaultSubCommand) {
40252
+ if (cmd.run)
40253
+ throw new CLIError(`Cannot specify both 'run' and 'default' on the same command.`, "E_DEFAULT_CONFLICT");
40254
+ const subCommand = await _findSubCommand(subCommands, defaultSubCommand);
40255
+ if (!subCommand)
40256
+ throw new CLIError(`Default sub command ${cyan(defaultSubCommand)} not found in subCommands.`, "E_UNKNOWN_COMMAND");
40257
+ await runCommand(subCommand, { rawArgs: opts.rawArgs });
40258
+ } else if (!cmd.run)
40259
+ throw new CLIError(`No command specified.`, "E_NO_COMMAND");
40260
+ }
40261
+ }
40262
+ if (typeof cmd.run === "function")
40263
+ result = await cmd.run(context);
40264
+ } catch (error) {
40265
+ runError = error;
40266
+ }
40267
+ const cleanupErrors = [];
40268
+ if (typeof cmd.cleanup === "function")
40269
+ try {
40270
+ await cmd.cleanup(context);
40271
+ } catch (error) {
40272
+ cleanupErrors.push(error);
40273
+ }
40274
+ for (const plugin of [...plugins].reverse())
40275
+ try {
40276
+ await plugin.cleanup?.(context);
40277
+ } catch (error) {
40278
+ cleanupErrors.push(error);
40279
+ }
40280
+ if (runError)
40281
+ throw runError;
40282
+ if (cleanupErrors.length === 1)
40283
+ throw cleanupErrors[0];
40284
+ if (cleanupErrors.length > 1)
40285
+ throw new Error("Multiple cleanup errors", { cause: cleanupErrors });
40286
+ return { result };
40287
+ }
40288
+ async function resolveSubCommand(cmd, rawArgs, parent) {
40289
+ const subCommands = await resolveValue(cmd.subCommands);
40290
+ if (subCommands && Object.keys(subCommands).length > 0) {
40291
+ const subCommandArgIndex = findSubCommandIndex(rawArgs, await resolveValue(cmd.args || {}));
40292
+ const subCommandName = rawArgs[subCommandArgIndex];
40293
+ const subCommand = await _findSubCommand(subCommands, subCommandName);
40294
+ if (subCommand)
40295
+ return resolveSubCommand(subCommand, rawArgs.slice(subCommandArgIndex + 1), cmd);
40296
+ }
40297
+ return [cmd, parent];
40298
+ }
40299
+ async function _findSubCommand(subCommands, name) {
40300
+ if (name in subCommands)
40301
+ return resolveValue(subCommands[name]);
40302
+ for (const sub of Object.values(subCommands)) {
40303
+ const resolved = await resolveValue(sub);
40304
+ const meta = await resolveValue(resolved?.meta);
40305
+ if (meta?.alias) {
40306
+ if (toArray(meta.alias).includes(name))
40307
+ return resolved;
40308
+ }
40309
+ }
40310
+ }
40311
+ function findSubCommandIndex(rawArgs, argsDef) {
40312
+ for (let i = 0;i < rawArgs.length; i++) {
40313
+ const arg = rawArgs[i];
40314
+ if (arg === "--")
40315
+ return -1;
40316
+ if (arg.startsWith("-")) {
40317
+ if (!arg.includes("=") && _isValueFlag(arg, argsDef))
40318
+ i++;
40319
+ continue;
40320
+ }
40321
+ return i;
40322
+ }
40323
+ return -1;
40324
+ }
40325
+ function _isValueFlag(flag, argsDef) {
40326
+ const name = flag.replace(/^-{1,2}/, "");
40327
+ const normalized = camelCase(name);
40328
+ for (const [key, def] of Object.entries(argsDef)) {
40329
+ if (def.type !== "string" && def.type !== "enum")
40330
+ continue;
40331
+ if (normalized === camelCase(key))
40332
+ return true;
40333
+ if ((Array.isArray(def.alias) ? def.alias : def.alias ? [def.alias] : []).includes(name))
40334
+ return true;
40335
+ }
40336
+ return false;
40337
+ }
40338
+ async function showUsage(cmd, parent) {
40339
+ try {
40340
+ console.log(await renderUsage(cmd, parent) + `
40341
+ `);
40342
+ } catch (error) {
40343
+ console.error(error);
40344
+ }
40345
+ }
40346
+ var negativePrefixRe = /^no[-A-Z]/;
40347
+ async function renderUsage(cmd, parent) {
40348
+ const cmdMeta = await resolveValue(cmd.meta || {});
40349
+ const cmdArgs = resolveArgs(await resolveValue(cmd.args || {}));
40350
+ const parentMeta = await resolveValue(parent?.meta || {});
40351
+ const commandName = `${parentMeta.name ? `${parentMeta.name} ` : ""}` + (cmdMeta.name || process.argv[1]);
40352
+ const argLines = [];
40353
+ const posLines = [];
40354
+ const commandsLines = [];
40355
+ const usageLine = [];
40356
+ for (const arg of cmdArgs)
40357
+ if (arg.type === "positional") {
40358
+ const name = arg.name.toUpperCase();
40359
+ const isRequired = arg.required !== false && arg.default === undefined;
40360
+ posLines.push([cyan(name + renderValueHint(arg)), renderDescription(arg, isRequired)]);
40361
+ usageLine.push(isRequired ? `<${name}>` : `[${name}]`);
40362
+ } else {
40363
+ const isRequired = arg.required === true && arg.default === undefined;
40364
+ const argStr = [...(arg.alias || []).map((a) => `-${a}`), `--${arg.name}`].join(", ") + renderValueHint(arg);
40365
+ argLines.push([cyan(argStr), renderDescription(arg, isRequired)]);
40366
+ if (arg.type === "boolean" && (arg.default === true || arg.negativeDescription) && !negativePrefixRe.test(arg.name)) {
40367
+ const negativeArgStr = [...(arg.alias || []).map((a) => `--no-${a}`), `--no-${arg.name}`].join(", ");
40368
+ argLines.push([cyan(negativeArgStr), [arg.negativeDescription, isRequired ? gray("(Required)") : ""].filter(Boolean).join(" ")]);
40369
+ }
40370
+ if (isRequired)
40371
+ usageLine.push(`--${arg.name}` + renderValueHint(arg));
40372
+ }
40373
+ if (cmd.subCommands) {
40374
+ const commandNames = [];
40375
+ const subCommands = await resolveValue(cmd.subCommands);
40376
+ for (const [name, sub] of Object.entries(subCommands)) {
40377
+ const meta = await resolveValue((await resolveValue(sub))?.meta);
40378
+ if (meta?.hidden)
40379
+ continue;
40380
+ const aliases = toArray(meta?.alias);
40381
+ const label = [name, ...aliases].join(", ");
40382
+ commandsLines.push([cyan(label), meta?.description || ""]);
40383
+ commandNames.push(name, ...aliases);
40384
+ }
40385
+ usageLine.push(commandNames.join("|"));
40386
+ }
40387
+ const usageLines = [];
40388
+ const version = cmdMeta.version || parentMeta.version;
40389
+ usageLines.push(gray(`${cmdMeta.description} (${commandName + (version ? ` v${version}` : "")})`), "");
40390
+ const hasOptions = argLines.length > 0 || posLines.length > 0;
40391
+ usageLines.push(`${underline(bold("USAGE"))} ${cyan(`${commandName}${hasOptions ? " [OPTIONS]" : ""} ${usageLine.join(" ")}`)}`, "");
40392
+ if (posLines.length > 0) {
40393
+ usageLines.push(underline(bold("ARGUMENTS")), "");
40394
+ usageLines.push(formatLineColumns(posLines, " "));
40395
+ usageLines.push("");
40396
+ }
40397
+ if (argLines.length > 0) {
40398
+ usageLines.push(underline(bold("OPTIONS")), "");
40399
+ usageLines.push(formatLineColumns(argLines, " "));
40400
+ usageLines.push("");
40401
+ }
40402
+ if (commandsLines.length > 0) {
40403
+ usageLines.push(underline(bold("COMMANDS")), "");
40404
+ usageLines.push(formatLineColumns(commandsLines, " "));
40405
+ usageLines.push("", `Use ${cyan(`${commandName} <command> --help`)} for more information about a command.`);
40406
+ }
40407
+ return usageLines.filter((l) => typeof l === "string").join(`
40408
+ `);
40409
+ }
40410
+ function renderValueHint(arg) {
40411
+ const valueHint = arg.valueHint ? `=<${arg.valueHint}>` : "";
40412
+ const fallbackValueHint = valueHint || `=<${snakeCase(arg.name)}>`;
40413
+ if (!arg.type || arg.type === "positional" || arg.type === "boolean")
40414
+ return valueHint;
40415
+ if (arg.type === "enum" && arg.options?.length)
40416
+ return `=<${arg.options.join("|")}>`;
40417
+ return fallbackValueHint;
40418
+ }
40419
+ function renderDescription(arg, required) {
40420
+ const requiredHint = required ? gray("(Required)") : "";
40421
+ const defaultHint = arg.default === undefined ? "" : gray(`(Default: ${arg.default})`);
40422
+ return [
40423
+ arg.description,
40424
+ requiredHint,
40425
+ defaultHint
40426
+ ].filter(Boolean).join(" ");
40427
+ }
40428
+ async function runMain(cmd, opts = {}) {
40429
+ const rawArgs = opts.rawArgs || process.argv.slice(2);
40430
+ const showUsage$1 = opts.showUsage || showUsage;
40431
+ try {
40432
+ const builtinFlags = await _resolveBuiltinFlags(cmd);
40433
+ if (builtinFlags.help.length > 0 && rawArgs.some((arg) => builtinFlags.help.includes(arg))) {
40434
+ await showUsage$1(...await resolveSubCommand(cmd, rawArgs));
40435
+ process.exit(0);
40436
+ } else if (rawArgs.length === 1 && builtinFlags.version.includes(rawArgs[0])) {
40437
+ const meta = typeof cmd.meta === "function" ? await cmd.meta() : await cmd.meta;
40438
+ if (!meta?.version)
40439
+ throw new CLIError("No version specified", "E_NO_VERSION");
40440
+ console.log(meta.version);
40441
+ } else
40442
+ await runCommand(cmd, { rawArgs });
40443
+ } catch (error) {
40444
+ if (error instanceof CLIError) {
40445
+ await showUsage$1(...await resolveSubCommand(cmd, rawArgs));
40446
+ console.error(error.message);
40447
+ } else
40448
+ console.error(error, `
40449
+ `);
40450
+ process.exit(1);
40451
+ }
40452
+ }
40453
+ async function _resolveBuiltinFlags(cmd) {
40454
+ const argsDef = await resolveValue(cmd.args || {});
40455
+ const userNames = /* @__PURE__ */ new Set;
40456
+ const userAliases = /* @__PURE__ */ new Set;
40457
+ for (const [name, def] of Object.entries(argsDef)) {
40458
+ userNames.add(name);
40459
+ for (const alias of toArray(def.alias))
40460
+ userAliases.add(alias);
40461
+ }
40462
+ return {
40463
+ help: _getBuiltinFlags("help", "h", userNames, userAliases),
40464
+ version: _getBuiltinFlags("version", "v", userNames, userAliases)
40465
+ };
40466
+ }
40467
+ function _getBuiltinFlags(long, short, userNames, userAliases) {
40468
+ if (userNames.has(long) || userAliases.has(long))
40469
+ return [];
40470
+ if (userNames.has(short) || userAliases.has(short))
40471
+ return [`--${long}`];
40472
+ return [`--${long}`, `-${short}`];
40473
+ }
40474
+
39933
40475
  // ../../node_modules/zod/v4/core/core.js
39934
40476
  var NEVER = Object.freeze({
39935
40477
  status: "aborted"
@@ -47821,6 +48363,7 @@ function randomNonce() {
47821
48363
  init_env();
47822
48364
  var clients = new Map;
47823
48365
  var configDisplayName;
48366
+ var configGroups = [];
47824
48367
  async function ensureClient(mesh) {
47825
48368
  const existing = clients.get(mesh.meshId);
47826
48369
  if (existing)
@@ -47829,11 +48372,17 @@ async function ensureClient(mesh) {
47829
48372
  clients.set(mesh.meshId, client);
47830
48373
  try {
47831
48374
  await client.connect();
48375
+ for (const g of configGroups ?? []) {
48376
+ try {
48377
+ await client.joinGroup(g.name, g.role);
48378
+ } catch {}
48379
+ }
47832
48380
  } catch {}
47833
48381
  return client;
47834
48382
  }
47835
48383
  async function startClients(config2) {
47836
48384
  configDisplayName = config2.displayName;
48385
+ configGroups = config2.groups ?? [];
47837
48386
  await Promise.allSettled(config2.meshes.map(ensureClient));
47838
48387
  }
47839
48388
  function findClient(needle) {
@@ -47937,6 +48486,7 @@ ${body}`;
47937
48486
  async function startMcpServer() {
47938
48487
  const config2 = loadConfig();
47939
48488
  const myName = config2.displayName ?? "unnamed";
48489
+ const myRole = config2.role ?? process.env.CLAUDEMESH_ROLE ?? null;
47940
48490
  const myGroups = (config2.groups ?? []).map((g) => `@${g.name}${g.role ? ":" + g.role : ""}`).join(", ") || "none";
47941
48491
  const messageMode = config2.messageMode ?? "push";
47942
48492
  const server = new Server({ name: "claudemesh", version: "0.3.0" }, {
@@ -47945,7 +48495,7 @@ async function startMcpServer() {
47945
48495
  tools: {}
47946
48496
  },
47947
48497
  instructions: `## Identity
47948
- You are "${myName}" — a peer in the claudemesh network. Your groups: ${myGroups}. You are one of several Claude Code sessions connected to the same mesh. No orchestrator exists — peers are equals. Your identity comes from your name and group roles, not from a central authority.
48498
+ You are "${myName}"${myRole ? ` (${myRole})` : ""} — a peer in the claudemesh network. Your groups: ${myGroups}. You are one of several Claude Code sessions connected to the same mesh. No orchestrator exists — peers are equals. Your identity comes from your name and group roles, not from a central authority.
47949
48499
 
47950
48500
  ## Responding to messages
47951
48501
  When you receive a <channel source="claudemesh" ...> message, RESPOND IMMEDIATELY. Pause your current task, reply via send_message, then resume. Read from_name, mesh_slug, and priority from the channel attributes. Reply by setting \`to\` to the sender's from_name (display name). Stay in character per your system prompt. Do not ignore low-priority messages — acknowledge them briefly even if you defer action.
@@ -48919,7 +49469,7 @@ function runInstall(args = []) {
48919
49469
  process.exit(1);
48920
49470
  }
48921
49471
  const useColor = !process.env.NO_COLOR && process.env.TERM !== "dumb" && process.stdout.isTTY;
48922
- const bold = (s) => useColor ? `\x1B[1m${s}\x1B[22m` : s;
49472
+ const bold2 = (s) => useColor ? `\x1B[1m${s}\x1B[22m` : s;
48923
49473
  const yellow = (s) => useColor ? `\x1B[33m${s}\x1B[39m` : s;
48924
49474
  const dim = (s) => useColor ? `\x1B[2m${s}\x1B[22m` : s;
48925
49475
  console.log(`✓ MCP server "${MCP_NAME}" ${action}`);
@@ -48942,12 +49492,12 @@ function runInstall(args = []) {
48942
49492
  console.log(dim("· Hooks skipped (--no-hooks)"));
48943
49493
  }
48944
49494
  console.log("");
48945
- console.log(yellow(bold("⚠ RESTART CLAUDE CODE")) + yellow(" for MCP tools to appear."));
49495
+ console.log(yellow(bold2("⚠ RESTART CLAUDE CODE")) + yellow(" for MCP tools to appear."));
48946
49496
  console.log("");
48947
- console.log(`Next: ${bold("claudemesh join https://claudemesh.com/join/<token>")}`);
49497
+ console.log(`Next: ${bold2("claudemesh join https://claudemesh.com/join/<token>")}`);
48948
49498
  console.log("");
48949
49499
  console.log(yellow("⚠ For real-time push messages from peers, launch with:"));
48950
- console.log(` ${bold("claudemesh launch")}` + dim(" (or: claude --dangerously-load-development-channels server:claudemesh)"));
49500
+ console.log(` ${bold2("claudemesh launch")}` + dim(" (or: claude --dangerously-load-development-channels server:claudemesh)"));
48951
49501
  console.log(dim(" Plain `claude` still works — messages are then pull-only via check_messages."));
48952
49502
  }
48953
49503
  function runUninstall() {
@@ -49314,59 +49864,6 @@ import { mkdtempSync, writeFileSync as writeFileSync4, rmSync, readdirSync, stat
49314
49864
  import { tmpdir, hostname as hostname2 } from "node:os";
49315
49865
  import { join as join4 } from "node:path";
49316
49866
  import { createInterface } from "node:readline";
49317
- function parseArgs(argv) {
49318
- const result = {
49319
- name: null,
49320
- role: null,
49321
- groups: null,
49322
- joinLink: null,
49323
- meshSlug: null,
49324
- messageMode: null,
49325
- quiet: false,
49326
- skipPermConfirm: false,
49327
- claudeArgs: []
49328
- };
49329
- let i = 0;
49330
- while (i < argv.length) {
49331
- const arg = argv[i];
49332
- if (arg === "--name" && i + 1 < argv.length) {
49333
- result.name = argv[++i];
49334
- } else if (arg.startsWith("--name=")) {
49335
- result.name = arg.slice("--name=".length);
49336
- } else if (arg === "--role" && i + 1 < argv.length) {
49337
- result.role = argv[++i];
49338
- } else if (arg.startsWith("--role=")) {
49339
- result.role = arg.slice("--role=".length);
49340
- } else if (arg === "--groups" && i + 1 < argv.length) {
49341
- result.groups = argv[++i];
49342
- } else if (arg.startsWith("--groups=")) {
49343
- result.groups = arg.slice("--groups=".length);
49344
- } else if (arg === "--join" && i + 1 < argv.length) {
49345
- result.joinLink = argv[++i];
49346
- } else if (arg.startsWith("--join=")) {
49347
- result.joinLink = arg.slice("--join=".length);
49348
- } else if (arg === "--mesh" && i + 1 < argv.length) {
49349
- result.meshSlug = argv[++i];
49350
- } else if (arg.startsWith("--mesh=")) {
49351
- result.meshSlug = arg.slice("--mesh=".length);
49352
- } else if (arg === "--inbox") {
49353
- result.messageMode = "inbox";
49354
- } else if (arg === "--no-messages") {
49355
- result.messageMode = "off";
49356
- } else if (arg === "--quiet") {
49357
- result.quiet = true;
49358
- } else if (arg === "-y" || arg === "--yes") {
49359
- result.skipPermConfirm = true;
49360
- } else if (arg === "--") {
49361
- result.claudeArgs.push(...argv.slice(i + 1));
49362
- break;
49363
- } else {
49364
- result.claudeArgs.push(arg);
49365
- }
49366
- i++;
49367
- }
49368
- return result;
49369
- }
49370
49867
  async function pickMesh(meshes) {
49371
49868
  if (meshes.length === 1)
49372
49869
  return meshes[0];
@@ -49409,10 +49906,10 @@ function askLine(prompt) {
49409
49906
  }
49410
49907
  async function confirmPermissions() {
49411
49908
  const useColor = !process.env.NO_COLOR && process.env.TERM !== "dumb" && process.stdout.isTTY;
49412
- const bold = (s) => useColor ? `\x1B[1m${s}\x1B[22m` : s;
49909
+ const bold2 = (s) => useColor ? `\x1B[1m${s}\x1B[22m` : s;
49413
49910
  const dim = (s) => useColor ? `\x1B[2m${s}\x1B[22m` : s;
49414
49911
  const yellow = (s) => useColor ? `\x1B[33m${s}\x1B[39m` : s;
49415
- console.log(yellow(bold(" Autonomous mode")));
49912
+ console.log(yellow(bold2(" Autonomous mode")));
49416
49913
  console.log("");
49417
49914
  console.log(" Claude will send and receive peer messages without asking");
49418
49915
  console.log(" you first. Peers exchange text only — no file access,");
@@ -49423,7 +49920,7 @@ async function confirmPermissions() {
49423
49920
  console.log("");
49424
49921
  const rl = createInterface({ input: process.stdin, output: process.stdout });
49425
49922
  return new Promise((resolve2, reject) => {
49426
- rl.question(` ${bold("Continue?")} [Y/n] `, (answer) => {
49923
+ rl.question(` ${bold2("Continue?")} [Y/n] `, (answer) => {
49427
49924
  rl.close();
49428
49925
  const a = answer.trim().toLowerCase();
49429
49926
  if (a === "" || a === "y" || a === "yes") {
@@ -49441,11 +49938,11 @@ async function confirmPermissions() {
49441
49938
  function printBanner(name, meshSlug, role, groups, messageMode) {
49442
49939
  const useColor = !process.env.NO_COLOR && process.env.TERM !== "dumb" && process.stdout.isTTY;
49443
49940
  const dim = (s) => useColor ? `\x1B[2m${s}\x1B[22m` : s;
49444
- const bold = (s) => useColor ? `\x1B[1m${s}\x1B[22m` : s;
49941
+ const bold2 = (s) => useColor ? `\x1B[1m${s}\x1B[22m` : s;
49445
49942
  const roleSuffix = role ? ` (${role})` : "";
49446
49943
  const groupTags = groups.length ? " [" + groups.map((g) => `@${g.name}${g.role ? `:${g.role}` : ""}`).join(", ") + "]" : "";
49447
49944
  const rule = "─".repeat(60);
49448
- console.log(bold(`claudemesh launch`) + dim(` — as ${name}${roleSuffix} on ${meshSlug}${groupTags} [${messageMode}]`));
49945
+ console.log(bold2(`claudemesh launch`) + dim(` — as ${name}${roleSuffix} on ${meshSlug}${groupTags} [${messageMode}]`));
49449
49946
  console.log(rule);
49450
49947
  if (messageMode === "push") {
49451
49948
  console.log("Peer messages arrive as <channel> reminders in real-time.");
@@ -49459,8 +49956,21 @@ function printBanner(name, meshSlug, role, groups, messageMode) {
49459
49956
  console.log(rule);
49460
49957
  console.log("");
49461
49958
  }
49462
- async function runLaunch(extraArgs) {
49463
- const args = parseArgs(extraArgs);
49959
+ async function runLaunch(flags, rawArgs) {
49960
+ const dashIdx = rawArgs.indexOf("--");
49961
+ const claudePassthrough = dashIdx >= 0 ? rawArgs.slice(dashIdx + 1) : [];
49962
+ const args = {
49963
+ name: flags.name ?? null,
49964
+ role: flags.role ?? null,
49965
+ groups: flags.groups ?? null,
49966
+ joinLink: flags.join ?? null,
49967
+ meshSlug: flags.mesh ?? null,
49968
+ messageMode: ["push", "inbox", "off"].includes(flags["message-mode"] ?? "") ? flags["message-mode"] : null,
49969
+ systemPrompt: flags["system-prompt"] ?? null,
49970
+ quiet: flags.quiet ?? false,
49971
+ skipPermConfirm: flags.yes ?? false,
49972
+ claudeArgs: claudePassthrough
49973
+ };
49464
49974
  if (args.joinLink) {
49465
49975
  console.log("Joining mesh...");
49466
49976
  const invite = await parseInviteLink(args.joinLink);
@@ -49555,6 +50065,7 @@ async function runLaunch(extraArgs) {
49555
50065
  version: 1,
49556
50066
  meshes: [mesh],
49557
50067
  displayName,
50068
+ ...role ? { role } : {},
49558
50069
  ...parsedGroups.length > 0 ? { groups: parsedGroups } : {},
49559
50070
  messageMode
49560
50071
  };
@@ -49579,6 +50090,7 @@ async function runLaunch(extraArgs) {
49579
50090
  "--dangerously-load-development-channels",
49580
50091
  "server:claudemesh",
49581
50092
  "--dangerously-skip-permissions",
50093
+ ...args.systemPrompt ? ["--system-prompt", args.systemPrompt] : [],
49582
50094
  ...filtered
49583
50095
  ];
49584
50096
  const isWindows = process.platform === "win32";
@@ -49588,7 +50100,8 @@ async function runLaunch(extraArgs) {
49588
50100
  env: {
49589
50101
  ...process.env,
49590
50102
  CLAUDEMESH_CONFIG_DIR: tmpDir,
49591
- CLAUDEMESH_DISPLAY_NAME: displayName
50103
+ CLAUDEMESH_DISPLAY_NAME: displayName,
50104
+ ...role ? { CLAUDEMESH_ROLE: role } : {}
49592
50105
  }
49593
50106
  });
49594
50107
  const cleanup = () => {
@@ -49629,7 +50142,7 @@ init_config();
49629
50142
  // package.json
49630
50143
  var package_default = {
49631
50144
  name: "claudemesh-cli",
49632
- version: "0.5.9",
50145
+ version: "0.6.0",
49633
50146
  description: "Claude Code MCP client for claudemesh — peer mesh messaging between Claude sessions.",
49634
50147
  keywords: [
49635
50148
  "claude-code",
@@ -49676,6 +50189,7 @@ var package_default = {
49676
50189
  },
49677
50190
  dependencies: {
49678
50191
  "@modelcontextprotocol/sdk": "1.27.1",
50192
+ citty: "0.2.2",
49679
50193
  "libsodium-wrappers": "0.7.15",
49680
50194
  ws: "8.20.0",
49681
50195
  zod: "4.1.13"
@@ -49983,18 +50497,18 @@ function detectState() {
49983
50497
  }
49984
50498
  function runWelcome() {
49985
50499
  const useColor = !process.env.NO_COLOR && process.env.TERM !== "dumb" && process.stdout.isTTY;
49986
- const bold = (s) => useColor ? `\x1B[1m${s}\x1B[22m` : s;
50500
+ const bold2 = (s) => useColor ? `\x1B[1m${s}\x1B[22m` : s;
49987
50501
  const dim = (s) => useColor ? `\x1B[2m${s}\x1B[22m` : s;
49988
50502
  const green = (s) => useColor ? `\x1B[32m${s}\x1B[39m` : s;
49989
50503
  const yellow = (s) => useColor ? `\x1B[33m${s}\x1B[39m` : s;
49990
- console.log(bold(`claudemesh v${VERSION}`) + dim(" — peer mesh for Claude Code"));
50504
+ console.log(bold2(`claudemesh v${VERSION}`) + dim(" — peer mesh for Claude Code"));
49991
50505
  console.log("─".repeat(60));
49992
50506
  const state = detectState();
49993
50507
  switch (state) {
49994
50508
  case "no-install":
49995
50509
  console.log("Welcome. Let's get you set up.");
49996
50510
  console.log("");
49997
- console.log(bold("Step 1:") + " register the MCP server + status hooks");
50511
+ console.log(bold2("Step 1:") + " register the MCP server + status hooks");
49998
50512
  console.log(` ${green("$")} claudemesh install`);
49999
50513
  console.log("");
50000
50514
  console.log(dim("Step 2 (after restart): claudemesh join <invite-url>"));
@@ -50003,10 +50517,10 @@ function runWelcome() {
50003
50517
  case "no-meshes":
50004
50518
  console.log(green("✓") + " MCP registered. Now join a mesh.");
50005
50519
  console.log("");
50006
- console.log(bold("Step 2:") + " join a mesh");
50520
+ console.log(bold2("Step 2:") + " join a mesh");
50007
50521
  console.log(` ${green("$")} claudemesh join https://claudemesh.com/join/<token>`);
50008
50522
  console.log("");
50009
- console.log(dim(" Don't have an invite? Create one at ") + bold("https://claudemesh.com") + dim(" or ask a mesh owner."));
50523
+ console.log(dim(" Don't have an invite? Create one at ") + bold2("https://claudemesh.com") + dim(" or ask a mesh owner."));
50010
50524
  console.log("");
50011
50525
  console.log(dim("Step 3 (after joining): claudemesh launch"));
50012
50526
  break;
@@ -50016,7 +50530,7 @@ function runWelcome() {
50016
50530
  console.log(green("✓") + " MCP registered.");
50017
50531
  console.log(green("✓") + ` ${cfg.meshes.length} mesh(es) joined: ${meshNames}`);
50018
50532
  console.log("");
50019
- console.log(bold("You're ready.") + " Launch Claude Code with real-time peer messages:");
50533
+ console.log(bold2("You're ready.") + " Launch Claude Code with real-time peer messages:");
50020
50534
  console.log(` ${green("$")} claudemesh launch`);
50021
50535
  console.log("");
50022
50536
  console.log(dim(" (Plain `claude` works too — messages pull-only via check_messages.)"));
@@ -50037,93 +50551,160 @@ function runWelcome() {
50037
50551
  }
50038
50552
 
50039
50553
  // src/index.ts
50040
- var HELP = `claudemesh v${VERSION} — peer mesh for Claude Code sessions
50041
-
50042
- Usage:
50043
- claudemesh <command> [args]
50044
-
50045
- Commands:
50046
- install Register MCP + Stop/UserPromptSubmit status hooks
50047
- (add --no-hooks for bare MCP registration)
50048
- uninstall Remove MCP server + hooks
50049
- launch [opts] Launch Claude Code with real-time push messages
50050
- --name <name> Display name for this session
50051
- --mesh <slug> Select mesh (picker if >1, omitted)
50052
- --join <url> Join a mesh before launching
50053
- --quiet Skip the info banner
50054
- -- <args> Pass remaining args to claude
50055
- join <url> Join a mesh via https://claudemesh.com/join/... URL
50056
- list Show all joined meshes
50057
- leave <slug> Leave a joined mesh
50058
- status Health report: broker reachability per joined mesh
50059
- doctor Diagnostic checks (install, config, keypairs, PATH)
50060
- seed-test-mesh Dev-only: inject a mesh into config (skips invite flow)
50061
- mcp Start MCP server (stdio) — invoked by Claude Code
50062
- --help, -h Show this help
50063
- --version, -v Show the CLI version
50064
-
50065
- Environment:
50066
- CLAUDEMESH_BROKER_URL Override broker URL (default: wss://ic.claudemesh.com/ws)
50067
- CLAUDEMESH_CONFIG_DIR Override config directory (default: ~/.claudemesh/)
50068
- CLAUDEMESH_DEBUG=1 Verbose logging
50069
- `;
50070
- var cmd = process.argv[2];
50071
- var args = process.argv.slice(3);
50072
- async function main() {
50073
- switch (cmd) {
50074
- case "mcp":
50075
- await startMcpServer();
50076
- return;
50077
- case "install":
50078
- runInstall(args);
50079
- return;
50080
- case "uninstall":
50081
- runUninstall();
50082
- return;
50083
- case "hook":
50084
- await runHook(args);
50085
- return;
50086
- case "launch":
50087
- await runLaunch(args);
50088
- return;
50089
- case "join":
50090
- await runJoin(args);
50091
- return;
50092
- case "list":
50093
- runList();
50094
- return;
50095
- case "leave":
50096
- runLeave(args);
50097
- return;
50098
- case "status":
50099
- await runStatus();
50100
- return;
50101
- case "doctor":
50102
- await runDoctor();
50103
- return;
50104
- case "seed-test-mesh":
50105
- runSeedTestMesh(args);
50106
- return;
50107
- case "--version":
50108
- case "-v":
50109
- case "version":
50110
- console.log(VERSION);
50111
- return;
50112
- case "--help":
50113
- case "-h":
50114
- case "help":
50115
- console.log(HELP);
50116
- return;
50117
- case undefined:
50118
- runWelcome();
50119
- return;
50120
- default:
50121
- console.error(`Unknown command: ${cmd}`);
50122
- console.error("Run `claudemesh --help` for usage.");
50123
- process.exit(1);
50554
+ var launch = defineCommand({
50555
+ meta: {
50556
+ name: "launch",
50557
+ description: "Launch Claude Code connected to a mesh with real-time peer messaging"
50558
+ },
50559
+ args: {
50560
+ name: {
50561
+ type: "string",
50562
+ description: "Display name for this session"
50563
+ },
50564
+ role: {
50565
+ type: "string",
50566
+ description: "Role tag (dev, lead, analyst — free-form)"
50567
+ },
50568
+ groups: {
50569
+ type: "string",
50570
+ description: 'Groups to join: "group:role,group2" — colon sets role. Hierarchy via slash: "eng/frontend:lead"'
50571
+ },
50572
+ mesh: {
50573
+ type: "string",
50574
+ description: "Select mesh by slug (interactive picker if omitted and >1 joined)"
50575
+ },
50576
+ join: {
50577
+ type: "string",
50578
+ description: "Join a mesh via invite URL before launching"
50579
+ },
50580
+ "message-mode": {
50581
+ type: "string",
50582
+ description: "push (default) | inbox | off — controls how peer messages are delivered"
50583
+ },
50584
+ "system-prompt": {
50585
+ type: "string",
50586
+ description: "Set Claude's system prompt for this session"
50587
+ },
50588
+ yes: {
50589
+ type: "boolean",
50590
+ alias: "y",
50591
+ description: "Skip permission confirmation",
50592
+ default: false
50593
+ },
50594
+ quiet: {
50595
+ type: "boolean",
50596
+ description: "Skip banner and all interactive prompts",
50597
+ default: false
50598
+ }
50599
+ },
50600
+ run({ args, rawArgs }) {
50601
+ return runLaunch(args, rawArgs);
50602
+ }
50603
+ });
50604
+ var install = defineCommand({
50605
+ meta: {
50606
+ name: "install",
50607
+ description: "Register MCP server + status hooks with Claude Code"
50608
+ },
50609
+ args: {
50610
+ "no-hooks": {
50611
+ type: "boolean",
50612
+ description: "Register MCP server only, skip hooks",
50613
+ default: false
50614
+ }
50615
+ },
50616
+ run({ rawArgs }) {
50617
+ runInstall(rawArgs);
50618
+ }
50619
+ });
50620
+ var join7 = defineCommand({
50621
+ meta: {
50622
+ name: "join",
50623
+ description: "Join a mesh via invite URL"
50624
+ },
50625
+ args: {
50626
+ url: {
50627
+ type: "positional",
50628
+ description: "Invite URL (https://claudemesh.com/join/...)",
50629
+ required: true
50630
+ }
50631
+ },
50632
+ run({ args }) {
50633
+ return runJoin([args.url]);
50634
+ }
50635
+ });
50636
+ var leave = defineCommand({
50637
+ meta: {
50638
+ name: "leave",
50639
+ description: "Leave a joined mesh"
50640
+ },
50641
+ args: {
50642
+ slug: {
50643
+ type: "positional",
50644
+ description: "Mesh slug to leave",
50645
+ required: true
50646
+ }
50647
+ },
50648
+ run({ args }) {
50649
+ runLeave([args.slug]);
50650
+ }
50651
+ });
50652
+ var main = defineCommand({
50653
+ meta: {
50654
+ name: "claudemesh",
50655
+ version: VERSION,
50656
+ description: "Peer mesh for Claude Code sessions"
50657
+ },
50658
+ subCommands: {
50659
+ launch,
50660
+ install,
50661
+ uninstall: defineCommand({
50662
+ meta: { name: "uninstall", description: "Remove MCP server and hooks" },
50663
+ run() {
50664
+ runUninstall();
50665
+ }
50666
+ }),
50667
+ join: join7,
50668
+ list: defineCommand({
50669
+ meta: { name: "list", description: "Show joined meshes and identities" },
50670
+ run() {
50671
+ runList();
50672
+ }
50673
+ }),
50674
+ leave,
50675
+ status: defineCommand({
50676
+ meta: { name: "status", description: "Check broker reachability for each joined mesh" },
50677
+ async run() {
50678
+ await runStatus();
50679
+ }
50680
+ }),
50681
+ doctor: defineCommand({
50682
+ meta: { name: "doctor", description: "Diagnose install, config, keypairs, and PATH" },
50683
+ async run() {
50684
+ await runDoctor();
50685
+ }
50686
+ }),
50687
+ mcp: defineCommand({
50688
+ meta: { name: "mcp", description: "Start MCP server (stdio — invoked by Claude Code, not users)" },
50689
+ async run() {
50690
+ await startMcpServer();
50691
+ }
50692
+ }),
50693
+ "seed-test-mesh": defineCommand({
50694
+ meta: { name: "seed-test-mesh", description: "Dev only: inject a mesh into config (skips invite flow)" },
50695
+ run({ rawArgs }) {
50696
+ runSeedTestMesh(rawArgs);
50697
+ }
50698
+ }),
50699
+ hook: defineCommand({
50700
+ meta: { name: "hook", description: "Internal hook handler (invoked by Claude Code hooks)" },
50701
+ async run({ rawArgs }) {
50702
+ await runHook(rawArgs);
50703
+ }
50704
+ })
50705
+ },
50706
+ run() {
50707
+ runWelcome();
50124
50708
  }
50125
- }
50126
- main().catch((e) => {
50127
- console.error(`claudemesh: ${e instanceof Error ? e.message : String(e)}`);
50128
- process.exit(1);
50129
50709
  });
50710
+ runMain(main);