@fro.bot/systematic 1.22.2 → 1.22.4
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 +10 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -464,6 +464,15 @@ var bundledAgentsDir = path4.join(packageRoot, "agents");
|
|
|
464
464
|
var bundledCommandsDir = path4.join(packageRoot, "commands");
|
|
465
465
|
var packageJsonPath = path4.join(packageRoot, "package.json");
|
|
466
466
|
var hasLoggedInit = false;
|
|
467
|
+
var applyBootstrapContent = (output, content) => {
|
|
468
|
+
if (output.system.length > 0) {
|
|
469
|
+
output.system[output.system.length - 1] += `
|
|
470
|
+
|
|
471
|
+
${content}`;
|
|
472
|
+
} else {
|
|
473
|
+
output.system.push(content);
|
|
474
|
+
}
|
|
475
|
+
};
|
|
467
476
|
var getPackageVersion = () => {
|
|
468
477
|
try {
|
|
469
478
|
if (!fs3.existsSync(packageJsonPath))
|
|
@@ -528,13 +537,7 @@ var SystematicPlugin = async ({ client, directory }) => {
|
|
|
528
537
|
}
|
|
529
538
|
const content = getBootstrapContent(config, { bundledSkillsDir });
|
|
530
539
|
if (content) {
|
|
531
|
-
|
|
532
|
-
output.system[output.system.length - 1] += `
|
|
533
|
-
|
|
534
|
-
${content}`;
|
|
535
|
-
} else {
|
|
536
|
-
output.system.push(content);
|
|
537
|
-
}
|
|
540
|
+
applyBootstrapContent(output, content);
|
|
538
541
|
}
|
|
539
542
|
}
|
|
540
543
|
};
|