49 KiB
phase, plan, type, wave, depends_on, files_modified, autonomous, requirements, estimate, must_haves
| phase | plan | type | wave | depends_on | files_modified | autonomous | requirements | estimate | must_haves | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 20-demo-instance-with-every-shared-plugin | 03 | execute | 3 |
|
|
false |
|
|
|
Phase Goal
ROADMAP Goal (not in user-story format; no story is invented here): the demo's public Nuxt site shows the shared plugins working, chat and channels with realtime included, through the shared layers.
This plan's slice (plan 3 of 6, wave 3, per D-20): vue-chat-layer v0.1.0, ported from bm's chat SPA and widened to several channels, threads, pins, a command picker and generic link embeds, then used in vue-demo-app as /chat, a floating panel and a tour card, in EN and PL.
Decisions taken in this plan (Claude's discretion, recorded)
- Layout of the layer: pure modules in
app/lib/(imported explicitly, never auto-imported, so generic names likeinitialscannot clash with an app's utils). ComposablesuseChat,useChatApianduseChatNoticeinapp/composables/. Components inapp/components/Chat/, auto-registered with theChatprefix (ChatPage,ChatFloatingPanel). The layer ships components; the app owns routes, page copy and the anonymous prompt (as vue-paymentgateway-layer does). - Host contract:
runtimeConfig.public.chat.hostApiBasedefaults to an empty string, and the layer refuses to bootstrap without it, with a console error naming the key. vue-demo-app sets/_demo/api/v1. The README documents theGET {hostApiBase}/chatand/chat/membersJSON shapes as the contract any host implements, under neutral names. - Auth hook:
$chatAuthwithtoken(): string | null,refresh(): Promise<string | null>andunauthorized(): void. One refresh-and-retry on 401 (bm's client renews through/_user/api/v1/fetch), thenunauthorized(). - Store: bm's Pinia setup store becomes a module-level composable over
useStatekeys prefixedchat:(19.4.1 no-Pinia rule).general/generalIdbecomechannels[]andactiveId. - Realtime: bm's current
lib/realtime.ts(shared client) is ported withonUserEvent(handler), so other layers (chatvideo, plan 04) getuser:{me}events they do not own without a second subscription. vue-demo-app'sapp/lib/realtime.tsbecomes a re-export, so the presentations remote and chat share one WebSocket. - Embeds: bm's entity embeds and picker are dropped. URLs in text are linkified (escaped,
rel="noopener noreferrer nofollow",target="_blank"). A message with a URL shows aChatLinkEmbedcard with host and path; there is no unfurl backend.registerEmbedRenderer(match, component)lets a host render its own entity links (D-01 extension point). - Extension slots:
conversation-actionsin ChatHeader, rendered only fortype === 'dm'(D-23), andsidebar-footerin ChannelList (the friends link, plan 04). - Floating panel: hidden on
/chat,/p/**and/presentations/**(full-screen decks) and for anonymous visitors. - Development pin: while the layer has no remote, vue-demo-app depends on
link:../../vue-chat-layer, committed with the first vue-demo-app commit so every commit builds on this machine. Task 6 replaces it with the tag pin; vue-demo-app is pushed only in plan 05, after the swap, so no pushed commit needs the local path. - spec-less probe fallback skipped: phase has no requirement IDs to probe (visible skip).
Artifacts this phase produces (this plan)
- Repository
vue-chat-layer(tag v0.1.0):- components
ChatPage,ChatChannelList,ChatPanel,ChatMessageList,ChatMessage,ChatComposer,ChatHeader,ChatDmList,ChatMemberPicker,ChatMentionPopup,ChatReactionBar,ChatLinkEmbed,ChatStagingChips,ChatDeleteDialog,ChatAvatar,ChatThreadPane,ChatPinsPanel,ChatCommandPicker,ChatFloatingPanel,ChatIcon,ChatNotices; - composables
useChat,useChatApi,useChatNotice; - lib exports:
createChatClient,REALTIME_WS_PATH,connect,subscribe,presence,openChannel,onUserEvent,disconnect,linkify,registerEmbedRenderer,embedRendererFor, and the ported chatEvents, chatFormat, chatText and chatUnread functions; - runtime config
chat.apiBase(NUXT_CHAT_API_BASE),public.chat.apiBase,public.chat.channelsApiBase,public.chat.botsApiBase,public.chat.hostApiBase; - Nuxt plugin hook
$chatAuth; slotsconversation-actionsandsidebar-footer; i18n keys underchat.*(EN and PL); - smoke test
tests/smoke.test.ts.
- components
- vue-demo-app: page
/chat, the floating panel in the default layout, Chat tour card (TourCard iconchat), i18n keyschat.*andtour.chat.*, goPaths/_chat,/_chatchannels,/_chatbots, ChatPage inside ClientOnly (the page itself is server-rendered so the banner and the anonymous prompt are in the HTML),chatAuthprovided in app/plugins/auth.ts, app/lib/realtime.ts re-exporting the layer client. - sm-demo-app:
scripts/check-chat.cjs, check-local checkchat, check-localtourexpecting the Chat card, smoke.sh covering/chat.
Purpose: SC-2 (chat and channels with realtime on the public site), D-01 to D-05, D-07 (no channel creation), D-22 (moderator delete) and the D-23 extension point plan 04 uses. Output: a new repository vue-chat-layer (pushed and tagged after the go-ahead), commits in ../sm-demo-app/vue-demo-app (the submodule; not pushed) and ../sm-demo-app (scripts; not pushed).
<execution_context>
@/.claude/msd-core/workflows/execute-plan.md
@/.claude/msd-core/templates/summary.md
</execution_context>
Repos: new ../vue-chat-layer; ../sm-demo-app/vue-demo-app (the submodule, origin golem15/vue-demo-app; never the stale ../vue-demo-app sibling); ../sm-demo-app (scripts). Read-only port source: ../sm-bm-app/frontend/src (components/chat/, stores/chat.ts and chat.test.ts, api/chat.ts, api/types.ts, lib/chat.ts, lib/realtime.ts, lib/format.ts, lib/media.ts, lib/tabs.ts, components/Icon.vue). Layer conventions: ../vue-faq-layer and ../vue-paymentgateway-layer.
Rules: no co-author tags; stage by explicit path; the layer repository gets no remote before Task 5; vue-demo-app is committed in its own repository (never staged from sm-demo-app) and not pushed here; check git -C ../sm-demo-app/vue-demo-app status --porcelain before each commit and leave other sessions' edits alone (Phase 33 also edits nuxt.config.ts). The local dev stack runs with ../sm-demo-app/scripts/dev.sh up (Go 127.0.0.1:8097, Nuxt 127.0.0.1:3020, Centrifugo, LiveKit). Playwright is the global install (NODE_PATH="$(npm root -g)", scripts/lib/browser.cjs).
- Create the repository:
git init -b mainat /media/nvme/dev/golem15/summercms.io/summercms/vue-chat-layer with the vue-faq-layer files (.gitignore, .nvmrc, tsconfig.json, pnpm-workspace.yaml allowing the same builds plusprotobufjs: false).- package.json: name vue-chat-layer, version 0.1.0, private, type module, main ./nuxt.config.ts, engines node >=22.18, peerDependencies nuxt 4.4.8;
- dependencies centrifuge 5.7.3 and @nuxtjs/i18n 10.4.0; devDependencies nuxt 4.4.8, vue 3.5.35, typescript 5.9.3, vitest 3.2.7;
- scripts test (
vitest run), dev (nuxi dev .playground), build:playground and dev:prepare. Run pnpm install.
- nuxt.config.ts:
- the header comment says an app consumes it with
extends: ['vue-chat-layer'], provides$chatAuthand setspublic.chat.hostApiBase; currentDir with absolute paths; - runtimeConfig.chat.apiBase for SSR (
http://127.0.0.1:8096/_chat/api/v1, NUXT_CHAT_API_BASE); - public.chat: apiBase
/_chat/api/v1, channelsApiBase/_chatchannels/api/v1, botsApiBase/_chatbots/api/v1, hostApiBase empty; - no pages and no route rules: the app owns its routes and wraps the chat components in ClientOnly (the components touch window and WebSocket, RESEARCH Pitfall 9);
- the i18n:registerModule block of vue-paymentgateway-layer for en and pl (strings come in Task 3; create empty-object locale files now if the module needs them).
- the header comment says an app consumes it with
- app/lib/client.ts:
createChatClient({ bases, auth, fetch }), pure and Nuxt-free so tests import it. It builds URLs, sends Bearer fromauth.token(), retries once afterauth.refresh()on 401 and then callsauth.unauthorized(), and turns the 422 envelope into a typedChatApiErrorwith field errors. Methods for the tracer:bootstrap(),members(),openConversation(type, id),messages(conversationId, opts)andsend(conversationId, body). app/lib/types.ts holds the bootstrap and message types ported from bm's api/types.ts. app/composables/useChatApi.ts binds the client to runtime config anduseNuxtApp().$chatAuth, following usePaymentGatewayApi. - app/composables/useChat.ts, minimal for now, over
useState('chat:…'):start()loads the bootstrap (and logs a console error, then stops, when hostApiBase is empty);channels;activeId;open(channel)calls openConversation('channel', channel.id) then messages;send(text). - Components ChatPage (sidebar plus pane), ChatChannelList (channel names, no create button), ChatMessageList (plain text in this task) and ChatComposer (textarea plus send). No v-html.
- vue-demo-app:
- run
pnpm --dir ../sm-demo-app/vue-demo-app add vue-chat-layer@link:../../vue-chat-layer(development pin, committed with this task's vue-demo-app commit; Task 6 swaps it for the tag before any push); - nuxt.config.ts: append 'vue-chat-layer' to extends; add '/_chat', '/_chatchannels' and '/_chatbots' to goPaths; set
public.chat.hostApiBase: '/_demo/api/v1'andchat.apiBasefromapi; no route rule for /chat (the page is server-rendered with the chat inside ClientOnly, so smoke.sh still sees the banner and the prompt); - app/plugins/auth.ts provides
chatAuth: { token, refresh, unauthorized }. token reads DEMO_TOKEN_COOKIE. refresh calls the user plugin's refresh endpoint that the login flow uses (read useDemoAuth) and stores the new token. unauthorized clears the cookie; - app/pages/chat.vue: for loggedIn,
<ClientOnly><ChatPage /></ClientOnly>; otherwise a description and aNuxtLink class="button"to{ path: '/register', query: { next: '/chat' } }labelledt('chat.registerToChat'), as the quizzes page does. useSeoMeta with title and description; - i18n en and pl: chat.title, chat.lead and chat.registerToChat.
- run
- sm-demo-app/scripts/check-chat.cjs (CommonJS, Playwright, modeled on check-remote.cjs):
--base(Nuxt origin) and DEMO_JWT from the environment;- sets the DEMO_TOKEN_COOKIE cookie with the JWT, opens {base}/chat, clicks the channel whose name is general and sends a unique text;
- waits up to 10 s for the text in the message list, then fails on a console error or a 4xx/5xx response from /_chat;
- opens {base}/chat in a fresh context without the cookie and asserts the register link to /register?next=/chat;
- prints
check-chat: ok. check-local.sh getscheck_chat, which takes visitor_jwt and runs the script as check_remote does, andchatin ALL_CHECKS plus the header list.
- tests/smoke.test.ts (vitest): createChatClient builds
/_chat/api/v1/conversations/7/messages, sends the Bearer header, retries once on 401 after refresh and maps a 422 body to field errors.
Commit vue-chat-layer (feat: chat layer tracer: bootstrap, channel list, messages, composer). Commit vue-demo-app package.json, pnpm-lock.yaml (link pin), nuxt.config.ts, auth.ts, chat.vue and locales by path (feat: /chat page on vue-chat-layer). Commit sm-demo-app scripts (test: check-chat browser check).
pnpm --dir ../vue-chat-layer test && pnpm --dir ../sm-demo-app/vue-demo-app run build && ../sm-demo-app/scripts/dev.sh up && ../sm-demo-app/scripts/check-local.sh chat
<fails_when>Non-zero exit: the layer smoke test fails; the Nuxt build fails (layer not resolved, type or template error); the stack does not come up; or check-local prints "check-local: chat failed" (the sent text does not appear, /_chat answered 4xx/5xx, or the anonymous page lacks the register link).</fails_when>
<acceptance_criteria>
- git -C ../vue-chat-layer remote prints nothing.
- grep -c "hostApiBase: ''" ../vue-chat-layer/nuxt.config.ts prints 1.
- grep -rniE 'sm-bm|jz\.bm|_demo/api' ../vue-chat-layer/app ../vue-chat-layer/nuxt.config.ts ../vue-chat-layer/README.md 2>/dev/null | wc -l prints 0.
- grep -c "'/_chat'" ../sm-demo-app/vue-demo-app/nuxt.config.ts prints 1.
- node -p "require('../sm-demo-app/vue-demo-app/package.json').dependencies['vue-chat-layer']" prints link:../../vue-chat-layer (the development pin, swapped in Task 6).
</acceptance_criteria>
A visitor can chat in #general on the local demo site through the new layer, and an anonymous visitor is invited to register.
- Port bm's lib/realtime.ts into app/lib/realtime.ts. It keeps the same exports (REALTIME_WS_PATH, tokenFailureIsFinal, wsURL, connect, subscribe, presence, onConnection, onUnavailable, realtimeState, realtimeUnavailable, disconnect, openChannel). The token is fetched from
/api/realtime/tokenwith the$chatAuthtoken through a settersetRealtimeAuth(getToken), so the module stays Nuxt-free.centrifugeis loaded with a dynamic import. AddonUserEvent(handler): () => void: the chat store'suser:{me}subscription hands every event it does not handle to the registered handlers, so a second layer never subscribes touser:{me}itself. - Port chatEvents, chatFormat, chatText and chatUnread unchanged except for import paths, and the helpers they need from format, media and tabs. The bm tests come in plan 06. chatText's renderer escapes before it marks mentions; keep it the only raw-HTML binding in the layer.
- useChat: port bm's store as a composable over useState. Replace
generalandgeneralIdwithchannels,activeIdand akind('channel' or 'dm') for the open conversation. Keep:- DMs (
conversations;openDm(userId)through POST /contexts/demo/1/dm, using the context from the bootstrap); - the member list from
/chat/members; - unread and mention counts, read marks and typing, with bm's polling fallback when realtime is unavailable (15 s open conversation, 60 s counts);
- realtime start for a member session, edits and deletions from events. Channel join and leave call chatchannels join and leave and refresh the bootstrap. Errors go to useChatNotice (a small toast state rendered by ChatNotices inside ChatPage and the floating panel), replacing bm's toast store.
- DMs (
- Port the components ChatPanel, ChatMessageList, ChatMessage (text through chatText, attachment rendering in Task 3), ChatComposer (mention popup, Enter to send, Shift+Enter newline), ChatHeader (unread and mention badges), ChatDmList, ChatMemberPicker, ChatMentionPopup and ChatAvatar, plus ChatIcon with the icons they use. ChatPage composes sidebar (channels, DMs, a new-DM button opening the member picker) and pane. Strip every bm-specific element (entity embeds, deadline pins, the student app's tabs) or leave a named slot in its place.
- vue-demo-app app/lib/realtime.ts becomes a re-export of
vue-chat-layer/app/lib/realtime(with a comment), and the app plugin callssetRealtimeAuthwith the DEMO_TOKEN_COOKIE reader. If the existing app/lib/realtime.test.ts fails against the shared client, replace it with bm's current realtime.test.ts, adjusted only in import paths.
Commit vue-chat-layer (feat: port the chat store, realtime client and components) and vue-demo-app (refactor: share the chat layer's realtime client).
pnpm --dir ../vue-chat-layer test && pnpm --dir ../sm-demo-app/vue-demo-app test && pnpm --dir ../sm-demo-app/vue-demo-app run build && ../sm-demo-app/scripts/check-local.sh chat realtime remote
<fails_when>Non-zero exit: layer smoke or vue-demo-app vitest red (the realtime re-export broke the presentations tests), the build fails, or check-local reports chat, realtime or remote failed (the presentations remote no longer works through the shared client).</fails_when>
<acceptance_criteria>
- grep -c 'export function onUserEvent' ../vue-chat-layer/app/lib/realtime.ts prints 1.
- grep -rn "from 'pinia'" ../vue-chat-layer/app | wc -l prints 0.
- grep -c 'vue-chat-layer/app/lib/realtime' ../sm-demo-app/vue-demo-app/app/lib/realtime.ts prints 1.
- grep -rn 'v-html' ../vue-chat-layer/app/components | grep -v 'renderChatText\|rendered' | wc -l prints 0.
</acceptance_criteria>
The layer behaves like bm's chat across several channels and DMs, live, with one shared realtime connection on every page.
- Threads: a reply count on root messages opens ChatThreadPane, which lists replies (GET /messages/{id}/replies), posts replies (POST /messages/{id}/replies) and mutes the thread (PUT /threads/{rootId}/mute). Realtime reply events update the count.
- Pins: ChatPinsPanel, opened from the header of a channel, lists GET .../channels/{id}/pins. Pin and unpin show only when the API allows it: a refused pin shows a notice and hides the action for the session.
- Reactions: ChatReactionBar ported, with the keys from GET /reactions.
- Attachments: ChatStagingChips ported. Uploads go to POST /attachments within the bootstrap limits (max_files, max_bytes), and the message shows a download link (GET /attachments/{messageId}/{fileId} with the auth header, fetched as a blob).
- Delete: ChatDeleteDialog ported. Own messages always; others' only when the bootstrap's moderator is true and the conversation is a channel (D-22).
- Edits: an Edit action on own messages through PUT /messages/{id}.
- Link embeds: app/lib/linkEmbeds.ts with
linkify(escapedHtml),registerEmbedRenderer(match: (url: URL) => boolean, component)andembedRendererFor(url). ChatMessage renders the first URL of a message with a registered renderer or with ChatLinkEmbed (host and path, no fetch). max_embeds caps the cards. - Commands (D-05): typing "/" at the start of the composer opens ChatCommandPicker, filled from GET /commands (cached per session) and filtered by prefix. Sending a "/" message calls POST /dispatch with {input} instead of posting. An ephemeral answer renders as a local, dismissable, sender-only system row with the payload text (escaped); a 422 shows the error.
- Slots: ChatHeader renders
<slot name="conversation-actions" :conversation>only when the open conversation is a DM (D-23). ChatChannelList renders<slot name="sidebar-footer" />. ChatPage forwards both slots. - Styling: chat-tokens.css and chat-base.css (neutral tokens an app overrides, as pg-tokens.css does), registered in nuxt.config.ts css with absolute paths.
- i18n: every UI string of the layer in en and pl under
chat.*. The app's own copy stays in the app. - README.md in the layer structure of vue-faq-layer and vue-paymentgateway-layer:
- install by tag; extends;
- the
$chatAuthhook; the runtime-config keys; - the host bootstrap contract (the two JSON shapes with a neutral
acmehost); - slots,
registerEmbedRenderer,onUserEvent; - client-only rendering (wrap ChatPage and ChatFloatingPanel in ClientOnly); testing. Name no consuming application.
Commit vue-chat-layer (feat: threads, pins, reactions, attachments, link embeds and the command picker).
pnpm --dir ../vue-chat-layer test && pnpm --dir ../vue-chat-layer run build:playground && pnpm --dir ../sm-demo-app/vue-demo-app run build && ../sm-demo-app/scripts/check-local.sh chat
<fails_when>Non-zero exit: the layer smoke test, the playground build or the app build fails, or check-local prints "check-local: chat failed".</fails_when>
<acceptance_criteria>
- grep -c 'conversation-actions' ../vue-chat-layer/app/components/Chat/Header.vue prints at least 1, and the slot sits inside a condition on the DM type (grep -c "type === 'dm'" ../vue-chat-layer/app/components/Chat/Header.vue prints at least 1).
- grep -c 'export function registerEmbedRenderer' ../vue-chat-layer/app/lib/linkEmbeds.ts prints 1.
- grep -c '/dispatch' ../vue-chat-layer/app/lib/client.ts prints at least 1.
- node -e "const a=require('../vue-chat-layer/i18n/locales/en.json'),b=require('../vue-chat-layer/i18n/locales/pl.json');const k=o=>Object.entries(o).flatMap(([x,v])=>typeof v==='object'?k(v).map(y=>x+'.'+y):[x]);const d=k(a).filter(x=>!k(b).includes(x));if(d.length){console.error(d);process.exit(1)}" exits 0 (PL covers every EN key).
- In a manual run on the local stack, a "/demo" command in the composer shows the ephemeral answer and nothing is posted to the channel (recorded in the SUMMARY).
</acceptance_criteria>
The layer has the full D-02 feature set plus the slash command picker and the extension points other layers and hosts plug into.
Commit the layer (feat: floating chat panel), vue-demo-app (feat: floating chat panel, Chat tour card) and sm-demo-app scripts separately.
pnpm --dir ../vue-chat-layer test && pnpm --dir ../sm-demo-app/vue-demo-app run build && ../sm-demo-app/scripts/check-local.sh tour chat
<fails_when>Non-zero exit: build or tests fail, or check-local reports tour failed (missing Chat or Czat card, wrong card count) or chat failed.</fails_when>
<acceptance_criteria>
- grep -c 'ChatFloatingPanel' ../sm-demo-app/vue-demo-app/app/layouts/default.vue prints 1 and the element sits inside ClientOnly.
- grep -c "key: 'chat'" ../sm-demo-app/vue-demo-app/app/pages/index.vue prints 1.
- grep -c '/chat' ../sm-demo-app/scripts/smoke.sh prints at least 1.
</acceptance_criteria>
Chat is reachable from every page for members and from the tour for everyone, in EN and PL.
<threat_model>
Trust Boundaries
| Boundary | Description |
|---|---|
| other members' messages, names and URLs to the browser | untrusted content rendered in every member's page |
| browser to the chat-family APIs | JWT bearer from the demo cookie; actor fixed server-side |
| browser to Centrifugo | connection token per member; subscriptions authorized server-side |
| pnpm install from git.golem15.com | the layer tag becomes an input of every consuming site |
STRIDE Threat Register
| Threat ID | Category | Component | Severity | Disposition | Mitigation Plan |
|---|---|---|---|---|---|
| T-20-14 | Tampering | stored XSS through message text, names or URLs | high | mitigate | text rendered through the ported chatText renderer that escapes before marking mentions; linkify runs on escaped HTML and only emits http(s) anchors with rel noopener noreferrer nofollow; names and payloads are text bindings; acceptance grep limits v-html to the renderer output |
| T-20-15 | Information disclosure | JWT handling in the layer | medium | mitigate | the token comes only from the app's $chatAuth hook (cookie reader), is sent as a Bearer header to same-origin paths, never stored by the layer, and cleared through unauthorized() after a failed refresh |
| T-20-16 | Information disclosure | attachment downloads | medium | mitigate | downloads go through GET /attachments/{messageId}/{fileId} with the Bearer header (participants only server-side); no public URL is built |
| T-20-17 | Spoofing | slash command answers | low | mitigate | ephemeral answers are rendered locally as escaped text marked as a system row and never posted as the user |
| T-20-18 | Tampering | layer supply chain | medium | mitigate | the layer pins exact versions already audited in the workspace (centrifuge 5.7.3, @nuxtjs/i18n 10.4.0); vue-demo-app pins the layer by tag with a committed lockfile |
| T-20-19 | Denial of service | realtime connections | low | mitigate | one shared Centrifuge client per page (re-export in vue-demo-app); polling fallback intervals of 15 s and 60 s from bm |
| T-20-SC | Tampering | npm installs | high | mitigate | no new package: centrifuge 5.7.3 was audited in 19.4.1 (protobufjs postinstall disabled in pnpm-workspace.yaml); @nuxtjs/i18n 10.4.0, vitest 3.2.7, nuxt, vue and typescript are the pins already in the workspace lockfiles |
| </threat_model> |
<success_criteria>
The public demo site has /chat with channels, DMs, threads, pins, reactions, attachments, mentions, typing, unread counts, link embeds and slash commands working live (SC-2, D-01 to D-05), a floating panel for members and an invitation for visitors. vue-chat-layer v0.1.0 is a reusable, app-neutral layer.
</success_criteria>