Preserve extension names in module preflight
This commit is contained in:
@@ -206,7 +206,7 @@ function Assert-WritePreflightReport {
|
||||
if ($report.failures -and $report.failures.Count -gt 0) {
|
||||
throw "$Label report contains failures: $Path"
|
||||
}
|
||||
foreach ($check in @("method_exposed", "effective_path_preflight", "concrete_saved_state_preflight", "name_first_extension_form_preflight", "conflicting_extension_selector_preflight")) {
|
||||
foreach ($check in @("method_exposed", "effective_path_preflight", "concrete_saved_state_preflight", "name_first_extension_form_preflight", "conflicting_extension_selector_preflight", "name_first_extension_module_preflight", "conflicting_extension_module_selector_preflight")) {
|
||||
if ($report.checks.PSObject.Properties.Name -notcontains $check) {
|
||||
throw "$Label report is missing check '$check': $Path"
|
||||
}
|
||||
@@ -488,6 +488,7 @@ try {
|
||||
)
|
||||
if ($RequireSelectorChainWritePlanComposition) {
|
||||
$writePreflightCommand += "--require-name-first-extension-form"
|
||||
$writePreflightCommand += "--require-name-first-extension-module"
|
||||
}
|
||||
Invoke-CheckedCommand -Label "REST adapter write-preflight smoke ($currentBaseId)" -Command $writePreflightCommand
|
||||
Assert-WritePreflightReport -Label "REST adapter write-preflight smoke ($currentBaseId)" -Path $writePreflightReport
|
||||
@@ -787,6 +788,7 @@ try {
|
||||
)
|
||||
if ($RequireSelectorChainWritePlanComposition) {
|
||||
$mcpWritePreflightCommand += "--require-name-first-extension-form"
|
||||
$mcpWritePreflightCommand += "--require-name-first-extension-module"
|
||||
}
|
||||
Invoke-CheckedCommand -Label "MCP proxy write-preflight smoke ($currentBaseId)" -Command $mcpWritePreflightCommand
|
||||
Assert-WritePreflightReport -Label "MCP proxy write-preflight smoke ($currentBaseId)" -Path $mcpWritePreflightReport
|
||||
|
||||
Reference in New Issue
Block a user