From 2439ffd28c21dcd0ffb78d5020ee2b79ed943f70 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 3 Mar 2026 16:01:25 -0800 Subject: [PATCH] chore: remove prompt form CLI test plugin scaffold --- .../package.json | 10 ---- .../src/index.ts | 59 ------------------- .../tsconfig.json | 6 -- 3 files changed, 75 deletions(-) delete mode 100644 plugins/template-function-prompt-form-cli-test/package.json delete mode 100644 plugins/template-function-prompt-form-cli-test/src/index.ts delete mode 100644 plugins/template-function-prompt-form-cli-test/tsconfig.json diff --git a/plugins/template-function-prompt-form-cli-test/package.json b/plugins/template-function-prompt-form-cli-test/package.json deleted file mode 100644 index 71c11560..00000000 --- a/plugins/template-function-prompt-form-cli-test/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "@gschier/prompt-form-cli-test", - "displayName": "Prompt Form CLI Test", - "description": "Tiny plugin to test prompt.form in the CLI host", - "private": true, - "version": "0.0.1", - "scripts": { - "build": "yaak plugin build" - } -} diff --git a/plugins/template-function-prompt-form-cli-test/src/index.ts b/plugins/template-function-prompt-form-cli-test/src/index.ts deleted file mode 100644 index 1410b10c..00000000 --- a/plugins/template-function-prompt-form-cli-test/src/index.ts +++ /dev/null @@ -1,59 +0,0 @@ -export const plugin = { - templateFunctions: [ - { - name: 'prompt.form.demo', - description: 'Prompt for a few values using prompt.form and return a JSON string', - args: [], - async onRender(ctx, args) { - if (args.purpose !== 'send') { - return null; - } - - const values = await ctx.prompt.form({ - id: 'prompt-form-demo', - title: 'CLI Prompt Form Demo', - description: 'Fill out the fields to test prompt.form in the CLI.', - inputs: [ - { - type: 'text', - name: 'username', - label: 'Username', - defaultValue: 'alice' - }, - { - type: 'text', - name: 'password', - label: 'Password', - password: true, - optional: true - }, - { - type: 'select', - name: 'region', - label: 'Region', - defaultValue: 'us', - options: [ - { label: 'US', value: 'us' }, - { label: 'EU', value: 'eu' }, - { label: 'APAC', value: 'apac' } - ] - }, - { - type: 'checkbox', - name: 'remember', - label: 'Remember', - defaultValue: 'true', - optional: true - } - ] - }); - - if (values == null) { - throw new Error('Prompt form cancelled'); - } - - return JSON.stringify(values); - } - } - ] -}; diff --git a/plugins/template-function-prompt-form-cli-test/tsconfig.json b/plugins/template-function-prompt-form-cli-test/tsconfig.json deleted file mode 100644 index 94b096d4..00000000 --- a/plugins/template-function-prompt-form-cli-test/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "compilerOptions": { - "strict": true - }, - "include": ["src"] -}