@kubb/cli 5.0.0-beta.3 → 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.
- package/README.md +177 -26
- package/dist/agent-CPKt8QQU.js +68 -0
- package/dist/agent-CPKt8QQU.js.map +1 -0
- package/dist/agent-lxTI4Krn.cjs +70 -0
- package/dist/agent-lxTI4Krn.cjs.map +1 -0
- package/dist/{chunk--u3MIqq1.js → chunk-BvFE5Tac.js} +1 -0
- package/dist/constants-B2JTeRBb.js +42 -0
- package/dist/constants-B2JTeRBb.js.map +1 -0
- package/dist/constants-BINTA5VZ.cjs +77 -0
- package/dist/constants-BINTA5VZ.cjs.map +1 -0
- package/dist/constants-BYGmiFs0.cjs +139 -0
- package/dist/constants-BYGmiFs0.cjs.map +1 -0
- package/dist/constants-DSJ-Xrbv.js +116 -0
- package/dist/constants-DSJ-Xrbv.js.map +1 -0
- package/dist/define-Bdn8j5VM.cjs.map +1 -1
- package/dist/{define-Ctii4bel.js → define-m_fp-Aqm.js} +2 -2
- package/dist/{define-Ctii4bel.js.map → define-m_fp-Aqm.js.map} +1 -1
- package/dist/{errors-CjPmyZHy.js → errors-CINO1EIv.js} +2 -2
- package/dist/{errors-CjPmyZHy.js.map → errors-CINO1EIv.js.map} +1 -1
- package/dist/errors-CLCjoSg0.cjs.map +1 -1
- package/dist/{generate-BzCMyyNN.cjs → generate-DgTJz23F.cjs} +10 -4
- package/dist/generate-DgTJz23F.cjs.map +1 -0
- package/dist/{generate-CTdVvIaP.js → generate-qCPyPiD6.js} +12 -6
- package/dist/generate-qCPyPiD6.js.map +1 -0
- package/dist/index.cjs +20 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +22 -13
- package/dist/index.js.map +1 -1
- package/dist/init-CM61rK5A.cjs +53 -0
- package/dist/init-CM61rK5A.cjs.map +1 -0
- package/dist/init-_-CN-ASE.js +53 -0
- package/dist/init-_-CN-ASE.js.map +1 -0
- package/dist/mcp-1ld_vD4n.js +39 -0
- package/dist/mcp-1ld_vD4n.js.map +1 -0
- package/dist/mcp-IMkVgOtF.cjs +39 -0
- package/dist/mcp-IMkVgOtF.cjs.map +1 -0
- package/dist/package-BDL80yHv.js +6 -0
- package/dist/package-BDL80yHv.js.map +1 -0
- package/dist/{package-DcmDg_mw.cjs → package-CHmy7tzG.cjs} +2 -2
- package/dist/package-CHmy7tzG.cjs.map +1 -0
- package/dist/run-B11-UaUs.cjs +33 -0
- package/dist/run-B11-UaUs.cjs.map +1 -0
- package/dist/{init-eNRlotJK.js → run-BNqMQygv.js} +107 -149
- package/dist/run-BNqMQygv.js.map +1 -0
- package/dist/{init-CZ5Xq2Hd.cjs → run-BnGfi7Cp.cjs} +105 -147
- package/dist/run-BnGfi7Cp.cjs.map +1 -0
- package/dist/{generate-BL-Kp5GY.js → run-BonExv0-.js} +561 -493
- package/dist/run-BonExv0-.js.map +1 -0
- package/dist/{agent-sdYBBgrd.js → run-BzpYYOQs.js} +46 -43
- package/dist/run-BzpYYOQs.js.map +1 -0
- package/dist/run-CCZ24VKk.js +51 -0
- package/dist/run-CCZ24VKk.js.map +1 -0
- package/dist/run-CQbj3ley.cjs +52 -0
- package/dist/run-CQbj3ley.cjs.map +1 -0
- package/dist/{agent-B4cAAab2.cjs → run-DwdAwnLG.cjs} +44 -41
- package/dist/run-DwdAwnLG.cjs.map +1 -0
- package/dist/run-PSA9X7ci.js +32 -0
- package/dist/run-PSA9X7ci.js.map +1 -0
- package/dist/{generate-DMqdAYqy.cjs → run-e1Pda1tW.cjs} +558 -490
- package/dist/run-e1Pda1tW.cjs.map +1 -0
- package/dist/shell-475fQKaX.cjs.map +1 -1
- package/dist/{shell-DLzN4fRo.js → shell-CN6DNqeC.js} +2 -2
- package/dist/{shell-DLzN4fRo.js.map → shell-CN6DNqeC.js.map} +1 -1
- package/dist/{telemetry-DN95_2pF.cjs → telemetry-B2iWkY5e.cjs} +5 -7
- package/dist/telemetry-B2iWkY5e.cjs.map +1 -0
- package/dist/{telemetry-LgT_sdPe.js → telemetry-BkektVz6.js} +6 -8
- package/dist/telemetry-BkektVz6.js.map +1 -0
- package/dist/validate-26X6uBG3.js +26 -0
- package/dist/validate-26X6uBG3.js.map +1 -0
- package/dist/validate-BAEo4Dcd.cjs +26 -0
- package/dist/validate-BAEo4Dcd.cjs.map +1 -0
- package/package.json +14 -14
- package/src/commands/agent/start.ts +10 -7
- package/src/commands/agent.ts +3 -1
- package/src/commands/generate.ts +5 -3
- package/src/commands/init.ts +34 -3
- package/src/commands/mcp.ts +28 -4
- package/src/commands/validate.ts +6 -4
- package/src/constants.ts +2 -58
- package/src/index.ts +5 -3
- package/src/loggers/clackLogger.ts +85 -118
- package/src/loggers/fileSystemLogger.ts +28 -15
- package/src/loggers/githubActionsLogger.ts +87 -96
- package/src/loggers/plainLogger.ts +48 -81
- package/src/loggers/types.ts +6 -0
- package/src/loggers/utils.ts +235 -11
- package/src/runners/agent/run.ts +113 -0
- package/src/runners/agent/utils.ts +98 -0
- package/src/runners/generate/run.ts +321 -0
- package/src/runners/generate/utils.ts +225 -0
- package/src/runners/init/run.ts +212 -0
- package/src/{utils/packageManager.ts → runners/init/utils.ts} +12 -2
- package/src/runners/mcp/run.ts +37 -0
- package/src/runners/validate/run.ts +63 -0
- package/src/{utils/telemetry.ts → telemetry.ts} +27 -20
- package/dist/agent-B4cAAab2.cjs.map +0 -1
- package/dist/agent-BFACosbG.cjs +0 -58
- package/dist/agent-BFACosbG.cjs.map +0 -1
- package/dist/agent-s7TqqoTg.js +0 -56
- package/dist/agent-s7TqqoTg.js.map +0 -1
- package/dist/agent-sdYBBgrd.js.map +0 -1
- package/dist/constants-CnDXa1R6.cjs +0 -148
- package/dist/constants-CnDXa1R6.cjs.map +0 -1
- package/dist/constants-aL3CP_Wq.js +0 -95
- package/dist/constants-aL3CP_Wq.js.map +0 -1
- package/dist/generate-BL-Kp5GY.js.map +0 -1
- package/dist/generate-BzCMyyNN.cjs.map +0 -1
- package/dist/generate-CTdVvIaP.js.map +0 -1
- package/dist/generate-DMqdAYqy.cjs.map +0 -1
- package/dist/init-BHMGbly9.cjs +0 -25
- package/dist/init-BHMGbly9.cjs.map +0 -1
- package/dist/init-CZ5Xq2Hd.cjs.map +0 -1
- package/dist/init-eNRlotJK.js.map +0 -1
- package/dist/init-qgpg-iRW.js +0 -25
- package/dist/init-qgpg-iRW.js.map +0 -1
- package/dist/mcp-BRp-2Rdc.js +0 -16
- package/dist/mcp-BRp-2Rdc.js.map +0 -1
- package/dist/mcp-CYOgxB82.cjs +0 -47
- package/dist/mcp-CYOgxB82.cjs.map +0 -1
- package/dist/mcp-DmJm3TrU.js +0 -46
- package/dist/mcp-DmJm3TrU.js.map +0 -1
- package/dist/mcp-N3mRyVuO.cjs +0 -16
- package/dist/mcp-N3mRyVuO.cjs.map +0 -1
- package/dist/package-DcmDg_mw.cjs.map +0 -1
- package/dist/package-DtuyzAVW.js +0 -6
- package/dist/package-DtuyzAVW.js.map +0 -1
- package/dist/telemetry-DN95_2pF.cjs.map +0 -1
- package/dist/telemetry-LgT_sdPe.js.map +0 -1
- package/dist/validate-CJpTOzKA.js +0 -25
- package/dist/validate-CJpTOzKA.js.map +0 -1
- package/dist/validate-DyTbv7Bc.cjs +0 -25
- package/dist/validate-DyTbv7Bc.cjs.map +0 -1
- package/dist/validate-kLJoT_hi.js +0 -33
- package/dist/validate-kLJoT_hi.js.map +0 -1
- package/dist/validate-yKKzqEZ5.cjs +0 -34
- package/dist/validate-yKKzqEZ5.cjs.map +0 -1
- package/src/runners/agent.ts +0 -155
- package/src/runners/generate.ts +0 -333
- package/src/runners/init.ts +0 -296
- package/src/runners/mcp.ts +0 -51
- package/src/runners/validate.ts +0 -39
- package/src/types.ts +0 -11
- package/src/utils/Writables.ts +0 -17
- package/src/utils/executeHooks.ts +0 -45
- package/src/utils/flags.ts +0 -9
- package/src/utils/getConfig.ts +0 -10
- package/src/utils/getCosmiConfig.ts +0 -80
- package/src/utils/getSummary.ts +0 -68
- package/src/utils/runHook.ts +0 -91
- package/src/utils/watcher.ts +0 -19
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<h1
|
|
2
|
+
<h1>@kubb/cli</h1>
|
|
3
3
|
<a href="https://kubb.dev" target="_blank" rel="noopener noreferrer">
|
|
4
4
|
<img width="180" src="https://raw.githubusercontent.com/kubb-labs/kubb/main/assets/logo.png" alt="Kubb logo">
|
|
5
5
|
</a>
|
|
@@ -21,70 +21,221 @@
|
|
|
21
21
|
</h4>
|
|
22
22
|
</div>
|
|
23
23
|
|
|
24
|
+
Official CLI for Kubb. Run `kubb generate` to transform OpenAPI/Swagger specs into TypeScript types, API clients, hooks, validators, and mocks. Includes interactive project setup (`kubb init`), spec validation, watch mode, MCP server, and agent server commands.
|
|
25
|
+
|
|
26
|
+
## Installation
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
bun add -D @kubb/cli
|
|
30
|
+
# or
|
|
31
|
+
pnpm add -D @kubb/cli
|
|
32
|
+
# or
|
|
33
|
+
npm install -D @kubb/cli
|
|
34
|
+
```
|
|
35
|
+
|
|
24
36
|
## Commands
|
|
25
37
|
|
|
38
|
+
- [`kubb init`](#kubb-init) — scaffold a new project
|
|
39
|
+
- [`kubb generate`](#kubb-generate) — run code generation
|
|
40
|
+
- [`kubb validate`](#kubb-validate) — validate an OpenAPI spec
|
|
41
|
+
- [`kubb mcp`](#kubb-mcp) — start the MCP server for AI assistants
|
|
42
|
+
- [`kubb agent start`](#kubb-agent-start) — start the HTTP agent server
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
26
46
|
### `kubb init`
|
|
27
47
|
|
|
28
|
-
|
|
48
|
+
Scaffold a `kubb.config.ts` and install plugins for code generation from an OpenAPI spec. Run without flags for an interactive setup wizard, or pass flags to skip the prompts.
|
|
29
49
|
|
|
30
50
|
```bash
|
|
31
51
|
npx kubb init
|
|
32
52
|
```
|
|
33
53
|
|
|
34
|
-
|
|
54
|
+
#### Options
|
|
55
|
+
|
|
56
|
+
| Flag | Short | Type | Default | Description |
|
|
57
|
+
| ------------------ | ----- | ------- | ---------------- | ------------------------------------------ |
|
|
58
|
+
| `--yes` | `-y` | boolean | `false` | Skip all prompts and use defaults |
|
|
59
|
+
| `--input <path>` | `-i` | string | `./openapi.yaml` | Path to the OpenAPI specification |
|
|
60
|
+
| `--output <path>` | `-o` | string | `./src/gen` | Output directory for generated files |
|
|
61
|
+
| `--plugins <list>` | | string | | Comma-separated list of plugins to install |
|
|
62
|
+
|
|
63
|
+
Available plugin values for `--plugins`: `plugin-ts`, `plugin-client`, `plugin-react-query`, `plugin-vue-query`, `plugin-zod`, `plugin-faker`, `plugin-msw`, `plugin-cypress`, `plugin-mcp`, `plugin-redoc`.
|
|
64
|
+
|
|
65
|
+
#### Examples
|
|
35
66
|
|
|
36
67
|
```bash
|
|
37
|
-
|
|
38
|
-
|
|
68
|
+
# Interactive wizard
|
|
69
|
+
npx kubb init
|
|
39
70
|
|
|
40
|
-
|
|
71
|
+
# Accept all defaults
|
|
72
|
+
npx kubb init --yes
|
|
41
73
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
- Plugins: OpenAPI Parser + TypeScript
|
|
74
|
+
# Fully non-interactive
|
|
75
|
+
npx kubb init --input ./openapi.yaml --output ./src/gen --plugins plugin-ts,plugin-zod
|
|
45
76
|
|
|
46
|
-
|
|
77
|
+
# Select specific plugins only
|
|
78
|
+
npx kubb init --plugins plugin-ts,plugin-client,plugin-react-query
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
The wizard will:
|
|
47
82
|
|
|
48
|
-
1. Detect or create a `package.json` if
|
|
49
|
-
2. Prompt
|
|
50
|
-
3. Ask for the output directory
|
|
51
|
-
4. Let you
|
|
83
|
+
1. Detect or create a `package.json` if one does not exist
|
|
84
|
+
2. Prompt for your OpenAPI specification path (default: `./openapi.yaml`)
|
|
85
|
+
3. Ask for the output directory (default: `./src/gen`)
|
|
86
|
+
4. Let you choose which plugins to install
|
|
52
87
|
5. Install the selected packages using your package manager (npm, pnpm, yarn, or bun)
|
|
53
|
-
6. Generate a `kubb.config.ts`
|
|
88
|
+
6. Generate a `kubb.config.ts` with your chosen configuration
|
|
89
|
+
|
|
90
|
+
---
|
|
54
91
|
|
|
55
92
|
### `kubb generate`
|
|
56
93
|
|
|
57
|
-
Generate
|
|
94
|
+
Generate TypeScript types, API clients, React Query hooks, Zod schemas, and more from an OpenAPI specification. Reads `kubb.config.ts` by default. Pass an OpenAPI file path as the first argument to override the input without editing the config.
|
|
58
95
|
|
|
59
96
|
```bash
|
|
60
97
|
npx kubb generate
|
|
61
98
|
```
|
|
62
99
|
|
|
63
|
-
Options
|
|
100
|
+
#### Options
|
|
101
|
+
|
|
102
|
+
| Flag | Short | Type | Default | Description |
|
|
103
|
+
| -------------------- | ----- | ------- | ------- | -------------------------------------------------------- |
|
|
104
|
+
| `[input]` | | string | | OpenAPI file path — overrides `input.path` in the config |
|
|
105
|
+
| `--config <path>` | `-c` | string | | Path to the Kubb config file |
|
|
106
|
+
| `--logLevel <level>` | `-l` | string | `info` | Log level: `silent`, `info`, `verbose`, or `debug` |
|
|
107
|
+
| `--watch` | `-w` | boolean | `false` | Re-generate whenever the input file changes |
|
|
108
|
+
| `--debug` | `-d` | boolean | `false` | Override log level to `debug` |
|
|
109
|
+
| `--verbose` | `-v` | boolean | `false` | Override log level to `verbose` |
|
|
110
|
+
| `--silent` | `-s` | boolean | `false` | Override log level to `silent` |
|
|
64
111
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
112
|
+
#### Examples
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
# Use kubb.config.ts in the current directory
|
|
116
|
+
npx kubb generate
|
|
117
|
+
|
|
118
|
+
# Override the input spec without editing the config
|
|
119
|
+
npx kubb generate ./openapi.yaml
|
|
120
|
+
|
|
121
|
+
# Point to a custom config file
|
|
122
|
+
npx kubb generate --config ./configs/kubb.config.ts
|
|
123
|
+
|
|
124
|
+
# Watch for changes and regenerate automatically
|
|
125
|
+
npx kubb generate --watch
|
|
126
|
+
|
|
127
|
+
# Debug output
|
|
128
|
+
npx kubb generate --debug
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
71
132
|
|
|
72
133
|
### `kubb validate`
|
|
73
134
|
|
|
74
|
-
|
|
135
|
+
Parse and validate an OpenAPI/Swagger file for structural correctness. Reports schema errors, missing required fields, and malformed references. Use this before running `generate` to catch spec issues early.
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
npx kubb validate --input <path-or-url>
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
#### Options
|
|
142
|
+
|
|
143
|
+
| Flag | Short | Type | Required | Description |
|
|
144
|
+
| ---------------- | ----- | ------ | -------- | --------------------------------------------------- |
|
|
145
|
+
| `--input <path>` | `-i` | string | ✅ | Path or URL to the OpenAPI/Swagger file to validate |
|
|
146
|
+
|
|
147
|
+
#### Examples
|
|
75
148
|
|
|
76
149
|
```bash
|
|
77
|
-
|
|
150
|
+
# Validate a local file
|
|
151
|
+
npx kubb validate --input ./openapi.yaml
|
|
152
|
+
|
|
153
|
+
# Validate a remote spec
|
|
154
|
+
npx kubb validate --input https://petstore3.swagger.io/api/v3/openapi.json
|
|
78
155
|
```
|
|
79
156
|
|
|
157
|
+
---
|
|
158
|
+
|
|
80
159
|
### `kubb mcp`
|
|
81
160
|
|
|
82
|
-
Start
|
|
161
|
+
Start a Model Context Protocol (MCP) server that exposes Kubb code generation as a tool for AI assistants. Once running, configure your AI client (Claude, Cursor, Windsurf, etc.) to connect — the assistant can then call `kubb generate` directly without leaving the chat.
|
|
162
|
+
|
|
163
|
+
Runs over **stdio** by default (compatible with all MCP clients). Pass `--port` to expose an HTTP server instead.
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
npx kubb mcp
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
#### Options
|
|
170
|
+
|
|
171
|
+
| Flag | Short | Type | Default | Description |
|
|
172
|
+
| ------------------- | ----- | ------ | ----------- | ----------------------------------------- |
|
|
173
|
+
| `--port <number>` | `-p` | string | | Port for HTTP MCP server (omit for stdio) |
|
|
174
|
+
| `--host <hostname>` | | string | `localhost` | Hostname to bind to (HTTP mode only) |
|
|
175
|
+
|
|
176
|
+
#### Examples
|
|
83
177
|
|
|
84
178
|
```bash
|
|
179
|
+
# stdio mode (recommended for Claude Desktop, Cursor, etc.)
|
|
85
180
|
npx kubb mcp
|
|
181
|
+
|
|
182
|
+
# HTTP mode
|
|
183
|
+
npx kubb mcp --port 3001
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
#### MCP client configuration
|
|
187
|
+
|
|
188
|
+
Add the following to your MCP client config (e.g. Claude Desktop's `claude_desktop_config.json`):
|
|
189
|
+
|
|
190
|
+
```json
|
|
191
|
+
{
|
|
192
|
+
"mcpServers": {
|
|
193
|
+
"kubb": {
|
|
194
|
+
"command": "npx",
|
|
195
|
+
"args": ["kubb", "mcp"]
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
86
199
|
```
|
|
87
200
|
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
### `kubb agent start`
|
|
204
|
+
|
|
205
|
+
Start the Kubb Agent HTTP server. Exposes a REST API that accepts a `kubb.config.ts` patch and returns generated code as a stream. Use `--allow-write` to also write files to disk.
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
npx kubb agent start
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
#### Options
|
|
212
|
+
|
|
213
|
+
| Flag | Short | Type | Default | Description |
|
|
214
|
+
| ------------------- | ----- | ------- | --------- | ----------------------------------------------------------------- |
|
|
215
|
+
| `--config <path>` | `-c` | string | | Path to the Kubb config file |
|
|
216
|
+
| `--port <number>` | `-p` | string | `3000` | Port the HTTP server listens on |
|
|
217
|
+
| `--host <hostname>` | | string | `0.0.0.0` | Hostname the HTTP server binds to |
|
|
218
|
+
| `--allow-write` | | boolean | `false` | Write generated files to disk (otherwise output is streamed only) |
|
|
219
|
+
| `--allow-all` | | boolean | `false` | Grant all permissions (implies `--allow-write`) |
|
|
220
|
+
|
|
221
|
+
#### Examples
|
|
222
|
+
|
|
223
|
+
```bash
|
|
224
|
+
# Start with defaults
|
|
225
|
+
npx kubb agent start
|
|
226
|
+
|
|
227
|
+
# Custom port
|
|
228
|
+
npx kubb agent start --port 4000
|
|
229
|
+
|
|
230
|
+
# Allow writing files to disk
|
|
231
|
+
npx kubb agent start --allow-write
|
|
232
|
+
|
|
233
|
+
# Full permissions with custom config
|
|
234
|
+
npx kubb agent start --config ./kubb.config.ts --allow-all
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
See the [`@kubb/agent` README](../agent/README.md) for full environment variable reference, Docker setup, WebSocket API, and Studio integration.
|
|
238
|
+
|
|
88
239
|
## Supporting Kubb
|
|
89
240
|
|
|
90
241
|
Kubb uses an MIT-licensed open source project with its ongoing development made possible entirely by the support of Sponsors. If you would like to become a sponsor, please consider:
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import "./chunk-BvFE5Tac.js";
|
|
2
|
+
import { n as defineCommand } from "./define-m_fp-Aqm.js";
|
|
3
|
+
import { t as version } from "./package-BDL80yHv.js";
|
|
4
|
+
import { o as agentDefaults } from "./constants-B2JTeRBb.js";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/commands/agent.ts
|
|
7
|
+
const command = defineCommand({
|
|
8
|
+
name: "agent",
|
|
9
|
+
description: "Manage the Kubb Agent — an HTTP server that lets AI agents trigger code generation programmatically via a REST API. Useful when an AI workflow needs to generate code without direct CLI access.",
|
|
10
|
+
examples: [
|
|
11
|
+
"kubb agent start",
|
|
12
|
+
"kubb agent start --port 4000 --allow-write",
|
|
13
|
+
"kubb agent start --config ./kubb.config.ts --allow-all"
|
|
14
|
+
],
|
|
15
|
+
subCommands: [defineCommand({
|
|
16
|
+
name: "start",
|
|
17
|
+
description: "Start the Kubb Agent HTTP server. Exposes a REST API that accepts a kubb.config.ts patch and returns generated code as a stream. Use --allow-write to also write files to disk.",
|
|
18
|
+
examples: [
|
|
19
|
+
"kubb agent start",
|
|
20
|
+
"kubb agent start --port 4000",
|
|
21
|
+
"kubb agent start --allow-write",
|
|
22
|
+
"kubb agent start --config ./kubb.config.ts --allow-all"
|
|
23
|
+
],
|
|
24
|
+
options: {
|
|
25
|
+
config: {
|
|
26
|
+
type: "string",
|
|
27
|
+
description: "Path to the Kubb config file",
|
|
28
|
+
short: "c"
|
|
29
|
+
},
|
|
30
|
+
port: {
|
|
31
|
+
type: "string",
|
|
32
|
+
description: "Port the HTTP server listens on",
|
|
33
|
+
short: "p",
|
|
34
|
+
default: agentDefaults.port
|
|
35
|
+
},
|
|
36
|
+
host: {
|
|
37
|
+
type: "string",
|
|
38
|
+
description: "Hostname the HTTP server binds to",
|
|
39
|
+
default: agentDefaults.host
|
|
40
|
+
},
|
|
41
|
+
"allow-write": {
|
|
42
|
+
type: "boolean",
|
|
43
|
+
description: "Write generated files to the filesystem. When omitted, output is streamed only and no files are written.",
|
|
44
|
+
default: false
|
|
45
|
+
},
|
|
46
|
+
"allow-all": {
|
|
47
|
+
type: "boolean",
|
|
48
|
+
description: "Grant all permissions (implies --allow-write).",
|
|
49
|
+
default: false
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
async run({ values }) {
|
|
53
|
+
const { run } = await import("./run-BzpYYOQs.js");
|
|
54
|
+
await run({
|
|
55
|
+
port: values.port !== void 0 ? values.port : void 0,
|
|
56
|
+
host: values.host,
|
|
57
|
+
configPath: values.config,
|
|
58
|
+
allowWrite: values["allow-write"],
|
|
59
|
+
allowAll: values["allow-all"],
|
|
60
|
+
version
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
})]
|
|
64
|
+
});
|
|
65
|
+
//#endregion
|
|
66
|
+
export { command };
|
|
67
|
+
|
|
68
|
+
//# sourceMappingURL=agent-CPKt8QQU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-CPKt8QQU.js","names":["command","startCommand"],"sources":["../src/commands/agent/start.ts","../src/commands/agent.ts"],"sourcesContent":["import { defineCommand } from '@internals/utils'\nimport { version } from '../../../package.json'\nimport { agentDefaults } from '../../constants.ts'\n\nexport const command = defineCommand({\n name: 'start',\n description:\n 'Start the Kubb Agent HTTP server. Exposes a REST API that accepts a kubb.config.ts patch and returns generated code as a stream. Use --allow-write to also write files to disk.',\n examples: ['kubb agent start', 'kubb agent start --port 4000', 'kubb agent start --allow-write', 'kubb agent start --config ./kubb.config.ts --allow-all'],\n options: {\n config: {\n type: 'string',\n description: 'Path to the Kubb config file',\n short: 'c',\n },\n port: {\n type: 'string',\n description: 'Port the HTTP server listens on',\n short: 'p',\n default: agentDefaults.port,\n },\n host: {\n type: 'string',\n description: 'Hostname the HTTP server binds to',\n default: agentDefaults.host,\n },\n 'allow-write': {\n type: 'boolean',\n description: 'Write generated files to the filesystem. When omitted, output is streamed only and no files are written.',\n default: false,\n },\n 'allow-all': {\n type: 'boolean',\n description: 'Grant all permissions (implies --allow-write).',\n default: false,\n },\n },\n async run({ values }) {\n const { run } = await import('../../runners/agent/run.ts')\n\n await run({\n port: values.port !== undefined ? values.port : undefined,\n host: values.host,\n configPath: values.config,\n allowWrite: values['allow-write'],\n allowAll: values['allow-all'],\n version,\n })\n },\n})\n","import { defineCommand } from '@internals/utils'\nimport { command as startCommand } from './agent/start.ts'\n\nexport const command = defineCommand({\n name: 'agent',\n description:\n 'Manage the Kubb Agent — an HTTP server that lets AI agents trigger code generation programmatically via a REST API. Useful when an AI workflow needs to generate code without direct CLI access.',\n examples: ['kubb agent start', 'kubb agent start --port 4000 --allow-write', 'kubb agent start --config ./kubb.config.ts --allow-all'],\n subCommands: [startCommand],\n})\n"],"mappings":";;;;;;ACGA,MAAa,UAAU,cAAc;CACnC,MAAM;CACN,aACE;CACF,UAAU;EAAC;EAAoB;EAA8C;EAAyD;CACtI,aAAa,CDJQ,cAAc;EACnC,MAAM;EACN,aACE;EACF,UAAU;GAAC;GAAoB;GAAgC;GAAkC;GAAyD;EAC1J,SAAS;GACP,QAAQ;IACN,MAAM;IACN,aAAa;IACb,OAAO;IACR;GACD,MAAM;IACJ,MAAM;IACN,aAAa;IACb,OAAO;IACP,SAAS,cAAc;IACxB;GACD,MAAM;IACJ,MAAM;IACN,aAAa;IACb,SAAS,cAAc;IACxB;GACD,eAAe;IACb,MAAM;IACN,aAAa;IACb,SAAS;IACV;GACD,aAAa;IACX,MAAM;IACN,aAAa;IACb,SAAS;IACV;GACF;EACD,MAAM,IAAI,EAAE,UAAU;GACpB,MAAM,EAAE,QAAQ,MAAM,OAAO;GAE7B,MAAM,IAAI;IACR,MAAM,OAAO,SAAS,KAAA,IAAY,OAAO,OAAO,KAAA;IAChD,MAAM,OAAO;IACb,YAAY,OAAO;IACnB,YAAY,OAAO;IACnB,UAAU,OAAO;IACjB;IACD,CAAC;;EAEL,CCzCeC,CAAa;CAC5B,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
require("./chunk-ByKO4r7w.cjs");
|
|
2
|
+
const require_define = require("./define-Bdn8j5VM.cjs");
|
|
3
|
+
const require_package = require("./package-CHmy7tzG.cjs");
|
|
4
|
+
const require_constants = require("./constants-BINTA5VZ.cjs");
|
|
5
|
+
//#region src/commands/agent/start.ts
|
|
6
|
+
const command$1 = require_define.defineCommand({
|
|
7
|
+
name: "start",
|
|
8
|
+
description: "Start the Kubb Agent HTTP server. Exposes a REST API that accepts a kubb.config.ts patch and returns generated code as a stream. Use --allow-write to also write files to disk.",
|
|
9
|
+
examples: [
|
|
10
|
+
"kubb agent start",
|
|
11
|
+
"kubb agent start --port 4000",
|
|
12
|
+
"kubb agent start --allow-write",
|
|
13
|
+
"kubb agent start --config ./kubb.config.ts --allow-all"
|
|
14
|
+
],
|
|
15
|
+
options: {
|
|
16
|
+
config: {
|
|
17
|
+
type: "string",
|
|
18
|
+
description: "Path to the Kubb config file",
|
|
19
|
+
short: "c"
|
|
20
|
+
},
|
|
21
|
+
port: {
|
|
22
|
+
type: "string",
|
|
23
|
+
description: "Port the HTTP server listens on",
|
|
24
|
+
short: "p",
|
|
25
|
+
default: require_constants.agentDefaults.port
|
|
26
|
+
},
|
|
27
|
+
host: {
|
|
28
|
+
type: "string",
|
|
29
|
+
description: "Hostname the HTTP server binds to",
|
|
30
|
+
default: require_constants.agentDefaults.host
|
|
31
|
+
},
|
|
32
|
+
"allow-write": {
|
|
33
|
+
type: "boolean",
|
|
34
|
+
description: "Write generated files to the filesystem. When omitted, output is streamed only and no files are written.",
|
|
35
|
+
default: false
|
|
36
|
+
},
|
|
37
|
+
"allow-all": {
|
|
38
|
+
type: "boolean",
|
|
39
|
+
description: "Grant all permissions (implies --allow-write).",
|
|
40
|
+
default: false
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
async run({ values }) {
|
|
44
|
+
const { run } = await Promise.resolve().then(() => require("./run-DwdAwnLG.cjs"));
|
|
45
|
+
await run({
|
|
46
|
+
port: values.port !== void 0 ? values.port : void 0,
|
|
47
|
+
host: values.host,
|
|
48
|
+
configPath: values.config,
|
|
49
|
+
allowWrite: values["allow-write"],
|
|
50
|
+
allowAll: values["allow-all"],
|
|
51
|
+
version: require_package.version
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/commands/agent.ts
|
|
57
|
+
const command = require_define.defineCommand({
|
|
58
|
+
name: "agent",
|
|
59
|
+
description: "Manage the Kubb Agent — an HTTP server that lets AI agents trigger code generation programmatically via a REST API. Useful when an AI workflow needs to generate code without direct CLI access.",
|
|
60
|
+
examples: [
|
|
61
|
+
"kubb agent start",
|
|
62
|
+
"kubb agent start --port 4000 --allow-write",
|
|
63
|
+
"kubb agent start --config ./kubb.config.ts --allow-all"
|
|
64
|
+
],
|
|
65
|
+
subCommands: [command$1]
|
|
66
|
+
});
|
|
67
|
+
//#endregion
|
|
68
|
+
exports.command = command;
|
|
69
|
+
|
|
70
|
+
//# sourceMappingURL=agent-lxTI4Krn.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-lxTI4Krn.cjs","names":["command","defineCommand","agentDefaults","defineCommand","startCommand"],"sources":["../src/commands/agent/start.ts","../src/commands/agent.ts"],"sourcesContent":["import { defineCommand } from '@internals/utils'\nimport { version } from '../../../package.json'\nimport { agentDefaults } from '../../constants.ts'\n\nexport const command = defineCommand({\n name: 'start',\n description:\n 'Start the Kubb Agent HTTP server. Exposes a REST API that accepts a kubb.config.ts patch and returns generated code as a stream. Use --allow-write to also write files to disk.',\n examples: ['kubb agent start', 'kubb agent start --port 4000', 'kubb agent start --allow-write', 'kubb agent start --config ./kubb.config.ts --allow-all'],\n options: {\n config: {\n type: 'string',\n description: 'Path to the Kubb config file',\n short: 'c',\n },\n port: {\n type: 'string',\n description: 'Port the HTTP server listens on',\n short: 'p',\n default: agentDefaults.port,\n },\n host: {\n type: 'string',\n description: 'Hostname the HTTP server binds to',\n default: agentDefaults.host,\n },\n 'allow-write': {\n type: 'boolean',\n description: 'Write generated files to the filesystem. When omitted, output is streamed only and no files are written.',\n default: false,\n },\n 'allow-all': {\n type: 'boolean',\n description: 'Grant all permissions (implies --allow-write).',\n default: false,\n },\n },\n async run({ values }) {\n const { run } = await import('../../runners/agent/run.ts')\n\n await run({\n port: values.port !== undefined ? values.port : undefined,\n host: values.host,\n configPath: values.config,\n allowWrite: values['allow-write'],\n allowAll: values['allow-all'],\n version,\n })\n },\n})\n","import { defineCommand } from '@internals/utils'\nimport { command as startCommand } from './agent/start.ts'\n\nexport const command = defineCommand({\n name: 'agent',\n description:\n 'Manage the Kubb Agent — an HTTP server that lets AI agents trigger code generation programmatically via a REST API. Useful when an AI workflow needs to generate code without direct CLI access.',\n examples: ['kubb agent start', 'kubb agent start --port 4000 --allow-write', 'kubb agent start --config ./kubb.config.ts --allow-all'],\n subCommands: [startCommand],\n})\n"],"mappings":";;;;;AAIA,MAAaA,YAAUC,eAAAA,cAAc;CACnC,MAAM;CACN,aACE;CACF,UAAU;EAAC;EAAoB;EAAgC;EAAkC;EAAyD;CAC1J,SAAS;EACP,QAAQ;GACN,MAAM;GACN,aAAa;GACb,OAAO;GACR;EACD,MAAM;GACJ,MAAM;GACN,aAAa;GACb,OAAO;GACP,SAASC,kBAAAA,cAAc;GACxB;EACD,MAAM;GACJ,MAAM;GACN,aAAa;GACb,SAASA,kBAAAA,cAAc;GACxB;EACD,eAAe;GACb,MAAM;GACN,aAAa;GACb,SAAS;GACV;EACD,aAAa;GACX,MAAM;GACN,aAAa;GACb,SAAS;GACV;EACF;CACD,MAAM,IAAI,EAAE,UAAU;EACpB,MAAM,EAAE,QAAQ,MAAA,QAAA,SAAA,CAAA,WAAA,QAAM,qBAAA,CAAA;EAEtB,MAAM,IAAI;GACR,MAAM,OAAO,SAAS,KAAA,IAAY,OAAO,OAAO,KAAA;GAChD,MAAM,OAAO;GACb,YAAY,OAAO;GACnB,YAAY,OAAO;GACnB,UAAU,OAAO;GACjB,SAAA,gBAAA;GACD,CAAC;;CAEL,CAAC;;;AC9CF,MAAa,UAAUC,eAAAA,cAAc;CACnC,MAAM;CACN,aACE;CACF,UAAU;EAAC;EAAoB;EAA8C;EAAyD;CACtI,aAAa,CAACC,UAAa;CAC5B,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { t as KUBB_CONFIG_FILENAME } from "./constants-DSJ-Xrbv.js";
|
|
2
|
+
//#region src/constants.ts
|
|
3
|
+
/**
|
|
4
|
+
* NPM registry endpoint used to check for @kubb/cli updates.
|
|
5
|
+
*/
|
|
6
|
+
const KUBB_NPM_PACKAGE_URL = "https://registry.npmjs.org/@kubb/cli/latest";
|
|
7
|
+
/**
|
|
8
|
+
* OpenTelemetry ingestion endpoint for anonymous usage telemetry.
|
|
9
|
+
*/
|
|
10
|
+
const OTLP_ENDPOINT = "https://otlp.kubb.dev";
|
|
11
|
+
/**
|
|
12
|
+
* Horizontal rule rendered above/below the plain-logger generation summary.
|
|
13
|
+
*/
|
|
14
|
+
const SUMMARY_SEPARATOR = "─".repeat(27);
|
|
15
|
+
/**
|
|
16
|
+
* Glob pattern for paths the file watcher ignores.
|
|
17
|
+
*/
|
|
18
|
+
const WATCHER_IGNORED_PATHS = "**/{.git,node_modules}/**";
|
|
19
|
+
/**
|
|
20
|
+
* Flags that short-circuit execution (help/version) — no telemetry notice is shown.
|
|
21
|
+
*/
|
|
22
|
+
const QUIET_FLAGS = new Set([
|
|
23
|
+
"--help",
|
|
24
|
+
"-h",
|
|
25
|
+
"--version",
|
|
26
|
+
"-v"
|
|
27
|
+
]);
|
|
28
|
+
const agentDefaults = {
|
|
29
|
+
port: "3000",
|
|
30
|
+
host: "localhost",
|
|
31
|
+
configFile: KUBB_CONFIG_FILENAME,
|
|
32
|
+
retryTimeout: "30000",
|
|
33
|
+
studioUrl: "https://kubb.studio",
|
|
34
|
+
/**
|
|
35
|
+
* Relative path from the @kubb/agent package root to the server entry.
|
|
36
|
+
*/
|
|
37
|
+
serverEntryPath: ".output/server/index.mjs"
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
export { WATCHER_IGNORED_PATHS as a, SUMMARY_SEPARATOR as i, OTLP_ENDPOINT as n, agentDefaults as o, QUIET_FLAGS as r, KUBB_NPM_PACKAGE_URL as t };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=constants-B2JTeRBb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-B2JTeRBb.js","names":[],"sources":["../src/constants.ts"],"sourcesContent":["import { KUBB_CONFIG_FILENAME } from '@internals/shared'\n\n/**\n * NPM registry endpoint used to check for @kubb/cli updates.\n */\nexport const KUBB_NPM_PACKAGE_URL = 'https://registry.npmjs.org/@kubb/cli/latest' as const\n\n/**\n * OpenTelemetry ingestion endpoint for anonymous usage telemetry.\n */\nexport const OTLP_ENDPOINT = 'https://otlp.kubb.dev' as const\n\n/**\n * Horizontal rule rendered above/below the plain-logger generation summary.\n */\nexport const SUMMARY_SEPARATOR = '─'.repeat(27)\n\n/**\n * Maximum number of █ characters in a plugin timing bar.\n */\nexport const SUMMARY_MAX_BAR_LENGTH = 10 as const\n\n/**\n * Divides elapsed milliseconds into bar-length units (1 block per 100 ms).\n */\nexport const SUMMARY_TIME_SCALE_DIVISOR = 100 as const\n\n/**\n * Glob pattern for paths the file watcher ignores.\n */\nexport const WATCHER_IGNORED_PATHS = '**/{.git,node_modules}/**' as const\n\n/**\n * Flags that short-circuit execution (help/version) — no telemetry notice is shown.\n */\nexport const QUIET_FLAGS = new Set(['--help', '-h', '--version', '-v'] as const)\n\nexport const agentDefaults = {\n port: '3000',\n host: 'localhost',\n configFile: KUBB_CONFIG_FILENAME,\n retryTimeout: '30000',\n studioUrl: 'https://kubb.studio',\n /**\n * Relative path from the @kubb/agent package root to the server entry.\n */\n serverEntryPath: '.output/server/index.mjs',\n} as const\n"],"mappings":";;;;;AAKA,MAAa,uBAAuB;;;;AAKpC,MAAa,gBAAgB;;;;AAK7B,MAAa,oBAAoB,IAAI,OAAO,GAAG;;;;AAe/C,MAAa,wBAAwB;;;;AAKrC,MAAa,cAAc,IAAI,IAAI;CAAC;CAAU;CAAM;CAAa;CAAK,CAAU;AAEhF,MAAa,gBAAgB;CAC3B,MAAM;CACN,MAAM;CACN,YAAY;CACZ,cAAc;CACd,WAAW;;;;CAIX,iBAAiB;CAClB"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
const require_constants = require("./constants-BYGmiFs0.cjs");
|
|
2
|
+
//#region src/constants.ts
|
|
3
|
+
/**
|
|
4
|
+
* NPM registry endpoint used to check for @kubb/cli updates.
|
|
5
|
+
*/
|
|
6
|
+
const KUBB_NPM_PACKAGE_URL = "https://registry.npmjs.org/@kubb/cli/latest";
|
|
7
|
+
/**
|
|
8
|
+
* OpenTelemetry ingestion endpoint for anonymous usage telemetry.
|
|
9
|
+
*/
|
|
10
|
+
const OTLP_ENDPOINT = "https://otlp.kubb.dev";
|
|
11
|
+
/**
|
|
12
|
+
* Horizontal rule rendered above/below the plain-logger generation summary.
|
|
13
|
+
*/
|
|
14
|
+
const SUMMARY_SEPARATOR = "─".repeat(27);
|
|
15
|
+
/**
|
|
16
|
+
* Glob pattern for paths the file watcher ignores.
|
|
17
|
+
*/
|
|
18
|
+
const WATCHER_IGNORED_PATHS = "**/{.git,node_modules}/**";
|
|
19
|
+
/**
|
|
20
|
+
* Flags that short-circuit execution (help/version) — no telemetry notice is shown.
|
|
21
|
+
*/
|
|
22
|
+
const QUIET_FLAGS = new Set([
|
|
23
|
+
"--help",
|
|
24
|
+
"-h",
|
|
25
|
+
"--version",
|
|
26
|
+
"-v"
|
|
27
|
+
]);
|
|
28
|
+
const agentDefaults = {
|
|
29
|
+
port: "3000",
|
|
30
|
+
host: "localhost",
|
|
31
|
+
configFile: require_constants.KUBB_CONFIG_FILENAME,
|
|
32
|
+
retryTimeout: "30000",
|
|
33
|
+
studioUrl: "https://kubb.studio",
|
|
34
|
+
/**
|
|
35
|
+
* Relative path from the @kubb/agent package root to the server entry.
|
|
36
|
+
*/
|
|
37
|
+
serverEntryPath: ".output/server/index.mjs"
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
Object.defineProperty(exports, "KUBB_NPM_PACKAGE_URL", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function() {
|
|
43
|
+
return KUBB_NPM_PACKAGE_URL;
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "OTLP_ENDPOINT", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function() {
|
|
49
|
+
return OTLP_ENDPOINT;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "QUIET_FLAGS", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function() {
|
|
55
|
+
return QUIET_FLAGS;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "SUMMARY_SEPARATOR", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function() {
|
|
61
|
+
return SUMMARY_SEPARATOR;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "WATCHER_IGNORED_PATHS", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function() {
|
|
67
|
+
return WATCHER_IGNORED_PATHS;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "agentDefaults", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function() {
|
|
73
|
+
return agentDefaults;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
//# sourceMappingURL=constants-BINTA5VZ.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-BINTA5VZ.cjs","names":["KUBB_CONFIG_FILENAME"],"sources":["../src/constants.ts"],"sourcesContent":["import { KUBB_CONFIG_FILENAME } from '@internals/shared'\n\n/**\n * NPM registry endpoint used to check for @kubb/cli updates.\n */\nexport const KUBB_NPM_PACKAGE_URL = 'https://registry.npmjs.org/@kubb/cli/latest' as const\n\n/**\n * OpenTelemetry ingestion endpoint for anonymous usage telemetry.\n */\nexport const OTLP_ENDPOINT = 'https://otlp.kubb.dev' as const\n\n/**\n * Horizontal rule rendered above/below the plain-logger generation summary.\n */\nexport const SUMMARY_SEPARATOR = '─'.repeat(27)\n\n/**\n * Maximum number of █ characters in a plugin timing bar.\n */\nexport const SUMMARY_MAX_BAR_LENGTH = 10 as const\n\n/**\n * Divides elapsed milliseconds into bar-length units (1 block per 100 ms).\n */\nexport const SUMMARY_TIME_SCALE_DIVISOR = 100 as const\n\n/**\n * Glob pattern for paths the file watcher ignores.\n */\nexport const WATCHER_IGNORED_PATHS = '**/{.git,node_modules}/**' as const\n\n/**\n * Flags that short-circuit execution (help/version) — no telemetry notice is shown.\n */\nexport const QUIET_FLAGS = new Set(['--help', '-h', '--version', '-v'] as const)\n\nexport const agentDefaults = {\n port: '3000',\n host: 'localhost',\n configFile: KUBB_CONFIG_FILENAME,\n retryTimeout: '30000',\n studioUrl: 'https://kubb.studio',\n /**\n * Relative path from the @kubb/agent package root to the server entry.\n */\n serverEntryPath: '.output/server/index.mjs',\n} as const\n"],"mappings":";;;;;AAKA,MAAa,uBAAuB;;;;AAKpC,MAAa,gBAAgB;;;;AAK7B,MAAa,oBAAoB,IAAI,OAAO,GAAG;;;;AAe/C,MAAa,wBAAwB;;;;AAKrC,MAAa,cAAc,IAAI,IAAI;CAAC;CAAU;CAAM;CAAa;CAAK,CAAU;AAEhF,MAAa,gBAAgB;CAC3B,MAAM;CACN,MAAM;CACN,YAAYA,kBAAAA;CACZ,cAAc;CACd,WAAW;;;;CAIX,iBAAiB;CAClB"}
|