Bug
ohno-cli tasks (and ohno-cli tasks --json) crashes with:
TypeError: db.countTasks is not a function
at handleListTasks (file:///.../@stevestomp/ohno-cli/dist/cli.js:56:27)
This affects both the cached npx version and @latest (v0.18.1).
Reproduction
npx @stevestomp/ohno-cli tasks
npx @stevestomp/ohno-cli@latest tasks
Both produce the same error.
Root Cause
cli.ts:83 calls db.countTasks(filterOpts), which is defined in ohno-core/src/db.ts:318. The published ohno-core package likely does not include the countTasks method — either it was added after the last ohno-core publish, or the CLI's dependency on ohno-core is pinned to a version that predates this method.
Expected Behavior
ohno-cli tasks should list tasks without crashing.