Fix kimi install error masking, prompt flag, and setup default hop
The official installer downloads to a temp file so curl failures cannot be masked by the pipe; Kimi prompts use --prompt per the CLI reference; the AI Hub wizard now offers omarchy-cn-ai-default for claude-code/codex profiles so the combo really becomes the default agent. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QKxGW1raAWaqeU8WdHsMsp
This commit is contained in:
+1
-1
@@ -101,7 +101,7 @@ pi)
|
||||
;;
|
||||
kimi)
|
||||
command=(kimi)
|
||||
[[ -n ${prompt:-} ]] && command+=("$prompt")
|
||||
[[ -n ${prompt:-} ]] && command+=(--prompt "$prompt")
|
||||
;;
|
||||
deepcode)
|
||||
command=(deepcode)
|
||||
|
||||
@@ -73,4 +73,10 @@ fi
|
||||
|
||||
rm -f "$profile_file.omarchycn-prev"
|
||||
omarchy-cn-ai-profile-use "$name"
|
||||
|
||||
if [[ $harness == "claude-code" || $harness == "codex" ]]; then
|
||||
if gum confirm "设为系统默认 Agent(Super+Shift+Ctrl+A)?"; then
|
||||
omarchy-cn-ai-default "$name"
|
||||
fi
|
||||
fi
|
||||
echo "完成。启动: omarchycn ai launch"
|
||||
|
||||
@@ -50,10 +50,13 @@ if [[ $agent == "kimi" ]]; then
|
||||
if [[ $installing == "false" ]]; then
|
||||
exec omarchy-launch-floating-terminal-with-presentation omarchy-default-agent --install kimi
|
||||
fi
|
||||
if ! curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash; then
|
||||
installer=$(mktemp)
|
||||
if ! curl -fsSL https://code.kimi.com/kimi-code/install.sh -o "$installer" || ! bash "$installer"; then
|
||||
rm -f "$installer"
|
||||
echo "Could not install $name with the official installer" >&2
|
||||
exit 1
|
||||
fi
|
||||
rm -f "$installer"
|
||||
fi
|
||||
else
|
||||
if [[ $installing == "false" ]] && ! mise where "$agent_package" &>/dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user