@opencoven/cli 0.0.10 → 0.0.12

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 CHANGED
@@ -2,20 +2,24 @@
2
2
 
3
3
  Node wrapper for the native Coven Rust CLI.
4
4
 
5
- After an approved v0 release is published for macOS Apple Silicon:
5
+ Install or run the published wrapper:
6
6
 
7
7
  ```sh
8
8
  npm install -g @opencoven/cli
9
9
  coven doctor
10
+
11
+ # or without global install:
12
+ npx @opencoven/cli doctor
10
13
  ```
11
14
 
12
15
  The wrapper installs platform-specific native packages through `optionalDependencies` and runs the matching `coven` binary for your OS and CPU. No Rust toolchain is required for end users after a supported package is published.
13
16
 
14
17
  ## v0 platform scope
15
18
 
16
- The first publishing proof targets:
19
+ Current early-adopter packages target:
17
20
 
18
21
  - `@opencoven/cli-macos` for macOS Apple Silicon
19
22
  - `@opencoven/cli-linux-x64` for glibc-based Linux x64 distributions
23
+ - `@opencoven/cli-windows` for Windows x64
20
24
 
21
25
  Alpine Linux is not supported.
package/bin/coven.js CHANGED
@@ -6,7 +6,8 @@ const require = createRequire(import.meta.url);
6
6
 
7
7
  const PLATFORM_PACKAGES = {
8
8
  'darwin-arm64': '@opencoven/cli-macos',
9
- 'linux-x64': '@opencoven/cli-linux-x64'
9
+ 'linux-x64': '@opencoven/cli-linux-x64',
10
+ 'win32-x64': '@opencoven/cli-windows'
10
11
  };
11
12
 
12
13
  const binaryName = process.platform === 'win32' ? 'coven.exe' : 'coven';
@@ -20,7 +21,7 @@ function wrapperVersion() {
20
21
  function resolveBinary() {
21
22
  if (!packageName) {
22
23
  throw new Error(
23
- `Unsupported platform ${platformKey}. Coven v0 publishes native npm packages for macOS Apple Silicon and glibc-based Linux x64.`
24
+ `Unsupported platform ${platformKey}. Coven v0 publishes native npm packages for macOS Apple Silicon, glibc-based Linux x64, and Windows x64.`
24
25
  );
25
26
  }
26
27
 
@@ -28,7 +29,7 @@ function resolveBinary() {
28
29
  return require.resolve(`${packageName}/bin/${binaryName}`);
29
30
  } catch (error) {
30
31
  throw new Error(
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}`
32
+ `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. Windows support requires x64 Windows. Original error: ${error.message}`
32
33
  );
33
34
  }
34
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencoven/cli",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "private": false,
5
5
  "description": "Coven CLI wrapper for the native Rust binary.",
6
6
  "type": "module",
@@ -17,8 +17,9 @@
17
17
  "url": "git+https://github.com/OpenCoven/coven.git"
18
18
  },
19
19
  "optionalDependencies": {
20
- "@opencoven/cli-macos": "0.0.10",
21
- "@opencoven/cli-linux-x64": "0.0.10"
20
+ "@opencoven/cli-macos": "0.0.12",
21
+ "@opencoven/cli-linux-x64": "0.0.12",
22
+ "@opencoven/cli-windows": "0.0.12"
22
23
  },
23
24
  "engines": {
24
25
  "node": ">=18"