@lmzhen/dsh-evolution-core 0.3.49 → 0.3.50
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/lib/index.js +4 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -4220,6 +4220,10 @@ var SkillLibrary = class {
|
|
|
4220
4220
|
}
|
|
4221
4221
|
const archived = [];
|
|
4222
4222
|
try {
|
|
4223
|
+
if (!await this.io.readText(join(targetDir, "SKILL.md"))) return {
|
|
4224
|
+
ok: false,
|
|
4225
|
+
message: `Skill "${targetName}" not found.`
|
|
4226
|
+
};
|
|
4223
4227
|
for (const source of normalizedSources) {
|
|
4224
4228
|
const result = await this.archive(source, { absorbedInto: targetName });
|
|
4225
4229
|
if (!result.ok) throw new Error(result.message);
|
package/package.json
CHANGED