Skip to content

js: provide package manager function and documentation#2930

Merged
tiann merged 4 commits into
tiann:mainfrom
KOWX712:webui_doc
Nov 14, 2025
Merged

js: provide package manager function and documentation#2930
tiann merged 4 commits into
tiann:mainfrom
KOWX712:webui_doc

Conversation

@KOWX712

@KOWX712 KOWX712 commented Nov 14, 2025

Copy link
Copy Markdown
Collaborator

npm update #2928

@tiann

tiann commented Nov 14, 2025

Copy link
Copy Markdown
Owner

Please bump version in package.json

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 adds two new package management functions to the KernelSU JavaScript API, providing the ability to list installed packages and retrieve detailed package information.

  • Adds listPackages() function to list installed packages by type (user/system/all)
  • Adds getPackagesInfo() function to retrieve detailed information about specific packages
  • Includes TypeScript definitions and comprehensive documentation for both functions

Reviewed Changes

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

File Description
js/index.js Implements listPackages() and getPackagesInfo() with JSON parsing and error handling
js/index.d.ts Adds TypeScript interface PackagesInfo and type declarations for the new functions
js/README.md Documents the new functions with usage examples and parameter descriptions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread js/README.md Outdated
Comment thread js/README.md Outdated
KOWX712 and others added 2 commits November 14, 2025 13:12
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@KOWX712

KOWX712 commented Nov 14, 2025

Copy link
Copy Markdown
Collaborator Author

Is it fine to keep in sync with latest v2.1.1 tag?

@tiann tiann merged commit ab3840a into tiann:main Nov 14, 2025
@tiann

tiann commented Nov 14, 2025

Copy link
Copy Markdown
Owner

https://www.npmjs.com/package/kernelsu/v/2.1.1

@KOWX712 KOWX712 deleted the webui_doc branch November 14, 2025 10:15
KOWX712 added a commit to KOWX712/KernelSU that referenced this pull request Nov 14, 2025
npm update tiann#2928

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 3, 2026
npm update tiann#2928

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
npm update tiann#2928

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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