claude-use 11.46.0 → 11.47.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.
@@ -2219,6 +2219,8 @@ interface LayoutPaths {
2219
2219
  readonly configProfilesDir: string;
2220
2220
  /** Directory holding one `<name>.json` provider definition per API provider. */
2221
2221
  readonly providersDir: string;
2222
+ /** Path to the file recording the former names of renamed providers, so a session launched under an old name keeps being served until it ends. Absent until a provider is first renamed. */
2223
+ readonly providerAliasesFile: string;
2222
2224
  /** Path to the directory-rules.json file describing directory-scoped identity/profile pins. */
2223
2225
  readonly directoryRulesFile: string;
2224
2226
  /** Path to the persisted active-identity file (the identity `agent-shim identity use` selected). */
@@ -3670,7 +3672,6 @@ interface SessionIdentity {
3670
3672
  readonly provider: string | undefined;
3671
3673
  /** Whether this launch resolved headroom on, so its requests must pass through the headroom hop before their route. */
3672
3674
  readonly headroom: boolean;
3673
- /** Whether this launch routes provider-qualified model names through the models block, whatever provider it selected. */
3674
3675
  /** The project identity headroom scopes memory to, re-set on the headroom hop and sent nowhere else. */
3675
3676
  readonly projectId: string | undefined;
3676
3677
  }
@@ -5687,6 +5688,14 @@ type FrontDoorSupervisorListing = {
5687
5688
  readonly message: string;
5688
5689
  };
5689
5690
 
5691
+ /**
5692
+ * The former names of renamed providers, by the old name: `{ "z": "zai" }` means a request or a launch that names `z` is served by the provider now called `zai`.
5693
+ *
5694
+ * A running session has its provider's name fixed at launch, and the front door resolves that name against the providers directory on every request, so renaming a provider file alone strands every session launched before the rename. An alias is what keeps those sessions served until they end. Targets are always current provider names: renaming a provider repoints every alias that targeted it, so a lookup is one step and never a chain.
5695
+ */
5696
+ declare const ProviderAliasesSchema: z.ZodRecord<z.ZodString, z.ZodString>;
5697
+ type ProviderAliases = z.infer<typeof ProviderAliasesSchema>;
5698
+
5690
5699
  /** The result of a successful discovery. */
5691
5700
  interface DiscoveredClaudeBinary {
5692
5701
  /** Full path to the discovered `claude` executable. */
@@ -5779,6 +5788,8 @@ interface RunDoctorParams {
5779
5788
  readonly identities: readonly DoctorIdentityInput[];
5780
5789
  readonly configProfiles: readonly DoctorConfigProfileInput[];
5781
5790
  readonly providers: readonly DoctorProviderInput[];
5791
+ /** The recorded former names of renamed providers. Omit to leave them out of the findings. */
5792
+ readonly providerAliases?: ProviderAliases;
5782
5793
  readonly directoryRules: DoctorFileInput;
5783
5794
  readonly globalConfig: DoctorFileInput;
5784
5795
  /** The parsed `models` block of the global config, when one is defined. Omit to skip the models checks. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-use",
3
- "version": "11.46.0",
3
+ "version": "11.47.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>",