feat(cli): add capability scaffold command#18
Merged
Conversation
- 实现 ACM 配置管理功能,包括配置加载、监听、健康检查等核心功能 - 添加 AMQP 消息队列桥接组件,支持消息发布、订阅、确认和死信处理 - 集成布隆过滤器组件,提供元素添加、查询、测试并添加等操作接口 - 提供完整的单元测试覆盖各个组件的主要功能场景 - 实现健康报告机制以监控各组件的运行状态
spelens-gud
approved these changes
Jun 20, 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
nucleus capability addCLI package with structured command wiring, human/JSON output,--dry-run,--force, conflict detection, and relative changed-file reporting.planprovider hints andcapability addsupport stay aligned.--dirwiring.capandbridgesubmodule pointers to theirfeat/capabilitywork for this branch.Motivation
plancould suggest commands such asnucleus capability add redis --provider redis, but the CLI did not previously provide a maintainable first-class implementation. The earlier capability logic was also concentrated inroot.go, which made the root command carry provider catalogs, manifest patching, template rendering, and file writes.This PR makes capability scaffolding match the structure used by other Nucleus subcommands while keeping the kernel boundaries explicit.
Affected Areas
cmd/nucleus/internal/capability: new command package for capability scaffold orchestration.cmd/nucleus/internal/capcatalog: shared internal capability/provider metadata for CLI planning and scaffolding.cmd/nucleus/internal/plan: uses the shared catalog for capability task planning.cmd/nucleus/internal/root: mounts the capability command without carrying command logic.cap/bridge: submodule pointer updates for the corresponding capability branch work.Compatibility
nucleus capability add <capability> --provider <provider>.--json,--pretty,--dry-run, and--forceflags.nucleus.capability_resultJSON with stable fields for status, summary, changed files, diagnostics, and next steps.nucleus.yamland writes provider metadata undernucleus.providers.http,grpc, andworkerincapability add; those remain contract/runtime scaffolding concerns handled byinitandgen.Validation
rtk go test ./...rtk go test ./... -race -count=1rtk go test ./...incontractrtk go run ./cmd/nucleus verify --dir example/hello-http --jsonReview Notes
nucleus.yaml, so root-levelnucleus validate --dir .andnucleus verify --dir .are not meaningful for this kernel checkout. Validation uses the runnableexample/hello-httpservice instead.httptestport binding. The same test commands passed after rerunning outside the restricted sandbox.capandbridgesubmodule pointers. The PR scope above is the authoritative review scope.