@mmmbuto/gemini-cli-termux 0.42.0-termux → 0.46.0-termux

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 (79) hide show
  1. package/README.md +22 -2
  2. package/bundle/builtin/antigravity-support/SKILL.md +58 -0
  3. package/bundle/{chunk-BF6DCDLJ.js → chunk-4TSWR3AN.js} +145 -55
  4. package/bundle/{chunk-PL5MCDGY.js → chunk-6HI7VNOG.js} +55 -70
  5. package/bundle/{chunk-6PXDEURC.js → chunk-7QZTHDKK.js} +2 -4
  6. package/bundle/{chunk-ORXUJRZC.js → chunk-B7I47N5E.js} +3 -3
  7. package/bundle/{chunk-EHTAR2YP.js → chunk-G2G6HEZZ.js} +1 -1
  8. package/bundle/{chunk-LX6GOGBA.js → chunk-IB4Q6NBY.js} +123186 -73766
  9. package/bundle/{chunk-MP2YMAMR.js → chunk-IT3YFQ3I.js} +1 -1
  10. package/bundle/{chunk-RJTRUG2J.js → chunk-TUDYL3X4.js} +29 -5
  11. package/bundle/{chunk-A6KCGXPK.js → chunk-WUVOS6TV.js} +13 -6
  12. package/bundle/{chunk-SLMD2AMF.js → chunk-YGU42N5I.js} +847 -655
  13. package/bundle/{cleanup-RTDYF5DD.js → cleanup-GEP2OOHM.js} +4 -5
  14. package/bundle/{devtools-ZLHMA45S.js → devtools-V7NE4CQA.js} +1 -1
  15. package/bundle/{devtoolsService-SKRXJOXW.js → devtoolsService-EVM2JJLB.js} +5 -6
  16. package/bundle/{dist-B3HBIK36.js → dist-R3LOFA4X.js} +331 -285
  17. package/bundle/docs/changelogs/index.md +59 -0
  18. package/bundle/docs/changelogs/latest.md +201 -167
  19. package/bundle/docs/changelogs/preview.md +45 -102
  20. package/bundle/docs/cli/auto-memory.md +61 -40
  21. package/bundle/docs/cli/gemini-md.md +0 -2
  22. package/bundle/docs/cli/plan-mode.md +0 -1
  23. package/bundle/docs/cli/settings.md +19 -19
  24. package/bundle/docs/cli/tutorials/memory-management.md +3 -3
  25. package/bundle/docs/extensions/reference.md +16 -0
  26. package/bundle/docs/extensions/releasing.md +58 -24
  27. package/bundle/docs/extensions/writing-extensions.md +7 -0
  28. package/bundle/docs/get-started/installation.mdx +2 -2
  29. package/bundle/docs/issue-and-pr-automation.md +29 -1
  30. package/bundle/docs/reference/commands.md +0 -3
  31. package/bundle/docs/reference/configuration.md +173 -78
  32. package/bundle/docs/reference/keyboard-shortcuts.md +23 -0
  33. package/bundle/docs/reference/tools.md +0 -2
  34. package/bundle/docs/tools/mcp-server.md +24 -3
  35. package/bundle/docs/tools/memory.md +10 -13
  36. package/bundle/examples/custom-commands/commands/fs/grep-code.toml +6 -0
  37. package/bundle/examples/custom-commands/gemini-extension.json +4 -0
  38. package/bundle/examples/exclude-tools/gemini-extension.json +5 -0
  39. package/bundle/examples/hooks/gemini-extension.json +4 -0
  40. package/bundle/examples/hooks/hooks/hooks.json +14 -0
  41. package/bundle/examples/hooks/scripts/on-start.js +8 -0
  42. package/bundle/examples/mcp-server/README.md +35 -0
  43. package/bundle/examples/mcp-server/example.js +60 -0
  44. package/bundle/examples/mcp-server/gemini-extension.json +11 -0
  45. package/bundle/examples/mcp-server/package.json +11 -0
  46. package/bundle/examples/policies/README.md +41 -0
  47. package/bundle/examples/policies/gemini-extension.json +5 -0
  48. package/bundle/examples/policies/policies/policies.toml +28 -0
  49. package/bundle/examples/skills/gemini-extension.json +4 -0
  50. package/bundle/examples/skills/skills/greeter/SKILL.md +7 -0
  51. package/bundle/examples/themes-example/README.md +31 -0
  52. package/bundle/examples/themes-example/gemini-extension.json +29 -0
  53. package/bundle/{gemini-NJWIVDFH.js → gemini-SGAFQX2R.js} +450 -297
  54. package/bundle/gemini.js +18 -13
  55. package/bundle/{dist-T73EYRDX.js → https-proxy-agent-AVGR4LHR.js} +8 -3
  56. package/bundle/{interactiveCli-QHKQZZJU.js → interactiveCli-MEEXSI2X.js} +1922 -1675
  57. package/bundle/{liteRtServerManager-USDJEPCM.js → liteRtServerManager-3EZO3JZ5.js} +6 -7
  58. package/bundle/{oauth2-provider-ARATJNEE.js → oauth2-provider-AJMTKEL6.js} +8 -10
  59. package/bundle/package.json +1 -1
  60. package/bundle/policies/plan.toml +1 -1
  61. package/bundle/policies/write.toml +0 -7
  62. package/bundle/src-LG4OHBW7.js +343 -0
  63. package/bundle/{start-IWR7MCIR.js → start-YW7YIVR7.js} +8 -9
  64. package/bundle/worker/worker-entry.js +7863 -0
  65. package/package.json +3 -3
  66. package/bundle/chunk-2X6HJV2G.js +0 -52710
  67. package/bundle/memoryDiscovery-EEGUKQ5C.js +0 -29
  68. package/bundle/node_modules/@google/gemini-cli-devtools/dist/client/main.js +0 -96
  69. package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.d.ts +0 -7
  70. package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.js +0 -9
  71. package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.js.map +0 -1
  72. package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/index.d.ts +0 -48
  73. package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/index.js +0 -333
  74. package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/index.js.map +0 -1
  75. package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/types.d.ts +0 -36
  76. package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/types.js +0 -7
  77. package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/types.js.map +0 -1
  78. package/bundle/node_modules/@google/gemini-cli-devtools/package.json +0 -33
  79. package/bundle/policies/memory-manager.toml +0 -20
package/bundle/gemini.js CHANGED
@@ -4,13 +4,12 @@ import {
4
4
  RELAUNCH_EXIT_CODE,
5
5
  getScriptArgs,
6
6
  getSpawnConfig
7
- } from "./chunk-A6KCGXPK.js";
8
- import "./chunk-MP2YMAMR.js";
9
- import "./chunk-6PXDEURC.js";
10
- import "./chunk-LX6GOGBA.js";
11
- import "./chunk-2X6HJV2G.js";
12
- import "./chunk-PL5MCDGY.js";
13
- import "./chunk-RJTRUG2J.js";
7
+ } from "./chunk-WUVOS6TV.js";
8
+ import "./chunk-IT3YFQ3I.js";
9
+ import "./chunk-7QZTHDKK.js";
10
+ import "./chunk-IB4Q6NBY.js";
11
+ import "./chunk-6HI7VNOG.js";
12
+ import "./chunk-TUDYL3X4.js";
14
13
  import "./chunk-IUUIT4SU.js";
15
14
  import "./chunk-34MYV7JD.js";
16
15
 
@@ -19,8 +18,14 @@ import { spawn } from "node:child_process";
19
18
  import os from "node:os";
20
19
  import v8 from "node:v8";
21
20
  process.on("uncaughtException", (error) => {
22
- if (process.platform === "win32" && error instanceof Error && error.message === "Cannot resize a pty that has already exited") {
23
- return;
21
+ if (error instanceof Error) {
22
+ const message = error.message || "";
23
+ const isPtyResizeError = message === "Cannot resize a pty that has already exited";
24
+ const isEbadfError = message.includes("EBADF") || error.code === "EBADF";
25
+ const isFromNodePty = error.stack?.includes("node-pty") || error.stack?.includes("PtyResize");
26
+ if ((isPtyResizeError || isEbadfError) && isFromNodePty) {
27
+ return;
28
+ }
24
29
  }
25
30
  if (error instanceof Error) {
26
31
  process.stderr.write(error.stack + "\n");
@@ -96,7 +101,7 @@ async function run() {
96
101
  while (true) {
97
102
  try {
98
103
  const exitCode = await runner();
99
- if (exitCode !== RELAUNCH_EXIT_CODE) {
104
+ if (process.platform === "android" || exitCode !== RELAUNCH_EXIT_CODE) {
100
105
  process.exit(exitCode);
101
106
  }
102
107
  } catch (error) {
@@ -110,9 +115,9 @@ ${error instanceof Error ? error.stack ?? error.message : String(error)}
110
115
  }
111
116
  }
112
117
  } else {
113
- const { main } = await import("./gemini-NJWIVDFH.js");
114
- const { FatalError, writeToStderr } = await import("./dist-B3HBIK36.js");
115
- const { runExitCleanup } = await import("./cleanup-RTDYF5DD.js");
118
+ const { main } = await import("./gemini-SGAFQX2R.js");
119
+ const { FatalError, writeToStderr } = await import("./dist-R3LOFA4X.js");
120
+ const { runExitCleanup } = await import("./cleanup-GEP2OOHM.js");
116
121
  main().catch(async (error) => {
117
122
  const cleanupTimeout = setTimeout(() => {
118
123
  writeToStderr("Cleanup timed out, forcing exit...\n");
@@ -1,6 +1,11 @@
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
2
  import {
3
- require_dist
4
- } from "./chunk-RJTRUG2J.js";
3
+ import_dist,
4
+ init_https_proxy_agent
5
+ } from "./chunk-TUDYL3X4.js";
5
6
  import "./chunk-34MYV7JD.js";
6
- export default require_dist();
7
+ init_https_proxy_agent();
8
+ var export_HttpsProxyAgent = import_dist.HttpsProxyAgent;
9
+ export {
10
+ export_HttpsProxyAgent as HttpsProxyAgent
11
+ };