Skip to content

Add caviarde extension - #30380

Merged
raycastbot merged 6 commits into
raycast:mainfrom
Gldywn:ext/caviarde
Oct 2, 2026
Merged

raycastbot merged 6 commits into
raycast:mainfrom
Gldywn:ext/caviarde

Conversation

@Gldywn

@Gldywn Gldywn commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Description

Caviarde masks personal data in the clipboard, then pastes the result with one keyboard shortcut.

The deterministic layer detects structured data such as emails, phone numbers, IBANs, cards and secrets. Cards require both a valid checksum and a recognised issuer prefix. Technical identifiers such as timestamps, UUIDs, git SHAs and loopback addresses are deliberately preserved.

An optional PasteGuard detector adds contextual detection of people, places and organisations. The default setup runs locally. Configuring a remote Detector URL sends text to that endpoint. When semantic detection is unavailable, masking continues with the deterministic layer and the HUD identifies the categories not checked.

Placeholders are numbered and stable within each paste. The extension does not persist mappings or provide an unmask command. Detection is best-effort, not anonymisation.

Commands

  • Mask and Paste masks clipboard text, pastes it and reports the result in the HUD.
  • Set up Detector finds a supported container runtime, downloads the pinned image and starts the local detector. Its detail panels show runtime discovery, image policy and detector settings.

The managed container binds to the configured port on 127.0.0.1, runs read-only, drops all capabilities and enables no-new-privileges. The image is pinned by SHA-256 digest.

Changes following review

  • Apply issuer and checksum validation to detector-returned card spans, including regression coverage for timestamp 1735689600005.
  • Restrict managed setup to supported plain-HTTP endpoints on 127.0.0.1.
  • Include three native 2000 × 1250 Window Capture screenshots.
  • Refresh setup details, HUD messages and documentation.
  • Use Raycast's generated preference types in both commands and in toSettings.
  • Mask complete PEM private key blocks above 20,000 characters, with fictional regression tests for large and unterminated blocks.

Validation

  • 240 tests, ESLint and TypeScript checks pass.
  • Distribution build passes.
  • The setup interface was checked interactively in Raycast.
  • Screenshots and the demonstration use no real personal data.

Screencast

The recording shows fictional names, an email and a phone number being masked. Repeated names retain their placeholder; the order number and loopback address remain unchanged.

Mask and Paste demonstration

Store screenshots

Set up Detector with the local detector running:

Set up Detector showing Detector ready

Detector image details and update policy:

Set up Detector showing Detector image policy

Container runtime discovery:

Set up Detector showing Container runtime lookup

Checklist

  • Read the extension guidelines and publishing documentation.
  • Built the distribution version.
  • Tested this distribution build in Raycast.
  • Runtime assets are in assets; README media is in media.
  • Native Store screenshots are in metadata.

Note

Medium Risk
New extension reads and rewrites clipboard content and can start a local container or POST text to a user-configured detector URL; behaviour is covered by tests but clipboard and optional network paths are sensitive.

Overview
Adds the Caviarde Raycast extension under extensions/caviarde/: a local-first clipboard workflow that masks PII and secrets, then pastes numbered placeholders (e.g. [PERSON_1], [EMAIL_1]).

Mask and Paste runs an in-process deterministic layer (emails, phones, IBAN/cards with issuer+checksum guards, French SIREN/SIRET, secrets, @mentions) and optionally calls a local PasteGuard detector for people, locations, and organisations. Spans are merged (deterministic wins overlaps), first names are propagated from full names, and the HUD reports what was masked or that semantic categories were skipped when the detector is down or text is over the size cap.

Set up Detector is a Raycast UI that discovers Docker (or similar), pulls a digest-pinned image, mounts an organisation-detection patch, and starts a hardened loopback-only container on the port from preferences. compose.yaml, docs, and a large Vitest suite (including live-detector integration tests that skip when offline) ship with the extension.

Reviewed by Cursor Bugbot for commit e5dce6c. Configure here.

- chore: trim files the store has no use for
- build: refresh both lockfiles onto the same resolution (raycast#3)
- docs: make the install path directive and unambiguous (raycast#2)
- docs: add a social preview card (raycast#1)
- ci: pin actions by commit and narrow the workflow token
- docs: record what ray publish demands of the lockfiles
- build: build for the distribution environment
- docs: keep assets to what the extension loads at runtime
- docs: stop defining the tool by support tickets
- build: add the npm lockfile the store expects
- docs: move the README screenshot out of metadata
- docs: add the store screenshot and refresh the README
- fix: title-case the Set up Detector command
- fix(detector): disable the healthcheck the pinned image cannot run
- feat(setup): turn Set Up Detector into a progress view
- fix(detector): give docker the PATH its credential helper needs
- fix(test): read compose.yaml without import.meta
- docs: rewrite the README and add a changelog
- fix: phrase the partial HUD as a mode, not a fault
- feat: add the Set Up Detector command
- refactor: ship the detector patch as an extension asset
- ci: check lint, types and tests on push
- docs: document the architecture, limits and image audit
- feat: add the extension icon
- build: pin and patch the detector image
- feat: add the Mask and Paste command
- feat(detection): propagate first names from full names
- feat(detection): add the semantic layer over HTTP
- feat(masking): assign and apply placeholders
- feat(detection): add the deterministic layer
- chore: scaffold the Raycast extension
@raycastbot raycastbot added the new extension Label for PRs with new extensions label Aug 20, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days.

Once the PR is approved and merged, the extension will be available on our Store.

@greptile-apps

greptile-apps Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

The empty preference titles still break an explicit repository requirement, so this is not ready to merge.

Findings

  1. P2 The repository requires getPreferenceValues to use Raycast's generated preference type. This call uses the manually maintained RawPreferences type instead. Use the generated type and keep toSettings typed from it. The same pattern appears in setup-detector.tsx . ▶
  2. P2 The repository requires titles in package.json to use title case. The maskLocations preference has an empty title , and maskOrganizations repeats it. Give both entries title-case titles. ▶
Fix with agent prompt
### Issue 1
extensions/caviarde/src/mask-and-paste.ts:undefined-32
The repository requires `getPreferenceValues()` to use Raycast's generated preference type. This call uses the manually maintained `RawPreferences` type instead. Use the generated type and keep `toSettings` typed from it. The same pattern appears in `setup-detector.tsx`.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

### Issue 2
extensions/caviarde/package.json:undefined-73
The repository requires titles in `package.json` to use title case. The `maskLocations` preference has an empty `title`, and `maskOrganizations` repeats it. Give both entries title-case titles.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

Caviarde adds a Raycast extension that masks personal data in clipboard text before pasting it. It combines local pattern checks with an optional detector for names, places, and organisations, then reports what it checked in the HUD.

  • Keeps repeated values on the same placeholder during each paste without saving the mapping.
  • Preserves technical identifiers such as timestamps, UUIDs, git SHAs, and loopback addresses.
  • Adds a setup screen for running the detector locally in a restricted container.

Reviews (5) · Last reviewed commit: "fix(caviarde): use generated types and m..."

Gldywn added 2 commits August 20, 2026 21:07
- chore: drop the pnpm lockfile for publishing
- chore: drop the CLAUDE.md symlink for publishing
- chore: drop metadata and record what publishing needs (raycast#5)
- fix: stop masking Luhn-valid identifiers and honour the detector port (raycast#4)
- build: refresh both lockfiles onto the same resolution (raycast#3)
- docs: make the install path directive and unambiguous (raycast#2)
- docs: add a social preview card (raycast#1)
- ci: pin actions by commit and narrow the workflow token
- docs: record what ray publish demands of the lockfiles
- build: build for the distribution environment
- docs: keep assets to what the extension loads at runtime
- docs: stop defining the tool by support tickets
- build: add the npm lockfile the store expects
- docs: move the README screenshot out of metadata
- docs: add the store screenshot and refresh the README
- fix: title-case the Set up Detector command
- fix(detector): disable the healthcheck the pinned image cannot run
- feat(setup): turn Set Up Detector into a progress view
- fix(detector): give docker the PATH its credential helper needs
- fix(test): read compose.yaml without import.meta
- docs: rewrite the README and add a changelog
- fix: phrase the partial HUD as a mode, not a fault
- feat: add the Set Up Detector command
- refactor: ship the detector patch as an extension asset
- ci: check lint, types and tests on push
- docs: document the architecture, limits and image audit
- feat: add the extension icon
- build: pin and patch the detector image
- feat: add the Mask and Paste command
- feat(detection): propagate first names from full names
- feat(detection): add the semantic layer over HTTP
- feat(masking): assign and apply placeholders
- feat(detection): add the deterministic layer
- chore: scaffold the Raycast extension
@Gldywn
Gldywn marked this pull request as ready for review August 20, 2026 20:12
@pernielsentikaer pernielsentikaer self-assigned this Sep 7, 2026

@pernielsentikaer pernielsentikaer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Gldywn 👋 Thanks for your contribution 💪

We already have RedactCast in the Store by @TheMax98000, which masks sensitive clipboard data before it goes to AI tools.

Caviarde’s broader detection coverage and optional semantic detection are meaningful differences. Our preference would be to explore bringing those improvements into RedactCast rather than adding a second extension with the same core workflow. Would you be open to contributing there?

I appreciate that the one-way design differs from RedactCast’s Rehydrate workflow. If that makes combining them impractical, could you explain why? That would help us assess whether a separate listing makes sense. The local container detector would also need further review on our side.


I’ll convert this PR into a draft after submitting this review. Please press Ready for review when it’s ready and we’ll have a look 😊

@pernielsentikaer
pernielsentikaer marked this pull request as draft September 7, 2026 08:28
@Gldywn

Gldywn commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Hi @pernielsentikaer 👋 and thanks for the review!

RedactCast is a good extension and Rehydrate is a genuinely useful idea but here's why I'd still rather ship this one on its own.

What I'm trying to build is a detection base that keeps growing by country. I started with the French ones, SIREN, SIRET, French phone formats, because that's what I needed daily, and the whole point is that someone else adds their national ID, their tax number, their local bank formats, etc.
That only works if everything stays MIT and ungated, so anyone who contributes a rule knows it stays available to every user.

So, to answer your question, I'd rather not. Nothing against RedactCast, it's just where I want to put my own time 😅

The rest follows from that. The deterministic layer validates what it matches with real checksums, and it deliberately leaves technical identifiers alone so masked text still works in a database query. It's masking, not anonymisation, and I don't claim otherwise.

The optional detector is the part I care most about. A rule only finds what someone already described, and a list only holds names someone already typed in. GLiNER reads the sentence, so it catches a person in "Please send this to Camille Rousseau" with nothing configured beforehand (It's probabilistic and can miss people).

Keeping it one way is the same kind of choice as the licence. You're right that the two could technically be combined. I'd rather not build the reversible path at all.

I know the container is extra work for you to review, and I'm happy to answer anything you need on it. It runs only the detector service out of PasteGuard's Apache-2.0 image, not their proxy, and the only thing I add on top is one three line patch you can read in a few seconds. It's pinned by sha256 digest, bound to 127.0.0.1, read only, all capabilities dropped, no-new-privileges.

A few limits worth stating up front. My audit of the image was static, the image isn't signed and its build isn't reproducible. The detector holds submitted text in memory for as long as the container runs. Above 6,000 characters, or when the detector isn't up, the paste goes out with the deterministic layer alone and the HUD says so.

So I'd much rather keep Caviarde as its own extension if possible 🙏

@Gldywn
Gldywn marked this pull request as ready for review September 9, 2026 00:12

@pernielsentikaer pernielsentikaer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Gldywn 👋 Thanks for explaining the differentiation—we’re happy to continue reviewing Caviarde as a separate extension.

Two parts of the earlier Greptile fixes still need attention:

  • The detector can return CREDIT_CARD for Luhn-valid timestamps such as 1735689600005. Please apply the same issuer validation to detector-returned card spans so enabling semantic detection doesn’t undo the identifier-preservation fix.
  • Managed setup accepts HTTPS, IPv6 loopback and URL prefixes, but starts plain HTTP on 127.0.0.1. Could you restrict managed setup to supported endpoints, or make the launched service match them?

Please also add a native screenshot of Set up Detector in metadata, using Window Capture → Save to Metadata.


I’ll convert this PR into a draft after submitting this review. Please press Ready for review when it’s ready and we’ll have a look 😊

- chore: trim for publishing
- feat: refine setup details, HUD messages and demo media (raycast#10)
- docs: add the store screenshot of Set up Detector (raycast#9)
- build: bump vitest to 4.1.11 for GHSA-82fw-gwwq-j7x9 (raycast#8)
- fix: validate detector spans and restrict the managed endpoint (raycast#7)
- docs: write the publish sequence down as a sequence (raycast#6)
- chore: drop metadata and record what publishing needs (raycast#5)
- fix: stop masking Luhn-valid identifiers and honour the detector port (raycast#4)
- build: refresh both lockfiles onto the same resolution (raycast#3)
- docs: make the install path directive and unambiguous (raycast#2)
- docs: add a social preview card (raycast#1)
- ci: pin actions by commit and narrow the workflow token
- docs: record what ray publish demands of the lockfiles
- build: build for the distribution environment
- docs: keep assets to what the extension loads at runtime
- docs: stop defining the tool by support tickets
- build: add the npm lockfile the store expects
- docs: move the README screenshot out of metadata
- docs: add the store screenshot and refresh the README
- fix: title-case the Set up Detector command
- fix(detector): disable the healthcheck the pinned image cannot run
- feat(setup): turn Set Up Detector into a progress view
- fix(detector): give docker the PATH its credential helper needs
- fix(test): read compose.yaml without import.meta
- docs: rewrite the README and add a changelog
- fix: phrase the partial HUD as a mode, not a fault
- feat: add the Set Up Detector command
- refactor: ship the detector patch as an extension asset
- ci: check lint, types and tests on push
- docs: document the architecture, limits and image audit
- feat: add the extension icon
- build: pin and patch the detector image
- feat: add the Mask and Paste command
- feat(detection): propagate first names from full names
- feat(detection): add the semantic layer over HTTP
- feat(masking): assign and apply placeholders
- feat(detection): add the deterministic layer
- chore: scaffold the Raycast extension
Comment thread extensions/caviarde/package.json Resolved
@Gldywn

Gldywn commented Sep 19, 2026

Copy link
Copy Markdown
Contributor Author

Hey @pernielsentikaer 👋, thanks for the follow-up review!
The submission now includes these fixes:

  • Detector-returned card spans go through the same issuer and checksum validation as deterministic matches. Regression tests cover 1735689600005.
  • Managed setup only accepts plain HTTP on 127.0.0.1, with a root path and no credentials, query or fragment. The container uses the configured port.
  • Three native Window Capture screenshots have been added to metadata/, each at 2000 × 1250. The README also includes a Mask and Paste recording using fictional data.
  • Both commands now use Raycast's generated preference types, and toSettings derives its input from Preferences. The manually maintained RawPreferences interface has been removed.
  • The PEM detection limit of 20,000 characters has been removed. Eight fictional regression cases cover that boundary, blocks approaching the command's one-million-character input limit, adjacent blocks, legacy encryption headers and unterminated blocks. Complete blocks are masked in full, and an unterminated block does not repeatedly scan the rest of the input.

The empty titles on maskLocations and maskOrganizations are intentional. They group the checkboxes under the first title, Semantic Detection, as described in Raycast's manifest documentation. Each checkbox retains its own visible label.

Also the setup details and HUD messages have also been clarified 👍

@Gldywn
Gldywn marked this pull request as ready for review September 19, 2026 19:53

@pernielsentikaer pernielsentikaer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit a487595 into raycast:main Oct 2, 2026
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

@raycastbot

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit e5dce6c. Configure here.

const inFlight = readPullProgress(logPath);
// A pull left running by an earlier window is followed rather than restarted.
if (inFlight === null || inFlight.finished || inFlight.error !== null)
startPull(docker, logPath);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale pull log hangs download

Medium Severity

pullImage treats any existing pull.log without a Status: line or failure keyword as an active download and never starts a new docker pull. readPullProgress returns a progress object for an empty or truncated log rather than null, and nothing checks that the detached pull is still running. After a sleep, a killed daemon, or a failed spawn, Set up Detector stays on Downloading and later retries keep following the dead log.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit e5dce6c. Configure here.

} catch {
// Nothing to remove is the normal case.
}
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retry kills starting detector

Medium Severity

removeStoppedContainer runs docker rm -f, which kills a still-starting managed container. Setup waits only about 60 seconds for /health, then tells the user to run Set up Detector again. A retry while the model is still loading force-deletes that container and starts load over, so a slow first boot never becomes ready.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit e5dce6c. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new extension Label for PRs with new extensions platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants