claude-use 9.1.0 → 9.2.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.
@@ -3768,10 +3768,10 @@ declare const CheckReportJsonSchema: z.ZodObject<{
3768
3768
  configProfile: z.ZodObject<{
3769
3769
  name: z.ZodNullable<z.ZodString>;
3770
3770
  source: z.ZodEnum<{
3771
+ "directory-rule": "directory-rule";
3771
3772
  env: "env";
3772
3773
  none: "none";
3773
3774
  "cli-flag": "cli-flag";
3774
- "directory-rule": "directory-rule";
3775
3775
  "identity-default": "identity-default";
3776
3776
  "global-default": "global-default";
3777
3777
  }>;
@@ -3779,9 +3779,9 @@ declare const CheckReportJsonSchema: z.ZodObject<{
3779
3779
  layers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
3780
3780
  id: z.ZodInt;
3781
3781
  kind: z.ZodEnum<{
3782
- "directory-rule": "directory-rule";
3783
3782
  "global-config": "global-config";
3784
3783
  "config-profile": "config-profile";
3784
+ "directory-rule": "directory-rule";
3785
3785
  portable: "portable";
3786
3786
  "portable-local": "portable-local";
3787
3787
  "cli-override": "cli-override";
@@ -4686,6 +4686,9 @@ declare const UsageSnapshotSchema: z.ZodObject<{
4686
4686
  representativeClaim: z.ZodOptional<z.ZodString>;
4687
4687
  resetAt: z.ZodOptional<z.ZodISODateTime>;
4688
4688
  overageStatus: z.ZodOptional<z.ZodString>;
4689
+ overageUtilization: z.ZodOptional<z.ZodNumber>;
4690
+ overageResetsAt: z.ZodOptional<z.ZodISODateTime>;
4691
+ overageDisabledReason: z.ZodOptional<z.ZodString>;
4689
4692
  }, z.core.$strict>>;
4690
4693
  }, z.core.$strict>>;
4691
4694
  lastLimit: z.ZodOptional<z.ZodObject<{
@@ -5017,6 +5020,9 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
5017
5020
  representativeClaim: zod.ZodOptional<zod.ZodString>;
5018
5021
  resetAt: zod.ZodOptional<zod.ZodISODateTime>;
5019
5022
  overageStatus: zod.ZodOptional<zod.ZodString>;
5023
+ overageUtilization: zod.ZodOptional<zod.ZodNumber>;
5024
+ overageResetsAt: zod.ZodOptional<zod.ZodISODateTime>;
5025
+ overageDisabledReason: zod.ZodOptional<zod.ZodString>;
5020
5026
  }, zod_v4_core.$strict>>;
5021
5027
  }, zod_v4_core.$strict>>;
5022
5028
  lastLimit: zod.ZodOptional<zod.ZodObject<{
@@ -5219,10 +5225,10 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
5219
5225
  configProfile: zod.ZodObject<{
5220
5226
  name: zod.ZodNullable<zod.ZodString>;
5221
5227
  source: zod.ZodEnum<{
5228
+ "directory-rule": "directory-rule";
5222
5229
  env: "env";
5223
5230
  none: "none";
5224
5231
  "cli-flag": "cli-flag";
5225
- "directory-rule": "directory-rule";
5226
5232
  "identity-default": "identity-default";
5227
5233
  "global-default": "global-default";
5228
5234
  }>;
@@ -5230,9 +5236,9 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
5230
5236
  layers: zod.ZodReadonly<zod.ZodArray<zod.ZodObject<{
5231
5237
  id: zod.ZodInt;
5232
5238
  kind: zod.ZodEnum<{
5233
- "directory-rule": "directory-rule";
5234
5239
  "global-config": "global-config";
5235
5240
  "config-profile": "config-profile";
5241
+ "directory-rule": "directory-rule";
5236
5242
  portable: "portable";
5237
5243
  "portable-local": "portable-local";
5238
5244
  "cli-override": "cli-override";
@@ -5470,11 +5476,11 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
5470
5476
  ok: zod.ZodBoolean;
5471
5477
  findings: zod.ZodReadonly<zod.ZodArray<zod.ZodObject<{
5472
5478
  section: zod.ZodEnum<{
5479
+ "global-config": "global-config";
5480
+ "config-profile": "config-profile";
5473
5481
  identity: "identity";
5474
5482
  provider: "provider";
5475
5483
  pool: "pool";
5476
- "global-config": "global-config";
5477
- "config-profile": "config-profile";
5478
5484
  keychain: "keychain";
5479
5485
  "ambient-credential": "ambient-credential";
5480
5486
  "binary-discovery": "binary-discovery";
@@ -5598,6 +5604,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
5598
5604
  representativeClaim: zod.ZodOptional<zod.ZodString>;
5599
5605
  resetAt: zod.ZodOptional<zod.ZodISODateTime>;
5600
5606
  overageStatus: zod.ZodOptional<zod.ZodString>;
5607
+ overageUtilization: zod.ZodOptional<zod.ZodNumber>;
5608
+ overageResetsAt: zod.ZodOptional<zod.ZodISODateTime>;
5609
+ overageDisabledReason: zod.ZodOptional<zod.ZodString>;
5601
5610
  }, zod_v4_core.$strict>>;
5602
5611
  }, zod_v4_core.$strict>>;
5603
5612
  lastLimit: zod.ZodOptional<zod.ZodObject<{
@@ -5800,10 +5809,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
5800
5809
  configProfile: zod.ZodObject<{
5801
5810
  name: zod.ZodNullable<zod.ZodString>;
5802
5811
  source: zod.ZodEnum<{
5812
+ "directory-rule": "directory-rule";
5803
5813
  env: "env";
5804
5814
  none: "none";
5805
5815
  "cli-flag": "cli-flag";
5806
- "directory-rule": "directory-rule";
5807
5816
  "identity-default": "identity-default";
5808
5817
  "global-default": "global-default";
5809
5818
  }>;
@@ -5811,9 +5820,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
5811
5820
  layers: zod.ZodReadonly<zod.ZodArray<zod.ZodObject<{
5812
5821
  id: zod.ZodInt;
5813
5822
  kind: zod.ZodEnum<{
5814
- "directory-rule": "directory-rule";
5815
5823
  "global-config": "global-config";
5816
5824
  "config-profile": "config-profile";
5825
+ "directory-rule": "directory-rule";
5817
5826
  portable: "portable";
5818
5827
  "portable-local": "portable-local";
5819
5828
  "cli-override": "cli-override";
@@ -6051,11 +6060,11 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
6051
6060
  ok: zod.ZodBoolean;
6052
6061
  findings: zod.ZodReadonly<zod.ZodArray<zod.ZodObject<{
6053
6062
  section: zod.ZodEnum<{
6063
+ "global-config": "global-config";
6064
+ "config-profile": "config-profile";
6054
6065
  identity: "identity";
6055
6066
  provider: "provider";
6056
6067
  pool: "pool";
6057
- "global-config": "global-config";
6058
- "config-profile": "config-profile";
6059
6068
  keychain: "keychain";
6060
6069
  "ambient-credential": "ambient-credential";
6061
6070
  "binary-discovery": "binary-discovery";
@@ -6394,6 +6403,9 @@ declare const UsageListOutputSchema: z.ZodObject<{
6394
6403
  representativeClaim: z.ZodOptional<z.ZodString>;
6395
6404
  resetAt: z.ZodOptional<z.ZodISODateTime>;
6396
6405
  overageStatus: z.ZodOptional<z.ZodString>;
6406
+ overageUtilization: z.ZodOptional<z.ZodNumber>;
6407
+ overageResetsAt: z.ZodOptional<z.ZodISODateTime>;
6408
+ overageDisabledReason: z.ZodOptional<z.ZodString>;
6397
6409
  }, z.core.$strict>>;
6398
6410
  }, z.core.$strict>>;
6399
6411
  lastLimit: z.ZodOptional<z.ZodObject<{
@@ -6568,11 +6580,11 @@ declare const CheckRunInputSchema: z.ZodObject<{
6568
6580
  /** One line of the doctor report: the section it belongs to, its severity, its message, and the identity/profile/rule it is about when there is one. */
6569
6581
  declare const DoctorFindingSchema: z.ZodObject<{
6570
6582
  section: z.ZodEnum<{
6583
+ "global-config": "global-config";
6584
+ "config-profile": "config-profile";
6571
6585
  identity: "identity";
6572
6586
  provider: "provider";
6573
6587
  pool: "pool";
6574
- "global-config": "global-config";
6575
- "config-profile": "config-profile";
6576
6588
  keychain: "keychain";
6577
6589
  "ambient-credential": "ambient-credential";
6578
6590
  "binary-discovery": "binary-discovery";
@@ -6597,11 +6609,11 @@ declare const DoctorRunOutputSchema: z.ZodObject<{
6597
6609
  ok: z.ZodBoolean;
6598
6610
  findings: z.ZodReadonly<z.ZodArray<z.ZodObject<{
6599
6611
  section: z.ZodEnum<{
6612
+ "global-config": "global-config";
6613
+ "config-profile": "config-profile";
6600
6614
  identity: "identity";
6601
6615
  provider: "provider";
6602
6616
  pool: "pool";
6603
- "global-config": "global-config";
6604
- "config-profile": "config-profile";
6605
6617
  keychain: "keychain";
6606
6618
  "ambient-credential": "ambient-credential";
6607
6619
  "binary-discovery": "binary-discovery";
@@ -7101,6 +7113,8 @@ interface Candidate {
7101
7113
  readonly score?: number;
7102
7114
  /** False when a quota window would run dry, at the observed pace, before it resets (the five-hour at its own or the rescaled shared pace, the seven-day at its own). A `scored` candidate that is not feasible ranks below every feasible one. */
7103
7115
  readonly feasible: boolean;
7116
+ /** The fraction of the extra-usage allowance still unspent, for a `pay-per-use` member whose only budget is that allowance (an Enterprise account). A member reporting none ranks as having all of it: no cap is known to bind. */
7117
+ readonly headroom?: number;
7104
7118
  /** When an `ineligible` candidate can be used again. */
7105
7119
  readonly blockedUntilMs?: number;
7106
7120
  readonly plan: PlanClass;
@@ -7181,11 +7195,12 @@ interface ConditionContext {
7181
7195
  readonly branchDetached?: boolean;
7182
7196
  readonly env: Readonly<Record<string, string | undefined>>;
7183
7197
  /**
7184
- * The pool-selection facts a member entry's policy condition reads. Present only when the condition guards a pool member, so the same reference namespace serves the cascade and the pool: `quota.fiveHour.remaining`, `quota.fiveHour.utilization`, `quota.fiveHour.hoursUntilReset`, the same three under `quota.sevenDay`, `quota.burnPerHour` (the five-hour window's observed utilisation pace, in fractions per hour), `session.resuming` (this launch resumes or continues a conversation) and `session.lastPickHoursAgo` (how long ago this directory last picked this member). Conversation context is deliberately not provided: nothing the door holds knows it, so a condition referencing it is indeterminate, naming the missing fact, rather than guessed.
7198
+ * The pool-selection facts a member entry's policy condition reads. Present only when the condition guards a pool member, so the same reference namespace serves the cascade and the pool: `quota.fiveHour.remaining`, `quota.fiveHour.utilization`, `quota.fiveHour.hoursUntilReset`, the same three under `quota.sevenDay`, and under `quota.extraUsage` for an account metered by extra usage alone (an Enterprise one with no plan windows), `quota.burnPerHour` (the five-hour window's observed utilisation pace, in fractions per hour), `session.resuming` (this launch resumes or continues a conversation) and `session.lastPickHoursAgo` (how long ago this directory last picked this member). Conversation context is deliberately not provided: nothing the door holds knows it, so a condition referencing it is indeterminate, naming the missing fact, rather than guessed.
7185
7199
  */
7186
7200
  readonly pool?: {
7187
7201
  readonly fiveHour?: PoolWindowFacts;
7188
7202
  readonly sevenDay?: PoolWindowFacts;
7203
+ readonly extraUsage?: PoolWindowFacts;
7189
7204
  readonly burnPerHour?: number;
7190
7205
  readonly resuming?: boolean;
7191
7206
  readonly lastPickHoursAgo?: number;
@@ -7201,10 +7216,11 @@ interface ConditionContext {
7201
7216
  readonly maxTokens?: number;
7202
7217
  readonly isCountTokens?: boolean;
7203
7218
  };
7204
- /** Per-provider quota facts for request routing, keyed by provider name, from the session identity's usage snapshot: a route condition names a target's windows (`provider.<name>.fiveHour.utilization` and kin) to skip one that is exhausted or nearly spent. The windows are the same shape the pool facts read. */
7219
+ /** Per-provider quota facts for request routing, keyed by provider name, from the session identity's usage snapshot: a route condition names a target's windows (`provider.<name>.fiveHour.utilization` and kin, and `provider.<name>.extraUsage.*` for an account metered by extra usage alone) to skip one that is exhausted or nearly spent. The windows are the same shape the pool facts read. */
7205
7220
  readonly providerQuota?: Readonly<Record<string, {
7206
7221
  readonly fiveHour?: PoolWindowFacts;
7207
7222
  readonly sevenDay?: PoolWindowFacts;
7223
+ readonly extraUsage?: PoolWindowFacts;
7208
7224
  }>>;
7209
7225
  }
7210
7226
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-use",
3
- "version": "9.1.0",
3
+ "version": "9.2.0",
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>",