Build plugins

This commit is contained in:
Gregory Schier
2025-01-14 11:03:15 -08:00
parent 8d645eb8c6
commit fdb4331032
3 changed files with 3 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ var plugin = {
description: "Prompt the user for input when sending a request", description: "Prompt the user for input when sending a request",
args: [ args: [
{ type: "text", name: "title", label: "Title" }, { 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: "defaultValue", label: "Default Value", optional: true },
{ type: "text", name: "placeholder", label: "Placeholder", optional: true } { type: "text", name: "placeholder", label: "Placeholder", optional: true }
], ],

View File

@@ -1,5 +1,5 @@
{ {
"name": "template-function-response", "name": "@yaakapp/template-function-response",
"private": true, "private": true,
"version": "0.0.1", "version": "0.0.1",
"scripts": { "scripts": {

View File

@@ -52,7 +52,7 @@ export function useSubscribeTemplateFunctions() {
// NOTE: visibilitychange (refetchOnWindowFocus) does not work on Windows, so we'll rely on this logic // NOTE: visibilitychange (refetchOnWindowFocus) does not work on Windows, so we'll rely on this logic
// to refetch things until that's working again // 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 // 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, refetchOnMount: true,
queryFn: async () => { queryFn: async () => {
const result = await invokeCmd<GetTemplateFunctionsResponse[]>('cmd_template_functions'); const result = await invokeCmd<GetTemplateFunctionsResponse[]>('cmd_template_functions');