// @spencer-kit/coder-studio - ESM bundle

// packages/cli/src/embed.ts
import { existsSync } from "fs";
import { dirname, resolve } from "path";
import { fileURLToPath } from "url";
var __filename = fileURLToPath(import.meta.url);
var __dirname = dirname(__filename);
var WEB_ASSETS_DIR = resolve(__dirname, "../web");
function getStaticAssetsDir() {
  return WEB_ASSETS_DIR;
}
function hasWebAssets() {
  return existsSync(WEB_ASSETS_DIR);
}
async function embedWebAssets() {
  if (!hasWebAssets()) {
    console.warn("Warning: Web assets not found. Frontend will not be available.");
  }
}
export {
  embedWebAssets,
  getStaticAssetsDir,
  hasWebAssets
};
//# sourceMappingURL=index.mjs.map
