Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Aquaticat/Monochromatic. TypeScript and Rust monorepo: Claude Code and Pi coding-agent plugins, a m
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162[tasks.lint]extends = "lint"
[tasks."lint:oxlint"]extends = "lint:oxlint"
[tasks."format:oxlint"]extends = "format:oxlint"
[tasks."lint:types"]extends = "lint:types"
[tasks."test:unit"]extends = "test:unit"
[tasks.fuzz]description = "Run *.property.unit.test.ts as a longer fast-check campaign under node"usage = '''flag "--runs <n>" help="fast-check runs per property (default 5000)"'''shell = "node --input-type=module-typescript -e"run = """const { execFileSync } = await import('node:child_process')const { glob } = await import('node:fs/promises')const runs = (process.env.usage_runs ?? '5000').trim()// Property files import the make-asynchronous-fork package source through its `/ts` subpath,// so no build step is needed; they self-execute via a top-level `await describe`.const files = []for await (const file of glob('src/**/*.property.unit.test.ts')) { files.push(file) }console.log(`Fuzz campaign over ${files.length} property files at ${runs} runs each`)for (const file of files) { console.log(`fuzzing ${file}`) execFileSync('node', [file], { stdio: 'inherit', env: { ...process.env, MAKE_ASYNCHRONOUS_FORK_FUZZ_RUNS: runs } })}"""
[tasks."fuzz:coverage"]description = "Deterministic V8 covered-function reachability gate over the make-asynchronous-fork runtime src; --write refreezes the baseline"usage = '''flag "--write" help="Refreeze the committed baseline instead of checking against it"'''shell = "node --input-type=module-typescript -e"run = """const { execFileSync } = await import('node:child_process')const { mkdtempSync, rmSync } = await import('node:fs')const { tmpdir } = await import('node:os')const { join } = await import('node:path')const root = process.cwd()const mode = (process.env.usage_write === 'true') ? 'write' : 'check'// The driver imports the make-asynchronous-fork package source through its `/ts` subpath, so// no build step is needed; the report projects coverage onto the runtime package's// src files (its SOURCE_MARKER targets package/module/make-asynchronous-fork/src), not this// sidecar.const dir = mkdtempSync(join(tmpdir(), 'make-asynchronous-fork-cov-'))try { execFileSync('node', [`${root}/src/coverage-driver.ts`], { stdio: 'inherit', env: { ...process.env, NODE_V8_COVERAGE: dir } }) execFileSync('node', [`${root}/src/coverage-report.ts`, mode, dir, `${root}/coverage-baseline.json`], { stdio: 'inherit' })} finally { rmSync(dir, { recursive: true, force: true })}"""