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
21 changes: 3 additions & 18 deletions apps/hub/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ import {
} from "./mailbox-persist";
import { captureMailboxRequest, createMailboxDeliver } from "./mailbox-send";
import { installWebhooks, type HookMailRouter } from "@corbits/webhooks";
import { createWorkflowAuthorRegistry, createWorkflowAuthorRoutes } from "@corbits/workflows";
import {
createProcessSidecarProvisioner,
readProcessProvisionerConfig,
Expand All @@ -93,9 +92,9 @@ const grantConditionRegistry: ConditionRegistry = {
};

// The one concrete `WorkflowRunAuthenticator` every workflow-run-authenticated
// Corbits surface below takes structurally (workflow-authoring,
// `@corbits/artifacts`' `mountWorkflowArtifacts`): a sidecar bearer token +
// run address resolve to the tenant/principal/run it names.
// Corbits surface below takes structurally (`@corbits/artifacts`'
// `mountWorkflowArtifacts`): a sidecar bearer token + run address resolve to
// the tenant/principal/run it names.
function createWorkflowRunAuthenticator(deps: { db: DB["db"] }) {
return {
async resolve(token: string, runAddress: string) {
Expand Down Expand Up @@ -601,20 +600,6 @@ export async function createHubServer({
app.route("/", memoryApp);
}

app.route(
"/api/workflow-workflow-authoring",
createWorkflowAuthorRoutes({
authenticator: createWorkflowRunAuthenticator({ db }),
registry: createWorkflowAuthorRegistry({
db,
assetService,
repoStore: agentRepoStore.repoStore,
grantStore,
conditionRegistry: grantConditionRegistry,
}),
}),
);

// `HookMailRouter` types its payloads as `unknown` at the package
// boundary; this just narrows them back to `sidecarRouter`'s own types
// on the way through, with no behavior change.
Expand Down
33 changes: 0 additions & 33 deletions docs/workflow-authoring-registry.md

This file was deleted.

2 changes: 1 addition & 1 deletion packages/workflows/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@corbits/workflows",
"version": "0.0.1",
"private": true,
"description": "The workflow domain package: the two-file source codebase every authoring path renders/reads (`./source`), the definition detail read a workflow's own page uses (`./detail`), and letting an agent author/republish/deploy a workflow through Interchange's native source pipeline (`./authoring`)",
"description": "The workflow domain package: the two-file source codebase every authoring path renders/reads (`./source`), and the definition detail read a workflow's own page uses (`./detail`)",
"license": "LGPL-2.1-only",
"type": "module",
"exports": {
Expand Down
26 changes: 0 additions & 26 deletions packages/workflows/src/authoring/errors.ts

This file was deleted.

30 changes: 0 additions & 30 deletions packages/workflows/src/authoring/index.ts

This file was deleted.

Loading
Loading