@synth1s/cloak 2.4.0 → 2.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.
Files changed (3) hide show
  1. package/README.md +16 -0
  2. package/package.json +1 -1
  3. package/src/cli.js +4 -0
package/README.md CHANGED
@@ -63,6 +63,8 @@ claude -a home # in another terminal, at the same time
63
63
  | `cloak whoami` | Which cloak are you wearing? |
64
64
  | `cloak delete <name>` | Discard a cloak |
65
65
  | `cloak rename <old> <new>` | Rename a cloak |
66
+ | `cloak bind <name>` | Bind this directory to a cloak |
67
+ | `cloak unbind` | Remove directory binding |
66
68
 
67
69
  With shell integration (`eval "$(cloak init)"`):
68
70
 
@@ -85,6 +87,20 @@ claude -a home
85
87
 
86
88
  Each account is a completely isolated directory. No file overlap, no token conflicts.
87
89
 
90
+ ## Auto-switch by directory
91
+
92
+ Bind a cloak to a project directory. Claude automatically uses the right account.
93
+
94
+ ```bash
95
+ cd ~/projects/company
96
+ cloak bind work
97
+
98
+ cd ~/projects/personal
99
+ cloak bind home
100
+ ```
101
+
102
+ From now on, `claude` in those directories uses the bound account — no manual switch needed.
103
+
88
104
  ## Context bar
89
105
 
90
106
  Every command shows which identity is active:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synth1s/cloak",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "Cloak your Claude. Switch identities in seconds.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -37,6 +37,10 @@ Quick start:
37
37
  cloak switch work Switch to a cloak
38
38
  cloak list See all your cloaks
39
39
 
40
+ Auto-switch by directory:
41
+ cloak bind work Bind current directory to a cloak
42
+ cd ~/project && claude Auto-uses the bound cloak
43
+
40
44
  Shell integration (recommended):
41
45
  eval "$(cloak init)" Add to .bashrc/.zshrc for:
42
46
  claude -a work Switch and launch Claude in one step