clawd-migrate 0.1.1 → 0.1.2
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.
|
@@ -3,7 +3,7 @@ clawd_migrate - Migrate from moltbot or clawdbot to openclaw while preserving
|
|
|
3
3
|
configuration, memory, and clawdbook (Moltbook) data. Works for any user's system.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
__version__ = "0.1.
|
|
6
|
+
__version__ = "0.1.2"
|
|
7
7
|
|
|
8
8
|
from .backup import create_backup
|
|
9
9
|
from .discover import discover_source_assets, discover_clawdbot_assets
|
package/lib/clawd_migrate/tui.py
CHANGED
|
@@ -26,8 +26,8 @@ def style(s: str, *codes: str) -> str:
|
|
|
26
26
|
return "".join(codes) + s + RESET
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
# ASCII lobster (side view
|
|
30
|
-
LOBSTER_LINES = """
|
|
29
|
+
# ASCII lobster (side view); raw string so backslashes display correctly
|
|
30
|
+
LOBSTER_LINES = r"""
|
|
31
31
|
,.---._
|
|
32
32
|
,,,, / `,
|
|
33
33
|
\\\\ / '\_ ;
|
|
@@ -47,21 +47,11 @@ LOBSTER_LINES = """
|
|
|
47
47
|
def print_banner() -> None:
|
|
48
48
|
"""Print the lobster ASCII art and welcome message."""
|
|
49
49
|
print()
|
|
50
|
-
for line in LOBSTER_LINES:
|
|
50
|
+
for line in LOBSTER_LINES.splitlines():
|
|
51
51
|
if not line.strip():
|
|
52
|
-
print(
|
|
52
|
+
print()
|
|
53
53
|
continue
|
|
54
|
-
|
|
55
|
-
sep = " ____"
|
|
56
|
-
if sep in line and ("/ \\" in line or "|" in line):
|
|
57
|
-
left, right = line.split(sep, 1)
|
|
58
|
-
print(style(left, RED) + style(sep + right, CYAN))
|
|
59
|
-
elif "o o" in line:
|
|
60
|
-
left, right = line.split("o o", 1)
|
|
61
|
-
print(style(left, RED) + style("o", BOLD) + " " + style("o", BOLD) + style(right, RED))
|
|
62
|
-
else:
|
|
63
|
-
# Lobster-only line
|
|
64
|
-
print(style(line, RED))
|
|
54
|
+
print(style(line, RED))
|
|
65
55
|
print(style(" Migrate from moltbot or clawdbot to openclaw safely ", BOLD, CYAN))
|
|
66
56
|
print(style(" Discover -> Backup -> Migrate ", DIM))
|
|
67
57
|
print()
|