|
1 | 1 | import { basename, dirname, resolve } from "node:path" |
2 | | -import { fixtureImportDeterministicIdPlan, normalizeRuntimeBackendKind, validateRuntimePolicy, type FixtureImportDeterministicIdPlan, type MountSpec, type RuntimePolicy, type RuntimeWordPressInstallMode, type SandboxWorkspaceMode, type WorkspaceRecipe, type WorkspaceRecipeDeclaredArtifact, type WorkspaceRecipeDistribution, type WorkspaceRecipeDistributionStartupProbe, type WorkspaceRecipeFixtureDatabase, type WorkspaceRecipePluginRuntime, type WorkspaceRecipePluginRuntimeHealthProbe, type WorkspaceRecipeSiteSeed, type WorkspaceRecipeSiteSeedBootstrap, type WorkspaceRecipeWorkspace } from "@automattic/wp-codebox-core" |
| 2 | +import { fixtureImportDeterministicIdPlan, normalizeRuntimeBackendKind, validateRuntimePolicy, type FixtureImportDeterministicIdPlan, type MountSpec, type RuntimeAssetSpec, type RuntimePolicy, type RuntimeWordPressInstallMode, type SandboxWorkspaceMode, type WorkspaceRecipe, type WorkspaceRecipeDeclaredArtifact, type WorkspaceRecipeDistribution, type WorkspaceRecipeDistributionStartupProbe, type WorkspaceRecipeFixtureDatabase, type WorkspaceRecipePluginRuntime, type WorkspaceRecipePluginRuntimeHealthProbe, type WorkspaceRecipeSiteSeed, type WorkspaceRecipeSiteSeedBootstrap, type WorkspaceRecipeWorkspace } from "@automattic/wp-codebox-core" |
3 | 3 | import { SANDBOX_WORKSPACE_ROOT, stripUndefined } from "@automattic/wp-codebox-core/internals" |
4 | 4 | import { serializeError } from "./output.js" |
5 | 5 | import { RecipeArtifactsMountConflictError, recipeArtifactsMountConflict } from "./commands/recipe-run-artifacts-mount-guard.js" |
@@ -55,6 +55,7 @@ export interface RecipePlan { |
55 | 55 | wp: string |
56 | 56 | phpVersion?: string |
57 | 57 | wordpressInstallMode?: RuntimeWordPressInstallMode |
| 58 | + assets?: RuntimeAssetSpec |
58 | 59 | blueprint: unknown |
59 | 60 | extensions?: Array<{ manifest: string }> |
60 | 61 | } |
@@ -441,6 +442,7 @@ export async function planWorkspaceRecipe(recipe: WorkspaceRecipe, recipeDirecto |
441 | 442 | wp: recipe.runtime?.wp ?? context.defaultWordPressVersion, |
442 | 443 | ...(recipe.runtime?.phpVersion ? { phpVersion: recipe.runtime.phpVersion } : {}), |
443 | 444 | ...(recipe.runtime?.wordpressInstallMode ? { wordpressInstallMode: recipe.runtime.wordpressInstallMode } : {}), |
| 445 | + ...(recipe.runtime?.assets ? { assets: recipe.runtime.assets } : {}), |
444 | 446 | ...(recipe.runtime?.extensions ? { extensions: recipe.runtime.extensions } : {}), |
445 | 447 | blueprint: recipeBlueprintWithBootActivePlugins(recipe.runtime?.blueprint, extraPlugins), |
446 | 448 | }, |
|
0 commit comments