@kubb/agent 5.0.0-beta.29 → 5.0.0-beta.30

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "date": "2026-05-24T14:22:38.989Z",
2
+ "date": "2026-05-25T11:45:45.547Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -4735,165 +4735,104 @@ function extractRefName(ref) {
4735
4735
  var _a;
4736
4736
  return (_a = ref.split("/").at(-1)) != null ? _a : ref;
4737
4737
  }
4738
+ const visitorKeysByKind = {
4739
+ Input: ["schemas", "operations"],
4740
+ Operation: [
4741
+ "parameters",
4742
+ "requestBody",
4743
+ "responses"
4744
+ ],
4745
+ RequestBody: ["content"],
4746
+ Content: ["schema"],
4747
+ Response: ["content"],
4748
+ Schema: [
4749
+ "properties",
4750
+ "items",
4751
+ "members",
4752
+ "additionalProperties"
4753
+ ],
4754
+ Property: ["schema"],
4755
+ Parameter: ["schema"]
4756
+ };
4757
+ function isNode(value) {
4758
+ return typeof value === "object" && value !== null && "kind" in value;
4759
+ }
4738
4760
  function* getChildren(node, recurse) {
4739
- var _a;
4740
- if (node.kind === "Input") {
4741
- yield* node.schemas;
4742
- yield* node.operations;
4743
- return;
4744
- }
4745
- if (node.kind === "Output") return;
4746
- if (node.kind === "Operation") {
4747
- yield* node.parameters;
4748
- if ((_a = node.requestBody) == null ? void 0 : _a.content) {
4749
- for (const c of node.requestBody.content) if (c.schema) yield c.schema;
4750
- }
4751
- yield* node.responses;
4752
- return;
4753
- }
4754
- if (node.kind === "Schema") {
4755
- if (!recurse) return;
4756
- if ("properties" in node && node.properties.length > 0) yield* node.properties;
4757
- if ("items" in node && node.items) yield* node.items;
4758
- if ("members" in node && node.members) yield* node.members;
4759
- if ("additionalProperties" in node && node.additionalProperties && node.additionalProperties !== true) yield node.additionalProperties;
4760
- return;
4761
- }
4762
- if (node.kind === "Property") {
4763
- yield node.schema;
4764
- return;
4765
- }
4766
- if (node.kind === "Parameter") {
4767
- yield node.schema;
4768
- return;
4769
- }
4770
- if (node.kind === "Response") {
4771
- if (node.content) {
4772
- for (const c of node.content) if (c.schema) yield c.schema;
4773
- }
4774
- return;
4775
- }
4761
+ if (node.kind === "Schema" && !recurse) return;
4762
+ const keys = visitorKeysByKind[node.kind];
4763
+ if (!keys) return;
4764
+ const record = node;
4765
+ for (const key of keys) {
4766
+ const value = record[key];
4767
+ if (Array.isArray(value)) {
4768
+ for (const item of value) if (isNode(item)) yield item;
4769
+ } else if (isNode(value)) yield value;
4770
+ }
4771
+ }
4772
+ const VISITOR_KEY_BY_KIND = {
4773
+ Input: "input",
4774
+ Output: "output",
4775
+ Operation: "operation",
4776
+ Schema: "schema",
4777
+ Property: "property",
4778
+ Parameter: "parameter",
4779
+ Response: "response"
4780
+ };
4781
+ function applyVisitor(node, visitor, parent) {
4782
+ const key = VISITOR_KEY_BY_KIND[node.kind];
4783
+ if (!key) return void 0;
4784
+ const fn = visitor[key];
4785
+ return fn == null ? void 0 : fn(node, { parent });
4776
4786
  }
4777
4787
  function transform(node, options) {
4778
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
4788
+ var _a;
4779
4789
  const { depth, parent, ...visitor } = options;
4780
4790
  const recurse = (depth != null ? depth : visitorDepths.deep) === visitorDepths.deep;
4781
- if (node.kind === "Input") {
4782
- const input = (_b = (_a = visitor.input) == null ? void 0 : _a.call(visitor, node, { parent })) != null ? _b : node;
4783
- return {
4784
- ...input,
4785
- schemas: input.schemas.map((s) => transform(s, {
4786
- ...options,
4787
- parent: input
4788
- })),
4789
- operations: input.operations.map((op) => transform(op, {
4790
- ...options,
4791
- parent: input
4792
- }))
4793
- };
4794
- }
4795
- if (node.kind === "Output") return (_d = (_c = visitor.output) == null ? void 0 : _c.call(visitor, node, { parent })) != null ? _d : node;
4796
- if (node.kind === "Operation") {
4797
- const op = (_f = (_e = visitor.operation) == null ? void 0 : _e.call(visitor, node, { parent })) != null ? _f : node;
4798
- return {
4799
- ...op,
4800
- parameters: op.parameters.map((p) => transform(p, {
4801
- ...options,
4802
- parent: op
4803
- })),
4804
- requestBody: op.requestBody ? {
4805
- ...op.requestBody,
4806
- content: (_g = op.requestBody.content) == null ? void 0 : _g.map((c) => ({
4807
- ...c,
4808
- schema: c.schema ? transform(c.schema, {
4809
- ...options,
4810
- parent: op
4811
- }) : void 0
4812
- }))
4813
- } : void 0,
4814
- responses: op.responses.map((r) => transform(r, {
4815
- ...options,
4816
- parent: op
4817
- }))
4818
- };
4819
- }
4820
- if (node.kind === "Schema") {
4821
- const schema = (_i = (_h = visitor.schema) == null ? void 0 : _h.call(visitor, node, { parent })) != null ? _i : node;
4822
- const childOptions = {
4823
- ...options,
4824
- parent: schema
4825
- };
4826
- return {
4827
- ...schema,
4828
- ..."properties" in schema && recurse ? { properties: schema.properties.map((p) => transform(p, childOptions)) } : {},
4829
- ..."items" in schema && recurse ? { items: (_j = schema.items) == null ? void 0 : _j.map((i) => transform(i, childOptions)) } : {},
4830
- ..."members" in schema && recurse ? { members: (_k = schema.members) == null ? void 0 : _k.map((m) => transform(m, childOptions)) } : {},
4831
- ..."additionalProperties" in schema && recurse && schema.additionalProperties && schema.additionalProperties !== true ? { additionalProperties: transform(schema.additionalProperties, childOptions) } : {}
4832
- };
4833
- }
4834
- if (node.kind === "Property") {
4835
- const prop = (_m = (_l = visitor.property) == null ? void 0 : _l.call(visitor, node, { parent })) != null ? _m : node;
4836
- return createProperty({
4837
- ...prop,
4838
- schema: transform(prop.schema, {
4839
- ...options,
4840
- parent: prop
4841
- })
4842
- });
4843
- }
4844
- if (node.kind === "Parameter") {
4845
- const param = (_o = (_n = visitor.parameter) == null ? void 0 : _n.call(visitor, node, { parent })) != null ? _o : node;
4846
- return createParameter({
4847
- ...param,
4848
- schema: transform(param.schema, {
4849
- ...options,
4850
- parent: param
4851
- })
4852
- });
4853
- }
4854
- if (node.kind === "Response") {
4855
- const response = (_q = (_p = visitor.response) == null ? void 0 : _p.call(visitor, node, { parent })) != null ? _q : node;
4856
- return {
4857
- ...response,
4858
- content: (_r = response.content) == null ? void 0 : _r.map((entry) => ({
4859
- ...entry,
4860
- schema: entry.schema ? transform(entry.schema, {
4861
- ...options,
4862
- parent: response
4863
- }) : entry.schema
4864
- }))
4865
- };
4791
+ const rebuilt = transformChildren((_a = applyVisitor(node, visitor, parent)) != null ? _a : node, options, recurse);
4792
+ if (rebuilt === node) return node;
4793
+ const finalize = nodeFinalizers[rebuilt.kind];
4794
+ return finalize ? finalize(rebuilt) : rebuilt;
4795
+ }
4796
+ const nodeFinalizers = {
4797
+ Property: (node) => createProperty(node),
4798
+ Parameter: (node) => createParameter(node)
4799
+ };
4800
+ function transformChildren(node, options, recurse) {
4801
+ if (node.kind === "Schema" && !recurse) return node;
4802
+ const keys = visitorKeysByKind[node.kind];
4803
+ if (!keys) return node;
4804
+ const record = node;
4805
+ const childOptions = {
4806
+ ...options,
4807
+ parent: node
4808
+ };
4809
+ let updates;
4810
+ for (const key of keys) {
4811
+ if (!(key in record)) continue;
4812
+ const value = record[key];
4813
+ if (Array.isArray(value)) {
4814
+ let changed = false;
4815
+ const mapped = value.map((item) => {
4816
+ if (!isNode(item)) return item;
4817
+ const next = transform(item, childOptions);
4818
+ if (next !== item) changed = true;
4819
+ return next;
4820
+ });
4821
+ if (changed) (updates != null ? updates : updates = {})[key] = mapped;
4822
+ } else if (isNode(value)) {
4823
+ const next = transform(value, childOptions);
4824
+ if (next !== value) (updates != null ? updates : updates = {})[key] = next;
4825
+ }
4866
4826
  }
4867
- return node;
4827
+ return updates ? {
4828
+ ...node,
4829
+ ...updates
4830
+ } : node;
4868
4831
  }
4869
4832
  function* collectLazy(node, options) {
4870
- var _a, _b, _c, _d, _e, _f, _g;
4871
4833
  const { depth, parent, ...visitor } = options;
4872
4834
  const recurse = (depth != null ? depth : visitorDepths.deep) === visitorDepths.deep;
4873
- let v;
4874
- switch (node.kind) {
4875
- case "Input":
4876
- v = (_a = visitor.input) == null ? void 0 : _a.call(visitor, node, { parent });
4877
- break;
4878
- case "Output":
4879
- v = (_b = visitor.output) == null ? void 0 : _b.call(visitor, node, { parent });
4880
- break;
4881
- case "Operation":
4882
- v = (_c = visitor.operation) == null ? void 0 : _c.call(visitor, node, { parent });
4883
- break;
4884
- case "Schema":
4885
- v = (_d = visitor.schema) == null ? void 0 : _d.call(visitor, node, { parent });
4886
- break;
4887
- case "Property":
4888
- v = (_e = visitor.property) == null ? void 0 : _e.call(visitor, node, { parent });
4889
- break;
4890
- case "Parameter":
4891
- v = (_f = visitor.parameter) == null ? void 0 : _f.call(visitor, node, { parent });
4892
- break;
4893
- case "Response":
4894
- v = (_g = visitor.response) == null ? void 0 : _g.call(visitor, node, { parent });
4895
- break;
4896
- }
4835
+ const v = applyVisitor(node, visitor, parent);
4897
4836
  if (v != null) yield v;
4898
4837
  for (const child of getChildren(node, recurse)) yield* collectLazy(child, {
4899
4838
  ...options,
@@ -4932,6 +4871,11 @@ function combineSources(sources) {
4932
4871
  }
4933
4872
  return [...seen.values()];
4934
4873
  }
4874
+ function mergeNameArrays(existing, incoming) {
4875
+ const merged = new Set(existing);
4876
+ for (const name of incoming) merged.add(name);
4877
+ return [...merged];
4878
+ }
4935
4879
  function combineExports(exports) {
4936
4880
  const result = [];
4937
4881
  const namedByPath = /* @__PURE__ */ new Map();
@@ -4947,11 +4891,8 @@ function combineExports(exports) {
4947
4891
  if (!name.length) continue;
4948
4892
  const key = pathTypeKey(path2, isTypeOnly);
4949
4893
  const existing = namedByPath.get(key);
4950
- if (existing && Array.isArray(existing.name)) {
4951
- const merged = new Set(existing.name);
4952
- for (const n of name) merged.add(n);
4953
- existing.name = [...merged];
4954
- } else {
4894
+ if (existing && Array.isArray(existing.name)) existing.name = mergeNameArrays(existing.name, name);
4895
+ else {
4955
4896
  const newItem = {
4956
4897
  ...curr,
4957
4898
  name: [...new Set(name)]
@@ -5008,11 +4949,8 @@ function combineImports(imports, exports, source) {
5008
4949
  if (!name.length) continue;
5009
4950
  const key = pathTypeKey(path2, isTypeOnly);
5010
4951
  const existing = namedByPath.get(key);
5011
- if (existing && Array.isArray(existing.name)) {
5012
- const merged = new Set(existing.name);
5013
- for (const n of name) merged.add(n);
5014
- existing.name = [...merged];
5015
- } else {
4952
+ if (existing && Array.isArray(existing.name)) existing.name = mergeNameArrays(existing.name, name);
4953
+ else {
5016
4954
  const newItem = {
5017
4955
  ...curr,
5018
4956
  name
@@ -5611,8 +5549,8 @@ function matchesOperationPattern(node, type, pattern) {
5611
5549
  var _a2, _b2, _c2;
5612
5550
  if (type === "tag") return node.tags.some((tag) => testPattern(tag, pattern));
5613
5551
  if (type === "operationId") return testPattern(node.operationId, pattern);
5614
- if (type === "path") return testPattern(node.path, pattern);
5615
- if (type === "method") return testPattern(node.method.toLowerCase(), pattern);
5552
+ if (type === "path") return node.path !== void 0 && testPattern(node.path, pattern);
5553
+ if (type === "method") return node.method !== void 0 && testPattern(node.method.toLowerCase(), pattern);
5616
5554
  if (type === "contentType") return (_c2 = (_b2 = (_a2 = node.requestBody) == null ? void 0 : _a2.content) == null ? void 0 : _b2.some((c) => testPattern(c.contentType, pattern))) != null ? _c2 : false;
5617
5555
  return false;
5618
5556
  }
@@ -6609,12 +6547,12 @@ registerPlugin_fn = function(plugin) {
6609
6547
  var _a3, _b3;
6610
6548
  return gen.renderer === null ? void 0 : (_b3 = (_a3 = gen.renderer) != null ? _a3 : state.plugin.renderer) != null ? _b3 : state.generatorContext.config.renderer;
6611
6549
  };
6612
- const dispatchSchema = async (state, node) => {
6550
+ const dispatchNode = async (state, node, dispatch) => {
6613
6551
  if (state.failed) return;
6614
6552
  try {
6615
6553
  const { plugin, generatorContext, generators } = state;
6616
6554
  const transformedNode = plugin.transformer ? transform(node, plugin.transformer) : node;
6617
- if (state.allowedSchemaNames !== null && transformedNode.name && !state.allowedSchemaNames.has(transformedNode.name)) return;
6555
+ if (dispatch.checkAllowedNames && state.allowedSchemaNames !== null && "name" in transformedNode && transformedNode.name && !state.allowedSchemaNames.has(transformedNode.name)) return;
6618
6556
  const { exclude, include, override } = plugin.options;
6619
6557
  const options = state.optionsAreStatic ? plugin.options : generatorContext.resolver.resolveOptions(transformedNode, {
6620
6558
  options: plugin.options,
@@ -6628,8 +6566,9 @@ registerPlugin_fn = function(plugin) {
6628
6566
  options
6629
6567
  };
6630
6568
  for (const gen of generators) {
6631
- if (!gen.schema) continue;
6632
- const raw = gen.schema(transformedNode, ctx);
6569
+ const generate = gen[dispatch.method];
6570
+ if (!generate) continue;
6571
+ const raw = generate(transformedNode, ctx);
6633
6572
  const applied = applyHookResult({
6634
6573
  result: isPromise(raw) ? await raw : raw,
6635
6574
  driver,
@@ -6637,54 +6576,31 @@ registerPlugin_fn = function(plugin) {
6637
6576
  });
6638
6577
  if (isPromise(applied)) await applied;
6639
6578
  }
6640
- if (emitsSchemaHook) await this.hooks.emit("kubb:generate:schema", transformedNode, ctx);
6579
+ if (dispatch.emit) await dispatch.emit(transformedNode, ctx);
6641
6580
  } catch (caughtError) {
6642
6581
  state.failed = true;
6643
6582
  state.error = caughtError;
6644
6583
  }
6645
6584
  };
6646
- const dispatchOperation = async (state, node) => {
6647
- if (state.failed) return;
6648
- try {
6649
- const { plugin, generatorContext, generators } = state;
6650
- const transformedNode = plugin.transformer ? transform(node, plugin.transformer) : node;
6651
- const { exclude, include, override } = plugin.options;
6652
- const options = state.optionsAreStatic ? plugin.options : generatorContext.resolver.resolveOptions(transformedNode, {
6653
- options: plugin.options,
6654
- exclude,
6655
- include,
6656
- override
6657
- });
6658
- if (options === null) return;
6659
- const ctx = {
6660
- ...generatorContext,
6661
- options
6662
- };
6663
- for (const gen of generators) {
6664
- if (!gen.operation) continue;
6665
- const raw = gen.operation(transformedNode, ctx);
6666
- const applied = applyHookResult({
6667
- result: isPromise(raw) ? await raw : raw,
6668
- driver,
6669
- rendererFactory: resolveRendererFor(gen, state)
6670
- });
6671
- if (isPromise(applied)) await applied;
6672
- }
6673
- if (emitsOperationHook) await this.hooks.emit("kubb:generate:operation", transformedNode, ctx);
6674
- } catch (caughtError) {
6675
- state.failed = true;
6676
- state.error = caughtError;
6677
- }
6585
+ const schemaDispatch = {
6586
+ method: "schema",
6587
+ checkAllowedNames: true,
6588
+ emit: emitsSchemaHook ? (node, ctx) => this.hooks.emit("kubb:generate:schema", node, ctx) : null
6589
+ };
6590
+ const operationDispatch = {
6591
+ method: "operation",
6592
+ checkAllowedNames: false,
6593
+ emit: emitsOperationHook ? (node, ctx) => this.hooks.emit("kubb:generate:operation", node, ctx) : null
6678
6594
  };
6679
6595
  const needsCollectedOperations = this.hooks.listenerCount("kubb:generate:operations") > 0 || states.some((s) => s.generators.some((g) => !!g.operations));
6680
6596
  const collectedOperations = needsCollectedOperations ? [] : void 0;
6681
- await forBatches(schemas, (nodes) => Promise.all(nodes.flatMap((n) => states.map((state) => dispatchSchema(state, n)))), {
6597
+ await forBatches(schemas, (nodes) => Promise.all(nodes.flatMap((n) => states.map((state) => dispatchNode(state, n, schemaDispatch)))), {
6682
6598
  concurrency: 8,
6683
6599
  flush: flushPending
6684
6600
  });
6685
6601
  await forBatches(operations, (nodes) => {
6686
6602
  if (needsCollectedOperations) collectedOperations.push(...nodes);
6687
- return Promise.all(nodes.flatMap((n) => states.map((state) => dispatchOperation(state, n))));
6603
+ return Promise.all(nodes.flatMap((n) => states.map((state) => dispatchNode(state, n, operationDispatch))));
6688
6604
  }, {
6689
6605
  concurrency: 8,
6690
6606
  flush: flushPending
@@ -6853,7 +6769,7 @@ async function clean(path) {
6853
6769
  force: true
6854
6770
  });
6855
6771
  }
6856
- var version$1 = "5.0.0-beta.29";
6772
+ var version$1 = "5.0.0-beta.30";
6857
6773
  function createStorage(build) {
6858
6774
  return (options) => build(options != null ? options : {});
6859
6775
  }
@@ -7122,7 +7038,7 @@ const memoryStorage = createStorage(() => {
7122
7038
  };
7123
7039
  });
7124
7040
 
7125
- var version = "5.0.0-beta.29";
7041
+ var version = "5.0.0-beta.30";
7126
7042
 
7127
7043
  function isCommandMessage(msg) {
7128
7044
  return msg.type === "command";
@@ -1 +1 @@
1
- {"version":3,"file":"nitro.mjs","sources":["../../../../../../node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs","../../../../../../node_modules/.pnpm/ufo@1.6.4/node_modules/ufo/dist/index.mjs","../../../../../../node_modules/.pnpm/radix3@1.1.2/node_modules/radix3/dist/index.mjs","../../../../../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs","../../../../../../node_modules/.pnpm/node-mock-http@1.0.4/node_modules/node-mock-http/dist/index.mjs","../../../../../../node_modules/.pnpm/h3@1.15.11/node_modules/h3/dist/index.mjs","../../../../../../node_modules/.pnpm/hookable@5.5.3/node_modules/hookable/dist/index.mjs","../../../../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/native.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs","../../../../../../node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../../../node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/route-rules-utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../server/utils/logger.ts","../../../../server/plugins/fetch-logger.ts","../../../../../../internals/utils/dist/index.js","../../../../server/plugins/heartbeat.ts","../../../../server/utils/token.ts","../../../../server/utils/api.ts","../../../../../ast/dist/index.js","../../../../../core/dist/KubbDriver-x86YM1Ia.js","../../../../../core/dist/index.js","../../../../server/types/agent.ts","../../../../server/utils/agentCache.ts","../../../../server/utils/executeHooks.ts","../../../../server/utils/generate.ts","../../../../server/utils/getCosmiConfig.ts","../../../../server/utils/loadConfig.ts","../../../../server/utils/resolvePlugins.ts","../../../../server/utils/mergePlugins.ts","../../../../server/utils/setupHookListener.ts","../../../../server/constants.ts","../../../../server/utils/ws.ts","../../../../server/utils/connectStudio.ts","../../../../server/utils/runtimeConfig.ts","../../../../server/plugins/studio.ts","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/presets/node/runtime/node-server.mjs"],"names":["createRouter","f","h","i","l","createError","mergeHeaders","s","nodeFetch","Headers","Headers$1","AbortController$1","normalizeKey","defineDriver","DRIVER_NAME","createStorage","fsPromises","PATH_TRAVERSE_RE","fsp","_inlineAppConfig","createRadixRouter","formatMs","resolve","_a","process","memoize","path","__publicField","__privateAdd","__privateGet","__privateMethod","batch","__privateSet","_b","_c","_d","extname","r","e","n","o","files","duration","readFile","writeFile","readdir","version","error","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler","gracefulShutdown","HttpsServer","HttpServer"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,55,56,57,58]}
1
+ {"version":3,"file":"nitro.mjs","sources":["../../../../../../node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs","../../../../../../node_modules/.pnpm/ufo@1.6.4/node_modules/ufo/dist/index.mjs","../../../../../../node_modules/.pnpm/radix3@1.1.2/node_modules/radix3/dist/index.mjs","../../../../../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs","../../../../../../node_modules/.pnpm/node-mock-http@1.0.4/node_modules/node-mock-http/dist/index.mjs","../../../../../../node_modules/.pnpm/h3@1.15.11/node_modules/h3/dist/index.mjs","../../../../../../node_modules/.pnpm/hookable@5.5.3/node_modules/hookable/dist/index.mjs","../../../../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/native.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.5_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs","../../../../../../node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../../../node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/route-rules-utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../server/utils/logger.ts","../../../../server/plugins/fetch-logger.ts","../../../../../../internals/utils/dist/index.js","../../../../server/plugins/heartbeat.ts","../../../../server/utils/token.ts","../../../../server/utils/api.ts","../../../../../ast/dist/index.js","../../../../../core/dist/KubbDriver-CFx2DdhF.js","../../../../../core/dist/index.js","../../../../server/types/agent.ts","../../../../server/utils/agentCache.ts","../../../../server/utils/executeHooks.ts","../../../../server/utils/generate.ts","../../../../server/utils/getCosmiConfig.ts","../../../../server/utils/loadConfig.ts","../../../../server/utils/resolvePlugins.ts","../../../../server/utils/mergePlugins.ts","../../../../server/utils/setupHookListener.ts","../../../../server/constants.ts","../../../../server/utils/ws.ts","../../../../server/utils/connectStudio.ts","../../../../server/utils/runtimeConfig.ts","../../../../server/plugins/studio.ts","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.4_rolldown@1.0.1/node_modules/nitropack/dist/presets/node/runtime/node-server.mjs"],"names":["createRouter","f","h","i","l","createError","mergeHeaders","s","nodeFetch","Headers","Headers$1","AbortController$1","normalizeKey","defineDriver","DRIVER_NAME","createStorage","fsPromises","PATH_TRAVERSE_RE","fsp","_inlineAppConfig","createRadixRouter","formatMs","resolve","_a","process","memoize","path","__publicField","__privateAdd","__privateGet","__privateMethod","batch","__privateSet","_b","_c","_d","extname","r","e","n","o","files","duration","readFile","writeFile","readdir","version","error","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler","gracefulShutdown","HttpsServer","HttpServer"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,55,56,57,58]}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent-prod",
3
- "version": "5.0.0-beta.29",
3
+ "version": "5.0.0-beta.30",
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent",
3
- "version": "5.0.0-beta.29",
3
+ "version": "5.0.0-beta.30",
4
4
  "description": "HTTP agent server for Kubb. Exposes code generation via REST API and WebSocket with real-time Kubb Studio integration, machine binding, and Docker support.",
5
5
  "keywords": [
6
6
  "agent",
@@ -43,18 +43,18 @@
43
43
  "tinyexec": "^1.1.2",
44
44
  "unstorage": "^1.17.5",
45
45
  "ws": "^8.20.1",
46
- "@kubb/ast": "5.0.0-beta.29",
47
- "@kubb/core": "5.0.0-beta.29"
46
+ "@kubb/ast": "5.0.0-beta.30",
47
+ "@kubb/core": "5.0.0-beta.30"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/ws": "^8.18.1",
51
51
  "msw": "^2.14.6",
52
52
  "nitropack": "^2.13.4",
53
53
  "vite": "^8.0.13",
54
+ "@kubb/adapter-oas": "5.0.0-beta.30",
54
55
  "@internals/utils": "0.0.0",
55
- "@kubb/adapter-oas": "5.0.0-beta.29",
56
- "@kubb/parser-ts": "5.0.0-beta.29",
57
- "@kubb/renderer-jsx": "5.0.0-beta.29"
56
+ "@kubb/parser-ts": "5.0.0-beta.30",
57
+ "@kubb/renderer-jsx": "5.0.0-beta.30"
58
58
  },
59
59
  "engines": {
60
60
  "node": ">=22"