Skip to main content

Module consent

Module consent 

Source
Expand description

Shared ask-first consent model for home-directory installs.

Single source of truth used by the CLI first-run wizard and the Desktop consent card so both surfaces ask the same question, persist the same answer (skills.bundled.enabled in the user layer), and enforce the same gate. Install sites must consult bundled_skills_install_permitted: nothing under the user’s home is created for bundled skills until the answer is ConsentAnswer::Granted — or the cache already exists from a previous release (grandfathered), in which case only a refresh of VT Code’s own cache directory is allowed.

ConsentAnswer deliberately has three states: an explicit grant, an explicit decline (never ask again, actively remove our cache), and unasked (fail closed: no writes, surfaces may prompt once).

Enums§

ConsentAnswer
Consent answer for installing bundled skills into the user’s home.

Constants§

BUNDLED_SKILLS_SETTING_PATH
Dotted setting path that carries the bundled-skills consent answer.
CONSENT_ALLOW_DESCRIPTION
CONSENT_ALLOW_LABEL
CONSENT_BODY_REVERSIBLE
CONSENT_BODY_WHAT
What the install contains. Sizes stay small and no network is involved.
CONSENT_DECLINE_DESCRIPTION
CONSENT_DECLINE_LABEL
CONSENT_MCP_DISCLOSURE
CONSENT_QUESTION
Question shared by the CLI wizard step and the Desktop consent card.
CONSENT_REOPEN_HINT
CONSENT_TITLE
Title shared by the CLI wizard step and the Desktop consent card.

Functions§

bundled_skill_missing_hint
Actionable hint appended when a bundled skill is requested but unavailable.
bundled_skills_answer
Resolve the bundled-skills consent answer from a loaded manager.
bundled_skills_install_permitted
Decide whether bundled skills may be installed or refreshed.
install_location_description
Describe where the install lands, for wizard and card copy.