API Reference Poney v#0.1.0

Copy Markdown View Source

Modules

The Poney format in Elixir: read and check Poney documents, as the specification says.

A Poney document in its canonical form (§3): one model of a system, its views, its walkthroughs and its presentation. Every default is filled in, and views written inside walkthrough scenes are in views, so a scene's view is always the id of one.

An extension a document uses (§8.1). A reader that does not know a required one refuses the document.

Raised by Poney.read!/1 when a document has errors. issues lists them all.

One problem in a document.

The semantic model (§5): what the software is, independent of any diagram.

A UML activity (§5.6.2): actions, decisions and the flows between them.

A flow between two nodes of an activity, with an optional guard.

A node of an activity. performed_by is the entity that does it: its swimlane.

A behavior (§5.6), by its "kind": an interaction (Poney.Model.Interaction), an activity (Poney.Model.Activity) or a state machine (Poney.Model.StateMachine).

A branch of a fragment: its guard and its steps.

Data moving from one entity to another (§5.5). via is the relationship that carries it, when one does.

A relation between two data types (§5.4), with crow's foot ends such as "exactly-one". logical relations cross a service boundary and have no database constraint.

A table, record, event or document (§5.3), with its fields, its owner and where it is stored.

A part of the software (§5.1): a person, a system, a service, a database… kind is a core kind such as "service", or an extension's, such as "ownership/team". parent names the entity it is inside.

A field of a data type (§5.3). references is its foreign key, when it has one.

The data type and field a foreign key points at.

A combined fragment of an interaction ("alt", "opt", "loop" or "par"), with its branches.

A UML interaction (§5.6.1): participants, left to right, and the messages between them, in order.

A message of an interaction: kind is "call", "return", "async" or "self".

How one entity uses another (§5.2), such as "calls" or "publishes". data lists the data types that travel along it.

Where an element is in the code: a path in the repository, and optionally a line and a symbol.

A state of a state machine: kind is "initial", "state" or "final".

A state machine (§5.6.3): the lifecycle of subject, owned by owner.

A step of an interaction, by its "type": a message (Poney.Model.Message) or a combined fragment (Poney.Model.Fragment).

A transition between two states, on an event, with an optional guard and actions.

A UML use case (§5.7): something an actor does with the system.

How things look (§7), apart from what they mean: a style for each entity kind and relationship kind, and overrides by element and by view.

The style of an entity kind: a shape, a tone, a Lucide icon name and a label.

The style of a relationship kind: a pattern and the marker at its target end.

A style override for one element.

What a document describes (§3.2). default_view is the id of the view to open first.

A reference to one element of a document, as walkthroughs write it (§5.8): "<kind>:<id>", "<kind>:<behavior>:<id>" for the parts of a behavior, "group:<view>:<id>" for a group of a view, and "dataType:<id>#<field>" for a field.

A scene of a walkthrough: the point of it in plain words (text), the view it shows (view, an id; nil for a scene of code only), what to keep bright (focus), numbered notes on elements (callouts), the code, the proof, a path to play (trace), and emphasis by meaning (effects, badges). Refs are text, such as "entity:order-service"; see Poney.Ref.

A short fact pinned on an element: a count, a latency, a size.

A numbered note on an element, in reading order.

What the code does in one case.

Code to read, as diff hunks. An excerpt of a file as it is becomes one hunk of unchanged ("ctx") lines. notes sit under a line, by its new line number.

A line of a diff: kind is "add", "del" or "ctx"; old and new are its line numbers on each side.

What a reader must see on an element, by meaning: "flow", "attention", "hot-path", "slow", "failing" or "blocked".

A hunk of a diff.

A note under a line of code.

Evidence: a test, a check, a run. missing marks proof that does not exist yet.

One step of a path the reader can play: a line, a message, a transition, or a box to stop at.

A view (§6): which part of the model one diagram shows, and how it is organized. Each type has its own struct; type holds the format's name for it.

An activity diagram of one activity.

An architecture view (§6): entities, the relationships between them, groups, and containers drawn closed.

A data flow diagram of some data flows.

A dependency diagram: entities in layers, top to bottom.

An entity relationship diagram of some data types.

A view whose type an extension defines (§8.3): extension names it as "<extension>/<view type>", and data is the extension's.

A group of entities in a view: a zone in an architecture view, a layer in a dependency view.

A map (§6): a small, composed picture of how a dozen entities connect, for one explanation. Walkthrough scenes use it most.

A sequence diagram of one interaction.

A state diagram of one state machine.

A use case diagram.

A walkthrough (§5.8): a story that explains one change (kind: "change"), or a tour of code as it is (kind: "tour"). Its scenes come in reading order. marks say what the change adds, changes or removes; removed holds the elements the change removes, to draw them as they were.

A fact of a verdict: a label and a value.

What a reviewer found: a "risk" to weigh or a "note". scene is where it shows.

A mark: the element ref is "new", "changed" or "removed" in the change.

The elements a change removes, as they were.

A transition a change removes, with its state machine.

Where a change or a tour comes from: a merge request, a commit, a repository.

What changes for a person (a change, with before and after), or what the code is for (a tour).

The reviewer's verdict: a risk ("look" or "routine"), facts, and findings.

Mix Tasks

Checks the repository before a release of Poney.

Copies the files that define the Poney format from a release of Poney.