@google/gemini-cli-a2a-server 0.33.0-preview.5 → 0.33.0-preview.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a2a-server.mjs +178 -189
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/a2a-server.mjs
CHANGED
|
@@ -155,7 +155,7 @@ var require_has_flag = __commonJS({
|
|
|
155
155
|
var require_supports_colors = __commonJS({
|
|
156
156
|
"node_modules/@colors/colors/lib/system/supports-colors.js"(exports2, module2) {
|
|
157
157
|
"use strict";
|
|
158
|
-
var
|
|
158
|
+
var os23 = __require("os");
|
|
159
159
|
var hasFlag = require_has_flag();
|
|
160
160
|
var env2 = process.env;
|
|
161
161
|
var forceColor = void 0;
|
|
@@ -193,7 +193,7 @@ var require_supports_colors = __commonJS({
|
|
|
193
193
|
}
|
|
194
194
|
var min = forceColor ? 1 : 0;
|
|
195
195
|
if (process.platform === "win32") {
|
|
196
|
-
var osRelease =
|
|
196
|
+
var osRelease = os23.release().split(".");
|
|
197
197
|
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
198
198
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
199
199
|
}
|
|
@@ -5439,7 +5439,7 @@ var require_winston_transport = __commonJS({
|
|
|
5439
5439
|
var require_console = __commonJS({
|
|
5440
5440
|
"node_modules/winston/lib/winston/transports/console.js"(exports2, module2) {
|
|
5441
5441
|
"use strict";
|
|
5442
|
-
var
|
|
5442
|
+
var os23 = __require("os");
|
|
5443
5443
|
var { LEVEL, MESSAGE } = require_triple_beam();
|
|
5444
5444
|
var TransportStream = require_winston_transport();
|
|
5445
5445
|
module2.exports = class Console extends TransportStream {
|
|
@@ -5453,7 +5453,7 @@ var require_console = __commonJS({
|
|
|
5453
5453
|
this.name = options.name || "console";
|
|
5454
5454
|
this.stderrLevels = this._stringArrayToSet(options.stderrLevels);
|
|
5455
5455
|
this.consoleWarnLevels = this._stringArrayToSet(options.consoleWarnLevels);
|
|
5456
|
-
this.eol = typeof options.eol === "string" ? options.eol :
|
|
5456
|
+
this.eol = typeof options.eol === "string" ? options.eol : os23.EOL;
|
|
5457
5457
|
this.forceConsole = options.forceConsole || false;
|
|
5458
5458
|
this._consoleLog = console.log.bind(console);
|
|
5459
5459
|
this._consoleWarn = console.warn.bind(console);
|
|
@@ -8467,7 +8467,7 @@ var require_file = __commonJS({
|
|
|
8467
8467
|
var { Stream: Stream7, PassThrough: PassThrough8 } = require_readable();
|
|
8468
8468
|
var TransportStream = require_winston_transport();
|
|
8469
8469
|
var debug2 = require_node2()("winston:file");
|
|
8470
|
-
var
|
|
8470
|
+
var os23 = __require("os");
|
|
8471
8471
|
var tailFile = require_tail_file();
|
|
8472
8472
|
module2.exports = class File extends TransportStream {
|
|
8473
8473
|
/**
|
|
@@ -8505,7 +8505,7 @@ var require_file = __commonJS({
|
|
|
8505
8505
|
this.rotationFormat = options.rotationFormat || false;
|
|
8506
8506
|
this.zippedArchive = options.zippedArchive || false;
|
|
8507
8507
|
this.maxFiles = options.maxFiles || null;
|
|
8508
|
-
this.eol = typeof options.eol === "string" ? options.eol :
|
|
8508
|
+
this.eol = typeof options.eol === "string" ? options.eol : os23.EOL;
|
|
8509
8509
|
this.tailable = options.tailable || false;
|
|
8510
8510
|
this.lazy = options.lazy || false;
|
|
8511
8511
|
this._size = 0;
|
|
@@ -9286,7 +9286,7 @@ var require_stream2 = __commonJS({
|
|
|
9286
9286
|
"use strict";
|
|
9287
9287
|
var isStream4 = require_is_stream();
|
|
9288
9288
|
var { MESSAGE } = require_triple_beam();
|
|
9289
|
-
var
|
|
9289
|
+
var os23 = __require("os");
|
|
9290
9290
|
var TransportStream = require_winston_transport();
|
|
9291
9291
|
module2.exports = class Stream extends TransportStream {
|
|
9292
9292
|
/**
|
|
@@ -9302,7 +9302,7 @@ var require_stream2 = __commonJS({
|
|
|
9302
9302
|
this._stream = options.stream;
|
|
9303
9303
|
this._stream.setMaxListeners(Infinity);
|
|
9304
9304
|
this.isObjectMode = options.stream._writableState.objectMode;
|
|
9305
|
-
this.eol = typeof options.eol === "string" ? options.eol :
|
|
9305
|
+
this.eol = typeof options.eol === "string" ? options.eol : os23.EOL;
|
|
9306
9306
|
}
|
|
9307
9307
|
/**
|
|
9308
9308
|
* Core logging method exposed to Winston.
|
|
@@ -9685,7 +9685,7 @@ var require_exception_stream = __commonJS({
|
|
|
9685
9685
|
var require_exception_handler = __commonJS({
|
|
9686
9686
|
"node_modules/winston/lib/winston/exception-handler.js"(exports2, module2) {
|
|
9687
9687
|
"use strict";
|
|
9688
|
-
var
|
|
9688
|
+
var os23 = __require("os");
|
|
9689
9689
|
var asyncForEach = require_forEach();
|
|
9690
9690
|
var debug2 = require_node2()("winston:exception");
|
|
9691
9691
|
var once10 = require_one_time();
|
|
@@ -9780,8 +9780,8 @@ var require_exception_handler = __commonJS({
|
|
|
9780
9780
|
*/
|
|
9781
9781
|
getOsInfo() {
|
|
9782
9782
|
return {
|
|
9783
|
-
loadavg:
|
|
9784
|
-
uptime:
|
|
9783
|
+
loadavg: os23.loadavg(),
|
|
9784
|
+
uptime: os23.uptime()
|
|
9785
9785
|
};
|
|
9786
9786
|
}
|
|
9787
9787
|
/**
|
|
@@ -9923,7 +9923,7 @@ var require_rejection_stream = __commonJS({
|
|
|
9923
9923
|
var require_rejection_handler = __commonJS({
|
|
9924
9924
|
"node_modules/winston/lib/winston/rejection-handler.js"(exports2, module2) {
|
|
9925
9925
|
"use strict";
|
|
9926
|
-
var
|
|
9926
|
+
var os23 = __require("os");
|
|
9927
9927
|
var asyncForEach = require_forEach();
|
|
9928
9928
|
var debug2 = require_node2()("winston:rejection");
|
|
9929
9929
|
var once10 = require_one_time();
|
|
@@ -10020,8 +10020,8 @@ var require_rejection_handler = __commonJS({
|
|
|
10020
10020
|
*/
|
|
10021
10021
|
getOsInfo() {
|
|
10022
10022
|
return {
|
|
10023
|
-
loadavg:
|
|
10024
|
-
uptime:
|
|
10023
|
+
loadavg: os23.loadavg(),
|
|
10024
|
+
uptime: os23.uptime()
|
|
10025
10025
|
};
|
|
10026
10026
|
}
|
|
10027
10027
|
/**
|
|
@@ -11289,7 +11289,7 @@ var require_has_flag2 = __commonJS({
|
|
|
11289
11289
|
var require_supports_color = __commonJS({
|
|
11290
11290
|
"node_modules/supports-color/index.js"(exports2, module2) {
|
|
11291
11291
|
"use strict";
|
|
11292
|
-
var
|
|
11292
|
+
var os23 = __require("os");
|
|
11293
11293
|
var hasFlag = require_has_flag2();
|
|
11294
11294
|
var env2 = process.env;
|
|
11295
11295
|
var forceColor;
|
|
@@ -11327,7 +11327,7 @@ var require_supports_color = __commonJS({
|
|
|
11327
11327
|
}
|
|
11328
11328
|
const min = forceColor ? 1 : 0;
|
|
11329
11329
|
if (process.platform === "win32") {
|
|
11330
|
-
const osRelease =
|
|
11330
|
+
const osRelease = os23.release().split(".");
|
|
11331
11331
|
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
11332
11332
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
11333
11333
|
}
|
|
@@ -53565,7 +53565,7 @@ var require_googleauth = __commonJS({
|
|
|
53565
53565
|
var child_process_1 = __require("child_process");
|
|
53566
53566
|
var fs75 = __require("fs");
|
|
53567
53567
|
var gcpMetadata = require_src6();
|
|
53568
|
-
var
|
|
53568
|
+
var os23 = __require("os");
|
|
53569
53569
|
var path90 = __require("path");
|
|
53570
53570
|
var crypto_1 = require_crypto3();
|
|
53571
53571
|
var transporters_1 = require_transporters();
|
|
@@ -54006,7 +54006,7 @@ var require_googleauth = __commonJS({
|
|
|
54006
54006
|
* @api private
|
|
54007
54007
|
*/
|
|
54008
54008
|
_isWindows() {
|
|
54009
|
-
const sys =
|
|
54009
|
+
const sys = os23.platform();
|
|
54010
54010
|
if (sys && sys.length >= 3) {
|
|
54011
54011
|
if (sys.substring(0, 3).toLowerCase() === "win") {
|
|
54012
54012
|
return true;
|
|
@@ -58813,7 +58813,7 @@ var require_polyfills = __commonJS({
|
|
|
58813
58813
|
var constants6 = __require("constants");
|
|
58814
58814
|
var origCwd = process.cwd;
|
|
58815
58815
|
var cwd = null;
|
|
58816
|
-
var
|
|
58816
|
+
var platform14 = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
58817
58817
|
process.cwd = function() {
|
|
58818
58818
|
if (!cwd)
|
|
58819
58819
|
cwd = origCwd.call(process);
|
|
@@ -58872,7 +58872,7 @@ var require_polyfills = __commonJS({
|
|
|
58872
58872
|
fs75.lchownSync = function() {
|
|
58873
58873
|
};
|
|
58874
58874
|
}
|
|
58875
|
-
if (
|
|
58875
|
+
if (platform14 === "win32") {
|
|
58876
58876
|
fs75.rename = typeof fs75.rename !== "function" ? fs75.rename : function(fs$rename) {
|
|
58877
58877
|
function rename(from, to, cb) {
|
|
58878
58878
|
var start2 = Date.now();
|
|
@@ -69541,7 +69541,7 @@ var require_util4 = __commonJS({
|
|
|
69541
69541
|
exports2.isValidFile = isValidFile;
|
|
69542
69542
|
exports2.getWellKnownCertificateConfigFileLocation = getWellKnownCertificateConfigFileLocation;
|
|
69543
69543
|
var fs75 = __require("fs");
|
|
69544
|
-
var
|
|
69544
|
+
var os23 = __require("os");
|
|
69545
69545
|
var path90 = __require("path");
|
|
69546
69546
|
var WELL_KNOWN_CERTIFICATE_CONFIG_FILE = "certificate_config.json";
|
|
69547
69547
|
var CLOUDSDK_CONFIG_DIRECTORY = "gcloud";
|
|
@@ -69639,7 +69639,7 @@ var require_util4 = __commonJS({
|
|
|
69639
69639
|
return path90.join(configDir, WELL_KNOWN_CERTIFICATE_CONFIG_FILE);
|
|
69640
69640
|
}
|
|
69641
69641
|
function _isWindows() {
|
|
69642
|
-
return
|
|
69642
|
+
return os23.platform().startsWith("win");
|
|
69643
69643
|
}
|
|
69644
69644
|
}
|
|
69645
69645
|
});
|
|
@@ -74411,7 +74411,7 @@ var require_googleauth2 = __commonJS({
|
|
|
74411
74411
|
var fs75 = __require("fs");
|
|
74412
74412
|
var gaxios_1 = require_src14();
|
|
74413
74413
|
var gcpMetadata = require_src16();
|
|
74414
|
-
var
|
|
74414
|
+
var os23 = __require("os");
|
|
74415
74415
|
var path90 = __require("path");
|
|
74416
74416
|
var crypto_1 = require_crypto6();
|
|
74417
74417
|
var computeclient_1 = require_computeclient2();
|
|
@@ -74914,7 +74914,7 @@ var require_googleauth2 = __commonJS({
|
|
|
74914
74914
|
* @api private
|
|
74915
74915
|
*/
|
|
74916
74916
|
_isWindows() {
|
|
74917
|
-
const sys =
|
|
74917
|
+
const sys = os23.platform();
|
|
74918
74918
|
if (sys && sys.length >= 3) {
|
|
74919
74919
|
if (sys.substring(0, 3).toLowerCase() === "win") {
|
|
74920
74920
|
return true;
|
|
@@ -94419,24 +94419,24 @@ var init_node = __esm({
|
|
|
94419
94419
|
return `other:${arch4}`;
|
|
94420
94420
|
return "unknown";
|
|
94421
94421
|
};
|
|
94422
|
-
normalizePlatform = (
|
|
94423
|
-
|
|
94424
|
-
if (
|
|
94422
|
+
normalizePlatform = (platform14) => {
|
|
94423
|
+
platform14 = platform14.toLowerCase();
|
|
94424
|
+
if (platform14.includes("ios"))
|
|
94425
94425
|
return "iOS";
|
|
94426
|
-
if (
|
|
94426
|
+
if (platform14 === "android")
|
|
94427
94427
|
return "Android";
|
|
94428
|
-
if (
|
|
94428
|
+
if (platform14 === "darwin")
|
|
94429
94429
|
return "MacOS";
|
|
94430
|
-
if (
|
|
94430
|
+
if (platform14 === "win32")
|
|
94431
94431
|
return "Windows";
|
|
94432
|
-
if (
|
|
94432
|
+
if (platform14 === "freebsd")
|
|
94433
94433
|
return "FreeBSD";
|
|
94434
|
-
if (
|
|
94434
|
+
if (platform14 === "openbsd")
|
|
94435
94435
|
return "OpenBSD";
|
|
94436
|
-
if (
|
|
94436
|
+
if (platform14 === "linux")
|
|
94437
94437
|
return "Linux";
|
|
94438
|
-
if (
|
|
94439
|
-
return `Other:${
|
|
94438
|
+
if (platform14)
|
|
94439
|
+
return `Other:${platform14}`;
|
|
94440
94440
|
return "Unknown";
|
|
94441
94441
|
};
|
|
94442
94442
|
getPlatformHeaders = () => {
|
|
@@ -99717,7 +99717,7 @@ var require_util6 = __commonJS({
|
|
|
99717
99717
|
exports2.isValidFile = isValidFile;
|
|
99718
99718
|
exports2.getWellKnownCertificateConfigFileLocation = getWellKnownCertificateConfigFileLocation;
|
|
99719
99719
|
var fs75 = __require("fs");
|
|
99720
|
-
var
|
|
99720
|
+
var os23 = __require("os");
|
|
99721
99721
|
var path90 = __require("path");
|
|
99722
99722
|
var WELL_KNOWN_CERTIFICATE_CONFIG_FILE = "certificate_config.json";
|
|
99723
99723
|
var CLOUDSDK_CONFIG_DIRECTORY = "gcloud";
|
|
@@ -99815,7 +99815,7 @@ var require_util6 = __commonJS({
|
|
|
99815
99815
|
return path90.join(configDir, WELL_KNOWN_CERTIFICATE_CONFIG_FILE);
|
|
99816
99816
|
}
|
|
99817
99817
|
function _isWindows() {
|
|
99818
|
-
return
|
|
99818
|
+
return os23.platform().startsWith("win");
|
|
99819
99819
|
}
|
|
99820
99820
|
}
|
|
99821
99821
|
});
|
|
@@ -104587,7 +104587,7 @@ var require_googleauth3 = __commonJS({
|
|
|
104587
104587
|
var fs75 = __require("fs");
|
|
104588
104588
|
var gaxios_1 = require_src19();
|
|
104589
104589
|
var gcpMetadata = require_src21();
|
|
104590
|
-
var
|
|
104590
|
+
var os23 = __require("os");
|
|
104591
104591
|
var path90 = __require("path");
|
|
104592
104592
|
var crypto_1 = require_crypto9();
|
|
104593
104593
|
var computeclient_1 = require_computeclient3();
|
|
@@ -105090,7 +105090,7 @@ var require_googleauth3 = __commonJS({
|
|
|
105090
105090
|
* @api private
|
|
105091
105091
|
*/
|
|
105092
105092
|
_isWindows() {
|
|
105093
|
-
const sys =
|
|
105093
|
+
const sys = os23.platform();
|
|
105094
105094
|
if (sys && sys.length >= 3) {
|
|
105095
105095
|
if (sys.substring(0, 3).toLowerCase() === "win") {
|
|
105096
105096
|
return true;
|
|
@@ -106747,8 +106747,8 @@ function isSubpath(parentPath, childPath) {
|
|
|
106747
106747
|
const relative6 = pathModule2.relative(parentPath, childPath);
|
|
106748
106748
|
return !relative6.startsWith(`..${pathModule2.sep}`) && relative6 !== ".." && !pathModule2.isAbsolute(relative6);
|
|
106749
106749
|
}
|
|
106750
|
-
function resolveToRealPath(
|
|
106751
|
-
let resolvedPath =
|
|
106750
|
+
function resolveToRealPath(pathStr) {
|
|
106751
|
+
let resolvedPath = pathStr;
|
|
106752
106752
|
try {
|
|
106753
106753
|
if (resolvedPath.startsWith("file://")) {
|
|
106754
106754
|
resolvedPath = fileURLToPath2(resolvedPath);
|
|
@@ -106756,10 +106756,28 @@ function resolveToRealPath(path90) {
|
|
|
106756
106756
|
resolvedPath = decodeURIComponent(resolvedPath);
|
|
106757
106757
|
} catch (_e) {
|
|
106758
106758
|
}
|
|
106759
|
+
return robustRealpath(path11.resolve(resolvedPath));
|
|
106760
|
+
}
|
|
106761
|
+
function robustRealpath(p) {
|
|
106759
106762
|
try {
|
|
106760
|
-
return fs20.realpathSync(
|
|
106761
|
-
} catch (
|
|
106762
|
-
|
|
106763
|
+
return fs20.realpathSync(p);
|
|
106764
|
+
} catch (e3) {
|
|
106765
|
+
if (e3 && typeof e3 === "object" && "code" in e3 && e3.code === "ENOENT") {
|
|
106766
|
+
try {
|
|
106767
|
+
const stat4 = fs20.lstatSync(p);
|
|
106768
|
+
if (stat4.isSymbolicLink()) {
|
|
106769
|
+
const target = fs20.readlinkSync(p);
|
|
106770
|
+
const resolvedTarget = path11.resolve(path11.dirname(p), target);
|
|
106771
|
+
return robustRealpath(resolvedTarget);
|
|
106772
|
+
}
|
|
106773
|
+
} catch {
|
|
106774
|
+
}
|
|
106775
|
+
const parent = path11.dirname(p);
|
|
106776
|
+
if (parent === p)
|
|
106777
|
+
return p;
|
|
106778
|
+
return path11.join(robustRealpath(parent), path11.basename(p));
|
|
106779
|
+
}
|
|
106780
|
+
throw e3;
|
|
106763
106781
|
}
|
|
106764
106782
|
}
|
|
106765
106783
|
var GEMINI_DIR, GOOGLE_ACCOUNTS_FILENAME;
|
|
@@ -137654,7 +137672,7 @@ var require_service_config = __commonJS({
|
|
|
137654
137672
|
exports2.validateRetryThrottling = validateRetryThrottling;
|
|
137655
137673
|
exports2.validateServiceConfig = validateServiceConfig;
|
|
137656
137674
|
exports2.extractAndSelectServiceConfig = extractAndSelectServiceConfig;
|
|
137657
|
-
var
|
|
137675
|
+
var os23 = __require("os");
|
|
137658
137676
|
var constants_1 = require_constants3();
|
|
137659
137677
|
var DURATION_REGEX = /^\d+(\.\d{1,9})?s$/;
|
|
137660
137678
|
var CLIENT_LANGUAGE_STRING = "node";
|
|
@@ -137953,7 +137971,7 @@ var require_service_config = __commonJS({
|
|
|
137953
137971
|
if (Array.isArray(validatedConfig.clientHostname)) {
|
|
137954
137972
|
let hostnameMatched = false;
|
|
137955
137973
|
for (const hostname3 of validatedConfig.clientHostname) {
|
|
137956
|
-
if (hostname3 ===
|
|
137974
|
+
if (hostname3 === os23.hostname()) {
|
|
137957
137975
|
hostnameMatched = true;
|
|
137958
137976
|
}
|
|
137959
137977
|
}
|
|
@@ -151474,7 +151492,7 @@ var require_subchannel_call = __commonJS({
|
|
|
151474
151492
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
151475
151493
|
exports2.Http2SubchannelCall = void 0;
|
|
151476
151494
|
var http22 = __require("http2");
|
|
151477
|
-
var
|
|
151495
|
+
var os23 = __require("os");
|
|
151478
151496
|
var constants_1 = require_constants3();
|
|
151479
151497
|
var metadata_1 = require_metadata4();
|
|
151480
151498
|
var stream_decoder_1 = require_stream_decoder();
|
|
@@ -151482,7 +151500,7 @@ var require_subchannel_call = __commonJS({
|
|
|
151482
151500
|
var constants_2 = require_constants3();
|
|
151483
151501
|
var TRACER_NAME2 = "subchannel_call";
|
|
151484
151502
|
function getSystemErrorName(errno) {
|
|
151485
|
-
for (const [name4, num] of Object.entries(
|
|
151503
|
+
for (const [name4, num] of Object.entries(os23.constants.errno)) {
|
|
151486
151504
|
if (num === errno) {
|
|
151487
151505
|
return name4;
|
|
151488
151506
|
}
|
|
@@ -171866,7 +171884,7 @@ var require_ProcessDetector = __commonJS({
|
|
|
171866
171884
|
exports2.processDetector = void 0;
|
|
171867
171885
|
var api_1 = (init_esm2(), __toCommonJS(esm_exports4));
|
|
171868
171886
|
var semconv_1 = require_semconv2();
|
|
171869
|
-
var
|
|
171887
|
+
var os23 = __require("os");
|
|
171870
171888
|
var ProcessDetector = class {
|
|
171871
171889
|
detect(_config) {
|
|
171872
171890
|
const attributes = {
|
|
@@ -171886,7 +171904,7 @@ var require_ProcessDetector = __commonJS({
|
|
|
171886
171904
|
attributes[semconv_1.ATTR_PROCESS_COMMAND] = process.argv[1];
|
|
171887
171905
|
}
|
|
171888
171906
|
try {
|
|
171889
|
-
const userInfo2 =
|
|
171907
|
+
const userInfo2 = os23.userInfo();
|
|
171890
171908
|
attributes[semconv_1.ATTR_PROCESS_OWNER] = userInfo2.username;
|
|
171891
171909
|
} catch (e3) {
|
|
171892
171910
|
api_1.diag.debug(`error obtaining process owner: ${e3}`);
|
|
@@ -191396,7 +191414,7 @@ var require_package10 = __commonJS({
|
|
|
191396
191414
|
var require_util13 = __commonJS({
|
|
191397
191415
|
"node_modules/systeminformation/lib/util.js"(exports2) {
|
|
191398
191416
|
"use strict";
|
|
191399
|
-
var
|
|
191417
|
+
var os23 = __require("os");
|
|
191400
191418
|
var fs75 = __require("fs");
|
|
191401
191419
|
var path90 = __require("path");
|
|
191402
191420
|
var spawn10 = __require("child_process").spawn;
|
|
@@ -191503,7 +191521,7 @@ var require_util13 = __commonJS({
|
|
|
191503
191521
|
}
|
|
191504
191522
|
function cores() {
|
|
191505
191523
|
if (_cores === 0) {
|
|
191506
|
-
_cores =
|
|
191524
|
+
_cores = os23.cpus().length;
|
|
191507
191525
|
}
|
|
191508
191526
|
return _cores;
|
|
191509
191527
|
}
|
|
@@ -191764,7 +191782,7 @@ var require_util13 = __commonJS({
|
|
|
191764
191782
|
function powerShellRelease() {
|
|
191765
191783
|
try {
|
|
191766
191784
|
if (_psChild) {
|
|
191767
|
-
_psChild.stdin.write("exit" +
|
|
191785
|
+
_psChild.stdin.write("exit" + os23.EOL);
|
|
191768
191786
|
_psChild.stdin.end();
|
|
191769
191787
|
}
|
|
191770
191788
|
} catch {
|
|
@@ -191791,7 +191809,7 @@ var require_util13 = __commonJS({
|
|
|
191791
191809
|
});
|
|
191792
191810
|
try {
|
|
191793
191811
|
if (_psChild && _psChild.pid) {
|
|
191794
|
-
_psChild.stdin.write(_psToUTF8 + "echo " + _psCmdStart + id + _psIdSeperator + "; " +
|
|
191812
|
+
_psChild.stdin.write(_psToUTF8 + "echo " + _psCmdStart + id + _psIdSeperator + "; " + os23.EOL + cmd + os23.EOL + "echo " + _psCmdSeperator + os23.EOL);
|
|
191795
191813
|
}
|
|
191796
191814
|
} catch {
|
|
191797
191815
|
resolve20("");
|
|
@@ -191803,7 +191821,7 @@ var require_util13 = __commonJS({
|
|
|
191803
191821
|
return new Promise((resolve20) => {
|
|
191804
191822
|
process.nextTick(() => {
|
|
191805
191823
|
try {
|
|
191806
|
-
const osVersion =
|
|
191824
|
+
const osVersion = os23.release().split(".").map(Number);
|
|
191807
191825
|
const spanOptions = osVersion[0] < 10 ? ["-NoProfile", "-NoLogo", "-InputFormat", "Text", "-NoExit", "-ExecutionPolicy", "Unrestricted", "-Command", "-"] : ["-NoProfile", "-NoLogo", "-InputFormat", "Text", "-ExecutionPolicy", "Unrestricted", "-Command", _psToUTF8 + cmd];
|
|
191808
191826
|
const child = spawn10(_powerShell, spanOptions, {
|
|
191809
191827
|
stdio: "pipe",
|
|
@@ -191835,8 +191853,8 @@ var require_util13 = __commonJS({
|
|
|
191835
191853
|
});
|
|
191836
191854
|
if (osVersion[0] < 10) {
|
|
191837
191855
|
try {
|
|
191838
|
-
child.stdin.write(_psToUTF8 + cmd +
|
|
191839
|
-
child.stdin.write("exit" +
|
|
191856
|
+
child.stdin.write(_psToUTF8 + cmd + os23.EOL);
|
|
191857
|
+
child.stdin.write("exit" + os23.EOL);
|
|
191840
191858
|
child.stdin.end();
|
|
191841
191859
|
} catch {
|
|
191842
191860
|
child.kill();
|
|
@@ -192101,14 +192119,14 @@ var require_util13 = __commonJS({
|
|
|
192101
192119
|
return ("00000000" + parseInt(hex, 16).toString(2)).substr(-8);
|
|
192102
192120
|
}
|
|
192103
192121
|
function getFilesInPath(source) {
|
|
192104
|
-
const
|
|
192122
|
+
const lstatSync3 = fs75.lstatSync;
|
|
192105
192123
|
const readdirSync4 = fs75.readdirSync;
|
|
192106
192124
|
const join34 = path90.join;
|
|
192107
192125
|
function isDirectory(source2) {
|
|
192108
|
-
return
|
|
192126
|
+
return lstatSync3(source2).isDirectory();
|
|
192109
192127
|
}
|
|
192110
192128
|
function isFile3(source2) {
|
|
192111
|
-
return
|
|
192129
|
+
return lstatSync3(source2).isFile();
|
|
192112
192130
|
}
|
|
192113
192131
|
function getDirectories(source2) {
|
|
192114
192132
|
return readdirSync4(source2).map((name4) => {
|
|
@@ -193904,7 +193922,7 @@ var require_util13 = __commonJS({
|
|
|
193904
193922
|
var require_osinfo = __commonJS({
|
|
193905
193923
|
"node_modules/systeminformation/lib/osinfo.js"(exports2) {
|
|
193906
193924
|
"use strict";
|
|
193907
|
-
var
|
|
193925
|
+
var os23 = __require("os");
|
|
193908
193926
|
var fs75 = __require("fs");
|
|
193909
193927
|
var util5 = require_util13();
|
|
193910
193928
|
var exec3 = __require("child_process").exec;
|
|
@@ -193927,14 +193945,14 @@ var require_osinfo = __commonJS({
|
|
|
193927
193945
|
}
|
|
193928
193946
|
const result2 = {
|
|
193929
193947
|
current: Date.now(),
|
|
193930
|
-
uptime:
|
|
193948
|
+
uptime: os23.uptime(),
|
|
193931
193949
|
timezone: t3.length >= 7 ? t3[5] : "",
|
|
193932
193950
|
timezoneName
|
|
193933
193951
|
};
|
|
193934
193952
|
if (_darwin || _linux) {
|
|
193935
193953
|
try {
|
|
193936
193954
|
const stdout = execSync4("date +%Z && date +%z && ls -l /etc/localtime 2>/dev/null", util5.execOptsLinux);
|
|
193937
|
-
const lines = stdout.toString().split(
|
|
193955
|
+
const lines = stdout.toString().split(os23.EOL);
|
|
193938
193956
|
if (lines.length > 3 && !lines[0]) {
|
|
193939
193957
|
lines.shift();
|
|
193940
193958
|
}
|
|
@@ -193944,7 +193962,7 @@ var require_osinfo = __commonJS({
|
|
|
193944
193962
|
}
|
|
193945
193963
|
return {
|
|
193946
193964
|
current: Date.now(),
|
|
193947
|
-
uptime:
|
|
193965
|
+
uptime: os23.uptime(),
|
|
193948
193966
|
timezone: lines[1] ? timezone + lines[1] : timezone,
|
|
193949
193967
|
timezoneName: lines[2] && lines[2].indexOf("/zoneinfo/") > 0 ? lines[2].split("/zoneinfo/")[1] || "" : ""
|
|
193950
193968
|
};
|
|
@@ -194063,11 +194081,11 @@ var require_osinfo = __commonJS({
|
|
|
194063
194081
|
return "";
|
|
194064
194082
|
}
|
|
194065
194083
|
function getFQDN() {
|
|
194066
|
-
let fqdn =
|
|
194084
|
+
let fqdn = os23.hostname;
|
|
194067
194085
|
if (_linux || _darwin) {
|
|
194068
194086
|
try {
|
|
194069
194087
|
const stdout = execSync4("hostname -f 2>/dev/null", util5.execOptsLinux);
|
|
194070
|
-
fqdn = stdout.toString().split(
|
|
194088
|
+
fqdn = stdout.toString().split(os23.EOL)[0];
|
|
194071
194089
|
} catch {
|
|
194072
194090
|
util5.noop();
|
|
194073
194091
|
}
|
|
@@ -194075,7 +194093,7 @@ var require_osinfo = __commonJS({
|
|
|
194075
194093
|
if (_freebsd || _openbsd || _netbsd) {
|
|
194076
194094
|
try {
|
|
194077
194095
|
const stdout = execSync4("hostname 2>/dev/null");
|
|
194078
|
-
fqdn = stdout.toString().split(
|
|
194096
|
+
fqdn = stdout.toString().split(os23.EOL)[0];
|
|
194079
194097
|
} catch {
|
|
194080
194098
|
util5.noop();
|
|
194081
194099
|
}
|
|
@@ -194083,7 +194101,7 @@ var require_osinfo = __commonJS({
|
|
|
194083
194101
|
if (_windows) {
|
|
194084
194102
|
try {
|
|
194085
194103
|
const stdout = execSync4("echo %COMPUTERNAME%.%USERDNSDOMAIN%", util5.execOptsWin);
|
|
194086
|
-
fqdn = stdout.toString().replace(".%USERDNSDOMAIN%", "").split(
|
|
194104
|
+
fqdn = stdout.toString().replace(".%USERDNSDOMAIN%", "").split(os23.EOL)[0];
|
|
194087
194105
|
} catch {
|
|
194088
194106
|
util5.noop();
|
|
194089
194107
|
}
|
|
@@ -194098,9 +194116,9 @@ var require_osinfo = __commonJS({
|
|
|
194098
194116
|
distro: "unknown",
|
|
194099
194117
|
release: "unknown",
|
|
194100
194118
|
codename: "",
|
|
194101
|
-
kernel:
|
|
194102
|
-
arch:
|
|
194103
|
-
hostname:
|
|
194119
|
+
kernel: os23.release(),
|
|
194120
|
+
arch: os23.arch(),
|
|
194121
|
+
hostname: os23.hostname(),
|
|
194104
194122
|
fqdn: getFQDN(),
|
|
194105
194123
|
codepage: "",
|
|
194106
194124
|
logofile: "",
|
|
@@ -194309,7 +194327,7 @@ var require_osinfo = __commonJS({
|
|
|
194309
194327
|
}
|
|
194310
194328
|
function versions(apps2, callback) {
|
|
194311
194329
|
let versionObject = {
|
|
194312
|
-
kernel:
|
|
194330
|
+
kernel: os23.release(),
|
|
194313
194331
|
apache: "",
|
|
194314
194332
|
bash: "",
|
|
194315
194333
|
bun: "",
|
|
@@ -195019,7 +195037,7 @@ var require_osinfo = __commonJS({
|
|
|
195019
195037
|
function getUniqueMacAdresses() {
|
|
195020
195038
|
let macs = [];
|
|
195021
195039
|
try {
|
|
195022
|
-
const ifaces =
|
|
195040
|
+
const ifaces = os23.networkInterfaces();
|
|
195023
195041
|
for (let dev in ifaces) {
|
|
195024
195042
|
if ({}.hasOwnProperty.call(ifaces, dev)) {
|
|
195025
195043
|
ifaces[dev].forEach((details) => {
|
|
@@ -195141,7 +195159,7 @@ var require_system = __commonJS({
|
|
|
195141
195159
|
"node_modules/systeminformation/lib/system.js"(exports2) {
|
|
195142
195160
|
"use strict";
|
|
195143
195161
|
var fs75 = __require("fs");
|
|
195144
|
-
var
|
|
195162
|
+
var os23 = __require("os");
|
|
195145
195163
|
var util5 = require_util13();
|
|
195146
195164
|
var { uuid: uuid2 } = require_osinfo();
|
|
195147
195165
|
var exec3 = __require("child_process").exec;
|
|
@@ -195265,8 +195283,8 @@ var require_system = __commonJS({
|
|
|
195265
195283
|
util5.noop();
|
|
195266
195284
|
}
|
|
195267
195285
|
}
|
|
195268
|
-
if (!result2.virtual && (
|
|
195269
|
-
const kernelVersion = parseFloat(
|
|
195286
|
+
if (!result2.virtual && (os23.release().toLowerCase().indexOf("microsoft") >= 0 || os23.release().toLowerCase().endsWith("wsl2"))) {
|
|
195287
|
+
const kernelVersion = parseFloat(os23.release().toLowerCase());
|
|
195270
195288
|
result2.virtual = true;
|
|
195271
195289
|
result2.manufacturer = "Microsoft";
|
|
195272
195290
|
result2.model = "WSL";
|
|
@@ -195676,7 +195694,7 @@ var require_system = __commonJS({
|
|
|
195676
195694
|
result2.model = "Raspberry Pi";
|
|
195677
195695
|
result2.serial = rpi.serial;
|
|
195678
195696
|
result2.version = rpi.type + " - " + rpi.revision;
|
|
195679
|
-
result2.memMax =
|
|
195697
|
+
result2.memMax = os23.totalmem();
|
|
195680
195698
|
result2.memSlots = 0;
|
|
195681
195699
|
}
|
|
195682
195700
|
if (callback) {
|
|
@@ -195702,9 +195720,9 @@ var require_system = __commonJS({
|
|
|
195702
195720
|
}
|
|
195703
195721
|
devices.shift();
|
|
195704
195722
|
result2.memSlots = devices.length;
|
|
195705
|
-
if (
|
|
195723
|
+
if (os23.arch() === "arm64") {
|
|
195706
195724
|
result2.memSlots = 0;
|
|
195707
|
-
result2.memMax =
|
|
195725
|
+
result2.memMax = os23.totalmem();
|
|
195708
195726
|
}
|
|
195709
195727
|
if (callback) {
|
|
195710
195728
|
callback(result2);
|
|
@@ -195721,7 +195739,7 @@ var require_system = __commonJS({
|
|
|
195721
195739
|
if (_windows) {
|
|
195722
195740
|
try {
|
|
195723
195741
|
const workload = [];
|
|
195724
|
-
const win10plus = parseInt(
|
|
195742
|
+
const win10plus = parseInt(os23.release()) >= 10;
|
|
195725
195743
|
const maxCapacityAttribute = win10plus ? "MaxCapacityEx" : "MaxCapacity";
|
|
195726
195744
|
workload.push(util5.powerShell("Get-CimInstance Win32_baseboard | select Model,Manufacturer,Product,Version,SerialNumber,PartNumber,SKU | fl"));
|
|
195727
195745
|
workload.push(util5.powerShell(`Get-CimInstance Win32_physicalmemoryarray | select ${maxCapacityAttribute}, MemoryDevices | fl`));
|
|
@@ -195917,7 +195935,7 @@ var require_system = __commonJS({
|
|
|
195917
195935
|
var require_cpu = __commonJS({
|
|
195918
195936
|
"node_modules/systeminformation/lib/cpu.js"(exports2) {
|
|
195919
195937
|
"use strict";
|
|
195920
|
-
var
|
|
195938
|
+
var os23 = __require("os");
|
|
195921
195939
|
var exec3 = __require("child_process").exec;
|
|
195922
195940
|
var execSync4 = __require("child_process").execSync;
|
|
195923
195941
|
var fs75 = __require("fs");
|
|
@@ -196780,7 +196798,7 @@ var require_cpu = __commonJS({
|
|
|
196780
196798
|
const countProcessors = util5.getValue(lines, "hw.packages");
|
|
196781
196799
|
const countCores = util5.getValue(lines, "hw.physicalcpu_max");
|
|
196782
196800
|
const countThreads = util5.getValue(lines, "hw.ncpu");
|
|
196783
|
-
if (
|
|
196801
|
+
if (os23.arch() === "arm64") {
|
|
196784
196802
|
result2.socket = "SOC";
|
|
196785
196803
|
try {
|
|
196786
196804
|
const clusters = execSync4("ioreg -c IOPlatformDevice -d 3 -r | grep cluster-type").toString().split("\n");
|
|
@@ -196808,8 +196826,8 @@ var require_cpu = __commonJS({
|
|
|
196808
196826
|
if (_linux) {
|
|
196809
196827
|
let modelline = "";
|
|
196810
196828
|
let lines = [];
|
|
196811
|
-
if (
|
|
196812
|
-
modelline =
|
|
196829
|
+
if (os23.cpus()[0] && os23.cpus()[0].model) {
|
|
196830
|
+
modelline = os23.cpus()[0].model;
|
|
196813
196831
|
}
|
|
196814
196832
|
exec3('export LC_ALL=C; lscpu; echo -n "Governor: "; cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor 2>/dev/null; echo; unset LC_ALL', (error2, stdout) => {
|
|
196815
196833
|
if (!error2) {
|
|
@@ -196898,8 +196916,8 @@ var require_cpu = __commonJS({
|
|
|
196898
196916
|
if (_freebsd || _openbsd || _netbsd) {
|
|
196899
196917
|
let modelline = "";
|
|
196900
196918
|
let lines = [];
|
|
196901
|
-
if (
|
|
196902
|
-
modelline =
|
|
196919
|
+
if (os23.cpus()[0] && os23.cpus()[0].model) {
|
|
196920
|
+
modelline = os23.cpus()[0].model;
|
|
196903
196921
|
}
|
|
196904
196922
|
exec3("export LC_ALL=C; dmidecode -t 4; dmidecode -t 7 unset LC_ALL", (error2, stdout) => {
|
|
196905
196923
|
let cache4 = [];
|
|
@@ -197059,7 +197077,7 @@ var require_cpu = __commonJS({
|
|
|
197059
197077
|
}
|
|
197060
197078
|
exports2.cpu = cpu;
|
|
197061
197079
|
function getCpuCurrentSpeedSync() {
|
|
197062
|
-
const cpus2 =
|
|
197080
|
+
const cpus2 = os23.cpus();
|
|
197063
197081
|
let minFreq = 999999999;
|
|
197064
197082
|
let maxFreq = 0;
|
|
197065
197083
|
let avgFreq = 0;
|
|
@@ -197754,7 +197772,7 @@ var require_cpu = __commonJS({
|
|
|
197754
197772
|
function getLoad() {
|
|
197755
197773
|
return new Promise((resolve20) => {
|
|
197756
197774
|
process.nextTick(() => {
|
|
197757
|
-
const loads =
|
|
197775
|
+
const loads = os23.loadavg().map((x3) => {
|
|
197758
197776
|
return x3 / util5.cores();
|
|
197759
197777
|
});
|
|
197760
197778
|
const avgLoad = parseFloat(Math.max.apply(Math, loads).toFixed(2));
|
|
@@ -197762,7 +197780,7 @@ var require_cpu = __commonJS({
|
|
|
197762
197780
|
const now = Date.now() - _current_cpu.ms;
|
|
197763
197781
|
if (now >= 200) {
|
|
197764
197782
|
_current_cpu.ms = Date.now();
|
|
197765
|
-
const cpus2 =
|
|
197783
|
+
const cpus2 = os23.cpus().map((cpu2) => {
|
|
197766
197784
|
cpu2.times.steal = 0;
|
|
197767
197785
|
cpu2.times.guest = 0;
|
|
197768
197786
|
return cpu2;
|
|
@@ -197956,7 +197974,7 @@ var require_cpu = __commonJS({
|
|
|
197956
197974
|
function getFullLoad() {
|
|
197957
197975
|
return new Promise((resolve20) => {
|
|
197958
197976
|
process.nextTick(() => {
|
|
197959
|
-
const cpus2 =
|
|
197977
|
+
const cpus2 = os23.cpus();
|
|
197960
197978
|
let totalUser = 0;
|
|
197961
197979
|
let totalSystem = 0;
|
|
197962
197980
|
let totalNice = 0;
|
|
@@ -197999,7 +198017,7 @@ var require_cpu = __commonJS({
|
|
|
197999
198017
|
var require_memory = __commonJS({
|
|
198000
198018
|
"node_modules/systeminformation/lib/memory.js"(exports2) {
|
|
198001
198019
|
"use strict";
|
|
198002
|
-
var
|
|
198020
|
+
var os23 = __require("os");
|
|
198003
198021
|
var exec3 = __require("child_process").exec;
|
|
198004
198022
|
var execSync4 = __require("child_process").execSync;
|
|
198005
198023
|
var util5 = require_util13();
|
|
@@ -198045,12 +198063,12 @@ var require_memory = __commonJS({
|
|
|
198045
198063
|
return new Promise((resolve20) => {
|
|
198046
198064
|
process.nextTick(() => {
|
|
198047
198065
|
let result2 = {
|
|
198048
|
-
total:
|
|
198049
|
-
free:
|
|
198050
|
-
used:
|
|
198051
|
-
active:
|
|
198066
|
+
total: os23.totalmem(),
|
|
198067
|
+
free: os23.freemem(),
|
|
198068
|
+
used: os23.totalmem() - os23.freemem(),
|
|
198069
|
+
active: os23.totalmem() - os23.freemem(),
|
|
198052
198070
|
// temporarily (fallback)
|
|
198053
|
-
available:
|
|
198071
|
+
available: os23.freemem(),
|
|
198054
198072
|
// temporarily (fallback)
|
|
198055
198073
|
buffers: 0,
|
|
198056
198074
|
cached: 0,
|
|
@@ -198069,9 +198087,9 @@ var require_memory = __commonJS({
|
|
|
198069
198087
|
if (!error2) {
|
|
198070
198088
|
const lines = stdout.toString().split("\n");
|
|
198071
198089
|
result2.total = parseInt(util5.getValue(lines, "memtotal"), 10);
|
|
198072
|
-
result2.total = result2.total ? result2.total * 1024 :
|
|
198090
|
+
result2.total = result2.total ? result2.total * 1024 : os23.totalmem();
|
|
198073
198091
|
result2.free = parseInt(util5.getValue(lines, "memfree"), 10);
|
|
198074
|
-
result2.free = result2.free ? result2.free * 1024 :
|
|
198092
|
+
result2.free = result2.free ? result2.free * 1024 : os23.freemem();
|
|
198075
198093
|
result2.used = result2.total - result2.free;
|
|
198076
198094
|
result2.buffers = parseInt(util5.getValue(lines, "buffers"), 10);
|
|
198077
198095
|
result2.buffers = result2.buffers ? result2.buffers * 1024 : 0;
|
|
@@ -198293,7 +198311,7 @@ var require_memory = __commonJS({
|
|
|
198293
198311
|
}
|
|
198294
198312
|
if (!result2.length) {
|
|
198295
198313
|
result2.push({
|
|
198296
|
-
size:
|
|
198314
|
+
size: os23.totalmem(),
|
|
198297
198315
|
bank: "",
|
|
198298
198316
|
type: "",
|
|
198299
198317
|
ecc: null,
|
|
@@ -201441,7 +201459,7 @@ ${BSDName}|"; diskutil info /dev/${BSDName} | grep SMART;`;
|
|
|
201441
201459
|
var require_network = __commonJS({
|
|
201442
201460
|
"node_modules/systeminformation/lib/network.js"(exports2) {
|
|
201443
201461
|
"use strict";
|
|
201444
|
-
var
|
|
201462
|
+
var os23 = __require("os");
|
|
201445
201463
|
var exec3 = __require("child_process").exec;
|
|
201446
201464
|
var execSync4 = __require("child_process").execSync;
|
|
201447
201465
|
var fs75 = __require("fs");
|
|
@@ -201465,7 +201483,7 @@ var require_network = __commonJS({
|
|
|
201465
201483
|
let ifacename = "";
|
|
201466
201484
|
let ifacenameFirst = "";
|
|
201467
201485
|
try {
|
|
201468
|
-
const ifaces =
|
|
201486
|
+
const ifaces = os23.networkInterfaces();
|
|
201469
201487
|
let scopeid = 9999;
|
|
201470
201488
|
for (let dev in ifaces) {
|
|
201471
201489
|
if ({}.hasOwnProperty.call(ifaces, dev)) {
|
|
@@ -201485,7 +201503,7 @@ var require_network = __commonJS({
|
|
|
201485
201503
|
let defaultIp = "";
|
|
201486
201504
|
const cmd = "netstat -r";
|
|
201487
201505
|
const result2 = execSync4(cmd, util5.execOptsWin);
|
|
201488
|
-
const lines = result2.toString().split(
|
|
201506
|
+
const lines = result2.toString().split(os23.EOL);
|
|
201489
201507
|
lines.forEach((line) => {
|
|
201490
201508
|
line = line.replace(/\s+/g, " ").trim();
|
|
201491
201509
|
if (line.indexOf("0.0.0.0 0.0.0.0") > -1 && !/[a-zA-Z]/.test(line)) {
|
|
@@ -202118,7 +202136,7 @@ var require_network = __commonJS({
|
|
|
202118
202136
|
defaultString = "" + defaultString;
|
|
202119
202137
|
return new Promise((resolve20) => {
|
|
202120
202138
|
process.nextTick(() => {
|
|
202121
|
-
const ifaces =
|
|
202139
|
+
const ifaces = os23.networkInterfaces();
|
|
202122
202140
|
let result2 = [];
|
|
202123
202141
|
let nics = [];
|
|
202124
202142
|
let dnsSuffixes = [];
|
|
@@ -203188,7 +203206,7 @@ var require_network = __commonJS({
|
|
|
203188
203206
|
if (_windows) {
|
|
203189
203207
|
try {
|
|
203190
203208
|
exec3("netstat -r", util5.execOptsWin, (error2, stdout) => {
|
|
203191
|
-
const lines = stdout.toString().split(
|
|
203209
|
+
const lines = stdout.toString().split(os23.EOL);
|
|
203192
203210
|
lines.forEach((line) => {
|
|
203193
203211
|
line = line.replace(/\s+/g, " ").trim();
|
|
203194
203212
|
if (line.indexOf("0.0.0.0 0.0.0.0") > -1 && !/[a-zA-Z]/.test(line)) {
|
|
@@ -203234,7 +203252,7 @@ var require_network = __commonJS({
|
|
|
203234
203252
|
var require_wifi = __commonJS({
|
|
203235
203253
|
"node_modules/systeminformation/lib/wifi.js"(exports2) {
|
|
203236
203254
|
"use strict";
|
|
203237
|
-
var
|
|
203255
|
+
var os23 = __require("os");
|
|
203238
203256
|
var exec3 = __require("child_process").exec;
|
|
203239
203257
|
var execSync4 = __require("child_process").execSync;
|
|
203240
203258
|
var util5 = require_util13();
|
|
@@ -203456,7 +203474,7 @@ var require_wifi = __commonJS({
|
|
|
203456
203474
|
parts2.shift();
|
|
203457
203475
|
parts2.forEach((part) => {
|
|
203458
203476
|
part = "ACTIVE:" + part;
|
|
203459
|
-
const lines = part.split(
|
|
203477
|
+
const lines = part.split(os23.EOL);
|
|
203460
203478
|
const channel = util5.getValue(lines, "CHAN");
|
|
203461
203479
|
const frequency = util5.getValue(lines, "FREQ").toLowerCase().replace("mhz", "").trim();
|
|
203462
203480
|
const security = util5.getValue(lines, "SECURITY").replace("(", "").replace(")", "");
|
|
@@ -203680,15 +203698,15 @@ var require_wifi = __commonJS({
|
|
|
203680
203698
|
} else if (_windows) {
|
|
203681
203699
|
const cmd = "netsh wlan show networks mode=Bssid";
|
|
203682
203700
|
util5.powerShell(cmd).then((stdout) => {
|
|
203683
|
-
const ssidParts = stdout.toString("utf8").split(
|
|
203701
|
+
const ssidParts = stdout.toString("utf8").split(os23.EOL + os23.EOL + "SSID ");
|
|
203684
203702
|
ssidParts.shift();
|
|
203685
203703
|
ssidParts.forEach((ssidPart) => {
|
|
203686
|
-
const ssidLines = ssidPart.split(
|
|
203704
|
+
const ssidLines = ssidPart.split(os23.EOL);
|
|
203687
203705
|
if (ssidLines && ssidLines.length >= 8 && ssidLines[0].indexOf(":") >= 0) {
|
|
203688
203706
|
const bssidsParts = ssidPart.split(" BSSID");
|
|
203689
203707
|
bssidsParts.shift();
|
|
203690
203708
|
bssidsParts.forEach((bssidPart) => {
|
|
203691
|
-
const bssidLines = bssidPart.split(
|
|
203709
|
+
const bssidLines = bssidPart.split(os23.EOL);
|
|
203692
203710
|
const bssidLine = bssidLines[0].split(":");
|
|
203693
203711
|
bssidLine.shift();
|
|
203694
203712
|
const bssid = bssidLine.join(":").trim().toLowerCase();
|
|
@@ -204012,7 +204030,7 @@ var require_wifi = __commonJS({
|
|
|
204012
204030
|
var require_processes = __commonJS({
|
|
204013
204031
|
"node_modules/systeminformation/lib/processes.js"(exports2) {
|
|
204014
204032
|
"use strict";
|
|
204015
|
-
var
|
|
204033
|
+
var os23 = __require("os");
|
|
204016
204034
|
var fs75 = __require("fs");
|
|
204017
204035
|
var path90 = __require("path");
|
|
204018
204036
|
var exec3 = __require("child_process").exec;
|
|
@@ -204663,7 +204681,7 @@ var require_processes = __commonJS({
|
|
|
204663
204681
|
line = line.trim().replace(/ +/g, " ").replace(/,+/g, ".");
|
|
204664
204682
|
const parts2 = line.split(" ");
|
|
204665
204683
|
const command = parts2.slice(9).join(" ");
|
|
204666
|
-
const pmem = parseFloat((1 * parseInt(parts2[3]) * 1024 /
|
|
204684
|
+
const pmem = parseFloat((1 * parseInt(parts2[3]) * 1024 / os23.totalmem()).toFixed(1));
|
|
204667
204685
|
const started = parseElapsed(parts2[5]);
|
|
204668
204686
|
result2.push({
|
|
204669
204687
|
pid: parseInt(parts2[0]),
|
|
@@ -204866,7 +204884,7 @@ var require_processes = __commonJS({
|
|
|
204866
204884
|
cpu: 0,
|
|
204867
204885
|
cpuu: 0,
|
|
204868
204886
|
cpus: 0,
|
|
204869
|
-
mem: memw /
|
|
204887
|
+
mem: memw / os23.totalmem() * 100,
|
|
204870
204888
|
priority: element.Priority | null,
|
|
204871
204889
|
memVsz: element.PageFileUsage || null,
|
|
204872
204890
|
memRss: Math.floor((element.WorkingSetSize || 0) / 1024),
|
|
@@ -205020,7 +205038,7 @@ var require_processes = __commonJS({
|
|
|
205020
205038
|
result2.forEach((item) => {
|
|
205021
205039
|
if (item.proc.toLowerCase() === pname.toLowerCase()) {
|
|
205022
205040
|
item.pids.push(pid);
|
|
205023
|
-
item.mem += mem /
|
|
205041
|
+
item.mem += mem / os23.totalmem() * 100;
|
|
205024
205042
|
processFound = true;
|
|
205025
205043
|
}
|
|
205026
205044
|
});
|
|
@@ -205030,7 +205048,7 @@ var require_processes = __commonJS({
|
|
|
205030
205048
|
pid,
|
|
205031
205049
|
pids: [pid],
|
|
205032
205050
|
cpu: 0,
|
|
205033
|
-
mem: mem /
|
|
205051
|
+
mem: mem / os23.totalmem() * 100
|
|
205034
205052
|
});
|
|
205035
205053
|
}
|
|
205036
205054
|
}
|
|
@@ -206771,7 +206789,7 @@ var require_docker = __commonJS({
|
|
|
206771
206789
|
var require_virtualbox = __commonJS({
|
|
206772
206790
|
"node_modules/systeminformation/lib/virtualbox.js"(exports2) {
|
|
206773
206791
|
"use strict";
|
|
206774
|
-
var
|
|
206792
|
+
var os23 = __require("os");
|
|
206775
206793
|
var exec3 = __require("child_process").exec;
|
|
206776
206794
|
var util5 = require_util13();
|
|
206777
206795
|
function vboxInfo(callback) {
|
|
@@ -206780,10 +206798,10 @@ var require_virtualbox = __commonJS({
|
|
|
206780
206798
|
process.nextTick(() => {
|
|
206781
206799
|
try {
|
|
206782
206800
|
exec3(util5.getVboxmanage() + " list vms --long", (error2, stdout) => {
|
|
206783
|
-
let parts2 = (
|
|
206801
|
+
let parts2 = (os23.EOL + stdout.toString()).split(os23.EOL + "Name:");
|
|
206784
206802
|
parts2.shift();
|
|
206785
206803
|
parts2.forEach((part) => {
|
|
206786
|
-
const lines = ("Name:" + part).split(
|
|
206804
|
+
const lines = ("Name:" + part).split(os23.EOL);
|
|
206787
206805
|
const state = util5.getValue(lines, "State");
|
|
206788
206806
|
const running = state.startsWith("running");
|
|
206789
206807
|
const runningSinceString = running ? state.replace("running (since ", "").replace(")", "").trim() : "";
|
|
@@ -214210,8 +214228,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
|
|
|
214210
214228
|
var init_git_commit = __esm({
|
|
214211
214229
|
"packages/core/dist/src/generated/git-commit.js"() {
|
|
214212
214230
|
"use strict";
|
|
214213
|
-
GIT_COMMIT_INFO = "
|
|
214214
|
-
CLI_VERSION = "0.33.0-preview.
|
|
214231
|
+
GIT_COMMIT_INFO = "5d2983f12";
|
|
214232
|
+
CLI_VERSION = "0.33.0-preview.7";
|
|
214215
214233
|
}
|
|
214216
214234
|
});
|
|
214217
214235
|
|
|
@@ -216602,13 +216620,13 @@ var require_src55 = __commonJS({
|
|
|
216602
216620
|
};
|
|
216603
216621
|
function mapOtelResourceToMonitoredResource(resource) {
|
|
216604
216622
|
const attrs = resource.attributes;
|
|
216605
|
-
const
|
|
216623
|
+
const platform14 = attrs[semantic_conventions_1.SEMRESATTRS_CLOUD_PLATFORM];
|
|
216606
216624
|
let mr;
|
|
216607
|
-
if (
|
|
216625
|
+
if (platform14 === semantic_conventions_1.CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE) {
|
|
216608
216626
|
mr = createMonitoredResource(GCE_INSTANCE, attrs);
|
|
216609
|
-
} else if (
|
|
216627
|
+
} else if (platform14 === semantic_conventions_1.CLOUDPLATFORMVALUES_GCP_APP_ENGINE) {
|
|
216610
216628
|
mr = createMonitoredResource(GAE_INSTANCE, attrs);
|
|
216611
|
-
} else if (
|
|
216629
|
+
} else if (platform14 === semantic_conventions_1.CLOUDPLATFORMVALUES_AWS_EC2) {
|
|
216612
216630
|
mr = createMonitoredResource(AWS_EC2_INSTANCE, attrs);
|
|
216613
216631
|
} else if (semantic_conventions_1.SEMRESATTRS_K8S_CLUSTER_NAME in attrs) {
|
|
216614
216632
|
if (semantic_conventions_1.SEMRESATTRS_K8S_CONTAINER_NAME in attrs) {
|
|
@@ -226479,7 +226497,7 @@ var require_grpc = __commonJS({
|
|
|
226479
226497
|
var fs75 = __require("fs");
|
|
226480
226498
|
var google_auth_library_1 = require_src8();
|
|
226481
226499
|
var grpc = require_src28();
|
|
226482
|
-
var
|
|
226500
|
+
var os23 = __require("os");
|
|
226483
226501
|
var path_1 = __require("path");
|
|
226484
226502
|
var path90 = __require("path");
|
|
226485
226503
|
var protobuf = require_protobufjs();
|
|
@@ -226784,7 +226802,7 @@ var require_grpc = __commonJS({
|
|
|
226784
226802
|
if ((opts === null || opts === void 0 ? void 0 : opts.cert) && (opts === null || opts === void 0 ? void 0 : opts.key)) {
|
|
226785
226803
|
return [opts.cert, opts.key];
|
|
226786
226804
|
}
|
|
226787
|
-
const metadataPath = (0, path_1.join)(
|
|
226805
|
+
const metadataPath = (0, path_1.join)(os23.homedir(), ".secureConnect", "context_aware_metadata.json");
|
|
226788
226806
|
const metadata2 = JSON.parse(await readFileAsync(metadataPath));
|
|
226789
226807
|
if (!metadata2.cert_provider_command) {
|
|
226790
226808
|
throw Error("no cert_provider_command found");
|
|
@@ -291469,7 +291487,7 @@ function getVersion() {
|
|
|
291469
291487
|
}
|
|
291470
291488
|
versionPromise = (async () => {
|
|
291471
291489
|
const pkgJson = await getPackageJson(__dirname3);
|
|
291472
|
-
return "0.33.0-preview.
|
|
291490
|
+
return "0.33.0-preview.7";
|
|
291473
291491
|
})();
|
|
291474
291492
|
return versionPromise;
|
|
291475
291493
|
}
|
|
@@ -291487,21 +291505,21 @@ var init_version5 = __esm({
|
|
|
291487
291505
|
import { fileURLToPath as fileURLToPath6 } from "node:url";
|
|
291488
291506
|
import path25 from "node:path";
|
|
291489
291507
|
function getPlatform() {
|
|
291490
|
-
const
|
|
291508
|
+
const platform14 = process.platform;
|
|
291491
291509
|
const arch4 = process.arch;
|
|
291492
|
-
if (
|
|
291510
|
+
if (platform14 === "darwin" && arch4 === "x64") {
|
|
291493
291511
|
return "DARWIN_AMD64";
|
|
291494
291512
|
}
|
|
291495
|
-
if (
|
|
291513
|
+
if (platform14 === "darwin" && arch4 === "arm64") {
|
|
291496
291514
|
return "DARWIN_ARM64";
|
|
291497
291515
|
}
|
|
291498
|
-
if (
|
|
291516
|
+
if (platform14 === "linux" && arch4 === "x64") {
|
|
291499
291517
|
return "LINUX_AMD64";
|
|
291500
291518
|
}
|
|
291501
|
-
if (
|
|
291519
|
+
if (platform14 === "linux" && arch4 === "arm64") {
|
|
291502
291520
|
return "LINUX_ARM64";
|
|
291503
291521
|
}
|
|
291504
|
-
if (
|
|
291522
|
+
if (platform14 === "win32" && arch4 === "x64") {
|
|
291505
291523
|
return "WINDOWS_AMD64";
|
|
291506
291524
|
}
|
|
291507
291525
|
return "PLATFORM_UNSPECIFIED";
|
|
@@ -299033,7 +299051,7 @@ var init_index_min = __esm({
|
|
|
299033
299051
|
// node_modules/path-scurry/dist/esm/index.js
|
|
299034
299052
|
import { posix as posix2, win32 as win322 } from "node:path";
|
|
299035
299053
|
import { fileURLToPath as fileURLToPath7 } from "node:url";
|
|
299036
|
-
import { lstatSync, readdir as readdirCB, readdirSync, readlinkSync, realpathSync as rps } from "fs";
|
|
299054
|
+
import { lstatSync as lstatSync2, readdir as readdirCB, readdirSync, readlinkSync as readlinkSync2, realpathSync as rps } from "fs";
|
|
299037
299055
|
import * as actualFS from "node:fs";
|
|
299038
299056
|
import { lstat, readdir, readlink, realpath } from "node:fs/promises";
|
|
299039
299057
|
var realpathSync2, defaultFS, fsFromOption, uncDriveRegexp, uncToDrive, eitherSep, UNKNOWN, IFIFO, IFCHR, IFDIR, IFBLK, IFREG, IFLNK, IFSOCK, IFMT, IFMT_UNKNOWN, READDIR_CALLED, LSTAT_CALLED, ENOTDIR, ENOENT, ENOREADLINK, ENOREALPATH, ENOCHILD, TYPEMASK, entToType, normalizeCache2, normalize2, normalizeNocaseCache, normalizeNocase, ResolveCache, ChildrenCache, setAsCwd, PathBase, PathWin32, PathPosix, PathScurryBase, PathScurryWin32, PathScurryPosix, PathScurryDarwin, Path, PathScurry;
|
|
@@ -299043,10 +299061,10 @@ var init_esm9 = __esm({
|
|
|
299043
299061
|
init_esm();
|
|
299044
299062
|
realpathSync2 = rps.native;
|
|
299045
299063
|
defaultFS = {
|
|
299046
|
-
lstatSync,
|
|
299064
|
+
lstatSync: lstatSync2,
|
|
299047
299065
|
readdir: readdirCB,
|
|
299048
299066
|
readdirSync,
|
|
299049
|
-
readlinkSync,
|
|
299067
|
+
readlinkSync: readlinkSync2,
|
|
299050
299068
|
realpathSync: realpathSync2,
|
|
299051
299069
|
promises: {
|
|
299052
299070
|
lstat,
|
|
@@ -300789,7 +300807,7 @@ var init_pattern = __esm({
|
|
|
300789
300807
|
#isUNC;
|
|
300790
300808
|
#isAbsolute;
|
|
300791
300809
|
#followGlobstar = true;
|
|
300792
|
-
constructor(patternList, globList, index,
|
|
300810
|
+
constructor(patternList, globList, index, platform14) {
|
|
300793
300811
|
if (!isPatternList(patternList)) {
|
|
300794
300812
|
throw new TypeError("empty pattern list");
|
|
300795
300813
|
}
|
|
@@ -300806,7 +300824,7 @@ var init_pattern = __esm({
|
|
|
300806
300824
|
this.#patternList = patternList;
|
|
300807
300825
|
this.#globList = globList;
|
|
300808
300826
|
this.#index = index;
|
|
300809
|
-
this.#platform =
|
|
300827
|
+
this.#platform = platform14;
|
|
300810
300828
|
if (this.#index === 0) {
|
|
300811
300829
|
if (this.isUNC()) {
|
|
300812
300830
|
const [p0, p1, p2, p3, ...prest] = this.#patternList;
|
|
@@ -300955,12 +300973,12 @@ var init_ignore = __esm({
|
|
|
300955
300973
|
absoluteChildren;
|
|
300956
300974
|
platform;
|
|
300957
300975
|
mmopts;
|
|
300958
|
-
constructor(ignored, { nobrace, nocase, noext, noglobstar, platform:
|
|
300976
|
+
constructor(ignored, { nobrace, nocase, noext, noglobstar, platform: platform14 = defaultPlatform2 }) {
|
|
300959
300977
|
this.relative = [];
|
|
300960
300978
|
this.absolute = [];
|
|
300961
300979
|
this.relativeChildren = [];
|
|
300962
300980
|
this.absoluteChildren = [];
|
|
300963
|
-
this.platform =
|
|
300981
|
+
this.platform = platform14;
|
|
300964
300982
|
this.mmopts = {
|
|
300965
300983
|
dot: true,
|
|
300966
300984
|
nobrace,
|
|
@@ -300968,7 +300986,7 @@ var init_ignore = __esm({
|
|
|
300968
300986
|
noext,
|
|
300969
300987
|
noglobstar,
|
|
300970
300988
|
optimizationLevel: 2,
|
|
300971
|
-
platform:
|
|
300989
|
+
platform: platform14,
|
|
300972
300990
|
nocomment: true,
|
|
300973
300991
|
nonegate: true
|
|
300974
300992
|
};
|
|
@@ -308258,8 +308276,8 @@ var require_path_key = __commonJS({
|
|
|
308258
308276
|
"use strict";
|
|
308259
308277
|
var pathKey2 = (options = {}) => {
|
|
308260
308278
|
const environment = options.env || process.env;
|
|
308261
|
-
const
|
|
308262
|
-
if (
|
|
308279
|
+
const platform14 = options.platform || process.platform;
|
|
308280
|
+
if (platform14 !== "win32") {
|
|
308263
308281
|
return "PATH";
|
|
308264
308282
|
}
|
|
308265
308283
|
return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
@@ -308529,9 +308547,9 @@ var require_cross_spawn = __commonJS({
|
|
|
308529
308547
|
function pathKey(options = {}) {
|
|
308530
308548
|
const {
|
|
308531
308549
|
env: env2 = process.env,
|
|
308532
|
-
platform:
|
|
308550
|
+
platform: platform14 = process.platform
|
|
308533
308551
|
} = options;
|
|
308534
|
-
if (
|
|
308552
|
+
if (platform14 !== "win32") {
|
|
308535
308553
|
return "PATH";
|
|
308536
308554
|
}
|
|
308537
308555
|
return Object.keys(env2).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
@@ -325995,8 +326013,8 @@ var init_downloadRipGrep = __esm({
|
|
|
325995
326013
|
BIN_PATH = join11(__dirname5, "../bin");
|
|
325996
326014
|
getTarget = () => {
|
|
325997
326015
|
const arch4 = process.env.npm_config_arch || os12.arch();
|
|
325998
|
-
const
|
|
325999
|
-
switch (
|
|
326016
|
+
const platform14 = process.env.platform || os12.platform();
|
|
326017
|
+
switch (platform14) {
|
|
326000
326018
|
case "darwin":
|
|
326001
326019
|
switch (arch4) {
|
|
326002
326020
|
case "arm64":
|
|
@@ -326030,7 +326048,7 @@ var init_downloadRipGrep = __esm({
|
|
|
326030
326048
|
return "i686-unknown-linux-musl.tar.gz";
|
|
326031
326049
|
}
|
|
326032
326050
|
default:
|
|
326033
|
-
throw new VError("Unknown platform: " +
|
|
326051
|
+
throw new VError("Unknown platform: " + platform14);
|
|
326034
326052
|
}
|
|
326035
326053
|
};
|
|
326036
326054
|
downloadFile2 = async (url5, outFile) => {
|
|
@@ -327698,11 +327716,11 @@ async function getIdeProcessInfoForWindows() {
|
|
|
327698
327716
|
return { pid: myPid, command: myProc.command };
|
|
327699
327717
|
}
|
|
327700
327718
|
async function getIdeProcessInfo() {
|
|
327701
|
-
const
|
|
327719
|
+
const platform14 = os14.platform();
|
|
327702
327720
|
if (process.env["GEMINI_CLI_IDE_PID"]) {
|
|
327703
327721
|
const idePid = parseInt(process.env["GEMINI_CLI_IDE_PID"], 10);
|
|
327704
327722
|
if (!isNaN(idePid) && idePid > 0) {
|
|
327705
|
-
if (
|
|
327723
|
+
if (platform14 === "win32") {
|
|
327706
327724
|
const processMap = await getProcessTableWindows();
|
|
327707
327725
|
const proc2 = processMap.get(idePid);
|
|
327708
327726
|
return { pid: idePid, command: proc2?.command || "" };
|
|
@@ -327711,7 +327729,7 @@ async function getIdeProcessInfo() {
|
|
|
327711
327729
|
return { pid: idePid, command };
|
|
327712
327730
|
}
|
|
327713
327731
|
}
|
|
327714
|
-
if (
|
|
327732
|
+
if (platform14 === "win32") {
|
|
327715
327733
|
return getIdeProcessInfoForWindows();
|
|
327716
327734
|
}
|
|
327717
327735
|
return getIdeProcessInfoForUnix();
|
|
@@ -386801,7 +386819,7 @@ async function getEnvironmentContext(config3) {
|
|
|
386801
386819
|
month: "long",
|
|
386802
386820
|
day: "numeric"
|
|
386803
386821
|
});
|
|
386804
|
-
const
|
|
386822
|
+
const platform14 = process.platform;
|
|
386805
386823
|
const directoryContext = config3.getIncludeDirectoryTree() ? await getDirectoryContextString(config3) : "";
|
|
386806
386824
|
const tempDir = config3.storage.getProjectTempDir();
|
|
386807
386825
|
const environmentMemory = config3.getEnvironmentMemory();
|
|
@@ -386809,7 +386827,7 @@ async function getEnvironmentContext(config3) {
|
|
|
386809
386827
|
<session_context>
|
|
386810
386828
|
This is the Gemini CLI. We are setting up the context for our chat.
|
|
386811
386829
|
Today's date is ${today} (formatted according to the user's locale).
|
|
386812
|
-
My operating system is: ${
|
|
386830
|
+
My operating system is: ${platform14}
|
|
386813
386831
|
The project's temporary directory is: ${tempDir}
|
|
386814
386832
|
${directoryContext}
|
|
386815
386833
|
|
|
@@ -399936,8 +399954,8 @@ var WorkspaceContext;
|
|
|
399936
399954
|
var init_workspaceContext = __esm({
|
|
399937
399955
|
"packages/core/dist/src/utils/workspaceContext.js"() {
|
|
399938
399956
|
"use strict";
|
|
399939
|
-
init_errors();
|
|
399940
399957
|
init_debugLogger();
|
|
399958
|
+
init_paths();
|
|
399941
399959
|
WorkspaceContext = class {
|
|
399942
399960
|
targetDir;
|
|
399943
399961
|
directories = /* @__PURE__ */ new Set();
|
|
@@ -400107,16 +400125,7 @@ var init_workspaceContext = __esm({
|
|
|
400107
400125
|
* if it did exist.
|
|
400108
400126
|
*/
|
|
400109
400127
|
fullyResolvedPath(pathToCheck) {
|
|
400110
|
-
|
|
400111
|
-
return fs57.realpathSync(path68.resolve(this.targetDir, pathToCheck));
|
|
400112
|
-
} catch (e3) {
|
|
400113
|
-
if (isNodeError(e3) && e3.code === "ENOENT" && e3.path && // realpathSync does not set e.path correctly for symlinks to
|
|
400114
|
-
// non-existent files.
|
|
400115
|
-
!this.isFileSymlink(e3.path)) {
|
|
400116
|
-
return e3.path;
|
|
400117
|
-
}
|
|
400118
|
-
throw e3;
|
|
400119
|
-
}
|
|
400128
|
+
return resolveToRealPath(path68.resolve(this.targetDir, pathToCheck));
|
|
400120
400129
|
}
|
|
400121
400130
|
/**
|
|
400122
400131
|
* Checks if a path is within a given root directory.
|
|
@@ -400128,16 +400137,6 @@ var init_workspaceContext = __esm({
|
|
|
400128
400137
|
const relative6 = path68.relative(rootDirectory, pathToCheck);
|
|
400129
400138
|
return !relative6.startsWith(`..${path68.sep}`) && relative6 !== ".." && !path68.isAbsolute(relative6);
|
|
400130
400139
|
}
|
|
400131
|
-
/**
|
|
400132
|
-
* Checks if a file path is a symbolic link that points to a file.
|
|
400133
|
-
*/
|
|
400134
|
-
isFileSymlink(filePath) {
|
|
400135
|
-
try {
|
|
400136
|
-
return !fs57.readlinkSync(filePath).endsWith("/");
|
|
400137
|
-
} catch (_error) {
|
|
400138
|
-
return false;
|
|
400139
|
-
}
|
|
400140
|
-
}
|
|
400141
400140
|
};
|
|
400142
400141
|
}
|
|
400143
400142
|
});
|
|
@@ -418829,7 +418828,6 @@ ${clientInstructions}
|
|
|
418829
418828
|
// packages/core/dist/src/config/config.js
|
|
418830
418829
|
import * as fs68 from "node:fs";
|
|
418831
418830
|
import * as path81 from "node:path";
|
|
418832
|
-
import * as os23 from "node:os";
|
|
418833
418831
|
import { inspect as inspect4 } from "node:util";
|
|
418834
418832
|
import process24 from "node:process";
|
|
418835
418833
|
var DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD, AuthProviderType, Config;
|
|
@@ -420158,22 +420156,13 @@ var init_config4 = __esm({
|
|
|
420158
420156
|
* @returns true if the path is allowed, false otherwise.
|
|
420159
420157
|
*/
|
|
420160
420158
|
isPathAllowed(absolutePath) {
|
|
420161
|
-
const
|
|
420162
|
-
let resolved;
|
|
420163
|
-
try {
|
|
420164
|
-
resolved = fs68.realpathSync(p);
|
|
420165
|
-
} catch {
|
|
420166
|
-
resolved = path81.resolve(p);
|
|
420167
|
-
}
|
|
420168
|
-
return os23.platform() === "win32" ? resolved.toLowerCase() : resolved;
|
|
420169
|
-
};
|
|
420170
|
-
const resolvedPath = realpath3(absolutePath);
|
|
420159
|
+
const resolvedPath = resolveToRealPath(absolutePath);
|
|
420171
420160
|
const workspaceContext = this.getWorkspaceContext();
|
|
420172
420161
|
if (workspaceContext.isPathWithinWorkspace(resolvedPath)) {
|
|
420173
420162
|
return true;
|
|
420174
420163
|
}
|
|
420175
420164
|
const projectTempDir = this.storage.getProjectTempDir();
|
|
420176
|
-
const resolvedTempDir =
|
|
420165
|
+
const resolvedTempDir = resolveToRealPath(projectTempDir);
|
|
420177
420166
|
return isSubpath(resolvedTempDir, resolvedPath);
|
|
420178
420167
|
}
|
|
420179
420168
|
/**
|
|
@@ -421228,8 +421217,8 @@ var require_utils22 = __commonJS({
|
|
|
421228
421217
|
exports2.toPosixSlashes = (str2) => str2.replace(REGEX_BACKSLASH, "/");
|
|
421229
421218
|
exports2.isWindows = () => {
|
|
421230
421219
|
if (typeof navigator !== "undefined" && navigator.platform) {
|
|
421231
|
-
const
|
|
421232
|
-
return
|
|
421220
|
+
const platform14 = navigator.platform.toLowerCase();
|
|
421221
|
+
return platform14 === "win32" || platform14 === "windows";
|
|
421233
421222
|
}
|
|
421234
421223
|
if (typeof process !== "undefined" && process.platform) {
|
|
421235
421224
|
return process.platform === "win32";
|
|
@@ -423108,7 +423097,7 @@ var require_main2 = __commonJS({
|
|
|
423108
423097
|
"packages/a2a-server/node_modules/dotenv/lib/main.js"(exports2, module2) {
|
|
423109
423098
|
var fs75 = __require("fs");
|
|
423110
423099
|
var path90 = __require("path");
|
|
423111
|
-
var
|
|
423100
|
+
var os23 = __require("os");
|
|
423112
423101
|
var crypto23 = __require("crypto");
|
|
423113
423102
|
var packageJson4 = require_package15();
|
|
423114
423103
|
var version4 = packageJson4.version;
|
|
@@ -423231,7 +423220,7 @@ var require_main2 = __commonJS({
|
|
|
423231
423220
|
return null;
|
|
423232
423221
|
}
|
|
423233
423222
|
function _resolveHome(envPath) {
|
|
423234
|
-
return envPath[0] === "~" ? path90.join(
|
|
423223
|
+
return envPath[0] === "~" ? path90.join(os23.homedir(), envPath.slice(1)) : envPath;
|
|
423235
423224
|
}
|
|
423236
423225
|
function _configVault(options) {
|
|
423237
423226
|
const debug2 = Boolean(options && options.debug);
|