mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-09 21:01:58 -04:00
`lightpanda agent <script>` replays a saved script token-free (no LLM), but running it under `agent` reads wrong. Add `run` as a dedicated, script-only command: `lightpanda run <script>`. `run` exposes only a required [SCRIPT] positional plus the common options; its LLM-session flags (--task/--save/--list-models/REPL) are absent, so they're rejected at parse time. `parseArgs` normalizes a `run` invocation to an `.agent` command, reusing the existing token-free replay path unchanged, so nothing downstream needs a `.run` case. `agent <script>` keeps working. Telemetry records `run` as its own mode code (R) via a new Config.command field, so its adoption is measurable separately from agent script replay (AR).