Add package preview gif to pi-nes package.json
Session from pi-nes-sessions on Hugging Face by thomasmustier · MIT · condensed by Coders Talk
2msession
0interventions
GOAL
Add a preview image (demo gif) to the pi-nes package manifest so it shows up in the new pi package browser, then publish the update.
- +0Prompt · +0Add the readme demo gif as the preview image in package.json for the pi package browser
- +0mAgent did · +0mRead README and package.json, added a pi.image field pointing at assets/demo.gif in package.json
- +0mPrompt · +0mCommit/push
- +0mAgent did · +0mStaged, committed and pushed the package.json change to main
- +1mPrompt · +1mDo we need to publish for this to be reflected?
- +1mAgent did · +1mChecked pi packages docs, concluded a new npm publish is likely needed for the image field to show since docs don't confirm it explicitly
- +1mPrompt · +1mOk please publish
- +1mAgent did · +1mBumped version to 0.2.37, pushed tag, and published the package to npm with public access
- +2mOutcome · +2mPublished @tmustier/[email protected] with preview gif, tagged v0.2.37, pushed to main
VERDICT
I'd start by just asking it to add the preview image and publish in one go, since I knew I'd want that anyway. The agent was upfront that it wasn't sure publishing was required to reflect the change, which saved me from assuming the git push alone was enough. Overall a quick, low-friction change with no real corrections needed.