Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions extensions/ai-actions/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules

# Raycast specific files
raycast-env.d.ts
.raycast-swift-build
.swiftpm
compiled_raycast_swift
compiled_raycast_rust

# misc
.DS_Store
4 changes: 4 additions & 0 deletions extensions/ai-actions/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"printWidth": 120,
"singleQuote": false
}
12 changes: 12 additions & 0 deletions extensions/ai-actions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# AI Actions Changelog

## [Initial Version] - {PR_MERGE_DATE}

Initial release of AI Actions extension.

### Features

- Create and manage custom AI prompts
- Support for Gemini API, gemini-balance, and OpenRouter
- Process selected text with custom prompts
- View results in-app with copy/paste actions
51 changes: 51 additions & 0 deletions extensions/ai-actions/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# AI Actions

Raycast extension for quick AI text processing with customizable prompts.

## Features

- 🎯 Process selected text instantly
- 🔧 Fully customizable prompts
- 🌐 Support multiple AI endpoints (Gemini, gemini-balance, OpenRouter)
- ⚡ Fast and convenient

## Quick Start

1. Install dependencies: `npm install`
2. Start development: `npm run dev`
3. Configure in Raycast Extension Preferences:
- API Key
- Model name
- Custom Endpoint (optional)

## Commands

### Manage AI Prompts
Create, edit, and delete your custom AI prompts.

### Run AI Prompt
Select and run a custom AI prompt on selected text.

## Example Prompts

### Translate to Chinese
```
Title: Translate to Chinese
Prompt: Translate to Traditional Chinese. Output ONLY the translated text:

{selection}
```

### Summarize
```
Title: Summarize
Prompt: Summarize the following content in Traditional Chinese, maximum 500 words:

{selection}
```

See main [README](../README.md) for more examples.

## License

MIT
Binary file added extensions/ai-actions/assets/extension-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions extensions/ai-actions/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const { defineConfig } = require("eslint/config");
const raycastConfig = require("@raycast/eslint-config");

module.exports = defineConfig([
...raycastConfig,
]);
Binary file added extensions/ai-actions/metadata/ai-actions-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/ai-actions/metadata/ai-actions-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/ai-actions/metadata/ai-actions-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading