Skip to content

TypeError: db.countTasks is not a function in published CLI v0.18.1 #34

@srstomp

Description

@srstomp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions