bamboo-agents 0.1.5-dev.32 → 0.1.5-dev.33

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.
package/dist/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5-dev.32
1
+ 0.1.5-dev.33
package/dist/index.js CHANGED
@@ -3037,7 +3037,7 @@ var VERSION;
3037
3037
  var init_version = __esm({
3038
3038
  "src/version.ts"() {
3039
3039
  "use strict";
3040
- VERSION = "0.1.5-dev.32";
3040
+ VERSION = "0.1.5-dev.33";
3041
3041
  }
3042
3042
  });
3043
3043
 
@@ -13905,15 +13905,17 @@ async function resolveSkillsDir(repoPath) {
13905
13905
  async function listLocalSkills(repoPath) {
13906
13906
  const dir = await resolveSkillsDir(repoPath);
13907
13907
  if (!dir) return [];
13908
- const entries = await readdir2(dir);
13909
- const matches = entries.filter((e) => e.endsWith(".skill.md"));
13908
+ const entries = await readdir2(dir, { withFileTypes: true });
13909
+ const skillDirs = entries.filter((e) => e.isDirectory());
13910
13910
  const skills2 = [];
13911
- for (const entry of matches) {
13912
- const full = join2(dir, entry);
13911
+ for (const entry of skillDirs) {
13912
+ const full = join2(dir, entry.name, "SKILL.md");
13913
13913
  let raw;
13914
13914
  try {
13915
13915
  raw = await readFile4(full, "utf8");
13916
13916
  } catch (err) {
13917
+ const code = err.code;
13918
+ if (code === "ENOENT") continue;
13917
13919
  console.warn(
13918
13920
  `bamboo-agents: couldn't read ${full}: ${err.message}`
13919
13921
  );
@@ -13928,10 +13930,7 @@ async function listLocalSkills(repoPath) {
13928
13930
  async function getLocalSkill(repoPath, name) {
13929
13931
  const dir = await resolveSkillsDir(repoPath);
13930
13932
  if (!dir) return null;
13931
- const expectedFile = `${name}.skill.md`;
13932
- const entries = await readdir2(dir);
13933
- if (!entries.includes(expectedFile)) return null;
13934
- const full = join2(dir, expectedFile);
13933
+ const full = join2(dir, name, "SKILL.md");
13935
13934
  let raw;
13936
13935
  try {
13937
13936
  raw = await readFile4(full, "utf8");