triagent 0.1.0-alpha5 → 0.1.0-alpha7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triagent",
3
- "version": "0.1.0-alpha5",
3
+ "version": "0.1.0-alpha7",
4
4
  "description": "AI-powered Kubernetes debugging agent with terminal UI",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -47,7 +47,7 @@
47
47
  "@opentui/solid": "^0.1.72",
48
48
  "hono": "^4.6.0",
49
49
  "opentui-spinner": "^0.0.6",
50
- "solid-js": "^1.9.10",
50
+ "solid-js": "1.9.9",
51
51
  "triagent": "^0.1.0-alpha1",
52
52
  "zod": "^3.24.0"
53
53
  },
package/src/index.ts CHANGED
@@ -1,8 +1,12 @@
1
1
  #!/usr/bin/env bun
2
+ // Load solid JSX plugin before any TSX imports
3
+ import { plugin } from "bun";
4
+ import solidPlugin from "@opentui/solid/bun-plugin";
5
+ plugin(solidPlugin);
6
+
2
7
  import { loadConfig } from "./config.js";
3
8
  import { initSandboxFromConfig } from "./sandbox/bashlet.js";
4
9
  import { createMastraInstance, buildIncidentPrompt, getDebuggerAgent } from "./mastra/index.js";
5
- import { runTUI } from "./tui/app.jsx";
6
10
  import { startWebhookServer } from "./server/webhook.js";
7
11
  import {
8
12
  loadStoredConfig,
@@ -297,6 +301,8 @@ async function main(): Promise<void> {
297
301
  } else {
298
302
  // Interactive TUI mode
299
303
  console.log("Starting Triagent TUI...\n");
304
+ // Dynamic import to ensure solid plugin is loaded first
305
+ const { runTUI } = await import("./tui/app.jsx");
300
306
  const tui = await runTUI();
301
307
 
302
308
  // Handle graceful shutdown
package/src/tui/app.tsx CHANGED
@@ -1,4 +1,4 @@
1
- /** @jsxImportSource @opentui/solid */
1
+ /* @jsxImportSource @opentui/solid */
2
2
  import { render } from "@opentui/solid";
3
3
  import { createSignal, For, Show, onMount } from "solid-js";
4
4
  import { createTextAttributes } from "@opentui/core";