@swmansion/argent 0.34.1-next.1 → 0.34.1-next.10

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.
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.34.1-next.1",
3
+ "version": "0.34.1-next.10",
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",
package/rules/argent.md CHANGED
@@ -1,34 +1,17 @@
1
1
  ---
2
- description: Always-on Argent rules for driving, testing and profiling apps on simulators, emulators, phones, TVs and Chromium
2
+ description: What to do when this project uses Argent but Argent is not available in this environment
3
3
  alwaysApply: true
4
4
  ---
5
5
 
6
- Argent - general rules:
6
+ This project uses Argent, through its `argent` MCP server, to drive, test and profile apps on simulators, emulators, phones, TVs and Chromium. The server's own instructions carry the usage guidance.
7
7
 
8
- - do not derive tap coordinates from screenshot pixels; use inspection tools that give coordinates
9
- - use the platform the user named; otherwise prefer a device `list-devices` shows already running, and don't default to iOS; in a single-platform project boot that platform.
10
- - if tap fails twice, stop retrying and re-run a discovery tool
11
- - Prefer mcp-tool calls over raw commands like `xcrun` or `adb`; use them as fallback.
12
- - Interaction tools return screenshot and element tree automatically; an identical earlier tree is named by its tree id, not repeated.
13
- - prefer `launch-app` or `open-url` than tapping icons on home screen.
14
- - If a task can require a saved e2e test, load `argent-create-e2e` (`argent-qa-e2e` for acceptance tests) before the first launch or in-app action; recording is not retroactive.
15
- - Load the matching `argent-*` skill before React Native build/debug, profiling, a physical phone, a Mac app or a TV.
16
- - Do not stop simulator servers when a task finishes: the next task reuses them. Call `stop-all-simulator-servers` when the user asks to clean up or ends the session, or when a skill tells you to recycle a device's services, with devices this session used. One tool-server is shared by every other agent, so unscoped call tears down their devices too. Never stop a Metro the user started unless they ask.
17
- - Use the `await-ui-element` tool to block until the UI settles instead of polling using screenshot.
18
- - The `argent` CLI manages the toolkit: `argent --help` lists commands, `argent --version` shows the installed version.
8
+ Check once per session whether argent is available; do not re-probe before later calls:
19
9
 
20
- <availability_check>
21
- Run this check once per session. Do not re-probe before later calls.
22
- Confirm argent is available:
23
-
24
- 1. Are `mcp__argent__*` tools in your tool list? If none, argent is not available.
10
+ 1. Are argent tools (such as `mcp__argent__*`) in your tool list? If none, argent is not available.
25
11
  2. If unsure, run `command -v argent`. Non-zero exit = the CLI is not on PATH.
26
12
 
27
- If argent IS available, ignore the rest of this block and follow this rule normally.
13
+ If argent is available, ignore this rule.
28
14
 
29
- If argent is ABSENT, treat it as an expected state, not an error to retry. Do not call `mcp__argent__*` tools, do not run `argent` commands, do not attempt any argent workflow.
30
- Tell the user once, and ask if you should continue without argent:
15
+ If argent is absent, treat it as an expected state, not an error to retry. Do not call argent tools, run `argent` commands or attempt any argent workflow. Tell the user once, and ask if you should continue without argent:
31
16
 
32
17
  > Argent isn't installed in this environment. To enable the mobile/Chromium tooling this repo is configured for, run `npx @swmansion/argent@latest init -y` (or `npm i -g @swmansion/argent@latest && argent init -y`).
33
-
34
- </availability_check>