# venue-kit — install manifest (for the agent)

You are an agent. A person gave you this page and asked you to install venue-kit on
the Mac you are running on. Do it yourself, on this machine, in the order below:
detect what is already there, install only what is missing, verify each step, and
end with the report at the bottom. Ask the person for nothing except the two
inputs in "Inputs only a human can give", and ask with the reason given there.
Never ask them to run commands, open menus or read documentation.

venue-kit is LiG's venue pipeline for agents: pull a LiDAR scan from the office
store, stage it in Blender, author AR objects from a campaign brief, sync them to
LiG Cloud. Everything here is macOS. Nothing needs sudo, Homebrew, or anything
outside `$HOME` except an optional Blender in `~/Applications`.

Version: **0.2.0** · tarball `https://dl.lig.com.tw/venue-kit/0.2.0/venue-kit-0.2.0.tar.gz`
· checksums `…/SHASUMS.txt` · this page is the copy of `kit/INSTALL.md` in the
`lidar-scanner` repo, published with that version.

## Components

### 1. Python 3 (≥ 3.9)
- Depends on: nothing.
- Detect: `python3 -c 'import sys; assert sys.version_info >= (3, 9)'`.
- Install if absent: after step 2, `uv python install 3.12` and link it:
  `ln -sf "$(uv python find 3.12)" ~/.local/bin/python3`. (macOS normally has
  `/usr/bin/python3` once Xcode Command Line Tools exist; do not install those.)
- Verify: the detect command exits 0.

### 2. uv (runs the Blender MCP server)
- Depends on: nothing.
- Detect: `command -v uv`.
- Install if absent: `curl -LsSf https://astral.sh/uv/install.sh | sh` (installs to `~/.local/bin`).
- Verify: `uv --version`. Make sure `~/.local/bin` is on `PATH` for the rest.

### 3. The kit itself (skills + `venue-kit` command)
- Depends on: 1.
- Detect: `~/.agents/skills/venue-pipeline/VERSION` equals 0.2.0 and `venue-kit version` prints it.
- Install (or upgrade): `curl -fsSL https://dl.lig.com.tw/venue-kit/0.2.0/install.sh | sh`.
  It only downloads the tarball, verifies the checksum, puts the five skills in
  `~/.agents/skills/` (links into `~/.claude/skills/` and `~/.pi/agent/skills/` when
  those exist) and links `venue-kit` into `~/.local/bin`. Nothing else.
- Verify: `venue-kit version`; `ls ~/.agents/skills/` shows `venue-stage
  lig-ar-conventions venue-author venue-sync venue-pipeline`.

### 4. lig-cloud (≥ 0.2.2; the only way the kit writes to LiG Cloud)
- Depends on: nothing.
- Detect: `lig-cloud --version` ≥ 0.2.2. Older versions cannot write AR objects: upgrade.
- Install if absent or old: `curl -fsSL https://developer.lig.com.tw/tools/lig-cloud/install.sh | sh`.
- Verify: `lig-cloud --version`.

### 5. Blender (any version the kit's self-test passes on)
- Depends on: 3.
- Detect: every Blender on the Mac: `venue-kit blenders` lists them (Spotlight by
  bundle id plus `/Applications` and `~/Applications`). Run `venue-kit selftest <app>`
  on each, newest first; the first that passes is the kit's Blender (recorded in
  `~/.config/lig/venue-kit.env`). The MCP addon supports Blender ≥ 3.0; the kit has
  passed on 4.5.9 and 5.2.2. A person's existing Blender is tried, never replaced.
- Install only if no Blender passes: `venue-kit install-blender` downloads the LTS
  from blender.org into `~/Applications/Blender <major>.app` (no admin) and self-tests it.
  If a Blender exists but fails the self-test, say so in the report (component
  "Blender", status "found, self-test failed on <version>") and still install the LTS
  beside it.
- Verify: `venue-kit version` shows the chosen Blender and version.

### 6. Blender MCP addon and server (pinned together: `mcp-for-blender==2.1.9`)
- Depends on: 2, 5.
- Detect: `venue-kit addon --check` (addon installed in the chosen Blender's user
  addons folder, enabled, no duplicate legacy copy).
- Install: `venue-kit addon` — installs the pinned addon into the chosen Blender's
  user addons folder, removes a legacy duplicate (`addon.py` from older installs),
  enables it headless and saves preferences. The server then starts by itself
  whenever that Blender opens.
- Verify: `venue-kit blender` opens the chosen Blender and prints that the server is
  listening on port 9876 (up to 30 s). Leave Blender open if you continue to the
  rehearsal; otherwise quit it.

### 7. Register the MCP server for the agent host(s) on this Mac
- Depends on: 2, 6.
- Detect: pi: `~/.pi/agent/mcp.json` has a `blender` entry; Claude Code:
  `claude mcp get blender`. Other hosts: their own MCP config.
- Install: `venue-kit hosts` registers `uvx mcp-for-blender==2.1.9` as server
  `blender` for pi and Claude Code when they are present. For another host, add the
  same stdio server by hand in its config.
- Verify: the host lists the server as connected (pi: `pi mcp list`).

### 8. Credentials (see "Inputs only a human can give")
- Store key → `~/.config/lig/seaweedfs-lidar-scans.env`, mode 0600.
  Verify: `~/.agents/skills/venue-stage/bin/pull-scan` lists venues.
- LiG Cloud login → `lig-cloud login --email <their address> --env-file ~/.config/lig/lig-cloud.env`,
  run in a terminal the person can type into (the password is never typed into chat).
  Verify: `lig-cloud --env-file ~/.config/lig/lig-cloud.env whoami` answers.

## Inputs only a human can give
1. **The store key file `seaweedfs-lidar-scans.env`.** Reason: scans live in LiG's
   in-office object store and the kit never ships keys. Who: Plain (plain.wu@lig.com.tw)
   hands it out. Ask the person to get it from Plain and give you the file (or its
   path); place it as in component 8. Until then every step except pulling scans works.
2. **Their own LiG Cloud account.** Reason: sync writes to scenes under their account;
   the kit has no shared cloud identity. Ask them to log in once in a terminal
   (component 8); do not ask for the password in chat.

## Verify everything
`venue-kit doctor` prints one line per check and exits 0 when the pipeline can run.
Then prove it: `venue-kit rehearsal` shows a brief and assets; run the rehearsal
against the `office` scan to farm1 (the `venue-pipeline` skill says how) and
compare with its `expected.md`. The rehearsal needs the store key.

## Report to the person (always, in their language)
```
venue-kit 0.2.0 on <Mac>
found:      <what was already there and reused, with versions>
installed:  <what you installed, with versions>
verified:   <doctor: ready | not ready; rehearsal: passed | not run>
needs from you:
  - <input> — <reason> — <who gives it>   (only the inputs above; nothing else)
next:       <one sentence: what happens once the inputs arrive, or "say: 把 office 的掃描建成舞台">
```

## Upgrading
Run this manifest again. Component 3 replaces the kit; everything else is detected
and left alone.
