@ork-sh/cli 1.0.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/bin/index.js ADDED
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawnSync } = require('child_process');
4
+ const path = require('path');
5
+ const os = require('os');
6
+
7
+ const binaryName = 'ork-darwin-amd64';
8
+ const binaryPath = path.join(__dirname, binaryName);
9
+
10
+ // Verification for platform support
11
+ if (os.platform() !== 'darwin') {
12
+ process.stderr.write('Error: Currently, @ork-sh/cli only supports macOS.\n');
13
+ process.exit(1);
14
+ }
15
+
16
+ const args = process.argv.slice(2);
17
+
18
+ const result = spawnSync(binaryPath, args, {
19
+ stdio: 'inherit',
20
+ windowsHide: true,
21
+ shell: false
22
+ });
23
+
24
+ if (result.error) {
25
+ if (result.error.code === 'ENOENT') {
26
+ process.stderr.write(`Error: Binary not found at ${binaryPath}\n`);
27
+ } else {
28
+ process.stderr.write(`Execution failed: ${result.error.message}\n`);
29
+ }
30
+ process.exit(1);
31
+ }
32
+
33
+ process.exit(result.status ?? 0);
Binary file
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@ork-sh/cli",
3
+ "version": "1.0.0",
4
+ "description": "AI agent CLI toolkit",
5
+ "main": "index.js",
6
+ "files": [
7
+ "bin"
8
+ ],
9
+ "bin": {
10
+ "ork": "bin/index.js"
11
+ },
12
+ "scripts": {
13
+ "postinstall": "chmod +x bin/index.js bin/ork-darwin-amd64"
14
+ },
15
+ "keywords": [
16
+ "ai",
17
+ "agents",
18
+ "cli",
19
+ "toolkit",
20
+ "bubbletea"
21
+ ],
22
+ "author": "",
23
+ "license": "MIT",
24
+ "engines": {
25
+ "node": ">=14.0.0"
26
+ }
27
+ }