@nuanu-ai/agentbrowse 0.2.3 → 0.2.5
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 +0 -6
- package/dist/solver/captcha-solver.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -83,12 +83,6 @@ operations:
|
|
|
83
83
|
export AGENTPAY_API_KEY=...
|
|
84
84
|
```
|
|
85
85
|
|
|
86
|
-
Optional API base URL override:
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
export AGENTPAY_API_URL=https://durcottggsiesxxqzvbb.supabase.co/functions/v1/api
|
|
90
|
-
```
|
|
91
|
-
|
|
92
86
|
## Runtime model
|
|
93
87
|
|
|
94
88
|
- `agentbrowse` persists the active browser session under `~/.agentpay`
|
|
@@ -39,14 +39,14 @@ export class CaptchaSolver {
|
|
|
39
39
|
throw new Error(`CAPTCHA solving timed out after ${Math.ceil(this.taskTimeoutMs / 1000)}s`);
|
|
40
40
|
}
|
|
41
41
|
async createTask(type, siteKey, pageUrl) {
|
|
42
|
-
return this.request('POST', '/
|
|
42
|
+
return this.request('POST', '/tools/captcha/tasks', {
|
|
43
43
|
type,
|
|
44
44
|
site_key: siteKey,
|
|
45
45
|
page_url: pageUrl,
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
async getTaskStatus(taskId) {
|
|
49
|
-
return this.request('GET', `/
|
|
49
|
+
return this.request('GET', `/tools/captcha/tasks/${encodeURIComponent(taskId)}`);
|
|
50
50
|
}
|
|
51
51
|
async request(method, path, body) {
|
|
52
52
|
const url = `${this.apiUrl}${path}`;
|