automify 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/README.md +22 -1
- package/package.json +1 -1
- package/scripts/install-browser.js +6 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ OpenAI and Anthropic models are supported, and any other model can be plugged in
|
|
|
34
34
|
- Built-in OpenAI and Anthropic support, plus custom model adapters.
|
|
35
35
|
- Practical guardrails: domain allowlists, command policies, screenshot controls, max steps, and hooks.
|
|
36
36
|
|
|
37
|
-
Full docs live
|
|
37
|
+
Full docs live at [aldovincenti.github.io/automify](https://aldovincenti.github.io/automify/). The shorter argument reference is [`docs/argument-reference.md`](docs/argument-reference.md).
|
|
38
38
|
|
|
39
39
|
## Install
|
|
40
40
|
|
|
@@ -396,6 +396,27 @@ npm run test:e2e
|
|
|
396
396
|
OPENAI_API_KEY=... npm run test:live
|
|
397
397
|
```
|
|
398
398
|
|
|
399
|
+
`npm run test:live` runs `test/e2e/live-openai.e2e.test.js` with `RUN_OPENAI_E2E=1`. By default, it runs the live OpenAI CLI and Docker CLI checks and skips the browser and Docker desktop checks.
|
|
400
|
+
|
|
401
|
+
Run every live test:
|
|
402
|
+
|
|
403
|
+
```bash
|
|
404
|
+
OPENAI_API_KEY=... \
|
|
405
|
+
RUN_OPENAI_BROWSER_E2E=1 \
|
|
406
|
+
RUN_OPENAI_VIRTUAL_DESKTOP_E2E=1 \
|
|
407
|
+
npm run test:live
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
The equivalent direct command is:
|
|
411
|
+
|
|
412
|
+
```bash
|
|
413
|
+
OPENAI_API_KEY=... \
|
|
414
|
+
RUN_OPENAI_E2E=1 \
|
|
415
|
+
RUN_OPENAI_BROWSER_E2E=1 \
|
|
416
|
+
RUN_OPENAI_VIRTUAL_DESKTOP_E2E=1 \
|
|
417
|
+
node --test test/e2e/live-openai.e2e.test.js
|
|
418
|
+
```
|
|
419
|
+
|
|
399
420
|
## License
|
|
400
421
|
|
|
401
422
|
MIT
|
package/package.json
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { spawnSync } from "node:child_process";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import { dirname, join } from "node:path";
|
|
4
|
+
|
|
5
|
+
const require = createRequire(import.meta.url);
|
|
2
6
|
|
|
3
7
|
if (process.env.AUTOMIFY_SKIP_BROWSER_INSTALL === "1" || process.env.PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD === "1") {
|
|
4
8
|
process.exit(0);
|
|
5
9
|
}
|
|
6
10
|
|
|
7
|
-
const
|
|
11
|
+
const playwrightCli = join(dirname(require.resolve("playwright")), "cli.js");
|
|
12
|
+
const result = spawnSync(process.execPath, [playwrightCli, "install", "chromium"], {
|
|
8
13
|
cwd: process.cwd(),
|
|
9
14
|
stdio: "inherit"
|
|
10
15
|
});
|