opencode-gitlab-dap 1.15.1 → 1.15.2

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/index.cjs CHANGED
@@ -4279,7 +4279,10 @@ function downloadSkillFromSkillsSh(identifier) {
4279
4279
  if ((0, import_fs2.statSync)(full).isDirectory()) {
4280
4280
  walkStack.push({ dir: full, prefix: rel });
4281
4281
  } else if (entry !== "SKILL.md") {
4282
- files.push({ path: rel, content: (0, import_fs2.readFileSync)(full, "utf-8") });
4282
+ try {
4283
+ files.push({ path: rel, content: (0, import_fs2.readFileSync)(full, "utf-8") });
4284
+ } catch {
4285
+ }
4283
4286
  }
4284
4287
  }
4285
4288
  }
@@ -4581,7 +4584,7 @@ Install: \`gitlab_skill_install(name="${r.identifier}", source="skills.sh")\``
4581
4584
  args.project_id,
4582
4585
  `skill:${downloaded.name}`,
4583
4586
  `Scripts for skill "${downloaded.name}" (installed from skills.sh:${args.name})`,
4584
- scriptFiles.map((f) => ({ file_path: f.path, content: f.content })),
4587
+ scriptFiles.map((f) => ({ file_path: f.path, content: f.content || "\n" })),
4585
4588
  "private"
4586
4589
  );
4587
4590
  snippetId = snippet.id;