Skip to content

feat: provision core extensions + show in /status#9

Merged
royosherove merged 1 commit into
mainfrom
feat/provision-extensions
May 7, 2026
Merged

feat: provision core extensions + show in /status#9
royosherove merged 1 commit into
mainfrom
feat/provision-extensions

Conversation

@royosherove
Copy link
Copy Markdown
Member

Fixes new lowkey installs missing pi-hard-no/pi-branch-enforcer.

  • bundle.ts: provisionExtensions() adds pi-hard-no + pi-branch-enforcer to settings.json on /update
  • setup.ts: adds both during fresh install
  • gateway.ts: /status shows loaded extensions

235 tests passing.

- 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
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/bundle.ts
* Ensure core extensions are listed in ~/.pi/agent/settings.json packages array.
*/
export function provisionExtensions(opts: ProvisionOpts = {}): void {
const { log = defaultLog } = opts;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

@royosherove royosherove merged commit abb7ac0 into main May 7, 2026
1 check passed
@royosherove royosherove deleted the feat/provision-extensions branch May 7, 2026 21:33
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.

1 participant