@fluid-app/fluid-cli-theme-dev 0.1.29 → 0.1.31
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.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/dist/skills/themes-cart-feedback/SKILL.md +452 -0
- package/dist/skills/themes-cart-feedback/references/cart-operation-events.md +209 -0
- package/dist/skills/themes-review/references/fairshare-attributes.md +2 -0
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -2539,6 +2539,12 @@ function resolveBundledSkillsDir() {
|
|
|
2539
2539
|
}
|
|
2540
2540
|
throw new Error("Could not locate the bundled theme skills — this is a packaging bug.");
|
|
2541
2541
|
}
|
|
2542
|
+
function skillsWouldShipWithTheme(cwd, targetRoot) {
|
|
2543
|
+
if (!new ThemeRoot(cwd).isValid()) return false;
|
|
2544
|
+
const rel = relative(cwd, targetRoot);
|
|
2545
|
+
if (rel.startsWith("..")) return false;
|
|
2546
|
+
return !rel.split(sep).some((segment) => segment.startsWith("."));
|
|
2547
|
+
}
|
|
2542
2548
|
function createSkillsCommand() {
|
|
2543
2549
|
const skills = new Command("skills").description("Manage the bundled Fluid theme AI skills");
|
|
2544
2550
|
skills.command("install").description("Copy the bundled theme skills into the current directory (default: .agents/skills/)").option("-d, --dir <path>", "Directory to install into", DEFAULT_TARGET_DIR).option("-f, --force", "Overwrite existing skills without prompting").action(async (opts) => {
|
|
@@ -2548,6 +2554,7 @@ function createSkillsCommand() {
|
|
|
2548
2554
|
process.exit(1);
|
|
2549
2555
|
}
|
|
2550
2556
|
const targetRoot = resolve(process.cwd(), opts.dir);
|
|
2557
|
+
if (skillsWouldShipWithTheme(process.cwd(), targetRoot)) console.log(`${chalk.yellow("⚠")} ${chalk.bold(opts.dir)} is not a hidden directory — 'fluid theme push' will upload these skills as theme files. Install into a dot-directory like ${chalk.cyan(DEFAULT_TARGET_DIR)} to keep them local.`);
|
|
2551
2558
|
const { installed, skipped } = await installSkills({
|
|
2552
2559
|
sourceDir,
|
|
2553
2560
|
targetRoot,
|