@omniaibot/omnibot 0.3.6

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.
Files changed (2) hide show
  1. package/bin/omnibot.js +33 -0
  2. package/package.json +26 -0
package/bin/omnibot.js ADDED
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env node
2
+
3
+ const os = process.platform;
4
+ const arch = process.arch;
5
+ const { spawnSync } = require("child_process");
6
+ const path = require("path");
7
+
8
+ let pkg;
9
+ let dirName;
10
+ let binName;
11
+
12
+ if (os === "win32" && arch === "x64") {
13
+ pkg = "@omniaibot/win-x64";
14
+ dirName = "omnibot-windows-x64";
15
+ binName = "omnibot-windows-x64.exe";
16
+ } else if (os === "linux" && arch === "x64") {
17
+ pkg = "@omniaibot/linux-x64";
18
+ dirName = "omnibot-linux-x64";
19
+ binName = "omnibot-linux-x64";
20
+ } else if (os === "darwin" && arch === "arm64") {
21
+ pkg = "@omniaibot/macos-arm64";
22
+ dirName = "omnibot-macos-arm64";
23
+ binName = "omnibot-macos-arm64";
24
+ } else {
25
+ console.error("Unsupported platform: " + os + " " + arch);
26
+ process.exit(1);
27
+ }
28
+
29
+ const pkgDir = path.dirname(require.resolve(pkg + "/package.json"));
30
+ const binPath = path.join(pkgDir, "bin", dirName, binName);
31
+
32
+ const result = spawnSync(binPath, process.argv.slice(2), { stdio: "inherit" });
33
+ process.exit(result.status ?? 1);
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@omniaibot/omnibot",
3
+ "version": "0.3.6",
4
+ "description": "omnibot CLI and local daemon for real-browser AI agent automation",
5
+ "bin": {
6
+ "omnibot": "bin/omnibot.js"
7
+ },
8
+ "optionalDependencies": {
9
+ "@omniaibot/linux-x64": "0.3.6",
10
+ "@omniaibot/macos-arm64": "0.3.6",
11
+ "@omniaibot/win-x64": "0.3.6"
12
+ },
13
+ "keywords": [
14
+ "browser",
15
+ "automation",
16
+ "cli",
17
+ "agent",
18
+ "omnibot"
19
+ ],
20
+ "author": "Unagi-cq",
21
+ "license": "MIT",
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/DennisJcy/omnibot.git"
25
+ }
26
+ }