Boost: build the wire protocol and a remote engine in packages/boost
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- backend-api-design
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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).
- Vorherrschende Sprache
- TypeScript
- Sterne
- 11
- Forks
- 0
- Ø Merge
- 10 Min.
- Gemergte PRs (30 T.)
- 6
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus DojoCodingLabs/hermit
-
docs good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 87/100
DojoCodingLabs/hermit#73 ·
Maintainer antworten meist innerhalb von 1 Tag
-
device-lab
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
DojoCodingLabs/hermit#45 ·
Maintainer antworten meist innerhalb von 1 Tag
-
device-lab
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
DojoCodingLabs/hermit#44 ·
Maintainer antworten meist innerhalb von 1 Tag
-
device-lab
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
DojoCodingLabs/hermit#43 ·
Maintainer antworten meist innerhalb von 1 Tag
-
agent-friendly docs good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
DojoCodingLabs/hermit#39 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in DojoCodingLabs/hermit
Ähnliche Issues
-
bug zoo
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
software-mansion/runntime#151 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 86/100
sidebandstudio/clawtrate#728 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement github_actions help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
tranquilo-art/tranquilo-app#254 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Tfoucher5/fuzzy-toolkit#44 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug tooling
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
endora-commerce/endora-commerce#1978 ·
Maintainer antworten meist innerhalb von 1 Tag