|
3 | 3 | "displayName": "Cody++",
|
4 | 4 | "description": "Adds some missing features for developers who love Cody",
|
5 | 5 | "publisher": "mnismt",
|
6 |
| - "version": "0.0.1", |
| 6 | + "version": "0.1.0", |
7 | 7 | "license": "MIT",
|
8 | 8 | "icon": "resources/cody-plus-plus.png",
|
9 | 9 | "homepage": "https://github.com/mnismt/codyplusplus",
|
|
25 | 25 | "command": "cody-plus-plus.addFolder",
|
26 | 26 | "title": "Add Folder to Cody Chat",
|
27 | 27 | "category": "Cody++"
|
| 28 | + }, |
| 29 | + { |
| 30 | + "command": "cody-plus-plus.addCustomCommand", |
| 31 | + "title": "Add New", |
| 32 | + "category": "Cody++", |
| 33 | + "icon": "$(add)" |
| 34 | + }, |
| 35 | + { |
| 36 | + "command": "codyPlusPlus.editCommand", |
| 37 | + "title": "Edit", |
| 38 | + "category": "Cody++", |
| 39 | + "icon": "$(edit)" |
| 40 | + }, |
| 41 | + { |
| 42 | + "command": "codyPlusPlus.deleteCommand", |
| 43 | + "title": "Delete", |
| 44 | + "category": "Cody++", |
| 45 | + "icon": "$(trash)" |
28 | 46 | }
|
29 | 47 | ],
|
30 | 48 | "menus": {
|
|
34 | 52 | "when": "explorerResourceIsFolder && cody.activated",
|
35 | 53 | "group": "0_cody"
|
36 | 54 | }
|
| 55 | + ], |
| 56 | + "view/title": [ |
| 57 | + { |
| 58 | + "command": "cody-plus-plus.addCustomCommand", |
| 59 | + "when": "view == customCommands", |
| 60 | + "group": "navigation" |
| 61 | + } |
| 62 | + ], |
| 63 | + "view/item/context": [ |
| 64 | + { |
| 65 | + "command": "codyPlusPlus.editCommand", |
| 66 | + "when": "viewItem == customCommand", |
| 67 | + "group": "inline" |
| 68 | + }, |
| 69 | + { |
| 70 | + "command": "codyPlusPlus.deleteCommand", |
| 71 | + "when": "viewItem == customCommand", |
| 72 | + "group": "inline" |
| 73 | + } |
37 | 74 | ]
|
38 | 75 | },
|
39 | 76 | "configuration": {
|
|
57 | 94 | "description": "List of file extensions to exclude from being added to Cody."
|
58 | 95 | }
|
59 | 96 | }
|
| 97 | + }, |
| 98 | + "viewsContainers": { |
| 99 | + "activitybar": [ |
| 100 | + { |
| 101 | + "id": "codyPlusPlus", |
| 102 | + "title": "Cody++", |
| 103 | + "icon": "resources/cody-plus-plus.png" |
| 104 | + } |
| 105 | + ] |
| 106 | + }, |
| 107 | + "views": { |
| 108 | + "codyPlusPlus": [ |
| 109 | + { |
| 110 | + "id": "customCommands", |
| 111 | + "name": "Custom Commands" |
| 112 | + } |
| 113 | + ] |
60 | 114 | }
|
61 | 115 | },
|
62 | 116 | "scripts": {
|
63 |
| - "vscode:prepublish": "pnpm run package", |
64 |
| - "vscode:package": "pnpm run vscode:prepublish && pnpm vsce package --no-dependencies", |
| 117 | + "vscode:package": "pnpm run package && pnpm vsce package --no-dependencies", |
65 | 118 | "compile": "pnpm run check-types && pnpm run lint && node esbuild.js",
|
66 | 119 | "watch": "npm-run-all -p watch:*",
|
67 | 120 | "watch:esbuild": "node esbuild.js --watch",
|
| 121 | + "watch:webviews": "cd src/webviews && pnpm run dev", |
| 122 | + "build:webviews": "rm -rf dist/webviews && cd src/webviews && pnpm run build && cpx \"./dist/assets/**\" \"../../dist/webviews/assets\"", |
68 | 123 | "watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
|
69 |
| - "package": "pnpm run check-types && pnpm run lint && node esbuild.js --production", |
| 124 | + "package": "pnpm run check-types && pnpm run build:webviews && pnpm run lint && node esbuild.js --production", |
70 | 125 | "compile-tests": "tsc -p . --outDir out",
|
71 | 126 | "watch-tests": "tsc -p . -w --outDir out",
|
72 | 127 | "pretest": "pnpm run compile-tests && pnpm run compile && pnpm run lint",
|
|
83 | 138 | "@typescript-eslint/parser": "^7.7.1",
|
84 | 139 | "@vscode/test-cli": "^0.0.9",
|
85 | 140 | "@vscode/test-electron": "^2.3.9",
|
| 141 | + "cpx": "^1.5.0", |
86 | 142 | "esbuild": "^0.20.2",
|
87 | 143 | "eslint": "^8.57.0",
|
88 | 144 | "eslint-config-prettier": "^9.1.0",
|
|
98 | 154 | "eslint --fix",
|
99 | 155 | "prettier --write"
|
100 | 156 | ]
|
| 157 | + }, |
| 158 | + "dependencies": { |
| 159 | + "zod": "^3.23.8" |
101 | 160 | }
|
102 | 161 | }
|
0 commit comments