Commit Graph

16 Commits

Author SHA1 Message Date
whlaoding
38d6875ab8 Fix truncation issues in piplan, SQLite storage, and history compression; add PIPlanMaxChars configuration 2026-03-15 00:32:14 +08:00
whlaoding
ea88e1dc18 fix(sse): correct UTF-8 handling and chunking in SSE streaming\n\n- Updated splitContentIntoSegments to handle runes instead of bytes\n- Fixed buildWebUIStreamForwarder to send delta chunks instead of cumulative content\n- Ensures proper handling of multi-byte characters in SSE streams 2026-03-14 01:41:51 +08:00
whlaoding
60195f00a0 Add Docker support: Dockerfile, docker-compose.yaml, and README updates 2026-03-13 23:11:46 +08:00
33c357a1de feat: optimize WebUI stream output and sanitize user-facing answers 2026-03-13 13:14:37 +08:00
8dc5354fa4 feat: implement streaming chat, skill routing, and SAFe PI planning tools
- Add /api/chat/stream endpoint with Server-Sent Events (SSE) for real-time message streaming
  * Implement StreamEvent types (thought, tool_call, tool_result, final, error)
  * Add StreamEventCallback mechanism for event propagation
  * Create StreamChatHandler in webui/bot with proper HTTP headers and flushing

- Implement LLM-based skill router for intelligent capability selection
  * Add optional routerLLM client for semantic routing
  * Implement routeSkillsWithLLM() to match user intent to available skills
  * Add matchSkillsByName() for fuzzy skill matching
  * Update buildUnifiedSystemPrompt() to use routed skills

- Add streaming support to ReAct pipeline
  * Implement runUnifiedReActStream() for streaming thought/action/observation
  * Emit StreamEvent at each ReAct step
  * Support callback error handling in streaming mode

- Integrate three new DevOps tools
  * tools/filedoc: Extract document content from file_id via OpenAI
  * tools/giteaticket: Create Gitea issues from PI plan items with SAFe metadata
  * tools/piplan: Publish PI planning blueprints with dependency tracking

- Add SAFe PI Planning skill
  * Implement PM/SA/RTE (iron triangle) workflow
  * Support for Feature, Enabler, and Dependency definition
  * Automatic task decomposition and Gitea integration

- Create frontend integration documentation
  * Complete SSE protocol specification
  * TypeScript fetch + ReadableStream example
  * LLM-ready refactoring template for other projects

- Simplify file handling
  * Remove legacy file context structures and dual-mode processing
  * Consolidate file operations into UploadAndCacheFiles()
  * Remove FilePromptMode configuration and related complexity

- Update configuration
  * Add Router model support (LLM_ROUTER_MODEL)
  * Add Gitea configuration (BaseURL, Token, Owner, Repo)
  * WebSearch and additional tool infrastructure

Tests: All 22 test packages passing, 8/8 webui tests including 3 new stream tests
2026-03-11 17:58:19 +08:00
0e1a800646 Migrate LLM client to OpenAI SDK and implement WebUI-specific fileID handling 2026-03-10 17:54:50 +08:00
49f6297631 feat: add webui http channel for chat and file upload 2026-03-10 10:23:53 +08:00
bd41f48971 feat: support file-aware model switch and update tech docs 2026-03-09 17:38:13 +08:00
whlaoding
52b8dbb835 Refactored orchestrator for staged file handling, added structured prompt support, adjusted Feishu file handling 2026-03-08 22:38:29 +08:00
e2f806edb3 shell: support Windows cmd /C; normalize date/time; allow all commands; add tests 2026-03-05 17:44:19 +08:00
47b6059773 chore: ignore debug artifacts and runtime intermediate files 2026-02-28 17:55:36 +08:00
7d6cf6b435 feat: add workspace-isolated toolhost runtime and capability-gap skill loop 2026-02-28 17:51:02 +08:00
whlaoding
ce9346e350 chore: save workspace 2026-02-21 23:38:20 +08:00
whlaoding
75ff915654 chore: add .gitignore to protect config files 2026-02-21 23:31:30 +08:00
whlaoding
e1c7822ed4 chore: refactor agent to skill-first; structured skills dirs; enhance ReAct and tool logs 2026-02-21 23:29:27 +08:00
whlaoding
c2bebb3457 chore: initial commit 2026-02-21 23:01:39 +08:00