Skip to content

Add api&react boilerplate projects (100% ai coding) - #1

Merged
JinFanZheng merged 12 commits into
JinFanZheng:mainfrom
featbit:main
Jan 22, 2026
Merged

JinFanZheng merged 12 commits into
JinFanZheng:mainfrom
featbit:main

Conversation

@cosmic-flood

Copy link
Copy Markdown
Contributor

No description provided.

cosmic-flood and others added 12 commits January 21, 2026 00:28
- Implement ModelProviderFactory for dynamic model provider creation based on configuration.
- Create OpenAI models for chat completion requests and responses.
- Define BoilerplateOptions for application configuration management.
- Set up Program.cs for application startup, dependency injection, and routing.
- Add README.md for project overview, features, quick start guide, and usage examples.
- Create appsettings.json for configuration settings including API keys and server URLs.
- Develop demo skill with greet and calculate functions, including usage examples and skill.yaml definition.
- Implement structured logging with Serilog and OpenTelemetry for observability.
- Ensure session management and persistence for multi-turn conversations.
- Implement ScrollArea and Textarea components for UI.
- Create ChatContext to manage chat sessions and messages.
- Add API service for handling chat requests and responses.
- Introduce utility functions for class name management.
- Set up Tailwind CSS for styling and theming.
- Establish logging middleware for detailed request/response tracking.
- Create initial project structure with TypeScript configuration.
- Add Vite configuration for development server and proxy settings.
- Document logging and diagnostics guide for troubleshooting.
…out and styling; add custom scrollbar styles
- Implemented a theme toggle button to switch between light and dark modes.
- Added logic to persist the user's theme preference in localStorage.
- Integrated `react-markdown` for rendering messages with support for GitHub Flavored Markdown and syntax highlighting.
- Updated styles for code highlighting in dark mode.
- Enhanced the `SessionList` component to include the theme toggle button.
- Added a new `ThemeToggle` component for managing theme state.
- Updated Tailwind CSS configuration to include typography plugin.
- Added support for tool events in the frontend using Server-Sent Events (SSE).
- Created new types for ToolEvent and ToolCall in `src/types/index.ts`.
- Enhanced `sendMessageStream` in `src/services/api.ts` to handle tool events.
- Updated `ChatPanel.tsx` to track and display tool call statuses.
- Documented tool events functionality in TOOL_EVENTS_GUIDE.md and TESTING_TOOL_EVENTS.md.
- Added HTML test page for real-time tool events visualization.
- Implemented debugging logs and error handling for tool events.
- Deleted outdated testing guides and usage instructions for tool events.
- Consolidated and updated tool events integration documentation in the Kode.Agent.Boilerplate project.
- Enhanced clarity and consistency in event descriptions and usage examples across multiple markdown files.
- Improved testing procedures for tool events, including Node.js scripts and curl commands.
- Ensured all tool events are properly documented with expected outputs and verification points.
- Updated frontend integration examples to reflect recent changes in tool event handling.
@cosmic-flood cosmic-flood changed the title added api and react boilerplate projects Add api&react boilerplate projects (100% ai coding) Jan 22, 2026
@JinFanZheng
JinFanZheng merged commit fb9661d into JinFanZheng:main Jan 22, 2026
3 checks passed
JinFanZheng added a commit that referenced this pull request Apr 20, 2026
Bug #1: Provider 丢弃 core-memory / summary 系统消息,导致三层架构失效
- AnthropicProvider: 用 List<TextBlockParam> 把 memory 块带到 System 字段
- OpenAIProvider: 追加多条 SystemChatMessage
- OpenAIResponsesProvider: 合并进 instructions 字符串

Bug #2: Force-compress 在估算偏差时空跑,model_empty_response 死循环
- CompressAsync 补 force-mode 硬截断兜底,保留 MinRecentMessages 条
- 信任模型的"装不下"信号,不再依赖本地估算

Bug #3: 空 removedMessages 污染 core-memory / summary stack
- LlmContextSummarizer 防御短路
- ContextManager 调用点短路 + 保留 mergeOverdue 分支
- summaryResult / newSummaryMsg 改为 nullable

优化 #1: 服务端 usage 回填校准 token 估算
- EMA(0.3) 平滑 _calibrationFactor ∈ [0.5, 5.0]
- Analyze / CompressAsync budget 全部按 factor 换算
- Agent.ModelStreaming 在每次流结束后回填

优化 #2: Tool-result 级 micro-compaction
- 白名单 fs_read/fs_grep/fs_glob/fs_list/bash_logs
- (tool_name, canonical-JSON(input)) 做 key,老的替换为 superseded 存根
- 保留 tool_use / tool_result 配对,不破坏原子删除逻辑

docs/CONTEXT_COMPRESSION.md 新增「重大修复与优化(2026-04)」段,
四段式(现象 / 根因 / 方案 / 为什么有效)+ usage 缺失降级说明。

测试: 601 通过 / 0 失败 / 17 skip(需真实 API)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants