acpx 0.1.12 → 0.1.13

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/dist/cli.js +4 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -2048,8 +2048,10 @@ function resolveVersionFromAncestors(startDir) {
2048
2048
  }
2049
2049
  }
2050
2050
  function resolveAcpxVersion(params) {
2051
- const envVersion = parseVersion((params?.env ?? process.env).npm_package_version);
2052
- if (envVersion) {
2051
+ const env = params?.env ?? process.env;
2052
+ const envPackageName = parseVersion(env.npm_package_name);
2053
+ const envVersion = parseVersion(env.npm_package_version);
2054
+ if (envPackageName === "acpx" && envVersion) {
2053
2055
  return envVersion;
2054
2056
  }
2055
2057
  if (params?.packageJsonPath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acpx",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Headless CLI client for the Agent Client Protocol (ACP) — talk to coding agents from the command line",
5
5
  "type": "module",
6
6
  "files": [