@synth1s/cloak 1.5.0 → 1.5.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 +1 -1
- package/src/lib/messages.js +21 -22
package/package.json
CHANGED
package/src/lib/messages.js
CHANGED
|
@@ -5,7 +5,6 @@ const icon = {
|
|
|
5
5
|
success: chalk.green('✔'),
|
|
6
6
|
error: chalk.red('✖'),
|
|
7
7
|
warning: chalk.yellow('⚠'),
|
|
8
|
-
info: chalk.blue('ℹ'),
|
|
9
8
|
tip: '💡',
|
|
10
9
|
active: chalk.green('●'),
|
|
11
10
|
inactive: chalk.dim('○'),
|
|
@@ -14,7 +13,7 @@ const icon = {
|
|
|
14
13
|
// --- Success messages ---
|
|
15
14
|
|
|
16
15
|
export function cloakCreated(name) {
|
|
17
|
-
return `${icon.success} Cloak ${chalk.bold(`"${name}"`)} created
|
|
16
|
+
return `${icon.success} Cloak ${chalk.bold(`"${name}"`)} created. Ready to wear!`
|
|
18
17
|
}
|
|
19
18
|
|
|
20
19
|
export function cloakSwitched(name) {
|
|
@@ -26,11 +25,11 @@ export function cloakDiscarded(name) {
|
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
export function cloakRenamed(oldName, newName) {
|
|
29
|
-
return `${icon.success} Cloak ${chalk.bold(`"${oldName}"`)}
|
|
28
|
+
return `${icon.success} Cloak ${chalk.bold(`"${oldName}"`)} is now ${chalk.bold(`"${newName}"`)}.`
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
export function shellIntegrationAdded(rcFile) {
|
|
33
|
-
return `${icon.success} Shell integration added to ${chalk.bold(rcFile)}
|
|
32
|
+
return `${icon.success} All set! Shell integration added to ${chalk.bold(rcFile)}.`
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
// --- Error messages ---
|
|
@@ -40,7 +39,7 @@ export function validationError(error) {
|
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
export function accountNotFound(name) {
|
|
43
|
-
return `${icon.error}
|
|
42
|
+
return `${icon.error} Couldn't find a cloak named ${chalk.bold(`"${name}"`)}.`
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
export function noActiveSession() {
|
|
@@ -48,35 +47,35 @@ export function noActiveSession() {
|
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
export function cannotDiscardActive() {
|
|
51
|
-
return `${icon.error}
|
|
50
|
+
return `${icon.error} You're currently wearing this cloak.`
|
|
52
51
|
}
|
|
53
52
|
|
|
54
53
|
export function accountAlreadyInUse(name) {
|
|
55
|
-
return `${icon.error}
|
|
54
|
+
return `${icon.error} A cloak named ${chalk.bold(`"${name}"`)} already exists.`
|
|
56
55
|
}
|
|
57
56
|
|
|
58
57
|
// --- Warning messages ---
|
|
59
58
|
|
|
60
59
|
export function alreadyWearing(name) {
|
|
61
|
-
return `${icon.warning}
|
|
60
|
+
return `${icon.warning} You're already wearing cloak ${chalk.bold(`"${name}"`)}.`
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
export function switchRequired() {
|
|
65
|
-
return `${icon.warning}
|
|
64
|
+
return `${icon.warning} Quick setup needed to enable switching.`
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
export function updateSessionAfterRename(newName) {
|
|
69
|
-
return `${icon.warning}
|
|
68
|
+
return `${icon.warning} To keep using this cloak, run: ${chalk.white(`claude account switch ${newName}`)}`
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
// --- Info / hints ---
|
|
73
72
|
|
|
74
73
|
export function suggestCreate(name) {
|
|
75
|
-
return chalk.dim(`
|
|
74
|
+
return chalk.dim(` Try: claude account create ${name || '<name>'}`)
|
|
76
75
|
}
|
|
77
76
|
|
|
78
77
|
export function suggestSwitchFirst() {
|
|
79
|
-
return chalk.dim(' Switch to
|
|
78
|
+
return chalk.dim(' Switch to a different cloak first, then try again.')
|
|
80
79
|
}
|
|
81
80
|
|
|
82
81
|
export function loginFirst() {
|
|
@@ -84,11 +83,11 @@ export function loginFirst() {
|
|
|
84
83
|
}
|
|
85
84
|
|
|
86
85
|
export function cancelled() {
|
|
87
|
-
return chalk.dim('
|
|
86
|
+
return chalk.dim('No changes made.')
|
|
88
87
|
}
|
|
89
88
|
|
|
90
89
|
export function noCloak() {
|
|
91
|
-
return chalk.dim('No cloak
|
|
90
|
+
return chalk.dim('No cloak active — using default Claude Code config.')
|
|
92
91
|
}
|
|
93
92
|
|
|
94
93
|
export function noCloaksYet() {
|
|
@@ -96,7 +95,7 @@ export function noCloaksYet() {
|
|
|
96
95
|
}
|
|
97
96
|
|
|
98
97
|
export function accountListHeader() {
|
|
99
|
-
return chalk.bold('\
|
|
98
|
+
return chalk.bold('\nYour Cloaks\n')
|
|
100
99
|
}
|
|
101
100
|
|
|
102
101
|
export function accountListItem(name, isActive) {
|
|
@@ -107,13 +106,13 @@ export function accountListItem(name, isActive) {
|
|
|
107
106
|
}
|
|
108
107
|
|
|
109
108
|
export function alreadyInstalled(rcFile) {
|
|
110
|
-
return chalk.dim(` Already
|
|
109
|
+
return chalk.dim(` Already set up in ${rcFile} — you're good!`)
|
|
111
110
|
}
|
|
112
111
|
|
|
113
112
|
// --- Setup instructions ---
|
|
114
113
|
|
|
115
114
|
export function setupRunCommand(rcFile, name) {
|
|
116
|
-
return chalk.dim('\n Run: ') + chalk.white(`source ${rcFile} && cloak switch ${name}\n`)
|
|
115
|
+
return chalk.dim('\n Almost there! Run: ') + chalk.white(`source ${rcFile} && cloak switch ${name}\n`)
|
|
117
116
|
}
|
|
118
117
|
|
|
119
118
|
export function setupManualCommand(rcFile, name) {
|
|
@@ -123,7 +122,7 @@ export function setupManualCommand(rcFile, name) {
|
|
|
123
122
|
// --- Tip ---
|
|
124
123
|
|
|
125
124
|
export function shellIntegrationTip() {
|
|
126
|
-
return chalk.dim(
|
|
125
|
+
return chalk.dim(`\n${icon.tip} Tip: Enable "claude -a" and "claude account" with:\n`) +
|
|
127
126
|
chalk.dim(' echo \'eval "$(cloak init)"\' >> ~/.bashrc && source ~/.bashrc\n\n')
|
|
128
127
|
}
|
|
129
128
|
|
|
@@ -140,10 +139,10 @@ export function printEnvEcho(name) {
|
|
|
140
139
|
// --- Prompt messages ---
|
|
141
140
|
|
|
142
141
|
export const prompts = {
|
|
143
|
-
accountName: '
|
|
144
|
-
overwriteConfirm: (name) => `Cloak "${name}" already exists.
|
|
145
|
-
deleteConfirm: (name) => `
|
|
142
|
+
accountName: 'Name your cloak:',
|
|
143
|
+
overwriteConfirm: (name) => `Cloak "${name}" already exists. Replace it?`,
|
|
144
|
+
deleteConfirm: (name) => `Remove cloak "${name}"? This can't be undone.`,
|
|
146
145
|
setupChoice: 'How would you like to proceed?',
|
|
147
146
|
setupAuto: 'Set it up now (recommended)',
|
|
148
|
-
setupManual: 'Show manual
|
|
147
|
+
setupManual: 'Show me the manual steps',
|
|
149
148
|
}
|