Production interior authoring and interactive Three.js delivery plugin for img2.
docs: redesign npm README with living-room showcase
hoainhof4aa1a3629d6
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 953795e..dd22bec 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,8 +10,9 @@### Documentation-- Rewrite the README around project scope, deliverables, installation, usage, contributor checks, support, security, and licensing. Keep detailed production instructions in the reference guides and clarify private-source access and publication status.-- Document private GitHub hosting with planned npm installer distribution, distinguish installer-only and payload access models, and add the official wrapper release checklist with tarball review, trusted publishing, and private-source provenance limits.+- Redesign the README as a package landing page with a complete, room-independent copy-and-use prompt, explicit setup/delivery expectations, and actual Oak / Linen living-room reference/native/browser previews. Label the original research study's relationship to the extracted recipe and its limits; no fresh scene-quality result is claimed.+- Choose private npm payload distribution instead of a public wrapper requiring GitHub source access. Document restricted package metadata, account/access requirements, actual tarball and authenticated-consumer checks, and publication status; no npm package or catalog entry is published.+- Include the small offline showcase gallery and both optimized previews in source archives. Use immutable public-media image URLs for the npm-facing README without exposing plugin code, scene files, full-resolution references or private production reports.## 0.2.0 — 2026-10-18diff --git a/README.md b/README.mdindex 1e2dc43..0199dd8 100644--- a/README.md+++ b/README.md@@ -1,161 +1,169 @@# img2 Interior-**Turn interior reference images into editable Blender scenes and interactive Three.js viewers with a coding agent.**+**One room image. An editable scene. A viewer you can explore.**-img2 Interior is a plugin for the [img2 harness](https://github.com/img2threejs/img2). It gives an image-capable agent a reconstruction workflow, Blender/Python authoring tools, material and lighting utilities, and a Three.js viewer template. The agent interprets the reference, writes scene-specific code, and iterates on rendered results.+An agent-operated interior reconstruction skill for **Claude Code, Codex and OpenCode**, powered by the [img2 harness](https://github.com/img2threejs/img2). Your agent reads the reference, authors a Blender scene, compares renders, and builds a Three.js viewer with native and portable exports.-This is an agent-guided authoring toolkit, not a pretrained image-to-mesh model. A reference image is the starting point; visual fidelity still depends on scene authoring and review.+Not a pretrained image-to-mesh model or a one-click fidelity guarantee. The workflow depends on scene-specific authoring and visual review.-[Distribution](#distribution) · [Quickstart](#quickstart) · [Documentation](#documentation) · [Contributing](#contributing) · [License](#license)+[Showcase](#showcase) · [Copy-and-use prompt](#copy-and-use-prompt) · [What you get](#what-you-get) · [Installation](#installation) · [Guides](#guides)-## What it does+> **Availability:** source version 0.3.0; **not yet published to npm**. Private npm payload distribution is planned for authorized users. The implementation stays private; only the approved showcase previews are public.-- **Reconstructs editable rooms:** camera matching, room geometry, furniture, materials, and explicitly documented assumptions about unseen surfaces.-- **Prepares materials and lighting:** Poly Haven asset acquisition, PBR image processing, lightmap baking, and environment probes.-- **Builds a web viewer:** bounded camera navigation, material variants, optional rail-mounted curtain interaction, and download controls.-- **Checks the handoff:** asset validation, dependency inventories, staged reviews, and independent reopening of native and portable files.+## Showcase-## Deliverables+### Oak / Linen — Living Room-| Output | Intended use | Important distinction |-| --- | --- | --- |-| Packed Blender master (`.blend`) | Continue editing geometry, materials, cameras, and lighting | Native authoring file, not a GLB |-| Runtime GLB + sidecars + Three.js viewer | Explore the scene in a browser | Requires its declared lightmaps, probe, and other dependencies |-| Portable GLB | Open the scene in another glTF-compatible tool | Static baked appearance; does not carry the viewer's interaction logic |--Generated scenes, downloaded assets, renders, and local environments belong in the project workspace, not in the plugin checkout. They are not bundled with this repository.+[](https://raw.githubusercontent.com/img2threejs/img2interior-media/375e6af7ab526d7c0c10be91b0e72f2757391ec7/living-room-comparison.webp)-## Distribution+**Left: design reference. Right: reconstruction.** The reference is AI-generated, not a photograph or measured survey. The result is an actual render of the reopened Blender deliverable, not a retouched reference or an image plane standing in for a room. Open the image for the larger comparison.-The GitHub repository remains **private**. npm is the planned installer distribution channel; this repository currently supports source-checkout and source-archive installation. An npm installer has not been added or published for this plugin.+This is the **original Oak / Linen living-room research study** from which the packaged recipe and workflow lessons were extracted. It used scene-specific Blender/Python authoring and viewer integration, not a fresh run of the packaged 0.3.0 skill or the prompt below. Framing, proportions, fabric folds and lighting still differ from the reference; this is not a universal fidelity benchmark.-For private-source distribution, the recommended model is a **public, installer-only npm package** generated by the official img2 tooling. It ships the CLI and public package documentation, not the plugin implementation or scene assets. Installation fetches the implementation from this private repository, so users still need authorized GitHub read access.+<details>+<summary><strong>See the browser viewer</strong> — camera views, wireframe, curtain controls, sofa finishes and downloads</summary>-Repository privacy and npm package visibility are separate. Publishing the full skill in a public npm package would make the included code downloadable without GitHub access. Distributing the payload through a private npm package instead requires an eligible paid npm account and explicit package read access.+[](https://raw.githubusercontent.com/img2threejs/img2interior-media/375e6af7ab526d7c0c10be91b0e72f2757391ec7/living-room-viewer.webp)-Until an installer release is available, use the source installation below. Maintainers can follow the [npm release plan](reference/installation.md#npm-release-plan) for packaging, access choices, and release checks.+A **static screenshot of the working Three.js project**, not a hosted live demo. Its controls are not interactive inside this README. Indirect lighting is baked; curtain movement does not produce fully dynamic global illumination. The portable GLB is a separate static product, not a copy of every browser behavior.-## Quickstart+</details>-### Requirements--| Component | Requirement |-| --- | --- |-| Agent host | Image-capable Claude Code, Codex, or OpenCode, configured through img2 |-| Harness | img2 ≥0.4.0, core API 1 |-| CLI and viewer | Git, npm, and Node.js 18, 20, or ≥22 |-| Workspace and audit tools | Python ≥3.10 |-| Native authoring | Separate Python 3.11 environment with `bpy==4.3.0` and `numpy==1.26.4` |-| Image tools | Separate environment using [`requirements-surfaces.txt`](requirements-surfaces.txt) |-| Viewer inspection | A WebGL-capable browser |+[Public preview gallery](https://github.com/img2threejs/img2interior-media) · [Bundled gallery and limitations](docs/showcase/README.md)-The harness does not install Blender/Python dependencies or build a viewer for you. Follow the [environment setup](reference/production-runbook.md#2-prepare-project-local-environments) before native authoring. Availability of compatible Blender wheels depends on the platform.+## Copy-and-use prompt-### 1. Install from source+1. **Install and activate the skill** using the [installation instructions](#installation). Your agent must be able to read images, execute local commands and inspect a real browser.+2. **Open your project**, outside the plugin checkout. Attach **one interior reference image** you have permission to use.+3. **Copy the entire prompt below.** No room-specific placeholders, JSON specification or Python builder to prepare yourself; the agent authors those inputs.-Access to the private `img2threejs/img2interior` repository is required for this installation method. Keep the checkout in a persistent location. An extracted source archive can also be installed with `add --link` as described in the [installation guide](reference/installation.md).+```text+Use the installed img2-interior skill to reconstruct the attached room+reference as an editable 3D interior and a working Three.js viewer in+this project. Complete the workflow, not just a plan or a Blender file.-The commands below install the harness and register the skill with agent hosts. They change local harness/host configuration. If a compatible harness is already installed, skip the `install` command.+Read the installed SKILL.md and its required reference guides first.+Confirm that you can see the image and access the required agent tools,+img2 harness, native authoring environment, image tools and WebGL browser.+Set up missing dependencies only in project-local environments. If a+required image, permission or compatible runtime is unavailable, report+the exact blocker instead of inventing progress or substituting a room.-```sh-git clone https://github.com/img2threejs/img2interior.git "$HOME/img2interior"-npx --yes @img2threejs/[email protected] install --yes-npx --yes @img2threejs/[email protected] add --link "$HOME/img2interior" --yes-npx --yes @img2threejs/[email protected] doctor --json-npx --yes @img2threejs/[email protected] sync --check-```+Inspect the actual pixels. Identify the composition, camera, room shell,+furniture, materials and lighting. Preserve the source and its provenance.+Document estimated metre scale, dimensions, hidden surfaces and other+single-view assumptions. Make reasonable labeled estimates; ask only+when a material requirement cannot be decided safely.-The plugin ID is `interior`; the agent-facing skill is `img2-interior`. Keep the linked checkout in place and restart your agent session after installation. See [installation and removal](reference/installation.md) for maintenance commands and isolated installation verification.+Author scene-specific, editable geometry and physically based materials.+Do not reuse a bundled room as the answer, put the reference on furniture+cards, or ask me to write the scene specification or builder. Use suitable+permitted resources, keep their provenance, and preserve unrelated files.-### 2. Start a reconstruction+Render, open the images, compare against the reference and repair causes+in camera/composition, geometry, then materials/lighting order. Inspect+lateral and reverse views as well as the source view. Repeat the relevant+reviews and regenerate affected bakes/exports after changes. A passing+build, audit or score does not establish visual fidelity.-Create or open a project directory **outside the plugin checkout**. Start your agent there, attach a reference image, and give it an assignment such as:+Deliver all three products: a packed editable Blender master; a runtime+GLB with every required sidecar and the working Three.js viewer; and a+separate static portable GLB. Follow all eight review stages and the+three blocking gates on current evidence without relaxing their checks.-> Use img2-interior to reconstruct this reference as an editable room with a working Three.js viewer. Document estimated dimensions and unseen geometry. Compare renders against the reference and repair visible differences. Deliver the packed Blender master, runtime GLB with its dependencies, and a portable GLB; verify that each opens in its intended consumer.+Launch and inspect the actual viewer. Exercise navigation, source view,+wireframe, reset, applicable material/curtain controls, errors/retry and+downloads at desktop and narrow widths. Reopen the native and portable+files in independent consumer sessions and inspect actual renders.-The agent authors the scene specification and Python builder; you do not need to prepare those files yourself. For the full sequence, including resource acquisition, rendering, baking, browser checks, and export, see the [production runbook](reference/production-runbook.md).+Hand off artifact locations, setup/launch/reproduction commands, observed+verification evidence, resource notices and remaining visual/technical+limits. Distinguish estimates, emulation and untested claims from proof.+Do not claim exact recovery, universal photorealism or mobile performance.-## Workflow+Do not use paid services, upload private images, publish packages, deploy+publicly or change global configuration without separate authorization.+```-1. **Inspect the reference:** record provenance, visible anchors, camera estimates, and uncertainty.-2. **Author and refine:** build scene-specific geometry and PBR materials; compare renders and revise the scene.-3. **Bake and export:** produce lighting data and separate native, runtime, and portable outputs.-4. **Integrate and verify:** exercise the viewer, reopen exported files, and check the delivery inventory.+**Keep the same workspace when continuing.** For a revision, describe the visible difference to fix; the skill should resume its recorded workflow, preserve evidence and revisit affected stages rather than initialize a new project. The prompt standardizes execution, not the artistic quality of every result.-Review gates track stage order and current evidence. They do not measure aesthetic quality or replace visual inspection. Bundled examples are fixtures and source-specific recipes, not substitutes for reconstructing a new image.+## What you get-## Documentation+| Product | Use it for | What travels with it |+| --- | --- | --- |+| **Packed Blender master** (`.blend`) | Edit geometry, cameras, materials and lighting | Native scene with packed images; editable rather than flattened into a reference picture |+| **Runtime scene + Three.js viewer** | Explore the authored room in a browser | Runtime GLB, declared lightmaps/probe/other sidecars, viewer code and applicable controls |+| **Portable GLB** | Open a standalone model in another glTF consumer | Embedded static baked appearance; no browser cloth state or full native PBR relighting |-| Guide | Contents |-| --- | --- |-| [Installation and npm release plan](reference/installation.md) | Source installation, access models, release preparation, updates, and removal |-| [Production runbook](reference/production-runbook.md) | Environment setup and end-to-end commands |-| [Agent instructions](SKILL.md) | Skill entry point and stage-specific guidance |-| [Scene contract](reference/scene-contract.md) | Scene specification and Python builder interface |-| [Resources](reference/resources.md) · [Materials](reference/materials.md) | Asset acquisition, provenance, and PBR preparation |-| [Lighting and export](reference/bake-export.md) | Calibration, baking, probes, and output formats |-| [Viewer integration](reference/viewer-integration.md) | Three.js configuration and runtime behavior |-| [Delivery](reference/delivery.md) | Product contracts and independent consumer checks |-| [Verification record](VERIFICATION.md) · [Changelog](CHANGELOG.md) | Recorded checks, known limits, and changes |+The handoff also includes the scene specification and Python builder, source/assumptions, resource notices, evidence, commands and known limitations. Generated rooms and full-resolution assets live in **your project**, not in the plugin package. The two small documentation previews above are not downloadable scene assets.-## Contributing+## Installation-Bug reports are welcome through [GitHub issues](https://github.com/img2threejs/img2interior/issues), subject to repository access. Changes to proprietary portions require prior written authorization and agreed contribution terms; opening a pull request does not by itself grant a license or assign copyright. The Apache-2.0 exceptions retain their own contribution terms.+### Before you start-For a bug report, include the plugin and harness versions, operating system, relevant command, expected result, actual result, and a minimal reproduction. Remove credentials, private images, client assets, and identifying project paths before sharing logs or artifacts.+| Component | Requirement |+| --- | --- |+| Agent | Image-capable Claude Code, Codex or OpenCode, configured through img2; command execution and browser/image inspection tools |+| Harness | img2 ≥0.4.0, core API 1 |+| CLI / viewer | Git, npm and Node.js 18, 20 or ≥22; prefer a supported LTS release |+| Audit / workspace tools | Python ≥3.10 |+| Native authoring | Separate Python 3.11 environment with `bpy==4.3.0` and `numpy==1.26.4` |+| Image tools / preview | Separate environment from `requirements-surfaces.txt`; a WebGL-capable browser |-For a pull request, describe the behavior being changed and the checks you ran. Keep generated scenes, downloaded resources, dependency directories, and local environments out of commits. Add a regression test when fixing a consumer-visible defect; update affected documentation.+The harness registers the skill; it does not install bpy or create the finished app. The agent follows the bundled [environment setup](reference/production-runbook.md#2-prepare-project-local-environments) and preflight before authoring. Compatible Blender wheels must exist for your platform. Obtain written authorization for the proprietary portions before installing or using them.-### Local checks+### Available now: private source or supplied source archive-Run these commands from the repository root. Set `IMG2_HARNESS_SOURCE` to the absolute path of a compatible [img2 source checkout](https://github.com/img2threejs/img2); the [CI workflow](.github/workflows/ci.yml) records the pinned SDK revision used in automation.+For the Git method, you need read access to `img2threejs/img2interior` and authenticated Git credentials. These commands register the skill with local agent hosts, so they change local harness/host configuration. Keep the checkout in a persistent location. If you already have a compatible harness, skip its `install` command; if you already have the checkout, do not clone over it.```sh-export IMG2_HARNESS_SOURCE=/absolute/path/to/img2-python3 -m venv .venv-. .venv/bin/activate-python -m pip install -r requirements-surfaces.txt-python -m unittest discover -s tests -v-npm ci --prefix runtime/viewer-npm run build --prefix runtime/viewer-VIEWER_ROOT="$PWD/runtime/viewer" node --test tests/viewer/*.test.mjs-python scripts/verify_install.py --harness-source "$IMG2_HARNESS_SOURCE"+git clone https://github.com/img2threejs/img2interior.git "$HOME/img2interior"+npx --yes @img2threejs/[email protected] install --yes+npx --yes @img2threejs/[email protected] add --link "$HOME/img2interior" --yes+npx --yes @img2threejs/[email protected] doctor --json+npx --yes @img2threejs/[email protected] sync --check```-Native regression tests additionally require the separate authoring environment. Set `IMG2_BLENDER_PYTHON` to its Python executable before running the Python suite. Missing optional environments produce skips; they are not passing native checks. Tests and builds do not replace a changed-path rendering or browser check.+Restart the agent session, open your project and use the prompt above. The registry ID is **`interior`**; the agent-facing skill is **`img2-interior`**. An authorized source archive uses the same `add --link` flow after extraction. See [installation and removal](reference/installation.md) for archive paths, updates and cleanup.-To build an installable source archive:+### Planned: private npm payload-```sh-python3 scripts/package_plugin.py-```+The intended npm package will contain the **skill implementation and bundled guides**, not a public installer that still fetches private GitHub source. Authorized consumers will need npm authentication and package read access, rather than GitHub source access. Package readers can inspect downloaded code; private distribution is access control, not code encryption.-The ZIP and `SHA256SUMS` are written to `dist/`. Building an archive does not publish a release, an npm package, or a catalog entry.+**No npm package name/version or install command is advertised yet.** The package, access policy and consumer installation must be verified before those instructions go live. Installing an arbitrary npm package also does not register a skill automatically; registration uses the official img2 harness. Maintainers: follow the [private npm release checklist](reference/installation.md#private-npm-release-checklist).-## Limitations+## Guides-- **Single-view ambiguity:** dimensions, hidden geometry, and material properties are estimates unless supported by additional evidence.-- **No fidelity guarantee:** machine checks validate declared contracts, not likeness, physical accuracy, or photorealism.-- **Static lighting:** baked indirect lighting and probes do not provide fully dynamic global illumination. Portable exports preserve a static appearance, not the native material setup.-- **Scoped interaction:** optional curtain simulation uses a position-based rail approximation; it is not a general cloth solver or arbitrary-rig system.-- **Project-specific budgets:** output size and performance depend on the scene. Example reconstructions do not establish mobile-device performance or universal platform support.+Detailed guides are **bundled with the installed skill**; ask the agent to read them there. Their GitHub links require separate repository access. The public previews do not require that access.-## Support and security+| Guide | Start here when… |+| --- | --- |+| [Installation and release](reference/installation.md) | Installing, updating, removing, or preparing the private npm payload |+| [Production runbook](reference/production-runbook.md) · [Agent entry point](SKILL.md) | Running or resuming the complete reconstruction |+| [Scene contract](reference/scene-contract.md) | Understanding editable scene inputs and the Blender builder |+| [Resources](reference/resources.md) · [Materials](reference/materials.md) | Selecting assets, recording rights, and preparing PBR surfaces |+| [Bake / export](reference/bake-export.md) · [Viewer](reference/viewer-integration.md) | Understanding the native/runtime/portable split |+| [Delivery](reference/delivery.md) · [Verification record](VERIFICATION.md) | Checking consumer evidence and the scope of previous verification |+| [Changelog](CHANGELOG.md) · [Maintainer checks](reference/installation.md#maintainer-checks) | Reviewing changes or validating a contribution |-Use [issues](https://github.com/img2threejs/img2interior/issues) for usage questions and reproducible bugs. For security-sensitive reports, contact the repository owner privately rather than posting secrets or private artifacts in an issue. Read [SECURITY.md](SECURITY.md) for trust boundaries before running authored Python or processing external assets.+## Limits to understand-Paid generation, private uploads, purchases, deployment, and redistribution of reference images require separate authorization. Running the reconstruction workflow does not grant those permissions.+- **One image is incomplete evidence.** Dimensions, hidden geometry, camera and material properties are estimates unless additional evidence is supplied.+- **Visual review is required.** Contract gates catch stale or inconsistent deliverables; they cannot prove likeness, physical accuracy or photorealism. The showcase is not a universal benchmark.+- **Lighting and exports differ.** Indirect bakes/probes are static. The portable product does not preserve every native material or browser interaction.+- **Interaction is scoped.** Optional rail-mounted curtains use a position-based approximation, not a general cloth solver.+- **Performance is scene-dependent.** Desktop or narrow-viewport captures do not certify physical phones, arbitrary hardware or production network performance.-## License+## Support and contributions-Version **0.3.0** uses a [mixed license](LICENSE), not a blanket open-source license:+Repository members can use [issues](https://github.com/img2threejs/img2interior/issues) for reproducible bugs. Include plugin/harness versions, OS, the command, expected/actual behavior and a minimal reproduction. Remove credentials, private references, client assets and identifying paths. Package access alone does not grant access to private GitHub issues; npm-only consumers should ask their package administrator to forward reports to the maintainer.-- **Proprietary portions:** original plugin instructions, documentation, workflow/resource tools, and viewer code are **All rights reserved**, except for material covered by prior grants. Use, modification, or redistribution requires prior written authorization; this notice grants no general evaluation or commercial license.-- **Apache-2.0 exceptions:** `authoring/`, `recipes/`, `examples/`, the native authoring/inspection CLIs, the native test module, and the authoring requirements remain under [Apache License 2.0](licenses/Apache-2.0.txt). The exact paths are listed in `LICENSE`.-- **Earlier grants:** the change does not revoke Apache-2.0 rights already granted for earlier revisions, including `0.2.0` and earlier material reused later.+Report security-sensitive information privately to the repository owner; read the bundled [security policy](SECURITY.md) before executing authored Python or consuming external resources. Paid generation, uploads, public deployment and redistribution need their own authorization.-GitHub/npm access does not replace permission to use proprietary portions. Obtain written authorization before following installation or usage instructions for those portions. For a future npm payload package, use `SEE LICENSE IN LICENSE` metadata and include both license files; an installer-only package has its own separately reviewed license.+Contributions to proprietary portions require prior written authorization and agreed terms. Keep generated projects, dependencies and private evidence out of commits; the approved documentation previews are the explicit exception. Describe the behavior changed and checks exercised. Apache-2.0 exceptions retain their own contribution terms; see [maintainer checks](reference/installation.md#maintainer-checks).++## License-Apache-2.0 is compatible with GPLv3, not GPLv2-only. Blender/Python API integrations and combined distributions still require review against [Blender's licensing requirements](https://www.blender.org/about/license/#add-ons); this mixed-license notice is not a GPL exception or a legal compliance certification.+Version **0.3.0** uses a [mixed license](LICENSE), not a blanket open-source license. Original proprietary portions require prior written authorization; GitHub/npm access is not a usage license. The listed Blender authoring, recipe/example and native-tool exceptions retain [Apache-2.0](licenses/Apache-2.0.txt), and earlier Apache-2.0 grants are not revoked. Exact paths and terms are in `LICENSE`.-Third-party dependencies, assets, and reference images retain their own licenses and permissions. The plugin does not claim ownership of user-created artwork merely because it processes it; copied plugin code and third-party assets retain their terms. Poly Haven's CC0 asset license is separate from its API terms; see the [resource guide](reference/resources.md).+The mixed-license notice is not a Blender GPL exception or a legal compliance certification. Dependencies, assets and references retain their own rights. The plugin does not claim ownership of your artwork merely because it processes it; copied code and third-party content retain their terms. Public showcase images grant neither access to the implementation nor rights to unpublished scene assets.diff --git a/docs/showcase/README.md b/docs/showcase/README.mdnew file mode 100644index 0000000..1b05828--- /dev/null+++ b/docs/showcase/README.md@@ -0,0 +1,31 @@+# Showcase — Oak / Linen Living Room++These previews are bundled with the skill so authorized package readers can open them locally without GitHub source access. Open this file in a Markdown viewer or ask the agent to open the adjacent WebP images. The landing-page README uses the identical images from the separately authorized [public media repository](https://github.com/img2threejs/img2interior-media).++## Reference → editable native scene++++**Left:** the approved AI-generated design reference, not a photograph or measured survey. **Right:** a real render after reopening the packed Blender deliverable in a separate consumer session. The previews were resized/compressed and labeled, not AI-retouched or relit for presentation.++## Working browser project++++This is a static capture of the actual project, not a public live demo or an interactive image. Visible download controls refer to that project; no Blender/GLB downloads are published with this gallery.++## What this example establishes++This is the **original Oak / Linen living-room research study** whose scene-specific authoring was extracted into the packaged recipe and whose observed repairs informed the [workflow lessons](../../reference/showcase-lessons.md). It used actual Blender/Python geometry, PBR preparation, baking/export and project-specific Three.js integration. These previews do not represent a new execution of the packaged 0.3.0 skill or the README's revised prompt. Version 0.3.0's licensing/documentation revision is not a rendering-quality upgrade.++The case is intentionally source-specific. Its recipe is guarded by the original reference hash; a different room needs newly authored geometry and materials, not this living room reused as a fallback. See the [recipe boundary](../../reference/oak-linen-recipe.md).++## Limits++- Framing, room proportions, sofa/pillow forms, fabric folds and lighting differ from the reference. Single-view dimensions, unseen surfaces, material properties and the garden were authored estimates.+- Baked indirect lighting and the environment probe remain based on open curtains. Curtain interaction is approximate and does not rebake global illumination.+- The portable GLB has a static baked appearance; macro fabric detail and transmission differ from native/runtime materials. It does not carry live curtain physics or sofa-color state.+- The original study is a large research payload, not a lightweight deployment benchmark. Desktop and emulated narrow-viewport captures do not certify physical phones, arbitrary hardware or production networks.+- Example-specific counts, material settings and acceptance measurements are not universal quality thresholds. Passing structural/export checks does not establish visual fidelity for a new image.++Only two optimized documentation images are bundled here. Full-resolution references, native/GLB assets, textures, private paths and production reports remain outside the package. Plugin access and third-party content retain their respective terms; see the [license](../../LICENSE). Public previews grant no rights to unpublished implementation or scene assets.diff --git a/docs/showcase/living-room-comparison.webp b/docs/showcase/living-room-comparison.webpnew file mode 100644index 0000000..be1ad8fBinary files /dev/null and b/docs/showcase/living-room-comparison.webp differdiff --git a/docs/showcase/living-room-viewer.webp b/docs/showcase/living-room-viewer.webpnew file mode 100644index 0000000..afd9f59Binary files /dev/null and b/docs/showcase/living-room-viewer.webp differdiff --git a/reference/installation.md b/reference/installation.mdindex eeb33ab..e0116c0 100644--- a/reference/installation.md+++ b/reference/installation.md@@ -2,30 +2,30 @@## Requirements-- img2 harness/CLI >=0.4.0, Node.js >=18, Git, Python >=3.10.-- A configured Claude Code, Codex or OpenCode host. Hermes is not supported by this harness.+- img2 harness/CLI >=0.4.0, core API 1, Node.js 18, 20 or >=22, npm, Git and Python >=3.10. Prefer a supported Node LTS release.+- A configured, image-capable Claude Code, Codex or OpenCode host with command execution and browser/image inspection. Hermes is not supported by this harness.- Production native tools: isolated Python 3.11/bpy 4.3.0/NumPy 1.26.4 (`requirements-authoring.txt`); separate NumPy/Pillow image environment (`requirements-surfaces.txt`). Audit/state tools remain stdlib plus core API 1.-- Workspace-local pinned npm dependencies and a real WebGL browser for the viewer/validator. The pinned viewer accepts Node 18, 20 or >=22; production preflight checks the actual binary. See [production setup and commands](production-runbook.md); a harness install does not silently install bpy, image packages or a web app.+- Workspace-local pinned npm dependencies and a real WebGL browser for the viewer/validator. See [production setup and commands](production-runbook.md); a harness install does not silently install bpy, image packages or a web app. Compatible Blender wheels must exist for your platform.- Version 0.3.0 uses the repository's [mixed license](../LICENSE): proprietary portions require prior written authorization. GitHub or npm access alone does not grant usage rights; Apache-2.0 exceptions and earlier grants remain effective.## Install the private source checkout-Access to `img2threejs/img2interior` is required. Use authenticated HTTPS Git credentials (or an authorized SSH key); never put access tokens in a remote URL. Linking does not make the source public.+Access to `img2threejs/img2interior` is required. Use authenticated HTTPS Git credentials or an authorized SSH key; never put access tokens in a remote URL. Linking does not make the source public. Keep the checkout in a persistent location outside authored projects.```shgit clone https://github.com/img2threejs/img2interior.git "$HOME/img2interior"npx --yes @img2threejs/[email protected] install --yesnpx --yes @img2threejs/[email protected] add --link "$HOME/img2interior" --yes-npx --yes @img2threejs/[email protected] doctor+npx --yes @img2threejs/[email protected] doctor --jsonnpx --yes @img2threejs/[email protected] sync --checknpx --yes @img2threejs/[email protected] capabilities --from-kind image --to-kind interior-scene-candidate --plugin interior --json```-If the harness already exists, the first command preserves that checkout; it is not an upgrade command. Check its compatibility before adding. Restart the agent session after linking.+These commands change local harness/host configuration. Skip `install` if a compatible harness already exists; it is not an upgrade command. Do not clone over an existing checkout. Restart the agent session after linking, open the authored project, attach an image and use the [standard prompt](../README.md#copy-and-use-prompt).`interior` is the manifest/registry ID, `img2-interior` the harness-derived skill name, and `img2interior` this repository's name. The host link points through `$IMG2_HOME/plugins/interior/` to this persistent checkout. Do not move/delete a linked source. `_img2_local.py` in root/tools is generated and ignored, not committed or distributed.-This release supports persistent checkout/archive installation. Source hosting, including a private GitHub repository, does not publish an npm package or register the plugin in the official catalog. Do not run `img2 add interior` until an actual catalog entry exists. An extracted release archive installs with the same `add --link /absolute/extracted/img2interior` command.+An authorized source archive installs through the same official CLI: extract it into a persistent directory and pass that extracted `img2interior` directory to `add --link`. Use its actual absolute path, not the ZIP path. Source hosting and archives do not create an npm package or catalog entry; do not run `img2 add interior` before a catalog entry exists.## Inspect and remove@@ -39,50 +39,51 @@ Local links are live; `update` does not fetch them. Removal unregisters owned li## Project boundary-Keep the current directory in the authored project. Resolve `SKILL_DIR` from the linked skill, then call its tools by absolute path. Do not `cd` into the plugin and initialize a room there. All plugin state is in the project's `.img2/state.json`, under `plugins.interior`; receipts are under `.img2/artifacts/interior/`.+Keep the current directory in the authored project. Resolve `SKILL_DIR` from the linked skill, then call its tools by absolute path. Do not initialize a room inside the plugin. Project state is in `.img2/state.json`, under `plugins.interior`; receipts are under `.img2/artifacts/interior/`.-`interior_project.py start` pins a supplied image; the agent authors its intake/spec/builder and executes the full loop. `install-viewer` and the explicit hash-guarded `use-recipe` copy owned templates into W with preflight collision checks. A new image is never routed to the old room. Keep environment/dependency/build installs local and do not turn the installed plugin into the generated app.+`interior_project.py start` pins a supplied image; the agent authors intake/spec/builder and executes the full loop. `install-viewer` and the explicit hash-guarded `use-recipe` copy owned templates into the workspace with preflight collision checks. A new image is never routed to the old room. Keep dependency/build installs local; the installed plugin is not the generated app. On resume use the recorded workflow's `next` operation rather than initialize again.-## Isolated installation proof+## Private npm release checklist-```sh-python3 scripts/verify_install.py --harness-source /absolute/path/to/img2-```--This runs the official CLI with a temporary HOME/IMG2_HOME and three temporary host configurations; it does not alter real host settings or launchers. It checks install/add, registry identity, host links, doctor, sync, capability resolution and removal. Use a Git checkout of the harness, not a random Python directory.+**Chosen distribution model:** private GitHub development plus a **private scoped npm payload** containing the implementation. No npm package metadata, payload release or catalog entry exists yet; source/archive installation remains the available method. A public wrapper that fetches private GitHub source is not the intended consumer flow.-## Release and catalog boundaries+The historical npm Enterprise product [was sunset](https://docs.npmjs.com/configuring-your-registry-settings-as-an-npm-enterprise-user/). For npm registry distribution, obtain a current user/organization plan supporting private packages, then configure package read/write permissions and authentication. A plan purchase is not a usage license, automatic package publication or code encryption. Do not confuse this with a separately configured GitHub Packages registry.-Keep the repository private unless its owner separately authorizes a visibility change. Repository hosting and source ZIPs do not create an npm package, semver-tagged release or catalog entry. Request those operations separately; if an npm convenience installer is authorized, use the harness's official `create-img2-plugin-cli`, not a parallel custom installer.+1. **Confirm the real name, registry and access policy.** Select an owned scoped package name and exact version. Keep plugin ID `interior` and skill name `img2-interior`; align package and plugin versions. Do not advertise a copy/paste npm install command until that real version is published and consumer-tested.+2. **Package the implementation, not a Git-fetch wrapper.** Use a reviewed root `package.json` and explicit file allowlist. Include `plugin.json`, `SKILL.md`, steps/gates, tools, authoring helpers, resource library, viewer/templates, required recipes/examples, references, dependency manifests, README, `docs/showcase/`, root `LICENSE` and `licenses/Apache-2.0.txt`. Include needed scripts/fixtures without generated state. Exclude credentials, generated `_img2_local.py`, environments, `node_modules`, builds, private production reports, full-resolution references and generated scenes.+3. **Keep access and license metadata correct.** Use `license: "SEE LICENSE IN LICENSE"` and `publishConfig.access: "restricted"` for the scoped private payload. `private: true` prevents npm publication; it is not the switch for a publishable private package. Preserve Apache-2.0 exceptions, earlier grants and third-party notices; review Blender/Python API and combined-distribution obligations with qualified counsel. This documentation is not a GPL compliance certification.+4. **Review the actual tarball.** Run `npm pack --dry-run`, build the tarball, inspect its complete file list and install that exact artifact in an isolated consumer. The source ZIP packager is a separate format, not proof of an npm package. Reopen the bundled guides/gallery without GitHub access; verify license files, image paths and required runtime dependencies.+5. **Authorize and perform the first publication separately.** Use explicit restricted access, reviewed bytes, package write permission and the account's required authentication/2FA. Do not publish merely to preview the README. For CI, review current [trusted-publishing support](https://docs.npmjs.com/trusted-publishers/) for the selected registry/account and workflow; never commit credentials or assume an OIDC flow has been configured. Private source repositories do not support npm provenance attestations; keep provenance disabled rather than claim an attestation exists.+6. **Test authenticated consumer registration after publication.** Use the official `img2 add` provider with the published package's exact `npm:` source. Harness 0.4.0 resolves packages with `npm view` and `npm pack`; verify the intended npm registry/auth configuration in practice. Test without GitHub source credentials, plus doctor, sync, capability resolution, update and removal. Packages outside the default `@img2threejs` scope require explicit source approval. Check an unauthorized npm reader fails without partial registration; do not weaken access or use `--force` to conceal failures.+7. **Keep versions immutable and update real instructions.** Record the package version/integrity, verify authorized and unauthorized reads, then replace the README's planned status with the tested install command. Use the official harness for registration; `npm install` alone is not host skill registration. A package release does not register an img2 catalog entry.-## npm release plan+### README and showcase delivery-The GitHub repository stays private. npm is the intended installer channel, but this plugin does not yet include a generated npm installer or a published npm release. The source installation above remains the available path.+npm renders a root README using [GitHub Flavored Markdown](https://docs.npmjs.com/about-package-readme-files/). A GitHub README change does not update a published npm version until a new package release. Relative private-GitHub image URLs do not grant npm readers GitHub access.-### Choose the artifact and access model+The landing page therefore embeds **public HTTPS previews pinned to an immutable commit** in the separately authorized [media repository](https://github.com/img2threejs/img2interior-media). Only optimized previews and captions are public, never implementation, GLBs, textures, full-resolution inputs or private reports. The same image bytes are included in `docs/showcase/` for local viewing; see the [gallery](../docs/showcase/README.md). Test image delivery without GitHub/npm credentials and keep alt text/captions accurate. No signed expiring image URLs, unpublished package URLs, CI badges implying public access, or unverified live-demo links.-| Model | What npm distributes | What users need |-|---|---|---|-| Public installer, private GitHub implementation | Only the CLI, package metadata, and public README/license | Authorized HTTPS Git access to this repository |-| Public payload package, private GitHub development | The plugin implementation itself | Public npm access; included code is no longer private |-| Private payload package, private GitHub development | The plugin implementation, restricted by npm permissions | A paid npm user/organization account, npm authentication, and package read access |+Detailed guides ship with the private payload. Their source links may require GitHub access; npm-only consumers should ask their agent to open the installed guides. Public media access grants neither plugin permission nor access to unpublished scene assets. Updating previews is separate from changing source-repository visibility.-The recommended private-source model is the first row, using the official installer generator. A public installer does not grant access to a private Git repository. A private npm payload can avoid GitHub access for consumers, but package readers can still inspect downloaded code. These access controls are separate from the mixed license: proprietary portions require written authorization, while the listed Apache-2.0 exceptions and prior grants remain effective.+## Maintainer checks-See npm's [private package requirements](https://docs.npmjs.com/about-private-packages). Decide on payload visibility and licensing before authorizing the first publish.+Run from the plugin root. Set `IMG2_HARNESS_SOURCE` to a compatible img2 Git checkout; the [CI workflow](../.github/workflows/ci.yml) records the pinned revision. Install image dependencies in a project-local environment before the Python suite.-### Prepare an installer release+```sh+export IMG2_HARNESS_SOURCE=/absolute/path/to/img2+python3 -m venv .venv+. .venv/bin/activate+python -m pip install -r requirements-surfaces.txt+python -m unittest discover -s tests -v+npm ci --prefix runtime/viewer+npm run build --prefix runtime/viewer+VIEWER_ROOT="$PWD/runtime/viewer" node --test tests/viewer/*.test.mjs+python scripts/verify_install.py --harness-source "$IMG2_HARNESS_SOURCE"+python scripts/package_plugin.py+```-1. **Confirm ownership and versions.** Choose an available npm package name owned by the maintainer or organization. Keep the plugin ID `interior` and skill name `img2-interior`. Select a reviewed plugin semver tag or full commit SHA; do not make an installer silently track an unreviewed branch.-2. **Generate the official wrapper.** Use `create-img2-plugin-cli` from a reviewed img2 version with `--private-repo`, `--source img2threejs/img2interior`, an explicit `--ref`, and a reviewed full `--workflow-ref` SHA. The generator creates `cli/`, its tests/public README/license, a publish workflow, and `CLI_QUICKSTART.md`; none of these have been generated in this repository yet.- Review the generated wrapper's own license separately: the SDK template includes Apache-2.0 terms, which neither relicense the proprietary plugin payload nor permit removal of upstream notices. If distributing the mixed-license payload through npm, use `license: "SEE LICENSE IN LICENSE"` and include the root `LICENSE` and `licenses/Apache-2.0.txt`; do not label the whole payload Apache-2.0 or imply that every file is proprietary.-3. **Review the tarball, not just the repository.** Run the generated CLI tests and `npm pack --dry-run` from `cli/`; inspect the actual packed tarball and test that artifact in an isolated consumer. Allow only the intended installer files and required package metadata/documentation. Do not include the plugin payload, credentials, workspace state, references, scene assets, or environments. Do not publish from the plugin root.-4. **Authorize the first publish.** Use an npm account with package write access and 2FA. Follow the generated quickstart for the reviewed package name, explicit access setting, and first manual release. For this public-wrapper model, the access setting is `public`; publishing is a separate authorized operation, not part of installing or testing the skill.-5. **Configure tokenless CI releases.** After the package exists, configure npm trusted publishing for this repository's exact caller workflow filename and the required publish permission. Use a supported GitHub-hosted runner with `id-token: write`; do not store a long-lived npm write token. Trusted publishing requires Node ≥22.14.0 and npm ≥11.5.1; the SDK's current release-setup instructions require npm ≥11.15 for its trust-management command.-6. **Keep private-source provenance disabled.** Generate with `--private-repo` and retain `provenance=false`. npm trusted publishing supports authentication for this release flow, but npm provenance attestations are not supported for private source repositories, even when the npm installer is public.-7. **Verify and document consumer access.** Test dry-run/install/doctor/removal in isolated host directories with authorized HTTPS Git credentials; also check an unauthorized consumer fails without a partial plugin registration. npm authentication alone is not GitHub authorization. Keep credentials out of package contents, command URLs, logs, and public examples.-8. **Release immutable versions.** Plugin source tags use `vX.Y.Z`; generated installer release tags use `cli-vX.Y.Z`. Publish the exact tested tarball, record the installed source ref/integrity, and update public install instructions only after the package/version is available and verified. npm installation does not register a catalog entry.+Native regressions need the separate authoring environment: set `IMG2_BLENDER_PYTHON` to that Python executable before the suite. Optional-environment skips are not passing native checks. Tests/builds do not replace changed-path rendering or browser inspection.-Before authorizing a proprietary release, review the scope with qualified counsel, including rights to earlier Apache-2.0 material, the Blender/Python API boundary, retained upstream notices, and written end-user/contributor agreements. This documentation does not certify a combined distribution's GPL compliance.+`verify_install.py` runs the official CLI with temporary HOME/IMG2_HOME and three isolated host configurations; it does not alter real host settings or launchers. It checks install/add, identity, links, doctor, sync, capability resolution and removal. The source packager writes a deterministic versioned ZIP and `SHA256SUMS` under `dist/`, including both license files and the small documentation gallery, not generated scene assets. Neither command publishes anything.-Official references: [img2 wrapper contract](https://github.com/img2threejs/img2/blob/main/docs/WRITING_A_PLUGIN.md#10-plugin-cli-wrapper-optional), [npm trusted publishing](https://docs.npmjs.com/trusted-publishers/), and [npm provenance requirements](https://docs.npmjs.com/generating-provenance-statements/).+Official references: [private packages](https://docs.npmjs.com/creating-and-publishing-private-packages/), [package metadata](https://docs.npmjs.com/cli/v11/configuring-npm/package-json/), [npm provenance](https://docs.npmjs.com/generating-provenance-statements/) and the [img2 harness](https://github.com/img2threejs/img2).diff --git a/scripts/package_plugin.py b/scripts/package_plugin.pyindex 49dd338..9ddef9a 100755--- a/scripts/package_plugin.py+++ b/scripts/package_plugin.py@@ -8,7 +8,12 @@ import reimport sysimport zipfile-ROOT_FILES = ("plugin.json", "steps.json", "gates.json", "SKILL.md", "README.md", "LICENSE", "licenses/Apache-2.0.txt", "SECURITY.md", "CHANGELOG.md", "VERIFICATION.md", "requirements.txt", "requirements-authoring.txt", "requirements-surfaces.txt", ".gitignore")+ROOT_FILES = (+ "plugin.json", "steps.json", "gates.json", "SKILL.md", "README.md", "LICENSE",+ "licenses/Apache-2.0.txt", "SECURITY.md", "CHANGELOG.md", "VERIFICATION.md",+ "requirements.txt", "requirements-authoring.txt", "requirements-surfaces.txt", ".gitignore",+ "docs/showcase/README.md", "docs/showcase/living-room-comparison.webp", "docs/showcase/living-room-viewer.webp",+)TREES = ("tools", "authoring", "resources_lib", "runtime", "recipes", "reference", "examples", "tests", "scripts", ".github")@@ -60,7 +65,7 @@ def package(source, output):digest = hashlib.sha256(archive.read_bytes()).hexdigest()checksums = output / "SHA256SUMS"checksums.write_text(digest + " " + archive.name + "\n", encoding="utf-8")- return {"archive":str(archive), "sha256":digest, "bytes":archive.stat().st_size, "files":len(files), "format":"installable-source-zip", "excluded":[".git", "_img2_local.py", "__pycache__", ".img2", "credentials", "showcase-assets"]}+ return {"archive":str(archive), "sha256":digest, "bytes":archive.stat().st_size, "files":len(files), "format":"installable-source-zip", "excluded":[".git", "_img2_local.py", "__pycache__", ".img2", "credentials", "generated-scene-assets"]}def main():