From 221cccf96b543ef31858589b2e2906ffab4b34b4 Mon Sep 17 00:00:00 2001 From: shad Date: Sun, 14 Jun 2026 14:47:25 +0400 Subject: [PATCH] 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. --- src/lib/flowCuration.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/flowCuration.ts b/src/lib/flowCuration.ts index cad736b..c9b9897 100644 --- a/src/lib/flowCuration.ts +++ b/src/lib/flowCuration.ts @@ -40,6 +40,11 @@ export const STARTABLE_FLOW_KEYS = new Set([ "pr_to_po_def", ]); +const STARTABLE_SOURCE_CONTEXTS = new Set([ + "EA2_DRAFT_PROCESS:process_creation", + "fm06-t10-demo-reset-v2", +]); + const HEX32 = /[a-f0-9]{32}/gi; const HEX_SUFFIX = /[_-][a-f0-9]{8,}$/i; @@ -56,7 +61,7 @@ export function curatedPublishedFlows(items: T[]): T[] { it.kind === "definition" && !!it.display_name && !isDevArtefact(it) && - STARTABLE_FLOW_KEYS.has(it._key) + (STARTABLE_FLOW_KEYS.has(it._key) || (it.source_context && STARTABLE_SOURCE_CONTEXTS.has(it.source_context))) ); }