@arbidocs/tui 0.4.140 → 0.4.141

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.js CHANGED
@@ -2024,11 +2024,7 @@ async function editSkill(tui, authHeaders, skill) {
2024
2024
  if (mtimeAfter === mtimeBefore || updated === original) {
2025
2025
  return colors.muted(`No changes to ${skill.slug}/SKILL.md \u2014 skill unchanged.`);
2026
2026
  }
2027
- const blob = new Blob([updated], { type: "text/markdown" });
2028
- await sdk.documents.uploadFile(authHeaders, blob, "SKILL.md", {
2029
- folder: `skills/${skill.slug}`,
2030
- wpType: "skill"
2031
- });
2027
+ await sdk.assistant.uploadSkill(authHeaders, skill.slug, updated, { shared: sdk.isSharedSkill(skill) });
2032
2028
  await tui.refreshSkillsCache();
2033
2029
  return [
2034
2030
  colors.textBold(`Updated ${skill.name} (${skill.slug})`),