{
  "component": {
    "id": "deployment-pipeline",
    "name": "Deployment pipeline",
    "tier": "pro",
    "exampleId": "deployment-pipeline",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/deployment-pipeline-demo.tsx",
    "exportName": "DeploymentPipelineDemo",
    "sha256": "6042ec2b266486e8c93899c18ce1f371377519c7a0018b96ae504eb9ab4c107c",
    "helperImports": [],
    "directComponentImports": [
      "deployment-pipeline"
    ],
    "sampleBoundary": "Existing local demo fixture with fictional data and callbacks. No live service, customer data, access key, or Pro source is included."
  },
  "install": {
    "command": "npx shadcn@latest add @tidal-pro/deployment-pipeline",
    "registryUrl": "https://tidalui.com/r/pro/deployment-pipeline.json",
    "namespace": "@tidal-pro",
    "access": "pro",
    "sourceDelivery": "server-gated",
    "requiresAuthorization": true,
    "tokenSource": "local-env",
    "tokenEnvName": "TIDALUI_TOKEN",
    "cli": {
      "package": "shadcn",
      "requested": "latest"
    }
  },
  "installPlan": [
    {
      "order": 1,
      "kind": "primary",
      "dependency": "@tidal-pro/deployment-pipeline",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/deployment-pipeline",
      "registryUrl": "https://tidalui.com/r/pro/deployment-pipeline.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/deployment-pipeline.tsx",
    "exports": [
      "TidalDeploymentPipeline",
      "TidalDeploymentStage"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/deployment-pipeline.css",
      "components/ui/status-badge.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "lucide-react"
    ],
    "registry": [
      "https://tidalui.com/r/tidal-button.json",
      "https://tidalui.com/r/status-badge.json"
    ],
    "additionalRegistry": [],
    "installClosure": [
      "deployment-pipeline",
      "status-badge",
      "tidal-button"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/deployment-pipeline.css",
      "components/ui/status-badge.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/deployment-pipeline.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/deployment-pipeline-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useState } from \"react\";\n\nimport { TidalDeploymentPipeline, type TidalDeploymentStage } from \"./components/ui/deployment-pipeline\";\n\nimport \"./components/ui/deployment-pipeline.css\";\n\nimport \"./components/ui/status-badge.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .deployment-pipeline-demo {\\n  width: 100%;\\n  max-width: 760px;\\n  min-width: 0;\\n}\";\n\nexport function DeploymentPipelineDemo() {\n  const [phase, setPhase] = useState<\"failed\" | \"approval\" | \"ready\">(\"failed\");\n  const stages: TidalDeploymentStage[] = [\n    {\n      id: \"build\",\n      label: \"Build artifact\",\n      state: \"passed\",\n      timing: \"42 seconds\",\n      description: \"Example artifact: app-v1.8.0.zip\",\n    },\n    {\n      id: \"checks\",\n      label: \"Release checks\",\n      state: phase === \"failed\" ? \"failed\" : \"passed\",\n      checks: [\n        { id: \"types\", label: \"Type checks\", state: \"passed\" },\n        {\n          id: \"smoke\",\n          label: \"Preview smoke test\",\n          state: phase === \"failed\" ? \"failed\" : \"passed\",\n          detail:\n            phase === \"failed\"\n              ? \"Sample failure: preview did not respond.\"\n              : \"Sample preview check passed.\",\n        },\n      ],\n      actions:\n        phase === \"failed\"\n          ? [\n              {\n                id: \"retry\",\n                label: \"Retry sample check\",\n                onRequest: () => setPhase(\"approval\"),\n              },\n            ]\n          : undefined,\n    },\n    {\n      id: \"approval\",\n      label: \"Production approval\",\n      state:\n        phase === \"failed\"\n          ? \"queued\"\n          : phase === \"approval\"\n            ? \"awaiting-approval\"\n            : \"passed\",\n      description:\n        phase === \"approval\"\n          ? \"Review the artifact before continuing.\"\n          : undefined,\n      actions:\n        phase === \"approval\"\n          ? [\n              {\n                id: \"approve\",\n                label: \"Approve sample release\",\n                onRequest: () => setPhase(\"ready\"),\n              },\n            ]\n          : undefined,\n    },\n    {\n      id: \"release\",\n      label: \"Production release\",\n      state: phase === \"ready\" ? \"passed\" : \"queued\",\n      description:\n        phase === \"ready\"\n          ? \"The local sample flow is complete.\"\n          : \"Waiting for the preceding stages.\",\n    },\n  ];\n  return (\n    <div className=\"deployment-pipeline-demo\">\n      <TidalDeploymentPipeline\n        title=\"Website release\"\n        environment=\"Production\"\n        artifact=\"v1.8.0\"\n        description=\"main · commit 8b4e2a1 (sample)\"\n        state={\n          phase === \"failed\"\n            ? \"failed\"\n            : phase === \"approval\"\n              ? \"awaiting-approval\"\n              : \"passed\"\n        }\n        stages={stages}\n        notice=\"Sample release workflow. No build, verification or deployment runs.\"\n        actions={\n          phase === \"ready\"\n            ? [\n                {\n                  id: \"reset\",\n                  label: \"Restart sample\",\n                  onRequest: () => setPhase(\"failed\"),\n                },\n              ]\n            : []\n        }\n      />\n    </div>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <DeploymentPipelineDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/deployment-pipeline.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [],
  "events": [],
  "nativeForm": {
    "participates": false,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "No form submit is present in the existing demo.",
    "resetBehavior": "No reset control is present in the existing demo.",
    "disabledBehavior": "Disabled controls remain excluded from successful native form submission.",
    "readOnlyBehavior": "Read-only controls retain their value and remain inspectable by the consumer."
  },
  "accessibility": {
    "labelSource": "Consumer-provided label remains required where the component API requires one.",
    "semantics": "Preserve the component's native element and the semantics demonstrated by the source fixture.",
    "keyboard": [
      "Tab and Shift+Tab",
      "Enter or Space for native activation",
      "Arrow keys where the component exposes a composite control"
    ],
    "focusReturn": "Preserve browser focus order and visible focus.",
    "errorAnnouncement": "No error announcement path is present in this demo; the consumer owns validation messaging.",
    "reducedMotion": "Verify prefers-reduced-motion with the existing component transition path.",
    "forcedColors": "Verify visible borders, text, and focus in forced-colors mode."
  },
  "responsive": {
    "widths": [
      320,
      390,
      768,
      1260
    ],
    "shortViewport": "Check the example at a 300px viewport height with keyboard or portal content visible.",
    "overflow": "The page should not gain horizontal overflow; component-local scrolling must remain intentional.",
    "touchTargetMinPx": 44,
    "coarseInputFontPx": 16
  },
  "errors": [
    {
      "fixture": "Exercise the existing demo's error, empty, loading, or invalid fixture.",
      "visibleResult": "The consumer-visible result must remain explicit and must not be replaced by a silent console error.",
      "focusResult": "Focus must remain on the triggering control or move to the announced error according to the native pattern.",
      "ownership": "Consumer-owned sample state only; no network request or customer data is used."
    }
  ],
  "verification": {
    "commands": [
      "npx tsc --noEmit",
      "npx vite build"
    ],
    "lockfile": "Use the consumer project's committed lockfile.",
    "browser": [
      "Chromium 1260x800",
      "Chromium 390x844",
      "Keyboard and reduced-motion pass"
    ]
  },
  "validation": {
    "consumerFixture": {
      "tsc": "pass",
      "viteBuild": "pass",
      "resourceModel": "Generated usage plus only the component files and CSS delivered by the primary item and listed registry dependencies."
    },
    "registryArtifact": "server-gated"
  },
  "exceptions": []
}
