aiblueprint-cli 1.4.53 → 1.4.54

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.
Files changed (2) hide show
  1. package/dist/cli.js +13 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -33554,10 +33554,21 @@ async function platformSymlink(source, target) {
33554
33554
  await import_fs_extra7.default.ensureDir(path10.dirname(target));
33555
33555
  const isWindows2 = os10.platform() === "win32";
33556
33556
  const sourceStat = await import_fs_extra7.default.stat(source).catch(() => null);
33557
- if (isWindows2 && sourceStat?.isDirectory()) {
33557
+ const isDir = sourceStat?.isDirectory() ?? false;
33558
+ if (isWindows2 && isDir) {
33558
33559
  await import_fs_extra7.default.symlink(source, target, "junction");
33559
- } else {
33560
+ return;
33561
+ }
33562
+ try {
33560
33563
  await import_fs_extra7.default.symlink(source, target);
33564
+ } catch (error) {
33565
+ if (!isWindows2 || isDir)
33566
+ throw error;
33567
+ try {
33568
+ await import_fs_extra7.default.link(source, target);
33569
+ } catch {
33570
+ await import_fs_extra7.default.copy(source, target, { overwrite: true });
33571
+ }
33561
33572
  }
33562
33573
  }
33563
33574
  async function installCategoryToAgents(sourceCategoryDir, category, agentsDir, claudeDir, options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiblueprint-cli",
3
- "version": "1.4.53",
3
+ "version": "1.4.54",
4
4
  "description": "AIBlueprint CLI for setting up AI coding configurations",
5
5
  "author": "AIBlueprint",
6
6
  "license": "MIT",