@google/gemini-cli 0.1.13-nightly.250726.fb751c54 → 0.1.13-nightly.250728.9ed35126

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 (53) hide show
  1. package/dist/google-gemini-cli-0.1.13.tgz +0 -0
  2. package/dist/package.json +2 -2
  3. package/dist/src/gemini.d.ts +1 -0
  4. package/dist/src/gemini.js +21 -14
  5. package/dist/src/gemini.js.map +1 -1
  6. package/dist/src/generated/git-commit.d.ts +1 -1
  7. package/dist/src/generated/git-commit.js +1 -1
  8. package/dist/src/services/FileCommandLoader.js +31 -8
  9. package/dist/src/services/FileCommandLoader.js.map +1 -1
  10. package/dist/src/services/prompt-processors/shellProcessor.d.ts +32 -0
  11. package/dist/src/services/prompt-processors/shellProcessor.js +77 -0
  12. package/dist/src/services/prompt-processors/shellProcessor.js.map +1 -0
  13. package/dist/src/services/prompt-processors/types.d.ts +4 -0
  14. package/dist/src/services/prompt-processors/types.js +4 -0
  15. package/dist/src/services/prompt-processors/types.js.map +1 -1
  16. package/dist/src/ui/App.js +29 -5
  17. package/dist/src/ui/App.js.map +1 -1
  18. package/dist/src/ui/commands/chatCommand.js +39 -1
  19. package/dist/src/ui/commands/chatCommand.js.map +1 -1
  20. package/dist/src/ui/commands/types.d.ts +16 -1
  21. package/dist/src/ui/commands/types.js.map +1 -1
  22. package/dist/src/ui/components/Footer.js +1 -1
  23. package/dist/src/ui/components/Footer.js.map +1 -1
  24. package/dist/src/ui/components/Header.js +1 -1
  25. package/dist/src/ui/components/Header.js.map +1 -1
  26. package/dist/src/ui/components/ShellConfirmationDialog.d.ts +15 -0
  27. package/dist/src/ui/components/ShellConfirmationDialog.js +44 -0
  28. package/dist/src/ui/components/ShellConfirmationDialog.js.map +1 -0
  29. package/dist/src/ui/components/Tips.js +1 -1
  30. package/dist/src/ui/components/Tips.js.map +1 -1
  31. package/dist/src/ui/hooks/shellCommandProcessor.d.ts +1 -0
  32. package/dist/src/ui/hooks/shellCommandProcessor.js +139 -200
  33. package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -1
  34. package/dist/src/ui/hooks/slashCommandProcessor.d.ts +7 -3
  35. package/dist/src/ui/hooks/slashCommandProcessor.js +120 -72
  36. package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
  37. package/dist/src/ui/hooks/useConsoleMessages.js +53 -37
  38. package/dist/src/ui/hooks/useConsoleMessages.js.map +1 -1
  39. package/dist/src/ui/hooks/useReactToolScheduler.js +0 -1
  40. package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -1
  41. package/dist/src/ui/themes/theme-manager.js +10 -1
  42. package/dist/src/ui/themes/theme-manager.js.map +1 -1
  43. package/dist/src/ui/themes/theme.d.ts +1 -0
  44. package/dist/src/ui/themes/theme.js +19 -4
  45. package/dist/src/ui/themes/theme.js.map +1 -1
  46. package/dist/src/ui/utils/textUtils.d.ts +0 -8
  47. package/dist/src/ui/utils/textUtils.js +0 -22
  48. package/dist/src/ui/utils/textUtils.js.map +1 -1
  49. package/dist/src/utils/events.d.ts +11 -0
  50. package/dist/src/utils/events.js +13 -0
  51. package/dist/src/utils/events.js.map +1 -0
  52. package/dist/tsconfig.tsbuildinfo +1 -1
  53. package/package.json +3 -3
@@ -9,14 +9,6 @@
9
9
  * @returns The length of the longest line in the ASCII art.
10
10
  */
11
11
  export declare const getAsciiArtWidth: (asciiArt: string) => number;
12
- /**
13
- * Checks if a Buffer is likely binary by testing for the presence of a NULL byte.
14
- * The presence of a NULL byte is a strong indicator that the data is not plain text.
15
- * @param data The Buffer to check.
16
- * @param sampleSize The number of bytes from the start of the buffer to test.
17
- * @returns True if a NULL byte is found, false otherwise.
18
- */
19
- export declare function isBinary(data: Buffer | null | undefined, sampleSize?: number): boolean;
20
12
  export declare function toCodePoints(str: string): string[];
21
13
  export declare function cpLen(str: string): number;
22
14
  export declare function cpSlice(str: string, start: number, end?: number): string;
@@ -15,28 +15,6 @@ export const getAsciiArtWidth = (asciiArt) => {
15
15
  const lines = asciiArt.split('\n');
16
16
  return Math.max(...lines.map((line) => line.length));
17
17
  };
18
- /**
19
- * Checks if a Buffer is likely binary by testing for the presence of a NULL byte.
20
- * The presence of a NULL byte is a strong indicator that the data is not plain text.
21
- * @param data The Buffer to check.
22
- * @param sampleSize The number of bytes from the start of the buffer to test.
23
- * @returns True if a NULL byte is found, false otherwise.
24
- */
25
- export function isBinary(data, sampleSize = 512) {
26
- if (!data) {
27
- return false;
28
- }
29
- const sample = data.length > sampleSize ? data.subarray(0, sampleSize) : data;
30
- for (const byte of sample) {
31
- // The presence of a NULL byte (0x00) is one of the most reliable
32
- // indicators of a binary file. Text files should not contain them.
33
- if (byte === 0) {
34
- return true;
35
- }
36
- }
37
- // If no NULL bytes were found in the sample, we assume it's text.
38
- return false;
39
- }
40
18
  /*
41
19
  * -------------------------------------------------------------------------
42
20
  * Unicode‑aware helpers (work at the code‑point level rather than UTF‑16
@@ -1 +1 @@
1
- {"version":3,"file":"textUtils.js","sourceRoot":"","sources":["../../../../src/ui/utils/textUtils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,QAAgB,EAAU,EAAE;IAC3D,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,CAAC,CAAC;IACX,CAAC;IACD,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACnC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CACtB,IAA+B,EAC/B,UAAU,GAAG,GAAG;IAEhB,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,MAAM,GA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E,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF;;;;4EAI4E;AAE5E,MAAM,UAAU,YAAY,CAAC,GAAW;IACtC,qEAAqE;IACrE,6BAA6B;IAC7B,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzB,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,GAAW;IAC/B,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,GAAW,EAAE,KAAa,EAAE,GAAY;IAC9D,2CAA2C;IAC3C,MAAM,GAAG,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAChD,OAAO,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { EventEmitter } from 'events';
7
+ export declare enum AppEvent {
8
+ OpenDebugConsole = "open-debug-console",
9
+ LogError = "log-error"
10
+ }
11
+ export declare const appEvents: EventEmitter<[never]>;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { EventEmitter } from 'events';
7
+ export var AppEvent;
8
+ (function (AppEvent) {
9
+ AppEvent["OpenDebugConsole"] = "open-debug-console";
10
+ AppEvent["LogError"] = "log-error";
11
+ })(AppEvent || (AppEvent = {}));
12
+ export const appEvents = new EventEmitter();
13
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/utils/events.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,CAAN,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,kCAAsB,CAAA;AACxB,CAAC,EAHW,QAAQ,KAAR,QAAQ,QAGnB;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,YAAY,EAAE,CAAC"}