Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Prompt Library#63872

Merged
sqs merged 1 commit into
mainfrom
sqs/prompt-lib
Jul 18, 2024
Merged

Prompt Library#63872
sqs merged 1 commit into
mainfrom
sqs/prompt-lib

Conversation

@sqs

@sqs sqs commented Jul 17, 2024

Copy link
Copy Markdown
Member

The Prompt Library lets you create, share, and browse chat prompts for use with Cody. Prompts are owned by users or organizations, and site admins can make prompts public so that all users on the instance can see and use them.

A prompt is just plain text for now, and you can see a list of prompts in your Prompt Library from within Cody chat (https://github.com/sourcegraph/cody/pull/4903).

See https://www.loom.com/share/f3124269300c481ebfcbd0a1e300be1b.

Depends on https://github.com/sourcegraph/cody/pull/4903.

image

Test plan

Add a prompt on the web. Ensure you can access it from Cody.

Changelog

  • The Prompt Library lets you create, share, and browse chat prompts for use with Cody. Prompts are owned by users or organizations, and site admins can make prompts public so that all users on the instance can see and use them. To use a prompt from your Prompt Library in Cody, select it in the Prompts dropdown in the Cody chat message field.

Comment on lines 70 to 92

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment on lines 167 to 195

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment on lines 177 to 209

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment on lines 184 to 207

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment on lines 190 to 238

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment thread internal/database/prompts.go Outdated
Comment on lines 110 to 154

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment thread internal/database/prompts.go Outdated
Comment on lines 139 to 169

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment thread internal/database/prompts.go Outdated
Comment on lines 157 to 202

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment thread internal/database/prompts.go Outdated
Comment on lines 234 to 283

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment thread internal/database/prompts.go Outdated
Comment on lines 288 to 338

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
@sqs sqs force-pushed the sqs/prompt-lib branch 3 times, most recently from 18cf031 to 1fb5312 Compare July 18, 2024 01:07
@sqs

sqs commented Jul 18, 2024

Copy link
Copy Markdown
Member Author

@toolmantim What should the icon be for Prompt Library in the web app? Same as book-text in Cody?

@sqs sqs force-pushed the sqs/prompt-lib branch 2 times, most recently from 4b1c6b1 to edb2193 Compare July 18, 2024 01:31
Comment on lines 318 to 328

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment thread internal/database/prompts.go Outdated
Comment on lines 63 to 93

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment thread internal/database/prompts.go Outdated
Comment on lines 96 to 127

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment thread internal/database/prompts.go Outdated
Comment on lines 112 to 144

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment thread internal/database/prompts.go Outdated
Comment on lines 125 to 157

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment thread cmd/frontend/graphqlbackend/viewer.go Outdated
Comment on lines 48 to 58

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
@sqs sqs force-pushed the sqs/prompt-lib branch from c09d017 to 429bc6a Compare July 18, 2024 08:50
Comment thread cmd/frontend/graphqlbackend/viewer.go Outdated
Comment on lines 48 to 55

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.golang.unauthorized-graphql-resolver-rule

The graphql resolver function may not contain authorization check, please review for authorization bugs
Comment thread cmd/frontend/graphqlbackend/viewer.go Outdated
Comment on lines 60 to 64

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment on lines 65 to 69

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment on lines 170 to 173

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment on lines 200 to 212

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment on lines 67 to 71

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment on lines 163 to 166

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment thread internal/database/prompts.go Outdated
Comment on lines 149 to 183

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment thread internal/database/prompts.go Outdated
Comment on lines 167 to 201

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
@sqs sqs force-pushed the sqs/prompt-lib branch 3 times, most recently from 6236208 to 09fad92 Compare July 18, 2024 11:04
@sqs sqs changed the base branch from main to sqs/saved-searches-more July 18, 2024 11:04
@sqs sqs force-pushed the sqs/prompt-lib branch 3 times, most recently from 59e3c47 to 5b71ae5 Compare July 18, 2024 11:15
@sqs sqs marked this pull request as ready for review July 18, 2024 11:20
@sqs sqs force-pushed the sqs/saved-searches-more branch from d5ab3c2 to 9a20e45 Compare July 18, 2024 11:24
@sqs sqs force-pushed the sqs/prompt-lib branch from 5b71ae5 to efdb209 Compare July 18, 2024 11:32
@sqs sqs force-pushed the sqs/saved-searches-more branch 3 times, most recently from eac5f3f to 58306ca Compare July 18, 2024 20:23
@toolmantim

Copy link
Copy Markdown
Contributor

What should the icon be for Prompt Library in the web app? Same as book-text in Cody?

Yeah, same for now

Base automatically changed from sqs/saved-searches-more to main July 18, 2024 20:37
An error occurred while trying to automatically change base from sqs/saved-searches-more to main July 18, 2024 20:37
@sqs sqs force-pushed the sqs/prompt-lib branch 2 times, most recently from ab10955 to c392a10 Compare July 18, 2024 20:49
Comment thread internal/database/prompts.go Outdated
Comment on lines 62 to 92

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment thread internal/database/prompts.go Outdated
Comment on lines 113 to 143

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
Comment thread internal/database/prompts.go Outdated
Comment on lines 126 to 156

Check notice

Code scanning / Semgrep OSS

Semgrep Finding: security-semgrep-rules.semgrep-rules.generic.comment-tagging-rule

Code that highlight SECURITY in comment has changed. Please review the code for changes. The changes might be sensitive.
@sqs sqs force-pushed the sqs/prompt-lib branch from c392a10 to e6994e7 Compare July 18, 2024 21:03
The Prompt Library lets you create, share, and browse chat prompts for use with Cody. Prompts are owned by users or organizations, and site admins can make prompts public so that all users on the instance can see and use them.

A prompt is just plain text for now, and you can see a list of prompts in your Prompt Library from within Cody chat (https://github.com/sourcegraph/cody/pull/4903).

See https://www.loom.com/share/f3124269300c481ebfcbd0a1e300be1b.

Depends on https://github.com/sourcegraph/cody/pull/4903.

![image](https://github.com/user-attachments/assets/d1098809-f7ff-4233-8ecb-9bc53ad4dbb2)

Add a prompt on the web. Ensure you can access it from Cody.

- The Prompt Library lets you create, share, and browse chat prompts for use with Cody. Prompts are owned by users or organizations, and site admins can make prompts public so that all users on the instance can see and use them. To use a prompt from your Prompt Library in Cody, select it in the **Prompts** dropdown in the Cody chat message field.
@sqs sqs force-pushed the sqs/prompt-lib branch from e6994e7 to 707bed0 Compare July 18, 2024 21:03
@sqs sqs merged commit b4e03f4 into main Jul 18, 2024
@sqs sqs deleted the sqs/prompt-lib branch July 18, 2024 23:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants