@@ -677,12 +677,7 @@ extension_enum! {
677677/// (runtimes in `RuntimesConfig` field order, tools in `ToolsConfig`
678678/// field order).
679679pub fn collect_extensions ( front_matter : & FrontMatter ) -> Vec < Extension > {
680- let mut extensions = Vec :: new ( ) ;
681-
682680 // ── Always-on internal extensions ──
683- extensions. push ( Extension :: AdoAwMarker ( AdoAwMarkerExtension ) ) ;
684- extensions. push ( Extension :: GitHub ( GitHubExtension ) ) ;
685- extensions. push ( Extension :: SafeOutputs ( SafeOutputsExtension ) ) ;
686681 // Always-on ado-script extension. Owns both the gate evaluator
687682 // (Setup job) and the runtime-import resolver (Agent job). Internal
688683 // gating on `filters:` and `inlined-imports` means the extension
@@ -692,11 +687,16 @@ pub fn collect_extensions(front_matter: &FrontMatter) -> Vec<Extension> {
692687 // resolver step run BEFORE any user-facing Runtime extension (e.g.
693688 // `NodeExtension`). The user's pinned Node version then "wins last"
694689 // on PATH for the rest of the Agent job.
695- extensions. push ( Extension :: AdoScript ( AdoScriptExtension {
696- pr_filters : front_matter. pr_filters ( ) . cloned ( ) ,
697- pipeline_filters : front_matter. pipeline_filters ( ) . cloned ( ) ,
698- inlined_imports : front_matter. inlined_imports ,
699- } ) ) ;
690+ let mut extensions = vec ! [
691+ Extension :: AdoAwMarker ( AdoAwMarkerExtension ) ,
692+ Extension :: GitHub ( GitHubExtension ) ,
693+ Extension :: SafeOutputs ( SafeOutputsExtension ) ,
694+ Extension :: AdoScript ( AdoScriptExtension {
695+ pr_filters: front_matter. pr_filters( ) . cloned( ) ,
696+ pipeline_filters: front_matter. pipeline_filters( ) . cloned( ) ,
697+ inlined_imports: front_matter. inlined_imports,
698+ } ) ,
699+ ] ;
700700
701701 // ── Runtimes (ExtensionPhase::Runtime) ──
702702 if let Some ( lean) = front_matter. runtimes . as_ref ( ) . and_then ( |r| r. lean . as_ref ( ) )
0 commit comments