fix(workflows): import @relayflows/core instead of the removed sdk subpath

Merged
KH
2mo ago
+760-193

Summary

workflows/linear-chat-lead.ts — our reference workflow — opened with import { workflow } from '@agent-relay/sdk/workflows', which cannot resolve. @agent-relay/sdk exports ., ./messaging, ./delivery, ./actions, ./session, and ./capabilities and has no ./workflows subpath. Verified against published 11.6.10 and monorepo source 11.6.2, which has no packages/sdk/src/workflows directory at all.

cloud/scripts/smoke-sandbox-image.mjs records the replacement:

@relayflows/core present (replaces the removed @agent-relay/sdk/workflows)

Why the stub had to go

workflows/agent-relay-workflows.d.ts existed only to paper over the missing module — a hand-written declare module '@agent-relay/sdk/workflows' with:

type StepOptions = Record<string, unknown>;

So every step in our reference workflow was typed as an untyped bag, and a typo in any step option could not be caught. Deleted in favour of the real types.

Changes

  • workflows/linear-chat-lead.ts: import from @relayflows/core
  • delete workflows/agent-relay-workflows.d.ts
  • add @relayflows/core as a dependency so the reference workflow typechecks against the shipping API rather than a local approximation

Verification

tsc --noEmit -p tsconfig.json exits 0 (workflows/*.ts is in include, so the reference workflow is genuinely covered now).

Companion doc fix: AgentWorkforce/skills — the workflow-authoring skills carried the same stale import.

šŸ¤– Generated with Claude Code


Summary by cubic

Fixes the broken workflow import by switching from the removed @agent-relay/sdk/workflows subpath to @relayflows/core, and removes the local type stub so the reference workflow typechecks against the real API. Previously the import failed and step options were untyped; now the import resolves and real types apply. Adds @relayflows/core as a dependency.

  • Update any other workflows or docs importing @agent-relay/sdk/workflows to use @relayflows/core.