Skip to content

teams list, agents list, status commands crash: still calling removed DB functions #655

@nikrich

Description

@nikrich

Bug

hive teams list, hive agents list --active, and hive status all crash with errors like:

Error: getAllTeams() removed — use CodeshipClient API instead
Error: getActiveAgents() removed — use CodeshipClient API instead

Root Cause

These CLI commands still call the old direct-DB accessor functions (e.g. getAllTeams(), getActiveAgents()) which have been replaced with stubs in dist/types/db-types.js that throw:

throw new Error(`${name}() removed — use CodeshipClient API instead`);

The commands were not updated to use the CodeshipClient API when the migration happened.

Reproduction

hive teams list
hive agents list --active
hive status

All crash with the same pattern of error.

Fix

Update these CLI commands to use client.getTeams(), client.getAgents(), etc. from the CodeshipClient instead of the removed DB functions.

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