@swmansion/argent 0.33.1-next.19 → 0.33.1-next.20

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/cli-cmds.mjs CHANGED
@@ -36069,7 +36069,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
36069
36069
  var SESSION_ID2 = randomUUID5();
36070
36070
  function readCliVersion() {
36071
36071
  if (true) {
36072
- return "0.33.1-next.19";
36072
+ return "0.33.1-next.20";
36073
36073
  }
36074
36074
  return "0.0.0";
36075
36075
  }
@@ -16986,7 +16986,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
16986
16986
  var SESSION_ID = randomUUID4();
16987
16987
  function readCliVersion() {
16988
16988
  if (true) {
16989
- return "0.33.1-next.19";
16989
+ return "0.33.1-next.20";
16990
16990
  }
16991
16991
  return "0.0.0";
16992
16992
  }
@@ -20500,6 +20500,13 @@ function getAtJsoncPath(value, jsonPath) {
20500
20500
  function isEmptyPlainObject(value) {
20501
20501
  return value !== null && typeof value === "object" && !Array.isArray(value) && Object.keys(value).length === 0;
20502
20502
  }
20503
+ function removePath(targetPath) {
20504
+ const entry = fs16.lstatSync(targetPath, { throwIfNoEntry: false });
20505
+ if (!entry) return false;
20506
+ if (entry.isSymbolicLink()) fs16.unlinkSync(targetPath);
20507
+ else fs16.rmSync(targetPath, { recursive: entry.isDirectory(), force: true });
20508
+ return true;
20509
+ }
20503
20510
  function rmEmptyDir(dirPath) {
20504
20511
  try {
20505
20512
  if (!fs16.existsSync(dirPath)) return false;
@@ -20617,7 +20624,7 @@ function removeRetiredFiles(targetDir, files) {
20617
20624
  const file = resolveLinkedDestination(entryPath);
20618
20625
  try {
20619
20626
  fs16.rmSync(file);
20620
- if (file !== entryPath) fs16.rmSync(entryPath, { force: true });
20627
+ if (file !== entryPath) removePath(entryPath);
20621
20628
  removedPaths.push(relativePath);
20622
20629
  } catch {
20623
20630
  continue;
@@ -22617,9 +22624,7 @@ function pruneLegacySkillDirs(projectRoot, scope, bundled = new Set(listBundledS
22617
22624
  for (const name of legacy) {
22618
22625
  const dir = path21.join(targetPath, name);
22619
22626
  try {
22620
- if (!fs19.lstatSync(dir, { throwIfNoEntry: false })) continue;
22621
- fs19.rmSync(dir, { recursive: true, force: true });
22622
- removed.add(name);
22627
+ if (removePath(dir)) removed.add(name);
22623
22628
  } catch {
22624
22629
  }
22625
22630
  }
@@ -24165,7 +24170,7 @@ var LINK_FILE = path24.join(LINK_DIR, "link.json");
24165
24170
 
24166
24171
  // ../argent-tools-client/src/file-inputs.ts
24167
24172
  import { createHash as createHash4, randomUUID as randomUUID6 } from "node:crypto";
24168
- import { createReadStream as createReadStream2, rmSync as rmSync7 } from "node:fs";
24173
+ import { createReadStream as createReadStream2, rmSync as rmSync6 } from "node:fs";
24169
24174
  import {
24170
24175
  chmod as chmod3,
24171
24176
  lstat,
@@ -24824,7 +24829,7 @@ function removeBundledContent(sourceDir, targetDir) {
24824
24829
  try {
24825
24830
  if (!fs21.existsSync(targetPath)) continue;
24826
24831
  if (fs21.lstatSync(targetPath).isDirectory()) continue;
24827
- fs21.rmSync(targetPath, { force: true });
24832
+ removePath(targetPath);
24828
24833
  removedPaths.push(relativePath);
24829
24834
  } catch {
24830
24835
  }
@@ -24888,14 +24893,7 @@ function removeBundledSkillInstalls(skillNames, targetDir) {
24888
24893
  for (const skillName of skillNames) {
24889
24894
  const targetPath = path29.join(targetDir, skillName);
24890
24895
  try {
24891
- const stats = fs21.lstatSync(targetPath, { throwIfNoEntry: false });
24892
- if (!stats) continue;
24893
- if (stats.isDirectory() && !stats.isSymbolicLink()) {
24894
- fs21.rmSync(targetPath, { recursive: true, force: true });
24895
- } else {
24896
- fs21.rmSync(targetPath, { force: true });
24897
- }
24898
- removedPaths.push(skillName);
24896
+ if (removePath(targetPath)) removedPaths.push(skillName);
24899
24897
  } catch {
24900
24898
  }
24901
24899
  }
@@ -101278,7 +101278,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
101278
101278
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
101279
101279
  function readCliVersion() {
101280
101280
  if (true) {
101281
- return "0.33.1-next.19";
101281
+ return "0.33.1-next.20";
101282
101282
  }
101283
101283
  return "0.0.0";
101284
101284
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.33.1-next.19",
3
+ "version": "0.33.1-next.20",
4
4
  "mcpName": "io.github.software-mansion/argent",
5
5
  "description": "MCP server for iOS Simulator, Android Emulator, Chromium app and Mac app control",
6
6
  "license": "Apache-2.0",