/**
 * Create the appropriate issue adapter based on config.
 * If `repositories` is set, returns a MultiRepoAdapter that aggregates issues.
 * Otherwise, returns a standard GitHubCliAdapter that uses the current repo.
 */
export async function createIssueAdapter(cwd, config, warn) {
    if (config.repositories && config.repositories.length > 0) {
        const { MultiRepoAdapter } = await import('./multi-repo-adapter.js');
        return MultiRepoAdapter.create(cwd, config.repositories, warn);
    }
    const { GitHubCliAdapter } = await import('./github-cli.js');
    return new GitHubCliAdapter(cwd);
}
//# sourceMappingURL=create-issue-adapter.js.map