René's URL Explorer Experiment


Title: feat(cli): add plugin system with allowlist policy by hopelynd · Pull Request #40 · modelstudioai/cli · GitHub

Open Graph Title: feat(cli): add plugin system with allowlist policy by hopelynd · Pull Request #40 · modelstudioai/cli

X Title: feat(cli): add plugin system with allowlist policy by hopelynd · Pull Request #40 · modelstudioai/cli

Description: Summary Add a plugin system for bailian-cli with bl plugin install, link, list, and remove Dynamically load plugin commands into the CLI registry so new commands are available without restarting Enforce an allowlist security policy: only official plugins under the @ali scope (e.g. @ali/bailian-plugin-agent) Install plugins via an isolated npm sandbox; plugin commands use caching and priority resolution Add e2e tests, core type definitions, and skills/bailian-cli/reference/plugin.md documentation Key changes Area Description packages/cli/src/plugins/ Discovery, scanning, caching, management, npm sandbox, allowlist policy packages/cli/src/commands/plugin/ install, link, list, and remove subcommands packages/cli/src/load-commands.ts Lazy-load command catalog and merge built-in and plugin commands packages/core/src/types/plugin.ts Plugin manifest type definitions packages/cli/tests/e2e/plugins.e2e.test.ts E2E coverage for install, link, and command discovery Test plan vp check passes (format, lint, type check) vp test passes (including plugins.e2e.test.ts) bl plugin list lists discovered plugins bl plugin install @ali/bailian-plugin-agent exposes new commands after install bl plugin link works for local development Non-allowlisted plugins are rejected with a clear hint bl config export-schema lazy-loads the catalog without regressions

Open Graph Description: Summary Add a plugin system for bailian-cli with bl plugin install, link, list, and remove Dynamically load plugin commands into the CLI registry so new commands are available without restarting E...

X Description: Summary Add a plugin system for bailian-cli with bl plugin install, link, list, and remove Dynamically load plugin commands into the CLI registry so new commands are available without restarting E...

Opengraph URL: https://github.com/modelstudioai/cli/pull/40

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:22af441c-d541-cca6-fabf-c1ad83cf6ba3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAFC2:228F1C:19FEFB1:2387FE0:6A536888
html-safe-nonce55ddb9be92833831993327fff8768f8b2cd124cdeaca919c7ebb25a7be87b4ef
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkMyOjIyOEYxQzoxOUZFRkIxOjIzODdGRTA6NkE1MzY4ODgiLCJ2aXNpdG9yX2lkIjoiODUwMjkzODA4OTg3ODE1MzM1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac541d02f3a3691c5057ea3f4ed704adf19b19e43528e5d2c7dd7b39b24c19f03a
hovercard-subject-tagpull_request:3828430080
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/modelstudioai/cli/pull/40/files
twitter:imagehttps://avatars.githubusercontent.com/u/135810028?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/135810028?s=400&v=4
og:image:altSummary Add a plugin system for bailian-cli with bl plugin install, link, list, and remove Dynamically load plugin commands into the CLI registry so new commands are available without restarting E...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/modelstudioai/cli git https://github.com/modelstudioai/cli.git
octolytics-dimension-user_id283556804
octolytics-dimension-user_loginmodelstudioai
octolytics-dimension-repository_id1251875798
octolytics-dimension-repository_nwomodelstudioai/cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1251875798
octolytics-dimension-repository_network_root_nwomodelstudioai/cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelstudioai/cli/pull/40/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelstudioai%2Fcli%2Fpull%2F40%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelstudioai%2Fcli%2Fpull%2F40%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=modelstudioai%2Fcli
Reloadhttps://github.com/modelstudioai/cli/pull/40/files
Reloadhttps://github.com/modelstudioai/cli/pull/40/files
Reloadhttps://github.com/modelstudioai/cli/pull/40/files
Please reload this pagehttps://github.com/modelstudioai/cli/pull/40/files
modelstudioai https://github.com/modelstudioai
clihttps://github.com/modelstudioai/cli
Notifications https://github.com/login?return_to=%2Fmodelstudioai%2Fcli
Fork 18 https://github.com/login?return_to=%2Fmodelstudioai%2Fcli
Star 268 https://github.com/login?return_to=%2Fmodelstudioai%2Fcli
Code https://github.com/modelstudioai/cli
Issues 1 https://github.com/modelstudioai/cli/issues
Pull requests 3 https://github.com/modelstudioai/cli/pulls
Discussions https://github.com/modelstudioai/cli/discussions
Actions https://github.com/modelstudioai/cli/actions
Projects https://github.com/modelstudioai/cli/projects
Security and quality 0 https://github.com/modelstudioai/cli/security
Insights https://github.com/modelstudioai/cli/pulse
Code https://github.com/modelstudioai/cli
Issues https://github.com/modelstudioai/cli/issues
Pull requests https://github.com/modelstudioai/cli/pulls
Discussions https://github.com/modelstudioai/cli/discussions
Actions https://github.com/modelstudioai/cli/actions
Projects https://github.com/modelstudioai/cli/projects
Security and quality https://github.com/modelstudioai/cli/security
Insights https://github.com/modelstudioai/cli/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fmodelstudioai%2Fcli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmodelstudioai%2Fcli%2Fissues%2Fnew%2Fchoose
hopelyndhttps://github.com/hopelynd
mainhttps://github.com/modelstudioai/cli/tree/main
feat/pluginhttps://github.com/modelstudioai/cli/tree/feat/plugin
Conversation 0 https://github.com/modelstudioai/cli/pull/40
Commits 8 https://github.com/modelstudioai/cli/pull/40/commits
Checks 1 https://github.com/modelstudioai/cli/pull/40/checks
Files changed https://github.com/modelstudioai/cli/pull/40/files
Please reload this pagehttps://github.com/modelstudioai/cli/pull/40/files
feat(cli): add plugin system with allowlist policy https://github.com/modelstudioai/cli/pull/40/files#top
Show all changes 8 commits https://github.com/modelstudioai/cli/pull/40/files
3c158ea feat(cli): add plugin support hopelynd Jun 2, 2026 https://github.com/modelstudioai/cli/pull/40/commits/3c158ea17f28f961af6ef935fa22dff1042d391e
982006b feat(plugins): implement plugin commands caching and update plugin na… hopelynd Jun 3, 2026 https://github.com/modelstudioai/cli/pull/40/commits/982006b7b47b8a6fdf9e845bfa29d8fc5d0d57ca
7f774a6 refactor(plugin): migrate plugin system to use allowlist policy and i… hopelynd Jun 4, 2026 https://github.com/modelstudioai/cli/pull/40/commits/7f774a6c7c6109045867412451c37ee4f18d4c22
4670dd5 chore(release): bump version to 1.1.3-alpha.0 hopelynd Jun 4, 2026 https://github.com/modelstudioai/cli/pull/40/commits/4670dd5115151f93b529dfe244957f926c762563
5540332 Merge remote-tracking branch 'refs/remotes/origin/main' into feat/plugin hopelynd Jun 5, 2026 https://github.com/modelstudioai/cli/pull/40/commits/55403320cf3ce9189e27558ac753e3468137d837
04c4bca refactor(cli): lazy load command catalog in export-schema command hopelynd Jun 5, 2026 https://github.com/modelstudioai/cli/pull/40/commits/04c4bca7ddb28da259f416bc826f395a6c25aecb
4e0d2f3 merge: merge main branch into feat/plugin hopelynd Jun 9, 2026 https://github.com/modelstudioai/cli/pull/40/commits/4e0d2f3d4450ed78946c4cf765c4530f3b514cff
343d7b7 fix(plugin): fixed e2e test case hopelynd Jun 9, 2026 https://github.com/modelstudioai/cli/pull/40/commits/343d7b7161e9060e2eaaf9fbff77660a30883fbe
Clear filters https://github.com/modelstudioai/cli/pull/40/files
Please reload this pagehttps://github.com/modelstudioai/cli/pull/40/files
Please reload this pagehttps://github.com/modelstudioai/cli/pull/40/files
catalog.ts https://github.com/modelstudioai/cli/pull/40/files#diff-1cea0a47a0a9606ebb016c5158e2550d9b115f048f225637f9a387f1d6d2c906
export-schema.ts https://github.com/modelstudioai/cli/pull/40/files#diff-469d5896b56d1a917f6a96f41ed896b68e2fb245534e87cad7ec8c5282fa907c
install.ts https://github.com/modelstudioai/cli/pull/40/files#diff-05fe67fbcb14e5efe358694792c579599a9e755d9f9daa67f3ae6ad55cc8cbe1
link.ts https://github.com/modelstudioai/cli/pull/40/files#diff-28188278dfdd3ba2f1d9f4a9428808e358903f205d70d00e78668167d7e7495e
list.ts https://github.com/modelstudioai/cli/pull/40/files#diff-8621dd9018b4f769966107ee9a419ed2e59887bc51847283c7b0b4124d2f70dd
remove.ts https://github.com/modelstudioai/cli/pull/40/files#diff-6bc9410b860e5db72ec122b0d7e68ee9e2a96f865654722bc7839c1587bb66c0
load-commands.ts https://github.com/modelstudioai/cli/pull/40/files#diff-99edaf5468f001ad4cf161915dd1a2d572af7b195b4fc2adc8e83022bb34e20b
main.ts https://github.com/modelstudioai/cli/pull/40/files#diff-79567c60a701dd642531b599dee81fc4b0829920af74fd352277f88f65693527
cache.ts https://github.com/modelstudioai/cli/pull/40/files#diff-d16316c2fead89717ac46846f51a32d511905095e949cce58282042fc810f7d6
discover.ts https://github.com/modelstudioai/cli/pull/40/files#diff-b933c7a1ca320e2aa82c3c4e0314b9c79242d403b306a219710cb59e208df606
manager.ts https://github.com/modelstudioai/cli/pull/40/files#diff-eb5353d6056a5b5c15ec9f821e87a9ba920f2882ae8686bcff18d1e937604f6a
npm-sandbox.ts https://github.com/modelstudioai/cli/pull/40/files#diff-cadf4d70b23b2209d72bee66a88bb9b5111efbfd8f6fae09c35f6f493007634c
paths.ts https://github.com/modelstudioai/cli/pull/40/files#diff-4ab9b03b66a4e2269297f46ed25e549bc8968a6bd4103c73aec971a64c692379
policy.ts https://github.com/modelstudioai/cli/pull/40/files#diff-9e7030669d1adef8745606a1fbae839f58ff95baae77cffceee9d16501d16eac
priority.ts https://github.com/modelstudioai/cli/pull/40/files#diff-901fe3b52a91060f819494ccb45f133c442f9b6309a2dc77798689cc79ddf152
scan.ts https://github.com/modelstudioai/cli/pull/40/files#diff-03451f8f56d4e2b70b769037d13492c11a2be050e5c1b9ca8a0059ba33ffcd57
types.ts https://github.com/modelstudioai/cli/pull/40/files#diff-cef61c8913574f6d0810e7579251abdf579b469128734ec1a9b9ee91194b818b
registry.ts https://github.com/modelstudioai/cli/pull/40/files#diff-7b5350682ea94a50c9a49b5d011428997294b8e41892810e2e2e66940b8a922c
plugins.e2e.test.ts https://github.com/modelstudioai/cli/pull/40/files#diff-0d1a6fc77c49b176eee36a70eb80282c3158d5981b5edbfe4a764a12147283de
package.json https://github.com/modelstudioai/cli/pull/40/files#diff-fa0c7e7d6212227e2d51290091325aed60add9c8e346c0814bdab7fd9f4d377d
ping.ts https://github.com/modelstudioai/cli/pull/40/files#diff-dd9e3c1ae6edfb43fca33b25c1b33357e0be09a6e5cdd1c317ee9c3b92e93854
index.ts https://github.com/modelstudioai/cli/pull/40/files#diff-27b7db7614f866e140ad5f341bc933dc03e4711bd70d1ebccd1ba97276a941d2
paths.ts https://github.com/modelstudioai/cli/pull/40/files#diff-a960829e60da3fe62789db9b94059b2b9e1e81afe5d43c9c155a71b12768b023
index.ts https://github.com/modelstudioai/cli/pull/40/files#diff-e083f8955bef70c66b40c3b5ecb982e98798960e6d865a8076f84d95ff549175
plugin.ts https://github.com/modelstudioai/cli/pull/40/files#diff-658c54dab6e788fbc90e1446d2d4376bc9949568bd8cbe2aba5639b7ade128e3
plugin.test.ts https://github.com/modelstudioai/cli/pull/40/files#diff-f57864443d9f8834d6da6da49cb2f7d4ecc0674ffededc8c9675a0f8a0a3837a
index.md https://github.com/modelstudioai/cli/pull/40/files#diff-070e558736da2d76f29e144fc71b276df866570c8acec1a8fe29257441a90e99
plugin.md https://github.com/modelstudioai/cli/pull/40/files#diff-1a956ae82d52f38c847129b89c0f676b02b6f7d0303ced7070abb34c7af94a92
packages/cli/src/commands/catalog.tshttps://github.com/modelstudioai/cli/pull/40/files#diff-1cea0a47a0a9606ebb016c5158e2550d9b115f048f225637f9a387f1d6d2c906
View file https://github.com/modelstudioai/cli/blob/343d7b7161e9060e2eaaf9fbff77660a30883fbe/packages/cli/src/commands/catalog.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelstudioai/cli/pull/40/{{ revealButtonHref }}
https://github.com/modelstudioai/cli/pull/40/files#diff-1cea0a47a0a9606ebb016c5158e2550d9b115f048f225637f9a387f1d6d2c906
https://github.com/modelstudioai/cli/pull/40/files#diff-1cea0a47a0a9606ebb016c5158e2550d9b115f048f225637f9a387f1d6d2c906
https://github.com/modelstudioai/cli/pull/40/files#diff-1cea0a47a0a9606ebb016c5158e2550d9b115f048f225637f9a387f1d6d2c906
https://github.com/modelstudioai/cli/pull/40/files#diff-1cea0a47a0a9606ebb016c5158e2550d9b115f048f225637f9a387f1d6d2c906
packages/cli/src/commands/config/export-schema.tshttps://github.com/modelstudioai/cli/pull/40/files#diff-469d5896b56d1a917f6a96f41ed896b68e2fb245534e87cad7ec8c5282fa907c
View file https://github.com/modelstudioai/cli/blob/343d7b7161e9060e2eaaf9fbff77660a30883fbe/packages/cli/src/commands/config/export-schema.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelstudioai/cli/pull/40/{{ revealButtonHref }}
https://github.com/modelstudioai/cli/pull/40/files#diff-469d5896b56d1a917f6a96f41ed896b68e2fb245534e87cad7ec8c5282fa907c
https://github.com/modelstudioai/cli/pull/40/files#diff-469d5896b56d1a917f6a96f41ed896b68e2fb245534e87cad7ec8c5282fa907c
https://github.com/modelstudioai/cli/pull/40/files#diff-469d5896b56d1a917f6a96f41ed896b68e2fb245534e87cad7ec8c5282fa907c
https://github.com/modelstudioai/cli/pull/40/files#diff-469d5896b56d1a917f6a96f41ed896b68e2fb245534e87cad7ec8c5282fa907c
packages/cli/src/commands/plugin/install.tshttps://github.com/modelstudioai/cli/pull/40/files#diff-05fe67fbcb14e5efe358694792c579599a9e755d9f9daa67f3ae6ad55cc8cbe1
View file https://github.com/modelstudioai/cli/blob/343d7b7161e9060e2eaaf9fbff77660a30883fbe/packages/cli/src/commands/plugin/install.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelstudioai/cli/pull/40/{{ revealButtonHref }}
packages/cli/src/commands/plugin/link.tshttps://github.com/modelstudioai/cli/pull/40/files#diff-28188278dfdd3ba2f1d9f4a9428808e358903f205d70d00e78668167d7e7495e
View file https://github.com/modelstudioai/cli/blob/343d7b7161e9060e2eaaf9fbff77660a30883fbe/packages/cli/src/commands/plugin/link.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelstudioai/cli/pull/40/{{ revealButtonHref }}
packages/cli/src/commands/plugin/list.tshttps://github.com/modelstudioai/cli/pull/40/files#diff-8621dd9018b4f769966107ee9a419ed2e59887bc51847283c7b0b4124d2f70dd
View file https://github.com/modelstudioai/cli/blob/343d7b7161e9060e2eaaf9fbff77660a30883fbe/packages/cli/src/commands/plugin/list.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelstudioai/cli/pull/40/{{ revealButtonHref }}
packages/cli/src/commands/plugin/remove.tshttps://github.com/modelstudioai/cli/pull/40/files#diff-6bc9410b860e5db72ec122b0d7e68ee9e2a96f865654722bc7839c1587bb66c0
View file https://github.com/modelstudioai/cli/blob/343d7b7161e9060e2eaaf9fbff77660a30883fbe/packages/cli/src/commands/plugin/remove.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelstudioai/cli/pull/40/{{ revealButtonHref }}
packages/cli/src/load-commands.tshttps://github.com/modelstudioai/cli/pull/40/files#diff-99edaf5468f001ad4cf161915dd1a2d572af7b195b4fc2adc8e83022bb34e20b
View file https://github.com/modelstudioai/cli/blob/343d7b7161e9060e2eaaf9fbff77660a30883fbe/packages/cli/src/load-commands.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelstudioai/cli/pull/40/{{ revealButtonHref }}
Please reload this pagehttps://github.com/modelstudioai/cli/pull/40/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.