@ai-setting/roy-agent-standalone 1.4.14 → 1.4.15

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.
Binary file
package/package.json CHANGED
@@ -1,22 +1,19 @@
1
1
  {
2
2
  "name": "@ai-setting/roy-agent-standalone",
3
- "version": "1.4.14",
3
+ "version": "1.4.15",
4
4
  "description": "Intelligent OS for AI agents - Standalone binary",
5
5
  "type": "module",
6
6
  "bin": {
7
- "roy-agent": "./bin/run.js"
7
+ "roy-agent": "./bin/roy-agent-linux-x64"
8
8
  },
9
9
  "files": [
10
10
  "bin/**/*"
11
11
  ],
12
12
  "os": [
13
- "linux",
14
- "darwin",
15
- "win32"
13
+ "linux"
16
14
  ],
17
15
  "cpu": [
18
- "x64",
19
- "arm64"
16
+ "x64"
20
17
  ],
21
18
  "engines": {
22
19
  "node": ">=18.0.0"
@@ -32,4 +29,4 @@
32
29
  "registry": "https://registry.npmjs.org",
33
30
  "access": "public"
34
31
  }
35
- }
32
+ }
package/bin/run.js DELETED
@@ -1,62 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * @fileoverview Platform-aware launcher for roy-agent
4
- *
5
- * Detects current platform and runs the appropriate binary.
6
- */
7
-
8
- import { spawn } from 'child_process';
9
- import { existsSync, chmodSync } from 'fs';
10
- import path from 'path';
11
- import { fileURLToPath } from 'url';
12
-
13
- const __dirname = path.dirname(fileURLToPath(import.meta.url));
14
- const PLATFORM = process.platform;
15
- const ARCH = process.arch;
16
-
17
- // Binary names for each platform
18
- const BINARY_MAP = {
19
- 'linux-x64': 'roy-agent',
20
- 'linux-arm64': 'roy-agent-linux-arm64',
21
- 'darwin-x64': 'roy-agent-darwin-x64',
22
- 'darwin-arm64': 'roy-agent-darwin-arm64',
23
- 'win32-x64': 'roy-agent.exe',
24
- };
25
-
26
- const key = `${PLATFORM}-${ARCH}`;
27
- const binaryName = BINARY_MAP[key];
28
- const binaryPath = binaryName ? path.join(__dirname, binaryName) : null;
29
-
30
- if (!binaryPath || !binaryName) {
31
- console.error(`❌ roy-agent: Unsupported platform ${key}`);
32
- console.error(' Supported platforms: linux-x64, linux-arm64, darwin-x64, darwin-arm64, win32-x64');
33
- process.exit(1);
34
- }
35
-
36
- if (!existsSync(binaryPath)) {
37
- console.error(`❌ @ai-setting/roy-agent-standalone: Binary not found: ${binaryPath}`);
38
- console.error(' Try reinstalling: npx @ai-setting/roy-agent-standalone');
39
- process.exit(1);
40
- }
41
-
42
- // Make executable on Unix
43
- if (PLATFORM !== 'win32') {
44
- chmodSync(binaryPath, 0o755);
45
- }
46
-
47
- // Pass through all arguments
48
- const args = process.argv.slice(2);
49
- const child = spawn(binaryPath, args, {
50
- stdio: 'inherit',
51
- env: process.env,
52
- });
53
-
54
- // Handle exit
55
- child.on('exit', (code) => {
56
- process.exit(code || 0);
57
- });
58
-
59
- child.on('error', (err) => {
60
- console.error(`❌ roy-agent: Failed to start: ${err.message}`);
61
- process.exit(1);
62
- });