vercel 56.4.1 → 56.5.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.
- package/dist/chunks/{add-L3Z6PL54.js → add-6GRH6G2M.js} +4 -4
- package/dist/chunks/{add-RFEJCIBM.js → add-KNK5E2YT.js} +3 -3
- package/dist/chunks/{chunk-XFGY3JAX.js → chunk-23U6FANO.js} +1 -1
- package/dist/chunks/chunk-2473DUBR.js +15 -0
- package/dist/chunks/{chunk-4M3ZQCYN.js → chunk-26TEKOBZ.js} +1 -1
- package/dist/chunks/{chunk-CHZBEMLF.js → chunk-3BHSS5E2.js} +2 -2
- package/dist/chunks/{chunk-5EXIJBLL.js → chunk-4MK452Y5.js} +4 -4
- package/dist/chunks/{chunk-GKVAAY2A.js → chunk-ARKHETJP.js} +1 -1
- package/dist/chunks/chunk-BM36UWE2.js +245 -0
- package/dist/chunks/{chunk-J6KTUJHV.js → chunk-CM3DLBDY.js} +1 -1
- package/dist/chunks/{chunk-NLRIKNPX.js → chunk-DI3HR3K6.js} +1 -1
- package/dist/chunks/{chunk-Y7TVKRRJ.js → chunk-DOF6CJLL.js} +3 -3
- package/dist/chunks/chunk-E336ZXPP.js +43 -0
- package/dist/chunks/{chunk-UHGAPG7O.js → chunk-EYICIM2K.js} +4 -4
- package/dist/chunks/chunk-FHEMFAHB.js +320 -0
- package/dist/chunks/{chunk-DXFSBJTA.js → chunk-G4MTGCZ5.js} +1 -1
- package/dist/chunks/{chunk-43B3LNUF.js → chunk-GAOAGU5K.js} +1 -1
- package/dist/chunks/{chunk-F32B76CK.js → chunk-GNV7547O.js} +1 -1
- package/dist/chunks/{chunk-IHQ7DPQI.js → chunk-IBP2XAUH.js} +102 -2
- package/dist/chunks/{chunk-OOD67FAL.js → chunk-JQG5EDRD.js} +1 -1
- package/dist/chunks/{chunk-MQRHJEBS.js → chunk-PPEQUJ7T.js} +2 -2
- package/dist/chunks/{chunk-VLTQJKP6.js → chunk-PRYNIKBZ.js} +1 -1
- package/dist/chunks/{chunk-A4XB42AB.js → chunk-SWEPOMSA.js} +1 -1
- package/dist/chunks/{chunk-GLAHGVBS.js → chunk-TMK6RSYW.js} +842 -845
- package/dist/chunks/chunk-WR7JTCGL.js +104 -0
- package/dist/chunks/{chunk-HZKJMZEQ.js → chunk-X43U65TH.js} +2 -2
- package/dist/chunks/chunk-YTFJGKRG.js +247 -0
- package/dist/chunks/{compile-vercel-config-J2X5OV6K.js → compile-vercel-config-IFET4E6H.js} +2 -2
- package/dist/chunks/config-validator.mjs +1 -0
- package/dist/chunks/{delete-57A44RN7.js → delete-PXB5WRH7.js} +3 -3
- package/dist/chunks/delete-X2MUMONI.js +150 -0
- package/dist/chunks/{disable-DNZ52MEO.js → disable-GBL3SHJL.js} +3 -3
- package/dist/chunks/{discard-HACSIZ74.js → discard-XVVSRGDR.js} +3 -3
- package/dist/chunks/{edit-HJ47TQU3.js → edit-EIHRP6XT.js} +4 -4
- package/dist/chunks/edit-K5Y2BDJO.js +153 -0
- package/dist/chunks/{enable-BVLRVRYM.js → enable-W7AMJWKH.js} +3 -3
- package/dist/chunks/{export-7MJFGMG7.js → export-N3AZ2KOO.js} +3 -3
- package/dist/chunks/{image-4UMD7UZP.js → image-DRTGVPVJ.js} +3 -3
- package/dist/chunks/{inspect-5YZP7IWI.js → inspect-5YUAEI3L.js} +3 -3
- package/dist/chunks/{inspect-WBHUZC3R.js → inspect-AAIVWSJI.js} +3 -3
- package/dist/chunks/{inspect-4JD2QN67.js → inspect-DYXTX6P4.js} +3 -3
- package/dist/chunks/{inspect-XX3OXSHC.js → inspect-IPSAYR2C.js} +3 -3
- package/dist/chunks/inspect-SLZLI6ZC.js +205 -0
- package/dist/chunks/{list-5H57NTM4.js → list-IF2YW73F.js} +2 -2
- package/dist/chunks/list-K2HLGUXV.js +360 -0
- package/dist/chunks/{list-AM6K2JCW.js → list-V7VTXVK4.js} +3 -3
- package/dist/chunks/{login-YO34E4V5.js → login-7C6HQEOG.js} +3 -3
- package/dist/chunks/{ls-YDUYTLXW.js → ls-2NU353QP.js} +3 -3
- package/dist/chunks/{ls-P7ZLBWW2.js → ls-NKECPPOR.js} +3 -3
- package/dist/chunks/{ls-44NPIO2N.js → ls-QQQHOJBE.js} +3 -3
- package/dist/chunks/{ls-MB74DIQV.js → ls-RH6Y4XBS.js} +4 -4
- package/dist/chunks/open-2FAPZA6V.js +106 -0
- package/dist/chunks/{publish-RXFUYSW3.js → publish-G7PB64LJ.js} +3 -3
- package/dist/chunks/{query-ILJJL3BZ.js → query-D4QBT4WR.js} +2 -2
- package/dist/chunks/{reorder-GBCOPZT4.js → reorder-3Z7YIPAX.js} +3 -3
- package/dist/chunks/reply-7QQBXL5H.js +167 -0
- package/dist/chunks/resolve-UYKTDZEX.js +228 -0
- package/dist/chunks/{restore-YK5DGGRX.js → restore-Q2DR7SMW.js} +3 -3
- package/dist/chunks/{rm-LK6P7XTA.js → rm-O4M4GFSK.js} +3 -3
- package/dist/chunks/{rm-FRZMXB2W.js → rm-OCLUTM57.js} +4 -4
- package/dist/chunks/{rm-O474MI5C.js → rm-PCWMEHQ2.js} +3 -3
- package/dist/chunks/{rule-inspect-YEZGYINZ.js → rule-inspect-XJ47UEG7.js} +4 -4
- package/dist/chunks/{rules-MZ2MP6KJ.js → rules-LIH5FLPJ.js} +6 -6
- package/dist/chunks/{schema-FR6CCQIZ.js → schema-OFALTXXM.js} +2 -2
- package/dist/chunks/{tags-AKRTKFRV.js → tags-P4HIAI6D.js} +2 -2
- package/dist/chunks/{update-W3CWQB2F.js → update-E3ZQAFBS.js} +4 -4
- package/dist/commands/build/index.js +11 -11
- package/dist/commands/deploy/index.js +13 -12
- package/dist/commands/dev/index.js +10 -10
- package/dist/commands/env/index.js +9 -8
- package/dist/commands/link/index.js +8 -7
- package/dist/commands/list/index.js +5 -5
- package/dist/commands-bulk.js +2744 -1982
- package/dist/index.js +19 -8
- package/dist/version.mjs +1 -1
- package/package.json +19 -19
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __dirname_(__filename);
|
|
7
|
+
import {
|
|
8
|
+
formatOption,
|
|
9
|
+
limitOption,
|
|
10
|
+
packageName,
|
|
11
|
+
projectOption,
|
|
12
|
+
yesOption
|
|
13
|
+
} from "./chunk-KSSNLCL4.js";
|
|
14
|
+
|
|
15
|
+
// src/commands/comments/command.ts
|
|
16
|
+
var commentsProjectOption = {
|
|
17
|
+
...projectOption,
|
|
18
|
+
shorthand: "p",
|
|
19
|
+
description: "Project ID or name (defaults to the linked project)"
|
|
20
|
+
};
|
|
21
|
+
var messageContentOption = {
|
|
22
|
+
name: "message",
|
|
23
|
+
shorthand: "m",
|
|
24
|
+
type: String,
|
|
25
|
+
argument: "TEXT",
|
|
26
|
+
deprecated: false,
|
|
27
|
+
description: "Markdown message content"
|
|
28
|
+
};
|
|
29
|
+
var fileOption = {
|
|
30
|
+
name: "file",
|
|
31
|
+
shorthand: null,
|
|
32
|
+
type: String,
|
|
33
|
+
argument: "PATH",
|
|
34
|
+
deprecated: false,
|
|
35
|
+
description: "Read Markdown content from a file; use `-` for stdin"
|
|
36
|
+
};
|
|
37
|
+
var attachOption = {
|
|
38
|
+
name: "attach",
|
|
39
|
+
shorthand: null,
|
|
40
|
+
type: [String],
|
|
41
|
+
argument: "URL",
|
|
42
|
+
deprecated: false,
|
|
43
|
+
description: "Attach a file by https URL (repeatable, max 10)"
|
|
44
|
+
};
|
|
45
|
+
var nextCursorOption = {
|
|
46
|
+
name: "next",
|
|
47
|
+
shorthand: "N",
|
|
48
|
+
type: String,
|
|
49
|
+
argument: "CURSOR",
|
|
50
|
+
deprecated: false,
|
|
51
|
+
description: "Show the next page using the cursor from the previous output"
|
|
52
|
+
};
|
|
53
|
+
var listSubcommand = {
|
|
54
|
+
name: "list",
|
|
55
|
+
aliases: ["ls"],
|
|
56
|
+
default: true,
|
|
57
|
+
description: "List comments for a project",
|
|
58
|
+
arguments: [],
|
|
59
|
+
options: [
|
|
60
|
+
commentsProjectOption,
|
|
61
|
+
{
|
|
62
|
+
name: "branch",
|
|
63
|
+
shorthand: null,
|
|
64
|
+
type: [String],
|
|
65
|
+
argument: "BRANCH",
|
|
66
|
+
deprecated: false,
|
|
67
|
+
description: "Filter by Git branch (repeatable; defaults to the current branch when inferable)"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "all-branches",
|
|
71
|
+
shorthand: null,
|
|
72
|
+
type: Boolean,
|
|
73
|
+
deprecated: false,
|
|
74
|
+
description: "Show comments from every branch"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "status",
|
|
78
|
+
shorthand: null,
|
|
79
|
+
type: String,
|
|
80
|
+
argument: "STATUS",
|
|
81
|
+
deprecated: false,
|
|
82
|
+
description: "unresolved (default), resolved, or all"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "page",
|
|
86
|
+
shorthand: null,
|
|
87
|
+
type: [String],
|
|
88
|
+
argument: "PATH",
|
|
89
|
+
deprecated: false,
|
|
90
|
+
description: "Filter by recorded page path or glob (repeatable). Note: rewrites may record a different path than the browser URL"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: "author",
|
|
94
|
+
shorthand: null,
|
|
95
|
+
type: [String],
|
|
96
|
+
argument: "USER",
|
|
97
|
+
deprecated: false,
|
|
98
|
+
description: "Filter by author user ID, or `me` (repeatable)"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "content-id",
|
|
102
|
+
shorthand: null,
|
|
103
|
+
type: [String],
|
|
104
|
+
argument: "ID",
|
|
105
|
+
deprecated: false,
|
|
106
|
+
description: "Filter by CMS content ID (repeatable)"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: "search",
|
|
110
|
+
shorthand: null,
|
|
111
|
+
type: String,
|
|
112
|
+
argument: "TEXT",
|
|
113
|
+
deprecated: false,
|
|
114
|
+
description: "Search comment content"
|
|
115
|
+
},
|
|
116
|
+
limitOption,
|
|
117
|
+
nextCursorOption,
|
|
118
|
+
formatOption
|
|
119
|
+
],
|
|
120
|
+
examples: [
|
|
121
|
+
{
|
|
122
|
+
name: "List unresolved comments for the linked project",
|
|
123
|
+
value: `${packageName} comments`
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: "List comments on every branch",
|
|
127
|
+
value: `${packageName} comments --all-branches --status all`
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: "List comments as JSON",
|
|
131
|
+
value: `${packageName} comments --format json | jq '.threads[].id'`
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
};
|
|
135
|
+
var inspectSubcommand = {
|
|
136
|
+
name: "inspect",
|
|
137
|
+
aliases: ["get"],
|
|
138
|
+
description: "Show a comment thread with its full conversation",
|
|
139
|
+
arguments: [{ name: "thread", required: false }],
|
|
140
|
+
options: [
|
|
141
|
+
commentsProjectOption,
|
|
142
|
+
{
|
|
143
|
+
name: "context",
|
|
144
|
+
shorthand: null,
|
|
145
|
+
type: Boolean,
|
|
146
|
+
deprecated: false,
|
|
147
|
+
description: "Include framework and device context"
|
|
148
|
+
},
|
|
149
|
+
formatOption
|
|
150
|
+
],
|
|
151
|
+
examples: [
|
|
152
|
+
{
|
|
153
|
+
name: "Inspect a comment thread",
|
|
154
|
+
value: `${packageName} comments inspect icZ9BnPPINuK`
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: "Inspect a comment from its URL",
|
|
158
|
+
value: `${packageName} comments inspect https://vercel.com/team/project/c/icZ9BnPPINuK`
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: "Pick a comment interactively",
|
|
162
|
+
value: `${packageName} comments inspect`
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: "Inspect a thread whose ID starts with a dash",
|
|
166
|
+
value: `${packageName} comments inspect -- -ULOL`
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
};
|
|
170
|
+
var openSubcommand = {
|
|
171
|
+
name: "open",
|
|
172
|
+
aliases: [],
|
|
173
|
+
description: "Open a comment thread on vercel.com",
|
|
174
|
+
arguments: [{ name: "thread", required: true }],
|
|
175
|
+
options: [commentsProjectOption],
|
|
176
|
+
examples: [
|
|
177
|
+
{
|
|
178
|
+
name: "Open a comment in the browser",
|
|
179
|
+
value: `${packageName} comments open icZ9BnPPINuK`
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
};
|
|
183
|
+
var replySubcommand = {
|
|
184
|
+
name: "reply",
|
|
185
|
+
aliases: [],
|
|
186
|
+
description: "Reply to a comment thread",
|
|
187
|
+
arguments: [{ name: "thread", required: true }],
|
|
188
|
+
options: [
|
|
189
|
+
commentsProjectOption,
|
|
190
|
+
messageContentOption,
|
|
191
|
+
fileOption,
|
|
192
|
+
attachOption,
|
|
193
|
+
formatOption
|
|
194
|
+
],
|
|
195
|
+
examples: [
|
|
196
|
+
{
|
|
197
|
+
name: "Reply to a comment",
|
|
198
|
+
value: `${packageName} comments reply icZ9BnPPINuK -m 'Fixed in **main**.'`
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
name: "Reply from stdin",
|
|
202
|
+
value: `git log -1 --format=%s | ${packageName} comments reply icZ9BnPPINuK`
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
};
|
|
206
|
+
var resolveSubcommand = {
|
|
207
|
+
name: "resolve",
|
|
208
|
+
aliases: [],
|
|
209
|
+
description: "Resolve comment threads, optionally with a closing reply",
|
|
210
|
+
arguments: [{ name: "thread", required: true, multiple: true }],
|
|
211
|
+
options: [
|
|
212
|
+
commentsProjectOption,
|
|
213
|
+
messageContentOption,
|
|
214
|
+
yesOption,
|
|
215
|
+
formatOption
|
|
216
|
+
],
|
|
217
|
+
examples: [
|
|
218
|
+
{
|
|
219
|
+
name: "Resolve a comment",
|
|
220
|
+
value: `${packageName} comments resolve icZ9BnPPINuK`
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: "Reply and resolve in one step",
|
|
224
|
+
value: `${packageName} comments resolve icZ9BnPPINuK -m 'Fixed in the latest deployment'`
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
};
|
|
228
|
+
var reopenSubcommand = {
|
|
229
|
+
name: "reopen",
|
|
230
|
+
aliases: [],
|
|
231
|
+
description: "Reopen resolved comment threads",
|
|
232
|
+
arguments: [{ name: "thread", required: true, multiple: true }],
|
|
233
|
+
options: [commentsProjectOption, yesOption, formatOption],
|
|
234
|
+
examples: [
|
|
235
|
+
{
|
|
236
|
+
name: "Reopen a comment",
|
|
237
|
+
value: `${packageName} comments reopen icZ9BnPPINuK`
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
};
|
|
241
|
+
var editSubcommand = {
|
|
242
|
+
name: "edit",
|
|
243
|
+
aliases: [],
|
|
244
|
+
description: "Edit a comment message",
|
|
245
|
+
arguments: [
|
|
246
|
+
{ name: "thread", required: true },
|
|
247
|
+
{ name: "message-id", required: true }
|
|
248
|
+
],
|
|
249
|
+
options: [
|
|
250
|
+
commentsProjectOption,
|
|
251
|
+
messageContentOption,
|
|
252
|
+
fileOption,
|
|
253
|
+
formatOption
|
|
254
|
+
],
|
|
255
|
+
examples: [
|
|
256
|
+
{
|
|
257
|
+
name: "Edit a message",
|
|
258
|
+
value: `${packageName} comments edit icZ9BnPPINuK VvkhYF6dTqbpm7K -m 'Updated wording'`
|
|
259
|
+
}
|
|
260
|
+
]
|
|
261
|
+
};
|
|
262
|
+
var deleteSubcommand = {
|
|
263
|
+
name: "delete",
|
|
264
|
+
aliases: [],
|
|
265
|
+
description: "Delete a comment message",
|
|
266
|
+
arguments: [
|
|
267
|
+
{ name: "thread", required: true },
|
|
268
|
+
{ name: "message-id", required: true }
|
|
269
|
+
],
|
|
270
|
+
options: [commentsProjectOption, yesOption, formatOption],
|
|
271
|
+
examples: [
|
|
272
|
+
{
|
|
273
|
+
name: "Delete a message",
|
|
274
|
+
value: `${packageName} comments delete icZ9BnPPINuK VvkhYF6dTqbpm7K`
|
|
275
|
+
}
|
|
276
|
+
]
|
|
277
|
+
};
|
|
278
|
+
var commentsCommand = {
|
|
279
|
+
name: "comments",
|
|
280
|
+
aliases: [],
|
|
281
|
+
description: "Review and act on Vercel Toolbar comments from the command line",
|
|
282
|
+
arguments: [],
|
|
283
|
+
subcommands: [
|
|
284
|
+
listSubcommand,
|
|
285
|
+
inspectSubcommand,
|
|
286
|
+
openSubcommand,
|
|
287
|
+
replySubcommand,
|
|
288
|
+
resolveSubcommand,
|
|
289
|
+
reopenSubcommand,
|
|
290
|
+
editSubcommand,
|
|
291
|
+
deleteSubcommand
|
|
292
|
+
],
|
|
293
|
+
options: [],
|
|
294
|
+
examples: [
|
|
295
|
+
{
|
|
296
|
+
name: "Review unresolved comments for the linked project",
|
|
297
|
+
value: `${packageName} comments`
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
name: "Inspect a comment and reply",
|
|
301
|
+
value: `${packageName} comments inspect icZ9BnPPINuK`
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
name: "Reply and resolve in one step",
|
|
305
|
+
value: `${packageName} comments resolve icZ9BnPPINuK -m 'Fixed!'`
|
|
306
|
+
}
|
|
307
|
+
]
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
export {
|
|
311
|
+
listSubcommand,
|
|
312
|
+
inspectSubcommand,
|
|
313
|
+
openSubcommand,
|
|
314
|
+
replySubcommand,
|
|
315
|
+
resolveSubcommand,
|
|
316
|
+
reopenSubcommand,
|
|
317
|
+
editSubcommand,
|
|
318
|
+
deleteSubcommand,
|
|
319
|
+
commentsCommand
|
|
320
|
+
};
|
|
@@ -13,6 +13,9 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
routesCommand
|
|
15
15
|
} from "./chunk-VZSZBD4V.js";
|
|
16
|
+
import {
|
|
17
|
+
commentsCommand
|
|
18
|
+
} from "./chunk-FHEMFAHB.js";
|
|
16
19
|
import {
|
|
17
20
|
activityCommand
|
|
18
21
|
} from "./chunk-3PKFXNJZ.js";
|
|
@@ -28,10 +31,10 @@ import {
|
|
|
28
31
|
import {
|
|
29
32
|
buildCommand,
|
|
30
33
|
pullCommand
|
|
31
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-PRYNIKBZ.js";
|
|
32
35
|
import {
|
|
33
36
|
envCommand
|
|
34
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-TMK6RSYW.js";
|
|
35
38
|
import {
|
|
36
39
|
confirmOption,
|
|
37
40
|
deploymentOption,
|
|
@@ -1100,6 +1103,97 @@ var modelsSubcommand = {
|
|
|
1100
1103
|
options: [],
|
|
1101
1104
|
examples: []
|
|
1102
1105
|
};
|
|
1106
|
+
var budgetsSetSubcommand = {
|
|
1107
|
+
name: "set",
|
|
1108
|
+
aliases: [],
|
|
1109
|
+
description: "Create or update an AI Gateway budget for a scope (team or project <name>)",
|
|
1110
|
+
arguments: [
|
|
1111
|
+
{ name: "scope", required: true },
|
|
1112
|
+
{ name: "name", required: false }
|
|
1113
|
+
],
|
|
1114
|
+
options: [
|
|
1115
|
+
{
|
|
1116
|
+
name: "limit",
|
|
1117
|
+
shorthand: null,
|
|
1118
|
+
type: Number,
|
|
1119
|
+
argument: "AMOUNT",
|
|
1120
|
+
deprecated: false,
|
|
1121
|
+
description: "Budget limit in dollars (minimum 1)"
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
name: "refresh-period",
|
|
1125
|
+
shorthand: null,
|
|
1126
|
+
type: String,
|
|
1127
|
+
argument: "PERIOD",
|
|
1128
|
+
deprecated: false,
|
|
1129
|
+
description: "Budget refresh cadence: daily, weekly, monthly, or none (default: monthly)"
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
name: "include-byok",
|
|
1133
|
+
shorthand: null,
|
|
1134
|
+
type: Boolean,
|
|
1135
|
+
deprecated: false,
|
|
1136
|
+
description: "Include BYOK usage in the budget (default: false)"
|
|
1137
|
+
},
|
|
1138
|
+
formatOption
|
|
1139
|
+
],
|
|
1140
|
+
examples: [
|
|
1141
|
+
{
|
|
1142
|
+
name: "Set a team budget",
|
|
1143
|
+
value: `${packageName} ai-gateway budgets set team --limit 500 --refresh-period monthly`
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
name: "Set a project budget",
|
|
1147
|
+
value: `${packageName} ai-gateway budgets set project my-project --limit 200`
|
|
1148
|
+
}
|
|
1149
|
+
]
|
|
1150
|
+
};
|
|
1151
|
+
var budgetsListSubcommand = {
|
|
1152
|
+
name: "list",
|
|
1153
|
+
aliases: ["ls"],
|
|
1154
|
+
description: "List AI Gateway budgets",
|
|
1155
|
+
arguments: [],
|
|
1156
|
+
options: [formatOption],
|
|
1157
|
+
examples: [
|
|
1158
|
+
{
|
|
1159
|
+
name: "List budgets",
|
|
1160
|
+
value: `${packageName} ai-gateway budgets ls`
|
|
1161
|
+
}
|
|
1162
|
+
]
|
|
1163
|
+
};
|
|
1164
|
+
var budgetsRemoveSubcommand = {
|
|
1165
|
+
name: "remove",
|
|
1166
|
+
aliases: ["rm", "delete"],
|
|
1167
|
+
description: "Remove an AI Gateway budget for a scope (team or project <name>)",
|
|
1168
|
+
arguments: [
|
|
1169
|
+
{ name: "scope", required: true },
|
|
1170
|
+
{ name: "name", required: false }
|
|
1171
|
+
],
|
|
1172
|
+
options: [yesOption, formatOption],
|
|
1173
|
+
examples: [
|
|
1174
|
+
{
|
|
1175
|
+
name: "Remove the team budget",
|
|
1176
|
+
value: `${packageName} ai-gateway budgets rm team`
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
name: "Remove a project budget",
|
|
1180
|
+
value: `${packageName} ai-gateway budgets rm project my-project`
|
|
1181
|
+
}
|
|
1182
|
+
]
|
|
1183
|
+
};
|
|
1184
|
+
var budgetsSubcommand = {
|
|
1185
|
+
name: "budgets",
|
|
1186
|
+
aliases: [],
|
|
1187
|
+
description: "Manage AI Gateway budgets (metered spend limits per scope)",
|
|
1188
|
+
arguments: [],
|
|
1189
|
+
subcommands: [
|
|
1190
|
+
budgetsSetSubcommand,
|
|
1191
|
+
budgetsListSubcommand,
|
|
1192
|
+
budgetsRemoveSubcommand
|
|
1193
|
+
],
|
|
1194
|
+
options: [],
|
|
1195
|
+
examples: []
|
|
1196
|
+
};
|
|
1103
1197
|
var aiGatewayCommand = {
|
|
1104
1198
|
name: "ai-gateway",
|
|
1105
1199
|
aliases: [],
|
|
@@ -1107,6 +1201,7 @@ var aiGatewayCommand = {
|
|
|
1107
1201
|
arguments: [],
|
|
1108
1202
|
subcommands: [
|
|
1109
1203
|
apiKeysSubcommand,
|
|
1204
|
+
budgetsSubcommand,
|
|
1110
1205
|
rulesSubcommand,
|
|
1111
1206
|
codingAgentsSubcommand,
|
|
1112
1207
|
modelsSubcommand
|
|
@@ -10353,6 +10448,7 @@ var commandsStructs = [
|
|
|
10353
10448
|
buyCommand,
|
|
10354
10449
|
cacheCommand,
|
|
10355
10450
|
certsCommand,
|
|
10451
|
+
commentsCommand,
|
|
10356
10452
|
contractCommand,
|
|
10357
10453
|
cronsCommand,
|
|
10358
10454
|
curlCommand,
|
|
@@ -10447,6 +10543,10 @@ export {
|
|
|
10447
10543
|
modelsListSubcommand,
|
|
10448
10544
|
modelsEndpointsSubcommand,
|
|
10449
10545
|
modelsSubcommand,
|
|
10546
|
+
budgetsSetSubcommand,
|
|
10547
|
+
budgetsListSubcommand,
|
|
10548
|
+
budgetsRemoveSubcommand,
|
|
10549
|
+
budgetsSubcommand,
|
|
10450
10550
|
aiGatewayCommand,
|
|
10451
10551
|
setSubcommand,
|
|
10452
10552
|
listSubcommand2,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getLocalPathConfig,
|
|
9
9
|
isPromptBackError,
|
|
10
10
|
isPromptCanceledError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GNV7547O.js";
|
|
12
12
|
import {
|
|
13
13
|
table
|
|
14
14
|
} from "./chunk-NZRWTCRM.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
selectAndParseRemoteUrl,
|
|
47
47
|
selectOrg,
|
|
48
48
|
writeServicesConfig
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-TMK6RSYW.js";
|
|
50
50
|
import {
|
|
51
51
|
printError
|
|
52
52
|
} from "./chunk-SZXT3PDQ.js";
|