@oneciel-ai/claude-any 0.1.93 → 0.1.94

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.
Files changed (2) hide show
  1. package/claude_any.py +12 -3
  2. package/package.json +1 -1
package/claude_any.py CHANGED
@@ -105,7 +105,7 @@ OFFICIAL_CHANNEL_PLUGINS = {
105
105
  "fakechat": "plugin:fakechat@claude-plugins-official",
106
106
  }
107
107
  APP_NAME = "Claude Any"
108
- VERSION = "0.1.93"
108
+ VERSION = "0.1.94"
109
109
  CREDITS = "Credits: One Ciel LLC"
110
110
 
111
111
  LOG_LEVELS = {"SILENT": 0, "ERROR": 1, "WARN": 2, "INFO": 3, "DEBUG": 4, "TRACE": 5}
@@ -14178,6 +14178,15 @@ def _channel_enter_bytes_from_user_input(data: bytes) -> bytes | None:
14178
14178
  return b"\r\n" if last_cr + 1 < len(data) and data[last_cr + 1 : last_cr + 2] == b"\n" else b"\r"
14179
14179
 
14180
14180
 
14181
+ def _channel_synthetic_enter_bytes_from_user_input(data: bytes) -> bytes | None:
14182
+ observed = _channel_enter_bytes_from_user_input(data)
14183
+ if observed == b"\r":
14184
+ # Bare CR is common from raw POSIX terminals, but synthetic CR-only
14185
+ # writes can sit in Claude Code's line editor on some PTY stacks.
14186
+ return b"\r\n"
14187
+ return observed
14188
+
14189
+
14181
14190
  def _channel_enter_label(enter_bytes: bytes) -> str:
14182
14191
  if enter_bytes == b"\r":
14183
14192
  return "cr"
@@ -14258,8 +14267,8 @@ def subprocess_call_with_channel_wake_proxy(cmd: list[str], env: dict[str, str])
14258
14267
  if stdin_fd in readable:
14259
14268
  data = os.read(stdin_fd, 4096)
14260
14269
  if data:
14261
- observed_enter = _channel_enter_bytes_from_user_input(data)
14262
- if observed_enter:
14270
+ observed_enter = _channel_synthetic_enter_bytes_from_user_input(data)
14271
+ if observed_enter and not os.environ.get("CLAUDE_ANY_CHANNEL_WAKE_ENTER"):
14263
14272
  channel_enter_bytes = observed_enter
14264
14273
  _write_fd_all(master_fd, data)
14265
14274
  if master_fd in readable:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneciel-ai/claude-any",
3
- "version": "0.1.93",
3
+ "version": "0.1.94",
4
4
  "description": "Claude Code provider selector for Anthropic, Ollama, Ollama Cloud, vLLM, NVIDIA hosted, and self-hosted NIM.",
5
5
  "license": "MIT",
6
6
  "author": "One Ciel LLC",