@caveman-ai/cli 1.3.1 → 1.3.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.
@@ -17,6 +17,7 @@ import { request as httpRequest } from "node:http";
17
17
  import { request as httpsRequest } from "node:https";
18
18
  import { Readable } from "node:stream";
19
19
  import { connect as tlsConnect } from "node:tls";
20
+ import { isIP } from "node:net";
20
21
  /** Redirect hops to follow before giving up, matching the fetch spec's limit. */
21
22
  const MAX_REDIRECTS = 20;
22
23
  const DEFAULT_PORTS = { "http:": "80", "https:": "443" };
@@ -215,7 +216,8 @@ function sendThroughProxy(request, proxy) {
215
216
  method,
216
217
  path: `${url.pathname}${url.search}`,
217
218
  headers: { ...headers, host: url.host },
218
- createConnection: () => tlsConnect({ socket, servername: url.hostname }),
219
+ // Node 26 rejects an IP literal as SNI servername; omit it for IP targets.
220
+ createConnection: () => tlsConnect({ socket, host: url.hostname, servername: isIP(url.hostname) ? undefined : url.hostname }),
219
221
  }, httpsRequest);
220
222
  })
221
223
  .catch(reject);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caveman-ai/cli",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "Caveman CLI — wrap coding agents with recoverable local context compression and truthful metering (`caveman claude`), then drive Caveman Cloud from terminal. Compression and metering run in companion Go binaries: run `caveman setup` to see install state. Local savings stay inferred until verified.",
5
5
  "license": "MIT",
6
6
  "type": "module",