blun-king-cli 9.1.11 → 9.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/blun.js CHANGED
File without changes
File without changes
package/bin/king.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/blun.mjs CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "9.1.11",
3
+ "version": "9.1.12",
4
4
  "description": "BLUN CLI - your own AI agent with a Telegram channel. Get it done. With BLUN.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -663,8 +663,13 @@ def handle_message(message: dict[str, Any]) -> dict[str, Any] | None:
663
663
  }
664
664
 
665
665
 
666
- def serve() -> int:
667
- for line in sys.stdin:
666
+ def serve() -> int:
667
+ # MCP stdio is UTF-8; Windows otherwise decodes it using the system code page.
668
+ for stream in (sys.stdin, sys.stdout):
669
+ reconfigure = getattr(stream, "reconfigure", None)
670
+ if reconfigure is not None:
671
+ reconfigure(encoding="utf-8")
672
+ for line in sys.stdin:
668
673
  if not line.strip():
669
674
  continue
670
675
  try: