Something went wrong. Try again.
opencode v2 mirror
Something went wrong. Try again.
12345678910111213141516/** * Builds with the debug tools: the dev server and Beta, as for the debug bar's Motion tools. Stable builds never run * memory diagnostics or open a debugging port, whatever the environment says. */export function debugBuild(build: { readonly packaged: boolean; readonly channel: string }) { return !build.packaged || build.channel === "beta"}
/** Invalid values disable diagnostics rather than turning a bad interval into a hot timer. */export function memoryLogInterval(value: string | undefined) { if (!value || !/^\d+(\.\d+)?$/.test(value)) return undefined const seconds = Number(value)
return seconds >= 1 && seconds <= 2_147_483 ? seconds * 1000 : undefined}