@google/gemini-cli 0.61.0-nightly.20260914.g9c1b0a610 → 0.61.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/bundle/{chunk-7QMPYWCX.js → chunk-3KWHN3A7.js} +1 -1
- package/bundle/{chunk-53UJD44D.js → chunk-4WJNJ3DK.js} +1 -1
- package/bundle/{chunk-SDTJI6GY.js → chunk-6HVPDYWM.js} +3 -3
- package/bundle/{chunk-FGSYYSOZ.js → chunk-ACTC6X24.js} +71 -71
- package/bundle/{chunk-5ODB2X63.js → chunk-AIMNGITH.js} +3 -3
- package/bundle/{chunk-VLDRTCG6.js → chunk-BCGPZKAR.js} +1 -1
- package/bundle/{chunk-YGHZ7ACF.js → chunk-DO6WSZ5A.js} +2 -2
- package/bundle/{chunk-VO7LWGB3.js → chunk-DOJZLPDE.js} +1 -1
- package/bundle/{chunk-WATY4OUD.js → chunk-FH2AJT7C.js} +71 -71
- package/bundle/{chunk-D75WFCPG.js → chunk-FIYKTSCR.js} +1 -1
- package/bundle/{chunk-BQM4SRQW.js → chunk-GLGFO33Y.js} +1 -1
- package/bundle/{chunk-LU6TRLNX.js → chunk-HGJ3LRCZ.js} +1 -1
- package/bundle/{chunk-HIPPG7EN.js → chunk-HQQJ2XNS.js} +1 -1
- package/bundle/{chunk-JJG4G4T4.js → chunk-KUWKDEHW.js} +5 -8
- package/bundle/{chunk-3SAT4Y7R.js → chunk-LDL5PSV7.js} +2 -2
- package/bundle/{chunk-FMIZE56I.js → chunk-OANXWSAG.js} +14655 -7820
- package/bundle/{chunk-2UCQNL7V.js → chunk-OZG5CLDY.js} +7 -7
- package/bundle/{chunk-FRBIOEV2.js → chunk-UCLFGIUA.js} +2 -2
- package/bundle/{chunk-AHTH74PK.js → chunk-UUSSUQWL.js} +1 -1
- package/bundle/{chunk-LKD6XO4R.js → chunk-WFZMFTEE.js} +3 -3
- package/bundle/{chunk-MHSUGLUL.js → chunk-XL4BRDNV.js} +7 -7
- package/bundle/{chunk-HV54UHFS.js → chunk-YJFCJUWN.js} +1 -1
- package/bundle/{chunk-Z2UA3VE4.js → chunk-ZJHBR7W3.js} +8 -9
- package/bundle/{chunk-4YBVG3J4.js → chunk-ZOKIJ2CA.js} +54 -67
- package/bundle/{cleanup-CQRZIS56.js → cleanup-AM5TUWBB.js} +2 -2
- package/bundle/{cleanup-EP4FSNP2.js → cleanup-FLPPBDLV.js} +2 -2
- package/bundle/{cleanup-PHG6PZEL.js → cleanup-KI735Y45.js} +2 -2
- package/bundle/{core-D3QXSEQC.js → core-F6IWXMFD.js} +1 -1
- package/bundle/{dist-SLGO5VOR.js → core-R7CF7CQD.js} +1 -1
- package/bundle/{devtoolsService-VRP4ZQZT.js → devtoolsService-MA34M6Q7.js} +2 -2
- package/bundle/{devtoolsService-7HFTYGEQ.js → devtoolsService-UUGXHVTK.js} +2 -2
- package/bundle/{devtoolsService-EE53V2VZ.js → devtoolsService-WOA7VJLA.js} +3 -4
- package/bundle/{dist-V3JGHK7W.js → dist-VH7RJCTA.js} +1 -1
- package/bundle/{gemini-BENWTQRN.js → gemini-N24ID3HC.js} +14 -14
- package/bundle/{gemini-MXDVYMQ7.js → gemini-NLU2EPRF.js} +198 -214
- package/bundle/{gemini-ZAFUPPRC.js → gemini-SRSLV7D2.js} +13 -13
- package/bundle/gemini.js +7 -7
- package/bundle/{interactiveCli-LUBS4R3X.js → interactiveCli-DDJZ4B26.js} +8 -8
- package/bundle/{interactiveCli-WJK3OSUD.js → interactiveCli-PNXXOFIE.js} +296 -315
- package/bundle/{interactiveCli-A24KWENP.js → interactiveCli-SOMGNC7U.js} +8 -8
- package/bundle/{liteRtServerManager-DLKJ4WRM.js → liteRtServerManager-GW22Q7F4.js} +4 -4
- package/bundle/{liteRtServerManager-LQSWP3CH.js → liteRtServerManager-HDIBGLHN.js} +4 -4
- package/bundle/{liteRtServerManager-N4KAUQYV.js → liteRtServerManager-XEOODEAA.js} +4 -4
- package/bundle/{oauth2-provider-L5Z453OO.js → oauth2-provider-347DWYC5.js} +1 -1
- package/bundle/{oauth2-provider-BZ5WKGMP.js → oauth2-provider-SADAKLZ2.js} +1 -1
- package/bundle/{oauth2-provider-DUO5T5CT.js → oauth2-provider-ZC45IIOS.js} +72 -38
- package/bundle/{start-EFTNJBQU.js → start-H7F3LFFN.js} +6 -6
- package/bundle/{start-ICPW7QG4.js → start-IVH46CBG.js} +6 -6
- package/bundle/{start-KSS6CNQZ.js → start-PRP35I6V.js} +6 -6
- package/package.json +1 -1
- package/bundle/chunk-45BZWZP7.js +0 -102678
- package/bundle/chunk-4UWRVXQD.js +0 -512
- package/bundle/chunk-IZOXK4N2.js +0 -398
- package/bundle/chunk-O6I4IBDK.js +0 -399478
- package/bundle/chunk-PUOEZXGI.js +0 -118
- package/bundle/chunk-VJ7PIDDW.js +0 -1571
- package/bundle/chunk-YDPHA5EG.js +0 -17353
- package/bundle/chunk-YGZ6CGJO.js +0 -154
- package/bundle/cleanup-QHB2M37L.js +0 -32
- package/bundle/devtoolsService-TQMM5F67.js +0 -4359
- package/bundle/dist-XG4JJTCE.js +0 -2216
- package/bundle/gemini-VL5FVTRA.js +0 -17762
- package/bundle/interactiveCli-ZZ2O6YFI.js +0 -35024
- package/bundle/liteRtServerManager-TAYAKJWW.js +0 -65
- package/bundle/oauth2-provider-DZI5MHYB.js +0 -235
- package/bundle/start-XTUHXDMT.js +0 -18
|
@@ -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-4WJNJ3DK.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require
|
|
@@ -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-HGJ3LRCZ.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-GLGFO33Y.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FH2AJT7C.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-34MYV7JD.js";
|
|
@@ -283246,8 +283246,8 @@ function isValidToolName(name3, options = {}) {
|
|
|
283246
283246
|
}
|
|
283247
283247
|
|
|
283248
283248
|
// packages/core/dist/src/generated/git-commit.js
|
|
283249
|
-
var GIT_COMMIT_INFO = "
|
|
283250
|
-
var CLI_VERSION = "0.61.0-
|
|
283249
|
+
var GIT_COMMIT_INFO = "ae28844fb";
|
|
283250
|
+
var CLI_VERSION = "0.61.0-preview.0";
|
|
283251
283251
|
|
|
283252
283252
|
// packages/core/dist/src/ide/detect-ide.js
|
|
283253
283253
|
var IDE_DEFINITIONS = {
|
|
@@ -306541,7 +306541,7 @@ function getVersion() {
|
|
|
306541
306541
|
}
|
|
306542
306542
|
versionPromise = (async () => {
|
|
306543
306543
|
const pkgJson = await getPackageJson(__dirname4);
|
|
306544
|
-
return "0.61.0-
|
|
306544
|
+
return "0.61.0-preview.0";
|
|
306545
306545
|
})();
|
|
306546
306546
|
return versionPromise;
|
|
306547
306547
|
}
|
|
@@ -340084,7 +340084,7 @@ var A2AAuthProviderFactory = class _A2AAuthProviderFactory {
|
|
|
340084
340084
|
return provider;
|
|
340085
340085
|
}
|
|
340086
340086
|
case "oauth2": {
|
|
340087
|
-
const { OAuth2AuthProvider } = await import("./oauth2-provider-
|
|
340087
|
+
const { OAuth2AuthProvider } = await import("./oauth2-provider-SADAKLZ2.js");
|
|
340088
340088
|
const provider = new OAuth2AuthProvider(authConfig, options.agentName ?? "unknown", agentCard, options.agentCardUrl);
|
|
340089
340089
|
await provider.initialize();
|
|
340090
340090
|
return provider;
|
|
@@ -378526,7 +378526,11 @@ var ConfigSchema = external_exports.object({
|
|
|
378526
378526
|
}).optional()
|
|
378527
378527
|
});
|
|
378528
378528
|
var Config = class {
|
|
378529
|
-
|
|
378529
|
+
config = this;
|
|
378530
|
+
promptId;
|
|
378531
|
+
toolRegistry;
|
|
378532
|
+
promptRegistry;
|
|
378533
|
+
resourceRegistry;
|
|
378530
378534
|
mcpClientManager;
|
|
378531
378535
|
a2aClientManager;
|
|
378532
378536
|
allowedMcpServers;
|
|
@@ -378534,8 +378538,6 @@ var Config = class {
|
|
|
378534
378538
|
allowedEnvironmentVariables;
|
|
378535
378539
|
blockedEnvironmentVariables;
|
|
378536
378540
|
enableEnvironmentVariableRedaction;
|
|
378537
|
-
_promptRegistry;
|
|
378538
|
-
_resourceRegistry;
|
|
378539
378541
|
agentRegistry;
|
|
378540
378542
|
acknowledgedAgentsService;
|
|
378541
378543
|
skillManager;
|
|
@@ -378579,8 +378581,8 @@ var Config = class {
|
|
|
378579
378581
|
accessibility;
|
|
378580
378582
|
telemetrySettings;
|
|
378581
378583
|
usageStatisticsEnabled;
|
|
378582
|
-
|
|
378583
|
-
|
|
378584
|
+
geminiClient;
|
|
378585
|
+
sandboxManager;
|
|
378584
378586
|
_sandboxPolicyManager;
|
|
378585
378587
|
baseLlmClient;
|
|
378586
378588
|
localLiteRtLmClient;
|
|
@@ -378662,7 +378664,7 @@ var Config = class {
|
|
|
378662
378664
|
eventEmitter;
|
|
378663
378665
|
useWriteTodos;
|
|
378664
378666
|
workspacePoliciesDir;
|
|
378665
|
-
|
|
378667
|
+
messageBus;
|
|
378666
378668
|
policyEngine;
|
|
378667
378669
|
policyUpdateConfirmationRequest;
|
|
378668
378670
|
outputSettings;
|
|
@@ -378722,6 +378724,7 @@ var Config = class {
|
|
|
378722
378724
|
approvedPlanPath;
|
|
378723
378725
|
constructor(params) {
|
|
378724
378726
|
this._sessionId = params.sessionId;
|
|
378727
|
+
this.promptId = params.sessionId;
|
|
378725
378728
|
this.clientName = params.clientName;
|
|
378726
378729
|
this._clientVersion = params.clientVersion ?? "unknown";
|
|
378727
378730
|
this.approvedPlanPath = void 0;
|
|
@@ -378752,7 +378755,7 @@ var Config = class {
|
|
|
378752
378755
|
this.worktreeSettings = params.worktreeSettings;
|
|
378753
378756
|
this._sandboxPolicyManager = new SandboxPolicyManager();
|
|
378754
378757
|
const initialApprovalMode = params.approvalMode ?? params.policyEngineConfig?.approvalMode ?? "default";
|
|
378755
|
-
this.
|
|
378758
|
+
this.sandboxManager = createSandboxManager(this.sandbox, {
|
|
378756
378759
|
workspace: this.targetDir,
|
|
378757
378760
|
forbiddenPaths: this.getSandboxForbiddenPaths.bind(this),
|
|
378758
378761
|
includeDirectories: [
|
|
@@ -378761,8 +378764,8 @@ var Config = class {
|
|
|
378761
378764
|
],
|
|
378762
378765
|
policyManager: this._sandboxPolicyManager
|
|
378763
378766
|
}, initialApprovalMode);
|
|
378764
|
-
if (!(this.
|
|
378765
|
-
this.fileSystemService = new SandboxedFileSystemService(this.
|
|
378767
|
+
if (!(this.sandboxManager instanceof NoopSandboxManager) && this.sandbox?.enabled) {
|
|
378768
|
+
this.fileSystemService = new SandboxedFileSystemService(this.sandboxManager, params.targetDir);
|
|
378766
378769
|
} else {
|
|
378767
378770
|
this.fileSystemService = new StandardFileSystemService();
|
|
378768
378771
|
}
|
|
@@ -378937,7 +378940,7 @@ var Config = class {
|
|
|
378937
378940
|
showColor: params.shellExecutionConfig?.showColor ?? false,
|
|
378938
378941
|
pager: params.shellExecutionConfig?.pager ?? "cat",
|
|
378939
378942
|
sanitizationConfig: this.sanitizationConfig,
|
|
378940
|
-
sandboxManager: this.
|
|
378943
|
+
sandboxManager: this.sandboxManager,
|
|
378941
378944
|
sandboxConfig: this.sandbox,
|
|
378942
378945
|
backgroundCompletionBehavior: this.shellBackgroundCompletionBehavior
|
|
378943
378946
|
};
|
|
@@ -378976,14 +378979,14 @@ var Config = class {
|
|
|
378976
378979
|
...params.policyEngineConfig,
|
|
378977
378980
|
approvalMode: engineApprovalMode,
|
|
378978
378981
|
disableAlwaysAllow: this.disableAlwaysAllow,
|
|
378979
|
-
sandboxManager: this.
|
|
378982
|
+
sandboxManager: this.sandboxManager,
|
|
378980
378983
|
isTrustedFolder: () => this.isTrustedFolder()
|
|
378981
378984
|
}, checkerRunner);
|
|
378982
378985
|
if (this.enableConseca) {
|
|
378983
378986
|
debugLogger.log("[SAFETY] Registering Conseca Safety Checker");
|
|
378984
378987
|
ConsecaSafetyChecker.getInstance().setContext(this);
|
|
378985
378988
|
}
|
|
378986
|
-
this.
|
|
378989
|
+
this.messageBus = new MessageBus(this.policyEngine, this.debugMode);
|
|
378987
378990
|
this.acknowledgedAgentsService = new AcknowledgedAgentsService();
|
|
378988
378991
|
this.skillManager = new SkillManager();
|
|
378989
378992
|
this.outputSettings = {
|
|
@@ -379033,13 +379036,10 @@ var Config = class {
|
|
|
379033
379036
|
coreEvents.emitFeedback("error", "Invalid proxy configuration detected. Check debug drawer for more details (F12)", error40);
|
|
379034
379037
|
}
|
|
379035
379038
|
}
|
|
379036
|
-
this.
|
|
379039
|
+
this.geminiClient = new GeminiClient(this);
|
|
379037
379040
|
this.a2aClientManager = new A2AClientManager(this);
|
|
379038
379041
|
this.modelRouterService = new ModelRouterService(this);
|
|
379039
379042
|
}
|
|
379040
|
-
get config() {
|
|
379041
|
-
return this;
|
|
379042
|
-
}
|
|
379043
379043
|
isInitialized() {
|
|
379044
379044
|
return this.initialized;
|
|
379045
379045
|
}
|
|
@@ -379081,16 +379081,16 @@ var Config = class {
|
|
|
379081
379081
|
if (this.getCheckpointingEnabled()) {
|
|
379082
379082
|
await this.getGitService();
|
|
379083
379083
|
}
|
|
379084
|
-
this.
|
|
379085
|
-
this.
|
|
379084
|
+
this.promptRegistry = new PromptRegistry();
|
|
379085
|
+
this.resourceRegistry = new ResourceRegistry();
|
|
379086
379086
|
this.agentRegistry = new AgentRegistry(this);
|
|
379087
379087
|
await this.agentRegistry.initialize();
|
|
379088
379088
|
coreEvents.on(CoreEvent.AgentsRefreshed, this.onAgentsRefreshed);
|
|
379089
|
-
this.
|
|
379089
|
+
this.toolRegistry = await this.createToolRegistry();
|
|
379090
379090
|
discoverToolsHandle?.end();
|
|
379091
379091
|
this.mcpClientManager = new McpClientManager(this.clientVersion, this, this.eventEmitter);
|
|
379092
379092
|
this.mcpClientManager.setMainRegistries({
|
|
379093
|
-
toolRegistry: this.
|
|
379093
|
+
toolRegistry: this.toolRegistry,
|
|
379094
379094
|
promptRegistry: this.promptRegistry,
|
|
379095
379095
|
resourceRegistry: this.resourceRegistry
|
|
379096
379096
|
});
|
|
@@ -379124,7 +379124,7 @@ var Config = class {
|
|
|
379124
379124
|
}
|
|
379125
379125
|
this.memoryContextManager = new MemoryContextManager(this);
|
|
379126
379126
|
await this.memoryContextManager.refresh();
|
|
379127
|
-
await this.
|
|
379127
|
+
await this.geminiClient.initialize();
|
|
379128
379128
|
this.initialized = true;
|
|
379129
379129
|
}
|
|
379130
379130
|
getContentGenerator() {
|
|
@@ -379135,7 +379135,7 @@ var Config = class {
|
|
|
379135
379135
|
this.fallbackOverrides.clear();
|
|
379136
379136
|
this.modelConfigService.clearRuntimeOverrides();
|
|
379137
379137
|
if (this.contentGeneratorConfig?.authType === AuthType2.USE_GEMINI && authMethod !== AuthType2.USE_GEMINI) {
|
|
379138
|
-
this.
|
|
379138
|
+
this.geminiClient.stripThoughtsFromHistory();
|
|
379139
379139
|
}
|
|
379140
379140
|
this.modelAvailabilityService.reset();
|
|
379141
379141
|
if (this.contentGeneratorConfig) {
|
|
@@ -379223,43 +379223,37 @@ var Config = class {
|
|
|
379223
379223
|
}
|
|
379224
379224
|
return this.localLiteRtLmClient;
|
|
379225
379225
|
}
|
|
379226
|
-
|
|
379227
|
-
|
|
379226
|
+
/** @internal Backing field alias for backwards-compatibility */
|
|
379227
|
+
get _toolRegistry() {
|
|
379228
|
+
return this.toolRegistry;
|
|
379228
379229
|
}
|
|
379229
|
-
|
|
379230
|
-
|
|
379231
|
-
* Use the injected AgentLoopContext instead.
|
|
379232
|
-
*/
|
|
379233
|
-
get toolRegistry() {
|
|
379234
|
-
return this._toolRegistry;
|
|
379230
|
+
set _toolRegistry(value) {
|
|
379231
|
+
this.toolRegistry = value;
|
|
379235
379232
|
}
|
|
379236
|
-
/**
|
|
379237
|
-
|
|
379238
|
-
|
|
379239
|
-
*/
|
|
379240
|
-
get promptRegistry() {
|
|
379241
|
-
return this._promptRegistry;
|
|
379233
|
+
/** @internal Backing field alias for backwards-compatibility */
|
|
379234
|
+
get _promptRegistry() {
|
|
379235
|
+
return this.promptRegistry;
|
|
379242
379236
|
}
|
|
379243
|
-
|
|
379244
|
-
|
|
379245
|
-
* Use the injected AgentLoopContext instead.
|
|
379246
|
-
*/
|
|
379247
|
-
get resourceRegistry() {
|
|
379248
|
-
return this._resourceRegistry;
|
|
379237
|
+
set _promptRegistry(registry2) {
|
|
379238
|
+
this.promptRegistry = registry2;
|
|
379249
379239
|
}
|
|
379250
|
-
/**
|
|
379251
|
-
|
|
379252
|
-
|
|
379253
|
-
*/
|
|
379254
|
-
get messageBus() {
|
|
379255
|
-
return this._messageBus;
|
|
379240
|
+
/** @internal Backing field alias for backwards-compatibility */
|
|
379241
|
+
get _resourceRegistry() {
|
|
379242
|
+
return this.resourceRegistry;
|
|
379256
379243
|
}
|
|
379257
|
-
|
|
379258
|
-
|
|
379259
|
-
|
|
379260
|
-
|
|
379261
|
-
get
|
|
379262
|
-
return this.
|
|
379244
|
+
set _resourceRegistry(registry2) {
|
|
379245
|
+
this.resourceRegistry = registry2;
|
|
379246
|
+
}
|
|
379247
|
+
/** @internal Backing field alias for backwards-compatibility */
|
|
379248
|
+
get _messageBus() {
|
|
379249
|
+
return this.messageBus;
|
|
379250
|
+
}
|
|
379251
|
+
/** @internal Backing field alias for backwards-compatibility */
|
|
379252
|
+
get _geminiClient() {
|
|
379253
|
+
return this.geminiClient;
|
|
379254
|
+
}
|
|
379255
|
+
set _geminiClient(client) {
|
|
379256
|
+
this.geminiClient = client;
|
|
379263
379257
|
}
|
|
379264
379258
|
async getSandboxForbiddenPaths() {
|
|
379265
379259
|
if (this._sandboxForbiddenPaths) {
|
|
@@ -379272,7 +379266,7 @@ var Config = class {
|
|
|
379272
379266
|
return this._sandboxForbiddenPaths;
|
|
379273
379267
|
}
|
|
379274
379268
|
refreshSandboxManager() {
|
|
379275
|
-
this.
|
|
379269
|
+
this.sandboxManager = createSandboxManager(this.sandbox, {
|
|
379276
379270
|
workspace: this.targetDir,
|
|
379277
379271
|
forbiddenPaths: this.getSandboxForbiddenPaths.bind(this),
|
|
379278
379272
|
includeDirectories: [
|
|
@@ -379281,13 +379275,17 @@ var Config = class {
|
|
|
379281
379275
|
],
|
|
379282
379276
|
policyManager: this._sandboxPolicyManager
|
|
379283
379277
|
}, this.getApprovalMode());
|
|
379284
|
-
this.shellExecutionConfig.sandboxManager = this.
|
|
379278
|
+
this.shellExecutionConfig.sandboxManager = this.sandboxManager;
|
|
379285
379279
|
}
|
|
379286
379280
|
get sandboxPolicyManager() {
|
|
379287
379281
|
return this._sandboxPolicyManager;
|
|
379288
379282
|
}
|
|
379289
|
-
|
|
379290
|
-
|
|
379283
|
+
/** @internal Backing field alias for backwards-compatibility */
|
|
379284
|
+
get _sandboxManager() {
|
|
379285
|
+
return this.sandboxManager;
|
|
379286
|
+
}
|
|
379287
|
+
set _sandboxManager(manager) {
|
|
379288
|
+
this.sandboxManager = manager;
|
|
379291
379289
|
}
|
|
379292
379290
|
getSessionId() {
|
|
379293
379291
|
return this.promptId;
|
|
@@ -379301,6 +379299,7 @@ var Config = class {
|
|
|
379301
379299
|
setSessionId(sessionId) {
|
|
379302
379300
|
const previousPlansDir = this.storage.isInitialized() ? this.storage.getPlansDir() : void 0;
|
|
379303
379301
|
this._sessionId = sessionId;
|
|
379302
|
+
this.promptId = sessionId;
|
|
379304
379303
|
this.storage.setSessionId(sessionId);
|
|
379305
379304
|
this.trackerService = void 0;
|
|
379306
379305
|
this.fallbackOverrides.clear();
|
|
@@ -379326,6 +379325,7 @@ var Config = class {
|
|
|
379326
379325
|
}
|
|
379327
379326
|
rotateSessionId(sessionId) {
|
|
379328
379327
|
this._sessionId = sessionId;
|
|
379328
|
+
this.promptId = sessionId;
|
|
379329
379329
|
}
|
|
379330
379330
|
resetNewSessionState(sessionId) {
|
|
379331
379331
|
this.setSessionId(sessionId);
|
|
@@ -379597,13 +379597,13 @@ var Config = class {
|
|
|
379597
379597
|
return this.toolRegistry;
|
|
379598
379598
|
}
|
|
379599
379599
|
getPromptRegistry() {
|
|
379600
|
-
return this.
|
|
379600
|
+
return this.promptRegistry;
|
|
379601
379601
|
}
|
|
379602
379602
|
getSkillManager() {
|
|
379603
379603
|
return this.skillManager;
|
|
379604
379604
|
}
|
|
379605
379605
|
getResourceRegistry() {
|
|
379606
|
-
return this.
|
|
379606
|
+
return this.resourceRegistry;
|
|
379607
379607
|
}
|
|
379608
379608
|
getDebugMode() {
|
|
379609
379609
|
return this.debugMode;
|
|
@@ -379808,9 +379808,9 @@ var Config = class {
|
|
|
379808
379808
|
*/
|
|
379809
379809
|
async refreshMcpContext() {
|
|
379810
379810
|
await this.memoryContextManager?.refresh();
|
|
379811
|
-
if (this.
|
|
379812
|
-
await this.
|
|
379813
|
-
this.
|
|
379811
|
+
if (this.geminiClient?.isInitialized()) {
|
|
379812
|
+
await this.geminiClient.setTools();
|
|
379813
|
+
this.geminiClient.updateSystemInstruction();
|
|
379814
379814
|
}
|
|
379815
379815
|
}
|
|
379816
379816
|
setUserMemory(newUserMemory) {
|
|
@@ -379987,9 +379987,9 @@ ${sections.join("\n")}
|
|
|
379987
379987
|
const isPlanModeTransition = currentMode === ApprovalMode.PLAN || mode === ApprovalMode.PLAN;
|
|
379988
379988
|
const isYoloModeTransition = currentMode === ApprovalMode.YOLO || mode === ApprovalMode.YOLO;
|
|
379989
379989
|
if (isPlanModeTransition || isYoloModeTransition) {
|
|
379990
|
-
if (this.
|
|
379991
|
-
this.
|
|
379992
|
-
this.
|
|
379990
|
+
if (this.geminiClient?.isInitialized()) {
|
|
379991
|
+
this.geminiClient.clearCurrentSequenceModel();
|
|
379992
|
+
this.geminiClient.setTools().catch((err2) => {
|
|
379993
379993
|
debugLogger.error("Failed to update tools", err2);
|
|
379994
379994
|
});
|
|
379995
379995
|
}
|
|
@@ -380937,7 +380937,7 @@ ${sections.join("\n")}
|
|
|
380937
380937
|
this.logCurrentModeDuration(this.getApprovalMode());
|
|
380938
380938
|
coreEvents.off(CoreEvent.AgentsRefreshed, this.onAgentsRefreshed);
|
|
380939
380939
|
this.agentRegistry?.dispose();
|
|
380940
|
-
this.
|
|
380940
|
+
this.geminiClient?.dispose();
|
|
380941
380941
|
if (this.mcpClientManager) {
|
|
380942
380942
|
await this.mcpClientManager.stop();
|
|
380943
380943
|
}
|
|
@@ -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-FIYKTSCR.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-HQQJ2XNS.js";
|
|
18
18
|
import {
|
|
19
19
|
debugLogger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ACTC6X24.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-34MYV7JD.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
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-4WJNJ3DK.js";
|
|
5
5
|
import {
|
|
6
6
|
RELEASE_CHANNEL_STABILITY,
|
|
7
7
|
debugLogger,
|
|
8
8
|
getChannelFromVersion,
|
|
9
9
|
isGitRepository
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OANXWSAG.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/utils/installationInfo.ts
|
|
13
13
|
import * as fs from "node:fs";
|