You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
kit setup/doctor: ensure mise-installed tools are reachable (activate mise in shell profile, consented) #64
The recurring friction:kit install/kit setup provision tools via mise, but if mise isn't activated in the user's shell, the installed tools aren't on PATH → command not found: infisical / snyk / etc. Users then think the install failed. (kit already resolves tools mise-first internally via resolveToolBin, but the user's own interactive shell still can't reach them.)
Fix (consented, never silent — same pattern as memory-hooks / agent-config permission writes):
kit doctor — detect when mise is installed but not activated in the shell profile (no mise activate in .zshrc/.bashrc), and when mise-managed tools therefore aren't on PATH. Report it as a fixable finding.
kit setup — at the end, OFFER to append eval "$(mise activate <shell>)" to the shell profile (prompt / --activate-mise), so installed tools are reachable. Idempotent; never clobber.
Surface the exact missing-tool→fix command in the readiness output (ties to the scanner-readiness improvement).
This is the actual root cause behind most "I installed it but it says not found" reports. On-brand: kit guides the env into a working state, consented, deterministic. (Observed live while dogfooding kit scan + Infisical CLI.)
Dogfooding learning (2026-06-23):eval "$(mise activate zsh)" in the shell profile is fragile — it silently no-ops if mise itself isn't on PATH yet when the profile runs (e.g. no brew shellenv set before it, common on fresh Apple-Silicon setups). The user added the activate line and still hit command not found: infisical in a new window.
Robust fix kit should write instead: put mise's shims dir directly on PATH — export PATH="$HOME/.local/share/mise/shims:$PATH" — which has no dependency on mise resolving or the activate hook firing (the shims are plain executables). So kit setup's consented profile edit should prefer the shims-dir line (and/or ensure brew shellenv/mise-bin is on PATH before any mise activate).
Activity
sandstream commentedon Jun 23, 2026
Dogfooding learning (2026-06-23):
eval "$(mise activate zsh)"in the shell profile is fragile — it silently no-ops ifmiseitself isn't on PATH yet when the profile runs (e.g. nobrew shellenvset before it, common on fresh Apple-Silicon setups). The user added the activate line and still hitcommand not found: infisicalin a new window.Robust fix kit should write instead: put mise's shims dir directly on PATH —
export PATH="$HOME/.local/share/mise/shims:$PATH"— which has no dependency onmiseresolving or the activate hook firing (the shims are plain executables). Sokit setup's consented profile edit should prefer the shims-dir line (and/or ensurebrew shellenv/mise-bin is on PATH before anymise activate).feat: baseline + gha-audit + sbom/sarif + mise-path doctor → 1.21.0 (#59