Skip to content
PifeatureCLI & tooling1 file · +7 −6

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.

  1. Prompt · +0
    Add the readme demo gif as the preview image in package.json for the pi package browser
  2. Agent did · +0m
    Read README and package.json, added a pi.image field pointing at assets/demo.gif in package.json
  3. Prompt · +0m
    Commit/push
  4. Agent did · +0m
    Staged, committed and pushed the package.json change to main
  5. Prompt · +1m
    Do we need to publish for this to be reflected?
  6. Agent did · +1m
    Checked pi packages docs, concluded a new npm publish is likely needed for the image field to show since docs don't confirm it explicitly
  7. Prompt · +1m
    Ok please publish
  8. Agent did · +1m
    Bumped version to 0.2.37, pushed tag, and published the package to npm with public access
  9. Outcome · +2m
    Published @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.

I tried this · 0

Discussion · 0

How Builds work