triagent 0.1.0-alpha3 → 0.1.0-alpha5

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/README.md CHANGED
@@ -5,7 +5,17 @@ AI-powered Kubernetes debugging agent with terminal UI.
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- bun install triagent
8
+ # bun
9
+ bun install -g triagent
10
+
11
+ # npm
12
+ npm install -g triagent
13
+
14
+ # yarn
15
+ yarn global add triagent
16
+
17
+ # pnpm
18
+ pnpm add -g triagent
9
19
  ```
10
20
 
11
21
  ## Usage
@@ -20,14 +30,62 @@ triagent --webhook-only
20
30
 
21
31
  ## Configuration
22
32
 
23
- Set the following environment variables:
33
+ Configuration can be set via CLI commands or environment variables. CLI config takes precedence over environment variables.
34
+
35
+ ### CLI Config
24
36
 
25
37
  ```bash
26
- ANTHROPIC_API_KEY=your-api-key
27
- # or
28
- OPENAI_API_KEY=your-api-key
29
- # or
30
- GOOGLE_GENERATIVE_AI_API_KEY=your-api-key
38
+ # Set configuration values
39
+ triagent config set <key> <value>
40
+
41
+ # Get a configuration value
42
+ triagent config get <key>
43
+
44
+ # List all configuration values
45
+ triagent config list
46
+
47
+ # Show config file path
48
+ triagent config path
49
+ ```
50
+
51
+ ### Config Keys
52
+
53
+ | Key | Description | Default |
54
+ |-----|-------------|---------|
55
+ | `aiProvider` | AI provider (`openai`, `anthropic`, `google`) | `anthropic` |
56
+ | `aiModel` | Model ID (e.g., `gpt-4o`, `claude-sonnet-4-20250514`) | Provider default |
57
+ | `apiKey` | API key for the provider | - |
58
+ | `baseUrl` | Custom API base URL (for proxies or local models) | - |
59
+ | `webhookPort` | Webhook server port | `3000` |
60
+ | `codebasePath` | Path to codebase | `./` |
61
+ | `kubeConfigPath` | Kubernetes config path | `~/.kube` |
62
+
63
+ ### Environment Variables
64
+
65
+ | Variable | Description |
66
+ |----------|-------------|
67
+ | `AI_PROVIDER` | AI provider (`openai`, `anthropic`, `google`) |
68
+ | `AI_MODEL` | Model ID |
69
+ | `AI_BASE_URL` | Custom API base URL |
70
+ | `OPENAI_API_KEY` | OpenAI API key |
71
+ | `ANTHROPIC_API_KEY` | Anthropic API key |
72
+ | `GOOGLE_GENERATIVE_AI_API_KEY` | Google AI API key |
73
+ | `WEBHOOK_PORT` | Webhook server port |
74
+ | `CODEBASE_PATH` | Path to codebase |
75
+ | `KUBE_CONFIG_PATH` | Kubernetes config path |
76
+
77
+ ### Examples
78
+
79
+ ```bash
80
+ # Configure with Anthropic (default)
81
+ triagent config set apiKey sk-ant-...
82
+
83
+ # Configure with OpenAI
84
+ triagent config set aiProvider openai
85
+ triagent config set apiKey sk-proj-...
86
+
87
+ # Use a custom API endpoint (e.g., proxy or local model)
88
+ triagent config set baseUrl https://your-proxy.example.com/v1
31
89
  ```
32
90
 
33
91
  ## Development
package/bunfig.toml CHANGED
@@ -1 +1,5 @@
1
1
  preload = ["@opentui/solid/preload"]
2
+
3
+ [jsx]
4
+ runtime = "automatic"
5
+ importSource = "@opentui/solid"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triagent",
3
- "version": "0.1.0-alpha3",
3
+ "version": "0.1.0-alpha5",
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
@@ -1,3 +1,4 @@
1
+ /** @jsxImportSource @opentui/solid */
1
2
  import { render } from "@opentui/solid";
2
3
  import { createSignal, For, Show, onMount } from "solid-js";
3
4
  import { createTextAttributes } from "@opentui/core";