From fdb43310328c8b21bd50a86ed937a9c63aceae71 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 14 Jan 2025 11:03:15 -0800 Subject: [PATCH] Build plugins --- .../vendored/plugins/template-function-prompt/build/index.js | 1 + .../vendored/plugins/template-function-response/package.json | 2 +- src-web/hooks/useTemplateFunctions.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src-tauri/vendored/plugins/template-function-prompt/build/index.js b/src-tauri/vendored/plugins/template-function-prompt/build/index.js index abc91cd9..439b9e53 100644 --- a/src-tauri/vendored/plugins/template-function-prompt/build/index.js +++ b/src-tauri/vendored/plugins/template-function-prompt/build/index.js @@ -29,6 +29,7 @@ var plugin = { description: "Prompt the user for input when sending a request", args: [ { type: "text", name: "title", label: "Title" }, + { type: "text", name: "label", label: "Label", optional: true }, { type: "text", name: "defaultValue", label: "Default Value", optional: true }, { type: "text", name: "placeholder", label: "Placeholder", optional: true } ], diff --git a/src-tauri/vendored/plugins/template-function-response/package.json b/src-tauri/vendored/plugins/template-function-response/package.json index dfb064ac..7cb3a387 100644 --- a/src-tauri/vendored/plugins/template-function-response/package.json +++ b/src-tauri/vendored/plugins/template-function-response/package.json @@ -1,5 +1,5 @@ { - "name": "template-function-response", + "name": "@yaakapp/template-function-response", "private": true, "version": "0.0.1", "scripts": { diff --git a/src-web/hooks/useTemplateFunctions.ts b/src-web/hooks/useTemplateFunctions.ts index 78d50bed..d2d08cd7 100644 --- a/src-web/hooks/useTemplateFunctions.ts +++ b/src-web/hooks/useTemplateFunctions.ts @@ -52,7 +52,7 @@ export function useSubscribeTemplateFunctions() { // NOTE: visibilitychange (refetchOnWindowFocus) does not work on Windows, so we'll rely on this logic // to refetch things until that's working again // TODO: Update plugin system to wait for plugins to initialize before sending the first event to them - refetchInterval: numFns > 0 ? Infinity : 500, + refetchInterval: numFns > 0 ? Infinity : 1000, refetchOnMount: true, queryFn: async () => { const result = await invokeCmd('cmd_template_functions');