( id: string )
| 36 | } |
| 37 | |
| 38 | export async function getCodebaseCommands( |
| 39 | id: string |
| 40 | ): Promise<Record<string, { path: string; description: string }>> { |
| 41 | const result = await pool.query<{ |
| 42 | commands: Record<string, { path: string; description: string }>; |
| 43 | }>('SELECT commands FROM remote_agent_codebases WHERE id = $1', [id]); |
| 44 | return result.rows[0]?.commands || {}; |
| 45 | } |
| 46 | |
| 47 | export async function registerCommand( |
| 48 | id: string, |