@mmmbuto/gemini-cli-termux 0.42.0-termux → 0.46.0-termux
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/README.md +22 -2
- package/bundle/builtin/antigravity-support/SKILL.md +58 -0
- package/bundle/{chunk-BF6DCDLJ.js → chunk-4TSWR3AN.js} +145 -55
- package/bundle/{chunk-PL5MCDGY.js → chunk-6HI7VNOG.js} +55 -70
- package/bundle/{chunk-6PXDEURC.js → chunk-7QZTHDKK.js} +2 -4
- package/bundle/{chunk-ORXUJRZC.js → chunk-B7I47N5E.js} +3 -3
- package/bundle/{chunk-EHTAR2YP.js → chunk-G2G6HEZZ.js} +1 -1
- package/bundle/{chunk-LX6GOGBA.js → chunk-IB4Q6NBY.js} +123186 -73766
- package/bundle/{chunk-MP2YMAMR.js → chunk-IT3YFQ3I.js} +1 -1
- package/bundle/{chunk-RJTRUG2J.js → chunk-TUDYL3X4.js} +29 -5
- package/bundle/{chunk-A6KCGXPK.js → chunk-WUVOS6TV.js} +13 -6
- package/bundle/{chunk-SLMD2AMF.js → chunk-YGU42N5I.js} +847 -655
- package/bundle/{cleanup-RTDYF5DD.js → cleanup-GEP2OOHM.js} +4 -5
- package/bundle/{devtools-ZLHMA45S.js → devtools-V7NE4CQA.js} +1 -1
- package/bundle/{devtoolsService-SKRXJOXW.js → devtoolsService-EVM2JJLB.js} +5 -6
- package/bundle/{dist-B3HBIK36.js → dist-R3LOFA4X.js} +331 -285
- package/bundle/docs/changelogs/index.md +59 -0
- package/bundle/docs/changelogs/latest.md +201 -167
- package/bundle/docs/changelogs/preview.md +45 -102
- package/bundle/docs/cli/auto-memory.md +61 -40
- package/bundle/docs/cli/gemini-md.md +0 -2
- package/bundle/docs/cli/plan-mode.md +0 -1
- package/bundle/docs/cli/settings.md +19 -19
- package/bundle/docs/cli/tutorials/memory-management.md +3 -3
- package/bundle/docs/extensions/reference.md +16 -0
- package/bundle/docs/extensions/releasing.md +58 -24
- package/bundle/docs/extensions/writing-extensions.md +7 -0
- package/bundle/docs/get-started/installation.mdx +2 -2
- package/bundle/docs/issue-and-pr-automation.md +29 -1
- package/bundle/docs/reference/commands.md +0 -3
- package/bundle/docs/reference/configuration.md +173 -78
- package/bundle/docs/reference/keyboard-shortcuts.md +23 -0
- package/bundle/docs/reference/tools.md +0 -2
- package/bundle/docs/tools/mcp-server.md +24 -3
- package/bundle/docs/tools/memory.md +10 -13
- package/bundle/examples/custom-commands/commands/fs/grep-code.toml +6 -0
- package/bundle/examples/custom-commands/gemini-extension.json +4 -0
- package/bundle/examples/exclude-tools/gemini-extension.json +5 -0
- package/bundle/examples/hooks/gemini-extension.json +4 -0
- package/bundle/examples/hooks/hooks/hooks.json +14 -0
- package/bundle/examples/hooks/scripts/on-start.js +8 -0
- package/bundle/examples/mcp-server/README.md +35 -0
- package/bundle/examples/mcp-server/example.js +60 -0
- package/bundle/examples/mcp-server/gemini-extension.json +11 -0
- package/bundle/examples/mcp-server/package.json +11 -0
- package/bundle/examples/policies/README.md +41 -0
- package/bundle/examples/policies/gemini-extension.json +5 -0
- package/bundle/examples/policies/policies/policies.toml +28 -0
- package/bundle/examples/skills/gemini-extension.json +4 -0
- package/bundle/examples/skills/skills/greeter/SKILL.md +7 -0
- package/bundle/examples/themes-example/README.md +31 -0
- package/bundle/examples/themes-example/gemini-extension.json +29 -0
- package/bundle/{gemini-NJWIVDFH.js → gemini-SGAFQX2R.js} +450 -297
- package/bundle/gemini.js +18 -13
- package/bundle/{dist-T73EYRDX.js → https-proxy-agent-AVGR4LHR.js} +8 -3
- package/bundle/{interactiveCli-QHKQZZJU.js → interactiveCli-MEEXSI2X.js} +1922 -1675
- package/bundle/{liteRtServerManager-USDJEPCM.js → liteRtServerManager-3EZO3JZ5.js} +6 -7
- package/bundle/{oauth2-provider-ARATJNEE.js → oauth2-provider-AJMTKEL6.js} +8 -10
- package/bundle/package.json +1 -1
- package/bundle/policies/plan.toml +1 -1
- package/bundle/policies/write.toml +0 -7
- package/bundle/src-LG4OHBW7.js +343 -0
- package/bundle/{start-IWR7MCIR.js → start-YW7YIVR7.js} +8 -9
- package/bundle/worker/worker-entry.js +7863 -0
- package/package.json +3 -3
- package/bundle/chunk-2X6HJV2G.js +0 -52710
- package/bundle/memoryDiscovery-EEGUKQ5C.js +0 -29
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/client/main.js +0 -96
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.d.ts +0 -7
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.js +0 -9
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.js.map +0 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/index.d.ts +0 -48
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/index.js +0 -333
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/index.js.map +0 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/types.d.ts +0 -36
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/types.js +0 -7
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/types.js.map +0 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +0 -33
- package/bundle/policies/memory-manager.toml +0 -20
|
@@ -14,7 +14,6 @@ var require_constants = __commonJS({
|
|
|
14
14
|
if (hasBlob) BINARY_TYPES.push("blob");
|
|
15
15
|
module.exports = {
|
|
16
16
|
BINARY_TYPES,
|
|
17
|
-
CLOSE_TIMEOUT: 3e4,
|
|
18
17
|
EMPTY_BUFFER: Buffer.alloc(0),
|
|
19
18
|
GUID: "258EAFA5-E914-47DA-95CA-C5AB0DC85B11",
|
|
20
19
|
hasBlob,
|
|
@@ -169,7 +168,7 @@ var require_permessage_deflate = __commonJS({
|
|
|
169
168
|
var kBuffers = Symbol("buffers");
|
|
170
169
|
var kError = Symbol("error");
|
|
171
170
|
var zlibLimiter;
|
|
172
|
-
var
|
|
171
|
+
var PerMessageDeflate = class {
|
|
173
172
|
/**
|
|
174
173
|
* Creates a PerMessageDeflate instance.
|
|
175
174
|
*
|
|
@@ -180,9 +179,6 @@ var require_permessage_deflate = __commonJS({
|
|
|
180
179
|
* acknowledge disabling of client context takeover
|
|
181
180
|
* @param {Number} [options.concurrencyLimit=10] The number of concurrent
|
|
182
181
|
* calls to zlib
|
|
183
|
-
* @param {Boolean} [options.isServer=false] Create the instance in either
|
|
184
|
-
* server or client mode
|
|
185
|
-
* @param {Number} [options.maxPayload=0] The maximum allowed message length
|
|
186
182
|
* @param {(Boolean|Number)} [options.serverMaxWindowBits] Request/confirm the
|
|
187
183
|
* use of a custom server window size
|
|
188
184
|
* @param {Boolean} [options.serverNoContextTakeover=false] Request/accept
|
|
@@ -193,12 +189,15 @@ var require_permessage_deflate = __commonJS({
|
|
|
193
189
|
* deflate
|
|
194
190
|
* @param {Object} [options.zlibInflateOptions] Options to pass to zlib on
|
|
195
191
|
* inflate
|
|
192
|
+
* @param {Boolean} [isServer=false] Create the instance in either server or
|
|
193
|
+
* client mode
|
|
194
|
+
* @param {Number} [maxPayload=0] The maximum allowed message length
|
|
196
195
|
*/
|
|
197
|
-
constructor(options) {
|
|
196
|
+
constructor(options, isServer, maxPayload) {
|
|
197
|
+
this._maxPayload = maxPayload | 0;
|
|
198
198
|
this._options = options || {};
|
|
199
199
|
this._threshold = this._options.threshold !== void 0 ? this._options.threshold : 1024;
|
|
200
|
-
this.
|
|
201
|
-
this._isServer = !!this._options.isServer;
|
|
200
|
+
this._isServer = !!isServer;
|
|
202
201
|
this._deflate = null;
|
|
203
202
|
this._inflate = null;
|
|
204
203
|
this.params = null;
|
|
@@ -507,7 +506,7 @@ var require_permessage_deflate = __commonJS({
|
|
|
507
506
|
});
|
|
508
507
|
}
|
|
509
508
|
};
|
|
510
|
-
module.exports =
|
|
509
|
+
module.exports = PerMessageDeflate;
|
|
511
510
|
function deflateOnData(chunk) {
|
|
512
511
|
this[kBuffers].push(chunk);
|
|
513
512
|
this[kTotalLength] += chunk.length;
|
|
@@ -742,7 +741,7 @@ var require_receiver = __commonJS({
|
|
|
742
741
|
"node_modules/ws/lib/receiver.js"(exports, module) {
|
|
743
742
|
"use strict";
|
|
744
743
|
var { Writable } = __require("stream");
|
|
745
|
-
var
|
|
744
|
+
var PerMessageDeflate = require_permessage_deflate();
|
|
746
745
|
var {
|
|
747
746
|
BINARY_TYPES,
|
|
748
747
|
EMPTY_BUFFER,
|
|
@@ -909,7 +908,7 @@ var require_receiver = __commonJS({
|
|
|
909
908
|
return;
|
|
910
909
|
}
|
|
911
910
|
const compressed = (buf[0] & 64) === 64;
|
|
912
|
-
if (compressed && !this._extensions[
|
|
911
|
+
if (compressed && !this._extensions[PerMessageDeflate.extensionName]) {
|
|
913
912
|
const error = this.createError(
|
|
914
913
|
RangeError,
|
|
915
914
|
"RSV1 must be clear",
|
|
@@ -1153,7 +1152,7 @@ var require_receiver = __commonJS({
|
|
|
1153
1152
|
* @private
|
|
1154
1153
|
*/
|
|
1155
1154
|
decompress(data, cb) {
|
|
1156
|
-
const perMessageDeflate = this._extensions[
|
|
1155
|
+
const perMessageDeflate = this._extensions[PerMessageDeflate.extensionName];
|
|
1157
1156
|
perMessageDeflate.decompress(data, this._fin, (err, buf) => {
|
|
1158
1157
|
if (err) return cb(err);
|
|
1159
1158
|
if (buf.length) {
|
|
@@ -1335,10 +1334,7 @@ var require_sender = __commonJS({
|
|
|
1335
1334
|
"use strict";
|
|
1336
1335
|
var { Duplex } = __require("stream");
|
|
1337
1336
|
var { randomFillSync } = __require("crypto");
|
|
1338
|
-
var
|
|
1339
|
-
types: { isUint8Array }
|
|
1340
|
-
} = __require("util");
|
|
1341
|
-
var PerMessageDeflate2 = require_permessage_deflate();
|
|
1337
|
+
var PerMessageDeflate = require_permessage_deflate();
|
|
1342
1338
|
var { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants();
|
|
1343
1339
|
var { isBlob, isValidStatusCode } = require_validation();
|
|
1344
1340
|
var { mask: applyMask, toBuffer } = require_buffer_util();
|
|
@@ -1491,10 +1487,8 @@ var require_sender = __commonJS({
|
|
|
1491
1487
|
buf.writeUInt16BE(code, 0);
|
|
1492
1488
|
if (typeof data === "string") {
|
|
1493
1489
|
buf.write(data, 2);
|
|
1494
|
-
} else if (isUint8Array(data)) {
|
|
1495
|
-
buf.set(data, 2);
|
|
1496
1490
|
} else {
|
|
1497
|
-
|
|
1491
|
+
buf.set(data, 2);
|
|
1498
1492
|
}
|
|
1499
1493
|
}
|
|
1500
1494
|
const options = {
|
|
@@ -1624,7 +1618,7 @@ var require_sender = __commonJS({
|
|
|
1624
1618
|
* @public
|
|
1625
1619
|
*/
|
|
1626
1620
|
send(data, options, cb) {
|
|
1627
|
-
const perMessageDeflate = this._extensions[
|
|
1621
|
+
const perMessageDeflate = this._extensions[PerMessageDeflate.extensionName];
|
|
1628
1622
|
let opcode = options.binary ? 2 : 1;
|
|
1629
1623
|
let rsv1 = options.compress;
|
|
1630
1624
|
let byteLength;
|
|
@@ -1748,7 +1742,7 @@ var require_sender = __commonJS({
|
|
|
1748
1742
|
this.sendFrame(_Sender.frame(data, options), cb);
|
|
1749
1743
|
return;
|
|
1750
1744
|
}
|
|
1751
|
-
const perMessageDeflate = this._extensions[
|
|
1745
|
+
const perMessageDeflate = this._extensions[PerMessageDeflate.extensionName];
|
|
1752
1746
|
this._bufferedBytes += options[kByteLength];
|
|
1753
1747
|
this._state = DEFLATING;
|
|
1754
1748
|
perMessageDeflate.compress(data, options.fin, (_, buf) => {
|
|
@@ -2186,11 +2180,11 @@ var require_extension = __commonJS({
|
|
|
2186
2180
|
return offers;
|
|
2187
2181
|
}
|
|
2188
2182
|
function format(extensions) {
|
|
2189
|
-
return Object.keys(extensions).map((
|
|
2190
|
-
let configurations = extensions[
|
|
2183
|
+
return Object.keys(extensions).map((extension) => {
|
|
2184
|
+
let configurations = extensions[extension];
|
|
2191
2185
|
if (!Array.isArray(configurations)) configurations = [configurations];
|
|
2192
2186
|
return configurations.map((params) => {
|
|
2193
|
-
return [
|
|
2187
|
+
return [extension].concat(
|
|
2194
2188
|
Object.keys(params).map((k) => {
|
|
2195
2189
|
let values = params[k];
|
|
2196
2190
|
if (!Array.isArray(values)) values = [values];
|
|
@@ -2216,13 +2210,12 @@ var require_websocket = __commonJS({
|
|
|
2216
2210
|
var { randomBytes, createHash } = __require("crypto");
|
|
2217
2211
|
var { Duplex, Readable } = __require("stream");
|
|
2218
2212
|
var { URL } = __require("url");
|
|
2219
|
-
var
|
|
2213
|
+
var PerMessageDeflate = require_permessage_deflate();
|
|
2220
2214
|
var Receiver2 = require_receiver();
|
|
2221
2215
|
var Sender2 = require_sender();
|
|
2222
2216
|
var { isBlob } = require_validation();
|
|
2223
2217
|
var {
|
|
2224
2218
|
BINARY_TYPES,
|
|
2225
|
-
CLOSE_TIMEOUT,
|
|
2226
2219
|
EMPTY_BUFFER,
|
|
2227
2220
|
GUID,
|
|
2228
2221
|
kForOnEventAttribute,
|
|
@@ -2236,6 +2229,7 @@ var require_websocket = __commonJS({
|
|
|
2236
2229
|
} = require_event_target();
|
|
2237
2230
|
var { format, parse } = require_extension();
|
|
2238
2231
|
var { toBuffer } = require_buffer_util();
|
|
2232
|
+
var closeTimeout = 30 * 1e3;
|
|
2239
2233
|
var kAborted = Symbol("kAborted");
|
|
2240
2234
|
var protocolVersions = [8, 13];
|
|
2241
2235
|
var readyStates = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"];
|
|
@@ -2281,7 +2275,6 @@ var require_websocket = __commonJS({
|
|
|
2281
2275
|
initAsClient(this, address, protocols, options);
|
|
2282
2276
|
} else {
|
|
2283
2277
|
this._autoPong = options.autoPong;
|
|
2284
|
-
this._closeTimeout = options.closeTimeout;
|
|
2285
2278
|
this._isServer = true;
|
|
2286
2279
|
}
|
|
2287
2280
|
}
|
|
@@ -2424,8 +2417,8 @@ var require_websocket = __commonJS({
|
|
|
2424
2417
|
this.emit("close", this._closeCode, this._closeMessage);
|
|
2425
2418
|
return;
|
|
2426
2419
|
}
|
|
2427
|
-
if (this._extensions[
|
|
2428
|
-
this._extensions[
|
|
2420
|
+
if (this._extensions[PerMessageDeflate.extensionName]) {
|
|
2421
|
+
this._extensions[PerMessageDeflate.extensionName].cleanup();
|
|
2429
2422
|
}
|
|
2430
2423
|
this._receiver.removeAllListeners();
|
|
2431
2424
|
this._readyState = _WebSocket.CLOSED;
|
|
@@ -2587,7 +2580,7 @@ var require_websocket = __commonJS({
|
|
|
2587
2580
|
fin: true,
|
|
2588
2581
|
...options
|
|
2589
2582
|
};
|
|
2590
|
-
if (!this._extensions[
|
|
2583
|
+
if (!this._extensions[PerMessageDeflate.extensionName]) {
|
|
2591
2584
|
opts.compress = false;
|
|
2592
2585
|
}
|
|
2593
2586
|
this._sender.send(data || EMPTY_BUFFER, opts, cb);
|
|
@@ -2683,7 +2676,6 @@ var require_websocket = __commonJS({
|
|
|
2683
2676
|
const opts = {
|
|
2684
2677
|
allowSynchronousEvents: true,
|
|
2685
2678
|
autoPong: true,
|
|
2686
|
-
closeTimeout: CLOSE_TIMEOUT,
|
|
2687
2679
|
protocolVersion: protocolVersions[1],
|
|
2688
2680
|
maxPayload: 100 * 1024 * 1024,
|
|
2689
2681
|
skipUTF8Validation: false,
|
|
@@ -2701,7 +2693,6 @@ var require_websocket = __commonJS({
|
|
|
2701
2693
|
port: void 0
|
|
2702
2694
|
};
|
|
2703
2695
|
websocket._autoPong = opts.autoPong;
|
|
2704
|
-
websocket._closeTimeout = opts.closeTimeout;
|
|
2705
2696
|
if (!protocolVersions.includes(opts.protocolVersion)) {
|
|
2706
2697
|
throw new RangeError(
|
|
2707
2698
|
`Unsupported protocol version: ${opts.protocolVersion} (supported versions: ${protocolVersions.join(", ")})`
|
|
@@ -2713,7 +2704,7 @@ var require_websocket = __commonJS({
|
|
|
2713
2704
|
} else {
|
|
2714
2705
|
try {
|
|
2715
2706
|
parsedUrl = new URL(address);
|
|
2716
|
-
} catch {
|
|
2707
|
+
} catch (e) {
|
|
2717
2708
|
throw new SyntaxError(`Invalid URL: ${address}`);
|
|
2718
2709
|
}
|
|
2719
2710
|
}
|
|
@@ -2761,13 +2752,13 @@ var require_websocket = __commonJS({
|
|
|
2761
2752
|
opts.path = parsedUrl.pathname + parsedUrl.search;
|
|
2762
2753
|
opts.timeout = opts.handshakeTimeout;
|
|
2763
2754
|
if (opts.perMessageDeflate) {
|
|
2764
|
-
perMessageDeflate = new
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2755
|
+
perMessageDeflate = new PerMessageDeflate(
|
|
2756
|
+
opts.perMessageDeflate !== true ? opts.perMessageDeflate : {},
|
|
2757
|
+
false,
|
|
2758
|
+
opts.maxPayload
|
|
2759
|
+
);
|
|
2769
2760
|
opts.headers["Sec-WebSocket-Extensions"] = format({
|
|
2770
|
-
[
|
|
2761
|
+
[PerMessageDeflate.extensionName]: perMessageDeflate.offer()
|
|
2771
2762
|
});
|
|
2772
2763
|
}
|
|
2773
2764
|
if (protocols.length) {
|
|
@@ -2910,19 +2901,19 @@ var require_websocket = __commonJS({
|
|
|
2910
2901
|
return;
|
|
2911
2902
|
}
|
|
2912
2903
|
const extensionNames = Object.keys(extensions);
|
|
2913
|
-
if (extensionNames.length !== 1 || extensionNames[0] !==
|
|
2904
|
+
if (extensionNames.length !== 1 || extensionNames[0] !== PerMessageDeflate.extensionName) {
|
|
2914
2905
|
const message = "Server indicated an extension that was not requested";
|
|
2915
2906
|
abortHandshake(websocket, socket, message);
|
|
2916
2907
|
return;
|
|
2917
2908
|
}
|
|
2918
2909
|
try {
|
|
2919
|
-
perMessageDeflate.accept(extensions[
|
|
2910
|
+
perMessageDeflate.accept(extensions[PerMessageDeflate.extensionName]);
|
|
2920
2911
|
} catch (err) {
|
|
2921
2912
|
const message = "Invalid Sec-WebSocket-Extensions header";
|
|
2922
2913
|
abortHandshake(websocket, socket, message);
|
|
2923
2914
|
return;
|
|
2924
2915
|
}
|
|
2925
|
-
websocket._extensions[
|
|
2916
|
+
websocket._extensions[PerMessageDeflate.extensionName] = perMessageDeflate;
|
|
2926
2917
|
}
|
|
2927
2918
|
websocket.setSocket(socket, head, {
|
|
2928
2919
|
allowSynchronousEvents: opts.allowSynchronousEvents,
|
|
@@ -3044,7 +3035,7 @@ var require_websocket = __commonJS({
|
|
|
3044
3035
|
function setCloseTimer(websocket) {
|
|
3045
3036
|
websocket._closeTimer = setTimeout(
|
|
3046
3037
|
websocket._socket.destroy.bind(websocket._socket),
|
|
3047
|
-
|
|
3038
|
+
closeTimeout
|
|
3048
3039
|
);
|
|
3049
3040
|
}
|
|
3050
3041
|
function socketOnClose() {
|
|
@@ -3053,8 +3044,8 @@ var require_websocket = __commonJS({
|
|
|
3053
3044
|
this.removeListener("data", socketOnData);
|
|
3054
3045
|
this.removeListener("end", socketOnEnd);
|
|
3055
3046
|
websocket._readyState = WebSocket2.CLOSING;
|
|
3056
|
-
|
|
3057
|
-
|
|
3047
|
+
let chunk;
|
|
3048
|
+
if (!this._readableState.endEmitted && !websocket._closeFrameReceived && !websocket._receiver._writableState.errorEmitted && (chunk = websocket._socket.read()) !== null) {
|
|
3058
3049
|
websocket._receiver.write(chunk);
|
|
3059
3050
|
}
|
|
3060
3051
|
websocket._receiver.end();
|
|
@@ -3241,11 +3232,11 @@ var require_websocket_server = __commonJS({
|
|
|
3241
3232
|
var http = __require("http");
|
|
3242
3233
|
var { Duplex } = __require("stream");
|
|
3243
3234
|
var { createHash } = __require("crypto");
|
|
3244
|
-
var
|
|
3245
|
-
var
|
|
3246
|
-
var
|
|
3235
|
+
var extension = require_extension();
|
|
3236
|
+
var PerMessageDeflate = require_permessage_deflate();
|
|
3237
|
+
var subprotocol = require_subprotocol();
|
|
3247
3238
|
var WebSocket2 = require_websocket();
|
|
3248
|
-
var {
|
|
3239
|
+
var { GUID, kWebSocket } = require_constants();
|
|
3249
3240
|
var keyRegex = /^[+/0-9A-Za-z]{22}==$/;
|
|
3250
3241
|
var RUNNING = 0;
|
|
3251
3242
|
var CLOSING = 1;
|
|
@@ -3264,9 +3255,6 @@ var require_websocket_server = __commonJS({
|
|
|
3264
3255
|
* pending connections
|
|
3265
3256
|
* @param {Boolean} [options.clientTracking=true] Specifies whether or not to
|
|
3266
3257
|
* track clients
|
|
3267
|
-
* @param {Number} [options.closeTimeout=30000] Duration in milliseconds to
|
|
3268
|
-
* wait for the closing handshake to finish after `websocket.close()` is
|
|
3269
|
-
* called
|
|
3270
3258
|
* @param {Function} [options.handleProtocols] A hook to handle protocols
|
|
3271
3259
|
* @param {String} [options.host] The hostname where to bind the server
|
|
3272
3260
|
* @param {Number} [options.maxPayload=104857600] The maximum allowed message
|
|
@@ -3295,7 +3283,6 @@ var require_websocket_server = __commonJS({
|
|
|
3295
3283
|
perMessageDeflate: false,
|
|
3296
3284
|
handleProtocols: null,
|
|
3297
3285
|
clientTracking: true,
|
|
3298
|
-
closeTimeout: CLOSE_TIMEOUT,
|
|
3299
3286
|
verifyClient: null,
|
|
3300
3287
|
noServer: false,
|
|
3301
3288
|
backlog: null,
|
|
@@ -3466,7 +3453,7 @@ var require_websocket_server = __commonJS({
|
|
|
3466
3453
|
let protocols = /* @__PURE__ */ new Set();
|
|
3467
3454
|
if (secWebSocketProtocol !== void 0) {
|
|
3468
3455
|
try {
|
|
3469
|
-
protocols =
|
|
3456
|
+
protocols = subprotocol.parse(secWebSocketProtocol);
|
|
3470
3457
|
} catch (err) {
|
|
3471
3458
|
const message = "Invalid Sec-WebSocket-Protocol header";
|
|
3472
3459
|
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message);
|
|
@@ -3476,16 +3463,16 @@ var require_websocket_server = __commonJS({
|
|
|
3476
3463
|
const secWebSocketExtensions = req.headers["sec-websocket-extensions"];
|
|
3477
3464
|
const extensions = {};
|
|
3478
3465
|
if (this.options.perMessageDeflate && secWebSocketExtensions !== void 0) {
|
|
3479
|
-
const perMessageDeflate = new
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3466
|
+
const perMessageDeflate = new PerMessageDeflate(
|
|
3467
|
+
this.options.perMessageDeflate,
|
|
3468
|
+
true,
|
|
3469
|
+
this.options.maxPayload
|
|
3470
|
+
);
|
|
3484
3471
|
try {
|
|
3485
|
-
const offers =
|
|
3486
|
-
if (offers[
|
|
3487
|
-
perMessageDeflate.accept(offers[
|
|
3488
|
-
extensions[
|
|
3472
|
+
const offers = extension.parse(secWebSocketExtensions);
|
|
3473
|
+
if (offers[PerMessageDeflate.extensionName]) {
|
|
3474
|
+
perMessageDeflate.accept(offers[PerMessageDeflate.extensionName]);
|
|
3475
|
+
extensions[PerMessageDeflate.extensionName] = perMessageDeflate;
|
|
3489
3476
|
}
|
|
3490
3477
|
} catch (err) {
|
|
3491
3478
|
const message = "Invalid or unacceptable Sec-WebSocket-Extensions header";
|
|
@@ -3556,10 +3543,10 @@ var require_websocket_server = __commonJS({
|
|
|
3556
3543
|
ws._protocol = protocol;
|
|
3557
3544
|
}
|
|
3558
3545
|
}
|
|
3559
|
-
if (extensions[
|
|
3560
|
-
const params = extensions[
|
|
3561
|
-
const value =
|
|
3562
|
-
[
|
|
3546
|
+
if (extensions[PerMessageDeflate.extensionName]) {
|
|
3547
|
+
const params = extensions[PerMessageDeflate.extensionName].params;
|
|
3548
|
+
const value = extension.format({
|
|
3549
|
+
[PerMessageDeflate.extensionName]: [params]
|
|
3563
3550
|
});
|
|
3564
3551
|
headers.push(`Sec-WebSocket-Extensions: ${value}`);
|
|
3565
3552
|
ws._extensions = extensions;
|
|
@@ -3628,16 +3615,14 @@ var require_websocket_server = __commonJS({
|
|
|
3628
3615
|
|
|
3629
3616
|
// node_modules/ws/wrapper.mjs
|
|
3630
3617
|
var import_stream = __toESM(require_stream(), 1);
|
|
3631
|
-
var import_extension = __toESM(require_extension(), 1);
|
|
3632
|
-
var import_permessage_deflate = __toESM(require_permessage_deflate(), 1);
|
|
3633
3618
|
var import_receiver = __toESM(require_receiver(), 1);
|
|
3634
3619
|
var import_sender = __toESM(require_sender(), 1);
|
|
3635
|
-
var import_subprotocol = __toESM(require_subprotocol(), 1);
|
|
3636
3620
|
var import_websocket = __toESM(require_websocket(), 1);
|
|
3637
3621
|
var import_websocket_server = __toESM(require_websocket_server(), 1);
|
|
3638
3622
|
var wrapper_default = import_websocket.default;
|
|
3639
3623
|
|
|
3640
3624
|
export {
|
|
3641
3625
|
import_websocket,
|
|
3626
|
+
import_websocket_server,
|
|
3642
3627
|
wrapper_default
|
|
3643
3628
|
};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
2
|
import {
|
|
3
3
|
ExitCodes,
|
|
4
|
+
Storage,
|
|
4
5
|
isTelemetrySdkInitialized,
|
|
5
6
|
resetBrowserSession,
|
|
6
7
|
shutdownTelemetry
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
Storage
|
|
10
|
-
} from "./chunk-2X6HJV2G.js";
|
|
8
|
+
} from "./chunk-IB4Q6NBY.js";
|
|
11
9
|
|
|
12
10
|
// packages/cli/src/utils/cleanup.ts
|
|
13
11
|
import { promises as fs } from "node:fs";
|
|
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
|
|
|
2
2
|
import {
|
|
3
3
|
exitCli,
|
|
4
4
|
require_source
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-G2G6HEZZ.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_PORT,
|
|
8
8
|
SERVER_START_WAIT_MS,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
isServerRunning,
|
|
15
15
|
resolveGemmaConfig,
|
|
16
16
|
writeServerProcessInfo
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4TSWR3AN.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IB4Q6NBY.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-34MYV7JD.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
|
2
2
|
import {
|
|
3
3
|
runExitCleanup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7QZTHDKK.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|