import {
  composeSkills
} from "../chunk-NBSBRZ6F.js";

// src/skills-placement/index.ts
import { skillDirForHarness } from "@tangle-network/agent-profile-materialize";
var HARNESS_BRIDGE = {
  opencode: "opencode",
  "claude-code": "claude-code",
  nanoclaw: "nanoclaw",
  "kimi-code": "kimi-code",
  codex: "codex",
  pi: "pi",
  hermes: "hermes",
  openclaw: "openclaw"
};
function resolveSkillDir(harness) {
  const bridged = HARNESS_BRIDGE[harness];
  if (!bridged) return null;
  return skillDirForHarness(bridged);
}
function unsupportedSkillHarnesses(harnesses) {
  const seen = /* @__PURE__ */ new Set();
  const out = [];
  for (const harness of harnesses) {
    if (resolveSkillDir(harness) !== null) continue;
    if (seen.has(harness)) continue;
    seen.add(harness);
    out.push(harness);
  }
  return out;
}
function composeSkillsForHarness(input) {
  const { skills, harness, tier, heading } = input;
  const skillDir = resolveSkillDir(harness);
  if (skillDir) return composeSkills({ skills, mode: "mounted", skillDir, tier, heading });
  return composeSkills({ skills, mode: "inline", tier, heading });
}
export {
  composeSkillsForHarness,
  resolveSkillDir,
  unsupportedSkillHarnesses
};
//# sourceMappingURL=index.js.map