@synth1s/cloak 1.4.0 → 1.4.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": "@synth1s/cloak",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Cloak your Claude. Switch identities in seconds.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -59,14 +59,8 @@ export async function switchAccount(name, options = {}) {
59
59
  } else {
60
60
  console.log(chalk.dim(` Already installed in ${rcFile}`))
61
61
  }
62
- console.log(chalk.dim(`\n Reload your shell to activate:`))
63
- console.log(chalk.dim(` source ${rcFile}\n`))
64
- console.log(chalk.dim(` Then run:`))
65
- console.log(chalk.dim(` claude account switch ${name}\n`))
62
+ console.log(chalk.dim(`\n Run: `) + chalk.white(`source ${rcFile} && cloak switch ${name}\n`))
66
63
  } else {
67
- console.log(chalk.dim('\n Add this to your shell config:'))
68
- console.log(` eval "$(cloak init)"`)
69
- console.log(chalk.dim('\n Then reload and run:'))
70
- console.log(chalk.dim(` claude account switch ${name}\n`))
64
+ console.log(chalk.dim(`\n Run: `) + chalk.white(`echo 'eval "$(cloak init)"' >> ${getRcFilePath()} && source ${getRcFilePath()} && cloak switch ${name}\n`))
71
65
  }
72
66
  }