@swmansion/argent 0.27.1-next.5 → 0.27.1-next.7

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
@@ -21916,7 +21916,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
21916
21916
  var SESSION_ID2 = randomUUID5();
21917
21917
  function readCliVersion() {
21918
21918
  if (true) {
21919
- return "0.27.1-next.5";
21919
+ return "0.27.1-next.7";
21920
21920
  }
21921
21921
  return "0.0.0";
21922
21922
  }
@@ -16730,7 +16730,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
16730
16730
  var SESSION_ID = randomUUID4();
16731
16731
  function readCliVersion() {
16732
16732
  if (true) {
16733
- return "0.27.1-next.5";
16733
+ return "0.27.1-next.7";
16734
16734
  }
16735
16735
  return "0.0.0";
16736
16736
  }
@@ -17366,7 +17366,7 @@ async function shutdown(timeoutMs = SHORT_FLUSH_TIMEOUT_MS) {
17366
17366
  // ../argent-installer/src/mcp-configs.ts
17367
17367
  import * as fs15 from "node:fs";
17368
17368
  import * as path16 from "node:path";
17369
- import { execFileSync as execFileSync2 } from "node:child_process";
17369
+ import { execFileSync as execFileSync4 } from "node:child_process";
17370
17370
  import { homedir as homedir4 } from "node:os";
17371
17371
 
17372
17372
  // ../argent-installer/src/constants.ts
@@ -17383,7 +17383,7 @@ import * as fs14 from "node:fs";
17383
17383
  import * as path15 from "node:path";
17384
17384
  import * as dns from "node:dns";
17385
17385
  import * as os2 from "node:os";
17386
- import { execSync as execSync2 } from "node:child_process";
17386
+ import { execFileSync as execFileSync3, execSync } from "node:child_process";
17387
17387
 
17388
17388
  // ../../node_modules/smol-toml/dist/date.js
17389
17389
  var DATE_TIME_RE = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i;
@@ -19738,7 +19738,7 @@ var import_semver2 = __toESM(require_semver2(), 1);
19738
19738
  import * as fs12 from "node:fs";
19739
19739
  import * as path13 from "node:path";
19740
19740
  import { createRequire } from "node:module";
19741
- import { execSync } from "node:child_process";
19741
+ import { execFileSync as execFileSync2 } from "node:child_process";
19742
19742
  var TEMP_RUNNER_MARKERS = [
19743
19743
  "_npx",
19744
19744
  "/dlx-",
@@ -19751,8 +19751,8 @@ function isTempRunnerPath(binaryPath) {
19751
19751
  }
19752
19752
  function getGlobalBinaryPath() {
19753
19753
  try {
19754
- const cmd = process.platform === "win32" ? "where" : "which -a";
19755
- const output = execSync(`${cmd} ${MCP_BINARY_NAME}`, {
19754
+ const [cmd, args] = process.platform === "win32" ? ["where", [MCP_BINARY_NAME]] : ["which", ["-a", MCP_BINARY_NAME]];
19755
+ const output = execFileSync2(cmd, args, {
19756
19756
  encoding: "utf8",
19757
19757
  stdio: ["ignore", "pipe", "ignore"]
19758
19758
  });
@@ -20209,10 +20209,9 @@ function getInstalledVersion() {
20209
20209
  }
20210
20210
  var PROBE_TIMEOUT_MS = 3e3;
20211
20211
  function getLatestVersion() {
20212
- const result = execSync2(`npm view ${PACKAGE_NAME} version --registry ${NPM_REGISTRY}`, {
20213
- encoding: "utf8",
20214
- timeout: PROBE_TIMEOUT_MS
20215
- });
20212
+ const args = ["view", PACKAGE_NAME, "version", "--registry", NPM_REGISTRY];
20213
+ const opts = { encoding: "utf8", timeout: PROBE_TIMEOUT_MS };
20214
+ const result = process.platform === "win32" ? execSync(["npm", ...args].join(" "), opts) : execFileSync3("npm", args, opts);
20216
20215
  return result.trim();
20217
20216
  }
20218
20217
  function isNewerVersion(candidate, current) {
@@ -20224,7 +20223,7 @@ function withNpmForce(npxArgs) {
20224
20223
  }
20225
20224
  function isSkillsCliAvailable() {
20226
20225
  try {
20227
- execSync2("npx --force --no-install skills --version", {
20226
+ execSync("npx --force --no-install skills --version", {
20228
20227
  stdio: ["ignore", "ignore", "ignore"],
20229
20228
  timeout: PROBE_TIMEOUT_MS
20230
20229
  });
@@ -20264,7 +20263,7 @@ function escapeStringRegexp(string) {
20264
20263
  // ../argent-installer/src/mcp-configs.ts
20265
20264
  var TOOL_SERVER_BUNDLE = path16.join(import.meta.dirname, "tool-server.cjs");
20266
20265
  function getAvailableToolIds() {
20267
- const out = execFileSync2("node", [TOOL_SERVER_BUNDLE, "-t"], { encoding: "utf8" });
20266
+ const out = execFileSync4("node", [TOOL_SERVER_BUNDLE, "-t"], { encoding: "utf8" });
20268
20267
  const tools = JSON.parse(out);
20269
20268
  return tools.map((t2) => t2.id);
20270
20269
  }
@@ -21226,7 +21225,7 @@ var OPENCODE_GLOBAL_FILES = ["opencode.jsonc", "opencode.json", "config.json"];
21226
21225
  function hasOpenCodeBinary() {
21227
21226
  try {
21228
21227
  const cmd = process.platform === "win32" ? "where" : "which";
21229
- execFileSync2(cmd, [OPENCODE_BINARY], { stdio: ["ignore", "ignore", "ignore"] });
21228
+ execFileSync4(cmd, [OPENCODE_BINARY], { stdio: ["ignore", "ignore", "ignore"] });
21230
21229
  return true;
21231
21230
  } catch {
21232
21231
  return false;
@@ -21884,7 +21883,7 @@ async function promptInstallMode(defaultMode = "global") {
21884
21883
  var import_picocolors3 = __toESM(require_picocolors(), 1);
21885
21884
 
21886
21885
  // ../argent-installer/src/shell.ts
21887
- import { execFileSync as execFileSync3, spawn as spawn2 } from "node:child_process";
21886
+ import { execFileSync as execFileSync5, spawn as spawn2 } from "node:child_process";
21888
21887
  async function runTrustingDisk(execute, landedOnDisk) {
21889
21888
  let exitError = null;
21890
21889
  try {
@@ -21895,7 +21894,7 @@ async function runTrustingDisk(execute, landedOnDisk) {
21895
21894
  return { landed: landedOnDisk(), exitError };
21896
21895
  }
21897
21896
  function execShellCommandSync(cmd, opts = {}) {
21898
- execFileSync3(cmd.bin, cmd.args, {
21897
+ execFileSync5(cmd.bin, cmd.args, {
21899
21898
  stdio: "inherit",
21900
21899
  shell: process.platform === "win32",
21901
21900
  ...opts.cwd ? { cwd: opts.cwd } : {},
@@ -21939,7 +21938,7 @@ function runShellCommand(cmd, opts = {}) {
21939
21938
  }
21940
21939
 
21941
21940
  // ../argent-installer/src/skills.ts
21942
- import { execFileSync as execFileSync4 } from "node:child_process";
21941
+ import { execFileSync as execFileSync6 } from "node:child_process";
21943
21942
  var import_picocolors2 = __toESM(require_picocolors(), 1);
21944
21943
  function getScopeSpecs(projectRoot) {
21945
21944
  return [
@@ -21975,14 +21974,14 @@ function refreshArgentSkills(projectRoot) {
21975
21974
  pruneError: null
21976
21975
  };
21977
21976
  try {
21978
- execFileSync4("npx", withNpmForce(spec.buildAddArgs(primarySource)), execOpts);
21977
+ execFileSync6("npx", withNpmForce(spec.buildAddArgs(primarySource)), execOpts);
21979
21978
  result.synced = bundled.size;
21980
21979
  } catch (primaryErr) {
21981
21980
  if (primarySource === SKILLS_DIR) {
21982
21981
  result.syncError = primaryErr instanceof Error ? primaryErr.message.split("\n")[0] : String(primaryErr);
21983
21982
  } else {
21984
21983
  try {
21985
- execFileSync4("npx", withNpmForce(spec.buildAddArgs(SKILLS_DIR)), execOpts);
21984
+ execFileSync6("npx", withNpmForce(spec.buildAddArgs(SKILLS_DIR)), execOpts);
21986
21985
  result.synced = bundled.size;
21987
21986
  } catch (fallbackErr) {
21988
21987
  result.syncError = fallbackErr instanceof Error ? fallbackErr.message.split("\n")[0] : String(fallbackErr);
@@ -21991,7 +21990,7 @@ function refreshArgentSkills(projectRoot) {
21991
21990
  }
21992
21991
  if (orphaned.length > 0) {
21993
21992
  try {
21994
- execFileSync4("npx", withNpmForce([...spec.removeArgs, ...orphaned]), execOpts);
21993
+ execFileSync6("npx", withNpmForce([...spec.removeArgs, ...orphaned]), execOpts);
21995
21994
  result.pruned = orphaned;
21996
21995
  } catch (err) {
21997
21996
  result.pruneError = err instanceof Error ? err.message.split("\n")[0] : String(err);
@@ -23128,7 +23127,7 @@ import * as fs17 from "node:fs";
23128
23127
  import * as path18 from "node:path";
23129
23128
  import * as readline from "node:readline";
23130
23129
  import { homedir as homedir5 } from "node:os";
23131
- import { spawn as spawn4, execFileSync as execFileSync5 } from "node:child_process";
23130
+ import { spawn as spawn4, execFileSync as execFileSync7 } from "node:child_process";
23132
23131
  import { createHash as createHash2, randomBytes } from "node:crypto";
23133
23132
  import { mkdir, writeFile, readFile, readdir, unlink, rename, chmod } from "node:fs/promises";
23134
23133
  var STATE_DIR = path18.join(homedir5(), ".argent");
@@ -23269,7 +23268,7 @@ var PS_BIN = ["/bin/ps", "/usr/bin/ps"].find((p) => fs17.existsSync(p)) ?? "ps";
23269
23268
  var PS_WIDTH_FLAGS = ["-ww"];
23270
23269
  var PS_LOCALE = process.platform === "darwin" ? "en_US.UTF-8" : "C.UTF-8";
23271
23270
  function readProcessCommandLine(pid, flags = PS_WIDTH_FLAGS, env = { ...process.env, LC_ALL: PS_LOCALE }) {
23272
- return execFileSync5(PS_BIN, [...flags, "-p", String(pid), "-o", "command="], {
23271
+ return execFileSync7(PS_BIN, [...flags, "-p", String(pid), "-o", "command="], {
23273
23272
  env,
23274
23273
  encoding: "utf8",
23275
23274
  timeout: 2e3,
@@ -94814,7 +94814,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
94814
94814
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
94815
94815
  function readCliVersion() {
94816
94816
  if (true) {
94817
- return "0.27.1-next.5";
94817
+ return "0.27.1-next.7";
94818
94818
  }
94819
94819
  return "0.0.0";
94820
94820
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.27.1-next.5",
3
+ "version": "0.27.1-next.7",
4
4
  "mcpName": "io.github.software-mansion/argent",
5
5
  "description": "MCP server for iOS Simulator and Android Emulator control",
6
6
  "license": "Apache-2.0",