nebula-ai-agent 0.3.1 → 0.3.2

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": "nebula-ai-agent",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "description": "nebula CLI: a Mantle-native, policy-aware AI treasury assistant. Real on-chain work gated by policy, simulation, and approval",
6
6
  "license": "MIT",
@@ -34,11 +34,11 @@
34
34
  "@clack/prompts": "^0.8.2",
35
35
  "@opentui/core": "^0.1.97",
36
36
  "@opentui/solid": "^0.1.97",
37
- "nebula-ai-core": "0.3.0",
38
- "nebula-ai-gateway": "0.3.0",
39
- "nebula-ai-plugin-onchain": "0.3.0",
40
- "nebula-ai-plugin-system": "0.3.0",
41
- "nebula-ai-plugin-telegram": "0.3.0",
37
+ "nebula-ai-core": "0.3.2",
38
+ "nebula-ai-gateway": "0.3.2",
39
+ "nebula-ai-plugin-onchain": "0.3.2",
40
+ "nebula-ai-plugin-system": "0.3.2",
41
+ "nebula-ai-plugin-telegram": "0.3.2",
42
42
  "picocolors": "^1.1.1",
43
43
  "qrcode-terminal": "^0.12.0",
44
44
  "solid-js": "^1.9.12",
@@ -6,6 +6,8 @@ import {
6
6
  type BrainMessage,
7
7
  type ClaudeAgent,
8
8
  type ClaudeCommand,
9
+ DEMO_LLM_BASE_URL,
10
+ DEMO_LLM_TOKEN,
9
11
  HookBus,
10
12
  type Listener,
11
13
  LocalBackend,
@@ -217,8 +219,10 @@ export async function runChat(opts?: { cwd?: string; yolo?: boolean }): Promise<
217
219
  }
218
220
 
219
221
  // OpenAI-compatible LLM config (env-driven; default gpt-4o-mini, swappable to Z.AI/Tencent).
220
- const llmApiKey = process.env.OPENAI_API_KEY ?? process.env.NEBULA_LLM_API_KEY ?? ''
221
- const llmBaseUrl = process.env.NEBULA_LLM_BASE_URL
222
+ const userLlmKey = process.env.OPENAI_API_KEY ?? process.env.NEBULA_LLM_API_KEY
223
+ // No personal key set → fall back to the hosted demo proxy so nebula runs keyless.
224
+ const llmApiKey = userLlmKey ?? DEMO_LLM_TOKEN
225
+ const llmBaseUrl = process.env.NEBULA_LLM_BASE_URL ?? (userLlmKey ? undefined : DEMO_LLM_BASE_URL)
222
226
  const llmModel = process.env.NEBULA_LLM_MODEL ?? config.brain?.model ?? 'gpt-4o-mini'
223
227
 
224
228
  // Sub-brain factory for delegate.task (Phase 9.3). The factory creates a