Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion IMPLEMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ separate action.
## Workbench Definition (shipped)

`WorkbenchDefinition` (`WorkbenchDefinitionSchema` in
`@corbits/workflow-catalog`) is the one type for a named picker row:
`templates/index.ts`) is the one type for a named picker row:
default agents, routines, tools, plugins `{required, optional}`, and
ordered `onboardingSteps`. A template is a shipped definition, not a
second kind. `instantiateWorkbenchTemplate` resolves the definition
Expand Down
3 changes: 2 additions & 1 deletion apps/hub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"@corbits/tool-registry-publish": "workspace:*",
"@corbits/turn-artifacts": "workspace:*",
"@corbits/url-path": "workspace:*",
"@corbits/code-review-workflow": "workspace:*",
"@corbits/webhook-triggers": "workspace:*",
"@corbits/workflow-catalog": "workspace:*",
"@corbits/workflows": "workspace:*",
"@intx/authz": "0.3.0",
"@intx/crypto": "0.3.0",
Expand All @@ -67,6 +67,7 @@
"@workbench/echo": "workspace:*",
"@workbench/hub-client": "workspace:*",
"@workbench/onboarding": "workspace:*",
"@workbench/templates": "workspace:*",
"arktype": "catalog:",
"better-auth": "^1.4.18",
"drizzle-orm": "0.45.2",
Expand Down
10 changes: 5 additions & 5 deletions apps/hub/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ import {
deliveryWorkbenchRequiredForWorkflowName,
isConversationalWorkflowName,
validateTriggerFieldsAtCreate,
webhookTriggerName,
workflowCatalogEntry,
workflowDisplayName,
workbenchTemplateLibraryEntries,
} from "@corbits/workflow-catalog";
import { createConnectGithubRoutes } from "@corbits/workflow-catalog/connect-github-routes";
import { createTemplateBlockRoutes } from "@corbits/workflow-catalog/template-block-routes";
} from "@workbench/templates";
import { createConnectGithubRoutes } from "@workbench/connections/connect-github-routes";
import { webhookTriggerName } from "@workbench/connections/connect-github-setup";
import { createTemplateBlockRoutes } from "./templates/template-block-routes";
import {
createWorkflowDetailRoute,
renderWorkflowSourceTree,
Expand Down Expand Up @@ -2823,7 +2823,7 @@ export async function createHub(config: HubConfig) {
const routineStore = createDrizzleRoutineStore(db);
// The honest end-to-end delivery-destination rule: a workflow that
// never posts to a workbench (e.g. recurring-task, always delivering
// to its creator's Inbox — see @corbits/workflow-catalog's
// to its creator's Inbox — see @workbench/templates's
// `deliveryMode`) must never be forced to collect, or block on
// missing, a `deliveryWorkbenchId` it would just discard. An unknown
// definitionId (row missing, or its asset name isn't catalog-known)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
type CodeReviewWorkflowInput,
} from "@corbits/code-review-workflow";

import { workflowCatalogEntry } from "./index";
import { workflowCatalogEntry } from "@workbench/templates";

// Matches the conversational default every folded builder in this
// codebase uses (`AGENT_DEFINITION_TURN_TIMEOUT_MS`,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"@corbits/slug": "workspace:*",
"@corbits/text-diff": "workspace:*",
"@corbits/url-path": "workspace:*",
"@corbits/workflow-catalog": "workspace:*",
"@corbits/workflows": "workspace:*",
"@corbits/icons": "workspace:*",
"@intx/types": "workspace:*",
Expand All @@ -50,6 +49,7 @@
"@tanstack/react-query": "catalog:",
"@workbench/connections": "workspace:*",
"@workbench/hub-client": "workspace:*",
"@workbench/templates": "workspace:*",
"arktype": "catalog:",
"react": "^19.2.0",
"react-dom": "^19.2.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/connect-github-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// (`connect-github-block.tsx`'s `DisconnectedBody`) is what actually asks
// for the token, so this binding never needs a prompt or a modal of its
// own. Reading state and starting reviews call the workbench-scoped routes
// `@corbits/workflow-catalog`'s `createConnectGithubRoutes` exposes.
// `@workbench/connections`'s `createConnectGithubRoutes` exposes.
//
// `subscribeConnectState` has no server push to fold from yet (connecting a
// credential publishes no `chat.settings` event of its own — only
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/instant-agent-create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { QueryClient } from "@tanstack/react-query";
import {
CODE_REVIEW_TEMPLATE,
serializeWorkbenchDefinition,
} from "@corbits/workflow-catalog";
} from "@workbench/templates";

import {
createWorkbenchFromTemplate,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/instant-agent-create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
templateSettingsPatch,
type WorkbenchDefinition,
type WorkbenchOnboardingStep,
} from "@corbits/workflow-catalog";
} from "@workbench/templates";

import {
deployWorkbenchTemplateBlock,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/myra-workbench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
isWorkbenchTitleMatch,
type Workbench,
} from "@corbits/chat-ui";
import { WORKFLOW_CATALOG } from "@corbits/workflow-catalog";
import { WORKFLOW_CATALOG } from "@workbench/templates";

import { listAgentDefinitions, type AgentDefinition } from "./agents-api";

Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/pages/create-agent-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ type Suggestion = {
};

/** Every card here names something this workbench can actually deploy
* today (`@corbits/workflow-catalog`'s "Morning brief", "Granola call
* today (`@corbits/workflows`'s "Morning brief", "Granola call
* notes", and general conversational research) — plain copy, no
* capability this platform can't back up yet. */
const SUGGESTIONS: readonly Suggestion[] = [
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/workbench-templates-api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Reads a workbench template's manifest from the bench library (CL-6344)
// — `instant-agent-create.ts` instantiates from this seeded row, never
// from a hardcoded `@corbits/workflow-catalog` import. The read itself
// from a hardcoded `@workbench/templates` import. The read itself
// is what converges the shelf (CL-6458), so these routes answer for a
// bench of any age. The wire shape is the library's `{id, content}`
// entry; the content string re-enters through the catalog's own
Expand All @@ -11,7 +11,7 @@ import { type } from "arktype";
import {
parseWorkbenchDefinition,
type WorkbenchDefinition,
} from "@corbits/workflow-catalog";
} from "@workbench/templates";
import { ApiQueryError } from "@corbits/api-query";

const TemplateLibraryEntry = type({ id: "string > 0", content: "string > 0" });
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/workbench-templates.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// The picker's prefab catalog: one entry per one-click shortcut card
// (CL-6628). `code-review` and `blank` are pinned to the approved mock
// (CL-6342) verbatim; `due-diligence` mirrors the backend's
// `DUE_DILIGENCE_TEMPLATE` (`@corbits/workflow-catalog`, CL-6499) — it and
// `DUE_DILIGENCE_TEMPLATE` (`@workbench/templates`, CL-6499) — it and
// every other id here are still gated by what this bench's library
// actually serves before either is offered as a live card (see
// `NewWorkbenchPickerRoute`'s `servedTemplateIds`). See
Expand Down
2 changes: 1 addition & 1 deletion apps/web/test/new-workbench-picker.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
CODE_REVIEW_TEMPLATE,
DUE_DILIGENCE_TEMPLATE,
serializeWorkbenchDefinition,
} from "@corbits/workflow-catalog";
} from "@workbench/templates";
import { act } from "react";
import { createRoot, type Root } from "react-dom/client";

Expand Down
Loading
Loading