openawf 0.1.0 unreleased

Ecosystem / IDE support

Catch a broken workflow while you type.

An editor extension checks a workflow as you write it. A branch missing an outcome or a tool the task is not granted shows up in the editor, before anything runs. A live preview shows the rendered page beside the file.

Editors

EditorStatusLanguage serverCommandGives you
VS Codeavailableawf-cli, bundledawf lspDiagnostics, go to definition on $ref, a live preview beside the editor
Neovimconfigawf-cliawf lspDiagnostics, go to definition, render to a browser tab
Any YAML editorschemayaml-language-serverSchema completion and errors through a modeline, without graph checks

Tool

awf-cli awf lsp

About awf-cli

A language server for OpenAWF. It validates with the same code as the CLI, so the editor and the CLI report the same errors.

VS Code

  • Diagnostics on every workflow (.yaml) and task (.md).
  • Go to definition from a $ref to the task it names.
  • AWF: Open Preview renders the file beside the editor, 300 ms after each edit.

Not on the Marketplace yet. Build the .vsix from source.

$ git clone https://github.com/dwwescalelol/awf-cli
$ cd awf-cli/editors/vscode
$ npm install && npm run package
$ code --install-extension openawf-*.vsix

Neovim

  • Registers awf lsp through nvim-lspconfig for files under .awf.
  • The awf/render request returns the rendered page for the unsaved buffer.
require("lspconfig.configs").awf = {
  default_config = {
    cmd = { "awf", "lsp" },
    filetypes = { "yaml", "markdown" },
    root_dir = require("lspconfig").util.root_pattern(".awf"),
  },
}
require("lspconfig").awf.setup({})

Build an editor extension

An extension needs an LSP client and a language server for OpenAWF. It can run awf lsp or bring its own server. The awf lsp protocol, including awf/render, is in editors/README.md.

Open a pull request on the specification repository to list an editor here.