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>
16 lines
461 B
TypeScript
16 lines
461 B
TypeScript
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");
|
|
}
|