
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f37d0b96-6eb2-5ebd-9b65-e467ec0aea80")}catch(e){}}();
import { createClineSdkUserInstructionWatcher, loadClineSdkRulesForSystemPrompt, resolveClineSdkWorkflowSlashCommand, } from "./sdk-runtime-boundary.js";
export async function createClineRuntimeSetup(workspacePath) {
    const watcher = createClineSdkUserInstructionWatcher(workspacePath);
    await watcher.start().catch(() => { });
    return {
        watcher,
        resolvePrompt: (prompt) => resolveClineSdkWorkflowSlashCommand(prompt, watcher),
        loadRules: () => loadClineSdkRulesForSystemPrompt(watcher),
        requestToolApproval: async (request) => ({
            approved: true,
            reason: `Approved by Kanban runtime for ${request.toolName}.`,
        }),
        dispose: async () => {
            await watcher.stop().catch(() => { });
        },
    };
}
//# sourceMappingURL=cline-runtime-setup.js.map
//# debugId=f37d0b96-6eb2-5ebd-9b65-e467ec0aea80
