@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
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
require_strip_json_comments,
|
|
21
21
|
sanitizeFilenamePart,
|
|
22
22
|
stripAnsi
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VUMF52YD.js";
|
|
24
24
|
import {
|
|
25
25
|
FatalConfigError,
|
|
26
26
|
GEMINI_DIR,
|
|
@@ -30,466 +30,13 @@ import {
|
|
|
30
30
|
external_exports,
|
|
31
31
|
getErrorMessage,
|
|
32
32
|
homedir
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-533APETE.js";
|
|
34
34
|
import {
|
|
35
35
|
__commonJS,
|
|
36
36
|
__require,
|
|
37
37
|
__toESM
|
|
38
38
|
} from "./chunk-34MYV7JD.js";
|
|
39
39
|
|
|
40
|
-
// node_modules/react/cjs/react.production.js
|
|
41
|
-
var require_react_production = __commonJS({
|
|
42
|
-
"node_modules/react/cjs/react.production.js"(exports) {
|
|
43
|
-
"use strict";
|
|
44
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
45
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
46
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
47
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
48
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
49
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
50
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
51
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
52
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
53
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
54
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
55
|
-
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
56
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
57
|
-
function getIteratorFn(maybeIterable) {
|
|
58
|
-
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
59
|
-
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
60
|
-
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
61
|
-
}
|
|
62
|
-
var ReactNoopUpdateQueue = {
|
|
63
|
-
isMounted: function() {
|
|
64
|
-
return false;
|
|
65
|
-
},
|
|
66
|
-
enqueueForceUpdate: function() {
|
|
67
|
-
},
|
|
68
|
-
enqueueReplaceState: function() {
|
|
69
|
-
},
|
|
70
|
-
enqueueSetState: function() {
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
var assign = Object.assign;
|
|
74
|
-
var emptyObject = {};
|
|
75
|
-
function Component(props, context, updater) {
|
|
76
|
-
this.props = props;
|
|
77
|
-
this.context = context;
|
|
78
|
-
this.refs = emptyObject;
|
|
79
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
80
|
-
}
|
|
81
|
-
Component.prototype.isReactComponent = {};
|
|
82
|
-
Component.prototype.setState = function(partialState, callback) {
|
|
83
|
-
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
84
|
-
throw Error(
|
|
85
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
86
|
-
);
|
|
87
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
88
|
-
};
|
|
89
|
-
Component.prototype.forceUpdate = function(callback) {
|
|
90
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
91
|
-
};
|
|
92
|
-
function ComponentDummy() {
|
|
93
|
-
}
|
|
94
|
-
ComponentDummy.prototype = Component.prototype;
|
|
95
|
-
function PureComponent(props, context, updater) {
|
|
96
|
-
this.props = props;
|
|
97
|
-
this.context = context;
|
|
98
|
-
this.refs = emptyObject;
|
|
99
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
100
|
-
}
|
|
101
|
-
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
102
|
-
pureComponentPrototype.constructor = PureComponent;
|
|
103
|
-
assign(pureComponentPrototype, Component.prototype);
|
|
104
|
-
pureComponentPrototype.isPureReactComponent = true;
|
|
105
|
-
var isArrayImpl = Array.isArray;
|
|
106
|
-
function noop() {
|
|
107
|
-
}
|
|
108
|
-
var ReactSharedInternals = { H: null, A: null, T: null, S: null };
|
|
109
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
110
|
-
function ReactElement(type, key, props) {
|
|
111
|
-
var refProp = props.ref;
|
|
112
|
-
return {
|
|
113
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
114
|
-
type,
|
|
115
|
-
key,
|
|
116
|
-
ref: void 0 !== refProp ? refProp : null,
|
|
117
|
-
props
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
121
|
-
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
122
|
-
}
|
|
123
|
-
function isValidElement(object) {
|
|
124
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
125
|
-
}
|
|
126
|
-
function escape(key) {
|
|
127
|
-
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
128
|
-
return "$" + key.replace(/[=:]/g, function(match) {
|
|
129
|
-
return escaperLookup[match];
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
133
|
-
function getElementKey(element, index) {
|
|
134
|
-
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
135
|
-
}
|
|
136
|
-
function resolveThenable(thenable) {
|
|
137
|
-
switch (thenable.status) {
|
|
138
|
-
case "fulfilled":
|
|
139
|
-
return thenable.value;
|
|
140
|
-
case "rejected":
|
|
141
|
-
throw thenable.reason;
|
|
142
|
-
default:
|
|
143
|
-
switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
|
|
144
|
-
function(fulfilledValue) {
|
|
145
|
-
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
146
|
-
},
|
|
147
|
-
function(error) {
|
|
148
|
-
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
149
|
-
}
|
|
150
|
-
)), thenable.status) {
|
|
151
|
-
case "fulfilled":
|
|
152
|
-
return thenable.value;
|
|
153
|
-
case "rejected":
|
|
154
|
-
throw thenable.reason;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
throw thenable;
|
|
158
|
-
}
|
|
159
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
160
|
-
var type = typeof children;
|
|
161
|
-
if ("undefined" === type || "boolean" === type) children = null;
|
|
162
|
-
var invokeCallback = false;
|
|
163
|
-
if (null === children) invokeCallback = true;
|
|
164
|
-
else
|
|
165
|
-
switch (type) {
|
|
166
|
-
case "bigint":
|
|
167
|
-
case "string":
|
|
168
|
-
case "number":
|
|
169
|
-
invokeCallback = true;
|
|
170
|
-
break;
|
|
171
|
-
case "object":
|
|
172
|
-
switch (children.$$typeof) {
|
|
173
|
-
case REACT_ELEMENT_TYPE:
|
|
174
|
-
case REACT_PORTAL_TYPE:
|
|
175
|
-
invokeCallback = true;
|
|
176
|
-
break;
|
|
177
|
-
case REACT_LAZY_TYPE:
|
|
178
|
-
return invokeCallback = children._init, mapIntoArray(
|
|
179
|
-
invokeCallback(children._payload),
|
|
180
|
-
array,
|
|
181
|
-
escapedPrefix,
|
|
182
|
-
nameSoFar,
|
|
183
|
-
callback
|
|
184
|
-
);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
if (invokeCallback)
|
|
188
|
-
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) {
|
|
189
|
-
return c;
|
|
190
|
-
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
|
|
191
|
-
callback,
|
|
192
|
-
escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
|
|
193
|
-
userProvidedKeyEscapeRegex,
|
|
194
|
-
"$&/"
|
|
195
|
-
) + "/") + invokeCallback
|
|
196
|
-
)), array.push(callback)), 1;
|
|
197
|
-
invokeCallback = 0;
|
|
198
|
-
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
199
|
-
if (isArrayImpl(children))
|
|
200
|
-
for (var i = 0; i < children.length; i++)
|
|
201
|
-
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
202
|
-
nameSoFar,
|
|
203
|
-
array,
|
|
204
|
-
escapedPrefix,
|
|
205
|
-
type,
|
|
206
|
-
callback
|
|
207
|
-
);
|
|
208
|
-
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
209
|
-
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
210
|
-
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
211
|
-
nameSoFar,
|
|
212
|
-
array,
|
|
213
|
-
escapedPrefix,
|
|
214
|
-
type,
|
|
215
|
-
callback
|
|
216
|
-
);
|
|
217
|
-
else if ("object" === type) {
|
|
218
|
-
if ("function" === typeof children.then)
|
|
219
|
-
return mapIntoArray(
|
|
220
|
-
resolveThenable(children),
|
|
221
|
-
array,
|
|
222
|
-
escapedPrefix,
|
|
223
|
-
nameSoFar,
|
|
224
|
-
callback
|
|
225
|
-
);
|
|
226
|
-
array = String(children);
|
|
227
|
-
throw Error(
|
|
228
|
-
"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."
|
|
229
|
-
);
|
|
230
|
-
}
|
|
231
|
-
return invokeCallback;
|
|
232
|
-
}
|
|
233
|
-
function mapChildren(children, func, context) {
|
|
234
|
-
if (null == children) return children;
|
|
235
|
-
var result = [], count = 0;
|
|
236
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
237
|
-
return func.call(context, child, count++);
|
|
238
|
-
});
|
|
239
|
-
return result;
|
|
240
|
-
}
|
|
241
|
-
function lazyInitializer(payload) {
|
|
242
|
-
if (-1 === payload._status) {
|
|
243
|
-
var ctor = payload._result;
|
|
244
|
-
ctor = ctor();
|
|
245
|
-
ctor.then(
|
|
246
|
-
function(moduleObject) {
|
|
247
|
-
if (0 === payload._status || -1 === payload._status)
|
|
248
|
-
payload._status = 1, payload._result = moduleObject;
|
|
249
|
-
},
|
|
250
|
-
function(error) {
|
|
251
|
-
if (0 === payload._status || -1 === payload._status)
|
|
252
|
-
payload._status = 2, payload._result = error;
|
|
253
|
-
}
|
|
254
|
-
);
|
|
255
|
-
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
256
|
-
}
|
|
257
|
-
if (1 === payload._status) return payload._result.default;
|
|
258
|
-
throw payload._result;
|
|
259
|
-
}
|
|
260
|
-
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
261
|
-
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
262
|
-
var event = new window.ErrorEvent("error", {
|
|
263
|
-
bubbles: true,
|
|
264
|
-
cancelable: true,
|
|
265
|
-
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
266
|
-
error
|
|
267
|
-
});
|
|
268
|
-
if (!window.dispatchEvent(event)) return;
|
|
269
|
-
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
270
|
-
process.emit("uncaughtException", error);
|
|
271
|
-
return;
|
|
272
|
-
}
|
|
273
|
-
console.error(error);
|
|
274
|
-
};
|
|
275
|
-
var Children = {
|
|
276
|
-
map: mapChildren,
|
|
277
|
-
forEach: function(children, forEachFunc, forEachContext) {
|
|
278
|
-
mapChildren(
|
|
279
|
-
children,
|
|
280
|
-
function() {
|
|
281
|
-
forEachFunc.apply(this, arguments);
|
|
282
|
-
},
|
|
283
|
-
forEachContext
|
|
284
|
-
);
|
|
285
|
-
},
|
|
286
|
-
count: function(children) {
|
|
287
|
-
var n = 0;
|
|
288
|
-
mapChildren(children, function() {
|
|
289
|
-
n++;
|
|
290
|
-
});
|
|
291
|
-
return n;
|
|
292
|
-
},
|
|
293
|
-
toArray: function(children) {
|
|
294
|
-
return mapChildren(children, function(child) {
|
|
295
|
-
return child;
|
|
296
|
-
}) || [];
|
|
297
|
-
},
|
|
298
|
-
only: function(children) {
|
|
299
|
-
if (!isValidElement(children))
|
|
300
|
-
throw Error(
|
|
301
|
-
"React.Children.only expected to receive a single React element child."
|
|
302
|
-
);
|
|
303
|
-
return children;
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
307
|
-
exports.Children = Children;
|
|
308
|
-
exports.Component = Component;
|
|
309
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
310
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
311
|
-
exports.PureComponent = PureComponent;
|
|
312
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
313
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
314
|
-
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
315
|
-
exports.__COMPILER_RUNTIME = {
|
|
316
|
-
__proto__: null,
|
|
317
|
-
c: function(size) {
|
|
318
|
-
return ReactSharedInternals.H.useMemoCache(size);
|
|
319
|
-
}
|
|
320
|
-
};
|
|
321
|
-
exports.cache = function(fn) {
|
|
322
|
-
return function() {
|
|
323
|
-
return fn.apply(null, arguments);
|
|
324
|
-
};
|
|
325
|
-
};
|
|
326
|
-
exports.cacheSignal = function() {
|
|
327
|
-
return null;
|
|
328
|
-
};
|
|
329
|
-
exports.cloneElement = function(element, config, children) {
|
|
330
|
-
if (null === element || void 0 === element)
|
|
331
|
-
throw Error(
|
|
332
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
333
|
-
);
|
|
334
|
-
var props = assign({}, element.props), key = element.key;
|
|
335
|
-
if (null != config)
|
|
336
|
-
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
337
|
-
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
338
|
-
var propName = arguments.length - 2;
|
|
339
|
-
if (1 === propName) props.children = children;
|
|
340
|
-
else if (1 < propName) {
|
|
341
|
-
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
342
|
-
childArray[i] = arguments[i + 2];
|
|
343
|
-
props.children = childArray;
|
|
344
|
-
}
|
|
345
|
-
return ReactElement(element.type, key, props);
|
|
346
|
-
};
|
|
347
|
-
exports.createContext = function(defaultValue) {
|
|
348
|
-
defaultValue = {
|
|
349
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
350
|
-
_currentValue: defaultValue,
|
|
351
|
-
_currentValue2: defaultValue,
|
|
352
|
-
_threadCount: 0,
|
|
353
|
-
Provider: null,
|
|
354
|
-
Consumer: null
|
|
355
|
-
};
|
|
356
|
-
defaultValue.Provider = defaultValue;
|
|
357
|
-
defaultValue.Consumer = {
|
|
358
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
359
|
-
_context: defaultValue
|
|
360
|
-
};
|
|
361
|
-
return defaultValue;
|
|
362
|
-
};
|
|
363
|
-
exports.createElement = function(type, config, children) {
|
|
364
|
-
var propName, props = {}, key = null;
|
|
365
|
-
if (null != config)
|
|
366
|
-
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
367
|
-
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
368
|
-
var childrenLength = arguments.length - 2;
|
|
369
|
-
if (1 === childrenLength) props.children = children;
|
|
370
|
-
else if (1 < childrenLength) {
|
|
371
|
-
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
372
|
-
childArray[i] = arguments[i + 2];
|
|
373
|
-
props.children = childArray;
|
|
374
|
-
}
|
|
375
|
-
if (type && type.defaultProps)
|
|
376
|
-
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
377
|
-
void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
378
|
-
return ReactElement(type, key, props);
|
|
379
|
-
};
|
|
380
|
-
exports.createRef = function() {
|
|
381
|
-
return { current: null };
|
|
382
|
-
};
|
|
383
|
-
exports.forwardRef = function(render) {
|
|
384
|
-
return { $$typeof: REACT_FORWARD_REF_TYPE, render };
|
|
385
|
-
};
|
|
386
|
-
exports.isValidElement = isValidElement;
|
|
387
|
-
exports.lazy = function(ctor) {
|
|
388
|
-
return {
|
|
389
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
390
|
-
_payload: { _status: -1, _result: ctor },
|
|
391
|
-
_init: lazyInitializer
|
|
392
|
-
};
|
|
393
|
-
};
|
|
394
|
-
exports.memo = function(type, compare) {
|
|
395
|
-
return {
|
|
396
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
397
|
-
type,
|
|
398
|
-
compare: void 0 === compare ? null : compare
|
|
399
|
-
};
|
|
400
|
-
};
|
|
401
|
-
exports.startTransition = function(scope) {
|
|
402
|
-
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
403
|
-
ReactSharedInternals.T = currentTransition;
|
|
404
|
-
try {
|
|
405
|
-
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
406
|
-
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
407
|
-
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
408
|
-
} catch (error) {
|
|
409
|
-
reportGlobalError(error);
|
|
410
|
-
} finally {
|
|
411
|
-
null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
412
|
-
}
|
|
413
|
-
};
|
|
414
|
-
exports.unstable_useCacheRefresh = function() {
|
|
415
|
-
return ReactSharedInternals.H.useCacheRefresh();
|
|
416
|
-
};
|
|
417
|
-
exports.use = function(usable) {
|
|
418
|
-
return ReactSharedInternals.H.use(usable);
|
|
419
|
-
};
|
|
420
|
-
exports.useActionState = function(action, initialState, permalink) {
|
|
421
|
-
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
422
|
-
};
|
|
423
|
-
exports.useCallback = function(callback, deps) {
|
|
424
|
-
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
425
|
-
};
|
|
426
|
-
exports.useContext = function(Context) {
|
|
427
|
-
return ReactSharedInternals.H.useContext(Context);
|
|
428
|
-
};
|
|
429
|
-
exports.useDebugValue = function() {
|
|
430
|
-
};
|
|
431
|
-
exports.useDeferredValue = function(value, initialValue) {
|
|
432
|
-
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
433
|
-
};
|
|
434
|
-
exports.useEffect = function(create, deps) {
|
|
435
|
-
return ReactSharedInternals.H.useEffect(create, deps);
|
|
436
|
-
};
|
|
437
|
-
exports.useEffectEvent = function(callback) {
|
|
438
|
-
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
439
|
-
};
|
|
440
|
-
exports.useId = function() {
|
|
441
|
-
return ReactSharedInternals.H.useId();
|
|
442
|
-
};
|
|
443
|
-
exports.useImperativeHandle = function(ref, create, deps) {
|
|
444
|
-
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
445
|
-
};
|
|
446
|
-
exports.useInsertionEffect = function(create, deps) {
|
|
447
|
-
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
448
|
-
};
|
|
449
|
-
exports.useLayoutEffect = function(create, deps) {
|
|
450
|
-
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
451
|
-
};
|
|
452
|
-
exports.useMemo = function(create, deps) {
|
|
453
|
-
return ReactSharedInternals.H.useMemo(create, deps);
|
|
454
|
-
};
|
|
455
|
-
exports.useOptimistic = function(passthrough, reducer) {
|
|
456
|
-
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
457
|
-
};
|
|
458
|
-
exports.useReducer = function(reducer, initialArg, init) {
|
|
459
|
-
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
460
|
-
};
|
|
461
|
-
exports.useRef = function(initialValue) {
|
|
462
|
-
return ReactSharedInternals.H.useRef(initialValue);
|
|
463
|
-
};
|
|
464
|
-
exports.useState = function(initialState) {
|
|
465
|
-
return ReactSharedInternals.H.useState(initialState);
|
|
466
|
-
};
|
|
467
|
-
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
468
|
-
return ReactSharedInternals.H.useSyncExternalStore(
|
|
469
|
-
subscribe,
|
|
470
|
-
getSnapshot,
|
|
471
|
-
getServerSnapshot
|
|
472
|
-
);
|
|
473
|
-
};
|
|
474
|
-
exports.useTransition = function() {
|
|
475
|
-
return ReactSharedInternals.H.useTransition();
|
|
476
|
-
};
|
|
477
|
-
exports.version = "19.2.4";
|
|
478
|
-
}
|
|
479
|
-
});
|
|
480
|
-
|
|
481
|
-
// node_modules/react/index.js
|
|
482
|
-
var require_react = __commonJS({
|
|
483
|
-
"node_modules/react/index.js"(exports, module) {
|
|
484
|
-
"use strict";
|
|
485
|
-
if (true) {
|
|
486
|
-
module.exports = require_react_production();
|
|
487
|
-
} else {
|
|
488
|
-
module.exports = null;
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
});
|
|
492
|
-
|
|
493
40
|
// node_modules/dotenv/package.json
|
|
494
41
|
var require_package = __commonJS({
|
|
495
42
|
"node_modules/dotenv/package.json"(exports, module) {
|
|
@@ -10060,31 +9607,6 @@ function isWorkspaceTrusted(settings, workspaceDir = process.cwd(), headlessOpti
|
|
|
10060
9607
|
});
|
|
10061
9608
|
}
|
|
10062
9609
|
|
|
10063
|
-
// packages/cli/src/ui/types.ts
|
|
10064
|
-
var import_react = __toESM(require_react(), 1);
|
|
10065
|
-
function mapCoreStatusToDisplayStatus(coreStatus) {
|
|
10066
|
-
switch (coreStatus) {
|
|
10067
|
-
case "validating" /* Validating */:
|
|
10068
|
-
return "Pending" /* Pending */;
|
|
10069
|
-
case "awaiting_approval" /* AwaitingApproval */:
|
|
10070
|
-
return "Confirming" /* Confirming */;
|
|
10071
|
-
case "executing" /* Executing */:
|
|
10072
|
-
return "Executing" /* Executing */;
|
|
10073
|
-
case "success" /* Success */:
|
|
10074
|
-
return "Success" /* Success */;
|
|
10075
|
-
case "cancelled" /* Cancelled */:
|
|
10076
|
-
return "Canceled" /* Canceled */;
|
|
10077
|
-
case "error" /* Error */:
|
|
10078
|
-
return "Error" /* Error */;
|
|
10079
|
-
case "scheduled" /* Scheduled */:
|
|
10080
|
-
return "Pending" /* Pending */;
|
|
10081
|
-
default:
|
|
10082
|
-
return checkExhaustive(coreStatus);
|
|
10083
|
-
}
|
|
10084
|
-
}
|
|
10085
|
-
var isTodoList = (res) => typeof res === "object" && res !== null && "todos" in res;
|
|
10086
|
-
var emptyIcon = " ";
|
|
10087
|
-
|
|
10088
9610
|
// packages/cli/src/utils/sessionUtils.ts
|
|
10089
9611
|
import * as fs from "node:fs/promises";
|
|
10090
9612
|
import path from "node:path";
|
|
@@ -10710,9 +10232,18 @@ var MULTIPLIERS = {
|
|
|
10710
10232
|
m: 30 * 24 * 60 * 60 * 1e3
|
|
10711
10233
|
// months (30 days) to ms
|
|
10712
10234
|
};
|
|
10713
|
-
var SHORT_ID_REGEX = /-([a-zA-Z0-9]{8})\.
|
|
10235
|
+
var SHORT_ID_REGEX = /-([a-zA-Z0-9]{8})\.jsonl?$/;
|
|
10236
|
+
function hasProperty(obj, prop) {
|
|
10237
|
+
return obj !== null && typeof obj === "object" && prop in obj;
|
|
10238
|
+
}
|
|
10239
|
+
function isStringProperty(obj, prop) {
|
|
10240
|
+
return hasProperty(obj, prop) && typeof obj[prop] === "string";
|
|
10241
|
+
}
|
|
10242
|
+
function isSessionIdRecord(record) {
|
|
10243
|
+
return isStringProperty(record, "sessionId");
|
|
10244
|
+
}
|
|
10714
10245
|
function deriveShortIdFromFileName(fileName) {
|
|
10715
|
-
if (fileName.startsWith(SESSION_FILE_PREFIX) && fileName.endsWith(".json")) {
|
|
10246
|
+
if (fileName.startsWith(SESSION_FILE_PREFIX) && (fileName.endsWith(".json") || fileName.endsWith(".jsonl"))) {
|
|
10716
10247
|
const match = fileName.match(SHORT_ID_REGEX);
|
|
10717
10248
|
return match ? match[1] : null;
|
|
10718
10249
|
}
|
|
@@ -10765,20 +10296,41 @@ async function cleanupExpiredSessions(config, settings) {
|
|
|
10765
10296
|
}
|
|
10766
10297
|
processedShortIds.add(shortId);
|
|
10767
10298
|
const matchingFiles = allFiles.map((f) => f.fileName).filter(
|
|
10768
|
-
(f) => f.startsWith(SESSION_FILE_PREFIX) && f.endsWith(`-${shortId}.json`)
|
|
10299
|
+
(f) => f.startsWith(SESSION_FILE_PREFIX) && (f.endsWith(`-${shortId}.json`) || f.endsWith(`-${shortId}.jsonl`))
|
|
10769
10300
|
);
|
|
10770
10301
|
for (const file of matchingFiles) {
|
|
10771
10302
|
const filePath = path2.join(chatsDir, file);
|
|
10772
10303
|
let fullSessionId;
|
|
10773
10304
|
try {
|
|
10774
10305
|
try {
|
|
10775
|
-
const
|
|
10776
|
-
const
|
|
10777
|
-
|
|
10778
|
-
|
|
10779
|
-
|
|
10780
|
-
|
|
10781
|
-
|
|
10306
|
+
const CHUNK_SIZE = 4096;
|
|
10307
|
+
const buffer = Buffer.alloc(CHUNK_SIZE);
|
|
10308
|
+
let fd;
|
|
10309
|
+
try {
|
|
10310
|
+
fd = await fs2.open(filePath, "r");
|
|
10311
|
+
const { bytesRead } = await fd.read(buffer, 0, CHUNK_SIZE, 0);
|
|
10312
|
+
if (bytesRead > 0) {
|
|
10313
|
+
const contentChunk = buffer.toString("utf8", 0, bytesRead);
|
|
10314
|
+
const newlineIndex = contentChunk.indexOf("\n");
|
|
10315
|
+
const firstLine = newlineIndex !== -1 ? contentChunk.substring(0, newlineIndex) : contentChunk;
|
|
10316
|
+
try {
|
|
10317
|
+
const record = JSON.parse(firstLine);
|
|
10318
|
+
if (isSessionIdRecord(record)) {
|
|
10319
|
+
fullSessionId = record.sessionId;
|
|
10320
|
+
}
|
|
10321
|
+
} catch {
|
|
10322
|
+
}
|
|
10323
|
+
}
|
|
10324
|
+
} finally {
|
|
10325
|
+
if (fd !== void 0) {
|
|
10326
|
+
await fd.close();
|
|
10327
|
+
}
|
|
10328
|
+
}
|
|
10329
|
+
if (!fullSessionId) {
|
|
10330
|
+
const fileContent = await fs2.readFile(filePath, "utf8");
|
|
10331
|
+
const content = JSON.parse(fileContent);
|
|
10332
|
+
if (isSessionIdRecord(content)) {
|
|
10333
|
+
fullSessionId = content.sessionId;
|
|
10782
10334
|
}
|
|
10783
10335
|
}
|
|
10784
10336
|
} catch {
|
|
@@ -16757,7 +16309,23 @@ function findEnvFile(startDir, isTrusted) {
|
|
|
16757
16309
|
currentDir = parentDir;
|
|
16758
16310
|
}
|
|
16759
16311
|
}
|
|
16760
|
-
|
|
16312
|
+
var USER_GCP_PROJECT = "_GEMINI_USER_GCP_PROJECT";
|
|
16313
|
+
function setUpCloudShellEnvironment(envFilePath, isTrusted, isSandboxed, selectedAuthType) {
|
|
16314
|
+
if (selectedAuthType === "vertex-ai" /* USE_VERTEX_AI */) {
|
|
16315
|
+
const saved = process2.env[USER_GCP_PROJECT];
|
|
16316
|
+
if (saved !== void 0) {
|
|
16317
|
+
process2.env["GOOGLE_CLOUD_PROJECT"] = saved;
|
|
16318
|
+
} else if (process2.env["GOOGLE_CLOUD_PROJECT"] === "cloudshell-gca") {
|
|
16319
|
+
delete process2.env["GOOGLE_CLOUD_PROJECT"];
|
|
16320
|
+
}
|
|
16321
|
+
return;
|
|
16322
|
+
}
|
|
16323
|
+
if (!process2.env[USER_GCP_PROJECT]) {
|
|
16324
|
+
const current = process2.env["GOOGLE_CLOUD_PROJECT"];
|
|
16325
|
+
if (current && current !== "cloudshell-gca") {
|
|
16326
|
+
process2.env[USER_GCP_PROJECT] = current;
|
|
16327
|
+
}
|
|
16328
|
+
}
|
|
16761
16329
|
let value = "cloudshell-gca";
|
|
16762
16330
|
if (envFilePath && fs4.existsSync(envFilePath)) {
|
|
16763
16331
|
const envFileContent = fs4.readFileSync(envFilePath);
|
|
@@ -16780,7 +16348,13 @@ function loadEnvironment(settings, workspaceDir, isWorkspaceTrustedFn = isWorksp
|
|
|
16780
16348
|
const relevantArgs = doubleDashIndex === -1 ? args : args.slice(0, doubleDashIndex);
|
|
16781
16349
|
const isSandboxed = !!settings.tools?.sandbox || relevantArgs.includes("-s") || relevantArgs.includes("--sandbox");
|
|
16782
16350
|
if (process2.env["CLOUD_SHELL"] === "true") {
|
|
16783
|
-
|
|
16351
|
+
const selectedAuthType = settings.security?.auth?.selectedType;
|
|
16352
|
+
setUpCloudShellEnvironment(
|
|
16353
|
+
envFilePath,
|
|
16354
|
+
isTrusted,
|
|
16355
|
+
isSandboxed,
|
|
16356
|
+
selectedAuthType
|
|
16357
|
+
);
|
|
16784
16358
|
}
|
|
16785
16359
|
if (envFilePath) {
|
|
16786
16360
|
try {
|
|
@@ -17577,10 +17151,6 @@ export {
|
|
|
17577
17151
|
normalizeEscapedNewlines,
|
|
17578
17152
|
getCachedStringWidth,
|
|
17579
17153
|
escapeAnsiCtrlCodes,
|
|
17580
|
-
require_react,
|
|
17581
|
-
mapCoreStatusToDisplayStatus,
|
|
17582
|
-
isTodoList,
|
|
17583
|
-
emptyIcon,
|
|
17584
17154
|
RESUME_LATEST,
|
|
17585
17155
|
SessionError,
|
|
17586
17156
|
cleanMessage,
|
|
@@ -17633,17 +17203,6 @@ export {
|
|
|
17633
17203
|
*/
|
|
17634
17204
|
/*! Bundled license information:
|
|
17635
17205
|
|
|
17636
|
-
react/cjs/react.production.js:
|
|
17637
|
-
(**
|
|
17638
|
-
* @license React
|
|
17639
|
-
* react.production.js
|
|
17640
|
-
*
|
|
17641
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
17642
|
-
*
|
|
17643
|
-
* This source code is licensed under the MIT license found in the
|
|
17644
|
-
* LICENSE file in the root directory of this source tree.
|
|
17645
|
-
*)
|
|
17646
|
-
|
|
17647
17206
|
repeat-string/index.js:
|
|
17648
17207
|
(*!
|
|
17649
17208
|
* repeat-string <https://github.com/jonschlinkert/repeat-string>
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
isTelemetrySdkInitialized,
|
|
5
5
|
resetBrowserSession,
|
|
6
6
|
shutdownTelemetry
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VUMF52YD.js";
|
|
8
8
|
import {
|
|
9
9
|
Storage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-533APETE.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/utils/cleanup.ts
|
|
13
13
|
import { promises as fs } from "node:fs";
|