Add Cloud Agent development environment config - #12
Draft
Variiuz wants to merge 1 commit into
Draft
Conversation
Co-authored-by: Alex. <Variiuz@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Cloud Agent development environment for CommonwealthMP so agents can build and test the dedicated server end to end on Linux.
.cursor/environment.jsonwith an idempotentinstallthat configures and builds the server via CMake..gitignorenow tracks.cursor/environment.jsonwhile keeping the rest of.cursor/ignored.Details
The Linux-buildable surface is the dedicated server plus its test tooling (
server/,tools/probe/,tests/). The Windows-only F4SE plugin and thecommonlibf4submodule are not needed for this build, soinstallskips submodule fetch and stays network-independent.The default base image already ships CMake 3.28, GCC 13 (C++20), and Git. The default
c++/ccis a Clang that resolves the GCC 14 toolchain dir, where the C++ dev libs are absent (cannot find -lstdc++). The install command therefore pins-DCMAKE_CXX_COMPILER=g++, which matches the compiler the Linux CI job effectively uses.install:No
start/terminalsare configured because the server is launched on demand during testing rather than as a persistent dev service.Validation
On the working VM:
dist/server/CommonwealthMP.Serverproduced.ctestfull suite: 33/33 passed.Hello NEW ... peer=1 host=1handshake and repliedtx Welcome peer=1, probe exited 0.installrun twice: idempotent (no rebuild on the second run).In a fresh Cloud Agent booted from a prebuilt environment build of this branch:
/workspace/dist/server/CommonwealthMP.Server.Hello -> Welcomehandshake completed end to end.Checklist
protocol/)No protocol, server, or documented command/flow changed; this PR only adds environment configuration.