@adeildo/pi-ask-questions

中文文档
6.0.0发布于 2026/11/02MITES Module构建来源已验证近 30 天下载 2855

Lets the model ask you instead of guessing: options with a preview of each, a note on any of them, and your own answer, in a dialog that scrolls with the chat.

原始使用文档
文档目录4 节
  1. Answering
  2. What the model reads
  3. Settings
  4. Learn more

@adeildo/pi-ask-questions

npm pi SDK

When the model lacks something that only you know, it guesses, and you find out later. This package gives the model a tool to ask you instead. Each question comes with options, a preview of what each option leads to, a note that you can leave on any option, and a row for your own answer.

pi install npm:@adeildo/pi-ask-questions

The question dialog: two questions as tabs, the options on the left, and on the right the description and the preview of the focused option.
A question that takes several answers, with two of its three options checked.
Pick an option and read what it does, or check more than one answer.

Answering

The options are on the left, and the panel on the right shows what the option under the cursor means and what it leads to. When the model asks several questions, each one gets a tab.

KeyWhat it does
↑ ↓, a numberMove between the options
EnterChoose the option. When several picks are allowed, confirm the ticked ones
SpaceTick an option, when several picks are allowed
TabWrite a note on the option under the cursor
← →Go to another question, or to submit
Shift+↑ Shift+↓Scroll a long preview. PgUp PgDn work too, outside fullscreen
EscClose without answering. In the typed row or in a note, step back

A note is the part that matters most. Press Tab on any option, picked or not, and write why. "Too long with five accounts", on an option you turned down, tells the model more than the pick alone.

The last row, Type something., is for an answer in your own words.

What the model reads

The user answered:
- Layout: "Which layout should the accounts section use?" → "Tree (Recommended)"
  note on "Tree (Recommended)": fits how I think
  note on "Flat list" (not picked): too long with five accounts
Continue with these answers in mind.

Settings

These are on the Questions tab of Alt+S, and stored under questions in ~/.pi/agent/extensions/pi-harness/settings.json.

SettingDefaultWhat it does
When and how to askemptyYour own words for the model, added to the tool's guidelines. Say when to ask, or what to show
Ring the bellonThe terminal bell rings when the questions start to wait for you
Typing pause1sHow long after you stop typing in the editor the questions open
Typing wait capemptyThe longest the questions wait while you type. When empty, they wait as long as you type

Learn more

How it works covers the dialog while the model is still writing, the review tab, the chat, asking from another package, and moving from rpiv-ask-user-question.

adeildo.dev
pi-harness is made by adeildo.dev

版本与发布记录

@adeildo/pi-ask-questions 共发布 28 个版本,首次发布于 2026/10/01;过去 12 个月发布了 28 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
6.0.0latest2026/11/025 天前
5.15.02026/10/2414 天前
5.14.02026/10/2414 天前
5.13.02026/10/2315 天前
5.12.22026/10/2316 天前
5.12.12026/10/2216 天前

关于 @adeildo/pi-ask-questions 的常见问题

@adeildo/pi-ask-questions 是什么?

Lets the model ask you instead of guessing: options with a preview of each, a note on any of them, and your own answer, in a dialog that scrolls with the chat.

如何安装 @adeildo/pi-ask-questions?

在项目目录运行 npm install @adeildo/pi-ask-questions,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:typebox(*)、@earendil-works/pi-ai(*)、@earendil-works/pi-tui(*)、@earendil-works/pi-coding-agent(*)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@adeildo/pi-ask-questions 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/adeildo__pi-ask-questions 是否存在。

@adeildo/pi-ask-questions 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@adeildo/pi-ask-questions 可以商用吗?

@adeildo/pi-ask-questions 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@adeildo/pi-ask-questions 的下载量有多少?

根据 npm 官方下载统计,@adeildo/pi-ask-questions 在 2026/10/05 – 2026/11/03 这 30 天内被下载 2,855 次,日均约 95 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@adeildo/pi-ask-questions 还在维护吗?

最新版本 6.0.0 发布于 2026/11/02(5 天前);至今共发布 28 个版本,其中过去 12 个月发布了 28 个;首次发布于 2026/10/01。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。