runtime-sdk 0.4.4__tar.gz → 0.4.5__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: runtime-sdk
3
- Version: 0.4.4
3
+ Version: 0.4.5
4
4
  Summary: Runtime Python SDK and CLI
5
5
  Project-URL: Repository, https://github.com/The-Money-Company-Limited/runtimevm
6
6
  Project-URL: Issues, https://github.com/The-Money-Company-Limited/runtimevm/issues
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "runtime-sdk"
3
- version = "0.4.4"
3
+ version = "0.4.5"
4
4
  description = "Runtime Python SDK and CLI"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -1175,10 +1175,23 @@ def _flush_terminal_output(state: dict[str, Any]) -> str:
1175
1175
  def _strip_terminal_noise(text: str) -> str:
1176
1176
  if not text:
1177
1177
  return ""
1178
- cleaned = text
1179
- cleaned = cleaned.replace("Running bootstrap command: export PS1='\\[\\033[1;34m\\]runtime@\\h\\[\\033[0m\\]:\\w\\$ '\n", "")
1180
- cleaned = cleaned.replace("Connected! Press Ctrl+] to exit.\n", "")
1181
- return cleaned
1178
+
1179
+ lines = text.splitlines(keepends=True)
1180
+ filtered: list[str] = []
1181
+ for line in lines:
1182
+ stripped = line.rstrip("\r\n")
1183
+ if stripped == "Running bootstrap command: export PS1='\\[\\033[1;34m\\]runtime@\\h\\[\\033[0m\\]:\\w\\$ '":
1184
+ continue
1185
+ if stripped == "Connected! Press Ctrl+] to exit.":
1186
+ continue
1187
+ if stripped == "* Image built by SlicerVM (2026)":
1188
+ continue
1189
+ if stripped == "* Website: https://slicervm.com":
1190
+ continue
1191
+ if stripped == "* Docs: https://docs.slicervm.com":
1192
+ continue
1193
+ filtered.append(line)
1194
+ return "".join(filtered)
1182
1195
 
1183
1196
 
1184
1197
  def _send_terminal_resize(ws: Any) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: runtime-sdk
3
- Version: 0.4.4
3
+ Version: 0.4.5
4
4
  Summary: Runtime Python SDK and CLI
5
5
  Project-URL: Repository, https://github.com/The-Money-Company-Limited/runtimevm
6
6
  Project-URL: Issues, https://github.com/The-Money-Company-Limited/runtimevm/issues
File without changes
File without changes