@synth1s/cloak 1.6.0 → 1.7.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.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Cloak your Claude. Switch identities in seconds.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -42,6 +42,13 @@ export function getInitScript() {
42
42
  ' command claude "$@"',
43
43
  ' fi',
44
44
  ' else',
45
+ ' if [ -n "$CLAUDE_CONFIG_DIR" ]; then',
46
+ ' local _cloak_name',
47
+ ' _cloak_name=$(command cloak whoami 2>/dev/null)',
48
+ ' if [ -n "$_cloak_name" ]; then',
49
+ ' echo "🔹 Wearing cloak \\"$_cloak_name\\"" >&2',
50
+ ' fi',
51
+ ' fi',
45
52
  ' command claude "$@"',
46
53
  ' fi',
47
54
  '}',
@@ -127,6 +127,12 @@ export function shellIntegrationTip(rcFile) {
127
127
  chalk.dim(` echo 'eval "$(cloak init)"' >> ${file} && source ${file}\n\n`)
128
128
  }
129
129
 
130
+ // --- Active cloak indicator (shown on claude launch) ---
131
+
132
+ export function wearingCloak(name) {
133
+ return `🔹 Wearing cloak "${name}"`
134
+ }
135
+
130
136
  // --- Print-env (stdout, no chalk — evaluated by shell) ---
131
137
 
132
138
  export function printEnvExport(dir) {