rea-ci-tests-audit
MOmorluto/rea486k近 7 天新增 8,943 个 star
Open an app's Revyl Atlas map or a live cloud session from Claude, start and stop a device, browser, or Mac computer session, act on or check it, drive a Mac computer, get a stopped session's recording, follow the build a pull request produced, build an app from its linked GitHub repository, list, run and read saved tests and workflows, create or change a test, explore an app, answer from or compare its Atlas, share its map, or check GitLab, for work the user explicitly asked for, through the connected Revyl workspace tools.
Use the connected revyl-workspace tools. Check which tools are actually
available; never invent a tool or fall back to a shell command. If the
connection is missing or expired, ask the user to sign in to Revyl through
Claude's connector flow. Never request API keys, passwords, or login codes in
chat.
Call list_apps to resolve an app the user names to its app_id. Filter with
platform or search when the list is long. If several apps match, ask which
one; never guess an ID or put a URL in an ID field.
open_revyl_workspace with view="atlas" and the resolved
app_id. With no app selected, empty arguments open the Atlas app picker.list_device_sessions, then call
open_revyl_workspace with view="device" and its session_id. With no
session selected, the device view opens the session list; it does not start
a device. If several sessions match, ask which one.The tool returns workspace_url. Claude may not show the embedded Atlas or
device view, so always give the user workspace_url as a link to open the
view in their browser, and do not claim you can see it.
A session uses the user's device time. Call start_device_session only when
the user asks for one, with an explicit platform:
ios or android for a cloud device. Pass the app's app_id (installs its
default build) or, for an exact build, a build_id from list_builds,
get_build, or the latest_build_id that list_apps returned.web for a cloud browser on a Web app. app_id is required; build_id
picks an exact build.macos for a bare cloud Mac computer, with no app. Claude does not show
its screen: give the user the returned computer_url to watch and
control it in Revyl. Computers must be enabled for the organization; if the
result says they are not, pass that on rather than retrying.Record the returned session ID and reuse it. Claude may not show the embedded
live view, so give the user the returned viewer_url as a link to watch and
control the device or browser in their browser; do not start another session to retry rendering. If
startup is ambiguous, check list_device_sessions before considering another
start.
Use screenshot with the session_id to see the current screen, and inspect
the image before describing it.
Revyl builds a pull request after each push when the Revyl project for its
repository has pull-request builds set up; other builds come from uploads,
remote builds made outside this connection, and start_build.
list_builds with the app's app_id and the pull request's head
branch as branch. Queued and running builds come first, then the newest;
each says its status, commit, pr_number and source.get_build, passing its id and
wait_seconds (at most 45), and call it again while it is queued or
running. Builds usually take several minutes; tell the user it is still
building rather than waiting silently. A failed build carries a short
failure_reason; pass it on instead of retrying.ready_for_device_session is true, start the session the user asked
for with start_device_session and that build's build_id, so it runs
exactly the build you followed.start_device_session also takes branch with app_id to install that
branch's newest completed build; build_id wins when both are given. A branch
with no completed build starts nothing and never falls back to another branch:
check it with list_builds. If no build exists for the branch, say so and
explain that pull-request builds must be set up for the project. When
list_apps or list_builds finds nothing to run, relay the next steps its
message gives: upload a build in the dashboard, build or upload one with the
Revyl CLI or dev-loop plugin, or finish GitHub setup for pull-request preview
builds.
When a message says the organization has no GitHub connection, offer to
connect it, and call connect_github only after the user agrees: it records a
GitHub App install request and returns an install_url. Give the user that
link to open themselves; it is a single-use install link for their
organization, so present it as a link, not as a token, and do not share it
elsewhere. Once they have installed the app, call connect_github again to
check. When GitHub is already connected it returns status and no link; relay
its next step, such as Connect repository under the app's App settings > Build profiles, without
inventing a link.
When the user asks about GitLab, call connect_gitlab. It changes nothing: it
reports whether the organization has connected GitLab and returns
settings_url, where an organization owner or admin connects it with a GitLab
automation token. Never ask for a GitLab token in this conversation; relay its
message and link instead.
start_build builds an app in the cloud from the GitHub repository linked to
it in Revyl, at the newest pushed commit of branch (the repository's default
branch when omitted), and uses the organization's build minutes. Call it only
when the user asks for a build, once per commit, and pass profile when the
result asks which build profile to use. It builds only what is pushed to
GitHub, so say so when the user's latest edits may not be pushed. It returns at
once with build_job_id: follow it with get_build as above, passing
build_job_id as id, and start a
session on its build_id only if the user asked for one. When that commit is
already building with the same profile, it returns that build with
outcome="already_building" instead of starting another.
Any other outcome, such as github_not_connected or
repository_not_linked, means nothing started: relay the result's message,
which says what to set up, and offer the newest existing build. The
list_apps and list_builds messages also say when GitHub setup is missing
even though builds exist, because those builds may not include the user's
latest changes; pass that on too. When a build start is refused for billing,
pass on the error as written and do not retry it.
cancel_build cancels one queued or running build by its id; call it only
when the user asks to stop that build.
list_tests lists the organization's saved tests, or with kind="workflows"
its saved workflows, each with its last run's status and report_url; filter
tests by app_id or either by name with search. get_test reads one test,
with its steps as test YAML, its version and its newest runs, or one
workflow with its tests and newest runs. Both start nothing. To answer how a
test did last, read its runs here and call get_run on the one the user means.
A run uses device time for a few minutes per test, so call run_test only
when the user asks for a run, with exactly one test_id or workflow_id.
Pass build_id from list_builds or get_build to run an exact build, or
branch for a branch's newest build, such as a pull request's head branch;
without either, each test runs the build it has saved. device_model and
os_version choose a test's device. A test run owns its device: never start a
device session for it, and never retry a start that was refused for billing.
run_test returns a run_id at once. Follow it with get_run, passing
wait_seconds (at most 45), and call again while finished is false; tell
the user it is still running rather than waiting silently. A queued run is not
a passing test. For a failed test run, failed_step names the step, its
reason in the Revyl agent's words, and whether the screen at that step is
attached as an image; describe that screen only if you can see the image. A
workflow run lists its tests' runs, failures first: call get_run with a
failed test's run_id for its failing step. Always give the user
report_url. Call cancel_run only when the user asks to stop a run.
A saved test is shared with the organization, so call create_test only
when the user asks for a new test, with the app's app_id, a name, and
exactly one source of steps:
steps: plain-language steps in order, each an instruction (an action,
such as "tap Sign in") or a validation (a check of the screen, such as
"the cart shows 2 items").yaml: a test YAML document. Check it first with validate_test, which
saves nothing, and fix each issue it lists.from_session_id: a device session the user drove, whose recorded steps
become the test. When the result says compiling, call create_test again
with the same app_id and name and the compile_job_id it returned.To change a test's steps, call update_test only when the user asks, with
new steps or the YAML get_test returned with your edits, and that
result's version as expected_version. It replaces all of the test's
steps as one new version. When it says the test changed since that version,
read the test again with get_test and show the user the difference before
saving again. No tool deletes a test or a workflow; send the user to Revyl for
that.
On a running iOS, Android or Web session, device_instruction carries out one
plain-language step, such as "tap Sign in and enter the test account", and
device_validation checks one statement against the screen, such as "the cart
shows 2 items". Run them only for work the user asked for, one step per call,
with the session's session_id. A result with status="running" carries a
step_id: wait for it with get_device_step instead of sending the step
again. Treat passed=false or a missing passed as not done or not
verified, and pass on reason. Take a screenshot to show the screen after
an instruction.
device_instruction and device_validation do not run on a Mac computer
session. Use computer_action for one click, typing, key press, scroll,
pointer move or drag at a time, with the computer's session_id. Click with
target describing what to click, such as "the Save button", or with x and
y in the pixels of the screen_width and screen_height a result
reports. Each result shows the screen just after the action: look at it before
the next action, and never repeat an action that may already have happened.
Check an outcome by looking at that screen or a screenshot, and say what you
saw rather than claiming a check passed. Act only for work the user asked for,
and avoid purchases, messages, deletions, or other externally visible actions
unless the user asked for that particular one.
After a session stops, get_session_recording with its session_id reports
recording_status, the recording's length, its steps placed on the
recording, and session_url, where the signed-in user watches or downloads
it in Revyl. When it is pending, the recording is still being saved: call it
again in a minute. It never returns the recording's own link, so give the user
session_url and do not ask for a download link.
start_exploration sends explorer agents through an app, each on its own
cloud device for several minutes, and adds the screens they find to Atlas.
Start one only when the user asks, with one explorer unless they ask for more
(at most three), and pass focus when they name an area. It returns at once:
say it is running, and check it with get_exploration when the user asks or
after a few minutes. Cancel an exploration with cancel_exploration only when
the user asks. When it finishes, share its atlas_url or open its Atlas with
open_revyl_workspace.
atlas_graph summarizes an app's screens and flows, and atlas_search finds
screens by name or description. Both start nothing. Use them to answer how the
app works before starting a device, and link the atlas_url they return.
atlas_diff compares what Atlas observed on two builds of an app, such as a
release and a pull request's build, with base_build_id and
compare_build_id from list_builds. A screen or move listed on one side
was observed on that build and not the other, not necessarily added or
removed; when complete is false, say one map was too large to read whole.
share_atlas creates a public, read-only link anyone can open to view an
app's Atlas map. Call it only when the user asks to share the map, give the
link only to them, and say when it expires.
When the requested work is done, stop only the sessions you started with
stop_device_session(session_id=...). It waits for the session to end; when
the result still says stopped: false, call it once more with the same
session_id, then report whether the session ended or is still stopping.
Do not create or change tests except as the user asked above, start or cancel builds only as above, and do not change or share workflows or reports; create an Atlas share link only when the user asks for one. Reading builds, tests and runs changes nothing. Keep signed URLs, credentials, and customer content out of public artifacts.
MOmorluto/rea486k近 7 天新增 8,943 个 star
MOmorluto/rea486k近 7 天新增 8,943 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star