Merged
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The capabilities package now contains only declarative capability definitions. Runner, state tracking, and utility functions move to vm-cli where they are actually consumed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Delete provision(), provisionEnvVars(), provisionNpmGlobalPath(), provisionGatewayStub() from openclaw.ts and provisionLinger() from systemd.ts — all replaced by capability definitions. Delete the now- unused types.ts (ProvisionResult moved to @clawctl/types). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Each doctor check was calling commandExists twice — once for the passed field and again for the error field. Cache the result in a local variable instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move provisionShellProfile() from index.ts to install.ts alongside provisionHomebrew(). Fix hardcoded indentation in log message. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace name-based filtering (which could match results from other capabilities with same step names) with index-based slicing that is correct by construction. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (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.
Summary
@clawctl/capabilities: Runner, state tracking, and utility functions relocated tovm-cli/src/capabilities/— the capabilities package now exports only the 6 declarative capability definitionsprovision(),provisionEnvVars(),provisionNpmGlobalPath(),provisionGatewayStub()fromopenclaw.ts,provisionLinger()fromsystemd.ts, and the now-unusedtypes.tscommandExistscalls in 6 doctor checks; fix runner result tracking to use index-based slicing instead of fragile name-based filteringprovisionShellProfiletoinstall.ts, fix hardcoded indentation in log messageNet: -94 lines across 17 files.
Test plan
bun test— 265 pass, 0 failbun run lint— cleanbun run format:check— cleanbun run build:claw— guest binary buildspackages/capabilities/src/index.tsonly exports the 6 capability defs🤖 Generated with Claude Code