Skip to content

fix(headshot): add Tools/package.json for @google/genai dependency (#2781) - #2794

Closed
isihussain wants to merge 1 commit into
danielmiessler:mainfrom
isihussain:fix/headshot-tools-package-json
Closed

isihussain wants to merge 1 commit into
danielmiessler:mainfrom
isihussain:fix/headshot-tools-package-json

Conversation

@isihussain

Copy link
Copy Markdown

Summary

Fixes #2781.

The Headshot skill imports @google/genai in skills/Headshot/Tools/Headshot.ts, but unlike sibling tools (Art/Tools and StoryFilm/Tools), the Headshot skill had no Tools/package.json. Consequently, @google/genai was never installed, causing setup checks (�un ~/.claude/skills/Headshot/Tools/Headshot.ts check) to exit immediately with:
Cannot find module '@google/genai'

Solution

  1. Added LifeOS/install/skills/Headshot/Tools/package.json with @google/genai: ^1.40.0 and trustedDependencies (@google/genai, protobufjs).
  2. Updated LifeOS/install/skills/Headshot/Setup.md under Accounts and secrets and Prove it works to include cd ~/.claude/skills/Headshot/Tools && bun install.

Signed-off-by: isihussain isihussain@users.noreply.github.com

…anielmiessler#2781)

Headshot skill was missing Tools/package.json, so @google/genai was never
installed and bun check crashed with 'Cannot find module @google/genai'.
Add package.json with @google/genai dependency and trustedDependencies,
and update Setup.md with bun install instruction.

Closes danielmiessler#2781

Signed-off-by: isihussain <isihussain@users.noreply.github.com>
@danielmiessler

Copy link
Copy Markdown
Owner

Note

🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks @isihussain. We used this as the reference for #2781: Headshot now ships a Tools/package.json that declares @google/genai. We left out the trustedDependencies entry, because we don't let a package run install scripts unless we need it to.

The fix lands in the next LifeOS release. Our public repo is generated from the private source at each release, so we port a PR there rather than merging it, and you are credited at the fix site, in the commit as a co-author, and in the README credits. Closing this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Headshot: Tools/ has no package.json, so @google/genai never installs and the…

2 participants