mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 09:01:17 +00:00
chore(release): update version to 0.4.0-rc.1
This commit is contained in:
parent
cf7e2a92c6
commit
2f9f25ae54
28 changed files with 72 additions and 40 deletions
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue