Skip to content

feat(manifest): add an informational author - #2

Merged
0xJacky merged 1 commit into
mainfrom
feat/manifest-author
Nov 28, 2026
Merged

0xJacky merged 1 commit into
mainfrom
feat/manifest-author

Conversation

@0xJacky

@0xJacky 0xJacky commented Nov 28, 2026

Copy link
Copy Markdown
Member

Adds an optional author string to the manifest (Manifest.author = 34 in manifest.proto, regenerated, and plugin.schema.json).

It is informational. The official catalog lists a community plugin by the GitHub owner of its repository, not by this field, and the developer portal's submission and release checks warn when author names someone else. This follows how Obsidian treats manifest.author against its registry entry, rather than making it an identity the way VS Code's publisher or Raycast's author are: identity already comes from the repository owner.

make check passes (schema/proto parity, generated code, tests). The manifest guide is updated in nginx-ui.

🤖 Generated with Claude Code

plugin.json had no author, so one a plugin carried was undocumented and
read by nothing. author is now an optional string. It is informational:
the official catalog lists a community plugin by the GitHub owner of its
repository, and the developer portal warns when the two differ.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@0xJacky
0xJacky merged commit 9494b62 into main Nov 28, 2026
1 check passed
@0xJacky
0xJacky deleted the feat/manifest-author branch November 28, 2026 15:43
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>
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>
0xJacky added a commit to nginxui/plugin-sdk-go that referenced this pull request Dec 5, 2026
* feat: serve plugin.settings.test through Plugin.TestSettings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore: sync the manifest author from plugin-spec

plugin-spec added an informational author (Manifest.author = 34) in
nginxui/plugin-spec#2. Copy the regenerated pb/manifest.pb.go and mirror
the field in protocol.Manifest so pb/ stays a verbatim copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore: sync pb with plugin-spec and document the save binding

Copy gen/go of nginxui/plugin-spec#3 rebased onto main. It brings
HostSite.server_names from plugin-spec#4, so protocol.HostSite gains
ServerNames, and the bound_to comments now describe that a save keeps a
stored secret only while the settings its bound_to lists are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore: sync pb with plugin-spec

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore: sync pb with plugin-spec

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0xJacky added a commit to 0xJacky/nginx-ui that referenced this pull request Dec 5, 2026
…#2188)

* feat(plugin): let the host test candidate plugin settings

A settings panel only ever holds the redaction placeholder of a stored
secret, so it cannot test a connection itself. Add an opt-in host hook:
POST /api/plugins/:id/settings/test runs behind the same secure session and
demo guards as saving, merges the stored secrets into the candidate
settings and calls plugin.settings.test on the plugin that declares
settings_schema.test. The candidate is never stored or returned; the
answer is a bounded { ok, message, field } scrubbed of the secret values.

A stored secret is merged only while every setting it is bound to keeps its
saved value (bound_to, every other setting by default), so a test cannot
pair a stored secret with a new destination. Saving is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(plugin): keep the settings test slot until the plugin call ends

The plugin is never told that a call was abandoned, so a caller who aborts
and retries must not free the one-test-per-plugin slot early. Run the call
detached from the request with the test timeout, correct the documented
timeout range and cover more binding cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(plugin): sync the contract with nginxui/plugin-spec#3

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>

* docs(plugin): translate the settings test into zh_CN and zh_TW

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(plugin): enforce bound_to on save for secrets that declare it

A save that keeps a stored secret, by the placeholder or a missing key,
is refused with 55034 while a setting the secret's bound_to lists differs
from its saved value (after defaults). A typed secret is always accepted
and never compared with the stored one. Secrets without bound_to save as
before; a settings test still binds them to every other setting.

The generated settings form shows the refusal on the secret field and
asks for the secret again. The pb copy is synced with nginxui/plugin-spec#3
rebased onto main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(plugin): test the default fallback of the save binding

A bound field without a stored value counts as its schema default; add
tests for it and correct the comments and docs that called an empty
value a fall back to the default. Document the cluster sync case and
the one-secret-at-a-time refusal, and pin the save route status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(plugin): call a secret setting 机密/機密 in the settings test docs

Follow the term the zh_CN and zh_TW plugin docs use for a secret setting,
where 密钥/金鑰 means a cryptographic key, make the links repeat the
heading, and state the empty-secret and cluster sync cases precisely.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(plugin): call the plugin HTTP endpoint 介面 in zh_TW

Also sync the pb copy with nginxui/plugin-spec#3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.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.

1 participant