mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-19 11:03:41 +00:00
New tool for asking users one or more questions with a tab-based interface.
Features:
- Single question: simple options list (similar to question tool)
- Multiple questions: tab bar navigation between questions
- Progress indicators: ■/□ checkboxes show answered state
- Submit tab: review all answers before submitting
- 'Type something' option: free-text input with options visible
- Full keyboard navigation: Tab/←→ between questions, ↑↓ for options
Use cases:
- Clarifying requirements with multiple aspects
- Getting user preferences across categories
- Multi-step confirmation dialogs
Example:
```typescript
{
questions: [{
id: "db",
label: "Database",
prompt: "Which database?",
options: [
{ value: "pg", label: "PostgreSQL", description: "Relational" },
{ value: "mongo", label: "MongoDB", description: "Document store" }
]
}, {
id: "auth",
label: "Auth",
prompt: "Authentication method?",
options: [
{ value: "jwt", label: "JWT" },
{ value: "session", label: "Sessions" }
]
}]
}
```
|
||
|---|---|---|
| .. | ||
| agent | ||
| ai | ||
| coding-agent | ||
| mom | ||
| pods | ||
| tui | ||
| web-ui | ||