@@ -21,9 +21,9 @@ export const SlackBlock: BlockConfig<SlackResponse> = {
2121 bgColor : '#611f69' ,
2222 icon : SlackIcon ,
2323 triggerAllowed : true ,
24- // Superseded by slack_v2, but stays discoverable until v2 GAs — hiding both
25- // would leave no Slack block in the toolbar while v2 is preview-gated. At v2
26- // GA this becomes ` hideFromToolbar: true` (superseded-version paradigm).
24+ // Superseded by slack_v2 (GA): hidden from discovery like other legacy _vN
25+ // blocks; existing workflows keep executing it.
26+ hideFromToolbar : true ,
2727 subBlocks : [
2828 {
2929 id : 'operation' ,
@@ -2465,9 +2465,10 @@ Return ONLY the integer Unix timestamp - no explanations, no quotes, no extra te
24652465 team_id : { type : 'string' , description : 'Slack workspace/team ID' } ,
24662466 event_id : { type : 'string' , description : 'Unique event identifier for the trigger' } ,
24672467 } ,
2468- // Trigger capabilities moved to slack_v2 so the trigger surfaces once.
2469- // Legacy webhook trigger stays available while slack_v2 (which hosts the
2470- // redesigned slack_oauth trigger) is preview-gated; drops at v2 GA.
2468+ // The legacy webhook trigger must STAY enabled: webhook-execution gates on
2469+ // blockConfig.triggers.enabled at runtime, so disabling it would break every
2470+ // deployed v1 Slack trigger workflow. New discovery surfaces only slack_v2
2471+ // (this block is hideFromToolbar).
24712472 triggers : {
24722473 enabled : true ,
24732474 available : [ 'slack_webhook' ] ,
@@ -2627,6 +2628,11 @@ export const SlackBlockMeta = {
26272628 ] ,
26282629} as const satisfies BlockMeta
26292630
2631+ export const SlackV2BlockMeta = {
2632+ tags : [ 'messaging' , 'webhooks' , 'automation' ] ,
2633+ url : 'https://slack.com' ,
2634+ } as const satisfies BlockMeta
2635+
26302636const SLACK_WEBHOOK_TRIGGER_SUBBLOCK_IDS = new Set (
26312637 getTrigger ( 'slack_webhook' ) . subBlocks . map ( ( sb ) => sb . id )
26322638)
@@ -2677,11 +2683,6 @@ export const SlackV2Block: BlockConfig<SlackResponse> = {
26772683 ...SlackBlock ,
26782684 type : 'slack_v2' ,
26792685 hideFromToolbar : false ,
2680- // Preview-gated: hidden from every discovery surface until revealed via the
2681- // block-visibility AppConfig (hosted) or PREVIEW_BLOCKS=slack_v2 (dev /
2682- // self-host). At GA: drop this flag, add SlackV2BlockMeta + docs, and set
2683- // hideFromToolbar on v1.
2684- preview : true ,
26852686 subBlocks : [
26862687 ...SlackBlock . subBlocks . flatMap ( ( sb ) => {
26872688 // Drop the legacy paste-secret trigger config (v1 hosts slack_webhook)
0 commit comments