Boost: build the wire protocol and a remote engine in packages/boost
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 25/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- typescript
- Domaine
- backend-api-design
Piste de recherche
Start with the design in issue #54, then read packages/model/src/engine.ts, packages/payments/src/wallet-ipc.ts, and the fake engine examples in packages/model/test/port.test.ts. Implement the protocol and remote engine in packages/boost with tests for codec, client, server, failures, and an in-memory end-to-end exchange. Done means those tests and the listed privacy, typecheck, lint, test, and guard checks pass, with no network API.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Why
Once the protocol is decided, both sides need one tested implementation of it. ADR-010 keeps the cage on the phone, so the computer only answers model requests. Pure code, tested over an in-memory pipe, lets the phone and the desktop app be built in parallel against the same thing.
What to do
In packages/boost (new, if the pairing core hasn't created it yet), pure TypeScript, behind a small duplex byte-stream port (write bytes, receive bytes, closed), shaped like createWalletClient in packages/payments/src/wallet-ipc.ts. The steps below assume the design chose the completion level; follow the design if it chose another.
Tests first:
- The codec. The design's message shapes, versioned, with its size limits. Refuse malformed, oversized, unknown-version and out-of-order messages.
- The client.
boostEngine(stream, options)implementsCompletionEngine(packages/model/src/engine.ts). It sends anEngineRequest, streamsonTokenandonThinking, and resolves anEngineResultwith the tool calls unexecuted, the stop reason (stopOf) and stats (engineStats). A stop (signal) cancels at once and rejects, as FR-LOOP-06 says. - The server.
serveBoost(stream, engine, options)answers requests with anyCompletionEngine, refuses a capability it lacks, and never logs content. - Failures. The link closes mid-stream; a timeout; a capability mismatch, such as another model SHA-256 or profile. Each ends in the outcome the design chose.
- End to end. Client and server over an in-memory pipe, with a fake
CompletionEnginelike the ones inpackages/model/test/port.test.ts.
Done when
- The tests above pass, and they were written first.
- The gates pass, and the package uses no network API.
How to check
pnpm --filter @hermit/boost test
pnpm check:privacy && pnpm typecheck && pnpm lint && pnpm test
node scripts/guard/check.mjs --patterns scripts/guard/patterns.txt
Depends on
- Blocked by the design in #54.
Keep in mind
- Nothing here runs a tool call. The phone's loop and cage do (AGENTS.md rule 4).
- Send only what the design lists. No device names, contacts, session ids or log entries.
- Made-up chats in the tests.
- Open a pull request only once everything under Depends on is accepted or merged, and a maintainer has said so here (AGENTS.md: code for a feature without an accepted issue may be closed).
- Langage dominant
- TypeScript
- Étoiles
- 11
- Forks
- 0
- Merge moyen
- 10 min
- PR mergées (30 j)
- 6
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de DojoCodingLabs/hermit
-
docs good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 87/100
DojoCodingLabs/hermit#73 ·
Les mainteneurs répondent en général sous 1 jour
-
device-lab
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
DojoCodingLabs/hermit#45 ·
Les mainteneurs répondent en général sous 1 jour
-
device-lab
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
DojoCodingLabs/hermit#44 ·
Les mainteneurs répondent en général sous 1 jour
-
device-lab
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
DojoCodingLabs/hermit#43 ·
Les mainteneurs répondent en général sous 1 jour
-
agent-friendly docs good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
DojoCodingLabs/hermit#39 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de DojoCodingLabs/hermit
Issues similaires
-
bug zoo
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
software-mansion/runntime#151 ·
Les mainteneurs répondent en général sous 4 jours
-
Difficulté 1/5 1-3 heures Accessibilité débutants 86/100
sidebandstudio/clawtrate#728 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement github_actions help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
tranquilo-art/tranquilo-app#254 ·
Les mainteneurs répondent en général sous 1 jour
-
documentation good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Tfoucher5/fuzzy-toolkit#44 ·
Les mainteneurs répondent en général sous 1 jour
-
bug tooling
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
endora-commerce/endora-commerce#1978 ·
Les mainteneurs répondent en général sous 1 jour