@asteroidai/cli 1.9.548 → 1.9.556

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.
Files changed (3) hide show
  1. package/dist/asteroid.js +131 -38
  2. package/dist/core.js +130 -37
  3. package/package.json +1 -1
package/dist/asteroid.js CHANGED
@@ -2591,7 +2591,7 @@ var COMMANDS = [
2591
2591
  command: "insight-rule create",
2592
2592
  tool: "insight_rule_create",
2593
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>.",
2594
+ description: 'Create an insight rule from three CEL expressions. `scope` reads `workflow` (`workflow.id`): `true` for every workflow, `workflow.id in ["<id>"]` for some, `!(workflow.id in ["<id>"])` for all but some. `match` reads one finished `execution` (`status`, `outcome`, `outputNodeId`, `cancelReason`, `duration` in seconds, `scriptFailures` with `nodeId`, `nodeName`, `scriptFilepath`, `actionId`, `error`) and `params`. `fire` reads `window` (the last `lookbackSeconds`) and `baseline` (the `baselineSeconds` before it), each with `total`, `matched`, `rate` and `avg.duration`, and `params`. Put thresholds in `params`, each with a type (`number`, `percent` as a fraction, `text`, `list`): for example `fire` `window.rate >= params.minRate && window.total >= params.minExecutions` with `minRate` percent 0.2 and `minExecutions` number 10. A workflow can change param values for itself in `workflows`. 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
2595
  method: "POST",
2596
2596
  path: "/astro/v2/insight-rules",
2597
2597
  args: [],
@@ -2616,38 +2616,62 @@ var COMMANDS = [
2616
2616
  required: false
2617
2617
  },
2618
2618
  {
2619
- name: "workflowId",
2620
- flag: "workflow-id",
2619
+ name: "enabled",
2620
+ flag: "enabled",
2621
+ type: "boolean",
2622
+ required: false,
2623
+ description: "Defaults to true."
2624
+ },
2625
+ {
2626
+ name: "scope",
2627
+ flag: "scope",
2621
2628
  type: "string",
2622
2629
  required: false,
2623
- description: "Apply the rule to one workflow. Omit it for every workflow in the organization."
2630
+ description: "CEL over `workflow` (`workflow.id`). Which workflows the rule checks. `true`, the default, is every workflow."
2624
2631
  },
2625
2632
  {
2626
2633
  name: "match",
2627
2634
  flag: "match",
2628
2635
  type: "string",
2629
- required: true
2636
+ required: true,
2637
+ description: "CEL over one finished `execution` and `params`. Which executions count."
2638
+ },
2639
+ {
2640
+ name: "fire",
2641
+ flag: "fire",
2642
+ type: "string",
2643
+ required: true,
2644
+ description: "CEL over `window`, `baseline` and `params`. When the rule fires."
2645
+ },
2646
+ {
2647
+ name: "lookbackSeconds",
2648
+ flag: "lookback-seconds",
2649
+ type: "integer",
2650
+ required: true,
2651
+ description: "How far back `window` reaches, in seconds."
2652
+ },
2653
+ {
2654
+ name: "baselineSeconds",
2655
+ flag: "baseline-seconds",
2656
+ type: "integer",
2657
+ required: false,
2658
+ description: "How far back `baseline` reaches before the window, in seconds. 0 leaves `baseline` empty."
2630
2659
  },
2631
2660
  {
2632
2661
  name: "params",
2633
2662
  flag: "params",
2634
2663
  type: "json",
2635
2664
  required: false,
2665
+ description: "The values `match` and `fire` read as `params.<name>`, each with its type.",
2636
2666
  record: "json"
2637
2667
  },
2638
2668
  {
2639
- name: "fire",
2640
- flag: "fire",
2669
+ name: "workflows",
2670
+ flag: "workflows",
2641
2671
  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
2672
  required: false,
2650
- description: "Defaults to true."
2673
+ description: "Per-workflow param values, keyed by workflow ID.",
2674
+ record: "json"
2651
2675
  }
2652
2676
  ],
2653
2677
  files: [],
@@ -2698,7 +2722,7 @@ var COMMANDS = [
2698
2722
  command: "insight-rule list",
2699
2723
  tool: "insight_rules_list",
2700
2724
  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.",
2725
+ description: "List an organization's insight rules. A rule has three CEL expressions: `scope` picks the workflows it checks, `match` picks the finished executions that count, and `fire` says when Astro investigates and records an insight. A rule with `presetKey` is maintained by Asteroid.",
2702
2726
  method: "GET",
2703
2727
  path: "/astro/v2/insight-rules",
2704
2728
  args: [],
@@ -2724,7 +2748,7 @@ var COMMANDS = [
2724
2748
  command: "insight-rule update",
2725
2749
  tool: "insight_rule_update",
2726
2750
  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`.",
2751
+ 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.",
2728
2752
  method: "PATCH",
2729
2753
  path: "/astro/v2/insight-rules/{ruleId}",
2730
2754
  args: [
@@ -2755,31 +2779,63 @@ var COMMANDS = [
2755
2779
  type: "string",
2756
2780
  required: false
2757
2781
  },
2782
+ {
2783
+ name: "enabled",
2784
+ flag: "enabled",
2785
+ type: "boolean",
2786
+ required: false,
2787
+ description: "The master switch. False turns the rule off for every workflow."
2788
+ },
2789
+ {
2790
+ name: "scope",
2791
+ flag: "scope",
2792
+ type: "string",
2793
+ required: false,
2794
+ description: "CEL over `workflow` (`workflow.id`). Which workflows the rule checks. `true` is every workflow."
2795
+ },
2758
2796
  {
2759
2797
  name: "match",
2760
2798
  flag: "match",
2761
2799
  type: "string",
2762
- required: false
2800
+ required: false,
2801
+ description: "CEL over one finished `execution` and `params`. Which executions count."
2802
+ },
2803
+ {
2804
+ name: "fire",
2805
+ flag: "fire",
2806
+ type: "string",
2807
+ required: false,
2808
+ description: "CEL over `window`, `baseline` and `params`. When the rule fires."
2809
+ },
2810
+ {
2811
+ name: "lookbackSeconds",
2812
+ flag: "lookback-seconds",
2813
+ type: "integer",
2814
+ required: false,
2815
+ description: "How far back `window` reaches, in seconds."
2816
+ },
2817
+ {
2818
+ name: "baselineSeconds",
2819
+ flag: "baseline-seconds",
2820
+ type: "integer",
2821
+ required: false,
2822
+ description: "How far back `baseline` reaches before the window, in seconds. 0 leaves `baseline` empty."
2763
2823
  },
2764
2824
  {
2765
2825
  name: "params",
2766
2826
  flag: "params",
2767
2827
  type: "json",
2768
2828
  required: false,
2829
+ description: "The values `match` and `fire` read as `params.<name>`, each with its type.",
2769
2830
  record: "json"
2770
2831
  },
2771
2832
  {
2772
- name: "fire",
2773
- flag: "fire",
2833
+ name: "workflows",
2834
+ flag: "workflows",
2774
2835
  type: "json",
2775
2836
  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
2837
+ description: "Replaces the per-workflow param values, keyed by workflow ID.",
2838
+ record: "json"
2783
2839
  }
2784
2840
  ],
2785
2841
  files: [],
@@ -2790,7 +2846,7 @@ var COMMANDS = [
2790
2846
  command: "insight-rule validate",
2791
2847
  tool: "insight_rule_validate",
2792
2848
  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.",
2849
+ 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 `scope`, `match` or `fire` does not parse, reads a name or field that does not exist, reads a param that `params` lacks, or does not give true or false, or when a param's value does not fit its type. When valid, `days` gives each day's finished executions, how many `match` counts, and whether the rule would have fired. Saves nothing.",
2794
2850
  method: "POST",
2795
2851
  path: "/astro/v2/insight-rules/validate",
2796
2852
  args: [],
@@ -2807,27 +2863,64 @@ var COMMANDS = [
2807
2863
  flag: "workflow-id",
2808
2864
  type: "string",
2809
2865
  required: false,
2810
- description: "Test against one workflow. Omit it to test against every workflow in the organization."
2866
+ description: "Test against one workflow. Omit it to test against every workflow `scope` allows."
2867
+ },
2868
+ {
2869
+ name: "name",
2870
+ flag: "name",
2871
+ type: "string",
2872
+ required: false,
2873
+ description: "The name the rule will have, at most 120 characters. It is not part of the check. A client that shows the draft uses it."
2874
+ },
2875
+ {
2876
+ name: "description",
2877
+ flag: "description",
2878
+ type: "string",
2879
+ required: false,
2880
+ description: "The description the rule will have, at most 2,000 characters. It is not part of the check."
2881
+ },
2882
+ {
2883
+ name: "scope",
2884
+ flag: "scope",
2885
+ type: "string",
2886
+ required: false,
2887
+ description: "CEL over `workflow` (`workflow.id`). Which workflows the rule checks. `true` is every workflow."
2811
2888
  },
2812
2889
  {
2813
2890
  name: "match",
2814
2891
  flag: "match",
2815
2892
  type: "string",
2816
- required: true
2893
+ required: true,
2894
+ description: "CEL over one finished `execution` and `params`. Which executions count."
2895
+ },
2896
+ {
2897
+ name: "fire",
2898
+ flag: "fire",
2899
+ type: "string",
2900
+ required: true,
2901
+ description: "CEL over `window`, `baseline` and `params`. When the rule fires."
2902
+ },
2903
+ {
2904
+ name: "lookbackSeconds",
2905
+ flag: "lookback-seconds",
2906
+ type: "integer",
2907
+ required: true,
2908
+ description: "How far back `window` reaches, in seconds."
2909
+ },
2910
+ {
2911
+ name: "baselineSeconds",
2912
+ flag: "baseline-seconds",
2913
+ type: "integer",
2914
+ required: false,
2915
+ description: "How far back `baseline` reaches before the window, in seconds. 0 leaves `baseline` empty."
2817
2916
  },
2818
2917
  {
2819
2918
  name: "params",
2820
2919
  flag: "params",
2821
2920
  type: "json",
2822
2921
  required: false,
2922
+ description: "The values `match` and `fire` read as `params.<name>`, each with its type.",
2823
2923
  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
2924
  }
2832
2925
  ],
2833
2926
  files: [],
@@ -8833,7 +8926,7 @@ var ApiError = class extends Error {
8833
8926
  status;
8834
8927
  body;
8835
8928
  };
8836
- var VERSION = "1.9.548";
8929
+ var VERSION = "1.9.556";
8837
8930
  function problem(status, body, fallback) {
8838
8931
  if (body && typeof body === "object") {
8839
8932
  const record2 = body;
package/dist/core.js CHANGED
@@ -2612,7 +2612,7 @@ var COMMANDS = [
2612
2612
  command: "insight-rule create",
2613
2613
  tool: "insight_rule_create",
2614
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>.",
2615
+ description: 'Create an insight rule from three CEL expressions. `scope` reads `workflow` (`workflow.id`): `true` for every workflow, `workflow.id in ["<id>"]` for some, `!(workflow.id in ["<id>"])` for all but some. `match` reads one finished `execution` (`status`, `outcome`, `outputNodeId`, `cancelReason`, `duration` in seconds, `scriptFailures` with `nodeId`, `nodeName`, `scriptFilepath`, `actionId`, `error`) and `params`. `fire` reads `window` (the last `lookbackSeconds`) and `baseline` (the `baselineSeconds` before it), each with `total`, `matched`, `rate` and `avg.duration`, and `params`. Put thresholds in `params`, each with a type (`number`, `percent` as a fraction, `text`, `list`): for example `fire` `window.rate >= params.minRate && window.total >= params.minExecutions` with `minRate` percent 0.2 and `minExecutions` number 10. A workflow can change param values for itself in `workflows`. 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
2616
  method: "POST",
2617
2617
  path: "/astro/v2/insight-rules",
2618
2618
  args: [],
@@ -2637,38 +2637,62 @@ var COMMANDS = [
2637
2637
  required: false
2638
2638
  },
2639
2639
  {
2640
- name: "workflowId",
2641
- flag: "workflow-id",
2640
+ name: "enabled",
2641
+ flag: "enabled",
2642
+ type: "boolean",
2643
+ required: false,
2644
+ description: "Defaults to true."
2645
+ },
2646
+ {
2647
+ name: "scope",
2648
+ flag: "scope",
2642
2649
  type: "string",
2643
2650
  required: false,
2644
- description: "Apply the rule to one workflow. Omit it for every workflow in the organization."
2651
+ description: "CEL over `workflow` (`workflow.id`). Which workflows the rule checks. `true`, the default, is every workflow."
2645
2652
  },
2646
2653
  {
2647
2654
  name: "match",
2648
2655
  flag: "match",
2649
2656
  type: "string",
2650
- required: true
2657
+ required: true,
2658
+ description: "CEL over one finished `execution` and `params`. Which executions count."
2659
+ },
2660
+ {
2661
+ name: "fire",
2662
+ flag: "fire",
2663
+ type: "string",
2664
+ required: true,
2665
+ description: "CEL over `window`, `baseline` and `params`. When the rule fires."
2666
+ },
2667
+ {
2668
+ name: "lookbackSeconds",
2669
+ flag: "lookback-seconds",
2670
+ type: "integer",
2671
+ required: true,
2672
+ description: "How far back `window` reaches, in seconds."
2673
+ },
2674
+ {
2675
+ name: "baselineSeconds",
2676
+ flag: "baseline-seconds",
2677
+ type: "integer",
2678
+ required: false,
2679
+ description: "How far back `baseline` reaches before the window, in seconds. 0 leaves `baseline` empty."
2651
2680
  },
2652
2681
  {
2653
2682
  name: "params",
2654
2683
  flag: "params",
2655
2684
  type: "json",
2656
2685
  required: false,
2686
+ description: "The values `match` and `fire` read as `params.<name>`, each with its type.",
2657
2687
  record: "json"
2658
2688
  },
2659
2689
  {
2660
- name: "fire",
2661
- flag: "fire",
2690
+ name: "workflows",
2691
+ flag: "workflows",
2662
2692
  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
2693
  required: false,
2671
- description: "Defaults to true."
2694
+ description: "Per-workflow param values, keyed by workflow ID.",
2695
+ record: "json"
2672
2696
  }
2673
2697
  ],
2674
2698
  files: [],
@@ -2719,7 +2743,7 @@ var COMMANDS = [
2719
2743
  command: "insight-rule list",
2720
2744
  tool: "insight_rules_list",
2721
2745
  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.",
2746
+ description: "List an organization's insight rules. A rule has three CEL expressions: `scope` picks the workflows it checks, `match` picks the finished executions that count, and `fire` says when Astro investigates and records an insight. A rule with `presetKey` is maintained by Asteroid.",
2723
2747
  method: "GET",
2724
2748
  path: "/astro/v2/insight-rules",
2725
2749
  args: [],
@@ -2745,7 +2769,7 @@ var COMMANDS = [
2745
2769
  command: "insight-rule update",
2746
2770
  tool: "insight_rule_update",
2747
2771
  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`.",
2772
+ 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.",
2749
2773
  method: "PATCH",
2750
2774
  path: "/astro/v2/insight-rules/{ruleId}",
2751
2775
  args: [
@@ -2776,31 +2800,63 @@ var COMMANDS = [
2776
2800
  type: "string",
2777
2801
  required: false
2778
2802
  },
2803
+ {
2804
+ name: "enabled",
2805
+ flag: "enabled",
2806
+ type: "boolean",
2807
+ required: false,
2808
+ description: "The master switch. False turns the rule off for every workflow."
2809
+ },
2810
+ {
2811
+ name: "scope",
2812
+ flag: "scope",
2813
+ type: "string",
2814
+ required: false,
2815
+ description: "CEL over `workflow` (`workflow.id`). Which workflows the rule checks. `true` is every workflow."
2816
+ },
2779
2817
  {
2780
2818
  name: "match",
2781
2819
  flag: "match",
2782
2820
  type: "string",
2783
- required: false
2821
+ required: false,
2822
+ description: "CEL over one finished `execution` and `params`. Which executions count."
2823
+ },
2824
+ {
2825
+ name: "fire",
2826
+ flag: "fire",
2827
+ type: "string",
2828
+ required: false,
2829
+ description: "CEL over `window`, `baseline` and `params`. When the rule fires."
2830
+ },
2831
+ {
2832
+ name: "lookbackSeconds",
2833
+ flag: "lookback-seconds",
2834
+ type: "integer",
2835
+ required: false,
2836
+ description: "How far back `window` reaches, in seconds."
2837
+ },
2838
+ {
2839
+ name: "baselineSeconds",
2840
+ flag: "baseline-seconds",
2841
+ type: "integer",
2842
+ required: false,
2843
+ description: "How far back `baseline` reaches before the window, in seconds. 0 leaves `baseline` empty."
2784
2844
  },
2785
2845
  {
2786
2846
  name: "params",
2787
2847
  flag: "params",
2788
2848
  type: "json",
2789
2849
  required: false,
2850
+ description: "The values `match` and `fire` read as `params.<name>`, each with its type.",
2790
2851
  record: "json"
2791
2852
  },
2792
2853
  {
2793
- name: "fire",
2794
- flag: "fire",
2854
+ name: "workflows",
2855
+ flag: "workflows",
2795
2856
  type: "json",
2796
2857
  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
2858
+ description: "Replaces the per-workflow param values, keyed by workflow ID.",
2859
+ record: "json"
2804
2860
  }
2805
2861
  ],
2806
2862
  files: [],
@@ -2811,7 +2867,7 @@ var COMMANDS = [
2811
2867
  command: "insight-rule validate",
2812
2868
  tool: "insight_rule_validate",
2813
2869
  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.",
2870
+ 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 `scope`, `match` or `fire` does not parse, reads a name or field that does not exist, reads a param that `params` lacks, or does not give true or false, or when a param's value does not fit its type. When valid, `days` gives each day's finished executions, how many `match` counts, and whether the rule would have fired. Saves nothing.",
2815
2871
  method: "POST",
2816
2872
  path: "/astro/v2/insight-rules/validate",
2817
2873
  args: [],
@@ -2828,27 +2884,64 @@ var COMMANDS = [
2828
2884
  flag: "workflow-id",
2829
2885
  type: "string",
2830
2886
  required: false,
2831
- description: "Test against one workflow. Omit it to test against every workflow in the organization."
2887
+ description: "Test against one workflow. Omit it to test against every workflow `scope` allows."
2888
+ },
2889
+ {
2890
+ name: "name",
2891
+ flag: "name",
2892
+ type: "string",
2893
+ required: false,
2894
+ description: "The name the rule will have, at most 120 characters. It is not part of the check. A client that shows the draft uses it."
2895
+ },
2896
+ {
2897
+ name: "description",
2898
+ flag: "description",
2899
+ type: "string",
2900
+ required: false,
2901
+ description: "The description the rule will have, at most 2,000 characters. It is not part of the check."
2902
+ },
2903
+ {
2904
+ name: "scope",
2905
+ flag: "scope",
2906
+ type: "string",
2907
+ required: false,
2908
+ description: "CEL over `workflow` (`workflow.id`). Which workflows the rule checks. `true` is every workflow."
2832
2909
  },
2833
2910
  {
2834
2911
  name: "match",
2835
2912
  flag: "match",
2836
2913
  type: "string",
2837
- required: true
2914
+ required: true,
2915
+ description: "CEL over one finished `execution` and `params`. Which executions count."
2916
+ },
2917
+ {
2918
+ name: "fire",
2919
+ flag: "fire",
2920
+ type: "string",
2921
+ required: true,
2922
+ description: "CEL over `window`, `baseline` and `params`. When the rule fires."
2923
+ },
2924
+ {
2925
+ name: "lookbackSeconds",
2926
+ flag: "lookback-seconds",
2927
+ type: "integer",
2928
+ required: true,
2929
+ description: "How far back `window` reaches, in seconds."
2930
+ },
2931
+ {
2932
+ name: "baselineSeconds",
2933
+ flag: "baseline-seconds",
2934
+ type: "integer",
2935
+ required: false,
2936
+ description: "How far back `baseline` reaches before the window, in seconds. 0 leaves `baseline` empty."
2838
2937
  },
2839
2938
  {
2840
2939
  name: "params",
2841
2940
  flag: "params",
2842
2941
  type: "json",
2843
2942
  required: false,
2943
+ description: "The values `match` and `fire` read as `params.<name>`, each with its type.",
2844
2944
  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
2945
  }
2853
2946
  ],
2854
2947
  files: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asteroidai/cli",
3
- "version": "1.9.548",
3
+ "version": "1.9.556",
4
4
  "description": "The asteroid command-line interface for the Asteroid platform.",
5
5
  "type": "module",
6
6
  "license": "MIT",