@kubb/agent 5.0.0-alpha.71 → 5.0.0-alpha.73

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-04-27T06:02:33.053Z",
2
+ "date": "2026-04-28T13:27:22.389Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -5917,13 +5917,92 @@ async function clean(path) {
5917
5917
  force: true
5918
5918
  });
5919
5919
  }
5920
+ const reservedWords = /* @__PURE__ */ new Set([
5921
+ "abstract",
5922
+ "arguments",
5923
+ "boolean",
5924
+ "break",
5925
+ "byte",
5926
+ "case",
5927
+ "catch",
5928
+ "char",
5929
+ "class",
5930
+ "const",
5931
+ "continue",
5932
+ "debugger",
5933
+ "default",
5934
+ "delete",
5935
+ "do",
5936
+ "double",
5937
+ "else",
5938
+ "enum",
5939
+ "eval",
5940
+ "export",
5941
+ "extends",
5942
+ "false",
5943
+ "final",
5944
+ "finally",
5945
+ "float",
5946
+ "for",
5947
+ "function",
5948
+ "goto",
5949
+ "if",
5950
+ "implements",
5951
+ "import",
5952
+ "in",
5953
+ "instanceof",
5954
+ "int",
5955
+ "interface",
5956
+ "let",
5957
+ "long",
5958
+ "native",
5959
+ "new",
5960
+ "null",
5961
+ "package",
5962
+ "private",
5963
+ "protected",
5964
+ "public",
5965
+ "return",
5966
+ "short",
5967
+ "static",
5968
+ "super",
5969
+ "switch",
5970
+ "synchronized",
5971
+ "this",
5972
+ "throw",
5973
+ "throws",
5974
+ "transient",
5975
+ "true",
5976
+ "try",
5977
+ "typeof",
5978
+ "var",
5979
+ "void",
5980
+ "volatile",
5981
+ "while",
5982
+ "with",
5983
+ "yield",
5984
+ "Array",
5985
+ "Date",
5986
+ "hasOwnProperty",
5987
+ "Infinity",
5988
+ "isFinite",
5989
+ "isNaN",
5990
+ "isPrototypeOf",
5991
+ "length",
5992
+ "Math",
5993
+ "name",
5994
+ "NaN",
5995
+ "Number",
5996
+ "Object",
5997
+ "prototype",
5998
+ "String",
5999
+ "toString",
6000
+ "undefined",
6001
+ "valueOf"
6002
+ ]);
5920
6003
  function isValidVarName(name) {
5921
- try {
5922
- new Function(`var ${name}`);
5923
- } catch {
5924
- return false;
5925
- }
5926
- return true;
6004
+ if (!name || reservedWords.has(name)) return false;
6005
+ return /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(name);
5927
6006
  }
5928
6007
  var URLPath = (_b = class {
5929
6008
  constructor(path, options = {}) {
@@ -6279,7 +6358,7 @@ const fsStorage = createStorage(() => ({
6279
6358
  await clean(resolve(base));
6280
6359
  }
6281
6360
  }));
6282
- var version$1 = "5.0.0-alpha.71";
6361
+ var version$1 = "5.0.0-alpha.73";
6283
6362
  function getDiagnosticInfo() {
6284
6363
  return {
6285
6364
  nodeVersion: version$2,
@@ -6335,6 +6414,8 @@ async function setup(userConfig, options = {}) {
6335
6414
  parsers: (_g = userConfig.parsers) != null ? _g : [],
6336
6415
  adapter: userConfig.adapter,
6337
6416
  output: {
6417
+ format: false,
6418
+ lint: false,
6338
6419
  write: true,
6339
6420
  extension: DEFAULT_EXTENSION,
6340
6421
  defaultBanner: DEFAULT_BANNER,
@@ -6696,7 +6777,7 @@ const memoryStorage = createStorage(() => {
6696
6777
  };
6697
6778
  });
6698
6779
 
6699
- var version = "5.0.0-alpha.71";
6780
+ var version = "5.0.0-alpha.73";
6700
6781
 
6701
6782
  function isCommandMessage(msg) {
6702
6783
  return msg.type === "command";
@@ -1,2 +1,2 @@
1
- import{purry as e}from"./purry.js";function t(...t){return e(n,t)}function n(e,t){if(e===t||Object.is(e,t))return!0;if(typeof e!=`object`||typeof t!=`object`||e===null||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;if(Array.isArray(e))return r(e,t);if(e instanceof Map)return i(e,t);if(e instanceof Set)return a(e,t);if(e instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp)return e.toString()===t.toString();if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let[r,i]of Object.entries(e))if(!(r in t)||!n(i,t[r]))return!1;return!0}function r(e,t){if(e.length!==t.length)return!1;for(let[r,i]of e.entries())if(!n(i,t[r]))return!1;return!0}function i(e,t){if(e.size!==t.size)return!1;for(let[r,i]of e.entries())if(!t.has(r)||!n(i,t.get(r)))return!1;return!0}function a(e,t){if(e.size!==t.size)return!1;let r=[...t];for(let t of e){let e=!1;for(let[i,a]of r.entries())if(n(t,a)){e=!0,r.splice(i,1);break}if(!e)return!1}return!0}export{t as isDeepEqual};
1
+ import{purry as e}from"./purry.js";function t(...t){return e(n,t)}function n(e,t){if(e===t||Object.is(e,t))return!0;if(typeof e!=`object`||typeof t!=`object`||e===null||t===null||!r(e,t))return!1;if(Array.isArray(e))return i(e,t);if(e instanceof Map)return a(e,t);if(e instanceof Set)return o(e,t);if(e instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp)return e.toString()===t.toString();if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let[r,i]of Object.entries(e))if(!(r in t)||!n(i,t[r]))return!1;return!0}function r(e,t){let n=Object.getPrototypeOf(e),r=Object.getPrototypeOf(t);return n===r?!0:n===null?r===Object.prototype:n===Object.prototype&&r===null}function i(e,t){if(e.length!==t.length)return!1;for(let[r,i]of e.entries())if(!n(i,t[r]))return!1;return!0}function a(e,t){if(e.size!==t.size)return!1;for(let[r,i]of e.entries())if(!t.has(r)||!n(i,t.get(r)))return!1;return!0}function o(e,t){if(e.size!==t.size)return!1;let r=[...t];for(let t of e){let e=!1;for(let[i,a]of r.entries())if(n(t,a)){e=!0,r.splice(i,1);break}if(!e)return!1}return!0}export{t as isDeepEqual};
2
2
  //# sourceMappingURL=isDeepEqual.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remeda",
3
- "version": "2.33.7",
3
+ "version": "2.34.0",
4
4
  "type": "module",
5
5
  "description": "A utility library for JavaScript and Typescript.",
6
6
  "repository": {
@@ -50,7 +50,7 @@
50
50
  "check": "tsc --project tsconfig.source.json",
51
51
  "check:dist": "tsc --project tsconfig.dist.json",
52
52
  "format": "prettier . --write",
53
- "lint": "eslint --fix --max-warnings 0 --cache --cache-location ./node_modules/.cache/eslint/",
53
+ "lint": "eslint --fix --max-warnings 0",
54
54
  "publish:jsr": "jsr publish",
55
55
  "publish:preview": "pkg-pr-new publish --compact --template ../stackblitz-template/",
56
56
  "test": "vitest",
@@ -62,29 +62,29 @@
62
62
  "devDependencies": {
63
63
  "@arethetypeswrong/core": "^0.18.2",
64
64
  "@eslint/js": "^10.0.1",
65
- "@fast-check/vitest": "^0.3.0",
65
+ "@fast-check/vitest": "^0.4.0",
66
66
  "@types/eslint-config-prettier": "^6.11.3",
67
- "@types/node": "^25.5.0",
68
- "@vitest/coverage-v8": "~4.1.0",
69
- "@vitest/eslint-plugin": "^1.6.13",
70
- "eslint": "~10.1.0",
67
+ "@types/node": "^25.5.2",
68
+ "@vitest/coverage-v8": "^4.1.2",
69
+ "@vitest/eslint-plugin": "^1.6.14",
70
+ "eslint": "~10.2.0",
71
71
  "eslint-config-prettier": "^10.1.8",
72
- "eslint-plugin-jsdoc": "^62.8.0",
73
- "eslint-plugin-unicorn": "^63.0.0",
72
+ "eslint-plugin-jsdoc": "^62.9.0",
73
+ "eslint-plugin-unicorn": "^64.0.0",
74
74
  "jiti": "^2.6.1",
75
75
  "jsr": "^0.14.3",
76
76
  "lint-staged": "^16.4.0",
77
77
  "pkg-pr-new": "^0.0.66",
78
78
  "prettier": "^3.8.1",
79
- "prettier-plugin-pkg": "^0.22.0",
79
+ "prettier-plugin-pkg": "^0.22.1",
80
80
  "prettier-plugin-sh": "^0.18.0",
81
81
  "publint": "^0.3.18",
82
82
  "semantic-release": "^25.0.3",
83
- "tsdown": "^0.21.4",
83
+ "tsdown": "^0.21.7",
84
84
  "type-fest": "^5.5.0",
85
- "typescript": "^5.9.3",
86
- "typescript-eslint": "^8.57.1",
87
- "vitest": "~4.1.0"
85
+ "typescript": "^6.0.2",
86
+ "typescript-eslint": "^8.58.0",
87
+ "vitest": "^4.1.2"
88
88
  },
89
89
  "sideEffects": false
90
90
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent-prod",
3
- "version": "5.0.0-alpha.71",
3
+ "version": "5.0.0-alpha.73",
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "dependencies": {
@@ -18,7 +18,7 @@
18
18
  "normalize-path": "3.0.0",
19
19
  "picomatch": "2.3.2",
20
20
  "readdirp": "5.0.0",
21
- "remeda": "2.33.7",
21
+ "remeda": "2.34.0",
22
22
  "rolldown": "1.0.0-rc.17",
23
23
  "serialize-error": "8.1.0",
24
24
  "stack-trace": "0.0.10",
package/README.md CHANGED
@@ -83,7 +83,7 @@ services:
83
83
  PORT: 80
84
84
  KUBB_AGENT_ROOT: /kubb/agent/data
85
85
  KUBB_AGENT_CONFIG: ./kubb.config.ts
86
- KUBB_STUDIO_URL: https://studio.kubb.dev
86
+ KUBB_STUDIO_URL: https://kubb.studio
87
87
  volumes:
88
88
  - agent_kv:/kubb/agent/.kubb/data
89
89
  restart: unless-stopped
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent",
3
- "version": "5.0.0-alpha.71",
3
+ "version": "5.0.0-alpha.73",
4
4
  "description": "Agent server for Kubb, enabling HTTP-based access to code generation capabilities.",
5
5
  "keywords": [
6
6
  "agent",
@@ -38,13 +38,13 @@
38
38
  "dependencies": {
39
39
  "@logtail/node": "^0.5.8",
40
40
  "consola": "^3.4.2",
41
- "remeda": "^2.33.7",
41
+ "remeda": "^2.34.0",
42
42
  "tinyexec": "^1.1.1",
43
43
  "unrun": "^0.2.37",
44
44
  "unstorage": "^1.17.5",
45
45
  "ws": "^8.20.0",
46
- "@kubb/ast": "5.0.0-alpha.71",
47
- "@kubb/core": "5.0.0-alpha.71"
46
+ "@kubb/ast": "5.0.0-alpha.73",
47
+ "@kubb/core": "5.0.0-alpha.73"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/ws": "^8.18.1",
@@ -52,8 +52,8 @@
52
52
  "nitropack": "^2.13.3",
53
53
  "vite": "^8.0.10",
54
54
  "@internals/utils": "0.0.0",
55
- "@kubb/parser-ts": "5.0.0-alpha.71",
56
- "@kubb/adapter-oas": "5.0.0-alpha.71"
55
+ "@kubb/adapter-oas": "5.0.0-alpha.73",
56
+ "@kubb/parser-ts": "5.0.0-alpha.73"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">=22"