diff --git a/.github/workflows/test_and_publish.yml b/.github/workflows/test_and_publish.yml index fac8d5d..92a08b1 100644 --- a/.github/workflows/test_and_publish.yml +++ b/.github/workflows/test_and_publish.yml @@ -2,11 +2,21 @@ on: push: branches: - main - tags: - - v* - release: - types: - - created + # tags: + # - v* + # release: + # types: + # - created + workflow_dispatch: + inputs: + publish_vse: + type: boolean + default: false + description: publish to marketplace + publish_github: + type: boolean + default: false + description: publish to GitHub release jobs: build: @@ -26,8 +36,8 @@ jobs: if: runner.os == 'Linux' - run: npm test if: runner.os != 'Linux' - - name: Publish - if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest' + - name: Publish to marketplace + if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest' && ${{ inputs.publish_vse }} run: npm run deploy env: VSCE_PAT: ${{ secrets.VSCE_PAT }} diff --git a/.vscodeignore b/.vscodeignore index 72aa0fe..6f3cbf2 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -9,3 +9,6 @@ vsc-extension-quickstart.md **/*.map **/*.ts **/.vscode-test.* +demo/** +examples/** +.github/** diff --git a/README.md b/README.md index 35934ce..431f947 100644 --- a/README.md +++ b/README.md @@ -10,16 +10,21 @@ VS Code extension for [HandyLLM](https://github.com/atomiechen/HandyLLM) (>= 0.7 See demo below: -![example screenshot](https://raw.githubusercontent.com/atomiechen/vscode-handyllm/main/assets/demo/example.jpg) +![example screenshot](https://raw.githubusercontent.com/atomiechen/vscode-handyllm/main/demo/example.jpg) ### Run hprompt file +- Run the active hprompt file from the action button, or right click an `.hprompt` file, or issue from the command palette `Run Hprompt` (keyboard shortcut configured). +- You can change `handyllm` command used in the terminal by setting `handyllm.commandName` (needs installation of [HandyLLM CLI](https://github.com/atomiechen/HandyLLM)). + See gif below: -![run hprompt](https://raw.githubusercontent.com/atomiechen/vscode-handyllm/main/assets/demo/run.gif) +![run hprompt](https://raw.githubusercontent.com/atomiechen/vscode-handyllm/main/demo/run.gif) ### Create starter hprompt file +Issue from command palette `New Hprompt File`, or `New File` and then select `Hprompt File`. + See gif below: -![create hprompt](https://raw.githubusercontent.com/atomiechen/vscode-handyllm/main/assets/demo/create.gif) +![create hprompt](https://raw.githubusercontent.com/atomiechen/vscode-handyllm/main/demo/create.gif) diff --git a/assets/demo/create.gif b/assets/demo/create.gif deleted file mode 100644 index 27a35b1..0000000 Binary files a/assets/demo/create.gif and /dev/null differ diff --git a/demo/create.gif b/demo/create.gif new file mode 100644 index 0000000..d20fafb Binary files /dev/null and b/demo/create.gif differ diff --git a/assets/demo/example.jpg b/demo/example.jpg similarity index 100% rename from assets/demo/example.jpg rename to demo/example.jpg diff --git a/assets/demo/run.gif b/demo/run.gif similarity index 100% rename from assets/demo/run.gif rename to demo/run.gif diff --git a/package-lock.json b/package-lock.json index ffae45d..87f1bf4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "handyllm", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "handyllm", - "version": "0.1.0", + "version": "0.1.1", "devDependencies": { "@types/mocha": "^10.0.6", "@types/node": "18.x", diff --git a/package.json b/package.json index 80e2fc8..99d2c92 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "url": "https://github.com/atomiechen/vscode-handyllm" }, "private": true, - "version": "0.1.0", + "version": "0.1.1", "engines": { "vscode": "^1.66.0" }, @@ -41,11 +41,14 @@ "icon": { "dark": "assets/icon/action_dark.svg", "light": "assets/icon/action_light.svg" - } + }, + "category": "HandyLLM" }, { "command": "handyllm.createHprompt", - "title": "Hprompt File" + "title": "New Hprompt File", + "shortTitle": "Hprompt File", + "category": "HandyLLM" } ], "menus": {