@getmagical/cli 0.14.1 → 0.14.4

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/README.md CHANGED
@@ -98,6 +98,15 @@ immutable automation version:
98
98
  mgcl pathway-regression coverage --automation-version-id <uuid> --org <org> --max-candidate-runs 1000 --runs-per-scenario 2 --max-recording-checks 100 --json
99
99
  ```
100
100
 
101
+ Use `--starting-agent-id <uuid>` to restrict the report to one starting agent and
102
+ its descendants. The ID must identify a top-level agent in the supplied version;
103
+ imported library agent IDs are also accepted. Historical runs are filtered to
104
+ runs started by the selected agent before `--max-candidate-runs` is applied.
105
+ Descendant agent executions within those runs remain included; separately
106
+ started descendant runs are excluded. This works with
107
+ `--ignore-unsupported-agent-types` as well. Omit the option to cover all starting
108
+ agents. The report echoes the filter in `startingAgentId` (`null` when omitted).
109
+
101
110
  The supplied version determines the target scenarios. Compatible historical runs
102
111
  from any version of the same automation can supply examples. Scenario identity
103
112
  uses durable agent pathway keys and required nested calls. Required agents must
@@ -115,8 +124,10 @@ feasibility evaluations, reported with actual evaluations in `targetDiscovery`.
115
124
  This read-only command does not generate definitions,
116
125
  backfill signatures, or start runs.
117
126
 
118
- Only record-mode runs with status `COMPLETE` or `EARLY_TERMINATION` qualify,
119
- including implicit and explicit recordings, with draft/test runs excluded.
127
+ Only record-mode runs with status `COMPLETE` or `EARLY_TERMINATION` and a recorded
128
+ finish timestamp qualify, including implicit and explicit recordings, with
129
+ draft/test runs excluded. Runs missing `finished_at` are excluded even when their
130
+ status indicates completion.
120
131
  `--max-candidate-runs` accepts 1–10,000 and defaults to **1,000**; the limit applies
121
132
  before classification. Compatible signatures identify historical pathways without
122
133
  requiring a deviation-free run. Each historical input must also satisfy the
@@ -547,6 +558,15 @@ organization. The CLI validates identity and necessary permissions before the
547
558
  business request and never retries that request under another key. Organization
548
559
  discovery also rejects configured keys owned by different users.
549
560
 
561
+ Key metadata is cached locally for 10 minutes per API origin, so a burst of
562
+ commands validates each key once. The cache file name is a SHA-256 digest and
563
+ never contains the key. `mgcl auth status`, `mgcl org list`, and `mgcl org use`
564
+ always re-validate. A command re-validates before reporting a missing
565
+ permission, and any request the server rejects with 401 evicts the cached
566
+ metadata. When the server answers 429, mgcl waits for `Retry-After` (or backs
567
+ off 1s, 2s, 4s) and retries up to three times, giving up at once when asked to
568
+ wait longer than 30 seconds.
569
+
550
570
  Use live, sanitized metadata to inspect or choose an organization:
551
571
 
552
572
  ```bash