This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
# Prompt Anything | |
Highlight some text and run this script to prompt against it. | |
Useful for summarizing text, generating a title, or any other task you can think of. | |
## Usage | |
- Highlight the text you want to prompt against | |
- Run the script via shortcut or command palette | |
- Input your desired prompt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
# Prompt Anything | |
Highlight some text and run this script to prompt against it. | |
Useful for summarizing text, generating a title, or any other task you can think of. | |
## Usage | |
- Highlight the text you want to prompt against | |
- Run the script via shortcut or command palette | |
- Input your desired prompt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Name: Static to Dynamic | |
// Description: Convert static import to dynamic import | |
// e.g. import { Foo } from "bar"; | |
// to let { Foo } = await import("bar"); | |
// Author: Josh Mabry | |
// Twitter: @AI_Citizen | |
import "@johnlindquist/kit"; | |
const text = await getSelectedText(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let { GoogleAuth } = await import("google-auth-library"); | |
let { DiscussServiceClient } = await import("@google-ai/generativelanguage"); | |
import "@johnlindquist/kit"; | |
const MODEL_NAME = "models/chat-bison-001"; | |
const API_KEY = await env("PALM_API_KEY", { | |
hint: `Signup for waitlist here <a href="https://developers.generativeai.google/">here</a>`, | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let { GoogleAuth } = await import("google-auth-library"); | |
let { DiscussServiceClient } = await import("@google-ai/generativelanguage"); | |
import "@johnlindquist/kit"; | |
const MODEL_NAME = "models/chat-bison-001"; | |
const API_KEY = await env("PALM_API_KEY", { | |
hint: `Signup for waitlist here <a href="https://developers.generativeai.google/">here</a>`, | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let { GoogleAuth } = await import("google-auth-library"); | |
let { DiscussServiceClient } = await import("@google-ai/generativelanguage"); | |
import "@johnlindquist/kit"; | |
const MODEL_NAME = "models/chat-bison-001"; | |
const API_KEY = await env("PALM_API_KEY", { | |
hint: `Signup for waitlist here <a href="https://developers.generativeai.google/">here</a>`, | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Name: Search Open PRs | |
// Description: Search open PRs in a repo | |
import "@johnlindquist/kit"; | |
const fetch = await npm("node-fetch"); | |
const variables = { | |
owner: "knapsack-labs", | |
repoName: "app-monorepo", | |
}; |
OlderNewer