@ranger-testing/ranger-cli 1.1.7 → 2.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 +47 -45
- package/build/cli.js +644 -277
- package/build/cli.js.map +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/addEnv.js.map +1 -1
- package/build/commands/authEncrypt.js +5 -10
- package/build/commands/authEncrypt.js.map +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/clean.js.map +1 -1
- package/build/commands/config.js +9 -15
- package/build/commands/config.js.map +1 -1
- package/build/commands/env.js +10 -13
- package/build/commands/env.js.map +1 -1
- package/build/commands/feature.js +138 -67
- package/build/commands/feature.js.map +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +9 -4
- package/build/commands/hooks/enable.js.map +1 -1
- package/build/commands/hooks/exitPlanMode.js +8 -8
- package/build/commands/hooks/planReminder.js +7 -7
- package/build/commands/hooks/planStart.js +4 -4
- package/build/commands/hooks/postEdit.js +4 -4
- package/build/commands/hooks/postEdit.js.map +1 -1
- package/build/commands/hooks/preCompact.js +3 -3
- package/build/commands/hooks/preCompact.js.map +1 -1
- package/build/commands/hooks/sessionStart.js +19 -5
- package/build/commands/hooks/sessionStart.js.map +1 -1
- package/build/commands/hooks/stopHook.js +28 -4
- package/build/commands/hooks/stopHook.js.map +1 -1
- package/build/commands/index.js +1 -2
- package/build/commands/index.js.map +1 -1
- package/build/commands/login.js +2 -5
- package/build/commands/login.js.map +1 -1
- package/build/commands/setupCi.js +189 -0
- package/build/commands/setupCi.js.map +1 -0
- package/build/commands/skillup.js +16 -68
- package/build/commands/skillup.js.map +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/start.js.map +1 -1
- package/build/commands/status.js +14 -13
- package/build/commands/status.js.map +1 -1
- package/build/commands/update.js +34 -5
- package/build/commands/update.js.map +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/updateEnv.js.map +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/useEnv.js.map +1 -1
- package/build/commands/utils/activeProfile.js +76 -0
- package/build/commands/utils/activeProfile.js.map +1 -0
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/browserSessionsApi.js.map +1 -1
- package/build/commands/utils/deviceAuth.js +53 -5
- package/build/commands/utils/deviceAuth.js.map +1 -1
- package/build/commands/utils/environment.js +11 -12
- package/build/commands/utils/environment.js.map +1 -1
- package/build/commands/utils/featureApi.js +30 -30
- package/build/commands/utils/featureApi.js.map +1 -1
- package/build/commands/utils/featureReportGenerator.js +6 -6
- package/build/commands/utils/featureReportGenerator.js.map +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/profileMessages.js +8 -0
- package/build/commands/utils/profileMessages.js.map +1 -0
- package/build/commands/utils/profileSetupBanner.js +167 -0
- package/build/commands/utils/profileSetupBanner.js.map +1 -0
- package/build/commands/utils/settings.js +20 -2
- package/build/commands/utils/settings.js.map +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/telemetry.js +254 -0
- package/build/commands/utils/telemetry.js.map +1 -0
- package/build/commands/utils/userApi.js +4 -4
- package/build/commands/utils/userApi.js.map +1 -1
- package/build/commands/verifyFeature.js +771 -526
- package/build/commands/verifyFeature.js.map +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/build/commands/verifyInBrowser.js.map +1 -1
- package/build/skills/ranger/SKILL.md +65 -64
- package/build/skills/ranger/create.md +31 -31
- package/build/skills/ranger/feedback.md +25 -17
- package/build/skills/ranger/start.md +37 -37
- package/build/skills/ranger/verify.md +59 -55
- package/package.json +1 -1
- package/scripts/postinstall.js +1 -1
- package/build/commands/dataMcpServer.js +0 -1
- package/build/commands/dataMcpServer.js.map +0 -1
- package/build/commands/utils/cliSecret.js +0 -1
- package/build/commands/utils/cliSecret.js.map +0 -1
- package/build/skills/bug-bash.md +0 -329
- package/build/skills/e2e-test-recommender.md +0 -168
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
# Starting a Feature Session
|
|
1
|
+
# Starting a Feature Review Session
|
|
2
2
|
|
|
3
|
-
At the START of any coding session, check if there's an existing feature to resume before creating a new one.
|
|
3
|
+
At the START of any coding session, check if there's an existing feature review to resume before creating a new one.
|
|
4
4
|
|
|
5
|
-
## List
|
|
5
|
+
## List Feature Reviews
|
|
6
6
|
|
|
7
|
-
First, check what
|
|
7
|
+
First, check what feature reviews exist:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
ranger
|
|
10
|
+
ranger list
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Or filter to the current git branch:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
ranger
|
|
16
|
+
ranger list --current-branch
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
This shows feature names, IDs, status, and branch info.
|
|
19
|
+
This shows feature review names, IDs, status, and branch info.
|
|
20
20
|
|
|
21
|
-
## Resume a Feature
|
|
21
|
+
## Resume a Feature Review
|
|
22
22
|
|
|
23
|
-
If you find a pertinent feature to resume:
|
|
23
|
+
If you find a pertinent feature review to resume:
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
ranger
|
|
26
|
+
ranger resume <id>
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
This command:
|
|
30
|
-
1. Sets the feature as active
|
|
30
|
+
1. Sets the feature review as active
|
|
31
31
|
2. Starts the session if it's in `ready` status
|
|
32
|
-
3. Displays the feature with its
|
|
32
|
+
3. Displays the feature review with its scenarios
|
|
33
33
|
|
|
34
34
|
## Check Current Status
|
|
35
35
|
|
|
36
36
|
After resuming, view the full status:
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
ranger
|
|
39
|
+
ranger show
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
This displays:
|
|
43
|
-
- Feature name and ID
|
|
43
|
+
- Feature review name and ID
|
|
44
44
|
- Current status (in_progress, blocked, completed)
|
|
45
45
|
- Git context (repo, branch)
|
|
46
|
-
-
|
|
46
|
+
- Scenarios with status indicators
|
|
47
47
|
|
|
48
48
|
## Check for Reviewer Feedback
|
|
49
49
|
|
|
50
|
-
If any
|
|
50
|
+
If any scenarios show comment badges (e.g., `[2 comments]`) or are at v2+, reviewer feedback needs to be addressed:
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
|
-
ranger
|
|
53
|
+
ranger get-review
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
This shows the actual comment content, who wrote it, and the previous version description. **Read [feedback.md](./feedback.md) for the full feedback workflow.**
|
|
57
57
|
|
|
58
|
-
## Add
|
|
58
|
+
## Add Scenarios
|
|
59
59
|
|
|
60
|
-
If you need to add new work to an existing feature:
|
|
60
|
+
If you need to add new work to an existing feature review:
|
|
61
61
|
|
|
62
62
|
```bash
|
|
63
|
-
ranger
|
|
63
|
+
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"
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
This adds a new pending
|
|
66
|
+
This adds a new pending scenario to the active feature review. Use this when:
|
|
67
67
|
- The scope of work has expanded
|
|
68
68
|
- You discover additional scenarios to verify
|
|
69
69
|
- A review requested additional coverage
|
|
70
70
|
|
|
71
|
-
### Writing Good
|
|
71
|
+
### Writing Good Scenarios
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
Scenarios should be **detailed, multi-step E2E flows** that can be verified in a browser:
|
|
74
74
|
|
|
75
75
|
**Bad (too vague):**
|
|
76
76
|
```bash
|
|
77
|
-
ranger
|
|
77
|
+
ranger add-scenario "Profile editing works"
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
**Good (detailed flow):**
|
|
81
81
|
```bash
|
|
82
|
-
ranger
|
|
82
|
+
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'"
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
**Note:** You cannot add
|
|
85
|
+
**Note:** You cannot add scenarios while a review is in progress.
|
|
86
86
|
|
|
87
87
|
## Decision Tree
|
|
88
88
|
|
|
@@ -90,20 +90,20 @@ ranger feature add-checklist-item "User goes to /settings, clicks 'Edit Profile'
|
|
|
90
90
|
Start Session
|
|
91
91
|
│
|
|
92
92
|
▼
|
|
93
|
-
ranger
|
|
93
|
+
ranger list
|
|
94
94
|
│
|
|
95
|
-
├── Found pertinent feature? ──▶ ranger
|
|
95
|
+
├── Found pertinent feature review? ──▶ ranger resume <id>
|
|
96
96
|
│ │
|
|
97
97
|
│ ▼
|
|
98
|
-
│ ranger
|
|
98
|
+
│ ranger show
|
|
99
99
|
│ │
|
|
100
100
|
│ ▼
|
|
101
|
-
│
|
|
101
|
+
│ Scenarios have comments?
|
|
102
102
|
│ │ │
|
|
103
103
|
│ YES NO
|
|
104
104
|
│ │ │
|
|
105
105
|
│ ▼ ▼
|
|
106
|
-
│ get-
|
|
106
|
+
│ get-review Continue working
|
|
107
107
|
│ fix + verify
|
|
108
108
|
│
|
|
109
109
|
└── None exist? ──▶ See create.md
|
|
@@ -112,8 +112,8 @@ ranger feature list
|
|
|
112
112
|
## Example
|
|
113
113
|
|
|
114
114
|
```bash
|
|
115
|
-
# Start of session - list
|
|
116
|
-
$ ranger
|
|
115
|
+
# Start of session - list feature reviews
|
|
116
|
+
$ ranger list
|
|
117
117
|
|
|
118
118
|
Showing 3 of 3:
|
|
119
119
|
|
|
@@ -122,16 +122,16 @@ Showing 3 of 3:
|
|
|
122
122
|
Dev Status: In Progress
|
|
123
123
|
Branch: feature/auth
|
|
124
124
|
|
|
125
|
-
# Resume the feature
|
|
126
|
-
$ ranger
|
|
125
|
+
# Resume the feature review
|
|
126
|
+
$ ranger resume feat_abc123
|
|
127
127
|
|
|
128
|
-
✅ Resumed feature: User Authentication (feat_abc123)
|
|
128
|
+
✅ Resumed feature review: User Authentication (feat_abc123)
|
|
129
129
|
|
|
130
130
|
🔄 User Authentication (feat_abc123)
|
|
131
131
|
Dev Status: In Progress
|
|
132
132
|
Branch: feature/auth
|
|
133
133
|
|
|
134
|
-
|
|
134
|
+
Scenarios:
|
|
135
135
|
1. ✅ Login flow works
|
|
136
136
|
2. ⬜ Signup creates account
|
|
137
137
|
3. ⬜ Password reset sends email
|
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
# Verifying
|
|
1
|
+
# Verifying Scenarios
|
|
2
2
|
|
|
3
|
-
After implementing code for a
|
|
3
|
+
After implementing code for a scenario, verify it works in the browser. This creates evidence (screenshots, traces, logs) that the implementation is complete.
|
|
4
4
|
|
|
5
5
|
## Basic Command
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
ranger
|
|
8
|
+
ranger go --scenario <N> --notes "<what to verify>"
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
The URL is derived from your active
|
|
11
|
+
The URL is derived from your active profile's `baseUrl` setting.
|
|
12
12
|
|
|
13
|
-
## Required: Active Feature
|
|
13
|
+
## Required: Active Feature Review
|
|
14
14
|
|
|
15
|
-
`
|
|
15
|
+
`go` requires an active feature review. If you don't have one:
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
ranger
|
|
19
|
-
ranger
|
|
18
|
+
ranger list # Find feature reviews to resume
|
|
19
|
+
ranger resume <id> # Resume a specific feature review
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## The Verification Flow
|
|
23
23
|
|
|
24
|
-
1. **Select
|
|
25
|
-
2. **Fetch reviewer feedback** - If the
|
|
24
|
+
1. **Select scenario** - CLI prompts which scenario this verifies
|
|
25
|
+
2. **Fetch reviewer feedback** - If the scenario has unaddressed comments or a parent scenario, reviewer comments are automatically injected into the verification prompt
|
|
26
26
|
3. **Run browser verification** - Agent executes the task in a real browser
|
|
27
|
-
4. **Evaluate results** - Agent determines if the
|
|
28
|
-
5. **Update status** -
|
|
29
|
-
6. **Link evidence** - Session trace is attached to the
|
|
27
|
+
4. **Evaluate results** - Agent determines if the scenario is satisfied (including whether reviewer concerns were addressed)
|
|
28
|
+
5. **Update status** - Scenario is marked verified, partial, blocked, or failed
|
|
29
|
+
6. **Link evidence** - Session trace is attached to the scenario
|
|
30
30
|
|
|
31
31
|
### Reviewer Feedback Auto-Injection
|
|
32
32
|
|
|
33
|
-
When verifying
|
|
33
|
+
When verifying scenarios that have reviewer comments (v2+ scenarios or scenarios with unaddressed comments), the verification agent automatically receives a **"Reviewer Feedback to Address"** section in its prompt. This includes:
|
|
34
34
|
- Each reviewer comment with author and date
|
|
35
35
|
- The previous version's description
|
|
36
36
|
- The canonical flow from prior verification (if available)
|
|
37
37
|
|
|
38
|
-
You do NOT need to manually include reviewer feedback in your `--
|
|
38
|
+
You do NOT need to manually include reviewer feedback in your `--notes` description — it's handled automatically. Just make sure you've addressed the feedback in your code before verifying.
|
|
39
39
|
|
|
40
40
|
## Options
|
|
41
41
|
|
|
42
42
|
| Option | Required | Description |
|
|
43
43
|
|--------|----------|-------------|
|
|
44
|
-
| `--
|
|
45
|
-
| `--
|
|
46
|
-
| `--
|
|
44
|
+
| `--profile` | No | Profile to use (defaults to active profile) |
|
|
45
|
+
| `--notes` | No | What to verify (defaults to scenario description) |
|
|
46
|
+
| `--scenario` | No | Scenario index to verify (skips selection prompt) |
|
|
47
47
|
| `--start-path` | No | Path to start on (appended to base URL, e.g., `/dashboard`) |
|
|
48
48
|
|
|
49
49
|
## Writing Good Task Descriptions
|
|
50
50
|
|
|
51
|
-
The `--
|
|
51
|
+
The `--notes` is what the verification agent will actually do. Be VERY specific:
|
|
52
52
|
|
|
53
53
|
**Bad:**
|
|
54
54
|
```bash
|
|
55
|
-
--
|
|
55
|
+
--notes "Test login"
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
**Good:**
|
|
59
59
|
```bash
|
|
60
|
-
--
|
|
60
|
+
--notes "Navigate to /login. Enter test@example.com in email field and password123 in password field. Click the Submit button. Verify a loading spinner appears. Verify redirect to /dashboard within 5 seconds. Verify the user's name appears in the header."
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
## Using
|
|
63
|
+
## Using Scenario Description as Task
|
|
64
64
|
|
|
65
|
-
If your
|
|
65
|
+
If your scenario has a detailed description, you can omit `--notes`:
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
-
#
|
|
69
|
-
ranger
|
|
68
|
+
# Scenario 1: "User can log in with valid credentials - sees loading state - redirects to dashboard"
|
|
69
|
+
ranger go --scenario 1
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
The
|
|
72
|
+
The scenario description becomes the task automatically.
|
|
73
73
|
|
|
74
74
|
## Evaluation Results
|
|
75
75
|
|
|
76
|
-
After verification, the agent evaluates if the result satisfies the
|
|
76
|
+
After verification, the agent evaluates if the result satisfies the scenario:
|
|
77
77
|
|
|
78
|
-
| Result | Meaning |
|
|
78
|
+
| Result | Meaning | Scenario Status |
|
|
79
79
|
|--------|---------|-------------|
|
|
80
80
|
| **Verified** | Task completed, requirements met | ✅ Verified |
|
|
81
81
|
| **Partial** | Some aspects work, others don't | ⬜ Pending (session linked) |
|
|
@@ -91,8 +91,8 @@ Run multiple non-conflicting verifications in parallel using background executio
|
|
|
91
91
|
Use Bash with `run_in_background: true`:
|
|
92
92
|
|
|
93
93
|
```
|
|
94
|
-
[Bash: ranger
|
|
95
|
-
[Bash: ranger
|
|
94
|
+
[Bash: ranger go --scenario 1, run_in_background: true] → task_abc
|
|
95
|
+
[Bash: ranger go --scenario 2, run_in_background: true] → task_def
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
Poll with TaskOutput, report results as they complete.
|
|
@@ -117,40 +117,44 @@ File watchers (Next.js, Vite) will restart the dev server and break active brows
|
|
|
117
117
|
### Basic Verification
|
|
118
118
|
|
|
119
119
|
```bash
|
|
120
|
-
ranger
|
|
121
|
-
--
|
|
120
|
+
ranger go \
|
|
121
|
+
--scenario 1 \
|
|
122
|
+
--notes "Log in with test@example.com / password123, verify redirect to dashboard"
|
|
122
123
|
```
|
|
123
124
|
|
|
124
|
-
### Verify Specific
|
|
125
|
+
### Verify Specific Scenario
|
|
125
126
|
|
|
126
127
|
```bash
|
|
127
|
-
# Skip the selection prompt, verify
|
|
128
|
-
ranger
|
|
129
|
-
--
|
|
130
|
-
--
|
|
128
|
+
# Skip the selection prompt, verify scenario 2 directly
|
|
129
|
+
ranger go \
|
|
130
|
+
--notes "Complete signup flow with new email" \
|
|
131
|
+
--scenario 2
|
|
131
132
|
```
|
|
132
133
|
|
|
133
|
-
### Verify with Specific
|
|
134
|
+
### Verify with Specific Profile
|
|
134
135
|
|
|
135
136
|
```bash
|
|
136
|
-
# Use staging
|
|
137
|
-
ranger
|
|
138
|
-
--
|
|
139
|
-
--
|
|
137
|
+
# Use staging profile instead of active profile
|
|
138
|
+
ranger go \
|
|
139
|
+
--profile staging \
|
|
140
|
+
--scenario 1 \
|
|
141
|
+
--notes "Verify login works in staging"
|
|
140
142
|
```
|
|
141
143
|
|
|
142
144
|
### Start on a Specific Page
|
|
143
145
|
|
|
144
146
|
```bash
|
|
145
147
|
# Start verification at /settings instead of base URL
|
|
146
|
-
ranger
|
|
148
|
+
ranger go \
|
|
147
149
|
--start-path /settings \
|
|
148
|
-
--
|
|
150
|
+
--scenario 1 \
|
|
151
|
+
--notes "Verify user can update their profile"
|
|
149
152
|
|
|
150
153
|
# Start at /admin/users
|
|
151
|
-
ranger
|
|
154
|
+
ranger go \
|
|
152
155
|
--start-path /admin/users \
|
|
153
|
-
--
|
|
156
|
+
--scenario 2 \
|
|
157
|
+
--notes "Verify admin can see user list"
|
|
154
158
|
```
|
|
155
159
|
|
|
156
160
|
## After Verification
|
|
@@ -158,10 +162,10 @@ ranger verify-feature \
|
|
|
158
162
|
Check progress:
|
|
159
163
|
|
|
160
164
|
```bash
|
|
161
|
-
ranger
|
|
165
|
+
ranger show
|
|
162
166
|
```
|
|
163
167
|
|
|
164
|
-
If all non-closed
|
|
168
|
+
If all non-closed scenarios are verified, the feature review auto-completes:
|
|
165
169
|
|
|
166
170
|
```
|
|
167
171
|
✅ User Authentication (feat_abc123)
|
|
@@ -181,14 +185,14 @@ Access evidence via the report or dashboard.
|
|
|
181
185
|
|
|
182
186
|
## Troubleshooting
|
|
183
187
|
|
|
184
|
-
### "No active feature"
|
|
185
|
-
Run `ranger
|
|
188
|
+
### "No active feature review"
|
|
189
|
+
Run `ranger list` to find feature reviews, then `ranger resume <id>` to resume one.
|
|
186
190
|
|
|
187
|
-
### "No active
|
|
188
|
-
Run `ranger use <
|
|
191
|
+
### "No active profile"
|
|
192
|
+
Run `ranger profile use <profile-name>` to set a profile with browser access.
|
|
189
193
|
|
|
190
194
|
### Verification times out
|
|
191
|
-
The agent has 59 minutes max. For very long flows, break into smaller
|
|
195
|
+
The agent has 59 minutes max. For very long flows, break into smaller scenarios.
|
|
192
196
|
|
|
193
|
-
### Wrong
|
|
194
|
-
Reset the
|
|
197
|
+
### Wrong scenario marked
|
|
198
|
+
Reset the scenario via the dashboard, then re-verify.
|
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -10,7 +10,7 @@ console.log(`
|
|
|
10
10
|
|
|
11
11
|
Get started:
|
|
12
12
|
1. Get your API token: https://dashboard.ranger.net/cli
|
|
13
|
-
2. Run: ranger
|
|
13
|
+
2. Run: ranger setup [token]
|
|
14
14
|
|
|
15
15
|
For Claude Code, install the plugin in Claude Code:
|
|
16
16
|
/plugin marketplace add ranger-testing/trailhead
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0x34169a,_0x4590fe){const _0x5623ed=_0x3f3a,_0x26973b=_0x34169a();while(!![]){try{const _0x726002=-parseInt(_0x5623ed(0x1df))/0x1*(-parseInt(_0x5623ed(0x216))/0x2)+parseInt(_0x5623ed(0x210))/0x3+parseInt(_0x5623ed(0x211))/0x4*(-parseInt(_0x5623ed(0x1e4))/0x5)+-parseInt(_0x5623ed(0x207))/0x6*(-parseInt(_0x5623ed(0x223))/0x7)+-parseInt(_0x5623ed(0x1ff))/0x8*(-parseInt(_0x5623ed(0x213))/0x9)+-parseInt(_0x5623ed(0x215))/0xa*(-parseInt(_0x5623ed(0x1f2))/0xb)+-parseInt(_0x5623ed(0x1e7))/0xc;if(_0x726002===_0x4590fe)break;else _0x26973b['push'](_0x26973b['shift']());}catch(_0x364392){_0x26973b['push'](_0x26973b['shift']());}}}(_0x5d7a,0xd22dc));const _0x237521=(function(){let _0x206a6f=!![];return function(_0x591423,_0x52c581){const _0x3cce85=_0x206a6f?function(){const _0x7962e=_0x3f3a;if(_0x52c581){const _0x3547fd=_0x52c581[_0x7962e(0x21e)](_0x591423,arguments);return _0x52c581=null,_0x3547fd;}}:function(){};return _0x206a6f=![],_0x3cce85;};}()),_0x12a16d=_0x237521(this,function(){const _0xce0b68=_0x3f3a,_0x27bf73={'devDM':_0xce0b68(0x222)};return _0x12a16d[_0xce0b68(0x1d6)]()[_0xce0b68(0x1db)](_0x27bf73[_0xce0b68(0x1fd)])[_0xce0b68(0x1d6)]()['constructor'](_0x12a16d)['search'](_0x27bf73[_0xce0b68(0x1fd)]);});_0x12a16d();import*as _0x2672e6 from'readline';import{getToken}from'./utils/keychain.js';import{getMcpServerUrl}from'./utils/environment.js';function _0x3f3a(_0x2d7304,_0x2272ea){_0x2d7304=_0x2d7304-0x1d4;const _0x210ad9=_0x5d7a();let _0x12a16d=_0x210ad9[_0x2d7304];if(_0x3f3a['gpLJvd']===undefined){var _0x237521=function(_0x12dfaa){const _0x453b97='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3bd532='',_0x103fa2='',_0xb5aaff=_0x3bd532+_0x237521;for(let _0x3e8f01=0x0,_0xca74ce,_0x4214a1,_0x59d99f=0x0;_0x4214a1=_0x12dfaa['charAt'](_0x59d99f++);~_0x4214a1&&(_0xca74ce=_0x3e8f01%0x4?_0xca74ce*0x40+_0x4214a1:_0x4214a1,_0x3e8f01++%0x4)?_0x3bd532+=_0xb5aaff['charCodeAt'](_0x59d99f+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0xca74ce>>(-0x2*_0x3e8f01&0x6)):_0x3e8f01:0x0){_0x4214a1=_0x453b97['indexOf'](_0x4214a1);}for(let _0x14f1f0=0x0,_0x590e3e=_0x3bd532['length'];_0x14f1f0<_0x590e3e;_0x14f1f0++){_0x103fa2+='%'+('00'+_0x3bd532['charCodeAt'](_0x14f1f0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x103fa2);};_0x3f3a['EiZscw']=_0x237521,_0x3f3a['JxXVwd']={},_0x3f3a['gpLJvd']=!![];}const _0x5d7a4b=_0x210ad9[0x0],_0x3f3a0a=_0x2d7304+_0x5d7a4b,_0xa01210=_0x3f3a['JxXVwd'][_0x3f3a0a];if(!_0xa01210){const _0x2e078b=function(_0x4d8421){this['nEBjQk']=_0x4d8421,this['lTxFhh']=[0x1,0x0,0x0],this['KlHXoM']=function(){return'newState';},this['BLaObA']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['oPyben']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2e078b['prototype']['ZiPQkw']=function(){const _0x1e9d5d=new RegExp(this['BLaObA']+this['oPyben']),_0x3da4f5=_0x1e9d5d['test'](this['KlHXoM']['toString']())?--this['lTxFhh'][0x1]:--this['lTxFhh'][0x0];return this['izOhlL'](_0x3da4f5);},_0x2e078b['prototype']['izOhlL']=function(_0x362982){if(!Boolean(~_0x362982))return _0x362982;return this['NHiqzp'](this['nEBjQk']);},_0x2e078b['prototype']['NHiqzp']=function(_0x432dfb){for(let _0x556610=0x0,_0x5ef5dc=this['lTxFhh']['length'];_0x556610<_0x5ef5dc;_0x556610++){this['lTxFhh']['push'](Math['round'](Math['random']())),_0x5ef5dc=this['lTxFhh']['length'];}return _0x432dfb(this['lTxFhh'][0x0]);},new _0x2e078b(_0x3f3a)['ZiPQkw'](),_0x12a16d=_0x3f3a['EiZscw'](_0x12a16d),_0x3f3a['JxXVwd'][_0x3f3a0a]=_0x12a16d;}else _0x12a16d=_0xa01210;return _0x12a16d;}const ERROR_CODES={'NO_TOKEN':-0x7d01,'INVALID_TOKEN':-0x7d02,'ACCESS_DENIED':-0x7d03,'SERVER_UNAVAILABLE':-0x7d04,'INTERNAL_ERROR':-0x7f5b};function jsonRpcError(_0x5cb407,_0x95d4b5,_0x31ce68){const _0xcb0c96=_0x3f3a,_0x282787={'RKvuP':_0xcb0c96(0x21c)};console[_0xcb0c96(0x22b)](JSON[_0xcb0c96(0x1d5)]({'jsonrpc':_0x282787[_0xcb0c96(0x206)],'id':_0x5cb407,'error':{'code':_0x95d4b5,'message':_0x31ce68}}));}export async function dataMcpServer(){const _0x4f5b2b=_0x3f3a,_0x1abec9={'aqLxA':'Access\x20denied.\x20Your\x20token\x20may\x20not\x20have\x20MCP\x20permissions.','cFGjp':_0x4f5b2b(0x22e),'Urnte':'(((.+)+)+)+$','NKdje':'2.0','rRwnu':function(_0x174a2d,_0x87955e){return _0x174a2d!==_0x87955e;},'wVGeT':_0x4f5b2b(0x1e1),'dbuCG':'hEeTd','EbBSN':function(_0x44560d,_0x4f2bbd,_0x44ee99){return _0x44560d(_0x4f2bbd,_0x44ee99);},'ejtHI':'application/json,\x20text/event-stream','FxfsK':function(_0x16b520,_0x2ff3d3){return _0x16b520!==_0x2ff3d3;},'WdzrF':_0x4f5b2b(0x22c),'gRVRf':_0x4f5b2b(0x1ef),'VKkyQ':function(_0x55ee70,_0x40ac59){return _0x55ee70===_0x40ac59;},'bwVTt':_0x4f5b2b(0x212),'ivYax':function(_0x48b9c1,_0x207c3e,_0x477429,_0x4eff2f){return _0x48b9c1(_0x207c3e,_0x477429,_0x4eff2f);},'PRGRF':function(_0x163358,_0x4661c2){return _0x163358>=_0x4661c2;},'utlBX':function(_0x32aa61,_0x2910c4){return _0x32aa61===_0x2910c4;},'ykvLS':_0x4f5b2b(0x21d),'KKFmq':'Ranger\x20server\x20unavailable.\x20Please\x20try\x20again\x20later.','Csxyv':_0x4f5b2b(0x204),'hnzzP':'content-type','bzGNt':_0x4f5b2b(0x202),'PpTPn':_0x4f5b2b(0x1dd),'JihCZ':function(_0x979173,_0x4e134b){return _0x979173===_0x4e134b;},'fRiCo':'nOQwi','VCDnW':_0x4f5b2b(0x1f5),'zjfZV':_0x4f5b2b(0x21f),'xJLmy':_0x4f5b2b(0x1f3),'ejUJG':_0x4f5b2b(0x1e8),'tLOie':function(_0x44abf3,_0x12a5d3){return _0x44abf3 instanceof _0x12a5d3;},'BMPQL':_0x4f5b2b(0x1fa),'gktSs':function(_0x5a80bd){return _0x5a80bd();},'hLCzs':function(_0x7af868,_0x37c3b1){return _0x7af868+_0x37c3b1;},'mRJNm':_0x4f5b2b(0x214),'ePRHc':_0x4f5b2b(0x233)},_0xc72844=await _0x1abec9[_0x4f5b2b(0x20f)](getToken);!_0xc72844&&(jsonRpcError(null,ERROR_CODES[_0x4f5b2b(0x1f4)],_0x1abec9['hLCzs'](_0x4f5b2b(0x208),_0x4f5b2b(0x1e6))),process[_0x4f5b2b(0x218)](0x1));const _0x3aac56=_0x1abec9[_0x4f5b2b(0x20f)](getMcpServerUrl),_0x49f69e=_0x3aac56+_0x4f5b2b(0x20d),_0x551dc2=_0x2672e6[_0x4f5b2b(0x209)]({'input':process[_0x4f5b2b(0x1e3)],'output':process[_0x4f5b2b(0x1de)],'terminal':![]});_0x551dc2['on'](_0x1abec9[_0x4f5b2b(0x1eb)],async _0x3d2b4b=>{const _0x1b7dd2=_0x4f5b2b,_0xb7e395={'QojjD':_0x1abec9[_0x1b7dd2(0x1da)]};if(_0x1abec9['rRwnu'](_0x1abec9[_0x1b7dd2(0x226)],'XkTgA')){const _0x1af450=_0x53598b[_0x1b7dd2(0x21e)](_0x356fb7,arguments);return _0x4b9f93=null,_0x1af450;}else{if(!_0x3d2b4b[_0x1b7dd2(0x1f6)]())return;try{if(_0x1abec9[_0x1b7dd2(0x1fc)]===_0x1abec9['dbuCG']){const _0x3e0abe=JSON[_0x1b7dd2(0x224)](_0x3d2b4b),_0xf01912=await _0x1abec9[_0x1b7dd2(0x1d8)](fetch,_0x49f69e,{'method':_0x1b7dd2(0x1ee),'headers':{'Content-Type':_0x1b7dd2(0x201),'Accept':_0x1abec9['ejtHI'],'Authorization':_0x1b7dd2(0x1d9)+_0xc72844},'body':JSON[_0x1b7dd2(0x1d5)](_0x3e0abe)});if(!_0xf01912['ok']){if(_0x1abec9['FxfsK'](_0x1abec9[_0x1b7dd2(0x229)],_0x1abec9['gRVRf'])){if(_0x1abec9[_0x1b7dd2(0x200)](_0xf01912[_0x1b7dd2(0x1f1)],0x191))jsonRpcError(_0x3e0abe['id']??null,ERROR_CODES['INVALID_TOKEN'],_0x1abec9['bwVTt']);else{if(_0x1abec9['VKkyQ'](_0xf01912['status'],0x193))_0x1abec9[_0x1b7dd2(0x205)](jsonRpcError,_0x3e0abe['id']??null,ERROR_CODES[_0x1b7dd2(0x225)],_0x1abec9[_0x1b7dd2(0x1e0)]);else{if(_0x1abec9[_0x1b7dd2(0x1dc)](_0xf01912[_0x1b7dd2(0x1f1)],0x1f4))_0x1abec9[_0x1b7dd2(0x1fb)](_0x1b7dd2(0x21d),_0x1abec9[_0x1b7dd2(0x232)])?jsonRpcError(_0x3e0abe['id']??null,ERROR_CODES[_0x1b7dd2(0x22d)],_0x1abec9['KKFmq']):_0x312c15(_0x4bd225['id']??null,_0x1063f3[_0x1b7dd2(0x225)],_0x1abec9['aqLxA']);else{if(_0x1abec9[_0x1b7dd2(0x1f8)]('zdRro',_0x1abec9['Csxyv'])){if(_0x2685e7[_0x1b7dd2(0x1d4)](_0x1abec9[_0x1b7dd2(0x217)])){const _0x392ba4=_0x470999['slice'](0x6);_0x392ba4[_0x1b7dd2(0x1f6)]()&&_0x4a3d06[_0x1b7dd2(0x22b)](_0x392ba4);}}else _0x1abec9[_0x1b7dd2(0x205)](jsonRpcError,_0x3e0abe['id']??null,ERROR_CODES[_0x1b7dd2(0x227)],'HTTP\x20error:\x20'+_0xf01912[_0x1b7dd2(0x1f1)]+'\x20'+_0xf01912[_0x1b7dd2(0x1ed)]);}}}return;}else _0x2883d2[_0x1b7dd2(0x22b)](_0x3609f0['stringify']({'jsonrpc':_0xb7e395[_0x1b7dd2(0x1ec)],'id':_0x19ac15,'error':{'code':_0x198ebd,'message':_0x31bdcf}}));}const _0x54148f=_0xf01912[_0x1b7dd2(0x220)][_0x1b7dd2(0x20b)](_0x1abec9[_0x1b7dd2(0x203)])||'';if(_0x54148f[_0x1b7dd2(0x1f7)](_0x1abec9[_0x1b7dd2(0x22f)])){const _0x2e6f97=_0xf01912[_0x1b7dd2(0x221)]?.[_0x1b7dd2(0x1f0)]();if(!_0x2e6f97)return;const _0x4ecb23=new TextDecoder();let _0x53b6fc='';while(!![]){if(_0x1abec9[_0x1b7dd2(0x1f8)](_0x1abec9['PpTPn'],_0x1abec9[_0x1b7dd2(0x219)]))_0x4a9045['exit'](0x0);else{const {done:_0x1b3f0d,value:_0x3c5998}=await _0x2e6f97[_0x1b7dd2(0x1e5)]();if(_0x1b3f0d)break;_0x53b6fc+=_0x4ecb23[_0x1b7dd2(0x1e2)](_0x3c5998,{'stream':!![]});const _0x34a7ab=_0x53b6fc[_0x1b7dd2(0x20a)]('\x0a\x0a');_0x53b6fc=_0x34a7ab[_0x1b7dd2(0x22a)]()||'';for(const _0xa6b9e4 of _0x34a7ab){if(!_0xa6b9e4['trim']())continue;const _0x161b07=_0xa6b9e4['split']('\x0a');for(const _0x3980b1 of _0x161b07){if(_0x3980b1[_0x1b7dd2(0x1d4)](_0x1abec9['cFGjp'])){if(_0x1abec9[_0x1b7dd2(0x21a)](_0x1abec9[_0x1b7dd2(0x20c)],_0x1abec9[_0x1b7dd2(0x231)])){if(_0x885f38){const _0x1f5725=_0x8b500c[_0x1b7dd2(0x21e)](_0x3aa855,arguments);return _0x50dbaf=null,_0x1f5725;}}else{const _0x3afafe=_0x3980b1['slice'](0x6);_0x3afafe[_0x1b7dd2(0x1f6)]()&&console[_0x1b7dd2(0x22b)](_0x3afafe);}}}}}}}else{if(_0x1abec9[_0x1b7dd2(0x1f8)](_0x1abec9[_0x1b7dd2(0x1f9)],_0x1abec9[_0x1b7dd2(0x1f9)]))_0x4d1304['log'](_0x5f0d94);else{const _0x3645eb=await _0xf01912[_0x1b7dd2(0x20e)]();console['log'](JSON['stringify'](_0x3645eb));}}}else return _0x3df3b7['toString']()[_0x1b7dd2(0x1db)](jKwHKl[_0x1b7dd2(0x1ea)])[_0x1b7dd2(0x1d6)]()['constructor'](_0x38cc7c)[_0x1b7dd2(0x1db)](_0x1b7dd2(0x222));}catch(_0x146ae0){if(_0x1abec9[_0x1b7dd2(0x1fb)](_0x1abec9[_0x1b7dd2(0x230)],_0x1abec9[_0x1b7dd2(0x228)])){const _0x57bcbd=_0x2bd44b['slice'](0x6);_0x57bcbd[_0x1b7dd2(0x1f6)]()&&_0x3a6d51[_0x1b7dd2(0x22b)](_0x57bcbd);}else jsonRpcError(null,ERROR_CODES[_0x1b7dd2(0x227)],_0x1abec9[_0x1b7dd2(0x1fe)](_0x146ae0,Error)?_0x146ae0[_0x1b7dd2(0x21b)]:_0x1abec9[_0x1b7dd2(0x1d7)]);}}}),_0x551dc2['on'](_0x1abec9[_0x4f5b2b(0x1e9)],()=>{const _0x1719e7=_0x4f5b2b;process[_0x1719e7(0x218)](0x0);});}function _0x5d7a(){const _0x5a9ffe=['sw52ywXPzcbVCIbLEhbPCMvKiefqssb0B2TLBI4GuNvUigbYyw5NzxiGC3rHCNqGpg5LDY10B2TLBJ5GihrVihjLlwf1DgHLBNrPy2f0zs4','ndm4odeZv21btLDm','BgLUzq','mteWELfYDuTb','mta2vNHnBLHh','y0zhANa','zxHPDa','uhbuug4','sMLOq1O','BwvZC2fNzq','mI4W','D2XVDhq','yxbWBhK','q3vvExq','AgvHzgvYCW','yM9KEq','kcGOlISPkYKRksSK','n2jZBw5Yva','CgfYC2u','qundrvntx0rftKLfra','D1zhzvq','su5urvjoquXFrvjst1i','zwPvsKC','v2r6CKy','Cg9W','Bg9N','DNvdv0i','u0vsvKvsx1voqvzbsuXbqKXf','zgf0ytOG','yNPhtNq','EePmBxK','vKneBLC','EwT2tfm','y2XVC2u','C3rHCNrZv2L0Aa','C3rYAw5NAwz5','Dg9tDhjPBMC','qK1quuW','rwjcu04','qMvHCMvYia','tKTKAMu','C2vHCMnO','ufjhuKy','z292rxm','C3rKB3v0','ndG1uhv2CuLb','yxfmEee','wgTuz0e','zgvJB2rL','C3rKAw4','mtbjAKzvufe','CMvHza','r2v0ihLVDxiGDg9Rzw4GyxqGAhr0Chm6lY9KyxnOyM9HCMqUCMfUz2vYlM5LDc9JBgK','mtu2mZe5mJbWBM1kAe4','y3HABKC','zvbssgm','vxjUDgu','BvjktM0','uw9QAKq','C3rHDhvZvgv4Da','ue9tva','EgDSufq','z2v0uMvHzgvY','C3rHDhvZ','ntm1mJCXBgjHExbJ','wKP5AwS','tK9Fve9lru4','tfrWveu','DhjPBq','Aw5JBhvKzxm','CLj3BNu','EMPMwLy','vw5RBM93BIbLCNjVCG','DxrSqLG','zgj1q0C','zgv2re0','DeXpAwu','otzos256zeG','vKTREve','yxbWBgLJyxrPB24VANnVBG','Dgv4Dc9LDMvUDc1ZDhjLyw0','Ag56ELa','EMrsCM8','AxzzyxG','uKT2Dva','mtaWnteWotHVwfDAwg4','uMfUz2vYig5VDcbJB25MAwD1CMvKlIbsDw4GyhjHBMDLCIbZDgfYDca8Dg9Rzw4+ycbPBIbHihrLCM1PBMfSlIa','y3jLyxrLsw50zxjMywnL','C3bSAxq','z2v0','zLjPq28','l21JCa','ANnVBG','z2T0u3m','otK2odqZz1bgtu1R','mtK3otK0neD5z0rVBW'];_0x5d7a=function(){return _0x5a9ffe;};return _0x5d7a();}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataMcpServer.js","s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,CAAC;oCACd,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gCACtB,CAAC;4BACL,CAAC;wBACL,CAAC;oBACL,CAAC;gBACL,CAAC;YACL,CAAC;iBAAM,CAAC;gBACJ,wBAAwB;gBACxB,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;gBACnC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;YACtC,CAAC;QACL,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,YAAY,CACR,IAAI,EACJ,WAAW,CAAC,cAAc,EAC1B,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CACvD,CAAC;QACN,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,qBAAqB;IACrB,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;QAChB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const _0x422b13=_0x3840;(function(_0x446ca7,_0x4addb7){const _0x7ad77f=_0x3840,_0x216a65=_0x446ca7();while(!![]){try{const _0x42f8c4=parseInt(_0x7ad77f(0x190))/0x1+parseInt(_0x7ad77f(0x187))/0x2+parseInt(_0x7ad77f(0x1a4))/0x3+-parseInt(_0x7ad77f(0x19f))/0x4*(-parseInt(_0x7ad77f(0x18f))/0x5)+-parseInt(_0x7ad77f(0x1a2))/0x6+parseInt(_0x7ad77f(0x199))/0x7+parseInt(_0x7ad77f(0x1a6))/0x8*(-parseInt(_0x7ad77f(0x197))/0x9);if(_0x42f8c4===_0x4addb7)break;else _0x216a65['push'](_0x216a65['shift']());}catch(_0x1c0786){_0x216a65['push'](_0x216a65['shift']());}}}(_0x17fd,0xb77ea));function _0x17fd(){const _0x391342=['x2nSAv8','BM93','mJiZodGWmePrzwjVrG','kcGOlISPkYKRksSK','Agv4','AM9PBG','Dg9tDhjPBMC','zgLNzxn0','DxbKyxrL','DJfF','nZvRBNfXAu0','mZe2mdG4s1vKDxPm','CdrXohCX','ueLRwgW','zwnws0O','yxbWBhK','swXVBw8','C2vJCMv0xW','nJq2mtfjD3fZqM0','rfb6vvG','nta1mJC3nxLYA3DgsW','qLnNzKu','vLjqEwi','C2HHmJu2','y29UC3rYDwn0B3i','wNf6tKK','mJu4ntq4C1zpwvDQ','CM5NCG','rgneqLC','ntKWmdm3merUsKTjzW','zvbnDwC','mtq4odu5ne1tEgX4Aq','tKrruKW','mJeWngrTCeXnsq','C2vHCMnO','vhjKAK8'];_0x17fd=function(){return _0x391342;};return _0x17fd();}const _0x3f159e=(function(){const _0x22f4ec=_0x3840,_0x2972d7={'DPzUX':function(_0x8b8d93,_0x1f1b76,_0x2c76d3){return _0x8b8d93(_0x1f1b76,_0x2c76d3);},'VRPyb':function(_0x681c8f){return _0x681c8f();},'wmWkF':_0x22f4ec(0x189),'ecVKJ':function(_0x4f623f,_0x43cdcf){return _0x4f623f!==_0x43cdcf;},'DcDBW':'TZajZ','TrdjO':'iniEX'};let _0x3a8c08=!![];return function(_0x1c03f6,_0x4b8d35){const _0x5bb83b=_0x22f4ec,_0x562a87={'PIkXl':function(_0x21fe44,_0x252168,_0x5386e6){const _0x354b6b=_0x3840;return _0x2972d7[_0x354b6b(0x198)](_0x21fe44,_0x252168,_0x5386e6);},'BSgfE':function(_0x1713a5){const _0x3757d9=_0x3840;return _0x2972d7[_0x3757d9(0x19b)](_0x1713a5);},'Ilomo':_0x2972d7['wmWkF']};if(_0x2972d7[_0x5bb83b(0x193)](_0x2972d7[_0x5bb83b(0x1a1)],_0x2972d7[_0x5bb83b(0x184)])){const _0x57d69f=_0x3a8c08?function(){const _0x4972bb=_0x5bb83b;if(_0x4b8d35){const _0x4ca1a4=_0x4b8d35[_0x4972bb(0x194)](_0x1c03f6,arguments);return _0x4b8d35=null,_0x4ca1a4;}}:function(){};return _0x3a8c08=![],_0x57d69f;}else{const _0x5ceae4=_0x2b77e8['now'](),_0x14d4a8=_0x5ceae4+':'+_0x57edc5,_0x32561d=_0x562a87[_0x5bb83b(0x192)](_0x404fe9,_0x5bb83b(0x19c),_0x562a87[_0x5bb83b(0x19a)](_0x1821e1))[_0x5bb83b(0x18d)](_0x14d4a8)[_0x5bb83b(0x18c)](_0x562a87[_0x5bb83b(0x195)]);return{'signature':_0x32561d,'timestamp':_0x5ceae4};}};}()),_0x152483=_0x3f159e(this,function(){const _0x39a4f6=_0x3840;return _0x152483[_0x39a4f6(0x18b)]()[_0x39a4f6(0x1a7)](_0x39a4f6(0x188))[_0x39a4f6(0x18b)]()[_0x39a4f6(0x19d)](_0x152483)[_0x39a4f6(0x1a7)](_0x39a4f6(0x188));});_0x152483();import{createHmac}from'crypto';function _0x3840(_0x40889c,_0x5b9d48){_0x40889c=_0x40889c-0x184;const _0x5ebb98=_0x17fd();let _0x152483=_0x5ebb98[_0x40889c];if(_0x3840['OtCzjx']===undefined){var _0x3f159e=function(_0x74c31b){const _0x10d81a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5f4bbf='',_0x2cdf12='',_0x562d5f=_0x5f4bbf+_0x3f159e;for(let _0x232741=0x0,_0x9fa33,_0x464cfa,_0x9b3c51=0x0;_0x464cfa=_0x74c31b['charAt'](_0x9b3c51++);~_0x464cfa&&(_0x9fa33=_0x232741%0x4?_0x9fa33*0x40+_0x464cfa:_0x464cfa,_0x232741++%0x4)?_0x5f4bbf+=_0x562d5f['charCodeAt'](_0x9b3c51+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x9fa33>>(-0x2*_0x232741&0x6)):_0x232741:0x0){_0x464cfa=_0x10d81a['indexOf'](_0x464cfa);}for(let _0x5576e9=0x0,_0x4a5754=_0x5f4bbf['length'];_0x5576e9<_0x4a5754;_0x5576e9++){_0x2cdf12+='%'+('00'+_0x5f4bbf['charCodeAt'](_0x5576e9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2cdf12);};_0x3840['IRSxOk']=_0x3f159e,_0x3840['kWDnJp']={},_0x3840['OtCzjx']=!![];}const _0x17fde8=_0x5ebb98[0x0],_0x3840c7=_0x40889c+_0x17fde8,_0x5ec8bb=_0x3840['kWDnJp'][_0x3840c7];if(!_0x5ec8bb){const _0x3d0ec1=function(_0x270c79){this['csTqXI']=_0x270c79,this['iEDizx']=[0x1,0x0,0x0],this['fimHUp']=function(){return'newState';},this['LuExTF']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['dteDir']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3d0ec1['prototype']['XoeOHB']=function(){const _0x3813ea=new RegExp(this['LuExTF']+this['dteDir']),_0x5898da=_0x3813ea['test'](this['fimHUp']['toString']())?--this['iEDizx'][0x1]:--this['iEDizx'][0x0];return this['GdMAbq'](_0x5898da);},_0x3d0ec1['prototype']['GdMAbq']=function(_0x1f1c98){if(!Boolean(~_0x1f1c98))return _0x1f1c98;return this['NoTgbK'](this['csTqXI']);},_0x3d0ec1['prototype']['NoTgbK']=function(_0x961bca){for(let _0x1b6edd=0x0,_0x533c6b=this['iEDizx']['length'];_0x1b6edd<_0x533c6b;_0x1b6edd++){this['iEDizx']['push'](Math['round'](Math['random']())),_0x533c6b=this['iEDizx']['length'];}return _0x961bca(this['iEDizx'][0x0]);},new _0x3d0ec1(_0x3840)['XoeOHB'](),_0x152483=_0x3840['IRSxOk'](_0x152483),_0x3840['kWDnJp'][_0x3840c7]=_0x152483;}else _0x152483=_0x5ec8bb;return _0x152483;}const _p1=_0x422b13(0x1a0),_p2=_0x422b13(0x185),_p3=_0x422b13(0x196),_p4=_0x422b13(0x18e),_p5='x7k9m2',_p6=_0x422b13(0x191),_getSecret=()=>[_p1,_p2,_p3,_p4,_p5,_p6][_0x422b13(0x18a)]('');export function signRequest(_0x174834){const _0x4e9d72=_0x422b13,_0x14b49f={'RqUEx':_0x4e9d72(0x19c),'NDQRL':function(_0x505cbd){return _0x505cbd();},'ZqzNI':_0x4e9d72(0x189)},_0x2b71aa=Date[_0x4e9d72(0x186)](),_0x1da39a=_0x2b71aa+':'+_0x174834,_0x21c3d2=createHmac(_0x14b49f['RqUEx'],_0x14b49f[_0x4e9d72(0x1a5)](_getSecret))[_0x4e9d72(0x18d)](_0x1da39a)[_0x4e9d72(0x18c)](_0x14b49f[_0x4e9d72(0x19e)]);return{'signature':_0x21c3d2,'timestamp':_0x2b71aa};}export function getSignedHeaders(_0x5366d7){const _0x7ee490=_0x422b13,_0x3e2855={'ePMug':function(_0x37ff75,_0x1f78fd){return _0x37ff75(_0x1f78fd);}},{signature:_0xf71ea7,timestamp:_0x9fedb3}=_0x3e2855[_0x7ee490(0x1a3)](signRequest,_0x5366d7);return{'X-Ranger-CLI-Signature':_0xf71ea7,'X-Ranger-CLI-Timestamp':_0x9fedb3['toString']()};}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cliSecret.js","sourceRoot":"","sources":["../../../src/commands/utils/cliSecret.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC;;;GAGG;AAEH,kDAAkD;AAClD,MAAM,GAAG,GAAG,MAAM,CAAC;AACnB,MAAM,GAAG,GAAG,OAAO,CAAC;AACpB,MAAM,GAAG,GAAG,SAAS,CAAC;AACtB,MAAM,GAAG,GAAG,KAAK,CAAC;AAClB,MAAM,GAAG,GAAG,QAAQ,CAAC;AACrB,MAAM,GAAG,GAAG,QAAQ,CAAC;AACrB,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAEjE;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,OAAe;IAIvC,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC7B,MAAM,IAAI,GAAG,GAAG,SAAS,IAAI,OAAO,EAAE,CAAC;IACvC,MAAM,SAAS,GAAG,UAAU,CAAC,QAAQ,EAAE,UAAU,EAAE,CAAC;SAC/C,MAAM,CAAC,IAAI,CAAC;SACZ,MAAM,CAAC,KAAK,CAAC,CAAC;IAEnB,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AACpC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC5C,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IACtD,OAAO;QACH,wBAAwB,EAAE,SAAS;QACnC,wBAAwB,EAAE,SAAS,CAAC,QAAQ,EAAE;KACjD,CAAC;AACN,CAAC"}
|