@asteroidai/cli 1.9.523 → 1.9.526

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
@@ -566,7 +566,7 @@ var COMMANDS = [
566
566
  command: "custom-environment create",
567
567
  tool: "custom_environments_create",
568
568
  title: "Create custom environment",
569
- 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`.",
569
+ 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). Make it a workflow's default with the version's `settings.default_environment_id`.",
570
570
  method: "POST",
571
571
  path: "/agents/v2/custom-environments",
572
572
  args: [],
@@ -590,7 +590,7 @@ var COMMANDS = [
590
590
  flag: "base",
591
591
  type: "json",
592
592
  required: true,
593
- 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.",
593
+ description: "The base machine: a browser, or a Linux / Windows OS environment. For non-staff callers, an OS base's `snapshotName` must be one of the organisation's snapshots or a public one; staff may name any snapshot. Omit it for the default image.",
594
594
  fields: [
595
595
  {
596
596
  name: "type",
@@ -897,7 +897,7 @@ var COMMANDS = [
897
897
  command: "custom-environment delete",
898
898
  tool: "custom_environment_delete",
899
899
  title: "Delete custom environment",
900
- 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.",
900
+ description: "Delete a custom environment. Workflows that name it in `settings.default_environment_id` can no longer boot. Refused while warm members exist: set `warmPool.targetSize` to 0 first and wait for them to retire.",
901
901
  method: "DELETE",
902
902
  path: "/agents/v2/custom-environments/{customEnvironmentId}",
903
903
  args: [
@@ -917,7 +917,7 @@ var COMMANDS = [
917
917
  command: "custom-environment get",
918
918
  tool: "custom_environment_get",
919
919
  title: "Get custom environment",
920
- description: "Read one custom environment by ID, such as the one a workflow's `settings.custom_environment_id` names, to see what machine the workflow boots on.",
920
+ description: "Read one custom environment by ID, such as the one a workflow's `settings.default_environment_id` names, to see what machine the workflow boots on.",
921
921
  method: "GET",
922
922
  path: "/agents/v2/custom-environments/{customEnvironmentId}",
923
923
  args: [
@@ -937,7 +937,7 @@ var COMMANDS = [
937
937
  command: "custom-environment list",
938
938
  tool: "custom_environments_list",
939
939
  title: "List custom environments",
940
- 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`.",
940
+ 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.default_environment_id`.",
941
941
  method: "GET",
942
942
  path: "/agents/v2/custom-environments",
943
943
  args: [],
@@ -1001,7 +1001,7 @@ var COMMANDS = [
1001
1001
  flag: "base",
1002
1002
  type: "json",
1003
1003
  required: true,
1004
- 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.",
1004
+ description: "The base machine: a browser, or a Linux / Windows OS environment. For non-staff callers, an OS base's `snapshotName` must be one of the organisation's snapshots or a public one; staff may name any snapshot. Omit it for the default image.",
1005
1005
  fields: [
1006
1006
  {
1007
1007
  name: "type",
@@ -5339,7 +5339,7 @@ var COMMANDS = [
5339
5339
  command: "workflow create",
5340
5340
  tool: "workflow_create",
5341
5341
  title: "Create workflow",
5342
- description: "Create a new workflow (not a new version of an existing one). Only `name` is required. Without `version`, the workflow starts blank with a single start node, and version 1 stays unpublished and editable; build it with `workflow_files_patch`. Pass a `version` graph (same shape as `workflow_version_create`) to create it complete. A real graph publishes immediately as version 1 and runs right away with `workflow_execute_post`. A minimal runnable graph has a `start` node, one `iris` agent node, and `success` and `failure` `output` nodes. Check output schemas with `schema_validate`. Until the workflow publishes a version, `workflow_execute_post` runs the latest one. To run on a custom environment, set `settings.custom_environment_id` to an `id` from `custom_environments_list`.",
5342
+ description: "Create a new workflow (not a new version of an existing one). Only `name` is required. Without `version`, the workflow starts blank with a single start node, and version 1 stays unpublished and editable; build it with `workflow_files_patch`. Pass a `version` graph (same shape as `workflow_version_create`) to create it complete. A real graph publishes immediately as version 1 and runs right away with `workflow_execute_post`. A minimal runnable graph has a `start` node, one `iris` agent node, and `success` and `failure` `output` nodes. Check output schemas with `schema_validate`. Until the workflow publishes a version, `workflow_execute_post` runs the latest one. To run on a custom environment, set `settings.default_environment_id` to an `id` from `custom_environments_list`. The version takes that environment's machine type.",
5343
5343
  method: "POST",
5344
5344
  path: "/agents/v2/workflows",
5345
5345
  args: [],
@@ -5440,11 +5440,11 @@ var COMMANDS = [
5440
5440
  description: "Maximum timeout in minutes"
5441
5441
  },
5442
5442
  {
5443
- name: "custom_environment_id",
5444
- flag: "custom_environment_id",
5443
+ name: "default_environment_id",
5444
+ flag: "default_environment_id",
5445
5445
  type: "string",
5446
5446
  required: false,
5447
- description: "Custom environment executions of this workflow boot on: its environment type and snapshot replace the workflow's own environment, its profile rows restrict which profile an execution may use, and a kept-warm environment hands out a pre-warmed copy. On a new version, omit it to keep the environment of the workflow's latest version (its editable head, which can be newer than the published one), or send null to boot the workflow's own environment. On a new workflow, there is nothing to keep: omit it or send null for no custom environment."
5447
+ description: "The custom environment executions of this workflow version boot on by default. Its profile rows restrict which profile an execution may use, and a kept-warm environment hands out a pre-warmed copy. Saving it gives the version the environment's machine type, and `environmentTemplate` follows it, with a warning when the type changed. On a new version, omit it to keep the environment of the workflow's latest version (its editable head, which can be newer than the published one), or send null to boot the standard environment for the version's machine type. On a new workflow, there is nothing to keep: omit it or send null for no custom environment."
5448
5448
  }
5449
5449
  ]
5450
5450
  },
@@ -5453,7 +5453,7 @@ var COMMANDS = [
5453
5453
  flag: "environment-template",
5454
5454
  type: "json",
5455
5455
  required: false,
5456
- description: "Optional environment template. On a new version, omit it to keep the template of the workflow's latest version (its editable head); on a new workflow, omitting it means a browser. Omits admin-only OS fields.",
5456
+ description: "Optional environment template. On a new version, omit it to keep the template of the workflow's latest version (its editable head); on a new workflow, omitting it means a browser. Omits staff-only OS fields.",
5457
5457
  fields: [
5458
5458
  {
5459
5459
  name: "type",
@@ -6648,11 +6648,11 @@ var COMMANDS = [
6648
6648
  description: "Maximum timeout in minutes"
6649
6649
  },
6650
6650
  {
6651
- name: "custom_environment_id",
6652
- flag: "custom_environment_id",
6651
+ name: "default_environment_id",
6652
+ flag: "default_environment_id",
6653
6653
  type: "string",
6654
6654
  required: false,
6655
- description: "Custom environment executions of this workflow boot on: its environment type and snapshot replace the workflow's own environment, its profile rows restrict which profile an execution may use, and a kept-warm environment hands out a pre-warmed copy. On a new version, omit it to keep the environment of the workflow's latest version (its editable head, which can be newer than the published one), or send null to boot the workflow's own environment. On a new workflow, there is nothing to keep: omit it or send null for no custom environment."
6655
+ description: "The custom environment executions of this workflow version boot on by default. Its profile rows restrict which profile an execution may use, and a kept-warm environment hands out a pre-warmed copy. Saving it gives the version the environment's machine type, and `environmentTemplate` follows it, with a warning when the type changed. On a new version, omit it to keep the environment of the workflow's latest version (its editable head, which can be newer than the published one), or send null to boot the standard environment for the version's machine type. On a new workflow, there is nothing to keep: omit it or send null for no custom environment."
6656
6656
  }
6657
6657
  ]
6658
6658
  },
@@ -6661,7 +6661,7 @@ var COMMANDS = [
6661
6661
  flag: "environment-template",
6662
6662
  type: "json",
6663
6663
  required: false,
6664
- description: "Optional environment template. On a new version, omit it to keep the template of the workflow's latest version (its editable head); on a new workflow, omitting it means a browser. Omits admin-only OS fields.",
6664
+ description: "Optional environment template. On a new version, omit it to keep the template of the workflow's latest version (its editable head); on a new workflow, omitting it means a browser. Omits staff-only OS fields.",
6665
6665
  fields: [
6666
6666
  {
6667
6667
  name: "type",
@@ -6688,7 +6688,7 @@ var COMMANDS = [
6688
6688
  command: "workflow version create",
6689
6689
  tool: "workflow_version_create",
6690
6690
  title: "Create workflow version",
6691
- description: "Create a version from a full graph (nodes, transitions), rules and settings. To edit a workflow, prefer `workflow_files_patch` on the editable head, then `workflow_head_publish`. Set `parentId` to the current version's ID to maintain lineage. The new version is unpublished until you call `workflow_version_publish`. Settings and fields the request omits keep the values of the workflow's latest version (its editable head, which can be newer than the published one): leave out `settings.custom_environment_id` to stay on the same custom environment, set it to switch, or send `null` to boot the workflow's own environment. Leave out `environmentTemplate` to keep the latest version's.",
6691
+ description: "Create a version from a full graph (nodes, transitions), rules and settings. To edit a workflow, prefer `workflow_files_patch` on the editable head, then `workflow_head_publish`. Set `parentId` to the current version's ID to maintain lineage. The new version is unpublished until you call `workflow_version_publish`. Settings and fields the request omits keep the values of the workflow's latest version (its editable head, which can be newer than the published one): leave out `settings.default_environment_id` to stay on the same custom environment, set it to switch, or send `null` to boot the standard environment for the version's machine type. A default environment sets the version's machine type to its own. Leave out `environmentTemplate` to keep the latest version's.",
6692
6692
  method: "POST",
6693
6693
  path: "/agents/v2/workflows/{workflowId}/versions",
6694
6694
  args: [
@@ -6782,11 +6782,11 @@ var COMMANDS = [
6782
6782
  description: "Maximum timeout in minutes"
6783
6783
  },
6784
6784
  {
6785
- name: "custom_environment_id",
6786
- flag: "custom_environment_id",
6785
+ name: "default_environment_id",
6786
+ flag: "default_environment_id",
6787
6787
  type: "string",
6788
6788
  required: false,
6789
- description: "Custom environment executions of this workflow boot on: its environment type and snapshot replace the workflow's own environment, its profile rows restrict which profile an execution may use, and a kept-warm environment hands out a pre-warmed copy. On a new version, omit it to keep the environment of the workflow's latest version (its editable head, which can be newer than the published one), or send null to boot the workflow's own environment. On a new workflow, there is nothing to keep: omit it or send null for no custom environment."
6789
+ description: "The custom environment executions of this workflow version boot on by default. Its profile rows restrict which profile an execution may use, and a kept-warm environment hands out a pre-warmed copy. Saving it gives the version the environment's machine type, and `environmentTemplate` follows it, with a warning when the type changed. On a new version, omit it to keep the environment of the workflow's latest version (its editable head, which can be newer than the published one), or send null to boot the standard environment for the version's machine type. On a new workflow, there is nothing to keep: omit it or send null for no custom environment."
6790
6790
  }
6791
6791
  ]
6792
6792
  },
@@ -6795,7 +6795,7 @@ var COMMANDS = [
6795
6795
  flag: "environment-template",
6796
6796
  type: "json",
6797
6797
  required: false,
6798
- description: "Optional environment template. On a new version, omit it to keep the template of the workflow's latest version (its editable head); on a new workflow, omitting it means a browser. Omits admin-only OS fields.",
6798
+ description: "Optional environment template. On a new version, omit it to keep the template of the workflow's latest version (its editable head); on a new workflow, omitting it means a browser. Omits staff-only OS fields.",
6799
6799
  fields: [
6800
6800
  {
6801
6801
  name: "type",
@@ -7265,11 +7265,11 @@ var COMMANDS = [
7265
7265
  description: "Maximum timeout in minutes"
7266
7266
  },
7267
7267
  {
7268
- name: "custom_environment_id",
7269
- flag: "custom_environment_id",
7268
+ name: "default_environment_id",
7269
+ flag: "default_environment_id",
7270
7270
  type: "string",
7271
7271
  required: false,
7272
- description: "Custom environment executions of this workflow boot on: its environment type and snapshot replace the workflow's own environment, its profile rows restrict which profile an execution may use, and a kept-warm environment hands out a pre-warmed copy. On a new version, omit it to keep the environment of the workflow's latest version (its editable head, which can be newer than the published one), or send null to boot the workflow's own environment. On a new workflow, there is nothing to keep: omit it or send null for no custom environment."
7272
+ description: "The custom environment executions of this workflow version boot on by default. Its profile rows restrict which profile an execution may use, and a kept-warm environment hands out a pre-warmed copy. Saving it gives the version the environment's machine type, and `environmentTemplate` follows it, with a warning when the type changed. On a new version, omit it to keep the environment of the workflow's latest version (its editable head, which can be newer than the published one), or send null to boot the standard environment for the version's machine type. On a new workflow, there is nothing to keep: omit it or send null for no custom environment."
7273
7273
  }
7274
7274
  ]
7275
7275
  },
@@ -7278,7 +7278,7 @@ var COMMANDS = [
7278
7278
  flag: "environment-template",
7279
7279
  type: "json",
7280
7280
  required: false,
7281
- description: "Optional environment template. On a new version, omit it to keep the template of the workflow's latest version (its editable head); on a new workflow, omitting it means a browser. Omits admin-only OS fields.",
7281
+ description: "Optional environment template. On a new version, omit it to keep the template of the workflow's latest version (its editable head); on a new workflow, omitting it means a browser. Omits staff-only OS fields.",
7282
7282
  fields: [
7283
7283
  {
7284
7284
  name: "type",
@@ -8509,7 +8509,7 @@ var ApiError = class extends Error {
8509
8509
  status;
8510
8510
  body;
8511
8511
  };
8512
- var VERSION = "1.9.523";
8512
+ var VERSION = "1.9.526";
8513
8513
  function problem(status, body, fallback) {
8514
8514
  if (body && typeof body === "object") {
8515
8515
  const record2 = body;
package/dist/core.js CHANGED
@@ -587,7 +587,7 @@ var COMMANDS = [
587
587
  command: "custom-environment create",
588
588
  tool: "custom_environments_create",
589
589
  title: "Create custom environment",
590
- 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`.",
590
+ 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). Make it a workflow's default with the version's `settings.default_environment_id`.",
591
591
  method: "POST",
592
592
  path: "/agents/v2/custom-environments",
593
593
  args: [],
@@ -611,7 +611,7 @@ var COMMANDS = [
611
611
  flag: "base",
612
612
  type: "json",
613
613
  required: true,
614
- 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.",
614
+ description: "The base machine: a browser, or a Linux / Windows OS environment. For non-staff callers, an OS base's `snapshotName` must be one of the organisation's snapshots or a public one; staff may name any snapshot. Omit it for the default image.",
615
615
  fields: [
616
616
  {
617
617
  name: "type",
@@ -918,7 +918,7 @@ var COMMANDS = [
918
918
  command: "custom-environment delete",
919
919
  tool: "custom_environment_delete",
920
920
  title: "Delete custom environment",
921
- 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.",
921
+ description: "Delete a custom environment. Workflows that name it in `settings.default_environment_id` can no longer boot. Refused while warm members exist: set `warmPool.targetSize` to 0 first and wait for them to retire.",
922
922
  method: "DELETE",
923
923
  path: "/agents/v2/custom-environments/{customEnvironmentId}",
924
924
  args: [
@@ -938,7 +938,7 @@ var COMMANDS = [
938
938
  command: "custom-environment get",
939
939
  tool: "custom_environment_get",
940
940
  title: "Get custom environment",
941
- description: "Read one custom environment by ID, such as the one a workflow's `settings.custom_environment_id` names, to see what machine the workflow boots on.",
941
+ description: "Read one custom environment by ID, such as the one a workflow's `settings.default_environment_id` names, to see what machine the workflow boots on.",
942
942
  method: "GET",
943
943
  path: "/agents/v2/custom-environments/{customEnvironmentId}",
944
944
  args: [
@@ -958,7 +958,7 @@ var COMMANDS = [
958
958
  command: "custom-environment list",
959
959
  tool: "custom_environments_list",
960
960
  title: "List custom environments",
961
- 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`.",
961
+ 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.default_environment_id`.",
962
962
  method: "GET",
963
963
  path: "/agents/v2/custom-environments",
964
964
  args: [],
@@ -1022,7 +1022,7 @@ var COMMANDS = [
1022
1022
  flag: "base",
1023
1023
  type: "json",
1024
1024
  required: true,
1025
- 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.",
1025
+ description: "The base machine: a browser, or a Linux / Windows OS environment. For non-staff callers, an OS base's `snapshotName` must be one of the organisation's snapshots or a public one; staff may name any snapshot. Omit it for the default image.",
1026
1026
  fields: [
1027
1027
  {
1028
1028
  name: "type",
@@ -5360,7 +5360,7 @@ var COMMANDS = [
5360
5360
  command: "workflow create",
5361
5361
  tool: "workflow_create",
5362
5362
  title: "Create workflow",
5363
- description: "Create a new workflow (not a new version of an existing one). Only `name` is required. Without `version`, the workflow starts blank with a single start node, and version 1 stays unpublished and editable; build it with `workflow_files_patch`. Pass a `version` graph (same shape as `workflow_version_create`) to create it complete. A real graph publishes immediately as version 1 and runs right away with `workflow_execute_post`. A minimal runnable graph has a `start` node, one `iris` agent node, and `success` and `failure` `output` nodes. Check output schemas with `schema_validate`. Until the workflow publishes a version, `workflow_execute_post` runs the latest one. To run on a custom environment, set `settings.custom_environment_id` to an `id` from `custom_environments_list`.",
5363
+ description: "Create a new workflow (not a new version of an existing one). Only `name` is required. Without `version`, the workflow starts blank with a single start node, and version 1 stays unpublished and editable; build it with `workflow_files_patch`. Pass a `version` graph (same shape as `workflow_version_create`) to create it complete. A real graph publishes immediately as version 1 and runs right away with `workflow_execute_post`. A minimal runnable graph has a `start` node, one `iris` agent node, and `success` and `failure` `output` nodes. Check output schemas with `schema_validate`. Until the workflow publishes a version, `workflow_execute_post` runs the latest one. To run on a custom environment, set `settings.default_environment_id` to an `id` from `custom_environments_list`. The version takes that environment's machine type.",
5364
5364
  method: "POST",
5365
5365
  path: "/agents/v2/workflows",
5366
5366
  args: [],
@@ -5461,11 +5461,11 @@ var COMMANDS = [
5461
5461
  description: "Maximum timeout in minutes"
5462
5462
  },
5463
5463
  {
5464
- name: "custom_environment_id",
5465
- flag: "custom_environment_id",
5464
+ name: "default_environment_id",
5465
+ flag: "default_environment_id",
5466
5466
  type: "string",
5467
5467
  required: false,
5468
- description: "Custom environment executions of this workflow boot on: its environment type and snapshot replace the workflow's own environment, its profile rows restrict which profile an execution may use, and a kept-warm environment hands out a pre-warmed copy. On a new version, omit it to keep the environment of the workflow's latest version (its editable head, which can be newer than the published one), or send null to boot the workflow's own environment. On a new workflow, there is nothing to keep: omit it or send null for no custom environment."
5468
+ description: "The custom environment executions of this workflow version boot on by default. Its profile rows restrict which profile an execution may use, and a kept-warm environment hands out a pre-warmed copy. Saving it gives the version the environment's machine type, and `environmentTemplate` follows it, with a warning when the type changed. On a new version, omit it to keep the environment of the workflow's latest version (its editable head, which can be newer than the published one), or send null to boot the standard environment for the version's machine type. On a new workflow, there is nothing to keep: omit it or send null for no custom environment."
5469
5469
  }
5470
5470
  ]
5471
5471
  },
@@ -5474,7 +5474,7 @@ var COMMANDS = [
5474
5474
  flag: "environment-template",
5475
5475
  type: "json",
5476
5476
  required: false,
5477
- description: "Optional environment template. On a new version, omit it to keep the template of the workflow's latest version (its editable head); on a new workflow, omitting it means a browser. Omits admin-only OS fields.",
5477
+ description: "Optional environment template. On a new version, omit it to keep the template of the workflow's latest version (its editable head); on a new workflow, omitting it means a browser. Omits staff-only OS fields.",
5478
5478
  fields: [
5479
5479
  {
5480
5480
  name: "type",
@@ -6669,11 +6669,11 @@ var COMMANDS = [
6669
6669
  description: "Maximum timeout in minutes"
6670
6670
  },
6671
6671
  {
6672
- name: "custom_environment_id",
6673
- flag: "custom_environment_id",
6672
+ name: "default_environment_id",
6673
+ flag: "default_environment_id",
6674
6674
  type: "string",
6675
6675
  required: false,
6676
- description: "Custom environment executions of this workflow boot on: its environment type and snapshot replace the workflow's own environment, its profile rows restrict which profile an execution may use, and a kept-warm environment hands out a pre-warmed copy. On a new version, omit it to keep the environment of the workflow's latest version (its editable head, which can be newer than the published one), or send null to boot the workflow's own environment. On a new workflow, there is nothing to keep: omit it or send null for no custom environment."
6676
+ description: "The custom environment executions of this workflow version boot on by default. Its profile rows restrict which profile an execution may use, and a kept-warm environment hands out a pre-warmed copy. Saving it gives the version the environment's machine type, and `environmentTemplate` follows it, with a warning when the type changed. On a new version, omit it to keep the environment of the workflow's latest version (its editable head, which can be newer than the published one), or send null to boot the standard environment for the version's machine type. On a new workflow, there is nothing to keep: omit it or send null for no custom environment."
6677
6677
  }
6678
6678
  ]
6679
6679
  },
@@ -6682,7 +6682,7 @@ var COMMANDS = [
6682
6682
  flag: "environment-template",
6683
6683
  type: "json",
6684
6684
  required: false,
6685
- description: "Optional environment template. On a new version, omit it to keep the template of the workflow's latest version (its editable head); on a new workflow, omitting it means a browser. Omits admin-only OS fields.",
6685
+ description: "Optional environment template. On a new version, omit it to keep the template of the workflow's latest version (its editable head); on a new workflow, omitting it means a browser. Omits staff-only OS fields.",
6686
6686
  fields: [
6687
6687
  {
6688
6688
  name: "type",
@@ -6709,7 +6709,7 @@ var COMMANDS = [
6709
6709
  command: "workflow version create",
6710
6710
  tool: "workflow_version_create",
6711
6711
  title: "Create workflow version",
6712
- description: "Create a version from a full graph (nodes, transitions), rules and settings. To edit a workflow, prefer `workflow_files_patch` on the editable head, then `workflow_head_publish`. Set `parentId` to the current version's ID to maintain lineage. The new version is unpublished until you call `workflow_version_publish`. Settings and fields the request omits keep the values of the workflow's latest version (its editable head, which can be newer than the published one): leave out `settings.custom_environment_id` to stay on the same custom environment, set it to switch, or send `null` to boot the workflow's own environment. Leave out `environmentTemplate` to keep the latest version's.",
6712
+ description: "Create a version from a full graph (nodes, transitions), rules and settings. To edit a workflow, prefer `workflow_files_patch` on the editable head, then `workflow_head_publish`. Set `parentId` to the current version's ID to maintain lineage. The new version is unpublished until you call `workflow_version_publish`. Settings and fields the request omits keep the values of the workflow's latest version (its editable head, which can be newer than the published one): leave out `settings.default_environment_id` to stay on the same custom environment, set it to switch, or send `null` to boot the standard environment for the version's machine type. A default environment sets the version's machine type to its own. Leave out `environmentTemplate` to keep the latest version's.",
6713
6713
  method: "POST",
6714
6714
  path: "/agents/v2/workflows/{workflowId}/versions",
6715
6715
  args: [
@@ -6803,11 +6803,11 @@ var COMMANDS = [
6803
6803
  description: "Maximum timeout in minutes"
6804
6804
  },
6805
6805
  {
6806
- name: "custom_environment_id",
6807
- flag: "custom_environment_id",
6806
+ name: "default_environment_id",
6807
+ flag: "default_environment_id",
6808
6808
  type: "string",
6809
6809
  required: false,
6810
- description: "Custom environment executions of this workflow boot on: its environment type and snapshot replace the workflow's own environment, its profile rows restrict which profile an execution may use, and a kept-warm environment hands out a pre-warmed copy. On a new version, omit it to keep the environment of the workflow's latest version (its editable head, which can be newer than the published one), or send null to boot the workflow's own environment. On a new workflow, there is nothing to keep: omit it or send null for no custom environment."
6810
+ description: "The custom environment executions of this workflow version boot on by default. Its profile rows restrict which profile an execution may use, and a kept-warm environment hands out a pre-warmed copy. Saving it gives the version the environment's machine type, and `environmentTemplate` follows it, with a warning when the type changed. On a new version, omit it to keep the environment of the workflow's latest version (its editable head, which can be newer than the published one), or send null to boot the standard environment for the version's machine type. On a new workflow, there is nothing to keep: omit it or send null for no custom environment."
6811
6811
  }
6812
6812
  ]
6813
6813
  },
@@ -6816,7 +6816,7 @@ var COMMANDS = [
6816
6816
  flag: "environment-template",
6817
6817
  type: "json",
6818
6818
  required: false,
6819
- description: "Optional environment template. On a new version, omit it to keep the template of the workflow's latest version (its editable head); on a new workflow, omitting it means a browser. Omits admin-only OS fields.",
6819
+ description: "Optional environment template. On a new version, omit it to keep the template of the workflow's latest version (its editable head); on a new workflow, omitting it means a browser. Omits staff-only OS fields.",
6820
6820
  fields: [
6821
6821
  {
6822
6822
  name: "type",
@@ -7286,11 +7286,11 @@ var COMMANDS = [
7286
7286
  description: "Maximum timeout in minutes"
7287
7287
  },
7288
7288
  {
7289
- name: "custom_environment_id",
7290
- flag: "custom_environment_id",
7289
+ name: "default_environment_id",
7290
+ flag: "default_environment_id",
7291
7291
  type: "string",
7292
7292
  required: false,
7293
- description: "Custom environment executions of this workflow boot on: its environment type and snapshot replace the workflow's own environment, its profile rows restrict which profile an execution may use, and a kept-warm environment hands out a pre-warmed copy. On a new version, omit it to keep the environment of the workflow's latest version (its editable head, which can be newer than the published one), or send null to boot the workflow's own environment. On a new workflow, there is nothing to keep: omit it or send null for no custom environment."
7293
+ description: "The custom environment executions of this workflow version boot on by default. Its profile rows restrict which profile an execution may use, and a kept-warm environment hands out a pre-warmed copy. Saving it gives the version the environment's machine type, and `environmentTemplate` follows it, with a warning when the type changed. On a new version, omit it to keep the environment of the workflow's latest version (its editable head, which can be newer than the published one), or send null to boot the standard environment for the version's machine type. On a new workflow, there is nothing to keep: omit it or send null for no custom environment."
7294
7294
  }
7295
7295
  ]
7296
7296
  },
@@ -7299,7 +7299,7 @@ var COMMANDS = [
7299
7299
  flag: "environment-template",
7300
7300
  type: "json",
7301
7301
  required: false,
7302
- description: "Optional environment template. On a new version, omit it to keep the template of the workflow's latest version (its editable head); on a new workflow, omitting it means a browser. Omits admin-only OS fields.",
7302
+ description: "Optional environment template. On a new version, omit it to keep the template of the workflow's latest version (its editable head); on a new workflow, omitting it means a browser. Omits staff-only OS fields.",
7303
7303
  fields: [
7304
7304
  {
7305
7305
  name: "type",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asteroidai/cli",
3
- "version": "1.9.523",
3
+ "version": "1.9.526",
4
4
  "description": "The asteroid command-line interface for the Asteroid platform.",
5
5
  "type": "module",
6
6
  "license": "MIT",