Document zero-argument contract signatures#49
Merged
Conversation
Add an lspServers entry so the Claude Code plugin connects the allium-lsp language server to .allium files, giving Claude checker diagnostics, go-to-definition and hover immediately after each edit without a separate `allium check` invocation. Note in the README that allium-lsp is not bundled and must be installed separately (and be on PATH), consistent with official marketplace LSP plugins. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The language server calls createConnection(ProposedFeatures.all), which requires a transport flag on argv, so it must be launched as `allium-lsp --stdio` (per allium-tools CONTRIBUTING). Add args: ["--stdio"] to the lspServers entry; without it the server errors on startup. allium-lsp is not published to npm (the bare and @juxt-scoped names both 404), so drop the `npm install -g allium-lsp` instruction and point to the allium-tools repo for installing the server onto PATH instead. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Note that contract operations can take an empty parameter list, `name: () -> ReturnType`, for parameterless operations (list-all, fetch global state, health checks). Mirrors the v3 language reference in allium-tools and matches the parser fix in juxt/allium-tools#55. Refs #37 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Documents that contract operations can take an empty parameter list —
name: () -> ReturnType— in the skill's language reference (contracts section).Why
Parameterless operations (list-all, fetch global state, health checks) are common at integration boundaries. This keeps the plugin's reference (which Claude reads when writing specs) in sync with the v3 language reference and the parser fix.
Related
() -> Tallium-tools#55 (Closes Contract signatures cannot express zero-argument operations #37)Note: the fix lands in the
alliumCLI on its next release; the bare-arrow form-> ReturnTyperemains invalid by design.🤖 Generated with Claude Code