AOML for Visual Studio Code
Official support for AOML, the Adaptive Organization Modeling Language of AOS: the language in which
an organization writes down what it can do — its capabilities, the intents they serve, the signals they
listen to, the strategies that carry them out, and the policies and contexts that govern them.
Everything this extension knows about AOML is generated from the AOS specification — the canonical
data model and the canonical grammar — so it always says what the language says.
Features
- Syntax colours for constructs, fields, values, references (
role.…, connector.…), durations,
comments and strings.
- Completion that knows where you are: the constructs at the top of a file; inside a construct,
its fields, required ones first, without those already written or those AOS computes itself; after
a field, its allowed values or the declarations of your workspace it may name; after
subscribe,
requires or serves, the matching signals, capabilities or intents.
- Hover on a field for its type, who sets it (authored, governed, computed, runtime) and whether it
is required; on a value for its set; on a name for its declaration.
- Checks while you type: an unknown field, a value outside its set, or a computed field written
in source. The full semantic checks (E101 and the other codes) come from the AOS compiler,
aos check.
- Snippets for every construct, with its required fields.
- Outline and go to definition across the workspace's
.aoml files.
capability BakeTheRightAmount {
intent: NoWasteNoShortage
owner: role.operations_manager
signals {
subscribe daily_sales
}
strategy last_four_weekdays {
implementation: host_bound(python, "strategies/last_four_weekdays.py")
fallback_strategy_reference: baker_decides
}
}
Learn AOML
The AOS Academy teaches AOS from zero, and the AOS Docs hold the reference: the grammar, the error codes
and the data model.
| |