[tasks.theme] description = "Generate the Nugu browser theme (requires DOTFILES and pastel)" shell = "nu --no-config-file -c" depends = ["//:install"] run = [ """let root = ($env.DOTFILES? | default ''); if ($root | is-empty) { error make {msg: 'DOTFILES must point to the dotfiles checkout'} }; nu --no-config-file ($root | path join nugu web.nu) --output site/nugu.css""", "biome format --write --config-path ../.. site/nugu.css", ] [tasks.bench] description = "Benchmark system prompt grouping" depends = ["//:install"] run = "node --no-warnings --experimental-strip-types __bench__/bench.ts" [tasks.lint] description = "Lint autopsy extension" depends = ["//:install"] run = [ "biome ci --config-path ../.. .", "rumdl check --config ../../.rumdl.toml .", "taplo format --check --config ../../.taplo.toml mise.toml", ] [tasks.test] description = "Test autopsy extension" depends = ["//:install"] run = [ { task = "//:test", args = ["extensions/autopsy"] }, ] [tasks.check] description = "Check autopsy extension" depends = ["//:install"] run = [ { task = "//:build", args = ["autopsy"] }, { task = "//:build-ext", args = ["autopsy"] }, ] [tasks.verify-package] description = "Build autopsy and load the generated package relocated outside the checkout" depends = ["//:install"] run = [ { task = "//:build-ext", args = ["autopsy"] }, { task = "//:verify-packages", args = ["autopsy"] }, ] [tasks.browser-check] description = "Verify browser inspection of a real Pi session through the relocated package" env.PI_AUTOPSY_BROWSER_TESTS = "1" depends = ["//:install"] run = [ { task = "//:build-ext", args = ["autopsy"] }, { task = "//:test", args = ["extensions/autopsy/__tests__/browser.test.ts"] }, ] [tasks.fmt] description = "Format autopsy extension" depends = ["//:install"] run = [ "biome check --write --config-path ../.. .", "rumdl fmt --config ../../.rumdl.toml .", "taplo format --config ../../.taplo.toml mise.toml", ] [tasks.coverage] description = "Non-gating V8 coverage for autopsy extension" depends = ["//:install"] run = [{ task = "//:coverage", args = ["autopsy"] }] [tasks.mutate] description = "Author-driven mutation testing for autopsy extension. Usage: mutate " depends = ["//:install"] usage = 'arg "" help="Path under this extension to mutate"' run = 'mise run //:mutate autopsy "{{ usage.target }}"' [tasks.fuzz] description = "Author-driven fuzz campaigns for autopsy extension. Usage: fuzz " depends = ["//:install"] usage = 'arg "" help="Fuzz target name under __fuzz__"' run = 'mise run //:fuzz autopsy "{{ usage.target }}"'