feat(mastra): add Linux Fleet computer-use provider - #3642
Closed
f-trycua wants to merge 4 commits into
Closed
Conversation
This was referenced Sep 8, 2026
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.
Superseded by the upstream Mastra integration: mastra-ai/mastra#23284. Further provider development belongs in that PR; this standalone prototype will not be published.
Adds
@trycua/mastra, an unpublished ESM provider that gives a concrete Mastra workspace an isolated Linux desktop from an existing Cua Fleet pool. The provider uses published@trycua/fleet@0.1.1directly and implements Mastra 1.62.0's computer capability.Behavior
Validation
Final draft head:
a7be92776. Provider implementation is unchanged from937b744ef.Agent.generatetool execution.Agent.generatewith a scripted LanguageModelV2 fixture completed five steps against a Linux Chromium kiosk page. The agent used screenshots, clicks, and typing; an independent guest command verified the exact submitted value. Before/after screenshots were visually inspected locally.8879a5dddwith its owned pool reconciled from one to two slots during the run. Final commita7be92776only makes that two-slot capacity explicit at creation and updates the example description; provider code and verification assertions are unchanged. The final creation-time two-slot variant has not been separately rerun live.Known gaps and delivery stage
This remains a draft. The cloud run proves real Mastra orchestration and desktop I/O with scripted decisions; an autonomous vision-model run is not yet certified. Live coverage of every gesture remains uncertified; screenshots, clicks, typing, and simultaneous session isolation have live evidence. No npm publication or merge is requested by this PR's current delivery stage.
The example provisions two billable Fleet slots (4 CPU / 4 GiB each). One-hour TTLs are fallback deadlines, not cost caps. Unconfirmed namespace reservation requires manual ownership verification; cleanup does not infer ownership from an ambiguous response.
Refs #3640.