[module]
name = "selfhost.shared"
version = "1.0.0"

[exports]
# JSON adapter facade and common helpers
json_adapter = "json_adapter.hako"
common.mini_vm_scan = "common/mini_vm_scan.hako"
common.mini_vm_binop = "common/mini_vm_binop.hako"
common.mini_vm_compare = "common/mini_vm_compare.hako"
common.string_helpers = "common/string_helpers.hako"
common.string_ops = "common/string_ops.hako"
common.box_helpers = "common/box_helpers.hako"
common.box_type_inspector = "common/box_type_inspector_box.hako"
common.entry_point_base = "common/entry_point_base.hako"
common.common_imports = "common/common_imports.hako"

# JSON tooling
json.mir_builder_min = "json/mir_builder_min.hako"
json.mir_v1_adapter = "json/mir_v1_adapter.hako"
json.core.json_cursor = "json/json_cursor.hako"
json.core.string_scan = "json/core/string_scan.hako"
json.core.json_canonical = "json/json_canonical_box.hako"
json.utils.json_utils = "json/json_utils.hako"
json.utils.json_frag = "json/utils/json_frag.hako"
json.utils.json_number_canonical = "json/utils/json_number_canonical_box.hako"

# Host bridge & adapters
host_bridge.host_bridge = "host_bridge/host_bridge_box.hako"
host_bridge.codegen_bridge = "host_bridge/codegen_bridge_box.hako"
adapters.map_kv_string_to_array = "adapters/map_kv_string_to_array.hako"

# MIR helpers (exported as stable module names)
mir.schema = "mir/mir_schema_box.hako"
mir.builder = "mir/block_builder_box.hako"
mir.io = "mir/mir_io_box.hako"
mir.json_emit = "mir/json_emit_box.hako"

[private]
# Internal builders kept private for now
# json/mir_builder2.hako, json/json_inst_encode_box.hako

[dependencies]
"selfhost.vm" = "^1.0.0"
