Files
hakorune/examples/p2p_self_ping.nyash
Moe Charm 6eda81f5db feat: Major documentation reorganization and unified Box design updates
## Documentation & Organization
- Moved copilot_issues.txt → 00_MASTER_ROADMAP.md (phases folder)
- Created Phase 9.79b.1 & 9.79b.2 plans for unified Box implementation
- Updated unified-box-design-deep-analysis.md with ChatGPT5 insights
- Added P2P documentation and examples (ping-pong, self-ping)

## Code Updates
- P2PBox: Reverted to original error state for demonstration
- VM: Enhanced BoxCall dispatch for unified approach
- Updated box factory, interpreter calls, and transport layer

## Cleanup & Privacy
- Removed private/ and private_test/ from git tracking
- Added private folders to .gitignore for security
- Cleaned root directory: moved backups, removed temp files
- Moved consultation files to docs/archive/consultations/

## Other Improvements
- Added object literal syntax improvement idea
- Updated CLAUDE.md with master roadmap reference
- Updated CURRENT_TASK.md with latest progress

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-26 20:30:07 +09:00

27 lines
822 B
Plaintext

// 📡 P2P Self Ping Smoke
// Purpose: Minimal, deterministic P2PBox demo without external timing.
// Shows send(to=self) loopback traces and universal methods.
print("🚀 P2P Self Ping Smoke Start")
// Create node 'alice' on inprocess transport
alice = new P2PBox("alice", "inprocess")
// Show basic info
print("node=" + alice.getNodeId() + ", transport=" + alice.getTransportType())
// Create an IntentBox and send to self
msg = new IntentBox("ping", "{}")
res = alice.send("alice", msg)
print("send result=" + res.toString())
// Read back last received traces (populated for self-loop)
print("last.from=" + alice.getLastFrom())
print("last.intent=" + alice.getLastIntentName())
// Show debug helpers
print("nodes=" + alice.debugNodes())
print("bus=" + alice.debugBusId())
print("✅ P2P Self Ping Smoke Done")