Skip to main content

Module setup

Module setup 

Source

Re-exports§

pub use crate::constants::ENV_NO_AUTO_SETUP;

Structs§

SetupReport
The result of one integration pass.

Enums§

Consent
Whether this integration pass was asked for by name.
Outcome
What one integration did during a pass.
SetupConsent
What this machine has said about dev-prune installing things for itself.

Functions§

agent_skill_roots
The agent skill directories on this machine. Empty when no agent is installed.
auto_setup_enabled
Whether unattended installation is permitted at all.
auto_setup_if_due
The per-version pass — and, since 1.18.0, never before this machine has said yes.
clear_setup_consent
Put the question back the way a fresh machine has it. devp uninstall calls this: keeping a “granted” that outlives the things it granted would make the next upgrade reinstall everything the uninstall just removed.
consent_state
ensure_agent_skills
Install the skill into every detected agent’s skills directory.
ensure_alias
Keep dev-prune and devp beside each other, whichever of the two is running.
ensure_command_on_path
Make the managed pair reachable from a fresh shell.
ensure_daemon
Install the OS scheduler if it is not already registered.
ensure_hooks
Install the global Git hooks, unless git is absent or the slot belongs to someone else.
ensure_integrations
Run one integration pass, installing whatever is missing.
ensure_integrations_if_enabled
Run an integration pass unless unattended installation is switched off.
ensure_skill_copies
Rewrite every managed copy of SKILL.md from the embedded one.
ensure_skill_file
Export the bundled SKILL.md so AI assistants have something to read.
managed_bin_dir
Where the installers put the binary, and the one directory nothing else owns.
no_auto_setup_requested
Whether the suppression variable is set — by presence, so =1, =true and even an empty value all count.
offer_vscode_extension
Offer to install the editor extension, once ever, when a VS Code-family editor is present.
offline_requested
Whether every network call is switched off for this process — same by-presence rule as no_auto_setup_requested, and for the same reason.
record_consent_granted
devp setup records this too: asking for the pass in so many words is also the durable answer to the question the first run would otherwise ask.
setup_is_due
Whether the unattended pass is due: a fresh install, or the first run after an upgrade.
skill_path
Path that devp skill and this module export SKILL.md to.
stable_exe_path
Absolute path to a copy of this binary that will still be there next week.
stale_skill_copies
Every managed copy of SKILL.md that is not the one this binary carries.
suppress_next_auto_setup
Invalidate the stamp so the next human-run command performs a pass.
unattended_environment
The reason this looks like a machine nobody is sitting at, if it does.