ds-harness-remote 0.4.25 → 0.4.26
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 +3 -3
- package/dist/client.github.js +56 -56
- package/dist/client.js +56 -56
- package/dist/index.js +60 -51
- package/dist/index.js.map +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dsh-plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { randomBytes, randomUUID } from "node:crypto";
|
|
|
9
9
|
import { createServer } from "node:http";
|
|
10
10
|
import { WebSocketServer } from "ws";
|
|
11
11
|
|
|
12
|
-
// ../../node_modules
|
|
12
|
+
// ../../node_modules/zod/v3/external.js
|
|
13
13
|
var external_exports = {};
|
|
14
14
|
__export(external_exports, {
|
|
15
15
|
BRAND: () => BRAND,
|
|
@@ -121,7 +121,7 @@ __export(external_exports, {
|
|
|
121
121
|
void: () => voidType
|
|
122
122
|
});
|
|
123
123
|
|
|
124
|
-
// ../../node_modules
|
|
124
|
+
// ../../node_modules/zod/v3/helpers/util.js
|
|
125
125
|
var util;
|
|
126
126
|
(function(util2) {
|
|
127
127
|
util2.assertEqual = (_) => {
|
|
@@ -255,7 +255,7 @@ var getParsedType = (data2) => {
|
|
|
255
255
|
}
|
|
256
256
|
};
|
|
257
257
|
|
|
258
|
-
// ../../node_modules
|
|
258
|
+
// ../../node_modules/zod/v3/ZodError.js
|
|
259
259
|
var ZodIssueCode = util.arrayToEnum([
|
|
260
260
|
"invalid_type",
|
|
261
261
|
"invalid_literal",
|
|
@@ -373,7 +373,7 @@ ZodError.create = (issues) => {
|
|
|
373
373
|
return error;
|
|
374
374
|
};
|
|
375
375
|
|
|
376
|
-
// ../../node_modules
|
|
376
|
+
// ../../node_modules/zod/v3/locales/en.js
|
|
377
377
|
var errorMap = (issue, _ctx) => {
|
|
378
378
|
let message;
|
|
379
379
|
switch (issue.code) {
|
|
@@ -476,7 +476,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
476
476
|
};
|
|
477
477
|
var en_default = errorMap;
|
|
478
478
|
|
|
479
|
-
// ../../node_modules
|
|
479
|
+
// ../../node_modules/zod/v3/errors.js
|
|
480
480
|
var overrideErrorMap = en_default;
|
|
481
481
|
function setErrorMap(map) {
|
|
482
482
|
overrideErrorMap = map;
|
|
@@ -485,7 +485,7 @@ function getErrorMap() {
|
|
|
485
485
|
return overrideErrorMap;
|
|
486
486
|
}
|
|
487
487
|
|
|
488
|
-
// ../../node_modules
|
|
488
|
+
// ../../node_modules/zod/v3/helpers/parseUtil.js
|
|
489
489
|
var makeIssue = (params) => {
|
|
490
490
|
const { data: data2, path, errorMaps, issueData } = params;
|
|
491
491
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -595,14 +595,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
595
595
|
var isValid = (x) => x.status === "valid";
|
|
596
596
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
597
597
|
|
|
598
|
-
// ../../node_modules
|
|
598
|
+
// ../../node_modules/zod/v3/helpers/errorUtil.js
|
|
599
599
|
var errorUtil;
|
|
600
600
|
(function(errorUtil2) {
|
|
601
601
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
602
602
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
603
603
|
})(errorUtil || (errorUtil = {}));
|
|
604
604
|
|
|
605
|
-
// ../../node_modules
|
|
605
|
+
// ../../node_modules/zod/v3/types.js
|
|
606
606
|
var ParseInputLazyPath = class {
|
|
607
607
|
constructor(parent, value, path, key) {
|
|
608
608
|
this._cachedPath = [];
|
|
@@ -6950,6 +6950,9 @@ var AdaptiveTransport = class extends BaseTransport {
|
|
|
6950
6950
|
negotiatedCapabilities = ["transport.relay"];
|
|
6951
6951
|
controlFrameLimits = {};
|
|
6952
6952
|
connectedAt;
|
|
6953
|
+
heartbeatIntervalMs;
|
|
6954
|
+
lastControlReceivedAt;
|
|
6955
|
+
lastControlSentAt;
|
|
6953
6956
|
lastRtcDiagnostics;
|
|
6954
6957
|
constructor(url, options) {
|
|
6955
6958
|
super();
|
|
@@ -7026,6 +7029,9 @@ var AdaptiveTransport = class extends BaseTransport {
|
|
|
7026
7029
|
return {
|
|
7027
7030
|
...this.connectionId === void 0 ? {} : { connectionId: this.connectionId },
|
|
7028
7031
|
...this.connectedAt === void 0 ? {} : { connectedAt: this.connectedAt },
|
|
7032
|
+
...this.heartbeatIntervalMs === void 0 ? {} : { heartbeatIntervalMs: this.heartbeatIntervalMs },
|
|
7033
|
+
...this.lastControlReceivedAt === void 0 ? {} : { lastControlReceivedAt: this.lastControlReceivedAt },
|
|
7034
|
+
...this.lastControlSentAt === void 0 ? {} : { lastControlSentAt: this.lastControlSentAt },
|
|
7029
7035
|
controlChannelUrl: this.url,
|
|
7030
7036
|
controlChannelState: socketState(this.socket?.readyState),
|
|
7031
7037
|
preferredTransports: this.options.forceRelay === true ? ["relay"] : [...this.options.preferredTransports ?? DEFAULT_PREFERRED_TRANSPORTS],
|
|
@@ -7074,10 +7080,12 @@ var AdaptiveTransport = class extends BaseTransport {
|
|
|
7074
7080
|
if (typeof raw !== "string")
|
|
7075
7081
|
throw new Error("Adaptive control frames must be text JSON");
|
|
7076
7082
|
const frame = decodeControlFrame(raw, this.controlFrameLimits);
|
|
7083
|
+
this.lastControlReceivedAt = Date.now();
|
|
7077
7084
|
if (frame.type === "hello.ack") {
|
|
7078
7085
|
const payload = frame.payload;
|
|
7079
7086
|
if (payload.protocol !== PROTOCOL_VERSION)
|
|
7080
7087
|
throw new Error("Server selected an unsupported protocol version");
|
|
7088
|
+
this.heartbeatIntervalMs = payload.heartbeatIntervalMs;
|
|
7081
7089
|
const offered = this.options.capabilities ?? DEFAULT_CAPABILITIES;
|
|
7082
7090
|
this.negotiatedCapabilities = acceptNegotiatedCapabilities(offered, payload.capabilities);
|
|
7083
7091
|
this.controlFrameLimits = {
|
|
@@ -7297,6 +7305,7 @@ var AdaptiveTransport = class extends BaseTransport {
|
|
|
7297
7305
|
if (this.socket?.readyState !== WebSocket.OPEN)
|
|
7298
7306
|
throw new Error("adaptive control socket is not open");
|
|
7299
7307
|
this.socket.send(encodeControlFrame(createControlFrame(type, payload), this.controlFrameLimits));
|
|
7308
|
+
this.lastControlSentAt = Date.now();
|
|
7300
7309
|
}
|
|
7301
7310
|
finishConnection() {
|
|
7302
7311
|
this.clearHandshake();
|
|
@@ -7466,11 +7475,11 @@ var ApiProxySwitch = class {
|
|
|
7466
7475
|
}
|
|
7467
7476
|
};
|
|
7468
7477
|
|
|
7469
|
-
//
|
|
7478
|
+
// ../crypto/node_modules/@noble/ciphers/esm/cryptoNode.js
|
|
7470
7479
|
import * as nc from "node:crypto";
|
|
7471
7480
|
var crypto = nc && typeof nc === "object" && "webcrypto" in nc ? nc.webcrypto : nc && typeof nc === "object" && "randomBytes" in nc ? nc : void 0;
|
|
7472
7481
|
|
|
7473
|
-
//
|
|
7482
|
+
// ../crypto/node_modules/@noble/ciphers/esm/webcrypto.js
|
|
7474
7483
|
function randomBytes2(bytesLength = 32) {
|
|
7475
7484
|
if (crypto && typeof crypto.getRandomValues === "function") {
|
|
7476
7485
|
return crypto.getRandomValues(new Uint8Array(bytesLength));
|
|
@@ -7481,11 +7490,11 @@ function randomBytes2(bytesLength = 32) {
|
|
|
7481
7490
|
throw new Error("crypto.getRandomValues must be defined");
|
|
7482
7491
|
}
|
|
7483
7492
|
|
|
7484
|
-
// ../../node_modules
|
|
7493
|
+
// ../../node_modules/@noble/hashes/esm/cryptoNode.js
|
|
7485
7494
|
import * as nc2 from "node:crypto";
|
|
7486
7495
|
var crypto2 = nc2 && typeof nc2 === "object" && "webcrypto" in nc2 ? nc2.webcrypto : nc2 && typeof nc2 === "object" && "randomBytes" in nc2 ? nc2 : void 0;
|
|
7487
7496
|
|
|
7488
|
-
// ../../node_modules
|
|
7497
|
+
// ../../node_modules/@noble/hashes/esm/utils.js
|
|
7489
7498
|
function isBytes(a) {
|
|
7490
7499
|
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
|
|
7491
7500
|
}
|
|
@@ -7612,7 +7621,7 @@ function randomBytes3(bytesLength = 32) {
|
|
|
7612
7621
|
throw new Error("crypto.getRandomValues must be defined");
|
|
7613
7622
|
}
|
|
7614
7623
|
|
|
7615
|
-
// ../../node_modules
|
|
7624
|
+
// ../../node_modules/@noble/hashes/esm/_md.js
|
|
7616
7625
|
function setBigUint64(view, byteOffset, value, isLE3) {
|
|
7617
7626
|
if (typeof view.setBigUint64 === "function")
|
|
7618
7627
|
return view.setBigUint64(byteOffset, value, isLE3);
|
|
@@ -7734,7 +7743,7 @@ var SHA512_IV = /* @__PURE__ */ Uint32Array.from([
|
|
|
7734
7743
|
327033209
|
|
7735
7744
|
]);
|
|
7736
7745
|
|
|
7737
|
-
// ../../node_modules
|
|
7746
|
+
// ../../node_modules/@noble/hashes/esm/_u64.js
|
|
7738
7747
|
var U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
7739
7748
|
var _32n = /* @__PURE__ */ BigInt(32);
|
|
7740
7749
|
function fromBig(n, le = false) {
|
|
@@ -7769,7 +7778,7 @@ var add4H = (low, Ah, Bh, Ch, Dh) => Ah + Bh + Ch + Dh + (low / 2 ** 32 | 0) | 0
|
|
|
7769
7778
|
var add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);
|
|
7770
7779
|
var add5H = (low, Ah, Bh, Ch, Dh, Eh) => Ah + Bh + Ch + Dh + Eh + (low / 2 ** 32 | 0) | 0;
|
|
7771
7780
|
|
|
7772
|
-
// ../../node_modules
|
|
7781
|
+
// ../../node_modules/@noble/hashes/esm/sha2.js
|
|
7773
7782
|
var K512 = /* @__PURE__ */ (() => split([
|
|
7774
7783
|
"0x428a2f98d728ae22",
|
|
7775
7784
|
"0x7137449123ef65cd",
|
|
@@ -7969,7 +7978,7 @@ var SHA512 = class extends HashMD {
|
|
|
7969
7978
|
};
|
|
7970
7979
|
var sha512 = /* @__PURE__ */ createHasher(() => new SHA512());
|
|
7971
7980
|
|
|
7972
|
-
// ../../node_modules
|
|
7981
|
+
// ../../node_modules/@noble/curves/esm/utils.js
|
|
7973
7982
|
var _0n = /* @__PURE__ */ BigInt(0);
|
|
7974
7983
|
var _1n = /* @__PURE__ */ BigInt(1);
|
|
7975
7984
|
function _abool2(value, title = "") {
|
|
@@ -8082,7 +8091,7 @@ function memoized(fn) {
|
|
|
8082
8091
|
};
|
|
8083
8092
|
}
|
|
8084
8093
|
|
|
8085
|
-
// ../../node_modules
|
|
8094
|
+
// ../../node_modules/@noble/curves/esm/abstract/modular.js
|
|
8086
8095
|
var _0n2 = BigInt(0);
|
|
8087
8096
|
var _1n2 = BigInt(1);
|
|
8088
8097
|
var _2n = /* @__PURE__ */ BigInt(2);
|
|
@@ -8408,7 +8417,7 @@ function Field(ORDER, bitLenOrOpts, isLE3 = false, opts = {}) {
|
|
|
8408
8417
|
return Object.freeze(f);
|
|
8409
8418
|
}
|
|
8410
8419
|
|
|
8411
|
-
// ../../node_modules
|
|
8420
|
+
// ../../node_modules/@noble/curves/esm/abstract/curve.js
|
|
8412
8421
|
var _0n3 = BigInt(0);
|
|
8413
8422
|
var _1n3 = BigInt(1);
|
|
8414
8423
|
function negateCt(condition, item) {
|
|
@@ -8671,7 +8680,7 @@ function _createCurveFields(type, CURVE, curveOpts = {}, FpFnLE) {
|
|
|
8671
8680
|
return { CURVE, Fp: Fp2, Fn: Fn2 };
|
|
8672
8681
|
}
|
|
8673
8682
|
|
|
8674
|
-
// ../../node_modules
|
|
8683
|
+
// ../../node_modules/@noble/curves/esm/abstract/edwards.js
|
|
8675
8684
|
var _0n4 = BigInt(0);
|
|
8676
8685
|
var _1n4 = BigInt(1);
|
|
8677
8686
|
var _2n2 = BigInt(2);
|
|
@@ -9222,7 +9231,7 @@ function twistedEdwards(c) {
|
|
|
9222
9231
|
return _eddsa_new_output_to_legacy(c, EDDSA);
|
|
9223
9232
|
}
|
|
9224
9233
|
|
|
9225
|
-
// ../../node_modules
|
|
9234
|
+
// ../../node_modules/@noble/curves/esm/abstract/montgomery.js
|
|
9226
9235
|
var _0n5 = BigInt(0);
|
|
9227
9236
|
var _1n5 = BigInt(1);
|
|
9228
9237
|
var _2n3 = BigInt(2);
|
|
@@ -9342,7 +9351,7 @@ function montgomery(curveDef) {
|
|
|
9342
9351
|
};
|
|
9343
9352
|
}
|
|
9344
9353
|
|
|
9345
|
-
// ../../node_modules
|
|
9354
|
+
// ../../node_modules/@noble/curves/esm/ed25519.js
|
|
9346
9355
|
var _0n6 = /* @__PURE__ */ BigInt(0);
|
|
9347
9356
|
var _1n6 = BigInt(1);
|
|
9348
9357
|
var _2n4 = BigInt(2);
|
|
@@ -9577,7 +9586,7 @@ _RistrettoPoint.ZERO = /* @__PURE__ */ (() => new _RistrettoPoint(ed25519.Point.
|
|
|
9577
9586
|
_RistrettoPoint.Fp = /* @__PURE__ */ (() => Fp)();
|
|
9578
9587
|
_RistrettoPoint.Fn = /* @__PURE__ */ (() => Fn)();
|
|
9579
9588
|
|
|
9580
|
-
// ../../node_modules
|
|
9589
|
+
// ../../node_modules/@lukeburns/clatterjs/dist/constants.js
|
|
9581
9590
|
var MAX_KEY_LEN = 32;
|
|
9582
9591
|
var MAX_TAG_LEN = 16;
|
|
9583
9592
|
var MAX_MESSAGE_LEN = 65535;
|
|
@@ -9587,7 +9596,7 @@ var MAX_TOKENS_PER_HS_MESSAGE = 8;
|
|
|
9587
9596
|
var MAX_HS_MESSAGES_PER_ROLE = 8;
|
|
9588
9597
|
var HYBRID_DUAL_LAYER = new TextEncoder().encode("clatter.hybrid_dual_layer.outer");
|
|
9589
9598
|
|
|
9590
|
-
// ../../node_modules
|
|
9599
|
+
// ../../node_modules/@lukeburns/clatterjs/dist/errors.js
|
|
9591
9600
|
var CipherError = class extends Error {
|
|
9592
9601
|
code;
|
|
9593
9602
|
constructor(code, message) {
|
|
@@ -9623,7 +9632,7 @@ var TransportError = class extends Error {
|
|
|
9623
9632
|
}
|
|
9624
9633
|
};
|
|
9625
9634
|
|
|
9626
|
-
// ../../node_modules
|
|
9635
|
+
// ../../node_modules/@lukeburns/clatterjs/dist/handshakePattern.js
|
|
9627
9636
|
function checkMsgLens(initiator, responder) {
|
|
9628
9637
|
for (const g of initiator) {
|
|
9629
9638
|
if (g.length > MAX_TOKENS_PER_HS_MESSAGE) {
|
|
@@ -9792,7 +9801,7 @@ var HandshakePattern = class _HandshakePattern {
|
|
|
9792
9801
|
}
|
|
9793
9802
|
};
|
|
9794
9803
|
|
|
9795
|
-
// ../../node_modules
|
|
9804
|
+
// ../../node_modules/@lukeburns/clatterjs/dist/cipherState.js
|
|
9796
9805
|
var U64_MAX = 0xfffffffffffffffn;
|
|
9797
9806
|
var CipherState = class {
|
|
9798
9807
|
C;
|
|
@@ -9864,7 +9873,7 @@ var CipherStates = class {
|
|
|
9864
9873
|
}
|
|
9865
9874
|
};
|
|
9866
9875
|
|
|
9867
|
-
// ../../node_modules
|
|
9876
|
+
// ../../node_modules/@lukeburns/clatterjs/dist/symmetricState.js
|
|
9868
9877
|
function deriveCipherKey(temp, C) {
|
|
9869
9878
|
return temp.slice(0, C.keyLen);
|
|
9870
9879
|
}
|
|
@@ -9951,7 +9960,7 @@ function concat(a, b) {
|
|
|
9951
9960
|
return o;
|
|
9952
9961
|
}
|
|
9953
9962
|
|
|
9954
|
-
// ../../node_modules
|
|
9963
|
+
// ../../node_modules/@lukeburns/clatterjs/dist/transportState.js
|
|
9955
9964
|
function mapCipher(e) {
|
|
9956
9965
|
if (e instanceof TransportError)
|
|
9957
9966
|
return e;
|
|
@@ -10113,7 +10122,7 @@ var TransportState = class {
|
|
|
10113
10122
|
}
|
|
10114
10123
|
};
|
|
10115
10124
|
|
|
10116
|
-
// ../../node_modules
|
|
10125
|
+
// ../../node_modules/@lukeburns/clatterjs/node_modules/@noble/hashes/_u64.js
|
|
10117
10126
|
var U32_MASK642 = /* @__PURE__ */ (() => BigInt(2 ** 32 - 1))();
|
|
10118
10127
|
var _32n2 = /* @__PURE__ */ BigInt(32);
|
|
10119
10128
|
function fromBig2(n, le = false) {
|
|
@@ -10158,7 +10167,7 @@ var add4H2 = (low, Ah, Bh, Ch, Dh) => Ah + Bh + Ch + Dh + (low / 2 ** 32 | 0) |
|
|
|
10158
10167
|
var add5L2 = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);
|
|
10159
10168
|
var add5H2 = (low, Ah, Bh, Ch, Dh, Eh) => Ah + Bh + Ch + Dh + Eh + (low / 2 ** 32 | 0) | 0;
|
|
10160
10169
|
|
|
10161
|
-
// ../../node_modules
|
|
10170
|
+
// ../../node_modules/@lukeburns/clatterjs/node_modules/@noble/hashes/utils.js
|
|
10162
10171
|
function isBytes2(a) {
|
|
10163
10172
|
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array" && "BYTES_PER_ELEMENT" in a && a.BYTES_PER_ELEMENT === 1;
|
|
10164
10173
|
}
|
|
@@ -10333,7 +10342,7 @@ var oidNist = (suffix) => ({
|
|
|
10333
10342
|
oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, suffix])
|
|
10334
10343
|
});
|
|
10335
10344
|
|
|
10336
|
-
// ../../node_modules
|
|
10345
|
+
// ../../node_modules/@lukeburns/clatterjs/node_modules/@noble/hashes/_md.js
|
|
10337
10346
|
function Chi2(a, b, c) {
|
|
10338
10347
|
return a & b ^ ~a & c;
|
|
10339
10348
|
}
|
|
@@ -10464,7 +10473,7 @@ var SHA512_IV2 = /* @__PURE__ */ Uint32Array.from([
|
|
|
10464
10473
|
327033209
|
|
10465
10474
|
]);
|
|
10466
10475
|
|
|
10467
|
-
// ../../node_modules
|
|
10476
|
+
// ../../node_modules/@lukeburns/clatterjs/node_modules/@noble/hashes/sha2.js
|
|
10468
10477
|
var SHA256_K = /* @__PURE__ */ Uint32Array.from([
|
|
10469
10478
|
1116352408,
|
|
10470
10479
|
1899447441,
|
|
@@ -10861,7 +10870,7 @@ var sha5122 = /* @__PURE__ */ createHasher2(
|
|
|
10861
10870
|
/* @__PURE__ */ oidNist(3)
|
|
10862
10871
|
);
|
|
10863
10872
|
|
|
10864
|
-
// ../../node_modules
|
|
10873
|
+
// ../../node_modules/@lukeburns/clatterjs/node_modules/@noble/curves/utils.js
|
|
10865
10874
|
function aarray(item, title, inner = () => {
|
|
10866
10875
|
}) {
|
|
10867
10876
|
if (!Array.isArray(item))
|
|
@@ -10980,7 +10989,7 @@ function validateObject2(object, fields = {}, optFields = {}, title = "object")
|
|
|
10980
10989
|
iter(optFields, true);
|
|
10981
10990
|
}
|
|
10982
10991
|
|
|
10983
|
-
// ../../node_modules
|
|
10992
|
+
// ../../node_modules/@lukeburns/clatterjs/node_modules/@noble/curves/abstract/modular.js
|
|
10984
10993
|
var _0n8 = /* @__PURE__ */ BigInt(0);
|
|
10985
10994
|
var _1n8 = /* @__PURE__ */ BigInt(1);
|
|
10986
10995
|
var _2n5 = /* @__PURE__ */ BigInt(2);
|
|
@@ -11409,7 +11418,7 @@ function Field2(ORDER, opts = {}) {
|
|
|
11409
11418
|
return new _Field(ORDER, opts);
|
|
11410
11419
|
}
|
|
11411
11420
|
|
|
11412
|
-
// ../../node_modules
|
|
11421
|
+
// ../../node_modules/@lukeburns/clatterjs/node_modules/@noble/curves/abstract/curve.js
|
|
11413
11422
|
var _0n9 = /* @__PURE__ */ BigInt(0);
|
|
11414
11423
|
var _1n9 = /* @__PURE__ */ BigInt(1);
|
|
11415
11424
|
var _4n3 = /* @__PURE__ */ BigInt(4);
|
|
@@ -11796,7 +11805,7 @@ function createKeygen(randomSecretKey, getPublicKey) {
|
|
|
11796
11805
|
};
|
|
11797
11806
|
}
|
|
11798
11807
|
|
|
11799
|
-
// ../../node_modules
|
|
11808
|
+
// ../../node_modules/@lukeburns/clatterjs/node_modules/@noble/curves/abstract/edwards.js
|
|
11800
11809
|
var _0n10 = /* @__PURE__ */ BigInt(0);
|
|
11801
11810
|
var _1n10 = /* @__PURE__ */ BigInt(1);
|
|
11802
11811
|
var _2n6 = /* @__PURE__ */ BigInt(2);
|
|
@@ -12090,7 +12099,7 @@ function edwards2(params, extraOpts = {}) {
|
|
|
12090
12099
|
return Point;
|
|
12091
12100
|
}
|
|
12092
12101
|
|
|
12093
|
-
// ../../node_modules
|
|
12102
|
+
// ../../node_modules/@lukeburns/clatterjs/node_modules/@noble/curves/abstract/montgomery.js
|
|
12094
12103
|
var _0n11 = /* @__PURE__ */ BigInt(0);
|
|
12095
12104
|
var _1n11 = /* @__PURE__ */ BigInt(1);
|
|
12096
12105
|
var _2n7 = /* @__PURE__ */ BigInt(2);
|
|
@@ -12237,7 +12246,7 @@ function montgomery2(curveDef) {
|
|
|
12237
12246
|
});
|
|
12238
12247
|
}
|
|
12239
12248
|
|
|
12240
|
-
// ../../node_modules
|
|
12249
|
+
// ../../node_modules/@lukeburns/clatterjs/node_modules/@noble/curves/ed25519.js
|
|
12241
12250
|
var _0n12 = /* @__PURE__ */ BigInt(0);
|
|
12242
12251
|
var _1n12 = /* @__PURE__ */ BigInt(1);
|
|
12243
12252
|
var _2n8 = /* @__PURE__ */ BigInt(2);
|
|
@@ -12323,7 +12332,7 @@ var x255192 = /* @__PURE__ */ (() => {
|
|
|
12323
12332
|
});
|
|
12324
12333
|
})();
|
|
12325
12334
|
|
|
12326
|
-
// ../../node_modules
|
|
12335
|
+
// ../../node_modules/@lukeburns/clatterjs/dist/dhX25519.js
|
|
12327
12336
|
var PK = 32;
|
|
12328
12337
|
var X25519_NAME = "25519";
|
|
12329
12338
|
function x25519Keygen(rng) {
|
|
@@ -12337,12 +12346,12 @@ function dhPubKeyLen() {
|
|
|
12337
12346
|
return PK;
|
|
12338
12347
|
}
|
|
12339
12348
|
|
|
12340
|
-
// ../../node_modules
|
|
12349
|
+
// ../../node_modules/@lukeburns/clatterjs/dist/protocolNames.js
|
|
12341
12350
|
function nqProtocolName(patternName, cipher, hash) {
|
|
12342
12351
|
return `Noise_${patternName}_${X25519_NAME}_${cipher.name}_${hash.name}`;
|
|
12343
12352
|
}
|
|
12344
12353
|
|
|
12345
|
-
// ../../node_modules
|
|
12354
|
+
// ../../node_modules/@lukeburns/clatterjs/dist/nqHandshake.js
|
|
12346
12355
|
var PK2 = () => dhPubKeyLen();
|
|
12347
12356
|
var NqHandshake = class {
|
|
12348
12357
|
pattern;
|
|
@@ -12715,7 +12724,7 @@ function raiseInv() {
|
|
|
12715
12724
|
throw new HandshakeError("InvalidState");
|
|
12716
12725
|
}
|
|
12717
12726
|
|
|
12718
|
-
// ../../node_modules
|
|
12727
|
+
// ../../node_modules/@lukeburns/clatterjs/node_modules/@noble/hashes/_blake.js
|
|
12719
12728
|
var BSIGMA = /* @__PURE__ */ Uint8Array.from([
|
|
12720
12729
|
0,
|
|
12721
12730
|
1,
|
|
@@ -12990,7 +12999,7 @@ function G2s(a, b, c, d, x) {
|
|
|
12990
12999
|
return { a, b, c, d };
|
|
12991
13000
|
}
|
|
12992
13001
|
|
|
12993
|
-
// ../../node_modules
|
|
13002
|
+
// ../../node_modules/@lukeburns/clatterjs/node_modules/@noble/hashes/blake2.js
|
|
12994
13003
|
var B2B_IV = /* @__PURE__ */ Uint32Array.from([
|
|
12995
13004
|
4089235720,
|
|
12996
13005
|
1779033703,
|
|
@@ -13423,7 +13432,7 @@ var _BLAKE2s = class extends _BLAKE2 {
|
|
|
13423
13432
|
};
|
|
13424
13433
|
var blake2s = /* @__PURE__ */ createHasher2((opts) => new _BLAKE2s(opts));
|
|
13425
13434
|
|
|
13426
|
-
// ../../node_modules
|
|
13435
|
+
// ../../node_modules/@lukeburns/clatterjs/node_modules/@noble/hashes/hmac.js
|
|
13427
13436
|
var _HMAC = class {
|
|
13428
13437
|
oHash;
|
|
13429
13438
|
iHash;
|
|
@@ -13500,7 +13509,7 @@ var hmac = /* @__PURE__ */ (() => {
|
|
|
13500
13509
|
return hmac_;
|
|
13501
13510
|
})();
|
|
13502
13511
|
|
|
13503
|
-
// ../../node_modules
|
|
13512
|
+
// ../../node_modules/@lukeburns/clatterjs/dist/crypto/hash.js
|
|
13504
13513
|
function makeHash(name2, hash, hashLen, blockLen) {
|
|
13505
13514
|
const doHash = (data2) => hash.create().update(data2).digest();
|
|
13506
13515
|
const hmac1 = (key, data2) => hmac(hash, key, data2);
|
|
@@ -13535,7 +13544,7 @@ var sha512H = makeHash("SHA512", sha5122, 64, 128);
|
|
|
13535
13544
|
var blake2bH = makeHash("BLAKE2b", blake2b, 64, 128);
|
|
13536
13545
|
var blake2sH = makeHash("BLAKE2s", blake2s, 32, 64);
|
|
13537
13546
|
|
|
13538
|
-
// ../../node_modules
|
|
13547
|
+
// ../../node_modules/@noble/ciphers/utils.js
|
|
13539
13548
|
function isBytes4(a) {
|
|
13540
13549
|
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array" && "BYTES_PER_ELEMENT" in a && a.BYTES_PER_ELEMENT === 1;
|
|
13541
13550
|
}
|
|
@@ -13702,7 +13711,7 @@ function copyBytes4(bytes) {
|
|
|
13702
13711
|
return Uint8Array.from(abytes4(bytes));
|
|
13703
13712
|
}
|
|
13704
13713
|
|
|
13705
|
-
// ../../node_modules
|
|
13714
|
+
// ../../node_modules/@noble/ciphers/_arx.js
|
|
13706
13715
|
var encodeStr = (str) => Uint8Array.from(str.split(""), (c) => c.charCodeAt(0));
|
|
13707
13716
|
var sigma16_32 = /* @__PURE__ */ (() => swap32IfBE2(u322(encodeStr("expand 16-byte k"))))();
|
|
13708
13717
|
var sigma32_32 = /* @__PURE__ */ (() => swap32IfBE2(u322(encodeStr("expand 32-byte k"))))();
|
|
@@ -13829,7 +13838,7 @@ function createCipher(core, opts) {
|
|
|
13829
13838
|
};
|
|
13830
13839
|
}
|
|
13831
13840
|
|
|
13832
|
-
// ../../node_modules
|
|
13841
|
+
// ../../node_modules/@noble/ciphers/_poly1305.js
|
|
13833
13842
|
function u8to16(a, i) {
|
|
13834
13843
|
return a[i++] & 255 | (a[i++] & 255) << 8;
|
|
13835
13844
|
}
|
|
@@ -14080,7 +14089,7 @@ var Poly1305 = class {
|
|
|
14080
14089
|
};
|
|
14081
14090
|
var poly1305 = /* @__PURE__ */ wrapMacConstructor(32, (key) => new Poly1305(key));
|
|
14082
14091
|
|
|
14083
|
-
// ../../node_modules
|
|
14092
|
+
// ../../node_modules/@noble/ciphers/chacha.js
|
|
14084
14093
|
function chachaCore(s2, k, n, out, cnt, rounds = 20) {
|
|
14085
14094
|
let y00 = s2[0], y01 = s2[1], y02 = s2[2], y03 = s2[3], y04 = k[0], y05 = k[1], y06 = k[2], y07 = k[3], y08 = k[4], y09 = k[5], y10 = k[6], y11 = k[7], y12 = cnt, y13 = n[0], y14 = n[1], y15 = n[2];
|
|
14086
14095
|
let x00 = y00, x01 = y01, x02 = y02, x03 = y03, x04 = y04, x05 = y05, x06 = y06, x07 = y07, x08 = y08, x09 = y09, x10 = y10, x11 = y11, x12 = y12, x13 = y13, x14 = y14, x15 = y15;
|
|
@@ -14230,7 +14239,7 @@ var chacha20poly1305 = /* @__PURE__ */ wrapCipher(
|
|
|
14230
14239
|
/* @__PURE__ */ _poly1305_aead(chacha20)
|
|
14231
14240
|
);
|
|
14232
14241
|
|
|
14233
|
-
// ../../node_modules
|
|
14242
|
+
// ../../node_modules/@lukeburns/clatterjs/dist/crypto/cipher.js
|
|
14234
14243
|
var U64_MAX2 = 0xfffffffffffffffn;
|
|
14235
14244
|
function chachaNonce(n) {
|
|
14236
14245
|
const b = new Uint8Array(12);
|
|
@@ -14292,7 +14301,7 @@ var chachaPoly = /* @__PURE__ */ (() => {
|
|
|
14292
14301
|
};
|
|
14293
14302
|
})();
|
|
14294
14303
|
|
|
14295
|
-
// ../../node_modules
|
|
14304
|
+
// ../../node_modules/@lukeburns/clatterjs/dist/noiseNq.js
|
|
14296
14305
|
function noiseIk() {
|
|
14297
14306
|
return new HandshakePattern("IK", [], [
|
|
14298
14307
|
1
|
|
@@ -18378,7 +18387,7 @@ function normalizeServerUrl(value) {
|
|
|
18378
18387
|
}
|
|
18379
18388
|
|
|
18380
18389
|
// src/version.ts
|
|
18381
|
-
var PLUGIN_VERSION = "0.4.
|
|
18390
|
+
var PLUGIN_VERSION = "0.4.26";
|
|
18382
18391
|
|
|
18383
18392
|
// src/server-api.ts
|
|
18384
18393
|
var TERMINAL_CONTROL_CHARACTERS = /[\u0000-\u001f\u007f-\u009f]/u;
|