Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@ifi/pi-shared-qna

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ifi/pi-shared-qna

Shared TUI question-and-answer component for pi extensions.

latest
Source
npmnpm
Version
0.5.1
Version published
Maintainers
1
Created
Source

@ifi/pi-shared-qna

Shared question-and-answer TUI helpers for pi extensions.

This package vendors the shared/qna-tui.ts component from sids/pi-extensions into the oh-pi monorepo so other first-party packages can reuse it without depending on third-party pi packages at runtime.

Shared pi-tui loader

@ifi/pi-shared-qna centralizes @mariozechner/pi-tui loading so first-party packages reuse one fallback strategy instead of embedding Bun-global lookup logic in multiple runtime modules.

The shared loader tries the normal package resolution path first, then falls back to Bun global install locations when a project is running outside a conventional dependency layout.

getPiTuiFallbackPaths(options?)

Return the ordered list of Bun global fallback paths to try for @mariozechner/pi-tui.

The list prefers an explicit BUN_INSTALL root when provided and always includes the default ~/.bun/install/global/node_modules/@mariozechner/pi-tui fallback without duplicates.

requirePiTuiModule(options?)

Load @mariozechner/pi-tui with a shared fallback strategy.

The loader first tries the normal package import path, then walks the Bun-global fallback list, and finally throws a helpful error that names every checked location when none of them resolve.

Keywords

components

FAQs

Package last updated on 28 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts