Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"name": "workspace",
"source": "./plugins/workspace",
"description": "Bootstrap and manage multi-repo dev environments for AI-assisted development: clone repos from a domain, layer per-repo Claude context, and track work in structured project workspaces.",
"version": "0.1.1"
"version": "0.1.2"
}
]
}
2 changes: 1 addition & 1 deletion plugins/workspace/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json",
"name": "workspace",
"displayName": "Multi-Repo Workspace Manager",
"version": "0.1.1",
"version": "0.1.2",
"description": "Bootstrap and manage multi-repo dev environments for AI-assisted development: clone repos from a domain, layer per-repo Claude context, and track work in structured project workspaces.",
"author": {
"name": "fonta-rh"
Expand Down
5 changes: 3 additions & 2 deletions plugins/workspace/scripts/consolidate-project.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,11 @@ def build_archive_block(section: Section, today: str) -> str:
to_archive = checked[:-KEEP_RECENT] if len(checked) > KEEP_RECENT else checked
strikethroughs = section.strikethrough

total_archived = len(to_archive) + len(strikethroughs)
lines = [
f"## {section.name} (archived {today})",
"",
f"{len(to_archive)} completed items archived from CLAUDE.md.",
f"{total_archived} items archived from CLAUDE.md.",
"",
]
for item in to_archive:
Expand Down Expand Up @@ -218,7 +219,7 @@ def consolidate(project_dir: Path, dry_run: bool = False) -> dict[str, Any]:

section_info = []
for s in qualifying:
to_archive = max(0, len(s.checked) - KEEP_RECENT)
to_archive = max(0, len(s.checked) - KEEP_RECENT) + len(s.strikethrough)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
section_info.append({
"name": s.name,
"checked": len(s.checked),
Expand Down
15 changes: 11 additions & 4 deletions plugins/workspace/scripts/domain-info.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,17 @@ def main() -> None:
try:
shutil.copytree(domain_dir, dest)
except (OSError, shutil.Error) as exc:
print(json.dumps({
"status": "error",
"error": f"Failed to copy domain to workspace: {exc}",
}))
cleanup_ok = True
if dest.exists():
try:
shutil.rmtree(dest)
except OSError:
cleanup_ok = False
Comment thread
coderabbitai[bot] marked this conversation as resolved.
msg = f"Failed to copy domain to workspace: {exc}"
if not cleanup_ok:
msg += (f" (warning: partial directory at {dest} could not be"
" removed — delete it manually before retrying)")
print(json.dumps({"status": "error", "error": msg}))
return
domain_dir = dest
action = "copied"
Expand Down