@google/gemini-cli 0.67.0 → 0.69.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/README.md +18 -24
- package/bundle/{chunk-IDJ4QXBF.js → chunk-2KKDGWF2.js} +1 -1
- package/bundle/{chunk-7LX6MRZ6.js → chunk-2ONJU4V7.js} +1 -1
- package/bundle/chunk-3HEOCQDN.js +65 -0
- package/bundle/{chunk-VO6PFWLY.js → chunk-4SOPZCNA.js} +29 -15
- package/bundle/{chunk-56IGTM4O.js → chunk-6KCLIS6W.js} +1 -1
- package/bundle/{chunk-2E3ETS5J.js → chunk-BRHBBQC5.js} +2 -2
- package/bundle/{chunk-M73CYIV5.js → chunk-C5BED6L6.js} +2 -2
- package/bundle/{chunk-VK766A3F.js → chunk-CGQSFR2I.js} +7 -2
- package/bundle/{chunk-OJ62HCXG.js → chunk-CWHEOJXF.js} +7 -2
- package/bundle/{chunk-LAR4JEC7.js → chunk-DWMZSQYG.js} +6050 -2877
- package/bundle/{chunk-QTXJG3I3.js → chunk-GDCMMKZ2.js} +1 -1
- package/bundle/{chunk-YUO7RUF4.js → chunk-GQ7FZNO2.js} +1 -1
- package/bundle/{chunk-GBUWHRK6.js → chunk-JJWPYMIO.js} +3 -3
- package/bundle/{chunk-NGQU3QTQ.js → chunk-KUXCUQKX.js} +5859 -2837
- package/bundle/{chunk-P62CI7AR.js → chunk-LYKP3S67.js} +29 -15
- package/bundle/{chunk-O7MGOE2I.js → chunk-MP4TVGOP.js} +6050 -2877
- package/bundle/{chunk-IGE3G3WZ.js → chunk-PH5XENTH.js} +1 -1
- package/bundle/{chunk-CJFBYU4J.js → chunk-RBDD6IBU.js} +937 -327
- package/bundle/{chunk-5RNHNFYV.js → chunk-SYOIMUZI.js} +937 -327
- package/bundle/{chunk-BW65QRZA.js → chunk-U3FFDEKY.js} +29 -15
- package/bundle/{chunk-MQNW2IRI.js → chunk-U5FJ6OGB.js} +2 -2
- package/bundle/{chunk-PUNFASKY.js → chunk-UAHZWXSG.js} +7 -2
- package/bundle/chunk-UW3ZS3BH.js +65 -0
- package/bundle/{chunk-4JH2G4F4.js → chunk-V7L3FMBE.js} +3 -3
- package/bundle/chunk-VQTELFV3.js +65 -0
- package/bundle/{chunk-QA5FT4VY.js → chunk-YODS6HR2.js} +3 -3
- package/bundle/{chunk-XETHQLRU.js → chunk-YP5TA33N.js} +937 -327
- package/bundle/{cleanup-B6AOSVD4.js → cleanup-3T2KXSP4.js} +2 -2
- package/bundle/{cleanup-BRFB47DL.js → cleanup-NNQCI4KC.js} +2 -2
- package/bundle/{cleanup-S5QFYCEP.js → cleanup-TA4VYDXQ.js} +2 -2
- package/bundle/{core-N27LU4DK.js → core-6XF5EO7Z.js} +37 -1
- package/bundle/{dist-E6RCLXQU.js → core-TUJHM7E7.js} +37 -1
- package/bundle/{devtoolsService-6V46WMXX.js → devtoolsService-7EMPANTX.js} +2 -2
- package/bundle/{devtoolsService-E74ZMDMM.js → devtoolsService-I7WFRUEA.js} +2 -2
- package/bundle/{devtoolsService-EFJXZRFD.js → devtoolsService-RCBUZGYD.js} +2 -2
- package/bundle/{core-GTUUQBGE.js → dist-OSQFIX7F.js} +37 -1
- package/bundle/docs/changelogs/index.md +42 -0
- package/bundle/docs/changelogs/latest.md +89 -91
- package/bundle/docs/changelogs/preview.md +106 -90
- package/bundle/docs/cli/sandbox.md +8 -2
- package/bundle/docs/cli/themes.md +56 -8
- package/bundle/docs/cli/trusted-folders.md +13 -0
- package/bundle/docs/extensions/releasing.md +32 -0
- package/bundle/docs/reference/commands.md +4 -0
- package/bundle/docs/reference/configuration.md +10 -10
- package/bundle/docs/reference/policy-engine.md +6 -0
- package/bundle/formatError-KEQ3HU3Y.js +14 -0
- package/bundle/formatError-LJFIC7G3.js +14 -0
- package/bundle/formatError-MIUNQEYE.js +14 -0
- package/bundle/{gemini-QWDTSJTS.js → gemini-22ON2CZG.js} +601 -142
- package/bundle/{gemini-4JPKPLQN.js → gemini-HLS52ZNZ.js} +601 -142
- package/bundle/{gemini-VF5FS3OM.js → gemini-ZZZEFPSK.js} +601 -142
- package/bundle/gemini.js +14 -13
- package/bundle/{interactiveCli-QJZZISQQ.js → interactiveCli-5HMWVTK2.js} +2967 -2329
- package/bundle/{interactiveCli-FQ3YKGOG.js → interactiveCli-HQBE3C3C.js} +2967 -2329
- package/bundle/{interactiveCli-F2YYMYTP.js → interactiveCli-NKFQZXB5.js} +2967 -2329
- package/bundle/{liteRtServerManager-JAV3GR4V.js → liteRtServerManager-2IOXWO76.js} +4 -4
- package/bundle/{liteRtServerManager-X5CCMKM6.js → liteRtServerManager-AG4Y5JMZ.js} +4 -4
- package/bundle/{liteRtServerManager-27R2M6XE.js → liteRtServerManager-OFNVXXQ4.js} +4 -4
- package/bundle/{oauth2-provider-6UCP23AQ.js → oauth2-provider-2DHNJ2S3.js} +1 -1
- package/bundle/{oauth2-provider-H2KV36NU.js → oauth2-provider-OEGXLWIL.js} +1 -1
- package/bundle/{oauth2-provider-C65IJMNQ.js → oauth2-provider-YDNSNN32.js} +1 -1
- package/bundle/policies/yolo.toml +1 -0
- package/bundle/sandbox-macos-permissive-open.sb +8 -0
- package/bundle/sandbox-macos-permissive-proxied.sb +8 -0
- package/bundle/sandbox-macos-restrictive-open.sb +1 -0
- package/bundle/sandbox-macos-restrictive-proxied.sb +1 -0
- package/bundle/sandbox-macos-strict-open.sb +1 -0
- package/bundle/sandbox-macos-strict-proxied.sb +1 -0
- package/bundle/{start-GNOA75NQ.js → start-7GJH3MKY.js} +6 -6
- package/bundle/{start-K2AYYNST.js → start-JSVKPUTV.js} +6 -6
- package/bundle/{start-E4ZL44QM.js → start-N33LF5WK.js} +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
> [!NOTE]
|
|
2
|
-
>
|
|
3
|
-
> **Unpaid tier and Google One users:** Gemini CLI was replaced by Antigravity
|
|
4
|
-
> CLI on June 18th, 2026. To learn more, see our
|
|
5
|
-
> [blog post](https://developers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli).
|
|
6
|
-
>
|
|
7
|
-
> **Gemini CLI has not been optimized for Gemini 4 Argon.** To use Gemini 4
|
|
8
|
-
> Argon, please use Antigravity.
|
|
9
|
-
|
|
10
1
|
# Gemini CLI
|
|
11
2
|
|
|
12
3
|
[](https://github.com/google-gemini/gemini-cli/actions/workflows/ci.yml)
|
|
@@ -15,17 +6,26 @@
|
|
|
15
6
|
[](https://github.com/google-gemini/gemini-cli/blob/main/LICENSE)
|
|
16
7
|
[](https://codewiki.google/github.com/google-gemini/gemini-cli?utm_source=badge&utm_medium=github&utm_campaign=github.com/google-gemini/gemini-cli)
|
|
17
8
|
|
|
18
|
-
|
|
9
|
+
<!-- prettier-ignore -->
|
|
10
|
+
> [!IMPORTANT]
|
|
11
|
+
> **Read before installing — Gemini CLI status & tool guide**
|
|
19
12
|
>
|
|
20
|
-
> Gemini
|
|
21
|
-
>
|
|
22
|
-
> [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
> - **Enterprise Code Assist only:** Designed for **Gemini Code Assist Standard / Enterprise** licenses and **Code Assist for GitHub** on Google Cloud (your access remains unchanged).
|
|
14
|
+
> - **No free tier or Google AI plans:** Free individual access and **Google AI Pro / Ultra** (Google One) moved to [Antigravity CLI](https://antigravity.google/product/antigravity-cli) on June 18, 2026 ([transition post](https://developers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli/)).
|
|
15
|
+
> - **Not optimized for Gemini 4+:** Not tuned for the **Gemini 4** series (for example, [Gemini 4 Argon](https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-4-argon/)) or future releases in this or later generations.
|
|
16
|
+
> - **Not for model benchmarks:** Don't use Gemini CLI to benchmark Gemini models—its harness isn't tuned for Gemini 4+ and produces unrepresentative scores.
|
|
17
|
+
>
|
|
18
|
+
> **Which Google CLI do you need?**
|
|
19
|
+
>
|
|
20
|
+
> | Tool | Best for | Links |
|
|
21
|
+
> | :--- | :--- | :--- |
|
|
22
|
+
> | **[Antigravity CLI](https://antigravity.google/product/antigravity-cli)** (`agy`) | Interactive multi-agent coding terminal. Use for **Gemini 4 Argon**+, free / **Google AI Pro & Ultra** accounts, or Google Cloud. | [Download](https://antigravity.google/download) · [Migrate](https://antigravity.google/docs/cli/gcli-migration) · [Argon post](https://antigravity.google/blog/gemini-4-argon-in-google-antigravity) |
|
|
23
|
+
> | **[Gemini API CLI](https://github.com/google-gemini/gemini-api-cli)** (`gemini-api`) | Stateless API CLI *(not a coding harness)*. Gives agents (`agy`, Claude Code, Codex), scripts, and CI direct commands for Gemini models, media gen, file analysis, and managed agents. | [GitHub](https://github.com/google-gemini/gemini-api-cli) · [Releases](https://github.com/google-gemini/gemini-api-cli/releases) · [API docs](https://ai.google.dev/gemini-api/docs) |
|
|
24
|
+
> | **Gemini CLI** (`gemini`, *this repo*) | Organizations with **Gemini Code Assist Standard / Enterprise** or **Code Assist for GitHub** on Google Cloud *(plus legacy paid API / Vertex keys)*. | [Docs](https://geminicli.com/docs/) |
|
|
27
25
|
|
|
28
|
-
|
|
26
|
+
Gemini CLI (`gemini`) is an open-source terminal agent maintained for enterprise
|
|
27
|
+
Gemini Code Assist workflows on Google Cloud. Learn more in the
|
|
28
|
+
[Gemini CLI documentation](https://geminicli.com/docs/).
|
|
29
29
|
|
|
30
30
|
## 📦 Installation
|
|
31
31
|
|
|
@@ -172,12 +172,6 @@ For Google Workspace accounts and other authentication methods, see the
|
|
|
172
172
|
|
|
173
173
|
## 🚀 Getting Started
|
|
174
174
|
|
|
175
|
-
> [!NOTE]
|
|
176
|
-
>
|
|
177
|
-
> Gemini CLI is not optimized for the latest Gemini models. For the best coding
|
|
178
|
-
> experience with Gemini models use
|
|
179
|
-
> [Antigravity CLI](https://antigravity.google/product/antigravity-cli)
|
|
180
|
-
|
|
181
175
|
### Basic Usage
|
|
182
176
|
|
|
183
177
|
#### Start in current directory
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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
2
|
import {
|
|
3
3
|
checkExhaustive
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MP4TVGOP.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__toESM
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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
2
|
import {
|
|
3
3
|
runExitCleanup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CGQSFR2I.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
normalizeError,
|
|
4
|
+
safeSerializeErrorValue
|
|
5
|
+
} from "./chunk-MP4TVGOP.js";
|
|
6
|
+
|
|
7
|
+
// packages/cli/src/utils/formatError.ts
|
|
8
|
+
function isCliDebugEnabled(argv = process.argv.slice(2), env = process.env) {
|
|
9
|
+
if ([env["DEBUG"], env["DEBUG_MODE"]].some((v) => v === "true" || v === "1")) {
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
for (const arg of argv) {
|
|
13
|
+
if (arg === "--") {
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
if (arg === "--debug" || arg === "-d" || arg === "--debug=true" || arg === "--debug=1") {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
function formatStatusSuffix(message, status) {
|
|
23
|
+
const statusText = typeof status === "string" ? status.trim() : status !== void 0 ? String(status) : "";
|
|
24
|
+
if (!statusText) {
|
|
25
|
+
return "";
|
|
26
|
+
}
|
|
27
|
+
if (message.toLowerCase().includes(statusText.toLowerCase())) {
|
|
28
|
+
return "";
|
|
29
|
+
}
|
|
30
|
+
return ` (Status: ${statusText})`;
|
|
31
|
+
}
|
|
32
|
+
function formatCliError(error, options = {}) {
|
|
33
|
+
const normalized = normalizeError(error);
|
|
34
|
+
const prefix = options.prefix ?? "Error: ";
|
|
35
|
+
const statusSuffix = formatStatusSuffix(
|
|
36
|
+
normalized.message,
|
|
37
|
+
normalized.status
|
|
38
|
+
);
|
|
39
|
+
if (options.debug) {
|
|
40
|
+
if (error instanceof Error && error.stack) {
|
|
41
|
+
const stackStartsWithError = error.stack.startsWith("Error: ") || error.name.endsWith("Error") && error.stack.startsWith(`${error.name}: `);
|
|
42
|
+
const stackPrefix = prefix === "Error: " && stackStartsWithError ? "" : prefix;
|
|
43
|
+
let debugOutput = error.stack.includes(normalized.message) && !statusSuffix ? `${stackPrefix}${error.stack}` : `${prefix}${normalized.message}${statusSuffix}
|
|
44
|
+
${error.stack}`;
|
|
45
|
+
if (normalized.details !== void 0) {
|
|
46
|
+
debugOutput += `
|
|
47
|
+
Debug Details: ${safeSerializeErrorValue(normalized.details, 2)}`;
|
|
48
|
+
}
|
|
49
|
+
return debugOutput;
|
|
50
|
+
}
|
|
51
|
+
return `${prefix}${normalized.message}${statusSuffix}
|
|
52
|
+
Debug Context: ${safeSerializeErrorValue(normalized.originalError, 2)}`;
|
|
53
|
+
}
|
|
54
|
+
return `${prefix}${normalized.message}${statusSuffix}`;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export {
|
|
58
|
+
isCliDebugEnabled,
|
|
59
|
+
formatCliError
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* @license
|
|
63
|
+
* Copyright 2026 Google LLC
|
|
64
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
65
|
+
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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
2
|
import {
|
|
3
3
|
require_react
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2KKDGWF2.js";
|
|
5
5
|
import {
|
|
6
6
|
AuthProviderType,
|
|
7
7
|
AuthType,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
partListUnionToString,
|
|
36
36
|
require_strip_json_comments,
|
|
37
37
|
sanitizeFilenamePart
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-MP4TVGOP.js";
|
|
39
39
|
import {
|
|
40
40
|
__commonJS,
|
|
41
41
|
__export,
|
|
@@ -31297,14 +31297,11 @@ function sanitizeForDisplay(str, maxLength) {
|
|
|
31297
31297
|
return "";
|
|
31298
31298
|
}
|
|
31299
31299
|
let sanitized = stripUnsafeCharacters(str).replace(/\s+/g, " ");
|
|
31300
|
-
if (maxLength && sanitized
|
|
31301
|
-
sanitized = sanitized.
|
|
31300
|
+
if (maxLength && cpLen(sanitized) > maxLength) {
|
|
31301
|
+
sanitized = cpSlice(sanitized, 0, Math.max(0, maxLength - 3)) + "...";
|
|
31302
31302
|
}
|
|
31303
31303
|
return sanitized;
|
|
31304
31304
|
}
|
|
31305
|
-
function normalizeEscapedNewlines(value) {
|
|
31306
|
-
return value.replace(/\\r\\n/g, "\n").replace(/\\n/g, "\n");
|
|
31307
|
-
}
|
|
31308
31305
|
var stringWidthCache = new import_lru_cache.default(
|
|
31309
31306
|
LRU_BUFFER_PERF_CACHE_LIMIT
|
|
31310
31307
|
);
|
|
@@ -33438,6 +33435,7 @@ var Theme = class _Theme {
|
|
|
33438
33435
|
}
|
|
33439
33436
|
};
|
|
33440
33437
|
function createCustomTheme(customTheme) {
|
|
33438
|
+
const focusColor = customTheme.ui?.focus ?? customTheme.status?.success ?? customTheme.AccentGreen ?? "#3CA84B";
|
|
33441
33439
|
const colors = {
|
|
33442
33440
|
type: "custom",
|
|
33443
33441
|
Background: customTheme.background?.primary ?? customTheme.Background ?? "",
|
|
@@ -33470,11 +33468,10 @@ function createCustomTheme(customTheme) {
|
|
|
33470
33468
|
),
|
|
33471
33469
|
FocusBackground: interpolateColor(
|
|
33472
33470
|
customTheme.background?.primary ?? customTheme.Background ?? "",
|
|
33473
|
-
|
|
33474
|
-
// Fallback to a default green if not found
|
|
33471
|
+
focusColor,
|
|
33475
33472
|
DEFAULT_SELECTION_OPACITY
|
|
33476
33473
|
),
|
|
33477
|
-
FocusColor:
|
|
33474
|
+
FocusColor: focusColor,
|
|
33478
33475
|
GradientColors: customTheme.ui?.gradient ?? customTheme.GradientColors
|
|
33479
33476
|
};
|
|
33480
33477
|
const rawMappings = {
|
|
@@ -34845,6 +34842,20 @@ var SETTINGS_SCHEMA = {
|
|
|
34845
34842
|
description: "Maximum number of user/model/tool turns to keep in a session. -1 means unlimited.",
|
|
34846
34843
|
showInDialog: true
|
|
34847
34844
|
},
|
|
34845
|
+
requestTimeoutMs: {
|
|
34846
|
+
type: "number",
|
|
34847
|
+
label: "Request Timeout (ms)",
|
|
34848
|
+
category: "Model",
|
|
34849
|
+
requiresRestart: true,
|
|
34850
|
+
default: void 0,
|
|
34851
|
+
minimum: 1,
|
|
34852
|
+
description: oneLine`
|
|
34853
|
+
How long to wait, in milliseconds, for the API to start responding
|
|
34854
|
+
before a request is aborted and retried. Defaults to 60000. Raise this
|
|
34855
|
+
if long-thinking requests are timing out.
|
|
34856
|
+
`,
|
|
34857
|
+
showInDialog: false
|
|
34858
|
+
},
|
|
34848
34859
|
summarizeToolOutput: {
|
|
34849
34860
|
type: "object",
|
|
34850
34861
|
label: "Summarize Tool Output",
|
|
@@ -37007,6 +37018,8 @@ var SETTINGS_SCHEMA_DEFINITIONS = {
|
|
|
37007
37018
|
properties: {
|
|
37008
37019
|
comment: { type: "string" },
|
|
37009
37020
|
symbol: { type: "string" },
|
|
37021
|
+
active: { type: "string" },
|
|
37022
|
+
focus: { type: "string" },
|
|
37010
37023
|
gradient: {
|
|
37011
37024
|
type: "array",
|
|
37012
37025
|
items: { type: "string" }
|
|
@@ -37593,18 +37606,20 @@ function buildObjectShapeFromProperties(properties) {
|
|
|
37593
37606
|
}
|
|
37594
37607
|
return shape;
|
|
37595
37608
|
}
|
|
37596
|
-
function buildPrimitiveSchema(type) {
|
|
37609
|
+
function buildPrimitiveSchema(type, minimum) {
|
|
37597
37610
|
switch (type) {
|
|
37598
37611
|
case "string":
|
|
37599
37612
|
return external_exports.string();
|
|
37600
|
-
case "number":
|
|
37613
|
+
case "number": {
|
|
37614
|
+
const numberSchema = minimum !== void 0 ? external_exports.number().min(minimum) : external_exports.number();
|
|
37601
37615
|
return external_exports.preprocess((val) => {
|
|
37602
37616
|
if (typeof val === "string" && val.trim() !== "") {
|
|
37603
37617
|
const num = Number(val);
|
|
37604
37618
|
if (!isNaN(num)) return num;
|
|
37605
37619
|
}
|
|
37606
37620
|
return val;
|
|
37607
|
-
},
|
|
37621
|
+
}, numberSchema);
|
|
37622
|
+
}
|
|
37608
37623
|
case "boolean":
|
|
37609
37624
|
return external_exports.preprocess((val) => {
|
|
37610
37625
|
if (typeof val === "string") {
|
|
@@ -37637,7 +37652,7 @@ function buildZodSchemaFromDefinition(definition) {
|
|
|
37637
37652
|
case "string":
|
|
37638
37653
|
case "number":
|
|
37639
37654
|
case "boolean":
|
|
37640
|
-
baseSchema = buildPrimitiveSchema(definition.type);
|
|
37655
|
+
baseSchema = buildPrimitiveSchema(definition.type, definition.minimum);
|
|
37641
37656
|
break;
|
|
37642
37657
|
case "enum": {
|
|
37643
37658
|
baseSchema = buildEnumSchema(definition.options);
|
|
@@ -39172,7 +39187,6 @@ export {
|
|
|
39172
39187
|
cpSlice,
|
|
39173
39188
|
stripUnsafeCharacters,
|
|
39174
39189
|
sanitizeForDisplay,
|
|
39175
|
-
normalizeEscapedNewlines,
|
|
39176
39190
|
setAmbiguousCharactersWide,
|
|
39177
39191
|
getCachedStringWidth,
|
|
39178
39192
|
escapeAnsiCtrlCodes,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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
2
|
import {
|
|
3
3
|
runExitCleanup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CWHEOJXF.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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
2
|
import {
|
|
3
3
|
runExitCleanup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UAHZWXSG.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
debugLogger,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
require_re,
|
|
18
18
|
require_semver,
|
|
19
19
|
require_valid
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MP4TVGOP.js";
|
|
21
21
|
import {
|
|
22
22
|
__commonJS,
|
|
23
23
|
__toESM
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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
2
|
import {
|
|
3
3
|
runExitCleanup
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CGQSFR2I.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
debugLogger,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
require_re,
|
|
18
18
|
require_semver,
|
|
19
19
|
require_valid
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KUXCUQKX.js";
|
|
21
21
|
import {
|
|
22
22
|
__commonJS,
|
|
23
23
|
__toESM
|
|
@@ -1,11 +1,12 @@
|
|
|
1
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
2
|
import {
|
|
3
3
|
ExitCodes,
|
|
4
|
+
ShellExecutionService,
|
|
4
5
|
Storage,
|
|
5
6
|
isTelemetrySdkInitialized,
|
|
6
7
|
resetBrowserSession,
|
|
7
8
|
shutdownTelemetry
|
|
8
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KUXCUQKX.js";
|
|
9
10
|
|
|
10
11
|
// packages/cli/src/utils/cleanup.ts
|
|
11
12
|
import { promises as fs } from "node:fs";
|
|
@@ -87,6 +88,10 @@ async function runExitCleanup() {
|
|
|
87
88
|
await resetBrowserSession();
|
|
88
89
|
} catch {
|
|
89
90
|
}
|
|
91
|
+
try {
|
|
92
|
+
await ShellExecutionService.cleanupAllActiveProcesses();
|
|
93
|
+
} catch {
|
|
94
|
+
}
|
|
90
95
|
if (configForTelemetry) {
|
|
91
96
|
try {
|
|
92
97
|
await configForTelemetry.dispose();
|
|
@@ -118,7 +123,7 @@ async function gracefulShutdown(reason) {
|
|
|
118
123
|
}
|
|
119
124
|
isShuttingDown = true;
|
|
120
125
|
await runExitCleanup();
|
|
121
|
-
const exitCode = reason === "SIGINT" ? 130 : reason === "SIGTERM" ? 143 : ExitCodes.SUCCESS;
|
|
126
|
+
const exitCode = reason === "SIGINT" ? 130 : reason === "SIGTERM" ? 143 : reason === "SIGHUP" ? 129 : ExitCodes.SUCCESS;
|
|
122
127
|
process.exit(exitCode);
|
|
123
128
|
}
|
|
124
129
|
function setupSignalHandlers() {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
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
2
|
import {
|
|
3
3
|
ExitCodes,
|
|
4
|
+
ShellExecutionService,
|
|
4
5
|
Storage,
|
|
5
6
|
isTelemetrySdkInitialized,
|
|
6
7
|
resetBrowserSession,
|
|
7
8
|
shutdownTelemetry
|
|
8
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DWMZSQYG.js";
|
|
9
10
|
|
|
10
11
|
// packages/cli/src/utils/cleanup.ts
|
|
11
12
|
import { promises as fs } from "node:fs";
|
|
@@ -87,6 +88,10 @@ async function runExitCleanup() {
|
|
|
87
88
|
await resetBrowserSession();
|
|
88
89
|
} catch {
|
|
89
90
|
}
|
|
91
|
+
try {
|
|
92
|
+
await ShellExecutionService.cleanupAllActiveProcesses();
|
|
93
|
+
} catch {
|
|
94
|
+
}
|
|
90
95
|
if (configForTelemetry) {
|
|
91
96
|
try {
|
|
92
97
|
await configForTelemetry.dispose();
|
|
@@ -118,7 +123,7 @@ async function gracefulShutdown(reason) {
|
|
|
118
123
|
}
|
|
119
124
|
isShuttingDown = true;
|
|
120
125
|
await runExitCleanup();
|
|
121
|
-
const exitCode = reason === "SIGINT" ? 130 : reason === "SIGTERM" ? 143 : ExitCodes.SUCCESS;
|
|
126
|
+
const exitCode = reason === "SIGINT" ? 130 : reason === "SIGTERM" ? 143 : reason === "SIGHUP" ? 129 : ExitCodes.SUCCESS;
|
|
122
127
|
process.exit(exitCode);
|
|
123
128
|
}
|
|
124
129
|
function setupSignalHandlers() {
|