Skip to content

feat(health): 为每一个脚本增加启动成功的检测标识与多模态就绪感知 - #142

Merged
Delta1035 merged 1 commit into
mainfrom
feature/issue-141-script-health-indicator
Nov 22, 2026
Merged

Delta1035 merged 1 commit into
mainfrom
feature/issue-141-script-health-indicator

Conversation

@Delta1035

Copy link
Copy Markdown
Owner

Closes #141

变更概述

  1. 多模态健康检测探针支持:
    • 扩展 HealthTarget 联合类型,支持端口(ports)、HTTP、实时日志输出正则匹配(output)以及进程稳定存活检测(alive)。
    • 无显式配置端口或探针的脚本默认应用 alive 检测(启动后稳定存活 2 秒即标记就绪)。
    • 在 .devhub.yaml 中允许为 script 配置 health 字段(包括 ports / http / output / alive)。
  2. UI 启动与就绪状态外显:
    • 脚本卡片/运行中徽标(RunStatusBadge):启动中显示黄色呼吸脉冲圆点,就绪显示绿色常亮圆点,无响应显示红色警告圆点;鼠标悬停显示检测目标。针对普通 alive 脚本保留主文案 运行中,保持现有测试契约与无障碍树一致。
    • 终端多标签页(terminal-panel.tsx):运行中标签前增加对应检测状态小圆点,并设置 aria-hidden="true" 避免污染无障碍树名称计算。
    • 批量任务卡片(group-step-card.tsx):步骤进程状态前增加检测状态小圆点与悬停目标提示。
  3. 架构规范遵守:
    • 将 schedule 执行逻辑抽离为 schedule-executor.ts,使 devhub-core.ts 保持在 395 行(< 400 行硬规则)。

验证结果

  • pnpm check:全部通过(893 个单元与集成测试全部通过,TypeScript / ESLint / Prettier 0 告警)。
  • pnpm e2e:全部通过(Playwright 60 个端到端测试全绿)。

@Delta1035
Delta1035 merged commit d3e8ee4 into main Nov 22, 2026
6 checks passed
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.

feat: 为每一个脚本增加启动成功的检测标识与多模态就绪感知

1 participant