@ranger-testing/ranger-cli 1.0.13 → 1.0.14

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 (72) hide show
  1. package/README.md +28 -65
  2. package/build/cli.js +220 -277
  3. package/build/cli.js.map +1 -1
  4. package/build/commands/addEnv.js +1 -1
  5. package/build/commands/addEnv.js.map +1 -1
  6. package/build/commands/authEncrypt.js +7 -6
  7. package/build/commands/authEncrypt.js.map +1 -1
  8. package/build/commands/clean.js +1 -1
  9. package/build/commands/clean.js.map +1 -1
  10. package/build/commands/config.js +5 -4
  11. package/build/commands/config.js.map +1 -1
  12. package/build/commands/dataMcpServer.js +1 -1
  13. package/build/commands/dataMcpServer.js.map +1 -1
  14. package/build/commands/env.js +17 -10
  15. package/build/commands/env.js.map +1 -1
  16. package/build/commands/feature.js +208 -273
  17. package/build/commands/feature.js.map +1 -1
  18. package/build/commands/index.js +3 -0
  19. package/build/commands/index.js.map +1 -1
  20. package/build/commands/postEditHook.js +25 -0
  21. package/build/commands/postEditHook.js.map +1 -0
  22. package/build/commands/preCompactHook.js +85 -0
  23. package/build/commands/preCompactHook.js.map +1 -0
  24. package/build/commands/sessionStartHook.js +64 -0
  25. package/build/commands/sessionStartHook.js.map +1 -0
  26. package/build/commands/skillup.js +18 -21
  27. package/build/commands/skillup.js.map +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/start.js.map +1 -1
  30. package/build/commands/status.js +30 -44
  31. package/build/commands/status.js.map +1 -1
  32. package/build/commands/update.js +32 -40
  33. package/build/commands/update.js.map +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/updateEnv.js.map +1 -1
  36. package/build/commands/useEnv.js +1 -1
  37. package/build/commands/useEnv.js.map +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/browserSessionsApi.js.map +1 -1
  40. package/build/commands/utils/cliSecret.js +1 -1
  41. package/build/commands/utils/environment.js +0 -6
  42. package/build/commands/utils/environment.js.map +1 -1
  43. package/build/commands/utils/featureApi.js +68 -24
  44. package/build/commands/utils/featureApi.js.map +1 -1
  45. package/build/commands/utils/featureReportGenerator.js +37 -3
  46. package/build/commands/utils/featureReportGenerator.js.map +1 -1
  47. package/build/commands/utils/keychain.js +1 -1
  48. package/build/commands/utils/keychain.js.map +1 -1
  49. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  50. package/build/commands/utils/mcpConfig.js +1 -1
  51. package/build/commands/utils/rangerRoot.js +30 -0
  52. package/build/commands/utils/rangerRoot.js.map +1 -0
  53. package/build/commands/utils/settings.js +7 -5
  54. package/build/commands/utils/settings.js.map +1 -1
  55. package/build/commands/utils/skillContent.js +28 -0
  56. package/build/commands/utils/skillContent.js.map +1 -0
  57. package/build/commands/utils/skills.js +1 -1
  58. package/build/commands/utils/skills.js.map +1 -1
  59. package/build/commands/utils/userApi.js +32 -0
  60. package/build/commands/utils/userApi.js.map +1 -0
  61. package/build/commands/verifyFeature.js +429 -104
  62. package/build/commands/verifyFeature.js.map +1 -1
  63. package/build/commands/verifyInBrowser.js +1 -1
  64. package/build/commands/verifyInBrowser.js.map +1 -1
  65. package/build/skills/bug-bash.md +31 -10
  66. package/build/skills/feature-tracker/SKILL.md +8 -30
  67. package/build/skills/feature-tracker/create.md +47 -38
  68. package/build/skills/feature-tracker/start.md +4 -4
  69. package/build/skills/feature-tracker/verify.md +10 -14
  70. package/package.json +5 -3
  71. package/scripts/postinstall.js +18 -0
  72. package/build/skills/feature-tracker/manage.md +0 -145
package/README.md CHANGED
@@ -10,34 +10,29 @@ npm install -g @ranger-testing/ranger-cli
10
10
 
11
11
  ## Quick Start
12
12
 
13
- 1. Get your API token from [dashboard.ranger.net/settings](https://dashboard.ranger.net/settings)
13
+ Go to [dashboard.ranger.net/cli](https://dashboard.ranger.net/cli) to get started.
14
14
 
15
- 2. Initialize Ranger in your project:
16
- ```bash
17
- ranger start <your-api-token>
18
- ```
15
+ ## Claude Code Plugin
19
16
 
20
- 3. Add an environment (e.g., local, staging, prod):
21
- ```bash
22
- ranger add env local
23
- ```
17
+ For the best experience with Claude Code, install the Ranger plugin. Run these commands **inside Claude Code**:
24
18
 
25
- 4. Install skills for Claude Code (run this in the directory where you want to use Ranger):
26
- ```bash
27
- ranger skillup
28
19
  ```
29
-
30
- 5. Start using Ranger skills in Claude Code! For example:
31
- ```
32
- /bug-bash test the new feature on this branch
33
- /e2e-test-recommender recommend tests for this new feature
20
+ /plugin marketplace add ranger-testing/trailhead
21
+ /plugin install ranger@trailhead
34
22
  ```
35
23
 
24
+ The plugin provides:
25
+ - **Auto-firing hooks** - Automatically loads Ranger context at session start
26
+ - **MCP tools** - Access to Ranger's test management and browser verification tools
27
+ - **Feature tracking** - Track feature development with verifiable checklist items
28
+
29
+ > **Note:** The plugin requires the CLI to be configured. Run `ranger start <token>` in a regular terminal first.
30
+
36
31
  ## Commands
37
32
 
38
33
  ### `ranger start <token>`
39
34
 
40
- Initialize Ranger in your project. Get your token from [dashboard.ranger.net/settings](https://dashboard.ranger.net/settings).
35
+ Initialize Ranger in your project. Get your token from [dashboard.ranger.net/cli](https://dashboard.ranger.net/cli).
41
36
 
42
37
  This command:
43
38
  - Validates your API token
@@ -86,12 +81,12 @@ Switch to a different environment.
86
81
  ranger use staging
87
82
  ```
88
83
 
89
- ### `ranger update env <env-name>`
84
+ ### `ranger env update <env-name>`
90
85
 
91
86
  Update authentication for an existing environment (re-capture cookies/storage).
92
87
 
93
88
  ```bash
94
- ranger update env staging
89
+ ranger env update staging
95
90
  ```
96
91
 
97
92
  ### `ranger update`
@@ -177,16 +172,17 @@ Create a new feature with a checklist. Automatically captures git context (repo
177
172
  ```bash
178
173
  ranger feature create "User Authentication" \
179
174
  --description "Login, signup, and password reset flows" \
180
- --checklist "Login works,Signup creates account,Password reset sends email"
175
+ -c "Login works" \
176
+ -c "Signup creates account" \
177
+ -c "Password reset sends email"
181
178
  ```
182
179
 
183
180
  #### `ranger feature list`
184
181
 
185
- List all features with status.
182
+ List all features with session status.
186
183
 
187
184
  ```bash
188
185
  ranger feature list # All features
189
- ranger feature list --status in_progress
190
186
  ranger feature list --current-branch # Features for current git branch
191
187
  ```
192
188
 
@@ -207,48 +203,15 @@ Set the active feature.
207
203
  ranger feature use feat_abc123
208
204
  ```
209
205
 
210
- #### `ranger feature resume`
211
-
212
- Find and use a feature matching the current git context (repo + branch).
213
-
214
- ```bash
215
- ranger feature resume
216
- ```
206
+ #### `ranger feature resume [id]`
217
207
 
218
- #### `ranger feature block [id]`
208
+ Find and use a feature matching the current git context (repo + branch). If multiple features match, prompts for selection.
219
209
 
220
- Mark a feature as blocked.
210
+ Optionally pass a feature ID to resume directly (bypasses search/prompt - useful for automation).
221
211
 
222
212
  ```bash
223
- ranger feature block --reason "Waiting for API changes"
224
- ```
225
-
226
- #### `ranger feature manage`
227
-
228
- Manage checklist items. Can be used interactively (for humans) or with flags (for agents/automation).
229
-
230
- **Interactive mode** (no flags):
231
- ```bash
232
- ranger feature manage
233
- # Shows menu to add, edit, block, cancel, or reset items
234
- ```
235
-
236
- **Non-interactive mode** (with flags - agent-friendly):
237
- ```bash
238
- # Add a new checklist item
239
- ranger feature manage --add "New checklist item description"
240
-
241
- # Edit an item's description (1-based index)
242
- ranger feature manage --edit 1 --description "Updated description"
243
-
244
- # Block an item with reason
245
- ranger feature manage --block 2 --reason "Bug found in login flow"
246
-
247
- # Cancel an item with reason
248
- ranger feature manage --cancel 3 --reason "Descoped to v2"
249
-
250
- # Reset an item to pending
251
- ranger feature manage --reset 2
213
+ ranger feature resume # Search by git context
214
+ ranger feature resume feat_abc123 # Resume specific feature directly
252
215
  ```
253
216
 
254
217
  #### `ranger feature report [id]`
@@ -267,15 +230,15 @@ Verify a checklist item in the browser. Requires an active feature.
267
230
 
268
231
  ```bash
269
232
  ranger verify-feature \
270
- --url "http://localhost:3000/login" \
271
233
  --task "Log in with valid credentials and verify redirect to dashboard"
272
234
  ```
273
235
 
236
+ The URL is derived from your active environment's `baseUrl` setting.
237
+
274
238
  Options:
275
- - `--url` (required): URL to navigate to
239
+ - `--env`: Environment to use (defaults to active environment)
276
240
  - `--task`: Task description (defaults to checklist item description)
277
241
  - `--item <index>`: Verify specific item by index (1-based)
278
- - `--new-item <description>`: Create and verify a new item
279
242
 
280
243
  ### `ranger clean`
281
244
 
@@ -429,4 +392,4 @@ Run `ranger add env <name>` to configure browser access for an environment.
429
392
 
430
393
  ### Authentication expired
431
394
 
432
- Run `ranger update env <env-name>` to refresh authentication cookies/storage.
395
+ Run `ranger env update <env-name>` to refresh authentication cookies/storage.