Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Dec 5, 2026
0xJacky
added a commit
to 0xJacky/nginx-ui
that referenced
this pull request
Dec 5, 2026
Copy gen/go of nginxui/plugin-spec#3 verbatim. Spec main also carries the informational Manifest.author (nginxui/plugin-spec#2), so mirror it in protocol.Manifest to keep the alignment test green. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
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.
Adds the contract for a settings "test connection" hook, as implemented in nginx-ui draft 0xJacky/nginx-ui#2188.
What it adds
lifecycle.proto:rpc SettingsTestwithrpc_name = "plugin.settings.test", plusPluginSettingsTestRequest { Struct settings }andPluginSettingsTestResponse { bool ok; string message }. The host sends it only to a plugin whose manifest declaressettings_schema.test. A plugin may also answer-32003withdata.field.manifest.protoandplugin.schema.json:settings_schema.test(SettingsTest { int32 timeout_seconds }, 0 to 60, where 0 or absent means 15). If it is there, the plugin serves the hook.settings[].bound_to(list of setting keys, forsecretfields). During a test the host passes a stored secret to the plugin only while every field it is bound to still has its saved value. Absent means it is bound to every other field. Saving is unchanged.gen/: regenerated withmake generate(pinned buf 1.73.0, protoc-gen-go 1.36.12, protoc-gen-go-grpc 1.6.2).gen/methods.jsongainsplugin.settings.test.53-plugin-settings-test-valid.jsonand54-plugin-settings-test-invalid-config.json.The change is additive and
api_versionstays 1. Older hosts ignore the new manifest members, and the schema used to rejecttestandbound_to.Landing order
Plugin.TestSettings) and feat: type settings tests and the settings panel props plugin-sdk-web#3 (SettingsTestResult,SettingsPanelProps).nginx-ui and plugin-sdk-go keep verbatim copies of
gen/go/nginxui/plugin/v1. Their PRs copy this branch's output byte for byte, including theauthorfield from #2 that neither had synced yet.Checks
make checkpasses locally: buf lint and format, the generated code and methods.json are current, and the tests of both Go modules pass.🤖 Generated with Claude Code