Skip to content

Commit 0c27ab3

Browse files
committed
ops: fix bump-version.py + repo metadata
scripts/bump-version.py: - Fix Cargo.lock workspace detection: internal crates are named 'claurst' and 'claurst-*' (preserved from upstream for merge-friendliness), not 'coven-code'. Script now matches 12/12 workspace packages correctly. Smoke tested with v0.1.4: all 9 targets hit. - Fix README.md patterns to match our actual format (Beta callout + attribution version line; no shields.io badge block). No code/feature changes.
1 parent 21fb92a commit 0c27ab3

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@opencoven/coven-code",
33
"version": "0.1.4",
4-
"description": "Open-source, multi-provider agentic coding TUI for the terminal OpenCoven fork of Claurst",
4+
"description": "Open-source, multi-provider agentic coding TUI for the terminal \u2014 OpenCoven fork of Claurst",
55
"license": "GPL-3.0-only",
66
"repository": {
77
"type": "git",

scripts/bump-version.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,14 @@ def bump_cargo_lock(version: str) -> None:
5555
if re.search(r"^source = ", block, flags=re.MULTILINE):
5656
continue # registry / git dep — leave alone
5757
name_match = re.search(r'^name = "([^"]+)"', block, flags=re.MULTILINE)
58-
if not name_match or not name_match.group(1).startswith("coven-code"):
59-
continue # any future non-coven-code path dep — also leave alone
58+
if not name_match:
59+
continue
60+
# Workspace crates are named "claurst" or "claurst-*" (internal crate
61+
# names are preserved from upstream for merge-friendliness; the compiled
62+
# binary and user-facing package name are "coven-code").
63+
crate_name = name_match.group(1)
64+
if crate_name != "claurst" and not crate_name.startswith("claurst-"):
65+
continue
6066
new_block, n = re.subn(
6167
r'^version = "[^"]+"$',
6268
f'version = "{version}"',
@@ -65,7 +71,7 @@ def bump_cargo_lock(version: str) -> None:
6571
flags=re.MULTILINE,
6672
)
6773
if n != 1:
68-
die(f"Cargo.lock: workspace block for {name_match.group(1)} had no version line")
74+
die(f"Cargo.lock: workspace block for {crate_name} had no version line")
6975
blocks[i] = new_block
7076
touched += 1
7177

@@ -105,11 +111,10 @@ def main() -> None:
105111
pkg_path.write_text(json.dumps(pkg, indent=2) + "\n", encoding="utf-8")
106112
print(f" npm/package.json")
107113

108-
# 4. README.md badge + Beta callout
114+
# 4. README.md Beta callout + attribution version line
109115
readme = ROOT / "README.md"
110-
replace(readme, r"Version-\d+\.\d+\.\d+-2E8B57", f"Version-{version}-2E8B57", count=1)
111-
replace(readme, r'alt="Version \d+\.\d+\.\d+"', f'alt="Version {version}"', count=1)
112-
replace(readme, r"Beta \(v\d+\.\d+\.\d+\)", f"Beta (v{version})", count=1)
116+
replace(readme, r"Beta \(v\d+\.\d+\.\d+\)\.", f"Beta (v{version}).", count=1)
117+
replace(readme, r"Claurst v\d+\.\d+\.\d+", f"Claurst v{version}", count=1)
113118

114119
# 5. docs/index.md
115120
replace(

0 commit comments

Comments
 (0)