export async function fetchContext(client) {
    try {
        const result = await client.getWorkspaceContext(process.cwd());
        if (!result)
            return null;
        return {
            projectId: result.projectId,
            projectName: result.projectName,
            taskId: result.taskId,
            taskTitle: result.taskTitle,
            workspaceId: result.workspaceId,
            workspaceBranch: result.workspaceBranch,
        };
    }
    catch {
        return null;
    }
}
//# sourceMappingURL=context.js.map