Skip to content

NOJIRA: Proposal for New Package Manager APIs#723

Open
satlead wants to merge 9 commits intodevelopfrom
feature/package-manager-update
Open

NOJIRA: Proposal for New Package Manager APIs#723
satlead wants to merge 9 commits intodevelopfrom
feature/package-manager-update

Conversation

@satlead
Copy link
Contributor

@satlead satlead commented Jan 30, 2026

No description provided.

@github-actions
Copy link

Documentation Auto-Generated

Documentation has been automatically generated for the changed plugins and committed to this PR branch.

The generated documentation files have been added to the PR for review.

@satlead satlead marked this pull request as ready for review February 4, 2026 20:32
@satlead satlead requested a review from a team as a code owner February 4, 2026 20:32
Copilot AI review requested due to automatic review settings February 4, 2026 20:32
@github-actions
Copy link

github-actions bot commented Feb 4, 2026

Documentation Auto-Generated

Documentation has been automatically generated for the changed plugins and committed to this PR branch.

The generated documentation files have been added to the PR for review.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces new API methods to the PackageManager interface for handling installed package configurations and app secrets. The changes reorganize the API documentation by moving some method definitions and adding new functionality.

Changes:

  • Added getConfigForInstalledPackage method to retrieve configuration for already installed packages
  • Added GetAppSecrets method to retrieve application secrets
  • Reorganized API documentation by moving lock and unlock method definitions to later in the document

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
docs/apis/PackageManager.md Adds new getConfigForInstalledPackage API documentation, reorganizes method ordering by moving lock and unlock sections, and updates example ID sequences
apis/PackageManager/IAppPackageManager.h Adds interface definitions for GetConfigForInstalledPackage and GetAppSecrets methods, removes JSON version comment

| result.config.fkpsFiles | std::string | json array of strings |
| result.config.fireboltVersion | std::string | |
| result.config.enableDebugger | bool | |
| result.config | string | metadata of package |
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The return type changed from a structured RuntimeConfig object to an opaque String. This is a breaking change that removes type safety and makes it harder for API consumers to work with the configuration data. Consider maintaining the structured object return type or providing a clear migration path.

Suggested change
| result.config | string | metadata of package |
| result.config | RuntimeConfig | metadata of package |

Copilot uses AI. Check for mistakes.
// @param packageId: Package Id
// @param version: Version
// @param config: metadata of package
virtual Core::hresult GetConfigForInstalledPackage(const string &packageId, const string &version, string& config /* @out @opaque */) = 0;
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The brief and text annotations repeat 'getConfigForInstalledPackage' without explaining what this method does differently from GetConfigForPackage. Add a description explaining that this retrieves configuration for packages that are already installed on the system, and clarify why it returns an opaque string instead of a structured RuntimeConfig.

Copilot uses AI. Check for mistakes.
Comment on lines +348 to +352
virtual Core::hresult GetAppSecrets(
const string &packageId,
const string &version,
string &secrets /* @out @opaque */
) = 0;
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GetAppSecrets method lacks documentation about what constitutes 'App Secrets' and how they should be handled securely. Add documentation explaining the format of the secrets return value, security considerations for handling this sensitive data, and any encryption or protection mechanisms in place.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

Documentation Auto-Generated

Documentation has been automatically generated for the changed plugins and committed to this PR branch.

The generated documentation files have been added to the PR for review.

Copilot AI review requested due to automatic review settings February 17, 2026 14:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants