Files
reliquary/plugins/project-uv/skills/project-uv/scripts/probe.ps1
T
g4borg 4f67b63918 ♻️ Rework project-uv probe for cross-platform determinism
Probe now emits KEY=VALUE so the agent reads facts instead of inferring
from prose. Stdlib-only (no tomllib) so it runs on whatever Python the
launcher reaches. Adds sh/ps1 launcher pair, SCRIPTS_UV/SCRIPTS_DIR/
SCRIPTS_STORE env-var contract, tainted-venv + recipe + default-package
detection, and broader mode classification (incl. agent-tool-only).
SKILL.md trimmed and gated by pyproject.toml glob.
2026-05-19 19:10:08 +02:00

22 lines
579 B
PowerShell

$ErrorActionPreference = "Stop"
$probe = Join-Path $PSScriptRoot "probe.py"
if ($env:SCRIPTS_UV -and (Test-Path $env:SCRIPTS_UV)) {
& $env:SCRIPTS_UV run --no-project python $probe
exit $LASTEXITCODE
}
$uv = Get-Command uv -ErrorAction SilentlyContinue
if ($uv) {
& $uv.Source run --no-project python $probe
exit $LASTEXITCODE
}
foreach ($name in @("python", "python3", "py")) {
$cmd = Get-Command $name -ErrorAction SilentlyContinue
if ($cmd) {
& $cmd.Source $probe
exit $LASTEXITCODE
}
}
Write-Error "probe: no python found"
exit 1