[PR #446] [MERGED] feat(protocol): add gRPC/Protobuf and JSON-RPC/MessagePack capture #1993

Closed
opened 2026-10-16 21:13:10 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/morluto/rea/pull/446
Author: @morluto
Created: 7/28/2026
Status: ✅ Merged
Merged: 7/28/2026
Merged by: @morluto

Base: main ← Head: codex/protocol-capture-364


📝 Commits (1)

  • 3f336fe feat(protocol): add gRPC/Protobuf and JSON-RPC/MessagePack capture

📊 Changes

2 files changed (+479 additions, -0 deletions)

View changed files

➕ src/domain/protocolCapture.ts (+272 -0)
➕ tests/protocolCapture.test.ts (+207 -0)

📄 Description

Summary

Add capture and schema inference for gRPC/Protocol Buffers and JSON-RPC/MessagePack protocols.

Closes #364.

Changes

  • classifyProtocolFamily: Detects protocol family from content type or path
  • decodeJsonRpc: Decodes JSON-RPC messages with credential redaction
  • decodeMessagePack: Decodes MessagePack wire format (map/array type detection)
  • decodeGrpcFrame: Decodes gRPC 5-byte frame headers (compressed flag + length)
  • inferMessageSchema: Infers schema hypotheses from repeated messages with confidence scores
  • Credential redaction: Fields like , , are detected and redacted by default

Verification

npm run typecheck   # passes
npm run lint        # passes
npx vitest run tests/protocolCapture.test.ts  # 17 tests pass

Acceptance criteria

  • ✅ Raw observations, decoded fields, inferred schemas, and hypotheses are separated
  • ✅ Credentials are never persisted by default (redacted on decode)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/morluto/rea/pull/446 **Author:** [@morluto](https://github.com/morluto) **Created:** 7/28/2026 **Status:** ✅ Merged **Merged:** 7/28/2026 **Merged by:** [@morluto](https://github.com/morluto) **Base:** `main` ← **Head:** `codex/protocol-capture-364` --- ### 📝 Commits (1) - [`3f336fe`](https://github.com/morluto/rea/commit/3f336fefb132971bc6bb37b2b59aa01a5e3be5ca) feat(protocol): add gRPC/Protobuf and JSON-RPC/MessagePack capture ### 📊 Changes **2 files changed** (+479 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `src/domain/protocolCapture.ts` (+272 -0) ➕ `tests/protocolCapture.test.ts` (+207 -0) </details> ### 📄 Description ## Summary Add capture and schema inference for gRPC/Protocol Buffers and JSON-RPC/MessagePack protocols. Closes #364. ## Changes - **classifyProtocolFamily**: Detects protocol family from content type or path - **decodeJsonRpc**: Decodes JSON-RPC messages with credential redaction - **decodeMessagePack**: Decodes MessagePack wire format (map/array type detection) - **decodeGrpcFrame**: Decodes gRPC 5-byte frame headers (compressed flag + length) - **inferMessageSchema**: Infers schema hypotheses from repeated messages with confidence scores - **Credential redaction**: Fields like , , are detected and redacted by default ## Verification ```bash npm run typecheck # passes npm run lint # passes npx vitest run tests/protocolCapture.test.ts # 17 tests pass ``` ## Acceptance criteria - ✅ Raw observations, decoded fields, inferred schemas, and hypotheses are separated - ✅ Credentials are never persisted by default (redacted on decode) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-16 21:13:10 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
morluto/rea#1993
No description provided.