( tableId: string, workspaceId: string )
| 718 | } |
| 719 | } |
| 720 | async function resolveTableResource( |
| 721 | tableId: string, |
| 722 | workspaceId: string |
| 723 | ): Promise<AgentContext | null> { |
| 724 | const table = await getTableById(tableId) |
| 725 | if (!table) return null |
| 726 | if (table.workspaceId !== workspaceId) return null |
| 727 | return { |
| 728 | type: 'active_resource', |
| 729 | tag: '@active_resource', |
| 730 | content: '', |
| 731 | path: canonicalTableVfsPath(table.name), |
| 732 | } |
| 733 | } |
| 734 | |
| 735 | async function resolveScheduledTaskResource( |
| 736 | scheduleId: string, |
no test coverage detected