Files
n-papaioannou 6928af5380 feat(cli): align skill + plugin onto the guided ifixai run engine (#57)
* feat(cli): align skill + plugin onto the guided `ifixai run` engine

Scaffold /ifixai-skill into coding agents (ifixai install), converge the Claude
marketplace plugin onto ifixai run, add run-health validity banners, and remove
the retired ifixai-diagnose orchestrator backend. Docs + README updated for the
universal install path.

* feat(plugin): add Codex plugin, show display name as iFixAi on both hosts

Commit the untracked Codex manifest and marketplace so the port ships, keep manifests at 0.1.1 to match the Claude plugin, and document both Codex run paths in the README.

* fix(docs): replace dead IFIXAI_MAX_LIVE_CALLS with real concurrency knob

SKILL.md and playbook.md now use IFIXAI_CONCURRENCY=1 / --no-parallel for sequential runs, and bridge.py drops the deleted orchestrator's --mode api reference.

* docs(readme): clarify plugin vs skill in the run sections

Reorganize by mechanism: plugin (Claude Code + Codex, preferred) and skill (/ifixai-skill, every agent incl. both hosts). Fix the comparison table and intro that implied the plugin works in all agents.

* fix: apply pre-merge review findings

Harden the operator playbook + SKILL against splicing untrusted repo values into a shell and make the --dry-run consent step mandatory; revert two getattr fallbacks to direct attribute access; make bootstrap wording host-neutral for Codex as well as Claude.

* fix(reports): suffix report filenames with the run nonce

Each run's summary/full/json now share a unique run-nonce suffix, so a later run with a different provider or fixture no longer leaves a stale report that reads as current. Operator docs point at the exact printed paths.
2026-07-02 13:56:10 +03:00

24 lines
1.2 KiB
PowerShell

# Thin PowerShell shim: locate a Python 3 and hand off to the cross-platform
# provisioner, hooks/bootstrap.py (the real logic lives there). This is the
# native-Windows path — when Git Bash isn't installed, your agent's Bash tool and
# hooks run under PowerShell, so the skill's Step 0 provisions with:
# powershell -ExecutionPolicy Bypass -File "${CLAUDE_PLUGIN_ROOT}\hooks\bootstrap.ps1"
$ErrorActionPreference = 'Stop'
$script = Join-Path $PSScriptRoot 'bootstrap.py'
foreach ($py in 'py', 'python', 'python3') {
$cmd = Get-Command $py -ErrorAction SilentlyContinue
# Skip the Microsoft Store App-Execution-Alias stubs in WindowsApps: they exist
# on a Python-less box, print "Python was not found…", and do nothing — so fall
# through to the actionable error below instead of treating them as a real Python.
if ($cmd -and $cmd.Source -notlike '*\WindowsApps\*') {
# The `py` launcher needs -3 to guarantee a Python 3 interpreter.
if ($py -eq 'py') { & $cmd.Source -3 $script @args } else { & $cmd.Source $script @args }
exit $LASTEXITCODE
}
}
[Console]::Error.WriteLine('iFixAi: no Python 3 on PATH (tried py, python, python3) — the engine needs Python 3.10+.')
exit 1