@kubb/agent 5.0.0-alpha.34 → 5.0.0-alpha.36
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/.output/nitro.json +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +1790 -20812
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +16 -14
- package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
- package/.output/server/index.mjs +16 -14
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/.nitro/ws@8.18.0/lib/constants.js +18 -0
- package/.output/server/node_modules/.nitro/ws@8.18.0/lib/permessage-deflate.js +514 -0
- package/.output/server/node_modules/.nitro/ws@8.18.0/lib/sender.js +602 -0
- package/.output/server/node_modules/.nitro/ws@8.18.0/lib/stream.js +159 -0
- package/.output/server/node_modules/.nitro/ws@8.18.0/lib/websocket-server.js +540 -0
- package/.output/server/node_modules/.nitro/ws@8.18.0/lib/websocket.js +1388 -0
- package/.output/server/node_modules/.nitro/ws@8.18.0/package.json +69 -0
- package/.output/server/node_modules/.nitro/ws@8.18.0/wrapper.mjs +8 -0
- package/.output/server/node_modules/.nitro/ws@8.20.0/lib/buffer-util.js +131 -0
- package/.output/server/node_modules/.nitro/ws@8.20.0/lib/event-target.js +292 -0
- package/.output/server/node_modules/.nitro/ws@8.20.0/lib/extension.js +203 -0
- package/.output/server/node_modules/.nitro/ws@8.20.0/lib/limiter.js +55 -0
- package/.output/server/node_modules/.nitro/ws@8.20.0/lib/receiver.js +706 -0
- package/.output/server/node_modules/.nitro/ws@8.20.0/lib/subprotocol.js +62 -0
- package/.output/server/node_modules/.nitro/ws@8.20.0/lib/validation.js +152 -0
- package/.output/server/node_modules/@clack/core/dist/index.mjs +11 -0
- package/.output/server/node_modules/@clack/core/package.json +60 -0
- package/.output/server/node_modules/@clack/prompts/dist/index.mjs +137 -0
- package/.output/server/node_modules/@clack/prompts/package.json +65 -0
- package/.output/server/node_modules/@kubb/ast/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/ast/dist/index.js +423 -0
- package/.output/server/node_modules/@kubb/ast/package.json +70 -0
- package/.output/server/node_modules/@kubb/core/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/core/dist/hooks.js +23 -0
- package/.output/server/node_modules/@kubb/core/dist/index.js +2311 -0
- package/.output/server/node_modules/@kubb/core/package.json +109 -0
- package/.output/server/node_modules/@kubb/fabric-core/dist/chunk-O_arW02_.js +17 -0
- package/.output/server/node_modules/@kubb/fabric-core/dist/defaultParser-iCpMSYCp.js +15 -0
- package/.output/server/node_modules/@kubb/fabric-core/dist/getRelativePath-NAm_Y-vp.js +55 -0
- package/.output/server/node_modules/@kubb/fabric-core/dist/index.js +653 -0
- package/.output/server/node_modules/@kubb/fabric-core/dist/onProcessExit-Cput7j2c.js +742 -0
- package/.output/server/node_modules/@kubb/fabric-core/dist/parsers/typescript.js +101 -0
- package/.output/server/node_modules/@kubb/fabric-core/dist/parsers.js +17 -0
- package/.output/server/node_modules/@kubb/fabric-core/dist/plugins.js +375 -0
- package/.output/server/node_modules/@kubb/fabric-core/package.json +111 -0
- package/.output/server/node_modules/@kubb/oas/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/oas/dist/index.js +918 -0
- package/.output/server/node_modules/@kubb/oas/package.json +94 -0
- package/.output/server/node_modules/@kubb/plugin-client/dist/StaticClassClient-bCe7RG_w.js +636 -0
- package/.output/server/node_modules/@kubb/plugin-client/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-client/dist/components.js +2 -0
- package/.output/server/node_modules/@kubb/plugin-client/dist/generators-BffddRNu.js +723 -0
- package/.output/server/node_modules/@kubb/plugin-client/dist/index.js +124 -0
- package/.output/server/node_modules/@kubb/plugin-client/dist/templates/clients/axios.source.js +6 -0
- package/.output/server/node_modules/@kubb/plugin-client/dist/templates/clients/fetch.source.js +6 -0
- package/.output/server/node_modules/@kubb/plugin-client/dist/templates/config.source.js +6 -0
- package/.output/server/node_modules/@kubb/plugin-client/package.json +153 -0
- package/.output/server/node_modules/@kubb/plugin-cypress/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-cypress/dist/components-BK_6GU4v.js +257 -0
- package/.output/server/node_modules/@kubb/plugin-cypress/dist/generators-D5YFtyyC.js +71 -0
- package/.output/server/node_modules/@kubb/plugin-cypress/dist/index.js +79 -0
- package/.output/server/node_modules/@kubb/plugin-cypress/package.json +108 -0
- package/.output/server/node_modules/@kubb/plugin-faker/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-faker/dist/components-BkBIov4R.js +419 -0
- package/.output/server/node_modules/@kubb/plugin-faker/dist/fakerGenerator-BztogaeO.js +200 -0
- package/.output/server/node_modules/@kubb/plugin-faker/dist/index.js +141 -0
- package/.output/server/node_modules/@kubb/plugin-faker/package.json +103 -0
- package/.output/server/node_modules/@kubb/plugin-mcp/dist/Server-H3SwqhwF.js +178 -0
- package/.output/server/node_modules/@kubb/plugin-mcp/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-mcp/dist/generators-BqkMrcs9.js +274 -0
- package/.output/server/node_modules/@kubb/plugin-mcp/dist/index.js +122 -0
- package/.output/server/node_modules/@kubb/plugin-mcp/package.json +107 -0
- package/.output/server/node_modules/@kubb/plugin-msw/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-msw/dist/components-DgtTZkWX.js +277 -0
- package/.output/server/node_modules/@kubb/plugin-msw/dist/generators-C34kqa1L.js +161 -0
- package/.output/server/node_modules/@kubb/plugin-msw/dist/index.js +84 -0
- package/.output/server/node_modules/@kubb/plugin-msw/package.json +109 -0
- package/.output/server/node_modules/@kubb/plugin-oas/dist/SchemaMapper-CqMkO2T1.js +58 -0
- package/.output/server/node_modules/@kubb/plugin-oas/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-oas/dist/generators-D7C3CXsN.js +79 -0
- package/.output/server/node_modules/@kubb/plugin-oas/dist/generators.js +2 -0
- package/.output/server/node_modules/@kubb/plugin-oas/dist/getFooter-Pw3tLCiV.js +112 -0
- package/.output/server/node_modules/@kubb/plugin-oas/dist/hooks.js +200 -0
- package/.output/server/node_modules/@kubb/plugin-oas/dist/index.js +408 -0
- package/.output/server/node_modules/@kubb/plugin-oas/dist/requestBody-pRavthCw.js +1336 -0
- package/.output/server/node_modules/@kubb/plugin-oas/dist/utils.js +268 -0
- package/.output/server/node_modules/@kubb/plugin-oas/package.json +122 -0
- package/.output/server/node_modules/@kubb/plugin-react-query/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-react-query/dist/components-CpyHYGOw.js +1520 -0
- package/.output/server/node_modules/@kubb/plugin-react-query/dist/generators-CpiBv5eE.js +1427 -0
- package/.output/server/node_modules/@kubb/plugin-react-query/dist/index.js +166 -0
- package/.output/server/node_modules/@kubb/plugin-react-query/package.json +112 -0
- package/.output/server/node_modules/@kubb/plugin-redoc/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-redoc/dist/index.js +65 -0
- package/.output/server/node_modules/@kubb/plugin-redoc/package.json +85 -0
- package/.output/server/node_modules/@kubb/plugin-redoc/static/redoc.hbs +22 -0
- package/.output/server/node_modules/@kubb/plugin-solid-query/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-solid-query/dist/components-BhStIi1M.js +665 -0
- package/.output/server/node_modules/@kubb/plugin-solid-query/dist/generators-CQClzsST.js +415 -0
- package/.output/server/node_modules/@kubb/plugin-solid-query/dist/index.js +145 -0
- package/.output/server/node_modules/@kubb/plugin-solid-query/package.json +113 -0
- package/.output/server/node_modules/@kubb/plugin-svelte-query/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-svelte-query/dist/components-DntKBsnB.js +666 -0
- package/.output/server/node_modules/@kubb/plugin-svelte-query/dist/generators-BtTsGGrM.js +414 -0
- package/.output/server/node_modules/@kubb/plugin-svelte-query/dist/index.js +145 -0
- package/.output/server/node_modules/@kubb/plugin-svelte-query/package.json +113 -0
- package/.output/server/node_modules/@kubb/plugin-swr/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-swr/dist/components-DRDGvgXG.js +702 -0
- package/.output/server/node_modules/@kubb/plugin-swr/dist/generators-ClWZJ-YG.js +399 -0
- package/.output/server/node_modules/@kubb/plugin-swr/dist/index.js +144 -0
- package/.output/server/node_modules/@kubb/plugin-swr/package.json +115 -0
- package/.output/server/node_modules/@kubb/plugin-ts/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-ts/dist/components-C7fu-sK1.js +723 -0
- package/.output/server/node_modules/@kubb/plugin-ts/dist/index.js +2 -0
- package/.output/server/node_modules/@kubb/plugin-ts/dist/plugin-CYC-FGXe.js +479 -0
- package/.output/server/node_modules/@kubb/plugin-ts/package.json +105 -0
- package/.output/server/node_modules/@kubb/plugin-vue-query/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-vue-query/dist/components-_AMBl0g-.js +1029 -0
- package/.output/server/node_modules/@kubb/plugin-vue-query/dist/generators-Zb1s5Wmb.js +661 -0
- package/.output/server/node_modules/@kubb/plugin-vue-query/dist/index.js +157 -0
- package/.output/server/node_modules/@kubb/plugin-vue-query/package.json +114 -0
- package/.output/server/node_modules/@kubb/plugin-zod/dist/chunk--u3MIqq1.js +8 -0
- package/.output/server/node_modules/@kubb/plugin-zod/dist/components-eECfXVou.js +842 -0
- package/.output/server/node_modules/@kubb/plugin-zod/dist/generators-D1R6NNf2.js +290 -0
- package/.output/server/node_modules/@kubb/plugin-zod/dist/index.js +175 -0
- package/.output/server/node_modules/@kubb/plugin-zod/dist/templates/ToZod.source.js +6 -0
- package/.output/server/node_modules/@kubb/plugin-zod/package.json +112 -0
- package/.output/server/node_modules/@kubb/react-fabric/dist/chunk-BGCRLu6H.js +38 -0
- package/.output/server/node_modules/@kubb/react-fabric/dist/index.js +525 -0
- package/.output/server/node_modules/@kubb/react-fabric/dist/jsx-runtime-Bl0DfUmV.js +1448 -0
- package/.output/server/node_modules/@kubb/react-fabric/dist/jsx-runtime.js +12 -0
- package/.output/server/node_modules/@kubb/react-fabric/dist/parsers.js +2 -0
- package/.output/server/node_modules/@kubb/react-fabric/dist/plugins.js +4 -0
- package/.output/server/node_modules/@kubb/react-fabric/dist/reactPlugin-QQPrjNuQ.js +17813 -0
- package/.output/server/node_modules/@kubb/react-fabric/package.json +143 -0
- package/.output/server/node_modules/@redocly/config/lib/root-config-schema.js +11 -1
- package/.output/server/node_modules/@redocly/config/package.json +1 -1
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-document.js +25 -10
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-visitor.js +32 -29
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/config.js +5 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/index.js +1 -1
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/remove-unused-components.js +47 -38
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/index.js +1 -1
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/remove-unused-components.js +45 -41
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-http-verbs-in-paths.js +3 -1
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-required-schema-properties-undefined.js +41 -55
- package/.output/server/node_modules/@redocly/openapi-core/lib/walk.js +28 -16
- package/.output/server/node_modules/@redocly/openapi-core/package.json +2 -2
- package/.output/server/node_modules/buffer-from/index.js +72 -0
- package/.output/server/node_modules/buffer-from/package.json +19 -0
- package/.output/server/node_modules/fast-string-truncated-width/dist/index.js +171 -0
- package/.output/server/node_modules/fast-string-truncated-width/dist/utils.js +15 -0
- package/.output/server/node_modules/fast-string-truncated-width/package.json +35 -0
- package/.output/server/node_modules/fast-string-width/dist/index.js +14 -0
- package/.output/server/node_modules/fast-string-width/package.json +34 -0
- package/.output/server/node_modules/fast-wrap-ansi/lib/main.js +216 -0
- package/.output/server/node_modules/fast-wrap-ansi/package.json +51 -0
- package/.output/server/node_modules/p-limit/index.js +127 -0
- package/.output/server/node_modules/p-limit/package.json +58 -0
- package/.output/server/node_modules/react-devtools-core/dist/backend.js +18302 -0
- package/.output/server/node_modules/react-devtools-core/package.json +38 -0
- package/.output/server/node_modules/sisteransi/package.json +34 -0
- package/.output/server/node_modules/sisteransi/src/index.js +58 -0
- package/.output/server/node_modules/source-map-support/package.json +31 -0
- package/.output/server/node_modules/source-map-support/source-map-support.js +625 -0
- package/.output/server/node_modules/typescript/lib/typescript.js +200276 -0
- package/.output/server/node_modules/typescript/package.json +120 -0
- package/.output/server/node_modules/yocto-queue/index.js +90 -0
- package/.output/server/node_modules/yocto-queue/package.json +48 -0
- package/.output/server/package.json +35 -4
- package/package.json +20 -20
- /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/buffer-util.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/event-target.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/extension.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/limiter.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/receiver.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/subprotocol.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.18.0}/lib/validation.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/lib/constants.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/lib/permessage-deflate.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/lib/sender.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/lib/stream.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/lib/websocket-server.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/lib/websocket.js +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/package.json +0 -0
- /package/.output/server/node_modules/{ws → .nitro/ws@8.20.0}/wrapper.mjs +0 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "typescript",
|
|
3
|
+
"author": "Microsoft Corp.",
|
|
4
|
+
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
+
"version": "5.9.3",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"TypeScript",
|
|
10
|
+
"Microsoft",
|
|
11
|
+
"compiler",
|
|
12
|
+
"language",
|
|
13
|
+
"javascript"
|
|
14
|
+
],
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/microsoft/TypeScript/issues"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/microsoft/TypeScript.git"
|
|
21
|
+
},
|
|
22
|
+
"main": "./lib/typescript.js",
|
|
23
|
+
"typings": "./lib/typescript.d.ts",
|
|
24
|
+
"bin": {
|
|
25
|
+
"tsc": "./bin/tsc",
|
|
26
|
+
"tsserver": "./bin/tsserver"
|
|
27
|
+
},
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=14.17"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"bin",
|
|
33
|
+
"lib",
|
|
34
|
+
"!lib/enu",
|
|
35
|
+
"LICENSE.txt",
|
|
36
|
+
"README.md",
|
|
37
|
+
"SECURITY.md",
|
|
38
|
+
"ThirdPartyNoticeText.txt",
|
|
39
|
+
"!**/.gitattributes"
|
|
40
|
+
],
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@dprint/formatter": "^0.4.1",
|
|
43
|
+
"@dprint/typescript": "0.93.4",
|
|
44
|
+
"@esfx/canceltoken": "^1.0.0",
|
|
45
|
+
"@eslint/js": "^9.20.0",
|
|
46
|
+
"@octokit/rest": "^21.1.1",
|
|
47
|
+
"@types/chai": "^4.3.20",
|
|
48
|
+
"@types/diff": "^7.0.1",
|
|
49
|
+
"@types/minimist": "^1.2.5",
|
|
50
|
+
"@types/mocha": "^10.0.10",
|
|
51
|
+
"@types/ms": "^0.7.34",
|
|
52
|
+
"@types/node": "latest",
|
|
53
|
+
"@types/source-map-support": "^0.5.10",
|
|
54
|
+
"@types/which": "^3.0.4",
|
|
55
|
+
"@typescript-eslint/rule-tester": "^8.24.1",
|
|
56
|
+
"@typescript-eslint/type-utils": "^8.24.1",
|
|
57
|
+
"@typescript-eslint/utils": "^8.24.1",
|
|
58
|
+
"azure-devops-node-api": "^14.1.0",
|
|
59
|
+
"c8": "^10.1.3",
|
|
60
|
+
"chai": "^4.5.0",
|
|
61
|
+
"chokidar": "^4.0.3",
|
|
62
|
+
"diff": "^7.0.0",
|
|
63
|
+
"dprint": "^0.49.0",
|
|
64
|
+
"esbuild": "^0.25.0",
|
|
65
|
+
"eslint": "^9.20.1",
|
|
66
|
+
"eslint-formatter-autolinkable-stylish": "^1.4.0",
|
|
67
|
+
"eslint-plugin-regexp": "^2.7.0",
|
|
68
|
+
"fast-xml-parser": "^4.5.2",
|
|
69
|
+
"glob": "^10.4.5",
|
|
70
|
+
"globals": "^15.15.0",
|
|
71
|
+
"hereby": "^1.10.0",
|
|
72
|
+
"jsonc-parser": "^3.3.1",
|
|
73
|
+
"knip": "^5.44.4",
|
|
74
|
+
"minimist": "^1.2.8",
|
|
75
|
+
"mocha": "^10.8.2",
|
|
76
|
+
"mocha-fivemat-progress-reporter": "^0.1.0",
|
|
77
|
+
"monocart-coverage-reports": "^2.12.1",
|
|
78
|
+
"ms": "^2.1.3",
|
|
79
|
+
"picocolors": "^1.1.1",
|
|
80
|
+
"playwright": "^1.50.1",
|
|
81
|
+
"source-map-support": "^0.5.21",
|
|
82
|
+
"tslib": "^2.8.1",
|
|
83
|
+
"typescript": "^5.7.3",
|
|
84
|
+
"typescript-eslint": "^8.24.1",
|
|
85
|
+
"which": "^3.0.1"
|
|
86
|
+
},
|
|
87
|
+
"overrides": {
|
|
88
|
+
"typescript@*": "$typescript"
|
|
89
|
+
},
|
|
90
|
+
"scripts": {
|
|
91
|
+
"test": "hereby runtests-parallel --light=false",
|
|
92
|
+
"test:eslint-rules": "hereby run-eslint-rules-tests",
|
|
93
|
+
"build": "npm run build:compiler && npm run build:tests",
|
|
94
|
+
"build:compiler": "hereby local",
|
|
95
|
+
"build:tests": "hereby tests",
|
|
96
|
+
"build:tests:notypecheck": "hereby tests --no-typecheck",
|
|
97
|
+
"clean": "hereby clean",
|
|
98
|
+
"gulp": "hereby",
|
|
99
|
+
"lint": "hereby lint",
|
|
100
|
+
"knip": "hereby knip",
|
|
101
|
+
"format": "dprint fmt",
|
|
102
|
+
"setup-hooks": "node scripts/link-hooks.mjs"
|
|
103
|
+
},
|
|
104
|
+
"browser": {
|
|
105
|
+
"fs": false,
|
|
106
|
+
"os": false,
|
|
107
|
+
"path": false,
|
|
108
|
+
"crypto": false,
|
|
109
|
+
"buffer": false,
|
|
110
|
+
"source-map-support": false,
|
|
111
|
+
"inspector": false,
|
|
112
|
+
"perf_hooks": false
|
|
113
|
+
},
|
|
114
|
+
"packageManager": "npm@8.19.4",
|
|
115
|
+
"volta": {
|
|
116
|
+
"node": "20.1.0",
|
|
117
|
+
"npm": "8.19.4"
|
|
118
|
+
},
|
|
119
|
+
"gitHead": "c63de15a992d37f0d6cec03ac7631872838602cb"
|
|
120
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
How it works:
|
|
3
|
+
`this.#head` is an instance of `Node` which keeps track of its current value and nests another instance of `Node` that keeps the value that comes after it. When a value is provided to `.enqueue()`, the code needs to iterate through `this.#head`, going deeper and deeper to find the last value. However, iterating through every single item is slow. This problem is solved by saving a reference to the last value as `this.#tail` so that it can reference it to add a new value.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
class Node {
|
|
7
|
+
value;
|
|
8
|
+
next;
|
|
9
|
+
|
|
10
|
+
constructor(value) {
|
|
11
|
+
this.value = value;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default class Queue {
|
|
16
|
+
#head;
|
|
17
|
+
#tail;
|
|
18
|
+
#size;
|
|
19
|
+
|
|
20
|
+
constructor() {
|
|
21
|
+
this.clear();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
enqueue(value) {
|
|
25
|
+
const node = new Node(value);
|
|
26
|
+
|
|
27
|
+
if (this.#head) {
|
|
28
|
+
this.#tail.next = node;
|
|
29
|
+
this.#tail = node;
|
|
30
|
+
} else {
|
|
31
|
+
this.#head = node;
|
|
32
|
+
this.#tail = node;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
this.#size++;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
dequeue() {
|
|
39
|
+
const current = this.#head;
|
|
40
|
+
if (!current) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
this.#head = this.#head.next;
|
|
45
|
+
this.#size--;
|
|
46
|
+
|
|
47
|
+
// Clean up tail reference when queue becomes empty
|
|
48
|
+
if (!this.#head) {
|
|
49
|
+
this.#tail = undefined;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return current.value;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
peek() {
|
|
56
|
+
if (!this.#head) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return this.#head.value;
|
|
61
|
+
|
|
62
|
+
// TODO: Node.js 18.
|
|
63
|
+
// return this.#head?.value;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
clear() {
|
|
67
|
+
this.#head = undefined;
|
|
68
|
+
this.#tail = undefined;
|
|
69
|
+
this.#size = 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
get size() {
|
|
73
|
+
return this.#size;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
* [Symbol.iterator]() {
|
|
77
|
+
let current = this.#head;
|
|
78
|
+
|
|
79
|
+
while (current) {
|
|
80
|
+
yield current.value;
|
|
81
|
+
current = current.next;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
* drain() {
|
|
86
|
+
while (this.#head) {
|
|
87
|
+
yield this.dequeue();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "yocto-queue",
|
|
3
|
+
"version": "1.2.2",
|
|
4
|
+
"description": "Tiny queue data structure",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/yocto-queue",
|
|
7
|
+
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Sindre Sorhus",
|
|
10
|
+
"email": "sindresorhus@gmail.com",
|
|
11
|
+
"url": "https://sindresorhus.com"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"exports": "./index.js",
|
|
15
|
+
"types": "./index.d.ts",
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=12.20"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"//test": "xo && ava && tsd",
|
|
22
|
+
"test": "ava && tsd"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"index.js",
|
|
26
|
+
"index.d.ts"
|
|
27
|
+
],
|
|
28
|
+
"keywords": [
|
|
29
|
+
"queue",
|
|
30
|
+
"data",
|
|
31
|
+
"structure",
|
|
32
|
+
"algorithm",
|
|
33
|
+
"queues",
|
|
34
|
+
"queuing",
|
|
35
|
+
"list",
|
|
36
|
+
"array",
|
|
37
|
+
"linkedlist",
|
|
38
|
+
"fifo",
|
|
39
|
+
"enqueue",
|
|
40
|
+
"dequeue",
|
|
41
|
+
"data-structure"
|
|
42
|
+
],
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"ava": "^3.15.0",
|
|
45
|
+
"tsd": "^0.17.0",
|
|
46
|
+
"xo": "^0.44.0"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/agent-prod",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.36",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": true,
|
|
6
6
|
"dependencies": {
|
|
@@ -8,7 +8,28 @@
|
|
|
8
8
|
"@babel/code-frame": "7.29.0",
|
|
9
9
|
"@babel/helper-validator-identifier": "7.28.5",
|
|
10
10
|
"@babel/runtime": "7.29.2",
|
|
11
|
+
"@clack/core": "1.2.0",
|
|
12
|
+
"@clack/prompts": "1.2.0",
|
|
11
13
|
"@humanwhocodes/momoa": "2.0.4",
|
|
14
|
+
"@kubb/ast": "4.37.2",
|
|
15
|
+
"@kubb/core": "4.37.2",
|
|
16
|
+
"@kubb/fabric-core": "0.14.0",
|
|
17
|
+
"@kubb/oas": "4.37.2",
|
|
18
|
+
"@kubb/plugin-client": "4.37.2",
|
|
19
|
+
"@kubb/plugin-cypress": "4.37.2",
|
|
20
|
+
"@kubb/plugin-faker": "4.37.2",
|
|
21
|
+
"@kubb/plugin-mcp": "4.37.2",
|
|
22
|
+
"@kubb/plugin-msw": "4.37.2",
|
|
23
|
+
"@kubb/plugin-oas": "4.37.2",
|
|
24
|
+
"@kubb/plugin-react-query": "4.37.2",
|
|
25
|
+
"@kubb/plugin-redoc": "4.37.2",
|
|
26
|
+
"@kubb/plugin-solid-query": "4.37.2",
|
|
27
|
+
"@kubb/plugin-svelte-query": "4.37.2",
|
|
28
|
+
"@kubb/plugin-swr": "4.37.2",
|
|
29
|
+
"@kubb/plugin-ts": "4.37.2",
|
|
30
|
+
"@kubb/plugin-vue-query": "4.37.2",
|
|
31
|
+
"@kubb/plugin-zod": "4.37.2",
|
|
32
|
+
"@kubb/react-fabric": "0.14.0",
|
|
12
33
|
"@logtail/core": "0.5.8",
|
|
13
34
|
"@logtail/node": "0.5.8",
|
|
14
35
|
"@logtail/tools": "0.5.8",
|
|
@@ -20,8 +41,8 @@
|
|
|
20
41
|
"@readme/openapi-schemas": "3.1.0",
|
|
21
42
|
"@readme/postman-to-openapi": "4.1.0",
|
|
22
43
|
"@redocly/ajv": "8.18.3",
|
|
23
|
-
"@redocly/config": "0.
|
|
24
|
-
"@redocly/openapi-core": "2.
|
|
44
|
+
"@redocly/config": "0.48.0",
|
|
45
|
+
"@redocly/openapi-core": "2.28.0",
|
|
25
46
|
"@stoplight/ordered-object-literal": "1.0.5",
|
|
26
47
|
"@stoplight/types": "14.1.1",
|
|
27
48
|
"@stoplight/yaml": "4.3.0",
|
|
@@ -30,6 +51,7 @@
|
|
|
30
51
|
"ajv-draft-04": "1.0.0",
|
|
31
52
|
"ajv-formats": "3.0.1",
|
|
32
53
|
"anymatch": "3.1.3",
|
|
54
|
+
"buffer-from": "1.1.2",
|
|
33
55
|
"call-me-maybe": "1.0.2",
|
|
34
56
|
"chokidar": "5.0.0",
|
|
35
57
|
"colorette": "1.4.0",
|
|
@@ -44,7 +66,10 @@
|
|
|
44
66
|
"ext": "1.7.0",
|
|
45
67
|
"fast-deep-equal": "3.1.3",
|
|
46
68
|
"fast-safe-stringify": "2.1.1",
|
|
69
|
+
"fast-string-truncated-width": "1.2.1",
|
|
70
|
+
"fast-string-width": "1.1.0",
|
|
47
71
|
"fast-uri": "3.1.0",
|
|
72
|
+
"fast-wrap-ansi": "0.1.6",
|
|
48
73
|
"fflate": "0.8.2",
|
|
49
74
|
"handlebars": "4.7.9",
|
|
50
75
|
"http2-client": "1.3.5",
|
|
@@ -73,23 +98,28 @@
|
|
|
73
98
|
"oas-normalize": "16.0.4",
|
|
74
99
|
"oas-resolver": "2.5.6",
|
|
75
100
|
"oas-schema-walker": "1.1.5",
|
|
101
|
+
"p-limit": "7.3.0",
|
|
76
102
|
"path-to-regexp": "8.4.2",
|
|
77
103
|
"picocolors": "1.1.1",
|
|
78
104
|
"picomatch": "2.3.2",
|
|
79
105
|
"pluralize": "8.0.0",
|
|
106
|
+
"react-devtools-core": "6.1.5",
|
|
80
107
|
"readdirp": "5.0.0",
|
|
81
108
|
"reftools": "1.1.9",
|
|
82
109
|
"remeda": "2.33.7",
|
|
83
110
|
"remove-undefined-objects": "7.0.0",
|
|
84
111
|
"semver": "7.7.4",
|
|
85
112
|
"serialize-error": "8.1.0",
|
|
113
|
+
"sisteransi": "1.0.5",
|
|
86
114
|
"source-map": "0.6.1",
|
|
115
|
+
"source-map-support": "0.5.21",
|
|
87
116
|
"stack-trace": "0.0.10",
|
|
88
117
|
"swagger2openapi": "7.0.8",
|
|
89
118
|
"timers-ext": "0.1.8",
|
|
90
119
|
"tinyexec": "1.1.1",
|
|
91
120
|
"tslib": "2.8.1",
|
|
92
121
|
"type": "2.7.3",
|
|
122
|
+
"typescript": "5.9.3",
|
|
93
123
|
"validate.io-array": "1.0.6",
|
|
94
124
|
"validate.io-function": "1.0.2",
|
|
95
125
|
"validate.io-integer": "1.0.5",
|
|
@@ -97,6 +127,7 @@
|
|
|
97
127
|
"validate.io-number": "1.0.3",
|
|
98
128
|
"ws": "8.20.0",
|
|
99
129
|
"yaml": "1.10.3",
|
|
100
|
-
"yaml-ast-parser": "0.0.43"
|
|
130
|
+
"yaml-ast-parser": "0.0.43",
|
|
131
|
+
"yocto-queue": "1.2.2"
|
|
101
132
|
}
|
|
102
133
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/agent",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.36",
|
|
4
4
|
"description": "Agent server for Kubb, enabling HTTP-based access to code generation capabilities.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -32,6 +32,20 @@
|
|
|
32
32
|
"!/**/__snapshots__/**"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
+
"@kubb/plugin-client": "latest",
|
|
36
|
+
"@kubb/plugin-cypress": "latest",
|
|
37
|
+
"@kubb/plugin-faker": "latest",
|
|
38
|
+
"@kubb/plugin-mcp": "latest",
|
|
39
|
+
"@kubb/plugin-msw": "latest",
|
|
40
|
+
"@kubb/plugin-oas": "latest",
|
|
41
|
+
"@kubb/plugin-react-query": "latest",
|
|
42
|
+
"@kubb/plugin-redoc": "latest",
|
|
43
|
+
"@kubb/plugin-solid-query": "latest",
|
|
44
|
+
"@kubb/plugin-svelte-query": "latest",
|
|
45
|
+
"@kubb/plugin-swr": "latest",
|
|
46
|
+
"@kubb/plugin-ts": "latest",
|
|
47
|
+
"@kubb/plugin-vue-query": "latest",
|
|
48
|
+
"@kubb/plugin-zod": "latest",
|
|
35
49
|
"@logtail/node": "^0.5.8",
|
|
36
50
|
"consola": "^3.4.2",
|
|
37
51
|
"jiti": "2.5.1",
|
|
@@ -39,28 +53,14 @@
|
|
|
39
53
|
"tinyexec": "^1.1.1",
|
|
40
54
|
"unstorage": "^1.17.5",
|
|
41
55
|
"ws": "^8.20.0",
|
|
42
|
-
"@kubb/adapter-oas": "5.0.0-alpha.
|
|
43
|
-
"@kubb/ast": "5.0.0-alpha.
|
|
44
|
-
"@kubb/core": "5.0.0-alpha.
|
|
45
|
-
"@kubb/parser-ts": "5.0.0-alpha.
|
|
46
|
-
"@kubb/plugin-client": "5.0.0-alpha.34",
|
|
47
|
-
"@kubb/plugin-cypress": "5.0.0-alpha.34",
|
|
48
|
-
"@kubb/plugin-faker": "5.0.0-alpha.34",
|
|
49
|
-
"@kubb/plugin-mcp": "5.0.0-alpha.34",
|
|
50
|
-
"@kubb/plugin-msw": "5.0.0-alpha.34",
|
|
51
|
-
"@kubb/plugin-oas": "5.0.0-alpha.34",
|
|
52
|
-
"@kubb/plugin-react-query": "5.0.0-alpha.34",
|
|
53
|
-
"@kubb/plugin-redoc": "5.0.0-alpha.34",
|
|
54
|
-
"@kubb/plugin-solid-query": "5.0.0-alpha.34",
|
|
55
|
-
"@kubb/plugin-svelte-query": "5.0.0-alpha.34",
|
|
56
|
-
"@kubb/plugin-swr": "5.0.0-alpha.34",
|
|
57
|
-
"@kubb/plugin-ts": "5.0.0-alpha.34",
|
|
58
|
-
"@kubb/plugin-vue-query": "5.0.0-alpha.34",
|
|
59
|
-
"@kubb/plugin-zod": "5.0.0-alpha.34"
|
|
56
|
+
"@kubb/adapter-oas": "5.0.0-alpha.36",
|
|
57
|
+
"@kubb/ast": "5.0.0-alpha.36",
|
|
58
|
+
"@kubb/core": "5.0.0-alpha.36",
|
|
59
|
+
"@kubb/parser-ts": "5.0.0-alpha.36"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/ws": "^8.18.1",
|
|
63
|
-
"msw": "^2.13.
|
|
63
|
+
"msw": "^2.13.4",
|
|
64
64
|
"nitropack": "^2.13.3",
|
|
65
65
|
"vite": "^7.3.2",
|
|
66
66
|
"@internals/utils": "0.0.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|