@google/gemini-cli-a2a-server 0.25.0-preview.3 → 0.25.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.
@@ -327632,7 +327632,7 @@ function getResponseText(response) {
327632
327632
  if (response.candidates && response.candidates.length > 0) {
327633
327633
  const candidate = response.candidates[0];
327634
327634
  if (candidate.content && candidate.content.parts && candidate.content.parts.length > 0) {
327635
- return candidate.content.parts.filter((part) => part.text).map((part) => part.text).join("");
327635
+ return candidate.content.parts.filter((part) => part.text && !part.thought).map((part) => part.text).join("");
327636
327636
  }
327637
327637
  }
327638
327638
  return null;
@@ -328593,7 +328593,7 @@ var __filename = fileURLToPath4(import.meta.url);
328593
328593
  var __dirname3 = path20.dirname(__filename);
328594
328594
  async function getVersion() {
328595
328595
  const pkgJson = await getPackageJson(__dirname3);
328596
- return "0.25.0-preview.3";
328596
+ return "0.25.0";
328597
328597
  }
328598
328598
 
328599
328599
  // packages/core/dist/src/code_assist/experiments/client_metadata.js
@@ -331427,8 +331427,8 @@ var Float64Vector = import_vector.default.Float64Vector;
331427
331427
  var PointerVector = import_vector.default.PointerVector;
331428
331428
 
331429
331429
  // packages/core/dist/src/generated/git-commit.js
331430
- var GIT_COMMIT_INFO = "6289c3ee3";
331431
- var CLI_VERSION = "0.25.0-preview.3";
331430
+ var GIT_COMMIT_INFO = "eb8834341";
331431
+ var CLI_VERSION = "0.25.0";
331432
331432
 
331433
331433
  // packages/core/dist/src/ide/detect-ide.js
331434
331434
  var IDE_DEFINITIONS = {
@@ -372304,7 +372304,7 @@ async function handleUpgrade() {
372304
372304
  async function processIntent(config3, intent, fallbackModel) {
372305
372305
  switch (intent) {
372306
372306
  case "retry_always":
372307
- config3.setActiveModel(fallbackModel);
372307
+ config3.activateFallbackMode(fallbackModel);
372308
372308
  return true;
372309
372309
  case "retry_once":
372310
372310
  return true;
@@ -388537,15 +388537,16 @@ var Turn = class {
388537
388537
  continue;
388538
388538
  this.debugResponses.push(resp);
388539
388539
  const traceId = resp.responseId;
388540
- const thoughtPart = resp.candidates?.[0]?.content?.parts?.[0];
388541
- if (thoughtPart?.thought) {
388542
- const thought = parseThought(thoughtPart.text ?? "");
388543
- yield {
388544
- type: GeminiEventType.Thought,
388545
- value: thought,
388546
- traceId
388547
- };
388548
- continue;
388540
+ const parts2 = resp.candidates?.[0]?.content?.parts ?? [];
388541
+ for (const part of parts2) {
388542
+ if (part.thought) {
388543
+ const thought = parseThought(part.text ?? "");
388544
+ yield {
388545
+ type: GeminiEventType.Thought,
388546
+ value: thought,
388547
+ traceId
388548
+ };
388549
+ }
388549
388550
  }
388550
388551
  const text = getResponseText(resp);
388551
388552
  if (text) {
@@ -389895,6 +389896,7 @@ var ChatCompressionService = class {
389895
389896
  };
389896
389897
 
389897
389898
  // packages/core/dist/src/core/client.js
389899
+ init_events();
389898
389900
  var MAX_TURNS = 100;
389899
389901
  var GeminiClient = class {
389900
389902
  config;
@@ -389916,7 +389918,11 @@ var GeminiClient = class {
389916
389918
  this.loopDetector = new LoopDetectionService(config3);
389917
389919
  this.compressionService = new ChatCompressionService();
389918
389920
  this.lastPromptId = this.config.getSessionId();
389921
+ coreEvents.on(CoreEvent.ModelChanged, this.handleModelChanged);
389919
389922
  }
389923
+ handleModelChanged = () => {
389924
+ this.currentSequenceModel = null;
389925
+ };
389920
389926
  // Hook state to deduplicate BeforeAgent calls and track response for
389921
389927
  // AfterAgent
389922
389928
  hookStateMap = /* @__PURE__ */ new Map();
@@ -390021,6 +390027,9 @@ var GeminiClient = class {
390021
390027
  this.chat = await this.startChat();
390022
390028
  this.updateTelemetryTokenCount();
390023
390029
  }
390030
+ dispose() {
390031
+ coreEvents.off(CoreEvent.ModelChanged, this.handleModelChanged);
390032
+ }
390024
390033
  async resumeChat(history, resumedSessionData) {
390025
390034
  this.chat = await this.startChat(history, resumedSessionData);
390026
390035
  }
@@ -411160,9 +411169,8 @@ var Config = class {
411160
411169
  */
411161
411170
  async dispose() {
411162
411171
  coreEvents.off(CoreEvent.AgentsRefreshed, this.onAgentsRefreshed);
411163
- if (this.agentRegistry) {
411164
- this.agentRegistry.dispose();
411165
- }
411172
+ this.agentRegistry?.dispose();
411173
+ this.geminiClient?.dispose();
411166
411174
  if (this.mcpClientManager) {
411167
411175
  await this.mcpClientManager.stop();
411168
411176
  }