Repository navigation
feat(cli): add resource profiles to nemoclaw onboard and nemoclaw resources command #3348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
302f917
feat(cli): add resource profiles to nemoclaw onboard and nemoclaw res…
nvshridhar 91fd43e
merge: resolve main conflicts for resources PR
cv 61d610f
fix(cli): address resource profile review feedback
cv 3e390de
fix(cli): register resources command for docs parity
cv 25ff8aa
test(cli): cover resource profile commands
cv cc930e1
Merge branch 'main' into feat/resources-v2
cv 5f92a33
Merge remote-tracking branch 'origin/main' into feat/resources-v2
nvshridhar b694182
fix(cli): align resource profiles with OpenShell flags
nvshridhar eb2a6af
Merge remote-tracking branch 'origin/main' into work/pr-3348-conflicts
ericksoa 9a5798d
fix(onboard): keep resource flags within entrypoint budget
ericksoa b0440e9
merge: resolve main conflicts for resources v2
cv b4ba605
Merge branch 'main' into feat/resources-v2
cv bc15498
Merge branch 'main' into feat/resources-v2
cv ae397c7
Merge remote-tracking branch 'origin/main' into feat/resources-v2
ericksoa 81201dc
fix(onboard): keep resource profile wiring budget-neutral
ericksoa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| // SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| import type { CommandDisplayEntry } from "../cli/command-display"; | ||
|
|
||
| import { printHardwareResources } from "../resources-cmd"; | ||
| import { NemoClawCommand } from "../cli/nemoclaw-oclif-command"; | ||
|
|
||
| export default class ResourcesCommand extends NemoClawCommand { | ||
| static id = "resources"; | ||
| static strict = true; | ||
| static enableJsonFlag = true; | ||
| static summary = "Show hardware inventory (CPU cores, RAM, GPU VRAM)"; | ||
| static description = | ||
| "Display available hardware resources including CPU core count and model, " + | ||
| "total system RAM and swap, Kubernetes node allocatable capacity (when a " + | ||
| "gateway is running), and NVIDIA GPU name and VRAM. Supports --json for " + | ||
| "machine-readable output."; | ||
| static usage = ["resources [--json]"]; | ||
| static examples = [ | ||
| "<%= config.bin %> resources", | ||
| "<%= config.bin %> resources --json", | ||
| ]; | ||
| static flags = {}; | ||
|
|
||
| static display: readonly CommandDisplayEntry[] = [ | ||
| { | ||
| usage: "nemoclaw resources", | ||
| description: "Show hardware inventory (CPU cores, RAM, GPU VRAM)", | ||
| flags: "(--json)", | ||
| group: "Resources", | ||
| scope: "global", | ||
| order: 900, | ||
| }, | ||
| ]; | ||
|
|
||
| public async run(): Promise<unknown> { | ||
| await this.parse(ResourcesCommand); | ||
| const result = printHardwareResources(this.jsonEnabled()); | ||
| if (this.jsonEnabled()) { | ||
| return result; | ||
| } | ||
| } | ||
| } | ||
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.