triagent 0.1.0-alpha8 → 0.1.0-alpha9

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/tui/app.tsx +3 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triagent",
3
- "version": "0.1.0-alpha8",
3
+ "version": "0.1.0-alpha9",
4
4
  "description": "AI-powered Kubernetes debugging agent with terminal UI",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/tui/app.tsx CHANGED
@@ -139,10 +139,9 @@ function App() {
139
139
  maxSteps: 20,
140
140
  onStepFinish: ({ toolCalls }) => {
141
141
  if (toolCalls && toolCalls.length > 0) {
142
- const toolCall = toolCalls[0] as { payload?: { toolName?: string; args?: unknown } };
143
- const payload = toolCall.payload;
144
- const toolName = payload?.toolName ?? "tool";
145
- const args = payload?.args ?? {};
142
+ const toolCall = toolCalls[0] as { toolName?: string; args?: unknown };
143
+ const toolName = toolCall.toolName ?? "tool";
144
+ const args = toolCall.args ?? {};
146
145
 
147
146
  // Build display command based on tool type
148
147
  const command = buildDisplayCommand(toolName, args);