• - Add Company Overview tab as default landing page
    - Show company info: status, uptime, agent count, heartbeat status
    - Start/Stop company buttons (activate/deactivate all agent heartbeats)
    - Per-agent heartbeat controls: interval dropdown, start/stop buttons
    - Backend APIs: GET status, POST start/shutdown, PUT/POST agent heartbeat
    - Track startedAt timestamp for uptime calculation
    - Update CEO agent.md with mandatory 5-step startup workflow
    - Fix company nav to default to overview tab
    Yi Bo authored
     
    Browse Code »
  • 解决 CTO 无法自动把 CEO 设计图转化为系统流水线的问题:
    - bin/lemon.js: 新增 pipeline create / pipeline list 命令行接口
    - templates/cto/agent.md: 重写 4 步强制工作流, 明确用 json 注册流水线及循环 hire 工具
    - templates/cto/tools.md: 新增 pipeline 注册命令与环境初始化命令
    - templates/cto/soul.md & identity.md: 泛化架构师角色设定, 移除写死的旧业务名
    yibo authored
     
    Browse Code »
  • Phase 3 反馈进化闭环:
    
    1. DataSourceService (运营数据接入):
       - 新增 datasource-service.js: 抽象适配器模式
       - MockAdapter: 模拟运营数据 (开发调试)
       - FileAdapter: 从本地 JSON 文件读取数据
       - 可扩展: 预留 WechatAdapter/DouyinAdapter 接口
       - API: GET /data/metrics, /data/trending, /data/attribution
    
    2. 归因分析引擎:
       - analyzeAttribution(): 自动对比两个时间段指标
       - 计算变化百分比和趋势方向
       - 自动提取显著变化维度并生成洞察文本
       - API: GET /api/company/:id/data/attribution
    
    3. Know-how 自动更新 (memory-service.js):
       - 新增 updateAgentKnowhow() 函数
       - autoReflect 产出的 patterns/lessons 自动写回 SKILL.md
       - 在 SKILL.md 末尾维护'经验教训(自动沉淀)'段落
       - 保留最近 20 条记录,自动清理过旧条目
       - 闭环: Agent执行 → 反思 → 经验写入SKILL → 下次读取改进行为
    yibo authored
     
    Browse Code »
  • Phase 2 改进:
    
    1. 工作日历系统 (ScheduleService):
       - 新增 schedule-service.js: 公司级日程管理
       - 支持按小时调度、按周几过滤、时区感知
       - 心跳触发时自动检查到期 slots 并触发 Agent
       - 执行去重(同日同 slot 不重复触发)
       - CRUD API: GET/POST/PUT/DELETE /api/company/:id/schedule/slots
       - CLI: schedule add / schedule list
    
    2. 告警通道 (Alert Channel):
       - Pipeline 步骤超时自动告警 Master Agent
       - 心跳异常自动告警 Master Agent
       - _sendAlertToMaster() 统一告警接口
    
    3. CEO → Pipeline 自动生成:
       - CEO 模板从 3 步升级为 5 步工作流
       - 新增 Step 2: Pipeline JSON 设计(含 loop/cron/steps 结构)
       - 新增 Step 4: OKR 创建
       - Pipeline 设计输出为 CTO 搭建流水线的蓝图
    
    4. Master 晨会日报:
       - 每天 08:00 自动生成全公司运营日报
       - 包含公司状态、Pipeline 运行、OKR 进度、Agent 活跃度
       - 自动推送给 Master Agent
       - 防重复机制(每天只生成一次)
    
    5. Pipeline 驳回信息注入:
       - 驳回步骤被心跳重新触发时,__rejection 信息注入 prompt
       - 让 Agent 知道被驳回的原因和重做次数
       - 替换原有 curl 汇报指令为 task report CLI
    yibo authored
     
    Browse Code »
  • Phase 1 核心改进:
    
    1. Pipeline↔Task 系统打通:
       - task/report 回调自动推进 Pipeline 步骤
       - findActiveRunStep() 按 agentId 定位活跃步骤
       - 扫描所有公司的 Pipeline Runs 实现跨公司桥接
    
    2. Pipeline 循环执行:
       - 新增 pipeline.loop 配置项
       - Run 完成后自动启动下一轮 (最大 maxLoops=365)
       - loopCount 计数器追踪循环轮次
    
    3. COO 质量门控:
       - 新增 rejectStep() 驳回方法,含驳回历史记录
       - POST /api/agent/task/reject API 端点
       - POST /api/company/:id/pipelines/runs/:runId/reject 路由
       - node bin/lemon.js task reject CLI 命令
       - 驳回后自动唤醒 Agent 重做,注入改进意见
    
    4. COO 模板全面强化:
       - agent.md: 4维度评分体系、质量审核流程图
       - soul.md: 性格、价值观、决策原则
       - tools.md: 新增 task reject 核心工具
       - heartbeat.md: 结构化巡检清单 + 升级规则
    yibo authored
     
    Browse Code »
  • yibo authored
     
    Browse Code »
  • 1. Rewrote master/agent.md: strict anti-overreach rules, cleaned git merge conflicts
    2. Enhanced agent-creator/agent.md: force Write tool for new files, mandatory task report
    3. Implemented task/report callback: auto-wakes sender agent to continue next steps
       - Added .tasks/ metadata persistence for dispatch→report traceability
       - task/report sends [TASK_CALLBACK] to dispatching agent on done/failed
    Yi Bo authored
     
    Browse Code »
  • yibo authored
     
    Browse Code »
  • Yi Bo authored
     
    Browse Code »
  • yibo authored
     
    Browse Code »
  • - company.js: call heartbeatService._setupAgentHeartbeat after hire
    - CEO agent.md: enforce 3-step continuous execution in same turn
    - All CXO heartbeat intervals: 5 minutes
    - task dispatch message: self-drive directive, use lemon CLI
    - bin/lemon.js: add 'task report' command
    yibo authored
     
    Browse Code »
  • Yi Bo authored
     
    Browse Code »
  • yibo authored
     
    Browse Code »
  • …ter Agent cognitive auto-recovery loop
    
    - Refactored CompanyDashboard into read-only Observer UI
    - Enforced strict companyId:roleId namespacing across Node APIs and AgentManager
    - Added dynamic <env_status> injection to PromptBuilder for robust context
    - Introduced bin/lemon.js CLI for structured LLM tool execution
    - Implemented in-stream error interceptors for implicit silent retry loop
    yibo authored
     
    Browse Code »
  • Yi Bo authored
     
    Browse Code »