11 Commits
Author SHA1 Message Date
XTsatandXTsat a084409cfa feat(dashboard): list plugins with available updates first (#11486)
* feat(dashboard): list plugins with available updates first

The update check runs in the background after the installed plugin grid
renders, so a plugin with a new version could sit anywhere in the
alphabetical list and be easy to miss. Order that grid so entries with an
available update lead it, then the user's pinned plugins in their pinned
order, then the remaining plugins in their original order.

Refs #11437

* fix(dashboard): drop plugin update checks superseded by a newer one

checkUpdate() awaits market data before writing has_update, so two
overlapping runs (a market refresh or a source switch landing on top of
the background check) can apply in the wrong order: the older snapshot
finishes last and restores stale flags. The installed plugin grid sorts
on that flag, so plugins end up in the wrong part of the list.

Tag each run with a generation counter and skip the result once a newer
run has started, matching the generation pattern used elsewhere in the
dashboard.

---------

Co-authored-by: XTsat <XTsat@users.noreply.github.com>
2026-11-29 21:12:23 +08:00
Soulter 3277732ac6 fix(dashboard): streamline plugin updates (#11488)
* fix(dashboard): streamline plugin updates

* fix(dashboard): show update loading in the confirmation dialog

* fix(dashboard): remove plugin operation logs dialog
2026-11-29 16:27:49 +08:00
Soulter ac25fb8d98 fix(dashboard): show changelogs directly in plugin update dialogs (#11482) 2026-11-29 14:44:31 +08:00
Soulter 0e2a08baa5 feat: preview plugin changelogs before updating (#11481)
* feat: preview plugin changelogs before updating

* fix(dashboard): expand the plugin changelog dialog
2026-11-29 14:25:21 +08:00
Soulter 59befcd8d0 fix(webui): keep the All marketplace filter visible (#11376) 2026-11-25 23:40:55 +08:00
dd0128455c 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>
2026-11-25 21:28:20 +08:00
Yukari-LilyandSoulter 841295fa93 fix: resolve executable builtin tools for delegated sessions (#11335)
* fix: resolve executable builtin tools for delegated sessions

* revert: resolve executable builtin tools for delegated sessions

This reverts commit 078ba3cfee.

* refactor(agent): let runtimes own their tools

Remove the shared builtin tool registry and construct runtime tools where they are used. Delegate the parent's executable tool instances and list only plugin tools in the dashboard's Function Tools panel.

* refactor(agent): preserve executable tools across schema modes

---------

Co-authored-by: Soulter <905617992@qq.com>
2026-11-23 22:57:15 +08:00
Soulter 3a93c9a30c feat(plugin): add interactive plugin message views (#11179)
* feat(chatui): add plugin views and shared view bridge

* fix(chatui): return fixed public messages for view errors

* feat(chatui): add tabbed workbench and resident plugin views

* fix(chatui): persist session workbenches in unified preferences

* fix: refresh workbench API docs and preserve Gemini user agent

* refactor: gate UI views on platform interaction capability

* docs: organize plugin views guides and document bridge types

* refactor: separate tabbed workbench from message views
2026-11-17 20:43:53 +08:00
Soulter 736b1f1bbc fix(dashboard): simplify local isolation and improve usage documentation (#10487)
* fix(dashboard): simplify local isolation controls and setup guidance

* docs: organize plugin and built-in AI guides

* docs: expand plugin guides for newcomers

* docs: refresh AI and extension guides with current UI screenshots

* docs: remove WebUI route details from usage guides
2026-10-10 22:11:31 +08:00
Soulter 553096b0c1 docs: sync guides with current WebUI navigation (#10093) 2026-09-15 22:10:21 +08:00
+36 fc33b3eb68 docs: transfer AstrBotDevs/AstrBot-docs to AstrBotDevs/AstrBot (#5960)
* docs: transfer AstrBotDevs/AstrBot-docs to AstrBotDevs/AstrBot
* refactor: reorder imports and improve type hints in sync_docs_to_wiki.py and upload_doc_images_to_r2.py
* feat: add GitHub Actions workflow to sync wiki with documentation

Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
Co-authored-by: anka-afk <110004162+anka-afk@users.noreply.github.com>
Co-authored-by: zouyonghe <62183434+zouyonghe@users.noreply.github.com>
Co-authored-by: shuiping233 <49360196+shuiping233@users.noreply.github.com>
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com>
Co-authored-by: Sjshi763 <179909421+Sjshi763@users.noreply.github.com>
Co-authored-by: xiewoc <70128845+xiewoc@users.noreply.github.com>
Co-authored-by: QingFeng-awa <151742581+QingFeng-awa@users.noreply.github.com>
Co-authored-by: PaloMiku <96452465+PaloMiku@users.noreply.github.com>
Co-authored-by: shangxueink <138397030+shangxueink@users.noreply.github.com>
Co-authored-by: IGCrystal-A <244300990+IGCrystal-A@users.noreply.github.com>
Co-authored-by: RC-CHN <67079377+RC-CHN@users.noreply.github.com>
Co-authored-by: MC090610 <113341105+MC090610@users.noreply.github.com>
Co-authored-by: Waterwzy <196913419+Waterwzy@users.noreply.github.com>
Co-authored-by: Lanhuace-Wan <186303160+Lanhuace-Wan@users.noreply.github.com>
Co-authored-by: LiAlH4qwq <61769640+LiAlH4qwq@users.noreply.github.com>
Co-authored-by: HSOS6 <209910899+HSOS6@users.noreply.github.com>
Co-authored-by: th-dd <162813557+th-dd@users.noreply.github.com>
Co-authored-by: miaoxutao123 <81676466+miaoxutao123@users.noreply.github.com>
Co-authored-by: nuomicici <143102889+nuomicici@users.noreply.github.com>
Co-authored-by: nasyt233 <210103278+nasyt233@users.noreply.github.com>
Co-authored-by: jlugjb <7426462+jlugjb@users.noreply.github.com>
Co-authored-by: Raven95676 <176760093+Raven95676@users.noreply.github.com>
Co-authored-by: Futureppo <180109455+Futureppo@users.noreply.github.com>
Co-authored-by: MliKiowa <61873808+MliKiowa@users.noreply.github.com>
Co-authored-by: Fridemn <150212937+Fridemn@users.noreply.github.com>
Co-authored-by: BakaCookie520 <138355736+BakaCookie520@users.noreply.github.com>
Co-authored-by: YumeYuka <125112916+YumeYuka@users.noreply.github.com>
Co-authored-by: xming521 <32786500+xming521@users.noreply.github.com>
Co-authored-by: ywh555hhh <121592812+ywh555hhh@users.noreply.github.com>
Co-authored-by: stevessr <89645372+stevessr@users.noreply.github.com>
Co-authored-by: roeseth <41995115+roeseth@users.noreply.github.com>
Co-authored-by: ikun-1145141 <265925499+ikun-1145141@users.noreply.github.com>
Co-authored-by: evpeople <54983536+evpeople@users.noreply.github.com>
Co-authored-by: Yue-bin <60509781+Yue-bin@users.noreply.github.com>
Co-authored-by: W1ndys <109416673+W1ndys@users.noreply.github.com>
Co-authored-by: TheFurina <218887821+TheFurina@users.noreply.github.com>
Co-authored-by: Seayon <12275933+Seayon@users.noreply.github.com>
Co-authored-by: OnlyblackTea <38585636+OnlyblackTea@users.noreply.github.com>
Co-authored-by: ocetars <74854972+ocetars@users.noreply.github.com>
Co-authored-by: railgun19457 <117180744+railgun19457@users.noreply.github.com>
Co-authored-by: JunieXD <107397009+JunieXD@users.noreply.github.com>
Co-authored-by: advent259141 <197440256+advent259141@users.noreply.github.com>
Co-authored-by: Doge2077 <91442300+Doge2077@users.noreply.github.com>
Co-authored-by: Bocity <23430545+Bocity@users.noreply.github.com>
Co-authored-by: Aurora-xk <192227833+Aurora-xk@users.noreply.github.com>
2026-03-09 23:38:21 +08:00