Skip to content

feat(web): created agents deploy the bundled entry with Myra's tools (CL-8578) - #927

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-8578-created-agents-bundle
Sep 18, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-8578-created-agents-bundle

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

  • Created agents were deploying a JSON-only source tree with toolFactories: [], so they launched with no tools at all.
  • Myra's bundle (agents/myra/src/index.ts's buildMyraWorkflow) is generalized to build any agent's definition, keyed by a required workflowId, so created agents can share it.

Changes

  • MyraWorkflowInput gains a required workflowId; Myra's own deploy passes ASSISTANT_WORKFLOW_ID.
  • pushAgentSource in apps/web/src/agent-deploy.ts now renders the same bundled source tree Myra deploys (renderBundledWorkflowSourceTree), using the agent's slug as workflowId, its system prompt, trigger address, and the offering's declared sources. buildAgentDefinitionJson still produces the JSON projection written beside the entry.
  • Deleted renderWorkflowSourceTree now that nothing renders the JSON-only shape; its tests were switched to exercise renderBundledWorkflowSourceTree instead, which covers the same tree-shape guarantees.
  • Added a unit test pinning that buildAgentDefinitionJson's projection and the bundle's build input agree on id, prompt, and trigger address.

Testing

  • bun test agents/myra/src/definition.test.ts apps/web/src/agent-deploy.test.ts packages/workflows/src/source.test.ts packages/workflows/src/validate-push.test.ts
  • bun run check

Adds workflowId to buildMyraWorkflow's test input ahead of making it
required, and switches the renderer tests off renderWorkflowSourceTree
ahead of its removal.
…(CL-8578)

buildMyraWorkflow now takes a required workflowId, so the same bundle
Myra deploys can build any agent's definition. Created agents push that
bundled tree instead of a JSON-only one, so they carry the mail and
posix tool factories Myra carries instead of none. Drops
renderWorkflowSourceTree now that nothing renders the JSON-only shape.
@linear-code

linear-code Bot commented Sep 18, 2026

Copy link
Copy Markdown

CL-8578

@TheGreatAxios
TheGreatAxios merged commit e53b575 into main Sep 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant