summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/main.yaml108
-rw-r--r--continuedev/src/continuedev/plugins/steps/help.py3
-rw-r--r--extension/react-app/src/components/ComboBox.tsx3
-rw-r--r--extension/scripts/package.js6
4 files changed, 68 insertions, 52 deletions
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 99b30201..03855b64 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -180,55 +180,63 @@ jobs:
cd extension
npm ci
- - name: Publish
- run: |
- cd extension
- npx vsce publish patch -p ${{ secrets.VSCE_TOKEN }}
- - name: Commit changes
- run: |
- git config --local user.email "action@github.com"
- git config --local user.name "GitHub Action"
- git commit -am "ci: 💚 Update package.json version [skip ci]"
- - name: Push changes
- uses: ad-m/github-push-action@master
- with:
- github_token: ${{ secrets.GITHUB_TOKEN }}
- branch: ${{ github.ref }}
-
- # Download binaries and upload to S3
-
- - name: Download Linux build
- uses: actions/download-artifact@v2
- with:
- name: Linux Build
- path: exe/linux
-
- - name: Download macOS build
- uses: actions/download-artifact@v2
- with:
- name: macOS Build
- path: exe/mac
-
- - name: Download Windows build
- uses: actions/download-artifact@v2
- with:
- name: Windows Build
- path: exe/windows
-
- - name: Configure AWS Credentials
- uses: aws-actions/configure-aws-credentials@v1
+ - name: Upload .vsix a second time
+ uses: actions/upload-artifact@v2
with:
- aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
- aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- aws-region: us-west-1
+ name: vsix-artifact
+ path: extension/build
- - name: Upload binaries to S3
- uses: jakejarvis/s3-sync-action@master
- with:
- args: --acl public-read --follow-symlinks --delete
- env:
- AWS_S3_BUCKET: continue-server-binaries
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- AWS_REGION: "us-west-1"
- SOURCE_DIR: "exe"
+ # - name: Publish
+ # run: |
+ # cd extension
+ # npx vsce publish patch -p ${{ secrets.VSCE_TOKEN }}
+
+ # - name: Commit changes
+ # run: |
+ # git config --local user.email "action@github.com"
+ # git config --local user.name "GitHub Action"
+ # git commit -am "ci: 💚 Update package.json version [skip ci]"
+
+ # - name: Push changes
+ # uses: ad-m/github-push-action@master
+ # with:
+ # github_token: ${{ secrets.GITHUB_TOKEN }}
+ # branch: ${{ github.ref }}
+
+ # # Download binaries and upload to S3
+
+ # - name: Download Linux build
+ # uses: actions/download-artifact@v2
+ # with:
+ # name: Linux Build
+ # path: exe/linux
+
+ # - name: Download macOS build
+ # uses: actions/download-artifact@v2
+ # with:
+ # name: macOS Build
+ # path: exe/mac
+
+ # - name: Download Windows build
+ # uses: actions/download-artifact@v2
+ # with:
+ # name: Windows Build
+ # path: exe/windows
+
+ # - name: Configure AWS Credentials
+ # uses: aws-actions/configure-aws-credentials@v1
+ # with:
+ # aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ # aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ # aws-region: us-west-1
+
+ # - name: Upload binaries to S3
+ # uses: jakejarvis/s3-sync-action@master
+ # with:
+ # args: --acl public-read --follow-symlinks --delete
+ # env:
+ # AWS_S3_BUCKET: continue-server-binaries
+ # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ # AWS_REGION: "us-west-1"
+ # SOURCE_DIR: "exe"
diff --git a/continuedev/src/continuedev/plugins/steps/help.py b/continuedev/src/continuedev/plugins/steps/help.py
index ec670999..82f885d6 100644
--- a/continuedev/src/continuedev/plugins/steps/help.py
+++ b/continuedev/src/continuedev/plugins/steps/help.py
@@ -39,6 +39,7 @@ class HelpStep(Step):
if question.strip() == "":
self.description = help
else:
+ self.description = "The following output is generated by a language model, which may hallucinate. Type just '/help'to see a fixed answer. You can also learn more by reading [the docs](https://continue.dev/docs).\n\n"
prompt = dedent(f"""
Information:
@@ -48,7 +49,7 @@ class HelpStep(Step):
Please us the information below to provide a succinct answer to the following question: {question}
- Do not cite any slash commands other than those you've been told about, which are: /edit and /feedback.""")
+ Do not cite any slash commands other than those you've been told about, which are: /edit and /feedback. Never refer or link to any URL.""")
self.chat_context.append(ChatMessage(
role="user",
diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx
index 472e1b14..bf32fc5a 100644
--- a/extension/react-app/src/components/ComboBox.tsx
+++ b/extension/react-app/src/components/ComboBox.tsx
@@ -479,7 +479,8 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
selected={downshiftProps.selectedItem === item}
>
<span>
- {item.name}:{" "}
+ {item.name}
+ {" "}
<span style={{ color: lightGray }}>{item.description}</span>
</span>
</Li>
diff --git a/extension/scripts/package.js b/extension/scripts/package.js
index ae9a4d94..e36df029 100644
--- a/extension/scripts/package.js
+++ b/extension/scripts/package.js
@@ -17,6 +17,12 @@ exec("npm install", (error) => {
exec("npm run build", (error) => {
if (error) throw error;
+ if (!fs.existsSync(path.join("dist", "assets", "index.js"))) {
+ throw new Error("react-app build did not produce index.js");
+ }
+ if (!fs.existsSync(path.join("dist", "assets", "index.css"))) {
+ throw new Error("react-app build did not produce index.css");
+ }
console.log("npm run build in react-app completed");
process.chdir("..");