@qoder-ai/qodercli 0.2.2-beta.3 → 0.2.2-beta.6

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 (25) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +368 -0
  3. package/bin/run.js +57 -0
  4. package/package.json +11 -29
  5. package/bundle/policies/sandbox-default.toml +0 -19
  6. package/bundle/postinstall.cjs +0 -16
  7. package/bundle/qodercli.js +0 -5170
  8. package/bundle/sandbox-macos-permissive-open.sb +0 -27
  9. package/bundle/sandbox-macos-permissive-proxied.sb +0 -37
  10. package/bundle/sandbox-macos-restrictive-open.sb +0 -96
  11. package/bundle/sandbox-macos-restrictive-proxied.sb +0 -98
  12. package/bundle/sandbox-macos-strict-open.sb +0 -131
  13. package/bundle/sandbox-macos-strict-proxied.sb +0 -133
  14. /package/{bundle → bin}/builtin/agent-creator/SKILL.md +0 -0
  15. /package/{bundle → bin}/builtin/hook-config/SKILL.md +0 -0
  16. /package/{bundle → bin}/builtin/mcp-config/SKILL.md +0 -0
  17. /package/{bundle → bin}/builtin/skill-creator/SKILL.md +0 -0
  18. /package/{bundle → bin}/node_modules/@google/gemini-cli-devtools/dist/client/main.js +0 -0
  19. /package/{bundle → bin}/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.d.ts +0 -0
  20. /package/{bundle → bin}/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.js +0 -0
  21. /package/{bundle → bin}/node_modules/@google/gemini-cli-devtools/dist/src/index.d.ts +0 -0
  22. /package/{bundle → bin}/node_modules/@google/gemini-cli-devtools/dist/src/index.js +0 -0
  23. /package/{bundle → bin}/node_modules/@google/gemini-cli-devtools/dist/src/types.d.ts +0 -0
  24. /package/{bundle → bin}/node_modules/@google/gemini-cli-devtools/dist/src/types.js +0 -0
  25. /package/{bundle → bin}/node_modules/@google/gemini-cli-devtools/package.json +0 -0
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,368 @@
1
+ # qodercli
2
+
3
+ Gemini CLI is an open-source AI agent that brings the power of Gemini directly
4
+ into your terminal. It provides lightweight access to Gemini, giving you the
5
+ most direct path from your prompt to our model.
6
+
7
+ Learn all about Gemini CLI in our [documentation](https://geminicli.com/docs/).
8
+
9
+ ## 🚀 Why Gemini CLI?
10
+
11
+ - **🎯 Free tier**: 60 requests/min and 1,000 requests/day with personal Google
12
+ account.
13
+ - **🧠 Powerful Gemini 3 models**: Access to improved reasoning and 1M token
14
+ context window.
15
+ - **🔧 Built-in tools**: Google Search grounding, file operations, shell
16
+ commands, web fetching.
17
+ - **🔌 Extensible**: MCP (Model Context Protocol) support for custom
18
+ integrations.
19
+ - **💻 Terminal-first**: Designed for developers who live in the command line.
20
+ - **🛡️ Open source**: Apache 2.0 licensed.
21
+
22
+ ## 📦 Installation
23
+
24
+ See
25
+ [Gemini CLI installation, execution, and releases](https://www.geminicli.com/docs/get-started/installation)
26
+ for recommended system specifications and a detailed installation guide.
27
+
28
+ ### Quick Install
29
+
30
+ #### Run instantly with npx
31
+
32
+ ```bash
33
+ # Using npx (no installation required)
34
+ npx @qoder-ai/qodercli
35
+ ```
36
+
37
+ #### Install globally with npm
38
+
39
+ ```bash
40
+ npm install -g @qoder-ai/qodercli
41
+ ```
42
+
43
+ #### Install with Anaconda (for restricted environments)
44
+
45
+ ```bash
46
+ # Create and activate a new environment
47
+ conda create -y -n gemini_env -c conda-forge nodejs
48
+ conda activate gemini_env
49
+
50
+ # Install qodercli globally via npm (inside the environment)
51
+ npm install -g @qoder-ai/qodercli
52
+ ```
53
+
54
+ ## Release Channels
55
+
56
+ See [Releases](https://www.geminicli.com/docs/changelogs) for more details.
57
+
58
+ ### Preview
59
+
60
+ New preview releases will be published each week at UTC 23:59 on Tuesdays. These
61
+ releases will not have been fully vetted and may contain regressions or other
62
+ outstanding issues. Please help us test and install with `preview` tag.
63
+
64
+ ```bash
65
+ npm install -g @qoder-ai/qodercli@preview
66
+ ```
67
+
68
+ ### Stable
69
+
70
+ - New stable releases will be published each week at UTC 20:00 on Tuesdays, this
71
+ will be the full promotion of last week's `preview` release + any bug fixes
72
+ and validations. Use `latest` tag.
73
+
74
+ ```bash
75
+ npm install -g @qoder-ai/qodercli@latest
76
+ ```
77
+
78
+ ### Nightly
79
+
80
+ - New releases will be published each day at UTC 00:00. This will be all changes
81
+ from the main branch as represented at time of release. It should be assumed
82
+ there are pending validations and issues. Use `nightly` tag.
83
+
84
+ ```bash
85
+ npm install -g @qoder-ai/qodercli@nightly
86
+ ```
87
+
88
+ ## 📋 Key Features
89
+
90
+ ### Code Understanding & Generation
91
+
92
+ - Query and edit large codebases
93
+ - Generate new apps from PDFs, images, or sketches using multimodal capabilities
94
+ - Debug issues and troubleshoot with natural language
95
+
96
+ ### Automation & Integration
97
+
98
+ - Automate operational tasks like querying pull requests or handling complex
99
+ rebases
100
+ - Use MCP servers to connect new capabilities such as media generation, internal
101
+ tools, and custom automation
102
+ - Run non-interactively in scripts for workflow automation
103
+
104
+ ### Advanced Capabilities
105
+
106
+ - Ground your queries with built-in
107
+ [Google Search](https://ai.google.dev/gemini-api/docs/grounding) for real-time
108
+ information
109
+ - Conversation checkpointing to save and resume complex sessions
110
+ - Custom context files (GEMINI.md) to tailor behavior for your projects
111
+
112
+ ## 🔐 Authentication Options
113
+
114
+ Choose the authentication method that best fits your needs:
115
+
116
+ ### Option 1: Sign in with Google (OAuth login using your Google Account)
117
+
118
+ **✨ Best for:** Individual developers as well as anyone who has a Gemini Code
119
+ Assist License. (see
120
+ [quota limits and terms of service](https://cloud.google.com/gemini/docs/quotas)
121
+ for details)
122
+
123
+ **Benefits:**
124
+
125
+ - **Free tier**: 60 requests/min and 1,000 requests/day
126
+ - **Gemini 3 models** with 1M token context window
127
+ - **No API key management** - just sign in with your Google account
128
+ - **Automatic updates** to latest models
129
+
130
+ #### Start Gemini CLI, then choose _Sign in with Google_ and follow the browser authentication flow when prompted
131
+
132
+ ```bash
133
+ qodercli
134
+ ```
135
+
136
+ #### If you are using a paid Code Assist License from your organization, remember to set the Google Cloud Project
137
+
138
+ ```bash
139
+ # Set your Google Cloud Project
140
+ export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"
141
+ qodercli
142
+ ```
143
+
144
+ ### Option 2: Gemini API Key
145
+
146
+ **✨ Best for:** Developers who need specific model control or paid tier access
147
+
148
+ **Benefits:**
149
+
150
+ - **Free tier**: 1000 requests/day with Gemini 3 (mix of flash and pro)
151
+ - **Model selection**: Choose specific Gemini models
152
+ - **Usage-based billing**: Upgrade for higher limits when needed
153
+
154
+ ```bash
155
+ # Get your key from https://aistudio.google.com/apikey
156
+ export GEMINI_API_KEY="YOUR_API_KEY"
157
+ qodercli
158
+ ```
159
+
160
+ ### Option 3: Vertex AI
161
+
162
+ **✨ Best for:** Enterprise teams and production workloads
163
+
164
+ **Benefits:**
165
+
166
+ - **Enterprise features**: Advanced security and compliance
167
+ - **Scalable**: Higher rate limits with billing account
168
+ - **Integration**: Works with existing Google Cloud infrastructure
169
+
170
+ ```bash
171
+ # Get your key from Google Cloud Console
172
+ export GOOGLE_API_KEY="YOUR_API_KEY"
173
+ export GOOGLE_GENAI_USE_VERTEXAI=true
174
+ qodercli
175
+ ```
176
+
177
+ For Google Workspace accounts and other authentication methods, see the
178
+ [authentication guide](https://www.geminicli.com/docs/get-started/authentication).
179
+
180
+ ## 🚀 Getting Started
181
+
182
+ ### Basic Usage
183
+
184
+ #### Start in current directory
185
+
186
+ ```bash
187
+ qodercli
188
+ ```
189
+
190
+ #### Include multiple directories
191
+
192
+ ```bash
193
+ qodercli --include-directories ../lib,../docs
194
+ ```
195
+
196
+ #### Use specific model
197
+
198
+ ```bash
199
+ qodercli -m gemini-2.5-flash
200
+ ```
201
+
202
+ #### Non-interactive mode for scripts
203
+
204
+ Get a simple text response:
205
+
206
+ ```bash
207
+ qodercli -p "Explain the architecture of this codebase"
208
+ ```
209
+
210
+ For more advanced scripting, including how to parse JSON and handle errors, use
211
+ the `--output-format json` flag to get structured output:
212
+
213
+ ```bash
214
+ qodercli -p "Explain the architecture of this codebase" --output-format json
215
+ ```
216
+
217
+ For real-time event streaming (useful for monitoring long-running operations),
218
+ use `--output-format stream-json` to get newline-delimited JSON events:
219
+
220
+ ```bash
221
+ qodercli -p "Run tests and deploy" --output-format stream-json
222
+ ```
223
+
224
+ ### Quick Examples
225
+
226
+ #### Start a new project
227
+
228
+ ```bash
229
+ cd new-project/
230
+ qodercli
231
+ > Write me a Discord bot that answers questions using a FAQ.md file I will provide
232
+ ```
233
+
234
+ #### Analyze existing code
235
+
236
+ ```bash
237
+ git clone <repository-url>
238
+ cd qodercli
239
+ qodercli
240
+ > Give me a summary of all of the changes that went in yesterday
241
+ ```
242
+
243
+ ## 📚 Documentation
244
+
245
+ ### Getting Started
246
+
247
+ - [**Quickstart Guide**](https://www.geminicli.com/docs/get-started) - Get up
248
+ and running quickly.
249
+ - [**Authentication Setup**](https://www.geminicli.com/docs/get-started/authentication) -
250
+ Detailed auth configuration.
251
+ - [**Configuration Guide**](https://www.geminicli.com/docs/reference/configuration) -
252
+ Settings and customization.
253
+ - [**Keyboard Shortcuts**](https://www.geminicli.com/docs/reference/keyboard-shortcuts) -
254
+ Productivity tips.
255
+
256
+ ### Core Features
257
+
258
+ - [**Commands Reference**](https://www.geminicli.com/docs/reference/commands) -
259
+ All slash commands (`/help`, `/chat`, etc).
260
+ - [**Custom Commands**](https://www.geminicli.com/docs/cli/custom-commands) -
261
+ Create your own reusable commands.
262
+ - [**Context Files (GEMINI.md)**](https://www.geminicli.com/docs/cli/gemini-md) -
263
+ Provide persistent context to Gemini CLI.
264
+ - [**Checkpointing**](https://www.geminicli.com/docs/cli/checkpointing) - Save
265
+ and resume conversations.
266
+ - [**Token Caching**](https://www.geminicli.com/docs/cli/token-caching) -
267
+ Optimize token usage.
268
+
269
+ ### Tools & Extensions
270
+
271
+ - [**Built-in Tools Overview**](https://www.geminicli.com/docs/reference/tools)
272
+ - [File System Operations](https://www.geminicli.com/docs/tools/file-system)
273
+ - [Shell Commands](https://www.geminicli.com/docs/tools/shell)
274
+ - [Web Fetch & Search](https://www.geminicli.com/docs/tools/web-fetch)
275
+ - [**MCP Server Integration**](https://www.geminicli.com/docs/tools/mcp-server) -
276
+ Extend with custom tools.
277
+ - [**Custom Extensions**](https://geminicli.com/docs/extensions/writing-extensions) -
278
+ Build and share your own commands.
279
+
280
+ ### Advanced Topics
281
+
282
+ - [**Headless Mode (Scripting)**](https://www.geminicli.com/docs/cli/headless) -
283
+ Use Gemini CLI in automated workflows.
284
+ - [**IDE Integration**](https://www.geminicli.com/docs/ide-integration) - VS
285
+ Code companion.
286
+ - [**Sandboxing & Security**](https://www.geminicli.com/docs/cli/sandbox) - Safe
287
+ execution environments.
288
+ - [**Trusted Folders**](https://www.geminicli.com/docs/cli/trusted-folders) -
289
+ Control execution policies by folder.
290
+ - [**Enterprise Guide**](https://www.geminicli.com/docs/cli/enterprise) - Deploy
291
+ and manage in a corporate environment.
292
+ - [**Telemetry & Monitoring**](https://www.geminicli.com/docs/cli/telemetry) -
293
+ Usage tracking.
294
+ - [**Tools reference**](https://www.geminicli.com/docs/reference/tools) -
295
+ Built-in tools overview.
296
+ - [**Local development**](https://www.geminicli.com/docs/local-development) -
297
+ Local development tooling.
298
+
299
+ ### Troubleshooting & Support
300
+
301
+ - [**Troubleshooting Guide**](https://www.geminicli.com/docs/resources/troubleshooting) -
302
+ Common issues and solutions.
303
+ - [**FAQ**](https://www.geminicli.com/docs/resources/faq) - Frequently asked
304
+ questions.
305
+ - Use `/bug` command to report issues directly from the CLI.
306
+
307
+ ### Using MCP Servers
308
+
309
+ User-level settings live in `~/.qoder/settings.json` by default. Set
310
+ `QODER_CONFIG_DIR` to use a different complete config root:
311
+
312
+ ```bash
313
+ QODER_CONFIG_DIR=/tmp/qoder-dev qodercli
314
+ ```
315
+
316
+ That example reads settings from `/tmp/qoder-dev/settings.json`; it does not
317
+ append `.qoder` to the configured path.
318
+
319
+ Configure MCP servers in the user settings file to extend Gemini CLI with custom
320
+ tools:
321
+
322
+ ```text
323
+ > @slack Send a summary of today's commits to #dev channel
324
+ > @database Run a query to find inactive users
325
+ ```
326
+
327
+ See the
328
+ [MCP Server Integration guide](https://www.geminicli.com/docs/tools/mcp-server)
329
+ for setup instructions.
330
+
331
+ ## 🤝 Contributing
332
+
333
+ We welcome contributions! Gemini CLI is fully open source (Apache 2.0), and we
334
+ encourage the community to:
335
+
336
+ - Report bugs and suggest features.
337
+ - Improve documentation.
338
+ - Submit code improvements.
339
+ - Share your MCP servers and extensions.
340
+
341
+ See our [Contributing Guide](./CONTRIBUTING.md) for development setup, coding
342
+ standards, and how to submit pull requests.
343
+
344
+ ## 📖 Resources
345
+
346
+ - **[Official Roadmap](./ROADMAP.md)** - See what's coming next.
347
+ - **[Changelog](https://www.geminicli.com/docs/changelogs)** - See recent
348
+ notable updates.
349
+ - **[NPM Package](https://www.npmjs.com/package/@qoder-ai/qodercli)** - Package
350
+ registry.
351
+
352
+ ### Uninstall
353
+
354
+ See the [Uninstall Guide](https://www.geminicli.com/docs/resources/uninstall)
355
+ for removal instructions.
356
+
357
+ ## 📄 Legal
358
+
359
+ - **License**: [Apache License 2.0](LICENSE)
360
+ - **Terms of Service**:
361
+ [Terms & Privacy](https://www.geminicli.com/docs/resources/tos-privacy)
362
+ - **Security**: [Security Policy](SECURITY.md)
363
+
364
+ ---
365
+
366
+ <p align="center">
367
+ Built with ❤️ by Google and the open source community
368
+ </p>
package/bin/run.js ADDED
@@ -0,0 +1,57 @@
1
+ #!/usr/bin/env node
2
+ const { spawn } = require('child_process');
3
+ const path = require('path');
4
+ const fs = require('fs');
5
+
6
+ const platform = process.platform;
7
+ const arch = process.arch;
8
+ const target = `${platform}-${arch}`;
9
+ const pkgName = `@qoder-ai/qodercli-${target}`;
10
+
11
+ // 查找平台子包中的二进制
12
+ const BINARY_NAME = platform === 'win32' ? 'qodercli.exe' : 'qodercli';
13
+
14
+ // 尝试多种路径:
15
+ // 1. node_modules 中的子包(npm install 场景)
16
+ // 2. 同级目录(开发/调试场景)
17
+ const candidates = [
18
+ path.join(__dirname, '..', 'node_modules', pkgName, 'bin', BINARY_NAME),
19
+ path.join(__dirname, '..', '..', pkgName.split('/')[1], 'bin', BINARY_NAME),
20
+ path.join(__dirname, '..', '..', '..', 'node_modules', pkgName, 'bin', BINARY_NAME),
21
+ path.join(__dirname, target, BINARY_NAME),
22
+ ];
23
+
24
+ let binPath = null;
25
+ for (const p of candidates) {
26
+ if (fs.existsSync(p)) {
27
+ binPath = p;
28
+ break;
29
+ }
30
+ }
31
+
32
+ if (!binPath) {
33
+ console.error(`Error: Cannot find qodercli binary for your platform (${target})`);
34
+ console.error('');
35
+ console.error(`The platform-specific package "${pkgName}" does not appear to be installed.`);
36
+ console.error('');
37
+ console.error('This usually means:');
38
+ console.error(' 1. Your platform is not supported, or');
39
+ console.error(' 2. The optional dependency was not installed (try: npm install --include=optional)');
40
+ console.error('');
41
+ console.error('Supported platforms: darwin-arm64, darwin-x64, linux-x64, linux-arm64, win32-x64');
42
+ process.exit(1);
43
+ }
44
+
45
+ const child = spawn(binPath, process.argv.slice(2), {
46
+ stdio: 'inherit',
47
+ windowsHide: false,
48
+ });
49
+
50
+ child.on('close', (code) => {
51
+ process.exit(code !== null ? code : 1);
52
+ });
53
+
54
+ child.on('error', (error) => {
55
+ console.error('Failed to execute qodercli:', error.message);
56
+ process.exit(1);
57
+ });
package/package.json CHANGED
@@ -1,35 +1,17 @@
1
1
  {
2
2
  "name": "@qoder-ai/qodercli",
3
- "version": "0.2.2-beta.3",
4
- "description": "QoderCLI - AI-powered coding assistant for your terminal",
5
- "license": "Apache-2.0",
6
- "type": "module",
7
- "bin": {
8
- "qodercli": "bundle/qodercli.js"
9
- },
10
- "files": [
11
- "bundle/"
12
- ],
13
- "engines": {
14
- "node": ">=20.0.0"
15
- },
3
+ "version": "0.2.2-beta.6",
4
+ "description": "QoderCLI - AI-powered coding assistant",
5
+ "private": false,
6
+ "publishConfig": { "access": "public" },
7
+ "bin": { "qodercli": "./bin/run.js" },
8
+ "files": ["bin/", "README.md", "LICENSE"],
9
+ "engines": { "node": ">=14" },
16
10
  "optionalDependencies": {
17
- "keytar": "^7.9.0"
11
+ "@qoder-ai/qodercli-darwin-arm64": "0.2.2-beta.6"
18
12
  },
19
- "scripts": {
20
- "postinstall": "node bundle/postinstall.cjs"
21
- },
22
- "publishConfig": {
23
- "access": "public"
24
- },
25
- "keywords": [
26
- "qoder",
27
- "ai",
28
- "cli",
29
- "coding",
30
- "assistant",
31
- "terminal"
32
- ],
13
+ "keywords": ["qoder", "ai", "cli", "coding", "assistant", "terminal"],
33
14
  "author": "Qoder AI",
15
+ "license": "Apache-2.0",
34
16
  "homepage": "https://qoder.com"
35
- }
17
+ }
@@ -1,19 +0,0 @@
1
- [modes.plan]
2
- network = false
3
- readonly = true
4
- approvedTools = []
5
- allowOverrides = true
6
-
7
- [modes.default]
8
- network = false
9
- readonly = false
10
- approvedTools = ['cat', 'ls', 'grep', 'head', 'tail', 'less', 'Get-Content', 'dir', 'type', 'findstr', 'Get-ChildItem', 'echo']
11
- allowOverrides = true
12
-
13
- [modes.accepting_edits]
14
- network = false
15
- readonly = false
16
- approvedTools = ['sed', 'grep', 'awk', 'perl', 'cat', 'echo', 'Add-Content', 'Set-Content']
17
- allowOverrides = true
18
-
19
- [commands]