agent-shim 11.86.4 → 11.87.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/README.md +12 -0
- package/dist/cli.cjs +1687 -1433
- package/dist/index.cjs +390 -341
- package/dist/index.mjs +368 -319
- package/dist/types/index.d.ts +25 -10
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -5417,6 +5417,10 @@ type GlobalConfig = z.infer<typeof GlobalConfigSchema>;
|
|
|
5417
5417
|
* An identity's own `identity.json`. `credential`, when present, authenticates the identity from a token instead of (or ahead of) its stored login: the launcher resolves it and exports it as its target (typically `oauthToken`, a `claude setup-token` token) in the child's environment only. Without it the identity uses the login stored in its own directory.
|
|
5418
5418
|
*/
|
|
5419
5419
|
declare const IdentitySchema: z.ZodObject<{
|
|
5420
|
+
agent: z.ZodOptional<z.ZodEnum<{
|
|
5421
|
+
claude: "claude";
|
|
5422
|
+
codex: "codex";
|
|
5423
|
+
}>>;
|
|
5420
5424
|
$schema: z.ZodOptional<z.ZodString>;
|
|
5421
5425
|
name: z.ZodString;
|
|
5422
5426
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -8171,6 +8175,14 @@ declare function readCodexRateLimits(port: CodexAppServerPort, options: Readonly
|
|
|
8171
8175
|
/** The real app-server port: `codex app-server` as a child process speaking one JSON message per line on standard input and output, with `CODEX_HOME` set for it alone. */
|
|
8172
8176
|
declare const realCodexAppServerPort: CodexAppServerPort;
|
|
8173
8177
|
|
|
8178
|
+
type CodexCredentialGuardResult = {
|
|
8179
|
+
readonly ok: true;
|
|
8180
|
+
} | {
|
|
8181
|
+
readonly ok: false;
|
|
8182
|
+
readonly variable: string;
|
|
8183
|
+
readonly message: string;
|
|
8184
|
+
};
|
|
8185
|
+
|
|
8174
8186
|
/**
|
|
8175
8187
|
* The Zod schema of `agent-shim check --json`'s output: one definition of the report's wire shape, so the JSON conversion (`checkReportToJson`, whose return type is this schema's inferred type, which makes the compiler prove the two agree) and every programmatic consumer of the report (the front door's `check.run` procedure above all) validate through the same source. A plain Zod leaf mirroring the shapes the report's own modules define; the vocabularies it switches on (layer kinds, decision routes, diagnostic codes and severities, decision sources) are imported as const arrays from those modules rather than restated here, so a vocabulary added there is a compile error here until this schema names it.
|
|
8176
8188
|
*/
|
|
@@ -8799,6 +8811,7 @@ interface CredentialReport {
|
|
|
8799
8811
|
}
|
|
8800
8812
|
/** Inputs to `runCheck` — everything already loaded/injected, exactly like the resolver core and the launcher: nothing in this function touches a real filesystem, git repository, clock, or environment itself. */
|
|
8801
8813
|
interface RunCheckParams {
|
|
8814
|
+
readonly agent?: "claude" | "codex";
|
|
8802
8815
|
readonly cwd: string;
|
|
8803
8816
|
readonly home: string;
|
|
8804
8817
|
readonly claudeHome: string;
|
|
@@ -8848,7 +8861,7 @@ interface CheckReport {
|
|
|
8848
8861
|
readonly resolved: ResolvedState;
|
|
8849
8862
|
readonly decisionLines: readonly string[];
|
|
8850
8863
|
readonly projectEncodingAmbiguities: readonly EncodingAmbiguity[];
|
|
8851
|
-
readonly ambientCredential: AmbientCredentialGuardResult;
|
|
8864
|
+
readonly ambientCredential: AmbientCredentialGuardResult | CodexCredentialGuardResult;
|
|
8852
8865
|
readonly keychain?: KeychainLookupResult;
|
|
8853
8866
|
readonly settingsExposure: readonly SettingsExposureReport[];
|
|
8854
8867
|
readonly credential: CredentialReport;
|
|
@@ -8881,6 +8894,7 @@ declare function checkReportToJson(report: CheckReport): CheckReportJson;
|
|
|
8881
8894
|
declare function checkReportHasWarnings(report: CheckReport): boolean;
|
|
8882
8895
|
/** What `collectCheckReport` needs from its caller. */
|
|
8883
8896
|
interface CollectCheckReportParams {
|
|
8897
|
+
readonly agent?: "claude" | "codex";
|
|
8884
8898
|
readonly paths: LayoutPaths;
|
|
8885
8899
|
/** The directory a launch would run in; resolved against the working directory by the caller. */
|
|
8886
8900
|
readonly cwd: string;
|
|
@@ -9187,6 +9201,7 @@ declare function readIdentity(paths: LayoutPaths, name: string): Identity | unde
|
|
|
9187
9201
|
declare function readIdentityById(paths: LayoutPaths, id: string): Identity | undefined;
|
|
9188
9202
|
/** How `addIdentity` reaches what it needs beyond the files: the identity names lock, and, for an add whose id was checked before the lock was taken (`requireIdentityAddable`), that id. */
|
|
9189
9203
|
interface AddIdentityOptions {
|
|
9204
|
+
readonly agent?: "claude" | "codex";
|
|
9190
9205
|
readonly namesLock?: IdentityNamesLockPorts;
|
|
9191
9206
|
readonly checkedId?: string;
|
|
9192
9207
|
}
|
|
@@ -11611,8 +11626,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
11611
11626
|
add: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, zod.ZodObject<{
|
|
11612
11627
|
name: zod.ZodString;
|
|
11613
11628
|
kind: zod.ZodOptional<zod.ZodEnum<{
|
|
11614
|
-
http: "http";
|
|
11615
11629
|
codex: "codex";
|
|
11630
|
+
http: "http";
|
|
11616
11631
|
antigravity: "antigravity";
|
|
11617
11632
|
router: "router";
|
|
11618
11633
|
}>>;
|
|
@@ -11675,8 +11690,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
11675
11690
|
value: zod.ZodObject<{
|
|
11676
11691
|
name: zod.ZodString;
|
|
11677
11692
|
kind: zod.ZodEnum<{
|
|
11678
|
-
http: "http";
|
|
11679
11693
|
codex: "codex";
|
|
11694
|
+
http: "http";
|
|
11680
11695
|
antigravity: "antigravity";
|
|
11681
11696
|
router: "router";
|
|
11682
11697
|
}>;
|
|
@@ -11798,8 +11813,8 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
|
|
|
11798
11813
|
value: zod.ZodObject<{
|
|
11799
11814
|
name: zod.ZodString;
|
|
11800
11815
|
kind: zod.ZodEnum<{
|
|
11801
|
-
http: "http";
|
|
11802
11816
|
codex: "codex";
|
|
11817
|
+
http: "http";
|
|
11803
11818
|
antigravity: "antigravity";
|
|
11804
11819
|
router: "router";
|
|
11805
11820
|
}>;
|
|
@@ -18799,8 +18814,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
18799
18814
|
add: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, zod.ZodObject<{
|
|
18800
18815
|
name: zod.ZodString;
|
|
18801
18816
|
kind: zod.ZodOptional<zod.ZodEnum<{
|
|
18802
|
-
http: "http";
|
|
18803
18817
|
codex: "codex";
|
|
18818
|
+
http: "http";
|
|
18804
18819
|
antigravity: "antigravity";
|
|
18805
18820
|
router: "router";
|
|
18806
18821
|
}>>;
|
|
@@ -18863,8 +18878,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
18863
18878
|
value: zod.ZodObject<{
|
|
18864
18879
|
name: zod.ZodString;
|
|
18865
18880
|
kind: zod.ZodEnum<{
|
|
18866
|
-
http: "http";
|
|
18867
18881
|
codex: "codex";
|
|
18882
|
+
http: "http";
|
|
18868
18883
|
antigravity: "antigravity";
|
|
18869
18884
|
router: "router";
|
|
18870
18885
|
}>;
|
|
@@ -18986,8 +19001,8 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
|
|
|
18986
19001
|
value: zod.ZodObject<{
|
|
18987
19002
|
name: zod.ZodString;
|
|
18988
19003
|
kind: zod.ZodEnum<{
|
|
18989
|
-
http: "http";
|
|
18990
19004
|
codex: "codex";
|
|
19005
|
+
http: "http";
|
|
18991
19006
|
antigravity: "antigravity";
|
|
18992
19007
|
router: "router";
|
|
18993
19008
|
}>;
|
|
@@ -23337,8 +23352,8 @@ declare const ConfigPoolUseOutputSchema: z.ZodObject<{
|
|
|
23337
23352
|
declare const ConfigProviderAddInputSchema: z.ZodObject<{
|
|
23338
23353
|
name: z.ZodString;
|
|
23339
23354
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
23340
|
-
http: "http";
|
|
23341
23355
|
codex: "codex";
|
|
23356
|
+
http: "http";
|
|
23342
23357
|
antigravity: "antigravity";
|
|
23343
23358
|
router: "router";
|
|
23344
23359
|
}>>;
|
|
@@ -23402,8 +23417,8 @@ declare const ConfigProviderAddOutputSchema: z.ZodObject<{
|
|
|
23402
23417
|
value: z.ZodObject<{
|
|
23403
23418
|
name: z.ZodString;
|
|
23404
23419
|
kind: z.ZodEnum<{
|
|
23405
|
-
http: "http";
|
|
23406
23420
|
codex: "codex";
|
|
23421
|
+
http: "http";
|
|
23407
23422
|
antigravity: "antigravity";
|
|
23408
23423
|
router: "router";
|
|
23409
23424
|
}>;
|
|
@@ -23527,8 +23542,8 @@ declare const ConfigProviderSetOutputSchema: z.ZodObject<{
|
|
|
23527
23542
|
value: z.ZodObject<{
|
|
23528
23543
|
name: z.ZodString;
|
|
23529
23544
|
kind: z.ZodEnum<{
|
|
23530
|
-
http: "http";
|
|
23531
23545
|
codex: "codex";
|
|
23546
|
+
http: "http";
|
|
23532
23547
|
antigravity: "antigravity";
|
|
23533
23548
|
router: "router";
|
|
23534
23549
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-shim",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.87.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>",
|