@asteroidai/cli 1.9.30 → 1.9.33

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/asteroid.js CHANGED
@@ -140,6 +140,96 @@ var COMMANDS = [
140
140
  readOnly: true,
141
141
  destructive: false
142
142
  },
143
+ {
144
+ command: "custom-environment create",
145
+ tool: "custom_environments_create",
146
+ title: "Create custom environment",
147
+ description: "Create a custom environment: a saved machine a workflow boots on. Set a unique `name` and a `base`: a browser, or a Linux or Windows OS environment. Optionally whitelist `profiles`, override boot `settings`, and keep copies ready with `warmPool` or fresh logins with `warmCache` (not both). Bind it to a workflow with the version's `settings.custom_environment_id`.",
148
+ method: "POST",
149
+ path: "/agents/v2/custom-environments",
150
+ args: [],
151
+ query: [],
152
+ binary: false,
153
+ readOnly: false,
154
+ destructive: false,
155
+ body: {
156
+ required: true,
157
+ contentType: "application/json",
158
+ fields: [
159
+ {
160
+ name: "name",
161
+ flag: "name",
162
+ type: "string",
163
+ required: true,
164
+ description: "Name, unique within the organisation"
165
+ },
166
+ {
167
+ name: "base",
168
+ flag: "base",
169
+ type: "json",
170
+ required: true,
171
+ description: "The base machine: a browser, or a Linux / Windows OS environment. For non-admins, an OS base's `snapshotName` must be one of the organisation's snapshots or a public one; admins may name any snapshot. Omit it for the default image."
172
+ },
173
+ {
174
+ name: "profiles",
175
+ flag: "profiles",
176
+ type: "json",
177
+ required: true,
178
+ description: "Ordered whitelist of the profile sources an execution bound to this environment may run as. Each row gets its own warm copies. With one row, a trigger that names neither a profile nor a pool defaults to that row; with several rows, the trigger must name an allowed profile, a member of an allowed pool, or an allowed pool. Empty means any profile or pool may be named, or none."
179
+ },
180
+ {
181
+ name: "settings",
182
+ flag: "settings",
183
+ type: "json",
184
+ required: false,
185
+ description: "Settings the environment boots with. Must match the base type. Absent inherits from the agent profile. A change applies to environments booted afterwards; warm members already booted keep the settings they booted with."
186
+ },
187
+ {
188
+ name: "warmPool",
189
+ flag: "warm-pool",
190
+ type: "json",
191
+ required: false,
192
+ description: "Warm pool configuration. Absent means the environment is not kept warm. Exclusive with warmCache and dedicated."
193
+ },
194
+ {
195
+ name: "warmCache",
196
+ flag: "warm-cache",
197
+ type: "json",
198
+ required: false,
199
+ description: "Warm cache configuration. Absent means no login agent keeps the profiles' cookies fresh. Exclusive with warmPool and dedicated."
200
+ },
201
+ {
202
+ name: "dedicated",
203
+ flag: "dedicated",
204
+ type: "json",
205
+ required: false,
206
+ description: "Admin only, and returned to admins only. Dedicated worker configuration. Absent means no workers are kept. Exclusive with warmPool and warmCache."
207
+ }
208
+ ],
209
+ files: [],
210
+ credentialOrganization: true
211
+ }
212
+ },
213
+ {
214
+ command: "custom-environment delete",
215
+ tool: "custom_environment_delete",
216
+ title: "Delete custom environment",
217
+ description: "Delete a custom environment. Workflows bound to it through `settings.custom_environment_id` can no longer boot. Refused while warm members exist: set `warmPool.targetSize` to 0 first and wait for them to retire.",
218
+ method: "DELETE",
219
+ path: "/agents/v2/custom-environments/{customEnvironmentId}",
220
+ args: [
221
+ {
222
+ name: "customEnvironmentId",
223
+ flag: "custom-environment-id",
224
+ type: "string",
225
+ required: true
226
+ }
227
+ ],
228
+ query: [],
229
+ binary: false,
230
+ readOnly: false,
231
+ destructive: true
232
+ },
143
233
  {
144
234
  command: "custom-environment get",
145
235
  tool: "custom_environment_get",
@@ -164,7 +254,7 @@ var COMMANDS = [
164
254
  command: "custom-environment list",
165
255
  tool: "custom_environments_list",
166
256
  title: "List custom environments",
167
- description: "List an organization's custom environments: the saved machines a workflow boots on, each with its environment type, snapshot, networking, allowed profiles and warm pool. Use an environment's `id` as a workflow version's `settings.custom_environment_id`. Users create and edit custom environments on the platform's Environments page; no tool changes them.",
257
+ description: "List an organization's custom environments: the saved machines a workflow boots on, each with its environment type, snapshot, networking, allowed profiles and warm pool. Use an environment's `id` as a workflow version's `settings.custom_environment_id`.",
168
258
  method: "GET",
169
259
  path: "/agents/v2/custom-environments",
170
260
  args: [],
@@ -173,6 +263,103 @@ var COMMANDS = [
173
263
  readOnly: true,
174
264
  destructive: false
175
265
  },
266
+ {
267
+ command: "custom-environment member list",
268
+ tool: "custom_environment_members_list",
269
+ title: "List custom environment members",
270
+ description: "List a custom environment's warm pool members: each pre-warmed environment's ID, state (warming, available, retiring), profile, attached executions and keep-alive health. Empty when the environment is not kept warm.",
271
+ method: "GET",
272
+ path: "/agents/v2/custom-environments/{customEnvironmentId}/members",
273
+ args: [
274
+ {
275
+ name: "customEnvironmentId",
276
+ flag: "custom-environment-id",
277
+ type: "string",
278
+ required: true
279
+ }
280
+ ],
281
+ query: [],
282
+ binary: false,
283
+ readOnly: true,
284
+ destructive: false
285
+ },
286
+ {
287
+ command: "custom-environment update",
288
+ tool: "custom_environment_update",
289
+ title: "Update custom environment",
290
+ description: "Replace a custom environment's configuration. Send the full config, as `custom_environment_get` returns it: a field left out is cleared, except proxy passwords and a managed proxy's provider, which keep their stored values. Changes apply to environments booted afterwards. Turning keep-warm off is refused while members exist: set `warmPool.targetSize` to 0 first and wait for them to retire.",
291
+ method: "PATCH",
292
+ path: "/agents/v2/custom-environments/{customEnvironmentId}",
293
+ args: [
294
+ {
295
+ name: "customEnvironmentId",
296
+ flag: "custom-environment-id",
297
+ type: "string",
298
+ required: true
299
+ }
300
+ ],
301
+ query: [],
302
+ binary: false,
303
+ readOnly: false,
304
+ destructive: false,
305
+ body: {
306
+ required: true,
307
+ contentType: "application/json",
308
+ fields: [
309
+ {
310
+ name: "name",
311
+ flag: "name",
312
+ type: "string",
313
+ required: true,
314
+ description: "Name, unique within the organisation"
315
+ },
316
+ {
317
+ name: "base",
318
+ flag: "base",
319
+ type: "json",
320
+ required: true,
321
+ description: "The base machine: a browser, or a Linux / Windows OS environment. For non-admins, an OS base's `snapshotName` must be one of the organisation's snapshots or a public one; admins may name any snapshot. Omit it for the default image."
322
+ },
323
+ {
324
+ name: "profiles",
325
+ flag: "profiles",
326
+ type: "json",
327
+ required: true,
328
+ description: "Ordered whitelist of the profile sources an execution bound to this environment may run as. Each row gets its own warm copies. With one row, a trigger that names neither a profile nor a pool defaults to that row; with several rows, the trigger must name an allowed profile, a member of an allowed pool, or an allowed pool. Empty means any profile or pool may be named, or none."
329
+ },
330
+ {
331
+ name: "settings",
332
+ flag: "settings",
333
+ type: "json",
334
+ required: false,
335
+ description: "Settings the environment boots with. Must match the base type. Absent inherits from the agent profile. A change applies to environments booted afterwards; warm members already booted keep the settings they booted with."
336
+ },
337
+ {
338
+ name: "warmPool",
339
+ flag: "warm-pool",
340
+ type: "json",
341
+ required: false,
342
+ description: "Warm pool configuration. Absent means the environment is not kept warm. Exclusive with warmCache and dedicated."
343
+ },
344
+ {
345
+ name: "warmCache",
346
+ flag: "warm-cache",
347
+ type: "json",
348
+ required: false,
349
+ description: "Warm cache configuration. Absent means no login agent keeps the profiles' cookies fresh. Exclusive with warmPool and dedicated."
350
+ },
351
+ {
352
+ name: "dedicated",
353
+ flag: "dedicated",
354
+ type: "json",
355
+ required: false,
356
+ description: "Admin only, and returned to admins only. Dedicated worker configuration. Absent means no workers are kept. Exclusive with warmPool and warmCache."
357
+ }
358
+ ],
359
+ files: [],
360
+ credentialOrganization: false
361
+ }
362
+ },
176
363
  {
177
364
  command: "docs search",
178
365
  tool: "search_docs",
@@ -5550,7 +5737,7 @@ var ApiError = class extends Error {
5550
5737
  status;
5551
5738
  body;
5552
5739
  };
5553
- var VERSION = "1.9.30";
5740
+ var VERSION = "1.9.33";
5554
5741
  function problem(status, body, fallback) {
5555
5742
  if (body && typeof body === "object") {
5556
5743
  const record2 = body;
package/dist/core.js CHANGED
@@ -161,6 +161,96 @@ var COMMANDS = [
161
161
  readOnly: true,
162
162
  destructive: false
163
163
  },
164
+ {
165
+ command: "custom-environment create",
166
+ tool: "custom_environments_create",
167
+ title: "Create custom environment",
168
+ description: "Create a custom environment: a saved machine a workflow boots on. Set a unique `name` and a `base`: a browser, or a Linux or Windows OS environment. Optionally whitelist `profiles`, override boot `settings`, and keep copies ready with `warmPool` or fresh logins with `warmCache` (not both). Bind it to a workflow with the version's `settings.custom_environment_id`.",
169
+ method: "POST",
170
+ path: "/agents/v2/custom-environments",
171
+ args: [],
172
+ query: [],
173
+ binary: false,
174
+ readOnly: false,
175
+ destructive: false,
176
+ body: {
177
+ required: true,
178
+ contentType: "application/json",
179
+ fields: [
180
+ {
181
+ name: "name",
182
+ flag: "name",
183
+ type: "string",
184
+ required: true,
185
+ description: "Name, unique within the organisation"
186
+ },
187
+ {
188
+ name: "base",
189
+ flag: "base",
190
+ type: "json",
191
+ required: true,
192
+ description: "The base machine: a browser, or a Linux / Windows OS environment. For non-admins, an OS base's `snapshotName` must be one of the organisation's snapshots or a public one; admins may name any snapshot. Omit it for the default image."
193
+ },
194
+ {
195
+ name: "profiles",
196
+ flag: "profiles",
197
+ type: "json",
198
+ required: true,
199
+ description: "Ordered whitelist of the profile sources an execution bound to this environment may run as. Each row gets its own warm copies. With one row, a trigger that names neither a profile nor a pool defaults to that row; with several rows, the trigger must name an allowed profile, a member of an allowed pool, or an allowed pool. Empty means any profile or pool may be named, or none."
200
+ },
201
+ {
202
+ name: "settings",
203
+ flag: "settings",
204
+ type: "json",
205
+ required: false,
206
+ description: "Settings the environment boots with. Must match the base type. Absent inherits from the agent profile. A change applies to environments booted afterwards; warm members already booted keep the settings they booted with."
207
+ },
208
+ {
209
+ name: "warmPool",
210
+ flag: "warm-pool",
211
+ type: "json",
212
+ required: false,
213
+ description: "Warm pool configuration. Absent means the environment is not kept warm. Exclusive with warmCache and dedicated."
214
+ },
215
+ {
216
+ name: "warmCache",
217
+ flag: "warm-cache",
218
+ type: "json",
219
+ required: false,
220
+ description: "Warm cache configuration. Absent means no login agent keeps the profiles' cookies fresh. Exclusive with warmPool and dedicated."
221
+ },
222
+ {
223
+ name: "dedicated",
224
+ flag: "dedicated",
225
+ type: "json",
226
+ required: false,
227
+ description: "Admin only, and returned to admins only. Dedicated worker configuration. Absent means no workers are kept. Exclusive with warmPool and warmCache."
228
+ }
229
+ ],
230
+ files: [],
231
+ credentialOrganization: true
232
+ }
233
+ },
234
+ {
235
+ command: "custom-environment delete",
236
+ tool: "custom_environment_delete",
237
+ title: "Delete custom environment",
238
+ description: "Delete a custom environment. Workflows bound to it through `settings.custom_environment_id` can no longer boot. Refused while warm members exist: set `warmPool.targetSize` to 0 first and wait for them to retire.",
239
+ method: "DELETE",
240
+ path: "/agents/v2/custom-environments/{customEnvironmentId}",
241
+ args: [
242
+ {
243
+ name: "customEnvironmentId",
244
+ flag: "custom-environment-id",
245
+ type: "string",
246
+ required: true
247
+ }
248
+ ],
249
+ query: [],
250
+ binary: false,
251
+ readOnly: false,
252
+ destructive: true
253
+ },
164
254
  {
165
255
  command: "custom-environment get",
166
256
  tool: "custom_environment_get",
@@ -185,7 +275,7 @@ var COMMANDS = [
185
275
  command: "custom-environment list",
186
276
  tool: "custom_environments_list",
187
277
  title: "List custom environments",
188
- description: "List an organization's custom environments: the saved machines a workflow boots on, each with its environment type, snapshot, networking, allowed profiles and warm pool. Use an environment's `id` as a workflow version's `settings.custom_environment_id`. Users create and edit custom environments on the platform's Environments page; no tool changes them.",
278
+ description: "List an organization's custom environments: the saved machines a workflow boots on, each with its environment type, snapshot, networking, allowed profiles and warm pool. Use an environment's `id` as a workflow version's `settings.custom_environment_id`.",
189
279
  method: "GET",
190
280
  path: "/agents/v2/custom-environments",
191
281
  args: [],
@@ -194,6 +284,103 @@ var COMMANDS = [
194
284
  readOnly: true,
195
285
  destructive: false
196
286
  },
287
+ {
288
+ command: "custom-environment member list",
289
+ tool: "custom_environment_members_list",
290
+ title: "List custom environment members",
291
+ description: "List a custom environment's warm pool members: each pre-warmed environment's ID, state (warming, available, retiring), profile, attached executions and keep-alive health. Empty when the environment is not kept warm.",
292
+ method: "GET",
293
+ path: "/agents/v2/custom-environments/{customEnvironmentId}/members",
294
+ args: [
295
+ {
296
+ name: "customEnvironmentId",
297
+ flag: "custom-environment-id",
298
+ type: "string",
299
+ required: true
300
+ }
301
+ ],
302
+ query: [],
303
+ binary: false,
304
+ readOnly: true,
305
+ destructive: false
306
+ },
307
+ {
308
+ command: "custom-environment update",
309
+ tool: "custom_environment_update",
310
+ title: "Update custom environment",
311
+ description: "Replace a custom environment's configuration. Send the full config, as `custom_environment_get` returns it: a field left out is cleared, except proxy passwords and a managed proxy's provider, which keep their stored values. Changes apply to environments booted afterwards. Turning keep-warm off is refused while members exist: set `warmPool.targetSize` to 0 first and wait for them to retire.",
312
+ method: "PATCH",
313
+ path: "/agents/v2/custom-environments/{customEnvironmentId}",
314
+ args: [
315
+ {
316
+ name: "customEnvironmentId",
317
+ flag: "custom-environment-id",
318
+ type: "string",
319
+ required: true
320
+ }
321
+ ],
322
+ query: [],
323
+ binary: false,
324
+ readOnly: false,
325
+ destructive: false,
326
+ body: {
327
+ required: true,
328
+ contentType: "application/json",
329
+ fields: [
330
+ {
331
+ name: "name",
332
+ flag: "name",
333
+ type: "string",
334
+ required: true,
335
+ description: "Name, unique within the organisation"
336
+ },
337
+ {
338
+ name: "base",
339
+ flag: "base",
340
+ type: "json",
341
+ required: true,
342
+ description: "The base machine: a browser, or a Linux / Windows OS environment. For non-admins, an OS base's `snapshotName` must be one of the organisation's snapshots or a public one; admins may name any snapshot. Omit it for the default image."
343
+ },
344
+ {
345
+ name: "profiles",
346
+ flag: "profiles",
347
+ type: "json",
348
+ required: true,
349
+ description: "Ordered whitelist of the profile sources an execution bound to this environment may run as. Each row gets its own warm copies. With one row, a trigger that names neither a profile nor a pool defaults to that row; with several rows, the trigger must name an allowed profile, a member of an allowed pool, or an allowed pool. Empty means any profile or pool may be named, or none."
350
+ },
351
+ {
352
+ name: "settings",
353
+ flag: "settings",
354
+ type: "json",
355
+ required: false,
356
+ description: "Settings the environment boots with. Must match the base type. Absent inherits from the agent profile. A change applies to environments booted afterwards; warm members already booted keep the settings they booted with."
357
+ },
358
+ {
359
+ name: "warmPool",
360
+ flag: "warm-pool",
361
+ type: "json",
362
+ required: false,
363
+ description: "Warm pool configuration. Absent means the environment is not kept warm. Exclusive with warmCache and dedicated."
364
+ },
365
+ {
366
+ name: "warmCache",
367
+ flag: "warm-cache",
368
+ type: "json",
369
+ required: false,
370
+ description: "Warm cache configuration. Absent means no login agent keeps the profiles' cookies fresh. Exclusive with warmPool and dedicated."
371
+ },
372
+ {
373
+ name: "dedicated",
374
+ flag: "dedicated",
375
+ type: "json",
376
+ required: false,
377
+ description: "Admin only, and returned to admins only. Dedicated worker configuration. Absent means no workers are kept. Exclusive with warmPool and warmCache."
378
+ }
379
+ ],
380
+ files: [],
381
+ credentialOrganization: false
382
+ }
383
+ },
197
384
  {
198
385
  command: "docs search",
199
386
  tool: "search_docs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asteroidai/cli",
3
- "version": "1.9.30",
3
+ "version": "1.9.33",
4
4
  "description": "The asteroid command-line interface for the Asteroid platform.",
5
5
  "type": "module",
6
6
  "license": "MIT",