feat(curation): allowlist wizard source_context so user-created flows surface

EA2_DRAFT_PROCESS:process_creation and fm06-t10-demo-reset-v2 added to
STARTABLE_SOURCE_CONTEXTS. Wizard-published flows now reach the Hub
catalogue and the Assistant's list_processes reply.
This commit is contained in:
2026-06-14 14:47:25 +04:00
parent 338864a8e1
commit 221cccf96b
+6 -1
View File
@@ -40,6 +40,11 @@ export const STARTABLE_FLOW_KEYS = new Set<string>([
"pr_to_po_def", "pr_to_po_def",
]); ]);
const STARTABLE_SOURCE_CONTEXTS = new Set<string>([
"EA2_DRAFT_PROCESS:process_creation",
"fm06-t10-demo-reset-v2",
]);
const HEX32 = /[a-f0-9]{32}/gi; const HEX32 = /[a-f0-9]{32}/gi;
const HEX_SUFFIX = /[_-][a-f0-9]{8,}$/i; const HEX_SUFFIX = /[_-][a-f0-9]{8,}$/i;
@@ -56,7 +61,7 @@ export function curatedPublishedFlows<T extends RawFlow>(items: T[]): T[] {
it.kind === "definition" && it.kind === "definition" &&
!!it.display_name && !!it.display_name &&
!isDevArtefact(it) && !isDevArtefact(it) &&
STARTABLE_FLOW_KEYS.has(it._key) (STARTABLE_FLOW_KEYS.has(it._key) || (it.source_context && STARTABLE_SOURCE_CONTEXTS.has(it.source_context)))
); );
} }