[PR #42] [MERGED] Comprehensive optimization roadmap: runtime parity, release hygiene, and client load #4413

Closed
opened 2026-10-22 04:07:23 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/42
Author: @TheLonelyDevil9
Created: 4/1/2026
Status: ✅ Merged
Merged: 4/1/2026
Merged by: @SpicyMarinara

Base: main ← Head: pr/comprehensive-optimization-roadmap


📝 Commits (4)

  • 8f1e8c6 docs: refresh contributor and release documentation
  • a3b6988 feat: align runtime config, tooling, and client loading
  • a5d1f06 ci: install pnpm before enabling cache
  • 4ae0b98 ci: make server lint build shared types first

📊 Changes

50 files changed (+1591 additions, -628 deletions)

View changed files

📝 .env.example (+5 -3)
➕ .github/workflows/pull-request-checks.yml (+33 -0)
📝 .gitignore (+3 -0)
➕ CHANGELOG.md (+58 -0)
➕ CLAUDE.md (+41 -0)
➕ CONTRIBUTING.md (+126 -0)
📝 README.md (+146 -173)
📝 android/README.md (+25 -16)
📝 android/app/build.gradle (+5 -2)
📝 android/app/src/main/java/com/marinara/engine/MainActivity.java (+1 -1)
📝 android/build-apk.sh (+8 -2)
➖ installer/Marinara-Engine-Installer-1.3.0.exe (+0 -0)
➖ installer/Marinara-Engine-Installer-1.4.0.exe (+0 -0)
➖ installer/Marinara-Engine-Installer-1.4.6.exe (+0 -0)
📝 installer/install.bat (+7 -5)
📝 installer/installer.nsi (+1 -1)
📝 package.json (+6 -2)
📝 packages/client/package.json (+1 -0)
📝 packages/client/src/App.tsx (+10 -3)
📝 packages/client/src/components/chat/ChatMessage.tsx (+0 -2)

...and 30 more files

📄 Description

Summary

This PR implements the comprehensive optimization roadmap in one branch:

  • hardens runtime config loading and env resolution
  • aligns startup behavior across pnpm start, shell launchers, Termux, Docker, and the Android wrapper
  • adds contributor/release guardrails (pnpm check, PR CI, version drift tooling, canonical changelog/docs)
  • reduces eager client load with lazy boundaries and small decomposition cleanup

What changed

  • Added a runtime config layer so .env is loaded before env-sensitive reads, relative SQLite paths resolve from the repo root, and existing installs keep working via a legacy data-dir fallback.
  • Limited SPA fallback to non-API routes so unknown /api/* requests now return JSON 404.
  • Standardized launcher behavior around resolved PORT, pinned pnpm, and consistent browser auto-open handling.
  • Aligned the Android wrapper to the same default port contract with a build-time MARINARA_PORT override.
  • Added pnpm check, version sync/drift scripts, and a PR workflow that runs project checks plus version drift validation.
  • Removed committed installer binaries from source control and rely on releases for published artifacts.
  • Split key client surfaces behind lazy boundaries to cut the eager entry bundle and remove the current Vite chunk-size warning.
  • Refreshed contributor, maintainer, changelog, and platform documentation to match current behavior.

Validation

  • pnpm check
  • pnpm version:check

User-facing notes

  • Existing installs should not lose data when moving to the repo-root default data location because the server now falls back to the legacy packages/server/data path when needed.
  • GIF search is now opt-in. If GIPHY_API_KEY is unset, the picker shows that GIF search is unavailable instead of using an embedded shared key.
  • Bare pnpm start still defaults to HOST=127.0.0.1; the shell launchers still default to HOST=0.0.0.0.
  • If someone builds a custom Android APK with a non-default PORT, they must build the wrapper with matching MARINARA_PORT.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/42 **Author:** [@TheLonelyDevil9](https://github.com/TheLonelyDevil9) **Created:** 4/1/2026 **Status:** ✅ Merged **Merged:** 4/1/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `pr/comprehensive-optimization-roadmap` --- ### 📝 Commits (4) - [`8f1e8c6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8f1e8c6e377358de6ff97f270fb8e9fca8cb8352) docs: refresh contributor and release documentation - [`a3b6988`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a3b6988ea5df26e58e85e386aad3b7d2e5fc19e9) feat: align runtime config, tooling, and client loading - [`a5d1f06`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a5d1f06d225c3fcb6d58a7fbd50438fc15055d43) ci: install pnpm before enabling cache - [`4ae0b98`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4ae0b98ccabafe2d0ac3b3c9ad9dda5d4704865d) ci: make server lint build shared types first ### 📊 Changes **50 files changed** (+1591 additions, -628 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+5 -3) ➕ `.github/workflows/pull-request-checks.yml` (+33 -0) 📝 `.gitignore` (+3 -0) ➕ `CHANGELOG.md` (+58 -0) ➕ `CLAUDE.md` (+41 -0) ➕ `CONTRIBUTING.md` (+126 -0) 📝 `README.md` (+146 -173) 📝 `android/README.md` (+25 -16) 📝 `android/app/build.gradle` (+5 -2) 📝 `android/app/src/main/java/com/marinara/engine/MainActivity.java` (+1 -1) 📝 `android/build-apk.sh` (+8 -2) ➖ `installer/Marinara-Engine-Installer-1.3.0.exe` (+0 -0) ➖ `installer/Marinara-Engine-Installer-1.4.0.exe` (+0 -0) ➖ `installer/Marinara-Engine-Installer-1.4.6.exe` (+0 -0) 📝 `installer/install.bat` (+7 -5) 📝 `installer/installer.nsi` (+1 -1) 📝 `package.json` (+6 -2) 📝 `packages/client/package.json` (+1 -0) 📝 `packages/client/src/App.tsx` (+10 -3) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+0 -2) _...and 30 more files_ </details> ### 📄 Description ## Summary This PR implements the comprehensive optimization roadmap in one branch: - hardens runtime config loading and env resolution - aligns startup behavior across pnpm start, shell launchers, Termux, Docker, and the Android wrapper - adds contributor/release guardrails (pnpm check, PR CI, version drift tooling, canonical changelog/docs) - reduces eager client load with lazy boundaries and small decomposition cleanup ## What changed - Added a runtime config layer so .env is loaded before env-sensitive reads, relative SQLite paths resolve from the repo root, and existing installs keep working via a legacy data-dir fallback. - Limited SPA fallback to non-API routes so unknown /api/* requests now return JSON 404. - Standardized launcher behavior around resolved PORT, pinned pnpm, and consistent browser auto-open handling. - Aligned the Android wrapper to the same default port contract with a build-time MARINARA_PORT override. - Added pnpm check, version sync/drift scripts, and a PR workflow that runs project checks plus version drift validation. - Removed committed installer binaries from source control and rely on releases for published artifacts. - Split key client surfaces behind lazy boundaries to cut the eager entry bundle and remove the current Vite chunk-size warning. - Refreshed contributor, maintainer, changelog, and platform documentation to match current behavior. ## Validation - pnpm check - pnpm version:check ## User-facing notes - Existing installs should not lose data when moving to the repo-root default data location because the server now falls back to the legacy packages/server/data path when needed. - GIF search is now opt-in. If GIPHY_API_KEY is unset, the picker shows that GIF search is unavailable instead of using an embedded shared key. - Bare pnpm start still defaults to HOST=127.0.0.1; the shell launchers still default to HOST=0.0.0.0. - If someone builds a custom Android APK with a non-default PORT, they must build the wrapper with matching MARINARA_PORT. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:07:23 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4413
No description provided.