@asteroidai/cli 1.9.535 → 1.9.547

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
@@ -1369,7 +1369,7 @@ var COMMANDS = [
1369
1369
  command: "environment get",
1370
1370
  tool: "environment_get",
1371
1371
  title: "Get environment",
1372
- description: "Read a running environment by ID: its status and metadata, plus the proxied CDP URL needed to drive it (omitted when the proxy is disabled, or for environments with no browser endpoint). Returns 404 once the environment has stopped or expired.",
1372
+ description: "Read an environment by ID, running or stopped: its status and metadata, plus the proxied CDP URL needed to drive it (omitted when the proxy is disabled, or for environments with no browser endpoint).",
1373
1373
  method: "GET",
1374
1374
  path: "/agents/v2/environments/{environmentId}",
1375
1375
  args: [
@@ -1418,7 +1418,7 @@ var COMMANDS = [
1418
1418
  command: "environment start",
1419
1419
  tool: "environment_start",
1420
1420
  title: "Start live environment",
1421
- description: "Start a live browser or OS environment. Without `source`, you get a browser, or the bound workflow's environment when an Astro chat starts it. Set `source` to `{kind: \"workflow\"}` to use a workflow's environment (needs `workflowId`), or to `{kind: \"spec\"}` to choose a browser or an OS. Optional: `workflowId` binds it to a workflow; `profileId` loads a login profile's secrets. For a browser, `connection.cdpUrl` is a proxied DevTools URL for Playwright's `connectOverCDP`, present once the browser is ready. The environment stops at `expiresAt`; stop it earlier with `environment_stop`.",
1421
+ description: "Start a live browser or OS environment. Without `source`, you get a browser, or the bound workflow's environment when an Astro chat starts it. Set `source` to `{kind: \"workflow\"}` to use a workflow's environment (name it with the top-level `workflowId`, a workflow's id, to use its head, or with `source.workflowVersionId`, a version id), or to `{kind: \"spec\"}` to choose a browser or an OS. Optional: `workflowId` binds it to a workflow; `profileId` loads a login profile's secrets. For a browser, `connection.cdpUrl` is a proxied DevTools URL for Playwright's `connectOverCDP`, present once the browser is ready. The environment stops at `expiresAt`; stop it earlier with `environment_stop`.",
1422
1422
  method: "POST",
1423
1423
  path: "/agents/v2/environments",
1424
1424
  args: [],
@@ -1628,7 +1628,7 @@ var COMMANDS = [
1628
1628
  command: "execution cancel",
1629
1629
  tool: "execution_cancel",
1630
1630
  title: "Cancel execution",
1631
- description: "Cancel an execution. The execution stops and cannot be resumed.",
1631
+ description: "Cancel an execution. The execution stops and cannot be resumed. Cancelling an already cancelled execution succeeds. A `completed` or `failed` execution stays as it is and returns 400: there is nothing to cancel.",
1632
1632
  method: "POST",
1633
1633
  path: "/agents/v2/executions/{executionId}/cancel",
1634
1634
  args: [
@@ -2226,7 +2226,7 @@ var COMMANDS = [
2226
2226
  command: "execution message",
2227
2227
  tool: "execution_user_messages_add",
2228
2228
  title: "Add execution message",
2229
- description: "Send a message to a running or paused execution. The agent reads it as user input. When the agent is waiting for an answer, the message also resumes it. A run waiting on a workflow question (`pause.question` is set) returns 409: answer it with `execution_answer`. To attach files, upload them first with `execution_context_files_upload`, then send the message, as the platform does.",
2229
+ description: "Send a message to a running or paused execution. The agent reads it as user input. Any other status returns 400. For `queued` or `starting`, wait for `running` with `execution_sync` first. `awaiting_confirmation` needs `execution_resume`, not a message. When the agent is waiting for an answer, the message also resumes it. A run waiting on a workflow question (`pause.question` is set) returns 409: answer it with `execution_answer`. To attach files, upload them first with `execution_context_files_upload`, then send the message, as the platform does.",
2230
2230
  method: "POST",
2231
2231
  path: "/agents/v2/executions/{executionId}/user-messages",
2232
2232
  args: [
@@ -2342,7 +2342,7 @@ var COMMANDS = [
2342
2342
  command: "execution rerun",
2343
2343
  tool: "execution_rerun",
2344
2344
  title: "Rerun execution",
2345
- description: "Start a new execution of the same workflow version as the original, with its inputs, profile, metadata and execution options. Pass `inputs` or `profileId` to replace the copied values. Files staged for the original execution are not copied.",
2345
+ description: "Start a new execution of the same workflow version as the original, with its inputs, profile, metadata and execution options. Pass `inputs` or `profileId` to replace the copied values. Files staged for the original execution are not copied. 429 means every login in the profile group is in use, no warm environment is free, or the organization is at its concurrent execution limit: retry once a run ends or the warm pool refills.",
2346
2346
  method: "POST",
2347
2347
  path: "/agents/v2/executions/{executionId}/rerun",
2348
2348
  args: [
@@ -2587,6 +2587,253 @@ var COMMANDS = [
2587
2587
  readOnly: true,
2588
2588
  destructive: false
2589
2589
  },
2590
+ {
2591
+ command: "insight-rule create",
2592
+ tool: "insight_rule_create",
2593
+ title: "Create insight rule",
2594
+ description: "Create an insight rule. `match` is a CEL expression over one finished execution, read as `execution` (`status`, `outcome`, `outputNodeId`, `cancelReason`, `duration` in seconds, `scriptFailures` with `nodeId`, `nodeName`, `scriptFilepath`, `actionId`, `error`) and the rule's `params`. `fire` is one of three patterns: `rate` (a share of executions), `count` (a number of executions) or `trend` (a rise against the period before). Set `workflowId` for one workflow, or omit it for every workflow. Run `insight_rule_validate` first: it checks the rule and shows on which of the last 14 days it would have fired. The rule opens at /insights?tab=rules&rule=<id>.",
2595
+ method: "POST",
2596
+ path: "/astro/v2/insight-rules",
2597
+ args: [],
2598
+ query: [],
2599
+ binary: false,
2600
+ readOnly: false,
2601
+ destructive: false,
2602
+ body: {
2603
+ required: true,
2604
+ contentType: "application/json",
2605
+ fields: [
2606
+ {
2607
+ name: "name",
2608
+ flag: "name",
2609
+ type: "string",
2610
+ required: true
2611
+ },
2612
+ {
2613
+ name: "description",
2614
+ flag: "description",
2615
+ type: "string",
2616
+ required: false
2617
+ },
2618
+ {
2619
+ name: "workflowId",
2620
+ flag: "workflow-id",
2621
+ type: "string",
2622
+ required: false,
2623
+ description: "Apply the rule to one workflow. Omit it for every workflow in the organization."
2624
+ },
2625
+ {
2626
+ name: "match",
2627
+ flag: "match",
2628
+ type: "string",
2629
+ required: true
2630
+ },
2631
+ {
2632
+ name: "params",
2633
+ flag: "params",
2634
+ type: "json",
2635
+ required: false,
2636
+ record: "json"
2637
+ },
2638
+ {
2639
+ name: "fire",
2640
+ flag: "fire",
2641
+ type: "json",
2642
+ required: true,
2643
+ description: "When a rule fires, discriminated by `pattern`."
2644
+ },
2645
+ {
2646
+ name: "enabled",
2647
+ flag: "enabled",
2648
+ type: "boolean",
2649
+ required: false,
2650
+ description: "Defaults to true."
2651
+ }
2652
+ ],
2653
+ files: [],
2654
+ credentialOrganization: false
2655
+ }
2656
+ },
2657
+ {
2658
+ command: "insight-rule delete",
2659
+ tool: "insight_rule_delete",
2660
+ title: "Delete insight rule",
2661
+ description: "Delete an insight rule. Insights it already recorded stay. A rule with `presetKey` cannot be deleted: turn it off with `insight_rule_update`.",
2662
+ method: "DELETE",
2663
+ path: "/astro/v2/insight-rules/{ruleId}",
2664
+ args: [
2665
+ {
2666
+ name: "ruleId",
2667
+ flag: "rule-id",
2668
+ type: "string",
2669
+ required: true
2670
+ }
2671
+ ],
2672
+ query: [],
2673
+ binary: false,
2674
+ readOnly: false,
2675
+ destructive: true
2676
+ },
2677
+ {
2678
+ command: "insight-rule get",
2679
+ tool: "insight_rule_get",
2680
+ title: "Get insight rule",
2681
+ description: "Get one insight rule with its `match`, `params`, `fire` and per-workflow settings.",
2682
+ method: "GET",
2683
+ path: "/astro/v2/insight-rules/{ruleId}",
2684
+ args: [
2685
+ {
2686
+ name: "ruleId",
2687
+ flag: "rule-id",
2688
+ type: "string",
2689
+ required: true
2690
+ }
2691
+ ],
2692
+ query: [],
2693
+ binary: false,
2694
+ readOnly: true,
2695
+ destructive: false
2696
+ },
2697
+ {
2698
+ command: "insight-rule list",
2699
+ tool: "insight_rules_list",
2700
+ title: "List insight rules",
2701
+ description: "List an organization's insight rules. A rule watches finished executions: `match` is a CEL expression that picks the executions that count, and `fire` says how many must count before Astro investigates and records an insight. A rule with `presetKey` is maintained by Asteroid.",
2702
+ method: "GET",
2703
+ path: "/astro/v2/insight-rules",
2704
+ args: [],
2705
+ query: [
2706
+ {
2707
+ name: "pageSize",
2708
+ flag: "page-size",
2709
+ type: "integer",
2710
+ required: false
2711
+ },
2712
+ {
2713
+ name: "page",
2714
+ flag: "page",
2715
+ type: "integer",
2716
+ required: false
2717
+ }
2718
+ ],
2719
+ binary: false,
2720
+ readOnly: true,
2721
+ destructive: false
2722
+ },
2723
+ {
2724
+ command: "insight-rule update",
2725
+ tool: "insight_rule_update",
2726
+ title: "Update insight rule",
2727
+ description: "Change an insight rule. Send only the fields to change. A rule with `presetKey` takes every field but `match`. Run `insight_rule_validate` before you change `match` or `fire`.",
2728
+ method: "PATCH",
2729
+ path: "/astro/v2/insight-rules/{ruleId}",
2730
+ args: [
2731
+ {
2732
+ name: "ruleId",
2733
+ flag: "rule-id",
2734
+ type: "string",
2735
+ required: true
2736
+ }
2737
+ ],
2738
+ query: [],
2739
+ binary: false,
2740
+ readOnly: false,
2741
+ destructive: false,
2742
+ body: {
2743
+ required: true,
2744
+ contentType: "application/json",
2745
+ fields: [
2746
+ {
2747
+ name: "name",
2748
+ flag: "name",
2749
+ type: "string",
2750
+ required: false
2751
+ },
2752
+ {
2753
+ name: "description",
2754
+ flag: "description",
2755
+ type: "string",
2756
+ required: false
2757
+ },
2758
+ {
2759
+ name: "match",
2760
+ flag: "match",
2761
+ type: "string",
2762
+ required: false
2763
+ },
2764
+ {
2765
+ name: "params",
2766
+ flag: "params",
2767
+ type: "json",
2768
+ required: false,
2769
+ record: "json"
2770
+ },
2771
+ {
2772
+ name: "fire",
2773
+ flag: "fire",
2774
+ type: "json",
2775
+ required: false,
2776
+ description: "When a rule fires, discriminated by `pattern`."
2777
+ },
2778
+ {
2779
+ name: "enabled",
2780
+ flag: "enabled",
2781
+ type: "boolean",
2782
+ required: false
2783
+ }
2784
+ ],
2785
+ files: [],
2786
+ credentialOrganization: false
2787
+ }
2788
+ },
2789
+ {
2790
+ command: "insight-rule validate",
2791
+ tool: "insight_rule_validate",
2792
+ title: "Validate insight rule",
2793
+ description: "Check an insight rule before it is saved, and test it against the last 14 days of executions. `valid` is false with an `error` when `match` does not parse, reads a name or field that does not exist, reads a param that `params` lacks, or when `fire` is out of range. When valid, `days` gives each day's finished executions, how many `match` counts, and whether the rule would have fired. Saves nothing.",
2794
+ method: "POST",
2795
+ path: "/astro/v2/insight-rules/validate",
2796
+ args: [],
2797
+ query: [],
2798
+ binary: false,
2799
+ readOnly: true,
2800
+ destructive: false,
2801
+ body: {
2802
+ required: true,
2803
+ contentType: "application/json",
2804
+ fields: [
2805
+ {
2806
+ name: "workflowId",
2807
+ flag: "workflow-id",
2808
+ type: "string",
2809
+ required: false,
2810
+ description: "Test against one workflow. Omit it to test against every workflow in the organization."
2811
+ },
2812
+ {
2813
+ name: "match",
2814
+ flag: "match",
2815
+ type: "string",
2816
+ required: true
2817
+ },
2818
+ {
2819
+ name: "params",
2820
+ flag: "params",
2821
+ type: "json",
2822
+ required: false,
2823
+ record: "json"
2824
+ },
2825
+ {
2826
+ name: "fire",
2827
+ flag: "fire",
2828
+ type: "json",
2829
+ required: true,
2830
+ description: "When a rule fires, discriminated by `pattern`."
2831
+ }
2832
+ ],
2833
+ files: [],
2834
+ credentialOrganization: false
2835
+ }
2836
+ },
2590
2837
  {
2591
2838
  command: "integration create",
2592
2839
  tool: "integration_create",
@@ -5592,7 +5839,7 @@ Omitting customEnvironmentId on its own means "leave unchanged".`
5592
5839
  command: "workflow execute",
5593
5840
  tool: "workflow_execute_post",
5594
5841
  title: "Start workflow execution",
5595
- description: "Start an execution. It runs the published version unless you pass `version` (a version number) or `head: true` (the unpublished editable head). Pass `inputs` for the workflow's input variables (see `workflow_version_inputs_get`), `profileId` or `profileGroupId` for the login, `tempFiles` for staged files, and optional `metadata`. When the organization is at its concurrency limit, `onCapacityLimit: queue` queues the run instead of failing. Returns the `executionId`; follow it with `execution_get`.",
5842
+ description: "Start an execution. It runs the published version unless you pass `version` (a version number) or `head: true` (the unpublished editable head). Pass `inputs` for the workflow's input variables (see `workflow_version_inputs_get`), `profileId` or `profileGroupId` for the login, `tempFiles` for staged files, and optional `metadata`. When the organization is at its concurrency limit, `onCapacityLimit: queue` queues the run instead of failing. Returns the `executionId`; follow the run with `execution_sync`.",
5596
5843
  method: "POST",
5597
5844
  path: "/agents/v2/workflows/{workflowId}/execute",
5598
5845
  args: [
@@ -5710,7 +5957,7 @@ Omitting customEnvironmentId on its own means "leave unchanged".`
5710
5957
  command: "workflow execute-sync",
5711
5958
  tool: "workflow_execute_sync_post",
5712
5959
  title: "Run workflow and wait for the result",
5713
- description: "Start an execution and wait up to `timeoutSeconds` (1-25, default 25) for it to finish. Takes the same body as `workflow_execute_post`. Returns the terminal `status` and `executionResult` when it finishes in time. Otherwise returns `executionId` and the current status: the execution keeps running, so follow it with `execution_get` rather than calling this again, which would start a second execution. Use it for workflows that finish in seconds.",
5960
+ description: "Start an execution and wait up to `timeoutSeconds` (1-25, default 25) for it to finish. Takes the same body as `workflow_execute_post`. Returns the terminal `status` and `executionResult` when it finishes in time. Otherwise returns `executionId` and the current status: the execution keeps running, so follow it with `execution_sync` rather than calling this again, which would start a second execution. Use it for workflows that finish in seconds.",
5714
5961
  method: "POST",
5715
5962
  path: "/agents/v2/workflows/{workflowId}/execute/sync",
5716
5963
  args: [
@@ -6917,7 +7164,7 @@ Omitting customEnvironmentId on its own means "leave unchanged".`
6917
7164
  command: "workflow version execute",
6918
7165
  tool: "workflow_version_execute",
6919
7166
  title: "Execute workflow version",
6920
- description: "Run one version by `versionId`, published or not, to test it before publishing. Takes `inputs`, `profileId` or `profileGroupId`, `tempFiles` and `metadata`, like `workflow_execute_post`.",
7167
+ description: "Run one version by `versionId`, published or not, to test it before publishing. Takes `inputs`, `profileId` or `profileGroupId`, `tempFiles` and `metadata`, like `workflow_execute_post`. 429 means every login in the profile group is in use, no warm environment is free, or the organization is at its concurrent execution limit: the same request works once a run ends or the warm pool refills, so do not retry at once. For a busy profile group, `workflow_execute_post` with `onCapacityLimit: queue` queues a run of the published version, a `version` number or the head, without `tempFiles`.",
6921
7168
  method: "POST",
6922
7169
  path: "/agents/v2/workflows/{workflowId}/versions/{versionId}/execute",
6923
7170
  args: [
@@ -8585,7 +8832,7 @@ var ApiError = class extends Error {
8585
8832
  status;
8586
8833
  body;
8587
8834
  };
8588
- var VERSION = "1.9.535";
8835
+ var VERSION = "1.9.547";
8589
8836
  function problem(status, body, fallback) {
8590
8837
  if (body && typeof body === "object") {
8591
8838
  const record2 = body;
package/dist/core.js CHANGED
@@ -1390,7 +1390,7 @@ var COMMANDS = [
1390
1390
  command: "environment get",
1391
1391
  tool: "environment_get",
1392
1392
  title: "Get environment",
1393
- description: "Read a running environment by ID: its status and metadata, plus the proxied CDP URL needed to drive it (omitted when the proxy is disabled, or for environments with no browser endpoint). Returns 404 once the environment has stopped or expired.",
1393
+ description: "Read an environment by ID, running or stopped: its status and metadata, plus the proxied CDP URL needed to drive it (omitted when the proxy is disabled, or for environments with no browser endpoint).",
1394
1394
  method: "GET",
1395
1395
  path: "/agents/v2/environments/{environmentId}",
1396
1396
  args: [
@@ -1439,7 +1439,7 @@ var COMMANDS = [
1439
1439
  command: "environment start",
1440
1440
  tool: "environment_start",
1441
1441
  title: "Start live environment",
1442
- description: "Start a live browser or OS environment. Without `source`, you get a browser, or the bound workflow's environment when an Astro chat starts it. Set `source` to `{kind: \"workflow\"}` to use a workflow's environment (needs `workflowId`), or to `{kind: \"spec\"}` to choose a browser or an OS. Optional: `workflowId` binds it to a workflow; `profileId` loads a login profile's secrets. For a browser, `connection.cdpUrl` is a proxied DevTools URL for Playwright's `connectOverCDP`, present once the browser is ready. The environment stops at `expiresAt`; stop it earlier with `environment_stop`.",
1442
+ description: "Start a live browser or OS environment. Without `source`, you get a browser, or the bound workflow's environment when an Astro chat starts it. Set `source` to `{kind: \"workflow\"}` to use a workflow's environment (name it with the top-level `workflowId`, a workflow's id, to use its head, or with `source.workflowVersionId`, a version id), or to `{kind: \"spec\"}` to choose a browser or an OS. Optional: `workflowId` binds it to a workflow; `profileId` loads a login profile's secrets. For a browser, `connection.cdpUrl` is a proxied DevTools URL for Playwright's `connectOverCDP`, present once the browser is ready. The environment stops at `expiresAt`; stop it earlier with `environment_stop`.",
1443
1443
  method: "POST",
1444
1444
  path: "/agents/v2/environments",
1445
1445
  args: [],
@@ -1649,7 +1649,7 @@ var COMMANDS = [
1649
1649
  command: "execution cancel",
1650
1650
  tool: "execution_cancel",
1651
1651
  title: "Cancel execution",
1652
- description: "Cancel an execution. The execution stops and cannot be resumed.",
1652
+ description: "Cancel an execution. The execution stops and cannot be resumed. Cancelling an already cancelled execution succeeds. A `completed` or `failed` execution stays as it is and returns 400: there is nothing to cancel.",
1653
1653
  method: "POST",
1654
1654
  path: "/agents/v2/executions/{executionId}/cancel",
1655
1655
  args: [
@@ -2247,7 +2247,7 @@ var COMMANDS = [
2247
2247
  command: "execution message",
2248
2248
  tool: "execution_user_messages_add",
2249
2249
  title: "Add execution message",
2250
- description: "Send a message to a running or paused execution. The agent reads it as user input. When the agent is waiting for an answer, the message also resumes it. A run waiting on a workflow question (`pause.question` is set) returns 409: answer it with `execution_answer`. To attach files, upload them first with `execution_context_files_upload`, then send the message, as the platform does.",
2250
+ description: "Send a message to a running or paused execution. The agent reads it as user input. Any other status returns 400. For `queued` or `starting`, wait for `running` with `execution_sync` first. `awaiting_confirmation` needs `execution_resume`, not a message. When the agent is waiting for an answer, the message also resumes it. A run waiting on a workflow question (`pause.question` is set) returns 409: answer it with `execution_answer`. To attach files, upload them first with `execution_context_files_upload`, then send the message, as the platform does.",
2251
2251
  method: "POST",
2252
2252
  path: "/agents/v2/executions/{executionId}/user-messages",
2253
2253
  args: [
@@ -2363,7 +2363,7 @@ var COMMANDS = [
2363
2363
  command: "execution rerun",
2364
2364
  tool: "execution_rerun",
2365
2365
  title: "Rerun execution",
2366
- description: "Start a new execution of the same workflow version as the original, with its inputs, profile, metadata and execution options. Pass `inputs` or `profileId` to replace the copied values. Files staged for the original execution are not copied.",
2366
+ description: "Start a new execution of the same workflow version as the original, with its inputs, profile, metadata and execution options. Pass `inputs` or `profileId` to replace the copied values. Files staged for the original execution are not copied. 429 means every login in the profile group is in use, no warm environment is free, or the organization is at its concurrent execution limit: retry once a run ends or the warm pool refills.",
2367
2367
  method: "POST",
2368
2368
  path: "/agents/v2/executions/{executionId}/rerun",
2369
2369
  args: [
@@ -2608,6 +2608,253 @@ var COMMANDS = [
2608
2608
  readOnly: true,
2609
2609
  destructive: false
2610
2610
  },
2611
+ {
2612
+ command: "insight-rule create",
2613
+ tool: "insight_rule_create",
2614
+ title: "Create insight rule",
2615
+ description: "Create an insight rule. `match` is a CEL expression over one finished execution, read as `execution` (`status`, `outcome`, `outputNodeId`, `cancelReason`, `duration` in seconds, `scriptFailures` with `nodeId`, `nodeName`, `scriptFilepath`, `actionId`, `error`) and the rule's `params`. `fire` is one of three patterns: `rate` (a share of executions), `count` (a number of executions) or `trend` (a rise against the period before). Set `workflowId` for one workflow, or omit it for every workflow. Run `insight_rule_validate` first: it checks the rule and shows on which of the last 14 days it would have fired. The rule opens at /insights?tab=rules&rule=<id>.",
2616
+ method: "POST",
2617
+ path: "/astro/v2/insight-rules",
2618
+ args: [],
2619
+ query: [],
2620
+ binary: false,
2621
+ readOnly: false,
2622
+ destructive: false,
2623
+ body: {
2624
+ required: true,
2625
+ contentType: "application/json",
2626
+ fields: [
2627
+ {
2628
+ name: "name",
2629
+ flag: "name",
2630
+ type: "string",
2631
+ required: true
2632
+ },
2633
+ {
2634
+ name: "description",
2635
+ flag: "description",
2636
+ type: "string",
2637
+ required: false
2638
+ },
2639
+ {
2640
+ name: "workflowId",
2641
+ flag: "workflow-id",
2642
+ type: "string",
2643
+ required: false,
2644
+ description: "Apply the rule to one workflow. Omit it for every workflow in the organization."
2645
+ },
2646
+ {
2647
+ name: "match",
2648
+ flag: "match",
2649
+ type: "string",
2650
+ required: true
2651
+ },
2652
+ {
2653
+ name: "params",
2654
+ flag: "params",
2655
+ type: "json",
2656
+ required: false,
2657
+ record: "json"
2658
+ },
2659
+ {
2660
+ name: "fire",
2661
+ flag: "fire",
2662
+ type: "json",
2663
+ required: true,
2664
+ description: "When a rule fires, discriminated by `pattern`."
2665
+ },
2666
+ {
2667
+ name: "enabled",
2668
+ flag: "enabled",
2669
+ type: "boolean",
2670
+ required: false,
2671
+ description: "Defaults to true."
2672
+ }
2673
+ ],
2674
+ files: [],
2675
+ credentialOrganization: false
2676
+ }
2677
+ },
2678
+ {
2679
+ command: "insight-rule delete",
2680
+ tool: "insight_rule_delete",
2681
+ title: "Delete insight rule",
2682
+ description: "Delete an insight rule. Insights it already recorded stay. A rule with `presetKey` cannot be deleted: turn it off with `insight_rule_update`.",
2683
+ method: "DELETE",
2684
+ path: "/astro/v2/insight-rules/{ruleId}",
2685
+ args: [
2686
+ {
2687
+ name: "ruleId",
2688
+ flag: "rule-id",
2689
+ type: "string",
2690
+ required: true
2691
+ }
2692
+ ],
2693
+ query: [],
2694
+ binary: false,
2695
+ readOnly: false,
2696
+ destructive: true
2697
+ },
2698
+ {
2699
+ command: "insight-rule get",
2700
+ tool: "insight_rule_get",
2701
+ title: "Get insight rule",
2702
+ description: "Get one insight rule with its `match`, `params`, `fire` and per-workflow settings.",
2703
+ method: "GET",
2704
+ path: "/astro/v2/insight-rules/{ruleId}",
2705
+ args: [
2706
+ {
2707
+ name: "ruleId",
2708
+ flag: "rule-id",
2709
+ type: "string",
2710
+ required: true
2711
+ }
2712
+ ],
2713
+ query: [],
2714
+ binary: false,
2715
+ readOnly: true,
2716
+ destructive: false
2717
+ },
2718
+ {
2719
+ command: "insight-rule list",
2720
+ tool: "insight_rules_list",
2721
+ title: "List insight rules",
2722
+ description: "List an organization's insight rules. A rule watches finished executions: `match` is a CEL expression that picks the executions that count, and `fire` says how many must count before Astro investigates and records an insight. A rule with `presetKey` is maintained by Asteroid.",
2723
+ method: "GET",
2724
+ path: "/astro/v2/insight-rules",
2725
+ args: [],
2726
+ query: [
2727
+ {
2728
+ name: "pageSize",
2729
+ flag: "page-size",
2730
+ type: "integer",
2731
+ required: false
2732
+ },
2733
+ {
2734
+ name: "page",
2735
+ flag: "page",
2736
+ type: "integer",
2737
+ required: false
2738
+ }
2739
+ ],
2740
+ binary: false,
2741
+ readOnly: true,
2742
+ destructive: false
2743
+ },
2744
+ {
2745
+ command: "insight-rule update",
2746
+ tool: "insight_rule_update",
2747
+ title: "Update insight rule",
2748
+ description: "Change an insight rule. Send only the fields to change. A rule with `presetKey` takes every field but `match`. Run `insight_rule_validate` before you change `match` or `fire`.",
2749
+ method: "PATCH",
2750
+ path: "/astro/v2/insight-rules/{ruleId}",
2751
+ args: [
2752
+ {
2753
+ name: "ruleId",
2754
+ flag: "rule-id",
2755
+ type: "string",
2756
+ required: true
2757
+ }
2758
+ ],
2759
+ query: [],
2760
+ binary: false,
2761
+ readOnly: false,
2762
+ destructive: false,
2763
+ body: {
2764
+ required: true,
2765
+ contentType: "application/json",
2766
+ fields: [
2767
+ {
2768
+ name: "name",
2769
+ flag: "name",
2770
+ type: "string",
2771
+ required: false
2772
+ },
2773
+ {
2774
+ name: "description",
2775
+ flag: "description",
2776
+ type: "string",
2777
+ required: false
2778
+ },
2779
+ {
2780
+ name: "match",
2781
+ flag: "match",
2782
+ type: "string",
2783
+ required: false
2784
+ },
2785
+ {
2786
+ name: "params",
2787
+ flag: "params",
2788
+ type: "json",
2789
+ required: false,
2790
+ record: "json"
2791
+ },
2792
+ {
2793
+ name: "fire",
2794
+ flag: "fire",
2795
+ type: "json",
2796
+ required: false,
2797
+ description: "When a rule fires, discriminated by `pattern`."
2798
+ },
2799
+ {
2800
+ name: "enabled",
2801
+ flag: "enabled",
2802
+ type: "boolean",
2803
+ required: false
2804
+ }
2805
+ ],
2806
+ files: [],
2807
+ credentialOrganization: false
2808
+ }
2809
+ },
2810
+ {
2811
+ command: "insight-rule validate",
2812
+ tool: "insight_rule_validate",
2813
+ title: "Validate insight rule",
2814
+ description: "Check an insight rule before it is saved, and test it against the last 14 days of executions. `valid` is false with an `error` when `match` does not parse, reads a name or field that does not exist, reads a param that `params` lacks, or when `fire` is out of range. When valid, `days` gives each day's finished executions, how many `match` counts, and whether the rule would have fired. Saves nothing.",
2815
+ method: "POST",
2816
+ path: "/astro/v2/insight-rules/validate",
2817
+ args: [],
2818
+ query: [],
2819
+ binary: false,
2820
+ readOnly: true,
2821
+ destructive: false,
2822
+ body: {
2823
+ required: true,
2824
+ contentType: "application/json",
2825
+ fields: [
2826
+ {
2827
+ name: "workflowId",
2828
+ flag: "workflow-id",
2829
+ type: "string",
2830
+ required: false,
2831
+ description: "Test against one workflow. Omit it to test against every workflow in the organization."
2832
+ },
2833
+ {
2834
+ name: "match",
2835
+ flag: "match",
2836
+ type: "string",
2837
+ required: true
2838
+ },
2839
+ {
2840
+ name: "params",
2841
+ flag: "params",
2842
+ type: "json",
2843
+ required: false,
2844
+ record: "json"
2845
+ },
2846
+ {
2847
+ name: "fire",
2848
+ flag: "fire",
2849
+ type: "json",
2850
+ required: true,
2851
+ description: "When a rule fires, discriminated by `pattern`."
2852
+ }
2853
+ ],
2854
+ files: [],
2855
+ credentialOrganization: false
2856
+ }
2857
+ },
2611
2858
  {
2612
2859
  command: "integration create",
2613
2860
  tool: "integration_create",
@@ -5613,7 +5860,7 @@ Omitting customEnvironmentId on its own means "leave unchanged".`
5613
5860
  command: "workflow execute",
5614
5861
  tool: "workflow_execute_post",
5615
5862
  title: "Start workflow execution",
5616
- description: "Start an execution. It runs the published version unless you pass `version` (a version number) or `head: true` (the unpublished editable head). Pass `inputs` for the workflow's input variables (see `workflow_version_inputs_get`), `profileId` or `profileGroupId` for the login, `tempFiles` for staged files, and optional `metadata`. When the organization is at its concurrency limit, `onCapacityLimit: queue` queues the run instead of failing. Returns the `executionId`; follow it with `execution_get`.",
5863
+ description: "Start an execution. It runs the published version unless you pass `version` (a version number) or `head: true` (the unpublished editable head). Pass `inputs` for the workflow's input variables (see `workflow_version_inputs_get`), `profileId` or `profileGroupId` for the login, `tempFiles` for staged files, and optional `metadata`. When the organization is at its concurrency limit, `onCapacityLimit: queue` queues the run instead of failing. Returns the `executionId`; follow the run with `execution_sync`.",
5617
5864
  method: "POST",
5618
5865
  path: "/agents/v2/workflows/{workflowId}/execute",
5619
5866
  args: [
@@ -5731,7 +5978,7 @@ Omitting customEnvironmentId on its own means "leave unchanged".`
5731
5978
  command: "workflow execute-sync",
5732
5979
  tool: "workflow_execute_sync_post",
5733
5980
  title: "Run workflow and wait for the result",
5734
- description: "Start an execution and wait up to `timeoutSeconds` (1-25, default 25) for it to finish. Takes the same body as `workflow_execute_post`. Returns the terminal `status` and `executionResult` when it finishes in time. Otherwise returns `executionId` and the current status: the execution keeps running, so follow it with `execution_get` rather than calling this again, which would start a second execution. Use it for workflows that finish in seconds.",
5981
+ description: "Start an execution and wait up to `timeoutSeconds` (1-25, default 25) for it to finish. Takes the same body as `workflow_execute_post`. Returns the terminal `status` and `executionResult` when it finishes in time. Otherwise returns `executionId` and the current status: the execution keeps running, so follow it with `execution_sync` rather than calling this again, which would start a second execution. Use it for workflows that finish in seconds.",
5735
5982
  method: "POST",
5736
5983
  path: "/agents/v2/workflows/{workflowId}/execute/sync",
5737
5984
  args: [
@@ -6938,7 +7185,7 @@ Omitting customEnvironmentId on its own means "leave unchanged".`
6938
7185
  command: "workflow version execute",
6939
7186
  tool: "workflow_version_execute",
6940
7187
  title: "Execute workflow version",
6941
- description: "Run one version by `versionId`, published or not, to test it before publishing. Takes `inputs`, `profileId` or `profileGroupId`, `tempFiles` and `metadata`, like `workflow_execute_post`.",
7188
+ description: "Run one version by `versionId`, published or not, to test it before publishing. Takes `inputs`, `profileId` or `profileGroupId`, `tempFiles` and `metadata`, like `workflow_execute_post`. 429 means every login in the profile group is in use, no warm environment is free, or the organization is at its concurrent execution limit: the same request works once a run ends or the warm pool refills, so do not retry at once. For a busy profile group, `workflow_execute_post` with `onCapacityLimit: queue` queues a run of the published version, a `version` number or the head, without `tempFiles`.",
6942
7189
  method: "POST",
6943
7190
  path: "/agents/v2/workflows/{workflowId}/versions/{versionId}/execute",
6944
7191
  args: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asteroidai/cli",
3
- "version": "1.9.535",
3
+ "version": "1.9.547",
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",