@google/gemini-cli-a2a-server 0.39.0-preview.1 → 0.39.0-preview.2

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.
@@ -208992,8 +208992,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
208992
208992
  var init_git_commit = __esm({
208993
208993
  "packages/core/dist/src/generated/git-commit.js"() {
208994
208994
  "use strict";
208995
- GIT_COMMIT_INFO = "8d4bd62d3";
208996
- CLI_VERSION = "0.39.0-preview.1";
208995
+ GIT_COMMIT_INFO = "23f55e0d1";
208996
+ CLI_VERSION = "0.39.0-preview.2";
208997
208997
  }
208998
208998
  });
208999
208999
 
@@ -332425,7 +332425,7 @@ function getVersion() {
332425
332425
  }
332426
332426
  versionPromise = (async () => {
332427
332427
  const pkgJson = await getPackageJson(__dirname4);
332428
- return "0.39.0-preview.1";
332428
+ return "0.39.0-preview.2";
332429
332429
  })();
332430
332430
  return versionPromise;
332431
332431
  }
@@ -400305,6 +400305,8 @@ var init_a2aUtils = __esm({
400305
400305
  pushMessage(message) {
400306
400306
  if (!message)
400307
400307
  return;
400308
+ if (message.role === "user")
400309
+ return;
400308
400310
  const text = extractPartsText(message.parts, "");
400309
400311
  if (text && this.messageLog[this.messageLog.length - 1] !== text) {
400310
400312
  this.messageLog.push(text);
@@ -400315,19 +400317,32 @@ var init_a2aUtils = __esm({
400315
400317
  */
400316
400318
  toActivityItems() {
400317
400319
  const isAuthRequired = this.messageLog.includes(AUTH_REQUIRED_MSG);
400318
- return [
400319
- isAuthRequired ? {
400320
+ const items = [];
400321
+ if (isAuthRequired) {
400322
+ items.push({
400320
400323
  id: "auth-required",
400321
400324
  type: "thought",
400322
400325
  content: AUTH_REQUIRED_MSG,
400323
400326
  status: "running"
400324
- } : {
400327
+ });
400328
+ }
400329
+ this.messageLog.forEach((msg, index) => {
400330
+ items.push({
400331
+ id: `msg-${index}`,
400332
+ type: "thought",
400333
+ content: msg.trim(),
400334
+ status: "completed"
400335
+ });
400336
+ });
400337
+ if (items.length === 0 && !isAuthRequired) {
400338
+ items.push({
400325
400339
  id: "pending",
400326
400340
  type: "thought",
400327
400341
  content: "Working...",
400328
400342
  status: "running"
400329
- }
400330
- ];
400343
+ });
400344
+ }
400345
+ return items;
400331
400346
  }
400332
400347
  /**
400333
400348
  * Returns a human-readable string representation of the current reassembled state.
@@ -439256,7 +439271,6 @@ ${sections.join("\n")}
439256
439271
  debugLogger.debug("Experiments loaded", summaryString);
439257
439272
  }
439258
439273
  onAgentsRefreshed = async () => {
439259
- await this.agentRegistry.initialize();
439260
439274
  const client = this.geminiClient;
439261
439275
  if (client?.isInitialized()) {
439262
439276
  await client.setTools();