@synth1s/cloak 2.0.0 → 2.0.2

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": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Cloak your Claude. Switch identities in seconds.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -24,6 +24,20 @@ program
24
24
  .name('cloak')
25
25
  .description('Cloak your Claude. Switch identities in seconds.')
26
26
  .version(pkg.version)
27
+ .addHelpText('after', `
28
+ Quick start:
29
+ cloak create work Save your current Claude session
30
+ cloak create home Save another session
31
+ cloak switch work Switch to a cloak
32
+ cloak list See all your cloaks
33
+
34
+ Shell integration (recommended):
35
+ eval "$(cloak init)" Add to .bashrc/.zshrc for:
36
+ claude -a work Switch and launch Claude in one step
37
+ claude account switch work Same as cloak switch
38
+ claude account list Same as cloak list
39
+
40
+ Learn more: https://github.com/synth1s/cloak`)
27
41
 
28
42
  program
29
43
  .command('create [name]')
@@ -37,10 +51,10 @@ program
37
51
  .command('switch <name>')
38
52
  .alias('use')
39
53
  .description('Wear a different cloak')
40
- .addOption(new Option('--print-env').hideHelp())
41
- .action((name, opts) => {
42
- if (!opts.printEnv) renderContextBar('switch')
43
- return switchAccount(name, { printEnv: opts.printEnv })
54
+ .action((name) => {
55
+ const printEnv = process.argv.includes('--print-env')
56
+ if (!printEnv) renderContextBar('switch')
57
+ return switchAccount(name, { printEnv })
44
58
  })
45
59
 
46
60
  program
@@ -85,7 +99,7 @@ program
85
99
 
86
100
  program
87
101
  .command('init')
88
- .description('Output shell integration code (use with eval)')
102
+ .description('Output shell integration code')
89
103
  .action(initShell)
90
104
 
91
105
  program.parse()
@@ -2,12 +2,12 @@ import chalk from 'chalk'
2
2
 
3
3
  // Icons — consistent across all messages
4
4
  const icon = {
5
- success: chalk.green(''),
6
- error: chalk.red(''),
7
- warning: chalk.yellow(''),
5
+ success: chalk.green('+'),
6
+ error: chalk.red('x'),
7
+ warning: chalk.yellow('!'),
8
8
  tip: chalk.yellow('*'),
9
- active: chalk.green(''),
10
- inactive: chalk.dim(''),
9
+ active: chalk.green('>'),
10
+ inactive: ' ',
11
11
  }
12
12
 
13
13
  // --- Success messages ---