mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-04-29 08:51:30 +00:00
Compare commits
4 Commits
main
...
feature/up
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b0d8ea402c | ||
|
|
2611a2744c | ||
|
|
a20f6b8af4 | ||
|
|
be08149e4a |
1024
package-lock.json
generated
1024
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -65,7 +65,7 @@
|
|||||||
"author": "CloudCLI UI Contributors",
|
"author": "CloudCLI UI Contributors",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@anthropic-ai/claude-agent-sdk": "^0.2.59",
|
"@anthropic-ai/claude-agent-sdk": "^0.2.116",
|
||||||
"@codemirror/lang-css": "^6.3.1",
|
"@codemirror/lang-css": "^6.3.1",
|
||||||
"@codemirror/lang-html": "^6.4.9",
|
"@codemirror/lang-html": "^6.4.9",
|
||||||
"@codemirror/lang-javascript": "^6.2.4",
|
"@codemirror/lang-javascript": "^6.2.4",
|
||||||
|
|||||||
@@ -149,9 +149,15 @@ function mapCliOptionsToSDK(options = {}) {
|
|||||||
|
|
||||||
const sdkOptions = {};
|
const sdkOptions = {};
|
||||||
|
|
||||||
if (process.env.CLAUDE_CLI_PATH) {
|
// Forward all host env vars (e.g. ANTHROPIC_BASE_URL) to the subprocess.
|
||||||
sdkOptions.pathToClaudeCodeExecutable = process.env.CLAUDE_CLI_PATH;
|
// Since SDK 0.2.113, options.env replaces process.env instead of overlaying it.
|
||||||
}
|
sdkOptions.env = { ...process.env };
|
||||||
|
|
||||||
|
// Use CLAUDE_CLI_PATH if explicitly set, otherwise fall back to 'claude' on PATH.
|
||||||
|
// The SDK 0.2.113+ looks for a bundled native binary optional dep by default;
|
||||||
|
// this fallback ensures users who installed via the official installer still work
|
||||||
|
// even when npm prune --production has removed those optional deps.
|
||||||
|
sdkOptions.pathToClaudeCodeExecutable = process.env.CLAUDE_CLI_PATH || 'claude';
|
||||||
|
|
||||||
// Map working directory
|
// Map working directory
|
||||||
if (cwd) {
|
if (cwd) {
|
||||||
|
|||||||
@@ -4,10 +4,13 @@
|
|||||||
"module": "NodeNext",
|
"module": "NodeNext",
|
||||||
"moduleResolution": "NodeNext",
|
"moduleResolution": "NodeNext",
|
||||||
"lib": ["ES2022"],
|
"lib": ["ES2022"],
|
||||||
"baseUrl": ".",
|
// baseUrl is the project root (one level above this config file) so that tsc-alias
|
||||||
|
// resolves @/ imports relative to the compiled output structure in dist-server/server/.
|
||||||
|
// With rootDir ".." tsc emits server files under dist-server/server/, so paths must
|
||||||
|
// include the "server/" prefix to match that layout.
|
||||||
|
"baseUrl": "..",
|
||||||
"paths": {
|
"paths": {
|
||||||
// In the backend config, "@" maps to the /server directory itself.
|
"@/*": ["server/*"]
|
||||||
"@/*": ["*"]
|
|
||||||
},
|
},
|
||||||
// The backend is still mostly JavaScript today, so allowJs lets us add a real
|
// The backend is still mostly JavaScript today, so allowJs lets us add a real
|
||||||
// TypeScript build without forcing a large rename before the tooling is usable.
|
// TypeScript build without forcing a large rename before the tooling is usable.
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ export const CLAUDE_MODELS = {
|
|||||||
{ value: "sonnet", label: "Sonnet" },
|
{ value: "sonnet", label: "Sonnet" },
|
||||||
{ value: "opus", label: "Opus" },
|
{ value: "opus", label: "Opus" },
|
||||||
{ value: "haiku", label: "Haiku" },
|
{ value: "haiku", label: "Haiku" },
|
||||||
|
{ value: "claude-opus-4-6", label: "Opus 4.6" },
|
||||||
{ value: "opusplan", label: "Opus Plan" },
|
{ value: "opusplan", label: "Opus Plan" },
|
||||||
{ value: "sonnet[1m]", label: "Sonnet [1M]" },
|
{ value: "sonnet[1m]", label: "Sonnet [1M]" },
|
||||||
{ value: "opus[1m]", label: "Opus [1M]" },
|
{ value: "opus[1m]", label: "Opus [1M]" },
|
||||||
|
|||||||
Reference in New Issue
Block a user