Repository navigation
Closed
Conversation
Member
|
you don't need npm! opencode itself has the functionality to run any npm package - check how we do the typescript server should work the same |
Author
|
Thank you for the feedback @thdxr! You're absolutely right - I've updated the implementation to use OpenCode's built-in npm package execution functionality. Changes Made:The Aiken LSP now uses the same pattern as the TypeScript server: export const Aiken: Info = {
id: "aiken",
extensions: [".ak"],
async spawn() {
// Simply use bun x to run aiken lsp, just like TypeScript
const proc = spawn(
BunProc.which(),
["x", "@aiken-lang/aiken", "lsp"],
{
env: {
...process.env,
BUN_BE_BUN: "1",
},
},
)
return {
process: proc,
}
},
}This approach:
The PR has been updated with this improved implementation. Thanks for pointing me in the right direction! |
- Uses OpenCode's bun x pattern for package execution - No global installations required - Supports .ak files for Cardano smart contract development - Follows same pattern as TypeScript and Pyright servers
andreipromarketing-dev
pushed a commit
to andreipromarketing-dev/opencode
that referenced
this pull request
Apr 7, 2026
…s unset (anomalyco#547) (anomalyco#691) When ECC is installed as a Claude Code plugin via the marketplace, scripts live in the plugin cache (~/.claude/plugins/cache/...) but commands fallback to ~/.claude/ which doesn't have the scripts. Add resolve-ecc-root.js with a 3-step fallback chain: 1. CLAUDE_PLUGIN_ROOT env var (existing) 2. Standard install at ~/.claude/ (existing) 3. NEW: auto-scan the plugin cache directory Update sessions.md and skill-health.md commands to use the new inline resolver. Includes 15 tests covering all fallback paths including env var priority, standard install, cache discovery, and the compact INLINE_RESOLVE used in command .md files.
bussard76
pushed a commit
to bussard76/openwork
that referenced
this pull request
May 12, 2026
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.
Summary
Add Aiken language server support to enable intelligent code assistance for Cardano smart contract development.
Features Added
How it works
Benefits for Cardano developers
Test plan
🤖 Generated with opencode