Skip to content

Fail to install on Oh-my-pi #24

Closed

Description

@CoderTCY

✘ Failed to install pi-commandcode-provider: Error: Plugin pi-commandcode-provider extension validation failed:
C:\Users\Administrator.omp\plugins\node_modules\pi-commandcode-provider\index.ts: Export named 'calculateCost' not found in module 'D:\Bun\install\global\node_modules@oh-my-pi\pi-coding-agent\src\extensibility\legacy-pi-ai-shim.ts'.

Activity

  1. patlux commented on Jul 5, 2026

    @patlux
    Owner

    This should be fixed in [email protected] / GitHub release v0.4.2.

    The provider-side fix avoids importing calculateCost at runtime, so Oh My Pi extension validation should no longer fail on the missing export.

    The underlying compatibility problem is in Oh My Pi though: its legacy pi-ai shim remaps imports and does not export calculateCost, while upstream pi exposes it. So this should ideally also be reported/fixed in OMP itself.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions