Repository navigation
Move bench templates to templates/ and retire workflow-catalog (CL-7373) - #576
Merged
Merged
Conversation
…s (CL-7373) Templates (WorkbenchDefinition data, instantiation, and the template/* settings vocabulary) move from packages/workflow-catalog into a root templates/ package, one directory per shipped template, peer of workflows/. The GitHub connect card and repo-grant reconciliation move to @workbench/connections; the template-block deploy route (hub-only) moves into apps/hub. Every importer switches its import path; exported names are unchanged.
…-7373) templates/catalog.ts reads assetName/displayName/automatable straight off each workflows/*/package.json corbits.workflow block via a static JSON import (resolved at build time, so it stays importable from the browser bundle) instead of hand-copying them into a parallel array. The remaining catalog fields (whatItDoes, requiredConnections, exampleOutput, ...) have no npm-visible home of their own, so they stay hand-authored here — there's no second copy of them to drift.
Every export moved in the prior two commits (templates/, @workbench/ connections, apps/hub) or was superseded (the WORKFLOW_CATALOG mirror). Updates docs that named the old package (workflows/README.md already covered), regenerates the report-error baseline for the moved files' new paths, and fixes the two structural checks (error-envelope's allowlist, db-setup.ts's import) that referenced the old location.
TheGreatAxios
force-pushed
the
cl-7373-templates-root
branch
from
September 2, 2026 16:23
147475b to
d26b39b
Compare
TheGreatAxios
marked this pull request as ready for review
September 2, 2026 16:47
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.
Resolves CL-7373
Summary
templates/at repo root (peer ofworkflows/): one directory per shippedWorkbenchDefinition(gtm/,code-review/,due-diligence/), a schema + assembled list intemplates/index.ts, instantiation (./instantiate) and thetemplate/*settings vocabulary (./settings), and the workflow catalog loader (./catalog) — all as a new@workbench/templatespackage.@workbench/templates/catalog.tsreadsassetName/displayName/automatablestraight off eachworkflows/*/package.jsoncorbits.workflowblock via a static JSON import (resolved at build time, so it still bundles into the browser) instead of a hand-maintained mirror array. The remaining fields (whatItDoes,requiredConnections, trigger fields, ...) have no npm-visible home of their own and stay hand-authored — there was never a second copy of those to drift.connect-github-routes.ts,connect-github-setup.ts) and repo-grant reconciliation move to@workbench/connections, alongside the other connector routes.apps/hub/src/templates/.packages/workflow-catalogis deleted.Import path changes
@corbits/workflow-catalog(root) →@workbench/templatesfor template/instantiate/settings/catalog symbols (WORKFLOW_CATALOG,isAutomatableWorkflowName,isConversationalWorkflowName,workflowDisplayName,workflowCatalogEntry,deliveryWorkbenchRequiredForWorkflowName,validateTriggerFieldsAtCreate,WorkflowTriggerField,instantiateWorkbenchTemplate,templateSettingsPatch,jimmyAgentRequest/scoutAgentRequest,WORKBENCH_TEMPLATES,GTM_TEMPLATE/CODE_REVIEW_TEMPLATE/DUE_DILIGENCE_TEMPLATE,parseWorkbenchDefinition/serializeWorkbenchDefinition, etc.) — exported names are unchanged, only the module specifier moved.@corbits/workflow-catalog/connect-github-routes→@workbench/connections/connect-github-routes@corbits/workflow-catalog/template-block-routes→ relative import insideapps/hubstartReviewingRepos/ConnectGithubSetupPorts/webhookTriggerName→@workbench/connections/connect-github-setupreconcileDuplicateRepoGrants→@workbench/connections/reconcile-duplicate-repo-grantsUpdated:
apps/hub,apps/web,packages/agent-directory,packages/evals,packages/routines,packages/settings-ui,packages/chat-ui,packages/chat,packages/hub-client,scripts/db-setup.ts,scripts/checks/error-envelope.ts, and docs (workflows/README.md,docs/GLOSSARY.md,IMPLEMENTATION.md,docs/workflow-detail.md, several workflow/package READMEs). Also dropped two stale unused@corbits/workflow-catalogdeps (packages/chat,packages/plugins-ui) that had no real import left.Net LOC
git diff --shortstat cl-7372-fixture-guard...HEAD: 90 files changed, 805 insertions(+), 738 deletions(-). One package removed (packages/workflow-catalog); one added (@workbench/templates, a plain-data + pure-logic package with no server-only deps).Deliberately left
bun run scripts/checks/report-error.ts --write-baseline); one pre-existing, unrelated violation inpackages/routines-tools/src/tool.tsshows up when diffing locally againstorigin/main(not touched by this branch) — worth a separate look, not introduced here.Test plan
bun run typecheckbun run check:licensesbun run check:browser-safe-subpathsbun run scripts/generate-tsconfig-references.ts --checkbun testintemplates/,packages/connections,packages/agent-directory,packages/chat-ui,packages/hub-client,packages/routines,packages/evals,packages/settings-ui,packages/workflows,apps/hub,apps/web— all pass (DB-gated suites skip locally, as expected withoutDATABASE_URL)apps/webproduction build (vite build) succeeds, confirming@workbench/templatesbundles cleanly into the browser