opencode-webfetch-plugin 0.1.0 → 0.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-webfetch-plugin",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "An opencode plugin that exposes a webfetch tool capable of human-in-the-loop interaction for handling captchas and logins.",
5
5
  "type": "module",
6
6
  "module": "./src/index.ts",
@@ -26,15 +26,20 @@ export class HumanInteractor {
26
26
  body: {
27
27
  title: 'Browser Action Required',
28
28
  message,
29
- variant: 'warning'
29
+ variant: 'warning',
30
+ duration: 3000
30
31
  }
31
- // duration: 10000
32
+
32
33
  })
33
34
 
34
35
  await sleep(5000)
35
- const res = await checker();
36
- if (res.blocked) {
37
- continue
36
+ if (checker) {
37
+ const res = await checker();
38
+ if (res.blocked) {
39
+ continue
40
+ } else {
41
+ break
42
+ }
38
43
  } else {
39
44
  break
40
45
  }