[PR #310] feat: add select option for promt + template-function-promt-select plugin #232

Open
opened 2025-12-29 07:19:59 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mountain-loop/yaak/pull/310
Author: @majcn
Created: 11/27/2025
Status: 🔄 Open

Base: mainHead: main


📝 Commits (2)

  • ace635d add select option for Context.prompt
  • 9290b01 add template-function-prompt-select plugin

📊 Changes

13 files changed (+395 additions, -2 deletions)

View changed files

📝 package-lock.json (+12 -0)
📝 package.json (+1 -0)
📝 packages/plugin-runtime-types/src/bindings/gen_events.ts (+21 -1)
📝 packages/plugin-runtime-types/src/plugins/Context.ts (+3 -0)
📝 packages/plugin-runtime/src/PluginInstance.ts (+8 -0)
plugins/template-function-prompt-select/package.json (+14 -0)
plugins/template-function-prompt-select/src/index.ts (+211 -0)
plugins/template-function-prompt-select/tsconfig.json (+3 -0)
📝 src-tauri/src/plugin_events.rs (+4 -0)
📝 src-tauri/yaak-plugins/bindings/gen_events.ts (+21 -1)
📝 src-tauri/yaak-plugins/src/events.rs (+37 -0)
📝 src-web/lib/initGlobalListeners.tsx (+15 -0)
src-web/lib/promptSelect.ts (+45 -0)

📄 Description

When you call GET /list you often list all of your items and to GET /{itemId} I think select is way better option then just simple text.

I tried to make it as clean as possible, but it might be a bit of duplicated code because a lot of stuff is similar to text prompt


🔄 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/310 **Author:** [@majcn](https://github.com/majcn) **Created:** 11/27/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`ace635d`](https://github.com/mountain-loop/yaak/commit/ace635dd7dd23e59e55e0ad62959f4ee8d122211) add select option for Context.prompt - [`9290b01`](https://github.com/mountain-loop/yaak/commit/9290b014351a01ecbeb105d9eabf9e52bef8171a) add template-function-prompt-select plugin ### 📊 Changes **13 files changed** (+395 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `package-lock.json` (+12 -0) 📝 `package.json` (+1 -0) 📝 `packages/plugin-runtime-types/src/bindings/gen_events.ts` (+21 -1) 📝 `packages/plugin-runtime-types/src/plugins/Context.ts` (+3 -0) 📝 `packages/plugin-runtime/src/PluginInstance.ts` (+8 -0) ➕ `plugins/template-function-prompt-select/package.json` (+14 -0) ➕ `plugins/template-function-prompt-select/src/index.ts` (+211 -0) ➕ `plugins/template-function-prompt-select/tsconfig.json` (+3 -0) 📝 `src-tauri/src/plugin_events.rs` (+4 -0) 📝 `src-tauri/yaak-plugins/bindings/gen_events.ts` (+21 -1) 📝 `src-tauri/yaak-plugins/src/events.rs` (+37 -0) 📝 `src-web/lib/initGlobalListeners.tsx` (+15 -0) ➕ `src-web/lib/promptSelect.ts` (+45 -0) </details> ### 📄 Description When you call GET /list you often list all of your items and to GET /{itemId} I think select is way better option then just simple text. I tried to make it as clean as possible, but it might be a bit of duplicated code because a lot of stuff is similar to text prompt --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 07:19:59 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/yaak#232