d63d58ccb5
- Move 15 old workflow-* packages to legacy-packages/ (inactive, preserved for reference)
- Rename templates/ → examples/ for clarity
- Rewrite docs/architecture.md to reflect current uwf architecture
- Active packages remain in packages/: cli-uwf, uwf-agent-hermes, uwf-agent-kit, uwf-moderator, uwf-protocol, workflow-util
小橘 🍊(NEKO Team)
21 lines
611 B
TypeScript
21 lines
611 B
TypeScript
import type { RoleDefinition } from "@uncaged/workflow-runtime";
|
|
import { type DifferMeta, differRole } from "./roles/differ.js";
|
|
import { type WriterMeta, writerRole } from "./roles/writer.js";
|
|
|
|
export const DOCUMENT_WORKFLOW_DESCRIPTION =
|
|
"Generates a new Word document from a prompt, or edits an existing one and produces a diff report.";
|
|
|
|
export type DocumentMeta = {
|
|
writer: WriterMeta;
|
|
differ: DifferMeta;
|
|
};
|
|
|
|
export type DocumentRoles = {
|
|
[K in keyof DocumentMeta]: RoleDefinition<DocumentMeta[K]>;
|
|
};
|
|
|
|
export const documentRoles: DocumentRoles = {
|
|
writer: writerRole,
|
|
differ: differRole,
|
|
};
|