mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #273] [MERGED] feat(bot-browser): token-only Pygmalion, Janny robustness, DataCat provider #4538
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4538
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/273
Author: @LukaTheHero
Created: 4/28/2026
Status: ✅ Merged
Merged: 4/28/2026
Merged by: @LukaTheHero
Base:
main← Head:feat/botbrowser-upgrade📝 Commits (6)
c520238feat(bot-browser): token-only Pygmalion, Janny robustness, DataCat provider220856afix(bot-browser): address CodeRabbit review on PR #27310061dcfix(bot-browser): revert credentials:"include" on JannyAI searchd7d82a1fix(bot-browser): expire JannyAI fallback token cache after 60s8e68d4ffix(bot-browser): DataCat fresh totalCount + disable phantom search48f41a4fix(bot-browser): JannyAI token TTL + force-refresh, kill-switch through body📊 Changes
5 files changed (+1054 additions, -190 deletions)
View changed files
📝
packages/client/src/components/bot-browser/BotBrowserView.tsx(+550 -116)➕
packages/server/src/routes/bot-browser-datacat.routes.ts(+238 -0)📝
packages/server/src/routes/bot-browser-janny.routes.ts(+214 -25)📝
packages/server/src/routes/bot-browser-pygmalion.routes.ts(+50 -49)📝
packages/server/src/routes/index.ts(+2 -0)📄 Description
Summary
Upgrade the bot browser across three providers and add a fourth.
Pygmalion — token-only login
auth token in Local Storage, so the user pastes that directly.
POST /pygmalion/set-tokenaccepts the pasted token (strips a leadingBearerprefix) andGET /pygmalion/validateconfirms it via anauthenticated
CharacterSearch. Auto-clears the token on 401/403.Local Storage →
authn(~705-character string).JannyAI — work around Cloudflare, recover lost data
working JannyAI client does it) so the user's
cf_clearancecookie andreal TLS fingerprint clear Cloudflare's bot challenge. The server still
scrapes the public token and exposes it via
GET /janny/token.SearchPage.<hash>.jschunk to findclient-config.<hash>.js(the bundle layout changed). Page-scrapefallback through corsproxy.io for resilience when the local IP is blocked.
challenge-platformmarker + a min-lengthsanity check on the character page scrape. Tag IDs / creator IDs missing
from the page scrape are now back-filled from MeiliSearch.
applied client-side against each hit's resolved tag names, instead of
being silently dropped.
auto-fetch up to 3 additional pages and concat to keep the grid full.
DataCat — new provider
POST /api/liberator/identify(random
deviceToken); session token cached in memory and replayed inX-Session-Tokenon every call. Auto re-mints once on 401./recent-public,supports tag filtering) and 🔥 Fresh (
/fresh24h trending).tags; the panel renders only the top 150 by character count to keep the
UI snappy. The full id↔name map is still cached so card-level tags and
long-tail typed-in tag names still resolve.
toggle is hidden, the filter is force-on, and a confirmation modal warns
before the first switch (Continue / Don't continue). Tooltip explains
"DataCat is NSFW-only".
https://ella.janitorai.com/bot-avatars/(DataCat's CDN).
Misc
toast are scoped to
sourceId === "wyvern"so other providers withoutan NSFW toggle don't inherit the message.
Test plan
pygmalion.chatLocal Storage(
authn); confirm "Token active — NSFW content enabled" appears,NSFW results load. Logout clears the token. Bad token surfaces a
validation error.
stays a fallback). Custom typed tag like "vampire" filters as
expected. Excluded tag thinning still fills a page via auto-fetch.
direct fetch is Cloudflare-blocked.
"Continue" loads the provider, "Don't continue" closes the modal
and stays on the previous source. Relevance + Fresh both load.
Tag filtering by top tags works. Tag panel doesn't lag the browser.
Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.