@google/gemini-cli 0.41.0-preview.1 → 0.42.0-nightly.20260501.gcaa046641
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-36LZQV4W.js → chunk-2HOG45IA.js} +1047 -1240
- package/bundle/{chunk-NGB7ZVQL.js → chunk-2WK6K7H4.js} +67 -507
- package/bundle/{chunk-DOHALVIP.js → chunk-3Y7ZPPS2.js} +1047 -1240
- package/bundle/chunk-4SBF4FWA.js +512 -0
- package/bundle/{chunk-XRLFHCHC.js → chunk-533APETE.js} +30 -12
- package/bundle/{chunk-T5I4M6M4.js → chunk-747IFMEA.js} +3 -3
- package/bundle/chunk-CTSXRP2T.js +512 -0
- package/bundle/{chunk-DCHOW6BK.js → chunk-CVJABGPV.js} +2 -2
- package/bundle/{chunk-VWYB6GSK.js → chunk-DDX3KSOF.js} +67 -507
- package/bundle/{chunk-DAEE6Y5T.js → chunk-EGV36KAI.js} +1047 -1240
- package/bundle/chunk-ESRGVL52.js +512 -0
- package/bundle/{chunk-SAJ72M2G.js → chunk-FABHOVMY.js} +23 -7
- package/bundle/chunk-FNLKMX3W.js +391 -0
- package/bundle/chunk-FTIY7CSS.js +391 -0
- package/bundle/{chunk-C5CRFFTY.js → chunk-GXIITUGM.js} +1 -1
- package/bundle/{chunk-45OGXTFK.js → chunk-HIYYW6PF.js} +3 -3
- package/bundle/chunk-IDYSRNE5.js +511 -0
- package/bundle/{chunk-QRSHDIRX.js → chunk-IJA7QQHF.js} +1 -1
- package/bundle/{chunk-U6WUS35U.js → chunk-ILECTCCH.js} +2 -2
- package/bundle/{chunk-R4LSW45D.js → chunk-J44J2AAV.js} +1 -1
- package/bundle/{chunk-KCDF3RDO.js → chunk-JPGLBVDA.js} +3 -3
- package/bundle/{chunk-VJ6K3S57.js → chunk-K5CA5JX2.js} +2 -2
- package/bundle/{chunk-6NFVEILC.js → chunk-L6URBAMF.js} +262 -81
- package/bundle/{chunk-5Z2T77EB.js → chunk-NNAHWZGK.js} +66 -507
- package/bundle/{chunk-KJ4M7JXR.js → chunk-SFDJ7FIE.js} +2 -2
- package/bundle/{chunk-QY23ZEK3.js → chunk-SYZNFSS3.js} +262 -81
- package/bundle/chunk-TBIPLAJP.js +391 -0
- package/bundle/{chunk-FFVUMIL3.js → chunk-TMQACI5N.js} +1047 -1240
- package/bundle/{chunk-XO6NKGWV.js → chunk-UCTXAZT6.js} +262 -81
- package/bundle/{chunk-VLSVN2FJ.js → chunk-USFRINC4.js} +1 -1
- package/bundle/chunk-VJOUKBFO.js +391 -0
- package/bundle/{chunk-EQSLZT5Z.js → chunk-VUMF52YD.js} +271 -81
- package/bundle/{chunk-5QI3ZXQB.js → chunk-WGWUS5AF.js} +67 -507
- package/bundle/{chunk-TBBDQEFQ.js → chunk-WTLXL6OZ.js} +3 -3
- package/bundle/{cleanup-3COTQVPP.js → cleanup-GQXJGC2H.js} +3 -3
- package/bundle/{cleanup-FIE6MCAE.js → cleanup-OSSEOJVY.js} +3 -3
- package/bundle/{cleanup-PREOBLFK.js → cleanup-TDBASRR5.js} +3 -3
- package/bundle/{cleanup-YY2EUT56.js → cleanup-XLWNSNLT.js} +3 -3
- package/bundle/{core-GZOFEER4.js → core-JH4LXS4F.js} +8 -2
- package/bundle/{devtoolsService-QXOHXSMJ.js → devtoolsService-DFWZ34A5.js} +3 -3
- package/bundle/{devtoolsService-DV36S632.js → devtoolsService-KZLK5WRW.js} +3 -3
- package/bundle/{devtoolsService-JPBL5I7F.js → devtoolsService-XIWMIEMB.js} +3 -3
- package/bundle/{devtoolsService-M4LZEBZD.js → devtoolsService-ZV5MJUBY.js} +3 -3
- package/bundle/{dist-HASTHPE3.js → dist-ATBEVH4R.js} +8 -2
- package/bundle/{dist-JVRDP7SO.js → dist-BOCIGIGG.js} +8 -2
- package/bundle/{dist-NSJ6AA4L.js → dist-TDGPCKNF.js} +8 -2
- package/bundle/docs/changelogs/index.md +18 -0
- package/bundle/docs/changelogs/latest.md +167 -242
- package/bundle/docs/changelogs/preview.md +99 -385
- package/bundle/docs/cli/cli-reference.md +1 -0
- package/bundle/docs/cli/creating-skills.md +165 -38
- package/bundle/docs/cli/custom-commands.md +1 -0
- package/bundle/docs/cli/model-routing.md +3 -3
- package/bundle/docs/cli/plan-mode.md +2 -1
- package/bundle/docs/cli/skills-best-practices.md +78 -0
- package/bundle/docs/cli/skills.md +98 -93
- package/bundle/docs/cli/tutorials/session-management.md +13 -0
- package/bundle/docs/cli/tutorials/skills-getting-started.md +140 -92
- package/bundle/docs/cli/using-agent-skills.md +89 -0
- package/bundle/docs/core/gemma-setup.md +83 -0
- package/bundle/docs/core/index.md +3 -2
- package/bundle/docs/core/local-model-routing.md +14 -7
- package/bundle/docs/reference/commands.md +14 -4
- package/bundle/docs/reference/configuration.md +76 -4
- package/bundle/docs/reference/keyboard-shortcuts.md +1 -1
- package/bundle/docs/reference/policy-engine.md +14 -3
- package/bundle/docs/sidebar.json +24 -2
- package/bundle/docs/tools/activate-skill.md +1 -1
- package/bundle/{gemini-IGRTXHCM.js → gemini-ETBA6M7V.js} +1067 -850
- package/bundle/{gemini-KIM7O55W.js → gemini-FUGMMZB7.js} +1067 -850
- package/bundle/{gemini-SFFHSCEY.js → gemini-QDNEMFTK.js} +1067 -850
- package/bundle/{gemini-FTUVOUHP.js → gemini-TZ26TZKD.js} +1067 -848
- package/bundle/gemini.js +20 -13
- package/bundle/{interactiveCli-LTPR447O.js → interactiveCli-74QXEIGP.js} +682 -609
- package/bundle/{interactiveCli-K4FIT7TA.js → interactiveCli-IBVICRF7.js} +682 -609
- package/bundle/{interactiveCli-7HPLINVC.js → interactiveCli-OKS4NPC7.js} +682 -609
- package/bundle/{interactiveCli-JOX7MFFH.js → interactiveCli-ZS4ZQWNV.js} +682 -609
- package/bundle/{liteRtServerManager-BENLLSF2.js → liteRtServerManager-I5CSGWRL.js} +5 -4
- package/bundle/{liteRtServerManager-KDO6UAQ5.js → liteRtServerManager-IDNLXYHP.js} +5 -4
- package/bundle/{liteRtServerManager-MQIQXXZQ.js → liteRtServerManager-J33F7APP.js} +5 -4
- package/bundle/{liteRtServerManager-VGYEHFUE.js → liteRtServerManager-RJF74BUI.js} +5 -4
- package/bundle/{memoryDiscovery-FN3IAPBT.js → memoryDiscovery-LIJKMASE.js} +1 -1
- package/bundle/{memoryDiscovery-R7PAR2NY.js → memoryDiscovery-WVH7QDNJ.js} +1 -1
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +1 -1
- package/bundle/{oauth2-provider-JPCBTTS2.js → oauth2-provider-7UM3XCQ4.js} +2 -2
- package/bundle/{oauth2-provider-EWMNT6D6.js → oauth2-provider-BFW5HE2U.js} +2 -2
- package/bundle/{oauth2-provider-M3WV4GJM.js → oauth2-provider-LONBXYVY.js} +2 -2
- package/bundle/{oauth2-provider-UVXCM7G3.js → oauth2-provider-N65VILW5.js} +2 -2
- package/bundle/{start-4MSISK2E.js → start-3B4FNGNM.js} +7 -6
- package/bundle/{start-ATOE57Z4.js → start-3OM5OXD2.js} +7 -6
- package/bundle/{start-AVEON6UU.js → start-N3S3BSEF.js} +7 -6
- package/bundle/{start-KBB2UTE5.js → start-PLPHF43U.js} +7 -6
- package/package.json +1 -1
|
@@ -1,6 +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
|
AuthProviderType,
|
|
4
|
+
AuthType,
|
|
4
5
|
CoreToolCallStatus,
|
|
5
6
|
DEFAULT_MODEL_CONFIGS,
|
|
6
7
|
DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
|
|
@@ -21,7 +22,7 @@ import {
|
|
|
21
22
|
require_strip_json_comments,
|
|
22
23
|
sanitizeFilenamePart,
|
|
23
24
|
stripAnsi
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SYZNFSS3.js";
|
|
25
26
|
import {
|
|
26
27
|
CoreEvent,
|
|
27
28
|
FatalConfigError,
|
|
@@ -32,466 +33,13 @@ import {
|
|
|
32
33
|
external_exports,
|
|
33
34
|
getErrorMessage,
|
|
34
35
|
homedir
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-FABHOVMY.js";
|
|
36
37
|
import {
|
|
37
38
|
__commonJS,
|
|
38
39
|
__require,
|
|
39
40
|
__toESM
|
|
40
41
|
} from "./chunk-34MYV7JD.js";
|
|
41
42
|
|
|
42
|
-
// node_modules/react/cjs/react.production.js
|
|
43
|
-
var require_react_production = __commonJS({
|
|
44
|
-
"node_modules/react/cjs/react.production.js"(exports) {
|
|
45
|
-
"use strict";
|
|
46
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
47
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
48
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
49
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
50
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
51
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
52
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
53
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
54
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
55
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
56
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
57
|
-
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
58
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
59
|
-
function getIteratorFn(maybeIterable) {
|
|
60
|
-
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
61
|
-
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
62
|
-
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
63
|
-
}
|
|
64
|
-
var ReactNoopUpdateQueue = {
|
|
65
|
-
isMounted: function() {
|
|
66
|
-
return false;
|
|
67
|
-
},
|
|
68
|
-
enqueueForceUpdate: function() {
|
|
69
|
-
},
|
|
70
|
-
enqueueReplaceState: function() {
|
|
71
|
-
},
|
|
72
|
-
enqueueSetState: function() {
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
var assign = Object.assign;
|
|
76
|
-
var emptyObject = {};
|
|
77
|
-
function Component(props, context, updater) {
|
|
78
|
-
this.props = props;
|
|
79
|
-
this.context = context;
|
|
80
|
-
this.refs = emptyObject;
|
|
81
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
82
|
-
}
|
|
83
|
-
Component.prototype.isReactComponent = {};
|
|
84
|
-
Component.prototype.setState = function(partialState, callback) {
|
|
85
|
-
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
86
|
-
throw Error(
|
|
87
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
88
|
-
);
|
|
89
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
90
|
-
};
|
|
91
|
-
Component.prototype.forceUpdate = function(callback) {
|
|
92
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
93
|
-
};
|
|
94
|
-
function ComponentDummy() {
|
|
95
|
-
}
|
|
96
|
-
ComponentDummy.prototype = Component.prototype;
|
|
97
|
-
function PureComponent(props, context, updater) {
|
|
98
|
-
this.props = props;
|
|
99
|
-
this.context = context;
|
|
100
|
-
this.refs = emptyObject;
|
|
101
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
102
|
-
}
|
|
103
|
-
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
104
|
-
pureComponentPrototype.constructor = PureComponent;
|
|
105
|
-
assign(pureComponentPrototype, Component.prototype);
|
|
106
|
-
pureComponentPrototype.isPureReactComponent = true;
|
|
107
|
-
var isArrayImpl = Array.isArray;
|
|
108
|
-
function noop() {
|
|
109
|
-
}
|
|
110
|
-
var ReactSharedInternals = { H: null, A: null, T: null, S: null };
|
|
111
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
112
|
-
function ReactElement(type, key, props) {
|
|
113
|
-
var refProp = props.ref;
|
|
114
|
-
return {
|
|
115
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
116
|
-
type,
|
|
117
|
-
key,
|
|
118
|
-
ref: void 0 !== refProp ? refProp : null,
|
|
119
|
-
props
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
123
|
-
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
124
|
-
}
|
|
125
|
-
function isValidElement(object) {
|
|
126
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
127
|
-
}
|
|
128
|
-
function escape(key) {
|
|
129
|
-
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
130
|
-
return "$" + key.replace(/[=:]/g, function(match) {
|
|
131
|
-
return escaperLookup[match];
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
135
|
-
function getElementKey(element, index) {
|
|
136
|
-
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
137
|
-
}
|
|
138
|
-
function resolveThenable(thenable) {
|
|
139
|
-
switch (thenable.status) {
|
|
140
|
-
case "fulfilled":
|
|
141
|
-
return thenable.value;
|
|
142
|
-
case "rejected":
|
|
143
|
-
throw thenable.reason;
|
|
144
|
-
default:
|
|
145
|
-
switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
|
|
146
|
-
function(fulfilledValue) {
|
|
147
|
-
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
148
|
-
},
|
|
149
|
-
function(error) {
|
|
150
|
-
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
151
|
-
}
|
|
152
|
-
)), thenable.status) {
|
|
153
|
-
case "fulfilled":
|
|
154
|
-
return thenable.value;
|
|
155
|
-
case "rejected":
|
|
156
|
-
throw thenable.reason;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
throw thenable;
|
|
160
|
-
}
|
|
161
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
162
|
-
var type = typeof children;
|
|
163
|
-
if ("undefined" === type || "boolean" === type) children = null;
|
|
164
|
-
var invokeCallback = false;
|
|
165
|
-
if (null === children) invokeCallback = true;
|
|
166
|
-
else
|
|
167
|
-
switch (type) {
|
|
168
|
-
case "bigint":
|
|
169
|
-
case "string":
|
|
170
|
-
case "number":
|
|
171
|
-
invokeCallback = true;
|
|
172
|
-
break;
|
|
173
|
-
case "object":
|
|
174
|
-
switch (children.$$typeof) {
|
|
175
|
-
case REACT_ELEMENT_TYPE:
|
|
176
|
-
case REACT_PORTAL_TYPE:
|
|
177
|
-
invokeCallback = true;
|
|
178
|
-
break;
|
|
179
|
-
case REACT_LAZY_TYPE:
|
|
180
|
-
return invokeCallback = children._init, mapIntoArray(
|
|
181
|
-
invokeCallback(children._payload),
|
|
182
|
-
array,
|
|
183
|
-
escapedPrefix,
|
|
184
|
-
nameSoFar,
|
|
185
|
-
callback
|
|
186
|
-
);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
if (invokeCallback)
|
|
190
|
-
return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
191
|
-
return c;
|
|
192
|
-
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
|
|
193
|
-
callback,
|
|
194
|
-
escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
|
|
195
|
-
userProvidedKeyEscapeRegex,
|
|
196
|
-
"$&/"
|
|
197
|
-
) + "/") + invokeCallback
|
|
198
|
-
)), array.push(callback)), 1;
|
|
199
|
-
invokeCallback = 0;
|
|
200
|
-
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
201
|
-
if (isArrayImpl(children))
|
|
202
|
-
for (var i = 0; i < children.length; i++)
|
|
203
|
-
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
204
|
-
nameSoFar,
|
|
205
|
-
array,
|
|
206
|
-
escapedPrefix,
|
|
207
|
-
type,
|
|
208
|
-
callback
|
|
209
|
-
);
|
|
210
|
-
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
211
|
-
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
212
|
-
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
213
|
-
nameSoFar,
|
|
214
|
-
array,
|
|
215
|
-
escapedPrefix,
|
|
216
|
-
type,
|
|
217
|
-
callback
|
|
218
|
-
);
|
|
219
|
-
else if ("object" === type) {
|
|
220
|
-
if ("function" === typeof children.then)
|
|
221
|
-
return mapIntoArray(
|
|
222
|
-
resolveThenable(children),
|
|
223
|
-
array,
|
|
224
|
-
escapedPrefix,
|
|
225
|
-
nameSoFar,
|
|
226
|
-
callback
|
|
227
|
-
);
|
|
228
|
-
array = String(children);
|
|
229
|
-
throw Error(
|
|
230
|
-
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
|
231
|
-
);
|
|
232
|
-
}
|
|
233
|
-
return invokeCallback;
|
|
234
|
-
}
|
|
235
|
-
function mapChildren(children, func, context) {
|
|
236
|
-
if (null == children) return children;
|
|
237
|
-
var result = [], count = 0;
|
|
238
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
239
|
-
return func.call(context, child, count++);
|
|
240
|
-
});
|
|
241
|
-
return result;
|
|
242
|
-
}
|
|
243
|
-
function lazyInitializer(payload) {
|
|
244
|
-
if (-1 === payload._status) {
|
|
245
|
-
var ctor = payload._result;
|
|
246
|
-
ctor = ctor();
|
|
247
|
-
ctor.then(
|
|
248
|
-
function(moduleObject) {
|
|
249
|
-
if (0 === payload._status || -1 === payload._status)
|
|
250
|
-
payload._status = 1, payload._result = moduleObject;
|
|
251
|
-
},
|
|
252
|
-
function(error) {
|
|
253
|
-
if (0 === payload._status || -1 === payload._status)
|
|
254
|
-
payload._status = 2, payload._result = error;
|
|
255
|
-
}
|
|
256
|
-
);
|
|
257
|
-
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
258
|
-
}
|
|
259
|
-
if (1 === payload._status) return payload._result.default;
|
|
260
|
-
throw payload._result;
|
|
261
|
-
}
|
|
262
|
-
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
263
|
-
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
264
|
-
var event = new window.ErrorEvent("error", {
|
|
265
|
-
bubbles: true,
|
|
266
|
-
cancelable: true,
|
|
267
|
-
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
268
|
-
error
|
|
269
|
-
});
|
|
270
|
-
if (!window.dispatchEvent(event)) return;
|
|
271
|
-
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
272
|
-
process.emit("uncaughtException", error);
|
|
273
|
-
return;
|
|
274
|
-
}
|
|
275
|
-
console.error(error);
|
|
276
|
-
};
|
|
277
|
-
var Children = {
|
|
278
|
-
map: mapChildren,
|
|
279
|
-
forEach: function(children, forEachFunc, forEachContext) {
|
|
280
|
-
mapChildren(
|
|
281
|
-
children,
|
|
282
|
-
function() {
|
|
283
|
-
forEachFunc.apply(this, arguments);
|
|
284
|
-
},
|
|
285
|
-
forEachContext
|
|
286
|
-
);
|
|
287
|
-
},
|
|
288
|
-
count: function(children) {
|
|
289
|
-
var n = 0;
|
|
290
|
-
mapChildren(children, function() {
|
|
291
|
-
n++;
|
|
292
|
-
});
|
|
293
|
-
return n;
|
|
294
|
-
},
|
|
295
|
-
toArray: function(children) {
|
|
296
|
-
return mapChildren(children, function(child) {
|
|
297
|
-
return child;
|
|
298
|
-
}) || [];
|
|
299
|
-
},
|
|
300
|
-
only: function(children) {
|
|
301
|
-
if (!isValidElement(children))
|
|
302
|
-
throw Error(
|
|
303
|
-
"React.Children.only expected to receive a single React element child."
|
|
304
|
-
);
|
|
305
|
-
return children;
|
|
306
|
-
}
|
|
307
|
-
};
|
|
308
|
-
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
309
|
-
exports.Children = Children;
|
|
310
|
-
exports.Component = Component;
|
|
311
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
312
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
313
|
-
exports.PureComponent = PureComponent;
|
|
314
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
315
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
316
|
-
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
317
|
-
exports.__COMPILER_RUNTIME = {
|
|
318
|
-
__proto__: null,
|
|
319
|
-
c: function(size) {
|
|
320
|
-
return ReactSharedInternals.H.useMemoCache(size);
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
|
-
exports.cache = function(fn) {
|
|
324
|
-
return function() {
|
|
325
|
-
return fn.apply(null, arguments);
|
|
326
|
-
};
|
|
327
|
-
};
|
|
328
|
-
exports.cacheSignal = function() {
|
|
329
|
-
return null;
|
|
330
|
-
};
|
|
331
|
-
exports.cloneElement = function(element, config, children) {
|
|
332
|
-
if (null === element || void 0 === element)
|
|
333
|
-
throw Error(
|
|
334
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
335
|
-
);
|
|
336
|
-
var props = assign({}, element.props), key = element.key;
|
|
337
|
-
if (null != config)
|
|
338
|
-
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
339
|
-
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
340
|
-
var propName = arguments.length - 2;
|
|
341
|
-
if (1 === propName) props.children = children;
|
|
342
|
-
else if (1 < propName) {
|
|
343
|
-
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
344
|
-
childArray[i] = arguments[i + 2];
|
|
345
|
-
props.children = childArray;
|
|
346
|
-
}
|
|
347
|
-
return ReactElement(element.type, key, props);
|
|
348
|
-
};
|
|
349
|
-
exports.createContext = function(defaultValue) {
|
|
350
|
-
defaultValue = {
|
|
351
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
352
|
-
_currentValue: defaultValue,
|
|
353
|
-
_currentValue2: defaultValue,
|
|
354
|
-
_threadCount: 0,
|
|
355
|
-
Provider: null,
|
|
356
|
-
Consumer: null
|
|
357
|
-
};
|
|
358
|
-
defaultValue.Provider = defaultValue;
|
|
359
|
-
defaultValue.Consumer = {
|
|
360
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
361
|
-
_context: defaultValue
|
|
362
|
-
};
|
|
363
|
-
return defaultValue;
|
|
364
|
-
};
|
|
365
|
-
exports.createElement = function(type, config, children) {
|
|
366
|
-
var propName, props = {}, key = null;
|
|
367
|
-
if (null != config)
|
|
368
|
-
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
369
|
-
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
370
|
-
var childrenLength = arguments.length - 2;
|
|
371
|
-
if (1 === childrenLength) props.children = children;
|
|
372
|
-
else if (1 < childrenLength) {
|
|
373
|
-
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
374
|
-
childArray[i] = arguments[i + 2];
|
|
375
|
-
props.children = childArray;
|
|
376
|
-
}
|
|
377
|
-
if (type && type.defaultProps)
|
|
378
|
-
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
379
|
-
void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
380
|
-
return ReactElement(type, key, props);
|
|
381
|
-
};
|
|
382
|
-
exports.createRef = function() {
|
|
383
|
-
return { current: null };
|
|
384
|
-
};
|
|
385
|
-
exports.forwardRef = function(render) {
|
|
386
|
-
return { $$typeof: REACT_FORWARD_REF_TYPE, render };
|
|
387
|
-
};
|
|
388
|
-
exports.isValidElement = isValidElement;
|
|
389
|
-
exports.lazy = function(ctor) {
|
|
390
|
-
return {
|
|
391
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
392
|
-
_payload: { _status: -1, _result: ctor },
|
|
393
|
-
_init: lazyInitializer
|
|
394
|
-
};
|
|
395
|
-
};
|
|
396
|
-
exports.memo = function(type, compare) {
|
|
397
|
-
return {
|
|
398
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
399
|
-
type,
|
|
400
|
-
compare: void 0 === compare ? null : compare
|
|
401
|
-
};
|
|
402
|
-
};
|
|
403
|
-
exports.startTransition = function(scope) {
|
|
404
|
-
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
405
|
-
ReactSharedInternals.T = currentTransition;
|
|
406
|
-
try {
|
|
407
|
-
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
408
|
-
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
409
|
-
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
410
|
-
} catch (error) {
|
|
411
|
-
reportGlobalError(error);
|
|
412
|
-
} finally {
|
|
413
|
-
null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
414
|
-
}
|
|
415
|
-
};
|
|
416
|
-
exports.unstable_useCacheRefresh = function() {
|
|
417
|
-
return ReactSharedInternals.H.useCacheRefresh();
|
|
418
|
-
};
|
|
419
|
-
exports.use = function(usable) {
|
|
420
|
-
return ReactSharedInternals.H.use(usable);
|
|
421
|
-
};
|
|
422
|
-
exports.useActionState = function(action, initialState, permalink) {
|
|
423
|
-
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
424
|
-
};
|
|
425
|
-
exports.useCallback = function(callback, deps) {
|
|
426
|
-
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
427
|
-
};
|
|
428
|
-
exports.useContext = function(Context) {
|
|
429
|
-
return ReactSharedInternals.H.useContext(Context);
|
|
430
|
-
};
|
|
431
|
-
exports.useDebugValue = function() {
|
|
432
|
-
};
|
|
433
|
-
exports.useDeferredValue = function(value, initialValue) {
|
|
434
|
-
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
435
|
-
};
|
|
436
|
-
exports.useEffect = function(create, deps) {
|
|
437
|
-
return ReactSharedInternals.H.useEffect(create, deps);
|
|
438
|
-
};
|
|
439
|
-
exports.useEffectEvent = function(callback) {
|
|
440
|
-
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
441
|
-
};
|
|
442
|
-
exports.useId = function() {
|
|
443
|
-
return ReactSharedInternals.H.useId();
|
|
444
|
-
};
|
|
445
|
-
exports.useImperativeHandle = function(ref, create, deps) {
|
|
446
|
-
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
447
|
-
};
|
|
448
|
-
exports.useInsertionEffect = function(create, deps) {
|
|
449
|
-
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
450
|
-
};
|
|
451
|
-
exports.useLayoutEffect = function(create, deps) {
|
|
452
|
-
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
453
|
-
};
|
|
454
|
-
exports.useMemo = function(create, deps) {
|
|
455
|
-
return ReactSharedInternals.H.useMemo(create, deps);
|
|
456
|
-
};
|
|
457
|
-
exports.useOptimistic = function(passthrough, reducer) {
|
|
458
|
-
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
459
|
-
};
|
|
460
|
-
exports.useReducer = function(reducer, initialArg, init) {
|
|
461
|
-
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
462
|
-
};
|
|
463
|
-
exports.useRef = function(initialValue) {
|
|
464
|
-
return ReactSharedInternals.H.useRef(initialValue);
|
|
465
|
-
};
|
|
466
|
-
exports.useState = function(initialState) {
|
|
467
|
-
return ReactSharedInternals.H.useState(initialState);
|
|
468
|
-
};
|
|
469
|
-
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
470
|
-
return ReactSharedInternals.H.useSyncExternalStore(
|
|
471
|
-
subscribe,
|
|
472
|
-
getSnapshot,
|
|
473
|
-
getServerSnapshot
|
|
474
|
-
);
|
|
475
|
-
};
|
|
476
|
-
exports.useTransition = function() {
|
|
477
|
-
return ReactSharedInternals.H.useTransition();
|
|
478
|
-
};
|
|
479
|
-
exports.version = "19.2.4";
|
|
480
|
-
}
|
|
481
|
-
});
|
|
482
|
-
|
|
483
|
-
// node_modules/react/index.js
|
|
484
|
-
var require_react = __commonJS({
|
|
485
|
-
"node_modules/react/index.js"(exports, module) {
|
|
486
|
-
"use strict";
|
|
487
|
-
if (true) {
|
|
488
|
-
module.exports = require_react_production();
|
|
489
|
-
} else {
|
|
490
|
-
module.exports = null;
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
});
|
|
494
|
-
|
|
495
43
|
// node_modules/dotenv/package.json
|
|
496
44
|
var require_package = __commonJS({
|
|
497
45
|
"node_modules/dotenv/package.json"(exports, module) {
|
|
@@ -10062,31 +9610,6 @@ function isWorkspaceTrusted(settings, workspaceDir = process.cwd(), headlessOpti
|
|
|
10062
9610
|
});
|
|
10063
9611
|
}
|
|
10064
9612
|
|
|
10065
|
-
// packages/cli/src/ui/types.ts
|
|
10066
|
-
var import_react = __toESM(require_react(), 1);
|
|
10067
|
-
function mapCoreStatusToDisplayStatus(coreStatus) {
|
|
10068
|
-
switch (coreStatus) {
|
|
10069
|
-
case CoreToolCallStatus.Validating:
|
|
10070
|
-
return "Pending" /* Pending */;
|
|
10071
|
-
case CoreToolCallStatus.AwaitingApproval:
|
|
10072
|
-
return "Confirming" /* Confirming */;
|
|
10073
|
-
case CoreToolCallStatus.Executing:
|
|
10074
|
-
return "Executing" /* Executing */;
|
|
10075
|
-
case CoreToolCallStatus.Success:
|
|
10076
|
-
return "Success" /* Success */;
|
|
10077
|
-
case CoreToolCallStatus.Cancelled:
|
|
10078
|
-
return "Canceled" /* Canceled */;
|
|
10079
|
-
case CoreToolCallStatus.Error:
|
|
10080
|
-
return "Error" /* Error */;
|
|
10081
|
-
case CoreToolCallStatus.Scheduled:
|
|
10082
|
-
return "Pending" /* Pending */;
|
|
10083
|
-
default:
|
|
10084
|
-
return checkExhaustive(coreStatus);
|
|
10085
|
-
}
|
|
10086
|
-
}
|
|
10087
|
-
var isTodoList = (res) => typeof res === "object" && res !== null && "todos" in res;
|
|
10088
|
-
var emptyIcon = " ";
|
|
10089
|
-
|
|
10090
9613
|
// packages/cli/src/utils/sessionUtils.ts
|
|
10091
9614
|
import * as fs from "node:fs/promises";
|
|
10092
9615
|
import path from "node:path";
|
|
@@ -10712,9 +10235,18 @@ var MULTIPLIERS = {
|
|
|
10712
10235
|
m: 30 * 24 * 60 * 60 * 1e3
|
|
10713
10236
|
// months (30 days) to ms
|
|
10714
10237
|
};
|
|
10715
|
-
var SHORT_ID_REGEX = /-([a-zA-Z0-9]{8})\.
|
|
10238
|
+
var SHORT_ID_REGEX = /-([a-zA-Z0-9]{8})\.jsonl?$/;
|
|
10239
|
+
function hasProperty(obj, prop) {
|
|
10240
|
+
return obj !== null && typeof obj === "object" && prop in obj;
|
|
10241
|
+
}
|
|
10242
|
+
function isStringProperty(obj, prop) {
|
|
10243
|
+
return hasProperty(obj, prop) && typeof obj[prop] === "string";
|
|
10244
|
+
}
|
|
10245
|
+
function isSessionIdRecord(record) {
|
|
10246
|
+
return isStringProperty(record, "sessionId");
|
|
10247
|
+
}
|
|
10716
10248
|
function deriveShortIdFromFileName(fileName) {
|
|
10717
|
-
if (fileName.startsWith(SESSION_FILE_PREFIX) && fileName.endsWith(".json")) {
|
|
10249
|
+
if (fileName.startsWith(SESSION_FILE_PREFIX) && (fileName.endsWith(".json") || fileName.endsWith(".jsonl"))) {
|
|
10718
10250
|
const match = fileName.match(SHORT_ID_REGEX);
|
|
10719
10251
|
return match ? match[1] : null;
|
|
10720
10252
|
}
|
|
@@ -10767,20 +10299,41 @@ async function cleanupExpiredSessions(config, settings) {
|
|
|
10767
10299
|
}
|
|
10768
10300
|
processedShortIds.add(shortId);
|
|
10769
10301
|
const matchingFiles = allFiles.map((f) => f.fileName).filter(
|
|
10770
|
-
(f) => f.startsWith(SESSION_FILE_PREFIX) && f.endsWith(`-${shortId}.json`)
|
|
10302
|
+
(f) => f.startsWith(SESSION_FILE_PREFIX) && (f.endsWith(`-${shortId}.json`) || f.endsWith(`-${shortId}.jsonl`))
|
|
10771
10303
|
);
|
|
10772
10304
|
for (const file of matchingFiles) {
|
|
10773
10305
|
const filePath = path2.join(chatsDir, file);
|
|
10774
10306
|
let fullSessionId;
|
|
10775
10307
|
try {
|
|
10776
10308
|
try {
|
|
10777
|
-
const
|
|
10778
|
-
const
|
|
10779
|
-
|
|
10780
|
-
|
|
10781
|
-
|
|
10782
|
-
|
|
10783
|
-
|
|
10309
|
+
const CHUNK_SIZE = 4096;
|
|
10310
|
+
const buffer = Buffer.alloc(CHUNK_SIZE);
|
|
10311
|
+
let fd;
|
|
10312
|
+
try {
|
|
10313
|
+
fd = await fs2.open(filePath, "r");
|
|
10314
|
+
const { bytesRead } = await fd.read(buffer, 0, CHUNK_SIZE, 0);
|
|
10315
|
+
if (bytesRead > 0) {
|
|
10316
|
+
const contentChunk = buffer.toString("utf8", 0, bytesRead);
|
|
10317
|
+
const newlineIndex = contentChunk.indexOf("\n");
|
|
10318
|
+
const firstLine = newlineIndex !== -1 ? contentChunk.substring(0, newlineIndex) : contentChunk;
|
|
10319
|
+
try {
|
|
10320
|
+
const record = JSON.parse(firstLine);
|
|
10321
|
+
if (isSessionIdRecord(record)) {
|
|
10322
|
+
fullSessionId = record.sessionId;
|
|
10323
|
+
}
|
|
10324
|
+
} catch {
|
|
10325
|
+
}
|
|
10326
|
+
}
|
|
10327
|
+
} finally {
|
|
10328
|
+
if (fd !== void 0) {
|
|
10329
|
+
await fd.close();
|
|
10330
|
+
}
|
|
10331
|
+
}
|
|
10332
|
+
if (!fullSessionId) {
|
|
10333
|
+
const fileContent = await fs2.readFile(filePath, "utf8");
|
|
10334
|
+
const content = JSON.parse(fileContent);
|
|
10335
|
+
if (isSessionIdRecord(content)) {
|
|
10336
|
+
fullSessionId = content.sessionId;
|
|
10784
10337
|
}
|
|
10785
10338
|
}
|
|
10786
10339
|
} catch {
|
|
@@ -16759,7 +16312,23 @@ function findEnvFile(startDir, isTrusted) {
|
|
|
16759
16312
|
currentDir = parentDir;
|
|
16760
16313
|
}
|
|
16761
16314
|
}
|
|
16762
|
-
|
|
16315
|
+
var USER_GCP_PROJECT = "_GEMINI_USER_GCP_PROJECT";
|
|
16316
|
+
function setUpCloudShellEnvironment(envFilePath, isTrusted, isSandboxed, selectedAuthType) {
|
|
16317
|
+
if (selectedAuthType === AuthType.USE_VERTEX_AI) {
|
|
16318
|
+
const saved = process2.env[USER_GCP_PROJECT];
|
|
16319
|
+
if (saved !== void 0) {
|
|
16320
|
+
process2.env["GOOGLE_CLOUD_PROJECT"] = saved;
|
|
16321
|
+
} else if (process2.env["GOOGLE_CLOUD_PROJECT"] === "cloudshell-gca") {
|
|
16322
|
+
delete process2.env["GOOGLE_CLOUD_PROJECT"];
|
|
16323
|
+
}
|
|
16324
|
+
return;
|
|
16325
|
+
}
|
|
16326
|
+
if (!process2.env[USER_GCP_PROJECT]) {
|
|
16327
|
+
const current = process2.env["GOOGLE_CLOUD_PROJECT"];
|
|
16328
|
+
if (current && current !== "cloudshell-gca") {
|
|
16329
|
+
process2.env[USER_GCP_PROJECT] = current;
|
|
16330
|
+
}
|
|
16331
|
+
}
|
|
16763
16332
|
let value = "cloudshell-gca";
|
|
16764
16333
|
if (envFilePath && fs4.existsSync(envFilePath)) {
|
|
16765
16334
|
const envFileContent = fs4.readFileSync(envFilePath);
|
|
@@ -16782,7 +16351,13 @@ function loadEnvironment(settings, workspaceDir, isWorkspaceTrustedFn = isWorksp
|
|
|
16782
16351
|
const relevantArgs = doubleDashIndex === -1 ? args : args.slice(0, doubleDashIndex);
|
|
16783
16352
|
const isSandboxed = !!settings.tools?.sandbox || relevantArgs.includes("-s") || relevantArgs.includes("--sandbox");
|
|
16784
16353
|
if (process2.env["CLOUD_SHELL"] === "true") {
|
|
16785
|
-
|
|
16354
|
+
const selectedAuthType = settings.security?.auth?.selectedType;
|
|
16355
|
+
setUpCloudShellEnvironment(
|
|
16356
|
+
envFilePath,
|
|
16357
|
+
isTrusted,
|
|
16358
|
+
isSandboxed,
|
|
16359
|
+
selectedAuthType
|
|
16360
|
+
);
|
|
16786
16361
|
}
|
|
16787
16362
|
if (envFilePath) {
|
|
16788
16363
|
try {
|
|
@@ -17579,10 +17154,6 @@ export {
|
|
|
17579
17154
|
normalizeEscapedNewlines,
|
|
17580
17155
|
getCachedStringWidth,
|
|
17581
17156
|
escapeAnsiCtrlCodes,
|
|
17582
|
-
require_react,
|
|
17583
|
-
mapCoreStatusToDisplayStatus,
|
|
17584
|
-
isTodoList,
|
|
17585
|
-
emptyIcon,
|
|
17586
17157
|
RESUME_LATEST,
|
|
17587
17158
|
SessionError,
|
|
17588
17159
|
cleanMessage,
|
|
@@ -17635,17 +17206,6 @@ export {
|
|
|
17635
17206
|
*/
|
|
17636
17207
|
/*! Bundled license information:
|
|
17637
17208
|
|
|
17638
|
-
react/cjs/react.production.js:
|
|
17639
|
-
(**
|
|
17640
|
-
* @license React
|
|
17641
|
-
* react.production.js
|
|
17642
|
-
*
|
|
17643
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
17644
|
-
*
|
|
17645
|
-
* This source code is licensed under the MIT license found in the
|
|
17646
|
-
* LICENSE file in the root directory of this source tree.
|
|
17647
|
-
*)
|
|
17648
|
-
|
|
17649
17209
|
repeat-string/index.js:
|
|
17650
17210
|
(*!
|
|
17651
17211
|
* repeat-string <https://github.com/jonschlinkert/repeat-string>
|