@mmmbuto/gemini-cli-termux 0.22.6-termux → 0.24.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 (104) hide show
  1. package/README.md +24 -21
  2. package/bundle/README.md +239 -0
  3. package/bundle/docs/TERMUX.md +97 -0
  4. package/bundle/docs/architecture.md +80 -0
  5. package/bundle/docs/assets/connected_devtools.png +0 -0
  6. package/bundle/docs/assets/gemini-screenshot.png +0 -0
  7. package/bundle/docs/assets/release_patch.png +0 -0
  8. package/bundle/docs/assets/theme-ansi-light.png +0 -0
  9. package/bundle/docs/assets/theme-ansi.png +0 -0
  10. package/bundle/docs/assets/theme-atom-one.png +0 -0
  11. package/bundle/docs/assets/theme-ayu-light.png +0 -0
  12. package/bundle/docs/assets/theme-ayu.png +0 -0
  13. package/bundle/docs/assets/theme-custom.png +0 -0
  14. package/bundle/docs/assets/theme-default-light.png +0 -0
  15. package/bundle/docs/assets/theme-default.png +0 -0
  16. package/bundle/docs/assets/theme-dracula.png +0 -0
  17. package/bundle/docs/assets/theme-github-light.png +0 -0
  18. package/bundle/docs/assets/theme-github.png +0 -0
  19. package/bundle/docs/assets/theme-google-light.png +0 -0
  20. package/bundle/docs/assets/theme-xcode-light.png +0 -0
  21. package/bundle/docs/changelogs/index.md +592 -0
  22. package/bundle/docs/changelogs/latest.md +225 -0
  23. package/bundle/docs/changelogs/preview.md +129 -0
  24. package/bundle/docs/changelogs/releases.md +896 -0
  25. package/bundle/docs/cli/authentication.md +3 -0
  26. package/bundle/docs/cli/checkpointing.md +94 -0
  27. package/bundle/docs/cli/commands.md +354 -0
  28. package/bundle/docs/cli/configuration.md +792 -0
  29. package/bundle/docs/cli/context-memory.md +69 -0
  30. package/bundle/docs/cli/custom-commands.md +315 -0
  31. package/bundle/docs/cli/enterprise.md +565 -0
  32. package/bundle/docs/cli/gemini-ignore.md +71 -0
  33. package/bundle/docs/cli/gemini-md.md +108 -0
  34. package/bundle/docs/cli/generation-settings.md +210 -0
  35. package/bundle/docs/cli/headless.md +388 -0
  36. package/bundle/docs/cli/index.md +63 -0
  37. package/bundle/docs/cli/keyboard-shortcuts.md +143 -0
  38. package/bundle/docs/cli/model-routing.md +37 -0
  39. package/bundle/docs/cli/model.md +62 -0
  40. package/bundle/docs/cli/sandbox.md +171 -0
  41. package/bundle/docs/cli/session-management.md +158 -0
  42. package/bundle/docs/cli/settings.md +114 -0
  43. package/bundle/docs/cli/system-prompt.md +93 -0
  44. package/bundle/docs/cli/telemetry.md +791 -0
  45. package/bundle/docs/cli/themes.md +237 -0
  46. package/bundle/docs/cli/token-caching.md +20 -0
  47. package/bundle/docs/cli/trusted-folders.md +95 -0
  48. package/bundle/docs/cli/tutorials.md +83 -0
  49. package/bundle/docs/cli/uninstall.md +47 -0
  50. package/bundle/docs/core/index.md +101 -0
  51. package/bundle/docs/core/memport.md +244 -0
  52. package/bundle/docs/core/policy-engine.md +267 -0
  53. package/bundle/docs/core/tools-api.md +131 -0
  54. package/bundle/docs/examples/proxy-script.md +83 -0
  55. package/bundle/docs/extensions/extension-releasing.md +183 -0
  56. package/bundle/docs/extensions/getting-started-extensions.md +245 -0
  57. package/bundle/docs/extensions/index.md +293 -0
  58. package/bundle/docs/faq.md +154 -0
  59. package/bundle/docs/get-started/authentication.md +321 -0
  60. package/bundle/docs/get-started/configuration-v1.md +888 -0
  61. package/bundle/docs/get-started/configuration.md +1511 -0
  62. package/bundle/docs/get-started/deployment.md +143 -0
  63. package/bundle/docs/get-started/examples.md +219 -0
  64. package/bundle/docs/get-started/gemini-3.md +116 -0
  65. package/bundle/docs/get-started/index.md +71 -0
  66. package/bundle/docs/get-started/installation.md +141 -0
  67. package/bundle/docs/hooks/best-practices.md +806 -0
  68. package/bundle/docs/hooks/index.md +665 -0
  69. package/bundle/docs/hooks/reference.md +168 -0
  70. package/bundle/docs/hooks/writing-hooks.md +1026 -0
  71. package/bundle/docs/ide-integration/ide-companion-spec.md +267 -0
  72. package/bundle/docs/ide-integration/index.md +202 -0
  73. package/bundle/docs/index.md +147 -0
  74. package/bundle/docs/integration-tests.md +211 -0
  75. package/bundle/docs/issue-and-pr-automation.md +134 -0
  76. package/bundle/docs/local-development.md +128 -0
  77. package/bundle/docs/mermaid/context.mmd +103 -0
  78. package/bundle/docs/mermaid/render-path.mmd +64 -0
  79. package/bundle/docs/npm.md +62 -0
  80. package/bundle/docs/patches/CONTEXT_MEMORY_COMPARISON.md +306 -0
  81. package/bundle/docs/patches/MERGE_TO_0.24_ANALYSIS.md +321 -0
  82. package/bundle/docs/patches/README.md +62 -0
  83. package/bundle/docs/quota-and-pricing.md +158 -0
  84. package/bundle/docs/release-confidence.md +164 -0
  85. package/bundle/docs/releases.md +540 -0
  86. package/bundle/docs/sidebar.json +297 -0
  87. package/bundle/docs/termux-api/COMMANDS.md +592 -0
  88. package/bundle/docs/termux-api/DISCOVERY_SETUP.md +670 -0
  89. package/bundle/docs/termux-api/EXECUTION_PLAN.md +532 -0
  90. package/bundle/docs/termux-api/MERGE_STRATEGY.md +325 -0
  91. package/bundle/docs/termux-api/PATCHES.md +483 -0
  92. package/bundle/docs/termux-api/README.md +416 -0
  93. package/bundle/docs/tools/file-system.md +217 -0
  94. package/bundle/docs/tools/index.md +95 -0
  95. package/bundle/docs/tools/mcp-server.md +1044 -0
  96. package/bundle/docs/tools/memory.md +54 -0
  97. package/bundle/docs/tools/shell.md +260 -0
  98. package/bundle/docs/tools/todos.md +57 -0
  99. package/bundle/docs/tools/web-fetch.md +59 -0
  100. package/bundle/docs/tools/web-search.md +42 -0
  101. package/bundle/docs/tos-privacy.md +96 -0
  102. package/bundle/docs/troubleshooting.md +158 -0
  103. package/bundle/gemini.js +35198 -32245
  104. package/package.json +10 -8
@@ -0,0 +1,95 @@
1
+ # Gemini CLI tools
2
+
3
+ The Gemini CLI includes built-in tools that the Gemini model uses to interact
4
+ with your local environment, access information, and perform actions. These
5
+ tools enhance the CLI's capabilities, enabling it to go beyond text generation
6
+ and assist with a wide range of tasks.
7
+
8
+ ## Overview of Gemini CLI tools
9
+
10
+ In the context of the Gemini CLI, tools are specific functions or modules that
11
+ the Gemini model can request to be executed. For example, if you ask Gemini to
12
+ "Summarize the contents of `my_document.txt`," the model will likely identify
13
+ the need to read that file and will request the execution of the `read_file`
14
+ tool.
15
+
16
+ The core component (`packages/core`) manages these tools, presents their
17
+ definitions (schemas) to the Gemini model, executes them when requested, and
18
+ returns the results to the model for further processing into a user-facing
19
+ response.
20
+
21
+ These tools provide the following capabilities:
22
+
23
+ - **Access local information:** Tools allow Gemini to access your local file
24
+ system, read file contents, list directories, etc.
25
+ - **Execute commands:** With tools like `run_shell_command`, Gemini can run
26
+ shell commands (with appropriate safety measures and user confirmation).
27
+ - **Interact with the web:** Tools can fetch content from URLs.
28
+ - **Take actions:** Tools can modify files, write new files, or perform other
29
+ actions on your system (again, typically with safeguards).
30
+ - **Ground responses:** By using tools to fetch real-time or specific local
31
+ data, Gemini's responses can be more accurate, relevant, and grounded in your
32
+ actual context.
33
+
34
+ ## How to use Gemini CLI tools
35
+
36
+ To use Gemini CLI tools, provide a prompt to the Gemini CLI. The process works
37
+ as follows:
38
+
39
+ 1. You provide a prompt to the Gemini CLI.
40
+ 2. The CLI sends the prompt to the core.
41
+ 3. The core, along with your prompt and conversation history, sends a list of
42
+ available tools and their descriptions/schemas to the Gemini API.
43
+ 4. The Gemini model analyzes your request. If it determines that a tool is
44
+ needed, its response will include a request to execute a specific tool with
45
+ certain parameters.
46
+ 5. The core receives this tool request, validates it, and (often after user
47
+ confirmation for sensitive operations) executes the tool.
48
+ 6. The output from the tool is sent back to the Gemini model.
49
+ 7. The Gemini model uses the tool's output to formulate its final answer, which
50
+ is then sent back through the core to the CLI and displayed to you.
51
+
52
+ You will typically see messages in the CLI indicating when a tool is being
53
+ called and whether it succeeded or failed.
54
+
55
+ ## Security and confirmation
56
+
57
+ Many tools, especially those that can modify your file system or execute
58
+ commands (`write_file`, `edit`, `run_shell_command`), are designed with safety
59
+ in mind. The Gemini CLI will typically:
60
+
61
+ - **Require confirmation:** Prompt you before executing potentially sensitive
62
+ operations, showing you what action is about to be taken.
63
+ - **Utilize sandboxing:** All tools are subject to restrictions enforced by
64
+ sandboxing (see [Sandboxing in the Gemini CLI](../cli/sandbox.md)). This means
65
+ that when operating in a sandbox, any tools (including MCP servers) you wish
66
+ to use must be available _inside_ the sandbox environment. For example, to run
67
+ an MCP server through `npx`, the `npx` executable must be installed within the
68
+ sandbox's Docker image or be available in the `sandbox-exec` environment.
69
+
70
+ It's important to always review confirmation prompts carefully before allowing a
71
+ tool to proceed.
72
+
73
+ ## Learn more about Gemini CLI's tools
74
+
75
+ Gemini CLI's built-in tools can be broadly categorized as follows:
76
+
77
+ - **[File System Tools](./file-system.md):** For interacting with files and
78
+ directories (reading, writing, listing, searching, etc.).
79
+ - **[Shell Tool](./shell.md) (`run_shell_command`):** For executing shell
80
+ commands.
81
+ - **[Web Fetch Tool](./web-fetch.md) (`web_fetch`):** For retrieving content
82
+ from URLs.
83
+ - **[Web Search Tool](./web-search.md) (`google_web_search`):** For searching
84
+ the web.
85
+ - **[Memory Tool](./memory.md) (`save_memory`):** For saving and recalling
86
+ information across sessions.
87
+ - **[Todo Tool](./todos.md) (`write_todos`):** For managing subtasks of complex
88
+ requests.
89
+
90
+ Additionally, these tools incorporate:
91
+
92
+ - **[MCP servers](./mcp-server.md)**: MCP servers act as a bridge between the
93
+ Gemini model and your local environment or other services like APIs.
94
+ - **[Sandboxing](../cli/sandbox.md)**: Sandboxing isolates the model and its
95
+ changes from your environment to reduce potential risk.