feat: provision core extensions + show in /status#9
Conversation
- bundle.ts: add provisionExtensions() — ensures pi-hard-no and pi-branch-enforcer are in settings.json packages on /update - setup.ts: add both extensions during fresh install - gateway.ts: /status now shows loaded extensions list Fixes: new lowkey installs missing pi-hard-no/pi-branch-enforcer
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: db9b702e13
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| * Ensure core extensions are listed in ~/.pi/agent/settings.json packages array. | ||
| */ | ||
| export function provisionExtensions(opts: ProvisionOpts = {}): void { | ||
| const { log = defaultLog } = opts; |
There was a problem hiding this comment.
Use a defined logger fallback in provisionExtensions
provisionExtensions destructures log with defaultLog, but defaultLog is not defined in this module. When /update calls provisionBundle() without opts (see src/commands/update.ts), this line throws a ReferenceError before entering the try block, so extension provisioning is skipped and the bundle step is reported as failed despite the function being documented as non-fatal.
Useful? React with 👍 / 👎.
Fixes new lowkey installs missing pi-hard-no/pi-branch-enforcer.
235 tests passing.