@harnspec/cli 0.0.1 → 0.0.3
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/harnspec-rust.js +5 -2
- package/bin/harnspec.js +0 -0
- package/binaries/darwin-arm64/harnspec +0 -0
- package/binaries/darwin-arm64/harnspec-http +0 -0
- package/binaries/darwin-arm64/package.json +2 -2
- package/binaries/darwin-x64/harnspec +0 -0
- package/binaries/darwin-x64/harnspec-http +0 -0
- package/binaries/darwin-x64/package.json +2 -2
- package/binaries/linux-arm64/harnspec +0 -0
- package/binaries/linux-arm64/harnspec-http +0 -0
- package/binaries/linux-arm64/package.json +24 -0
- package/binaries/linux-arm64/postinstall.js +17 -0
- package/binaries/linux-x64/harnspec +0 -0
- package/binaries/linux-x64/harnspec-http +0 -0
- package/binaries/linux-x64/package.json +2 -2
- package/binaries/windows-x64/harnspec-http.exe +0 -0
- package/binaries/windows-x64/harnspec.exe +0 -0
- package/binaries/windows-x64/package.json +2 -2
- package/package.json +9 -8
package/bin/harnspec-rust.js
CHANGED
|
@@ -29,7 +29,7 @@ const debug = (...args) => DEBUG && console.error('[harnspec debug]', ...args);
|
|
|
29
29
|
// Platform detection mapping
|
|
30
30
|
const PLATFORM_MAP = {
|
|
31
31
|
darwin: { x64: 'darwin-x64', arm64: 'darwin-arm64' },
|
|
32
|
-
linux: { x64: 'linux-x64' },
|
|
32
|
+
linux: { x64: 'linux-x64', arm64: 'linux-arm64' },
|
|
33
33
|
win32: { x64: 'windows-x64' }
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -96,7 +96,7 @@ function getBinaryPath() {
|
|
|
96
96
|
const platformKey = PLATFORM_MAP[platform]?.[arch];
|
|
97
97
|
if (!platformKey) {
|
|
98
98
|
console.error(`Unsupported platform: ${platform}-${arch}`);
|
|
99
|
-
console.error('Supported: macOS (x64/arm64), Linux (x64), Windows (x64)');
|
|
99
|
+
console.error('Supported: macOS (x64/arm64), Linux (x64/arm64), Windows (x64)');
|
|
100
100
|
process.exit(1);
|
|
101
101
|
}
|
|
102
102
|
|
|
@@ -183,6 +183,9 @@ const args = process.argv.slice(2);
|
|
|
183
183
|
|
|
184
184
|
debug('Spawning binary:', binaryPath);
|
|
185
185
|
debug('Arguments:', args);
|
|
186
|
+
if (DEBUG) {
|
|
187
|
+
console.error('[harnspec debug] Full command line:', [binaryPath, ...args].join(' '));
|
|
188
|
+
}
|
|
186
189
|
|
|
187
190
|
const child = spawn(binaryPath, args, {
|
|
188
191
|
stdio: 'inherit',
|
package/bin/harnspec.js
CHANGED
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnspec/cli-darwin-arm64",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "HarnSpec CLI binary for macOS ARM64",
|
|
5
5
|
"os": [
|
|
6
6
|
"darwin"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://github.com/
|
|
21
|
+
"url": "https://github.com/harnspec/harnspec.git"
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT"
|
|
24
24
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnspec/cli-darwin-x64",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "HarnSpec CLI binary for macOS x64",
|
|
5
5
|
"os": [
|
|
6
6
|
"darwin"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://github.com/
|
|
21
|
+
"url": "https://github.com/harnspec/harnspec.git"
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT"
|
|
24
24
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@harnspec/cli-linux-arm64",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "HarnSpec CLI binary for Linux ARM64",
|
|
5
|
+
"os": [
|
|
6
|
+
"linux"
|
|
7
|
+
],
|
|
8
|
+
"cpu": [
|
|
9
|
+
"arm64"
|
|
10
|
+
],
|
|
11
|
+
"main": "harnspec",
|
|
12
|
+
"files": [
|
|
13
|
+
"harnspec",
|
|
14
|
+
"postinstall.js"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"postinstall": "node postinstall.js"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/harnspec/harnspec.git"
|
|
22
|
+
},
|
|
23
|
+
"license": "MIT"
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Postinstall script to set execute permissions on the binary.
|
|
4
|
+
* npm doesn't preserve file permissions, so we need to set them after install.
|
|
5
|
+
*/
|
|
6
|
+
const { chmodSync } = require('fs');
|
|
7
|
+
const { join } = require('path');
|
|
8
|
+
|
|
9
|
+
const binaryPath = join(__dirname, 'harnspec');
|
|
10
|
+
|
|
11
|
+
try {
|
|
12
|
+
chmodSync(binaryPath, 0o755);
|
|
13
|
+
console.log('✓ Set execute permissions on harnspec binary');
|
|
14
|
+
} catch (err) {
|
|
15
|
+
console.error('Warning: Could not set execute permissions:', err.message);
|
|
16
|
+
// Don't fail the install
|
|
17
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnspec/cli-linux-x64",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "HarnSpec CLI binary for Linux x64",
|
|
5
5
|
"os": [
|
|
6
6
|
"linux"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://github.com/
|
|
21
|
+
"url": "https://github.com/harnspec/harnspec.git"
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT"
|
|
24
24
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnspec/cli-windows-x64",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "HarnSpec CLI binary for Windows x64",
|
|
5
5
|
"os": [
|
|
6
6
|
"win32"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://github.com/
|
|
21
|
+
"url": "https://github.com/harnspec/harnspec.git"
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT"
|
|
24
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnspec/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Specification-driven development made simple",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"typecheck": "echo 'No TypeScript source to check'"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@harnspec/http-server": "0.0.
|
|
14
|
-
"@harnspec/ui": "0.0.
|
|
13
|
+
"@harnspec/http-server": "0.0.3",
|
|
14
|
+
"@harnspec/ui": "0.0.3"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"spec",
|
|
@@ -40,12 +40,13 @@
|
|
|
40
40
|
"CHANGELOG.md"
|
|
41
41
|
],
|
|
42
42
|
"engines": {
|
|
43
|
-
"node": ">=
|
|
43
|
+
"node": ">=24"
|
|
44
44
|
},
|
|
45
45
|
"optionalDependencies": {
|
|
46
|
-
"@harnspec/cli-darwin-x64": "0.0.
|
|
47
|
-
"@harnspec/cli-darwin-arm64": "0.0.
|
|
48
|
-
"@harnspec/cli-linux-x64": "0.0.
|
|
49
|
-
"@harnspec/cli-
|
|
46
|
+
"@harnspec/cli-darwin-x64": "0.0.3",
|
|
47
|
+
"@harnspec/cli-darwin-arm64": "0.0.3",
|
|
48
|
+
"@harnspec/cli-linux-x64": "0.0.3",
|
|
49
|
+
"@harnspec/cli-linux-arm64": "0.0.3",
|
|
50
|
+
"@harnspec/cli-windows-x64": "0.0.3"
|
|
50
51
|
}
|
|
51
52
|
}
|