feat: Add agent workspace system and runtime management

- Add agent core modules (agent_core, factory, registry, skill_loader)
- Add runtime system for agent execution management
- Add REST API for agents, workspaces, and runtime control
- Add process supervisor for agent lifecycle management
- Add workspace template system with agent profiles
- Add frontend RuntimeView and runtime API integration
- Add per-agent skill workspaces for smoke_fullstack run
- Refactor skill system with active/installed separation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-17 16:43:29 +08:00
parent 2daf5717ba
commit 59b44545d0
121 changed files with 8384 additions and 358 deletions

View File

@@ -0,0 +1,4 @@
# Agent Guide
Document how this agent should work, collaborate, and choose tools or skills.

View File

@@ -0,0 +1,4 @@
# Heartbeat
Optional checklist for periodic review or self-reflection.

View File

@@ -0,0 +1,4 @@
# Memory
Store durable lessons, heuristics, and reminders for this agent.

View File

@@ -0,0 +1,4 @@
# Profile
Track this agent's long-lived investment style, preferences, and strengths.

View File

@@ -0,0 +1,4 @@
# Soul
Describe the agent's temperament, reasoning posture, and voice.

View File

@@ -0,0 +1,12 @@
agent_id: valuation_analyst
prompt_files:
- SOUL.md
- PROFILE.md
- AGENTS.md
- POLICY.md
- MEMORY.md
enabled_skills:
- valuation_review
disabled_skills: []
active_tool_groups: []
disabled_tool_groups: []

View File

@@ -0,0 +1,21 @@
---
name: 估值分析
description: 使用多种估值视角评估合理价值和安全边际。
---
# 估值分析
当任务需要判断一只股票是低估、高估还是定价合理时,使用这个技能。
## 工作流程
1. 条件允许时,使用不止一种估值方法。
2. 对比内在价值估计与当前市场价格。
3. 解释估值判断背后的关键假设。
4. 明确安全边际,以及哪些因素会压缩或扩大它。
## 约束
- 将估值视为区间,而不是一个精确点值。
- 明确说明假设敏感性。
- 当输入稀疏或不稳定时,避免给出高置信度判断。

View File

@@ -0,0 +1,21 @@
---
name: 估值分析
description: 使用多种估值视角评估合理价值和安全边际。
---
# 估值分析
当任务需要判断一只股票是低估、高估还是定价合理时,使用这个技能。
## 工作流程
1. 条件允许时,使用不止一种估值方法。
2. 对比内在价值估计与当前市场价格。
3. 解释估值判断背后的关键假设。
4. 明确安全边际,以及哪些因素会压缩或扩大它。
## 约束
- 将估值视为区间,而不是一个精确点值。
- 明确说明假设敏感性。
- 当输入稀疏或不稳定时,避免给出高置信度判断。