{
  "$schema": "https://playground.wordpress.net/blueprint-schema.json",
  "landingPage": "/wp-admin/admin.php?page=founderpostai-ai-suite-seo",
  "preferredVersions": {
    "php": "8.3",
    "wp": "6.8"
  },
  "features": {
    "networking": false
  },
  "login": true,
  "siteOptions": {
    "blogname": "Little Garden Journal · FounderPostAI demo",
    "blog_public": "0",
    "permalink_structure": "/%postname%/"
  },
  "constants": {
    "DISABLE_WP_CRON": true,
    "WP_HTTP_BLOCK_EXTERNAL": true,
    "AISUITE_GATEWAY_URL": "https://example.invalid/demo-no-ai"
  },
  "steps": [
    {
      "step": "installPlugin",
      "pluginData": {
        "resource": "url",
        "url": "https://downloads.wordpress.org/plugin/founderpostai-ai-suite-core.0.1.8.zip"
      },
      "options": {
        "activate": true
      }
    },
    {
      "step": "installPlugin",
      "pluginData": {
        "resource": "url",
        "url": "https://downloads.wordpress.org/plugin/founderpostai-ai-suite-seo.0.1.12.zip"
      },
      "options": {
        "activate": true
      }
    },
    {
      "step": "runPHP",
      "code": "<?php\n// Only executed inside an explicitly created, disposable WordPress Playground.\nrequire '/wordpress/wp-load.php';\nwp_set_current_user( 1 );\nFounderPostAI_AISuite_SEO_Store::install();\n\n$source = wp_insert_post( array(\n    'post_title' => 'Our composting tips',\n    'post_name' => 'small-garden-composting',\n    'post_status' => 'publish',\n    'post_author' => 1,\n    'post_content' => '<!-- wp:paragraph --><p>A healthy compost pile needs a balance of green and brown materials. If you are unsure what to put in your compost bin, start with vegetable scraps, dry leaves, and plain cardboard.</p><!-- /wp:paragraph --><!-- wp:paragraph --><p>Place your bin on level ground where you can reach it easily. Keep the mixture damp, turn it regularly, and cover fresh food scraps with dry material.</p><!-- /wp:paragraph -->',\n) );\n$target = wp_insert_post( array(\n    'post_title' => 'What to put in your compost bin',\n    'post_name' => 'compost-ingredients',\n    'post_status' => 'publish',\n    'post_author' => 1,\n    'post_content' => '<!-- wp:paragraph --><p>Mix vegetable scraps and coffee grounds with dry leaves, plain cardboard, and small twigs. Avoid meat, oily cooked food, and coated packaging in a small home compost bin.</p><!-- /wp:paragraph -->',\n) );\nFounderPostAI_AISuite_SEO_Meta_Adapter::write( $source, 'title', 'Our composting tips' );\nFounderPostAI_AISuite_SEO_Meta_Adapter::write( $source, 'description', 'Read our latest tips for getting started with composting.' );\nFounderPostAI_AISuite_SEO_Store::put( $source, 'title', 'Our composting tips', 'Composting in a Small Garden: A Beginner’s Guide', 'Prepared demo suggestion: make the subject and intended reader clear.' );\nFounderPostAI_AISuite_SEO_Store::put( $source, 'description', 'Read our latest tips for getting started with composting.', 'Start composting in a small garden. Learn where to put your bin, what to add, and how to keep a healthy balance of materials.', 'Prepared demo suggestion: describe the practical advice in this post.' );\nFounderPostAI_AISuite_SEO_Store::put( $source, 'internal_links', '', wp_json_encode( array( array( 'target_id' => $target, 'url' => get_permalink( $target ), 'anchor' => 'what to put in your compost bin' ) ) ), 'Prepared demo suggestion: connect an existing phrase to the related ingredients guide.' );\n\nwp_mkdir_p( WP_CONTENT_DIR . '/mu-plugins' );\nfile_put_contents( WP_CONTENT_DIR . '/mu-plugins/founderpostai-demo-notice.php', <<<'NOTICE'\n<?php\nadd_action( 'admin_notices', function () {\n    echo '<div class=\"notice notice-info\"><p><strong>FounderPostAI sample sandbox.</strong> These are prepared suggestions on two fictional posts. Try Apply, Dismiss, and the Applied tab’s Undo action. Live AI generation and external WordPress HTTP requests are disabled. This sandbox has no connection to your website. <a href=\"https://founderpostai.com/start\" target=\"_blank\" rel=\"noopener noreferrer\">Install on your own site</a>.</p></div>';\n} );\nNOTICE\n);\necho 'Seeded three prepared suggestions and two fictional posts.';\n"
    }
  ]
}
