Repository navigation
refactor(cli): add public command display ids - #2921
Conversation
This reverts commit 4ebeae4.
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA new required ChangesCommand Registry commandId Requirement
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
## Summary Start moving process-exit behavior toward CLI boundaries by adding a typed parse result path for debug arguments. Existing command helpers keep their compatibility wrapper, but callers can now inspect debug parse failures without triggering `process.exit()`. ## Stack Navigation - Position: 27 of 60 - Previous PR: [#2919 — test(cli): require oclif command metadata](#2919) - Next PR: [#2921 — refactor(cli): add public command display ids](#2921) ## Changes - Added `DebugParseResult` and `parseDebugArgsResult`. - Reworked `parseDebugArgs` to map typed parse outcomes to output and exit behavior. - Added unit coverage for typed debug parse errors. ## Type of Change - [x] Code change (feature, bug fix, or refactor) - [ ] Code change with doc updates - [ ] Doc only (prose changes, no code sample modifications) - [ ] Doc only (includes code sample changes) ## Verification - [x] `npx prek run --all-files` passes - [x] `npm test` passes - [x] Tests added or updated for new or changed behavior - [x] No secrets, API keys, or credentials committed - [ ] Docs updated for user-facing behavior changes - [ ] `make docs` builds without warnings (doc changes only) - [ ] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) --- Signed-off-by: Carlos Villela <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added `sandbox doctor` command for sandbox and gateway health diagnostics. * Added log filtering: `--tail/-n` and `--since` options for `logs` command. * Restructured `share` command into subcommands (`mount`, `unmount`, `status`). * Added short flag aliases: `-y` for `--yes`, `-q` for `--quick`, `-o` for `--output`. * **Improvements** * Enhanced help text and usage examples across CLI commands. * Better error messages for missing required arguments and invalid flags. * Reorganized policy subcommands with clearer naming. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Carlos Villela <[email protected]>
Signed-off-by: Carlos Villela <[email protected]>
## Summary Start generating root help content from oclif command metadata by using registered command summaries for visible help descriptions. The public usage/group display remains driven by the NemoClaw display metadata. ## Stack Navigation - Position: 29 of 60 - Previous PR: [#2921 — refactor(cli): add public command display ids](#2921) - Next PR: [#2923 — refactor(cli): table-drive sandbox dispatch](#2923) ## Changes - Added an oclif metadata lookup helper. - Updated root help rendering to prefer each command class summary by command ID. - Added tests for metadata lookup behavior. ## Type of Change - [x] Code change (feature, bug fix, or refactor) - [ ] Code change with doc updates - [ ] Doc only (prose changes, no code sample modifications) - [ ] Doc only (includes code sample changes) ## Verification - [x] `npx prek run --all-files` passes - [x] `npm test` passes - [x] Tests added or updated for new or changed behavior - [x] No secrets, API keys, or credentials committed - [ ] Docs updated for user-facing behavior changes - [ ] `make docs` builds without warnings (doc changes only) - [ ] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) --- Signed-off-by: Carlos Villela <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Help system now displays registered command summaries alongside command descriptions, providing users with more detailed information when viewing help. * **Tests** * Added test suite validating command metadata retrieval and lookup functionality. * Enhanced help output tests to verify additional descriptive information is displayed correctly. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Carlos Villela <[email protected]>
Summary
Introduce explicit public-display-to-oclif command IDs in the command registry. This prepares root help and docs tooling to combine NemoClaw's public syntax with oclif command metadata without changing runtime behavior.
Stack Navigation
Changes
commandIdto command display metadata entries.Type of Change
Verification
npx prek run --all-filespassesnpm testpassesmake docsbuilds without warnings (doc changes only)Signed-off-by: Carlos Villela [email protected]
Summary by CodeRabbit
Release Notes
Tests
Chores