JayT-workbuddy-petdex 是做什么的?
Give beginners a complete WorkBuddy pet experience using community pets from Petdex. Do not involve Codex, modify the WorkBuddy app bundle, or change the WorkBuddy skin.
Beginner-first rule
Assume the user has never used a terminal, Petdex, a Skill, or a spritesheet. Use short sentences, explain one decision at a time, and run bundled scripts for them. Never ask them to type a shell command.
When the user has not supplied a pet link, copied Petdex command, or name, reproduce the following guide faithfully. Keep the link clickable and do not paraphrase it into a longer answer:
Choose a pet in just four steps:
- Open Petdex Pet Site.
- Click a pet you like. You can browse directly or filter using the search box or tags.
- Copy the detail link from your browser's address bar, e.g.,
https://petdex.dev/pets/boba. It's also fine if you clicked "Copy install command" on the page.- Come back here, paste it, and say "help me install this pet." Leave the rest to me – no need to open the terminal.
Immediately after the guide, say exactly: Browsing and installing pets officially listed on Petdex does not require an account or manual file downloads. Do not add a second explanation unless the user asks.
If the user asks for recommendations, ask for at most one preference such as "cute / funny / calm / cool" and then direct them to the gallery. Keep the choice with the user; do not install a pet merely because it is popular.
Installation workflow
When the user supplies a Petdex detail URL, a copied command such as npx petdex install boba, or a simple pet slug/name:
-
Read
references/petdex-package.mdandreferences/security.md. -
Desktop pet activation needs permission to start a local background app. If the current WorkBuddy task is not already in Full Access, stop before downloading and reproduce this beginner guide faithfully:
Before installing the desktop pet, you need to grant Full Access to this task:
- Click "Default Permissions" below the input field.
- Click "Allow Full Access."
- Check "I understand the risks and wish to continue," then confirm "Allow Full Access."
- Reply "continue installation" once done. This permission is used to save the pet to your personal directory and start the local pet—it will not modify WorkBuddy.app.
Do not claim that a restart can replace this permission. Do not try to change the user's permission yourself.
-
Pass the user's full message to the local resolver. It accepts an exact HTTPS
petdex.devdetail URL embedded in a sentence, the copied Petdex install command as inert text, or a safe slug. It rejects lookalike domains and never executes the copied command. -
Run:
./scripts/install-pet.sh "<the exact user input>"Use this exact command without
--no-startin a normal user flow. Do not stop after downloading or describe the pet as "pending activation" when the command has not asked for a restart. The installer already attempts safe, no-restart activation. -
If the command reports that the pet appeared and connected, immediately run
./scripts/doctor.sh. When the doctor passes, report success and never ask for a restart. -
If the command says
Pet host failed to startor the doctor says the bridge/pet is not running, the task lacks effective Full Access. Show the four permission steps above and ask the user to replycontinue activating pet; after that, run./scripts/start-runtime.shand./scripts/doctor.sh. Never diagnose this as a restart problem. If the local error instead says another WorkBuddy desktop pet is running, name the conflict if it is visible, ask the user for permission to pause the old pet, and only continue after consent. Never kill an unrelated pet silently. -
Only when the exact installer command explicitly says the running WorkBuddy lacks the verified local state connection and requests
scripts/start-runtime.sh --restart, ask exactly one question:To let the pet read WorkBuddy's task status, WorkBuddy needs to be restarted once. May I restart now?Never infer that a restart is needed merely because this is the first installed pet. -
For every other download or network failure, stop and quote the short local error. Do not use WebFetch, DNS-over-HTTPS, a hard-coded IP,
--resolve,--connect-to, disabled certificate checks, a proxy bypass other than the bundled script, or manual installation steps. Ask the user to check their network and try again. -
Only after the user explicitly agrees, run:
./scripts/start-runtime.sh --restart -
Run
./scripts/doctor.shand report the installed pet name, Petdex source link, and successful state connection. A passing doctor also proves that both processes are owned by macOSlaunchd, recover after an unexpected crash while WorkBuddy is open, and do not depend on Codex or the current WorkBuddy task. They are not login-started; if WorkBuddy is closed, the pet is allowed to stop. If the doctor saysState bridge is waiting for WorkBuddy's status port in the backgroundorscripts/start-runtime.sh --restart, report that the pet is already stable but current task text cannot update until WorkBuddy is reopened with its local status port. Ask exactly one question:The pet is running stably. To show it the current conversation and task status, WorkBuddy needs to be restarted once. May I restart now?If the user agrees, run./scripts/start-runtime.sh --restartand then./scripts/doctor.sh. -
Explain the controls:
- Drag the pet anywhere, including outside WorkBuddy.
- Click it to wave and show/hide the task panel.
- Right-click for reset, jump, task panel, or quit.
- It reacts automatically to running, waiting, review, failed, and completed tasks.
Never execute the remote shell returned by Petdex. The bundled installer only extracts allowlisted https://assets.petdex.dev/ asset URLs, validates the package, and installs it into the WorkBuddy-specific local library.
Current conversation and multi-task behavior
The native task bubble may show:
- the latest visible user instruction, truncated to 60 characters;
- the current assistant lead/status, truncated to 96 characters;
- up to five WorkBuddy task titles and states;
- an eight-second completion notice.
Never collect a full assistant response, older turns, attachments, filenames, account data, or artifact contents. Read references/workbuddy-state-bridge.md when diagnosing task text or animations.
Manage installed pets
- List local pets:
./scripts/list-pets.sh - Switch without downloading:
./scripts/switch-pet.sh "<slug>" - Pause pet and bridge:
./scripts/stop-pet.sh - Wake the selected pet:
./scripts/start-runtime.sh - Diagnose:
./scripts/doctor.sh - Remove a non-active pet:
./scripts/remove-pet.sh "<slug>" - Uninstall runtime but keep downloads:
./scripts/uninstall-runtime.sh - Uninstall runtime and all downloads only after explicit confirmation:
./scripts/uninstall-runtime.sh --remove-pets
Do not delete pets or the runtime from vague requests such as "switch to another" or "skip this one for now". Interpret those as switch/pause, not destructive deletion.
Boundaries
- Support the official macOS WorkBuddy app only.
- Never modify, unpack, replace, re-sign, or write into
WorkBuddy.apporapp.asar. - Never install Codex, write Codex hooks, open Codex Settings, or require
~/.codex/pets. - Never add theme CSS, background images, skin colors, or page styling. Route those requests to the separate skin Skill.
- Keep Petdex creator attribution and source URLs in local metadata.
- Petdex pets are community submissions and may be fan works. Tell users to check rights before public or commercial use.
- Do not restart WorkBuddy without explicit permission.