claude-use 14.2.4 → 14.3.1

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.
@@ -1015,6 +1015,9 @@ declare const ProviderCatalogueSchema: z.ZodObject<{
1015
1015
  url: z.ZodOptional<z.ZodURL>;
1016
1016
  }, z.core.$strict>;
1017
1017
  type ProviderCatalogue = z.infer<typeof ProviderCatalogueSchema>;
1018
+ /** What the door does with tools that carry a `type` and no `input_schema` (such as web search, which Anthropic runs for a native session) when it forwards a request to an `http` provider: `forward` sends them as they are, `drop` removes them. */
1019
+ declare const SERVER_TOOLS_MODES: readonly ["forward", "drop"];
1020
+ type ServerToolsMode = (typeof SERVER_TOOLS_MODES)[number];
1018
1021
  /** All kinds of provider; see `HttpProviderSchema` for the shared fields. */
1019
1022
  declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1020
1023
  $schema: z.ZodOptional<z.ZodString>;
@@ -1156,6 +1159,10 @@ declare const ProviderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1156
1159
  provider: z.ZodString;
1157
1160
  model: z.ZodOptional<z.ZodString>;
1158
1161
  }, z.core.$strict>>>;
1162
+ serverTools: z.ZodOptional<z.ZodEnum<{
1163
+ forward: "forward";
1164
+ drop: "drop";
1165
+ }>>;
1159
1166
  }, z.core.$strict>, z.ZodObject<{
1160
1167
  $schema: z.ZodOptional<z.ZodString>;
1161
1168
  kind: z.ZodLiteral<"codex">;
@@ -7519,16 +7526,7 @@ declare function observingRoutedRoute(route: FrontDoorRoute, tracker: RcSessionT
7519
7526
  declare function rcObserverAsPassthrough(observer: RcExchangeObserver): PassthroughObserver;
7520
7527
 
7521
7528
  /**
7522
- * The Remote Control client-half writes: the payload builders, the write engine and one typed operation per control verb the door can send into an observed session, every one an event write to `/v1/code/sessions/{id}/events` over the door's interception-proof dials, authenticated by the observed bearer and protocol headers the tracker (`rcSessions.ts`) holds.
7523
- *
7524
- * Every request-shaped write goes through one envelope builder (`buildRcControlRequestPayload`) so the family cannot drift apart in shape, and one delivery engine (`deliverRcClientPayload`, module-local) so the two credential guards, the dial and the sequence-cursor advance exist exactly once. The fields each subtype carries are the SDK's own (`@anthropic-ai/claude-agent-sdk` `sdk.d.ts`) where it declares the subtype, and the CLI bundle's own request builders where it does not (`mcp_authenticate`, `mcp_oauth_callback_url`), each named in its builder's doc comment.
7525
- *
7526
- * A write that carried a `control_request` returns the request id it minted, because the worker's `control_response` echoes exactly that id on the stream the door already fans out: a consumer that wants the answer matches it there, and the id is surfaced by the result since only the door ever knew it.
7527
- *
7528
- * Two writes stand outside the events path: the teleport marker, whose channel is the session's teleport-events path (the one write the family addresses elsewhere, and the one the CLI only ever reads), and the read receipt, which is not a payload write at all but the mark_read endpoint's own small body, built here so every surface the door serves it from posts the same shape.
7529
- */
7530
- /**
7531
- * Builds the user-message payload event for one injected prompt: the Agent SDK stream-json `user` message shape (`type`, `uuid`, `session_id`, `parent_tool_use_id`, `message` with a `user` role), the same envelope a claude.ai client sends as a turn. The content is the plain string form, which is the shape validated end to end against the real API by the third-party client survey that settled this protocol.
7529
+ * Builds the user-message payload event for one injected prompt: the Agent SDK stream-json `user` message shape (`type`, `uuid`, `session_id`, `parent_tool_use_id`, `message` with a `user` role), the envelope a claude.ai client sends as a turn. The envelope alone does not decide how the worker reads it: the service adds the writer's `client_platform`, and that is what makes a client's turn a person's and the door's a peer's (`RC_SEND_DELIVERY_NOTE`). The content is the plain string form, which is the shape validated end to end against the real API by the third-party client survey that settled this protocol.
7532
7530
  */
7533
7531
  declare function buildRcUserMessagePayload(uuid: string, sessionId: string, text: string): Record<string, unknown>;
7534
7532
  /** Wraps payload event(s) in the write body the endpoint takes: `{"events": [{"payload": {...}}]}`. */
@@ -7579,7 +7577,7 @@ interface RcInjectDeps {
7579
7577
  readonly newUuid: () => string;
7580
7578
  }
7581
7579
  /**
7582
- * Injects one user-message prompt into an observed session: the documented client-half write, `POST /v1/code/sessions/{id}/events`, authenticated by the observed bearer and carrying the observed protocol headers, the observed `anthropic-client-platform` included, so the door never names an app it is not. The result is the sequence numbers the real service assigned, or a verbose failure. A dial that cannot reach the API host is reported rather than thrown, so a caller with no exception handling still shows the user exactly what failed.
7580
+ * Injects one user-message prompt into an observed session: the documented client-half write, `POST /v1/code/sessions/{id}/events`, authenticated by the observed bearer and carrying the observed protocol headers, the observed `anthropic-client-platform` included, so the door never names an app it is not. The result is the sequence numbers the real service assigned, or a verbose failure: an assigned number confirms the service filed the event, not that the session's model received it, since the worker reads it as a peer message and its own inbound setting decides whether to deliver, hold or drop it (`RC_SEND_DELIVERY_NOTE`). A dial that cannot reach the API host is reported rather than thrown, so a caller with no exception handling still shows the user exactly what failed.
7583
7581
  */
7584
7582
  declare function injectRcUserMessage(deps: RcInjectDeps, sessionId: string, text: string): Promise<RcEventWriteResult>;
7585
7583
  /** The decision an answer carries: approve or deny, with the message a denial shows the worker (the protocol's allow result has no text field, so an approval carries none), and for a question the options chosen. */
@@ -27328,7 +27326,7 @@ interface ConditionContext {
27328
27326
  readonly lastPickHoursAgo?: number;
27329
27327
  };
27330
27328
  /**
27331
- * The request facts a provider's route condition reads, present only when the condition routes a request the door is resolving: `request.model` (the Messages body's own model field) and `request.hasImage` (an image block anywhere in the scanned head of the body). A request the door could not read that far carries neither, so a condition naming them is indeterminate and the routing falls through, never to a cheaper provider by accident.
27329
+ * The request facts a provider's route condition reads, present only when the condition routes a request the door is resolving: `request.model` (the Messages body's own model field) and `request.hasImage`, `request.toolsPresent`, `request.thinking` and `request.maxTokens` (textual matches anywhere in the text the door read: the whole body for a Messages request whose routes name one of them, else the head, where an absence is no answer). A fact the door could not decide is carried by none, so a condition naming it is indeterminate and the routing falls through, never to a cheaper provider by accident.
27332
27330
  */
27333
27331
  readonly request?: {
27334
27332
  readonly model?: string;
@@ -27827,6 +27825,8 @@ interface AddProviderInput {
27827
27825
  readonly catalogue?: ProviderCatalogue;
27828
27826
  /** An http provider's bound on opening a connection to its base URL, in milliseconds; absent keeps the derived default. */
27829
27827
  readonly connectTimeoutMs?: number;
27828
+ /** What an http provider's route does with tools that have no `input_schema` in a request; see `HttpProvider.serverTools`. */
27829
+ readonly serverTools?: ServerToolsMode;
27830
27830
  readonly codex?: CodexProviderConfig;
27831
27831
  readonly antigravity?: AntigravityProviderConfig;
27832
27832
  }
@@ -27858,6 +27858,8 @@ interface UpdateProviderInput {
27858
27858
  readonly catalogue?: ProviderCatalogue | false;
27859
27859
  /** A new connect timeout in milliseconds, or false to go back to the derived default; undefined leaves the existing one. Applies only to an http provider. */
27860
27860
  readonly connectTimeoutMs?: number | false;
27861
+ /** The http provider's new server-tools setting; undefined leaves the existing one. */
27862
+ readonly serverTools?: ServerToolsMode;
27861
27863
  /** Merged over a codex provider's existing settings: a field given here replaces that field, and `models` entries merge per tier. */
27862
27864
  readonly codex?: CodexProviderConfig;
27863
27865
  /** Merged over an antigravity provider's existing settings: a field given here replaces that field, and `models` entries merge per tier. */
@@ -28356,6 +28358,8 @@ interface RunDoctorParams {
28356
28358
  readonly providerAliases?: ProviderAliases;
28357
28359
  /** Probes the base URLs of every valid http provider, up to `MAX_CONCURRENT_PROBES` distinct targets together and any more in rounds of that many, one connection each, each bounded by its provider's connect timeout. Omit to leave reachability out of the findings; with it, a valid http provider whose base URL accepts no connection fails, naming the URL. */
28358
28360
  readonly probeBaseUrls?: BaseUrlBatchProbe;
28361
+ /** The providers whose last catalogue refresh, as the serving front door recorded it, failed on a redirect it does not follow, each with the reason it recorded. Omit to leave the finding out. */
28362
+ readonly catalogueRedirects?: ReadonlyMap<string, string>;
28359
28363
  /** The journals of identity renames that were left unfinished, and the files in their directory that are not journals. Omit to leave renames out of the findings. */
28360
28364
  readonly renameJournals?: RenameJournalListing;
28361
28365
  /** The entries of the identities directory that cannot be reached (a symlink the filesystem would not follow, or a directory nobody can enter), which are not counted as identities. Omit to leave them out of the findings. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-use",
3
- "version": "14.2.4",
3
+ "version": "14.3.1",
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>",