@google/gemini-cli 0.36.0-preview.7 → 0.37.0-preview.0
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.
- package/bundle/{chunk-NYCY3Q2B.js → chunk-3TN4SOLW.js} +6652 -4181
- package/bundle/{chunk-S2IQOR7T.js → chunk-7UZ4Y32N.js} +214 -66
- package/bundle/{chunk-2RCLDWUX.js → chunk-A62NZYIK.js} +8052 -2969
- package/bundle/{chunk-VA3P26WZ.js → chunk-LEK5YYAR.js} +6296 -4095
- package/bundle/{chunk-MYI75E6G.js → chunk-R5X4CMUM.js} +233 -70
- package/bundle/{chunk-EHC7O4TG.js → chunk-TJ76C6AA.js} +16848 -9497
- package/bundle/chunk-U4FACSVX.js +30 -0
- package/bundle/{chunk-APAYS2LE.js → chunk-ULC3DHVX.js} +8052 -2969
- package/bundle/{chunk-YTGZ6CSI.js → chunk-XX7JYMTE.js} +8106 -3035
- package/bundle/{core-BHH4RB6L.js → core-5OME6LT4.js} +58 -4
- package/bundle/{dist-SWQPYLLV.js → core-CUCGSGCA.js} +58 -4
- package/bundle/{devtoolsService-STAWBGOY.js → devtoolsService-4FIYD6OW.js} +20 -3
- package/bundle/{devtoolsService-GJALET3B.js → devtoolsService-IDLWLZFQ.js} +21 -5
- package/bundle/{devtoolsService-4QGIZO5B.js → devtoolsService-TVWW3DBW.js} +20 -3
- package/bundle/{dist-YOBWJF52.js → dist-YWCADMDD.js} +58 -4
- package/bundle/docs/CONTRIBUTING.md +10 -7
- package/bundle/docs/assets/theme-tokyonight-dark.png +0 -0
- package/bundle/docs/changelogs/index.md +24 -0
- package/bundle/docs/changelogs/latest.md +366 -459
- package/bundle/docs/changelogs/preview.md +362 -356
- package/bundle/docs/cli/acp-mode.md +126 -0
- package/bundle/docs/cli/cli-reference.md +1 -1
- package/bundle/docs/cli/notifications.md +5 -5
- package/bundle/docs/cli/plan-mode.md +12 -8
- package/bundle/docs/cli/sandbox.md +1 -1
- package/bundle/docs/cli/settings.md +14 -13
- package/bundle/docs/cli/themes.md +5 -0
- package/bundle/docs/core/index.md +2 -2
- package/bundle/docs/core/subagents.md +134 -23
- package/bundle/docs/get-started/gemini-3.md +1 -1
- package/bundle/docs/get-started/index.md +127 -1
- package/bundle/docs/ide-integration/index.md +99 -24
- package/bundle/docs/index.md +0 -2
- package/bundle/docs/redirects.json +1 -0
- package/bundle/docs/reference/commands.md +1 -3
- package/bundle/docs/reference/configuration.md +183 -92
- package/bundle/docs/reference/keyboard-shortcuts.md +14 -6
- package/bundle/docs/reference/policy-engine.md +16 -30
- package/bundle/docs/reference/tools.md +56 -23
- package/bundle/docs/resources/quota-and-pricing.md +23 -9
- package/bundle/docs/sidebar.json +11 -4
- package/bundle/docs/tools/planning.md +6 -4
- package/bundle/events-CLX3JQHP.js +12 -0
- package/bundle/gemini.js +342 -52
- package/bundle/{interactiveCli-YJFA3P4G.js → interactiveCli-4WFWOVAQ.js} +5079 -4022
- package/bundle/{interactiveCli-MEBWWWE7.js → interactiveCli-4ZZ72DR3.js} +5079 -4022
- package/bundle/{interactiveCli-B6Y3UISW.js → interactiveCli-6SIGBRWS.js} +5292 -4252
- package/bundle/{memoryDiscovery-BQGYT4OD.js → memoryDiscovery-NS2EGHYH.js} +3 -1
- package/bundle/{memoryDiscovery-FCEPFZ3M.js → memoryDiscovery-VL3OH25S.js} +3 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/client/main.js +26 -19
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.d.ts +1 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.js +1 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.js.map +1 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/index.js +35 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/index.js.map +1 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-TIKPJAVU.js → oauth2-provider-HGHECKPY.js} +2 -2
- package/bundle/{oauth2-provider-IGY3DL3D.js → oauth2-provider-TYBJKXSJ.js} +2 -2
- package/bundle/{oauth2-provider-DLPX23GY.js → oauth2-provider-YYRJ44X5.js} +73 -39
- package/bundle/policies/discovered.toml +7 -0
- package/bundle/policies/non-interactive.toml +7 -0
- package/bundle/policies/plan.toml +25 -0
- package/bundle/policies/read-only.toml +6 -0
- package/bundle/policies/sandbox-default.toml +3 -2
- package/bundle/policies/write.toml +21 -0
- package/bundle/policies/yolo.toml +1 -1
- package/package.json +1 -1
- package/bundle/chunk-GDBDMLKR.js +0 -354180
- package/bundle/chunk-QTVUHTZR.js +0 -93293
- package/bundle/devtoolsService-Q6LGZKTJ.js +0 -854
- package/bundle/dist-YHAAIIZP.js +0 -1886
- package/bundle/docs/get-started/examples.md +0 -141
- package/bundle/interactiveCli-HYY2W6AF.js +0 -49298
- package/bundle/oauth2-provider-MKUXMD5I.js +0 -237
|
@@ -86,12 +86,13 @@ available combinations.
|
|
|
86
86
|
|
|
87
87
|
#### Text Input
|
|
88
88
|
|
|
89
|
-
| Command | Action
|
|
90
|
-
| -------------------------- |
|
|
91
|
-
| `input.submit` | Submit the current prompt.
|
|
92
|
-
| `input.
|
|
93
|
-
| `input.
|
|
94
|
-
| `input.
|
|
89
|
+
| Command | Action | Keys |
|
|
90
|
+
| -------------------------- | ------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
|
|
91
|
+
| `input.submit` | Submit the current prompt. | `Enter` |
|
|
92
|
+
| `input.queueMessage` | Queue the current prompt to be processed after the current task finishes. | `Tab` |
|
|
93
|
+
| `input.newline` | Insert a newline without submitting. | `Ctrl+Enter`<br />`Cmd/Win+Enter`<br />`Alt+Enter`<br />`Shift+Enter`<br />`Ctrl+J` |
|
|
94
|
+
| `input.openExternalEditor` | Open the current prompt or the plan in an external editor. | `Ctrl+X` |
|
|
95
|
+
| `input.paste` | Paste from the clipboard. | `Ctrl+V`<br />`Cmd/Win+V`<br />`Alt+V` |
|
|
95
96
|
|
|
96
97
|
#### App Controls
|
|
97
98
|
|
|
@@ -126,6 +127,13 @@ available combinations.
|
|
|
126
127
|
| `background.unfocusList` | Move focus from background shell list to Gemini. | `Tab` |
|
|
127
128
|
| `background.unfocusWarning` | Show warning when trying to move focus away from background shell. | `Tab` |
|
|
128
129
|
|
|
130
|
+
#### Extension Controls
|
|
131
|
+
|
|
132
|
+
| Command | Action | Keys |
|
|
133
|
+
| ------------------ | ------------------------------------------- | ---- |
|
|
134
|
+
| `extension.update` | Update the current extension if available. | `I` |
|
|
135
|
+
| `extension.link` | Link the current extension to a local path. | `L` |
|
|
136
|
+
|
|
129
137
|
<!-- KEYBINDINGS-AUTOGEN:END -->
|
|
130
138
|
|
|
131
139
|
## Customizing Keybindings
|
|
@@ -29,13 +29,12 @@ To create your first policy:
|
|
|
29
29
|
```toml
|
|
30
30
|
[[rule]]
|
|
31
31
|
toolName = "run_shell_command"
|
|
32
|
-
commandPrefix = "
|
|
33
|
-
decision = "
|
|
32
|
+
commandPrefix = "rm -rf"
|
|
33
|
+
decision = "deny"
|
|
34
34
|
priority = 100
|
|
35
35
|
```
|
|
36
36
|
3. **Run a command** that triggers the policy (e.g., ask Gemini CLI to
|
|
37
|
-
`
|
|
38
|
-
confirmation.
|
|
37
|
+
`rm -rf /`). The tool will now be blocked automatically.
|
|
39
38
|
|
|
40
39
|
## Core concepts
|
|
41
40
|
|
|
@@ -143,25 +142,26 @@ engine transforms this into a final priority using the following formula:
|
|
|
143
142
|
|
|
144
143
|
This system guarantees that:
|
|
145
144
|
|
|
146
|
-
- Admin policies always override User, Workspace, and Default policies
|
|
145
|
+
- Admin policies always override User, Workspace, and Default policies (defined
|
|
146
|
+
in policy TOML files).
|
|
147
147
|
- User policies override Workspace and Default policies.
|
|
148
148
|
- Workspace policies override Default policies.
|
|
149
149
|
- You can still order rules within a single tier with fine-grained control.
|
|
150
150
|
|
|
151
151
|
For example:
|
|
152
152
|
|
|
153
|
-
- A `priority: 50` rule in a Default policy
|
|
154
|
-
- A `priority: 10` rule in a Workspace policy
|
|
155
|
-
- A `priority: 100` rule in a User policy
|
|
156
|
-
- A `priority: 20` rule in an Admin policy
|
|
153
|
+
- A `priority: 50` rule in a Default policy TOML becomes `1.050`.
|
|
154
|
+
- A `priority: 10` rule in a Workspace policy TOML becomes `2.010`.
|
|
155
|
+
- A `priority: 100` rule in a User policy TOML becomes `3.100`.
|
|
156
|
+
- A `priority: 20` rule in an Admin policy TOML becomes `4.020`.
|
|
157
157
|
|
|
158
158
|
### Approval modes
|
|
159
159
|
|
|
160
160
|
Approval modes allow the policy engine to apply different sets of rules based on
|
|
161
|
-
the CLI's operational mode. A rule can be associated with
|
|
162
|
-
(e.g., `yolo`, `autoEdit`, `plan`). The rule will only be
|
|
163
|
-
running in one of its specified modes. If a rule has no
|
|
164
|
-
always active.
|
|
161
|
+
the CLI's operational mode. A rule in a TOML policy file can be associated with
|
|
162
|
+
one or more modes (e.g., `yolo`, `autoEdit`, `plan`). The rule will only be
|
|
163
|
+
active if the CLI is running in one of its specified modes. If a rule has no
|
|
164
|
+
modes specified, it is always active.
|
|
165
165
|
|
|
166
166
|
- `default`: The standard interactive mode where most write tools require
|
|
167
167
|
confirmation.
|
|
@@ -179,8 +179,8 @@ outcome.
|
|
|
179
179
|
|
|
180
180
|
A rule matches a tool call if all of its conditions are met:
|
|
181
181
|
|
|
182
|
-
1. **Tool name**: The `toolName` in the rule must match the name of the
|
|
183
|
-
being called.
|
|
182
|
+
1. **Tool name**: The `toolName` in the TOML rule must match the name of the
|
|
183
|
+
tool being called.
|
|
184
184
|
- **Wildcards**: You can use wildcards like `*`, `mcp_server_*`, or
|
|
185
185
|
`mcp_*_toolName` to match multiple tools. See [Tool Name](#tool-name) for
|
|
186
186
|
details.
|
|
@@ -264,7 +264,7 @@ toolName = "run_shell_command"
|
|
|
264
264
|
|
|
265
265
|
# (Optional) The name of a subagent. If provided, the rule only applies to tool
|
|
266
266
|
# calls made by this specific subagent.
|
|
267
|
-
subagent = "
|
|
267
|
+
subagent = "codebase_investigator"
|
|
268
268
|
|
|
269
269
|
# (Optional) The name of an MCP server. Can be combined with toolName
|
|
270
270
|
# to form a composite FQN internally like "mcp_mcpName_toolName".
|
|
@@ -419,20 +419,6 @@ decision = "ask_user"
|
|
|
419
419
|
priority = 10
|
|
420
420
|
```
|
|
421
421
|
|
|
422
|
-
**4. Targeting a tool name across all servers**
|
|
423
|
-
|
|
424
|
-
Use `mcpName = "*"` with a specific `toolName` to target that operation
|
|
425
|
-
regardless of which server provides it.
|
|
426
|
-
|
|
427
|
-
```toml
|
|
428
|
-
# Allow the `search` tool across all connected MCP servers
|
|
429
|
-
[[rule]]
|
|
430
|
-
mcpName = "*"
|
|
431
|
-
toolName = "search"
|
|
432
|
-
decision = "allow"
|
|
433
|
-
priority = 50
|
|
434
|
-
```
|
|
435
|
-
|
|
436
422
|
## Default policies
|
|
437
423
|
|
|
438
424
|
The Gemini CLI ships with a set of default policies to provide a safe
|
|
@@ -63,29 +63,62 @@ details.
|
|
|
63
63
|
|
|
64
64
|
## Available tools
|
|
65
65
|
|
|
66
|
-
The following
|
|
67
|
-
function.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
|
73
|
-
|
|
|
74
|
-
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
|
79
|
-
|
|
|
80
|
-
|
|
|
81
|
-
|
|
|
82
|
-
|
|
|
83
|
-
|
|
|
84
|
-
|
|
|
85
|
-
|
|
|
86
|
-
|
|
|
87
|
-
|
|
88
|
-
|
|
66
|
+
The following sections list all available tools, categorized by their primary
|
|
67
|
+
function. For detailed parameter information, see the linked documentation for
|
|
68
|
+
each tool.
|
|
69
|
+
|
|
70
|
+
### Execution
|
|
71
|
+
|
|
72
|
+
| Tool | Kind | Description |
|
|
73
|
+
| :--------------------------------------- | :-------- | :----------------------------------------------------------------------------------------------------------------------- |
|
|
74
|
+
| [`run_shell_command`](../tools/shell.md) | `Execute` | Executes arbitrary shell commands. Supports interactive sessions and background processes. Requires manual confirmation. |
|
|
75
|
+
|
|
76
|
+
### File System
|
|
77
|
+
|
|
78
|
+
| Tool | Kind | Description |
|
|
79
|
+
| :------------------------------------------- | :------- | :---------------------------------------------------------------------------------------------------- |
|
|
80
|
+
| [`glob`](../tools/file-system.md) | `Search` | Finds files matching specific glob patterns across the workspace. |
|
|
81
|
+
| [`grep_search`](../tools/file-system.md) | `Search` | Searches for a regular expression pattern within file contents. Legacy alias: `search_file_content`. |
|
|
82
|
+
| [`list_directory`](../tools/file-system.md) | `Read` | Lists the names of files and subdirectories within a specified path. |
|
|
83
|
+
| [`read_file`](../tools/file-system.md) | `Read` | Reads the content of a specific file. Supports text, images, audio, and PDF. |
|
|
84
|
+
| [`read_many_files`](../tools/file-system.md) | `Read` | Reads and concatenates content from multiple files. Often triggered by the `@` symbol in your prompt. |
|
|
85
|
+
| [`replace`](../tools/file-system.md) | `Edit` | Performs precise text replacement within a file. Requires manual confirmation. |
|
|
86
|
+
| [`write_file`](../tools/file-system.md) | `Edit` | Creates or overwrites a file with new content. Requires manual confirmation. |
|
|
87
|
+
|
|
88
|
+
### Interaction
|
|
89
|
+
|
|
90
|
+
| Tool | Kind | Description |
|
|
91
|
+
| :--------------------------------- | :------------ | :------------------------------------------------------------------------------------- |
|
|
92
|
+
| [`ask_user`](../tools/ask-user.md) | `Communicate` | Requests clarification or missing information via an interactive dialog. |
|
|
93
|
+
| [`write_todos`](../tools/todos.md) | `Other` | Maintains an internal list of subtasks. The model uses this to track its own progress. |
|
|
94
|
+
|
|
95
|
+
### Memory
|
|
96
|
+
|
|
97
|
+
| Tool | Kind | Description |
|
|
98
|
+
| :----------------------------------------------- | :------ | :----------------------------------------------------------------------------------- |
|
|
99
|
+
| [`activate_skill`](../tools/activate-skill.md) | `Other` | Loads specialized procedural expertise from the `.gemini/skills` directory. |
|
|
100
|
+
| [`get_internal_docs`](../tools/internal-docs.md) | `Think` | Accesses Gemini CLI's own documentation for accurate answers about its capabilities. |
|
|
101
|
+
| [`save_memory`](../tools/memory.md) | `Think` | Persists specific facts and project details to your `GEMINI.md` file. |
|
|
102
|
+
|
|
103
|
+
### Planning
|
|
104
|
+
|
|
105
|
+
| Tool | Kind | Description |
|
|
106
|
+
| :---------------------------------------- | :----- | :--------------------------------------------------------------------------------------- |
|
|
107
|
+
| [`enter_plan_mode`](../tools/planning.md) | `Plan` | Switches the CLI to a safe, read-only "Plan Mode" for researching complex changes. |
|
|
108
|
+
| [`exit_plan_mode`](../tools/planning.md) | `Plan` | Finalizes a plan, presents it for review, and requests approval to start implementation. |
|
|
109
|
+
|
|
110
|
+
### System
|
|
111
|
+
|
|
112
|
+
| Tool | Kind | Description |
|
|
113
|
+
| :-------------- | :------ | :----------------------------------------------------------------------------------------------------------------- |
|
|
114
|
+
| `complete_task` | `Other` | Finalizes a subagent's mission and returns the result to the parent agent. This tool is not available to the user. |
|
|
115
|
+
|
|
116
|
+
### Web
|
|
117
|
+
|
|
118
|
+
| Tool | Kind | Description |
|
|
119
|
+
| :-------------------------------------------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
120
|
+
| [`google_web_search`](../tools/web-search.md) | `Search` | Performs a Google Search to find up-to-date information. |
|
|
121
|
+
| [`web_fetch`](../tools/web-fetch.md) | `Fetch` | Retrieves and processes content from specific URLs. **Warning:** This tool can access local and private network addresses (e.g., localhost), which may pose a security risk if used with untrusted prompts. |
|
|
89
122
|
|
|
90
123
|
## Under the hood
|
|
91
124
|
|
|
@@ -12,6 +12,21 @@ quota for your needs, see the [Plans page](https://geminicli.com/plans/).
|
|
|
12
12
|
This article outlines the specific quotas and pricing applicable to Gemini CLI
|
|
13
13
|
when using different authentication methods.
|
|
14
14
|
|
|
15
|
+
The following table summarizes the available quotas and their respective limits:
|
|
16
|
+
|
|
17
|
+
| Authentication method | Tier / Subscription | Maximum requests per user per day |
|
|
18
|
+
| :-------------------- | :------------------------------ | :-------------------------------- |
|
|
19
|
+
| **Google account** | Gemini Code Assist (Individual) | 1,000 requests |
|
|
20
|
+
| | Google AI Pro | 1,500 requests |
|
|
21
|
+
| | Google AI Ultra | 2,000 requests |
|
|
22
|
+
| **Gemini API key** | Free tier (Unpaid) | 250 requests |
|
|
23
|
+
| | Pay-as-you-go (Paid) | Varies |
|
|
24
|
+
| **Vertex AI** | Express mode (Free) | Varies |
|
|
25
|
+
| | Pay-as-you-go (Paid) | Varies |
|
|
26
|
+
| **Google Workspace** | Code Assist Standard | 1,500 requests |
|
|
27
|
+
| | Code Assist Enterprise | 2,000 requests |
|
|
28
|
+
| | Workspace AI Ultra | 2,000 requests |
|
|
29
|
+
|
|
15
30
|
Generally, there are three categories to choose from:
|
|
16
31
|
|
|
17
32
|
- Free Usage: Ideal for experimentation and light use.
|
|
@@ -20,6 +35,9 @@ Generally, there are three categories to choose from:
|
|
|
20
35
|
- Pay-As-You-Go: The most flexible option for professional use, long-running
|
|
21
36
|
tasks, or when you need full control over your usage.
|
|
22
37
|
|
|
38
|
+
Requests are limited per user per minute and are subject to the availability of
|
|
39
|
+
the service in times of high demand.
|
|
40
|
+
|
|
23
41
|
## Free usage
|
|
24
42
|
|
|
25
43
|
Access to Gemini CLI begins with a generous free tier, perfect for
|
|
@@ -33,8 +51,7 @@ authorization type.
|
|
|
33
51
|
For users who authenticate by using their Google account to access Gemini Code
|
|
34
52
|
Assist for individuals. This includes:
|
|
35
53
|
|
|
36
|
-
- 1000 model requests / user / day
|
|
37
|
-
- 60 model requests / user / minute
|
|
54
|
+
- 1000 maximum model requests / user / day
|
|
38
55
|
- Model requests will be made across the Gemini model family as determined by
|
|
39
56
|
Gemini CLI.
|
|
40
57
|
|
|
@@ -46,8 +63,7 @@ Learn more at
|
|
|
46
63
|
If you are using a Gemini API key, you can also benefit from a free tier. This
|
|
47
64
|
includes:
|
|
48
65
|
|
|
49
|
-
- 250 model requests / user / day
|
|
50
|
-
- 10 model requests / user / minute
|
|
66
|
+
- 250 maximum model requests / user / day
|
|
51
67
|
- Model requests to Flash model only.
|
|
52
68
|
|
|
53
69
|
Learn more at
|
|
@@ -59,7 +75,7 @@ Vertex AI offers an Express Mode without the need to enable billing. This
|
|
|
59
75
|
includes:
|
|
60
76
|
|
|
61
77
|
- 90 days before you need to enable billing.
|
|
62
|
-
- Quotas and models are
|
|
78
|
+
- Quotas and models are specific to your account and their limits vary.
|
|
63
79
|
|
|
64
80
|
Learn more at
|
|
65
81
|
[Vertex AI Express Mode Limits](https://cloud.google.com/vertex-ai/generative-ai/docs/start/express-mode/overview#quotas).
|
|
@@ -112,11 +128,9 @@ Standard/Plus and AI Expanded, are not supported._
|
|
|
112
128
|
|
|
113
129
|
This includes the following request limits:
|
|
114
130
|
- Gemini Code Assist Standard edition:
|
|
115
|
-
- 1500 model requests / user / day
|
|
116
|
-
- 120 model requests / user / minute
|
|
131
|
+
- 1500 maximum model requests / user / day
|
|
117
132
|
- Gemini Code Assist Enterprise edition:
|
|
118
|
-
- 2000 model requests / user / day
|
|
119
|
-
- 120 model requests / user / minute
|
|
133
|
+
- 2000 maximum model requests / user / day
|
|
120
134
|
- Model requests will be made across the Gemini model family as determined by
|
|
121
135
|
Gemini CLI.
|
|
122
136
|
|
package/bundle/docs/sidebar.json
CHANGED
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
"label": "Authentication",
|
|
13
13
|
"slug": "docs/get-started/authentication"
|
|
14
14
|
},
|
|
15
|
-
{ "label": "Examples", "slug": "docs/get-started/examples" },
|
|
16
15
|
{ "label": "CLI cheatsheet", "slug": "docs/cli/cli-reference" },
|
|
17
16
|
{
|
|
18
17
|
"label": "Gemini 3 on Gemini CLI",
|
|
@@ -112,7 +111,17 @@
|
|
|
112
111
|
{ "label": "Reference", "slug": "docs/hooks/reference" }
|
|
113
112
|
]
|
|
114
113
|
},
|
|
115
|
-
{
|
|
114
|
+
{
|
|
115
|
+
"label": "IDE integration",
|
|
116
|
+
"collapsed": true,
|
|
117
|
+
"items": [
|
|
118
|
+
{ "label": "Overview", "slug": "docs/ide-integration" },
|
|
119
|
+
{
|
|
120
|
+
"label": "Developer guide: ACP mode",
|
|
121
|
+
"slug": "docs/cli/acp-mode"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
116
125
|
{ "label": "MCP servers", "slug": "docs/tools/mcp-server" },
|
|
117
126
|
{ "label": "Model routing", "slug": "docs/cli/model-routing" },
|
|
118
127
|
{ "label": "Model selection", "slug": "docs/cli/model" },
|
|
@@ -129,12 +138,10 @@
|
|
|
129
138
|
{ "label": "Plan mode", "slug": "docs/cli/plan-mode" },
|
|
130
139
|
{
|
|
131
140
|
"label": "Subagents",
|
|
132
|
-
"badge": "🔬",
|
|
133
141
|
"slug": "docs/core/subagents"
|
|
134
142
|
},
|
|
135
143
|
{
|
|
136
144
|
"label": "Remote subagents",
|
|
137
|
-
"badge": "🔬",
|
|
138
145
|
"slug": "docs/core/remote-agents"
|
|
139
146
|
},
|
|
140
147
|
{ "label": "Rewind", "slug": "docs/cli/rewind" },
|
|
@@ -32,7 +32,9 @@ and planning.
|
|
|
32
32
|
## 2. `exit_plan_mode` (ExitPlanMode)
|
|
33
33
|
|
|
34
34
|
`exit_plan_mode` signals that the planning phase is complete. It presents the
|
|
35
|
-
finalized plan to the user and requests approval to start the
|
|
35
|
+
finalized plan to the user and requests formal approval to start the
|
|
36
|
+
implementation. The agent MUST reach an informal agreement with the user in the
|
|
37
|
+
chat regarding the proposed strategy BEFORE calling this tool.
|
|
36
38
|
|
|
37
39
|
- **Tool name:** `exit_plan_mode`
|
|
38
40
|
- **Display name:** Exit Plan Mode
|
|
@@ -44,7 +46,7 @@ finalized plan to the user and requests approval to start the implementation.
|
|
|
44
46
|
- **Behavior:**
|
|
45
47
|
- Validates that the `plan_path` is within the allowed directory and that the
|
|
46
48
|
file exists and has content.
|
|
47
|
-
- Presents the plan to the user for review.
|
|
49
|
+
- Presents the plan to the user for formal review.
|
|
48
50
|
- If the user approves the plan:
|
|
49
51
|
- Switches the CLI's approval mode to the user's chosen approval mode (
|
|
50
52
|
`DEFAULT` or `AUTO_EDIT`).
|
|
@@ -56,5 +58,5 @@ finalized plan to the user and requests approval to start the implementation.
|
|
|
56
58
|
- On approval: A message indicating the plan was approved and the new approval
|
|
57
59
|
mode.
|
|
58
60
|
- On rejection: A message containing the user's feedback.
|
|
59
|
-
- **Confirmation:** Yes. Shows the finalized plan and asks for user
|
|
60
|
-
proceed with implementation.
|
|
61
|
+
- **Confirmation:** Yes. Shows the finalized plan and asks for user formal
|
|
62
|
+
approval to proceed with implementation.
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
import {
|
|
3
|
+
AppEvent,
|
|
4
|
+
TransientMessageType,
|
|
5
|
+
appEvents
|
|
6
|
+
} from "./chunk-U4FACSVX.js";
|
|
7
|
+
import "./chunk-34MYV7JD.js";
|
|
8
|
+
export {
|
|
9
|
+
AppEvent,
|
|
10
|
+
TransientMessageType,
|
|
11
|
+
appEvents
|
|
12
|
+
};
|