feat(deepseek api): add balance query and API key management

Add pj deepseek command to query account balance and
pj deepseek setkey to store API key in local cache.

Also extract Python launcher into its own module (pj_python.nu)
and add common aliases (g, c, tree, myip, ports, df, reload, edit).
This commit is contained in:
2026-06-14 11:10:16 +08:00
parent 1b801ef121
commit 727e4977f8
4 changed files with 90 additions and 11 deletions
+10
View File
@@ -0,0 +1,10 @@
# Python launcher: prefer `py` (Windows launcher), fallback to `python3`
export def py [...rest: string] {
if (which ^py | is-not-empty) {
^py ...$rest
} else if (which ^python3 | is-not-empty) {
^python3 ...$rest
} else {
print "Error: Python is not installed or could not be found."
}
}