@hasna/accounts 0.1.3 → 0.1.5

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/types.d.ts CHANGED
@@ -11,6 +11,7 @@ export declare const toolDefSchema: z.ZodObject<{
11
11
  bin: z.ZodString;
12
12
  loginArgs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13
13
  loginHint: z.ZodOptional<z.ZodString>;
14
+ resumeArgs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14
15
  accountFile: z.ZodOptional<z.ZodString>;
15
16
  emailPath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16
17
  }, "strip", z.ZodTypeAny, {
@@ -22,6 +23,7 @@ export declare const toolDefSchema: z.ZodObject<{
22
23
  extraEnv?: Record<string, string> | undefined;
23
24
  loginArgs?: string[] | undefined;
24
25
  loginHint?: string | undefined;
26
+ resumeArgs?: string[] | undefined;
25
27
  accountFile?: string | undefined;
26
28
  emailPath?: string[] | undefined;
27
29
  }, {
@@ -33,6 +35,7 @@ export declare const toolDefSchema: z.ZodObject<{
33
35
  extraEnv?: Record<string, string> | undefined;
34
36
  loginArgs?: string[] | undefined;
35
37
  loginHint?: string | undefined;
38
+ resumeArgs?: string[] | undefined;
36
39
  accountFile?: string | undefined;
37
40
  emailPath?: string[] | undefined;
38
41
  }>;
@@ -113,6 +116,7 @@ export declare const storeSchema: z.ZodObject<{
113
116
  bin: z.ZodString;
114
117
  loginArgs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
115
118
  loginHint: z.ZodOptional<z.ZodString>;
119
+ resumeArgs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
116
120
  accountFile: z.ZodOptional<z.ZodString>;
117
121
  emailPath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
118
122
  }, "strip", z.ZodTypeAny, {
@@ -124,6 +128,7 @@ export declare const storeSchema: z.ZodObject<{
124
128
  extraEnv?: Record<string, string> | undefined;
125
129
  loginArgs?: string[] | undefined;
126
130
  loginHint?: string | undefined;
131
+ resumeArgs?: string[] | undefined;
127
132
  accountFile?: string | undefined;
128
133
  emailPath?: string[] | undefined;
129
134
  }, {
@@ -135,6 +140,7 @@ export declare const storeSchema: z.ZodObject<{
135
140
  extraEnv?: Record<string, string> | undefined;
136
141
  loginArgs?: string[] | undefined;
137
142
  loginHint?: string | undefined;
143
+ resumeArgs?: string[] | undefined;
138
144
  accountFile?: string | undefined;
139
145
  emailPath?: string[] | undefined;
140
146
  }>, "many">>;
@@ -160,6 +166,7 @@ export declare const storeSchema: z.ZodObject<{
160
166
  extraEnv?: Record<string, string> | undefined;
161
167
  loginArgs?: string[] | undefined;
162
168
  loginHint?: string | undefined;
169
+ resumeArgs?: string[] | undefined;
163
170
  accountFile?: string | undefined;
164
171
  emailPath?: string[] | undefined;
165
172
  }[];
@@ -185,6 +192,7 @@ export declare const storeSchema: z.ZodObject<{
185
192
  extraEnv?: Record<string, string> | undefined;
186
193
  loginArgs?: string[] | undefined;
187
194
  loginHint?: string | undefined;
195
+ resumeArgs?: string[] | undefined;
188
196
  accountFile?: string | undefined;
189
197
  emailPath?: string[] | undefined;
190
198
  }[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,8BAA8B;AAC9B,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAE5C,uEAAuE;AACvE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWxB,CAAC;AAEH;;;;;GAKG;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAA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,OAAO,EAAE,MAAM;CAI5B"}
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@hasna/accounts",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
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",
7
7
  "types": "dist/index.d.ts",
8
8
  "bin": {
9
- "accounts": "dist/cli.js"
9
+ "accounts": "dist/cli.js",
10
+ "accounts-mcp": "dist/mcp.js"
10
11
  },
11
12
  "exports": {
12
13
  ".": {
@@ -20,7 +21,7 @@
20
21
  "README.md"
21
22
  ],
22
23
  "scripts": {
23
- "build": "rm -rf dist && bun build src/cli.ts --outdir dist --target node && bun build src/index.ts --outdir dist --target node && tsc --emitDeclarationOnly --outDir dist",
24
+ "build": "rm -rf dist && bun build src/cli.ts --outdir dist --target node && bun build src/mcp.ts --outdir dist --target node && bun build src/index.ts --outdir dist --target node && tsc --emitDeclarationOnly --outDir dist",
24
25
  "dev": "bun run src/cli.ts",
25
26
  "typecheck": "tsc --noEmit",
26
27
  "test": "bun test"
@@ -60,6 +61,7 @@
60
61
  "author": "Andrei Hasna <andrei@hasna.com>",
61
62
  "license": "Apache-2.0",
62
63
  "dependencies": {
64
+ "@modelcontextprotocol/sdk": "^1.27.1",
63
65
  "chalk": "^5.4.1",
64
66
  "commander": "^13.1.0",
65
67
  "zod": "^3.24.2"