@swmansion/argent 0.35.1-next.58 → 0.35.1-next.59

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
@@ -11788,7 +11788,9 @@ var CONFIG_SCHEMA = [
11788
11788
  default: true,
11789
11789
  // Opt-in/out goes through the dedicated command so the live client is
11790
11790
  // drained/reset, not just the file rewritten.
11791
- manageCommand: "argent telemetry"
11791
+ manageCommand: "argent telemetry",
11792
+ // consent.ts keeps a ~/.argent opt-out under a moved home; show the same.
11793
+ userHomeOptOut: true
11792
11794
  },
11793
11795
  {
11794
11796
  key: "autoUpdate.enabled",
@@ -11797,6 +11799,8 @@ var CONFIG_SCHEMA = [
11797
11799
  parse: asBoolean,
11798
11800
  merge: "prioritize-local",
11799
11801
  default: true,
11802
+ // The global install is shared by every Argent home.
11803
+ userHomeOptOut: true,
11800
11804
  example: "false"
11801
11805
  },
11802
11806
  {
@@ -11897,8 +11901,11 @@ function readScopeValue(def, scope, options) {
11897
11901
  function getConfigValue(def, options = {}) {
11898
11902
  const local = readScopeValue(def, "project", options);
11899
11903
  const global2 = readScopeValue(def, "global", options);
11900
- const merged = applyMergePolicy(def.merge, local, global2);
11901
- return merged ?? def.default;
11904
+ const merged = applyMergePolicy(def.merge, local, global2) ?? def.default;
11905
+ if (!def.userHomeOptOut) return merged;
11906
+ const userHome = { homeDir: resolveHomeDir(options) };
11907
+ if (argentHomeDir(options) === argentHomeDir(userHome)) return merged;
11908
+ return readScopeValue(def, "global", userHome) === false ? false : merged;
11902
11909
  }
11903
11910
  function getConfigValueAtScope(key, scope, options = {}, registry2 = CONFIG_SCHEMA) {
11904
11911
  const def = requireDefinition(key, registry2);
@@ -38689,7 +38696,7 @@ function isCi(env = process.env) {
38689
38696
  var SESSION_ID2 = randomUUID5();
38690
38697
  function readCliVersion() {
38691
38698
  if (true) {
38692
- return "0.35.1-next.57";
38699
+ return "0.35.1-next.58";
38693
38700
  }
38694
38701
  return "0.0.0";
38695
38702
  }
package/dist/client.js CHANGED
@@ -8189,7 +8189,9 @@ var CONFIG_SCHEMA = [
8189
8189
  default: true,
8190
8190
  // Opt-in/out goes through the dedicated command so the live client is
8191
8191
  // drained/reset, not just the file rewritten.
8192
- manageCommand: "argent telemetry"
8192
+ manageCommand: "argent telemetry",
8193
+ // consent.ts keeps a ~/.argent opt-out under a moved home; show the same.
8194
+ userHomeOptOut: true
8193
8195
  },
8194
8196
  {
8195
8197
  key: "autoUpdate.enabled",
@@ -8198,6 +8200,8 @@ var CONFIG_SCHEMA = [
8198
8200
  parse: asBoolean,
8199
8201
  merge: "prioritize-local",
8200
8202
  default: true,
8203
+ // The global install is shared by every Argent home.
8204
+ userHomeOptOut: true,
8201
8205
  example: "false"
8202
8206
  },
8203
8207
  {
@@ -8298,8 +8302,11 @@ function readScopeValue(def, scope, options) {
8298
8302
  function getConfigValue(def, options = {}) {
8299
8303
  const local = readScopeValue(def, "project", options);
8300
8304
  const global = readScopeValue(def, "global", options);
8301
- const merged = applyMergePolicy(def.merge, local, global);
8302
- return merged ?? def.default;
8305
+ const merged = applyMergePolicy(def.merge, local, global) ?? def.default;
8306
+ if (!def.userHomeOptOut) return merged;
8307
+ const userHome = { homeDir: resolveHomeDir(options) };
8308
+ if (argentHomeDir(options) === argentHomeDir(userHome)) return merged;
8309
+ return readScopeValue(def, "global", userHome) === false ? false : merged;
8303
8310
  }
8304
8311
  function getConfigValueByKey(key, options = {}, registry = CONFIG_SCHEMA) {
8305
8312
  const def = requireDefinition(key, registry);
@@ -15441,7 +15441,9 @@ var CONFIG_SCHEMA = [
15441
15441
  default: true,
15442
15442
  // Opt-in/out goes through the dedicated command so the live client is
15443
15443
  // drained/reset, not just the file rewritten.
15444
- manageCommand: "argent telemetry"
15444
+ manageCommand: "argent telemetry",
15445
+ // consent.ts keeps a ~/.argent opt-out under a moved home; show the same.
15446
+ userHomeOptOut: true
15445
15447
  },
15446
15448
  {
15447
15449
  key: "autoUpdate.enabled",
@@ -15450,6 +15452,8 @@ var CONFIG_SCHEMA = [
15450
15452
  parse: asBoolean,
15451
15453
  merge: "prioritize-local",
15452
15454
  default: true,
15455
+ // The global install is shared by every Argent home.
15456
+ userHomeOptOut: true,
15453
15457
  example: "false"
15454
15458
  },
15455
15459
  {
@@ -15550,12 +15554,11 @@ function readScopeValue(def, scope, options) {
15550
15554
  function getConfigValue(def, options = {}) {
15551
15555
  const local = readScopeValue(def, "project", options);
15552
15556
  const global2 = readScopeValue(def, "global", options);
15553
- const merged = applyMergePolicy(def.merge, local, global2);
15554
- return merged ?? def.default;
15555
- }
15556
- function getConfigValueAtScope(key, scope, options = {}, registry = CONFIG_SCHEMA) {
15557
- const def = requireDefinition(key, registry);
15558
- return readScopeValue(def, scope, options);
15557
+ const merged = applyMergePolicy(def.merge, local, global2) ?? def.default;
15558
+ if (!def.userHomeOptOut) return merged;
15559
+ const userHome = { homeDir: resolveHomeDir(options) };
15560
+ if (argentHomeDir(options) === argentHomeDir(userHome)) return merged;
15561
+ return readScopeValue(def, "global", userHome) === false ? false : merged;
15559
15562
  }
15560
15563
  function getConfigValueByKey(key, options = {}, registry = CONFIG_SCHEMA) {
15561
15564
  const def = requireDefinition(key, registry);
@@ -15578,9 +15581,7 @@ var UnknownConfigKeyError = class extends Error {
15578
15581
  };
15579
15582
  var AUTO_UPDATE_ENABLED_KEY = "autoUpdate.enabled";
15580
15583
  function isAutoUpdateEnabled() {
15581
- if (getConfigValueByKey(AUTO_UPDATE_ENABLED_KEY) !== true) return false;
15582
- const userHome = { homeDir: resolveHomeDir() };
15583
- return getConfigValueAtScope(AUTO_UPDATE_ENABLED_KEY, "global", userHome) !== false;
15584
+ return getConfigValueByKey(AUTO_UPDATE_ENABLED_KEY) === true;
15584
15585
  }
15585
15586
 
15586
15587
  // ../telemetry/src/paths.ts
@@ -17118,7 +17119,7 @@ function isCi(env = process.env) {
17118
17119
  var SESSION_ID = randomUUID4();
17119
17120
  function readCliVersion() {
17120
17121
  if (true) {
17121
- return "0.35.1-next.57";
17122
+ return "0.35.1-next.58";
17122
17123
  }
17123
17124
  return "0.0.0";
17124
17125
  }
@@ -32641,7 +32641,9 @@ var CONFIG_SCHEMA = [
32641
32641
  default: true,
32642
32642
  // Opt-in/out goes through the dedicated command so the live client is
32643
32643
  // drained/reset, not just the file rewritten.
32644
- manageCommand: "argent telemetry"
32644
+ manageCommand: "argent telemetry",
32645
+ // consent.ts keeps a ~/.argent opt-out under a moved home; show the same.
32646
+ userHomeOptOut: true
32645
32647
  },
32646
32648
  {
32647
32649
  key: "autoUpdate.enabled",
@@ -32650,6 +32652,8 @@ var CONFIG_SCHEMA = [
32650
32652
  parse: asBoolean,
32651
32653
  merge: "prioritize-local",
32652
32654
  default: true,
32655
+ // The global install is shared by every Argent home.
32656
+ userHomeOptOut: true,
32653
32657
  example: "false"
32654
32658
  },
32655
32659
  {
@@ -32750,8 +32754,11 @@ function readScopeValue(def, scope, options) {
32750
32754
  function getConfigValue(def, options = {}) {
32751
32755
  const local = readScopeValue(def, "project", options);
32752
32756
  const global = readScopeValue(def, "global", options);
32753
- const merged = applyMergePolicy(def.merge, local, global);
32754
- return merged ?? def.default;
32757
+ const merged = applyMergePolicy(def.merge, local, global) ?? def.default;
32758
+ if (!def.userHomeOptOut) return merged;
32759
+ const userHome = { homeDir: resolveHomeDir(options) };
32760
+ if (argentHomeDir(options) === argentHomeDir(userHome)) return merged;
32761
+ return readScopeValue(def, "global", userHome) === false ? false : merged;
32755
32762
  }
32756
32763
  function getConfigValueByKey(key, options = {}, registry2 = CONFIG_SCHEMA) {
32757
32764
  const def = requireDefinition(key, registry2);
@@ -38248,7 +38255,7 @@ async function startMcpServer(options) {
38248
38255
  const autoDescribeOn = autoDescribeEnabled();
38249
38256
  const whatsNewOn = whatsNewEnabled();
38250
38257
  const installedVersion = getInstalledVersion();
38251
- const highlightsVersion = true ? "0.35.1-next.57" : installedVersion;
38258
+ const highlightsVersion = true ? "0.35.1-next.58" : installedVersion;
38252
38259
  const captureTimeoutMs = options.captureTimeoutMs ?? CAPTURE_TIMEOUT_MS;
38253
38260
  const trees = createTreeMemory();
38254
38261
  const screenshots = createScreenshotMemory();
@@ -991,7 +991,9 @@ var init_config_schema = __esm({
991
991
  default: true,
992
992
  // Opt-in/out goes through the dedicated command so the live client is
993
993
  // drained/reset, not just the file rewritten.
994
- manageCommand: "argent telemetry"
994
+ manageCommand: "argent telemetry",
995
+ // consent.ts keeps a ~/.argent opt-out under a moved home; show the same.
996
+ userHomeOptOut: true
995
997
  },
996
998
  {
997
999
  key: "autoUpdate.enabled",
@@ -1000,6 +1002,8 @@ var init_config_schema = __esm({
1000
1002
  parse: asBoolean,
1001
1003
  merge: "prioritize-local",
1002
1004
  default: true,
1005
+ // The global install is shared by every Argent home.
1006
+ userHomeOptOut: true,
1003
1007
  example: "false"
1004
1008
  },
1005
1009
  {
@@ -1097,12 +1101,11 @@ function readScopeValue(def, scope, options) {
1097
1101
  function getConfigValue(def, options = {}) {
1098
1102
  const local = readScopeValue(def, "project", options);
1099
1103
  const global2 = readScopeValue(def, "global", options);
1100
- const merged = applyMergePolicy(def.merge, local, global2);
1101
- return merged ?? def.default;
1102
- }
1103
- function getConfigValueAtScope(key2, scope, options = {}, registry2 = CONFIG_SCHEMA) {
1104
- const def = requireDefinition(key2, registry2);
1105
- return readScopeValue(def, scope, options);
1104
+ const merged = applyMergePolicy(def.merge, local, global2) ?? def.default;
1105
+ if (!def.userHomeOptOut) return merged;
1106
+ const userHome = { homeDir: resolveHomeDir(options) };
1107
+ if (argentHomeDir(options) === argentHomeDir(userHome)) return merged;
1108
+ return readScopeValue(def, "global", userHome) === false ? false : merged;
1106
1109
  }
1107
1110
  function getConfigValueByKey(key2, options = {}, registry2 = CONFIG_SCHEMA) {
1108
1111
  const def = requireDefinition(key2, registry2);
@@ -1128,9 +1131,7 @@ function getAndroidAdbServerPort(options = {}) {
1128
1131
  return typeof value === "number" ? value : null;
1129
1132
  }
1130
1133
  function isAutoUpdateEnabled() {
1131
- if (getConfigValueByKey(AUTO_UPDATE_ENABLED_KEY) !== true) return false;
1132
- const userHome = { homeDir: resolveHomeDir() };
1133
- return getConfigValueAtScope(AUTO_UPDATE_ENABLED_KEY, "global", userHome) !== false;
1134
+ return getConfigValueByKey(AUTO_UPDATE_ENABLED_KEY) === true;
1134
1135
  }
1135
1136
  function getAdditionalIosDeviceSets(options = {}) {
1136
1137
  const def = requireDefinition(IOS_ADDITIONAL_DEVICE_SETS_KEY);
@@ -73040,7 +73041,7 @@ function isCi(env = process.env) {
73040
73041
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
73041
73042
  function readCliVersion() {
73042
73043
  if (true) {
73043
- return "0.35.1-next.57";
73044
+ return "0.35.1-next.58";
73044
73045
  }
73045
73046
  return "0.0.0";
73046
73047
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.35.1-next.58",
3
+ "version": "0.35.1-next.59",
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",
@@ -98,5 +98,5 @@
98
98
  "vitest": "^5.0.5",
99
99
  "yaml": "^2.9.1"
100
100
  },
101
- "gitHead": "4c7df3fdcee81a15e191c354703dc7ed6b4db2a6"
101
+ "gitHead": "11ecd901905dd7fd97f8c952e3a63e2eec7f67f0"
102
102
  }