Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix: mark subproject commits as dirty for worktree consistency

nirholas9e05c383fcf4
diff --git a/.github/prompts/README.md b/.github/prompts/README.md
index 00aed44ca..0bd744b7e 100644
--- a/.github/prompts/README.md
+++ b/.github/prompts/README.md
@@ -42,7 +42,7 @@ Prompts are prioritized by the product stack from [memory/project_vision.md](../
### Layer 5 — Embed in Claude.ai & LobeHub (the novel integration)
- [stack-19-artifacts-single-file.md](stack-19-artifacts-single-file.md)
-- [stack-20-lobehub-plugin.md](stack-20-lobehub-plugin.md)
+- [stack-20-chat-plugin.md](stack-20-chat-plugin.md)
- [stack-21-host-chat-bridge.md](stack-21-host-chat-bridge.md)
- [stack-22-mcp-embodied-responses.md](stack-22-mcp-embodied-responses.md)
diff --git a/.github/prompts/stack-20-lobehub-plugin.md b/.github/prompts/stack-20-lobehub-plugin.md
index ed30cf338..6f55c5831 100644
--- a/.github/prompts/stack-20-lobehub-plugin.md
+++ b/.github/prompts/stack-20-lobehub-plugin.md
@@ -13,7 +13,7 @@ User maintains a LobeHub fork. Per priority stack, an agent from three.ws must a
### Plugin manifest
-Host at `https://three.ws/.well-known/lobehub-plugin.json`:
+Host at `https://three.ws/.well-known/chat-plugin.json`:
```json
{
diff --git a/.gitignore b/.gitignore
index 404baa55d..5b57a9c24 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,3 +18,4 @@ character-studio/public/loot-assets
# Animation build cache
public/animations/clips/.input-hashes.json
+Handshake
diff --git a/Handshake b/Handshake
deleted file mode 160000
index 1ea6e332b..000000000
--- a/Handshake
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 1ea6e332b87fedef8faae0b71650e573de8fd7f7
diff --git a/lobehub-plugin/.gitignore b/chat-plugin/.gitignore
similarity index 100%
rename from lobehub-plugin/.gitignore
rename to chat-plugin/.gitignore
diff --git a/lobehub-plugin/LICENSE b/chat-plugin/LICENSE
similarity index 100%
rename from lobehub-plugin/LICENSE
rename to chat-plugin/LICENSE
diff --git a/lobehub-plugin/README.md b/chat-plugin/README.md
similarity index 95%
rename from lobehub-plugin/README.md
rename to chat-plugin/README.md
index 433b3fda7..49ff64ff1 100644
--- a/lobehub-plugin/README.md
+++ b/chat-plugin/README.md
@@ -1,4 +1,4 @@
-# @3dagent/lobehub-plugin
+# @3dagent/chat-plugin
Render an embodied 3D avatar in the LobeChat sidebar. The avatar reacts to the LLM's tool calls — speaking, gesturing, and emoting — in real time.
@@ -11,7 +11,7 @@ Render an embodied 3D avatar in the LobeChat sidebar. The avatar reacts to the L
1. In LobeChat, open **Plugins → Plugin Store → Custom plugins**.
2. Paste the manifest URL:
```
- https://three.ws/.well-known/lobehub-plugin.json
+ https://three.ws/.well-known/chat-plugin.json
```
3. Click **Install**. LobeChat will show the plugin settings dialog.
4. Enter your **Agent ID** (UUID from the three.ws dashboard at `https://three.ws/dashboard`).
@@ -100,14 +100,14 @@ To test the plugin without running LobeChat:
```bash
# From repo root:
npm run build:lib # produces dist-lib/agent-3d.js (the <agent-3d> web component)
-npm --prefix lobehub-plugin install
-npm --prefix lobehub-plugin run build
+npm --prefix chat-plugin install
+npm --prefix chat-plugin run build
# Serve the repo root:
python3 -m http.server 8080
# Open in browser:
-open http://localhost:8080/lobehub-plugin/dev/?agent=<your-agent-id>
+open http://localhost:8080/chat-plugin/dev/?agent=<your-agent-id>
```
The harness shows the agent iframe on the left and a control panel on the right. Click **Inject speak** to fire a fake assistant message and verify the avatar reacts.
@@ -117,7 +117,7 @@ The harness shows the agent iframe on the left and a control panel on the right.
## Build
```bash
-cd lobehub-plugin
+cd chat-plugin
npm install
npm run build # → dist/bundle.js
npm run type-check # TypeScript strict check
diff --git a/lobehub-plugin/assets/icon-256.svg b/chat-plugin/assets/icon-256.svg
similarity index 100%
rename from lobehub-plugin/assets/icon-256.svg
rename to chat-plugin/assets/icon-256.svg
diff --git a/lobehub-plugin/assets/screenshots/README.txt b/chat-plugin/assets/screenshots/README.txt
similarity index 100%
rename from lobehub-plugin/assets/screenshots/README.txt
rename to chat-plugin/assets/screenshots/README.txt
diff --git a/lobehub-plugin/dev/index.html b/chat-plugin/dev/index.html
similarity index 100%
rename from lobehub-plugin/dev/index.html
rename to chat-plugin/dev/index.html
diff --git a/lobehub-plugin/manifest.json b/chat-plugin/manifest.json
similarity index 100%
rename from lobehub-plugin/manifest.json
rename to chat-plugin/manifest.json
diff --git a/lobehub-plugin/package-lock.json b/chat-plugin/package-lock.json
similarity index 99%
rename from lobehub-plugin/package-lock.json
rename to chat-plugin/package-lock.json
index 6c42f5522..92f897a45 100644
--- a/lobehub-plugin/package-lock.json
+++ b/chat-plugin/package-lock.json
@@ -1,11 +1,11 @@
{
- "name": "@3dagent/lobehub-plugin",
+ "name": "@3dagent/chat-plugin",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
- "name": "@3dagent/lobehub-plugin",
+ "name": "@3dagent/chat-plugin",
"version": "1.0.0",
"license": "MIT",
"dependencies": {
diff --git a/lobehub-plugin/package.json b/chat-plugin/package.json
similarity index 96%
rename from lobehub-plugin/package.json
rename to chat-plugin/package.json
index eed6b84cf..b4a76e4a8 100644
--- a/lobehub-plugin/package.json
+++ b/chat-plugin/package.json
@@ -1,5 +1,5 @@
{
- "name": "@3dagent/lobehub-plugin",
+ "name": "@3dagent/chat-plugin",
"version": "1.0.0",
"description": "three.ws for LobeHub — sidebar plugin that renders an embodied avatar",
"private": true,
diff --git a/lobehub-plugin/src/AgentPane.tsx b/chat-plugin/src/AgentPane.tsx
similarity index 100%
rename from lobehub-plugin/src/AgentPane.tsx
rename to chat-plugin/src/AgentPane.tsx
diff --git a/lobehub-plugin/src/bridge.ts b/chat-plugin/src/bridge.ts
similarity index 100%
rename from lobehub-plugin/src/bridge.ts
rename to chat-plugin/src/bridge.ts
diff --git a/lobehub-plugin/src/config-schema.ts b/chat-plugin/src/config-schema.ts
similarity index 100%
rename from lobehub-plugin/src/config-schema.ts
rename to chat-plugin/src/config-schema.ts
diff --git a/lobehub-plugin/src/index.ts b/chat-plugin/src/index.ts
similarity index 93%
rename from lobehub-plugin/src/index.ts
rename to chat-plugin/src/index.ts
index d777c41fd..de198b32a 100644
--- a/lobehub-plugin/src/index.ts
+++ b/chat-plugin/src/index.ts
@@ -1,5 +1,5 @@
/**
- * @3dagent/lobehub-plugin
+ * @3dagent/chat-plugin
*
* Entry point for the three.ws LobeHub plugin.
* Exports the main React component and configuration.
diff --git a/lobehub-plugin/tsconfig.json b/chat-plugin/tsconfig.json
similarity index 100%
rename from lobehub-plugin/tsconfig.json
rename to chat-plugin/tsconfig.json
diff --git a/prompts/archive/final-integration/01-embed-bridges.md b/prompts/archive/final-integration/01-embed-bridges.md
index 55bef9d8f..43fa1b4ea 100644
--- a/prompts/archive/final-integration/01-embed-bridges.md
+++ b/prompts/archive/final-integration/01-embed-bridges.md
@@ -9,7 +9,7 @@ Sprint-100 mapped two bridge modules to fill this gap:
- `src/embed-host-bridge.js` — iframe ↔ parent `postMessage` transport. Handshake, origin check, request/response routing.
- `src/embed-action-bridge.js` — translates bridge messages into `AgentProtocol` events on the agent side and back out on the parent side.
-**Neither file was ever written.** The [lobehub-plugin/](../../lobehub-plugin/) already assumes these exist — `AgentBridge` in `lobehub-plugin/src/bridge.ts` calls `postMessage` with a schema that needs a matching receiver on the `<agent-3d>` side. Ship both files.
+**Neither file was ever written.** The [chat-plugin/](../../chat-plugin/) already assumes these exist — `AgentBridge` in `chat-plugin/src/bridge.ts` calls `postMessage` with a schema that needs a matching receiver on the `<agent-3d>` side. Ship both files.
## Goal
@@ -30,7 +30,7 @@ Edit (inside uniquely-named anchor only):
- `src/agent-protocol.js` — learn the `ACTION_TYPES` set.
- `src/agent-avatar.js` — learn what actions the performer honors.
-- `lobehub-plugin/src/bridge.ts` — reference for the wire protocol the plugin side already expects.
+- `chat-plugin/src/bridge.ts` — reference for the wire protocol the plugin side already expects.
- `specs/EMBED_SPEC.md` — the embed contract.
## Wire protocol
@@ -128,14 +128,14 @@ if (window !== window.parent) {
Also add a matching `this._embedBridge?.stop()` call inside the existing `disconnectedCallback`, still within the anchor block. The import line belongs outside the `connectedCallback` function — place it inside the anchor block near the existing imports at top of file (use a second anchor `EMBED_BRIDGES_IMPORT` if cleaner).
-Do not import `EmbedHostBridge` here — that's the parent-page side and is consumed externally (from `lobehub-plugin/src/bridge.ts` et al.).
+Do not import `EmbedHostBridge` here — that's the parent-page side and is consumed externally (from `chat-plugin/src/bridge.ts` et al.).
## Deliverables checklist
- [ ] `src/embed-host-bridge.js` created, ~150–250 LOC, JSDoc typed, class `EmbedHostBridge` exported.
- [ ] `src/embed-action-bridge.js` created, ~150–250 LOC, class `EmbedActionBridge` exported.
- [ ] `src/element.js` has exactly one `BEGIN:EMBED_BRIDGES` / `END:EMBED_BRIDGES` anchor block; no edits outside it.
-- [ ] `lobehub-plugin/src/bridge.ts` works against the new wire format (verify by reading — do not edit, that's prompt 05's turf).
+- [ ] `chat-plugin/src/bridge.ts` works against the new wire format (verify by reading — do not edit, that's prompt 05's turf).
- [ ] Handshake, timeout, origin check, subscribe/unsubscribe, error propagation all implemented.
- [ ] No new runtime deps. Use crypto.randomUUID for ids (polyfill only if `typeof crypto.randomUUID !== 'function'`).
- [ ] Prettier pass on all touched files.
@@ -147,7 +147,7 @@ Do not import `EmbedHostBridge` here — that's the parent-page side and is cons
- `node --check src/element.js` passes.
- `npm run build` succeeds with no new warnings.
- Manual check: `git grep -n "EMBED_BRIDGES" src/element.js` returns exactly 2 lines (BEGIN + END) for each anchor (import + mount).
-- Manual check: `git grep -n "EmbedActionBridge\|EmbedHostBridge" src/ lobehub-plugin/src/` shows both modules referenced.
+- Manual check: `git grep -n "EmbedActionBridge\|EmbedHostBridge" src/ chat-plugin/src/` shows both modules referenced.
- Manual sanity: in a browser console at `localhost:3000/agent-embed.html?agent=<id>` inside an iframe, the parent can `postMessage({v:1,source:'agent-host',id:'x',kind:'request',op:'ping'})` and receive a `pong` response.
## Report + archive
diff --git a/prompts/archive/final-integration/05-lobehub-real-integration.md b/prompts/archive/final-integration/05-lobehub-real-integration.md
index 1d1177cd6..d46df292e 100644
--- a/prompts/archive/final-integration/05-lobehub-real-integration.md
+++ b/prompts/archive/final-integration/05-lobehub-real-integration.md
@@ -2,14 +2,14 @@
## Context
-[lobehub-plugin/](../../lobehub-plugin/) is the package that lets LobeChat users drop a three.ws avatar into their chat sidebar. Today it is **scaffolding only**: a manifest that looks right, a React component with `TODO: Hook into Lobe's onAssistantMessage event`, and a bridge that posts messages into a void because the host receiver didn't exist.
+[chat-plugin/](../../chat-plugin/) is the package that lets LobeChat users drop a three.ws avatar into their chat sidebar. Today it is **scaffolding only**: a manifest that looks right, a React component with `TODO: Hook into Lobe's onAssistantMessage event`, and a bridge that posts messages into a void because the host receiver didn't exist.
By the time you run this prompt, the receiver side (prompt 01 — `EmbedActionBridge`) may or may not be complete:
- If `src/embed-action-bridge.js` exists → target the real wire protocol spec documented there.
- If it does not → implement the bridge side against the schema described in `01-embed-bridges.md` (envelope: `{v, source, id, inReplyTo, kind, op, payload}`). Prompt 01 and this prompt are spec-compatible by construction.
-The goal is a **shippable** LobeHub plugin — not a scaffold. When this is done, a LobeChat user can search the plugin registry, install `@3dagent/lobehub-plugin`, paste an agent id, and have an embodied avatar appear in their chat that reacts to assistant messages.
+The goal is a **shippable** LobeHub plugin — not a scaffold. When this is done, a LobeChat user can search the plugin registry, install `@3dagent/chat-plugin`, paste an agent id, and have an embodied avatar appear in their chat that reacts to assistant messages.
## Goal
@@ -18,7 +18,7 @@ Ship an installable LobeHub plugin with:
- A correct manifest matching the current LobeHub plugin schema.
- A React iframe host that resolves an agent id → `<agent-3d>` iframe → working bridge.
- A working hook into LobeChat's message stream (assistant messages → `avatar.speak(...)` with sentiment).
-- Clean build output in `lobehub-plugin/dist/` consumable by LobeChat's plugin runtime.
+- Clean build output in `chat-plugin/dist/` consumable by LobeChat's plugin runtime.
- A local dev harness (a tiny HTML page that simulates the LobeChat host) so we can verify the plugin without running all of LobeChat.
- Submission-ready metadata (icon, screenshots dir, LICENSE, README with install instructions).
@@ -26,8 +26,8 @@ Ship an installable LobeHub plugin with:
Everything under:
-- `lobehub-plugin/**` (except `node_modules/`)
-- `public/.well-known/lobehub-plugin.json` (the manifest served from the three.ws origin for remote-plugin installs)
+- `chat-plugin/**` (except `node_modules/`)
+- `public/.well-known/chat-plugin.json` (the manifest served from the three.ws origin for remote-plugin installs)
- `public/lobehub/iframe/**` (the iframe target referenced by the manifest — create if it doesn't fully exist yet)
## Files read-only
@@ -40,33 +40,33 @@ Everything under:
## Acceptance — what "shippable" means
-1. **Manifest.** `public/.well-known/lobehub-plugin.json` validates against the current LobeHub plugin-manifest JSON Schema. Check the LobeHub docs (<https://lobehub.com/docs/usage/plugins/development>) for the schemaVersion and ensure:
+1. **Manifest.** `public/.well-known/chat-plugin.json` validates against the current LobeHub plugin-manifest JSON Schema. Check the LobeHub docs (<https://lobehub.com/docs/usage/plugins/development>) for the schemaVersion and ensure:
- `identifier` is globally unique (`3d-agent` is reasonable).
- `$schema` points to the canonical URL.
- `api` entries either all resolve to real endpoints or the `api` array is omitted if this is iframe-only.
- `ui.url` points to `https://three.ws/lobehub/iframe/` and that route actually serves HTML.
- `settings` schema matches what the React component reads (`agentId`, `apiOrigin`).
2. **Iframe host.** `public/lobehub/iframe/index.html` renders `<agent-three.ws-id="{{agentId}}">` with correct styling for a 420–640px sidebar frame. Transparent background, no scrollbars, respects the `agentId` query param (the LobeHub host passes settings as querystring or fragment — implement whichever the real manifest spec requires).
-3. **React plugin package.** `lobehub-plugin/src/`:
+3. **React plugin package.** `chat-plugin/src/`:
- `AgentPane.tsx` — remove the `TODO: Hook into Lobe's onAssistantMessage` placeholder. Use whatever `@lobehub/ui` / `@lobehub/chat-plugin-sdk` package exposes for assistant-message observation. If the SDK shape is unstable, document fallback to the `window.addEventListener('lobe:assistantMessage', …)` path explicitly with a README note + a clear code comment explaining why this fallback exists.
- `bridge.ts` — align with the final wire protocol from prompt 01. Every `op` in the manifest's `api` array (`render_agent`, `speak`, `gesture`, `emote`) has a matching bridge method. Handshake, timeout, origin check.
- `config-schema.ts` — export a zod-like validator (or hand-rolled if zod isn't in deps) that guards `PluginSettings`.
- `index.ts` — default export the plugin entry expected by the LobeHub runtime.
4. **Build.**
- - `cd lobehub-plugin && npm install && npm run build` produces `dist/bundle.js` with a tree-shaken, production-minified build.
+ - `cd chat-plugin && npm install && npm run build` produces `dist/bundle.js` with a tree-shaken, production-minified build.
- No warnings in the build output.
- `npm run type-check` passes.
-5. **Dev harness.** `lobehub-plugin/dev/index.html` (new file) loads the built plugin inside a page that mocks the LobeChat host message contract. Include a button to inject a fake assistant message so the avatar can be seen reacting in isolation.
+5. **Dev harness.** `chat-plugin/dev/index.html` (new file) loads the built plugin inside a page that mocks the LobeChat host message contract. Include a button to inject a fake assistant message so the avatar can be seen reacting in isolation.
6. **Docs.**
- - `lobehub-plugin/README.md` — install instructions, config options, troubleshooting, link to the manifest URL for "one-click" install in LobeChat.
+ - `chat-plugin/README.md` — install instructions, config options, troubleshooting, link to the manifest URL for "one-click" install in LobeChat.
- `LICENSE` file (MIT or Apache-2 — match what the rest of the repo uses).
7. **Icons / screenshots.**
- - `lobehub-plugin/assets/icon-256.png` (transparent square, 256×256) — if asset missing, generate a placeholder SVG + note in report that a designed icon needs replacing before launch.
- - `lobehub-plugin/assets/screenshots/` with at least one screenshot referenced by the README.
+ - `chat-plugin/assets/icon-256.png` (transparent square, 256×256) — if asset missing, generate a placeholder SVG + note in report that a designed icon needs replacing before launch.
+ - `chat-plugin/assets/screenshots/` with at least one screenshot referenced by the README.
## Allowed new deps
-`lobehub-plugin/package.json` may add:
+`chat-plugin/package.json` may add:
- `@lobehub/chat-plugin-sdk` (or the current official plugin SDK name — verify on npm at build time).
- `zod` if you use it for config validation — optional.
@@ -87,11 +87,11 @@ Your `bridge.ts` sends requests matching this exact envelope and op set. If you
## Deliverables checklist
-- [ ] Manifest schema-validated and reachable at `/.well-known/lobehub-plugin.json`.
+- [ ] Manifest schema-validated and reachable at `/.well-known/chat-plugin.json`.
- [ ] Iframe host at `/lobehub/iframe/` renders correctly in isolation.
- [ ] React plugin package builds with zero warnings, zero TODO comments, zero placeholder event names.
-- [ ] `npm --prefix lobehub-plugin run build` succeeds.
-- [ ] `npm --prefix lobehub-plugin run type-check` passes.
+- [ ] `npm --prefix chat-plugin run build` succeeds.
+- [ ] `npm --prefix chat-plugin run type-check` passes.
- [ ] Dev harness verifies the end-to-end loop without running LobeChat.
- [ ] README describes install steps a real LobeHub user would follow.
- [ ] Icon + screenshot assets present (placeholders acceptable with a flagged TODO).
@@ -101,11 +101,11 @@ Your `bridge.ts` sends requests matching this exact envelope and op set. If you
## Acceptance
-- `cd lobehub-plugin && npm install && npm run build && npm run type-check` all pass.
+- `cd chat-plugin && npm install && npm run build && npm run type-check` all pass.
- Manifest validates: if a validator is available locally, run it; otherwise use <https://www.jsonschemavalidator.net/> with the `$schema` URL.
-- Manual dev harness: open `lobehub-plugin/dev/index.html` via `python3 -m http.server` (or equivalent). Click the "inject assistant message" button. The avatar in the iframe visibly speaks.
-- `git grep -n "TODO" lobehub-plugin/src/` returns zero hits.
-- `git grep -n "placeholder" lobehub-plugin/src/` returns zero hits (or every hit has an accompanying explanation in the README).
+- Manual dev harness: open `chat-plugin/dev/index.html` via `python3 -m http.server` (or equivalent). Click the "inject assistant message" button. The avatar in the iframe visibly speaks.
+- `git grep -n "TODO" chat-plugin/src/` returns zero hits.
+- `git grep -n "placeholder" chat-plugin/src/` returns zero hits (or every hit has an accompanying explanation in the README).
## Report + archive
diff --git a/prompts/archive/final-integration/07-qa-smoke-test.md b/prompts/archive/final-integration/07-qa-smoke-test.md
index 52b868e7c..3959c2692 100644
--- a/prompts/archive/final-integration/07-qa-smoke-test.md
+++ b/prompts/archive/final-integration/07-qa-smoke-test.md
@@ -111,8 +111,8 @@ Run each flow in the dev server (`npm run dev`) against a real browser. Chrome/E
### Flow I — LobeHub plugin dev harness
-1. `cd lobehub-plugin && npm install && npm run build`.
-2. Open `lobehub-plugin/dev/index.html` via `python3 -m http.server 5555`.
+1. `cd chat-plugin && npm install && npm run build`.
+2. Open `chat-plugin/dev/index.html` via `python3 -m http.server 5555`.
3. Inject a fake assistant message.
4. Avatar in the iframe visibly speaks.
diff --git a/prompts/build/04-06-copy-snippet-multi-target.md b/prompts/build/04-06-copy-snippet-multi-target.md
index 192d4e79f..ff1308a8e 100644
--- a/prompts/build/04-06-copy-snippet-multi-target.md
+++ b/prompts/build/04-06-copy-snippet-multi-target.md
@@ -10,7 +10,7 @@ The agent share panel currently offers iframe / link / `<agent-3d>` snippets. Pi
A refactor of the share panel on [public/agent/index.html](../../public/agent/index.html) (owner view) into a **SnippetPicker** component:
-- Target tabs: `iframe`, `web-component`, `claude-artifact`, `lobehub-plugin`, `link`.
+- Target tabs: `iframe`, `web-component`, `claude-artifact`, `chat-plugin`, `link`.
- Size preset dropdown (from 04-05): bubble / card / banner / full.
- Theme dropdown: auto / dark / light.
- Transparent-bg toggle.
@@ -26,7 +26,7 @@ A refactor of the share panel on [public/agent/index.html](../../public/agent/in
| [public/agent/index.html](../../public/agent/index.html) | Current share panel — replace. |
| [public/agent/embed.html](../../public/agent/embed.html) | Target URL shape for the iframe snippet. |
| [src/element.js](../../src/element.js) | `<agent-3d>` attribute surface for the web-component snippet. |
-| `prompts/build/05-*.md` | Drives the claude-artifact + lobehub-plugin snippet strings once that pillar ships. It's OK if those hosts' runtimes don't exist yet — the snippet picker still generates valid strings for future use. |
+| `prompts/build/05-*.md` | Drives the claude-artifact + chat-plugin snippet strings once that pillar ships. It's OK if those hosts' runtimes don't exist yet — the snippet picker still generates valid strings for future use. |
## Build this
@@ -53,7 +53,7 @@ function generate(target, opts) { ... }
| `iframe` | `<iframe src="https://<origin>/agent/<id>/embed?size=<s>&theme=<t>&bg=<bg>&name=<n>" width="<w>" height="<h>" style="border:0;background:transparent" loading="lazy"></iframe>` |
| `web-component` | `<script type="module" src="https://<origin>/dist-lib/index.js"></script>\n<agent-three.ws-id="<id>" size="<s>" theme="<t>" bg="<bg>" name="<n>"></agent-3d>` |
| `claude-artifact` | The single-file snippet from `05-01-claude-artifact-single-file-bundle` — refer to the target output there. If that pillar hasn't shipped, output a placeholder `<!-- Claude Artifact target not yet available -->` and disable the Copy button with a tooltip. |
-| `lobehub-plugin` | JSON plugin manifest snippet (from `05-03`). Same degrade-gracefully fallback. |
+| `chat-plugin` | JSON plugin manifest snippet (from `05-03`). Same degrade-gracefully fallback. |
| `link` | `https://<origin>/agent/<id>` |
### 3. Preview modal
@@ -92,7 +92,7 @@ Iframe target shows two extra number inputs (width/height) pre-filled with size-
## Acceptance
-- [ ] Share panel shows 5 target tabs (claude-artifact, lobehub-plugin may be placeholders).
+- [ ] Share panel shows 5 target tabs (claude-artifact, chat-plugin may be placeholders).
- [ ] Switching targets regenerates the snippet correctly.
- [ ] Adjusting size/theme/bg updates the snippet live.
- [ ] Copy button copies exactly the visible string.
diff --git a/prompts/build/05-02-lobehub-plugin-manifest.md b/prompts/build/05-02-lobehub-plugin-manifest.md
index 67d95d0fb..21be9e09a 100644
--- a/prompts/build/05-02-lobehub-plugin-manifest.md
+++ b/prompts/build/05-02-lobehub-plugin-manifest.md
@@ -1,6 +1,6 @@
# 05-02 — Lobehub plugin: render the agent embodied in LobeChat
-**Branch:** `feat/lobehub-plugin`
+**Branch:** `feat/chat-plugin`
**Stack layer:** 5 (Host embed — Lobehub — the user's primary integration target)
**Depends on:** 04-02 (embed policy), 04-03 (public decorate), 05-01 (web component bundle)
**Blocks:** 06-\* (onchain → Lobehub demo)
diff --git a/prompts/build/05-02-lobehub-plugin.md b/prompts/build/05-02-lobehub-plugin.md
index 1798c9c4a..c7ac9f62c 100644
--- a/prompts/build/05-02-lobehub-plugin.md
+++ b/prompts/build/05-02-lobehub-plugin.md
@@ -25,7 +25,7 @@ The user maintains a Lobehub fork. The product's killer demo is: paste an agent
## Build this
-1. **New endpoint** `GET /.well-known/lobehub-plugin.json` (or the exact path Lobehub requires — confirm from the docs):
+1. **New endpoint** `GET /.well-known/chat-plugin.json` (or the exact path Lobehub requires — confirm from the docs):
- Describes the plugin: name, description, icon, author, homepage.
- Declares a `renderer` of type `iframe` pointing at `/agent/{id}/embed?kiosk=1`.
- Inputs: `agent_id` (string).
@@ -45,14 +45,14 @@ The user maintains a Lobehub fork. The product's killer demo is: paste an agent
## Deliverables
-- `api/lobehub/plugin.js` (well-known manifest) or static JSON at `public/.well-known/lobehub-plugin.json`.
+- `api/lobehub/plugin.js` (well-known manifest) or static JSON at `public/.well-known/chat-plugin.json`.
- `api/lobehub/resolve.js`.
- Share-panel "Lobehub" tab.
## Acceptance
- Installing the plugin in a fresh Lobehub instance and pasting an agent URL renders the iframe embodied in the chat.
-- `curl /.well-known/lobehub-plugin.json` returns a valid manifest.
+- `curl /.well-known/chat-plugin.json` returns a valid manifest.
- `npm run build` passes.
## Report
diff --git a/prompts/build/05-03-lobehub-plugin-manifest.md b/prompts/build/05-03-lobehub-plugin-manifest.md
index 9cf946ad2..aa218a30c 100644
--- a/prompts/build/05-03-lobehub-plugin-manifest.md
+++ b/prompts/build/05-03-lobehub-plugin-manifest.md
@@ -92,7 +92,7 @@ Simplest implementation: the tool endpoint returns `{ ok: true, forward: { __age
### 4. Install button on agent page
-Share panel (`04-06`) `lobehub-plugin` target outputs the manifest URL:
+Share panel (`04-06`) `chat-plugin` target outputs the manifest URL:
```
https://three.ws/api/agents/<id>/lobe-plugin.json
@@ -117,7 +117,7 @@ Plus the install instructions ("Paste this URL in Lobehub → Settings → Plugi
**Modified:**
-- `src/components/snippet-picker.jsx` (from 04-06) — `lobehub-plugin` target returns the manifest URL + install instructions.
+- `src/components/snippet-picker.jsx` (from 04-06) — `chat-plugin` target returns the manifest URL + install instructions.
- `vercel.json` — routes.
## Acceptance
diff --git a/prompts/build/05-06-host-integration-examples.md b/prompts/build/05-06-host-integration-examples.md
index 060a32928..fb9393b5d 100644
--- a/prompts/build/05-06-host-integration-examples.md
+++ b/prompts/build/05-06-host-integration-examples.md
@@ -32,7 +32,7 @@ Matches the constraints Claude's Artifact iframe imposes (no external scripts be
### 4. Lobehub example — `examples/host-lobehub/`
-A minimal plugin that wraps `<agent-3d>` for inline rendering in a Lobehub chat. Includes a README explaining how to drop it into the user's Lobehub fork. Uses the plugin manifest shape from `05-02-lobehub-plugin.md`.
+A minimal plugin that wraps `<agent-3d>` for inline rendering in a Lobehub chat. Includes a README explaining how to drop it into the user's Lobehub fork. Uses the plugin manifest shape from `05-02-chat-plugin.md`.
### 5. Docs page — `public/docs-embed.html`
diff --git a/prompts/build/06-04-lobehub-onchain-import.md b/prompts/build/06-04-lobehub-onchain-import.md
index 7bcb57761..179ac6577 100644
--- a/prompts/build/06-04-lobehub-onchain-import.md
+++ b/prompts/build/06-04-lobehub-onchain-import.md
@@ -15,7 +15,7 @@ This is the specific demo that proves the whole product thesis: a user in Lobehu
## Read these first
-- [prompts/build/05-02-lobehub-plugin.md](./05-02-lobehub-plugin.md) — plugin shape.
+- [prompts/build/05-02-chat-plugin.md](./05-02-chat-plugin.md) — plugin shape.
- Lobehub plugin docs for "variable input" patterns.
## Build this
diff --git a/prompts/build/README.md b/prompts/build/README.md
index 04a46afbe..8ed1a7e98 100644
--- a/prompts/build/README.md
+++ b/prompts/build/README.md
@@ -102,8 +102,8 @@ Within a pillar, suffix numbers indicate sequence: `02-01-*` before `02-02-*`.
- [05-01-claude-artifact-build.md](./05-01-claude-artifact-build.md) — artifact builder tooling
- [05-01-claude-artifact-export.md](./05-01-claude-artifact-export.md) — export-as-artifact flow
- [05-01-claude-artifacts-shim.md](./05-01-claude-artifacts-shim.md) — compatibility shim
-- [05-02-lobehub-plugin.md](./05-02-lobehub-plugin.md) — Lobehub plugin endpoints
-- [05-02-lobehub-plugin-manifest.md](./05-02-lobehub-plugin-manifest.md) — manifest shape
+- [05-02-chat-plugin.md](./05-02-chat-plugin.md) — Lobehub plugin endpoints
+- [05-02-chat-plugin-manifest.md](./05-02-chat-plugin-manifest.md) — manifest shape
- [05-03-mcp-spawn-agent-tool.md](./05-03-mcp-spawn-agent-tool.md) — `render_agent` MCP tool
- [05-03-postmessage-event-bridge.md](./05-03-postmessage-event-bridge.md) — host→iframe event forward
- [05-04-postmessage-bridge-spec.md](./05-04-postmessage-bridge-spec.md) — bridge v1 contract + SDK
diff --git a/prompts/claude-lobehub/00-README.md b/prompts/claude-lobehub/00-README.md
index 06cb89909..604f0f449 100644
--- a/prompts/claude-lobehub/00-README.md
+++ b/prompts/claude-lobehub/00-README.md
@@ -24,7 +24,7 @@ The novelty is that _the same agent_ renders identically in both hosts, because
| # | File | Depends on |
| --- | ------------------------------------------------------------- | ------------------------- |
| 01 | [claude-artifact.md](./01-claude-artifact.md) | band 4 public embed solid |
-| 02 | [lobehub-plugin-scaffold.md](./02-lobehub-plugin-scaffold.md) | — |
+| 02 | [chat-plugin-scaffold.md](./02-chat-plugin-scaffold.md) | — |
| 03 | [lobehub-chat-bridge.md](./03-lobehub-chat-bridge.md) | 02 |
| 04 | [agent-from-url-or-id.md](./04-agent-from-url-or-id.md) | 02 |
diff --git a/prompts/complete/README.md b/prompts/complete/README.md
index 6d4dccff5..f73fc25b3 100644
--- a/prompts/complete/README.md
+++ b/prompts/complete/README.md
@@ -13,7 +13,7 @@ Each prompt only creates new files under a unique path, or edits exactly one fil
| 01 | [WalletConnect SIWE bridge](01-walletconnect-siwe.md) | 1 | `src/auth/walletconnect-bridge.js` |
| 02 | [EDITOR_SPEC spec doc](02-editor-spec.md) | 3, 4 | `specs/EDITOR_SPEC.md` |
| 03 | [Claude.ai artifact HTML](03-claude-artifact.md) | 5 | `api/artifact.js`, `public/artifact/` |
-| 04 | [LobeHub plugin manifest + handshake](04-lobehub-plugin.md) | 5 | `public/lobehub/`, `api/lobehub/*` |
+| 04 | [LobeHub plugin manifest + handshake](04-chat-plugin.md) | 5 | `public/lobehub/`, `api/lobehub/*` |
| 05 | [Reputation dashboard UI](05-reputation-dashboard.md) | 6 | `public/reputation/`, `src/reputation-ui.js` |
| 06 | [Validation dashboard UI](06-validation-dashboard.md) | 6 | `public/validation/`, `src/validation-ui.js` |
| 07 | [Avatar regenerate endpoint + UI](07-avatar-regenerate.md) | 3 | `api/avatars/regenerate.js`, `src/editor/regenerate-panel.js` |
diff --git a/prompts/final-integration/00-README.md b/prompts/final-integration/00-README.md
index 89326aaa5..45192d739 100644
--- a/prompts/final-integration/00-README.md
+++ b/prompts/final-integration/00-README.md
@@ -13,7 +13,7 @@ The audit that produced these prompts found that ~72% of the stated work is wire
5. **Prettier** before committing: tabs, 4-wide, single quotes, 100-col. `npx prettier --write` every file you touched.
6. **Verify** with `node --check <file>` on every JS file and `npm run build`. Paste both outputs into your report.
7. **No new runtime deps** unless the prompt explicitly lists them. Bundle size matters.
-8. **ESM only** in `src/` and `api/`. No CommonJS. No TypeScript in the main app (SDK & lobehub-plugin are allowed TS — they are separate packages).
+8. **ESM only** in `src/` and `api/`. No CommonJS. No TypeScript in the main app (SDK & chat-plugin are allowed TS — they are separate packages).
9. **JSDoc for public APIs.** No long docstrings or multi-paragraph comments. Follow the conventions in `CLAUDE.md`.
10. **Do not** amend the contract ABI, deployed addresses, or `REGISTRY_DEPLOYMENTS`. Read-only unless the prompt says otherwise.
@@ -25,7 +25,7 @@ The audit that produced these prompts found that ~72% of the stated work is wire
| 02 | `02-idle-animation.md` | `src/idle-animation.js` | `src/agent-avatar.js` — anchor `IDLE_LOOP` |
| 03 | `03-agent-home-integration.md` | (none) | `agent-home.html` — anchor `AGENT_HOME_ORPHANS` |
| 04 | `04-discover-page.md` | `public/discover/index.html`, `public/discover/discover.js`, `public/discover/discover.css` | homepage CTA added via anchor `DISCOVER_LINK` in `index.html` |
-| 05 | `05-lobehub-real-integration.md` | everything under `lobehub-plugin/` | — |
+| 05 | `05-lobehub-real-integration.md` | everything under `chat-plugin/` | — |
| 06 | `06-camera-capture-resolution.md` | — | `src/camera-capture.js` (delete or repurpose) + `src/camera-capture.css` |
| 07 | `07-qa-smoke-test.md` | `docs/SMOKE_TEST.md` | — (read-only audit; may open small surgical fixes in any file with 1-line patch rule) |
diff --git a/prompts/final-integration/09-followup-lobehub-dev-harness.md b/prompts/final-integration/09-followup-lobehub-dev-harness.md
index 2b98d17cd..f51834e14 100644
--- a/prompts/final-integration/09-followup-lobehub-dev-harness.md
+++ b/prompts/final-integration/09-followup-lobehub-dev-harness.md
@@ -2,31 +2,31 @@
## Origin
-Surfaced by QA smoke test (07). Flow I is fully BLOCKED: `lobehub-plugin/dev/index.html` does not exist.
+Surfaced by QA smoke test (07). Flow I is fully BLOCKED: `chat-plugin/dev/index.html` does not exist.
## Defect
Prompt 05 (`final-integration/05-lobehub-real-integration.md`) specified:
-> **Dev harness.** `lobehub-plugin/dev/index.html` loads the built plugin inside a page that mocks the LobeChat host message contract. Include a button to inject a fake assistant message so the avatar can be seen reacting in isolation.
+> **Dev harness.** `chat-plugin/dev/index.html` loads the built plugin inside a page that mocks the LobeChat host message contract. Include a button to inject a fake assistant message so the avatar can be seen reacting in isolation.
-The file was never created. `lobehub-plugin/` has `src/`, `dist/`, `package.json` but no `dev/` directory.
+The file was never created. `chat-plugin/` has `src/`, `dist/`, `package.json` but no `dev/` directory.
## Smallest-possible fix
-Create `lobehub-plugin/dev/index.html` — a single self-contained HTML file that:
+Create `chat-plugin/dev/index.html` — a single self-contained HTML file that:
1. Embeds the agent iframe (`/agent/<id>/embed` or a test agent URL).
2. Listens for the bridge `ready` event from the iframe.
-3. Provides a button: "Inject assistant message" — on click, posts a fake `{ role: 'assistant', content: 'Hello, introduce yourself!' }` message via `postMessage` to the iframe using the wire format from `lobehub-plugin/src/bridge.ts`.
+3. Provides a button: "Inject assistant message" — on click, posts a fake `{ role: 'assistant', content: 'Hello, introduce yourself!' }` message via `postMessage` to the iframe using the wire format from `chat-plugin/src/bridge.ts`.
4. Shows the iframe at 400×600px so the avatar is visible.
-Reference implementation contract: `lobehub-plugin/src/bridge.ts` (the `AgentBridge` class defines the message format).
+Reference implementation contract: `chat-plugin/src/bridge.ts` (the `AgentBridge` class defines the message format).
## Acceptance
-1. `cd lobehub-plugin && npm install && npm run build` succeeds.
-2. `python3 -m http.server 5555` from `lobehub-plugin/dev/`.
+1. `cd chat-plugin && npm install && npm run build` succeeds.
+2. `python3 -m http.server 5555` from `chat-plugin/dev/`.
3. Open `http://localhost:5555/index.html` in Chrome.
4. Click "Inject assistant message".
5. The avatar in the iframe visibly speaks (lip sync / speak animation fires).
diff --git a/prompts/lobehub-embed/01-plugin-manifest.md b/prompts/lobehub-embed/01-plugin-manifest.md
index 1d02a3ada..147ccc874 100644
--- a/prompts/lobehub-embed/01-plugin-manifest.md
+++ b/prompts/lobehub-embed/01-plugin-manifest.md
@@ -18,7 +18,7 @@ Produce a LobeHub plugin manifest, hosted at a stable public URL under this depl
## Deliverable
-1. **Manifest file** at `public/.well-known/lobehub-plugin.json` (served at `https://<host>/.well-known/lobehub-plugin.json`) that declares:
+1. **Manifest file** at `public/.well-known/chat-plugin.json` (served at `https://<host>/.well-known/chat-plugin.json`) that declares:
- `identifier` — kebab-case, e.g. `3d-agent`
- `meta` — `{ title, description, avatar, tags }`
- `author`, `homepage`, `version` (read from `package.json`'s version at build if trivial; otherwise hard-code `0.1.0` and note)
@@ -51,9 +51,9 @@ Produce a LobeHub plugin manifest, hosted at a stable public URL under this depl
## Verification
-1. `node --check` is not applicable (JSON). Run `node -e "JSON.parse(require('fs').readFileSync('public/.well-known/lobehub-plugin.json','utf8'))"` to confirm parseable.
-2. `npx vite build` succeeds and copies the file to `dist/.well-known/lobehub-plugin.json`.
-3. `curl -I https://localhost:5173/.well-known/lobehub-plugin.json` (or deployed URL) returns `Content-Type: application/json`.
+1. `node --check` is not applicable (JSON). Run `node -e "JSON.parse(require('fs').readFileSync('public/.well-known/chat-plugin.json','utf8'))"` to confirm parseable.
+2. `npx vite build` succeeds and copies the file to `dist/.well-known/chat-plugin.json`.
+3. `curl -I https://localhost:5173/.well-known/chat-plugin.json` (or deployed URL) returns `Content-Type: application/json`.
4. Load it in a LobeHub dev instance — see [05-plugin-submission.md](./05-plugin-submission.md) for the full flow. For this task, you may stop at schema validity.
5. `ajv validate` each `api.*.parameters` against its own schema with a sample payload.
diff --git a/prompts/lobehub-embed/02-iframe-handshake.md b/prompts/lobehub-embed/02-iframe-handshake.md
index 87fb38809..35543a6f8 100644
--- a/prompts/lobehub-embed/02-iframe-handshake.md
+++ b/prompts/lobehub-embed/02-iframe-handshake.md
@@ -95,7 +95,7 @@ All messages are JSON objects. Outbound (embed → host) and inbound (host → e
## Files off-limits
-- `public/.well-known/lobehub-plugin.json` — owned by [01](./01-plugin-manifest.md)
+- `public/.well-known/chat-plugin.json` — owned by [01](./01-plugin-manifest.md)
- `api/agents/[id]/embed-policy.js` — settled, do not touch
## Reporting
diff --git a/prompts/lobehub-embed/03-host-auth-handoff.md b/prompts/lobehub-embed/03-host-auth-handoff.md
index ef0069f17..cc35f9339 100644
--- a/prompts/lobehub-embed/03-host-auth-handoff.md
+++ b/prompts/lobehub-embed/03-host-auth-handoff.md
@@ -76,7 +76,7 @@ Define and implement the three-tier viewer identity handoff inside the embed, an
## Files off-limits
-- `public/.well-known/lobehub-plugin.json` — owned by [01](./01-plugin-manifest.md)
+- `public/.well-known/chat-plugin.json` — owned by [01](./01-plugin-manifest.md)
- `src/embed-host-bridge.js` — owned by [02](./02-iframe-handshake.md) for its core shape. You add two envelope types; keep diffs tight and in a clearly delimited `// ── identity ──` block.
- `src/erc8004/*` — reuse, do not refactor
- `src/agent-identity.js` — call, do not rewrite
diff --git a/prompts/lobehub-embed/04-action-passthrough.md b/prompts/lobehub-embed/04-action-passthrough.md
index 68dde9534..99f01f3eb 100644
--- a/prompts/lobehub-embed/04-action-passthrough.md
+++ b/prompts/lobehub-embed/04-action-passthrough.md
@@ -86,7 +86,7 @@ Wire bidirectional, lossless relay between LobeHub's chat tool-call surface and
- `src/agent-protocol.js` — do not extend
- `src/agent-avatar.js` — do not touch
-- `public/.well-known/lobehub-plugin.json` — owned by [01](./01-plugin-manifest.md)
+- `public/.well-known/chat-plugin.json` — owned by [01](./01-plugin-manifest.md)
- `src/embed-host-bridge.js` — owned by [02](./02-iframe-handshake.md). You may read its `postToHost` surface; do not refactor it.
## Reporting
diff --git a/prompts/lobehub-embed/05-plugin-submission.md b/prompts/lobehub-embed/05-plugin-submission.md
index cbe1d1127..d01ab6f7a 100644
--- a/prompts/lobehub-embed/05-plugin-submission.md
+++ b/prompts/lobehub-embed/05-plugin-submission.md
@@ -4,7 +4,7 @@
Repo: `/workspaces/3D`. Tasks [01](./01-plugin-manifest.md) through [04](./04-action-passthrough.md) have produced:
-- A public plugin manifest at `/.well-known/lobehub-plugin.json`
+- A public plugin manifest at `/.well-known/chat-plugin.json`
- A versioned `postMessage` bridge between our iframe and a LobeHub host
- An identity handoff for LobeHub-auth'd viewers (with optional wallet link)
- Bidirectional tool-call ↔ protocol relay that preserves the Empathy Layer
@@ -20,7 +20,7 @@ Produce everything needed to (a) reproduce a green local smoke test of the plugi
## Deliverable
1. **Local-test harness** under `prompts/lobehub-embed/fixtures/`:
- - `sample-lobehub-config.json` — a LobeHub plugin-install descriptor pointing at `https://three.ws/.well-known/lobehub-plugin.json` (or a local dev URL).
+ - `sample-lobehub-config.json` — a LobeHub plugin-install descriptor pointing at `https://three.ws/.well-known/chat-plugin.json` (or a local dev URL).
- `mock-host.html` — a standalone page that mimics the LobeHub host frame: iframes our embed, sends the full handshake sequence (`host:hello` → `host:identity` → `host:action` samples), logs replies. Use for offline testing.
- `smoke.md` — a step-by-step manual smoke test script (10–15 steps) covering: install, open agent, chat sends tool call, avatar speaks with emotion, wallet link prompt, signed action surfaces back to transcript.
2. **Submission bundle** under `prompts/lobehub-embed/submission/`:
@@ -33,7 +33,7 @@ Produce everything needed to (a) reproduce a green local smoke test of the plugi
- Maintainer contact
- `SCREENSHOTS.md` — a script (not actual images) describing the five screenshots to capture: (1) install dialog, (2) agent rendered in a chat bubble, (3) avatar mid-gesture, (4) emotion blend visible (concerned face), (5) signed-action receipt in transcript. For each, list the URL, window size, and visible elements.
- `DEMO_SCRIPT.md` — 60-second walkthrough script for recording a demo GIF/MP4. Word-for-word spoken lines optional.
-3. **Tracking metadata** — add a single line to `public/.well-known/lobehub-plugin.json` (if not already present): `"marketplaceStatus": "pending"` (string), updated to `"listed"` post-acceptance.
+3. **Tracking metadata** — add a single line to `public/.well-known/chat-plugin.json` (if not already present): `"marketplaceStatus": "pending"` (string), updated to `"listed"` post-acceptance.
4. **Release notes stub** — append a `## v0.1.0 — LobeHub plugin` section to the repo's existing CHANGELOG if one exists; otherwise note its absence in the report.
## Audit checklist
diff --git a/prompts/lobehub-embed/README.md b/prompts/lobehub-embed/README.md
index 65235bee6..5f483bada 100644
--- a/prompts/lobehub-embed/README.md
+++ b/prompts/lobehub-embed/README.md
@@ -23,7 +23,7 @@ LobeHub is the **primary** integration target for embodied-agent rendering insid
| # | File | What it ships | Blocks on |
| --- | ------------------------------------------------------------ | ----------------------------------------------------------------------------- | ------------------------------------------------------ |
| 00 | [00-fork-sidebar-fastpath.md](./00-fork-sidebar-fastpath.md) | Iframe mounted in the fork's right sidebar; persistent; reacts to chat stream | nothing |
-| 01 | [01-plugin-manifest.md](./01-plugin-manifest.md) | `.well-known/lobehub-plugin.json` manifest hosted publicly | resolving `TODO(lobehub-spec)` flags (see AUDIT.md §6) |
+| 01 | [01-plugin-manifest.md](./01-plugin-manifest.md) | `.well-known/chat-plugin.json` manifest hosted publicly | resolving `TODO(lobehub-spec)` flags (see AUDIT.md §6) |
| 02 | [02-iframe-handshake.md](./02-iframe-handshake.md) | Versioned `postMessage` bridge module `src/embed-host-bridge.js` | 01 |
| 03 | [03-host-auth-handoff.md](./03-host-auth-handoff.md) | Anon / host-user / wallet-linked identity tiers with opt-in SIWE prompt | 02 |
| 04 | [04-action-passthrough.md](./04-action-passthrough.md) | Bidirectional chat-tool ↔ protocol relay `src/embed-action-relay.js` | 02, 03 |
diff --git a/prompts/parallel-finish/09-lobehub-plugin.md b/prompts/parallel-finish/09-lobehub-plugin.md
index 0938f8179..f97969781 100644
--- a/prompts/parallel-finish/09-lobehub-plugin.md
+++ b/prompts/parallel-finish/09-lobehub-plugin.md
@@ -4,14 +4,14 @@
Repo root: `/workspaces/3D-Agent`. Read [/CLAUDE.md](../../CLAUDE.md) first.
-LobeHub is a self-hostable chat UI fork. We want to publish a standalone plugin under `lobehub-plugin/` that users can install into their Lobe fork to get a three.ws pane that reacts to assistant messages. Today the dashboard only shows a copy-paste React snippet — insufficient for a real plugin.
+LobeHub is a self-hostable chat UI fork. We want to publish a standalone plugin under `chat-plugin/` that users can install into their Lobe fork to get a three.ws pane that reacts to assistant messages. Today the dashboard only shows a copy-paste React snippet — insufficient for a real plugin.
This is a **new top-level package**, fully isolated from the rest of the monorepo. It does not need to be published to npm in this task; just produce a working, locally-installable TS-React package with a manifest.
-## Files you own (exclusive — all new, under `lobehub-plugin/`)
+## Files you own (exclusive — all new, under `chat-plugin/`)
```
-lobehub-plugin/
+chat-plugin/
├── package.json
├── tsconfig.json
├── manifest.json # Lobe plugin manifest
@@ -31,7 +31,7 @@ lobehub-plugin/
- **Settings:** `agentId` (string, required) and `apiOrigin` (defaults to `https://three.ws/`). Expose these via `config-schema.ts`.
- **Render:** a fixed 320×420 pane (sidebar or floating — Lobe decides) containing an `<iframe>` pointing at `${apiOrigin}/agent/${agentId}/embed`.
- **Bridge:** on Lobe's assistant-message event, call `bridge.speak(text)` which posts `{ __agent: agentId, type: 'action', action: { type: 'speak', payload: { text } } }` to the iframe — matching the FROZEN v1 bridge in [public/agent/embed.html](../../public/agent/embed.html).
-- **Lobe hooks used:** `usePluginStore`, `onAssistantMessage`. If the exact API differs, write against what's published in `@lobehub/ui@latest` or `lobehub-plugin-sdk` — if neither exists at time of writing, mock the hooks with clear TODO comments and document in README.
+- **Lobe hooks used:** `usePluginStore`, `onAssistantMessage`. If the exact API differs, write against what's published in `@lobehub/ui@latest` or `chat-plugin-sdk` — if neither exists at time of writing, mock the hooks with clear TODO comments and document in README.
- **TypeScript**, strict. Tabs 4-wide, single quotes (match the rest of the repo style even though this is a TS package).
## `manifest.json` shape
@@ -59,7 +59,7 @@ lobehub-plugin/
## `package.json`
-- `name: "@3dagent/lobehub-plugin"`
+- `name: "@3dagent/chat-plugin"`
- `private: true` (for now).
- `scripts`: `build` uses `tsc` + a bundler of your choice (esbuild or vite — pick the lighter one). `dev` runs the bundler in watch.
- `devDependencies`: TypeScript, React types, the bundler. No new prod deps beyond React.
@@ -74,7 +74,7 @@ lobehub-plugin/
## Verification
```bash
-cd lobehub-plugin
+cd chat-plugin
npm install
npm run build
ls -la dist/
diff --git a/prompts/parallel-finish/README.md b/prompts/parallel-finish/README.md
index 8c6f47836..9d698dfb2 100644
--- a/prompts/parallel-finish/README.md
+++ b/prompts/parallel-finish/README.md
@@ -18,7 +18,7 @@ These prompts are designed to run **simultaneously in separate agent chats** wit
| `06-selfie-progress-ui.md` | `src/selfie-pipeline.js`, `src/selfie-capture.js` |
| `07-avatar-agent-link.md` | `api/avatars/index.js` (post-create hook only), `api/onboarding/link-avatar.js` (new) |
| `08-artifact-bundle.md` | `public/artifact/` (new), `vite.config.artifact.js` (new) |
-| `09-lobehub-plugin.md` | `lobehub-plugin/` (new top-level package) |
+| `09-chat-plugin.md` | `chat-plugin/` (new top-level package) |
| `10-reputation-ui.md` | `public/reputation/` (new) |
| `11-validation-registry-deploy.md` | `contracts/script/DeployValidationMainnet.s.sol` (new), `docs/VALIDATION_DEPLOY.md` (new) |
| `12-hydrate-from-chain.md` | `public/hydrate/` (new), `src/erc8004/hydrate.js` (new) |
diff --git a/prompts/sprint-100/00-README.md b/prompts/sprint-100/00-README.md
index 45bd94603..076b4a66e 100644
--- a/prompts/sprint-100/00-README.md
+++ b/prompts/sprint-100/00-README.md
@@ -36,7 +36,7 @@ Every prompt in this folder is designed to run **in parallel** with every other
| 13 | 5 | Claude.ai artifact bundle | `public/artifact.js` |
| 14 | 5 | Idle animation loop | `src/idle-animation.js` |
| 15 | 5 | Embed postMessage bridge | `src/embed-host-bridge.js` |
-| 16 | 5 | LobeHub plugin manifest | `public/.well-known/lobehub-plugin.json` |
+| 16 | 5 | LobeHub plugin manifest | `public/.well-known/chat-plugin.json` |
| 17 | 6 | On-chain deploy button | `src/erc8004/deploy-button.js` |
| 18 | 6 | IPFS pinning endpoint | `api/pinning/pin.js` |
| 19 | 6 | Address resolver API | `api/agents/by-address/[addr].js` |
diff --git a/prompts/sprint-100/16-lobehub-plugin-manifest.md b/prompts/sprint-100/16-lobehub-plugin-manifest.md
index d23854f90..2fa7c54a9 100644
--- a/prompts/sprint-100/16-lobehub-plugin-manifest.md
+++ b/prompts/sprint-100/16-lobehub-plugin-manifest.md
@@ -10,7 +10,7 @@ New static file + new endpoint. No edits to anything existing.
## Files you own
-- Create: `public/.well-known/lobehub-plugin.json`
+- Create: `public/.well-known/chat-plugin.json`
- Create: `api/lobehub/config.js`
- Create: `api/lobehub/manifest.js` (dynamic variant of the static file — if LobeHub allows one, prefer static; keep dynamic as a fallback)
@@ -21,7 +21,7 @@ New static file + new endpoint. No edits to anything existing.
## Deliverable
-### `public/.well-known/lobehub-plugin.json`
+### `public/.well-known/chat-plugin.json`
```json
{
@@ -69,12 +69,12 @@ Read current LobeHub plugin schema and adapt fields as needed — this is a star
## Constraints
- No new deps.
-- Valid JSON (run `node -e "require('./public/.well-known/lobehub-plugin.json')"`).
+- Valid JSON (run `node -e "require('./public/.well-known/chat-plugin.json')"`).
- CORS enabled.
## Acceptance
-- `curl https://your-preview.vercel.app/.well-known/lobehub-plugin.json` returns the JSON.
+- `curl https://your-preview.vercel.app/.well-known/chat-plugin.json` returns the JSON.
- `curl .../api/lobehub/config` returns the same shape.
- `npm run build` clean.
diff --git a/public/docs/sdk.md b/public/docs/sdk.md
index 5c67ec3b2..364c070a8 100644
--- a/public/docs/sdk.md
+++ b/public/docs/sdk.md
@@ -396,7 +396,7 @@ A pre-built integration that embeds a live 3D avatar in the LobeChat sidebar. Th
### One-click install
1. In LobeChat, open **Plugins → Plugin Store → Custom plugins**.
-2. Paste the manifest URL: `https://three.ws/.well-known/lobehub-plugin.json`
+2. Paste the manifest URL: `https://three.ws/.well-known/chat-plugin.json`
3. Click **Install** and enter your Agent ID from the dashboard.
The plugin exposes four LLM-callable tools:
@@ -408,13 +408,13 @@ The plugin exposes four LLM-callable tools:
| `gesture` | `{ name }` | Trigger `wave`, `nod`, `point`, or `shrug` |
| `emote` | `{ trigger, weight? }` | Inject emotion into the Empathy Layer |
-Source is in `/lobehub-plugin/`. Build and dev docs are in `/lobehub-plugin/README.md`. React and react-dom are external (provided by LobeChat at runtime) — the output is a single `dist/bundle.js`.
+Source is in `/chat-plugin/`. Build and dev docs are in `/chat-plugin/README.md`. React and react-dom are external (provided by LobeChat at runtime) — the output is a single `dist/bundle.js`.
```bash
# Dev harness (no LobeChat needed)
npm run build:lib
-npm --prefix lobehub-plugin install
-npm --prefix lobehub-plugin run build
+npm --prefix chat-plugin install
+npm --prefix chat-plugin run build
python3 -m http.server 8080
-# Open http://localhost:8080/lobehub-plugin/dev/?agent=<your-agent-id>
+# Open http://localhost:8080/chat-plugin/dev/?agent=<your-agent-id>
```
diff --git a/style.css b/style.css
index 370d063bd..7f143ccf5 100644
--- a/style.css
+++ b/style.css
@@ -5634,7 +5634,7 @@ textarea.erc8004-code {
/* ─────────────────────────────────────────────────────────────────────────
* /discover — ERC-8004 agent marketplace
- * Lobehub-plugin-grid × etherscan-NFT-detail hybrid. Uses site tokens.
+ * chat-plugin-grid × etherscan-NFT-detail hybrid. Uses site tokens.
* ───────────────────────────────────────────────────────────────────────── */
.explore-main {