claude-use 9.10.0 → 9.10.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/dist/cli.cjs CHANGED
@@ -33243,7 +33243,7 @@ var init_package = __esm({
33243
33243
  "package.json"() {
33244
33244
  package_default = {
33245
33245
  name: "claude-use",
33246
- version: "9.10.0",
33246
+ version: "9.10.1",
33247
33247
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
33248
33248
  license: "MIT",
33249
33249
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -138415,14 +138415,17 @@ function createMcpServer(identity, ports) {
138415
138415
  });
138416
138416
  return mcp;
138417
138417
  }
138418
- async function serveMcp(mcp, transport, whileConnected) {
138418
+ async function serveMcp(mcp, transport, options = {}) {
138419
138419
  const closed = new Promise((resolve2) => {
138420
138420
  mcp.server.onclose = resolve2;
138421
138421
  });
138422
138422
  await mcp.connect(transport);
138423
- const stop = whileConnected?.(() => {
138423
+ const stop = options.whileConnected?.(() => {
138424
138424
  void mcp.server.sendToolListChanged();
138425
138425
  });
138426
+ void options.inputEnded?.then(async () => {
138427
+ await mcp.close();
138428
+ });
138426
138429
  await closed;
138427
138430
  stop?.();
138428
138431
  }
@@ -138572,7 +138575,12 @@ function registerMcpCommand(program2, deps) {
138572
138575
  const flags = { writes: options.allowWrites === true, remoteControl: options.allowRemoteControl === true };
138573
138576
  const inForce = () => effectiveMcpPermissions(flags, readStoredMcpPermissions(deps.paths));
138574
138577
  const server = createMcpServer({ name: "agent-shim", version: package_default.version }, doorMcpPorts(deps.paths, inForce));
138575
- await serveMcp(server, new StdioServerTransport(), (announce) => watchMcpPermissions(deps.paths, announce));
138578
+ await serveMcp(server, new StdioServerTransport(), {
138579
+ whileConnected: (announce) => watchMcpPermissions(deps.paths, announce),
138580
+ inputEnded: new Promise((resolve2) => {
138581
+ process.stdin.once("end", resolve2);
138582
+ })
138583
+ });
138576
138584
  });
138577
138585
  withExamples(mcp, ["agent-shim mcp", "agent-shim mcp --allow-writes"]);
138578
138586
  const permissions = withExamples(
package/dist/index.cjs CHANGED
@@ -2663,7 +2663,7 @@ var init_package = __esm({
2663
2663
  "package.json"() {
2664
2664
  package_default = {
2665
2665
  name: "claude-use",
2666
- version: "9.10.0",
2666
+ version: "9.10.1",
2667
2667
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
2668
2668
  license: "MIT",
2669
2669
  author: "Joseph Mearman <joseph@mearman.co.uk>",
package/dist/index.mjs CHANGED
@@ -2639,7 +2639,7 @@ var init_package = __esm({
2639
2639
  "package.json"() {
2640
2640
  package_default = {
2641
2641
  name: "claude-use",
2642
- version: "9.10.0",
2642
+ version: "9.10.1",
2643
2643
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
2644
2644
  license: "MIT",
2645
2645
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -1332,8 +1332,8 @@ declare const HeadroomGlobalConfigSchema: z.ZodObject<{
1332
1332
  targetRatio: z.ZodOptional<z.ZodNumber>;
1333
1333
  ccr: z.ZodOptional<z.ZodEnum<{
1334
1334
  default: "default";
1335
- none: "none";
1336
1335
  lossless: "lossless";
1336
+ none: "none";
1337
1337
  }>>;
1338
1338
  rolloutChannel: z.ZodOptional<z.ZodEnum<{
1339
1339
  beta: "beta";
@@ -1460,8 +1460,8 @@ declare const GlobalConfigSchema: z.ZodObject<{
1460
1460
  targetRatio: z.ZodOptional<z.ZodNumber>;
1461
1461
  ccr: z.ZodOptional<z.ZodEnum<{
1462
1462
  default: "default";
1463
- none: "none";
1464
1463
  lossless: "lossless";
1464
+ none: "none";
1465
1465
  }>>;
1466
1466
  rolloutChannel: z.ZodOptional<z.ZodEnum<{
1467
1467
  beta: "beta";
@@ -3859,12 +3859,12 @@ declare const CheckReportJsonSchema: z.ZodObject<{
3859
3859
  identity: z.ZodObject<{
3860
3860
  name: z.ZodNullable<z.ZodString>;
3861
3861
  source: z.ZodEnum<{
3862
+ env: "env";
3863
+ none: "none";
3862
3864
  "config-dir-escape-hatch": "config-dir-escape-hatch";
3863
3865
  argv: "argv";
3864
- env: "env";
3865
3866
  "directory-pin": "directory-pin";
3866
3867
  "active-identity-file": "active-identity-file";
3867
- none: "none";
3868
3868
  }>;
3869
3869
  }, z.core.$strict>;
3870
3870
  pool: z.ZodOptional<z.ZodObject<{
@@ -3942,11 +3942,11 @@ declare const CheckReportJsonSchema: z.ZodObject<{
3942
3942
  "category-default": "category-default";
3943
3943
  }>;
3944
3944
  category: z.ZodNullable<z.ZodEnum<{
3945
- secret: "secret";
3946
3945
  runtime: "runtime";
3947
3946
  history: "history";
3948
3947
  knowledge: "knowledge";
3949
3948
  settings: "settings";
3949
+ secret: "secret";
3950
3950
  }>>;
3951
3951
  rule: z.ZodOptional<z.ZodObject<{
3952
3952
  key: z.ZodString;
@@ -6440,9 +6440,9 @@ declare function createLifecycleApiRouter(deps: LifecycleApiDeps): {
6440
6440
  current: zod.ZodString;
6441
6441
  latest: zod.ZodString;
6442
6442
  action: zod.ZodEnum<{
6443
+ updated: "updated";
6443
6444
  current: "current";
6444
6445
  available: "available";
6445
- updated: "updated";
6446
6446
  }>;
6447
6447
  }, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
6448
6448
  };
@@ -6689,12 +6689,12 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
6689
6689
  decision: zod.ZodObject<{
6690
6690
  identity: zod.ZodOptional<zod.ZodString>;
6691
6691
  identitySource: zod.ZodEnum<{
6692
+ env: "env";
6693
+ none: "none";
6692
6694
  "config-dir-escape-hatch": "config-dir-escape-hatch";
6693
6695
  argv: "argv";
6694
- env: "env";
6695
6696
  "directory-pin": "directory-pin";
6696
6697
  "active-identity-file": "active-identity-file";
6697
- none: "none";
6698
6698
  }>;
6699
6699
  pool: zod.ZodOptional<zod.ZodObject<{
6700
6700
  name: zod.ZodString;
@@ -7068,12 +7068,12 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
7068
7068
  identity: zod.ZodObject<{
7069
7069
  name: zod.ZodNullable<zod.ZodString>;
7070
7070
  source: zod.ZodEnum<{
7071
+ env: "env";
7072
+ none: "none";
7071
7073
  "config-dir-escape-hatch": "config-dir-escape-hatch";
7072
7074
  argv: "argv";
7073
- env: "env";
7074
7075
  "directory-pin": "directory-pin";
7075
7076
  "active-identity-file": "active-identity-file";
7076
- none: "none";
7077
7077
  }>;
7078
7078
  }, zod_v4_core.$strict>;
7079
7079
  pool: zod.ZodOptional<zod.ZodObject<{
@@ -7151,11 +7151,11 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
7151
7151
  "category-default": "category-default";
7152
7152
  }>;
7153
7153
  category: zod.ZodNullable<zod.ZodEnum<{
7154
- secret: "secret";
7155
7154
  runtime: "runtime";
7156
7155
  history: "history";
7157
7156
  knowledge: "knowledge";
7158
7157
  settings: "settings";
7158
+ secret: "secret";
7159
7159
  }>>;
7160
7160
  rule: zod.ZodOptional<zod.ZodObject<{
7161
7161
  key: zod.ZodString;
@@ -7374,9 +7374,10 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
7374
7374
  "global-config": "global-config";
7375
7375
  "config-profile": "config-profile";
7376
7376
  identity: "identity";
7377
+ keychain: "keychain";
7377
7378
  provider: "provider";
7379
+ headroom: "headroom";
7378
7380
  pool: "pool";
7379
- keychain: "keychain";
7380
7381
  "ambient-credential": "ambient-credential";
7381
7382
  "binary-discovery": "binary-discovery";
7382
7383
  "claude-shim": "claude-shim";
@@ -7386,7 +7387,6 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
7386
7387
  "directory-rules": "directory-rules";
7387
7388
  "categories-local": "categories-local";
7388
7389
  "active-identity": "active-identity";
7389
- headroom: "headroom";
7390
7390
  }>;
7391
7391
  subject: zod.ZodOptional<zod.ZodString>;
7392
7392
  severity: zod.ZodEnum<{
@@ -7507,12 +7507,12 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
7507
7507
  decision: zod.ZodObject<{
7508
7508
  identity: zod.ZodOptional<zod.ZodString>;
7509
7509
  identitySource: zod.ZodEnum<{
7510
+ env: "env";
7511
+ none: "none";
7510
7512
  "config-dir-escape-hatch": "config-dir-escape-hatch";
7511
7513
  argv: "argv";
7512
- env: "env";
7513
7514
  "directory-pin": "directory-pin";
7514
7515
  "active-identity-file": "active-identity-file";
7515
- none: "none";
7516
7516
  }>;
7517
7517
  pool: zod.ZodOptional<zod.ZodObject<{
7518
7518
  name: zod.ZodString;
@@ -8849,9 +8849,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
8849
8849
  current: zod.ZodString;
8850
8850
  latest: zod.ZodString;
8851
8851
  action: zod.ZodEnum<{
8852
+ updated: "updated";
8852
8853
  current: "current";
8853
8854
  available: "available";
8854
- updated: "updated";
8855
8855
  }>;
8856
8856
  }, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
8857
8857
  };
@@ -9038,12 +9038,12 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
9038
9038
  identity: zod.ZodObject<{
9039
9039
  name: zod.ZodNullable<zod.ZodString>;
9040
9040
  source: zod.ZodEnum<{
9041
+ env: "env";
9042
+ none: "none";
9041
9043
  "config-dir-escape-hatch": "config-dir-escape-hatch";
9042
9044
  argv: "argv";
9043
- env: "env";
9044
9045
  "directory-pin": "directory-pin";
9045
9046
  "active-identity-file": "active-identity-file";
9046
- none: "none";
9047
9047
  }>;
9048
9048
  }, zod_v4_core.$strict>;
9049
9049
  pool: zod.ZodOptional<zod.ZodObject<{
@@ -9121,11 +9121,11 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
9121
9121
  "category-default": "category-default";
9122
9122
  }>;
9123
9123
  category: zod.ZodNullable<zod.ZodEnum<{
9124
- secret: "secret";
9125
9124
  runtime: "runtime";
9126
9125
  history: "history";
9127
9126
  knowledge: "knowledge";
9128
9127
  settings: "settings";
9128
+ secret: "secret";
9129
9129
  }>>;
9130
9130
  rule: zod.ZodOptional<zod.ZodObject<{
9131
9131
  key: zod.ZodString;
@@ -9344,9 +9344,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
9344
9344
  "global-config": "global-config";
9345
9345
  "config-profile": "config-profile";
9346
9346
  identity: "identity";
9347
+ keychain: "keychain";
9347
9348
  provider: "provider";
9349
+ headroom: "headroom";
9348
9350
  pool: "pool";
9349
- keychain: "keychain";
9350
9351
  "ambient-credential": "ambient-credential";
9351
9352
  "binary-discovery": "binary-discovery";
9352
9353
  "claude-shim": "claude-shim";
@@ -9356,7 +9357,6 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
9356
9357
  "directory-rules": "directory-rules";
9357
9358
  "categories-local": "categories-local";
9358
9359
  "active-identity": "active-identity";
9359
- headroom: "headroom";
9360
9360
  }>;
9361
9361
  subject: zod.ZodOptional<zod.ZodString>;
9362
9362
  severity: zod.ZodEnum<{
@@ -11150,9 +11150,10 @@ declare const DoctorFindingSchema: z.ZodObject<{
11150
11150
  "global-config": "global-config";
11151
11151
  "config-profile": "config-profile";
11152
11152
  identity: "identity";
11153
+ keychain: "keychain";
11153
11154
  provider: "provider";
11155
+ headroom: "headroom";
11154
11156
  pool: "pool";
11155
- keychain: "keychain";
11156
11157
  "ambient-credential": "ambient-credential";
11157
11158
  "binary-discovery": "binary-discovery";
11158
11159
  "claude-shim": "claude-shim";
@@ -11162,7 +11163,6 @@ declare const DoctorFindingSchema: z.ZodObject<{
11162
11163
  "directory-rules": "directory-rules";
11163
11164
  "categories-local": "categories-local";
11164
11165
  "active-identity": "active-identity";
11165
- headroom: "headroom";
11166
11166
  }>;
11167
11167
  subject: z.ZodOptional<z.ZodString>;
11168
11168
  severity: z.ZodEnum<{
@@ -11180,9 +11180,10 @@ declare const DoctorRunOutputSchema: z.ZodObject<{
11180
11180
  "global-config": "global-config";
11181
11181
  "config-profile": "config-profile";
11182
11182
  identity: "identity";
11183
+ keychain: "keychain";
11183
11184
  provider: "provider";
11185
+ headroom: "headroom";
11184
11186
  pool: "pool";
11185
- keychain: "keychain";
11186
11187
  "ambient-credential": "ambient-credential";
11187
11188
  "binary-discovery": "binary-discovery";
11188
11189
  "claude-shim": "claude-shim";
@@ -11192,7 +11193,6 @@ declare const DoctorRunOutputSchema: z.ZodObject<{
11192
11193
  "directory-rules": "directory-rules";
11193
11194
  "categories-local": "categories-local";
11194
11195
  "active-identity": "active-identity";
11195
- headroom: "headroom";
11196
11196
  }>;
11197
11197
  subject: z.ZodOptional<z.ZodString>;
11198
11198
  severity: z.ZodEnum<{
@@ -11213,9 +11213,9 @@ declare const UpdateCheckOutputSchema: z.ZodObject<{
11213
11213
  current: z.ZodString;
11214
11214
  latest: z.ZodString;
11215
11215
  action: z.ZodEnum<{
11216
+ updated: "updated";
11216
11217
  current: "current";
11217
11218
  available: "available";
11218
- updated: "updated";
11219
11219
  }>;
11220
11220
  }, z.core.$strict>;
11221
11221
  /** The Sign in with ChatGPT login's state as `codex status` reports it: no sign-in yet, signed in (with who, whether the plan scope was granted, and when the access token lapses), or a file that cannot be read. */
@@ -11265,12 +11265,12 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
11265
11265
  decision: z.ZodObject<{
11266
11266
  identity: z.ZodOptional<z.ZodString>;
11267
11267
  identitySource: z.ZodEnum<{
11268
+ env: "env";
11269
+ none: "none";
11268
11270
  "config-dir-escape-hatch": "config-dir-escape-hatch";
11269
11271
  argv: "argv";
11270
- env: "env";
11271
11272
  "directory-pin": "directory-pin";
11272
11273
  "active-identity-file": "active-identity-file";
11273
- none: "none";
11274
11274
  }>;
11275
11275
  pool: z.ZodOptional<z.ZodObject<{
11276
11276
  name: z.ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-use",
3
- "version": "9.10.0",
3
+ "version": "9.10.1",
4
4
  "description": "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
5
5
  "license": "MIT",
6
6
  "author": "Joseph Mearman <joseph@mearman.co.uk>",