@asteroidai/cli 1.9.536 → 1.9.548

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
@@ -923,7 +923,7 @@ var COMMANDS = [
923
923
  command: "custom-environment delete",
924
924
  tool: "custom_environment_delete",
925
925
  title: "Delete custom environment",
926
- description: "Delete a custom environment. Refused while a workflow's published or head version selects it through `settings.default_environment_id`: the environment's `usedBy` lists them, and the error names up to five and counts the rest. Point them at another environment first. Also refused while warm members exist: set `warmPool.targetSize` to 0 first and wait for them to retire.",
926
+ description: "Delete a custom environment. Refused while a workflow's published or head version selects it through `settings.default_environment_id` (the environment's `usedBy`), while a schedule names it in `customEnvironmentId`, enabled or not (`usedBySchedules`), or while a scheduled execution or batch item that names it can still start: pending, awaiting capacity, or in a paused batch (`usedByScheduledExecutions`). The error names up to five of each kind and counts the rest. Point them at another environment, or cancel the scheduled executions, first. Also refused while warm members exist: set `warmPool.targetSize` to 0 first and wait for them to retire.",
927
927
  method: "DELETE",
928
928
  path: "/agents/v2/custom-environments/{customEnvironmentId}",
929
929
  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",
@@ -5015,7 +5262,8 @@ Omitting customEnvironmentId on its own means "leave unchanged".`
5015
5262
  name: "name",
5016
5263
  flag: "name",
5017
5264
  type: "string",
5018
- required: true
5265
+ required: true,
5266
+ description: "A skill name: kebab-case, lowercase letters, digits and hyphens, starting with a letter or digit, at most 64 characters."
5019
5267
  }
5020
5268
  ],
5021
5269
  query: [
@@ -8585,7 +8833,7 @@ var ApiError = class extends Error {
8585
8833
  status;
8586
8834
  body;
8587
8835
  };
8588
- var VERSION = "1.9.536";
8836
+ var VERSION = "1.9.548";
8589
8837
  function problem(status, body, fallback) {
8590
8838
  if (body && typeof body === "object") {
8591
8839
  const record2 = body;
package/dist/core.js CHANGED
@@ -944,7 +944,7 @@ var COMMANDS = [
944
944
  command: "custom-environment delete",
945
945
  tool: "custom_environment_delete",
946
946
  title: "Delete custom environment",
947
- description: "Delete a custom environment. Refused while a workflow's published or head version selects it through `settings.default_environment_id`: the environment's `usedBy` lists them, and the error names up to five and counts the rest. Point them at another environment first. Also refused while warm members exist: set `warmPool.targetSize` to 0 first and wait for them to retire.",
947
+ description: "Delete a custom environment. Refused while a workflow's published or head version selects it through `settings.default_environment_id` (the environment's `usedBy`), while a schedule names it in `customEnvironmentId`, enabled or not (`usedBySchedules`), or while a scheduled execution or batch item that names it can still start: pending, awaiting capacity, or in a paused batch (`usedByScheduledExecutions`). The error names up to five of each kind and counts the rest. Point them at another environment, or cancel the scheduled executions, first. Also refused while warm members exist: set `warmPool.targetSize` to 0 first and wait for them to retire.",
948
948
  method: "DELETE",
949
949
  path: "/agents/v2/custom-environments/{customEnvironmentId}",
950
950
  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",
@@ -5036,7 +5283,8 @@ Omitting customEnvironmentId on its own means "leave unchanged".`
5036
5283
  name: "name",
5037
5284
  flag: "name",
5038
5285
  type: "string",
5039
- required: true
5286
+ required: true,
5287
+ description: "A skill name: kebab-case, lowercase letters, digits and hyphens, starting with a letter or digit, at most 64 characters."
5040
5288
  }
5041
5289
  ],
5042
5290
  query: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asteroidai/cli",
3
- "version": "1.9.536",
3
+ "version": "1.9.548",
4
4
  "description": "The asteroid command-line interface for the Asteroid platform.",
5
5
  "type": "module",
6
6
  "license": "MIT",