Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Add asset deletion safeguard and refactor demo build setup
Maximilian Roos90564bcc948a
diff --git a/Taskfile.yaml b/Taskfile.yamlindex de7c8dfd9..d23d5a276 100644--- a/Taskfile.yaml+++ b/Taskfile.yaml@@ -143,6 +143,15 @@ tasks:exit 0fi+ # Check for deletions - require manual publish if files were removed+ if git status --porcelain | grep -q '^ D'; then+ echo "Deletions detected:"+ git status --porcelain | grep '^ D'+ echo ""+ echo "Publish manually in $ASSETS_REPO if this is correct"+ exit 1+ fi+git diff --statgit add -Agit commit -m "Update assets"diff --git a/docs/demos/build b/docs/demos/buildindex 7c14e9f81..f12eda8bf 100755--- a/docs/demos/build+++ b/docs/demos/build@@ -15,6 +15,7 @@ from __future__ import annotationsimport argparseimport os+import shutilimport subprocessimport sysimport tempfile@@ -27,6 +28,7 @@ SCRIPT_DIR = Path(__file__).parentsys.path.insert(0, str(SCRIPT_DIR))from shared import ( # noqa: E402+ FIXTURES_DIR,VALIDATION_RS,DemoEnv,DemoSize,@@ -454,7 +456,11 @@ Examples:# Output goes to mode/theme subdirectoriesmode_out_dir = OUT_DIR / args.target- starship_config = setup_demo_output(mode_out_dir)+ mode_out_dir.mkdir(parents=True, exist_ok=True)++ # Copy starship config to docs/ only+ if args.target == "docs":+ shutil.copy(FIXTURES_DIR / "starship.toml", mode_out_dir / "starship.toml")target_config = TARGETS[args.target]demos = target_config["demos"]@@ -478,7 +484,7 @@ Examples:env = DemoEnv(name=output_name, out_dir=demo_env_dir, repo_name="acme")setup_func(env)print(f"Demo repo: {env.repo}")- spawn_debug_shell(env, starship_config)+ spawn_debug_shell(env, FIXTURES_DIR / "starship.toml")return# Record demos