Boost: build the wire protocol and a remote engine in packages/boost
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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).
- 主要言語
- TypeScript
- スター
- 11
- フォーク
- 0
- 平均マージ
- 10分
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DojoCodingLabs/hermit のほかの issue
-
docs good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
DojoCodingLabs/hermit#73 ·
メンテナーはふだん 1 日以内に返信
-
device-lab
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
DojoCodingLabs/hermit#45 ·
メンテナーはふだん 1 日以内に返信
-
device-lab
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
DojoCodingLabs/hermit#44 ·
メンテナーはふだん 1 日以内に返信
-
device-lab
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
DojoCodingLabs/hermit#43 ·
メンテナーはふだん 1 日以内に返信
-
agent-friendly docs good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
DojoCodingLabs/hermit#39 ·
メンテナーはふだん 1 日以内に返信
DojoCodingLabs/hermit の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
superlinked/sie#1033 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
remix-run/react-router#15838 ·
メンテナーはふだん 1 日以内に返信
-
area/ci bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
melgarafael/DeskcommCRM#5290 ·
メンテナーはふだん 1 日以内に返信