Skip to content

Commit dfd077c

Browse files
author
Joongheon Park
committed
chore: increment version to 0.1.8 and update langgraph registry function
- Updated version number in `__init__.py` from 0.1.7 to 0.1.8. - Modified `update_langgraph_registry` function to accept `cast_slug` as a parameter and updated related documentation. - Enhanced regex patterns in `validate_architecture.py` for better cast name extraction. Files modified: 4
1 parent c346280 commit dfd077c

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.7"
1+
__version__ = "0.1.8"

act_operator/act_operator/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,7 @@ def _copy_cast_test(rendered_root: Path) -> None:
681681
try:
682682
update_langgraph_registry(
683683
act_path / LANGGRAPH_FILE,
684+
cast_variants.slug,
684685
cast_variants.snake,
685686
)
686687
except RuntimeError as error:

act_operator/act_operator/scaffold/{{ cookiecutter.act_slug }}/.claude/skills/architecting-act/scripts/validate_architecture.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def parse_act_claude_md(content: str) -> dict:
118118

119119
# Extract casts from table
120120
# Format: | CastName | purpose | [link](path) |
121-
cast_table_pattern = r"\| ([A-Z][a-zA-Z0-9]+) \| .* \| \[.*?\]\((casts/[^/]+/CLAUDE\.md)\)"
121+
cast_table_pattern = r"\| ([A-Z][a-zA-Z0-9 ]+) \| .* \| \[.*?\]\((casts/[^/]+/CLAUDE\.md)\)"
122122
matches = re.findall(cast_table_pattern, content)
123123
data["casts_in_table"] = [
124124
{"name": name, "path": path} for name, path in matches
@@ -332,9 +332,9 @@ def validate_distributed_architecture(project_root: Path) -> ValidationReport:
332332
if cast_claude.exists():
333333
# Extract cast name from file
334334
cast_content = cast_claude.read_text(encoding="utf-8")
335-
cast_name_match = re.search(r"# Cast: (\w+)", cast_content)
335+
cast_name_match = re.search(r"# Cast: ([A-Z][a-zA-Z0-9 ]+)", cast_content)
336336
if cast_name_match:
337-
cast_name = cast_name_match.group(1)
337+
cast_name = cast_name_match.group(1).strip()
338338
cast_files[cast_name] = cast_claude
339339
else:
340340
report.add(False, "Casts directory not found at project root", "warning")
@@ -344,7 +344,7 @@ def validate_distributed_architecture(project_root: Path) -> ValidationReport:
344344
cast_content = cast_path.read_text(encoding="utf-8")
345345
cast_data = parse_cast_claude_md(cast_content, cast_name)
346346

347-
validate_cast_level(cast_data, cast_path, report)
347+
validate_cast_level(cast_data, report)
348348
validate_cast_diagram(cast_data, report)
349349
validate_cast_nodes(cast_data, report)
350350

act_operator/act_operator/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ def _build_graph_reference(cast_snake: str) -> str:
373373

374374
def update_langgraph_registry(
375375
langgraph_path: Path,
376+
cast_slug: str,
376377
cast_snake: str,
377378
) -> None:
378379
"""Update the LangGraph registry in langgraph.json.
@@ -382,7 +383,8 @@ def update_langgraph_registry(
382383
383384
Args:
384385
langgraph_path: Path to the langgraph.json file.
385-
cast_snake: Snake-case name of the cast to register.
386+
cast_slug: Hyphenated cast name used as the graph key.
387+
cast_snake: Snake-case cast name used in the graph path.
386388
387389
Raises:
388390
RuntimeError: If langgraph.json is not found.
@@ -398,7 +400,7 @@ def update_langgraph_registry(
398400
# Update graphs only (dependencies use wildcard patterns)
399401
graphs = payload.setdefault("graphs", {})
400402
graph_reference = _build_graph_reference(cast_snake)
401-
graphs.setdefault(cast_snake, graph_reference)
403+
graphs.setdefault(cast_slug, graph_reference)
402404

403405
# Write updated content
404406
updated_content = json.dumps(payload, ensure_ascii=False, indent=2) + "\n"

0 commit comments

Comments
 (0)