This file contains 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", | |
}; |
This file contains 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 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 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 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 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 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 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
export const renderTags = async (dbName) => { | |
const tagsDb = await db(dbName); | |
await tagsDb.read(); | |
const allTags = [...tagsDb.data.tags]; | |
const selectedTags = {}; | |
let selecting = true; | |
while (selecting) { | |
const availableTags = allTags.map((tag) => ({ | |
name: `${tag} ${selectedTags[tag] ? " ✓" : " "}`, | |
value: tag, |
This file contains 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: Prompt Manager | |
// Description: Manage your prompt templates | |
// Author: Josh Mabry | |
// Twitter: @AI_Citizen | |
//################## | |
// ScriptKit Imports | |
//################## | |
import "@johnlindquist/kit"; | |
// import { editPrompt } from "./utils/prompt-crud.js"; |
This file contains 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 |
NewerOlder