# Official and installed documentation map

Installed declarations and package-bundled guides are authoritative for the versions actually resolved by `package-lock.json`; generated minimums and versioned baseline references are routing aids, not substitutes for the target installation.

## Reading without a frontend project

The CLI package is also a versioned knowledge distribution. Open a fixed-version file directly, for example the [0.3.3 technical Skill](https://unpkg.com/@realsee/vr-cli@0.3.3/skills/realsee-vr-app/SKILL.md), and follow its relative references at that same version. No CLI invocation, npm installation, account pairing or app generation is needed. A downloaded package snapshot can be extracted as files without executing install scripts. The example follows this CLI package version; existing projects retain their own installed or resolved versions.

For an existing project, read non-sensitive manifests/lockfiles and its local Skills first. Use the resolved SDK version, not a semver minimum or `latest`. If declarations are missing, read that exact public package version through a package-file URL or an extracted read-only package archive. For an explicit baseline assessment with no project, use the versions named below, label them as the reference baseline and record source URLs/version in the answer. If a target-version file cannot be obtained, mark that API claim unverified; do not silently substitute latest or force an upgrade. Node/npm are execution prerequisites, not knowledge prerequisites.

Example baseline sources (replace the version only with the target's resolved version):

- [Five 6.8.9 package metadata](https://unpkg.com/@realsee/five@6.8.9/package.json) and [AI context](https://unpkg.com/@realsee/five@6.8.9/AI_CONTEXT.md); follow its guide/type paths at the same version.
- [dnalogel 3.81.2 declarations](https://unpkg.com/@realsee/dnalogel@3.81.2/libs/index.d.ts); follow the selected plugin's declaration imports.
- [Three 0.117.1 declarations](https://unpkg.com/three@0.117.1/src/Three.d.ts).
- [Vapor 0.2.12 declarations](https://unpkg.com/@realsee/vapor@0.2.12/vapor.d.ts).

### HTTP archive fallback (no Node/npm)

When a direct package-file URL is unreadable, use already available HTTP/download and archive tools. A browser reader, curl or Python 3 standard library can retrieve npm registry JSON without the npm client. For the CLI example above, GET `https://registry.npmjs.org/@realsee%2Fvr-cli/0.3.3`; for an SDK, use `https://registry.npmjs.org/<URL-encoded-package-name>/<exact-version>` with its resolved version. Do not use a CLI version as an SDK version.

Check metadata `name` and `version`, download the HTTPS `dist.tarball` URL, and verify `dist.integrity` (or `dist.shasum` for older metadata). Use a separate temporary directory, inspect paths, and extract only needed regular files without following symlinks or hard links or permitting paths outside that directory. Confirm identity in `package/package.json`. CLI knowledge lives at `package/skills/realsee-vr-app/SKILL.md` and its relative references; preserve necessary sibling Skill directories. SDK guides and declarations retain their package-relative paths, so follow imports/references within the same extracted version.

Read these files as data. Do not run npm/npx/npm pack, the CLI, lifecycle hooks or bundled scripts, install Node/npm or app dependencies, generate an app or pair an account for this fallback. It needs network and download/extraction capabilities, not a JavaScript runtime. When those tools or the network are unavailable, use a verified local snapshot or name the missing source and leave the claim unverified. Make bounded attempts; do not repeatedly try CDNs or replace the version with latest. Record the source URL, version and verified checksum, and distinguish an unpublished local candidate from a public package with the same version number.

SDK signatures and lifecycle contracts come from matching packages. The native Five/no React adapter rule, React/Vapor layout, template paths, Fastify adapter and build commands below are this template's integration choices. For another business system, preserve its stack and map the SDK/security contracts to it. Only implementation in this generated template is subject to its exact structure/verifier.

## Five 6.8.9

Read locally when available, otherwise read the same files from the exact-version package:

1. `node_modules/@realsee/five/AI_CONTEXT.md`
2. `node_modules/@realsee/five/llms.txt`
3. the selected guide under `node_modules/@realsee/five/ai_guides/`
4. the matching public `index.d.ts` and referenced declaration

Public native package entry points are listed in [five-api-capabilities.md](five-api-capabilities.md). Although the package publishes framework adapters, this project intentionally forbids `@realsee/five/react`; verify behavior against the native `Five` declarations instead of copying adapter examples.

## Realsee image resources

Read the sibling portable Skill at [realsee-image-resources/SKILL.md](../../realsee-image-resources/SKILL.md) for image provenance, approved CDN domains, Five `defaultImageURLTransform`, 数据万象 processing and browser CORS. Its installed-Five checks complement this runtime map without changing Five or Three ownership boundaries.

## Three.js 0.117.1

Read `node_modules/three/package.json`, then `node_modules/three/src/Three.d.ts` and the selected declaration. Extension modules must be confirmed under `node_modules/three/examples/jsm`; this version has no `three/addons` export. Use the sibling portable Skill at `../../threejs-r117-five/SKILL.md` for the ten capability domains, Five ownership and modern-to-r117 migration guards.

The knowledge-domain taxonomy was inspired by [CloudAI-X/threejs-skills](https://github.com/CloudAI-X/threejs-skills), whose README targets r160+. The local Skill is independently rewritten and pinned to r117; upstream snippets are not a signature source.

## dnalogel 3.81.2

Read `node_modules/@realsee/dnalogel/libs/index.d.ts`, then the selected plugin's declarations and installed docs. Plugin return types and lifecycle methods are not uniform. For any spatial, VR or 3D request, inspect the installed preset catalog before writing native Five/Three code. Requests classified as tags, hotspots or anchors default to `PanoTagPlugin`; model annotations default to `ModelMakerPlugin`; route geometry uses `GuideLinePlugin`, point/keyframe playback uses `CruisePlugin`, and custom model-space curve playback uses `MovePlugin`. PanoTag content/anchors are declared under `libs/PanoTagPlugin/typings/tag/{TagData,Tag,Utils}.d.ts`; virtual-screen candidates include `ModelTVVideoPlugin`, `CSS3DRenderPlugin`, `PanoVideoPlugin` and, only after a preset gap is established, custom Five/Three plugins. The root catalog and decision workflow are in [dnalogel-api-capabilities.md](dnalogel-api-capabilities.md).

## Vapor 0.2.12

Use the installed package types for exact component props and the authorized Vapor component site for behavior. Vapor remains a DOM library; read [vapor-dom-layer.md](vapor-dom-layer.md).

## External indexes

- [Realsee OpenAPI reference](https://open-platform.realsee.com/developer/openapi/?id=1001) (authoritative 中文版 id=1001); its backing [OpenAPI specification](https://open-platform.realsee.com/api/open/1001/) is the machine-readable contract.
- [`POST /auth/access_token`](https://open-platform.realsee.com/developer/openapi/?id=1001#post-/auth/access_token): form-encoded `app_key`/`app_secret`; returns `{ code, status, data: { access_token, expire_at } }`; token TTL is 5 minutes, so cache it server-side.
- [`GET /open/v3/vr/info?resource_code=...`](https://open-platform.realsee.com/developer/openapi/?id=1001#get-/open/v3/vr/info): send the raw access token in the `Authorization` header; `data` carries the Work payload (`base_url`, `initial`, `model`, `observers`, `panorama`, `_signature`, `allow_hosts`, `certificate`, `expire_at`, `resource_code`).
- [`GET /open/v3/hot/list?resource_code=...`](https://open-platform.realsee.com/developer/openapi/?id=1001#get-/open/v3/hot/list): authoritative tag/hotspot/anchor data; response `data` contains `globalConfig`, `contentTypeConfig` and `tagList`, which must be validated against installed PanoTag declarations. Optional fields may be `null` even when the schema presents object types, so normalize `null` to absence before SDK validation.
- [`GET /open/v3/observerpicture/search?resource_code=...`](https://open-platform.realsee.com/developer/openapi/?id=1001#get-/open/v3/observerpicture/search): authoritative tour-point list under `data.list`. Each item has display metadata and nested pose `data` (`pano_index`, longitude, latitude, fov, heading and floor index); live responses may also contain nullable optional pose fields. Map only validated pose fields to Five `Partial<State>` with the active Work identity.
- [`GET /open/v3/annotation/search?resource_code=...`](https://open-platform.realsee.com/developer/openapi/?id=1001#get-/open/v3/annotation/search): authoritative model-annotation list under `data.list`. Records provide ids, `type`, object-valued `object_data`, labels and space identifiers; validate the geometry discriminator and finite coordinates before adapting to ModelMaker `{ list }`.
- `GET /open/v3/floorplan/plugins?resource_code=...`: returns a descriptor whose `data.format_floorplan_url` points to the preferred `{ version, data: FloorplanServerData }` plugin input. Do not read `format_model_url`; fetch the second-hop URL only as uncredentialed redirect-free HTTPS and validate the complete nested shape before exposing `capabilities.modelFloorplan`.
- [`GET /open/v3/route/search?resource_code=...`](https://open-platform.realsee.com/developer/openapi/?id=1001#get-/open/v3/route/search): authoritative route list under `data.list`, with optional `is_asc`. Records may provide ids, `pano_group`, `path`, `panorama_style_config`, `model_style_config` and `visible_floor_indexes`; the OpenAPI transport schema is not a dnalogel plugin input. Validate a selected product branch, adapt only its geometry to GuideLine, then independently build Cruise `{ panoIndexList }` or Move `{ path }` playback data. Do not use the annotation endpoint as a route source.
- OpenAPI route records are never passed raw: rename validated style config only for GuideLine `lines`, and never pass GuideLine `PathItem` arrays or style objects to `CruisePlugin` or `MovePlugin`.
- If a source record contains both `pano_group` and `path`, the route adapter must choose product semantics explicitly and pass only the selected geometry branch to GuideLine.
- For all three list APIs, HTTP success plus `code === 0` and an array `data.list` is the transport boundary. An empty array is ready-empty; malformed records or a nonzero business code are not empty success. The machine-readable source is the [OpenAPI V3 Chinese specification](https://open-platform.realsee.com/api/open/1001/).
- These authenticated OpenAPI calls are server-only. Use a typed BFF/data adapter, validate the envelope, and expose only the minimum same-origin browser contract. SDK-shaped custom data is allowed only after an explicit developer opt-out from Open Platform data.
- Gateway servers: `https://app-gateway.realsee.cn` (中文版) and `https://app-gateway.realsee.jp` (overseas ids 1002/1003).
- `/open/v1/entity/vr`, `/open/v1/work/download` and `/open/v1/work/sign` are archived in the reference; do not treat them as the current Work data contract.
- Realsee Open Platform and Five: https://open-platform.realsee.com/developer/docs/five/intro/
- Five package documentation: https://unpkg.com/@realsee/five@6.8.9/docs/index.html
- dnalogel package documentation: https://unpkg.com/@realsee/dnalogel@3.81.2/docs/index.html
- Vapor components: https://vapor.realsee.cn/?path=/docs/introduction--docs
- Agent Skills specification: https://agentskills.io/specification
- AGENTS.md format: https://agents.md/

Do not copy SDK source or documentation bodies into generated projects. Record version-specific integration decisions and link to installed or authoritative material.

## Model floorplan contract

The complete model floorplan contract lives in [dnalogel-api-capabilities.md](dnalogel-api-capabilities.md); follow it there rather than a copy that can drift.
