Files
cc-connect/web
Markandma_k c07740b6e1 feat(cron): add per-job permission mode override (#367)
* feat(cron): add per-job permission mode override

Allow individual cron jobs to specify a permission mode (e.g.
bypassPermissions) that overrides the project default during execution.
The mode is restored after the job completes to prevent leakage into
subsequent user messages.

Changes:
- CronJob.Mode field with validation against known modes
- Message.ModeOverride as runtime carrier to processInteractiveMessageWith
- LiveModeSwitcher.SetLiveMode applied with defer-based restoration
- CronAddRequest.Mode in both Unix socket and management HTTP APIs
- Management API PATCH support for editing existing cron jobs
- Web dashboard: inline mode selector per job + create form dropdown
- i18n translations for all 5 languages (EN/ZH/ZH-TW/JA/ES)

* fix(web): always show permission mode badge on cron job cards

---------

Co-authored-by: ma_k <ma_k@ctrip.com>
2026-04-02 09:38:28 +08:00
..