@adecore/agents 0.32.0 → 0.33.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.
@@ -71,6 +71,10 @@ function parseWorkflowProgress(entries) {
71
71
  }
72
72
  else if (entry.type === 'workflow_agent') {
73
73
  const durationMs = intOrNull(entry.durationMs);
74
+ const lastToolSummary = str(entry.lastToolSummary);
75
+ const promptPreview = str(entry.promptPreview);
76
+ const resultPreview = str(entry.resultPreview);
77
+ const error = str(entry.error);
74
78
  agents.set(index, {
75
79
  index,
76
80
  label: str(entry.label) ?? '',
@@ -79,7 +83,11 @@ function parseWorkflowProgress(entries) {
79
83
  status: WORKFLOW_AGENT_STATUS[str(entry.state) ?? ''] ?? 'running',
80
84
  startedAt: typeof entry.startedAt === 'number' ? entry.startedAt : null,
81
85
  durationMs: durationMs !== null && durationMs >= 0 ? durationMs : null,
82
- lastTool: str(entry.lastToolName)
86
+ lastTool: str(entry.lastToolName),
87
+ ...(lastToolSummary ? { lastToolSummary } : {}),
88
+ ...(promptPreview ? { promptPreview } : {}),
89
+ ...(resultPreview ? { resultPreview } : {}),
90
+ ...(error ? { error } : {})
83
91
  });
84
92
  }
85
93
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/agents",
3
- "version": "0.32.0",
3
+ "version": "0.33.0",
4
4
  "description": "Node-compatible agent chat hosts, providers, accounts, usage and durable task coordination.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -81,8 +81,8 @@
81
81
  "test": "bun --conditions=source test"
82
82
  },
83
83
  "dependencies": {
84
- "@adecore/agent-contracts": "0.32.0",
85
- "@adecore/intelligent-ui": "0.32.0",
84
+ "@adecore/agent-contracts": "0.33.0",
85
+ "@adecore/intelligent-ui": "0.33.0",
86
86
  "zod": "^4.6.5"
87
87
  },
88
88
  "devDependencies": {
@@ -95,6 +95,10 @@ function parseWorkflowProgress(entries: unknown[]): Pick<ChatWorkflow, 'phases'
95
95
  phases.set(index, { index, title: str(entry.title) ?? '' });
96
96
  } else if (entry.type === 'workflow_agent') {
97
97
  const durationMs = intOrNull(entry.durationMs);
98
+ const lastToolSummary = str(entry.lastToolSummary);
99
+ const promptPreview = str(entry.promptPreview);
100
+ const resultPreview = str(entry.resultPreview);
101
+ const error = str(entry.error);
98
102
  agents.set(index, {
99
103
  index,
100
104
  label: str(entry.label) ?? '',
@@ -103,7 +107,11 @@ function parseWorkflowProgress(entries: unknown[]): Pick<ChatWorkflow, 'phases'
103
107
  status: WORKFLOW_AGENT_STATUS[str(entry.state) ?? ''] ?? 'running',
104
108
  startedAt: typeof entry.startedAt === 'number' ? entry.startedAt : null,
105
109
  durationMs: durationMs !== null && durationMs >= 0 ? durationMs : null,
106
- lastTool: str(entry.lastToolName)
110
+ lastTool: str(entry.lastToolName),
111
+ ...(lastToolSummary ? { lastToolSummary } : {}),
112
+ ...(promptPreview ? { promptPreview } : {}),
113
+ ...(resultPreview ? { resultPreview } : {}),
114
+ ...(error ? { error } : {})
107
115
  });
108
116
  }
109
117
  }