Repository navigation
improvement(workflow-code): one primer for coding agents and mothership, pre-installed typescript - #10449
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
[Medium impact] The PR appears safe to merge; no blocking issue remains. SummaryThis PR gives coding agents and Mothership separate edit loops built from one shared primer. It also:
Both earlier findings are addressed: chat deploy commands include
|
There was a problem hiding this comment.
All reported issues were addressed across 26 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 27 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…ip, pre-installed TypeScript - source-primer: a cli/chat surface; the chat primer stops the shell loop at apply and tests and deploys through sim_cli, with no workspace source or --run; print-source-primers emits chat.workflow - the CLI serves the chat primer and source help where its host is Mothership: SIM_CLI_HOST=mothership in the workbench env (sandbox-session) or host on runEmbeddedCli (sim_cli) - command inventory: workspaces source check is mothershipUnavailable with the rest of its group - source check reads the pinned TypeScript from SIM_TYPESCRIPT_DIR before installing it, and a failed check ends stderr with its first error
…IM_TYPESCRIPT_DIR, drop ./host from the published manifest
…te table commands in the chat help
0b331c7 to
ca491cc
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
Sim now owns the source primer Mothership reads, so the worker can drop its string rewrite of it, and Mothership's sandbox no longer has to install TypeScript on the first
source check.sourcePrimer(kind, surface)takescli(a coding agent with its own shell) orchat(Mothership). Everything else is shared; only the edit loop and the rootAGENTS.mdpointer differ. The chat loop runscheck && applyin run_code's shell, then tests the draft (workflows run <id> --dry --input … --dir <dir>) and deploys (workflows deploy <id>) through sim_cli. It never mentions--runor workspace source. Both surfaces state the table rule: change columns before the get. Every primer stays under the 4096-byte budget (cli 3991, chat 4094, workspace 3947), and the primer tests now cover each surface.print-source-primers.tskeepsworkflowandworkspaceand addschat.workflow.buildMothershipSandboxSessionsetsSIM_CLI_HOST=mothership. For sim_cli,runClipasseshost: 'mothership'torunEmbeddedCli. An embedded run never reads the server's env. In either case,source get/createwrite the chat primer and pointer, andworkflows source --helpshows the chat loop. The constants live in a new import-freesim/hostsubpath.workspaces source checkcalls no operation Sim refuses, but it only checks a directory that the refusedworkspaces source getwrites. It is nowmothershipUnavailable. Rule: a--dircommand in a group whosegetis refused.source checklooks for the pinned release inSIM_TYPESCRIPT_DIR(<dir>/<version>/node_modules/typescript, the same layout as the cache) before installing into the cache, and never writes to that directory. A failed check now ends stderr withError: <file:line:col> error <CODE>: <message>for its first error, so the install notice or a warning can no longer become the headline.Worker follow-up (separate PR): sync
chat.workflowverbatim and deletechatPrimer. Delete theworkspaces sourceblock-list entry. Baketypescript@<pin>into the sandbox image under a directory and setSIM_TYPESCRIPT_DIRto it in the workbench bootstrap.Type of Change
Testing
workspaces source check).Checklist