Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

`prompuff` as the native messaging host, and Connect a browser in Settings

Aperta
#46 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp, linux, macos

Direzione di ricerca

Start with src/Prompuff.Cli/CliApp.cs and src/Prompuff.Cli/McpServerHost.cs to understand the existing stdio protocol, then read src/Prompuff.Cli/CliLibrary.cs and the platform installer and single instance files named in the issue. Implementing this spans the host protocol, browser registration across platforms, cleanup, and app integration. Done means the framed host tests pass, connecting and undoing works on the listed browsers and platforms, and docs/user-guide.md explains setup.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

The extension (#44, #45) talks to the library through native messaging: the browser starts a program and exchanges length-prefixed JSON with it over stdin and stdout. That program is the prompuff command, which already opens the library by the app's rules and speaks MCP over stdio.

What to do

  • Add a host mode to prompuff. Chrome and Edge pass the caller's origin as an argument, and Firefox passes the manifest path and the extension ID. The host searches, gets and renders prompts, sends text to Quick save in the running app, and does nothing else.
  • The host's manifest allows only Prompuff's own extension IDs (allowed_origins, allowed_extensions).
  • Connect a browser in Settings › Integrations writes the manifest into the browser's own folders, and can undo it:
    • Windows: a registry key under HKCU\Software\Google\Chrome\NativeMessagingHosts, HKCU\Software\Microsoft\Edge\NativeMessagingHosts and HKCU\Software\Mozilla\NativeMessagingHosts, pointing at a manifest in Prompuff's data folder. Registry code stays in src/Prompuff.App/Platform, behind OperatingSystem.IsWindows().
    • Linux and macOS: the manifest file in each browser's NativeMessagingHosts folder.
  • Writing into browser folders is outside Prompuff's own folders, so it's a step the user starts. Add it to the exception in AGENTS.md's cross-platform rules. Velopack's uninstall hook removes it on Windows.
  • The host opens no network connection and never logs titles, bodies or values.

Where to look

  • src/Prompuff.Cli/CliApp.cs and src/Prompuff.Cli/McpServerHost.cs: another stdio protocol in the same program
  • src/Prompuff.Cli/CliLibrary.cs: opening the library
  • src/Prompuff.App/Platform/CommandLineInstaller.cs: the install, remove and uninstall-hook pattern
  • src/Prompuff.App/Platform/SingleInstance.cs: how a second process reaches the running app

Done when

  • Tests drive the host with framed messages and cover a bad frame, an unknown origin and an oversized message.
  • Connect a browser works for Chrome, Edge and Firefox on Windows and in WSLg, and undoing it removes every file and key it wrote.
  • docs/user-guide.md describes connecting a browser.
Lingua principale
C#
Stelle
0
Fork
1
Merge medio
1h 51m
PR unite (30g)
13

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hazeliscoding/prompuff

Tutte le issue di hazeliscoding/prompuff

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.