chore(pi): select Pi as no-mistakes gate agent and DeepSeek V4.1 Flash default #2
No files matched your search
@@ -293,8 +293,10 @@ in
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
# kunchenguid/no-mistakes gate (git push no-mistakes) - declarative install + daemon + global config
|
# kunchenguid/no-mistakes gate (git push no-mistakes) - declarative install + daemon + global config
|
||||||
# Uses OpenCode only for pipeline steps (the opencode-go subscription), by the
|
# Uses Pi for pipeline steps (the opencode-go subscription), by the captain's
|
||||||
# captain's decision. Binary lives in ~/.no-mistakes/bin
|
# decision: Pi is a neutralization-capable gate agent, which opencode is not, so
|
||||||
|
# it is required to run the gate in firstmate's own checkout. Binary lives in
|
||||||
|
# ~/.no-mistakes/bin
|
||||||
# with symlink ~/.local/bin/no-mistakes (installer default). Do NOT npm install -g no-mistakes
|
# with symlink ~/.local/bin/no-mistakes (installer default). Do NOT npm install -g no-mistakes
|
||||||
# - that npm name is jonathanong's static-analysis tool (shadowing bug fixed 2026-09-21).
|
# - that npm name is jonathanong's static-analysis tool (shadowing bug fixed 2026-09-21).
|
||||||
home.activation.noMistakes = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
home.activation.noMistakes = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||||
@@ -308,14 +310,14 @@ in
|
|||||||
fi
|
fi
|
||||||
curl -fsSL https://raw.githubusercontent.com/kunchenguid/no-mistakes/main/docs/install.sh | sh
|
curl -fsSL https://raw.githubusercontent.com/kunchenguid/no-mistakes/main/docs/install.sh | sh
|
||||||
fi
|
fi
|
||||||
# Ensure global config selects OpenCode (idempotent - only writes if missing or still `agent: auto`)
|
# Ensure global config uses Pi (idempotent - only writes if missing or still `agent: auto`)
|
||||||
cfg="$HOME/.no-mistakes/config.yaml"
|
cfg="$HOME/.no-mistakes/config.yaml"
|
||||||
if [ -f "$cfg" ] && grep -qE '^\s*agent:\s*auto\s*$' "$cfg"; then
|
if [ -f "$cfg" ] && grep -qE '^\s*agent:\s*auto\s*$' "$cfg"; then
|
||||||
tmp="$(mktemp)"
|
tmp="$(mktemp)"
|
||||||
awk '
|
awk '
|
||||||
/^\s*agent:\s*auto\s*$/ {
|
/^\s*agent:\s*auto\s*$/ {
|
||||||
print "# Managed by dotfiles/home.nix home.activation.noMistakes";
|
print "# Managed by dotfiles/home.nix home.activation.noMistakes";
|
||||||
print "agent: [opencode]";
|
print "agent: [pi]";
|
||||||
next
|
next
|
||||||
}
|
}
|
||||||
{ print }
|
{ print }
|
||||||
@@ -323,7 +325,7 @@ in
|
|||||||
fi
|
fi
|
||||||
if [ ! -f "$cfg" ]; then
|
if [ ! -f "$cfg" ]; then
|
||||||
mkdir -p "$(dirname "$cfg")"
|
mkdir -p "$(dirname "$cfg")"
|
||||||
printf 'agent: [opencode]\n' > "$cfg"
|
printf 'agent: [pi]\n' > "$cfg"
|
||||||
fi
|
fi
|
||||||
# Ensure daemon running (launchd on macOS)
|
# Ensure daemon running (launchd on macOS)
|
||||||
"$bin" daemon restart >/dev/null 2>&1 || "$bin" daemon start >/dev/null 2>&1 || true
|
"$bin" daemon restart >/dev/null 2>&1 || "$bin" daemon start >/dev/null 2>&1 || true
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"lastChangelogVersion": "0.84.1",
|
"lastChangelogVersion": "0.87.1",
|
||||||
"theme": "rose-pine-moon",
|
"theme": "rose-pine-moon",
|
||||||
"defaultProvider": "omlx",
|
"defaultProvider": "opencode-go",
|
||||||
"defaultModel": "qwen3.6-35b",
|
"defaultModel": "deepseek-v4.1-flash",
|
||||||
"models": [
|
"models": [
|
||||||
{
|
{
|
||||||
"name": "Qwen 3.6 35B (o4-mtp)",
|
"name": "Qwen 3.6 35B (o4-mtp)",
|
||||||
|
|||||||
Reference in new issue
Block a user