Commit Graph

10 Commits

Author SHA1 Message Date
495eafcd78 feat: virtual company M2 control + tier-3/4 capabilities + per-dept session fix
- M2-a/b/c: stop/pause/resume/skip dept, plan/rework approval gates,
  budget & timeout circuit breakers, per-dept cancel and on-demand rework
- tier-3: batched event persistence (_EventBuffer), project/dept
  concurrency semaphores, company_ws event streaming
- tier-4: cross-dept deliverable handoff, CEO memory feedback loop,
  per-dept model override, one-click Markdown report export (RFC5987)
- fix: per-department independent SQLAlchemy session in parallel waves
  (shared Session race across asyncio tasks in company_orchestrator)
- fix: rename process_open_fds gauge to app_process_open_fds
  (collides with prometheus_client ProcessCollector on Linux)
- fix: dept role resolution ladder, real token usage & cost tracking,
  deliverable file capture (mtime scan of dept workspace)
- tests: test_company_orchestrator.py 22 cases with mocked LLM
- frontend: CompanyControlRoom, companyExecution store, EChart,
  dept model config dialog, ws proxy, build/typecheck decoupling
- docs: virtual company design/usage docs, M2 control plan,
  deepseek4pro handover docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-26 18:16:39 +08:00
f2e65a8fbb feat: virtual company module, team projects, PWA dishes app, and startup scripts overhaul
- Add company module (3-tier org, CEO planning, parallel departments)
- Add company orchestrator, knowledge extractor, presets, scheduler
- Add company API endpoints, models, and frontend views
- Add 今天吃啥 PWA app (69 dishes, real images, offline support)
- Add team_projects output directory structure
- Add unified manage.ps1 for service lifecycle
- Add Windows startup guide v1.0
- Add TTS troubleshooting doc
- Update frontend (AgentChat UX overhaul, new views)
- Update backend (voice engine fix, multi-tenant, RBAC)
- Remove deprecated startup scripts and old docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-10 22:37:56 +08:00
beff3fac8d fix: delete agent 500 error + dynamic personality + deployment guide
- Fix delete agent 500: clean up FK records (agent_llm_logs, permissions,
  schedules, executions, team_members) and unbind goals/tasks before delete
- Remove hardcoded personality templates in Android, replace with dynamic
  system prompt generation from name + description
- Set promptSectionsEnabled=false to bypass PromptComposer for personality
- Add Tencent Cloud Linux deployment guide (Docker Compose)
- Accumulated backend service updates, frontend UI fixes, Android app changes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-29 01:17:21 +08:00
renjianbo
86b98865e3 fix: emit phase_start in sequential streaming path
Without phase_start, the frontend had no panel created until the first
agent_event arrived (30+ seconds after plan_done), making it look like
nothing was happening.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-18 22:20:15 +08:00
renjianbo
e0bcfe582b feat: add multi-window real-time agent execution display
Backend: execute_stream() now uses AgentRuntime.run_stream() per phase,
forwarding agent internal events (think/tool_call/tool_result/final) as
`agent_event` SSE type with phase metadata via asyncio.Queue for DAG
parallel batches.

Frontend: new agent-panels-grid with per-phase cards showing live
activity log, tool calls, iteration count, and collapsible full output.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-18 22:06:16 +08:00
renjianbo
e0efa7e9b1 feat: add DAG-based parallel phase execution with depends_on support
Phases can now declare `depends_on` to enable parallel execution of
independent phases via asyncio.gather. Backward compatible — templates
without depends_on continue to use sequential execution.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-18 21:31:16 +08:00
renjianbo
ed724dad1b feat: add user-simulation-test team template (系统应用测试团队)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-18 07:47:03 +08:00
renjianbo
502d6322e0 feat: add health-management and medical-consultation team templates
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-18 00:01:15 +08:00
renjianbo
7d25cb0034 feat: add tech-documentation team template (技术文档团队)
- Add 5 roles: doc_architect, tech_writer, api_doc_specialist, translator_reviewer, release_manager
- Add 5 dedicated system prompts for documentation roles
- Add orchestrator planner mapping for tech_doc workflow
- Add frontend button and API client function
- Total preset roles now 19 across 4 template families

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-17 23:35:42 +08:00
renjianbo
f612248f9e feat: add education-training and platform-engineering team templates
- Add 2 new team templates: 教育培训团队 (4 roles) and 天工平台工程团队 (5 roles)
- Fix orchestrator to support multi-template workflow types (remove hardcoded PM planner)
- Add _resolve_planner_role() to auto-detect planner based on team.config.workflow
- Add frontend buttons and API clients for new templates
- Merge 14 preset roles from 3 template families in get_preset_roles()
- Add creation guide and platform engineering usage docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-17 00:09:54 +08:00