- Add Catch2 test framework with MockIO and TimeSimulator utilities - Implement 10 TI for SchedulerModule (task lifecycle, hyperfocus, breaks) - Implement 10 TI for NotificationModule (queue, priority, silent mode) - Fix SchedulerModule: update m_lastActivityTime in process() - Add AISSIA_TEST_BUILD guards to avoid symbol conflicts - All 20 tests passing (69 assertions total) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
35 lines
805 B
Python
35 lines
805 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Simple JSON-RPC echo server for testing StdioTransport.
|
|
Echoes back the params of any request as the result.
|
|
"""
|
|
import json
|
|
import sys
|
|
|
|
|
|
def main():
|
|
while True:
|
|
try:
|
|
line = sys.stdin.readline()
|
|
if not line:
|
|
break
|
|
|
|
request = json.loads(line.strip())
|
|
response = {
|
|
"jsonrpc": "2.0",
|
|
"id": request.get("id"),
|
|
"result": request.get("params", {})
|
|
}
|
|
sys.stdout.write(json.dumps(response) + "\n")
|
|
sys.stdout.flush()
|
|
except json.JSONDecodeError:
|
|
# Invalid JSON, ignore
|
|
pass
|
|
except Exception:
|
|
# Other errors, continue
|
|
pass
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|