chore(release): update version to 0.4.0-rc.1

This commit is contained in:
Nathan Flurry 2026-03-15 20:34:01 -07:00
parent cf7e2a92c6
commit 2f9f25ae54
28 changed files with 72 additions and 40 deletions

View file

@ -1,6 +1,6 @@
{
"name": "sandbox-agent",
"version": "0.3.2",
"version": "0.4.0-rc.1",
"description": "Universal API for automatic coding agents in sandboxes. Supports Claude Code, Codex, OpenCode, and Amp.",
"license": "Apache-2.0",
"repository": {

View file

@ -2637,13 +2637,13 @@ function deriveModesFromConfigOptions(configOptions: SessionConfigOption[] | und
}
const modeOption = findConfigOptionByCategory(configOptions, "mode");
if (!modeOption || !Array.isArray(modeOption.options)) {
if (!modeOption || modeOption.type !== "select" || !Array.isArray(modeOption.options)) {
return null;
}
const availableModes = modeOption.options
.flatMap((entry) => flattenConfigOptions(entry))
.map((entry) => ({
.flatMap((entry: unknown) => flattenConfigOptions(entry))
.map((entry: { value: string; name: string; description?: string }) => ({
id: entry.value,
name: entry.name,
description: entry.description ?? null,
@ -2674,7 +2674,7 @@ function applyConfigOptionValue(configOptions: SessionConfigOption[], configId:
return null;
}
const updated = cloneConfigOptions(configOptions) ?? [];
updated[idx] = { ...updated[idx]!, currentValue: value };
updated[idx] = { ...updated[idx]!, currentValue: value } as SessionConfigOption;
return updated;
}