tnega 0.3.0 → 0.4.1

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
@@ -17,11 +17,11 @@ pnpm add -g tnega
17
17
  ## Quick Start
18
18
 
19
19
  ```bash
20
- export OPENCODE_GO_API_KEY=sk-...
20
+ export TNEGA_API_KEY=sk-...
21
21
  tnega run "Reply with: hello"
22
22
  ```
23
23
 
24
- `tnega run` uses OpenCode Go's `deepseek-v4-flash` model through the OpenAI compatible endpoint by default. `minimax-m3` is also available through the Anthropic Messages endpoint. The API key can also come from `~/.tnega/config.json` (Windows: `%USERPROFILE%\.tnega\config.json`) with fields `apiKey`, `model`, `baseUrl`, and `temperature`. Precedence: CLI flags > environment variables > config file > defaults.
24
+ `tnega run` uses OpenCode Go's `deepseek-v4-flash` model through the OpenAI compatible endpoint by default. `minimax-m3` is also available through the Anthropic Messages endpoint. Set `TNEGA_API_KEY` for the API key; `OPENCODE_GO_API_KEY`, `OPENAI_API_KEY`, and `DEEPSEEK_API_KEY` remain compatible fallbacks. The API key can also come from `%USERPROFILE%\.tnega\config.json` on Windows or `~/.config/tnega/config.json` on Linux/macOS, with `apiKey`, `model`, `baseUrl`, `protocol`, and `temperature` fields. Precedence: CLI flags > environment variables > config file > defaults.
25
25
 
26
26
  Run a deterministic eval without an API key:
27
27
 
@@ -82,7 +82,7 @@ const fiber = await root.plugin(
82
82
  version: '0.3.0',
83
83
  system: 'You are a coding agent.',
84
84
  }),
85
- { llm: openaiCompatAdapter({ apiKey: process.env.OPENCODE_GO_API_KEY! }) },
85
+ { llm: openaiCompatAdapter({ apiKey: process.env.TNEGA_API_KEY! }) },
86
86
  )
87
87
 
88
88
  const loop = root.get('agentLoop')