@myvillage/cli 1.46.0 → 1.46.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myvillage/cli",
3
- "version": "1.46.0",
3
+ "version": "1.46.1",
4
4
  "description": "MyVillageOS CLI for community developers",
5
5
  "type": "module",
6
6
  "bin": {
@@ -710,7 +710,8 @@ export async function agentEditLocalCommand(name) {
710
710
  }
711
711
 
712
712
  const promptPath = join(getAgentDir(name), 'prompt.md');
713
- const editor = process.env.EDITOR || process.env.VISUAL || 'nano';
713
+ const defaultEditor = process.platform === 'win32' ? 'notepad' : 'nano';
714
+ const editor = process.env.EDITOR || process.env.VISUAL || defaultEditor;
714
715
 
715
716
  console.log(brand.teal(` Opening ${promptPath} in ${editor}...`));
716
717
  console.log(brand.teal(' Changes will be picked up on the next agent loop iteration.\n'));
@@ -718,7 +719,10 @@ export async function agentEditLocalCommand(name) {
718
719
  try {
719
720
  execSync(`${editor} "${promptPath}"`, { stdio: 'inherit' });
720
721
  } catch (err) {
721
- console.log(chalk.red(` \u2717 Failed to open editor: ${err.message}\n`));
722
+ console.log(chalk.red(` \u2717 Failed to open editor (${editor}): ${err.message}`));
723
+ console.log(brand.teal(` Open this file in any editor instead:`));
724
+ console.log(` ${promptPath}`);
725
+ console.log(brand.teal(` Or set your preferred editor: set EDITOR="code --wait" (Windows) / export EDITOR=vim (macOS/Linux)\n`));
722
726
  }
723
727
  }
724
728