@swmansion/argent 0.28.1-next.26 → 0.28.1-next.28

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
@@ -30095,7 +30095,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
30095
30095
  var SESSION_ID2 = randomUUID5();
30096
30096
  function readCliVersion() {
30097
30097
  if (true) {
30098
- return "0.28.1-next.25";
30098
+ return "0.28.1-next.28";
30099
30099
  }
30100
30100
  return "0.0.0";
30101
30101
  }
@@ -16739,7 +16739,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
16739
16739
  var SESSION_ID = randomUUID4();
16740
16740
  function readCliVersion() {
16741
16741
  if (true) {
16742
- return "0.28.1-next.25";
16742
+ return "0.28.1-next.28";
16743
16743
  }
16744
16744
  return "0.0.0";
16745
16745
  }
@@ -20040,10 +20040,14 @@ var PROJECT_ROOT_MARKERS = [
20040
20040
  "opencode.jsonc",
20041
20041
  "skills-lock.json"
20042
20042
  ];
20043
- function resolveProjectRoot2(startDir) {
20043
+ function resolveProjectRoot2(startDir, homeDir = os2.homedir()) {
20044
20044
  const initialDir = path16.resolve(startDir);
20045
+ const home = path16.resolve(homeDir);
20045
20046
  let currentDir = initialDir;
20046
20047
  while (true) {
20048
+ if (currentDir === home && currentDir !== initialDir) {
20049
+ return initialDir;
20050
+ }
20047
20051
  if (PROJECT_ROOT_MARKERS.some((marker) => fs15.existsSync(path16.join(currentDir, marker)))) {
20048
20052
  return currentDir;
20049
20053
  }
@@ -27073,6 +27073,15 @@ function getAutoScreenshotDelayMs(toolName) {
27073
27073
  }
27074
27074
 
27075
27075
  // ../argent-mcp/src/tool-mapping.ts
27076
+ function withoutRetiredParams(schema) {
27077
+ const properties = schema.properties;
27078
+ if (!properties) return schema;
27079
+ const live = Object.entries(properties).filter(
27080
+ ([, prop]) => !prop.not || Object.keys(prop.not).length > 0
27081
+ );
27082
+ if (live.length === Object.keys(properties).length) return schema;
27083
+ return { ...schema, properties: Object.fromEntries(live) };
27084
+ }
27076
27085
  function toMcpTool(t) {
27077
27086
  const meta2 = {};
27078
27087
  if (t.alwaysLoad) meta2["anthropic/alwaysLoad"] = true;
@@ -27080,7 +27089,7 @@ function toMcpTool(t) {
27080
27089
  return {
27081
27090
  name: t.name,
27082
27091
  description: t.description,
27083
- inputSchema: { type: "object", ...t.inputSchema },
27092
+ inputSchema: { type: "object", ...withoutRetiredParams(t.inputSchema) },
27084
27093
  ...Object.keys(meta2).length > 0 ? { _meta: meta2 } : {}
27085
27094
  };
27086
27095
  }
@@ -94923,7 +94923,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
94923
94923
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
94924
94924
  function readCliVersion() {
94925
94925
  if (true) {
94926
- return "0.28.1-next.25";
94926
+ return "0.28.1-next.28";
94927
94927
  }
94928
94928
  return "0.0.0";
94929
94929
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.28.1-next.26",
3
+ "version": "0.28.1-next.28",
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",