@devpad/mcp 2.2.9 → 2.2.12

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 +29 -23
  2. package/dist/index.js +739 -448
  3. package/package.json +33 -33
package/dist/index.js CHANGED
@@ -44,7 +44,7 @@ var __export = (target, all) => {
44
44
  });
45
45
  };
46
46
 
47
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js
47
+ // ../../node_modules/ajv/dist/compile/codegen/code.js
48
48
  var require_code = __commonJS((exports) => {
49
49
  Object.defineProperty(exports, "__esModule", { value: true });
50
50
  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;
@@ -198,7 +198,7 @@ var require_code = __commonJS((exports) => {
198
198
  exports.regexpCode = regexpCode;
199
199
  });
200
200
 
201
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js
201
+ // ../../node_modules/ajv/dist/compile/codegen/scope.js
202
202
  var require_scope = __commonJS((exports) => {
203
203
  Object.defineProperty(exports, "__esModule", { value: true });
204
204
  exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = undefined;
@@ -344,7 +344,7 @@ var require_scope = __commonJS((exports) => {
344
344
  exports.ValueScope = ValueScope;
345
345
  });
346
346
 
347
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js
347
+ // ../../node_modules/ajv/dist/compile/codegen/index.js
348
348
  var require_codegen = __commonJS((exports) => {
349
349
  Object.defineProperty(exports, "__esModule", { value: true });
350
350
  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;
@@ -1054,7 +1054,7 @@ var require_codegen = __commonJS((exports) => {
1054
1054
  }
1055
1055
  });
1056
1056
 
1057
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/util.js
1057
+ // ../../node_modules/ajv/dist/compile/util.js
1058
1058
  var require_util = __commonJS((exports) => {
1059
1059
  Object.defineProperty(exports, "__esModule", { value: true });
1060
1060
  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;
@@ -1218,7 +1218,7 @@ var require_util = __commonJS((exports) => {
1218
1218
  exports.checkStrictMode = checkStrictMode;
1219
1219
  });
1220
1220
 
1221
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/names.js
1221
+ // ../../node_modules/ajv/dist/compile/names.js
1222
1222
  var require_names = __commonJS((exports) => {
1223
1223
  Object.defineProperty(exports, "__esModule", { value: true });
1224
1224
  var codegen_1 = require_codegen();
@@ -1243,7 +1243,7 @@ var require_names = __commonJS((exports) => {
1243
1243
  exports.default = names;
1244
1244
  });
1245
1245
 
1246
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js
1246
+ // ../../node_modules/ajv/dist/compile/errors.js
1247
1247
  var require_errors = __commonJS((exports) => {
1248
1248
  Object.defineProperty(exports, "__esModule", { value: true });
1249
1249
  exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = undefined;
@@ -1361,7 +1361,7 @@ var require_errors = __commonJS((exports) => {
1361
1361
  }
1362
1362
  });
1363
1363
 
1364
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js
1364
+ // ../../node_modules/ajv/dist/compile/validate/boolSchema.js
1365
1365
  var require_boolSchema = __commonJS((exports) => {
1366
1366
  Object.defineProperty(exports, "__esModule", { value: true });
1367
1367
  exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = undefined;
@@ -1409,7 +1409,7 @@ var require_boolSchema = __commonJS((exports) => {
1409
1409
  }
1410
1410
  });
1411
1411
 
1412
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js
1412
+ // ../../node_modules/ajv/dist/compile/rules.js
1413
1413
  var require_rules = __commonJS((exports) => {
1414
1414
  Object.defineProperty(exports, "__esModule", { value: true });
1415
1415
  exports.getRules = exports.isJSONType = undefined;
@@ -1437,7 +1437,7 @@ var require_rules = __commonJS((exports) => {
1437
1437
  exports.getRules = getRules;
1438
1438
  });
1439
1439
 
1440
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js
1440
+ // ../../node_modules/ajv/dist/compile/validate/applicability.js
1441
1441
  var require_applicability = __commonJS((exports) => {
1442
1442
  Object.defineProperty(exports, "__esModule", { value: true });
1443
1443
  exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = undefined;
@@ -1457,7 +1457,7 @@ var require_applicability = __commonJS((exports) => {
1457
1457
  exports.shouldUseRule = shouldUseRule;
1458
1458
  });
1459
1459
 
1460
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js
1460
+ // ../../node_modules/ajv/dist/compile/validate/dataType.js
1461
1461
  var require_dataType = __commonJS((exports) => {
1462
1462
  Object.defineProperty(exports, "__esModule", { value: true });
1463
1463
  exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = undefined;
@@ -1638,7 +1638,7 @@ var require_dataType = __commonJS((exports) => {
1638
1638
  }
1639
1639
  });
1640
1640
 
1641
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js
1641
+ // ../../node_modules/ajv/dist/compile/validate/defaults.js
1642
1642
  var require_defaults = __commonJS((exports) => {
1643
1643
  Object.defineProperty(exports, "__esModule", { value: true });
1644
1644
  exports.assignDefaults = undefined;
@@ -1672,7 +1672,7 @@ var require_defaults = __commonJS((exports) => {
1672
1672
  }
1673
1673
  });
1674
1674
 
1675
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js
1675
+ // ../../node_modules/ajv/dist/vocabularies/code.js
1676
1676
  var require_code2 = __commonJS((exports) => {
1677
1677
  Object.defineProperty(exports, "__esModule", { value: true });
1678
1678
  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;
@@ -1801,7 +1801,7 @@ var require_code2 = __commonJS((exports) => {
1801
1801
  exports.validateUnion = validateUnion;
1802
1802
  });
1803
1803
 
1804
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js
1804
+ // ../../node_modules/ajv/dist/compile/validate/keyword.js
1805
1805
  var require_keyword = __commonJS((exports) => {
1806
1806
  Object.defineProperty(exports, "__esModule", { value: true });
1807
1807
  exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = undefined;
@@ -1916,7 +1916,7 @@ var require_keyword = __commonJS((exports) => {
1916
1916
  exports.validateKeywordUsage = validateKeywordUsage;
1917
1917
  });
1918
1918
 
1919
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js
1919
+ // ../../node_modules/ajv/dist/compile/validate/subschema.js
1920
1920
  var require_subschema = __commonJS((exports) => {
1921
1921
  Object.defineProperty(exports, "__esModule", { value: true });
1922
1922
  exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = undefined;
@@ -1996,7 +1996,7 @@ var require_subschema = __commonJS((exports) => {
1996
1996
  exports.extendSubschemaMode = extendSubschemaMode;
1997
1997
  });
1998
1998
 
1999
- // ../../node_modules/.bun/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
1999
+ // ../../node_modules/fast-deep-equal/index.js
2000
2000
  var require_fast_deep_equal = __commonJS((exports, module) => {
2001
2001
  module.exports = function equal(a, b) {
2002
2002
  if (a === b)
@@ -2038,7 +2038,7 @@ var require_fast_deep_equal = __commonJS((exports, module) => {
2038
2038
  };
2039
2039
  });
2040
2040
 
2041
- // ../../node_modules/.bun/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js
2041
+ // ../../node_modules/json-schema-traverse/index.js
2042
2042
  var require_json_schema_traverse = __commonJS((exports, module) => {
2043
2043
  var traverse = module.exports = function(schema, opts, cb) {
2044
2044
  if (typeof opts == "function") {
@@ -2121,7 +2121,7 @@ var require_json_schema_traverse = __commonJS((exports, module) => {
2121
2121
  }
2122
2122
  });
2123
2123
 
2124
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js
2124
+ // ../../node_modules/ajv/dist/compile/resolve.js
2125
2125
  var require_resolve = __commonJS((exports) => {
2126
2126
  Object.defineProperty(exports, "__esModule", { value: true });
2127
2127
  exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = undefined;
@@ -2274,7 +2274,7 @@ var require_resolve = __commonJS((exports) => {
2274
2274
  exports.getSchemaRefs = getSchemaRefs;
2275
2275
  });
2276
2276
 
2277
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js
2277
+ // ../../node_modules/ajv/dist/compile/validate/index.js
2278
2278
  var require_validate = __commonJS((exports) => {
2279
2279
  Object.defineProperty(exports, "__esModule", { value: true });
2280
2280
  exports.getData = exports.KeywordCxt = exports.validateFunctionCode = undefined;
@@ -2779,7 +2779,7 @@ var require_validate = __commonJS((exports) => {
2779
2779
  exports.getData = getData;
2780
2780
  });
2781
2781
 
2782
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js
2782
+ // ../../node_modules/ajv/dist/runtime/validation_error.js
2783
2783
  var require_validation_error = __commonJS((exports) => {
2784
2784
  Object.defineProperty(exports, "__esModule", { value: true });
2785
2785
 
@@ -2793,7 +2793,7 @@ var require_validation_error = __commonJS((exports) => {
2793
2793
  exports.default = ValidationError2;
2794
2794
  });
2795
2795
 
2796
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js
2796
+ // ../../node_modules/ajv/dist/compile/ref_error.js
2797
2797
  var require_ref_error = __commonJS((exports) => {
2798
2798
  Object.defineProperty(exports, "__esModule", { value: true });
2799
2799
  var resolve_1 = require_resolve();
@@ -2808,7 +2808,7 @@ var require_ref_error = __commonJS((exports) => {
2808
2808
  exports.default = MissingRefError;
2809
2809
  });
2810
2810
 
2811
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/index.js
2811
+ // ../../node_modules/ajv/dist/compile/index.js
2812
2812
  var require_compile = __commonJS((exports) => {
2813
2813
  Object.defineProperty(exports, "__esModule", { value: true });
2814
2814
  exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = undefined;
@@ -3029,7 +3029,7 @@ var require_compile = __commonJS((exports) => {
3029
3029
  }
3030
3030
  });
3031
3031
 
3032
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/data.json
3032
+ // ../../node_modules/ajv/dist/refs/data.json
3033
3033
  var require_data = __commonJS((exports, module) => {
3034
3034
  module.exports = {
3035
3035
  $id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
@@ -3046,7 +3046,7 @@ var require_data = __commonJS((exports, module) => {
3046
3046
  };
3047
3047
  });
3048
3048
 
3049
- // ../../node_modules/.bun/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js
3049
+ // ../../node_modules/fast-uri/lib/utils.js
3050
3050
  var require_utils = __commonJS((exports, module) => {
3051
3051
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
3052
3052
  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);
@@ -3357,7 +3357,7 @@ var require_utils = __commonJS((exports, module) => {
3357
3357
  };
3358
3358
  });
3359
3359
 
3360
- // ../../node_modules/.bun/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js
3360
+ // ../../node_modules/fast-uri/lib/schemes.js
3361
3361
  var require_schemes = __commonJS((exports, module) => {
3362
3362
  var { isUUID } = require_utils();
3363
3363
  var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
@@ -3531,7 +3531,7 @@ var require_schemes = __commonJS((exports, module) => {
3531
3531
  };
3532
3532
  });
3533
3533
 
3534
- // ../../node_modules/.bun/fast-uri@3.1.2/node_modules/fast-uri/index.js
3534
+ // ../../node_modules/fast-uri/index.js
3535
3535
  var require_fast_uri = __commonJS((exports, module) => {
3536
3536
  var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
3537
3537
  var { SCHEMES, getSchemeHandler } = require_schemes();
@@ -3813,7 +3813,7 @@ var require_fast_uri = __commonJS((exports, module) => {
3813
3813
  module.exports.fastUri = fastUri;
3814
3814
  });
3815
3815
 
3816
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js
3816
+ // ../../node_modules/ajv/dist/runtime/uri.js
3817
3817
  var require_uri = __commonJS((exports) => {
3818
3818
  Object.defineProperty(exports, "__esModule", { value: true });
3819
3819
  var uri = require_fast_uri();
@@ -3821,7 +3821,7 @@ var require_uri = __commonJS((exports) => {
3821
3821
  exports.default = uri;
3822
3822
  });
3823
3823
 
3824
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/core.js
3824
+ // ../../node_modules/ajv/dist/core.js
3825
3825
  var require_core = __commonJS((exports) => {
3826
3826
  Object.defineProperty(exports, "__esModule", { value: true });
3827
3827
  exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = undefined;
@@ -4414,7 +4414,7 @@ var require_core = __commonJS((exports) => {
4414
4414
  }
4415
4415
  });
4416
4416
 
4417
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js
4417
+ // ../../node_modules/ajv/dist/vocabularies/core/id.js
4418
4418
  var require_id = __commonJS((exports) => {
4419
4419
  Object.defineProperty(exports, "__esModule", { value: true });
4420
4420
  var def = {
@@ -4426,7 +4426,7 @@ var require_id = __commonJS((exports) => {
4426
4426
  exports.default = def;
4427
4427
  });
4428
4428
 
4429
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js
4429
+ // ../../node_modules/ajv/dist/vocabularies/core/ref.js
4430
4430
  var require_ref = __commonJS((exports) => {
4431
4431
  Object.defineProperty(exports, "__esModule", { value: true });
4432
4432
  exports.callRef = exports.getValidate = undefined;
@@ -4545,7 +4545,7 @@ var require_ref = __commonJS((exports) => {
4545
4545
  exports.default = def;
4546
4546
  });
4547
4547
 
4548
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js
4548
+ // ../../node_modules/ajv/dist/vocabularies/core/index.js
4549
4549
  var require_core2 = __commonJS((exports) => {
4550
4550
  Object.defineProperty(exports, "__esModule", { value: true });
4551
4551
  var id_1 = require_id();
@@ -4563,7 +4563,7 @@ var require_core2 = __commonJS((exports) => {
4563
4563
  exports.default = core2;
4564
4564
  });
4565
4565
 
4566
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
4566
+ // ../../node_modules/ajv/dist/vocabularies/validation/limitNumber.js
4567
4567
  var require_limitNumber = __commonJS((exports) => {
4568
4568
  Object.defineProperty(exports, "__esModule", { value: true });
4569
4569
  var codegen_1 = require_codegen();
@@ -4592,7 +4592,7 @@ var require_limitNumber = __commonJS((exports) => {
4592
4592
  exports.default = def;
4593
4593
  });
4594
4594
 
4595
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
4595
+ // ../../node_modules/ajv/dist/vocabularies/validation/multipleOf.js
4596
4596
  var require_multipleOf = __commonJS((exports) => {
4597
4597
  Object.defineProperty(exports, "__esModule", { value: true });
4598
4598
  var codegen_1 = require_codegen();
@@ -4617,7 +4617,7 @@ var require_multipleOf = __commonJS((exports) => {
4617
4617
  exports.default = def;
4618
4618
  });
4619
4619
 
4620
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js
4620
+ // ../../node_modules/ajv/dist/runtime/ucs2length.js
4621
4621
  var require_ucs2length = __commonJS((exports) => {
4622
4622
  Object.defineProperty(exports, "__esModule", { value: true });
4623
4623
  function ucs2length(str) {
@@ -4640,7 +4640,7 @@ var require_ucs2length = __commonJS((exports) => {
4640
4640
  ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
4641
4641
  });
4642
4642
 
4643
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
4643
+ // ../../node_modules/ajv/dist/vocabularies/validation/limitLength.js
4644
4644
  var require_limitLength = __commonJS((exports) => {
4645
4645
  Object.defineProperty(exports, "__esModule", { value: true });
4646
4646
  var codegen_1 = require_codegen();
@@ -4669,7 +4669,7 @@ var require_limitLength = __commonJS((exports) => {
4669
4669
  exports.default = def;
4670
4670
  });
4671
4671
 
4672
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
4672
+ // ../../node_modules/ajv/dist/vocabularies/validation/pattern.js
4673
4673
  var require_pattern = __commonJS((exports) => {
4674
4674
  Object.defineProperty(exports, "__esModule", { value: true });
4675
4675
  var code_1 = require_code2();
@@ -4703,7 +4703,7 @@ var require_pattern = __commonJS((exports) => {
4703
4703
  exports.default = def;
4704
4704
  });
4705
4705
 
4706
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
4706
+ // ../../node_modules/ajv/dist/vocabularies/validation/limitProperties.js
4707
4707
  var require_limitProperties = __commonJS((exports) => {
4708
4708
  Object.defineProperty(exports, "__esModule", { value: true });
4709
4709
  var codegen_1 = require_codegen();
@@ -4729,7 +4729,7 @@ var require_limitProperties = __commonJS((exports) => {
4729
4729
  exports.default = def;
4730
4730
  });
4731
4731
 
4732
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js
4732
+ // ../../node_modules/ajv/dist/vocabularies/validation/required.js
4733
4733
  var require_required = __commonJS((exports) => {
4734
4734
  Object.defineProperty(exports, "__esModule", { value: true });
4735
4735
  var code_1 = require_code2();
@@ -4808,7 +4808,7 @@ var require_required = __commonJS((exports) => {
4808
4808
  exports.default = def;
4809
4809
  });
4810
4810
 
4811
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
4811
+ // ../../node_modules/ajv/dist/vocabularies/validation/limitItems.js
4812
4812
  var require_limitItems = __commonJS((exports) => {
4813
4813
  Object.defineProperty(exports, "__esModule", { value: true });
4814
4814
  var codegen_1 = require_codegen();
@@ -4834,7 +4834,7 @@ var require_limitItems = __commonJS((exports) => {
4834
4834
  exports.default = def;
4835
4835
  });
4836
4836
 
4837
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js
4837
+ // ../../node_modules/ajv/dist/runtime/equal.js
4838
4838
  var require_equal = __commonJS((exports) => {
4839
4839
  Object.defineProperty(exports, "__esModule", { value: true });
4840
4840
  var equal = require_fast_deep_equal();
@@ -4842,7 +4842,7 @@ var require_equal = __commonJS((exports) => {
4842
4842
  exports.default = equal;
4843
4843
  });
4844
4844
 
4845
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
4845
+ // ../../node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
4846
4846
  var require_uniqueItems = __commonJS((exports) => {
4847
4847
  Object.defineProperty(exports, "__esModule", { value: true });
4848
4848
  var dataType_1 = require_dataType();
@@ -4906,7 +4906,7 @@ var require_uniqueItems = __commonJS((exports) => {
4906
4906
  exports.default = def;
4907
4907
  });
4908
4908
 
4909
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js
4909
+ // ../../node_modules/ajv/dist/vocabularies/validation/const.js
4910
4910
  var require_const = __commonJS((exports) => {
4911
4911
  Object.defineProperty(exports, "__esModule", { value: true });
4912
4912
  var codegen_1 = require_codegen();
@@ -4932,7 +4932,7 @@ var require_const = __commonJS((exports) => {
4932
4932
  exports.default = def;
4933
4933
  });
4934
4934
 
4935
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js
4935
+ // ../../node_modules/ajv/dist/vocabularies/validation/enum.js
4936
4936
  var require_enum = __commonJS((exports) => {
4937
4937
  Object.defineProperty(exports, "__esModule", { value: true });
4938
4938
  var codegen_1 = require_codegen();
@@ -4978,7 +4978,7 @@ var require_enum = __commonJS((exports) => {
4978
4978
  exports.default = def;
4979
4979
  });
4980
4980
 
4981
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js
4981
+ // ../../node_modules/ajv/dist/vocabularies/validation/index.js
4982
4982
  var require_validation = __commonJS((exports) => {
4983
4983
  Object.defineProperty(exports, "__esModule", { value: true });
4984
4984
  var limitNumber_1 = require_limitNumber();
@@ -5008,7 +5008,7 @@ var require_validation = __commonJS((exports) => {
5008
5008
  exports.default = validation;
5009
5009
  });
5010
5010
 
5011
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
5011
+ // ../../node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
5012
5012
  var require_additionalItems = __commonJS((exports) => {
5013
5013
  Object.defineProperty(exports, "__esModule", { value: true });
5014
5014
  exports.validateAdditionalItems = undefined;
@@ -5058,7 +5058,7 @@ var require_additionalItems = __commonJS((exports) => {
5058
5058
  exports.default = def;
5059
5059
  });
5060
5060
 
5061
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js
5061
+ // ../../node_modules/ajv/dist/vocabularies/applicator/items.js
5062
5062
  var require_items = __commonJS((exports) => {
5063
5063
  Object.defineProperty(exports, "__esModule", { value: true });
5064
5064
  exports.validateTuple = undefined;
@@ -5112,7 +5112,7 @@ var require_items = __commonJS((exports) => {
5112
5112
  exports.default = def;
5113
5113
  });
5114
5114
 
5115
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
5115
+ // ../../node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
5116
5116
  var require_prefixItems = __commonJS((exports) => {
5117
5117
  Object.defineProperty(exports, "__esModule", { value: true });
5118
5118
  var items_1 = require_items();
@@ -5126,7 +5126,7 @@ var require_prefixItems = __commonJS((exports) => {
5126
5126
  exports.default = def;
5127
5127
  });
5128
5128
 
5129
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
5129
+ // ../../node_modules/ajv/dist/vocabularies/applicator/items2020.js
5130
5130
  var require_items2020 = __commonJS((exports) => {
5131
5131
  Object.defineProperty(exports, "__esModule", { value: true });
5132
5132
  var codegen_1 = require_codegen();
@@ -5158,7 +5158,7 @@ var require_items2020 = __commonJS((exports) => {
5158
5158
  exports.default = def;
5159
5159
  });
5160
5160
 
5161
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
5161
+ // ../../node_modules/ajv/dist/vocabularies/applicator/contains.js
5162
5162
  var require_contains = __commonJS((exports) => {
5163
5163
  Object.defineProperty(exports, "__esModule", { value: true });
5164
5164
  var codegen_1 = require_codegen();
@@ -5249,7 +5249,7 @@ var require_contains = __commonJS((exports) => {
5249
5249
  exports.default = def;
5250
5250
  });
5251
5251
 
5252
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
5252
+ // ../../node_modules/ajv/dist/vocabularies/applicator/dependencies.js
5253
5253
  var require_dependencies = __commonJS((exports) => {
5254
5254
  Object.defineProperty(exports, "__esModule", { value: true });
5255
5255
  exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = undefined;
@@ -5334,7 +5334,7 @@ var require_dependencies = __commonJS((exports) => {
5334
5334
  exports.default = def;
5335
5335
  });
5336
5336
 
5337
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
5337
+ // ../../node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
5338
5338
  var require_propertyNames = __commonJS((exports) => {
5339
5339
  Object.defineProperty(exports, "__esModule", { value: true });
5340
5340
  var codegen_1 = require_codegen();
@@ -5374,7 +5374,7 @@ var require_propertyNames = __commonJS((exports) => {
5374
5374
  exports.default = def;
5375
5375
  });
5376
5376
 
5377
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
5377
+ // ../../node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
5378
5378
  var require_additionalProperties = __commonJS((exports) => {
5379
5379
  Object.defineProperty(exports, "__esModule", { value: true });
5380
5380
  var code_1 = require_code2();
@@ -5477,7 +5477,7 @@ var require_additionalProperties = __commonJS((exports) => {
5477
5477
  exports.default = def;
5478
5478
  });
5479
5479
 
5480
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
5480
+ // ../../node_modules/ajv/dist/vocabularies/applicator/properties.js
5481
5481
  var require_properties = __commonJS((exports) => {
5482
5482
  Object.defineProperty(exports, "__esModule", { value: true });
5483
5483
  var validate_1 = require_validate();
@@ -5532,7 +5532,7 @@ var require_properties = __commonJS((exports) => {
5532
5532
  exports.default = def;
5533
5533
  });
5534
5534
 
5535
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
5535
+ // ../../node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
5536
5536
  var require_patternProperties = __commonJS((exports) => {
5537
5537
  Object.defineProperty(exports, "__esModule", { value: true });
5538
5538
  var code_1 = require_code2();
@@ -5603,7 +5603,7 @@ var require_patternProperties = __commonJS((exports) => {
5603
5603
  exports.default = def;
5604
5604
  });
5605
5605
 
5606
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js
5606
+ // ../../node_modules/ajv/dist/vocabularies/applicator/not.js
5607
5607
  var require_not = __commonJS((exports) => {
5608
5608
  Object.defineProperty(exports, "__esModule", { value: true });
5609
5609
  var util_1 = require_util();
@@ -5631,7 +5631,7 @@ var require_not = __commonJS((exports) => {
5631
5631
  exports.default = def;
5632
5632
  });
5633
5633
 
5634
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
5634
+ // ../../node_modules/ajv/dist/vocabularies/applicator/anyOf.js
5635
5635
  var require_anyOf = __commonJS((exports) => {
5636
5636
  Object.defineProperty(exports, "__esModule", { value: true });
5637
5637
  var code_1 = require_code2();
@@ -5645,7 +5645,7 @@ var require_anyOf = __commonJS((exports) => {
5645
5645
  exports.default = def;
5646
5646
  });
5647
5647
 
5648
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
5648
+ // ../../node_modules/ajv/dist/vocabularies/applicator/oneOf.js
5649
5649
  var require_oneOf = __commonJS((exports) => {
5650
5650
  Object.defineProperty(exports, "__esModule", { value: true });
5651
5651
  var codegen_1 = require_codegen();
@@ -5700,7 +5700,7 @@ var require_oneOf = __commonJS((exports) => {
5700
5700
  exports.default = def;
5701
5701
  });
5702
5702
 
5703
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
5703
+ // ../../node_modules/ajv/dist/vocabularies/applicator/allOf.js
5704
5704
  var require_allOf = __commonJS((exports) => {
5705
5705
  Object.defineProperty(exports, "__esModule", { value: true });
5706
5706
  var util_1 = require_util();
@@ -5724,7 +5724,7 @@ var require_allOf = __commonJS((exports) => {
5724
5724
  exports.default = def;
5725
5725
  });
5726
5726
 
5727
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js
5727
+ // ../../node_modules/ajv/dist/vocabularies/applicator/if.js
5728
5728
  var require_if = __commonJS((exports) => {
5729
5729
  Object.defineProperty(exports, "__esModule", { value: true });
5730
5730
  var codegen_1 = require_codegen();
@@ -5790,7 +5790,7 @@ var require_if = __commonJS((exports) => {
5790
5790
  exports.default = def;
5791
5791
  });
5792
5792
 
5793
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
5793
+ // ../../node_modules/ajv/dist/vocabularies/applicator/thenElse.js
5794
5794
  var require_thenElse = __commonJS((exports) => {
5795
5795
  Object.defineProperty(exports, "__esModule", { value: true });
5796
5796
  var util_1 = require_util();
@@ -5805,7 +5805,7 @@ var require_thenElse = __commonJS((exports) => {
5805
5805
  exports.default = def;
5806
5806
  });
5807
5807
 
5808
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js
5808
+ // ../../node_modules/ajv/dist/vocabularies/applicator/index.js
5809
5809
  var require_applicator = __commonJS((exports) => {
5810
5810
  Object.defineProperty(exports, "__esModule", { value: true });
5811
5811
  var additionalItems_1 = require_additionalItems();
@@ -5848,7 +5848,7 @@ var require_applicator = __commonJS((exports) => {
5848
5848
  exports.default = getApplicator;
5849
5849
  });
5850
5850
 
5851
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js
5851
+ // ../../node_modules/ajv/dist/vocabularies/format/format.js
5852
5852
  var require_format = __commonJS((exports) => {
5853
5853
  Object.defineProperty(exports, "__esModule", { value: true });
5854
5854
  var codegen_1 = require_codegen();
@@ -5935,7 +5935,7 @@ var require_format = __commonJS((exports) => {
5935
5935
  exports.default = def;
5936
5936
  });
5937
5937
 
5938
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js
5938
+ // ../../node_modules/ajv/dist/vocabularies/format/index.js
5939
5939
  var require_format2 = __commonJS((exports) => {
5940
5940
  Object.defineProperty(exports, "__esModule", { value: true });
5941
5941
  var format_1 = require_format();
@@ -5943,7 +5943,7 @@ var require_format2 = __commonJS((exports) => {
5943
5943
  exports.default = format;
5944
5944
  });
5945
5945
 
5946
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js
5946
+ // ../../node_modules/ajv/dist/vocabularies/metadata.js
5947
5947
  var require_metadata = __commonJS((exports) => {
5948
5948
  Object.defineProperty(exports, "__esModule", { value: true });
5949
5949
  exports.contentVocabulary = exports.metadataVocabulary = undefined;
@@ -5963,7 +5963,7 @@ var require_metadata = __commonJS((exports) => {
5963
5963
  ];
5964
5964
  });
5965
5965
 
5966
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js
5966
+ // ../../node_modules/ajv/dist/vocabularies/draft7.js
5967
5967
  var require_draft7 = __commonJS((exports) => {
5968
5968
  Object.defineProperty(exports, "__esModule", { value: true });
5969
5969
  var core_1 = require_core2();
@@ -5982,7 +5982,7 @@ var require_draft7 = __commonJS((exports) => {
5982
5982
  exports.default = draft7Vocabularies;
5983
5983
  });
5984
5984
 
5985
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
5985
+ // ../../node_modules/ajv/dist/vocabularies/discriminator/types.js
5986
5986
  var require_types = __commonJS((exports) => {
5987
5987
  Object.defineProperty(exports, "__esModule", { value: true });
5988
5988
  exports.DiscrError = undefined;
@@ -5993,7 +5993,7 @@ var require_types = __commonJS((exports) => {
5993
5993
  })(DiscrError || (exports.DiscrError = DiscrError = {}));
5994
5994
  });
5995
5995
 
5996
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
5996
+ // ../../node_modules/ajv/dist/vocabularies/discriminator/index.js
5997
5997
  var require_discriminator = __commonJS((exports) => {
5998
5998
  Object.defineProperty(exports, "__esModule", { value: true });
5999
5999
  var codegen_1 = require_codegen();
@@ -6095,7 +6095,7 @@ var require_discriminator = __commonJS((exports) => {
6095
6095
  exports.default = def;
6096
6096
  });
6097
6097
 
6098
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
6098
+ // ../../node_modules/ajv/dist/refs/json-schema-draft-07.json
6099
6099
  var require_json_schema_draft_07 = __commonJS((exports, module) => {
6100
6100
  module.exports = {
6101
6101
  $schema: "http://json-schema.org/draft-07/schema#",
@@ -6250,7 +6250,7 @@ var require_json_schema_draft_07 = __commonJS((exports, module) => {
6250
6250
  };
6251
6251
  });
6252
6252
 
6253
- // ../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/ajv.js
6253
+ // ../../node_modules/ajv/dist/ajv.js
6254
6254
  var require_ajv = __commonJS((exports, module) => {
6255
6255
  Object.defineProperty(exports, "__esModule", { value: true });
6256
6256
  exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = undefined;
@@ -6318,7 +6318,7 @@ var require_ajv = __commonJS((exports, module) => {
6318
6318
  } });
6319
6319
  });
6320
6320
 
6321
- // ../../node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/formats.js
6321
+ // ../../node_modules/ajv-formats/dist/formats.js
6322
6322
  var require_formats = __commonJS((exports) => {
6323
6323
  Object.defineProperty(exports, "__esModule", { value: true });
6324
6324
  exports.formatNames = exports.fastFormats = exports.fullFormats = undefined;
@@ -6495,7 +6495,7 @@ var require_formats = __commonJS((exports) => {
6495
6495
  }
6496
6496
  });
6497
6497
 
6498
- // ../../node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/limit.js
6498
+ // ../../node_modules/ajv-formats/dist/limit.js
6499
6499
  var require_limit = __commonJS((exports) => {
6500
6500
  Object.defineProperty(exports, "__esModule", { value: true });
6501
6501
  exports.formatLimitDefinition = undefined;
@@ -6564,7 +6564,7 @@ var require_limit = __commonJS((exports) => {
6564
6564
  exports.default = formatLimitPlugin;
6565
6565
  });
6566
6566
 
6567
- // ../../node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/index.js
6567
+ // ../../node_modules/ajv-formats/dist/index.js
6568
6568
  var require_dist = __commonJS((exports, module) => {
6569
6569
  Object.defineProperty(exports, "__esModule", { value: true });
6570
6570
  var formats_1 = require_formats();
@@ -6603,7 +6603,7 @@ var require_dist = __commonJS((exports, module) => {
6603
6603
  exports.default = formatsPlugin;
6604
6604
  });
6605
6605
 
6606
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/external.js
6606
+ // ../../node_modules/zod/v3/external.js
6607
6607
  var exports_external = {};
6608
6608
  __export(exports_external, {
6609
6609
  void: () => voidType,
@@ -6715,7 +6715,7 @@ __export(exports_external, {
6715
6715
  BRAND: () => BRAND
6716
6716
  });
6717
6717
 
6718
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/util.js
6718
+ // ../../node_modules/zod/v3/helpers/util.js
6719
6719
  var util;
6720
6720
  (function(util2) {
6721
6721
  util2.assertEqual = (_) => {};
@@ -6846,7 +6846,7 @@ var getParsedType = (data) => {
6846
6846
  }
6847
6847
  };
6848
6848
 
6849
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/ZodError.js
6849
+ // ../../node_modules/zod/v3/ZodError.js
6850
6850
  var ZodIssueCode = util.arrayToEnum([
6851
6851
  "invalid_type",
6852
6852
  "invalid_literal",
@@ -6965,7 +6965,7 @@ ZodError.create = (issues) => {
6965
6965
  return error;
6966
6966
  };
6967
6967
 
6968
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/locales/en.js
6968
+ // ../../node_modules/zod/v3/locales/en.js
6969
6969
  var errorMap = (issue, _ctx) => {
6970
6970
  let message;
6971
6971
  switch (issue.code) {
@@ -7068,7 +7068,7 @@ var errorMap = (issue, _ctx) => {
7068
7068
  };
7069
7069
  var en_default = errorMap;
7070
7070
 
7071
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/errors.js
7071
+ // ../../node_modules/zod/v3/errors.js
7072
7072
  var overrideErrorMap = en_default;
7073
7073
  function setErrorMap(map) {
7074
7074
  overrideErrorMap = map;
@@ -7076,7 +7076,7 @@ function setErrorMap(map) {
7076
7076
  function getErrorMap() {
7077
7077
  return overrideErrorMap;
7078
7078
  }
7079
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
7079
+ // ../../node_modules/zod/v3/helpers/parseUtil.js
7080
7080
  var makeIssue = (params) => {
7081
7081
  const { data, path, errorMaps, issueData } = params;
7082
7082
  const fullPath = [...path, ...issueData.path || []];
@@ -7182,14 +7182,14 @@ var isAborted = (x) => x.status === "aborted";
7182
7182
  var isDirty = (x) => x.status === "dirty";
7183
7183
  var isValid = (x) => x.status === "valid";
7184
7184
  var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
7185
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
7185
+ // ../../node_modules/zod/v3/helpers/errorUtil.js
7186
7186
  var errorUtil;
7187
7187
  (function(errorUtil2) {
7188
7188
  errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
7189
7189
  errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
7190
7190
  })(errorUtil || (errorUtil = {}));
7191
7191
 
7192
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/types.js
7192
+ // ../../node_modules/zod/v3/types.js
7193
7193
  class ParseInputLazyPath {
7194
7194
  constructor(parent, value, path, key) {
7195
7195
  this._cachedPath = [];
@@ -10576,7 +10576,7 @@ var coerce = {
10576
10576
  date: (arg) => ZodDate.create({ ...arg, coerce: true })
10577
10577
  };
10578
10578
  var NEVER = INVALID;
10579
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/entity.js
10579
+ // ../../node_modules/drizzle-orm/entity.js
10580
10580
  var entityKind = Symbol.for("drizzle:entityKind");
10581
10581
  var hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
10582
10582
  function is(value, type) {
@@ -10601,7 +10601,7 @@ function is(value, type) {
10601
10601
  return false;
10602
10602
  }
10603
10603
 
10604
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/column.js
10604
+ // ../../node_modules/drizzle-orm/column.js
10605
10605
  class Column {
10606
10606
  constructor(table, config) {
10607
10607
  this.table = table;
@@ -10651,7 +10651,7 @@ class Column {
10651
10651
  }
10652
10652
  }
10653
10653
 
10654
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/column-builder.js
10654
+ // ../../node_modules/drizzle-orm/column-builder.js
10655
10655
  class ColumnBuilder {
10656
10656
  static [entityKind] = "ColumnBuilder";
10657
10657
  config;
@@ -10707,20 +10707,20 @@ class ColumnBuilder {
10707
10707
  }
10708
10708
  }
10709
10709
 
10710
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/table.utils.js
10710
+ // ../../node_modules/drizzle-orm/table.utils.js
10711
10711
  var TableName = Symbol.for("drizzle:Name");
10712
10712
 
10713
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/tracing-utils.js
10713
+ // ../../node_modules/drizzle-orm/tracing-utils.js
10714
10714
  function iife(fn, ...args) {
10715
10715
  return fn(...args);
10716
10716
  }
10717
10717
 
10718
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/pg-core/unique-constraint.js
10718
+ // ../../node_modules/drizzle-orm/pg-core/unique-constraint.js
10719
10719
  function uniqueKeyName(table, columns) {
10720
10720
  return `${table[TableName]}_${columns.join("_")}_unique`;
10721
10721
  }
10722
10722
 
10723
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/pg-core/columns/common.js
10723
+ // ../../node_modules/drizzle-orm/pg-core/columns/common.js
10724
10724
  class PgColumn extends Column {
10725
10725
  constructor(table, config) {
10726
10726
  if (!config.uniqueName) {
@@ -10769,7 +10769,7 @@ class ExtraConfigColumn extends PgColumn {
10769
10769
  }
10770
10770
  }
10771
10771
 
10772
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/pg-core/columns/enum.js
10772
+ // ../../node_modules/drizzle-orm/pg-core/columns/enum.js
10773
10773
  class PgEnumObjectColumn extends PgColumn {
10774
10774
  static [entityKind] = "PgEnumObjectColumn";
10775
10775
  enum;
@@ -10799,7 +10799,7 @@ class PgEnumColumn extends PgColumn {
10799
10799
  }
10800
10800
  }
10801
10801
 
10802
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/subquery.js
10802
+ // ../../node_modules/drizzle-orm/subquery.js
10803
10803
  class Subquery {
10804
10804
  static [entityKind] = "Subquery";
10805
10805
  constructor(sql, fields, alias, isWith = false, usedTables = []) {
@@ -10814,10 +10814,10 @@ class Subquery {
10814
10814
  }
10815
10815
  }
10816
10816
 
10817
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/version.js
10817
+ // ../../node_modules/drizzle-orm/version.js
10818
10818
  var version = "0.44.7";
10819
10819
 
10820
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/tracing.js
10820
+ // ../../node_modules/drizzle-orm/tracing.js
10821
10821
  var otel;
10822
10822
  var rawTracer;
10823
10823
  var tracer = {
@@ -10844,10 +10844,10 @@ var tracer = {
10844
10844
  }
10845
10845
  };
10846
10846
 
10847
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/view-common.js
10847
+ // ../../node_modules/drizzle-orm/view-common.js
10848
10848
  var ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
10849
10849
 
10850
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/table.js
10850
+ // ../../node_modules/drizzle-orm/table.js
10851
10851
  var Schema = Symbol.for("drizzle:Schema");
10852
10852
  var Columns = Symbol.for("drizzle:Columns");
10853
10853
  var ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
@@ -10885,7 +10885,7 @@ class Table {
10885
10885
  }
10886
10886
  }
10887
10887
 
10888
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/sql/sql.js
10888
+ // ../../node_modules/drizzle-orm/sql/sql.js
10889
10889
  function isSQLWrapper(value) {
10890
10890
  return value !== null && value !== undefined && typeof value.getSQL === "function";
10891
10891
  }
@@ -11245,7 +11245,7 @@ Subquery.prototype.getSQL = function() {
11245
11245
  return new SQL([this]);
11246
11246
  };
11247
11247
 
11248
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/utils.js
11248
+ // ../../node_modules/drizzle-orm/utils.js
11249
11249
  function getColumnNameAndConfig(a, b) {
11250
11250
  return {
11251
11251
  name: typeof a === "string" && a.length > 0 ? a : "",
@@ -11254,7 +11254,7 @@ function getColumnNameAndConfig(a, b) {
11254
11254
  }
11255
11255
  var textDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder;
11256
11256
 
11257
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/relations.js
11257
+ // ../../node_modules/drizzle-orm/relations.js
11258
11258
  class Relations {
11259
11259
  constructor(table, config) {
11260
11260
  this.table = table;
@@ -11269,7 +11269,7 @@ function relations(table, relations2) {
11269
11269
  ])));
11270
11270
  }
11271
11271
 
11272
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/sqlite-core/foreign-keys.js
11272
+ // ../../node_modules/drizzle-orm/sqlite-core/foreign-keys.js
11273
11273
  class ForeignKeyBuilder {
11274
11274
  static [entityKind] = "SQLiteForeignKeyBuilder";
11275
11275
  reference;
@@ -11323,7 +11323,7 @@ class ForeignKey {
11323
11323
  }
11324
11324
  }
11325
11325
 
11326
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/sqlite-core/unique-constraint.js
11326
+ // ../../node_modules/drizzle-orm/sqlite-core/unique-constraint.js
11327
11327
  function uniqueKeyName2(table, columns) {
11328
11328
  return `${table[TableName]}_${columns.join("_")}_unique`;
11329
11329
  }
@@ -11368,7 +11368,7 @@ class UniqueConstraint {
11368
11368
  }
11369
11369
  }
11370
11370
 
11371
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/sqlite-core/columns/common.js
11371
+ // ../../node_modules/drizzle-orm/sqlite-core/columns/common.js
11372
11372
  class SQLiteColumnBuilder extends ColumnBuilder {
11373
11373
  static [entityKind] = "SQLiteColumnBuilder";
11374
11374
  foreignKeyConfigs = [];
@@ -11419,7 +11419,7 @@ class SQLiteColumn extends Column {
11419
11419
  static [entityKind] = "SQLiteColumn";
11420
11420
  }
11421
11421
 
11422
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/sqlite-core/columns/blob.js
11422
+ // ../../node_modules/drizzle-orm/sqlite-core/columns/blob.js
11423
11423
  class SQLiteBigIntBuilder extends SQLiteColumnBuilder {
11424
11424
  static [entityKind] = "SQLiteBigIntBuilder";
11425
11425
  constructor(name) {
@@ -11507,7 +11507,7 @@ function blob(a, b) {
11507
11507
  return new SQLiteBlobBufferBuilder(name);
11508
11508
  }
11509
11509
 
11510
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/sqlite-core/columns/custom.js
11510
+ // ../../node_modules/drizzle-orm/sqlite-core/columns/custom.js
11511
11511
  class SQLiteCustomColumnBuilder extends SQLiteColumnBuilder {
11512
11512
  static [entityKind] = "SQLiteCustomColumnBuilder";
11513
11513
  constructor(name, fieldConfig, customTypeParams) {
@@ -11548,7 +11548,7 @@ function customType(customTypeParams) {
11548
11548
  };
11549
11549
  }
11550
11550
 
11551
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/sqlite-core/columns/integer.js
11551
+ // ../../node_modules/drizzle-orm/sqlite-core/columns/integer.js
11552
11552
  class SQLiteBaseIntegerBuilder extends SQLiteColumnBuilder {
11553
11553
  static [entityKind] = "SQLiteBaseIntegerBuilder";
11554
11554
  constructor(name, dataType, columnType) {
@@ -11651,7 +11651,7 @@ function integer(a, b) {
11651
11651
  }
11652
11652
  var int = integer;
11653
11653
 
11654
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/sqlite-core/columns/numeric.js
11654
+ // ../../node_modules/drizzle-orm/sqlite-core/columns/numeric.js
11655
11655
  class SQLiteNumericBuilder extends SQLiteColumnBuilder {
11656
11656
  static [entityKind] = "SQLiteNumericBuilder";
11657
11657
  constructor(name) {
@@ -11721,7 +11721,7 @@ function numeric(a, b) {
11721
11721
  return mode === "number" ? new SQLiteNumericNumberBuilder(name) : mode === "bigint" ? new SQLiteNumericBigIntBuilder(name) : new SQLiteNumericBuilder(name);
11722
11722
  }
11723
11723
 
11724
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/sqlite-core/columns/real.js
11724
+ // ../../node_modules/drizzle-orm/sqlite-core/columns/real.js
11725
11725
  class SQLiteRealBuilder extends SQLiteColumnBuilder {
11726
11726
  static [entityKind] = "SQLiteRealBuilder";
11727
11727
  constructor(name) {
@@ -11742,7 +11742,7 @@ function real(name) {
11742
11742
  return new SQLiteRealBuilder(name ?? "");
11743
11743
  }
11744
11744
 
11745
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/sqlite-core/columns/text.js
11745
+ // ../../node_modules/drizzle-orm/sqlite-core/columns/text.js
11746
11746
  class SQLiteTextBuilder extends SQLiteColumnBuilder {
11747
11747
  static [entityKind] = "SQLiteTextBuilder";
11748
11748
  constructor(name, config) {
@@ -11797,7 +11797,7 @@ function text(a, b = {}) {
11797
11797
  return new SQLiteTextBuilder(name, config);
11798
11798
  }
11799
11799
 
11800
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/sqlite-core/columns/all.js
11800
+ // ../../node_modules/drizzle-orm/sqlite-core/columns/all.js
11801
11801
  function getSQLiteColumnBuilders() {
11802
11802
  return {
11803
11803
  blob,
@@ -11809,7 +11809,7 @@ function getSQLiteColumnBuilders() {
11809
11809
  };
11810
11810
  }
11811
11811
 
11812
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/sqlite-core/table.js
11812
+ // ../../node_modules/drizzle-orm/sqlite-core/table.js
11813
11813
  var InlineForeignKeys = Symbol.for("drizzle:SQLiteInlineForeignKeys");
11814
11814
 
11815
11815
  class SQLiteTable extends Table {
@@ -11843,7 +11843,7 @@ var sqliteTable = (name, columns, extraConfig) => {
11843
11843
  return sqliteTableBase(name, columns, extraConfig);
11844
11844
  };
11845
11845
 
11846
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/sqlite-core/indexes.js
11846
+ // ../../node_modules/drizzle-orm/sqlite-core/indexes.js
11847
11847
  class IndexBuilderOn {
11848
11848
  constructor(name, unique2) {
11849
11849
  this.name = name;
@@ -11886,7 +11886,7 @@ function index(name) {
11886
11886
  return new IndexBuilderOn(name, false);
11887
11887
  }
11888
11888
 
11889
- // ../../node_modules/.bun/drizzle-orm@0.44.7+02e1b8e76bf21939/node_modules/drizzle-orm/sqlite-core/primary-keys.js
11889
+ // ../../node_modules/drizzle-orm/sqlite-core/primary-keys.js
11890
11890
  function primaryKey(...config) {
11891
11891
  if (config[0].columns) {
11892
11892
  return new PrimaryKeyBuilder(config[0].columns, config[0].name);
@@ -11921,7 +11921,7 @@ class PrimaryKey {
11921
11921
  }
11922
11922
  }
11923
11923
 
11924
- // ../api/dist/chunk-TEOIDOOX.js
11924
+ // ../api/dist/chunk-DIX4XVUQ.js
11925
11925
  var timestamps = () => ({
11926
11926
  created_at: text("created_at").notNull().default(sql`(CURRENT_TIMESTAMP)`),
11927
11927
  updated_at: text("updated_at").notNull().default(sql`(CURRENT_TIMESTAMP)`)
@@ -12106,16 +12106,12 @@ var tag = sqliteTable("tag", {
12106
12106
  title: text("title").notNull(),
12107
12107
  color: text("color"),
12108
12108
  render: int("render", { mode: "boolean" }).notNull().default(true)
12109
- }, (table) => ({
12110
- tag_unique: unique("tag_unique").on(table.owner_id, table.title)
12111
- }));
12109
+ }, (table) => [unique("tag_unique").on(table.owner_id, table.title)]);
12112
12110
  var task_tag = sqliteTable("task_tag", {
12113
12111
  task_id: text("task_id").notNull().references(() => task.id),
12114
12112
  tag_id: text("tag_id").notNull().references(() => tag.id),
12115
12113
  ...timestamps()
12116
- }, (table) => ({
12117
- task_tag_unique: primaryKey({ columns: [table.task_id, table.tag_id] })
12118
- }));
12114
+ }, (table) => [primaryKey({ columns: [table.task_id, table.tag_id] })]);
12119
12115
  var commit_detail = sqliteTable("commit_detail", {
12120
12116
  sha: text("sha").primaryKey(),
12121
12117
  message: text("message").notNull(),
@@ -12311,11 +12307,26 @@ var upsert_project = exports_external.object({
12311
12307
  repo_url: exports_external.string().nullable(),
12312
12308
  repo_id: exports_external.number().nullable(),
12313
12309
  icon_url: exports_external.string().nullable(),
12314
- status: exports_external.union([exports_external.literal("DEVELOPMENT"), exports_external.literal("PAUSED"), exports_external.literal("RELEASED"), exports_external.literal("LIVE"), exports_external.literal("FINISHED"), exports_external.literal("ABANDONED"), exports_external.literal("STOPPED")]).optional(),
12310
+ status: exports_external.union([
12311
+ exports_external.literal("DEVELOPMENT"),
12312
+ exports_external.literal("PAUSED"),
12313
+ exports_external.literal("RELEASED"),
12314
+ exports_external.literal("LIVE"),
12315
+ exports_external.literal("FINISHED"),
12316
+ exports_external.literal("ABANDONED"),
12317
+ exports_external.literal("STOPPED")
12318
+ ]).optional(),
12315
12319
  deleted: exports_external.boolean().optional().default(false),
12316
12320
  link_url: exports_external.string().nullable(),
12317
12321
  link_text: exports_external.string().nullable(),
12318
- visibility: exports_external.union([exports_external.literal("PUBLIC"), exports_external.literal("PRIVATE"), exports_external.literal("HIDDEN"), exports_external.literal("ARCHIVED"), exports_external.literal("DRAFT"), exports_external.literal("DELETED")]).optional(),
12322
+ visibility: exports_external.union([
12323
+ exports_external.literal("PUBLIC"),
12324
+ exports_external.literal("PRIVATE"),
12325
+ exports_external.literal("HIDDEN"),
12326
+ exports_external.literal("ARCHIVED"),
12327
+ exports_external.literal("DRAFT"),
12328
+ exports_external.literal("DELETED")
12329
+ ]).optional(),
12319
12330
  current_version: exports_external.string().nullable(),
12320
12331
  force: exports_external.boolean().optional().describe("Override protection on user-modified entities")
12321
12332
  });
@@ -12325,7 +12336,14 @@ var upsert_todo = exports_external.object({
12325
12336
  summary: exports_external.string().optional().nullable(),
12326
12337
  description: exports_external.string().optional().nullable(),
12327
12338
  progress: exports_external.union([exports_external.literal("UNSTARTED"), exports_external.literal("IN_PROGRESS"), exports_external.literal("COMPLETED")]).optional(),
12328
- visibility: exports_external.union([exports_external.literal("PUBLIC"), exports_external.literal("PRIVATE"), exports_external.literal("HIDDEN"), exports_external.literal("ARCHIVED"), exports_external.literal("DRAFT"), exports_external.literal("DELETED")]).optional(),
12339
+ visibility: exports_external.union([
12340
+ exports_external.literal("PUBLIC"),
12341
+ exports_external.literal("PRIVATE"),
12342
+ exports_external.literal("HIDDEN"),
12343
+ exports_external.literal("ARCHIVED"),
12344
+ exports_external.literal("DRAFT"),
12345
+ exports_external.literal("DELETED")
12346
+ ]).optional(),
12329
12347
  start_time: exports_external.string().optional().nullable(),
12330
12348
  end_time: exports_external.string().optional().nullable(),
12331
12349
  priority: exports_external.union([exports_external.literal("LOW"), exports_external.literal("MEDIUM"), exports_external.literal("HIGH")]).optional(),
@@ -12334,11 +12352,30 @@ var upsert_todo = exports_external.object({
12334
12352
  goal_id: exports_external.string().optional().nullable(),
12335
12353
  force: exports_external.boolean().optional().describe("Override protection on user-modified entities")
12336
12354
  });
12337
- var update_action = exports_external.union([exports_external.literal("CONFIRM"), exports_external.literal("UNLINK"), exports_external.literal("CREATE"), exports_external.literal("IGNORE"), exports_external.literal("DELETE"), exports_external.literal("COMPLETE")]);
12355
+ var update_action = exports_external.union([
12356
+ exports_external.literal("CONFIRM"),
12357
+ exports_external.literal("UNLINK"),
12358
+ exports_external.literal("CREATE"),
12359
+ exports_external.literal("IGNORE"),
12360
+ exports_external.literal("DELETE"),
12361
+ exports_external.literal("COMPLETE")
12362
+ ]);
12338
12363
  var upsert_tag = exports_external.object({
12339
12364
  id: exports_external.string().optional(),
12340
12365
  title: exports_external.string(),
12341
- color: exports_external.union([exports_external.literal("red"), exports_external.literal("green"), exports_external.literal("blue"), exports_external.literal("yellow"), exports_external.literal("purple"), exports_external.literal("orange"), exports_external.literal("teal"), exports_external.literal("pink"), exports_external.literal("gray"), exports_external.literal("cyan"), exports_external.literal("lime")]).nullable().optional(),
12366
+ color: exports_external.union([
12367
+ exports_external.literal("red"),
12368
+ exports_external.literal("green"),
12369
+ exports_external.literal("blue"),
12370
+ exports_external.literal("yellow"),
12371
+ exports_external.literal("purple"),
12372
+ exports_external.literal("orange"),
12373
+ exports_external.literal("teal"),
12374
+ exports_external.literal("pink"),
12375
+ exports_external.literal("gray"),
12376
+ exports_external.literal("cyan"),
12377
+ exports_external.literal("lime")
12378
+ ]).nullable().optional(),
12342
12379
  deleted: exports_external.boolean().optional().default(false),
12343
12380
  render: exports_external.boolean().optional().default(true),
12344
12381
  owner_id: exports_external.string()
@@ -12540,11 +12577,24 @@ var dashboard_response = exports_external.object({
12540
12577
  rollback_rate: exports_external.number().min(0).max(1).nullable()
12541
12578
  });
12542
12579
 
12543
- // ../../node_modules/.bun/@f0rbit+corpus@0.6.0+cdb71084ede92ac1/node_modules/@f0rbit/corpus/dist/types.js
12580
+ // ../../node_modules/@f0rbit/corpus/dist/types.js
12544
12581
  var ok = (value) => ({ ok: true, value });
12545
12582
  var err = (error) => ({ ok: false, error });
12583
+ function define_store(id2, codec, opts) {
12584
+ if (typeof opts === "string") {
12585
+ return { id: id2, codec, description: opts };
12586
+ }
12587
+ return { id: id2, codec, description: opts?.description, data_key_fn: opts?.data_key_fn };
12588
+ }
12546
12589
 
12547
- // ../../node_modules/.bun/@f0rbit+corpus@0.6.0+cdb71084ede92ac1/node_modules/@f0rbit/corpus/dist/utils.js
12590
+ // ../../node_modules/@f0rbit/corpus/dist/utils.js
12591
+ function json_codec(schema) {
12592
+ return {
12593
+ content_type: "application/json",
12594
+ encode: async (value) => new TextEncoder().encode(JSON.stringify(value)),
12595
+ decode: async (bytes) => schema.parse(JSON.parse(new TextDecoder().decode(bytes)))
12596
+ };
12597
+ }
12548
12598
  function create_filter_pipeline(config) {
12549
12599
  return (items, opts) => {
12550
12600
  let filtered = items;
@@ -12570,7 +12620,7 @@ var snapshot_filter_pipeline = create_filter_pipeline({
12570
12620
  sort: (a, b) => b.created_at.getTime() - a.created_at.getTime()
12571
12621
  });
12572
12622
 
12573
- // ../../node_modules/.bun/@f0rbit+corpus@0.6.0+cdb71084ede92ac1/node_modules/@f0rbit/corpus/dist/result.js
12623
+ // ../../node_modules/@f0rbit/corpus/dist/result.js
12574
12624
  var try_catch_async = async (fn, on_error) => {
12575
12625
  try {
12576
12626
  return ok(await fn());
@@ -12629,7 +12679,7 @@ pipe.err = (error) => pipe(err(error));
12629
12679
  pipe.try = (fn, on_error) => pipe(try_catch_async(fn, on_error));
12630
12680
  pipe.fetch = (input, init, on_error, parse_body) => pipe(fetch_result(input, init, on_error, parse_body));
12631
12681
 
12632
- // ../../node_modules/.bun/@f0rbit+corpus@0.6.0+cdb71084ede92ac1/node_modules/@f0rbit/corpus/dist/observations/storage.js
12682
+ // ../../node_modules/@f0rbit/corpus/dist/observations/storage.js
12633
12683
  var observation_filter_pipeline = create_filter_pipeline({
12634
12684
  filters: [
12635
12685
  {
@@ -12649,7 +12699,7 @@ var observation_filter_pipeline = create_filter_pipeline({
12649
12699
  ],
12650
12700
  sort: (a, b) => b.created_at.localeCompare(a.created_at)
12651
12701
  });
12652
- // ../../node_modules/.bun/@f0rbit+corpus@0.6.0+cdb71084ede92ac1/node_modules/@f0rbit/corpus/dist/observations/schema.js
12702
+ // ../../node_modules/@f0rbit/corpus/dist/observations/schema.js
12653
12703
  var corpus_observations = sqliteTable("corpus_observations", {
12654
12704
  id: text("id").primaryKey(),
12655
12705
  type: text("type").notNull(),
@@ -12669,7 +12719,7 @@ var corpus_observations = sqliteTable("corpus_observations", {
12669
12719
  type_observed_idx: index("idx_obs_type_observed").on(table.type, table.observed_at),
12670
12720
  type_source_idx: index("idx_obs_type_source").on(table.type, table.source_store_id)
12671
12721
  }));
12672
- // ../../node_modules/.bun/@f0rbit+corpus@0.6.0+cdb71084ede92ac1/node_modules/@f0rbit/corpus/dist/backend/memory.js
12722
+ // ../../node_modules/@f0rbit/corpus/dist/backend/memory.js
12673
12723
  var CORPUS_DEV = (() => {
12674
12724
  try {
12675
12725
  return typeof process !== "undefined" && process.env?.CORPUS_DEV === "1";
@@ -12677,7 +12727,7 @@ var CORPUS_DEV = (() => {
12677
12727
  return false;
12678
12728
  }
12679
12729
  })();
12680
- // ../../node_modules/.bun/@f0rbit+corpus@0.6.0+cdb71084ede92ac1/node_modules/@f0rbit/corpus/dist/schema.js
12730
+ // ../../node_modules/@f0rbit/corpus/dist/schema.js
12681
12731
  var corpus_snapshots = sqliteTable("corpus_snapshots", {
12682
12732
  store_id: text("store_id").notNull(),
12683
12733
  version: text("version").notNull(),
@@ -12695,7 +12745,7 @@ var corpus_snapshots = sqliteTable("corpus_snapshots", {
12695
12745
  hash_idx: index("idx_content_hash").on(table.store_id, table.content_hash),
12696
12746
  data_key_idx: index("idx_data_key").on(table.data_key)
12697
12747
  }));
12698
- // ../../node_modules/.bun/@f0rbit+corpus@0.6.0+cdb71084ede92ac1/node_modules/@f0rbit/corpus/dist/version-set.js
12748
+ // ../../node_modules/@f0rbit/corpus/dist/version-set.js
12699
12749
  var VersionSetManifestSchema = exports_external.object({
12700
12750
  package: exports_external.string(),
12701
12751
  git_sha: exports_external.string().length(40),
@@ -12730,6 +12780,193 @@ var VersionSetManifestSchema = exports_external.object({
12730
12780
  grants_ref: exports_external.string().optional(),
12731
12781
  template_ref: exports_external.string().optional()
12732
12782
  });
12783
+ // ../api/dist/chunk-5L3AUVMM.js
12784
+ var PostContentSchema = exports_external.object({
12785
+ title: exports_external.string().min(1),
12786
+ content: exports_external.string(),
12787
+ description: exports_external.string().optional(),
12788
+ format: exports_external.enum(["md", "adoc"])
12789
+ });
12790
+ var postsStoreDefinition = define_store("posts", json_codec(PostContentSchema));
12791
+ var VersionInfoSchema = exports_external.object({
12792
+ hash: exports_external.string(),
12793
+ parent: exports_external.string().nullable(),
12794
+ created_at: exports_external.date()
12795
+ });
12796
+ var parsePostContent = PostContentSchema.parse.bind(PostContentSchema);
12797
+ var PostRowSchema = exports_external.object({
12798
+ id: exports_external.number(),
12799
+ uuid: exports_external.string(),
12800
+ author_id: exports_external.string(),
12801
+ slug: exports_external.string(),
12802
+ corpus_version: exports_external.string().nullable(),
12803
+ category: exports_external.string(),
12804
+ archived: exports_external.boolean(),
12805
+ publish_at: exports_external.coerce.date().nullable(),
12806
+ created_at: exports_external.coerce.date(),
12807
+ updated_at: exports_external.coerce.date()
12808
+ });
12809
+ var PostRowInsertSchema = exports_external.object({
12810
+ id: exports_external.number().optional(),
12811
+ uuid: exports_external.string(),
12812
+ author_id: exports_external.string(),
12813
+ slug: exports_external.string(),
12814
+ corpus_version: exports_external.string().nullable().optional(),
12815
+ category: exports_external.string().optional(),
12816
+ archived: exports_external.boolean().optional(),
12817
+ publish_at: exports_external.coerce.date().nullable().optional(),
12818
+ created_at: exports_external.coerce.date().optional(),
12819
+ updated_at: exports_external.coerce.date().optional()
12820
+ });
12821
+ var CategorySchema = exports_external.object({
12822
+ id: exports_external.number(),
12823
+ owner_id: exports_external.string(),
12824
+ name: exports_external.string(),
12825
+ parent: exports_external.string().nullable()
12826
+ });
12827
+ var CategoryInsertSchema = exports_external.object({
12828
+ id: exports_external.number().optional(),
12829
+ owner_id: exports_external.string(),
12830
+ name: exports_external.string(),
12831
+ parent: exports_external.string().nullable().optional()
12832
+ });
12833
+ var TagSchema = exports_external.object({
12834
+ post_id: exports_external.number(),
12835
+ tag: exports_external.string()
12836
+ });
12837
+ var TagInsertSchema = exports_external.object({
12838
+ post_id: exports_external.number(),
12839
+ tag: exports_external.string()
12840
+ });
12841
+ var AccessKeyRowSchema = exports_external.object({
12842
+ id: exports_external.number(),
12843
+ user_id: exports_external.string(),
12844
+ key_hash: exports_external.string(),
12845
+ name: exports_external.string(),
12846
+ note: exports_external.string().nullable(),
12847
+ enabled: exports_external.boolean(),
12848
+ created_at: exports_external.coerce.date()
12849
+ });
12850
+ var AccessKeySchema = AccessKeyRowSchema.omit({ key_hash: true });
12851
+ var AccessKeyInsertSchema = exports_external.object({
12852
+ id: exports_external.number().optional(),
12853
+ user_id: exports_external.string(),
12854
+ key_hash: exports_external.string(),
12855
+ name: exports_external.string(),
12856
+ note: exports_external.string().nullable().optional(),
12857
+ enabled: exports_external.boolean().optional(),
12858
+ created_at: exports_external.coerce.date().optional()
12859
+ });
12860
+ var IntegrationSchema = exports_external.object({
12861
+ id: exports_external.number(),
12862
+ user_id: exports_external.string(),
12863
+ source: exports_external.string(),
12864
+ location: exports_external.string(),
12865
+ data: exports_external.record(exports_external.unknown()).nullable(),
12866
+ last_fetch: exports_external.coerce.date().nullable(),
12867
+ status: exports_external.string().nullable(),
12868
+ created_at: exports_external.coerce.date()
12869
+ });
12870
+ var IntegrationInsertSchema = exports_external.object({
12871
+ id: exports_external.number().optional(),
12872
+ user_id: exports_external.string(),
12873
+ source: exports_external.string(),
12874
+ location: exports_external.string(),
12875
+ data: exports_external.record(exports_external.unknown()).nullable().optional(),
12876
+ last_fetch: exports_external.coerce.date().nullable().optional(),
12877
+ status: exports_external.string().nullable().optional(),
12878
+ created_at: exports_external.coerce.date().optional()
12879
+ });
12880
+ var FetchLinkSchema = exports_external.object({
12881
+ id: exports_external.number(),
12882
+ post_id: exports_external.number(),
12883
+ integration_id: exports_external.number(),
12884
+ identifier: exports_external.string()
12885
+ });
12886
+ var FetchLinkInsertSchema = exports_external.object({
12887
+ id: exports_external.number().optional(),
12888
+ post_id: exports_external.number(),
12889
+ integration_id: exports_external.number(),
12890
+ identifier: exports_external.string()
12891
+ });
12892
+ var PostSchema = exports_external.object({
12893
+ id: exports_external.number(),
12894
+ uuid: exports_external.string().uuid(),
12895
+ author_id: exports_external.string(),
12896
+ slug: exports_external.string(),
12897
+ title: exports_external.string(),
12898
+ content: exports_external.string(),
12899
+ description: exports_external.string().optional(),
12900
+ format: exports_external.enum(["md", "adoc"]),
12901
+ category: exports_external.string(),
12902
+ tags: exports_external.array(exports_external.string()),
12903
+ archived: exports_external.boolean(),
12904
+ publish_at: exports_external.coerce.date().nullable(),
12905
+ created_at: exports_external.coerce.date(),
12906
+ updated_at: exports_external.coerce.date(),
12907
+ project_ids: exports_external.array(exports_external.string()),
12908
+ corpus_version: exports_external.string().nullable()
12909
+ });
12910
+ var SlugPattern = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
12911
+ var PostCreateSchema = exports_external.object({
12912
+ slug: exports_external.string().regex(SlugPattern, "Slug must be lowercase alphanumeric with hyphens"),
12913
+ title: exports_external.string().min(1),
12914
+ content: exports_external.string(),
12915
+ description: exports_external.string().optional(),
12916
+ format: exports_external.enum(["md", "adoc"]).default("md"),
12917
+ category: exports_external.string().default("root"),
12918
+ tags: exports_external.array(exports_external.string()).default([]),
12919
+ publish_at: exports_external.coerce.date().nullable().optional(),
12920
+ project_ids: exports_external.array(exports_external.string()).optional()
12921
+ });
12922
+ var PostUpdateSchema = exports_external.object({
12923
+ slug: exports_external.string().regex(SlugPattern, "Slug must be lowercase alphanumeric with hyphens").optional(),
12924
+ title: exports_external.string().min(1).optional(),
12925
+ content: exports_external.string().optional(),
12926
+ description: exports_external.string().optional(),
12927
+ format: exports_external.enum(["md", "adoc"]).optional(),
12928
+ category: exports_external.string().optional(),
12929
+ tags: exports_external.array(exports_external.string()).optional(),
12930
+ archived: exports_external.boolean().optional(),
12931
+ publish_at: exports_external.coerce.date().nullable().optional(),
12932
+ project_ids: exports_external.array(exports_external.string()).optional()
12933
+ });
12934
+ var PostListParamsSchema = exports_external.object({
12935
+ category: exports_external.string().optional(),
12936
+ tag: exports_external.string().optional(),
12937
+ project: exports_external.string().optional(),
12938
+ status: exports_external.enum(["published", "scheduled", "draft", "all"]).default("all"),
12939
+ archived: exports_external.boolean().default(false),
12940
+ limit: exports_external.coerce.number().min(1).max(100).default(10),
12941
+ offset: exports_external.coerce.number().min(0).default(0),
12942
+ sort: exports_external.enum(["created", "updated", "published"]).default("updated")
12943
+ });
12944
+ var PostsResponseSchema = exports_external.object({
12945
+ posts: exports_external.array(PostSchema),
12946
+ total_posts: exports_external.number(),
12947
+ total_pages: exports_external.number(),
12948
+ per_page: exports_external.number(),
12949
+ current_page: exports_external.number()
12950
+ });
12951
+ var CategoryCreateSchema = exports_external.object({
12952
+ name: exports_external.string().min(1),
12953
+ parent: exports_external.string().default("root")
12954
+ });
12955
+ var AccessKeyCreateSchema = exports_external.object({
12956
+ name: exports_external.string().min(1),
12957
+ note: exports_external.string().optional()
12958
+ });
12959
+ var AccessKeyUpdateSchema = exports_external.object({
12960
+ name: exports_external.string().min(1).optional(),
12961
+ note: exports_external.string().optional(),
12962
+ enabled: exports_external.boolean().optional()
12963
+ });
12964
+ var IntegrationUpsertSchema = exports_external.object({
12965
+ source: exports_external.string().min(1),
12966
+ location: exports_external.string().min(1),
12967
+ data: exports_external.record(exports_external.unknown()).optional()
12968
+ });
12969
+
12733
12970
  // ../api/dist/index.js
12734
12971
  var ApiError = class _ApiError extends Error {
12735
12972
  constructor(message, options = {}) {
@@ -12791,7 +13028,7 @@ async function handleResponseError(response) {
12791
13028
  parsedError = JSON.parse(errorText);
12792
13029
  } catch {}
12793
13030
  if (response.status === HTTP_STATUS.BAD_REQUEST && parsedError?.error?.name === "ZodError") {
12794
- const zodErrorDetails = parsedError.error?.issues ? JSON.stringify(parsedError.error) : errorMessage;
13031
+ const zodErrorDetails = parsedError.error.issues ? JSON.stringify(parsedError.error) : errorMessage;
12795
13032
  throw new ValidationError(zodErrorDetails);
12796
13033
  }
12797
13034
  throw new ApiError(errorMessage, { statusCode: response.status });
@@ -12801,43 +13038,43 @@ function handleNetworkError(error) {
12801
13038
  throw new NetworkError(message);
12802
13039
  }
12803
13040
  var ArrayBufferedQueue = class {
12804
- constructor(_capacity) {
12805
- this._capacity = _capacity;
12806
- this._entries = [];
12807
- this._head = 0;
12808
- this._tail = 0;
12809
- this._size = 0;
13041
+ constructor(capacity) {
13042
+ this.capacity = capacity;
13043
+ this.entries = [];
13044
+ this.head = 0;
13045
+ this.tail = 0;
13046
+ this.count = 0;
12810
13047
  }
12811
13048
  latest() {
12812
- if (this._size === 0)
13049
+ if (this.count === 0)
12813
13050
  return null;
12814
- return this._entries[this._tail - 1] ?? null;
13051
+ return this.entries[this.tail - 1] ?? null;
12815
13052
  }
12816
13053
  list() {
12817
- if (this._size === 0)
13054
+ if (this.count === 0)
12818
13055
  return [];
12819
- if (this._head < this._tail) {
12820
- return this._entries.slice(this._head, this._tail);
13056
+ if (this.head < this.tail) {
13057
+ return this.entries.slice(this.head, this.tail);
12821
13058
  }
12822
- return this._entries.slice(this._head).concat(this._entries.slice(0, this._tail));
13059
+ return this.entries.slice(this.head).concat(this.entries.slice(0, this.tail));
12823
13060
  }
12824
13061
  add(item) {
12825
- if (this._size === this._capacity) {
12826
- this._head = (this._head + 1) % this._capacity;
13062
+ if (this.count === this.capacity) {
13063
+ this.head = (this.head + 1) % this.capacity;
12827
13064
  } else {
12828
- this._size++;
13065
+ this.count++;
12829
13066
  }
12830
- this._entries[this._tail] = item;
12831
- this._tail = (this._tail + 1) % this._capacity;
13067
+ this.entries[this.tail] = item;
13068
+ this.tail = (this.tail + 1) % this.capacity;
12832
13069
  }
12833
13070
  size() {
12834
- return this._size;
13071
+ return this.count;
12835
13072
  }
12836
13073
  clear() {
12837
- this._entries = [];
12838
- this._head = 0;
12839
- this._tail = 0;
12840
- this._size = 0;
13074
+ this.entries = [];
13075
+ this.head = 0;
13076
+ this.tail = 0;
13077
+ this.count = 0;
12841
13078
  }
12842
13079
  };
12843
13080
  var ApiClient = class {
@@ -12870,7 +13107,7 @@ var ApiClient = class {
12870
13107
  return url.toString();
12871
13108
  }
12872
13109
  generateRequestId() {
12873
- return `${Date.now()}-${Math.random().toString(36).substring(2, 11)}`;
13110
+ return `${String(Date.now())}-${Math.random().toString(36).substring(2, 11)}`;
12874
13111
  }
12875
13112
  async request(path, options = {}) {
12876
13113
  const { method = "GET", headers = {}, body, query } = options;
@@ -12921,7 +13158,7 @@ var ApiClient = class {
12921
13158
  if (this.debug) {
12922
13159
  console.log(`[ERROR][${this.category}] ${method} ${path} [${requestId}] failed`, {
12923
13160
  status: response.status,
12924
- duration: `${duration}ms`,
13161
+ duration: `${String(duration)}ms`,
12925
13162
  body,
12926
13163
  query
12927
13164
  });
@@ -12947,7 +13184,7 @@ var ApiClient = class {
12947
13184
  } else {
12948
13185
  try {
12949
13186
  result = JSON.parse(text2);
12950
- } catch (parseError) {
13187
+ } catch {
12951
13188
  result = text2;
12952
13189
  }
12953
13190
  }
@@ -12955,7 +13192,7 @@ var ApiClient = class {
12955
13192
  if (this.debug) {
12956
13193
  console.log(`[INFO][${this.category}] ${method} ${path} [${requestId}] completed`, {
12957
13194
  status: response.status,
12958
- duration: `${duration}ms`
13195
+ duration: `${String(duration)}ms`
12959
13196
  });
12960
13197
  }
12961
13198
  return result;
@@ -12964,7 +13201,7 @@ var ApiClient = class {
12964
13201
  if (this.debug) {
12965
13202
  console.log(`[ERROR][${this.category}] ${method} ${path} [${requestId}] failed`, {
12966
13203
  url,
12967
- duration: `${duration}ms`,
13204
+ duration: `${String(duration)}ms`,
12968
13205
  error: error instanceof Error ? error.message : String(error),
12969
13206
  body,
12970
13207
  query
@@ -13017,11 +13254,23 @@ var ApiClient = class {
13017
13254
  return headers;
13018
13255
  }
13019
13256
  };
13257
+ var string_field = (value, key) => {
13258
+ if (typeof value !== "object" || value === null || !(key in value))
13259
+ return;
13260
+ const field = value[key];
13261
+ return typeof field === "string" ? field : undefined;
13262
+ };
13263
+ var number_field = (value, key) => {
13264
+ if (typeof value !== "object" || value === null || !(key in value))
13265
+ return;
13266
+ const field = value[key];
13267
+ return typeof field === "number" ? field : undefined;
13268
+ };
13020
13269
  function wrap(fn) {
13021
13270
  return fn().then((data) => ok(data)).catch((error) => err({
13022
- message: error.message || "Unknown error",
13023
- code: error.code,
13024
- status_code: error.statusCode || error.status_code
13271
+ message: error instanceof Error ? error.message : "Unknown error",
13272
+ code: string_field(error, "code"),
13273
+ status_code: number_field(error, "statusCode") ?? number_field(error, "status_code")
13025
13274
  }));
13026
13275
  }
13027
13276
  var ApiClient2 = class {
@@ -13132,7 +13381,7 @@ var ApiClient2 = class {
13132
13381
  find: (id2) => wrap(async () => {
13133
13382
  try {
13134
13383
  return await this.clients.milestones.get(`/milestones/${id2}`);
13135
- } catch (error) {
13384
+ } catch {
13136
13385
  return null;
13137
13386
  }
13138
13387
  }),
@@ -13382,7 +13631,9 @@ var ApiClient2 = class {
13382
13631
  };
13383
13632
  this.user = {
13384
13633
  history: () => wrap(() => this.clients.auth.get("/user/history")),
13385
- preferences: (data) => wrap(() => this.clients.auth.patch("/user/preferences", { body: data }))
13634
+ preferences: (data) => wrap(() => this.clients.auth.patch("/user/preferences", {
13635
+ body: data
13636
+ }))
13386
13637
  };
13387
13638
  this.pulse = {
13388
13639
  summary: (input) => wrap(() => this.clients.pulse.get("/summary/:project_id".replace(":project_id", input.project_id), {
@@ -13404,7 +13655,9 @@ var ApiClient2 = class {
13404
13655
  query.limit = String(input.limit);
13405
13656
  if (input.cursor)
13406
13657
  query.cursor = input.cursor;
13407
- return this.clients.pulse.get("/events/:project_id".replace(":project_id", input.project_id), { query });
13658
+ return this.clients.pulse.get("/events/:project_id".replace(":project_id", input.project_id), {
13659
+ query
13660
+ });
13408
13661
  }),
13409
13662
  errors: (input) => wrap(() => {
13410
13663
  const query = {};
@@ -13416,7 +13669,9 @@ var ApiClient2 = class {
13416
13669
  }
13417
13670
  if (input.group_by_fingerprint)
13418
13671
  query.group_by_fingerprint = "true";
13419
- return this.clients.pulse.get("/errors/:project_id".replace(":project_id", input.project_id), { query });
13672
+ return this.clients.pulse.get("/errors/:project_id".replace(":project_id", input.project_id), {
13673
+ query
13674
+ });
13420
13675
  }),
13421
13676
  logs: (input) => wrap(() => {
13422
13677
  const query = {};
@@ -13444,7 +13699,9 @@ var ApiClient2 = class {
13444
13699
  query.route = input.route;
13445
13700
  if (input.percentiles && input.percentiles.length > 0)
13446
13701
  query.percentiles = input.percentiles.join(",");
13447
- return this.clients.pulse.get("/latency/:project_id".replace(":project_id", input.project_id), { query });
13702
+ return this.clients.pulse.get("/latency/:project_id".replace(":project_id", input.project_id), {
13703
+ query
13704
+ });
13448
13705
  }),
13449
13706
  subs: {
13450
13707
  list: (input) => wrap(() => this.clients.pulse.get("/admin/subs", { query: { project_id: input.project_id } })),
@@ -13470,7 +13727,9 @@ var ApiClient2 = class {
13470
13727
  rate_limit_per_min: input.rate_limit_per_min
13471
13728
  }
13472
13729
  })),
13473
- delete: (id2, input) => wrap(() => this.clients.pulse.delete(`/admin/keys/${id2}`, { query: { project_id: input.project_id } }))
13730
+ delete: (id2, input) => wrap(() => this.clients.pulse.delete(`/admin/keys/${id2}`, {
13731
+ query: { project_id: input.project_id }
13732
+ }))
13474
13733
  }
13475
13734
  };
13476
13735
  this.pipelines = {
@@ -13502,7 +13761,9 @@ var ApiClient2 = class {
13502
13761
  cancel: (run_id) => wrap(() => this.clients.pipelines.post(`/runs/${run_id}/cancel`, { body: {} })),
13503
13762
  rollback: (run_id) => wrap(() => this.clients.pipelines.post(`/runs/${run_id}/rollback`, { body: {} })),
13504
13763
  events: {
13505
- ingest: (run_id, input) => wrap(() => this.clients.pipelines.post(`/runs/${run_id}/events`, { body: input })),
13764
+ ingest: (run_id, input) => wrap(() => this.clients.pipelines.post(`/runs/${run_id}/events`, {
13765
+ body: input
13766
+ })),
13506
13767
  list: (run_id) => wrap(() => this.clients.pipelines.get(`/runs/${run_id}/events`))
13507
13768
  },
13508
13769
  grants: {
@@ -13529,28 +13790,36 @@ var ApiClient2 = class {
13529
13790
  delete: (package_id) => wrap(() => this.clients.pipelines.delete(`/packages/${package_id}`))
13530
13791
  },
13531
13792
  analysis_templates: {
13532
- list: (input) => wrap(() => this.clients.pipelines.get("/analysis-templates", { query: { owner_id: input.owner_id } })),
13533
- get: (id2, input) => wrap(() => this.clients.pipelines.get(`/analysis-templates/${id2}`, { query: { owner_id: input.owner_id } })),
13793
+ list: (input) => wrap(() => this.clients.pipelines.get("/analysis-templates", {
13794
+ query: { owner_id: input.owner_id }
13795
+ })),
13796
+ get: (id2, input) => wrap(() => this.clients.pipelines.get(`/analysis-templates/${id2}`, {
13797
+ query: { owner_id: input.owner_id }
13798
+ })),
13534
13799
  create: (input) => wrap(() => this.clients.pipelines.post("/analysis-templates", { body: input })),
13535
13800
  update: (id2, input) => wrap(() => this.clients.pipelines.patch(`/analysis-templates/${id2}`, { body: input })),
13536
- delete: (id2, input) => wrap(() => this.clients.pipelines.delete(`/analysis-templates/${id2}`, { query: { owner_id: input.owner_id } }))
13801
+ delete: (id2, input) => wrap(() => this.clients.pipelines.delete(`/analysis-templates/${id2}`, {
13802
+ query: { owner_id: input.owner_id }
13803
+ }))
13537
13804
  },
13538
13805
  oidc_trust: {
13539
13806
  list: (input) => wrap(() => this.clients.pipelines.get("/oidc-trust", { query: { owner_id: input.owner_id } })),
13540
13807
  get: (id2, input) => wrap(() => this.clients.pipelines.get(`/oidc-trust/${id2}`, { query: { owner_id: input.owner_id } })),
13541
13808
  create: (input) => wrap(() => this.clients.pipelines.post("/oidc-trust", { body: input })),
13542
13809
  update: (id2, input) => wrap(() => this.clients.pipelines.patch(`/oidc-trust/${id2}`, { body: input })),
13543
- delete: (id2, input) => wrap(() => this.clients.pipelines.delete(`/oidc-trust/${id2}`, { query: { owner_id: input.owner_id } }))
13810
+ delete: (id2, input) => wrap(() => this.clients.pipelines.delete(`/oidc-trust/${id2}`, {
13811
+ query: { owner_id: input.owner_id }
13812
+ }))
13544
13813
  }
13545
13814
  };
13546
13815
  const base_url = options.base_url || "http://localhost:4321/api/v1";
13547
- this._api_key = options.api_key ?? "";
13548
- this._auth_mode = options.auth_mode ?? (options.api_key?.startsWith("jwt:") ? "session" : options.api_key ? "key" : "cookie");
13816
+ this.api_key_field = options.api_key ?? "";
13817
+ this.auth_mode_field = options.auth_mode ?? (options.api_key?.startsWith("jwt:") ? "session" : options.api_key ? "key" : "cookie");
13549
13818
  const clientOptions = {
13550
13819
  base_url,
13551
13820
  api_key: options.api_key,
13552
13821
  max_history_size: options.max_history_size,
13553
- auth_mode: this._auth_mode,
13822
+ auth_mode: this.auth_mode_field,
13554
13823
  credentials: options.credentials,
13555
13824
  default_headers: options.default_headers,
13556
13825
  custom_fetch: options.custom_fetch
@@ -13579,12 +13848,55 @@ var ApiClient2 = class {
13579
13848
  return this.clients.projects.history();
13580
13849
  }
13581
13850
  getApiKey() {
13582
- return this._api_key;
13851
+ return this.api_key_field;
13583
13852
  }
13584
13853
  getAuthMode() {
13585
- return this._auth_mode;
13854
+ return this.auth_mode_field;
13586
13855
  }
13587
13856
  };
13857
+ var blog_posts = sqliteTable("blog_posts", {
13858
+ id: integer("id").primaryKey({ autoIncrement: true }),
13859
+ uuid: text("uuid").notNull().unique(),
13860
+ author_id: text("author_id").notNull(),
13861
+ slug: text("slug").notNull(),
13862
+ corpus_version: text("corpus_version"),
13863
+ category: text("category").notNull().default("root"),
13864
+ archived: integer("archived", { mode: "boolean" }).notNull().default(false),
13865
+ publish_at: integer("publish_at", { mode: "timestamp" }),
13866
+ created_at: integer("created_at", { mode: "timestamp" }).notNull().default(sql`(unixepoch())`),
13867
+ updated_at: integer("updated_at", { mode: "timestamp" }).notNull().default(sql`(unixepoch())`)
13868
+ }, (table) => [unique("posts_author_slug_unique").on(table.author_id, table.slug)]);
13869
+ var blog_categories = sqliteTable("blog_categories", {
13870
+ id: integer("id").primaryKey({ autoIncrement: true }),
13871
+ owner_id: text("owner_id").notNull(),
13872
+ name: text("name").notNull(),
13873
+ parent: text("parent").default("root")
13874
+ }, (table) => [unique("categories_owner_name_unique").on(table.owner_id, table.name)]);
13875
+ var blog_tags = sqliteTable("blog_tags", {
13876
+ post_id: integer("post_id").notNull().references(() => blog_posts.id, { onDelete: "cascade" }),
13877
+ tag: text("tag").notNull()
13878
+ }, (table) => [primaryKey({ columns: [table.post_id, table.tag] })]);
13879
+ var blog_integrations = sqliteTable("blog_integrations", {
13880
+ id: integer("id").primaryKey({ autoIncrement: true }),
13881
+ user_id: text("user_id").notNull(),
13882
+ source: text("source").notNull(),
13883
+ location: text("location").notNull(),
13884
+ data: text("data", { mode: "json" }).$type(),
13885
+ last_fetch: integer("last_fetch", { mode: "timestamp" }),
13886
+ status: text("status").default("pending"),
13887
+ created_at: integer("created_at", { mode: "timestamp" }).notNull().default(sql`(unixepoch())`)
13888
+ });
13889
+ var blog_fetch_links = sqliteTable("blog_fetch_links", {
13890
+ id: integer("id").primaryKey({ autoIncrement: true }),
13891
+ post_id: integer("post_id").notNull().references(() => blog_posts.id, { onDelete: "cascade" }),
13892
+ integration_id: integer("integration_id").notNull().references(() => blog_integrations.id, { onDelete: "cascade" }),
13893
+ identifier: text("identifier").notNull()
13894
+ }, (table) => [unique("fetch_links_integration_identifier_unique").on(table.integration_id, table.identifier)]);
13895
+ var blog_post_projects = sqliteTable("blog_post_projects", {
13896
+ post_id: integer("post_id").notNull().references(() => blog_posts.id, { onDelete: "cascade" }),
13897
+ project_id: text("project_id").notNull(),
13898
+ created_at: integer("created_at", { mode: "timestamp" }).notNull().default(sql`(unixepoch())`)
13899
+ }, (table) => [primaryKey({ columns: [table.post_id, table.project_id] })]);
13588
13900
  function unwrap2(result) {
13589
13901
  if (!result.ok)
13590
13902
  throw new Error(result.error?.message ?? "Unknown error");
@@ -13619,26 +13931,33 @@ var github_branches = exports_external.object({
13619
13931
  owner: exports_external.string().describe("Repository owner"),
13620
13932
  repo: exports_external.string().describe("Repository name")
13621
13933
  });
13934
+ var define_tool = (def) => def;
13622
13935
  var tools = {
13623
- devpad_projects_list: {
13936
+ devpad_projects_list: define_tool({
13624
13937
  name: "devpad_projects_list",
13625
13938
  description: "List all projects (or only public ones)",
13626
13939
  inputSchema: project_filters,
13627
13940
  execute: async (client, input) => unwrap2(await client.projects.list(input))
13628
- },
13629
- devpad_projects_get: {
13941
+ }),
13942
+ devpad_projects_get: define_tool({
13630
13943
  name: "devpad_projects_get",
13631
13944
  description: "Get project by ID or name",
13632
13945
  inputSchema: project_by_id_or_name,
13633
- execute: async (client, input) => unwrap2(input.id ? await client.projects.getById(input.id) : await client.projects.getByName(input.name))
13634
- },
13635
- devpad_projects_upsert: {
13946
+ execute: async (client, input) => {
13947
+ if (input.id)
13948
+ return unwrap2(await client.projects.getById(input.id));
13949
+ if (!input.name)
13950
+ throw new Error("either id or name must be provided");
13951
+ return unwrap2(await client.projects.getByName(input.name));
13952
+ }
13953
+ }),
13954
+ devpad_projects_upsert: define_tool({
13636
13955
  name: "devpad_projects_upsert",
13637
13956
  description: "Create or update a project (set deleted=true to delete). Returns 409 if entity is protected by user - pass force=true to override.",
13638
13957
  inputSchema: upsert_project,
13639
13958
  execute: async (client, input) => unwrap2(await client.projects.upsert(input))
13640
- },
13641
- devpad_projects_config_save: {
13959
+ }),
13960
+ devpad_projects_config_save: define_tool({
13642
13961
  name: "devpad_projects_config_save",
13643
13962
  description: "Save project configuration",
13644
13963
  inputSchema: save_config_request,
@@ -13646,26 +13965,26 @@ var tools = {
13646
13965
  unwrap2(await client.projects.config.save(input));
13647
13966
  return { success: true };
13648
13967
  }
13649
- },
13650
- devpad_tasks_list: {
13968
+ }),
13969
+ devpad_tasks_list: define_tool({
13651
13970
  name: "devpad_tasks_list",
13652
13971
  description: "List tasks, optionally filtered by project or tag",
13653
13972
  inputSchema: task_filters,
13654
13973
  execute: async (client, input) => unwrap2(await client.tasks.list(input))
13655
- },
13656
- devpad_tasks_get: {
13974
+ }),
13975
+ devpad_tasks_get: define_tool({
13657
13976
  name: "devpad_tasks_get",
13658
13977
  description: "Get task by ID",
13659
13978
  inputSchema: task_by_id,
13660
13979
  execute: async (client, input) => unwrap2(await client.tasks.find(input.id))
13661
- },
13662
- devpad_tasks_upsert: {
13980
+ }),
13981
+ devpad_tasks_upsert: define_tool({
13663
13982
  name: "devpad_tasks_upsert",
13664
13983
  description: "Create or update a task (set deleted=true to delete). Returns 409 if entity is protected by user - pass force=true to override.",
13665
13984
  inputSchema: upsert_todo,
13666
13985
  execute: async (client, input) => unwrap2(await client.tasks.upsert(input))
13667
- },
13668
- devpad_tasks_save_tags: {
13986
+ }),
13987
+ devpad_tasks_save_tags: define_tool({
13669
13988
  name: "devpad_tasks_save_tags",
13670
13989
  description: "Save tags for tasks",
13671
13990
  inputSchema: save_tags_request,
@@ -13673,20 +13992,20 @@ var tools = {
13673
13992
  unwrap2(await client.tasks.saveTags(input));
13674
13993
  return { success: true };
13675
13994
  }
13676
- },
13677
- devpad_milestones_list: {
13995
+ }),
13996
+ devpad_milestones_list: define_tool({
13678
13997
  name: "devpad_milestones_list",
13679
13998
  description: "List milestones for authenticated user or by project",
13680
13999
  inputSchema: milestone_filters,
13681
14000
  execute: async (client, input) => unwrap2(input.project_id ? await client.milestones.getByProject(input.project_id) : await client.milestones.list())
13682
- },
13683
- devpad_milestones_get: {
14001
+ }),
14002
+ devpad_milestones_get: define_tool({
13684
14003
  name: "devpad_milestones_get",
13685
14004
  description: "Get milestone by ID",
13686
14005
  inputSchema: milestone_by_id,
13687
14006
  execute: async (client, input) => unwrap2(await client.milestones.find(input.id))
13688
- },
13689
- devpad_milestones_upsert: {
14007
+ }),
14008
+ devpad_milestones_upsert: define_tool({
13690
14009
  name: "devpad_milestones_upsert",
13691
14010
  description: "Create or update a milestone. Returns 409 if entity is protected by user - pass force=true to override.",
13692
14011
  inputSchema: upsert_milestone,
@@ -13704,20 +14023,20 @@ var tools = {
13704
14023
  target_version: input.target_version,
13705
14024
  finished_at: input.finished_at
13706
14025
  }))
13707
- },
13708
- devpad_goals_list: {
14026
+ }),
14027
+ devpad_goals_list: define_tool({
13709
14028
  name: "devpad_goals_list",
13710
14029
  description: "List goals for authenticated user",
13711
14030
  inputSchema: exports_external.object({}),
13712
14031
  execute: async (client) => unwrap2(await client.goals.list())
13713
- },
13714
- devpad_goals_get: {
14032
+ }),
14033
+ devpad_goals_get: define_tool({
13715
14034
  name: "devpad_goals_get",
13716
14035
  description: "Get goal by ID",
13717
14036
  inputSchema: goal_by_id,
13718
14037
  execute: async (client, input) => unwrap2(await client.goals.find(input.id))
13719
- },
13720
- devpad_goals_upsert: {
14038
+ }),
14039
+ devpad_goals_upsert: define_tool({
13721
14040
  name: "devpad_goals_upsert",
13722
14041
  description: "Create or update a goal. Returns 409 if entity is protected by user - pass force=true to override.",
13723
14042
  inputSchema: upsert_goal,
@@ -13733,26 +14052,26 @@ var tools = {
13733
14052
  target_time: input.target_time,
13734
14053
  finished_at: input.finished_at
13735
14054
  }))
13736
- },
13737
- devpad_tags_list: {
14055
+ }),
14056
+ devpad_tags_list: define_tool({
13738
14057
  name: "devpad_tags_list",
13739
14058
  description: "List tags for authenticated user",
13740
14059
  inputSchema: exports_external.object({}),
13741
14060
  execute: async (client) => unwrap2(await client.tags.list())
13742
- },
13743
- devpad_github_repos: {
14061
+ }),
14062
+ devpad_github_repos: define_tool({
13744
14063
  name: "devpad_github_repos",
13745
14064
  description: "List GitHub repositories for authenticated user",
13746
14065
  inputSchema: exports_external.object({}),
13747
14066
  execute: async (client) => unwrap2(await client.github.repos())
13748
- },
13749
- devpad_github_branches: {
14067
+ }),
14068
+ devpad_github_branches: define_tool({
13750
14069
  name: "devpad_github_branches",
13751
14070
  description: "List branches for a GitHub repository",
13752
14071
  inputSchema: github_branches,
13753
14072
  execute: async (client, input) => unwrap2(await client.github.branches(input.owner, input.repo))
13754
- },
13755
- devpad_projects_delete: {
14073
+ }),
14074
+ devpad_projects_delete: define_tool({
13756
14075
  name: "devpad_projects_delete",
13757
14076
  description: "Delete a project",
13758
14077
  inputSchema: exports_external.object({
@@ -13765,56 +14084,56 @@ var tools = {
13765
14084
  unwrap2(await client.projects.deleteProject(project2));
13766
14085
  return { success: true };
13767
14086
  }
13768
- },
13769
- devpad_projects_history: {
14087
+ }),
14088
+ devpad_projects_history: define_tool({
13770
14089
  name: "devpad_projects_history",
13771
14090
  description: "Get project history",
13772
14091
  inputSchema: exports_external.object({
13773
14092
  project_id: exports_external.string().describe("Project ID")
13774
14093
  }),
13775
14094
  execute: async (client, input) => unwrap2(await client.projects.history(input.project_id))
13776
- },
13777
- devpad_projects_specification: {
14095
+ }),
14096
+ devpad_projects_specification: define_tool({
13778
14097
  name: "devpad_projects_specification",
13779
14098
  description: "Fetch project specification from GitHub",
13780
14099
  inputSchema: exports_external.object({
13781
14100
  project_id: exports_external.string().describe("Project ID")
13782
14101
  }),
13783
14102
  execute: async (client, input) => unwrap2(await client.projects.specification(input.project_id))
13784
- },
13785
- devpad_projects_config_load: {
14103
+ }),
14104
+ devpad_projects_config_load: define_tool({
13786
14105
  name: "devpad_projects_config_load",
13787
14106
  description: "Load project configuration",
13788
14107
  inputSchema: exports_external.object({
13789
14108
  project_id: exports_external.string().describe("Project ID")
13790
14109
  }),
13791
14110
  execute: async (client, input) => unwrap2(await client.projects.config.load(input.project_id))
13792
- },
13793
- devpad_milestones_delete: {
14111
+ }),
14112
+ devpad_milestones_delete: define_tool({
13794
14113
  name: "devpad_milestones_delete",
13795
14114
  description: "Delete a milestone",
13796
14115
  inputSchema: exports_external.object({
13797
14116
  id: exports_external.string().describe("Milestone ID")
13798
14117
  }),
13799
14118
  execute: async (client, input) => unwrap2(await client.milestones.delete(input.id))
13800
- },
13801
- devpad_milestones_goals: {
14119
+ }),
14120
+ devpad_milestones_goals: define_tool({
13802
14121
  name: "devpad_milestones_goals",
13803
14122
  description: "Get goals for a milestone",
13804
14123
  inputSchema: exports_external.object({
13805
14124
  id: exports_external.string().describe("Milestone ID")
13806
14125
  }),
13807
14126
  execute: async (client, input) => unwrap2(await client.milestones.goals(input.id))
13808
- },
13809
- devpad_goals_delete: {
14127
+ }),
14128
+ devpad_goals_delete: define_tool({
13810
14129
  name: "devpad_goals_delete",
13811
14130
  description: "Delete a goal",
13812
14131
  inputSchema: exports_external.object({
13813
14132
  id: exports_external.string().describe("Goal ID")
13814
14133
  }),
13815
14134
  execute: async (client, input) => unwrap2(await client.goals.delete(input.id))
13816
- },
13817
- devpad_tasks_delete: {
14135
+ }),
14136
+ devpad_tasks_delete: define_tool({
13818
14137
  name: "devpad_tasks_delete",
13819
14138
  description: "Delete a task",
13820
14139
  inputSchema: exports_external.object({
@@ -13827,22 +14146,22 @@ var tools = {
13827
14146
  unwrap2(await client.tasks.deleteTask(task2));
13828
14147
  return { success: true };
13829
14148
  }
13830
- },
13831
- devpad_tasks_history: {
14149
+ }),
14150
+ devpad_tasks_history: define_tool({
13832
14151
  name: "devpad_tasks_history",
13833
14152
  description: "Get task history",
13834
14153
  inputSchema: exports_external.object({
13835
14154
  task_id: exports_external.string().describe("Task ID")
13836
14155
  }),
13837
14156
  execute: async (client, input) => unwrap2(await client.tasks.history.get(input.task_id))
13838
- },
13839
- devpad_user_history: {
14157
+ }),
14158
+ devpad_user_history: define_tool({
13840
14159
  name: "devpad_user_history",
13841
14160
  description: "Get user activity history",
13842
14161
  inputSchema: exports_external.object({}),
13843
14162
  execute: async (client) => unwrap2(await client.user.history())
13844
- },
13845
- devpad_user_preferences: {
14163
+ }),
14164
+ devpad_user_preferences: define_tool({
13846
14165
  name: "devpad_user_preferences",
13847
14166
  description: "Update user preferences",
13848
14167
  inputSchema: exports_external.object({
@@ -13850,8 +14169,8 @@ var tools = {
13850
14169
  task_view: exports_external.enum(["list", "grid"]).describe("Task view preference")
13851
14170
  }),
13852
14171
  execute: async (client, input) => unwrap2(await client.user.preferences(input))
13853
- },
13854
- devpad_activity_ai: {
14172
+ }),
14173
+ devpad_activity_ai: define_tool({
13855
14174
  name: "devpad_activity_ai",
13856
14175
  description: "Get AI activity feed - shows recent actions made via API/MCP grouped into sessions by time window",
13857
14176
  inputSchema: exports_external.object({
@@ -13859,104 +14178,69 @@ var tools = {
13859
14178
  since: exports_external.string().optional().describe("Only show activity after this ISO date")
13860
14179
  }),
13861
14180
  execute: async (client, input) => unwrap2(await client.activity.ai(input))
13862
- },
13863
- devpad_blog_posts_list: {
14181
+ }),
14182
+ devpad_blog_posts_list: define_tool({
13864
14183
  name: "devpad_blog_posts_list",
13865
14184
  description: "List blog posts with optional filters",
13866
- inputSchema: exports_external.object({
13867
- category: exports_external.string().optional().describe("Filter by category"),
13868
- tag: exports_external.string().optional().describe("Filter by tag"),
13869
- project: exports_external.string().optional().describe("Filter by project ID"),
13870
- status: exports_external.enum(["draft", "published"]).optional().describe("Filter by status"),
13871
- archived: exports_external.boolean().optional().describe("Filter by archived state"),
13872
- limit: exports_external.number().optional().describe("Max posts to return"),
13873
- offset: exports_external.number().optional().describe("Offset for pagination"),
13874
- sort: exports_external.string().optional().describe("Sort order")
13875
- }),
14185
+ inputSchema: PostListParamsSchema.partial(),
13876
14186
  execute: async (client, input) => unwrap2(await client.blog.posts.list(input))
13877
- },
13878
- devpad_blog_posts_get: {
14187
+ }),
14188
+ devpad_blog_posts_get: define_tool({
13879
14189
  name: "devpad_blog_posts_get",
13880
14190
  description: "Get a blog post by slug",
13881
14191
  inputSchema: exports_external.object({
13882
14192
  slug: exports_external.string().describe("Post slug")
13883
14193
  }),
13884
14194
  execute: async (client, input) => unwrap2(await client.blog.posts.getBySlug(input.slug))
13885
- },
13886
- devpad_blog_posts_create: {
14195
+ }),
14196
+ devpad_blog_posts_create: define_tool({
13887
14197
  name: "devpad_blog_posts_create",
13888
14198
  description: "Create a new blog post",
13889
- inputSchema: exports_external.object({
13890
- title: exports_external.string().describe("Post title"),
13891
- content: exports_external.string().describe("Post content"),
13892
- format: exports_external.enum(["markdown", "html"]).describe("Content format"),
13893
- slug: exports_external.string().optional().describe("Custom slug"),
13894
- category: exports_external.string().optional().describe("Category name"),
13895
- tags: exports_external.array(exports_external.string()).optional().describe("Tag names"),
13896
- description: exports_external.string().optional().describe("Post description"),
13897
- publish_at: exports_external.string().optional().describe("Scheduled publish date (ISO string)"),
13898
- project_ids: exports_external.array(exports_external.string()).optional().describe("Associated project IDs"),
13899
- archived: exports_external.boolean().optional().describe("Whether post is archived")
13900
- }),
14199
+ inputSchema: PostCreateSchema,
13901
14200
  execute: async (client, input) => unwrap2(await client.blog.posts.create(input))
13902
- },
13903
- devpad_blog_posts_update: {
14201
+ }),
14202
+ devpad_blog_posts_update: define_tool({
13904
14203
  name: "devpad_blog_posts_update",
13905
14204
  description: "Update a blog post by UUID",
13906
- inputSchema: exports_external.object({
13907
- uuid: exports_external.string().describe("Post UUID"),
13908
- title: exports_external.string().optional().describe("Post title"),
13909
- content: exports_external.string().optional().describe("Post content"),
13910
- format: exports_external.enum(["markdown", "html"]).optional().describe("Content format"),
13911
- slug: exports_external.string().optional().describe("Custom slug"),
13912
- category: exports_external.string().optional().describe("Category name"),
13913
- tags: exports_external.array(exports_external.string()).optional().describe("Tag names"),
13914
- description: exports_external.string().optional().describe("Post description"),
13915
- publish_at: exports_external.string().optional().describe("Scheduled publish date (ISO string)"),
13916
- project_ids: exports_external.array(exports_external.string()).optional().describe("Associated project IDs"),
13917
- archived: exports_external.boolean().optional().describe("Whether post is archived")
13918
- }),
14205
+ inputSchema: PostUpdateSchema.extend({ uuid: exports_external.string().describe("Post UUID") }),
13919
14206
  execute: async (client, input) => {
13920
14207
  const { uuid, ...data } = input;
13921
14208
  return unwrap2(await client.blog.posts.update(uuid, data));
13922
14209
  }
13923
- },
13924
- devpad_blog_posts_delete: {
14210
+ }),
14211
+ devpad_blog_posts_delete: define_tool({
13925
14212
  name: "devpad_blog_posts_delete",
13926
14213
  description: "Delete a blog post by UUID",
13927
14214
  inputSchema: exports_external.object({
13928
14215
  uuid: exports_external.string().describe("Post UUID")
13929
14216
  }),
13930
14217
  execute: async (client, input) => unwrap2(await client.blog.posts.delete(input.uuid))
13931
- },
13932
- devpad_blog_tags_list: {
14218
+ }),
14219
+ devpad_blog_tags_list: define_tool({
13933
14220
  name: "devpad_blog_tags_list",
13934
14221
  description: "List all blog tags with post counts",
13935
14222
  inputSchema: exports_external.object({}),
13936
14223
  execute: async (client) => unwrap2(await client.blog.tags.list())
13937
- },
13938
- devpad_blog_categories_tree: {
14224
+ }),
14225
+ devpad_blog_categories_tree: define_tool({
13939
14226
  name: "devpad_blog_categories_tree",
13940
14227
  description: "Get the blog category tree",
13941
14228
  inputSchema: exports_external.object({}),
13942
14229
  execute: async (client) => unwrap2(await client.blog.categories.tree())
13943
- },
13944
- devpad_blog_categories_create: {
14230
+ }),
14231
+ devpad_blog_categories_create: define_tool({
13945
14232
  name: "devpad_blog_categories_create",
13946
14233
  description: "Create a blog category",
13947
- inputSchema: exports_external.object({
13948
- name: exports_external.string().describe("Category name"),
13949
- parent: exports_external.string().optional().describe("Parent category name")
13950
- }),
14234
+ inputSchema: CategoryCreateSchema,
13951
14235
  execute: async (client, input) => unwrap2(await client.blog.categories.create(input))
13952
- },
13953
- devpad_blog_tokens_list: {
14236
+ }),
14237
+ devpad_blog_tokens_list: define_tool({
13954
14238
  name: "devpad_blog_tokens_list",
13955
14239
  description: "List blog access tokens",
13956
14240
  inputSchema: exports_external.object({}),
13957
14241
  execute: async (client) => unwrap2(await client.blog.tokens.list())
13958
- },
13959
- devpad_blog_tokens_create: {
14242
+ }),
14243
+ devpad_blog_tokens_create: define_tool({
13960
14244
  name: "devpad_blog_tokens_create",
13961
14245
  description: "Create a blog access token",
13962
14246
  inputSchema: exports_external.object({
@@ -13964,14 +14248,14 @@ var tools = {
13964
14248
  note: exports_external.string().optional().describe("Optional note")
13965
14249
  }),
13966
14250
  execute: async (client, input) => unwrap2(await client.blog.tokens.create(input))
13967
- },
13968
- devpad_media_profiles_list: {
14251
+ }),
14252
+ devpad_media_profiles_list: define_tool({
13969
14253
  name: "devpad_media_profiles_list",
13970
14254
  description: "List media profiles",
13971
14255
  inputSchema: exports_external.object({}),
13972
14256
  execute: async (client) => unwrap2(await client.media.profiles.list())
13973
- },
13974
- devpad_media_profiles_create: {
14257
+ }),
14258
+ devpad_media_profiles_create: define_tool({
13975
14259
  name: "devpad_media_profiles_create",
13976
14260
  description: "Create a media profile",
13977
14261
  inputSchema: exports_external.object({
@@ -13979,16 +14263,16 @@ var tools = {
13979
14263
  slug: exports_external.string().describe("Profile slug")
13980
14264
  }),
13981
14265
  execute: async (client, input) => unwrap2(await client.media.profiles.create(input))
13982
- },
13983
- devpad_media_profiles_get: {
14266
+ }),
14267
+ devpad_media_profiles_get: define_tool({
13984
14268
  name: "devpad_media_profiles_get",
13985
14269
  description: "Get a media profile by ID",
13986
14270
  inputSchema: exports_external.object({
13987
14271
  id: exports_external.string().describe("Profile ID")
13988
14272
  }),
13989
14273
  execute: async (client, input) => unwrap2(await client.media.profiles.get(input.id))
13990
- },
13991
- devpad_media_profiles_update: {
14274
+ }),
14275
+ devpad_media_profiles_update: define_tool({
13992
14276
  name: "devpad_media_profiles_update",
13993
14277
  description: "Update a media profile by ID",
13994
14278
  inputSchema: exports_external.object({
@@ -14000,32 +14284,32 @@ var tools = {
14000
14284
  const { id: id2, ...data } = input;
14001
14285
  return unwrap2(await client.media.profiles.update(id2, data));
14002
14286
  }
14003
- },
14004
- devpad_media_profiles_delete: {
14287
+ }),
14288
+ devpad_media_profiles_delete: define_tool({
14005
14289
  name: "devpad_media_profiles_delete",
14006
14290
  description: "Delete a media profile by ID",
14007
14291
  inputSchema: exports_external.object({
14008
14292
  id: exports_external.string().describe("Profile ID")
14009
14293
  }),
14010
14294
  execute: async (client, input) => unwrap2(await client.media.profiles.delete(input.id))
14011
- },
14012
- devpad_media_connections_list: {
14295
+ }),
14296
+ devpad_media_connections_list: define_tool({
14013
14297
  name: "devpad_media_connections_list",
14014
14298
  description: "List connections for a media profile",
14015
14299
  inputSchema: exports_external.object({
14016
14300
  profile_id: exports_external.string().describe("Profile ID")
14017
14301
  }),
14018
14302
  execute: async (client, input) => unwrap2(await client.media.connections.list(input.profile_id))
14019
- },
14020
- devpad_media_connections_refresh: {
14303
+ }),
14304
+ devpad_media_connections_refresh: define_tool({
14021
14305
  name: "devpad_media_connections_refresh",
14022
14306
  description: "Refresh a media connection",
14023
14307
  inputSchema: exports_external.object({
14024
14308
  account_id: exports_external.string().describe("Account/connection ID")
14025
14309
  }),
14026
14310
  execute: async (client, input) => unwrap2(await client.media.connections.refresh(input.account_id))
14027
- },
14028
- devpad_media_timeline_get: {
14311
+ }),
14312
+ devpad_media_timeline_get: define_tool({
14029
14313
  name: "devpad_media_timeline_get",
14030
14314
  description: "Get media timeline for a user",
14031
14315
  inputSchema: exports_external.object({
@@ -14037,8 +14321,8 @@ var tools = {
14037
14321
  const { user_id, ...params } = input;
14038
14322
  return unwrap2(await client.media.timeline.get(user_id, params));
14039
14323
  }
14040
- },
14041
- devpad_pulse_summary: {
14324
+ }),
14325
+ devpad_pulse_summary: define_tool({
14042
14326
  name: "devpad_pulse_summary",
14043
14327
  description: "Get summary analytics for a project (pageviews, sessions, errors, latency)",
14044
14328
  inputSchema: exports_external.object({
@@ -14046,8 +14330,8 @@ var tools = {
14046
14330
  range: exports_external.enum(["24h", "7d", "30d", "90d"]).describe("Time range")
14047
14331
  }),
14048
14332
  execute: async (client, input) => unwrap2(await client.pulse.summary({ project_id: input.project_id, range: input.range }))
14049
- },
14050
- devpad_pulse_events: {
14333
+ }),
14334
+ devpad_pulse_events: define_tool({
14051
14335
  name: "devpad_pulse_events",
14052
14336
  description: "List events for a project with optional filtering",
14053
14337
  inputSchema: exports_external.object({
@@ -14061,8 +14345,8 @@ var tools = {
14061
14345
  cursor: exports_external.string().optional().describe("Pagination cursor")
14062
14346
  }),
14063
14347
  execute: async (client, input) => unwrap2(await client.pulse.events(input))
14064
- },
14065
- devpad_pulse_errors: {
14348
+ }),
14349
+ devpad_pulse_errors: define_tool({
14066
14350
  name: "devpad_pulse_errors",
14067
14351
  description: "List error issues for a project, optionally grouped by fingerprint",
14068
14352
  inputSchema: exports_external.object({
@@ -14070,9 +14354,13 @@ var tools = {
14070
14354
  range: exports_external.enum(["24h", "7d", "30d", "90d"]).describe("Time range"),
14071
14355
  group_by_fingerprint: exports_external.boolean().optional().describe("Group by error fingerprint (true) or list all (false)")
14072
14356
  }),
14073
- execute: async (client, input) => unwrap2(await client.pulse.errors({ project_id: input.project_id, range: input.range, group_by_fingerprint: input.group_by_fingerprint }))
14074
- },
14075
- devpad_pulse_logs: {
14357
+ execute: async (client, input) => unwrap2(await client.pulse.errors({
14358
+ project_id: input.project_id,
14359
+ range: input.range,
14360
+ group_by_fingerprint: input.group_by_fingerprint
14361
+ }))
14362
+ }),
14363
+ devpad_pulse_logs: define_tool({
14076
14364
  name: "devpad_pulse_logs",
14077
14365
  description: "List logs for a project with optional level and message filtering",
14078
14366
  inputSchema: exports_external.object({
@@ -14082,8 +14370,8 @@ var tools = {
14082
14370
  search: exports_external.string().optional().describe("Search in log messages")
14083
14371
  }),
14084
14372
  execute: async (client, input) => unwrap2(await client.pulse.logs(input))
14085
- },
14086
- devpad_pulse_latency: {
14373
+ }),
14374
+ devpad_pulse_latency: define_tool({
14087
14375
  name: "devpad_pulse_latency",
14088
14376
  description: "Get request latency metrics (p50, p95, p99) for a project",
14089
14377
  inputSchema: exports_external.object({
@@ -14093,16 +14381,16 @@ var tools = {
14093
14381
  percentiles: exports_external.array(exports_external.number()).optional().describe("Percentiles to compute (default [50, 95, 99])")
14094
14382
  }),
14095
14383
  execute: async (client, input) => unwrap2(await client.pulse.latency(input))
14096
- },
14097
- devpad_alerts_list: {
14384
+ }),
14385
+ devpad_alerts_list: define_tool({
14098
14386
  name: "devpad_alerts_list",
14099
14387
  description: "List notification subscriptions (alerts) for a project",
14100
14388
  inputSchema: exports_external.object({
14101
14389
  project_id: exports_external.string().describe("Project ID")
14102
14390
  }),
14103
14391
  execute: async (client, input) => unwrap2(await client.pulse.subs.list(input))
14104
- },
14105
- devpad_alerts_subscribe: {
14392
+ }),
14393
+ devpad_alerts_subscribe: define_tool({
14106
14394
  name: "devpad_alerts_subscribe",
14107
14395
  description: "Create a new notification subscription (alert) for events",
14108
14396
  inputSchema: exports_external.object({
@@ -14113,16 +14401,16 @@ var tools = {
14113
14401
  cooldown_seconds: exports_external.number().optional().describe("Cooldown between notifications (default 60)")
14114
14402
  }),
14115
14403
  execute: async (client, input) => unwrap2(await client.pulse.subs.create(input))
14116
- },
14117
- devpad_alerts_unsubscribe: {
14404
+ }),
14405
+ devpad_alerts_unsubscribe: define_tool({
14118
14406
  name: "devpad_alerts_unsubscribe",
14119
14407
  description: "Delete a notification subscription by ID",
14120
14408
  inputSchema: exports_external.object({
14121
14409
  id: exports_external.string().describe("Subscription ID")
14122
14410
  }),
14123
14411
  execute: async (client, input) => unwrap2(await client.pulse.subs.delete(input.id))
14124
- },
14125
- devpad_pulse_key_create: {
14412
+ }),
14413
+ devpad_pulse_key_create: define_tool({
14126
14414
  name: "devpad_pulse_key_create",
14127
14415
  description: "Create a new ingest key for a project (returns plaintext once)",
14128
14416
  inputSchema: exports_external.object({
@@ -14131,8 +14419,8 @@ var tools = {
14131
14419
  rate_limit_per_min: exports_external.number().optional().describe("Rate limit in requests per minute (default 600)")
14132
14420
  }),
14133
14421
  execute: async (client, input) => unwrap2(await client.pulse.keys.create(input))
14134
- },
14135
- devpad_pipelines_list: {
14422
+ }),
14423
+ devpad_pipelines_list: define_tool({
14136
14424
  name: "devpad_pipelines_list",
14137
14425
  description: "List pipeline runs (newest first). Optionally filter by package and/or status; cap limit at 200.",
14138
14426
  inputSchema: exports_external.object({
@@ -14141,16 +14429,16 @@ var tools = {
14141
14429
  limit: exports_external.number().int().positive().max(200).optional().describe("Max rows to return (default 50, cap 200)")
14142
14430
  }),
14143
14431
  execute: async (client, input) => unwrap2(await client.pipelines.list(input))
14144
- },
14145
- devpad_pipelines_get: {
14432
+ }),
14433
+ devpad_pipelines_get: define_tool({
14146
14434
  name: "devpad_pipelines_get",
14147
14435
  description: "Get a pipeline run by ID",
14148
14436
  inputSchema: exports_external.object({
14149
14437
  run_id: exports_external.string().describe("Pipeline run ID")
14150
14438
  }),
14151
14439
  execute: async (client, input) => unwrap2(await client.pipelines.get(input.run_id))
14152
- },
14153
- devpad_pipelines_create: {
14440
+ }),
14441
+ devpad_pipelines_create: define_tool({
14154
14442
  name: "devpad_pipelines_create",
14155
14443
  description: "Create a new pipeline run",
14156
14444
  inputSchema: exports_external.object({
@@ -14158,8 +14446,8 @@ var tools = {
14158
14446
  version_set_id: exports_external.string().describe("Version set ID to deploy")
14159
14447
  }),
14160
14448
  execute: async (client, input) => unwrap2(await client.pipelines.create(input))
14161
- },
14162
- devpad_pipelines_approve: {
14449
+ }),
14450
+ devpad_pipelines_approve: define_tool({
14163
14451
  name: "devpad_pipelines_approve",
14164
14452
  description: "Approve or deny a stage in a pipeline run",
14165
14453
  inputSchema: exports_external.object({
@@ -14173,8 +14461,8 @@ var tools = {
14173
14461
  unwrap2(await client.pipelines.approve(input.run_id, input));
14174
14462
  return { success: true };
14175
14463
  }
14176
- },
14177
- devpad_pipelines_cancel: {
14464
+ }),
14465
+ devpad_pipelines_cancel: define_tool({
14178
14466
  name: "devpad_pipelines_cancel",
14179
14467
  description: "Cancel a pipeline run",
14180
14468
  inputSchema: exports_external.object({
@@ -14184,8 +14472,8 @@ var tools = {
14184
14472
  unwrap2(await client.pipelines.cancel(input.run_id));
14185
14473
  return { success: true };
14186
14474
  }
14187
- },
14188
- devpad_pipelines_rollback: {
14475
+ }),
14476
+ devpad_pipelines_rollback: define_tool({
14189
14477
  name: "devpad_pipelines_rollback",
14190
14478
  description: "Rollback a completed or failed pipeline run",
14191
14479
  inputSchema: exports_external.object({
@@ -14195,8 +14483,8 @@ var tools = {
14195
14483
  unwrap2(await client.pipelines.rollback(input.run_id));
14196
14484
  return { success: true };
14197
14485
  }
14198
- },
14199
- devpad_pipelines_runs_events_ingest: {
14486
+ }),
14487
+ devpad_pipelines_runs_events_ingest: define_tool({
14200
14488
  name: "devpad_pipelines_runs_events_ingest",
14201
14489
  description: 'Ingest an external webhook event against an in-flight pipeline run. Idempotent on (idempotency_key, payload). Server-side stamps payload.source = "external".',
14202
14490
  inputSchema: exports_external.object({
@@ -14212,24 +14500,24 @@ var tools = {
14212
14500
  payload: input.payload,
14213
14501
  idempotency_key: input.idempotency_key
14214
14502
  }))
14215
- },
14216
- devpad_pipelines_runs_events_list: {
14503
+ }),
14504
+ devpad_pipelines_runs_events_list: define_tool({
14217
14505
  name: "devpad_pipelines_runs_events_list",
14218
14506
  description: "List stored stage events for a pipeline run, newest-first",
14219
14507
  inputSchema: exports_external.object({
14220
14508
  run_id: exports_external.string().describe("Pipeline run ID")
14221
14509
  }),
14222
14510
  execute: async (client, input) => unwrap2(await client.pipelines.events.list(input.run_id))
14223
- },
14224
- devpad_pipelines_grants_list: {
14511
+ }),
14512
+ devpad_pipelines_grants_list: define_tool({
14225
14513
  name: "devpad_pipelines_grants_list",
14226
14514
  description: "List vault grants for a pipeline package",
14227
14515
  inputSchema: exports_external.object({
14228
14516
  package_id: exports_external.string().describe("Package ID to filter grants by")
14229
14517
  }),
14230
14518
  execute: async (client, input) => unwrap2(await client.pipelines.grants.list(input.package_id))
14231
- },
14232
- devpad_pipelines_grants_approve: {
14519
+ }),
14520
+ devpad_pipelines_grants_approve: define_tool({
14233
14521
  name: "devpad_pipelines_grants_approve",
14234
14522
  description: "Approve a pending vault grant request for a pipeline package",
14235
14523
  inputSchema: exports_external.object({
@@ -14237,8 +14525,8 @@ var tools = {
14237
14525
  user_id: exports_external.string().describe("User ID making the approval decision")
14238
14526
  }),
14239
14527
  execute: async (client, input) => unwrap2(await client.pipelines.grants.approve(input.grant_id, input.user_id))
14240
- },
14241
- devpad_pipelines_grants_deny: {
14528
+ }),
14529
+ devpad_pipelines_grants_deny: define_tool({
14242
14530
  name: "devpad_pipelines_grants_deny",
14243
14531
  description: "Deny a pending vault grant request for a pipeline package",
14244
14532
  inputSchema: exports_external.object({
@@ -14247,24 +14535,24 @@ var tools = {
14247
14535
  reason: exports_external.string().optional().describe("Optional reason for the denial")
14248
14536
  }),
14249
14537
  execute: async (client, input) => unwrap2(await client.pipelines.grants.deny(input.grant_id, input.user_id, input.reason))
14250
- },
14251
- devpad_pipelines_packages_list: {
14538
+ }),
14539
+ devpad_pipelines_packages_list: define_tool({
14252
14540
  name: "devpad_pipelines_packages_list",
14253
14541
  description: "List pipeline packages. Optionally filter by linked devpad project_id; unlinked packages have project_id = null.",
14254
14542
  inputSchema: exports_external.object({
14255
14543
  project_id: exports_external.string().optional().describe("Filter packages by linked devpad project")
14256
14544
  }),
14257
14545
  execute: async (client, input) => unwrap2(await client.pipelines.packages.list(input))
14258
- },
14259
- devpad_pipelines_packages_get: {
14546
+ }),
14547
+ devpad_pipelines_packages_get: define_tool({
14260
14548
  name: "devpad_pipelines_packages_get",
14261
14549
  description: "Get a pipeline package by ID",
14262
14550
  inputSchema: exports_external.object({
14263
14551
  package_id: exports_external.string().describe("Pipeline package ID")
14264
14552
  }),
14265
14553
  execute: async (client, input) => unwrap2(await client.pipelines.packages.get(input.package_id))
14266
- },
14267
- devpad_pipelines_packages_create: {
14554
+ }),
14555
+ devpad_pipelines_packages_create: define_tool({
14268
14556
  name: "devpad_pipelines_packages_create",
14269
14557
  description: "Register a new pipeline-managed package. By convention `id` equals the package `name`. `project_id` optionally links the package to a devpad project.",
14270
14558
  inputSchema: exports_external.object({
@@ -14276,8 +14564,8 @@ var tools = {
14276
14564
  default_template_ref: exports_external.string().optional().describe("Optional default pipeline template ref")
14277
14565
  }),
14278
14566
  execute: async (client, input) => unwrap2(await client.pipelines.packages.create(input))
14279
- },
14280
- devpad_pipelines_packages_update: {
14567
+ }),
14568
+ devpad_pipelines_packages_update: define_tool({
14281
14569
  name: "devpad_pipelines_packages_update",
14282
14570
  description: "Partially update a pipeline package. Only the provided fields are touched.",
14283
14571
  inputSchema: exports_external.object({
@@ -14291,24 +14579,24 @@ var tools = {
14291
14579
  const { id: id2, ...patch } = input;
14292
14580
  return unwrap2(await client.pipelines.packages.update(id2, patch));
14293
14581
  }
14294
- },
14295
- devpad_pipelines_packages_delete: {
14582
+ }),
14583
+ devpad_pipelines_packages_delete: define_tool({
14296
14584
  name: "devpad_pipelines_packages_delete",
14297
14585
  description: "Delete a pipeline package. Refuses with conflict if existing pipeline_run rows still reference the package.",
14298
14586
  inputSchema: exports_external.object({
14299
14587
  id: exports_external.string().describe("Pipeline package ID")
14300
14588
  }),
14301
14589
  execute: async (client, input) => unwrap2(await client.pipelines.packages.delete(input.id))
14302
- },
14303
- devpad_pipelines_analysis_templates_list: {
14590
+ }),
14591
+ devpad_pipelines_analysis_templates_list: define_tool({
14304
14592
  name: "devpad_pipelines_analysis_templates_list",
14305
14593
  description: "List pipeline analysis templates for an owner. Each row encodes the threshold DSL + window referenced by analysis-gate evaluations.",
14306
14594
  inputSchema: exports_external.object({
14307
14595
  owner_id: exports_external.string().describe("Devpad user ID whose templates to list")
14308
14596
  }),
14309
14597
  execute: async (client, input) => unwrap2(await client.pipelines.analysis_templates.list(input))
14310
- },
14311
- devpad_pipelines_analysis_templates_get: {
14598
+ }),
14599
+ devpad_pipelines_analysis_templates_get: define_tool({
14312
14600
  name: "devpad_pipelines_analysis_templates_get",
14313
14601
  description: "Get a single pipeline analysis template by id, scoped to its owner.",
14314
14602
  inputSchema: exports_external.object({
@@ -14316,8 +14604,8 @@ var tools = {
14316
14604
  owner_id: exports_external.string().describe("Owner ID (must match the template's owner)")
14317
14605
  }),
14318
14606
  execute: async (client, input) => unwrap2(await client.pipelines.analysis_templates.get(input.id, { owner_id: input.owner_id }))
14319
- },
14320
- devpad_pipelines_analysis_templates_create: {
14607
+ }),
14608
+ devpad_pipelines_analysis_templates_create: define_tool({
14321
14609
  name: "devpad_pipelines_analysis_templates_create",
14322
14610
  description: 'Create a new pipeline analysis template. `threshold_dsl` is a multi-line DSL: `metric_name OP value [: pending]` (OPs: > < >= <= =). Trailing ": pending" marks a breach as Pending rather than Fail. Server-side parse failure surfaces as `validation_error` with field=threshold_dsl. `window_ms` defaults to 600000 (10 min).',
14323
14611
  inputSchema: exports_external.object({
@@ -14328,8 +14616,8 @@ var tools = {
14328
14616
  window_ms: exports_external.number().int().positive().optional().describe("Analysis window in milliseconds. Default: 600000")
14329
14617
  }),
14330
14618
  execute: async (client, input) => unwrap2(await client.pipelines.analysis_templates.create(input))
14331
- },
14332
- devpad_pipelines_analysis_templates_update: {
14619
+ }),
14620
+ devpad_pipelines_analysis_templates_update: define_tool({
14333
14621
  name: "devpad_pipelines_analysis_templates_update",
14334
14622
  description: "Partially update a pipeline analysis template. Only the supplied fields are touched. Re-validates threshold_dsl when present.",
14335
14623
  inputSchema: exports_external.object({
@@ -14344,8 +14632,8 @@ var tools = {
14344
14632
  const { id: id2, ...patch } = input;
14345
14633
  return unwrap2(await client.pipelines.analysis_templates.update(id2, patch));
14346
14634
  }
14347
- },
14348
- devpad_pipelines_analysis_templates_delete: {
14635
+ }),
14636
+ devpad_pipelines_analysis_templates_delete: define_tool({
14349
14637
  name: "devpad_pipelines_analysis_templates_delete",
14350
14638
  description: "Hard-delete a pipeline analysis template. Does NOT consult pipeline_run.resolved_gates — runs snapshot their gate template at resolve-time, so deletion never orphans in-flight runs.",
14351
14639
  inputSchema: exports_external.object({
@@ -14353,16 +14641,16 @@ var tools = {
14353
14641
  owner_id: exports_external.string().describe("Owner ID (must match the template's owner)")
14354
14642
  }),
14355
14643
  execute: async (client, input) => unwrap2(await client.pipelines.analysis_templates.delete(input.id, { owner_id: input.owner_id }))
14356
- },
14357
- devpad_pipelines_oidc_trust_list: {
14644
+ }),
14645
+ devpad_pipelines_oidc_trust_list: define_tool({
14358
14646
  name: "devpad_pipelines_oidc_trust_list",
14359
14647
  description: "List GitHub Actions OIDC trust policies for an owner. Returned ordered by created_at DESC, id ASC to match the orchestrator's trust-matcher resolution order.",
14360
14648
  inputSchema: exports_external.object({
14361
14649
  owner_id: exports_external.string().describe("User ID whose trust policies to list")
14362
14650
  }),
14363
14651
  execute: async (client, input) => unwrap2(await client.pipelines.oidc_trust.list(input))
14364
- },
14365
- devpad_pipelines_oidc_trust_create: {
14652
+ }),
14653
+ devpad_pipelines_oidc_trust_create: define_tool({
14366
14654
  name: "devpad_pipelines_oidc_trust_create",
14367
14655
  description: 'Create a GitHub Actions OIDC trust policy. Authorises CI in repos owned by `github_owner` (filtered by `repo_pattern` and optional ref/environment lists) to mint orchestrator session tokens. Defaults: repo_pattern="*", allowed_actions=["artifacts:upload","runs:start"], session_ttl_seconds=900.',
14368
14656
  inputSchema: exports_external.object({
@@ -14376,8 +14664,8 @@ var tools = {
14376
14664
  session_ttl_seconds: exports_external.number().int().positive().optional().describe("Session token TTL. Default: 900 (15 min)")
14377
14665
  }),
14378
14666
  execute: async (client, input) => unwrap2(await client.pipelines.oidc_trust.create(input))
14379
- },
14380
- devpad_pipelines_oidc_trust_update: {
14667
+ }),
14668
+ devpad_pipelines_oidc_trust_update: define_tool({
14381
14669
  name: "devpad_pipelines_oidc_trust_update",
14382
14670
  description: "Partially update a GitHub Actions OIDC trust policy. Only the supplied fields are touched; validation runs server-side against the merged record.",
14383
14671
  inputSchema: exports_external.object({
@@ -14395,8 +14683,8 @@ var tools = {
14395
14683
  const { id: id2, ...patch } = input;
14396
14684
  return unwrap2(await client.pipelines.oidc_trust.update(id2, patch));
14397
14685
  }
14398
- },
14399
- devpad_pipelines_oidc_trust_delete: {
14686
+ }),
14687
+ devpad_pipelines_oidc_trust_delete: define_tool({
14400
14688
  name: "devpad_pipelines_oidc_trust_delete",
14401
14689
  description: "Soft-delete a GitHub Actions OIDC trust policy. The row is preserved for audit; the matcher and list operations skip soft-deleted rows.",
14402
14690
  inputSchema: exports_external.object({
@@ -14404,14 +14692,14 @@ var tools = {
14404
14692
  owner_id: exports_external.string().describe("Owner ID (must match the policy's owner)")
14405
14693
  }),
14406
14694
  execute: async (client, input) => unwrap2(await client.pipelines.oidc_trust.delete(input.id, { owner_id: input.owner_id }))
14407
- }
14695
+ })
14408
14696
  };
14409
14697
  var toolNames = Object.keys(tools);
14410
14698
  function getTool(name) {
14411
14699
  return tools[name];
14412
14700
  }
14413
14701
 
14414
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/core.js
14702
+ // ../../node_modules/zod/v4/core/core.js
14415
14703
  var NEVER2 = Object.freeze({
14416
14704
  status: "aborted"
14417
14705
  });
@@ -14471,7 +14759,7 @@ function config(newConfig) {
14471
14759
  Object.assign(globalConfig, newConfig);
14472
14760
  return globalConfig;
14473
14761
  }
14474
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/util.js
14762
+ // ../../node_modules/zod/v4/core/util.js
14475
14763
  var exports_util = {};
14476
14764
  __export(exports_util, {
14477
14765
  unwrapMessage: () => unwrapMessage,
@@ -14985,7 +15273,7 @@ class Class {
14985
15273
  constructor(..._args) {}
14986
15274
  }
14987
15275
 
14988
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/errors.js
15276
+ // ../../node_modules/zod/v4/core/errors.js
14989
15277
  var initializer = (inst, def) => {
14990
15278
  inst.name = "$ZodError";
14991
15279
  Object.defineProperty(inst, "_zod", {
@@ -15059,7 +15347,7 @@ function formatError(error, _mapper) {
15059
15347
  return fieldErrors;
15060
15348
  }
15061
15349
 
15062
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/parse.js
15350
+ // ../../node_modules/zod/v4/core/parse.js
15063
15351
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
15064
15352
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
15065
15353
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -15108,7 +15396,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
15108
15396
  } : { success: true, data: result.value };
15109
15397
  };
15110
15398
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
15111
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/regexes.js
15399
+ // ../../node_modules/zod/v4/core/regexes.js
15112
15400
  var cuid = /^[cC][^\s-]{8,}$/;
15113
15401
  var cuid2 = /^[0-9a-z]+$/;
15114
15402
  var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
@@ -15166,7 +15454,7 @@ var _null = /null/i;
15166
15454
  var lowercase = /^[^A-Z]*$/;
15167
15455
  var uppercase = /^[^a-z]*$/;
15168
15456
 
15169
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/checks.js
15457
+ // ../../node_modules/zod/v4/core/checks.js
15170
15458
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
15171
15459
  var _a;
15172
15460
  inst._zod ?? (inst._zod = {});
@@ -15550,7 +15838,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
15550
15838
  };
15551
15839
  });
15552
15840
 
15553
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/doc.js
15841
+ // ../../node_modules/zod/v4/core/doc.js
15554
15842
  class Doc {
15555
15843
  constructor(args = []) {
15556
15844
  this.content = [];
@@ -15588,14 +15876,14 @@ class Doc {
15588
15876
  }
15589
15877
  }
15590
15878
 
15591
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/versions.js
15879
+ // ../../node_modules/zod/v4/core/versions.js
15592
15880
  var version2 = {
15593
15881
  major: 4,
15594
15882
  minor: 0,
15595
15883
  patch: 0
15596
15884
  };
15597
15885
 
15598
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/schemas.js
15886
+ // ../../node_modules/zod/v4/core/schemas.js
15599
15887
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
15600
15888
  var _a;
15601
15889
  inst ?? (inst = {});
@@ -16826,7 +17114,7 @@ function handleRefineResult(result, payload, input, inst) {
16826
17114
  payload.issues.push(issue(_iss));
16827
17115
  }
16828
17116
  }
16829
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/locales/en.js
17117
+ // ../../node_modules/zod/v4/locales/en.js
16830
17118
  var parsedType = (data) => {
16831
17119
  const t = typeof data;
16832
17120
  switch (t) {
@@ -16943,7 +17231,7 @@ function en_default2() {
16943
17231
  localeError: error()
16944
17232
  };
16945
17233
  }
16946
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/registries.js
17234
+ // ../../node_modules/zod/v4/core/registries.js
16947
17235
  var $output = Symbol("ZodOutput");
16948
17236
  var $input = Symbol("ZodInput");
16949
17237
 
@@ -16993,7 +17281,7 @@ function registry() {
16993
17281
  return new $ZodRegistry;
16994
17282
  }
16995
17283
  var globalRegistry = /* @__PURE__ */ registry();
16996
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/api.js
17284
+ // ../../node_modules/zod/v4/core/api.js
16997
17285
  function _string(Class2, params) {
16998
17286
  return new Class2({
16999
17287
  type: "string",
@@ -17428,7 +17716,7 @@ function _refine(Class2, fn, _params) {
17428
17716
  });
17429
17717
  return schema;
17430
17718
  }
17431
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
17719
+ // ../../node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
17432
17720
  function isZ4Schema(s) {
17433
17721
  const schema = s;
17434
17722
  return !!schema._zod;
@@ -17490,7 +17778,7 @@ function getLiteralValue(schema) {
17490
17778
  return directValue;
17491
17779
  return;
17492
17780
  }
17493
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/classic/iso.js
17781
+ // ../../node_modules/zod/v4/classic/iso.js
17494
17782
  var exports_iso = {};
17495
17783
  __export(exports_iso, {
17496
17784
  time: () => time2,
@@ -17531,7 +17819,7 @@ function duration2(params) {
17531
17819
  return _isoDuration(ZodISODuration, params);
17532
17820
  }
17533
17821
 
17534
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/classic/errors.js
17822
+ // ../../node_modules/zod/v4/classic/errors.js
17535
17823
  var initializer2 = (inst, issues) => {
17536
17824
  $ZodError.init(inst, issues);
17537
17825
  inst.name = "ZodError";
@@ -17560,13 +17848,13 @@ var ZodRealError = $constructor("ZodError", initializer2, {
17560
17848
  Parent: Error
17561
17849
  });
17562
17850
 
17563
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/classic/parse.js
17851
+ // ../../node_modules/zod/v4/classic/parse.js
17564
17852
  var parse3 = /* @__PURE__ */ _parse(ZodRealError);
17565
17853
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
17566
17854
  var safeParse3 = /* @__PURE__ */ _safeParse(ZodRealError);
17567
17855
  var safeParseAsync2 = /* @__PURE__ */ _safeParseAsync(ZodRealError);
17568
17856
 
17569
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/classic/schemas.js
17857
+ // ../../node_modules/zod/v4/classic/schemas.js
17570
17858
  var ZodType2 = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
17571
17859
  $ZodType.init(inst, def);
17572
17860
  inst.def = def;
@@ -18171,10 +18459,10 @@ function superRefine(fn) {
18171
18459
  function preprocess(fn, schema) {
18172
18460
  return pipe2(transform(fn), schema);
18173
18461
  }
18174
- // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v4/classic/external.js
18462
+ // ../../node_modules/zod/v4/classic/external.js
18175
18463
  config(en_default2());
18176
18464
 
18177
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
18465
+ // ../../node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
18178
18466
  var LATEST_PROTOCOL_VERSION = "2025-11-25";
18179
18467
  var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
18180
18468
  var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
@@ -19009,12 +19297,12 @@ class UrlElicitationRequiredError extends McpError {
19009
19297
  }
19010
19298
  }
19011
19299
 
19012
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
19300
+ // ../../node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
19013
19301
  function isTerminal(status) {
19014
19302
  return status === "completed" || status === "failed" || status === "cancelled";
19015
19303
  }
19016
19304
 
19017
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/Options.js
19305
+ // ../../node_modules/zod-to-json-schema/dist/esm/Options.js
19018
19306
  var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
19019
19307
  var defaultOptions = {
19020
19308
  name: undefined,
@@ -19047,7 +19335,7 @@ var getDefaultOptions = (options) => typeof options === "string" ? {
19047
19335
  ...defaultOptions,
19048
19336
  ...options
19049
19337
  };
19050
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/Refs.js
19338
+ // ../../node_modules/zod-to-json-schema/dist/esm/Refs.js
19051
19339
  var getRefs = (options) => {
19052
19340
  const _options = getDefaultOptions(options);
19053
19341
  const currentPath = _options.name !== undefined ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath;
@@ -19066,7 +19354,7 @@ var getRefs = (options) => {
19066
19354
  ]))
19067
19355
  };
19068
19356
  };
19069
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
19357
+ // ../../node_modules/zod-to-json-schema/dist/esm/errorMessages.js
19070
19358
  function addErrorMessage(res, key, errorMessage, refs) {
19071
19359
  if (!refs?.errorMessages)
19072
19360
  return;
@@ -19081,7 +19369,7 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
19081
19369
  res[key] = value;
19082
19370
  addErrorMessage(res, key, errorMessage, refs);
19083
19371
  }
19084
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
19372
+ // ../../node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
19085
19373
  var getRelativePath = (pathA, pathB) => {
19086
19374
  let i = 0;
19087
19375
  for (;i < pathA.length && i < pathB.length; i++) {
@@ -19090,7 +19378,7 @@ var getRelativePath = (pathA, pathB) => {
19090
19378
  }
19091
19379
  return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
19092
19380
  };
19093
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
19381
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/any.js
19094
19382
  function parseAnyDef(refs) {
19095
19383
  if (refs.target !== "openAi") {
19096
19384
  return {};
@@ -19106,7 +19394,7 @@ function parseAnyDef(refs) {
19106
19394
  };
19107
19395
  }
19108
19396
 
19109
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
19397
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/array.js
19110
19398
  function parseArrayDef(def, refs) {
19111
19399
  const res = {
19112
19400
  type: "array"
@@ -19130,7 +19418,7 @@ function parseArrayDef(def, refs) {
19130
19418
  return res;
19131
19419
  }
19132
19420
 
19133
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
19421
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
19134
19422
  function parseBigintDef(def, refs) {
19135
19423
  const res = {
19136
19424
  type: "integer",
@@ -19176,24 +19464,24 @@ function parseBigintDef(def, refs) {
19176
19464
  return res;
19177
19465
  }
19178
19466
 
19179
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
19467
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
19180
19468
  function parseBooleanDef() {
19181
19469
  return {
19182
19470
  type: "boolean"
19183
19471
  };
19184
19472
  }
19185
19473
 
19186
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
19474
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
19187
19475
  function parseBrandedDef(_def, refs) {
19188
19476
  return parseDef(_def.type._def, refs);
19189
19477
  }
19190
19478
 
19191
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
19479
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
19192
19480
  var parseCatchDef = (def, refs) => {
19193
19481
  return parseDef(def.innerType._def, refs);
19194
19482
  };
19195
19483
 
19196
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
19484
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/date.js
19197
19485
  function parseDateDef(def, refs, overrideDateStrategy) {
19198
19486
  const strategy = overrideDateStrategy ?? refs.dateStrategy;
19199
19487
  if (Array.isArray(strategy)) {
@@ -19238,7 +19526,7 @@ var integerDateParser = (def, refs) => {
19238
19526
  return res;
19239
19527
  };
19240
19528
 
19241
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
19529
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/default.js
19242
19530
  function parseDefaultDef(_def, refs) {
19243
19531
  return {
19244
19532
  ...parseDef(_def.innerType._def, refs),
@@ -19246,12 +19534,12 @@ function parseDefaultDef(_def, refs) {
19246
19534
  };
19247
19535
  }
19248
19536
 
19249
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
19537
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
19250
19538
  function parseEffectsDef(_def, refs) {
19251
19539
  return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef(refs);
19252
19540
  }
19253
19541
 
19254
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
19542
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
19255
19543
  function parseEnumDef(def) {
19256
19544
  return {
19257
19545
  type: "string",
@@ -19259,7 +19547,7 @@ function parseEnumDef(def) {
19259
19547
  };
19260
19548
  }
19261
19549
 
19262
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
19550
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
19263
19551
  var isJsonSchema7AllOfType = (type) => {
19264
19552
  if ("type" in type && type.type === "string")
19265
19553
  return false;
@@ -19301,7 +19589,7 @@ function parseIntersectionDef(def, refs) {
19301
19589
  } : undefined;
19302
19590
  }
19303
19591
 
19304
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
19592
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
19305
19593
  function parseLiteralDef(def, refs) {
19306
19594
  const parsedType2 = typeof def.value;
19307
19595
  if (parsedType2 !== "bigint" && parsedType2 !== "number" && parsedType2 !== "boolean" && parsedType2 !== "string") {
@@ -19321,7 +19609,7 @@ function parseLiteralDef(def, refs) {
19321
19609
  };
19322
19610
  }
19323
19611
 
19324
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
19612
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/string.js
19325
19613
  var emojiRegex2 = undefined;
19326
19614
  var zodPatterns = {
19327
19615
  cuid: /^[cC][^\s-]{8,}$/,
@@ -19618,7 +19906,7 @@ function stringifyRegExpWithFlags(regex, refs) {
19618
19906
  return pattern;
19619
19907
  }
19620
19908
 
19621
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
19909
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/record.js
19622
19910
  function parseRecordDef(def, refs) {
19623
19911
  if (refs.target === "openAi") {
19624
19912
  console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
@@ -19670,7 +19958,7 @@ function parseRecordDef(def, refs) {
19670
19958
  return schema;
19671
19959
  }
19672
19960
 
19673
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
19961
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/map.js
19674
19962
  function parseMapDef(def, refs) {
19675
19963
  if (refs.mapStrategy === "record") {
19676
19964
  return parseRecordDef(def, refs);
@@ -19695,7 +19983,7 @@ function parseMapDef(def, refs) {
19695
19983
  };
19696
19984
  }
19697
19985
 
19698
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
19986
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
19699
19987
  function parseNativeEnumDef(def) {
19700
19988
  const object3 = def.values;
19701
19989
  const actualKeys = Object.keys(def.values).filter((key) => {
@@ -19709,7 +19997,7 @@ function parseNativeEnumDef(def) {
19709
19997
  };
19710
19998
  }
19711
19999
 
19712
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
20000
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/never.js
19713
20001
  function parseNeverDef(refs) {
19714
20002
  return refs.target === "openAi" ? undefined : {
19715
20003
  not: parseAnyDef({
@@ -19719,7 +20007,7 @@ function parseNeverDef(refs) {
19719
20007
  };
19720
20008
  }
19721
20009
 
19722
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
20010
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/null.js
19723
20011
  function parseNullDef(refs) {
19724
20012
  return refs.target === "openApi3" ? {
19725
20013
  enum: ["null"],
@@ -19729,7 +20017,7 @@ function parseNullDef(refs) {
19729
20017
  };
19730
20018
  }
19731
20019
 
19732
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
20020
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/union.js
19733
20021
  var primitiveMappings = {
19734
20022
  ZodString: "string",
19735
20023
  ZodNumber: "number",
@@ -19797,7 +20085,7 @@ var asAnyOf = (def, refs) => {
19797
20085
  return anyOf.length ? { anyOf } : undefined;
19798
20086
  };
19799
20087
 
19800
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
20088
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
19801
20089
  function parseNullableDef(def, refs) {
19802
20090
  if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) {
19803
20091
  if (refs.target === "openApi3") {
@@ -19829,7 +20117,7 @@ function parseNullableDef(def, refs) {
19829
20117
  return base && { anyOf: [base, { type: "null" }] };
19830
20118
  }
19831
20119
 
19832
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
20120
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/number.js
19833
20121
  function parseNumberDef(def, refs) {
19834
20122
  const res = {
19835
20123
  type: "number"
@@ -19878,7 +20166,7 @@ function parseNumberDef(def, refs) {
19878
20166
  return res;
19879
20167
  }
19880
20168
 
19881
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
20169
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/object.js
19882
20170
  function parseObjectDef(def, refs) {
19883
20171
  const forceOptionalIntoNullable = refs.target === "openAi";
19884
20172
  const result = {
@@ -19948,7 +20236,7 @@ function safeIsOptional(schema) {
19948
20236
  }
19949
20237
  }
19950
20238
 
19951
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
20239
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
19952
20240
  var parseOptionalDef = (def, refs) => {
19953
20241
  if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
19954
20242
  return parseDef(def.innerType._def, refs);
@@ -19967,7 +20255,7 @@ var parseOptionalDef = (def, refs) => {
19967
20255
  } : parseAnyDef(refs);
19968
20256
  };
19969
20257
 
19970
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
20258
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
19971
20259
  var parsePipelineDef = (def, refs) => {
19972
20260
  if (refs.pipeStrategy === "input") {
19973
20261
  return parseDef(def.in._def, refs);
@@ -19987,12 +20275,12 @@ var parsePipelineDef = (def, refs) => {
19987
20275
  };
19988
20276
  };
19989
20277
 
19990
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
20278
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
19991
20279
  function parsePromiseDef(def, refs) {
19992
20280
  return parseDef(def.type._def, refs);
19993
20281
  }
19994
20282
 
19995
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
20283
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/set.js
19996
20284
  function parseSetDef(def, refs) {
19997
20285
  const items = parseDef(def.valueType._def, {
19998
20286
  ...refs,
@@ -20012,7 +20300,7 @@ function parseSetDef(def, refs) {
20012
20300
  return schema;
20013
20301
  }
20014
20302
 
20015
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
20303
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
20016
20304
  function parseTupleDef(def, refs) {
20017
20305
  if (def.rest) {
20018
20306
  return {
@@ -20040,24 +20328,24 @@ function parseTupleDef(def, refs) {
20040
20328
  }
20041
20329
  }
20042
20330
 
20043
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
20331
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
20044
20332
  function parseUndefinedDef(refs) {
20045
20333
  return {
20046
20334
  not: parseAnyDef(refs)
20047
20335
  };
20048
20336
  }
20049
20337
 
20050
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
20338
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
20051
20339
  function parseUnknownDef(refs) {
20052
20340
  return parseAnyDef(refs);
20053
20341
  }
20054
20342
 
20055
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
20343
+ // ../../node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
20056
20344
  var parseReadonlyDef = (def, refs) => {
20057
20345
  return parseDef(def.innerType._def, refs);
20058
20346
  };
20059
20347
 
20060
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/selectParser.js
20348
+ // ../../node_modules/zod-to-json-schema/dist/esm/selectParser.js
20061
20349
  var selectParser = (def, typeName, refs) => {
20062
20350
  switch (typeName) {
20063
20351
  case ZodFirstPartyTypeKind.ZodString:
@@ -20135,7 +20423,7 @@ var selectParser = (def, typeName, refs) => {
20135
20423
  }
20136
20424
  };
20137
20425
 
20138
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parseDef.js
20426
+ // ../../node_modules/zod-to-json-schema/dist/esm/parseDef.js
20139
20427
  function parseDef(def, refs, forceResolution = false) {
20140
20428
  const seenItem = refs.seen.get(def);
20141
20429
  if (refs.override) {
@@ -20190,7 +20478,7 @@ var addMeta = (def, refs, jsonSchema) => {
20190
20478
  }
20191
20479
  return jsonSchema;
20192
20480
  };
20193
- // ../../node_modules/.bun/zod-to-json-schema@3.25.2+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
20481
+ // ../../node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
20194
20482
  var zodToJsonSchema = (schema, options) => {
20195
20483
  const refs = getRefs(options);
20196
20484
  let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema2]) => ({
@@ -20250,7 +20538,7 @@ var zodToJsonSchema = (schema, options) => {
20250
20538
  }
20251
20539
  return combined;
20252
20540
  };
20253
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
20541
+ // ../../node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
20254
20542
  function getMethodLiteral(schema) {
20255
20543
  const shape = getObjectShape(schema);
20256
20544
  const methodSchema = shape?.method;
@@ -20271,7 +20559,7 @@ function parseWithCompat(schema, data) {
20271
20559
  return result.data;
20272
20560
  }
20273
20561
 
20274
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
20562
+ // ../../node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
20275
20563
  var DEFAULT_REQUEST_TIMEOUT_MSEC = 60000;
20276
20564
 
20277
20565
  class Protocol {
@@ -21112,7 +21400,7 @@ function mergeCapabilities(base, additional) {
21112
21400
  return result;
21113
21401
  }
21114
21402
 
21115
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
21403
+ // ../../node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
21116
21404
  var import_ajv = __toESM(require_ajv(), 1);
21117
21405
  var import_ajv_formats = __toESM(require_dist(), 1);
21118
21406
  function createDefaultAjvInstance() {
@@ -21152,7 +21440,7 @@ class AjvJsonSchemaValidator {
21152
21440
  }
21153
21441
  }
21154
21442
 
21155
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
21443
+ // ../../node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
21156
21444
  class ExperimentalServerTasks {
21157
21445
  constructor(_server) {
21158
21446
  this._server = _server;
@@ -21230,7 +21518,7 @@ class ExperimentalServerTasks {
21230
21518
  }
21231
21519
  }
21232
21520
 
21233
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
21521
+ // ../../node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
21234
21522
  function assertToolsCallTaskCapability(requests, method, entityName) {
21235
21523
  if (!requests) {
21236
21524
  throw new Error(`${entityName} does not support task creation (required for ${method})`);
@@ -21265,7 +21553,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
21265
21553
  }
21266
21554
  }
21267
21555
 
21268
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
21556
+ // ../../node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
21269
21557
  class Server extends Protocol {
21270
21558
  constructor(_serverInfo, options) {
21271
21559
  super(options);
@@ -21598,10 +21886,10 @@ class Server extends Protocol {
21598
21886
  }
21599
21887
  }
21600
21888
 
21601
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
21889
+ // ../../node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
21602
21890
  import process2 from "node:process";
21603
21891
 
21604
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
21892
+ // ../../node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
21605
21893
  class ReadBuffer {
21606
21894
  append(chunk) {
21607
21895
  this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
@@ -21631,7 +21919,7 @@ function serializeMessage(message) {
21631
21919
  `;
21632
21920
  }
21633
21921
 
21634
- // ../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
21922
+ // ../../node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
21635
21923
  class StdioServerTransport {
21636
21924
  constructor(_stdin = process2.stdin, _stdout = process2.stdout) {
21637
21925
  this._stdin = _stdin;
@@ -21696,7 +21984,7 @@ function zodToMCPSchema(schema) {
21696
21984
  target: "openApi3",
21697
21985
  $refStrategy: "none"
21698
21986
  });
21699
- const { $schema, ...cleanSchema } = jsonSchema;
21987
+ const { $schema: _, ...cleanSchema } = jsonSchema;
21700
21988
  if (jsonSchema.type === "object")
21701
21989
  return jsonSchema;
21702
21990
  return {
@@ -21706,7 +21994,7 @@ function zodToMCPSchema(schema) {
21706
21994
  },
21707
21995
  required: []
21708
21996
  };
21709
- } catch (error2) {
21997
+ } catch {
21710
21998
  return {
21711
21999
  type: "object",
21712
22000
  properties: {},
@@ -21717,7 +22005,7 @@ function zodToMCPSchema(schema) {
21717
22005
  function assertObjectRootSchema(tools2) {
21718
22006
  tools2.forEach((tool, i) => {
21719
22007
  if (tool.inputSchema.type !== "object") {
21720
- console.error(`! Tool ${i} (${tool.name}) has non-object root type: ${tool.inputSchema.type}`);
22008
+ console.error(`! Tool ${String(i)} (${tool.name}) has non-object root type: ${String(tool.inputSchema.type)}`);
21721
22009
  }
21722
22010
  });
21723
22011
  return tools2;
@@ -21797,7 +22085,10 @@ class DevpadMCPServer {
21797
22085
  if (request.method === "tools/list") {
21798
22086
  result = { tools: tools2 };
21799
22087
  } else if (request.method === "tools/call") {
21800
- const { name, arguments: args } = request.params;
22088
+ const params = request.params;
22089
+ if (!params)
22090
+ throw new Error("Missing params for tools/call");
22091
+ const { name, arguments: args } = params;
21801
22092
  const tool = getTool(name);
21802
22093
  if (!tool) {
21803
22094
  throw new Error(`Unknown tool: ${name}`);