Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

Address PET Round 3 review

JeffreyDeng-spec19df3b3c9ba6
diff --git a/src/web/src/app/globals.css b/src/web/src/app/globals.css
index 17a0ce460..eb874bd08 100644
--- a/src/web/src/app/globals.css
+++ b/src/web/src/app/globals.css
@@ -1361,142 +1361,8 @@
animation: sidebar-agent-pop 500ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
-/* ── Workspace canvas PET ── */
-.home-pet {
- position: absolute;
- top: 0;
- left: 0;
- z-index: 10;
- width: 72px;
- transform: translate3d(var(--home-pet-x), var(--home-pet-y), 0);
- pointer-events: none;
- user-select: none;
- touch-action: none;
-}
-
-.home-pet-status {
- position: absolute;
- width: 1px;
- height: 1px;
- margin: -1px;
- padding: 0;
- overflow: hidden;
- clip: rect(0 0 0 0);
- white-space: nowrap;
- border: 0;
-}
-
-.home-pet-status::after {
- display: none;
-}
-
-.home-pet-status-kicker {
- display: block;
- margin-bottom: 0.18rem;
- color: var(--muted-foreground);
- font-size: 0.58rem;
- font-weight: 700;
- letter-spacing: 0;
- text-transform: uppercase;
-}
-
-.home-pet-button {
- position: relative;
- display: grid;
- place-items: center;
- padding: 0;
- border: 0;
- background: transparent;
- cursor: grab;
- filter: drop-shadow(0 10px 16px color-mix(in oklch, var(--foreground) 15%, transparent));
- pointer-events: auto;
- transform-origin: 50% 86%;
-}
-
-.home-pet-button:active,
-.home-pet-button[data-dragging="true"] {
- cursor: grabbing;
-}
-
-.home-pet-button:focus-visible {
- outline: 2px solid color-mix(in oklch, var(--primary) 55%, transparent);
- outline-offset: 5px;
- border-radius: 8px;
-}
-
-.home-pet-sprite {
- display: block;
- width: 100%;
- height: 100%;
- background-image: var(--home-pet-sprite-url);
- background-repeat: no-repeat;
- background-size: var(--home-pet-bg-width) var(--home-pet-bg-height);
- background-position: var(--home-pet-bg-x) var(--home-pet-bg-y);
- image-rendering: auto;
- -webkit-user-drag: none;
- pointer-events: none;
-}
-
-.home-pet-motion-idle {
- animation: none;
-}
-
-.home-pet-motion-watch {
- animation: home-pet-watch 780ms ease-out both;
-}
-
-.home-pet-motion-scroll {
- animation: home-pet-scroll 820ms ease-out both;
-}
-
-.home-pet-motion-nap {
- animation: home-pet-nap 900ms ease-out both;
-}
-
-.home-pet-motion-think {
- animation: home-pet-think 840ms ease-out both;
-}
-
-.home-pet-motion-startled {
- animation: home-pet-startled 900ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
-}
-
-@keyframes home-pet-watch {
- 0%, 100% { transform: rotate(0deg) translateY(0); }
- 38% { transform: rotate(-3deg) translateY(-2px); }
- 72% { transform: rotate(2deg) translateY(-1px); }
-}
-
-@keyframes home-pet-scroll {
- 0%, 100% { transform: translateX(0) translateY(0); }
- 30% { transform: translateX(-3px) translateY(-2px); }
- 65% { transform: translateX(2px) translateY(1px); }
-}
-
-@keyframes home-pet-nap {
- 0%, 100% { transform: rotate(-2deg) scale(1); }
- 50% { transform: rotate(-3deg) scale(0.99, 1.005); }
-}
-
-@keyframes home-pet-think {
- 0%, 100% { transform: translateY(0) rotate(0deg); }
- 25% { transform: translateY(-3px) rotate(-1.5deg); }
- 75% { transform: translateY(-1px) rotate(1.5deg); }
-}
-
-@keyframes home-pet-startled {
- 0% { transform: translateY(0) rotate(0deg) scale(1); }
- 18% { transform: translateY(-12px) rotate(-7deg) scale(1.07); }
- 36% { transform: translateY(3px) rotate(6deg) scale(0.98, 1.03); }
- 58% { transform: translateY(-5px) rotate(-3deg) scale(1.02); }
- 100% { transform: translateY(0) rotate(0deg) scale(1); }
-}
-
@media (prefers-reduced-motion: reduce) {
.sidebar-agent-pop { animation: none !important; }
- .home-pet-button {
- animation: none !important;
- }
.avatar-anim-shape-bounce [data-avatar-shape],
.avatar-anim-head-tilt [data-avatar-shape],
.avatar-anim-head-tilt [data-avatar-eyes],
diff --git a/src/web/src/components/home-pet/cloud-code-monster-pet-direct-shapes.tsx b/src/web/src/components/home-pet/cloud-code-monster-pet-direct-shapes.tsx
index 243e9769b..45f049bc2 100644
--- a/src/web/src/components/home-pet/cloud-code-monster-pet-direct-shapes.tsx
+++ b/src/web/src/components/home-pet/cloud-code-monster-pet-direct-shapes.tsx
@@ -190,7 +190,7 @@ export function MonsterDirectPixelCharacter({
const shape = preset.shape;
switch (shape) {
- case "doraemon":
+ case "gadget-buddy":
return (
<>
<rect x="36" y="23" width="56" height="13" fill="#2d9bd3" />
@@ -207,7 +207,7 @@ export function MonsterDirectPixelCharacter({
<rect x="54" y="73" width="20" height="3" fill="#111318" />
</>
);
- case "pikachu":
+ case "electric-mascot":
return (
<>
<rect x="31" y="15" width="10" height="31" fill="#2b2319" />
@@ -225,7 +225,7 @@ export function MonsterDirectPixelCharacter({
<rect x="84" y="68" width="11" height="10" fill="#e84b43" />
</>
);
- case "kirby":
+ case "star-puff":
return (
<>
<rect x="42" y="29" width="44" height="9" fill="#f2a8bd" />
@@ -240,7 +240,7 @@ export function MonsterDirectPixelCharacter({
<rect x="83" y="69" width="9" height="8" fill="#e95d77" />
</>
);
- case "bulbasaur":
+ case "leaf-bud-shape":
return (
<>
<rect x="45" y="20" width="38" height="18" fill="#5e9f5b" />
@@ -255,7 +255,7 @@ export function MonsterDirectPixelCharacter({
<rect x="67" y="75" width="7" height="4" fill="#2d5d56" />
</>
);
- case "charmander":
+ case "ember-scout":
return (
<>
<rect x="38" y="29" width="50" height="13" fill="#e88743" />
@@ -269,7 +269,7 @@ export function MonsterDirectPixelCharacter({
<DirectPixelEyes activityId={activityId} preset={preset} reacting={reacting} shaken={shaken} fainted={fainted} leftX={48} rightX={77} y={50} />
</>
);
- case "squirtle":
+ case "shell-sprout":
return (
<>
<rect x="39" y="27" width="50" height="13" fill="#83b7d8" />
@@ -283,7 +283,7 @@ export function MonsterDirectPixelCharacter({
<DirectPixelEyes activityId={activityId} preset={preset} reacting={reacting} shaken={shaken} fainted={fainted} leftX={46} rightX={76} y={48} />
</>
);
- case "minecraft-steve":
+ case "block-builder-shape":
return (
<>
<rect x="42" y="18" width="44" height="14" fill="#5b3625" />
@@ -297,7 +297,7 @@ export function MonsterDirectPixelCharacter({
<rect x="57" y="59" width="14" height="4" fill="#6c3f2b" />
</>
);
- case "minecraft-creeper":
+ case "block-hiss-shape":
return (
<>
<rect x="37" y="20" width="54" height="54" fill="#5aaa4c" />
@@ -314,7 +314,7 @@ export function MonsterDirectPixelCharacter({
<rect x="67" y="64" width="10" height="8" fill="#151711" />
</>
);
- case "minecraft-zombie":
+ case "block-walker-shape":
return (
<>
<rect x="38" y="22" width="52" height="49" fill="#77a86c" />
@@ -327,7 +327,7 @@ export function MonsterDirectPixelCharacter({
<rect x="57" y="58" width="14" height="4" fill="#2b221d" />
</>
);
- case "toad":
+ case "mushroom-pal-shape":
return (
<>
<rect x="29" y="19" width="70" height="22" fill="#fff3e4" />
@@ -343,7 +343,7 @@ export function MonsterDirectPixelCharacter({
<DirectPixelEyes activityId={activityId} preset={preset} reacting={reacting} shaken={shaken} fainted={fainted} leftX={48} rightX={74} y={54} />
</>
);
- case "sonic":
+ case "blue-spinner":
return (
<>
<rect x="33" y="22" width="17" height="13" fill="#2d62b3" />
@@ -357,7 +357,7 @@ export function MonsterDirectPixelCharacter({
<DirectPixelEyes activityId={activityId} preset={preset} reacting={reacting} shaken={shaken} fainted={fainted} leftX={49} rightX={74} y={42} />
</>
);
- case "pacman":
+ case "arcade-chomper":
return (
<>
<rect x="43" y="28" width="45" height="11" fill="#f1d34a" />
@@ -368,7 +368,7 @@ export function MonsterDirectPixelCharacter({
<DirectPixelEyes activityId={activityId} preset={preset} reacting={reacting} shaken={shaken} fainted={fainted} leftX={58} rightX={58} y={43} singleEye mouthX={84} mouthY={62} mouthWidth={15} mouthHeight={7} mouthColor="#15110d" mouthStyle="open" />
</>
);
- case "boo":
+ case "peek-ghost-shape":
return (
<>
<rect x="39" y="26" width="50" height="12" fill="#f0f2fb" />
@@ -382,7 +382,7 @@ export function MonsterDirectPixelCharacter({
<rect x="57" y="63" width="18" height="13" fill="#df7198" />
</>
);
- case "mario":
+ case "cap-jumper":
return (
<>
<rect x="35" y="18" width="58" height="12" fill="#d34437" />
@@ -397,7 +397,7 @@ export function MonsterDirectPixelCharacter({
<DirectPixelEyes activityId={activityId} preset={preset} reacting={reacting} shaken={shaken} fainted={fainted} leftX={49} rightX={74} y={41} />
</>
);
- case "pooh":
+ case "honey-cub-shape":
return (
<>
<rect x="31" y="30" width="13" height="14" fill="#d99b39" />
@@ -410,7 +410,7 @@ export function MonsterDirectPixelCharacter({
<rect x="61" y="59" width="7" height="5" fill="#4a2c1e" />
</>
);
- case "hello-kitty":
+ case "ribbon-cat-shape":
return (
<>
<rect x="28" y="25" width="16" height="18" fill="#f6f3ea" />
@@ -429,18 +429,18 @@ export function MonsterDirectPixelCharacter({
<rect x="82" y="58" width="7" height="2" fill="#25201f" opacity="0.72" />
</>
);
- case "my-melody":
- case "kuromi": {
- const isKuromi = shape === "kuromi";
- const hood = isKuromi ? "#51425c" : "#e78eaa";
- const accent = isKuromi ? "#dd6d99" : "#d84c64";
+ case "cozy-hood-bunny-shape":
+ case "imp-hood-shape": {
+ const isImpHood = shape === "imp-hood-shape";
+ const hood = isImpHood ? "#51425c" : "#e78eaa";
+ const accent = isImpHood ? "#dd6d99" : "#d84c64";
return (
<>
<rect x="27" y="12" width="13" height="42" fill={hood} />
<rect x="88" y="12" width="13" height="42" fill={hood} />
<rect x="35" y="25" width="58" height="54" fill={hood} />
<rect x="42" y="39" width="44" height="34" fill="#fff5ee" />
- {isKuromi ? (
+ {isImpHood ? (
<>
<rect x="57" y="28" width="14" height="10" fill="#f2e9e1" />
<rect x="60" y="31" width="3" height="3" fill="#51425c" />
@@ -448,8 +448,8 @@ export function MonsterDirectPixelCharacter({
<rect x="63" y="35" width="3" height="2" fill="#51425c" />
</>
) : null}
- <rect x="48" y="57" width="7" height="6" fill={isKuromi ? "#f2dfe8" : "#f3d6dc"} />
- <rect x="76" y="57" width="7" height="6" fill={isKuromi ? "#f2dfe8" : "#f3d6dc"} />
+ <rect x="48" y="57" width="7" height="6" fill={isImpHood ? "#f2dfe8" : "#f3d6dc"} />
+ <rect x="76" y="57" width="7" height="6" fill={isImpHood ? "#f2dfe8" : "#f3d6dc"} />
<rect x="38" y="79" width="52" height="25" fill={accent} />
<rect className="cloud-code-monster-pet-left-foot" x="39" y="104" width="17" height="10" fill={hood} />
<rect className="cloud-code-monster-pet-right-foot" x="72" y="104" width="17" height="10" fill={hood} />
@@ -457,7 +457,7 @@ export function MonsterDirectPixelCharacter({
</>
);
}
- case "totoro":
+ case "forest-neighbor-shape":
return (
<>
<rect x="38" y="16" width="10" height="22" fill="#74766a" />
@@ -471,7 +471,7 @@ export function MonsterDirectPixelCharacter({
<DirectPixelEyes activityId={activityId} preset={preset} reacting={reacting} shaken={shaken} fainted={fainted} leftX={47} rightX={76} y={47} />
</>
);
- case "soot-sprite":
+ case "dust-puff-shape":
return (
<>
<rect x="38" y="29" width="52" height="9" fill="#2b2c31" />
@@ -485,7 +485,7 @@ export function MonsterDirectPixelCharacter({
<rect x="74" y="56" width="5" height="6" fill="#17181e" />
</>
);
- case "luffy":
+ case "straw-voyager-shape":
return (
<>
<rect x="31" y="18" width="66" height="9" fill="#e7c65d" />
@@ -499,7 +499,7 @@ export function MonsterDirectPixelCharacter({
<DirectPixelEyes activityId={activityId} preset={preset} reacting={reacting} shaken={shaken} fainted={fainted} leftX={49} rightX={75} y={44} />
</>
);
- case "naruto":
+ case "leaf-runner-shape":
return (
<>
<rect x="34" y="18" width="11" height="16" fill="#e0a641" />
@@ -515,7 +515,7 @@ export function MonsterDirectPixelCharacter({
<DirectPixelEyes activityId={activityId} preset={preset} reacting={reacting} shaken={shaken} fainted={fainted} leftX={49} rightX={75} y={50} />
</>
);
- case "goku":
+ case "energy-pearl-shape":
return (
<>
<rect x="35" y="14" width="13" height="23" fill="#191817" />
@@ -530,7 +530,7 @@ export function MonsterDirectPixelCharacter({
<DirectPixelEyes activityId={activityId} preset={preset} reacting={reacting} shaken={shaken} fainted={fainted} leftX={49} rightX={75} y={47} />
</>
);
- case "sailor-moon":
+ case "moon-wand-shape":
return (
<>
<rect x="29" y="24" width="14" height="14" fill="#e6c44e" />
@@ -545,7 +545,7 @@ export function MonsterDirectPixelCharacter({
<DirectPixelEyes activityId={activityId} preset={preset} reacting={reacting} shaken={shaken} fainted={fainted} leftX={49} rightX={75} y={48} />
</>
);
- case "gundam":
+ case "mecha-guard-shape":
return (
<>
<rect x="38" y="25" width="52" height="39" fill="#d7dbe2" />
@@ -562,7 +562,7 @@ export function MonsterDirectPixelCharacter({
<rect className="cloud-code-monster-pet-right-foot" x="70" y="103" width="20" height="12" fill="#26344f" />
</>
);
- case "dragon-quest-slime":
+ case "teardrop-slime-shape":
return (
<>
<rect x="56" y="16" width="16" height="15" fill="#80c4ef" />
@@ -573,7 +573,7 @@ export function MonsterDirectPixelCharacter({
<rect x="58" y="72" width="14" height="5" fill="#c4444a" />
</>
);
- case "inkling":
+ case "ink-runner-shape":
return (
<>
<rect x="50" y="13" width="11" height="28" fill="#61c3b8" />
@@ -586,7 +586,7 @@ export function MonsterDirectPixelCharacter({
<DirectPixelEyes activityId={activityId} preset={preset} reacting={reacting} shaken={shaken} fainted={fainted} leftX={48} rightX={74} y={45} />
</>
);
- case "snoopy":
+ case "little-beagle-shape":
return (
<>
<rect x="42" y="23" width="36" height="9" fill="#fffaf0" />
@@ -615,7 +615,7 @@ export function MonsterDirectPixelCharacter({
<DirectPixelEyes activityId={activityId} preset={preset} reacting={reacting} shaken={shaken} fainted={fainted} leftX={61} rightX={61} y={43} color="#1f1f22" highlightColor="#fffaf0" singleEye mouthX={86} mouthY={59} mouthWidth={11} mouthHeight={3} mouthColor="#1f1f22" mouthStyle="flat" />
</>
);
- case "chopper":
+ case "tiny-antler-shape":
return (
<>
<rect x="32" y="19" width="14" height="8" fill="#b07d55" />
diff --git a/src/web/src/components/home-pet/cloud-code-monster-pet-presets.ts b/src/web/src/components/home-pet/cloud-code-monster-pet-presets.ts
index aa94dd34e..8c5814077 100644
--- a/src/web/src/components/home-pet/cloud-code-monster-pet-presets.ts
+++ b/src/web/src/components/home-pet/cloud-code-monster-pet-presets.ts
@@ -507,35 +507,35 @@ const CLOUD_CODE_MONSTER_PET_PRESET_BASES: CloudCodeMonsterPetPreset[] = [
];
const INSPIRED_PRESET_OVERRIDES = [
- { id: "pet-02", name: "Pocket Bell Bot", group: "Inspired Mascots", feature: "bell", shape: "doraemon" },
- { id: "pet-03", name: "Spark Bolt Pal", group: "Inspired Mascots", feature: "bolt", shape: "pikachu" },
- { id: "pet-04", name: "Star Puff", group: "Inspired Mascots", feature: "star", shape: "kirby" },
- { id: "pet-05", name: "Leaf Bud", group: "Inspired Mascots", feature: "leaf", shape: "bulbasaur" },
- { id: "pet-06", name: "Tiny Flame", group: "Inspired Mascots", feature: "flame", shape: "charmander" },
- { id: "pet-07", name: "Shell Fin", group: "Inspired Mascots", feature: "fins", shape: "squirtle" },
- { id: "pet-08", name: "Block Builder", group: "Inspired Mascots", feature: "visor", shape: "minecraft-steve" },
- { id: "pet-09", name: "Block Hiss", group: "Inspired Mascots", feature: "mask", shape: "minecraft-creeper" },
- { id: "pet-10", name: "Block Walker", group: "Inspired Mascots", feature: "visor", shape: "minecraft-zombie" },
- { id: "pet-11", name: "Mushroom Pal", group: "Inspired Mascots", feature: "mushroom", shape: "toad" },
- { id: "pet-12", name: "Blue Spin", group: "Inspired Mascots", feature: "spin", shape: "sonic" },
- { id: "pet-13", name: "Arcade Chomp", group: "Inspired Mascots", feature: "chomp", shape: "pacman" },
- { id: "pet-14", name: "Peek Ghost", group: "Inspired Mascots", feature: "ghost", shape: "boo" },
- { id: "pet-15", name: "Red Cap Jumper", group: "Inspired Mascots", feature: "cap", shape: "mario" },
- { id: "pet-16", name: "Honey Cub", group: "Inspired Mascots", feature: "ears", shape: "pooh" },
- { id: "pet-17", name: "Ribbon Cat", group: "Inspired Mascots", feature: "bow", shape: "hello-kitty" },
- { id: "pet-18", name: "Cozy Hood Bunny", group: "Inspired Mascots", feature: "hood", shape: "my-melody" },
- { id: "pet-19", name: "Imp Hood", group: "Inspired Mascots", feature: "mask", shape: "kuromi" },
- { id: "pet-20", name: "Forest Neighbor", group: "Inspired Mascots", feature: "ears", shape: "totoro" },
- { id: "pet-21", name: "Dust Puff", group: "Inspired Mascots", feature: "soot", shape: "soot-sprite" },
- { id: "pet-22", name: "Straw Voyager", group: "Inspired Mascots", feature: "straw", shape: "luffy" },
- { id: "pet-23", name: "Leaf Runner", group: "Inspired Mascots", feature: "ninja", shape: "naruto" },
- { id: "pet-24", name: "Energy Pearl", group: "Inspired Mascots", feature: "pearl", shape: "goku" },
- { id: "pet-25", name: "Moon Wand", group: "Inspired Mascots", feature: "wand", shape: "sailor-moon" },
- { id: "pet-26", name: "Mecha Guard", group: "Inspired Mascots", feature: "mecha", shape: "gundam" },
- { id: "pet-27", name: "Teardrop Slime", group: "Inspired Mascots", feature: "slime", shape: "dragon-quest-slime" },
- { id: "pet-28", name: "Ink Runner", group: "Inspired Mascots", feature: "ink", shape: "inkling" },
- { id: "pet-29", name: "Little Beagle", group: "Inspired Mascots", feature: "ears", shape: "snoopy" },
- { id: "pet-30", name: "Tiny Antler", group: "Inspired Mascots", feature: "horns", shape: "chopper" },
+ { id: "pet-02", name: "Pocket Bell Bot", group: "Inspired Mascots", feature: "bell", shape: "gadget-buddy" },
+ { id: "pet-03", name: "Spark Bolt Pal", group: "Inspired Mascots", feature: "bolt", shape: "electric-mascot" },
+ { id: "pet-04", name: "Star Puff", group: "Inspired Mascots", feature: "star", shape: "star-puff" },
+ { id: "pet-05", name: "Leaf Bud", group: "Inspired Mascots", feature: "leaf", shape: "leaf-bud-shape" },
+ { id: "pet-06", name: "Tiny Flame", group: "Inspired Mascots", feature: "flame", shape: "ember-scout" },
+ { id: "pet-07", name: "Shell Fin", group: "Inspired Mascots", feature: "fins", shape: "shell-sprout" },
+ { id: "pet-08", name: "Block Builder", group: "Inspired Mascots", feature: "visor", shape: "block-builder-shape" },
+ { id: "pet-09", name: "Block Hiss", group: "Inspired Mascots", feature: "mask", shape: "block-hiss-shape" },
+ { id: "pet-10", name: "Block Walker", group: "Inspired Mascots", feature: "visor", shape: "block-walker-shape" },
+ { id: "pet-11", name: "Mushroom Pal", group: "Inspired Mascots", feature: "mushroom", shape: "mushroom-pal-shape" },
+ { id: "pet-12", name: "Blue Spin", group: "Inspired Mascots", feature: "spin", shape: "blue-spinner" },
+ { id: "pet-13", name: "Arcade Chomp", group: "Inspired Mascots", feature: "chomp", shape: "arcade-chomper" },
+ { id: "pet-14", name: "Peek Ghost", group: "Inspired Mascots", feature: "ghost", shape: "peek-ghost-shape" },
+ { id: "pet-15", name: "Red Cap Jumper", group: "Inspired Mascots", feature: "cap", shape: "cap-jumper" },
+ { id: "pet-16", name: "Honey Cub", group: "Inspired Mascots", feature: "ears", shape: "honey-cub-shape" },
+ { id: "pet-17", name: "Ribbon Cat", group: "Inspired Mascots", feature: "bow", shape: "ribbon-cat-shape" },
+ { id: "pet-18", name: "Cozy Hood Bunny", group: "Inspired Mascots", feature: "hood", shape: "cozy-hood-bunny-shape" },
+ { id: "pet-19", name: "Imp Hood", group: "Inspired Mascots", feature: "mask", shape: "imp-hood-shape" },
+ { id: "pet-20", name: "Forest Neighbor", group: "Inspired Mascots", feature: "ears", shape: "forest-neighbor-shape" },
+ { id: "pet-21", name: "Dust Puff", group: "Inspired Mascots", feature: "soot", shape: "dust-puff-shape" },
+ { id: "pet-22", name: "Straw Voyager", group: "Inspired Mascots", feature: "straw", shape: "straw-voyager-shape" },
+ { id: "pet-23", name: "Leaf Runner", group: "Inspired Mascots", feature: "ninja", shape: "leaf-runner-shape" },
+ { id: "pet-24", name: "Energy Pearl", group: "Inspired Mascots", feature: "pearl", shape: "energy-pearl-shape" },
+ { id: "pet-25", name: "Moon Wand", group: "Inspired Mascots", feature: "wand", shape: "moon-wand-shape" },
+ { id: "pet-26", name: "Mecha Guard", group: "Inspired Mascots", feature: "mecha", shape: "mecha-guard-shape" },
+ { id: "pet-27", name: "Teardrop Slime", group: "Inspired Mascots", feature: "slime", shape: "teardrop-slime-shape" },
+ { id: "pet-28", name: "Ink Runner", group: "Inspired Mascots", feature: "ink", shape: "ink-runner-shape" },
+ { id: "pet-29", name: "Little Beagle", group: "Inspired Mascots", feature: "ears", shape: "little-beagle-shape" },
+ { id: "pet-30", name: "Tiny Antler", group: "Inspired Mascots", feature: "horns", shape: "tiny-antler-shape" },
] satisfies Array<
Pick<CloudCodeMonsterPetPreset, "id" | "name" | "group" | "feature" | "shape">
>;
diff --git a/src/web/src/components/home-pet/cloud-code-monster-pet-types.ts b/src/web/src/components/home-pet/cloud-code-monster-pet-types.ts
index fa6e34bdf..d57d5a271 100644
--- a/src/web/src/components/home-pet/cloud-code-monster-pet-types.ts
+++ b/src/web/src/components/home-pet/cloud-code-monster-pet-types.ts
@@ -68,35 +68,35 @@ export type CloudCodeMonsterPresetFeature =
export type CloudCodeMonsterPresetShape =
| "monster"
- | "doraemon"
- | "pikachu"
- | "kirby"
- | "bulbasaur"
- | "charmander"
- | "squirtle"
- | "minecraft-steve"
- | "minecraft-creeper"
- | "minecraft-zombie"
- | "toad"
- | "sonic"
- | "pacman"
- | "boo"
- | "mario"
- | "pooh"
- | "hello-kitty"
- | "my-melody"
- | "kuromi"
- | "totoro"
- | "soot-sprite"
- | "luffy"
- | "naruto"
- | "goku"
- | "sailor-moon"
- | "gundam"
- | "dragon-quest-slime"
- | "inkling"
- | "snoopy"
- | "chopper";
+ | "gadget-buddy"
+ | "electric-mascot"
+ | "star-puff"
+ | "leaf-bud-shape"
+ | "ember-scout"
+ | "shell-sprout"
+ | "block-builder-shape"
+ | "block-hiss-shape"
+ | "block-walker-shape"
+ | "mushroom-pal-shape"
+ | "blue-spinner"
+ | "arcade-chomper"
+ | "peek-ghost-shape"
+ | "cap-jumper"
+ | "honey-cub-shape"
+ | "ribbon-cat-shape"
+ | "cozy-hood-bunny-shape"
+ | "imp-hood-shape"
+ | "forest-neighbor-shape"
+ | "dust-puff-shape"
+ | "straw-voyager-shape"
+ | "leaf-runner-shape"
+ | "energy-pearl-shape"
+ | "moon-wand-shape"
+ | "mecha-guard-shape"
+ | "teardrop-slime-shape"
+ | "ink-runner-shape"
+ | "little-beagle-shape"
+ | "tiny-antler-shape";
export type CloudCodeMonsterPetPreset = {
id: string;
diff --git a/src/web/src/components/home-pet/cloud-code-monster-pet.test.ts b/src/web/src/components/home-pet/cloud-code-monster-pet.test.ts
index 485e82030..fd035e65c 100644
--- a/src/web/src/components/home-pet/cloud-code-monster-pet.test.ts
+++ b/src/web/src/components/home-pet/cloud-code-monster-pet.test.ts
@@ -271,6 +271,18 @@ describe("production workspace PET mounting", () => {
path.join(root, "src/components/home-pet/cloud-code-monster-pet-pixel-parts.tsx"),
"utf8"
);
+ const petTypes = readFileSync(
+ path.join(root, "src/components/home-pet/cloud-code-monster-pet-types.ts"),
+ "utf8"
+ );
+ const petPresets = readFileSync(
+ path.join(root, "src/components/home-pet/cloud-code-monster-pet-presets.ts"),
+ "utf8"
+ );
+ const petDirectShapes = readFileSync(
+ path.join(root, "src/components/home-pet/cloud-code-monster-pet-direct-shapes.tsx"),
+ "utf8"
+ );
const petCssModule = readFileSync(
path.join(root, "src/components/home-pet/cloud-code-monster-pet.module.css"),
"utf8"
@@ -280,6 +292,36 @@ describe("production workspace PET mounting", () => {
"utf8"
);
const globalCss = readFileSync(path.join(root, "src/app/globals.css"), "utf8");
+ const clientPetSources = [petTypes, petPresets, petDirectShapes].join("\n");
+ const sensitiveShapeIds = [
+ "dor" + "aemon",
+ "pika" + "chu",
+ "kir" + "by",
+ "bulba" + "saur",
+ "char" + "mander",
+ "squir" + "tle",
+ "mine" + "craft",
+ "to" + "ad",
+ "son" + "ic",
+ "pac" + "man",
+ "bo" + "o",
+ "mar" + "io",
+ "po" + "oh",
+ "hello-" + "kitty",
+ "my-" + "melody",
+ "kur" + "omi",
+ "toto" + "ro",
+ "soot-" + "sprite",
+ "luf" + "fy",
+ "nar" + "uto",
+ "go" + "ku",
+ "sailor-" + "moon",
+ "gun" + "dam",
+ "dragon-quest-" + "slime",
+ "ink" + "ling",
+ "snoo" + "py",
+ "chop" + "per",
+ ];
expect(workspaceHomePage).toContain("CloudCodeMonsterPet");
expect(workspaceHomePage).toContain("dynamic<CloudCodeMonsterPetProps>");
@@ -305,6 +347,9 @@ describe("production workspace PET mounting", () => {
expect(petComponent).toContain("setPetTimer(\"peek\"");
expect(petComponent).not.toContain("peekTargets = []");
expect(petComponent).not.toContain("TimerRef = useRef");
+ for (const sensitiveShapeId of sensitiveShapeIds) {
+ expect(clientPetSources).not.toContain(`"${sensitiveShapeId}"`);
+ }
expect(petPixelParts).toContain(
'import("./cloud-code-monster-pet-direct-shapes")'
);
@@ -312,6 +357,7 @@ describe("production workspace PET mounting", () => {
expect(agentNode).toContain('data-agent-working={activeTaskCount > 0 ? "true" : "false"}');
expect(petCssModule).toContain(":global(.cloud-code-monster-pet)");
expect(globalCss).not.toContain(".cloud-code-monster-pet");
+ expect(globalCss).not.toContain(".home-pet");
expect(globalCss).not.toContain(".pet-preview-flow");
});
});