mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-20 01:11:18 +00:00
fix(ux): apply resolveListFilters to cmdDelete so bare positional args work (#2002)
spawn delete hetzner was silently returning "No active servers to delete" even when the user had active Hetzner servers. The positional arg was parsed as agentFilter, but no agent is named "hetzner", so the filter matched nothing. cmdList already calls resolveListFilters() which auto-promotes a bare arg to cloudFilter when no agent matches — cmdDelete was missing this call entirely. Agent: ux-engineer Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
ce1f13748f
commit
f49cd97cdf
2 changed files with 5 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@openrouter/spawn",
|
||||
"version": "0.11.3",
|
||||
"version": "0.11.4",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"spawn": "cli.js"
|
||||
|
|
|
|||
|
|
@ -2634,6 +2634,10 @@ export async function cmdList(agentFilter?: string, cloudFilter?: string): Promi
|
|||
}
|
||||
|
||||
export async function cmdDelete(agentFilter?: string, cloudFilter?: string): Promise<void> {
|
||||
const resolved = await resolveListFilters(agentFilter, cloudFilter);
|
||||
agentFilter = resolved.agentFilter;
|
||||
cloudFilter = resolved.cloudFilter;
|
||||
|
||||
const servers = getActiveServers();
|
||||
|
||||
let filtered = servers;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue