// Force strict mode and setup for ESM
"use strict";
import {
  init_esbuild_shims
} from "./chunk-A4BMJM77.js";
import {
  __name
} from "./chunk-J2S4EL5Y.js";

// packages/cli/src/serve/workspace-skills-mapping.ts
init_esbuild_shims();
function mapSkillConfigToStatus(skill, disabledSkillNames = /* @__PURE__ */ new Set()) {
  const userDisabled = disabledSkillNames.has(skill.name.toLowerCase());
  const modelInvocable = skill.disableModelInvocation !== true;
  return {
    kind: "skill",
    status: userDisabled ? "disabled" : "ok",
    name: skill.name,
    description: skill.description,
    level: skill.level,
    modelInvocable,
    ...skill.argumentHint ? { argumentHint: skill.argumentHint } : {},
    ...skill.model ? { model: skill.model } : {},
    ...skill.extensionName ? { extensionName: skill.extensionName } : {}
  };
}
__name(mapSkillConfigToStatus, "mapSkillConfigToStatus");

export {
  mapSkillConfigToStatus
};
/**
 * @license
 * Copyright 2025 Qwen Team
 * SPDX-License-Identifier: Apache-2.0
 */
