@mmmbuto/gemini-cli-termux 0.22.7-termux → 0.24.1-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 (103) hide show
  1. package/README.md +18 -78
  2. package/bundle/docs/TERMUX.md +97 -0
  3. package/bundle/docs/architecture.md +80 -0
  4. package/bundle/docs/assets/connected_devtools.png +0 -0
  5. package/bundle/docs/assets/gemini-screenshot.png +0 -0
  6. package/bundle/docs/assets/release_patch.png +0 -0
  7. package/bundle/docs/assets/theme-ansi-light.png +0 -0
  8. package/bundle/docs/assets/theme-ansi.png +0 -0
  9. package/bundle/docs/assets/theme-atom-one.png +0 -0
  10. package/bundle/docs/assets/theme-ayu-light.png +0 -0
  11. package/bundle/docs/assets/theme-ayu.png +0 -0
  12. package/bundle/docs/assets/theme-custom.png +0 -0
  13. package/bundle/docs/assets/theme-default-light.png +0 -0
  14. package/bundle/docs/assets/theme-default.png +0 -0
  15. package/bundle/docs/assets/theme-dracula.png +0 -0
  16. package/bundle/docs/assets/theme-github-light.png +0 -0
  17. package/bundle/docs/assets/theme-github.png +0 -0
  18. package/bundle/docs/assets/theme-google-light.png +0 -0
  19. package/bundle/docs/assets/theme-xcode-light.png +0 -0
  20. package/bundle/docs/changelogs/index.md +592 -0
  21. package/bundle/docs/changelogs/latest.md +225 -0
  22. package/bundle/docs/changelogs/preview.md +129 -0
  23. package/bundle/docs/changelogs/releases.md +896 -0
  24. package/bundle/docs/cli/authentication.md +3 -0
  25. package/bundle/docs/cli/checkpointing.md +94 -0
  26. package/bundle/docs/cli/commands.md +354 -0
  27. package/bundle/docs/cli/configuration.md +792 -0
  28. package/bundle/docs/cli/context-memory.md +69 -0
  29. package/bundle/docs/cli/custom-commands.md +315 -0
  30. package/bundle/docs/cli/enterprise.md +565 -0
  31. package/bundle/docs/cli/gemini-ignore.md +71 -0
  32. package/bundle/docs/cli/gemini-md.md +108 -0
  33. package/bundle/docs/cli/generation-settings.md +210 -0
  34. package/bundle/docs/cli/headless.md +388 -0
  35. package/bundle/docs/cli/index.md +63 -0
  36. package/bundle/docs/cli/keyboard-shortcuts.md +143 -0
  37. package/bundle/docs/cli/model-routing.md +37 -0
  38. package/bundle/docs/cli/model.md +62 -0
  39. package/bundle/docs/cli/sandbox.md +171 -0
  40. package/bundle/docs/cli/session-management.md +158 -0
  41. package/bundle/docs/cli/settings.md +114 -0
  42. package/bundle/docs/cli/system-prompt.md +93 -0
  43. package/bundle/docs/cli/telemetry.md +791 -0
  44. package/bundle/docs/cli/themes.md +237 -0
  45. package/bundle/docs/cli/token-caching.md +20 -0
  46. package/bundle/docs/cli/trusted-folders.md +95 -0
  47. package/bundle/docs/cli/tutorials.md +83 -0
  48. package/bundle/docs/cli/uninstall.md +47 -0
  49. package/bundle/docs/core/index.md +101 -0
  50. package/bundle/docs/core/memport.md +244 -0
  51. package/bundle/docs/core/policy-engine.md +267 -0
  52. package/bundle/docs/core/tools-api.md +131 -0
  53. package/bundle/docs/examples/proxy-script.md +83 -0
  54. package/bundle/docs/extensions/extension-releasing.md +183 -0
  55. package/bundle/docs/extensions/getting-started-extensions.md +245 -0
  56. package/bundle/docs/extensions/index.md +293 -0
  57. package/bundle/docs/faq.md +154 -0
  58. package/bundle/docs/get-started/authentication.md +321 -0
  59. package/bundle/docs/get-started/configuration-v1.md +888 -0
  60. package/bundle/docs/get-started/configuration.md +1511 -0
  61. package/bundle/docs/get-started/deployment.md +143 -0
  62. package/bundle/docs/get-started/examples.md +219 -0
  63. package/bundle/docs/get-started/gemini-3.md +116 -0
  64. package/bundle/docs/get-started/index.md +71 -0
  65. package/bundle/docs/get-started/installation.md +141 -0
  66. package/bundle/docs/hooks/best-practices.md +806 -0
  67. package/bundle/docs/hooks/index.md +665 -0
  68. package/bundle/docs/hooks/reference.md +168 -0
  69. package/bundle/docs/hooks/writing-hooks.md +1026 -0
  70. package/bundle/docs/ide-integration/ide-companion-spec.md +267 -0
  71. package/bundle/docs/ide-integration/index.md +202 -0
  72. package/bundle/docs/index.md +147 -0
  73. package/bundle/docs/integration-tests.md +211 -0
  74. package/bundle/docs/issue-and-pr-automation.md +134 -0
  75. package/bundle/docs/local-development.md +128 -0
  76. package/bundle/docs/mermaid/context.mmd +103 -0
  77. package/bundle/docs/mermaid/render-path.mmd +64 -0
  78. package/bundle/docs/npm.md +62 -0
  79. package/bundle/docs/patches/CONTEXT_MEMORY_COMPARISON.md +306 -0
  80. package/bundle/docs/patches/MERGE_TO_0.24_ANALYSIS.md +321 -0
  81. package/bundle/docs/patches/README.md +62 -0
  82. package/bundle/docs/quota-and-pricing.md +158 -0
  83. package/bundle/docs/release-confidence.md +164 -0
  84. package/bundle/docs/releases.md +540 -0
  85. package/bundle/docs/sidebar.json +297 -0
  86. package/bundle/docs/termux-api/COMMANDS.md +592 -0
  87. package/bundle/docs/termux-api/DISCOVERY_SETUP.md +670 -0
  88. package/bundle/docs/termux-api/EXECUTION_PLAN.md +532 -0
  89. package/bundle/docs/termux-api/MERGE_STRATEGY.md +325 -0
  90. package/bundle/docs/termux-api/PATCHES.md +483 -0
  91. package/bundle/docs/termux-api/README.md +416 -0
  92. package/bundle/docs/tools/file-system.md +217 -0
  93. package/bundle/docs/tools/index.md +95 -0
  94. package/bundle/docs/tools/mcp-server.md +1044 -0
  95. package/bundle/docs/tools/memory.md +54 -0
  96. package/bundle/docs/tools/shell.md +260 -0
  97. package/bundle/docs/tools/todos.md +57 -0
  98. package/bundle/docs/tools/web-fetch.md +59 -0
  99. package/bundle/docs/tools/web-search.md +42 -0
  100. package/bundle/docs/tos-privacy.md +96 -0
  101. package/bundle/docs/troubleshooting.md +158 -0
  102. package/bundle/gemini.js +8901 -6534
  103. package/package.json +10 -8
@@ -0,0 +1,158 @@
1
+ # Troubleshooting guide
2
+
3
+ This guide provides solutions to common issues and debugging tips, including
4
+ topics on:
5
+
6
+ - Authentication or login errors
7
+ - Frequently asked questions (FAQs)
8
+ - Debugging tips
9
+ - Existing GitHub Issues similar to yours or creating new Issues
10
+
11
+ ## Authentication or login errors
12
+
13
+ - **Error:
14
+ `You must be a named user on your organization's Gemini Code Assist Standard edition subscription to use this service. Please contact your administrator to request an entitlement to Gemini Code Assist Standard edition.`**
15
+ - **Cause:** This error might occur if Gemini CLI detects the
16
+ `GOOGLE_CLOUD_PROJECT` or `GOOGLE_CLOUD_PROJECT_ID` environment variable is
17
+ defined. Setting these variables forces an organization subscription check.
18
+ This might be an issue if you are using an individual Google account not
19
+ linked to an organizational subscription.
20
+
21
+ - **Solution:**
22
+ - **Individual Users:** Unset the `GOOGLE_CLOUD_PROJECT` and
23
+ `GOOGLE_CLOUD_PROJECT_ID` environment variables. Check and remove these
24
+ variables from your shell configuration files (for example, `.bashrc`,
25
+ `.zshrc`) and any `.env` files. If this doesn't resolve the issue, try
26
+ using a different Google account.
27
+
28
+ - **Organizational Users:** Contact your Google Cloud administrator to be
29
+ added to your organization's Gemini Code Assist subscription.
30
+
31
+ - **Error: `Failed to login. Message: Request contains an invalid argument`**
32
+ - **Cause:** Users with Google Workspace accounts or Google Cloud accounts
33
+ associated with their Gmail accounts may not be able to activate the free
34
+ tier of the Google Code Assist plan.
35
+ - **Solution:** For Google Cloud accounts, you can work around this by setting
36
+ `GOOGLE_CLOUD_PROJECT` to your project ID. Alternatively, you can obtain the
37
+ Gemini API key from
38
+ [Google AI Studio](http://aistudio.google.com/app/apikey), which also
39
+ includes a separate free tier.
40
+
41
+ - **Error: `UNABLE_TO_GET_ISSUER_CERT_LOCALLY` or
42
+ `unable to get local issuer certificate`**
43
+ - **Cause:** You may be on a corporate network with a firewall that intercepts
44
+ and inspects SSL/TLS traffic. This often requires a custom root CA
45
+ certificate to be trusted by Node.js.
46
+ - **Solution:** Set the `NODE_EXTRA_CA_CERTS` environment variable to the
47
+ absolute path of your corporate root CA certificate file.
48
+ - Example: `export NODE_EXTRA_CA_CERTS=/path/to/your/corporate-ca.crt`
49
+
50
+ ## Common error messages and solutions
51
+
52
+ - **Error: `EADDRINUSE` (Address already in use) when starting an MCP server.**
53
+ - **Cause:** Another process is already using the port that the MCP server is
54
+ trying to bind to.
55
+ - **Solution:** Either stop the other process that is using the port or
56
+ configure the MCP server to use a different port.
57
+
58
+ - **Error: Command not found (when attempting to run Gemini CLI with
59
+ `gemini`).**
60
+ - **Cause:** Gemini CLI is not correctly installed or it is not in your
61
+ system's `PATH`.
62
+ - **Solution:** The update depends on how you installed Gemini CLI:
63
+ - If you installed `gemini` globally, check that your `npm` global binary
64
+ directory is in your `PATH`. You can update Gemini CLI using the command
65
+ `npm install -g @google/gemini-cli@latest`.
66
+ - If you are running `gemini` from source, ensure you are using the correct
67
+ command to invoke it (e.g., `node packages/cli/dist/index.js ...`). To
68
+ update Gemini CLI, pull the latest changes from the repository, and then
69
+ rebuild using the command `npm run build`.
70
+
71
+ - **Error: `MODULE_NOT_FOUND` or import errors.**
72
+ - **Cause:** Dependencies are not installed correctly, or the project hasn't
73
+ been built.
74
+ - **Solution:**
75
+ 1. Run `npm install` to ensure all dependencies are present.
76
+ 2. Run `npm run build` to compile the project.
77
+ 3. Verify that the build completed successfully with `npm run start`.
78
+
79
+ - **Error: "Operation not permitted", "Permission denied", or similar.**
80
+ - **Cause:** When sandboxing is enabled, Gemini CLI may attempt operations
81
+ that are restricted by your sandbox configuration, such as writing outside
82
+ the project directory or system temp directory.
83
+ - **Solution:** Refer to the [Configuration: Sandboxing](./cli/sandbox.md)
84
+ documentation for more information, including how to customize your sandbox
85
+ configuration.
86
+
87
+ - **Gemini CLI is not running in interactive mode in "CI" environments**
88
+ - **Issue:** The Gemini CLI does not enter interactive mode (no prompt
89
+ appears) if an environment variable starting with `CI_` (e.g., `CI_TOKEN`)
90
+ is set. This is because the `is-in-ci` package, used by the underlying UI
91
+ framework, detects these variables and assumes a non-interactive CI
92
+ environment.
93
+ - **Cause:** The `is-in-ci` package checks for the presence of `CI`,
94
+ `CONTINUOUS_INTEGRATION`, or any environment variable with a `CI_` prefix.
95
+ When any of these are found, it signals that the environment is
96
+ non-interactive, which prevents the Gemini CLI from starting in its
97
+ interactive mode.
98
+ - **Solution:** If the `CI_` prefixed variable is not needed for the CLI to
99
+ function, you can temporarily unset it for the command. e.g.,
100
+ `env -u CI_TOKEN gemini`
101
+
102
+ - **DEBUG mode not working from project .env file**
103
+ - **Issue:** Setting `DEBUG=true` in a project's `.env` file doesn't enable
104
+ debug mode for gemini-cli.
105
+ - **Cause:** The `DEBUG` and `DEBUG_MODE` variables are automatically excluded
106
+ from project `.env` files to prevent interference with gemini-cli behavior.
107
+ - **Solution:** Use a `.gemini/.env` file instead, or configure the
108
+ `advanced.excludedEnvVars` setting in your `settings.json` to exclude fewer
109
+ variables.
110
+
111
+ ## Exit codes
112
+
113
+ The Gemini CLI uses specific exit codes to indicate the reason for termination.
114
+ This is especially useful for scripting and automation.
115
+
116
+ | Exit Code | Error Type | Description |
117
+ | --------- | -------------------------- | --------------------------------------------------------------------------------------------------- |
118
+ | 41 | `FatalAuthenticationError` | An error occurred during the authentication process. |
119
+ | 42 | `FatalInputError` | Invalid or missing input was provided to the CLI. (non-interactive mode only) |
120
+ | 44 | `FatalSandboxError` | An error occurred with the sandboxing environment (e.g., Docker, Podman, or Seatbelt). |
121
+ | 52 | `FatalConfigError` | A configuration file (`settings.json`) is invalid or contains errors. |
122
+ | 53 | `FatalTurnLimitedError` | The maximum number of conversational turns for the session was reached. (non-interactive mode only) |
123
+
124
+ ## Debugging tips
125
+
126
+ - **CLI debugging:**
127
+ - Use the `--debug` flag for more detailed output.
128
+ - Check the CLI logs, often found in a user-specific configuration or cache
129
+ directory.
130
+
131
+ - **Core debugging:**
132
+ - Check the server console output for error messages or stack traces.
133
+ - Increase log verbosity if configurable.
134
+ - Use Node.js debugging tools (e.g., `node --inspect`) if you need to step
135
+ through server-side code.
136
+
137
+ - **Tool issues:**
138
+ - If a specific tool is failing, try to isolate the issue by running the
139
+ simplest possible version of the command or operation the tool performs.
140
+ - For `run_shell_command`, check that the command works directly in your shell
141
+ first.
142
+ - For _file system tools_, verify that paths are correct and check the
143
+ permissions.
144
+
145
+ - **Pre-flight checks:**
146
+ - Always run `npm run preflight` before committing code. This can catch many
147
+ common issues related to formatting, linting, and type errors.
148
+
149
+ ## Existing GitHub issues similar to yours or creating new issues
150
+
151
+ If you encounter an issue that was not covered here in this _Troubleshooting
152
+ guide_, consider searching the Gemini CLI
153
+ [Issue tracker on GitHub](https://github.com/google-gemini/gemini-cli/issues).
154
+ If you can't find an issue similar to yours, consider creating a new GitHub
155
+ Issue with a detailed description. Pull requests are also welcome!
156
+
157
+ > **Note:** Issues tagged as "🔒Maintainers only" are reserved for project
158
+ > maintainers. We will not accept pull requests related to these issues.