meshy-node 0.10.9 → 1.0.0
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 +1 -1
- package/dashboard/assets/DashboardPage-kK0-et4p.js +211 -0
- package/dashboard/assets/{DashboardShared-CrDF53oL.js → DashboardShared-B-MhNC7V.js} +23 -23
- package/dashboard/assets/{DiffTab-CNBS3yRm.js → DiffTab-xXmdkadb.js} +2 -2
- package/dashboard/assets/{FilesTab-BHeht0ZL.js → FilesTab-tVrm_BOK.js} +2 -2
- package/dashboard/assets/{MarkdownPreviewFrame-L2oxne--.js → MarkdownPreviewFrame-Bh67Y-4b.js} +1 -1
- package/dashboard/assets/{PreviewTab-UMpaLVaV.js → PreviewTab-kRFQ5bQf.js} +2 -2
- package/dashboard/assets/SharedConversationPage-CYSWbDBC.js +2 -0
- package/dashboard/assets/{file-BgR9-rpB.js → file-eGew3MDA.js} +1 -1
- package/dashboard/assets/index-DJ824ClY.css +1 -0
- package/dashboard/assets/index-rujLgCBM.js +326 -0
- package/dashboard/index.html +2 -2
- package/main.cjs +882 -772
- package/package.json +1 -1
- package/runtime-metadata.json +4 -4
- package/dashboard/assets/DashboardPage-bZy6ZY6K.js +0 -181
- package/dashboard/assets/SharedConversationPage-CTyYVCbw.js +0 -2
- package/dashboard/assets/index-By1kKB26.css +0 -1
- package/dashboard/assets/index-D260dUEm.js +0 -346
package/main.cjs
CHANGED
|
@@ -6635,7 +6635,7 @@ var require_supports_color = __commonJS({
|
|
|
6635
6635
|
"../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports2, module2) {
|
|
6636
6636
|
"use strict";
|
|
6637
6637
|
init_cjs_shims();
|
|
6638
|
-
var
|
|
6638
|
+
var os17 = require("os");
|
|
6639
6639
|
var tty = require("tty");
|
|
6640
6640
|
var hasFlag = require_has_flag();
|
|
6641
6641
|
var { env: env4 } = process;
|
|
@@ -6683,7 +6683,7 @@ var require_supports_color = __commonJS({
|
|
|
6683
6683
|
return min;
|
|
6684
6684
|
}
|
|
6685
6685
|
if (process.platform === "win32") {
|
|
6686
|
-
const osRelease =
|
|
6686
|
+
const osRelease = os17.release().split(".");
|
|
6687
6687
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
6688
6688
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
6689
6689
|
}
|
|
@@ -8647,8 +8647,8 @@ function getClient(endpoint, clientOptions = {}) {
|
|
|
8647
8647
|
}
|
|
8648
8648
|
const { allowInsecureConnection: allowInsecureConnection2, httpClient } = clientOptions;
|
|
8649
8649
|
const endpointUrl = clientOptions.endpoint ?? endpoint;
|
|
8650
|
-
const client = (
|
|
8651
|
-
const getUrl3 = (requestOptions) => buildRequestUrl(endpointUrl,
|
|
8650
|
+
const client = (path48, ...args) => {
|
|
8651
|
+
const getUrl3 = (requestOptions) => buildRequestUrl(endpointUrl, path48, args, { allowInsecureConnection: allowInsecureConnection2, ...requestOptions });
|
|
8652
8652
|
return {
|
|
8653
8653
|
get: (requestOptions = {}) => {
|
|
8654
8654
|
return buildOperation("GET", getUrl3(requestOptions), pipeline3, requestOptions, allowInsecureConnection2, httpClient);
|
|
@@ -9838,11 +9838,11 @@ var require_eventemitter3 = __commonJS({
|
|
|
9838
9838
|
if (--emitter._eventsCount === 0) emitter._events = new Events();
|
|
9839
9839
|
else delete emitter._events[evt];
|
|
9840
9840
|
}
|
|
9841
|
-
function
|
|
9841
|
+
function EventEmitter3() {
|
|
9842
9842
|
this._events = new Events();
|
|
9843
9843
|
this._eventsCount = 0;
|
|
9844
9844
|
}
|
|
9845
|
-
|
|
9845
|
+
EventEmitter3.prototype.eventNames = function eventNames() {
|
|
9846
9846
|
var names = [], events, name2;
|
|
9847
9847
|
if (this._eventsCount === 0) return names;
|
|
9848
9848
|
for (name2 in events = this._events) {
|
|
@@ -9853,7 +9853,7 @@ var require_eventemitter3 = __commonJS({
|
|
|
9853
9853
|
}
|
|
9854
9854
|
return names;
|
|
9855
9855
|
};
|
|
9856
|
-
|
|
9856
|
+
EventEmitter3.prototype.listeners = function listeners(event) {
|
|
9857
9857
|
var evt = prefix ? prefix + event : event, handlers2 = this._events[evt];
|
|
9858
9858
|
if (!handlers2) return [];
|
|
9859
9859
|
if (handlers2.fn) return [handlers2.fn];
|
|
@@ -9862,13 +9862,13 @@ var require_eventemitter3 = __commonJS({
|
|
|
9862
9862
|
}
|
|
9863
9863
|
return ee;
|
|
9864
9864
|
};
|
|
9865
|
-
|
|
9865
|
+
EventEmitter3.prototype.listenerCount = function listenerCount(event) {
|
|
9866
9866
|
var evt = prefix ? prefix + event : event, listeners = this._events[evt];
|
|
9867
9867
|
if (!listeners) return 0;
|
|
9868
9868
|
if (listeners.fn) return 1;
|
|
9869
9869
|
return listeners.length;
|
|
9870
9870
|
};
|
|
9871
|
-
|
|
9871
|
+
EventEmitter3.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
|
|
9872
9872
|
var evt = prefix ? prefix + event : event;
|
|
9873
9873
|
if (!this._events[evt]) return false;
|
|
9874
9874
|
var listeners = this._events[evt], len = arguments.length, args, i;
|
|
@@ -9919,13 +9919,13 @@ var require_eventemitter3 = __commonJS({
|
|
|
9919
9919
|
}
|
|
9920
9920
|
return true;
|
|
9921
9921
|
};
|
|
9922
|
-
|
|
9922
|
+
EventEmitter3.prototype.on = function on(event, fn, context4) {
|
|
9923
9923
|
return addListener(this, event, fn, context4, false);
|
|
9924
9924
|
};
|
|
9925
|
-
|
|
9925
|
+
EventEmitter3.prototype.once = function once(event, fn, context4) {
|
|
9926
9926
|
return addListener(this, event, fn, context4, true);
|
|
9927
9927
|
};
|
|
9928
|
-
|
|
9928
|
+
EventEmitter3.prototype.removeListener = function removeListener(event, fn, context4, once) {
|
|
9929
9929
|
var evt = prefix ? prefix + event : event;
|
|
9930
9930
|
if (!this._events[evt]) return this;
|
|
9931
9931
|
if (!fn) {
|
|
@@ -9948,7 +9948,7 @@ var require_eventemitter3 = __commonJS({
|
|
|
9948
9948
|
}
|
|
9949
9949
|
return this;
|
|
9950
9950
|
};
|
|
9951
|
-
|
|
9951
|
+
EventEmitter3.prototype.removeAllListeners = function removeAllListeners(event) {
|
|
9952
9952
|
var evt;
|
|
9953
9953
|
if (event) {
|
|
9954
9954
|
evt = prefix ? prefix + event : event;
|
|
@@ -9959,12 +9959,12 @@ var require_eventemitter3 = __commonJS({
|
|
|
9959
9959
|
}
|
|
9960
9960
|
return this;
|
|
9961
9961
|
};
|
|
9962
|
-
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
|
|
9962
|
+
EventEmitter3.prototype.off = EventEmitter3.prototype.removeListener;
|
|
9963
|
+
EventEmitter3.prototype.addListener = EventEmitter3.prototype.on;
|
|
9964
|
+
EventEmitter3.prefixed = prefix;
|
|
9965
|
+
EventEmitter3.EventEmitter = EventEmitter3;
|
|
9966
9966
|
if ("undefined" !== typeof module2) {
|
|
9967
|
-
module2.exports =
|
|
9967
|
+
module2.exports = EventEmitter3;
|
|
9968
9968
|
}
|
|
9969
9969
|
}
|
|
9970
9970
|
});
|
|
@@ -10391,8 +10391,8 @@ var init_parseUtil = __esm({
|
|
|
10391
10391
|
init_errors();
|
|
10392
10392
|
init_en();
|
|
10393
10393
|
makeIssue = (params) => {
|
|
10394
|
-
const { data, path:
|
|
10395
|
-
const fullPath = [...
|
|
10394
|
+
const { data, path: path48, errorMaps, issueData } = params;
|
|
10395
|
+
const fullPath = [...path48, ...issueData.path || []];
|
|
10396
10396
|
const fullIssue = {
|
|
10397
10397
|
...issueData,
|
|
10398
10398
|
path: fullPath
|
|
@@ -10706,11 +10706,11 @@ var init_types = __esm({
|
|
|
10706
10706
|
init_parseUtil();
|
|
10707
10707
|
init_util();
|
|
10708
10708
|
ParseInputLazyPath = class {
|
|
10709
|
-
constructor(parent, value,
|
|
10709
|
+
constructor(parent, value, path48, key2) {
|
|
10710
10710
|
this._cachedPath = [];
|
|
10711
10711
|
this.parent = parent;
|
|
10712
10712
|
this.data = value;
|
|
10713
|
-
this._path =
|
|
10713
|
+
this._path = path48;
|
|
10714
10714
|
this._key = key2;
|
|
10715
10715
|
}
|
|
10716
10716
|
get path() {
|
|
@@ -15365,8 +15365,8 @@ var require_node2 = __commonJS({
|
|
|
15365
15365
|
}
|
|
15366
15366
|
break;
|
|
15367
15367
|
case "FILE":
|
|
15368
|
-
var
|
|
15369
|
-
stream2 = new
|
|
15368
|
+
var fs44 = require("fs");
|
|
15369
|
+
stream2 = new fs44.SyncWriteStream(fd2, { autoClose: false });
|
|
15370
15370
|
stream2._type = "fs";
|
|
15371
15371
|
break;
|
|
15372
15372
|
case "PIPE":
|
|
@@ -15420,7 +15420,7 @@ var require_destroy = __commonJS({
|
|
|
15420
15420
|
"../../node_modules/.pnpm/destroy@1.2.0/node_modules/destroy/index.js"(exports2, module2) {
|
|
15421
15421
|
"use strict";
|
|
15422
15422
|
init_cjs_shims();
|
|
15423
|
-
var
|
|
15423
|
+
var EventEmitter3 = require("events").EventEmitter;
|
|
15424
15424
|
var ReadStream = require("fs").ReadStream;
|
|
15425
15425
|
var Stream = require("stream");
|
|
15426
15426
|
var Zlib = require("zlib");
|
|
@@ -15482,7 +15482,7 @@ var require_destroy = __commonJS({
|
|
|
15482
15482
|
return stream instanceof Stream && typeof stream.destroy === "function";
|
|
15483
15483
|
}
|
|
15484
15484
|
function isEventEmitter(val) {
|
|
15485
|
-
return val instanceof
|
|
15485
|
+
return val instanceof EventEmitter3;
|
|
15486
15486
|
}
|
|
15487
15487
|
function isFsReadStream(stream) {
|
|
15488
15488
|
return stream instanceof ReadStream;
|
|
@@ -28180,11 +28180,11 @@ var require_mime_types = __commonJS({
|
|
|
28180
28180
|
}
|
|
28181
28181
|
return exts[0];
|
|
28182
28182
|
}
|
|
28183
|
-
function lookup(
|
|
28184
|
-
if (!
|
|
28183
|
+
function lookup(path48) {
|
|
28184
|
+
if (!path48 || typeof path48 !== "string") {
|
|
28185
28185
|
return false;
|
|
28186
28186
|
}
|
|
28187
|
-
var extension3 = extname4("x." +
|
|
28187
|
+
var extension3 = extname4("x." + path48).toLowerCase().substr(1);
|
|
28188
28188
|
if (!extension3) {
|
|
28189
28189
|
return false;
|
|
28190
28190
|
}
|
|
@@ -31789,7 +31789,7 @@ var require_path_to_regexp = __commonJS({
|
|
|
31789
31789
|
init_cjs_shims();
|
|
31790
31790
|
module2.exports = pathToRegexp;
|
|
31791
31791
|
var MATCHING_GROUP_REGEXP = /\\.|\((?:\?<(.*?)>)?(?!\?)/g;
|
|
31792
|
-
function pathToRegexp(
|
|
31792
|
+
function pathToRegexp(path48, keys2, options) {
|
|
31793
31793
|
options = options || {};
|
|
31794
31794
|
keys2 = keys2 || [];
|
|
31795
31795
|
var strict = options.strict;
|
|
@@ -31803,8 +31803,8 @@ var require_path_to_regexp = __commonJS({
|
|
|
31803
31803
|
var pos = 0;
|
|
31804
31804
|
var backtrack = "";
|
|
31805
31805
|
var m;
|
|
31806
|
-
if (
|
|
31807
|
-
while (m = MATCHING_GROUP_REGEXP.exec(
|
|
31806
|
+
if (path48 instanceof RegExp) {
|
|
31807
|
+
while (m = MATCHING_GROUP_REGEXP.exec(path48.source)) {
|
|
31808
31808
|
if (m[0][0] === "\\") continue;
|
|
31809
31809
|
keys2.push({
|
|
31810
31810
|
name: m[1] || name2++,
|
|
@@ -31812,18 +31812,18 @@ var require_path_to_regexp = __commonJS({
|
|
|
31812
31812
|
offset: m.index
|
|
31813
31813
|
});
|
|
31814
31814
|
}
|
|
31815
|
-
return
|
|
31815
|
+
return path48;
|
|
31816
31816
|
}
|
|
31817
|
-
if (Array.isArray(
|
|
31818
|
-
|
|
31817
|
+
if (Array.isArray(path48)) {
|
|
31818
|
+
path48 = path48.map(function(value) {
|
|
31819
31819
|
return pathToRegexp(value, keys2, options).source;
|
|
31820
31820
|
});
|
|
31821
|
-
return new RegExp(
|
|
31821
|
+
return new RegExp(path48.join("|"), flags);
|
|
31822
31822
|
}
|
|
31823
|
-
if (typeof
|
|
31823
|
+
if (typeof path48 !== "string") {
|
|
31824
31824
|
throw new TypeError("path must be a string, array of strings, or regular expression");
|
|
31825
31825
|
}
|
|
31826
|
-
|
|
31826
|
+
path48 = path48.replace(
|
|
31827
31827
|
/\\.|(\/)?(\.)?:(\w+)(\(.*?\))?(\*)?(\?)?|[.*]|\/\(/g,
|
|
31828
31828
|
function(match, slash, format, key2, capture, star, optional2, offset) {
|
|
31829
31829
|
if (match[0] === "\\") {
|
|
@@ -31840,7 +31840,7 @@ var require_path_to_regexp = __commonJS({
|
|
|
31840
31840
|
if (slash || format) {
|
|
31841
31841
|
backtrack = "";
|
|
31842
31842
|
} else {
|
|
31843
|
-
backtrack +=
|
|
31843
|
+
backtrack += path48.slice(pos, offset);
|
|
31844
31844
|
}
|
|
31845
31845
|
pos = offset + match.length;
|
|
31846
31846
|
if (match === "*") {
|
|
@@ -31870,7 +31870,7 @@ var require_path_to_regexp = __commonJS({
|
|
|
31870
31870
|
return result;
|
|
31871
31871
|
}
|
|
31872
31872
|
);
|
|
31873
|
-
while (m = MATCHING_GROUP_REGEXP.exec(
|
|
31873
|
+
while (m = MATCHING_GROUP_REGEXP.exec(path48)) {
|
|
31874
31874
|
if (m[0][0] === "\\") continue;
|
|
31875
31875
|
if (keysOffset + i === keys2.length || keys2[keysOffset + i].offset > m.index) {
|
|
31876
31876
|
keys2.splice(keysOffset + i, 0, {
|
|
@@ -31882,13 +31882,13 @@ var require_path_to_regexp = __commonJS({
|
|
|
31882
31882
|
}
|
|
31883
31883
|
i++;
|
|
31884
31884
|
}
|
|
31885
|
-
|
|
31885
|
+
path48 += strict ? "" : path48[path48.length - 1] === "/" ? "?" : "/?";
|
|
31886
31886
|
if (end) {
|
|
31887
|
-
|
|
31888
|
-
} else if (
|
|
31889
|
-
|
|
31887
|
+
path48 += "$";
|
|
31888
|
+
} else if (path48[path48.length - 1] !== "/") {
|
|
31889
|
+
path48 += lookahead ? "(?=/|$)" : "(?:/|$)";
|
|
31890
31890
|
}
|
|
31891
|
-
return new RegExp("^" +
|
|
31891
|
+
return new RegExp("^" + path48, flags);
|
|
31892
31892
|
}
|
|
31893
31893
|
}
|
|
31894
31894
|
});
|
|
@@ -31902,19 +31902,19 @@ var require_layer = __commonJS({
|
|
|
31902
31902
|
var debug = require_src2()("express:router:layer");
|
|
31903
31903
|
var hasOwnProperty3 = Object.prototype.hasOwnProperty;
|
|
31904
31904
|
module2.exports = Layer;
|
|
31905
|
-
function Layer(
|
|
31905
|
+
function Layer(path48, options, fn) {
|
|
31906
31906
|
if (!(this instanceof Layer)) {
|
|
31907
|
-
return new Layer(
|
|
31907
|
+
return new Layer(path48, options, fn);
|
|
31908
31908
|
}
|
|
31909
|
-
debug("new %o",
|
|
31909
|
+
debug("new %o", path48);
|
|
31910
31910
|
var opts = options || {};
|
|
31911
31911
|
this.handle = fn;
|
|
31912
31912
|
this.name = fn.name || "<anonymous>";
|
|
31913
31913
|
this.params = void 0;
|
|
31914
31914
|
this.path = void 0;
|
|
31915
|
-
this.regexp = pathRegexp(
|
|
31916
|
-
this.regexp.fast_star =
|
|
31917
|
-
this.regexp.fast_slash =
|
|
31915
|
+
this.regexp = pathRegexp(path48, this.keys = [], opts);
|
|
31916
|
+
this.regexp.fast_star = path48 === "*";
|
|
31917
|
+
this.regexp.fast_slash = path48 === "/" && opts.end === false;
|
|
31918
31918
|
}
|
|
31919
31919
|
Layer.prototype.handle_error = function handle_error(error2, req, res, next2) {
|
|
31920
31920
|
var fn = this.handle;
|
|
@@ -31938,20 +31938,20 @@ var require_layer = __commonJS({
|
|
|
31938
31938
|
next2(err);
|
|
31939
31939
|
}
|
|
31940
31940
|
};
|
|
31941
|
-
Layer.prototype.match = function match(
|
|
31941
|
+
Layer.prototype.match = function match(path48) {
|
|
31942
31942
|
var match2;
|
|
31943
|
-
if (
|
|
31943
|
+
if (path48 != null) {
|
|
31944
31944
|
if (this.regexp.fast_slash) {
|
|
31945
31945
|
this.params = {};
|
|
31946
31946
|
this.path = "";
|
|
31947
31947
|
return true;
|
|
31948
31948
|
}
|
|
31949
31949
|
if (this.regexp.fast_star) {
|
|
31950
|
-
this.params = { "0": decode_param(
|
|
31951
|
-
this.path =
|
|
31950
|
+
this.params = { "0": decode_param(path48) };
|
|
31951
|
+
this.path = path48;
|
|
31952
31952
|
return true;
|
|
31953
31953
|
}
|
|
31954
|
-
match2 = this.regexp.exec(
|
|
31954
|
+
match2 = this.regexp.exec(path48);
|
|
31955
31955
|
}
|
|
31956
31956
|
if (!match2) {
|
|
31957
31957
|
this.params = void 0;
|
|
@@ -32046,10 +32046,10 @@ var require_route = __commonJS({
|
|
|
32046
32046
|
var slice = Array.prototype.slice;
|
|
32047
32047
|
var toString3 = Object.prototype.toString;
|
|
32048
32048
|
module2.exports = Route;
|
|
32049
|
-
function Route(
|
|
32050
|
-
this.path =
|
|
32049
|
+
function Route(path48) {
|
|
32050
|
+
this.path = path48;
|
|
32051
32051
|
this.stack = [];
|
|
32052
|
-
debug("new %o",
|
|
32052
|
+
debug("new %o", path48);
|
|
32053
32053
|
this.methods = {};
|
|
32054
32054
|
}
|
|
32055
32055
|
Route.prototype._handles_method = function _handles_method(method) {
|
|
@@ -32264,8 +32264,8 @@ var require_router = __commonJS({
|
|
|
32264
32264
|
if (++sync > 100) {
|
|
32265
32265
|
return setImmediate(next2, err);
|
|
32266
32266
|
}
|
|
32267
|
-
var
|
|
32268
|
-
if (
|
|
32267
|
+
var path48 = getPathname(req);
|
|
32268
|
+
if (path48 == null) {
|
|
32269
32269
|
return done(layerError);
|
|
32270
32270
|
}
|
|
32271
32271
|
var layer;
|
|
@@ -32273,7 +32273,7 @@ var require_router = __commonJS({
|
|
|
32273
32273
|
var route;
|
|
32274
32274
|
while (match !== true && idx < stack.length) {
|
|
32275
32275
|
layer = stack[idx++];
|
|
32276
|
-
match = matchLayer(layer,
|
|
32276
|
+
match = matchLayer(layer, path48);
|
|
32277
32277
|
route = layer.route;
|
|
32278
32278
|
if (typeof match !== "boolean") {
|
|
32279
32279
|
layerError = layerError || match;
|
|
@@ -32311,18 +32311,18 @@ var require_router = __commonJS({
|
|
|
32311
32311
|
} else if (route) {
|
|
32312
32312
|
layer.handle_request(req, res, next2);
|
|
32313
32313
|
} else {
|
|
32314
|
-
trim_prefix(layer, layerError, layerPath,
|
|
32314
|
+
trim_prefix(layer, layerError, layerPath, path48);
|
|
32315
32315
|
}
|
|
32316
32316
|
sync = 0;
|
|
32317
32317
|
});
|
|
32318
32318
|
}
|
|
32319
|
-
function trim_prefix(layer, layerError, layerPath,
|
|
32319
|
+
function trim_prefix(layer, layerError, layerPath, path48) {
|
|
32320
32320
|
if (layerPath.length !== 0) {
|
|
32321
|
-
if (layerPath !==
|
|
32321
|
+
if (layerPath !== path48.slice(0, layerPath.length)) {
|
|
32322
32322
|
next2(layerError);
|
|
32323
32323
|
return;
|
|
32324
32324
|
}
|
|
32325
|
-
var c =
|
|
32325
|
+
var c = path48[layerPath.length];
|
|
32326
32326
|
if (c && c !== "/" && c !== ".") return next2(layerError);
|
|
32327
32327
|
debug("trim prefix (%s) from url %s", layerPath, req.url);
|
|
32328
32328
|
removed = layerPath;
|
|
@@ -32400,7 +32400,7 @@ var require_router = __commonJS({
|
|
|
32400
32400
|
};
|
|
32401
32401
|
proto2.use = function use(fn) {
|
|
32402
32402
|
var offset = 0;
|
|
32403
|
-
var
|
|
32403
|
+
var path48 = "/";
|
|
32404
32404
|
if (typeof fn !== "function") {
|
|
32405
32405
|
var arg = fn;
|
|
32406
32406
|
while (Array.isArray(arg) && arg.length !== 0) {
|
|
@@ -32408,7 +32408,7 @@ var require_router = __commonJS({
|
|
|
32408
32408
|
}
|
|
32409
32409
|
if (typeof arg !== "function") {
|
|
32410
32410
|
offset = 1;
|
|
32411
|
-
|
|
32411
|
+
path48 = fn;
|
|
32412
32412
|
}
|
|
32413
32413
|
}
|
|
32414
32414
|
var callbacks = flatten(slice.call(arguments, offset));
|
|
@@ -32420,8 +32420,8 @@ var require_router = __commonJS({
|
|
|
32420
32420
|
if (typeof fn !== "function") {
|
|
32421
32421
|
throw new TypeError("Router.use() requires a middleware function but got a " + gettype(fn));
|
|
32422
32422
|
}
|
|
32423
|
-
debug("use %o %s",
|
|
32424
|
-
var layer = new Layer(
|
|
32423
|
+
debug("use %o %s", path48, fn.name || "<anonymous>");
|
|
32424
|
+
var layer = new Layer(path48, {
|
|
32425
32425
|
sensitive: this.caseSensitive,
|
|
32426
32426
|
strict: false,
|
|
32427
32427
|
end: false
|
|
@@ -32431,9 +32431,9 @@ var require_router = __commonJS({
|
|
|
32431
32431
|
}
|
|
32432
32432
|
return this;
|
|
32433
32433
|
};
|
|
32434
|
-
proto2.route = function route(
|
|
32435
|
-
var route2 = new Route(
|
|
32436
|
-
var layer = new Layer(
|
|
32434
|
+
proto2.route = function route(path48) {
|
|
32435
|
+
var route2 = new Route(path48);
|
|
32436
|
+
var layer = new Layer(path48, {
|
|
32437
32437
|
sensitive: this.caseSensitive,
|
|
32438
32438
|
strict: this.strict,
|
|
32439
32439
|
end: true
|
|
@@ -32443,8 +32443,8 @@ var require_router = __commonJS({
|
|
|
32443
32443
|
return route2;
|
|
32444
32444
|
};
|
|
32445
32445
|
methods.concat("all").forEach(function(method) {
|
|
32446
|
-
proto2[method] = function(
|
|
32447
|
-
var route = this.route(
|
|
32446
|
+
proto2[method] = function(path48) {
|
|
32447
|
+
var route = this.route(path48);
|
|
32448
32448
|
route[method].apply(route, slice.call(arguments, 1));
|
|
32449
32449
|
return this;
|
|
32450
32450
|
};
|
|
@@ -32480,9 +32480,9 @@ var require_router = __commonJS({
|
|
|
32480
32480
|
}
|
|
32481
32481
|
return toString3.call(obj).replace(objectRegExp, "$1");
|
|
32482
32482
|
}
|
|
32483
|
-
function matchLayer(layer,
|
|
32483
|
+
function matchLayer(layer, path48) {
|
|
32484
32484
|
try {
|
|
32485
|
-
return layer.match(
|
|
32485
|
+
return layer.match(path48);
|
|
32486
32486
|
} catch (err) {
|
|
32487
32487
|
return err;
|
|
32488
32488
|
}
|
|
@@ -32603,13 +32603,13 @@ var require_view = __commonJS({
|
|
|
32603
32603
|
"use strict";
|
|
32604
32604
|
init_cjs_shims();
|
|
32605
32605
|
var debug = require_src2()("express:view");
|
|
32606
|
-
var
|
|
32607
|
-
var
|
|
32608
|
-
var dirname11 =
|
|
32609
|
-
var basename6 =
|
|
32610
|
-
var extname4 =
|
|
32611
|
-
var join31 =
|
|
32612
|
-
var resolve24 =
|
|
32606
|
+
var path48 = require("path");
|
|
32607
|
+
var fs44 = require("fs");
|
|
32608
|
+
var dirname11 = path48.dirname;
|
|
32609
|
+
var basename6 = path48.basename;
|
|
32610
|
+
var extname4 = path48.extname;
|
|
32611
|
+
var join31 = path48.join;
|
|
32612
|
+
var resolve24 = path48.resolve;
|
|
32613
32613
|
module2.exports = View3;
|
|
32614
32614
|
function View3(name2, options) {
|
|
32615
32615
|
var opts = options || {};
|
|
@@ -32638,17 +32638,17 @@ var require_view = __commonJS({
|
|
|
32638
32638
|
this.path = this.lookup(fileName);
|
|
32639
32639
|
}
|
|
32640
32640
|
View3.prototype.lookup = function lookup(name2) {
|
|
32641
|
-
var
|
|
32641
|
+
var path49;
|
|
32642
32642
|
var roots = [].concat(this.root);
|
|
32643
32643
|
debug('lookup "%s"', name2);
|
|
32644
|
-
for (var i = 0; i < roots.length && !
|
|
32644
|
+
for (var i = 0; i < roots.length && !path49; i++) {
|
|
32645
32645
|
var root7 = roots[i];
|
|
32646
32646
|
var loc = resolve24(root7, name2);
|
|
32647
32647
|
var dir = dirname11(loc);
|
|
32648
32648
|
var file = basename6(loc);
|
|
32649
|
-
|
|
32649
|
+
path49 = this.resolve(dir, file);
|
|
32650
32650
|
}
|
|
32651
|
-
return
|
|
32651
|
+
return path49;
|
|
32652
32652
|
};
|
|
32653
32653
|
View3.prototype.render = function render(options, callback) {
|
|
32654
32654
|
debug('render "%s"', this.path);
|
|
@@ -32656,21 +32656,21 @@ var require_view = __commonJS({
|
|
|
32656
32656
|
};
|
|
32657
32657
|
View3.prototype.resolve = function resolve25(dir, file) {
|
|
32658
32658
|
var ext = this.ext;
|
|
32659
|
-
var
|
|
32660
|
-
var stat3 = tryStat(
|
|
32659
|
+
var path49 = join31(dir, file);
|
|
32660
|
+
var stat3 = tryStat(path49);
|
|
32661
32661
|
if (stat3 && stat3.isFile()) {
|
|
32662
|
-
return
|
|
32662
|
+
return path49;
|
|
32663
32663
|
}
|
|
32664
|
-
|
|
32665
|
-
stat3 = tryStat(
|
|
32664
|
+
path49 = join31(dir, basename6(file, ext), "index" + ext);
|
|
32665
|
+
stat3 = tryStat(path49);
|
|
32666
32666
|
if (stat3 && stat3.isFile()) {
|
|
32667
|
-
return
|
|
32667
|
+
return path49;
|
|
32668
32668
|
}
|
|
32669
32669
|
};
|
|
32670
|
-
function tryStat(
|
|
32671
|
-
debug('stat "%s"',
|
|
32670
|
+
function tryStat(path49) {
|
|
32671
|
+
debug('stat "%s"', path49);
|
|
32672
32672
|
try {
|
|
32673
|
-
return
|
|
32673
|
+
return fs44.statSync(path49);
|
|
32674
32674
|
} catch (e) {
|
|
32675
32675
|
return void 0;
|
|
32676
32676
|
}
|
|
@@ -32971,8 +32971,8 @@ var require_mime = __commonJS({
|
|
|
32971
32971
|
"../../node_modules/.pnpm/mime@1.6.0/node_modules/mime/mime.js"(exports2, module2) {
|
|
32972
32972
|
"use strict";
|
|
32973
32973
|
init_cjs_shims();
|
|
32974
|
-
var
|
|
32975
|
-
var
|
|
32974
|
+
var path48 = require("path");
|
|
32975
|
+
var fs44 = require("fs");
|
|
32976
32976
|
function Mime() {
|
|
32977
32977
|
this.types = /* @__PURE__ */ Object.create(null);
|
|
32978
32978
|
this.extensions = /* @__PURE__ */ Object.create(null);
|
|
@@ -32993,7 +32993,7 @@ var require_mime = __commonJS({
|
|
|
32993
32993
|
};
|
|
32994
32994
|
Mime.prototype.load = function(file) {
|
|
32995
32995
|
this._loading = file;
|
|
32996
|
-
var map3 = {}, content3 =
|
|
32996
|
+
var map3 = {}, content3 = fs44.readFileSync(file, "ascii"), lines = content3.split(/[\r\n]+/);
|
|
32997
32997
|
lines.forEach(function(line) {
|
|
32998
32998
|
var fields = line.replace(/\s*#.*|^\s*|\s*$/g, "").split(/\s+/);
|
|
32999
32999
|
map3[fields.shift()] = fields;
|
|
@@ -33001,8 +33001,8 @@ var require_mime = __commonJS({
|
|
|
33001
33001
|
this.define(map3);
|
|
33002
33002
|
this._loading = null;
|
|
33003
33003
|
};
|
|
33004
|
-
Mime.prototype.lookup = function(
|
|
33005
|
-
var ext =
|
|
33004
|
+
Mime.prototype.lookup = function(path49, fallback) {
|
|
33005
|
+
var ext = path49.replace(/^.*[\.\/\\]/, "").toLowerCase();
|
|
33006
33006
|
return this.types[ext] || fallback || this.default_type;
|
|
33007
33007
|
};
|
|
33008
33008
|
Mime.prototype.extension = function(mimeType) {
|
|
@@ -33117,33 +33117,33 @@ var require_send = __commonJS({
|
|
|
33117
33117
|
var escapeHtml2 = require_escape_html();
|
|
33118
33118
|
var etag = require_etag();
|
|
33119
33119
|
var fresh = require_fresh();
|
|
33120
|
-
var
|
|
33120
|
+
var fs44 = require("fs");
|
|
33121
33121
|
var mime = require_mime();
|
|
33122
33122
|
var ms = require_ms();
|
|
33123
33123
|
var onFinished = require_on_finished();
|
|
33124
33124
|
var parseRange = require_range_parser();
|
|
33125
|
-
var
|
|
33125
|
+
var path48 = require("path");
|
|
33126
33126
|
var statuses = require_statuses();
|
|
33127
33127
|
var Stream = require("stream");
|
|
33128
33128
|
var util5 = require("util");
|
|
33129
|
-
var extname4 =
|
|
33130
|
-
var join31 =
|
|
33131
|
-
var normalize8 =
|
|
33132
|
-
var resolve24 =
|
|
33133
|
-
var sep11 =
|
|
33129
|
+
var extname4 = path48.extname;
|
|
33130
|
+
var join31 = path48.join;
|
|
33131
|
+
var normalize8 = path48.normalize;
|
|
33132
|
+
var resolve24 = path48.resolve;
|
|
33133
|
+
var sep11 = path48.sep;
|
|
33134
33134
|
var BYTES_RANGE_REGEXP = /^ *bytes=/;
|
|
33135
33135
|
var MAX_MAXAGE = 60 * 60 * 24 * 365 * 1e3;
|
|
33136
33136
|
var UP_PATH_REGEXP = /(?:^|[\\/])\.\.(?:[\\/]|$)/;
|
|
33137
33137
|
module2.exports = send;
|
|
33138
33138
|
module2.exports.mime = mime;
|
|
33139
|
-
function send(req,
|
|
33140
|
-
return new SendStream(req,
|
|
33139
|
+
function send(req, path49, options) {
|
|
33140
|
+
return new SendStream(req, path49, options);
|
|
33141
33141
|
}
|
|
33142
|
-
function SendStream(req,
|
|
33142
|
+
function SendStream(req, path49, options) {
|
|
33143
33143
|
Stream.call(this);
|
|
33144
33144
|
var opts = options || {};
|
|
33145
33145
|
this.options = opts;
|
|
33146
|
-
this.path =
|
|
33146
|
+
this.path = path49;
|
|
33147
33147
|
this.req = req;
|
|
33148
33148
|
this._acceptRanges = opts.acceptRanges !== void 0 ? Boolean(opts.acceptRanges) : true;
|
|
33149
33149
|
this._cacheControl = opts.cacheControl !== void 0 ? Boolean(opts.cacheControl) : true;
|
|
@@ -33189,8 +33189,8 @@ var require_send = __commonJS({
|
|
|
33189
33189
|
this._index = index3;
|
|
33190
33190
|
return this;
|
|
33191
33191
|
}, "send.index: pass index as option");
|
|
33192
|
-
SendStream.prototype.root = function root7(
|
|
33193
|
-
this._root = resolve24(String(
|
|
33192
|
+
SendStream.prototype.root = function root7(path49) {
|
|
33193
|
+
this._root = resolve24(String(path49));
|
|
33194
33194
|
debug("root %s", this._root);
|
|
33195
33195
|
return this;
|
|
33196
33196
|
};
|
|
@@ -33303,10 +33303,10 @@ var require_send = __commonJS({
|
|
|
33303
33303
|
var lastModified = this.res.getHeader("Last-Modified");
|
|
33304
33304
|
return parseHttpDate(lastModified) <= parseHttpDate(ifRange);
|
|
33305
33305
|
};
|
|
33306
|
-
SendStream.prototype.redirect = function redirect(
|
|
33306
|
+
SendStream.prototype.redirect = function redirect(path49) {
|
|
33307
33307
|
var res = this.res;
|
|
33308
33308
|
if (hasListeners(this, "directory")) {
|
|
33309
|
-
this.emit("directory", res,
|
|
33309
|
+
this.emit("directory", res, path49);
|
|
33310
33310
|
return;
|
|
33311
33311
|
}
|
|
33312
33312
|
if (this.hasTrailingSlash()) {
|
|
@@ -33326,42 +33326,42 @@ var require_send = __commonJS({
|
|
|
33326
33326
|
SendStream.prototype.pipe = function pipe2(res) {
|
|
33327
33327
|
var root7 = this._root;
|
|
33328
33328
|
this.res = res;
|
|
33329
|
-
var
|
|
33330
|
-
if (
|
|
33329
|
+
var path49 = decode2(this.path);
|
|
33330
|
+
if (path49 === -1) {
|
|
33331
33331
|
this.error(400);
|
|
33332
33332
|
return res;
|
|
33333
33333
|
}
|
|
33334
|
-
if (~
|
|
33334
|
+
if (~path49.indexOf("\0")) {
|
|
33335
33335
|
this.error(400);
|
|
33336
33336
|
return res;
|
|
33337
33337
|
}
|
|
33338
33338
|
var parts;
|
|
33339
33339
|
if (root7 !== null) {
|
|
33340
|
-
if (
|
|
33341
|
-
|
|
33340
|
+
if (path49) {
|
|
33341
|
+
path49 = normalize8("." + sep11 + path49);
|
|
33342
33342
|
}
|
|
33343
|
-
if (UP_PATH_REGEXP.test(
|
|
33344
|
-
debug('malicious path "%s"',
|
|
33343
|
+
if (UP_PATH_REGEXP.test(path49)) {
|
|
33344
|
+
debug('malicious path "%s"', path49);
|
|
33345
33345
|
this.error(403);
|
|
33346
33346
|
return res;
|
|
33347
33347
|
}
|
|
33348
|
-
parts =
|
|
33349
|
-
|
|
33348
|
+
parts = path49.split(sep11);
|
|
33349
|
+
path49 = normalize8(join31(root7, path49));
|
|
33350
33350
|
} else {
|
|
33351
|
-
if (UP_PATH_REGEXP.test(
|
|
33352
|
-
debug('malicious path "%s"',
|
|
33351
|
+
if (UP_PATH_REGEXP.test(path49)) {
|
|
33352
|
+
debug('malicious path "%s"', path49);
|
|
33353
33353
|
this.error(403);
|
|
33354
33354
|
return res;
|
|
33355
33355
|
}
|
|
33356
|
-
parts = normalize8(
|
|
33357
|
-
|
|
33356
|
+
parts = normalize8(path49).split(sep11);
|
|
33357
|
+
path49 = resolve24(path49);
|
|
33358
33358
|
}
|
|
33359
33359
|
if (containsDotFile(parts)) {
|
|
33360
33360
|
var access = this._dotfiles;
|
|
33361
33361
|
if (access === void 0) {
|
|
33362
33362
|
access = parts[parts.length - 1][0] === "." ? this._hidden ? "allow" : "ignore" : "allow";
|
|
33363
33363
|
}
|
|
33364
|
-
debug('%s dotfile "%s"', access,
|
|
33364
|
+
debug('%s dotfile "%s"', access, path49);
|
|
33365
33365
|
switch (access) {
|
|
33366
33366
|
case "allow":
|
|
33367
33367
|
break;
|
|
@@ -33375,13 +33375,13 @@ var require_send = __commonJS({
|
|
|
33375
33375
|
}
|
|
33376
33376
|
}
|
|
33377
33377
|
if (this._index.length && this.hasTrailingSlash()) {
|
|
33378
|
-
this.sendIndex(
|
|
33378
|
+
this.sendIndex(path49);
|
|
33379
33379
|
return res;
|
|
33380
33380
|
}
|
|
33381
|
-
this.sendFile(
|
|
33381
|
+
this.sendFile(path49);
|
|
33382
33382
|
return res;
|
|
33383
33383
|
};
|
|
33384
|
-
SendStream.prototype.send = function send2(
|
|
33384
|
+
SendStream.prototype.send = function send2(path49, stat3) {
|
|
33385
33385
|
var len = stat3.size;
|
|
33386
33386
|
var options = this.options;
|
|
33387
33387
|
var opts = {};
|
|
@@ -33393,9 +33393,9 @@ var require_send = __commonJS({
|
|
|
33393
33393
|
this.headersAlreadySent();
|
|
33394
33394
|
return;
|
|
33395
33395
|
}
|
|
33396
|
-
debug('pipe "%s"',
|
|
33397
|
-
this.setHeader(
|
|
33398
|
-
this.type(
|
|
33396
|
+
debug('pipe "%s"', path49);
|
|
33397
|
+
this.setHeader(path49, stat3);
|
|
33398
|
+
this.type(path49);
|
|
33399
33399
|
if (this.isConditionalGET()) {
|
|
33400
33400
|
if (this.isPreconditionFailure()) {
|
|
33401
33401
|
this.error(412);
|
|
@@ -33444,28 +33444,28 @@ var require_send = __commonJS({
|
|
|
33444
33444
|
res.end();
|
|
33445
33445
|
return;
|
|
33446
33446
|
}
|
|
33447
|
-
this.stream(
|
|
33447
|
+
this.stream(path49, opts);
|
|
33448
33448
|
};
|
|
33449
|
-
SendStream.prototype.sendFile = function sendFile(
|
|
33449
|
+
SendStream.prototype.sendFile = function sendFile(path49) {
|
|
33450
33450
|
var i = 0;
|
|
33451
33451
|
var self2 = this;
|
|
33452
|
-
debug('stat "%s"',
|
|
33453
|
-
|
|
33454
|
-
if (err && err.code === "ENOENT" && !extname4(
|
|
33452
|
+
debug('stat "%s"', path49);
|
|
33453
|
+
fs44.stat(path49, function onstat(err, stat3) {
|
|
33454
|
+
if (err && err.code === "ENOENT" && !extname4(path49) && path49[path49.length - 1] !== sep11) {
|
|
33455
33455
|
return next2(err);
|
|
33456
33456
|
}
|
|
33457
33457
|
if (err) return self2.onStatError(err);
|
|
33458
|
-
if (stat3.isDirectory()) return self2.redirect(
|
|
33459
|
-
self2.emit("file",
|
|
33460
|
-
self2.send(
|
|
33458
|
+
if (stat3.isDirectory()) return self2.redirect(path49);
|
|
33459
|
+
self2.emit("file", path49, stat3);
|
|
33460
|
+
self2.send(path49, stat3);
|
|
33461
33461
|
});
|
|
33462
33462
|
function next2(err) {
|
|
33463
33463
|
if (self2._extensions.length <= i) {
|
|
33464
33464
|
return err ? self2.onStatError(err) : self2.error(404);
|
|
33465
33465
|
}
|
|
33466
|
-
var p2 =
|
|
33466
|
+
var p2 = path49 + "." + self2._extensions[i++];
|
|
33467
33467
|
debug('stat "%s"', p2);
|
|
33468
|
-
|
|
33468
|
+
fs44.stat(p2, function(err2, stat3) {
|
|
33469
33469
|
if (err2) return next2(err2);
|
|
33470
33470
|
if (stat3.isDirectory()) return next2();
|
|
33471
33471
|
self2.emit("file", p2, stat3);
|
|
@@ -33473,7 +33473,7 @@ var require_send = __commonJS({
|
|
|
33473
33473
|
});
|
|
33474
33474
|
}
|
|
33475
33475
|
};
|
|
33476
|
-
SendStream.prototype.sendIndex = function sendIndex(
|
|
33476
|
+
SendStream.prototype.sendIndex = function sendIndex(path49) {
|
|
33477
33477
|
var i = -1;
|
|
33478
33478
|
var self2 = this;
|
|
33479
33479
|
function next2(err) {
|
|
@@ -33481,9 +33481,9 @@ var require_send = __commonJS({
|
|
|
33481
33481
|
if (err) return self2.onStatError(err);
|
|
33482
33482
|
return self2.error(404);
|
|
33483
33483
|
}
|
|
33484
|
-
var p2 = join31(
|
|
33484
|
+
var p2 = join31(path49, self2._index[i]);
|
|
33485
33485
|
debug('stat "%s"', p2);
|
|
33486
|
-
|
|
33486
|
+
fs44.stat(p2, function(err2, stat3) {
|
|
33487
33487
|
if (err2) return next2(err2);
|
|
33488
33488
|
if (stat3.isDirectory()) return next2();
|
|
33489
33489
|
self2.emit("file", p2, stat3);
|
|
@@ -33492,10 +33492,10 @@ var require_send = __commonJS({
|
|
|
33492
33492
|
}
|
|
33493
33493
|
next2();
|
|
33494
33494
|
};
|
|
33495
|
-
SendStream.prototype.stream = function stream(
|
|
33495
|
+
SendStream.prototype.stream = function stream(path49, options) {
|
|
33496
33496
|
var self2 = this;
|
|
33497
33497
|
var res = this.res;
|
|
33498
|
-
var stream2 =
|
|
33498
|
+
var stream2 = fs44.createReadStream(path49, options);
|
|
33499
33499
|
this.emit("stream", stream2);
|
|
33500
33500
|
stream2.pipe(res);
|
|
33501
33501
|
function cleanup() {
|
|
@@ -33510,10 +33510,10 @@ var require_send = __commonJS({
|
|
|
33510
33510
|
self2.emit("end");
|
|
33511
33511
|
});
|
|
33512
33512
|
};
|
|
33513
|
-
SendStream.prototype.type = function type(
|
|
33513
|
+
SendStream.prototype.type = function type(path49) {
|
|
33514
33514
|
var res = this.res;
|
|
33515
33515
|
if (res.getHeader("Content-Type")) return;
|
|
33516
|
-
var type2 = mime.lookup(
|
|
33516
|
+
var type2 = mime.lookup(path49);
|
|
33517
33517
|
if (!type2) {
|
|
33518
33518
|
debug("no content-type");
|
|
33519
33519
|
return;
|
|
@@ -33522,9 +33522,9 @@ var require_send = __commonJS({
|
|
|
33522
33522
|
debug("content-type %s", type2);
|
|
33523
33523
|
res.setHeader("Content-Type", type2 + (charset ? "; charset=" + charset : ""));
|
|
33524
33524
|
};
|
|
33525
|
-
SendStream.prototype.setHeader = function setHeader(
|
|
33525
|
+
SendStream.prototype.setHeader = function setHeader(path49, stat3) {
|
|
33526
33526
|
var res = this.res;
|
|
33527
|
-
this.emit("headers", res,
|
|
33527
|
+
this.emit("headers", res, path49, stat3);
|
|
33528
33528
|
if (this._acceptRanges && !res.getHeader("Accept-Ranges")) {
|
|
33529
33529
|
debug("accept ranges");
|
|
33530
33530
|
res.setHeader("Accept-Ranges", "bytes");
|
|
@@ -33583,9 +33583,9 @@ var require_send = __commonJS({
|
|
|
33583
33583
|
}
|
|
33584
33584
|
return err instanceof Error ? createError(status, err, { expose: false }) : createError(status, err);
|
|
33585
33585
|
}
|
|
33586
|
-
function decode2(
|
|
33586
|
+
function decode2(path49) {
|
|
33587
33587
|
try {
|
|
33588
|
-
return decodeURIComponent(
|
|
33588
|
+
return decodeURIComponent(path49);
|
|
33589
33589
|
} catch (err) {
|
|
33590
33590
|
return -1;
|
|
33591
33591
|
}
|
|
@@ -34499,10 +34499,10 @@ var require_utils2 = __commonJS({
|
|
|
34499
34499
|
var querystring = require("querystring");
|
|
34500
34500
|
exports2.etag = createETagGenerator({ weak: false });
|
|
34501
34501
|
exports2.wetag = createETagGenerator({ weak: true });
|
|
34502
|
-
exports2.isAbsolute = function(
|
|
34503
|
-
if ("/" ===
|
|
34504
|
-
if (":" ===
|
|
34505
|
-
if ("\\\\" ===
|
|
34502
|
+
exports2.isAbsolute = function(path48) {
|
|
34503
|
+
if ("/" === path48[0]) return true;
|
|
34504
|
+
if (":" === path48[1] && ("\\" === path48[2] || "/" === path48[2])) return true;
|
|
34505
|
+
if ("\\\\" === path48.substring(0, 2)) return true;
|
|
34506
34506
|
};
|
|
34507
34507
|
exports2.flatten = deprecate.function(
|
|
34508
34508
|
flatten,
|
|
@@ -34714,7 +34714,7 @@ var require_application = __commonJS({
|
|
|
34714
34714
|
};
|
|
34715
34715
|
app.use = function use(fn) {
|
|
34716
34716
|
var offset = 0;
|
|
34717
|
-
var
|
|
34717
|
+
var path48 = "/";
|
|
34718
34718
|
if (typeof fn !== "function") {
|
|
34719
34719
|
var arg = fn;
|
|
34720
34720
|
while (Array.isArray(arg) && arg.length !== 0) {
|
|
@@ -34722,7 +34722,7 @@ var require_application = __commonJS({
|
|
|
34722
34722
|
}
|
|
34723
34723
|
if (typeof arg !== "function") {
|
|
34724
34724
|
offset = 1;
|
|
34725
|
-
|
|
34725
|
+
path48 = fn;
|
|
34726
34726
|
}
|
|
34727
34727
|
}
|
|
34728
34728
|
var fns = flatten(slice.call(arguments, offset));
|
|
@@ -34733,12 +34733,12 @@ var require_application = __commonJS({
|
|
|
34733
34733
|
var router = this._router;
|
|
34734
34734
|
fns.forEach(function(fn2) {
|
|
34735
34735
|
if (!fn2 || !fn2.handle || !fn2.set) {
|
|
34736
|
-
return router.use(
|
|
34736
|
+
return router.use(path48, fn2);
|
|
34737
34737
|
}
|
|
34738
|
-
debug(".use app under %s",
|
|
34739
|
-
fn2.mountpath =
|
|
34738
|
+
debug(".use app under %s", path48);
|
|
34739
|
+
fn2.mountpath = path48;
|
|
34740
34740
|
fn2.parent = this;
|
|
34741
|
-
router.use(
|
|
34741
|
+
router.use(path48, function mounted_app(req, res, next2) {
|
|
34742
34742
|
var orig = req.app;
|
|
34743
34743
|
fn2.handle(req, res, function(err) {
|
|
34744
34744
|
setPrototypeOf(req, orig.request);
|
|
@@ -34750,9 +34750,9 @@ var require_application = __commonJS({
|
|
|
34750
34750
|
}, this);
|
|
34751
34751
|
return this;
|
|
34752
34752
|
};
|
|
34753
|
-
app.route = function route(
|
|
34753
|
+
app.route = function route(path48) {
|
|
34754
34754
|
this.lazyrouter();
|
|
34755
|
-
return this._router.route(
|
|
34755
|
+
return this._router.route(path48);
|
|
34756
34756
|
};
|
|
34757
34757
|
app.engine = function engine(ext, fn) {
|
|
34758
34758
|
if (typeof fn !== "function") {
|
|
@@ -34803,7 +34803,7 @@ var require_application = __commonJS({
|
|
|
34803
34803
|
}
|
|
34804
34804
|
return this;
|
|
34805
34805
|
};
|
|
34806
|
-
app.path = function
|
|
34806
|
+
app.path = function path48() {
|
|
34807
34807
|
return this.parent ? this.parent.path() + this.mountpath : "";
|
|
34808
34808
|
};
|
|
34809
34809
|
app.enabled = function enabled2(setting) {
|
|
@@ -34819,19 +34819,19 @@ var require_application = __commonJS({
|
|
|
34819
34819
|
return this.set(setting, false);
|
|
34820
34820
|
};
|
|
34821
34821
|
methods.forEach(function(method) {
|
|
34822
|
-
app[method] = function(
|
|
34822
|
+
app[method] = function(path48) {
|
|
34823
34823
|
if (method === "get" && arguments.length === 1) {
|
|
34824
|
-
return this.set(
|
|
34824
|
+
return this.set(path48);
|
|
34825
34825
|
}
|
|
34826
34826
|
this.lazyrouter();
|
|
34827
|
-
var route = this._router.route(
|
|
34827
|
+
var route = this._router.route(path48);
|
|
34828
34828
|
route[method].apply(route, slice.call(arguments, 1));
|
|
34829
34829
|
return this;
|
|
34830
34830
|
};
|
|
34831
34831
|
});
|
|
34832
|
-
app.all = function all6(
|
|
34832
|
+
app.all = function all6(path48) {
|
|
34833
34833
|
this.lazyrouter();
|
|
34834
|
-
var route = this._router.route(
|
|
34834
|
+
var route = this._router.route(path48);
|
|
34835
34835
|
var args = slice.call(arguments, 1);
|
|
34836
34836
|
for (var i = 0; i < methods.length; i++) {
|
|
34837
34837
|
route[methods[i]].apply(route, args);
|
|
@@ -35597,7 +35597,7 @@ var require_request = __commonJS({
|
|
|
35597
35597
|
var subdomains2 = !isIP(hostname6) ? hostname6.split(".").reverse() : [hostname6];
|
|
35598
35598
|
return subdomains2.slice(offset);
|
|
35599
35599
|
});
|
|
35600
|
-
defineGetter(req, "path", function
|
|
35600
|
+
defineGetter(req, "path", function path48() {
|
|
35601
35601
|
return parse9(this).pathname;
|
|
35602
35602
|
});
|
|
35603
35603
|
defineGetter(req, "hostname", function hostname6() {
|
|
@@ -35924,7 +35924,7 @@ var require_response = __commonJS({
|
|
|
35924
35924
|
var http6 = require("http");
|
|
35925
35925
|
var isAbsolute13 = require_utils2().isAbsolute;
|
|
35926
35926
|
var onFinished = require_on_finished();
|
|
35927
|
-
var
|
|
35927
|
+
var path48 = require("path");
|
|
35928
35928
|
var statuses = require_statuses();
|
|
35929
35929
|
var merge4 = require_utils_merge();
|
|
35930
35930
|
var sign = require_cookie_signature().sign;
|
|
@@ -35933,9 +35933,9 @@ var require_response = __commonJS({
|
|
|
35933
35933
|
var setCharset = require_utils2().setCharset;
|
|
35934
35934
|
var cookie = require_cookie();
|
|
35935
35935
|
var send = require_send();
|
|
35936
|
-
var extname4 =
|
|
35936
|
+
var extname4 = path48.extname;
|
|
35937
35937
|
var mime = send.mime;
|
|
35938
|
-
var resolve24 =
|
|
35938
|
+
var resolve24 = path48.resolve;
|
|
35939
35939
|
var vary = require_vary();
|
|
35940
35940
|
var res = Object.create(http6.ServerResponse.prototype);
|
|
35941
35941
|
module2.exports = res;
|
|
@@ -36112,26 +36112,26 @@ var require_response = __commonJS({
|
|
|
36112
36112
|
this.type("txt");
|
|
36113
36113
|
return this.send(body3);
|
|
36114
36114
|
};
|
|
36115
|
-
res.sendFile = function sendFile(
|
|
36115
|
+
res.sendFile = function sendFile(path49, options, callback) {
|
|
36116
36116
|
var done = callback;
|
|
36117
36117
|
var req = this.req;
|
|
36118
36118
|
var res2 = this;
|
|
36119
36119
|
var next2 = req.next;
|
|
36120
36120
|
var opts = options || {};
|
|
36121
|
-
if (!
|
|
36121
|
+
if (!path49) {
|
|
36122
36122
|
throw new TypeError("path argument is required to res.sendFile");
|
|
36123
36123
|
}
|
|
36124
|
-
if (typeof
|
|
36124
|
+
if (typeof path49 !== "string") {
|
|
36125
36125
|
throw new TypeError("path must be a string to res.sendFile");
|
|
36126
36126
|
}
|
|
36127
36127
|
if (typeof options === "function") {
|
|
36128
36128
|
done = options;
|
|
36129
36129
|
opts = {};
|
|
36130
36130
|
}
|
|
36131
|
-
if (!opts.root && !isAbsolute13(
|
|
36131
|
+
if (!opts.root && !isAbsolute13(path49)) {
|
|
36132
36132
|
throw new TypeError("path must be absolute or specify root to res.sendFile");
|
|
36133
36133
|
}
|
|
36134
|
-
var pathname = encodeURI(
|
|
36134
|
+
var pathname = encodeURI(path49);
|
|
36135
36135
|
var file = send(req, pathname, opts);
|
|
36136
36136
|
sendfile(res2, file, opts, function(err) {
|
|
36137
36137
|
if (done) return done(err);
|
|
@@ -36141,7 +36141,7 @@ var require_response = __commonJS({
|
|
|
36141
36141
|
}
|
|
36142
36142
|
});
|
|
36143
36143
|
};
|
|
36144
|
-
res.sendfile = function(
|
|
36144
|
+
res.sendfile = function(path49, options, callback) {
|
|
36145
36145
|
var done = callback;
|
|
36146
36146
|
var req = this.req;
|
|
36147
36147
|
var res2 = this;
|
|
@@ -36151,7 +36151,7 @@ var require_response = __commonJS({
|
|
|
36151
36151
|
done = options;
|
|
36152
36152
|
opts = {};
|
|
36153
36153
|
}
|
|
36154
|
-
var file = send(req,
|
|
36154
|
+
var file = send(req, path49, opts);
|
|
36155
36155
|
sendfile(res2, file, opts, function(err) {
|
|
36156
36156
|
if (done) return done(err);
|
|
36157
36157
|
if (err && err.code === "EISDIR") return next2();
|
|
@@ -36164,7 +36164,7 @@ var require_response = __commonJS({
|
|
|
36164
36164
|
res.sendfile,
|
|
36165
36165
|
"res.sendfile: Use res.sendFile instead"
|
|
36166
36166
|
);
|
|
36167
|
-
res.download = function download(
|
|
36167
|
+
res.download = function download(path49, filename, options, callback) {
|
|
36168
36168
|
var done = callback;
|
|
36169
36169
|
var name2 = filename;
|
|
36170
36170
|
var opts = options || null;
|
|
@@ -36181,7 +36181,7 @@ var require_response = __commonJS({
|
|
|
36181
36181
|
opts = filename;
|
|
36182
36182
|
}
|
|
36183
36183
|
var headers = {
|
|
36184
|
-
"Content-Disposition": contentDisposition(name2 ||
|
|
36184
|
+
"Content-Disposition": contentDisposition(name2 || path49)
|
|
36185
36185
|
};
|
|
36186
36186
|
if (opts && opts.headers) {
|
|
36187
36187
|
var keys2 = Object.keys(opts.headers);
|
|
@@ -36194,7 +36194,7 @@ var require_response = __commonJS({
|
|
|
36194
36194
|
}
|
|
36195
36195
|
opts = Object.create(opts);
|
|
36196
36196
|
opts.headers = headers;
|
|
36197
|
-
var fullPath = !opts.root ? resolve24(
|
|
36197
|
+
var fullPath = !opts.root ? resolve24(path49) : path49;
|
|
36198
36198
|
return this.sendFile(fullPath, opts, done);
|
|
36199
36199
|
};
|
|
36200
36200
|
res.contentType = res.type = function contentType(type) {
|
|
@@ -36496,11 +36496,11 @@ var require_serve_static = __commonJS({
|
|
|
36496
36496
|
}
|
|
36497
36497
|
var forwardError = !fallthrough;
|
|
36498
36498
|
var originalUrl = parseUrl.original(req);
|
|
36499
|
-
var
|
|
36500
|
-
if (
|
|
36501
|
-
|
|
36499
|
+
var path48 = parseUrl(req).pathname;
|
|
36500
|
+
if (path48 === "/" && originalUrl.pathname.substr(-1) !== "/") {
|
|
36501
|
+
path48 = "";
|
|
36502
36502
|
}
|
|
36503
|
-
var stream = send(req,
|
|
36503
|
+
var stream = send(req, path48, opts);
|
|
36504
36504
|
stream.on("directory", onDirectory);
|
|
36505
36505
|
if (setHeaders) {
|
|
36506
36506
|
stream.on("headers", setHeaders);
|
|
@@ -36565,7 +36565,7 @@ var require_express = __commonJS({
|
|
|
36565
36565
|
"use strict";
|
|
36566
36566
|
init_cjs_shims();
|
|
36567
36567
|
var bodyParser = require_body_parser();
|
|
36568
|
-
var
|
|
36568
|
+
var EventEmitter3 = require("events").EventEmitter;
|
|
36569
36569
|
var mixin = require_merge_descriptors();
|
|
36570
36570
|
var proto2 = require_application();
|
|
36571
36571
|
var Route = require_route();
|
|
@@ -36577,7 +36577,7 @@ var require_express = __commonJS({
|
|
|
36577
36577
|
var app = function(req2, res2, next2) {
|
|
36578
36578
|
app.handle(req2, res2, next2);
|
|
36579
36579
|
};
|
|
36580
|
-
mixin(app,
|
|
36580
|
+
mixin(app, EventEmitter3.prototype, false);
|
|
36581
36581
|
mixin(app, proto2, false);
|
|
36582
36582
|
app.request = Object.create(req, {
|
|
36583
36583
|
app: { configurable: true, enumerable: true, writable: true, value: app }
|
|
@@ -36840,10 +36840,10 @@ function assignProp(target, prop, value) {
|
|
|
36840
36840
|
configurable: true
|
|
36841
36841
|
});
|
|
36842
36842
|
}
|
|
36843
|
-
function getElementAtPath(obj,
|
|
36844
|
-
if (!
|
|
36843
|
+
function getElementAtPath(obj, path48) {
|
|
36844
|
+
if (!path48)
|
|
36845
36845
|
return obj;
|
|
36846
|
-
return
|
|
36846
|
+
return path48.reduce((acc, key2) => acc?.[key2], obj);
|
|
36847
36847
|
}
|
|
36848
36848
|
function promiseAllObject(promisesObj) {
|
|
36849
36849
|
const keys2 = Object.keys(promisesObj);
|
|
@@ -37092,11 +37092,11 @@ function aborted(x, startIndex = 0) {
|
|
|
37092
37092
|
}
|
|
37093
37093
|
return false;
|
|
37094
37094
|
}
|
|
37095
|
-
function prefixIssues(
|
|
37095
|
+
function prefixIssues(path48, issues) {
|
|
37096
37096
|
return issues.map((iss) => {
|
|
37097
37097
|
var _a2;
|
|
37098
37098
|
(_a2 = iss).path ?? (_a2.path = []);
|
|
37099
|
-
iss.path.unshift(
|
|
37099
|
+
iss.path.unshift(path48);
|
|
37100
37100
|
return iss;
|
|
37101
37101
|
});
|
|
37102
37102
|
}
|
|
@@ -46942,8 +46942,8 @@ var require_utils3 = __commonJS({
|
|
|
46942
46942
|
}
|
|
46943
46943
|
return ind;
|
|
46944
46944
|
}
|
|
46945
|
-
function removeDotSegments(
|
|
46946
|
-
let input =
|
|
46945
|
+
function removeDotSegments(path48) {
|
|
46946
|
+
let input = path48;
|
|
46947
46947
|
const output = [];
|
|
46948
46948
|
let nextSlash = -1;
|
|
46949
46949
|
let len = 0;
|
|
@@ -47196,8 +47196,8 @@ var require_schemes = __commonJS({
|
|
|
47196
47196
|
wsComponent.secure = void 0;
|
|
47197
47197
|
}
|
|
47198
47198
|
if (wsComponent.resourceName) {
|
|
47199
|
-
const [
|
|
47200
|
-
wsComponent.path =
|
|
47199
|
+
const [path48, query] = wsComponent.resourceName.split("?");
|
|
47200
|
+
wsComponent.path = path48 && path48 !== "/" ? path48 : void 0;
|
|
47201
47201
|
wsComponent.query = query;
|
|
47202
47202
|
wsComponent.resourceName = void 0;
|
|
47203
47203
|
}
|
|
@@ -50636,12 +50636,12 @@ var require_dist4 = __commonJS({
|
|
|
50636
50636
|
throw new Error(`Unknown format "${name2}"`);
|
|
50637
50637
|
return f;
|
|
50638
50638
|
};
|
|
50639
|
-
function addFormats(ajv, list4,
|
|
50639
|
+
function addFormats(ajv, list4, fs44, exportName) {
|
|
50640
50640
|
var _a2;
|
|
50641
50641
|
var _b;
|
|
50642
50642
|
(_a2 = (_b = ajv.opts.code).formats) !== null && _a2 !== void 0 ? _a2 : _b.formats = (0, codegen_1._)`require("ajv-formats/dist/formats").${exportName}`;
|
|
50643
50643
|
for (const f of list4)
|
|
50644
|
-
ajv.addFormat(f,
|
|
50644
|
+
ajv.addFormat(f, fs44[f]);
|
|
50645
50645
|
}
|
|
50646
50646
|
module2.exports = exports2 = formatsPlugin;
|
|
50647
50647
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -51472,8 +51472,8 @@ var require_windows = __commonJS({
|
|
|
51472
51472
|
init_cjs_shims();
|
|
51473
51473
|
module2.exports = isexe;
|
|
51474
51474
|
isexe.sync = sync;
|
|
51475
|
-
var
|
|
51476
|
-
function checkPathExt(
|
|
51475
|
+
var fs44 = require("fs");
|
|
51476
|
+
function checkPathExt(path48, options) {
|
|
51477
51477
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
51478
51478
|
if (!pathext) {
|
|
51479
51479
|
return true;
|
|
@@ -51484,25 +51484,25 @@ var require_windows = __commonJS({
|
|
|
51484
51484
|
}
|
|
51485
51485
|
for (var i = 0; i < pathext.length; i++) {
|
|
51486
51486
|
var p2 = pathext[i].toLowerCase();
|
|
51487
|
-
if (p2 &&
|
|
51487
|
+
if (p2 && path48.substr(-p2.length).toLowerCase() === p2) {
|
|
51488
51488
|
return true;
|
|
51489
51489
|
}
|
|
51490
51490
|
}
|
|
51491
51491
|
return false;
|
|
51492
51492
|
}
|
|
51493
|
-
function checkStat(stat3,
|
|
51493
|
+
function checkStat(stat3, path48, options) {
|
|
51494
51494
|
if (!stat3.isSymbolicLink() && !stat3.isFile()) {
|
|
51495
51495
|
return false;
|
|
51496
51496
|
}
|
|
51497
|
-
return checkPathExt(
|
|
51497
|
+
return checkPathExt(path48, options);
|
|
51498
51498
|
}
|
|
51499
|
-
function isexe(
|
|
51500
|
-
|
|
51501
|
-
cb(er, er ? false : checkStat(stat3,
|
|
51499
|
+
function isexe(path48, options, cb) {
|
|
51500
|
+
fs44.stat(path48, function(er, stat3) {
|
|
51501
|
+
cb(er, er ? false : checkStat(stat3, path48, options));
|
|
51502
51502
|
});
|
|
51503
51503
|
}
|
|
51504
|
-
function sync(
|
|
51505
|
-
return checkStat(
|
|
51504
|
+
function sync(path48, options) {
|
|
51505
|
+
return checkStat(fs44.statSync(path48), path48, options);
|
|
51506
51506
|
}
|
|
51507
51507
|
}
|
|
51508
51508
|
});
|
|
@@ -51514,14 +51514,14 @@ var require_mode = __commonJS({
|
|
|
51514
51514
|
init_cjs_shims();
|
|
51515
51515
|
module2.exports = isexe;
|
|
51516
51516
|
isexe.sync = sync;
|
|
51517
|
-
var
|
|
51518
|
-
function isexe(
|
|
51519
|
-
|
|
51517
|
+
var fs44 = require("fs");
|
|
51518
|
+
function isexe(path48, options, cb) {
|
|
51519
|
+
fs44.stat(path48, function(er, stat3) {
|
|
51520
51520
|
cb(er, er ? false : checkStat(stat3, options));
|
|
51521
51521
|
});
|
|
51522
51522
|
}
|
|
51523
|
-
function sync(
|
|
51524
|
-
return checkStat(
|
|
51523
|
+
function sync(path48, options) {
|
|
51524
|
+
return checkStat(fs44.statSync(path48), options);
|
|
51525
51525
|
}
|
|
51526
51526
|
function checkStat(stat3, options) {
|
|
51527
51527
|
return stat3.isFile() && checkMode(stat3, options);
|
|
@@ -51547,7 +51547,7 @@ var require_isexe = __commonJS({
|
|
|
51547
51547
|
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports2, module2) {
|
|
51548
51548
|
"use strict";
|
|
51549
51549
|
init_cjs_shims();
|
|
51550
|
-
var
|
|
51550
|
+
var fs44 = require("fs");
|
|
51551
51551
|
var core2;
|
|
51552
51552
|
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
51553
51553
|
core2 = require_windows();
|
|
@@ -51556,7 +51556,7 @@ var require_isexe = __commonJS({
|
|
|
51556
51556
|
}
|
|
51557
51557
|
module2.exports = isexe;
|
|
51558
51558
|
isexe.sync = sync;
|
|
51559
|
-
function isexe(
|
|
51559
|
+
function isexe(path48, options, cb) {
|
|
51560
51560
|
if (typeof options === "function") {
|
|
51561
51561
|
cb = options;
|
|
51562
51562
|
options = {};
|
|
@@ -51566,7 +51566,7 @@ var require_isexe = __commonJS({
|
|
|
51566
51566
|
throw new TypeError("callback not provided");
|
|
51567
51567
|
}
|
|
51568
51568
|
return new Promise(function(resolve24, reject) {
|
|
51569
|
-
isexe(
|
|
51569
|
+
isexe(path48, options || {}, function(er, is2) {
|
|
51570
51570
|
if (er) {
|
|
51571
51571
|
reject(er);
|
|
51572
51572
|
} else {
|
|
@@ -51575,7 +51575,7 @@ var require_isexe = __commonJS({
|
|
|
51575
51575
|
});
|
|
51576
51576
|
});
|
|
51577
51577
|
}
|
|
51578
|
-
core2(
|
|
51578
|
+
core2(path48, options || {}, function(er, is2) {
|
|
51579
51579
|
if (er) {
|
|
51580
51580
|
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
51581
51581
|
er = null;
|
|
@@ -51585,9 +51585,9 @@ var require_isexe = __commonJS({
|
|
|
51585
51585
|
cb(er, is2);
|
|
51586
51586
|
});
|
|
51587
51587
|
}
|
|
51588
|
-
function sync(
|
|
51588
|
+
function sync(path48, options) {
|
|
51589
51589
|
try {
|
|
51590
|
-
return core2.sync(
|
|
51590
|
+
return core2.sync(path48, options || {});
|
|
51591
51591
|
} catch (er) {
|
|
51592
51592
|
if (options && options.ignoreErrors || er.code === "EACCES") {
|
|
51593
51593
|
return false;
|
|
@@ -51605,7 +51605,7 @@ var require_which = __commonJS({
|
|
|
51605
51605
|
"use strict";
|
|
51606
51606
|
init_cjs_shims();
|
|
51607
51607
|
var isWindows3 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
51608
|
-
var
|
|
51608
|
+
var path48 = require("path");
|
|
51609
51609
|
var COLON = isWindows3 ? ";" : ":";
|
|
51610
51610
|
var isexe = require_isexe();
|
|
51611
51611
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -51643,7 +51643,7 @@ var require_which = __commonJS({
|
|
|
51643
51643
|
return opt.all && found.length ? resolve24(found) : reject(getNotFoundError(cmd));
|
|
51644
51644
|
const ppRaw = pathEnv[i];
|
|
51645
51645
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
51646
|
-
const pCmd =
|
|
51646
|
+
const pCmd = path48.join(pathPart, cmd);
|
|
51647
51647
|
const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
51648
51648
|
resolve24(subStep(p2, i, 0));
|
|
51649
51649
|
});
|
|
@@ -51670,7 +51670,7 @@ var require_which = __commonJS({
|
|
|
51670
51670
|
for (let i = 0; i < pathEnv.length; i++) {
|
|
51671
51671
|
const ppRaw = pathEnv[i];
|
|
51672
51672
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
51673
|
-
const pCmd =
|
|
51673
|
+
const pCmd = path48.join(pathPart, cmd);
|
|
51674
51674
|
const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
51675
51675
|
for (let j = 0; j < pathExt.length; j++) {
|
|
51676
51676
|
const cur = p2 + pathExt[j];
|
|
@@ -51720,7 +51720,7 @@ var require_resolveCommand = __commonJS({
|
|
|
51720
51720
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
|
|
51721
51721
|
"use strict";
|
|
51722
51722
|
init_cjs_shims();
|
|
51723
|
-
var
|
|
51723
|
+
var path48 = require("path");
|
|
51724
51724
|
var which = require_which();
|
|
51725
51725
|
var getPathKey = require_path_key();
|
|
51726
51726
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -51738,7 +51738,7 @@ var require_resolveCommand = __commonJS({
|
|
|
51738
51738
|
try {
|
|
51739
51739
|
resolved = which.sync(parsed.command, {
|
|
51740
51740
|
path: env4[getPathKey({ env: env4 })],
|
|
51741
|
-
pathExt: withoutPathExt ?
|
|
51741
|
+
pathExt: withoutPathExt ? path48.delimiter : void 0
|
|
51742
51742
|
});
|
|
51743
51743
|
} catch (e) {
|
|
51744
51744
|
} finally {
|
|
@@ -51747,7 +51747,7 @@ var require_resolveCommand = __commonJS({
|
|
|
51747
51747
|
}
|
|
51748
51748
|
}
|
|
51749
51749
|
if (resolved) {
|
|
51750
|
-
resolved =
|
|
51750
|
+
resolved = path48.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
51751
51751
|
}
|
|
51752
51752
|
return resolved;
|
|
51753
51753
|
}
|
|
@@ -51804,8 +51804,8 @@ var require_shebang_command = __commonJS({
|
|
|
51804
51804
|
if (!match) {
|
|
51805
51805
|
return null;
|
|
51806
51806
|
}
|
|
51807
|
-
const [
|
|
51808
|
-
const binary =
|
|
51807
|
+
const [path48, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
51808
|
+
const binary = path48.split("/").pop();
|
|
51809
51809
|
if (binary === "env") {
|
|
51810
51810
|
return argument;
|
|
51811
51811
|
}
|
|
@@ -51819,16 +51819,16 @@ var require_readShebang = __commonJS({
|
|
|
51819
51819
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
|
|
51820
51820
|
"use strict";
|
|
51821
51821
|
init_cjs_shims();
|
|
51822
|
-
var
|
|
51822
|
+
var fs44 = require("fs");
|
|
51823
51823
|
var shebangCommand = require_shebang_command();
|
|
51824
51824
|
function readShebang(command) {
|
|
51825
51825
|
const size = 150;
|
|
51826
51826
|
const buffer = Buffer.alloc(size);
|
|
51827
51827
|
let fd;
|
|
51828
51828
|
try {
|
|
51829
|
-
fd =
|
|
51830
|
-
|
|
51831
|
-
|
|
51829
|
+
fd = fs44.openSync(command, "r");
|
|
51830
|
+
fs44.readSync(fd, buffer, 0, size, 0);
|
|
51831
|
+
fs44.closeSync(fd);
|
|
51832
51832
|
} catch (e) {
|
|
51833
51833
|
}
|
|
51834
51834
|
return shebangCommand(buffer.toString());
|
|
@@ -51842,7 +51842,7 @@ var require_parse3 = __commonJS({
|
|
|
51842
51842
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
|
|
51843
51843
|
"use strict";
|
|
51844
51844
|
init_cjs_shims();
|
|
51845
|
-
var
|
|
51845
|
+
var path48 = require("path");
|
|
51846
51846
|
var resolveCommand = require_resolveCommand();
|
|
51847
51847
|
var escape2 = require_escape();
|
|
51848
51848
|
var readShebang = require_readShebang();
|
|
@@ -51867,7 +51867,7 @@ var require_parse3 = __commonJS({
|
|
|
51867
51867
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
51868
51868
|
if (parsed.options.forceShell || needsShell) {
|
|
51869
51869
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
51870
|
-
parsed.command =
|
|
51870
|
+
parsed.command = path48.normalize(parsed.command);
|
|
51871
51871
|
parsed.command = escape2.command(parsed.command);
|
|
51872
51872
|
parsed.args = parsed.args.map((arg) => escape2.argument(arg, needsDoubleEscapeMetaChars));
|
|
51873
51873
|
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
@@ -57936,9 +57936,9 @@ __export(getMachineId_linux_exports, {
|
|
|
57936
57936
|
});
|
|
57937
57937
|
async function getMachineId2() {
|
|
57938
57938
|
const paths = ["/etc/machine-id", "/var/lib/dbus/machine-id"];
|
|
57939
|
-
for (const
|
|
57939
|
+
for (const path48 of paths) {
|
|
57940
57940
|
try {
|
|
57941
|
-
const result = await import_fs.promises.readFile(
|
|
57941
|
+
const result = await import_fs.promises.readFile(path48, { encoding: "utf8" });
|
|
57942
57942
|
return result.trim();
|
|
57943
57943
|
} catch (e) {
|
|
57944
57944
|
diag2.debug(`error reading machine id: ${e}`);
|
|
@@ -58147,14 +58147,14 @@ var init_OSDetector = __esm({
|
|
|
58147
58147
|
});
|
|
58148
58148
|
|
|
58149
58149
|
// ../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/ProcessDetector.js
|
|
58150
|
-
var
|
|
58150
|
+
var os9, ProcessDetector, processDetector;
|
|
58151
58151
|
var init_ProcessDetector = __esm({
|
|
58152
58152
|
"../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/ProcessDetector.js"() {
|
|
58153
58153
|
"use strict";
|
|
58154
58154
|
init_cjs_shims();
|
|
58155
58155
|
init_esm8();
|
|
58156
58156
|
init_semconv2();
|
|
58157
|
-
|
|
58157
|
+
os9 = __toESM(require("os"));
|
|
58158
58158
|
ProcessDetector = class {
|
|
58159
58159
|
detect(_config) {
|
|
58160
58160
|
const attributes = {
|
|
@@ -58174,7 +58174,7 @@ var init_ProcessDetector = __esm({
|
|
|
58174
58174
|
attributes[ATTR_PROCESS_COMMAND] = process.argv[1];
|
|
58175
58175
|
}
|
|
58176
58176
|
try {
|
|
58177
|
-
const userInfo4 =
|
|
58177
|
+
const userInfo4 = os9.userInfo();
|
|
58178
58178
|
attributes[ATTR_PROCESS_OWNER] = userInfo4.username;
|
|
58179
58179
|
} catch (e) {
|
|
58180
58180
|
diag2.debug(`error obtaining process owner: ${e}`);
|
|
@@ -65395,19 +65395,19 @@ var require_module_details_from_path = __commonJS({
|
|
|
65395
65395
|
basedir += segments[i] + sep11;
|
|
65396
65396
|
}
|
|
65397
65397
|
}
|
|
65398
|
-
var
|
|
65398
|
+
var path48 = "";
|
|
65399
65399
|
var lastSegmentIndex = segments.length - 1;
|
|
65400
65400
|
for (var i2 = index2 + offset; i2 <= lastSegmentIndex; i2++) {
|
|
65401
65401
|
if (i2 === lastSegmentIndex) {
|
|
65402
|
-
|
|
65402
|
+
path48 += segments[i2];
|
|
65403
65403
|
} else {
|
|
65404
|
-
|
|
65404
|
+
path48 += segments[i2] + sep11;
|
|
65405
65405
|
}
|
|
65406
65406
|
}
|
|
65407
65407
|
return {
|
|
65408
65408
|
name: name2,
|
|
65409
65409
|
basedir,
|
|
65410
|
-
path:
|
|
65410
|
+
path: path48
|
|
65411
65411
|
};
|
|
65412
65412
|
};
|
|
65413
65413
|
}
|
|
@@ -65418,7 +65418,7 @@ var require_require_in_the_middle = __commonJS({
|
|
|
65418
65418
|
"../../node_modules/.pnpm/require-in-the-middle@8.0.1/node_modules/require-in-the-middle/index.js"(exports2, module2) {
|
|
65419
65419
|
"use strict";
|
|
65420
65420
|
init_cjs_shims();
|
|
65421
|
-
var
|
|
65421
|
+
var path48 = require("path");
|
|
65422
65422
|
var Module = require("module");
|
|
65423
65423
|
var debug = require_src()("require-in-the-middle");
|
|
65424
65424
|
var moduleDetailsFromPath = require_module_details_from_path();
|
|
@@ -65563,7 +65563,7 @@ var require_require_in_the_middle = __commonJS({
|
|
|
65563
65563
|
}
|
|
65564
65564
|
moduleName = filename;
|
|
65565
65565
|
} else if (hasWhitelist === true && modules.includes(filename)) {
|
|
65566
|
-
const parsedPath =
|
|
65566
|
+
const parsedPath = path48.parse(filename);
|
|
65567
65567
|
moduleName = parsedPath.name;
|
|
65568
65568
|
basedir = parsedPath.dir;
|
|
65569
65569
|
} else {
|
|
@@ -65601,7 +65601,7 @@ var require_require_in_the_middle = __commonJS({
|
|
|
65601
65601
|
}
|
|
65602
65602
|
if (res !== filename) {
|
|
65603
65603
|
if (internals === true) {
|
|
65604
|
-
moduleName = moduleName +
|
|
65604
|
+
moduleName = moduleName + path48.sep + path48.relative(basedir, filename);
|
|
65605
65605
|
debug("preparing to process require of internal file: %s", moduleName);
|
|
65606
65606
|
} else {
|
|
65607
65607
|
debug("ignoring require of non-main module file: %s", res);
|
|
@@ -65637,8 +65637,8 @@ var require_require_in_the_middle = __commonJS({
|
|
|
65637
65637
|
}
|
|
65638
65638
|
};
|
|
65639
65639
|
function resolveModuleName(stat3) {
|
|
65640
|
-
const normalizedPath =
|
|
65641
|
-
return
|
|
65640
|
+
const normalizedPath = path48.sep !== "/" ? stat3.path.split(path48.sep).join("/") : stat3.path;
|
|
65641
|
+
return path48.posix.join(stat3.name, normalizedPath).replace(normalize8, "");
|
|
65642
65642
|
}
|
|
65643
65643
|
}
|
|
65644
65644
|
});
|
|
@@ -65717,15 +65717,15 @@ var init_ModuleNameTrie = __esm({
|
|
|
65717
65717
|
|
|
65718
65718
|
// ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.218.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/RequireInTheMiddleSingleton.js
|
|
65719
65719
|
function normalizePathSeparators(moduleNameOrPath) {
|
|
65720
|
-
return
|
|
65720
|
+
return path38.sep !== ModuleNameSeparator ? moduleNameOrPath.split(path38.sep).join(ModuleNameSeparator) : moduleNameOrPath;
|
|
65721
65721
|
}
|
|
65722
|
-
var import_require_in_the_middle,
|
|
65722
|
+
var import_require_in_the_middle, path38, isMocha, RequireInTheMiddleSingleton;
|
|
65723
65723
|
var init_RequireInTheMiddleSingleton = __esm({
|
|
65724
65724
|
"../../node_modules/.pnpm/@opentelemetry+instrumentation@0.218.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/RequireInTheMiddleSingleton.js"() {
|
|
65725
65725
|
"use strict";
|
|
65726
65726
|
init_cjs_shims();
|
|
65727
65727
|
import_require_in_the_middle = __toESM(require_require_in_the_middle());
|
|
65728
|
-
|
|
65728
|
+
path38 = __toESM(require("path"));
|
|
65729
65729
|
init_ModuleNameTrie();
|
|
65730
65730
|
isMocha = [
|
|
65731
65731
|
"afterEach",
|
|
@@ -65850,7 +65850,7 @@ var require_import_in_the_middle = __commonJS({
|
|
|
65850
65850
|
"../../node_modules/.pnpm/import-in-the-middle@3.0.2/node_modules/import-in-the-middle/index.js"(exports2, module2) {
|
|
65851
65851
|
"use strict";
|
|
65852
65852
|
init_cjs_shims();
|
|
65853
|
-
var
|
|
65853
|
+
var path48 = require("path");
|
|
65854
65854
|
var moduleDetailsFromPath = require_module_details_from_path();
|
|
65855
65855
|
var { fileURLToPath: fileURLToPath3 } = require("url");
|
|
65856
65856
|
var { MessageChannel } = require("worker_threads");
|
|
@@ -65969,7 +65969,7 @@ var require_import_in_the_middle = __commonJS({
|
|
|
65969
65969
|
} else if (baseDir.endsWith(specifiers.get(loadUrl)) || isTurbopackSpecifier(specifiers.get(loadUrl), baseDir)) {
|
|
65970
65970
|
callHookFn(hookFn, namespace, name2, baseDir);
|
|
65971
65971
|
} else if (internals) {
|
|
65972
|
-
const internalPath = name2 +
|
|
65972
|
+
const internalPath = name2 + path48.sep + path48.relative(baseDir, filePath);
|
|
65973
65973
|
callHookFn(hookFn, namespace, internalPath, baseDir);
|
|
65974
65974
|
}
|
|
65975
65975
|
} else if (matchArg === specifier) {
|
|
@@ -66043,12 +66043,12 @@ function isSupported(supportedVersions, version3, includePrerelease) {
|
|
|
66043
66043
|
return satisfies(version3, supportedVersion, { includePrerelease });
|
|
66044
66044
|
});
|
|
66045
66045
|
}
|
|
66046
|
-
var
|
|
66046
|
+
var path39, import_util10, import_import_in_the_middle, import_require_in_the_middle2, import_fs3, InstrumentationBase;
|
|
66047
66047
|
var init_instrumentation2 = __esm({
|
|
66048
66048
|
"../../node_modules/.pnpm/@opentelemetry+instrumentation@0.218.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/instrumentation.js"() {
|
|
66049
66049
|
"use strict";
|
|
66050
66050
|
init_cjs_shims();
|
|
66051
|
-
|
|
66051
|
+
path39 = __toESM(require("path"));
|
|
66052
66052
|
import_util10 = require("util");
|
|
66053
66053
|
init_semver2();
|
|
66054
66054
|
init_shimmer();
|
|
@@ -66149,7 +66149,7 @@ var init_instrumentation2 = __esm({
|
|
|
66149
66149
|
}
|
|
66150
66150
|
_extractPackageVersion(baseDir) {
|
|
66151
66151
|
try {
|
|
66152
|
-
const json = (0, import_fs3.readFileSync)(
|
|
66152
|
+
const json = (0, import_fs3.readFileSync)(path39.join(baseDir, "package.json"), {
|
|
66153
66153
|
encoding: "utf8"
|
|
66154
66154
|
});
|
|
66155
66155
|
const version3 = JSON.parse(json).version;
|
|
@@ -66191,7 +66191,7 @@ var init_instrumentation2 = __esm({
|
|
|
66191
66191
|
return exports2;
|
|
66192
66192
|
}
|
|
66193
66193
|
const files = module2.files ?? [];
|
|
66194
|
-
const normalizedName =
|
|
66194
|
+
const normalizedName = path39.normalize(name2);
|
|
66195
66195
|
const supportedFileInstrumentations = files.filter((f) => f.name === normalizedName && isSupported(f.supportedVersions, version3, module2.includePrerelease));
|
|
66196
66196
|
return supportedFileInstrumentations.reduce((patchedExports, file) => {
|
|
66197
66197
|
file.moduleExports = patchedExports;
|
|
@@ -66237,8 +66237,8 @@ var init_instrumentation2 = __esm({
|
|
|
66237
66237
|
this._warnOnPreloadedModules();
|
|
66238
66238
|
for (const module2 of this._modules) {
|
|
66239
66239
|
const hookFn = (exports2, name2, baseDir) => {
|
|
66240
|
-
if (!baseDir &&
|
|
66241
|
-
const parsedPath =
|
|
66240
|
+
if (!baseDir && path39.isAbsolute(name2)) {
|
|
66241
|
+
const parsedPath = path39.parse(name2);
|
|
66242
66242
|
name2 = parsedPath.name;
|
|
66243
66243
|
baseDir = parsedPath.dir;
|
|
66244
66244
|
}
|
|
@@ -66247,7 +66247,7 @@ var init_instrumentation2 = __esm({
|
|
|
66247
66247
|
const onRequire = (exports2, name2, baseDir) => {
|
|
66248
66248
|
return this._onRequire(module2, exports2, name2, baseDir);
|
|
66249
66249
|
};
|
|
66250
|
-
const hook =
|
|
66250
|
+
const hook = path39.isAbsolute(module2.name) ? new import_require_in_the_middle2.Hook([module2.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module2.name, onRequire);
|
|
66251
66251
|
this._hooks.push(hook);
|
|
66252
66252
|
const esmHook = new import_import_in_the_middle.Hook([module2.name], { internals: true }, hookFn);
|
|
66253
66253
|
this._hooks.push(esmHook);
|
|
@@ -69178,7 +69178,7 @@ function appendRootPathToUrlIfNeeded(url3) {
|
|
|
69178
69178
|
return void 0;
|
|
69179
69179
|
}
|
|
69180
69180
|
}
|
|
69181
|
-
function appendResourcePathToUrl(url3,
|
|
69181
|
+
function appendResourcePathToUrl(url3, path48) {
|
|
69182
69182
|
try {
|
|
69183
69183
|
new URL(url3);
|
|
69184
69184
|
} catch {
|
|
@@ -69188,11 +69188,11 @@ function appendResourcePathToUrl(url3, path47) {
|
|
|
69188
69188
|
if (!url3.endsWith("/")) {
|
|
69189
69189
|
url3 = url3 + "/";
|
|
69190
69190
|
}
|
|
69191
|
-
url3 +=
|
|
69191
|
+
url3 += path48;
|
|
69192
69192
|
try {
|
|
69193
69193
|
new URL(url3);
|
|
69194
69194
|
} catch {
|
|
69195
|
-
diag2.warn(`Configuration: Provided URL appended with '${
|
|
69195
|
+
diag2.warn(`Configuration: Provided URL appended with '${path48}' is not a valid URL, using 'undefined' instead of '${url3}'`);
|
|
69196
69196
|
return void 0;
|
|
69197
69197
|
}
|
|
69198
69198
|
return url3;
|
|
@@ -69217,7 +69217,7 @@ function readFileFromEnv(signalSpecificEnvVar, nonSignalSpecificEnvVar, warningM
|
|
|
69217
69217
|
const filePath = signalSpecificPath ?? nonSignalSpecificPath;
|
|
69218
69218
|
if (filePath != null) {
|
|
69219
69219
|
try {
|
|
69220
|
-
return
|
|
69220
|
+
return fs37.readFileSync(path40.resolve(process.cwd(), filePath));
|
|
69221
69221
|
} catch {
|
|
69222
69222
|
diag2.warn(warningMessage);
|
|
69223
69223
|
return void 0;
|
|
@@ -69248,13 +69248,13 @@ function getNodeHttpConfigurationFromEnvironment(signalIdentifier, signalResourc
|
|
|
69248
69248
|
})
|
|
69249
69249
|
};
|
|
69250
69250
|
}
|
|
69251
|
-
var
|
|
69251
|
+
var fs37, path40;
|
|
69252
69252
|
var init_otlp_node_http_env_configuration = __esm({
|
|
69253
69253
|
"../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.218.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/otlp-node-http-env-configuration.js"() {
|
|
69254
69254
|
"use strict";
|
|
69255
69255
|
init_cjs_shims();
|
|
69256
|
-
|
|
69257
|
-
|
|
69256
|
+
fs37 = __toESM(require("fs"));
|
|
69257
|
+
path40 = __toESM(require("path"));
|
|
69258
69258
|
init_esm11();
|
|
69259
69259
|
init_esm8();
|
|
69260
69260
|
init_shared_env_configuration();
|
|
@@ -70055,14 +70055,14 @@ var require_tls_helpers = __commonJS({
|
|
|
70055
70055
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
70056
70056
|
exports2.CIPHER_SUITES = void 0;
|
|
70057
70057
|
exports2.getDefaultRootsData = getDefaultRootsData;
|
|
70058
|
-
var
|
|
70058
|
+
var fs44 = require("fs");
|
|
70059
70059
|
exports2.CIPHER_SUITES = process.env.GRPC_SSL_CIPHER_SUITES;
|
|
70060
70060
|
var DEFAULT_ROOTS_FILE_PATH = process.env.GRPC_DEFAULT_SSL_ROOTS_FILE_PATH;
|
|
70061
70061
|
var defaultRootsData = null;
|
|
70062
70062
|
function getDefaultRootsData() {
|
|
70063
70063
|
if (DEFAULT_ROOTS_FILE_PATH) {
|
|
70064
70064
|
if (defaultRootsData === null) {
|
|
70065
|
-
defaultRootsData =
|
|
70065
|
+
defaultRootsData = fs44.readFileSync(DEFAULT_ROOTS_FILE_PATH);
|
|
70066
70066
|
}
|
|
70067
70067
|
return defaultRootsData;
|
|
70068
70068
|
}
|
|
@@ -70094,19 +70094,19 @@ var require_uri_parser = __commonJS({
|
|
|
70094
70094
|
};
|
|
70095
70095
|
}
|
|
70096
70096
|
var NUMBER_REGEX = /^\d+$/;
|
|
70097
|
-
function splitHostPort(
|
|
70098
|
-
if (
|
|
70099
|
-
const hostEnd =
|
|
70097
|
+
function splitHostPort(path48) {
|
|
70098
|
+
if (path48.startsWith("[")) {
|
|
70099
|
+
const hostEnd = path48.indexOf("]");
|
|
70100
70100
|
if (hostEnd === -1) {
|
|
70101
70101
|
return null;
|
|
70102
70102
|
}
|
|
70103
|
-
const host =
|
|
70103
|
+
const host = path48.substring(1, hostEnd);
|
|
70104
70104
|
if (host.indexOf(":") === -1) {
|
|
70105
70105
|
return null;
|
|
70106
70106
|
}
|
|
70107
|
-
if (
|
|
70108
|
-
if (
|
|
70109
|
-
const portString =
|
|
70107
|
+
if (path48.length > hostEnd + 1) {
|
|
70108
|
+
if (path48[hostEnd + 1] === ":") {
|
|
70109
|
+
const portString = path48.substring(hostEnd + 2);
|
|
70110
70110
|
if (NUMBER_REGEX.test(portString)) {
|
|
70111
70111
|
return {
|
|
70112
70112
|
host,
|
|
@@ -70124,7 +70124,7 @@ var require_uri_parser = __commonJS({
|
|
|
70124
70124
|
};
|
|
70125
70125
|
}
|
|
70126
70126
|
} else {
|
|
70127
|
-
const splitPath =
|
|
70127
|
+
const splitPath = path48.split(":");
|
|
70128
70128
|
if (splitPath.length === 2) {
|
|
70129
70129
|
if (NUMBER_REGEX.test(splitPath[1])) {
|
|
70130
70130
|
return {
|
|
@@ -70136,7 +70136,7 @@ var require_uri_parser = __commonJS({
|
|
|
70136
70136
|
}
|
|
70137
70137
|
} else {
|
|
70138
70138
|
return {
|
|
70139
|
-
host:
|
|
70139
|
+
host: path48
|
|
70140
70140
|
};
|
|
70141
70141
|
}
|
|
70142
70142
|
}
|
|
@@ -70717,7 +70717,7 @@ var require_service_config = __commonJS({
|
|
|
70717
70717
|
exports2.validateRetryThrottling = validateRetryThrottling;
|
|
70718
70718
|
exports2.validateServiceConfig = validateServiceConfig;
|
|
70719
70719
|
exports2.extractAndSelectServiceConfig = extractAndSelectServiceConfig;
|
|
70720
|
-
var
|
|
70720
|
+
var os17 = require("os");
|
|
70721
70721
|
var constants_1 = require_constants2();
|
|
70722
70722
|
var DURATION_REGEX = /^\d+(\.\d{1,9})?s$/;
|
|
70723
70723
|
var CLIENT_LANGUAGE_STRING = "node";
|
|
@@ -71016,7 +71016,7 @@ var require_service_config = __commonJS({
|
|
|
71016
71016
|
if (Array.isArray(validatedConfig.clientHostname)) {
|
|
71017
71017
|
let hostnameMatched = false;
|
|
71018
71018
|
for (const hostname6 of validatedConfig.clientHostname) {
|
|
71019
|
-
if (hostname6 ===
|
|
71019
|
+
if (hostname6 === os17.hostname()) {
|
|
71020
71020
|
hostnameMatched = true;
|
|
71021
71021
|
}
|
|
71022
71022
|
}
|
|
@@ -73321,14 +73321,14 @@ var require_client_interceptors = __commonJS({
|
|
|
73321
73321
|
}
|
|
73322
73322
|
};
|
|
73323
73323
|
exports2.InterceptingCall = InterceptingCall;
|
|
73324
|
-
function getCall(channel,
|
|
73324
|
+
function getCall(channel, path48, options) {
|
|
73325
73325
|
var _a2, _b;
|
|
73326
73326
|
const deadline = (_a2 = options.deadline) !== null && _a2 !== void 0 ? _a2 : Infinity;
|
|
73327
73327
|
const host = options.host;
|
|
73328
73328
|
const parent = (_b = options.parent) !== null && _b !== void 0 ? _b : null;
|
|
73329
73329
|
const propagateFlags = options.propagate_flags;
|
|
73330
73330
|
const credentials = options.credentials;
|
|
73331
|
-
const call = channel.createCall(
|
|
73331
|
+
const call = channel.createCall(path48, deadline, host, parent, propagateFlags);
|
|
73332
73332
|
if (credentials) {
|
|
73333
73333
|
call.setCredentials(credentials);
|
|
73334
73334
|
}
|
|
@@ -73900,9 +73900,9 @@ var require_make_client = __commonJS({
|
|
|
73900
73900
|
ServiceClientImpl.serviceName = serviceName3;
|
|
73901
73901
|
return ServiceClientImpl;
|
|
73902
73902
|
}
|
|
73903
|
-
function partial2(fn,
|
|
73903
|
+
function partial2(fn, path48, serialize4, deserialize2) {
|
|
73904
73904
|
return function(...args) {
|
|
73905
|
-
return fn.call(this,
|
|
73905
|
+
return fn.call(this, path48, serialize4, deserialize2, ...args);
|
|
73906
73906
|
};
|
|
73907
73907
|
}
|
|
73908
73908
|
function isProtobufTypeDefinition(obj) {
|
|
@@ -74457,18 +74457,18 @@ var require_eventemitter = __commonJS({
|
|
|
74457
74457
|
"../../node_modules/.pnpm/@protobufjs+eventemitter@1.1.1/node_modules/@protobufjs/eventemitter/index.js"(exports2, module2) {
|
|
74458
74458
|
"use strict";
|
|
74459
74459
|
init_cjs_shims();
|
|
74460
|
-
module2.exports =
|
|
74461
|
-
function
|
|
74460
|
+
module2.exports = EventEmitter3;
|
|
74461
|
+
function EventEmitter3() {
|
|
74462
74462
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
74463
74463
|
}
|
|
74464
|
-
|
|
74464
|
+
EventEmitter3.prototype.on = function on(evt, fn, ctx) {
|
|
74465
74465
|
(this._listeners[evt] || (this._listeners[evt] = [])).push({
|
|
74466
74466
|
fn,
|
|
74467
74467
|
ctx: ctx || this
|
|
74468
74468
|
});
|
|
74469
74469
|
return this;
|
|
74470
74470
|
};
|
|
74471
|
-
|
|
74471
|
+
EventEmitter3.prototype.off = function off(evt, fn) {
|
|
74472
74472
|
if (evt === void 0)
|
|
74473
74473
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
74474
74474
|
else {
|
|
@@ -74487,7 +74487,7 @@ var require_eventemitter = __commonJS({
|
|
|
74487
74487
|
}
|
|
74488
74488
|
return this;
|
|
74489
74489
|
};
|
|
74490
|
-
|
|
74490
|
+
EventEmitter3.prototype.emit = function emit(evt) {
|
|
74491
74491
|
var listeners = this._listeners[evt];
|
|
74492
74492
|
if (listeners) {
|
|
74493
74493
|
var args = [], i = 1;
|
|
@@ -76781,17 +76781,17 @@ var require_fs = __commonJS({
|
|
|
76781
76781
|
"../../node_modules/.pnpm/@protobufjs+fetch@1.1.1/node_modules/@protobufjs/fetch/util/fs.js"(exports2, module2) {
|
|
76782
76782
|
"use strict";
|
|
76783
76783
|
init_cjs_shims();
|
|
76784
|
-
var
|
|
76784
|
+
var fs44 = null;
|
|
76785
76785
|
try {
|
|
76786
|
-
|
|
76786
|
+
fs44 = require(
|
|
76787
76787
|
/* webpackIgnore: true */
|
|
76788
76788
|
"fs"
|
|
76789
76789
|
);
|
|
76790
|
-
if (!
|
|
76791
|
-
|
|
76790
|
+
if (!fs44 || !fs44.readFile || !fs44.readFileSync)
|
|
76791
|
+
fs44 = null;
|
|
76792
76792
|
} catch (e) {
|
|
76793
76793
|
}
|
|
76794
|
-
module2.exports =
|
|
76794
|
+
module2.exports = fs44;
|
|
76795
76795
|
}
|
|
76796
76796
|
});
|
|
76797
76797
|
|
|
@@ -76802,7 +76802,7 @@ var require_fetch = __commonJS({
|
|
|
76802
76802
|
init_cjs_shims();
|
|
76803
76803
|
module2.exports = fetch2;
|
|
76804
76804
|
var asPromise = require_aspromise();
|
|
76805
|
-
var
|
|
76805
|
+
var fs44 = require_fs();
|
|
76806
76806
|
function fetch2(filename, options, callback) {
|
|
76807
76807
|
if (typeof options === "function") {
|
|
76808
76808
|
callback = options;
|
|
@@ -76811,8 +76811,8 @@ var require_fetch = __commonJS({
|
|
|
76811
76811
|
options = {};
|
|
76812
76812
|
if (!callback)
|
|
76813
76813
|
return asPromise(fetch2, this, filename, options);
|
|
76814
|
-
if (!options.xhr &&
|
|
76815
|
-
return
|
|
76814
|
+
if (!options.xhr && fs44 && fs44.readFile)
|
|
76815
|
+
return fs44.readFile(filename, function fetchReadFileCallback(err, contents) {
|
|
76816
76816
|
return err && typeof XMLHttpRequest !== "undefined" ? fetch2.xhr(filename, options, callback) : err ? callback(err) : callback(null, options.binary ? contents : contents.toString("utf8"));
|
|
76817
76817
|
});
|
|
76818
76818
|
return fetch2.xhr(filename, options, callback);
|
|
@@ -76851,15 +76851,15 @@ var require_path = __commonJS({
|
|
|
76851
76851
|
"../../node_modules/.pnpm/@protobufjs+path@1.1.2/node_modules/@protobufjs/path/index.js"(exports2) {
|
|
76852
76852
|
"use strict";
|
|
76853
76853
|
init_cjs_shims();
|
|
76854
|
-
var
|
|
76854
|
+
var path48 = exports2;
|
|
76855
76855
|
var isAbsolute13 = (
|
|
76856
76856
|
/**
|
|
76857
76857
|
* Tests if the specified path is absolute.
|
|
76858
76858
|
* @param {string} path Path to test
|
|
76859
76859
|
* @returns {boolean} `true` if path is absolute
|
|
76860
76860
|
*/
|
|
76861
|
-
|
|
76862
|
-
return /^(?:\/|\w+:)/.test(
|
|
76861
|
+
path48.isAbsolute = function isAbsolute14(path49) {
|
|
76862
|
+
return /^(?:\/|\w+:)/.test(path49);
|
|
76863
76863
|
}
|
|
76864
76864
|
);
|
|
76865
76865
|
var normalize8 = (
|
|
@@ -76868,9 +76868,9 @@ var require_path = __commonJS({
|
|
|
76868
76868
|
* @param {string} path Path to normalize
|
|
76869
76869
|
* @returns {string} Normalized path
|
|
76870
76870
|
*/
|
|
76871
|
-
|
|
76872
|
-
|
|
76873
|
-
var parts =
|
|
76871
|
+
path48.normalize = function normalize9(path49) {
|
|
76872
|
+
path49 = path49.replace(/\\/g, "/").replace(/\/{2,}/g, "/");
|
|
76873
|
+
var parts = path49.split("/"), absolute = isAbsolute13(path49), prefix = "";
|
|
76874
76874
|
if (absolute)
|
|
76875
76875
|
prefix = parts.shift() + "/";
|
|
76876
76876
|
for (var i = 0; i < parts.length; ) {
|
|
@@ -76889,7 +76889,7 @@ var require_path = __commonJS({
|
|
|
76889
76889
|
return prefix + parts.join("/");
|
|
76890
76890
|
}
|
|
76891
76891
|
);
|
|
76892
|
-
|
|
76892
|
+
path48.resolve = function resolve24(originPath, includePath, alreadyNormalized) {
|
|
76893
76893
|
if (!alreadyNormalized)
|
|
76894
76894
|
includePath = normalize8(includePath);
|
|
76895
76895
|
if (isAbsolute13(includePath))
|
|
@@ -76918,17 +76918,17 @@ var require_fs2 = __commonJS({
|
|
|
76918
76918
|
"../../node_modules/.pnpm/protobufjs@7.6.4/node_modules/protobufjs/src/util/fs.js"(exports2, module2) {
|
|
76919
76919
|
"use strict";
|
|
76920
76920
|
init_cjs_shims();
|
|
76921
|
-
var
|
|
76921
|
+
var fs44 = null;
|
|
76922
76922
|
try {
|
|
76923
|
-
|
|
76923
|
+
fs44 = require(
|
|
76924
76924
|
/* webpackIgnore: true */
|
|
76925
76925
|
"fs"
|
|
76926
76926
|
);
|
|
76927
|
-
if (!
|
|
76928
|
-
|
|
76927
|
+
if (!fs44 || !fs44.readFile || !fs44.readFileSync)
|
|
76928
|
+
fs44 = null;
|
|
76929
76929
|
} catch (e) {
|
|
76930
76930
|
}
|
|
76931
|
-
module2.exports =
|
|
76931
|
+
module2.exports = fs44;
|
|
76932
76932
|
}
|
|
76933
76933
|
});
|
|
76934
76934
|
|
|
@@ -77076,18 +77076,18 @@ var require_namespace = __commonJS({
|
|
|
77076
77076
|
object3.onRemove(this);
|
|
77077
77077
|
return clearCache(this);
|
|
77078
77078
|
};
|
|
77079
|
-
Namespace.prototype.define = function define2(
|
|
77080
|
-
if (util5.isString(
|
|
77081
|
-
|
|
77082
|
-
else if (!Array.isArray(
|
|
77079
|
+
Namespace.prototype.define = function define2(path48, json) {
|
|
77080
|
+
if (util5.isString(path48))
|
|
77081
|
+
path48 = path48.split(".");
|
|
77082
|
+
else if (!Array.isArray(path48))
|
|
77083
77083
|
throw TypeError("illegal path");
|
|
77084
|
-
if (
|
|
77084
|
+
if (path48 && path48.length && path48[0] === "")
|
|
77085
77085
|
throw Error("path must be relative");
|
|
77086
|
-
if (
|
|
77086
|
+
if (path48.length > util5.recursionLimit)
|
|
77087
77087
|
throw Error("max depth exceeded");
|
|
77088
77088
|
var ptr = this;
|
|
77089
|
-
while (
|
|
77090
|
-
var part =
|
|
77089
|
+
while (path48.length > 0) {
|
|
77090
|
+
var part = path48.shift();
|
|
77091
77091
|
if (ptr.nested && ptr.nested[part]) {
|
|
77092
77092
|
ptr = ptr.nested[part];
|
|
77093
77093
|
if (!(ptr instanceof Namespace))
|
|
@@ -77122,26 +77122,26 @@ var require_namespace = __commonJS({
|
|
|
77122
77122
|
});
|
|
77123
77123
|
return this;
|
|
77124
77124
|
};
|
|
77125
|
-
Namespace.prototype.lookup = function lookup(
|
|
77125
|
+
Namespace.prototype.lookup = function lookup(path48, filterTypes, parentAlreadyChecked) {
|
|
77126
77126
|
if (typeof filterTypes === "boolean") {
|
|
77127
77127
|
parentAlreadyChecked = filterTypes;
|
|
77128
77128
|
filterTypes = void 0;
|
|
77129
77129
|
} else if (filterTypes && !Array.isArray(filterTypes))
|
|
77130
77130
|
filterTypes = [filterTypes];
|
|
77131
|
-
if (util5.isString(
|
|
77132
|
-
if (
|
|
77131
|
+
if (util5.isString(path48) && path48.length) {
|
|
77132
|
+
if (path48 === ".")
|
|
77133
77133
|
return this.root;
|
|
77134
|
-
|
|
77135
|
-
} else if (!
|
|
77134
|
+
path48 = path48.split(".");
|
|
77135
|
+
} else if (!path48.length)
|
|
77136
77136
|
return this;
|
|
77137
|
-
var flatPath =
|
|
77138
|
-
if (
|
|
77139
|
-
return this.root.lookup(
|
|
77137
|
+
var flatPath = path48.join(".");
|
|
77138
|
+
if (path48[0] === "")
|
|
77139
|
+
return this.root.lookup(path48.slice(1), filterTypes);
|
|
77140
77140
|
var found = this.root._fullyQualifiedObjects && this.root._fullyQualifiedObjects["." + flatPath];
|
|
77141
77141
|
if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) {
|
|
77142
77142
|
return found;
|
|
77143
77143
|
}
|
|
77144
|
-
found = this._lookupImpl(
|
|
77144
|
+
found = this._lookupImpl(path48, flatPath);
|
|
77145
77145
|
if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) {
|
|
77146
77146
|
return found;
|
|
77147
77147
|
}
|
|
@@ -77149,7 +77149,7 @@ var require_namespace = __commonJS({
|
|
|
77149
77149
|
return null;
|
|
77150
77150
|
var current = this;
|
|
77151
77151
|
while (current.parent) {
|
|
77152
|
-
found = current.parent._lookupImpl(
|
|
77152
|
+
found = current.parent._lookupImpl(path48, flatPath);
|
|
77153
77153
|
if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) {
|
|
77154
77154
|
return found;
|
|
77155
77155
|
}
|
|
@@ -77157,22 +77157,22 @@ var require_namespace = __commonJS({
|
|
|
77157
77157
|
}
|
|
77158
77158
|
return null;
|
|
77159
77159
|
};
|
|
77160
|
-
Namespace.prototype._lookupImpl = function lookup(
|
|
77160
|
+
Namespace.prototype._lookupImpl = function lookup(path48, flatPath) {
|
|
77161
77161
|
if (Object.prototype.hasOwnProperty.call(this._lookupCache, flatPath)) {
|
|
77162
77162
|
return this._lookupCache[flatPath];
|
|
77163
77163
|
}
|
|
77164
|
-
var found = this.get(
|
|
77164
|
+
var found = this.get(path48[0]);
|
|
77165
77165
|
var exact = null;
|
|
77166
77166
|
if (found) {
|
|
77167
|
-
if (
|
|
77167
|
+
if (path48.length === 1) {
|
|
77168
77168
|
exact = found;
|
|
77169
77169
|
} else if (found instanceof Namespace) {
|
|
77170
|
-
|
|
77171
|
-
exact = found._lookupImpl(
|
|
77170
|
+
path48 = path48.slice(1);
|
|
77171
|
+
exact = found._lookupImpl(path48, path48.join("."));
|
|
77172
77172
|
}
|
|
77173
77173
|
} else {
|
|
77174
77174
|
for (var i = 0; i < this.nestedArray.length; ++i)
|
|
77175
|
-
if (this._nestedArray[i] instanceof Namespace && (found = this._nestedArray[i]._lookupImpl(
|
|
77175
|
+
if (this._nestedArray[i] instanceof Namespace && (found = this._nestedArray[i]._lookupImpl(path48, flatPath))) {
|
|
77176
77176
|
exact = found;
|
|
77177
77177
|
break;
|
|
77178
77178
|
}
|
|
@@ -77180,28 +77180,28 @@ var require_namespace = __commonJS({
|
|
|
77180
77180
|
this._lookupCache[flatPath] = exact;
|
|
77181
77181
|
return exact;
|
|
77182
77182
|
};
|
|
77183
|
-
Namespace.prototype.lookupType = function lookupType(
|
|
77184
|
-
var found = this.lookup(
|
|
77183
|
+
Namespace.prototype.lookupType = function lookupType(path48) {
|
|
77184
|
+
var found = this.lookup(path48, [Type]);
|
|
77185
77185
|
if (!found)
|
|
77186
|
-
throw Error("no such type: " +
|
|
77186
|
+
throw Error("no such type: " + path48);
|
|
77187
77187
|
return found;
|
|
77188
77188
|
};
|
|
77189
|
-
Namespace.prototype.lookupEnum = function lookupEnum(
|
|
77190
|
-
var found = this.lookup(
|
|
77189
|
+
Namespace.prototype.lookupEnum = function lookupEnum(path48) {
|
|
77190
|
+
var found = this.lookup(path48, [Enum]);
|
|
77191
77191
|
if (!found)
|
|
77192
|
-
throw Error("no such Enum '" +
|
|
77192
|
+
throw Error("no such Enum '" + path48 + "' in " + this);
|
|
77193
77193
|
return found;
|
|
77194
77194
|
};
|
|
77195
|
-
Namespace.prototype.lookupTypeOrEnum = function lookupTypeOrEnum(
|
|
77196
|
-
var found = this.lookup(
|
|
77195
|
+
Namespace.prototype.lookupTypeOrEnum = function lookupTypeOrEnum(path48) {
|
|
77196
|
+
var found = this.lookup(path48, [Type, Enum]);
|
|
77197
77197
|
if (!found)
|
|
77198
|
-
throw Error("no such Type or Enum '" +
|
|
77198
|
+
throw Error("no such Type or Enum '" + path48 + "' in " + this);
|
|
77199
77199
|
return found;
|
|
77200
77200
|
};
|
|
77201
|
-
Namespace.prototype.lookupService = function lookupService(
|
|
77202
|
-
var found = this.lookup(
|
|
77201
|
+
Namespace.prototype.lookupService = function lookupService(path48) {
|
|
77202
|
+
var found = this.lookup(path48, [Service]);
|
|
77203
77203
|
if (!found)
|
|
77204
|
-
throw Error("no such Service '" +
|
|
77204
|
+
throw Error("no such Service '" + path48 + "' in " + this);
|
|
77205
77205
|
return found;
|
|
77206
77206
|
};
|
|
77207
77207
|
Namespace._configure = function(Type_, Service_, Enum_) {
|
|
@@ -78624,13 +78624,13 @@ var require_util2 = __commonJS({
|
|
|
78624
78624
|
Object.defineProperty(object3, "$type", { value: enm, enumerable: false });
|
|
78625
78625
|
return enm;
|
|
78626
78626
|
};
|
|
78627
|
-
util5.setProperty = function setProperty(dst,
|
|
78628
|
-
function setProp(dst2,
|
|
78629
|
-
var part =
|
|
78627
|
+
util5.setProperty = function setProperty(dst, path48, value, ifNotSet) {
|
|
78628
|
+
function setProp(dst2, path49, value2) {
|
|
78629
|
+
var part = path49.shift();
|
|
78630
78630
|
if (util5.isUnsafeProperty(part))
|
|
78631
78631
|
return dst2;
|
|
78632
|
-
if (
|
|
78633
|
-
dst2[part] = setProp(dst2[part] || {},
|
|
78632
|
+
if (path49.length > 0) {
|
|
78633
|
+
dst2[part] = setProp(dst2[part] || {}, path49, value2);
|
|
78634
78634
|
} else {
|
|
78635
78635
|
var prevValue = dst2[part];
|
|
78636
78636
|
if (prevValue && ifNotSet)
|
|
@@ -78643,12 +78643,12 @@ var require_util2 = __commonJS({
|
|
|
78643
78643
|
}
|
|
78644
78644
|
if (typeof dst !== "object")
|
|
78645
78645
|
throw TypeError("dst must be an object");
|
|
78646
|
-
if (!
|
|
78646
|
+
if (!path48)
|
|
78647
78647
|
throw TypeError("path must be specified");
|
|
78648
|
-
|
|
78649
|
-
if (
|
|
78648
|
+
path48 = path48.split(".");
|
|
78649
|
+
if (path48.length > util5.recursionLimit)
|
|
78650
78650
|
throw Error("max depth exceeded");
|
|
78651
|
-
return setProp(dst,
|
|
78651
|
+
return setProp(dst, path48, value);
|
|
78652
78652
|
};
|
|
78653
78653
|
Object.defineProperty(util5, "decorateRoot", {
|
|
78654
78654
|
get: function() {
|
|
@@ -79198,12 +79198,12 @@ var require_object = __commonJS({
|
|
|
79198
79198
|
*/
|
|
79199
79199
|
fullName: {
|
|
79200
79200
|
get: function() {
|
|
79201
|
-
var
|
|
79201
|
+
var path48 = [this.name], ptr = this.parent;
|
|
79202
79202
|
while (ptr) {
|
|
79203
|
-
|
|
79203
|
+
path48.unshift(ptr.name);
|
|
79204
79204
|
ptr = ptr.parent;
|
|
79205
79205
|
}
|
|
79206
|
-
return
|
|
79206
|
+
return path48.join(".");
|
|
79207
79207
|
}
|
|
79208
79208
|
}
|
|
79209
79209
|
});
|
|
@@ -83247,19 +83247,19 @@ var require_util3 = __commonJS({
|
|
|
83247
83247
|
init_cjs_shims();
|
|
83248
83248
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
83249
83249
|
exports2.addCommonProtos = exports2.loadProtosWithOptionsSync = exports2.loadProtosWithOptions = void 0;
|
|
83250
|
-
var
|
|
83251
|
-
var
|
|
83250
|
+
var fs44 = require("fs");
|
|
83251
|
+
var path48 = require("path");
|
|
83252
83252
|
var Protobuf = require_protobufjs();
|
|
83253
83253
|
function addIncludePathResolver(root7, includePaths) {
|
|
83254
83254
|
const originalResolvePath = root7.resolvePath;
|
|
83255
83255
|
root7.resolvePath = (origin, target) => {
|
|
83256
|
-
if (
|
|
83256
|
+
if (path48.isAbsolute(target)) {
|
|
83257
83257
|
return target;
|
|
83258
83258
|
}
|
|
83259
83259
|
for (const directory of includePaths) {
|
|
83260
|
-
const fullPath =
|
|
83260
|
+
const fullPath = path48.join(directory, target);
|
|
83261
83261
|
try {
|
|
83262
|
-
|
|
83262
|
+
fs44.accessSync(fullPath, fs44.constants.R_OK);
|
|
83263
83263
|
return fullPath;
|
|
83264
83264
|
} catch (err) {
|
|
83265
83265
|
continue;
|
|
@@ -85755,7 +85755,7 @@ var require_subchannel_call = __commonJS({
|
|
|
85755
85755
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
85756
85756
|
exports2.Http2SubchannelCall = void 0;
|
|
85757
85757
|
var http22 = require("http2");
|
|
85758
|
-
var
|
|
85758
|
+
var os17 = require("os");
|
|
85759
85759
|
var constants_1 = require_constants2();
|
|
85760
85760
|
var metadata_1 = require_metadata2();
|
|
85761
85761
|
var stream_decoder_1 = require_stream_decoder();
|
|
@@ -85763,7 +85763,7 @@ var require_subchannel_call = __commonJS({
|
|
|
85763
85763
|
var constants_2 = require_constants2();
|
|
85764
85764
|
var TRACER_NAME = "subchannel_call";
|
|
85765
85765
|
function getSystemErrorName(errno) {
|
|
85766
|
-
for (const [name2, num] of Object.entries(
|
|
85766
|
+
for (const [name2, num] of Object.entries(os17.constants.errno)) {
|
|
85767
85767
|
if (num === errno) {
|
|
85768
85768
|
return name2;
|
|
85769
85769
|
}
|
|
@@ -88639,9 +88639,9 @@ var require_server_call = __commonJS({
|
|
|
88639
88639
|
return status;
|
|
88640
88640
|
}
|
|
88641
88641
|
var ServerUnaryCallImpl = class extends events_1.EventEmitter {
|
|
88642
|
-
constructor(
|
|
88642
|
+
constructor(path48, call, metadata, request2) {
|
|
88643
88643
|
super();
|
|
88644
|
-
this.path =
|
|
88644
|
+
this.path = path48;
|
|
88645
88645
|
this.call = call;
|
|
88646
88646
|
this.metadata = metadata;
|
|
88647
88647
|
this.request = request2;
|
|
@@ -88671,9 +88671,9 @@ var require_server_call = __commonJS({
|
|
|
88671
88671
|
};
|
|
88672
88672
|
exports2.ServerUnaryCallImpl = ServerUnaryCallImpl;
|
|
88673
88673
|
var ServerReadableStreamImpl = class extends stream_1.Readable {
|
|
88674
|
-
constructor(
|
|
88674
|
+
constructor(path48, call, metadata) {
|
|
88675
88675
|
super({ objectMode: true });
|
|
88676
|
-
this.path =
|
|
88676
|
+
this.path = path48;
|
|
88677
88677
|
this.call = call;
|
|
88678
88678
|
this.metadata = metadata;
|
|
88679
88679
|
this.cancelled = false;
|
|
@@ -88705,9 +88705,9 @@ var require_server_call = __commonJS({
|
|
|
88705
88705
|
};
|
|
88706
88706
|
exports2.ServerReadableStreamImpl = ServerReadableStreamImpl;
|
|
88707
88707
|
var ServerWritableStreamImpl = class extends stream_1.Writable {
|
|
88708
|
-
constructor(
|
|
88708
|
+
constructor(path48, call, metadata, request2) {
|
|
88709
88709
|
super({ objectMode: true });
|
|
88710
|
-
this.path =
|
|
88710
|
+
this.path = path48;
|
|
88711
88711
|
this.call = call;
|
|
88712
88712
|
this.metadata = metadata;
|
|
88713
88713
|
this.request = request2;
|
|
@@ -88761,9 +88761,9 @@ var require_server_call = __commonJS({
|
|
|
88761
88761
|
};
|
|
88762
88762
|
exports2.ServerWritableStreamImpl = ServerWritableStreamImpl;
|
|
88763
88763
|
var ServerDuplexStreamImpl = class extends stream_1.Duplex {
|
|
88764
|
-
constructor(
|
|
88764
|
+
constructor(path48, call, metadata) {
|
|
88765
88765
|
super({ objectMode: true });
|
|
88766
|
-
this.path =
|
|
88766
|
+
this.path = path48;
|
|
88767
88767
|
this.call = call;
|
|
88768
88768
|
this.metadata = metadata;
|
|
88769
88769
|
this.pendingStatus = {
|
|
@@ -91048,11 +91048,11 @@ var require_server = __commonJS({
|
|
|
91048
91048
|
}
|
|
91049
91049
|
return true;
|
|
91050
91050
|
}
|
|
91051
|
-
_retrieveHandler(
|
|
91052
|
-
serverCallTrace("Received call to method " +
|
|
91053
|
-
const handler = this.handlers.get(
|
|
91051
|
+
_retrieveHandler(path48) {
|
|
91052
|
+
serverCallTrace("Received call to method " + path48 + " at address " + this.serverAddressString);
|
|
91053
|
+
const handler = this.handlers.get(path48);
|
|
91054
91054
|
if (handler === void 0) {
|
|
91055
|
-
serverCallTrace("No handler registered for method " +
|
|
91055
|
+
serverCallTrace("No handler registered for method " + path48 + ". Sending UNIMPLEMENTED status.");
|
|
91056
91056
|
return null;
|
|
91057
91057
|
}
|
|
91058
91058
|
return handler;
|
|
@@ -91076,10 +91076,10 @@ var require_server = __commonJS({
|
|
|
91076
91076
|
channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallFailed();
|
|
91077
91077
|
return;
|
|
91078
91078
|
}
|
|
91079
|
-
const
|
|
91080
|
-
const handler = this._retrieveHandler(
|
|
91079
|
+
const path48 = headers[HTTP2_HEADER_PATH];
|
|
91080
|
+
const handler = this._retrieveHandler(path48);
|
|
91081
91081
|
if (!handler) {
|
|
91082
|
-
this._respondWithError(getUnimplementedStatusResponse(
|
|
91082
|
+
this._respondWithError(getUnimplementedStatusResponse(path48), stream, channelzSessionInfo);
|
|
91083
91083
|
return;
|
|
91084
91084
|
}
|
|
91085
91085
|
const callEventTracker = {
|
|
@@ -91129,10 +91129,10 @@ var require_server = __commonJS({
|
|
|
91129
91129
|
if (this._verifyContentType(stream, headers) !== true) {
|
|
91130
91130
|
return;
|
|
91131
91131
|
}
|
|
91132
|
-
const
|
|
91133
|
-
const handler = this._retrieveHandler(
|
|
91132
|
+
const path48 = headers[HTTP2_HEADER_PATH];
|
|
91133
|
+
const handler = this._retrieveHandler(path48);
|
|
91134
91134
|
if (!handler) {
|
|
91135
|
-
this._respondWithError(getUnimplementedStatusResponse(
|
|
91135
|
+
this._respondWithError(getUnimplementedStatusResponse(path48), stream, null);
|
|
91136
91136
|
return;
|
|
91137
91137
|
}
|
|
91138
91138
|
const call = (0, server_interceptors_1.getServerInterceptingCall)([...extraInterceptors, ...this.interceptors], stream, headers, null, handler, this.options);
|
|
@@ -92156,7 +92156,7 @@ var require_certificate_provider = __commonJS({
|
|
|
92156
92156
|
init_cjs_shims();
|
|
92157
92157
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
92158
92158
|
exports2.FileWatcherCertificateProvider = void 0;
|
|
92159
|
-
var
|
|
92159
|
+
var fs44 = require("fs");
|
|
92160
92160
|
var logging = require_logging();
|
|
92161
92161
|
var constants_1 = require_constants2();
|
|
92162
92162
|
var util_1 = require("util");
|
|
@@ -92164,7 +92164,7 @@ var require_certificate_provider = __commonJS({
|
|
|
92164
92164
|
function trace2(text10) {
|
|
92165
92165
|
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text10);
|
|
92166
92166
|
}
|
|
92167
|
-
var readFilePromise = (0, util_1.promisify)(
|
|
92167
|
+
var readFilePromise = (0, util_1.promisify)(fs44.readFile);
|
|
92168
92168
|
var FileWatcherCertificateProvider = class {
|
|
92169
92169
|
constructor(config2) {
|
|
92170
92170
|
this.config = config2;
|
|
@@ -92421,13 +92421,13 @@ var require_resolver_uds = __commonJS({
|
|
|
92421
92421
|
this.listener = listener;
|
|
92422
92422
|
this.hasReturnedResult = false;
|
|
92423
92423
|
this.endpoints = [];
|
|
92424
|
-
let
|
|
92424
|
+
let path48;
|
|
92425
92425
|
if (target.authority === "") {
|
|
92426
|
-
|
|
92426
|
+
path48 = "/" + target.path;
|
|
92427
92427
|
} else {
|
|
92428
|
-
|
|
92428
|
+
path48 = target.path;
|
|
92429
92429
|
}
|
|
92430
|
-
this.endpoints = [{ addresses: [{ path:
|
|
92430
|
+
this.endpoints = [{ addresses: [{ path: path48 }] }];
|
|
92431
92431
|
}
|
|
92432
92432
|
updateResolution() {
|
|
92433
92433
|
if (!this.hasReturnedResult) {
|
|
@@ -92488,12 +92488,12 @@ var require_resolver_ip = __commonJS({
|
|
|
92488
92488
|
return;
|
|
92489
92489
|
}
|
|
92490
92490
|
const pathList = target.path.split(",");
|
|
92491
|
-
for (const
|
|
92492
|
-
const hostPort = (0, uri_parser_1.splitHostPort)(
|
|
92491
|
+
for (const path48 of pathList) {
|
|
92492
|
+
const hostPort = (0, uri_parser_1.splitHostPort)(path48);
|
|
92493
92493
|
if (hostPort === null) {
|
|
92494
92494
|
this.error = {
|
|
92495
92495
|
code: constants_1.Status.UNAVAILABLE,
|
|
92496
|
-
details: `Failed to parse ${target.scheme} address ${
|
|
92496
|
+
details: `Failed to parse ${target.scheme} address ${path48}`,
|
|
92497
92497
|
metadata: new metadata_1.Metadata()
|
|
92498
92498
|
};
|
|
92499
92499
|
return;
|
|
@@ -92501,7 +92501,7 @@ var require_resolver_ip = __commonJS({
|
|
|
92501
92501
|
if (target.scheme === IPV4_SCHEME && !(0, net_1.isIPv4)(hostPort.host) || target.scheme === IPV6_SCHEME && !(0, net_1.isIPv6)(hostPort.host)) {
|
|
92502
92502
|
this.error = {
|
|
92503
92503
|
code: constants_1.Status.UNAVAILABLE,
|
|
92504
|
-
details: `Failed to parse ${target.scheme} address ${
|
|
92504
|
+
details: `Failed to parse ${target.scheme} address ${path48}`,
|
|
92505
92505
|
metadata: new metadata_1.Metadata()
|
|
92506
92506
|
};
|
|
92507
92507
|
return;
|
|
@@ -93863,10 +93863,10 @@ var require_create_service_client_constructor = __commonJS({
|
|
|
93863
93863
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
93864
93864
|
exports2.createServiceClientConstructor = void 0;
|
|
93865
93865
|
var grpc = require_src7();
|
|
93866
|
-
function createServiceClientConstructor(
|
|
93866
|
+
function createServiceClientConstructor(path48, name2) {
|
|
93867
93867
|
const serviceDefinition = {
|
|
93868
93868
|
export: {
|
|
93869
|
-
path:
|
|
93869
|
+
path: path48,
|
|
93870
93870
|
requestStream: false,
|
|
93871
93871
|
responseStream: false,
|
|
93872
93872
|
requestSerialize: (arg) => {
|
|
@@ -94088,8 +94088,8 @@ var require_otlp_grpc_env_configuration = __commonJS({
|
|
|
94088
94088
|
var core_1 = (init_esm11(), __toCommonJS(esm_exports4));
|
|
94089
94089
|
var grpc_exporter_transport_1 = require_grpc_exporter_transport();
|
|
94090
94090
|
var node_http_1 = (init_index_node_http(), __toCommonJS(index_node_http_exports));
|
|
94091
|
-
var
|
|
94092
|
-
var
|
|
94091
|
+
var fs44 = require("fs");
|
|
94092
|
+
var path48 = require("path");
|
|
94093
94093
|
var api_1 = (init_esm8(), __toCommonJS(esm_exports));
|
|
94094
94094
|
function fallbackIfNullishOrBlank(signalSpecific, nonSignalSpecific) {
|
|
94095
94095
|
if (signalSpecific != null && signalSpecific !== "") {
|
|
@@ -94138,7 +94138,7 @@ var require_otlp_grpc_env_configuration = __commonJS({
|
|
|
94138
94138
|
const filePath = fallbackIfNullishOrBlank(signalSpecificPath, nonSignalSpecificPath);
|
|
94139
94139
|
if (filePath != null) {
|
|
94140
94140
|
try {
|
|
94141
|
-
return
|
|
94141
|
+
return fs44.readFileSync(path48.resolve(process.cwd(), filePath));
|
|
94142
94142
|
} catch {
|
|
94143
94143
|
api_1.diag.warn(warningMessage);
|
|
94144
94144
|
return void 0;
|
|
@@ -95823,7 +95823,7 @@ var require_utils4 = __commonJS({
|
|
|
95823
95823
|
var exporter_metrics_otlp_http_1 = (init_esm27(), __toCommonJS(esm_exports20));
|
|
95824
95824
|
var exporter_metrics_otlp_proto_1 = (init_esm28(), __toCommonJS(esm_exports21));
|
|
95825
95825
|
var sdk_logs_1 = (init_esm13(), __toCommonJS(esm_exports6));
|
|
95826
|
-
var
|
|
95826
|
+
var fs44 = require("fs");
|
|
95827
95827
|
var RESOURCE_DETECTOR_ENVIRONMENT = "env";
|
|
95828
95828
|
var RESOURCE_DETECTOR_HOST = "host";
|
|
95829
95829
|
var RESOURCE_DETECTOR_OS = "os";
|
|
@@ -96246,21 +96246,21 @@ var require_utils4 = __commonJS({
|
|
|
96246
96246
|
const httpsAgentOptions = {};
|
|
96247
96247
|
if (tls.ca_file) {
|
|
96248
96248
|
try {
|
|
96249
|
-
httpsAgentOptions.ca =
|
|
96249
|
+
httpsAgentOptions.ca = fs44.readFileSync(tls.ca_file);
|
|
96250
96250
|
} catch (e) {
|
|
96251
96251
|
api_1.diag.warn(`Failed to read TLS CA file at ${tls.ca_file}: ${e}`);
|
|
96252
96252
|
}
|
|
96253
96253
|
}
|
|
96254
96254
|
if (tls.cert_file) {
|
|
96255
96255
|
try {
|
|
96256
|
-
httpsAgentOptions.cert =
|
|
96256
|
+
httpsAgentOptions.cert = fs44.readFileSync(tls.cert_file);
|
|
96257
96257
|
} catch (e) {
|
|
96258
96258
|
api_1.diag.warn(`Failed to read TLS cert file at ${tls.cert_file}: ${e}`);
|
|
96259
96259
|
}
|
|
96260
96260
|
}
|
|
96261
96261
|
if (tls.key_file) {
|
|
96262
96262
|
try {
|
|
96263
|
-
httpsAgentOptions.key =
|
|
96263
|
+
httpsAgentOptions.key = fs44.readFileSync(tls.key_file);
|
|
96264
96264
|
} catch (e) {
|
|
96265
96265
|
api_1.diag.warn(`Failed to read TLS key file at ${tls.key_file}: ${e}`);
|
|
96266
96266
|
}
|
|
@@ -97553,17 +97553,17 @@ var require_visit = __commonJS({
|
|
|
97553
97553
|
visit2.BREAK = BREAK;
|
|
97554
97554
|
visit2.SKIP = SKIP2;
|
|
97555
97555
|
visit2.REMOVE = REMOVE;
|
|
97556
|
-
function visit_(key2, node2, visitor,
|
|
97557
|
-
const ctrl = callVisitor(key2, node2, visitor,
|
|
97556
|
+
function visit_(key2, node2, visitor, path48) {
|
|
97557
|
+
const ctrl = callVisitor(key2, node2, visitor, path48);
|
|
97558
97558
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
|
97559
|
-
replaceNode(key2,
|
|
97560
|
-
return visit_(key2, ctrl, visitor,
|
|
97559
|
+
replaceNode(key2, path48, ctrl);
|
|
97560
|
+
return visit_(key2, ctrl, visitor, path48);
|
|
97561
97561
|
}
|
|
97562
97562
|
if (typeof ctrl !== "symbol") {
|
|
97563
97563
|
if (identity2.isCollection(node2)) {
|
|
97564
|
-
|
|
97564
|
+
path48 = Object.freeze(path48.concat(node2));
|
|
97565
97565
|
for (let i = 0; i < node2.items.length; ++i) {
|
|
97566
|
-
const ci = visit_(i, node2.items[i], visitor,
|
|
97566
|
+
const ci = visit_(i, node2.items[i], visitor, path48);
|
|
97567
97567
|
if (typeof ci === "number")
|
|
97568
97568
|
i = ci - 1;
|
|
97569
97569
|
else if (ci === BREAK)
|
|
@@ -97574,13 +97574,13 @@ var require_visit = __commonJS({
|
|
|
97574
97574
|
}
|
|
97575
97575
|
}
|
|
97576
97576
|
} else if (identity2.isPair(node2)) {
|
|
97577
|
-
|
|
97578
|
-
const ck = visit_("key", node2.key, visitor,
|
|
97577
|
+
path48 = Object.freeze(path48.concat(node2));
|
|
97578
|
+
const ck = visit_("key", node2.key, visitor, path48);
|
|
97579
97579
|
if (ck === BREAK)
|
|
97580
97580
|
return BREAK;
|
|
97581
97581
|
else if (ck === REMOVE)
|
|
97582
97582
|
node2.key = null;
|
|
97583
|
-
const cv = visit_("value", node2.value, visitor,
|
|
97583
|
+
const cv = visit_("value", node2.value, visitor, path48);
|
|
97584
97584
|
if (cv === BREAK)
|
|
97585
97585
|
return BREAK;
|
|
97586
97586
|
else if (cv === REMOVE)
|
|
@@ -97601,17 +97601,17 @@ var require_visit = __commonJS({
|
|
|
97601
97601
|
visitAsync.BREAK = BREAK;
|
|
97602
97602
|
visitAsync.SKIP = SKIP2;
|
|
97603
97603
|
visitAsync.REMOVE = REMOVE;
|
|
97604
|
-
async function visitAsync_(key2, node2, visitor,
|
|
97605
|
-
const ctrl = await callVisitor(key2, node2, visitor,
|
|
97604
|
+
async function visitAsync_(key2, node2, visitor, path48) {
|
|
97605
|
+
const ctrl = await callVisitor(key2, node2, visitor, path48);
|
|
97606
97606
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
|
97607
|
-
replaceNode(key2,
|
|
97608
|
-
return visitAsync_(key2, ctrl, visitor,
|
|
97607
|
+
replaceNode(key2, path48, ctrl);
|
|
97608
|
+
return visitAsync_(key2, ctrl, visitor, path48);
|
|
97609
97609
|
}
|
|
97610
97610
|
if (typeof ctrl !== "symbol") {
|
|
97611
97611
|
if (identity2.isCollection(node2)) {
|
|
97612
|
-
|
|
97612
|
+
path48 = Object.freeze(path48.concat(node2));
|
|
97613
97613
|
for (let i = 0; i < node2.items.length; ++i) {
|
|
97614
|
-
const ci = await visitAsync_(i, node2.items[i], visitor,
|
|
97614
|
+
const ci = await visitAsync_(i, node2.items[i], visitor, path48);
|
|
97615
97615
|
if (typeof ci === "number")
|
|
97616
97616
|
i = ci - 1;
|
|
97617
97617
|
else if (ci === BREAK)
|
|
@@ -97622,13 +97622,13 @@ var require_visit = __commonJS({
|
|
|
97622
97622
|
}
|
|
97623
97623
|
}
|
|
97624
97624
|
} else if (identity2.isPair(node2)) {
|
|
97625
|
-
|
|
97626
|
-
const ck = await visitAsync_("key", node2.key, visitor,
|
|
97625
|
+
path48 = Object.freeze(path48.concat(node2));
|
|
97626
|
+
const ck = await visitAsync_("key", node2.key, visitor, path48);
|
|
97627
97627
|
if (ck === BREAK)
|
|
97628
97628
|
return BREAK;
|
|
97629
97629
|
else if (ck === REMOVE)
|
|
97630
97630
|
node2.key = null;
|
|
97631
|
-
const cv = await visitAsync_("value", node2.value, visitor,
|
|
97631
|
+
const cv = await visitAsync_("value", node2.value, visitor, path48);
|
|
97632
97632
|
if (cv === BREAK)
|
|
97633
97633
|
return BREAK;
|
|
97634
97634
|
else if (cv === REMOVE)
|
|
@@ -97655,23 +97655,23 @@ var require_visit = __commonJS({
|
|
|
97655
97655
|
}
|
|
97656
97656
|
return visitor;
|
|
97657
97657
|
}
|
|
97658
|
-
function callVisitor(key2, node2, visitor,
|
|
97658
|
+
function callVisitor(key2, node2, visitor, path48) {
|
|
97659
97659
|
if (typeof visitor === "function")
|
|
97660
|
-
return visitor(key2, node2,
|
|
97660
|
+
return visitor(key2, node2, path48);
|
|
97661
97661
|
if (identity2.isMap(node2))
|
|
97662
|
-
return visitor.Map?.(key2, node2,
|
|
97662
|
+
return visitor.Map?.(key2, node2, path48);
|
|
97663
97663
|
if (identity2.isSeq(node2))
|
|
97664
|
-
return visitor.Seq?.(key2, node2,
|
|
97664
|
+
return visitor.Seq?.(key2, node2, path48);
|
|
97665
97665
|
if (identity2.isPair(node2))
|
|
97666
|
-
return visitor.Pair?.(key2, node2,
|
|
97666
|
+
return visitor.Pair?.(key2, node2, path48);
|
|
97667
97667
|
if (identity2.isScalar(node2))
|
|
97668
|
-
return visitor.Scalar?.(key2, node2,
|
|
97668
|
+
return visitor.Scalar?.(key2, node2, path48);
|
|
97669
97669
|
if (identity2.isAlias(node2))
|
|
97670
|
-
return visitor.Alias?.(key2, node2,
|
|
97670
|
+
return visitor.Alias?.(key2, node2, path48);
|
|
97671
97671
|
return void 0;
|
|
97672
97672
|
}
|
|
97673
|
-
function replaceNode(key2,
|
|
97674
|
-
const parent =
|
|
97673
|
+
function replaceNode(key2, path48, node2) {
|
|
97674
|
+
const parent = path48[path48.length - 1];
|
|
97675
97675
|
if (identity2.isCollection(parent)) {
|
|
97676
97676
|
parent.items[key2] = node2;
|
|
97677
97677
|
} else if (identity2.isPair(parent)) {
|
|
@@ -98290,10 +98290,10 @@ var require_Collection = __commonJS({
|
|
|
98290
98290
|
var createNode = require_createNode();
|
|
98291
98291
|
var identity2 = require_identity();
|
|
98292
98292
|
var Node = require_Node();
|
|
98293
|
-
function collectionFromPath(schema,
|
|
98293
|
+
function collectionFromPath(schema, path48, value) {
|
|
98294
98294
|
let v = value;
|
|
98295
|
-
for (let i =
|
|
98296
|
-
const k =
|
|
98295
|
+
for (let i = path48.length - 1; i >= 0; --i) {
|
|
98296
|
+
const k = path48[i];
|
|
98297
98297
|
if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
|
|
98298
98298
|
const a = [];
|
|
98299
98299
|
a[k] = v;
|
|
@@ -98312,7 +98312,7 @@ var require_Collection = __commonJS({
|
|
|
98312
98312
|
sourceObjects: /* @__PURE__ */ new Map()
|
|
98313
98313
|
});
|
|
98314
98314
|
}
|
|
98315
|
-
var isEmptyPath = (
|
|
98315
|
+
var isEmptyPath = (path48) => path48 == null || typeof path48 === "object" && !!path48[Symbol.iterator]().next().done;
|
|
98316
98316
|
var Collection = class extends Node.NodeBase {
|
|
98317
98317
|
constructor(type, schema) {
|
|
98318
98318
|
super(type);
|
|
@@ -98342,11 +98342,11 @@ var require_Collection = __commonJS({
|
|
|
98342
98342
|
* be a Pair instance or a `{ key, value }` object, which may not have a key
|
|
98343
98343
|
* that already exists in the map.
|
|
98344
98344
|
*/
|
|
98345
|
-
addIn(
|
|
98346
|
-
if (isEmptyPath(
|
|
98345
|
+
addIn(path48, value) {
|
|
98346
|
+
if (isEmptyPath(path48))
|
|
98347
98347
|
this.add(value);
|
|
98348
98348
|
else {
|
|
98349
|
-
const [key2, ...rest] =
|
|
98349
|
+
const [key2, ...rest] = path48;
|
|
98350
98350
|
const node2 = this.get(key2, true);
|
|
98351
98351
|
if (identity2.isCollection(node2))
|
|
98352
98352
|
node2.addIn(rest, value);
|
|
@@ -98360,8 +98360,8 @@ var require_Collection = __commonJS({
|
|
|
98360
98360
|
* Removes a value from the collection.
|
|
98361
98361
|
* @returns `true` if the item was found and removed.
|
|
98362
98362
|
*/
|
|
98363
|
-
deleteIn(
|
|
98364
|
-
const [key2, ...rest] =
|
|
98363
|
+
deleteIn(path48) {
|
|
98364
|
+
const [key2, ...rest] = path48;
|
|
98365
98365
|
if (rest.length === 0)
|
|
98366
98366
|
return this.delete(key2);
|
|
98367
98367
|
const node2 = this.get(key2, true);
|
|
@@ -98375,8 +98375,8 @@ var require_Collection = __commonJS({
|
|
|
98375
98375
|
* scalar values from their surrounding node; to disable set `keepScalar` to
|
|
98376
98376
|
* `true` (collections are always returned intact).
|
|
98377
98377
|
*/
|
|
98378
|
-
getIn(
|
|
98379
|
-
const [key2, ...rest] =
|
|
98378
|
+
getIn(path48, keepScalar) {
|
|
98379
|
+
const [key2, ...rest] = path48;
|
|
98380
98380
|
const node2 = this.get(key2, true);
|
|
98381
98381
|
if (rest.length === 0)
|
|
98382
98382
|
return !keepScalar && identity2.isScalar(node2) ? node2.value : node2;
|
|
@@ -98394,8 +98394,8 @@ var require_Collection = __commonJS({
|
|
|
98394
98394
|
/**
|
|
98395
98395
|
* Checks if the collection includes a value with the key `key`.
|
|
98396
98396
|
*/
|
|
98397
|
-
hasIn(
|
|
98398
|
-
const [key2, ...rest] =
|
|
98397
|
+
hasIn(path48) {
|
|
98398
|
+
const [key2, ...rest] = path48;
|
|
98399
98399
|
if (rest.length === 0)
|
|
98400
98400
|
return this.has(key2);
|
|
98401
98401
|
const node2 = this.get(key2, true);
|
|
@@ -98405,8 +98405,8 @@ var require_Collection = __commonJS({
|
|
|
98405
98405
|
* Sets a value in this collection. For `!!set`, `value` needs to be a
|
|
98406
98406
|
* boolean to add/remove the item from the set.
|
|
98407
98407
|
*/
|
|
98408
|
-
setIn(
|
|
98409
|
-
const [key2, ...rest] =
|
|
98408
|
+
setIn(path48, value) {
|
|
98409
|
+
const [key2, ...rest] = path48;
|
|
98410
98410
|
if (rest.length === 0) {
|
|
98411
98411
|
this.set(key2, value);
|
|
98412
98412
|
} else {
|
|
@@ -100956,9 +100956,9 @@ var require_Document = __commonJS({
|
|
|
100956
100956
|
this.contents.add(value);
|
|
100957
100957
|
}
|
|
100958
100958
|
/** Adds a value to the document. */
|
|
100959
|
-
addIn(
|
|
100959
|
+
addIn(path48, value) {
|
|
100960
100960
|
if (assertCollection(this.contents))
|
|
100961
|
-
this.contents.addIn(
|
|
100961
|
+
this.contents.addIn(path48, value);
|
|
100962
100962
|
}
|
|
100963
100963
|
/**
|
|
100964
100964
|
* Create a new `Alias` node, ensuring that the target `node` has the required anchor.
|
|
@@ -101033,14 +101033,14 @@ var require_Document = __commonJS({
|
|
|
101033
101033
|
* Removes a value from the document.
|
|
101034
101034
|
* @returns `true` if the item was found and removed.
|
|
101035
101035
|
*/
|
|
101036
|
-
deleteIn(
|
|
101037
|
-
if (Collection.isEmptyPath(
|
|
101036
|
+
deleteIn(path48) {
|
|
101037
|
+
if (Collection.isEmptyPath(path48)) {
|
|
101038
101038
|
if (this.contents == null)
|
|
101039
101039
|
return false;
|
|
101040
101040
|
this.contents = null;
|
|
101041
101041
|
return true;
|
|
101042
101042
|
}
|
|
101043
|
-
return assertCollection(this.contents) ? this.contents.deleteIn(
|
|
101043
|
+
return assertCollection(this.contents) ? this.contents.deleteIn(path48) : false;
|
|
101044
101044
|
}
|
|
101045
101045
|
/**
|
|
101046
101046
|
* Returns item at `key`, or `undefined` if not found. By default unwraps
|
|
@@ -101055,10 +101055,10 @@ var require_Document = __commonJS({
|
|
|
101055
101055
|
* scalar values from their surrounding node; to disable set `keepScalar` to
|
|
101056
101056
|
* `true` (collections are always returned intact).
|
|
101057
101057
|
*/
|
|
101058
|
-
getIn(
|
|
101059
|
-
if (Collection.isEmptyPath(
|
|
101058
|
+
getIn(path48, keepScalar) {
|
|
101059
|
+
if (Collection.isEmptyPath(path48))
|
|
101060
101060
|
return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
|
|
101061
|
-
return identity2.isCollection(this.contents) ? this.contents.getIn(
|
|
101061
|
+
return identity2.isCollection(this.contents) ? this.contents.getIn(path48, keepScalar) : void 0;
|
|
101062
101062
|
}
|
|
101063
101063
|
/**
|
|
101064
101064
|
* Checks if the document includes a value with the key `key`.
|
|
@@ -101069,10 +101069,10 @@ var require_Document = __commonJS({
|
|
|
101069
101069
|
/**
|
|
101070
101070
|
* Checks if the document includes a value at `path`.
|
|
101071
101071
|
*/
|
|
101072
|
-
hasIn(
|
|
101073
|
-
if (Collection.isEmptyPath(
|
|
101072
|
+
hasIn(path48) {
|
|
101073
|
+
if (Collection.isEmptyPath(path48))
|
|
101074
101074
|
return this.contents !== void 0;
|
|
101075
|
-
return identity2.isCollection(this.contents) ? this.contents.hasIn(
|
|
101075
|
+
return identity2.isCollection(this.contents) ? this.contents.hasIn(path48) : false;
|
|
101076
101076
|
}
|
|
101077
101077
|
/**
|
|
101078
101078
|
* Sets a value in this document. For `!!set`, `value` needs to be a
|
|
@@ -101089,13 +101089,13 @@ var require_Document = __commonJS({
|
|
|
101089
101089
|
* Sets a value in this document. For `!!set`, `value` needs to be a
|
|
101090
101090
|
* boolean to add/remove the item from the set.
|
|
101091
101091
|
*/
|
|
101092
|
-
setIn(
|
|
101093
|
-
if (Collection.isEmptyPath(
|
|
101092
|
+
setIn(path48, value) {
|
|
101093
|
+
if (Collection.isEmptyPath(path48)) {
|
|
101094
101094
|
this.contents = value;
|
|
101095
101095
|
} else if (this.contents == null) {
|
|
101096
|
-
this.contents = Collection.collectionFromPath(this.schema, Array.from(
|
|
101096
|
+
this.contents = Collection.collectionFromPath(this.schema, Array.from(path48), value);
|
|
101097
101097
|
} else if (assertCollection(this.contents)) {
|
|
101098
|
-
this.contents.setIn(
|
|
101098
|
+
this.contents.setIn(path48, value);
|
|
101099
101099
|
}
|
|
101100
101100
|
}
|
|
101101
101101
|
/**
|
|
@@ -103075,9 +103075,9 @@ var require_cst_visit = __commonJS({
|
|
|
103075
103075
|
visit2.BREAK = BREAK;
|
|
103076
103076
|
visit2.SKIP = SKIP2;
|
|
103077
103077
|
visit2.REMOVE = REMOVE;
|
|
103078
|
-
visit2.itemAtPath = (cst,
|
|
103078
|
+
visit2.itemAtPath = (cst, path48) => {
|
|
103079
103079
|
let item = cst;
|
|
103080
|
-
for (const [field, index2] of
|
|
103080
|
+
for (const [field, index2] of path48) {
|
|
103081
103081
|
const tok = item?.[field];
|
|
103082
103082
|
if (tok && "items" in tok) {
|
|
103083
103083
|
item = tok.items[index2];
|
|
@@ -103086,23 +103086,23 @@ var require_cst_visit = __commonJS({
|
|
|
103086
103086
|
}
|
|
103087
103087
|
return item;
|
|
103088
103088
|
};
|
|
103089
|
-
visit2.parentCollection = (cst,
|
|
103090
|
-
const parent = visit2.itemAtPath(cst,
|
|
103091
|
-
const field =
|
|
103089
|
+
visit2.parentCollection = (cst, path48) => {
|
|
103090
|
+
const parent = visit2.itemAtPath(cst, path48.slice(0, -1));
|
|
103091
|
+
const field = path48[path48.length - 1][0];
|
|
103092
103092
|
const coll = parent?.[field];
|
|
103093
103093
|
if (coll && "items" in coll)
|
|
103094
103094
|
return coll;
|
|
103095
103095
|
throw new Error("Parent collection not found");
|
|
103096
103096
|
};
|
|
103097
|
-
function _visit(
|
|
103098
|
-
let ctrl = visitor(item,
|
|
103097
|
+
function _visit(path48, item, visitor) {
|
|
103098
|
+
let ctrl = visitor(item, path48);
|
|
103099
103099
|
if (typeof ctrl === "symbol")
|
|
103100
103100
|
return ctrl;
|
|
103101
103101
|
for (const field of ["key", "value"]) {
|
|
103102
103102
|
const token = item[field];
|
|
103103
103103
|
if (token && "items" in token) {
|
|
103104
103104
|
for (let i = 0; i < token.items.length; ++i) {
|
|
103105
|
-
const ci = _visit(Object.freeze(
|
|
103105
|
+
const ci = _visit(Object.freeze(path48.concat([[field, i]])), token.items[i], visitor);
|
|
103106
103106
|
if (typeof ci === "number")
|
|
103107
103107
|
i = ci - 1;
|
|
103108
103108
|
else if (ci === BREAK)
|
|
@@ -103113,10 +103113,10 @@ var require_cst_visit = __commonJS({
|
|
|
103113
103113
|
}
|
|
103114
103114
|
}
|
|
103115
103115
|
if (typeof ctrl === "function" && field === "key")
|
|
103116
|
-
ctrl = ctrl(item,
|
|
103116
|
+
ctrl = ctrl(item, path48);
|
|
103117
103117
|
}
|
|
103118
103118
|
}
|
|
103119
|
-
return typeof ctrl === "function" ? ctrl(item,
|
|
103119
|
+
return typeof ctrl === "function" ? ctrl(item, path48) : ctrl;
|
|
103120
103120
|
}
|
|
103121
103121
|
exports2.visit = visit2;
|
|
103122
103122
|
}
|
|
@@ -104422,14 +104422,14 @@ var require_parser = __commonJS({
|
|
|
104422
104422
|
case "scalar":
|
|
104423
104423
|
case "single-quoted-scalar":
|
|
104424
104424
|
case "double-quoted-scalar": {
|
|
104425
|
-
const
|
|
104425
|
+
const fs44 = this.flowScalar(this.type);
|
|
104426
104426
|
if (atNextItem || it.value) {
|
|
104427
|
-
map3.items.push({ start, key:
|
|
104427
|
+
map3.items.push({ start, key: fs44, sep: [] });
|
|
104428
104428
|
this.onKeyLine = true;
|
|
104429
104429
|
} else if (it.sep) {
|
|
104430
|
-
this.stack.push(
|
|
104430
|
+
this.stack.push(fs44);
|
|
104431
104431
|
} else {
|
|
104432
|
-
Object.assign(it, { key:
|
|
104432
|
+
Object.assign(it, { key: fs44, sep: [] });
|
|
104433
104433
|
this.onKeyLine = true;
|
|
104434
104434
|
}
|
|
104435
104435
|
return;
|
|
@@ -104557,13 +104557,13 @@ var require_parser = __commonJS({
|
|
|
104557
104557
|
case "scalar":
|
|
104558
104558
|
case "single-quoted-scalar":
|
|
104559
104559
|
case "double-quoted-scalar": {
|
|
104560
|
-
const
|
|
104560
|
+
const fs44 = this.flowScalar(this.type);
|
|
104561
104561
|
if (!it || it.value)
|
|
104562
|
-
fc.items.push({ start: [], key:
|
|
104562
|
+
fc.items.push({ start: [], key: fs44, sep: [] });
|
|
104563
104563
|
else if (it.sep)
|
|
104564
|
-
this.stack.push(
|
|
104564
|
+
this.stack.push(fs44);
|
|
104565
104565
|
else
|
|
104566
|
-
Object.assign(it, { key:
|
|
104566
|
+
Object.assign(it, { key: fs44, sep: [] });
|
|
104567
104567
|
return;
|
|
104568
104568
|
}
|
|
104569
104569
|
case "flow-map-end":
|
|
@@ -113270,7 +113270,7 @@ var require_FileConfigFactory = __commonJS({
|
|
|
113270
113270
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
113271
113271
|
exports2.parseConfigFile = exports2.FileConfigFactory = void 0;
|
|
113272
113272
|
var core_1 = (init_esm11(), __toCommonJS(esm_exports4));
|
|
113273
|
-
var
|
|
113273
|
+
var fs44 = require("fs");
|
|
113274
113274
|
var yaml = require_dist5();
|
|
113275
113275
|
var utils_1 = require_utils5();
|
|
113276
113276
|
var validateConfig = require_validator();
|
|
@@ -113287,7 +113287,7 @@ var require_FileConfigFactory = __commonJS({
|
|
|
113287
113287
|
function parseConfigFile() {
|
|
113288
113288
|
const supportedFileVersionPattern = /^1\.0$/;
|
|
113289
113289
|
const configFile = (0, core_1.getStringFromEnv)("OTEL_CONFIG_FILE") || "";
|
|
113290
|
-
const file =
|
|
113290
|
+
const file = fs44.readFileSync(configFile, "utf8");
|
|
113291
113291
|
const rawParsed = yaml.parse(file);
|
|
113292
113292
|
const processed = substituteEnvVars(rawParsed);
|
|
113293
113293
|
const fileFormat = processed?.file_format;
|
|
@@ -114162,9 +114162,9 @@ __export(getMachineId_linux_exports2, {
|
|
|
114162
114162
|
});
|
|
114163
114163
|
async function getMachineId8() {
|
|
114164
114164
|
const paths = ["/etc/machine-id", "/var/lib/dbus/machine-id"];
|
|
114165
|
-
for (const
|
|
114165
|
+
for (const path48 of paths) {
|
|
114166
114166
|
try {
|
|
114167
|
-
const result = await import_fs4.promises.readFile(
|
|
114167
|
+
const result = await import_fs4.promises.readFile(path48, { encoding: "utf8" });
|
|
114168
114168
|
return result.trim();
|
|
114169
114169
|
} catch (e) {
|
|
114170
114170
|
diag2.debug(`error reading machine id: ${e}`);
|
|
@@ -114373,14 +114373,14 @@ var init_OSDetector2 = __esm({
|
|
|
114373
114373
|
});
|
|
114374
114374
|
|
|
114375
114375
|
// ../../node_modules/.pnpm/@opentelemetry+resources@2.8.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/ProcessDetector.js
|
|
114376
|
-
var
|
|
114376
|
+
var os10, ProcessDetector2, processDetector2;
|
|
114377
114377
|
var init_ProcessDetector2 = __esm({
|
|
114378
114378
|
"../../node_modules/.pnpm/@opentelemetry+resources@2.8.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/ProcessDetector.js"() {
|
|
114379
114379
|
"use strict";
|
|
114380
114380
|
init_cjs_shims();
|
|
114381
114381
|
init_esm8();
|
|
114382
114382
|
init_semconv5();
|
|
114383
|
-
|
|
114383
|
+
os10 = __toESM(require("os"));
|
|
114384
114384
|
ProcessDetector2 = class {
|
|
114385
114385
|
detect(_config) {
|
|
114386
114386
|
const attributes = {
|
|
@@ -114400,7 +114400,7 @@ var init_ProcessDetector2 = __esm({
|
|
|
114400
114400
|
attributes[ATTR_PROCESS_COMMAND2] = process.argv[1];
|
|
114401
114401
|
}
|
|
114402
114402
|
try {
|
|
114403
|
-
const userInfo4 =
|
|
114403
|
+
const userInfo4 = os10.userInfo();
|
|
114404
114404
|
attributes[ATTR_PROCESS_OWNER2] = userInfo4.username;
|
|
114405
114405
|
} catch (e) {
|
|
114406
114406
|
diag2.debug(`error obtaining process owner: ${e}`);
|
|
@@ -114844,13 +114844,13 @@ var init_constants5 = __esm({
|
|
|
114844
114844
|
});
|
|
114845
114845
|
|
|
114846
114846
|
// ../../node_modules/.pnpm/@azure+monitor-opentelemetry-exporter@1.0.0-beta.42/node_modules/@azure/monitor-opentelemetry-exporter/dist/esm/platform/nodejs/persist/fileAccessControl.js
|
|
114847
|
-
var
|
|
114847
|
+
var import_node_fs5, import_node_os7, import_node_child_process16, import_node_process6, FileAccessControl;
|
|
114848
114848
|
var init_fileAccessControl = __esm({
|
|
114849
114849
|
"../../node_modules/.pnpm/@azure+monitor-opentelemetry-exporter@1.0.0-beta.42/node_modules/@azure/monitor-opentelemetry-exporter/dist/esm/platform/nodejs/persist/fileAccessControl.js"() {
|
|
114850
114850
|
"use strict";
|
|
114851
114851
|
init_cjs_shims();
|
|
114852
|
-
|
|
114853
|
-
|
|
114852
|
+
import_node_fs5 = require("fs");
|
|
114853
|
+
import_node_os7 = require("os");
|
|
114854
114854
|
import_node_child_process16 = require("child_process");
|
|
114855
114855
|
init_esm8();
|
|
114856
114856
|
import_node_process6 = __toESM(require("process"), 1);
|
|
@@ -114861,14 +114861,14 @@ var init_fileAccessControl = __esm({
|
|
|
114861
114861
|
static ACL_IDENTITY = null;
|
|
114862
114862
|
static OS_FILE_PROTECTION_CHECKED = false;
|
|
114863
114863
|
static OS_PROVIDES_FILE_PROTECTION = false;
|
|
114864
|
-
static USE_ICACLS = (0,
|
|
114864
|
+
static USE_ICACLS = (0, import_node_os7.type)() === "Windows_NT";
|
|
114865
114865
|
// Check if file access control could be enabled
|
|
114866
114866
|
static checkFileProtection() {
|
|
114867
114867
|
if (!_FileAccessControl.OS_PROVIDES_FILE_PROTECTION && !_FileAccessControl.OS_FILE_PROTECTION_CHECKED) {
|
|
114868
114868
|
_FileAccessControl.OS_FILE_PROTECTION_CHECKED = true;
|
|
114869
114869
|
if (_FileAccessControl.USE_ICACLS) {
|
|
114870
114870
|
try {
|
|
114871
|
-
_FileAccessControl.OS_PROVIDES_FILE_PROTECTION = (0,
|
|
114871
|
+
_FileAccessControl.OS_PROVIDES_FILE_PROTECTION = (0, import_node_fs5.existsSync)(_FileAccessControl.ICACLS_PATH);
|
|
114872
114872
|
} catch (e) {
|
|
114873
114873
|
}
|
|
114874
114874
|
if (!_FileAccessControl.OS_PROVIDES_FILE_PROTECTION) {
|
|
@@ -114999,20 +114999,20 @@ var init_fileAccessControl = __esm({
|
|
|
114999
114999
|
});
|
|
115000
115000
|
|
|
115001
115001
|
// ../../node_modules/.pnpm/@azure+monitor-opentelemetry-exporter@1.0.0-beta.42/node_modules/@azure/monitor-opentelemetry-exporter/dist/esm/platform/nodejs/persist/fileSystemHelpers.js
|
|
115002
|
-
var
|
|
115002
|
+
var import_node_path7, import_promises7, getShallowDirectorySize2, confirmDirExists2;
|
|
115003
115003
|
var init_fileSystemHelpers = __esm({
|
|
115004
115004
|
"../../node_modules/.pnpm/@azure+monitor-opentelemetry-exporter@1.0.0-beta.42/node_modules/@azure/monitor-opentelemetry-exporter/dist/esm/platform/nodejs/persist/fileSystemHelpers.js"() {
|
|
115005
115005
|
"use strict";
|
|
115006
115006
|
init_cjs_shims();
|
|
115007
115007
|
init_esm8();
|
|
115008
|
-
|
|
115008
|
+
import_node_path7 = require("path");
|
|
115009
115009
|
import_promises7 = require("fs/promises");
|
|
115010
115010
|
getShallowDirectorySize2 = async (directory) => {
|
|
115011
115011
|
let totalSize = 0;
|
|
115012
115012
|
try {
|
|
115013
115013
|
const files = await (0, import_promises7.readdir)(directory);
|
|
115014
115014
|
for (const file of files) {
|
|
115015
|
-
const fileStats = await (0, import_promises7.stat)((0,
|
|
115015
|
+
const fileStats = await (0, import_promises7.stat)((0, import_node_path7.join)(directory, file));
|
|
115016
115016
|
if (fileStats.isFile()) {
|
|
115017
115017
|
totalSize += fileStats.size;
|
|
115018
115018
|
}
|
|
@@ -115214,7 +115214,7 @@ function getStorageDirectory(instrumentationKey, storageDirectory) {
|
|
|
115214
115214
|
let processName;
|
|
115215
115215
|
let applicationDirectory;
|
|
115216
115216
|
try {
|
|
115217
|
-
const user = (0,
|
|
115217
|
+
const user = (0, import_node_os8.userInfo)();
|
|
115218
115218
|
userSegment = user.username;
|
|
115219
115219
|
} catch (error2) {
|
|
115220
115220
|
userSegment = "";
|
|
@@ -115224,7 +115224,7 @@ function getStorageDirectory(instrumentationKey, storageDirectory) {
|
|
|
115224
115224
|
} else {
|
|
115225
115225
|
processName = "";
|
|
115226
115226
|
}
|
|
115227
|
-
const applicationDir = (0,
|
|
115227
|
+
const applicationDir = (0, import_node_path8.dirname)(process.cwd() || process.argv[1]);
|
|
115228
115228
|
if (applicationDir) {
|
|
115229
115229
|
applicationDirectory = applicationDir;
|
|
115230
115230
|
} else {
|
|
@@ -115247,22 +115247,22 @@ function getStorageDirectory(instrumentationKey, storageDirectory) {
|
|
|
115247
115247
|
if (storageDirectory) {
|
|
115248
115248
|
sharedRoot = storageDirectory;
|
|
115249
115249
|
} else {
|
|
115250
|
-
sharedRoot = (0,
|
|
115250
|
+
sharedRoot = (0, import_node_os8.tmpdir)();
|
|
115251
115251
|
}
|
|
115252
|
-
return (0,
|
|
115252
|
+
return (0, import_node_path8.join)(sharedRoot, "Microsoft-AzureMonitor-" + subDirectory, FileSystemPersist.TEMPDIR_PREFIX + instrumentationKey);
|
|
115253
115253
|
}
|
|
115254
|
-
var
|
|
115254
|
+
var import_node_os8, import_node_path8, import_node_crypto9, import_node_fs6, import_promises8, FileSystemPersist;
|
|
115255
115255
|
var init_fileSystemPersist = __esm({
|
|
115256
115256
|
"../../node_modules/.pnpm/@azure+monitor-opentelemetry-exporter@1.0.0-beta.42/node_modules/@azure/monitor-opentelemetry-exporter/dist/esm/platform/nodejs/persist/fileSystemPersist.js"() {
|
|
115257
115257
|
"use strict";
|
|
115258
115258
|
init_cjs_shims();
|
|
115259
|
-
|
|
115260
|
-
|
|
115259
|
+
import_node_os8 = require("os");
|
|
115260
|
+
import_node_path8 = require("path");
|
|
115261
115261
|
import_node_crypto9 = require("crypto");
|
|
115262
115262
|
init_esm8();
|
|
115263
115263
|
init_fileAccessControl();
|
|
115264
115264
|
init_fileSystemHelpers();
|
|
115265
|
-
|
|
115265
|
+
import_node_fs6 = require("fs");
|
|
115266
115266
|
import_promises8 = require("fs/promises");
|
|
115267
115267
|
init_types10();
|
|
115268
115268
|
FileSystemPersist = class _FileSystemPersist {
|
|
@@ -115348,12 +115348,12 @@ var init_fileSystemPersist = __esm({
|
|
|
115348
115348
|
const stats = await (0, import_promises8.stat)(this._tempDirectory);
|
|
115349
115349
|
if (stats.isDirectory()) {
|
|
115350
115350
|
const origFiles = await (0, import_promises8.readdir)(this._tempDirectory);
|
|
115351
|
-
const files = origFiles.filter((f) => (0,
|
|
115351
|
+
const files = origFiles.filter((f) => (0, import_node_path8.basename)(f).includes(_FileSystemPersist.FILENAME_SUFFIX)).sort();
|
|
115352
115352
|
if (files.length === 0) {
|
|
115353
115353
|
return null;
|
|
115354
115354
|
} else {
|
|
115355
115355
|
const firstFile = files[0];
|
|
115356
|
-
const filePath = (0,
|
|
115356
|
+
const filePath = (0, import_node_path8.join)(this._tempDirectory, firstFile);
|
|
115357
115357
|
const payload = await (0, import_promises8.readFile)(filePath);
|
|
115358
115358
|
await (0, import_promises8.unlink)(filePath);
|
|
115359
115359
|
return payload;
|
|
@@ -115398,10 +115398,10 @@ var init_fileSystemPersist = __esm({
|
|
|
115398
115398
|
return false;
|
|
115399
115399
|
}
|
|
115400
115400
|
const fileName = `${(/* @__PURE__ */ new Date()).getTime()}-${process.hrtime.bigint()}${_FileSystemPersist.FILENAME_SUFFIX}`;
|
|
115401
|
-
const fileFullPath = (0,
|
|
115401
|
+
const fileFullPath = (0, import_node_path8.join)(this._tempDirectory, fileName);
|
|
115402
115402
|
diag2.info(`saving data to disk at: ${fileFullPath}`);
|
|
115403
115403
|
try {
|
|
115404
|
-
const handle3 = await (0, import_promises8.open)(fileFullPath,
|
|
115404
|
+
const handle3 = await (0, import_promises8.open)(fileFullPath, import_node_fs6.constants.O_CREAT | import_node_fs6.constants.O_EXCL | import_node_fs6.constants.O_WRONLY, 384);
|
|
115405
115405
|
try {
|
|
115406
115406
|
await handle3.writeFile(payload);
|
|
115407
115407
|
} finally {
|
|
@@ -115424,7 +115424,7 @@ var init_fileSystemPersist = __esm({
|
|
|
115424
115424
|
const stats = await (0, import_promises8.stat)(this._tempDirectory);
|
|
115425
115425
|
if (stats.isDirectory()) {
|
|
115426
115426
|
const origFiles = await (0, import_promises8.readdir)(this._tempDirectory);
|
|
115427
|
-
const files = origFiles.filter((f) => (0,
|
|
115427
|
+
const files = origFiles.filter((f) => (0, import_node_path8.basename)(f).includes(_FileSystemPersist.FILENAME_SUFFIX));
|
|
115428
115428
|
if (files.length === 0) {
|
|
115429
115429
|
return false;
|
|
115430
115430
|
} else {
|
|
@@ -115432,7 +115432,7 @@ var init_fileSystemPersist = __esm({
|
|
|
115432
115432
|
const fileCreationDate = new Date(parseInt(file.split(_FileSystemPersist.FILENAME_SUFFIX)[0]));
|
|
115433
115433
|
const expired = new Date(+/* @__PURE__ */ new Date() - this.fileRetemptionPeriod) > fileCreationDate;
|
|
115434
115434
|
if (expired) {
|
|
115435
|
-
const filePath = (0,
|
|
115435
|
+
const filePath = (0, import_node_path8.join)(this._tempDirectory, file);
|
|
115436
115436
|
await (0, import_promises8.unlink)(filePath);
|
|
115437
115437
|
}
|
|
115438
115438
|
}
|
|
@@ -118901,7 +118901,7 @@ var init_esm30 = __esm({
|
|
|
118901
118901
|
});
|
|
118902
118902
|
|
|
118903
118903
|
// ../../node_modules/.pnpm/@azure+monitor-opentelemetry-exporter@1.0.0-beta.42/node_modules/@azure/monitor-opentelemetry-exporter/dist/esm/export/statsbeat/statsbeatMetrics.js
|
|
118904
|
-
var
|
|
118904
|
+
var import_node_os9, StatsbeatMetrics;
|
|
118905
118905
|
var init_statsbeatMetrics = __esm({
|
|
118906
118906
|
"../../node_modules/.pnpm/@azure+monitor-opentelemetry-exporter@1.0.0-beta.42/node_modules/@azure/monitor-opentelemetry-exporter/dist/esm/export/statsbeat/statsbeatMetrics.js"() {
|
|
118907
118907
|
"use strict";
|
|
@@ -118909,11 +118909,11 @@ var init_statsbeatMetrics = __esm({
|
|
|
118909
118909
|
init_esm6();
|
|
118910
118910
|
init_esm8();
|
|
118911
118911
|
init_types10();
|
|
118912
|
-
|
|
118912
|
+
import_node_os9 = __toESM(require("os"), 1);
|
|
118913
118913
|
StatsbeatMetrics = class {
|
|
118914
118914
|
resourceProvider = StatsbeatResourceProvider.unknown;
|
|
118915
118915
|
vmInfo = {};
|
|
118916
|
-
os =
|
|
118916
|
+
os = import_node_os9.default.type();
|
|
118917
118917
|
resourceIdentifier = "";
|
|
118918
118918
|
async getResourceProvider() {
|
|
118919
118919
|
this.resourceProvider = StatsbeatResourceProvider.unknown;
|
|
@@ -119333,31 +119333,31 @@ function getClient2(endpoint, credentialsOrPipelineOptions, clientOptions = {})
|
|
|
119333
119333
|
...clientOptions,
|
|
119334
119334
|
pipeline: pipeline3
|
|
119335
119335
|
});
|
|
119336
|
-
const client = (
|
|
119336
|
+
const client = (path48, ...args) => {
|
|
119337
119337
|
return {
|
|
119338
119338
|
get: (requestOptions = {}) => {
|
|
119339
|
-
return tspClient.path(
|
|
119339
|
+
return tspClient.path(path48, ...args).get(wrapRequestParameters(requestOptions));
|
|
119340
119340
|
},
|
|
119341
119341
|
post: (requestOptions = {}) => {
|
|
119342
|
-
return tspClient.path(
|
|
119342
|
+
return tspClient.path(path48, ...args).post(wrapRequestParameters(requestOptions));
|
|
119343
119343
|
},
|
|
119344
119344
|
put: (requestOptions = {}) => {
|
|
119345
|
-
return tspClient.path(
|
|
119345
|
+
return tspClient.path(path48, ...args).put(wrapRequestParameters(requestOptions));
|
|
119346
119346
|
},
|
|
119347
119347
|
patch: (requestOptions = {}) => {
|
|
119348
|
-
return tspClient.path(
|
|
119348
|
+
return tspClient.path(path48, ...args).patch(wrapRequestParameters(requestOptions));
|
|
119349
119349
|
},
|
|
119350
119350
|
delete: (requestOptions = {}) => {
|
|
119351
|
-
return tspClient.path(
|
|
119351
|
+
return tspClient.path(path48, ...args).delete(wrapRequestParameters(requestOptions));
|
|
119352
119352
|
},
|
|
119353
119353
|
head: (requestOptions = {}) => {
|
|
119354
|
-
return tspClient.path(
|
|
119354
|
+
return tspClient.path(path48, ...args).head(wrapRequestParameters(requestOptions));
|
|
119355
119355
|
},
|
|
119356
119356
|
options: (requestOptions = {}) => {
|
|
119357
|
-
return tspClient.path(
|
|
119357
|
+
return tspClient.path(path48, ...args).options(wrapRequestParameters(requestOptions));
|
|
119358
119358
|
},
|
|
119359
119359
|
trace: (requestOptions = {}) => {
|
|
119360
|
-
return tspClient.path(
|
|
119360
|
+
return tspClient.path(path48, ...args).trace(wrapRequestParameters(requestOptions));
|
|
119361
119361
|
}
|
|
119362
119362
|
};
|
|
119363
119363
|
};
|
|
@@ -121547,7 +121547,7 @@ function getCloudRoleInstance(resource) {
|
|
|
121547
121547
|
if (serviceInstanceId) {
|
|
121548
121548
|
return String(serviceInstanceId);
|
|
121549
121549
|
}
|
|
121550
|
-
return
|
|
121550
|
+
return import_node_os10.default && import_node_os10.default.hostname();
|
|
121551
121551
|
}
|
|
121552
121552
|
function isSqlDB(dbSystem) {
|
|
121553
121553
|
return dbSystem === DBSYSTEMVALUES_DB2 || dbSystem === DBSYSTEMVALUES_DERBY || dbSystem === DBSYSTEMVALUES_MARIADB || dbSystem === DBSYSTEMVALUES_MSSQL || dbSystem === DBSYSTEMVALUES_ORACLE || dbSystem === DBSYSTEMVALUES_SQLITE || dbSystem === DBSYSTEMVALUES_OTHER_SQL || dbSystem === DBSYSTEMVALUES_HSQLDB || dbSystem === DBSYSTEMVALUES_H2;
|
|
@@ -121693,12 +121693,12 @@ function truncateCustomDimensions(properties2) {
|
|
|
121693
121693
|
}
|
|
121694
121694
|
return result;
|
|
121695
121695
|
}
|
|
121696
|
-
var
|
|
121696
|
+
var import_node_os10;
|
|
121697
121697
|
var init_common2 = __esm({
|
|
121698
121698
|
"../../node_modules/.pnpm/@azure+monitor-opentelemetry-exporter@1.0.0-beta.42/node_modules/@azure/monitor-opentelemetry-exporter/dist/esm/utils/common.js"() {
|
|
121699
121699
|
"use strict";
|
|
121700
121700
|
init_cjs_shims();
|
|
121701
|
-
|
|
121701
|
+
import_node_os10 = __toESM(require("os"), 1);
|
|
121702
121702
|
init_esm4();
|
|
121703
121703
|
init_esm10();
|
|
121704
121704
|
init_types9();
|
|
@@ -122296,7 +122296,7 @@ var require_import_in_the_middle2 = __commonJS({
|
|
|
122296
122296
|
"../../node_modules/.pnpm/import-in-the-middle@2.0.6/node_modules/import-in-the-middle/index.js"(exports2, module2) {
|
|
122297
122297
|
"use strict";
|
|
122298
122298
|
init_cjs_shims();
|
|
122299
|
-
var
|
|
122299
|
+
var path48 = require("path");
|
|
122300
122300
|
var moduleDetailsFromPath = require_module_details_from_path();
|
|
122301
122301
|
var { fileURLToPath: fileURLToPath3 } = require("url");
|
|
122302
122302
|
var { MessageChannel } = require("worker_threads");
|
|
@@ -122409,7 +122409,7 @@ var require_import_in_the_middle2 = __commonJS({
|
|
|
122409
122409
|
} else if (baseDir.endsWith(specifiers.get(loadUrl))) {
|
|
122410
122410
|
callHookFn(hookFn, namespace, name2, baseDir);
|
|
122411
122411
|
} else if (internals) {
|
|
122412
|
-
const internalPath = name2 +
|
|
122412
|
+
const internalPath = name2 + path48.sep + path48.relative(baseDir, filePath);
|
|
122413
122413
|
callHookFn(hookFn, namespace, internalPath, baseDir);
|
|
122414
122414
|
}
|
|
122415
122415
|
} else if (matchArg === specifier) {
|
|
@@ -122693,26 +122693,26 @@ var require_utils6 = __commonJS({
|
|
|
122693
122693
|
const reqUrlObject = requestUrl || {};
|
|
122694
122694
|
const protocol = reqUrlObject.protocol || fallbackProtocol;
|
|
122695
122695
|
const port = (reqUrlObject.port || "").toString();
|
|
122696
|
-
let
|
|
122696
|
+
let path48 = reqUrlObject.path || "/";
|
|
122697
122697
|
let host = reqUrlObject.host || reqUrlObject.hostname || headers.host || "localhost";
|
|
122698
122698
|
if (host.indexOf(":") === -1 && port && port !== "80" && port !== "443") {
|
|
122699
122699
|
host += `:${port}`;
|
|
122700
122700
|
}
|
|
122701
|
-
if (
|
|
122701
|
+
if (path48.includes("?")) {
|
|
122702
122702
|
try {
|
|
122703
|
-
const parsedUrl = new URL(
|
|
122703
|
+
const parsedUrl = new URL(path48, "http://localhost");
|
|
122704
122704
|
const sensitiveParamsToRedact = redactedQueryParams || [];
|
|
122705
122705
|
for (const sensitiveParam of sensitiveParamsToRedact) {
|
|
122706
122706
|
if (parsedUrl.searchParams.get(sensitiveParam)) {
|
|
122707
122707
|
parsedUrl.searchParams.set(sensitiveParam, internal_types_2.STR_REDACTED);
|
|
122708
122708
|
}
|
|
122709
122709
|
}
|
|
122710
|
-
|
|
122710
|
+
path48 = `${parsedUrl.pathname}${parsedUrl.search}`;
|
|
122711
122711
|
} catch {
|
|
122712
122712
|
}
|
|
122713
122713
|
}
|
|
122714
122714
|
const authPart = reqUrlObject.auth ? `${internal_types_2.STR_REDACTED}:${internal_types_2.STR_REDACTED}@` : "";
|
|
122715
|
-
return `${protocol}//${authPart}${host}${
|
|
122715
|
+
return `${protocol}//${authPart}${host}${path48}`;
|
|
122716
122716
|
};
|
|
122717
122717
|
exports2.getAbsoluteUrl = getAbsoluteUrl;
|
|
122718
122718
|
var parseResponseStatus = (kind, statusCode) => {
|
|
@@ -124865,15 +124865,15 @@ var init_ModuleNameTrie2 = __esm({
|
|
|
124865
124865
|
|
|
124866
124866
|
// ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.217.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/RequireInTheMiddleSingleton.js
|
|
124867
124867
|
function normalizePathSeparators3(moduleNameOrPath) {
|
|
124868
|
-
return
|
|
124868
|
+
return path46.sep !== ModuleNameSeparator3 ? moduleNameOrPath.split(path46.sep).join(ModuleNameSeparator3) : moduleNameOrPath;
|
|
124869
124869
|
}
|
|
124870
|
-
var import_require_in_the_middle5,
|
|
124870
|
+
var import_require_in_the_middle5, path46, isMocha3, RequireInTheMiddleSingleton3;
|
|
124871
124871
|
var init_RequireInTheMiddleSingleton2 = __esm({
|
|
124872
124872
|
"../../node_modules/.pnpm/@opentelemetry+instrumentation@0.217.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/RequireInTheMiddleSingleton.js"() {
|
|
124873
124873
|
"use strict";
|
|
124874
124874
|
init_cjs_shims();
|
|
124875
124875
|
import_require_in_the_middle5 = __toESM(require_require_in_the_middle());
|
|
124876
|
-
|
|
124876
|
+
path46 = __toESM(require("path"));
|
|
124877
124877
|
init_ModuleNameTrie2();
|
|
124878
124878
|
isMocha3 = [
|
|
124879
124879
|
"afterEach",
|
|
@@ -124988,12 +124988,12 @@ function isSupported3(supportedVersions, version3, includePrerelease) {
|
|
|
124988
124988
|
return satisfies3(version3, supportedVersion, { includePrerelease });
|
|
124989
124989
|
});
|
|
124990
124990
|
}
|
|
124991
|
-
var
|
|
124991
|
+
var path47, import_util15, import_import_in_the_middle3, import_require_in_the_middle6, import_fs7, InstrumentationBase3;
|
|
124992
124992
|
var init_instrumentation4 = __esm({
|
|
124993
124993
|
"../../node_modules/.pnpm/@opentelemetry+instrumentation@0.217.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/instrumentation.js"() {
|
|
124994
124994
|
"use strict";
|
|
124995
124995
|
init_cjs_shims();
|
|
124996
|
-
|
|
124996
|
+
path47 = __toESM(require("path"));
|
|
124997
124997
|
import_util15 = require("util");
|
|
124998
124998
|
init_semver3();
|
|
124999
124999
|
init_shimmer2();
|
|
@@ -125094,7 +125094,7 @@ var init_instrumentation4 = __esm({
|
|
|
125094
125094
|
}
|
|
125095
125095
|
_extractPackageVersion(baseDir) {
|
|
125096
125096
|
try {
|
|
125097
|
-
const json = (0, import_fs7.readFileSync)(
|
|
125097
|
+
const json = (0, import_fs7.readFileSync)(path47.join(baseDir, "package.json"), {
|
|
125098
125098
|
encoding: "utf8"
|
|
125099
125099
|
});
|
|
125100
125100
|
const version3 = JSON.parse(json).version;
|
|
@@ -125136,7 +125136,7 @@ var init_instrumentation4 = __esm({
|
|
|
125136
125136
|
return exports2;
|
|
125137
125137
|
}
|
|
125138
125138
|
const files = module2.files ?? [];
|
|
125139
|
-
const normalizedName =
|
|
125139
|
+
const normalizedName = path47.normalize(name2);
|
|
125140
125140
|
const supportedFileInstrumentations = files.filter((f) => f.name === normalizedName && isSupported3(f.supportedVersions, version3, module2.includePrerelease));
|
|
125141
125141
|
return supportedFileInstrumentations.reduce((patchedExports, file) => {
|
|
125142
125142
|
file.moduleExports = patchedExports;
|
|
@@ -125182,8 +125182,8 @@ var init_instrumentation4 = __esm({
|
|
|
125182
125182
|
this._warnOnPreloadedModules();
|
|
125183
125183
|
for (const module2 of this._modules) {
|
|
125184
125184
|
const hookFn = (exports2, name2, baseDir) => {
|
|
125185
|
-
if (!baseDir &&
|
|
125186
|
-
const parsedPath =
|
|
125185
|
+
if (!baseDir && path47.isAbsolute(name2)) {
|
|
125186
|
+
const parsedPath = path47.parse(name2);
|
|
125187
125187
|
name2 = parsedPath.name;
|
|
125188
125188
|
baseDir = parsedPath.dir;
|
|
125189
125189
|
}
|
|
@@ -125192,7 +125192,7 @@ var init_instrumentation4 = __esm({
|
|
|
125192
125192
|
const onRequire = (exports2, name2, baseDir) => {
|
|
125193
125193
|
return this._onRequire(module2, exports2, name2, baseDir);
|
|
125194
125194
|
};
|
|
125195
|
-
const hook =
|
|
125195
|
+
const hook = path47.isAbsolute(module2.name) ? new import_require_in_the_middle6.Hook([module2.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module2.name, onRequire);
|
|
125196
125196
|
this._hooks.push(hook);
|
|
125197
125197
|
const esmHook = new import_import_in_the_middle3.Hook([module2.name], { internals: true }, hookFn);
|
|
125198
125198
|
this._hooks.push(esmHook);
|
|
@@ -136931,7 +136931,7 @@ function parseTask(value) {
|
|
|
136931
136931
|
const status = asTaskStatus(value.status);
|
|
136932
136932
|
const priority = asTaskPriority(value.priority);
|
|
136933
136933
|
const conversationKind = value.conversationKind === void 0 ? "meshyChat" : asTaskConversationKind(value.conversationKind);
|
|
136934
|
-
if (typeof value.id !== "string" || typeof value.title !== "string" || typeof value.description !== "string" || typeof value.agent !== "string" || value.project !== null && typeof value.project !== "string" || value.effectiveProjectPath !== null && value.effectiveProjectPath !== void 0 && typeof value.effectiveProjectPath !== "string" || value.branch !== null && value.branch !== void 0 && typeof value.branch !== "string" || conversationKind === null || !isPlainObject(value.payload) || status === null || priority === null || value.assignedTo !== null && typeof value.assignedTo !== "string" || value.assignedNodeName !== void 0 && value.assignedNodeName !== null && typeof value.assignedNodeName !== "string" || typeof value.createdBy !== "string" || value.result !== null && !isPlainObject(value.result) || value.error !== null && typeof value.error !== "string" || typeof value.retryCount !== "number" || !Number.isFinite(value.retryCount) || typeof value.maxRetries !== "number" || !Number.isFinite(value.maxRetries) || typeof value.createdAt !== "number" || !Number.isFinite(value.createdAt) || typeof value.updatedAt !== "number" || !Number.isFinite(value.updatedAt)) {
|
|
136934
|
+
if (typeof value.id !== "string" || typeof value.title !== "string" || typeof value.description !== "string" || typeof value.agent !== "string" || value.project !== null && typeof value.project !== "string" || value.effectiveProjectPath !== null && value.effectiveProjectPath !== void 0 && typeof value.effectiveProjectPath !== "string" || value.branch !== null && value.branch !== void 0 && typeof value.branch !== "string" || value.pinnedOnTop !== void 0 && typeof value.pinnedOnTop !== "boolean" || conversationKind === null || !isPlainObject(value.payload) || status === null || priority === null || value.assignedTo !== null && typeof value.assignedTo !== "string" || value.assignedNodeName !== void 0 && value.assignedNodeName !== null && typeof value.assignedNodeName !== "string" || typeof value.createdBy !== "string" || value.result !== null && !isPlainObject(value.result) || value.error !== null && typeof value.error !== "string" || typeof value.retryCount !== "number" || !Number.isFinite(value.retryCount) || typeof value.maxRetries !== "number" || !Number.isFinite(value.maxRetries) || typeof value.createdAt !== "number" || !Number.isFinite(value.createdAt) || typeof value.updatedAt !== "number" || !Number.isFinite(value.updatedAt)) {
|
|
136935
136935
|
return null;
|
|
136936
136936
|
}
|
|
136937
136937
|
const queuedMessages = parseTaskQueuedMessages(value.queuedMessages);
|
|
@@ -136944,6 +136944,7 @@ function parseTask(value) {
|
|
|
136944
136944
|
effectiveProjectPath: typeof value.effectiveProjectPath === "string" ? value.effectiveProjectPath : null,
|
|
136945
136945
|
branch: value.branch === void 0 ? void 0 : typeof value.branch === "string" ? value.branch : null,
|
|
136946
136946
|
conversationKind,
|
|
136947
|
+
...typeof value.pinnedOnTop === "boolean" ? { pinnedOnTop: value.pinnedOnTop } : {},
|
|
136947
136948
|
payload: clone(value.payload),
|
|
136948
136949
|
...queuedMessages ? { queuedMessages } : {},
|
|
136949
136950
|
status,
|
|
@@ -137601,19 +137602,19 @@ async function fetchWithTimeout(url3, init, timeoutMs = DEFAULT_NODE_REQUEST_TIM
|
|
|
137601
137602
|
cleanup();
|
|
137602
137603
|
}
|
|
137603
137604
|
}
|
|
137604
|
-
async function fetchNodeWithFallback(node2,
|
|
137605
|
+
async function fetchNodeWithFallback(node2, path48, init, timeoutMs = DEFAULT_NODE_REQUEST_TIMEOUT_MS, trace2, options) {
|
|
137605
137606
|
let lastError;
|
|
137606
137607
|
const endpoints = getNodeRequestEndpoints(node2, options);
|
|
137607
137608
|
for (const [index2, endpoint] of endpoints.entries()) {
|
|
137608
137609
|
const attempt = index2 + 1;
|
|
137609
|
-
trace2?.onAttempt?.({ attempt, endpoint, path:
|
|
137610
|
+
trace2?.onAttempt?.({ attempt, endpoint, path: path48, timeoutMs, totalEndpoints: endpoints.length });
|
|
137610
137611
|
try {
|
|
137611
|
-
const response = await fetchWithTimeout(`${endpoint}${
|
|
137612
|
-
trace2?.onResponse?.({ attempt, endpoint, path:
|
|
137612
|
+
const response = await fetchWithTimeout(`${endpoint}${path48}`, init, timeoutMs);
|
|
137613
|
+
trace2?.onResponse?.({ attempt, endpoint, path: path48, response, timeoutMs, totalEndpoints: endpoints.length });
|
|
137613
137614
|
return { endpoint, response };
|
|
137614
137615
|
} catch (error2) {
|
|
137615
137616
|
lastError = error2;
|
|
137616
|
-
trace2?.onError?.({ attempt, endpoint, error: error2, path:
|
|
137617
|
+
trace2?.onError?.({ attempt, endpoint, error: error2, path: path48, timeoutMs, totalEndpoints: endpoints.length });
|
|
137617
137618
|
}
|
|
137618
137619
|
}
|
|
137619
137620
|
throw lastError instanceof Error ? lastError : new Error("No reachable node endpoint");
|
|
@@ -138277,6 +138278,7 @@ function getPublicTaskUpdates(updates, updatedAt) {
|
|
|
138277
138278
|
if (updates.error !== void 0) publicUpdates.error = updates.error;
|
|
138278
138279
|
if (updates.effectiveProjectPath !== void 0) publicUpdates.effectiveProjectPath = updates.effectiveProjectPath;
|
|
138279
138280
|
if (updates.branch !== void 0) publicUpdates.branch = updates.branch;
|
|
138281
|
+
if (updates.pinnedOnTop !== void 0) publicUpdates.pinnedOnTop = updates.pinnedOnTop;
|
|
138280
138282
|
return publicUpdates;
|
|
138281
138283
|
}
|
|
138282
138284
|
var PRIORITY_ORDER = {
|
|
@@ -138404,7 +138406,10 @@ var TaskEngine = class {
|
|
|
138404
138406
|
const existing = this.store.getTask(id);
|
|
138405
138407
|
if (!existing) return null;
|
|
138406
138408
|
const now = Date.now();
|
|
138407
|
-
const
|
|
138409
|
+
const updateKeys = Object.keys(updates);
|
|
138410
|
+
const isPinnedOnlyUpdate = updateKeys.length === 1 && updateKeys[0] === "pinnedOnTop";
|
|
138411
|
+
const nextUpdatedAt = isPinnedOnlyUpdate ? existing.updatedAt : now;
|
|
138412
|
+
const merged = this.store.updateTask(id, { ...updates, updatedAt: nextUpdatedAt });
|
|
138408
138413
|
if (!merged) return null;
|
|
138409
138414
|
if (updates.status !== void 0 && updates.status !== existing.status) {
|
|
138410
138415
|
const eventData = {
|
|
@@ -139864,9 +139869,9 @@ var DataRouter = class {
|
|
|
139864
139869
|
/**
|
|
139865
139870
|
* Returns true if the request should be proxied to the leader.
|
|
139866
139871
|
*/
|
|
139867
|
-
shouldProxy(method,
|
|
139872
|
+
shouldProxy(method, path48) {
|
|
139868
139873
|
if (this.election.isLeader()) return false;
|
|
139869
|
-
if (this.isExcludedPath(
|
|
139874
|
+
if (this.isExcludedPath(path48)) return false;
|
|
139870
139875
|
if (method.toUpperCase() === "GET") return false;
|
|
139871
139876
|
return WRITE_METHODS.has(method.toUpperCase());
|
|
139872
139877
|
}
|
|
@@ -139970,8 +139975,8 @@ var DataRouter = class {
|
|
|
139970
139975
|
};
|
|
139971
139976
|
}
|
|
139972
139977
|
// ── Helpers ───────────────────────────────────────────────────────────
|
|
139973
|
-
isExcludedPath(
|
|
139974
|
-
return EXCLUDED_PATH_PREFIXES.some((prefix) =>
|
|
139978
|
+
isExcludedPath(path48) {
|
|
139979
|
+
return EXCLUDED_PATH_PREFIXES.some((prefix) => path48.startsWith(prefix)) || EXCLUDED_PATH_SUFFIXES.some((suffix) => path48.endsWith(suffix));
|
|
139975
139980
|
}
|
|
139976
139981
|
};
|
|
139977
139982
|
|
|
@@ -141871,6 +141876,12 @@ function getClaudeStreamError(event) {
|
|
|
141871
141876
|
}
|
|
141872
141877
|
return null;
|
|
141873
141878
|
}
|
|
141879
|
+
function isClaudeStreamSuccess(event) {
|
|
141880
|
+
return event.type === "result" && event.is_error === false;
|
|
141881
|
+
}
|
|
141882
|
+
function getClaudeFailureStderr(stderr) {
|
|
141883
|
+
return stderr.split(/\r?\n/).map((line) => line.replace(/\x1b\[[0-9;]*m/g, "").trim()).filter((line) => line.length > 0).filter((line) => !/claude\.ai connectors are disabled because ANTHROPIC_API_KEY or another auth source is set/i.test(line)).join("\n").trim();
|
|
141884
|
+
}
|
|
141874
141885
|
function isRecord7(value) {
|
|
141875
141886
|
return typeof value === "object" && value !== null;
|
|
141876
141887
|
}
|
|
@@ -141961,11 +141972,13 @@ var ClaudeCodeEngine = class extends ExecutionEngine {
|
|
|
141961
141972
|
let buffer = "";
|
|
141962
141973
|
let stderrBuffer = "";
|
|
141963
141974
|
let streamError = null;
|
|
141975
|
+
let streamSuccess = false;
|
|
141964
141976
|
const processLine = (line) => {
|
|
141965
141977
|
if (!line.trim()) return;
|
|
141966
141978
|
try {
|
|
141967
141979
|
const event = JSON.parse(line);
|
|
141968
141980
|
streamError = getClaudeStreamError(event) ?? streamError;
|
|
141981
|
+
streamSuccess = isClaudeStreamSuccess(event) || streamSuccess;
|
|
141969
141982
|
if (shouldSkipClaudeTranscriptEvent(event)) {
|
|
141970
141983
|
return;
|
|
141971
141984
|
}
|
|
@@ -142005,11 +142018,12 @@ var ClaudeCodeEngine = class extends ExecutionEngine {
|
|
|
142005
142018
|
}
|
|
142006
142019
|
try {
|
|
142007
142020
|
await this.flushLogsAndEmitReady(task.id);
|
|
142008
|
-
|
|
142021
|
+
const stderrError = getClaudeFailureStderr(stderrBuffer);
|
|
142022
|
+
if ((code4 === 0 || streamSuccess && !stderrError) && !streamError) {
|
|
142009
142023
|
this.logger.info("Task completed successfully", { taskId: task.id, title: task.title });
|
|
142010
142024
|
this.taskEngine.reportResult(task.id, { message: `Task "${task.title}" completed` });
|
|
142011
142025
|
} else {
|
|
142012
|
-
const error2 = streamError ||
|
|
142026
|
+
const error2 = streamError || stderrError || `Process exited with code ${code4}`;
|
|
142013
142027
|
this.logger.error("Task failed", { taskId: task.id, title: task.title, exitCode: code4, error: error2 });
|
|
142014
142028
|
this.taskEngine.reportFailure(task.id, error2);
|
|
142015
142029
|
}
|
|
@@ -142092,11 +142106,13 @@ var ClaudeCodeEngine = class extends ExecutionEngine {
|
|
|
142092
142106
|
let buffer = "";
|
|
142093
142107
|
let stderrBuffer = "";
|
|
142094
142108
|
let streamError = null;
|
|
142109
|
+
let streamSuccess = false;
|
|
142095
142110
|
const processLine = (line) => {
|
|
142096
142111
|
if (!line.trim()) return;
|
|
142097
142112
|
try {
|
|
142098
142113
|
const event = JSON.parse(line);
|
|
142099
142114
|
streamError = getClaudeStreamError(event) ?? streamError;
|
|
142115
|
+
streamSuccess = isClaudeStreamSuccess(event) || streamSuccess;
|
|
142100
142116
|
if (shouldSkipClaudeTranscriptEvent(event)) {
|
|
142101
142117
|
return;
|
|
142102
142118
|
}
|
|
@@ -142135,11 +142151,12 @@ var ClaudeCodeEngine = class extends ExecutionEngine {
|
|
|
142135
142151
|
}
|
|
142136
142152
|
try {
|
|
142137
142153
|
await this.flushLogsAndEmitReady(taskId);
|
|
142138
|
-
|
|
142154
|
+
const stderrError = getClaudeFailureStderr(stderrBuffer);
|
|
142155
|
+
if ((code4 === 0 || streamSuccess && !stderrError) && !streamError) {
|
|
142139
142156
|
this.logger.info("Follow-up completed", { taskId, sessionId: session.sessionId });
|
|
142140
142157
|
this.taskEngine.reportResult(taskId, { message: `Task "${session.title}" completed` });
|
|
142141
142158
|
} else {
|
|
142142
|
-
const error2 = streamError ||
|
|
142159
|
+
const error2 = streamError || stderrError || `Process exited with code ${code4}`;
|
|
142143
142160
|
this.logger.error("Follow-up failed", { taskId, sessionId: session.sessionId, exitCode: code4, error: error2 });
|
|
142144
142161
|
this.taskEngine.reportFailure(taskId, error2);
|
|
142145
142162
|
}
|
|
@@ -144978,6 +144995,7 @@ ${joinErrors.map((e) => ` - ${e}`).join("\n")}`
|
|
|
144978
144995
|
this.selfInfo.endpoint = newEndpoint;
|
|
144979
144996
|
this.selfInfo.transportType = transportType;
|
|
144980
144997
|
this.nodeRegistry.updateEndpoint(this.selfInfo.id, newEndpoint);
|
|
144998
|
+
this.nodeRegistry.updateDevTunnelHealth(this.selfInfo.id, void 0);
|
|
144981
144999
|
this.config.transport = newTransportConfig;
|
|
144982
145000
|
this.eventBus.emit("transport.changed", {
|
|
144983
145001
|
nodeId: this.selfInfo.id,
|
|
@@ -146119,6 +146137,7 @@ var TaskListResponse = external_exports.object({
|
|
|
146119
146137
|
effectiveProjectPath: external_exports.string().nullable(),
|
|
146120
146138
|
branch: external_exports.string().nullable().optional(),
|
|
146121
146139
|
conversationKind: external_exports.enum(TASK_CONVERSATION_KIND_OPTIONS).optional(),
|
|
146140
|
+
pinnedOnTop: external_exports.boolean().optional(),
|
|
146122
146141
|
payload: external_exports.record(external_exports.unknown()),
|
|
146123
146142
|
queuedMessages: external_exports.array(external_exports.object({
|
|
146124
146143
|
id: external_exports.string(),
|
|
@@ -146159,7 +146178,8 @@ var UpdateTaskBody = external_exports.object({
|
|
|
146159
146178
|
result: external_exports.record(external_exports.unknown()).nullable().optional(),
|
|
146160
146179
|
error: external_exports.string().nullable().optional(),
|
|
146161
146180
|
effectiveProjectPath: external_exports.string().nullable().optional(),
|
|
146162
|
-
branch: external_exports.string().nullable().optional()
|
|
146181
|
+
branch: external_exports.string().nullable().optional(),
|
|
146182
|
+
pinnedOnTop: external_exports.boolean().optional()
|
|
146163
146183
|
});
|
|
146164
146184
|
var AssignTaskBody = external_exports.object({
|
|
146165
146185
|
nodeId: external_exports.string().min(1)
|
|
@@ -146239,8 +146259,8 @@ var BatchTaskIdsBody = external_exports.object({
|
|
|
146239
146259
|
|
|
146240
146260
|
// ../../packages/api/src/app/server.ts
|
|
146241
146261
|
init_cjs_shims();
|
|
146242
|
-
var
|
|
146243
|
-
var
|
|
146262
|
+
var path34 = __toESM(require("path"), 1);
|
|
146263
|
+
var fs29 = __toESM(require("fs"), 1);
|
|
146244
146264
|
var import_express18 = __toESM(require_express2(), 1);
|
|
146245
146265
|
|
|
146246
146266
|
// ../../packages/api/src/middleware/auth.ts
|
|
@@ -146467,8 +146487,8 @@ function decodePathSegment(value) {
|
|
|
146467
146487
|
return value;
|
|
146468
146488
|
}
|
|
146469
146489
|
}
|
|
146470
|
-
function getSingleTaskDeleteId(
|
|
146471
|
-
const match = /^\/api\/tasks\/([^/]+)$/.exec(
|
|
146490
|
+
function getSingleTaskDeleteId(path48) {
|
|
146491
|
+
const match = /^\/api\/tasks\/([^/]+)$/.exec(path48);
|
|
146472
146492
|
return match ? decodePathSegment(match[1]) : null;
|
|
146473
146493
|
}
|
|
146474
146494
|
function getSuccessfulBatchDeleteIds(body3) {
|
|
@@ -146645,15 +146665,15 @@ function createRequestLoggingMiddleware(rootLogger, options = {}) {
|
|
|
146645
146665
|
return;
|
|
146646
146666
|
}
|
|
146647
146667
|
const startedAt = process.hrtime.bigint();
|
|
146648
|
-
const
|
|
146668
|
+
const path48 = req.path;
|
|
146649
146669
|
let logged = false;
|
|
146650
146670
|
const logCompletion = (closed) => {
|
|
146651
146671
|
if (logged) return;
|
|
146652
146672
|
logged = true;
|
|
146653
146673
|
const throttle = options.throttle;
|
|
146654
|
-
if (throttle && throttle.intervalMs > 0 && throttle.shouldThrottle(req, res, closed,
|
|
146674
|
+
if (throttle && throttle.intervalMs > 0 && throttle.shouldThrottle(req, res, closed, path48)) {
|
|
146655
146675
|
const now = throttle.now?.() ?? Date.now();
|
|
146656
|
-
const key2 = throttle.key?.(req,
|
|
146676
|
+
const key2 = throttle.key?.(req, path48) ?? `${req.method.toUpperCase()} ${path48}`;
|
|
146657
146677
|
const previousLoggedAt = lastLoggedAt.get(key2);
|
|
146658
146678
|
if (previousLoggedAt !== void 0 && now - previousLoggedAt < throttle.intervalMs) {
|
|
146659
146679
|
return;
|
|
@@ -146662,7 +146682,7 @@ function createRequestLoggingMiddleware(rootLogger, options = {}) {
|
|
|
146662
146682
|
}
|
|
146663
146683
|
log2.info("request completed", {
|
|
146664
146684
|
method: req.method,
|
|
146665
|
-
path:
|
|
146685
|
+
path: path48,
|
|
146666
146686
|
statusCode: res.statusCode,
|
|
146667
146687
|
durationMs: durationMs(startedAt),
|
|
146668
146688
|
closed,
|
|
@@ -146740,14 +146760,14 @@ function createRequestTelemetryMiddleware(telemetry, options = {}) {
|
|
|
146740
146760
|
return;
|
|
146741
146761
|
}
|
|
146742
146762
|
const startedAt = process.hrtime.bigint();
|
|
146743
|
-
const
|
|
146763
|
+
const path48 = req.path;
|
|
146744
146764
|
let tracked = false;
|
|
146745
146765
|
const trackCompletion = (closed) => {
|
|
146746
146766
|
if (tracked) return;
|
|
146747
146767
|
tracked = true;
|
|
146748
146768
|
try {
|
|
146749
146769
|
const duration3 = durationMs2(startedAt);
|
|
146750
|
-
const route = resolveTelemetryRoute(
|
|
146770
|
+
const route = resolveTelemetryRoute(path48);
|
|
146751
146771
|
const dimensions = {
|
|
146752
146772
|
method: req.method,
|
|
146753
146773
|
routeGroup: route.routeGroup,
|
|
@@ -148565,7 +148585,11 @@ function isRecord11(value) {
|
|
|
148565
148585
|
// ../../packages/api/src/node/copilot-tunnel-service.ts
|
|
148566
148586
|
init_cjs_shims();
|
|
148567
148587
|
var import_node_child_process10 = require("child_process");
|
|
148588
|
+
var import_node_events = require("events");
|
|
148589
|
+
var import_node_fs = __toESM(require("fs"), 1);
|
|
148568
148590
|
var import_node_net = __toESM(require("net"), 1);
|
|
148591
|
+
var import_node_os4 = __toESM(require("os"), 1);
|
|
148592
|
+
var import_node_path = __toESM(require("path"), 1);
|
|
148569
148593
|
var DEFAULT_HOST = "127.0.0.1";
|
|
148570
148594
|
var DEFAULT_PORT = 8314;
|
|
148571
148595
|
var DEFAULT_OUTPUT_LIMIT_BYTES = 8e3;
|
|
@@ -148578,6 +148602,46 @@ var GHC_TUNNEL_SETUP_ARGS = ["-y", "ghc-tunnel@latest", "--setup", "-d"];
|
|
|
148578
148602
|
var GHC_TUNNEL_READY_PATTERN = /GitHub Copilot API Proxy/i;
|
|
148579
148603
|
var GHC_TUNNEL_API_PATTERN = /^\s*(OpenAI API|Responses API|Anthropic API)\b/im;
|
|
148580
148604
|
var trackedTunnels = /* @__PURE__ */ new Map();
|
|
148605
|
+
var FileTailOutputSource = class extends import_node_events.EventEmitter {
|
|
148606
|
+
constructor(filePath) {
|
|
148607
|
+
super();
|
|
148608
|
+
this.filePath = filePath;
|
|
148609
|
+
this.timer = setInterval(() => this.flush(), 100);
|
|
148610
|
+
this.timer.unref?.();
|
|
148611
|
+
}
|
|
148612
|
+
filePath;
|
|
148613
|
+
timer;
|
|
148614
|
+
offset = 0;
|
|
148615
|
+
flush() {
|
|
148616
|
+
try {
|
|
148617
|
+
const size = import_node_fs.default.statSync(this.filePath).size;
|
|
148618
|
+
if (size <= this.offset) return;
|
|
148619
|
+
const fd = import_node_fs.default.openSync(this.filePath, "r");
|
|
148620
|
+
try {
|
|
148621
|
+
let position4 = this.offset;
|
|
148622
|
+
while (position4 < size) {
|
|
148623
|
+
const buffer = Buffer.alloc(Math.min(64 * 1024, size - position4));
|
|
148624
|
+
const bytesRead = import_node_fs.default.readSync(fd, buffer, 0, buffer.length, position4);
|
|
148625
|
+
if (bytesRead <= 0) break;
|
|
148626
|
+
position4 += bytesRead;
|
|
148627
|
+
this.emit("data", buffer.subarray(0, bytesRead));
|
|
148628
|
+
}
|
|
148629
|
+
this.offset = position4;
|
|
148630
|
+
} finally {
|
|
148631
|
+
import_node_fs.default.closeSync(fd);
|
|
148632
|
+
}
|
|
148633
|
+
} catch {
|
|
148634
|
+
}
|
|
148635
|
+
}
|
|
148636
|
+
stop() {
|
|
148637
|
+
this.flush();
|
|
148638
|
+
if (this.timer) clearInterval(this.timer);
|
|
148639
|
+
this.timer = null;
|
|
148640
|
+
}
|
|
148641
|
+
unref() {
|
|
148642
|
+
this.timer?.unref?.();
|
|
148643
|
+
}
|
|
148644
|
+
};
|
|
148581
148645
|
function createTail() {
|
|
148582
148646
|
return { text: "", observedBytes: 0, truncated: false };
|
|
148583
148647
|
}
|
|
@@ -148592,8 +148656,40 @@ function appendTail(tail, chunk, limitBytes) {
|
|
|
148592
148656
|
function sleep2(ms) {
|
|
148593
148657
|
return new Promise((resolve24) => setTimeout(resolve24, ms));
|
|
148594
148658
|
}
|
|
148659
|
+
function createDetachedOutputLog() {
|
|
148660
|
+
const dir = import_node_fs.default.mkdtempSync(import_node_path.default.join(import_node_os4.default.tmpdir(), "meshy-ghc-tunnel-"));
|
|
148661
|
+
const logPath = import_node_path.default.join(dir, "output.log");
|
|
148662
|
+
const fd = import_node_fs.default.openSync(logPath, "a");
|
|
148663
|
+
return { dir, logPath, fd };
|
|
148664
|
+
}
|
|
148595
148665
|
function defaultSpawnTunnel(command, args, options) {
|
|
148596
|
-
|
|
148666
|
+
const output = createDetachedOutputLog();
|
|
148667
|
+
let child;
|
|
148668
|
+
try {
|
|
148669
|
+
child = (0, import_node_child_process10.spawn)(command, args, {
|
|
148670
|
+
...options,
|
|
148671
|
+
detached: true,
|
|
148672
|
+
stdio: ["ignore", output.fd, output.fd]
|
|
148673
|
+
});
|
|
148674
|
+
} finally {
|
|
148675
|
+
import_node_fs.default.closeSync(output.fd);
|
|
148676
|
+
}
|
|
148677
|
+
const tail = new FileTailOutputSource(output.logPath);
|
|
148678
|
+
const cleanup = () => {
|
|
148679
|
+
tail.stop();
|
|
148680
|
+
import_node_fs.default.rm(output.dir, { recursive: true, force: true }, () => {
|
|
148681
|
+
});
|
|
148682
|
+
};
|
|
148683
|
+
child.once("close", cleanup);
|
|
148684
|
+
child.once("error", cleanup);
|
|
148685
|
+
return {
|
|
148686
|
+
stdout: tail,
|
|
148687
|
+
stderr: null,
|
|
148688
|
+
pid: child.pid,
|
|
148689
|
+
kill: child.kill.bind(child),
|
|
148690
|
+
once: child.once.bind(child),
|
|
148691
|
+
unref: child.unref.bind(child)
|
|
148692
|
+
};
|
|
148597
148693
|
}
|
|
148598
148694
|
function execFileText(command, args) {
|
|
148599
148695
|
return new Promise((resolve24) => {
|
|
@@ -148881,9 +148977,9 @@ async function enableGithubCopilotTunnel(options = {}) {
|
|
|
148881
148977
|
const childState = { exit: null, spawnError: null };
|
|
148882
148978
|
const child = (options.spawnTunnel ?? defaultSpawnTunnel)(invocation.command, invocation.args, {
|
|
148883
148979
|
cwd: options.cwd ?? process.cwd(),
|
|
148980
|
+
detached: true,
|
|
148884
148981
|
shell: false,
|
|
148885
|
-
windowsHide: true
|
|
148886
|
-
stdio: ["ignore", "pipe", "pipe"]
|
|
148982
|
+
windowsHide: true
|
|
148887
148983
|
});
|
|
148888
148984
|
const pid = typeof child.pid === "number" ? child.pid : null;
|
|
148889
148985
|
const publish2 = (status, detail) => {
|
|
@@ -148916,6 +149012,8 @@ ${stderr.text}`) ?? auth;
|
|
|
148916
149012
|
child.stderr?.removeListener?.("data", stderrListener);
|
|
148917
149013
|
child.stdout?.on("data", drainListener);
|
|
148918
149014
|
child.stderr?.on("data", drainListener);
|
|
149015
|
+
child.stdout?.stop?.();
|
|
149016
|
+
child.stderr?.stop?.();
|
|
148919
149017
|
};
|
|
148920
149018
|
const deadline = Date.now() + startupTimeoutMs;
|
|
148921
149019
|
while (Date.now() < deadline) {
|
|
@@ -148949,9 +149047,9 @@ async function runGithubCopilotTunnelSetup(options = {}) {
|
|
|
148949
149047
|
let auth = null;
|
|
148950
149048
|
const child = (options.spawnSetup ?? defaultSpawnTunnel)(invocation.command, invocation.args, {
|
|
148951
149049
|
cwd: options.cwd ?? process.cwd(),
|
|
149050
|
+
detached: true,
|
|
148952
149051
|
shell: false,
|
|
148953
|
-
windowsHide: true
|
|
148954
|
-
stdio: ["ignore", "pipe", "pipe"]
|
|
149052
|
+
windowsHide: true
|
|
148955
149053
|
});
|
|
148956
149054
|
const pid = typeof child.pid === "number" ? child.pid : null;
|
|
148957
149055
|
const publish2 = (status, detail) => {
|
|
@@ -148964,6 +149062,8 @@ async function runGithubCopilotTunnelSetup(options = {}) {
|
|
|
148964
149062
|
child.stderr?.unref?.();
|
|
148965
149063
|
child.stdout?.removeListener?.("data", stdoutListener);
|
|
148966
149064
|
child.stderr?.removeListener?.("data", stderrListener);
|
|
149065
|
+
child.stdout?.stop?.();
|
|
149066
|
+
child.stderr?.stop?.();
|
|
148967
149067
|
child.unref?.();
|
|
148968
149068
|
};
|
|
148969
149069
|
const settle = (result) => {
|
|
@@ -148978,6 +149078,7 @@ ${stderr.text}`) ?? auth;
|
|
|
148978
149078
|
publish2(auth ? "auth-required" : "starting");
|
|
148979
149079
|
if (options.resolveOnReadyOutput && hasGithubCopilotTunnelReadyOutput(`${stdout.text}
|
|
148980
149080
|
${stderr.text}`)) {
|
|
149081
|
+
trackedTunnels.set(tunnelKey(host, port), child);
|
|
148981
149082
|
releaseSetupOutputCapture();
|
|
148982
149083
|
settle(buildResult({ host, port, command, args, pid, status: "available", available: true, stdout, stderr, auth }));
|
|
148983
149084
|
}
|
|
@@ -148994,6 +149095,7 @@ ${stderr.text}`)) {
|
|
|
148994
149095
|
settle(buildResult({ host, port, command, args, pid, status: "failed", available: false, stdout, stderr, auth, detail: message }));
|
|
148995
149096
|
});
|
|
148996
149097
|
child.once("close", (code4, signal) => {
|
|
149098
|
+
if (trackedTunnels.get(tunnelKey(host, port)) === child) trackedTunnels.delete(tunnelKey(host, port));
|
|
148997
149099
|
if (code4 === 0) {
|
|
148998
149100
|
settle(buildResult({ host, port, command, args, pid, status: "available", available: true, stdout, stderr, auth }));
|
|
148999
149101
|
return;
|
|
@@ -149530,7 +149632,7 @@ async function sendNodeWorkDirBranchCreateOperation(req, res, nodeId) {
|
|
|
149530
149632
|
|
|
149531
149633
|
// ../../packages/api/src/tasks/task-route-utils.ts
|
|
149532
149634
|
init_cjs_shims();
|
|
149533
|
-
var
|
|
149635
|
+
var fs22 = __toESM(require("fs"), 1);
|
|
149534
149636
|
var import_node_stream3 = require("stream");
|
|
149535
149637
|
var import_promises5 = require("stream/promises");
|
|
149536
149638
|
|
|
@@ -149596,10 +149698,10 @@ function readLocalTaskLogs(engineRegistry, taskId, after, agent) {
|
|
|
149596
149698
|
throw new MeshyError("VALIDATION_ERROR", `Engine not registered for agent: ${agent}`, 400);
|
|
149597
149699
|
}
|
|
149598
149700
|
const logPath = engine.getLogPath(taskId);
|
|
149599
|
-
if (!
|
|
149701
|
+
if (!fs22.existsSync(logPath)) {
|
|
149600
149702
|
return { logs: [], total: 0 };
|
|
149601
149703
|
}
|
|
149602
|
-
const content3 =
|
|
149704
|
+
const content3 = fs22.readFileSync(logPath, "utf-8");
|
|
149603
149705
|
const allLines = content3.trim().split("\n").filter(Boolean);
|
|
149604
149706
|
const logs4 = [];
|
|
149605
149707
|
for (let i = after; i < allLines.length; i++) {
|
|
@@ -149839,19 +149941,19 @@ var import_node_crypto8 = require("crypto");
|
|
|
149839
149941
|
|
|
149840
149942
|
// ../../packages/api/src/node/node-terminal-service.ts
|
|
149841
149943
|
init_cjs_shims();
|
|
149842
|
-
var
|
|
149843
|
-
var
|
|
149944
|
+
var fs23 = __toESM(require("fs"), 1);
|
|
149945
|
+
var path27 = __toESM(require("path"), 1);
|
|
149844
149946
|
var DEFAULT_OUTPUT_LIMIT_BYTES2 = 64 * 1024;
|
|
149845
149947
|
function isAbsolutePath2(value) {
|
|
149846
|
-
return
|
|
149948
|
+
return path27.isAbsolute(value) || /^[A-Za-z]:[\/]/.test(value);
|
|
149847
149949
|
}
|
|
149848
149950
|
function resolveNodeTerminalCwd(nodeId, rootPath, cwd) {
|
|
149849
149951
|
if (!rootPath) {
|
|
149850
149952
|
throw new MeshyError("VALIDATION_ERROR", `Node ${nodeId} does not expose a working directory`, 400);
|
|
149851
149953
|
}
|
|
149852
149954
|
const requestedCwd = cwd?.trim() || ".";
|
|
149853
|
-
const resolved = isAbsolutePath2(requestedCwd) ?
|
|
149854
|
-
if (!
|
|
149955
|
+
const resolved = isAbsolutePath2(requestedCwd) ? path27.resolve(requestedCwd) : path27.resolve(rootPath, requestedCwd);
|
|
149956
|
+
if (!fs23.existsSync(resolved) || !fs23.statSync(resolved).isDirectory()) {
|
|
149855
149957
|
throw new MeshyError("VALIDATION_ERROR", `Working directory does not exist: ${resolved}`, 400);
|
|
149856
149958
|
}
|
|
149857
149959
|
return resolved;
|
|
@@ -150023,13 +150125,13 @@ ${err.message}` : err.message;
|
|
|
150023
150125
|
|
|
150024
150126
|
// ../../packages/api/src/node/node-native-session-service.ts
|
|
150025
150127
|
init_cjs_shims();
|
|
150026
|
-
var
|
|
150027
|
-
var
|
|
150128
|
+
var fs24 = __toESM(require("fs"), 1);
|
|
150129
|
+
var path28 = __toESM(require("path"), 1);
|
|
150028
150130
|
function defaultHiddenFile() {
|
|
150029
150131
|
return { sessions: [], folders: [] };
|
|
150030
150132
|
}
|
|
150031
150133
|
function getHiddenFilePath(storagePath) {
|
|
150032
|
-
return
|
|
150134
|
+
return path28.join(storagePath, "native-session-hidden.json");
|
|
150033
150135
|
}
|
|
150034
150136
|
function isNativeSessionAgent(value) {
|
|
150035
150137
|
return value === "codex" || value === "claudecode" || value === "copilot";
|
|
@@ -150043,7 +150145,7 @@ function isHiddenFolderEntry(value) {
|
|
|
150043
150145
|
function readHiddenFile(storagePath) {
|
|
150044
150146
|
if (!storagePath) return defaultHiddenFile();
|
|
150045
150147
|
try {
|
|
150046
|
-
const parsed = JSON.parse(
|
|
150148
|
+
const parsed = JSON.parse(fs24.readFileSync(getHiddenFilePath(storagePath), "utf8"));
|
|
150047
150149
|
return {
|
|
150048
150150
|
sessions: Array.isArray(parsed.sessions) ? parsed.sessions.filter(isHiddenSessionEntry) : [],
|
|
150049
150151
|
folders: Array.isArray(parsed.folders) ? parsed.folders.filter(isHiddenFolderEntry) : []
|
|
@@ -150053,8 +150155,8 @@ function readHiddenFile(storagePath) {
|
|
|
150053
150155
|
}
|
|
150054
150156
|
}
|
|
150055
150157
|
function writeHiddenFile(storagePath, hidden) {
|
|
150056
|
-
|
|
150057
|
-
|
|
150158
|
+
fs24.mkdirSync(storagePath, { recursive: true });
|
|
150159
|
+
fs24.writeFileSync(getHiddenFilePath(storagePath), JSON.stringify(hidden, null, 2) + "\n", "utf8");
|
|
150058
150160
|
}
|
|
150059
150161
|
function isHiddenSession(session, hidden) {
|
|
150060
150162
|
return hidden.sessions.some((entry) => entry.agent === session.agent && entry.sessionId === session.sessionId) || hidden.folders.some((entry) => entry.agent === session.agent && entry.cwd === session.cwd);
|
|
@@ -150155,8 +150257,8 @@ function cancelTaskOnCurrentNode(deps, taskId, options = {}) {
|
|
|
150155
150257
|
|
|
150156
150258
|
// ../../packages/api/src/tasks/task-output-service.ts
|
|
150157
150259
|
init_cjs_shims();
|
|
150158
|
-
var
|
|
150159
|
-
var
|
|
150260
|
+
var fs26 = __toESM(require("fs"), 1);
|
|
150261
|
+
var path31 = __toESM(require("path"), 1);
|
|
150160
150262
|
|
|
150161
150263
|
// ../../packages/api/src/preview/index.ts
|
|
150162
150264
|
init_cjs_shims();
|
|
@@ -150164,8 +150266,8 @@ init_cjs_shims();
|
|
|
150164
150266
|
// ../../packages/api/src/preview/preview-server.ts
|
|
150165
150267
|
init_cjs_shims();
|
|
150166
150268
|
var crypto5 = __toESM(require("crypto"), 1);
|
|
150167
|
-
var
|
|
150168
|
-
var
|
|
150269
|
+
var fs25 = __toESM(require("fs"), 1);
|
|
150270
|
+
var path30 = __toESM(require("path"), 1);
|
|
150169
150271
|
var http2 = __toESM(require("http"), 1);
|
|
150170
150272
|
var import_node_stream4 = require("stream");
|
|
150171
150273
|
var import_promises6 = require("stream/promises");
|
|
@@ -162563,7 +162665,7 @@ function transformGfmAutolinkLiterals(tree) {
|
|
|
162563
162665
|
{ ignore: ["link", "linkReference"] }
|
|
162564
162666
|
);
|
|
162565
162667
|
}
|
|
162566
|
-
function findUrl(_, protocol, domain2,
|
|
162668
|
+
function findUrl(_, protocol, domain2, path48, match) {
|
|
162567
162669
|
let prefix = "";
|
|
162568
162670
|
if (!previous(match)) {
|
|
162569
162671
|
return false;
|
|
@@ -162576,7 +162678,7 @@ function findUrl(_, protocol, domain2, path47, match) {
|
|
|
162576
162678
|
if (!isCorrectDomain(domain2)) {
|
|
162577
162679
|
return false;
|
|
162578
162680
|
}
|
|
162579
|
-
const parts = splitUrl(domain2 +
|
|
162681
|
+
const parts = splitUrl(domain2 + path48);
|
|
162580
162682
|
if (!parts[0]) return false;
|
|
162581
162683
|
const result = {
|
|
162582
162684
|
type: "link",
|
|
@@ -166526,7 +166628,7 @@ var domain = {
|
|
|
166526
166628
|
tokenize: tokenizeDomain,
|
|
166527
166629
|
partial: true
|
|
166528
166630
|
};
|
|
166529
|
-
var
|
|
166631
|
+
var path29 = {
|
|
166530
166632
|
tokenize: tokenizePath,
|
|
166531
166633
|
partial: true
|
|
166532
166634
|
};
|
|
@@ -166632,7 +166734,7 @@ function tokenizeWwwAutolink(effects, ok3, nok) {
|
|
|
166632
166734
|
}
|
|
166633
166735
|
effects.enter("literalAutolink");
|
|
166634
166736
|
effects.enter("literalAutolinkWww");
|
|
166635
|
-
return effects.check(wwwPrefix, effects.attempt(domain, effects.attempt(
|
|
166737
|
+
return effects.check(wwwPrefix, effects.attempt(domain, effects.attempt(path29, wwwAfter), nok), nok)(code4);
|
|
166636
166738
|
}
|
|
166637
166739
|
function wwwAfter(code4) {
|
|
166638
166740
|
effects.exit("literalAutolinkWww");
|
|
@@ -166682,7 +166784,7 @@ function tokenizeProtocolAutolink(effects, ok3, nok) {
|
|
|
166682
166784
|
return nok(code4);
|
|
166683
166785
|
}
|
|
166684
166786
|
function afterProtocol(code4) {
|
|
166685
|
-
return code4 === null || asciiControl(code4) || markdownLineEndingOrSpace(code4) || unicodeWhitespace(code4) || unicodePunctuation(code4) ? nok(code4) : effects.attempt(domain, effects.attempt(
|
|
166787
|
+
return code4 === null || asciiControl(code4) || markdownLineEndingOrSpace(code4) || unicodeWhitespace(code4) || unicodePunctuation(code4) ? nok(code4) : effects.attempt(domain, effects.attempt(path29, protocolAfter), nok)(code4);
|
|
166686
166788
|
}
|
|
166687
166789
|
function protocolAfter(code4) {
|
|
166688
166790
|
effects.exit("literalAutolinkHttp");
|
|
@@ -173708,7 +173810,7 @@ VFileMessage.prototype.source = void 0;
|
|
|
173708
173810
|
|
|
173709
173811
|
// ../../node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minpath.js
|
|
173710
173812
|
init_cjs_shims();
|
|
173711
|
-
var
|
|
173813
|
+
var import_node_path2 = __toESM(require("path"), 1);
|
|
173712
173814
|
|
|
173713
173815
|
// ../../node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minproc.js
|
|
173714
173816
|
init_cjs_shims();
|
|
@@ -173802,7 +173904,7 @@ var VFile = class {
|
|
|
173802
173904
|
* Basename.
|
|
173803
173905
|
*/
|
|
173804
173906
|
get basename() {
|
|
173805
|
-
return typeof this.path === "string" ?
|
|
173907
|
+
return typeof this.path === "string" ? import_node_path2.default.basename(this.path) : void 0;
|
|
173806
173908
|
}
|
|
173807
173909
|
/**
|
|
173808
173910
|
* Set basename (including extname) (`'index.min.js'`).
|
|
@@ -173819,7 +173921,7 @@ var VFile = class {
|
|
|
173819
173921
|
set basename(basename6) {
|
|
173820
173922
|
assertNonEmpty(basename6, "basename");
|
|
173821
173923
|
assertPart(basename6, "basename");
|
|
173822
|
-
this.path =
|
|
173924
|
+
this.path = import_node_path2.default.join(this.dirname || "", basename6);
|
|
173823
173925
|
}
|
|
173824
173926
|
/**
|
|
173825
173927
|
* Get the parent path (example: `'~'`).
|
|
@@ -173828,7 +173930,7 @@ var VFile = class {
|
|
|
173828
173930
|
* Dirname.
|
|
173829
173931
|
*/
|
|
173830
173932
|
get dirname() {
|
|
173831
|
-
return typeof this.path === "string" ?
|
|
173933
|
+
return typeof this.path === "string" ? import_node_path2.default.dirname(this.path) : void 0;
|
|
173832
173934
|
}
|
|
173833
173935
|
/**
|
|
173834
173936
|
* Set the parent path (example: `'~'`).
|
|
@@ -173842,7 +173944,7 @@ var VFile = class {
|
|
|
173842
173944
|
*/
|
|
173843
173945
|
set dirname(dirname11) {
|
|
173844
173946
|
assertPath(this.basename, "dirname");
|
|
173845
|
-
this.path =
|
|
173947
|
+
this.path = import_node_path2.default.join(dirname11 || "", this.basename);
|
|
173846
173948
|
}
|
|
173847
173949
|
/**
|
|
173848
173950
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -173851,7 +173953,7 @@ var VFile = class {
|
|
|
173851
173953
|
* Extname.
|
|
173852
173954
|
*/
|
|
173853
173955
|
get extname() {
|
|
173854
|
-
return typeof this.path === "string" ?
|
|
173956
|
+
return typeof this.path === "string" ? import_node_path2.default.extname(this.path) : void 0;
|
|
173855
173957
|
}
|
|
173856
173958
|
/**
|
|
173857
173959
|
* Set the extname (including dot) (example: `'.js'`).
|
|
@@ -173876,7 +173978,7 @@ var VFile = class {
|
|
|
173876
173978
|
throw new Error("`extname` cannot contain multiple dots");
|
|
173877
173979
|
}
|
|
173878
173980
|
}
|
|
173879
|
-
this.path =
|
|
173981
|
+
this.path = import_node_path2.default.join(this.dirname, this.stem + (extname4 || ""));
|
|
173880
173982
|
}
|
|
173881
173983
|
/**
|
|
173882
173984
|
* Get the full path (example: `'~/index.min.js'`).
|
|
@@ -173899,13 +174001,13 @@ var VFile = class {
|
|
|
173899
174001
|
* @returns {undefined}
|
|
173900
174002
|
* Nothing.
|
|
173901
174003
|
*/
|
|
173902
|
-
set path(
|
|
173903
|
-
if (isUrl(
|
|
173904
|
-
|
|
174004
|
+
set path(path48) {
|
|
174005
|
+
if (isUrl(path48)) {
|
|
174006
|
+
path48 = (0, import_node_url.fileURLToPath)(path48);
|
|
173905
174007
|
}
|
|
173906
|
-
assertNonEmpty(
|
|
173907
|
-
if (this.path !==
|
|
173908
|
-
this.history.push(
|
|
174008
|
+
assertNonEmpty(path48, "path");
|
|
174009
|
+
if (this.path !== path48) {
|
|
174010
|
+
this.history.push(path48);
|
|
173909
174011
|
}
|
|
173910
174012
|
}
|
|
173911
174013
|
/**
|
|
@@ -173915,7 +174017,7 @@ var VFile = class {
|
|
|
173915
174017
|
* Stem.
|
|
173916
174018
|
*/
|
|
173917
174019
|
get stem() {
|
|
173918
|
-
return typeof this.path === "string" ?
|
|
174020
|
+
return typeof this.path === "string" ? import_node_path2.default.basename(this.path, this.extname) : void 0;
|
|
173919
174021
|
}
|
|
173920
174022
|
/**
|
|
173921
174023
|
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -173932,7 +174034,7 @@ var VFile = class {
|
|
|
173932
174034
|
set stem(stem) {
|
|
173933
174035
|
assertNonEmpty(stem, "stem");
|
|
173934
174036
|
assertPart(stem, "stem");
|
|
173935
|
-
this.path =
|
|
174037
|
+
this.path = import_node_path2.default.join(this.dirname || "", stem + (this.extname || ""));
|
|
173936
174038
|
}
|
|
173937
174039
|
// Normal prototypal methods.
|
|
173938
174040
|
/**
|
|
@@ -174161,9 +174263,9 @@ var VFile = class {
|
|
|
174161
174263
|
}
|
|
174162
174264
|
};
|
|
174163
174265
|
function assertPart(part, name2) {
|
|
174164
|
-
if (part && part.includes(
|
|
174266
|
+
if (part && part.includes(import_node_path2.default.sep)) {
|
|
174165
174267
|
throw new Error(
|
|
174166
|
-
"`" + name2 + "` cannot be a path: did not expect `" +
|
|
174268
|
+
"`" + name2 + "` cannot be a path: did not expect `" + import_node_path2.default.sep + "`"
|
|
174167
174269
|
);
|
|
174168
174270
|
}
|
|
174169
174271
|
}
|
|
@@ -174172,8 +174274,8 @@ function assertNonEmpty(part, name2) {
|
|
|
174172
174274
|
throw new Error("`" + name2 + "` cannot be empty");
|
|
174173
174275
|
}
|
|
174174
174276
|
}
|
|
174175
|
-
function assertPath(
|
|
174176
|
-
if (!
|
|
174277
|
+
function assertPath(path48, name2) {
|
|
174278
|
+
if (!path48) {
|
|
174177
174279
|
throw new Error("Setting `" + name2 + "` requires `path` to be set too");
|
|
174178
174280
|
}
|
|
174179
174281
|
}
|
|
@@ -174957,19 +175059,19 @@ function buildPreviewWorkerProxyHeaders(req) {
|
|
|
174957
175059
|
// ../../packages/api/src/preview/preview-server.ts
|
|
174958
175060
|
function resolvePreviewPath(rootPath, relativePath) {
|
|
174959
175061
|
const sanitizedPath = relativePath.replace(/\\/g, "/");
|
|
174960
|
-
const resolvedPath =
|
|
174961
|
-
const normalizedRoot =
|
|
174962
|
-
if (!resolvedPath.startsWith(normalizedRoot +
|
|
175062
|
+
const resolvedPath = path30.resolve(rootPath, sanitizedPath);
|
|
175063
|
+
const normalizedRoot = path30.resolve(rootPath);
|
|
175064
|
+
if (!resolvedPath.startsWith(normalizedRoot + path30.sep) && resolvedPath !== normalizedRoot) {
|
|
174963
175065
|
throw new Error("Invalid preview path");
|
|
174964
175066
|
}
|
|
174965
175067
|
return {
|
|
174966
175068
|
absolutePath: resolvedPath,
|
|
174967
|
-
normalizedPath:
|
|
175069
|
+
normalizedPath: path30.relative(normalizedRoot, resolvedPath).split(path30.sep).join("/")
|
|
174968
175070
|
};
|
|
174969
175071
|
}
|
|
174970
175072
|
function resolvePreviewEntryPath(rootPath, entryPath) {
|
|
174971
175073
|
const { absolutePath, normalizedPath } = resolvePreviewPath(rootPath, entryPath ?? "index.html");
|
|
174972
|
-
if (!
|
|
175074
|
+
if (!fs25.existsSync(absolutePath) || !fs25.statSync(absolutePath).isFile()) {
|
|
174973
175075
|
throw new Error("Preview entry not found");
|
|
174974
175076
|
}
|
|
174975
175077
|
return normalizedPath;
|
|
@@ -175071,7 +175173,7 @@ var MIME_MAP2 = {
|
|
|
175071
175173
|
".mdx": "text/markdown"
|
|
175072
175174
|
};
|
|
175073
175175
|
function getMime(filePath) {
|
|
175074
|
-
return MIME_MAP2[
|
|
175176
|
+
return MIME_MAP2[path30.extname(filePath).toLowerCase()] ?? "application/octet-stream";
|
|
175075
175177
|
}
|
|
175076
175178
|
function escapeHtml(value) {
|
|
175077
175179
|
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
@@ -175373,14 +175475,14 @@ async function sendPreviewAssetResponse(sessionManager, token, requestedPath, re
|
|
|
175373
175475
|
res.end("Invalid path");
|
|
175374
175476
|
return;
|
|
175375
175477
|
}
|
|
175376
|
-
if (!
|
|
175478
|
+
if (!fs25.existsSync(resolved) || !fs25.statSync(resolved).isFile()) {
|
|
175377
175479
|
res.writeHead(404, { "Content-Type": "text/plain" });
|
|
175378
175480
|
res.end("File not found");
|
|
175379
175481
|
return;
|
|
175380
175482
|
}
|
|
175381
|
-
const ext =
|
|
175483
|
+
const ext = path30.extname(resolved).toLowerCase();
|
|
175382
175484
|
const mime = ext === ".md" || ext === ".mdx" ? "text/html" : getMime(resolved);
|
|
175383
|
-
const content3 = ext === ".md" || ext === ".mdx" ? renderMarkdownDocument(
|
|
175485
|
+
const content3 = ext === ".md" || ext === ".mdx" ? renderMarkdownDocument(fs25.readFileSync(resolved, "utf8"), path30.basename(resolved)) : fs25.readFileSync(resolved);
|
|
175384
175486
|
res.writeHead(200, {
|
|
175385
175487
|
"Content-Type": mime,
|
|
175386
175488
|
"Content-Length": content3.length,
|
|
@@ -175710,13 +175812,13 @@ function getLocalTaskOutputDownload(taskEngine, taskId, filePath) {
|
|
|
175710
175812
|
const rootPath = getTaskOutputRoot(taskEngine, taskId);
|
|
175711
175813
|
try {
|
|
175712
175814
|
const absolutePath = resolveOutputPath(rootPath, filePath);
|
|
175713
|
-
if (!
|
|
175815
|
+
if (!fs26.existsSync(absolutePath) || !fs26.statSync(absolutePath).isFile()) {
|
|
175714
175816
|
throw new MeshyError("TASK_NOT_FOUND", `File not found: ${filePath}`, 404);
|
|
175715
175817
|
}
|
|
175716
175818
|
const { mimeType } = classifyFile(absolutePath);
|
|
175717
|
-
const fileName =
|
|
175819
|
+
const fileName = path31.basename(absolutePath).replace(/"/g, "");
|
|
175718
175820
|
return {
|
|
175719
|
-
content:
|
|
175821
|
+
content: fs26.readFileSync(absolutePath),
|
|
175720
175822
|
headers: {
|
|
175721
175823
|
"Content-Type": mimeType,
|
|
175722
175824
|
"Content-Disposition": `inline; filename="${fileName}"`,
|
|
@@ -175802,8 +175904,8 @@ async function createNodePreviewSessionPayload(deps, nodeId, options, requestOri
|
|
|
175802
175904
|
|
|
175803
175905
|
// ../../packages/api/src/node/capability-service.ts
|
|
175804
175906
|
init_cjs_shims();
|
|
175805
|
-
var
|
|
175806
|
-
var
|
|
175907
|
+
var fs27 = __toESM(require("fs"), 1);
|
|
175908
|
+
var path32 = __toESM(require("path"), 1);
|
|
175807
175909
|
function getCapabilityService(deps) {
|
|
175808
175910
|
if (deps.capabilityService) return deps.capabilityService;
|
|
175809
175911
|
deps.capabilityService = createDefaultCapabilityService({
|
|
@@ -175813,8 +175915,8 @@ function getCapabilityService(deps) {
|
|
|
175813
175915
|
}
|
|
175814
175916
|
function createKnownProjectPredicate(deps) {
|
|
175815
175917
|
return (projectPath) => {
|
|
175816
|
-
const resolved =
|
|
175817
|
-
if (collectKnownProjectPaths(deps).has(resolved)) return
|
|
175918
|
+
const resolved = path32.resolve(projectPath);
|
|
175919
|
+
if (collectKnownProjectPaths(deps).has(resolved)) return fs27.existsSync(resolved);
|
|
175818
175920
|
const self2 = deps.nodeRegistry.getSelf();
|
|
175819
175921
|
const workDir = self2.workDir ?? deps.workDir;
|
|
175820
175922
|
if (!workDir) return false;
|
|
@@ -175829,15 +175931,15 @@ function collectKnownProjectPaths(deps) {
|
|
|
175829
175931
|
const paths = /* @__PURE__ */ new Set();
|
|
175830
175932
|
const workDir = self2.workDir ?? deps.workDir;
|
|
175831
175933
|
if (workDir) {
|
|
175832
|
-
const resolvedWorkDir =
|
|
175934
|
+
const resolvedWorkDir = path32.resolve(workDir);
|
|
175833
175935
|
paths.add(resolvedWorkDir);
|
|
175834
175936
|
for (const folder of self2.workDirFolders ?? []) {
|
|
175835
|
-
paths.add(
|
|
175937
|
+
paths.add(path32.resolve(resolvedWorkDir, folder));
|
|
175836
175938
|
}
|
|
175837
175939
|
}
|
|
175838
175940
|
const tasks = safeListTasks(deps);
|
|
175839
175941
|
for (const task of tasks) {
|
|
175840
|
-
if (task.effectiveProjectPath) paths.add(
|
|
175942
|
+
if (task.effectiveProjectPath) paths.add(path32.resolve(task.effectiveProjectPath));
|
|
175841
175943
|
}
|
|
175842
175944
|
return paths;
|
|
175843
175945
|
}
|
|
@@ -175849,13 +175951,13 @@ function safeListTasks(deps) {
|
|
|
175849
175951
|
}
|
|
175850
175952
|
}
|
|
175851
175953
|
function isPathInsideOrEqual(parentPath, childPath) {
|
|
175852
|
-
const relative6 =
|
|
175853
|
-
return relative6 === "" || !!relative6 && !relative6.startsWith("..") && !
|
|
175954
|
+
const relative6 = path32.relative(parentPath, childPath);
|
|
175955
|
+
return relative6 === "" || !!relative6 && !relative6.startsWith("..") && !path32.isAbsolute(relative6);
|
|
175854
175956
|
}
|
|
175855
175957
|
function realpathExistingDirectory(value) {
|
|
175856
175958
|
try {
|
|
175857
|
-
if (!
|
|
175858
|
-
return
|
|
175959
|
+
if (!fs27.statSync(value).isDirectory()) return null;
|
|
175960
|
+
return fs27.realpathSync(value);
|
|
175859
175961
|
} catch {
|
|
175860
175962
|
return null;
|
|
175861
175963
|
}
|
|
@@ -178233,19 +178335,27 @@ function buildTaskListResult(tasks, nodeRegistry, options) {
|
|
|
178233
178335
|
}
|
|
178234
178336
|
const completedGroups = [];
|
|
178235
178337
|
for (const group of completedByGroup.values()) {
|
|
178236
|
-
const
|
|
178237
|
-
|
|
178338
|
+
const previewCompleted = group.tasks.slice(0, completedLimit);
|
|
178339
|
+
const visibleCompletedIds = new Set(previewCompleted.map((task) => task.id));
|
|
178340
|
+
for (const task of group.tasks) {
|
|
178341
|
+
if (task.pinnedOnTop === true) {
|
|
178342
|
+
visibleCompletedIds.add(task.id);
|
|
178343
|
+
}
|
|
178344
|
+
}
|
|
178345
|
+
for (const task of group.tasks) {
|
|
178346
|
+
if (!visibleCompletedIds.has(task.id)) continue;
|
|
178238
178347
|
visibleIds.add(task.id);
|
|
178239
178348
|
}
|
|
178240
|
-
const
|
|
178349
|
+
const returned = visibleCompletedIds.size;
|
|
178350
|
+
const hasMore = group.tasks.length > returned;
|
|
178241
178351
|
if (hasMore) {
|
|
178242
178352
|
completedGroups.push({
|
|
178243
178353
|
assignedTo: group.assignedTo,
|
|
178244
178354
|
projectPath: group.projectPath,
|
|
178245
178355
|
total: group.tasks.length,
|
|
178246
|
-
returned
|
|
178356
|
+
returned,
|
|
178247
178357
|
hasMore,
|
|
178248
|
-
nextCursor:
|
|
178358
|
+
nextCursor: previewCompleted.length > 0 ? encodeCursor(previewCompleted[previewCompleted.length - 1]) : null
|
|
178249
178359
|
});
|
|
178250
178360
|
}
|
|
178251
178361
|
}
|
|
@@ -179525,8 +179635,8 @@ var import_express13 = __toESM(require_express2(), 1);
|
|
|
179525
179635
|
|
|
179526
179636
|
// ../../packages/api/src/node/quick-chat-store.ts
|
|
179527
179637
|
init_cjs_shims();
|
|
179528
|
-
var
|
|
179529
|
-
var
|
|
179638
|
+
var fs28 = __toESM(require("fs"), 1);
|
|
179639
|
+
var path33 = __toESM(require("path"), 1);
|
|
179530
179640
|
var QUICK_CHATS_FILE = "quick-chats.json";
|
|
179531
179641
|
var QUICK_CHAT_ALIAS_PATTERN = /^[a-z0-9][a-z0-9_-]{0,63}$/;
|
|
179532
179642
|
function normalizeQuickChatAlias(value) {
|
|
@@ -179565,20 +179675,20 @@ var FileQuickChatStore = class {
|
|
|
179565
179675
|
}
|
|
179566
179676
|
replace(quickChats) {
|
|
179567
179677
|
this.quickChats = normalizeQuickChats(quickChats);
|
|
179568
|
-
|
|
179569
|
-
|
|
179678
|
+
fs28.mkdirSync(this.storagePath, { recursive: true });
|
|
179679
|
+
fs28.writeFileSync(this.filePath, JSON.stringify({ quickChats: this.quickChats }, null, 2) + "\n", "utf8");
|
|
179570
179680
|
return this.list();
|
|
179571
179681
|
}
|
|
179572
179682
|
load() {
|
|
179573
179683
|
try {
|
|
179574
|
-
const parsed = JSON.parse(
|
|
179684
|
+
const parsed = JSON.parse(fs28.readFileSync(this.filePath, "utf8"));
|
|
179575
179685
|
return normalizeQuickChats(parsed.quickChats);
|
|
179576
179686
|
} catch {
|
|
179577
179687
|
return [];
|
|
179578
179688
|
}
|
|
179579
179689
|
}
|
|
179580
179690
|
get filePath() {
|
|
179581
|
-
return
|
|
179691
|
+
return path33.join(this.storagePath, QUICK_CHATS_FILE);
|
|
179582
179692
|
}
|
|
179583
179693
|
};
|
|
179584
179694
|
function createQuickChatStore(storagePath) {
|
|
@@ -180166,8 +180276,8 @@ function hasAuthorizationHeader(req) {
|
|
|
180166
180276
|
function resolveRuntimeBaseDir() {
|
|
180167
180277
|
const entryPath = process.argv[1];
|
|
180168
180278
|
if (typeof entryPath === "string" && entryPath.length > 0) {
|
|
180169
|
-
const resolved =
|
|
180170
|
-
return
|
|
180279
|
+
const resolved = fs29.realpathSync(path34.resolve(entryPath));
|
|
180280
|
+
return path34.dirname(resolved);
|
|
180171
180281
|
}
|
|
180172
180282
|
return process.cwd();
|
|
180173
180283
|
}
|
|
@@ -180175,18 +180285,18 @@ function resolveStaticDir(baseDir) {
|
|
|
180175
180285
|
const envStaticDir = process.env.MESHY_STATIC_DIR;
|
|
180176
180286
|
const candidateDirs = [
|
|
180177
180287
|
envStaticDir,
|
|
180178
|
-
|
|
180179
|
-
|
|
180180
|
-
|
|
180181
|
-
|
|
180182
|
-
|
|
180183
|
-
|
|
180184
|
-
|
|
180185
|
-
|
|
180186
|
-
|
|
180288
|
+
path34.resolve(baseDir, "dashboard"),
|
|
180289
|
+
path34.resolve(baseDir, "../dashboard"),
|
|
180290
|
+
path34.resolve(baseDir, "../../dashboard/dist"),
|
|
180291
|
+
path34.resolve(baseDir, "../../../packages/dashboard/dist"),
|
|
180292
|
+
path34.resolve(baseDir, "../public"),
|
|
180293
|
+
path34.resolve(baseDir, "../../packages/api/public"),
|
|
180294
|
+
path34.resolve(baseDir, "../../../packages/api/public"),
|
|
180295
|
+
path34.resolve(process.cwd(), "packages/dashboard/dist"),
|
|
180296
|
+
path34.resolve(process.cwd(), "packages/api/public")
|
|
180187
180297
|
].filter((value) => typeof value === "string" && value.length > 0);
|
|
180188
180298
|
for (const candidate of candidateDirs) {
|
|
180189
|
-
if (
|
|
180299
|
+
if (fs29.existsSync(candidate)) {
|
|
180190
180300
|
return candidate;
|
|
180191
180301
|
}
|
|
180192
180302
|
}
|
|
@@ -180238,7 +180348,7 @@ function createServer2(deps) {
|
|
|
180238
180348
|
shouldLog: (req) => isApiRequest(req) || isPreviewRequest(req),
|
|
180239
180349
|
throttle: {
|
|
180240
180350
|
intervalMs: REQUEST_LOGGING_THROTTLE_MS,
|
|
180241
|
-
shouldThrottle: (req, res, closed,
|
|
180351
|
+
shouldThrottle: (req, res, closed, path48) => !closed && res.statusCode < 400 && isThrottledRequestLoggingRoute(req.method, path48)
|
|
180242
180352
|
}
|
|
180243
180353
|
}));
|
|
180244
180354
|
app.use(createRequestTelemetryMiddleware(deps.telemetry ?? createNoopTelemetry(), {
|
|
@@ -180330,8 +180440,8 @@ function createServer2(deps) {
|
|
|
180330
180440
|
app.use("/api/telemetry", createTelemetryRoutes());
|
|
180331
180441
|
app.use("/api/events", createEventRoutes());
|
|
180332
180442
|
if (staticDir) {
|
|
180333
|
-
const indexPath =
|
|
180334
|
-
if (
|
|
180443
|
+
const indexPath = path34.join(staticDir, "index.html");
|
|
180444
|
+
if (fs29.existsSync(indexPath)) {
|
|
180335
180445
|
app.get("*", (req, res, next2) => {
|
|
180336
180446
|
if (isApiRequest(req)) {
|
|
180337
180447
|
next2();
|
|
@@ -180438,10 +180548,10 @@ init_cjs_shims();
|
|
|
180438
180548
|
|
|
180439
180549
|
// ../../packages/transport/src/direct.ts
|
|
180440
180550
|
init_cjs_shims();
|
|
180441
|
-
var
|
|
180551
|
+
var import_node_os5 = require("os");
|
|
180442
180552
|
var import_node_http2 = require("http");
|
|
180443
180553
|
function detectLocalIp() {
|
|
180444
|
-
const nets = (0,
|
|
180554
|
+
const nets = (0, import_node_os5.networkInterfaces)();
|
|
180445
180555
|
for (const entries of Object.values(nets)) {
|
|
180446
180556
|
if (!entries) continue;
|
|
180447
180557
|
for (const entry of entries) {
|
|
@@ -180505,8 +180615,8 @@ var DirectTransport = class {
|
|
|
180505
180615
|
// ../../packages/transport/src/devtunnel.ts
|
|
180506
180616
|
init_cjs_shims();
|
|
180507
180617
|
var import_node_child_process12 = require("child_process");
|
|
180508
|
-
var
|
|
180509
|
-
var
|
|
180618
|
+
var fs30 = __toESM(require("fs"), 1);
|
|
180619
|
+
var path35 = __toESM(require("path"), 1);
|
|
180510
180620
|
function hiddenPipeOptions() {
|
|
180511
180621
|
return { stdio: "pipe", windowsHide: true };
|
|
180512
180622
|
}
|
|
@@ -180518,8 +180628,8 @@ function hiddenTextOptions() {
|
|
|
180518
180628
|
}
|
|
180519
180629
|
var DEV_TUNNEL_COMMAND_ENV = "MESHY_DEVTUNNEL_PATH";
|
|
180520
180630
|
function isInstalled(cmd) {
|
|
180521
|
-
if (
|
|
180522
|
-
return
|
|
180631
|
+
if (path35.isAbsolute(cmd)) {
|
|
180632
|
+
return fs30.existsSync(cmd);
|
|
180523
180633
|
}
|
|
180524
180634
|
try {
|
|
180525
180635
|
(0, import_node_child_process12.execFileSync)(process.platform === "win32" ? "where.exe" : "which", [cmd], hiddenPipeOptions());
|
|
@@ -180538,17 +180648,17 @@ function normalizeConfiguredCommand(value) {
|
|
|
180538
180648
|
function windowsLocalAppDataRoots() {
|
|
180539
180649
|
const roots = [
|
|
180540
180650
|
process.env.LOCALAPPDATA,
|
|
180541
|
-
process.env.USERPROFILE ?
|
|
180651
|
+
process.env.USERPROFILE ? path35.join(process.env.USERPROFILE, "AppData", "Local") : void 0
|
|
180542
180652
|
].filter((value) => Boolean(value));
|
|
180543
|
-
return [...new Set(roots.map((root7) =>
|
|
180653
|
+
return [...new Set(roots.map((root7) => path35.resolve(root7)))];
|
|
180544
180654
|
}
|
|
180545
180655
|
function findWindowsDevTunnelPackageExecutable() {
|
|
180546
180656
|
const candidates = [];
|
|
180547
180657
|
for (const localAppData of windowsLocalAppDataRoots()) {
|
|
180548
|
-
const packageRoot =
|
|
180658
|
+
const packageRoot = path35.join(localAppData, "Microsoft", "WinGet", "Packages");
|
|
180549
180659
|
let entries;
|
|
180550
180660
|
try {
|
|
180551
|
-
entries =
|
|
180661
|
+
entries = fs30.readdirSync(packageRoot, { withFileTypes: true });
|
|
180552
180662
|
} catch {
|
|
180553
180663
|
continue;
|
|
180554
180664
|
}
|
|
@@ -180556,8 +180666,8 @@ function findWindowsDevTunnelPackageExecutable() {
|
|
|
180556
180666
|
if (!entry.isDirectory() || !entry.name.toLowerCase().startsWith("microsoft.devtunnel_")) {
|
|
180557
180667
|
continue;
|
|
180558
180668
|
}
|
|
180559
|
-
const executable =
|
|
180560
|
-
if (
|
|
180669
|
+
const executable = path35.join(packageRoot, entry.name, "devtunnel.exe");
|
|
180670
|
+
if (fs30.existsSync(executable)) {
|
|
180561
180671
|
candidates.push(executable);
|
|
180562
180672
|
}
|
|
180563
180673
|
}
|
|
@@ -180939,13 +181049,13 @@ var terminalWriter = {
|
|
|
180939
181049
|
};
|
|
180940
181050
|
|
|
180941
181051
|
// src/startup.ts
|
|
180942
|
-
var
|
|
181052
|
+
var fs32 = __toESM(require("fs"), 1);
|
|
180943
181053
|
var readline2 = __toESM(require("readline/promises"), 1);
|
|
180944
181054
|
|
|
180945
181055
|
// src/startup-tools/index.ts
|
|
180946
181056
|
init_cjs_shims();
|
|
180947
|
-
var
|
|
180948
|
-
var
|
|
181057
|
+
var fs31 = __toESM(require("fs"), 1);
|
|
181058
|
+
var path36 = __toESM(require("path"), 1);
|
|
180949
181059
|
var readline = __toESM(require("readline/promises"), 1);
|
|
180950
181060
|
var import_node_child_process13 = require("child_process");
|
|
180951
181061
|
var STARTUP_REQUIREMENTS = ["az", "devtunnel", "claude", "codex", "copilot"];
|
|
@@ -181010,19 +181120,19 @@ function createDefaultCommandRunner(platform6) {
|
|
|
181010
181120
|
};
|
|
181011
181121
|
}
|
|
181012
181122
|
function getNodeMetadataPath2(storagePath) {
|
|
181013
|
-
return
|
|
181123
|
+
return path36.join(storagePath, "metadata.json");
|
|
181014
181124
|
}
|
|
181015
181125
|
function readStartupMetadataFile(storagePath) {
|
|
181016
181126
|
try {
|
|
181017
|
-
const raw3 = JSON.parse(
|
|
181127
|
+
const raw3 = JSON.parse(fs31.readFileSync(getNodeMetadataPath2(storagePath), "utf-8"));
|
|
181018
181128
|
return typeof raw3 === "object" && raw3 !== null ? raw3 : {};
|
|
181019
181129
|
} catch {
|
|
181020
181130
|
return {};
|
|
181021
181131
|
}
|
|
181022
181132
|
}
|
|
181023
181133
|
function writeStartupMetadataFile(storagePath, metadata) {
|
|
181024
|
-
|
|
181025
|
-
|
|
181134
|
+
fs31.mkdirSync(storagePath, { recursive: true });
|
|
181135
|
+
fs31.writeFileSync(getNodeMetadataPath2(storagePath), JSON.stringify(metadata, null, 2) + "\n", "utf-8");
|
|
181026
181136
|
}
|
|
181027
181137
|
function formatLocalDate2(now) {
|
|
181028
181138
|
const year = now.getFullYear();
|
|
@@ -181527,9 +181637,9 @@ function createRuntimeDefaultConfig(fileConfig, options = {}) {
|
|
|
181527
181637
|
else if (isDevBoxEnvironment()) config2.node.devbox = { enabled: true };
|
|
181528
181638
|
return config2;
|
|
181529
181639
|
}
|
|
181530
|
-
function loadConfigFile(
|
|
181640
|
+
function loadConfigFile(path48) {
|
|
181531
181641
|
try {
|
|
181532
|
-
const raw3 =
|
|
181642
|
+
const raw3 = fs32.readFileSync(path48, "utf-8");
|
|
181533
181643
|
return JSON.parse(raw3);
|
|
181534
181644
|
} catch {
|
|
181535
181645
|
return {};
|
|
@@ -181709,26 +181819,26 @@ function formatLoadedStartMetadata(info, authEnabled) {
|
|
|
181709
181819
|
|
|
181710
181820
|
// src/runtime-metadata.ts
|
|
181711
181821
|
init_cjs_shims();
|
|
181712
|
-
var
|
|
181713
|
-
var
|
|
181822
|
+
var fs33 = __toESM(require("fs"), 1);
|
|
181823
|
+
var path37 = __toESM(require("path"), 1);
|
|
181714
181824
|
var import_node_child_process14 = require("child_process");
|
|
181715
181825
|
var runtimeDir = resolveRuntimeDir();
|
|
181716
181826
|
var appRoot = resolveAppRoot(runtimeDir);
|
|
181717
|
-
var repoRoot =
|
|
181827
|
+
var repoRoot = path37.resolve(appRoot, "../..");
|
|
181718
181828
|
function resolveRuntimeDir() {
|
|
181719
181829
|
const entryPath = process.argv[1];
|
|
181720
181830
|
if (typeof entryPath === "string" && entryPath.length > 0) {
|
|
181721
181831
|
try {
|
|
181722
|
-
return
|
|
181832
|
+
return path37.dirname(fs33.realpathSync(path37.resolve(entryPath)));
|
|
181723
181833
|
} catch {
|
|
181724
|
-
return
|
|
181834
|
+
return path37.dirname(path37.resolve(entryPath));
|
|
181725
181835
|
}
|
|
181726
181836
|
}
|
|
181727
181837
|
return process.cwd();
|
|
181728
181838
|
}
|
|
181729
181839
|
function readJsonFile(filePath) {
|
|
181730
181840
|
try {
|
|
181731
|
-
return JSON.parse(
|
|
181841
|
+
return JSON.parse(fs33.readFileSync(filePath, "utf-8"));
|
|
181732
181842
|
} catch {
|
|
181733
181843
|
return null;
|
|
181734
181844
|
}
|
|
@@ -181738,9 +181848,9 @@ function readPackageManifest(filePath) {
|
|
|
181738
181848
|
}
|
|
181739
181849
|
function readEmbeddedRuntimeMetadata() {
|
|
181740
181850
|
const candidates = [
|
|
181741
|
-
|
|
181742
|
-
|
|
181743
|
-
|
|
181851
|
+
path37.join(appRoot, "runtime-metadata.json"),
|
|
181852
|
+
path37.join(runtimeDir, "runtime-metadata.json"),
|
|
181853
|
+
path37.resolve(process.cwd(), "apps/node/dist/runtime-metadata.json")
|
|
181744
181854
|
];
|
|
181745
181855
|
for (const candidate of candidates) {
|
|
181746
181856
|
const metadata = readJsonFile(candidate);
|
|
@@ -181753,23 +181863,23 @@ function readEmbeddedRuntimeMetadata() {
|
|
|
181753
181863
|
function resolveAppRoot(baseDir) {
|
|
181754
181864
|
const candidates = [
|
|
181755
181865
|
baseDir,
|
|
181756
|
-
|
|
181757
|
-
|
|
181758
|
-
|
|
181866
|
+
path37.resolve(baseDir, ".."),
|
|
181867
|
+
path37.resolve(process.cwd(), "apps/node/dist"),
|
|
181868
|
+
path37.resolve(process.cwd(), "apps/node"),
|
|
181759
181869
|
process.cwd()
|
|
181760
181870
|
];
|
|
181761
181871
|
for (const candidate of candidates) {
|
|
181762
|
-
const manifest = readPackageManifest(
|
|
181872
|
+
const manifest = readPackageManifest(path37.join(candidate, "package.json"));
|
|
181763
181873
|
if (manifest?.name === "@meshy/node" || manifest?.name === "meshy-node") {
|
|
181764
181874
|
return candidate;
|
|
181765
181875
|
}
|
|
181766
181876
|
}
|
|
181767
181877
|
for (const candidate of candidates) {
|
|
181768
|
-
if (
|
|
181878
|
+
if (fs33.existsSync(path37.join(candidate, "package.json"))) {
|
|
181769
181879
|
return candidate;
|
|
181770
181880
|
}
|
|
181771
181881
|
}
|
|
181772
|
-
return
|
|
181882
|
+
return path37.resolve(baseDir, "..");
|
|
181773
181883
|
}
|
|
181774
181884
|
function toPackageInfo(filePath) {
|
|
181775
181885
|
const manifest = readPackageManifest(filePath);
|
|
@@ -181829,8 +181939,8 @@ function buildRuntimeMetadata(storagePath) {
|
|
|
181829
181939
|
components: startupRequirements.components
|
|
181830
181940
|
};
|
|
181831
181941
|
}
|
|
181832
|
-
const appPackage = toPackageInfo(
|
|
181833
|
-
const workspaceManifest = readPackageManifest(
|
|
181942
|
+
const appPackage = toPackageInfo(path37.join(appRoot, "package.json"));
|
|
181943
|
+
const workspaceManifest = readPackageManifest(path37.join(repoRoot, "package.json"));
|
|
181834
181944
|
return {
|
|
181835
181945
|
packageName: appPackage?.name ?? "meshy",
|
|
181836
181946
|
packageVersion: appPackage?.version ?? "0.1.0",
|
|
@@ -181838,11 +181948,11 @@ function buildRuntimeMetadata(storagePath) {
|
|
|
181838
181948
|
startupRequirementsLastCheckedOn: startupRequirements.lastCheckedOn,
|
|
181839
181949
|
components: startupRequirements.components,
|
|
181840
181950
|
packages: {
|
|
181841
|
-
workspace: toPackageInfo(
|
|
181951
|
+
workspace: toPackageInfo(path37.join(repoRoot, "package.json")),
|
|
181842
181952
|
node: appPackage,
|
|
181843
|
-
core: toPackageInfo(
|
|
181844
|
-
dashboard: toPackageInfo(
|
|
181845
|
-
api: toPackageInfo(
|
|
181953
|
+
core: toPackageInfo(path37.join(repoRoot, "packages/core/package.json")),
|
|
181954
|
+
dashboard: toPackageInfo(path37.join(repoRoot, "packages/dashboard/package.json")),
|
|
181955
|
+
api: toPackageInfo(path37.join(repoRoot, "packages/api/package.json"))
|
|
181846
181956
|
},
|
|
181847
181957
|
repository: {
|
|
181848
181958
|
url: normalizeRepositoryUrl(readGitValue(["config", "--get", "remote.upstream.url"])) ?? normalizeRepositoryUrl(readGitValue(["config", "--get", "remote.origin.url"])) ?? readRepositoryUrlFromManifest(workspaceManifest),
|
|
@@ -181919,7 +182029,7 @@ function printMobilePairingQr(writer, pairing) {
|
|
|
181919
182029
|
|
|
181920
182030
|
// src/bootstrap/runtime-restart.ts
|
|
181921
182031
|
init_cjs_shims();
|
|
181922
|
-
var
|
|
182032
|
+
var fs34 = __toESM(require("fs"), 1);
|
|
181923
182033
|
var nodePath2 = __toESM(require("path"), 1);
|
|
181924
182034
|
var import_node_child_process15 = require("child_process");
|
|
181925
182035
|
var RUNTIME_UPDATE_CHECK_INTERVAL_MS = 6 * 60 * 60 * 1e3;
|
|
@@ -182163,8 +182273,8 @@ function createRuntimeRestartLaunchPlan(options) {
|
|
|
182163
182273
|
};
|
|
182164
182274
|
}
|
|
182165
182275
|
function scheduleRuntimeRestart(plan, options = {}) {
|
|
182166
|
-
|
|
182167
|
-
const logFd =
|
|
182276
|
+
fs34.mkdirSync(nodePath2.dirname(plan.logPath), { recursive: true });
|
|
182277
|
+
const logFd = fs34.openSync(plan.logPath, "a");
|
|
182168
182278
|
const spawnImpl = options.spawnImpl ?? import_node_child_process15.spawn;
|
|
182169
182279
|
const env4 = {
|
|
182170
182280
|
...process.env,
|
|
@@ -182620,27 +182730,27 @@ init_esm8();
|
|
|
182620
182730
|
|
|
182621
182731
|
// ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/shared/logging/diagFileConsoleLogger.js
|
|
182622
182732
|
init_cjs_shims();
|
|
182623
|
-
var
|
|
182624
|
-
var
|
|
182625
|
-
var
|
|
182733
|
+
var import_node_fs3 = __toESM(require("fs"), 1);
|
|
182734
|
+
var import_node_os6 = __toESM(require("os"), 1);
|
|
182735
|
+
var import_node_path4 = __toESM(require("path"), 1);
|
|
182626
182736
|
|
|
182627
182737
|
// ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/utils/index.js
|
|
182628
182738
|
init_cjs_shims();
|
|
182629
182739
|
|
|
182630
182740
|
// ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/utils/fileSystem.js
|
|
182631
182741
|
init_cjs_shims();
|
|
182632
|
-
var
|
|
182633
|
-
var
|
|
182742
|
+
var import_node_fs2 = __toESM(require("fs"), 1);
|
|
182743
|
+
var import_node_path3 = __toESM(require("path"), 1);
|
|
182634
182744
|
var import_node_util3 = require("util");
|
|
182635
|
-
var statAsync = (0, import_node_util3.promisify)(
|
|
182636
|
-
var lstatAsync = (0, import_node_util3.promisify)(
|
|
182637
|
-
var mkdirAsync = (0, import_node_util3.promisify)(
|
|
182638
|
-
var accessAsync = (0, import_node_util3.promisify)(
|
|
182639
|
-
var appendFileAsync = (0, import_node_util3.promisify)(
|
|
182640
|
-
var writeFileAsync = (0, import_node_util3.promisify)(
|
|
182641
|
-
var readFileAsync = (0, import_node_util3.promisify)(
|
|
182642
|
-
var readdirAsync = (0, import_node_util3.promisify)(
|
|
182643
|
-
var unlinkAsync = (0, import_node_util3.promisify)(
|
|
182745
|
+
var statAsync = (0, import_node_util3.promisify)(import_node_fs2.default.stat);
|
|
182746
|
+
var lstatAsync = (0, import_node_util3.promisify)(import_node_fs2.default.lstat);
|
|
182747
|
+
var mkdirAsync = (0, import_node_util3.promisify)(import_node_fs2.default.mkdir);
|
|
182748
|
+
var accessAsync = (0, import_node_util3.promisify)(import_node_fs2.default.access);
|
|
182749
|
+
var appendFileAsync = (0, import_node_util3.promisify)(import_node_fs2.default.appendFile);
|
|
182750
|
+
var writeFileAsync = (0, import_node_util3.promisify)(import_node_fs2.default.writeFile);
|
|
182751
|
+
var readFileAsync = (0, import_node_util3.promisify)(import_node_fs2.default.readFile);
|
|
182752
|
+
var readdirAsync = (0, import_node_util3.promisify)(import_node_fs2.default.readdir);
|
|
182753
|
+
var unlinkAsync = (0, import_node_util3.promisify)(import_node_fs2.default.unlink);
|
|
182644
182754
|
var confirmDirExists = async (directory) => {
|
|
182645
182755
|
try {
|
|
182646
182756
|
const stats = await lstatAsync(directory);
|
|
@@ -182680,7 +182790,7 @@ init_cjs_shims();
|
|
|
182680
182790
|
|
|
182681
182791
|
// ../../node_modules/.pnpm/@opentelemetry+resource-detector-azure@0.25.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resource-detector-azure/build/esm/detectors/AzureAksDetector.js
|
|
182682
182792
|
init_cjs_shims();
|
|
182683
|
-
var
|
|
182793
|
+
var fs41 = __toESM(require("fs"));
|
|
182684
182794
|
init_esm8();
|
|
182685
182795
|
|
|
182686
182796
|
// ../../node_modules/.pnpm/@opentelemetry+resource-detector-azure@0.25.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resource-detector-azure/build/esm/semconv.js
|
|
@@ -182780,10 +182890,10 @@ var AzureAksDetector = class {
|
|
|
182780
182890
|
}
|
|
182781
182891
|
getAksMetadataFromFile() {
|
|
182782
182892
|
try {
|
|
182783
|
-
if (!
|
|
182893
|
+
if (!fs41.existsSync(AKS_METADATA_FILE_PATH)) {
|
|
182784
182894
|
return void 0;
|
|
182785
182895
|
}
|
|
182786
|
-
const content3 =
|
|
182896
|
+
const content3 = fs41.readFileSync(AKS_METADATA_FILE_PATH, "utf8");
|
|
182787
182897
|
const metadata = {};
|
|
182788
182898
|
const lines = content3.split("\n");
|
|
182789
182899
|
for (const line of lines) {
|
|
@@ -183129,15 +183239,15 @@ var DiagFileConsoleLogger = class {
|
|
|
183129
183239
|
this._logFileName = "applicationinsights.log";
|
|
183130
183240
|
const logFilePath = process.env.APPLICATIONINSIGHTS_LOGDIR;
|
|
183131
183241
|
if (!logFilePath) {
|
|
183132
|
-
this._tempDir =
|
|
183242
|
+
this._tempDir = import_node_path4.default.join(import_node_os6.default.tmpdir(), "appInsights-node");
|
|
183133
183243
|
} else {
|
|
183134
|
-
if (
|
|
183244
|
+
if (import_node_path4.default.isAbsolute(logFilePath)) {
|
|
183135
183245
|
this._tempDir = logFilePath;
|
|
183136
183246
|
} else {
|
|
183137
|
-
this._tempDir =
|
|
183247
|
+
this._tempDir = import_node_path4.default.join(process.cwd(), logFilePath);
|
|
183138
183248
|
}
|
|
183139
183249
|
}
|
|
183140
|
-
this._fileFullPath =
|
|
183250
|
+
this._fileFullPath = import_node_path4.default.join(this._tempDir, this._logFileName);
|
|
183141
183251
|
this._backUpNameFormat = `.${this._logFileName}`;
|
|
183142
183252
|
if (this._logToFile) {
|
|
183143
183253
|
if (!this._fileCleanupTimer) {
|
|
@@ -183270,7 +183380,7 @@ var DiagFileConsoleLogger = class {
|
|
|
183270
183380
|
return;
|
|
183271
183381
|
}
|
|
183272
183382
|
try {
|
|
183273
|
-
await accessAsync(this._fileFullPath,
|
|
183383
|
+
await accessAsync(this._fileFullPath, import_node_fs3.default.constants.F_OK);
|
|
183274
183384
|
} catch (err) {
|
|
183275
183385
|
try {
|
|
183276
183386
|
await appendFileAsync(this._fileFullPath, data);
|
|
@@ -183289,7 +183399,7 @@ var DiagFileConsoleLogger = class {
|
|
|
183289
183399
|
async _createBackupFile(data) {
|
|
183290
183400
|
try {
|
|
183291
183401
|
const buffer = await readFileAsync(this._fileFullPath);
|
|
183292
|
-
const backupPath =
|
|
183402
|
+
const backupPath = import_node_path4.default.join(this._tempDir, `${(/* @__PURE__ */ new Date()).getTime()}.${this._logFileName}`);
|
|
183293
183403
|
await writeFileAsync(backupPath, buffer);
|
|
183294
183404
|
} catch (err) {
|
|
183295
183405
|
console.log("Failed to generate backup log file", err);
|
|
@@ -183300,7 +183410,7 @@ var DiagFileConsoleLogger = class {
|
|
|
183300
183410
|
async _fileCleanupTask() {
|
|
183301
183411
|
try {
|
|
183302
183412
|
let files = await readdirAsync(this._tempDir);
|
|
183303
|
-
files = files.filter((f) =>
|
|
183413
|
+
files = files.filter((f) => import_node_path4.default.basename(f).indexOf(this._backUpNameFormat) > -1);
|
|
183304
183414
|
files.sort((a, b) => {
|
|
183305
183415
|
const aCreationDate = new Date(parseInt(a.split(this._backUpNameFormat)[0]));
|
|
183306
183416
|
const bCreationDate = new Date(parseInt(b.split(this._backUpNameFormat)[0]));
|
|
@@ -183312,7 +183422,7 @@ var DiagFileConsoleLogger = class {
|
|
|
183312
183422
|
});
|
|
183313
183423
|
const totalFiles = files.length;
|
|
183314
183424
|
for (let i = 0; i < totalFiles - this._maxHistory; i++) {
|
|
183315
|
-
const pathToDelete =
|
|
183425
|
+
const pathToDelete = import_node_path4.default.join(this._tempDir, files[i]);
|
|
183316
183426
|
await unlinkAsync(pathToDelete);
|
|
183317
183427
|
}
|
|
183318
183428
|
} catch (err) {
|
|
@@ -183567,13 +183677,13 @@ var EnvConfig = class _EnvConfig {
|
|
|
183567
183677
|
|
|
183568
183678
|
// ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/shared/jsonConfig.js
|
|
183569
183679
|
init_cjs_shims();
|
|
183570
|
-
var
|
|
183571
|
-
var
|
|
183680
|
+
var import_node_fs4 = __toESM(require("fs"), 1);
|
|
183681
|
+
var import_node_path6 = __toESM(require("path"), 1);
|
|
183572
183682
|
|
|
183573
183683
|
// ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/shared/module.js
|
|
183574
183684
|
init_cjs_shims();
|
|
183575
183685
|
var import_node_module2 = require("module");
|
|
183576
|
-
var
|
|
183686
|
+
var import_node_path5 = require("path");
|
|
183577
183687
|
var import_node_url2 = require("url");
|
|
183578
183688
|
function loadAzureFunctionCore() {
|
|
183579
183689
|
try {
|
|
@@ -183583,7 +183693,7 @@ function loadAzureFunctionCore() {
|
|
|
183583
183693
|
}
|
|
183584
183694
|
}
|
|
183585
183695
|
function dirName() {
|
|
183586
|
-
return (0,
|
|
183696
|
+
return (0, import_node_path5.dirname)((0, import_node_url2.fileURLToPath)(importMetaUrl));
|
|
183587
183697
|
}
|
|
183588
183698
|
|
|
183589
183699
|
// ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/shared/jsonConfig.js
|
|
@@ -183629,18 +183739,18 @@ var JsonConfig = class _JsonConfig {
|
|
|
183629
183739
|
jsonString = contentJsonConfig;
|
|
183630
183740
|
} else {
|
|
183631
183741
|
const configFileName = "applicationinsights.json";
|
|
183632
|
-
const rootPath =
|
|
183633
|
-
this._tempDir =
|
|
183742
|
+
const rootPath = import_node_path6.default.join(dirName(), "../../../");
|
|
183743
|
+
this._tempDir = import_node_path6.default.join(rootPath, configFileName);
|
|
183634
183744
|
const configFile = process.env[ENV_CONFIGURATION_FILE];
|
|
183635
183745
|
if (configFile) {
|
|
183636
|
-
if (
|
|
183746
|
+
if (import_node_path6.default.isAbsolute(configFile)) {
|
|
183637
183747
|
this._tempDir = configFile;
|
|
183638
183748
|
} else {
|
|
183639
|
-
this._tempDir =
|
|
183749
|
+
this._tempDir = import_node_path6.default.join(rootPath, configFile);
|
|
183640
183750
|
}
|
|
183641
183751
|
}
|
|
183642
183752
|
try {
|
|
183643
|
-
jsonString =
|
|
183753
|
+
jsonString = import_node_fs4.default.readFileSync(this._tempDir, "utf8");
|
|
183644
183754
|
} catch (err) {
|
|
183645
183755
|
Logger3.getInstance().info("Failed to read JSON config file: ", err);
|
|
183646
183756
|
}
|
|
@@ -185167,9 +185277,9 @@ function getNetPeerPort2(attributes) {
|
|
|
185167
185277
|
}
|
|
185168
185278
|
|
|
185169
185279
|
// ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/metrics/utils.js
|
|
185170
|
-
var
|
|
185280
|
+
var import_node_os11 = __toESM(require("os"), 1);
|
|
185171
185281
|
var import_node_process7 = __toESM(require("process"), 1);
|
|
185172
|
-
var
|
|
185282
|
+
var import_node_fs7 = require("fs");
|
|
185173
185283
|
function getRequestDimensions(span) {
|
|
185174
185284
|
const dimensions = getBaseDimensions(span.resource);
|
|
185175
185285
|
dimensions.metricId = StandardMetricIds.REQUEST_DURATION;
|
|
@@ -185264,7 +185374,7 @@ function convertDimensions(dimensions) {
|
|
|
185264
185374
|
function readAvailableMemory() {
|
|
185265
185375
|
if (import_node_process7.default.platform === "linux") {
|
|
185266
185376
|
try {
|
|
185267
|
-
const contents = (0,
|
|
185377
|
+
const contents = (0, import_node_fs7.readFileSync)("/proc/meminfo", "utf8");
|
|
185268
185378
|
const match = contents.match(/^MemAvailable:\s+(\d+)\s+kB$/m);
|
|
185269
185379
|
if (match) {
|
|
185270
185380
|
return parseInt(match[1], 10) * 1024;
|
|
@@ -185272,7 +185382,7 @@ function readAvailableMemory() {
|
|
|
185272
185382
|
} catch {
|
|
185273
185383
|
}
|
|
185274
185384
|
}
|
|
185275
|
-
return
|
|
185385
|
+
return import_node_os11.default.freemem();
|
|
185276
185386
|
}
|
|
185277
185387
|
function getPhysicalMemory() {
|
|
185278
185388
|
if (import_node_process7.default?.memoryUsage) {
|
|
@@ -185283,7 +185393,7 @@ function getPhysicalMemory() {
|
|
|
185283
185393
|
}
|
|
185284
185394
|
}
|
|
185285
185395
|
function getProcessorTimeNormalized(lastHrTime, lastCpuUsage) {
|
|
185286
|
-
let numCpus =
|
|
185396
|
+
let numCpus = import_node_os11.default.cpus().length;
|
|
185287
185397
|
const usageDif = import_node_process7.default.cpuUsage(lastCpuUsage);
|
|
185288
185398
|
const elapsedTimeNs = import_node_process7.default.hrtime.bigint() - lastHrTime;
|
|
185289
185399
|
const usageDifMs = (usageDif.user + usageDif.system) / 1e3;
|
|
@@ -185345,7 +185455,7 @@ function getCloudRoleInstance2(resource) {
|
|
|
185345
185455
|
if (serviceInstanceId) {
|
|
185346
185456
|
return String(serviceInstanceId);
|
|
185347
185457
|
}
|
|
185348
|
-
return
|
|
185458
|
+
return import_node_os11.default && import_node_os11.default.hostname();
|
|
185349
185459
|
}
|
|
185350
185460
|
|
|
185351
185461
|
// ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/metrics/standardMetrics.js
|
|
@@ -185471,7 +185581,7 @@ var StandardMetrics = class {
|
|
|
185471
185581
|
|
|
185472
185582
|
// ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/metrics/quickpulse/liveMetrics.js
|
|
185473
185583
|
init_cjs_shims();
|
|
185474
|
-
var
|
|
185584
|
+
var import_node_os12 = __toESM(require("os"), 1);
|
|
185475
185585
|
init_esm30();
|
|
185476
185586
|
init_esm8();
|
|
185477
185587
|
|
|
@@ -185909,13 +186019,13 @@ function normalizeUnreserved(uri) {
|
|
|
185909
186019
|
// ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/generated/api/operations.js
|
|
185910
186020
|
init_esm32();
|
|
185911
186021
|
function _publishSend(context4, ikey, options = { requestOptions: {} }) {
|
|
185912
|
-
const
|
|
186022
|
+
const path48 = expandUrlTemplate("/QuickPulseService.svc/post{?api%2Dversion,ikey}", {
|
|
185913
186023
|
"api%2Dversion": context4.apiVersion ?? "2024-04-01-preview",
|
|
185914
186024
|
ikey
|
|
185915
186025
|
}, {
|
|
185916
186026
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
185917
186027
|
});
|
|
185918
|
-
return context4.path(
|
|
186028
|
+
return context4.path(path48).post({
|
|
185919
186029
|
...operationOptionsToRequestParameters2(options),
|
|
185920
186030
|
contentType: "application/json",
|
|
185921
186031
|
headers: {
|
|
@@ -185941,13 +186051,13 @@ async function publish(context4, ikey, options = { requestOptions: {} }) {
|
|
|
185941
186051
|
return _publishDeserialize(result);
|
|
185942
186052
|
}
|
|
185943
186053
|
function _isSubscribedSend(context4, ikey, options = { requestOptions: {} }) {
|
|
185944
|
-
const
|
|
186054
|
+
const path48 = expandUrlTemplate("/QuickPulseService.svc/ping{?api%2Dversion,ikey}", {
|
|
185945
186055
|
"api%2Dversion": context4.apiVersion ?? "2024-04-01-preview",
|
|
185946
186056
|
ikey
|
|
185947
186057
|
}, {
|
|
185948
186058
|
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
185949
186059
|
});
|
|
185950
|
-
return context4.path(
|
|
186060
|
+
return context4.path(path48).post({
|
|
185951
186061
|
...operationOptionsToRequestParameters2(options),
|
|
185952
186062
|
contentType: "application/json",
|
|
185953
186063
|
headers: {
|
|
@@ -186881,7 +186991,7 @@ var LiveMetrics = class {
|
|
|
186881
186991
|
this.config = config2;
|
|
186882
186992
|
const idGenerator = new RandomIdGenerator2();
|
|
186883
186993
|
const streamId = idGenerator.generateTraceId();
|
|
186884
|
-
const machineName =
|
|
186994
|
+
const machineName = import_node_os12.default.hostname();
|
|
186885
186995
|
const instance3 = getCloudRoleInstance2(this.config.resource);
|
|
186886
186996
|
const roleName = getCloudRole2(this.config.resource);
|
|
186887
186997
|
const version3 = getSdkVersion();
|
|
@@ -187449,7 +187559,7 @@ var LiveMetrics = class {
|
|
|
187449
187559
|
|
|
187450
187560
|
// ../../node_modules/.pnpm/@azure+monitor-opentelemetry@1.18.1/node_modules/@azure/monitor-opentelemetry/dist/esm/metrics/performanceCounters.js
|
|
187451
187561
|
init_cjs_shims();
|
|
187452
|
-
var
|
|
187562
|
+
var import_node_os13 = __toESM(require("os"), 1);
|
|
187453
187563
|
init_esm8();
|
|
187454
187564
|
init_esm30();
|
|
187455
187565
|
init_esm11();
|
|
@@ -187492,8 +187602,8 @@ var PerformanceCounterMetrics = class {
|
|
|
187492
187602
|
*/
|
|
187493
187603
|
constructor(config2, options) {
|
|
187494
187604
|
this.internalConfig = config2;
|
|
187495
|
-
this.lastCpus =
|
|
187496
|
-
this.lastCpusProcess =
|
|
187605
|
+
this.lastCpus = import_node_os13.default.cpus();
|
|
187606
|
+
this.lastCpusProcess = import_node_os13.default.cpus();
|
|
187497
187607
|
this.lastAppCpuUsage = import_node_process8.default.cpuUsage();
|
|
187498
187608
|
this.lastHrtime = import_node_process8.default.hrtime();
|
|
187499
187609
|
this.lastRequestRate = {
|
|
@@ -187660,7 +187770,7 @@ var PerformanceCounterMetrics = class {
|
|
|
187660
187770
|
};
|
|
187661
187771
|
}
|
|
187662
187772
|
getProcessorTime(observableResult) {
|
|
187663
|
-
const cpus2 =
|
|
187773
|
+
const cpus2 = import_node_os13.default.cpus();
|
|
187664
187774
|
if (cpus2 && cpus2.length && this.lastCpus && cpus2.length === this.lastCpus.length) {
|
|
187665
187775
|
const cpuTotals = this.getTotalCombinedCpu(cpus2, this.lastCpus);
|
|
187666
187776
|
const value = cpuTotals.combinedTotal > 0 ? (cpuTotals.combinedTotal - cpuTotals.totalIdle) / cpuTotals.combinedTotal * 100 : 0;
|
|
@@ -187669,7 +187779,7 @@ var PerformanceCounterMetrics = class {
|
|
|
187669
187779
|
this.lastCpus = cpus2;
|
|
187670
187780
|
}
|
|
187671
187781
|
getNormalizedProcessTime(observableResult) {
|
|
187672
|
-
const cpus2 =
|
|
187782
|
+
const cpus2 = import_node_os13.default.cpus();
|
|
187673
187783
|
if (cpus2 && cpus2.length && this.lastCpusProcess && cpus2.length === this.lastCpusProcess.length) {
|
|
187674
187784
|
let appCpuPercent = void 0;
|
|
187675
187785
|
const appCpuUsage = import_node_process8.default.cpuUsage();
|
|
@@ -187694,7 +187804,7 @@ var PerformanceCounterMetrics = class {
|
|
|
187694
187804
|
}
|
|
187695
187805
|
getProcessTime(observableResult) {
|
|
187696
187806
|
if (import_node_process8.default) {
|
|
187697
|
-
const cpus2 =
|
|
187807
|
+
const cpus2 = import_node_os13.default.cpus();
|
|
187698
187808
|
if (cpus2 && cpus2.length && this.lastCpusProcess && cpus2.length === this.lastCpusProcess.length) {
|
|
187699
187809
|
let appCpuPercent = void 0;
|
|
187700
187810
|
const appCpuUsage = import_node_process8.default.cpuUsage();
|
|
@@ -188018,7 +188128,7 @@ init_cjs_shims();
|
|
|
188018
188128
|
|
|
188019
188129
|
// ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.211.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/instrumentation.js
|
|
188020
188130
|
init_cjs_shims();
|
|
188021
|
-
var
|
|
188131
|
+
var path45 = __toESM(require("path"));
|
|
188022
188132
|
var import_util14 = require("util");
|
|
188023
188133
|
|
|
188024
188134
|
// ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.211.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/semver.js
|
|
@@ -188608,7 +188718,7 @@ var InstrumentationAbstract2 = class {
|
|
|
188608
188718
|
// ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.211.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/RequireInTheMiddleSingleton.js
|
|
188609
188719
|
init_cjs_shims();
|
|
188610
188720
|
var import_require_in_the_middle3 = __toESM(require_require_in_the_middle());
|
|
188611
|
-
var
|
|
188721
|
+
var path44 = __toESM(require("path"));
|
|
188612
188722
|
|
|
188613
188723
|
// ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.211.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/ModuleNameTrie.js
|
|
188614
188724
|
init_cjs_shims();
|
|
@@ -188738,7 +188848,7 @@ var RequireInTheMiddleSingleton2 = class _RequireInTheMiddleSingleton {
|
|
|
188738
188848
|
}
|
|
188739
188849
|
};
|
|
188740
188850
|
function normalizePathSeparators2(moduleNameOrPath) {
|
|
188741
|
-
return
|
|
188851
|
+
return path44.sep !== ModuleNameSeparator2 ? moduleNameOrPath.split(path44.sep).join(ModuleNameSeparator2) : moduleNameOrPath;
|
|
188742
188852
|
}
|
|
188743
188853
|
|
|
188744
188854
|
// ../../node_modules/.pnpm/@opentelemetry+instrumentation@0.211.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/instrumentation/build/esm/platform/node/instrumentation.js
|
|
@@ -188841,7 +188951,7 @@ var InstrumentationBase2 = class extends InstrumentationAbstract2 {
|
|
|
188841
188951
|
}
|
|
188842
188952
|
_extractPackageVersion(baseDir) {
|
|
188843
188953
|
try {
|
|
188844
|
-
const json = (0, import_fs6.readFileSync)(
|
|
188954
|
+
const json = (0, import_fs6.readFileSync)(path45.join(baseDir, "package.json"), {
|
|
188845
188955
|
encoding: "utf8"
|
|
188846
188956
|
});
|
|
188847
188957
|
const version3 = JSON.parse(json).version;
|
|
@@ -188883,7 +188993,7 @@ var InstrumentationBase2 = class extends InstrumentationAbstract2 {
|
|
|
188883
188993
|
return exports2;
|
|
188884
188994
|
}
|
|
188885
188995
|
const files = module2.files ?? [];
|
|
188886
|
-
const normalizedName =
|
|
188996
|
+
const normalizedName = path45.normalize(name2);
|
|
188887
188997
|
const supportedFileInstrumentations = files.filter((f) => f.name === normalizedName && isSupported2(f.supportedVersions, version3, module2.includePrerelease));
|
|
188888
188998
|
return supportedFileInstrumentations.reduce((patchedExports, file) => {
|
|
188889
188999
|
file.moduleExports = patchedExports;
|
|
@@ -188929,8 +189039,8 @@ var InstrumentationBase2 = class extends InstrumentationAbstract2 {
|
|
|
188929
189039
|
this._warnOnPreloadedModules();
|
|
188930
189040
|
for (const module2 of this._modules) {
|
|
188931
189041
|
const hookFn = (exports2, name2, baseDir) => {
|
|
188932
|
-
if (!baseDir &&
|
|
188933
|
-
const parsedPath =
|
|
189042
|
+
if (!baseDir && path45.isAbsolute(name2)) {
|
|
189043
|
+
const parsedPath = path45.parse(name2);
|
|
188934
189044
|
name2 = parsedPath.name;
|
|
188935
189045
|
baseDir = parsedPath.dir;
|
|
188936
189046
|
}
|
|
@@ -188939,7 +189049,7 @@ var InstrumentationBase2 = class extends InstrumentationAbstract2 {
|
|
|
188939
189049
|
const onRequire = (exports2, name2, baseDir) => {
|
|
188940
189050
|
return this._onRequire(module2, exports2, name2, baseDir);
|
|
188941
189051
|
};
|
|
188942
|
-
const hook =
|
|
189052
|
+
const hook = path45.isAbsolute(module2.name) ? new import_require_in_the_middle4.Hook([module2.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module2.name, onRequire);
|
|
188943
189053
|
this._hooks.push(hook);
|
|
188944
189054
|
const esmHook = new import_import_in_the_middle2.Hook([module2.name], { internals: false }, hookFn);
|
|
188945
189055
|
this._hooks.push(esmHook);
|