@vm0/cli 9.201.0 → 9.201.1
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/{chunk-M5DCFTDG.js → chunk-ZSWMGND5.js} +583 -239
- package/{chunk-M5DCFTDG.js.map → chunk-ZSWMGND5.js.map} +1 -1
- package/index.js +9 -9
- package/package.json +1 -1
- package/youtube.generated-7BWVJMSJ.js +409 -0
- package/youtube.generated-7BWVJMSJ.js.map +1 -0
- package/zero.js +21 -2
- package/zero.js.map +1 -1
- package/youtube.generated-E7FM5IYT.js +0 -40
- package/youtube.generated-E7FM5IYT.js.map +0 -1
package/index.js
CHANGED
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
uo,
|
|
76
76
|
volumeConfigSchema,
|
|
77
77
|
withErrorHandler
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-ZSWMGND5.js";
|
|
79
79
|
import "./chunk-NR42YJMI.js";
|
|
80
80
|
import {
|
|
81
81
|
__toESM,
|
|
@@ -409,7 +409,7 @@ function getConfigPath() {
|
|
|
409
409
|
return join(os.homedir(), ".vm0", "config.json");
|
|
410
410
|
}
|
|
411
411
|
var infoCommand = new Command().name("info").description("Display environment and debug information").action(async () => {
|
|
412
|
-
console.log(source_default.bold(`VM0 CLI v${"9.201.
|
|
412
|
+
console.log(source_default.bold(`VM0 CLI v${"9.201.1"}`));
|
|
413
413
|
console.log();
|
|
414
414
|
const config = await loadConfig();
|
|
415
415
|
const hasEnvToken = !!process.env.VM0_TOKEN;
|
|
@@ -1111,7 +1111,7 @@ var composeCommand = new Command().name("compose").description("Create or update
|
|
|
1111
1111
|
options.autoUpdate = false;
|
|
1112
1112
|
}
|
|
1113
1113
|
if (options.autoUpdate !== false) {
|
|
1114
|
-
await startSilentUpgrade("9.201.
|
|
1114
|
+
await startSilentUpgrade("9.201.1");
|
|
1115
1115
|
}
|
|
1116
1116
|
try {
|
|
1117
1117
|
const { config, agentName, agent, basePath } = await loadAndValidateConfig(resolvedConfigFile);
|
|
@@ -1208,7 +1208,7 @@ var mainRunCommand = new Command().name("run").description("Run an agent").argum
|
|
|
1208
1208
|
withErrorHandler(
|
|
1209
1209
|
async (identifier, prompt, options) => {
|
|
1210
1210
|
if (options.autoUpdate !== false) {
|
|
1211
|
-
await startSilentUpgrade("9.201.
|
|
1211
|
+
await startSilentUpgrade("9.201.1");
|
|
1212
1212
|
}
|
|
1213
1213
|
const { name, version } = parseIdentifier(identifier);
|
|
1214
1214
|
let composeId;
|
|
@@ -3014,13 +3014,13 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
3014
3014
|
if (latestVersion === null) {
|
|
3015
3015
|
throw new Error("Could not check for updates. Please try again later.");
|
|
3016
3016
|
}
|
|
3017
|
-
if (latestVersion === "9.201.
|
|
3018
|
-
console.log(source_default.green(`\u2713 Already up to date (${"9.201.
|
|
3017
|
+
if (latestVersion === "9.201.1") {
|
|
3018
|
+
console.log(source_default.green(`\u2713 Already up to date (${"9.201.1"})`));
|
|
3019
3019
|
return;
|
|
3020
3020
|
}
|
|
3021
3021
|
console.log(
|
|
3022
3022
|
source_default.yellow(
|
|
3023
|
-
`Current version: ${"9.201.
|
|
3023
|
+
`Current version: ${"9.201.1"} -> Latest version: ${latestVersion}`
|
|
3024
3024
|
)
|
|
3025
3025
|
);
|
|
3026
3026
|
console.log();
|
|
@@ -3047,7 +3047,7 @@ var upgradeCommand = new Command().name("upgrade").description("Upgrade vm0 CLI
|
|
|
3047
3047
|
const success = await performUpgrade(packageManager);
|
|
3048
3048
|
if (success) {
|
|
3049
3049
|
console.log(
|
|
3050
|
-
source_default.green(`\u2713 Upgraded from ${"9.201.
|
|
3050
|
+
source_default.green(`\u2713 Upgraded from ${"9.201.1"} to ${latestVersion}`)
|
|
3051
3051
|
);
|
|
3052
3052
|
return;
|
|
3053
3053
|
}
|
|
@@ -3114,7 +3114,7 @@ var whoamiCommand = new Command().name("whoami").description("Show current ident
|
|
|
3114
3114
|
|
|
3115
3115
|
// src/index.ts
|
|
3116
3116
|
var program = new Command();
|
|
3117
|
-
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.201.
|
|
3117
|
+
program.name("vm0").description("VM0 CLI - Build and run agents with natural language").version("9.201.1");
|
|
3118
3118
|
program.addCommand(authCommand);
|
|
3119
3119
|
program.addCommand(infoCommand);
|
|
3120
3120
|
program.addCommand(composeCommand);
|
package/package.json
CHANGED
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __createRequire } from "node:module";
|
|
3
|
+
const require = __createRequire(import.meta.url);
|
|
4
|
+
import {
|
|
5
|
+
init_esm_shims
|
|
6
|
+
} from "./chunk-QI47S6VO.js";
|
|
7
|
+
|
|
8
|
+
// ../../packages/connectors/src/firewall-metadata/details/youtube.generated.ts
|
|
9
|
+
init_esm_shims();
|
|
10
|
+
var firewallPermissionMetadata = {
|
|
11
|
+
"type": "youtube",
|
|
12
|
+
"label": "YouTube",
|
|
13
|
+
"permissionCount": 68,
|
|
14
|
+
"permissions": [
|
|
15
|
+
{
|
|
16
|
+
"name": "abuse-reports.create",
|
|
17
|
+
"description": "Create YouTube abuse reports."
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "activities.read",
|
|
21
|
+
"description": "Read YouTube channel activities."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "captions.delete",
|
|
25
|
+
"description": "Delete YouTube captions."
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "captions.download",
|
|
29
|
+
"description": "Download YouTube captions."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "captions.read",
|
|
33
|
+
"description": "Read YouTube captions."
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "captions.write",
|
|
37
|
+
"description": "Create and update YouTube captions."
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "channel-banners.upload",
|
|
41
|
+
"description": "Upload YouTube channel banners."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "channel-sections.delete",
|
|
45
|
+
"description": "Delete YouTube channel sections."
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "channel-sections.read",
|
|
49
|
+
"description": "Read YouTube channel sections."
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "channel-sections.write",
|
|
53
|
+
"description": "Create and update YouTube channel sections."
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "channels.read",
|
|
57
|
+
"description": "Read YouTube channels."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "channels.write",
|
|
61
|
+
"description": "Update YouTube channels."
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "comment-threads.read",
|
|
65
|
+
"description": "Read YouTube comment threads."
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "comment-threads.write",
|
|
69
|
+
"description": "Create and update YouTube comment threads."
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "comments.delete",
|
|
73
|
+
"description": "Delete YouTube comments."
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "comments.moderate",
|
|
77
|
+
"description": "Moderate YouTube comments."
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "comments.read",
|
|
81
|
+
"description": "Read YouTube comments."
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "comments.write",
|
|
85
|
+
"description": "Create and update YouTube comments."
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "i18n-languages.read",
|
|
89
|
+
"description": "Read YouTube supported interface languages."
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "i18n-regions.read",
|
|
93
|
+
"description": "Read YouTube supported regions."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "live-broadcasts.control",
|
|
97
|
+
"description": "Bind, cue, and transition YouTube live broadcasts."
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "live-broadcasts.create",
|
|
101
|
+
"description": "Create YouTube live broadcasts."
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "live-broadcasts.delete",
|
|
105
|
+
"description": "Delete YouTube live broadcasts."
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "live-broadcasts.read",
|
|
109
|
+
"description": "Read YouTube live broadcasts."
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "live-broadcasts.write",
|
|
113
|
+
"description": "Update YouTube live broadcasts."
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "live-chat-bans.write",
|
|
117
|
+
"description": "Create and delete YouTube live chat bans."
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "live-chat-messages.delete",
|
|
121
|
+
"description": "Delete YouTube live chat messages."
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "live-chat-messages.read",
|
|
125
|
+
"description": "Read YouTube live chat messages."
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "live-chat-messages.write",
|
|
129
|
+
"description": "Create and transition YouTube live chat messages."
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "live-chat-moderators.read",
|
|
133
|
+
"description": "Read YouTube live chat moderators."
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "live-chat-moderators.write",
|
|
137
|
+
"description": "Create and delete YouTube live chat moderators."
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "live-streams.create",
|
|
141
|
+
"description": "Create YouTube live streams."
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "live-streams.delete",
|
|
145
|
+
"description": "Delete YouTube live streams."
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "live-streams.read",
|
|
149
|
+
"description": "Read YouTube live streams."
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "live-streams.write",
|
|
153
|
+
"description": "Update YouTube live streams."
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "members.read",
|
|
157
|
+
"description": "Read YouTube channel members."
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "membership-levels.read",
|
|
161
|
+
"description": "Read YouTube channel membership levels."
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "playlist-images.delete",
|
|
165
|
+
"description": "Delete YouTube playlist images."
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "playlist-images.read",
|
|
169
|
+
"description": "Read YouTube playlist images."
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "playlist-images.write",
|
|
173
|
+
"description": "Create and update YouTube playlist images."
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "playlist-items.delete",
|
|
177
|
+
"description": "Delete YouTube playlist items."
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "playlist-items.read",
|
|
181
|
+
"description": "Read YouTube playlist items."
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "playlist-items.write",
|
|
185
|
+
"description": "Create and update YouTube playlist items."
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "playlists.delete",
|
|
189
|
+
"description": "Delete YouTube playlists."
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "playlists.read",
|
|
193
|
+
"description": "Read YouTube playlists."
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "playlists.write",
|
|
197
|
+
"description": "Create and update YouTube playlists."
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"name": "search.read",
|
|
201
|
+
"description": "Search YouTube resources."
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "subscriptions.delete",
|
|
205
|
+
"description": "Delete YouTube subscriptions."
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "subscriptions.read",
|
|
209
|
+
"description": "Read YouTube subscriptions."
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "subscriptions.write",
|
|
213
|
+
"description": "Create YouTube subscriptions."
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "super-chat-events.read",
|
|
217
|
+
"description": "Read YouTube Super Chat events."
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "tests.create",
|
|
221
|
+
"description": "Create YouTube API test resources."
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"name": "third-party-links.delete",
|
|
225
|
+
"description": "Delete YouTube third-party links."
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "third-party-links.read",
|
|
229
|
+
"description": "Read YouTube third-party links."
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "third-party-links.write",
|
|
233
|
+
"description": "Create and update YouTube third-party links."
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "thumbnails.set",
|
|
237
|
+
"description": "Set YouTube video thumbnails."
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "video-abuse-report-reasons.read",
|
|
241
|
+
"description": "Read YouTube video abuse report reasons."
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "video-categories.read",
|
|
245
|
+
"description": "Read YouTube video categories."
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "video-trainability.read",
|
|
249
|
+
"description": "Read YouTube video trainability state."
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"name": "videos.create",
|
|
253
|
+
"description": "Upload YouTube videos."
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "videos.delete",
|
|
257
|
+
"description": "Delete YouTube videos."
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "videos.rate",
|
|
261
|
+
"description": "Rate YouTube videos."
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"name": "videos.rating.read",
|
|
265
|
+
"description": "Read YouTube video ratings."
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "videos.read",
|
|
269
|
+
"description": "Read YouTube videos."
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "videos.report-abuse",
|
|
273
|
+
"description": "Report YouTube video abuse."
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "videos.write",
|
|
277
|
+
"description": "Update YouTube videos."
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"name": "watermarks.delete",
|
|
281
|
+
"description": "Remove YouTube channel watermarks."
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"name": "watermarks.set",
|
|
285
|
+
"description": "Set YouTube channel watermarks."
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
"categories": {
|
|
289
|
+
"categories": {
|
|
290
|
+
"abuse-reports.create": "Videos",
|
|
291
|
+
"activities.read": "Channels",
|
|
292
|
+
"captions.delete": "Comments & Captions",
|
|
293
|
+
"captions.download": "Comments & Captions",
|
|
294
|
+
"captions.read": "Comments & Captions",
|
|
295
|
+
"captions.write": "Comments & Captions",
|
|
296
|
+
"channel-banners.upload": "Channels",
|
|
297
|
+
"channel-sections.delete": "Channels",
|
|
298
|
+
"channel-sections.read": "Channels",
|
|
299
|
+
"channel-sections.write": "Channels",
|
|
300
|
+
"channels.read": "Channels",
|
|
301
|
+
"channels.write": "Channels",
|
|
302
|
+
"comment-threads.read": "Comments & Captions",
|
|
303
|
+
"comment-threads.write": "Comments & Captions",
|
|
304
|
+
"comments.delete": "Comments & Captions",
|
|
305
|
+
"comments.moderate": "Comments & Captions",
|
|
306
|
+
"comments.read": "Comments & Captions",
|
|
307
|
+
"comments.write": "Comments & Captions",
|
|
308
|
+
"i18n-languages.read": "Discovery",
|
|
309
|
+
"i18n-regions.read": "Discovery",
|
|
310
|
+
"live-broadcasts.control": "Live Streaming",
|
|
311
|
+
"live-broadcasts.create": "Live Streaming",
|
|
312
|
+
"live-broadcasts.delete": "Live Streaming",
|
|
313
|
+
"live-broadcasts.read": "Live Streaming",
|
|
314
|
+
"live-broadcasts.write": "Live Streaming",
|
|
315
|
+
"live-chat-bans.write": "Live Chat",
|
|
316
|
+
"live-chat-messages.delete": "Live Chat",
|
|
317
|
+
"live-chat-messages.read": "Live Chat",
|
|
318
|
+
"live-chat-messages.write": "Live Chat",
|
|
319
|
+
"live-chat-moderators.read": "Live Chat",
|
|
320
|
+
"live-chat-moderators.write": "Live Chat",
|
|
321
|
+
"live-streams.create": "Live Streaming",
|
|
322
|
+
"live-streams.delete": "Live Streaming",
|
|
323
|
+
"live-streams.read": "Live Streaming",
|
|
324
|
+
"live-streams.write": "Live Streaming",
|
|
325
|
+
"members.read": "Memberships & Monetization",
|
|
326
|
+
"membership-levels.read": "Memberships & Monetization",
|
|
327
|
+
"playlist-images.delete": "Playlists",
|
|
328
|
+
"playlist-images.read": "Playlists",
|
|
329
|
+
"playlist-images.write": "Playlists",
|
|
330
|
+
"playlist-items.delete": "Playlists",
|
|
331
|
+
"playlist-items.read": "Playlists",
|
|
332
|
+
"playlist-items.write": "Playlists",
|
|
333
|
+
"playlists.delete": "Playlists",
|
|
334
|
+
"playlists.read": "Playlists",
|
|
335
|
+
"playlists.write": "Playlists",
|
|
336
|
+
"search.read": "Discovery",
|
|
337
|
+
"subscriptions.delete": "Subscriptions",
|
|
338
|
+
"subscriptions.read": "Subscriptions",
|
|
339
|
+
"subscriptions.write": "Subscriptions",
|
|
340
|
+
"super-chat-events.read": "Memberships & Monetization",
|
|
341
|
+
"tests.create": "Tests",
|
|
342
|
+
"third-party-links.delete": "Third Party Links",
|
|
343
|
+
"third-party-links.read": "Third Party Links",
|
|
344
|
+
"third-party-links.write": "Third Party Links",
|
|
345
|
+
"thumbnails.set": "Videos",
|
|
346
|
+
"video-abuse-report-reasons.read": "Videos",
|
|
347
|
+
"video-categories.read": "Videos",
|
|
348
|
+
"video-trainability.read": "Videos",
|
|
349
|
+
"videos.create": "Videos",
|
|
350
|
+
"videos.delete": "Videos",
|
|
351
|
+
"videos.rate": "Videos",
|
|
352
|
+
"videos.rating.read": "Videos",
|
|
353
|
+
"videos.read": "Videos",
|
|
354
|
+
"videos.report-abuse": "Videos",
|
|
355
|
+
"videos.write": "Videos",
|
|
356
|
+
"watermarks.delete": "Videos",
|
|
357
|
+
"watermarks.set": "Videos"
|
|
358
|
+
},
|
|
359
|
+
"displayOrder": [
|
|
360
|
+
"Channels",
|
|
361
|
+
"Videos",
|
|
362
|
+
"Comments & Captions",
|
|
363
|
+
"Playlists",
|
|
364
|
+
"Live Streaming",
|
|
365
|
+
"Live Chat",
|
|
366
|
+
"Subscriptions",
|
|
367
|
+
"Memberships & Monetization",
|
|
368
|
+
"Discovery",
|
|
369
|
+
"Third Party Links",
|
|
370
|
+
"Tests"
|
|
371
|
+
]
|
|
372
|
+
},
|
|
373
|
+
"defaultPolicy": {
|
|
374
|
+
"permissionDefault": "deny",
|
|
375
|
+
"permissionOverrides": {
|
|
376
|
+
"allow": [
|
|
377
|
+
"activities.read",
|
|
378
|
+
"captions.download",
|
|
379
|
+
"captions.read",
|
|
380
|
+
"channel-sections.read",
|
|
381
|
+
"channels.read",
|
|
382
|
+
"comment-threads.read",
|
|
383
|
+
"comments.read",
|
|
384
|
+
"i18n-languages.read",
|
|
385
|
+
"i18n-regions.read",
|
|
386
|
+
"live-broadcasts.read",
|
|
387
|
+
"live-chat-messages.read",
|
|
388
|
+
"live-chat-moderators.read",
|
|
389
|
+
"live-streams.read",
|
|
390
|
+
"playlist-images.read",
|
|
391
|
+
"playlist-items.read",
|
|
392
|
+
"playlists.read",
|
|
393
|
+
"search.read",
|
|
394
|
+
"subscriptions.read",
|
|
395
|
+
"super-chat-events.read",
|
|
396
|
+
"video-abuse-report-reasons.read",
|
|
397
|
+
"video-categories.read",
|
|
398
|
+
"video-trainability.read",
|
|
399
|
+
"videos.rating.read",
|
|
400
|
+
"videos.read"
|
|
401
|
+
]
|
|
402
|
+
},
|
|
403
|
+
"unknownPolicy": "deny"
|
|
404
|
+
}
|
|
405
|
+
};
|
|
406
|
+
export {
|
|
407
|
+
firewallPermissionMetadata
|
|
408
|
+
};
|
|
409
|
+
//# sourceMappingURL=youtube.generated-7BWVJMSJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/connectors/src/firewall-metadata/details/youtube.generated.ts"],"sourcesContent":["// Auto-generated by @vm0/firewalls-generator.\n// Regenerate: cd turbo && pnpm -F @vm0/firewalls-generator generate\n//\n// DO NOT EDIT THIS FILE MANUALLY.\nimport type { FirewallPermissionDetailMetadata } from \"../types\";\n\nexport const firewallPermissionMetadata = {\n \"type\": \"youtube\",\n \"label\": \"YouTube\",\n \"permissionCount\": 68,\n \"permissions\": [\n {\n \"name\": \"abuse-reports.create\",\n \"description\": \"Create YouTube abuse reports.\"\n },\n {\n \"name\": \"activities.read\",\n \"description\": \"Read YouTube channel activities.\"\n },\n {\n \"name\": \"captions.delete\",\n \"description\": \"Delete YouTube captions.\"\n },\n {\n \"name\": \"captions.download\",\n \"description\": \"Download YouTube captions.\"\n },\n {\n \"name\": \"captions.read\",\n \"description\": \"Read YouTube captions.\"\n },\n {\n \"name\": \"captions.write\",\n \"description\": \"Create and update YouTube captions.\"\n },\n {\n \"name\": \"channel-banners.upload\",\n \"description\": \"Upload YouTube channel banners.\"\n },\n {\n \"name\": \"channel-sections.delete\",\n \"description\": \"Delete YouTube channel sections.\"\n },\n {\n \"name\": \"channel-sections.read\",\n \"description\": \"Read YouTube channel sections.\"\n },\n {\n \"name\": \"channel-sections.write\",\n \"description\": \"Create and update YouTube channel sections.\"\n },\n {\n \"name\": \"channels.read\",\n \"description\": \"Read YouTube channels.\"\n },\n {\n \"name\": \"channels.write\",\n \"description\": \"Update YouTube channels.\"\n },\n {\n \"name\": \"comment-threads.read\",\n \"description\": \"Read YouTube comment threads.\"\n },\n {\n \"name\": \"comment-threads.write\",\n \"description\": \"Create and update YouTube comment threads.\"\n },\n {\n \"name\": \"comments.delete\",\n \"description\": \"Delete YouTube comments.\"\n },\n {\n \"name\": \"comments.moderate\",\n \"description\": \"Moderate YouTube comments.\"\n },\n {\n \"name\": \"comments.read\",\n \"description\": \"Read YouTube comments.\"\n },\n {\n \"name\": \"comments.write\",\n \"description\": \"Create and update YouTube comments.\"\n },\n {\n \"name\": \"i18n-languages.read\",\n \"description\": \"Read YouTube supported interface languages.\"\n },\n {\n \"name\": \"i18n-regions.read\",\n \"description\": \"Read YouTube supported regions.\"\n },\n {\n \"name\": \"live-broadcasts.control\",\n \"description\": \"Bind, cue, and transition YouTube live broadcasts.\"\n },\n {\n \"name\": \"live-broadcasts.create\",\n \"description\": \"Create YouTube live broadcasts.\"\n },\n {\n \"name\": \"live-broadcasts.delete\",\n \"description\": \"Delete YouTube live broadcasts.\"\n },\n {\n \"name\": \"live-broadcasts.read\",\n \"description\": \"Read YouTube live broadcasts.\"\n },\n {\n \"name\": \"live-broadcasts.write\",\n \"description\": \"Update YouTube live broadcasts.\"\n },\n {\n \"name\": \"live-chat-bans.write\",\n \"description\": \"Create and delete YouTube live chat bans.\"\n },\n {\n \"name\": \"live-chat-messages.delete\",\n \"description\": \"Delete YouTube live chat messages.\"\n },\n {\n \"name\": \"live-chat-messages.read\",\n \"description\": \"Read YouTube live chat messages.\"\n },\n {\n \"name\": \"live-chat-messages.write\",\n \"description\": \"Create and transition YouTube live chat messages.\"\n },\n {\n \"name\": \"live-chat-moderators.read\",\n \"description\": \"Read YouTube live chat moderators.\"\n },\n {\n \"name\": \"live-chat-moderators.write\",\n \"description\": \"Create and delete YouTube live chat moderators.\"\n },\n {\n \"name\": \"live-streams.create\",\n \"description\": \"Create YouTube live streams.\"\n },\n {\n \"name\": \"live-streams.delete\",\n \"description\": \"Delete YouTube live streams.\"\n },\n {\n \"name\": \"live-streams.read\",\n \"description\": \"Read YouTube live streams.\"\n },\n {\n \"name\": \"live-streams.write\",\n \"description\": \"Update YouTube live streams.\"\n },\n {\n \"name\": \"members.read\",\n \"description\": \"Read YouTube channel members.\"\n },\n {\n \"name\": \"membership-levels.read\",\n \"description\": \"Read YouTube channel membership levels.\"\n },\n {\n \"name\": \"playlist-images.delete\",\n \"description\": \"Delete YouTube playlist images.\"\n },\n {\n \"name\": \"playlist-images.read\",\n \"description\": \"Read YouTube playlist images.\"\n },\n {\n \"name\": \"playlist-images.write\",\n \"description\": \"Create and update YouTube playlist images.\"\n },\n {\n \"name\": \"playlist-items.delete\",\n \"description\": \"Delete YouTube playlist items.\"\n },\n {\n \"name\": \"playlist-items.read\",\n \"description\": \"Read YouTube playlist items.\"\n },\n {\n \"name\": \"playlist-items.write\",\n \"description\": \"Create and update YouTube playlist items.\"\n },\n {\n \"name\": \"playlists.delete\",\n \"description\": \"Delete YouTube playlists.\"\n },\n {\n \"name\": \"playlists.read\",\n \"description\": \"Read YouTube playlists.\"\n },\n {\n \"name\": \"playlists.write\",\n \"description\": \"Create and update YouTube playlists.\"\n },\n {\n \"name\": \"search.read\",\n \"description\": \"Search YouTube resources.\"\n },\n {\n \"name\": \"subscriptions.delete\",\n \"description\": \"Delete YouTube subscriptions.\"\n },\n {\n \"name\": \"subscriptions.read\",\n \"description\": \"Read YouTube subscriptions.\"\n },\n {\n \"name\": \"subscriptions.write\",\n \"description\": \"Create YouTube subscriptions.\"\n },\n {\n \"name\": \"super-chat-events.read\",\n \"description\": \"Read YouTube Super Chat events.\"\n },\n {\n \"name\": \"tests.create\",\n \"description\": \"Create YouTube API test resources.\"\n },\n {\n \"name\": \"third-party-links.delete\",\n \"description\": \"Delete YouTube third-party links.\"\n },\n {\n \"name\": \"third-party-links.read\",\n \"description\": \"Read YouTube third-party links.\"\n },\n {\n \"name\": \"third-party-links.write\",\n \"description\": \"Create and update YouTube third-party links.\"\n },\n {\n \"name\": \"thumbnails.set\",\n \"description\": \"Set YouTube video thumbnails.\"\n },\n {\n \"name\": \"video-abuse-report-reasons.read\",\n \"description\": \"Read YouTube video abuse report reasons.\"\n },\n {\n \"name\": \"video-categories.read\",\n \"description\": \"Read YouTube video categories.\"\n },\n {\n \"name\": \"video-trainability.read\",\n \"description\": \"Read YouTube video trainability state.\"\n },\n {\n \"name\": \"videos.create\",\n \"description\": \"Upload YouTube videos.\"\n },\n {\n \"name\": \"videos.delete\",\n \"description\": \"Delete YouTube videos.\"\n },\n {\n \"name\": \"videos.rate\",\n \"description\": \"Rate YouTube videos.\"\n },\n {\n \"name\": \"videos.rating.read\",\n \"description\": \"Read YouTube video ratings.\"\n },\n {\n \"name\": \"videos.read\",\n \"description\": \"Read YouTube videos.\"\n },\n {\n \"name\": \"videos.report-abuse\",\n \"description\": \"Report YouTube video abuse.\"\n },\n {\n \"name\": \"videos.write\",\n \"description\": \"Update YouTube videos.\"\n },\n {\n \"name\": \"watermarks.delete\",\n \"description\": \"Remove YouTube channel watermarks.\"\n },\n {\n \"name\": \"watermarks.set\",\n \"description\": \"Set YouTube channel watermarks.\"\n }\n ],\n \"categories\": {\n \"categories\": {\n \"abuse-reports.create\": \"Videos\",\n \"activities.read\": \"Channels\",\n \"captions.delete\": \"Comments & Captions\",\n \"captions.download\": \"Comments & Captions\",\n \"captions.read\": \"Comments & Captions\",\n \"captions.write\": \"Comments & Captions\",\n \"channel-banners.upload\": \"Channels\",\n \"channel-sections.delete\": \"Channels\",\n \"channel-sections.read\": \"Channels\",\n \"channel-sections.write\": \"Channels\",\n \"channels.read\": \"Channels\",\n \"channels.write\": \"Channels\",\n \"comment-threads.read\": \"Comments & Captions\",\n \"comment-threads.write\": \"Comments & Captions\",\n \"comments.delete\": \"Comments & Captions\",\n \"comments.moderate\": \"Comments & Captions\",\n \"comments.read\": \"Comments & Captions\",\n \"comments.write\": \"Comments & Captions\",\n \"i18n-languages.read\": \"Discovery\",\n \"i18n-regions.read\": \"Discovery\",\n \"live-broadcasts.control\": \"Live Streaming\",\n \"live-broadcasts.create\": \"Live Streaming\",\n \"live-broadcasts.delete\": \"Live Streaming\",\n \"live-broadcasts.read\": \"Live Streaming\",\n \"live-broadcasts.write\": \"Live Streaming\",\n \"live-chat-bans.write\": \"Live Chat\",\n \"live-chat-messages.delete\": \"Live Chat\",\n \"live-chat-messages.read\": \"Live Chat\",\n \"live-chat-messages.write\": \"Live Chat\",\n \"live-chat-moderators.read\": \"Live Chat\",\n \"live-chat-moderators.write\": \"Live Chat\",\n \"live-streams.create\": \"Live Streaming\",\n \"live-streams.delete\": \"Live Streaming\",\n \"live-streams.read\": \"Live Streaming\",\n \"live-streams.write\": \"Live Streaming\",\n \"members.read\": \"Memberships & Monetization\",\n \"membership-levels.read\": \"Memberships & Monetization\",\n \"playlist-images.delete\": \"Playlists\",\n \"playlist-images.read\": \"Playlists\",\n \"playlist-images.write\": \"Playlists\",\n \"playlist-items.delete\": \"Playlists\",\n \"playlist-items.read\": \"Playlists\",\n \"playlist-items.write\": \"Playlists\",\n \"playlists.delete\": \"Playlists\",\n \"playlists.read\": \"Playlists\",\n \"playlists.write\": \"Playlists\",\n \"search.read\": \"Discovery\",\n \"subscriptions.delete\": \"Subscriptions\",\n \"subscriptions.read\": \"Subscriptions\",\n \"subscriptions.write\": \"Subscriptions\",\n \"super-chat-events.read\": \"Memberships & Monetization\",\n \"tests.create\": \"Tests\",\n \"third-party-links.delete\": \"Third Party Links\",\n \"third-party-links.read\": \"Third Party Links\",\n \"third-party-links.write\": \"Third Party Links\",\n \"thumbnails.set\": \"Videos\",\n \"video-abuse-report-reasons.read\": \"Videos\",\n \"video-categories.read\": \"Videos\",\n \"video-trainability.read\": \"Videos\",\n \"videos.create\": \"Videos\",\n \"videos.delete\": \"Videos\",\n \"videos.rate\": \"Videos\",\n \"videos.rating.read\": \"Videos\",\n \"videos.read\": \"Videos\",\n \"videos.report-abuse\": \"Videos\",\n \"videos.write\": \"Videos\",\n \"watermarks.delete\": \"Videos\",\n \"watermarks.set\": \"Videos\"\n },\n \"displayOrder\": [\n \"Channels\",\n \"Videos\",\n \"Comments & Captions\",\n \"Playlists\",\n \"Live Streaming\",\n \"Live Chat\",\n \"Subscriptions\",\n \"Memberships & Monetization\",\n \"Discovery\",\n \"Third Party Links\",\n \"Tests\"\n ]\n },\n \"defaultPolicy\": {\n \"permissionDefault\": \"deny\",\n \"permissionOverrides\": {\n \"allow\": [\n \"activities.read\",\n \"captions.download\",\n \"captions.read\",\n \"channel-sections.read\",\n \"channels.read\",\n \"comment-threads.read\",\n \"comments.read\",\n \"i18n-languages.read\",\n \"i18n-regions.read\",\n \"live-broadcasts.read\",\n \"live-chat-messages.read\",\n \"live-chat-moderators.read\",\n \"live-streams.read\",\n \"playlist-images.read\",\n \"playlist-items.read\",\n \"playlists.read\",\n \"search.read\",\n \"subscriptions.read\",\n \"super-chat-events.read\",\n \"video-abuse-report-reasons.read\",\n \"video-categories.read\",\n \"video-trainability.read\",\n \"videos.rating.read\",\n \"videos.read\"\n ]\n },\n \"unknownPolicy\": \"deny\"\n }\n} as const satisfies FirewallPermissionDetailMetadata;\n"],"mappings":";;;;;;;;AAAA;AAMO,IAAM,6BAA6B;AAAA,EACxC,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,mBAAmB;AAAA,EACnB,eAAe;AAAA,IACb;AAAA,MACE,QAAQ;AAAA,MACR,eAAe;AAAA,IACjB;AAAA,IACA;AAAA,MACE,QAAQ;AAAA,MACR,eAAe;AAAA,IACjB;AAAA,IACA;AAAA,MACE,QAAQ;AAAA,MACR,eAAe;AAAA,IACjB;AAAA,IACA;AAAA,MACE,QAAQ;AAAA,MACR,eAAe;AAAA,IACjB;AAAA,IACA;AAAA,MACE,QAAQ;AAAA,MACR,eAAe;AAAA,IACjB;AAAA,IACA;AAAA,MACE,QAAQ;AAAA,MACR,eAAe;AAAA,IACjB;AAAA,IACA;AAAA,MACE,QAAQ;AAAA,MACR,eAAe;AAAA,IACjB;AAAA,IACA;AAAA,MACE,QAAQ;AAAA,MACR,eAAe;AAAA,IAC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AAAA,IACA,gBAAgB;AAAA,MACd;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,qBAAqB;AAAA,IACrB,uBAAuB;AAAA,MACrB,SAAS;AAAA,QACP;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,EACnB;AACF;","names":[]}
|
package/zero.js
CHANGED
|
@@ -193,7 +193,7 @@ import {
|
|
|
193
193
|
uploadWebFile,
|
|
194
194
|
upsertZeroOrgModelProvider,
|
|
195
195
|
withErrorHandler
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-ZSWMGND5.js";
|
|
197
197
|
import "./chunk-NR42YJMI.js";
|
|
198
198
|
import {
|
|
199
199
|
__toESM,
|
|
@@ -3402,6 +3402,21 @@ init_esm_shims();
|
|
|
3402
3402
|
// src/commands/zero/automation/create.ts
|
|
3403
3403
|
init_esm_shims();
|
|
3404
3404
|
|
|
3405
|
+
// src/commands/zero/automation/at-time-input.ts
|
|
3406
|
+
init_esm_shims();
|
|
3407
|
+
var EXPLICIT_OFFSET_RE = /(?:[zZ]|[+-]\d{2}:?\d{2})$/u;
|
|
3408
|
+
function hasExplicitAtTimeOffset(atTime) {
|
|
3409
|
+
return EXPLICIT_OFFSET_RE.test(atTime.trim());
|
|
3410
|
+
}
|
|
3411
|
+
function requireTimezoneForLocalAtTime(atTime, timezone, flagName) {
|
|
3412
|
+
if (timezone || hasExplicitAtTimeOffset(atTime)) {
|
|
3413
|
+
return;
|
|
3414
|
+
}
|
|
3415
|
+
throw new Error(
|
|
3416
|
+
`${flagName} without Z or an explicit offset requires --timezone (e.g. ${flagName} "2026-06-10T09:00" --timezone Asia/Shanghai)`
|
|
3417
|
+
);
|
|
3418
|
+
}
|
|
3419
|
+
|
|
3405
3420
|
// src/commands/zero/automation/duration.ts
|
|
3406
3421
|
init_esm_shims();
|
|
3407
3422
|
var DURATION_PATTERN = /^(\d+)([smhd])$/;
|
|
@@ -3573,6 +3588,7 @@ function buildInlineTrigger(options) {
|
|
|
3573
3588
|
};
|
|
3574
3589
|
}
|
|
3575
3590
|
if (options.once) {
|
|
3591
|
+
requireTimezoneForLocalAtTime(options.once, options.timezone, "--once");
|
|
3576
3592
|
return { kind: "once", atTime: options.once, timezone: options.timezone };
|
|
3577
3593
|
}
|
|
3578
3594
|
if (options.loop) {
|
|
@@ -3785,6 +3801,7 @@ function buildTimingUpdate(options) {
|
|
|
3785
3801
|
};
|
|
3786
3802
|
}
|
|
3787
3803
|
if (options.once) {
|
|
3804
|
+
requireTimezoneForLocalAtTime(options.once, options.timezone, "--once");
|
|
3788
3805
|
return { kind: "once", atTime: options.once, timezone: options.timezone };
|
|
3789
3806
|
}
|
|
3790
3807
|
if (options.loop) {
|
|
@@ -3965,6 +3982,7 @@ function buildTrigger(kind, options) {
|
|
|
3965
3982
|
'once triggers require --at (e.g. --at "2026-06-10T09:00")'
|
|
3966
3983
|
);
|
|
3967
3984
|
}
|
|
3985
|
+
requireTimezoneForLocalAtTime(options.at, options.timezone, "--at");
|
|
3968
3986
|
return { kind: "once", atTime: options.at, timezone: options.timezone };
|
|
3969
3987
|
case "loop":
|
|
3970
3988
|
if (!options.every) {
|
|
@@ -4037,6 +4055,7 @@ function buildUpdate(options) {
|
|
|
4037
4055
|
};
|
|
4038
4056
|
}
|
|
4039
4057
|
if (options.at) {
|
|
4058
|
+
requireTimezoneForLocalAtTime(options.at, options.timezone, "--at");
|
|
4040
4059
|
return { kind: "once", atTime: options.at, timezone: options.timezone };
|
|
4041
4060
|
}
|
|
4042
4061
|
if (options.every) {
|
|
@@ -11417,7 +11436,7 @@ function registerZeroCommands(prog, commands) {
|
|
|
11417
11436
|
var program = new Command();
|
|
11418
11437
|
program.name("zero").description(
|
|
11419
11438
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
11420
|
-
).version("9.201.
|
|
11439
|
+
).version("9.201.1").addHelpText("after", () => {
|
|
11421
11440
|
return buildZeroHelpText();
|
|
11422
11441
|
});
|
|
11423
11442
|
if (process.argv[1]?.endsWith("zero.js") || process.argv[1]?.endsWith("zero.ts") || process.argv[1]?.endsWith("zero")) {
|