Skip to content

feat(platform): custom profile hooks, publish-url check - #36

Merged
bosd merged 1 commit into
mainfrom
feat/hooks
Oct 13, 2026
Merged

bosd merged 1 commit into
mainfrom
feat/hooks

Conversation

@bosd

@bosd bosd commented Oct 13, 2026

Copy link
Copy Markdown
Member

Phase 5, last pieces.

  • Custom profile hooks: [tool.odx.platform.custom] prepare runs at the end of odx vendor, verify during odx verify (a failure fails verification). sh -c / cmd /C in the project root with ODX_PROJECT_ROOT, ODX_ENVIRONMENT (empty until environments land), ODX_SERIES, ODX_LOCKFILE, ODX_VENDOR_MANIFEST, ODX_REQUIREMENTS. ODX_PLAN_JSON from the design is not provided yet.
  • Hooks only run with --allow-shell (new on vendor and verify) or when the user configuration's [trust] projects lists the project (now interpreted, ~/ expanded, compared canonically). Otherwise vendor warns and verify fails.
  • odx build --publish requires the index to have url and publish-url: uv uses the url to skip files the index already has, which makes publishing idempotent.
  • run_checked shared by build, publish and hooks.

The custom profile's prepare hook runs at the end of odx vendor and its
verify hook during odx verify, with sh -c (cmd /C on Windows) in the
project root and ODX_PROJECT_ROOT, ODX_ENVIRONMENT, ODX_SERIES,
ODX_LOCKFILE, ODX_VENDOR_MANIFEST and ODX_REQUIREMENTS set, only with
--allow-shell or when [trust] projects in the user configuration lists
the project. odx build --publish requires the index's url and
publish-url, so uv skips files the index already has.
@github-actions github-actions Bot added the enhancement New feature label Oct 13, 2026
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 odx | 🛠️ Build #35118359 | 📁 Comparing 0e51c09 against latest (d62d042)

  🔍 Preview build  

1 file changed
± cli.html

@bosd
bosd merged commit 1f548eb into main Oct 13, 2026
26 checks passed
@bosd
bosd deleted the feat/hooks branch October 13, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant