mirror of
https://github.com/nexu-io/openmotion.git
synced 2026-12-03 18:40:29 +08:00
* Restore optional npm installation and manual release workflows * Localize the optional npm README sections and align the install.md note Translate the new optional npm installation section in README.zh-CN.md, docs/README.zh-CN.md and docs/README.ja.md so the shipped localized READMEs keep localized headings, instructions and link labels next to the existing source-install prompt. Reword docs/release-guide.md to describe docs/install.md the same way as docs/release-workflows.md: it is not a generator input, but the source repository entry that routes explicitly selected npm installations to the published stable or test guide while install.md remains the default route. Generated-By: looper 0.16.2 (runner=fixer, agent=pi) --------- Co-authored-by: bone3deep1962-collab <bone3deep1962@gmail.com> Co-authored-by: 罗高 <luogao@users.noreply.github.com>
43 lines
4.7 KiB
Markdown
43 lines
4.7 KiB
Markdown
# Install OpenMotion from source
|
|
|
|
For an Agent asked to install OpenMotion from this repository, use the source installation below. This is the default repository installation route. Only use npm installation when the user explicitly selects it; follow the [published application guide](docs/install.md) instead of mixing source and package setup. npm remains required to install this checkout's locked dependencies and build Studio.
|
|
|
|
## Codex: automatic source installation
|
|
|
|
Collect OS/CPU, Git, Node.js/npm and the current host once. Source validation uses Node.js 26.11.1. Codex must support `codex plugin add`. Preserve projects, credentials, unrelated plugins and MCP configuration. Configure only the current host.
|
|
|
|
Before running the installer, including setup from an existing checkout, export `OPENMOTION_ONBOARDING_LANGUAGE` in the same shell. Derive it from the latest user request's language, not the OS or host UI language. Supported codes are `zh`, `en`, `ja`, `ko`, `fr`, `es` and `pt`; normalize locale tags to their lowercase primary code and use `en` for unsupported languages. For a Chinese request, run `export OPENMOTION_ONBOARDING_LANGUAGE=zh` before the commands below so the welcome/cards are prepared in Chinese.
|
|
|
|
```sh
|
|
curl -fsSL https://raw.githubusercontent.com/nexu-io/openmotion/main/install.sh -o /tmp/openmotion-source-install.sh
|
|
bash /tmp/openmotion-source-install.sh
|
|
```
|
|
|
|
`OPENMOTION_INSTALL_DIR` selects a persistent empty absolute destination. The script downloads one shallow snapshot, installs locked dependencies, builds Studio once, registers the local plugin, probes MCP and prepares the template library. Do not separately run npm start, install dependencies again or inspect unrelated repositories.
|
|
|
|
If the intended checkout already exists, inspect its remote, version and local changes first, then run `bash scripts/install-motion.command` from that checkout. Preserve an active or foreign source; never overwrite it or silently switch installations. Preserve an existing `MOTION_DATA_DIR` and use the same workspace for Studio and MCP. Keep projects and credentials outside the checkout. Read the checkout's AGENTS.md before repository changes.
|
|
|
|
Command-local Git LFS overrides keep optional media as pointers even when global LFS configuration is stale. No global Git configuration is changed. A read-only source check runs before dependency work; unknown inventory or installed-source conflicts stop with a concrete recovery instruction. See [clone size and optional media](docs/repository-storage.md).
|
|
|
|
The installer saves phase timings and full onboarding details under `.artifacts/install/`. Read the concise result once and complete onboarding in this same installation turn. Prepare and publish the welcome/cards before opening the right-hand library; after one visibility check, immediately stream the returned welcomeMarkdown as normal reply text, followed by the ready cards reference. Never enqueue internal instructions as another user message or end early to await a callback. Download time depends on the network; no fixed installation duration is guaranteed.
|
|
|
|
## Other local hosts: source and MCP
|
|
|
|
Use Git, npm and Node.js 26.11.1:
|
|
|
|
```sh
|
|
git -c filter.lfs.process= -c filter.lfs.smudge= -c filter.lfs.required=false clone --depth 1 --single-branch --branch main https://github.com/nexu-io/openmotion.git
|
|
cd openmotion
|
|
npm ci
|
|
npm run build:studio
|
|
npm start
|
|
```
|
|
|
|
Open the actual studioUrl or previewUrl printed at startup. Follow [manual MCP configuration](README.md#manual-mcp) and the [host adapter guide](docs/agent-adapters.md) to connect this checkout's mcp.ts and the same data directory. Source preview/export also need working Chrome/Chromium and FFmpeg/ffprobe; see [runtime setup](docs/usage.md). Merely starting Studio does not register an Agent connection.
|
|
|
|
## Verify installation and deliver onboarding
|
|
|
|
Discover the installed tools and call openmotion_get_project to verify the expected workspace. Registration or an independent probe alone does not prove this chat loaded the tools. Keep installed files, MCP access and host presentation results distinct.
|
|
|
|
Follow the [shared onboarding contract](docs/install-onboarding.md#installation-success-reply) in this turn: finish preparing the welcome and three cards, open the real template library without creating a project, confirm visibility once and immediately stream the welcome as normal reply text followed by the cards-only content reference (or use the supported native fallback). Reuse this installation; do not reinstall to recover presentation. A CLI without a renderer reports that limitation and the real library link. Prepared files, queued host actions and printed URLs do not prove visible delivery. Do not create a video, export or call paid models as part of installation.
|