ostacky 0.9.3 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -25
- package/assets/agents/ostacky.md +5 -4
- package/assets/commands/install-stack.md +2 -2
- package/assets/mcp/ostacky-controller/bun.lock +20 -0
- package/assets/mcp/ostacky-controller/index.js +185 -29
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/{auth-B2Q9_Vxp.d.cts → auth--n_Yzytt.d.cts} +14 -9
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/{auth-CVhIKulL.d.mts.map → auth--n_Yzytt.d.cts.map} +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/{auth-CfDMXiII.cjs → auth-4-zilcqg.cjs} +3 -2
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/auth-4-zilcqg.cjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/{auth-CUe6YdwF.mjs → auth-CGP0BDVq.mjs} +3 -2
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/auth-CGP0BDVq.mjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/{auth-CVhIKulL.d.mts → auth-YUQV3RRv.d.mts} +14 -9
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/{auth-B2Q9_Vxp.d.cts.map → auth-YUQV3RRv.d.mts.map} +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/index.cjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/index.d.cts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/index.d.mts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/index.mjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/internal.cjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/internal.d.cts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/internal.d.mts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/internal.mjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/package.json +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/README.md +3 -3
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{ajvProvider-CplOkyLC.mjs → ajvProvider-CEoC__sr.mjs} +483 -38
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{ajvProvider-BdSo9BII.d.mts → ajvProvider-CgI-5L6O.d.mts} +25 -8
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{ajvProvider-BdSo9BII.d.mts.map → ajvProvider-CgI-5L6O.d.mts.map} +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{ajvProvider-B_4czhCS.d.cts → ajvProvider-FOQRM7up.d.cts} +24 -7
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{ajvProvider-B_4czhCS.d.cts.map → ajvProvider-FOQRM7up.d.cts.map} +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{ajvProvider-Brn-Q2J_.cjs → ajvProvider-ZaoO9afR.cjs} +483 -38
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/ajvProvider-ZaoO9afR.cjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{cfWorkerProvider-ojcZaap3.cjs → cfWorkerProvider-BwbPzsdI.cjs} +25 -15
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-BwbPzsdI.cjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{cfWorkerProvider-BYRW5af5.d.mts → cfWorkerProvider-C03CSigr.d.mts} +21 -6
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-C03CSigr.d.mts.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{cfWorkerProvider-D9GAttn8.d.cts → cfWorkerProvider-doTkZbTr.d.cts} +20 -5
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-doTkZbTr.d.cts.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{cfWorkerProvider-Bd-iTHAF.mjs → cfWorkerProvider-p3WaZPqB.mjs} +26 -15
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-p3WaZPqB.mjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{createMcpHandler-DzBzpE4_.d.cts → createMcpHandler-BLVe3qmU.d.cts} +137 -32
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-BLVe3qmU.d.cts.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{createMcpHandler-CEckaSEs.d.mts → createMcpHandler-Bt6U_Fqb.d.mts} +138 -33
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-Bt6U_Fqb.d.mts.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/dialects-D8eXzoGv.cjs +46 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/dialects-D8eXzoGv.cjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs +34 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/index.cjs +209 -257
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/index.cjs.map +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/index.d.cts +45 -3
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/index.d.cts.map +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/index.d.mts +46 -4
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/index.d.mts.map +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/index.mjs +201 -252
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/index.mjs.map +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{mcp-DM1iHYFo.cjs → mcp-DUcCQSTW.cjs} +458 -35
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/mcp-DUcCQSTW.cjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{mcp-IJurDZVN.mjs → mcp-Dw2OlZ1f.mjs} +389 -32
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/mcp-Dw2OlZ1f.mjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.cjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.cts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.mts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.mjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsNode.cjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsNode.d.cts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsNode.d.mts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsNode.mjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.cjs +2 -2
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.cts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.mts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.mjs +2 -2
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{src-BX_fm-dB.cjs → src-CgFsfg3E.cjs} +161 -48
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/src-CgFsfg3E.cjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{src-D86MbS1I.mjs → src-D-y6h4N7.mjs} +161 -48
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/src-D-y6h4N7.mjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/stdio.cjs +30 -3
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/stdio.cjs.map +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts +9 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts.map +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts +9 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts.map +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/stdio.mjs +30 -3
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/stdio.mjs.map +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{types-mS0yxCL0.d.mts → types-DUs7mGBv.d.mts} +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{types-mS0yxCL0.d.mts.map → types-DUs7mGBv.d.mts.map} +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/validators/ajv.cjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/validators/ajv.d.cts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/validators/ajv.d.mts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/validators/ajv.mjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.cjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.d.cts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.d.mts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.mjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/package.json +4 -4
- package/assets/mcp/ostacky-controller/package.json +1 -1
- package/assets/plugins/ostacky-controller/index.ts +53 -11
- package/dist/cli.js +93 -53
- package/manifest.json +28 -28
- package/package.json +5 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/auth-CUe6YdwF.mjs.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/auth-CfDMXiII.cjs.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/ajvProvider-Brn-Q2J_.cjs.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CplOkyLC.mjs.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-BYRW5af5.d.mts.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-Bd-iTHAF.mjs.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-D9GAttn8.d.cts.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-ojcZaap3.cjs.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-CEckaSEs.d.mts.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-DzBzpE4_.d.cts.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/mcp-DM1iHYFo.cjs.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/mcp-IJurDZVN.mjs.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/src-BX_fm-dB.cjs.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/src-D86MbS1I.mjs.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { r as __toESM, t as __commonJSMin } from "./chunk-Br0eD_fh.mjs";
|
|
2
|
+
import { t as declaredDialect } from "./dialects-DoSzNhcb.mjs";
|
|
2
3
|
|
|
3
4
|
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
4
5
|
var require_code$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
@@ -3448,7 +3449,7 @@ var require_uri = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3448
3449
|
|
|
3449
3450
|
//#endregion
|
|
3450
3451
|
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js
|
|
3451
|
-
var require_core$
|
|
3452
|
+
var require_core$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3452
3453
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3453
3454
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
3454
3455
|
var validate_1 = require_validate();
|
|
@@ -4135,7 +4136,7 @@ var require_ref = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4135
4136
|
|
|
4136
4137
|
//#endregion
|
|
4137
4138
|
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js
|
|
4138
|
-
var require_core$
|
|
4139
|
+
var require_core$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4139
4140
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4140
4141
|
const id_1 = require_id();
|
|
4141
4142
|
const ref_1 = require_ref();
|
|
@@ -4572,7 +4573,7 @@ var require_enum = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4572
4573
|
|
|
4573
4574
|
//#endregion
|
|
4574
4575
|
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
4575
|
-
var require_validation$
|
|
4576
|
+
var require_validation$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4576
4577
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4577
4578
|
const limitNumber_1 = require_limitNumber();
|
|
4578
4579
|
const multipleOf_1 = require_multipleOf();
|
|
@@ -5352,7 +5353,7 @@ var require_thenElse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5352
5353
|
|
|
5353
5354
|
//#endregion
|
|
5354
5355
|
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
5355
|
-
var require_applicator$
|
|
5356
|
+
var require_applicator$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5356
5357
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5357
5358
|
const additionalItems_1 = require_additionalItems();
|
|
5358
5359
|
const prefixItems_1 = require_prefixItems();
|
|
@@ -5394,7 +5395,7 @@ var require_applicator$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5394
5395
|
|
|
5395
5396
|
//#endregion
|
|
5396
5397
|
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js
|
|
5397
|
-
var require_format$
|
|
5398
|
+
var require_format$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5398
5399
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5399
5400
|
const codegen_1 = require_codegen();
|
|
5400
5401
|
const def = {
|
|
@@ -5484,9 +5485,9 @@ var require_format$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5484
5485
|
|
|
5485
5486
|
//#endregion
|
|
5486
5487
|
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js
|
|
5487
|
-
var require_format = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5488
|
+
var require_format$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5488
5489
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5489
|
-
const format = [require_format$
|
|
5490
|
+
const format = [require_format$2().default];
|
|
5490
5491
|
exports.default = format;
|
|
5491
5492
|
}));
|
|
5492
5493
|
|
|
@@ -5515,10 +5516,10 @@ var require_metadata = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5515
5516
|
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js
|
|
5516
5517
|
var require_draft7 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5517
5518
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5518
|
-
const core_1 = require_core$
|
|
5519
|
-
const validation_1 = require_validation$
|
|
5520
|
-
const applicator_1 = require_applicator$
|
|
5521
|
-
const format_1 = require_format();
|
|
5519
|
+
const core_1 = require_core$2();
|
|
5520
|
+
const validation_1 = require_validation$2();
|
|
5521
|
+
const applicator_1 = require_applicator$2();
|
|
5522
|
+
const format_1 = require_format$1();
|
|
5522
5523
|
const metadata_1 = require_metadata();
|
|
5523
5524
|
const draft7Vocabularies = [
|
|
5524
5525
|
core_1.default,
|
|
@@ -5782,7 +5783,7 @@ var require_json_schema_draft_07 = /* @__PURE__ */ __commonJSMin(((exports, modu
|
|
|
5782
5783
|
var require_ajv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5783
5784
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5784
5785
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
|
|
5785
|
-
const core_1 = require_core$
|
|
5786
|
+
const core_1 = require_core$3();
|
|
5786
5787
|
const draft7_1 = require_draft7();
|
|
5787
5788
|
const discriminator_1 = require_discriminator();
|
|
5788
5789
|
const draft7MetaSchema = require_json_schema_draft_07();
|
|
@@ -6165,17 +6166,447 @@ var require_unevaluated$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6165
6166
|
exports.default = unevaluated;
|
|
6166
6167
|
}));
|
|
6167
6168
|
|
|
6169
|
+
//#endregion
|
|
6170
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json
|
|
6171
|
+
var require_schema$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6172
|
+
module.exports = {
|
|
6173
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
6174
|
+
"$id": "https://json-schema.org/draft/2019-09/schema",
|
|
6175
|
+
"$vocabulary": {
|
|
6176
|
+
"https://json-schema.org/draft/2019-09/vocab/core": true,
|
|
6177
|
+
"https://json-schema.org/draft/2019-09/vocab/applicator": true,
|
|
6178
|
+
"https://json-schema.org/draft/2019-09/vocab/validation": true,
|
|
6179
|
+
"https://json-schema.org/draft/2019-09/vocab/meta-data": true,
|
|
6180
|
+
"https://json-schema.org/draft/2019-09/vocab/format": false,
|
|
6181
|
+
"https://json-schema.org/draft/2019-09/vocab/content": true
|
|
6182
|
+
},
|
|
6183
|
+
"$recursiveAnchor": true,
|
|
6184
|
+
"title": "Core and Validation specifications meta-schema",
|
|
6185
|
+
"allOf": [
|
|
6186
|
+
{ "$ref": "meta/core" },
|
|
6187
|
+
{ "$ref": "meta/applicator" },
|
|
6188
|
+
{ "$ref": "meta/validation" },
|
|
6189
|
+
{ "$ref": "meta/meta-data" },
|
|
6190
|
+
{ "$ref": "meta/format" },
|
|
6191
|
+
{ "$ref": "meta/content" }
|
|
6192
|
+
],
|
|
6193
|
+
"type": ["object", "boolean"],
|
|
6194
|
+
"properties": {
|
|
6195
|
+
"definitions": {
|
|
6196
|
+
"$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",
|
|
6197
|
+
"type": "object",
|
|
6198
|
+
"additionalProperties": { "$recursiveRef": "#" },
|
|
6199
|
+
"default": {}
|
|
6200
|
+
},
|
|
6201
|
+
"dependencies": {
|
|
6202
|
+
"$comment": "\"dependencies\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \"dependentSchemas\" and \"dependentRequired\"",
|
|
6203
|
+
"type": "object",
|
|
6204
|
+
"additionalProperties": { "anyOf": [{ "$recursiveRef": "#" }, { "$ref": "meta/validation#/$defs/stringArray" }] }
|
|
6205
|
+
}
|
|
6206
|
+
}
|
|
6207
|
+
};
|
|
6208
|
+
}));
|
|
6209
|
+
|
|
6210
|
+
//#endregion
|
|
6211
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json
|
|
6212
|
+
var require_applicator$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6213
|
+
module.exports = {
|
|
6214
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
6215
|
+
"$id": "https://json-schema.org/draft/2019-09/meta/applicator",
|
|
6216
|
+
"$vocabulary": { "https://json-schema.org/draft/2019-09/vocab/applicator": true },
|
|
6217
|
+
"$recursiveAnchor": true,
|
|
6218
|
+
"title": "Applicator vocabulary meta-schema",
|
|
6219
|
+
"type": ["object", "boolean"],
|
|
6220
|
+
"properties": {
|
|
6221
|
+
"additionalItems": { "$recursiveRef": "#" },
|
|
6222
|
+
"unevaluatedItems": { "$recursiveRef": "#" },
|
|
6223
|
+
"items": { "anyOf": [{ "$recursiveRef": "#" }, { "$ref": "#/$defs/schemaArray" }] },
|
|
6224
|
+
"contains": { "$recursiveRef": "#" },
|
|
6225
|
+
"additionalProperties": { "$recursiveRef": "#" },
|
|
6226
|
+
"unevaluatedProperties": { "$recursiveRef": "#" },
|
|
6227
|
+
"properties": {
|
|
6228
|
+
"type": "object",
|
|
6229
|
+
"additionalProperties": { "$recursiveRef": "#" },
|
|
6230
|
+
"default": {}
|
|
6231
|
+
},
|
|
6232
|
+
"patternProperties": {
|
|
6233
|
+
"type": "object",
|
|
6234
|
+
"additionalProperties": { "$recursiveRef": "#" },
|
|
6235
|
+
"propertyNames": { "format": "regex" },
|
|
6236
|
+
"default": {}
|
|
6237
|
+
},
|
|
6238
|
+
"dependentSchemas": {
|
|
6239
|
+
"type": "object",
|
|
6240
|
+
"additionalProperties": { "$recursiveRef": "#" }
|
|
6241
|
+
},
|
|
6242
|
+
"propertyNames": { "$recursiveRef": "#" },
|
|
6243
|
+
"if": { "$recursiveRef": "#" },
|
|
6244
|
+
"then": { "$recursiveRef": "#" },
|
|
6245
|
+
"else": { "$recursiveRef": "#" },
|
|
6246
|
+
"allOf": { "$ref": "#/$defs/schemaArray" },
|
|
6247
|
+
"anyOf": { "$ref": "#/$defs/schemaArray" },
|
|
6248
|
+
"oneOf": { "$ref": "#/$defs/schemaArray" },
|
|
6249
|
+
"not": { "$recursiveRef": "#" }
|
|
6250
|
+
},
|
|
6251
|
+
"$defs": { "schemaArray": {
|
|
6252
|
+
"type": "array",
|
|
6253
|
+
"minItems": 1,
|
|
6254
|
+
"items": { "$recursiveRef": "#" }
|
|
6255
|
+
} }
|
|
6256
|
+
};
|
|
6257
|
+
}));
|
|
6258
|
+
|
|
6259
|
+
//#endregion
|
|
6260
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json
|
|
6261
|
+
var require_content$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6262
|
+
module.exports = {
|
|
6263
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
6264
|
+
"$id": "https://json-schema.org/draft/2019-09/meta/content",
|
|
6265
|
+
"$vocabulary": { "https://json-schema.org/draft/2019-09/vocab/content": true },
|
|
6266
|
+
"$recursiveAnchor": true,
|
|
6267
|
+
"title": "Content vocabulary meta-schema",
|
|
6268
|
+
"type": ["object", "boolean"],
|
|
6269
|
+
"properties": {
|
|
6270
|
+
"contentMediaType": { "type": "string" },
|
|
6271
|
+
"contentEncoding": { "type": "string" },
|
|
6272
|
+
"contentSchema": { "$recursiveRef": "#" }
|
|
6273
|
+
}
|
|
6274
|
+
};
|
|
6275
|
+
}));
|
|
6276
|
+
|
|
6277
|
+
//#endregion
|
|
6278
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json
|
|
6279
|
+
var require_core$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6280
|
+
module.exports = {
|
|
6281
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
6282
|
+
"$id": "https://json-schema.org/draft/2019-09/meta/core",
|
|
6283
|
+
"$vocabulary": { "https://json-schema.org/draft/2019-09/vocab/core": true },
|
|
6284
|
+
"$recursiveAnchor": true,
|
|
6285
|
+
"title": "Core vocabulary meta-schema",
|
|
6286
|
+
"type": ["object", "boolean"],
|
|
6287
|
+
"properties": {
|
|
6288
|
+
"$id": {
|
|
6289
|
+
"type": "string",
|
|
6290
|
+
"format": "uri-reference",
|
|
6291
|
+
"$comment": "Non-empty fragments not allowed.",
|
|
6292
|
+
"pattern": "^[^#]*#?$"
|
|
6293
|
+
},
|
|
6294
|
+
"$schema": {
|
|
6295
|
+
"type": "string",
|
|
6296
|
+
"format": "uri"
|
|
6297
|
+
},
|
|
6298
|
+
"$anchor": {
|
|
6299
|
+
"type": "string",
|
|
6300
|
+
"pattern": "^[A-Za-z][-A-Za-z0-9.:_]*$"
|
|
6301
|
+
},
|
|
6302
|
+
"$ref": {
|
|
6303
|
+
"type": "string",
|
|
6304
|
+
"format": "uri-reference"
|
|
6305
|
+
},
|
|
6306
|
+
"$recursiveRef": {
|
|
6307
|
+
"type": "string",
|
|
6308
|
+
"format": "uri-reference"
|
|
6309
|
+
},
|
|
6310
|
+
"$recursiveAnchor": {
|
|
6311
|
+
"type": "boolean",
|
|
6312
|
+
"default": false
|
|
6313
|
+
},
|
|
6314
|
+
"$vocabulary": {
|
|
6315
|
+
"type": "object",
|
|
6316
|
+
"propertyNames": {
|
|
6317
|
+
"type": "string",
|
|
6318
|
+
"format": "uri"
|
|
6319
|
+
},
|
|
6320
|
+
"additionalProperties": { "type": "boolean" }
|
|
6321
|
+
},
|
|
6322
|
+
"$comment": { "type": "string" },
|
|
6323
|
+
"$defs": {
|
|
6324
|
+
"type": "object",
|
|
6325
|
+
"additionalProperties": { "$recursiveRef": "#" },
|
|
6326
|
+
"default": {}
|
|
6327
|
+
}
|
|
6328
|
+
}
|
|
6329
|
+
};
|
|
6330
|
+
}));
|
|
6331
|
+
|
|
6332
|
+
//#endregion
|
|
6333
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json
|
|
6334
|
+
var require_format = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6335
|
+
module.exports = {
|
|
6336
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
6337
|
+
"$id": "https://json-schema.org/draft/2019-09/meta/format",
|
|
6338
|
+
"$vocabulary": { "https://json-schema.org/draft/2019-09/vocab/format": true },
|
|
6339
|
+
"$recursiveAnchor": true,
|
|
6340
|
+
"title": "Format vocabulary meta-schema",
|
|
6341
|
+
"type": ["object", "boolean"],
|
|
6342
|
+
"properties": { "format": { "type": "string" } }
|
|
6343
|
+
};
|
|
6344
|
+
}));
|
|
6345
|
+
|
|
6346
|
+
//#endregion
|
|
6347
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json
|
|
6348
|
+
var require_meta_data$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6349
|
+
module.exports = {
|
|
6350
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
6351
|
+
"$id": "https://json-schema.org/draft/2019-09/meta/meta-data",
|
|
6352
|
+
"$vocabulary": { "https://json-schema.org/draft/2019-09/vocab/meta-data": true },
|
|
6353
|
+
"$recursiveAnchor": true,
|
|
6354
|
+
"title": "Meta-data vocabulary meta-schema",
|
|
6355
|
+
"type": ["object", "boolean"],
|
|
6356
|
+
"properties": {
|
|
6357
|
+
"title": { "type": "string" },
|
|
6358
|
+
"description": { "type": "string" },
|
|
6359
|
+
"default": true,
|
|
6360
|
+
"deprecated": {
|
|
6361
|
+
"type": "boolean",
|
|
6362
|
+
"default": false
|
|
6363
|
+
},
|
|
6364
|
+
"readOnly": {
|
|
6365
|
+
"type": "boolean",
|
|
6366
|
+
"default": false
|
|
6367
|
+
},
|
|
6368
|
+
"writeOnly": {
|
|
6369
|
+
"type": "boolean",
|
|
6370
|
+
"default": false
|
|
6371
|
+
},
|
|
6372
|
+
"examples": {
|
|
6373
|
+
"type": "array",
|
|
6374
|
+
"items": true
|
|
6375
|
+
}
|
|
6376
|
+
}
|
|
6377
|
+
};
|
|
6378
|
+
}));
|
|
6379
|
+
|
|
6380
|
+
//#endregion
|
|
6381
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json
|
|
6382
|
+
var require_validation$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6383
|
+
module.exports = {
|
|
6384
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
|
6385
|
+
"$id": "https://json-schema.org/draft/2019-09/meta/validation",
|
|
6386
|
+
"$vocabulary": { "https://json-schema.org/draft/2019-09/vocab/validation": true },
|
|
6387
|
+
"$recursiveAnchor": true,
|
|
6388
|
+
"title": "Validation vocabulary meta-schema",
|
|
6389
|
+
"type": ["object", "boolean"],
|
|
6390
|
+
"properties": {
|
|
6391
|
+
"multipleOf": {
|
|
6392
|
+
"type": "number",
|
|
6393
|
+
"exclusiveMinimum": 0
|
|
6394
|
+
},
|
|
6395
|
+
"maximum": { "type": "number" },
|
|
6396
|
+
"exclusiveMaximum": { "type": "number" },
|
|
6397
|
+
"minimum": { "type": "number" },
|
|
6398
|
+
"exclusiveMinimum": { "type": "number" },
|
|
6399
|
+
"maxLength": { "$ref": "#/$defs/nonNegativeInteger" },
|
|
6400
|
+
"minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
|
|
6401
|
+
"pattern": {
|
|
6402
|
+
"type": "string",
|
|
6403
|
+
"format": "regex"
|
|
6404
|
+
},
|
|
6405
|
+
"maxItems": { "$ref": "#/$defs/nonNegativeInteger" },
|
|
6406
|
+
"minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
|
|
6407
|
+
"uniqueItems": {
|
|
6408
|
+
"type": "boolean",
|
|
6409
|
+
"default": false
|
|
6410
|
+
},
|
|
6411
|
+
"maxContains": { "$ref": "#/$defs/nonNegativeInteger" },
|
|
6412
|
+
"minContains": {
|
|
6413
|
+
"$ref": "#/$defs/nonNegativeInteger",
|
|
6414
|
+
"default": 1
|
|
6415
|
+
},
|
|
6416
|
+
"maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },
|
|
6417
|
+
"minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
|
|
6418
|
+
"required": { "$ref": "#/$defs/stringArray" },
|
|
6419
|
+
"dependentRequired": {
|
|
6420
|
+
"type": "object",
|
|
6421
|
+
"additionalProperties": { "$ref": "#/$defs/stringArray" }
|
|
6422
|
+
},
|
|
6423
|
+
"const": true,
|
|
6424
|
+
"enum": {
|
|
6425
|
+
"type": "array",
|
|
6426
|
+
"items": true
|
|
6427
|
+
},
|
|
6428
|
+
"type": { "anyOf": [{ "$ref": "#/$defs/simpleTypes" }, {
|
|
6429
|
+
"type": "array",
|
|
6430
|
+
"items": { "$ref": "#/$defs/simpleTypes" },
|
|
6431
|
+
"minItems": 1,
|
|
6432
|
+
"uniqueItems": true
|
|
6433
|
+
}] }
|
|
6434
|
+
},
|
|
6435
|
+
"$defs": {
|
|
6436
|
+
"nonNegativeInteger": {
|
|
6437
|
+
"type": "integer",
|
|
6438
|
+
"minimum": 0
|
|
6439
|
+
},
|
|
6440
|
+
"nonNegativeIntegerDefault0": {
|
|
6441
|
+
"$ref": "#/$defs/nonNegativeInteger",
|
|
6442
|
+
"default": 0
|
|
6443
|
+
},
|
|
6444
|
+
"simpleTypes": { "enum": [
|
|
6445
|
+
"array",
|
|
6446
|
+
"boolean",
|
|
6447
|
+
"integer",
|
|
6448
|
+
"null",
|
|
6449
|
+
"number",
|
|
6450
|
+
"object",
|
|
6451
|
+
"string"
|
|
6452
|
+
] },
|
|
6453
|
+
"stringArray": {
|
|
6454
|
+
"type": "array",
|
|
6455
|
+
"items": { "type": "string" },
|
|
6456
|
+
"uniqueItems": true,
|
|
6457
|
+
"default": []
|
|
6458
|
+
}
|
|
6459
|
+
}
|
|
6460
|
+
};
|
|
6461
|
+
}));
|
|
6462
|
+
|
|
6463
|
+
//#endregion
|
|
6464
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-2019-09/index.js
|
|
6465
|
+
var require_json_schema_2019_09 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6466
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6467
|
+
const metaSchema = require_schema$1();
|
|
6468
|
+
const applicator = require_applicator$1();
|
|
6469
|
+
const content = require_content$1();
|
|
6470
|
+
const core = require_core$1();
|
|
6471
|
+
const format = require_format();
|
|
6472
|
+
const metadata = require_meta_data$1();
|
|
6473
|
+
const validation = require_validation$1();
|
|
6474
|
+
const META_SUPPORT_DATA = ["/properties"];
|
|
6475
|
+
function addMetaSchema2019($data) {
|
|
6476
|
+
[
|
|
6477
|
+
metaSchema,
|
|
6478
|
+
applicator,
|
|
6479
|
+
content,
|
|
6480
|
+
core,
|
|
6481
|
+
with$data(this, format),
|
|
6482
|
+
metadata,
|
|
6483
|
+
with$data(this, validation)
|
|
6484
|
+
].forEach((sch) => this.addMetaSchema(sch, void 0, false));
|
|
6485
|
+
return this;
|
|
6486
|
+
function with$data(ajv, sch) {
|
|
6487
|
+
return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch;
|
|
6488
|
+
}
|
|
6489
|
+
}
|
|
6490
|
+
exports.default = addMetaSchema2019;
|
|
6491
|
+
}));
|
|
6492
|
+
|
|
6493
|
+
//#endregion
|
|
6494
|
+
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/2019.js
|
|
6495
|
+
var require__2019 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6496
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6497
|
+
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv2019 = void 0;
|
|
6498
|
+
const core_1 = require_core$3();
|
|
6499
|
+
const draft7_1 = require_draft7();
|
|
6500
|
+
const dynamic_1 = require_dynamic();
|
|
6501
|
+
const next_1 = require_next();
|
|
6502
|
+
const unevaluated_1 = require_unevaluated$1();
|
|
6503
|
+
const discriminator_1 = require_discriminator();
|
|
6504
|
+
const json_schema_2019_09_1 = require_json_schema_2019_09();
|
|
6505
|
+
const META_SCHEMA_ID = "https://json-schema.org/draft/2019-09/schema";
|
|
6506
|
+
var Ajv2019 = class extends core_1.default {
|
|
6507
|
+
constructor(opts = {}) {
|
|
6508
|
+
super({
|
|
6509
|
+
...opts,
|
|
6510
|
+
dynamicRef: true,
|
|
6511
|
+
next: true,
|
|
6512
|
+
unevaluated: true
|
|
6513
|
+
});
|
|
6514
|
+
}
|
|
6515
|
+
_addVocabularies() {
|
|
6516
|
+
super._addVocabularies();
|
|
6517
|
+
this.addVocabulary(dynamic_1.default);
|
|
6518
|
+
draft7_1.default.forEach((v) => this.addVocabulary(v));
|
|
6519
|
+
this.addVocabulary(next_1.default);
|
|
6520
|
+
this.addVocabulary(unevaluated_1.default);
|
|
6521
|
+
if (this.opts.discriminator) this.addKeyword(discriminator_1.default);
|
|
6522
|
+
}
|
|
6523
|
+
_addDefaultMetaSchema() {
|
|
6524
|
+
super._addDefaultMetaSchema();
|
|
6525
|
+
const { $data, meta } = this.opts;
|
|
6526
|
+
if (!meta) return;
|
|
6527
|
+
json_schema_2019_09_1.default.call(this, $data);
|
|
6528
|
+
this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID;
|
|
6529
|
+
}
|
|
6530
|
+
defaultMeta() {
|
|
6531
|
+
return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
|
|
6532
|
+
}
|
|
6533
|
+
};
|
|
6534
|
+
exports.Ajv2019 = Ajv2019;
|
|
6535
|
+
module.exports = exports = Ajv2019;
|
|
6536
|
+
module.exports.Ajv2019 = Ajv2019;
|
|
6537
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6538
|
+
exports.default = Ajv2019;
|
|
6539
|
+
var validate_1 = require_validate();
|
|
6540
|
+
Object.defineProperty(exports, "KeywordCxt", {
|
|
6541
|
+
enumerable: true,
|
|
6542
|
+
get: function() {
|
|
6543
|
+
return validate_1.KeywordCxt;
|
|
6544
|
+
}
|
|
6545
|
+
});
|
|
6546
|
+
var codegen_1 = require_codegen();
|
|
6547
|
+
Object.defineProperty(exports, "_", {
|
|
6548
|
+
enumerable: true,
|
|
6549
|
+
get: function() {
|
|
6550
|
+
return codegen_1._;
|
|
6551
|
+
}
|
|
6552
|
+
});
|
|
6553
|
+
Object.defineProperty(exports, "str", {
|
|
6554
|
+
enumerable: true,
|
|
6555
|
+
get: function() {
|
|
6556
|
+
return codegen_1.str;
|
|
6557
|
+
}
|
|
6558
|
+
});
|
|
6559
|
+
Object.defineProperty(exports, "stringify", {
|
|
6560
|
+
enumerable: true,
|
|
6561
|
+
get: function() {
|
|
6562
|
+
return codegen_1.stringify;
|
|
6563
|
+
}
|
|
6564
|
+
});
|
|
6565
|
+
Object.defineProperty(exports, "nil", {
|
|
6566
|
+
enumerable: true,
|
|
6567
|
+
get: function() {
|
|
6568
|
+
return codegen_1.nil;
|
|
6569
|
+
}
|
|
6570
|
+
});
|
|
6571
|
+
Object.defineProperty(exports, "Name", {
|
|
6572
|
+
enumerable: true,
|
|
6573
|
+
get: function() {
|
|
6574
|
+
return codegen_1.Name;
|
|
6575
|
+
}
|
|
6576
|
+
});
|
|
6577
|
+
Object.defineProperty(exports, "CodeGen", {
|
|
6578
|
+
enumerable: true,
|
|
6579
|
+
get: function() {
|
|
6580
|
+
return codegen_1.CodeGen;
|
|
6581
|
+
}
|
|
6582
|
+
});
|
|
6583
|
+
var validation_error_1 = require_validation_error();
|
|
6584
|
+
Object.defineProperty(exports, "ValidationError", {
|
|
6585
|
+
enumerable: true,
|
|
6586
|
+
get: function() {
|
|
6587
|
+
return validation_error_1.default;
|
|
6588
|
+
}
|
|
6589
|
+
});
|
|
6590
|
+
var ref_error_1 = require_ref_error();
|
|
6591
|
+
Object.defineProperty(exports, "MissingRefError", {
|
|
6592
|
+
enumerable: true,
|
|
6593
|
+
get: function() {
|
|
6594
|
+
return ref_error_1.default;
|
|
6595
|
+
}
|
|
6596
|
+
});
|
|
6597
|
+
}));
|
|
6598
|
+
|
|
6168
6599
|
//#endregion
|
|
6169
6600
|
//#region ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft2020.js
|
|
6170
6601
|
var require_draft2020 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6171
6602
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6172
|
-
const core_1 = require_core$
|
|
6173
|
-
const validation_1 = require_validation$
|
|
6174
|
-
const applicator_1 = require_applicator$
|
|
6603
|
+
const core_1 = require_core$2();
|
|
6604
|
+
const validation_1 = require_validation$2();
|
|
6605
|
+
const applicator_1 = require_applicator$2();
|
|
6175
6606
|
const dynamic_1 = require_dynamic();
|
|
6176
6607
|
const next_1 = require_next();
|
|
6177
6608
|
const unevaluated_1 = require_unevaluated$1();
|
|
6178
|
-
const format_1 = require_format();
|
|
6609
|
+
const format_1 = require_format$1();
|
|
6179
6610
|
const metadata_1 = require_metadata();
|
|
6180
6611
|
const draft2020Vocabularies = [
|
|
6181
6612
|
dynamic_1.default,
|
|
@@ -6548,7 +6979,7 @@ var require_json_schema_2020_12 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6548
6979
|
var require__2020 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6549
6980
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6550
6981
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv2020 = void 0;
|
|
6551
|
-
const core_1 = require_core$
|
|
6982
|
+
const core_1 = require_core$3();
|
|
6552
6983
|
const draft2020_1 = require_draft2020();
|
|
6553
6984
|
const discriminator_1 = require_discriminator();
|
|
6554
6985
|
const json_schema_2020_12_1 = require_json_schema_2020_12();
|
|
@@ -6950,18 +7381,13 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6950
7381
|
//#endregion
|
|
6951
7382
|
//#region ../core-internal/src/validators/ajvProvider.ts
|
|
6952
7383
|
var import_ajv = require_ajv();
|
|
7384
|
+
var import__2019 = require__2019();
|
|
6953
7385
|
var import__2020 = require__2020();
|
|
6954
7386
|
var import_dist = /* @__PURE__ */ __toESM(require_dist(), 1);
|
|
6955
|
-
/**
|
|
6956
|
-
* Canonical 2020-12 `$schema` URIs (http + https variants, trailing-`#` stripped). When a schema
|
|
6957
|
-
* declares anything else, the default provider throws a plain `Error` with a clear message rather
|
|
6958
|
-
* than letting the engine crash on an opaque internal error or silently mis-validate.
|
|
6959
|
-
*/
|
|
6960
|
-
const DRAFT_2020_12_URIS = new Set(["https://json-schema.org/draft/2020-12/schema", "http://json-schema.org/draft/2020-12/schema"]);
|
|
6961
7387
|
/** `ajv-formats` default export, normalised through the CJS/ESM interop wrapper. */
|
|
6962
7388
|
const addFormats = import_dist.default;
|
|
6963
|
-
function createDefaultAjvInstance() {
|
|
6964
|
-
const ajv = new
|
|
7389
|
+
function createDefaultAjvInstance(engineClass) {
|
|
7390
|
+
const ajv = new engineClass({
|
|
6965
7391
|
strict: false,
|
|
6966
7392
|
validateFormats: true,
|
|
6967
7393
|
validateSchema: false,
|
|
@@ -6974,8 +7400,13 @@ function createDefaultAjvInstance() {
|
|
|
6974
7400
|
* AJV-backed JSON Schema validator. See `@modelcontextprotocol/{client,server}/validators/ajv`
|
|
6975
7401
|
* for the customisation entry point (re-exports `Ajv` and `addFormats` from the bundled copy).
|
|
6976
7402
|
*
|
|
6977
|
-
* Default
|
|
6978
|
-
*
|
|
7403
|
+
* Default dispatches on the schema's declared dialect: no `$schema` or 2020-12 → `Ajv2020`
|
|
7404
|
+
* (SEP-1613); 2019-09 → `Ajv2019`; draft-07 or draft-06 → the classic draft-07 `Ajv` class
|
|
7405
|
+
* (draft-07's changes over draft-06 are additive, so one engine covers both). Known draft-07 deviation: classic Ajv
|
|
7406
|
+
* evaluates keywords adjacent to `$ref` (stricter than draft-07's ignore-siblings rule, matching
|
|
7407
|
+
* v1's default engine), while the cfworker provider ignores them per spec.
|
|
7408
|
+
* Schemas declaring any other `$schema` are
|
|
7409
|
+
* rejected with a plain `Error`; pass a pre-configured Ajv instance to validate
|
|
6979
7410
|
* other dialects. The SDK bundles ajv internally but does not re-export `Ajv2020` (its type
|
|
6980
7411
|
* graph tips downstream declaration bundling — see #2339). To construct a custom 2020-12
|
|
6981
7412
|
* instance, add `ajv` to your own dependencies (matching the SDK's pinned version) and
|
|
@@ -7004,14 +7435,19 @@ function createDefaultAjvInstance() {
|
|
|
7004
7435
|
*/
|
|
7005
7436
|
var AjvJsonSchemaValidator = class {
|
|
7006
7437
|
_ajv;
|
|
7007
|
-
/**
|
|
7438
|
+
/** Lazy classic (draft-07) engine, built on the first draft-07/draft-06-declared schema. */
|
|
7439
|
+
_ajvDraft7;
|
|
7440
|
+
/** Lazy 2019-09 engine, built on the first 2019-09-declared schema. */
|
|
7441
|
+
_ajv2019;
|
|
7442
|
+
/** True iff the constructor received a caller-supplied engine; the `$schema` dispatch is skipped. */
|
|
7008
7443
|
_userAjv;
|
|
7009
7444
|
/**
|
|
7010
7445
|
* @param ajv - Optional pre-configured AJV-compatible instance. When supplied, this instance is
|
|
7011
7446
|
* used for **every** schema regardless of its declared `$schema` (the caller owns dialect
|
|
7012
|
-
* choice). When omitted, the provider constructs
|
|
7447
|
+
* choice). When omitted, the provider constructs per-dialect engines (`Ajv2020`, `Ajv2019`,
|
|
7448
|
+
* and the classic draft-07 `Ajv` for draft-07/06-declared schemas) with
|
|
7013
7449
|
* `strict: false`, `validateFormats: true`, `validateSchema: false`, `allErrors: true`, and
|
|
7014
|
-
* `ajv-formats` registered — **lazily, on the first {@linkcode getValidator} call**, so
|
|
7450
|
+
* `ajv-formats` registered — **lazily, on the first {@linkcode getValidator} call needing each**, so
|
|
7015
7451
|
* constructing the provider (e.g. as the default validator of a `Client`/`Server` that never
|
|
7016
7452
|
* validates a JSON Schema) does not pay the ajv + ajv-formats instantiation cost. The parameter
|
|
7017
7453
|
* is typed structurally so consumers who don't pass an instance need not have `ajv` installed.
|
|
@@ -7020,16 +7456,25 @@ var AjvJsonSchemaValidator = class {
|
|
|
7020
7456
|
this._userAjv = ajv !== void 0;
|
|
7021
7457
|
this._ajv = ajv;
|
|
7022
7458
|
}
|
|
7023
|
-
/** The underlying engine — the default instance is created on first use. */
|
|
7459
|
+
/** The underlying 2020-12 engine — the default instance is created on first use. */
|
|
7024
7460
|
get ajv() {
|
|
7025
|
-
return this._ajv ??= createDefaultAjvInstance();
|
|
7461
|
+
return this._ajv ??= createDefaultAjvInstance(import__2020.Ajv2020);
|
|
7462
|
+
}
|
|
7463
|
+
/**
|
|
7464
|
+
* Pick the engine for a schema's declared dialect. A caller-supplied engine is used for
|
|
7465
|
+
* every schema — do not second-guess by `$schema` (bring-your-own-validator means
|
|
7466
|
+
* bring-your-own-dialect). Otherwise: no `$schema` or 2020-12 → `Ajv2020`; 2019-09 →
|
|
7467
|
+
* `Ajv2019`; draft-07 or draft-06 → classic `Ajv`; anything else → `Error`.
|
|
7468
|
+
*/
|
|
7469
|
+
_engineFor(schema) {
|
|
7470
|
+
if (this._userAjv) return this.ajv;
|
|
7471
|
+
const dialect = declaredDialect(schema, "pass a pre-configured Ajv instance to AjvJsonSchemaValidator(ajv) to validate other dialects.");
|
|
7472
|
+
if (dialect === "2020-12") return this.ajv;
|
|
7473
|
+
if (dialect === "2019-09") return this._ajv2019 ??= createDefaultAjvInstance(import__2019.Ajv2019);
|
|
7474
|
+
return this._ajvDraft7 ??= createDefaultAjvInstance(import_ajv.Ajv);
|
|
7026
7475
|
}
|
|
7027
7476
|
getValidator(schema) {
|
|
7028
|
-
|
|
7029
|
-
const declared = schema.$schema.slice(0, 200);
|
|
7030
|
-
throw new Error(`JSON Schema declares an unsupported dialect ("$schema": "${declared}"). The default validator supports JSON Schema 2020-12 only; pass a pre-configured Ajv instance to AjvJsonSchemaValidator(ajv) to validate other dialects.`);
|
|
7031
|
-
}
|
|
7032
|
-
const engine = this.ajv;
|
|
7477
|
+
const engine = this._engineFor(schema);
|
|
7033
7478
|
const ajvValidator = "$id" in schema && typeof schema.$id === "string" ? engine.getSchema(schema.$id) ?? engine.compile(schema) : engine.compile(schema);
|
|
7034
7479
|
return (input) => {
|
|
7035
7480
|
return ajvValidator(input) ? {
|
|
@@ -7066,4 +7511,4 @@ const Ajv = import_ajv.Ajv;
|
|
|
7066
7511
|
|
|
7067
7512
|
//#endregion
|
|
7068
7513
|
export { AjvJsonSchemaValidator as n, addFormats as r, Ajv as t };
|
|
7069
|
-
//# sourceMappingURL=ajvProvider-
|
|
7514
|
+
//# sourceMappingURL=ajvProvider-CEoC__sr.mjs.map
|