claude-use 14.0.3 → 14.1.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.
@@ -6012,6 +6012,8 @@ declare const FrontDoorSessionSchema: z.ZodObject<{
6012
6012
  }, z.core.$strict>>;
6013
6013
  }, z.core.$strict>;
6014
6014
  type FrontDoorSession = z.infer<typeof FrontDoorSessionSchema>;
6015
+ /** What names one launch: its launcher's pid and the time it registered. A launcher that registers again under its own pid (a relaunch after an account move, a `--resume`) writes a new start time, so per-launch state the door keeps never passes from one launch to the next, even when both carry the same session id. */
6016
+ type FrontDoorLaunch = Pick<FrontDoorSession, "pid" | "startedAt">;
6015
6017
  /**
6016
6018
  * The front-door supervisor's state.json under `<home>/frontdoor/`. Every field is optional because the file exists in stages, exactly like headroom's and the old codex daemon's: a fresh supervisor writes its own pid before the listener is up, and a shut-down front door leaves only the sticky `lastPort` and any `lastError` worth surfacing.
6017
6019
  */
@@ -7311,6 +7313,8 @@ interface SessionIdentity {
7311
7313
  readonly headroom: boolean;
7312
7314
  /** The project identity headroom scopes memory to, re-set on the headroom hop and sent nowhere else. */
7313
7315
  readonly projectId: string | undefined;
7316
+ /** The live launch whose capability the request presented, when the listener's admission identifies one. Two launches can carry one session id (`claude --resume` or `--continue` twice in one directory), so per-launch state is keyed on this, never on the session id. */
7317
+ readonly launch?: FrontDoorLaunch;
7314
7318
  }
7315
7319
  /** One request as a route sees it: the transport's own request and abort signal, plus what the identity step resolved. */
7316
7320
  interface RoutedRequest {
@@ -8540,6 +8544,189 @@ declare function createRcSessionCommands(deps: RcSessionCommandDeps): {
8540
8544
  /** The verbs as `createRcSessionCommands` builds them. */
8541
8545
  type RcSessionCommands = ReturnType<typeof createRcSessionCommands>;
8542
8546
 
8547
+ /** One routed request, appended to the usage log when its response has finished. */
8548
+ declare const UsageRecordSchema: z.ZodObject<{
8549
+ schemaVersion: z.ZodLiteral<1>;
8550
+ at: z.ZodISODateTime;
8551
+ identity: z.ZodOptional<z.ZodString>;
8552
+ provider: z.ZodString;
8553
+ sessionId: z.ZodOptional<z.ZodString>;
8554
+ clientSessionId: z.ZodOptional<z.ZodString>;
8555
+ project: z.ZodOptional<z.ZodString>;
8556
+ viaHeadroom: z.ZodOptional<z.ZodBoolean>;
8557
+ route: z.ZodString;
8558
+ method: z.ZodString;
8559
+ endpoint: z.ZodString;
8560
+ model: z.ZodOptional<z.ZodString>;
8561
+ requestedModel: z.ZodOptional<z.ZodString>;
8562
+ requestClass: z.ZodOptional<z.ZodEnum<{
8563
+ unknown: "unknown";
8564
+ main: "main";
8565
+ subagent: "subagent";
8566
+ workflow: "workflow";
8567
+ compaction: "compaction";
8568
+ auxiliary: "auxiliary";
8569
+ side_reply: "side_reply";
8570
+ }>>;
8571
+ candidateProviders: z.ZodOptional<z.ZodArray<z.ZodString>>;
8572
+ status: z.ZodNumber;
8573
+ latencyMs: z.ZodNumber;
8574
+ durationMs: z.ZodNumber;
8575
+ outcome: z.ZodEnum<{
8576
+ completed: "completed";
8577
+ aborted: "aborted";
8578
+ }>;
8579
+ usage: z.ZodOptional<z.ZodObject<{
8580
+ inputTokens: z.ZodOptional<z.ZodNumber>;
8581
+ outputTokens: z.ZodOptional<z.ZodNumber>;
8582
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
8583
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
8584
+ }, z.core.$strict>>;
8585
+ rateLimitHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8586
+ limit: z.ZodOptional<z.ZodObject<{
8587
+ kind: z.ZodEnum<{
8588
+ "rate-limited": "rate-limited";
8589
+ "quota-exhausted": "quota-exhausted";
8590
+ }>;
8591
+ retryAfterSeconds: z.ZodOptional<z.ZodNumber>;
8592
+ resetAt: z.ZodOptional<z.ZodISODateTime>;
8593
+ window: z.ZodOptional<z.ZodString>;
8594
+ evidence: z.ZodArray<z.ZodString>;
8595
+ }, z.core.$strict>>;
8596
+ requestId: z.ZodOptional<z.ZodString>;
8597
+ }, z.core.$strict>;
8598
+ type UsageRecord = z.infer<typeof UsageRecordSchema>;
8599
+ /** One quota window from Anthropic's unified rate-limit headers. */
8600
+ declare const QuotaWindowSchema: z.ZodObject<{
8601
+ utilization: z.ZodOptional<z.ZodNumber>;
8602
+ resetsAt: z.ZodOptional<z.ZodISODateTime>;
8603
+ status: z.ZodOptional<z.ZodString>;
8604
+ graceUtilization: z.ZodOptional<z.ZodNumber>;
8605
+ }, z.core.$strict>;
8606
+ type QuotaWindow = z.infer<typeof QuotaWindowSchema>;
8607
+ /**
8608
+ * The account fields copied from an identity's stored Claude login (`oauthAccount` in the identity's `.claude.json`): who the account is and which plan and tier it is on. Never the token, which Claude Code keeps elsewhere. Each field is present only when the stored login has it; a setup-token identity has no profile scope and so none of them (see issue #44).
8609
+ */
8610
+ declare const AccountMetadataSchema: z.ZodObject<{
8611
+ accountUuid: z.ZodOptional<z.ZodString>;
8612
+ emailAddress: z.ZodOptional<z.ZodString>;
8613
+ displayName: z.ZodOptional<z.ZodString>;
8614
+ organizationUuid: z.ZodOptional<z.ZodString>;
8615
+ organizationName: z.ZodOptional<z.ZodString>;
8616
+ organizationType: z.ZodOptional<z.ZodString>;
8617
+ organizationRole: z.ZodOptional<z.ZodString>;
8618
+ workspaceRole: z.ZodOptional<z.ZodString>;
8619
+ billingType: z.ZodOptional<z.ZodString>;
8620
+ seatTier: z.ZodOptional<z.ZodString>;
8621
+ organizationRateLimitTier: z.ZodOptional<z.ZodString>;
8622
+ userRateLimitTier: z.ZodOptional<z.ZodString>;
8623
+ hasExtraUsageEnabled: z.ZodOptional<z.ZodBoolean>;
8624
+ subscriptionCreatedAt: z.ZodOptional<z.ZodString>;
8625
+ accountCreatedAt: z.ZodOptional<z.ZodString>;
8626
+ }, z.core.$strict>;
8627
+ type AccountMetadata = z.infer<typeof AccountMetadataSchema>;
8628
+ /**
8629
+ * The latest state for one identity, rewritten atomically after each recorded response: the snapshot file other tools read (`~/.agent-shim/usage/snapshots/<id>.json`, named and keyed in `identity` by the identity's id) without shelling out to `agent-shim`.
8630
+ */
8631
+ declare const UsageSnapshotSchema: z.ZodObject<{
8632
+ schemaVersion: z.ZodLiteral<1>;
8633
+ identity: z.ZodString;
8634
+ updatedAt: z.ZodISODateTime;
8635
+ account: z.ZodOptional<z.ZodObject<{
8636
+ accountUuid: z.ZodOptional<z.ZodString>;
8637
+ emailAddress: z.ZodOptional<z.ZodString>;
8638
+ displayName: z.ZodOptional<z.ZodString>;
8639
+ organizationUuid: z.ZodOptional<z.ZodString>;
8640
+ organizationName: z.ZodOptional<z.ZodString>;
8641
+ organizationType: z.ZodOptional<z.ZodString>;
8642
+ organizationRole: z.ZodOptional<z.ZodString>;
8643
+ workspaceRole: z.ZodOptional<z.ZodString>;
8644
+ billingType: z.ZodOptional<z.ZodString>;
8645
+ seatTier: z.ZodOptional<z.ZodString>;
8646
+ organizationRateLimitTier: z.ZodOptional<z.ZodString>;
8647
+ userRateLimitTier: z.ZodOptional<z.ZodString>;
8648
+ hasExtraUsageEnabled: z.ZodOptional<z.ZodBoolean>;
8649
+ subscriptionCreatedAt: z.ZodOptional<z.ZodString>;
8650
+ accountCreatedAt: z.ZodOptional<z.ZodString>;
8651
+ }, z.core.$strict>>;
8652
+ providers: z.ZodRecord<z.ZodString, z.ZodObject<{
8653
+ lastRequestAt: z.ZodOptional<z.ZodISODateTime>;
8654
+ lastStatus: z.ZodOptional<z.ZodNumber>;
8655
+ lastModel: z.ZodOptional<z.ZodString>;
8656
+ rateLimit: z.ZodOptional<z.ZodObject<{
8657
+ observedAt: z.ZodISODateTime;
8658
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
8659
+ unified: z.ZodOptional<z.ZodObject<{
8660
+ status: z.ZodOptional<z.ZodString>;
8661
+ fiveHour: z.ZodOptional<z.ZodObject<{
8662
+ utilization: z.ZodOptional<z.ZodNumber>;
8663
+ resetsAt: z.ZodOptional<z.ZodISODateTime>;
8664
+ status: z.ZodOptional<z.ZodString>;
8665
+ graceUtilization: z.ZodOptional<z.ZodNumber>;
8666
+ }, z.core.$strict>>;
8667
+ sevenDay: z.ZodOptional<z.ZodObject<{
8668
+ utilization: z.ZodOptional<z.ZodNumber>;
8669
+ resetsAt: z.ZodOptional<z.ZodISODateTime>;
8670
+ status: z.ZodOptional<z.ZodString>;
8671
+ graceUtilization: z.ZodOptional<z.ZodNumber>;
8672
+ }, z.core.$strict>>;
8673
+ sevenDayOverageIncluded: z.ZodOptional<z.ZodObject<{
8674
+ utilization: z.ZodOptional<z.ZodNumber>;
8675
+ resetsAt: z.ZodOptional<z.ZodISODateTime>;
8676
+ status: z.ZodOptional<z.ZodString>;
8677
+ graceUtilization: z.ZodOptional<z.ZodNumber>;
8678
+ }, z.core.$strict>>;
8679
+ representativeClaim: z.ZodOptional<z.ZodString>;
8680
+ resetAt: z.ZodOptional<z.ZodISODateTime>;
8681
+ overageStatus: z.ZodOptional<z.ZodString>;
8682
+ overageUtilization: z.ZodOptional<z.ZodNumber>;
8683
+ overageResetsAt: z.ZodOptional<z.ZodISODateTime>;
8684
+ overageDisabledReason: z.ZodOptional<z.ZodString>;
8685
+ overageInUse: z.ZodOptional<z.ZodBoolean>;
8686
+ extraUsageSpend: z.ZodOptional<z.ZodObject<{
8687
+ usedMinor: z.ZodNumber;
8688
+ limitMinor: z.ZodOptional<z.ZodNumber>;
8689
+ currency: z.ZodString;
8690
+ }, z.core.$strict>>;
8691
+ fallbackAvailable: z.ZodOptional<z.ZodBoolean>;
8692
+ }, z.core.$strict>>;
8693
+ planWindowsUnavailableAt: z.ZodOptional<z.ZodISODateTime>;
8694
+ }, z.core.$strict>>;
8695
+ lastLimit: z.ZodOptional<z.ZodObject<{
8696
+ kind: z.ZodEnum<{
8697
+ "rate-limited": "rate-limited";
8698
+ "quota-exhausted": "quota-exhausted";
8699
+ }>;
8700
+ retryAfterSeconds: z.ZodOptional<z.ZodNumber>;
8701
+ resetAt: z.ZodOptional<z.ZodISODateTime>;
8702
+ window: z.ZodOptional<z.ZodString>;
8703
+ evidence: z.ZodArray<z.ZodString>;
8704
+ observedAt: z.ZodISODateTime;
8705
+ status: z.ZodNumber;
8706
+ }, z.core.$strict>>;
8707
+ quota: z.ZodOptional<z.ZodObject<{
8708
+ observedAt: z.ZodISODateTime;
8709
+ source: z.ZodString;
8710
+ level: z.ZodOptional<z.ZodString>;
8711
+ account: z.ZodOptional<z.ZodObject<{
8712
+ email: z.ZodOptional<z.ZodString>;
8713
+ accountId: z.ZodOptional<z.ZodString>;
8714
+ }, z.core.$strict>>;
8715
+ windows: z.ZodArray<z.ZodObject<{
8716
+ measures: z.ZodString;
8717
+ periodMs: z.ZodOptional<z.ZodNumber>;
8718
+ period: z.ZodOptional<z.ZodString>;
8719
+ utilization: z.ZodNumber;
8720
+ resetsAt: z.ZodOptional<z.ZodISODateTime>;
8721
+ limit: z.ZodOptional<z.ZodNumber>;
8722
+ used: z.ZodOptional<z.ZodNumber>;
8723
+ remaining: z.ZodOptional<z.ZodNumber>;
8724
+ }, z.core.$strict>>;
8725
+ }, z.core.$strict>>;
8726
+ }, z.core.$strict>>;
8727
+ }, z.core.$strict>;
8728
+ type UsageSnapshot = z.infer<typeof UsageSnapshotSchema>;
8729
+
8543
8730
  /**
8544
8731
  * A secondary pre-pipeline surface the listener answers under one path prefix: the typed Remote Control API. The listener owns only the dispatch (the prefix and the not-matched 404); the handle itself is whatever the door built, so this file stays independent of the API framework behind it.
8545
8732
  */
@@ -9433,180 +9620,6 @@ declare const PoolPickReportSchema: z.ZodObject<{
9433
9620
  }, z.core.$strict>;
9434
9621
  type PoolPickReport = z.infer<typeof PoolPickReportSchema>;
9435
9622
 
9436
- /** One routed request, appended to the usage log when its response has finished. */
9437
- declare const UsageRecordSchema: z.ZodObject<{
9438
- schemaVersion: z.ZodLiteral<1>;
9439
- at: z.ZodISODateTime;
9440
- identity: z.ZodOptional<z.ZodString>;
9441
- provider: z.ZodString;
9442
- sessionId: z.ZodOptional<z.ZodString>;
9443
- clientSessionId: z.ZodOptional<z.ZodString>;
9444
- project: z.ZodOptional<z.ZodString>;
9445
- viaHeadroom: z.ZodOptional<z.ZodBoolean>;
9446
- route: z.ZodString;
9447
- method: z.ZodString;
9448
- endpoint: z.ZodString;
9449
- model: z.ZodOptional<z.ZodString>;
9450
- requestedModel: z.ZodOptional<z.ZodString>;
9451
- candidateProviders: z.ZodOptional<z.ZodArray<z.ZodString>>;
9452
- status: z.ZodNumber;
9453
- latencyMs: z.ZodNumber;
9454
- durationMs: z.ZodNumber;
9455
- outcome: z.ZodEnum<{
9456
- completed: "completed";
9457
- aborted: "aborted";
9458
- }>;
9459
- usage: z.ZodOptional<z.ZodObject<{
9460
- inputTokens: z.ZodOptional<z.ZodNumber>;
9461
- outputTokens: z.ZodOptional<z.ZodNumber>;
9462
- cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
9463
- cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
9464
- }, z.core.$strict>>;
9465
- rateLimitHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9466
- limit: z.ZodOptional<z.ZodObject<{
9467
- kind: z.ZodEnum<{
9468
- "rate-limited": "rate-limited";
9469
- "quota-exhausted": "quota-exhausted";
9470
- }>;
9471
- retryAfterSeconds: z.ZodOptional<z.ZodNumber>;
9472
- resetAt: z.ZodOptional<z.ZodISODateTime>;
9473
- window: z.ZodOptional<z.ZodString>;
9474
- evidence: z.ZodArray<z.ZodString>;
9475
- }, z.core.$strict>>;
9476
- requestId: z.ZodOptional<z.ZodString>;
9477
- }, z.core.$strict>;
9478
- type UsageRecord = z.infer<typeof UsageRecordSchema>;
9479
- /** One quota window from Anthropic's unified rate-limit headers. */
9480
- declare const QuotaWindowSchema: z.ZodObject<{
9481
- utilization: z.ZodOptional<z.ZodNumber>;
9482
- resetsAt: z.ZodOptional<z.ZodISODateTime>;
9483
- status: z.ZodOptional<z.ZodString>;
9484
- graceUtilization: z.ZodOptional<z.ZodNumber>;
9485
- }, z.core.$strict>;
9486
- type QuotaWindow = z.infer<typeof QuotaWindowSchema>;
9487
- /**
9488
- * The account fields copied from an identity's stored Claude login (`oauthAccount` in the identity's `.claude.json`): who the account is and which plan and tier it is on. Never the token, which Claude Code keeps elsewhere. Each field is present only when the stored login has it; a setup-token identity has no profile scope and so none of them (see issue #44).
9489
- */
9490
- declare const AccountMetadataSchema: z.ZodObject<{
9491
- accountUuid: z.ZodOptional<z.ZodString>;
9492
- emailAddress: z.ZodOptional<z.ZodString>;
9493
- displayName: z.ZodOptional<z.ZodString>;
9494
- organizationUuid: z.ZodOptional<z.ZodString>;
9495
- organizationName: z.ZodOptional<z.ZodString>;
9496
- organizationType: z.ZodOptional<z.ZodString>;
9497
- organizationRole: z.ZodOptional<z.ZodString>;
9498
- workspaceRole: z.ZodOptional<z.ZodString>;
9499
- billingType: z.ZodOptional<z.ZodString>;
9500
- seatTier: z.ZodOptional<z.ZodString>;
9501
- organizationRateLimitTier: z.ZodOptional<z.ZodString>;
9502
- userRateLimitTier: z.ZodOptional<z.ZodString>;
9503
- hasExtraUsageEnabled: z.ZodOptional<z.ZodBoolean>;
9504
- subscriptionCreatedAt: z.ZodOptional<z.ZodString>;
9505
- accountCreatedAt: z.ZodOptional<z.ZodString>;
9506
- }, z.core.$strict>;
9507
- type AccountMetadata = z.infer<typeof AccountMetadataSchema>;
9508
- /**
9509
- * The latest state for one identity, rewritten atomically after each recorded response: the snapshot file other tools read (`~/.agent-shim/usage/snapshots/<id>.json`, named and keyed in `identity` by the identity's id) without shelling out to `agent-shim`.
9510
- */
9511
- declare const UsageSnapshotSchema: z.ZodObject<{
9512
- schemaVersion: z.ZodLiteral<1>;
9513
- identity: z.ZodString;
9514
- updatedAt: z.ZodISODateTime;
9515
- account: z.ZodOptional<z.ZodObject<{
9516
- accountUuid: z.ZodOptional<z.ZodString>;
9517
- emailAddress: z.ZodOptional<z.ZodString>;
9518
- displayName: z.ZodOptional<z.ZodString>;
9519
- organizationUuid: z.ZodOptional<z.ZodString>;
9520
- organizationName: z.ZodOptional<z.ZodString>;
9521
- organizationType: z.ZodOptional<z.ZodString>;
9522
- organizationRole: z.ZodOptional<z.ZodString>;
9523
- workspaceRole: z.ZodOptional<z.ZodString>;
9524
- billingType: z.ZodOptional<z.ZodString>;
9525
- seatTier: z.ZodOptional<z.ZodString>;
9526
- organizationRateLimitTier: z.ZodOptional<z.ZodString>;
9527
- userRateLimitTier: z.ZodOptional<z.ZodString>;
9528
- hasExtraUsageEnabled: z.ZodOptional<z.ZodBoolean>;
9529
- subscriptionCreatedAt: z.ZodOptional<z.ZodString>;
9530
- accountCreatedAt: z.ZodOptional<z.ZodString>;
9531
- }, z.core.$strict>>;
9532
- providers: z.ZodRecord<z.ZodString, z.ZodObject<{
9533
- lastRequestAt: z.ZodOptional<z.ZodISODateTime>;
9534
- lastStatus: z.ZodOptional<z.ZodNumber>;
9535
- lastModel: z.ZodOptional<z.ZodString>;
9536
- rateLimit: z.ZodOptional<z.ZodObject<{
9537
- observedAt: z.ZodISODateTime;
9538
- headers: z.ZodRecord<z.ZodString, z.ZodString>;
9539
- unified: z.ZodOptional<z.ZodObject<{
9540
- status: z.ZodOptional<z.ZodString>;
9541
- fiveHour: z.ZodOptional<z.ZodObject<{
9542
- utilization: z.ZodOptional<z.ZodNumber>;
9543
- resetsAt: z.ZodOptional<z.ZodISODateTime>;
9544
- status: z.ZodOptional<z.ZodString>;
9545
- graceUtilization: z.ZodOptional<z.ZodNumber>;
9546
- }, z.core.$strict>>;
9547
- sevenDay: z.ZodOptional<z.ZodObject<{
9548
- utilization: z.ZodOptional<z.ZodNumber>;
9549
- resetsAt: z.ZodOptional<z.ZodISODateTime>;
9550
- status: z.ZodOptional<z.ZodString>;
9551
- graceUtilization: z.ZodOptional<z.ZodNumber>;
9552
- }, z.core.$strict>>;
9553
- sevenDayOverageIncluded: z.ZodOptional<z.ZodObject<{
9554
- utilization: z.ZodOptional<z.ZodNumber>;
9555
- resetsAt: z.ZodOptional<z.ZodISODateTime>;
9556
- status: z.ZodOptional<z.ZodString>;
9557
- graceUtilization: z.ZodOptional<z.ZodNumber>;
9558
- }, z.core.$strict>>;
9559
- representativeClaim: z.ZodOptional<z.ZodString>;
9560
- resetAt: z.ZodOptional<z.ZodISODateTime>;
9561
- overageStatus: z.ZodOptional<z.ZodString>;
9562
- overageUtilization: z.ZodOptional<z.ZodNumber>;
9563
- overageResetsAt: z.ZodOptional<z.ZodISODateTime>;
9564
- overageDisabledReason: z.ZodOptional<z.ZodString>;
9565
- overageInUse: z.ZodOptional<z.ZodBoolean>;
9566
- extraUsageSpend: z.ZodOptional<z.ZodObject<{
9567
- usedMinor: z.ZodNumber;
9568
- limitMinor: z.ZodOptional<z.ZodNumber>;
9569
- currency: z.ZodString;
9570
- }, z.core.$strict>>;
9571
- fallbackAvailable: z.ZodOptional<z.ZodBoolean>;
9572
- }, z.core.$strict>>;
9573
- planWindowsUnavailableAt: z.ZodOptional<z.ZodISODateTime>;
9574
- }, z.core.$strict>>;
9575
- lastLimit: z.ZodOptional<z.ZodObject<{
9576
- kind: z.ZodEnum<{
9577
- "rate-limited": "rate-limited";
9578
- "quota-exhausted": "quota-exhausted";
9579
- }>;
9580
- retryAfterSeconds: z.ZodOptional<z.ZodNumber>;
9581
- resetAt: z.ZodOptional<z.ZodISODateTime>;
9582
- window: z.ZodOptional<z.ZodString>;
9583
- evidence: z.ZodArray<z.ZodString>;
9584
- observedAt: z.ZodISODateTime;
9585
- status: z.ZodNumber;
9586
- }, z.core.$strict>>;
9587
- quota: z.ZodOptional<z.ZodObject<{
9588
- observedAt: z.ZodISODateTime;
9589
- source: z.ZodString;
9590
- level: z.ZodOptional<z.ZodString>;
9591
- account: z.ZodOptional<z.ZodObject<{
9592
- email: z.ZodOptional<z.ZodString>;
9593
- accountId: z.ZodOptional<z.ZodString>;
9594
- }, z.core.$strict>>;
9595
- windows: z.ZodArray<z.ZodObject<{
9596
- measures: z.ZodString;
9597
- periodMs: z.ZodOptional<z.ZodNumber>;
9598
- period: z.ZodOptional<z.ZodString>;
9599
- utilization: z.ZodNumber;
9600
- resetsAt: z.ZodOptional<z.ZodISODateTime>;
9601
- limit: z.ZodOptional<z.ZodNumber>;
9602
- used: z.ZodOptional<z.ZodNumber>;
9603
- remaining: z.ZodOptional<z.ZodNumber>;
9604
- }, z.core.$strict>>;
9605
- }, z.core.$strict>>;
9606
- }, z.core.$strict>>;
9607
- }, z.core.$strict>;
9608
- type UsageSnapshot = z.infer<typeof UsageSnapshotSchema>;
9609
-
9610
9623
  /**
9611
9624
  * The Zod schemas of the door's general control plane: the usage snapshots a remote consumer reads, the live rate-limit observations the event backbone files, the front door's own status and session registry, the check report over a path, and the doctor report, each one the input or output of a procedure in `controlApi.ts`. Like `rcSchemas.ts` this module is a plain Zod leaf (nothing here imports oRPC), and every shape it asserts is one the implementation already defines: the usage snapshot and front-door state schemas are the store's and the registry's own, the check report's is `checkReportSchema.ts`'s (`CheckReportJsonSchema`, imported straight by the procedure), and the doctor vocabulary is `doctorReport.ts`'s own, so contract and behaviour share one source and a drift fails the procedures' own validation rather than shipping silently.
9612
9625
  */
@@ -26836,6 +26849,10 @@ interface LiveSessionRegistry {
26836
26849
  * The models block the launch carrying `sessionId` resolved for itself, or undefined when no live launch carries that id or the launch added nothing to the global block. A session id the view does not hold is looked up as `admits` looks up a token (one listing, a stat per record, a read of only what is new or changed), so a launch is found on its first request and an unknown id costs no record read.
26837
26850
  */
26838
26851
  readonly modelsOf: (sessionId: string) => ModelsConfig | undefined;
26852
+ /** The live client session launch holding `token`, or undefined when none does or the record carries no session id (the door's own transparent-surface session, which every redirected client shares, is no launch of any one client's session); looked up as `identityOf` looks one up. A launch is named by its pid and start time (`FrontDoorLaunch`), and found by its capability, never by session id: a `--resume` or `--continue` carries the session id of a launch that may still be live, and the two hold different tokens. */
26853
+ readonly launchOfToken: (token: string) => FrontDoorLaunch | undefined;
26854
+ /** Whether `launch` is still registered, looked up as `modelsOf` looks one up: what bounds per-launch state the door keeps, which must live exactly as long as the launch it describes. */
26855
+ readonly holdsLaunch: (launch: Readonly<FrontDoorLaunch>) => boolean;
26839
26856
  /** Drops the launches `pids` from the view, for the records the caller has just removed (the tick's prune), so their capabilities are refused at once rather than at the next `rescan`. */
26840
26857
  readonly forget: (pids: readonly number[]) => void;
26841
26858
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-use",
3
- "version": "14.0.3",
3
+ "version": "14.1.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>",