Files
t5de-importer/CLAUDE.md
T
dhkatz 145ebf25c1
CI / build (push) Successful in 16s
Release / release (push) Successful in 3s
CI / image (push) Successful in 12s
feat: sign in to IMVU for Access Pass products (#4)
Co-authored-by: dhkatz <[email protected]>
2026-11-08 16:15:05 +00:00

41 lines
3.1 KiB
Markdown

# t5de-importer
T5DE's importer (see README.md): it imports IMVU products, with their creators' grants, into a T5DE catalog. Part of
T5DE; the design is t5de-hub's `docs/imports.md` and the hub's importer API is `docs/products.md` ("For importers")
(git.t5de.dev/t5de/t5de-hub, usually checked out beside this one); CFLs and product file rules are t5de-api's `cfl`
and `pack` packages; it uploads to a t5de-catalog.
## Rules
- Never commit IMVU's files or code: tests make their products in code (`internal/imvutest`: a minimal `index.xml`,
fake textures), never with files downloaded from IMVU.
- Never commit secrets (importer keys, key pairs, IMVU passwords, tokens). IMVU account passwords never reach the hub
readable: the console seals them for the importer's key, and the importer keeps them sealed on disk.
- Test with a throwaway IMVU account, never a real one.
- Every setting is set on the hub's console (the user wants everything configurable from a UI); environment
variables only for what's needed to reach the hub.
- Commits: author "dhkatz <dev@t5de.dev>"; never the user's real name or email.
- Changes reach main only through pull requests, squash-merged: the PR's title becomes the commit on main, so it must
be a conventional commit (`feat: …`, `fix(convert): …`, `docs: …`; `!` before the colon for a breaking change),
checked by `.gitea/workflows/pull-request.yml`. Commits on the branch can be anything. Push a branch and open the
pull request on git.t5de.dev (web UI or API); the user merges.
- Releases: release-bot keeps a `chore(release): vX.Y.Z` pull request open (`release.yml`, git-cliff from those
titles); merging it tags vX.Y.Z, which builds the image. Never tag by hand (v* tags are release-bot's).
- Follow t5de-hub's `docs/products.md` and `docs/imports.md` exactly; change them there first if the contract needs
to change.
- Dependencies: the standard library and t5de-api (with its own). Ask before adding others.
## Notes
- `gofmt`, `go vet ./...` and `go test ./...` must pass (CI checks them).
- IMVU's CDN (verified 2026-11-07, t5de-hub's docs/imports.md "Spike"): `productdata/<id>/<revision>` is the CFL
(every entry and the directory LZMA-compressed), `productdata/<id>/<revision>/<url>` the files `_contents.json`
gives a `url` (originals tagged `original`; files only on the CDN). Revisions are numbered from 1 without gaps so
far; the importer stops after 3 missing in a row. IMVU's `index.xml` has no `ProductRating`.
- IMVU's API, signed in (verified 2026-11-08): `POST /login {username, password, gdpr_cookie_acceptance,
remember_device}` sets session cookies (`osCsid`, ...); `GET /login/me` is the account. Sign-in works only with a
desktop browser's User-Agent (`imvu.BrowserUserAgent`; anything else gets 500 `OUTBOUND VALIDATION-004`, `sauce`
null), so signed-in requests send it. IMVU limits sign-ins: keep sessions, don't retry refused passwords. A
public profile's `is_ap` is false unless the member shows it; the account's own view says. Signed out, IMVU
hides Access Pass products (401) and leaves them out of shop listings; the CDN serves their files to anyone.