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:
2026-08-25 11:01:50 -04:00
co-authored by Claude Fable 5
parent 8ce169f7fa
commit 907f7b81aa
3 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ pi)
;;
kimi)
command=(kimi)
[[ -n ${prompt:-} ]] && command+=("$prompt")
[[ -n ${prompt:-} ]] && command+=(--prompt "$prompt")
;;
deepcode)
command=(deepcode)
+6
View File
@@ -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 "设为系统默认 AgentSuper+Shift+Ctrl+A)?"; then
omarchy-cn-ai-default "$name"
fi
fi
echo "完成。启动: omarchycn ai launch"
+4 -1
View File
@@ -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