@swmansion/argent 0.35.1-next.4 → 0.35.1-next.5

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.
@@ -32125,6 +32125,7 @@ function buildToolsServerEnv(paths, port, baseEnv = process.env, options = {}) {
32125
32125
  env.ARGENT_IDLE_TIMEOUT_MINUTES = String(options.idleTimeoutMinutes);
32126
32126
  }
32127
32127
  env[AUTH_TOKEN_ENV] = options.token ?? "";
32128
+ env.ARGENT_SERVER_MANAGED = options.managed ?? "autospawn";
32128
32129
  if (paths.installKind) env.ARGENT_INSTALL_KIND = paths.installKind;
32129
32130
  if (paths.installProjectRoot) env.ARGENT_PROJECT_ROOT = paths.installProjectRoot;
32130
32131
  return env;
@@ -32889,7 +32890,19 @@ function getWhatsNewSeenVersion(options = {}) {
32889
32890
  return typeof value === "string" ? value : null;
32890
32891
  }
32891
32892
  function setWhatsNewSeenVersion(version2, options = {}) {
32892
- updateConfig((config2) => setAtPath(config2, WHATS_NEW_SEEN_KEY, version2), "global", options);
32893
+ let recorded = false;
32894
+ updateConfig(
32895
+ (config2) => {
32896
+ const value = getAtPath(config2, WHATS_NEW_SEEN_KEY);
32897
+ const seen = typeof value === "string" ? value : null;
32898
+ if (options.ifSeen !== void 0 && options.ifSeen !== seen) return;
32899
+ setAtPath(config2, WHATS_NEW_SEEN_KEY, version2);
32900
+ recorded = true;
32901
+ },
32902
+ "global",
32903
+ options
32904
+ );
32905
+ return recorded;
32893
32906
  }
32894
32907
 
32895
32908
  // ../configuration-core/src/secrets.ts
@@ -33089,6 +33102,15 @@ var CONFIG_SCHEMA = [
33089
33102
  // drained/reset, not just the file rewritten.
33090
33103
  manageCommand: "argent telemetry"
33091
33104
  },
33105
+ {
33106
+ key: "autoUpdate.enabled",
33107
+ description: "Automatically update the global Argent installation. Project-local installs require confirmation.",
33108
+ scopes: ["global"],
33109
+ parse: asBoolean,
33110
+ merge: "prioritize-local",
33111
+ default: true,
33112
+ example: "false"
33113
+ },
33092
33114
  {
33093
33115
  key: "lens.agent",
33094
33116
  description: "Coding-agent id remembered by `argent lens` to skip the picker.",
@@ -37987,11 +38009,15 @@ function formatWhatsNewNote(version2, highlights) {
37987
38009
  ].join("\n");
37988
38010
  }
37989
38011
  function takeWhatsNewNote(current) {
37990
- const seen = getWhatsNewSeenVersion();
37991
- if (!isNewerThanSeen(current, seen)) return void 0;
37992
- setWhatsNewSeenVersion(current);
37993
- const highlights = highlightsSince(seen, current);
37994
- return highlights.length > 0 ? formatWhatsNewNote(current, highlights) : void 0;
38012
+ let seen = getWhatsNewSeenVersion();
38013
+ while (isNewerThanSeen(current, seen)) {
38014
+ if (setWhatsNewSeenVersion(current, { ifSeen: seen })) {
38015
+ const highlights = highlightsSince(seen, current);
38016
+ return highlights.length > 0 ? formatWhatsNewNote(current, highlights) : void 0;
38017
+ }
38018
+ seen = getWhatsNewSeenVersion();
38019
+ }
38020
+ return void 0;
37995
38021
  }
37996
38022
 
37997
38023
  // ../argent-mcp/src/mcp-server.ts
@@ -38017,6 +38043,8 @@ async function startMcpServer(options) {
38017
38043
  const autoScreenshotOn = autoScreenshotEnabled();
38018
38044
  const autoDescribeOn = autoDescribeEnabled();
38019
38045
  const whatsNewOn = whatsNewEnabled();
38046
+ const installedVersion = getInstalledVersion();
38047
+ const highlightsVersion = true ? "0.35.1-next.5" : installedVersion;
38020
38048
  const captureTimeoutMs = options.captureTimeoutMs ?? CAPTURE_TIMEOUT_MS;
38021
38049
  const trees = createTreeMemory();
38022
38050
  const screenshots = createScreenshotMemory();
@@ -38183,14 +38211,14 @@ ${shown.text}` }];
38183
38211
  if (!whatsNewOn || whatsNewChecked) return [];
38184
38212
  whatsNewChecked = true;
38185
38213
  try {
38186
- const note = takeWhatsNewNote(getInstalledVersion());
38214
+ const note = takeWhatsNewNote(highlightsVersion);
38187
38215
  return note ? [{ type: "text", text: note }] : [];
38188
38216
  } catch {
38189
38217
  return [];
38190
38218
  }
38191
38219
  }
38192
38220
  const server = new Server(
38193
- { name: "argent", version: getInstalledVersion() },
38221
+ { name: "argent", version: installedVersion },
38194
38222
  {
38195
38223
  capabilities: { tools: {} },
38196
38224
  instructions: SERVER_INSTRUCTIONS