automify 0.1.2 → 0.1.3
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 +2 -2
- package/package.json +3 -5
- package/scripts/install-desktop.js +1 -3
- package/src/lib/automify.js +2 -7
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/automify)
|
|
6
6
|
[](./LICENSE)
|
|
7
|
-
[](https://nodejs.org/)
|
|
8
8
|
|
|
9
9
|
`Automify` is a Node.js library for AI computer use and command use across web apps, terminals, native desktops, Docker CLI sandboxes, and Docker-backed Linux desktops.
|
|
10
10
|
|
|
@@ -48,7 +48,7 @@ Chromium is installed by the package `postinstall` script. Skip it with:
|
|
|
48
48
|
AUTOMIFY_SKIP_BROWSER_INSTALL=1 npm install automify
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
Requirements: Node.js `
|
|
51
|
+
Requirements: Node.js `20.12.2+` and a provider config. OpenAI examples use `gpt-5.5`.
|
|
52
52
|
|
|
53
53
|
Automify is published as an ES module package, so the examples use modern `import` syntax:
|
|
54
54
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "automify",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "AI computer use for browser, CLI, and desktop in Node.js.",
|
|
5
5
|
"homepage": "https://aldovincenti.github.io/automify",
|
|
6
6
|
"bugs": {
|
|
@@ -46,9 +46,7 @@
|
|
|
46
46
|
"format:check": "prettier --check ."
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"
|
|
50
|
-
"@jimp/js-png": "^1.6.1",
|
|
51
|
-
"@jimp/plugin-resize": "^1.6.1",
|
|
49
|
+
"jimp": "^1.6.1",
|
|
52
50
|
"playwright": ">=1.40.0"
|
|
53
51
|
},
|
|
54
52
|
"peerDependencies": {
|
|
@@ -60,7 +58,7 @@
|
|
|
60
58
|
}
|
|
61
59
|
},
|
|
62
60
|
"engines": {
|
|
63
|
-
"node": ">=
|
|
61
|
+
"node": ">=20.12.2"
|
|
64
62
|
},
|
|
65
63
|
"keywords": [
|
|
66
64
|
"automation",
|
|
@@ -24,9 +24,7 @@ const platformPackageDir = join(nutScope, `libnut-${process.platform}`);
|
|
|
24
24
|
const macPermissionsPackageDir = join(nutScope, "node-mac-permissions");
|
|
25
25
|
|
|
26
26
|
const runtimeDependencies = [
|
|
27
|
-
"
|
|
28
|
-
"@jimp/js-png@1.6.1",
|
|
29
|
-
"@jimp/plugin-resize@1.6.1",
|
|
27
|
+
"jimp@1.6.1",
|
|
30
28
|
"node-abort-controller@3.1.1",
|
|
31
29
|
"clipboardy@2.3.0",
|
|
32
30
|
"bindings@1.5.0"
|
package/src/lib/automify.js
CHANGED
|
@@ -715,15 +715,10 @@ async function resizeScreenshot(screenshot, target, options, automify) {
|
|
|
715
715
|
}
|
|
716
716
|
|
|
717
717
|
try {
|
|
718
|
-
const
|
|
719
|
-
import("@jimp/core"),
|
|
720
|
-
import("@jimp/js-png"),
|
|
721
|
-
import("@jimp/plugin-resize")
|
|
722
|
-
]);
|
|
723
|
-
const Jimp = createJimp({ formats: [png.default], plugins: [resize.methods] });
|
|
718
|
+
const { Jimp, JimpMime } = await import("jimp");
|
|
724
719
|
const image = await Jimp.read(Buffer.from(screenshot));
|
|
725
720
|
image.resize({ w: target.width, h: target.height });
|
|
726
|
-
return image.getBuffer(
|
|
721
|
+
return image.getBuffer(JimpMime.png);
|
|
727
722
|
} catch (error) {
|
|
728
723
|
debugLog(automify.debug, "automify", "screenshot_resize_skipped", {
|
|
729
724
|
reason: error?.message,
|