@hasna/accounts 0.1.16 → 0.1.17

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/dist/cli.js CHANGED
@@ -42759,7 +42759,7 @@ function currentProfile(toolId) {
42759
42759
  const name = store.current[toolId];
42760
42760
  if (!name)
42761
42761
  return;
42762
- return store.profiles.find((p) => p.name === name);
42762
+ return store.profiles.find((p) => p.name === name && p.tool === toolId);
42763
42763
  }
42764
42764
 
42765
42765
  // src/lib/claude-auth.ts
package/dist/index.js CHANGED
@@ -5031,7 +5031,7 @@ function currentProfile(toolId) {
5031
5031
  const name = store.current[toolId];
5032
5032
  if (!name)
5033
5033
  return;
5034
- return store.profiles.find((p) => p.name === name);
5034
+ return store.profiles.find((p) => p.name === name && p.tool === toolId);
5035
5035
  }
5036
5036
  // src/lib/apply-lock.ts
5037
5037
  import { closeSync, existsSync as existsSync7, mkdirSync as mkdirSync6, openSync, unlinkSync as unlinkSync2, writeFileSync as writeFileSync4 } from "node:fs";
package/dist/mcp.js CHANGED
@@ -17059,7 +17059,7 @@ function currentProfile(toolId) {
17059
17059
  const name = store.current[toolId];
17060
17060
  if (!name)
17061
17061
  return;
17062
- return store.profiles.find((p) => p.name === name);
17062
+ return store.profiles.find((p) => p.name === name && p.tool === toolId);
17063
17063
  }
17064
17064
 
17065
17065
  // src/lib/claude-auth.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/accounts",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Manage and switch between multiple Claude Code (and other AI coding tool) profiles/accounts locally — isolated config dirs, per-account email, one-command switching.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",