Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

Merge remote-tracking branch 'origin/main'

kashorin39f751a22a9e
diff --cc .github/workflows/ci.yml
index 00000000,f6653aea..0a02eedd
mode 000000,100644..100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@@ -1,0 -1,46 +1,46 @@@
+ name: CI
+
+ on:
+ push:
+ branches: [main]
+ # Documentation-only changes are covered by deploy-pages.yml, which builds the site and runs
+ # the same repository hygiene checks. Nothing under docs/ is in tsconfig's include or reachable
- # from the test suite, so type checking and 633 tests would prove nothing here.
++ # from the test suite, so type checking and the full test suite would prove nothing here.
+ paths-ignore:
+ - "docs/**"
+ pull_request:
+ paths-ignore:
+ - "docs/**"
+ workflow_dispatch:
+
+ concurrency:
+ group: ci-${{ github.ref }}
+ cancel-in-progress: true
+
+ jobs:
+ check:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Set up pnpm
+ uses: pnpm/action-setup@v4
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: 22
+ cache: pnpm
+
+ - name: Install dependencies
+ run: pnpm install --frozen-lockfile
+
+ - name: Type check
+ run: pnpm check
+
+ - name: Test
+ run: pnpm test
+
+ - name: Repository hygiene
+ run: pnpm test:release
diff --cc docs/guide/develop.md
index a5d62854,a5d62854..1bebf755
--- a/docs/guide/develop.md
+++ b/docs/guide/develop.md
@@@ -38,8 -38,8 +38,7 @@@ See [Testing](./testing.md) for environ
```text
narratage/
--├── packages/ 86 workspace packages
--├── spec/ 16 normative specification documents
++├── packages/ workspace packages
├── docs/ VitePress documentation site
├── examples/ runnable example sources
├── services/ Python services (whisperx, image-opencv)
diff --cc docs/zh/guide/develop.md
index af708e89,7005e4fc..2a47a7cc
--- a/docs/zh/guide/develop.md
+++ b/docs/zh/guide/develop.md
@@@ -38,8 -38,8 +38,7 @@@ pnpm test # 完整测试套
```text
narratage/
--├── packages/ 82 workspace packages
--├── spec/ 16 normative specification documents
++├── packages/ workspace packages
├── docs/ VitePress documentation site
├── examples/ runnable example sources
├── services/ Python 服务 (whisperx, image-opencv)
diff --cc packages/package-loader-node/src/lock.ts
index 174952cf,a20623dd..d550eaf5
--- a/packages/package-loader-node/src/lock.ts
+++ b/packages/package-loader-node/src/lock.ts
@@@ -200,6 -200,6 +200,7 @@@ async function packageClosureFromRoots
const ALWAYS_IGNORED_DIRECTORIES = new Set([".git", "node_modules"]);
const DEVELOPMENT_ROOT_DIRECTORIES = new Set([".cache", "coverage", "test", "tests", "__tests__"]);
++const OPERATING_SYSTEM_METADATA_FILES = new Set([".DS_Store"]);
function developmentRootFile(name: string): boolean {
return /^(?:readme|changelog|license)(?:\..*)?$/iu.test(name)
@@@ -212,6 -212,10 +213,9 @@@ async function filesUnder(root: string
if (entry.isDirectory() && ALWAYS_IGNORED_DIRECTORIES.has(entry.name)) continue;
if (cursor === root && entry.isDirectory() && DEVELOPMENT_ROOT_DIRECTORIES.has(entry.name)) continue;
if (cursor === root && entry.isFile() && developmentRootFile(entry.name)) continue;
- // A package's bytes are the same on every machine. Dotfiles are editor and operating-system
- // droppings — .DS_Store above all — so hashing them makes one developer's lock unusable
- // everywhere else, and the failure reads as an unrelated stale-lock error.
- if (entry.isFile() && entry.name.startsWith(".")) continue;
++ // Finder metadata is not part of a package. Other dotfiles remain package bytes: a package may
++ // deliberately read one, so excluding every hidden file would let behavior drift past its lock.
++ if (entry.isFile() && OPERATING_SYSTEM_METADATA_FILES.has(entry.name)) continue;
const path = join(cursor, entry.name);
if (entry.isDirectory()) values.push(...await filesUnder(root, path));
else if (entry.isFile()) values.push(path);
diff --cc packages/package-loader-node/test/loader.test.ts
index 4f3074f2,4dce8370..86bf1e08
--- a/packages/package-loader-node/test/loader.test.ts
+++ b/packages/package-loader-node/test/loader.test.ts
@@@ -454,3 -454,32 +454,40 @@@ test("a third-party Runtime Adapter sta
assert.notEqual(first, `sha256:${"7".repeat(64)}`);
assert.notEqual(first, second);
});
+
-test("a package digest ignores editor and operating-system dotfiles", async () => {
++test("a package digest ignores Finder metadata but still binds authored hidden files", async () => {
+ const root = await mkdtemp(join(tmpdir(), "svml-package-dotfile-"));
+ const packageRoot = join(root, "node_modules", "example-dotfile");
+ await mkdir(packageRoot, { recursive: true });
+ await writeFile(join(packageRoot, "package.json"), JSON.stringify({
+ name: "example-dotfile",
+ version: "1.0.0",
+ type: "module",
+ exports: "./index.mjs",
+ svml: { activation: "./index.mjs" },
+ }, null, 2), "utf8");
+ await writeFile(join(packageRoot, "index.mjs"), `export default {
+ format: "svml.node-package@1",
+ name: "example-dotfile",
+ };\n`, "utf8");
+
+ const before = await createNodePackageLock(["example-dotfile"], root);
+ // A Finder dropping is not part of the package. Hashing one made a lock written on macOS
+ // report every other machine as stale, and the failure read as an unrelated stale-lock error.
+ await writeFile(join(packageRoot, ".DS_Store"), "finder", "utf8");
+ const after = await createNodePackageLock(["example-dotfile"], root);
+
+ assert.equal(after.digest, before.digest);
+ assert.deepEqual(
+ after.artifacts.map((artifact) => artifact.digest),
+ before.artifacts.map((artifact) => artifact.digest),
+ );
++
++ await writeFile(join(packageRoot, ".runtime-config"), "behavior", "utf8");
++ const withAuthoredHiddenFile = await createNodePackageLock(["example-dotfile"], root);
++ assert.notEqual(withAuthoredHiddenFile.digest, after.digest);
++ assert.notDeepEqual(
++ withAuthoredHiddenFile.artifacts.map((artifact) => artifact.digest),
++ after.artifacts.map((artifact) => artifact.digest),
++ );
+ });