Run worktree setup async and stream status
This commit is contained in:
@@ -235,15 +235,15 @@ type EnvDaemonConfig = {
|
||||
};
|
||||
|
||||
function parseEnvDaemonDefaults(): HostProfile[] {
|
||||
const envDaemons = (() => {
|
||||
const envDaemons = ((): EnvDaemonConfig[] => {
|
||||
// Primary: allow a JSON array string like
|
||||
// EXPO_PUBLIC_DAEMONS='[{"label":"Host","endpoint":"10.0.0.1:6767"}]'
|
||||
const jsonList = process.env.EXPO_PUBLIC_DAEMONS;
|
||||
if (jsonList) {
|
||||
try {
|
||||
const parsed = JSON.parse(jsonList) as EnvDaemonConfig[];
|
||||
const parsed = JSON.parse(jsonList) as unknown;
|
||||
if (Array.isArray(parsed) && parsed.length > 0) {
|
||||
return parsed;
|
||||
return parsed as EnvDaemonConfig[];
|
||||
}
|
||||
} catch (error) {
|
||||
console.warn("[DaemonRegistry] Failed to parse EXPO_PUBLIC_DAEMONS:", error);
|
||||
|
||||
@@ -1161,6 +1161,7 @@ const TOOL_NAME_MAP: Record<string, string> = {
|
||||
Bash: "Shell",
|
||||
read_file: "Read",
|
||||
apply_patch: "Edit",
|
||||
paseo_worktree_setup: "Setup",
|
||||
"agent-control.set_title": "Set title",
|
||||
"agent-control.set_branch": "Set branch",
|
||||
set_title: "Set title",
|
||||
|
||||
Reference in New Issue
Block a user