feat: update sidebar agent workflow and host filter UI

This commit is contained in:
Mohamed Boudra
2026-02-15 08:59:17 +07:00
parent 9da5b26db0
commit 41d1fa6d97
31 changed files with 2482 additions and 1133 deletions
+4 -1
View File
@@ -111,7 +111,10 @@ export async function runLsCommand(
}
try {
let agents = await client.fetchAgents()
const fetchPayload = await client.fetchAgents({
filter: options.all ? { includeArchived: true } : undefined,
})
let agents = fetchPayload.entries.map((entry) => entry.agent)
// By default, exclude archived agents. `-a` includes them.
if (!options.all) {
+2 -1
View File
@@ -53,7 +53,8 @@ export async function runStopCommand(
}
try {
let agents = await client.fetchAgents()
const fetchPayload = await client.fetchAgents({ filter: { includeArchived: true } })
let agents = fetchPayload.entries.map((entry) => entry.agent)
const stoppedIds: string[] = []
if (options.all) {