@google/gemini-cli 0.36.0-preview.7 → 0.36.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.
Files changed (28) hide show
  1. package/bundle/{chunk-NYCY3Q2B.js → chunk-2OFO4ODK.js} +5 -5
  2. package/bundle/{chunk-2RCLDWUX.js → chunk-EAXTBDLN.js} +7380 -2768
  3. package/bundle/{chunk-QTVUHTZR.js → chunk-GHJNEZXJ.js} +7435 -2835
  4. package/bundle/{chunk-VA3P26WZ.js → chunk-QVTX2M5J.js} +5 -5
  5. package/bundle/{chunk-APAYS2LE.js → chunk-UNM3DGTG.js} +7380 -2768
  6. package/bundle/{chunk-EHC7O4TG.js → chunk-VB55KQW3.js} +10496 -5616
  7. package/bundle/{core-BHH4RB6L.js → core-6V2OYDRU.js} +1 -1
  8. package/bundle/{dist-YHAAIIZP.js → core-BMLL5RF4.js} +2 -2
  9. package/bundle/{devtoolsService-STAWBGOY.js → devtoolsService-QTW7GHQP.js} +2 -2
  10. package/bundle/{devtoolsService-GJALET3B.js → devtoolsService-UL6JE436.js} +4 -5
  11. package/bundle/{devtoolsService-4QGIZO5B.js → devtoolsService-ZKU2HLK2.js} +2 -2
  12. package/bundle/{dist-SWQPYLLV.js → dist-PYC2JXAJ.js} +1 -1
  13. package/bundle/docs/reference/configuration.md +1 -1
  14. package/bundle/gemini.js +6 -6
  15. package/bundle/{interactiveCli-MEBWWWE7.js → interactiveCli-A6HZ2TDO.js} +16 -15
  16. package/bundle/{interactiveCli-HYY2W6AF.js → interactiveCli-DWMSDCKV.js} +248 -264
  17. package/bundle/{interactiveCli-B6Y3UISW.js → interactiveCli-VLQHRXHU.js} +16 -15
  18. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
  19. package/bundle/{oauth2-provider-IGY3DL3D.js → oauth2-provider-5ENESIRQ.js} +1 -1
  20. package/bundle/{oauth2-provider-DLPX23GY.js → oauth2-provider-CAKFQRQV.js} +1 -1
  21. package/bundle/{oauth2-provider-MKUXMD5I.js → oauth2-provider-RVED6DAZ.js} +73 -39
  22. package/package.json +1 -1
  23. package/bundle/chunk-GDBDMLKR.js +0 -354180
  24. package/bundle/chunk-YTGZ6CSI.js +0 -93293
  25. package/bundle/devtoolsService-Q6LGZKTJ.js +0 -854
  26. package/bundle/dist-YOBWJF52.js +0 -1886
  27. package/bundle/interactiveCli-YJFA3P4G.js +0 -49298
  28. package/bundle/oauth2-provider-TIKPJAVU.js +0 -237
@@ -705,7 +705,7 @@ import {
705
705
  wrapInAccountChooser,
706
706
  writeToStderr,
707
707
  writeToStdout
708
- } from "./chunk-NYCY3Q2B.js";
708
+ } from "./chunk-VB55KQW3.js";
709
709
  import {
710
710
  ACTIVATE_SKILL_TOOL_NAME,
711
711
  ALL_BUILTIN_TOOL_NAMES,
@@ -705,7 +705,7 @@ import {
705
705
  wrapInAccountChooser,
706
706
  writeToStderr,
707
707
  writeToStdout
708
- } from "./chunk-EHC7O4TG.js";
708
+ } from "./chunk-2OFO4ODK.js";
709
709
  import {
710
710
  ACTIVATE_SKILL_TOOL_NAME,
711
711
  ALL_BUILTIN_TOOL_NAMES,
@@ -937,7 +937,7 @@ import {
937
937
  tmpdir,
938
938
  toFriendlyError,
939
939
  unescapePath
940
- } from "./chunk-S2IQOR7T.js";
940
+ } from "./chunk-MYI75E6G.js";
941
941
  import "./chunk-664ZODQF.js";
942
942
  import "./chunk-RJTRUG2J.js";
943
943
  import {
@@ -1,5 +1,5 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
- import "./chunk-NYCY3Q2B.js";
2
+ import "./chunk-VB55KQW3.js";
3
3
  import {
4
4
  coreEvents,
5
5
  debugLogger
@@ -819,7 +819,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
819
819
  return;
820
820
  }
821
821
  try {
822
- const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-BHH4RB6L.js");
822
+ const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-6V2OYDRU.js");
823
823
  const url = await startDevToolsServer(config);
824
824
  if (shouldLaunchBrowser()) {
825
825
  try {
@@ -1,10 +1,9 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
- import "./chunk-VA3P26WZ.js";
2
+ import "./chunk-2OFO4ODK.js";
3
3
  import {
4
- CoreEvent,
5
4
  coreEvents,
6
5
  debugLogger
7
- } from "./chunk-S2IQOR7T.js";
6
+ } from "./chunk-MYI75E6G.js";
8
7
  import {
9
8
  wrapper_default
10
9
  } from "./chunk-664ZODQF.js";
@@ -650,7 +649,7 @@ var bridgeAttached = false;
650
649
  function bridgeCoreEvents(capture) {
651
650
  if (bridgeAttached) return;
652
651
  bridgeAttached = true;
653
- coreEvents.on(CoreEvent.ConsoleLog, (payload) => {
652
+ coreEvents.on("console-log" /* ConsoleLog */, (payload) => {
654
653
  capture.logConsole(payload);
655
654
  });
656
655
  }
@@ -820,7 +819,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
820
819
  return;
821
820
  }
822
821
  try {
823
- const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-YOBWJF52.js");
822
+ const { openBrowserSecurely, shouldLaunchBrowser } = await import("./core-BMLL5RF4.js");
824
823
  const url = await startDevToolsServer(config);
825
824
  if (shouldLaunchBrowser()) {
826
825
  try {
@@ -1,5 +1,5 @@
1
1
  const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
2
- import "./chunk-EHC7O4TG.js";
2
+ import "./chunk-QVTX2M5J.js";
3
3
  import {
4
4
  CoreEvent,
5
5
  coreEvents,
@@ -820,7 +820,7 @@ async function toggleDevToolsPanel(config, isOpen, toggle, setOpen) {
820
820
  return;
821
821
  }
822
822
  try {
823
- const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-YHAAIIZP.js");
823
+ const { openBrowserSecurely, shouldLaunchBrowser } = await import("./dist-PYC2JXAJ.js");
824
824
  const url = await startDevToolsServer(config);
825
825
  if (shouldLaunchBrowser()) {
826
826
  try {
@@ -705,7 +705,7 @@ import {
705
705
  wrapInAccountChooser,
706
706
  writeToStderr,
707
707
  writeToStdout
708
- } from "./chunk-GDBDMLKR.js";
708
+ } from "./chunk-QVTX2M5J.js";
709
709
  import {
710
710
  ACTIVATE_SKILL_TOOL_NAME,
711
711
  ALL_BUILTIN_TOOL_NAMES,
@@ -1600,7 +1600,7 @@ their corresponding top-level category object in your `settings.json` file.
1600
1600
 
1601
1601
  - **`experimental.jitContext`** (boolean):
1602
1602
  - **Description:** Enable Just-In-Time (JIT) context loading.
1603
- - **Default:** `true`
1603
+ - **Default:** `false`
1604
1604
  - **Requires restart:** Yes
1605
1605
 
1606
1606
  - **`experimental.useOSC52Paste`** (boolean):
package/bundle/gemini.js CHANGED
@@ -67,7 +67,7 @@ import {
67
67
  updateAllUpdatableExtensions,
68
68
  updateExtension,
69
69
  validateAuthMethod
70
- } from "./chunk-QTVUHTZR.js";
70
+ } from "./chunk-UNM3DGTG.js";
71
71
  import {
72
72
  AuthType,
73
73
  ChatRecordingService,
@@ -153,7 +153,7 @@ import {
153
153
  uiTelemetryService,
154
154
  writeToStderr,
155
155
  writeToStdout
156
- } from "./chunk-EHC7O4TG.js";
156
+ } from "./chunk-QVTX2M5J.js";
157
157
  import {
158
158
  ASK_USER_TOOL_NAME,
159
159
  ApprovalMode,
@@ -7245,7 +7245,7 @@ async function loadSandboxConfig(settings, argv) {
7245
7245
  }
7246
7246
  const command2 = getSandboxCommand(sandboxValue);
7247
7247
  const packageJson = await getPackageJson(__dirname3);
7248
- const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.36.0-preview.7" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7248
+ const image = process.env["GEMINI_SANDBOX_IMAGE"] ?? "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.36.0" ?? customImage ?? packageJson?.config?.sandboxImageUri;
7249
7249
  const isNative = command2 === "windows-native" || command2 === "sandbox-exec" || command2 === "lxc";
7250
7250
  return command2 && (image || isNative) ? { enabled: true, allowedPaths, networkAccess, command: command2, image } : void 0;
7251
7251
  }
@@ -9521,7 +9521,7 @@ async function runNonInteractive({
9521
9521
  }
9522
9522
  });
9523
9523
  if (process.env["GEMINI_CLI_ACTIVITY_LOG_TARGET"]) {
9524
- const { setupInitialActivityLogger } = await import("./devtoolsService-4QGIZO5B.js");
9524
+ const { setupInitialActivityLogger } = await import("./devtoolsService-ZKU2HLK2.js");
9525
9525
  await setupInitialActivityLogger(config);
9526
9526
  }
9527
9527
  const { stdout: workingStdout } = createWorkingStdio();
@@ -13974,7 +13974,7 @@ ${reason.stack}` : ""}`;
13974
13974
  });
13975
13975
  }
13976
13976
  async function startInteractiveUI(config, settings, startupWarnings, workspaceRoot = process.cwd(), resumedSessionData, initializationResult) {
13977
- const { startInteractiveUI: doStartUI } = await import("./interactiveCli-HYY2W6AF.js");
13977
+ const { startInteractiveUI: doStartUI } = await import("./interactiveCli-VLQHRXHU.js");
13978
13978
  await doStartUI(
13979
13979
  config,
13980
13980
  settings,
@@ -14170,7 +14170,7 @@ ${finalArgs[promptIndex + 1]}`;
14170
14170
  await config.storage.initialize();
14171
14171
  adminControlsListner.setConfig(config);
14172
14172
  if (config.isInteractive() && settings.merged.general.devtools) {
14173
- const { setupInitialActivityLogger } = await import("./devtoolsService-4QGIZO5B.js");
14173
+ const { setupInitialActivityLogger } = await import("./devtoolsService-ZKU2HLK2.js");
14174
14174
  await setupInitialActivityLogger(config);
14175
14175
  }
14176
14176
  registerTelemetryConfig(config);
@@ -55,6 +55,7 @@ import {
55
55
  SettingScope,
56
56
  SettingsContext,
57
57
  Static,
58
+ StyledLine,
58
59
  TOGGLE_TYPES,
59
60
  TOOL_STATUS,
60
61
  TOOL_SUCCESS_RATE_HIGH,
@@ -181,7 +182,7 @@ import {
181
182
  widestLineFromStyledChars,
182
183
  wordBreakStyledChars,
183
184
  wrapStyledChars
184
- } from "./chunk-2RCLDWUX.js";
185
+ } from "./chunk-GHJNEZXJ.js";
185
186
  import {
186
187
  ApiKeyUpdatedEvent,
187
188
  AsyncFzf,
@@ -290,7 +291,7 @@ import {
290
291
  validatePlanContent,
291
292
  validatePlanPath,
292
293
  writeToStdout
293
- } from "./chunk-NYCY3Q2B.js";
294
+ } from "./chunk-2OFO4ODK.js";
294
295
  import {
295
296
  ACTIVATE_SKILL_TOOL_NAME,
296
297
  ChangeAuthRequestedError,
@@ -19841,13 +19842,13 @@ var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1);
19841
19842
  var MIN_COLUMN_WIDTH = 5;
19842
19843
  var COLUMN_PADDING = 2;
19843
19844
  var TABLE_MARGIN = 2;
19844
- var parseMarkdownToStyledChars = (text, defaultColor) => {
19845
+ var parseMarkdownToStyledLine = (text, defaultColor) => {
19845
19846
  const ansi = parseMarkdownToANSI(text, defaultColor);
19846
19847
  return toStyledCharacters(ansi);
19847
19848
  };
19848
- var calculateWidths = (styledChars) => {
19849
- const contentWidth = styledCharsWidth(styledChars);
19850
- const words = wordBreakStyledChars(styledChars);
19849
+ var calculateWidths = (styledLine) => {
19850
+ const contentWidth = styledCharsWidth(styledLine);
19851
+ const words = wordBreakStyledChars(styledLine);
19851
19852
  const maxWordWidth = widestLineFromStyledChars(words);
19852
19853
  return { contentWidth, maxWordWidth };
19853
19854
  };
@@ -19858,7 +19859,7 @@ var TableRenderer = ({
19858
19859
  }) => {
19859
19860
  const styledHeaders = (0, import_react7.useMemo)(
19860
19861
  () => headers.map(
19861
- (header) => parseMarkdownToStyledChars(
19862
+ (header) => parseMarkdownToStyledLine(
19862
19863
  stripUnsafeCharacters(header),
19863
19864
  theme.text.link
19864
19865
  )
@@ -19868,7 +19869,7 @@ var TableRenderer = ({
19868
19869
  const styledRows = (0, import_react7.useMemo)(
19869
19870
  () => rows.map(
19870
19871
  (row) => row.map(
19871
- (cell) => parseMarkdownToStyledChars(
19872
+ (cell) => parseMarkdownToStyledLine(
19872
19873
  stripUnsafeCharacters(cell),
19873
19874
  theme.text.primary
19874
19875
  )
@@ -19883,11 +19884,11 @@ var TableRenderer = ({
19883
19884
  );
19884
19885
  const constraints = Array.from({ length: numColumns }).map(
19885
19886
  (_, colIndex) => {
19886
- const headerStyledChars = styledHeaders[colIndex] || [];
19887
- let { contentWidth: maxContentWidth, maxWordWidth } = calculateWidths(headerStyledChars);
19887
+ const headerStyledLine = styledHeaders[colIndex] || StyledLine.empty(0);
19888
+ let { contentWidth: maxContentWidth, maxWordWidth } = calculateWidths(headerStyledLine);
19888
19889
  styledRows.forEach((row) => {
19889
- const cellStyledChars = row[colIndex] || [];
19890
- const { contentWidth: cellWidth, maxWordWidth: cellWordWidth } = calculateWidths(cellStyledChars);
19890
+ const cellStyledLine = row[colIndex] || StyledLine.empty(0);
19891
+ const { contentWidth: cellWidth, maxWordWidth: cellWordWidth } = calculateWidths(cellStyledLine);
19891
19892
  maxContentWidth = Math.max(maxContentWidth, cellWidth);
19892
19893
  maxWordWidth = Math.max(maxWordWidth, cellWordWidth);
19893
19894
  });
@@ -19940,11 +19941,11 @@ var TableRenderer = ({
19940
19941
  const wrapAndProcessRow = (row) => {
19941
19942
  const rowResult = [];
19942
19943
  for (let colIndex = 0; colIndex < numColumns; colIndex++) {
19943
- const cellStyledChars = row[colIndex] || [];
19944
+ const cellStyledLine = row[colIndex] || StyledLine.empty(0);
19944
19945
  const allocatedWidth = finalContentWidths[colIndex];
19945
19946
  const contentWidth = Math.max(1, allocatedWidth);
19946
19947
  const wrappedStyledLines = wrapStyledChars(
19947
- cellStyledChars,
19948
+ cellStyledLine,
19948
19949
  contentWidth
19949
19950
  );
19950
19951
  const maxLineWidth = widestLineFromStyledChars(wrappedStyledLines);
@@ -48351,7 +48352,7 @@ ${queuedText}` : queuedText;
48351
48352
  if (keyMatchers["app.showErrorDetails" /* SHOW_ERROR_DETAILS */](key)) {
48352
48353
  if (settings.merged.general.devtools) {
48353
48354
  void (async () => {
48354
- const { toggleDevToolsPanel } = await import("./devtoolsService-STAWBGOY.js");
48355
+ const { toggleDevToolsPanel } = await import("./devtoolsService-UL6JE436.js");
48355
48356
  await toggleDevToolsPanel(
48356
48357
  config,
48357
48358
  showErrorDetails,