yaver-cli 1.99.123 → 1.99.125

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/package.json +1 -1
  2. package/src/index.js +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yaver-cli",
3
- "version": "1.99.123",
3
+ "version": "1.99.125",
4
4
  "mcpName": "io.github.kivanccakmak/yaver",
5
5
  "description": "Unified npm bootstrap for the Yaver agent, SDK injection, and local-first developer runtime",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -116,6 +116,14 @@ async function runPushCli(args) {
116
116
  async function runUnified(args) {
117
117
  const command = args[0];
118
118
 
119
+ // Mark agent commands that originate from the npm bootstrap so the
120
+ // Go binary can keep install/update behavior aligned with the actual
121
+ // distribution path (`yaver-cli` via npm) instead of guessing from
122
+ // argv[0] or filesystem layout.
123
+ process.env.YAVER_INSTALL_SOURCE = 'npm';
124
+ process.env.YAVER_NPM_PACKAGE = PACKAGE.name;
125
+ process.env.YAVER_NPM_VERSION = PACKAGE.version;
126
+
119
127
  if (!command || command === '--help' || command === '-h' || command === 'help') {
120
128
  console.log(UNIFIED_HELP);
121
129
  process.exit(0);