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:
@@ -40,6 +40,11 @@ export const STARTABLE_FLOW_KEYS = new Set<string>([
|
||||
"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 HEX_SUFFIX = /[_-][a-f0-9]{8,}$/i;
|
||||
|
||||
@@ -56,7 +61,7 @@ export function curatedPublishedFlows<T extends RawFlow>(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)))
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user