@google/gemini-cli-a2a-server 0.67.0-nightly.20261027.g363a13119 → 0.67.0-preview.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a2a-server.mjs +24 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/a2a-server.mjs
CHANGED
|
@@ -66105,6 +66105,24 @@ function isTrustedSystemPath(filePath) {
|
|
|
66105
66105
|
process.env["ProgramFiles(x86)"] || "C:\\Program Files (x86)"
|
|
66106
66106
|
].map((p2) => normalizePath(p2));
|
|
66107
66107
|
return trustedPrefixes.some((prefix) => normPath === prefix || normPath.startsWith(prefix + "/"));
|
|
66108
|
+
} else if (platform10 === "android") {
|
|
66109
|
+
let termuxPrefix = "/data/data/com.termux/files/usr";
|
|
66110
|
+
const envPrefix = process.env["PREFIX"];
|
|
66111
|
+
if (envPrefix && path2.posix.isAbsolute(envPrefix)) {
|
|
66112
|
+
const resolvedPrefix = path2.posix.normalize(envPrefix);
|
|
66113
|
+
if (/^\/data\/(?:data|user\/\d+)\/com\.termux\/files\/usr(?:\/|$)/.test(resolvedPrefix)) {
|
|
66114
|
+
termuxPrefix = resolvedPrefix;
|
|
66115
|
+
}
|
|
66116
|
+
}
|
|
66117
|
+
const trustedPrefixes = [
|
|
66118
|
+
path2.posix.join(termuxPrefix, "bin"),
|
|
66119
|
+
"/data/data/com.termux/files/usr/bin",
|
|
66120
|
+
"/system/bin",
|
|
66121
|
+
"/system/xbin",
|
|
66122
|
+
"/bin",
|
|
66123
|
+
"/usr/bin"
|
|
66124
|
+
].map((p2) => normalizePath(p2));
|
|
66125
|
+
return trustedPrefixes.some((prefix) => normPath === prefix || normPath.startsWith(prefix + "/"));
|
|
66108
66126
|
} else {
|
|
66109
66127
|
const trustedPrefixes = [
|
|
66110
66128
|
"/usr/bin",
|
|
@@ -221445,8 +221463,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
|
|
|
221445
221463
|
var init_git_commit = __esm({
|
|
221446
221464
|
"packages/core/dist/src/generated/git-commit.js"() {
|
|
221447
221465
|
"use strict";
|
|
221448
|
-
GIT_COMMIT_INFO = "
|
|
221449
|
-
CLI_VERSION = "0.67.0-
|
|
221466
|
+
GIT_COMMIT_INFO = "8080ea70a";
|
|
221467
|
+
CLI_VERSION = "0.67.0-preview.0";
|
|
221450
221468
|
}
|
|
221451
221469
|
});
|
|
221452
221470
|
|
|
@@ -297335,7 +297353,9 @@ function getDiffContextSnippet(originalContent, newContent, contextLines = 5) {
|
|
|
297335
297353
|
if (!originalContent) {
|
|
297336
297354
|
return newContent;
|
|
297337
297355
|
}
|
|
297338
|
-
const
|
|
297356
|
+
const normalizedOriginal = originalContent.replace(/\r\n/g, "\n");
|
|
297357
|
+
const normalizedNew = newContent.replace(/\r\n/g, "\n");
|
|
297358
|
+
const changes = diffLines(normalizedOriginal, normalizedNew);
|
|
297339
297359
|
const newLines = newContent.split(/\r?\n/);
|
|
297340
297360
|
const ranges = [];
|
|
297341
297361
|
let newLineIdx = 0;
|
|
@@ -337891,7 +337911,7 @@ function getVersion() {
|
|
|
337891
337911
|
}
|
|
337892
337912
|
versionPromise = (async () => {
|
|
337893
337913
|
const pkgJson = await getPackageJson(__dirname4);
|
|
337894
|
-
return "0.67.0-
|
|
337914
|
+
return "0.67.0-preview.0";
|
|
337895
337915
|
})();
|
|
337896
337916
|
return versionPromise;
|
|
337897
337917
|
}
|