claude-use 14.0.1 → 14.0.3
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 +14511 -14029
- package/dist/index.cjs +358 -187
- package/dist/index.mjs +350 -179
- package/dist/types/index.d.ts +30 -4
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as zod from 'zod';
|
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { IncomingHttpHeaders, IncomingMessage, ServerResponse } from 'node:http';
|
|
6
6
|
import * as net from 'node:net';
|
|
7
|
-
import net__default from 'node:net';
|
|
7
|
+
import net__default, { LookupFunction } from 'node:net';
|
|
8
8
|
import { Duplex, Readable } from 'node:stream';
|
|
9
9
|
import * as _orpc_client from '@orpc/client';
|
|
10
10
|
import * as zod_v4_core from 'zod/v4/core';
|
|
@@ -6504,7 +6504,7 @@ interface ConnectTarget {
|
|
|
6504
6504
|
readonly host: string;
|
|
6505
6505
|
readonly port: number;
|
|
6506
6506
|
}
|
|
6507
|
-
/** Parses a CONNECT authority (`host:port`, or a bare
|
|
6507
|
+
/** Parses a CONNECT authority (`host`, `host:port`, `[v6]` or `[v6]:port`; a bare host means 443) through the rule every dial target takes (`parseDialAuthority`), or undefined when it cannot be dialled. The refusal's reason is `parseDialAuthority(authority, HTTPS_PORT)`'s own result. */
|
|
6508
6508
|
declare function parseConnectTarget(authority: string): ConnectTarget | undefined;
|
|
6509
6509
|
/** Whether a CONNECT target's host (port already stripped) is one whose TLS this proxy terminates. */
|
|
6510
6510
|
declare function isInterceptedHost(host: string, interceptHosts: readonly string[]): boolean;
|
|
@@ -7859,6 +7859,27 @@ interface RcStreamHub {
|
|
|
7859
7859
|
/** Creates the attachment hub. One per door process; everything it holds dies with it. */
|
|
7860
7860
|
declare function createRcStreamHub(deps: RcStreamHubDeps): RcStreamHub;
|
|
7861
7861
|
|
|
7862
|
+
/** What a dialled socket must offer the dial: its lifecycle events, and closing it. */
|
|
7863
|
+
interface DialSocket {
|
|
7864
|
+
readonly once: ((event: "connect", listener: () => void) => unknown) & ((event: "error", listener: (error: NodeJS.ErrnoException) => void) => unknown);
|
|
7865
|
+
readonly destroy: () => unknown;
|
|
7866
|
+
}
|
|
7867
|
+
/** What the dial needs: a connect, the door's lookup, and how to tell an address literal from a name. */
|
|
7868
|
+
interface DoorDialIo<S extends DialSocket> {
|
|
7869
|
+
readonly connect: (options: {
|
|
7870
|
+
readonly host: string;
|
|
7871
|
+
readonly port: number;
|
|
7872
|
+
readonly localPort?: number;
|
|
7873
|
+
readonly lookup?: LookupFunction;
|
|
7874
|
+
}) => S;
|
|
7875
|
+
readonly lookup: LookupFunction;
|
|
7876
|
+
readonly isIP: (host: string) => number;
|
|
7877
|
+
/** Why a failed dial from a reserved source port failed because of that port, so the next port of the rotation is tried, or undefined when it failed for any other reason: see `sourcePortClassifier`. Injected so the dial reads no platform of its own. */
|
|
7878
|
+
readonly sourcePortFailure: (error: NodeJS.ErrnoException) => SourcePortFailure | undefined;
|
|
7879
|
+
}
|
|
7880
|
+
/** Why a source port could not be used: another socket holds it (`held`, which passes as that socket closes), or the operating system refuses to bind it at all (`excluded`, which holds until the system's configuration changes). */
|
|
7881
|
+
type SourcePortFailure = "held" | "excluded";
|
|
7882
|
+
|
|
7862
7883
|
/** The real `ConnectEffects` over node's own net, tls, and http. `connectTcp` opens real connections to the CONNECTed host, so tests that want a blind tunnel redirect it. */
|
|
7863
7884
|
/**
|
|
7864
7885
|
* A range of local source ports the door's own upstream sockets bind, handed out in rotation because node binds one port per socket with no range option. The width is also the dial's retry bound: one attempt per port, so a fully-held range surfaces its last bind error instead of spinning. Injectable so the exhaustion tests hold a private range instead of racing every other worker for the door's real one.
|
|
@@ -7868,10 +7889,15 @@ declare class SourcePortRange {
|
|
|
7868
7889
|
readonly end: number;
|
|
7869
7890
|
readonly count: number;
|
|
7870
7891
|
private next;
|
|
7892
|
+
private readonly excluded;
|
|
7871
7893
|
/** `first` is the port the rotation hands out first, `start` unless a caller gives its own: several rotations that serve one purpose at once (the probes of a batch) start apart, so they do not all bind the first port of the range and walk up it together. */
|
|
7872
7894
|
constructor(start: number, end: number, first?: number);
|
|
7873
|
-
/**
|
|
7895
|
+
/**
|
|
7896
|
+
* The next port in rotation, wrapping from the end back to the start, skipping every port the system has refused to bind (`exclude`) so a dial does not walk a refused block again. A cycle that finds nothing else forgets the refusals and starts over: the exclusions of a host can change while the door runs, and a range refused throughout is then tried again, one pass, not skipped for ever. The memory is a set of ports of the range, so it holds at most `count` entries.
|
|
7897
|
+
*/
|
|
7874
7898
|
take(): number;
|
|
7899
|
+
/** Remembers that the system refuses to bind `port`, so `take` skips it. Only an exclusion belongs here: a port a sibling holds is free again when the sibling closes. */
|
|
7900
|
+
exclude(port: number): void;
|
|
7875
7901
|
}
|
|
7876
7902
|
/** Where the Remote Control inject path dials: the API host's own address by default, over TLS with the door's interception-proof agent (real-name DNS resolution and the pf-exempt source-port range), so an injected event cannot be looped back into the door's own transparent surface. A test redirects the dial at a local stand-in presenting the host's name, exactly as the forwarding targets are redirected. */
|
|
7877
7903
|
interface RcDialTarget {
|
|
@@ -7898,7 +7924,7 @@ declare function lateRcEventDial(resolve: () => RcDialTarget | undefined): RcEve
|
|
|
7898
7924
|
declare function lateRcStreamDial(resolve: () => RcDialTarget | undefined): RcStreamDial;
|
|
7899
7925
|
declare function realRcStreamDial(target?: RcDialTarget): RcStreamDial;
|
|
7900
7926
|
/** The real effects, dialling upstream from `ports` (the door's own range unless a test injects a private one). */
|
|
7901
|
-
declare function realConnectEffects(ports?: SourcePortRange): ConnectEffects;
|
|
7927
|
+
declare function realConnectEffects(ports?: SourcePortRange, io?: DoorDialIo<net.Socket>): ConnectEffects;
|
|
7902
7928
|
|
|
7903
7929
|
/**
|
|
7904
7930
|
* The agent tree reader: pure over an injected filesystem, so the CLI, the library surface and tests read the same way, and nothing here writes. The layout it reads is documented in `docs/agent-transcripts.md`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-use",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.3",
|
|
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>",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"schema": "node scripts/gen-schema.mts"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
52
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.316",
|
|
53
53
|
"@clack/prompts": "^1.8.0",
|
|
54
54
|
"@modelcontextprotocol/sdk": "1.32.0",
|
|
55
55
|
"@orpc/client": "2.0.0-beta.46",
|