@google/gemini-cli-core 0.70.0-preview.0 → 0.71.0-nightly.20261120.gd4cb1713f
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/dist/docs/changelogs/index.md +46 -0
- package/dist/docs/changelogs/latest.md +82 -100
- package/dist/docs/changelogs/preview.md +82 -115
- package/dist/google-gemini-cli-core-0.71.0-nightly.20261118.g615d6bc8c.tgz +0 -0
- package/dist/src/confirmation-bus/types.d.ts +1 -0
- package/dist/src/confirmation-bus/types.js.map +1 -1
- package/dist/src/generated/git-commit.d.ts +2 -2
- package/dist/src/generated/git-commit.js +2 -2
- package/dist/src/generated/git-commit.js.map +1 -1
- package/dist/src/policy/policy-engine.d.ts +1 -0
- package/dist/src/policy/policy-engine.js +15 -6
- package/dist/src/policy/policy-engine.js.map +1 -1
- package/dist/src/sandbox/utils/commandUtils.js +35 -25
- package/dist/src/sandbox/utils/commandUtils.js.map +1 -1
- package/dist/src/sandbox/windows/WindowsSandboxManager.d.ts +1 -0
- package/dist/src/sandbox/windows/WindowsSandboxManager.js +9 -2
- package/dist/src/sandbox/windows/WindowsSandboxManager.js.map +1 -1
- package/dist/src/sandbox/windows/commandSafety.js +4 -2
- package/dist/src/sandbox/windows/commandSafety.js.map +1 -1
- package/dist/src/scheduler/policy.js +6 -0
- package/dist/src/scheduler/policy.js.map +1 -1
- package/dist/src/scheduler/scheduler.js +79 -59
- package/dist/src/scheduler/scheduler.js.map +1 -1
- package/dist/src/services/fileDiscoveryService.test.js +15 -0
- package/dist/src/services/fileDiscoveryService.test.js.map +1 -1
- package/dist/src/tools/shell-powershell-parsing.integration.test.d.ts +6 -0
- package/dist/src/tools/shell-powershell-parsing.integration.test.js +576 -0
- package/dist/src/tools/shell-powershell-parsing.integration.test.js.map +1 -0
- package/dist/src/tools/shell.d.ts +6 -1
- package/dist/src/tools/shell.js +281 -189
- package/dist/src/tools/shell.js.map +1 -1
- package/dist/src/tools/tools.d.ts +1 -0
- package/dist/src/tools/tools.js.map +1 -1
- package/dist/src/utils/gitIgnoreParser.js +33 -1
- package/dist/src/utils/gitIgnoreParser.js.map +1 -1
- package/dist/src/utils/gitIgnoreParser.test.js +32 -0
- package/dist/src/utils/gitIgnoreParser.test.js.map +1 -1
- package/dist/src/utils/ignorePathUtils.d.ts +1 -1
- package/dist/src/utils/ignorePathUtils.js +3 -2
- package/dist/src/utils/ignorePathUtils.js.map +1 -1
- package/dist/src/utils/ignorePathUtils.test.js +8 -0
- package/dist/src/utils/ignorePathUtils.test.js.map +1 -1
- package/dist/src/utils/shell-parse-cache.d.ts +37 -0
- package/dist/src/utils/shell-parse-cache.js +55 -0
- package/dist/src/utils/shell-parse-cache.js.map +1 -0
- package/dist/src/utils/shell-parse-cache.test.d.ts +6 -0
- package/dist/src/utils/shell-parse-cache.test.js +478 -0
- package/dist/src/utils/shell-parse-cache.test.js.map +1 -0
- package/dist/src/utils/shell-utils.d.ts +27 -29
- package/dist/src/utils/shell-utils.js +385 -89
- package/dist/src/utils/shell-utils.js.map +1 -1
- package/dist/src/utils/untrustedContextTracker.d.ts +2 -6
- package/dist/src/utils/untrustedContextTracker.js +65 -27
- package/dist/src/utils/untrustedContextTracker.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -18,6 +18,52 @@ on GitHub.
|
|
|
18
18
|
| [Preview](preview.md) | Experimental features ready for early feedback. |
|
|
19
19
|
| [Stable](latest.md) | Stable, recommended for general use. |
|
|
20
20
|
|
|
21
|
+
## Announcements: v0.70.0 - 2026-11-19
|
|
22
|
+
|
|
23
|
+
- **Policy Engine Hardening & Shell Safety:** Evaluated policy regex patterns
|
|
24
|
+
with re2js for linear-time evaluation and matched prefix and regex rules
|
|
25
|
+
against top-level command arguments
|
|
26
|
+
([#30282](https://github.com/google-gemini/gemini-cli/pull/30282) by
|
|
27
|
+
@diegogodinezr,
|
|
28
|
+
[#30355](https://github.com/google-gemini/gemini-cli/pull/30355) by
|
|
29
|
+
@luisfelipe-alt).
|
|
30
|
+
- **System MCP & IDE Security Isolation:** Skipped system MCP servers with
|
|
31
|
+
insecure command permissions and isolated IDE companion discovery using
|
|
32
|
+
per-user directories with atomic port writes
|
|
33
|
+
([#30283](https://github.com/google-gemini/gemini-cli/pull/30283) by
|
|
34
|
+
@elberthc-byte,
|
|
35
|
+
[#30340](https://github.com/google-gemini/gemini-cli/pull/30340) by
|
|
36
|
+
@villahernandez-coder).
|
|
37
|
+
- **Model Token Limits & HTTP Timeout Scaling:** Reported accurate output token
|
|
38
|
+
limits in model listings and dynamically scaled HTTP client body timeouts for
|
|
39
|
+
long-running requests
|
|
40
|
+
([#30253](https://github.com/google-gemini/gemini-cli/pull/30253) by
|
|
41
|
+
@tadipavan, [#30258](https://github.com/google-gemini/gemini-cli/pull/30258)
|
|
42
|
+
by @tadipavan).
|
|
43
|
+
|
|
44
|
+
## Announcements: v0.69.0 - 2026-11-19
|
|
45
|
+
|
|
46
|
+
- **Daily Token Heatmap & Custom Themes:** Added a `/stats heatmap` subcommand
|
|
47
|
+
for daily token usage analysis and supported standalone `theme.json`
|
|
48
|
+
configurations for custom themes
|
|
49
|
+
([#30135](https://github.com/google-gemini/gemini-cli/pull/30135) by
|
|
50
|
+
@jvargassanchez-dot,
|
|
51
|
+
[#30119](https://github.com/google-gemini/gemini-cli/pull/30119) by
|
|
52
|
+
@jesussamuel-byte).
|
|
53
|
+
- **API Timeout Overrides & Network Resilience:** Enabled custom API header
|
|
54
|
+
timeout configuration across all authentication modes and prevented silent
|
|
55
|
+
loading hangs during network failures
|
|
56
|
+
([#30183](https://github.com/google-gemini/gemini-cli/pull/30183) by
|
|
57
|
+
@jesussamuel-byte,
|
|
58
|
+
[#30182](https://github.com/google-gemini/gemini-cli/pull/30182) by
|
|
59
|
+
@villahernandez-coder).
|
|
60
|
+
- **Multimodal Memory & Sandbox Hardening:** Bounded multi-part tool outputs to
|
|
61
|
+
evict older inline data and resolved folder trust before entering macOS
|
|
62
|
+
Seatbelt sandboxes
|
|
63
|
+
([#30180](https://github.com/google-gemini/gemini-cli/pull/30180) by
|
|
64
|
+
@tadipavan, [#30164](https://github.com/google-gemini/gemini-cli/pull/30164)
|
|
65
|
+
by @diegogodinezr).
|
|
66
|
+
|
|
21
67
|
## Announcements: v0.68.0 - 2026-11-10
|
|
22
68
|
|
|
23
69
|
- **Extension Validation & Install Safety:** Added an extension validation
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Latest stable release: v0.
|
|
1
|
+
# Latest stable release: v0.70.0
|
|
2
2
|
|
|
3
|
-
Released: November
|
|
3
|
+
Released: November 19, 2026
|
|
4
4
|
|
|
5
5
|
For most users, our latest stable release is the recommended release. Install
|
|
6
6
|
the latest stable version with:
|
|
@@ -11,109 +11,91 @@ npm install -g @google/gemini-cli
|
|
|
11
11
|
|
|
12
12
|
## Highlights
|
|
13
13
|
|
|
14
|
-
- **
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
- **
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
- **Policy Engine Hardening**: Evaluated policy regex patterns using `re2js` for
|
|
15
|
+
linear-time matching against ReDoS vulnerabilities, matched `commandPrefix`
|
|
16
|
+
and `commandRegex` rules strictly against top-level command arguments, and
|
|
17
|
+
enforced user confirmation for shell commands with unresolved variable
|
|
18
|
+
expansions.
|
|
19
|
+
- **MCP & IDE Security Isolation**: Enforced security permission checks to skip
|
|
20
|
+
system MCP servers with insecure command permissions, isolated IDE companion
|
|
21
|
+
discovery using per-user directories and atomic port file writes, and
|
|
22
|
+
disclosed canonical link targets in consent prompts.
|
|
23
|
+
- **Model Listing & Network Resilience**: Accurately reported output token
|
|
24
|
+
limits and initialized authentication capabilities when listing models, and
|
|
25
|
+
dynamically scaled HTTP client body timeouts when request timeouts exceed the
|
|
26
|
+
default 300 seconds.
|
|
27
|
+
- **Session & Workspace State Preservation**: Preserved Unicode characters and
|
|
28
|
+
stripped ANSI escape fragments in session previews, maintained selected git
|
|
29
|
+
worktrees across authentication restarts, and safely restored workspace
|
|
30
|
+
directories only upon successful chat resumption.
|
|
27
31
|
|
|
28
32
|
## What's Changed
|
|
29
33
|
|
|
30
|
-
- Changelog for v0.
|
|
31
|
-
[#
|
|
32
|
-
- Changelog for v0.
|
|
33
|
-
[#
|
|
34
|
-
-
|
|
35
|
-
@
|
|
36
|
-
[#
|
|
37
|
-
-
|
|
38
|
-
@
|
|
39
|
-
[#
|
|
40
|
-
- fix(
|
|
41
|
-
@
|
|
42
|
-
[#
|
|
43
|
-
- fix(
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
[#29998](https://github.com/google-gemini/gemini-cli/pull/29998)
|
|
59
|
-
- fix(core,cli): fix instances of incorrect \n escape behavior by @ugorla-dev in
|
|
60
|
-
[#29989](https://github.com/google-gemini/gemini-cli/pull/29989)
|
|
61
|
-
- fix(core): use PowerShell CIM fallback for Windows IDE process lookup by
|
|
62
|
-
@tadipavan in [#30006](https://github.com/google-gemini/gemini-cli/pull/30006)
|
|
63
|
-
- fix(cli): surface 429 rate limit cool-down and countdown in loading indicator
|
|
64
|
-
by @urielefrenvirtusa in
|
|
65
|
-
[#30012](https://github.com/google-gemini/gemini-cli/pull/30012)
|
|
66
|
-
- fix(cli): anchor .git suffix removal to end of repo URL by @diegogodinezr in
|
|
67
|
-
[#30013](https://github.com/google-gemini/gemini-cli/pull/30013)
|
|
68
|
-
- fix(ci,sdk): run SDK tests in PR CI and fix AgentLoopContext mock in
|
|
69
|
-
session.test.ts by @duvanka-prasad in
|
|
70
|
-
[#30023](https://github.com/google-gemini/gemini-cli/pull/30023)
|
|
71
|
-
- fix(core): prevent $-pattern corruption in LLM prompt templates by
|
|
72
|
-
@duvanka-prasad in
|
|
73
|
-
[#30035](https://github.com/google-gemini/gemini-cli/pull/30035)
|
|
74
|
-
- fix(cli): Fixes unexpected truncation and toggle behavior in Expandab… by
|
|
75
|
-
@tadipavan in [#29965](https://github.com/google-gemini/gemini-cli/pull/29965)
|
|
76
|
-
- refactor(cli): decouple ToolGroupMessage from internal type guards and payload
|
|
77
|
-
structures by @ugorla-dev in
|
|
78
|
-
[#30041](https://github.com/google-gemini/gemini-cli/pull/30041)
|
|
79
|
-
- fix(core): gate background log stream initialization on execution lifecycle
|
|
80
|
-
transition by @jesussamuel-byte in
|
|
81
|
-
[#30031](https://github.com/google-gemini/gemini-cli/pull/30031)
|
|
82
|
-
- fix(core): honor .git/info/exclude and core.excludesFile in shadow repo by
|
|
34
|
+
- Changelog for v0.69.0-preview.0 by @gemini-cli-robot in
|
|
35
|
+
[#30222](https://github.com/google-gemini/gemini-cli/pull/30222)
|
|
36
|
+
- Changelog for v0.68.0 by @gemini-cli-robot in
|
|
37
|
+
[#30224](https://github.com/google-gemini/gemini-cli/pull/30224)
|
|
38
|
+
- chore(release): bump version to 0.70.0-nightly.20261110.g1603e9bab by
|
|
39
|
+
@gemini-cli-robot in
|
|
40
|
+
[#30223](https://github.com/google-gemini/gemini-cli/pull/30223)
|
|
41
|
+
- test(cli): remove redundant lowercase restart test in
|
|
42
|
+
AdminSettingsChangedDialog by @luisfelipe-alt in
|
|
43
|
+
[#30221](https://github.com/google-gemini/gemini-cli/pull/30221)
|
|
44
|
+
- fix(cli): preserve Unicode prompts and strip ANSI fragments in session
|
|
45
|
+
previews (#29915) by @urielefrenvirtusa in
|
|
46
|
+
[#30220](https://github.com/google-gemini/gemini-cli/pull/30220)
|
|
47
|
+
- fix(cli): preserve selected worktree across authentication restarts (#30078)
|
|
48
|
+
by @duvanka-prasad in
|
|
49
|
+
[#30176](https://github.com/google-gemini/gemini-cli/pull/30176)
|
|
50
|
+
- fix(core): preserve interrupted placeholder after empty model responses to
|
|
51
|
+
tool turns by @tadipavan in
|
|
52
|
+
[#30228](https://github.com/google-gemini/gemini-cli/pull/30228)
|
|
53
|
+
- fix(cli): apply default in ${VAR:-default} when variable is set but empty by
|
|
54
|
+
@urielefrenvirtusa in
|
|
55
|
+
[#30250](https://github.com/google-gemini/gemini-cli/pull/30250)
|
|
56
|
+
- fix(core): scale undici bodyTimeout when request timeout exceeds 300s default
|
|
57
|
+
by @tadipavan in
|
|
58
|
+
[#30258](https://github.com/google-gemini/gemini-cli/pull/30258)
|
|
59
|
+
- fix(core,cli): report accurate output token limits in models list by
|
|
60
|
+
@tadipavan in [#30253](https://github.com/google-gemini/gemini-cli/pull/30253)
|
|
61
|
+
- fix(cli): restore workspace directories only after resumeChat succeeds by
|
|
83
62
|
@urielefrenvirtusa in
|
|
84
|
-
[#
|
|
85
|
-
- fix(core):
|
|
86
|
-
@tadipavan in
|
|
87
|
-
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
-
|
|
94
|
-
|
|
95
|
-
|
|
63
|
+
[#30259](https://github.com/google-gemini/gemini-cli/pull/30259)
|
|
64
|
+
- fix(core,cli): scope foreground retry status to active main prompt and current
|
|
65
|
+
model policy by @tadipavan in
|
|
66
|
+
[#30266](https://github.com/google-gemini/gemini-cli/pull/30266)
|
|
67
|
+
- fix(cli): initialize auth capabilities and deduplicate options when listing
|
|
68
|
+
models by @tadipavan in
|
|
69
|
+
[#30271](https://github.com/google-gemini/gemini-cli/pull/30271)
|
|
70
|
+
- fix(cli): skip system MCP servers with insecure command permissions by
|
|
71
|
+
@elberthc-byte in
|
|
72
|
+
[#30283](https://github.com/google-gemini/gemini-cli/pull/30283)
|
|
73
|
+
- refactor(core): use re2js for linear-time policy argsPattern evaluation by
|
|
74
|
+
@diegogodinezr in
|
|
75
|
+
[#30282](https://github.com/google-gemini/gemini-cli/pull/30282)
|
|
76
|
+
- chore(deps): update workspace dependencies and sandbox runtime packages by
|
|
77
|
+
@DavidAPierce in
|
|
78
|
+
[#30321](https://github.com/google-gemini/gemini-cli/pull/30321)
|
|
79
|
+
- fix(cli): disclose canonical link path and default consent prompt to no by
|
|
80
|
+
@jvargassanchez-dot in
|
|
81
|
+
[#30289](https://github.com/google-gemini/gemini-cli/pull/30289)
|
|
82
|
+
- fix(cli): detect local git clone from CLI path instead of cwd by @tadipavan in
|
|
83
|
+
[#30315](https://github.com/google-gemini/gemini-cli/pull/30315)
|
|
84
|
+
- fix(ide): use per-user discovery directory and atomic port file writes by
|
|
96
85
|
@villahernandez-coder in
|
|
97
|
-
[#
|
|
98
|
-
-
|
|
99
|
-
rewind by @villahernandez-coder in
|
|
100
|
-
[#30059](https://github.com/google-gemini/gemini-cli/pull/30059)
|
|
101
|
-
- fix(core): prevent interrupted Whisper model downloads from being treated as
|
|
102
|
-
installed by @tadipavan in
|
|
103
|
-
[#30058](https://github.com/google-gemini/gemini-cli/pull/30058)
|
|
104
|
-
- fix(cli): handle stream failures during extension release downloads by
|
|
105
|
-
@duvanka-prasad in
|
|
106
|
-
[#30100](https://github.com/google-gemini/gemini-cli/pull/30100)
|
|
107
|
-
- fix(core): preserve explicit gemini-2.5-flash model in dynamic model
|
|
108
|
-
resolution by @jesussamuel-byte in
|
|
109
|
-
[#30057](https://github.com/google-gemini/gemini-cli/pull/30057)
|
|
110
|
-
- fix(hooks): support SubagentStop event mapping and merge hook definitions by
|
|
86
|
+
[#30340](https://github.com/google-gemini/gemini-cli/pull/30340)
|
|
87
|
+
- ci: pre-pull triage image and clear Docker login in dedup workflows by
|
|
111
88
|
@diegogodinezr in
|
|
112
|
-
[#
|
|
113
|
-
- fix(
|
|
114
|
-
@
|
|
115
|
-
-
|
|
116
|
-
|
|
89
|
+
[#30342](https://github.com/google-gemini/gemini-cli/pull/30342)
|
|
90
|
+
- fix(core): keep ASK_USER for shell commands with unresolved expansion by
|
|
91
|
+
@luisfelipe-alt in
|
|
92
|
+
[#30338](https://github.com/google-gemini/gemini-cli/pull/30338)
|
|
93
|
+
- fix(core): match commandPrefix and commandRegex rules against the top-level
|
|
94
|
+
command argument by @luisfelipe-alt in
|
|
95
|
+
[#30355](https://github.com/google-gemini/gemini-cli/pull/30355)
|
|
96
|
+
- chore(deps): adjust workspace dependency pins and update simple-git by
|
|
97
|
+
@DavidAPierce in
|
|
98
|
+
[#30356](https://github.com/google-gemini/gemini-cli/pull/30356)
|
|
117
99
|
|
|
118
100
|
**Full Changelog**:
|
|
119
|
-
https://github.com/google-gemini/gemini-cli/compare/v0.
|
|
101
|
+
https://github.com/google-gemini/gemini-cli/compare/v0.69.0...v0.70.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Preview release: v0.
|
|
1
|
+
# Preview release: v0.70.0-preview.0
|
|
2
2
|
|
|
3
|
-
Released: November
|
|
3
|
+
Released: November 19, 2026
|
|
4
4
|
|
|
5
5
|
Our preview release includes the latest, new, and experimental features. This
|
|
6
6
|
release may not be as stable as our [latest weekly release](latest.md).
|
|
@@ -13,127 +13,94 @@ npm install -g @google/gemini-cli@preview
|
|
|
13
13
|
|
|
14
14
|
## Highlights
|
|
15
15
|
|
|
16
|
-
- **
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
responses while preventing empty signature-only turns.
|
|
16
|
+
- **Security and Policy Safeguards**: Integrated linear-time regular expression
|
|
17
|
+
evaluation with `re2js` for policy argument patterns, required user consent
|
|
18
|
+
for shell commands with unresolved variable expansion, matched top-level
|
|
19
|
+
command arguments against prefix and regex rules, and skipped system MCP
|
|
20
|
+
servers with insecure command permissions.
|
|
21
|
+
- **Session Continuity and Terminal Previews**: Preserved Unicode prompts and
|
|
22
|
+
stripped ANSI escape fragments in session previews, retained selected git
|
|
23
|
+
worktrees across authentication restarts, ensured workspace directories are
|
|
24
|
+
restored only after resuming chat succeeds, and preserved interrupted turn
|
|
25
|
+
placeholders during tool execution.
|
|
26
|
+
- **Model Listing and Timeout Management**: Dynamically scaled HTTP body
|
|
27
|
+
timeouts when request timeouts exceed the default 300 seconds, reported
|
|
28
|
+
accurate output token limits in the models list, deduplicated options and
|
|
29
|
+
initialized authentication capabilities, and scoped foreground retry status to
|
|
30
|
+
the active main prompt and model policy.
|
|
31
|
+
- **IDE Companion and Environment Detection**: Isolated IDE discovery files in
|
|
32
|
+
per-user directories with atomic port file writes, detected local git clones
|
|
33
|
+
from the CLI path rather than the current working directory, and honored
|
|
34
|
+
default values in `${VAR:-default}` expansions when variables are set but
|
|
35
|
+
empty.
|
|
37
36
|
|
|
38
37
|
## What's Changed
|
|
39
38
|
|
|
40
|
-
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
[#30135](https://github.com/google-gemini/gemini-cli/pull/30135)
|
|
46
|
-
- fix(core): prevent **GCLI_EXPAND_TARGET** env collision in expandEnvVars by
|
|
47
|
-
@villahernandez-coder in
|
|
48
|
-
[#30138](https://github.com/google-gemini/gemini-cli/pull/30138)
|
|
49
|
-
- chore(release): bump version to 0.69.0-nightly.20261104.g89e9d25d6 by
|
|
39
|
+
- Changelog for v0.69.0-preview.0 by @gemini-cli-robot in
|
|
40
|
+
[#30222](https://github.com/google-gemini/gemini-cli/pull/30222)
|
|
41
|
+
- Changelog for v0.68.0 by @gemini-cli-robot in
|
|
42
|
+
[#30224](https://github.com/google-gemini/gemini-cli/pull/30224)
|
|
43
|
+
- chore(release): bump version to 0.70.0-nightly.20261110.g1603e9bab by
|
|
50
44
|
@gemini-cli-robot in
|
|
51
|
-
[#
|
|
52
|
-
-
|
|
53
|
-
@
|
|
54
|
-
[#
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
-
|
|
67
|
-
|
|
68
|
-
[#30153](https://github.com/google-gemini/gemini-cli/pull/30153)
|
|
69
|
-
- fix(cli): wait for piped stdin EOF and avoid destroying process.stdin by
|
|
70
|
-
@villahernandez-coder in
|
|
71
|
-
[#30163](https://github.com/google-gemini/gemini-cli/pull/30163)
|
|
72
|
-
- fix(cli): preserve pending tool confirmation when escaping editor selection by
|
|
73
|
-
@jvargassanchez-dot in
|
|
74
|
-
[#30147](https://github.com/google-gemini/gemini-cli/pull/30147)
|
|
75
|
-
- feat(cli): support standalone theme.json configuration for custom themes by
|
|
76
|
-
@jesussamuel-byte in
|
|
77
|
-
[#30119](https://github.com/google-gemini/gemini-cli/pull/30119)
|
|
78
|
-
- fix(cli): normalize error payloads in headless CLI formatting by
|
|
79
|
-
@jvargassanchez-dot in
|
|
80
|
-
[#30117](https://github.com/google-gemini/gemini-cli/pull/30117)
|
|
81
|
-
- fix(core): require path-separator boundary in tildeifyPath by
|
|
82
|
-
@villahernandez-coder in
|
|
83
|
-
[#30124](https://github.com/google-gemini/gemini-cli/pull/30124)
|
|
84
|
-
- fix(cli): validate model names and support direct arguments in /model command
|
|
85
|
-
by @jesussamuel-byte in
|
|
86
|
-
[#30137](https://github.com/google-gemini/gemini-cli/pull/30137)
|
|
87
|
-
- fix(cli): handle file watcher errors and permit FSEvents in macOS permissive
|
|
88
|
-
sandbox by @diegogodinezr in
|
|
89
|
-
[#30143](https://github.com/google-gemini/gemini-cli/pull/30143)
|
|
90
|
-
- fix(core): bound multi-part tool outputs and evict older multimodal inlineData
|
|
45
|
+
[#30223](https://github.com/google-gemini/gemini-cli/pull/30223)
|
|
46
|
+
- test(cli): remove redundant lowercase restart test in
|
|
47
|
+
AdminSettingsChangedDialog by @luisfelipe-alt in
|
|
48
|
+
[#30221](https://github.com/google-gemini/gemini-cli/pull/30221)
|
|
49
|
+
- fix(cli): preserve Unicode prompts and strip ANSI fragments in session
|
|
50
|
+
previews (#29915) by @urielefrenvirtusa in
|
|
51
|
+
[#30220](https://github.com/google-gemini/gemini-cli/pull/30220)
|
|
52
|
+
- fix(cli): preserve selected worktree across authentication restarts (#30078)
|
|
53
|
+
by @duvanka-prasad in
|
|
54
|
+
[#30176](https://github.com/google-gemini/gemini-cli/pull/30176)
|
|
55
|
+
- fix(core): preserve interrupted placeholder after empty model responses to
|
|
56
|
+
tool turns by @tadipavan in
|
|
57
|
+
[#30228](https://github.com/google-gemini/gemini-cli/pull/30228)
|
|
58
|
+
- fix(cli): apply default in ${VAR:-default} when variable is set but empty by
|
|
59
|
+
@urielefrenvirtusa in
|
|
60
|
+
[#30250](https://github.com/google-gemini/gemini-cli/pull/30250)
|
|
61
|
+
- fix(core): scale undici bodyTimeout when request timeout exceeds 300s default
|
|
91
62
|
by @tadipavan in
|
|
92
|
-
[#
|
|
93
|
-
- fix(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
- fix(acp): handle mid-stream retries to prevent text concatenation by
|
|
63
|
+
[#30258](https://github.com/google-gemini/gemini-cli/pull/30258)
|
|
64
|
+
- fix(core,cli): report accurate output token limits in models list by
|
|
65
|
+
@tadipavan in [#30253](https://github.com/google-gemini/gemini-cli/pull/30253)
|
|
66
|
+
- fix(cli): restore workspace directories only after resumeChat succeeds by
|
|
97
67
|
@urielefrenvirtusa in
|
|
98
|
-
[#
|
|
99
|
-
- fix(core,cli):
|
|
100
|
-
by @
|
|
101
|
-
[#
|
|
102
|
-
- fix(
|
|
103
|
-
|
|
104
|
-
[#
|
|
105
|
-
- fix(
|
|
106
|
-
|
|
107
|
-
[#
|
|
108
|
-
-
|
|
109
|
-
@ugorla-dev in
|
|
110
|
-
[#30184](https://github.com/google-gemini/gemini-cli/pull/30184)
|
|
111
|
-
- fix(core,cli): allow overriding 60s API headers timeout across all auth modes
|
|
112
|
-
(`model.requestTimeoutMs` / `GEMINI_API_HEADERS_TIMEOUT_MS`) by
|
|
113
|
-
@jesussamuel-byte in
|
|
114
|
-
[#30183](https://github.com/google-gemini/gemini-cli/pull/30183)
|
|
115
|
-
- fix(cli): use isSubpath for theme file home-directory check by @duvanka-prasad
|
|
116
|
-
in [#30160](https://github.com/google-gemini/gemini-cli/pull/30160)
|
|
117
|
-
- fix(cli): resolve folder trust before entering the macOS Seatbelt sandbox by
|
|
68
|
+
[#30259](https://github.com/google-gemini/gemini-cli/pull/30259)
|
|
69
|
+
- fix(core,cli): scope foreground retry status to active main prompt and current
|
|
70
|
+
model policy by @tadipavan in
|
|
71
|
+
[#30266](https://github.com/google-gemini/gemini-cli/pull/30266)
|
|
72
|
+
- fix(cli): initialize auth capabilities and deduplicate options when listing
|
|
73
|
+
models by @tadipavan in
|
|
74
|
+
[#30271](https://github.com/google-gemini/gemini-cli/pull/30271)
|
|
75
|
+
- fix(cli): skip system MCP servers with insecure command permissions by
|
|
76
|
+
@elberthc-byte in
|
|
77
|
+
[#30283](https://github.com/google-gemini/gemini-cli/pull/30283)
|
|
78
|
+
- refactor(core): use re2js for linear-time policy argsPattern evaluation by
|
|
118
79
|
@diegogodinezr in
|
|
119
|
-
[#
|
|
120
|
-
-
|
|
121
|
-
|
|
122
|
-
[#
|
|
123
|
-
- fix(cli):
|
|
80
|
+
[#30282](https://github.com/google-gemini/gemini-cli/pull/30282)
|
|
81
|
+
- chore(deps): update workspace dependencies and sandbox runtime packages by
|
|
82
|
+
@DavidAPierce in
|
|
83
|
+
[#30321](https://github.com/google-gemini/gemini-cli/pull/30321)
|
|
84
|
+
- fix(cli): disclose canonical link path and default consent prompt to no by
|
|
124
85
|
@jvargassanchez-dot in
|
|
125
|
-
[#
|
|
126
|
-
- fix(
|
|
86
|
+
[#30289](https://github.com/google-gemini/gemini-cli/pull/30289)
|
|
87
|
+
- fix(cli): detect local git clone from CLI path instead of cwd by @tadipavan in
|
|
88
|
+
[#30315](https://github.com/google-gemini/gemini-cli/pull/30315)
|
|
89
|
+
- fix(ide): use per-user discovery directory and atomic port file writes by
|
|
90
|
+
@villahernandez-coder in
|
|
91
|
+
[#30340](https://github.com/google-gemini/gemini-cli/pull/30340)
|
|
92
|
+
- ci: pre-pull triage image and clear Docker login in dedup workflows by
|
|
93
|
+
@diegogodinezr in
|
|
94
|
+
[#30342](https://github.com/google-gemini/gemini-cli/pull/30342)
|
|
95
|
+
- fix(core): keep ASK_USER for shell commands with unresolved expansion by
|
|
127
96
|
@luisfelipe-alt in
|
|
128
|
-
[#
|
|
129
|
-
- fix(core):
|
|
130
|
-
|
|
131
|
-
[#
|
|
132
|
-
-
|
|
133
|
-
@
|
|
134
|
-
[#
|
|
135
|
-
- fix(core): prevent PDF inlineData and telemetry buffer memory retention by
|
|
136
|
-
@tadipavan in [#30217](https://github.com/google-gemini/gemini-cli/pull/30217)
|
|
97
|
+
[#30338](https://github.com/google-gemini/gemini-cli/pull/30338)
|
|
98
|
+
- fix(core): match commandPrefix and commandRegex rules against the top-level
|
|
99
|
+
command argument by @luisfelipe-alt in
|
|
100
|
+
[#30355](https://github.com/google-gemini/gemini-cli/pull/30355)
|
|
101
|
+
- chore(deps): adjust workspace dependency pins and update simple-git by
|
|
102
|
+
@DavidAPierce in
|
|
103
|
+
[#30356](https://github.com/google-gemini/gemini-cli/pull/30356)
|
|
137
104
|
|
|
138
105
|
**Full Changelog**:
|
|
139
|
-
https://github.com/google-gemini/gemini-cli/compare/v0.
|
|
106
|
+
https://github.com/google-gemini/gemini-cli/compare/v0.69.0-preview.0...v0.70.0-preview.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/confirmation-bus/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAqB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAqB,MAAM,oBAAoB,CAAC;AAUvD,MAAM,CAAN,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,yEAAuD,CAAA;IACvD,2EAAyD,CAAA;IACzD,iEAA+C,CAAA;IAC/C,mEAAiD,CAAA;IACjD,mEAAiD,CAAA;IACjD,iDAA+B,CAAA;IAC/B,yDAAuC,CAAA;IACvC,uDAAqC,CAAA;IACrC,yDAAuC,CAAA;IACvC,yDAAuC,CAAA;AACzC,CAAC,EAXW,cAAc,KAAd,cAAc,QAWzB;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/confirmation-bus/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAqB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAqB,MAAM,oBAAoB,CAAC;AAUvD,MAAM,CAAN,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,yEAAuD,CAAA;IACvD,2EAAyD,CAAA;IACzD,iEAA+C,CAAA;IAC/C,mEAAiD,CAAA;IACjD,mEAAiD,CAAA;IACjD,iDAA+B,CAAA;IAC/B,yDAAuC,CAAA;IACvC,uDAAqC,CAAA;IACrC,yDAAuC,CAAA;IACvC,yDAAuC,CAAA;AACzC,CAAC,EAXW,cAAc,KAAd,cAAc,QAWzB;AA2JD,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB"}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2026 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
export declare const GIT_COMMIT_INFO = "
|
|
7
|
-
export declare const CLI_VERSION = "0.
|
|
6
|
+
export declare const GIT_COMMIT_INFO = "d4cb1713f";
|
|
7
|
+
export declare const CLI_VERSION = "0.71.0-nightly.20261120.gd4cb1713f";
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
// This file is auto-generated by the build script (scripts/generate-git-commit-info.js)
|
|
7
7
|
// Do not edit this file manually.
|
|
8
|
-
export const GIT_COMMIT_INFO = '
|
|
9
|
-
export const CLI_VERSION = '0.
|
|
8
|
+
export const GIT_COMMIT_INFO = 'd4cb1713f';
|
|
9
|
+
export const CLI_VERSION = '0.71.0-nightly.20261120.gd4cb1713f';
|
|
10
10
|
//# sourceMappingURL=git-commit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-commit.js","sourceRoot":"","sources":["../../../src/generated/git-commit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wFAAwF;AACxF,kCAAkC;AAClC,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC;AAC3C,MAAM,CAAC,MAAM,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"git-commit.js","sourceRoot":"","sources":["../../../src/generated/git-commit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wFAAwF;AACxF,kCAAkC;AAClC,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC;AAC3C,MAAM,CAAC,MAAM,WAAW,GAAG,oCAAoC,CAAC"}
|
|
@@ -40,6 +40,7 @@ export declare class PolicyEngine {
|
|
|
40
40
|
* Returns the decision and the matching rule (if any).
|
|
41
41
|
*/
|
|
42
42
|
check(toolCall: FunctionCall, serverName: string | undefined, toolAnnotations?: Record<string, unknown>, subagent?: string, skipHeuristics?: boolean): Promise<CheckResult>;
|
|
43
|
+
private checkInternal;
|
|
43
44
|
/**
|
|
44
45
|
* Add a new rule to the policy engine.
|
|
45
46
|
*/
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import path from 'node:path';
|
|
7
7
|
import {} from '@google/genai';
|
|
8
|
-
import { SHELL_TOOL_NAMES, REDIRECTION_NAMES, initializeShellParsers, parseCommandDetails, stripShellWrapper, hasRedirection, hasUnresolvedShellExpansion, detectCommandSubstitution, extractStringFromParseEntry, } from '../utils/shell-utils.js';
|
|
8
|
+
import { SHELL_TOOL_NAMES, REDIRECTION_NAMES, initializeShellParsers, parseCommandDetails, parseCommandDetailsAsync, isDefaultParseCommandDetails, stripShellWrapper, hasRedirection, hasRedirectionAsync, isDefaultHasRedirection, hasUnresolvedShellExpansion, detectCommandSubstitution, extractStringFromParseEntry, } from '../utils/shell-utils.js';
|
|
9
|
+
import { runWithCommandParseCache } from '../utils/shell-parse-cache.js';
|
|
9
10
|
import { parse as shellParse } from 'shell-quote';
|
|
10
11
|
import { isSubpath } from '../utils/paths.js';
|
|
11
12
|
import { PolicyDecision, ApprovalMode, ALWAYS_ALLOW_PRIORITY_FRACTION, } from './types.js';
|
|
@@ -261,10 +262,13 @@ export class PolicyEngine {
|
|
|
261
262
|
return (rule.priority !== undefined &&
|
|
262
263
|
Math.round((rule.priority % 1) * 1000) === ALWAYS_ALLOW_PRIORITY_FRACTION);
|
|
263
264
|
}
|
|
264
|
-
shouldDowngradeForRedirection(command, allowRedirection, rule) {
|
|
265
|
+
async shouldDowngradeForRedirection(command, allowRedirection, rule) {
|
|
265
266
|
if (allowRedirection)
|
|
266
267
|
return false;
|
|
267
|
-
|
|
268
|
+
const redirected = isDefaultHasRedirection(hasRedirection)
|
|
269
|
+
? await hasRedirectionAsync(command)
|
|
270
|
+
: hasRedirection(command);
|
|
271
|
+
if (!redirected)
|
|
268
272
|
return false;
|
|
269
273
|
// Require explicit allowRedirection when matching a command-prefix rule.
|
|
270
274
|
if (rule?.argsPattern && !allowRedirection) {
|
|
@@ -363,7 +367,9 @@ export class PolicyEngine {
|
|
|
363
367
|
};
|
|
364
368
|
}
|
|
365
369
|
await initializeShellParsers();
|
|
366
|
-
const parsed = parseCommandDetails
|
|
370
|
+
const parsed = isDefaultParseCommandDetails(parseCommandDetails)
|
|
371
|
+
? await parseCommandDetailsAsync(command)
|
|
372
|
+
: parseCommandDetails(command);
|
|
367
373
|
const subCommands = parsed?.details ?? [];
|
|
368
374
|
// Handle parser failures or syntax errors
|
|
369
375
|
if (subCommands.length === 0 || parsed?.hasError) {
|
|
@@ -401,7 +407,7 @@ export class PolicyEngine {
|
|
|
401
407
|
let responsibleRule = rule && ruleDecision === rule.decision ? rule : undefined;
|
|
402
408
|
// Check for redirection on the full command string.
|
|
403
409
|
// Redirection always downgrades ALLOW to ASK_USER (it never upgrades).
|
|
404
|
-
const hasTopLevelRedirectionDowngrade = this.shouldDowngradeForRedirection(command, allowRedirection, rule);
|
|
410
|
+
const hasTopLevelRedirectionDowngrade = await this.shouldDowngradeForRedirection(command, allowRedirection, rule);
|
|
405
411
|
if (hasTopLevelRedirectionDowngrade) {
|
|
406
412
|
if (aggregateDecision === PolicyDecision.ALLOW) {
|
|
407
413
|
debugLogger.debug(`[PolicyEngine.check] Downgrading ALLOW to ASK_USER for redirected command: ${command}`);
|
|
@@ -470,7 +476,7 @@ export class PolicyEngine {
|
|
|
470
476
|
}
|
|
471
477
|
// Downgrade if sub-command has redirection or disallowed substitution
|
|
472
478
|
if (subResult.decision === PolicyDecision.ALLOW &&
|
|
473
|
-
(this.shouldDowngradeForRedirection(subCmd, subResult.rule?.allowRedirection ?? allowRedirection, subResult.rule) ||
|
|
479
|
+
((await this.shouldDowngradeForRedirection(subCmd, subResult.rule?.allowRedirection ?? allowRedirection, subResult.rule)) ||
|
|
474
480
|
this.shouldDowngradeForCommandSubstitution(subCmd, subResult.rule?.allowCommandSubstitution ??
|
|
475
481
|
rule?.allowCommandSubstitution, subResult.rule))) {
|
|
476
482
|
allSubCommandsExplicitlyAllowed = false;
|
|
@@ -533,6 +539,9 @@ export class PolicyEngine {
|
|
|
533
539
|
* Returns the decision and the matching rule (if any).
|
|
534
540
|
*/
|
|
535
541
|
async check(toolCall, serverName, toolAnnotations, subagent, skipHeuristics = false) {
|
|
542
|
+
return runWithCommandParseCache(() => this.checkInternal(toolCall, serverName, toolAnnotations, subagent, skipHeuristics));
|
|
543
|
+
}
|
|
544
|
+
async checkInternal(toolCall, serverName, toolAnnotations, subagent, skipHeuristics = false) {
|
|
536
545
|
// Case 1: Metadata injection is the primary and safest way to identify an MCP server.
|
|
537
546
|
// If we have explicit `_serverName` metadata (usually injected by tool-registry for active tools), use it.
|
|
538
547
|
if (!serverName && isMcpToolAnnotation(toolAnnotations)) {
|