summaryrefslogtreecommitdiff
path: root/extension/package.json
blob: c834f402b52cb99b868281cfec3d70cc5d27fe53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
{
  "name": "continue",
  "icon": "media/continue-gradient.png",
  "repository": {
    "type": "git",
    "url": "https://github.com/continuedev/continue"
  },
  "bugs": {
    "url": "https://github.com/continuedev/continue/issues",
    "email": "nate@continue.dev"
  },
  "homepage": "https://continue.dev",
  "license": "Apache-2.0",
  "displayName": "Continue",
  "pricing": "Free",
  "description": "Refine code 10x faster",
  "version": "0.0.20",
  "publisher": "Continue",
  "engines": {
    "vscode": "^1.74.0"
  },
  "categories": [
    "Other"
  ],
  "activationEvents": [
    "onStartupFinished",
    "onView:continueGUIView"
  ],
  "main": "./out/extension.js",
  "contributes": {
    "configuration": {
      "title": "Continue",
      "properties": {
        "continue.automode": {
          "type": "boolean",
          "default": true,
          "description": "Automatically find relevant code and suggest a fix whenever a traceback is found."
        },
        "continue.serverUrl": {
          "type": "string",
          "default": "http://localhost:8000",
          "description": "The URL of the Continue server to use."
        },
        "continue.OPENAI_API_KEY": {
          "type": "password",
          "default": "",
          "description": "The OpenAI API key to use for code generation."
        },
        "continue.HUGGING_FACE_TOKEN": {
          "type": "password",
          "default": "",
          "description": "The Hugging Face API token to use for code generation."
        }
      }
    },
    "commands": [
      {
        "command": "continue.writeDocstring",
        "category": "Continue",
        "title": "Write a docstring for the current function"
      },
      {
        "command": "continue.openContinueGUI",
        "category": "Continue",
        "title": "Open Continue GUI"
      },
      {
        "command": "continue.askQuestionFromInput",
        "Category": "Continue",
        "title": "Ask a question from input box"
      },
      {
        "command": "continue.openCapturedTerminal",
        "Category": "Continue",
        "title": "Open Captured Terminal"
      },
      {
        "command": "continue.askQuestion",
        "Category": "Continue",
        "title": "Ask a question from webview"
      },
      {
        "command": "continue.createTerminal",
        "category": "Continue",
        "title": "Create Terminal"
      },
      {
        "command": "continue.debugTest",
        "category": "Continue",
        "title": "Debug Test"
      },
      {
        "command": "continue.suggestionDown",
        "category": "Continue",
        "title": "Suggestion Down"
      },
      {
        "command": "continue.suggestionUp",
        "category": "Continue",
        "title": "Suggestion Up"
      },
      {
        "command": "continue.acceptSuggestion",
        "category": "Continue",
        "title": "Accept Suggestion"
      },
      {
        "command": "continue.rejectSuggestion",
        "category": "Continue",
        "title": "Reject Suggestion"
      },
      {
        "command": "continue.writeUnitTest",
        "title": "Write Unit Test",
        "category": "Continue"
      },
      {
        "command": "continue.findSuspiciousCode",
        "title": "Find Suspicious Code",
        "category": "Continue"
      },
      {
        "command": "continue.focusContinueInput",
        "title": "Focus Continue Input",
        "category": "Continue"
      }
    ],
    "keybindings": [
      {
        "command": "continue.suggestionDown",
        "mac": "shift+ctrl+down",
        "key": "shift+ctrl+down"
      },
      {
        "command": "continue.suggestionUp",
        "mac": "shift+ctrl+up",
        "key": "shift+ctrl+up"
      },
      {
        "command": "continue.acceptSuggestion",
        "mac": "shift+ctrl+enter",
        "key": "shift+ctrl+enter"
      },
      {
        "command": "continue.focusContinueInput",
        "mac": "cmd+k",
        "key": "ctrl+k"
      }
    ],
    "menus": {
      "view/title": [
        {
          "command": "continue.openContinueGUI",
          "group": "navigation",
          "when": "view == continue.continueGUIView"
        }
      ]
    },
    "views": {
      "explorer": [
        {
          "type": "webview",
          "id": "continue.continueGUIView",
          "name": "Continue GUI"
        }
      ]
    }
  },
  "scripts": {
    "vscode:prepublish": "npm run esbuild-base -- --minify",
    "esbuild-base": "rm -rf ./out && esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
    "esbuild": "rm -rf ./out && npm run esbuild-base -- --sourcemap",
    "esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
    "test-compile": "tsc -p ./",
    "clientgen": "rm -rf src/client/ && npx @openapitools/openapi-generator-cli generate -i ../schema/openapi.json -g typescript-fetch -o src/client/ --additional-properties=supportsES6=true,npmVersion=8.19.2,typescriptThreePlus=true",
    "typegen": "node scripts/typegen.js",
    "rebuild": "electron-rebuild -v 19.1.8 node-pty",
    "compile": "tsc -p ./",
    "watch": "tsc -watch -p ./",
    "pretest": "npm run compile && npm run lint",
    "lint": "eslint src --ext ts",
    "test": "node ./out/test/runTest.js",
    "package": "cp ./config/prod_config.json ./config/config.json && mkdir -p ./build && vsce package --out ./build && cp ./config/dev_config.json ./config/config.json",
    "full-package": "cd ../continuedev && poetry build && cp ./dist/continuedev-0.1.1-py3-none-any.whl ../extension/scripts/continuedev-0.1.1-py3-none-any.whl && cd ../extension && npm install && npm run typegen && npm run clientgen && cd react-app && npm install && npm run build && cd .. && npm run package",
    "install-extension": "code --install-extension ./build/continue-0.0.8.vsix",
    "uninstall": "code --uninstall-extension .continue",
    "reinstall": "rm -rf ./build && npm run package && npm run uninstall && npm run install-extension"
  },
  "devDependencies": {
    "@openapitools/openapi-generator-cli": "^2.5.2",
    "@types/glob": "^8.0.0",
    "@types/mocha": "^10.0.1",
    "@types/node": "16.x",
    "@types/node-fetch": "^2.6.2",
    "@types/react-dom": "^18.2.4",
    "@types/styled-components": "^5.1.26",
    "@types/vscode": "^1.74.0",
    "@types/ws": "^8.5.4",
    "@typescript-eslint/eslint-plugin": "^5.45.0",
    "@typescript-eslint/parser": "^5.45.0",
    "@vscode/test-electron": "^2.2.0",
    "esbuild": "^0.17.19",
    "eslint": "^8.28.0",
    "glob": "^8.0.3",
    "json-schema-to-typescript": "^12.0.0",
    "mocha": "^10.1.0",
    "typescript": "^4.9.3",
    "vsce": "^2.15.0"
  },
  "dependencies": {
    "@electron/rebuild": "^3.2.10",
    "@reduxjs/toolkit": "^1.9.3",
    "@segment/analytics-node": "^0.0.1-beta.16",
    "@styled-icons/heroicons-outline": "^10.47.0",
    "@vitejs/plugin-react-swc": "^3.3.2",
    "axios": "^1.2.5",
    "highlight.js": "^11.7.0",
    "octokit": "^2.0.11",
    "posthog-js": "^1.63.3",
    "react-markdown": "^8.0.7",
    "react-redux": "^8.0.5",
    "strip-ansi": "^7.0.1",
    "tailwindcss": "^3.3.2",
    "vite": "^4.3.9",
    "vscode-languageclient": "^8.0.2",
    "ws": "^8.13.0"
  }
}