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

@pi-cordis/plugin-ask-question

为 Pi-Cordis 提供交互式提问与需求澄清,将问题桥接到终端界面。 适合需模型主动追问需求、澄清选项的任务;依赖 Pi 终端 UI 支持。

包名
@pi-cordis/plugin-ask-question
兼容性
待验证
Cordis 依赖范围
^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.