Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

Separate main installer and release changes from rename and policy PRs

bone3deep1962-collab06d2ed478a0e
diff --git a/AGENTS.md b/AGENTS.md
index a488d30c..a3b7d5dd 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -53,6 +53,6 @@ Phase one exposes eleven motion_ Tools (nine project tools plus catalog fetch an
## Candidate and publication controls
-Follow [the release workflow manual](docs/release-workflows.md): separate manual candidate-build and npm-publication entries, plus snapshot-only recovery. Select `main` in `nexu-io/openmotion` for all new candidate, publication and recovery entries. Select `test` (default, DEV templates) or `stable` (prod templates). Blank test versions use short workflow-counter `test.N` numbering; stable requires an explicit new `MAJOR.MINOR.PATCH`. Keep full run/source identities in the records. Use candidate-install.md for local testing and keep results private. The publication operator enters the exact version and starts the manual workflow; no acceptance checkbox or independent approval environment is enabled. Public candidates must use an exact reviewed source SHA integrated into `main`. Scan tracked source plus the outer npm tgz and inner application; preserve the positive distribution list and licenses. Keep candidate, native registry installation, real Agent creation and human acceptance evidence separate.
+Follow [the release workflow manual](docs/release-workflows.md): separate manual candidate-build and npm-publication entries, plus snapshot-only recovery. Select `feature/motion` for all entries; `main` only registers them and is rejected as an execution ref. Select `test` (default, DEV templates) or `stable` (prod templates). Blank test versions use short workflow-counter `test.N` numbering; stable requires an explicit new `MAJOR.MINOR.PATCH`. Keep full run/source identities in the records. Use candidate-install.md for local testing and keep results private. The publication operator enters the exact version and starts the manual workflow; no acceptance checkbox or independent approval environment is enabled. Public candidates must use an exact reviewed source SHA integrated into `feature/motion`. Scan tracked source plus the outer npm tgz and inner application; preserve the positive distribution list and licenses. Keep candidate, native registry installation, real Agent creation and human acceptance evidence separate.
-Publication uses the accepted candidate bytes, never a rebuild. Test publishes under `candidate`, promotes `test` after registry propagation, archives and updates the DEV guide, then runs non-blocking Mac/Windows cold installs. Stable publishes publicly under `stage`, requires both exact prod cold installs to pass, then promotes `latest`, archives and updates the stable guide last; it preserves `test`. A stage tag does not make the package private. The existing `motion-publish-test.yml` filename remains the npm Trusted Publisher identity for both channels. Only separately authorized manual publication/recovery may receive npm OIDC or R2 credentials; consumer jobs receive neither. Archive-only work must not publish npm, move tags or access default entries. The read-only Motion installation check can recheck an exact public test or stable version independently. Never overwrite published versions, put private template payloads/internal acceptance material into public artifacts, or infer merge/publication authorization from green CI. Real prod template, Agent and audiovisual acceptance remain release responsibilities; hosted installation checks do not establish them. Skills marketplace publication and npm trusted-publisher configuration remain separate operations.
+Publication uses the accepted candidate bytes, never a rebuild. Test publishes under `candidate`, promotes `test` after registry propagation, archives and updates the DEV guide, then runs non-blocking Mac/Windows cold installs. Stable publishes publicly under `stage`, requires both exact prod cold installs to pass, then promotes `latest`, archives and updates the stable guide last; it preserves `test`. A stage tag does not make the package private. The existing `motion-publish-test.yml` filename remains the npm Trusted Publisher identity for both channels. Only separately authorized manual publication/recovery may receive npm OIDC or R2 credentials; consumer jobs receive neither. Archive-only work must not publish npm, move tags or access default entries. The read-only Motion installation check can recheck an exact public test or stable version independently. Never overwrite published versions, put private template payloads/internal acceptance material into public artifacts, or infer merge/publication authorization from green CI. Real prod template, Agent and audiovisual acceptance remain release responsibilities; hosted installation checks do not establish them. Skills marketplace publication, main registration, npm trust, main cutover and repository rename remain separate operations.
diff --git a/CLAUDE.md b/CLAUDE.md
index af14c72e..8d2c93ac 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -4,9 +4,9 @@ Read and follow [AGENTS.md](AGENTS.md) before working in this repository. It is
## Candidate and publication controls
-Follow [the release workflow manual](docs/release-workflows.md): separate manual candidate-build and npm-publication entries, plus snapshot-only recovery. Select `main` in `nexu-io/openmotion` for all new candidate, publication and recovery entries. Select `test` (default, DEV templates) or `stable` (prod templates). Blank test versions use short workflow-counter `test.N` numbering; stable requires an explicit new `MAJOR.MINOR.PATCH`. Keep full run/source identities in the records. Use candidate-install.md for local testing and keep results private. The publication operator enters the exact version and starts the manual workflow; no acceptance checkbox or independent approval environment is enabled. Public candidates must use an exact reviewed source SHA integrated into `main`. Scan tracked source plus the outer npm tgz and inner application; preserve the positive distribution list and licenses. Keep candidate, native registry installation, real Agent creation and human acceptance evidence separate.
+Follow [the release workflow manual](docs/release-workflows.md): separate manual candidate-build and npm-publication entries, plus snapshot-only recovery. Select `feature/motion` for all entries; `main` only registers them and is rejected as an execution ref. Select `test` (default, DEV templates) or `stable` (prod templates). Blank test versions use short workflow-counter `test.N` numbering; stable requires an explicit new `MAJOR.MINOR.PATCH`. Keep full run/source identities in the records. Use candidate-install.md for local testing and keep results private. The publication operator enters the exact version and starts the manual workflow; no acceptance checkbox or independent approval environment is enabled. Public candidates must use an exact reviewed source SHA integrated into `feature/motion`. Scan tracked source plus the outer npm tgz and inner application; preserve the positive distribution list and licenses. Keep candidate, native registry installation, real Agent creation and human acceptance evidence separate.
-Publication uses the accepted candidate bytes, never a rebuild. Test publishes under `candidate`, promotes `test` after registry propagation, archives and updates the DEV guide, then runs non-blocking Mac/Windows cold installs. Stable publishes publicly under `stage`, requires both exact prod cold installs to pass, then promotes `latest`, archives and updates the stable guide last; it preserves `test`. A stage tag does not make the package private. The existing `motion-publish-test.yml` filename remains the npm Trusted Publisher identity for both channels. Only separately authorized manual publication/recovery may receive npm OIDC or R2 credentials; consumer jobs receive neither. Archive-only work must not publish npm, move tags or access default entries. The read-only Motion installation check can recheck an exact public test or stable version independently. Never overwrite published versions, put private template payloads/internal acceptance material into public artifacts, or infer merge/publication authorization from green CI. Real prod template, Agent and audiovisual acceptance remain release responsibilities; hosted installation checks do not establish them. Skills marketplace publication and npm trusted-publisher configuration remain separate operations.
+Publication uses the accepted candidate bytes, never a rebuild. Test publishes under `candidate`, promotes `test` after registry propagation, archives and updates the DEV guide, then runs non-blocking Mac/Windows cold installs. Stable publishes publicly under `stage`, requires both exact prod cold installs to pass, then promotes `latest`, archives and updates the stable guide last; it preserves `test`. A stage tag does not make the package private. The existing `motion-publish-test.yml` filename remains the npm Trusted Publisher identity for both channels. Only separately authorized manual publication/recovery may receive npm OIDC or R2 credentials; consumer jobs receive neither. Archive-only work must not publish npm, move tags or access default entries. The read-only Motion installation check can recheck an exact public test or stable version independently. Never overwrite published versions, put private template payloads/internal acceptance material into public artifacts, or infer merge/publication authorization from green CI. Real prod template, Agent and audiovisual acceptance remain release responsibilities; hosted installation checks do not establish them. Skills marketplace publication, main registration, npm trust, main cutover and repository rename remain separate operations.
## Product documentation
diff --git a/README.md b/README.md
index a9d80a6b..d4778f1d 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@
</p>
<p align="center">
- <a href="https://github.com/nexu-io/openmotion"><img src="docs/readme/badges/stars.svg" alt="GitHub Stars · 9.5k (2026-11-09)"></a>
+ <a href="https://github.com/nexu-io/html-anything"><img src="docs/readme/badges/stars.svg" alt="GitHub Stars · 9.5k (2026-11-09)"></a>
<a href="package.json"><img src="docs/readme/badges/node.svg" alt="Node.js 22.18+"></a>
<a href="LICENSE"><img src="docs/readme/badges/license.svg" alt="Apache 2.0 license"></a>
<a href="https://github.com/nexu-io/open-design"><img src="docs/readme/badges/built-by-opendesign.svg" alt="Built by OpenDesign"></a>
@@ -561,7 +561,7 @@ If MCP tools are missing or fail to connect, use the installed [connection diagn
Use Git, npm and **Node.js 26.11.1**. Source-based preview and export also need Chrome/Chromium and FFmpeg/FFprobe. [Runtime setup](docs/usage.md)
```sh
-git clone --branch main https://github.com/nexu-io/openmotion.git openmotion
+git clone --branch feature/motion https://github.com/nexu-io/html-anything.git openmotion
cd openmotion
npm ci
npm run build:studio
@@ -798,7 +798,7 @@ Dependency pins live in [package.json](package.json), [package-lock.json](packag
| **Agents and developer tools** | Improve a host adapter, Skill, resource guide or project-tool workflow | [Agent adapters](docs/agent-adapters.md) · [MCP contract](docs/mcp-phase1-tools.md) |
| **Motion and creative coding** | Share a component, native template or Motion.md package with an actual remix | [Components](library/components/README.md) · [Entry checklist](library/ENTRY_TEMPLATE.md) |
| **Video and rendering** | Improve export reliability, media handling or reproducible validation | [Engine notes](docs/hyperframes.md) · [Export verifier](scripts/verify-export.ts) |
-| **Social publishing** | Help design the Coming connector layer: account access, release review, scheduling and version mapping | [Publishing direction](docs/product/studio-vision.md) · [Discuss a proposal](https://github.com/nexu-io/openmotion/issues) |
+| **Social publishing** | Help design the Coming connector layer: account access, release review, scheduling and version mapping | [Publishing direction](docs/product/studio-vision.md) · [Discuss a proposal](https://github.com/nexu-io/html-anything/issues) |
Start with the [local setup](#quick-start), choose one layer, and follow [CONTRIBUTING.md](CONTRIBUTING.md) and [AGENTS.md](AGENTS.md). Keep user projects and credentials outside the checkout and preserve dependency pins and upstream licenses.
@@ -849,15 +849,15 @@ Share a remake, a reusable template or a Motion.md that captures the rhythm of a
| **Brand Kit content for Motion.md** | Identity, accurate product facts and approved assets within the creative specification |
| **Agent support or editor improvements** | A focused change with reproducible validation |
-[Library entry checklist](library/ENTRY_TEMPLATE.md) · [Contribute](CONTRIBUTING.md) · [Report an issue](https://github.com/nexu-io/openmotion/issues) · [Contributors](https://github.com/nexu-io/openmotion/graphs/contributors) · [Media kit](docs/media-kit.md)
+[Library entry checklist](library/ENTRY_TEMPLATE.md) · [Contribute](CONTRIBUTING.md) · [Report an issue](https://github.com/nexu-io/html-anything/issues) · [Contributors](https://github.com/nexu-io/html-anything/graphs/contributors) · [Media kit](docs/media-kit.md)
The dedicated OpenMotion site is coming to `open-design.ai/openmotion`.
[Motion showcase](https://open-design.ai/motion/?utm_source=github&utm_medium=referral&utm_campaign=openmotion&utm_content=readme_en) · [OpenDesign Go](https://go.open-design.ai/?utm_source=github&utm_medium=referral&utm_campaign=openmotion&utm_content=readme_en) · [Discord](https://discord.gg/mHAjSMV6gz) · [X @OpenDesignDevs](https://x.com/OpenDesignDevs) · [X @OpenDesignHQ](https://x.com/OpenDesignHQ) · [YouTube](https://www.youtube.com/channel/UChtshixMhvtgBWzoD9R_Qfg)
-[**Star OpenMotion on GitHub**](https://github.com/nexu-io/openmotion)
+[**Star OpenMotion on GitHub**](https://github.com/nexu-io/html-anything)
-[![Stay tuned with us · Star OpenMotion](docs/readme/community-star.svg)](https://github.com/nexu-io/openmotion)
+[![Stay tuned with us · Star OpenMotion](docs/readme/community-star.svg)](https://github.com/nexu-io/html-anything)
<a id="acknowledgements"></a>
@@ -882,4 +882,4 @@ OpenMotion is licensed under [Apache-2.0](LICENSE). Third-party code, templates,
[Asset sources](docs/readme/ASSETS.md) · [Additional showcase sources](docs/readme/brand-showcase/README.md) · [Font notices](web/design-system/fonts/NOTICES.txt) · [Studio license](studio/LICENSE)
-The former HTML Anything application is preserved on the [`legacy` branch](https://github.com/nexu-io/openmotion/tree/legacy). See the [repository migration guide](docs/repository-migration.md) for the active branch and distribution boundaries.
+The former HTML Anything application is preserved on the [`legacy` branch](https://github.com/nexu-io/html-anything/tree/legacy). See the [repository migration guide](docs/repository-migration.md) for the active branch and distribution boundaries.
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 1a15531c..fe35aca2 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -7,7 +7,7 @@
</p>
<p align="center">
- <a href="https://github.com/nexu-io/openmotion"><img src="docs/readme/badges/stars.zh-CN.svg" alt="GitHub 星标 · 9.5k(2026-11-09)"></a>
+ <a href="https://github.com/nexu-io/html-anything"><img src="docs/readme/badges/stars.zh-CN.svg" alt="GitHub 星标 · 9.5k(2026-11-09)"></a>
<a href="package.json"><img src="docs/readme/badges/node.svg" alt="Node.js 22.18+"></a>
<a href="LICENSE"><img src="docs/readme/badges/license.zh-CN.svg" alt="Apache 2.0 许可证"></a>
<a href="https://github.com/nexu-io/open-design"><img src="docs/readme/badges/built-by-opendesign.zh-CN.svg" alt="OpenDesign 出品"></a>
@@ -561,7 +561,7 @@ OpenMotion 另附三个可编辑工程。在 Studio 的 **Templates → Ready to
准备 Git、npm 和 **Node.js 26.11.1**。从源码预览和导出还需要 Chrome/Chromium 和 FFmpeg/FFprobe。[运行环境配置](docs/usage.md)
```sh
-git clone --branch main https://github.com/nexu-io/openmotion.git openmotion
+git clone --branch feature/motion https://github.com/nexu-io/html-anything.git openmotion
cd openmotion
npm ci
npm run build:studio
@@ -789,7 +789,7 @@ BYOA 让 Agent 留在已有客户端,BYOK 连接受支持的模型账号。Stu
| **Agent 与开发工具** | 改进宿主适配器、Skill、资源指引或工程工具流程 | [Agent 适配器](docs/agent-adapters.md) · [MCP 契约](docs/mcp-phase1-tools.md) |
| **动效与创意编程** | 分享组件、原生模板或带真实改编的 Motion.md 包 | [组件](library/components/README.md) · [条目清单](library/ENTRY_TEMPLATE.md) |
| **视频与渲染** | 改进导出可靠性、媒体处理或可复现验证 | [引擎说明](docs/hyperframes.md) · [导出校验器](scripts/verify-export.ts) |
-| **社交发布** | 设计规划中的连接器层:账号访问、发布审阅、排期和版本映射 | [发布方向](docs/product/studio-vision.md) · [讨论提案](https://github.com/nexu-io/openmotion/issues) |
+| **社交发布** | 设计规划中的连接器层:账号访问、发布审阅、排期和版本映射 | [发布方向](docs/product/studio-vision.md) · [讨论提案](https://github.com/nexu-io/html-anything/issues) |
从[本地安装](#quick-start)开始,选择一层,遵循 [CONTRIBUTING.md](CONTRIBUTING.md) 和 [AGENTS.md](AGENTS.md)。工程与凭据放在 checkout 外,保留依赖锁定与上游许可。
@@ -842,15 +842,15 @@ BYOA 让 Agent 留在已有客户端,BYOK 连接受支持的模型账号。Stu
| **Brandkit** | 品牌身份、准确产品事实和可分享素材 |
| **Agent 支持或编辑器改进** | 范围聚焦且可复现验证的变更 |
-[资源提交清单](library/ENTRY_TEMPLATE.md) · [参与贡献](CONTRIBUTING.md) · [反馈问题](https://github.com/nexu-io/openmotion/issues) · [贡献者](https://github.com/nexu-io/openmotion/graphs/contributors) · [媒体资料](docs/media-kit.md)
+[资源提交清单](library/ENTRY_TEMPLATE.md) · [参与贡献](CONTRIBUTING.md) · [反馈问题](https://github.com/nexu-io/html-anything/issues) · [贡献者](https://github.com/nexu-io/html-anything/graphs/contributors) · [媒体资料](docs/media-kit.md)
OpenMotion 独立官网将上线于 `open-design.ai/openmotion`。
[OpenDesign 动效展示](https://open-design.ai/motion/?utm_source=github&utm_medium=referral&utm_campaign=openmotion&utm_content=readme_zh) · [OpenDesign Go](https://go.open-design.ai/?utm_source=github&utm_medium=referral&utm_campaign=openmotion&utm_content=readme_zh) · [Discord](https://discord.gg/mHAjSMV6gz) · [X @OpenDesignDevs](https://x.com/OpenDesignDevs) · [X @OpenDesignHQ](https://x.com/OpenDesignHQ) · [YouTube](https://www.youtube.com/channel/UChtshixMhvtgBWzoD9R_Qfg)
-[**在 GitHub 上给 OpenMotion 点个 Star**](https://github.com/nexu-io/openmotion)
+[**在 GitHub 上给 OpenMotion 点个 Star**](https://github.com/nexu-io/html-anything)
-[![关注 OpenMotion · 在 GitHub 上加星](docs/readme/community-star.zh-CN.svg)](https://github.com/nexu-io/openmotion)
+[![关注 OpenMotion · 在 GitHub 上加星](docs/readme/community-star.zh-CN.svg)](https://github.com/nexu-io/html-anything)
<a id="acknowledgements"></a>
@@ -875,4 +875,4 @@ OpenMotion 采用 [Apache-2.0](LICENSE)许可。第三方代码、模板、媒
[素材来源](docs/readme/ASSETS.md) · [其他展示素材来源](docs/readme/brand-showcase/README.md) · [字体声明](web/design-system/fonts/NOTICES.txt) · [Studio 许可证](studio/LICENSE)
-原 HTML Anything 应用保留在 [`legacy` 分支](https://github.com/nexu-io/openmotion/tree/legacy)。当前分支与分发边界参见[仓库迁移指南](docs/repository-migration.md) 。
+原 HTML Anything 应用保留在 [`legacy` 分支](https://github.com/nexu-io/html-anything/tree/legacy)。当前分支与分发边界参见[仓库迁移指南](docs/repository-migration.md) 。
diff --git a/docs/README.ja.md b/docs/README.ja.md
index 0171210b..9d821c44 100644
--- a/docs/README.ja.md
+++ b/docs/README.ja.md
@@ -7,7 +7,7 @@
</p>
<p align="center">
- <a href="https://github.com/nexu-io/openmotion"><img src="readme/badges/stars.ja.svg" alt="GitHub スター · 9.5k(2026-11-09)"></a>
+ <a href="https://github.com/nexu-io/html-anything"><img src="readme/badges/stars.ja.svg" alt="GitHub スター · 9.5k(2026-11-09)"></a>
<a href="../package.json"><img src="readme/badges/node.svg" alt="Node.js 22.18+"></a>
<a href="../LICENSE"><img src="readme/badges/license.ja.svg" alt="Apache 2.0 ライセンス"></a>
<a href="https://github.com/nexu-io/open-design"><img src="readme/badges/built-by-opendesign.ja.svg" alt="開発元 OpenDesign"></a>
@@ -561,7 +561,7 @@ Brand Kit 欄にはロゴ、配色、書体、文体、確認済みの製品情
Git、npm、**Node.js 26.11.1** を用意してください。ソースからのプレビューと書き出しには Chrome または Chromium と、FFmpeg・FFprobe も必要です。[実行環境の設定](usage.md)
```sh
-git clone --branch main https://github.com/nexu-io/openmotion.git openmotion
+git clone --branch feature/motion https://github.com/nexu-io/html-anything.git openmotion
cd openmotion
npm ci
npm run build:studio
@@ -789,7 +789,7 @@ BYOA は既存クライアントを使い、BYOK は対応するモデルアカ
| **エージェントと開発ツール** | ホストアダプター、Skill、リソースガイド、プロジェクト操作の改善 | [エージェントアダプター](agent-adapters.md) · [MCP 契約](mcp-phase1-tools.md) |
| **動きとクリエイティブコード** | 実際の改編を添えた部品、ネイティブテンプレート、Motion.md パッケージ | [部品](../library/components/README.md) · [登録チェックリスト](../library/ENTRY_TEMPLATE.md) |
| **動画とレンダリング** | 出力の信頼性、メディア処理、再現可能な検証の改善 | [エンジンの説明](hyperframes.md) · [出力検証器](../scripts/verify-export.ts) |
-| **SNS 公開** | 計画中の接続層を設計:アカウント利用、公開確認、予約、版の対応付け | [公開の方向性](product/studio-vision.md) · [提案を議論する](https://github.com/nexu-io/openmotion/issues) |
+| **SNS 公開** | 計画中の接続層を設計:アカウント利用、公開確認、予約、版の対応付け | [公開の方向性](product/studio-vision.md) · [提案を議論する](https://github.com/nexu-io/html-anything/issues) |
[ローカル設定](#quick-start)から始め、担当する層を選び、[CONTRIBUTING.md](../CONTRIBUTING.md) と [AGENTS.md](../AGENTS.md)に従ってください。プロジェクトと認証情報はチェックアウト外に置き、固定バージョンと上流ライセンスを維持します。
@@ -842,15 +842,15 @@ BYOA は既存クライアントを使い、BYOK は対応するモデルアカ
| **Brandkit** | ブランド、正確な製品情報、共有できる素材 |
| **エージェント対応や編集機能の改善** | 焦点を絞った変更と再現可能な検証 |
-[リソース提出時のチェックリスト](../library/ENTRY_TEMPLATE.md) · [貢献ガイド](../CONTRIBUTING.md) · [問題を報告](https://github.com/nexu-io/openmotion/issues) · [コントリビューター](https://github.com/nexu-io/openmotion/graphs/contributors) · [メディア向け資料](media-kit.md)
+[リソース提出時のチェックリスト](../library/ENTRY_TEMPLATE.md) · [貢献ガイド](../CONTRIBUTING.md) · [問題を報告](https://github.com/nexu-io/html-anything/issues) · [コントリビューター](https://github.com/nexu-io/html-anything/graphs/contributors) · [メディア向け資料](media-kit.md)
OpenMotion の専用サイトは `open-design.ai/openmotion` に開設予定です。
[OpenDesign の動画ギャラリー](https://open-design.ai/motion/?utm_source=github&utm_medium=referral&utm_campaign=openmotion&utm_content=readme_ja) · [OpenDesign Go](https://go.open-design.ai/?utm_source=github&utm_medium=referral&utm_campaign=openmotion&utm_content=readme_ja) · [Discord](https://discord.gg/mHAjSMV6gz) · [X @OpenDesignDevs](https://x.com/OpenDesignDevs) · [X @OpenDesignHQ](https://x.com/OpenDesignHQ) · [YouTube](https://www.youtube.com/channel/UChtshixMhvtgBWzoD9R_Qfg)
-[**GitHub で OpenMotion にスターを付ける**](https://github.com/nexu-io/openmotion)
+[**GitHub で OpenMotion にスターを付ける**](https://github.com/nexu-io/html-anything)
-[![OpenMotion の更新をフォローするには GitHub でスターを](readme/community-star.ja.svg)](https://github.com/nexu-io/openmotion)
+[![OpenMotion の更新をフォローするには GitHub でスターを](readme/community-star.ja.svg)](https://github.com/nexu-io/html-anything)
<a id="acknowledgements"></a>
@@ -875,4 +875,4 @@ OpenMotion のライセンスは [Apache-2.0](../LICENSE)です。第三者の
[素材の出典](readme/ASSETS.md) · [その他の展示素材の出典](readme/brand-showcase/README.md) · [フォントのライセンス](../web/design-system/fonts/NOTICES.txt) · [Studio のライセンス](../studio/LICENSE)
-旧 HTML Anything アプリは [`legacy` ブランチ](https://github.com/nexu-io/openmotion/tree/legacy)に保存されています。現在のブランチと配布範囲は[リポジトリ移行ガイド](repository-migration.md) を参照してください。
+旧 HTML Anything アプリは [`legacy` ブランチ](https://github.com/nexu-io/html-anything/tree/legacy)に保存されています。現在のブランチと配布範囲は[リポジトリ移行ガイド](repository-migration.md) を参照してください。
diff --git a/docs/README.zh-CN.md b/docs/README.zh-CN.md
index 11e53ad0..95400fc7 100644
--- a/docs/README.zh-CN.md
+++ b/docs/README.zh-CN.md
@@ -7,7 +7,7 @@
</p>
<p align="center">
- <a href="https://github.com/nexu-io/openmotion"><img src="readme/badges/stars.zh-CN.svg" alt="GitHub 星标 · 9.5k(2026-11-09)"></a>
+ <a href="https://github.com/nexu-io/html-anything"><img src="readme/badges/stars.zh-CN.svg" alt="GitHub 星标 · 9.5k(2026-11-09)"></a>
<a href="../package.json"><img src="readme/badges/node.svg" alt="Node.js 22.18+"></a>
<a href="../LICENSE"><img src="readme/badges/license.zh-CN.svg" alt="Apache 2.0 许可证"></a>
<a href="https://github.com/nexu-io/open-design"><img src="readme/badges/built-by-opendesign.zh-CN.svg" alt="OpenDesign 出品"></a>
@@ -559,7 +559,7 @@ OpenMotion 另附三个可编辑工程。在 Studio 的 **Templates → Ready to
准备 Git、npm 和 **Node.js 26.11.1**。从源码预览和导出还需要 Chrome/Chromium 和 FFmpeg/FFprobe。[运行环境配置](usage.md)
```sh
-git clone --branch main https://github.com/nexu-io/openmotion.git openmotion
+git clone --branch feature/motion https://github.com/nexu-io/html-anything.git openmotion
cd openmotion
npm ci
npm run build:studio
@@ -787,7 +787,7 @@ BYOA 让 Agent 留在已有客户端,BYOK 连接受支持的模型账号。Stu
| **Agent 与开发工具** | 改进宿主适配器、Skill、资源指引或工程工具流程 | [Agent 适配器](agent-adapters.md) · [MCP 契约](mcp-phase1-tools.md) |
| **动效与创意编程** | 分享组件、原生模板或带真实改编的 Motion.md 包 | [组件](../library/components/README.md) · [条目清单](../library/ENTRY_TEMPLATE.md) |
| **视频与渲染** | 改进导出可靠性、媒体处理或可复现验证 | [引擎说明](hyperframes.md) · [导出校验器](../scripts/verify-export.ts) |
-| **社交发布** | 设计规划中的连接器层:账号访问、发布审阅、排期和版本映射 | [发布方向](product/studio-vision.md) · [讨论提案](https://github.com/nexu-io/openmotion/issues) |
+| **社交发布** | 设计规划中的连接器层:账号访问、发布审阅、排期和版本映射 | [发布方向](product/studio-vision.md) · [讨论提案](https://github.com/nexu-io/html-anything/issues) |
从[本地安装](#quick-start)开始,选择一层,遵循 [CONTRIBUTING.md](../CONTRIBUTING.md) 和 [AGENTS.md](../AGENTS.md)。工程与凭据放在 checkout 外,保留依赖锁定与上游许可。
@@ -840,15 +840,15 @@ BYOA 让 Agent 留在已有客户端,BYOK 连接受支持的模型账号。Stu
| **Brandkit** | 品牌身份、准确产品事实和可分享素材 |
| **Agent 支持或编辑器改进** | 范围聚焦且可复现验证的变更 |
-[资源提交清单](../library/ENTRY_TEMPLATE.md) · [参与贡献](../CONTRIBUTING.md) · [反馈问题](https://github.com/nexu-io/openmotion/issues) · [贡献者](https://github.com/nexu-io/openmotion/graphs/contributors) · [媒体资料](media-kit.md)
+[资源提交清单](../library/ENTRY_TEMPLATE.md) · [参与贡献](../CONTRIBUTING.md) · [反馈问题](https://github.com/nexu-io/html-anything/issues) · [贡献者](https://github.com/nexu-io/html-anything/graphs/contributors) · [媒体资料](media-kit.md)
OpenMotion 独立官网将上线于 `open-design.ai/openmotion`。
[OpenDesign 动效展示](https://open-design.ai/motion/?utm_source=github&utm_medium=referral&utm_campaign=openmotion&utm_content=readme_zh) · [OpenDesign Go](https://go.open-design.ai/?utm_source=github&utm_medium=referral&utm_campaign=openmotion&utm_content=readme_zh) · [Discord](https://discord.gg/mHAjSMV6gz) · [X @OpenDesignDevs](https://x.com/OpenDesignDevs) · [X @OpenDesignHQ](https://x.com/OpenDesignHQ) · [YouTube](https://www.youtube.com/channel/UChtshixMhvtgBWzoD9R_Qfg)
-[**在 GitHub 上给 OpenMotion 点个 Star**](https://github.com/nexu-io/openmotion)
+[**在 GitHub 上给 OpenMotion 点个 Star**](https://github.com/nexu-io/html-anything)
-[![关注 OpenMotion · 在 GitHub 上加星](readme/community-star.zh-CN.svg)](https://github.com/nexu-io/openmotion)
+[![关注 OpenMotion · 在 GitHub 上加星](readme/community-star.zh-CN.svg)](https://github.com/nexu-io/html-anything)
<a id="acknowledgements"></a>
@@ -873,4 +873,4 @@ OpenMotion 采用 [Apache-2.0](../LICENSE)许可。第三方代码、模板、
[素材来源](readme/ASSETS.md) · [其他展示素材来源](readme/brand-showcase/README.md) · [字体声明](../web/design-system/fonts/NOTICES.txt) · [Studio 许可证](../studio/LICENSE)
-原 HTML Anything 应用保留在 [`legacy` 分支](https://github.com/nexu-io/openmotion/tree/legacy)。当前分支与分发边界参见[仓库迁移指南](repository-migration.md) 。
+原 HTML Anything 应用保留在 [`legacy` 分支](https://github.com/nexu-io/html-anything/tree/legacy)。当前分支与分发边界参见[仓库迁移指南](repository-migration.md) 。
diff --git a/docs/motion-release-activation.md b/docs/motion-release-activation.md
index 1bb13490..7a9455fb 100644
--- a/docs/motion-release-activation.md
+++ b/docs/motion-release-activation.md
@@ -6,7 +6,7 @@ A push or merge runs validation; it does not publish a package, advance npm tags
## Repository and release identity
-New source-install commands, generated guide/package links and release guards use `nexu-io/openmotion`. New candidate builds and manual publication/recovery require `main`; application source must be integrated there. Frozen pre-rename candidate receipts keep their original repository/ref identity and remain verifiable against the same GitHub producer run and artifact hashes. They are not rewritten.
+The repository was renamed to `nexu-io/openmotion` on 2026-11-11, retaining repository ID `1235403234`, Git history and the `main` default branch. Repository guards, installation URLs and generated package links use the new address. Local clones should update their origin URL. Historical candidate receipts retain the former repository name and remain valid only through the current repository's authenticated artifact lookup and digest verification; new manual operations require `nexu-io/openmotion`. New candidate builds and manual publication/recovery require `main`; application source must be integrated there.
Before the next npm publication, a package maintainer must verify or update the external trusted publisher for `@openmotion/app` in npm:
@@ -18,7 +18,9 @@ Before the next npm publication, a package maintainer must verify or update the
| Environment | Blank |
| Permissions | npm publish and npm dist-tag |
-Source changes do not update npm trust. Keep the workflow filename because it is part of the trusted-publisher identity. Existing R2 secrets and variables stay with the same GitHub repository; never copy their values into source. Only authorized publication/storage jobs receive publication credentials.
+The repository rename does not update npm trusted-publisher configuration. A package maintainer must set the repository to `openmotion` in npm before the next publication and confirm both publish and dist-tag permissions. Existing published package bytes, versions and tags are unchanged by the rename. Keep the workflow filename because it is part of the trusted-publisher identity.
+
+Existing R2 secrets and variables stay with the same GitHub repository; never copy their values into source. Only authorized publication/storage jobs receive publication credentials.
## Installation and onboarding rollout
@@ -26,4 +28,4 @@ The canonical installation-success reply contract and few-shots are in [docs/ins
To make those changes available through the website's existing short installation prompt, build and publish a new test candidate from `main`, then promote its matching DEV guide. The `/open-motion/dev/install.md` path and npm package name `@openmotion/app` stay the same; `dev` names the test channel, not the Git branch. Stable publication uses the stable guide separately. Never point a public guide at an unpublished version or claim that a source-only change has reached installed hosts.
-Use the [release workflow manual](release-workflows.md) for exact-byte publication, native installation checks and snapshot recovery. Keep candidate validation, target-machine installation, real host invitation/creation and human audiovisual acceptance separate. Repository migration and green CI do not authorize publication.
+Use the [release workflow manual](release-workflows.md) for exact-byte publication, native installation checks and snapshot recovery. Keep candidate validation, target-machine installation, real host invitation/creation and human audiovisual acceptance separate. Repository migration and green CI do not authorize publication. Historical registration began with [PR #222](https://github.com/nexu-io/openmotion/pull/222).
diff --git a/docs/npm-installation.md b/docs/npm-installation.md
index bf5a8ef4..b48410cd 100644
--- a/docs/npm-installation.md
+++ b/docs/npm-installation.md
@@ -18,7 +18,7 @@ The npm page uses the repository's product `README.md`. Packaging resolves its r
## Build and install a local test
-From a clean checkout based on `main`:
+From a clean checkout based on `feature/motion`:
```sh
npm ci --no-audit --no-fund
diff --git a/docs/product/architecture.md b/docs/product/architecture.md
index 8052b712..986e4d53 100644
--- a/docs/product/architecture.md
+++ b/docs/product/architecture.md
@@ -37,7 +37,7 @@ Model Gateway remains a shared media-generation backend for MCP, using local Cod
## 对外主张与 Motion.md 方向
-The public product name is **OpenMotion**. README pages place the centered logo above the cover and retain a plain-text OpenMotion heading before the introduction. The cover and footer share the same identity. OpenMotion is on `main` in `nexu-io/openmotion`, with daily integration and new release operations on `main`; the `motion` plugin identifier and environment variables remain compatible. The public workflow is reference → analysis and reconstruction → brand adaptation → multimodal generation → editing and rendering. It emphasizes editable HTML video, BYOA / BYOK, presenter stories, editable projects and the Motion.md community. English, Simplified Chinese and Japanese READMEs share examples, media and stable section anchors. README localization is maintained independently of the Studio interface, which currently supports eleven languages.
+The public product name is **OpenMotion**. README pages place the centered logo above the cover and retain a plain-text OpenMotion heading before the introduction. The cover and footer share the same identity. OpenMotion is on `main` in `nexu-io/openmotion`; daily development branches from the latest `origin/main` and PRs target `main`, following the [shared branch rules](../../AGENTS.md#development-branches-and-pull-requests); the `motion` plugin identifier and environment variables remain compatible. The public workflow is reference → analysis and reconstruction → brand adaptation → multimodal generation → editing and rendering. It emphasizes editable HTML video, BYOA / BYOK, presenter stories, editable projects and the Motion.md community. English, Simplified Chinese and Japanese READMEs share examples, media and stable section anchors. README localization is maintained independently of the Studio interface, which currently supports eleven languages.
“任何视频”是工作流的创作范围表述,不保证任意输入的获取、解析、还原度或传播结果。参考获取与媒体分析依赖宿主工具和用户材料,生成效果依赖模型配置,成片需按参考、简报与实际视听结果审阅。README 的发布部分明确区分当前 MP4 手动交接与规划中的平台连接、排期和反馈。外部产品来源和比较统一放在 README 最后的 Acknowledgements,技术依赖与具体出处仍保留在专题和源文件中。
diff --git a/docs/release-workflows.md b/docs/release-workflows.md
index aec05560..b40f76d8 100644
--- a/docs/release-workflows.md
+++ b/docs/release-workflows.md
@@ -1,6 +1,6 @@
# Motion releases: build, test, publish
-Use two manual Actions entries: **Motion candidate build**, then **Motion npm publication**, in `nexu-io/openmotion` on `main`. The daily flow is **build → optional local testing → manual publish**. Neither entry runs on pushes, PR merges, tags or a schedule. Merging a workflow change does not publish a package or configure npm permissions.
+Use two manual Actions entries: **Motion candidate build**, then **Motion npm publication**, in `nexu-io/openmotion` on `main`. The daily flow is **build → optional local testing → manual publish**. Neither entry runs on pushes, PR merges, tags or a schedule. Merging a workflow change does not publish a package or configure npm permissions. Daily development branches from the latest `origin/main` and PRs target `main`.
| Operator step | Automated work |
| --- | --- |
diff --git a/docs/repository-migration.md b/docs/repository-migration.md
index 7814cb2c..638521f8 100644
--- a/docs/repository-migration.md
+++ b/docs/repository-migration.md
@@ -1,8 +1,8 @@
# OpenMotion standalone repository
-OpenMotion replaces the former HTML Anything application at the repository root on `main`. The repository is `nexu-io/openmotion`, renamed from `nexu-io/html-anything`; existing commits, issues and pull requests remain in the same repository. The cutover preserves Git history.
+OpenMotion replaces the former HTML Anything application at the repository root on `main`. The repository name remains `nexu-io/html-anything`; existing commits, issues and pull requests remain in the same repository. The cutover preserves Git history.
-Daily Motion changes branch from the latest `main` and open PRs with that base. The previous application is preserved at [`legacy`](https://github.com/nexu-io/html-anything/tree/legacy). The default branch remains `main`. Package publication remains a separate, explicitly authorized operation.
+Daily Motion changes branch from the latest `feature/motion` and open PRs with that base. The previous application is preserved at [`legacy`](https://github.com/nexu-io/html-anything/tree/legacy). The default branch remains `main`. Package publication remains a separate, explicitly authorized operation.
## Upstream synchronization checkpoint
@@ -31,7 +31,7 @@ npm run package:npm
The npm output in `dist/npm-local/` contains an installer `.tgz`, application `.tar.gz`, manifest and SHA256. The application runs from its selected install directory, not transient npx cache. Node, browser and media tool requirements are pinned; native tools come from public sources and are cached on first use. See [installation](npm-installation.md).
-`install.sh` clones this repository's `main` branch and invokes `scripts/install-motion.command` from the root. `OPENMOTION_REF` can select a reviewed commit or another existing branch. Source installation requires Node/npm; complete ZIPs include a platform runtime. None of these installers relocates existing user projects.
+`install.sh` clones this repository's `feature/motion` branch and invokes `scripts/install-motion.command` from the root. `OPENMOTION_REF` can select a reviewed commit or another existing branch. Source installation requires Node/npm; complete ZIPs include a platform runtime. None of these installers relocates existing user projects.
## Public source and package contents
diff --git a/docs/usage.md b/docs/usage.md
index d3d9e324..a9bcb1fd 100644
--- a/docs/usage.md
+++ b/docs/usage.md
@@ -64,7 +64,7 @@ openmotion 围绕已有 Agent 用户的产品演示、参考复刻、动态图
### 复制到 Codex 安装并体验
-适用于 macOS / Linux。先克隆本公开仓库的 `main` 分支,并用 Codex 打开该目录。需要支持插件的 Codex CLI、Git 和 Node.js 22.18+(含 npm)。将下面这段发到 Codex 对话框:
+适用于 macOS / Linux。先克隆本公开仓库的 `feature/motion` 分支,并用 Codex 打开该目录。需要支持插件的 Codex CLI、Git 和 Node.js 22.18+(含 npm)。将下面这段发到 Codex 对话框:
```text
请在当前仓库目录运行 bash scripts/install-motion.command 安装 openmotion。
diff --git a/packages/npm/package.json b/packages/npm/package.json
index 127179dc..433eb26a 100644
--- a/packages/npm/package.json
+++ b/packages/npm/package.json
@@ -1,6 +1,6 @@
{
"name": "@openmotion/app",
- "repository": { "type": "git", "url": "git+https://github.com/nexu-io/openmotion.git" },
+ "repository": { "type": "git", "url": "git+https://github.com/nexu-io/html-anything.git" },
"version": "0.6.3-local.1",
"private": true,
"description": "OpenMotion application, MCP and Skills installer for local Agent hosts",
diff --git a/scripts/install-guide.mjs b/scripts/install-guide.mjs
index c7d887e1..fcb8c18a 100644
--- a/scripts/install-guide.mjs
+++ b/scripts/install-guide.mjs
@@ -34,7 +34,7 @@ export async function generateInstallGuide(tgz, output, candidate = false) {
const values = { VERSION: pkg.version, PACKAGE_SPEC: packageSpec, CHANNEL: channel, COMMIT: manifest.commit,
TEMPLATE_ENVIRONMENT: manifest.templateEnvironment, TGZ_SHA256: digest,
TARGETS: Object.values(manifest.runtime.targets).map(t => `${t.platform}/${t.arch}${t.minimumOS ? ` (${t.minimumOS}+)` : ''}`).join(', '),
- DETAILS_URL: `https://github.com/nexu-io/openmotion/blob/${manifest.commit}/docs/npm-installation.md` };
+ DETAILS_URL: `https://github.com/nexu-io/html-anything/blob/${manifest.commit}/docs/npm-installation.md` };
const template = await readFile(new URL('../docs/install.md', import.meta.url), 'utf8');
// The repository warning is unnecessary after all release placeholders are resolved.
const text = (candidate ? '> Build preview only: this candidate is not an approved registry installation entry.\n\n' : '') + template.replace(/^If you are reading this file.*\n\n/m, '').replace(/\{\{([A-Z0-9_]+)\}\}/g, (_, key) => {
diff --git a/scripts/package-npm.mjs b/scripts/package-npm.mjs
index 62e85736..577cc705 100644
--- a/scripts/package-npm.mjs
+++ b/scripts/package-npm.mjs
@@ -21,7 +21,7 @@ function rewriteGuideLinks(text, file, commit, localPaths = new Set()) {
if (/^(?:#|[a-z][a-z\d+.-]*:|\/\/)/i.test(target)) return target;
const pathname = target.split(/[?#]/, 1)[0];
if (localPaths.has(path.posix.join(directory, pathname).replace(/\/$/, ''))) return target;
- const base = image ? 'https://raw.githubusercontent.com/nexu-io/openmotion/' : 'https://github.com/nexu-io/openmotion/blob/';
+ const base = image ? 'https://raw.githubusercontent.com/nexu-io/html-anything/' : 'https://github.com/nexu-io/html-anything/blob/';
return new URL(target, base + commit + '/' + (directory === '.' ? '' : directory + '/')).href;
};
return text
diff --git a/tests/install-guide.test.ts b/tests/install-guide.test.ts
index daad9551..1b82906b 100644
--- a/tests/install-guide.test.ts
+++ b/tests/install-guide.test.ts
@@ -69,9 +69,6 @@ test('guide rendering pins the exact npm package, built source and hash while re
const text = await readFile(path.join(directory, 'install.md'), 'utf8');
assert(text.includes(`npx --yes --package "${pkg.name}@${pkg.version}"`));
assert(text.includes(manifest.commit) && text.includes(record.tgzSHA256));
- assert(text.includes(`https://github.com/nexu-io/openmotion/blob/${manifest.commit}/docs/npm-installation.md`),
- 'Generated guides must use the renamed repository and immutable source SHA');
- assert(!text.includes('nexu-io/html-anything'), 'Do not republish retired repository links');
assert(!text.includes('{{') && !text.includes('see `{{...}}`'));
assert(text.includes('eleven public Tools') && text.includes('five Skills'));
assert(text.includes('new test versions embed DEV defaults') && !text.includes('does not select DEV templates'),
diff --git a/tests/npm-package.test.ts b/tests/npm-package.test.ts
index 61b813db..37fd4322 100644
--- a/tests/npm-package.test.ts
+++ b/tests/npm-package.test.ts
@@ -67,18 +67,18 @@ test('test npm artifacts contain their application, locked manifest and no bundl
await extractArchive(built.application, application); await extractArchive(built.installer, installer);
const readme = await readFile(path.join(installer, 'package/README.md'), 'utf8');
assert(readme.includes("Reverse engineering for any video"));
- assert(readme.includes(`https://raw.githubusercontent.com/nexu-io/openmotion/${release.commit}/docs/readme/brand-hero.jpg`));
- assert(readme.includes(`src="https://raw.githubusercontent.com/nexu-io/openmotion/${release.commit}/docs/readme/openmotion-logo.svg"`));
- assert(readme.includes(`https://github.com/nexu-io/openmotion/blob/${release.commit}/docs/motion-md.md`));
+ assert(readme.includes(`https://raw.githubusercontent.com/nexu-io/html-anything/${release.commit}/docs/readme/brand-hero.jpg`));
+ assert(readme.includes(`src="https://raw.githubusercontent.com/nexu-io/html-anything/${release.commit}/docs/readme/openmotion-logo.svg"`));
+ assert(readme.includes(`https://github.com/nexu-io/html-anything/blob/${release.commit}/docs/motion-md.md`));
assert(readme.includes('](#choose-agent)'));
assert(readme.includes('href="https://open-design.ai/motion/'));
- assert(readme.includes(`srcset="https://raw.githubusercontent.com/nexu-io/openmotion/${release.commit}/docs/readme/brand-hero.mobile.jpg"`));
- assert(readme.includes(`href="https://github.com/nexu-io/openmotion/blob/${release.commit}/docs/readme/media/presenter-caption-remake.mp4"`));
+ assert(readme.includes(`srcset="https://raw.githubusercontent.com/nexu-io/html-anything/${release.commit}/docs/readme/brand-hero.mobile.jpg"`));
+ assert(readme.includes(`href="https://github.com/nexu-io/html-anything/blob/${release.commit}/docs/readme/media/presenter-caption-remake.mp4"`));
assert(!readme.includes('](docs/') && !readme.includes('](template-library/'));
assert(!readme.startsWith('# Motion application npm package'));
const embeddedReadme = await readFile(path.join(application, 'README.md'), 'utf8');
assert(embeddedReadme.includes('](docs/motion-md.md)'), 'Installed documentation keeps local links to shipped guides');
- assert(embeddedReadme.includes(`srcset="https://raw.githubusercontent.com/nexu-io/openmotion/${release.commit}/docs/readme/brand-hero.mobile.jpg"`));
+ assert(embeddedReadme.includes(`srcset="https://raw.githubusercontent.com/nexu-io/html-anything/${release.commit}/docs/readme/brand-hero.mobile.jpg"`));
await assert.rejects(readdir(path.join(application, 'docs/readme/media')), { code: 'ENOENT' });
assert.equal((await json(path.join(application, 'package.json'))).version, version);
await verifyTrackingPolicy(application, 'test');
diff --git a/tests/release-workflows.test.mjs b/tests/release-workflows.test.mjs
index 68a869c3..3290aa20 100644
--- a/tests/release-workflows.test.mjs
+++ b/tests/release-workflows.test.mjs
@@ -135,9 +135,16 @@ test('the sealed candidate detects tgz, guide, identity and provenance tampering
await assert.rejects(verifyDownloaded(directory, candidate.tgzSHA256));
});
-for (const branch of ['main']) test(`artifact download binds ${branch} provenance and does not forward credentials to signed URLs`, async t => {
- const f = await candidateFixture(t, branch), zip = path.join(f.work, 'candidate.zip');
+for (const [branch, receiptRepository] of [
+ ['main', repository], ['feature/motion', repository], ['feature/motion', 'nexu-io/html-anything'],
+]) test(`artifact download binds ${branch} / ${receiptRepository} provenance and does not forward credentials to signed URLs`, async t => {
+ const f = await candidateFixture(t), zip = path.join(f.work, 'candidate.zip');
+ // Simulate a frozen producer receipt; new candidate builds are main-only.
+ f.candidate.workflow.ref = `refs/heads/${branch}`;
+ await writeFile(path.join(f.directory, 'provenance.json'), JSON.stringify({ ...f.provenance, head_branch: branch }));
const producer = { ...origin, head_branch: branch };
+ f.candidate.workflow.repository = receiptRepository;
+ await writeFile(path.join(f.directory, 'candidate.json'), JSON.stringify(f.candidate));
await runFile('zip', ['-j', zip, ...['candidate.json', ...Object.keys(f.candidate.files)].map(name => path.join(f.directory, name))]);
const bytes = await readFile(zip), digest = 'sha256:' + createHash('sha256').update(bytes).digest('hex');
const fetcher = async (url, options) => {
@@ -154,11 +161,23 @@ for (const branch of ['main']) test(`artifact download binds ${branch} provenanc
await assert.rejects(downloadCandidate(f.candidate.version, path.join(f.work, 'retry'), undefined, retryFetcher), /success/);
assert.equal((await downloadCandidate(f.candidate.version, path.join(f.work, 'automatic'), undefined, fetcher)).tgzSHA256, f.candidate.tgzSHA256);
await assert.rejects(downloadCandidate(f.candidate.version, path.join(f.work, 'corrupt'), f.candidate.tgzSHA256, async (url, options) => String(url).includes('signed.') ? new Response('tampered ZIP') : fetcher(url, options)));
- const other = 'feature/motion';
+ const other = branch === 'main' ? 'feature/motion' : 'main';
await assert.rejects(downloadCandidate(f.candidate.version, path.join(f.work, 'wrong-branch'), f.candidate.tgzSHA256,
(url, options) => String(url).endsWith('/actions/runs/123') ? Response.json({ ...producer, head_branch: other }) : fetcher(url, options)));
});
+test('repository rename accepts historical receipts but rejects old live callers and foreign receipts', async t => {
+ assert.equal(repository, 'nexu-io/openmotion');
+ const oldRepository = 'nexu-io/html-anything';
+ assert.throws(() => releaseInputs({ ...valid, GITHUB_REPOSITORY: oldRepository,
+ GITHUB_WORKFLOW_REF: `${oldRepository}/${publicationWorkflow}@refs/heads/feature/motion` }), /Wrong repository/);
+ assert.throws(() => validateRun({ ...origin, head_repository: { full_name: oldRepository } }, artifact, '0.6.4-test.99'));
+ const f = await candidateFixture(t);
+ f.candidate.workflow.repository = 'fork/repo';
+ await writeFile(path.join(f.directory, 'candidate.json'), JSON.stringify(f.candidate));
+ await assert.rejects(verifyDownloaded(f.directory, f.candidate.tgzSHA256), /Untrusted candidate repository/);
+});
+
test('old main receipts remain readable but unregistered candidate branches cannot seal artifacts', async t => {
const f = await candidateFixture(t);
const { head_branch, ...legacy } = f.provenance;
@@ -168,18 +187,6 @@ test('old main receipts remain readable but unregistered candidate branches cann
await assert.rejects(candidateFixture(t, 'feature/motion'), /only from main/);
});
-test('frozen pre-rename candidate receipts remain verifiable without allowing fork identities', async t => {
- const f = await candidateFixture(t);
- const candidatePath = path.join(f.directory, 'candidate.json');
- f.candidate.workflow.repository = 'nexu-io/html-anything';
- f.candidate.workflow.ref = 'refs/heads/feature/motion';
- await writeFile(candidatePath, JSON.stringify(f.candidate));
- await writeFile(path.join(f.directory, 'provenance.json'), JSON.stringify({ ...f.provenance, head_branch: 'feature/motion' }));
- assert.equal((await verifyDownloaded(f.directory, f.candidate.tgzSHA256)).workflow.repository, 'nexu-io/html-anything');
- f.candidate.workflow.repository = 'fork/repo';
- await writeFile(candidatePath, JSON.stringify(f.candidate));
- await assert.rejects(verifyDownloaded(f.directory, f.candidate.tgzSHA256), /Untrusted candidate repository/);
-});
function registry(candidate, exists = true, tag = candidate.version, latest = '0.5.0') {
return () => Response.json({ versions: exists ? { [candidate.version]: { dist: { integrity: candidate.integrity } } } : {}, 'dist-tags': { test: tag, latest } });