claude-use 14.0.4 → 14.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.
- package/dist/cli.cjs +625 -114
- package/dist/index.cjs +69 -13
- package/dist/index.mjs +69 -13
- package/dist/types/index.d.ts +400 -383
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -297,14 +297,14 @@ declare const LaunchSchema: z.ZodObject<{
|
|
|
297
297
|
}>>;
|
|
298
298
|
layout: z.ZodOptional<z.ZodObject<{
|
|
299
299
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
300
|
-
account: "account";
|
|
301
300
|
identity: "identity";
|
|
301
|
+
model: "model";
|
|
302
|
+
route: "route";
|
|
303
|
+
account: "account";
|
|
302
304
|
provider: "provider";
|
|
303
305
|
version: "version";
|
|
304
306
|
headroom: "headroom";
|
|
305
|
-
model: "model";
|
|
306
307
|
duration: "duration";
|
|
307
|
-
route: "route";
|
|
308
308
|
project: "project";
|
|
309
309
|
vcs: "vcs";
|
|
310
310
|
effort: "effort";
|
|
@@ -800,8 +800,8 @@ declare const LaunchSchema: z.ZodObject<{
|
|
|
800
800
|
project: z.ZodOptional<z.ZodObject<{
|
|
801
801
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
802
802
|
full: "full";
|
|
803
|
-
1: "1";
|
|
804
803
|
2: "2";
|
|
804
|
+
1: "1";
|
|
805
805
|
3: "3";
|
|
806
806
|
}>>;
|
|
807
807
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1528,14 +1528,14 @@ declare const ConfigProfileSchema: z.ZodObject<{
|
|
|
1528
1528
|
}>>;
|
|
1529
1529
|
layout: z.ZodOptional<z.ZodObject<{
|
|
1530
1530
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1531
|
-
account: "account";
|
|
1532
1531
|
identity: "identity";
|
|
1532
|
+
model: "model";
|
|
1533
|
+
route: "route";
|
|
1534
|
+
account: "account";
|
|
1533
1535
|
provider: "provider";
|
|
1534
1536
|
version: "version";
|
|
1535
1537
|
headroom: "headroom";
|
|
1536
|
-
model: "model";
|
|
1537
1538
|
duration: "duration";
|
|
1538
|
-
route: "route";
|
|
1539
1539
|
project: "project";
|
|
1540
1540
|
vcs: "vcs";
|
|
1541
1541
|
effort: "effort";
|
|
@@ -2031,8 +2031,8 @@ declare const ConfigProfileSchema: z.ZodObject<{
|
|
|
2031
2031
|
project: z.ZodOptional<z.ZodObject<{
|
|
2032
2032
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
2033
2033
|
full: "full";
|
|
2034
|
-
1: "1";
|
|
2035
2034
|
2: "2";
|
|
2035
|
+
1: "1";
|
|
2036
2036
|
3: "3";
|
|
2037
2037
|
}>>;
|
|
2038
2038
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2378,14 +2378,14 @@ declare const DirectoryRuleSchema: z.ZodObject<{
|
|
|
2378
2378
|
}>>;
|
|
2379
2379
|
layout: z.ZodOptional<z.ZodObject<{
|
|
2380
2380
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2381
|
-
account: "account";
|
|
2382
2381
|
identity: "identity";
|
|
2382
|
+
model: "model";
|
|
2383
|
+
route: "route";
|
|
2384
|
+
account: "account";
|
|
2383
2385
|
provider: "provider";
|
|
2384
2386
|
version: "version";
|
|
2385
2387
|
headroom: "headroom";
|
|
2386
|
-
model: "model";
|
|
2387
2388
|
duration: "duration";
|
|
2388
|
-
route: "route";
|
|
2389
2389
|
project: "project";
|
|
2390
2390
|
vcs: "vcs";
|
|
2391
2391
|
effort: "effort";
|
|
@@ -2881,8 +2881,8 @@ declare const DirectoryRuleSchema: z.ZodObject<{
|
|
|
2881
2881
|
project: z.ZodOptional<z.ZodObject<{
|
|
2882
2882
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
2883
2883
|
full: "full";
|
|
2884
|
-
1: "1";
|
|
2885
2884
|
2: "2";
|
|
2885
|
+
1: "1";
|
|
2886
2886
|
3: "3";
|
|
2887
2887
|
}>>;
|
|
2888
2888
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3154,14 +3154,14 @@ declare const DirectoryRulesSchema: z.ZodObject<{
|
|
|
3154
3154
|
}>>;
|
|
3155
3155
|
layout: z.ZodOptional<z.ZodObject<{
|
|
3156
3156
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3157
|
-
account: "account";
|
|
3158
3157
|
identity: "identity";
|
|
3158
|
+
model: "model";
|
|
3159
|
+
route: "route";
|
|
3160
|
+
account: "account";
|
|
3159
3161
|
provider: "provider";
|
|
3160
3162
|
version: "version";
|
|
3161
3163
|
headroom: "headroom";
|
|
3162
|
-
model: "model";
|
|
3163
3164
|
duration: "duration";
|
|
3164
|
-
route: "route";
|
|
3165
3165
|
project: "project";
|
|
3166
3166
|
vcs: "vcs";
|
|
3167
3167
|
effort: "effort";
|
|
@@ -3657,8 +3657,8 @@ declare const DirectoryRulesSchema: z.ZodObject<{
|
|
|
3657
3657
|
project: z.ZodOptional<z.ZodObject<{
|
|
3658
3658
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
3659
3659
|
full: "full";
|
|
3660
|
-
1: "1";
|
|
3661
3660
|
2: "2";
|
|
3661
|
+
1: "1";
|
|
3662
3662
|
3: "3";
|
|
3663
3663
|
}>>;
|
|
3664
3664
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3930,14 +3930,14 @@ declare const PortableConfigSchema: z.ZodObject<{
|
|
|
3930
3930
|
}>>;
|
|
3931
3931
|
layout: z.ZodOptional<z.ZodObject<{
|
|
3932
3932
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3933
|
-
account: "account";
|
|
3934
3933
|
identity: "identity";
|
|
3934
|
+
model: "model";
|
|
3935
|
+
route: "route";
|
|
3936
|
+
account: "account";
|
|
3935
3937
|
provider: "provider";
|
|
3936
3938
|
version: "version";
|
|
3937
3939
|
headroom: "headroom";
|
|
3938
|
-
model: "model";
|
|
3939
3940
|
duration: "duration";
|
|
3940
|
-
route: "route";
|
|
3941
3941
|
project: "project";
|
|
3942
3942
|
vcs: "vcs";
|
|
3943
3943
|
effort: "effort";
|
|
@@ -4433,8 +4433,8 @@ declare const PortableConfigSchema: z.ZodObject<{
|
|
|
4433
4433
|
project: z.ZodOptional<z.ZodObject<{
|
|
4434
4434
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
4435
4435
|
full: "full";
|
|
4436
|
-
1: "1";
|
|
4437
4436
|
2: "2";
|
|
4437
|
+
1: "1";
|
|
4438
4438
|
3: "3";
|
|
4439
4439
|
}>>;
|
|
4440
4440
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -4686,14 +4686,14 @@ declare const GlobalConfigSchema: z.ZodObject<{
|
|
|
4686
4686
|
}>>;
|
|
4687
4687
|
layout: z.ZodOptional<z.ZodObject<{
|
|
4688
4688
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4689
|
-
account: "account";
|
|
4690
4689
|
identity: "identity";
|
|
4690
|
+
model: "model";
|
|
4691
|
+
route: "route";
|
|
4692
|
+
account: "account";
|
|
4691
4693
|
provider: "provider";
|
|
4692
4694
|
version: "version";
|
|
4693
4695
|
headroom: "headroom";
|
|
4694
|
-
model: "model";
|
|
4695
4696
|
duration: "duration";
|
|
4696
|
-
route: "route";
|
|
4697
4697
|
project: "project";
|
|
4698
4698
|
vcs: "vcs";
|
|
4699
4699
|
effort: "effort";
|
|
@@ -5189,8 +5189,8 @@ declare const GlobalConfigSchema: z.ZodObject<{
|
|
|
5189
5189
|
project: z.ZodOptional<z.ZodObject<{
|
|
5190
5190
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
5191
5191
|
full: "full";
|
|
5192
|
-
1: "1";
|
|
5193
5192
|
2: "2";
|
|
5193
|
+
1: "1";
|
|
5194
5194
|
3: "3";
|
|
5195
5195
|
}>>;
|
|
5196
5196
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -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
|
*/
|
|
@@ -9313,299 +9500,125 @@ declare const CheckReportJsonSchema: z.ZodObject<{
|
|
|
9313
9500
|
kind: z.ZodLiteral<"env">;
|
|
9314
9501
|
variable: z.ZodString;
|
|
9315
9502
|
}, z.core.$strict>, z.ZodObject<{
|
|
9316
|
-
kind: z.ZodLiteral<"file">;
|
|
9317
|
-
path: z.ZodString;
|
|
9318
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
9319
|
-
kind: z.ZodLiteral<"command">;
|
|
9320
|
-
program: z.ZodString;
|
|
9321
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
9322
|
-
kind: z.ZodLiteral<"op">;
|
|
9323
|
-
reference: z.ZodString;
|
|
9324
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
9325
|
-
kind: z.ZodLiteral<"keychain">;
|
|
9326
|
-
service: z.ZodString;
|
|
9327
|
-
account: z.ZodOptional<z.ZodString>;
|
|
9328
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
9329
|
-
kind: z.ZodLiteral<"literal">;
|
|
9330
|
-
}, z.core.$strict>]>>>;
|
|
9331
|
-
cache: z.ZodOptional<z.ZodObject<{
|
|
9332
|
-
ttl: z.ZodOptional<z.ZodString>;
|
|
9333
|
-
store: z.ZodOptional<z.ZodEnum<{
|
|
9334
|
-
file: "file";
|
|
9335
|
-
keychain: "keychain";
|
|
9336
|
-
}>>;
|
|
9337
|
-
}, z.core.$strict>>;
|
|
9338
|
-
}, z.core.$strict>>;
|
|
9339
|
-
identityCached: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
9340
|
-
store: z.ZodEnum<{
|
|
9341
|
-
file: "file";
|
|
9342
|
-
keychain: "keychain";
|
|
9343
|
-
}>;
|
|
9344
|
-
status: z.ZodLiteral<"empty">;
|
|
9345
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
9346
|
-
store: z.ZodEnum<{
|
|
9347
|
-
file: "file";
|
|
9348
|
-
keychain: "keychain";
|
|
9349
|
-
}>;
|
|
9350
|
-
status: z.ZodLiteral<"unreadable">;
|
|
9351
|
-
reason: z.ZodString;
|
|
9352
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
9353
|
-
store: z.ZodEnum<{
|
|
9354
|
-
file: "file";
|
|
9355
|
-
keychain: "keychain";
|
|
9356
|
-
}>;
|
|
9357
|
-
status: z.ZodEnum<{
|
|
9358
|
-
fresh: "fresh";
|
|
9359
|
-
expired: "expired";
|
|
9360
|
-
}>;
|
|
9361
|
-
ageMs: z.ZodNumber;
|
|
9362
|
-
expiresInMs: z.ZodOptional<z.ZodNumber>;
|
|
9363
|
-
}, z.core.$strict>]>>;
|
|
9364
|
-
}, z.core.$strict>;
|
|
9365
|
-
claudeVersion: z.ZodOptional<z.ZodObject<{
|
|
9366
|
-
pinned: z.ZodOptional<z.ZodObject<{
|
|
9367
|
-
version: z.ZodString;
|
|
9368
|
-
source: z.ZodEnum<{
|
|
9369
|
-
flag: "flag";
|
|
9370
|
-
environment: "environment";
|
|
9371
|
-
cascade: "cascade";
|
|
9372
|
-
}>;
|
|
9373
|
-
installed: z.ZodBoolean;
|
|
9374
|
-
}, z.core.$strict>>;
|
|
9375
|
-
highestInstalled: z.ZodOptional<z.ZodString>;
|
|
9376
|
-
installed: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
9377
|
-
}, z.core.$strict>>;
|
|
9378
|
-
providerReachability: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
9379
|
-
name: z.ZodString;
|
|
9380
|
-
baseUrl: z.ZodString;
|
|
9381
|
-
ok: z.ZodLiteral<true>;
|
|
9382
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
9383
|
-
name: z.ZodString;
|
|
9384
|
-
baseUrl: z.ZodString;
|
|
9385
|
-
ok: z.ZodLiteral<false>;
|
|
9386
|
-
message: z.ZodString;
|
|
9387
|
-
}, z.core.$strict>]>>;
|
|
9388
|
-
}, z.core.$strict>;
|
|
9389
|
-
type CheckReportJson = z.output<typeof CheckReportJsonSchema>;
|
|
9390
|
-
|
|
9391
|
-
/** What `pool pick` reports: the ranking a launch from `directory` would act on right now. */
|
|
9392
|
-
declare const PoolPickReportSchema: z.ZodObject<{
|
|
9393
|
-
pool: z.ZodString;
|
|
9394
|
-
directory: z.ZodString;
|
|
9395
|
-
pick: z.ZodOptional<z.ZodString>;
|
|
9396
|
-
candidates: z.ZodArray<z.ZodObject<{
|
|
9397
|
-
identity: z.ZodString;
|
|
9398
|
-
class: z.ZodEnum<{
|
|
9399
|
-
unknown: "unknown";
|
|
9400
|
-
scored: "scored";
|
|
9401
|
-
"pay-per-use": "pay-per-use";
|
|
9402
|
-
ineligible: "ineligible";
|
|
9403
|
-
}>;
|
|
9404
|
-
score: z.ZodOptional<z.ZodNumber>;
|
|
9405
|
-
scoreWindow: z.ZodOptional<z.ZodEnum<{
|
|
9406
|
-
fiveHour: "fiveHour";
|
|
9407
|
-
sevenDay: "sevenDay";
|
|
9408
|
-
}>>;
|
|
9409
|
-
feasible: z.ZodBoolean;
|
|
9410
|
-
blockedUntil: z.ZodOptional<z.ZodISODateTime>;
|
|
9411
|
-
plan: z.ZodUnion<readonly [z.ZodObject<{
|
|
9412
|
-
kind: z.ZodLiteral<"subscription">;
|
|
9413
|
-
capacity: z.ZodNumber;
|
|
9414
|
-
recognised: z.ZodBoolean;
|
|
9415
|
-
tier: z.ZodOptional<z.ZodString>;
|
|
9416
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
9417
|
-
kind: z.ZodLiteral<"pay-per-use">;
|
|
9418
|
-
tier: z.ZodOptional<z.ZodString>;
|
|
9419
|
-
}, z.core.$strict>]>;
|
|
9420
|
-
provider: z.ZodOptional<z.ZodString>;
|
|
9421
|
-
reasons: z.ZodArray<z.ZodString>;
|
|
9422
|
-
}, z.core.$strict>>;
|
|
9423
|
-
missing: z.ZodArray<z.ZodString>;
|
|
9424
|
-
earliestReturn: z.ZodOptional<z.ZodObject<{
|
|
9425
|
-
identity: z.ZodString;
|
|
9426
|
-
at: z.ZodISODateTime;
|
|
9427
|
-
}, z.core.$strict>>;
|
|
9428
|
-
movedOff: z.ZodOptional<z.ZodObject<{
|
|
9429
|
-
identity: z.ZodString;
|
|
9430
|
-
reason: z.ZodString;
|
|
9431
|
-
}, z.core.$strict>>;
|
|
9432
|
-
stickyProblem: z.ZodOptional<z.ZodString>;
|
|
9433
|
-
}, z.core.$strict>;
|
|
9434
|
-
type PoolPickReport = z.infer<typeof PoolPickReportSchema>;
|
|
9435
|
-
|
|
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>;
|
|
9503
|
+
kind: z.ZodLiteral<"file">;
|
|
9504
|
+
path: z.ZodString;
|
|
9505
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9506
|
+
kind: z.ZodLiteral<"command">;
|
|
9507
|
+
program: z.ZodString;
|
|
9508
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9509
|
+
kind: z.ZodLiteral<"op">;
|
|
9510
|
+
reference: z.ZodString;
|
|
9511
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9512
|
+
kind: z.ZodLiteral<"keychain">;
|
|
9513
|
+
service: z.ZodString;
|
|
9514
|
+
account: z.ZodOptional<z.ZodString>;
|
|
9515
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9516
|
+
kind: z.ZodLiteral<"literal">;
|
|
9517
|
+
}, z.core.$strict>]>>>;
|
|
9518
|
+
cache: z.ZodOptional<z.ZodObject<{
|
|
9519
|
+
ttl: z.ZodOptional<z.ZodString>;
|
|
9520
|
+
store: z.ZodOptional<z.ZodEnum<{
|
|
9521
|
+
file: "file";
|
|
9522
|
+
keychain: "keychain";
|
|
9523
|
+
}>>;
|
|
9604
9524
|
}, z.core.$strict>>;
|
|
9605
9525
|
}, z.core.$strict>>;
|
|
9526
|
+
identityCached: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
9527
|
+
store: z.ZodEnum<{
|
|
9528
|
+
file: "file";
|
|
9529
|
+
keychain: "keychain";
|
|
9530
|
+
}>;
|
|
9531
|
+
status: z.ZodLiteral<"empty">;
|
|
9532
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9533
|
+
store: z.ZodEnum<{
|
|
9534
|
+
file: "file";
|
|
9535
|
+
keychain: "keychain";
|
|
9536
|
+
}>;
|
|
9537
|
+
status: z.ZodLiteral<"unreadable">;
|
|
9538
|
+
reason: z.ZodString;
|
|
9539
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9540
|
+
store: z.ZodEnum<{
|
|
9541
|
+
file: "file";
|
|
9542
|
+
keychain: "keychain";
|
|
9543
|
+
}>;
|
|
9544
|
+
status: z.ZodEnum<{
|
|
9545
|
+
fresh: "fresh";
|
|
9546
|
+
expired: "expired";
|
|
9547
|
+
}>;
|
|
9548
|
+
ageMs: z.ZodNumber;
|
|
9549
|
+
expiresInMs: z.ZodOptional<z.ZodNumber>;
|
|
9550
|
+
}, z.core.$strict>]>>;
|
|
9551
|
+
}, z.core.$strict>;
|
|
9552
|
+
claudeVersion: z.ZodOptional<z.ZodObject<{
|
|
9553
|
+
pinned: z.ZodOptional<z.ZodObject<{
|
|
9554
|
+
version: z.ZodString;
|
|
9555
|
+
source: z.ZodEnum<{
|
|
9556
|
+
flag: "flag";
|
|
9557
|
+
environment: "environment";
|
|
9558
|
+
cascade: "cascade";
|
|
9559
|
+
}>;
|
|
9560
|
+
installed: z.ZodBoolean;
|
|
9561
|
+
}, z.core.$strict>>;
|
|
9562
|
+
highestInstalled: z.ZodOptional<z.ZodString>;
|
|
9563
|
+
installed: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
9564
|
+
}, z.core.$strict>>;
|
|
9565
|
+
providerReachability: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
9566
|
+
name: z.ZodString;
|
|
9567
|
+
baseUrl: z.ZodString;
|
|
9568
|
+
ok: z.ZodLiteral<true>;
|
|
9569
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9570
|
+
name: z.ZodString;
|
|
9571
|
+
baseUrl: z.ZodString;
|
|
9572
|
+
ok: z.ZodLiteral<false>;
|
|
9573
|
+
message: z.ZodString;
|
|
9574
|
+
}, z.core.$strict>]>>;
|
|
9575
|
+
}, z.core.$strict>;
|
|
9576
|
+
type CheckReportJson = z.output<typeof CheckReportJsonSchema>;
|
|
9577
|
+
|
|
9578
|
+
/** What `pool pick` reports: the ranking a launch from `directory` would act on right now. */
|
|
9579
|
+
declare const PoolPickReportSchema: z.ZodObject<{
|
|
9580
|
+
pool: z.ZodString;
|
|
9581
|
+
directory: z.ZodString;
|
|
9582
|
+
pick: z.ZodOptional<z.ZodString>;
|
|
9583
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
9584
|
+
identity: z.ZodString;
|
|
9585
|
+
class: z.ZodEnum<{
|
|
9586
|
+
unknown: "unknown";
|
|
9587
|
+
scored: "scored";
|
|
9588
|
+
"pay-per-use": "pay-per-use";
|
|
9589
|
+
ineligible: "ineligible";
|
|
9590
|
+
}>;
|
|
9591
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
9592
|
+
scoreWindow: z.ZodOptional<z.ZodEnum<{
|
|
9593
|
+
fiveHour: "fiveHour";
|
|
9594
|
+
sevenDay: "sevenDay";
|
|
9595
|
+
}>>;
|
|
9596
|
+
feasible: z.ZodBoolean;
|
|
9597
|
+
blockedUntil: z.ZodOptional<z.ZodISODateTime>;
|
|
9598
|
+
plan: z.ZodUnion<readonly [z.ZodObject<{
|
|
9599
|
+
kind: z.ZodLiteral<"subscription">;
|
|
9600
|
+
capacity: z.ZodNumber;
|
|
9601
|
+
recognised: z.ZodBoolean;
|
|
9602
|
+
tier: z.ZodOptional<z.ZodString>;
|
|
9603
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9604
|
+
kind: z.ZodLiteral<"pay-per-use">;
|
|
9605
|
+
tier: z.ZodOptional<z.ZodString>;
|
|
9606
|
+
}, z.core.$strict>]>;
|
|
9607
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
9608
|
+
reasons: z.ZodArray<z.ZodString>;
|
|
9609
|
+
}, z.core.$strict>>;
|
|
9610
|
+
missing: z.ZodArray<z.ZodString>;
|
|
9611
|
+
earliestReturn: z.ZodOptional<z.ZodObject<{
|
|
9612
|
+
identity: z.ZodString;
|
|
9613
|
+
at: z.ZodISODateTime;
|
|
9614
|
+
}, z.core.$strict>>;
|
|
9615
|
+
movedOff: z.ZodOptional<z.ZodObject<{
|
|
9616
|
+
identity: z.ZodString;
|
|
9617
|
+
reason: z.ZodString;
|
|
9606
9618
|
}, z.core.$strict>>;
|
|
9619
|
+
stickyProblem: z.ZodOptional<z.ZodString>;
|
|
9607
9620
|
}, z.core.$strict>;
|
|
9608
|
-
type
|
|
9621
|
+
type PoolPickReport = z.infer<typeof PoolPickReportSchema>;
|
|
9609
9622
|
|
|
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.
|
|
@@ -10270,7 +10283,6 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
10270
10283
|
kind: zod.ZodLiteral<"profile">;
|
|
10271
10284
|
name: zod.ZodString;
|
|
10272
10285
|
value: zod.ZodObject<{
|
|
10273
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
10274
10286
|
entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
|
|
10275
10287
|
value: zod.ZodBoolean;
|
|
10276
10288
|
when: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -10346,6 +10358,7 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
10346
10358
|
key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
|
|
10347
10359
|
}, zod_v4_core.$strip>], "kind">]>;
|
|
10348
10360
|
}, zod_v4_core.$strict>]>>>;
|
|
10361
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
10349
10362
|
models: zod.ZodOptional<zod.ZodObject<{
|
|
10350
10363
|
pickerLabelSpaces: zod.ZodOptional<zod.ZodBoolean>;
|
|
10351
10364
|
virtual: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -10434,14 +10447,14 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
10434
10447
|
}>>;
|
|
10435
10448
|
layout: zod.ZodOptional<zod.ZodObject<{
|
|
10436
10449
|
header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
10437
|
-
account: "account";
|
|
10438
10450
|
identity: "identity";
|
|
10451
|
+
model: "model";
|
|
10452
|
+
route: "route";
|
|
10453
|
+
account: "account";
|
|
10439
10454
|
provider: "provider";
|
|
10440
10455
|
version: "version";
|
|
10441
10456
|
headroom: "headroom";
|
|
10442
|
-
model: "model";
|
|
10443
10457
|
duration: "duration";
|
|
10444
|
-
route: "route";
|
|
10445
10458
|
project: "project";
|
|
10446
10459
|
vcs: "vcs";
|
|
10447
10460
|
effort: "effort";
|
|
@@ -10937,8 +10950,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
10937
10950
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
10938
10951
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
10939
10952
|
full: "full";
|
|
10940
|
-
1: "1";
|
|
10941
10953
|
2: "2";
|
|
10954
|
+
1: "1";
|
|
10942
10955
|
3: "3";
|
|
10943
10956
|
}>>;
|
|
10944
10957
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -10994,7 +11007,6 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
10994
11007
|
kind: zod.ZodLiteral<"profile">;
|
|
10995
11008
|
name: zod.ZodString;
|
|
10996
11009
|
value: zod.ZodObject<{
|
|
10997
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
10998
11010
|
entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
|
|
10999
11011
|
value: zod.ZodBoolean;
|
|
11000
11012
|
when: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -11070,6 +11082,7 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
11070
11082
|
key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
|
|
11071
11083
|
}, zod_v4_core.$strip>], "kind">]>;
|
|
11072
11084
|
}, zod_v4_core.$strict>]>>>;
|
|
11085
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
11073
11086
|
models: zod.ZodOptional<zod.ZodObject<{
|
|
11074
11087
|
pickerLabelSpaces: zod.ZodOptional<zod.ZodBoolean>;
|
|
11075
11088
|
virtual: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodObject<{
|
|
@@ -11158,14 +11171,14 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
11158
11171
|
}>>;
|
|
11159
11172
|
layout: zod.ZodOptional<zod.ZodObject<{
|
|
11160
11173
|
header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
11161
|
-
account: "account";
|
|
11162
11174
|
identity: "identity";
|
|
11175
|
+
model: "model";
|
|
11176
|
+
route: "route";
|
|
11177
|
+
account: "account";
|
|
11163
11178
|
provider: "provider";
|
|
11164
11179
|
version: "version";
|
|
11165
11180
|
headroom: "headroom";
|
|
11166
|
-
model: "model";
|
|
11167
11181
|
duration: "duration";
|
|
11168
|
-
route: "route";
|
|
11169
11182
|
project: "project";
|
|
11170
11183
|
vcs: "vcs";
|
|
11171
11184
|
effort: "effort";
|
|
@@ -11661,8 +11674,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
11661
11674
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
11662
11675
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
11663
11676
|
full: "full";
|
|
11664
|
-
1: "1";
|
|
11665
11677
|
2: "2";
|
|
11678
|
+
1: "1";
|
|
11666
11679
|
3: "3";
|
|
11667
11680
|
}>>;
|
|
11668
11681
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -12358,14 +12371,14 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
12358
12371
|
}>>;
|
|
12359
12372
|
layout: zod.ZodOptional<zod.ZodObject<{
|
|
12360
12373
|
header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
12361
|
-
account: "account";
|
|
12362
12374
|
identity: "identity";
|
|
12375
|
+
model: "model";
|
|
12376
|
+
route: "route";
|
|
12377
|
+
account: "account";
|
|
12363
12378
|
provider: "provider";
|
|
12364
12379
|
version: "version";
|
|
12365
12380
|
headroom: "headroom";
|
|
12366
|
-
model: "model";
|
|
12367
12381
|
duration: "duration";
|
|
12368
|
-
route: "route";
|
|
12369
12382
|
project: "project";
|
|
12370
12383
|
vcs: "vcs";
|
|
12371
12384
|
effort: "effort";
|
|
@@ -12861,8 +12874,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
12861
12874
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
12862
12875
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
12863
12876
|
full: "full";
|
|
12864
|
-
1: "1";
|
|
12865
12877
|
2: "2";
|
|
12878
|
+
1: "1";
|
|
12866
12879
|
3: "3";
|
|
12867
12880
|
}>>;
|
|
12868
12881
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -13139,14 +13152,14 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
13139
13152
|
}>>;
|
|
13140
13153
|
layout: zod.ZodOptional<zod.ZodObject<{
|
|
13141
13154
|
header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
13142
|
-
account: "account";
|
|
13143
13155
|
identity: "identity";
|
|
13156
|
+
model: "model";
|
|
13157
|
+
route: "route";
|
|
13158
|
+
account: "account";
|
|
13144
13159
|
provider: "provider";
|
|
13145
13160
|
version: "version";
|
|
13146
13161
|
headroom: "headroom";
|
|
13147
|
-
model: "model";
|
|
13148
13162
|
duration: "duration";
|
|
13149
|
-
route: "route";
|
|
13150
13163
|
project: "project";
|
|
13151
13164
|
vcs: "vcs";
|
|
13152
13165
|
effort: "effort";
|
|
@@ -13642,8 +13655,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
13642
13655
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
13643
13656
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
13644
13657
|
full: "full";
|
|
13645
|
-
1: "1";
|
|
13646
13658
|
2: "2";
|
|
13659
|
+
1: "1";
|
|
13647
13660
|
3: "3";
|
|
13648
13661
|
}>>;
|
|
13649
13662
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -14156,14 +14169,14 @@ declare const StatuslineSchema: z.ZodObject<{
|
|
|
14156
14169
|
}>>;
|
|
14157
14170
|
layout: z.ZodOptional<z.ZodObject<{
|
|
14158
14171
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
14159
|
-
account: "account";
|
|
14160
14172
|
identity: "identity";
|
|
14173
|
+
model: "model";
|
|
14174
|
+
route: "route";
|
|
14175
|
+
account: "account";
|
|
14161
14176
|
provider: "provider";
|
|
14162
14177
|
version: "version";
|
|
14163
14178
|
headroom: "headroom";
|
|
14164
|
-
model: "model";
|
|
14165
14179
|
duration: "duration";
|
|
14166
|
-
route: "route";
|
|
14167
14180
|
project: "project";
|
|
14168
14181
|
vcs: "vcs";
|
|
14169
14182
|
effort: "effort";
|
|
@@ -14659,8 +14672,8 @@ declare const StatuslineSchema: z.ZodObject<{
|
|
|
14659
14672
|
project: z.ZodOptional<z.ZodObject<{
|
|
14660
14673
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
14661
14674
|
full: "full";
|
|
14662
|
-
1: "1";
|
|
14663
14675
|
2: "2";
|
|
14676
|
+
1: "1";
|
|
14664
14677
|
3: "3";
|
|
14665
14678
|
}>>;
|
|
14666
14679
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -15053,14 +15066,14 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
|
|
|
15053
15066
|
}>>;
|
|
15054
15067
|
layout: zod.ZodOptional<zod.ZodObject<{
|
|
15055
15068
|
header: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
15056
|
-
account: "account";
|
|
15057
15069
|
identity: "identity";
|
|
15070
|
+
model: "model";
|
|
15071
|
+
route: "route";
|
|
15072
|
+
account: "account";
|
|
15058
15073
|
provider: "provider";
|
|
15059
15074
|
version: "version";
|
|
15060
15075
|
headroom: "headroom";
|
|
15061
|
-
model: "model";
|
|
15062
15076
|
duration: "duration";
|
|
15063
|
-
route: "route";
|
|
15064
15077
|
project: "project";
|
|
15065
15078
|
vcs: "vcs";
|
|
15066
15079
|
effort: "effort";
|
|
@@ -15556,8 +15569,8 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
|
|
|
15556
15569
|
project: zod.ZodOptional<zod.ZodObject<{
|
|
15557
15570
|
pathLevels: zod.ZodOptional<zod.ZodEnum<{
|
|
15558
15571
|
full: "full";
|
|
15559
|
-
1: "1";
|
|
15560
15572
|
2: "2";
|
|
15573
|
+
1: "1";
|
|
15561
15574
|
3: "3";
|
|
15562
15575
|
}>>;
|
|
15563
15576
|
addedDirsLayout: zod.ZodOptional<zod.ZodEnum<{
|
|
@@ -16798,14 +16811,14 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
16798
16811
|
}>>;
|
|
16799
16812
|
layout: z.ZodOptional<z.ZodObject<{
|
|
16800
16813
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
16801
|
-
account: "account";
|
|
16802
16814
|
identity: "identity";
|
|
16815
|
+
model: "model";
|
|
16816
|
+
route: "route";
|
|
16817
|
+
account: "account";
|
|
16803
16818
|
provider: "provider";
|
|
16804
16819
|
version: "version";
|
|
16805
16820
|
headroom: "headroom";
|
|
16806
|
-
model: "model";
|
|
16807
16821
|
duration: "duration";
|
|
16808
|
-
route: "route";
|
|
16809
16822
|
project: "project";
|
|
16810
16823
|
vcs: "vcs";
|
|
16811
16824
|
effort: "effort";
|
|
@@ -17301,8 +17314,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
17301
17314
|
project: z.ZodOptional<z.ZodObject<{
|
|
17302
17315
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
17303
17316
|
full: "full";
|
|
17304
|
-
1: "1";
|
|
17305
17317
|
2: "2";
|
|
17318
|
+
1: "1";
|
|
17306
17319
|
3: "3";
|
|
17307
17320
|
}>>;
|
|
17308
17321
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -17613,7 +17626,6 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
17613
17626
|
kind: z.ZodLiteral<"profile">;
|
|
17614
17627
|
name: z.ZodString;
|
|
17615
17628
|
value: z.ZodObject<{
|
|
17616
|
-
description: z.ZodOptional<z.ZodString>;
|
|
17617
17629
|
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
17618
17630
|
value: z.ZodBoolean;
|
|
17619
17631
|
when: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -17689,6 +17701,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
17689
17701
|
key: z.ZodType<trilean.JsonValue, unknown, z.core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
|
|
17690
17702
|
}, z.core.$strip>], "kind">]>;
|
|
17691
17703
|
}, z.core.$strict>]>>>;
|
|
17704
|
+
description: z.ZodOptional<z.ZodString>;
|
|
17692
17705
|
models: z.ZodOptional<z.ZodObject<{
|
|
17693
17706
|
pickerLabelSpaces: z.ZodOptional<z.ZodBoolean>;
|
|
17694
17707
|
virtual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -17777,14 +17790,14 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
17777
17790
|
}>>;
|
|
17778
17791
|
layout: z.ZodOptional<z.ZodObject<{
|
|
17779
17792
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
17780
|
-
account: "account";
|
|
17781
17793
|
identity: "identity";
|
|
17794
|
+
model: "model";
|
|
17795
|
+
route: "route";
|
|
17796
|
+
account: "account";
|
|
17782
17797
|
provider: "provider";
|
|
17783
17798
|
version: "version";
|
|
17784
17799
|
headroom: "headroom";
|
|
17785
|
-
model: "model";
|
|
17786
17800
|
duration: "duration";
|
|
17787
|
-
route: "route";
|
|
17788
17801
|
project: "project";
|
|
17789
17802
|
vcs: "vcs";
|
|
17790
17803
|
effort: "effort";
|
|
@@ -18280,8 +18293,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
18280
18293
|
project: z.ZodOptional<z.ZodObject<{
|
|
18281
18294
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
18282
18295
|
full: "full";
|
|
18283
|
-
1: "1";
|
|
18284
18296
|
2: "2";
|
|
18297
|
+
1: "1";
|
|
18285
18298
|
3: "3";
|
|
18286
18299
|
}>>;
|
|
18287
18300
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -18337,7 +18350,6 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
18337
18350
|
kind: z.ZodLiteral<"profile">;
|
|
18338
18351
|
name: z.ZodString;
|
|
18339
18352
|
value: z.ZodObject<{
|
|
18340
|
-
description: z.ZodOptional<z.ZodString>;
|
|
18341
18353
|
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
18342
18354
|
value: z.ZodBoolean;
|
|
18343
18355
|
when: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -18413,6 +18425,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
18413
18425
|
key: z.ZodType<trilean.JsonValue, unknown, z.core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
|
|
18414
18426
|
}, z.core.$strip>], "kind">]>;
|
|
18415
18427
|
}, z.core.$strict>]>>>;
|
|
18428
|
+
description: z.ZodOptional<z.ZodString>;
|
|
18416
18429
|
models: z.ZodOptional<z.ZodObject<{
|
|
18417
18430
|
pickerLabelSpaces: z.ZodOptional<z.ZodBoolean>;
|
|
18418
18431
|
virtual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -18501,14 +18514,14 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
18501
18514
|
}>>;
|
|
18502
18515
|
layout: z.ZodOptional<z.ZodObject<{
|
|
18503
18516
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
18504
|
-
account: "account";
|
|
18505
18517
|
identity: "identity";
|
|
18518
|
+
model: "model";
|
|
18519
|
+
route: "route";
|
|
18520
|
+
account: "account";
|
|
18506
18521
|
provider: "provider";
|
|
18507
18522
|
version: "version";
|
|
18508
18523
|
headroom: "headroom";
|
|
18509
|
-
model: "model";
|
|
18510
18524
|
duration: "duration";
|
|
18511
|
-
route: "route";
|
|
18512
18525
|
project: "project";
|
|
18513
18526
|
vcs: "vcs";
|
|
18514
18527
|
effort: "effort";
|
|
@@ -19004,8 +19017,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
19004
19017
|
project: z.ZodOptional<z.ZodObject<{
|
|
19005
19018
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
19006
19019
|
full: "full";
|
|
19007
|
-
1: "1";
|
|
19008
19020
|
2: "2";
|
|
19021
|
+
1: "1";
|
|
19009
19022
|
3: "3";
|
|
19010
19023
|
}>>;
|
|
19011
19024
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -19701,14 +19714,14 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
19701
19714
|
}>>;
|
|
19702
19715
|
layout: z.ZodOptional<z.ZodObject<{
|
|
19703
19716
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
19704
|
-
account: "account";
|
|
19705
19717
|
identity: "identity";
|
|
19718
|
+
model: "model";
|
|
19719
|
+
route: "route";
|
|
19720
|
+
account: "account";
|
|
19706
19721
|
provider: "provider";
|
|
19707
19722
|
version: "version";
|
|
19708
19723
|
headroom: "headroom";
|
|
19709
|
-
model: "model";
|
|
19710
19724
|
duration: "duration";
|
|
19711
|
-
route: "route";
|
|
19712
19725
|
project: "project";
|
|
19713
19726
|
vcs: "vcs";
|
|
19714
19727
|
effort: "effort";
|
|
@@ -20204,8 +20217,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
20204
20217
|
project: z.ZodOptional<z.ZodObject<{
|
|
20205
20218
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
20206
20219
|
full: "full";
|
|
20207
|
-
1: "1";
|
|
20208
20220
|
2: "2";
|
|
20221
|
+
1: "1";
|
|
20209
20222
|
3: "3";
|
|
20210
20223
|
}>>;
|
|
20211
20224
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -20482,14 +20495,14 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
20482
20495
|
}>>;
|
|
20483
20496
|
layout: z.ZodOptional<z.ZodObject<{
|
|
20484
20497
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
20485
|
-
account: "account";
|
|
20486
20498
|
identity: "identity";
|
|
20499
|
+
model: "model";
|
|
20500
|
+
route: "route";
|
|
20501
|
+
account: "account";
|
|
20487
20502
|
provider: "provider";
|
|
20488
20503
|
version: "version";
|
|
20489
20504
|
headroom: "headroom";
|
|
20490
|
-
model: "model";
|
|
20491
20505
|
duration: "duration";
|
|
20492
|
-
route: "route";
|
|
20493
20506
|
project: "project";
|
|
20494
20507
|
vcs: "vcs";
|
|
20495
20508
|
effort: "effort";
|
|
@@ -20985,8 +20998,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
20985
20998
|
project: z.ZodOptional<z.ZodObject<{
|
|
20986
20999
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
20987
21000
|
full: "full";
|
|
20988
|
-
1: "1";
|
|
20989
21001
|
2: "2";
|
|
21002
|
+
1: "1";
|
|
20990
21003
|
3: "3";
|
|
20991
21004
|
}>>;
|
|
20992
21005
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -22340,7 +22353,6 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
|
|
|
22340
22353
|
kind: z.ZodLiteral<"profile">;
|
|
22341
22354
|
name: z.ZodString;
|
|
22342
22355
|
value: z.ZodObject<{
|
|
22343
|
-
description: z.ZodOptional<z.ZodString>;
|
|
22344
22356
|
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
22345
22357
|
value: z.ZodBoolean;
|
|
22346
22358
|
when: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -22416,6 +22428,7 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
|
|
|
22416
22428
|
key: z.ZodType<trilean.JsonValue, unknown, z.core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
|
|
22417
22429
|
}, z.core.$strip>], "kind">]>;
|
|
22418
22430
|
}, z.core.$strict>]>>>;
|
|
22431
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22419
22432
|
models: z.ZodOptional<z.ZodObject<{
|
|
22420
22433
|
pickerLabelSpaces: z.ZodOptional<z.ZodBoolean>;
|
|
22421
22434
|
virtual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -22504,14 +22517,14 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
|
|
|
22504
22517
|
}>>;
|
|
22505
22518
|
layout: z.ZodOptional<z.ZodObject<{
|
|
22506
22519
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
22507
|
-
account: "account";
|
|
22508
22520
|
identity: "identity";
|
|
22521
|
+
model: "model";
|
|
22522
|
+
route: "route";
|
|
22523
|
+
account: "account";
|
|
22509
22524
|
provider: "provider";
|
|
22510
22525
|
version: "version";
|
|
22511
22526
|
headroom: "headroom";
|
|
22512
|
-
model: "model";
|
|
22513
22527
|
duration: "duration";
|
|
22514
|
-
route: "route";
|
|
22515
22528
|
project: "project";
|
|
22516
22529
|
vcs: "vcs";
|
|
22517
22530
|
effort: "effort";
|
|
@@ -23007,8 +23020,8 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
|
|
|
23007
23020
|
project: z.ZodOptional<z.ZodObject<{
|
|
23008
23021
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
23009
23022
|
full: "full";
|
|
23010
|
-
1: "1";
|
|
23011
23023
|
2: "2";
|
|
23024
|
+
1: "1";
|
|
23012
23025
|
3: "3";
|
|
23013
23026
|
}>>;
|
|
23014
23027
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -23066,7 +23079,6 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
|
|
|
23066
23079
|
kind: z.ZodLiteral<"profile">;
|
|
23067
23080
|
name: z.ZodString;
|
|
23068
23081
|
value: z.ZodObject<{
|
|
23069
|
-
description: z.ZodOptional<z.ZodString>;
|
|
23070
23082
|
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
23071
23083
|
value: z.ZodBoolean;
|
|
23072
23084
|
when: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -23142,6 +23154,7 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
|
|
|
23142
23154
|
key: z.ZodType<trilean.JsonValue, unknown, z.core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
|
|
23143
23155
|
}, z.core.$strip>], "kind">]>;
|
|
23144
23156
|
}, z.core.$strict>]>>>;
|
|
23157
|
+
description: z.ZodOptional<z.ZodString>;
|
|
23145
23158
|
models: z.ZodOptional<z.ZodObject<{
|
|
23146
23159
|
pickerLabelSpaces: z.ZodOptional<z.ZodBoolean>;
|
|
23147
23160
|
virtual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -23230,14 +23243,14 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
|
|
|
23230
23243
|
}>>;
|
|
23231
23244
|
layout: z.ZodOptional<z.ZodObject<{
|
|
23232
23245
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
23233
|
-
account: "account";
|
|
23234
23246
|
identity: "identity";
|
|
23247
|
+
model: "model";
|
|
23248
|
+
route: "route";
|
|
23249
|
+
account: "account";
|
|
23235
23250
|
provider: "provider";
|
|
23236
23251
|
version: "version";
|
|
23237
23252
|
headroom: "headroom";
|
|
23238
|
-
model: "model";
|
|
23239
23253
|
duration: "duration";
|
|
23240
|
-
route: "route";
|
|
23241
23254
|
project: "project";
|
|
23242
23255
|
vcs: "vcs";
|
|
23243
23256
|
effort: "effort";
|
|
@@ -23733,8 +23746,8 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
|
|
|
23733
23746
|
project: z.ZodOptional<z.ZodObject<{
|
|
23734
23747
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
23735
23748
|
full: "full";
|
|
23736
|
-
1: "1";
|
|
23737
23749
|
2: "2";
|
|
23750
|
+
1: "1";
|
|
23738
23751
|
3: "3";
|
|
23739
23752
|
}>>;
|
|
23740
23753
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -24432,14 +24445,14 @@ declare const ConfigRuleAddOutputSchema: z.ZodObject<{
|
|
|
24432
24445
|
}>>;
|
|
24433
24446
|
layout: z.ZodOptional<z.ZodObject<{
|
|
24434
24447
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
24435
|
-
account: "account";
|
|
24436
24448
|
identity: "identity";
|
|
24449
|
+
model: "model";
|
|
24450
|
+
route: "route";
|
|
24451
|
+
account: "account";
|
|
24437
24452
|
provider: "provider";
|
|
24438
24453
|
version: "version";
|
|
24439
24454
|
headroom: "headroom";
|
|
24440
|
-
model: "model";
|
|
24441
24455
|
duration: "duration";
|
|
24442
|
-
route: "route";
|
|
24443
24456
|
project: "project";
|
|
24444
24457
|
vcs: "vcs";
|
|
24445
24458
|
effort: "effort";
|
|
@@ -24935,8 +24948,8 @@ declare const ConfigRuleAddOutputSchema: z.ZodObject<{
|
|
|
24935
24948
|
project: z.ZodOptional<z.ZodObject<{
|
|
24936
24949
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
24937
24950
|
full: "full";
|
|
24938
|
-
1: "1";
|
|
24939
24951
|
2: "2";
|
|
24952
|
+
1: "1";
|
|
24940
24953
|
3: "3";
|
|
24941
24954
|
}>>;
|
|
24942
24955
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -25215,14 +25228,14 @@ declare const ConfigRuleSetOutputSchema: z.ZodObject<{
|
|
|
25215
25228
|
}>>;
|
|
25216
25229
|
layout: z.ZodOptional<z.ZodObject<{
|
|
25217
25230
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
25218
|
-
account: "account";
|
|
25219
25231
|
identity: "identity";
|
|
25232
|
+
model: "model";
|
|
25233
|
+
route: "route";
|
|
25234
|
+
account: "account";
|
|
25220
25235
|
provider: "provider";
|
|
25221
25236
|
version: "version";
|
|
25222
25237
|
headroom: "headroom";
|
|
25223
|
-
model: "model";
|
|
25224
25238
|
duration: "duration";
|
|
25225
|
-
route: "route";
|
|
25226
25239
|
project: "project";
|
|
25227
25240
|
vcs: "vcs";
|
|
25228
25241
|
effort: "effort";
|
|
@@ -25718,8 +25731,8 @@ declare const ConfigRuleSetOutputSchema: z.ZodObject<{
|
|
|
25718
25731
|
project: z.ZodOptional<z.ZodObject<{
|
|
25719
25732
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
25720
25733
|
full: "full";
|
|
25721
|
-
1: "1";
|
|
25722
25734
|
2: "2";
|
|
25735
|
+
1: "1";
|
|
25723
25736
|
3: "3";
|
|
25724
25737
|
}>>;
|
|
25725
25738
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -25902,14 +25915,14 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
|
|
|
25902
25915
|
}>>;
|
|
25903
25916
|
layout: z.ZodOptional<z.ZodObject<{
|
|
25904
25917
|
header: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
25905
|
-
account: "account";
|
|
25906
25918
|
identity: "identity";
|
|
25919
|
+
model: "model";
|
|
25920
|
+
route: "route";
|
|
25921
|
+
account: "account";
|
|
25907
25922
|
provider: "provider";
|
|
25908
25923
|
version: "version";
|
|
25909
25924
|
headroom: "headroom";
|
|
25910
|
-
model: "model";
|
|
25911
25925
|
duration: "duration";
|
|
25912
|
-
route: "route";
|
|
25913
25926
|
project: "project";
|
|
25914
25927
|
vcs: "vcs";
|
|
25915
25928
|
effort: "effort";
|
|
@@ -26405,8 +26418,8 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
|
|
|
26405
26418
|
project: z.ZodOptional<z.ZodObject<{
|
|
26406
26419
|
pathLevels: z.ZodOptional<z.ZodEnum<{
|
|
26407
26420
|
full: "full";
|
|
26408
|
-
1: "1";
|
|
26409
26421
|
2: "2";
|
|
26422
|
+
1: "1";
|
|
26410
26423
|
3: "3";
|
|
26411
26424
|
}>>;
|
|
26412
26425
|
addedDirsLayout: z.ZodOptional<z.ZodEnum<{
|
|
@@ -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
|
}
|