refactor(agent): remove async facade exports (#22341)

This commit is contained in:
Kit Langton
2026-04-13 14:54:01 -04:00
committed by GitHub
parent 5b8b874732
commit 14ccff4037
11 changed files with 87 additions and 83 deletions

View File

@@ -35,7 +35,7 @@ export const AgentCommand = cmd({
async handler(args) {
await bootstrap(process.cwd(), async () => {
const agentName = args.name as string
const agent = await Agent.get(agentName)
const agent = await AppRuntime.runPromise(Agent.Service.use((svc) => svc.get(agentName)))
if (!agent) {
process.stderr.write(
`Agent ${agentName} not found, run '${basename(process.execPath)} agent list' to get an agent list` + EOL,