Slim subagent runtime surface and remove legacy interfaces

This commit is contained in:
LPF
2026-03-17 13:41:12 +08:00
parent 341e578c9f
commit 0674d85ae1
76 changed files with 778 additions and 8782 deletions

View File

@@ -1,7 +1,6 @@
[CmdletBinding()]
param(
[string]$Output = "build/clawgo-windows-amd64-slim.exe",
[switch]$EmbedWebUI,
[switch]$Compress
)
@@ -10,7 +9,6 @@ $ErrorActionPreference = "Stop"
$repoRoot = Split-Path -Parent $PSScriptRoot
$embedDir = Join-Path $repoRoot "cmd/workspace"
$workspaceDir = Join-Path $repoRoot "workspace"
$webuiDistDir = Join-Path $repoRoot "webui/dist"
$outputPath = Join-Path $repoRoot $Output
function Copy-DirectoryContents {
@@ -33,14 +31,6 @@ try {
Copy-DirectoryContents -Source $workspaceDir -Destination $embedDir
if ($EmbedWebUI) {
if (-not (Test-Path $webuiDistDir)) {
throw "EmbedWebUI was requested, but WebUI dist is missing: $webuiDistDir"
}
$embedWebuiDir = Join-Path $embedDir "webui"
Copy-DirectoryContents -Source $webuiDistDir -Destination $embedWebuiDir
}
New-Item -ItemType Directory -Force -Path (Split-Path -Parent $outputPath) | Out-Null
$env:CGO_ENABLED = "0"