feat(web,myra): Deploy button for a package Myra sends as a mail attachment (CL-8474) - #898
Merged
Merged
Conversation
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.
Agents never call the hub, so creating an agent is: Myra writes the package, the person presses Deploy.
Attachment contract
A reply carrying two attachments is a deployable package:
package.json— the manifest (presence is the marker)definition.json—{ "name": string, "systemPrompt": string, "description"?: string }The client renders the source tree and deploys it through the existing pipeline (
agent-deploy.ts→ asset, git push,POST /workflows/deployments), the same pathcreate-agent-paneluses — so Myra never needs to know the deploy shape.Changes
chat/threads-api.ts:frameAttachmentsparses named MIME leaves out of the raw frame (name, contentType, base64-decoded text) onto chat and room turn models.chat/deployable-package.ts: arktype-parses the two attachments into{name, systemPrompt, description?}, or null.chat/message-attachments.tsx: a compact "Deploy " card with the deploy mutation, success link to the new agent's chat, and the error inline; non-deployable attachments render as a plain file list.useDeployAgentMutationadditionally invalidates visible agents and room participants.Nothing added on the hub.
Verified
bunx tsc -p apps/web --noEmit,bun run typecheck,bun run lint,bun run fmt,apps/webbuild +bun test ./src(582 pass),agents/myrabuild.Not verified: no live run against the hub — the deploy path itself is unchanged and already covered by the create-agent panel; the MIME attachment parse was not exercised against a real
@intx/tools-mailframe.