Quinn Slack 2023-12-14 15:17:36 +00:00 committed by GitHub
parent a9c3f8ce9a
commit 6d55f42137
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 70 additions and 70 deletions

View File

@ -101,7 +101,7 @@ problems.
### Merged PRs
- Total [99 PRs](https://github.com/sourcegraph/sourcegraph/milestone/232?closed=1) merged since the last release
- JetBrains: Cody: Bump Jetbrains platform compat to `221.5080.210`,
- JetBrains: Cody: Bump JetBrains platform compat to `221.5080.210`,
by [@Gedochao](https://github.com/Gedochao) ([#56625](https://github.com/sourcegraph/sourcegraph/pull/56625))
- JetBrains: fix capitalization,
by [@vdavid](https://github.com/vdavid) ([#56576](https://github.com/sourcegraph/sourcegraph/pull/56576))
@ -203,7 +203,7 @@ problems.
by [@vdavid](https://github.com/vdavid) ([#56196](https://github.com/sourcegraph/sourcegraph/pull/56196))
- JetBrains: manually construct server url to fix any issues with it,
by [@szymonprz](https://github.com/szymonprz) ([#56419](https://github.com/sourcegraph/sourcegraph/pull/56419))
- gh: give a proper name to Jetbrains test job,
- gh: give a proper name to JetBrains test job,
by [@jhchabran](https://github.com/jhchabran) ([#56622](https://github.com/sourcegraph/sourcegraph/pull/56622))
- JetBrains: require restart after installation,
by [@olafurpg](https://github.com/olafurpg) ([#56174](https://github.com/sourcegraph/sourcegraph/pull/56174))

View File

@ -208,7 +208,7 @@ function WelcomeStep({ onNext, pro }: { onNext: () => void; pro: boolean }): JSX
</video>
<Text className={classNames('mb-4 pb-4', styles.fadeIn, styles.fadeSecond, styles.welcomeSubtitle)}>
Ready to breeze through the basics and get comfortable with Cody
{pro ? ' Pro Trial' : ''}?
{pro ? ' Pro' : ''}?
</Text>
<Button
onClick={onNext}

View File

@ -126,7 +126,7 @@ export function JetBrainsInstructions({
{step === 1 && (
<>
<div className="mb-3 pb-3 border-bottom">
<H2>Cody Features</H2>
<H2>Cody features</H2>
</div>
<div className="d-flex">
<div className="flex-1 p-3 border-right d-flex flex-column justify-content-center align-items-center">

View File

@ -22,7 +22,7 @@ export function NeoVimInstructions({
{step === 0 && (
<>
<div className="pb-3 border-bottom">
<H2>Setup instructions for NeoVim</H2>
<H2>Setup instructions for Neovim</H2>
</div>
<div className={classNames('pt-3 px-3', styles.instructionsContainer)}>
@ -50,7 +50,7 @@ export function NeoVimInstructions({
Navigate to GitHub repo
</ButtonLink>
<img
alt="NeoVim Repo"
alt="Neovim Repo"
className="mt-2 m-auto"
width="70%"
src="https://storage.googleapis.com/sourcegraph-assets/NeoVimInstructions/NeovimStep1.png"
@ -79,7 +79,7 @@ export function NeoVimInstructions({
{step === 1 && (
<>
<div className="mb-3 pb-3 border-bottom">
<H2>Cody Features</H2>
<H2>Cody features</H2>
</div>
<div className="d-flex">
<div className="flex-1 p-3 border-right d-flex flex-column justify-content-center align-items-center">

View File

@ -127,7 +127,7 @@ export function VSCodeInstructions({
{step === 1 && (
<>
<div className="mb-3 pb-3 border-bottom">
<H2>Cody Features</H2>
<H2>Cody features</H2>
</div>
<div className="d-flex">
<div className="flex-1 p-3 border-right d-flex flex-column justify-content-center align-items-center">

View File

@ -1,5 +1,5 @@
import React, { useEffect, useState } from 'react'
import type { ReactElement } from 'react'
import React, { useEffect, useState } from 'react'
import { mdiInformationOutline, mdiTrendingUp } from '@mdi/js'
import classNames from 'classnames'
@ -7,16 +7,16 @@ import { useNavigate } from 'react-router-dom'
import { useQuery } from '@sourcegraph/http-client'
import {
Icon,
PageHeader,
Button,
Badge,
Button,
ButtonLink,
H1,
H2,
Icon,
PageHeader,
Text,
ButtonLink,
useSearchParameters,
Tooltip,
useSearchParameters,
} from '@sourcegraph/wildcard'
import type { AuthenticatedUser } from '../../auth'
@ -86,7 +86,7 @@ export const CodySubscriptionPage: React.FunctionComponent<CodySubscriptionPageP
>
<PageHeader.Heading as="h2" styleAs="h1">
<div className="d-inline-flex align-items-center">
<CodyColorIcon width={40} height={40} className="mr-2" /> Subscription Plans
<CodyColorIcon width={40} height={40} className="mr-2" /> Subscription plans
</div>
</PageHeader.Heading>
</PageHeader>
@ -107,16 +107,16 @@ export const CodySubscriptionPage: React.FunctionComponent<CodySubscriptionPageP
<Text weight="bold" className="d-inline">
500
</Text>{' '}
<Text className="d-inline text-muted">Autocompletions per month</Text>
<Text className="d-inline text-muted">autocompletions per month</Text>
</div>
<div className="border-bottom py-4">
<Text weight="bold" className="d-inline">
20
</Text>{' '}
<Text className="d-inline text-muted">Messages and Commands per month</Text>
<Text className="d-inline text-muted">messages and commands per month</Text>
</div>
<div className="border-bottom py-4">
<Text className="text-muted mb-0">Out-of-the-box and custom commands</Text>
<Text className="text-muted mb-0">Built-in and custom commands</Text>
</div>
<div className="border-bottom py-4">
<Text weight="bold" className="mb-3 d-inline-block">
@ -126,19 +126,19 @@ export const CodySubscriptionPage: React.FunctionComponent<CodySubscriptionPageP
</div>
<div className="border-bottom py-4">
<Text weight="bold" className="mb-3 d-inline-block">
LLM Support
LLM support
</Text>
<Text className="mb-0 text-muted">
Default LLMs for Chat, Commands, and Autocomplete
Default LLMs for chat, commands, and autocomplete
</Text>
</div>
<div className="border-bottom py-4">
<Text weight="bold" className="mb-3">
Compatibility
</Text>
<Text className="text-muted mb-1">VS Code, JetBrains IDEs, and NeoVim</Text>
<Text className="text-muted mb-1">VS Code, JetBrains IDEs, and Neovim</Text>
<Text className="text-muted mb-1">
All major coding languages
All popular coding languages
<Tooltip content="JavaScript, TypeScript, HTML/CSS, Python, Java, C/C++, C#, PHP, and more">
<Icon
className="ml-1 text-muted"
@ -148,8 +148,8 @@ export const CodySubscriptionPage: React.FunctionComponent<CodySubscriptionPageP
</Tooltip>
</Text>
<Text className="text-muted mb-1">
Many human language support
<Tooltip content="Spanish, French, German, Italian, Chinese, Japanese, Korean, Latin, and Esperanto">
Many human languages
<Tooltip content="English, Spanish, French, German, Italian, Chinese, Japanese, Korean, and more">
<Icon
className="ml-1 text-muted"
svgPath={mdiInformationOutline}
@ -159,7 +159,7 @@ export const CodySubscriptionPage: React.FunctionComponent<CodySubscriptionPageP
</Text>
<Text className="text-muted mb-1">
All major code hosts
<Tooltip content="GitHub, GitLab, BitBucket, Gerrit, Azure DevOps">
<Tooltip content="GitHub, GitLab, Bitbucket, Gerrit, Azure DevOps">
<Icon
className="ml-1 text-muted"
svgPath={mdiInformationOutline}
@ -188,7 +188,7 @@ export const CodySubscriptionPage: React.FunctionComponent<CodySubscriptionPageP
<div className="d-flex flex-column border-bottom py-4">
<div className="mb-1">
<H2 className={classNames('text-muted d-inline mb-0', styles.proPricing)}>$9</H2>
<Text className="mb-0 text-muted d-inline">/ month</Text>
<Text className="mb-0 text-muted d-inline">/month</Text>
</div>
<Text className="mb-3 text-muted" size="small">
Free until Feb 2024, <strong>no credit card needed</strong>
@ -218,7 +218,7 @@ export const CodySubscriptionPage: React.FunctionComponent<CodySubscriptionPageP
}}
>
<Icon svgPath={mdiTrendingUp} className="mr-1" aria-hidden={true} />
Get Pro Trial
Get Pro trial
</Button>
)}
</div>
@ -226,16 +226,16 @@ export const CodySubscriptionPage: React.FunctionComponent<CodySubscriptionPageP
<Text weight="bold" className="d-inline">
Unlimited
</Text>{' '}
<Text className="d-inline text-muted">Autocompletions per month</Text>
<Text className="d-inline text-muted">autocompletions per month</Text>
</div>
<div className="border-bottom py-4">
<Text weight="bold" className="d-inline">
Unlimited
</Text>{' '}
<Text className="d-inline text-muted">Messages and Commands per month</Text>
<Text className="d-inline text-muted">messages and commands per month</Text>
</div>
<div className="border-bottom py-4">
<Text className="text-muted mb-0">Out-of-the-box and custom commands</Text>
<Text className="text-muted mb-0">Built-in and custom commands</Text>
</div>
<div className="border-bottom py-4">
<Text weight="bold" className="mb-3 d-inline-block">
@ -245,7 +245,7 @@ export const CodySubscriptionPage: React.FunctionComponent<CodySubscriptionPageP
</div>
<div className="border-bottom py-4">
<Text weight="bold" className="mb-3 d-inline-block">
LLM Support
LLM support
</Text>
<Text className="mb-1 text-muted">
Multiple LLM choices for chat
@ -257,15 +257,15 @@ export const CodySubscriptionPage: React.FunctionComponent<CodySubscriptionPageP
/>
</Tooltip>
</Text>
<Text className="mb-0 text-muted">Default LLMs for Commands, and Autocomplete</Text>
<Text className="mb-0 text-muted">Default LLMs for commands and autocomplete</Text>
</div>
<div className="border-bottom py-4">
<Text weight="bold" className="mb-3">
Compatibility
</Text>
<Text className="text-muted mb-1">VS Code, JetBrains IDEs, and NeoVim</Text>
<Text className="text-muted mb-1">VS Code, JetBrains IDEs, and Neovim</Text>
<Text className="text-muted mb-1">
All major coding languages
All popular coding languages
<Tooltip content="JavaScript, TypeScript, HTML/CSS, Python, Java, C/C++, C#, PHP, and more">
<Icon
className="ml-1 text-muted"
@ -275,8 +275,8 @@ export const CodySubscriptionPage: React.FunctionComponent<CodySubscriptionPageP
</Tooltip>
</Text>
<Text className="text-muted mb-1">
Many human language support
<Tooltip content="Spanish, French, German, Italian, Chinese, Japanese, Korean, Latin, and Esperanto">
Many human languages
<Tooltip content="English, Spanish, French, German, Italian, Chinese, Japanese, Korean, and more">
<Icon
className="ml-1 text-muted"
svgPath={mdiInformationOutline}
@ -286,7 +286,7 @@ export const CodySubscriptionPage: React.FunctionComponent<CodySubscriptionPageP
</Text>
<Text className="text-muted mb-1">
All major code hosts
<Tooltip content="GitHub, GitLab, BitBucket, Gerrit, Azure DevOps">
<Tooltip content="GitHub, GitLab, Bitbucket, Gerrit, Azure DevOps">
<Icon
className="ml-1 text-muted"
svgPath={mdiInformationOutline}
@ -317,7 +317,7 @@ export const CodySubscriptionPage: React.FunctionComponent<CodySubscriptionPageP
</div>
<div className="d-flex flex-column border-bottom py-4">
<div className="mb-1">
<Text className="mb-0 text-muted d-inline">Up to $19 / user / month</Text>
<Text className="mb-0 text-muted d-inline">Up to $19/user/month</Text>
</div>
<Text className="mb-3 text-muted" size="small">
25 users minimum
@ -332,23 +332,23 @@ export const CodySubscriptionPage: React.FunctionComponent<CodySubscriptionPageP
eventLogger.log(EventName.CODY_SUBSCRIPTION_PLAN_CLICKED, { tier: 'enterprise' })
}}
>
Contact Sales
Contact sales
</ButtonLink>
</div>
<div className="border-bottom py-4">
<Text weight="bold" className="d-inline">
Unlimited
</Text>{' '}
<Text className="d-inline text-muted">Autocompletions per month</Text>
<Text className="d-inline text-muted">autocompletions per month</Text>
</div>
<div className="border-bottom py-4">
<Text weight="bold" className="d-inline">
Unlimited
</Text>{' '}
<Text className="d-inline text-muted">Messages and Commands per month</Text>
<Text className="d-inline text-muted">messages and commands per month</Text>
</div>
<div className="border-bottom py-4">
<Text className="text-muted mb-0">Out-of-the-box and custom commands</Text>
<Text className="text-muted mb-0">Built-in and custom commands</Text>
</div>
<div className="border-bottom py-4">
<Text weight="bold" className="mb-3 d-inline-block">
@ -358,7 +358,7 @@ export const CodySubscriptionPage: React.FunctionComponent<CodySubscriptionPageP
</div>
<div className="border-bottom py-4">
<Text weight="bold" className="mb-3 d-inline-block">
LLM Support
LLM support
</Text>
<Text className="mb-1 text-muted">
Flexible LLM choices
@ -371,7 +371,7 @@ export const CodySubscriptionPage: React.FunctionComponent<CodySubscriptionPageP
</Tooltip>
</Text>
<Text className="mb-1 text-muted">
Bring your own LLM Key <Badge variant="secondary">experimental</Badge>
Bring your own LLM key <Badge variant="secondary">experimental</Badge>
</Text>
<Text className="mb-0 text-muted">
Bring your own LLM <Badge variant="secondary">coming soon</Badge>
@ -379,16 +379,16 @@ export const CodySubscriptionPage: React.FunctionComponent<CodySubscriptionPageP
</div>
<div className="border-bottom py-4">
<Text weight="bold" className="mb-3">
Enterprise Features
Enterprise features
</Text>
<Text className="mb-1 text-muted">Everything in Pro plus...</Text>
<Text className="mb-1 text-muted">Everything in Pro, plus:</Text>
<Text className="mb-1 text-muted">Enterprise support</Text>
<Text className="mb-1 text-muted">Flexible deployment options</Text>
<Text className="mb-1 text-muted">
Enterprise admin and security features (SSO, SAML, SCIM, Audit Logs, etc.)
Enterprise admin and security features (SSO, SAML, SCIM, audit logs, etc.)
</Text>
<Text className="mb-1 text-muted">
Guardrails <Badge variant="secondary">Coming Soon</Badge>
Guardrails <Badge variant="secondary">coming soon</Badge>
</Text>
</div>
</div>

View File

@ -31,7 +31,7 @@ export function UpgradeToProModal({
<div className="d-flex flex-column justify-content-between align-items-center mby-4 py-4">
<CodyColorIcon width={40} height={40} className="mb-4" />
<H2>Upgraded to Cody Pro 🎉</H2>
<Text>You now have unlimited autocomplete suggestions, chat messages and commands.</Text>
<Text>You now have unlimited autocompletions, chat messages and commands.</Text>
<Button className="mt-4" variant="primary" onClick={onSuccess}>
Get started
@ -55,7 +55,7 @@ export function UpgradeToProModal({
</div>
<div className="mb-1">
<H2 className={classNames('text-muted d-inline mb-0', styles.proPricing)}>$9</H2>
<Text className="mb-0 text-muted d-inline">/ month</Text>
<Text className="mb-0 text-muted d-inline">/month</Text>
</div>
<Text className="mb-4 text-muted" size="small">
Free until Feb 2024, <strong>no credit card needed</strong>

View File

@ -130,7 +130,7 @@ export const authenticatedTasks: TourTaskType[] = [
},
{
id: 'CodyJetbrains',
label: 'Install for Jetbrains',
label: 'Install for JetBrains',
action: {
type: 'new-tab-link',
value: 'https://plugins.jetbrains.com/plugin/9682-cody-ai-by-sourcegraph',

View File

@ -34,7 +34,7 @@ Commands are also available in the JetBrains extension. To access it, navigate t
<aside class="experimental">
<p>
<span style="margin-right:0.25rem;" class="badge badge-beta">Experimental</span> Custom Commands are in the Experimental stage.
<span style="margin-right:0.25rem;" class="badge badge-beta">Experimental</span> Custom commands are in the Experimental stage.
<br />
For any feedback, you can <a href="https://about.sourcegraph.com/contact">contact us</a> directly, file an <a href="https://github.com/sourcegraph/cody/issues">issue</a>, join our <a href="https://discord.com/servers/sourcegraph-969688426372825169">Discord</a>, or <a href="https://twitter.com/sourcegraphcody">create a post on X</a>.
</p>
@ -42,27 +42,27 @@ For any feedback, you can <a href="https://about.sourcegraph.com/contact">contac
<!-- <aside class="beta">
<p>
<span style="margin-right:0.25rem;" class="badge badge-beta">Beta</span> Custom Commands are in the Beta stage.
<span style="margin-right:0.25rem;" class="badge badge-beta">Beta</span> Custom commands are in the Beta stage.
<br />
For any feedback, you can <a href="https://about.sourcegraph.com/contact">contact us</a> directly, file an <a href="https://github.com/sourcegraph/cody/issues">issue</a>, join our <a href="https://discord.com/servers/sourcegraph-969688426372825169">Discord</a>, or <a href="https://twitter.com/sourcegraphcody">create a post on X</a>.
</p>
</aside> -->
**Custom Commands** allow you to create and define reusable prompts for Cody tailored to your development workflows. They are defined in `JSON` format and will enable you to call CLI tools, write custom prompts, and select context to be sent to Cody. This provides a flexible way to configure Cody to handle use cases like:
**Custom commands** allow you to create and define reusable prompts for Cody tailored to your development workflows. They are defined in `JSON` format and will enable you to call CLI tools, write custom prompts, and select context to be sent to Cody. This provides a flexible way to configure Cody to handle use cases like:
- Integrate with your build system to suggest fixes for errors/warnings in the latest build
- Analyze software dependencies output to explain compatibility or suggest upgrades
- Read in test command failures to explain and suggest fixes
- Explain code quality output like linter warnings
> NOTE: Cody supports Custom Commands only for VS Code version 0.8 and above.
> NOTE: Cody supports Custom commands only for VS Code version 0.8 and above.
### Creating a Custom Command
### Creating a custom command
You can create a custom command by editing the configuration JSON file or using the command builder within the VS Code editor. To access the command builder within VS Code:
- Open the Cody commands menu (`⌥C` on Mac or `Alt-C` on Windows/Linux)
- Select **Custom commands > New Custom Command**
- Select **Custom Commands > New Custom Command**
- Type the slash `/` name you want to use, for example, `/my-custom-command`
- Next, write a suitable description for the command in the sentence case. For example, `Compare files in open tabs` or `Explain current directory`
- Provide the relevant instructions for Cody that it will follow. This is the `prompt` that Cody will use to pass relevant context to the LLM
@ -71,7 +71,7 @@ You can create a custom command by editing the configuration JSON file or using
- Press **Enter** to complete the process, and your custom command is successfully created
- You can hit `esc` key at any time to discard a new custom command
### Running Custom Commands
### Running custom commands
You can invoke custom commands with the same hotkey as predefined commands. Once created, your custom commands will appear with the rest of the predefined commands in the list. Let's type `/my-custom-command` in the chat window, and it will appear. Now, you can run this new command on your code and get answers to your questions accordingly.
@ -81,7 +81,7 @@ Alternatively, you can right-click the selected code and select **Cody > Custom
### Configuring file paths
Custom Commands can be defined in the following two file paths:
Custom commands can be defined in the following two file paths:
- **User Settings (`~/.vscode/code.json`)**: Stored locally. Use this for personal commands to use across all your projects
- **Workspace Settings (`.vscode/cody.json`)**: Stored in projects repository. Use this to share commands with others working on the same codebase and for project-specific commands

View File

@ -1,4 +1,4 @@
# Cody Capabilities
# Cody capabilities
<p class="subtitle">
Learn and understand more about Cody's features and core AI functionality.
@ -8,12 +8,12 @@ Cody offers a rich set of capabilities and features that help you write better c
- Chat: Allows users to ask general programming questions or inquire about specific code
- Autocomplete: Suggests code completions as you type, utilizing context from your code, open files, and file history
- Commands & Custom Commands: Provide predefined, reusable prompts for common actions, such as documenting code, explaining code, generating unit tests, and identifying code smells
- Commands & Custom commands: Provide predefined, reusable prompts for common actions, such as documenting code, explaining code, generating unit tests, and identifying code smells
- Debug code: Helps you with identifying and fixing code errors and bugs.
Learn more about each by exploring their respective documentation:
- [Chat](./chat.md)
- [Autocomplete](./autocomplete.md)
- [Commands & Custom Commands](./commands.md)
- [Commands & Custom commands](./commands.md)
- [Debug Code](./debug-code.md)

View File

@ -147,7 +147,7 @@ Follow these steps to install the Cody plugin:
![cody-for-intellij](https://storage.googleapis.com/sourcegraph-assets/Docs/Media/cody-for-intellij.png)
Alternatively, you can [Download and install the extension from the Jetbrains marketplace](https://plugins.jetbrains.com/plugin/9682-sourcegraph).
Alternatively, you can [Download and install the extension from the JetBrains marketplace](https://plugins.jetbrains.com/plugin/9682-sourcegraph).
## Connect the extension to Sourcegraph

View File

@ -187,12 +187,12 @@ In addition, you can also select which files and symbols to add as additional co
The file paths are relative to your workspace, and you can start with the root folder and type out the rest of the path, for example `src/util/<YOUR-FILE>`.
### Custom Commands
### Custom commands
In addition, to support customization and advanced use cases, you can create **Custom Commands** tailored to your requirements. Custom Commands are currently supported by Cody for the VS Code extension version 0.8 and above.
In addition, to support customization and advanced use cases, you can create **Custom commands** tailored to your requirements. Custom commands are currently supported by Cody for the VS Code extension version 0.8 and above.
## Cody VS Code Actions
## Cody VS Code actions
Cody VS Code extension users can also use the **Code Actions** feature to `fix`, `explain`, and `edit` code. These Code Actions are triggered by the following:
@ -237,7 +237,7 @@ You can view the [list of repositories with embeddings here](../embedded-repos.m
To use Cody with code graph on private code, it's recommended to [enable Cody for Enterprise](enable-cody-enterprise.md).
### Configure Code Graph Context
### Configure code graph context
The `Cody: Codebase` setting in VS Code enables codebase-aware answers for the Cody extension. Enter the repository's name with embeddings, and Cody can provide more accurate and relevant answers to your coding questions based on that repository's content. To configure this setting in VS Code:

View File

@ -60,7 +60,7 @@ Sourcegraph Enterprise is Sourcegraphs primary offering and includes all code
Sourcegraph extensions are also OSS licensed (Apache 2), such as:
- [Sourcegraph browser extension](https://github.com/sourcegraph/sourcegraph/tree/master/client/browser)
- [Sourcegraph Jetbrains extension](https://github.com/sourcegraph/sourcegraph/tree/main/client/jetbrains)
- [Sourcegraph JetBrains extension](https://github.com/sourcegraph/sourcegraph/tree/main/client/jetbrains)
## How is Sourcegraph different than GitHub code search?
@ -122,7 +122,7 @@ Read the [Notebooks documentation](../notebooks/index.md) to learn more, and che
## Batch Changes
_Note: Enterprise Feature_
_Note: Enterprise feature_
Automate changes to your codebase. Reduce effort, reduce errors and enable developers to focus on high value work.
@ -130,7 +130,7 @@ Read the [batch changes documentation](../batch_changes/index.md) to learn more,
## Code Insights
_Note: Enterprise Feature_
_Note: Enterprise feature_
Sourcegraph lets you understand and analyze code trends by visualizing how the codebase is changing over time. Measure and act on engineering goals such as migration and component deprecation.