/** SDK-owned platform module. This implementation is maintained in goodvibes-sdk. */
/**
 * Embedded WASM files for tree-sitter — compiled into the binary via Bun's
 * `with { type: 'file' }` import assertion. In `bun build --compile`, Bun
 * embeds the file and returns the embedded path at runtime. In dev mode
 * (`bun run`), it returns the absolute filesystem path. Both modes work
 * identically with `Language.load()` and `Parser.init()`.
 *
 * Only the grammar packages that are actually installed are included here.
 * The service handles missing languages gracefully (returns null).
 */
import treeSitterWasm from 'web-tree-sitter/web-tree-sitter.wasm' with { type: 'file' };
import typescriptWasm from 'tree-sitter-typescript/tree-sitter-typescript.wasm' with { type: 'file' };
import tsxWasm from 'tree-sitter-typescript/tree-sitter-tsx.wasm' with { type: 'file' };
import javascriptWasm from 'tree-sitter-javascript/tree-sitter-javascript.wasm' with { type: 'file' };
import pythonWasm from 'tree-sitter-python/tree-sitter-python.wasm' with { type: 'file' };
import jsonWasm from 'tree-sitter-json/tree-sitter-json.wasm' with { type: 'file' };
import cssWasm from 'tree-sitter-css/tree-sitter-css.wasm' with { type: 'file' };
/**
 * The embedded path for the core web-tree-sitter WASM module.
 * Pass this to `Parser.init({ locateFile: () => TREE_SITTER_WASM })`.
 */
export const TREE_SITTER_WASM = treeSitterWasm;
/**
 * Map of language ID → embedded WASM path.
 * Only languages with installed grammar packages are present.
 * A missing key means the grammar is not available — the service returns null.
 */
export const GRAMMAR_WASM = {
    typescript: typescriptWasm,
    tsx: tsxWasm,
    javascript: javascriptWasm,
    python: pythonWasm,
    json: jsonWasm,
    css: cssWasm,
};
