skalpel 2.0.18 → 2.0.19

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/index.js CHANGED
@@ -133,11 +133,19 @@ var init_streaming = __esm({
133
133
 
134
134
  // src/proxy/ws-client.ts
135
135
  import { EventEmitter } from "events";
136
+ import https from "https";
137
+ import http from "http";
136
138
  import WebSocket2 from "ws";
139
+ var H1_HTTPS_AGENT, H1_HTTP_AGENT;
137
140
  var init_ws_client = __esm({
138
141
  "src/proxy/ws-client.ts"() {
139
142
  "use strict";
140
143
  init_codex_oauth();
144
+ H1_HTTPS_AGENT = new https.Agent({
145
+ ALPNProtocols: ["http/1.1"],
146
+ keepAlive: true
147
+ });
148
+ H1_HTTP_AGENT = new http.Agent({ keepAlive: true });
141
149
  }
142
150
  });
143
151
 
@@ -1893,7 +1901,7 @@ import { execSync as execSync5 } from "child_process";
1893
1901
 
1894
1902
  // src/proxy/server.ts
1895
1903
  init_handler();
1896
- import http from "http";
1904
+ import http2 from "http";
1897
1905
 
1898
1906
  // src/proxy/logger.ts
1899
1907
  import fs11 from "fs";
@@ -2542,7 +2550,7 @@ function clearNpxCache() {
2542
2550
  }
2543
2551
 
2544
2552
  // src/cli/auth/callback-server.ts
2545
- import * as http2 from "http";
2553
+ import * as http3 from "http";
2546
2554
  import * as net2 from "net";
2547
2555
 
2548
2556
  // src/cli/auth/session-storage.ts
@@ -2671,7 +2679,7 @@ async function startCallbackServer(port, timeoutMsOrOptions = DEFAULT_TIMEOUT_MS
2671
2679
  return new Promise((resolve2, reject) => {
2672
2680
  let settled = false;
2673
2681
  let timer;
2674
- const server = http2.createServer((req, res) => {
2682
+ const server = http3.createServer((req, res) => {
2675
2683
  const origin = req.headers.origin;
2676
2684
  const corsHeaders = buildCorsHeaders(origin);
2677
2685
  if (req.method === "OPTIONS") {