stack/stack.config.ts
mantrakp04 f8fcf9dd8a Squashed commit of the following:
commit 5d43722575b826a8ed8dbb6b828f48eae4bca02c
Author: mantrakp04 <mantrakp@gmail.com>
Date:   Wed Mar 18 12:27:01 2026 -0700

    Add QEMU emulator snapshot functionality and reset command

    - Introduced a new `emulator-qemu:reset` command in package.json to clear snapshots and force a fresh boot of the emulator.
    - Enhanced the `run-emulator.sh` script to support saving and restoring snapshots, significantly reducing restart time from ~62s to ~4s.
    - Implemented logic to check for existing snapshots and restore them during startup, improving the emulator's efficiency.
    - Updated documentation in CLAUDE-KNOWLEDGE.md to explain the new snapshot restore process and its benefits.

    These changes enhance the QEMU emulator's performance and usability for developers, providing a more efficient workflow during development.

commit 3877445bdd83cb8690da18c8520bf260d2795172
Author: mantrakp04 <mantrakp@gmail.com>
Date:   Wed Mar 18 11:55:18 2026 -0700

    Enhance QEMU emulator performance and configuration management

    - Added optimizations to the QEMU emulator's app container startup process, reducing startup time from ~92s to ~62s by using qcow2 backing files and setting the working directory to /app.
    - Updated the build-image.sh script to conditionally wait for background processes, improving robustness.
    - Modified the run-emulator.sh script to create the disk image using qcow2 format instead of copying, enhancing efficiency.
    - Adjusted the cloud-init user-data to set STACK_RUNTIME_WORK_DIR to /app, streamlining file operations during container initialization.
    - Improved the entrypoint script to avoid unnecessary file copying when the working directory is set to /app.

    These changes significantly enhance the performance and usability of the QEMU emulator for developers.

commit e0b86d3f1d5c08e46d0d343bc632e2a8c5777845
Author: mantrakp04 <mantrakp@gmail.com>
Date:   Wed Mar 18 11:07:55 2026 -0700

    Refactor local emulator configuration management and enhance Docker setup

    - Removed redundant comments and improved code clarity in the local emulator's route handling.
    - Streamlined the Dockerfile and docker-compose.yaml for better readability and maintenance.
    - Updated entrypoint and initialization scripts to enhance service startup processes.
    - Introduced a new common script for QEMU emulator to centralize architecture detection and firmware handling.
    - Enhanced error handling in the host file bridge for improved robustness.
    - Removed obsolete country code utilities to clean up the codebase.

    These changes significantly improve the local emulator's configuration management and overall setup experience for developers.

commit 4fb0f93c6cc4f749a14acf0228c261e180875609
Author: mantrakp04 <mantrakp@gmail.com>
Date:   Wed Mar 18 10:24:53 2026 -0700

    Implement local emulator file bridge for enhanced configuration management

    - Introduced a new host file bridge to facilitate reading and writing configuration files between the local emulator and the host system.
    - Refactored the local-emulator module to utilize the file bridge for file operations, improving error handling and response validation.
    - Added tests to ensure the file bridge functionality works as expected, including handling of non-existent files and writing configurations.
    - Updated the run-emulator script to start the file bridge automatically, ensuring seamless integration during emulator startup.
    - Enhanced documentation to reflect the new file bridge capabilities and usage instructions.

    These changes significantly improve the local emulator's ability to manage configuration files, enhancing the development experience.

commit 3d18a7ce5bbf00a62a40a3f48f27856e79ecc62f
Author: mantrakp04 <mantrakp@gmail.com>
Date:   Tue Mar 17 22:36:46 2026 -0700

    Refactor QEMU local emulator setup and enhance app bundle handling

    - Introduced a new script for packaging Docker images into a compressed app bundle, improving the emulator's deployment process.
    - Updated build-image.sh to create a runtime configuration ISO, ensuring better management of environment settings.
    - Enhanced cloud-init user-data scripts for both dev-server and deps guests, streamlining service setup and configuration.
    - Improved the run-emulator.sh script to facilitate better handling of runtime configurations and dependencies.
    - Adjusted the .gitignore to include .DS_Store and removed obsolete entries, cleaning up the repository.

    These changes significantly enhance the local emulator's functionality and reliability for developers.

commit 8a35fb1ce79898d73e2259e256c11b6fd9b0a584
Author: mantrakp04 <mantrakp@gmail.com>
Date:   Tue Mar 17 21:52:24 2026 -0700

    Enhance local emulator functionality and configuration

    - Updated package.json to improve the start-emulator command, providing clearer dashboard and backend URLs.
    - Added a new wait-until-emulator-is-ready command to ensure the emulator is fully operational before proceeding.
    - Refactored the local-emulator project route to streamline file existence checks and default config creation.
    - Enhanced user guidance in the dashboard for local Stack config file handling.
    - Updated tests to reflect changes in config file handling, ensuring non-existent files are created with default settings.
    - Improved Docker configurations for the local emulator, including new environment variables and service dependencies.

    These changes significantly enhance the local development experience and emulator reliability.

commit 3910ed4bc40bbb37340c1c316c24c2826ba372bd
Author: mantrakp04 <mantrakp@gmail.com>
Date:   Tue Mar 17 19:59:36 2026 -0700

    Remove unused stash-0.patch file to clean up the repository.

commit 74146d974458037a7a9590120a524629a1a6a162
Author: mantrakp04 <mantrakp@gmail.com>
Date:   Tue Mar 17 19:58:46 2026 -0700

    Enhance QEMU local emulator with app bundle support and runtime configuration

    - Introduced a new script to package the backend and dashboard assets into a standalone app bundle for the QEMU emulator.
    - Updated the build-image.sh script to create an ISO containing the app bundle, ensuring the guest image includes the full runtime.
    - Modified cloud-init user-data to handle the new app bundle and runtime configuration, improving the setup process for local development.
    - Enhanced the run-emulator.sh script to prepare and mount the runtime configuration ISO, facilitating better environment management for the emulator.
    - Updated the user-data to include necessary environment variables for the stack application, ensuring seamless integration during startup.

    These changes significantly improve the local emulator's functionality and ease of use for developers.

commit 9e865a1cf524398bc58f00e0836278775c4ae936
Author: mantrakp04 <mantrakp@gmail.com>
Date:   Tue Mar 17 16:50:45 2026 -0700

    Enhance local emulator setup with new services and configurations

    - Added Docker support for a local emulator, integrating PostgreSQL, Redis, Inbucket, Svix, ClickHouse, MinIO, and QStash.
    - Introduced new scripts for managing the emulator lifecycle, including build and run commands.
    - Implemented cloud-init provisioning for automatic service setup on first boot.
    - Updated package.json with new commands for emulator management and added dotenv-cli for environment variable management.
    - Added tests for OAuth authorization flow to return JSON responses.
    - Included configuration files for ClickHouse and user management.

    This commit significantly improves the local development experience by providing a comprehensive emulator environment.
2026-03-18 12:31:32 -07:00

2 lines
26 B
TypeScript