Commit Graph
4158 Commits
Author SHA1 Message Date
Neko Ayaka 6aba0dcb03 fix(stage-tamagotchi): cleanup tray related resources before app quit 2026-08-06 05:25:38 +08:00
Neko Ayaka f7212965da chore(deps): updated vishot to v0.2.0 2026-08-06 02:39:20 +08:00
LuluCursorautofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
ff7f64ace8 feat(server): add Steam OpenID sign-in and account linking plugin (#2226)
## Summary

Adds a self-contained better-auth plugin
(`server/apps/api/src/libs/auth-plugins/steam.ts`) implementing Steam
OpenID 2.0 sign-in, account linking, and callback verification via "dumb
mode".

Steam's web login is OpenID 2.0, not OAuth2/OIDC, so it cannot be
registered as a `socialProviders` entry, and better-auth has no plugin
hook for extending its OAuth2 endpoints with a non-OAuth2 protocol. The
plugin therefore adds the endpoints Steam's protocol needs: `POST
/sign-in/steam`, `POST /link/steam`, and `GET /steam/callback`.

- Callback verification uses OpenID "dumb mode"
(`openid.mode=check_authentication`): one extra round trip to Steam
instead of managing RSA association state.
- New sign-ups get a placeholder `<steamid64>@steam.placeholder.local`
with `emailVerified: true`, mirroring Apple Sign In's
`<sub>@apple.placeholder.local`.
- The plugin's request/query schemas use Zod; a `// NOTICE:` documents
that better-auth's OpenAPI generator is Zod-native. Steam verification
uses `ofetch`.
- Wires Steam into `apps/ui-server-auth` sign-in and profile "Connected
accounts", plus the shared `OAuthProvider` / `defaultSignInProviders` in
`packages/stage-ui`.
- Linking routes through `/link/steam` via the client's `$fetch`;
unlinking needs no special-casing (`/unlink-account` already takes a
free-form `providerId`).

No Steam Web API key is required for this browser-based flow.

We intentionally do not depend on community Steam packages (e.g.
`better-auth-steam`) or the still-open upstream draft
([better-auth#4877](https://github.com/better-auth/better-auth/pull/4877)).
Steam never returns an email, and we need sign-up that does not ask the
user for one plus first-class account linking; the available options
either require an email at sign-in, lack linking, or are abandoned /
blocked — shipping a small in-tree plugin is the safer auth dependency
for this requirement.

## Test plan

- [x] `pnpm exec vitest run
server/apps/api/src/libs/auth-plugins/steam.test.ts` — 6/6 passing
- [x] `pnpm -F @proj-airi/ui-server-auth exec vitest run` — 32/32
passing
- [x] `pnpm -F @proj-airi/stage-ui exec vitest run
src/libs/steam-auth-client.test.ts
src/composables/use-linked-accounts.test.ts` — 5/5 passing
- [x] `pnpm -F @proj-airi/api-server typecheck`
- [x] `pnpm -F @proj-airi/ui-server-auth typecheck`
- [x] `pnpm -F @proj-airi/stage-ui typecheck`

## Follow-ups

- Desktop Steam ticket sign-in (top of this stack): silent startup
ticket exchange for Steam builds; the server resolves or creates the
AIRI user for the verified SteamID before issuing an OIDC code.
- Steam persona name/avatar via `GetPlayerSummaries` inside the plugin,
if display names beyond `Steam User <id>` are wanted.

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-05 23:57:55 +08:00
Neko Ayaka b35a63b23e chore(.agents/skills): update existing skills 2026-08-05 20:46:16 +08:00
Neko Ayaka f7604edce8 chore(AGENTS.md): enfore simple-english 2026-08-05 20:45:44 +08:00
Neko Ayaka 774b2daf03 style: prevent use of .ts, .js import 2026-08-05 20:34:14 +08:00
Neko Ayaka f2d411ea22 chore(deps): updated eventa to v1.0.0-beta.14 2026-08-05 20:32:58 +08:00
Neko Ayaka b5ba112a6b chore(.agents/skills): updated to instruct how to make upload for vishot or agent-browser 2026-08-05 20:32:31 +08:00
Neko Ayaka 19b081c823 chore(AGENTS.md): updated 2026-08-05 20:31:08 +08:00
Neko Ayaka a9473f0cac chore(.agents/skills): upload GitHub attachment skill 2026-08-05 20:30:41 +08:00
Neko 55ea1767e4 fix(stage-ui-live2d): recover from model render failures (#2225) 2026-08-05 20:28:39 +08:00
Neko Ayaka 20d6158144 fix(docs): miss use of base for resolving author data 2026-08-05 16:05:26 +08:00
Ryanba 4421b5810b fix(stage-ui-live2d): read bundled model ZIPs as array buffers (#2224) 2026-08-05 15:39:34 +08:00
Neko Ayaka b4f9c53ad4 revert fix(electron): make remote inspector opening configurable 2026-08-05 03:35:10 +08:00
Neko Ayaka 0f20a2784b chore(deps): updated eventa to v1.0.0-beta.13 2026-08-05 00:49:14 +08:00
RainbowBird bd841d546f fix(electron): make remote inspector opening configurable (#2156) 2026-08-05 00:28:51 +08:00
Makitoandautofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> 42aaa514a6 chore(ci): add workflow to upload glossary to crowdin (#2220)
This pull request adds a workflow to upload the TBX output from the
glossary to Crowdin.

Improves #2148.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-05 01:26:30 +09:00
Neko Ayaka 4f7a9d63e9 chore(deps): updated eventa to v1.0.0-beta.9 2026-08-04 22:05:57 +08:00
Neko 5a56770f1c fix(stage-ui-live2d): support CJK paths in Live2D archives (#2219) 2026-08-04 22:05:40 +08:00
RainbowBird 2abb1ac9ff fix(server): index hot Postgres query paths (#2218) 2026-08-04 21:24:26 +08:00
Neko Ayaka e6ca9750b4 fix(.agents/skills): added vishot skills and create-pr guidelines 2026-08-04 20:59:49 +08:00
MilkyWeighWandNeko 727f84ee29 chore(docs): polish theme toggle, search morph & page transitions (#2205)
---------

Co-authored-by: Neko <neko@ayaka.moe>
2026-08-04 19:35:55 +08:00
Neko Ayaka 7de2e2bf46 chore(.agents/skills,AGENTS.md): new harness prompt 2026-08-04 19:24:12 +08:00
Neko Ayaka 55bd16e175 chore(.agents/skills): added more useful skills, remove old one 2026-08-04 19:24:11 +08:00
RainbowBird 04485788d0 perf(server): allow Neon to scale to zero when idle (#2217) 2026-08-04 10:58:27 +00:00
Neko Ayaka a239ebbb06 chore(ci): set allow-unsafe-pr-checkout for PR deploy 2026-08-04 18:08:55 +08:00
Weathercoldandgithub-actions[bot] <github-actions[bot]@users.noreply.github.com> 5f0076e3d4 chore(nix): update pnpmDeps hash (#2216)
Auto-generated by CI to keep Nix pnpmDeps hash up-to-date.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-08-04 10:07:00 +00:00
Neko Ayaka e289d87af8 chore(deps): updated 2026-08-04 17:52:19 +08:00
Neko 7dc8e2c4a3 refactor(stage-ui): improve onboarding, scrollable, and animated (#2215) 2026-08-04 17:51:15 +08:00
Neko 47c23e6467 feat(ui): add animated content primitive (#2212) 2026-08-04 17:48:17 +08:00
RainbowBird 4f4d256a49 perf(server): add query indexes and cache admin metrics (#2213)
Signed-off-by: RainbowBird <git@luoling.moe>
2026-08-04 17:31:16 +08:00
Lovehsigure_520 f66a18956b fix(stage-ui): hide provider setup in Steam onboarding (#2052) 2026-08-04 09:02:19 +00:00
Lovehsigure_520 9164ca1bab ci(stage-tamagotchi): add Steam desktop deployment workflow (#1827) 2026-08-04 16:44:40 +08:00
zhifu gao 5729350b6c fix(ui): support unset button size (#2207) 2026-08-04 15:38:23 +08:00
Neko e502efa301 fix(stage-tamagotchi): register router hot updates (#2211) 2026-08-04 15:37:58 +08:00
Neko 9ef61afcd6 fix(stage-tamagotchi): synchronize fade and click-through (#2210) 2026-08-04 15:10:24 +08:00
Neko Ayaka 93af669d14 fix(stage-pocket): guard for beatsync 2026-08-04 04:22:58 +08:00
Neko Ayaka 1226417768 refactor(*): new button 2026-08-04 03:24:32 +08:00
Weathercoldandgithub-actions[bot] <github-actions[bot]@users.noreply.github.com> faf96ef337 chore(nix): update pnpmDeps hash (#2201)
Auto-generated by CI to keep Nix pnpmDeps hash up-to-date.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-08-02 17:10:45 +00:00
Makito b26ea3123d feat(i18n): set up glossary (#2198)
This pull request introduces the initial glossary for the project to
improve the translation quality.

Implements #2148.

### TODOs

- [x] Add the definition YAML
- [x] Add a generator to produce Crowdin-compatible (TBX v3) format
- [x] AGENTS.md
- [ ] ~Workflow~ (Split to another PR)
- [ ] ~Skills~ (Same as above)
2026-08-03 02:01:43 +09:00
Makito be3621ef39 chore(deps): remove stale patch for @mediapipe/tasks-vision 2026-08-03 01:46:09 +09:00
Makito 51d98ee4ac chore(deps): add overrides for @better-auth/oauth-provider 2026-08-03 01:08:24 +09:00
RainbowBird d5a241b10e chore: migrate services to integration folder 2026-08-02 20:12:13 +08:00
RainbowBird 4ccde2c96e chore: move the server to an independent folder 2026-08-02 18:43:57 +08:00
mullung 771ba3f8a7 chore(ko): add Korean locale to documentation site (#2173) 2026-08-02 18:43:46 +08:00
Garfield Lee cfd9c26f09 feat(stage-tamagotchi-godot): migrate C# projects to .NET 10 (#2169) 2026-08-02 18:43:24 +08:00
RainbowBird 9aa27af108 chore(server): cleanup unused scripts 2026-08-02 17:34:31 +08:00
RainbowBird 61e5470801 chore(server): remove otel config 2026-08-02 17:33:37 +08:00
RainbowBird 4d6e61f77d docs(server): cleanup ai context 2026-08-02 00:10:40 +08:00
RainbowBird 71dd65cb99 fix(rate-limit): clarify trusted proxy documentation and improve client address handling 2026-07-31 22:58:05 +08:00