@google/gemini-cli-a2a-server 0.20.0-preview.1 → 0.20.0-preview.5
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 +50 -8
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/a2a-server.mjs
CHANGED
|
@@ -304170,7 +304170,7 @@ function writeToStdout(...args2) {
|
|
|
304170
304170
|
function writeToStderr(...args2) {
|
|
304171
304171
|
return originalStderrWrite(...args2);
|
|
304172
304172
|
}
|
|
304173
|
-
function
|
|
304173
|
+
function createWorkingStdio() {
|
|
304174
304174
|
const inkStdout = new Proxy(process.stdout, {
|
|
304175
304175
|
get(target, prop, receiver) {
|
|
304176
304176
|
if (prop === "write") {
|
|
@@ -304400,7 +304400,7 @@ async function authWithUserCode(client) {
|
|
|
304400
304400
|
const code2 = await new Promise((resolve14, _) => {
|
|
304401
304401
|
const rl = readline.createInterface({
|
|
304402
304402
|
input: process.stdin,
|
|
304403
|
-
output:
|
|
304403
|
+
output: createWorkingStdio().stdout,
|
|
304404
304404
|
terminal: true
|
|
304405
304405
|
});
|
|
304406
304406
|
rl.question("Enter the authorization code: ", (code3) => {
|
|
@@ -307842,8 +307842,8 @@ var Float64Vector = import_vector.default.Float64Vector;
|
|
|
307842
307842
|
var PointerVector = import_vector.default.PointerVector;
|
|
307843
307843
|
|
|
307844
307844
|
// packages/core/dist/src/generated/git-commit.js
|
|
307845
|
-
var GIT_COMMIT_INFO = "
|
|
307846
|
-
var CLI_VERSION = "0.20.0-preview.
|
|
307845
|
+
var GIT_COMMIT_INFO = "8872ee0ac";
|
|
307846
|
+
var CLI_VERSION = "0.20.0-preview.5";
|
|
307847
307847
|
|
|
307848
307848
|
// packages/core/dist/src/ide/detect-ide.js
|
|
307849
307849
|
var IDE_DEFINITIONS = {
|
|
@@ -310901,7 +310901,7 @@ async function createContentGenerator(config3, gcConfig, sessionId2) {
|
|
|
310901
310901
|
if (gcConfig.fakeResponses) {
|
|
310902
310902
|
return FakeContentGenerator.fromFile(gcConfig.fakeResponses);
|
|
310903
310903
|
}
|
|
310904
|
-
const version4 = "0.20.0-preview.
|
|
310904
|
+
const version4 = "0.20.0-preview.5";
|
|
310905
310905
|
const customHeadersEnv = process.env["GEMINI_CLI_CUSTOM_HEADERS"] || void 0;
|
|
310906
310906
|
const userAgent = `GeminiCLI/${version4} (${process.platform}; ${process.arch})`;
|
|
310907
310907
|
const customHeadersMap = parseCustomHeaders(customHeadersEnv);
|
|
@@ -354881,6 +354881,48 @@ var getFullBufferText = (terminal) => {
|
|
|
354881
354881
|
}
|
|
354882
354882
|
return lines.join("\n");
|
|
354883
354883
|
};
|
|
354884
|
+
function getSanitizedEnv() {
|
|
354885
|
+
const isRunningInGithub = process.env["GITHUB_SHA"] || process.env["SURFACE"] === "Github";
|
|
354886
|
+
if (!isRunningInGithub) {
|
|
354887
|
+
return { ...process.env };
|
|
354888
|
+
}
|
|
354889
|
+
const env2 = {};
|
|
354890
|
+
const essentialVars = [
|
|
354891
|
+
// Cross-platform
|
|
354892
|
+
"PATH",
|
|
354893
|
+
// Windows specific
|
|
354894
|
+
"Path",
|
|
354895
|
+
"SYSTEMROOT",
|
|
354896
|
+
"SystemRoot",
|
|
354897
|
+
"COMSPEC",
|
|
354898
|
+
"ComSpec",
|
|
354899
|
+
"PATHEXT",
|
|
354900
|
+
"WINDIR",
|
|
354901
|
+
"TEMP",
|
|
354902
|
+
"TMP",
|
|
354903
|
+
"USERPROFILE",
|
|
354904
|
+
"SYSTEMDRIVE",
|
|
354905
|
+
"SystemDrive",
|
|
354906
|
+
// Unix/Linux/macOS specific
|
|
354907
|
+
"HOME",
|
|
354908
|
+
"LANG",
|
|
354909
|
+
"SHELL",
|
|
354910
|
+
"TMPDIR",
|
|
354911
|
+
"USER",
|
|
354912
|
+
"LOGNAME"
|
|
354913
|
+
];
|
|
354914
|
+
for (const key of essentialVars) {
|
|
354915
|
+
if (process.env[key] !== void 0) {
|
|
354916
|
+
env2[key] = process.env[key];
|
|
354917
|
+
}
|
|
354918
|
+
}
|
|
354919
|
+
for (const key in process.env) {
|
|
354920
|
+
if (key.startsWith("GEMINI_CLI_TEST")) {
|
|
354921
|
+
env2[key] = process.env[key];
|
|
354922
|
+
}
|
|
354923
|
+
}
|
|
354924
|
+
return env2;
|
|
354925
|
+
}
|
|
354884
354926
|
var ShellExecutionService = class {
|
|
354885
354927
|
static activePtys = /* @__PURE__ */ new Map();
|
|
354886
354928
|
/**
|
|
@@ -354935,7 +354977,7 @@ var ShellExecutionService = class {
|
|
|
354935
354977
|
shell: false,
|
|
354936
354978
|
detached: !isWindows5,
|
|
354937
354979
|
env: {
|
|
354938
|
-
...
|
|
354980
|
+
...getSanitizedEnv(),
|
|
354939
354981
|
GEMINI_CLI: "1",
|
|
354940
354982
|
TERM: "xterm-256color",
|
|
354941
354983
|
PAGER: "cat",
|
|
@@ -355104,7 +355146,7 @@ var ShellExecutionService = class {
|
|
|
355104
355146
|
cols,
|
|
355105
355147
|
rows,
|
|
355106
355148
|
env: {
|
|
355107
|
-
...
|
|
355149
|
+
...getSanitizedEnv(),
|
|
355108
355150
|
GEMINI_CLI: "1",
|
|
355109
355151
|
TERM: "xterm-256color",
|
|
355110
355152
|
PAGER: shellExecutionConfig.pager ?? "cat",
|
|
@@ -377529,7 +377571,7 @@ async function getClientMetadata() {
|
|
|
377529
377571
|
clientMetadataPromise = (async () => ({
|
|
377530
377572
|
ideName: "IDE_UNSPECIFIED",
|
|
377531
377573
|
pluginType: "GEMINI",
|
|
377532
|
-
ideVersion: "0.20.0-preview.
|
|
377574
|
+
ideVersion: "0.20.0-preview.5",
|
|
377533
377575
|
platform: getPlatform(),
|
|
377534
377576
|
updateChannel: await getReleaseChannel(__dirname5)
|
|
377535
377577
|
}))();
|