@swmansion/argent 0.35.1-next.27 → 0.35.1-next.29

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/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  <br/>
2
- <p align="center"><a href="https://argent.swmansion.com"><img width="1100" height="382" alt="argent-header" src="https://github.com/user-attachments/assets/6cec01d5-da3c-4b6c-97c3-0374a63c213c" /></a></p>
2
+
3
+ [![Argent](https://github.com/user-attachments/assets/6cec01d5-da3c-4b6c-97c3-0374a63c213c)](https://argent.swmansion.com)
3
4
 
4
5
  <p align="center"><b>English</b> | <a href="README.ja.md">日本語</a> | <a href="README.zh-CN.md">简体中文</a></p>
5
6
 
@@ -9,24 +10,24 @@
9
10
  [![Ad](https://swm-delivery.com/www/images/zone-gh-argent-2?n=1)](https://swm-delivery.com/www/delivery/ck-slug.php?zoneid=zone-gh-argent-2&n=1)
10
11
  [![Ad](https://swm-delivery.com/www/images/zone-gh-argent-3?n=1)](https://swm-delivery.com/www/delivery/ck-slug.php?zoneid=zone-gh-argent-3&n=1)
11
12
 
12
- **[Argent](https://argent.swmansion.com)** is an MCP server, CLI and agent skills that let AI coding agents (Claude Code, Codex, Cursor and others) control iOS simulators, Android emulators and devices, TVs (Apple TV, Android TV, Fire TV), Electron/Chromium apps and native Mac apps. Tap a button, profile a screen, reproduce a bug - without leaving the CLI.
13
+ **[Argent](https://argent.swmansion.com)** is an MCP server, a CLI, and a set of skills that let AI coding agents control apps and devices. Agents such as Claude Code, Codex, and Cursor can control iOS simulators and devices, Android emulators and devices, HarmonyOS devices, and TVs (Apple TV, Android TV, and Fire TV). They can also control Electron and Chromium apps and native Mac apps. Ask your agent to tap a button, profile a screen, or reproduce a bug.
13
14
 
14
15
  ```bash
15
16
  npx @swmansion/argent@latest init # pnpm: pnpm dlx @swmansion/argent@latest init
16
17
  ```
17
18
 
18
- <p align="center"><img src="https://github.com/software-mansion/argent/blob/main/assets/showcase.gif" alt="argent showcase video gif" width="100%" /></p>
19
+ ![Argent in action](assets/showcase.gif)
19
20
 
20
21
  ## What it does
21
22
 
22
- - **Interact** - tap, swipe, gesture, type, hardware buttons; D-pad on TV; mouse and keyboard on desktop.
23
- - **E2E** - record a path once as an e2e test, replay it deterministically as a repro or smoke test.
24
- - **Visual regression** - diff a baseline against a live capture, OCR- and font-aware.
25
- - **Profiling** - Hermes, React DevTools, Xcode Instruments, Perfetto: renders, CPU hotspots, hangs.
26
- - **Debugging** - logs, network (`XMLHttpRequest` incl. axios, `fetch` incl. Expo's, and native), JS evaluation, native and React trees.
27
- - **React Native** - build, launch and iterate, no extra setup.
23
+ - **Interaction:** Tap, swipe, pinch, rotate, type, and press hardware buttons. Use a D-pad on TVs or a mouse and keyboard in desktop apps.
24
+ - **End-to-end testing:** Record a sequence of actions once, then replay it deterministically to reproduce a bug or run a smoke test.
25
+ - **Visual regression:** Compare a screenshot with a stored baseline using OCR- and font-aware checks.
26
+ - **Profiling:** Inspect renders, find CPU hotspots, and diagnose hangs with Hermes, React DevTools, Xcode Instruments, and Perfetto.
27
+ - **Debugging:** Read logs, evaluate JavaScript, and inspect native and React component trees. Inspect native network traffic. For JavaScript requests, inspect calls made through `XMLHttpRequest` (including Axios) or `fetch` (including Expo’s implementation).
28
+ - **React Native:** Build, launch, and iterate on your app without extra setup.
28
29
 
29
- Ask your assistant _"What can Argent do?"_ to list every tool.
30
+ For a list of tools, ask your agent: “What can Argent do?”
30
31
 
31
32
  ## Documentation
32
33
 
@@ -34,14 +35,14 @@ Ask your assistant _"What can Argent do?"_ to list every tool.
34
35
 
35
36
  ## Privacy
36
37
 
37
- Telemetry is opt-out: `argent telemetry disable`. See the [Privacy Notice](https://github.com/software-mansion/argent/blob/main/Telemetry.md).
38
+ Telemetry is enabled by default. To turn it off, run `argent telemetry disable`. See the [Privacy Notice](Telemetry.md).
38
39
 
39
40
  ## License
40
41
 
41
- Argent uses a mixed licensing model. **Source code** is released under the [Apache License 2.0](LICENSE.txt). **Proprietary binaries** (the per-platform `bin/<platform>/simulator-server` and `bin/darwin/ax-service` executables and the `.dylib` files in `native-devtools-ios`) are the intellectual property of Software Mansion S.A. and are licensed solely for use within this project. Decompiling, reverse-engineering, or redistributing them without explicit written permission is prohibited. By using Argent, you acknowledge and agree to this structure. See [LICENSE](https://github.com/software-mansion/argent/blob/main/LICENSE.txt) for full details.
42
+ Argent uses a mixed licensing model. **Source code** is released under the [Apache License 2.0](LICENSE.txt). **Proprietary binaries** (the per-platform `bin/<platform>/simulator-server` and `bin/darwin/ax-service` executables and the `.dylib` files in `native-devtools-ios`) are the intellectual property of Software Mansion S.A. and are licensed solely for use within this project. Decompiling, reverse-engineering, or redistributing them without explicit written permission is prohibited. By using Argent, you acknowledge and agree to this structure. See [the license](LICENSE.txt) for full details.
42
43
 
43
44
  ## Argent is created by Software Mansion
44
45
 
45
- Since 2012 [Software Mansion](https://swmansion.com) is a software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues. We can help you build your next dream product – [Hire us](https://swmansion.com/contact/projects?utm_source=argent&utm_medium=readme).
46
+ Founded in 2012, [Software Mansion](https://swmansion.com) is a software agency with experience in building web and mobile apps. We are core React Native contributors and experts in dealing with all kinds of React Native issues. We can help you build your next dream product. [Hire us.](https://swmansion.com/contact/projects?utm_source=argent&utm_medium=readme)
46
47
 
47
- [![swm](https://logo.swmansion.com/logo?color=white&variant=desktop&width=150&tag=argent-github "Software Mansion")](https://swmansion.com)
48
+ [![Software Mansion](https://logo.swmansion.com/logo?color=white&variant=desktop&width=150&tag=argent-github "Software Mansion")](https://swmansion.com)
package/dist/cli-cmds.mjs CHANGED
@@ -38595,7 +38595,7 @@ function isCi(env = process.env) {
38595
38595
  var SESSION_ID2 = randomUUID5();
38596
38596
  function readCliVersion() {
38597
38597
  if (true) {
38598
- return "0.35.1-next.27";
38598
+ return "0.35.1-next.29";
38599
38599
  }
38600
38600
  return "0.0.0";
38601
38601
  }
@@ -176,7 +176,8 @@ export const INSTALLER_COMMAND_META = {
176
176
  "hung; Ctrl-C to quit.",
177
177
  "",
178
178
  "It takes no options and owns stdout, so diagnostics go to stderr. Calls are",
179
- "logged to ~/.argent/mcp-calls.log (override with ARGENT_MCP_LOG). Tools are",
179
+ "logged to ~/.argent/mcp-calls.log (override with ARGENT_MCP_LOG), readable",
180
+ "only by you; at 10 MiB the log moves to mcp-calls.log.1. Tools are",
180
181
  "served by the argent tool-server, spawned on demand unless ARGENT_TOOLS_URL",
181
182
  "or `argent link` points at one already running.",
182
183
  "",
@@ -1 +1 @@
1
- {"version":3,"file":"installer-help.js","sourceRoot":"","sources":["../src/installer-help.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,MAAM;IACN,SAAS;IACT,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,KAAK;CACG,CAAC;AAIX,MAAM,UAAU,kBAAkB,CAAC,OAA2B;IAC5D,OAAO,kBAAkB,CAAC,QAAQ,CAAC,OAA2B,CAAC,CAAC;AAClE,CAAC;AAED;;;;;;GAMG;AACH,SAAS,UAAU,CAAC,GAAW;IAC7B,MAAM,KAAK,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACvD,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AAClG,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAgD;IAC7E,IAAI,EAAE,CAAC,QAAQ,CAAC;IAChB,OAAO,EAAE,CAAC,QAAQ,CAAC;IACnB,MAAM,EAAE,CAAC,WAAW,EAAE,gBAAgB,CAAC;IACvC,SAAS,EAAE,EAAE;IACb,MAAM,EAAE,EAAE;IACV,gFAAgF;IAChF,GAAG,EAAE,E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CAAC;IAE7E,IAAI,IAAI,CAAC,KAAK;QAAE,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IAE9C,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QACjB,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,gBAAgB,IAAI,CAAC,OAAO,+BAA+B,CAAC,CAAC;IAC9E,CAAC;SAAM,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACnC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAClE,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;QAC3B,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YAClC,KAAK,CAAC,IAAI,CAAC,KAAK,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC;QACtE,CAAC;IACH,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,oDAAoD,EAAE,EAAE,CAAC,CAAC;IACzE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AAChC,CAAC"}
@@ -17117,7 +17117,7 @@ function isCi(env = process.env) {
17117
17117
  var SESSION_ID = randomUUID4();
17118
17118
  function readCliVersion() {
17119
17119
  if (true) {
17120
- return "0.35.1-next.27";
17120
+ return "0.35.1-next.29";
17121
17121
  }
17122
17122
  return "0.0.0";
17123
17123
  }
@@ -22307,8 +22307,7 @@ var require_semver2 = __commonJS({
22307
22307
  });
22308
22308
 
22309
22309
  // ../argent-mcp/src/mcp-server.ts
22310
- import { appendFile, mkdir as mkdir5 } from "node:fs/promises";
22311
- import { dirname as dirname10, join as join19 } from "node:path";
22310
+ import { join as join19 } from "node:path";
22312
22311
  import { setTimeout as sleep } from "node:timers/promises";
22313
22312
 
22314
22313
  // ../../node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
@@ -37988,6 +37987,94 @@ function createToolCaller(deps) {
37988
37987
  };
37989
37988
  }
37990
37989
 
37990
+ // ../argent-mcp/src/call-log.ts
37991
+ import {
37992
+ appendFileSync as appendFileSync2,
37993
+ chmodSync as chmodSync2,
37994
+ linkSync as linkSync2,
37995
+ mkdirSync as mkdirSync6,
37996
+ readFileSync as readFileSync8,
37997
+ renameSync as renameSync4,
37998
+ rmSync as rmSync3,
37999
+ statSync as statSync4
38000
+ } from "node:fs";
38001
+ import { appendFile } from "node:fs/promises";
38002
+ import { dirname as dirname10 } from "node:path";
38003
+ var CALL_LOG_MAX_BYTES = 10 * 1024 * 1024;
38004
+ var STAT_EVERY_BYTES = 1024 * 1024;
38005
+ function createCallLog(file, maxBytes = CALL_LOG_MAX_BYTES) {
38006
+ let dirReady = false;
38007
+ let checked = false;
38008
+ let estimate = 0;
38009
+ let sinceStat = 0;
38010
+ function check() {
38011
+ sinceStat = 0;
38012
+ estimate = 0;
38013
+ const st = statSync4(file, { throwIfNoEntry: false });
38014
+ if (!st) return;
38015
+ if (st.mode & 63) {
38016
+ try {
38017
+ chmodSync2(file, st.mode & 448);
38018
+ } catch {
38019
+ }
38020
+ }
38021
+ if (st.size < maxBytes) {
38022
+ estimate = st.size;
38023
+ return;
38024
+ }
38025
+ rotate(file, st);
38026
+ }
38027
+ return async function write(entry) {
38028
+ try {
38029
+ if (!dirReady) {
38030
+ mkdirSync6(dirname10(file), { recursive: true, mode: 448 });
38031
+ dirReady = true;
38032
+ }
38033
+ if (!checked || estimate >= maxBytes || sinceStat >= STAT_EVERY_BYTES) {
38034
+ checked = true;
38035
+ check();
38036
+ }
38037
+ const line = JSON.stringify(entry) + "\n";
38038
+ const bytes = Buffer.byteLength(line);
38039
+ estimate += bytes;
38040
+ sinceStat += bytes;
38041
+ await appendFile(file, line, { mode: 384 });
38042
+ } catch {
38043
+ }
38044
+ };
38045
+ }
38046
+ function rotate(file, measured) {
38047
+ const aside = `${file}.${process.pid}.rotating`;
38048
+ try {
38049
+ renameSync4(file, aside);
38050
+ } catch {
38051
+ return;
38052
+ }
38053
+ let moved;
38054
+ try {
38055
+ moved = statSync4(aside);
38056
+ } catch {
38057
+ return;
38058
+ }
38059
+ if (moved.ino === measured.ino && moved.dev === measured.dev) {
38060
+ try {
38061
+ renameSync4(aside, `${file}.1`);
38062
+ } catch {
38063
+ }
38064
+ return;
38065
+ }
38066
+ try {
38067
+ linkSync2(aside, file);
38068
+ } catch {
38069
+ try {
38070
+ appendFileSync2(file, readFileSync8(aside), { mode: 384 });
38071
+ } catch {
38072
+ return;
38073
+ }
38074
+ }
38075
+ rmSync3(aside, { force: true });
38076
+ }
38077
+
37991
38078
  // ../argent-mcp/src/whats-new.ts
37992
38079
  var import_semver = __toESM(require_semver2(), 1);
37993
38080
 
@@ -38067,7 +38154,7 @@ async function startMcpServer(options) {
38067
38154
  const autoDescribeOn = autoDescribeEnabled();
38068
38155
  const whatsNewOn = whatsNewEnabled();
38069
38156
  const installedVersion = getInstalledVersion();
38070
- const highlightsVersion = true ? "0.35.1-next.27" : installedVersion;
38157
+ const highlightsVersion = true ? "0.35.1-next.29" : installedVersion;
38071
38158
  const captureTimeoutMs = options.captureTimeoutMs ?? CAPTURE_TIMEOUT_MS;
38072
38159
  const trees = createTreeMemory();
38073
38160
  const screenshots = createScreenshotMemory();
@@ -38113,17 +38200,7 @@ async function startMcpServer(options) {
38113
38200
  return reconnectPromise;
38114
38201
  }
38115
38202
  const LOG_FILE2 = process.env.ARGENT_MCP_LOG ?? join19(argentHomeDir(), "mcp-calls.log");
38116
- let logDirReady = false;
38117
- async function spyLog(entry) {
38118
- try {
38119
- if (!logDirReady) {
38120
- await mkdir5(dirname10(LOG_FILE2), { recursive: true });
38121
- logDirReady = true;
38122
- }
38123
- await appendFile(LOG_FILE2, JSON.stringify(entry) + "\n");
38124
- } catch {
38125
- }
38126
- }
38203
+ const spyLog = createCallLog(LOG_FILE2);
38127
38204
  const { fetchTools, callTool } = createToolCaller({
38128
38205
  getHandle: () => ({ url: TOOLS_URL, token: AUTH_TOKEN }),
38129
38206
  remote,
@@ -72978,7 +72978,7 @@ function isCi(env = process.env) {
72978
72978
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
72979
72979
  function readCliVersion() {
72980
72980
  if (true) {
72981
- return "0.35.1-next.27";
72981
+ return "0.35.1-next.29";
72982
72982
  }
72983
72983
  return "0.0.0";
72984
72984
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.35.1-next.27",
3
+ "version": "0.35.1-next.29",
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": "2b58f7c9e4b3abff43bf095f12129fdf78d7dde0"
101
+ "gitHead": "4b0828589dbaafc8500b7b3c533a5b91bb26bac0"
102
102
  }