feat: switch to opencode
This commit is contained in:
@@ -18,10 +18,9 @@ files beneath it and install command wrappers or symlinks into `$DEV_TOOLS_DIR/b
|
||||
directory is prepended to implementation agents' `PATH`. Environment changes made by a script do
|
||||
not persist into implementation turns.
|
||||
|
||||
The supplied `dotnet` wrapper keeps the SDK itself in `DEV_TOOLS_DIR`, but places the writable
|
||||
.NET CLI home and NuGet package cache under `/tmp`. Codex implementation sandboxes do not expose a
|
||||
normal user home and receive read-only access to installed tools, so runtime caches cannot live
|
||||
beside the SDK.
|
||||
The supplied `dotnet` wrapper keeps the SDK itself in `DEV_TOOLS_DIR` and places writable CLI state
|
||||
and NuGet caches under `DEV_TOOLS_DIR/runtime/dotnet`. OpenCode's own home is deliberately read-only
|
||||
so it cannot be used to persist global agent configuration.
|
||||
|
||||
The configured scripts run in list order after the repository is cloned (or an existing agent PR
|
||||
branch is synchronized) and before the first implementation turn for `implement`, `iterate`, and
|
||||
|
||||
@@ -6,6 +6,7 @@ set -eu
|
||||
|
||||
install_dir="$DEV_TOOLS_DIR/dotnet"
|
||||
bin_dir="$DEV_TOOLS_DIR/bin"
|
||||
runtime_dir="$DEV_TOOLS_DIR/runtime/dotnet"
|
||||
installer=$(mktemp)
|
||||
trap 'rm -f "$installer"' EXIT
|
||||
|
||||
@@ -25,9 +26,9 @@ PYTHON
|
||||
printf '%s\n' \
|
||||
'#!/bin/sh' \
|
||||
"export DOTNET_ROOT='$install_dir'" \
|
||||
'export DOTNET_CLI_HOME="${DOTNET_CLI_HOME:-/tmp/agentci-dotnet}"' \
|
||||
'export NUGET_PACKAGES="${NUGET_PACKAGES:-/tmp/agentci-nuget/packages}"' \
|
||||
'export NUGET_HTTP_CACHE_PATH="${NUGET_HTTP_CACHE_PATH:-/tmp/agentci-nuget/http-cache}"' \
|
||||
"export DOTNET_CLI_HOME='$runtime_dir/home'" \
|
||||
"export NUGET_PACKAGES='$runtime_dir/nuget/packages'" \
|
||||
"export NUGET_HTTP_CACHE_PATH='$runtime_dir/nuget/http-cache'" \
|
||||
'export HOME="$DOTNET_CLI_HOME"' \
|
||||
'export DOTNET_CLI_TELEMETRY_OPTOUT=1' \
|
||||
'export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1' \
|
||||
|
||||
Reference in New Issue
Block a user