-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feat: better hardware setting #4471
Open
urmauur
wants to merge
15
commits into
dev
Choose a base branch
from
feat/hardware-ui
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
louis-jan
approved these changes
Jan 16, 2025
This is the build for this pull request. You can download it from the Artifacts section here: Build URL. |
Barecheck - Code coverage reportTotal: 68%Your code coverage diff: 0.02% ▴ Uncovered files and lines |
urmauur
force-pushed
the
feat/hardware-ui
branch
from
January 21, 2025 13:20
0675652
to
a5b9cd6
Compare
…gine management system
urmauur
force-pushed
the
feat/hardware-ui
branch
from
January 21, 2025 15:30
a5b9cd6
to
b5191ba
Compare
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.
Describe Your Changes
This pull request introduces a new hardware management extension to the project. The changes include adding new types, creating new classes for managing hardware, and updating configuration files to support the new extension.
New Hardware Management Extension:
core/src/browser/extension.ts
: AddedHardware
to theExtensionTypeEnum
to support the new hardware management extension.core/src/browser/extensions/hardwareManagement.ts
: Created theHardwareManagementExtension
class with methods to get hardware information and set active GPUs.core/src/types/hardware/index.ts
: Defined new types forCpu
,Gpu
,Os
,Power
,Ram
,Storage
, andHardwareInformation
to represent hardware details.core/src/browser/extensions/index.ts
andcore/src/types/index.ts
: Exported the new hardware management-related modules. [1] [2]Configuration and Setup:
extensions/hardware-management-extension/jest.config.js
: Added Jest configuration for testing the hardware management extension.extensions/hardware-management-extension/package.json
: Created a package file for the hardware management extension with necessary scripts and dependencies.extensions/hardware-management-extension/rolldown.config.mjs
: Added Rollup configuration for building the hardware management extension.extensions/hardware-management-extension/tsconfig.json
: Added TypeScript configuration for the hardware management extension.Integration:
extensions/hardware-management-extension/src/index.ts
: Implemented theJSONHardwareManagementExtension
class to provide functionality for managing hardware, including health checks and GPU activation.web/hooks/useHardwareManagement.ts
: Added hooks for fetching hardware information and setting active GPUs using the hardware management extension.web/package.json
: Updated dependencies to include the new hardware management extension.Fixes Issues
Self Checklist