@swmansion/argent 0.35.1-next.3 → 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.
- package/dist/cli-cmds.mjs +29 -15
- package/dist/client.js +10 -0
- package/dist/installer.mjs +362 -162
- package/dist/mcp-server.mjs +36 -8
- package/dist/tool-args.generated.d.ts +2 -0
- package/dist/tool-server.cjs +96972 -96870
- package/package.json +2 -2
package/dist/mcp-server.mjs
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
37991
|
-
|
|
37992
|
-
|
|
37993
|
-
|
|
37994
|
-
|
|
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(
|
|
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:
|
|
38221
|
+
{ name: "argent", version: installedVersion },
|
|
38194
38222
|
{
|
|
38195
38223
|
capabilities: { tools: {} },
|
|
38196
38224
|
instructions: SERVER_INSTRUCTIONS
|
|
@@ -95,6 +95,8 @@ export interface ArgentToolArgs {
|
|
|
95
95
|
readOnly?: boolean;
|
|
96
96
|
/** Android only: the emulator's console port, an even number from 5554 to 5584 (`emulator -port`), the range adb finds emulators in; its serial is `emulator-<port>`. Without it the emulator takes the first free port from 5554 up, as Android Studio does. The gRPC server Argent needs for screenshots and gestures goes on the port plus 3000, which must be free too. Given a port, the tool reuses only the emulator on that port and fails if another emulator holds it, or if this AVD runs there writable on a read-only boot and `force` is not set. A read-only emulator started with `-port` belongs to the calls that give that port: a call without `port` never reuses or shuts it down. Where the process list cannot be read (Windows, or a failed `ps`), Argent knows only the pinned emulators it booted itself, so a writable call without `port` can reuse, or with `force` shut down, one that someone else pinned. A writable one is still reused, or with `force` shut down, by a writable call without `port`, since the AVD runs one writable emulator at a time. `force` shuts nothing down when another emulator of the AVD would still block the boot. Ignored on other platforms. */
|
|
97
97
|
port?: number;
|
|
98
|
+
/** Local iOS simulator only: apply accessibility preferences and leave the simulator shut down for a pool manager to boot. Requires Shutdown state. Cannot be combined with force: true. */
|
|
99
|
+
prepareOnly?: boolean;
|
|
98
100
|
/** iOS only: boot the simulator core WITHOUT opening its GUI window (Simulator.app, or Device Hub on Xcode 27+). The device still streams via simulator-server. The `ARGENT_SIMULATOR_NO_WINDOW` env var (1/true/yes) forces this host-wide. */
|
|
99
101
|
headless?: boolean;
|
|
100
102
|
/** Electron: path to the Electron app to launch. Either a packaged .app bundle / executable, or a project directory whose package.json points the Electron binary at the entry script. */
|