( fileId: string, workspaceId: string )
| 765 | } |
| 766 | |
| 767 | async function resolveFileResource( |
| 768 | fileId: string, |
| 769 | workspaceId: string |
| 770 | ): Promise<AgentContext | null> { |
| 771 | const record = await getWorkspaceFile(workspaceId, fileId) |
| 772 | if (!record) return null |
| 773 | return { |
| 774 | type: 'active_resource', |
| 775 | tag: '@active_resource', |
| 776 | content: '', |
| 777 | path: canonicalWorkspaceFilePath({ folderPath: record.folderPath, name: record.name }), |
| 778 | } |
| 779 | } |
| 780 | |
| 781 | async function resolveFileFolderResource( |
| 782 | folderId: string, |
no test coverage detected