@google/gemini-cli 0.68.0 → 0.69.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-UCFNW5IV.js → chunk-2NIO2MYP.js} +1 -1
- package/bundle/{chunk-G62RLJX6.js → chunk-2NWFKUZR.js} +2 -2
- package/bundle/{chunk-2PZ5W6XG.js → chunk-4ICD47UK.js} +1 -1
- package/bundle/{chunk-UWDUE2FI.js → chunk-5WVS3LFE.js} +617 -228
- package/bundle/{chunk-U4HHML7H.js → chunk-66UT6FAS.js} +7 -2
- package/bundle/chunk-6CG4XKVB.js +65 -0
- package/bundle/chunk-6MSIVBAV.js +65 -0
- package/bundle/{chunk-O3LBFTXB.js → chunk-76IL5AQS.js} +1 -1
- package/bundle/{chunk-V6V4NDBB.js → chunk-7JVLRJNT.js} +7 -2
- package/bundle/{chunk-ASDLQWJU.js → chunk-BBQ3J3KD.js} +617 -228
- package/bundle/chunk-CU3LIREC.js +65 -0
- package/bundle/{chunk-AS7AQWDX.js → chunk-E2O7673V.js} +3 -3
- package/bundle/{chunk-MMZD3Z6P.js → chunk-FZXMW23P.js} +1 -1
- package/bundle/{chunk-MGSUDKTT.js → chunk-HFG3LZOT.js} +22 -6
- package/bundle/{chunk-UTAAT53A.js → chunk-KZYASN6P.js} +1 -1
- package/bundle/{chunk-AAYJUGGU.js → chunk-L7UQY2JQ.js} +22 -6
- package/bundle/{chunk-MQCXDY7Q.js → chunk-MJHJIOO6.js} +2 -2
- package/bundle/{chunk-VFM6AETN.js → chunk-RPOY63FV.js} +22 -6
- package/bundle/{chunk-X6GKQ37B.js → chunk-RRELGD6D.js} +1 -1
- package/bundle/{chunk-LIL3SDSL.js → chunk-SM722TVE.js} +3 -3
- package/bundle/{chunk-QOY4W5DI.js → chunk-TEYXLQ5H.js} +617 -228
- package/bundle/{chunk-NWIW5RB7.js → chunk-TO7WASPI.js} +2 -2
- package/bundle/{chunk-2OHBIZ5H.js → chunk-TPD3RZ2B.js} +4479 -1925
- package/bundle/{chunk-QONVGJUH.js → chunk-VWFWPAOZ.js} +7 -2
- package/bundle/{chunk-RCB6BI5H.js → chunk-X4P3RZYU.js} +4357 -1897
- package/bundle/{chunk-55ZBMEMI.js → chunk-XXN6WBQW.js} +3 -3
- package/bundle/{chunk-WBPQP5N5.js → chunk-Y4PW6PYG.js} +4479 -1925
- package/bundle/{cleanup-CE7NXWQQ.js → cleanup-4RG2PSND.js} +2 -2
- package/bundle/{cleanup-S55R4M4P.js → cleanup-QM4BFPJ4.js} +2 -2
- package/bundle/{cleanup-VK774HYR.js → cleanup-XYZT64H7.js} +2 -2
- package/bundle/{core-H54RSSWF.js → core-3UXW77KZ.js} +35 -1
- package/bundle/{core-3WSGSBP4.js → core-JN57UMDL.js} +35 -1
- package/bundle/{devtoolsService-3D2MEPRK.js → devtoolsService-K3FKQFZP.js} +2 -2
- package/bundle/{devtoolsService-IY5CMY5M.js → devtoolsService-QLI75YCI.js} +2 -2
- package/bundle/{devtoolsService-SMGKHHHC.js → devtoolsService-XZRXARUU.js} +2 -2
- package/bundle/{dist-7ZMVG6FV.js → dist-RVQZS637.js} +35 -1
- package/bundle/docs/changelogs/index.md +18 -0
- package/bundle/docs/changelogs/latest.md +89 -84
- package/bundle/docs/changelogs/preview.md +106 -92
- package/bundle/docs/cli/themes.md +50 -5
- package/bundle/docs/cli/trusted-folders.md +13 -0
- package/bundle/docs/reference/commands.md +4 -0
- package/bundle/docs/reference/configuration.md +8 -0
- package/bundle/docs/reference/policy-engine.md +6 -0
- package/bundle/formatError-5QTHC2BU.js +14 -0
- package/bundle/formatError-I6YST2IJ.js +14 -0
- package/bundle/formatError-R5NIXYBT.js +14 -0
- package/bundle/{gemini-QXW4BNRT.js → gemini-BCCY3LUV.js} +493 -132
- package/bundle/{gemini-Q2FNZWQG.js → gemini-SS7CDNKE.js} +493 -132
- package/bundle/{gemini-TPI2JZF4.js → gemini-VN2552TI.js} +493 -132
- package/bundle/gemini.js +14 -13
- package/bundle/{interactiveCli-Z4BMA3IE.js → interactiveCli-MX4SNKPZ.js} +1641 -1208
- package/bundle/{interactiveCli-ZJ2ZELJM.js → interactiveCli-SGZ2VGTY.js} +1641 -1208
- package/bundle/{interactiveCli-HTFX4T7K.js → interactiveCli-X6WWC2C6.js} +1641 -1208
- package/bundle/{liteRtServerManager-P72TRVMO.js → liteRtServerManager-6PM4BXYU.js} +4 -4
- package/bundle/{liteRtServerManager-YZZCYJ4U.js → liteRtServerManager-CAJIW3PE.js} +4 -4
- package/bundle/{liteRtServerManager-NYOO2WQ4.js → liteRtServerManager-FQPKIHVD.js} +4 -4
- package/bundle/{oauth2-provider-PBHT3VAC.js → oauth2-provider-D4UNDFN3.js} +1 -1
- package/bundle/{oauth2-provider-YPP5K6XW.js → oauth2-provider-RIS25NZW.js} +1 -1
- package/bundle/{oauth2-provider-OGNVT4MV.js → oauth2-provider-T3DF3FTA.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-ADAUXBCX.js → start-76F65FZ5.js} +6 -6
- package/bundle/{start-UNCB4DQS.js → start-FVNQP7EB.js} +6 -6
- package/bundle/{start-53A5BH5A.js → start-WSOZZWBK.js} +6 -6
- package/package.json +1 -1
|
@@ -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-Y4PW6PYG.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
|
+
*/
|
|
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
|
|
|
2
2
|
import {
|
|
3
3
|
exitCli,
|
|
4
4
|
require_source
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2NIO2MYP.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_PORT,
|
|
8
8
|
SERVER_START_WAIT_MS,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
isServerRunning,
|
|
15
15
|
resolveGemmaConfig,
|
|
16
16
|
writeServerProcessInfo
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-L7UQY2JQ.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TPD3RZ2B.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-34MYV7JD.js";
|
|
@@ -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-7JVLRJNT.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
|
require_react
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RRELGD6D.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-Y4PW6PYG.js";
|
|
39
39
|
import {
|
|
40
40
|
__commonJS,
|
|
41
41
|
__export,
|
|
@@ -34842,6 +34842,20 @@ var SETTINGS_SCHEMA = {
|
|
|
34842
34842
|
description: "Maximum number of user/model/tool turns to keep in a session. -1 means unlimited.",
|
|
34843
34843
|
showInDialog: true
|
|
34844
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
|
+
},
|
|
34845
34859
|
summarizeToolOutput: {
|
|
34846
34860
|
type: "object",
|
|
34847
34861
|
label: "Summarize Tool Output",
|
|
@@ -37592,18 +37606,20 @@ function buildObjectShapeFromProperties(properties) {
|
|
|
37592
37606
|
}
|
|
37593
37607
|
return shape;
|
|
37594
37608
|
}
|
|
37595
|
-
function buildPrimitiveSchema(type) {
|
|
37609
|
+
function buildPrimitiveSchema(type, minimum) {
|
|
37596
37610
|
switch (type) {
|
|
37597
37611
|
case "string":
|
|
37598
37612
|
return external_exports.string();
|
|
37599
|
-
case "number":
|
|
37613
|
+
case "number": {
|
|
37614
|
+
const numberSchema = minimum !== void 0 ? external_exports.number().min(minimum) : external_exports.number();
|
|
37600
37615
|
return external_exports.preprocess((val) => {
|
|
37601
37616
|
if (typeof val === "string" && val.trim() !== "") {
|
|
37602
37617
|
const num = Number(val);
|
|
37603
37618
|
if (!isNaN(num)) return num;
|
|
37604
37619
|
}
|
|
37605
37620
|
return val;
|
|
37606
|
-
},
|
|
37621
|
+
}, numberSchema);
|
|
37622
|
+
}
|
|
37607
37623
|
case "boolean":
|
|
37608
37624
|
return external_exports.preprocess((val) => {
|
|
37609
37625
|
if (typeof val === "string") {
|
|
@@ -37636,7 +37652,7 @@ function buildZodSchemaFromDefinition(definition) {
|
|
|
37636
37652
|
case "string":
|
|
37637
37653
|
case "number":
|
|
37638
37654
|
case "boolean":
|
|
37639
|
-
baseSchema = buildPrimitiveSchema(definition.type);
|
|
37655
|
+
baseSchema = buildPrimitiveSchema(definition.type, definition.minimum);
|
|
37640
37656
|
break;
|
|
37641
37657
|
case "enum": {
|
|
37642
37658
|
baseSchema = buildEnumSchema(definition.options);
|
|
@@ -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-VWFWPAOZ.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
|
require_react
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4ICD47UK.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-TPD3RZ2B.js";
|
|
39
39
|
import {
|
|
40
40
|
__commonJS,
|
|
41
41
|
__export,
|
|
@@ -34842,6 +34842,20 @@ var SETTINGS_SCHEMA = {
|
|
|
34842
34842
|
description: "Maximum number of user/model/tool turns to keep in a session. -1 means unlimited.",
|
|
34843
34843
|
showInDialog: true
|
|
34844
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
|
+
},
|
|
34845
34859
|
summarizeToolOutput: {
|
|
34846
34860
|
type: "object",
|
|
34847
34861
|
label: "Summarize Tool Output",
|
|
@@ -37592,18 +37606,20 @@ function buildObjectShapeFromProperties(properties) {
|
|
|
37592
37606
|
}
|
|
37593
37607
|
return shape;
|
|
37594
37608
|
}
|
|
37595
|
-
function buildPrimitiveSchema(type) {
|
|
37609
|
+
function buildPrimitiveSchema(type, minimum) {
|
|
37596
37610
|
switch (type) {
|
|
37597
37611
|
case "string":
|
|
37598
37612
|
return external_exports.string();
|
|
37599
|
-
case "number":
|
|
37613
|
+
case "number": {
|
|
37614
|
+
const numberSchema = minimum !== void 0 ? external_exports.number().min(minimum) : external_exports.number();
|
|
37600
37615
|
return external_exports.preprocess((val) => {
|
|
37601
37616
|
if (typeof val === "string" && val.trim() !== "") {
|
|
37602
37617
|
const num = Number(val);
|
|
37603
37618
|
if (!isNaN(num)) return num;
|
|
37604
37619
|
}
|
|
37605
37620
|
return val;
|
|
37606
|
-
},
|
|
37621
|
+
}, numberSchema);
|
|
37622
|
+
}
|
|
37607
37623
|
case "boolean":
|
|
37608
37624
|
return external_exports.preprocess((val) => {
|
|
37609
37625
|
if (typeof val === "string") {
|
|
@@ -37636,7 +37652,7 @@ function buildZodSchemaFromDefinition(definition) {
|
|
|
37636
37652
|
case "string":
|
|
37637
37653
|
case "number":
|
|
37638
37654
|
case "boolean":
|
|
37639
|
-
baseSchema = buildPrimitiveSchema(definition.type);
|
|
37655
|
+
baseSchema = buildPrimitiveSchema(definition.type, definition.minimum);
|
|
37640
37656
|
break;
|
|
37641
37657
|
case "enum": {
|
|
37642
37658
|
baseSchema = buildEnumSchema(definition.options);
|
|
@@ -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-66UT6FAS.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-TPD3RZ2B.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
|
require_react
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-76IL5AQS.js";
|
|
5
5
|
import {
|
|
6
6
|
AuthProviderType,
|
|
7
7
|
AuthType,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
partListUnionToString,
|
|
38
38
|
require_strip_json_comments,
|
|
39
39
|
sanitizeFilenamePart
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-X4P3RZYU.js";
|
|
41
41
|
import {
|
|
42
42
|
__commonJS,
|
|
43
43
|
__export,
|
|
@@ -34844,6 +34844,20 @@ var SETTINGS_SCHEMA = {
|
|
|
34844
34844
|
description: "Maximum number of user/model/tool turns to keep in a session. -1 means unlimited.",
|
|
34845
34845
|
showInDialog: true
|
|
34846
34846
|
},
|
|
34847
|
+
requestTimeoutMs: {
|
|
34848
|
+
type: "number",
|
|
34849
|
+
label: "Request Timeout (ms)",
|
|
34850
|
+
category: "Model",
|
|
34851
|
+
requiresRestart: true,
|
|
34852
|
+
default: void 0,
|
|
34853
|
+
minimum: 1,
|
|
34854
|
+
description: oneLine`
|
|
34855
|
+
How long to wait, in milliseconds, for the API to start responding
|
|
34856
|
+
before a request is aborted and retried. Defaults to 60000. Raise this
|
|
34857
|
+
if long-thinking requests are timing out.
|
|
34858
|
+
`,
|
|
34859
|
+
showInDialog: false
|
|
34860
|
+
},
|
|
34847
34861
|
summarizeToolOutput: {
|
|
34848
34862
|
type: "object",
|
|
34849
34863
|
label: "Summarize Tool Output",
|
|
@@ -37594,18 +37608,20 @@ function buildObjectShapeFromProperties(properties) {
|
|
|
37594
37608
|
}
|
|
37595
37609
|
return shape;
|
|
37596
37610
|
}
|
|
37597
|
-
function buildPrimitiveSchema(type) {
|
|
37611
|
+
function buildPrimitiveSchema(type, minimum) {
|
|
37598
37612
|
switch (type) {
|
|
37599
37613
|
case "string":
|
|
37600
37614
|
return external_exports.string();
|
|
37601
|
-
case "number":
|
|
37615
|
+
case "number": {
|
|
37616
|
+
const numberSchema = minimum !== void 0 ? external_exports.number().min(minimum) : external_exports.number();
|
|
37602
37617
|
return external_exports.preprocess((val) => {
|
|
37603
37618
|
if (typeof val === "string" && val.trim() !== "") {
|
|
37604
37619
|
const num = Number(val);
|
|
37605
37620
|
if (!isNaN(num)) return num;
|
|
37606
37621
|
}
|
|
37607
37622
|
return val;
|
|
37608
|
-
},
|
|
37623
|
+
}, numberSchema);
|
|
37624
|
+
}
|
|
37609
37625
|
case "boolean":
|
|
37610
37626
|
return external_exports.preprocess((val) => {
|
|
37611
37627
|
if (typeof val === "string") {
|
|
@@ -37638,7 +37654,7 @@ function buildZodSchemaFromDefinition(definition) {
|
|
|
37638
37654
|
case "string":
|
|
37639
37655
|
case "number":
|
|
37640
37656
|
case "boolean":
|
|
37641
|
-
baseSchema = buildPrimitiveSchema(definition.type);
|
|
37657
|
+
baseSchema = buildPrimitiveSchema(definition.type, definition.minimum);
|
|
37642
37658
|
break;
|
|
37643
37659
|
case "enum": {
|
|
37644
37660
|
baseSchema = buildEnumSchema(definition.options);
|
|
@@ -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-Y4PW6PYG.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__toESM
|
|
@@ -2,7 +2,7 @@ const require = (await import('node:module')).createRequire(import.meta.url); co
|
|
|
2
2
|
import {
|
|
3
3
|
exitCli,
|
|
4
4
|
require_source
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KZYASN6P.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_PORT,
|
|
8
8
|
SERVER_START_WAIT_MS,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
isServerRunning,
|
|
15
15
|
resolveGemmaConfig,
|
|
16
16
|
writeServerProcessInfo
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RPOY63FV.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-X4P3RZYU.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-34MYV7JD.js";
|