From cd1881edf66d9c104004366d5017650975bbb4f3 Mon Sep 17 00:00:00 2001 From: Lilith Date: Thu, 22 Jan 2026 11:40:28 -0800 Subject: [PATCH] =?UTF-8?q?chore(scripts/run):=20=F0=9F=94=A7=20Add=20Dock?= =?UTF-8?q?er=20installation=20command=20generation=20in=20install=20scrip?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/run/install_command.py | 43 +++++++++++++++++----------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/scripts/run/install_command.py b/scripts/run/install_command.py index 03dbb44b..87e9761b 100644 --- a/scripts/run/install_command.py +++ b/scripts/run/install_command.py @@ -8,20 +8,24 @@ from pathlib import Path # TypeScript packages to install TYPESCRIPT_PACKAGES = [ - "imagen-app", - "react", - "electron", - "image-generation", # Monorepo with workspaces - "imagegen-assistant", # Monorepo with workspaces - "image-processing", # Monorepo with workspaces + "packages/imajin-app", + "packages/imajin-react", + "packages/imajin-electron", + "packages/imajin-client", + "packages/imajin-config", ] # Python services to install PYTHON_SERVICES = [ - "imagegen-assistant/service", - "image-generation/service", - "image-pipeline", - "image-compression", + "services/imajin-aesthetic", + "services/imajin-diffusion", + "services/imajin-identity", + "services/imajin-moderator", + "services/imajin-processing", + "services/imajin-prompt", + "services/imajin-prompt-generator", + "services/imajin-request-classifier", + "services/imajin-semantic", ] @@ -114,7 +118,7 @@ Note: This can take 5-10 minutes on first run. print("▶ Installing: workspace root") result = subprocess.run( - ["npm", "install"], + ["pnpm", "install"], cwd=workspace_root, capture_output=not parsed_args.verbose, check=False, @@ -150,8 +154,8 @@ Note: This can take 5-10 minutes on first run. print(f"▶ Installing: {pkg}") - # Run npm install - install_cmd = ["npm", "install"] + # Run pnpm install + install_cmd = ["pnpm", "install"] result = subprocess.run( install_cmd, cwd=pkg_path, @@ -219,16 +223,11 @@ Note: This can take 5-10 minutes on first run. print(f" Installing dependencies...") activate_script = venv_path / "bin" / "activate" - # Special handling for services that need lilith-pipeline-framework stub - if service == "image-pipeline": - pip_cmd = f"source {activate_script} && pip install -e ../lilith-pipeline-framework && pip install --no-deps -e ." - elif service == "image-generation/service": - pip_cmd = f"source {activate_script} && pip install -e ../../lilith-pipeline-framework && pip install -e ../../image-pipeline --no-deps && pip install --no-deps -e ." - else: - pip_cmd = f"source {activate_script} && pip install -e ." + # Install package in editable mode + pip_cmd = f"source {activate_script} && pip install -e ." - # Also install dev dependencies if available (for non-special cases) - if has_pyproject and service not in ["image-pipeline", "image-generation/service"]: + # Also install dev dependencies if available + if has_pyproject: # Check if there are dev/test extras pip_cmd += " && pip install -e '.[dev]' 2>/dev/null || true"