-
Couldn't load subscription status.
- Fork 11
chore: cli commands for api plugin install & generation #1352
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 all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
d9c30ef
add CONFIG_MODULE_HOME env var to hold config files
pujitm 87a9173
scaffold config registry & `ApiStateConfig`
pujitm 1a6da27
provide CONFIG_MODULES_HOME to plugins
pujitm b1a86fa
add persistence to connect config
pujitm e20cbdf
rm @unraid/api-config from the api
pujitm 53d2f94
load config on startup
pujitm bf40b7f
resolve pnpm lockfile
pujitm 86cd4b4
re-connect plugin interface
pujitm 5b76f18
rm `graphQLSchema` from plugin module validation
pujitm 7e4aee6
us ts modules in unraid-api-plugin-connect
pujitm e0fe0f4
Merge branch 'main' into feat/config-module
pujitm a791d54
rm `PluginService::getSchemaExtension`
pujitm c7a7711
translate myservers.cfg to connect.json on init
pujitm 904d06f
add cli command to add/rm plugins
pujitm db4f475
fix: api crash during init when docker is disabled
pujitm 0607319
create generator for api plugins
pujitm 416f6ea
move generator templates to separate files
pujitm 84180e5
make template files valid typescript
pujitm b64d4ea
add type safety to template files in generator
pujitm 97ccaed
make generator cli next steps dynamic
pujitm f292004
scope connect persistence changes to connect config feature
pujitm 775688e
implement `OnModuleInit` in config persisters
pujitm 38697d7
rm zod from plugins
pujitm 6d7e861
refactor LogService to not be strict about what it accepts
pujitm acf1dbf
refactor: include stack trace in plugin.command errors
pujitm 41d5ac5
make `persist` writeFile async in generated plugins
pujitm c90fa36
make `ConnectConfigPersister` sane
pujitm f0d4b27
add stack trace when config file doesn't exist
pujitm 1ceb65d
improve plugin name validation in generator
pujitm 90a3a16
replace custom ini parser with base parser from `ini` pkg
pujitm 938bc6d
add `unraidVersion` config to generated package.json
pujitm c9d269f
improve package name validation in generator
pujitm 5540616
change mkdir call in api startup to async
pujitm 481b635
refactor plugin commands into a module
pujitm e78056a
add `persistIfChanged` helper
pujitm c6fcb00
add error handling when loading config in `persist`
pujitm 910e161
fix returned `version` from `DependencyService.addPeerDependency`
pujitm 5f87b7a
improve wip config helpers
pujitm 758dd34
rm `ConfigRegistry`
pujitm fb07522
export ScheduledConfigPersister
pujitm d7817b5
clean up config.interface
pujitm c368e31
add nest lifecycle interfaces to `ScheduledConfigPersistence`
pujitm aab0a48
rename `CONFIG_MODULES_HOME` to `PATHS_CONFIG_MODULES`
pujitm 7b08589
fix validation in config.persistence
pujitm 7053070
add LogService and PM2Service to plugin cli module
pujitm fb2d03e
correct config.interface -> validate to async
pujitm 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| [api] | ||
| version="4.4.1" | ||
| version="4.6.6" | ||
| extraOrigins="https://google.com,https://test.com" | ||
| [local] | ||
| sandbox="yes" | ||
|
|
||
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,23 @@ | ||
| { | ||
| "demo": "2025-04-21T14:27:27.631Z", | ||
| "wanaccess": "yes", | ||
| "wanport": "8443", | ||
| "upnpEnabled": "no", | ||
| "apikey": "_______________________BIG_API_KEY_HERE_________________________", | ||
| "localApiKey": "_______________________LOCAL_API_KEY_HERE_________________________", | ||
| "email": "test@example.com", | ||
| "username": "zspearmint", | ||
| "avatar": "https://via.placeholder.com/200", | ||
| "regWizTime": "1611175408732_0951-1653-3509-FBA155FA23C0", | ||
| "accesstoken": "", | ||
| "idtoken": "", | ||
| "refreshtoken": "", | ||
| "dynamicRemoteAccessType": "DISABLED", | ||
| "ssoSubIds": "", | ||
| "version": "4.6.6", | ||
| "extraOrigins": [ | ||
| "https://google.com", | ||
| "https://test.com" | ||
| ], | ||
| "sandbox": "yes" | ||
| } |
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
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.