| Files | Last commit | Last update |
|---|---|---|
fix: track plugin install source for updates (#9037) * fix: track plugin install source for updates * feat: refine plugin source management flow * test: align plugin update expectation | 5 months ago | |
feat(webui): support marketplace plugin install links (#11375) * feat(webui): support marketplace plugin install links * test(webui): remove install-link frontend test additions * docs: describe WebUI marketplace installation links * fix(webui): clarify source access in install confirmation * fix: use Cloud as the backend-defined default plugin registry * fix(webui): confirm dangerous link installs and reuse source type | 5 days ago | |
feat(plugin): let plugins declare their marketplace category in metadata (#11094) * feat(plugin): declare marketplace category in plugin metadata Plugins could not declare their own marketplace category: metadata.yaml was never read for a category, so the marketplace fell back to review-assigned categories and most plugins ended up in "other". Add a canonical category list (astrbot/core/star/plugin_categories.py), keep the declared value on StarMetadata, and validate it on every metadata entry point (loading, repository inspection, archive inspection, install, update). Unsupported or malformed declarations only log a warning and degrade to "other" so that a typo cannot make a plugin uninstallable. * feat(plugin): expose the category vocabulary over the plugin API /plugins/market/categories used to return an empty list, so the WebUI had to invent its filter entries from whatever slugs a marketplace happened to contain. Return the canonical slug list instead so the marketplace, the WebUI and the runtime share one vocabulary. The response is the existing Ok envelope, so the OpenAPI document and the generated client stay unchanged. * feat(dashboard): rebuild the plugin market category filter The market category select read whatever category values the current registry happened to contain, so unknown or mistyped values created one-off filter entries, competed with search and sort for toolbar width, and showed the raw slug when a translation was missing. Read the vocabulary from /plugins/market/categories instead, keep its order, and collapse unknown values into "other". Replace the select with a single scrollable chip row that hides its scrollbar: pointing at it and using the wheel scrolls the row, and when the chips overflow a toggle on the right expands every category into wrapped rows. Below the small-screen breakpoint the chips take the first line and the sort control wraps onto a second one. The "全部插件" heading is gone, refresh now sits beside the source button, and every supported slug has a label in all four locales. * docs: document plugin metadata category declaration Add the category section to both plugin development guides, the metadata.yaml template in the publishing guide and the marketplace index docs, so plugin authors can find the supported slugs. The Chinese section lives in the current guide (plugin-new.md) to match the English page; the legacy guide is left untouched and the marketplace index link points at the current guide. * feat(plugin): extend the plugin category vocabulary "entertainment" covered 398 plugins in the current registry, mixing in-chat games, connectors for other games and generic entertainment, so the category could not be used to find anything. Keep "entertainment" for generic entertainment that is not a game, keep "group_games" for games whose rules the plugin implements itself, and add "game_integration" for plugins built around another game: connectors, wikis and data lookups, server status and player actions. Add "ai_context" for plugins that shape conversation context across turns (persona, context compression and injection, reply style), which had no home outside "long_term_memory". Order the vocabulary by cluster and keep related slugs adjacent: the AI cluster leads, "long_term_memory" and "knowledge_base" sit directly under it, "platform_adapter" follows "integrations", the entertainment cluster closes the list and "other" stays last. Every locale gets a label for both new slugs so the market filter never falls back to the raw identifier. * docs: clarify the plugin category guidance Drop the claim that categories are no longer assigned during review, write the identifiers in the space-separated spelling (spaces, underscores, hyphens and mixed case are equivalent) and document every category with its localized label and what it is meant for, so plugin authors pick the narrower one. Labels follow the dashboard bundles verbatim, including 外部集成 and AI Conversation, and the table repeats the runtime display order. Adjacent categories state their boundaries explicitly: one-shot text work is "ai_tools", stored memories are "long_term_memory" and external documents are "knowledge_base". Keep the identifier and label columns on one line with a page-scoped style so the spaced identifiers do not wrap mid-phrase. The user guide still described the market filter as six fixed categories; it now follows the plugin's declared category row in both locales. * refactor(dashboard): take market category labels from the slug getMarketCategoryLabel carried a hardcoded English map for the seven original categories, so a missing translation produced a different label style for those seven than for the twelve newer ones (and disagreed with the "never fall back to the raw identifier" promise of the category filter). Drop the map and the raw-category pass-through: an unknown category now always renders as words derived from the slug, which also reads better than the raw value for ad-hoc marketplace categories. * refactor(plugin): shorten the unsupported category warning The warning spelled out all nineteen supported slugs on every emit, so a single typo produced a 336-character log line that pushed the useful part out of view. Keep the message to the offending value and the fallback; the supported list is documented in the plugin development guide. * chore(i18n): drop the unused market category label * fix(plugin): align category normalization with the dashboard - Collapse separator runs so a declaration like "AI - Tools" resolves to ai_tools instead of falling back to other, matching the WebUI normalization. - Append StarMetadata.category so callers that pass later fields positionally keep their bindings. - Load the market category vocabulary without blocking plugin list initialization. - Fold the category unit tests into the manager tests. * docs: clarify the plugin category declaration and the filter move - State that the WebUI and the runtime follow the declared category while the marketplace shows whatever the index copied. - Note that English spellings which normalize to a supported identifier are accepted, unlike localized labels. - Record the old toolbar category dropdown to new chip row mapping in the user docs and the changelog. * docs: spell out the marketplace category index path - Record that index maintainers copy the normalized category slug from metadata.yaml when adding or updating a record, and that the index wins for marketplace display while metadata.yaml wins for the WebUI and the runtime. - Explain in code why an unknown category vocabulary keeps the discovered chips instead of folding them into other. * docs: state that metadata.yaml is the authoritative category source The index holds a snapshot copied at collection time, so a disagreement means the snapshot is stale rather than the index overriding metadata.yaml. * docs: fix the plugin metadata sample in the publish guide - Point category at the identifier list instead of a dangling "see docs below" reference, and default the sample value to other so a copied sample never claims a specific category. - Mark display_name as optional while keeping it uncommented. - Describe tags as matched by marketplace search rather than marketplace categorization, now that category exists. * refactor(plugin): reduce the marketplace category vocabulary to nine Collapse the nineteen-slug category vocabulary into nine buckets: utility, ai_context, entertainment, media, productivity, integration, platform_adapter, provider_adapter and other. The earlier split kept the AI cluster, the memory and knowledge base entries, the game entries and the automation and security entries apart, which produced categories too small to browse by. The new buckets fold them back into the semantics a plugin author can decide on from the plugin description alone. Update the four dashboard locales, the zh and en developer and user docs, and the normalization test cases that asserted the removed slugs. * feat(plugin): make the marketplace category optional The category is a hint, not a whitelist: a plugin may declare any value, which is normalized to a slug but never rewritten to "other" and never logged as a warning. The list becomes a recommendation that orders the filter row and supplies translated labels, and a value outside it keeps its own filter entry instead of being folded away. Add the game category for plugins that connect to an external game, and give entertainment back to generic fun and in-chat games. Trim the developer docs to the recommended table plus one lead-in sentence, and move the Chinese "optional" headings off the English spelling, updating the anchors that reference them. * feat(plugin): use marketplace source categories * docs(plugin): restore recommended marketplace categories in guides * docs(plugin): keep recommended categories in the development guide * docs(plugin): show how to declare a marketplace category * docs(plugin): clarify the AI conversation category * feat(webui): show marketplace categories as expandable chips --------- Co-authored-by: XTsat <XTsat@users.noreply.github.com> Co-authored-by: Soulter <905617992@qq.com> | 5 days ago |
| Files | Last commit | Last update |
|---|---|---|
| 5 months ago | ||
| 5 days ago | ||
| 5 days ago |