@kubb/agent 4.25.1 → 4.25.2

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-02-19T13:13:48.902Z",
2
+ "date": "2026-02-19T14:06:30.574Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -21,6 +21,7 @@ import { pathToFileURL, fileURLToPath } from 'node:url';
21
21
  import { coerce, satisfies } from 'semver';
22
22
  import { parseArgsStringToArgv } from 'string-argv';
23
23
  import { createJiti } from 'jiti';
24
+ import WebSocket from 'ws';
24
25
 
25
26
  const suspectProtoRx = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/;
26
27
  const suspectConstructorRx = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
@@ -5653,7 +5654,7 @@ var _b, _cache, _cwd, _SLASHES, _PackageManager_instances, match_fn;
5653
5654
  function isInputPath(config) {
5654
5655
  return typeof (config == null ? void 0 : config.input) === "object" && config.input !== null && "path" in config.input;
5655
5656
  }
5656
- var version$1 = "4.25.1";
5657
+ var version$1 = "4.25.2";
5657
5658
  function getDiagnosticInfo() {
5658
5659
  return {
5659
5660
  nodeVersion: version$2,
@@ -6419,7 +6420,7 @@ function setupEventsStream(ws, events) {
6419
6420
  });
6420
6421
  }
6421
6422
 
6422
- var version = "4.25.1";
6423
+ var version = "4.25.2";
6423
6424
 
6424
6425
  const _zcw7I4pYH8OiCfaDcjy_x7I6IH1tLDQR3W_yRZgP6E = defineNitroPlugin(async (nitro) => {
6425
6426
  const studioUrl = process$1.env.KUBB_STUDIO_URL || "https://studio.kubb.dev";
@@ -6483,7 +6484,11 @@ const _zcw7I4pYH8OiCfaDcjy_x7I6IH1tLDQR3W_yRZgP6E = defineNitroPlugin(async (nit
6483
6484
  }
6484
6485
  async function connectToStudio() {
6485
6486
  try {
6486
- const { sessionToken, wsUrl } = await createAgentSession({ noCache, token, studioUrl });
6487
+ const { sessionToken, wsUrl } = await createAgentSession({
6488
+ noCache,
6489
+ token,
6490
+ studioUrl
6491
+ });
6487
6492
  const ws = createWebsocket(wsUrl, wsOptions);
6488
6493
  const onError = async () => {
6489
6494
  cleanup();
@@ -6579,8 +6584,9 @@ const _zcw7I4pYH8OiCfaDcjy_x7I6IH1tLDQR3W_yRZgP6E = defineNitroPlugin(async (nit
6579
6584
  }
6580
6585
  logger.warn(`Unknown message type from Kubb Studio: ${message.data}`);
6581
6586
  });
6582
- } catch (_error) {
6587
+ } catch (error) {
6583
6588
  deleteCachedSession(token);
6589
+ logger.error(`Something went wrong ${error}`);
6584
6590
  await reconnectToStudio();
6585
6591
  }
6586
6592
  }
@@ -22,6 +22,7 @@ import 'node:url';
22
22
  import 'semver';
23
23
  import 'string-argv';
24
24
  import 'jiti';
25
+ import 'ws';
25
26
 
26
27
  const health_get = defineEventHandler(() => {
27
28
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"health.get.mjs","sources":["../../../../../server/routes/api/health.get.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAOA,mBAAA,mBAAA,MAAA;AACA,EAAA,OAAA;AAAA,IACA,MAAA,EAAA,IAAA;AAAA,IACA;AAAA,GACA;AACA,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"health.get.mjs","sources":["../../../../../server/routes/api/health.get.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,mBAAA,mBAAA,MAAA;AACA,EAAA,OAAA;AAAA,IACA,MAAA,EAAA,IAAA;AAAA,IACA;AAAA,GACA;AACA,CAAA,CAAA;;;;"}
@@ -22,4 +22,5 @@ import 'node:url';
22
22
  import 'semver';
23
23
  import 'string-argv';
24
24
  import 'jiti';
25
+ import 'ws';
25
26
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent-prod",
3
- "version": "4.25.1",
3
+ "version": "4.25.2",
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "dependencies": {
@@ -59,7 +59,7 @@
59
59
  "unicorn-magic": "0.3.0",
60
60
  "universalify": "2.0.1",
61
61
  "which": "2.0.2",
62
- "ws": "8.18.0",
62
+ "ws": "8.19.0",
63
63
  "yocto-queue": "1.2.2",
64
64
  "yoctocolors": "2.1.2"
65
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent",
3
- "version": "4.25.1",
3
+ "version": "4.25.2",
4
4
  "description": "Agent server for Kubb, enabling HTTP-based access to code generation capabilities.",
5
5
  "keywords": [
6
6
  "agent",
@@ -44,9 +44,11 @@
44
44
  "nitropack": "^2.13.1",
45
45
  "picocolors": "^1.1.1",
46
46
  "string-argv": "^0.3.2",
47
- "@kubb/core": "4.25.1"
47
+ "ws": "^8.19.0",
48
+ "@kubb/core": "4.25.2"
48
49
  },
49
50
  "devDependencies": {
51
+ "@types/ws": "^8.18.1",
50
52
  "msw": "^2.6.10",
51
53
  "vite": "^7.3.1"
52
54
  },