Capstone.Plugin.Install (Capstone v0.33.3)

Copy Markdown View Source

The one resolve → extract → apply → record → clean-up sequence both mix capstone.new and mix capstone.update use — see docs/superpowers/specs/2026-08-26-plugin-ecosystem-design.md.

Summary

Functions

Resolves type in registry_dir for the running Elixir/Capstone versions, applies it to target, and records it with a {:registry, filename} origin. The extraction temp directory is removed whether apply succeeds or raises.

Functions

run(type, target, registry_dir)

@spec run(atom(), Path.t(), Path.t()) :: {:ok, map()}

Resolves type in registry_dir for the running Elixir/Capstone versions, applies it to target, and records it with a {:registry, filename} origin. The extraction temp directory is removed whether apply succeeds or raises.