import { E as s, S as n } from "./index-XU9XjwM2.js";
import { F as T, G as A, H as g, I as v, J as y, K as C, L as D, C as F, B as $, M as b, N as S, O as k, P as G, Q as L } from "./index-XU9XjwM2.js";
import { readFileSync as i } from "fs";
import { dirname as f, join as a } from "path";
import { fileURLToPath as l } from "url";
const e = f(l(import.meta.url));
function d(t) {
  const r = [
    a(e, "data/mcp-instructions", `${t}.md`),
    a(
      e,
      "../../../shopify-dev-tools/src/data/mcp-instructions",
      `${t}.md`
    )
  ];
  for (const o of r)
    try {
      return i(o, "utf-8");
    } catch {
    }
  throw new Error(
    `No instruction file found for API '${t}'. Tried:
${r.map((o) => `  - ${o}`).join(`
`)}`
  );
}
function h(t, r = s) {
  const o = n[t];
  if (o && !(o.featureFlag && !r[o.featureFlag]))
    return d(t);
}
export {
  T as enabledGraphQLAPIs,
  A as formatValidationResult,
  h as getAPIInstructions,
  g as getAPIVersion,
  v as getEnabledAPIsForLearning,
  y as learnShopifyApiToolDef,
  C as searchDocsChunksToolDef,
  D as shopifyAdminGraphqlPrompt,
  F as shopifyPrompts,
  $ as shopifyTools,
  b as validateComponentCodeblocksToolDef,
  S as validateGraphqlCodeblocksToolDef,
  k as validateThemeCodeblocksToolDef,
  G as validateThemeToolDef,
  L as withConversationId
};
