Add Cloud Agent development environment for the Server component - #2
Draft
kebkfdbbd wants to merge 1 commit into
Draft
Add Cloud Agent development environment for the Server component#2kebkfdbbd wants to merge 1 commit into
kebkfdbbd wants to merge 1 commit into
Conversation
Co-authored-by: køkkeligk <kebkfdbbd@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 repository-managed Cloud Agent environment (
.cursor/environment.json) so this repo is usable in Cloud Agents.Important scoping note
The primary product — GitHub Copilot for Xcode — is a macOS/Xcode app (
platforms: [.macOS(.v13)], AppKit, XPC, Sparkle) that CI builds onmacos-latestwithxcodebuild. It cannot be built or run on a Linux Cloud Agent VM (no macOS SDK / Xcode). Therefore this environment is scoped to the only part of the repo that builds end-to-end on Linux: the Node/TypeScriptServer/component (the WebKit-hostedterminalanddiffViewUI bundles + language-server packaging).What the environment does
installruns from/workspace:--forceis required becauseServer/package.jsonpins darwin-only@github/copilot-language-server-darwin-*binaries as hard dependencies; on Linuxnpm cifails withEBADPLATFORM.--forceinstalls the JS packages anyway. The webpack bundles (terminal,diffView) don't import those binaries, so the build is unaffected.Validation
npm ci --force+npm run buildsucceed on the default base image (validated on this VM and in a fresh draft environment build).terminalbundle renders an xterm.js terminal andwindow.writeToTerminal()works;diffViewMonaco bundle loads with no console errors.