-- dev-config.example.lua — template for dev-only flags.
--
-- To activate: copy this file to dev-config.lua (same dir),
-- edit the values, reload the plugin in LR.  dev-config.lua
-- is gitignored and excluded from release/share builds, so
-- it never ships to testers.
--
-- All flags are optional; missing flags fall back to defaults
-- (see Launcher.lua).
--
-- Loaded once at Launcher.start time via pcall(dofile).  If
-- the file errors or is missing, defaults apply silently.

return {
    -- helperMode controls whether the bundled binary or
    -- `go run` source is used to spawn the helper.
    --
    --   'auto'         — prefer binary if a platform-appropriate
    --                    one is present; fall back to go run.
    --                    This is the default; matches what a
    --                    shipped build does.
    --   'force-binary' — fail loudly if no binary is present.
    --                    Useful for testing the binary path
    --                    end-to-end without the source fallback
    --                    masking a missing/broken binary.
    --   'force-source' — always use go run, even if a binary is
    --                    bundled.  Useful when iterating on Go
    --                    code without rebuilding the binary
    --                    every change.
    helperMode = 'auto',

    -- debug = true turns on verbose Launcher logging:
    -- mode resolution, full spawn command, pre-spawn xattr
    -- check on macOS, post-spawn rc, time-to-port-open.
    -- Logs go to helper.log (Dashboard → View log) — see
    -- AGENTS.md for the path resolution rule (NOT /tmp/).
    debug = false,
}
