Skip to content

Make strategy switch setup fork friendly#37

Merged
Pigbibi merged 1 commit into
mainfrom
codex/forkable-strategy-switch-docs
Jun 9, 2026
Merged

Make strategy switch setup fork friendly#37
Pigbibi merged 1 commit into
mainfrom
codex/forkable-strategy-switch-docs

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add English and Chinese fork guides for deploying the strategy switch console
  • make platform repository mappings configurable for GitHub Actions, local runtime scripts, and the Worker
  • update Worker README, wrangler example, and tests so fork users can replace owner/repo values without source edits

Tests

  • jq empty web/strategy-switch-console/account-options.example.json web/strategy-switch-console/strategy-profiles.example.json
  • node --experimental-default-type=module tests/strategy_switch_worker_validation.mjs
  • sed -n '/<script>/,/</script>/p' web/strategy-switch-console/index.html | sed '1d;' | node --check --input-type=commonjs
  • node --check --input-type=module < web/strategy-switch-console/page_asset.js
  • node --check --input-type=module < web/strategy-switch-console/strategy_profiles_asset.js
  • node --check --input-type=module < web/strategy-switch-console/worker.js
  • python3 scripts/runtime_settings.py validate
  • python3 -m unittest discover -s tests -v
  • python3 scripts/runtime_settings.py repository longbridge
  • RUNTIME_SETTINGS_LONGBRIDGE_REPO=ForkOrg/LongBridgePlatform python3 scripts/runtime_settings.py repository longbridge
  • git diff --check

@Pigbibi Pigbibi merged commit 89adb94 into main Jun 9, 2026
2 checks passed
@Pigbibi Pigbibi deleted the codex/forkable-strategy-switch-docs branch June 9, 2026 12:07
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