Repository navigation
Verify 0.8.0: validation and extract on Mac, local inference for apps inside an inference Mac, persistence guides - #69
Open
anamhira47 wants to merge 2 commits into
Open
anamhira47 wants to merge 2 commits into
anamhira47 wants to merge 2 commits into
Conversation
… inside it, persistence guides TypeScript 0.8.0, Python 0.6.0 and Go v0.7.0. - validation() and extract() run on a Mac opened with inference, on the Mac's own vision model; instruction() stays refused with a tap/type pointer. - iOS and Web sessions inside an inference Mac run their steps on that model first by default, with inference false to opt out. - extract() on every session, StepResult value and engine. - openPersistent inference / withoutInference, savedDiskExpiresAt. - Guides for Mac model checks, apps inside an inference Mac and persistent computers, runnable examples in all three languages. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…p the adapted computer test minimal Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Verify 0.8.0 (TypeScript 0.8.0, Python 0.6.0, Go v0.7.0). This lets a Revyl Mac's own vision model answer checks, so people get free inference through Revyl, and documents persistent computers.
Checks on a Mac's own model
validation()andextract()work on a Mac opened withinference: true(PythonTarget(platform="mac", inference=True), GoInference: new(true)). They post the computer's/stepsand are answered by the Mac's model, usually in 2 to 3 seconds, withengine: 'local'. You pay only Mac minutes.instruction()on computers is still refused. Its message now points totap({ target })andtype({ target }, text).computer.inferencereadsready,unavailableorunknown.step_engine_unavailablegivesNOT_AVAILABLE_ON_PLATFORM, and its message names the fix, including for persistent computers.step_engine_busyandscreen_control_heldgiveSESSION_BUSY.inference_not_enabledandinference_unavailableon create giveNOT_AVAILABLE_ON_PLATFORMwith that reason.Local inference for apps inside an inference Mac, on by default
computer.open()inside an inference Mac sendinference: 'local'. Their validations and single-tap instructions run on the Mac's model first, and everything else falls back to the hosted model.inference: falseopts a session out. Android withinference: trueis refused.computer_local_inference_unavailablenow givesNOT_AVAILABLE_ON_PLATFORMin TypeScript instead ofSESSION_BUSY"HTTP 409" (a bug found live).extract() everywhere
extract(text)works on every session.StepResultgainsvalueandengine.Persistent computers
inferenceoption (used at create only) andwithoutInferenceoption (sent only when true, because main's schema rejects unknown fields).savedDiskExpiresAtfield.Docs
packages/verify/docs/guides/: Mac model checks, apps inside an inference Mac, and persistent computers and snapshots. The persistence guide has use cases for a dev environment set up once, parallel copies from a snapshot, a browser that stays signed in, and a long-running agent workspace.(unreleased)sections.examples/mac-inference,python/examples/mac_inference.pyandgo/examples/macinference.check-package.mjsnow allowsdocs/guides/*.md.Tests
/steps. Python's release and wheel tests had their version strings bumped.go test -racepass.Live proof (staging, Revyl Benchmarks)
saveSnapshotand afromSnapshotcopy all worked, and the disk was kept each time.Not proven
inference_not_enabled, because the test org is allowlisted.withoutInferenceandstep_engine_busy.Publishing (npm, PyPI, the Go tag) is a separate maintainer step. The docs.revyl.com update is a separate draft PR, to merge after release.
Note
Medium Risk
Adds cross-SDK session routing, billing semantics (local vs hosted), and new refusal paths on Mac create and computer steps; mistakes could start wrong workloads or mis-handle concurrent steps on a shared Mac model.
Overview
Verify 0.8.0 (Go v0.7.0, Python 0.6.0) adds Mac-local vision checks, screen value extraction, and local-first steps for app sessions hosted inside an inference Mac, plus persistent-computer and billing-related options—backed by new guides, examples, and broad doc/README updates.
Mac inference:
open({ platform: 'mac', inference: true })creates Macs that runvalidation()andextract()via the computer/stepsAPI on the Mac's model (engine: 'local'), withsession.inferencereadiness and typed errors (inference_not_enabled,step_engine_unavailable,step_engine_busy, etc.).instruction()on computers remains blocked with clearer alternatives.Apps inside an inference Mac: iOS and Web children from
computer.open()default toinference: 'local'—validations and single-tap instructions try the Mac model first, then fall back to the hosted model;inference: falseopts out;computer_local_inference_unavailablemaps toNOT_AVAILABLE_ON_PLATFORM.extract()everywhere: New step type returnsStepResult.valueand optionalengine; rejected when using your own model on browser/device sessions.Persistent computers:
inferenceat create time, one-shotwithoutInference, andsavedDiskExpiresAton list types.Examples bumped to
@revyl/verify0.8.0; newexamples/mac-inference(and Go/Python counterparts).Reviewed by Cursor Bugbot for commit bce80c5. Bugbot is set up for automated code reviews on this repo. Configure here.