@oya-ai/cli 1.0.99 → 1.0.102
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/dist/index.js +6 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1584,9 +1584,12 @@ var Browser = class {
|
|
|
1584
1584
|
await this.command("navigate", { url }, NAVIGATE_TIMEOUT_MS);
|
|
1585
1585
|
if (this.autoCaptcha) assertCaptchaCleared(await this.solveCaptcha());
|
|
1586
1586
|
}
|
|
1587
|
-
/**
|
|
1588
|
-
|
|
1589
|
-
|
|
1587
|
+
/**
|
|
1588
|
+
* The page, written as markdown (the default), TOON or JSONL, plus its blocks and
|
|
1589
|
+
* the numbered elements to act on.
|
|
1590
|
+
*/
|
|
1591
|
+
async analyze(options = {}) {
|
|
1592
|
+
return this.command("analyze", options.format ? { format: options.format } : {});
|
|
1590
1593
|
}
|
|
1591
1594
|
/** Only the visible elements, which is what an agent almost always wants. */
|
|
1592
1595
|
async elements() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oya-ai/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.102",
|
|
4
4
|
"description": "Command line for the Oya browser control plane.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://browser.getoya.ai",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@oya-ai/browser": "1.0.
|
|
42
|
+
"@oya-ai/browser": "1.0.102",
|
|
43
43
|
"@types/node": "^20.19.43",
|
|
44
44
|
"tsup": "^8.0.0",
|
|
45
45
|
"typescript": "^5.4.0"
|