@opencoven/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/README.md +6 -1
- package/bin/coven.js +4 -3
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -13,4 +13,9 @@ The wrapper installs platform-specific native packages through `optionalDependen
|
|
|
13
13
|
|
|
14
14
|
## v0 platform scope
|
|
15
15
|
|
|
16
|
-
The first publishing proof targets
|
|
16
|
+
The first publishing proof targets:
|
|
17
|
+
|
|
18
|
+
- `@opencoven/cli-macos` for macOS Apple Silicon
|
|
19
|
+
- `@opencoven/cli-linux-x64` for glibc-based Linux x64 distributions
|
|
20
|
+
|
|
21
|
+
Alpine Linux is not supported.
|
package/bin/coven.js
CHANGED
|
@@ -5,7 +5,8 @@ import { createRequire } from 'node:module';
|
|
|
5
5
|
const require = createRequire(import.meta.url);
|
|
6
6
|
|
|
7
7
|
const PLATFORM_PACKAGES = {
|
|
8
|
-
'darwin-arm64': '@opencoven/cli-macos'
|
|
8
|
+
'darwin-arm64': '@opencoven/cli-macos',
|
|
9
|
+
'linux-x64': '@opencoven/cli-linux-x64'
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
const binaryName = process.platform === 'win32' ? 'coven.exe' : 'coven';
|
|
@@ -19,7 +20,7 @@ function wrapperVersion() {
|
|
|
19
20
|
function resolveBinary() {
|
|
20
21
|
if (!packageName) {
|
|
21
22
|
throw new Error(
|
|
22
|
-
`Unsupported platform ${platformKey}. Coven v0 publishes native npm packages for macOS Apple Silicon
|
|
23
|
+
`Unsupported platform ${platformKey}. Coven v0 publishes native npm packages for macOS Apple Silicon and glibc-based Linux x64.`
|
|
23
24
|
);
|
|
24
25
|
}
|
|
25
26
|
|
|
@@ -27,7 +28,7 @@ function resolveBinary() {
|
|
|
27
28
|
return require.resolve(`${packageName}/bin/${binaryName}`);
|
|
28
29
|
} catch (error) {
|
|
29
30
|
throw new Error(
|
|
30
|
-
`Could not find native Coven package ${packageName}. Reinstall @opencoven/cli so npm can install the
|
|
31
|
+
`Could not find native Coven package ${packageName}. Reinstall @opencoven/cli so npm can install the optional dependency for ${platformKey}. Linux x64 support requires a glibc-based distribution; Alpine is not supported. Original error: ${error.message}`
|
|
31
32
|
);
|
|
32
33
|
}
|
|
33
34
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencoven/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Coven CLI wrapper for the native Rust binary.",
|
|
6
6
|
"type": "module",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"url": "git+https://github.com/OpenCoven/coven.git"
|
|
18
18
|
},
|
|
19
19
|
"optionalDependencies": {
|
|
20
|
-
"@opencoven/cli-macos": "0.0.
|
|
20
|
+
"@opencoven/cli-macos": "0.0.3",
|
|
21
|
+
"@opencoven/cli-linux-x64": "0.0.3"
|
|
21
22
|
},
|
|
22
23
|
"engines": {
|
|
23
24
|
"node": ">=18"
|