triagent 0.1.0-alpha7 → 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.
- package/package.json +4 -3
- package/src/index.ts +1 -3
- 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-
|
|
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",
|
|
@@ -52,8 +52,9 @@
|
|
|
52
52
|
"zod": "^3.24.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"
|
|
55
|
+
"@types/babel__core": "^7.20.5",
|
|
56
56
|
"@types/node": "^22.0.0",
|
|
57
|
-
"bun-types": "^1.2.0"
|
|
57
|
+
"bun-types": "^1.2.0",
|
|
58
|
+
"typescript": "^5.7.0"
|
|
58
59
|
}
|
|
59
60
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// Load solid JSX plugin before any TSX imports
|
|
3
|
-
import
|
|
4
|
-
import solidPlugin from "@opentui/solid/bun-plugin";
|
|
5
|
-
plugin(solidPlugin);
|
|
3
|
+
import "@opentui/solid/preload";
|
|
6
4
|
|
|
7
5
|
import { loadConfig } from "./config.js";
|
|
8
6
|
import { initSandboxFromConfig } from "./sandbox/bashlet.js";
|
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 {
|
|
143
|
-
const
|
|
144
|
-
const
|
|
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);
|