@kubb/agent 4.31.6 → 4.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  {
2
- "date": "2026-03-05T20:04:22.112Z",
2
+ "date": "2026-03-06T09:46:49.415Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -4478,52 +4478,6 @@ const _a2VEEUGb5K4b1gyM9hOmO1Xz0hUJSFuGyIT3cHsvE = defineNitroPlugin((nitro) =>
4478
4478
  });
4479
4479
  });
4480
4480
 
4481
- function getStorage() {
4482
- return useStorage("kubb");
4483
- }
4484
- function isSessionValid(session) {
4485
- try {
4486
- const expiresAt = new Date(session.expiresAt);
4487
- const now = /* @__PURE__ */ new Date();
4488
- return now.getTime() < expiresAt.getTime() - 6e4;
4489
- } catch {
4490
- return false;
4491
- }
4492
- }
4493
- function getSessionKey(token) {
4494
- return `sessions:${createHash("sha512").update(token).digest("hex")}`;
4495
- }
4496
- async function getCachedSession(sessionKey) {
4497
- const storage = getStorage();
4498
- const agentSession = await storage.getItem(sessionKey);
4499
- if (!agentSession) {
4500
- return null;
4501
- }
4502
- if (!isSessionValid(agentSession)) {
4503
- return null;
4504
- }
4505
- return agentSession;
4506
- }
4507
- async function cacheSession({ sessionKey, session }) {
4508
- const storage = getStorage();
4509
- await storage.setItem(sessionKey, { ...session, storedAt: (/* @__PURE__ */ new Date()).toISOString(), configs: [] });
4510
- }
4511
- async function removeCachedSession(sessionKey) {
4512
- const storage = getStorage();
4513
- const maskedSessionKey = maskedString(sessionKey.replace("sessions:", ""));
4514
- logger.info(`[${maskedSessionKey}] Removing expired agent session from cache...`);
4515
- await storage.removeItem(sessionKey);
4516
- logger.success(`[${maskedSessionKey}] Removed expired agent session from cache`);
4517
- }
4518
- async function saveStudioConfigToStorage({ sessionKey, config }) {
4519
- const storage = getStorage();
4520
- const agentSession = await getCachedSession(sessionKey);
4521
- if (!agentSession) {
4522
- throw new Error("No valid session found for retrieving previous configs");
4523
- }
4524
- await storage.setItem(sessionKey, { ...agentSession, configs: [...agentSession.configs, { config, storedAt: (/* @__PURE__ */ new Date()).toISOString() }] });
4525
- }
4526
-
4527
4481
  function generateToken() {
4528
4482
  return randomBytes(32).toString("hex");
4529
4483
  }
@@ -4536,22 +4490,11 @@ function getMachineToken() {
4536
4490
  return hashToken((_a = process.env.KUBB_AGENT_SECRET) != null ? _a : _fallbackSecret);
4537
4491
  }
4538
4492
 
4539
- async function createAgentSession({ token, studioUrl, noCache, cacheKey }) {
4540
- const sessionKey = cacheKey != null ? cacheKey : getSessionKey(token);
4541
- const maskedSessionKey = maskedString(sessionKey.replace("sessions:", ""));
4542
- const connectUrl = `${studioUrl}/api/agent/session/create`;
4543
- const canCache = !noCache;
4544
- if (canCache) {
4545
- const cachedSession = await getCachedSession(sessionKey);
4546
- if (cachedSession) {
4547
- logger.success(`[${maskedSessionKey}] Using cached agent session`);
4548
- return cachedSession;
4549
- }
4550
- await removeCachedSession(sessionKey);
4551
- }
4493
+ async function createAgentSession({ token, studioUrl }) {
4494
+ const url = `${studioUrl}/api/agent/session/create`;
4552
4495
  try {
4553
- logger.info(`[${maskedSessionKey}] Creating agent session with Studio...`);
4554
- const data = await $fetch(connectUrl, {
4496
+ logger.info("Creating agent session with Studio...");
4497
+ const data = await $fetch(url, {
4555
4498
  method: "POST",
4556
4499
  headers: { Authorization: `Bearer ${token}` },
4557
4500
  body: { machineToken: getMachineToken() }
@@ -4559,11 +4502,7 @@ async function createAgentSession({ token, studioUrl, noCache, cacheKey }) {
4559
4502
  if (!data) {
4560
4503
  throw new Error("No data available for agent session");
4561
4504
  }
4562
- if (canCache) {
4563
- await cacheSession({ sessionKey, session: { ...data, storedAt: (/* @__PURE__ */ new Date()).toISOString(), configs: [] } });
4564
- logger.success(`[${maskedSessionKey}] Saved agent session to cache`);
4565
- }
4566
- logger.info(`[${maskedSessionKey}] Created agent session with Studio`);
4505
+ logger.info("Created agent session with Studio");
4567
4506
  return data;
4568
4507
  } catch (error) {
4569
4508
  throw new Error("Failed to get agent session from Kubb Studio", { cause: error });
@@ -4571,10 +4510,10 @@ async function createAgentSession({ token, studioUrl, noCache, cacheKey }) {
4571
4510
  }
4572
4511
  async function registerAgent({ token, studioUrl, poolSize }) {
4573
4512
  var _a, _b;
4574
- const registerUrl = `${studioUrl}/api/agent/register`;
4513
+ const url = `${studioUrl}/api/agent/connect`;
4575
4514
  try {
4576
4515
  logger.info("Registering agent with Studio...");
4577
- await $fetch(registerUrl, {
4516
+ await $fetch(url, {
4578
4517
  method: "POST",
4579
4518
  headers: {
4580
4519
  Authorization: `Bearer ${token}`
@@ -4587,11 +4526,11 @@ async function registerAgent({ token, studioUrl, poolSize }) {
4587
4526
  }
4588
4527
  }
4589
4528
  async function disconnect({ sessionId, token, studioUrl }) {
4590
- const disconnectUrl = `${studioUrl}/api/agent/session/${sessionId}/disconnect`;
4529
+ const url = `${studioUrl}/api/agent/session/${sessionId}/disconnect`;
4591
4530
  const maskedSessionKey = maskedString(sessionId);
4592
4531
  try {
4593
4532
  logger.info(`[${maskedSessionKey}] Disconnecting from Studio...`);
4594
- await $fetch(disconnectUrl, {
4533
+ await $fetch(url, {
4595
4534
  method: "POST",
4596
4535
  headers: {
4597
4536
  Authorization: `Bearer ${token}`
@@ -6076,7 +6015,7 @@ function tokenize(command) {
6076
6015
  return args;
6077
6016
  }
6078
6017
 
6079
- var version = "4.31.6";
6018
+ var version = "4.32.0";
6080
6019
 
6081
6020
  function isCommandMessage(msg) {
6082
6021
  return msg.type === "command";
@@ -6091,6 +6030,24 @@ function isPublishCommandMessage(msg) {
6091
6030
  return msg.type === "command" && msg.command === "publish";
6092
6031
  }
6093
6032
 
6033
+ function getStorage() {
6034
+ return useStorage("kubb");
6035
+ }
6036
+ async function saveStudioConfigToStorage({ sessionId, config }) {
6037
+ var _a;
6038
+ const storage = getStorage();
6039
+ const key = `configs:${sessionId}`;
6040
+ const existing = (_a = await storage.getItem(key)) != null ? _a : [];
6041
+ await storage.setItem(key, [...existing, { config, storedAt: (/* @__PURE__ */ new Date()).toISOString() }]);
6042
+ }
6043
+ async function getLatestStudioConfigFromStorage({ sessionId }) {
6044
+ const storage = getStorage();
6045
+ const key = `configs:${sessionId}`;
6046
+ const existing = await storage.getItem(key);
6047
+ if (!(existing == null ? void 0 : existing.length)) return null;
6048
+ return existing[existing.length - 1].config;
6049
+ }
6050
+
6094
6051
  var __typeError$3 = (msg) => {
6095
6052
  throw TypeError(msg);
6096
6053
  };
@@ -6124,7 +6081,7 @@ var BaseGenerator = (_a$3 = class {
6124
6081
  function isInputPath(config) {
6125
6082
  return typeof (config == null ? void 0 : config.input) === "object" && config.input !== null && "path" in config.input;
6126
6083
  }
6127
- var version$1 = "4.31.6";
6084
+ var version$1 = "4.32.0";
6128
6085
  function getDiagnosticInfo() {
6129
6086
  return {
6130
6087
  nodeVersion: version$2,
@@ -12658,6 +12615,18 @@ function withRequiredRequestBodySchema(operationSchema) {
12658
12615
  }
12659
12616
  };
12660
12617
  }
12618
+ function resolveServerUrl(server, overrides) {
12619
+ var _a2, _b2;
12620
+ if (!server.variables) return server.url;
12621
+ let url = server.url;
12622
+ for (const [key, variable] of Object.entries(server.variables)) {
12623
+ const value = (_a2 = overrides == null ? void 0 : overrides[key]) != null ? _a2 : variable.default != null ? String(variable.default) : void 0;
12624
+ if (value === void 0) continue;
12625
+ if (((_b2 = variable.enum) == null ? void 0 : _b2.length) && !variable.enum.some((e) => String(e) === value)) throw new Error(`Invalid server variable value '${value}' for '${key}' when resolving ${server.url}. Valid values are: ${variable.enum.join(", ")}.`);
12626
+ url = url.replaceAll(`{${key}}`, value);
12627
+ }
12628
+ return url;
12629
+ }
12661
12630
 
12662
12631
  function getDefaultBanner({ title, description, version, config }) {
12663
12632
  try {
@@ -13578,7 +13547,7 @@ var OperationGenerator = (_a = class extends BaseGenerator {
13578
13547
  }, _a);
13579
13548
  const pluginOasName = "plugin-oas";
13580
13549
  const pluginOas = definePlugin((options) => {
13581
- const { output = { path: "schemas" }, group, validate = true, generators = [jsonGenerator], serverIndex, contentType, oasClass, discriminator = "strict", collisionDetection = false } = options;
13550
+ const { output = { path: "schemas" }, group, validate = true, generators = [jsonGenerator], serverIndex, serverVariables, contentType, oasClass, discriminator = "strict", collisionDetection = false } = options;
13582
13551
  const getOas = async ({ validate: validate2, config, events }) => {
13583
13552
  const oas = await parseFromConfig(config, oasClass);
13584
13553
  oas.setOptions({
@@ -13622,13 +13591,16 @@ const pluginOas = definePlugin((options) => {
13622
13591
  return oas;
13623
13592
  },
13624
13593
  async getBaseURL() {
13625
- var _a2, _b;
13594
+ var _a2;
13626
13595
  const oas2 = await getOas({
13627
13596
  config,
13628
13597
  events,
13629
13598
  validate: false
13630
13599
  });
13631
- if (serverIndex !== void 0) return (_b = (_a2 = oas2.api.servers) == null ? void 0 : _a2.at(serverIndex)) == null ? void 0 : _b.url;
13600
+ if (serverIndex === void 0) return;
13601
+ const server = (_a2 = oas2.api.servers) == null ? void 0 : _a2.at(serverIndex);
13602
+ if (!(server == null ? void 0 : server.url)) return;
13603
+ return resolveServerUrl(server, serverVariables);
13632
13604
  }
13633
13605
  };
13634
13606
  },
@@ -223928,12 +223900,20 @@ function mergePlugins(diskPlugins, studioPlugins) {
223928
223900
  if (!studioPlugins) return diskPlugins;
223929
223901
  const resolvedStudio = resolvePlugins(studioPlugins);
223930
223902
  if (!diskPlugins) return resolvedStudio;
223931
- const studioByName = new Map(resolvedStudio.map((p) => [p.name, p]));
223903
+ const studioEntryByResolvedName = /* @__PURE__ */ new Map();
223904
+ resolvedStudio.forEach((resolved, i) => {
223905
+ const entry = studioPlugins[i];
223906
+ if (entry) {
223907
+ studioEntryByResolvedName.set(resolved.name, entry);
223908
+ }
223909
+ });
223932
223910
  const diskNames = new Set(diskPlugins.map((p) => p.name));
223933
223911
  const mergedDisk = diskPlugins.map((diskPlugin) => {
223934
- const studioPlugin = studioByName.get(diskPlugin.name);
223935
- if (!studioPlugin) return diskPlugin;
223936
- return { ...diskPlugin, options: mergeDeep(diskPlugin.options, studioPlugin.options) };
223912
+ var _a;
223913
+ const studioEntry = studioEntryByResolvedName.get(diskPlugin.name);
223914
+ if (!studioEntry) return diskPlugin;
223915
+ const mergedOptions = mergeDeep(diskPlugin.options, studioEntry.options);
223916
+ return (_a = resolvePlugins([{ name: studioEntry.name, options: mergedOptions }])[0]) != null ? _a : diskPlugin;
223937
223917
  });
223938
223918
  const studioOnly = resolvedStudio.filter((p) => !diskNames.has(p.name));
223939
223919
  return [...mergedDisk, ...studioOnly];
@@ -224134,7 +224114,6 @@ async function connectToStudio(options) {
224134
224114
  studioUrl,
224135
224115
  configPath,
224136
224116
  resolvedConfigPath,
224137
- noCache,
224138
224117
  allowAll,
224139
224118
  allowWrite,
224140
224119
  allowPublish,
@@ -224142,27 +224121,20 @@ async function connectToStudio(options) {
224142
224121
  retryInterval,
224143
224122
  heartbeatInterval = 3e4,
224144
224123
  initialSession,
224145
- sessionKey,
224146
224124
  nitro
224147
224125
  } = options;
224148
224126
  const events = new AsyncEventEmitter();
224149
224127
  let currentSource;
224150
- const maskedSessionKey = maskedString(sessionKey.replace("sessions:", ""));
224151
- async function removeSession() {
224152
- if (!noCache) {
224153
- await removeCachedSession(sessionKey);
224154
- }
224155
- }
224156
224128
  async function reconnect() {
224157
- logger.info(`[${maskedSessionKey}] Retrying connection in ${formatMs(retryInterval)} to Kubb Studio ...`);
224158
- await removeSession();
224129
+ logger.info(`Retrying connection in ${formatMs(retryInterval)} to Kubb Studio ...`);
224159
224130
  setTimeout(() => connectToStudio({ ...options, initialSession: void 0 }), retryInterval);
224160
224131
  }
224161
224132
  try {
224162
224133
  setupHookListener(events, root);
224163
- const { sessionId, wsUrl, isSandbox } = initialSession != null ? initialSession : await createAgentSession({ noCache, token, studioUrl, cacheKey: sessionKey });
224134
+ const { sessionId, wsUrl, isSandbox } = initialSession != null ? initialSession : await createAgentSession({ token, studioUrl });
224164
224135
  const ws = createWebsocket(wsUrl, { headers: { Authorization: `Bearer ${token}` } });
224165
224136
  const maskedWsUrl = maskedString(wsUrl);
224137
+ const maskedSessionId = maskedString(sessionId);
224166
224138
  const effectiveAllowAll = isSandbox ? false : allowAll;
224167
224139
  const effectiveWrite = isSandbox ? false : allowWrite;
224168
224140
  const effectivePublish = isSandbox ? false : allowPublish;
@@ -224181,7 +224153,7 @@ async function connectToStudio(options) {
224181
224153
  }
224182
224154
  }
224183
224155
  const onOpen = () => {
224184
- logger.success(`[${maskedSessionKey}] Connected to Kubb Studio on "${maskedWsUrl}"`);
224156
+ logger.success(`[${maskedSessionId}] Connected to Kubb Studio on "${maskedWsUrl}"`);
224185
224157
  };
224186
224158
  const onClose = async () => {
224187
224159
  if (serverDisconnected) {
@@ -224194,8 +224166,10 @@ async function connectToStudio(options) {
224194
224166
  await reconnect();
224195
224167
  };
224196
224168
  const onError = async () => {
224197
- logger.error(`[${maskedSessionKey}] Failed to connect to Kubb Studio on "${maskedWsUrl}"`);
224169
+ logger.error(`[${maskedSessionId}] Failed to connect to Kubb Studio on "${maskedWsUrl}"`);
224198
224170
  await cleanup();
224171
+ await disconnect({ sessionId, studioUrl, token }).catch(() => {
224172
+ });
224199
224173
  await reconnect();
224200
224174
  };
224201
224175
  ws.addEventListener("open", onOpen);
@@ -224209,18 +224183,17 @@ async function connectToStudio(options) {
224209
224183
  heartbeatTimer = setInterval(() => sendAgentMessage(ws, { type: "ping" }), heartbeatInterval);
224210
224184
  setupEventsStream(ws, events, () => currentSource);
224211
224185
  ws.addEventListener("message", async (message) => {
224212
- var _a2, _b, _c, _d, _e;
224186
+ var _a2, _b, _c, _d, _e, _f, _g;
224213
224187
  try {
224214
224188
  const data = JSON.parse(message.data);
224215
- logger.info(`[${maskedSessionKey}] Received "${data.type}" from Studio`);
224189
+ logger.info(`[${maskedSessionId}] Received "${data.type}" from Studio`);
224216
224190
  if (isPongMessage(data)) {
224217
224191
  return;
224218
224192
  }
224219
224193
  if (isDisconnectMessage(data)) {
224220
- logger.warn(`[${maskedSessionKey}] Agent session disconnected by Studio with reason: ${data.reason}`);
224194
+ logger.warn(`[${maskedSessionId}] Agent session disconnected by Studio with reason: ${data.reason}`);
224221
224195
  if (data.reason === "revoked") {
224222
224196
  await cleanup(`session_${data.reason}`);
224223
- await removeSession();
224224
224197
  return;
224225
224198
  }
224226
224199
  if (data.reason === "expired") {
@@ -224234,18 +224207,19 @@ async function connectToStudio(options) {
224234
224207
  if (data.command === "generate") {
224235
224208
  currentSource = "generate";
224236
224209
  const config = await loadConfig(resolvedConfigPath);
224237
- const patch = data.payload;
224210
+ const storedConfig = data.payload ? null : await getLatestStudioConfigFromStorage({ sessionId }).catch(() => null);
224211
+ const patch = (_b = (_a2 = data.payload) != null ? _a2 : storedConfig) != null ? _b : void 0;
224238
224212
  const plugins = mergePlugins(config.plugins, patch == null ? void 0 : patch.plugins);
224239
- const inputOverride = isSandbox ? { data: (_a2 = patch == null ? void 0 : patch.input) != null ? _a2 : "" } : void 0;
224213
+ const inputOverride = isSandbox ? { data: (_c = patch == null ? void 0 : patch.input) != null ? _c : "" } : void 0;
224240
224214
  if (allowWrite && isSandbox) {
224241
- logger.warn(`[${maskedSessionKey}] Agent is running in a sandbox environment, write will be disabled`);
224215
+ logger.warn(`[${maskedSessionId}] Agent is running in a sandbox environment, write will be disabled`);
224242
224216
  }
224243
224217
  if ((patch == null ? void 0 : patch.input) && !isSandbox) {
224244
- logger.warn(`[${maskedSessionKey}] Input override via payload is only supported in sandbox mode and will be ignored`);
224218
+ logger.warn(`[${maskedSessionId}] Input override via payload is only supported in sandbox mode and will be ignored`);
224245
224219
  }
224246
224220
  if (data.payload && effectiveWrite) {
224247
- await saveStudioConfigToStorage({ sessionKey, config: data.payload }).catch((err) => {
224248
- logger.warn(`[${maskedSessionKey}] Failed to save studio config: ${err == null ? void 0 : err.message}`);
224221
+ await saveStudioConfigToStorage({ sessionId, config: data.payload }).catch((err) => {
224222
+ logger.warn(`[${maskedSessionId}] Failed to save studio config: ${err == null ? void 0 : err.message}`);
224249
224223
  });
224250
224224
  }
224251
224225
  await generate({
@@ -224258,7 +224232,7 @@ async function connectToStudio(options) {
224258
224232
  },
224259
224233
  events
224260
224234
  });
224261
- logger.success(`[${maskedSessionKey}] Completed "${data.type}" from Studio`);
224235
+ logger.success(`[${maskedSessionId}] Completed "${data.type}" from Studio`);
224262
224236
  currentSource = void 0;
224263
224237
  return;
224264
224238
  }
@@ -224271,38 +224245,38 @@ async function connectToStudio(options) {
224271
224245
  configPath,
224272
224246
  permissions: { allowAll: effectiveAllowAll, allowWrite: effectiveWrite, allowPublish: effectivePublish },
224273
224247
  config: {
224274
- plugins: (_b = config.plugins) == null ? void 0 : _b.map((plugin) => ({
224248
+ plugins: (_d = config.plugins) == null ? void 0 : _d.map((plugin) => ({
224275
224249
  name: `@kubb/${plugin.name}`,
224276
224250
  options: serializePluginOptions(plugin.options)
224277
224251
  }))
224278
224252
  }
224279
224253
  }
224280
224254
  });
224281
- logger.success(`[${maskedSessionKey}] Completed "${data.type}" from Studio`);
224255
+ logger.success(`[${maskedSessionId}] Completed "${data.type}" from Studio`);
224282
224256
  return;
224283
224257
  }
224284
224258
  if (isPublishCommandMessage(data)) {
224285
224259
  if (!effectivePublish) {
224286
- logger.warn(`[${maskedSessionKey}] Publish command rejected \u2014 KUBB_AGENT_ALLOW_PUBLISH is not enabled`);
224260
+ logger.warn(`[${maskedSessionId}] Publish command rejected \u2014 KUBB_AGENT_ALLOW_PUBLISH is not enabled`);
224287
224261
  return;
224288
224262
  }
224289
224263
  currentSource = "publish";
224290
224264
  const config = await loadConfig(resolvedConfigPath);
224291
- const resolvedCommand = (_d = (_c = data.payload.command) != null ? _c : process.env.KUBB_AGENT_PUBLISH_COMMAND) != null ? _d : "npm publish";
224265
+ const resolvedCommand = (_f = (_e = data.payload.command) != null ? _e : process.env.KUBB_AGENT_PUBLISH_COMMAND) != null ? _f : "npm publish";
224292
224266
  await publish({
224293
224267
  command: resolvedCommand,
224294
224268
  outputPath: config.output.path,
224295
224269
  root,
224296
224270
  events
224297
224271
  });
224298
- logger.success(`[${maskedSessionKey}] Completed "${data.command}" from Studio`);
224272
+ logger.success(`[${maskedSessionId}] Completed "${data.command}" from Studio`);
224299
224273
  currentSource = void 0;
224300
224274
  return;
224301
224275
  }
224302
224276
  }
224303
- logger.warn(`[${maskedSessionKey}] Unknown message type from Kubb Studio: ${message.data}`);
224277
+ logger.warn(`[${maskedSessionId}] Unknown message type from Kubb Studio: ${message.data}`);
224304
224278
  } catch (error) {
224305
- logger.error(`[${maskedSessionKey}] [unhandledRejection] ${(_e = error == null ? void 0 : error.message) != null ? _e : error}`);
224279
+ logger.error(`[${maskedSessionId}] [unhandledRejection] ${(_g = error == null ? void 0 : error.message) != null ? _g : error}`);
224306
224280
  }
224307
224281
  });
224308
224282
  } catch (error) {
@@ -224314,7 +224288,6 @@ const _zcw7I4pYH8OiCfaDcjy_x7I6IH1tLDQR3W_yRZgP6E = defineNitroPlugin(async (nit
224314
224288
  const studioUrl = process$1.env.KUBB_STUDIO_URL || "https://studio.kubb.dev";
224315
224289
  const token = process$1.env.KUBB_AGENT_TOKEN;
224316
224290
  const configPath = process$1.env.KUBB_AGENT_CONFIG || "kubb.config.ts";
224317
- const noCache = process$1.env.KUBB_AGENT_NO_CACHE === "true";
224318
224291
  const retryInterval = process$1.env.KUBB_AGENT_RETRY_TIMEOUT ? Number.parseInt(process$1.env.KUBB_AGENT_RETRY_TIMEOUT, 10) : 3e4;
224319
224292
  const heartbeatInterval = process$1.env.KUBB_AGENT_HEARTBEAT_INTERVAL ? Number.parseInt(process$1.env.KUBB_AGENT_HEARTBEAT_INTERVAL, 10) : 3e4;
224320
224293
  const root = process$1.env.KUBB_AGENT_ROOT || process$1.cwd();
@@ -224330,9 +224303,7 @@ const _zcw7I4pYH8OiCfaDcjy_x7I6IH1tLDQR3W_yRZgP6E = defineNitroPlugin(async (nit
224330
224303
  logger.warn("KUBB_AGENT_SECRET not set", "secret should be set");
224331
224304
  }
224332
224305
  const resolvedConfigPath = path$2.isAbsolute(configPath) ? configPath : path$2.resolve(root, configPath);
224333
- const storage = useStorage("kubb");
224334
- const sessionKey = getSessionKey(token);
224335
- const maskedSessionKey = maskedString(sessionKey.replace("sessions:", ""));
224306
+ const maskedToken = maskedString(token);
224336
224307
  try {
224337
224308
  await registerAgent({ token, studioUrl, poolSize });
224338
224309
  const baseOptions = {
@@ -224340,38 +224311,31 @@ const _zcw7I4pYH8OiCfaDcjy_x7I6IH1tLDQR3W_yRZgP6E = defineNitroPlugin(async (nit
224340
224311
  studioUrl,
224341
224312
  configPath,
224342
224313
  resolvedConfigPath,
224343
- noCache,
224344
224314
  allowAll,
224345
224315
  allowWrite,
224346
224316
  allowPublish,
224347
224317
  root,
224348
224318
  retryInterval,
224349
224319
  heartbeatInterval,
224350
- storage,
224351
- sessionKey,
224352
224320
  nitro
224353
224321
  };
224354
- logger.info(`[${maskedSessionKey}] Starting session pool of ${poolSize} connection(s)`);
224322
+ logger.info(`[${maskedToken}] Starting session pool of ${poolSize} connection(s)`);
224355
224323
  const sessions = /* @__PURE__ */ new Map();
224356
- for (const index2 of Array.from({ length: poolSize }, (_, i) => i)) {
224357
- const cacheKey = `${sessionKey}-${index2}`;
224358
- const maskedSessionKey2 = maskedString(cacheKey);
224359
- const session = await createAgentSession({ noCache, token, studioUrl, cacheKey }).catch((err) => {
224360
- logger.warn(`[${maskedSessionKey2}] Failed to pre-create pool session:`, err == null ? void 0 : err.message);
224324
+ for (const index of Array.from({ length: poolSize }, (_, i) => i)) {
224325
+ const session = await createAgentSession({ token, studioUrl }).catch((err) => {
224326
+ logger.warn(`[${maskedToken}] Failed to pre-create pool session ${index}:`, err == null ? void 0 : err.message);
224361
224327
  return null;
224362
224328
  });
224363
- sessions.set(cacheKey, session);
224329
+ sessions.set(index, session);
224364
224330
  }
224365
- let index = 0;
224366
- for (const [cacheKey, session] of sessions) {
224367
- index++;
224331
+ for (const [index, session] of sessions.entries()) {
224368
224332
  if (!session) {
224369
224333
  continue;
224370
224334
  }
224371
- const maskedSessionKey2 = maskedString(session.sessionId);
224372
- logger.info(`[${maskedSessionKey2}] Connecting session ${index}/${sessions.size}`);
224373
- await connectToStudio({ ...baseOptions, initialSession: session, sessionKey: cacheKey }).catch((err) => {
224374
- logger.warn(`[${maskedSessionKey2}] Session ${index} failed to connect:`, err == null ? void 0 : err.message);
224335
+ const maskedSessionId = maskedString(session.sessionId);
224336
+ logger.info(`[${maskedSessionId}] Connecting session ${index + 1}/${sessions.size}`);
224337
+ await connectToStudio({ ...baseOptions, initialSession: session }).catch((err) => {
224338
+ logger.warn(`[${maskedSessionId}] Session ${index + 1} failed to connect:`, err == null ? void 0 : err.message);
224375
224339
  });
224376
224340
  }
224377
224341
  } catch (error) {
@@ -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.3/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.4/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.5/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.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/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.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/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.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/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.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../server/utils/logger.ts","../../../../server/plugins/fetch-logger.ts","../../../../server/utils/maskedString.ts","../../../../server/plugins/heartbeat.ts","../../../../server/utils/agentCache.ts","../../../../server/utils/token.ts","../../../../server/utils/api.ts","../../../../../core/dist/write-pEo2oQGI.js","../../../../../core/dist/toRegExp-DdJ1Kgbf.js","../../../../../core/dist/packageManager-B6NiaZeW.js","../../../../../core/dist/utils.js","../../../../server/types/agent.ts","../../../../../core/dist/index.js","../../../../server/utils/executeHooks.ts","../../../../server/utils/generate.ts","../../../../server/utils/getCosmiConfig.ts","../../../../server/utils/loadConfig.ts","../../../../../plugin-client/dist/chunk-DKWOrOAv.js","../../../../../plugin-oas/dist/SchemaMapper-eQhTeFim.js","../../../../../core/dist/transformers.js","../../../../../oas/dist/chunk-Dxrv8gPv.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-TvbgNwYq.js","../../../../../plugin-oas/dist/getFooter-_DD1dfMI.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-DGIMTS_f.js","../../../../../plugin-oas/dist/jsonGenerator-Df2dxdof.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/Zod-GzH2I46C.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/Type-kXKUz-Sn.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-ts/dist/plugin-nOUZk0S4.js","../../../../../plugin-zod/dist/zodGenerator--tgD2hL9.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/staticClassClientGenerator-BUGBMkNO.js","../../../../../plugin-client/dist/templates/clients/axios.source.js","../../../../../plugin-client/dist/templates/clients/fetch.source.js","../../../../../plugin-client/dist/templates/config.source.js","../../../../../plugin-client/dist/index.js","../../../../../plugin-cypress/dist/Request-DOzOQGgb.js","../../../../../plugin-cypress/dist/cypressGenerator-D7trA-II.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/Faker-eDce4Xeu.js","../../../../../plugin-faker/dist/fakerGenerator-C68x1Nq-.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-D45Pl-Hd.js","../../../../../plugin-mcp/dist/serverGenerator-TERvEwnw.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/Response-rq32ZXGn.js","../../../../../plugin-msw/dist/mswGenerator-Tg2NjhsD.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk-DKWOrOAv.js","../../../../../plugin-react-query/dist/SuspenseQuery-BJRjCVPn.js","../../../../../plugin-react-query/dist/suspenseQueryGenerator-X-e7npGw.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk-DKWOrOAv.js","../../../../../plugin-solid-query/dist/Query-D_dWu7Ln.js","../../../../../plugin-solid-query/dist/queryGenerator-fZ_tgape.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk-DKWOrOAv.js","../../../../../plugin-svelte-query/dist/Query-BDLjTz45.js","../../../../../plugin-svelte-query/dist/queryGenerator-C19QRAQW.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk-DKWOrOAv.js","../../../../../plugin-swr/dist/Query-DDIFmxNc.js","../../../../../plugin-swr/dist/queryGenerator-96wr4Uxr.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk-DKWOrOAv.js","../../../../../plugin-vue-query/dist/Query-DVuOyLhX.js","../../../../../plugin-vue-query/dist/queryGenerator-CHpHlXsx.js","../../../../../plugin-vue-query/dist/index.js","../../../../server/utils/resolvePlugins.ts","../../../../server/utils/mergePlugins.ts","../../../../server/utils/publish.ts","../../../../server/utils/setupHookListener.ts","../../../../server/utils/ws.ts","../../../../server/utils/connectStudio.ts","../../../../server/plugins/studio.ts","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/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","stringify","normalizeKey","defineDriver","DRIVER_NAME","fsPromises","PATH_TRAVERSE_RE","fsp","snakeCase","_inlineAppConfig","createRadixRouter","process","readFile","writeFile","value","_head","_tail","_size","_a","_options","_b","Node","__publicField","Queue","__privateAdd","__privateGet","__privateSet","__privateWrapper","pLimit","validateConcurrency","path","__privateMethod","performance","_c","_d","_e","_f","item","trimExtName","version","build","os","error","__defProp","__name","v","d","b","__assign","o","exports","Kind","YAMLException","string","ScalarType","Comments","isPlainObject","fs","parse","schema","schemas","transformers","normalizedSchema","name","min","max","getParams$1","Function","getParams","Operations","validate","oas","options","Type","siblings","require","global","modifiers","questionToken","propertyName","operationsGenerator","source","baseURL","source$2","Response","getTransformer$1","QueryKey","getParams$9","QueryOptions","getParams$8","InfiniteQuery","getParams$7","InfiniteQueryOptions","getParams$6","getTransformer","MutationKey","getParams$5","getParams$4","Mutation","getParams$3","Query","getParams$2","operations","infiniteQueryGenerator","mutationGenerator","queryGenerator","__filename","__dirname","pkg","params","generics","index","maskedSessionKey","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,60,113,114,115,116]}
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.3/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.4/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.5/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.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/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.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/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.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/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.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../server/utils/logger.ts","../../../../server/plugins/fetch-logger.ts","../../../../server/utils/maskedString.ts","../../../../server/plugins/heartbeat.ts","../../../../server/utils/token.ts","../../../../server/utils/api.ts","../../../../../core/dist/write-pEo2oQGI.js","../../../../../core/dist/toRegExp-DdJ1Kgbf.js","../../../../../core/dist/packageManager-B6NiaZeW.js","../../../../../core/dist/utils.js","../../../../server/types/agent.ts","../../../../server/utils/agentCache.ts","../../../../../core/dist/index.js","../../../../server/utils/executeHooks.ts","../../../../server/utils/generate.ts","../../../../server/utils/getCosmiConfig.ts","../../../../server/utils/loadConfig.ts","../../../../../plugin-client/dist/chunk-DKWOrOAv.js","../../../../../plugin-oas/dist/SchemaMapper-eQhTeFim.js","../../../../../core/dist/transformers.js","../../../../../oas/dist/chunk-Dxrv8gPv.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/resolveServerUrl-D-P-Dovy.js","../../../../../plugin-oas/dist/getFooter-_DD1dfMI.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-DGIMTS_f.js","../../../../../plugin-oas/dist/jsonGenerator-Df2dxdof.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/Zod-GzH2I46C.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/Type-kXKUz-Sn.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-ts/dist/plugin-nOUZk0S4.js","../../../../../plugin-zod/dist/zodGenerator--tgD2hL9.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/staticClassClientGenerator-BUGBMkNO.js","../../../../../plugin-client/dist/templates/clients/axios.source.js","../../../../../plugin-client/dist/templates/clients/fetch.source.js","../../../../../plugin-client/dist/templates/config.source.js","../../../../../plugin-client/dist/index.js","../../../../../plugin-cypress/dist/Request-DOzOQGgb.js","../../../../../plugin-cypress/dist/cypressGenerator-D7trA-II.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/Faker-eDce4Xeu.js","../../../../../plugin-faker/dist/fakerGenerator-C68x1Nq-.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-D45Pl-Hd.js","../../../../../plugin-mcp/dist/serverGenerator-TERvEwnw.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/Response-rq32ZXGn.js","../../../../../plugin-msw/dist/mswGenerator-Tg2NjhsD.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk-DKWOrOAv.js","../../../../../plugin-react-query/dist/SuspenseQuery-BJRjCVPn.js","../../../../../plugin-react-query/dist/suspenseQueryGenerator-X-e7npGw.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk-DKWOrOAv.js","../../../../../plugin-solid-query/dist/Query-D_dWu7Ln.js","../../../../../plugin-solid-query/dist/queryGenerator-fZ_tgape.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk-DKWOrOAv.js","../../../../../plugin-svelte-query/dist/Query-BDLjTz45.js","../../../../../plugin-svelte-query/dist/queryGenerator-C19QRAQW.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk-DKWOrOAv.js","../../../../../plugin-swr/dist/Query-DDIFmxNc.js","../../../../../plugin-swr/dist/queryGenerator-96wr4Uxr.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk-DKWOrOAv.js","../../../../../plugin-vue-query/dist/Query-DVuOyLhX.js","../../../../../plugin-vue-query/dist/queryGenerator-CHpHlXsx.js","../../../../../plugin-vue-query/dist/index.js","../../../../server/utils/resolvePlugins.ts","../../../../server/utils/mergePlugins.ts","../../../../server/utils/publish.ts","../../../../server/utils/setupHookListener.ts","../../../../server/utils/ws.ts","../../../../server/utils/connectStudio.ts","../../../../server/plugins/studio.ts","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.7/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","stringify","normalizeKey","defineDriver","DRIVER_NAME","fsPromises","PATH_TRAVERSE_RE","fsp","snakeCase","_inlineAppConfig","createRadixRouter","process","readFile","writeFile","value","_head","_tail","_size","_a","_options","_b","Node","__publicField","Queue","__privateAdd","__privateGet","__privateSet","__privateWrapper","pLimit","validateConcurrency","path","__privateMethod","performance","_c","_d","_e","_f","item","trimExtName","version","build","os","error","__defProp","__name","v","d","b","__assign","o","exports","Kind","YAMLException","string","ScalarType","Comments","isPlainObject","fs","parse","schema","schemas","transformers","normalizedSchema","name","min","max","getParams$1","Function","getParams","Operations","validate","oas","options","Type","siblings","require","global","modifiers","questionToken","propertyName","operationsGenerator","source","baseURL","source$2","Response","getTransformer$1","QueryKey","getParams$9","QueryOptions","getParams$8","InfiniteQuery","getParams$7","InfiniteQueryOptions","getParams$6","getTransformer","MutationKey","getParams$5","getParams$4","Mutation","getParams$3","Query","getParams$2","operations","infiniteQueryGenerator","mutationGenerator","queryGenerator","__filename","__dirname","pkg","params","generics","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,60,113,114,115,116]}