mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-04 19:28:46 +01:00
14 lines
605 B
TypeScript
14 lines
605 B
TypeScript
type Capture = (id: string, label: string, file: string) => Promise<void>;
|
|
/** Ordinary catalog chats retain genuine screenshots as private Actions evidence.
|
|
* Canonical agent slugs and legitimate result navigation are not public routes.
|
|
* All other suites still use their existing reviewed public capture guard. */
|
|
export function ordinaryChatCapture(
|
|
suiteId: string,
|
|
capturePrivate: (id: string, file: string) => Promise<void>,
|
|
captureReviewedPublic: Capture,
|
|
): Capture {
|
|
return suiteId === "chat-features"
|
|
? (id, _label, file) => capturePrivate(id, file)
|
|
: captureReviewedPublic;
|
|
}
|