* feat(space-share): share prompts, skills, remote MCPs and local plugins to LangBot Space (LANG-439)
- Prompt library dialog on Pipeline (messaging) and Agent (agent) prompt
fields: search, preview, replace/append, favorites tied to the bound
LangBot Account; share the current prompt for review
- Share to Space for Skills (file list + credential scan) and remote MCP
servers (credentials become ${VAR} placeholders before anything leaves
Core; stdio stays private)
- Community MCP installs with required inputs are created disabled and the
detail page lists the placeholders to fill (unfilled_inputs)
- Locally / GitHub-installed plugins share their exact installed .lbpkg via
the existing space-upload flow
- docs (zh/en/ja) and dev-docs contract note
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* fix(web): use a star for prompt favorites (LANG-439)
The heart is the anonymous extension like; favorites need a LangBot Account.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* fix(i18n): call messaging prompts "Messaging" in English (LANG-439)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* feat(web): marketplace type tiles matching Space, shadcn prompt list (LANG-439)
- the in-app marketplace shows All / Plugins / MCP / Skills as tiles with a
description and count, plugin components and Runner usage as ToggleGroup
chips; the Filters popover is gone (same layout as space.langbot.app)
- prompt library rows use the shadcn Item component
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* style(market): soften extension type tiles; type-tinted selected state
Drop the dark outline/ring on the selected tile. Idle tiles use a muted
fill; the selected tile gets a soft type-tinted fill with an inset ring
and a solid icon badge.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* style(market): use a fixed blue for the selected All tile
The theme primary is near-black in Core, which brought back the dark
selected border on the All tile.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* feat(web): switch market type on press and keep results while loading
Type tiles switch on mouse press (keyboard/touch still use click).
Filter changes keep the current cards dimmed until the new page arrives,
and stale responses are ignored.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* feat(web): apply library prompts in the WebUI language; one-language share note
- Prompt library applies the version matching the WebUI language (exact
-> same family -> en_US -> original), with a language switcher.
- Share dialogs say one language is enough; other languages are
translated automatically after upload.
- extractI18nObject falls back across Chinese scripts and to any
available language instead of rendering an empty label.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* feat(web): one-click LangBot Account binding from share and library
- Share dialogs: the 'bind a LangBot Account' state now has a button that
starts the bind flow and returns to the same page; the creator-profile
state gets a button too, with clearer copy.
- Prompt library: when no account is bound, the preview shows a
'bind to favorite' button instead of only a disabled tab tooltip.
- Shared useSpaceBind hook.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* feat(web): friendly empty state for templates; contributors no longer tag
- Empty template list: short, playful 'on their way, be the first to
share' state (Space /templates, Core prompt library).
- Share dialogs drop the tags field; Space assigns tags during review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* feat(space-share): update an existing item; clearer identifier field
- Share dialogs list the bound account's published items of the same type
(prompts: same kind) and offer 'Update existing': pick an identifier,
metadata is prefilled, a changelog is asked for and the submission
becomes the next version. Sharing something with the same identifier
preselects update mode.
- The identifier field now looks like a normal input with the fixed
'@creator/' prefix and a format hint.
- GET /api/v1/space-share/items proxies the Space owner item list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2.6 KiB
Sharing content to LangBot Space (LANG-439)
Core lets members share Workspace content to LangBot Space and use the Space prompt library. Space owns review and publication; Core only packages, redacts and forwards.
Core surface
/api/v1/space-share/* (pkg/api/http/controller/groups/space_share.py, helpers in pkg/api/http/service/space_share.py):
| Route | Purpose |
|---|---|
GET /context |
Bound LangBot Account and creator slug |
GET /prompts/library, POST /prompts/library/<a>/<n>/use |
Proxy of the public Space prompt library |
GET /prompts/favorites, PUT/DELETE /prompts/favorites/<a>/<n> |
Favorites of the bound account (requesting member first, then the Workspace owner) |
POST /prompts/preview, POST /prompts |
Validate / submit a prompt (kind: messaging or agent) |
GET /skills/<name>/preview, POST /skills/<name> |
File list + credential scan / submit the current skill revision |
POST /mcp/<name>/preview, POST /mcp/<name> |
Redacted remote MCP config / submit it |
GET /submissions |
The account's content submissions on Space |
Locally installed or GitHub-installed plugins reuse /plugins/<a>/<n>/space-upload; the shared archive is the exact persisted installation artifact (PluginRuntimeConnector.get_installed_plugin_package), so overrides and GitHub sync do not apply.
Rules
- Credentials never leave Core. Remote MCP headers, URL query parameters and path segments whose key or value looks like a credential become
${VAR}placeholders declared inrequired_inputs; a final scan refuses anything that still looks like a secret. stdio MCP servers cannot be shared (first phase). - Prompts and skills are scanned for credentials (block) and personal/internal data (requires
acknowledge_warnings). - Marketplace MCP installs with
required_inputsare created disabled;GET /api/v1/mcp/servers/<name>reportsunfilled_inputs(names only) so the WebUI can ask for values. - The Prompt editor shows the library/share toolbar only when the form passes
systemContext.prompt_library_kind(messagingfrom Pipelines,agentfrom Agents).
Space contract
POST /api/v1/marketplace/content-submissions (multipart item_type, metadata JSON incl. payload, optional skill file). Space validates again, stores the artifact, and dispatches content-review-request-v1 on the plugin review webhook. Verdicts are content-review-verdict-v1 signed with the plugin reviewer keys. A passed prompt publishes immediately; skills/MCPs publish for whitelisted submitters or after admin approval; a failed review rejects with the report summary. See the langbot-space repository for details.