• - 当底层模型 (MiniMax等) 抛出 API 错误时,Claude CLI 不会崩溃也不会输出 stderr,而是通过 stdout 输出 event.type='error' 的 JSON 块。
    - 未处理该事件导致协议层无法等到 result 事件,引发 Promise 永久挂起。
    - 修复:在_handleStreamEvent 拦截 error 块,主动抛出错误打断等待链,前端即可正常展示 ❌ API 请求失败。
    yibo authored
     
    Browse Code »
  • Claude CLI 遇到 API rate limit/hang 时可能既不输出 stdout 也不输出 stderr,
    导致 sendPrompt Promise 永远挂起,前端卡在思考中状态。
    
    - 新增 120s 空闲超时:无 stdout 活动自动 reject
    - 有 stdout 活动时重置计时器(避免长任务误判)
    - result 到达时清理计时器
    yibo authored
     
    Browse Code »
  • - ClaudeCliProtocol: stderr 检测 rate_limit/429/401 等致命错误时自动 reject sendPrompt Promise
    - agent-chat.js: 监听 stderr/disconnected 事件并通过 SSE 推送到前端
    - AgentChat.vue: error 事件停止 thinking 状态 + ACP 日志面板显示错误
    yibo authored
     
    Browse Code »
  • - System agents: 只保留 master (data/system/agents/master)
    - Templates: 所有可复用 agent 模板 (data/system/templates/)
    - Companies: 公司创建时自动部署 5 个元 Agent (innovator/hunter/digester/evolver/agent-creator)
    
    路径修复:
    - agent-chat.js: /list 扫描路径修正 (system/agents + companies/*/agents)
    - agent-manager.js: 动态 agent 查找路径修正
    - skill-config-loader.js: 修正 agents root
    - pipeline-service.js: pipelines 输出到 companies/{id}/pipelines/
    - billing.log: 移至 companies/{id}/logs/ 下
    
    Skills 标准化:
    - 所有 template agent 建立 .claude/skills/main_skill/SKILL.md
    - company-service._copyTemplate() 新增 .claude/ 目录复制
    - innovator SKILL.md v3.0: 移除旧 l3-hunt/l2-digest 命名
    - 清理重复 agent_creator, 统一为 agent-creator
    
    清理:
    - 移除 data/agents, data/workspace, data/logs, data/goals 旧目录
    - 清除所有未使用的 DATA_DIR 声明
    - 清除 template 中的 conversations/logs/memory 运行态数据
    yibo authored
     
    Browse Code »
  • scripts/demo-harness-company.js creates a company, hires a Base Agent
    worker, and simulates the full RPEV lifecycle with real API calls:
    - Company creation (skipBootstrap)
    - Agent hiring with base template
    - meta-research initial skill mount
    - 3 transition API calls (plan → execute → verify)
    - Hot Swap verification at each stage
    - Artifact production validation
    yibo authored
     
    Browse Code »
  • scripts/test-harness.js covers:
    - Meta-Skill file existence & content
    - Base Agent template completeness
    - Hot Swap simulation
    - Context Flush simulation
    - _lessons.md injection
    - billing.log format
    - GoalsService new statuses
    - CLI registration
    - Transition API route verification
    - Optional --online mode for live API tests
    yibo authored
     
    Browse Code »
  • The plugin bootstrap was calling resolveOpenclawDist() synchronously
    at module load time, which crashed the entire server if the optional
    @mas/openclaw-dist package wasn't installed. Now all three call sites
    defer resolution to runtime with try/catch graceful fallback.
    yibo authored
     
    Browse Code »
  • - Add task transition CLI and API for Context Flush & Hot Swap
    - Enforce strict bash-only tool policy for Base Agents
    - Inject  into system prompt for self-retrying loop
    - Implement Goal node updates on transitions
    - Add P0 Execute pre-approval block (Human-in-the-loop)
    - Track token metrics to billing.log
    yibo authored
     
    Browse Code »