Skip to content

feat(client): 增加 Runner adapter profile#39

Merged
DeliciousBuding merged 1 commit into
dev/delicious233from
feat/client-runner-adapter-profile-delicious233
May 22, 2026
Merged

feat(client): 增加 Runner adapter profile#39
DeliciousBuding merged 1 commit into
dev/delicious233from
feat/client-runner-adapter-profile-delicious233

Conversation

@DeliciousBuding
Copy link
Copy Markdown
Collaborator

变更范围

  • 为 Edge ProcessExecutor 增加 generic adapter profile / 命令模板层。
  • 支持 {{run.id}}{{run.projectId}}{{run.threadId}} 展开到 runner args/env。
  • 新增 --runner-env KEY=VALUE,仅模板化用户显式追加的环境变量。
  • 保留系统环境继承语义:Env:nil 继续继承 os.Environ(),系统环境不会被当作模板解析。
  • 更新客户端路线图和分支路线图。

Review 修复

  • 修复 Env:nil 被空 env 覆盖的问题。
  • env 模板错误只暴露 key 和错误原因,不打印完整 env value。
  • 增加 ExtraEnv 边界,避免本机环境变量里的 {{ 影响 Edge 启动。

验证

  • git diff --check
  • python -c "import yaml, pathlib; yaml.safe_load(pathlib.Path('api/openapi.yaml').read_text(encoding='utf-8')); print('yaml ok')"
  • cd edge-server; go test -count=1 ./...
  • cd runner; go test -count=1 ./...

Copilot AI review requested due to automatic review settings May 22, 2026 22:33
@DeliciousBuding DeliciousBuding merged commit b0d83cd into dev/delicious233 May 22, 2026
1 of 2 checks passed
@DeliciousBuding DeliciousBuding deleted the feat/client-runner-adapter-profile-delicious233 branch May 22, 2026 22:34
@DeliciousBuding DeliciousBuding review requested due to automatic review settings May 22, 2026 22:57
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.

1 participant