@ranger-testing/ranger-cli 2.4.5 → 2.4.7

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 (78) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/agentEnv.js +1 -1
  35. package/build/commands/utils/browserSessionsApi.js +1 -1
  36. package/build/commands/utils/claudeConfig.js +1 -1
  37. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  38. package/build/commands/utils/claudePlugin.js +1 -1
  39. package/build/commands/utils/crypto.js +1 -1
  40. package/build/commands/utils/desirePathLog.js +1 -1
  41. package/build/commands/utils/deviceAuth.js +1 -1
  42. package/build/commands/utils/environment.js +1 -1
  43. package/build/commands/utils/featureApi.js +1 -1
  44. package/build/commands/utils/featureReportGenerator.js +1 -1
  45. package/build/commands/utils/fixWebmDuration.js +1 -1
  46. package/build/commands/utils/git.js +1 -1
  47. package/build/commands/utils/keychain.js +1 -1
  48. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  49. package/build/commands/utils/mcpImageBase64.js +1 -1
  50. package/build/commands/utils/model.js +1 -1
  51. package/build/commands/utils/opencodeConfig.js +1 -1
  52. package/build/commands/utils/playwrightCli.js +1 -1
  53. package/build/commands/utils/profileMessages.js +1 -1
  54. package/build/commands/utils/profileSetupBanner.js +1 -1
  55. package/build/commands/utils/rangerConfig.js +1 -1
  56. package/build/commands/utils/rangerRoot.js +1 -1
  57. package/build/commands/utils/reportGenerator.js +1 -1
  58. package/build/commands/utils/retry.js +1 -1
  59. package/build/commands/utils/sessionCache.js +1 -1
  60. package/build/commands/utils/settings.js +1 -1
  61. package/build/commands/utils/skillContent.js +1 -1
  62. package/build/commands/utils/skills.js +1 -1
  63. package/build/commands/utils/stitchWebmFiles.js +1 -1
  64. package/build/commands/utils/telemetry.js +1 -1
  65. package/build/commands/utils/tokenRefresh.js +1 -1
  66. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  67. package/build/commands/utils/userApi.js +1 -1
  68. package/build/commands/utils/version.js +1 -1
  69. package/build/commands/verifyFeature.js +1 -1
  70. package/build/commands/verifyFeatureCli.js +1 -1
  71. package/build/commands/verifyInBrowser.js +1 -1
  72. package/build/skills/ranger/SKILL.md +38 -41
  73. package/build/skills/ranger/create.md +5 -13
  74. package/build/skills/ranger/feedback.md +3 -3
  75. package/build/skills/ranger/start.md +13 -13
  76. package/build/skills/ranger/verify.md +15 -28
  77. package/package.json +5 -3
  78. package/scripts/postinstall.js +4 -1
@@ -7,13 +7,13 @@ At the START of any coding session that touches the frontend or UI, check if the
7
7
  First, check what feature reviews exist:
8
8
 
9
9
  ```bash
10
- ranger list
10
+ ranger-cli list
11
11
  ```
12
12
 
13
13
  Or filter to the current git branch:
14
14
 
15
15
  ```bash
16
- ranger list --current-branch
16
+ ranger-cli list --current-branch
17
17
  ```
18
18
 
19
19
  This shows feature review names, IDs, status, and branch info.
@@ -23,7 +23,7 @@ This shows feature review names, IDs, status, and branch info.
23
23
  If you find a pertinent feature review to resume:
24
24
 
25
25
  ```bash
26
- ranger resume <id>
26
+ ranger-cli resume <id>
27
27
  ```
28
28
 
29
29
  This command:
@@ -41,7 +41,7 @@ End the conversational turn by sharing the dashboard link whenever you resume a
41
41
  After resuming, view the full status:
42
42
 
43
43
  ```bash
44
- ranger show
44
+ ranger-cli show
45
45
  ```
46
46
 
47
47
  This displays:
@@ -55,7 +55,7 @@ This displays:
55
55
  If any scenarios show comment badges (e.g., `[2 comments]`) or are at v2+, reviewer feedback needs to be addressed:
56
56
 
57
57
  ```bash
58
- ranger get-review
58
+ ranger-cli get-review
59
59
  ```
60
60
 
61
61
  This shows the actual comment content, who wrote it, and the previous version description. **Read [feedback.md](./feedback.md) for the full feedback workflow.**
@@ -65,7 +65,7 @@ This shows the actual comment content, who wrote it, and the previous version de
65
65
  If you need to add new work to an existing feature review:
66
66
 
67
67
  ```bash
68
- ranger add-scenario "User navigates to /settings, clicks 'Edit Profile', updates their display name, clicks Save, sees success toast, refreshes the page, and confirms the new name persists"
68
+ ranger-cli add-scenario "User navigates to /settings, clicks 'Edit Profile', updates their display name, clicks Save, sees success toast, refreshes the page, and confirms the new name persists"
69
69
  ```
70
70
 
71
71
  This adds a new pending scenario to the active feature review. Use this when:
@@ -79,12 +79,12 @@ Scenarios should be **detailed, multi-step E2E flows** that can be verified in a
79
79
 
80
80
  **Bad (too vague):**
81
81
  ```bash
82
- ranger add-scenario "Profile editing works"
82
+ ranger-cli add-scenario "Profile editing works"
83
83
  ```
84
84
 
85
85
  **Good (detailed flow):**
86
86
  ```bash
87
- ranger add-scenario "User goes to /settings, clicks 'Edit Profile' button, changes display name to 'Test User', clicks Save, sees 'Profile updated' success message, refreshes the page, and verifies the name still shows 'Test User'"
87
+ ranger-cli add-scenario "User goes to /settings, clicks 'Edit Profile' button, changes display name to 'Test User', clicks Save, sees 'Profile updated' success message, refreshes the page, and verifies the name still shows 'Test User'"
88
88
  ```
89
89
 
90
90
  **Note:** You cannot add scenarios while a review is in progress.
@@ -95,12 +95,12 @@ ranger add-scenario "User goes to /settings, clicks 'Edit Profile' button, chang
95
95
  Start Session
96
96
 
97
97
 
98
- ranger list
98
+ ranger-cli list
99
99
 
100
- ├── Found pertinent feature review? ──▶ ranger resume <id>
100
+ ├── Found pertinent feature review? ──▶ ranger-cli resume <id>
101
101
  │ │
102
102
  │ ▼
103
- │ ranger show
103
+ │ ranger-cli show
104
104
  │ │
105
105
  │ ▼
106
106
  │ Scenarios have comments?
@@ -118,7 +118,7 @@ ranger list
118
118
 
119
119
  ```bash
120
120
  # Start of session - list feature reviews
121
- $ ranger list
121
+ $ ranger-cli list
122
122
 
123
123
  Showing 3 of 3:
124
124
 
@@ -128,7 +128,7 @@ Showing 3 of 3:
128
128
  Branch: feature/auth
129
129
 
130
130
  # Resume the feature review
131
- $ ranger resume feat_abc123
131
+ $ ranger-cli resume feat_abc123
132
132
 
133
133
  ✅ Resumed feature review: User Authentication (feat_abc123)
134
134
 
@@ -5,7 +5,7 @@ After implementing code for a scenario, verify it works in the browser. This cre
5
5
  ## Basic Command
6
6
 
7
7
  ```bash
8
- ranger go --scenario <N> --notes "<what to verify>"
8
+ ranger-cli go --scenario <N> --notes "<what to verify>"
9
9
  ```
10
10
 
11
11
  The URL is derived from your active profile's `baseUrl` setting.
@@ -15,8 +15,8 @@ The URL is derived from your active profile's `baseUrl` setting.
15
15
  `go` requires an active feature review. If you don't have one:
16
16
 
17
17
  ```bash
18
- ranger list # Find feature reviews to resume
19
- ranger resume <id> # Resume a specific feature review
18
+ ranger-cli list # Find feature reviews to resume
19
+ ranger-cli resume <id> # Resume a specific feature review
20
20
  ```
21
21
 
22
22
  ## The Verification Flow
@@ -67,7 +67,7 @@ If your scenario has a detailed description, you can omit `--notes`:
67
67
 
68
68
  ```bash
69
69
  # Scenario 1: "User can log in with valid credentials - sees loading state - redirects to dashboard"
70
- ranger go --scenario 1
70
+ ranger-cli go --scenario 1
71
71
  ```
72
72
 
73
73
  The scenario description becomes the task automatically.
@@ -92,8 +92,8 @@ Run multiple non-conflicting verifications in parallel using background executio
92
92
  Use Bash with `run_in_background: true`:
93
93
 
94
94
  ```
95
- [Bash: ranger go --scenario 1, run_in_background: true] → task_abc
96
- [Bash: ranger go --scenario 2, run_in_background: true] → task_def
95
+ [Bash: ranger-cli go --scenario 1, run_in_background: true] → task_abc
96
+ [Bash: ranger-cli go --scenario 2, run_in_background: true] → task_def
97
97
  ```
98
98
 
99
99
  Poll with TaskOutput, report results as they complete.
@@ -118,44 +118,31 @@ File watchers (Next.js, Vite) will restart the dev server and break active brows
118
118
  ### Basic Verification
119
119
 
120
120
  ```bash
121
- ranger go \
122
- --scenario 1 \
123
- --notes "Log in with test@example.com / password123, verify redirect to dashboard"
121
+ ranger-cli go --scenario 1 --notes "Log in with test@example.com / password123, verify redirect to dashboard"
124
122
  ```
125
123
 
126
124
  ### Verify Specific Scenario
127
125
 
128
126
  ```bash
129
127
  # Skip the selection prompt, verify scenario 2 directly
130
- ranger go \
131
- --notes "Complete signup flow with new email" \
132
- --scenario 2
128
+ ranger-cli go --notes "Complete signup flow with new email" --scenario 2
133
129
  ```
134
130
 
135
131
  ### Verify with Specific Profile
136
132
 
137
133
  ```bash
138
134
  # Use staging profile instead of active profile
139
- ranger go \
140
- --profile staging \
141
- --scenario 1 \
142
- --notes "Verify login works in staging"
135
+ ranger-cli go --profile staging --scenario 1 --notes "Verify login works in staging"
143
136
  ```
144
137
 
145
138
  ### Start on a Specific Page
146
139
 
147
140
  ```bash
148
141
  # Start verification at /settings instead of base URL
149
- ranger go \
150
- --start-path /settings \
151
- --scenario 1 \
152
- --notes "Verify user can update their profile"
142
+ ranger-cli go --start-path /settings --scenario 1 --notes "Verify user can update their profile"
153
143
 
154
144
  # Start at /admin/users
155
- ranger go \
156
- --start-path /admin/users \
157
- --scenario 2 \
158
- --notes "Verify admin can see user list"
145
+ ranger-cli go --start-path /admin/users --scenario 2 --notes "Verify admin can see user list"
159
146
  ```
160
147
 
161
148
  ## After Verification
@@ -163,7 +150,7 @@ ranger go \
163
150
  Check progress:
164
151
 
165
152
  ```bash
166
- ranger show
153
+ ranger-cli show
167
154
  ```
168
155
 
169
156
  If all non-closed scenarios are verified, the feature review auto-completes:
@@ -184,7 +171,7 @@ Each verification creates:
184
171
 
185
172
  Access evidence via the report or dashboard.
186
173
 
187
- Always end the conversational turn by sharing the dashboard link whenever you run `ranger go`:
174
+ Always end the conversational turn by sharing the dashboard link whenever you run `ranger-cli go ...`:
188
175
 
189
176
  > Here is the link to the Feature Review in Ranger. Leave comments in the dashboard and then resume the feature review in your agent.
190
177
  > https://dashboard.ranger.net/features/{feature_id}
@@ -192,10 +179,10 @@ Always end the conversational turn by sharing the dashboard link whenever you ru
192
179
  ## Troubleshooting
193
180
 
194
181
  ### "No active feature review"
195
- Run `ranger list` to find feature reviews, then `ranger resume <id>` to resume one.
182
+ Run `ranger-cli list` to find feature reviews, then `ranger-cli resume <id>` to resume one.
196
183
 
197
184
  ### "No active profile"
198
- Run `ranger profile use <profile-name>` to set a profile with browser access.
185
+ Run `ranger-cli profile use <profile-name>` to set a profile with browser access.
199
186
 
200
187
  ### Verification times out
201
188
  The agent has 59 minutes max. For very long flows, break into smaller scenarios.
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@ranger-testing/ranger-cli",
3
- "version": "2.4.5",
3
+ "version": "2.4.7",
4
4
  "type": "module",
5
5
  "bin": {
6
- "ranger": "./build/cli.js"
6
+ "ranger": "./build/cli.js",
7
+ "ranger-cli": "./build/cli.js"
7
8
  },
8
9
  "scripts": {
9
10
  "build": "tsc && npm run obfuscate && cp -r src/skills build/ && chmod 755 build/cli.js",
@@ -35,6 +36,7 @@
35
36
  "typescript": "^5.0.0"
36
37
  },
37
38
  "overrides": {
38
- "minimatch": "^10.2.3"
39
+ "minimatch": "^10.2.3",
40
+ "brace-expansion": "^5.0.5"
39
41
  }
40
42
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * Postinstall script for @ranger-testing/ranger-cli
5
- * Displays welcome message and setup instructions after npm install
5
+ * Displays welcome message and setup instructions after npm install.
6
6
  */
7
7
 
8
8
  console.log(`
@@ -12,6 +12,9 @@ Get started:
12
12
  1. Get your API token: https://dashboard.ranger.net/cli
13
13
  2. Run: ranger setup [token]
14
14
 
15
+ If "ranger" conflicts with another program on your system, you can use
16
+ "ranger-cli" or "npx ranger" instead.
17
+
15
18
  For Claude Code, install the plugin in Claude Code:
16
19
  /plugin marketplace add ranger-testing/trailhead
17
20
  /plugin install ranger@trailhead