"use strict";const c=require("@kiro/context-providers"),u=require("./logger-BN0ZR9CS.cjs");require("crypto");require("os");require("path");require("./prompt-DKJV0_RD.cjs");require("zod");require("dedent");require("vscode-uri");require("./message-analyzer-BmKN67z4.cjs");require("./number-coercion-Ce_kJ-2m.cjs");require("@aws/codewhisperer-streaming-client");require("./index--AyNOGT9.cjs");require("axios");require("axios-retry");require("@mozilla/readability");require("jsdom");async function q(r,s){const i=c.parseContextReferences(r);if(i.length===0)return r;let t=r;for(const e of i.reverse()){const n=s?.get(e.providerId);if(n){try{const o=await n.resolveContent(e.query??"");t=t.replace(e.fullMatch,o)}catch(o){u.logger.error(`[CustomAgentContext] Error resolving provider '${e.providerId}':`,o)}continue}u.logger.warn(`[CustomAgentContext] Provider '${e.providerId}' not found`)}return t}exports.processPromptWithContext=q;
//# sourceMappingURL=prompt-processor-DNyMqiZI.cjs.map
