@synth1s/cloak 1.9.9 → 1.10.0

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.9.9",
3
+ "version": "1.10.0",
4
4
  "description": "Cloak your Claude. Switch identities in seconds.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -7,13 +7,15 @@ export function showBanner(columns) {
7
7
 
8
8
  const cols = columns || process.stderr.columns || process.stdout.columns || 80
9
9
  const email = getAccountEmail(name)
10
- const msg = email ? `cloak › ${name} — ${email}` : `cloak › ${name}`
10
+ const label = `cloak › ${name}`
11
+ const emailSuffix = email ? ` — ${email}` : ''
12
+ const msg = label + emailSuffix
11
13
  const inner = cols - 2
12
14
  const contentLen = msg.length + 2
13
15
  const pad = Math.max(0, inner - contentLen)
14
16
 
15
17
  const top = '╭' + '─'.repeat(inner) + '╮'
16
- const mid = '│ ' + chalk.bold(msg) + ' '.repeat(pad) + ' │'
18
+ const mid = '│ ' + chalk.bold(label) + chalk.dim(emailSuffix) + ' '.repeat(pad) + ' │'
17
19
  const bot = '╰' + '─'.repeat(inner) + '╯'
18
20
 
19
21
  process.stdout.write(top + '\n' + mid + '\n' + bot + '\n')
@@ -36,7 +36,7 @@ export async function createAccount(name, options = {}) {
36
36
  const authSource = claudeAuthPath()
37
37
  if (!existsSync(authSource)) {
38
38
  console.error(msg.noActiveSession())
39
- console.log(msg.loginFirst())
39
+ console.error(msg.loginFirst())
40
40
  process.exit(1)
41
41
  return
42
42
  }
@@ -20,7 +20,7 @@ export async function deleteAccount(name, options = {}) {
20
20
 
21
21
  if (getActiveProfile() === name) {
22
22
  console.error(msg.cannotDiscardActive())
23
- console.log(msg.suggestSwitchFirst())
23
+ console.error(msg.suggestSwitchFirst())
24
24
  process.exit(1)
25
25
  return
26
26
  }
@@ -52,7 +52,7 @@ export async function renameAccount(oldName, newName, options = {}) {
52
52
  renameSync(profileDir(oldName), profileDir(newName))
53
53
 
54
54
  if (getActiveProfile() === oldName) {
55
- console.log(msg.updateSessionAfterRename(newName))
55
+ console.error(msg.updateSessionAfterRename(newName))
56
56
  }
57
57
 
58
58
  console.log(msg.cloakRenamed(oldName, newName))