crewforge 0.1.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.
Files changed (2) hide show
  1. package/bin/crewforge.js +39 -0
  2. package/package.json +21 -0
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ const { execFileSync } = require('child_process');
5
+
6
+ const PACKAGES = {
7
+ 'linux-x64': '@crewforge/linux-x64',
8
+ 'linux-arm64': '@crewforge/linux-arm64',
9
+ 'darwin-x64': '@crewforge/darwin-x64',
10
+ 'darwin-arm64': '@crewforge/darwin-arm64',
11
+ 'win32-x64': '@crewforge/win32-x64',
12
+ };
13
+
14
+ const key = `${process.platform}-${process.arch}`;
15
+ const pkg = PACKAGES[key];
16
+
17
+ if (!pkg) {
18
+ process.stderr.write(`[crewforge] Unsupported platform: ${key}\n`);
19
+ process.exit(1);
20
+ }
21
+
22
+ const binName = process.platform === 'win32' ? 'crewforge.exe' : 'crewforge';
23
+
24
+ let binaryPath;
25
+ try {
26
+ binaryPath = require.resolve(`${pkg}/${binName}`);
27
+ } catch {
28
+ process.stderr.write(
29
+ `[crewforge] Platform binary not found (${pkg}).\n` +
30
+ 'Try reinstalling: npm i -g crewforge\n',
31
+ );
32
+ process.exit(1);
33
+ }
34
+
35
+ try {
36
+ execFileSync(binaryPath, process.argv.slice(2), { stdio: 'inherit' });
37
+ } catch (error) {
38
+ process.exit(typeof error.status === 'number' ? error.status : 1);
39
+ }
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "crewforge",
3
+ "version": "0.1.0",
4
+ "description": "CrewForge CLI - multi-agent chat orchestrator",
5
+ "bin": {
6
+ "crewforge": "bin/crewforge.js"
7
+ },
8
+ "files": [
9
+ "bin/"
10
+ ],
11
+ "optionalDependencies": {
12
+ "@crewforge/linux-x64": "0.1.0",
13
+ "@crewforge/linux-arm64": "0.1.0",
14
+ "@crewforge/darwin-x64": "0.1.0",
15
+ "@crewforge/darwin-arm64": "0.1.0",
16
+ "@crewforge/win32-x64": "0.1.0"
17
+ },
18
+ "engines": {
19
+ "node": ">=18"
20
+ }
21
+ }