{"packageName":"@cedros/recipes-react","packageRoot":"workspace/react","entryPath":"workspace/react/dist/web/register.js","surfaceEntryPaths":{"web":"workspace/react/dist/web/register.js"},"surfaceFilePaths":{"web":["workspace/react/dist/generated-manifest.js","workspace/react/dist/manifest.js","workspace/react/dist/shared/SearchField.js","workspace/react/dist/shared/affiliates.js","workspace/react/dist/shared/api.js","workspace/react/dist/shared/apiResponse.js","workspace/react/dist/shared/domain.js","workspace/react/dist/shared/equipment.js","workspace/react/dist/shared/ingredientQuantity.js","workspace/react/dist/shared/mealPlanning.js","workspace/react/dist/shared/participation.js","workspace/react/dist/shared/presentation.js","workspace/react/dist/shared/recipeValidation.js","workspace/react/dist/shared/shopping.js","workspace/react/dist/shared/styles.js","workspace/react/dist/shared/useCatalogPage.js","workspace/react/dist/shared/useDebouncedValue.js","workspace/react/dist/shared/useMealPlan.js","workspace/react/dist/web/CookMode.js","workspace/react/dist/web/MealPlanBlock.js","workspace/react/dist/web/PublicBlocks.js","workspace/react/dist/web/RecipeAffiliateLinks.js","workspace/react/dist/web/RecipeNutrition.js","workspace/react/dist/web/RecipeParticipation.js","workspace/react/dist/web/common.js","workspace/react/dist/web/cookSession.js","workspace/react/dist/web/recipes.css","workspace/react/dist/web/register.js","workspace/react/dist/web/routes.js","workspace/react/dist/web/useRecipeResource.js"]},"files":[{"path":"workspace/react/dist/generated-manifest.js","kind":"module","text":"export const generatedManifest = { \"schemaVersion\": 1, \"extensionId\": \"cedros-recipes\", \"displayName\": \"Cedros Recipes\", \"version\": \"3.9.4\", \"description\": \"Author and publish structured recipes and ordered cookbooks. Readers can discover, scale, print, cook, save, plan weekly meals, build shopping lists, and share moderated reviews, with reviewed AI guidance for editors.\", \"platformApiVersion\": \"1\", \"compatibility\": { \"platformApiVersion\": \"1\", \"witChecksum\": \"58d100893076c351ccfcafde2f97604fa98b938bda778c5d7379117f18b71915\" }, \"packageFamily\": { \"server\": { \"packageName\": \"cedros-recipes-server\", \"version\": \"3.9.4\", \"required\": true }, \"react\": { \"packageName\": \"@cedros/recipes-react\", \"version\": \"3.9.4\", \"required\": true }, \"reactNative\": { \"packageName\": \"@cedros/recipes-react-native\", \"version\": \"3.9.4\", \"required\": true } }, \"dependencies\": { \"services\": [], \"capabilities\": [{ \"capabilityId\": \"cedros-data:extension-storage-cas-v1\", \"required\": true, \"reason\": \"Prevents lost updates when administrators, jobs, or recovery paths mutate shared recipe records.\" }, { \"capabilityId\": \"cedros-data:extension-visitor-v1\", \"required\": true, \"reason\": \"Host-verified, extension-scoped reader identity for saved recipes, shopping lists, and moderated reviews.\" }, { \"capabilityId\": \"site-brain-record:recipes\", \"required\": false, \"reason\": \"Publishes owner-visible recipe job and import outcomes.\" }, { \"capabilityId\": \"cedros-login:user-context\", \"required\": false, \"reason\": \"Retained optional legacy Login dependency. Reader identity uses required cedros-data:extension-visitor-v1; no customer credential is read by this extension.\" }, { \"capabilityId\": \"cedros-login:auth-response\", \"required\": false, \"reason\": \"Retained optional legacy Login dependency. Reader identity uses required cedros-data:extension-visitor-v1; no customer credential is read by this extension.\" }, { \"capabilityId\": \"cedros-login:admin-auth\", \"required\": false, \"reason\": \"Retained optional dependency for compatibility. Recipe administration uses the host-provided admin authorization context.\" }, { \"capabilityId\": \"cedros-pay:checkout\", \"required\": false, \"reason\": \"Retained optional dependency for compatibility. Paid publishing remains unavailable until the host-coordinated checkout and entitlement contracts are usable.\" }, { \"capabilityId\": \"cedros-pay:entitlement-read\", \"required\": false, \"reason\": \"Retained optional dependency for legacy references. Local payment records never grant access; a recipe-specific entitlement binding is unavailable.\" }, { \"capabilityId\": \"cedros-pay:payments\", \"required\": false, \"reason\": \"Retained optional dependency for legacy references. No payment service is called; reports show historical local records only.\" }, { \"capabilityId\": \"cedros-pay:subscription-read\", \"required\": false, \"reason\": \"Retained optional dependency for legacy references. Membership recipes remain locked without an authoritative recipe entitlement binding.\" }, { \"capabilityId\": \"cedros-data:extension-public-document-v1\", \"required\": true, \"reason\": \"Core serves safe recipe bodyHtml through the canonical extension SEO route.\" }], \"extensions\": [{ \"extensionId\": \"cedros-pay\", \"minVersion\": \"3.0.2\", \"required\": false, \"reason\": \"Retained optional dependency for legacy references. Paid publishing remains unavailable.\" }, { \"extensionId\": \"cedros-login\", \"minVersion\": \"0.0.60\", \"required\": false, \"reason\": \"Reader sign-in is verified by the host visitor contract. Anonymous recipe discovery remains available.\" }] }, \"capabilities\": [{ \"id\": \"cedros-recipes:recipe-insights\", \"displayName\": \"Recipe Insights\", \"description\": \"Publishes aggregate recipe performance and job outcomes without visitor PII.\", \"category\": \"runtime\", \"requestedScopes\": [{ \"verb\": \"write\", \"resource\": \"site-brain-record:recipes\", \"summary\": \"Writes summarized recipe import, AI, and reporting outcomes.\" }] }], \"surfaces\": { \"server\": { \"packageRef\": \"server\", \"required\": true, \"routes\": [\"cedros-recipes:admin-recipes-list\", \"cedros-recipes:admin-recipes-create\", \"cedros-recipes:admin-recipe-read\", \"cedros-recipes:admin-recipe-update\", \"cedros-recipes:admin-recipe-publish\", \"cedros-recipes:admin-recipe-archive\", \"cedros-recipes:admin-recipe-duplicate\", \"cedros-recipes:admin-taxonomies-read\", \"cedros-recipes:admin-taxonomies-write\", \"cedros-recipes:admin-collections-read\", \"cedros-recipes:admin-collections-write\", \"cedros-recipes:admin-cookbooks-read\", \"cedros-recipes:admin-cookbooks-write\", \"cedros-recipes:admin-settings-read\", \"cedros-recipes:admin-settings-write\", \"cedros-recipes:admin-ai-jobs-read\", \"cedros-recipes:admin-ai-jobs-create\", \"cedros-recipes:admin-ai-jobs-approve\", \"cedros-recipes:admin-reviews-read\", \"cedros-recipes:admin-reviews-moderate\", \"cedros-recipes:admin-reports-summary\", \"cedros-recipes:admin-audit-read\", \"cedros-recipes:admin-import\", \"cedros-recipes:admin-export\", \"cedros-recipes:public-recipes-list\", \"cedros-recipes:public-recipe-read\", \"cedros-recipes:public-access-read\", \"cedros-recipes:public-favorite-write\", \"cedros-recipes:public-shopping-list-read\", \"cedros-recipes:public-shopping-list-write\", \"cedros-recipes:public-review-create\", \"cedros-recipes:public-print-read\", \"cedros-recipes:public-meal-plan-read\", \"cedros-recipes:public-meal-plan-write\", \"cedros-recipes:public-reader-state-read\", \"cedros-recipes:public-review-status-read\", \"cedros-recipes:admin-agent\", \"cedros-recipes:admin-recipe-preview\", \"cedros-recipes:admin-affiliate-links-read\", \"cedros-recipes:admin-affiliate-audit\", \"cedros-recipes:admin-affiliate-links-patch\"], \"jobs\": [\"cedros-recipes:ai-job-reconcile\", \"cedros-recipes:recipe-analytics-rollup\", \"cedros-recipes:paid-access-reconcile\", \"cedros-recipes:import-cleanup\", \"cedros-recipes:report-rollup\"], \"events\": [\"cedros-recipes:recipe-viewed\", \"cedros-recipes:recipe-saved\", \"cedros-recipes:shopping-list-created\", \"cedros-recipes:ai-job-completed\", \"cedros-recipes:paid-recipe-locked\", \"cedros-recipes:review-submitted\", \"cedros-recipes:affiliate-link-clicked\"], \"migrations\": [\"cedros-recipes:recipes-v1\", \"cedros-recipes:recipe-versions-v1\", \"cedros-recipes:taxonomies-v1\", \"cedros-recipes:collections-v1\", \"cedros-recipes:cookbooks-v1\", \"cedros-recipes:bundles-v1\", \"cedros-recipes:access-rules-v1\", \"cedros-recipes:user-library-v1\", \"cedros-recipes:shopping-lists-v1\", \"cedros-recipes:reviews-v1\", \"cedros-recipes:ai-jobs-v1\", \"cedros-recipes:imports-v1\", \"cedros-recipes:audit-events-v1\", \"cedros-recipes:report-snapshots-v1\", \"cedros-recipes:meal-plans-v1\"], \"settingsSchemas\": [\"cedros-recipes:recipe-settings\", \"cedros-recipes:public-display-settings\", \"cedros-recipes:ai-settings\", \"cedros-recipes:paid-access-settings\", \"cedros-recipes:review-settings\", \"cedros-recipes:safety-disclaimer-settings\"], \"contentModels\": [\"cedros-recipes:recipes\", \"cedros-recipes:recipe-versions\", \"cedros-recipes:taxonomies\", \"cedros-recipes:collections\", \"cedros-recipes:cookbooks\", \"cedros-recipes:bundles\", \"cedros-recipes:access-rules\", \"cedros-recipes:user-library\", \"cedros-recipes:shopping-lists\", \"cedros-recipes:reviews\", \"cedros-recipes:ai-jobs\", \"cedros-recipes:imports\", \"cedros-recipes:audit-events\", \"cedros-recipes:report-snapshots\", \"cedros-recipes:meal-plans\", \"cedros-recipes:write-guards\", \"cedros-recipes:configuration\"] }, \"admin\": { \"packageRef\": \"react\", \"required\": true, \"moduleIds\": [\"cedros-recipes:admin\"] }, \"web\": { \"packageRef\": \"react\", \"required\": true, \"routeIds\": [\"cedros-recipes:recipes-page\", \"cedros-recipes:recipe-seo-detail\"], \"blockTypes\": [\"cedros-recipes:recipe-catalog\", \"cedros-recipes:recipe-detail\", \"cedros-recipes:recipe-card-grid\", \"cedros-recipes:recipe-collection\", \"cedros-recipes:shopping-list\", \"cedros-recipes:cook-mode\", \"cedros-recipes:print-card\", \"cedros-recipes:recipe-cookbook\", \"cedros-recipes:meal-plan\"], \"templateIds\": [\"cedros-recipes:recipes-index\", \"cedros-recipes:recipe-feature\"], \"authoredSurfaceIds\": [\"cedros-recipes:recipe-site\"], \"templateUtilityIds\": [\"cedros-recipes:recipe-starter\"] }, \"native\": { \"packageRef\": \"reactNative\", \"required\": true, \"screenIds\": [\"cedros-recipes:recipe-library\"], \"stackIds\": [\"cedros-recipes:recipes-stack\"] }, \"ai\": { \"packageRef\": \"server\", \"skills\": [], \"capabilities\": [{ \"id\": \"cedros-recipes:recipe-assistant\", \"name\": \"Recipe Assistant\", \"description\": \"Admin-only pairing and substitution assistance with review before recipe changes.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"ai\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/ai/jobs\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"recipeId\", \"jobType\"], \"properties\": { \"recipeId\": { \"type\": \"string\" }, \"jobType\": { \"type\": \"string\", \"enum\": [\"pairings\", \"substitutions\"] }, \"instructions\": { \"type\": \"string\", \"maxLength\": 4000 }, \"submissionId\": { \"type\": \"string\", \"description\": \"Reuse this identifier when retrying the same enhancement request.\", \"pattern\": \"^[A-Za-z0-9-]{1,100}$\" } } }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"job\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\" }, \"recipeId\": { \"type\": \"string\" }, \"jobType\": { \"type\": \"string\", \"enum\": [\"format_cleanup\", \"pairings\", \"substitutions\", \"customization_notes\", \"seo_copy\", \"image\"] }, \"status\": { \"type\": \"string\", \"enum\": [\"queued\", \"running\", \"needs_review\", \"approved\", \"rejected\", \"failed\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"minLength\": 1 }, \"result\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": true }, \"error\": { \"type\": [\"string\", \"null\"] }, \"retryable\": { \"type\": \"boolean\" }, \"createdBy\": { \"type\": [\"string\", \"null\"] }, \"createdAt\": { \"type\": \"string\" }, \"updatedAt\": { \"type\": \"string\" } }, \"required\": [\"id\", \"recipeId\", \"jobType\", \"status\"] }, \"recipe\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } }, \"required\": [\"job\"] } }, { \"id\": \"cedros-recipes:create-recipe\", \"name\": \"Create Recipe Draft\", \"description\": \"Create a structured recipe with a caller-chosen stable id. Requires recipe editing; live creation also requires publication permission. A duplicate id conflicts. No provider is called.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/recipes\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"recipe\"], \"properties\": { \"recipe\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } } }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"recipe\"], \"properties\": { \"recipe\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } } } }, { \"id\": \"cedros-recipes:save-recipe\", \"name\": \"Save Recipe\", \"description\": \"Save the complete recipe with its current _cedrosRecordVersion. Preserves unknown fields and retains the previous revision atomically. Live changes require publication permission. No provider is called.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"PATCH\", \"path\": \"/extensions/cedros-recipes/admin/recipe\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"recipe\"], \"properties\": { \"recipe\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\", \"_cedrosRecordVersion\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } } }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"recipe\"], \"properties\": { \"recipe\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } } } }, { \"id\": \"cedros-recipes:publish-recipe\", \"name\": \"Publish Saved Recipe\", \"description\": \"Publish the current saved recipe after validation. Requires publication permission and current recordVersion; paid/member recipes remain unavailable.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/recipe/publish\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"id\", \"recordVersion\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"recordVersion\": { \"type\": \"string\", \"minLength\": 1 } } }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"recipe\"], \"properties\": { \"recipe\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } } } }, { \"id\": \"cedros-recipes:archive-recipe\", \"name\": \"Archive Recipe\", \"description\": \"Archive a recipe without deleting its content or revision history. Requires editing and current recordVersion; archiving live content additionally requires publication permission.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/recipe/archive\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"id\", \"recordVersion\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"recordVersion\": { \"type\": \"string\", \"minLength\": 1 } } }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"recipe\"], \"properties\": { \"recipe\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } } } }, { \"id\": \"cedros-recipes:restore-recipe-revision\", \"name\": \"Restore Recipe Revision\", \"description\": \"Restore a historical content revision with current recordVersion. Keeps current publication status. Requires editing, and publication permission for live changes. Wrong recipe or stale revision fails.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"PATCH\", \"path\": \"/extensions/cedros-recipes/admin/recipe\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"id\", \"recordVersion\", \"restoreVersionId\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"recordVersion\": { \"type\": \"string\", \"minLength\": 1 }, \"restoreVersionId\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 } } }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"recipe\"], \"properties\": { \"recipe\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } } } }, { \"id\": \"cedros-recipes:save-collection\", \"name\": \"Save Recipe Collection\", \"description\": \"Create or update one public recipe collection, preserving existing fields. Include _cedrosRecordVersion for updates. Only public recipe members are allowed. Requires editing; conflicting handles or revisions fail.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"PUT\", \"path\": \"/extensions/cedros-recipes/admin/collections\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"collection\"], \"properties\": { \"collection\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"slug\", \"title\", \"recipeIds\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"recipeIds\": { \"type\": \"array\", \"items\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 } }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"minLength\": 1 } } } } }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"collections\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"slug\", \"title\", \"recipeIds\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"recipeIds\": { \"type\": \"array\", \"items\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 } }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"minLength\": 1 }, \"description\": { \"type\": \"string\", \"maxLength\": 20000 } } } }, \"cookbooks\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": true } } }, \"required\": [\"collections\", \"cookbooks\"] } }, { \"id\": \"cedros-recipes:moderate-review\", \"name\": \"Moderate Recipe Review\", \"description\": \"Approve or reject a reader review with its current recordVersion. Requires recipe editing; moderation and its audit event commit atomically.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/reviews/moderate\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"id\", \"recordVersion\", \"status\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"recordVersion\": { \"type\": \"string\", \"minLength\": 1 }, \"status\": { \"type\": \"string\", \"enum\": [\"approved\", \"rejected\", \"pending\"] } } }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"review\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\" }, \"recipeId\": { \"type\": \"string\" }, \"status\": { \"type\": \"string\", \"enum\": [\"pending\", \"approved\", \"rejected\"] }, \"rating\": { \"type\": \"number\", \"minimum\": 1, \"maximum\": 5 }, \"name\": { \"type\": \"string\" }, \"body\": { \"type\": \"string\" }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"minLength\": 1 } }, \"required\": [\"id\", \"recipeId\", \"status\"] } }, \"required\": [\"review\"] } }, { \"id\": \"cedros-recipes:import-recipes\", \"name\": \"Import Recipe Drafts\", \"description\": \"Import up to 29 recipes atomically. Supply stable recipe ids and reuse submissionId for identical ambiguous retries. Published imports additionally require publication permission. No provider is called.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/import\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"submissionId\", \"recipes\"], \"properties\": { \"submissionId\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 100 }, \"recipes\": { \"type\": \"array\", \"minItems\": 1, \"maxItems\": 29, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } } } }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"importId\": { \"type\": \"string\" }, \"imported\": { \"type\": \"integer\", \"minimum\": 0 }, \"recipes\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } }, \"summary\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"created\": { \"type\": \"integer\", \"minimum\": 0 }, \"updated\": { \"type\": \"integer\", \"minimum\": 0 }, \"unchanged\": { \"type\": \"integer\", \"minimum\": 0 } }, \"required\": [\"created\", \"updated\", \"unchanged\"] } }, \"required\": [\"importId\", \"imported\", \"recipes\", \"summary\"] } }, { \"id\": \"cedros-recipes:save-cookbook\", \"name\": \"Save Cookbook\", \"description\": \"Create or update an ordered cookbook. New editions default to private drafts; published content requires publication permission and available published recipes. Updates require the current _cedrosRecordVersion. Existing fields and audit commit atomically. No provider or checkout is called.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"cookbooks\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"PUT\", \"path\": \"/extensions/cedros-recipes/admin/cookbooks\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"cookbook\"], \"properties\": { \"cookbook\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\", \"slug\", \"recipeIds\", \"status\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"description\": { \"type\": \"string\", \"maxLength\": 20000 }, \"recipeIds\": { \"type\": \"array\", \"maxItems\": 500, \"uniqueItems\": true, \"items\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"published\", \"archived\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"minLength\": 1 } } } } }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"cookbook\"], \"properties\": { \"cookbook\": { \"type\": \"object\" } } } }, { \"id\": \"cedros-recipes:delete-cookbook\", \"name\": \"Delete Cookbook\", \"description\": \"Permanently delete one cookbook using its current recordVersion, preserving its recipes. Requires editing and, for a live edition, publication permission.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"cookbooks\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"PUT\", \"path\": \"/extensions/cedros-recipes/admin/cookbooks\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"deleteCookbook\"], \"properties\": { \"deleteCookbook\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"id\", \"recordVersion\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"recordVersion\": { \"type\": \"string\", \"minLength\": 1 } } } } }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"deleted\"], \"properties\": { \"deleted\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 } } } }, { \"id\": \"cedros-recipes:recipe-get\", \"name\": \"Get Recipe\", \"description\": \"Get Recipe. Uses the existing permission and revision checks; no provider is called.\", \"kind\": \"tool\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"recipe-get\"] }, \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"history\": { \"type\": \"boolean\" }, \"recovery\": { \"type\": \"boolean\" }, \"recordVersion\": { \"type\": \"string\", \"minLength\": 1 }, \"offset\": { \"type\": \"integer\", \"minimum\": 0 }, \"limit\": { \"type\": \"integer\", \"minimum\": 1, \"maximum\": 100 } }, \"required\": [\"action\", \"id\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"recipe\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } }, \"history\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"recipeId\": { \"type\": \"string\" }, \"versions\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\" }, \"recipeId\": { \"type\": \"string\" }, \"revision\": { \"type\": \"string\", \"minLength\": 1 }, \"savedAt\": { \"type\": \"string\" }, \"savedOrder\": { \"type\": \"string\" }, \"recipe\": { \"type\": \"object\", \"additionalProperties\": true }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"minLength\": 1 } }, \"required\": [\"id\", \"recipeId\", \"revision\", \"savedAt\", \"recipe\"] } }, \"total\": { \"type\": \"integer\", \"minimum\": 0 } }, \"required\": [\"recipeId\", \"versions\", \"total\"] }, \"recovery\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"id\": { \"type\": \"string\" }, \"title\": { \"type\": \"string\" }, \"error\": { \"type\": \"string\" }, \"recipe\": { \"type\": \"object\", \"additionalProperties\": true }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"minLength\": 1 } }, \"required\": [\"id\", \"title\", \"error\", \"recipe\", \"_cedrosRecordVersion\"] } }, \"required\": [], \"oneOf\": [{ \"required\": [\"recipe\"] }, { \"required\": [\"history\"] }, { \"required\": [\"recovery\"] }] } }, { \"id\": \"cedros-recipes:recipe-list\", \"name\": \"List Recipes\", \"description\": \"List Recipes. Uses the existing permission and revision checks; no provider is called.\", \"kind\": \"tool\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"recipe-list\"] }, \"q\": { \"type\": \"string\", \"maxLength\": 500 } }, \"required\": [\"action\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"recipes\": { \"type\": \"array\", \"maxItems\": 100000, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } }, \"total\": { \"type\": \"integer\" }, \"invalidRecipes\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"id\": { \"type\": \"string\" }, \"title\": { \"type\": \"string\" }, \"error\": { \"type\": \"string\" }, \"recipe\": { \"type\": \"object\", \"additionalProperties\": true }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"minLength\": 1 } }, \"required\": [\"id\", \"title\", \"error\", \"recipe\", \"_cedrosRecordVersion\"] } } }, \"required\": [] } }, { \"id\": \"cedros-recipes:recipe-patch\", \"name\": \"Patch Recipe Fields and Ordered Lines\", \"description\": \"Patch Recipe Fields and Ordered Lines. Uses the existing permission and revision checks; no provider is called.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"recipe-patch\"] }, \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"recordVersion\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"set\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] } }, \"required\": [] }, \"unset\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"string\", \"enum\": [\"title\", \"subtitle\", \"shortDescription\", \"introduction\", \"author\", \"yieldText\", \"notes\", \"foodSafety\", \"storage\", \"reheating\", \"featuredImageUrl\", \"featuredImageAlt\", \"videoUrl\", \"sourceCredit\", \"seoTitle\", \"metaDescription\", \"story\", \"servings\", \"featuredImageWidth\", \"featuredImageHeight\", \"nutrition\", \"sources\", \"ingredients\", \"instructions\", \"prepTimeMinutes\", \"cookTimeMinutes\", \"restTimeMinutes\", \"totalTimeMinutes\", \"equipment\", \"categories\", \"cuisines\", \"dietaryLabels\", \"tags\", \"allergens\", \"substitutions\", \"pairings\", \"noAffiliateLinks\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"op\": { \"type\": \"string\", \"enum\": [\"insert\", \"replace\", \"remove\"] }, \"index\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 500 }, \"value\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"required\": [\"op\", \"index\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"op\": { \"type\": \"string\", \"enum\": [\"insert\", \"replace\", \"remove\"] }, \"index\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 500 }, \"value\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"required\": [\"op\", \"index\"] } }, \"equipment\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"op\": { \"type\": \"string\", \"enum\": [\"insert\", \"replace\", \"remove\"] }, \"index\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 500 }, \"value\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"required\": [\"op\", \"index\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"op\": { \"type\": \"string\", \"enum\": [\"insert\", \"replace\", \"remove\"] }, \"index\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 500 }, \"value\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"required\": [\"op\", \"index\"] } } }, \"required\": [\"action\", \"id\", \"recordVersion\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"recipe\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } }, \"required\": [\"recipe\"] } }, { \"id\": \"cedros-recipes:recipe-preview\", \"name\": \"Render Recipe Draft Preview\", \"description\": \"Read the current revision first. Preview returns the same canonical document projection for drafts; publication is separate.\", \"kind\": \"tool\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"recipe-preview\"] }, \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"recordVersion\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 } }, \"required\": [\"action\", \"id\", \"recordVersion\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"preview\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\" }, \"description\": { \"type\": \"string\" }, \"canonicalPath\": { \"type\": \"string\" }, \"bodyHtml\": { \"type\": \"string\" }, \"seo\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"schema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"Recipe\"] }, \"name\": { \"type\": \"string\" }, \"recipeIngredient\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } }, \"recipeInstructions\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } }, \"prepTime\": { \"type\": \"string\" }, \"cookTime\": { \"type\": \"string\" }, \"totalTime\": { \"type\": \"string\" }, \"image\": { \"type\": \"string\" }, \"author\": { \"type\": \"string\" }, \"recipeYield\": { \"type\": \"string\" }, \"description\": { \"type\": \"string\" }, \"recipeCategory\": { \"type\": \"string\" }, \"recipeCuisine\": { \"type\": \"string\" } }, \"required\": [\"kind\", \"name\", \"recipeIngredient\", \"recipeInstructions\"] } }, \"required\": [\"schema\"] }, \"recipeSchemaValid\": { \"type\": \"boolean\" }, \"recipeSchemaWillEmit\": { \"type\": \"boolean\" }, \"jsonLd\": { \"type\": \"null\" }, \"jsonLdWithheldReason\": { \"type\": \"string\" }, \"schemaWithheldReason\": { \"type\": [\"string\", \"null\"] }, \"previewLink\": { \"type\": \"string\" }, \"imageBlockers\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } }, \"indexable\": { \"type\": \"boolean\" }, \"servedLocales\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } }, \"revision\": { \"type\": \"string\" }, \"breadcrumbs\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"label\": { \"type\": \"string\" }, \"href\": { \"type\": \"string\" } }, \"required\": [\"label\", \"href\"] } } }, \"required\": [\"title\", \"description\", \"canonicalPath\", \"bodyHtml\", \"recipeSchemaValid\", \"recipeSchemaWillEmit\", \"jsonLd\", \"jsonLdWithheldReason\", \"schemaWithheldReason\", \"previewLink\", \"indexable\", \"servedLocales\", \"revision\", \"breadcrumbs\", \"imageBlockers\"] } }, \"required\": [\"preview\"] } }, { \"id\": \"cedros-recipes:recipe-unpublish\", \"name\": \"Unpublish Recipe\", \"description\": \"Unpublish Recipe. Uses the existing permission and revision checks; no provider is called.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"recipe-unpublish\"] }, \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"recordVersion\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 } }, \"required\": [\"action\", \"id\", \"recordVersion\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"recipe\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } }, \"required\": [\"recipe\"] } }, { \"id\": \"cedros-recipes:recipe-duplicate\", \"name\": \"Duplicate Recipe\", \"description\": \"Duplicate Recipe. Uses the existing permission and revision checks; no provider is called.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"recipe-duplicate\"] }, \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 } }, \"required\": [\"action\", \"id\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"recipe\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } }, \"required\": [\"recipe\"] } }, { \"id\": \"cedros-recipes:collections-list\", \"name\": \"List Collections and Cookbooks\", \"description\": \"List Collections and Cookbooks. Uses the existing permission and revision checks; no provider is called.\", \"kind\": \"tool\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"collections-list\"] } }, \"required\": [\"action\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"collections\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"slug\", \"title\", \"recipeIds\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"recipeIds\": { \"type\": \"array\", \"items\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 } }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"minLength\": 1 }, \"description\": { \"type\": \"string\", \"maxLength\": 20000 } } } }, \"cookbooks\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": true } } }, \"required\": [\"collections\", \"cookbooks\"] } }, { \"id\": \"cedros-recipes:collection-delete\", \"name\": \"Delete Collection\", \"description\": \"Delete Collection. Uses the existing permission and revision checks; no provider is called.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"collection-delete\"] }, \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"recordVersion\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 } }, \"required\": [\"action\", \"id\", \"recordVersion\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"collections\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"slug\", \"title\", \"recipeIds\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"recipeIds\": { \"type\": \"array\", \"items\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 } }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"minLength\": 1 }, \"description\": { \"type\": \"string\", \"maxLength\": 20000 } } } }, \"cookbooks\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": true } } }, \"required\": [\"collections\", \"cookbooks\"] } }, { \"id\": \"cedros-recipes:taxonomies-get\", \"name\": \"Get Recipe Taxonomy\", \"description\": \"Get Recipe Taxonomy. Uses the existing permission and revision checks; no provider is called.\", \"kind\": \"tool\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"taxonomies-get\"] } }, \"required\": [\"action\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"methods\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"occasions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 } }, \"required\": [] } }, { \"id\": \"cedros-recipes:taxonomies-update\", \"name\": \"Update Categories and Taxonomy\", \"description\": \"Update Categories and Taxonomy. Uses the existing permission and revision checks; no provider is called.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"taxonomies-update\"] }, \"taxonomies\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"methods\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"occasions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 } }, \"required\": [] } }, \"required\": [\"action\", \"taxonomies\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"methods\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"occasions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 } }, \"required\": [] } }, { \"id\": \"cedros-recipes:settings-get\", \"name\": \"Get Recipe Settings\", \"description\": \"Get Recipe Settings. Uses the existing permission and revision checks; no provider is called.\", \"kind\": \"tool\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"settings-get\"] } }, \"required\": [\"action\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"publicDisplay\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"showPrepTime\": { \"type\": \"boolean\" }, \"showReviews\": { \"type\": \"boolean\" }, \"showNutrition\": { \"type\": \"boolean\" } }, \"required\": [] }, \"reviews\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"moderationRequired\": { \"type\": \"boolean\" } }, \"required\": [] }, \"safetyDisclaimer\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"enabled\": { \"type\": \"boolean\" }, \"text\": { \"type\": \"string\", \"maxLength\": 1000 } }, \"required\": [] }, \"ai\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"requireApproval\": { \"type\": \"boolean\" }, \"allowImageGeneration\": { \"type\": \"boolean\" } }, \"required\": [] }, \"retention\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"reportSnapshotDays\": { \"type\": \"integer\", \"anyOf\": [{ \"const\": 0 }, { \"minimum\": 30, \"maximum\": 3650 }] }, \"auditEventDays\": { \"type\": \"integer\", \"anyOf\": [{ \"const\": 0 }, { \"minimum\": 30, \"maximum\": 3650 }] }, \"completedAiJobDays\": { \"type\": \"integer\", \"anyOf\": [{ \"const\": 0 }, { \"minimum\": 30, \"maximum\": 3650 }] } }, \"required\": [] }, \"affiliates\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"enabled\": { \"type\": \"boolean\" }, \"amazonTag\": { \"type\": \"string\", \"maxLength\": 64, \"pattern\": \"^(?:$|[A-Za-z0-9][A-Za-z0-9-]*-[0-9]{2})$\" }, \"marketplaceDomain\": { \"type\": \"string\", \"enum\": [\"amazon.com\", \"amazon.ca\", \"amazon.com.mx\", \"amazon.com.br\", \"amazon.co.uk\", \"amazon.ie\", \"amazon.de\", \"amazon.fr\", \"amazon.it\", \"amazon.es\", \"amazon.nl\", \"amazon.com.be\", \"amazon.se\", \"amazon.pl\", \"amazon.co.jp\", \"amazon.in\", \"amazon.com.au\", \"amazon.sg\", \"amazon.ae\", \"amazon.sa\", \"amazon.com.tr\", \"amazon.eg\", \"amazon.co.za\"] }, \"disclosure\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 2000, \"pattern\": \"As an Amazon Associate I earn from qualifying purchases\\\\.\" } } }, \"paidAccess\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"failClosed\": { \"type\": \"boolean\" }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] } }, \"required\": [] } }, \"required\": [] } }, { \"id\": \"cedros-recipes:reviews-list\", \"name\": \"List Reviews\", \"description\": \"List Reviews. Uses the existing permission and revision checks; no provider is called.\", \"kind\": \"tool\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"reviews-list\"] } }, \"required\": [\"action\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"reviews\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\" }, \"recipeId\": { \"type\": \"string\" }, \"status\": { \"type\": \"string\", \"enum\": [\"pending\", \"approved\", \"rejected\"] }, \"rating\": { \"type\": \"number\", \"minimum\": 1, \"maximum\": 5 }, \"name\": { \"type\": \"string\" }, \"body\": { \"type\": \"string\" }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"minLength\": 1 } }, \"required\": [\"id\", \"recipeId\", \"status\"] } } }, \"required\": [\"reviews\"] } }, { \"id\": \"cedros-recipes:ai-jobs-list\", \"name\": \"List AI Jobs\", \"description\": \"List AI Jobs. Uses the existing permission and revision checks; no provider is called.\", \"kind\": \"tool\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"ai-jobs-list\"] } }, \"required\": [\"action\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"generatedAt\": { \"type\": \"string\" }, \"jobs\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\" }, \"recipeId\": { \"type\": \"string\" }, \"jobType\": { \"type\": \"string\", \"enum\": [\"format_cleanup\", \"pairings\", \"substitutions\", \"customization_notes\", \"seo_copy\", \"image\"] }, \"status\": { \"type\": \"string\", \"enum\": [\"queued\", \"running\", \"needs_review\", \"approved\", \"rejected\", \"failed\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"minLength\": 1 }, \"result\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": true }, \"error\": { \"type\": [\"string\", \"null\"] }, \"retryable\": { \"type\": \"boolean\" }, \"createdBy\": { \"type\": [\"string\", \"null\"] }, \"createdAt\": { \"type\": \"string\" }, \"updatedAt\": { \"type\": \"string\" } }, \"required\": [\"id\", \"recipeId\", \"jobType\", \"status\"] } } }, \"required\": [\"generatedAt\", \"jobs\"] } }, { \"id\": \"cedros-recipes:export\", \"name\": \"Export Recipes\", \"description\": \"Export Recipes. Uses the existing permission and revision checks; no provider is called.\", \"kind\": \"tool\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"export\"] } }, \"required\": [\"action\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"exportedAt\": { \"type\": \"string\" }, \"recipes\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } }, \"invalidRecipes\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"id\": { \"type\": \"string\" }, \"title\": { \"type\": \"string\" }, \"error\": { \"type\": \"string\" }, \"recipe\": { \"type\": \"object\", \"additionalProperties\": true }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"minLength\": 1 } }, \"required\": [\"id\", \"title\", \"error\", \"recipe\", \"_cedrosRecordVersion\"] } } }, \"required\": [\"exportedAt\", \"recipes\", \"invalidRecipes\"] } }, { \"id\": \"cedros-recipes:reports\", \"name\": \"Get Recipe Reports\", \"description\": \"Get Recipe Reports. Uses the existing permission and revision checks; no provider is called.\", \"kind\": \"tool\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"reports\"] } }, \"required\": [\"action\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"generatedAt\": { \"type\": \"string\" }, \"affiliates\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"enabled\", \"switchEnabled\", \"validTag\", \"recipes\", \"clickReporting\"], \"properties\": { \"enabled\": { \"type\": \"boolean\" }, \"switchEnabled\": { \"type\": \"boolean\" }, \"validTag\": { \"type\": \"boolean\" }, \"recipes\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"recipeId\": { \"type\": \"string\" }, \"title\": { \"type\": [\"string\", \"null\"] }, \"slug\": { \"type\": [\"string\", \"null\"] }, \"noAffiliateLinks\": { \"type\": \"boolean\" }, \"clickCount\": { \"type\": \"null\" }, \"links\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"itemKey\": { \"type\": \"string\" }, \"name\": { \"type\": [\"string\", \"null\"] }, \"productLink\": { \"description\": \"Unvalidated stored product value, retained for repair; inspect valid and missingAsin before use.\" }, \"valid\": { \"type\": \"boolean\" }, \"missingAsin\": { \"type\": \"boolean\" }, \"clickCount\": { \"type\": \"null\" } }, \"required\": [\"itemKey\", \"name\", \"productLink\", \"valid\", \"missingAsin\", \"clickCount\"] } }, \"rendering\": { \"type\": \"boolean\" } }, \"required\": [\"recipeId\", \"title\", \"slug\", \"noAffiliateLinks\", \"clickCount\", \"links\", \"rendering\"] } }, \"clickReporting\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"status\", \"reason\", \"issueUrl\"], \"properties\": { \"status\": { \"type\": \"string\", \"enum\": [\"unavailable\"] }, \"reason\": { \"type\": \"string\" }, \"issueUrl\": { \"type\": \"string\" } } } } }, \"recipes\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"total\": { \"type\": \"integer\", \"minimum\": 0 }, \"published\": { \"type\": \"integer\", \"minimum\": 0 }, \"readyToPublish\": { \"type\": \"integer\", \"minimum\": 0 }, \"paid\": { \"type\": \"integer\", \"minimum\": 0 }, \"draft\": { \"type\": \"integer\", \"minimum\": 0 } }, \"required\": [\"total\", \"published\", \"readyToPublish\", \"paid\", \"draft\"] }, \"reviews\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"pending\": { \"type\": \"integer\", \"minimum\": 0 }, \"approved\": { \"type\": \"integer\", \"minimum\": 0 }, \"averageRating\": { \"type\": \"number\" } }, \"required\": [\"pending\", \"approved\", \"averageRating\"] }, \"engagement\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"favorites\": { \"type\": \"integer\", \"minimum\": 0 }, \"shoppingLists\": { \"type\": \"integer\", \"minimum\": 0 } }, \"required\": [\"favorites\", \"shoppingLists\"] }, \"ai\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"queued\": { \"type\": \"integer\", \"minimum\": 0 }, \"needsReview\": { \"type\": \"integer\", \"minimum\": 0 }, \"failed\": { \"type\": \"integer\", \"minimum\": 0 } }, \"required\": [\"queued\", \"needsReview\", \"failed\"] }, \"paidAccess\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"granted\": { \"type\": \"integer\", \"minimum\": 0 }, \"pending\": { \"type\": \"integer\", \"minimum\": 0 }, \"failed\": { \"type\": \"integer\", \"minimum\": 0 }, \"refunded\": { \"type\": \"integer\", \"minimum\": 0 }, \"disputed\": { \"type\": \"integer\", \"minimum\": 0 }, \"missingPayProduct\": { \"type\": \"integer\", \"minimum\": 0 } }, \"required\": [\"granted\", \"pending\", \"failed\", \"refunded\", \"disputed\", \"missingPayProduct\"] } }, \"required\": [\"generatedAt\", \"affiliates\", \"recipes\", \"reviews\", \"engagement\", \"ai\", \"paidAccess\"] } }, { \"id\": \"cedros-recipes:audit\", \"name\": \"Get Recipe Audit\", \"description\": \"Get Recipe Audit. Uses the existing permission and revision checks; no provider is called.\", \"kind\": \"tool\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"audit\"] } }, \"required\": [\"action\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"events\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\" }, \"actorId\": { \"type\": [\"string\", \"null\"] }, \"createdAt\": { \"type\": \"string\" }, \"action\": { \"type\": \"string\" }, \"subjectId\": { \"type\": [\"string\", \"null\"] } }, \"required\": [\"id\", \"action\", \"subjectId\", \"actorId\", \"createdAt\"] } } }, \"required\": [\"events\"] } }, { \"id\": \"cedros-recipes:cookbooks-list\", \"name\": \"List Managed Cookbooks\", \"description\": \"List Managed Cookbooks. Uses the existing permission and revision checks; no provider is called.\", \"kind\": \"tool\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"cookbooks-list\"] } }, \"required\": [\"action\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"cookbooks\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\", \"slug\", \"recipeIds\", \"status\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"description\": { \"type\": \"string\", \"maxLength\": 20000 }, \"recipeIds\": { \"type\": \"array\", \"maxItems\": 500, \"uniqueItems\": true, \"items\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"published\", \"archived\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"minLength\": 1 } } } }, \"recovery\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"id\": { \"type\": [\"string\", \"null\"] }, \"title\": { \"type\": \"string\" }, \"error\": { \"type\": \"string\" }, \"record\": { \"type\": \"object\", \"additionalProperties\": true } }, \"required\": [\"id\", \"title\", \"error\", \"record\"] } } }, \"required\": [\"cookbooks\", \"recovery\"] } }, { \"id\": \"cedros-recipes:settings-update\", \"name\": \"Update Recipe Settings\", \"description\": \"Update Recipe Settings. Uses the existing permission and revision checks; no provider is called.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"settings-update\"] }, \"settings\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"publicDisplay\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"showPrepTime\": { \"type\": \"boolean\" }, \"showReviews\": { \"type\": \"boolean\" }, \"showNutrition\": { \"type\": \"boolean\" } }, \"required\": [] }, \"reviews\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"moderationRequired\": { \"type\": \"boolean\" } }, \"required\": [] }, \"safetyDisclaimer\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"enabled\": { \"type\": \"boolean\" }, \"text\": { \"type\": \"string\", \"maxLength\": 1000 } }, \"required\": [] }, \"ai\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"requireApproval\": { \"type\": \"boolean\" }, \"allowImageGeneration\": { \"type\": \"boolean\" } }, \"required\": [] }, \"retention\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"reportSnapshotDays\": { \"type\": \"integer\", \"anyOf\": [{ \"const\": 0 }, { \"minimum\": 30, \"maximum\": 3650 }] }, \"auditEventDays\": { \"type\": \"integer\", \"anyOf\": [{ \"const\": 0 }, { \"minimum\": 30, \"maximum\": 3650 }] }, \"completedAiJobDays\": { \"type\": \"integer\", \"anyOf\": [{ \"const\": 0 }, { \"minimum\": 30, \"maximum\": 3650 }] } }, \"required\": [] }, \"affiliates\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"enabled\": { \"type\": \"boolean\" }, \"amazonTag\": { \"type\": \"string\", \"maxLength\": 64, \"pattern\": \"^(?:$|[A-Za-z0-9][A-Za-z0-9-]*-[0-9]{2})$\" }, \"marketplaceDomain\": { \"type\": \"string\", \"enum\": [\"amazon.com\", \"amazon.ca\", \"amazon.com.mx\", \"amazon.com.br\", \"amazon.co.uk\", \"amazon.ie\", \"amazon.de\", \"amazon.fr\", \"amazon.it\", \"amazon.es\", \"amazon.nl\", \"amazon.com.be\", \"amazon.se\", \"amazon.pl\", \"amazon.co.jp\", \"amazon.in\", \"amazon.com.au\", \"amazon.sg\", \"amazon.ae\", \"amazon.sa\", \"amazon.com.tr\", \"amazon.eg\", \"amazon.co.za\"] }, \"disclosure\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 2000, \"pattern\": \"As an Amazon Associate I earn from qualifying purchases\\\\.\" } } }, \"paidAccess\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"failClosed\": { \"type\": \"boolean\" }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] } }, \"required\": [] } }, \"required\": [] } }, \"required\": [\"action\", \"settings\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"publicDisplay\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"showPrepTime\": { \"type\": \"boolean\" }, \"showReviews\": { \"type\": \"boolean\" }, \"showNutrition\": { \"type\": \"boolean\" } }, \"required\": [] }, \"reviews\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"moderationRequired\": { \"type\": \"boolean\" } }, \"required\": [] }, \"safetyDisclaimer\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"enabled\": { \"type\": \"boolean\" }, \"text\": { \"type\": \"string\", \"maxLength\": 1000 } }, \"required\": [] }, \"ai\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"requireApproval\": { \"type\": \"boolean\" }, \"allowImageGeneration\": { \"type\": \"boolean\" } }, \"required\": [] }, \"retention\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"reportSnapshotDays\": { \"type\": \"integer\", \"anyOf\": [{ \"const\": 0 }, { \"minimum\": 30, \"maximum\": 3650 }] }, \"auditEventDays\": { \"type\": \"integer\", \"anyOf\": [{ \"const\": 0 }, { \"minimum\": 30, \"maximum\": 3650 }] }, \"completedAiJobDays\": { \"type\": \"integer\", \"anyOf\": [{ \"const\": 0 }, { \"minimum\": 30, \"maximum\": 3650 }] } }, \"required\": [] }, \"affiliates\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"enabled\": { \"type\": \"boolean\" }, \"amazonTag\": { \"type\": \"string\", \"maxLength\": 64, \"pattern\": \"^(?:$|[A-Za-z0-9][A-Za-z0-9-]*-[0-9]{2})$\" }, \"marketplaceDomain\": { \"type\": \"string\", \"enum\": [\"amazon.com\", \"amazon.ca\", \"amazon.com.mx\", \"amazon.com.br\", \"amazon.co.uk\", \"amazon.ie\", \"amazon.de\", \"amazon.fr\", \"amazon.it\", \"amazon.es\", \"amazon.nl\", \"amazon.com.be\", \"amazon.se\", \"amazon.pl\", \"amazon.co.jp\", \"amazon.in\", \"amazon.com.au\", \"amazon.sg\", \"amazon.ae\", \"amazon.sa\", \"amazon.com.tr\", \"amazon.eg\", \"amazon.co.za\"] }, \"disclosure\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 2000, \"pattern\": \"As an Amazon Associate I earn from qualifying purchases\\\\.\" } } }, \"paidAccess\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"failClosed\": { \"type\": \"boolean\" }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] } }, \"required\": [] } }, \"required\": [] } }, { \"id\": \"cedros-recipes:ai-job-review\", \"name\": \"Review AI Job\", \"description\": \"Review AI Job. Uses the existing permission and revision checks; no provider is called.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"ai-job-review\"] }, \"jobId\": { \"type\": \"string\", \"maxLength\": 200 }, \"decision\": { \"type\": \"string\", \"enum\": [\"approve\", \"reject\"] }, \"recordVersion\": { \"type\": \"string\", \"maxLength\": 500 } }, \"required\": [\"action\", \"jobId\", \"decision\", \"recordVersion\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"job\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\" }, \"recipeId\": { \"type\": \"string\" }, \"jobType\": { \"type\": \"string\", \"enum\": [\"format_cleanup\", \"pairings\", \"substitutions\", \"customization_notes\", \"seo_copy\", \"image\"] }, \"status\": { \"type\": \"string\", \"enum\": [\"queued\", \"running\", \"needs_review\", \"approved\", \"rejected\", \"failed\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"minLength\": 1 }, \"result\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": true }, \"error\": { \"type\": [\"string\", \"null\"] }, \"retryable\": { \"type\": \"boolean\" }, \"createdBy\": { \"type\": [\"string\", \"null\"] }, \"createdAt\": { \"type\": \"string\" }, \"updatedAt\": { \"type\": \"string\" } }, \"required\": [\"id\", \"recipeId\", \"jobType\", \"status\"] }, \"recipe\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } }, \"required\": [\"job\"] } }, { \"id\": \"cedros-recipes:import-preview\", \"name\": \"Preview Migration Batch\", \"description\": \"Preview then commit with the batch recordVersion. sourceKey is the idempotent recipe identity; new recipes are drafts. Rollback is atomic and conflicts if imported content changed. At most 14 recipes per batch.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"import-preview\"] }, \"batchId\": { \"type\": \"string\", \"pattern\": \"^[A-Za-z0-9-]{1,100}$\" }, \"recipes\": { \"type\": \"array\", \"maxItems\": 14, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"title\", \"slug\", \"sourceKey\", \"sourceUrl\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": \"string\", \"maxLength\": 500, \"minLength\": 1 }, \"sourceUrl\": { \"type\": \"string\", \"maxLength\": 2000, \"minLength\": 1 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } } }, \"required\": [\"action\", \"batchId\", \"recipes\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"batch\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\" }, \"status\": { \"type\": \"string\", \"enum\": [\"previewed\", \"committed\", \"rolled_back\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\" }, \"entries\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\" }, \"slug\": { \"type\": \"string\" }, \"sourceKey\": { \"type\": \"string\" }, \"sourceUrl\": { \"type\": \"string\" }, \"change\": { \"type\": \"string\", \"enum\": [\"created\", \"updated\", \"unchanged\"] }, \"blockers\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } }, \"source\": { \"type\": \"object\" }, \"before\": { \"type\": [\"object\", \"null\"] }, \"after\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } }, \"required\": [\"id\", \"slug\", \"sourceKey\", \"sourceUrl\", \"change\", \"blockers\", \"source\", \"before\", \"after\"] } }, \"summary\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"created\": { \"type\": \"integer\", \"minimum\": 0 }, \"updated\": { \"type\": \"integer\", \"minimum\": 0 }, \"unchanged\": { \"type\": \"integer\", \"minimum\": 0 } }, \"required\": [\"created\", \"updated\", \"unchanged\"] } }, \"required\": [\"id\", \"status\", \"_cedrosRecordVersion\", \"entries\", \"summary\"] } }, \"required\": [\"batch\"] } }, { \"id\": \"cedros-recipes:import-commit\", \"name\": \"Commit Migration Batch\", \"description\": \"Preview then commit with the batch recordVersion. sourceKey is the idempotent recipe identity; new recipes are drafts. Rollback is atomic and conflicts if imported content changed. At most 14 recipes per batch.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"import-commit\"] }, \"batchId\": { \"type\": \"string\", \"pattern\": \"^[A-Za-z0-9-]{1,100}$\" }, \"recordVersion\": { \"type\": \"string\", \"maxLength\": 500 } }, \"required\": [\"action\", \"batchId\", \"recordVersion\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"batch\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\" }, \"status\": { \"type\": \"string\", \"enum\": [\"previewed\", \"committed\", \"rolled_back\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\" }, \"entries\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\" }, \"slug\": { \"type\": \"string\" }, \"sourceKey\": { \"type\": \"string\" }, \"sourceUrl\": { \"type\": \"string\" }, \"change\": { \"type\": \"string\", \"enum\": [\"created\", \"updated\", \"unchanged\"] }, \"blockers\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } }, \"source\": { \"type\": \"object\" }, \"before\": { \"type\": [\"object\", \"null\"] }, \"after\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } }, \"required\": [\"id\", \"slug\", \"sourceKey\", \"sourceUrl\", \"change\", \"blockers\", \"source\", \"before\", \"after\"] } }, \"summary\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"created\": { \"type\": \"integer\", \"minimum\": 0 }, \"updated\": { \"type\": \"integer\", \"minimum\": 0 }, \"unchanged\": { \"type\": \"integer\", \"minimum\": 0 } }, \"required\": [\"created\", \"updated\", \"unchanged\"] } }, \"required\": [\"id\", \"status\", \"_cedrosRecordVersion\", \"entries\", \"summary\"] } }, \"required\": [\"batch\"] } }, { \"id\": \"cedros-recipes:import-rollback\", \"name\": \"Roll Back Migration Batch\", \"description\": \"Preview then commit with the batch recordVersion. sourceKey is the idempotent recipe identity; new recipes are drafts. Rollback is atomic and conflicts if imported content changed. At most 14 recipes per batch.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"import-rollback\"] }, \"batchId\": { \"type\": \"string\", \"pattern\": \"^[A-Za-z0-9-]{1,100}$\" }, \"recordVersion\": { \"type\": \"string\", \"maxLength\": 500 } }, \"required\": [\"action\", \"batchId\", \"recordVersion\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"batch\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\" }, \"status\": { \"type\": \"string\", \"enum\": [\"previewed\", \"committed\", \"rolled_back\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\" }, \"entries\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\" }, \"slug\": { \"type\": \"string\" }, \"sourceKey\": { \"type\": \"string\" }, \"sourceUrl\": { \"type\": \"string\" }, \"change\": { \"type\": \"string\", \"enum\": [\"created\", \"updated\", \"unchanged\"] }, \"blockers\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } }, \"source\": { \"type\": \"object\" }, \"before\": { \"type\": [\"object\", \"null\"] }, \"after\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } }, \"required\": [\"id\", \"slug\", \"sourceKey\", \"sourceUrl\", \"change\", \"blockers\", \"source\", \"before\", \"after\"] } }, \"summary\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"created\": { \"type\": \"integer\", \"minimum\": 0 }, \"updated\": { \"type\": \"integer\", \"minimum\": 0 }, \"unchanged\": { \"type\": \"integer\", \"minimum\": 0 } }, \"required\": [\"created\", \"updated\", \"unchanged\"] } }, \"required\": [\"id\", \"status\", \"_cedrosRecordVersion\", \"entries\", \"summary\"] } }, \"required\": [\"batch\"] } }, { \"id\": \"cedros-recipes:import-status\", \"name\": \"Get Migration Batch Status\", \"description\": \"Read one migration receipt by batchId, or omit batchId to list receipts (25 per page, offset). Owners and agents share the same receipts. Rollback remains restricted to the operator who committed the batch.\", \"kind\": \"tool\", \"tags\": [\"recipes\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/agent\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"action\": { \"type\": \"string\", \"enum\": [\"import-status\"] }, \"batchId\": { \"type\": \"string\", \"pattern\": \"^[A-Za-z0-9-]{1,100}$\" }, \"offset\": { \"type\": \"integer\", \"minimum\": 0 } }, \"required\": [\"action\"] }, \"outputSchema\": { \"oneOf\": [{ \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"batch\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\" }, \"status\": { \"type\": \"string\", \"enum\": [\"previewed\", \"committed\", \"rolled_back\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\" }, \"entries\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\" }, \"slug\": { \"type\": \"string\" }, \"sourceKey\": { \"type\": \"string\" }, \"sourceUrl\": { \"type\": \"string\" }, \"change\": { \"type\": \"string\", \"enum\": [\"created\", \"updated\", \"unchanged\"] }, \"blockers\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } }, \"source\": { \"type\": \"object\" }, \"before\": { \"type\": [\"object\", \"null\"] }, \"after\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } }, \"required\": [\"id\", \"slug\", \"sourceKey\", \"sourceUrl\", \"change\", \"blockers\", \"source\", \"before\", \"after\"] } }, \"summary\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"created\": { \"type\": \"integer\", \"minimum\": 0 }, \"updated\": { \"type\": \"integer\", \"minimum\": 0 }, \"unchanged\": { \"type\": \"integer\", \"minimum\": 0 } }, \"required\": [\"created\", \"updated\", \"unchanged\"] } }, \"required\": [\"id\", \"status\", \"_cedrosRecordVersion\", \"entries\", \"summary\"] } }, \"required\": [\"batch\"] }, { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"batches\": { \"type\": \"array\", \"maxItems\": 25, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\" }, \"status\": { \"type\": \"string\", \"enum\": [\"previewed\", \"committed\", \"rolled_back\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\" }, \"entries\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\" }, \"slug\": { \"type\": \"string\" }, \"sourceKey\": { \"type\": \"string\" }, \"sourceUrl\": { \"type\": \"string\" }, \"change\": { \"type\": \"string\", \"enum\": [\"created\", \"updated\", \"unchanged\"] }, \"blockers\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } }, \"source\": { \"type\": \"object\" }, \"before\": { \"type\": [\"object\", \"null\"] }, \"after\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } }, \"required\": [\"id\", \"slug\", \"sourceKey\", \"sourceUrl\", \"change\", \"blockers\", \"source\", \"before\", \"after\"] } }, \"summary\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"created\": { \"type\": \"integer\", \"minimum\": 0 }, \"updated\": { \"type\": \"integer\", \"minimum\": 0 }, \"unchanged\": { \"type\": \"integer\", \"minimum\": 0 } }, \"required\": [\"created\", \"updated\", \"unchanged\"] } }, \"required\": [\"id\", \"status\", \"_cedrosRecordVersion\", \"entries\", \"summary\"] } }, \"total\": { \"type\": \"integer\", \"minimum\": 0 } }, \"required\": [\"batches\", \"total\"] }], \"type\": \"object\" } }, { \"id\": \"cedros-recipes:patch-affiliate-links\", \"name\": \"Edit Recipe Product Links\", \"description\": \"Patch links by ingredient/equipment id or set the recipe opt-out. Null removes a productLink. Requires editing, current recordVersion, and publishing permission for live content.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"affiliates\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"PATCH\", \"path\": \"/extensions/cedros-recipes/admin/affiliate-links\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"recipeId\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 }, \"recordVersion\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"noAffiliateLinks\": { \"type\": \"boolean\" }, \"items\": { \"type\": \"array\", \"maxItems\": 700, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"ingredients\", \"equipment\"] }, \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"kind\", \"id\", \"productLink\"] } } }, \"required\": [\"recipeId\", \"recordVersion\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"recipe\"], \"properties\": { \"recipe\": { \"type\": \"object\", \"additionalProperties\": true, \"required\": [\"id\", \"title\"], \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 200 }, \"slug\": { \"type\": \"string\", \"maxLength\": 200 }, \"title\": { \"type\": \"string\", \"maxLength\": 200 }, \"subtitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"shortDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"introduction\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"author\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"yieldText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 300 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 20000 }, \"foodSafety\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"storage\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"reheating\": { \"type\": [\"string\", \"null\"], \"maxLength\": 10000 }, \"featuredImageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"featuredImageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"videoUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceKey\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"sourceUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"sourceCredit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"seoTitle\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"metaDescription\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000 }, \"story\": { \"type\": [\"string\", \"null\"], \"maxLength\": 1000000 }, \"servings\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 999 }, \"featuredImageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"featuredImageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"nutrition\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": { \"type\": [\"string\", \"number\"] } }, \"sources\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"title\": { \"type\": \"string\", \"maxLength\": 500 }, \"url\": { \"type\": \"string\", \"maxLength\": 2000 } }, \"required\": [\"title\", \"url\"] } }, \"ingredients\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"maxLength\": 2000 }, \"quantityText\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"unit\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"preparation\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"notes\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"quantity\": { \"type\": [\"number\", \"null\"], \"minimum\": 0, \"maximum\": 1000000 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"allergen\": { \"type\": [\"boolean\", \"null\"] }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } }, \"required\": [\"name\"] } }, \"instructions\": { \"type\": \"array\", \"maxItems\": 500, \"items\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"id\": { \"type\": \"string\", \"maxLength\": 500 }, \"text\": { \"type\": \"string\", \"maxLength\": 2000 }, \"title\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"group\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"temperature\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"equipment\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"tip\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"warning\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"timerMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"optional\": { \"type\": [\"boolean\", \"null\"] }, \"imageUrl\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageAlt\": { \"type\": [\"string\", \"null\"], \"maxLength\": 2000 }, \"imageWidth\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 }, \"imageHeight\": { \"type\": [\"integer\", \"null\"], \"minimum\": 1, \"maximum\": 100000 } }, \"required\": [\"text\"] } }, \"status\": { \"type\": \"string\", \"enum\": [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"] }, \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"prepTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"cookTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"restTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"totalTimeMinutes\": { \"type\": [\"integer\", \"null\"], \"minimum\": 0, \"maximum\": 10080 }, \"equipment\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": [\"string\", \"object\"], \"maxLength\": 500, \"additionalProperties\": true, \"required\": [\"id\", \"name\"], \"properties\": { \"id\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"name\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"productLink\": { \"type\": [\"object\", \"null\"], \"additionalProperties\": false, \"properties\": { \"retailer\": { \"type\": \"string\", \"enum\": [\"amazon\"] }, \"asin\": { \"type\": \"string\", \"minLength\": 10, \"maxLength\": 10, \"pattern\": \"^[A-Z0-9]{10}$\" }, \"label\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"url\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"maxLength\": 2000 } }, \"required\": [\"retailer\", \"asin\", \"label\"] } } } }, \"categories\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"cuisines\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"dietaryLabels\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"tags\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"allergens\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"substitutions\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"pairings\": { \"type\": \"array\", \"maxItems\": 200, \"items\": { \"type\": \"string\", \"maxLength\": 500 } }, \"access\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"kind\": { \"type\": \"string\", \"enum\": [\"free\", \"private\", \"paid\", \"membership\"] }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] }, \"priceCents\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 100000000 }, \"currency\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 }, \"payProductRef\": { \"type\": [\"string\", \"null\"], \"maxLength\": 500 } }, \"required\": [\"kind\"] }, \"noAffiliateLinks\": { \"type\": [\"boolean\", \"null\"] }, \"difficulty\": { \"type\": [\"string\", \"null\"], \"enum\": [\"easy\", \"medium\", \"hard\", \"expert\", null] }, \"createdAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"updatedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"publishedAt\": { \"type\": [\"string\", \"number\", \"null\"] }, \"entryKey\": { \"type\": \"string\" }, \"accessKind\": { \"type\": \"string\", \"enum\": [\"free\", \"paid\", \"membership\", \"private\"] }, \"slugKey\": { \"type\": \"string\" } } } } } }, { \"id\": \"cedros-recipes:affiliate-link-audit\", \"name\": \"Audit Recipe Product Links\", \"description\": \"Read the link inventory, missing/invalid ASINs, opt-outs and effective enablement. Requires audit permission; no recipe writes. Click counts are explicitly unavailable until Core #6574 provides shared recipe/item aggregates.\", \"kind\": \"tool\", \"tags\": [\"recipes\", \"affiliates\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"POST\", \"path\": \"/extensions/cedros-recipes/admin/affiliate-links/audit\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"recipeId\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 200 } } }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"enabled\", \"switchEnabled\", \"validTag\", \"recipes\", \"clickReporting\"], \"properties\": { \"enabled\": { \"type\": \"boolean\" }, \"switchEnabled\": { \"type\": \"boolean\" }, \"validTag\": { \"type\": \"boolean\" }, \"recipes\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"recipeId\": { \"type\": \"string\" }, \"title\": { \"type\": [\"string\", \"null\"] }, \"slug\": { \"type\": [\"string\", \"null\"] }, \"noAffiliateLinks\": { \"type\": \"boolean\" }, \"clickCount\": { \"type\": \"null\" }, \"links\": { \"type\": \"array\", \"items\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"itemKey\": { \"type\": \"string\" }, \"name\": { \"type\": [\"string\", \"null\"] }, \"productLink\": { \"description\": \"Unvalidated stored product value, retained for repair; inspect valid and missingAsin before use.\" }, \"valid\": { \"type\": \"boolean\" }, \"missingAsin\": { \"type\": \"boolean\" }, \"clickCount\": { \"type\": \"null\" } }, \"required\": [\"itemKey\", \"name\", \"productLink\", \"valid\", \"missingAsin\", \"clickCount\"] } }, \"rendering\": { \"type\": \"boolean\" } }, \"required\": [\"recipeId\", \"title\", \"slug\", \"noAffiliateLinks\", \"clickCount\", \"links\", \"rendering\"] } }, \"clickReporting\": { \"type\": \"object\", \"additionalProperties\": false, \"required\": [\"status\", \"reason\", \"issueUrl\"], \"properties\": { \"status\": { \"type\": \"string\", \"enum\": [\"unavailable\"] }, \"reason\": { \"type\": \"string\" }, \"issueUrl\": { \"type\": \"string\" } } } } } }, { \"id\": \"cedros-recipes:save-affiliate-settings\", \"name\": \"Save Affiliate Settings\", \"description\": \"Patch non-secret site affiliate settings with the current settings revision. Requires manage_settings. Default off; a valid issued site tag is required to render links.\", \"kind\": \"action\", \"tags\": [\"recipes\", \"affiliates\", \"admin\"], \"visibility\": \"admin\", \"endpoint\": { \"method\": \"PUT\", \"path\": \"/extensions/cedros-recipes/admin/settings\" }, \"auth\": { \"schemes\": [\"bearer-token\"] }, \"inputSchema\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"_cedrosRecordVersion\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 500 }, \"affiliates\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"enabled\": { \"type\": \"boolean\" }, \"amazonTag\": { \"type\": \"string\", \"maxLength\": 64, \"pattern\": \"^(?:$|[A-Za-z0-9][A-Za-z0-9-]*-[0-9]{2})$\" }, \"marketplaceDomain\": { \"type\": \"string\", \"enum\": [\"amazon.com\", \"amazon.ca\", \"amazon.com.mx\", \"amazon.com.br\", \"amazon.co.uk\", \"amazon.ie\", \"amazon.de\", \"amazon.fr\", \"amazon.it\", \"amazon.es\", \"amazon.nl\", \"amazon.com.be\", \"amazon.se\", \"amazon.pl\", \"amazon.co.jp\", \"amazon.in\", \"amazon.com.au\", \"amazon.sg\", \"amazon.ae\", \"amazon.sa\", \"amazon.com.tr\", \"amazon.eg\", \"amazon.co.za\"] }, \"disclosure\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 2000, \"pattern\": \"As an Amazon Associate I earn from qualifying purchases\\\\.\" } } } }, \"required\": [\"affiliates\"] }, \"outputSchema\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"_cedrosRecordVersion\": { \"type\": \"string\", \"maxLength\": 500 }, \"publicDisplay\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"showPrepTime\": { \"type\": \"boolean\" }, \"showReviews\": { \"type\": \"boolean\" }, \"showNutrition\": { \"type\": \"boolean\" } }, \"required\": [] }, \"reviews\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"moderationRequired\": { \"type\": \"boolean\" } }, \"required\": [] }, \"safetyDisclaimer\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"enabled\": { \"type\": \"boolean\" }, \"text\": { \"type\": \"string\", \"maxLength\": 1000 } }, \"required\": [] }, \"ai\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"requireApproval\": { \"type\": \"boolean\" }, \"allowImageGeneration\": { \"type\": \"boolean\" } }, \"required\": [] }, \"retention\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"reportSnapshotDays\": { \"type\": \"integer\", \"anyOf\": [{ \"const\": 0 }, { \"minimum\": 30, \"maximum\": 3650 }] }, \"auditEventDays\": { \"type\": \"integer\", \"anyOf\": [{ \"const\": 0 }, { \"minimum\": 30, \"maximum\": 3650 }] }, \"completedAiJobDays\": { \"type\": \"integer\", \"anyOf\": [{ \"const\": 0 }, { \"minimum\": 30, \"maximum\": 3650 }] } }, \"required\": [] }, \"affiliates\": { \"type\": \"object\", \"additionalProperties\": false, \"properties\": { \"enabled\": { \"type\": \"boolean\" }, \"amazonTag\": { \"type\": \"string\", \"maxLength\": 64, \"pattern\": \"^(?:$|[A-Za-z0-9][A-Za-z0-9-]*-[0-9]{2})$\" }, \"marketplaceDomain\": { \"type\": \"string\", \"enum\": [\"amazon.com\", \"amazon.ca\", \"amazon.com.mx\", \"amazon.com.br\", \"amazon.co.uk\", \"amazon.ie\", \"amazon.de\", \"amazon.fr\", \"amazon.it\", \"amazon.es\", \"amazon.nl\", \"amazon.com.be\", \"amazon.se\", \"amazon.pl\", \"amazon.co.jp\", \"amazon.in\", \"amazon.com.au\", \"amazon.sg\", \"amazon.ae\", \"amazon.sa\", \"amazon.com.tr\", \"amazon.eg\", \"amazon.co.za\"] }, \"disclosure\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 2000, \"pattern\": \"As an Amazon Associate I earn from qualifying purchases\\\\.\" } } }, \"paidAccess\": { \"type\": \"object\", \"additionalProperties\": true, \"properties\": { \"failClosed\": { \"type\": \"boolean\" }, \"previewMode\": { \"type\": \"string\", \"enum\": [\"none\", \"summary\", \"ingredients\"] } }, \"required\": [] } }, \"required\": [] } }] } }, \"registration\": { \"server\": { \"entrypoint\": \"cedros_recipes_server::register_extension_family\" }, \"admin\": { \"entrypoint\": \"@cedros/recipes-react/admin/register\" }, \"web\": { \"entrypoint\": \"@cedros/recipes-react/web/register\" }, \"native\": { \"entrypoint\": \"@cedros/recipes-react-native/register\" } }, \"requiredServices\": [], \"requiredCapabilities\": [\"cedros-data:extension-storage-cas-v1\", \"cedros-data:extension-visitor-v1\", \"cedros-data:extension-public-document-v1\"], \"adminModules\": [{ \"moduleId\": \"cedros-recipes:admin\", \"extensionId\": \"cedros-recipes\", \"displayName\": \"Cedros Recipes\", \"version\": \"3.9.4\", \"packageName\": \"@cedros/recipes-react\", \"sectionIds\": [\"cedros-recipes:recipes\", \"cedros-recipes:collections\", \"cedros-recipes:ai\", \"cedros-recipes:reviews\", \"cedros-recipes:reports\", \"cedros-recipes:settings\", \"cedros-recipes:taxonomies\", \"cedros-recipes:cookbooks\"], \"sectionIcons\": { \"cedros-recipes:recipes\": \"lucide:book-open\", \"cedros-recipes:collections\": \"lucide:folders\", \"cedros-recipes:ai\": \"lucide:sparkles\", \"cedros-recipes:reviews\": \"lucide:message-square\", \"cedros-recipes:reports\": \"analytics\", \"cedros-recipes:settings\": \"extensions\", \"cedros-recipes:taxonomies\": \"lucide:tags\", \"cedros-recipes:cookbooks\": \"lucide:book-open\" }, \"navigation\": { \"sections\": [{ \"id\": \"cedros-recipes:recipes\", \"label\": \"Recipes\", \"group\": \"Grow\", \"order\": 10, \"labelKey\": \"navigation.sections.recipes\", \"groupKey\": \"navigation.groups.grow\", \"requiredPermission\": \"edit_all_content\" }, { \"id\": \"cedros-recipes:collections\", \"label\": \"Collections\", \"group\": \"Grow\", \"order\": 20, \"labelKey\": \"navigation.sections.collections\", \"groupKey\": \"navigation.groups.grow\", \"requiredPermission\": \"edit_all_content\" }, { \"id\": \"cedros-recipes:ai\", \"label\": \"AI queue\", \"group\": \"Assistant\", \"order\": 30, \"labelKey\": \"navigation.sections.aiQueue\", \"groupKey\": \"navigation.groups.assistant\", \"requiredPermission\": \"manage_extensions\" }, { \"id\": \"cedros-recipes:reviews\", \"label\": \"Reviews\", \"group\": \"Grow\", \"order\": 40, \"labelKey\": \"navigation.sections.reviews\", \"groupKey\": \"navigation.groups.grow\", \"requiredPermission\": \"edit_all_content\" }, { \"id\": \"cedros-recipes:reports\", \"label\": \"Reports\", \"group\": \"Tools\", \"order\": 50, \"labelKey\": \"navigation.sections.reports\", \"groupKey\": \"navigation.groups.tools\", \"requiredPermission\": \"view_audit_log\" }, { \"id\": \"cedros-recipes:settings\", \"label\": \"Settings\", \"group\": \"Extension Settings\", \"order\": 60, \"labelKey\": \"navigation.sections.settings\", \"groupKey\": \"navigation.groups.extensionSettings\", \"requiredPermission\": \"manage_settings\" }, { \"id\": \"cedros-recipes:taxonomies\", \"label\": \"Recipe vocabulary\", \"group\": \"Grow\", \"order\": 25, \"labelKey\": \"navigation.sections.taxonomies\", \"groupKey\": \"navigation.groups.grow\", \"requiredPermission\": \"edit_all_content\" }, { \"id\": \"cedros-recipes:cookbooks\", \"label\": \"Cookbooks\", \"group\": \"Grow\", \"order\": 22, \"labelKey\": \"navigation.sections.cookbooks\", \"groupKey\": \"navigation.groups.grow\", \"requiredPermission\": \"edit_all_content\" }], \"groups\": [{ \"id\": \"cedros-recipes:assistant\", \"label\": \"Assistant\", \"order\": 99 }] }, \"contributions\": { \"dashboardCards\": [{ \"id\": \"cedros-recipes:overview-card\", \"displayName\": \"Recipes overview\", \"description\": \"Current recipe publication status and work awaiting review.\", \"order\": 30, \"requiredPermission\": \"view_audit_log\" }, { \"id\": \"cedros-recipes:ai-queue-card\", \"displayName\": \"Recipe AI queue\", \"description\": \"Current AI enhancement work awaiting review.\", \"order\": 31, \"requiredPermission\": \"manage_extensions\" }, { \"id\": \"cedros-recipes:paid-performance-card\", \"displayName\": \"Paid recipe performance\", \"description\": \"Paid recipe setup and legacy cache status; remains disabled until verified Login and Pay bindings exist.\", \"order\": 32, \"requiredPermission\": \"view_audit_log\" }] } }], \"contentBlocks\": [{ \"type\": \"cedros-recipes:recipe-catalog\", \"displayName\": \"Recipe Catalog\", \"description\": \"Browse, search, and filter published recipes.\", \"category\": \"recipes\", \"order\": 100 }, { \"type\": \"cedros-recipes:recipe-detail\", \"displayName\": \"Recipe Detail\", \"description\": \"Render a full recipe with scaling, access, reviews, and cook mode.\", \"category\": \"recipes\", \"order\": 101 }, { \"type\": \"cedros-recipes:recipe-card-grid\", \"displayName\": \"Recipe Card Grid\", \"description\": \"Feature selected recipes in a compact responsive grid.\", \"category\": \"recipes\", \"order\": 102 }, { \"type\": \"cedros-recipes:recipe-collection\", \"displayName\": \"Recipe Collection\", \"description\": \"Render recipes from one recipe collection.\", \"category\": \"recipes\", \"order\": 103 }, { \"type\": \"cedros-recipes:shopping-list\", \"displayName\": \"Shopping List\", \"description\": \"Create and manage a visitor shopping list when a verified Cedros Login customer binding is available.\", \"category\": \"recipes\", \"order\": 104 }, { \"type\": \"cedros-recipes:cook-mode\", \"displayName\": \"Cook Mode\", \"description\": \"Step-by-step cooking view with timers and check-off controls.\", \"category\": \"recipes\", \"order\": 105 }, { \"type\": \"cedros-recipes:print-card\", \"displayName\": \"Print Recipe Card\", \"description\": \"Print-friendly recipe card with ingredients and instructions.\", \"category\": \"recipes\", \"order\": 106 }, { \"type\": \"cedros-recipes:recipe-cookbook\", \"displayName\": \"Recipe Cookbook\", \"description\": \"Browse one published cookbook in its authored reading order.\", \"category\": \"recipes\", \"order\": 107 }, { \"type\": \"cedros-recipes:meal-plan\", \"displayName\": \"Meal Plan\", \"description\": \"A private weekly plan with servings and a confirmed shopping-list handoff.\", \"category\": \"recipes\", \"order\": 108 }], \"contentTemplates\": [{ \"id\": \"cedros-recipes:recipes-index\", \"displayName\": \"Recipes Index\", \"description\": \"Recipe catalog page with featured collections and filters.\", \"order\": 10, \"contentTypes\": [\"page\"], \"surfaceId\": \"cedros-recipes:recipe-site\" }, { \"id\": \"cedros-recipes:recipe-feature\", \"displayName\": \"Recipe Feature\", \"description\": \"Editorial recipe page with a detail block and related recipes.\", \"order\": 20, \"contentTypes\": [\"page\", \"blog\"], \"surfaceId\": \"cedros-recipes:recipe-site\" }], \"authoredSurfaces\": [{ \"id\": \"cedros-recipes:recipe-site\", \"displayName\": \"Recipe Site\", \"description\": \"Recipe catalog and editorial recipe pages.\", \"eyebrow\": \"Recipes\", \"templateIds\": [\"cedros-recipes:recipes-index\", \"cedros-recipes:recipe-feature\"] }], \"authoredTemplateUtilities\": [{ \"id\": \"cedros-recipes:recipe-starter\", \"displayName\": \"Recipe Starter\", \"description\": \"Adds recipe catalog, collection, and print-friendly blocks.\", \"order\": 10, \"templateIds\": [\"cedros-recipes:recipes-index\", \"cedros-recipes:recipe-feature\"], \"contentTypes\": [\"page\", \"blog\"], \"surfaceIds\": [\"cedros-recipes:recipe-site\"], \"suggestedBlockTypes\": [\"cedros-recipes:recipe-catalog\", \"cedros-recipes:recipe-detail\", \"cedros-recipes:recipe-card-grid\", \"cedros-recipes:recipe-collection\", \"cedros-recipes:cook-mode\", \"cedros-recipes:print-card\"] }], \"pageSeeds\": [{ \"id\": \"cedros-recipes:recipes-page\", \"displayName\": \"Recipes Page\", \"title\": \"Recipes\", \"routePath\": \"/recipes\", \"description\": \"Published recipe catalog with filters, collections, and recipe cards.\", \"slug\": \"recipes\", \"templateId\": \"cedros-recipes:recipes-index\", \"chromeMode\": \"default\", \"autoCreateOnEnable\": true, \"publishOnEnable\": true, \"seo\": { \"title\": \"Recipes\", \"description\": \"Browse recipes, curated collections, and cooking guides.\", \"canonicalPath\": \"/recipes\", \"ogTitle\": \"Recipes\", \"ogDescription\": \"Browse recipes, curated collections, and cooking guides.\" } }], \"formTemplates\": [{ \"id\": \"cedros-recipes:recipe-request\", \"displayName\": \"Recipe Request\", \"title\": \"Recipe request\", \"description\": \"Starter form for visitors to request recipes or ask for cooking guidance.\", \"scope\": \"contact\", \"defaultKey\": \"recipe-request\", \"status\": \"active\", \"submitLabel\": \"Send request\", \"successTitle\": \"Request received\", \"successMessage\": \"The site owner will review your recipe request.\", \"fields\": [{ \"key\": \"name\", \"label\": \"Name\", \"type\": \"text\", \"required\": true }, { \"key\": \"email\", \"label\": \"Email\", \"type\": \"email\", \"required\": true }, { \"key\": \"request\", \"label\": \"Recipe request\", \"type\": \"textarea\", \"required\": true, \"helpText\": \"Avoid sharing medical, allergy, or private account details.\" }] }], \"docsArticles\": [{ \"id\": \"cedros-recipes:recipe-help\", \"displayName\": \"Recipe Help\", \"title\": \"Using recipes\", \"slug\": \"using-recipes\", \"routePath\": \"/docs/using-recipes\", \"excerpt\": \"How to discover, cook, save, shop from, and review published recipes.\", \"bodyMarkdown\": \"# Using recipes\\n\\nBrowse the Recipes page to find published recipes, search by ingredient or cuisine, and filter by dietary label.\\n\\nOpen a recipe to adjust servings, review ingredients and safety information, print a copy, or enter step-by-step cook mode. Cook mode keeps the scaled ingredient list visible and provides progress controls and any timers the editor added. Cooking progress is saved on this device when storage is available; check the food before serving even when a timer finishes.\\n\\n## Save, shop, and review\\n\\nSign in with Cedros Login to save recipes. Choose Saved recipes on the Recipes page to return to your favourites. Use Saved recipe to remove a recipe from your saved list.\\n\\nAdjust servings before adding ingredients to your shopping list. Open Shopping list to add items, mark purchases, or choose Edit list to remove items. Your list belongs to your signed-in account. If a save fails or another tab changes the list, use Try again to reload the confirmed list before making further changes.\\n\\nChoose Write a review on a recipe to share a rating and comment. Reviews go to the site team for moderation and appear publicly only after approval. If submission fails, retry with the same review to avoid duplicates.\\n\\nSaving, shopping lists, and new reviews require the site’s sign-in service to be available. Anonymous visitors can still browse and cook free recipes. Paid and membership recipes remain locked; purchasing and recipe entitlement verification through Cedros Pay are unavailable in this version. If you already purchased access, contact the site owner.\\n\\n## Stories and incomplete recipes\\n\\nRead the original story, byline, ordered sources and video URL where supplied. Unknown servings, yield, times, quantities and nutrition stay blank. Serving controls appear only when the author supplied a count. Canonical /recipes/<slug> pages are server rendered; incomplete protocols remain readable without Recipe schema. Imported drafts stay private until published. Sources/video appear as visible URLs in canonical pages and links in interactive recipe details.\\n\\n## Optional paid product links\\n\\nSome website recipes may show Ingredient links or Equipment links with a paid-link disclosure immediately before each group. They are optional; ingredients and cooking instructions stay usable without shopping. Print cards, cooking, native sharing, meal plans and shopping lists stay plain. The site team can turn links off or exclude a recipe. No prices, ratings or availability claims are provided.\\n\", \"category\": \"recipes\", \"tags\": [\"recipes\", \"help\"], \"productSlug\": \"recipes\", \"productLabel\": \"Recipes\", \"sectionKey\": \"recipes\", \"sectionLabel\": \"Recipes\", \"readingMinutes\": 2, \"order\": 10, \"seo\": { \"description\": \"How to discover, cook, save, shop from, and review published recipes.\" } }], \"analytics\": { \"events\": [{ \"id\": \"cedros-recipes:recipe-viewed\", \"displayName\": \"Recipe Viewed\", \"description\": \"A visitor opened a published recipe.\", \"category\": \"recipes\", \"kind\": \"recipe_view\", \"visibility\": \"public\" }, { \"id\": \"cedros-recipes:recipe-saved\", \"displayName\": \"Recipe Saved\", \"description\": \"An authenticated visitor saved or favorited a recipe.\", \"category\": \"recipes\", \"visibility\": \"authenticated\" }, { \"id\": \"cedros-recipes:shopping-list-created\", \"displayName\": \"Shopping List Created\", \"description\": \"A visitor generated or updated a recipe shopping list.\", \"category\": \"recipes\", \"visibility\": \"authenticated\" }, { \"id\": \"cedros-recipes:ai-job-completed\", \"displayName\": \"Recipe AI Job Completed\", \"description\": \"An admin AI enhancement job completed and awaits review.\", \"category\": \"recipes\", \"visibility\": \"admin\" }, { \"id\": \"cedros-recipes:paid-recipe-locked\", \"displayName\": \"Paid Recipe Locked\", \"description\": \"A visitor reached a locked paid recipe.\", \"category\": \"recipes\", \"kind\": \"purchase_intent_view\", \"visibility\": \"public\" }, { \"id\": \"cedros-recipes:review-submitted\", \"displayName\": \"Recipe Review Submitted\", \"description\": \"A visitor submitted a recipe review for moderation.\", \"category\": \"recipes\", \"visibility\": \"authenticated\" }, { \"id\": \"cedros-recipes:affiliate-link-clicked\", \"displayName\": \"Recipe Affiliate Link Clicked\", \"description\": \"A visitor follows a direct Amazon paid link on a website recipe; metadata contains only recipeId and itemKey.\", \"category\": \"recipes\", \"visibility\": \"public\" }] }, \"i18nCatalogs\": [{ \"locale\": \"en\", \"namespace\": \"cedros-recipes\", \"catalog\": { \"navigation\": { \"sections\": { \"recipes\": \"Recipes\", \"collections\": \"Collections\", \"aiQueue\": \"AI queue\", \"reviews\": \"Reviews\", \"reports\": \"Reports\", \"settings\": \"Settings\", \"taxonomies\": \"Recipe vocabulary\", \"cookbooks\": \"Cookbooks\" }, \"groups\": { \"assistant\": \"Assistant\", \"tools\": \"Tools\", \"extensionSettings\": \"Extension Settings\", \"grow\": \"Grow\" } } } }], \"providerAccess\": [{ \"id\": \"cedros-recipes:intelligence-assist\", \"provider\": \"intelligence\", \"displayName\": \"Recipe Intelligence\", \"description\": \"Generates reviewed pairing and substitution assistance from admin-provided structured recipe data.\", \"scopes\": [\"chat.generate\"], \"tags\": [\"recipes\", \"ai\"] }, { \"id\": \"cedros-recipes:image-generation\", \"provider\": \"imageGeneration\", \"displayName\": \"Recipe Image Generation\", \"description\": \"Released image-provider grant retained for compatibility; no image action is exposed until Cedros publishes the required provider binding.\", \"scopes\": [\"image.generate\"], \"tags\": [\"recipes\", \"images\"] }, { \"id\": \"cedros-recipes:recipe-media-storage\", \"provider\": \"storage\", \"displayName\": \"Recipe Media Storage\", \"description\": \"Released media-storage grant retained for compatibility; the extension exposes no storage action.\", \"scopes\": [\"storage.read\", \"storage.write\"], \"tags\": [\"recipes\", \"media\"] }, { \"id\": \"cedros-recipes:recipe-email\", \"provider\": \"email\", \"displayName\": \"Recipe Email Notifications\", \"description\": \"Released email grant retained for compatibility; the extension exposes no email action.\", \"scopes\": [\"email.send\"], \"tags\": [\"recipes\", \"notifications\"] }], \"databaseAccess\": [{ \"id\": \"cedros-recipes:recipes-db\", \"displayName\": \"Recipes Database\", \"description\": \"Reads and writes extension-owned recipe, taxonomy, library, review, AI, import, and report records.\", \"contentModels\": [\"cedros-recipes:recipes\", \"cedros-recipes:recipe-versions\", \"cedros-recipes:taxonomies\", \"cedros-recipes:collections\", \"cedros-recipes:cookbooks\", \"cedros-recipes:bundles\", \"cedros-recipes:access-rules\", \"cedros-recipes:user-library\", \"cedros-recipes:shopping-lists\", \"cedros-recipes:reviews\", \"cedros-recipes:ai-jobs\", \"cedros-recipes:imports\", \"cedros-recipes:audit-events\", \"cedros-recipes:report-snapshots\", \"cedros-recipes:meal-plans\", \"cedros-recipes:write-guards\", \"cedros-recipes:configuration\"], \"migrations\": [\"cedros-recipes:recipes-v1\", \"cedros-recipes:recipe-versions-v1\", \"cedros-recipes:taxonomies-v1\", \"cedros-recipes:collections-v1\", \"cedros-recipes:cookbooks-v1\", \"cedros-recipes:bundles-v1\", \"cedros-recipes:access-rules-v1\", \"cedros-recipes:user-library-v1\", \"cedros-recipes:shopping-lists-v1\", \"cedros-recipes:reviews-v1\", \"cedros-recipes:ai-jobs-v1\", \"cedros-recipes:imports-v1\", \"cedros-recipes:audit-events-v1\", \"cedros-recipes:report-snapshots-v1\", \"cedros-recipes:meal-plans-v1\"], \"scopes\": [{ \"verb\": \"read\", \"resource\": \"cedros-recipes extension-owned records\", \"summary\": \"Read recipe extension records through the host database seam.\" }, { \"verb\": \"count\", \"resource\": \"cedros-recipes extension-owned records\", \"summary\": \"Count recipe extension records through the host database seam.\" }, { \"verb\": \"write\", \"resource\": \"cedros-recipes extension-owned records\", \"summary\": \"Write recipe extension records through the host database seam.\" }, { \"verb\": \"delete\", \"resource\": \"cedros-recipes extension-owned records\", \"summary\": \"Delete recipe extension records through the host database seam.\" }], \"tags\": [\"recipes\", \"content\", \"analytics\"] }], \"customerTagAccess\": [{ \"id\": \"cedros-recipes:recipe-engagement-tags\", \"displayName\": \"Recipe Engagement Tags\", \"description\": \"Released managed-tag grant retained for compatibility; tag assignment is unavailable until a verified Cedros Login customer binding exists.\", \"scopes\": [\"read\", \"assign\", \"unassign\"], \"managedTagSlugs\": [\"cedros-recipes:saved-recipe\", \"cedros-recipes:paid-recipe-access\"], \"tags\": [\"recipes\", \"crm\"] }], \"jobSchedules\": [{ \"id\": \"cedros-recipes:ai-reconcile-schedule\", \"jobId\": \"cedros-recipes:ai-job-reconcile\", \"label\": \"Recipe AI job reconcile\", \"cron\": \"*/15 * * * *\", \"timezone\": \"America/Los_Angeles\", \"catchUp\": false, \"enabled\": true, \"timeoutSeconds\": 300, \"maxRetries\": 0, \"channelIds\": [], \"autoCreateOnEnable\": true }, { \"id\": \"cedros-recipes:analytics-rollup-schedule\", \"jobId\": \"cedros-recipes:recipe-analytics-rollup\", \"label\": \"Recipe analytics rollup\", \"cron\": \"20 * * * *\", \"timezone\": \"America/Los_Angeles\", \"catchUp\": false, \"enabled\": true, \"timeoutSeconds\": 300, \"maxRetries\": 0, \"channelIds\": [], \"autoCreateOnEnable\": true }, { \"id\": \"cedros-recipes:paid-access-reconcile-schedule\", \"jobId\": \"cedros-recipes:paid-access-reconcile\", \"label\": \"Paid recipe access reconcile\", \"cron\": \"35 * * * *\", \"timezone\": \"America/Los_Angeles\", \"catchUp\": false, \"enabled\": true, \"timeoutSeconds\": 300, \"maxRetries\": 0, \"channelIds\": [], \"autoCreateOnEnable\": true }, { \"id\": \"cedros-recipes:import-cleanup-schedule\", \"jobId\": \"cedros-recipes:import-cleanup\", \"label\": \"Recipe import cleanup\", \"cron\": \"45 3 * * *\", \"timezone\": \"America/Los_Angeles\", \"catchUp\": false, \"enabled\": true, \"timeoutSeconds\": 300, \"maxRetries\": 0, \"channelIds\": [], \"autoCreateOnEnable\": true }, { \"id\": \"cedros-recipes:report-rollup-schedule\", \"jobId\": \"cedros-recipes:report-rollup\", \"label\": \"Recipe report rollup\", \"cron\": \"5 4 * * *\", \"timezone\": \"America/Los_Angeles\", \"catchUp\": false, \"enabled\": true, \"timeoutSeconds\": 600, \"maxRetries\": 0, \"channelIds\": [], \"autoCreateOnEnable\": true }], \"onboardingPages\": [{ \"id\": \"cedros-recipes:onboarding-recipes\", \"displayName\": \"Set up Recipes\", \"moduleId\": \"cedros-recipes:admin\", \"sectionId\": \"cedros-recipes:recipes\", \"description\": \"Create, complete, and publish the first recipe, then verify it on the Recipes page.\" }], \"routePolicies\": [{ \"routeId\": \"cedros-recipes:public-recipes-list\", \"endUserAuth\": \"optional\" }, { \"routeId\": \"cedros-recipes:public-recipe-read\", \"endUserAuth\": \"optional\" }, { \"routeId\": \"cedros-recipes:public-access-read\", \"endUserAuth\": \"optional\" }, { \"routeId\": \"cedros-recipes:public-favorite-write\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-recipes:public-shopping-list-read\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-recipes:public-shopping-list-write\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-recipes:public-review-create\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-recipes:public-print-read\", \"endUserAuth\": \"optional\" }, { \"routeId\": \"cedros-recipes:public-meal-plan-read\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-recipes:public-meal-plan-write\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-recipes:public-reader-state-read\", \"endUserAuth\": \"required\" }, { \"routeId\": \"cedros-recipes:public-review-status-read\", \"endUserAuth\": \"required\" }], \"seoRoutes\": [{ \"routeId\": \"cedros-recipes:recipe-seo-detail\", \"pathPattern\": \"/recipes/:slug\", \"indexable\": true, \"includeInSitemap\": true, \"canonicalStrategy\": \"self\", \"schemaType\": \"Recipe\", \"schemaContractVersion\": 2, \"servedLocales\": [\"en\"], \"chromeMode\": \"default\" }] };\nexport const generatedContentTemplates = [{ \"id\": \"cedros-recipes:recipes-index\", \"label\": \"Recipes Index\", \"contentTypes\": [\"page\"], \"zones\": [{ \"id\": \"main\", \"label\": \"Main\", \"order\": 0 }], \"blocks\": [{ \"type\": \"cedros-recipes:recipe-catalog\", \"zoneId\": \"main\", \"props\": { \"heading\": \"Recipes\", \"limit\": 24 } }] }, { \"id\": \"cedros-recipes:recipe-feature\", \"label\": \"Recipe Feature\", \"contentTypes\": [\"page\", \"blog\"], \"zones\": [{ \"id\": \"main\", \"label\": \"Main\", \"order\": 0 }], \"blocks\": [{ \"type\": \"cedros-recipes:recipe-detail\", \"zoneId\": \"main\", \"props\": { \"slug\": \"\" } }, { \"type\": \"cedros-recipes:recipe-card-grid\", \"zoneId\": \"main\", \"props\": { \"limit\": 3 } }] }];\n","imports":[],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/manifest.js","kind":"module","text":"import { generatedManifest } from \"./generated-manifest.js\";\nexport const extensionManifest = generatedManifest;\n","imports":[{"dynamic":false,"end":58,"specifier":"./generated-manifest.js","start":35}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/SearchField.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useId, useRef } from \"react\";\n// The public admin shim has no SearchInput export. Compose the documented\n// native input and ghost action; each surface retains its own control styling.\nexport function SearchField({ label, value, onChange, placeholder, admin = false, hideLabel = false, className = \"\" }) {\n    const id = useId();\n    const input = useRef(null);\n    function clear() {\n        input.current?.focus();\n        onChange(\"\");\n    }\n    return _jsxs(\"div\", { className: `crx-field ${admin ? \"cedros-data-field\" : \"\"} ${className}`, children: [_jsx(\"label\", { htmlFor: id, className: hideLabel ? \"crx-visually-hidden\" : admin ? \"cedros-data-label\" : undefined, children: label }), _jsxs(\"div\", { className: \"crx-search\", children: [_jsxs(\"svg\", { className: \"crx-search__icon\", \"aria-hidden\": \"true\", width: \"16\", height: \"16\", viewBox: \"0 0 24 24\", fill: \"none\", stroke: \"currentColor\", strokeWidth: \"2\", strokeLinecap: \"round\", children: [_jsx(\"circle\", { cx: \"10.5\", cy: \"10.5\", r: \"6.5\" }), _jsx(\"path\", { d: \"m16 16 4 4\" })] }), _jsx(\"input\", { ref: input, id: id, type: \"search\", className: `crx-input ${admin ? \"cedros-data-input\" : \"\"}`, value: value, placeholder: placeholder, onChange: (event) => onChange(event.target.value), onKeyDown: (event) => {\n                            if (event.key === \"Escape\" && value) {\n                                event.preventDefault();\n                                event.stopPropagation();\n                                clear();\n                            }\n                        } }), value ? _jsx(\"button\", { className: `crx-search__clear ${admin ? \"cedros-data-btn cedros-data-btn--ghost\" : \"crx-button ghost\"}`, type: \"button\", \"aria-label\": `Clear ${label.toLowerCase()}`, title: \"Clear search\", onClick: clear, children: _jsx(\"svg\", { \"aria-hidden\": \"true\", width: \"16\", height: \"16\", viewBox: \"0 0 24 24\", fill: \"none\", stroke: \"currentColor\", strokeWidth: \"2\", strokeLinecap: \"round\", children: _jsx(\"path\", { d: \"m6 6 12 12M6 18 18 6\" }) }) }) : null] })] });\n}\n","imports":[{"dynamic":false,"end":61,"specifier":"react/jsx-runtime","start":44},{"dynamic":false,"end":100,"specifier":"react","start":95}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/affiliates.js","kind":"module","text":"export const DEFAULT_AFFILIATE_DISCLOSURE = \"Paid links: if you buy through these Amazon links, we may earn a commission. As an Amazon Associate I earn from qualifying purchases.\";\nexport const AMAZON_DOMAINS = [\"amazon.com\", \"amazon.ca\", \"amazon.com.mx\", \"amazon.com.br\", \"amazon.co.uk\", \"amazon.ie\", \"amazon.de\", \"amazon.fr\", \"amazon.it\", \"amazon.es\", \"amazon.nl\", \"amazon.com.be\", \"amazon.se\", \"amazon.pl\", \"amazon.co.jp\", \"amazon.in\", \"amazon.com.au\", \"amazon.sg\", \"amazon.ae\", \"amazon.sa\", \"amazon.com.tr\", \"amazon.eg\", \"amazon.co.za\"];\nexport const validAsin = (value) => typeof value === \"string\" && /^[A-Z0-9]{10}$/.test(value);\nexport const validAmazonTag = (value) => typeof value === \"string\" && value.length <= 64 && /^[A-Za-z0-9][A-Za-z0-9-]*-[0-9]{2}$/.test(value);\nexport function validateProductLink(value) {\n    if (!value || typeof value !== \"object\" || Array.isArray(value))\n        return false;\n    const link = value;\n    if (Object.keys(link).some(key => ![\"retailer\", \"asin\", \"url\", \"label\"].includes(key)) || link.retailer !== \"amazon\" || !validAsin(link.asin) || typeof link.label !== \"string\" || !link.label.trim() || [...link.label].length > 500)\n        return false;\n    if (link.url == null)\n        return true;\n    return typeof link.url === \"string\" && AMAZON_DOMAINS.some(domain => [domain, `www.${domain}`].some(host => [`https://${host}/dp/${link.asin}`, `https://${host}/gp/product/${link.asin}`].includes(link.url)));\n}\nexport const AFFILIATE_CLICK_EVENT = \"cedros-recipes:affiliate-link-clicked\";\nexport function trackAffiliateClick(recipeId, itemKey) {\n    try {\n        const result = window.c11tihf5Analytics?.trackExtensionEvent({ extensionId: \"cedros-recipes\", eventId: AFFILIATE_CLICK_EVENT, metadata: { recipeId, itemKey } });\n        void Promise.resolve(result).catch(() => { });\n    }\n    catch { /* The host tracker may be absent, disabled or unavailable. */ }\n}\nexport function isAffiliateGroups(value) {\n    if (!value || typeof value !== \"object\")\n        return false;\n    const groups = value;\n    return typeof groups.disclosure === \"string\" && [...groups.disclosure].length <= 2000 && groups.disclosure.includes(\"As an Amazon Associate I earn from qualifying purchases.\") && [\"ingredients\", \"equipment\"].every(kind => Array.isArray(groups[kind]) && groups[kind].every(value => {\n        if (!value || typeof value !== \"object\")\n            return false;\n        const link = value;\n        if (typeof link.itemKey !== \"string\" || !link.itemKey.startsWith(`${kind}:`) || typeof link.label !== \"string\" || !link.label.trim() || [...link.label].length > 500 || typeof link.href !== \"string\")\n            return false;\n        try {\n            const url = new URL(link.href);\n            const asin = url.pathname.slice(4);\n            const tag = url.searchParams.get(\"tag\");\n            return validAsin(asin) && validAmazonTag(tag) && AMAZON_DOMAINS.some(domain => link.href === `https://www.${domain}/dp/${asin}?tag=${tag}`);\n        }\n        catch {\n            return false;\n        }\n    }));\n}\n","imports":[],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/api.js","kind":"module","text":"import { isRecipesResponse } from \"./apiResponse.js\";\nexport class RecipesApiError extends Error {\n    status;\n    body;\n    constructor(status, message, body) {\n        super(message);\n        this.name = \"RecipesApiError\";\n        this.status = status;\n        this.body = body;\n    }\n}\nexport const defaultPublicRecipeSettings = {\n    showPrepTime: true,\n    showReviews: true,\n    showNutrition: false,\n    safetyDisclaimer: {\n        enabled: true,\n        text: \"Recipe information is provided for general cooking purposes and does not replace professional food safety, allergy, medical, or nutrition guidance.\"\n    }\n};\nexport function createRecipesApiClient(options = {}) {\n    const baseUrl = normalizeBaseUrl(options.serverUrl);\n    const transport = { getAccessToken: options.getAccessToken, fetchImpl: options.fetchImpl };\n    return {\n        listRecipes: (params) => request(baseUrl, \"/admin/recipes\", { params, ...transport }),\n        listMigrationBatches: (offset = 0) => request(baseUrl, \"/admin/agent\", { method: \"POST\", body: { action: \"import-status\", offset }, ...transport }),\n        migrationBatch: (action, input) => request(baseUrl, \"/admin/agent\", { method: \"POST\", body: { action: `import-${action}`, ...input }, ...transport }),\n        renderStory: story => request(baseUrl, \"/admin/agent\", { method: \"POST\", body: { action: \"story-preview\", story }, ...transport }),\n        getRecipeHistory: (id, offset, recordVersion) => request(baseUrl, \"/admin/recipe\", { params: { id, history: true, offset, recordVersion }, ...transport }),\n        restoreRecipeVersion: (id, restoreVersionId, recordVersion) => request(baseUrl, \"/admin/recipe\", { method: \"PATCH\", body: { id, restoreVersionId, recordVersion }, ...transport }),\n        getRecipeForRecovery: (id) => request(baseUrl, \"/admin/recipe\", { params: { id, recovery: true }, ...transport }),\n        getRecipe: (id) => request(baseUrl, \"/admin/recipe\", { params: { id }, ...transport }),\n        saveRecipe: (recipe) => request(baseUrl, \"/admin/recipe\", { method: \"PATCH\", body: { recipe }, ...transport }),\n        createRecipe: (recipe) => request(baseUrl, \"/admin/recipes\", { method: \"POST\", body: { recipe }, ...transport }),\n        publishRecipe: (recipeOrId, recordVersion) => request(baseUrl, \"/admin/recipe/publish\", {\n            method: \"POST\",\n            body: typeof recipeOrId === \"string\" ? { id: recipeOrId, recordVersion } : { recipe: recipeOrId },\n            ...transport\n        }),\n        archiveRecipe: (id, recordVersion) => request(baseUrl, \"/admin/recipe/archive\", { method: \"POST\", body: { id, recordVersion }, ...transport }),\n        duplicateRecipe: (id) => request(baseUrl, \"/admin/recipe/duplicate\", { method: \"POST\", body: { id }, ...transport }),\n        getTaxonomies: () => request(baseUrl, \"/admin/taxonomies\", { ...transport }),\n        saveTaxonomies: (payload) => request(baseUrl, \"/admin/taxonomies\", { method: \"PUT\", body: payload, ...transport }),\n        getCollections: () => request(baseUrl, \"/admin/collections\", { ...transport }),\n        saveCollections: (payload) => request(baseUrl, \"/admin/collections\", { method: \"PUT\", body: payload, ...transport }),\n        saveCollection: (collection) => request(baseUrl, \"/admin/collections\", { method: \"PUT\", body: { collection }, ...transport }),\n        deleteCollection: (id, recordVersion) => request(baseUrl, \"/admin/collections\", { method: \"PUT\", body: { deleteCollection: { id, recordVersion } }, ...transport }),\n        getCookbooks: async () => {\n            const result = await request(baseUrl, \"/admin/cookbooks\", { params: { managed: true }, ...transport });\n            if (!Array.isArray(result.recovery))\n                throw new Error(\"The cookbook library response is incomplete. Refresh before editing.\");\n            return result;\n        },\n        saveCookbook: (cookbook) => request(baseUrl, \"/admin/cookbooks\", { method: \"PUT\", body: { cookbook }, ...transport }),\n        deleteCookbook: (id, recordVersion) => request(baseUrl, \"/admin/cookbooks\", { method: \"PUT\", body: { deleteCookbook: { id, recordVersion } }, ...transport }),\n        getSettings: () => request(baseUrl, \"/admin/settings\", { ...transport }),\n        saveSettings: (payload) => request(baseUrl, \"/admin/settings\", { method: \"PUT\", body: payload, ...transport }),\n        listAiJobs: () => request(baseUrl, \"/admin/ai/jobs\", { ...transport }),\n        getAiQueueSummary: async () => {\n            const result = await request(baseUrl, \"/admin/ai/jobs\", { params: { summary: true }, ...transport });\n            if (!result.summary)\n                throw new Error(\"The AI queue summary response is incomplete. Refresh before relying on its counts.\");\n            return result;\n        },\n        createAiJob: (payload) => request(baseUrl, \"/admin/ai/jobs\", { method: \"POST\", body: payload, ...transport }),\n        approveAiJob: (jobId, recordVersion, decision = \"approve\") => request(baseUrl, \"/admin/ai/jobs/approve\", { method: \"POST\", body: { jobId, recordVersion, decision }, ...transport }),\n        listReviews: () => request(baseUrl, \"/admin/reviews\", { ...transport }),\n        moderateReview: (id, status, recordVersion) => request(baseUrl, \"/admin/reviews/moderate\", { method: \"POST\", body: { id, status, recordVersion }, ...transport }),\n        getAffiliateAudit: recipeId => request(baseUrl, \"/admin/affiliate-links\", { params: { recipeId }, ...transport }),\n        getReportSummary: () => request(baseUrl, \"/admin/reports/summary\", { ...transport }),\n        listAudit: () => request(baseUrl, \"/admin/audit\", { ...transport }),\n        importRecipes: (payload) => request(baseUrl, \"/admin/import\", { method: \"POST\", body: payload, ...transport }),\n        exportRecipes: () => request(baseUrl, \"/admin/export\", { ...transport })\n    };\n}\nexport function createPublicApiClient(options = {}) {\n    const baseUrl = normalizeBaseUrl(options.serverUrl);\n    // Public visitor authentication is host-owned. The native host publishes only\n    // serverUrl/fetchImpl; no bearer credential or cookie parser is introduced.\n    const requestOptions = { fetchImpl: options.fetchImpl };\n    let snapshot = { generation: 0, status: \"unknown\" };\n    let requestSequence = 0;\n    let authoritySequence = 0;\n    const listeners = new Set();\n    function publish(next) {\n        snapshot = next;\n        for (const listener of listeners)\n            listener();\n    }\n    function requireScope(expected) {\n        if (typeof expected !== \"string\" || snapshot.status !== \"ready\" || snapshot.scope !== expected) {\n            throw new RecipesApiError(409, \"The signed-in reader must be checked again before this action.\");\n        }\n    }\n    async function scoped(path, options = {}, expectedScope) {\n        const generation = snapshot.generation;\n        const sequence = ++requestSequence;\n        if (expectedScope !== undefined)\n            requireScope(expectedScope);\n        try {\n            const result = await request(baseUrl, path, { ...requestOptions, ...options });\n            if (generation !== snapshot.generation)\n                throw new RecipesApiError(409, \"This response belongs to a retired reader view. Check the current account again.\");\n            const scope = result && typeof result === \"object\" && \"readerScope\" in result ? result.readerScope : undefined;\n            const actions = result && typeof result === \"object\" && \"customerActionsState\" in result ? result.customerActionsState : undefined;\n            if (actions === \"signed_out\" && scope === undefined) {\n                if (sequence < authoritySequence)\n                    throw new RecipesApiError(409, \"A newer response already checked the current reader. Reread this view.\");\n                authoritySequence = sequence;\n                if (snapshot.scope) {\n                    publish({ generation: generation + 1, status: \"signed_out\" });\n                    throw new RecipesApiError(401, \"Sign in again to check private recipe actions.\");\n                }\n                if (snapshot.status !== \"signed_out\")\n                    publish({ generation, status: \"signed_out\" });\n            }\n            if (typeof scope === \"string\") {\n                if (sequence < authoritySequence && snapshot.scope !== scope)\n                    throw new RecipesApiError(409, \"A newer response already checked a different reader. Reread this view.\");\n                authoritySequence = Math.max(authoritySequence, sequence);\n                if (snapshot.scope && snapshot.scope !== scope) {\n                    publish({ scope, generation: generation + 1, status: \"ready\" });\n                    throw new RecipesApiError(409, \"The signed-in reader changed. Previous private work was retired; check this view again.\");\n                }\n                if (snapshot.status !== \"ready\")\n                    publish({ scope, generation, status: \"ready\" });\n                if (expectedScope && scope !== expectedScope)\n                    throw new RecipesApiError(409, \"The response did not confirm the original reader.\");\n            }\n            return result;\n        }\n        catch (reason) {\n            if (generation !== snapshot.generation)\n                throw new RecipesApiError(409, \"This action belongs to a retired reader view. Check the current account again.\");\n            if (reason instanceof RecipesApiError && (reason.status === 401 || reason.status === 403)) {\n                if (sequence < authoritySequence)\n                    throw new RecipesApiError(409, \"A newer response already checked the current reader. Reread this view.\");\n                authoritySequence = sequence;\n                const status = reason.status === 401 ? \"signed_out\" : \"denied\";\n                if (snapshot.status !== status || snapshot.scope)\n                    publish({ generation: generation + 1, status });\n            }\n            throw reason;\n        }\n    }\n    return {\n        getReaderSnapshot: () => snapshot,\n        subscribeReader: listener => { listeners.add(listener); return () => { listeners.delete(listener); }; },\n        getReaderState: recipeId => scoped(\"/public/reader-state\", { params: { recipeId } }),\n        getReviewStatus: (submissionId, expectedReaderScope) => scoped(\"/public/review-status\", { params: { submissionId, expectedReaderScope } }, expectedReaderScope),\n        listRecipes: async (params) => {\n            const result = await scoped(\"/public/recipes\", { params });\n            if (params?.saved && !result.readerScope)\n                throw new RecipesApiError(502, \"The saved catalog did not confirm its reader.\");\n            return result;\n        },\n        getRecipe: params => scoped(\"/public/recipe\", { params }),\n        getAccess: recipeId => scoped(\"/public/access\", { params: { recipeId } }),\n        favorite: (recipeId, saved, expected) => scoped(\"/public/favorite\", { method: \"POST\", body: { recipeId, saved, ...expected } }, expected?.expectedReaderScope),\n        getShoppingList: () => scoped(\"/public/shopping-list\"),\n        saveShoppingList: payload => {\n            if (payload.expectedReaderScope !== undefined)\n                requireScope(payload.expectedReaderScope);\n            return scoped(\"/public/shopping-list\", { method: \"POST\", body: payload }, typeof payload.expectedReaderScope === \"string\" ? payload.expectedReaderScope : undefined);\n        },\n        getMealPlan: weekStart => scoped(\"/public/meal-plan\", { params: { weekStart } }),\n        saveMealPlan: (plan, expectedReaderScope) => {\n            if (expectedReaderScope !== undefined)\n                requireScope(expectedReaderScope);\n            return scoped(\"/public/meal-plan\", { method: \"POST\", body: { ...plan, expectedReaderScope } }, expectedReaderScope);\n        },\n        submitReview: payload => {\n            if (payload.expectedReaderScope !== undefined)\n                requireScope(payload.expectedReaderScope);\n            return scoped(\"/public/reviews\", { method: \"POST\", body: payload }, typeof payload.expectedReaderScope === \"string\" ? payload.expectedReaderScope : undefined);\n        },\n        getPrintRecipe: slug => scoped(\"/public/print\", { params: { slug } })\n    };\n}\n// Web blocks share the same response-derived reader lifecycle.\nexport const publicRecipesApi = createPublicApiClient();\nasync function request(baseUrl, path, options = {}) {\n    const url = withParams(`${baseUrl}${path}`, options.params);\n    const headers = { accept: \"application/json\" };\n    const token = options.getAccessToken?.();\n    if (token)\n        headers.authorization = `Bearer ${token}`;\n    if (options.body !== undefined)\n        headers[\"content-type\"] = \"application/json\";\n    const response = await (options.fetchImpl || fetch)(url, {\n        method: options.method || \"GET\",\n        headers,\n        body: options.body === undefined ? undefined : JSON.stringify(options.body),\n        credentials: \"same-origin\"\n    });\n    const text = await response.text();\n    const body = text ? safeJson(text) : undefined;\n    if (!response.ok) {\n        const errorBody = isApiErrorBody(body) ? body : undefined;\n        throw new RecipesApiError(response.status, errorBody?.message || response.statusText || \"Request failed\", errorBody);\n    }\n    if (!isRecipesResponse(path, options.method || \"GET\", body)) {\n        throw new RecipesApiError(502, \"The Recipes server returned an invalid response.\");\n    }\n    return body;\n}\nfunction normalizeBaseUrl(serverUrl) {\n    const root = serverUrl?.replace(/\\/$/, \"\") || \"\";\n    return `${root}/extensions/cedros-recipes`;\n}\nfunction withParams(url, params) {\n    const query = new URLSearchParams();\n    for (const [key, value] of Object.entries(params || {})) {\n        if (value !== undefined && value !== \"\")\n            query.set(key, String(value));\n    }\n    const qs = query.toString();\n    return qs ? `${url}?${qs}` : url;\n}\nfunction safeJson(text) {\n    try {\n        return JSON.parse(text);\n    }\n    catch {\n        return undefined;\n    }\n}\nfunction isApiErrorBody(value) {\n    return Boolean(value && typeof value === \"object\" && \"error\" in value && typeof value.error === \"string\" && \"message\" in value && typeof value.message === \"string\");\n}\n","imports":[{"dynamic":false,"end":51,"specifier":"./apiResponse.js","start":35}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/apiResponse.js","kind":"module","text":"import { isAffiliateGroups } from \"./affiliates.js\";\n// Validate the server's response envelopes before callers change UI or saved state.\n// Unknown fields remain intact so compatible future and legacy data can round-trip.\nimport { validWeekStart } from \"./mealPlanning.js\";\nconst record = (value) => value !== null && typeof value === \"object\" && !Array.isArray(value);\nconst string = (value) => typeof value === \"string\";\nconst number = (value) => typeof value === \"number\" && Number.isFinite(value);\nconst count = (value) => number(value) && Number.isInteger(value) && Number(value) >= 0;\nconst array = (value, check) => Array.isArray(value) && value.every(check);\nconst fields = (value, keys, check) => record(value) && keys.every((key) => check(value[key]));\nconst optional = (value, check) => value === undefined || value === null || check(value);\nconst oneOf = (value, choices) => typeof value === \"string\" && choices.includes(value);\nconst versioned = (value) => record(value) && typeof value._cedrosRecordVersion === \"string\" && value._cedrosRecordVersion.length > 0;\nfunction recipe(value) {\n    return fields(value, [\"id\", \"slug\", \"title\", \"status\"], string) && record(value)\n        && record(value.access) && oneOf(value.access.kind, [\"free\", \"paid\", \"membership\", \"private\"]) && optional(value.servings, number)\n        && [\"categories\", \"cuisines\", \"dietaryLabels\", \"tags\", \"substitutions\", \"pairings\", \"allergens\"].every((key) => array(value[key], string))\n        && array(value.equipment, (item) => string(item) || fields(item, [\"id\", \"name\"], string))\n        && array(value.ingredients, (item) => fields(item, [\"id\", \"name\"], string))\n        && array(value.instructions, (item) => fields(item, [\"id\", \"text\"], string));\n}\nconst readerScope = value => typeof value === \"string\" && /^[a-f0-9]{64}$/.test(value);\nconst favorite = value => record(value) && string(value.recipeId) && typeof value.saved === \"boolean\" && (value.recordVersion === null || typeof value.recordVersion === \"string\" && value.recordVersion.length > 0) && (value.saved !== true || value.recordVersion !== null);\nfunction publicMetadata(value) {\n    return optional(value.affiliateLinks, isAffiliateGroups) && (value.readerScope === undefined || readerScope(value.readerScope))\n        && (value.saved !== true && value.customerActionsState !== \"available\" || readerScope(value.readerScope))\n        && optional(value.catalogVersion, string)\n        && optional(value.facets, (facets) => record(facets) && array(facets.dietaryLabels, string) && typeof facets.hasTimeFilter === \"boolean\")\n        && optional(value.saved, (value) => typeof value === \"boolean\")\n        && optional(value.paymentState, (state) => oneOf(state, [\"free\", \"granted\", \"locked\", \"signed_out\", \"pending\", \"failed\", \"refunded\", \"disputed\", \"stale\", \"unavailable\"]))\n        && optional(value.customerActionsState, (state) => oneOf(state, [\"available\", \"signed_out\", \"unavailable\"]))\n        && optional(value.reviews, (reviews) => array(reviews, (item) => record(item) && number(item.rating) && optional(item.title, string) && optional(item.body, string)))\n        && optional(value.collection, (item) => fields(item, [\"id\", \"slug\", \"title\"], string) && record(item) && optional(item.description, string))\n        && optional(value.cookbook, (item) => fields(item, [\"id\", \"slug\", \"title\"], string) && record(item) && optional(item.description, string))\n        && optional(value.publicSettings, (settings) => record(settings)\n            && fields(settings, [\"showPrepTime\", \"showReviews\", \"showNutrition\"], (item) => typeof item === \"boolean\")\n            && record(settings.safetyDisclaimer) && typeof settings.safetyDisclaimer.enabled === \"boolean\" && string(settings.safetyDisclaimer.text));\n}\nconst recovery = (value) => fields(value, [\"id\", \"title\", \"error\"], string) && record(value) && record(value.recipe) && versioned(value);\nconst recoveryList = (value) => value === undefined || array(value, recovery);\nconst collection = (value) => fields(value, [\"id\", \"slug\", \"title\"], string) && record(value)\n    && array(value.recipeIds, string) && optional(value.description, string);\nconst cookbook = (value) => collection(value) && record(value) && value.recipeCookbookVersion === 1 && oneOf(value.status, [\"draft\", \"published\", \"archived\"]);\nconst job = (value) => fields(value, [\"id\", \"recipeId\", \"jobType\"], string) && record(value)\n    && oneOf(value.status, [\"queued\", \"running\", \"needs_review\", \"approved\", \"rejected\", \"failed\"]);\nconst review = (value) => fields(value, [\"id\", \"recipeId\"], string) && record(value)\n    && oneOf(value.status, [\"pending\", \"approved\", \"rejected\"])\n    && count(value.rating) && Number(value.rating) >= 1 && Number(value.rating) <= 5;\nexport function isRecipesResponse(path, method, value) {\n    if (!record(value))\n        return false;\n    switch (path) {\n        case \"/admin/agent\":\n            return typeof value.storyHtml === \"string\" || migrationResponse(value);\n        case \"/admin/affiliate-links\":\n            if (method === \"PATCH\")\n                return recipe(value.recipe) && versioned(value.recipe);\n            return affiliateAudit(value);\n        case \"/admin/recipes\":\n            return method === \"POST\" ? recipe(value.recipe) && versioned(value.recipe) : array(value.recipes, recipe) && count(value.total) && recoveryList(value.invalidRecipes);\n        case \"/public/recipes\":\n            return array(value.recipes, recipe) && count(value.total) && publicMetadata(value);\n        case \"/admin/recipe\":\n            if (method === \"GET\" && value.history !== undefined)\n                return record(value.history) && string(value.history.recipeId) && count(value.history.total) && array(value.history.versions, (entry) => fields(entry, [\"id\", \"recipeId\", \"revision\", \"savedAt\"], string) && record(entry) && record(entry.recipe));\n            if (method === \"GET\" && value.recovery !== undefined)\n                return recovery(value.recovery);\n        case \"/admin/recipe/publish\":\n        case \"/admin/recipe/archive\":\n        case \"/admin/recipe/duplicate\":\n            return recipe(value.recipe) && (method === \"GET\" || versioned(value.recipe));\n        case \"/public/recipe\":\n        case \"/public/print\":\n            return recipe(value.recipe) && publicMetadata(value);\n        case \"/admin/collections\":\n            return array(value.collections, (item) => collection(item) && (method === \"GET\" || versioned(item)))\n                && array(value.cookbooks, (item) => fields(item, [\"id\"], string));\n        case \"/admin/cookbooks\":\n            if (value.recovery !== undefined)\n                return array(value.cookbooks, cookbook) && array(value.recovery, (item) => fields(item, [\"id\", \"title\", \"error\"], string) && record(item) && record(item.record));\n            if (value.deleted !== undefined)\n                return string(value.deleted);\n            if (value.cookbook !== undefined)\n                return cookbook(value.cookbook) && versioned(value.cookbook);\n            return array(value.collections, collection) && array(value.cookbooks, (item) => fields(item, [\"id\"], string));\n        case \"/admin/ai/jobs\":\n            return method === \"POST\" ? job(value.job) && versioned(value.job)\n                : value.summary !== undefined ? string(value.generatedAt) && fields(value.summary, [\"total\", \"running\", \"queued\", \"needsReview\", \"failed\"], count)\n                    : array(value.jobs, job);\n        case \"/admin/ai/jobs/approve\":\n            return job(value.job) && versioned(value.job)\n                && (value.recipe === undefined || recipe(value.recipe) && versioned(value.recipe));\n        case \"/admin/reviews\":\n            return array(value.reviews, review);\n        case \"/admin/reviews/moderate\":\n            return review(value.review) && versioned(value.review);\n        case \"/public/reviews\":\n            return readerScope(value.readerScope) && string(value.submissionId) && review(value.review) && record(value.review) && optional(value.review.title, string) && optional(value.review.body, string);\n        case \"/public/review-status\":\n            return readerScope(value.readerScope) && string(value.submissionId) && (value.review === null || review(value.review) && record(value.review) && optional(value.review.title, string) && optional(value.review.body, string));\n        case \"/public/reader-state\":\n            return readerScope(value.readerScope) && (value.recipeId === undefined ? value.favorite === undefined : string(value.recipeId) && favorite(value.favorite) && record(value.favorite) && value.favorite.recipeId === value.recipeId);\n        case \"/admin/audit\":\n            return array(value.events, (event) => fields(event, [\"id\", \"action\"], string));\n        case \"/admin/import\":\n            return count(value.imported) && Array.isArray(value.recipes) && array(value.recipes, recipe) && value.imported === value.recipes.length && optional(value.summary, summary => fields(summary, [\"created\", \"updated\", \"unchanged\"], count));\n        case \"/admin/export\":\n            return array(value.recipes, recipe) && string(value.exportedAt) && recoveryList(value.invalidRecipes);\n        case \"/admin/reports/summary\":\n            return fields(value.recipes, [\"total\", \"published\", \"paid\", \"draft\"], count)\n                && fields(value.reviews, [\"pending\", \"approved\", \"averageRating\"], number)\n                && fields(value.engagement, [\"favorites\", \"shoppingLists\"], count)\n                && fields(value.ai, [\"queued\", \"needsReview\", \"failed\"], count)\n                && fields(value.paidAccess, [\"granted\", \"pending\", \"failed\", \"refunded\", \"disputed\", \"missingPayProduct\"], count)\n                && optional(value.affiliates, affiliateAudit);\n        case \"/public/access\":\n            return fields(value, [\"recipeId\", \"accessKind\"], string) && typeof value.hasAccess === \"boolean\" && typeof value.locked === \"boolean\";\n        case \"/public/favorite\":\n            return readerScope(value.readerScope) && favorite(value.library);\n        case \"/public/shopping-list\":\n            return array(value.items, (item) => fields(item, [\"name\"], string) && record(item) && (item.checked === undefined || typeof item.checked === \"boolean\"))\n                && readerScope(value.readerScope) && (value._cedrosRecordVersion === undefined || versioned(value)) && (method === \"GET\" || versioned(value));\n        case \"/public/meal-plan\":\n            return typeof value.readerScope === \"string\" && /^[a-f0-9]{64}$/.test(value.readerScope) && record(value.plan) && typeof value.plan.weekStart === \"string\" && validWeekStart(value.plan.weekStart)\n                && Array.isArray(value.plan.meals) && value.plan.meals.length <= 21 && new Set(value.plan.meals.map(meal => record(meal) ? `${meal.day}:${meal.slot}` : \"\")).size === value.plan.meals.length\n                && array(value.plan.meals, meal => record(meal) && count(meal.day) && Number(meal.day) <= 6 && oneOf(meal.slot, [\"breakfast\", \"lunch\", \"dinner\"]) && string(meal.recipeId) && count(meal.servings) && Number(meal.servings) >= 1 && Number(meal.servings) <= 999 && string(meal.title) && typeof meal.available === \"boolean\" && optional(meal.slug, string))\n                && array(value.recipes, recipe) && (value.plan._cedrosRecordVersion === undefined || versioned(value.plan))\n                && (method === \"GET\" && value.plan.meals.length === 0 || versioned(value.plan));\n        case \"/admin/settings\":\n        case \"/admin/taxonomies\":\n            // An empty singleton is valid on first use. Writes must return its CAS token.\n            return method === \"GET\" || versioned(value);\n        default:\n            return false;\n    }\n}\nconst migrationBatch = value => record(value) && string(value.id) && versioned(value) && oneOf(value.status, [\"previewed\", \"committed\", \"rolled_back\"])\n    && fields(value.summary, [\"created\", \"updated\", \"unchanged\"], count)\n    && array(value.entries, entry => record(entry) && fields(entry, [\"id\", \"slug\", \"sourceKey\", \"sourceUrl\"], string) && oneOf(entry.change, [\"created\", \"updated\", \"unchanged\"]) && array(entry.blockers, string) && record(entry.after) && record(entry.source) && (entry.before === null || record(entry.before)));\nfunction migrationResponse(value) {\n    return value.batch !== undefined ? migrationBatch(value.batch) : count(value.total) && array(value.batches, migrationBatch);\n}\nconst affiliateAudit = value => record(value) && fields(value, [\"enabled\", \"switchEnabled\", \"validTag\"], item => typeof item === \"boolean\")\n    && record(value.clickReporting) && value.clickReporting.status === \"unavailable\" && string(value.clickReporting.reason) && string(value.clickReporting.issueUrl)\n    && array(value.recipes, item => record(item) && string(item.recipeId) && [item.title, item.slug].every(value => value === null || string(value))\n        && fields(item, [\"noAffiliateLinks\", \"rendering\"], value => typeof value === \"boolean\") && (item.clickCount === null || count(item.clickCount))\n        && array(item.links, link => record(link) && string(link.itemKey) && (link.name === null || string(link.name)) && fields(link, [\"valid\", \"missingAsin\"], value => typeof value === \"boolean\") && (link.clickCount === null || count(link.clickCount))));\n","imports":[{"dynamic":false,"end":50,"specifier":"./affiliates.js","start":35},{"dynamic":false,"end":272,"specifier":"./mealPlanning.js","start":255}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/domain.js","kind":"module","text":"import { parseQuantity } from \"./ingredientQuantity.js\";\nimport { normalizeEquipment } from \"./equipment.js\";\nexport { equipmentName, normalizeEquipment } from \"./equipment.js\";\nexport { ingredientLabel, ingredientCookingLabel } from \"./ingredientQuantity.js\";\nexport { recipeAccessCopy, groupIngredients, nutritionLabel, nutritionValue, recipeTimeLabel, RECIPE_TIME_FILTERS, recipeMatchesTimeLimit } from \"./presentation.js\";\nexport { isSafeRecipeImageUrl, validateRecipe } from \"./recipeValidation.js\";\nconst units = new Set([\n    \"tsp\",\n    \"tbsp\",\n    \"cup\",\n    \"cups\",\n    \"oz\",\n    \"fl oz\",\n    \"lb\",\n    \"lbs\",\n    \"g\",\n    \"kg\",\n    \"ml\",\n    \"l\",\n    \"pinch\",\n    \"dash\",\n    \"clove\",\n    \"cloves\",\n    \"slice\",\n    \"slices\",\n    \"can\",\n    \"package\",\n    \"bunch\",\n    \"each\"\n]);\nexport function emptyRecipe(seed = {}) {\n    const title = seed.title?.trim() || \"\";\n    return normalizeRecipe({\n        id: seed.id || makeClientId(\"recipe\"),\n        slug: seed.slug || slugify(title),\n        title,\n        status: seed.status || \"draft\",\n        access: seed.access || { kind: \"free\", previewMode: \"summary\" },\n        categories: seed.categories || [],\n        cuisines: seed.cuisines || [],\n        dietaryLabels: seed.dietaryLabels || [],\n        tags: seed.tags || [],\n        servings: seed.servings,\n        equipment: seed.equipment || [],\n        ingredients: seed.ingredients || [],\n        instructions: seed.instructions || [],\n        substitutions: seed.substitutions || [],\n        pairings: seed.pairings || [],\n        allergens: seed.allergens || [],\n        ...seed\n    });\n}\nexport function normalizeRecipe(input) {\n    const title = asText(input.title);\n    // Authoring must preserve invalid numeric input until validation can explain it.\n    const servings = input.servings == null ? undefined : Number(input.servings);\n    const prep = optionalMinutes(input.prepTimeMinutes);\n    const cook = optionalMinutes(input.cookTimeMinutes);\n    const rest = optionalMinutes(input.restTimeMinutes);\n    const retained = { ...input };\n    delete retained.entryKey;\n    return {\n        ...retained,\n        _cedrosRecordVersion: trimOptional(input._cedrosRecordVersion),\n        id: asText(input.id) || makeClientId(\"recipe\"),\n        slug: slugify(asText(input.slug) || title),\n        title,\n        subtitle: trimOptional(input.subtitle),\n        shortDescription: trimOptional(input.shortDescription),\n        introduction: trimOptional(input.introduction),\n        featuredImageUrl: trimOptional(input.featuredImageUrl),\n        featuredImageAlt: trimOptional(input.featuredImageAlt),\n        author: trimOptional(input.author),\n        status: normalizeStatus(input.status),\n        access: normalizeAccess(input.access),\n        categories: normalizeTextList(input.categories),\n        cuisines: normalizeTextList(input.cuisines),\n        dietaryLabels: normalizeTextList(input.dietaryLabels),\n        tags: normalizeTextList(input.tags),\n        difficulty: normalizeDifficulty(input.difficulty),\n        prepTimeMinutes: input.prepTimeMinutes == null ? undefined : prep,\n        cookTimeMinutes: input.cookTimeMinutes == null ? undefined : cook,\n        restTimeMinutes: input.restTimeMinutes == null ? undefined : rest,\n        totalTimeMinutes: input.totalTimeMinutes != null ? Number(input.totalTimeMinutes) : prep != null && cook != null && rest != null ? prep + cook + rest : undefined,\n        servings,\n        yieldText: trimOptional(input.yieldText),\n        equipment: normalizeEquipment(input.equipment || []),\n        ingredients: normalizeIngredients(input.ingredients),\n        instructions: normalizeInstructions(input.instructions),\n        notes: trimOptional(input.notes),\n        storage: trimOptional(input.storage),\n        reheating: trimOptional(input.reheating),\n        substitutions: normalizeTextList(input.substitutions),\n        pairings: normalizeTextList(input.pairings),\n        nutrition: input.nutrition && typeof input.nutrition === \"object\" ? input.nutrition : undefined,\n        allergens: normalizeTextList(input.allergens),\n        foodSafety: trimOptional(input.foodSafety),\n        seoTitle: trimOptional(input.seoTitle),\n        metaDescription: trimOptional(input.metaDescription),\n        sourceCredit: trimOptional(input.sourceCredit),\n        internalNotes: trimOptional(input.internalNotes),\n        aiGeneratedImage: input.aiGeneratedImage === true,\n        createdAt: trimOptional(input.createdAt),\n        updatedAt: trimOptional(input.updatedAt),\n        publishedAt: trimOptional(input.publishedAt)\n    };\n}\nexport function parseIngredientLines(value, existing = []) {\n    const unused = new Set(existing.map((_, index) => index));\n    const reservedIds = new Set(existing.map((item) => item.id));\n    const lines = value\n        .split(/\\r?\\n/)\n        .map((line) => line.trim())\n        .filter(Boolean);\n    // Reserve every exact match first so an edited duplicate cannot steal its metadata.\n    const exactMatches = lines.map((line) => {\n        const match = existing.findIndex((item, index) => unused.has(index) && serializeIngredientLines([item]) === line);\n        if (match >= 0)\n            unused.delete(match);\n        return match;\n    });\n    const parsedLines = lines.map(parseIngredientLine);\n    const matches = parsedLines.map((parsed, index) => {\n        if (exactMatches[index] >= 0)\n            return exactMatches[index];\n        const match = existing.findIndex((item, candidate) => unused.has(candidate) && item.name.toLocaleLowerCase() === parsed.name.toLocaleLowerCase());\n        if (match >= 0)\n            unused.delete(match);\n        return match;\n    });\n    const edits = lines.length === existing.length ? [...unused].values() : undefined;\n    return parsedLines.map((parsed, index) => {\n        if (exactMatches[index] >= 0)\n            return { ...existing[exactMatches[index]] };\n        const match = matches[index] >= 0 ? matches[index] : edits?.next().value ?? -1;\n        return match < 0 ? { ...parsed, id: reserveLineId(parsed.id, reservedIds) } : { ...existing[match], ...parsed, id: existing[match].id };\n    });\n}\nexport function serializeIngredientLines(ingredients) {\n    return ingredients.map((item) => {\n        const ingredient = [item.quantityText ?? item.quantity?.toString(), item.unit, item.name].filter(Boolean).join(\" \");\n        return item.preparation ? `${ingredient}, ${item.preparation}` : ingredient;\n    }).join(\"\\n\");\n}\nexport function parseInstructionLines(value, existing = []) {\n    const unused = new Set(existing.map((_, index) => index));\n    const reservedIds = new Set(existing.map((item) => item.id));\n    const lines = value\n        .split(/\\r?\\n/)\n        .map((line) => line.trim().replace(/^\\d+[.)](?:\\s+|$)/, \"\"))\n        .filter(Boolean);\n    const matches = lines.map((text) => {\n        const index = existing.findIndex((step, candidateIndex) => unused.has(candidateIndex) && step.text === text);\n        if (index >= 0)\n            unused.delete(index);\n        return index;\n    });\n    const unmatched = [...unused];\n    const canPairEdits = lines.length === existing.length\n        && matches.filter((index) => index < 0).length === unmatched.length;\n    let editIndex = 0;\n    return lines.map((text, index) => {\n        const preservedIndex = matches[index] >= 0 ? matches[index] : canPairEdits ? unmatched[editIndex++] : -1;\n        return preservedIndex >= 0\n            ? { ...existing[preservedIndex], text }\n            : { id: reserveLineId(makeStableId(\"step\", text, index), reservedIds), text };\n    });\n}\nexport function scaleIngredients(ingredients, fromServings, toServings) {\n    const ratio = safeRatio(fromServings, toServings);\n    return ingredients.map((ingredient) => {\n        const originalQuantity = ingredient.quantity ?? parseQuantity(ingredient.quantityText);\n        if (originalQuantity === undefined || ingredient.notes?.toLowerCase().includes(\"do not scale\"))\n            return ingredient;\n        const quantity = roundQuantity(originalQuantity * ratio);\n        return { ...ingredient, quantity, quantityText: formatQuantity(quantity) };\n    });\n}\nexport function normalizeServings(value, fallback = 0) {\n    if (value == null || typeof value === \"string\" && !value.trim())\n        return fallback ?? 0;\n    return clampInteger(value, 1, 999, fallback ?? 0);\n}\nexport function recipeMatchesQuery(recipe, query) {\n    const needle = query.trim().toLowerCase();\n    if (!needle)\n        return true;\n    return searchableText(recipe).includes(needle);\n}\nexport function recipeIsPublic(recipe) {\n    return recipe.status === \"published\" && recipe.access.kind !== \"private\";\n}\nexport function recipeIsReadyForPublish(recipe) {\n    return recipe.status === \"ready_to_publish\";\n}\nexport function recipeNeedsWork(recipe) {\n    return ![\"ready_to_publish\", \"published\", \"archived\", \"retired\"].includes(recipe.status);\n}\nexport function recipeYieldLabel(recipe, scaledServings = recipe.servings) {\n    if (recipe.servings && scaledServings && scaledServings !== recipe.servings)\n        return `Serves ${scaledServings}`;\n    return recipe.yieldText?.trim() || (recipe.servings ? `Serves ${recipe.servings}` : \"\");\n}\nexport function lockedPublicRecipe(recipe) {\n    return {\n        ...recipe,\n        ingredients: recipe.access.previewMode === \"ingredients\" ? recipe.ingredients : [],\n        instructions: [],\n        story: undefined,\n        storyHtml: undefined,\n        sources: undefined,\n        videoUrl: undefined,\n        notes: undefined,\n        storage: undefined,\n        reheating: undefined,\n        substitutions: [],\n        pairings: [],\n        foodSafety: undefined,\n        internalNotes: undefined\n    };\n}\nexport function slugify(value) {\n    const slug = value\n        .normalize(\"NFKD\")\n        .replace(/[\\u0300-\\u036f]/g, \"\")\n        .toLowerCase()\n        .replace(/[^a-z0-9]+/g, \"-\")\n        .replace(/^-+|-+$/g, \"\");\n    return slug || \"recipe\";\n}\nexport function makeClientId(prefix) {\n    return `${prefix}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;\n}\nfunction parseIngredientLine(line, index) {\n    const pieces = line.split(\",\").map((part) => part.trim());\n    const first = pieces.shift() || line;\n    const [quantityText, unit, name] = splitIngredientHead(first);\n    return {\n        id: makeStableId(\"ingredient\", line, index),\n        quantity: name ? parseQuantity(quantityText) : undefined,\n        quantityText: name ? quantityText : undefined,\n        unit: name ? unit : undefined,\n        name: name || first,\n        preparation: pieces.join(\", \") || undefined\n    };\n}\nfunction splitIngredientHead(value) {\n    const parts = value.split(/\\s+/);\n    const mixedQuantity = parts.slice(0, 2).join(\" \");\n    const quantity = parseQuantity(mixedQuantity) !== undefined\n        ? parts.splice(0, 2).join(\" \")\n        : parseQuantity(parts[0]) !== undefined\n            ? parts.shift()\n            : undefined;\n    const nextTwo = parts.slice(0, 2).join(\" \").toLowerCase();\n    const unit = units.has(nextTwo) ? parts.splice(0, 2).join(\" \") : units.has((parts[0] || \"\").toLowerCase()) ? parts.shift() : undefined;\n    return [quantity, unit, parts.join(\" \")];\n}\nfunction normalizeIngredients(value) {\n    if (!Array.isArray(value))\n        return [];\n    return value.map((item, index) => normalizeIngredient(item, index)).filter((item) => item.name);\n}\nfunction normalizeIngredient(value, index) {\n    const item = asRecord(value);\n    const name = asText(item.name);\n    return {\n        ...item,\n        id: asText(item.id) || makeStableId(\"ingredient\", name, index),\n        name,\n        quantity: optionalNumber(item.quantity),\n        quantityText: trimOptional(item.quantityText) ?? optionalNumber(item.quantity)?.toString(),\n        unit: trimOptional(item.unit),\n        preparation: trimOptional(item.preparation),\n        optional: item.optional === true,\n        group: trimOptional(item.group),\n        allergen: item.allergen === true,\n        notes: trimOptional(item.notes)\n    };\n}\nfunction normalizeInstructions(value) {\n    if (!Array.isArray(value))\n        return [];\n    return value.map((item, index) => normalizeInstruction(item, index)).filter((item) => item.text);\n}\nfunction normalizeInstruction(value, index) {\n    const item = asRecord(value);\n    const text = asText(item.text);\n    return {\n        ...item,\n        id: asText(item.id) || makeStableId(\"step\", text, index),\n        title: trimOptional(item.title),\n        text,\n        group: trimOptional(item.group),\n        timerMinutes: optionalMinutes(item.timerMinutes),\n        temperature: trimOptional(item.temperature),\n        equipment: trimOptional(item.equipment),\n        tip: trimOptional(item.tip),\n        warning: trimOptional(item.warning),\n        optional: item.optional === true\n    };\n}\nfunction normalizeAccess(value) {\n    const input = asRecord(value);\n    const kind = [\"free\", \"paid\", \"membership\", \"private\"].includes(String(input.kind)) ? input.kind : \"free\";\n    return {\n        ...input,\n        kind,\n        priceCents: optionalNumber(input.priceCents),\n        currency: trimOptional(input.currency) || (kind === \"paid\" ? \"USD\" : undefined),\n        payProductRef: trimOptional(input.payProductRef),\n        previewMode: [\"summary\", \"ingredients\", \"none\"].includes(String(input.previewMode)) ? input.previewMode : \"summary\"\n    };\n}\nfunction normalizeStatus(value) {\n    const allowed = [\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"];\n    return allowed.includes(String(value)) ? value : \"draft\";\n}\nfunction normalizeDifficulty(value) {\n    return [\"easy\", \"medium\", \"hard\", \"expert\"].includes(String(value)) ? value : undefined;\n}\nfunction normalizeTextList(value) {\n    const list = Array.isArray(value) ? value : typeof value === \"string\" ? value.split(\",\") : [];\n    return [...new Set(list.map((item) => String(item).trim()).filter(Boolean))];\n}\nfunction searchableText(recipe) {\n    return [\n        recipe.title,\n        recipe.shortDescription,\n        recipe.author,\n        ...recipe.categories,\n        ...recipe.cuisines,\n        ...recipe.dietaryLabels,\n        ...recipe.tags,\n        ...recipe.ingredients.map((item) => item.name)\n    ].join(\" \").toLowerCase();\n}\nfunction makeStableId(prefix, value, index) {\n    return `${prefix}-${index + 1}-${slugify(value).slice(0, 32) || \"item\"}`;\n}\nfunction reserveLineId(candidate, reserved) {\n    let id = candidate;\n    for (let suffix = 2; reserved.has(id); suffix += 1)\n        id = `${candidate}-${suffix}`;\n    reserved.add(id);\n    return id;\n}\nfunction safeRatio(fromServings, toServings) {\n    return fromServings && toServings ? toServings / fromServings : 1;\n}\nfunction roundQuantity(value) {\n    return Math.abs(value) < 0.01 || Math.abs(value) > Number.MAX_VALUE / 100 ? value : Math.round(value * 100) / 100;\n}\nfunction formatQuantity(value) {\n    return String(value);\n}\nfunction optionalMinutes(value) {\n    return value == null || value === \"\" ? undefined : Number(value);\n}\nfunction optionalNumber(value) {\n    if (value == null || typeof value === \"string\" && !value.trim())\n        return undefined;\n    return Number(value);\n}\nfunction clampInteger(value, min, max, fallback) {\n    const parsed = Number(value);\n    if (!Number.isFinite(parsed))\n        return fallback;\n    return Math.min(max, Math.max(min, Math.round(parsed)));\n}\nfunction asRecord(value) {\n    return value && typeof value === \"object\" ? value : {};\n}\nfunction asText(value) {\n    return typeof value === \"string\" ? value.trim() : \"\";\n}\nfunction trimOptional(value) {\n    const text = asText(value);\n    return text || undefined;\n}\n","imports":[{"dynamic":false,"end":54,"specifier":"./ingredientQuantity.js","start":31},{"dynamic":false,"end":107,"specifier":"./equipment.js","start":93},{"dynamic":false,"end":175,"specifier":"./equipment.js","start":161},{"dynamic":false,"end":258,"specifier":"./ingredientQuantity.js","start":235},{"dynamic":false,"end":424,"specifier":"./presentation.js","start":407},{"dynamic":false,"end":502,"specifier":"./recipeValidation.js","start":481}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/equipment.js","kind":"module","text":"// A runtime leaf: validation and normalization can share equipment behavior\n// without importing the domain barrel that re-exports validation.\nexport const equipmentName = (item) => typeof item === \"string\" ? item : item.name;\nexport function normalizeEquipment(items) {\n    const used = new Set(items.flatMap(item => typeof item === \"string\" ? [] : [item.id]));\n    return items.map((item, index) => {\n        if (typeof item !== \"string\")\n            return { ...item };\n        let id = `equipment-${index + 1}`;\n        while (used.has(id))\n            id += \"-\";\n        used.add(id);\n        return { id, name: item };\n    });\n}\n","imports":[],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/ingredientQuantity.js","kind":"module","text":"export function ingredientLabel(item) {\n    const quantity = item.quantityText?.trim() || item.quantity?.toString();\n    return [quantity, item.unit, item.name].filter(Boolean).join(\" \") + (item.preparation ? `, ${item.preparation}` : \"\");\n}\nexport function ingredientCookingLabel(item) {\n    const raw = item.quantityText?.trim();\n    const numeric = raw ? /^[+-]?\\d+(?:\\.\\d+)?(?:e[+-]?\\d+)?$/i.test(raw) ? Number(raw) : undefined : item.quantity;\n    const quantityText = numeric !== undefined && Number.isFinite(numeric) ? numeric.toLocaleString(undefined, { maximumSignificantDigits: 21 }) : raw;\n    return `${item.group ? `${item.group}: ` : \"\"}${ingredientLabel({ ...item, quantityText })}${item.optional ? \" (optional)\" : \"\"}${item.allergen ? \" — allergen\" : \"\"}${item.notes ? ` — ${item.notes}` : \"\"}`;\n}\nexport function parseQuantity(value) {\n    if (!value?.trim())\n        return undefined;\n    value = value.trim();\n    const fractions = { \"¼\": 1 / 4, \"½\": 1 / 2, \"¾\": 3 / 4, \"⅐\": 1 / 7, \"⅑\": 1 / 9, \"⅒\": 1 / 10, \"⅓\": 1 / 3, \"⅔\": 2 / 3, \"⅕\": 1 / 5, \"⅖\": 2 / 5, \"⅗\": 3 / 5, \"⅘\": 4 / 5, \"⅙\": 1 / 6, \"⅚\": 5 / 6, \"⅛\": 1 / 8, \"⅜\": 3 / 8, \"⅝\": 5 / 8, \"⅞\": 7 / 8 };\n    const unicode = value.match(/^(\\d+\\s*)?([¼½¾⅐⅑⅒⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞])$/);\n    if (unicode)\n        return Number(unicode[1] || 0) + fractions[unicode[2]];\n    if (/^\\d+\\s+\\d+\\/\\d+$/.test(value)) {\n        const [whole, fraction] = value.split(/\\s+/);\n        const [top, bottom] = fraction.split(\"/\").map(Number);\n        return bottom ? Number(whole) + top / bottom : undefined;\n    }\n    if (/^\\d+\\/\\d+$/.test(value)) {\n        const [top, bottom] = value.split(\"/\").map(Number);\n        return bottom ? top / bottom : undefined;\n    }\n    const parsed = Number(value);\n    return Number.isFinite(parsed) ? parsed : undefined;\n}\n","imports":[],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/mealPlanning.js","kind":"module","text":"import { ingredientCookingLabel, scaleIngredients } from \"./domain.js\";\nexport const MEAL_SLOTS = [\"breakfast\", \"lunch\", \"dinner\"];\nexport function validWeekStart(value) {\n    if (!/^\\d{4}-\\d{2}-\\d{2}$/.test(value) || Number(value.slice(0, 4)) < 1)\n        return false;\n    const date = new Date(`${value}T00:00:00Z`);\n    return Number.isFinite(date.getTime()) && date.toISOString().slice(0, 10) === value;\n}\nexport function currentWeek(now = new Date()) {\n    const day = new Date(now.getFullYear(), now.getMonth(), now.getDate());\n    day.setDate(day.getDate() - (day.getDay() + 6) % 7);\n    return `${String(day.getFullYear()).padStart(4, \"0\")}-${String(day.getMonth() + 1).padStart(2, \"0\")}-${String(day.getDate()).padStart(2, \"0\")}`;\n}\nexport function shiftWeek(week, weeks) {\n    if (!validWeekStart(week))\n        throw new Error(\"Choose a valid week starting date.\");\n    const date = new Date(`${week}T00:00:00Z`);\n    date.setUTCDate(date.getUTCDate() + weeks * 7);\n    const value = date.toISOString().slice(0, 10);\n    if (!validWeekStart(value))\n        throw new Error(\"This week is outside the supported calendar range.\");\n    return value;\n}\nexport function mealDayLabel(week, day) {\n    const date = new Date(`${week}T00:00:00Z`);\n    date.setUTCDate(date.getUTCDate() + day);\n    return new Intl.DateTimeFormat(undefined, { weekday: \"short\", month: \"short\", day: \"numeric\", timeZone: \"UTC\" }).format(date);\n}\nexport function mealPlanFingerprint(plan) {\n    return JSON.stringify([plan.weekStart, plan.meals.map(meal => [meal.day, meal.slot, meal.recipeId, meal.servings]).sort((a, b) => JSON.stringify(a).localeCompare(JSON.stringify(b)))]);\n}\nexport function validateMealPlan(plan) {\n    if (!validWeekStart(plan.weekStart))\n        return \"Choose a valid week starting date.\";\n    if (plan.meals.length > 21)\n        return \"A week can contain at most 21 meals.\";\n    const seen = new Set();\n    for (const meal of plan.meals) {\n        const key = `${meal.day}:${meal.slot}`;\n        if (!Number.isInteger(meal.day) || meal.day < 0 || meal.day > 6 || !MEAL_SLOTS.includes(meal.slot) || seen.has(key))\n            return \"Choose one recipe for each breakfast, lunch, or dinner slot.\";\n        if (!meal.recipeId.trim() || [...meal.recipeId].length > 200)\n            return \"Choose a valid recipe for every planned meal.\";\n        if (!Number.isInteger(meal.servings) || meal.servings < 1 || meal.servings > 999)\n            return \"Each meal needs 1 to 999 servings.\";\n        seen.add(key);\n    }\n    return \"\";\n}\nexport function setPlannedMeal(plan, day, slot, recipe) {\n    const meals = plan.meals.filter(meal => meal.day !== day || meal.slot !== slot);\n    if (recipe)\n        meals.push({ day, slot, recipeId: recipe.id, title: recipe.title, slug: recipe.slug, servings: recipe.servings ?? 0, available: true });\n    return { ...plan, meals: meals.sort((a, b) => a.day - b.day || MEAL_SLOTS.indexOf(a.slot) - MEAL_SLOTS.indexOf(b.slot)) };\n}\n// Quantified ingredients combine only when their unit and preparation agree.\n// Unquantified ingredients retain meal context instead of inventing amounts.\nexport function mealPlanShoppingItems(response) {\n    const problem = validateMealPlan(response.plan);\n    if (problem)\n        throw new Error(problem);\n    const quantified = new Map();\n    const entries = [];\n    for (const meal of response.plan.meals) {\n        const recipe = response.recipes.find(recipe => recipe.id === meal.recipeId && recipe.status === \"published\" && recipe.access.kind === \"free\");\n        if (!meal.available || !recipe)\n            throw new Error(\"Replace or remove unavailable meals before building the shopping list.\");\n        for (const ingredient of scaleIngredients(recipe.ingredients, recipe.servings, meal.servings)) {\n            if (typeof ingredient.quantity === \"number\" && !Number.isFinite(ingredient.quantity))\n                throw new Error(\"Ingredient quantities are too large. Reduce servings or split the plan before creating a shopping list.\");\n            if (typeof ingredient.quantity === \"number\" && Number.isFinite(ingredient.quantity)) {\n                const key = JSON.stringify([ingredient.name, ingredient.unit || \"\", ingredient.preparation || \"\", ingredient.notes || \"\", ingredient.optional || false].map(value => typeof value === \"string\" ? value.trim().toLowerCase() : value));\n                const previous = quantified.get(key);\n                const quantity = (previous?.quantity || 0) + ingredient.quantity;\n                if (!Number.isFinite(quantity))\n                    throw new Error(\"Ingredient quantities are too large. Reduce servings or split the plan before creating a shopping list.\");\n                quantified.set(key, { ...ingredient, quantity, quantityText: undefined, allergen: Boolean(previous?.allergen || ingredient.allergen) });\n            }\n            else\n                entries.push({ name: `${ingredientCookingLabel(ingredient)} — ${mealDayLabel(response.plan.weekStart, meal.day)}, ${meal.slot}`, checked: false });\n        }\n    }\n    entries.unshift(...[...quantified.values()].map(ingredient => ({ name: ingredientCookingLabel(ingredient), checked: false })));\n    if (entries.length > 250 || entries.some(item => [...item.name].length > 12_100))\n        throw new Error(\"This plan exceeds the shopping list's 250-entry or 12,100-character entry limit. Shorten it before adding ingredients.\");\n    return entries;\n}\n","imports":[{"dynamic":false,"end":69,"specifier":"./domain.js","start":58}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/participation.js","kind":"module","text":"import { useEffect, useRef, useState, useSyncExternalStore } from \"react\";\nimport { RecipesApiError } from \"./api.js\";\nimport { makeClientId } from \"./domain.js\";\nexport function useReaderScope(api) {\n    return useSyncExternalStore(api.subscribeReader, api.getReaderSnapshot, api.getReaderSnapshot);\n}\nconst privateMemory = new WeakMap();\nfunction memoryFor(api) {\n    let memory = privateMemory.get(api);\n    if (!memory) {\n        memory = { epoch: 0, favorites: new Map(), reviews: new Map() };\n        privateMemory.set(api, memory);\n        const owned = memory;\n        api.subscribeReader(() => {\n            const scope = api.getReaderSnapshot().scope;\n            // Sign-out hides memory. Observing a different reader destroys it before\n            // any response callback runs, including intents for unmounted recipes.\n            if (scope && owned.scope && scope !== owned.scope) {\n                owned.epoch++;\n                owned.favorites.clear();\n                owned.reviews.clear();\n            }\n            if (scope)\n                owned.scope = scope;\n        });\n    }\n    const scope = api.getReaderSnapshot().scope;\n    if (scope && memory.scope && scope !== memory.scope) {\n        memory.epoch++;\n        memory.favorites.clear();\n        memory.reviews.clear();\n    }\n    if (scope)\n        memory.scope = scope;\n    return memory;\n}\nfunction boundedSet(map, key, value) {\n    if (!map.has(key) && map.size >= 32)\n        throw new Error(\"There are 32 unresolved recipe drafts. Reconcile an existing draft before starting another.\");\n    map.set(key, value);\n}\nfunction rememberReview(memory, recipeId, value) {\n    if (!memory.reviews.has(recipeId) && memory.reviews.size >= 32) {\n        for (const [key, existing] of memory.reviews) {\n            if (existing.completed) {\n                memory.reviews.delete(key);\n                break;\n            }\n        }\n    }\n    boundedSet(memory.reviews, recipeId, value);\n}\nfunction message(reason) {\n    if (reason instanceof RecipesApiError && reason.status === 401)\n        return \"Sign in to check the original action, then reread its saved state.\";\n    if (reason instanceof RecipesApiError && reason.status === 403)\n        return \"This account cannot perform this action. Check your sign-in and access.\";\n    return reason instanceof Error ? reason.message : \"The result could not be confirmed. Reread the saved state before retrying.\";\n}\n// A view has both a local navigation identity and the client's response-derived\n// reader generation. Cookie changes are only observable through real responses.\nfunction useObservedRecipe(api, recipeId, enabled) {\n    const reader = useReaderScope(api);\n    const identity = useRef({ api, recipeId, enabled, generation: 0 });\n    if (identity.current.api !== api || identity.current.recipeId !== recipeId || identity.current.enabled !== enabled) {\n        identity.current = { api, recipeId, enabled, generation: identity.current.generation + 1 };\n    }\n    const mounted = useRef(true);\n    useEffect(() => { mounted.current = true; return () => { mounted.current = false; }; }, []);\n    const [observed, setObserved] = useState();\n    const [error, setError] = useState(\"\");\n    const [loading, setLoading] = useState(false);\n    const [reload, setReload] = useState(0);\n    const attempted = useRef({ identity: identity.current, reload: 0 });\n    function capture() { return { view: identity.current, generation: api.getReaderSnapshot().generation }; }\n    function current(captured) {\n        return mounted.current && captured.view === identity.current && captured.generation === api.getReaderSnapshot().generation;\n    }\n    useEffect(() => {\n        const captured = capture();\n        let active = true;\n        if (!enabled)\n            return;\n        const explicitlyReloaded = attempted.current.identity === identity.current && attempted.current.reload !== reload;\n        attempted.current = { identity: identity.current, reload };\n        if ((reader.status === \"signed_out\" || reader.status === \"denied\") && !explicitlyReloaded) {\n            setLoading(false);\n            return;\n        }\n        setLoading(true);\n        setError(\"\");\n        void api.getReaderState(recipeId).then(result => {\n            if (!active || !current(captured))\n                return;\n            if (result.recipeId !== recipeId || result.favorite?.recipeId !== recipeId)\n                throw new Error(\"The reader check returned a different recipe.\");\n            setObserved({ identity: captured.view, generation: captured.generation, reload, result });\n        }).catch(reason => { if (active && current(captured))\n            setError(message(reason)); }).finally(() => { if (active && current(captured))\n            setLoading(false); });\n        return () => { active = false; };\n    }, [api, recipeId, enabled, reader.generation, reload]);\n    const result = enabled && !loading && observed?.identity === identity.current && observed.generation === reader.generation && observed.reload === reload && reader.status === \"ready\" && observed.result.readerScope === reader.scope ? observed.result : undefined;\n    return { reader, result, loading, error, accessError: (reader.status === \"signed_out\" ? \"Sign in, then check the current reader to recover the original action.\" : reader.status === \"denied\" ? \"Access denied. Check your account, then reread the current reader.\" : \"\"), capture, current, identity: identity.current, reload: () => setReload(value => value + 1) };\n}\nexport function useFavorite(api, recipeId, enabled) {\n    const observed = useObservedRecipe(api, recipeId, enabled);\n    const memory = memoryFor(api);\n    const [state, setState] = useState();\n    const [intent, setIntent] = useState();\n    const [busy, setBusy] = useState(false);\n    const [error, setError] = useState(\"\");\n    const [reconciled, setReconciled] = useState(false);\n    const scope = observed.reader.scope;\n    const pending = intent?.view === observed.identity && intent.epoch === memory.epoch && intent.scope === scope ? intent : undefined;\n    const favorite = state?.view === observed.identity && state.epoch === memory.epoch && state.scope === scope ? state.favorite : observed.result?.favorite;\n    const ready = Boolean(observed.result && favorite && observed.reader.status === \"ready\");\n    useEffect(() => {\n        setBusy(false);\n        setError(\"\");\n        setReconciled(false);\n        if (scope) {\n            const savedIntent = memory.favorites.get(recipeId);\n            setIntent(savedIntent?.scope === scope ? { view: observed.identity, epoch: memory.epoch, ...savedIntent } : undefined);\n            setState(previous => previous && previous.scope !== scope ? undefined : previous);\n        }\n    }, [observed.identity, observed.reader.generation, scope]);\n    function active() { return observed.capture().view === observed.identity && api.getReaderSnapshot().scope === scope && api.getReaderSnapshot().generation === observed.reader.generation && api.getReaderSnapshot().status === \"ready\"; }\n    async function write(desired, version, originalScope) {\n        if (!active() || originalScope !== scope)\n            return;\n        const captured = observed.capture();\n        try {\n            boundedSet(memory.favorites, recipeId, { scope: originalScope, desired, version });\n        }\n        catch (reason) {\n            setError(message(reason));\n            return;\n        }\n        setIntent({ view: observed.identity, epoch: memory.epoch, scope: originalScope, desired, version });\n        setBusy(true);\n        setError(\"\");\n        setReconciled(false);\n        try {\n            const result = await api.favorite(recipeId, desired, { expectedReaderScope: originalScope, expectedVersion: version });\n            if (!observed.current(captured))\n                return;\n            if (result.readerScope !== originalScope || result.library.recipeId !== recipeId || result.library.saved !== desired)\n                throw new Error(\"The receipt did not confirm the original save choice. Check saved state.\");\n            setState({ view: observed.identity, epoch: memory.epoch, scope: originalScope, favorite: result.library });\n            memory.favorites.delete(recipeId);\n            setIntent(undefined);\n        }\n        catch (reason) {\n            if (observed.current(captured))\n                setError(message(reason));\n        }\n        finally {\n            if (observed.current(captured))\n                setBusy(false);\n        }\n    }\n    async function reconcile() {\n        if (!pending || busy || !active())\n            return;\n        const captured = observed.capture();\n        const original = pending;\n        setBusy(true);\n        setError(\"\");\n        try {\n            const result = await api.getReaderState(recipeId);\n            if (!observed.current(captured))\n                return;\n            if (result.readerScope !== original.scope || result.recipeId !== recipeId || !result.favorite || result.favorite.recipeId !== recipeId)\n                throw new Error(\"The saved state did not confirm the original reader and recipe.\");\n            setState({ view: observed.identity, epoch: memory.epoch, scope: original.scope, favorite: result.favorite });\n            if (result.favorite.saved === original.desired) {\n                memory.favorites.delete(recipeId);\n                setIntent(undefined);\n                setReconciled(false);\n            }\n            else {\n                memory.favorites.set(recipeId, { scope: original.scope, desired: original.desired, version: result.favorite.recordVersion });\n                setIntent({ ...original, version: result.favorite.recordVersion });\n                setReconciled(true);\n                setError(`Saved state is ${result.favorite.saved ? \"saved\" : \"not saved\"}; your original choice is ${original.desired ? \"save\" : \"remove\"}. Apply that choice deliberately or keep the saved state.`);\n            }\n        }\n        catch (reason) {\n            if (observed.current(captured))\n                setError(message(reason));\n        }\n        finally {\n            if (observed.current(captured))\n                setBusy(false);\n        }\n    }\n    return {\n        saved: favorite?.saved ?? false, ready, busy, error: error || observed.error || (intent?.view === observed.identity && intent.epoch === memory.epoch ? observed.accessError : \"\"), pending: Boolean(pending), reconciled,\n        toggle: () => { if (ready && !busy && !pending && favorite && scope)\n            void write(!favorite.saved, favorite.recordVersion, scope); },\n        reconcile,\n        retry: () => { if (pending && reconciled && ready && !busy)\n            void write(pending.desired, pending.version, pending.scope); },\n        keepSaved: () => { if (reconciled && !busy && active()) {\n            memory.favorites.delete(recipeId);\n            setIntent(undefined);\n            setError(\"\");\n            setReconciled(false);\n        } },\n        reload: () => { setState(undefined); observed.reload(); }\n    };\n}\n// Match the server util::text/str::trim normalization before freezing intent.\nconst normalizeReviewText = (value) => value.replace(/^\\p{White_Space}+|\\p{White_Space}+$/gu, \"\");\nexport function reviewConfirms(review, payload) {\n    return review.recipeId === payload.recipeId && review.rating === payload.rating\n        && (review.title || \"\") === (payload.title || \"\") && (review.body || \"\") === payload.body;\n}\nexport function useReviewSubmission(api, recipeId, enabled) {\n    const observed = useObservedRecipe(api, recipeId, enabled);\n    const memory = memoryFor(api);\n    const [fields, setFields] = useState();\n    const [stored, setStored] = useState();\n    const [confirmed, setConfirmed] = useState();\n    const [busy, setBusy] = useState(false);\n    const [error, setError] = useState(\"\");\n    const [notice, setNotice] = useState(\"\");\n    const [retryAllowed, setRetryAllowed] = useState(false);\n    const scope = observed.reader.scope;\n    const local = fields?.view === observed.identity && fields.epoch === memory.epoch && fields.scope === scope ? fields : undefined;\n    const pending = stored?.view === observed.identity && stored.epoch === memory.epoch && stored.intent.scope === scope ? stored.intent : undefined;\n    const ready = Boolean(observed.result && scope && observed.reader.status === \"ready\");\n    const completed = confirmed?.view === observed.identity && confirmed.epoch === memory.epoch && confirmed.scope === scope;\n    useEffect(() => {\n        setBusy(false);\n        setError(\"\");\n        setNotice(\"\");\n        setRetryAllowed(false);\n        if (scope) {\n            const saved = memory.reviews.get(recipeId);\n            setFields(saved?.scope === scope ? { view: observed.identity, epoch: memory.epoch, scope, rating: saved.rating, title: saved.title, body: saved.body } : undefined);\n            setStored(saved?.scope === scope && saved.intent ? { view: observed.identity, epoch: memory.epoch, intent: saved.intent } : undefined);\n            setConfirmed(saved?.scope === scope && saved.completed ? { view: observed.identity, epoch: memory.epoch, scope } : undefined);\n        }\n    }, [observed.identity, observed.reader.generation, scope]);\n    function active() { return observed.capture().view === observed.identity && api.getReaderSnapshot().scope === scope && api.getReaderSnapshot().generation === observed.reader.generation && api.getReaderSnapshot().status === \"ready\"; }\n    function edit(key, value) {\n        if (!ready || !scope || pending || busy || completed || !active())\n            return;\n        if ((key === \"title\" && value.length > 120) || (key === \"body\" && value.length > 2000)) {\n            setError(key === \"title\" ? \"Review title must be 120 characters or fewer.\" : \"Review comment must be 2,000 characters or fewer.\");\n            return;\n        }\n        const next = { scope, rating: local?.rating || \"\", title: local?.title || \"\", body: local?.body || \"\", [key]: value };\n        try {\n            rememberReview(memory, recipeId, next);\n        }\n        catch (reason) {\n            setError(message(reason));\n            return;\n        }\n        setFields({ view: observed.identity, epoch: memory.epoch, ...next });\n        setNotice(\"\");\n    }\n    function confirm(review, intent, submissionId, readerScope) {\n        if (submissionId !== intent.submissionId || readerScope !== intent.scope || !reviewConfirms(review, intent.payload))\n            throw new Error(\"The review receipt did not confirm the original submission and exact comment. Check its status before retrying.\");\n        memory.reviews.set(recipeId, { scope: intent.scope, rating: \"\", title: \"\", body: \"\", completed: true });\n        setConfirmed({ view: observed.identity, epoch: memory.epoch, scope: intent.scope });\n        setStored(undefined);\n        setFields(undefined);\n        setRetryAllowed(false);\n        setNotice(review.status === \"pending\" ? \"Review submitted for moderation.\" : `Your original review is ${review.status}.`);\n    }\n    async function write(intent) {\n        if (!active() || intent.scope !== scope)\n            return;\n        const captured = observed.capture();\n        const previous = memory.reviews.get(recipeId);\n        try {\n            rememberReview(memory, recipeId, { scope: intent.scope, rating: previous?.rating || String(intent.payload.rating), title: previous?.title || intent.payload.title || \"\", body: previous?.body || intent.payload.body, intent });\n        }\n        catch (reason) {\n            setError(message(reason));\n            return;\n        }\n        setStored({ view: observed.identity, epoch: memory.epoch, intent });\n        setBusy(true);\n        setError(\"\");\n        setNotice(\"\");\n        setRetryAllowed(false);\n        try {\n            const result = await api.submitReview({ ...intent.payload, submissionId: intent.submissionId, expectedReaderScope: intent.scope });\n            if (observed.current(captured))\n                confirm(result.review, intent, result.submissionId, result.readerScope);\n        }\n        catch (reason) {\n            if (observed.current(captured))\n                setError(message(reason));\n        }\n        finally {\n            if (observed.current(captured))\n                setBusy(false);\n        }\n    }\n    async function submit() {\n        if (!ready || !scope || pending || busy || completed || !active())\n            return;\n        const score = Number(local?.rating);\n        const title = normalizeReviewText(local?.title || \"\");\n        const body = normalizeReviewText(local?.body || \"\");\n        if (!Number.isInteger(score) || score < 1 || score > 5 || title.length > 120 || !body || body.length > 2000) {\n            setError(\"Choose a rating from 1 to 5, a title under 120 characters, and a comment of 1–2,000 characters.\");\n            return;\n        }\n        await write({ scope, submissionId: makeClientId(\"review\"), payload: { recipeId, rating: score, title: title || undefined, body } });\n    }\n    async function reconcile() {\n        if (!pending || busy || !ready || !active())\n            return;\n        const captured = observed.capture();\n        const intent = pending;\n        setBusy(true);\n        setError(\"\");\n        setRetryAllowed(false);\n        try {\n            const result = await api.getReviewStatus(intent.submissionId, intent.scope);\n            if (!observed.current(captured))\n                return;\n            if (result.readerScope !== intent.scope || result.submissionId !== intent.submissionId)\n                throw new Error(\"The lookup did not confirm the original reader and submission.\");\n            if (result.review)\n                confirm(result.review, intent, result.submissionId, result.readerScope);\n            else {\n                setRetryAllowed(true);\n                setNotice(\"No saved review was found for this submission. You can explicitly retry the same review and submission ID.\");\n            }\n        }\n        catch (reason) {\n            if (observed.current(captured))\n                setError(message(reason));\n        }\n        finally {\n            if (observed.current(captured))\n                setBusy(false);\n        }\n    }\n    return {\n        rating: local?.rating || \"\", title: local?.title || \"\", body: local?.body || \"\",\n        hasDraft: Boolean(local && (local.rating || local.title || local.body)),\n        setRating: (value) => edit(\"rating\", value), setTitle: (value) => edit(\"title\", value), setBody: (value) => edit(\"body\", value),\n        ready, busy, completed, error: error || observed.error || (stored?.view === observed.identity && stored.epoch === memory.epoch ? observed.accessError : \"\"), notice, pending: Boolean(pending), retryAllowed, submit, reconcile,\n        retry: () => { if (pending && retryAllowed && ready && !busy)\n            void write(pending); },\n        newReview: () => { if (!pending && !busy && ready && active()) {\n            memory.reviews.delete(recipeId);\n            setConfirmed(undefined);\n            setFields(undefined);\n            setNotice(\"\");\n            setError(\"\");\n        } },\n        reload: observed.reload\n    };\n}\n","imports":[{"dynamic":false,"end":72,"specifier":"react","start":67},{"dynamic":false,"end":116,"specifier":"./api.js","start":108},{"dynamic":false,"end":160,"specifier":"./domain.js","start":149}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/presentation.js","kind":"module","text":"export const RECIPE_TIME_FILTERS = [\n    { minutes: 0, label: \"Any time\" },\n    { minutes: 15, label: \"15 min or less\" },\n    { minutes: 30, label: \"30 min or less\" },\n    { minutes: 60, label: \"1 hour or less\" }\n];\nexport function recipeMatchesTimeLimit(recipe, minutes) {\n    if (!minutes)\n        return true;\n    const total = recipe.totalTimeMinutes;\n    return typeof total === \"number\" && Number.isFinite(total) && total > 0 && total <= minutes;\n}\nexport function recipeTimeLabel(minutes) {\n    const format = (value) => value.toLocaleString(undefined, { maximumFractionDigits: 1 });\n    const rounded = Math.round(minutes * 10) / 10;\n    if (rounded < 60)\n        return `${format(rounded)} min`;\n    const hours = Math.floor(rounded / 60);\n    const remaining = Math.round((rounded % 60) * 10) / 10;\n    return `${format(hours)} hr${remaining ? ` ${format(remaining)} min` : \"\"}`;\n}\nexport function groupIngredients(ingredients) {\n    // Consecutive groups preserve authored order, including ungrouped ingredients.\n    const groups = [];\n    for (const item of ingredients) {\n        const name = item.group?.trim() || undefined;\n        const previous = groups.at(-1);\n        if (previous && previous.name === name)\n            previous.items.push(item);\n        else\n            groups.push({ name, items: [item] });\n    }\n    return groups;\n}\nexport function nutritionLabel(label) {\n    const unit = label.endsWith(\"Grams\") ? \" (g)\" : label.endsWith(\"Milligrams\") ? \" (mg)\" : \"\";\n    return label.replace(/Grams$/, \"\").replace(/Milligrams$/, \"\").replace(/([a-z])([A-Z])/g, \"$1 $2\").replace(/_/g, \" \").replace(/^./, (letter) => letter.toUpperCase()) + unit;\n}\nexport function nutritionValue(value) {\n    return typeof value === \"number\" ? value.toLocaleString(undefined, { maximumSignificantDigits: 6 }) : value;\n}\nexport function recipeAccessCopy(state) {\n    switch (state) {\n        case \"signed_out\":\n            return { label: \"Sign in required\", tone: \"warning\", body: \"Sign in on this site to check your access to this recipe.\" };\n        case \"pending\":\n            return { label: \"Payment pending\", tone: \"warning\", body: \"Cedros Pay is still reconciling this purchase. Access stays locked until the payment succeeds.\" };\n        case \"failed\":\n            return { label: \"Payment failed\", tone: \"error\", body: \"The payment failed. Contact the site owner for help with your purchase.\" };\n        case \"refunded\":\n            return { label: \"Refunded\", tone: \"error\", body: \"Cedros Pay reported a refund, so paid recipe access has been revoked.\" };\n        case \"disputed\":\n            return { label: \"Disputed\", tone: \"error\", body: \"Cedros Pay reported a dispute or chargeback. Access is locked until the dispute is resolved.\" };\n        case \"stale\":\n        case \"unavailable\":\n            return { label: \"Access unavailable\", tone: \"warning\", body: \"Your access could not be verified. The full recipe is unavailable until access is confirmed.\" };\n        default:\n            return { label: \"Payment required\", tone: \"info\", body: \"Purchase or membership access is required to unlock the full recipe.\" };\n    }\n}\n","imports":[],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/recipeValidation.js","kind":"module","text":"import { validAsin, validateProductLink } from \"./affiliates.js\";\nimport { equipmentName } from \"./equipment.js\";\n// Keep these authoring limits aligned with server/recipe_validation.rs.\nexport const recipeTextLimits = {\n    story: 1_000_000, sourceUrl: 2_000, sourceKey: 500, videoUrl: 2_000, subtitle: 300, shortDescription: 1_000, introduction: 20_000,\n    featuredImageUrl: 2_000, featuredImageAlt: 500, author: 300, yieldText: 300,\n    notes: 20_000, storage: 10_000, reheating: 10_000, foodSafety: 10_000,\n    seoTitle: 500, metaDescription: 1_000, sourceCredit: 1_000, internalNotes: 20_000\n};\nconst labels = {\n    shortDescription: \"Short description\", featuredImageUrl: \"Image URL\", featuredImageAlt: \"Image description\",\n    yieldText: \"Yield\", foodSafety: \"Food safety\", seoTitle: \"Search title\", metaDescription: \"Search description\",\n    sourceCredit: \"Source credit\", internalNotes: \"Internal notes\"\n};\nconst length = (value) => [...value].length;\nconst label = (key) => labels[key] || key[0].toUpperCase() + key.slice(1);\nexport function validateRecipe(recipe, mode = \"publish\") {\n    const errors = {};\n    if (!recipe.id?.trim() || length(recipe.id.trim()) > 200)\n        errors.id = \"Recipe identifier must contain 1 to 200 characters.\";\n    if (![\"draft\", \"needs_review\", \"ready_to_publish\", \"published\", \"private\", \"scheduled\", \"hidden\", \"archived\", \"retired\"].includes(recipe.status))\n        errors.status = \"Recipe status is invalid.\";\n    if (recipe.difficulty != null && ![\"easy\", \"medium\", \"hard\", \"expert\"].includes(recipe.difficulty))\n        errors.difficulty = \"Recipe difficulty is invalid.\";\n    if (![\"free\", \"paid\", \"membership\", \"private\"].includes(recipe.access.kind))\n        errors.access = \"Recipe access kind is invalid.\";\n    if (recipe.access.previewMode != null && ![\"none\", \"summary\", \"ingredients\"].includes(recipe.access.previewMode))\n        errors.access = \"Recipe preview mode is invalid.\";\n    if (recipe.access.priceCents != null && (!Number.isInteger(recipe.access.priceCents) || recipe.access.priceCents < 0 || recipe.access.priceCents > 100_000_000))\n        errors.access = \"Recipe price must be a whole number from 0 to 100,000,000 cents.\";\n    if (recipe.access.kind === \"paid\" && !positivePrice(recipe.access.priceCents))\n        errors.access = \"Paid recipes require a positive price.\";\n    for (const key of [\"currency\", \"payProductRef\"]) {\n        const value = recipe.access[key];\n        if (value != null && (!value.trim() || length(value.trim()) > 500))\n            errors[key === \"currency\" ? \"access\" : key] = `Recipe ${key} must contain 1 to 500 characters.`;\n    }\n    if (!recipe.title || length(recipe.title.trim()) < 2)\n        errors.title = \"Title is required.\";\n    else if (length(recipe.title) > 200)\n        errors.title = \"Title must be 200 characters or fewer.\";\n    if (!recipe.slug || !/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(recipe.slug))\n        errors.slug = \"Slug must be lowercase words separated by hyphens.\";\n    else if (length(recipe.slug) > 200)\n        errors.slug = \"Slug must be 200 characters or fewer.\";\n    for (const [key, maximum] of Object.entries(recipeTextLimits)) {\n        const value = recipe[key];\n        if (value != null && (typeof value !== \"string\" || length(value) > maximum))\n            errors[key] = `${label(key)} must be ${maximum.toLocaleString(\"en-US\")} characters or fewer.`;\n    }\n    if (recipe.featuredImageUrl && !isSafeRecipeImageUrl(recipe.featuredImageUrl))\n        errors.featuredImageUrl = \"Image URL must be a same-site path or HTTPS URL without embedded credentials.\";\n    for (const key of [\"sourceUrl\", \"videoUrl\"]) {\n        if (recipe[key] && (!recipe[key].startsWith(\"https://\") || !isSafeRecipeImageUrl(recipe[key])))\n            errors[key] = \"Use an HTTPS URL without embedded credentials.\";\n    }\n    if (recipe.sources && (recipe.sources.length > 200 || recipe.sources.some(s => !s.title.trim() || length(s.title) > 500 || s.url.length > 2000 || !s.url.startsWith(\"https://\") || !isSafeRecipeImageUrl(s.url))))\n        errors.sources = \"Sources require a title and HTTPS URL without credentials.\";\n    for (const key of [\"categories\", \"cuisines\", \"dietaryLabels\", \"tags\", \"substitutions\", \"pairings\", \"allergens\"]) {\n        const values = recipe[key];\n        if (values.length > 200 || values.some((value) => !value.trim() || length(value) > 500))\n            errors[key] = `${label(key)} can contain at most 200 nonblank entries, each 500 characters or fewer.`;\n    }\n    const equipmentIds = new Set();\n    if (recipe.equipment.length > 200)\n        errors.equipment = \"Equipment supports at most 200 items.\";\n    for (const item of recipe.equipment) {\n        if (!equipmentName(item).trim() || length(equipmentName(item)) > 500)\n            errors.equipment = \"Equipment needs a name of 1 to 500 characters.\";\n        if (typeof item !== \"string\") {\n            if (!item.id?.trim() || item.id.length > 500 || equipmentIds.has(item.id))\n                errors.equipment = \"Equipment needs unique identifiers of 1 to 500 characters.\";\n            equipmentIds.add(item.id);\n            if (item.productLink != null)\n                validateLink(item.productLink, `equipment.${item.id}.productLink`, errors);\n        }\n    }\n    if (recipe.noAffiliateLinks != null && typeof recipe.noAffiliateLinks !== \"boolean\")\n        errors.noAffiliateLinks = \"No affiliate links must be a boolean.\";\n    for (const item of recipe.ingredients)\n        if (item.productLink != null)\n            validateLink(item.productLink, `ingredients.${item.id}.productLink`, errors);\n    if (recipe.servings != null && (!Number.isInteger(recipe.servings) || recipe.servings < 1 || recipe.servings > 999))\n        errors.servings = \"Servings must be an integer from 1 to 999.\";\n    for (const key of [\"prepTimeMinutes\", \"cookTimeMinutes\", \"restTimeMinutes\", \"totalTimeMinutes\"]) {\n        const value = recipe[key];\n        if (value != null && (!Number.isInteger(value) || value < 0 || value > 10_080))\n            errors[key === \"totalTimeMinutes\" ? \"prepTimeMinutes\" : key] = \"Recipe time must be a whole number from 0 to 10,080 minutes, including the combined total.\";\n    }\n    for (const key of [\"ingredients\", \"instructions\"]) {\n        const lines = recipe[key];\n        if (lines.length > 500)\n            errors[key] = `Recipes can contain at most 500 ${key === \"ingredients\" ? \"ingredients\" : \"instruction steps\"}.`;\n        const ids = new Set();\n        for (const [index, line] of lines.entries()) {\n            const prefix = `${key === \"ingredients\" ? \"Ingredient\" : \"Step\"} ${index + 1}`;\n            if (!line.id || length(line.id) > 500 || ids.has(line.id))\n                errors[key] ||= `${prefix} needs a unique identifier of 500 characters or fewer.`;\n            ids.add(line.id);\n            const fields = key === \"ingredients\" ? [\"name\", \"quantityText\", \"unit\", \"preparation\", \"group\", \"notes\"] : [\"text\", \"title\", \"group\", \"temperature\", \"equipment\", \"tip\", \"warning\"];\n            for (const field of fields) {\n                const value = Object.entries(line).find(([key]) => key === field)?.[1];\n                if (typeof value === \"string\" && (!value.trim() || length(value) > 2_000))\n                    errors[key] ||= `${prefix} ${field} must contain 1 to 2,000 characters.`;\n            }\n            for (const field of key === \"ingredients\" ? [\"optional\", \"allergen\"] : [\"optional\"]) {\n                const value = Object.entries(line).find(([key]) => key === field)?.[1];\n                if (value != null && typeof value !== \"boolean\")\n                    errors[key] ||= `${prefix} ${field} must be a boolean.`;\n            }\n            if (\"name\" in line && (!line.name.trim() || line.quantity != null && (!Number.isFinite(line.quantity) || line.quantity < 0 || line.quantity > 1_000_000)))\n                errors[key] ||= `${prefix} needs a name and a quantity between 0 and 1,000,000 when supplied.`;\n            if (\"text\" in line && (!line.text.trim() || line.timerMinutes != null && (!Number.isInteger(line.timerMinutes) || line.timerMinutes < 0 || line.timerMinutes > 10_080)))\n                errors[key] ||= `${prefix} needs instructions and a whole-number timer from 0 to 10,080 minutes when supplied.`;\n        }\n    }\n    if (recipe.nutrition && (Object.keys(recipe.nutrition).length > 100 || Object.entries(recipe.nutrition).some(([key, value]) => length(key) > 100 || typeof value !== \"string\" && typeof value !== \"number\" || typeof value === \"string\" && length(value) > 500 || typeof value === \"number\" && !Number.isFinite(value))))\n        errors.nutrition = \"Nutrition supports at most 100 fields with labels up to 100 and values up to 500 characters.\";\n    if (mode === \"publish\") {\n        if ([\"paid\", \"membership\"].includes(recipe.access.kind))\n            errors.access = \"Paid and member recipes cannot be published yet. Choose Free or Private.\";\n        if (recipe.access.kind === \"paid\" && !positivePrice(recipe.access.priceCents))\n            errors.access = \"Paid recipes cannot be published yet. Choose Free or Private.\";\n        if (recipe.access.kind === \"private\")\n            errors.access = \"Private recipes cannot be published to the public Recipes page.\";\n    }\n    return { valid: Object.keys(errors).length === 0, errors };\n}\nexport function isSafeRecipeImageUrl(value) {\n    const candidate = value.trim();\n    if (/[\\u0000-\\u001f\\u007f-\\u009f]/.test(candidate))\n        return false;\n    if (candidate.startsWith(\"/\") && !candidate.startsWith(\"//\") && !candidate.includes(\"\\\\\"))\n        return true;\n    try {\n        const url = new URL(candidate);\n        return url.protocol === \"https:\" && !url.username && !url.password;\n    }\n    catch {\n        return false;\n    }\n}\nfunction positivePrice(value) {\n    return value !== undefined && Number.isInteger(value) && value > 0;\n}\nfunction validateLink(link, prefix, errors) {\n    if (link.retailer !== \"amazon\" || Object.keys(link).some(key => ![\"retailer\", \"asin\", \"label\", \"url\"].includes(key)))\n        errors[`${prefix}.asin`] = \"Remove this unsupported product link and add an Amazon product again.\";\n    if (!validAsin(link.asin))\n        errors[`${prefix}.asin`] = \"Enter the 10-character Amazon product ID, for example B000000001.\";\n    if (typeof link.label !== \"string\" || !link.label.trim() || [...link.label].length > 500)\n        errors[`${prefix}.label`] = \"Add a product label of 1 to 500 characters.\";\n    if (validAsin(link.asin) && link.url && !validateProductLink({ ...link, asin: validAsin(link.asin) ? link.asin : \"B000000001\", label: \"Product\" }))\n        errors[`${prefix}.url`] = \"Use an untagged Amazon product URL matching this product ID, or leave it blank.\";\n}\n","imports":[{"dynamic":false,"end":63,"specifier":"./affiliates.js","start":48},{"dynamic":false,"end":111,"specifier":"./equipment.js","start":97}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/shopping.js","kind":"module","text":"import { ingredientCookingLabel } from \"./domain.js\";\nimport { RecipesApiError } from \"./api.js\";\nimport { useEffect, useRef, useState, useSyncExternalStore } from \"react\";\n// Carry the reader that supplied the list, including an empty first-use list.\n// A CAS revision alone cannot guard an account switch when both lists are absent.\nexport async function saveReaderShoppingList(client, current, items) {\n    if (!current.readerScope || !/^[a-f0-9]{64}$/.test(current.readerScope)) {\n        throw new Error(\"Reload the shopping list before saving; its signed-in reader could not be verified.\");\n    }\n    const saved = await client.saveShoppingList({ items, _cedrosRecordVersion: current._cedrosRecordVersion, expectedReaderScope: current.readerScope });\n    if (!saved._cedrosRecordVersion || saved.readerScope !== current.readerScope || shoppingFingerprint(saved.items) !== shoppingFingerprint(items)) {\n        throw new Error(\"The shopping list could not be confirmed. Reload the shopping list to review the saved entries before retrying.\");\n    }\n    return saved;\n}\nexport function shoppingListItemsForIngredients(ingredients) {\n    return ingredients.map(ingredient => ({ name: ingredientCookingLabel(ingredient) })).filter(item => item.name.length > 0);\n}\nexport function mergeShoppingListItems(existing, additions) {\n    const merged = existing.map(item => ({ ...item }));\n    const known = new Set(existing.map(item => normalizedShoppingListName(item.name)));\n    for (const addition of additions) {\n        const name = addition.name.trim();\n        const key = normalizedShoppingListName(name);\n        if (!key || known.has(key))\n            continue;\n        known.add(key);\n        merged.push({ name, checked: false });\n    }\n    return merged;\n}\nexport function normalizedShoppingListName(value) { return value.trim().replace(/\\s+/g, \" \").toLocaleLowerCase(); }\nexport function shoppingFingerprint(items) {\n    return JSON.stringify(items.map(item => [item.name.trim(), Boolean(item.checked)]));\n}\nconst shoppingMemory = new WeakMap();\nfunction retainedShopping(api, key) {\n    let memory = shoppingMemory.get(api);\n    if (!memory) {\n        memory = { views: new Map(), blocked: { capacityBlocked: true, newItem: \"\" } };\n        shoppingMemory.set(api, memory);\n        const owned = memory;\n        api.subscribeReader(() => {\n            const next = api.getReaderSnapshot();\n            if (next.scope && owned.scope && next.scope !== owned.scope) {\n                for (const value of owned.views.values())\n                    value.retired = true;\n                owned.views.clear();\n            }\n            if (next.scope)\n                owned.scope = next.scope;\n        });\n    }\n    const scope = api.getReaderSnapshot().scope;\n    if (scope)\n        memory.scope = scope;\n    let retained = memory.views.get(key);\n    if (!retained) {\n        if (memory.views.size >= 12) {\n            const idle = [...memory.views.entries()].find(([, value]) => !value.intent && !value.newItem);\n            if (idle)\n                memory.views.delete(idle[0]);\n            else\n                return memory.blocked;\n        }\n        retained = { newItem: \"\" };\n        memory.views.set(key, retained);\n    }\n    return retained;\n}\n// A lost reply freezes the exact replacement list. Rereading never silently\n// re-merges it with newer work; applying it to a newer revision is a user choice.\nexport function useShoppingList(api, options = {}) {\n    const key = options.viewKey || \"shopping-list\";\n    const retained = retainedShopping(api, key);\n    const stateView = useRef(key);\n    const stateEntry = useRef(retained);\n    const reader = useSyncExternalStore(api.subscribeReader, api.getReaderSnapshot, api.getReaderSnapshot);\n    const [loaded, setLoaded] = useState();\n    const [intent, setIntent] = useState(retained.intent);\n    const [conflict, setConflict] = useState();\n    const [loading, setLoading] = useState(!options.lazy);\n    const [busy, setBusy] = useState(false);\n    const [error, setError] = useState(\"\");\n    const [notice, setNotice] = useState(\"\");\n    const [signInRequired, setSignInRequired] = useState(false);\n    const [newItem, setNewItem] = useState(retained.newItem);\n    const draftScope = useRef(retained.draftScope);\n    const authority = useRef(undefined);\n    const mounted = useRef(true);\n    const generation = useRef(0);\n    const view = useRef({ api, key: options.viewKey, reader: reader.generation });\n    if (view.current.api !== api || view.current.key !== options.viewKey || view.current.reader !== reader.generation) {\n        generation.current++;\n        view.current = { api, key: options.viewKey, reader: reader.generation };\n    }\n    const renderView = view.current;\n    const active = () => mounted.current && !retained.retired && !retained.capacityBlocked && view.current === renderView && reader.generation === api.getReaderSnapshot().generation && reader.scope === api.getReaderSnapshot().scope && api.getReaderSnapshot().status === \"ready\";\n    const list = stateEntry.current === retained && !retained.retired && stateView.current === key && loaded?.api === api && reader.status === \"ready\" && loaded.list.readerScope === reader.scope ? loaded.list : undefined;\n    const currentIntent = stateEntry.current === retained && !retained.retired && stateView.current === key && intent?.readerScope === reader.scope && reader.status === \"ready\" ? intent : undefined;\n    const currentConflict = currentIntent && conflict?.readerScope === reader.scope ? conflict : undefined;\n    const live = (current, scope) => mounted.current && !retained.retired && reader.generation === api.getReaderSnapshot().generation && current === generation.current && (!scope || (api.getReaderSnapshot().status === \"ready\" && api.getReaderSnapshot().scope === scope));\n    function problem(reason) {\n        const denied = reason instanceof RecipesApiError && (reason.status === 401 || reason.status === 403);\n        if (denied) {\n            setLoaded(undefined);\n            setConflict(undefined);\n        }\n        setSignInRequired(reason instanceof RecipesApiError && reason.status === 401);\n        setError(reason instanceof Error ? reason.message : \"The shopping list could not be confirmed. Reread it before retrying.\");\n    }\n    useEffect(() => {\n        mounted.current = true;\n        stateEntry.current = retained;\n        stateView.current = key;\n        setLoaded(undefined);\n        setIntent(retained.intent);\n        setConflict(undefined);\n        setNewItem(retained.newItem);\n        draftScope.current = retained.draftScope;\n        setError(retained.intent ? \"Reread the original shopping list to confirm your pending change.\" : \"\");\n        setSignInRequired(false);\n        setNotice(\"\");\n        setBusy(false);\n        if (!options.lazy)\n            void read();\n        else\n            setLoading(false);\n        return () => { mounted.current = false; generation.current++; };\n    }, [api, options.viewKey, retained]);\n    useEffect(() => {\n        if (reader.status !== \"ready\" && reader.generation > 0) {\n            setLoaded(undefined);\n            setConflict(undefined);\n            setBusy(false);\n            setLoading(false);\n            setSignInRequired(reader.status === \"signed_out\");\n            setError(reader.status === \"denied\" ? \"This account cannot access the shopping list. Check your access and reread.\" : \"Sign in, then reread your shopping list to confirm the account.\");\n        }\n        if (authority.current && reader.scope && authority.current !== reader.scope) {\n            setIntent(undefined);\n            setConflict(undefined);\n            setLoaded(undefined);\n            setNewItem(\"\");\n            setNotice(\"\");\n            setError(\"The reader changed. Reread the shopping list for this account.\");\n            setLoading(false);\n            setBusy(false);\n            authority.current = reader.scope;\n        }\n        if (reader.scope && draftScope.current && draftScope.current !== reader.scope) {\n            setNewItem(\"\");\n            draftScope.current = undefined;\n        }\n        if (loaded && reader.scope && loaded.list.readerScope !== reader.scope) {\n            setLoaded(undefined);\n            setNewItem(\"\");\n        }\n    }, [reader.generation, reader.status, reader.scope]);\n    async function read() {\n        const current = ++generation.current;\n        const original = retained.intent;\n        setLoading(true);\n        setError(\"\");\n        setSignInRequired(false);\n        setNotice(\"\");\n        try {\n            const fresh = await api.getShoppingList();\n            if (!live(current) || !fresh.readerScope || fresh.readerScope !== api.getReaderSnapshot().scope)\n                return;\n            authority.current = fresh.readerScope;\n            setLoaded({ api, list: fresh });\n            if (original && fresh.readerScope === original.readerScope) {\n                if (shoppingFingerprint(fresh.items) === shoppingFingerprint(original.items)) {\n                    retained.intent = undefined;\n                    retained.newItem = \"\";\n                    setIntent(undefined);\n                    setConflict(undefined);\n                    setNewItem(\"\");\n                    setNotice(\"Your original shopping-list change is saved.\");\n                }\n                else {\n                    setConflict(fresh);\n                    setError(\"The saved list differs from your original change. Choose the saved list or deliberately apply your original list.\");\n                }\n            }\n        }\n        catch (reason) {\n            if (live(current))\n                problem(reason);\n        }\n        finally {\n            if (live(current)) {\n                setLoading(false);\n                setBusy(false);\n            }\n        }\n    }\n    async function write(before, items) {\n        if (!before.readerScope || !active())\n            return false;\n        const current = generation.current;\n        const expected = before.readerScope;\n        const original = { readerScope: expected, before, items: items.map(item => ({ ...item })) };\n        authority.current = expected;\n        retained.intent = original;\n        setIntent(original);\n        setConflict(undefined);\n        setBusy(true);\n        setError(\"\");\n        setNotice(\"\");\n        try {\n            const saved = await saveReaderShoppingList(api, before, original.items);\n            if (!live(current, expected))\n                return false;\n            authority.current = saved.readerScope;\n            setLoaded({ api, list: saved });\n            retained.intent = undefined;\n            setIntent(undefined);\n            setConflict(undefined);\n            setNotice(\"Shopping list saved.\");\n            return true;\n        }\n        catch (reason) {\n            if (live(current, expected))\n                problem(reason);\n            return false;\n        }\n        finally {\n            if (live(current, expected))\n                setBusy(false);\n        }\n    }\n    async function save(items) {\n        if (!active() || !list || loading || busy || currentIntent || error)\n            return false;\n        return write(list, items);\n    }\n    async function add(items, expectedScope) {\n        if (!active() || busy || loading || currentIntent || api.getReaderSnapshot().scope !== expectedScope || api.getReaderSnapshot().status !== \"ready\")\n            return false;\n        const current = generation.current;\n        setBusy(true);\n        setError(\"\");\n        setNotice(\"\");\n        try {\n            const fresh = await api.getShoppingList();\n            if (!live(current, expectedScope))\n                return false;\n            if (fresh.readerScope !== expectedScope)\n                throw new RecipesApiError(403, \"The reader changed. Reload the recipe before adding ingredients.\");\n            const merged = mergeShoppingListItems(fresh.items, items);\n            if (merged.length > 250)\n                throw new Error(\"Your shopping list would exceed 250 entries. Review it before adding ingredients.\");\n            if (shoppingFingerprint(merged) === shoppingFingerprint(fresh.items)) {\n                setNotice(\"These ingredients are already on your shopping list.\");\n                return true;\n            }\n            return await write(fresh, merged);\n        }\n        catch (reason) {\n            if (live(current, expectedScope))\n                problem(reason);\n            return false;\n        }\n        finally {\n            if (live(current, expectedScope))\n                setBusy(false);\n        }\n    }\n    async function retryOriginal() {\n        if (!active() || !currentIntent || !currentConflict || busy || loading)\n            return false;\n        return write(currentConflict, currentIntent.items);\n    }\n    function useSaved() {\n        if (!active() || !currentConflict || !currentIntent || busy || loading)\n            return;\n        setLoaded({ api, list: currentConflict });\n        retained.intent = undefined;\n        setIntent(undefined);\n        setConflict(undefined);\n        setError(\"\");\n        setNotice(\"Using the saved shopping list. Your original change was discarded.\");\n    }\n    const updateNewItem = (value) => { if (active() && !currentIntent && !busy && reader.status === \"ready\") {\n        draftScope.current = reader.scope;\n        retained.draftScope = reader.scope;\n        retained.newItem = value;\n        setNewItem(value);\n    } };\n    return { list, loading, busy, error: retained.capacityBlocked ? \"Resolve an earlier shopping-list draft or pending change before starting another view (12 retained views).\" : error, signInRequired: !retained.capacityBlocked && signInRequired, notice, accessDenied: reader.status === \"signed_out\" || reader.status === \"denied\", blocked: Boolean(retained.capacityBlocked || currentIntent || error || loading || busy || (!options.lazy && !list) || reader.status !== \"ready\"), intent: currentIntent, conflict: currentConflict, newItem: stateEntry.current === retained && !retained.retired && stateView.current === key && reader.status === \"ready\" && draftScope.current === reader.scope && (!intent || currentIntent) ? newItem : \"\", setNewItem: updateNewItem, save, add, reread: read, retryOriginal, useSaved };\n}\nexport function useShoppingHandoff(api, viewKey) {\n    return useShoppingList(api, { viewKey, lazy: true });\n}\n","imports":[{"dynamic":false,"end":51,"specifier":"./domain.js","start":40},{"dynamic":false,"end":95,"specifier":"./api.js","start":87},{"dynamic":false,"end":170,"specifier":"react","start":165}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/styles.js","kind":"module","text":"export function injectStyles(id, css) {\n    if (typeof document === \"undefined\" || document.getElementById(id))\n        return;\n    const style = document.createElement(\"style\");\n    style.id = id;\n    style.setAttribute(\"data-c11tihf5-extension-style\", id);\n    style.textContent = css;\n    document.head.appendChild(style);\n}\nconst publicLayoutCss = `\n.cedros-recipes-document{max-width:72ch;margin-inline:auto;font-family:var(--c11tihf5-font-body,inherit);line-height:var(--c11tihf5-line-height-body,1.5);overflow-wrap:anywhere}\n.cedros-recipes-document img{display:block;max-width:100%;height:auto;margin-block:1rem}\n.cedros-recipes-document pre{white-space:pre-wrap;overflow-wrap:anywhere}\n.cedros-recipes-document :where(h1,h2,h3,h4){font-family:var(--c11tihf5-font-heading,inherit)}\n.cedros-recipes-public .crx-prose img{max-width:100%;height:auto}\n\n.cedros-recipes-public.crx-root,.cedros-recipes-public.crx-root *{box-sizing:border-box}\n.cedros-recipes-public.crx-root{min-width:0;max-width:100%;color:var(--crx-text);font-family:var(--c11tihf5-font-body,inherit);font-size:var(--c11tihf5-font-size-base,1rem);line-height:var(--c11tihf5-line-height-body,1.5);overflow-wrap:anywhere;container-type:inline-size}\n.cedros-recipes-public.crx-root :where(.crx-stack,.crx-stack-sm,.crx-grid,.crx-panel,.crx-card,.crx-toolbar,.crx-toolbar__left,.crx-row,.crx-row-between,.crx-detail-main,.crx-detail-sidebar){min-width:0;max-width:100%}\n.cedros-recipes-public.crx-root :where(h1,h2,h3,h4,p,dl,dd){margin:0}\n.cedros-recipes-public.crx-root :where(h1,h2,h3){font-family:var(--c11tihf5-font-heading,inherit);color:var(--crx-text);font-weight:600;letter-spacing:0;line-height:var(--c11tihf5-line-height-heading,1.16)}\n.cedros-recipes-public.crx-root h1{font-size:2rem}\n.cedros-recipes-public.crx-root h2{font-size:1.25rem}\n.cedros-recipes-public.crx-root h3{font-size:1rem}\n.cedros-recipes-public.crx-root p{margin-bottom:0}\n.cedros-recipes-public :where(a:not(.crx-button):not(.crx-card-link)){color:var(--crx-link);text-decoration:underline;text-underline-offset:.2em}\n.cedros-recipes-public .crx-stack,.cedros-recipes-public.crx-root.crx-stack{display:grid;gap:1rem}\n.cedros-recipes-public .crx-stack-sm{display:grid;gap:.5rem}\n.cedros-recipes-public .crx-row{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}\n.cedros-recipes-public .crx-row-between{display:flex;gap:.75rem;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}\n.cedros-recipes-public .crx-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem}\n.cedros-recipes-public .crx-detail-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(16rem,.8fr);gap:1rem;align-items:start}\n.cedros-recipes-public .crx-detail-main{grid-column:1;grid-row:1}.cedros-recipes-public .crx-detail-sidebar{grid-column:2;grid-row:1}\n.cedros-recipes-public .crx-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap}\n.cedros-recipes-public .crx-title{margin:0;font-size:1.5rem}\n.cedros-recipes-public .crx-subtitle{max-width:72ch;color:var(--crx-muted);font-size:1rem}\n.cedros-recipes-public .crx-muted{color:var(--crx-muted);font-size:.8125rem}\n.cedros-recipes-public .crx-help{color:var(--crx-muted);font-size:.8125rem}\n.cedros-recipes-public.crx-root>.crx-button,.cedros-recipes-public :is(.crx-error,.crx-status)>.crx-button{justify-self:start}\n.cedros-recipes-public .crx-panel,.cedros-recipes-public.crx-root.crx-panel,.cedros-recipes-public .crx-card,.cedros-recipes-public.crx-root.crx-card{border:1px solid var(--crx-border);background:var(--crx-panel);box-shadow:var(--crx-shadow)}\n.cedros-recipes-public .crx-panel,.cedros-recipes-public.crx-root.crx-panel{border-radius:var(--crx-radius-lg)}\n.cedros-recipes-public .crx-card,.cedros-recipes-public.crx-root.crx-card{border-radius:var(--crx-radius-md)}\n.cedros-recipes-public .crx-panel,.cedros-recipes-public.crx-root.crx-panel{padding:clamp(1rem,4%,1.5rem)}\n.cedros-recipes-public .crx-card,.cedros-recipes-public.crx-root.crx-card{padding:.9rem}\n.cedros-recipes-public .crx-toolbar{display:flex;align-items:end;justify-content:space-between;gap:.75rem;flex-wrap:wrap}\n.cedros-recipes-public .crx-toolbar__left{display:flex;gap:.75rem;align-items:end;flex-wrap:wrap}\n.cedros-recipes-public .crx-flex-fill{flex:1 1 16rem}\n.cedros-recipes-public .crx-field{display:grid;gap:.5rem;color:var(--crx-text);font-size:.875rem;font-weight:500}\n.cedros-recipes-public .crx-field__description{color:var(--crx-muted);font-size:.8125rem;font-weight:400}\n.cedros-recipes-public .crx-search{position:relative;display:flex;align-items:center;min-width:0}\n.cedros-recipes-public .crx-search>.crx-input{flex:1 1 auto;padding-inline-start:2.5rem}\n.cedros-recipes-public .crx-search>.crx-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}\n.cedros-recipes-public .crx-search:has(>.crx-search__clear)>.crx-input{padding-inline-end:3rem}\n.cedros-recipes-public .crx-search__icon{position:absolute;inset-inline-start:.875rem;top:50%;margin-top:-8px;color:var(--crx-muted);pointer-events:none}\n.cedros-recipes-public .crx-search>.crx-search__clear{position:absolute;inset-inline-end:.25rem;top:0;bottom:0;margin-block:auto;min-height:0;height:2.25rem;width:2.25rem;padding:0}\n.cedros-recipes-public .crx-input,.cedros-recipes-public .crx-textarea,.cedros-recipes-public .crx-select{width:100%;min-width:0;min-height:2.75rem;border:1px solid var(--crx-control-border);border-radius:var(--crx-radius-sm);padding:.5rem .75rem;background:var(--crx-panel);color:var(--crx-text);font:inherit;font-size:1rem;font-weight:400;transition:border-color var(--crx-motion-fast) var(--crx-motion-ease),box-shadow var(--crx-motion-fast) var(--crx-motion-ease)}\n.cedros-recipes-public.crx-root:focus-visible,.cedros-recipes-public.crx-root :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--crx-ring);outline-offset:2px}\n.cedros-recipes-public :where(.crx-input,.crx-select,.crx-textarea):disabled{cursor:not-allowed;opacity:.55;background:var(--crx-muted-bg)}\n.cedros-recipes-public :where(.crx-input,.crx-textarea)::placeholder{color:var(--crx-muted);opacity:1}\n.cedros-recipes-public :where(.crx-input,.crx-textarea)[readonly]{background:var(--crx-muted-bg)}\n.cedros-recipes-public .crx-textarea{min-height:6.5rem;resize:vertical}\n.cedros-recipes-public .crx-input:focus-visible,.cedros-recipes-public .crx-textarea:focus-visible,.cedros-recipes-public .crx-select:focus-visible,.cedros-recipes-public .crx-button:focus-visible,.cedros-recipes-public .crx-card:focus-visible,.cedros-recipes-public .crx-card-link:focus-visible{outline:2px solid var(--crx-ring);outline-offset:2px}\n.cedros-recipes-public .crx-input[aria-invalid=\"true\"],.cedros-recipes-public .crx-textarea[aria-invalid=\"true\"],.cedros-recipes-public .crx-select[aria-invalid=\"true\"]{border-color:var(--crx-error);box-shadow:0 0 0 1px var(--crx-error)}\n.cedros-recipes-public .crx-button{display:inline-flex;align-items:center;justify-content:center;min-height:2.75rem;max-width:100%;white-space:normal;overflow-wrap:anywhere;gap:.5rem;border:1px solid var(--crx-action-bg);border-radius:var(--crx-radius-sm);background:var(--crx-action-bg);color:var(--crx-action-fg);font:inherit;font-size:.875rem;font-weight:500;line-height:1.2;padding:.5rem .75rem;text-decoration:none;cursor:pointer;transition:transform var(--crx-motion-fast) var(--crx-motion-ease),background-color var(--crx-motion-fast) var(--crx-motion-ease),border-color var(--crx-motion-fast) var(--crx-motion-ease),box-shadow var(--crx-motion-fast) var(--crx-motion-ease)}\n.cedros-recipes-public .crx-button.secondary{border-color:var(--crx-control-border);background:var(--crx-panel);color:var(--crx-text)}\n.cedros-recipes-public .crx-button.ghost{border-color:transparent;background:transparent;color:var(--crx-text)}\n.cedros-recipes-public .crx-button:hover:not(:disabled):not([aria-disabled=\"true\"]){background:color-mix(in srgb,var(--crx-action-bg) 88%,var(--crx-action-fg));text-decoration:none}\n.cedros-recipes-public .crx-button:is(.secondary,.ghost):hover:not(:disabled):not([aria-disabled=\"true\"]){background:var(--crx-muted-bg);color:var(--crx-text)}\n.cedros-recipes-public .crx-button:active:not(:disabled):not([aria-disabled=\"true\"]){box-shadow:inset 0 0 0 1px currentColor}\n.cedros-recipes-public .crx-button:disabled,.cedros-recipes-public .crx-button[aria-disabled=\"true\"]{cursor:not-allowed;opacity:.55}\n.cedros-recipes-public .crx-button[aria-busy=\"true\"]{cursor:progress}\n.cedros-recipes-public .crx-card-link{display:grid;gap:.75rem;color:inherit;text-decoration:none;transition:transform var(--crx-motion-fast) var(--crx-motion-ease),border-color var(--crx-motion-fast) var(--crx-motion-ease),box-shadow var(--crx-motion-fast) var(--crx-motion-ease)}\n.cedros-recipes-public .crx-card-link:hover{border-color:var(--crx-ring)}\n.cedros-recipes-public .crx-card-link:hover h3{text-decoration:underline;text-underline-offset:.2em}\n.cedros-recipes-public .crx-media{display:block;width:100%;aspect-ratio:4/3;border-radius:var(--crx-radius-sm);object-fit:cover;background:var(--crx-muted-bg)}\n.cedros-recipes-public .crx-pill{justify-self:start;max-width:100%;display:inline-flex;align-items:center;gap:.35rem;min-height:1.45rem;border:1px solid var(--crx-border);border-radius:var(--crx-radius-sm);padding:.15rem .5rem;color:var(--crx-muted);font-size:.75rem;font-weight:600;white-space:normal}\n.cedros-recipes-public .crx-pill.success{border-color:var(--crx-success);color:var(--crx-text);background:var(--crx-success-bg)}\n.cedros-recipes-public .crx-pill.warning{border-color:var(--crx-warning);color:var(--crx-text);background:var(--crx-warning-bg)}\n.cedros-recipes-public .crx-pill.error{border-color:var(--crx-error);color:var(--crx-text);background:var(--crx-error-bg)}\n.cedros-recipes-public .crx-pill.info{border-color:var(--crx-info);color:var(--crx-text);background:var(--crx-info-bg)}\n.cedros-recipes-public .crx-status,.cedros-recipes-public .crx-error,.cedros-recipes-public .crx-success,.cedros-recipes-public.crx-root.crx-error,.cedros-recipes-public.crx-root.crx-success{border:1px solid var(--crx-border);border-radius:var(--crx-radius-md);padding:.75rem 1rem}\n.cedros-recipes-public .crx-status{background:var(--crx-muted-bg);color:var(--crx-text)}\n.cedros-recipes-public .crx-status.info{border-color:var(--crx-info);background:var(--crx-info-bg);color:var(--crx-text)}\n.cedros-recipes-public .crx-status.warning{border-color:var(--crx-warning);background:var(--crx-warning-bg);color:var(--crx-text)}\n.cedros-recipes-public .crx-error,.cedros-recipes-public .crx-status.error,.cedros-recipes-public.crx-root.crx-error{border-color:var(--crx-error);background:var(--crx-error-bg);color:var(--crx-text)}\n.cedros-recipes-public .crx-success,.cedros-recipes-public .crx-status.success,.cedros-recipes-public.crx-root.crx-success{border-color:var(--crx-success);background:var(--crx-success-bg);color:var(--crx-text)}\n.cedros-recipes-public .crx-empty{display:grid;gap:.5rem;align-content:center;min-height:7rem;border:1px dashed var(--crx-border);border-radius:var(--crx-radius-lg);padding:1rem;background:var(--crx-muted-bg)}\n.cedros-recipes-public .crx-skeleton{min-height:7rem;border-radius:var(--crx-radius-lg);background:linear-gradient(90deg,var(--crx-muted-bg),var(--crx-panel),var(--crx-muted-bg));background-size:220% 100%;animation:crx-shimmer var(--crx-motion-skeleton) var(--crx-motion-ease) infinite}\n.cedros-recipes-public .crx-list{display:grid;gap:.5rem;padding-left:1.2rem;margin:0}\n.cedros-recipes-public .crx-check-row{display:flex;align-items:flex-start;gap:.75rem;min-height:2.75rem}\n.cedros-recipes-public .crx-check-row input{flex-shrink:0}\n.cedros-recipes-public.crx-root :where(input[type=\"checkbox\"],input[type=\"radio\"]){accent-color:var(--crx-action-bg)}\n.cedros-recipes-public .crx-progress{width:100%;height:.45rem;border:0;border-radius:999px;overflow:hidden;background:var(--crx-muted-bg);accent-color:var(--crx-action-bg)}\n.cedros-recipes-public .crx-progress::-webkit-progress-bar{background:var(--crx-muted-bg);border-radius:999px}\n.cedros-recipes-public .crx-progress::-webkit-progress-value{background:var(--crx-action-bg);border-radius:999px}\n.cedros-recipes-public .crx-progress::-moz-progress-bar{background:var(--crx-action-bg);border-radius:999px}\n.cedros-recipes-public .crx-axis-stage{display:grid;overflow:hidden;border-radius:var(--crx-radius-lg)}\n.cedros-recipes-public .crx-axis-panel{grid-area:1/1;min-width:0;will-change:transform,opacity}\n.cedros-recipes-public .crx-axis-panel[data-state=\"outgoing\"]{pointer-events:none}\n.cedros-recipes-public .crx-axis-stage[data-transitioning=\"true\"][data-direction=\"forward\"] .crx-axis-panel[data-state=\"incoming\"]{animation:crx-axis-enter-forward var(--crx-motion-axis) var(--crx-motion-ease) both}\n.cedros-recipes-public .crx-axis-stage[data-transitioning=\"true\"][data-direction=\"forward\"] .crx-axis-panel[data-state=\"outgoing\"]{animation:crx-axis-exit-forward var(--crx-motion-axis) var(--crx-motion-ease) both}\n.cedros-recipes-public .crx-axis-stage[data-transitioning=\"true\"][data-direction=\"backward\"] .crx-axis-panel[data-state=\"incoming\"]{animation:crx-axis-enter-backward var(--crx-motion-axis) var(--crx-motion-ease) both}\n.cedros-recipes-public .crx-axis-stage[data-transitioning=\"true\"][data-direction=\"backward\"] .crx-axis-panel[data-state=\"outgoing\"]{animation:crx-axis-exit-backward var(--crx-motion-axis) var(--crx-motion-ease) both}\n.cedros-recipes-public .crx-cook-context>.crx-row-between{align-items:flex-start}\n.cedros-recipes-public .crx-cook-context h1{font-size:1.15rem;line-height:1.35}\n.cedros-recipes-public .crx-cook-step{min-height:15rem;align-content:start}\n.cedros-recipes-public .crx-cook-step__number{color:var(--crx-muted);font-size:.8125rem;font-weight:500}\n.cedros-recipes-public .crx-cook-step__text{font-size:clamp(1.05rem,2vw,1.3rem);line-height:1.55}\n.cedros-recipes-public .crx-timer{display:grid;gap:.75rem;padding:.75rem;border-radius:var(--crx-radius-md);background:var(--crx-muted-bg)}\n.cedros-recipes-public .crx-timer__time{font-size:1.5rem;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}\n.cedros-recipes-public :is(.crx-timer,.crx-empty,.crx-status) .crx-muted{color:var(--crx-text)}\n.cedros-recipes-public .crx-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n/* Discovery: the dish, rather than a card frame, is the visual unit. */\n.cedros-recipes-public .crx-recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem 1.5rem;align-items:start}\n.cedros-recipes-public .crx-recipe-card{grid-template-columns:minmax(0,1fr);align-content:start;gap:1rem;border-radius:var(--crx-radius-md);min-width:0}\n.cedros-recipes-public .crx-recipe-card h3{font-size:1.15rem;line-height:1.35}\n.cedros-recipes-public .crx-recipe-card__body{padding-inline:.25rem}\n.cedros-recipes-public .crx-recipe-card__description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}\n.cedros-recipes-public .crx-media-missing{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;color:var(--crx-text);font-size:.8125rem;border:1px solid var(--crx-border)}\n.cedros-recipes-public .crx-media-missing svg{width:2rem;height:2rem;opacity:.6}\n.cedros-recipes-public .crx-catalog-search{align-items:center;gap:1rem;padding-block:.5rem 1rem;border-bottom:1px solid var(--crx-border)}\n.cedros-recipes-public .crx-catalog-search .crx-toolbar__left{flex:1;align-items:end}\n.cedros-recipes-public .crx-catalog-search .crx-toolbar__left>.crx-field:first-child{flex:1;max-width:34rem}\n.cedros-recipes-public .crx-catalog-filters{display:contents}\n.cedros-recipes-public .crx-catalog-filter-toggle{display:none}\n.cedros-recipes-public .crx-catalog-filter-fields{display:flex;align-items:end;gap:.75rem;min-width:0}\n.cedros-recipes-public .crx-catalog-results{display:flex;align-items:center;gap:.5rem 1rem;flex-wrap:wrap}\n.cedros-recipes-public .crx-catalog-back{justify-self:start;color:var(--crx-link);font-size:.875rem;text-underline-offset:.25em}\n/* Reader navigation is supporting context; discovery stays in the first screen. */\n.cedros-recipes-public .crx-catalog-header{align-items:center}\n.cedros-recipes-public .crx-reader-nav{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem 1.5rem;font-size:.875rem}\n.cedros-recipes-public .crx-reader-nav a{display:inline-flex;align-items:center;min-height:2.75rem;padding-block:.5rem;color:var(--crx-muted);text-decoration:none;text-underline-offset:.35em}\n.cedros-recipes-public .crx-reader-nav a[aria-current=\"page\"]{color:var(--crx-text);font-weight:600;text-decoration:underline}\n.cedros-recipes-public .crx-reader-nav a:hover{color:var(--crx-link);text-decoration:underline}\n.cedros-recipes-public .crx-recipe-actions{align-items:start}\n.cedros-recipes-public .crx-preparation{scroll-margin-block:1rem}\n.cedros-recipes-public .crx-preparation:focus-visible{outline:2px solid var(--crx-ring);outline-offset:.5rem}\n.cedros-recipes-public .crx-save-action{justify-items:start;max-width:24rem}\n.cedros-recipes-public .crx-review-compose>summary{min-height:2.75rem;cursor:pointer;color:var(--crx-link);font-weight:600;padding-block:.5rem}\n.cedros-recipes-public .crx-review-compose[open]>summary{margin-bottom:.75rem}\n.cedros-recipes-public .crx-review-compose .crx-button{justify-self:start}\n.cedros-recipes-public.crx-shopping-list{width:min(100%,44rem)}\n.cedros-recipes-public .crx-cook-title-toggle{display:none;min-height:2.75rem;border:0;background:transparent;color:var(--crx-link);font:inherit;font-size:.8125rem;text-align:start;padding:.25rem 0;cursor:pointer;justify-self:start}\n@container(max-width:48rem){.cedros-recipes-public .crx-cook-context[data-title-collapsible]:not([data-title-expanded]) h1{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.cedros-recipes-public .crx-cook-title-toggle{display:block}}\n/* Detail: identity and the primary action arrive before preparation. */\n.cedros-recipes-public .crx-recipe-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2rem;align-items:center;padding-block:.5rem 1.5rem;border-bottom:1px solid var(--crx-border)}\n.cedros-recipes-public .crx-recipe-header--text{grid-template-columns:minmax(0,1fr);max-width:52rem}\n.cedros-recipes-public .crx-recipe-identity{min-width:0;align-content:start}\n.cedros-recipes-public .crx-recipe-header h1{font-size:clamp(1.75rem,3vw,2.5rem);line-height:1.15}\n.cedros-recipes-public .crx-recipe-photo{aspect-ratio:4/3;max-height:28rem}\n.cedros-recipes-public .crx-recipe-facts{display:flex;flex-wrap:wrap;gap:1rem 2rem;padding-block:.5rem}\n.cedros-recipes-public .crx-recipe-facts>div{display:grid;gap:.25rem}\n.cedros-recipes-public .crx-recipe-actions{align-items:flex-start}\n.cedros-recipes-public .crx-recipe-utilities{gap:1.5rem;font-size:.875rem}\n.cedros-recipes-public .crx-recipe-utilities>.crx-button{padding-inline:0}\n.cedros-recipes-public .crx-recipe-card__facts{display:flex;flex-wrap:wrap;gap:.25rem 0;list-style:none;padding:0;margin:0}\n.cedros-recipes-public .crx-recipe-card__facts>li{max-width:100%}\n.cedros-recipes-public .crx-recipe-card__facts>li+li::before{content:\"·\";margin-inline:.5rem;color:var(--crx-muted)}\n.cedros-recipes-public .crx-recipe-card__facts>.crx-pill{margin-inline-start:.5rem}\n.cedros-recipes-public .crx-recipe-card__facts>.crx-pill::before{content:none}\n.cedros-recipes-public .crx-recipe-loading-grid .crx-skeleton{min-height:0;aspect-ratio:4/3}\n.cedros-recipes-public .crx-loading-copy{display:grid;gap:1rem}\n.cedros-recipes-public .crx-loading-copy>span{display:block;height:.875rem;border-radius:var(--crx-radius-sm);background:var(--crx-muted-bg)}\n.cedros-recipes-public .crx-loading-copy>span:first-child{height:1.5rem;width:85%}\n.cedros-recipes-public .crx-loading-copy>span:last-child{width:60%}\n.cedros-recipes-public .crx-detail-loading .crx-skeleton{min-height:0}\n@container(max-width:32rem){.cedros-recipes-public .crx-recipe-loading-grid>div:not(:first-child){display:none}}\n.cedros-recipes-public .crx-detail-layout{grid-template-columns:minmax(16rem,.75fr) minmax(0,1.25fr);gap:2rem}\n.cedros-recipes-public .crx-detail-sidebar{grid-column:1;grid-row:1}\n.cedros-recipes-public .crx-detail-main{grid-column:2;grid-row:1}\n.cedros-recipes-public .crx-serving-field{width:5.5rem;font-size:.75rem}\n.cedros-recipes-public .crx-method-step{padding-block:.75rem;border-bottom:1px solid var(--crx-border)}\n.cedros-recipes-public .crx-before-cooking{padding-block:.5rem 1rem;border-bottom:1px solid var(--crx-border)}\n.cedros-recipes-public .crx-before-cooking>p{max-width:65ch}\n.cedros-recipes-public .crx-method-step>input{margin-block-start:.3rem}\n.cedros-recipes-public .crx-method-copy{display:grid;grid-template-columns:1.5rem minmax(0,1fr);gap:.5rem .75rem;flex:1}\n.cedros-recipes-public .crx-step-number{font-weight:700;color:var(--crx-muted);font-variant-numeric:tabular-nums}\n.cedros-recipes-public .crx-method-copy>.crx-stack-sm{grid-column:2}\n.cedros-recipes-public .crx-support{padding-block:.75rem}\n.cedros-recipes-public .crx-recipe-support{display:grid;grid-template-columns:minmax(0,1fr) minmax(12rem,.4fr);gap:2rem;border-top:1px solid var(--crx-border);padding-block:1.5rem .5rem;align-items:start}\n.cedros-recipes-public .crx-recipe-support:empty{display:none}\n.cedros-recipes-public .crx-recipe-support>:only-child{grid-column:1/-1}\n.cedros-recipes-public .crx-aftercare__items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 2rem}\n.cedros-recipes-public .crx-aftercare{gap:1rem}\n.cedros-recipes-public .crx-recipe-support>.crx-panel{padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}\n.cedros-recipes-public .crx-recipe-support .crx-nutrition-facts{grid-template-columns:minmax(0,1fr)}\n.cedros-recipes-public .crx-reviews{border:0;border-top:1px solid var(--crx-border);border-radius:0;background:transparent;box-shadow:none;padding:1.5rem 0 .5rem}\n.cedros-recipes-public .crx-reviews>article{max-width:65ch;padding-block:.5rem}\n.cedros-recipes-public .crx-review-compose{max-width:45rem}\n.cedros-recipes-public .crx-recipe-disclaimer{max-width:80ch;padding-top:1rem;border-top:1px solid var(--crx-border)}\n.cedros-recipes-public.crx-print-recipe .crx-recipe-header{display:block;padding-block:0 1rem;max-width:none}\n.cedros-recipes-public.crx-print-recipe .crx-recipe-header h1{font-size:1.5rem}\n.cedros-recipes-public.crx-print-recipe .crx-recipe-identity{gap:.75rem}\n.cedros-recipes-public.crx-print-recipe .crx-recipe-actions{margin-top:.25rem}\n@container(max-width:48rem){.cedros-recipes-public .crx-recipe-support{grid-template-columns:minmax(0,1fr);gap:1.5rem}.cedros-recipes-public .crx-aftercare__items{grid-template-columns:minmax(0,1fr)}.cedros-recipes-public .crx-recipe-support .crx-nutrition-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}\n.cedros-recipes-public .crx-ingredient-group+.crx-ingredient-group{border-top:1px solid var(--crx-border);padding-top:1rem;margin-top:.5rem}\n.cedros-recipes-public .crx-ingredient-group h3{font-size:.875rem;font-weight:600;line-height:1.5}\n.cedros-recipes-public .crx-method-step[data-complete=\"true\"] .crx-step-number{color:var(--crx-text)}\n.cedros-recipes-public .crx-nutrition-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem 1.5rem}\n.cedros-recipes-public .crx-nutrition-facts>div{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;border-bottom:1px solid var(--crx-border);padding-bottom:.5rem}\n.cedros-recipes-public .crx-nutrition-facts dd{font-variant-numeric:tabular-nums;text-align:end}\n.cedros-recipes-public .crx-shopping-items{display:grid;gap:.5rem}\n.cedros-recipes-public .crx-shopping-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding-block:0}\n.cedros-recipes-public .crx-shopping-row>.crx-check-row{flex:1;align-items:center;min-width:0}\n.cedros-recipes-public .crx-shopping-row[data-purchased=\"true\"] label{color:var(--crx-muted)}\n.cedros-recipes-public .crx-shopping-row[data-purchased=\"true\"] label>span{text-decoration:line-through}\n.cedros-recipes-public .crx-shopping-group+.crx-shopping-group{border-top:1px solid var(--crx-border);padding-top:1rem}\n.cedros-recipes-public .crx-shopping-group__title{font-size:.875rem;font-weight:600;line-height:1.5}\n.cedros-recipes-public .crx-shopping-add{display:flex;gap:.75rem;align-items:end}\n.cedros-recipes-public .crx-shopping-add>.crx-field{flex:1;min-width:0}\n/* Meal planning: seven compact day panels; each keeps its own height. */\n.cedros-recipes-public .crx-week-nav{display:grid;grid-template-columns:auto minmax(0,auto) auto;justify-content:start;align-items:center;gap:.75rem}\n.cedros-recipes-public .crx-week-nav>strong{text-align:center}\n.cedros-recipes-public .crx-meal-week{min-width:0;margin:0;padding:0;border:0;align-items:start}\n.cedros-recipes-public .crx-meal-day{align-content:start}\n@container(max-width:32rem){.cedros-recipes-public .crx-nutrition-facts{grid-template-columns:minmax(0,1fr)}.cedros-recipes-public .crx-panel,.cedros-recipes-public.crx-root.crx-panel{padding:1rem}}\n/* Cooking: keep the current instruction dominant and running timers visible. */\n.cedros-recipes-public .crx-cook-layout{row-gap:1rem;grid-template-columns:minmax(0,1fr) minmax(16rem,.45fr);grid-template-areas:\"current timers\" \"current reference\"}\n.cedros-recipes-public .crx-cook-layout:not(:has(.crx-cook-other-timers)){grid-template-areas:\"current reference\"}\n.cedros-recipes-public .crx-cook-current{grid-area:current}\n.cedros-recipes-public .crx-cook-other-timers{grid-area:timers}\n.cedros-recipes-public .crx-cook-reference-column{grid-area:reference}\n.cedros-recipes-public .crx-unchecked-step{justify-content:start;white-space:normal;text-align:start}\n.cedros-recipes-public .crx-cook-reference{min-width:0}\n.cedros-recipes-public .crx-cook-reference>summary{cursor:pointer;font-weight:600;padding-block:.75rem}\n.cedros-recipes-public .crx-cook-reference[open]>summary{margin-bottom:.5rem}\n@container(max-width:56rem){.cedros-recipes-public .crx-recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}\n@container(max-width:48rem){.cedros-recipes-public .crx-recipe-header{grid-template-columns:minmax(0,1fr);gap:1.5rem}.cedros-recipes-public .crx-recipe-photo{max-height:20rem;aspect-ratio:16/9}.cedros-recipes-public .crx-catalog-search{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end}.cedros-recipes-public .crx-catalog-search .crx-toolbar__left{display:contents}.cedros-recipes-public .crx-catalog-search .crx-toolbar__left>.crx-field:first-child{grid-column:1/-1;max-width:none}.cedros-recipes-public .crx-catalog-search .crx-toolbar__left>.crx-field:last-child{grid-column:1;max-width:20rem}.cedros-recipes-public .crx-catalog-search>[role=\"status\"]{grid-column:2;padding-bottom:.6rem}.cedros-recipes-public .crx-detail-main,.cedros-recipes-public .crx-detail-sidebar{grid-column:auto;grid-row:auto}.cedros-recipes-public .crx-cook-layout{grid-template-columns:minmax(0,1fr)}}\n@container(max-width:32rem){.cedros-recipes-public .crx-recipe-grid{grid-template-columns:minmax(0,1fr);gap:1.5rem}.cedros-recipes-public .crx-recipe-header h1{font-size:1.75rem}.cedros-recipes-public .crx-catalog-search{gap:.75rem}}\n@container(max-width:48rem){.cedros-recipes-public .crx-cook-layout{grid-template-areas:\"timers\" \"reference\" \"current\"}.cedros-recipes-public .crx-cook-layout:not(:has(.crx-cook-other-timers)){grid-template-areas:\"reference\" \"current\"}}\n@keyframes crx-shimmer{0%{background-position:120% 0}100%{background-position:-120% 0}}\n@keyframes crx-axis-enter-forward{from{opacity:0;transform:translateX(2rem)}to{opacity:1;transform:none}}\n@keyframes crx-axis-exit-forward{from{opacity:1;transform:none}to{opacity:0;transform:translateX(-1.5rem)}}\n@keyframes crx-axis-enter-backward{from{opacity:0;transform:translateX(-2rem)}to{opacity:1;transform:none}}\n@keyframes crx-axis-exit-backward{from{opacity:1;transform:none}to{opacity:0;transform:translateX(1.5rem)}}\n@media(prefers-reduced-motion:reduce){.cedros-recipes-public.crx-root .crx-skeleton,.cedros-recipes-public.crx-root .crx-axis-panel,.cedros-recipes-public.crx-root .crx-button,.cedros-recipes-public.crx-root .crx-card-link,.cedros-recipes-public.crx-root .crx-card:is(button){animation:none;transition:none;transform:none}}\n@container(max-width:48rem){.cedros-recipes-public .crx-detail-layout{grid-template-columns:minmax(0,1fr)}.cedros-recipes-public .crx-detail-main,.cedros-recipes-public .crx-detail-sidebar{grid-column:auto;grid-row:auto}.cedros-recipes-public .crx-page-header,.cedros-recipes-public .crx-toolbar{align-items:stretch}.cedros-recipes-public .crx-toolbar__left{width:100%;align-items:stretch}.cedros-recipes-public .crx-toolbar__left>.crx-field,.cedros-recipes-public .crx-row-between>.crx-field{flex:1 1 100%}.cedros-recipes-public .crx-button{min-height:2.75rem}.cedros-recipes-public .crx-row-between{align-items:stretch}.cedros-recipes-public .crx-input,.cedros-recipes-public .crx-select,.cedros-recipes-public .crx-textarea{min-width:0}}\n@container(max-width:48rem){.cedros-recipes-public .crx-row-between>.crx-serving-field{flex:0 0 5.5rem}.cedros-recipes-public .crx-panel>.crx-row-between:has(>.crx-serving-field){align-items:center}}\n@container(max-width:48rem){\n.cedros-recipes-public .crx-catalog-search .crx-toolbar__left{display:contents}\n.cedros-recipes-public .crx-catalog-search .crx-toolbar__left>.crx-field{width:auto;flex:none}\n.cedros-recipes-public .crx-catalog-search .crx-toolbar__left>.crx-field:first-child{grid-column:1/-1;max-width:none}\n.cedros-recipes-public .crx-catalog-search .crx-toolbar__left>.crx-field:not(:first-child){grid-column:auto;max-width:none}\n.cedros-recipes-public .crx-catalog-results{grid-column:1/-1;justify-content:space-between}\n}\n@container(max-width:48rem){.cedros-recipes-public .crx-catalog-filter-fields{grid-column:1/-1}}\n@container(max-width:32rem){\n.cedros-recipes-public .crx-catalog-search{grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:center}\n.cedros-recipes-public .crx-catalog-filters{display:contents}\n.cedros-recipes-public .crx-catalog-filter-toggle{display:flex;grid-column:2;grid-row:2;justify-self:end;justify-content:space-between;text-align:start;gap:.75rem}\n.cedros-recipes-public .crx-catalog-filter-fields{display:grid;grid-column:1/-1;grid-row:3;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}\n.cedros-recipes-public .crx-catalog-filter-fields[data-expanded=\"false\"]{display:none}\n.cedros-recipes-public .crx-catalog-filter-fields>.crx-field:only-child{grid-column:1/-1}\n.cedros-recipes-public .crx-catalog-results{grid-column:1;grid-row:2;align-self:center;justify-content:flex-start}\n}\n@container(max-width:16em){\n.cedros-recipes-public .crx-catalog-search{grid-template-columns:minmax(0,1fr)}\n.cedros-recipes-public .crx-catalog-search .crx-toolbar__left>.crx-field{grid-column:1/-1}\n}\n@media print{\n.cedros-recipes-public.crx-root .crx-print-hidden{display:none!important}\n.cedros-recipes-public.crx-root .crx-detail-layout{display:block}\n.cedros-recipes-public.crx-root .crx-detail-main,.cedros-recipes-public.crx-root .crx-detail-sidebar{display:grid;grid-column:auto;grid-row:auto;margin-bottom:1rem}\n.cedros-recipes-public.crx-root .crx-panel,.cedros-recipes-public.crx-root.crx-panel,.cedros-recipes-public.crx-root .crx-card{box-shadow:none;break-inside:avoid}\n.cedros-recipes-public.crx-root .crx-check-row>input{display:none}\n.cedros-recipes-public.crx-root .crx-recipe-header{display:block}.cedros-recipes-public.crx-root .crx-recipe-photo{max-height:10rem;width:auto;margin-top:1rem}\n}\n`;\n// Shared admin primitives keep their host styling; this CSS owns recipe composition.\nconst adminLayoutCss = `\n.cedros-recipes-admin .crx-affiliate-report{display:grid;gap:12px;min-width:0}\n.cedros-recipes-admin .crx-affiliate-report__row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:16px;align-items:center;border-top:1px solid var(--crx-border);padding:16px 0;overflow-wrap:anywhere;min-width:0}\n.cedros-recipes-admin .crx-affiliate-report__row dl{margin:0;display:grid;gap:8px;min-width:0}\n.cedros-recipes-admin .crx-affiliate-report__row dd{margin:0}\n.cedros-recipes-admin .crx-affiliate-report__row dt{font-size:.875rem;color:var(--crx-muted)}\n@media(max-width:600px){.cedros-recipes-admin .crx-affiliate-report__row{grid-template-columns:minmax(0,1fr);gap:12px}.cedros-recipes-admin .crx-affiliate-report__row button{justify-self:start}}\n\n.cedros-recipes-admin.crx-root .crx-confirm-overlay{margin:0;width:100%;height:100%;max-width:none;max-height:none;border:0}\n.cedros-recipes-admin.crx-root .crx-confirm-dialog{max-height:min(85dvh,44rem);overflow:auto}\n.cedros-recipes-admin.crx-root .crx-confirm-overlay::backdrop{background:transparent}\n.cedros-recipes-admin.crx-root .crx-dialog-actions{display:flex;justify-content:flex-end;gap:.75rem;flex-wrap:wrap}\n.cedros-recipes-admin.crx-root,.cedros-recipes-admin.crx-root *{box-sizing:border-box}\n.cedros-recipes-admin.crx-root{min-width:0;max-width:100%;color:var(--crx-text);font-size:.875rem;line-height:1.5;overflow-wrap:anywhere;container-type:inline-size}\n.cedros-recipes-admin.crx-root :where(h1,h2,h3,h4,p,dl,dd):not([class*=\"cedros-data-\"]){margin:0}\n.cedros-recipes-admin.crx-root :where(h3:not([class*=\"cedros-data-\"]),h4){font-size:.875rem;font-weight:600;line-height:1.25}\n.cedros-recipes-admin.crx-root :where(.crx-stack,.crx-stack-sm,.crx-grid,.crx-panel,.crx-row,.crx-row-between,.crx-editor,.crx-toolbar-field){min-width:0;max-width:100%}\n.cedros-recipes-admin.crx-root.crx-stack,.cedros-recipes-admin.crx-root .crx-stack{display:grid;gap:1rem}\n.cedros-recipes-admin.crx-root .crx-stack-sm{display:grid;gap:.75rem}\n.cedros-recipes-admin.crx-root .crx-row{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}\n.cedros-recipes-admin.crx-root .crx-row-between{display:flex;gap:.75rem;align-items:center;justify-content:space-between;flex-wrap:wrap}\n.cedros-recipes-admin.crx-root .crx-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem}\n.cedros-recipes-admin.crx-root .crx-settings{display:grid;gap:1rem;width:min(100%,var(--cd-container-settings,45rem))}\n.cedros-recipes-admin.crx-root .crx-panel{padding:1rem}\n.cedros-recipes-admin.crx-root .crx-muted{color:var(--crx-muted);font-size:.8125rem}\n.cedros-recipes-admin.crx-root .crx-help{color:var(--crx-muted);font-size:.75rem}\n.cedros-recipes-admin.crx-root .crx-flex-fill{flex:1 1 16rem}\n.cedros-recipes-admin.crx-root .crx-toolbar-field{flex:0 1 18rem;width:18rem}\n.cedros-recipes-admin.crx-root .crx-search{position:relative;display:flex;align-items:center;min-width:0}\n.cedros-recipes-admin.crx-root .crx-search>.cedros-data-input{flex:1 1 auto;padding-inline-start:2.25rem}\n.cedros-recipes-admin.crx-root .crx-search>.cedros-data-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}\n.cedros-recipes-admin.crx-root .crx-search:has(>.crx-search__clear)>.cedros-data-input{padding-inline-end:2.5rem}\n.cedros-recipes-admin.crx-root .crx-search__icon{position:absolute;inset-inline-start:.75rem;top:50%;margin-top:-8px;color:var(--crx-muted);pointer-events:none}\n.cedros-recipes-admin.crx-root .crx-search>.crx-search__clear{position:absolute;inset-inline-end:.125rem;top:0;bottom:0;margin-block:auto;width:2rem;padding:0;justify-content:center}\n.cedros-recipes-admin.crx-root .crx-comparison-table{min-width:40rem}\n.cedros-recipes-admin.crx-root .crx-recipe-library-table{min-width:28rem}\n.cedros-recipes-admin.crx-root .crx-recipe-library-table th:first-child{width:52%}\n.cedros-recipes-admin.crx-root :is(.crx-library-title,.crx-collection-members){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}\n.cedros-recipes-admin.crx-root .crx-recipe-library-table .crx-identifier{overflow-wrap:anywhere}\n.cedros-recipes-admin.crx-root .crx-comparison-table:is([data-state=\"empty\"],[data-state=\"error\"]){min-width:0}\n.cedros-recipes-admin.crx-root .crx-review-inbox{list-style:none;margin:0;padding:0;max-width:100%}\n.cedros-recipes-admin.crx-root .crx-review-inbox__row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:1.5rem;padding-block:1rem;border-bottom:1px solid var(--crx-border)}\n.cedros-recipes-admin.crx-root .crx-review-inbox__row:first-child{border-top:1px solid var(--crx-border)}\n.cedros-recipes-admin.crx-root .crx-review-inbox__action{padding-top:.25rem}\n.cedros-recipes-admin.crx-root .crx-review-inbox__loading-action.crx-loading-line{height:2rem;width:7rem}\n@container(max-width:32rem){.cedros-recipes-admin.crx-root .crx-review-inbox__row{grid-template-columns:minmax(0,1fr);gap:.75rem}.cedros-recipes-admin.crx-root .crx-review-inbox__action{padding-top:0}}\n.cedros-recipes-admin.crx-root .crx-editor-fields,.cedros-recipes-admin.crx-root .crx-taxonomy-field{min-width:0;margin:0;padding:0;border:0}\n.cedros-recipes-admin.crx-root .crx-taxonomy-field{display:grid;gap:.75rem}\n.cedros-recipes-admin.crx-root .crx-taxonomy-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:.5rem .75rem}\n.cedros-recipes-admin.crx-root .crx-taxonomy-field legend{padding:0}\n.cedros-recipes-admin.crx-root .crx-list{display:grid;gap:.5rem;padding-inline-start:1.5rem;margin:0}\n.cedros-recipes-admin.crx-root .crx-disclosure__trigger:focus-visible{outline:2px solid var(--crx-ring);outline-offset:2px}\n.cedros-recipes-admin.crx-root .crx-filtered-empty{display:flex;justify-content:center;align-items:center;gap:.75rem;flex-wrap:wrap}\n.cedros-recipes-admin.crx-root .crx-setting-copy{display:grid;gap:.25rem;min-width:0}\n.cedros-recipes-admin.crx-root .crx-check-row:has(>.crx-setting-copy){align-items:flex-start}\n.cedros-recipes-admin.crx-root .crx-check-row:has(>.crx-setting-copy)>input{margin-top:.25rem}\n.cedros-recipes-admin.crx-root .crx-disclosure{border-block-end:1px solid var(--crx-border)}\n.cedros-recipes-admin.crx-root .crx-disclosure__trigger{display:flex;width:100%;align-items:center;justify-content:space-between;gap:1rem;border:0;padding:.75rem 0;background:transparent;color:var(--crx-muted);font:inherit;font-size:.8125rem;text-align:start;cursor:pointer}\n.cedros-recipes-admin.crx-root .crx-disclosure__trigger strong{font-weight:600}\n.cedros-recipes-admin.crx-root .crx-disclosure__trigger{list-style:none}\n.cedros-recipes-admin.crx-root .crx-disclosure__trigger::-webkit-details-marker{display:none}\n.cedros-recipes-admin.crx-root .crx-disclosure__trigger:is(:hover,[aria-expanded=\"true\"]){color:var(--crx-text)}\n.cedros-recipes-admin.crx-root .crx-disclosure__trigger:hover{background:var(--crx-accent)}\n.cedros-recipes-admin.crx-root .crx-disclosure__trigger:hover .crx-muted{color:var(--crx-text)}\n.cedros-recipes-admin.crx-root .crx-disclosure__chevron{width:1rem;height:1rem;flex-shrink:0;transition:transform var(--motion-duration-fast,160ms) var(--motion-ease-standard,cubic-bezier(0.16,1,0.3,1))}\n.cedros-recipes-admin.crx-root .crx-disclosure__trigger[aria-expanded=\"true\"] .crx-disclosure__chevron{transform:rotate(90deg)}\n.cedros-recipes-admin.crx-root .crx-conditional-fields:not([data-open=\"true\"]){display:none}\n.cedros-recipes-admin.crx-root .crx-disclosure__inner{padding-block:.75rem}\n.cedros-recipes-admin.crx-root .crx-skeleton{display:grid;gap:.5rem}\n.cedros-recipes-admin.crx-root .crx-skeleton span{display:block;height:.75rem;border-radius:999px;background:var(--crx-accent)}\n.cedros-recipes-admin.crx-root .crx-skeleton span:nth-child(2){width:82%}\n.cedros-recipes-admin.crx-root .crx-skeleton span:nth-child(3){width:58%}\n.cedros-recipes-admin.crx-root .crx-loading-line{display:block;height:.75rem;width:100%;border-radius:999px;background:var(--crx-accent)}\n.cedros-recipes-admin.crx-root .crx-loading-label{width:35%;max-width:10rem}\n.cedros-recipes-admin.crx-root .crx-loading-value{width:4rem;height:1.5rem}\n.cedros-recipes-admin.crx-root .crx-loading-summary>.crx-loading-line{width:80%}\n.cedros-recipes-admin.crx-root .crx-empty-line{display:grid;gap:.75rem;color:var(--crx-muted);font-size:.8125rem}\n.cedros-recipes-admin.crx-root .crx-dashboard-footer{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}\n.cedros-recipes-admin.crx-root .crx-card-action{justify-self:start}\n.cedros-recipes-admin.crx-root .crx-checklist{display:grid;gap:.75rem}\n.cedros-recipes-admin.crx-root .crx-checklist__row+.crx-checklist__row{border-top:1px solid var(--crx-border);padding-top:.75rem}\n/* Queue labels wrap; the count and its action stay together at the row end. */\n.cedros-recipes-admin.crx-root .crx-queue-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:.75rem}\n.cedros-recipes-admin.crx-root .crx-queue-row>.crx-row{flex-wrap:nowrap;justify-content:flex-end}\n.cedros-recipes-admin.crx-root .crx-readiness-actions{display:grid;gap:.25rem;list-style:none;margin:0;padding:0}\n.cedros-recipes-admin.crx-root .crx-readiness-actions button{width:100%;height:auto;min-height:2rem;justify-content:space-between;gap:.75rem;white-space:normal;text-align:start}\n.cedros-recipes-admin.crx-root .crx-numeric{text-align:end;font-variant-numeric:tabular-nums}\n.cedros-recipes-admin.crx-root .crx-status-cell{white-space:nowrap}\n.cedros-recipes-admin.crx-root .crx-review-panel{padding-block:1rem;text-align:start}\n.cedros-recipes-admin.crx-root .crx-enhancement-review{width:min(100%,calc(var(--cd-container-prose,60ch) + var(--cd-container-prose,60ch) + 1rem))}\n.cedros-recipes-admin.crx-root .crx-enhancement-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start}\n@container(max-width:48rem){.cedros-recipes-admin.crx-root .crx-enhancement-comparison{grid-template-columns:minmax(0,1fr)}}\n.cedros-recipes-admin.crx-root .crx-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n.cedros-recipes-admin.crx-root :where([tabindex=\"-1\"]):focus-visible{outline:2px solid var(--crx-ring);outline-offset:2px}\n.cedros-recipes-admin.crx-root .crx-editor :where(input,textarea,select,button){scroll-margin-block:6rem}\n/* Recipe workspaces use the host's list, field and action anatomy. */\n.cedros-recipes-admin.crx-root .crx-library[hidden],.cedros-recipes-admin.crx-root .crx-generator[hidden],.cedros-recipes-admin.crx-root .crx-display-editor[hidden],.cedros-recipes-admin.crx-root .crx-editor-fields[hidden]{display:none}\n.cedros-recipes-admin.crx-root .crx-editor{width:min(100%,var(--cd-container-page,1360px));align-content:start}\n.cedros-recipes-admin.crx-root .crx-editor--review{width:min(100%,var(--cd-container-settings,45rem))}\n.cedros-recipes-admin.crx-root .crx-writing-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-template-areas:\"writing preview\";gap:2rem;align-items:start}\n.cedros-recipes-admin.crx-root .crx-writing-layout>.crx-editor-fields{grid-area:writing;max-width:var(--cd-container-settings,45rem)}\n.cedros-recipes-admin.crx-root .crx-writing-layout>.crx-preview-column{grid-area:preview}\n.cedros-recipes-admin.crx-root .crx-writing-layout>.crx-publication-readiness{grid-area:readiness}\n.cedros-recipes-admin.crx-root .crx-writing-layout:has(>.crx-publication-readiness){grid-template-areas:\"writing readiness\" \"writing preview\";grid-template-rows:auto 1fr;row-gap:1rem}\n.cedros-recipes-admin.crx-root .crx-writing-layout--review{grid-template-columns:minmax(0,45rem);grid-template-areas:\"preview\"}\n.cedros-recipes-admin.crx-root .crx-writing-layout--review:has(>.crx-publication-readiness){grid-template-areas:\"readiness\" \"preview\";grid-template-rows:auto auto}\n.cedros-recipes-admin.crx-root .crx-writing-layout--review>.crx-preview-column{position:static;max-height:none;overflow:visible;padding:0}\n.cedros-recipes-admin.crx-root .crx-preview-column{position:sticky;top:1rem;max-height:calc(100dvh - 8rem);overflow:auto;padding:.25rem .5rem;scroll-margin-block:1rem}\n.cedros-recipes-admin.crx-root .crx-preview-photo{display:block;width:100%;max-height:10rem;aspect-ratio:16/9;object-fit:cover;border-radius:var(--cd-radius,8px)}\n.cedros-recipes-admin.crx-root .crx-writing-layout[data-review-first]:not(.crx-writing-layout--review){grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);grid-template-areas:\"preview writing\"}\n.cedros-recipes-admin.crx-root .crx-writing-layout[data-review-first]:has(>.crx-publication-readiness){grid-template-areas:\"readiness writing\" \"preview writing\"}\n.cedros-recipes-admin.crx-root .crx-core-lines{padding-block:.5rem}\n.cedros-recipes-admin.crx-root .crx-core-lines .crx-prose{min-height:10rem;resize:vertical}\n.cedros-recipes-admin.crx-root .crx-editor>.crx-disclosure{max-width:45rem}\n@container(max-width:60rem){.cedros-recipes-admin.crx-root .crx-writing-layout,.cedros-recipes-admin.crx-root .crx-writing-layout[data-review-first]:not(.crx-writing-layout--review){grid-template-columns:minmax(0,45rem);grid-template-areas:\"writing\" \"preview\"}.cedros-recipes-admin.crx-root .crx-writing-layout[data-review-first]:not(.crx-writing-layout--review){grid-template-areas:\"preview\" \"writing\"}.cedros-recipes-admin.crx-root .crx-writing-layout--review{grid-template-areas:\"preview\"}.cedros-recipes-admin.crx-root .crx-preview-column{position:static;max-height:none;padding:0}}\n@container(max-width:60rem){.cedros-recipes-admin.crx-root .crx-writing-layout:not(.crx-writing-layout--review):has(>.crx-publication-readiness){grid-template-areas:\"readiness\" \"writing\" \"preview\";grid-template-rows:auto;row-gap:1.5rem}.cedros-recipes-admin.crx-root .crx-writing-layout[data-review-first]:has(>.crx-publication-readiness){grid-template-areas:\"readiness\" \"preview\" \"writing\"}}\n.cedros-recipes-admin.crx-root .crx-editor-actions{position:sticky;bottom:0;padding:1rem 0;background:var(--cd-bg,oklch(1 0 0));border-top:1px solid var(--crx-border);z-index:var(--z-panel,900)}\n.cedros-recipes-admin.crx-root .crx-editor-actions>.crx-muted{flex:1 1 auto}\n.cedros-recipes-admin.crx-root :where(code,.crx-identifier){font-family:var(--cd-font-mono,var(--admin-font-mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace));font-size:.75rem}\n.cedros-recipes-admin.crx-root .crx-prose{min-height:5.5rem;font-family:inherit;line-height:1.5}\n.cedros-recipes-admin.crx-root :is(.crx-collection-editor,.crx-record-editor){width:min(100%,var(--cd-container-settings,45rem))}\n.cedros-recipes-admin.crx-root .crx-header-title{display:flex;align-items:center;gap:.5rem .75rem;flex-wrap:wrap;min-width:0}\n.cedros-recipes-admin.crx-root .crx-record-link{justify-self:start}\n.cedros-recipes-admin.crx-root .crx-field__description--error{color:var(--crx-error)}\n.cedros-recipes-admin.crx-root .crx-reorder-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--crx-border)}\n.cedros-recipes-admin.crx-root .crx-reorder-row{display:grid;grid-template-columns:1.5rem minmax(0,1fr) auto;align-items:center;gap:.75rem;min-height:2.75rem;padding-block:.25rem;border-bottom:1px solid var(--crx-border)}\n.cedros-recipes-admin.crx-root .crx-reorder-row__position{color:var(--crx-muted);font-size:.8125rem;font-variant-numeric:tabular-nums;text-align:end}\n.cedros-recipes-admin.crx-root .crx-membership-list{max-height:24rem;overflow:auto;padding:.5rem .25rem}\n.cedros-recipes-admin.crx-root .crx-membership-list .crx-check-row{align-items:flex-start}\n.cedros-recipes-admin.crx-root .crx-membership-list .crx-check-row>input{margin-block-start:.25rem}\n.cedros-recipes-admin.crx-root .crx-review-comment{max-width:60ch;white-space:pre-wrap;overflow-wrap:anywhere}\n.cedros-recipes-admin.crx-root .crx-review-comment>summary{cursor:pointer}\n.cedros-recipes-admin.crx-root .crx-editor .crx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}\n@container(max-width:32rem){.cedros-recipes-admin.crx-root .crx-editor .crx-grid{grid-template-columns:minmax(0,1fr)}.cedros-recipes-admin.crx-root .crx-editor-actions>.crx-muted{flex-basis:100%}}\n@container(max-width:32rem){.cedros-recipes-admin.crx-root .crx-toolbar-field{flex:1 1 100%;width:100%}}\n@media(max-width:767px){.cedros-recipes-admin.crx-root .crx-disclosure__trigger{min-height:2.75rem}}\n@media(prefers-reduced-motion:reduce){.cedros-recipes-admin.crx-root .crx-disclosure__chevron{transition:none}}\n`;\nexport const adminCss = `\n.cedros-recipes-admin.crx-root{\n  --crx-text:var(--cd-fg,oklch(.145 0 0));\n  --crx-muted:var(--cd-muted,oklch(.556 0 0));\n  --crx-accent:var(--cd-accent,oklch(.97 0 0));\n  --crx-border:var(--cd-border,oklch(.922 0 0));\n  --crx-ring:var(--cd-ring,oklch(.556 0 0));\n  --crx-error:var(--cd-error,oklch(.577 .245 27.325));\n}\n${adminLayoutCss}\n`;\nexport const publicCss = `\n.cedros-recipes-public{\n  color-scheme:light;\n  --crx-panel:var(--c11tihf5-runtime-panel,#fff);\n  --crx-muted-bg:var(--c11tihf5-runtime-accent-soft,#f5f5f5);\n  --crx-border:var(--c11tihf5-runtime-border,#e5e5e5);\n  --crx-ring:var(--c11tihf5-ring-light,var(--c11tihf5-ring,var(--c11tihf5-runtime-text,#171717)));\n  --crx-control-border:color-mix(in srgb,var(--crx-text) 55%,var(--crx-panel));\n  --crx-link:var(--c11tihf5-runtime-accent,#262626);\n  --crx-radius-md:var(--c11tihf5-radius-md,var(--c11tihf5-radius,.5rem));\n  --crx-radius-sm:var(--c11tihf5-radius-sm,.375rem);\n  --crx-radius-lg:var(--c11tihf5-radius-lg,.75rem);\n  --crx-shadow:var(--c11tihf5-shadow-sm,0 1px 2px color-mix(in srgb,var(--crx-text) 6%,transparent));\n  --crx-text:var(--c11tihf5-runtime-text,#171717);\n  --crx-muted:var(--c11tihf5-runtime-muted,#616161);\n  --crx-action-bg:var(--c11tihf5-runtime-action-bg,#171717);\n  --crx-action-fg:var(--c11tihf5-runtime-action-fg,#fff);\n  --crx-info:var(--c11tihf5-runtime-accent,#262626);\n  --crx-info-bg:var(--c11tihf5-runtime-accent-soft,#f5f5f5);\n  --crx-warning:var(--c11tihf5-runtime-warning,#b45309);\n  --crx-warning-bg:color-mix(in srgb,var(--crx-warning) 12%,var(--crx-panel));\n  --crx-error:var(--c11tihf5-runtime-error,#d93025);\n  --crx-error-bg:color-mix(in srgb,var(--crx-error) 10%,var(--crx-panel));\n  --crx-success:var(--c11tihf5-success-light,var(--c11tihf5-success,var(--c11tihf5-runtime-text,#171717)));\n  --crx-success-bg:color-mix(in srgb,var(--crx-success) 10%,var(--crx-panel));\n  --crx-motion-fast:var(--motion-duration-fast,160ms);\n  --crx-motion-axis:var(--motion-duration-standard,220ms);\n  --crx-motion-skeleton:1.4s;\n  --crx-motion-ease:var(--motion-ease-standard,cubic-bezier(0.16,1,0.3,1));\n}\n/* Color tokens have separate mode buckets; the host owns the mode class. */\n.c11tihf5-dark .cedros-recipes-public{\n  color-scheme:dark;\n  --crx-ring:var(--c11tihf5-ring-dark,var(--c11tihf5-runtime-text,#fafafa));\n  --crx-success:var(--c11tihf5-success-dark,var(--c11tihf5-runtime-text,#fafafa));\n}\n${publicLayoutCss}\n`;\n","imports":[],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/useCatalogPage.js","kind":"module","text":"import { useEffect, useRef, useState } from \"react\";\nimport { RecipesApiError } from \"./api.js\";\nimport { useReaderScope } from \"./participation.js\";\nexport function useCatalogPage(api, params, limit, refresh, enabled = true) {\n    const reader = useReaderScope(api);\n    const selection = JSON.stringify([params.collection, params.cookbook, params.saved, params.ids]);\n    const [stored, setStored] = useState();\n    const storedPage = stored?.api === api && stored.selection === selection ? stored.page : undefined;\n    const setPage = (page) => setStored(page ? { api, selection, page } : undefined);\n    const [loading, setLoading] = useState(true);\n    const [loadingMore, setLoadingMore] = useState(false);\n    const [error, setError] = useState(\"\");\n    const [moreError, setMoreError] = useState(\"\");\n    const [signedOut, setSignedOut] = useState(false);\n    const generation = useRef(0);\n    const key = JSON.stringify(params);\n    const view = useRef({ api, key, enabled, refresh });\n    if (view.current.api !== api || view.current.key !== key || view.current.enabled !== enabled || view.current.refresh !== refresh) {\n        generation.current++;\n        view.current = { api, key, enabled, refresh };\n    }\n    const page = params.saved && (reader.status !== \"ready\" || storedPage?.readerScope !== reader.scope) ? undefined : storedPage;\n    const nextOffset = useRef(0);\n    useEffect(() => {\n        let previous = api.getReaderSnapshot();\n        return api.subscribeReader(() => {\n            const next = api.getReaderSnapshot();\n            if (previous.scope && (previous.scope !== next.scope || next.status !== \"ready\")) {\n                generation.current++;\n                setPage(undefined);\n                nextOffset.current = 0;\n                setLoading(false);\n                setLoadingMore(false);\n                setSignedOut(next.status === \"signed_out\");\n                setError(\"Your reader session changed. Reload recipes to continue.\");\n            }\n            previous = next;\n        });\n    }, [api]);\n    const retainedScope = useRef({ api, key: JSON.stringify([params.collection, params.cookbook, params.saved, params.ids]) });\n    useEffect(() => {\n        const current = ++generation.current;\n        if (!enabled) {\n            if (params.saved)\n                setPage(undefined);\n            setLoading(false);\n            setLoadingMore(false);\n            return () => { generation.current++; };\n        }\n        const scope = JSON.stringify([params.collection, params.cookbook, params.saved, params.ids]);\n        if (retainedScope.current.api !== api || retainedScope.current.key !== scope || params.saved)\n            setPage(undefined);\n        retainedScope.current = { api, key: scope };\n        setLoading(true);\n        setError(\"\");\n        setMoreError(\"\");\n        setSignedOut(false);\n        void api.listRecipes({ ...params, limit, offset: 0 }).then((result) => {\n            if (current !== generation.current)\n                return;\n            nextOffset.current = result.recipes.length;\n            setPage(result);\n        }).catch((reason) => { if (current === generation.current) {\n            if (reason instanceof RecipesApiError && (reason.status === 401 || reason.status === 403))\n                setPage(undefined);\n            setError(reason instanceof Error ? reason.message : \"Unable to load recipes.\");\n            setSignedOut(reason instanceof RecipesApiError && reason.status === 401);\n        } })\n            .finally(() => { if (current === generation.current) {\n            setLoading(false);\n            setLoadingMore(false);\n        } });\n        return () => { generation.current++; };\n    }, [api, key, limit, refresh, enabled]);\n    async function loadMore() {\n        if (loading || loadingMore || !page || nextOffset.current >= page.total)\n            return;\n        const current = generation.current;\n        const offset = nextOffset.current;\n        setLoadingMore(true);\n        setMoreError(\"\");\n        try {\n            const result = await api.listRecipes({ ...params, limit, offset, catalogVersion: page.catalogVersion });\n            if (current !== generation.current)\n                return;\n            if (params.saved && (result.readerScope !== page.readerScope || result.readerScope !== api.getReaderSnapshot().scope))\n                throw new Error(\"Your reader session changed. Reload saved recipes.\");\n            const merged = new Map(page.recipes.map((recipe) => [recipe.id, recipe]));\n            for (const recipe of result.recipes)\n                merged.set(recipe.id, recipe);\n            if (result.total !== page.total || merged.size !== page.recipes.length + result.recipes.length || !result.recipes.length)\n                throw new Error(\"The catalog changed while loading. Refresh recipes to continue.\");\n            nextOffset.current = offset + result.recipes.length;\n            setPage({ ...result, recipes: [...merged.values()] });\n        }\n        catch (reason) {\n            if (current === generation.current) {\n                // A failed saved-page request cannot re-verify whose library remains\n                // cached (including a 409 after another reader's catalog revision).\n                if (params.saved || reason instanceof RecipesApiError && (reason.status === 401 || reason.status === 403)) {\n                    setPage(undefined);\n                    nextOffset.current = 0;\n                }\n                setSignedOut(reason instanceof RecipesApiError && reason.status === 401);\n                setMoreError(reason instanceof Error ? reason.message : \"Unable to load more recipes.\");\n            }\n        }\n        finally {\n            if (current === generation.current)\n                setLoadingMore(false);\n        }\n    }\n    return { page, loading, loadingMore, error, moreError, loadMore, signedOut };\n}\n","imports":[{"dynamic":false,"end":50,"specifier":"react","start":45},{"dynamic":false,"end":94,"specifier":"./api.js","start":86},{"dynamic":false,"end":147,"specifier":"./participation.js","start":129}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/useDebouncedValue.js","kind":"module","text":"import { useEffect, useState } from \"react\";\nexport function useDebouncedValue(value, delayMs) {\n    const [debounced, setDebounced] = useState(value);\n    useEffect(() => {\n        const timeout = globalThis.setTimeout(() => setDebounced(value), delayMs);\n        return () => globalThis.clearTimeout(timeout);\n    }, [value, delayMs]);\n    return debounced;\n}\n","imports":[{"dynamic":false,"end":42,"specifier":"react","start":37}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/shared/useMealPlan.js","kind":"module","text":"import { useEffect, useRef, useState, useSyncExternalStore } from \"react\";\nimport { RecipesApiError } from \"./api.js\";\nimport { mealPlanFingerprint, mealPlanShoppingItems, validateMealPlan } from \"./mealPlanning.js\";\nimport { useShoppingHandoff } from \"./shopping.js\";\nconst planMemory = new WeakMap();\nfunction retainedPlan(api, week) {\n    let memory = planMemory.get(api);\n    if (!memory) {\n        memory = { weeks: new Map(), blocked: { capacityBlocked: true } };\n        planMemory.set(api, memory);\n        const owned = memory;\n        api.subscribeReader(() => {\n            const next = api.getReaderSnapshot();\n            if (next.scope && owned.scope && next.scope !== owned.scope) {\n                for (const value of owned.weeks.values())\n                    value.retired = true;\n                owned.weeks.clear();\n            }\n            if (next.scope)\n                owned.scope = next.scope;\n        });\n    }\n    if (api.getReaderSnapshot().scope)\n        memory.scope = api.getReaderSnapshot().scope;\n    let retained = memory.weeks.get(week);\n    if (!retained) {\n        if (memory.weeks.size >= 12) {\n            const idle = [...memory.weeks.entries()].find(([, value]) => !value.uncertain && (!value.stored || mealPlanFingerprint(value.stored.data.plan) === mealPlanFingerprint(value.stored.draft)));\n            if (idle)\n                memory.weeks.delete(idle[0]);\n            else\n                return memory.blocked;\n        }\n        retained = {};\n        memory.weeks.set(week, retained);\n    }\n    return retained;\n}\nexport function useMealPlan(api, weekStart) {\n    const retained = retainedPlan(api, weekStart);\n    const stateEntry = useRef(retained);\n    const reader = useSyncExternalStore(api.subscribeReader, api.getReaderSnapshot, api.getReaderSnapshot);\n    const [stored, setStoredState] = useState(retained.stored);\n    function setStored(value) { stateEntry.current = retained; if (!retained.capacityBlocked)\n        retained.stored = value; setStoredState(value); }\n    const [loading, setLoading] = useState(true);\n    const [saving, setSaving] = useState(false);\n    const [adding, setAdding] = useState(false);\n    const [error, setError] = useState(\"\");\n    const [notice, setNotice] = useState(\"\");\n    const [validationError, setValidationError] = useState(\"\");\n    const [uncertain, setUncertainState] = useState(retained.uncertain);\n    const [conflict, setConflictState] = useState(retained.conflict);\n    function setUncertain(value) { retained.uncertain = value; setUncertainState(value); }\n    function setConflict(value) { retained.conflict = value; setConflictState(value); }\n    const mounted = useRef(true);\n    const generation = useRef(0);\n    const view = useRef({ api, weekStart, reader: reader.generation });\n    if (view.current.api !== api || view.current.weekStart !== weekStart || view.current.reader !== reader.generation) {\n        generation.current++;\n        view.current = { api, weekStart, reader: reader.generation };\n    }\n    const renderView = view.current;\n    const active = () => mounted.current && !retained.retired && !retained.capacityBlocked && view.current === renderView && reader.generation === api.getReaderSnapshot().generation && reader.scope === api.getReaderSnapshot().scope && api.getReaderSnapshot().status === \"ready\";\n    const visible = stateEntry.current === retained && !retained.retired && stored?.api === api && stored.data.plan.weekStart === weekStart && stored.data.readerScope === reader.scope && reader.status === \"ready\";\n    const data = visible ? stored.data : undefined;\n    const draft = visible ? stored.draft : undefined;\n    const accessDenied = reader.status === \"signed_out\" || reader.status === \"denied\";\n    const shopping = useShoppingHandoff(api, `meal-plan:${weekStart}`);\n    const live = (current, expected) => mounted.current && !retained.retired && reader.generation === api.getReaderSnapshot().generation && current === generation.current && (!expected || (api.getReaderSnapshot().status === \"ready\" && api.getReaderSnapshot().scope === expected));\n    function problem(reason) {\n        setError(reason instanceof Error ? reason.message : \"Unable to confirm your meal plan. Reread this week before retrying.\");\n    }\n    useEffect(() => {\n        mounted.current = true;\n        stateEntry.current = retained;\n        setStoredState(retained.stored);\n        setUncertainState(retained.uncertain);\n        setConflictState(retained.conflict);\n        setError(\"\");\n        setNotice(\"\");\n        setSaving(false);\n        setAdding(false);\n        void refresh();\n        return () => { mounted.current = false; generation.current++; };\n    }, [api, weekStart, retained]);\n    useEffect(() => {\n        if (reader.status !== \"ready\" && reader.generation > 0) {\n            setSaving(false);\n            setAdding(false);\n            setLoading(false);\n            if (reader.status === \"signed_out\" || reader.status === \"denied\")\n                setError(reader.status === \"denied\" ? \"This account cannot access this week. Check your access and reread.\" : \"Sign in, then reread this week to confirm the account.\");\n        }\n        if (stored && reader.scope && stored.data.readerScope !== reader.scope) {\n            setStored(undefined);\n            setUncertain(undefined);\n            setConflict(undefined);\n            setError(\"The reader changed. Reread this week for the current account.\");\n            setNotice(\"\");\n            setLoading(false);\n        }\n    }, [reader.generation, reader.scope, reader.status]);\n    async function refresh() {\n        const current = ++generation.current;\n        const prior = retained.stored;\n        const pendingOriginal = retained.uncertain;\n        setLoading(true);\n        setError(\"\");\n        setNotice(\"\");\n        try {\n            const result = await api.getMealPlan(weekStart);\n            if (!live(current))\n                return;\n            if (result.plan.weekStart !== weekStart)\n                throw new Error(\"The server returned a different week. Your draft has not been replaced.\");\n            if (prior && prior.data.readerScope === result.readerScope) {\n                const original = pendingOriginal || prior.draft;\n                if (mealPlanFingerprint(result.plan) === mealPlanFingerprint(original)) {\n                    setStored({ api, data: result, draft: result.plan });\n                    setUncertain(undefined);\n                    setConflict(undefined);\n                    setNotice(\"Your original meal plan is saved.\");\n                }\n                else if (pendingOriginal || mealPlanFingerprint(prior.draft) !== mealPlanFingerprint(prior.data.plan)) {\n                    setStored({ api, data: result, draft: original });\n                    setUncertain(original);\n                    setConflict(result);\n                    setError(\"The saved week differs from your original plan. Compare the saved and local meals, then choose which plan to keep.\");\n                }\n                else {\n                    setStored({ api, data: result, draft: result.plan });\n                    setConflict(undefined);\n                }\n            }\n            else {\n                setStored({ api, data: result, draft: result.plan });\n                setUncertain(undefined);\n                setConflict(undefined);\n            }\n        }\n        catch (reason) {\n            if (live(current))\n                problem(reason);\n        }\n        finally {\n            if (live(current)) {\n                setLoading(false);\n                setSaving(false);\n                setAdding(false);\n            }\n        }\n    }\n    const dirty = Boolean(data && draft && mealPlanFingerprint(data.plan) !== mealPlanFingerprint(draft));\n    async function save() {\n        if (!active() || !draft || !data || loading || saving || adding || accessDenied || uncertain || error || shopping.intent)\n            return;\n        const invalid = validateMealPlan(draft);\n        if (invalid) {\n            setValidationError(invalid);\n            return;\n        }\n        const current = generation.current;\n        const original = { ...draft, meals: draft.meals.map(meal => ({ ...meal })) };\n        const expected = data.readerScope;\n        setSaving(true);\n        setUncertain(original);\n        setError(\"\");\n        setNotice(\"\");\n        try {\n            const result = await api.saveMealPlan(original, expected);\n            if (!live(current, expected))\n                return;\n            if (result.readerScope !== expected || result.plan.weekStart !== weekStart || !result.plan._cedrosRecordVersion || mealPlanFingerprint(result.plan) !== mealPlanFingerprint(original))\n                throw new Error(\"The original meal plan could not be confirmed. Reread this week; your draft is preserved.\");\n            setStored({ api, data: result, draft: result.plan });\n            setUncertain(undefined);\n            setConflict(undefined);\n            setNotice(\"Meal plan saved.\");\n        }\n        catch (reason) {\n            if (live(current, expected))\n                problem(reason);\n        }\n        finally {\n            if (live(current, expected))\n                setSaving(false);\n        }\n    }\n    async function addShopping() {\n        if (!active() || !data || !draft || dirty || loading || saving || adding || accessDenied || uncertain || error || shopping.intent || !draft.meals.length)\n            return;\n        const current = generation.current;\n        const expected = data.readerScope;\n        setAdding(true);\n        setError(\"\");\n        setNotice(\"\");\n        try {\n            const fresh = await api.getMealPlan(weekStart);\n            if (!live(current, expected))\n                return;\n            if (fresh.readerScope !== expected)\n                throw new RecipesApiError(403, \"The signed-in reader changed. Reload before building the shopping list.\");\n            if (fresh.plan._cedrosRecordVersion !== data.plan._cedrosRecordVersion || mealPlanFingerprint(fresh.plan) !== mealPlanFingerprint(data.plan))\n                throw new RecipesApiError(409, \"This week changed. Reread the saved meal plan before building the shopping list.\");\n            const items = mealPlanShoppingItems(fresh);\n            if (await shopping.add(items, expected)) {\n                if (live(current, expected))\n                    setNotice(\"The week's ingredients are on your shopping list.\");\n            }\n        }\n        catch (reason) {\n            if (live(current, expected))\n                problem(reason);\n        }\n        finally {\n            if (live(current, expected))\n                setAdding(false);\n        }\n    }\n    const setDraft = (update) => {\n        if (!active() || !stored || !visible || uncertain || saving || adding || loading || shopping.intent || error)\n            return;\n        const value = typeof update === \"function\" ? update(stored.draft) : update;\n        if (value)\n            setStored({ ...stored, draft: value });\n        setNotice(\"\");\n        setValidationError(\"\");\n    };\n    function useSaved() {\n        if (!active() || !visible || !conflict || saving || loading)\n            return;\n        setStored({ api, data: conflict, draft: conflict.plan });\n        setUncertain(undefined);\n        setConflict(undefined);\n        setError(\"\");\n        setNotice(\"Using the saved week. Your original draft was discarded.\");\n    }\n    function keepLocal() {\n        if (!active() || !visible || !conflict || !uncertain || saving || loading)\n            return;\n        setStored({ api, data: conflict, draft: { ...uncertain, _cedrosRecordVersion: conflict.plan._cedrosRecordVersion } });\n        setUncertain(undefined);\n        setConflict(undefined);\n        setError(\"\");\n        setNotice(\"Your original draft is retained against the reread version. Save deliberately to replace the saved week.\");\n    }\n    const blocked = Boolean(retained.capacityBlocked || uncertain || error || shopping.intent || shopping.error);\n    return { data, draft, setDraft, loading, busy: saving || adding || shopping.busy || shopping.loading, saving, adding, dirty, blocked, error: retained.capacityBlocked ? \"Resolve an earlier meal-plan draft or pending save before editing another week (12 retained weeks).\" : error || validationError, notice, accessDenied, save, addShopping, refresh, conflict: visible ? conflict : undefined, original: visible ? uncertain : undefined, useSaved, keepLocal, shopping };\n}\n","imports":[{"dynamic":false,"end":72,"specifier":"react","start":67},{"dynamic":false,"end":116,"specifier":"./api.js","start":108},{"dynamic":false,"end":214,"specifier":"./mealPlanning.js","start":197},{"dynamic":false,"end":266,"specifier":"./shopping.js","start":253}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/CookMode.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { equipmentName } from \"../shared/domain.js\";\nimport { useEffect, useId, useRef, useState } from \"react\";\nimport { normalizeServings, scaleIngredients } from \"../shared/domain.js\";\nimport { BlockState, IngredientList, LockedRecipe, MissingRecipeSlug, RecipeBeforeCooking, UnavailableRecipe } from \"./common.js\";\nimport { clearCookSession, cookSessionKey, cookSessionSignature, formatTimer, loadCookSession, remainingTimerSeconds, saveCookSession } from \"./cookSession.js\";\nimport { catalogHref, navigateRecipePage, recipePageHref } from \"./routes.js\";\nimport { recipeIsLocked, useRecipeResource } from \"./useRecipeResource.js\";\nexport function CookModeBlock({ props = {}, onNavigate, onServingsChange }) {\n    const headingId = useId();\n    const reference = useRef(null);\n    const [storageUnavailable, setStorageUnavailable] = useState(false);\n    const [titleExpanded, setTitleExpanded] = useState(false);\n    const slug = String(props.slug || \"\");\n    const collectionSlug = String(props.collectionSlug || \"\");\n    const cookbookSlug = String(props.cookbookSlug || \"\");\n    const { recipe, paymentState, loading, error, refresh } = useRecipeResource(slug);\n    const [servings, setServings] = useState(0);\n    const [viewIndex, setViewIndex] = useState(0);\n    const [previousIndex, setPreviousIndex] = useState(null);\n    const [direction, setDirection] = useState(\"forward\");\n    const [completed, setCompleted] = useState({});\n    const [timers, setTimers] = useState({});\n    const [now, setNow] = useState(() => Date.now());\n    const [timerNotice, setTimerNotice] = useState(\"\");\n    const [resumeNotice, setResumeNotice] = useState(\"\");\n    const [restored, setRestored] = useState(false);\n    const [sessionActive, setSessionActive] = useState(false);\n    const [hydratedRecipeSignature, setHydratedRecipeSignature] = useState(\"\");\n    const transitionTimeout = useRef(undefined);\n    const focusNextPanel = useRef(false);\n    const panelHeading = useRef(null);\n    const recipeSignature = recipe ? `${recipe.id}:${cookSessionSignature(recipe)}` : \"\";\n    useEffect(() => {\n        window.clearTimeout(transitionTimeout.current);\n        const storage = browserCookStorage();\n        let hadSavedProgress = false;\n        try {\n            hadSavedProgress = Boolean(recipe && storage?.getItem(cookSessionKey(recipe.id)));\n        }\n        catch {\n            // Storage may be unavailable; cooking remains usable in this tab.\n        }\n        const session = recipe && storage ? loadCookSession(storage, recipe) : null;\n        const requestedServings = Number(props.initialServings);\n        const hasRequestedServings = Number.isInteger(requestedServings) && requestedServings >= 1 && requestedServings <= 999;\n        setServings(hasRequestedServings ? requestedServings : session?.servings || recipe?.servings || 0);\n        setViewIndex(session?.viewIndex || 0);\n        setPreviousIndex(null);\n        setCompleted(session?.completed || {});\n        setTimers(session?.timers || {});\n        setNow(Date.now());\n        setTimerNotice(\"\");\n        setResumeNotice(hadSavedProgress && !session ? \"Saved cooking progress could not be restored for this recipe. Start again from step 1.\" : \"\");\n        setRestored(Boolean(session));\n        setSessionActive(Boolean(session) || hasRequestedServings);\n        setHydratedRecipeSignature(recipeSignature);\n    }, [recipe?.id, recipeSignature]);\n    useEffect(() => {\n        if (!recipe || hydratedRecipeSignature !== recipeSignature || !sessionActive)\n            return;\n        onServingsChange?.(servings || recipe.servings || 0);\n        const url = new URL(window.location.href);\n        if (url.searchParams.get(\"recipe\") === slug && url.searchParams.get(\"view\") === \"cook\") {\n            url.searchParams.set(\"servings\", String(servings || recipe.servings || 0));\n            window.history.replaceState(window.history.state, \"\", url);\n        }\n        const storage = browserCookStorage();\n        setStorageUnavailable(!storage || !saveCookSession(storage, recipe, { servings: servings || recipe.servings || 0, viewIndex, completed, timers }));\n    }, [recipe, recipeSignature, hydratedRecipeSignature, sessionActive, servings, viewIndex, completed, timers, onServingsChange]);\n    useEffect(() => () => window.clearTimeout(transitionTimeout.current), []);\n    const hasRunningTimer = Object.values(timers).some((timer) => timer.endsAt !== undefined);\n    useEffect(() => {\n        if (!hasRunningTimer)\n            return;\n        const interval = window.setInterval(() => setNow(Date.now()), 250);\n        return () => window.clearInterval(interval);\n    }, [hasRunningTimer]);\n    useEffect(() => {\n        const expired = Object.entries(timers).filter(([, timer]) => timer.endsAt !== undefined && timer.endsAt <= now);\n        if (!expired.length)\n            return;\n        setTimers((current) => Object.fromEntries(Object.entries(current).map(([id, timer]) => (timer.endsAt !== undefined && timer.endsAt <= now ? [id, { remainingSeconds: 0 }] : [id, timer]))));\n        setTimerNotice(expired.map(([id]) => {\n            const index = recipe?.instructions.findIndex((step) => step.id === id) ?? -1;\n            return `Timer for step ${index + 1} complete.`;\n        }).join(\" \"));\n    }, [now, timers, recipe]);\n    useEffect(() => {\n        if (!focusNextPanel.current)\n            return;\n        focusNextPanel.current = false;\n        panelHeading.current?.focus();\n    }, [viewIndex]);\n    useEffect(() => {\n        const details = reference.current;\n        const container = details?.closest(\"article\");\n        if (!details || !container || typeof ResizeObserver === \"undefined\")\n            return;\n        let narrow;\n        let frame;\n        const observer = new ResizeObserver(([entry]) => {\n            const nextNarrow = entry.contentRect.width <= 768;\n            if (nextNarrow === narrow)\n                return;\n            narrow = nextNarrow;\n            if (frame !== undefined)\n                window.cancelAnimationFrame(frame);\n            // Disclosure layout changes must happen outside the observer delivery cycle.\n            frame = window.requestAnimationFrame(() => {\n                details.open = !nextNarrow;\n                frame = undefined;\n            });\n        });\n        observer.observe(container);\n        return () => {\n            observer.disconnect();\n            if (frame !== undefined)\n                window.cancelAnimationFrame(frame);\n        };\n    }, [recipeSignature, loading, hydratedRecipeSignature]);\n    if (!slug)\n        return _jsx(MissingRecipeSlug, {});\n    if (loading || (recipe && hydratedRecipeSignature !== recipeSignature))\n        return _jsx(\"section\", { className: \"cedros-recipes-public crx-root\", children: _jsx(BlockState, { loading: true, error: \"\", empty: false }) });\n    if (error)\n        return _jsx(\"section\", { className: \"cedros-recipes-public crx-root\", children: _jsx(BlockState, { loading: false, error: error, empty: false, onRetry: refresh }) });\n    if (!recipe)\n        return _jsx(UnavailableRecipe, { returnHref: catalogHref(collectionSlug, cookbookSlug) });\n    if (recipeIsLocked(recipe, paymentState)) {\n        return _jsx(\"section\", { className: \"cedros-recipes-public crx-root\", children: _jsx(LockedRecipe, { recipe: recipe, paymentState: paymentState, returnHref: catalogHref(collectionSlug, cookbookSlug) }) });\n    }\n    if (!recipe.instructions.length) {\n        return _jsx(\"section\", { className: \"cedros-recipes-public crx-root\", children: _jsx(BlockState, { loading: false, error: \"\", empty: true, emptyTitle: \"No cooking steps\", emptyBody: \"This recipe does not have any published instructions.\" }) });\n    }\n    const currentRecipe = recipe;\n    const stepCount = currentRecipe.instructions.length;\n    const finished = viewIndex === stepCount;\n    const activeProgress = finished ? stepCount : viewIndex + 1;\n    const ingredients = scaleIngredients(currentRecipe.ingredients, currentRecipe.servings, servings || currentRecipe.servings);\n    const transitioning = previousIndex !== null;\n    const completedCount = currentRecipe.instructions.filter((step) => completed[step.id] === true).length;\n    const pendingTimers = Object.values(timers).filter((timer) => remainingTimerSeconds(timer, now) > 0).length;\n    function navigate(targetIndex, nextDirection) {\n        if (transitioning || targetIndex < 0 || targetIndex > stepCount || targetIndex === viewIndex)\n            return;\n        setResumeNotice(\"\");\n        setSessionActive(true);\n        window.clearTimeout(transitionTimeout.current);\n        setPreviousIndex(viewIndex);\n        setDirection(nextDirection);\n        setViewIndex(targetIndex);\n        focusNextPanel.current = true;\n        const reducedMotion = window.matchMedia?.(\"(prefers-reduced-motion: reduce)\").matches === true;\n        transitionTimeout.current = window.setTimeout(() => setPreviousIndex(null), reducedMotion ? 0 : 600);\n    }\n    function markComplete(step, value = true) {\n        setResumeNotice(\"\");\n        setSessionActive(true);\n        setCompleted((current) => ({ ...current, [step.id]: value }));\n    }\n    function timerState(step) {\n        return Object.prototype.hasOwnProperty.call(timers, step.id) ? timers[step.id] : { remainingSeconds: (step.timerMinutes || 0) * 60 };\n    }\n    function startTimer(step) {\n        const initialSeconds = (step.timerMinutes || 0) * 60;\n        const current = timerState(step);\n        const remaining = remainingTimerSeconds(current, Date.now()) || initialSeconds;\n        setNow(Date.now());\n        setSessionActive(true);\n        setTimerNotice(\"\");\n        setResumeNotice(\"\");\n        setTimers((all) => ({ ...all, [step.id]: { remainingSeconds: remaining, endsAt: Date.now() + remaining * 1000 } }));\n    }\n    function pauseTimer(step) {\n        const remainingSeconds = remainingTimerSeconds(timerState(step), Date.now());\n        setSessionActive(true);\n        setTimers((all) => ({ ...all, [step.id]: { remainingSeconds } }));\n    }\n    function resetTimer(step) {\n        setTimerNotice(\"\");\n        setSessionActive(true);\n        setTimers((all) => ({ ...all, [step.id]: { remainingSeconds: (step.timerMinutes || 0) * 60 } }));\n    }\n    function restartCooking(persist) {\n        window.clearTimeout(transitionTimeout.current);\n        setViewIndex(0);\n        setPreviousIndex(null);\n        setCompleted({});\n        setTimers({});\n        setNow(Date.now());\n        setTimerNotice(\"\");\n        setResumeNotice(\"\");\n        setRestored(false);\n        setSessionActive(persist);\n        const storage = browserCookStorage();\n        if (storage)\n            clearCookSession(storage, currentRecipe.id);\n        focusNextPanel.current = true;\n    }\n    function returnToRecipe(event) {\n        if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey)\n            return;\n        event.preventDefault();\n        navigateRecipePage(recipePageHref(slug, \"detail\", collectionSlug, servings || currentRecipe.servings, props.savedOnly === true, cookbookSlug, typeof props.planWeek === \"string\" ? props.planWeek : \"\"), onNavigate);\n    }\n    function renderTimer(step, index, currentStep = false) {\n        const timer = timerState(step);\n        const remaining = remainingTimerSeconds(timer, now);\n        const running = timer.endsAt !== undefined && remaining > 0;\n        const ready = !running && remaining === (step.timerMinutes || 0) * 60;\n        return _jsxs(\"div\", { className: \"crx-timer\", role: \"group\", \"aria-label\": `Timer for step ${index + 1}`, children: [_jsxs(\"div\", { className: \"crx-row-between\", children: [_jsx(\"strong\", { children: currentStep ? \"Step timer\" : `Step ${index + 1}${step.title ? ` · ${step.title}` : \"\"}` }), _jsx(\"output\", { className: \"crx-timer__time\", children: formatTimer(remaining) })] }), _jsx(\"span\", { className: \"crx-muted\", children: running ? \"Running\" : remaining === 0 ? \"Timer complete\" : ready ? \"Ready to start\" : \"Paused\" }), _jsxs(\"div\", { className: \"crx-row\", children: [_jsx(\"button\", { className: \"crx-button secondary\", type: \"button\", onClick: () => running ? pauseTimer(step) : startTimer(step), children: running ? \"Pause\" : remaining === 0 ? \"Restart\" : \"Start\" }), !ready ? _jsx(\"button\", { className: \"crx-button ghost\", type: \"button\", onClick: (event) => {\n                                // Reset disappears in the ready state. Keep keyboard users on the\n                                // surviving timer action instead of losing focus to the document.\n                                event.currentTarget.parentElement?.querySelector(\"button\")?.focus();\n                                resetTimer(step);\n                            }, children: \"Reset\" }) : null] })] }, step.id);\n    }\n    function renderPanel(index, state) {\n        if (index === stepCount) {\n            return (_jsx(\"div\", { className: \"crx-axis-panel\", \"data-state\": state, \"aria-hidden\": state === \"outgoing\" || undefined, inert: state === \"outgoing\", onAnimationEnd: state === \"incoming\" ? () => setPreviousIndex(null) : undefined, children: _jsxs(\"section\", { className: \"crx-panel crx-stack crx-cook-step\", children: [_jsx(\"span\", { className: \"crx-cook-step__number\", children: \"End of the method\" }), _jsx(\"h2\", { ref: state !== \"outgoing\" ? panelHeading : undefined, tabIndex: -1, children: completedCount === stepCount ? \"All steps checked\" : \"Review your remaining steps\" }), _jsxs(\"p\", { className: \"crx-muted\", children: [\"You completed \", completedCount, \" of \", stepCount, \" steps.\", pendingTimers ? ` ${pendingTimers} ${pendingTimers === 1 ? \"timer still needs\" : \"timers still need\"} attention. Check the timers and the food before serving.` : \" Check the food before serving, or review any unchecked steps.\"] }), completedCount < stepCount ? _jsx(\"div\", { className: \"crx-stack-sm\", \"aria-label\": \"Unchecked steps\", children: currentRecipe.instructions.map((step, stepIndex) => completed[step.id] !== true ? _jsxs(\"button\", { className: \"crx-button secondary crx-unchecked-step\", type: \"button\", disabled: transitioning, onClick: () => navigate(stepIndex, \"backward\"), children: [\"Review step \", stepIndex + 1, step.title ? ` · ${step.title}` : \"\"] }, step.id) : null) }) : null, _jsxs(\"div\", { className: \"crx-row\", children: [_jsx(\"a\", { className: \"crx-button\", href: recipePageHref(slug, \"detail\", collectionSlug, servings || currentRecipe.servings, props.savedOnly === true, cookbookSlug, typeof props.planWeek === \"string\" ? props.planWeek : \"\"), onClick: returnToRecipe, children: \"Recipe details and reviews\" }), _jsx(\"button\", { className: \"crx-button secondary\", type: \"button\", disabled: transitioning, onClick: () => navigate(stepCount - 1, \"backward\"), children: \"Review last step\" }), _jsx(\"button\", { className: \"crx-button secondary\", type: \"button\", disabled: transitioning, onClick: () => restartCooking(true), children: \"Cook again\" })] })] }) }, \"completion\"));\n        }\n        const step = currentRecipe.instructions[index];\n        return (_jsx(\"div\", { className: \"crx-axis-panel\", \"data-state\": state, \"aria-hidden\": state === \"outgoing\" || undefined, inert: state === \"outgoing\", onAnimationEnd: state === \"incoming\" ? () => setPreviousIndex(null) : undefined, children: _jsxs(\"section\", { className: \"crx-panel crx-stack crx-cook-step\", \"aria-labelledby\": `${headingId}-step-${index}-${state}`, children: [_jsxs(\"span\", { className: \"crx-cook-step__number\", \"aria-current\": \"step\", children: [\"Step \", index + 1, \" of \", stepCount] }), _jsx(\"h2\", { id: `${headingId}-step-${index}-${state}`, ref: state !== \"outgoing\" ? panelHeading : undefined, tabIndex: -1, children: step.title || `Step ${index + 1}` }), _jsx(\"p\", { className: \"crx-cook-step__text\", children: step.text }), step.group || step.optional ? _jsx(\"span\", { className: \"crx-muted\", children: [step.group, step.optional ? \"Optional step\" : \"\"].filter(Boolean).join(\" · \") }) : null, step.temperature || step.equipment ? _jsxs(\"div\", { className: \"crx-row\", children: [step.temperature ? _jsx(\"span\", { className: \"crx-pill\", children: step.temperature }) : null, step.equipment ? _jsx(\"span\", { className: \"crx-pill\", children: step.equipment }) : null] }) : null, step.tip ? _jsxs(\"div\", { className: \"crx-status info\", role: \"note\", children: [_jsx(\"strong\", { children: \"Tip:\" }), \" \", step.tip] }) : null, step.warning ? _jsxs(\"div\", { className: \"crx-status warning\", role: \"note\", children: [_jsx(\"strong\", { children: \"Take care:\" }), \" \", step.warning] }) : null, step.timerMinutes ? renderTimer(step, index, true) : null, _jsxs(\"label\", { className: \"crx-check-row\", children: [_jsx(\"input\", { type: \"checkbox\", checked: completed[step.id] === true, onChange: (event) => markComplete(step, event.target.checked) }), _jsx(\"span\", { children: \"Mark this step complete\" })] }), _jsxs(\"div\", { className: \"crx-row-between\", children: [_jsx(\"button\", { className: \"crx-button secondary\", type: \"button\", disabled: index === 0 || transitioning, onClick: () => navigate(index - 1, \"backward\"), children: \"Back\" }), _jsx(\"button\", { className: \"crx-button\", type: \"button\", disabled: transitioning, onClick: () => { markComplete(step); navigate(index + 1, \"forward\"); }, children: index === stepCount - 1 ? \"Finish cooking\" : \"Next step\" })] })] }) }, `step-${step.id}`));\n    }\n    return (_jsxs(\"article\", { className: \"cedros-recipes-public crx-root crx-stack\", \"aria-labelledby\": headingId, children: [_jsxs(\"header\", { className: \"crx-stack-sm crx-cook-context\", \"data-title-expanded\": titleExpanded || undefined, \"data-title-collapsible\": currentRecipe.title.length > 80 || undefined, children: [_jsxs(\"div\", { className: \"crx-row-between\", children: [_jsxs(\"div\", { className: \"crx-stack-sm\", children: [_jsx(\"span\", { className: \"crx-pill info\", children: \"Cook mode\" }), _jsx(\"h1\", { id: headingId, children: currentRecipe.title }), currentRecipe.title.length > 80 ? _jsx(\"button\", { className: \"crx-cook-title-toggle\", type: \"button\", \"aria-expanded\": titleExpanded, \"aria-controls\": headingId, onClick: () => setTitleExpanded((current) => !current), children: titleExpanded ? \"Show less\" : \"Show full recipe title\" }) : null] }), _jsx(\"span\", { className: \"crx-pill\", children: finished ? `${completedCount} / ${stepCount} checked` : `${activeProgress} / ${stepCount}` })] }), _jsx(\"progress\", { className: \"crx-progress\", value: activeProgress, max: stepCount, \"aria-label\": `Cooking progress: ${activeProgress} of ${stepCount}` })] }), restored ? (_jsxs(\"div\", { className: \"crx-muted crx-row-between\", role: \"status\", children: [_jsx(\"span\", { children: \"Progress restored on this device.\" }), _jsx(\"button\", { className: \"crx-button ghost\", type: \"button\", onClick: () => restartCooking(false), children: \"Start over\" })] })) : null, storageUnavailable ? _jsx(\"div\", { className: \"crx-status warning\", role: \"status\", children: \"Cooking progress stays in this tab. Device storage is unavailable, so progress cannot be restored after leaving.\" }) : null, resumeNotice ? _jsx(\"div\", { className: \"crx-status info\", role: \"status\", children: resumeNotice }) : null, currentRecipe.allergens.length || currentRecipe.foodSafety ? (_jsxs(\"div\", { className: \"crx-status warning\", role: \"note\", children: [currentRecipe.allergens.length ? _jsxs(_Fragment, { children: [_jsx(\"strong\", { children: \"Allergens:\" }), \" \", currentRecipe.allergens.join(\", \"), \". \"] }) : null, currentRecipe.foodSafety || \"Check ingredients and preparation against your dietary needs.\"] })) : null, _jsxs(\"div\", { className: \"crx-detail-layout crx-cook-layout\", children: [currentRecipe.instructions.some((step, index) => index !== viewIndex && Object.prototype.hasOwnProperty.call(timers, step.id) && step.timerMinutes) ? _jsxs(\"section\", { className: \"crx-panel crx-stack crx-cook-other-timers\", \"aria-label\": \"Other step timers\", children: [_jsx(\"h2\", { children: \"Step timers\" }), currentRecipe.instructions.map((step, index) => index !== viewIndex && Object.prototype.hasOwnProperty.call(timers, step.id) && step.timerMinutes ? renderTimer(step, index) : null)] }) : null, _jsx(\"aside\", { className: \"crx-stack crx-cook-reference-column\", children: _jsxs(\"details\", { className: \"crx-cook-reference\", ref: reference, open: true, children: [_jsx(\"summary\", { children: \"Ingredients and equipment\" }), _jsxs(\"div\", { className: \"crx-stack\", children: [currentRecipe.servings ? _jsxs(\"label\", { className: \"crx-field crx-serving-field\", children: [\"Servings\", _jsx(\"input\", { className: \"crx-input\", type: \"number\", min: 1, max: 999, value: servings || currentRecipe.servings, onChange: (event) => { setSessionActive(true); setServings(normalizeServings(event.target.value, currentRecipe.servings)); } })] }) : null, _jsx(IngredientList, { ingredients: ingredients }), currentRecipe.equipment.length ? (_jsxs(\"section\", { className: \"crx-panel crx-stack-sm\", \"aria-labelledby\": `${headingId}-equipment`, children: [_jsx(\"h2\", { id: `${headingId}-equipment`, children: \"Equipment\" }), _jsx(\"ul\", { className: \"crx-list\", children: currentRecipe.equipment.map((item, index) => _jsx(\"li\", { children: equipmentName(item) }, index)) })] })) : null, _jsx(RecipeBeforeCooking, { recipe: currentRecipe })] })] }) }), _jsxs(\"div\", { className: \"crx-stack crx-cook-current\", children: [_jsxs(\"div\", { className: \"crx-axis-stage\", \"data-transitioning\": transitioning || undefined, \"data-direction\": direction, children: [previousIndex !== null ? renderPanel(previousIndex, \"outgoing\") : null, renderPanel(viewIndex, transitioning ? \"incoming\" : \"current\")] }), timerNotice ? _jsx(\"div\", { className: \"crx-status success\", role: \"status\", \"aria-live\": \"polite\", children: timerNotice }) : null] })] })] }));\n}\nfunction browserCookStorage() {\n    if (typeof window === \"undefined\")\n        return null;\n    try {\n        return window.localStorage;\n    }\n    catch {\n        return null;\n    }\n}\n","imports":[{"dynamic":false,"end":84,"specifier":"react/jsx-runtime","start":67},{"dynamic":false,"end":137,"specifier":"../shared/domain.js","start":118},{"dynamic":false,"end":197,"specifier":"react","start":192},{"dynamic":false,"end":272,"specifier":"../shared/domain.js","start":253},{"dynamic":false,"end":403,"specifier":"./common.js","start":392},{"dynamic":false,"end":564,"specifier":"./cookSession.js","start":548},{"dynamic":false,"end":643,"specifier":"./routes.js","start":632},{"dynamic":false,"end":719,"specifier":"./useRecipeResource.js","start":697}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/MealPlanBlock.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { useEffect, useId, useState } from \"react\";\nimport { publicRecipesApi } from \"../shared/api.js\";\nimport { currentWeek, validWeekStart, mealDayLabel, MEAL_SLOTS, setPlannedMeal, shiftWeek } from \"../shared/mealPlanning.js\";\nimport { useMealPlan } from \"../shared/useMealPlan.js\";\nimport { useCatalogPage } from \"../shared/useCatalogPage.js\";\nimport { navigateRecipePage, recipePageHref, shoppingListHref } from \"./routes.js\";\nimport { useDebouncedValue } from \"../shared/useDebouncedValue.js\";\nconst publicApi = publicRecipesApi;\nexport function MealPlanBlock({ api = publicApi, onBack, onNavigationGuard, onNavigate, initialWeekStart }) {\n    const heading = useId();\n    const [week, setWeek] = useState(() => initialWeekStart && validWeekStart(initialWeekStart) ? initialWeekStart : currentWeek());\n    const plan = useMealPlan(api, week);\n    const [query, setQuery] = useState(\"\");\n    const [refresh, setRefresh] = useState(0);\n    const [pending, setPending] = useState(null);\n    const catalog = useCatalogPage(api, { q: useDebouncedValue(query, 200) || undefined }, 24, refresh, Boolean(plan.data) && !plan.accessDenied);\n    const choices = [...new Map([...(plan.data?.recipes || []), ...(catalog.page?.recipes || [])].filter(recipe => recipe.status === \"published\" && recipe.access.kind === \"free\").map(recipe => [recipe.id, recipe])).values()];\n    function leave(action) { if (plan.busy)\n        return; if (plan.dirty)\n        setPending(() => action);\n    else\n        action(); }\n    useEffect(() => {\n        const guard = (event) => { if (plan.dirty || plan.busy) {\n            event.preventDefault();\n            event.returnValue = \"\";\n        } };\n        window.addEventListener(\"beforeunload\", guard);\n        return () => window.removeEventListener(\"beforeunload\", guard);\n    }, [plan.dirty, plan.busy]);\n    useEffect(() => {\n        onNavigationGuard?.(() => !plan.busy && (!plan.dirty || window.confirm(\"Leave this week? Your draft is retained while this recipe session remains open.\")));\n        return () => onNavigationGuard?.(undefined);\n    }, [onNavigationGuard, plan.dirty, plan.busy]);\n    return _jsxs(\"section\", { className: \"cedros-recipes-public crx-root crx-stack\", \"aria-labelledby\": heading, \"aria-busy\": plan.loading || plan.busy, children: [onBack ? _jsx(\"button\", { type: \"button\", className: \"crx-button ghost\", disabled: plan.busy, onClick: () => leave(onBack), children: \"\\u2190 All recipes\" }) : null, _jsx(\"div\", { className: \"crx-page-header\", children: _jsxs(\"div\", { className: \"crx-stack-sm\", children: [_jsx(\"h2\", { id: heading, className: \"crx-title\", children: \"Meal plan\" }), _jsx(\"p\", { className: \"crx-subtitle\", children: \"Plan your week, adjust portions, and gather the ingredients. Your plan is private to your signed-in account.\" })] }) }), _jsxs(\"nav\", { className: \"crx-week-nav\", \"aria-label\": \"Meal plan week\", children: [_jsx(\"button\", { type: \"button\", className: \"crx-button secondary\", disabled: plan.busy || week <= \"0001-01-07\", onClick: () => leave(() => setWeek(shiftWeek(week, -1))), children: \"Previous week\" }), _jsxs(\"strong\", { children: [\"Week of \", mealDayLabel(week, 0)] }), _jsx(\"button\", { type: \"button\", className: \"crx-button secondary\", disabled: plan.busy || week >= \"9999-12-24\", onClick: () => leave(() => setWeek(shiftWeek(week, 1))), children: \"Next week\" })] }), pending ? _jsxs(\"div\", { role: \"alert\", className: \"crx-status warning crx-stack-sm\", children: [_jsx(\"p\", { children: \"Leave this week? Your original draft is retained while this recipe session remains open.\" }), _jsxs(\"div\", { className: \"crx-row\", children: [_jsx(\"button\", { type: \"button\", className: \"crx-button secondary\", onClick: () => setPending(null), children: \"Keep editing\" }), _jsx(\"button\", { type: \"button\", className: \"crx-button\", onClick: () => { const action = pending; setPending(null); action(); }, children: \"Leave and retain draft\" })] })] }) : null, plan.error ? _jsxs(\"div\", { role: plan.accessDenied ? \"status\" : \"alert\", className: `${plan.accessDenied ? \"crx-status info\" : \"crx-error\"} crx-stack-sm`, children: [_jsx(\"p\", { children: plan.error }), _jsxs(\"div\", { className: \"crx-row\", children: [plan.accessDenied ? _jsx(\"a\", { className: \"crx-button\", href: \"/login\", children: \"Sign in to your account\" }) : null, _jsx(\"button\", { type: \"button\", className: \"crx-button secondary\", disabled: plan.busy || plan.loading, onClick: () => void plan.refresh(), children: \"Reread meal plan\" })] })] }) : null, plan.conflict && plan.original ? _jsxs(\"div\", { className: \"crx-status warning crx-stack-sm\", role: \"alert\", children: [_jsxs(\"p\", { children: [\"Saved week: \", plan.conflict.plan.meals.map(meal => `${mealDayLabel(week, meal.day)} ${meal.slot}: ${meal.title}, ${meal.servings} servings`).join(\"; \") || \"No meals\"] }), _jsxs(\"p\", { children: [\"Original local week: \", plan.original.meals.map(meal => `${mealDayLabel(week, meal.day)} ${meal.slot}: ${meal.title}, ${meal.servings} servings`).join(\"; \") || \"No meals\"] }), _jsxs(\"div\", { className: \"crx-row\", children: [_jsx(\"button\", { type: \"button\", className: \"crx-button secondary\", disabled: plan.busy || plan.loading, onClick: plan.useSaved, children: \"Use saved week\" }), _jsx(\"button\", { type: \"button\", className: \"crx-button\", disabled: plan.busy || plan.loading, onClick: plan.keepLocal, children: \"Keep original draft for deliberate save\" })] })] }) : null, plan.shopping.error || plan.shopping.intent ? _jsxs(\"div\", { className: \"crx-status warning crx-stack-sm\", role: \"alert\", children: [_jsx(\"p\", { children: plan.shopping.error || \"The original shopping handoff needs confirmation.\" }), _jsx(\"button\", { type: \"button\", className: \"crx-button secondary\", disabled: plan.busy, onClick: () => void plan.shopping.reread(), children: \"Reread original shopping list\" }), plan.shopping.conflict && plan.shopping.intent ? _jsxs(_Fragment, { children: [_jsxs(\"p\", { children: [\"Saved list: \", plan.shopping.conflict.items.map(item => `${item.checked ? \"✓ \" : \"\"}${item.name}`).join(\"; \") || \"Empty\"] }), _jsxs(\"p\", { children: [\"Original intended list: \", plan.shopping.intent.items.map(item => `${item.checked ? \"✓ \" : \"\"}${item.name}`).join(\"; \") || \"Empty\"] }), _jsx(\"button\", { type: \"button\", className: \"crx-button secondary\", disabled: plan.busy, onClick: plan.shopping.useSaved, children: \"Keep saved shopping list\" }), _jsx(\"button\", { type: \"button\", className: \"crx-button\", disabled: plan.busy, onClick: () => void plan.shopping.retryOriginal(), children: \"Apply original shopping list\" })] }) : null] }) : null, plan.shopping.notice ? _jsx(\"p\", { role: \"status\", className: \"crx-status info\", children: plan.shopping.notice }) : null, plan.loading ? _jsx(\"div\", { className: \"crx-skeleton\", role: \"status\", children: _jsx(\"span\", { className: \"crx-visually-hidden\", children: \"Loading your meal plan\\u2026\" }) }) : null, !plan.accessDenied && !plan.loading && plan.draft ? _jsxs(_Fragment, { children: [_jsxs(\"div\", { className: \"crx-panel crx-stack-sm\", children: [_jsxs(\"label\", { className: \"crx-field\", children: [\"Find recipes for your plan\", _jsx(\"input\", { className: \"crx-input\", type: \"search\", value: query, onChange: event => setQuery(event.target.value), placeholder: \"Search by title or ingredient\" })] }), _jsx(\"p\", { className: \"crx-muted\", children: \"Choose from the recipes loaded below. Each slot includes your saved selection. Only published free recipes can be added.\" }), catalog.loading ? _jsx(\"p\", { className: \"crx-muted\", role: \"status\", children: \"Finding recipes\\u2026\" }) : null, catalog.error || catalog.moreError ? _jsxs(\"div\", { role: \"alert\", className: \"crx-error crx-stack-sm\", children: [_jsx(\"p\", { children: catalog.error || catalog.moreError }), _jsx(\"button\", { type: \"button\", className: \"crx-button secondary\", onClick: () => setRefresh(value => value + 1), children: \"Retry recipe search\" })] }) : null, !catalog.loading && !catalog.error && !catalog.page?.recipes.length ? _jsx(\"p\", { className: \"crx-muted\", children: \"No matching recipes. Try another search.\" }) : null, catalog.page && catalog.page.total > catalog.page.recipes.length ? _jsx(\"button\", { type: \"button\", className: \"crx-button secondary\", disabled: catalog.loading || catalog.loadingMore, onClick: () => void catalog.loadMore(), children: catalog.loadingMore ? \"Loading recipes…\" : \"Load more recipe choices\" }) : null] }), _jsxs(\"fieldset\", { className: \"crx-grid crx-meal-week\", disabled: plan.loading || plan.busy || plan.blocked || Boolean(pending), children: [_jsx(\"legend\", { className: \"crx-visually-hidden\", children: \"Meals for this week\" }), Array.from({ length: 7 }, (_, day) => _jsxs(\"section\", { className: \"crx-panel crx-stack-sm crx-meal-day\", \"aria-label\": mealDayLabel(week, day), children: [_jsx(\"h3\", { children: mealDayLabel(week, day) }), MEAL_SLOTS.map(slot => { const meal = plan.draft.meals.find(meal => meal.day === day && meal.slot === slot); const label = `${mealDayLabel(week, day)} ${slot}`; const cookHref = meal?.available && meal.slug ? recipePageHref(meal.slug, \"cook\", \"\", meal.servings, false, \"\", week) : \"\"; return _jsxs(\"div\", { className: \"crx-stack-sm\", children: [_jsxs(\"label\", { className: \"crx-field\", children: [_jsx(\"span\", { children: slot.charAt(0).toUpperCase() + slot.slice(1) }), _jsxs(\"select\", { className: \"crx-select\", \"aria-label\": `${label} recipe`, value: meal?.recipeId || \"\", onChange: event => { const recipe = choices.find(recipe => recipe.id === event.target.value); plan.setDraft(value => value && setPlannedMeal(value, day, slot, recipe)); }, children: [_jsx(\"option\", { value: \"\", children: \"No meal planned\" }), meal && !choices.some(recipe => recipe.id === meal.recipeId) ? _jsxs(\"option\", { value: meal.recipeId, children: [meal.title, meal.available ? \"\" : \" (unavailable)\"] }) : null, choices.map(recipe => _jsx(\"option\", { value: recipe.id, children: recipe.title }, recipe.id))] })] }), meal ? _jsxs(_Fragment, { children: [_jsxs(\"label\", { className: \"crx-field\", children: [\"Servings\", _jsx(\"input\", { className: \"crx-input\", \"aria-label\": `${label} servings`, type: \"number\", min: 1, max: 999, step: 1, value: meal.servings || \"\", onChange: event => { const servings = Number(event.target.value); plan.setDraft(value => value && { ...value, meals: value.meals.map(item => item.day === day && item.slot === slot ? { ...item, servings } : item) }); } })] }), cookHref ? plan.dirty || plan.busy ? _jsxs(\"button\", { type: \"button\", className: \"crx-button secondary\", disabled: true, children: [\"Cook \", meal.title] }) : _jsxs(\"a\", { className: \"crx-button secondary\", href: cookHref, onClick: event => { if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey)\n                                                            return; event.preventDefault(); leave(() => navigateRecipePage(cookHref, onNavigate)); }, children: [\"Cook \", meal.title] }) : null, !meal.available ? _jsx(\"p\", { className: \"crx-muted\", children: \"This recipe is unavailable. Replace or remove it before creating a shopping list. Unchanged meals can remain in your saved plan.\" }) : null] }) : null] }, slot); })] }, day))] }), _jsxs(\"div\", { className: \"crx-panel crx-stack-sm\", children: [_jsxs(\"p\", { children: [plan.draft.meals.length, \" \", plan.draft.meals.length === 1 ? \"meal\" : \"meals\", \" planned\", plan.dirty ? \" · Unsaved changes\" : \"\"] }), _jsxs(\"div\", { className: \"crx-row\", children: [_jsx(\"button\", { type: \"button\", className: \"crx-button\", disabled: plan.loading || plan.busy || plan.blocked || !plan.dirty || Boolean(pending), onClick: () => void plan.save(), children: plan.saving ? \"Saving…\" : \"Save meal plan\" }), _jsx(\"button\", { type: \"button\", className: \"crx-button secondary\", disabled: plan.loading || plan.busy || plan.blocked || plan.dirty || !plan.draft.meals.length || Boolean(pending), onClick: () => void plan.addShopping(), children: plan.adding ? \"Adding ingredients…\" : \"Add week to shopping list\" }), _jsx(\"button\", { type: \"button\", className: \"crx-button ghost\", disabled: plan.loading || plan.busy, onClick: () => void plan.refresh(), children: \"Reread meal plan\" })] }), _jsx(\"p\", { className: \"crx-muted\", children: \"Save before cooking or adding ingredients. Quantities combine when units and preparation match; other ingredients keep their meal labels. Existing shopping entries and check marks are preserved. Review your list after changing a week you already added.\" })] })] }) : null, plan.notice && !plan.accessDenied ? _jsxs(\"p\", { className: \"crx-status success\", role: \"status\", children: [plan.notice, \" \", _jsx(\"a\", { href: shoppingListHref(week), onClick: event => { if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey)\n                            return; event.preventDefault(); leave(() => navigateRecipePage(shoppingListHref(week), onNavigate)); }, children: \"Open shopping list\" })] }) : null] });\n}\n","imports":[{"dynamic":false,"end":84,"specifier":"react/jsx-runtime","start":67},{"dynamic":false,"end":136,"specifier":"react","start":131},{"dynamic":false,"end":189,"specifier":"../shared/api.js","start":173},{"dynamic":false,"end":315,"specifier":"../shared/mealPlanning.js","start":290},{"dynamic":false,"end":371,"specifier":"../shared/useMealPlan.js","start":347},{"dynamic":false,"end":433,"specifier":"../shared/useCatalogPage.js","start":406},{"dynamic":false,"end":517,"specifier":"./routes.js","start":506},{"dynamic":false,"end":585,"specifier":"../shared/useDebouncedValue.js","start":555}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/PublicBlocks.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { AffiliateLinkGroup } from \"./RecipeAffiliateLinks.js\";\nimport { equipmentName } from \"../shared/domain.js\";\nimport { useCallback, useEffect, useId, useMemo, useRef, useState } from \"react\";\nimport { publicRecipesApi, defaultPublicRecipeSettings } from \"../shared/api.js\";\nimport { normalizeServings, recipeMatchesQuery, recipeMatchesTimeLimit, RECIPE_TIME_FILTERS, recipeYieldLabel, scaleIngredients } from \"../shared/domain.js\";\nimport { NutritionPanel } from \"./RecipeNutrition.js\";\nimport { CookModeBlock } from \"./CookMode.js\";\nimport { BlockState, IngredientList, LockedRecipe, MissingRecipeSlug, RecipeBeforeCooking, RecipeMedia, recipeTimeLabel, UnavailableRecipe } from \"./common.js\";\nimport { AddIngredientsToShoppingList, ApprovedReviews, SaveRecipe, ShoppingListBlock } from \"./RecipeParticipation.js\";\nimport { catalogHref, navigateRecipePage, readRecipePageLocation, recipePageHref, shoppingListHref, savedRecipesHref, mealPlanHref } from \"./routes.js\";\nimport { recipeIsLocked, useRecipeResource } from \"./useRecipeResource.js\";\nimport { useDebouncedValue } from \"../shared/useDebouncedValue.js\";\nimport { useCatalogPage } from \"../shared/useCatalogPage.js\";\nimport { MealPlanBlock } from \"./MealPlanBlock.js\";\nimport { SearchField } from \"../shared/SearchField.js\";\nexport { ShoppingListBlock, persistShoppingList } from \"./RecipeParticipation.js\";\nconst api = publicRecipesApi;\nexport function RecipeCatalogBlock({ props = {}, onNavigate }) {\n    const headingId = useId();\n    const [query, setQuery] = useState(\"\");\n    const [diet, setDiet] = useState(\"\");\n    const [timeLimit, setTimeLimit] = useState(0);\n    const [filtersExpanded, setFiltersExpanded] = useState(false);\n    const [reloadToken, setReloadToken] = useState(0);\n    const [location, setLocation] = useState(() => readRecipePageLocation(typeof window === \"undefined\" ? \"\" : window.location.search));\n    const [activeCookServings, setActiveCookServings] = useState();\n    useEffect(() => setActiveCookServings(undefined), [location.slug, location.view, location.planWeek]);\n    const surface = useRef(null);\n    const readerGuard = useRef(undefined);\n    const registerReaderGuard = useCallback((guard) => { readerGuard.current = guard; }, []);\n    const currentHref = useRef(typeof window === \"undefined\" ? \"\" : window.location.href);\n    const destination = JSON.stringify(location);\n    const previousDestination = useRef(destination);\n    useEffect(() => {\n        if (previousDestination.current !== destination)\n            surface.current?.focus();\n        previousDestination.current = destination;\n    }, [destination]);\n    const limit = publicBatchSize(props.limit, 24);\n    const configuredCollection = typeof props.collectionSlug === \"string\" ? props.collectionSlug.trim() : \"\";\n    const collection = configuredCollection || location.collectionSlug;\n    const cookbook = configuredCollection ? \"\" : location.cookbookSlug || (typeof props.cookbookSlug === \"string\" ? props.cookbookSlug.trim() : \"\");\n    const savedOnly = location.savedOnly === true;\n    useEffect(() => {\n        const syncLocation = () => {\n            if (readerGuard.current && !readerGuard.current()) {\n                window.history.pushState({}, \"\", currentHref.current);\n                return;\n            }\n            currentHref.current = window.location.href;\n            setLocation(readRecipePageLocation(window.location.search));\n        };\n        window.addEventListener(\"popstate\", syncLocation);\n        return () => window.removeEventListener(\"popstate\", syncLocation);\n    }, []);\n    const debouncedQuery = useDebouncedValue(query, 200);\n    const { page, loading, loadingMore, error, moreError, loadMore, signedOut } = useCatalogPage(api, { collection: collection || undefined, cookbook: cookbook || undefined, saved: savedOnly || undefined, q: debouncedQuery || undefined, diet: diet || undefined, time: timeLimit || undefined }, limit, reloadToken, !location.slug && location.view !== \"shopping\" && location.view !== \"plan\");\n    const recipes = page?.recipes || [];\n    const publicSettings = page?.publicSettings || defaultPublicRecipeSettings;\n    const customerActionsState = signedOut ? \"signed_out\" : page?.customerActionsState || \"unavailable\";\n    const collectionInfo = page?.cookbook || page?.collection || undefined;\n    const effectiveTimeLimit = publicSettings.showPrepTime ? timeLimit : 0;\n    const hasFilters = Boolean(query || diet || effectiveTimeLimit);\n    const showTimeFilter = publicSettings.showPrepTime && (timeLimit > 0 || page?.facets?.hasTimeFilter || recipes.length > 1 && recipes.some((recipe) => recipeMatchesTimeLimit(recipe, 60)));\n    const matching = useMemo(() => recipes.filter((recipe) => recipeMatchesQuery(recipe, query) && (!diet || recipe.dietaryLabels.includes(diet)) && recipeMatchesTimeLimit(recipe, effectiveTimeLimit)), [recipes, query, diet, effectiveTimeLimit]);\n    const [visibleCount, setVisibleCount] = useState(limit);\n    useEffect(() => setVisibleCount(limit), [query, diet, effectiveTimeLimit, collection, cookbook, savedOnly, limit]);\n    const filtered = matching.slice(0, visibleCount);\n    const total = page?.facets ? page.total : matching.length;\n    const diets = page?.facets?.dietaryLabels || [...new Set(recipes.flatMap((recipe) => recipe.dietaryLabels))].sort();\n    const filterSummary = [diet, effectiveTimeLimit ? RECIPE_TIME_FILTERS.find((option) => option.minutes === effectiveTimeLimit)?.label : \"\"].filter(Boolean).join(\" · \");\n    function navigate(href) {\n        if (onNavigate || configuredCollection || window.location.pathname !== \"/recipes\")\n            return navigateRecipePage(href, onNavigate);\n        window.history.pushState({}, \"\", href);\n        window.dispatchEvent(new PopStateEvent(\"popstate\"));\n    }\n    function route(event, href) {\n        if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey)\n            return;\n        event.preventDefault();\n        setLocation(readRecipePageLocation(new URL(href, window.location.origin).search));\n        navigate(href);\n    }\n    if (location.view === \"plan\")\n        return _jsx(\"section\", { ref: surface, tabIndex: -1, className: \"cedros-recipes-public crx-root crx-stack\", \"aria-label\": \"Your meal plan\", children: _jsx(MealPlanBlock, { initialWeekStart: location.planWeek, onNavigate: href => { readerGuard.current = undefined; setLocation(readRecipePageLocation(new URL(href, window.location.origin).search)); navigate(href); }, onNavigationGuard: registerReaderGuard, onBack: () => { readerGuard.current = undefined; setLocation(readRecipePageLocation(\"\")); navigate(catalogHref()); } }, location.planWeek || \"current\") });\n    if (location.view === \"shopping\")\n        return _jsxs(\"section\", { ref: surface, tabIndex: -1, className: \"cedros-recipes-public crx-root crx-stack\", \"aria-label\": \"Your shopping list\", children: [_jsxs(\"a\", { className: \"crx-button ghost crx-print-hidden\", href: location.planWeek ? mealPlanHref(location.planWeek) : catalogHref(), onClick: (event) => route(event, location.planWeek ? mealPlanHref(location.planWeek) : catalogHref()), children: [\"\\u2190 \", location.planWeek ? \"Meal plan\" : \"All recipes\"] }), _jsx(ShoppingListBlock, {})] });\n    if (location.slug) {\n        const collectionSlug = location.collectionSlug || configuredCollection;\n        const detailHref = recipePageHref(location.slug, \"detail\", collectionSlug, activeCookServings ?? location.servings, savedOnly, cookbook, location.planWeek);\n        const backHref = location.planWeek ? mealPlanHref(location.planWeek) : savedOnly ? savedRecipesHref() : catalogHref(collectionSlug, cookbook);\n        return (_jsxs(\"section\", { ref: surface, tabIndex: -1, className: \"cedros-recipes-public crx-root crx-stack\", \"aria-label\": \"Selected recipe\", children: [_jsxs(\"nav\", { className: \"crx-row crx-print-hidden\", \"aria-label\": \"Recipe navigation\", children: [_jsxs(\"a\", { className: \"crx-button ghost\", href: backHref, onClick: (event) => route(event, backHref), children: [\"\\u2190 \", location.planWeek ? \"Meal plan\" : savedOnly ? \"Saved recipes\" : cookbook ? \"Cookbook\" : collectionSlug ? \"Collection\" : \"All recipes\"] }), location.view === \"cook\" ? _jsx(\"a\", { className: \"crx-button secondary\", href: detailHref, onClick: (event) => route(event, detailHref), children: \"Recipe details\" }) : null] }), location.view === \"cook\" ? (_jsx(CookModeBlock, { props: { slug: location.slug, collectionSlug, cookbookSlug: cookbook, initialServings: location.servings, planWeek: location.planWeek, savedOnly }, onNavigate: navigate, onServingsChange: setActiveCookServings })) : (_jsx(RecipeDetailBlock, { props: { slug: location.slug, collectionSlug, cookbookSlug: cookbook, planWeek: location.planWeek, initialServings: location.servings }, onStartCook: (slug, servings) => {\n                        const href = recipePageHref(slug, \"cook\", collectionSlug, servings, savedOnly, cookbook, location.planWeek);\n                        setLocation(readRecipePageLocation(new URL(href, window.location.origin).search));\n                        navigate(href);\n                    } }, location.slug))] }));\n    }\n    const collectionHeading = collectionInfo && (!props.heading || [\"Recipes\", \"Collection\", \"Recipe Collection\", \"Cookbook\", \"Recipe Cookbook\"].includes(String(props.heading))) ? collectionInfo.title : undefined;\n    const collectionDescription = collectionInfo?.description && !props.description ? collectionInfo.description : undefined;\n    return (_jsxs(\"section\", { ref: surface, tabIndex: -1, className: \"cedros-recipes-public crx-root crx-stack\", \"aria-busy\": loading || loadingMore, \"aria-labelledby\": headingId, children: [collection || cookbook ? _jsx(\"a\", { className: \"crx-catalog-back\", href: catalogHref(), onClick: (event) => route(event, catalogHref()), children: \"\\u2190 All recipes\" }) : null, _jsxs(\"div\", { className: \"crx-page-header crx-catalog-header\", children: [_jsxs(\"div\", { className: \"crx-stack-sm\", children: [_jsx(\"h2\", { id: headingId, className: \"crx-title\", children: String(savedOnly ? \"Saved recipes\" : collectionHeading || props.heading || \"Recipes\") }), _jsx(\"p\", { className: \"crx-subtitle\", children: String(collectionDescription || props.description || (savedOnly ? \"Your favourite recipes, ready to cook again.\" : \"Find something good to cook.\")) })] }), customerActionsState !== \"unavailable\" ? _jsxs(\"nav\", { className: \"crx-reader-nav crx-print-hidden\", \"aria-label\": \"Your recipes\", children: [!collection && !cookbook ? _jsx(\"a\", { \"aria-current\": !savedOnly ? \"page\" : undefined, href: catalogHref(), onClick: (event) => route(event, catalogHref()), children: \"All recipes\" }) : null, _jsx(\"a\", { \"aria-current\": savedOnly ? \"page\" : undefined, href: savedRecipesHref(), onClick: (event) => route(event, savedRecipesHref()), children: \"Saved recipes\" }), _jsx(\"a\", { href: \"/recipes?view=plan\", onClick: (event) => route(event, \"/recipes?view=plan\"), children: \"Meal plan\" }), _jsx(\"a\", { href: shoppingListHref(), onClick: (event) => route(event, shoppingListHref()), children: \"Shopping list\" }), customerActionsState === \"signed_out\" ? _jsx(\"a\", { href: \"/login\", children: \"Sign in\" }) : null] }) : null] }), recipes.length > 0 || hasFilters ? _jsxs(\"div\", { className: \"crx-toolbar crx-catalog-search\", role: \"search\", children: [_jsxs(\"div\", { className: \"crx-toolbar__left\", children: [_jsx(SearchField, { label: \"Search recipes\", value: query, onChange: setQuery, placeholder: \"Title, ingredient, cuisine\" }), diets.length || showTimeFilter ? _jsxs(\"div\", { className: \"crx-catalog-filters\", children: [_jsxs(\"button\", { className: \"crx-button secondary crx-catalog-filter-toggle\", type: \"button\", \"aria-expanded\": filtersExpanded, \"aria-controls\": `${headingId}-filters`, onClick: () => setFiltersExpanded((current) => !current), children: [_jsxs(\"span\", { children: [\"Filters\", filterSummary ? ` · ${filterSummary}` : \"\"] }), _jsx(\"span\", { \"aria-hidden\": \"true\", children: filtersExpanded ? \"−\" : \"+\" })] }), _jsxs(\"div\", { id: `${headingId}-filters`, className: \"crx-catalog-filter-fields\", \"data-expanded\": filtersExpanded, children: [diets.length ? _jsxs(\"label\", { className: \"crx-field\", children: [_jsx(\"span\", { id: `${headingId}-diet`, children: \"Dietary label\" }), _jsxs(\"select\", { \"aria-labelledby\": `${headingId}-diet`, className: \"crx-select\", value: diet, onChange: (event) => setDiet(event.target.value), children: [_jsx(\"option\", { value: \"\", children: \"All diets\" }), diets.map((item) => _jsx(\"option\", { children: item }, item))] })] }) : null, showTimeFilter ? _jsxs(\"label\", { className: \"crx-field\", children: [_jsx(\"span\", { id: `${headingId}-time`, children: \"Ready in\" }), _jsx(\"select\", { \"aria-labelledby\": `${headingId}-time`, className: \"crx-select\", value: timeLimit, onChange: (event) => setTimeLimit(Number(event.target.value)), children: RECIPE_TIME_FILTERS.map((option) => _jsx(\"option\", { value: option.minutes, children: option.label }, option.minutes)) })] }) : null] })] }) : null] }), !(loading && !page) && !error ? _jsxs(\"div\", { className: \"crx-catalog-results\", children: [_jsxs(\"span\", { className: \"crx-muted\", role: \"status\", \"aria-live\": \"polite\", children: [total.toLocaleString(), \" \", total === 1 ? \"recipe\" : \"recipes\", hasFilters ? \" found\" : \" to explore\"] }), hasFilters ? _jsx(\"button\", { className: \"crx-button ghost\", type: \"button\", onClick: () => { surface.current?.querySelector('input[type=\"search\"]')?.focus(); setQuery(\"\"); setDiet(\"\"); setTimeLimit(0); }, children: \"Clear filters\" }) : null] }) : null] }) : null, _jsx(BlockState, { loading: loading && !page, loadingLayout: \"cards\", error: error, empty: !filtered.length, emptyTitle: hasFilters ? \"No recipes found\" : savedOnly ? \"No saved recipes yet\" : collection ? \"Collection is empty\" : \"Recipes are coming soon\", emptyBody: hasFilters ? \"Try a different search, allow more time, or clear your filters.\" : savedOnly ? \"Save a recipe from its details to find it here next time.\" : collection ? \"This collection does not contain any published recipes yet.\" : \"Come back soon for recipes to explore and cook.\", onRetry: () => setReloadToken((current) => current + 1) }), !loading && !error && !filtered.length && savedOnly && !hasFilters ? _jsx(\"a\", { className: \"crx-button\", href: catalogHref(), onClick: (event) => route(event, catalogHref()), children: \"Find a recipe to save\" }) : null, !(loading && !page) && !error && filtered.length ? _jsx(RecipeGrid, { recipes: filtered, publicSettings: publicSettings, collectionSlug: collection, cookbookSlug: cookbook, savedOnly: savedOnly, onOpen: (event, recipe) => route(event, recipePageHref(recipe.slug, \"detail\", collection, undefined, savedOnly, cookbook)) }) : null, moreError ? _jsx(BlockState, { loading: false, error: moreError, empty: false, onRetry: () => setReloadToken((current) => current + 1) }) : null, !loading && !error && page && (page.total > recipes.length || matching.length > visibleCount) ? (_jsx(\"button\", { className: \"crx-button secondary\", type: \"button\", disabled: loadingMore, \"aria-busy\": loadingMore, onClick: () => { setVisibleCount((current) => current + limit); if (matching.length <= visibleCount)\n                    void loadMore(); }, children: loadingMore ? \"Loading recipes…\" : \"Show more recipes\" })) : null] }));\n}\nexport function RecipeDetailBlock({ props = {}, onNavigate, onStartCook }) {\n    const headingId = useId();\n    const preparationId = useId();\n    const slug = String(props.slug || \"\");\n    const { recipe, affiliateLinks, paymentState, customerActionsState, saved, reviews, publicSettings, loading, error, refresh } = useRecipeResource(slug, props.printMode !== true);\n    const [servings, setServings] = useState(0);\n    useEffect(() => setServings(recipe ? normalizeServings(props.initialServings, recipe.servings) : 0), [recipe?.id, recipe?.servings, props.initialServings]);\n    if (!slug)\n        return _jsx(MissingRecipeSlug, {});\n    if (loading)\n        return _jsx(\"section\", { className: \"cedros-recipes-public crx-root\", children: _jsx(BlockState, { loading: true, loadingLayout: \"recipe\", error: \"\", empty: false }) });\n    if (error)\n        return _jsx(\"section\", { className: \"cedros-recipes-public crx-root\", children: _jsx(BlockState, { loading: false, error: error, empty: false, onRetry: refresh }) });\n    if (!recipe)\n        return _jsx(UnavailableRecipe, { returnHref: catalogHref(String(props.collectionSlug || \"\"), String(props.cookbookSlug || \"\")) });\n    const ingredients = scaleIngredients(recipe.ingredients, recipe.servings, servings || recipe.servings);\n    const locked = recipeIsLocked(recipe, paymentState);\n    const printMode = props.printMode === true;\n    return (_jsxs(\"article\", { className: `cedros-recipes-public crx-root crx-stack${printMode ? \" crx-print-recipe\" : \"\"}`, \"aria-labelledby\": headingId, children: [_jsxs(\"header\", { className: `crx-recipe-header${recipe.featuredImageUrl ? \"\" : \" crx-recipe-header--text\"}`, children: [_jsxs(\"div\", { className: \"crx-stack crx-recipe-identity\", children: [_jsxs(\"div\", { className: \"crx-row crx-muted\", children: [recipe.cuisines.length ? _jsx(\"span\", { children: recipe.cuisines.join(\" · \") }) : null, recipe.access.kind !== \"free\" ? _jsx(\"span\", { className: \"crx-pill\", children: recipe.access.kind === \"membership\" ? \"Members only\" : \"Premium recipe\" }) : null] }), _jsx(\"h1\", { id: headingId, children: recipe.title }), recipe.author ? _jsxs(\"p\", { className: \"crx-muted\", children: [\"By \", recipe.author] }) : null, recipe.shortDescription ? _jsx(\"p\", { className: \"crx-subtitle\", children: recipe.shortDescription }) : null, recipe.dietaryLabels.length ? _jsx(\"ul\", { className: \"crx-recipe-card__facts crx-muted\", \"aria-label\": \"Dietary labels\", children: recipe.dietaryLabels.map((label) => _jsx(\"li\", { children: label }, label)) }) : null, _jsxs(\"div\", { className: \"crx-recipe-facts\", children: [publicSettings.showPrepTime && recipe.totalTimeMinutes ? _jsxs(\"div\", { children: [_jsx(\"span\", { className: \"crx-muted\", children: \"Total time\" }), _jsx(\"strong\", { children: recipeTimeLabel(recipe.totalTimeMinutes) })] }) : null, recipeYieldLabel(recipe, servings || recipe.servings) ? _jsxs(\"div\", { children: [_jsx(\"span\", { className: \"crx-muted\", children: \"Yield\" }), _jsx(\"strong\", { children: recipeYieldLabel(recipe, servings || recipe.servings) })] }) : null, recipe.difficulty ? _jsxs(\"div\", { children: [_jsx(\"span\", { className: \"crx-muted\", children: \"Difficulty\" }), _jsx(\"strong\", { children: recipe.difficulty.charAt(0).toUpperCase() + recipe.difficulty.slice(1) })] }) : null] }), _jsxs(\"div\", { className: \"crx-row crx-recipe-actions crx-print-hidden\", children: [!locked && !printMode && recipe.instructions.length ? _jsx(\"button\", { className: \"crx-button\", type: \"button\", onClick: () => onStartCook ? onStartCook(recipe.slug, servings || recipe.servings || 0) : navigateRecipePage(recipePageHref(recipe.slug, \"cook\", String(props.collectionSlug || \"\"), servings || recipe.servings, false, String(props.cookbookSlug || \"\"), typeof props.planWeek === \"string\" ? props.planWeek : \"\"), onNavigate), children: \"Start cooking\" }) : null, !locked && printMode ? _jsx(\"button\", { className: \"crx-button\", type: \"button\", onClick: () => window.print(), children: \"Print recipe\" }) : null, !printMode ? _jsx(SaveRecipe, { recipeId: recipe.id, saved: saved, customerActionsState: customerActionsState }, recipe.id) : null] }), !locked && !printMode ? _jsxs(\"div\", { className: \"crx-row crx-recipe-utilities crx-print-hidden\", children: [_jsx(\"a\", { href: `#${preparationId}`, onClick: (event) => { event.preventDefault(); const target = document.getElementById(preparationId); target?.scrollIntoView({ block: \"start\" }); target?.focus(); }, children: \"Jump to recipe\" }), _jsx(\"button\", { className: \"crx-button ghost\", type: \"button\", onClick: () => window.print(), children: \"Print recipe\" })] }) : null, locked ? _jsx(LockedRecipe, { recipe: recipe, paymentState: paymentState, returnHref: catalogHref(String(props.collectionSlug || \"\"), String(props.cookbookSlug || \"\")) }) : null] }), recipe.featuredImageUrl && !printMode ? _jsx(RecipeMedia, { recipe: recipe, className: \"crx-recipe-photo\", eager: true }) : null] }), !locked ? (_jsxs(_Fragment, { children: [recipe.storyHtml ? _jsx(\"div\", { className: \"crx-prose\", dangerouslySetInnerHTML: { __html: recipe.storyHtml } }) : recipe.story ? _jsx(\"p\", { className: \"crx-prose\", children: recipe.story }) : null, recipe.videoUrl ? _jsx(\"p\", { children: _jsx(\"a\", { href: recipe.videoUrl, rel: \"noopener noreferrer\", children: \"Watch the recipe video\" }) }) : null, _jsx(RecipeSafety, { recipe: recipe }), _jsxs(\"div\", { id: preparationId, tabIndex: -1, className: \"crx-detail-layout crx-preparation\", \"aria-label\": \"Ingredients and method\", children: [_jsxs(\"aside\", { className: \"crx-stack crx-detail-sidebar\", children: [_jsx(IngredientList, { ingredients: ingredients, controls: !printMode && recipe.servings ? _jsxs(\"label\", { className: \"crx-field crx-serving-field crx-print-hidden\", children: [\"Servings\", _jsx(\"input\", { className: \"crx-input\", type: \"number\", min: 1, max: 999, value: servings || recipe.servings, onChange: (event) => setServings(normalizeServings(event.target.value, recipe.servings)) })] }) : null }), !printMode && affiliateLinks ? _jsx(AffiliateLinkGroup, { recipeId: recipe.id, kind: \"ingredients\", groups: affiliateLinks }) : null, !printMode ? _jsx(AddIngredientsToShoppingList, { recipeId: recipe.id, viewKey: `${recipe.id}:${servings || recipe.servings}`, ingredients: ingredients, customerActionsState: customerActionsState }) : null, _jsx(RecipeEquipment, { recipe: recipe }), !printMode && affiliateLinks ? _jsx(AffiliateLinkGroup, { recipeId: recipe.id, kind: \"equipment\", groups: affiliateLinks }) : null] }), _jsxs(\"div\", { className: \"crx-stack crx-detail-main\", children: [recipe.introduction ? _jsx(\"p\", { className: \"crx-subtitle\", children: recipe.introduction }) : null, _jsx(RecipeBeforeCooking, { recipe: recipe }), _jsx(InstructionList, { recipe: recipe }, `${recipe.id}:${JSON.stringify(recipe.instructions)}`)] })] }), _jsxs(\"div\", { className: \"crx-recipe-support\", children: [_jsx(RecipeAftercare, { recipe: recipe }), publicSettings.showNutrition && recipe.nutrition ? _jsx(NutritionPanel, { nutrition: recipe.nutrition }) : null] }), !printMode && publicSettings.showReviews ? _jsx(ApprovedReviews, { recipeId: recipe.id, reviews: reviews, allowSubmission: true, customerActionsState: customerActionsState }) : null, publicSettings.safetyDisclaimer.enabled ? _jsx(\"p\", { className: \"crx-muted crx-recipe-disclaimer\", role: \"note\", children: publicSettings.safetyDisclaimer.text }) : null] })) : null, !locked && recipe.sources?.length ? _jsxs(\"section\", { \"aria-label\": \"Sources\", children: [_jsx(\"h2\", { children: \"Sources\" }), _jsx(\"ol\", { children: recipe.sources.map((source, index) => _jsx(\"li\", { children: _jsx(\"a\", { href: source.url, rel: \"noopener noreferrer\", children: source.title }) }, index)) })] }) : null, recipe.sourceCredit ? _jsxs(\"footer\", { className: \"crx-muted\", children: [\"Source: \", recipe.sourceCredit] }) : null] }));\n}\nexport function RecipeCardGridBlock({ props = {}, onNavigate }) {\n    const ids = Array.isArray(props.recipeIds) ? props.recipeIds.map(String) : [];\n    const [recipes, setRecipes] = useState([]);\n    const [publicSettings, setPublicSettings] = useState(defaultPublicRecipeSettings);\n    const [loading, setLoading] = useState(true);\n    const [error, setError] = useState(\"\");\n    const [reloadToken, setReloadToken] = useState(0);\n    const limit = publicBatchSize(props.limit, 6);\n    useEffect(() => {\n        let active = true;\n        setLoading(true);\n        setError(\"\");\n        const request = api.listRecipes({ limit, ids: ids.length ? JSON.stringify(ids) : undefined });\n        request.then((body) => {\n            if (!active)\n                return;\n            setRecipes((body.recipes || []).filter((recipe) => !ids.length || ids.includes(recipe.id)).slice(0, Math.max(1, limit)));\n            setPublicSettings(body.publicSettings || defaultPublicRecipeSettings);\n        }).catch((err) => {\n            if (active)\n                setError(errorMessage(err));\n        }).finally(() => {\n            if (active)\n                setLoading(false);\n        });\n        return () => { active = false; };\n    }, [JSON.stringify(ids), limit, reloadToken]);\n    return (_jsxs(\"section\", { className: \"cedros-recipes-public crx-root crx-stack\", children: [_jsx(BlockState, { loading: loading, loadingLayout: \"cards\", error: error, empty: !recipes.length, emptyTitle: \"More recipes soon\", emptyBody: \"New recipes will appear here when they are ready to cook.\", onRetry: () => setReloadToken((current) => current + 1) }), !loading && !error && recipes.length ? _jsx(RecipeGrid, { recipes: recipes, publicSettings: publicSettings, onOpen: (event, recipe) => {\n                    if (!onNavigate || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey)\n                        return;\n                    event.preventDefault();\n                    onNavigate(recipePageHref(recipe.slug));\n                } }) : null] }));\n}\nexport function RecipeCollectionBlock({ props = {}, onNavigate }) {\n    const collectionSlug = typeof props.collectionSlug === \"string\" ? props.collectionSlug.trim() : \"\";\n    if (!collectionSlug) {\n        return _jsx(\"section\", { className: \"cedros-recipes-public crx-root\", children: _jsx(\"div\", { className: \"crx-status warning\", role: \"status\", children: \"Choose a collection before publishing this block.\" }) });\n    }\n    return _jsx(RecipeCatalogBlock, { props: { ...props, collectionSlug, heading: props.heading || \"Recipe Collection\", limit: props.limit || 12 }, onNavigate: onNavigate });\n}\nexport function RecipeCookbookBlock({ props = {}, onNavigate }) {\n    const cookbookSlug = typeof props.cookbookSlug === \"string\" ? props.cookbookSlug.trim() : \"\";\n    if (!cookbookSlug)\n        return _jsx(\"section\", { className: \"cedros-recipes-public crx-root\", children: _jsx(\"div\", { className: \"crx-status warning\", role: \"status\", children: \"Choose a published cookbook before publishing this block.\" }) });\n    return _jsx(RecipeCatalogBlock, { props: { ...props, cookbookSlug, heading: props.heading || \"Cookbook\", limit: props.limit || 12 }, onNavigate: onNavigate });\n}\nexport function PrintCardBlock({ props = {} }) {\n    return (_jsx(\"div\", { className: \"cedros-recipes-public crx-root crx-stack\", children: _jsx(RecipeDetailBlock, { props: { ...props, printMode: true } }) }));\n}\nfunction RecipeGrid({ recipes, publicSettings, collectionSlug = \"\", cookbookSlug = \"\", savedOnly = false, onOpen }) {\n    return (_jsx(\"div\", { className: \"crx-grid crx-recipe-grid\", children: recipes.map((recipe) => (_jsxs(\"a\", { className: \"crx-card-link crx-recipe-card\", href: recipePageHref(recipe.slug, \"detail\", collectionSlug, undefined, savedOnly, cookbookSlug), onClick: (event) => onOpen?.(event, recipe), children: [_jsx(RecipeMedia, { recipe: recipe }), _jsxs(\"div\", { className: \"crx-stack-sm crx-recipe-card__body\", children: [_jsx(\"h3\", { children: recipe.title }), recipe.shortDescription ? _jsx(\"p\", { className: \"crx-muted crx-recipe-card__description\", children: recipe.shortDescription }) : null, _jsxs(\"ul\", { className: \"crx-recipe-card__facts crx-muted\", \"aria-label\": \"Recipe facts\", children: [publicSettings.showPrepTime && recipe.totalTimeMinutes ? _jsx(\"li\", { children: recipeTimeLabel(recipe.totalTimeMinutes) }) : null, recipe.cuisines.length ? _jsx(\"li\", { children: recipe.cuisines[0] }) : null, recipe.dietaryLabels.length ? _jsx(\"li\", { children: recipe.dietaryLabels[0] }) : null, recipe.access.kind !== \"free\" ? _jsx(\"li\", { className: \"crx-pill\", children: recipe.access.kind === \"membership\" ? \"Members only\" : \"Premium\" }) : null] })] })] }, recipe.id))) }));\n}\nfunction InstructionList({ recipe }) {\n    const headingId = useId();\n    const [done, setDone] = useState({});\n    return (_jsxs(\"section\", { className: \"crx-method crx-stack\", \"aria-labelledby\": headingId, children: [_jsx(\"h2\", { id: headingId, children: \"Method\" }), recipe.instructions.map((step, index) => (_jsxs(\"label\", { className: \"crx-check-row crx-method-step\", \"data-complete\": done[step.id] === true, children: [_jsx(\"input\", { type: \"checkbox\", \"aria-label\": `Complete step ${index + 1}${step.title ? `: ${step.title}` : \"\"}`, checked: done[step.id] === true, onChange: (event) => setDone({ ...done, [step.id]: event.target.checked }) }), _jsxs(\"span\", { className: \"crx-method-copy\", children: [_jsxs(\"span\", { className: \"crx-step-number\", children: [index + 1, \".\"] }), _jsxs(\"span\", { className: \"crx-stack-sm\", children: [step.title ? _jsx(\"strong\", { children: step.title }) : null, _jsx(\"span\", { children: step.text }), step.imageUrl ? _jsx(\"img\", { src: step.imageUrl, alt: step.imageAlt || \"\", width: step.imageWidth, height: step.imageHeight, loading: \"lazy\" }) : null, done[step.id] === true ? _jsx(\"span\", { className: \"crx-muted crx-print-hidden\", children: \"Completed\" }) : null] }), _jsx(StepDetails, { step: step })] })] }, step.id)))] }));\n}\nfunction StepDetails({ step }) {\n    return (_jsxs(\"span\", { className: \"crx-stack-sm\", children: [step.group || step.optional ? _jsx(\"span\", { className: \"crx-muted\", children: [step.group, step.optional ? \"Optional step\" : \"\"].filter(Boolean).join(\" · \") }) : null, step.timerMinutes || step.temperature || step.equipment ? _jsxs(\"span\", { className: \"crx-row\", children: [step.timerMinutes ? _jsx(\"span\", { className: \"crx-pill\", children: recipeTimeLabel(step.timerMinutes) }) : null, step.temperature ? _jsx(\"span\", { className: \"crx-pill\", children: step.temperature }) : null, step.equipment ? _jsx(\"span\", { className: \"crx-pill\", children: step.equipment }) : null] }) : null, step.tip ? _jsxs(\"span\", { className: \"crx-status info\", children: [_jsx(\"strong\", { children: \"Tip:\" }), \" \", step.tip] }) : null, step.warning ? _jsxs(\"span\", { className: \"crx-status warning\", children: [_jsx(\"strong\", { children: \"Take care:\" }), \" \", step.warning] }) : null] }));\n}\nfunction RecipeEquipment({ recipe }) {\n    const headingId = useId();\n    if (!recipe.equipment.length)\n        return null;\n    return (_jsxs(\"section\", { className: \"crx-support crx-stack-sm\", \"aria-labelledby\": headingId, children: [_jsx(\"h2\", { id: headingId, children: \"Equipment\" }), _jsx(\"ul\", { className: \"crx-list\", children: recipe.equipment.map((item, index) => _jsx(\"li\", { children: equipmentName(item) }, index)) })] }));\n}\nfunction RecipeSafety({ recipe }) {\n    if (!recipe.allergens.length && !recipe.foodSafety)\n        return null;\n    return (_jsxs(\"section\", { className: \"crx-status warning crx-stack-sm\", \"aria-label\": \"Safety and allergens\", role: \"note\", children: [recipe.allergens.length ? _jsxs(\"p\", { children: [_jsx(\"strong\", { children: \"Allergens:\" }), \" \", recipe.allergens.join(\", \")] }) : null, recipe.foodSafety ? _jsx(\"p\", { children: recipe.foodSafety }) : null] }));\n}\nfunction RecipeAftercare({ recipe }) {\n    const headingId = useId();\n    const rows = [[\"Storage\", recipe.storage], [\"Reheating\", recipe.reheating]];\n    const visible = rows.filter(([, value]) => Boolean(value));\n    if (!visible.length && !recipe.pairings.length)\n        return null;\n    return (_jsxs(\"section\", { className: \"crx-aftercare crx-stack-sm\", \"aria-labelledby\": headingId, children: [_jsx(\"h2\", { id: headingId, children: \"Serving and storage\" }), _jsxs(\"div\", { className: \"crx-aftercare__items\", children: [visible.map(([label, value]) => _jsxs(\"div\", { className: \"crx-stack-sm\", children: [_jsx(\"h3\", { children: label }), _jsx(\"p\", { className: \"crx-muted\", children: value })] }, label)), recipe.pairings.length ? _jsxs(\"div\", { className: \"crx-stack-sm\", children: [_jsx(\"h3\", { children: \"Pairings\" }), _jsx(\"ul\", { className: \"crx-list\", children: recipe.pairings.map((value, index) => _jsx(\"li\", { children: value }, index)) })] }) : null] })] }));\n}\nfunction errorMessage(error) {\n    if (error instanceof Error)\n        return error.message;\n    return \"Unable to load recipes.\";\n}\nexport function publicBatchSize(value, fallback) {\n    const parsed = Number(value);\n    return Number.isFinite(parsed) ? Math.min(100, Math.max(1, Math.round(parsed))) : fallback;\n}\n","imports":[{"dynamic":false,"end":84,"specifier":"react/jsx-runtime","start":67},{"dynamic":false,"end":148,"specifier":"./RecipeAffiliateLinks.js","start":123},{"dynamic":false,"end":201,"specifier":"../shared/domain.js","start":182},{"dynamic":false,"end":283,"specifier":"react","start":278},{"dynamic":false,"end":365,"specifier":"../shared/api.js","start":349},{"dynamic":false,"end":523,"specifier":"../shared/domain.js","start":504},{"dynamic":false,"end":578,"specifier":"./RecipeNutrition.js","start":558},{"dynamic":false,"end":625,"specifier":"./CookMode.js","start":612},{"dynamic":false,"end":786,"specifier":"./common.js","start":775},{"dynamic":false,"end":907,"specifier":"./RecipeParticipation.js","start":883},{"dynamic":false,"end":1060,"specifier":"./routes.js","start":1049},{"dynamic":false,"end":1136,"specifier":"./useRecipeResource.js","start":1114},{"dynamic":false,"end":1204,"specifier":"../shared/useDebouncedValue.js","start":1174},{"dynamic":false,"end":1266,"specifier":"../shared/useCatalogPage.js","start":1239},{"dynamic":false,"end":1318,"specifier":"./MealPlanBlock.js","start":1300},{"dynamic":false,"end":1374,"specifier":"../shared/SearchField.js","start":1350},{"dynamic":false,"end":1457,"specifier":"./RecipeParticipation.js","start":1433}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/RecipeAffiliateLinks.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { trackAffiliateClick } from \"../shared/affiliates.js\";\nexport function AffiliateLinkGroup({ recipeId, kind, groups }) {\n    const links = groups[kind];\n    if (!links.length)\n        return null;\n    const title = kind === \"ingredients\" ? \"Ingredient links\" : \"Equipment links\";\n    return _jsxs(\"div\", { className: \"crx-affiliate-links crx-print-hidden crx-stack-sm\", children: [_jsx(\"p\", { children: groups.disclosure }), _jsxs(\"section\", { \"aria-label\": title, className: \"crx-stack-sm\", children: [_jsx(\"h3\", { children: title }), _jsx(\"ul\", { className: \"crx-list\", children: links.map(link => _jsx(\"li\", { children: _jsxs(\"a\", { href: link.href, rel: \"sponsored nofollow noopener\", target: \"_blank\", onClick: () => trackAffiliateClick(recipeId, link.itemKey), children: [\"View \", link.label, \" on Amazon (paid link)\"] }) }, link.itemKey)) })] })] });\n}\n","imports":[{"dynamic":false,"end":61,"specifier":"react/jsx-runtime","start":44},{"dynamic":false,"end":124,"specifier":"../shared/affiliates.js","start":101}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/RecipeNutrition.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useId } from \"react\";\nimport { nutritionLabel, nutritionValue } from \"../shared/domain.js\";\nexport function NutritionPanel({ nutrition }) {\n    const headingId = useId();\n    const entries = Object.entries(nutrition);\n    if (!entries.length)\n        return null;\n    return (_jsxs(\"section\", { className: \"crx-panel crx-stack-sm\", \"aria-labelledby\": headingId, children: [_jsx(\"h2\", { id: headingId, children: \"Nutrition\" }), _jsx(\"dl\", { className: \"crx-nutrition-facts\", children: entries.map(([label, value]) => _jsxs(\"div\", { children: [_jsx(\"dt\", { className: \"crx-muted\", children: nutritionLabel(label) }), _jsx(\"dd\", { title: String(value), children: nutritionValue(value) })] }, label)) })] }));\n}\n","imports":[{"dynamic":false,"end":61,"specifier":"react/jsx-runtime","start":44},{"dynamic":false,"end":92,"specifier":"react","start":87},{"dynamic":false,"end":162,"specifier":"../shared/domain.js","start":143}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/RecipeParticipation.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { useEffect, useId, useRef, useState, useSyncExternalStore } from \"react\";\nimport { publicRecipesApi, RecipesApiError } from \"../shared/api.js\";\nimport { useFavorite, useReviewSubmission } from \"../shared/participation.js\";\nimport { BlockState } from \"./common.js\";\nimport { saveReaderShoppingList, shoppingListItemsForIngredients, useShoppingList, useShoppingHandoff } from \"../shared/shopping.js\";\nexport { mergeShoppingListItems, shoppingListItemsForIngredients } from \"../shared/shopping.js\";\nconst api = publicRecipesApi;\nexport function SaveRecipe({ recipeId, saved: _initialSaved, customerActionsState }) {\n    const state = useFavorite(api, recipeId, customerActionsState === \"available\");\n    if (customerActionsState === \"unavailable\")\n        return null;\n    return _jsxs(\"div\", { className: \"crx-stack-sm crx-save-action crx-print-hidden\", children: [customerActionsState === \"available\" ? _jsx(\"button\", { className: \"crx-button secondary\", type: \"button\", \"aria-pressed\": state.saved, disabled: !state.ready || state.busy || state.pending, \"aria-busy\": state.busy, onClick: state.toggle, children: state.busy ? \"Saving…\" : !state.ready ? \"Checking reader…\" : state.saved ? \"Saved recipe ✓\" : \"Save recipe\" }) : _jsx(\"a\", { className: \"crx-muted\", href: \"/login\", children: \"Save recipes with an account (optional)\" }), state.error ? _jsxs(\"div\", { className: \"crx-status error\", role: \"alert\", children: [state.error, \" \", _jsx(\"a\", { href: \"/login\", children: \"Check sign-in\" })] }) : null, state.pending ? _jsxs(\"div\", { className: \"crx-stack-sm\", children: [_jsx(\"p\", { role: \"status\", children: \"Your original save choice is awaiting confirmation.\" }), _jsx(\"button\", { type: \"button\", className: \"crx-button secondary\", disabled: state.busy || !state.ready, onClick: () => { void state.reconcile(); }, children: \"Check saved state\" }), state.reconciled ? _jsxs(_Fragment, { children: [_jsx(\"button\", { type: \"button\", className: \"crx-button secondary\", disabled: state.busy || !state.ready, onClick: state.retry, children: \"Apply original choice\" }), _jsx(\"button\", { type: \"button\", className: \"crx-button ghost\", disabled: state.busy, onClick: state.keepSaved, children: \"Keep saved state\" })] }) : null] }) : null, !state.ready && customerActionsState === \"available\" ? _jsx(\"button\", { type: \"button\", className: \"crx-button ghost\", onClick: state.reload, children: \"Check current reader\" }) : null] });\n}\nexport function AddIngredientsToShoppingList({ recipeId, ingredients, customerActionsState, viewKey }) {\n    const reader = useSyncExternalStore(api.subscribeReader, api.getReaderSnapshot, api.getReaderSnapshot);\n    const shopping = useShoppingHandoff(api, viewKey || JSON.stringify([recipeId, ingredients]));\n    const ready = customerActionsState === \"available\" && reader.status === \"ready\" && Boolean(reader.scope);\n    if (customerActionsState !== \"available\")\n        return null;\n    return _jsxs(\"div\", { className: \"crx-stack-sm crx-print-hidden\", children: [_jsx(\"button\", { className: \"crx-button secondary\", type: \"button\", disabled: shopping.blocked || !ingredients.length || !ready, \"aria-busy\": shopping.busy, onClick: () => { if (reader.scope)\n                    void shopping.add(shoppingListItemsForIngredients(ingredients), reader.scope); }, children: shopping.busy ? \"Adding ingredients…\" : \"Add ingredients to shopping list\" }), !ready ? _jsxs(\"div\", { className: \"crx-status info\", role: \"status\", children: [_jsx(\"a\", { href: \"/login\", children: \"Sign in\" }), \" and reload the recipe to confirm your shopping-list account.\"] }) : null, shopping.notice ? _jsxs(\"div\", { className: \"crx-success\", role: \"status\", children: [shopping.notice, \" \", _jsx(\"a\", { href: \"/recipes?view=shopping\", children: \"Open shopping list\" })] }) : null, shopping.error || shopping.intent ? _jsxs(\"div\", { className: \"crx-status error crx-stack-sm\", role: \"alert\", children: [_jsx(\"p\", { children: shopping.error || \"The original ingredient handoff needs confirmation.\" }), _jsx(\"button\", { type: \"button\", className: \"crx-button secondary\", disabled: shopping.busy || shopping.loading, onClick: () => void shopping.reread(), children: \"Reread original shopping list\" })] }) : null, _jsx(ShoppingRecovery, { shopping: shopping })] });\n}\nfunction ShoppingRecovery({ shopping }) {\n    if (!shopping.conflict || !shopping.intent)\n        return null;\n    return _jsxs(\"div\", { className: \"crx-status warning crx-stack-sm\", role: \"alert\", children: [_jsxs(\"p\", { children: [\"Saved list: \", shopping.conflict.items.map(item => `${item.checked ? \"✓ \" : \"\"}${item.name}`).join(\"; \") || \"Empty\"] }), _jsxs(\"p\", { children: [\"Original intended list: \", shopping.intent.items.map(item => `${item.checked ? \"✓ \" : \"\"}${item.name}`).join(\"; \") || \"Empty\"] }), _jsxs(\"div\", { className: \"crx-row\", children: [_jsx(\"button\", { type: \"button\", className: \"crx-button secondary\", disabled: shopping.busy || shopping.loading, onClick: shopping.useSaved, children: \"Keep saved list\" }), _jsx(\"button\", { type: \"button\", className: \"crx-button\", disabled: shopping.busy || shopping.loading, onClick: () => void shopping.retryOriginal(), children: \"Apply original list\" })] })] });\n}\nexport function ApprovedReviews({ recipeId, reviews, allowSubmission, customerActionsState }) {\n    const headingId = useId();\n    const average = reviews.length\n        ? Math.round((reviews.reduce((sum, review) => sum + review.rating, 0) / reviews.length) * 10) / 10\n        : 0;\n    if (!reviews.length && (!allowSubmission || customerActionsState !== \"available\"))\n        return null;\n    return (_jsxs(\"section\", { className: \"crx-panel crx-stack crx-reviews crx-print-hidden\", \"aria-labelledby\": headingId, children: [_jsxs(\"div\", { className: \"crx-row-between\", children: [_jsx(\"h2\", { id: headingId, children: \"Cook reviews\" }), reviews.length ? _jsxs(\"span\", { className: \"crx-pill info\", children: [average, \"/5 \\u00B7 \", reviews.length.toLocaleString(), \" \", reviews.length === 1 ? \"review\" : \"reviews\"] }) : null] }), reviews.length ? reviews.map((review, index) => (_jsxs(\"article\", { className: \"crx-stack-sm\", children: [_jsxs(\"strong\", { children: [review.rating, \"/5\", review.title ? ` · ${review.title}` : \"\"] }), review.body ? _jsx(\"p\", { className: \"crx-muted\", children: review.body }) : null] }, `${review.createdAt || \"review\"}-${index}`))) : _jsx(\"p\", { className: \"crx-muted\", children: \"No approved reviews yet.\" }), allowSubmission && customerActionsState === \"available\" ? _jsxs(\"details\", { className: \"crx-review-compose crx-print-hidden\", onToggle: (event) => {\n                    if (event.currentTarget.open)\n                        event.currentTarget.querySelector(\"select\")?.focus();\n                }, children: [_jsx(\"summary\", { children: \"Write a review\" }), _jsx(ReviewForm, { recipeId: recipeId })] }) : null] }));\n}\nfunction ReviewForm({ recipeId }) {\n    const errorId = useId();\n    const ratingRef = useRef(null);\n    const titleRef = useRef(null);\n    const bodyRef = useRef(null);\n    const state = useReviewSubmission(api, recipeId, true);\n    const [invalidField, setInvalidField] = useState(null);\n    const [validationError, setValidationError] = useState(\"\");\n    const frozen = state.busy || state.pending || state.completed || !state.ready;\n    useEffect(() => {\n        const select = ratingRef.current;\n        const details = select?.closest(\"details\");\n        if (state.ready && details?.open && (document.activeElement === document.body || document.activeElement === details.querySelector(\"summary\")))\n            select?.focus();\n    }, [state.ready]);\n    function submit() {\n        const validation = validatePublicReview({ rating: Number(state.rating), title: state.title, body: state.body });\n        setValidationError(validation);\n        if (validation) {\n            const field = !Number.isInteger(Number(state.rating)) || Number(state.rating) < 1 || Number(state.rating) > 5 ? \"rating\" : state.title.trim().length > 120 ? \"title\" : \"body\";\n            setInvalidField(field);\n            ({ rating: ratingRef, title: titleRef, body: bodyRef })[field].current?.focus();\n            return;\n        }\n        setInvalidField(null);\n        void state.submit();\n    }\n    return _jsxs(\"form\", { className: \"crx-stack-sm crx-print-hidden\", noValidate: true, onSubmit: event => { event.preventDefault(); if (!frozen)\n            submit(); }, children: [_jsx(\"h3\", { children: \"Share how it went\" }), _jsx(\"p\", { className: \"crx-muted\", children: \"Your review is sent to the site team for moderation before it appears publicly.\" }), _jsxs(\"label\", { className: \"crx-field\", children: [\"Rating (required)\", _jsxs(\"select\", { ref: ratingRef, className: \"crx-select\", required: true, \"aria-invalid\": invalidField === \"rating\" || undefined, \"aria-describedby\": invalidField === \"rating\" ? errorId : undefined, value: state.rating, disabled: frozen, onChange: event => state.setRating(event.target.value), children: [_jsx(\"option\", { value: \"\", children: \"Choose a rating\" }), _jsx(\"option\", { value: \"5\", children: \"5 \\u2014 Excellent\" }), _jsx(\"option\", { value: \"4\", children: \"4 \\u2014 Good\" }), _jsx(\"option\", { value: \"3\", children: \"3 \\u2014 Okay\" }), _jsx(\"option\", { value: \"2\", children: \"2 \\u2014 Needs work\" }), _jsx(\"option\", { value: \"1\", children: \"1 \\u2014 Poor\" })] })] }), _jsxs(\"label\", { className: \"crx-field\", children: [_jsxs(\"span\", { children: [\"Review title \", _jsx(\"span\", { className: \"crx-muted\", children: \"(optional)\" })] }), _jsx(\"input\", { ref: titleRef, className: \"crx-input\", \"aria-invalid\": invalidField === \"title\" || undefined, \"aria-describedby\": invalidField === \"title\" ? errorId : undefined, value: state.title, maxLength: 120, disabled: frozen, onChange: event => state.setTitle(event.target.value) })] }), _jsxs(\"label\", { className: \"crx-field\", children: [\"Comment (required)\", _jsx(\"textarea\", { ref: bodyRef, className: \"crx-textarea\", required: true, \"aria-invalid\": invalidField === \"body\" || undefined, \"aria-describedby\": invalidField === \"body\" ? errorId : undefined, value: state.body, maxLength: 2000, disabled: frozen, onChange: event => state.setBody(event.target.value) })] }), validationError || state.error ? _jsxs(\"div\", { id: errorId, className: \"crx-status error\", role: \"alert\", children: [validationError || state.error, \" \", _jsx(\"a\", { href: \"/login\", children: \"Check sign-in\" })] }) : null, state.notice ? _jsx(\"div\", { className: \"crx-success\", role: \"status\", children: state.notice }) : null, !state.ready ? _jsx(\"button\", { className: \"crx-button ghost\", type: \"button\", onClick: state.reload, children: \"Check current reader\" }) : null, state.completed || state.hasDraft && !state.pending ? _jsx(\"button\", { className: \"crx-button secondary\", type: \"button\", disabled: !state.ready || state.busy, onClick: state.newReview, children: state.completed ? \"Write a new review\" : \"Discard draft\" }) : null, state.pending ? _jsxs(_Fragment, { children: [_jsx(\"p\", { role: \"status\", children: \"Your original review is frozen until its outcome is known.\" }), _jsx(\"button\", { className: \"crx-button secondary\", type: \"button\", disabled: state.busy || !state.ready, onClick: () => { void state.reconcile(); }, children: \"Check original review status\" }), state.retryAllowed ? _jsx(\"button\", { className: \"crx-button secondary\", type: \"button\", disabled: state.busy || !state.ready, onClick: state.retry, children: \"Retry original review\" }) : null] }) : _jsx(\"button\", { className: \"crx-button secondary\", type: \"submit\", disabled: frozen, \"aria-busy\": state.busy, children: state.busy ? \"Submitting…\" : \"Submit review\" })] });\n}\nexport function validatePublicReview(review) {\n    if (!Number.isInteger(review.rating) || review.rating < 1 || review.rating > 5)\n        return \"Choose a rating from 1 to 5.\";\n    if ((review.title || \"\").trim().length > 120)\n        return \"Review title must be 120 characters or fewer.\";\n    const body = (review.body || \"\").trim();\n    if (!body)\n        return \"Add a comment before submitting your review.\";\n    if (body.length > 2_000)\n        return \"Review comment must be 2,000 characters or fewer.\";\n    return \"\";\n}\nfunction participantError(error, unauthenticatedMessage) {\n    if (error instanceof RecipesApiError && error.status === 401)\n        return unauthenticatedMessage;\n    if (error instanceof Error)\n        return error.message;\n    return \"Unable to complete this recipe action.\";\n}\nexport function ShoppingListBlock() {\n    const headingId = useId();\n    const shopping = useShoppingList(api);\n    const items = shopping.list?.items || [];\n    const loaded = Boolean(shopping.list);\n    const { loading, error, notice, newItem, setNewItem } = shopping;\n    const saving = shopping.busy;\n    const signedOut = api.getReaderSnapshot().status === \"signed_out\";\n    const [editing, setEditing] = useState(false);\n    const editTrigger = useRef(null);\n    const addInput = useRef(null);\n    const shoppingItems = useRef(null);\n    const returnAfterPurchase = useRef(null);\n    const returnAfterRemoval = useRef(false);\n    useEffect(() => {\n        if (returnAfterPurchase.current !== null) {\n            const index = returnAfterPurchase.current;\n            returnAfterPurchase.current = null;\n            shoppingItems.current?.querySelector(`[data-shopping-index=\"${index}\"]`)?.focus();\n        }\n        if (!returnAfterRemoval.current)\n            return;\n        returnAfterRemoval.current = false;\n        (items.length ? editTrigger.current : addInput.current)?.focus();\n    }, [items]);\n    async function save(next) { return shopping.save(next); }\n    async function addItem() { const name = newItem.trim(); if (name && await save([...items, { name }]))\n        setNewItem(\"\"); }\n    async function removeItem(index) { returnAfterRemoval.current = true; if (!await save(items.filter((_, rowIndex) => rowIndex !== index)))\n        returnAfterRemoval.current = false; }\n    async function markPurchased(index, checked) { returnAfterPurchase.current = index; if (!await save(items.map((item, itemIndex) => itemIndex === index ? { ...item, checked } : item)))\n        returnAfterPurchase.current = null; }\n    return (_jsxs(\"section\", { className: \"cedros-recipes-public crx-root crx-panel crx-stack crx-shopping-list\", \"aria-labelledby\": headingId, children: [_jsxs(\"div\", { className: \"crx-row-between\", children: [_jsxs(\"div\", { className: \"crx-stack-sm\", children: [_jsx(\"h2\", { id: headingId, children: \"Shopping list\" }), _jsx(\"p\", { className: \"crx-muted\", children: \"Keep track of ingredients you want to buy.\" })] }), loaded && !loading ? _jsxs(\"div\", { className: \"crx-row\", children: [_jsxs(\"span\", { className: \"crx-muted\", role: \"status\", children: [items.filter((item) => !item.checked).length.toLocaleString(), \" left to buy\"] }), items.length ? _jsx(\"button\", { ref: editTrigger, className: \"crx-button ghost\", type: \"button\", disabled: saving, \"aria-pressed\": editing, onClick: () => setEditing((current) => !current), children: editing ? \"Done editing\" : \"Edit list\" }) : null] }) : null] }), loading ? _jsx(BlockState, { loading: true, error: \"\", empty: false }) : null, error && !(signedOut && shopping.signInRequired) ? _jsx(BlockState, { loading: false, error: error, empty: false, onRetry: () => void shopping.reread() }) : null, shopping.accessDenied ? _jsxs(\"div\", { className: \"crx-status info crx-stack-sm\", role: \"status\", children: [_jsx(\"span\", { children: signedOut ? \"Sign in to view your private shopping list, then check your account here.\" : \"Check this account's access or sign in with another account, then check again.\" }), _jsxs(\"div\", { className: \"crx-row\", children: [_jsx(\"a\", { className: \"crx-button\", href: \"/login\", children: \"Sign in to use your shopping list\" }), _jsx(\"button\", { className: \"crx-button secondary\", type: \"button\", disabled: loading || saving, onClick: () => void shopping.reread(), children: \"Check signed-in account\" })] })] }) : null, _jsx(ShoppingRecovery, { shopping: shopping }), notice ? _jsx(\"p\", { className: \"crx-muted\", role: \"status\", \"aria-live\": \"polite\", children: notice }) : null, !loading && loaded && !items.length ? _jsxs(\"div\", { className: \"crx-empty\", children: [_jsx(\"strong\", { children: \"No items yet\" }), _jsx(\"span\", { className: \"crx-muted\", children: \"Add ingredients you want to buy.\" })] }) : null, !loading && loaded && items.length > 0 && items.every((item) => item.checked) ? _jsx(\"p\", { className: \"crx-muted\", children: \"Everything on your list is purchased.\" }) : null, !loading && loaded ? _jsx(\"div\", { ref: shoppingItems, className: \"crx-shopping-items\", children: [false, true].map((purchased) => {\n                    const group = items.map((item, index) => ({ item, index })).filter(({ item }) => Boolean(item.checked) === purchased);\n                    return group.length ? _jsxs(\"section\", { className: \"crx-shopping-group crx-stack-sm\", \"aria-label\": purchased ? \"Purchased items\" : \"Items to buy\", children: [_jsxs(\"h3\", { className: \"crx-shopping-group__title\", children: [purchased ? \"Purchased\" : \"To buy\", \" \", _jsxs(\"span\", { className: \"crx-muted\", children: [\"\\u00B7 \", group.length.toLocaleString()] })] }), group.map(({ item, index }) => (_jsxs(\"div\", { className: \"crx-shopping-row\", \"data-purchased\": item.checked === true, children: [_jsxs(\"label\", { className: \"crx-check-row\", children: [_jsx(\"input\", { type: \"checkbox\", \"data-shopping-index\": index, disabled: shopping.blocked, checked: item.checked === true, onChange: (event) => { void markPurchased(index, event.target.checked); } }), _jsx(\"span\", { children: item.name })] }), editing ? _jsx(\"button\", { className: \"crx-button ghost\", type: \"button\", disabled: shopping.blocked, \"aria-label\": `Remove ${item.name}`, onClick: () => { void removeItem(index); }, children: \"Remove\" }) : null] }, `${item.name}-${index}`)))] }, String(purchased)) : null;\n                }) }) : null, !loading && loaded ? _jsxs(\"form\", { className: \"crx-shopping-add\", onSubmit: (event) => { event.preventDefault(); if (!saving && !error)\n                    void addItem(); }, children: [_jsxs(\"label\", { className: \"crx-field\", children: [\"Add item\", _jsx(\"input\", { ref: addInput, className: \"crx-input\", disabled: shopping.blocked, value: newItem, onChange: (event) => setNewItem(event.target.value), placeholder: \"e.g. Fresh basil\" })] }), _jsx(\"button\", { className: \"crx-button\", type: \"submit\", disabled: shopping.blocked || !newItem.trim(), \"aria-busy\": saving, children: saving ? \"Saving…\" : \"Add item\" })] }) : null] }));\n}\nexport async function persistShoppingList(client, next, recordVersion, readerScope) {\n    try {\n        const saved = await saveReaderShoppingList(client, { _cedrosRecordVersion: recordVersion, readerScope }, next);\n        return { ok: true, items: saved.items, recordVersion: saved._cedrosRecordVersion };\n    }\n    catch (error) {\n        return { ok: false, error: participantError(error, \"Sign in with Cedros Login to save shopping lists.\"), ...(error instanceof RecipesApiError ? { status: error.status } : {}) };\n    }\n}\n","imports":[{"dynamic":false,"end":84,"specifier":"react/jsx-runtime","start":67},{"dynamic":false,"end":166,"specifier":"react","start":161},{"dynamic":false,"end":236,"specifier":"../shared/api.js","start":220},{"dynamic":false,"end":315,"specifier":"../shared/participation.js","start":289},{"dynamic":false,"end":357,"specifier":"./common.js","start":346},{"dynamic":false,"end":491,"specifier":"../shared/shopping.js","start":470},{"dynamic":false,"end":588,"specifier":"../shared/shopping.js","start":567}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/common.js","kind":"module","text":"import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { recipeAccessCopy } from \"../shared/domain.js\";\nimport { useId, useState } from \"react\";\nexport { recipeTimeLabel } from \"../shared/domain.js\";\nimport { groupIngredients, ingredientCookingLabel } from \"../shared/domain.js\";\nexport function IngredientList({ ingredients, controls }) {\n    const headingId = useId();\n    const groups = groupIngredients(ingredients);\n    return (_jsxs(\"section\", { className: \"crx-panel crx-stack-sm\", \"aria-labelledby\": headingId, children: [_jsxs(\"div\", { className: \"crx-row-between\", children: [_jsx(\"h2\", { id: headingId, children: \"Ingredients\" }), controls] }), ingredients.length ? groups.map((group) => _jsxs(\"div\", { className: \"crx-ingredient-group crx-stack-sm\", children: [group.name ? _jsx(\"h3\", { children: group.name }) : null, _jsx(\"ul\", { className: \"crx-list\", children: group.items.map((item) => _jsx(\"li\", { children: ingredientCookingLabel({ ...item, group: undefined }) }, item.id)) })] }, group.items[0].id)) : _jsx(\"p\", { className: \"crx-muted\", children: \"No ingredients were supplied.\" })] }));\n}\nexport function RecipeMedia({ recipe, className = \"\", eager = false }) {\n    // Key the image state by URL so changing a recipe can recover from a failed image.\n    return _jsx(MediaSource, { recipe: recipe, className: className, eager: eager }, recipe.featuredImageUrl || \"missing\");\n}\nfunction MediaSource({ recipe, className, eager }) {\n    const [failed, setFailed] = useState(false);\n    if (recipe.featuredImageUrl && !failed)\n        return _jsx(\"img\", { className: `crx-media ${className}`, src: recipe.featuredImageUrl, width: recipe.featuredImageWidth, height: recipe.featuredImageHeight, alt: recipe.featuredImageAlt || recipe.title, loading: eager ? \"eager\" : \"lazy\", onError: () => setFailed(true) });\n    return _jsxs(\"div\", { className: `crx-media crx-media-missing ${className}`, role: \"img\", \"aria-label\": `No photo for ${recipe.title}`, children: [_jsx(\"svg\", { \"aria-hidden\": \"true\", viewBox: \"0 0 24 24\", fill: \"none\", stroke: \"currentColor\", strokeWidth: \"1.5\", strokeLinecap: \"round\", strokeLinejoin: \"round\", children: _jsx(\"path\", { d: \"M4 3h16v18H4zM8 7h8M8 11h8M8 15h4\" }) }), _jsx(\"span\", { children: \"Recipe without a photo\" })] });\n}\nexport function LockedRecipe({ recipe, paymentState, returnHref = \"/recipes\" }) {\n    const headingId = useId();\n    const currency = recipe.access.currency || \"USD\";\n    const price = recipe.access.priceCents ? `${(recipe.access.priceCents / 100).toLocaleString(undefined, { maximumFractionDigits: 2, minimumFractionDigits: 2 })} ${currency}` : \"Paid access\";\n    const state = recipeAccessCopy(paymentState);\n    return (_jsxs(\"section\", { className: \"crx-panel crx-stack\", \"aria-labelledby\": headingId, children: [_jsxs(\"div\", { className: \"crx-row-between\", children: [_jsxs(\"div\", { className: \"crx-stack-sm\", children: [_jsx(\"h2\", { id: headingId, children: recipe.access.kind === \"membership\" ? \"Membership recipe\" : \"Premium recipe\" }), _jsx(\"p\", { className: \"crx-muted\", children: price })] }), _jsx(\"span\", { className: `crx-pill ${state.tone}`, children: state.label })] }), _jsx(\"div\", { className: `crx-status ${state.tone}`, role: \"status\", children: state.body }), _jsx(\"p\", { className: \"crx-muted\", children: \"Purchasing this recipe is currently unavailable. If you already have access, contact the site owner for help.\" }), _jsx(\"a\", { className: \"crx-button secondary\", href: returnHref, children: \"Browse available recipes\" })] }));\n}\nexport function BlockState(props) {\n    if (props.loading && props.loadingLayout === \"cards\")\n        return _jsx(\"div\", { className: \"crx-grid crx-recipe-grid crx-recipe-loading-grid\", role: \"status\", \"aria-label\": \"Loading recipes\", children: [0, 1, 2].map((index) => _jsxs(\"div\", { className: \"crx-stack\", \"aria-hidden\": \"true\", children: [_jsx(\"div\", { className: \"crx-skeleton\" }), _jsxs(\"div\", { className: \"crx-loading-copy\", children: [_jsx(\"span\", {}), _jsx(\"span\", {}), _jsx(\"span\", {})] })] }, index)) });\n    if (props.loading && props.loadingLayout === \"recipe\")\n        return _jsxs(\"div\", { className: \"crx-recipe-header crx-detail-loading\", role: \"status\", \"aria-label\": \"Loading recipe\", children: [_jsxs(\"div\", { className: \"crx-loading-copy\", \"aria-hidden\": \"true\", children: [_jsx(\"span\", {}), _jsx(\"span\", {}), _jsx(\"span\", {}), _jsx(\"span\", {})] }), _jsx(\"div\", { className: \"crx-skeleton crx-recipe-photo\", \"aria-hidden\": \"true\" })] });\n    if (props.loading)\n        return _jsx(\"div\", { className: \"crx-skeleton\", role: \"status\", \"aria-label\": \"Loading recipes\" });\n    if (props.error)\n        return (_jsxs(\"div\", { className: \"crx-error crx-stack-sm\", role: \"alert\", children: [_jsx(\"span\", { children: props.error }), props.onRetry ? _jsx(\"button\", { className: \"crx-button secondary\", type: \"button\", onClick: props.onRetry, children: \"Try again\" }) : null] }));\n    if (props.empty)\n        return _jsxs(\"div\", { className: \"crx-empty\", children: [_jsx(\"strong\", { children: props.emptyTitle || \"Nothing to show\" }), _jsx(\"span\", { className: \"crx-muted\", children: props.emptyBody || \"There is no available data for this block.\" })] });\n    return null;\n}\nexport function UnavailableRecipe({ returnHref = \"/recipes\" }) {\n    return (_jsxs(\"section\", { className: \"cedros-recipes-public crx-root crx-stack\", children: [_jsx(BlockState, { loading: false, error: \"\", empty: true, emptyTitle: \"Recipe unavailable\", emptyBody: \"This recipe is no longer published or its link has changed.\" }), _jsx(\"a\", { className: \"crx-button secondary\", href: returnHref, children: \"Browse available recipes\" })] }));\n}\nexport function MissingRecipeSlug() {\n    return (_jsx(\"section\", { className: \"cedros-recipes-public crx-root\", children: _jsx(\"div\", { className: \"crx-status warning\", role: \"status\", children: \"Choose a recipe slug before publishing this block.\" }) }));\n}\nexport function RecipeBeforeCooking({ recipe }) {\n    const headingId = useId();\n    if (!recipe.notes && !recipe.substitutions.length)\n        return null;\n    return _jsxs(\"section\", { className: \"crx-before-cooking crx-stack\", \"aria-labelledby\": headingId, children: [_jsx(\"h2\", { id: headingId, children: \"Before you start\" }), recipe.notes ? _jsx(\"p\", { children: recipe.notes }) : null, recipe.substitutions.length ? _jsxs(\"div\", { className: \"crx-stack-sm\", children: [_jsx(\"h3\", { children: \"Substitutions\" }), _jsx(\"ul\", { className: \"crx-list\", children: recipe.substitutions.map((value, index) => _jsx(\"li\", { children: value }, index)) })] }) : null] });\n}\n","imports":[{"dynamic":false,"end":61,"specifier":"react/jsx-runtime","start":44},{"dynamic":false,"end":117,"specifier":"../shared/domain.js","start":98},{"dynamic":false,"end":158,"specifier":"react","start":153},{"dynamic":false,"end":213,"specifier":"../shared/domain.js","start":194},{"dynamic":false,"end":293,"specifier":"../shared/domain.js","start":274}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/cookSession.js","kind":"module","text":"const SESSION_VERSION = 2;\nconst SESSION_MAX_AGE_MS = 7 * 24 * 60 * 60 * 1_000;\nconst MAX_TIMER_SECONDS = 7 * 24 * 60 * 60;\nexport function cookSessionSignature(recipe) {\n    return JSON.stringify([recipe.servings, recipe.instructions, recipe.ingredients, recipe.equipment, recipe.allergens, recipe.foodSafety]);\n}\nexport function cookSessionKey(recipeId) {\n    return `cedros-recipes:cook-session:${recipeId}`;\n}\nexport function loadCookSession(storage, recipe, now = Date.now()) {\n    try {\n        const raw = storage.getItem(cookSessionKey(recipe.id));\n        if (!raw)\n            return null;\n        const stored = JSON.parse(raw);\n        if (stored.version !== SESSION_VERSION\n            || stored.recipeId !== recipe.id\n            || stored.recipeSignature !== cookSessionSignature(recipe)\n            || !finiteNumber(stored.updatedAt)\n            || stored.updatedAt > now + 60_000\n            || now - stored.updatedAt > SESSION_MAX_AGE_MS) {\n            storage.removeItem(cookSessionKey(recipe.id));\n            return null;\n        }\n        const stepIds = new Set(recipe.instructions.map((step) => step.id));\n        const completed = sanitizeCompleted(stored.completed, stepIds);\n        const timers = sanitizeTimers(stored.timers, stepIds, now);\n        return {\n            servings: recipe.servings ? clampInteger(stored.servings, 1, 999, recipe.servings) : 0,\n            viewIndex: clampInteger(stored.viewIndex, 0, recipe.instructions.length, 0),\n            completed,\n            timers\n        };\n    }\n    catch {\n        try {\n            storage.removeItem(cookSessionKey(recipe.id));\n        }\n        catch {\n            // Progress is best-effort device state; storage denial must not block cooking.\n        }\n        return null;\n    }\n}\nexport function saveCookSession(storage, recipe, state, now = Date.now()) {\n    const payload = {\n        version: SESSION_VERSION,\n        recipeId: recipe.id,\n        recipeSignature: cookSessionSignature(recipe),\n        updatedAt: now,\n        servings: recipe.servings ? clampInteger(state.servings, 1, 999, recipe.servings) : 0,\n        viewIndex: Math.max(0, Math.round(state.viewIndex)),\n        completed: state.completed,\n        timers: state.timers\n    };\n    try {\n        storage.setItem(cookSessionKey(recipe.id), JSON.stringify(payload));\n        return true;\n    }\n    catch {\n        return false;\n    }\n}\nexport function clearCookSession(storage, recipeId) {\n    try {\n        storage.removeItem(cookSessionKey(recipeId));\n        return true;\n    }\n    catch {\n        return false;\n    }\n}\nexport function remainingTimerSeconds(timer, now) {\n    if (timer.endsAt === undefined)\n        return Math.max(0, timer.remainingSeconds);\n    return Math.max(0, Math.ceil((timer.endsAt - now) / 1000));\n}\nexport function formatTimer(totalSeconds) {\n    const safeSeconds = Math.max(0, Math.floor(totalSeconds));\n    const minutes = Math.floor(safeSeconds / 60);\n    const seconds = safeSeconds % 60;\n    return `${minutes}:${seconds.toString().padStart(2, \"0\")}`;\n}\nfunction sanitizeCompleted(value, stepIds) {\n    if (!value || typeof value !== \"object\" || Array.isArray(value))\n        return {};\n    return Object.fromEntries(Object.entries(value)\n        .filter(([id, completed]) => stepIds.has(id) && completed === true)\n        .map(([id]) => [id, true]));\n}\nfunction sanitizeTimers(value, stepIds, now) {\n    if (!value || typeof value !== \"object\" || Array.isArray(value))\n        return {};\n    const timers = [];\n    for (const [id, candidate] of Object.entries(value)) {\n        if (!stepIds.has(id) || !candidate || typeof candidate !== \"object\" || Array.isArray(candidate))\n            continue;\n        const timer = candidate;\n        const remainingSeconds = clampInteger(timer.remainingSeconds, 0, MAX_TIMER_SECONDS, 0);\n        const endsAt = finiteNumber(timer.endsAt) ? timer.endsAt : undefined;\n        timers.push([id, endsAt !== undefined && endsAt > now\n                ? { remainingSeconds, endsAt: Math.min(endsAt, now + SESSION_MAX_AGE_MS) }\n                : { remainingSeconds: endsAt === undefined ? remainingSeconds : 0 }]);\n    }\n    return Object.fromEntries(timers);\n}\nfunction clampInteger(value, min, max, fallback) {\n    const parsed = Number(value);\n    return Number.isFinite(parsed) ? Math.min(max, Math.max(min, Math.round(parsed))) : fallback;\n}\nfunction finiteNumber(value) {\n    return typeof value === \"number\" && Number.isFinite(value);\n}\n","imports":[],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/recipes.css","kind":"style","text":"\n.cedros-recipes-public{\n  color-scheme:light;\n  --crx-panel:var(--c11tihf5-runtime-panel,#fff);\n  --crx-muted-bg:var(--c11tihf5-runtime-accent-soft,#f5f5f5);\n  --crx-border:var(--c11tihf5-runtime-border,#e5e5e5);\n  --crx-ring:var(--c11tihf5-ring-light,var(--c11tihf5-ring,var(--c11tihf5-runtime-text,#171717)));\n  --crx-control-border:color-mix(in srgb,var(--crx-text) 55%,var(--crx-panel));\n  --crx-link:var(--c11tihf5-runtime-accent,#262626);\n  --crx-radius-md:var(--c11tihf5-radius-md,var(--c11tihf5-radius,.5rem));\n  --crx-radius-sm:var(--c11tihf5-radius-sm,.375rem);\n  --crx-radius-lg:var(--c11tihf5-radius-lg,.75rem);\n  --crx-shadow:var(--c11tihf5-shadow-sm,0 1px 2px color-mix(in srgb,var(--crx-text) 6%,transparent));\n  --crx-text:var(--c11tihf5-runtime-text,#171717);\n  --crx-muted:var(--c11tihf5-runtime-muted,#616161);\n  --crx-action-bg:var(--c11tihf5-runtime-action-bg,#171717);\n  --crx-action-fg:var(--c11tihf5-runtime-action-fg,#fff);\n  --crx-info:var(--c11tihf5-runtime-accent,#262626);\n  --crx-info-bg:var(--c11tihf5-runtime-accent-soft,#f5f5f5);\n  --crx-warning:var(--c11tihf5-runtime-warning,#b45309);\n  --crx-warning-bg:color-mix(in srgb,var(--crx-warning) 12%,var(--crx-panel));\n  --crx-error:var(--c11tihf5-runtime-error,#d93025);\n  --crx-error-bg:color-mix(in srgb,var(--crx-error) 10%,var(--crx-panel));\n  --crx-success:var(--c11tihf5-success-light,var(--c11tihf5-success,var(--c11tihf5-runtime-text,#171717)));\n  --crx-success-bg:color-mix(in srgb,var(--crx-success) 10%,var(--crx-panel));\n  --crx-motion-fast:var(--motion-duration-fast,160ms);\n  --crx-motion-axis:var(--motion-duration-standard,220ms);\n  --crx-motion-skeleton:1.4s;\n  --crx-motion-ease:var(--motion-ease-standard,cubic-bezier(0.16,1,0.3,1));\n}\n/* Color tokens have separate mode buckets; the host owns the mode class. */\n.c11tihf5-dark .cedros-recipes-public{\n  color-scheme:dark;\n  --crx-ring:var(--c11tihf5-ring-dark,var(--c11tihf5-runtime-text,#fafafa));\n  --crx-success:var(--c11tihf5-success-dark,var(--c11tihf5-runtime-text,#fafafa));\n}\n\n.cedros-recipes-document{max-width:72ch;margin-inline:auto;font-family:var(--c11tihf5-font-body,inherit);line-height:var(--c11tihf5-line-height-body,1.5);overflow-wrap:anywhere}\n.cedros-recipes-document img{display:block;max-width:100%;height:auto;margin-block:1rem}\n.cedros-recipes-document pre{white-space:pre-wrap;overflow-wrap:anywhere}\n.cedros-recipes-document :where(h1,h2,h3,h4){font-family:var(--c11tihf5-font-heading,inherit)}\n.cedros-recipes-public .crx-prose img{max-width:100%;height:auto}\n\n.cedros-recipes-public.crx-root,.cedros-recipes-public.crx-root *{box-sizing:border-box}\n.cedros-recipes-public.crx-root{min-width:0;max-width:100%;color:var(--crx-text);font-family:var(--c11tihf5-font-body,inherit);font-size:var(--c11tihf5-font-size-base,1rem);line-height:var(--c11tihf5-line-height-body,1.5);overflow-wrap:anywhere;container-type:inline-size}\n.cedros-recipes-public.crx-root :where(.crx-stack,.crx-stack-sm,.crx-grid,.crx-panel,.crx-card,.crx-toolbar,.crx-toolbar__left,.crx-row,.crx-row-between,.crx-detail-main,.crx-detail-sidebar){min-width:0;max-width:100%}\n.cedros-recipes-public.crx-root :where(h1,h2,h3,h4,p,dl,dd){margin:0}\n.cedros-recipes-public.crx-root :where(h1,h2,h3){font-family:var(--c11tihf5-font-heading,inherit);color:var(--crx-text);font-weight:600;letter-spacing:0;line-height:var(--c11tihf5-line-height-heading,1.16)}\n.cedros-recipes-public.crx-root h1{font-size:2rem}\n.cedros-recipes-public.crx-root h2{font-size:1.25rem}\n.cedros-recipes-public.crx-root h3{font-size:1rem}\n.cedros-recipes-public.crx-root p{margin-bottom:0}\n.cedros-recipes-public :where(a:not(.crx-button):not(.crx-card-link)){color:var(--crx-link);text-decoration:underline;text-underline-offset:.2em}\n.cedros-recipes-public .crx-stack,.cedros-recipes-public.crx-root.crx-stack{display:grid;gap:1rem}\n.cedros-recipes-public .crx-stack-sm{display:grid;gap:.5rem}\n.cedros-recipes-public .crx-row{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}\n.cedros-recipes-public .crx-row-between{display:flex;gap:.75rem;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}\n.cedros-recipes-public .crx-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem}\n.cedros-recipes-public .crx-detail-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(16rem,.8fr);gap:1rem;align-items:start}\n.cedros-recipes-public .crx-detail-main{grid-column:1;grid-row:1}.cedros-recipes-public .crx-detail-sidebar{grid-column:2;grid-row:1}\n.cedros-recipes-public .crx-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap}\n.cedros-recipes-public .crx-title{margin:0;font-size:1.5rem}\n.cedros-recipes-public .crx-subtitle{max-width:72ch;color:var(--crx-muted);font-size:1rem}\n.cedros-recipes-public .crx-muted{color:var(--crx-muted);font-size:.8125rem}\n.cedros-recipes-public .crx-help{color:var(--crx-muted);font-size:.8125rem}\n.cedros-recipes-public.crx-root>.crx-button,.cedros-recipes-public :is(.crx-error,.crx-status)>.crx-button{justify-self:start}\n.cedros-recipes-public .crx-panel,.cedros-recipes-public.crx-root.crx-panel,.cedros-recipes-public .crx-card,.cedros-recipes-public.crx-root.crx-card{border:1px solid var(--crx-border);background:var(--crx-panel);box-shadow:var(--crx-shadow)}\n.cedros-recipes-public .crx-panel,.cedros-recipes-public.crx-root.crx-panel{border-radius:var(--crx-radius-lg)}\n.cedros-recipes-public .crx-card,.cedros-recipes-public.crx-root.crx-card{border-radius:var(--crx-radius-md)}\n.cedros-recipes-public .crx-panel,.cedros-recipes-public.crx-root.crx-panel{padding:clamp(1rem,4%,1.5rem)}\n.cedros-recipes-public .crx-card,.cedros-recipes-public.crx-root.crx-card{padding:.9rem}\n.cedros-recipes-public .crx-toolbar{display:flex;align-items:end;justify-content:space-between;gap:.75rem;flex-wrap:wrap}\n.cedros-recipes-public .crx-toolbar__left{display:flex;gap:.75rem;align-items:end;flex-wrap:wrap}\n.cedros-recipes-public .crx-flex-fill{flex:1 1 16rem}\n.cedros-recipes-public .crx-field{display:grid;gap:.5rem;color:var(--crx-text);font-size:.875rem;font-weight:500}\n.cedros-recipes-public .crx-field__description{color:var(--crx-muted);font-size:.8125rem;font-weight:400}\n.cedros-recipes-public .crx-search{position:relative;display:flex;align-items:center;min-width:0}\n.cedros-recipes-public .crx-search>.crx-input{flex:1 1 auto;padding-inline-start:2.5rem}\n.cedros-recipes-public .crx-search>.crx-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}\n.cedros-recipes-public .crx-search:has(>.crx-search__clear)>.crx-input{padding-inline-end:3rem}\n.cedros-recipes-public .crx-search__icon{position:absolute;inset-inline-start:.875rem;top:50%;margin-top:-8px;color:var(--crx-muted);pointer-events:none}\n.cedros-recipes-public .crx-search>.crx-search__clear{position:absolute;inset-inline-end:.25rem;top:0;bottom:0;margin-block:auto;min-height:0;height:2.25rem;width:2.25rem;padding:0}\n.cedros-recipes-public .crx-input,.cedros-recipes-public .crx-textarea,.cedros-recipes-public .crx-select{width:100%;min-width:0;min-height:2.75rem;border:1px solid var(--crx-control-border);border-radius:var(--crx-radius-sm);padding:.5rem .75rem;background:var(--crx-panel);color:var(--crx-text);font:inherit;font-size:1rem;font-weight:400;transition:border-color var(--crx-motion-fast) var(--crx-motion-ease),box-shadow var(--crx-motion-fast) var(--crx-motion-ease)}\n.cedros-recipes-public.crx-root:focus-visible,.cedros-recipes-public.crx-root :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--crx-ring);outline-offset:2px}\n.cedros-recipes-public :where(.crx-input,.crx-select,.crx-textarea):disabled{cursor:not-allowed;opacity:.55;background:var(--crx-muted-bg)}\n.cedros-recipes-public :where(.crx-input,.crx-textarea)::placeholder{color:var(--crx-muted);opacity:1}\n.cedros-recipes-public :where(.crx-input,.crx-textarea)[readonly]{background:var(--crx-muted-bg)}\n.cedros-recipes-public .crx-textarea{min-height:6.5rem;resize:vertical}\n.cedros-recipes-public .crx-input:focus-visible,.cedros-recipes-public .crx-textarea:focus-visible,.cedros-recipes-public .crx-select:focus-visible,.cedros-recipes-public .crx-button:focus-visible,.cedros-recipes-public .crx-card:focus-visible,.cedros-recipes-public .crx-card-link:focus-visible{outline:2px solid var(--crx-ring);outline-offset:2px}\n.cedros-recipes-public .crx-input[aria-invalid=\"true\"],.cedros-recipes-public .crx-textarea[aria-invalid=\"true\"],.cedros-recipes-public .crx-select[aria-invalid=\"true\"]{border-color:var(--crx-error);box-shadow:0 0 0 1px var(--crx-error)}\n.cedros-recipes-public .crx-button{display:inline-flex;align-items:center;justify-content:center;min-height:2.75rem;max-width:100%;white-space:normal;overflow-wrap:anywhere;gap:.5rem;border:1px solid var(--crx-action-bg);border-radius:var(--crx-radius-sm);background:var(--crx-action-bg);color:var(--crx-action-fg);font:inherit;font-size:.875rem;font-weight:500;line-height:1.2;padding:.5rem .75rem;text-decoration:none;cursor:pointer;transition:transform var(--crx-motion-fast) var(--crx-motion-ease),background-color var(--crx-motion-fast) var(--crx-motion-ease),border-color var(--crx-motion-fast) var(--crx-motion-ease),box-shadow var(--crx-motion-fast) var(--crx-motion-ease)}\n.cedros-recipes-public .crx-button.secondary{border-color:var(--crx-control-border);background:var(--crx-panel);color:var(--crx-text)}\n.cedros-recipes-public .crx-button.ghost{border-color:transparent;background:transparent;color:var(--crx-text)}\n.cedros-recipes-public .crx-button:hover:not(:disabled):not([aria-disabled=\"true\"]){background:color-mix(in srgb,var(--crx-action-bg) 88%,var(--crx-action-fg));text-decoration:none}\n.cedros-recipes-public .crx-button:is(.secondary,.ghost):hover:not(:disabled):not([aria-disabled=\"true\"]){background:var(--crx-muted-bg);color:var(--crx-text)}\n.cedros-recipes-public .crx-button:active:not(:disabled):not([aria-disabled=\"true\"]){box-shadow:inset 0 0 0 1px currentColor}\n.cedros-recipes-public .crx-button:disabled,.cedros-recipes-public .crx-button[aria-disabled=\"true\"]{cursor:not-allowed;opacity:.55}\n.cedros-recipes-public .crx-button[aria-busy=\"true\"]{cursor:progress}\n.cedros-recipes-public .crx-card-link{display:grid;gap:.75rem;color:inherit;text-decoration:none;transition:transform var(--crx-motion-fast) var(--crx-motion-ease),border-color var(--crx-motion-fast) var(--crx-motion-ease),box-shadow var(--crx-motion-fast) var(--crx-motion-ease)}\n.cedros-recipes-public .crx-card-link:hover{border-color:var(--crx-ring)}\n.cedros-recipes-public .crx-card-link:hover h3{text-decoration:underline;text-underline-offset:.2em}\n.cedros-recipes-public .crx-media{display:block;width:100%;aspect-ratio:4/3;border-radius:var(--crx-radius-sm);object-fit:cover;background:var(--crx-muted-bg)}\n.cedros-recipes-public .crx-pill{justify-self:start;max-width:100%;display:inline-flex;align-items:center;gap:.35rem;min-height:1.45rem;border:1px solid var(--crx-border);border-radius:var(--crx-radius-sm);padding:.15rem .5rem;color:var(--crx-muted);font-size:.75rem;font-weight:600;white-space:normal}\n.cedros-recipes-public .crx-pill.success{border-color:var(--crx-success);color:var(--crx-text);background:var(--crx-success-bg)}\n.cedros-recipes-public .crx-pill.warning{border-color:var(--crx-warning);color:var(--crx-text);background:var(--crx-warning-bg)}\n.cedros-recipes-public .crx-pill.error{border-color:var(--crx-error);color:var(--crx-text);background:var(--crx-error-bg)}\n.cedros-recipes-public .crx-pill.info{border-color:var(--crx-info);color:var(--crx-text);background:var(--crx-info-bg)}\n.cedros-recipes-public .crx-status,.cedros-recipes-public .crx-error,.cedros-recipes-public .crx-success,.cedros-recipes-public.crx-root.crx-error,.cedros-recipes-public.crx-root.crx-success{border:1px solid var(--crx-border);border-radius:var(--crx-radius-md);padding:.75rem 1rem}\n.cedros-recipes-public .crx-status{background:var(--crx-muted-bg);color:var(--crx-text)}\n.cedros-recipes-public .crx-status.info{border-color:var(--crx-info);background:var(--crx-info-bg);color:var(--crx-text)}\n.cedros-recipes-public .crx-status.warning{border-color:var(--crx-warning);background:var(--crx-warning-bg);color:var(--crx-text)}\n.cedros-recipes-public .crx-error,.cedros-recipes-public .crx-status.error,.cedros-recipes-public.crx-root.crx-error{border-color:var(--crx-error);background:var(--crx-error-bg);color:var(--crx-text)}\n.cedros-recipes-public .crx-success,.cedros-recipes-public .crx-status.success,.cedros-recipes-public.crx-root.crx-success{border-color:var(--crx-success);background:var(--crx-success-bg);color:var(--crx-text)}\n.cedros-recipes-public .crx-empty{display:grid;gap:.5rem;align-content:center;min-height:7rem;border:1px dashed var(--crx-border);border-radius:var(--crx-radius-lg);padding:1rem;background:var(--crx-muted-bg)}\n.cedros-recipes-public .crx-skeleton{min-height:7rem;border-radius:var(--crx-radius-lg);background:linear-gradient(90deg,var(--crx-muted-bg),var(--crx-panel),var(--crx-muted-bg));background-size:220% 100%;animation:crx-shimmer var(--crx-motion-skeleton) var(--crx-motion-ease) infinite}\n.cedros-recipes-public .crx-list{display:grid;gap:.5rem;padding-left:1.2rem;margin:0}\n.cedros-recipes-public .crx-check-row{display:flex;align-items:flex-start;gap:.75rem;min-height:2.75rem}\n.cedros-recipes-public .crx-check-row input{flex-shrink:0}\n.cedros-recipes-public.crx-root :where(input[type=\"checkbox\"],input[type=\"radio\"]){accent-color:var(--crx-action-bg)}\n.cedros-recipes-public .crx-progress{width:100%;height:.45rem;border:0;border-radius:999px;overflow:hidden;background:var(--crx-muted-bg);accent-color:var(--crx-action-bg)}\n.cedros-recipes-public .crx-progress::-webkit-progress-bar{background:var(--crx-muted-bg);border-radius:999px}\n.cedros-recipes-public .crx-progress::-webkit-progress-value{background:var(--crx-action-bg);border-radius:999px}\n.cedros-recipes-public .crx-progress::-moz-progress-bar{background:var(--crx-action-bg);border-radius:999px}\n.cedros-recipes-public .crx-axis-stage{display:grid;overflow:hidden;border-radius:var(--crx-radius-lg)}\n.cedros-recipes-public .crx-axis-panel{grid-area:1/1;min-width:0;will-change:transform,opacity}\n.cedros-recipes-public .crx-axis-panel[data-state=\"outgoing\"]{pointer-events:none}\n.cedros-recipes-public .crx-axis-stage[data-transitioning=\"true\"][data-direction=\"forward\"] .crx-axis-panel[data-state=\"incoming\"]{animation:crx-axis-enter-forward var(--crx-motion-axis) var(--crx-motion-ease) both}\n.cedros-recipes-public .crx-axis-stage[data-transitioning=\"true\"][data-direction=\"forward\"] .crx-axis-panel[data-state=\"outgoing\"]{animation:crx-axis-exit-forward var(--crx-motion-axis) var(--crx-motion-ease) both}\n.cedros-recipes-public .crx-axis-stage[data-transitioning=\"true\"][data-direction=\"backward\"] .crx-axis-panel[data-state=\"incoming\"]{animation:crx-axis-enter-backward var(--crx-motion-axis) var(--crx-motion-ease) both}\n.cedros-recipes-public .crx-axis-stage[data-transitioning=\"true\"][data-direction=\"backward\"] .crx-axis-panel[data-state=\"outgoing\"]{animation:crx-axis-exit-backward var(--crx-motion-axis) var(--crx-motion-ease) both}\n.cedros-recipes-public .crx-cook-context>.crx-row-between{align-items:flex-start}\n.cedros-recipes-public .crx-cook-context h1{font-size:1.15rem;line-height:1.35}\n.cedros-recipes-public .crx-cook-step{min-height:15rem;align-content:start}\n.cedros-recipes-public .crx-cook-step__number{color:var(--crx-muted);font-size:.8125rem;font-weight:500}\n.cedros-recipes-public .crx-cook-step__text{font-size:clamp(1.05rem,2vw,1.3rem);line-height:1.55}\n.cedros-recipes-public .crx-timer{display:grid;gap:.75rem;padding:.75rem;border-radius:var(--crx-radius-md);background:var(--crx-muted-bg)}\n.cedros-recipes-public .crx-timer__time{font-size:1.5rem;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}\n.cedros-recipes-public :is(.crx-timer,.crx-empty,.crx-status) .crx-muted{color:var(--crx-text)}\n.cedros-recipes-public .crx-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n/* Discovery: the dish, rather than a card frame, is the visual unit. */\n.cedros-recipes-public .crx-recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem 1.5rem;align-items:start}\n.cedros-recipes-public .crx-recipe-card{grid-template-columns:minmax(0,1fr);align-content:start;gap:1rem;border-radius:var(--crx-radius-md);min-width:0}\n.cedros-recipes-public .crx-recipe-card h3{font-size:1.15rem;line-height:1.35}\n.cedros-recipes-public .crx-recipe-card__body{padding-inline:.25rem}\n.cedros-recipes-public .crx-recipe-card__description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}\n.cedros-recipes-public .crx-media-missing{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;color:var(--crx-text);font-size:.8125rem;border:1px solid var(--crx-border)}\n.cedros-recipes-public .crx-media-missing svg{width:2rem;height:2rem;opacity:.6}\n.cedros-recipes-public .crx-catalog-search{align-items:center;gap:1rem;padding-block:.5rem 1rem;border-bottom:1px solid var(--crx-border)}\n.cedros-recipes-public .crx-catalog-search .crx-toolbar__left{flex:1;align-items:end}\n.cedros-recipes-public .crx-catalog-search .crx-toolbar__left>.crx-field:first-child{flex:1;max-width:34rem}\n.cedros-recipes-public .crx-catalog-filters{display:contents}\n.cedros-recipes-public .crx-catalog-filter-toggle{display:none}\n.cedros-recipes-public .crx-catalog-filter-fields{display:flex;align-items:end;gap:.75rem;min-width:0}\n.cedros-recipes-public .crx-catalog-results{display:flex;align-items:center;gap:.5rem 1rem;flex-wrap:wrap}\n.cedros-recipes-public .crx-catalog-back{justify-self:start;color:var(--crx-link);font-size:.875rem;text-underline-offset:.25em}\n/* Reader navigation is supporting context; discovery stays in the first screen. */\n.cedros-recipes-public .crx-catalog-header{align-items:center}\n.cedros-recipes-public .crx-reader-nav{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem 1.5rem;font-size:.875rem}\n.cedros-recipes-public .crx-reader-nav a{display:inline-flex;align-items:center;min-height:2.75rem;padding-block:.5rem;color:var(--crx-muted);text-decoration:none;text-underline-offset:.35em}\n.cedros-recipes-public .crx-reader-nav a[aria-current=\"page\"]{color:var(--crx-text);font-weight:600;text-decoration:underline}\n.cedros-recipes-public .crx-reader-nav a:hover{color:var(--crx-link);text-decoration:underline}\n.cedros-recipes-public .crx-recipe-actions{align-items:start}\n.cedros-recipes-public .crx-preparation{scroll-margin-block:1rem}\n.cedros-recipes-public .crx-preparation:focus-visible{outline:2px solid var(--crx-ring);outline-offset:.5rem}\n.cedros-recipes-public .crx-save-action{justify-items:start;max-width:24rem}\n.cedros-recipes-public .crx-review-compose>summary{min-height:2.75rem;cursor:pointer;color:var(--crx-link);font-weight:600;padding-block:.5rem}\n.cedros-recipes-public .crx-review-compose[open]>summary{margin-bottom:.75rem}\n.cedros-recipes-public .crx-review-compose .crx-button{justify-self:start}\n.cedros-recipes-public.crx-shopping-list{width:min(100%,44rem)}\n.cedros-recipes-public .crx-cook-title-toggle{display:none;min-height:2.75rem;border:0;background:transparent;color:var(--crx-link);font:inherit;font-size:.8125rem;text-align:start;padding:.25rem 0;cursor:pointer;justify-self:start}\n@container(max-width:48rem){.cedros-recipes-public .crx-cook-context[data-title-collapsible]:not([data-title-expanded]) h1{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.cedros-recipes-public .crx-cook-title-toggle{display:block}}\n/* Detail: identity and the primary action arrive before preparation. */\n.cedros-recipes-public .crx-recipe-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2rem;align-items:center;padding-block:.5rem 1.5rem;border-bottom:1px solid var(--crx-border)}\n.cedros-recipes-public .crx-recipe-header--text{grid-template-columns:minmax(0,1fr);max-width:52rem}\n.cedros-recipes-public .crx-recipe-identity{min-width:0;align-content:start}\n.cedros-recipes-public .crx-recipe-header h1{font-size:clamp(1.75rem,3vw,2.5rem);line-height:1.15}\n.cedros-recipes-public .crx-recipe-photo{aspect-ratio:4/3;max-height:28rem}\n.cedros-recipes-public .crx-recipe-facts{display:flex;flex-wrap:wrap;gap:1rem 2rem;padding-block:.5rem}\n.cedros-recipes-public .crx-recipe-facts>div{display:grid;gap:.25rem}\n.cedros-recipes-public .crx-recipe-actions{align-items:flex-start}\n.cedros-recipes-public .crx-recipe-utilities{gap:1.5rem;font-size:.875rem}\n.cedros-recipes-public .crx-recipe-utilities>.crx-button{padding-inline:0}\n.cedros-recipes-public .crx-recipe-card__facts{display:flex;flex-wrap:wrap;gap:.25rem 0;list-style:none;padding:0;margin:0}\n.cedros-recipes-public .crx-recipe-card__facts>li{max-width:100%}\n.cedros-recipes-public .crx-recipe-card__facts>li+li::before{content:\"·\";margin-inline:.5rem;color:var(--crx-muted)}\n.cedros-recipes-public .crx-recipe-card__facts>.crx-pill{margin-inline-start:.5rem}\n.cedros-recipes-public .crx-recipe-card__facts>.crx-pill::before{content:none}\n.cedros-recipes-public .crx-recipe-loading-grid .crx-skeleton{min-height:0;aspect-ratio:4/3}\n.cedros-recipes-public .crx-loading-copy{display:grid;gap:1rem}\n.cedros-recipes-public .crx-loading-copy>span{display:block;height:.875rem;border-radius:var(--crx-radius-sm);background:var(--crx-muted-bg)}\n.cedros-recipes-public .crx-loading-copy>span:first-child{height:1.5rem;width:85%}\n.cedros-recipes-public .crx-loading-copy>span:last-child{width:60%}\n.cedros-recipes-public .crx-detail-loading .crx-skeleton{min-height:0}\n@container(max-width:32rem){.cedros-recipes-public .crx-recipe-loading-grid>div:not(:first-child){display:none}}\n.cedros-recipes-public .crx-detail-layout{grid-template-columns:minmax(16rem,.75fr) minmax(0,1.25fr);gap:2rem}\n.cedros-recipes-public .crx-detail-sidebar{grid-column:1;grid-row:1}\n.cedros-recipes-public .crx-detail-main{grid-column:2;grid-row:1}\n.cedros-recipes-public .crx-serving-field{width:5.5rem;font-size:.75rem}\n.cedros-recipes-public .crx-method-step{padding-block:.75rem;border-bottom:1px solid var(--crx-border)}\n.cedros-recipes-public .crx-before-cooking{padding-block:.5rem 1rem;border-bottom:1px solid var(--crx-border)}\n.cedros-recipes-public .crx-before-cooking>p{max-width:65ch}\n.cedros-recipes-public .crx-method-step>input{margin-block-start:.3rem}\n.cedros-recipes-public .crx-method-copy{display:grid;grid-template-columns:1.5rem minmax(0,1fr);gap:.5rem .75rem;flex:1}\n.cedros-recipes-public .crx-step-number{font-weight:700;color:var(--crx-muted);font-variant-numeric:tabular-nums}\n.cedros-recipes-public .crx-method-copy>.crx-stack-sm{grid-column:2}\n.cedros-recipes-public .crx-support{padding-block:.75rem}\n.cedros-recipes-public .crx-recipe-support{display:grid;grid-template-columns:minmax(0,1fr) minmax(12rem,.4fr);gap:2rem;border-top:1px solid var(--crx-border);padding-block:1.5rem .5rem;align-items:start}\n.cedros-recipes-public .crx-recipe-support:empty{display:none}\n.cedros-recipes-public .crx-recipe-support>:only-child{grid-column:1/-1}\n.cedros-recipes-public .crx-aftercare__items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 2rem}\n.cedros-recipes-public .crx-aftercare{gap:1rem}\n.cedros-recipes-public .crx-recipe-support>.crx-panel{padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}\n.cedros-recipes-public .crx-recipe-support .crx-nutrition-facts{grid-template-columns:minmax(0,1fr)}\n.cedros-recipes-public .crx-reviews{border:0;border-top:1px solid var(--crx-border);border-radius:0;background:transparent;box-shadow:none;padding:1.5rem 0 .5rem}\n.cedros-recipes-public .crx-reviews>article{max-width:65ch;padding-block:.5rem}\n.cedros-recipes-public .crx-review-compose{max-width:45rem}\n.cedros-recipes-public .crx-recipe-disclaimer{max-width:80ch;padding-top:1rem;border-top:1px solid var(--crx-border)}\n.cedros-recipes-public.crx-print-recipe .crx-recipe-header{display:block;padding-block:0 1rem;max-width:none}\n.cedros-recipes-public.crx-print-recipe .crx-recipe-header h1{font-size:1.5rem}\n.cedros-recipes-public.crx-print-recipe .crx-recipe-identity{gap:.75rem}\n.cedros-recipes-public.crx-print-recipe .crx-recipe-actions{margin-top:.25rem}\n@container(max-width:48rem){.cedros-recipes-public .crx-recipe-support{grid-template-columns:minmax(0,1fr);gap:1.5rem}.cedros-recipes-public .crx-aftercare__items{grid-template-columns:minmax(0,1fr)}.cedros-recipes-public .crx-recipe-support .crx-nutrition-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}\n.cedros-recipes-public .crx-ingredient-group+.crx-ingredient-group{border-top:1px solid var(--crx-border);padding-top:1rem;margin-top:.5rem}\n.cedros-recipes-public .crx-ingredient-group h3{font-size:.875rem;font-weight:600;line-height:1.5}\n.cedros-recipes-public .crx-method-step[data-complete=\"true\"] .crx-step-number{color:var(--crx-text)}\n.cedros-recipes-public .crx-nutrition-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem 1.5rem}\n.cedros-recipes-public .crx-nutrition-facts>div{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;border-bottom:1px solid var(--crx-border);padding-bottom:.5rem}\n.cedros-recipes-public .crx-nutrition-facts dd{font-variant-numeric:tabular-nums;text-align:end}\n.cedros-recipes-public .crx-shopping-items{display:grid;gap:.5rem}\n.cedros-recipes-public .crx-shopping-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding-block:0}\n.cedros-recipes-public .crx-shopping-row>.crx-check-row{flex:1;align-items:center;min-width:0}\n.cedros-recipes-public .crx-shopping-row[data-purchased=\"true\"] label{color:var(--crx-muted)}\n.cedros-recipes-public .crx-shopping-row[data-purchased=\"true\"] label>span{text-decoration:line-through}\n.cedros-recipes-public .crx-shopping-group+.crx-shopping-group{border-top:1px solid var(--crx-border);padding-top:1rem}\n.cedros-recipes-public .crx-shopping-group__title{font-size:.875rem;font-weight:600;line-height:1.5}\n.cedros-recipes-public .crx-shopping-add{display:flex;gap:.75rem;align-items:end}\n.cedros-recipes-public .crx-shopping-add>.crx-field{flex:1;min-width:0}\n/* Meal planning: seven compact day panels; each keeps its own height. */\n.cedros-recipes-public .crx-week-nav{display:grid;grid-template-columns:auto minmax(0,auto) auto;justify-content:start;align-items:center;gap:.75rem}\n.cedros-recipes-public .crx-week-nav>strong{text-align:center}\n.cedros-recipes-public .crx-meal-week{min-width:0;margin:0;padding:0;border:0;align-items:start}\n.cedros-recipes-public .crx-meal-day{align-content:start}\n@container(max-width:32rem){.cedros-recipes-public .crx-nutrition-facts{grid-template-columns:minmax(0,1fr)}.cedros-recipes-public .crx-panel,.cedros-recipes-public.crx-root.crx-panel{padding:1rem}}\n/* Cooking: keep the current instruction dominant and running timers visible. */\n.cedros-recipes-public .crx-cook-layout{row-gap:1rem;grid-template-columns:minmax(0,1fr) minmax(16rem,.45fr);grid-template-areas:\"current timers\" \"current reference\"}\n.cedros-recipes-public .crx-cook-layout:not(:has(.crx-cook-other-timers)){grid-template-areas:\"current reference\"}\n.cedros-recipes-public .crx-cook-current{grid-area:current}\n.cedros-recipes-public .crx-cook-other-timers{grid-area:timers}\n.cedros-recipes-public .crx-cook-reference-column{grid-area:reference}\n.cedros-recipes-public .crx-unchecked-step{justify-content:start;white-space:normal;text-align:start}\n.cedros-recipes-public .crx-cook-reference{min-width:0}\n.cedros-recipes-public .crx-cook-reference>summary{cursor:pointer;font-weight:600;padding-block:.75rem}\n.cedros-recipes-public .crx-cook-reference[open]>summary{margin-bottom:.5rem}\n@container(max-width:56rem){.cedros-recipes-public .crx-recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}\n@container(max-width:48rem){.cedros-recipes-public .crx-recipe-header{grid-template-columns:minmax(0,1fr);gap:1.5rem}.cedros-recipes-public .crx-recipe-photo{max-height:20rem;aspect-ratio:16/9}.cedros-recipes-public .crx-catalog-search{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end}.cedros-recipes-public .crx-catalog-search .crx-toolbar__left{display:contents}.cedros-recipes-public .crx-catalog-search .crx-toolbar__left>.crx-field:first-child{grid-column:1/-1;max-width:none}.cedros-recipes-public .crx-catalog-search .crx-toolbar__left>.crx-field:last-child{grid-column:1;max-width:20rem}.cedros-recipes-public .crx-catalog-search>[role=\"status\"]{grid-column:2;padding-bottom:.6rem}.cedros-recipes-public .crx-detail-main,.cedros-recipes-public .crx-detail-sidebar{grid-column:auto;grid-row:auto}.cedros-recipes-public .crx-cook-layout{grid-template-columns:minmax(0,1fr)}}\n@container(max-width:32rem){.cedros-recipes-public .crx-recipe-grid{grid-template-columns:minmax(0,1fr);gap:1.5rem}.cedros-recipes-public .crx-recipe-header h1{font-size:1.75rem}.cedros-recipes-public .crx-catalog-search{gap:.75rem}}\n@container(max-width:48rem){.cedros-recipes-public .crx-cook-layout{grid-template-areas:\"timers\" \"reference\" \"current\"}.cedros-recipes-public .crx-cook-layout:not(:has(.crx-cook-other-timers)){grid-template-areas:\"reference\" \"current\"}}\n@keyframes crx-shimmer{0%{background-position:120% 0}100%{background-position:-120% 0}}\n@keyframes crx-axis-enter-forward{from{opacity:0;transform:translateX(2rem)}to{opacity:1;transform:none}}\n@keyframes crx-axis-exit-forward{from{opacity:1;transform:none}to{opacity:0;transform:translateX(-1.5rem)}}\n@keyframes crx-axis-enter-backward{from{opacity:0;transform:translateX(-2rem)}to{opacity:1;transform:none}}\n@keyframes crx-axis-exit-backward{from{opacity:1;transform:none}to{opacity:0;transform:translateX(1.5rem)}}\n@media(prefers-reduced-motion:reduce){.cedros-recipes-public.crx-root .crx-skeleton,.cedros-recipes-public.crx-root .crx-axis-panel,.cedros-recipes-public.crx-root .crx-button,.cedros-recipes-public.crx-root .crx-card-link,.cedros-recipes-public.crx-root .crx-card:is(button){animation:none;transition:none;transform:none}}\n@container(max-width:48rem){.cedros-recipes-public .crx-detail-layout{grid-template-columns:minmax(0,1fr)}.cedros-recipes-public .crx-detail-main,.cedros-recipes-public .crx-detail-sidebar{grid-column:auto;grid-row:auto}.cedros-recipes-public .crx-page-header,.cedros-recipes-public .crx-toolbar{align-items:stretch}.cedros-recipes-public .crx-toolbar__left{width:100%;align-items:stretch}.cedros-recipes-public .crx-toolbar__left>.crx-field,.cedros-recipes-public .crx-row-between>.crx-field{flex:1 1 100%}.cedros-recipes-public .crx-button{min-height:2.75rem}.cedros-recipes-public .crx-row-between{align-items:stretch}.cedros-recipes-public .crx-input,.cedros-recipes-public .crx-select,.cedros-recipes-public .crx-textarea{min-width:0}}\n@container(max-width:48rem){.cedros-recipes-public .crx-row-between>.crx-serving-field{flex:0 0 5.5rem}.cedros-recipes-public .crx-panel>.crx-row-between:has(>.crx-serving-field){align-items:center}}\n@container(max-width:48rem){\n.cedros-recipes-public .crx-catalog-search .crx-toolbar__left{display:contents}\n.cedros-recipes-public .crx-catalog-search .crx-toolbar__left>.crx-field{width:auto;flex:none}\n.cedros-recipes-public .crx-catalog-search .crx-toolbar__left>.crx-field:first-child{grid-column:1/-1;max-width:none}\n.cedros-recipes-public .crx-catalog-search .crx-toolbar__left>.crx-field:not(:first-child){grid-column:auto;max-width:none}\n.cedros-recipes-public .crx-catalog-results{grid-column:1/-1;justify-content:space-between}\n}\n@container(max-width:48rem){.cedros-recipes-public .crx-catalog-filter-fields{grid-column:1/-1}}\n@container(max-width:32rem){\n.cedros-recipes-public .crx-catalog-search{grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:center}\n.cedros-recipes-public .crx-catalog-filters{display:contents}\n.cedros-recipes-public .crx-catalog-filter-toggle{display:flex;grid-column:2;grid-row:2;justify-self:end;justify-content:space-between;text-align:start;gap:.75rem}\n.cedros-recipes-public .crx-catalog-filter-fields{display:grid;grid-column:1/-1;grid-row:3;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}\n.cedros-recipes-public .crx-catalog-filter-fields[data-expanded=\"false\"]{display:none}\n.cedros-recipes-public .crx-catalog-filter-fields>.crx-field:only-child{grid-column:1/-1}\n.cedros-recipes-public .crx-catalog-results{grid-column:1;grid-row:2;align-self:center;justify-content:flex-start}\n}\n@container(max-width:16em){\n.cedros-recipes-public .crx-catalog-search{grid-template-columns:minmax(0,1fr)}\n.cedros-recipes-public .crx-catalog-search .crx-toolbar__left>.crx-field{grid-column:1/-1}\n}\n@media print{\n.cedros-recipes-public.crx-root .crx-print-hidden{display:none!important}\n.cedros-recipes-public.crx-root .crx-detail-layout{display:block}\n.cedros-recipes-public.crx-root .crx-detail-main,.cedros-recipes-public.crx-root .crx-detail-sidebar{display:grid;grid-column:auto;grid-row:auto;margin-bottom:1rem}\n.cedros-recipes-public.crx-root .crx-panel,.cedros-recipes-public.crx-root.crx-panel,.cedros-recipes-public.crx-root .crx-card{box-shadow:none;break-inside:avoid}\n.cedros-recipes-public.crx-root .crx-check-row>input{display:none}\n.cedros-recipes-public.crx-root .crx-recipe-header{display:block}.cedros-recipes-public.crx-root .crx-recipe-photo{max-height:10rem;width:auto;margin-top:1rem}\n}\n\n"},{"path":"workspace/react/dist/web/register.js","kind":"module","text":"import React from \"react\";\n// The build emits this asset from shared/styles; retain its host surface-graph edge.\nimport \"./recipes.css\";\nimport { extensionManifest } from \"../manifest.js\";\nimport { generatedContentTemplates } from \"../generated-manifest.js\";\nimport { injectStyles, publicCss } from \"../shared/styles.js\";\nimport { MealPlanBlock } from \"./MealPlanBlock.js\";\nimport { CookModeBlock } from \"./CookMode.js\";\nimport { PrintCardBlock, RecipeCardGridBlock, RecipeCatalogBlock, RecipeCollectionBlock, RecipeCookbookBlock, RecipeDetailBlock, ShoppingListBlock } from \"./PublicBlocks.js\";\ninjectStyles(\"cedros-recipes-web-css\", publicCss);\nconst blocks = [\n    block(\"cedros-recipes:recipe-catalog\", \"Recipe Catalog\", RecipeCatalogBlock, { heading: \"Recipes\", limit: 24 }),\n    block(\"cedros-recipes:recipe-detail\", \"Recipe Detail\", RecipeDetailBlock, { slug: \"\" }),\n    block(\"cedros-recipes:recipe-card-grid\", \"Recipe Card Grid\", RecipeCardGridBlock, { limit: 6 }),\n    block(\"cedros-recipes:recipe-collection\", \"Recipe Collection\", RecipeCollectionBlock, { heading: \"Collection\", collectionSlug: \"\", limit: 12 }),\n    block(\"cedros-recipes:recipe-cookbook\", \"Recipe Cookbook\", RecipeCookbookBlock, { heading: \"Cookbook\", cookbookSlug: \"\", limit: 12 }),\n    block(\"cedros-recipes:meal-plan\", \"Meal Plan\", MealPlanBlock, {}),\n    block(\"cedros-recipes:shopping-list\", \"Shopping List\", ShoppingListBlock, {}),\n    block(\"cedros-recipes:cook-mode\", \"Cook Mode\", CookModeBlock, { slug: \"\" }),\n    block(\"cedros-recipes:print-card\", \"Print Recipe Card\", PrintCardBlock, { slug: \"\" })\n];\nconst templates = generatedContentTemplates.map((template) => ({\n    id: template.id,\n    label: template.label,\n    contentTypes: [...template.contentTypes],\n    zones: template.zones.map((zone) => ({ ...zone })),\n    blocks: template.blocks.map((entry) => ({ ...entry, props: { ...entry.props } }))\n}));\nexport function registerCedrosWebSurface() {\n    injectStyles(\"cedros-recipes-web-css\", publicCss);\n    return {\n        manifest: extensionManifest,\n        contentBlocks: blocks,\n        contentTemplates: templates,\n        contentBlockRenderers: blocks.map((definition) => ({\n            type: definition.type,\n            render: ({ block: renderedBlock, onNavigate }) => React.createElement(definition.Component, { props: renderedBlock.props || definition.defaultProps || {}, onNavigate })\n        }))\n    };\n}\nfunction block(type, displayName, Component, defaultProps) {\n    return {\n        type,\n        displayName,\n        category: \"recipes\",\n        Component,\n        defaultProps,\n        validateProps: (props) => type.endsWith(\"detail\") || type.endsWith(\"cook-mode\") || type.endsWith(\"print-card\")\n            ? validateSlugProps(props)\n            : type.endsWith(\"recipe-collection\")\n                ? validateCollectionProps(props)\n                : type.endsWith(\"recipe-cookbook\") ? typeof props.cookbookSlug === \"string\" && props.cookbookSlug.trim() ? [] : [\"Choose a published cookbook before publishing this block.\"]\n                    : []\n    };\n}\nfunction validateCollectionProps(props) {\n    const collectionSlug = typeof props.collectionSlug === \"string\" ? props.collectionSlug.trim() : \"\";\n    return collectionSlug ? [] : [\"Choose a collection before publishing this block.\"];\n}\nfunction validateSlugProps(props) {\n    const slug = typeof props.slug === \"string\" ? props.slug.trim() : \"\";\n    return slug ? [] : [\"Choose a recipe slug before publishing this block.\"];\n}\nexport default registerCedrosWebSurface;\n","imports":[{"dynamic":false,"end":24,"specifier":"react","start":19},{"dynamic":false,"end":134,"specifier":"./recipes.css","start":121},{"dynamic":false,"end":186,"specifier":"../manifest.js","start":172},{"dynamic":false,"end":256,"specifier":"../generated-manifest.js","start":232},{"dynamic":false,"end":319,"specifier":"../shared/styles.js","start":300},{"dynamic":false,"end":371,"specifier":"./MealPlanBlock.js","start":353},{"dynamic":false,"end":418,"specifier":"./CookMode.js","start":405},{"dynamic":false,"end":593,"specifier":"./PublicBlocks.js","start":576}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/routes.js","kind":"module","text":"import { validWeekStart } from \"../shared/mealPlanning.js\";\nexport function readRecipePageLocation(search) {\n    const params = new URLSearchParams(search);\n    const servings = Number(params.get(\"servings\"));\n    return {\n        ...(Number.isInteger(servings) && servings >= 1 && servings <= 999 ? { servings } : {}),\n        ...(validWeekStart(params.get(\"planWeek\") || \"\") ? { planWeek: params.get(\"planWeek\") } : {}),\n        ...(params.get(\"saved\") === \"true\" ? { savedOnly: true } : {}),\n        ...(params.get(\"cookbook\")?.trim() ? { cookbookSlug: params.get(\"cookbook\").trim() } : {}),\n        slug: (params.get(\"recipe\") || \"\").trim(),\n        view: params.get(\"view\") === \"cook\" ? \"cook\" : params.get(\"view\") === \"shopping\" ? \"shopping\" : params.get(\"view\") === \"plan\" ? \"plan\" : \"detail\",\n        collectionSlug: (params.get(\"collection\") || \"\").trim()\n    };\n}\nexport function recipePageHref(slug, view = \"detail\", collectionSlug = \"\", servings, savedOnly = false, cookbookSlug = \"\", planWeek = \"\") {\n    const params = new URLSearchParams({ recipe: slug });\n    if (view === \"cook\")\n        params.set(\"view\", \"cook\");\n    if (validWeekStart(planWeek))\n        params.set(\"planWeek\", planWeek);\n    if (savedOnly)\n        params.set(\"saved\", \"true\");\n    if (collectionSlug)\n        params.set(\"collection\", collectionSlug);\n    if (cookbookSlug)\n        params.set(\"cookbook\", cookbookSlug);\n    if (servings !== undefined)\n        params.set(\"servings\", String(servings));\n    return `/recipes?${params.toString()}`;\n}\nexport function catalogHref(collectionSlug = \"\", cookbookSlug = \"\") {\n    const params = new URLSearchParams();\n    if (collectionSlug)\n        params.set(\"collection\", collectionSlug);\n    if (cookbookSlug)\n        params.set(\"cookbook\", cookbookSlug);\n    return params.size ? `/recipes?${params.toString()}` : \"/recipes\";\n}\nexport function navigateRecipePage(href, onNavigate) {\n    if (onNavigate) {\n        onNavigate(href);\n        return;\n    }\n    window.location.assign(href);\n}\nexport function shoppingListHref(planWeek = \"\") { return `/recipes?view=shopping${validWeekStart(planWeek) ? `&planWeek=${planWeek}` : \"\"}`; }\nexport function mealPlanHref(planWeek = \"\") { return `/recipes?view=plan${validWeekStart(planWeek) ? `&planWeek=${planWeek}` : \"\"}`; }\nexport function savedRecipesHref() { return \"/recipes?saved=true\"; }\n","imports":[{"dynamic":false,"end":57,"specifier":"../shared/mealPlanning.js","start":32}],"hasUnsupportedDynamicImports":false},{"path":"workspace/react/dist/web/useRecipeResource.js","kind":"module","text":"import { useCallback, useEffect, useRef, useState } from \"react\";\nimport { publicRecipesApi, defaultPublicRecipeSettings, RecipesApiError } from \"../shared/api.js\";\nconst api = publicRecipesApi;\nexport function useRecipeResource(slug, affiliateLinks = false) {\n    const [requestedSlug, setRequestedSlug] = useState(slug);\n    const generation = useRef(0);\n    const view = useRef(slug);\n    if (view.current !== slug) {\n        view.current = slug;\n        generation.current++;\n    }\n    const [reloadToken, setReloadToken] = useState(0);\n    const refresh = useCallback(() => { generation.current++; setResource(current => ({ ...current, loading: true, customerActionsState: \"unavailable\" })); setReloadToken(current => current + 1); }, []);\n    const [resource, setResource] = useState({\n        recipe: null,\n        paymentState: \"unavailable\",\n        customerActionsState: \"unavailable\",\n        saved: false,\n        reviews: [],\n        publicSettings: defaultPublicRecipeSettings,\n        loading: Boolean(slug),\n        error: \"\"\n    });\n    useEffect(() => {\n        let previous = api.getReaderSnapshot();\n        return api.subscribeReader(() => {\n            const next = api.getReaderSnapshot();\n            if (previous.scope && (previous.scope !== next.scope || next.status !== \"ready\")) {\n                generation.current++;\n                setResource(current => ({ ...current, recipe: current.recipe?.access.kind === \"free\" ? current.recipe : null, saved: false, readerScope: undefined, customerActionsState: next.status === \"signed_out\" ? \"signed_out\" : \"unavailable\", paymentState: current.recipe?.access.kind === \"free\" ? \"free\" : \"unavailable\", loading: true }));\n                setReloadToken(current => current + 1);\n            }\n            previous = next;\n        });\n    }, []);\n    useEffect(() => {\n        const current = ++generation.current;\n        let active = true;\n        setRequestedSlug(slug);\n        if (!slug) {\n            setResource({ recipe: null, paymentState: \"unavailable\", customerActionsState: \"unavailable\", saved: false, reviews: [], publicSettings: defaultPublicRecipeSettings, loading: false, error: \"\" });\n            return () => {\n                active = false;\n            };\n        }\n        setResource((current) => ({ ...current, loading: true, error: \"\", paymentState: \"unavailable\", customerActionsState: \"unavailable\" }));\n        void loadRecipe(slug, affiliateLinks).then((next) => {\n            if (active && current === generation.current)\n                setResource(next);\n        });\n        return () => {\n            active = false;\n        };\n    }, [slug, reloadToken, refresh, affiliateLinks]);\n    if (requestedSlug !== slug)\n        return { recipe: null, paymentState: \"unavailable\", customerActionsState: \"unavailable\", saved: false, reviews: [], publicSettings: defaultPublicRecipeSettings, loading: Boolean(slug), error: \"\", refresh };\n    return { ...resource, refresh };\n}\nexport function recipeIsLocked(recipe, paymentState) {\n    return recipe.access.kind !== \"free\" && paymentState !== \"granted\" && paymentState !== \"free\";\n}\nasync function loadRecipe(slug, affiliateLinks) {\n    try {\n        const body = await api.getRecipe({ slug, ...(affiliateLinks ? { affiliateLinks: true } : {}) });\n        const recipe = body.recipe || null;\n        if (!recipe?.id)\n            return { recipe, paymentState: \"unavailable\", customerActionsState: \"unavailable\", saved: false, reviews: [], publicSettings: body.publicSettings || defaultPublicRecipeSettings, loading: false, error: \"\" };\n        return {\n            recipe,\n            affiliateLinks: body.affiliateLinks,\n            paymentState: body.paymentState || (recipe.access.kind === \"free\" ? \"free\" : \"locked\"),\n            customerActionsState: body.customerActionsState || \"unavailable\",\n            saved: body.saved === true,\n            readerScope: body.readerScope,\n            reviews: body.reviews || [],\n            publicSettings: body.publicSettings || defaultPublicRecipeSettings,\n            loading: false,\n            error: \"\"\n        };\n    }\n    catch (error) {\n        return {\n            recipe: null,\n            paymentState: \"unavailable\",\n            customerActionsState: \"unavailable\",\n            saved: false,\n            reviews: [],\n            publicSettings: defaultPublicRecipeSettings,\n            loading: false,\n            error: error instanceof RecipesApiError && error.status === 404 ? \"\" : error instanceof Error ? error.message : \"Unable to load recipes.\"\n        };\n    }\n}\n","imports":[{"dynamic":false,"end":63,"specifier":"react","start":58},{"dynamic":false,"end":162,"specifier":"../shared/api.js","start":146}],"hasUnsupportedDynamicImports":false}]}