计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
leptonai【效率与协作】Use the LeptonAI Python SDK and lep CLI for NVIDIA DGX Cloud Lepton workspaces, endpoint calls, workloads, storage, secrets, ingress routing, and safe cloud-operation planning.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when the task involves the leptonai Python package, the lep CLI, or NVIDIA DGX Cloud Lepton workspace operations: endpoints, jobs, dev pods, Ray clusters, fine-tuning jobs, storage, secrets, ingress, logs, or Python endpoint clients.
Do not run live Lepton cloud mutations just because this skill is loaded. Creating, updating, stopping, deleting, uploading, downloading, setting ingress endpoints, creating secrets, or opening pod ssh requires explicit user confirmation for the single target after a read-first plan.
Install for normal use:
pip install -U leptonai
lep --help
For a source checkout or contributor context:
pip install -e .
# add tests only when needed for repo-native validation
pip install -e .[test]
Minimal Python import smoke:
import leptonai
from leptonai.client import Client, local
print(leptonai.__version__)
print(local(8080))
Safe bundled checks that do not contact Lepton:
python scripts/leptonai_smoke_check.py --groups endpoint workspace job pod ingress storage
python scripts/inspect_leptonai.py
| User task | Read next |
|---|---|
Discover lep, list command groups, classify read-only vs mutating commands, handle hidden aliases or abbreviations, scope outputs/logs | sub-skills/cli-operations/SKILL.md |
Log in, choose/switch workspaces, inspect auth state safely, build APIClient, troubleshoot 401/403/404/token/URL issues | sub-skills/workspace-and-auth/SKILL.md |
Call a deployed endpoint from Python, inspect OpenAPI-derived Client paths, build SDK scripts with v2 API resources or Pydantic specs | sub-skills/sdk-client/SKILL.md |
| Operate endpoints/deployments, dev pods, jobs, Ray clusters, fine-tunes, templates, resource shapes, logs, events, nodes | sub-skills/workload-management/SKILL.md |
| Plan storage/file transfer, secrets, ingress/canary routing, IP allowlists, tokens, mount/env/secret validation | sub-skills/storage-secrets-ingress/SKILL.md |
| Check package version, Python support, entry points, and refresh baseline | references/package-overview.md and references/repo-provenance.md |
| Diagnose install/import, CLI availability, version warnings, credentials, network, or stale skill concerns | references/troubleshooting.md |
lep --help, lep <group> --help, lep workspace list/status/id/url, lep endpoint list/status, lep job list/get, lep ingress get, or lep storage ls.lep endpoint over hidden legacy lep deployment, and prefer lep storage over hidden lep file unless a user explicitly needs compatibility.lep workspace token unless the user explicitly asks to retrieve the raw token as the task.create, update, stop, start, restart, remove, delete, rm, rmdir, upload, download to sensitive local paths, ingress set-endpoints, and pod ssh as mutating or high-impact.Client(...) for a real URL/workspace endpoint fetches OpenAPI metadata and makes network calls. Use no_check=True only when intentionally deferring that check.APIClient() and its resource methods are live workspace API clients. Do not instantiate or call them for mutation unless the workspace/auth route has established context and the user has approved the operation.