automify 0.1.11 → 0.2.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 +25 -0
- package/package.json +1 -1
- package/src/lib/argument-reference.js +1 -1
- package/src/lib/automify.js +1 -1
- package/src/lib/cli-automify.js +1 -1
package/README.md
CHANGED
|
@@ -364,6 +364,27 @@ const run = await browser.do("Create the lead from data and return the saved rec
|
|
|
364
364
|
- `evaluate` sends images or text files directly to the model.
|
|
365
365
|
- `shared` and `sharedFiles` expose files inside Docker CLI or Docker desktop runs.
|
|
366
366
|
- `jsonOutput()` requests structured JSON and makes parsed output available as `run.parsed`.
|
|
367
|
+
- `limits.steps` controls the maximum model-action turns before `MaxStepsExceededError`. The default is `100`.
|
|
368
|
+
|
|
369
|
+
Set max steps on an adapter when most runs need the same limit:
|
|
370
|
+
|
|
371
|
+
```js
|
|
372
|
+
const browser = await automify.browser({
|
|
373
|
+
startUrl: "https://example.com",
|
|
374
|
+
limits: { steps: 250 }
|
|
375
|
+
});
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
Override it for one `.do()` call when a task needs a different limit:
|
|
379
|
+
|
|
380
|
+
```js
|
|
381
|
+
await browser.do("Quick smoke test", {
|
|
382
|
+
limits: { steps: 25 }
|
|
383
|
+
});
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
The older flat option also works: `maxSteps: 250` is equivalent to `limits: { steps: 250 }`. If both are provided,
|
|
387
|
+
`maxSteps` wins.
|
|
367
388
|
|
|
368
389
|
For arrays of objects, the most ergonomic shape is usually an object with a named array property:
|
|
369
390
|
|
|
@@ -565,3 +586,7 @@ node --test test/e2e/live-openai.e2e.test.js
|
|
|
565
586
|
## License
|
|
566
587
|
|
|
567
588
|
MIT
|
|
589
|
+
|
|
590
|
+
## Disclaimer
|
|
591
|
+
|
|
592
|
+
Automify is distributed "as is", without warranty of any kind. Automation can control browsers, shells, desktops, files, and external services; you are responsible for how you configure and run it, and for any events associated with that use. To the maximum extent permitted by law, the author is not liable for losses, damages, data loss, service disruption, or other consequences arising from use of the software.
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ export const argumentReference = [
|
|
|
14
14
|
"command"
|
|
15
15
|
],
|
|
16
16
|
notes:
|
|
17
|
-
"Use data for structured JSON, evaluate for files the model should inspect directly, and command only on CLI surfaces."
|
|
17
|
+
"Use data for structured JSON, evaluate for files the model should inspect directly, limits.steps to change the max model-action turns, and command only on CLI surfaces."
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
surface: "automify.browser()",
|
package/src/lib/automify.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
writeDebugLogFile
|
|
18
18
|
} from "./runtime.js";
|
|
19
19
|
|
|
20
|
-
const DEFAULT_MAX_STEPS =
|
|
20
|
+
const DEFAULT_MAX_STEPS = 100;
|
|
21
21
|
const DEFAULT_SCREENSHOT_DETAIL = "auto";
|
|
22
22
|
const DEFAULT_SCREENSHOT_MAX_WIDTH = 1440;
|
|
23
23
|
const DEFAULT_SCREENSHOT_MAX_HEIGHT = 1440;
|
package/src/lib/cli-automify.js
CHANGED