Skip to content

Browsing and reuse

A block published once can be used by any project in the organization. You find it in the catalog, then import it into a project at a pinned version and call its exports from workflows and agents.

Finding a block

xratu library
xratu library ledger
xratu library --json

xratu library opens a browser over the releases in the current workspace, with an optional search term. --json prints the catalog instead. For one release, xratu get package <package> <version-or-tag> shows its full record. See Published artifact catalog.

Reusing a block in a project

A project imports the block's package at a version:

imports:
  - package: acme.billing-manifest
    version: sha256-9c8dc1d987eca109

A workflow step then calls an export by its block and name, such as acme.billing.charge. When the project is applied, each import resolves to one release, searching every workspace in the organization and preferring the project's own workspace, and the release is recorded in the project's resolution. See Version pinning.

What reuse keeps separate

The published block is shared; how it runs is decided per project. Each project resolves its own closure for the block's capsule, on its own foundation, with its own dependency bindings, and runs it in its own cells. See Resolved runtime closures.