@currents/cmd 2.3.0 → 3.0.0

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
@@ -4,7 +4,7 @@ CLI tool for [Currents](https://currents.dev) - a cloud platform for debugging,
4
4
 
5
5
  ## Installation
6
6
 
7
- Requires Node.js 20 or later.
7
+ Requires Node.js 22.13 or later.
8
8
 
9
9
  ```sh
10
10
  npm install @currents/cmd --save-dev
@@ -92,6 +92,17 @@ npx currents run attach --key <record-key> --project-id <id> --ci-build-id <buil
92
92
 
93
93
  Without `--spec`, the files are attached to the whole run. For the options, run `npx currents run attach --help`.
94
94
 
95
+ ## Share a run
96
+
97
+ `currents run share` prints a public link to a run, or to one spec file or test of it, and a link to the same content as Markdown. It uses an API key with write access:
98
+
99
+ ```sh
100
+ npx currents run share <run-id>
101
+ npx currents run share <run-id> --instance-id <instance-id> --test-id <test-id> --purpose fix
102
+ ```
103
+
104
+ `--purpose report`, the default, holds every test with its attempts and files, for a person. `--purpose fix` holds the failure context, for an agent fixing the tests. For the options, run `npx currents run share --help`.
105
+
95
106
  ## Cancel a run
96
107
 
97
108
  `currents run cancel` cancels a run in progress, for example when its CI job is cancelled. It uses the record key: