{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "deploy-pipeline",
  "title": "Deploy Pipeline",
  "description": "A deployment page runs a build, streams logs and flips to Ready.",
  "dependencies": ["remotion", "@remotion/google-fonts"],
  "registryDependencies": ["@remocn/gsh"],
  "files": [
    {
      "path": "registry/remocn/deploy-pipeline/index.tsx",
      "content": "\"use client\";\n\nimport { loadFont as loadGeist } from \"@remotion/google-fonts/Geist\";\nimport { loadFont as loadMono } from \"@remotion/google-fonts/GeistMono\";\nimport type React from \"react\";\nimport {\n  AbsoluteFill,\n  Easing,\n  Img,\n  interpolate,\n  spring,\n  staticFile,\n  useCurrentFrame,\n  useVideoConfig,\n} from \"remotion\";\nimport type { GradientParams } from \"@/lib/remocn/gsh/gradient-engine\";\nimport { GshGround } from \"@/lib/remocn/gsh/gsh-ground\";\nimport type { GshPresetId } from \"@/lib/remocn/gsh/presets\";\n\nconst geist = loadGeist(\"normal\", {\n  weights: [\"300\", \"400\"],\n  subsets: [\"latin\"],\n});\nconst mono = loadMono(\"normal\", { weights: [\"400\"], subsets: [\"latin\"] });\n\nexport type DeployLogTone = \"default\" | \"muted\" | \"success\" | \"warn\";\n\nexport interface DeployLogLine {\n  text: string;\n  tone?: DeployLogTone;\n  /** Frames to wait after the previous line (default 3). */\n  wait?: number;\n}\n\nexport interface DeployPipelineProps {\n  project?: string;\n  deploymentId?: string;\n  commitMessage?: string;\n  commitSha?: string;\n  branch?: string;\n  domain?: string;\n  logs?: (string | DeployLogLine)[];\n  /** Duration the counter lands on, in seconds. */\n  buildSeconds?: number;\n  /** Site screenshot shown once the deployment is ready. */\n  preview?: string;\n  accent?: string;\n  speed?: number;\n  theme?: \"light\" | \"dark\";\n  ground?: GshPresetId;\n  groundParams?: Partial<GradientParams>;\n}\n\nconst DEFAULT_LOGS: DeployLogLine[] = [\n  { text: \"Running build in Washington, D.C., USA (East) – iad1\", wait: 0 },\n  { text: \"Build machine configuration: 4 cores, 8 GB\" },\n  { text: \"Cloning git.kitebase.dev/remocn-web (branch main, commit a4f9c21)\" },\n  { text: \"Cloning completed: 412.000ms\", wait: 7 },\n  { text: \"Restored build cache from previous deployment (8kQ2v1Xa)\" },\n  { text: 'Running \"bun install\"' },\n  {\n    text: 'Warning: \"engines\": { \"node\": \">=20\" } will upgrade the runtime on the next major',\n    tone: \"warn\",\n  },\n  { text: \"bun install v1.2.4 (a3f1e2c4)\", tone: \"muted\", wait: 4 },\n  { text: \"312 packages installed [4.21s]\", wait: 11 },\n  { text: 'Running \"bun run build\"' },\n  { text: \"  Creating an optimized production build ...\", wait: 4 },\n  { text: \"✓ Compiled successfully in 9.8s\", tone: \"success\", wait: 13 },\n  { text: \"✓ Generating static pages (24/24)\", tone: \"success\", wait: 6 },\n  {\n    text: \"Route                         Size   First load\",\n    tone: \"muted\",\n    wait: 5,\n  },\n  { text: \"┌ ○ /                       5.21 kB       112 kB\", wait: 2 },\n  { text: \"├ ○ /docs                   3.08 kB       109 kB\", wait: 2 },\n  { text: \"├ ƒ /api/render                 0 B       101 kB\", wait: 2 },\n  { text: \"└ ○ /changelog              1.84 kB       104 kB\", wait: 2 },\n  { text: \"Build completed in /out [21s]\", wait: 6 },\n  { text: \"Deploying outputs...\", wait: 5 },\n  { text: \"Deployment completed\", tone: \"success\", wait: 10 },\n];\n\nconst HEAVY = { mass: 1, damping: 26, stiffness: 120 };\nconst CARD = { mass: 0.8, damping: 18, stiffness: 160 };\nconst CHIP = { mass: 0.5, damping: 12, stiffness: 200 };\nconst MORPH = { damping: 200 };\nconst ENTER = Easing.bezier(0.32, 0.72, 0, 1);\nconst EXIT = Easing.bezier(0.55, 0, 1, 0.45);\nconst CAMERA = Easing.bezier(0.87, 0, 0.13, 1);\nconst CL = { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" } as const;\nconst clamp = (v: number, lo = 0, hi = 1) => Math.min(hi, Math.max(lo, v));\nconst LOG_START = 16;\nconst ROW_H = 24;\n\nfunction hash(n: number) {\n  const x = Math.sin(n * 127.1 + 311.7) * 43758.5453;\n  return x - Math.floor(x);\n}\n\nconst DARK = {\n  dark: true,\n  window: \"#0B0C0E\",\n  raised: \"#111215\",\n  text: \"#EDEDEF\",\n  muted: \"#8F9198\",\n  faint: \"#5D5F66\",\n  rule: \"rgba(255,255,255,0.07)\",\n  warnBg: \"rgba(245,166,35,0.08)\",\n  warnText: \"#F2B455\",\n  success: \"#45D38E\",\n  amber: \"#F5A623\",\n  skeleton: \"rgba(255,255,255,0.05)\",\n  depth:\n    \"0 0 0 1px rgba(255,255,255,0.09), 0 12px 24px -12px rgba(0,0,0,0.6), 0 40px 90px -24px rgba(0,0,0,0.75)\",\n  outline: \"rgba(255,255,255,0.1)\",\n  button: \"#EDEDEF\",\n  buttonText: \"#0B0C0E\",\n};\nconst LIGHT: typeof DARK = {\n  dark: false,\n  window: \"#FFFFFF\",\n  raised: \"#F7F7F6\",\n  text: \"#18181A\",\n  muted: \"#6E6E73\",\n  faint: \"#A3A3A8\",\n  rule: \"rgba(20,20,30,0.08)\",\n  warnBg: \"#FFF6E3\",\n  warnText: \"#985200\",\n  success: \"#14925A\",\n  amber: \"#D98A0B\",\n  skeleton: \"rgba(20,20,30,0.05)\",\n  depth:\n    \"0 0 0 1px rgba(20,22,30,0.06), 0 2px 4px rgba(20,22,30,0.04), 0 40px 90px -24px rgba(20,30,80,0.3)\",\n  outline: \"rgba(0,0,0,0.1)\",\n  button: \"#18181A\",\n  buttonText: \"#FFFFFF\",\n};\ntype Palette = typeof DARK;\n\nconst ICONS: Record<string, string> = {\n  branch:\n    \"M6 3v12M18 9a3 3 0 100-6 3 3 0 000 6zM6 21a3 3 0 100-6 3 3 0 000 6zM18 9a9 9 0 01-9 9\",\n  commit: \"M12 15a3 3 0 100-6 3 3 0 000 6zM3 12h6M15 12h6\",\n  globe:\n    \"M12 21a9 9 0 100-18 9 9 0 000 18zM3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18\",\n  external:\n    \"M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 01-1 1H5a1 1 0 01-1-1V7a1 1 0 011-1h5\",\n};\n\nfunction Icon({\n  name,\n  size = 16,\n  color,\n}: {\n  name: string;\n  size?: number;\n  color: string;\n}) {\n  return (\n    <svg\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke={color}\n      strokeWidth={1.5}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      style={{ flexShrink: 0 }}\n    >\n      <path d={ICONS[name]} />\n    </svg>\n  );\n}\n\nfunction Spinner({\n  frame,\n  size,\n  track,\n  color,\n}: {\n  frame: number;\n  size: number;\n  track: string;\n  color: string;\n}) {\n  return (\n    <svg\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      style={{ transform: `rotate(${frame * 14}deg)`, flexShrink: 0 }}\n    >\n      <circle\n        cx={12}\n        cy={12}\n        r={9}\n        fill=\"none\"\n        stroke={track}\n        strokeWidth={2}\n      />\n      <path\n        d=\"M12 3a9 9 0 019 9\"\n        fill=\"none\"\n        stroke={color}\n        strokeWidth={2}\n        strokeLinecap=\"round\"\n      />\n    </svg>\n  );\n}\n\nfunction Field({\n  label,\n  children,\n  c,\n}: {\n  label: string;\n  children: React.ReactNode;\n  c: Palette;\n}) {\n  return (\n    <div\n      style={{ display: \"flex\", flexDirection: \"column\", gap: 7, minWidth: 0 }}\n    >\n      <span style={{ fontSize: 14, color: c.muted }}>{label}</span>\n      <div\n        style={{\n          display: \"flex\",\n          alignItems: \"center\",\n          gap: 8,\n          fontSize: 16,\n          color: c.text,\n          whiteSpace: \"nowrap\",\n        }}\n      >\n        {children}\n      </div>\n    </div>\n  );\n}\n\nfunction formatTime(ms: number) {\n  const d = Math.floor(ms);\n  const m = Math.floor(d / 60000) % 60;\n  const s = Math.floor(d / 1000) % 60;\n  const x = d % 1000;\n  const p = (n: number, l = 2) => String(n).padStart(l, \"0\");\n  return `${p(m)}:${p(s)}.${p(x, 3)}`;\n}\n\nexport function DeployPipeline({\n  project = \"remocn-web\",\n  deploymentId = \"7Hq2xKfaW\",\n  commitMessage = \"feat: launch video components\",\n  commitSha = \"a4f9c21\",\n  branch = \"main\",\n  domain = \"remocn-web.kitebase.app\",\n  logs = DEFAULT_LOGS,\n  buildSeconds = 21,\n  preview,\n  accent = \"#3B5BFD\",\n  speed = 1,\n  theme = \"dark\",\n  ground,\n  groundParams,\n}: DeployPipelineProps) {\n  const frame = useCurrentFrame() * speed;\n  const { width, height, fps } = useVideoConfig();\n  const tall = height > width;\n  const SW = tall ? 720 : 1280;\n  const SH = tall ? 1280 : 720;\n  const u = Math.min(width / SW, height / SH);\n  const c = theme === \"dark\" ? DARK : LIGHT;\n  const sp = (at: number, config: Partial<typeof CARD>) =>\n    spring({ frame: frame - at, fps, config });\n  const ease = (a: number, b: number, easing = ENTER) =>\n    interpolate(frame, [a, b], [0, 1], { ...CL, easing });\n\n  const WIN = tall\n    ? { x: 80, y: 290, w: 560, h: 900 }\n    : { x: 140, y: 60, w: 1000, h: 600 };\n  const PAD = tall ? 22 : 26;\n  const HEAD = 58;\n  const PREV = tall\n    ? { w: WIN.w - PAD * 2, h: Math.round(((WIN.w - PAD * 2) * 9) / 16) }\n    : { w: 256, h: 144 };\n  const SUMMARY_H = tall ? PREV.h + 284 : PREV.h + 48;\n  const LOG_TOP = HEAD + SUMMARY_H;\n  const LOG_HEAD = 52;\n  const LOG_ROWS = Math.floor((WIN.h - LOG_TOP - LOG_HEAD - 12) / ROW_H);\n\n  const lines = logs.map((l) => (typeof l === \"string\" ? { text: l } : l));\n  const ats: number[] = [];\n  let at = LOG_START;\n  lines.forEach((l, i) => {\n    at += l.wait ?? (i === 0 ? 0 : 3);\n    ats.push(at);\n  });\n  const readyAt = (ats[ats.length - 1] ?? LOG_START) + 8;\n  const ready = frame >= readyAt;\n  const building = frame >= LOG_START && !ready;\n  const elapsed = interpolate(\n    frame,\n    [LOG_START, readyAt],\n    [0, buildSeconds],\n    CL,\n  );\n  const msPerFrame = (buildSeconds * 1000) / Math.max(1, readyAt - LOG_START);\n  const baseMs = (2 * 60 + 11) * 1000 + 204;\n\n  const win = sp(0, HEAVY);\n  const winFade = ease(0, 12);\n  const cam = interpolate(frame, [0, 180], [1, 1.035], {\n    ...CL,\n    easing: CAMERA,\n  });\n  const headIn = ease(4, 20);\n\n  const appear = ats.map((t) => ease(t, t + 6));\n  const total = appear.reduce((a, b) => a + b, 0);\n  const scroll = Math.max(0, total - LOG_ROWS) * ROW_H;\n\n  const previewS = sp(readyAt + 2, MORPH);\n  const previewFade = ease(readyAt + 2, readyAt + 14);\n  const skeletonOut = 1 - ease(readyAt, readyAt + 8, EXIT);\n  const visitS = sp(readyAt + 10, CARD);\n  const checkS = sp(readyAt, CHIP);\n  const statusSwap = ease(readyAt, readyAt + 8);\n  const shimmer = ((frame * 1.6) % 160) - 30;\n  const statusColor = ready ? c.success : building ? c.amber : c.faint;\n  const pulse = ready ? clamp((frame - readyAt) / 24) : (frame % 26) / 26;\n\n  const seconds = Math.floor(elapsed);\n  const statusLabel = ready ? \"Ready\" : building ? \"Building\" : \"Queued\";\n\n  const fieldsGrid = (\n    <div\n      style={{\n        flex: 1,\n        display: \"grid\",\n        gridTemplateColumns: tall ? \"1fr 1fr\" : \"1fr 0.8fr 1.1fr\",\n        rowGap: tall ? 22 : 20,\n        columnGap: 24,\n        alignContent: \"start\",\n        minWidth: 0,\n      }}\n    >\n      <Field label=\"Status\" c={c}>\n        <span\n          style={{\n            position: \"relative\",\n            width: 9,\n            height: 9,\n            display: \"inline-block\",\n          }}\n        >\n          <span\n            style={{\n              position: \"absolute\",\n              inset: 0,\n              borderRadius: 5,\n              background: statusColor,\n              opacity: (1 - pulse) * 0.35,\n              transform: `scale(${1 + pulse * 1.6})`,\n            }}\n          />\n          <span\n            style={{\n              position: \"absolute\",\n              inset: 0,\n              borderRadius: 5,\n              background: statusColor,\n              transform: `scale(${ready ? 0.6 + 0.4 * checkS : 1})`,\n            }}\n          />\n        </span>\n        <span\n          style={{\n            display: \"inline-block\",\n            opacity: ready ? statusSwap : 1,\n            transform: `translateY(${ready ? (1 - statusSwap) * 8 : 0}px)`,\n          }}\n        >\n          {statusLabel}\n        </span>\n      </Field>\n      <Field label=\"Duration\" c={c}>\n        <span style={{ fontVariantNumeric: \"tabular-nums\" }}>\n          {frame < LOG_START ? \"–\" : `${seconds}s`}\n        </span>\n      </Field>\n      {tall ? null : (\n        <Field label=\"Environment\" c={c}>\n          Production\n        </Field>\n      )}\n      <div style={{ gridColumn: tall ? \"1 / 3\" : \"1 / 3\" }}>\n        <Field label=\"Domain\" c={c}>\n          <Icon name=\"globe\" size={16} color={c.muted} />\n          <span style={{ color: ready ? c.text : c.faint }}>{domain}</span>\n          {ready ? <Icon name=\"external\" size={14} color={c.muted} /> : null}\n        </Field>\n      </div>\n      <div style={{ gridColumn: tall ? \"1 / 3\" : \"auto\" }}>\n        <Field label=\"Source\" c={c}>\n          <Icon name=\"branch\" size={15} color={c.muted} />\n          <span style={{ fontFamily: mono.fontFamily, fontSize: 15 }}>\n            {branch}\n          </span>\n          <Icon name=\"commit\" size={15} color={c.muted} />\n          <span style={{ fontFamily: mono.fontFamily, fontSize: 15 }}>\n            {commitSha}\n          </span>\n          {tall ? (\n            <span\n              style={{\n                color: c.muted,\n                overflow: \"hidden\",\n                textOverflow: \"ellipsis\",\n              }}\n            >\n              {commitMessage}\n            </span>\n          ) : null}\n        </Field>\n      </div>\n    </div>\n  );\n\n  return (\n    <AbsoluteFill\n      style={{\n        fontFamily: geist.fontFamily,\n        WebkitFontSmoothing: \"antialiased\",\n        overflow: \"hidden\",\n      }}\n    >\n      <GshGround\n        preset={ground ?? (c.dark ? \"film-blue\" : \"paper-crease\")}\n        params={groundParams}\n        timeOffset={c.dark ? 5 : 3}\n        timeScale={0.4}\n      />\n      <div\n        style={{\n          position: \"absolute\",\n          left: (width - SW * u) / 2,\n          top: (height - SH * u) / 2,\n          width: SW,\n          height: SH,\n          transform: `scale(${u})`,\n          transformOrigin: \"0 0\",\n        }}\n      >\n        {tall ? (\n          <div\n            style={{\n              position: \"absolute\",\n              left: WIN.x,\n              top: 150,\n              width: WIN.w,\n              fontSize: 52,\n              fontWeight: 300,\n              letterSpacing: \"-0.035em\",\n              lineHeight: 1.04,\n              color: c.dark ? \"#F2F4F8\" : \"#16181D\",\n              opacity: headIn,\n              transform: `translateY(${(1 - headIn) * 18}px)`,\n              fontVariantNumeric: \"tabular-nums\",\n              whiteSpace: \"nowrap\",\n            }}\n          >\n            {ready ? (\n              <span\n                style={{\n                  display: \"inline-block\",\n                  opacity: statusSwap,\n                  transform: `translateY(${(1 - statusSwap) * 14}px)`,\n                }}\n              >\n                Live in {buildSeconds}s\n              </span>\n            ) : (\n              <span>\n                Building\n                <span style={{ color: c.muted }}>\n                  {\" \"}\n                  · {frame < LOG_START ? 0 : seconds}s\n                </span>\n              </span>\n            )}\n          </div>\n        ) : null}\n        <div\n          style={{\n            position: \"absolute\",\n            left: WIN.x,\n            top: WIN.y,\n            width: WIN.w,\n            height: WIN.h,\n            borderRadius: 18,\n            overflow: \"hidden\",\n            background: c.window,\n            boxShadow: c.depth,\n            opacity: winFade,\n            transformOrigin: \"50% 50%\",\n            transform: `translateY(${(1 - win) * 60}px) scale(${(0.96 + 0.04 * win) * cam})`,\n          }}\n        >\n          <div\n            style={{\n              height: HEAD,\n              display: \"flex\",\n              alignItems: \"center\",\n              gap: 10,\n              padding: `0 ${PAD}px`,\n              boxShadow: `inset 0 -1px 0 ${c.rule}`,\n              fontSize: 15,\n              whiteSpace: \"nowrap\",\n              position: \"relative\",\n            }}\n          >\n            <div\n              style={{\n                position: \"absolute\",\n                left: 0,\n                bottom: 0,\n                height: 2,\n                width: `${(elapsed / buildSeconds) * 100}%`,\n                background: accent,\n                opacity: 1 - ease(readyAt + 2, readyAt + 12, EXIT),\n              }}\n            />\n            <span style={{ color: c.text }}>{project}</span>\n            <span style={{ color: c.faint }}>/</span>\n            {tall ? null : (\n              <>\n                <span style={{ color: c.muted }}>Deployments</span>\n                <span style={{ color: c.faint }}>/</span>\n              </>\n            )}\n            <span\n              style={{\n                color: c.muted,\n                fontFamily: mono.fontFamily,\n                fontSize: 14,\n              }}\n            >\n              {deploymentId}\n            </span>\n            <div style={{ marginLeft: \"auto\" }} />\n            {frame >= readyAt + 10 ? (\n              <div\n                style={{\n                  display: \"flex\",\n                  alignItems: \"center\",\n                  gap: 7,\n                  height: 34,\n                  padding: \"0 14px\",\n                  borderRadius: 9,\n                  background: c.button,\n                  color: c.buttonText,\n                  fontSize: 15,\n                  transformOrigin: \"100% 50%\",\n                  transform: `scale(${0.85 + 0.15 * visitS})`,\n                  opacity: clamp(visitS * 1.5),\n                }}\n              >\n                Visit\n                <Icon name=\"external\" size={14} color={c.buttonText} />\n              </div>\n            ) : null}\n          </div>\n          <div\n            style={{\n              height: SUMMARY_H,\n              boxSizing: \"border-box\",\n              padding: `24px ${PAD}px`,\n              display: \"flex\",\n              flexDirection: tall ? \"column\" : \"row\",\n              gap: tall ? 26 : 32,\n              boxShadow: `inset 0 -1px 0 ${c.rule}`,\n            }}\n          >\n            <div\n              style={{\n                position: \"relative\",\n                width: PREV.w,\n                height: PREV.h,\n                flexShrink: 0,\n                borderRadius: 10,\n                overflow: \"hidden\",\n                background: c.raised,\n              }}\n            >\n              <div\n                style={{ position: \"absolute\", inset: 0, opacity: skeletonOut }}\n              >\n                {[\n                  [0.06, 0.1, 0.14, 0.05],\n                  [0.7, 0.08, 0.22, 0.07],\n                  [0.22, 0.34, 0.56, 0.1],\n                  [0.3, 0.5, 0.4, 0.07],\n                  [0.38, 0.66, 0.24, 0.09],\n                ].map(([x, y, w, h]) => (\n                  <div\n                    key={`${x}-${y}`}\n                    style={{\n                      position: \"absolute\",\n                      left: `${x * 100}%`,\n                      top: `${y * 100}%`,\n                      width: `${w * 100}%`,\n                      height: `${h * 100}%`,\n                      borderRadius: 999,\n                      background: c.skeleton,\n                    }}\n                  />\n                ))}\n                <div\n                  style={{\n                    position: \"absolute\",\n                    inset: 0,\n                    background: `linear-gradient(100deg, transparent ${shimmer - 24}%, ${c.dark ? \"rgba(255,255,255,0.04)\" : \"rgba(255,255,255,0.7)\"} ${shimmer}%, transparent ${shimmer + 24}%)`,\n                  }}\n                />\n              </div>\n              {ready ? (\n                <div\n                  style={{\n                    position: \"absolute\",\n                    inset: 0,\n                    opacity: previewFade,\n                    transform: `scale(${1.06 - 0.06 * previewS})`,\n                    filter: `blur(${(1 - previewS) * 6}px)`,\n                  }}\n                >\n                  <Img\n                    src={preview ?? staticFile(\"hero.png\")}\n                    style={{\n                      width: \"100%\",\n                      height: \"100%\",\n                      objectFit: \"cover\",\n                      display: \"block\",\n                    }}\n                  />\n                </div>\n              ) : null}\n              <div\n                style={{\n                  position: \"absolute\",\n                  inset: 0,\n                  borderRadius: 10,\n                  boxShadow: `inset 0 0 0 1px ${c.outline}`,\n                }}\n              />\n            </div>\n            {fieldsGrid}\n          </div>\n          <div\n            style={{\n              height: LOG_HEAD,\n              display: \"flex\",\n              alignItems: \"center\",\n              gap: 10,\n              padding: `0 ${PAD}px`,\n            }}\n          >\n            <span style={{ fontSize: 16, color: c.text }}>Build logs</span>\n            <span\n              style={{\n                marginLeft: \"auto\",\n                fontSize: 15,\n                color: c.muted,\n                fontVariantNumeric: \"tabular-nums\",\n              }}\n            >\n              {frame < LOG_START ? \"\" : `${seconds}s`}\n            </span>\n            {ready ? (\n              <div\n                style={{\n                  width: 18,\n                  height: 18,\n                  borderRadius: 9,\n                  background: c.success,\n                  display: \"flex\",\n                  alignItems: \"center\",\n                  justifyContent: \"center\",\n                  transform: `scale(${checkS})`,\n                }}\n              >\n                <svg\n                  width={11}\n                  height={11}\n                  viewBox=\"0 0 24 24\"\n                  fill=\"none\"\n                  stroke={c.window}\n                  strokeWidth={3}\n                  strokeLinecap=\"round\"\n                  strokeLinejoin=\"round\"\n                >\n                  <path d=\"M5 12l5 5 9-10\" />\n                </svg>\n              </div>\n            ) : building ? (\n              <Spinner frame={frame} size={16} track={c.rule} color={c.amber} />\n            ) : null}\n          </div>\n          <div\n            style={{\n              position: \"absolute\",\n              top: LOG_TOP + LOG_HEAD,\n              left: 0,\n              right: 0,\n              bottom: 0,\n              overflow: \"hidden\",\n              fontFamily: mono.fontFamily,\n              fontSize: 14,\n              maskImage: `linear-gradient(to bottom, rgba(0,0,0,${1 - clamp(scroll / ROW_H)}) 0, #000 30px)`,\n            }}\n          >\n            <div style={{ transform: `translateY(${-scroll}px)` }}>\n              {lines.map((l, i) => {\n                const p = appear[i];\n                if (p <= 0) return null;\n                const tone = l.tone ?? \"default\";\n                const color =\n                  tone === \"warn\"\n                    ? c.warnText\n                    : tone === \"success\"\n                      ? c.success\n                      : tone === \"muted\"\n                        ? c.muted\n                        : c.text;\n                const ms =\n                  baseMs +\n                  (ats[i] - LOG_START) * msPerFrame +\n                  Math.floor(hash(i) * 90);\n                return (\n                  <div\n                    key={`${i}-${l.text}`}\n                    style={{\n                      height: ROW_H,\n                      display: \"flex\",\n                      alignItems: \"center\",\n                      padding: `0 ${PAD}px`,\n                      background: tone === \"warn\" ? c.warnBg : \"transparent\",\n                      opacity: p,\n                      transform: `translateX(${(1 - p) * -10}px)`,\n                      whiteSpace: \"pre\",\n                    }}\n                  >\n                    {tall ? null : (\n                      <span\n                        style={{ width: 104, flexShrink: 0, color: c.faint }}\n                      >\n                        {formatTime(ms)}\n                      </span>\n                    )}\n                    <span\n                      style={{\n                        color,\n                        overflow: \"hidden\",\n                        textOverflow: \"ellipsis\",\n                      }}\n                    >\n                      {l.text}\n                    </span>\n                  </div>\n                );\n              })}\n            </div>\n          </div>\n        </div>\n      </div>\n    </AbsoluteFill>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/deploy-pipeline.tsx"
    }
  ],
  "type": "registry:component"
}
