feat(agents): version the dsh web profile and add a proxied launcher #387

This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-10-06 00:54:30 +08:00
1 parent 975d2668a8
commit 205f7c622b
12 files changed
+226 -3

No files matched your search

+17
View File
@@ -254,6 +254,23 @@ kana mode="switch":
k3s-test mode="switch":
colmena apply {{mode}} --on '@k3s-test-*' --verbose --show-trace
# =================================================
#
# AI agent commands
#
# =================================================
# Start the dsh web UI without opening a browser, proxied via mihomo's mixed port.
[group('agents')]
dsh-web:
#!/usr/bin/env nu
# dsh's web fetch refuses a DNS answer it does not call public, and a fake-ip
# resolver answers with 198.18.0.0/15. A proxied hop lets mihomo resolve the
# origin instead, which skips that check and leaves fake-ip acceleration
# intact. The policy reaches every Node fetch the harness makes, so mihomo
# becomes a dependency for LLM, web search and HTTP MCP traffic too.
with-env { HTTPS_PROXY: "http://127.0.0.1:7897", HTTP_PROXY: "http://127.0.0.1:7897" } { ^dsh web --no-open }
# =================================================
#
# Other useful commands