[PR #357] [CLOSED] feat: add ctx.prompt.form() API for multi-field form dialogs #1264

Closed
opened 2026-04-26 00:16:11 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mountain-loop/yaak/pull/357
Author: @gschier
Created: 1/10/2026
Status: Closed

Base: mainHead: omnara/repose-aversion


📝 Commits (1)

  • fa3e6e6 feat: add ctx.prompt.form() API for multi-field form dialogs

📊 Changes

6 files changed (+68 additions, -2 deletions)

View changed files

📝 crates/yaak-plugins/bindings/gen_events.ts (+5 -1)
📝 crates/yaak-plugins/src/events.rs (+25 -0)
📝 packages/plugin-runtime-types/src/bindings/gen_events.ts (+5 -1)
📝 packages/plugin-runtime-types/src/plugins/Context.ts (+3 -0)
📝 packages/plugin-runtime/src/PluginInstance.ts (+8 -0)
📝 src-web/lib/initGlobalListeners.tsx (+22 -0)

📄 Description

Add PromptFormRequest and PromptFormResponse types to enable plugins to display forms with multiple input fields. Implement the form() method in the prompt context and wire up frontend event handling to show and collect form responses from users.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mountain-loop/yaak/pull/357 **Author:** [@gschier](https://github.com/gschier) **Created:** 1/10/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `omnara/repose-aversion` --- ### 📝 Commits (1) - [`fa3e6e6`](https://github.com/mountain-loop/yaak/commit/fa3e6e6508e409a5faddab0f7ff6591f011ae025) feat: add ctx.prompt.form() API for multi-field form dialogs ### 📊 Changes **6 files changed** (+68 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/yaak-plugins/bindings/gen_events.ts` (+5 -1) 📝 `crates/yaak-plugins/src/events.rs` (+25 -0) 📝 `packages/plugin-runtime-types/src/bindings/gen_events.ts` (+5 -1) 📝 `packages/plugin-runtime-types/src/plugins/Context.ts` (+3 -0) 📝 `packages/plugin-runtime/src/PluginInstance.ts` (+8 -0) 📝 `src-web/lib/initGlobalListeners.tsx` (+22 -0) </details> ### 📄 Description Add PromptFormRequest and PromptFormResponse types to enable plugins to display forms with multiple input fields. Implement the form() method in the prompt context and wire up frontend event handling to show and collect form responses from users. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-26 00:16:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/yaak#1264