Files
t5de-importer/CLAUDE.md
dhkatzandClaude Opus 5.5 e8578e4a71
Pull request / title (pull_request) Successful in 1s
CI / build (pull_request) Successful in 31s
CI / image (pull_request) Skipped
feat: import IMVU products into a catalog
The importer from t5de-hub's docs/imports.md: says hello to the hub with its key pair, follows the console's config
(paused, rate, jobs at a time, IMVU accounts, whose sealed passwords it keeps), claims jobs, finds each product's
newest revision on IMVU's CDN, converts it (originals for placeholders, no _contents.json, ProductRating from IMVU's
rating), checks it by t5de-api's pack rules and uploads it to the catalog with an import token.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 06:04:48 -08:00

35 lines
2.4 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`.