Complete agent monitoring and Galaxy Control integration
- expose command-monitor conversations and preserve visible agent transcripts - add bounded polling and a dedicated shell interrupt tool - improve direct-provider images, skills, tool history, and usage handling - package and brand Galaxy Control across releases, installers, persistence, and docs
This commit is contained in:
+27
-31
@@ -14,11 +14,11 @@ Param (
|
||||
|
||||
[Alias('release-tag')]
|
||||
[String]$RELEASE_TAG = '',
|
||||
[String]$FEATURES = 'release_bundle,crash_reporting,gui',
|
||||
[String]$FEATURES = 'release_bundle,gui',
|
||||
|
||||
# Builds only the Warp binary, skips the installer.
|
||||
# Builds only the Galaxy binary, skips the installer.
|
||||
[Switch]$SKIP_BUILD_INSTALLER = $False,
|
||||
# Builds only the installer, skips the Warp binary. Use this if the Warp
|
||||
# Builds only the installer, skips the Galaxy binary. Use this if the Galaxy
|
||||
# binary has already been built.
|
||||
[Switch]$SKIP_BUILD_BINARY = $False,
|
||||
|
||||
@@ -52,7 +52,7 @@ if ($ARCH -eq 'arm64') {
|
||||
$FILE_ENDING = 'Setup-arm64'
|
||||
$PLATFORM_TARGET = 'aarch64-pc-windows-msvc'
|
||||
} else {
|
||||
# If x64, then we just use the filename "WarpSetup.exe" for example
|
||||
# If x64, then we just use the filename "GalaxySetup.exe" for example
|
||||
$FILE_ENDING = 'Setup'
|
||||
$PLATFORM_TARGET = 'x86_64-pc-windows-msvc'
|
||||
}
|
||||
@@ -79,39 +79,35 @@ if ($CARGO_PROFILE -eq 'dev') {
|
||||
} else {
|
||||
$CARGO_TARGET_OUTPUT_DIR = "$CARGO_TARGET_DIR" + '\' + $PLATFORM_TARGET + '\' + "$CARGO_PROFILE"
|
||||
}
|
||||
$BUNDLE_ID = "dev.warp.$app_name"
|
||||
|
||||
# Update parameters based on the target release channel.
|
||||
#
|
||||
# APP_NAME here must match the value used in Rust as the
|
||||
# application name; see app/src/channel.rs.
|
||||
#
|
||||
# WARP_BIN is the name of the binary produced by cargo;
|
||||
# GALAXY_BIN is the name of the binary produced by cargo;
|
||||
# BINARY_NAME is the desired name of the binary in the final package.
|
||||
if ("$CHANNEL" -eq 'local') {
|
||||
$WARP_BIN = 'warp'
|
||||
$BINARY_NAME = 'warp.exe'
|
||||
$GALAXY_BIN = 'galaxy-local'
|
||||
$BINARY_NAME = 'galaxy-local.exe'
|
||||
$APP_NAME = 'GalaxyLocal'
|
||||
} elseif ("$CHANNEL" -eq 'dev') {
|
||||
$WARP_BIN = 'dev'
|
||||
$BINARY_NAME = 'dev.exe'
|
||||
$GALAXY_BIN = 'galaxy-dev'
|
||||
$BINARY_NAME = 'galaxy-dev.exe'
|
||||
$APP_NAME = 'GalaxyDev'
|
||||
$FEATURES = "$FEATURES,agent_mode_debug"
|
||||
} elseif ("$CHANNEL" -eq 'preview') {
|
||||
$WARP_BIN = 'preview'
|
||||
$BINARY_NAME = 'preview.exe'
|
||||
$GALAXY_BIN = 'galaxy-preview'
|
||||
$BINARY_NAME = 'galaxy-preview.exe'
|
||||
$APP_NAME = 'GalaxyPreview'
|
||||
$FEATURES = "$FEATURES,preview_channel"
|
||||
} elseif ("$CHANNEL" -eq 'stable') {
|
||||
$WARP_BIN = 'stable'
|
||||
$BINARY_NAME = 'warp.exe'
|
||||
$GALAXY_BIN = 'stable'
|
||||
$BINARY_NAME = 'galaxy.exe'
|
||||
$APP_NAME = 'Galaxy'
|
||||
} elseif ("$CHANNEL" -eq 'oss') {
|
||||
$WARP_BIN = 'warp-oss'
|
||||
$BINARY_NAME = 'warp-oss.exe'
|
||||
$GALAXY_BIN = 'galaxy-oss'
|
||||
$BINARY_NAME = 'galaxy-oss.exe'
|
||||
$APP_NAME = 'GalaxyOss'
|
||||
# The OSS channel does not ship Sentry, so drop the crash_reporting feature
|
||||
# (which would otherwise pull in the Sentry SDK as a dependency).
|
||||
$FEATURES = 'release_bundle,gui'
|
||||
}
|
||||
|
||||
@@ -119,11 +115,11 @@ if ("$CHANNEL" -eq 'local') {
|
||||
$FEATURES = "$FEATURES,nld_classifier_v3,nld_heuristic_v2"
|
||||
|
||||
$BINARY_PATH = "$CARGO_TARGET_OUTPUT_DIR\$BINARY_NAME"
|
||||
$BUNDLE_ID = "dev.warp.$APP_NAME"
|
||||
$BUNDLE_ID = "samsung.galaxy.$APP_NAME"
|
||||
$INSTALLER_OUTPUT_DIR = "$WINDOWS_INSTALLER_DIR\Output"
|
||||
$INSTALLER_NAME = "$($APP_NAME)$($FILE_ENDING)"
|
||||
$INSTALLER_PATH = "$($INSTALLER_OUTPUT_DIR)\$($INSTALLER_NAME).exe"
|
||||
$PDB_PATH = "$CARGO_TARGET_OUTPUT_DIR\$WARP_BIN.pdb"
|
||||
$PDB_PATH = "$CARGO_TARGET_OUTPUT_DIR\$GALAXY_BIN.pdb"
|
||||
|
||||
# The CARGO_FULL_PROFILE environment variable is read by the `cargo` build
|
||||
# script (`app/build.rs`) to determine where to place `conpty.dll`.
|
||||
@@ -137,28 +133,28 @@ if ($DEBUG_BUILD) {
|
||||
# then exit. We use this script to invoke `cargo check` to ensure that we are
|
||||
# using the same feature flags and profile that we would be using in production.
|
||||
if ($CHECK_ONLY) {
|
||||
cargo check -p warp --profile "$CARGO_PROFILE" --bin "$WARP_BIN" --features "$FEATURES" --target $PLATFORM_TARGET
|
||||
cargo check -p galaxy --profile "$CARGO_PROFILE" --bin "$GALAXY_BIN" --features "$FEATURES" --target $PLATFORM_TARGET
|
||||
if (-Not $?) {
|
||||
Write-Error "Failed to verify Warp $WARP_BIN compilation with profile $CARGO_PROFILE"
|
||||
Write-Error "Failed to verify Galaxy $GALAXY_BIN compilation with profile $CARGO_PROFILE"
|
||||
exit 1
|
||||
}
|
||||
exit 0
|
||||
}
|
||||
|
||||
if (-Not $SKIP_BUILD_BINARY) {
|
||||
Write-Output "Building Warp for channel $CHANNEL and bundle id $BUNDLE_ID"
|
||||
Write-Output "Building Galaxy for channel $CHANNEL and bundle id $BUNDLE_ID"
|
||||
$env:CARGO_BIN_NAME = $CHANNEL
|
||||
$env:WARP_APP_NAME = $APP_NAME
|
||||
cargo build -p warp --profile "$CARGO_PROFILE" --bin "$WARP_BIN" --features "$FEATURES" --target $PLATFORM_TARGET
|
||||
$env:GALAXY_APP_NAME = $APP_NAME
|
||||
cargo build -p galaxy --profile "$CARGO_PROFILE" --bin "$GALAXY_BIN" --features "$FEATURES" --target $PLATFORM_TARGET
|
||||
if (-Not $?) {
|
||||
Write-Error "Failed to build Warp $WARP_BIN binary with profile $CARGO_PROFILE"
|
||||
Write-Error "Failed to build Galaxy $GALAXY_BIN binary with profile $CARGO_PROFILE"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# If we desire an executable name different from the cargo bin, rename it.
|
||||
if ("$WARP_BIN.exe" -ne $BINARY_NAME) {
|
||||
$binarySource = "$CARGO_TARGET_OUTPUT_DIR\$WARP_BIN.exe"
|
||||
Write-Output "Renaming executable $WARP_BIN.exe to $BINARY_NAME"
|
||||
if ("$GALAXY_BIN.exe" -ne $BINARY_NAME) {
|
||||
$binarySource = "$CARGO_TARGET_OUTPUT_DIR\$GALAXY_BIN.exe"
|
||||
Write-Output "Renaming executable $GALAXY_BIN.exe to $BINARY_NAME"
|
||||
Move-Item -Path "$binarySource" -Destination "$BINARY_PATH" -Force
|
||||
}
|
||||
}
|
||||
@@ -186,7 +182,7 @@ if (-Not $?) {
|
||||
exit 1
|
||||
}
|
||||
|
||||
Write-Output 'Building Warp installer'
|
||||
Write-Output 'Building Galaxy installer'
|
||||
$ISCC_ARGS = @(
|
||||
"$WINDOWS_INSTALLER_DIR\windows-installer.iss",
|
||||
"/DReleaseChannel=$CHANNEL",
|
||||
|
||||
Reference in New Issue
Block a user