{
  id          = "0013",
  slug        = "domain-extension-install",
  description = "Domain extension system requires ontoref >= session-2026-04-06. The installer copies domains/ to $data_dir and generates bin wrappers for short aliases (personal, prov, fw). Consumer projects with matching repo_kind gain ore <domain-id> commands and ore help <domain-id> reference.",
  check       = {
    tag         = "NuCmd",
    cmd         = "let ore_root = ($env.ONTOREF_ROOT? | default \"\"); if ($ore_root | is-empty) { exit 1 }; let domains = $\"($ore_root)/domains\"; if not ($domains | path exists) { exit 1 }; let has_personal = ($\"($domains)/personal/commands.nu\" | path exists); let has_prov = ($\"($domains)/provisioning/commands.nu\" | path exists); let has_fw = ($\"($domains)/framework/commands.nu\" | path exists); if $has_personal and $has_prov and $has_fw { exit 0 } else { exit 1 }",
    expect_exit = 0,
  },
  instructions = "
Reinstall ontoref to get the domain extension system:

  nu install/install.nu

This copies domains/ to $ONTOREF_ROOT/domains/ and creates:
  - $HOME/.local/bin/personal  → ontoref personal   (PersonalOntology)
  - $HOME/.local/bin/prov      → ontoref provisioning  (DevWorkspace, Mixed)
  - $HOME/.local/bin/fw        → ontoref framework   (Library, Service, Tool)
  - $ONTOREF_ROOT/domains/aliases.txt (prov=provisioning, fw=framework)

After reinstall, verify with:
  ore help personal       # PersonalOntology projects
  ore help provisioning   # DevWorkspace / Mixed projects
  ore help framework      # Library / Service / Tool projects
",
}
