claude-use 11.76.0 → 11.78.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.
@@ -297,8 +297,8 @@ declare const LaunchSchema: z.ZodObject<{
297
297
  }>>;
298
298
  layout: z.ZodOptional<z.ZodObject<{
299
299
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
300
- model: "model";
301
300
  account: "account";
301
+ model: "model";
302
302
  identity: "identity";
303
303
  provider: "provider";
304
304
  version: "version";
@@ -1525,8 +1525,8 @@ declare const ConfigProfileSchema: z.ZodObject<{
1525
1525
  }>>;
1526
1526
  layout: z.ZodOptional<z.ZodObject<{
1527
1527
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1528
- model: "model";
1529
1528
  account: "account";
1529
+ model: "model";
1530
1530
  identity: "identity";
1531
1531
  provider: "provider";
1532
1532
  version: "version";
@@ -2373,8 +2373,8 @@ declare const DirectoryRuleSchema: z.ZodObject<{
2373
2373
  }>>;
2374
2374
  layout: z.ZodOptional<z.ZodObject<{
2375
2375
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2376
- model: "model";
2377
2376
  account: "account";
2377
+ model: "model";
2378
2378
  identity: "identity";
2379
2379
  provider: "provider";
2380
2380
  version: "version";
@@ -3148,8 +3148,8 @@ declare const DirectoryRulesSchema: z.ZodObject<{
3148
3148
  }>>;
3149
3149
  layout: z.ZodOptional<z.ZodObject<{
3150
3150
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3151
- model: "model";
3152
3151
  account: "account";
3152
+ model: "model";
3153
3153
  identity: "identity";
3154
3154
  provider: "provider";
3155
3155
  version: "version";
@@ -3923,8 +3923,8 @@ declare const PortableConfigSchema: z.ZodObject<{
3923
3923
  }>>;
3924
3924
  layout: z.ZodOptional<z.ZodObject<{
3925
3925
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3926
- model: "model";
3927
3926
  account: "account";
3927
+ model: "model";
3928
3928
  identity: "identity";
3929
3929
  provider: "provider";
3930
3930
  version: "version";
@@ -4679,8 +4679,8 @@ declare const GlobalConfigSchema: z.ZodObject<{
4679
4679
  }>>;
4680
4680
  layout: z.ZodOptional<z.ZodObject<{
4681
4681
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4682
- model: "model";
4683
4682
  account: "account";
4683
+ model: "model";
4684
4684
  identity: "identity";
4685
4685
  provider: "provider";
4686
4686
  version: "version";
@@ -6121,6 +6121,8 @@ interface ReportRow {
6121
6121
  readonly detail?: string;
6122
6122
  /** Further lines under the row, lined up under its value and dimmed. */
6123
6123
  readonly notes?: readonly string[];
6124
+ /** True for a row that tells the person something changed beneath them (the account their session now bills to), set apart from the plain facts around it. */
6125
+ readonly notice?: boolean;
6124
6126
  }
6125
6127
  /** Where the launcher reports what it decided and why — refusals, warnings about an identity that could not be loaded, and (per the "strictly-better than the legacy script" goal) which identity/profile ended up selected. */
6126
6128
  interface LogPort {
@@ -8874,6 +8876,180 @@ type PathShadowStatus = {
8874
8876
  readonly by: string;
8875
8877
  };
8876
8878
 
8879
+ /** One routed request, appended to the usage log when its response has finished. */
8880
+ declare const UsageRecordSchema: z.ZodObject<{
8881
+ schemaVersion: z.ZodLiteral<1>;
8882
+ at: z.ZodISODateTime;
8883
+ identity: z.ZodOptional<z.ZodString>;
8884
+ provider: z.ZodString;
8885
+ sessionId: z.ZodOptional<z.ZodString>;
8886
+ clientSessionId: z.ZodOptional<z.ZodString>;
8887
+ project: z.ZodOptional<z.ZodString>;
8888
+ viaHeadroom: z.ZodOptional<z.ZodBoolean>;
8889
+ route: z.ZodString;
8890
+ method: z.ZodString;
8891
+ endpoint: z.ZodString;
8892
+ model: z.ZodOptional<z.ZodString>;
8893
+ requestedModel: z.ZodOptional<z.ZodString>;
8894
+ candidateProviders: z.ZodOptional<z.ZodArray<z.ZodString>>;
8895
+ status: z.ZodNumber;
8896
+ latencyMs: z.ZodNumber;
8897
+ durationMs: z.ZodNumber;
8898
+ outcome: z.ZodEnum<{
8899
+ completed: "completed";
8900
+ aborted: "aborted";
8901
+ }>;
8902
+ usage: z.ZodOptional<z.ZodObject<{
8903
+ inputTokens: z.ZodOptional<z.ZodNumber>;
8904
+ outputTokens: z.ZodOptional<z.ZodNumber>;
8905
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
8906
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
8907
+ }, z.core.$strict>>;
8908
+ rateLimitHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8909
+ limit: z.ZodOptional<z.ZodObject<{
8910
+ kind: z.ZodEnum<{
8911
+ "rate-limited": "rate-limited";
8912
+ "quota-exhausted": "quota-exhausted";
8913
+ }>;
8914
+ retryAfterSeconds: z.ZodOptional<z.ZodNumber>;
8915
+ resetAt: z.ZodOptional<z.ZodISODateTime>;
8916
+ window: z.ZodOptional<z.ZodString>;
8917
+ evidence: z.ZodArray<z.ZodString>;
8918
+ }, z.core.$strict>>;
8919
+ requestId: z.ZodOptional<z.ZodString>;
8920
+ }, z.core.$strict>;
8921
+ type UsageRecord = z.infer<typeof UsageRecordSchema>;
8922
+ /** One quota window from Anthropic's unified rate-limit headers. */
8923
+ declare const QuotaWindowSchema: z.ZodObject<{
8924
+ utilization: z.ZodOptional<z.ZodNumber>;
8925
+ resetsAt: z.ZodOptional<z.ZodISODateTime>;
8926
+ status: z.ZodOptional<z.ZodString>;
8927
+ graceUtilization: z.ZodOptional<z.ZodNumber>;
8928
+ }, z.core.$strict>;
8929
+ type QuotaWindow = z.infer<typeof QuotaWindowSchema>;
8930
+ /**
8931
+ * 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).
8932
+ */
8933
+ declare const AccountMetadataSchema: z.ZodObject<{
8934
+ accountUuid: z.ZodOptional<z.ZodString>;
8935
+ emailAddress: z.ZodOptional<z.ZodString>;
8936
+ displayName: z.ZodOptional<z.ZodString>;
8937
+ organizationUuid: z.ZodOptional<z.ZodString>;
8938
+ organizationName: z.ZodOptional<z.ZodString>;
8939
+ organizationType: z.ZodOptional<z.ZodString>;
8940
+ organizationRole: z.ZodOptional<z.ZodString>;
8941
+ workspaceRole: z.ZodOptional<z.ZodString>;
8942
+ billingType: z.ZodOptional<z.ZodString>;
8943
+ seatTier: z.ZodOptional<z.ZodString>;
8944
+ organizationRateLimitTier: z.ZodOptional<z.ZodString>;
8945
+ userRateLimitTier: z.ZodOptional<z.ZodString>;
8946
+ hasExtraUsageEnabled: z.ZodOptional<z.ZodBoolean>;
8947
+ subscriptionCreatedAt: z.ZodOptional<z.ZodString>;
8948
+ accountCreatedAt: z.ZodOptional<z.ZodString>;
8949
+ }, z.core.$strict>;
8950
+ type AccountMetadata = z.infer<typeof AccountMetadataSchema>;
8951
+ /**
8952
+ * The latest state for one identity, rewritten atomically after each recorded response: the snapshot file other tools read (`~/.agent-shim/usage/snapshots/<identity>.json`) without shelling out to `agent-shim`.
8953
+ */
8954
+ declare const UsageSnapshotSchema: z.ZodObject<{
8955
+ schemaVersion: z.ZodLiteral<1>;
8956
+ identity: z.ZodString;
8957
+ updatedAt: z.ZodISODateTime;
8958
+ account: z.ZodOptional<z.ZodObject<{
8959
+ accountUuid: z.ZodOptional<z.ZodString>;
8960
+ emailAddress: z.ZodOptional<z.ZodString>;
8961
+ displayName: z.ZodOptional<z.ZodString>;
8962
+ organizationUuid: z.ZodOptional<z.ZodString>;
8963
+ organizationName: z.ZodOptional<z.ZodString>;
8964
+ organizationType: z.ZodOptional<z.ZodString>;
8965
+ organizationRole: z.ZodOptional<z.ZodString>;
8966
+ workspaceRole: z.ZodOptional<z.ZodString>;
8967
+ billingType: z.ZodOptional<z.ZodString>;
8968
+ seatTier: z.ZodOptional<z.ZodString>;
8969
+ organizationRateLimitTier: z.ZodOptional<z.ZodString>;
8970
+ userRateLimitTier: z.ZodOptional<z.ZodString>;
8971
+ hasExtraUsageEnabled: z.ZodOptional<z.ZodBoolean>;
8972
+ subscriptionCreatedAt: z.ZodOptional<z.ZodString>;
8973
+ accountCreatedAt: z.ZodOptional<z.ZodString>;
8974
+ }, z.core.$strict>>;
8975
+ providers: z.ZodRecord<z.ZodString, z.ZodObject<{
8976
+ lastRequestAt: z.ZodOptional<z.ZodISODateTime>;
8977
+ lastStatus: z.ZodOptional<z.ZodNumber>;
8978
+ lastModel: z.ZodOptional<z.ZodString>;
8979
+ rateLimit: z.ZodOptional<z.ZodObject<{
8980
+ observedAt: z.ZodISODateTime;
8981
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
8982
+ unified: z.ZodOptional<z.ZodObject<{
8983
+ status: z.ZodOptional<z.ZodString>;
8984
+ fiveHour: z.ZodOptional<z.ZodObject<{
8985
+ utilization: z.ZodOptional<z.ZodNumber>;
8986
+ resetsAt: z.ZodOptional<z.ZodISODateTime>;
8987
+ status: z.ZodOptional<z.ZodString>;
8988
+ graceUtilization: z.ZodOptional<z.ZodNumber>;
8989
+ }, z.core.$strict>>;
8990
+ sevenDay: z.ZodOptional<z.ZodObject<{
8991
+ utilization: z.ZodOptional<z.ZodNumber>;
8992
+ resetsAt: z.ZodOptional<z.ZodISODateTime>;
8993
+ status: z.ZodOptional<z.ZodString>;
8994
+ graceUtilization: z.ZodOptional<z.ZodNumber>;
8995
+ }, z.core.$strict>>;
8996
+ sevenDayOverageIncluded: z.ZodOptional<z.ZodObject<{
8997
+ utilization: z.ZodOptional<z.ZodNumber>;
8998
+ resetsAt: z.ZodOptional<z.ZodISODateTime>;
8999
+ status: z.ZodOptional<z.ZodString>;
9000
+ graceUtilization: z.ZodOptional<z.ZodNumber>;
9001
+ }, z.core.$strict>>;
9002
+ representativeClaim: z.ZodOptional<z.ZodString>;
9003
+ resetAt: z.ZodOptional<z.ZodISODateTime>;
9004
+ overageStatus: z.ZodOptional<z.ZodString>;
9005
+ overageUtilization: z.ZodOptional<z.ZodNumber>;
9006
+ overageResetsAt: z.ZodOptional<z.ZodISODateTime>;
9007
+ overageDisabledReason: z.ZodOptional<z.ZodString>;
9008
+ overageInUse: z.ZodOptional<z.ZodBoolean>;
9009
+ extraUsageSpend: z.ZodOptional<z.ZodObject<{
9010
+ usedMinor: z.ZodNumber;
9011
+ limitMinor: z.ZodOptional<z.ZodNumber>;
9012
+ currency: z.ZodString;
9013
+ }, z.core.$strict>>;
9014
+ fallbackAvailable: z.ZodOptional<z.ZodBoolean>;
9015
+ }, z.core.$strict>>;
9016
+ planWindowsUnavailableAt: z.ZodOptional<z.ZodISODateTime>;
9017
+ }, z.core.$strict>>;
9018
+ lastLimit: z.ZodOptional<z.ZodObject<{
9019
+ kind: z.ZodEnum<{
9020
+ "rate-limited": "rate-limited";
9021
+ "quota-exhausted": "quota-exhausted";
9022
+ }>;
9023
+ retryAfterSeconds: z.ZodOptional<z.ZodNumber>;
9024
+ resetAt: z.ZodOptional<z.ZodISODateTime>;
9025
+ window: z.ZodOptional<z.ZodString>;
9026
+ evidence: z.ZodArray<z.ZodString>;
9027
+ observedAt: z.ZodISODateTime;
9028
+ status: z.ZodNumber;
9029
+ }, z.core.$strict>>;
9030
+ quota: z.ZodOptional<z.ZodObject<{
9031
+ observedAt: z.ZodISODateTime;
9032
+ source: z.ZodString;
9033
+ level: z.ZodOptional<z.ZodString>;
9034
+ account: z.ZodOptional<z.ZodObject<{
9035
+ email: z.ZodOptional<z.ZodString>;
9036
+ accountId: z.ZodOptional<z.ZodString>;
9037
+ }, z.core.$strict>>;
9038
+ windows: z.ZodArray<z.ZodObject<{
9039
+ measures: z.ZodString;
9040
+ periodMs: z.ZodOptional<z.ZodNumber>;
9041
+ period: z.ZodOptional<z.ZodString>;
9042
+ utilization: z.ZodNumber;
9043
+ resetsAt: z.ZodOptional<z.ZodISODateTime>;
9044
+ limit: z.ZodOptional<z.ZodNumber>;
9045
+ used: z.ZodOptional<z.ZodNumber>;
9046
+ remaining: z.ZodOptional<z.ZodNumber>;
9047
+ }, z.core.$strict>>;
9048
+ }, z.core.$strict>>;
9049
+ }, z.core.$strict>>;
9050
+ }, z.core.$strict>;
9051
+ type UsageSnapshot = z.infer<typeof UsageSnapshotSchema>;
9052
+
8877
9053
  /**
8878
9054
  * How the allowlist the headroom daemon serves lags the allowlist computed now. The daemon re-reads its allowlist file on every request that follows a change to it, and its supervisor rewrites the file and records the hash in the same tick, so a lag that lasts beyond one tick means the supervisor is not running or cannot write the file. A daemon started by an earlier release reads no file, and is reported as such instead.
8879
9055
  */
@@ -9083,6 +9259,8 @@ interface DoctorIdentityInput {
9083
9259
  readonly farmRoot: string;
9084
9260
  /** Whether the identity's `.credentials.json` exists, pre-resolved by the wiring layer since it is a file-existence check. */
9085
9261
  readonly credentialsFilePresent: boolean;
9262
+ /** The account metadata of the identity's stored login, pre-resolved by the wiring layer since it is a read of the identity's `.claude.json`. Undefined when the identity has no stored login or its metadata cannot be read. */
9263
+ readonly account: AccountMetadata | undefined;
9086
9264
  }
9087
9265
  /** One configuration profile's raw `<name>.json`, unparsed. */
9088
9266
  interface DoctorConfigProfileInput {
@@ -9190,180 +9368,6 @@ interface CollectDoctorReportParams {
9190
9368
  */
9191
9369
  declare function collectDoctorReport(params: CollectDoctorReportParams): DoctorReport;
9192
9370
 
9193
- /** One routed request, appended to the usage log when its response has finished. */
9194
- declare const UsageRecordSchema: z.ZodObject<{
9195
- schemaVersion: z.ZodLiteral<1>;
9196
- at: z.ZodISODateTime;
9197
- identity: z.ZodOptional<z.ZodString>;
9198
- provider: z.ZodString;
9199
- sessionId: z.ZodOptional<z.ZodString>;
9200
- clientSessionId: z.ZodOptional<z.ZodString>;
9201
- project: z.ZodOptional<z.ZodString>;
9202
- viaHeadroom: z.ZodOptional<z.ZodBoolean>;
9203
- route: z.ZodString;
9204
- method: z.ZodString;
9205
- endpoint: z.ZodString;
9206
- model: z.ZodOptional<z.ZodString>;
9207
- requestedModel: z.ZodOptional<z.ZodString>;
9208
- candidateProviders: z.ZodOptional<z.ZodArray<z.ZodString>>;
9209
- status: z.ZodNumber;
9210
- latencyMs: z.ZodNumber;
9211
- durationMs: z.ZodNumber;
9212
- outcome: z.ZodEnum<{
9213
- completed: "completed";
9214
- aborted: "aborted";
9215
- }>;
9216
- usage: z.ZodOptional<z.ZodObject<{
9217
- inputTokens: z.ZodOptional<z.ZodNumber>;
9218
- outputTokens: z.ZodOptional<z.ZodNumber>;
9219
- cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
9220
- cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
9221
- }, z.core.$strict>>;
9222
- rateLimitHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9223
- limit: z.ZodOptional<z.ZodObject<{
9224
- kind: z.ZodEnum<{
9225
- "rate-limited": "rate-limited";
9226
- "quota-exhausted": "quota-exhausted";
9227
- }>;
9228
- retryAfterSeconds: z.ZodOptional<z.ZodNumber>;
9229
- resetAt: z.ZodOptional<z.ZodISODateTime>;
9230
- window: z.ZodOptional<z.ZodString>;
9231
- evidence: z.ZodArray<z.ZodString>;
9232
- }, z.core.$strict>>;
9233
- requestId: z.ZodOptional<z.ZodString>;
9234
- }, z.core.$strict>;
9235
- type UsageRecord = z.infer<typeof UsageRecordSchema>;
9236
- /** One quota window from Anthropic's unified rate-limit headers. */
9237
- declare const QuotaWindowSchema: z.ZodObject<{
9238
- utilization: z.ZodOptional<z.ZodNumber>;
9239
- resetsAt: z.ZodOptional<z.ZodISODateTime>;
9240
- status: z.ZodOptional<z.ZodString>;
9241
- graceUtilization: z.ZodOptional<z.ZodNumber>;
9242
- }, z.core.$strict>;
9243
- type QuotaWindow = z.infer<typeof QuotaWindowSchema>;
9244
- /**
9245
- * 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).
9246
- */
9247
- declare const AccountMetadataSchema: z.ZodObject<{
9248
- accountUuid: z.ZodOptional<z.ZodString>;
9249
- emailAddress: z.ZodOptional<z.ZodString>;
9250
- displayName: z.ZodOptional<z.ZodString>;
9251
- organizationUuid: z.ZodOptional<z.ZodString>;
9252
- organizationName: z.ZodOptional<z.ZodString>;
9253
- organizationType: z.ZodOptional<z.ZodString>;
9254
- organizationRole: z.ZodOptional<z.ZodString>;
9255
- workspaceRole: z.ZodOptional<z.ZodString>;
9256
- billingType: z.ZodOptional<z.ZodString>;
9257
- seatTier: z.ZodOptional<z.ZodString>;
9258
- organizationRateLimitTier: z.ZodOptional<z.ZodString>;
9259
- userRateLimitTier: z.ZodOptional<z.ZodString>;
9260
- hasExtraUsageEnabled: z.ZodOptional<z.ZodBoolean>;
9261
- subscriptionCreatedAt: z.ZodOptional<z.ZodString>;
9262
- accountCreatedAt: z.ZodOptional<z.ZodString>;
9263
- }, z.core.$strict>;
9264
- type AccountMetadata = z.infer<typeof AccountMetadataSchema>;
9265
- /**
9266
- * The latest state for one identity, rewritten atomically after each recorded response: the snapshot file other tools read (`~/.agent-shim/usage/snapshots/<identity>.json`) without shelling out to `agent-shim`.
9267
- */
9268
- declare const UsageSnapshotSchema: z.ZodObject<{
9269
- schemaVersion: z.ZodLiteral<1>;
9270
- identity: z.ZodString;
9271
- updatedAt: z.ZodISODateTime;
9272
- account: z.ZodOptional<z.ZodObject<{
9273
- accountUuid: z.ZodOptional<z.ZodString>;
9274
- emailAddress: z.ZodOptional<z.ZodString>;
9275
- displayName: z.ZodOptional<z.ZodString>;
9276
- organizationUuid: z.ZodOptional<z.ZodString>;
9277
- organizationName: z.ZodOptional<z.ZodString>;
9278
- organizationType: z.ZodOptional<z.ZodString>;
9279
- organizationRole: z.ZodOptional<z.ZodString>;
9280
- workspaceRole: z.ZodOptional<z.ZodString>;
9281
- billingType: z.ZodOptional<z.ZodString>;
9282
- seatTier: z.ZodOptional<z.ZodString>;
9283
- organizationRateLimitTier: z.ZodOptional<z.ZodString>;
9284
- userRateLimitTier: z.ZodOptional<z.ZodString>;
9285
- hasExtraUsageEnabled: z.ZodOptional<z.ZodBoolean>;
9286
- subscriptionCreatedAt: z.ZodOptional<z.ZodString>;
9287
- accountCreatedAt: z.ZodOptional<z.ZodString>;
9288
- }, z.core.$strict>>;
9289
- providers: z.ZodRecord<z.ZodString, z.ZodObject<{
9290
- lastRequestAt: z.ZodOptional<z.ZodISODateTime>;
9291
- lastStatus: z.ZodOptional<z.ZodNumber>;
9292
- lastModel: z.ZodOptional<z.ZodString>;
9293
- rateLimit: z.ZodOptional<z.ZodObject<{
9294
- observedAt: z.ZodISODateTime;
9295
- headers: z.ZodRecord<z.ZodString, z.ZodString>;
9296
- unified: z.ZodOptional<z.ZodObject<{
9297
- status: z.ZodOptional<z.ZodString>;
9298
- fiveHour: z.ZodOptional<z.ZodObject<{
9299
- utilization: z.ZodOptional<z.ZodNumber>;
9300
- resetsAt: z.ZodOptional<z.ZodISODateTime>;
9301
- status: z.ZodOptional<z.ZodString>;
9302
- graceUtilization: z.ZodOptional<z.ZodNumber>;
9303
- }, z.core.$strict>>;
9304
- sevenDay: z.ZodOptional<z.ZodObject<{
9305
- utilization: z.ZodOptional<z.ZodNumber>;
9306
- resetsAt: z.ZodOptional<z.ZodISODateTime>;
9307
- status: z.ZodOptional<z.ZodString>;
9308
- graceUtilization: z.ZodOptional<z.ZodNumber>;
9309
- }, z.core.$strict>>;
9310
- sevenDayOverageIncluded: z.ZodOptional<z.ZodObject<{
9311
- utilization: z.ZodOptional<z.ZodNumber>;
9312
- resetsAt: z.ZodOptional<z.ZodISODateTime>;
9313
- status: z.ZodOptional<z.ZodString>;
9314
- graceUtilization: z.ZodOptional<z.ZodNumber>;
9315
- }, z.core.$strict>>;
9316
- representativeClaim: z.ZodOptional<z.ZodString>;
9317
- resetAt: z.ZodOptional<z.ZodISODateTime>;
9318
- overageStatus: z.ZodOptional<z.ZodString>;
9319
- overageUtilization: z.ZodOptional<z.ZodNumber>;
9320
- overageResetsAt: z.ZodOptional<z.ZodISODateTime>;
9321
- overageDisabledReason: z.ZodOptional<z.ZodString>;
9322
- overageInUse: z.ZodOptional<z.ZodBoolean>;
9323
- extraUsageSpend: z.ZodOptional<z.ZodObject<{
9324
- usedMinor: z.ZodNumber;
9325
- limitMinor: z.ZodOptional<z.ZodNumber>;
9326
- currency: z.ZodString;
9327
- }, z.core.$strict>>;
9328
- fallbackAvailable: z.ZodOptional<z.ZodBoolean>;
9329
- }, z.core.$strict>>;
9330
- planWindowsUnavailableAt: z.ZodOptional<z.ZodISODateTime>;
9331
- }, z.core.$strict>>;
9332
- lastLimit: z.ZodOptional<z.ZodObject<{
9333
- kind: z.ZodEnum<{
9334
- "rate-limited": "rate-limited";
9335
- "quota-exhausted": "quota-exhausted";
9336
- }>;
9337
- retryAfterSeconds: z.ZodOptional<z.ZodNumber>;
9338
- resetAt: z.ZodOptional<z.ZodISODateTime>;
9339
- window: z.ZodOptional<z.ZodString>;
9340
- evidence: z.ZodArray<z.ZodString>;
9341
- observedAt: z.ZodISODateTime;
9342
- status: z.ZodNumber;
9343
- }, z.core.$strict>>;
9344
- quota: z.ZodOptional<z.ZodObject<{
9345
- observedAt: z.ZodISODateTime;
9346
- source: z.ZodString;
9347
- level: z.ZodOptional<z.ZodString>;
9348
- account: z.ZodOptional<z.ZodObject<{
9349
- email: z.ZodOptional<z.ZodString>;
9350
- accountId: z.ZodOptional<z.ZodString>;
9351
- }, z.core.$strict>>;
9352
- windows: z.ZodArray<z.ZodObject<{
9353
- measures: z.ZodString;
9354
- periodMs: z.ZodOptional<z.ZodNumber>;
9355
- period: z.ZodOptional<z.ZodString>;
9356
- utilization: z.ZodNumber;
9357
- resetsAt: z.ZodOptional<z.ZodISODateTime>;
9358
- limit: z.ZodOptional<z.ZodNumber>;
9359
- used: z.ZodOptional<z.ZodNumber>;
9360
- remaining: z.ZodOptional<z.ZodNumber>;
9361
- }, z.core.$strict>>;
9362
- }, z.core.$strict>>;
9363
- }, z.core.$strict>>;
9364
- }, z.core.$strict>;
9365
- type UsageSnapshot = z.infer<typeof UsageSnapshotSchema>;
9366
-
9367
9371
  /** How a sign-out went: whether OpenAI was told, so the person knows the grant is dead on its side too. */
9368
9372
  interface SiwcLogoutResult {
9369
9373
  readonly hadGrant: boolean;
@@ -9656,6 +9660,7 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
9656
9660
  kind: zod.ZodLiteral<"profile">;
9657
9661
  name: zod.ZodString;
9658
9662
  value: zod.ZodObject<{
9663
+ description: zod.ZodOptional<zod.ZodString>;
9659
9664
  entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
9660
9665
  value: zod.ZodBoolean;
9661
9666
  when: zod.ZodUnion<readonly [zod.ZodObject<{
@@ -9731,7 +9736,6 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
9731
9736
  key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
9732
9737
  }, zod_v4_core.$strip>], "kind">]>;
9733
9738
  }, zod_v4_core.$strict>]>>>;
9734
- description: zod.ZodOptional<zod.ZodString>;
9735
9739
  models: zod.ZodOptional<zod.ZodObject<{
9736
9740
  virtual: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
9737
9741
  mode: zod.ZodEnum<{
@@ -9819,8 +9823,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
9819
9823
  }>>;
9820
9824
  layout: zod.ZodOptional<zod.ZodObject<{
9821
9825
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
9822
- model: "model";
9823
9826
  account: "account";
9827
+ model: "model";
9824
9828
  identity: "identity";
9825
9829
  provider: "provider";
9826
9830
  version: "version";
@@ -10379,6 +10383,7 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
10379
10383
  kind: zod.ZodLiteral<"profile">;
10380
10384
  name: zod.ZodString;
10381
10385
  value: zod.ZodObject<{
10386
+ description: zod.ZodOptional<zod.ZodString>;
10382
10387
  entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
10383
10388
  value: zod.ZodBoolean;
10384
10389
  when: zod.ZodUnion<readonly [zod.ZodObject<{
@@ -10454,7 +10459,6 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
10454
10459
  key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
10455
10460
  }, zod_v4_core.$strip>], "kind">]>;
10456
10461
  }, zod_v4_core.$strict>]>>>;
10457
- description: zod.ZodOptional<zod.ZodString>;
10458
10462
  models: zod.ZodOptional<zod.ZodObject<{
10459
10463
  virtual: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
10460
10464
  mode: zod.ZodEnum<{
@@ -10542,8 +10546,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
10542
10546
  }>>;
10543
10547
  layout: zod.ZodOptional<zod.ZodObject<{
10544
10548
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
10545
- model: "model";
10546
10549
  account: "account";
10550
+ model: "model";
10547
10551
  identity: "identity";
10548
10552
  provider: "provider";
10549
10553
  version: "version";
@@ -11741,8 +11745,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
11741
11745
  }>>;
11742
11746
  layout: zod.ZodOptional<zod.ZodObject<{
11743
11747
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
11744
- model: "model";
11745
11748
  account: "account";
11749
+ model: "model";
11746
11750
  identity: "identity";
11747
11751
  provider: "provider";
11748
11752
  version: "version";
@@ -12521,8 +12525,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
12521
12525
  }>>;
12522
12526
  layout: zod.ZodOptional<zod.ZodObject<{
12523
12527
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
12524
- model: "model";
12525
12528
  account: "account";
12529
+ model: "model";
12526
12530
  identity: "identity";
12527
12531
  provider: "provider";
12528
12532
  version: "version";
@@ -13390,8 +13394,8 @@ declare const StatuslineSchema: z.ZodObject<{
13390
13394
  }>>;
13391
13395
  layout: z.ZodOptional<z.ZodObject<{
13392
13396
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
13393
- model: "model";
13394
13397
  account: "account";
13398
+ model: "model";
13395
13399
  identity: "identity";
13396
13400
  provider: "provider";
13397
13401
  version: "version";
@@ -13950,6 +13954,8 @@ interface SupervisedLaunch {
13950
13954
  readonly conversation: ClaudeConversation;
13951
13955
  /** The pool member to run as, for a relaunch after the previous member ran out of quota. The pool pick is skipped. */
13952
13956
  readonly member?: string;
13957
+ /** The pool member the session left, for a relaunch after it ran out of quota: what the launch report names as the account the session moved from. */
13958
+ readonly from?: string;
13953
13959
  /** The model to resume with, named by a model move that brought the session onto its member: the model part of the `acct:` member the session picked. Replaces any model the caller's own arguments name. */
13954
13960
  readonly model?: string;
13955
13961
  /** Claude Code settings, as the JSON `--settings` takes, to add to the launch: the hooks that tell the supervisor when a turn begins and ends. */
@@ -14250,8 +14256,8 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
14250
14256
  }>>;
14251
14257
  layout: zod.ZodOptional<zod.ZodObject<{
14252
14258
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
14253
- model: "model";
14254
14259
  account: "account";
14260
+ model: "model";
14255
14261
  identity: "identity";
14256
14262
  provider: "provider";
14257
14263
  version: "version";
@@ -15921,8 +15927,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
15921
15927
  }>>;
15922
15928
  layout: zod.ZodOptional<zod.ZodObject<{
15923
15929
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
15924
- model: "model";
15925
15930
  account: "account";
15931
+ model: "model";
15926
15932
  identity: "identity";
15927
15933
  provider: "provider";
15928
15934
  version: "version";
@@ -16724,6 +16730,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
16724
16730
  kind: zod.ZodLiteral<"profile">;
16725
16731
  name: zod.ZodString;
16726
16732
  value: zod.ZodObject<{
16733
+ description: zod.ZodOptional<zod.ZodString>;
16727
16734
  entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
16728
16735
  value: zod.ZodBoolean;
16729
16736
  when: zod.ZodUnion<readonly [zod.ZodObject<{
@@ -16799,7 +16806,6 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
16799
16806
  key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
16800
16807
  }, zod_v4_core.$strip>], "kind">]>;
16801
16808
  }, zod_v4_core.$strict>]>>>;
16802
- description: zod.ZodOptional<zod.ZodString>;
16803
16809
  models: zod.ZodOptional<zod.ZodObject<{
16804
16810
  virtual: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
16805
16811
  mode: zod.ZodEnum<{
@@ -16887,8 +16893,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
16887
16893
  }>>;
16888
16894
  layout: zod.ZodOptional<zod.ZodObject<{
16889
16895
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
16890
- model: "model";
16891
16896
  account: "account";
16897
+ model: "model";
16892
16898
  identity: "identity";
16893
16899
  provider: "provider";
16894
16900
  version: "version";
@@ -17447,6 +17453,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
17447
17453
  kind: zod.ZodLiteral<"profile">;
17448
17454
  name: zod.ZodString;
17449
17455
  value: zod.ZodObject<{
17456
+ description: zod.ZodOptional<zod.ZodString>;
17450
17457
  entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
17451
17458
  value: zod.ZodBoolean;
17452
17459
  when: zod.ZodUnion<readonly [zod.ZodObject<{
@@ -17522,7 +17529,6 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
17522
17529
  key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
17523
17530
  }, zod_v4_core.$strip>], "kind">]>;
17524
17531
  }, zod_v4_core.$strict>]>>>;
17525
- description: zod.ZodOptional<zod.ZodString>;
17526
17532
  models: zod.ZodOptional<zod.ZodObject<{
17527
17533
  virtual: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
17528
17534
  mode: zod.ZodEnum<{
@@ -17610,8 +17616,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
17610
17616
  }>>;
17611
17617
  layout: zod.ZodOptional<zod.ZodObject<{
17612
17618
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
17613
- model: "model";
17614
17619
  account: "account";
17620
+ model: "model";
17615
17621
  identity: "identity";
17616
17622
  provider: "provider";
17617
17623
  version: "version";
@@ -18809,8 +18815,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
18809
18815
  }>>;
18810
18816
  layout: zod.ZodOptional<zod.ZodObject<{
18811
18817
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
18812
- model: "model";
18813
18818
  account: "account";
18819
+ model: "model";
18814
18820
  identity: "identity";
18815
18821
  provider: "provider";
18816
18822
  version: "version";
@@ -19589,8 +19595,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
19589
19595
  }>>;
19590
19596
  layout: zod.ZodOptional<zod.ZodObject<{
19591
19597
  header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
19592
- model: "model";
19593
19598
  account: "account";
19599
+ model: "model";
19594
19600
  identity: "identity";
19595
19601
  provider: "provider";
19596
19602
  version: "version";
@@ -21250,6 +21256,7 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
21250
21256
  kind: z.ZodLiteral<"profile">;
21251
21257
  name: z.ZodString;
21252
21258
  value: z.ZodObject<{
21259
+ description: z.ZodOptional<z.ZodString>;
21253
21260
  entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
21254
21261
  value: z.ZodBoolean;
21255
21262
  when: z.ZodUnion<readonly [z.ZodObject<{
@@ -21325,7 +21332,6 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
21325
21332
  key: z.ZodType<trilean.JsonValue, unknown, z.core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
21326
21333
  }, z.core.$strip>], "kind">]>;
21327
21334
  }, z.core.$strict>]>>>;
21328
- description: z.ZodOptional<z.ZodString>;
21329
21335
  models: z.ZodOptional<z.ZodObject<{
21330
21336
  virtual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
21331
21337
  mode: z.ZodEnum<{
@@ -21413,8 +21419,8 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
21413
21419
  }>>;
21414
21420
  layout: z.ZodOptional<z.ZodObject<{
21415
21421
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
21416
- model: "model";
21417
21422
  account: "account";
21423
+ model: "model";
21418
21424
  identity: "identity";
21419
21425
  provider: "provider";
21420
21426
  version: "version";
@@ -21975,6 +21981,7 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
21975
21981
  kind: z.ZodLiteral<"profile">;
21976
21982
  name: z.ZodString;
21977
21983
  value: z.ZodObject<{
21984
+ description: z.ZodOptional<z.ZodString>;
21978
21985
  entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
21979
21986
  value: z.ZodBoolean;
21980
21987
  when: z.ZodUnion<readonly [z.ZodObject<{
@@ -22050,7 +22057,6 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
22050
22057
  key: z.ZodType<trilean.JsonValue, unknown, z.core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
22051
22058
  }, z.core.$strip>], "kind">]>;
22052
22059
  }, z.core.$strict>]>>>;
22053
- description: z.ZodOptional<z.ZodString>;
22054
22060
  models: z.ZodOptional<z.ZodObject<{
22055
22061
  virtual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
22056
22062
  mode: z.ZodEnum<{
@@ -22138,8 +22144,8 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
22138
22144
  }>>;
22139
22145
  layout: z.ZodOptional<z.ZodObject<{
22140
22146
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
22141
- model: "model";
22142
22147
  account: "account";
22148
+ model: "model";
22143
22149
  identity: "identity";
22144
22150
  provider: "provider";
22145
22151
  version: "version";
@@ -23339,8 +23345,8 @@ declare const ConfigRuleAddOutputSchema: z.ZodObject<{
23339
23345
  }>>;
23340
23346
  layout: z.ZodOptional<z.ZodObject<{
23341
23347
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
23342
- model: "model";
23343
23348
  account: "account";
23349
+ model: "model";
23344
23350
  identity: "identity";
23345
23351
  provider: "provider";
23346
23352
  version: "version";
@@ -24121,8 +24127,8 @@ declare const ConfigRuleSetOutputSchema: z.ZodObject<{
24121
24127
  }>>;
24122
24128
  layout: z.ZodOptional<z.ZodObject<{
24123
24129
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
24124
- model: "model";
24125
24130
  account: "account";
24131
+ model: "model";
24126
24132
  identity: "identity";
24127
24133
  provider: "provider";
24128
24134
  version: "version";
@@ -25160,8 +25166,8 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
25160
25166
  }>>;
25161
25167
  layout: z.ZodOptional<z.ZodObject<{
25162
25168
  header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
25163
- model: "model";
25164
25169
  account: "account";
25170
+ model: "model";
25165
25171
  identity: "identity";
25166
25172
  provider: "provider";
25167
25173
  version: "version";