@velo-ai/ctl 0.0.7

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/ctl.js ADDED
@@ -0,0 +1,44 @@
1
+ #!/usr/bin/env node
2
+
3
+ // ctl - AI Dev Control Plane CLI
4
+ // Platform-native binary wrapper
5
+
6
+ const path = require("path");
7
+ const spawn = require("child_process").spawnSync;
8
+
9
+ const platform = process.platform;
10
+ const arch = process.arch;
11
+
12
+ let binaryName = "ctl";
13
+ if (platform === "win32") binaryName = "ctl.exe";
14
+
15
+ const platformDir = getPlatformDir();
16
+ const binaryPath = path.join(__dirname, "..", "platforms", platformDir, binaryName);
17
+
18
+ const fs = require("fs");
19
+ if (!fs.existsSync(binaryPath)) {
20
+ console.error(
21
+ `ctl: unsupported platform '${platform}-${arch}' or binary not installed.\n` +
22
+ `Run 'npm rebuild @velo-ai/ctl' or install the correct platform package.`
23
+ );
24
+ process.exit(1);
25
+ }
26
+
27
+ const result = spawn(binaryPath, process.argv.slice(2), {
28
+ stdio: "inherit",
29
+ env: process.env,
30
+ windowsHide: true,
31
+ });
32
+
33
+ process.exit(result.status ?? 1);
34
+
35
+ function getPlatformDir() {
36
+ const tuples = {
37
+ "win32-x64": "win32-x64-msvc",
38
+ "darwin-x64": "darwin-x64",
39
+ "darwin-arm64": "darwin-arm64",
40
+ "linux-x64": "linux-x64-gnu",
41
+ "linux-arm64": "linux-arm64-gnu",
42
+ };
43
+ return tuples[`${platform}-${arch}`] || `${platform}-${arch}`;
44
+ }
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@velo-ai/ctl",
3
+ "version": "0.0.7",
4
+ "description": "AI Dev Control Plane CLI — deterministic task lifecycle, boundary enforcement, and gate validation",
5
+ "bin": {
6
+ "ctl": "./bin/ctl.js"
7
+ },
8
+ "files": [
9
+ "bin/ctl.js",
10
+ "platforms/"
11
+ ],
12
+ "optionalDependencies": {
13
+ "@velo-ai/ctl-win32-x64-msvc": "0.0.7",
14
+ "@velo-ai/ctl-darwin-x64": "0.0.7",
15
+ "@velo-ai/ctl-darwin-arm64": "0.0.7",
16
+ "@velo-ai/ctl-linux-x64-gnu": "0.0.7",
17
+ "@velo-ai/ctl-linux-arm64-gnu": "0.0.7"
18
+ },
19
+ "keywords": [
20
+ "ai",
21
+ "control-plane",
22
+ "task-management",
23
+ "cli",
24
+ "omp",
25
+ "boundary",
26
+ "gate"
27
+ ],
28
+ "license": "MIT",
29
+ "engines": {
30
+ "node": ">=16"
31
+ }
32
+ }
Binary file
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@velo-ai/ctl-darwin-arm64",
3
+ "version": "0.0.7",
4
+ "description": "ctl binary for macOS ARM64",
5
+ "files": ["ctl"],
6
+ "os": ["darwin"],
7
+ "cpu": ["arm64"],
8
+ "license": "MIT"
9
+ }
Binary file
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@velo-ai/ctl-darwin-x64",
3
+ "version": "0.0.7",
4
+ "description": "ctl binary for macOS x64",
5
+ "files": ["ctl"],
6
+ "os": ["darwin"],
7
+ "cpu": ["x64"],
8
+ "license": "MIT"
9
+ }
Binary file
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@velo-ai/ctl-linux-arm64-gnu",
3
+ "version": "0.0.7",
4
+ "description": "ctl binary for Linux ARM64 (GNU)",
5
+ "files": ["ctl"],
6
+ "os": ["linux"],
7
+ "cpu": ["arm64"],
8
+ "license": "MIT"
9
+ }
Binary file
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@velo-ai/ctl-linux-x64-gnu",
3
+ "version": "0.0.7",
4
+ "description": "ctl binary for Linux x64 (GNU)",
5
+ "files": ["ctl"],
6
+ "os": ["linux"],
7
+ "cpu": ["x64"],
8
+ "license": "MIT"
9
+ }
Binary file
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@velo-ai/ctl-win32-x64-msvc",
3
+ "version": "0.0.7",
4
+ "description": "ctl binary for Windows x64 (MSVC)",
5
+ "files": ["ctl.exe"],
6
+ "os": ["win32"],
7
+ "cpu": ["x64"],
8
+ "license": "MIT"
9
+ }