agenr 0.9.6 → 0.9.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.7 - 2026-02-27
4
+
5
+ ### Fixed
6
+ - `agenr init` no longer pins MCP config to a version-specific path. It now
7
+ resolves the `agenr` shim or binary on PATH so upgrades take effect
8
+ automatically (#294).
9
+
3
10
  ## 0.9.6 - 2026-02-27
4
11
 
5
12
  ### Added
package/dist/cli-main.js CHANGED
@@ -19978,7 +19978,22 @@ function execAsync(cmd, args, options) {
19978
19978
  function escapeTomlString(value) {
19979
19979
  return value.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\r/g, "\\r").replace(/\n/g, "\\n").replace(/\t/g, "\\t");
19980
19980
  }
19981
+ function logInitDebug(message) {
19982
+ if (process.env.AGENR_DEBUG === "1") {
19983
+ console.debug(`[agenr init] ${message}`);
19984
+ }
19985
+ }
19981
19986
  function resolveAgenrCommand() {
19987
+ const agenrShim = findBinaryPath("agenr");
19988
+ if (agenrShim) {
19989
+ return {
19990
+ command: agenrShim,
19991
+ baseArgs: []
19992
+ };
19993
+ }
19994
+ logInitDebug(
19995
+ "agenr binary not found on PATH; falling back to process.execPath + process.argv[1], which may pin MCP config to the current installed version."
19996
+ );
19982
19997
  const nodeBin = process.execPath;
19983
19998
  const scriptPath = process.argv[1];
19984
19999
  if (!scriptPath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agenr",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "openclaw": {
5
5
  "extensions": [
6
6
  "dist/openclaw-plugin/index.js"