@highflame/overwatch-darwin-arm64 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/index.js +48 -0
- package/package.json +33 -0
package/index.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @highflame/overwatch-darwin-arm64
|
|
3
|
+
* Platform-specific binaries for macOS ARM64 (Apple Silicon)
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
const path = require('path');
|
|
7
|
+
const fs = require('fs');
|
|
8
|
+
|
|
9
|
+
const PLATFORM = 'darwin';
|
|
10
|
+
const ARCH = 'arm64';
|
|
11
|
+
const RUST_TARGET = 'aarch64-apple-darwin';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Get the path to the ramparts binary
|
|
15
|
+
* @returns {string|null} Path to binary or null if not found
|
|
16
|
+
*/
|
|
17
|
+
function getRampartsBinaryPath() {
|
|
18
|
+
const binaryName = `ramparts-${RUST_TARGET}`;
|
|
19
|
+
const binaryPath = path.join(__dirname, 'bin', binaryName);
|
|
20
|
+
|
|
21
|
+
if (fs.existsSync(binaryPath)) {
|
|
22
|
+
return binaryPath;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Also check for generic name
|
|
26
|
+
const genericPath = path.join(__dirname, 'bin', 'ramparts');
|
|
27
|
+
if (fs.existsSync(genericPath)) {
|
|
28
|
+
return genericPath;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Check if this platform package matches the current runtime
|
|
36
|
+
* @returns {boolean}
|
|
37
|
+
*/
|
|
38
|
+
function isCurrentPlatform() {
|
|
39
|
+
return process.platform === PLATFORM && process.arch === ARCH;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
module.exports = {
|
|
43
|
+
platform: PLATFORM,
|
|
44
|
+
arch: ARCH,
|
|
45
|
+
rustTarget: RUST_TARGET,
|
|
46
|
+
getRampartsBinaryPath,
|
|
47
|
+
isCurrentPlatform,
|
|
48
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@highflame/overwatch-darwin-arm64",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Platform-specific binaries for @highflame/overwatch (macOS ARM64)",
|
|
5
|
+
"os": [
|
|
6
|
+
"darwin"
|
|
7
|
+
],
|
|
8
|
+
"cpu": [
|
|
9
|
+
"arm64"
|
|
10
|
+
],
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"files": [
|
|
13
|
+
"bin",
|
|
14
|
+
"index.js"
|
|
15
|
+
],
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/overwatch-ai/javelin-rampart"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"overwatch",
|
|
22
|
+
"guardian",
|
|
23
|
+
"security",
|
|
24
|
+
"macos",
|
|
25
|
+
"arm64",
|
|
26
|
+
"apple-silicon"
|
|
27
|
+
],
|
|
28
|
+
"author": "Highflame AI",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=18.0.0"
|
|
32
|
+
}
|
|
33
|
+
}
|