// Force strict mode and setup for ESM
"use strict";
import {
  init_esbuild_shims
} from "./chunk-5O2XNYP6.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(), opts = {}) {
  const userDisabled = disabledSkillNames.has(skill.name.toLowerCase());
  const modelInvocable = skill.disableModelInvocation !== true;
  return {
    kind: "skill",
    status: opts.disabled || userDisabled ? "disabled" : "ok",
    name: skill.name,
    description: skill.description,
    level: skill.level,
    modelInvocable,
    ...skill.userInvocable === false ? { userInvocable: false } : {},
    installedPath: skill.filePath,
    ...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
 */
