triagent 0.1.0-alpha6 → 0.1.0-alpha8

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 +4 -3
  2. package/src/index.ts +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triagent",
3
- "version": "0.1.0-alpha6",
3
+ "version": "0.1.0-alpha8",
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
- "typescript": "^5.7.0",
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,10 @@
1
1
  #!/usr/bin/env bun
2
+ // Load solid JSX plugin before any TSX imports
3
+ import "@opentui/solid/preload";
4
+
2
5
  import { loadConfig } from "./config.js";
3
6
  import { initSandboxFromConfig } from "./sandbox/bashlet.js";
4
7
  import { createMastraInstance, buildIncidentPrompt, getDebuggerAgent } from "./mastra/index.js";
5
- import { runTUI } from "./tui/app.jsx";
6
8
  import { startWebhookServer } from "./server/webhook.js";
7
9
  import {
8
10
  loadStoredConfig,
@@ -297,6 +299,8 @@ async function main(): Promise<void> {
297
299
  } else {
298
300
  // Interactive TUI mode
299
301
  console.log("Starting Triagent TUI...\n");
302
+ // Dynamic import to ensure solid plugin is loaded first
303
+ const { runTUI } = await import("./tui/app.jsx");
300
304
  const tui = await runTUI();
301
305
 
302
306
  // Handle graceful shutdown