Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
fix(cli): let .hyperframesignore negation re-include hidden directories (#3859)
miga-heygen9c84277d28c3
diff --git a/packages/cli/src/utils/publishProject.test.ts b/packages/cli/src/utils/publishProject.test.tsindex c3a314821f..d03a9eb174 100644--- a/packages/cli/src/utils/publishProject.test.ts+++ b/packages/cli/src/utils/publishProject.test.ts@@ -283,6 +283,35 @@ describe("createPublishArchive", () => {}});+ it("allows .hyperframesignore to re-include a hidden directory", () => {+ const dir = makeProjectDir();+ try {+ writeFileSync(join(dir, "index.html"), "<html></html>", "utf-8");+ mkdirSync(join(dir, ".media"));+ writeFileSync(join(dir, ".media", "logo.png"), "logo", "utf-8");+ writeFileSync(join(dir, ".hyperframesignore"), "!/.media/\n!/.media/**\n", "utf-8");++ const zip = new AdmZip(createPublishArchive(dir).buffer);+ expect(zip.getEntries().map((entry) => entry.entryName)).toContain(".media/logo.png");+ } finally {+ rmSync(dir, { recursive: true, force: true });+ }+ });++ it("still excludes an unmatched hidden directory by default", () => {+ const dir = makeProjectDir();+ try {+ writeFileSync(join(dir, "index.html"), "<html></html>", "utf-8");+ mkdirSync(join(dir, ".cache"));+ writeFileSync(join(dir, ".cache", "entry.bin"), "cache", "utf-8");++ const zip = new AdmZip(createPublishArchive(dir).buffer);+ expect(zip.getEntries().map((entry) => entry.entryName)).not.toContain(".cache/entry.bin");+ } finally {+ rmSync(dir, { recursive: true, force: true });+ }+ });+it("fails clearly when .hyperframesignore excludes index.html", () => {const dir = makeProjectDir();try {diff --git a/packages/cli/src/utils/publishProject.ts b/packages/cli/src/utils/publishProject.tsindex 7d271a9340..356b2a02df 100644--- a/packages/cli/src/utils/publishProject.ts+++ b/packages/cli/src/utils/publishProject.ts@@ -11,7 +11,11 @@ import { writeProjectLink } from "./projectLink.js";const IGNORED_DIRS = new Set([".git", "node_modules", "dist", ".next", "coverage"]);const IGNORED_FILES = new Set([".DS_Store", "Thumbs.db"]);const HYPERFRAMES_IGNORE_FILE = ".hyperframesignore";-const DEFAULT_PROJECT_IGNORE = ["/renders/", "/snapshots/"];+// Unanchored (no leading/mid slash) so it matches a dot-prefixed name at any+// depth, same as the segments it replaces below — but as a matcher pattern+// instead of a hard skip, a project's own `.hyperframesignore` negation can+// still override it.+const DEFAULT_PROJECT_IGNORE = ["/renders/", "/snapshots/", ".*"];const PUBLISH_CONTENT_TYPE = "application/zip";const PUBLISH_METADATA_TIMEOUT_MS = 30_000;const PUBLISH_UPLOAD_MIN_TIMEOUT_MS = 120_000;@@ -252,8 +256,12 @@ export function uploadTimeoutMs(byteLength: number): number {);}+// Absolute, non-negotiable exclusions only — anything a `.hyperframesignore`+// negation rule should be able to override (including dot-prefixed paths;+// see DEFAULT_PROJECT_IGNORE) must go through the ignore matcher instead of+// short-circuiting here.function shouldIgnoreSegment(segment: string): boolean {- return segment.startsWith(".") || IGNORED_DIRS.has(segment) || IGNORED_FILES.has(segment);+ return IGNORED_DIRS.has(segment) || IGNORED_FILES.has(segment);}function createProjectIgnore(rootDir: string): Ignore {