提交图

89 提交

作者 SHA1 备注 提交日期
google-labs-jules[bot]
e8efa74dc4 perf: pre-compile dashboard template for ~35x faster rendering
Extracted the HTML template in `scripts/web_dashboard.py` to a module-level constant and implemented lazy compilation using `app.jinja_env.from_string()`.

This avoids parsing the template string on every request, resulting in a ~35x speedup in synthetic benchmarks (12.03s -> 0.34s for 10k iterations).

Also added `current_app` import and removed unused `render_template_string` import.
Tests passed.
2026-02-11 05:27:35 +00:00
GenX FX Trading System
7652d395e9
Merge branch 'copilot/install-juless-cli' into copilotmql5-production-readiness-8b65 2026-02-10 13:16:23 +07:00
GenX FX Trading System
ef9024666b
Merge branch 'copilot/install-juless-cli' into sentinel-add-security-headers-5685093013646614500 2026-02-10 13:15:51 +07:00
GenX FX Trading System
f4f49b73c2
Merge branch 'copilot/install-juless-cli' into copilot/improve-variable-function-names 2026-02-10 13:14:45 +07:00
GenX FX Trading System
8d93944c4b
Merge branch 'copilot/install-juless-cli' into mql5-ea-container-ci-cd-8529191303412997988 2026-02-10 12:54:46 +07:00
GenX FX Trading System
d1fecabbe7
Merge branch 'copilot/install-juless-cli' into sentinel-add-security-headers-5685093013646614500 2026-02-10 12:51:07 +07:00
GenX FX Trading System
b3484473c9
Merge branch 'copilot/install-juless-cli' into copilotmql5-production-readiness-8b65 2026-02-10 12:50:30 +07:00
GenX FX Trading System
e7087c37d7
Merge branch 'copilot/install-juless-cli' into copilot/add-echo-and-hello-window 2026-02-10 12:49:16 +07:00
google-labs-jules[bot]
cf1b95ec8a feat(scripts): parallelize AI requests in upgrade_repo.py
- Replaced sequential execution of `ask_gemini` and `ask_jules` with `concurrent.futures.ThreadPoolExecutor`.
- Reduced total execution time by running independent network-bound tasks in parallel.
- Added necessary import for `concurrent.futures`.

 Bolt: Parallelize AI requests (~2x speedup)
2026-02-10 05:36:36 +00:00
Cursor Agent
f3ea60475b Security: remove leaked tokens and add secret scan
Co-authored-by: GenX FX Trading System <Mouy-leng@users.noreply.github.com>
2026-02-10 04:38:19 +00:00
google-labs-jules[bot]
5f27eafb6f feat: implement unified MQL5 EA containerized deployment and CI/CD 2026-02-09 16:19:26 +00:00
google-labs-jules[bot]
0b8a09a572 Add security headers to web dashboard (CSP, HSTS, X-Frame-Options)
- Implemented `@app.after_request` in `scripts/web_dashboard.py` to inject security headers.
- Added `Content-Security-Policy` with `default-src 'self'`, blocking inline scripts.
- Added `X-Content-Type-Options: nosniff`.
- Added `X-Frame-Options: SAMEORIGIN`.
- Added `Referrer-Policy: strict-origin-when-cross-origin`.
- Added unit test `test_security_headers` to `scripts/test_web_dashboard.py` to verify header presence.
- Mitigates Stored XSS, Clickjacking, and MIME sniffing risks.
2026-02-09 11:27:48 +00:00
copilot-swe-agent[bot]
b8cf76aac5 Improve variable and function naming for clarity
Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-02-09 05:12:51 +00:00
copilot-swe-agent[bot]
70608d418d Add echo and hello window functionality
Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-02-09 05:08:59 +00:00
google-labs-jules[bot]
1b82a2865d Optimize branch analysis in PR review script
- Modified `scripts/review_pull_requests.py` to filter `git for-each-ref` output by unmerged branches.
- Reduces algorithmic complexity from O(N) to O(M) where N is total branches and M is active branches.
- Avoids expensive `ahead-behind` calculations for potentially thousands of stale merged branches.
2026-02-09 05:06:55 +00:00
google-labs-jules[bot]
643c712228 docs: update VPS and terminal configuration metadata 2026-02-09 01:03:32 +00:00
GenX FX Trading System
aa6632ee80
Merge branch 'copilot/install-juless-cli' into bolt-optimize-git-review-rev-list-count-10239882398315046114 2026-02-09 07:18:44 +07:00
google-labs-jules[bot]
151f18724c Optimize market data processing loop and fix logic error 2026-02-08 20:49:39 +00:00
google-labs-jules[bot]
644c00e696 🎨 Palette: Add skip-to-content link for accessibility 2026-02-08 11:20:56 +00:00
google-labs-jules[bot]
92e5a0540b perf: optimize PR review script using git rev-list
- Replaced O(N) `git log` parsing with O(1) `git rev-list --count` for branch commit counts.
- Updated `get_all_branch_details` to return an empty `commits` list to ensure consistent data structure with `get_branch_info`, preventing potential runtime errors.
- Changed base branch reference from `main` to `origin/main` to support CI/CD environments and shallow clones where local `main` might be missing.
- Removed unused `commits` list generation in `get_branch_info` to improve fallback performance.
2026-02-08 05:36:14 +00:00
copilot-swe-agent[bot]
e1d193b6f9 Security fix: Replace real credentials with placeholders in docs and examples
Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-02-08 04:15:17 +00:00
copilot-swe-agent[bot]
7c55d36653 Update Telegram bot defaults and webhook configuration
Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-02-08 04:12:44 +00:00
google-labs-jules[bot]
9b6778cba0 Fix CRITICAL authorization bypass in Telegram Bot
- Changed `check_authorized` in `scripts/telegram_deploy_bot.py` to fail closed (deny all) if `TELEGRAM_ALLOWED_USER_IDS` is unset or empty.
- Updated `scripts/TELEGRAM_BOT_SETUP.md` and `QUICK_DEPLOY.md` to document that `TELEGRAM_ALLOWED_USER_IDS` is now mandatory for bot access.
- Added Sentinel Journal entry in `.jules/sentinel.md` documenting the vulnerability and learning.
- Verified fix with reproduction script.
2026-02-07 11:33:43 +00:00
Copilot
3ae9f3f7e7
Add release management infrastructure and automation (#255)
* Initial plan

* Add release infrastructure: CHANGELOG, workflow, and documentation

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>

* Add release checklist and VERSION file

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>

* Fix variable assignment in release preparation script

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>

* Add release quick reference and update documentation

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>

* Add comprehensive release preparation summary

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>

* Add task completion summary

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-02-05 02:53:31 +07:00
google-labs-jules[bot]
71982b145b feat: launch to metatrader vps Singapore 10
- Updated all references from Singapore 09 to Singapore 10 across documentation and scripts.
- Updated dates and timestamps to reflect the current migration date (February 4, 2026).
- Added migration details to VPS_SETUP_NOTES.md.
- Verified repository consistency and ran validation tests.

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-02-04 07:59:55 +00:00
copilot-swe-agent[bot]
719513590f Add PWA documentation and validation script
Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-02-01 19:20:28 +00:00
google-labs-jules[bot]
6a038d53e0 Setup schedule for Gemini and Jules research with NotebookLM context
- Updated `docs/NOTEBOOK_LM_CONTEXT.txt` with user-provided NotebookLM URL and context directives.
- Enhanced `scripts/market_research.py` and `scripts/upgrade_repo.py`:
  - Added proper Jules integration using the REST API structure `{"model": ..., "prompt": ...}` to match MQL5 implementation.
  - Added warning suppression for deprecated `google.generativeai` warnings.
  - Added robustness checks for API keys.
- Enhanced `scripts/schedule_research.py` with file logging (`logs/scheduler.log`) and next-run prediction.
2026-01-28 20:07:51 +00:00
google-labs-jules[bot]
7f5c705c00 feat: Add scalping strategy support for M5, M15, M30
- Implements `CPositionManager` class in `ManagePositions.mqh` for robust Trailing Stop and Break Even logic.
- Updates `SMC_TrendBreakout_MTF_EA.mq5` to use `CPositionManager` and exposes Scalping inputs.
- Adds preset files for M5, M15, M30 scalping in `mt5/MQL5/Presets/`.
- Documents strategy parameters in `docs/SCALPING_STRATEGY.md`.
- Adds `scripts/research_scalping.py` utility.
2026-01-28 18:14:03 +00:00
GenX FX Trading System
0fe9db8276
Merge pull request #218 from A6-9V/bolt-perf-runner-setup-8300516273090358873
 Bolt: CI Runner Setup & MQL5 Performance Optimization
2026-01-29 00:20:28 +07:00
google-labs-jules[bot]
6529deda2a bolt: setup forge runner and optimize mql5 performance
- Added `scripts/setup_forge_runner.sh` for automated Gitea runner registration.
- Optimized `SMC_TrendBreakout_MTF.mq5` by replacing manual loops with native `ArrayMaximum`/`ArrayMinimum`.
- Optimized `SMC_TrendBreakout_MTF_EA.mq5`:
    - Replaced `CopyTime` with `iTime` for faster bar checks.
    - Replaced non-existent `iDonchian` handle with standard MQL5 price range logic using `CopyHigh`/`CopyLow`.
    - Removed redundant code and handles in `OnInit`/`OnDeinit`.

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-01-28 16:31:18 +00:00
GenX FX Trading System
25210cb93a
Merge pull request #203 from A6-9V/perf-telegram-bot-async-subprocess-7777137281643102778
 Optimize Telegram Bot Deployment with Asyncio Subprocess
2026-01-28 22:54:19 +07:00
google-labs-jules[bot]
ea261ed334 Merge feature branch, cleanup dependencies, and sanitize credentials
Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-01-28 10:24:13 +00:00
google-labs-jules[bot]
36f6846358 Bolt: Lazy load heavy dependencies in market_research.py
- Moved `yfinance` and `pandas` imports inside `get_market_data`
- Moved `google.generativeai` import inside `analyze_with_gemini`
- Reduces startup time when these libraries are not immediately needed (e.g. missing API keys or dry runs)
- Keeps fallback simulation logic intact

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-01-28 05:32:18 +00:00
GenX FX Trading System
8d4ecd4b84
Merge pull request #205 from A6-9V/optimize-market-research-10141970005764280165
 Optimize market_research.py with yf.download
2026-01-28 11:58:19 +07:00
GenX FX Trading System
083ea5b15d
Merge pull request #206 from A6-9V/bolt-optimize-pr-review-calls-8757165414626091425
 Optimize git calls in PR review script
2026-01-28 11:57:45 +07:00
google-labs-jules[bot]
3c60a83185 Setup Research Schedule and Improvements
- Updated `scripts/market_research.py` to provide helpful hints on Jules NameResolutionError.
- Updated `docs/USER_NOTES.md` to document the schedule setup and current API status.
- Created `docs/upgrade_suggestions.md` to establish the upgrade context (NotebookLM) and track pending analysis.
- Verified scheduler execution (PID running).
- Note: Gemini API is currently rate-limited (429) and Jules API endpoint requires verification.

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-01-27 20:07:35 +00:00
google-labs-jules[bot]
fc5646a73c Refactor review_pull_requests.py to batch git calls
Replaced per-branch git log calls with a single git for-each-ref command using the ahead-behind atom. This optimizes the script from O(N) to O(1) git subprocess calls.

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-01-27 01:10:00 +00:00
google-labs-jules[bot]
8d572816b7 Optimize market_research.py with yf.download
- Replaced sequential loop with batch fetch (~3x speedup)
- Cleaned up unused imports
- Verified with benchmark script

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-01-27 01:00:42 +00:00
google-labs-jules[bot]
be4268a251 Optimize telegram_deploy_bot to use asyncio subprocesses
Replaced blocking `subprocess.run` calls with `asyncio.create_subprocess_exec` to ensure the Telegram bot event loop remains responsive during long-running deployment tasks.

Key changes:
- Switched to `asyncio.create_subprocess_exec` for command execution.
- implemented `asyncio.wait_for` to handle the 300s timeout.
- Added explicit process cleanup (kill/wait) on timeout.
- Manually decoded stdout/stderr since async subprocesses return bytes.

Verified with a reproduction script showing the event loop gap dropped from ~2.0s (blocking) to ~0.1s (non-blocking).

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-01-27 00:57:34 +00:00
google-labs-jules[bot]
85174d9a2b Bolt: Optimize market data fetching with bulk download
- Replaced sequential `yf.Ticker` loop with `yf.download`
- Added logic to handle MultiIndex DataFrame
- Reduced fetch time from ~0.86s to ~0.33s
2026-01-26 05:13:57 +00:00
google-labs-jules[bot]
957e97403f Setup schedule and integrate NotebookLM context for research/upgrades 2026-01-25 19:44:13 +00:00
google-labs-jules[bot]
9365d50dea feat: parallelize AI market research
Parallelizes the Gemini and Jules AI analysis calls in `scripts/market_research.py` using `concurrent.futures`. This optimization allows both API requests to execute concurrently, reducing the total execution time of the script to the duration of the slower request rather than the sum of both.

Changes:
- Imported `concurrent.futures` in `scripts/market_research.py`.
- Replaced sequential calls to `analyze_with_gemini` and `analyze_with_jules` with `ThreadPoolExecutor` submission.
2026-01-25 05:36:41 +00:00
google-labs-jules[bot]
b528ef932e Add Cloudflare management scripts and tunnel setup
- Created `scripts/manage_cloudflare.py` to get/set security levels via API.
- Created `scripts/setup_cloudflare_tunnel.sh` to install `cloudflared`.
- Created `config/vault.json` with user-provided Zone/Account IDs for `lengkundee01.org`.
- Created `docs/CLOUDFLARE_GUIDE.md` with usage instructions.
- Updated `requirements.txt` to include `requests` as a core dependency.
2026-01-25 02:59:06 +00:00
google-labs-jules[bot]
884bccc3ef Setup research scheduler and environment configuration 2026-01-24 19:54:18 +00:00
google-labs-jules[bot]
6bafb1a326 Add GCP deployment configuration and scripts 2026-01-24 19:21:00 +00:00
google-labs-jules[bot]
b3311b9694 feat: Setup automated market research and upgrades with Gemini and Jules
- Added `yfinance` to fetch real market data.
- Enhanced `scripts/market_research.py` to use `yfinance` and support Jules AI.
- Enhanced `scripts/upgrade_repo.py` to support Jules AI for code suggestions.
- Updated `scripts/schedule_research.py` to load environment variables.
- Created `scripts/setup_research.sh` to automate setup.
- Updated `requirements.txt` and `README.md`.
2026-01-23 19:50:48 +00:00
google-labs-jules[bot]
0c59ee6ed8 Bolt: Reduce syscalls in web dashboard
Replaced `os.path.exists()` + `os.path.getmtime()` with a single `os.stat()` call in `scripts/web_dashboard.py` to reduce syscalls by 50% for cache checks. Also pre-calculated static file paths at module level to avoid redundant `abspath` and `join` calls on every request.

Impact:
- Reduces filesystem operations per request.
- Improves code cleanliness by centralizing path constants.
- Verified with existing tests and manual curl check.
2026-01-23 05:19:37 +00:00
google-labs-jules[bot]
4a280992bf Setup Market Research Scheduler (Scandal)
- Added `scripts/market_research.py` to analyze market data using Gemini.
- Added `scripts/upgrade_repo.py` to suggest code upgrades based on research.
- Added `scripts/schedule_research.py` to orchestrate periodic research.
- Updated `config/startup_config.json` to include the scheduler.
- Added `schedule` and `google-generativeai` to `requirements.txt`.
2026-01-22 19:36:23 +00:00
google-labs-jules[bot]
2698f7f96d feat: Add monitoring support to startup script
- Added `--monitor` flag to `scripts/startup.sh`.
- Fixed circular nameref warning in `scripts/startup.sh`.
- Updated `startup.sh` to pass the monitor flag to `startup_orchestrator.py`.
- Verified system startup and web dashboard accessibility.
2026-01-22 08:20:09 +00:00
google-labs-jules[bot]
2cceaf9619 Update Magic Number to 81001 and enhance reset scripts for MT5 cleanup 2026-01-22 05:58:45 +00:00