agent-shim 11.10.0 → 11.11.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 +274 -186
- package/dist/index.cjs +33 -3
- package/dist/index.mjs +33 -3
- package/dist/types/index.d.ts +46 -30
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2841,7 +2841,7 @@ var init_package = __esm({
|
|
|
2841
2841
|
"package.json"() {
|
|
2842
2842
|
package_default = {
|
|
2843
2843
|
name: "agent-shim",
|
|
2844
|
-
version: "11.
|
|
2844
|
+
version: "11.11.0",
|
|
2845
2845
|
description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
|
|
2846
2846
|
license: "MIT",
|
|
2847
2847
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -4670,7 +4670,7 @@ var init_identity = __esm({
|
|
|
4670
4670
|
});
|
|
4671
4671
|
|
|
4672
4672
|
// src/usage/schema.ts
|
|
4673
|
-
var import_zod10, USAGE_SCHEMA_VERSION, VersionSchema, InstantSchema, TokenCountSchema, TokenUsageSchema, LIMIT_KINDS, LimitClassificationSchema, UsageRecordSchema, QuotaWindowSchema, ExtraUsageSpendSchema, UnifiedRateLimitSchema, RateLimitStateSchema, LimitEventSchema, ProviderQuotaWindowSchema, ProviderQuotaSchema, ProviderUsageStateSchema, AccountMetadataSchema, UsageSnapshotSchema;
|
|
4673
|
+
var import_zod10, USAGE_SCHEMA_VERSION, VersionSchema, InstantSchema, TokenCountSchema, TokenUsageSchema, LIMIT_KINDS, LimitClassificationSchema, UsageRecordSchema, QuotaWindowSchema, ExtraUsageSpendSchema, UnifiedRateLimitSchema, RateLimitStateSchema, LimitEventSchema, ProviderQuotaWindowSchema, ProviderAccountSchema, ProviderQuotaSchema, ProviderUsageStateSchema, AccountMetadataSchema, UsageSnapshotSchema;
|
|
4674
4674
|
var init_schema2 = __esm({
|
|
4675
4675
|
"src/usage/schema.ts"() {
|
|
4676
4676
|
"use strict";
|
|
@@ -4802,12 +4802,18 @@ var init_schema2 = __esm({
|
|
|
4802
4802
|
used: import_zod10.z.number().nonnegative().optional(),
|
|
4803
4803
|
remaining: import_zod10.z.number().nonnegative().optional()
|
|
4804
4804
|
});
|
|
4805
|
+
ProviderAccountSchema = import_zod10.z.strictObject({
|
|
4806
|
+
email: import_zod10.z.string().optional(),
|
|
4807
|
+
accountId: import_zod10.z.string().optional()
|
|
4808
|
+
});
|
|
4805
4809
|
ProviderQuotaSchema = import_zod10.z.strictObject({
|
|
4806
4810
|
observedAt: InstantSchema,
|
|
4807
4811
|
/** Which usage endpoint produced it (`z.ai`). */
|
|
4808
4812
|
source: import_zod10.z.string(),
|
|
4809
4813
|
/** The subscription level the endpoint reports, when it does. */
|
|
4810
4814
|
level: import_zod10.z.string().optional(),
|
|
4815
|
+
/** The account the provider's credential belongs to, when its endpoint reports it. */
|
|
4816
|
+
account: ProviderAccountSchema.optional(),
|
|
4811
4817
|
windows: import_zod10.z.array(ProviderQuotaWindowSchema)
|
|
4812
4818
|
});
|
|
4813
4819
|
ProviderUsageStateSchema = import_zod10.z.strictObject({
|
|
@@ -8710,12 +8716,20 @@ var init_identityClaude = __esm({
|
|
|
8710
8716
|
}
|
|
8711
8717
|
});
|
|
8712
8718
|
|
|
8719
|
+
// src/antigravity/cloudUpstream.ts
|
|
8720
|
+
var init_cloudUpstream = __esm({
|
|
8721
|
+
"src/antigravity/cloudUpstream.ts"() {
|
|
8722
|
+
"use strict";
|
|
8723
|
+
}
|
|
8724
|
+
});
|
|
8725
|
+
|
|
8713
8726
|
// src/usage/providerQuota.ts
|
|
8714
|
-
var import_zod29, MS_PER_SECOND7, SECONDS_PER_HOUR, HOURS_PER_DAY4, DAYS_PER_MONTH, ZAI_HOST, ZAI_QUOTA_URL, ZAI_UNIT_HOURS, ZAI_UNIT_MONTHS, ZAI_UNIT_MS, ZaiLimitSchema, ZaiResponseSchema, OPENROUTER_HOST, OPENROUTER_KEY_URL, OPENROUTER_CREDITS_URL, MS_PER_DAY3, OpenRouterKeySchema, OpenRouterCreditsSchema;
|
|
8727
|
+
var import_zod29, MS_PER_SECOND7, SECONDS_PER_HOUR, HOURS_PER_DAY4, DAYS_PER_MONTH, ZAI_HOST, ZAI_QUOTA_URL, ZAI_UNIT_HOURS, ZAI_UNIT_MONTHS, ZAI_UNIT_MS, ZaiLimitSchema, ZaiResponseSchema, OPENROUTER_HOST, OPENROUTER_KEY_URL, OPENROUTER_CREDITS_URL, MS_PER_DAY3, OpenRouterKeySchema, OpenRouterCreditsSchema, ANTIGRAVITY_HOST, ANTIGRAVITY_QUOTA_URL, FIVE_HOURS2, DAYS_PER_WEEK, FIVE_HOURS_MS, WEEK_MS, AntigravityBucketSchema, AntigravitySummarySchema, GoogleTokenInfoSchema;
|
|
8715
8728
|
var init_providerQuota = __esm({
|
|
8716
8729
|
"src/usage/providerQuota.ts"() {
|
|
8717
8730
|
"use strict";
|
|
8718
8731
|
import_zod29 = require("zod");
|
|
8732
|
+
init_cloudUpstream();
|
|
8719
8733
|
init_schema2();
|
|
8720
8734
|
MS_PER_SECOND7 = 1e3;
|
|
8721
8735
|
SECONDS_PER_HOUR = 3600;
|
|
@@ -8758,6 +8772,22 @@ var init_providerQuota = __esm({
|
|
|
8758
8772
|
})
|
|
8759
8773
|
});
|
|
8760
8774
|
OpenRouterCreditsSchema = import_zod29.z.object({ data: import_zod29.z.object({ total_credits: import_zod29.z.number().nonnegative(), total_usage: import_zod29.z.number().nonnegative() }) });
|
|
8775
|
+
ANTIGRAVITY_HOST = "daily-cloudcode-pa.googleapis.com";
|
|
8776
|
+
ANTIGRAVITY_QUOTA_URL = `https://${ANTIGRAVITY_HOST}/v1internal:retrieveUserQuotaSummary`;
|
|
8777
|
+
FIVE_HOURS2 = 5;
|
|
8778
|
+
DAYS_PER_WEEK = 7;
|
|
8779
|
+
FIVE_HOURS_MS = FIVE_HOURS2 * SECONDS_PER_HOUR * MS_PER_SECOND7;
|
|
8780
|
+
WEEK_MS = DAYS_PER_WEEK * HOURS_PER_DAY4 * SECONDS_PER_HOUR * MS_PER_SECOND7;
|
|
8781
|
+
AntigravityBucketSchema = import_zod29.z.object({
|
|
8782
|
+
bucketId: import_zod29.z.string(),
|
|
8783
|
+
remainingFraction: import_zod29.z.number().optional(),
|
|
8784
|
+
resetTime: import_zod29.z.string().optional()
|
|
8785
|
+
});
|
|
8786
|
+
AntigravitySummarySchema = import_zod29.z.object({ groups: import_zod29.z.array(import_zod29.z.object({ buckets: import_zod29.z.array(AntigravityBucketSchema) })) });
|
|
8787
|
+
GoogleTokenInfoSchema = import_zod29.z.object({
|
|
8788
|
+
email: import_zod29.z.string().optional(),
|
|
8789
|
+
sub: import_zod29.z.string().optional()
|
|
8790
|
+
});
|
|
8761
8791
|
}
|
|
8762
8792
|
});
|
|
8763
8793
|
|
package/dist/index.mjs
CHANGED
|
@@ -2817,7 +2817,7 @@ var init_package = __esm({
|
|
|
2817
2817
|
"package.json"() {
|
|
2818
2818
|
package_default = {
|
|
2819
2819
|
name: "agent-shim",
|
|
2820
|
-
version: "11.
|
|
2820
|
+
version: "11.11.0",
|
|
2821
2821
|
description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
|
|
2822
2822
|
license: "MIT",
|
|
2823
2823
|
author: "Joseph Mearman <joseph@mearman.co.uk>",
|
|
@@ -4645,7 +4645,7 @@ var init_identity = __esm({
|
|
|
4645
4645
|
|
|
4646
4646
|
// src/usage/schema.ts
|
|
4647
4647
|
import { z as z10 } from "zod";
|
|
4648
|
-
var USAGE_SCHEMA_VERSION, VersionSchema, InstantSchema, TokenCountSchema, TokenUsageSchema, LIMIT_KINDS, LimitClassificationSchema, UsageRecordSchema, QuotaWindowSchema, ExtraUsageSpendSchema, UnifiedRateLimitSchema, RateLimitStateSchema, LimitEventSchema, ProviderQuotaWindowSchema, ProviderQuotaSchema, ProviderUsageStateSchema, AccountMetadataSchema, UsageSnapshotSchema;
|
|
4648
|
+
var USAGE_SCHEMA_VERSION, VersionSchema, InstantSchema, TokenCountSchema, TokenUsageSchema, LIMIT_KINDS, LimitClassificationSchema, UsageRecordSchema, QuotaWindowSchema, ExtraUsageSpendSchema, UnifiedRateLimitSchema, RateLimitStateSchema, LimitEventSchema, ProviderQuotaWindowSchema, ProviderAccountSchema, ProviderQuotaSchema, ProviderUsageStateSchema, AccountMetadataSchema, UsageSnapshotSchema;
|
|
4649
4649
|
var init_schema2 = __esm({
|
|
4650
4650
|
"src/usage/schema.ts"() {
|
|
4651
4651
|
"use strict";
|
|
@@ -4776,12 +4776,18 @@ var init_schema2 = __esm({
|
|
|
4776
4776
|
used: z10.number().nonnegative().optional(),
|
|
4777
4777
|
remaining: z10.number().nonnegative().optional()
|
|
4778
4778
|
});
|
|
4779
|
+
ProviderAccountSchema = z10.strictObject({
|
|
4780
|
+
email: z10.string().optional(),
|
|
4781
|
+
accountId: z10.string().optional()
|
|
4782
|
+
});
|
|
4779
4783
|
ProviderQuotaSchema = z10.strictObject({
|
|
4780
4784
|
observedAt: InstantSchema,
|
|
4781
4785
|
/** Which usage endpoint produced it (`z.ai`). */
|
|
4782
4786
|
source: z10.string(),
|
|
4783
4787
|
/** The subscription level the endpoint reports, when it does. */
|
|
4784
4788
|
level: z10.string().optional(),
|
|
4789
|
+
/** The account the provider's credential belongs to, when its endpoint reports it. */
|
|
4790
|
+
account: ProviderAccountSchema.optional(),
|
|
4785
4791
|
windows: z10.array(ProviderQuotaWindowSchema)
|
|
4786
4792
|
});
|
|
4787
4793
|
ProviderUsageStateSchema = z10.strictObject({
|
|
@@ -8681,12 +8687,20 @@ var init_identityClaude = __esm({
|
|
|
8681
8687
|
}
|
|
8682
8688
|
});
|
|
8683
8689
|
|
|
8690
|
+
// src/antigravity/cloudUpstream.ts
|
|
8691
|
+
var init_cloudUpstream = __esm({
|
|
8692
|
+
"src/antigravity/cloudUpstream.ts"() {
|
|
8693
|
+
"use strict";
|
|
8694
|
+
}
|
|
8695
|
+
});
|
|
8696
|
+
|
|
8684
8697
|
// src/usage/providerQuota.ts
|
|
8685
8698
|
import { z as z29 } from "zod";
|
|
8686
|
-
var MS_PER_SECOND7, SECONDS_PER_HOUR, HOURS_PER_DAY4, DAYS_PER_MONTH, ZAI_HOST, ZAI_QUOTA_URL, ZAI_UNIT_HOURS, ZAI_UNIT_MONTHS, ZAI_UNIT_MS, ZaiLimitSchema, ZaiResponseSchema, OPENROUTER_HOST, OPENROUTER_KEY_URL, OPENROUTER_CREDITS_URL, MS_PER_DAY3, OpenRouterKeySchema, OpenRouterCreditsSchema;
|
|
8699
|
+
var MS_PER_SECOND7, SECONDS_PER_HOUR, HOURS_PER_DAY4, DAYS_PER_MONTH, ZAI_HOST, ZAI_QUOTA_URL, ZAI_UNIT_HOURS, ZAI_UNIT_MONTHS, ZAI_UNIT_MS, ZaiLimitSchema, ZaiResponseSchema, OPENROUTER_HOST, OPENROUTER_KEY_URL, OPENROUTER_CREDITS_URL, MS_PER_DAY3, OpenRouterKeySchema, OpenRouterCreditsSchema, ANTIGRAVITY_HOST, ANTIGRAVITY_QUOTA_URL, FIVE_HOURS2, DAYS_PER_WEEK, FIVE_HOURS_MS, WEEK_MS, AntigravityBucketSchema, AntigravitySummarySchema, GoogleTokenInfoSchema;
|
|
8687
8700
|
var init_providerQuota = __esm({
|
|
8688
8701
|
"src/usage/providerQuota.ts"() {
|
|
8689
8702
|
"use strict";
|
|
8703
|
+
init_cloudUpstream();
|
|
8690
8704
|
init_schema2();
|
|
8691
8705
|
MS_PER_SECOND7 = 1e3;
|
|
8692
8706
|
SECONDS_PER_HOUR = 3600;
|
|
@@ -8729,6 +8743,22 @@ var init_providerQuota = __esm({
|
|
|
8729
8743
|
})
|
|
8730
8744
|
});
|
|
8731
8745
|
OpenRouterCreditsSchema = z29.object({ data: z29.object({ total_credits: z29.number().nonnegative(), total_usage: z29.number().nonnegative() }) });
|
|
8746
|
+
ANTIGRAVITY_HOST = "daily-cloudcode-pa.googleapis.com";
|
|
8747
|
+
ANTIGRAVITY_QUOTA_URL = `https://${ANTIGRAVITY_HOST}/v1internal:retrieveUserQuotaSummary`;
|
|
8748
|
+
FIVE_HOURS2 = 5;
|
|
8749
|
+
DAYS_PER_WEEK = 7;
|
|
8750
|
+
FIVE_HOURS_MS = FIVE_HOURS2 * SECONDS_PER_HOUR * MS_PER_SECOND7;
|
|
8751
|
+
WEEK_MS = DAYS_PER_WEEK * HOURS_PER_DAY4 * SECONDS_PER_HOUR * MS_PER_SECOND7;
|
|
8752
|
+
AntigravityBucketSchema = z29.object({
|
|
8753
|
+
bucketId: z29.string(),
|
|
8754
|
+
remainingFraction: z29.number().optional(),
|
|
8755
|
+
resetTime: z29.string().optional()
|
|
8756
|
+
});
|
|
8757
|
+
AntigravitySummarySchema = z29.object({ groups: z29.array(z29.object({ buckets: z29.array(AntigravityBucketSchema) })) });
|
|
8758
|
+
GoogleTokenInfoSchema = z29.object({
|
|
8759
|
+
email: z29.string().optional(),
|
|
8760
|
+
sub: z29.string().optional()
|
|
8761
|
+
});
|
|
8732
8762
|
}
|
|
8733
8763
|
});
|
|
8734
8764
|
|
package/dist/types/index.d.ts
CHANGED
|
@@ -397,8 +397,8 @@ declare const AntigravityProviderConfigSchema: z.ZodObject<{
|
|
|
397
397
|
haiku: z.ZodOptional<z.ZodString>;
|
|
398
398
|
}, z.core.$strict>>;
|
|
399
399
|
effort: z.ZodOptional<z.ZodEnum<{
|
|
400
|
-
max: "max";
|
|
401
400
|
none: "none";
|
|
401
|
+
max: "max";
|
|
402
402
|
low: "low";
|
|
403
403
|
medium: "medium";
|
|
404
404
|
high: "high";
|
|
@@ -668,8 +668,8 @@ declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
668
668
|
haiku: z.ZodOptional<z.ZodString>;
|
|
669
669
|
}, z.core.$strict>>;
|
|
670
670
|
effort: z.ZodOptional<z.ZodEnum<{
|
|
671
|
-
max: "max";
|
|
672
671
|
none: "none";
|
|
672
|
+
max: "max";
|
|
673
673
|
low: "low";
|
|
674
674
|
medium: "medium";
|
|
675
675
|
high: "high";
|
|
@@ -1436,8 +1436,8 @@ declare const HeadroomGlobalConfigSchema: z.ZodObject<{
|
|
|
1436
1436
|
targetRatio: z.ZodOptional<z.ZodNumber>;
|
|
1437
1437
|
ccr: z.ZodOptional<z.ZodEnum<{
|
|
1438
1438
|
default: "default";
|
|
1439
|
-
lossless: "lossless";
|
|
1440
1439
|
none: "none";
|
|
1440
|
+
lossless: "lossless";
|
|
1441
1441
|
}>>;
|
|
1442
1442
|
rolloutChannel: z.ZodOptional<z.ZodEnum<{
|
|
1443
1443
|
beta: "beta";
|
|
@@ -1564,8 +1564,8 @@ declare const GlobalConfigSchema: z.ZodObject<{
|
|
|
1564
1564
|
targetRatio: z.ZodOptional<z.ZodNumber>;
|
|
1565
1565
|
ccr: z.ZodOptional<z.ZodEnum<{
|
|
1566
1566
|
default: "default";
|
|
1567
|
-
lossless: "lossless";
|
|
1568
1567
|
none: "none";
|
|
1568
|
+
lossless: "lossless";
|
|
1569
1569
|
}>>;
|
|
1570
1570
|
rolloutChannel: z.ZodOptional<z.ZodEnum<{
|
|
1571
1571
|
beta: "beta";
|
|
@@ -4267,12 +4267,12 @@ declare const CheckReportJsonSchema: z.ZodObject<{
|
|
|
4267
4267
|
identity: z.ZodObject<{
|
|
4268
4268
|
name: z.ZodNullable<z.ZodString>;
|
|
4269
4269
|
source: z.ZodEnum<{
|
|
4270
|
-
env: "env";
|
|
4271
|
-
none: "none";
|
|
4272
4270
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
4273
4271
|
argv: "argv";
|
|
4272
|
+
env: "env";
|
|
4274
4273
|
"directory-pin": "directory-pin";
|
|
4275
4274
|
"active-identity-file": "active-identity-file";
|
|
4275
|
+
none: "none";
|
|
4276
4276
|
}>;
|
|
4277
4277
|
}, z.core.$strict>;
|
|
4278
4278
|
pool: z.ZodOptional<z.ZodObject<{
|
|
@@ -4350,11 +4350,11 @@ declare const CheckReportJsonSchema: z.ZodObject<{
|
|
|
4350
4350
|
"category-default": "category-default";
|
|
4351
4351
|
}>;
|
|
4352
4352
|
category: z.ZodNullable<z.ZodEnum<{
|
|
4353
|
+
secret: "secret";
|
|
4353
4354
|
runtime: "runtime";
|
|
4354
4355
|
history: "history";
|
|
4355
4356
|
knowledge: "knowledge";
|
|
4356
4357
|
settings: "settings";
|
|
4357
|
-
secret: "secret";
|
|
4358
4358
|
}>>;
|
|
4359
4359
|
rule: z.ZodOptional<z.ZodObject<{
|
|
4360
4360
|
key: z.ZodString;
|
|
@@ -5478,6 +5478,10 @@ declare const UsageSnapshotSchema: z.ZodObject<{
|
|
|
5478
5478
|
observedAt: z.ZodISODateTime;
|
|
5479
5479
|
source: z.ZodString;
|
|
5480
5480
|
level: z.ZodOptional<z.ZodString>;
|
|
5481
|
+
account: z.ZodOptional<z.ZodObject<{
|
|
5482
|
+
email: z.ZodOptional<z.ZodString>;
|
|
5483
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
5484
|
+
}, z.core.$strict>>;
|
|
5481
5485
|
windows: z.ZodArray<z.ZodObject<{
|
|
5482
5486
|
measures: z.ZodString;
|
|
5483
5487
|
periodMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -7071,9 +7075,9 @@ declare function createLifecycleApiRouter(deps: LifecycleApiDeps): {
|
|
|
7071
7075
|
current: zod.ZodString;
|
|
7072
7076
|
latest: zod.ZodString;
|
|
7073
7077
|
action: zod.ZodEnum<{
|
|
7074
|
-
updated: "updated";
|
|
7075
7078
|
current: "current";
|
|
7076
7079
|
available: "available";
|
|
7080
|
+
updated: "updated";
|
|
7077
7081
|
}>;
|
|
7078
7082
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
7079
7083
|
};
|
|
@@ -7320,12 +7324,12 @@ declare function createLaunchApiRouter(deps: LaunchApiDeps): {
|
|
|
7320
7324
|
decision: zod.ZodObject<{
|
|
7321
7325
|
identity: zod.ZodOptional<zod.ZodString>;
|
|
7322
7326
|
identitySource: zod.ZodEnum<{
|
|
7323
|
-
env: "env";
|
|
7324
|
-
none: "none";
|
|
7325
7327
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
7326
7328
|
argv: "argv";
|
|
7329
|
+
env: "env";
|
|
7327
7330
|
"directory-pin": "directory-pin";
|
|
7328
7331
|
"active-identity-file": "active-identity-file";
|
|
7332
|
+
none: "none";
|
|
7329
7333
|
}>;
|
|
7330
7334
|
pool: zod.ZodOptional<zod.ZodObject<{
|
|
7331
7335
|
name: zod.ZodString;
|
|
@@ -7772,6 +7776,10 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
7772
7776
|
observedAt: zod.ZodISODateTime;
|
|
7773
7777
|
source: zod.ZodString;
|
|
7774
7778
|
level: zod.ZodOptional<zod.ZodString>;
|
|
7779
|
+
account: zod.ZodOptional<zod.ZodObject<{
|
|
7780
|
+
email: zod.ZodOptional<zod.ZodString>;
|
|
7781
|
+
accountId: zod.ZodOptional<zod.ZodString>;
|
|
7782
|
+
}, zod_v4_core.$strict>>;
|
|
7775
7783
|
windows: zod.ZodArray<zod.ZodObject<{
|
|
7776
7784
|
measures: zod.ZodString;
|
|
7777
7785
|
periodMs: zod.ZodOptional<zod.ZodNumber>;
|
|
@@ -7920,12 +7928,12 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
7920
7928
|
identity: zod.ZodObject<{
|
|
7921
7929
|
name: zod.ZodNullable<zod.ZodString>;
|
|
7922
7930
|
source: zod.ZodEnum<{
|
|
7923
|
-
env: "env";
|
|
7924
|
-
none: "none";
|
|
7925
7931
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
7926
7932
|
argv: "argv";
|
|
7933
|
+
env: "env";
|
|
7927
7934
|
"directory-pin": "directory-pin";
|
|
7928
7935
|
"active-identity-file": "active-identity-file";
|
|
7936
|
+
none: "none";
|
|
7929
7937
|
}>;
|
|
7930
7938
|
}, zod_v4_core.$strict>;
|
|
7931
7939
|
pool: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -8003,11 +8011,11 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
8003
8011
|
"category-default": "category-default";
|
|
8004
8012
|
}>;
|
|
8005
8013
|
category: zod.ZodNullable<zod.ZodEnum<{
|
|
8014
|
+
secret: "secret";
|
|
8006
8015
|
runtime: "runtime";
|
|
8007
8016
|
history: "history";
|
|
8008
8017
|
knowledge: "knowledge";
|
|
8009
8018
|
settings: "settings";
|
|
8010
|
-
secret: "secret";
|
|
8011
8019
|
}>>;
|
|
8012
8020
|
rule: zod.ZodOptional<zod.ZodObject<{
|
|
8013
8021
|
key: zod.ZodString;
|
|
@@ -8226,11 +8234,10 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
8226
8234
|
"global-config": "global-config";
|
|
8227
8235
|
"config-profile": "config-profile";
|
|
8228
8236
|
identity: "identity";
|
|
8229
|
-
keychain: "keychain";
|
|
8230
8237
|
provider: "provider";
|
|
8231
|
-
headroom: "headroom";
|
|
8232
8238
|
frontdoor: "frontdoor";
|
|
8233
8239
|
pool: "pool";
|
|
8240
|
+
keychain: "keychain";
|
|
8234
8241
|
"ambient-credential": "ambient-credential";
|
|
8235
8242
|
"binary-discovery": "binary-discovery";
|
|
8236
8243
|
"claude-shim": "claude-shim";
|
|
@@ -8240,6 +8247,7 @@ declare function createControlApiRouter(deps: ControlApiDeps): {
|
|
|
8240
8247
|
"directory-rules": "directory-rules";
|
|
8241
8248
|
"categories-local": "categories-local";
|
|
8242
8249
|
"active-identity": "active-identity";
|
|
8250
|
+
headroom: "headroom";
|
|
8243
8251
|
}>;
|
|
8244
8252
|
subject: zod.ZodOptional<zod.ZodString>;
|
|
8245
8253
|
severity: zod.ZodEnum<{
|
|
@@ -8432,12 +8440,12 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
8432
8440
|
decision: zod.ZodObject<{
|
|
8433
8441
|
identity: zod.ZodOptional<zod.ZodString>;
|
|
8434
8442
|
identitySource: zod.ZodEnum<{
|
|
8435
|
-
env: "env";
|
|
8436
|
-
none: "none";
|
|
8437
8443
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
8438
8444
|
argv: "argv";
|
|
8445
|
+
env: "env";
|
|
8439
8446
|
"directory-pin": "directory-pin";
|
|
8440
8447
|
"active-identity-file": "active-identity-file";
|
|
8448
|
+
none: "none";
|
|
8441
8449
|
}>;
|
|
8442
8450
|
pool: zod.ZodOptional<zod.ZodObject<{
|
|
8443
8451
|
name: zod.ZodString;
|
|
@@ -9816,9 +9824,9 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9816
9824
|
current: zod.ZodString;
|
|
9817
9825
|
latest: zod.ZodString;
|
|
9818
9826
|
action: zod.ZodEnum<{
|
|
9819
|
-
updated: "updated";
|
|
9820
9827
|
current: "current";
|
|
9821
9828
|
available: "available";
|
|
9829
|
+
updated: "updated";
|
|
9822
9830
|
}>;
|
|
9823
9831
|
}, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
|
|
9824
9832
|
};
|
|
@@ -9904,6 +9912,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
9904
9912
|
observedAt: zod.ZodISODateTime;
|
|
9905
9913
|
source: zod.ZodString;
|
|
9906
9914
|
level: zod.ZodOptional<zod.ZodString>;
|
|
9915
|
+
account: zod.ZodOptional<zod.ZodObject<{
|
|
9916
|
+
email: zod.ZodOptional<zod.ZodString>;
|
|
9917
|
+
accountId: zod.ZodOptional<zod.ZodString>;
|
|
9918
|
+
}, zod_v4_core.$strict>>;
|
|
9907
9919
|
windows: zod.ZodArray<zod.ZodObject<{
|
|
9908
9920
|
measures: zod.ZodString;
|
|
9909
9921
|
periodMs: zod.ZodOptional<zod.ZodNumber>;
|
|
@@ -10017,12 +10029,12 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
10017
10029
|
identity: zod.ZodObject<{
|
|
10018
10030
|
name: zod.ZodNullable<zod.ZodString>;
|
|
10019
10031
|
source: zod.ZodEnum<{
|
|
10020
|
-
env: "env";
|
|
10021
|
-
none: "none";
|
|
10022
10032
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
10023
10033
|
argv: "argv";
|
|
10034
|
+
env: "env";
|
|
10024
10035
|
"directory-pin": "directory-pin";
|
|
10025
10036
|
"active-identity-file": "active-identity-file";
|
|
10037
|
+
none: "none";
|
|
10026
10038
|
}>;
|
|
10027
10039
|
}, zod_v4_core.$strict>;
|
|
10028
10040
|
pool: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -10100,11 +10112,11 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
10100
10112
|
"category-default": "category-default";
|
|
10101
10113
|
}>;
|
|
10102
10114
|
category: zod.ZodNullable<zod.ZodEnum<{
|
|
10115
|
+
secret: "secret";
|
|
10103
10116
|
runtime: "runtime";
|
|
10104
10117
|
history: "history";
|
|
10105
10118
|
knowledge: "knowledge";
|
|
10106
10119
|
settings: "settings";
|
|
10107
|
-
secret: "secret";
|
|
10108
10120
|
}>>;
|
|
10109
10121
|
rule: zod.ZodOptional<zod.ZodObject<{
|
|
10110
10122
|
key: zod.ZodString;
|
|
@@ -10323,11 +10335,10 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
10323
10335
|
"global-config": "global-config";
|
|
10324
10336
|
"config-profile": "config-profile";
|
|
10325
10337
|
identity: "identity";
|
|
10326
|
-
keychain: "keychain";
|
|
10327
10338
|
provider: "provider";
|
|
10328
|
-
headroom: "headroom";
|
|
10329
10339
|
frontdoor: "frontdoor";
|
|
10330
10340
|
pool: "pool";
|
|
10341
|
+
keychain: "keychain";
|
|
10331
10342
|
"ambient-credential": "ambient-credential";
|
|
10332
10343
|
"binary-discovery": "binary-discovery";
|
|
10333
10344
|
"claude-shim": "claude-shim";
|
|
@@ -10337,6 +10348,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
10337
10348
|
"directory-rules": "directory-rules";
|
|
10338
10349
|
"categories-local": "categories-local";
|
|
10339
10350
|
"active-identity": "active-identity";
|
|
10351
|
+
headroom: "headroom";
|
|
10340
10352
|
}>;
|
|
10341
10353
|
subject: zod.ZodOptional<zod.ZodString>;
|
|
10342
10354
|
severity: zod.ZodEnum<{
|
|
@@ -12013,6 +12025,10 @@ declare const UsageListOutputSchema: z.ZodObject<{
|
|
|
12013
12025
|
observedAt: z.ZodISODateTime;
|
|
12014
12026
|
source: z.ZodString;
|
|
12015
12027
|
level: z.ZodOptional<z.ZodString>;
|
|
12028
|
+
account: z.ZodOptional<z.ZodObject<{
|
|
12029
|
+
email: z.ZodOptional<z.ZodString>;
|
|
12030
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
12031
|
+
}, z.core.$strict>>;
|
|
12016
12032
|
windows: z.ZodArray<z.ZodObject<{
|
|
12017
12033
|
measures: z.ZodString;
|
|
12018
12034
|
periodMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -12172,11 +12188,10 @@ declare const DoctorFindingSchema: z.ZodObject<{
|
|
|
12172
12188
|
"global-config": "global-config";
|
|
12173
12189
|
"config-profile": "config-profile";
|
|
12174
12190
|
identity: "identity";
|
|
12175
|
-
keychain: "keychain";
|
|
12176
12191
|
provider: "provider";
|
|
12177
|
-
headroom: "headroom";
|
|
12178
12192
|
frontdoor: "frontdoor";
|
|
12179
12193
|
pool: "pool";
|
|
12194
|
+
keychain: "keychain";
|
|
12180
12195
|
"ambient-credential": "ambient-credential";
|
|
12181
12196
|
"binary-discovery": "binary-discovery";
|
|
12182
12197
|
"claude-shim": "claude-shim";
|
|
@@ -12186,6 +12201,7 @@ declare const DoctorFindingSchema: z.ZodObject<{
|
|
|
12186
12201
|
"directory-rules": "directory-rules";
|
|
12187
12202
|
"categories-local": "categories-local";
|
|
12188
12203
|
"active-identity": "active-identity";
|
|
12204
|
+
headroom: "headroom";
|
|
12189
12205
|
}>;
|
|
12190
12206
|
subject: z.ZodOptional<z.ZodString>;
|
|
12191
12207
|
severity: z.ZodEnum<{
|
|
@@ -12203,11 +12219,10 @@ declare const DoctorRunOutputSchema: z.ZodObject<{
|
|
|
12203
12219
|
"global-config": "global-config";
|
|
12204
12220
|
"config-profile": "config-profile";
|
|
12205
12221
|
identity: "identity";
|
|
12206
|
-
keychain: "keychain";
|
|
12207
12222
|
provider: "provider";
|
|
12208
|
-
headroom: "headroom";
|
|
12209
12223
|
frontdoor: "frontdoor";
|
|
12210
12224
|
pool: "pool";
|
|
12225
|
+
keychain: "keychain";
|
|
12211
12226
|
"ambient-credential": "ambient-credential";
|
|
12212
12227
|
"binary-discovery": "binary-discovery";
|
|
12213
12228
|
"claude-shim": "claude-shim";
|
|
@@ -12217,6 +12232,7 @@ declare const DoctorRunOutputSchema: z.ZodObject<{
|
|
|
12217
12232
|
"directory-rules": "directory-rules";
|
|
12218
12233
|
"categories-local": "categories-local";
|
|
12219
12234
|
"active-identity": "active-identity";
|
|
12235
|
+
headroom: "headroom";
|
|
12220
12236
|
}>;
|
|
12221
12237
|
subject: z.ZodOptional<z.ZodString>;
|
|
12222
12238
|
severity: z.ZodEnum<{
|
|
@@ -12237,9 +12253,9 @@ declare const UpdateCheckOutputSchema: z.ZodObject<{
|
|
|
12237
12253
|
current: z.ZodString;
|
|
12238
12254
|
latest: z.ZodString;
|
|
12239
12255
|
action: z.ZodEnum<{
|
|
12240
|
-
updated: "updated";
|
|
12241
12256
|
current: "current";
|
|
12242
12257
|
available: "available";
|
|
12258
|
+
updated: "updated";
|
|
12243
12259
|
}>;
|
|
12244
12260
|
}, z.core.$strict>;
|
|
12245
12261
|
/** The Sign in with ChatGPT login's state as `codex status` reports it: no sign-in yet, signed in (with who, whether the plan scope was granted, and when the access token lapses), or a file that cannot be read. */
|
|
@@ -12289,12 +12305,12 @@ declare const LaunchResolveOutputSchema: z.ZodObject<{
|
|
|
12289
12305
|
decision: z.ZodObject<{
|
|
12290
12306
|
identity: z.ZodOptional<z.ZodString>;
|
|
12291
12307
|
identitySource: z.ZodEnum<{
|
|
12292
|
-
env: "env";
|
|
12293
|
-
none: "none";
|
|
12294
12308
|
"config-dir-escape-hatch": "config-dir-escape-hatch";
|
|
12295
12309
|
argv: "argv";
|
|
12310
|
+
env: "env";
|
|
12296
12311
|
"directory-pin": "directory-pin";
|
|
12297
12312
|
"active-identity-file": "active-identity-file";
|
|
12313
|
+
none: "none";
|
|
12298
12314
|
}>;
|
|
12299
12315
|
pool: z.ZodOptional<z.ZodObject<{
|
|
12300
12316
|
name: z.ZodString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-shim",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.11.0",
|
|
4
4
|
"description": "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Joseph Mearman <joseph@mearman.co.uk>",
|