Repository navigation
feat!: delete templates/ and template block routes (CL-8156) - #762
Merged
Merged
Conversation
CL-7384 split CONNECTOR_REGISTRY and MCP_PRESETS out into templates/connectors.ts so the connections package stayed a pure generic library. CL-8156 deletes templates/ entirely, so this data comes back to its one remaining home: packages/connections/src/registry.ts and mcp-presets.ts. Claude-Session: https://claude.ai/code/session_01RweuMUskU2nvcFhdckc7EG
The on-demand workflow-deploy route under apps/hub/src/templates/ was never actually workbench-template-specific (CL-7073 generalized it to any workflows/* package) -- the routines page's "Available" section drives it independently of workbench templates. Rename the module and its mount out of the deleted templates/ naming: createTemplateBlockRoutes -> createCatalogBlockRoutes, POST /template-blocks/:assetName/deploy -> POST /catalog-blocks/:assetName/deploy. Claude-Session: https://claude.ai/code/session_01RweuMUskU2nvcFhdckc7EG
createTemplateLibraryRoutes/seedTemplateLibrary were never mounted in apps/hub and had no remaining caller outside this package once CL-8156 deletes workbench template picking -- dead code, not a migration. Claude-Session: https://claude.ai/code/session_01RweuMUskU2nvcFhdckc7EG
The install-template step, its Target.installTemplate capability, and the github-pr-review-factory case that drove it all rode the workbench-template instantiation path CL-8156 deletes. Deleted rather than ported: the underlying code-review reviewer roster and workflow still deploy natively (agent-directory create + the catalog-blocks route), just never through a "kind of workbench" bundle. Claude-Session: https://claude.ai/code/session_01RweuMUskU2nvcFhdckc7EG
…lain tenant + Myra
Deletes the template-picker feature entirely: workbench-templates.ts,
workbench-templates-api.ts, the prefab card grid and library read in
new-workbench-picker.tsx, and createWorkbenchFromTemplate's
instantiation path in instant-agent-create.ts (now just createWorkbench:
mint a blank room, optionally invite selected agents, send an opening
message). The picker keeps its prompt box, agent picker, and empty-
channel button -- the readiness gate (Myra must be deployed before a
room can invite anyone) is unchanged.
@corbits/chat-ui's Jimmy quick-create row now builds its create-agent
request straight off @corbits/jimmy-agent/metadata instead of through
the deleted @workbench/templates barrel.
Every other @workbench/templates import (WORKFLOW_CATALOG,
CONNECTOR_REGISTRY, MCP_PRESETS, ...) is repointed at its native home:
@corbits/workflows/catalog and @corbits/connections/{registry,mcp-presets}.
Claude-Session: https://claude.ai/code/session_01RweuMUskU2nvcFhdckc7EG
Deletes the workspace: the three shipped WorkbenchDefinition bundles
(code-review, gtm, due-diligence), instantiate.ts, settings.ts (already
a re-export of @corbits/connections/template-settings),
participant-agent-requests.ts, and connectors.ts (moved to
@corbits/connections in the prior commit).
Every remaining importer (agent-directory, connections-tools,
connections, onboarding, plugins-ui, settings-ui, workflows,
workflows/assistant) is repointed at the native homes this data always
belonged to: @corbits/workflows/catalog for WORKFLOW_CATALOG and its
helpers, @corbits/connections/{registry,mcp-presets} for
CONNECTOR_REGISTRY/MCP_PRESETS. connections-tools bumps its version
(0.0.9 -> 0.0.10) for the comment-only src/ touch; the browser
walkthrough script's create-workbench flow drives the trimmed picker
(no prefab grid). report-error-baseline.txt regenerated: the two
stale entries under the deleted templates/ and template-library.ts
paths are gone.
Claude-Session: https://claude.ai/code/session_01RweuMUskU2nvcFhdckc7EG
Comment-only cleanup in code-review/README.md, workflows/README.md, and chat-ui's connect-github-actions.ts left over from the templates/ deletion. Claude-Session: https://claude.ai/code/session_01RweuMUskU2nvcFhdckc7EG
TheGreatAxios
force-pushed
the
cl-8156-delete-templates
branch
from
September 17, 2026 17:34
521e911 to
e157016
Compare
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.
Summary
Owner ruling: get rid of
templates/and anything that says routes -- fully on native workflows. A new workbench is a plain tenant + Myra (CL-8154's converge path).What changed
Deleted:
templates/(@workbench/templates): the three shippedWorkbenchDefinitionbundles (code-review, gtm, due-diligence),instantiate.ts,settings.ts,participant-agent-requests.ts.apps/web's template-picker feature:workbench-templates.ts,workbench-templates-api.ts, the prefab card grid + library read innew-workbench-picker.tsx, andinstant-agent-create.ts'screateWorkbenchFromTemplateinstantiation path (now justcreateWorkbench: mint a blank room, invite selected agents, send an opening message).packages/artifacts-hub/src/template-library.ts-- dead code (never mounted inapps/hub, no remaining caller).install-templateeval step/capability and thegithub-pr-review-factoryeval case that drove it.Renamed (kept -- real, unrelated functionality):
apps/hub/src/templates/template-block-routes.ts->apps/hub/src/catalog-blocks/catalog-block-routes.ts. This route (POST /template-blocks/:assetName/deploy) is not workbench-template-specific -- CL-7073 generalized it to deploy anyworkflows/*catalog package on demand, and the Routines page's "Available" section depends on it independently of the template picker. Renamed the module/mount away from "templates" naming (createCatalogBlockRoutes,POST /catalog-blocks/:assetName/deploy) rather than deleted;apps/web'sroutines-api.tsgaineddeployCatalogBlockto replace the deletedworkbench-templates-api.ts'sdeployWorkbenchTemplateBlock.Moved home:
CONNECTOR_REGISTRYandMCP_PRESETS(templates/connectors.ts) folded back intopackages/connections/src/registry.tsandmcp-presets.ts-- CL-7384 had split them out into the template package; with that package gone, they live back where every real consumer (plugins-ui, connections-tools, onboarding, settings-ui, connect-service-actions, plugins-page, the hub) can import them from@corbits/connections/registry/@corbits/connections/mcp-presets.@corbits/chat-ui'sJIMMY_QUICK_CREATE) now builds straight off@corbits/jimmy-agent/metadatainstead of through the deleted template barrel.WORKFLOW_CATALOGand its helpers repointed at@corbits/workflows/catalogeverywhere (client-bootstrap.ts,myra-workbench.ts, agent-directory, onboarding, settings-ui, workflows/assistant tests).Importer -> action table
apps/web/src/client-bootstrap.ts,myra-workbench.tsWORKFLOW_CATALOG->@corbits/workflows/catalogapps/web/src/connect-service-actions.ts,pages/plugins-page.tsx,shell/provider-health-banner.tsx@corbits/connections/{registry,mcp-presets}apps/web/src/instant-agent-create.tscreateWorkbench(blank mint only)apps/web/src/pages/new-workbench-picker.tsxapps/web/src/workbench-templates{,-api}.tsapps/web/src/pages/routines-page.tsx,routines-api.tsdeployWorkbenchTemplateBlock-> newdeployCatalogBlockagainst the renamed hub routepackages/agent-directory/*@corbits/workflows/catalogpackages/artifacts-hub/src/template-library.tspackages/chat-ui/src/api.tsJIMMY_QUICK_CREATEbuilt from@corbits/jimmy-agent/metadatapackages/code-review(chat)packages/connections-tools,packages/connections/src/routes.tspackages/evalsinstall-templatestep +github-pr-review-factorycase deletedpackages/onboarding/*packages/plugins-ui/*,packages/settings-ui/*@corbits/connections/*packages/workflows,workflows/assistantapps/hub/src/templates/template-block-routes.tsapps/hub/src/catalog-blocks/catalog-block-routes.ts(kept, generic)scripts/e2e/browser/walkthrough.tsFeatures deleted from the UI
/newand their onboarding walkthrough (connect-github card post, pending-connections settings patch) via the template path.GET /library/templates) on the picker.Left alone
packages/chat(connect-pending.tscomment mentions only) -- another agent is deleting this package entirely (T5c); did not touch it.apps/web/src/pages/onboarding-page.tsxandapps/web/src/myra-source.ts-- explicitly out of scope (concurrent Myra-deploy-input work).Test plan
bun run typecheck-- clean except two pre-existing unrelated failures (@corbits/chat/blocks/@corbits/chat/partsmodule resolution inpackages/chat-ui/test/*, last touched by an unrelated commit)bun run lint-- clean except the 3 pre-existing unused-var errors inapps/hub/src/index.tsbun run check:structural-- all green, report-error baseline regeneratedbun --cwd apps/web test-- 884 pass, 0 failbun run test(full monorepo) -- all greenhttps://claude.ai/code/session_01RweuMUskU2nvcFhdckc7EG