mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
[PR #301] [MERGED] Improved prompt function add add ctx.* functions #223
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/301
Author: @gschier
Created: 11/13/2025
Status: ✅ Merged
Merged: 11/15/2025
Merged by: @gschier
Base:
main← Head:better-prompt📝 Commits (10+)
dd67d23Improved prompt function add add ctx.* functions456a423Add previewType to pluginscc3cb6fWrap dynamic form HSTack52fcd1bRefined prompt form inputsd14dd2cBetter errorc97dd4fAddress PR feedback2d8436dMerge branch 'main' into better-prompt8e3cc94Tweakcda43a9Merge remote-tracking branch 'origin/better-prompt' into better-prompt577f429Remove unused TemplateVariableDialog.tsx📊 Changes
29 files changed (+455 additions, -151 deletions)
View changed files
📝
package-lock.json(+19 -2)📝
package.json(+1 -0)📝
packages/plugin-runtime-types/package.json(+1 -1)📝
packages/plugin-runtime-types/src/bindings/gen_events.ts(+10 -4)📝
packages/plugin-runtime-types/src/plugins/Context.ts(+4 -1)📝
packages/plugin-runtime/src/PluginInstance.ts(+52 -22)➕
plugins/template-function-ctx/package.json(+12 -0)➕
plugins/template-function-ctx/src/index.ts(+30 -0)➕
plugins/template-function-ctx/tsconfig.json(+3 -0)📝
plugins/template-function-json/src/index.ts(+0 -1)📝
plugins/template-function-prompt/package.json(+4 -1)📝
plugins/template-function-prompt/src/index.ts(+169 -20)📝
src-tauri/src/lib.rs(+2 -1)📝
src-tauri/src/plugin_events.rs(+25 -1)📝
src-tauri/yaak-plugins/bindings/gen_events.ts(+10 -4)📝
src-tauri/yaak-plugins/src/events.rs(+37 -0)📝
src-tauri/yaak-plugins/src/native_template_functions.rs(+3 -1)📝
src-web/commands/commands.tsx(+0 -1)📝
src-web/components/DynamicForm.tsx(+3 -3)📝
src-web/components/RequestMethodDropdown.tsx(+0 -1)...and 9 more files
📄 Description
prompt.text()window.(requestId|environmentId|workspaceId)plugin APIswindow.request()etc template functionspreviewType(live | click | never) to template function definition🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.