Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

address review: fix release runtime setup gaps

Adam Eivy7f16276cf658
diff --git a/scripts/generate_ltx2.py b/scripts/generate_ltx2.py
index d655d466b7..1a6ac0c378 100644
--- a/scripts/generate_ltx2.py
+++ b/scripts/generate_ltx2.py
@@ -52,6 +52,24 @@ def emit_download(msg: str) -> None:
print(f"DOWNLOAD:{msg}", file=sys.stderr, flush=True)
+def configure_negative_prompt(negative_prompt: str) -> None:
+ """Thread PortOS' negative prompt into ltx-2-mlx's CFG encoder.
+
+ The current dgrauet pipeline APIs don't expose `negative_prompt` on every
+ public generate method. Internally, though, all the text/video/audio
+ pipelines share `TextToVideoPipeline._encode_text_with_negative()`, which
+ reads `ti2vid_one_stage.DEFAULT_NEGATIVE_PROMPT` at call time. This helper
+ updates that module-level default for this short-lived bridge process so
+ text, image, fflf, extend, and a2v modes all honor the prompt consistently.
+ """
+ if not negative_prompt:
+ return
+ from ltx_pipelines_mlx import ti2vid_one_stage
+
+ ti2vid_one_stage.DEFAULT_NEGATIVE_PROMPT = negative_prompt
+ emit_status("Using custom negative prompt")
+
+
def parse_args() -> argparse.Namespace:
p = argparse.ArgumentParser(description="PortOS ltx-2-mlx bridge")
p.add_argument("--mode", required=True, choices=["text", "image", "fflf", "extend", "a2v"])
@@ -289,6 +307,7 @@ def maybe_strip_audio(output_path: str) -> None:
def main() -> int:
args = parse_args()
Path(args.output).parent.mkdir(parents=True, exist_ok=True)
+ configure_negative_prompt(args.negative_prompt)
runners = {
"text": run_text,
diff --git a/scripts/setup-image-video.sh b/scripts/setup-image-video.sh
index 2ec2a24faa..f3d27212bc 100755
--- a/scripts/setup-image-video.sh
+++ b/scripts/setup-image-video.sh
@@ -101,7 +101,8 @@ if [[ "$INSTALL_LTX2" == "1" ]]; then
echo "📦 Cloning dgrauet/ltx-2-mlx into ${LTX2_DIR}..."
git clone --depth=1 https://github.com/dgrauet/ltx-2-mlx.git "${LTX2_DIR}"
else
- echo "ℹ️ ltx-2-mlx clone exists at ${LTX2_DIR}; skipping clone."
+ echo "📦 Updating existing ltx-2-mlx clone at ${LTX2_DIR}..."
+ (cd "${LTX2_DIR}" && git fetch --depth=1 origin main && git checkout -B main FETCH_HEAD)
fi
# Force Python 3.11 — ltx-core-mlx pins requires-python>=3.11 and the
# macOS bundled python3 is sometimes 3.10. uv resolves this for us when
diff --git a/update.ps1 b/update.ps1
index 515edaad17..41e79c5ed0 100644
--- a/update.ps1
+++ b/update.ps1
@@ -116,9 +116,16 @@ if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
Step "submodules" "done" "Submodules updated"
Write-SafeHost ""
-# Stop PM2 apps to release file locks before updating
+# Kill PM2 daemon entirely — pm2 stop/restart only signal app processes but
+# leave the daemon alive. If the daemon was originally launched from a different
+# project, it can cache a stale ProcessContainerFork.js path and crash future
+# fork() calls with MODULE_NOT_FOUND. Killing the daemon mirrors update.sh and
+# forces a fresh launch from this checkout on restart.
Step "pm2-stop" "running" "Stopping PortOS apps..."
-Invoke-Logged npm run pm2:stop
+Invoke-Logged node ./node_modules/pm2/bin/pm2 kill
+if ($LASTEXITCODE -ne 0) {
+ Write-SafeHost "⚠️ PM2 daemon was not running or could not be killed; continuing update" -ForegroundColor Yellow
+}
Step "pm2-stop" "done" "Apps stopped"
Write-SafeHost ""