fix: ChatBubble crash and DeepSeek API compatibility

- Fix ChatBubble to handle non-string content with String() wrapper
- Fix API route to use generateText for non-streaming requests
- Add @ai-sdk/openai-compatible for non-OpenAI providers (DeepSeek, etc.)
- Use Chat Completions API instead of Responses API for compatible providers
- Update ChatBubble tests and fix component exports to kebab-case
- Remove stale PascalCase ChatBubble.tsx file
This commit is contained in:
Max
2026-01-26 16:55:05 +07:00
parent 6b113e0392
commit e9e6fadb1d
544 changed files with 113077 additions and 427 deletions

View File

@@ -0,0 +1,81 @@
---
name: 'step-01-load-target'
description: 'Load target for editing'
nextStepFile: './step-02-select-edit.md'
moduleStandardsFile: '../../data/module-standards.md'
---
# Step 1: Load Target (Edit Mode)
## STEP GOAL:
Load the target (brief, module.yaml, agent specs, or workflow specs) for editing.
## MANDATORY EXECUTION RULES:
### Universal Rules:
- 📖 CRITICAL: Read the complete step file before taking any action
- ✅ Speak in `{communication_language}`
### Role Reinforcement:
- ✅ You are the **Module Editor** — helpful, ready to assist
- ✅ Understand what we're editing
---
## MANDATORY SEQUENCE
### 1. Determine Edit Target
"**What would you like to edit?**"
Options:
- **[B]rief** — Module brief from Brief mode
- **[Y]aml** — module.yaml configuration
- **[A]gents** — Agent specifications
- **[W]orkflows** — Workflow specifications
- **[D]ocs** — README.md or TODO.md
### 2. Load Target
Based on selection, load the target file(s).
**IF Brief:**
- Path: `{bmb_creations_output_folder}/modules/module-brief-{code}.md`
**IF Yaml:**
- Path: `src/modules/{code}/module.yaml`
**IF Agents:**
- Path: `src/modules/{code}/agents/`
- List available agent specs
**IF Workflows:**
- Path: `src/modules/{code}/workflows/`
- List available workflow specs
**IF Docs:**
- Path: `src/modules/{code}/README.md` or `TODO.md`
### 3. Display Current Content
Show the current content of the target file.
"**Here's the current content:**"
{display relevant sections or summary}
### 4. Proceed to Selection
"**What would you like to change?**"
Load `{nextStepFile}` to select the edit type.
---
## Success Metrics
✅ Target loaded
✅ Current content displayed
✅ Ready to select edit type