@google/gemini-cli-a2a-server 0.28.0-preview.6 → 0.28.0-preview.8
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 +136 -125
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/a2a-server.mjs
CHANGED
|
@@ -6344,7 +6344,7 @@ var require_diagnostics = __commonJS({
|
|
|
6344
6344
|
function write2() {
|
|
6345
6345
|
logger7.apply(logger7, arguments);
|
|
6346
6346
|
}
|
|
6347
|
-
function
|
|
6347
|
+
function process26(message) {
|
|
6348
6348
|
for (var i4 = 0; i4 < modifiers.length; i4++) {
|
|
6349
6349
|
message = modifiers[i4].apply(modifiers[i4], arguments);
|
|
6350
6350
|
}
|
|
@@ -6371,7 +6371,7 @@ var require_diagnostics = __commonJS({
|
|
|
6371
6371
|
function yep(options) {
|
|
6372
6372
|
function diagnostics() {
|
|
6373
6373
|
var args2 = Array.prototype.slice.call(arguments, 0);
|
|
6374
|
-
write2.call(write2, options,
|
|
6374
|
+
write2.call(write2, options, process26(args2, options));
|
|
6375
6375
|
return true;
|
|
6376
6376
|
}
|
|
6377
6377
|
options.enabled = true;
|
|
@@ -6383,7 +6383,7 @@ var require_diagnostics = __commonJS({
|
|
|
6383
6383
|
module2.exports = function create3(diagnostics) {
|
|
6384
6384
|
diagnostics.introduce = introduce;
|
|
6385
6385
|
diagnostics.enabled = enabled;
|
|
6386
|
-
diagnostics.process =
|
|
6386
|
+
diagnostics.process = process26;
|
|
6387
6387
|
diagnostics.modify = modify;
|
|
6388
6388
|
diagnostics.write = write2;
|
|
6389
6389
|
diagnostics.nope = nope;
|
|
@@ -44582,7 +44582,7 @@ var require_logging_utils = __commonJS({
|
|
|
44582
44582
|
exports2.setBackend = setBackend;
|
|
44583
44583
|
exports2.log = log;
|
|
44584
44584
|
var node_events_1 = __require("node:events");
|
|
44585
|
-
var
|
|
44585
|
+
var process26 = __importStar(__require("node:process"));
|
|
44586
44586
|
var util5 = __importStar(__require("node:util"));
|
|
44587
44587
|
var colours_1 = require_colours();
|
|
44588
44588
|
var LogSeverity;
|
|
@@ -44633,7 +44633,7 @@ var require_logging_utils = __commonJS({
|
|
|
44633
44633
|
this.cached = /* @__PURE__ */ new Map();
|
|
44634
44634
|
this.filters = [];
|
|
44635
44635
|
this.filtersSet = false;
|
|
44636
|
-
let nodeFlag = (_a3 =
|
|
44636
|
+
let nodeFlag = (_a3 = process26.env[exports2.env.nodeEnables]) !== null && _a3 !== void 0 ? _a3 : "*";
|
|
44637
44637
|
if (nodeFlag === "all") {
|
|
44638
44638
|
nodeFlag = "*";
|
|
44639
44639
|
}
|
|
@@ -44673,7 +44673,7 @@ var require_logging_utils = __commonJS({
|
|
|
44673
44673
|
return (fields, ...args2) => {
|
|
44674
44674
|
var _a3;
|
|
44675
44675
|
const nscolour = `${colours_1.Colours.green}${namespace}${colours_1.Colours.reset}`;
|
|
44676
|
-
const pid = `${colours_1.Colours.yellow}${
|
|
44676
|
+
const pid = `${colours_1.Colours.yellow}${process26.pid}${colours_1.Colours.reset}`;
|
|
44677
44677
|
let level;
|
|
44678
44678
|
switch (fields.severity) {
|
|
44679
44679
|
case LogSeverity.ERROR:
|
|
@@ -44721,8 +44721,8 @@ var require_logging_utils = __commonJS({
|
|
|
44721
44721
|
}
|
|
44722
44722
|
setFilters() {
|
|
44723
44723
|
var _a3;
|
|
44724
|
-
const existingFilters = (_a3 =
|
|
44725
|
-
|
|
44724
|
+
const existingFilters = (_a3 = process26.env["NODE_DEBUG"]) !== null && _a3 !== void 0 ? _a3 : "";
|
|
44725
|
+
process26.env["NODE_DEBUG"] = `${existingFilters}${existingFilters ? "," : ""}${this.filters.join(",")}`;
|
|
44726
44726
|
}
|
|
44727
44727
|
};
|
|
44728
44728
|
function getDebugBackend(debugPkg) {
|
|
@@ -44768,7 +44768,7 @@ var require_logging_utils = __commonJS({
|
|
|
44768
44768
|
loggerCache.clear();
|
|
44769
44769
|
}
|
|
44770
44770
|
function log(namespace, parent) {
|
|
44771
|
-
const enablesFlag =
|
|
44771
|
+
const enablesFlag = process26.env[exports2.env.nodeEnables];
|
|
44772
44772
|
if (!enablesFlag) {
|
|
44773
44773
|
return exports2.placeholder;
|
|
44774
44774
|
}
|
|
@@ -63160,15 +63160,15 @@ var require_streams3 = __commonJS({
|
|
|
63160
63160
|
var POOL_SIZE2 = 65536;
|
|
63161
63161
|
if (!globalThis.ReadableStream) {
|
|
63162
63162
|
try {
|
|
63163
|
-
const
|
|
63164
|
-
const { emitWarning: emitWarning2 } =
|
|
63163
|
+
const process26 = __require("node:process");
|
|
63164
|
+
const { emitWarning: emitWarning2 } = process26;
|
|
63165
63165
|
try {
|
|
63166
|
-
|
|
63166
|
+
process26.emitWarning = () => {
|
|
63167
63167
|
};
|
|
63168
63168
|
Object.assign(globalThis, __require("node:stream/web"));
|
|
63169
|
-
|
|
63169
|
+
process26.emitWarning = emitWarning2;
|
|
63170
63170
|
} catch (error2) {
|
|
63171
|
-
|
|
63171
|
+
process26.emitWarning = emitWarning2;
|
|
63172
63172
|
throw error2;
|
|
63173
63173
|
}
|
|
63174
63174
|
} catch (error2) {
|
|
@@ -66000,7 +66000,7 @@ var require_logging_utils2 = __commonJS({
|
|
|
66000
66000
|
exports2.setBackend = setBackend;
|
|
66001
66001
|
exports2.log = log;
|
|
66002
66002
|
var events_1 = __require("events");
|
|
66003
|
-
var
|
|
66003
|
+
var process26 = __importStar(__require("process"));
|
|
66004
66004
|
var util5 = __importStar(__require("util"));
|
|
66005
66005
|
var colours_1 = require_colours2();
|
|
66006
66006
|
var LogSeverity;
|
|
@@ -66057,7 +66057,7 @@ var require_logging_utils2 = __commonJS({
|
|
|
66057
66057
|
this.cached = /* @__PURE__ */ new Map();
|
|
66058
66058
|
this.filters = [];
|
|
66059
66059
|
this.filtersSet = false;
|
|
66060
|
-
let nodeFlag = (_a3 =
|
|
66060
|
+
let nodeFlag = (_a3 = process26.env[exports2.env.nodeEnables]) !== null && _a3 !== void 0 ? _a3 : "*";
|
|
66061
66061
|
if (nodeFlag === "all") {
|
|
66062
66062
|
nodeFlag = "*";
|
|
66063
66063
|
}
|
|
@@ -66097,7 +66097,7 @@ var require_logging_utils2 = __commonJS({
|
|
|
66097
66097
|
return (fields, ...args2) => {
|
|
66098
66098
|
var _a3;
|
|
66099
66099
|
const nscolour = `${colours_1.Colours.green}${namespace}${colours_1.Colours.reset}`;
|
|
66100
|
-
const pid = `${colours_1.Colours.yellow}${
|
|
66100
|
+
const pid = `${colours_1.Colours.yellow}${process26.pid}${colours_1.Colours.reset}`;
|
|
66101
66101
|
let level;
|
|
66102
66102
|
switch (fields.severity) {
|
|
66103
66103
|
case LogSeverity.ERROR:
|
|
@@ -66145,8 +66145,8 @@ var require_logging_utils2 = __commonJS({
|
|
|
66145
66145
|
}
|
|
66146
66146
|
setFilters() {
|
|
66147
66147
|
var _a3;
|
|
66148
|
-
const existingFilters = (_a3 =
|
|
66149
|
-
|
|
66148
|
+
const existingFilters = (_a3 = process26.env["NODE_DEBUG"]) !== null && _a3 !== void 0 ? _a3 : "";
|
|
66149
|
+
process26.env["NODE_DEBUG"] = `${existingFilters}${existingFilters ? "," : ""}${this.filters.join(",")}`;
|
|
66150
66150
|
}
|
|
66151
66151
|
};
|
|
66152
66152
|
function getDebugBackend(debugPkg) {
|
|
@@ -66199,7 +66199,7 @@ var require_logging_utils2 = __commonJS({
|
|
|
66199
66199
|
}
|
|
66200
66200
|
function log(namespace, parent) {
|
|
66201
66201
|
if (!cachedBackend) {
|
|
66202
|
-
const enablesFlag =
|
|
66202
|
+
const enablesFlag = process26.env[exports2.env.nodeEnables];
|
|
66203
66203
|
if (!enablesFlag) {
|
|
66204
66204
|
return exports2.placeholder;
|
|
66205
66205
|
}
|
|
@@ -123949,7 +123949,7 @@ var require_root = __commonJS({
|
|
|
123949
123949
|
}
|
|
123950
123950
|
return null;
|
|
123951
123951
|
}
|
|
123952
|
-
function
|
|
123952
|
+
function process26(filename2, source) {
|
|
123953
123953
|
try {
|
|
123954
123954
|
if (util5.isString(source) && source.charAt(0) === "{")
|
|
123955
123955
|
source = JSON.parse(source);
|
|
@@ -123984,12 +123984,12 @@ var require_root = __commonJS({
|
|
|
123984
123984
|
self2.files.push(filename2);
|
|
123985
123985
|
if (filename2 in common3) {
|
|
123986
123986
|
if (sync2) {
|
|
123987
|
-
|
|
123987
|
+
process26(filename2, common3[filename2]);
|
|
123988
123988
|
} else {
|
|
123989
123989
|
++queued;
|
|
123990
123990
|
setTimeout(function() {
|
|
123991
123991
|
--queued;
|
|
123992
|
-
|
|
123992
|
+
process26(filename2, common3[filename2]);
|
|
123993
123993
|
});
|
|
123994
123994
|
}
|
|
123995
123995
|
return;
|
|
@@ -124003,7 +124003,7 @@ var require_root = __commonJS({
|
|
|
124003
124003
|
finish(err2);
|
|
124004
124004
|
return;
|
|
124005
124005
|
}
|
|
124006
|
-
|
|
124006
|
+
process26(filename2, source);
|
|
124007
124007
|
} else {
|
|
124008
124008
|
++queued;
|
|
124009
124009
|
self2.fetch(filename2, function(err2, source2) {
|
|
@@ -124018,7 +124018,7 @@ var require_root = __commonJS({
|
|
|
124018
124018
|
finish(null, self2);
|
|
124019
124019
|
return;
|
|
124020
124020
|
}
|
|
124021
|
-
|
|
124021
|
+
process26(filename2, source2);
|
|
124022
124022
|
});
|
|
124023
124023
|
}
|
|
124024
124024
|
}
|
|
@@ -150743,13 +150743,13 @@ var require_getMachineId_win = __commonJS({
|
|
|
150743
150743
|
"use strict";
|
|
150744
150744
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150745
150745
|
exports2.getMachineId = void 0;
|
|
150746
|
-
var
|
|
150746
|
+
var process26 = __require("process");
|
|
150747
150747
|
var execAsync_1 = require_execAsync();
|
|
150748
150748
|
var api_1 = (init_esm(), __toCommonJS(esm_exports4));
|
|
150749
150749
|
async function getMachineId() {
|
|
150750
150750
|
const args2 = "QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid";
|
|
150751
150751
|
let command = "%windir%\\System32\\REG.exe";
|
|
150752
|
-
if (
|
|
150752
|
+
if (process26.arch === "ia32" && "PROCESSOR_ARCHITEW6432" in process26.env) {
|
|
150753
150753
|
command = "%windir%\\sysnative\\cmd.exe /c " + command;
|
|
150754
150754
|
}
|
|
150755
150755
|
try {
|
|
@@ -150788,11 +150788,11 @@ var require_getMachineId = __commonJS({
|
|
|
150788
150788
|
"use strict";
|
|
150789
150789
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
150790
150790
|
exports2.getMachineId = void 0;
|
|
150791
|
-
var
|
|
150791
|
+
var process26 = __require("process");
|
|
150792
150792
|
var getMachineIdImpl;
|
|
150793
150793
|
async function getMachineId() {
|
|
150794
150794
|
if (!getMachineIdImpl) {
|
|
150795
|
-
switch (
|
|
150795
|
+
switch (process26.platform) {
|
|
150796
150796
|
case "darwin":
|
|
150797
150797
|
getMachineIdImpl = (await Promise.resolve().then(() => __toESM(require_getMachineId_darwin()))).getMachineId;
|
|
150798
150798
|
break;
|
|
@@ -173812,11 +173812,11 @@ var require_network = __commonJS({
|
|
|
173812
173812
|
connstate = "TIME_WAIT";
|
|
173813
173813
|
}
|
|
173814
173814
|
let pid = null;
|
|
173815
|
-
let
|
|
173815
|
+
let process26 = "";
|
|
173816
173816
|
if (line.length >= 7 && line[6].indexOf("users:") > -1) {
|
|
173817
173817
|
const proc2 = line[6].replace('users:(("', "").replace(/"/g, "").replace("pid=", "").split(",");
|
|
173818
173818
|
if (proc2.length > 2) {
|
|
173819
|
-
|
|
173819
|
+
process26 = proc2[0];
|
|
173820
173820
|
const pidValue = parseInt(proc2[1], 10);
|
|
173821
173821
|
if (pidValue > 0) {
|
|
173822
173822
|
pid = pidValue;
|
|
@@ -173832,7 +173832,7 @@ var require_network = __commonJS({
|
|
|
173832
173832
|
peerPort: peerport,
|
|
173833
173833
|
state: connstate,
|
|
173834
173834
|
pid,
|
|
173835
|
-
process:
|
|
173835
|
+
process: process26
|
|
173836
173836
|
});
|
|
173837
173837
|
}
|
|
173838
173838
|
}
|
|
@@ -177538,22 +177538,22 @@ var require_docker = __commonJS({
|
|
|
177538
177538
|
let pos_stat = titles.indexOf("STAT");
|
|
177539
177539
|
let pos_rss = titles.indexOf("RSS");
|
|
177540
177540
|
let pos_command = titles.indexOf("COMMAND");
|
|
177541
|
-
data.Processes.forEach((
|
|
177541
|
+
data.Processes.forEach((process26) => {
|
|
177542
177542
|
result2.push({
|
|
177543
|
-
pidHost: pos_pid >= 0 ?
|
|
177544
|
-
ppid: pos_ppid >= 0 ?
|
|
177545
|
-
pgid: pos_pgid >= 0 ?
|
|
177546
|
-
user: pos_user >= 0 ?
|
|
177547
|
-
ruser: pos_ruser >= 0 ?
|
|
177548
|
-
group: pos_group >= 0 ?
|
|
177549
|
-
rgroup: pos_rgroup >= 0 ?
|
|
177550
|
-
stat: pos_stat >= 0 ?
|
|
177551
|
-
time: pos_time >= 0 ?
|
|
177552
|
-
elapsed: pos_elapsed >= 0 ?
|
|
177553
|
-
nice: pos_ni >= 0 ?
|
|
177554
|
-
rss: pos_rss >= 0 ?
|
|
177555
|
-
vsz: pos_vsz >= 0 ?
|
|
177556
|
-
command: pos_command >= 0 ?
|
|
177543
|
+
pidHost: pos_pid >= 0 ? process26[pos_pid] : "",
|
|
177544
|
+
ppid: pos_ppid >= 0 ? process26[pos_ppid] : "",
|
|
177545
|
+
pgid: pos_pgid >= 0 ? process26[pos_pgid] : "",
|
|
177546
|
+
user: pos_user >= 0 ? process26[pos_user] : "",
|
|
177547
|
+
ruser: pos_ruser >= 0 ? process26[pos_ruser] : "",
|
|
177548
|
+
group: pos_group >= 0 ? process26[pos_group] : "",
|
|
177549
|
+
rgroup: pos_rgroup >= 0 ? process26[pos_rgroup] : "",
|
|
177550
|
+
stat: pos_stat >= 0 ? process26[pos_stat] : "",
|
|
177551
|
+
time: pos_time >= 0 ? process26[pos_time] : "",
|
|
177552
|
+
elapsed: pos_elapsed >= 0 ? process26[pos_elapsed] : "",
|
|
177553
|
+
nice: pos_ni >= 0 ? process26[pos_ni] : "",
|
|
177554
|
+
rss: pos_rss >= 0 ? process26[pos_rss] : "",
|
|
177555
|
+
vsz: pos_vsz >= 0 ? process26[pos_vsz] : "",
|
|
177556
|
+
command: pos_command >= 0 ? process26[pos_command] : ""
|
|
177557
177557
|
});
|
|
177558
177558
|
});
|
|
177559
177559
|
}
|
|
@@ -185882,10 +185882,10 @@ var require_http22 = __commonJS({
|
|
|
185882
185882
|
var extend4 = require_extend();
|
|
185883
185883
|
var stream_1 = __require("stream");
|
|
185884
185884
|
var util5 = __require("util");
|
|
185885
|
-
var
|
|
185885
|
+
var process26 = __require("process");
|
|
185886
185886
|
var common_1 = require_common3();
|
|
185887
185887
|
var { HTTP2_HEADER_CONTENT_ENCODING, HTTP2_HEADER_CONTENT_TYPE, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = http22.constants;
|
|
185888
|
-
var DEBUG = !!
|
|
185888
|
+
var DEBUG = !!process26.env.HTTP2_DEBUG;
|
|
185889
185889
|
exports2.sessions = {};
|
|
185890
185890
|
async function request3(config3) {
|
|
185891
185891
|
const opts = extend4(true, {}, config3);
|
|
@@ -321272,7 +321272,7 @@ import * as fs63 from "node:fs";
|
|
|
321272
321272
|
import * as path72 from "node:path";
|
|
321273
321273
|
import * as os21 from "node:os";
|
|
321274
321274
|
import { inspect as inspect4 } from "node:util";
|
|
321275
|
-
import
|
|
321275
|
+
import process25 from "node:process";
|
|
321276
321276
|
|
|
321277
321277
|
// packages/core/dist/src/core/contentGenerator.js
|
|
321278
321278
|
init_node();
|
|
@@ -322331,10 +322331,21 @@ init_events();
|
|
|
322331
322331
|
// packages/core/dist/src/utils/authConsent.js
|
|
322332
322332
|
init_events();
|
|
322333
322333
|
import readline from "node:readline";
|
|
322334
|
+
|
|
322335
|
+
// packages/core/dist/src/utils/headless.js
|
|
322336
|
+
import process8 from "node:process";
|
|
322337
|
+
function isHeadlessMode(options) {
|
|
322338
|
+
if (process8.env["GEMINI_CLI_INTEGRATION_TEST"] === "true") {
|
|
322339
|
+
return !!options?.prompt || !!process8.stdin && !process8.stdin.isTTY || !!process8.stdout && !process8.stdout.isTTY;
|
|
322340
|
+
}
|
|
322341
|
+
return process8.env["CI"] === "true" || process8.env["GITHUB_ACTIONS"] === "true" || !!options?.prompt || !!process8.stdin && !process8.stdin.isTTY || !!process8.stdout && !process8.stdout.isTTY;
|
|
322342
|
+
}
|
|
322343
|
+
|
|
322344
|
+
// packages/core/dist/src/utils/authConsent.js
|
|
322334
322345
|
async function getConsentForOauth(prompt) {
|
|
322335
322346
|
const finalPrompt = prompt + " Opening authentication page in your browser. ";
|
|
322336
322347
|
if (coreEvents.listenerCount(CoreEvent.ConsentRequest) === 0) {
|
|
322337
|
-
if (
|
|
322348
|
+
if (isHeadlessMode()) {
|
|
322338
322349
|
throw new FatalAuthenticationError("Interactive consent could not be obtained.\nPlease run Gemini CLI in an interactive terminal to authenticate, or use NO_BROWSER=true for manual authentication.");
|
|
322339
322350
|
}
|
|
322340
322351
|
return getOauthConsentNonInteractive(finalPrompt);
|
|
@@ -327343,13 +327354,13 @@ function hasError(response) {
|
|
|
327343
327354
|
import path19 from "node:path";
|
|
327344
327355
|
|
|
327345
327356
|
// node_modules/find-up-simple/index.js
|
|
327346
|
-
import
|
|
327357
|
+
import process9 from "node:process";
|
|
327347
327358
|
import fsPromises from "node:fs/promises";
|
|
327348
327359
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
327349
327360
|
import path17 from "node:path";
|
|
327350
327361
|
var toPath = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath3(urlOrPath) : urlOrPath;
|
|
327351
327362
|
async function findUp(name4, {
|
|
327352
|
-
cwd =
|
|
327363
|
+
cwd = process9.cwd(),
|
|
327353
327364
|
type: type2 = "file",
|
|
327354
327365
|
stopAt
|
|
327355
327366
|
} = {}) {
|
|
@@ -327581,7 +327592,7 @@ var __filename = fileURLToPath5(import.meta.url);
|
|
|
327581
327592
|
var __dirname3 = path20.dirname(__filename);
|
|
327582
327593
|
async function getVersion() {
|
|
327583
327594
|
const pkgJson = await getPackageJson(__dirname3);
|
|
327584
|
-
return "0.28.0-preview.
|
|
327595
|
+
return "0.28.0-preview.8";
|
|
327585
327596
|
}
|
|
327586
327597
|
|
|
327587
327598
|
// packages/core/dist/src/code_assist/experiments/client_metadata.js
|
|
@@ -331005,8 +331016,8 @@ var Float64Vector = import_vector.default.Float64Vector;
|
|
|
331005
331016
|
var PointerVector = import_vector.default.PointerVector;
|
|
331006
331017
|
|
|
331007
331018
|
// packages/core/dist/src/generated/git-commit.js
|
|
331008
|
-
var GIT_COMMIT_INFO = "
|
|
331009
|
-
var CLI_VERSION = "0.28.0-preview.
|
|
331019
|
+
var GIT_COMMIT_INFO = "b90be4730";
|
|
331020
|
+
var CLI_VERSION = "0.28.0-preview.8";
|
|
331010
331021
|
|
|
331011
331022
|
// packages/core/dist/src/ide/detect-ide.js
|
|
331012
331023
|
var IDE_DEFINITIONS = {
|
|
@@ -332676,7 +332687,7 @@ var uiTelemetryService = new UiTelemetryService();
|
|
|
332676
332687
|
|
|
332677
332688
|
// packages/core/dist/src/telemetry/memory-monitor.js
|
|
332678
332689
|
import v8 from "node:v8";
|
|
332679
|
-
import
|
|
332690
|
+
import process10 from "node:process";
|
|
332680
332691
|
|
|
332681
332692
|
// packages/core/dist/src/utils/formatters.js
|
|
332682
332693
|
var bytesToMB = (bytes) => bytes / (1024 * 1024);
|
|
@@ -332979,7 +332990,7 @@ var MemoryMonitor = class _MemoryMonitor {
|
|
|
332979
332990
|
* Take a memory snapshot and record metrics
|
|
332980
332991
|
*/
|
|
332981
332992
|
takeSnapshot(context2, config3) {
|
|
332982
|
-
const memUsage =
|
|
332993
|
+
const memUsage = process10.memoryUsage();
|
|
332983
332994
|
const heapStats = v8.getHeapStatistics();
|
|
332984
332995
|
const snapshot = {
|
|
332985
332996
|
timestamp: Date.now(),
|
|
@@ -333015,7 +333026,7 @@ var MemoryMonitor = class _MemoryMonitor {
|
|
|
333015
333026
|
* Take a memory snapshot without recording metrics (for internal tracking)
|
|
333016
333027
|
*/
|
|
333017
333028
|
takeSnapshotWithoutRecording(_context, _config) {
|
|
333018
|
-
const memUsage =
|
|
333029
|
+
const memUsage = process10.memoryUsage();
|
|
333019
333030
|
const heapStats = v8.getHeapStatistics();
|
|
333020
333031
|
const snapshot = {
|
|
333021
333032
|
timestamp: Date.now(),
|
|
@@ -333035,7 +333046,7 @@ var MemoryMonitor = class _MemoryMonitor {
|
|
|
333035
333046
|
* Get current memory usage without recording metrics
|
|
333036
333047
|
*/
|
|
333037
333048
|
getCurrentMemoryUsage() {
|
|
333038
|
-
const memUsage =
|
|
333049
|
+
const memUsage = process10.memoryUsage();
|
|
333039
333050
|
const heapStats = v8.getHeapStatistics();
|
|
333040
333051
|
return {
|
|
333041
333052
|
timestamp: Date.now(),
|
|
@@ -333080,9 +333091,9 @@ var MemoryMonitor = class _MemoryMonitor {
|
|
|
333080
333091
|
*/
|
|
333081
333092
|
getProcessMetrics() {
|
|
333082
333093
|
return {
|
|
333083
|
-
cpuUsage:
|
|
333084
|
-
memoryUsage:
|
|
333085
|
-
uptime:
|
|
333094
|
+
cpuUsage: process10.cpuUsage(),
|
|
333095
|
+
memoryUsage: process10.memoryUsage(),
|
|
333096
|
+
uptime: process10.uptime()
|
|
333086
333097
|
};
|
|
333087
333098
|
}
|
|
333088
333099
|
/**
|
|
@@ -341267,7 +341278,7 @@ var PathScurryBase = class {
|
|
|
341267
341278
|
const dirs = /* @__PURE__ */ new Set();
|
|
341268
341279
|
const queue = [entry];
|
|
341269
341280
|
let processing = 0;
|
|
341270
|
-
const
|
|
341281
|
+
const process26 = () => {
|
|
341271
341282
|
let paused = false;
|
|
341272
341283
|
while (!paused) {
|
|
341273
341284
|
const dir = queue.shift();
|
|
@@ -341308,9 +341319,9 @@ var PathScurryBase = class {
|
|
|
341308
341319
|
}
|
|
341309
341320
|
}
|
|
341310
341321
|
if (paused && !results.flowing) {
|
|
341311
|
-
results.once("drain",
|
|
341322
|
+
results.once("drain", process26);
|
|
341312
341323
|
} else if (!sync2) {
|
|
341313
|
-
|
|
341324
|
+
process26();
|
|
341314
341325
|
}
|
|
341315
341326
|
};
|
|
341316
341327
|
let sync2 = true;
|
|
@@ -341318,7 +341329,7 @@ var PathScurryBase = class {
|
|
|
341318
341329
|
sync2 = false;
|
|
341319
341330
|
}
|
|
341320
341331
|
};
|
|
341321
|
-
|
|
341332
|
+
process26();
|
|
341322
341333
|
return results;
|
|
341323
341334
|
}
|
|
341324
341335
|
streamSync(entry = this.cwd, opts = {}) {
|
|
@@ -341336,7 +341347,7 @@ var PathScurryBase = class {
|
|
|
341336
341347
|
}
|
|
341337
341348
|
const queue = [entry];
|
|
341338
341349
|
let processing = 0;
|
|
341339
|
-
const
|
|
341350
|
+
const process26 = () => {
|
|
341340
341351
|
let paused = false;
|
|
341341
341352
|
while (!paused) {
|
|
341342
341353
|
const dir = queue.shift();
|
|
@@ -341370,9 +341381,9 @@ var PathScurryBase = class {
|
|
|
341370
341381
|
}
|
|
341371
341382
|
}
|
|
341372
341383
|
if (paused && !results.flowing)
|
|
341373
|
-
results.once("drain",
|
|
341384
|
+
results.once("drain", process26);
|
|
341374
341385
|
};
|
|
341375
|
-
|
|
341386
|
+
process26();
|
|
341376
341387
|
return results;
|
|
341377
341388
|
}
|
|
341378
341389
|
chdir(path82 = this.cwd) {
|
|
@@ -347752,9 +347763,9 @@ import { spawnSync as spawnSync2 } from "node:child_process";
|
|
|
347752
347763
|
import { debuglog } from "node:util";
|
|
347753
347764
|
|
|
347754
347765
|
// node_modules/execa/lib/utils/standard-stream.js
|
|
347755
|
-
import
|
|
347766
|
+
import process11 from "node:process";
|
|
347756
347767
|
var isStandardStream = (stream3) => STANDARD_STREAMS.includes(stream3);
|
|
347757
|
-
var STANDARD_STREAMS = [
|
|
347768
|
+
var STANDARD_STREAMS = [process11.stdin, process11.stdout, process11.stderr];
|
|
347758
347769
|
var STANDARD_STREAMS_ALIASES = ["stdin", "stdout", "stderr"];
|
|
347759
347770
|
var getStreamName = (fdNumber) => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;
|
|
347760
347771
|
|
|
@@ -347889,11 +347900,11 @@ var quoteString = (escapedArgument) => {
|
|
|
347889
347900
|
var NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
347890
347901
|
|
|
347891
347902
|
// node_modules/is-unicode-supported/index.js
|
|
347892
|
-
import
|
|
347903
|
+
import process12 from "node:process";
|
|
347893
347904
|
function isUnicodeSupported() {
|
|
347894
|
-
const { env: env2 } =
|
|
347905
|
+
const { env: env2 } = process12;
|
|
347895
347906
|
const { TERM, TERM_PROGRAM } = env2;
|
|
347896
|
-
if (
|
|
347907
|
+
if (process12.platform !== "win32") {
|
|
347897
347908
|
return TERM !== "linux";
|
|
347898
347909
|
}
|
|
347899
347910
|
return Boolean(env2.WT_SESSION) || Boolean(env2.TERMINUS_SUBLIME) || env2.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env2.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
@@ -348396,10 +348407,10 @@ var handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
|
348396
348407
|
// node_modules/execa/lib/arguments/options.js
|
|
348397
348408
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
348398
348409
|
import path40 from "node:path";
|
|
348399
|
-
import
|
|
348410
|
+
import process15 from "node:process";
|
|
348400
348411
|
|
|
348401
348412
|
// node_modules/npm-run-path/index.js
|
|
348402
|
-
import
|
|
348413
|
+
import process13 from "node:process";
|
|
348403
348414
|
import path37 from "node:path";
|
|
348404
348415
|
|
|
348405
348416
|
// node_modules/npm-run-path/node_modules/path-key/index.js
|
|
@@ -348440,10 +348451,10 @@ var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
|
|
|
348440
348451
|
|
|
348441
348452
|
// node_modules/npm-run-path/index.js
|
|
348442
348453
|
var npmRunPath = ({
|
|
348443
|
-
cwd =
|
|
348444
|
-
path: pathOption =
|
|
348454
|
+
cwd = process13.cwd(),
|
|
348455
|
+
path: pathOption = process13.env[pathKey()],
|
|
348445
348456
|
preferLocal = true,
|
|
348446
|
-
execPath: execPath2 =
|
|
348457
|
+
execPath: execPath2 = process13.execPath,
|
|
348447
348458
|
addExecPath = true
|
|
348448
348459
|
} = {}) => {
|
|
348449
348460
|
const cwdPath = path37.resolve(toPath3(cwd));
|
|
@@ -348471,7 +348482,7 @@ var applyExecPath = (result2, pathParts, execPath2, cwdPath) => {
|
|
|
348471
348482
|
result2.push(pathPart);
|
|
348472
348483
|
}
|
|
348473
348484
|
};
|
|
348474
|
-
var npmRunPathEnv = ({ env: env2 =
|
|
348485
|
+
var npmRunPathEnv = ({ env: env2 = process13.env, ...options } = {}) => {
|
|
348475
348486
|
env2 = { ...env2 };
|
|
348476
348487
|
const pathName = pathKey({ env: env2 });
|
|
348477
348488
|
options.path = env2[pathName];
|
|
@@ -349741,14 +349752,14 @@ var serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encodin
|
|
|
349741
349752
|
// node_modules/execa/lib/arguments/cwd.js
|
|
349742
349753
|
import { statSync as statSync2 } from "node:fs";
|
|
349743
349754
|
import path39 from "node:path";
|
|
349744
|
-
import
|
|
349755
|
+
import process14 from "node:process";
|
|
349745
349756
|
var normalizeCwd = (cwd = getDefaultCwd()) => {
|
|
349746
349757
|
const cwdString = safeNormalizeFileUrl(cwd, 'The "cwd" option');
|
|
349747
349758
|
return path39.resolve(cwdString);
|
|
349748
349759
|
};
|
|
349749
349760
|
var getDefaultCwd = () => {
|
|
349750
349761
|
try {
|
|
349751
|
-
return
|
|
349762
|
+
return process14.cwd();
|
|
349752
349763
|
} catch (error2) {
|
|
349753
349764
|
error2.message = `The current directory does not exist.
|
|
349754
349765
|
${error2.message}`;
|
|
@@ -349791,7 +349802,7 @@ var normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
|
349791
349802
|
options.killSignal = normalizeKillSignal(options.killSignal);
|
|
349792
349803
|
options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
|
|
349793
349804
|
options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
|
|
349794
|
-
if (
|
|
349805
|
+
if (process15.platform === "win32" && path40.basename(file, ".exe") === "cmd") {
|
|
349795
349806
|
commandArguments.unshift("/q");
|
|
349796
349807
|
}
|
|
349797
349808
|
return { file, commandArguments, options };
|
|
@@ -349832,7 +349843,7 @@ var addDefaultOptions = ({
|
|
|
349832
349843
|
serialization
|
|
349833
349844
|
});
|
|
349834
349845
|
var getEnv2 = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath: nodePath2 }) => {
|
|
349835
|
-
const env2 = extendEnv ? { ...
|
|
349846
|
+
const env2 = extendEnv ? { ...process15.env, ...envOption } : envOption;
|
|
349836
349847
|
if (preferLocal || node) {
|
|
349837
349848
|
return npmRunPathEnv({
|
|
349838
349849
|
env: env2,
|
|
@@ -351033,7 +351044,7 @@ var normalizeGenerator = ({ stdioItem, stdioItem: { value }, index, newTransform
|
|
|
351033
351044
|
var sortTransforms = (newTransforms, direction) => direction === "input" ? newTransforms.reverse() : newTransforms;
|
|
351034
351045
|
|
|
351035
351046
|
// node_modules/execa/lib/stdio/direction.js
|
|
351036
|
-
import
|
|
351047
|
+
import process16 from "node:process";
|
|
351037
351048
|
var getStreamDirection = (stdioItems, fdNumber, optionName) => {
|
|
351038
351049
|
const directions = stdioItems.map((stdioItem) => getStdioItemDirection(stdioItem, fdNumber));
|
|
351039
351050
|
if (directions.includes("input") && directions.includes("output")) {
|
|
@@ -351073,10 +351084,10 @@ var guessStreamDirection = {
|
|
|
351073
351084
|
}
|
|
351074
351085
|
};
|
|
351075
351086
|
var getStandardStreamDirection = (value) => {
|
|
351076
|
-
if ([0,
|
|
351087
|
+
if ([0, process16.stdin].includes(value)) {
|
|
351077
351088
|
return "input";
|
|
351078
351089
|
}
|
|
351079
|
-
if ([1, 2,
|
|
351090
|
+
if ([1, 2, process16.stdout, process16.stderr].includes(value)) {
|
|
351080
351091
|
return "output";
|
|
351081
351092
|
}
|
|
351082
351093
|
};
|
|
@@ -352180,7 +352191,7 @@ import { setMaxListeners } from "node:events";
|
|
|
352180
352191
|
import { spawn as spawn4 } from "node:child_process";
|
|
352181
352192
|
|
|
352182
352193
|
// node_modules/execa/lib/ipc/methods.js
|
|
352183
|
-
import
|
|
352194
|
+
import process17 from "node:process";
|
|
352184
352195
|
|
|
352185
352196
|
// node_modules/execa/lib/ipc/get-one.js
|
|
352186
352197
|
import { once as once5, on as on2 } from "node:events";
|
|
@@ -352321,9 +352332,9 @@ var addIpcMethods = (subprocess, { ipc }) => {
|
|
|
352321
352332
|
Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
|
|
352322
352333
|
};
|
|
352323
352334
|
var getIpcExport = () => {
|
|
352324
|
-
const anyProcess =
|
|
352335
|
+
const anyProcess = process17;
|
|
352325
352336
|
const isSubprocess = true;
|
|
352326
|
-
const ipc =
|
|
352337
|
+
const ipc = process17.channel !== void 0;
|
|
352327
352338
|
return {
|
|
352328
352339
|
...getIpcMethods(anyProcess, isSubprocess, ipc),
|
|
352329
352340
|
getCancelSignal: getCancelSignal.bind(void 0, {
|
|
@@ -352789,7 +352800,7 @@ if (process.platform === "linux") {
|
|
|
352789
352800
|
}
|
|
352790
352801
|
|
|
352791
352802
|
// node_modules/signal-exit/dist/mjs/index.js
|
|
352792
|
-
var processOk = (
|
|
352803
|
+
var processOk = (process26) => !!process26 && typeof process26 === "object" && typeof process26.removeListener === "function" && typeof process26.emit === "function" && typeof process26.reallyExit === "function" && typeof process26.listeners === "function" && typeof process26.kill === "function" && typeof process26.pid === "number" && typeof process26.on === "function";
|
|
352793
352804
|
var kExitEmitter = Symbol.for("signal-exit emitter");
|
|
352794
352805
|
var global2 = globalThis;
|
|
352795
352806
|
var ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
@@ -352874,7 +352885,7 @@ var SignalExit = class extends SignalExitBase {
|
|
|
352874
352885
|
// "SIGHUP" throws an `ENOSYS` error on Windows,
|
|
352875
352886
|
// so use a supported signal instead
|
|
352876
352887
|
/* c8 ignore start */
|
|
352877
|
-
#hupSig =
|
|
352888
|
+
#hupSig = process18.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
352878
352889
|
/* c8 ignore stop */
|
|
352879
352890
|
#emitter = new Emitter();
|
|
352880
352891
|
#process;
|
|
@@ -352882,15 +352893,15 @@ var SignalExit = class extends SignalExitBase {
|
|
|
352882
352893
|
#originalProcessReallyExit;
|
|
352883
352894
|
#sigListeners = {};
|
|
352884
352895
|
#loaded = false;
|
|
352885
|
-
constructor(
|
|
352896
|
+
constructor(process26) {
|
|
352886
352897
|
super();
|
|
352887
|
-
this.#process =
|
|
352898
|
+
this.#process = process26;
|
|
352888
352899
|
this.#sigListeners = {};
|
|
352889
352900
|
for (const sig of signals) {
|
|
352890
352901
|
this.#sigListeners[sig] = () => {
|
|
352891
352902
|
const listeners = this.#process.listeners(sig);
|
|
352892
352903
|
let { count: count2 } = this.#emitter;
|
|
352893
|
-
const p =
|
|
352904
|
+
const p = process26;
|
|
352894
352905
|
if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
|
|
352895
352906
|
count2 += p.__signal_exit_emitter__.count;
|
|
352896
352907
|
}
|
|
@@ -352899,12 +352910,12 @@ var SignalExit = class extends SignalExitBase {
|
|
|
352899
352910
|
const ret = this.#emitter.emit("exit", null, sig);
|
|
352900
352911
|
const s3 = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
352901
352912
|
if (!ret)
|
|
352902
|
-
|
|
352913
|
+
process26.kill(process26.pid, s3);
|
|
352903
352914
|
}
|
|
352904
352915
|
};
|
|
352905
352916
|
}
|
|
352906
|
-
this.#originalProcessReallyExit =
|
|
352907
|
-
this.#originalProcessEmit =
|
|
352917
|
+
this.#originalProcessReallyExit = process26.reallyExit;
|
|
352918
|
+
this.#originalProcessEmit = process26.emit;
|
|
352908
352919
|
}
|
|
352909
352920
|
onExit(cb, opts) {
|
|
352910
352921
|
if (!processOk(this.#process)) {
|
|
@@ -352985,7 +352996,7 @@ var SignalExit = class extends SignalExitBase {
|
|
|
352985
352996
|
}
|
|
352986
352997
|
}
|
|
352987
352998
|
};
|
|
352988
|
-
var
|
|
352999
|
+
var process18 = globalThis.process;
|
|
352989
353000
|
var {
|
|
352990
353001
|
/**
|
|
352991
353002
|
* Called when the process is exiting, whether via signal, explicit
|
|
@@ -353013,7 +353024,7 @@ var {
|
|
|
353013
353024
|
* @internal
|
|
353014
353025
|
*/
|
|
353015
353026
|
unload
|
|
353016
|
-
} = signalExitWrap(processOk(
|
|
353027
|
+
} = signalExitWrap(processOk(process18) ? new SignalExit(process18) : new SignalExitFallback());
|
|
353017
353028
|
|
|
353018
353029
|
// node_modules/execa/lib/terminate/cleanup.js
|
|
353019
353030
|
var cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
|
|
@@ -355820,7 +355831,7 @@ var AbortError2 = class extends RequestError2 {
|
|
|
355820
355831
|
};
|
|
355821
355832
|
|
|
355822
355833
|
// node_modules/got/dist/source/core/index.js
|
|
355823
|
-
import
|
|
355834
|
+
import process20 from "node:process";
|
|
355824
355835
|
import { Buffer as Buffer10 } from "node:buffer";
|
|
355825
355836
|
import { Duplex as Duplex4 } from "node:stream";
|
|
355826
355837
|
import http6, { ServerResponse } from "node:http";
|
|
@@ -357098,7 +357109,7 @@ var calculateRetryDelay = ({ attemptCount, retryOptions, error: error2, retryAft
|
|
|
357098
357109
|
var calculate_retry_delay_default = calculateRetryDelay;
|
|
357099
357110
|
|
|
357100
357111
|
// node_modules/got/dist/source/core/options.js
|
|
357101
|
-
import
|
|
357112
|
+
import process19 from "node:process";
|
|
357102
357113
|
import { promisify as promisify11, inspect as inspect3 } from "node:util";
|
|
357103
357114
|
import { checkServerIdentity } from "node:tls";
|
|
357104
357115
|
import https3 from "node:https";
|
|
@@ -357496,7 +357507,7 @@ function parseLinkHeader(link) {
|
|
|
357496
357507
|
}
|
|
357497
357508
|
|
|
357498
357509
|
// node_modules/got/dist/source/core/options.js
|
|
357499
|
-
var [major2, minor] =
|
|
357510
|
+
var [major2, minor] = process19.versions.node.split(".").map(Number);
|
|
357500
357511
|
function validateSearchParameters(searchParameters) {
|
|
357501
357512
|
for (const key in searchParameters) {
|
|
357502
357513
|
const value = searchParameters[key];
|
|
@@ -359108,7 +359119,7 @@ function isUnixSocketURL(url5) {
|
|
|
359108
359119
|
}
|
|
359109
359120
|
|
|
359110
359121
|
// node_modules/got/dist/source/core/index.js
|
|
359111
|
-
var supportsBrotli = distribution_default.string(
|
|
359122
|
+
var supportsBrotli = distribution_default.string(process20.versions.brotli);
|
|
359112
359123
|
var methodsWithoutBody = /* @__PURE__ */ new Set(["GET", "HEAD"]);
|
|
359113
359124
|
var cacheableStore = new WeakableMap();
|
|
359114
359125
|
var redirectCodes = /* @__PURE__ */ new Set([300, 301, 302, 303, 304, 307, 308]);
|
|
@@ -359338,7 +359349,7 @@ var Request2 = class _Request extends Duplex4 {
|
|
|
359338
359349
|
this.emit("retry", this.retryCount + 1, error2, (updatedOptions) => {
|
|
359339
359350
|
const request3 = new _Request(options.url, updatedOptions, options);
|
|
359340
359351
|
request3.retryCount = this.retryCount + 1;
|
|
359341
|
-
|
|
359352
|
+
process20.nextTick(() => {
|
|
359342
359353
|
void request3.flush();
|
|
359343
359354
|
});
|
|
359344
359355
|
return request3;
|
|
@@ -371762,7 +371773,7 @@ var StreamableHTTPClientTransport = class {
|
|
|
371762
371773
|
|
|
371763
371774
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js
|
|
371764
371775
|
var import_cross_spawn2 = __toESM(require_cross_spawn(), 1);
|
|
371765
|
-
import
|
|
371776
|
+
import process21 from "node:process";
|
|
371766
371777
|
import { PassThrough as PassThrough5 } from "node:stream";
|
|
371767
371778
|
|
|
371768
371779
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
@@ -371794,7 +371805,7 @@ function serializeMessage(message) {
|
|
|
371794
371805
|
}
|
|
371795
371806
|
|
|
371796
371807
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js
|
|
371797
|
-
var DEFAULT_INHERITED_ENV_VARS =
|
|
371808
|
+
var DEFAULT_INHERITED_ENV_VARS = process21.platform === "win32" ? [
|
|
371798
371809
|
"APPDATA",
|
|
371799
371810
|
"HOMEDRIVE",
|
|
371800
371811
|
"HOMEPATH",
|
|
@@ -371814,7 +371825,7 @@ var DEFAULT_INHERITED_ENV_VARS = process20.platform === "win32" ? [
|
|
|
371814
371825
|
function getDefaultEnvironment() {
|
|
371815
371826
|
const env2 = {};
|
|
371816
371827
|
for (const key of DEFAULT_INHERITED_ENV_VARS) {
|
|
371817
|
-
const value =
|
|
371828
|
+
const value = process21.env[key];
|
|
371818
371829
|
if (value === void 0) {
|
|
371819
371830
|
continue;
|
|
371820
371831
|
}
|
|
@@ -371850,7 +371861,7 @@ var StdioClientTransport = class {
|
|
|
371850
371861
|
},
|
|
371851
371862
|
stdio: ["pipe", "pipe", this._serverParams.stderr ?? "inherit"],
|
|
371852
371863
|
shell: false,
|
|
371853
|
-
windowsHide:
|
|
371864
|
+
windowsHide: process21.platform === "win32" && isElectron(),
|
|
371854
371865
|
cwd: this._serverParams.cwd
|
|
371855
371866
|
});
|
|
371856
371867
|
this._process.on("error", (error2) => {
|
|
@@ -371958,7 +371969,7 @@ var StdioClientTransport = class {
|
|
|
371958
371969
|
}
|
|
371959
371970
|
};
|
|
371960
371971
|
function isElectron() {
|
|
371961
|
-
return "type" in
|
|
371972
|
+
return "type" in process21;
|
|
371962
371973
|
}
|
|
371963
371974
|
|
|
371964
371975
|
// packages/core/dist/src/ide/ide-client.js
|
|
@@ -374371,7 +374382,7 @@ function detectEncodingFromBuffer(buffer) {
|
|
|
374371
374382
|
}
|
|
374372
374383
|
|
|
374373
374384
|
// packages/core/dist/src/services/shellExecutionService.js
|
|
374374
|
-
var
|
|
374385
|
+
var import_headless2 = __toESM(require_xterm_headless(), 1);
|
|
374375
374386
|
|
|
374376
374387
|
// packages/core/dist/src/utils/terminalSerializer.js
|
|
374377
374388
|
var Attribute;
|
|
@@ -374986,7 +374997,7 @@ async function killProcessGroup(options) {
|
|
|
374986
374997
|
}
|
|
374987
374998
|
|
|
374988
374999
|
// packages/core/dist/src/services/shellExecutionService.js
|
|
374989
|
-
var { Terminal } =
|
|
375000
|
+
var { Terminal } = import_headless2.default;
|
|
374990
375001
|
var MAX_CHILD_PROCESS_BUFFER_SIZE = 16 * 1024 * 1024;
|
|
374991
375002
|
var SCROLLBACK_LIMIT = 3e5;
|
|
374992
375003
|
var BASH_SHOPT_OPTIONS = "promptvars nullglob extglob nocaseglob dotglob";
|
|
@@ -381272,10 +381283,10 @@ function compile$1(options = {}) {
|
|
|
381272
381283
|
}
|
|
381273
381284
|
);
|
|
381274
381285
|
return function(html, metadata2 = void 0) {
|
|
381275
|
-
return
|
|
381286
|
+
return process22(html, metadata2, options, picker, findBaseElements, limitedWalk);
|
|
381276
381287
|
};
|
|
381277
381288
|
}
|
|
381278
|
-
function
|
|
381289
|
+
function process22(html, metadata2, options, picker, findBaseElements, walk) {
|
|
381279
381290
|
const maxInputLength = options.limits.maxInputLength;
|
|
381280
381291
|
if (maxInputLength && html && html.length > maxInputLength) {
|
|
381281
381292
|
console.warn(
|
|
@@ -385450,7 +385461,7 @@ init_paths();
|
|
|
385450
385461
|
init_types2();
|
|
385451
385462
|
import fs50 from "node:fs";
|
|
385452
385463
|
import path60 from "node:path";
|
|
385453
|
-
import
|
|
385464
|
+
import process24 from "node:process";
|
|
385454
385465
|
|
|
385455
385466
|
// packages/core/dist/src/prompts/snippets.js
|
|
385456
385467
|
init_tool_names();
|
|
@@ -385882,7 +385893,7 @@ The structure MUST be as follows:
|
|
|
385882
385893
|
init_paths();
|
|
385883
385894
|
init_debugLogger();
|
|
385884
385895
|
import path59 from "node:path";
|
|
385885
|
-
import
|
|
385896
|
+
import process23 from "node:process";
|
|
385886
385897
|
function resolvePathFromEnv(envVar) {
|
|
385887
385898
|
const trimmedEnvVar = envVar?.trim();
|
|
385888
385899
|
if (!trimmedEnvVar) {
|
|
@@ -385928,7 +385939,7 @@ function applySubstitutions(prompt, config3, skillsPrompt) {
|
|
|
385928
385939
|
return result2;
|
|
385929
385940
|
}
|
|
385930
385941
|
function isSectionEnabled(key) {
|
|
385931
|
-
const envVar =
|
|
385942
|
+
const envVar = process23.env[`GEMINI_PROMPT_${key.toUpperCase()}`];
|
|
385932
385943
|
const lowerEnvVar = envVar?.trim().toLowerCase();
|
|
385933
385944
|
return lowerEnvVar !== "0" && lowerEnvVar !== "false";
|
|
385934
385945
|
}
|
|
@@ -386076,7 +386087,7 @@ var PromptProvider = class {
|
|
|
386076
386087
|
* Generates the core system prompt.
|
|
386077
386088
|
*/
|
|
386078
386089
|
getCoreSystemPrompt(config3, userMemory, interactiveOverride) {
|
|
386079
|
-
const systemMdResolution = resolvePathFromEnv(
|
|
386090
|
+
const systemMdResolution = resolvePathFromEnv(process24.env["GEMINI_SYSTEM_MD"]);
|
|
386080
386091
|
const interactiveMode = interactiveOverride ?? config3.isInteractive();
|
|
386081
386092
|
const approvalMode = config3.getApprovalMode?.() ?? ApprovalMode.DEFAULT;
|
|
386082
386093
|
const isPlanMode = approvalMode === ApprovalMode.PLAN;
|
|
@@ -386132,7 +386143,7 @@ var PromptProvider = class {
|
|
|
386132
386143
|
enableShellEfficiency: config3.getEnableShellOutputEfficiency()
|
|
386133
386144
|
})),
|
|
386134
386145
|
sandbox: this.withSection("sandbox", () => getSandboxMode()),
|
|
386135
|
-
gitRepo: this.withSection("git", () => ({ interactive: interactiveMode }), isGitRepository(
|
|
386146
|
+
gitRepo: this.withSection("git", () => ({ interactive: interactiveMode }), isGitRepository(process24.cwd()) ? true : false),
|
|
386136
386147
|
finalReminder: this.withSection("finalReminder", () => ({
|
|
386137
386148
|
readFileToolName: READ_FILE_TOOL_NAME
|
|
386138
386149
|
}))
|
|
@@ -386151,7 +386162,7 @@ var PromptProvider = class {
|
|
|
386151
386162
|
return guard && isSectionEnabled(key) ? factory() : void 0;
|
|
386152
386163
|
}
|
|
386153
386164
|
maybeWriteSystemMd(basePrompt, resolution, defaultPath) {
|
|
386154
|
-
const writeSystemMdResolution = resolvePathFromEnv(
|
|
386165
|
+
const writeSystemMdResolution = resolvePathFromEnv(process24.env["GEMINI_WRITE_SYSTEM_MD"]);
|
|
386155
386166
|
if (writeSystemMdResolution.value && !writeSystemMdResolution.isDisabled) {
|
|
386156
386167
|
const writePath = writeSystemMdResolution.isSwitch ? defaultPath : writeSystemMdResolution.value;
|
|
386157
386168
|
fs50.mkdirSync(path60.dirname(writePath), { recursive: true });
|
|
@@ -386160,9 +386171,9 @@ var PromptProvider = class {
|
|
|
386160
386171
|
}
|
|
386161
386172
|
};
|
|
386162
386173
|
function getSandboxMode() {
|
|
386163
|
-
if (
|
|
386174
|
+
if (process24.env["SANDBOX"] === "sandbox-exec")
|
|
386164
386175
|
return "macos-seatbelt";
|
|
386165
|
-
if (
|
|
386176
|
+
if (process24.env["SANDBOX"])
|
|
386166
386177
|
return "generic";
|
|
386167
386178
|
return "outside";
|
|
386168
386179
|
}
|
|
@@ -405956,7 +405967,7 @@ var Config = class {
|
|
|
405956
405967
|
};
|
|
405957
405968
|
this.checkpointing = params.checkpointing ?? false;
|
|
405958
405969
|
this.proxy = params.proxy;
|
|
405959
|
-
this.cwd = params.cwd ??
|
|
405970
|
+
this.cwd = params.cwd ?? process25.cwd();
|
|
405960
405971
|
this.fileDiscoveryService = params.fileDiscoveryService ?? null;
|
|
405961
405972
|
this.bugCommand = params.bugCommand;
|
|
405962
405973
|
this.model = params.model;
|
|
@@ -406308,7 +406319,7 @@ var Config = class {
|
|
|
406308
406319
|
}
|
|
406309
406320
|
isRestrictiveSandbox() {
|
|
406310
406321
|
const sandboxConfig = this.getSandbox();
|
|
406311
|
-
const seatbeltProfile =
|
|
406322
|
+
const seatbeltProfile = process25.env["SEATBELT_PROFILE"];
|
|
406312
406323
|
return !!sandboxConfig && sandboxConfig.command === "sandbox-exec" && !!seatbeltProfile && seatbeltProfile.startsWith("restrictive-");
|
|
406313
406324
|
}
|
|
406314
406325
|
getTargetDir() {
|