@opencoven/cli 0.0.54 → 0.1.1

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.
Files changed (2) hide show
  1. package/bin/coven.js +4 -8
  2. package/package.json +4 -4
package/bin/coven.js CHANGED
@@ -14,10 +14,6 @@ const binaryName = process.platform === 'win32' ? 'coven.exe' : 'coven';
14
14
  const platformKey = `${process.platform}-${process.arch}`;
15
15
  const packageName = PLATFORM_PACKAGES[platformKey];
16
16
 
17
- function wrapperVersion() {
18
- return require('../package.json').version;
19
- }
20
-
21
17
  function resolveBinary() {
22
18
  if (!packageName) {
23
19
  throw new Error(
@@ -42,11 +38,11 @@ try {
42
38
  process.exit(1);
43
39
  }
44
40
 
41
+ // Delegate every argument — including a lone --version/-V — to the native
42
+ // binary, which renders the full `coven vX (engine coven-code …, pinned …)`
43
+ // line. (The wrapper previously short-circuited --version to its own
44
+ // package.json version, which shadowed that output for npm installs.)
45
45
  const args = process.argv.slice(2);
46
- if (args.length === 1 && (args[0] === '--version' || args[0] === '-V')) {
47
- console.log(wrapperVersion());
48
- process.exit(0);
49
- }
50
46
 
51
47
  const child = spawn(binary, args, {
52
48
  stdio: 'inherit',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencoven/cli",
3
- "version": "0.0.54",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "description": "Coven CLI wrapper for the native Rust binary.",
6
6
  "type": "module",
@@ -17,9 +17,9 @@
17
17
  "url": "git+https://github.com/OpenCoven/coven.git"
18
18
  },
19
19
  "optionalDependencies": {
20
- "@opencoven/cli-macos": "0.0.54",
21
- "@opencoven/cli-linux-x64": "0.0.54",
22
- "@opencoven/cli-windows": "0.0.54"
20
+ "@opencoven/cli-macos": "0.1.1",
21
+ "@opencoven/cli-linux-x64": "0.1.1",
22
+ "@opencoven/cli-windows": "0.1.1"
23
23
  },
24
24
  "engines": {
25
25
  "node": ">=18"