@google/gemini-cli 0.33.0-preview.12 → 0.33.0-preview.14
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/bundle/gemini.js
CHANGED
|
@@ -196358,8 +196358,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
|
|
|
196358
196358
|
var init_git_commit = __esm({
|
|
196359
196359
|
"packages/core/dist/src/generated/git-commit.js"() {
|
|
196360
196360
|
"use strict";
|
|
196361
|
-
GIT_COMMIT_INFO = "
|
|
196362
|
-
CLI_VERSION = "0.33.0-preview.
|
|
196361
|
+
GIT_COMMIT_INFO = "0d27afcc7";
|
|
196362
|
+
CLI_VERSION = "0.33.0-preview.14";
|
|
196363
196363
|
}
|
|
196364
196364
|
});
|
|
196365
196365
|
|
|
@@ -292827,7 +292827,7 @@ function getVersion() {
|
|
|
292827
292827
|
}
|
|
292828
292828
|
versionPromise = (async () => {
|
|
292829
292829
|
const pkgJson = await getPackageJson(__dirname3);
|
|
292830
|
-
return "0.33.0-preview.
|
|
292830
|
+
return "0.33.0-preview.14";
|
|
292831
292831
|
})();
|
|
292832
292832
|
return versionPromise;
|
|
292833
292833
|
}
|
|
@@ -412253,6 +412253,12 @@ var init_policy_engine = __esm({
|
|
|
412253
412253
|
}
|
|
412254
412254
|
}
|
|
412255
412255
|
if (decision === void 0) {
|
|
412256
|
+
if (this.approvalMode === ApprovalMode.YOLO) {
|
|
412257
|
+
debugLogger.debug(`[PolicyEngine.check] NO MATCH in YOLO mode - using ALLOW`);
|
|
412258
|
+
return {
|
|
412259
|
+
decision: PolicyDecision.ALLOW
|
|
412260
|
+
};
|
|
412261
|
+
}
|
|
412256
412262
|
debugLogger.debug(`[PolicyEngine.check] NO MATCH - using default decision: ${this.defaultDecision}`);
|
|
412257
412263
|
if (toolName && SHELL_TOOL_NAMES.includes(toolName)) {
|
|
412258
412264
|
const shellResult = await this.checkShellCommand(toolName, command2, this.defaultDecision, serverName, shellDirPath, void 0, void 0, toolAnnotations);
|
|
@@ -515121,7 +515127,7 @@ var WarningMessage = ({ text }) => {
|
|
|
515121
515127
|
};
|
|
515122
515128
|
|
|
515123
515129
|
// packages/cli/src/generated/git-commit.ts
|
|
515124
|
-
var GIT_COMMIT_INFO2 = "
|
|
515130
|
+
var GIT_COMMIT_INFO2 = "0d4d80eb5";
|
|
515125
515131
|
|
|
515126
515132
|
// packages/cli/src/ui/components/AboutBox.tsx
|
|
515127
515133
|
init_dist8();
|
|
@@ -526130,14 +526136,14 @@ var ChoiceQuestionView = ({
|
|
|
526130
526136
|
const FOOTER_HEIGHT = 2;
|
|
526131
526137
|
const overhead = HEADER_HEIGHT2 + TITLE_MARGIN + FOOTER_HEIGHT;
|
|
526132
526138
|
const listHeight = availableHeight ? Math.max(1, availableHeight - overhead) : void 0;
|
|
526133
|
-
const
|
|
526134
|
-
const maxItemsToShow = listHeight &&
|
|
526139
|
+
const questionHeightLimit = listHeight && !isAlternateBuffer ? question.unconstrainedHeight ? Math.max(1, listHeight - selectionItems.length * 2) : Math.min(15, Math.max(1, listHeight - DIALOG_PADDING)) : void 0;
|
|
526140
|
+
const maxItemsToShow = listHeight && questionHeightLimit ? Math.max(1, Math.floor((listHeight - questionHeightLimit) / 2)) : selectionItems.length;
|
|
526135
526141
|
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(Box_default, { flexDirection: "column", children: [
|
|
526136
526142
|
progressHeader,
|
|
526137
526143
|
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Box_default, { marginBottom: TITLE_MARGIN, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
526138
526144
|
MaxSizedBox,
|
|
526139
526145
|
{
|
|
526140
|
-
maxHeight:
|
|
526146
|
+
maxHeight: questionHeightLimit,
|
|
526141
526147
|
maxWidth: availableWidth,
|
|
526142
526148
|
overflowDirection: "bottom",
|
|
526143
526149
|
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(Box_default, { flexDirection: "column", children: [
|
|
@@ -526618,7 +526624,8 @@ var ExitPlanModeDialog = ({
|
|
|
526618
526624
|
}
|
|
526619
526625
|
],
|
|
526620
526626
|
placeholder: "Type your feedback...",
|
|
526621
|
-
multiSelect: false
|
|
526627
|
+
multiSelect: false,
|
|
526628
|
+
unconstrainedHeight: false
|
|
526622
526629
|
}
|
|
526623
526630
|
],
|
|
526624
526631
|
onSubmit: (answers) => {
|
|
@@ -555701,7 +555708,7 @@ ${queuedText}` : queuedText;
|
|
|
555701
555708
|
}, [buffer, terminalWidth, terminalHeight, controlsHeight]);
|
|
555702
555709
|
const availableTerminalHeight = Math.max(
|
|
555703
555710
|
0,
|
|
555704
|
-
terminalHeight - controlsHeight -
|
|
555711
|
+
terminalHeight - controlsHeight - backgroundShellHeight - 1
|
|
555705
555712
|
);
|
|
555706
555713
|
config2.setShellExecutionConfig({
|
|
555707
555714
|
terminalWidth: Math.floor(terminalWidth * SHELL_WIDTH_FRACTION),
|
|
@@ -563532,7 +563539,7 @@ async function loadSandboxConfig(settings, argv) {
|
|
|
563532
563539
|
const sandboxOption = argv.sandbox ?? settings.tools?.sandbox;
|
|
563533
563540
|
const command2 = getSandboxCommand(sandboxOption);
|
|
563534
563541
|
const packageJson2 = await getPackageJson(__dirname13);
|
|
563535
|
-
const image2 = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.33.0-preview.
|
|
563542
|
+
const image2 = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.33.0-preview.14" ?? packageJson2?.config?.sandboxImageUri;
|
|
563536
563543
|
return command2 && image2 ? { command: command2, image: image2 } : void 0;
|
|
563537
563544
|
}
|
|
563538
563545
|
|