Release v0.1.8 — P2P Bridge & Cortex 0.3.8#21
Merged
ApiliumDevTeam merged 5 commits intomainfrom Mar 8, 2026
Merged
Conversation
…arding - Add P2pConfig type and parseP2pConfig() with port/seed/peers validation - Add p2p field to CortexConfig and parseCortexConfig - Add P2P DTOs (P2pStatusResponse, P2pGossipStats, P2pSyncStats, etc.) - Add 5 CortexClient methods: p2pStatus, p2pListPeers, p2pAddPeer, p2pRemovePeer, p2pProbe (null-safe for graceful degradation) - Forward --p2p, --p2p-port, --p2p-seed, --p2p-mdns, --p2p-peer flags from sidecar config to spawned Cortex process - Add 21 P2P tests to cortex-client and 4 to cortex-sidecar
- Add nativeP2pPreferred config field (default true) to cortex-sync - Probe native P2P at startup via p2pProbe(), switch to native mode when Cortex reports P2P enabled - Skip REST polling in native mode (gossip handles sync internally) - Include P2P status (node ID, peers, gossip/sync stats) in cortex_sync_status tool output when in native mode - Route cortex_sync_pair through p2pAddPeer API in native mode - Skip polled sync in agent_end/config_change hooks when native - Graceful degradation: stays in polled mode if P2P unavailable - Add 11 config tests and 12 bridge integration tests
- Show Native P2P section in `mayros sync status` when P2P is active (node ID, port, connected peers, gossip round/known IDs, sync stats) - Route `mayros sync pair` through p2pAddPeer API when native P2P active - Show gossip stats in `mayros sync now` when native mode detected - Graceful fallback to polled mode when P2P probe returns null - Add 7 CLI integration tests
## Summary - Add P2P config parsing and sidecar flag forwarding (`--p2p`, `--p2p-port`, `--p2p-seed`, `--p2p-mdns`, `--p2p-peer`) - Add CortexClient P2P methods: `p2pStatus`, `p2pListPeers`, `p2pAddPeer`, `p2pRemovePeer`, `p2pProbe` - Add dual sync mode in cortex-sync plugin: native (QUIC gossip) vs polled (REST), with graceful degradation via `p2pProbe()` - Enhance sync CLI (`sync status/pair/now`) with native P2P info display - Bump to v0.1.8 and require Cortex >= 0.3.8 ## Test plan - [x] 45 new TypeScript unit tests across B1-B4 deliverables - [x] `pnpm test` — 907 files, 7859 tests all pass - [x] Full E2E integration: Mayros CLI + CortexClient against live Cortex with P2P enabled (8 steps verified) - [x] `pnpm build` clean
ApiliumDevTeam
added a commit
that referenced
this pull request
Mar 9, 2026
## Summary - P2P config parsing and sidecar flag forwarding for native QUIC transport - CortexClient P2P methods: status, list/add/remove peers, probe - Dual sync mode in cortex-sync: native (QUIC gossip) vs polled (REST) with graceful degradation - Sync CLI enhancements with native P2P info display - Bumped to v0.1.8, requires Cortex >= 0.3.8 ## Test plan - [x] `pnpm test` — 907 files, 7859 tests all pass - [x] Full E2E: Mayros CLI + CortexClient against live Cortex with P2P (8 steps verified) - [x] `pnpm build` clean
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
pnpm test— 907 files, 7859 tests all passpnpm buildclean