Initial commit: Velum Raycast extension
Pseudonymize-and-AI workflow for handling PII-sensitive text via the Velum API and Raycast AI. Commands cover end-to-end email summary and reply, briefing/action-items/structured-data extraction, manual pseudonymize/depseudonymize on selection or clipboard, and session management. Includes Raycast 2.0 Beta workarounds for selection capture and rich-text clipboard. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
15
src/depseudonymize-selected-text.ts
Normal file
15
src/depseudonymize-selected-text.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { showToast, Toast } from "@raycast/api";
|
||||
import { depseudonymizeQuickText } from "./quick";
|
||||
import { getSelectedTextSafely } from "./selection";
|
||||
|
||||
export default async function Command() {
|
||||
const selectedText = await getSelectedTextSafely();
|
||||
if (!selectedText) {
|
||||
await showToast({
|
||||
style: Toast.Style.Failure,
|
||||
title: "Kein markierter Text gefunden",
|
||||
});
|
||||
return;
|
||||
}
|
||||
await depseudonymizeQuickText(selectedText, "Selektion");
|
||||
}
|
||||
Reference in New Issue
Block a user