Skip to content

About

Crossly for VS Code: automation recipe schema validation, did-you-mean diagnostics, hover docs and snippets.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Crossly for VS Code

ci release license

Write Crossly automation recipes with the editor checking them as you type. A recipe is a JSON rule (a trigger, an optional condition, an action) that you can import into Crossly or share in crossly-dev/crossly-recipes. This extension knows the published schema, automation-recipe-v1.json: all 29 triggers, 7 conditions and 42 actions.

Features

  • Validation and completion. Files named *.crossly-recipe.json, and any .json under crossly-recipes/recipes/, are validated against the recipe schema, with completion for every type and config key. Bundles ({ "schemaVersion": 1, "recipes": [ … ] }, in *.crossly-recipes.json or crossly-recipes/recipes/all.json) are validated entry by entry. A file with "$schema": "https://crossly.net/schemas/automation-recipe-v1.json" gets the same treatment wherever it is.
  • Crossly: Validate Recipe. Runs on open and save, or from the Command Palette on any JSON file. Problems land in the Problems panel at the exact token, with "did you mean" suggestions for mistyped types and keys ("listing.sol" → listing.sold).
  • Hover docs. Hover a trigger, condition or action type to see what it does and its config keys; hover a key for its description. All of it comes from the schema, so it is always the same as what Crossly accepts.
  • Snippets. crossly-recipe, crossly-recipe-condition, crossly-bundle, and crossly-trigger / crossly-condition / crossly-action with a pick list of every type.

Install

From the Visual Studio Marketplace or Open VSX, search for Crossly (publisher crossly). Or download the .vsix from the latest release and run:

code --install-extension crossly-0.1.0.vsix

Every release .vsix has build provenance; check it before installing with:

gh attestation verify crossly-0.1.0.vsix -R crossly-dev/crossly-vscode

Settings

Setting Default
crossly.validateOnSave true Validate recipe files when they are opened or saved.

Using your recipes

Import a recipe or a bundle into your account with the CLI (crossly automation import-recipes --payload <file>) or the import_automation_recipes MCP tool; the Crossly docs cover the API. This extension never talks to the network or to your account: validation, hovers and snippets all work offline from the bundled schema.

Development

npm install
npm test                    # unit tests (plain Node): validator vs Ajv, hovers, diagnostics, snippets
npm run test:integration    # inside a real VS Code (on Linux: xvfb-run -a npm run test:integration)
node scripts/gen-snippets.js
npx vsce package

CI runs all of it on every push, plus weekly to catch the live schema changing.

Related

License

MIT

About

Crossly for VS Code: automation recipe schema validation, did-you-mean diagnostics, hover docs and snippets.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages