@google/gemini-cli-a2a-server 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.
@@ -221685,8 +221685,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
221685
221685
  var init_git_commit = __esm({
221686
221686
  "packages/core/dist/src/generated/git-commit.js"() {
221687
221687
  "use strict";
221688
- GIT_COMMIT_INFO = "9c1b0a610";
221689
- CLI_VERSION = "0.61.0-nightly.20260914.g9c1b0a610";
221688
+ GIT_COMMIT_INFO = "ae28844fb";
221689
+ CLI_VERSION = "0.61.0-preview.0";
221690
221690
  }
221691
221691
  });
221692
221692
 
@@ -337417,7 +337417,7 @@ function getVersion() {
337417
337417
  }
337418
337418
  versionPromise = (async () => {
337419
337419
  const pkgJson = await getPackageJson(__dirname4);
337420
- return "0.61.0-nightly.20260914.g9c1b0a610";
337420
+ return "0.61.0-preview.0";
337421
337421
  })();
337422
337422
  return versionPromise;
337423
337423
  }
@@ -416000,7 +416000,11 @@ var init_config4 = __esm({
416000
416000
  }).optional()
416001
416001
  });
416002
416002
  Config = class {
416003
- _toolRegistry;
416003
+ config = this;
416004
+ promptId;
416005
+ toolRegistry;
416006
+ promptRegistry;
416007
+ resourceRegistry;
416004
416008
  mcpClientManager;
416005
416009
  a2aClientManager;
416006
416010
  allowedMcpServers;
@@ -416008,8 +416012,6 @@ var init_config4 = __esm({
416008
416012
  allowedEnvironmentVariables;
416009
416013
  blockedEnvironmentVariables;
416010
416014
  enableEnvironmentVariableRedaction;
416011
- _promptRegistry;
416012
- _resourceRegistry;
416013
416015
  agentRegistry;
416014
416016
  acknowledgedAgentsService;
416015
416017
  skillManager;
@@ -416053,8 +416055,8 @@ var init_config4 = __esm({
416053
416055
  accessibility;
416054
416056
  telemetrySettings;
416055
416057
  usageStatisticsEnabled;
416056
- _geminiClient;
416057
- _sandboxManager;
416058
+ geminiClient;
416059
+ sandboxManager;
416058
416060
  _sandboxPolicyManager;
416059
416061
  baseLlmClient;
416060
416062
  localLiteRtLmClient;
@@ -416136,7 +416138,7 @@ var init_config4 = __esm({
416136
416138
  eventEmitter;
416137
416139
  useWriteTodos;
416138
416140
  workspacePoliciesDir;
416139
- _messageBus;
416141
+ messageBus;
416140
416142
  policyEngine;
416141
416143
  policyUpdateConfirmationRequest;
416142
416144
  outputSettings;
@@ -416196,6 +416198,7 @@ var init_config4 = __esm({
416196
416198
  approvedPlanPath;
416197
416199
  constructor(params) {
416198
416200
  this._sessionId = params.sessionId;
416201
+ this.promptId = params.sessionId;
416199
416202
  this.clientName = params.clientName;
416200
416203
  this._clientVersion = params.clientVersion ?? "unknown";
416201
416204
  this.approvedPlanPath = void 0;
@@ -416226,7 +416229,7 @@ var init_config4 = __esm({
416226
416229
  this.worktreeSettings = params.worktreeSettings;
416227
416230
  this._sandboxPolicyManager = new SandboxPolicyManager();
416228
416231
  const initialApprovalMode = params.approvalMode ?? params.policyEngineConfig?.approvalMode ?? "default";
416229
- this._sandboxManager = createSandboxManager(this.sandbox, {
416232
+ this.sandboxManager = createSandboxManager(this.sandbox, {
416230
416233
  workspace: this.targetDir,
416231
416234
  forbiddenPaths: this.getSandboxForbiddenPaths.bind(this),
416232
416235
  includeDirectories: [
@@ -416235,8 +416238,8 @@ var init_config4 = __esm({
416235
416238
  ],
416236
416239
  policyManager: this._sandboxPolicyManager
416237
416240
  }, initialApprovalMode);
416238
- if (!(this._sandboxManager instanceof NoopSandboxManager) && this.sandbox?.enabled) {
416239
- this.fileSystemService = new SandboxedFileSystemService(this._sandboxManager, params.targetDir);
416241
+ if (!(this.sandboxManager instanceof NoopSandboxManager) && this.sandbox?.enabled) {
416242
+ this.fileSystemService = new SandboxedFileSystemService(this.sandboxManager, params.targetDir);
416240
416243
  } else {
416241
416244
  this.fileSystemService = new StandardFileSystemService();
416242
416245
  }
@@ -416411,7 +416414,7 @@ var init_config4 = __esm({
416411
416414
  showColor: params.shellExecutionConfig?.showColor ?? false,
416412
416415
  pager: params.shellExecutionConfig?.pager ?? "cat",
416413
416416
  sanitizationConfig: this.sanitizationConfig,
416414
- sandboxManager: this._sandboxManager,
416417
+ sandboxManager: this.sandboxManager,
416415
416418
  sandboxConfig: this.sandbox,
416416
416419
  backgroundCompletionBehavior: this.shellBackgroundCompletionBehavior
416417
416420
  };
@@ -416450,14 +416453,14 @@ var init_config4 = __esm({
416450
416453
  ...params.policyEngineConfig,
416451
416454
  approvalMode: engineApprovalMode,
416452
416455
  disableAlwaysAllow: this.disableAlwaysAllow,
416453
- sandboxManager: this._sandboxManager,
416456
+ sandboxManager: this.sandboxManager,
416454
416457
  isTrustedFolder: () => this.isTrustedFolder()
416455
416458
  }, checkerRunner);
416456
416459
  if (this.enableConseca) {
416457
416460
  debugLogger.log("[SAFETY] Registering Conseca Safety Checker");
416458
416461
  ConsecaSafetyChecker.getInstance().setContext(this);
416459
416462
  }
416460
- this._messageBus = new MessageBus(this.policyEngine, this.debugMode);
416463
+ this.messageBus = new MessageBus(this.policyEngine, this.debugMode);
416461
416464
  this.acknowledgedAgentsService = new AcknowledgedAgentsService();
416462
416465
  this.skillManager = new SkillManager();
416463
416466
  this.outputSettings = {
@@ -416507,13 +416510,10 @@ var init_config4 = __esm({
416507
416510
  coreEvents.emitFeedback("error", "Invalid proxy configuration detected. Check debug drawer for more details (F12)", error2);
416508
416511
  }
416509
416512
  }
416510
- this._geminiClient = new GeminiClient(this);
416513
+ this.geminiClient = new GeminiClient(this);
416511
416514
  this.a2aClientManager = new A2AClientManager(this);
416512
416515
  this.modelRouterService = new ModelRouterService(this);
416513
416516
  }
416514
- get config() {
416515
- return this;
416516
- }
416517
416517
  isInitialized() {
416518
416518
  return this.initialized;
416519
416519
  }
@@ -416555,16 +416555,16 @@ var init_config4 = __esm({
416555
416555
  if (this.getCheckpointingEnabled()) {
416556
416556
  await this.getGitService();
416557
416557
  }
416558
- this._promptRegistry = new PromptRegistry();
416559
- this._resourceRegistry = new ResourceRegistry();
416558
+ this.promptRegistry = new PromptRegistry();
416559
+ this.resourceRegistry = new ResourceRegistry();
416560
416560
  this.agentRegistry = new AgentRegistry(this);
416561
416561
  await this.agentRegistry.initialize();
416562
416562
  coreEvents.on(CoreEvent.AgentsRefreshed, this.onAgentsRefreshed);
416563
- this._toolRegistry = await this.createToolRegistry();
416563
+ this.toolRegistry = await this.createToolRegistry();
416564
416564
  discoverToolsHandle?.end();
416565
416565
  this.mcpClientManager = new McpClientManager(this.clientVersion, this, this.eventEmitter);
416566
416566
  this.mcpClientManager.setMainRegistries({
416567
- toolRegistry: this._toolRegistry,
416567
+ toolRegistry: this.toolRegistry,
416568
416568
  promptRegistry: this.promptRegistry,
416569
416569
  resourceRegistry: this.resourceRegistry
416570
416570
  });
@@ -416598,7 +416598,7 @@ var init_config4 = __esm({
416598
416598
  }
416599
416599
  this.memoryContextManager = new MemoryContextManager(this);
416600
416600
  await this.memoryContextManager.refresh();
416601
- await this._geminiClient.initialize();
416601
+ await this.geminiClient.initialize();
416602
416602
  this.initialized = true;
416603
416603
  }
416604
416604
  getContentGenerator() {
@@ -416609,7 +416609,7 @@ var init_config4 = __esm({
416609
416609
  this.fallbackOverrides.clear();
416610
416610
  this.modelConfigService.clearRuntimeOverrides();
416611
416611
  if (this.contentGeneratorConfig?.authType === AuthType2.USE_GEMINI && authMethod !== AuthType2.USE_GEMINI) {
416612
- this._geminiClient.stripThoughtsFromHistory();
416612
+ this.geminiClient.stripThoughtsFromHistory();
416613
416613
  }
416614
416614
  this.modelAvailabilityService.reset();
416615
416615
  if (this.contentGeneratorConfig) {
@@ -416697,43 +416697,37 @@ var init_config4 = __esm({
416697
416697
  }
416698
416698
  return this.localLiteRtLmClient;
416699
416699
  }
416700
- get promptId() {
416701
- return this._sessionId;
416700
+ /** @internal Backing field alias for backwards-compatibility */
416701
+ get _toolRegistry() {
416702
+ return this.toolRegistry;
416702
416703
  }
416703
- /**
416704
- * @deprecated Do not access directly on Config.
416705
- * Use the injected AgentLoopContext instead.
416706
- */
416707
- get toolRegistry() {
416708
- return this._toolRegistry;
416704
+ set _toolRegistry(value) {
416705
+ this.toolRegistry = value;
416709
416706
  }
416710
- /**
416711
- * @deprecated Do not access directly on Config.
416712
- * Use the injected AgentLoopContext instead.
416713
- */
416714
- get promptRegistry() {
416715
- return this._promptRegistry;
416707
+ /** @internal Backing field alias for backwards-compatibility */
416708
+ get _promptRegistry() {
416709
+ return this.promptRegistry;
416716
416710
  }
416717
- /**
416718
- * @deprecated Do not access directly on Config.
416719
- * Use the injected AgentLoopContext instead.
416720
- */
416721
- get resourceRegistry() {
416722
- return this._resourceRegistry;
416711
+ set _promptRegistry(registry2) {
416712
+ this.promptRegistry = registry2;
416723
416713
  }
416724
- /**
416725
- * @deprecated Do not access directly on Config.
416726
- * Use the injected AgentLoopContext instead.
416727
- */
416728
- get messageBus() {
416729
- return this._messageBus;
416714
+ /** @internal Backing field alias for backwards-compatibility */
416715
+ get _resourceRegistry() {
416716
+ return this.resourceRegistry;
416730
416717
  }
416731
- /**
416732
- * @deprecated Do not access directly on Config.
416733
- * Use the injected AgentLoopContext instead.
416734
- */
416735
- get geminiClient() {
416736
- return this._geminiClient;
416718
+ set _resourceRegistry(registry2) {
416719
+ this.resourceRegistry = registry2;
416720
+ }
416721
+ /** @internal Backing field alias for backwards-compatibility */
416722
+ get _messageBus() {
416723
+ return this.messageBus;
416724
+ }
416725
+ /** @internal Backing field alias for backwards-compatibility */
416726
+ get _geminiClient() {
416727
+ return this.geminiClient;
416728
+ }
416729
+ set _geminiClient(client) {
416730
+ this.geminiClient = client;
416737
416731
  }
416738
416732
  async getSandboxForbiddenPaths() {
416739
416733
  if (this._sandboxForbiddenPaths) {
@@ -416746,7 +416740,7 @@ var init_config4 = __esm({
416746
416740
  return this._sandboxForbiddenPaths;
416747
416741
  }
416748
416742
  refreshSandboxManager() {
416749
- this._sandboxManager = createSandboxManager(this.sandbox, {
416743
+ this.sandboxManager = createSandboxManager(this.sandbox, {
416750
416744
  workspace: this.targetDir,
416751
416745
  forbiddenPaths: this.getSandboxForbiddenPaths.bind(this),
416752
416746
  includeDirectories: [
@@ -416755,13 +416749,17 @@ var init_config4 = __esm({
416755
416749
  ],
416756
416750
  policyManager: this._sandboxPolicyManager
416757
416751
  }, this.getApprovalMode());
416758
- this.shellExecutionConfig.sandboxManager = this._sandboxManager;
416752
+ this.shellExecutionConfig.sandboxManager = this.sandboxManager;
416759
416753
  }
416760
416754
  get sandboxPolicyManager() {
416761
416755
  return this._sandboxPolicyManager;
416762
416756
  }
416763
- get sandboxManager() {
416764
- return this._sandboxManager;
416757
+ /** @internal Backing field alias for backwards-compatibility */
416758
+ get _sandboxManager() {
416759
+ return this.sandboxManager;
416760
+ }
416761
+ set _sandboxManager(manager) {
416762
+ this.sandboxManager = manager;
416765
416763
  }
416766
416764
  getSessionId() {
416767
416765
  return this.promptId;
@@ -416775,6 +416773,7 @@ var init_config4 = __esm({
416775
416773
  setSessionId(sessionId) {
416776
416774
  const previousPlansDir = this.storage.isInitialized() ? this.storage.getPlansDir() : void 0;
416777
416775
  this._sessionId = sessionId;
416776
+ this.promptId = sessionId;
416778
416777
  this.storage.setSessionId(sessionId);
416779
416778
  this.trackerService = void 0;
416780
416779
  this.fallbackOverrides.clear();
@@ -416800,6 +416799,7 @@ var init_config4 = __esm({
416800
416799
  }
416801
416800
  rotateSessionId(sessionId) {
416802
416801
  this._sessionId = sessionId;
416802
+ this.promptId = sessionId;
416803
416803
  }
416804
416804
  resetNewSessionState(sessionId) {
416805
416805
  this.setSessionId(sessionId);
@@ -417071,13 +417071,13 @@ var init_config4 = __esm({
417071
417071
  return this.toolRegistry;
417072
417072
  }
417073
417073
  getPromptRegistry() {
417074
- return this._promptRegistry;
417074
+ return this.promptRegistry;
417075
417075
  }
417076
417076
  getSkillManager() {
417077
417077
  return this.skillManager;
417078
417078
  }
417079
417079
  getResourceRegistry() {
417080
- return this._resourceRegistry;
417080
+ return this.resourceRegistry;
417081
417081
  }
417082
417082
  getDebugMode() {
417083
417083
  return this.debugMode;
@@ -417282,9 +417282,9 @@ var init_config4 = __esm({
417282
417282
  */
417283
417283
  async refreshMcpContext() {
417284
417284
  await this.memoryContextManager?.refresh();
417285
- if (this._geminiClient?.isInitialized()) {
417286
- await this._geminiClient.setTools();
417287
- this._geminiClient.updateSystemInstruction();
417285
+ if (this.geminiClient?.isInitialized()) {
417286
+ await this.geminiClient.setTools();
417287
+ this.geminiClient.updateSystemInstruction();
417288
417288
  }
417289
417289
  }
417290
417290
  setUserMemory(newUserMemory) {
@@ -417461,9 +417461,9 @@ ${sections.join("\n")}
417461
417461
  const isPlanModeTransition = currentMode === ApprovalMode.PLAN || mode === ApprovalMode.PLAN;
417462
417462
  const isYoloModeTransition = currentMode === ApprovalMode.YOLO || mode === ApprovalMode.YOLO;
417463
417463
  if (isPlanModeTransition || isYoloModeTransition) {
417464
- if (this._geminiClient?.isInitialized()) {
417465
- this._geminiClient.clearCurrentSequenceModel();
417466
- this._geminiClient.setTools().catch((err2) => {
417464
+ if (this.geminiClient?.isInitialized()) {
417465
+ this.geminiClient.clearCurrentSequenceModel();
417466
+ this.geminiClient.setTools().catch((err2) => {
417467
417467
  debugLogger.error("Failed to update tools", err2);
417468
417468
  });
417469
417469
  }
@@ -418411,7 +418411,7 @@ ${sections.join("\n")}
418411
418411
  this.logCurrentModeDuration(this.getApprovalMode());
418412
418412
  coreEvents.off(CoreEvent.AgentsRefreshed, this.onAgentsRefreshed);
418413
418413
  this.agentRegistry?.dispose();
418414
- this._geminiClient?.dispose();
418414
+ this.geminiClient?.dispose();
418415
418415
  if (this.mcpClientManager) {
418416
418416
  await this.mcpClientManager.stop();
418417
418417
  }