mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1369] [MERGED] feat(avatars): 2D Avatars and 3D Avatars packages (in development) #1428
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1428
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-Agents/pull/1369
Author: @SpicyMarinara
Created: 10/13/2026
Status: ✅ Merged
Merged: 10/13/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/avatar-agents📝 Commits (6)
4845afcfeat(avatars): add the 2D Avatars and 3D Avatars packages, in development (#1368)bcdb7edfix(avatars): reject a second agent definition in an avatar package (#1368)36a36c7fix(avatars): refuse malformed placeholders in avatar generation prompts (#1368)7023fdffix(avatars): require an integer Capability API minor in the avatar check (#1368)2742656Merge origin/staging into feat/avatar-agents2f5e756fix(avatars): leave sides and missing parts to the Engine's layout schema (#1368)📊 Changes
22 files changed (+405 additions, -1 deletions)
View changed files
📝
.github/workflows/pull-request-checks.yml(+5 -0)📝
README.md(+2 -0)➕
artifacts/2d-avatars-0.1.0.zip(+0 -0)➕
artifacts/3d-avatars-0.1.0.zip(+0 -0)➕
artwork/agent-covers/2d-avatars.png(+0 -0)➕
artwork/agent-covers/3d-avatars.png(+0 -0)📝
artwork/agent-covers/art-direction.json(+12 -0)➕
artwork/sources/2d-avatars-imagegen.prompt.txt(+3 -0)➕
artwork/sources/3d-avatars-imagegen.prompt.txt(+3 -0)➕
packages/2d-avatars/CHANGELOG.md(+5 -0)➕
packages/2d-avatars/agents.json(+40 -0)➕
packages/2d-avatars/locales/en.json(+17 -0)➕
packages/2d-avatars/manifest.json(+39 -0)➕
packages/3d-avatars/CHANGELOG.md(+4 -0)➕
packages/3d-avatars/agents.json(+18 -0)➕
packages/3d-avatars/locales/en.json(+17 -0)➕
packages/3d-avatars/manifest.json(+39 -0)➕
scripts/avatar-package-checks.mjs(+84 -0)📝
scripts/catalog-incomplete.mjs(+3 -1)📝
scripts/catalog-package-guidance.mjs(+10 -0)...and 2 more files
📄 Description
Pull request
Linked issue
Closes #1368
Part of the Engine epic Pasta-Devs/Marinara-Engine#7537. Builds on the Engine contract PR Pasta-Devs/Marinara-Engine#7539 (Capability API 1.73, not merged yet).
Why this change
mergeBuiltInAgentSettings). No Engine screen edits this collection yet: the Agent editor edits onlypromptTemplates, and the Engine generation lane reviews image prompts per run.docs/development/optional-agent-packages.md, "Capability API 1.73") says they appear, even in the preview catalog, only once the Engine's setup, stage and at least one renderer are on Enginestaging.What changed
2d-avatars0.1.0 (2D Avatars: PNGTuber-style sprites and mesh avatars). It has one agent withexecution: "host"for Roleplay and Game,phase: "parallel", categorymisc, and an emptydefaultPromptTemplate, so it makes no per-turn model call. ItsdefaultSettings.avatarGenerationTemplateshold the default text of the three Engine prompt ids inAVATAR_PROMPT_TEMPLATE_IDS:avatar-pngtuber-eyes-closed("Blink Picture"): an image-edit prompt that closes the eyes and keeps everything else pixel-identical. It usescharacterName,appearanceandexpression.avatar-pngtuber-mouth-open("Talking Picture"): an image-edit prompt that opens the mouth on an "ah" vowel and leaves the eyes as they are. It uses the same three variables.avatar-mesh-rig-layout("Mesh Avatar Layout"): a vision prompt that measures the parts the Engine'slayoutSchemaasks for, in pixel coordinates. It leaves to that schema which side comes first and that every part needs a value, and asks for a best estimate of a hidden part, such as an eye under the hair. It usescharacterName,appearance,imageWidth,imageHeightandlayoutSchema.3d-avatars0.1.0 (3D Avatars: VRM models). It has the same agent shape and no prompts.schemaVersion: 2,capabilityApi: 1.73,engine >=2.5.0 <4.0.0andbuiltAgainstEngine 2.5.0 @df538660f776c785451e6cfd981eda93dba7939f(the contract branch head). Permissions areagent-runtime,chat-read,storageandui. There is no restart, no server or client entrypoint, and no routes.scripts/catalog-incomplete.mjs: both ids are inINCOMPLETE_PACKAGE_IDS, so no published lane or preview overlay lists them. The rebuild left everycatalog/**file byte-identical.scripts/catalog-package-guidance.mjs: activation guidance for both, appended to the manifest descriptions by the builder: "Set up each avatar on the agent's page in Agents, then add the Agent in Chat Settings → Agents → Misc Agents for Roleplay and Game modes."packages/<id>/manifest.json(files, hashes),packages/<id>/locales/en.json,artifacts/2d-avatars-0.1.0.zipandartifacts/3d-avatars-0.1.0.zip, built withnode scripts/build-agent-catalog.mjs 2d-avatars 3d-avatars(withMARINARA_ENGINE_ROOTpointing at a worktree of Enginefeat/avatars-contract. This builder does not read it, but it is the Engine the packages were checked against).packages/<id>/CHANGELOG.mdwith a 0.1.0 entry each. The build requires one for a first appearance.artwork/agent-covers/2d-avatars.pngand3d-avatars.png, plus twoart-direction.jsonentries with the concepts and palettes Mari gave. They were generated with Codex image generation fromsharedPrompt+ concept + palette, with the Professor Mari sprites and theexpression.pnganddirector.pngcovers as references. Both are 512x512 opaque RGB with a white surround, losslessly recompressed with zopflipng to about 335 KB. The exact prompts and provenance are inartwork/sources/<id>-imagegen.prompt.txt.README.md: two rows in In development. The stable counts are unchanged.scripts/avatar-package-checks.mjschecks what the Engine needs from these packages. Every mismatch would fail silently in the Engine: an unknown${name}stays in the prompt as raw text, and a missing template id leaves a generation button with no prompt.${layoutSchema}present, and no left, right or null rule of the package's own in the Mesh Avatar Layout prompt (the Engine's strict layout check refuses answers that follow one).validate-catalog.mjsruns it from source, whether or not the packages are listed.scripts/tests/avatar-package.regression.mjspins each rejection to its error message. It runs as a new step inpull-request-checks.yml.AVATAR_PROMPT_TEMPLATE_VARIABLES, because the vendored Engine snapshot is frozen and predates them.Package and security impact
2d-avatars,3d-avatars(new). Existing packages are untouched.agents.json). Permissions areagent-runtime,chat-read,storageandui. There is no executable code, no routes and no network access.DATA_DIR/avatar-models/), and the Engine lanes own their lifecycle.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdCommands run by the agent; the repo commands were rerun on
2f5e7565(the layout prompt fix):npm run check: exit 0. Prettier is clean, and ESLint shows 0 errors (811 warnings already on staging, none in the changed files).node scripts/test-catalog-lanes.mjs: passed.node scripts/validate-package-locales.mjs: 43 canonical English catalogs and 42 translations, valid.node scripts/validate-package-locale-keys.mjs: passed.node scripts/validate-catalog.mjs: 39 published packages, as before. "Uncatalogued package manifests valid: 2d-avatars, 3d-avatars, pixelforge."node scripts/tests/catalog-release-notes.regression.mjs,catalog-generatedat-determinism.regression.mjs,catalog-path-safety.regression.mjs,ruleset-package.regression.mjs: OK.node scripts/tests/avatar-package.regression.mjs: passed. It covers 12 rejections, including a second agent definition, a string Capability API minor, a malformed${appearance }placeholder, and a "character's own left" or "set it to null" rule in the Mesh Avatar Layout prompt. With the new check stashed, the regression fails with "Missing expected exception".node scripts/build-agent-catalog.mjs 2d-avatarsandnode scripts/sync-package-locales.mjs: onlyagents.json, its manifest hash and size, andartifacts/2d-avatars-0.1.0.zipchanged; everycatalog/**file stayed byte-identical. The ZIP'sagents.jsonequals the source. 0.1.0 was never in any catalog, so the version stays.git diff --check: clean.feat/avatars-contract@df538660fafterpnpm install --frozen-lockfileandpnpm build:shared:capabilityPackageManifestSchema, and bothagents.jsonfiles parse withpackagedAgentDefinitionsSchema.getCapabilityApiCompatibilityIssuereturns null on the 1.73 Engine.AVATAR_PROMPT_TEMPLATE_IDSandAVATAR_PROMPT_TEMPLATE_VARIABLES.replaceBuiltInAgentDefinitions,isBuiltInAgentHostManagedis true for both, so the generic pipeline skips them. Both are available in Roleplay and Game and not in Conversation.mergeBuiltInAgentSettings("2d-avatars")merges the three templates, and a user's edit to one template wins while the others keep the package text.validateTemplateand renders withrenderTemplatewith no${left.mesh-rig-layout.tsandtemplate.tsfromfeat/avatars-generation@a606d440c(only the json-repair import stubbed), with zod 3.25.76.renderTemplateandMESH_RIG_LAYOUT_SCHEMA_TEXT, carried both "the character's own left" and the schema's "the eye on the picture's left first".checkMeshRigLayoutrefused a mouth placed by the package's rule ("mouth.left must be left of mouth.right"), which costs the second, paid attempt.validateTemplate, renders with no${left, contains the schema text once, and has no left, right or null rule and no hair, body or arms list before it.[]).7023fdf0):INCOMPLETE_PACKAGE_IDSand rebuilding lists them withiconUrl.../artwork/agent-covers/<id>.png,documentationUrlbuilt-in-agents.md#<id>and unchanged artifacts.validate-catalog.mjsthen passes the artwork, README, guidance and notes checks once its package count is raised to 41/26.capabilityCatalogSchemaaccepts both entries.Local CodeRabbit (
coderabbit review --agent --committed, Pasta-Devs org) ran four times:bcdb7ed4, and the regression pins the rejection.${appearance }would have passed the check while the Engine leaves it in the prompt as raw text. It is fixed in36a36c7e, and the regression pins the rejection.36a36c7e.2f5e7565(the layout prompt fix), over all 18 changed text files includingpackages/2d-avatars/agents.json. The first two tries were rate limited and retried.GitHub CodeRabbit reviewed
4845afc2with one trivial thread:!(api.minor >= 73)coerced a string minor. It is fixed in7023fdf0(integer required, regression case added), and the thread is answered and resolved. After two rate-limited tries, it reviewed4845afc2..2f5e7565and posted no actionable comments.A lane review found that the Mesh Avatar Layout prompt contradicted the Engine's
layoutSchema(sides, null for hidden parts, and a part list with hair, body and arms). That is fixed in2f5e7565. The same review found that nothing in the Engine shows these prompts for editing, so the changelog, this description and manual step 4 no longer promise that.Manual verification notes
Not done by the agent: nothing was installed through a running Engine. These steps are for a human:
feat/avatars-contract(orstagingafter Pasta-Devs/Marinara-Engine#7539 merges). Build this branch's catalog locally withMARINARA_CATALOG_INCLUDE_INCOMPLETE=1 node scripts/build-agent-catalog.mjs 2d-avatars 3d-avatars(never commit that output). Point the Engine'sMARINARA_AGENT_CATALOG_URLat it.estimateAgentLoadCost), not package data, and is flagged for an Engine follow-up.Documentation impact
The README "In development" rows and the package guidance are in this PR. The Engine's
docs/agents/built-in-agents.mdentries (thedocumentationUrlanchors#2d-avatarsand#3d-avatars) and the "Downloading the agents" section ofdocs/agents/avatars.mdare in Pasta-Devs/Marinara-Engine#7551. Their translation follow-up is Pasta-Devs/Marinara-Engine#7540.UI evidence (if applicable)
The covers:
artwork/agent-covers/2d-avatars.png(Mari holding a blinking, talking paper puppet of herself in front of fanned paper layers) andartwork/agent-covers/3d-avatars.png(Mari waving at a glowing hologram of herself on a turntable).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.