Skip to content

feat(sync): auto-derive strategy env vars from platform-config.json - #309

Merged
Pigbibi merged 1 commit into
mainfrom
feat/strategy-defaults-from-platform-config
Jul 8, 2026
Merged

feat(sync): auto-derive strategy env vars from platform-config.json#309
Pigbibi merged 1 commit into
mainfrom
feat/strategy-defaults-from-platform-config

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

改动

build_cloud_run_env_sync_plan.py 现在从 platform-config.json 自动派生策略专属变量:

  • 切换策略时:只改 RUNTIME_TARGET_JSON.strategy_profileINCOME_LAYER_*OPTION_*DCA_* 等自动跟上
  • 自定义参数:在 RUNTIME_TARGET_JSON.overrides 里写
  • 不再需要手动维护零散的 GitHub 变量

测试

本地已验证半导体策略的 env var 自动派生正确。
其他平台同步改动。

🤖 Generated with Claude Code

Strategy-specific variables (INCOME_LAYER_*, OPTION_*, DCA_*) are now
auto-populated from the strategy's defaults in platform-config.json.

RUNTIME_TARGET_JSON gains an optional 'overrides' field for custom values.
Switching strategies now only requires changing RUNTIME_TARGET_JSON.

Co-Authored-By: Claude <noreply@anthropic.com>
@cursor

cursor Bot commented Jul 8, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@chatgpt-codex-connector

This comment has been minimized.

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