prjct-cli 0.40.0 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9891,17 +9891,28 @@ var init_orchestrator_executor = __esm({
9891
9891
  for (const agent of agents) {
9892
9892
  for (const skillName of agent.skills) {
9893
9893
  if (loadedSkillNames.has(skillName)) continue;
9894
- const skillPath = path21.join(skillsDir, `${skillName}.md`);
9894
+ const flatPath = path21.join(skillsDir, `${skillName}.md`);
9895
+ const subdirPath = path21.join(skillsDir, skillName, "SKILL.md");
9896
+ let content = null;
9897
+ let resolvedPath = flatPath;
9895
9898
  try {
9896
- const content = await fs22.readFile(skillPath, "utf-8");
9899
+ content = await fs22.readFile(subdirPath, "utf-8");
9900
+ resolvedPath = subdirPath;
9901
+ } catch {
9902
+ try {
9903
+ content = await fs22.readFile(flatPath, "utf-8");
9904
+ resolvedPath = flatPath;
9905
+ } catch {
9906
+ console.warn(`Skill not found: ${skillName}`);
9907
+ }
9908
+ }
9909
+ if (content) {
9897
9910
  skills.push({
9898
9911
  name: skillName,
9899
9912
  content,
9900
- filePath: skillPath
9913
+ filePath: resolvedPath
9901
9914
  });
9902
9915
  loadedSkillNames.add(skillName);
9903
- } catch {
9904
- console.warn(`Skill not found: ${skillName}`);
9905
9916
  }
9906
9917
  }
9907
9918
  }
@@ -15877,7 +15888,7 @@ var require_package = __commonJS({
15877
15888
  "package.json"(exports, module) {
15878
15889
  module.exports = {
15879
15890
  name: "prjct-cli",
15880
- version: "0.38.1",
15891
+ version: "0.40.0",
15881
15892
  description: "Context layer for AI agents. Project context for Claude Code, Gemini CLI, and more.",
15882
15893
  main: "core/index.ts",
15883
15894
  bin: {