civaapple-alt/pi-cordis--packages-plugins-ask-question ↗★ 0

@pi-cordis/plugin-ask-question

Interactive question asking and requirement clarification plugin for Pi-Cordis 适合需模型主动追问需求、澄清选项的任务;依赖 Pi 终端 UI 支持。

패키지
@pi-cordis/plugin-ask-question
호환성
미검증
Cordis peer 범위
^4.0.1
버전
0.1.0
최근 업데이트
2026. 8. 21.

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗

@pi-cordis/plugin-ask-question

English | 中文

Registers ask_question and bridges sequential clarifying questions to Pi's real terminal UI.

The tool accepts either questions[] or the legacy question/options shape. Each question supports labeled options with descriptions and notes; when Pi exposes text input, an optional custom-answer choice is added. Answers return stable IDs, selected labels, notes, and custom text.

The Pi UI bridge presents one selection per question. An option carrying preview opens Pi's scrollable editor as a read-only review copy when available, then requires a second confirmation before the choice is accepted; minimal UI providers receive the complete preview in that confirmation step. The user can return to the option list. Multi-select is not advertised.

Headless execution returns INTERACTIVE_UI_UNAVAILABLE, empty questions return INVALID_QUESTION, and cancellation returns an empty selection with cancelled: true. Cancellation stops the remaining question batch immediately. The renderer distinguishes failures and cancellations from completed answers, and the plugin never substitutes a default for a missing user decision.