@asteroidai/cli 1.9.572 → 1.9.577

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
@@ -616,7 +616,7 @@ var COMMANDS = [
616
616
  flag: "base",
617
617
  type: "json",
618
618
  required: true,
619
- description: "The base machine: a browser, or a Linux, Windows or Citrix desktop, sent as `os` with `osType` or as the desktop type. 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.",
619
+ description: "The base machine: a browser, or a Linux, Windows or Citrix desktop, sent as `os` with `osType` or as the desktop type. An OS base's `snapshotName` must be one of the organisation's snapshots or a public one. Omit it for the default image.",
620
620
  fields: [
621
621
  {
622
622
  name: "type",
@@ -1027,7 +1027,7 @@ var COMMANDS = [
1027
1027
  flag: "base",
1028
1028
  type: "json",
1029
1029
  required: true,
1030
- description: "The base machine: a browser, or a Linux, Windows or Citrix desktop, sent as `os` with `osType` or as the desktop type. 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.",
1030
+ description: "The base machine: a browser, or a Linux, Windows or Citrix desktop, sent as `os` with `osType` or as the desktop type. An OS base's `snapshotName` must be one of the organisation's snapshots or a public one. Omit it for the default image.",
1031
1031
  fields: [
1032
1032
  {
1033
1033
  name: "type",
@@ -1750,7 +1750,7 @@ var COMMANDS = [
1750
1750
  command: "environment snapshot",
1751
1751
  tool: "environment_snapshot",
1752
1752
  title: "Snapshot live environment",
1753
- description: "Capture a live OS environment into a reusable snapshot of your organization, and wait for it to finish. The environment must be ready. A browser environment cannot be captured. Capturing under a `displayName` your organization already uses adds the next version to that snapshot. Windows is imaged with its memory and keeps running. Linux and Citrix are stopped, imaged and started again, which ends the session: `restarted` says so, and the screen is back to its boot state. Takes minutes. Call it once and never retry: a second call captures again and adds another version. If the request gives up or times out, the capture still completes: find its version with `environment_snapshot_get` or `environment_snapshots_list`. Build every snapshot on a base: the shared Windows, Linux or Citrix image, such as `linux-base`. For a new snapshot, boot the base's newest version. To change a snapshot, boot its newest version and capture under the same `displayName`. Never start a new snapshot from another snapshot, your own or shared: its recipe would then depend on that snapshot. Read `environment_current_snapshot` first and edit its recipe. `recipe` is markdown that lets a session with no other context rebuild this exact image on a fresh base: a `## Install` section with the scripted steps as code blocks and any GUI steps as prose, in order, a `## Boot state` section with what is open, signed in and on screen at boot, and optionally `## Notes`. It replaces the old recipe, so cover what the booted image already had. Never write a password, token or other secret in it. `changelog` says in a sentence or two what this capture changed. To boot from the snapshot, set its `name` as `snapshotName` on a custom environment's OS base and bind the workflow to that environment. Set `propose` to store it as a pre-release such as `1.4.0-rc.1` instead of the next version: pin that to test it, then accept or dismiss it with `environment_snapshot_proposal_accept` or `environment_snapshot_proposal_dismiss`. `public` is for Asteroid staff only. Needs a plan that includes building snapshots and the environment's operating system.",
1753
+ description: "Capture a live OS environment into a reusable snapshot of your organization, and wait for it to finish. The environment must be ready. A browser environment cannot be captured. Capturing under a `displayName` your organization already uses adds the next version to that snapshot. A new snapshot cannot take a shared snapshot's name, such as `linux-base`: choose another `displayName`. A snapshot your organization already has under that name still takes new versions. Windows is imaged with its memory and keeps running. Linux and Citrix are stopped, imaged and started again, which ends the session: `restarted` says so, and the screen is back to its boot state. Takes minutes. Call it once and never retry: a second call captures again and adds another version. If the request gives up or times out, the capture still completes: find its version with `environment_snapshot_get` or `environment_snapshots_list`. Build every snapshot on a base: the shared Windows, Linux or Citrix image, such as `linux-base`. For a new snapshot, boot the base's newest version. To change a snapshot, boot its newest version and capture under the same `displayName`. Never start a new snapshot from another snapshot, your own or shared: its recipe would then depend on that snapshot. Read `environment_current_snapshot` first and edit its recipe. `recipe` is markdown that lets a session with no other context rebuild this exact image on a fresh base: a `## Install` section with the scripted steps as code blocks and any GUI steps as prose, in order, a `## Boot state` section with what is open, signed in and on screen at boot, and optionally `## Notes`. It replaces the old recipe, so cover what the booted image already had. Never write a password, token or other secret in it. `changelog` says in a sentence or two what this capture changed. To boot from the snapshot, set its `name` as `snapshotName` on a custom environment's OS base and bind the workflow to that environment. Set `propose` to store it as a pre-release such as `1.4.0-rc.1` instead of the next version: pin that to test it, then accept or dismiss it with `environment_snapshot_proposal_accept` or `environment_snapshot_proposal_dismiss`. `public` is for Asteroid staff only. Needs a plan that includes building snapshots and the environment's operating system.",
1754
1754
  method: "POST",
1755
1755
  path: "/agents/v2/environments/{environmentId}/snapshot",
1756
1756
  args: [
@@ -3243,7 +3243,7 @@ var COMMANDS = [
3243
3243
  command: "insight-rule update",
3244
3244
  tool: "insight_rule_update",
3245
3245
  title: "Update insight rule",
3246
- description: "Change an insight rule. Send only the fields to change. A rule with `presetKey` keeps its `match`, its `fire` and its params' names and types. `workflows` replaces every workflow's values, so send the full map. Run `insight_rule_validate` before you change an expression.",
3246
+ description: "Change an insight rule. Send only the fields to change. A rule with `presetKey` keeps its `match`, its `fire` and its params' names and types. `workflows` replaces every workflow's values, so send the full map. Run `insight_rule_validate` with this rule's id as `ruleId` before you change an expression.",
3247
3247
  method: "PATCH",
3248
3248
  path: "/astro/v2/insight-rules/{ruleId}",
3249
3249
  args: [
@@ -3353,6 +3353,13 @@ var COMMANDS = [
3353
3353
  required: true,
3354
3354
  contentType: "application/json",
3355
3355
  fields: [
3356
+ {
3357
+ name: "ruleId",
3358
+ flag: "rule-id",
3359
+ type: "string",
3360
+ required: false,
3361
+ description: "The rule this checks a change to. Omit it for a new rule. A client that shows the draft opens this rule to apply it."
3362
+ },
3356
3363
  {
3357
3364
  name: "workflowId",
3358
3365
  flag: "workflow-id",
@@ -9428,7 +9435,7 @@ var ApiError = class extends Error {
9428
9435
  status;
9429
9436
  body;
9430
9437
  };
9431
- var VERSION = "1.9.572";
9438
+ var VERSION = "1.9.577";
9432
9439
  function problem(status, body, fallback) {
9433
9440
  if (body && typeof body === "object") {
9434
9441
  const record2 = body;
package/dist/core.js CHANGED
@@ -637,7 +637,7 @@ var COMMANDS = [
637
637
  flag: "base",
638
638
  type: "json",
639
639
  required: true,
640
- description: "The base machine: a browser, or a Linux, Windows or Citrix desktop, sent as `os` with `osType` or as the desktop type. 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.",
640
+ description: "The base machine: a browser, or a Linux, Windows or Citrix desktop, sent as `os` with `osType` or as the desktop type. An OS base's `snapshotName` must be one of the organisation's snapshots or a public one. Omit it for the default image.",
641
641
  fields: [
642
642
  {
643
643
  name: "type",
@@ -1048,7 +1048,7 @@ var COMMANDS = [
1048
1048
  flag: "base",
1049
1049
  type: "json",
1050
1050
  required: true,
1051
- description: "The base machine: a browser, or a Linux, Windows or Citrix desktop, sent as `os` with `osType` or as the desktop type. 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.",
1051
+ description: "The base machine: a browser, or a Linux, Windows or Citrix desktop, sent as `os` with `osType` or as the desktop type. An OS base's `snapshotName` must be one of the organisation's snapshots or a public one. Omit it for the default image.",
1052
1052
  fields: [
1053
1053
  {
1054
1054
  name: "type",
@@ -1771,7 +1771,7 @@ var COMMANDS = [
1771
1771
  command: "environment snapshot",
1772
1772
  tool: "environment_snapshot",
1773
1773
  title: "Snapshot live environment",
1774
- description: "Capture a live OS environment into a reusable snapshot of your organization, and wait for it to finish. The environment must be ready. A browser environment cannot be captured. Capturing under a `displayName` your organization already uses adds the next version to that snapshot. Windows is imaged with its memory and keeps running. Linux and Citrix are stopped, imaged and started again, which ends the session: `restarted` says so, and the screen is back to its boot state. Takes minutes. Call it once and never retry: a second call captures again and adds another version. If the request gives up or times out, the capture still completes: find its version with `environment_snapshot_get` or `environment_snapshots_list`. Build every snapshot on a base: the shared Windows, Linux or Citrix image, such as `linux-base`. For a new snapshot, boot the base's newest version. To change a snapshot, boot its newest version and capture under the same `displayName`. Never start a new snapshot from another snapshot, your own or shared: its recipe would then depend on that snapshot. Read `environment_current_snapshot` first and edit its recipe. `recipe` is markdown that lets a session with no other context rebuild this exact image on a fresh base: a `## Install` section with the scripted steps as code blocks and any GUI steps as prose, in order, a `## Boot state` section with what is open, signed in and on screen at boot, and optionally `## Notes`. It replaces the old recipe, so cover what the booted image already had. Never write a password, token or other secret in it. `changelog` says in a sentence or two what this capture changed. To boot from the snapshot, set its `name` as `snapshotName` on a custom environment's OS base and bind the workflow to that environment. Set `propose` to store it as a pre-release such as `1.4.0-rc.1` instead of the next version: pin that to test it, then accept or dismiss it with `environment_snapshot_proposal_accept` or `environment_snapshot_proposal_dismiss`. `public` is for Asteroid staff only. Needs a plan that includes building snapshots and the environment's operating system.",
1774
+ description: "Capture a live OS environment into a reusable snapshot of your organization, and wait for it to finish. The environment must be ready. A browser environment cannot be captured. Capturing under a `displayName` your organization already uses adds the next version to that snapshot. A new snapshot cannot take a shared snapshot's name, such as `linux-base`: choose another `displayName`. A snapshot your organization already has under that name still takes new versions. Windows is imaged with its memory and keeps running. Linux and Citrix are stopped, imaged and started again, which ends the session: `restarted` says so, and the screen is back to its boot state. Takes minutes. Call it once and never retry: a second call captures again and adds another version. If the request gives up or times out, the capture still completes: find its version with `environment_snapshot_get` or `environment_snapshots_list`. Build every snapshot on a base: the shared Windows, Linux or Citrix image, such as `linux-base`. For a new snapshot, boot the base's newest version. To change a snapshot, boot its newest version and capture under the same `displayName`. Never start a new snapshot from another snapshot, your own or shared: its recipe would then depend on that snapshot. Read `environment_current_snapshot` first and edit its recipe. `recipe` is markdown that lets a session with no other context rebuild this exact image on a fresh base: a `## Install` section with the scripted steps as code blocks and any GUI steps as prose, in order, a `## Boot state` section with what is open, signed in and on screen at boot, and optionally `## Notes`. It replaces the old recipe, so cover what the booted image already had. Never write a password, token or other secret in it. `changelog` says in a sentence or two what this capture changed. To boot from the snapshot, set its `name` as `snapshotName` on a custom environment's OS base and bind the workflow to that environment. Set `propose` to store it as a pre-release such as `1.4.0-rc.1` instead of the next version: pin that to test it, then accept or dismiss it with `environment_snapshot_proposal_accept` or `environment_snapshot_proposal_dismiss`. `public` is for Asteroid staff only. Needs a plan that includes building snapshots and the environment's operating system.",
1775
1775
  method: "POST",
1776
1776
  path: "/agents/v2/environments/{environmentId}/snapshot",
1777
1777
  args: [
@@ -3264,7 +3264,7 @@ var COMMANDS = [
3264
3264
  command: "insight-rule update",
3265
3265
  tool: "insight_rule_update",
3266
3266
  title: "Update insight rule",
3267
- description: "Change an insight rule. Send only the fields to change. A rule with `presetKey` keeps its `match`, its `fire` and its params' names and types. `workflows` replaces every workflow's values, so send the full map. Run `insight_rule_validate` before you change an expression.",
3267
+ description: "Change an insight rule. Send only the fields to change. A rule with `presetKey` keeps its `match`, its `fire` and its params' names and types. `workflows` replaces every workflow's values, so send the full map. Run `insight_rule_validate` with this rule's id as `ruleId` before you change an expression.",
3268
3268
  method: "PATCH",
3269
3269
  path: "/astro/v2/insight-rules/{ruleId}",
3270
3270
  args: [
@@ -3374,6 +3374,13 @@ var COMMANDS = [
3374
3374
  required: true,
3375
3375
  contentType: "application/json",
3376
3376
  fields: [
3377
+ {
3378
+ name: "ruleId",
3379
+ flag: "rule-id",
3380
+ type: "string",
3381
+ required: false,
3382
+ description: "The rule this checks a change to. Omit it for a new rule. A client that shows the draft opens this rule to apply it."
3383
+ },
3377
3384
  {
3378
3385
  name: "workflowId",
3379
3386
  flag: "workflow-id",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asteroidai/cli",
3
- "version": "1.9.572",
3
+ "version": "1.9.577",
4
4
  "description": "The asteroid command-line interface for the Asteroid platform.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -35,8 +35,8 @@
35
35
  "tsx": "^4.23.12",
36
36
  "typescript": "5.9.3",
37
37
  "vitest": "^4.1.11",
38
- "@asteroid/workflow-files": "0.1.0",
39
- "@workspace/typescript-config": "0.0.0"
38
+ "@workspace/typescript-config": "0.0.0",
39
+ "@asteroid/workflow-files": "0.1.0"
40
40
  },
41
41
  "scripts": {
42
42
  "generate": "tsx scripts/generate.ts && pnpm exec oxfmt src/generated/commands.ts",