(onDone: LocalJSXCommandOnDone, _context: unknown, args?: string)
| 194 | } |
| 195 | |
| 196 | export async function call(onDone: LocalJSXCommandOnDone, _context: unknown, args?: string): Promise<React.ReactNode> { |
| 197 | const trimmed = args?.trim() ?? ''; |
| 198 | if (trimmed) { |
| 199 | const result = await getAutonomyCommandText(trimmed, { |
| 200 | enqueueInMemory: true, |
| 201 | removeQueuedInMemory: true, |
| 202 | }); |
| 203 | onDone(result, { display: 'system' }); |
| 204 | return null; |
| 205 | } |
| 206 | |
| 207 | return <AutonomyPanel onDone={onDone} />; |
| 208 | } |
nothing calls this directly
no test coverage detected