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.
Bug
hive teams list,hive agents list --active, andhive statusall crash with errors like:Root Cause
These CLI commands still call the old direct-DB accessor functions (e.g.
getAllTeams(),getActiveAgents()) which have been replaced with stubs indist/types/db-types.jsthat throw:The commands were not updated to use the CodeshipClient API when the migration happened.
Reproduction
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.