Skip to content

feat(client): 接入 Edge 文件持久化启动参数#36

Merged
DeliciousBuding merged 1 commit into
dev/delicious233from
feat/client-edge-store-file-flag-delicious233
May 22, 2026
Merged

feat(client): 接入 Edge 文件持久化启动参数#36
DeliciousBuding merged 1 commit into
dev/delicious233from
feat/client-edge-store-file-flag-delicious233

Conversation

@DeliciousBuding
Copy link
Copy Markdown
Collaborator

目标

  • 为 Edge Server 增加可选 --store-file <path> 启动参数。
  • 未传参数时继续使用内存 store。
  • 传参时使用轻量 JSON FileStore,并在启动期暴露坏 JSON 或不可写路径错误。

改动

  • agenthub-edge 启动入口增加参数解析和 store 构造测试。
  • httpserver.Config 支持注入 store.Repository,不改变 REST API 或 WebSocket event。
  • store.NewFile 初始化时立即写一次 snapshot,验证父目录可创建、目标文件可写、JSON 可编码。
  • 更新总路线图、客户端路线图和本分支路线图。

验证

  • git diff --check origin/dev/delicious233..HEAD
  • 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 ./...

Review

  • 已由 subagent 做只读交叉 review。
  • 第一轮发现 --store-file 对不可写路径启动期不失败的问题,已修复并复核通过。

Copilot AI review requested due to automatic review settings May 22, 2026 21:06
@DeliciousBuding DeliciousBuding merged commit cd67ffe into dev/delicious233 May 22, 2026
1 of 2 checks passed
@DeliciousBuding DeliciousBuding deleted the feat/client-edge-store-file-flag-delicious233 branch May 22, 2026 21:07
@DeliciousBuding DeliciousBuding review requested due to automatic review settings May 22, 2026 21:30
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