Fix two failing CI checks: Protected Paths script crash + build errors #4693
12 changed files+37−30
Added.github/ALLOW_PROTECTED_PATHS+3−0View fileUnifiedSplit
@@ -0,0 +1,3 @@
1Bug fix: correcting TypeScript parse errors in src/app/_client/D8TV.tsx
2that were introduced by a malformed function body. This override is required
3to allow the fix to land on main.
Modified.github/scripts/protected-paths.ps1+3−3View fileUnifiedSplit
@@ -1,6 +1,3 @@
1Set-StrictMode -Version Latest
2$ErrorActionPreference="Stop"
3
41param(
52 [string]$BaseRef = "origin/main",
63 [string]$HeadRef = "HEAD",
@@ -9,6 +6,9 @@ param(
96 [string]$PrLabels = ""
107)
118
9Set-StrictMode -Version Latest
10$ErrorActionPreference = "Stop"
11
1212function Fail([string]$m){ Write-Host $m -ForegroundColor Red; exit 1 }
1313function Info([string]$m){ Write-Host $m -ForegroundColor Cyan }
1414
Modifiedpackage-lock.json+0−11View fileUnifiedSplit
@@ -1460,7 +1460,6 @@
14601460 "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
14611461 "dev": true,
14621462 "license": "MIT",
1463 "peer": true,
14641463 "bin": {
14651464 "acorn": "bin/acorn"
14661465 },
@@ -1895,7 +1894,6 @@
18951894 }
18961895 ],
18971896 "license": "MIT",
1898 "peer": true,
18991897 "dependencies": {
19001898 "baseline-browser-mapping": "^2.9.0",
19011899 "caniuse-lite": "^1.0.30001759",
@@ -2535,7 +2533,6 @@
25352533 "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.",
25362534 "dev": true,
25372535 "license": "MIT",
2538 "peer": true,
25392536 "dependencies": {
25402537 "@eslint-community/eslint-utils": "^4.2.0",
25412538 "@eslint-community/regexpp": "^4.6.1",
@@ -2704,7 +2701,6 @@
27042701 "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==",
27052702 "dev": true,
27062703 "license": "MIT",
2707 "peer": true,
27082704 "dependencies": {
27092705 "@rtsao/scc": "^1.1.0",
27102706 "array-includes": "^3.1.9",
@@ -4745,7 +4741,6 @@
47454741 "integrity": "sha512-0f8aRfBVL+mpzfBjYfQuLWh2WyAwtJXCRfkPF4UJ5qd2YwrHczsrSzXU4tRMV0OAxR8ZJZWPFn6uhSC56UTsLA==",
47464742 "deprecated": "This version has a security vulnerability. Please upgrade to a patched version. See https://nextjs.org/blog/security-update-2025-12-11 for more details.",
47474743 "license": "MIT",
4748 "peer": true,
47494744 "dependencies": {
47504745 "@next/env": "14.2.5",
47514746 "@swc/helpers": "0.5.5",
@@ -5247,7 +5242,6 @@
52475242 }
52485243 ],
52495244 "license": "MIT",
5250 "peer": true,
52515245 "dependencies": {
52525246 "nanoid": "^3.3.11",
52535247 "picocolors": "^1.1.1",
@@ -5337,7 +5331,6 @@
53375331 "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
53385332 "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
53395333 "license": "MIT",
5340 "peer": true,
53415334 "dependencies": {
53425335 "loose-envify": "^1.1.0"
53435336 },
@@ -5350,7 +5343,6 @@
53505343 "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
53515344 "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==",
53525345 "license": "MIT",
5353 "peer": true,
53545346 "dependencies": {
53555347 "loose-envify": "^1.1.0",
53565348 "scheduler": "^0.23.0"
@@ -6253,7 +6245,6 @@
62536245 "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
62546246 "dev": true,
62556247 "license": "MIT",
6256 "peer": true,
62576248 "engines": {
62586249 "node": ">=12"
62596250 },
@@ -6422,7 +6413,6 @@
64226413 "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
64236414 "dev": true,
64246415 "license": "Apache-2.0",
6425 "peer": true,
64266416 "bin": {
64276417 "tsc": "bin/tsc",
64286418 "tsserver": "bin/tsserver"
@@ -6822,7 +6812,6 @@
68226812 "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
68236813 "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
68246814 "license": "MIT",
6825 "peer": true,
68266815 "funding": {
68276816 "url": "https://github.com/sponsors/colinhacks"
68286817 }
Modifiedsrc/app/(marketing)/_d8/D8Bits.tsx+21−1View fileUnifiedSplit
@@ -1,6 +1,11 @@
11import React from "react";
22
3export function D8Card(props: { children?: React.ReactNode }) {
3export function D8Card(props: {
4 children?: React.ReactNode;
5 title?: string;
6 body?: string;
7 kicker?: string;
8}) {
49 return (
510 <div
611 style={{
@@ -11,6 +16,21 @@ export function D8Card(props: { children?: React.ReactNode }) {
1116 boxShadow: "0 18px 55px rgba(0,0,0,0.35)",
1217 }}
1318 >
19 {props.kicker && (
20 <div style={{ fontSize: 11, fontWeight: 800, letterSpacing: "0.12em", textTransform: "uppercase", color: "rgba(168,85,247,0.70)", marginBottom: 6 }}>
21 {props.kicker}
22 </div>
23 )}
24 {props.title && (
25 <div style={{ fontSize: 15, fontWeight: 800, color: "rgba(237,234,247,0.95)", marginBottom: 4 }}>
26 {props.title}
27 </div>
28 )}
29 {props.body && (
30 <div style={{ fontSize: 13, lineHeight: 1.55, color: "rgba(237,234,247,0.68)" }}>
31 {props.body}
32 </div>
33 )}
1434 {props.children}
1535 </div>
1636 );
Modifiedsrc/app/_client/D8TV.tsx+0−3View fileUnifiedSplit
@@ -12,9 +12,6 @@ export type D8SectionProps = {
1212};
1313
1414export function D8Section(props: D8SectionProps) {
15 tone?: string;
16 lead?: string;
17 eyebrow?: string;
1815 const { title, subtitle, children, id } = props;
1916
2017 // Keep server-safe: no "use client", no browser-only APIs.
Modifiedsrc/app/admin/marketing-queue/page.tsx+1−1View fileUnifiedSplit
@@ -128,7 +128,7 @@ export default function Page() {
128128
129129 const [scheduleLocal, setScheduleLocal] = useState(""); // datetime-local
130130
131 const headers = useMemo(() => (token ? { "x-admin-token": token } : {}), [token]);
131 const headers = useMemo<Record<string, string>>(() => token ? { "x-admin-token": token } : {} as Record<string, string>, [token]);
132132
133133 async function refresh() {
134134 setErr(null);
Modifiedsrc/app/api/__probe__/route.ts+1−1View fileUnifiedSplit
@@ -4,7 +4,7 @@ export const runtime = "nodejs";
44export const dynamic = "force-dynamic";
55
66function safeEnv(name: string): string | null {
7 try: any {
7 try {
88 // @ts-ignore
99 const v = process?.env?.[name];
1010 return typeof v === "string" && v.length ? v : null;
Modifiedsrc/app/page.tsx+0−5View fileUnifiedSplit
@@ -1,8 +1,3 @@
1// === D8_AUTOREPAIR_DEMO_START ===
2// Intentionally missing import to demonstrate Auto Repair fixing a build.
3// This produces a deterministic "Module not found" error with zero UI impact.
4import AutoRepairDemoWidget from "./_client/AutoRepairDemoWidget";
5// === D8_AUTOREPAIR_DEMO_END ===
61export const dynamic = "force-dynamic";
72export const revalidate = 0;
83
Modifiedsrc/app/video/_client/VideoStudioClient.tsx+3−2View fileUnifiedSplit
@@ -153,6 +153,7 @@ export default function VideoStudioClient() {
153153 const canvas = canvasRef.current;
154154 const ctx = canvas.getContext("2d");
155155 if (!ctx) return;
156 const ctx2d = ctx;
156157
157158 stopAnimation();
158159
@@ -178,7 +179,7 @@ export default function VideoStudioClient() {
178179 }
179180 if (idx >= durations.length) {
180181 setActiveIndex(durations.length - 1);
181 drawFrame(ctx, w, h, shots[durations.length - 1], 1);
182 drawFrame(ctx2d, w, h, shots[durations.length - 1], 1);
182183 stopAnimation();
183184 if (previewOnly) setStatus("ready");
184185 return;
@@ -186,7 +187,7 @@ export default function VideoStudioClient() {
186187 setActiveIndex(idx);
187188 const local = elapsed - acc;
188189 const p = Math.max(0, Math.min(1, local / durations[idx]));
189 drawFrame(ctx, w, h, shots[idx], p);
190 drawFrame(ctx2d, w, h, shots[idx], p);
190191 rafRef.current = requestAnimationFrame(tick);
191192 }
192193
Modifiedsrc/lib/d8kv.ts+4−1View fileUnifiedSplit
@@ -50,4 +50,7 @@ export function d8Key_bundleRun(projectId: string, runId: string) {
5050}
5151export function d8Key_patchLatest(projectId: string) {
5252 return `agentPatch:project:${projectId}:latest`;
53}
\ No newline at end of file
53}
54export function projectVideoKey(projectId: string) {
55 return `project:${projectId}:video:latest`;
56}
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts