You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+45-17Lines changed: 45 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,7 @@ Placeholders inside operation fields are resolved at runtime:
120
120
121
121
Interpolation occurs before an operation executes. For example, a fetch endpoint might be:
122
122
123
-
```
123
+
```json
124
124
{
125
125
"type": "fetch",
126
126
"endpoint": {
@@ -137,24 +137,26 @@ Interpolation occurs before an operation executes. For example, a fetch endpoint
137
137
138
138
This substitutes parameter values and injects `auth_token` from cookies. The JSON response is stored under `sessionStorage['result_key']` and can be returned by a final `return` operation using the matching `session_storage_key`.
The script will open a new tab (starting at `about:blank`). Navigate to your target website, then manually perform the actions you want to automate (e.g., search, login, export report). Keep Chrome focused during this process. Press `Ctrl+C`when done; the script will consolidate transactions and produce a HAR automatically.
273
+
The script will open a new tab (starting at `about:blank`). Navigate to your target website, then manually perform the actions you want to automate (e.g., search, login, export report). Keep Chrome focused during this process. Press `Ctrl+C`and the script will consolidate transactions and produce a HAR automatically.
Tip: Keep Chrome focused while monitoring and perform the target flow (search, checkout, etc.). Press Ctrl+C to stop; the script will consolidate transactions and produce a HTTP Archive (HAR) automatically.
@@ -281,14 +301,21 @@ Use the **routine-discovery pipeline** to analyze captured data and synthesize a
281
301
282
302
> ⚠️ **Important:** You must specify your own `--task` parameter. The example below is just for demonstration—replace it with a description of what you want to automate.
283
303
284
-
```
304
+
**Linux/macOS (bash):**
305
+
```bash
285
306
python scripts/discover_routines.py \
286
307
--task "recover the api endpoints for searching for trains and their prices" \
287
308
--cdp-captures-dir ./cdp_captures \
288
309
--output-dir ./routine_discovery_output \
289
310
--llm-model gpt-5
290
311
```
291
312
313
+
**Windows (PowerShell):**
314
+
```powershell
315
+
# Simple task (no quotes inside):
316
+
python scripts/discover_routines.py --task "Recover the API endpoints for searching for trains and their prices" --cdp-captures-dir ./cdp_captures --output-dir ./routine_discovery_output --llm-model gpt-5
317
+
```
318
+
292
319
**Example tasks:**
293
320
-`"recover the api endpoints for searching for trains and their prices"` (shown above)
294
321
-`"discover how to search for flights and get pricing"`
@@ -322,6 +349,7 @@ routine_discovery_output/
322
349
```json
323
350
"field": "{{paramName}}"
324
351
```
352
+
325
353
And `paramName` is a string parameter, manually change it to:
326
354
```json
327
355
"field": "\"{{paramName}}\""
@@ -331,7 +359,7 @@ This ensures the parameter value is properly quoted as a JSON string when substi
0 commit comments