pandev 2.4.13 → 2.5.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/pandev.js +7 -5
  2. package/package.json +5 -4
package/bin/pandev.js CHANGED
@@ -11,6 +11,7 @@ const PLATFORMS = {
11
11
  'darwin arm64': '@pandev_metrics/cli-darwin-arm64',
12
12
  'darwin x64': '@pandev_metrics/cli-darwin-x64',
13
13
  'linux x64': '@pandev_metrics/cli-linux-x64',
14
+ 'win32 x64': '@pandev_metrics/cli-win32-x64',
14
15
  };
15
16
 
16
17
  const key = `${process.platform} ${process.arch}`;
@@ -24,16 +25,17 @@ if (args[0] === '--version' || args[0] === '-v' || args[0] === 'version') {
24
25
  const pkgName = PLATFORMS[key];
25
26
  if (!pkgName) {
26
27
  console.error(`pandev: prebuilt binary for "${key}" is not published to npm yet.`);
27
- if (process.platform === 'win32') {
28
- console.error('On Windows install the beta via PowerShell:');
29
- console.error(' iwr https://raw.githubusercontent.com/pandev-metriks/homebrew-pandev-cli-beta/main/install-experimental.ps1 -UseBasicParsing | iex');
30
- }
28
+ console.error('Supported: macOS arm64/x64, Linux x64, Windows x64.');
31
29
  process.exit(1);
32
30
  }
33
31
 
34
32
  let bin;
35
33
  try {
36
- bin = path.join(path.dirname(require.resolve(pkgName + '/package.json')), 'bin', 'pandev');
34
+ const root = path.dirname(require.resolve(pkgName + '/package.json'));
35
+ // На Windows app-image кладёт лаунчер в корень пакета, на unix — в bin/
36
+ bin = process.platform === 'win32'
37
+ ? path.join(root, 'pandev.exe')
38
+ : path.join(root, 'bin', 'pandev');
37
39
  } catch (e) {
38
40
  console.error(`pandev: platform package ${pkgName} is not installed.`);
39
41
  console.error('npm skips it when os/cpu do not match; reinstall with matching platform,');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pandev",
3
- "version": "2.4.13",
3
+ "version": "2.5.1",
4
4
  "description": "Local report on what your AI agents cost — by task, branch, prompt and file. No login, no daemon, no network.",
5
5
  "bin": {
6
6
  "pandev": "bin/pandev.js"
@@ -22,8 +22,9 @@
22
22
  "usage"
23
23
  ],
24
24
  "optionalDependencies": {
25
- "@pandev_metrics/cli-darwin-arm64": "2.4.13",
26
- "@pandev_metrics/cli-darwin-x64": "2.4.13",
27
- "@pandev_metrics/cli-linux-x64": "2.4.13"
25
+ "@pandev_metrics/cli-darwin-arm64": "2.5.1",
26
+ "@pandev_metrics/cli-darwin-x64": "2.5.1",
27
+ "@pandev_metrics/cli-linux-x64": "2.5.1",
28
+ "@pandev_metrics/cli-win32-x64": "2.5.1"
28
29
  }
29
30
  }