Show each bot's Bot Chat in Canopy and harden the session tree (0.2.0)
- Bot Chat as the first row under each bot, read from the roster projection (profiles.list include_sessions) and opened in the bots workspace like the built-in Bots pane; never created by Canopy - Sort conversations by last activity, cap the stored-cursor scan at 100 pages, typed CanopyError for user-facing messages - jsxs for static children (no React key warnings), useRef for the lock - package.json with npm test, .gitignore, tests and browser fixture Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a8b2459dbc
commit
e0a147e2e8
6 files changed
+225
-66
No files matched your search
@@ -1,10 +1,18 @@
|
||||
import {host, useQuery, useQueryClient, useValue} from '@hermes/plugin-sdk'
|
||||
import {useEffect, useId, useState} from 'react'
|
||||
import {jsx as h} from 'react/jsx-runtime'
|
||||
import {useEffect, useId, useRef, useState} from 'react'
|
||||
import {jsx as h, jsxs} from 'react/jsx-runtime'
|
||||
|
||||
const ID = 'hermes-canopy'
|
||||
const PAGE_SIZE = 200
|
||||
const PERSISTED_LIMIT = 500
|
||||
// Safety net against gateways that keep handing out fresh cursors (100 × 200 = 20 000 rows).
|
||||
const MAX_STORED_PAGES = 100
|
||||
|
||||
/** An error whose message is meant for the user and may be shown verbatim. */
|
||||
export class CanopyError extends Error {
|
||||
name = 'CanopyError'
|
||||
}
|
||||
const fail = message => {throw new CanopyError(message)}
|
||||
const HIDDEN_SOURCES = new Set(['bot_room', 'kanban', 'tool', 'oneshot'])
|
||||
const idText = v => typeof v === 'string' && v.trim() === v && v ? v : null
|
||||
const text = v => typeof v === 'string' ? v.trim() : ''
|
||||
@@ -14,26 +22,26 @@ const collator = new Intl.Collator('de', {numeric:true})
|
||||
const timeFormat = new Intl.DateTimeFormat('de', {day:'2-digit',month:'2-digit',hour:'2-digit',minute:'2-digit'})
|
||||
|
||||
export async function routesFor(api, connection) {
|
||||
if (!idText(connection)) throw Error('Keine eindeutige Gateway-Verbindung.')
|
||||
if (!idText(connection)) fail('Keine eindeutige Gateway-Verbindung.')
|
||||
const routes = await api.profileRoutes()
|
||||
if (!Array.isArray(routes)) throw Error('Profilverzeichnis nicht verfügbar.')
|
||||
if (!Array.isArray(routes)) fail('Profilverzeichnis nicht verfügbar.')
|
||||
const byProfile = new Map()
|
||||
for (const r of routes) {
|
||||
if (r?.connectionId !== connection) continue
|
||||
if (!idText(r.profile) || !idText(r.targetProfile) || !['local','remote'].includes(r.mode)) {
|
||||
throw Error('Ungültige Profilroute.')
|
||||
fail('Ungültige Profilroute.')
|
||||
}
|
||||
if (byProfile.has(r.profile) && identity(byProfile.get(r.profile)) !== identity(r)) throw Error('Mehrdeutige Profilroute.')
|
||||
if (byProfile.has(r.profile) && identity(byProfile.get(r.profile)) !== identity(r)) fail('Mehrdeutige Profilroute.')
|
||||
byProfile.set(r.profile,r)
|
||||
}
|
||||
if (!byProfile.size) throw Error('Keine erreichbaren Profile auf diesem Gateway.')
|
||||
if (!byProfile.size) fail('Keine erreichbaren Profile auf diesem Gateway.')
|
||||
return [...byProfile.values()].sort((a,b)=>collator.compare(a.profile,b.profile))
|
||||
}
|
||||
|
||||
function parseList(res, scope) {
|
||||
if (res?.scope !== scope || !Array.isArray(res.sessions) || res.sessions.length > PAGE_SIZE ||
|
||||
(scope === 'stored' && res.next_cursor !== null && !idText(res.next_cursor))) {
|
||||
throw Error('Dieses Gateway meldet keinen unterstützten Session-/Paginationsvertrag.')
|
||||
fail('Dieses Gateway meldet keinen unterstützten Session-/Paginationsvertrag.')
|
||||
}
|
||||
return res.sessions
|
||||
}
|
||||
@@ -41,7 +49,7 @@ function parseList(res, scope) {
|
||||
function normalized(r) {
|
||||
if (r?.hidden || r?.archived || r?.auto_archived || r?.is_internal_child || HIDDEN_SOURCES.has(r?.source)) return null
|
||||
if (!idText(r?.id) || !idText(r?.session_id)) {
|
||||
throw Error('Unvollständige Session-Metadaten.')
|
||||
fail('Unvollständige Session-Metadaten.')
|
||||
}
|
||||
const aliases = [...new Set([r.id,r.session_id,r.resolved_id,r._lineage_root_id,
|
||||
...(Array.isArray(r._lineage_ids) ? r._lineage_ids : [])].filter(idText))]
|
||||
@@ -57,20 +65,20 @@ function unsupportedList(error) {
|
||||
async function loadPersisted(api, route, signal) {
|
||||
signal?.throwIfAborted()
|
||||
if (typeof api.listPersistedSessions !== 'function') {
|
||||
throw Error('Dieses Gateway meldet keinen unterstützten Session-/Paginationsvertrag.')
|
||||
fail('Dieses Gateway meldet keinen unterstützten Session-/Paginationsvertrag.')
|
||||
}
|
||||
const result = await api.listPersistedSessions(route,{profile:route.targetProfile,limit:PERSISTED_LIMIT})
|
||||
signal?.throwIfAborted()
|
||||
if (!Array.isArray(result?.sessions) || !Number.isSafeInteger(result.total) || result.total < 0 ||
|
||||
result.offset !== 0 || !Number.isSafeInteger(result.limit) || result.limit < 1 || result.limit > PERSISTED_LIMIT ||
|
||||
(result.errors !== undefined && !Array.isArray(result.errors))) {
|
||||
throw Error('Die gespeicherte Sessionliste hat ein unbekanntes Format.')
|
||||
fail('Die gespeicherte Sessionliste hat ein unbekanntes Format.')
|
||||
}
|
||||
if (result.errors?.length || result.storage?.[route.targetProfile] === 'corrupt') {
|
||||
throw Error('Der Profilspeicher konnte nicht vollständig gelesen werden.')
|
||||
fail('Der Profilspeicher konnte nicht vollständig gelesen werden.')
|
||||
}
|
||||
if (result.sessions.some(row=>row?.profile !== route.targetProfile)) {
|
||||
throw Error('Die gespeicherte Sessionliste enthält eine fremde Profilzuordnung.')
|
||||
fail('Die gespeicherte Sessionliste enthält eine fremde Profilzuordnung.')
|
||||
}
|
||||
return {sessions:mergeRows(result.sessions.map(row=>({...row,session_id:row.id}))),liveAtLimit:false,
|
||||
storedAtLimit:result.total > result.limit || result.sessions.length >= result.limit}
|
||||
@@ -92,7 +100,8 @@ export async function loadBot(api, route, signal) {
|
||||
const rows = [...parseList(first,'stored')]
|
||||
const seen = new Set()
|
||||
for (let cursor = first.next_cursor; cursor !== null;) {
|
||||
if (seen.has(cursor)) throw Error('Wiederholter Cursor: Abruf wurde abgebrochen.')
|
||||
if (seen.has(cursor)) fail('Wiederholter Cursor: Abruf wurde abgebrochen.')
|
||||
if (seen.size + 1 >= MAX_STORED_PAGES) fail('Zu viele Seiten in der Sessionliste: Abruf wurde abgebrochen.')
|
||||
seen.add(cursor)
|
||||
const page = await request('stored',cursor)
|
||||
rows.push(...parseList(page,'stored'))
|
||||
@@ -115,27 +124,34 @@ function mergeRows(rows) {
|
||||
merged.lastActive = Math.max(merged.lastActive,r.lastActive,...matches.map(m=>m.lastActive))
|
||||
for (const alias of merged.aliases) identities.set(alias,merged)
|
||||
}
|
||||
return [...new Set(identities.values())].sort((a,b)=>collator.compare(a.title,b.title) || collator.compare(a.id,b.id))
|
||||
// Most recently active first, so the initially visible rows are the relevant ones.
|
||||
return [...new Set(identities.values())].sort((a,b)=>
|
||||
b.lastActive - a.lastActive || collator.compare(a.title,b.title) || collator.compare(a.id,b.id))
|
||||
}
|
||||
|
||||
const stillConnected = (api, connection) => api.state.connectionId.get() === connection && api.state.gateway.get() === 'open'
|
||||
|
||||
async function assertRoute(api, connection, route) {
|
||||
if (!stillConnected(api,connection)) fail('Gateway ist nicht verbunden.')
|
||||
const current = await routesFor(api,connection)
|
||||
if (!stillConnected(api,connection) || !current.some(r=>identity(r) === identity(route))) fail('Profilroute nicht mehr verfügbar.')
|
||||
}
|
||||
|
||||
export async function openExisting(api, connection, route, session, inventory) {
|
||||
const stillConnected = () => api.state.connectionId.get() === connection && api.state.gateway.get() === 'open'
|
||||
if (!stillConnected()) throw Error('Gateway ist nicht verbunden.')
|
||||
const current = await routesFor(api,connection)
|
||||
if (!stillConnected() || !current.some(r=>identity(r) === identity(route))) throw Error('Profilroute nicht mehr verfügbar.')
|
||||
await assertRoute(api,connection,route)
|
||||
const has = entry => entry.sessions?.some(s=>s.id === session.id)
|
||||
if (!inventory.some(entry=>identity(entry.route) === identity(route) && has(entry))) {
|
||||
throw Error('Die Unterhaltung ist nicht mehr verfügbar.')
|
||||
fail('Die Unterhaltung ist nicht mehr verfügbar.')
|
||||
}
|
||||
const aliases = new Set(session.aliases)
|
||||
if (inventory.some(entry=>entry.route.connectionId === connection && identity(entry.route) !== identity(route) &&
|
||||
entry.sessions?.some(other=>other.aliases.some(a=>aliases.has(a))))) {
|
||||
throw Error('Die Session-ID ist nicht eindeutig. Bitte über „Sessions“ öffnen.')
|
||||
fail('Die Session-ID ist nicht eindeutig. Bitte über „Sessions“ öffnen.')
|
||||
}
|
||||
const owner = api.state.focusedSessionOwner?.get()
|
||||
const currentId = api.state.focusedStoredSessionId?.get()
|
||||
if (aliases.has(currentId) && (!owner || owner.connectionId !== connection || owner.profile !== route.profile)) {
|
||||
throw Error('Die aktive Session-ID ist nicht eindeutig.')
|
||||
fail('Die aktive Session-ID ist nicht eindeutig.')
|
||||
}
|
||||
await api.openSession(session.id,{route,intent:'in-place',awaitHydration:true,keepAllProfilesScope:true})
|
||||
}
|
||||
@@ -145,17 +161,54 @@ export function avatarSource(value) {
|
||||
/^data:image\/(?:png|jpe?g|gif|webp|avif);base64,[a-z0-9+/]+=*$/i.test(value.data) ? value.data : null
|
||||
}
|
||||
|
||||
// The canonical "Bot Chat" (one per bot, identified server-side by its exact title).
|
||||
const BOT_CHAT_TITLE = 'Bot Chat'
|
||||
// Mirrors sdk.BOT_CHAT_SESSION_HYDRATION_TIMEOUT_MS; a named import would break on older SDKs.
|
||||
const BOT_CHAT_HYDRATION_MS = 60000
|
||||
|
||||
/** Roster summary `canonical_session` → Bot-Chat entry, or null when the gateway reports none. */
|
||||
export function botChatOf(c) {
|
||||
if (!idText(c?.id)) return null
|
||||
const openId = idText(c.resolved_id) ?? c.id
|
||||
const count = Number.isFinite(c.live_message_count) ? c.live_message_count : c.message_count
|
||||
return {id:c.id, openId, aliases:[...new Set([c.id,openId])], preview:text(c.preview),
|
||||
lastActive:activity(c.last_active) || activity(c.started_at),
|
||||
expectHistory:Number.isFinite(count) ? count > 0 : true}
|
||||
}
|
||||
|
||||
// include_sessions adds canonical_session: the same roster projection the built-in Bots pane polls every 5 s.
|
||||
async function loadMetadata(api, route) {
|
||||
const res = await api.requestProfile(route,'profiles.list',{profile:route.targetProfile,include_sessions:false},15000)
|
||||
if (!Array.isArray(res?.profiles)) throw Error('Profilmetadaten nicht verfügbar.')
|
||||
const res = await api.requestProfile(route,'profiles.list',{profile:route.targetProfile,include_sessions:true},15000)
|
||||
if (!Array.isArray(res?.profiles)) fail('Profilmetadaten nicht verfügbar.')
|
||||
return Object.fromEntries(res.profiles.filter(p=>idText(p?.name)).map(p=>[p.name,{
|
||||
name:text(p.ui_meta?.['hermes-bots']?.title) || text(p.display_name) || p.name, hasAvatar:p.has_avatar === true,
|
||||
botChat:botChatOf(p.canonical_session),
|
||||
}]))
|
||||
}
|
||||
|
||||
const el = (type, props, ...children) => h(type,children.length ? {
|
||||
...props,children:children.length === 1 ? children[0] : children,
|
||||
} : props)
|
||||
/**
|
||||
* Opens a bot's existing Bot Chat the way the built-in Bots pane does (bots workspace, owner-scoped tab,
|
||||
* stale compression tiles discarded). Never creates one: a missing Bot Chat is reported, not minted.
|
||||
*/
|
||||
export async function openBotChat(api, connection, route, metaRoute) {
|
||||
await assertRoute(api,connection,route)
|
||||
// Re-read right before opening: compression moves the lineage tip, so a polled id may be stale.
|
||||
const chat = (await loadMetadata(api,metaRoute))[route.targetProfile]?.botChat
|
||||
if (!chat) fail('Für diesen Bot gibt es noch keinen Bot Chat. Bitte im Reiter „Bots“ anlegen.')
|
||||
if (!stillConnected(api,connection)) fail('Gateway ist nicht verbunden.')
|
||||
const ownerKey = `bot:${route.connectionId}::${route.profile}`
|
||||
api.focusOpenWorkspaceSession?.(ownerKey,
|
||||
tile=>tile.workspaceTabTitle === BOT_CHAT_TITLE && !chat.aliases.includes(String(tile.storedSessionId)),[])
|
||||
await api.openSession(chat.openId,{route,profile:route.profile,intent:'in-place',awaitHydration:true,
|
||||
expectHistory:chat.expectHistory,forceResume:true,hydrationTimeoutMs:BOT_CHAT_HYDRATION_MS,keepAllProfilesScope:true,
|
||||
workspaceMode:'bots',workspaceOwnerKey:ownerKey,retryHydrationTimeoutOnce:true,tabTitle:BOT_CHAT_TITLE})
|
||||
return chat
|
||||
}
|
||||
|
||||
// Positional children are static, so they go through jsxs (no key warnings); arrays of keyed items are spread in.
|
||||
const el = (type, props, ...children) => children.length > 1
|
||||
? jsxs(type,{...props,children})
|
||||
: h(type,children.length ? {...props,children:children[0]} : props)
|
||||
const sr = {color:'var(--ui-text-secondary)',fontSize:'0.85em',margin:'6px 0'}
|
||||
const clip = {minWidth:0,overflow:'hidden',whiteSpace:'nowrap',textOverflow:'ellipsis'}
|
||||
const line = {display:'flex',gap:6,alignItems:'center',textAlign:'start',width:'100%'}
|
||||
@@ -176,7 +229,15 @@ function Avatar({route, name, enabled}) {
|
||||
}
|
||||
|
||||
const botKey = r => [ID,'bot',r.connectionId,identity(r)]
|
||||
function Bot({route, connection, meta, online, expanded, toggle, routes, setNotice, busy, setBusy, openLock}) {
|
||||
const stampOf = seconds => seconds ? new Date(seconds*1000) : null
|
||||
function Row({title, label=title, stamp, active, disabled, onClick, accent=false}) {
|
||||
return el('button',{type:'button',title,disabled,'aria-current':active?'true':undefined,onClick,style:{...line,...control,
|
||||
...(accent?{fontWeight:600}:{}),...(active?{fontWeight:650,background:'var(--ui-stroke-secondary)'}:{})}},
|
||||
el('span',{style:{...clip,flex:'1 1 auto'}},label),
|
||||
stamp && el('time',{dateTime:stamp.toISOString(),style:{...sr,whiteSpace:'nowrap',margin:0}},timeFormat.format(stamp)))
|
||||
}
|
||||
|
||||
function Bot({route, connection, meta, metaRoute, metaReady, online, expanded, toggle, routes, setNotice, busy, setBusy, openLock}) {
|
||||
const listId = useId()
|
||||
const client = useQueryClient()
|
||||
const [shown,setShown] = useState(25)
|
||||
@@ -186,45 +247,46 @@ function Bot({route, connection, meta, online, expanded, toggle, routes, setNoti
|
||||
queryFn:({signal})=>loadBot(host,route,signal),staleTime:20000,
|
||||
refetchInterval:expanded && online ? 90000 : false,retry:false})
|
||||
const botName = meta?.name || route.profile
|
||||
const select = async (s) => {
|
||||
const botChat = meta?.botChat ?? null
|
||||
const mine = owner?.connectionId === connection && owner.profile === route.profile
|
||||
const guarded = (action, fallback) => async () => {
|
||||
if (openLock.current) return
|
||||
openLock.current = true
|
||||
setNotice('')
|
||||
setBusy(true)
|
||||
try {
|
||||
const entries = routes.map(r=>({route:r,sessions: client.getQueryData(botKey(r))?.sessions}))
|
||||
await openExisting(host,connection,route,s,entries)
|
||||
} catch (error) {
|
||||
setNotice(error.message?.startsWith('Die ') || error.message?.startsWith('Profilroute') || error.message?.startsWith('Gateway ist')
|
||||
? error.message : 'Unterhaltung konnte nicht geöffnet werden.')
|
||||
try {await action()} catch (error) {
|
||||
setNotice(error instanceof CanopyError ? error.message : fallback)
|
||||
} finally {openLock.current = false; setBusy(false)}
|
||||
}
|
||||
const select = s => guarded(()=>openExisting(host,connection,route,s,
|
||||
routes.map(r=>({route:r,sessions: client.getQueryData(botKey(r))?.sessions}))),'Unterhaltung konnte nicht geöffnet werden.')()
|
||||
const selectBotChat = guarded(()=>openBotChat(host,connection,route,metaRoute),'Bot Chat konnte nicht geöffnet werden.')
|
||||
// The Bot Chat has its own row; never list it twice should a gateway also return it as a regular session.
|
||||
const sessions = (q.data?.sessions ?? []).filter(s=>!botChat || !s.aliases.some(a=>botChat.aliases.includes(a)))
|
||||
return el('li',null,
|
||||
el('button',{type:'button','aria-expanded':expanded,'aria-controls':listId,onClick:toggle,
|
||||
title:botName,style:{...line,...control}},
|
||||
el('span',{'aria-hidden':true},expanded?'▾':'▸'),h(Avatar,{route,name:botName,enabled:online && !!meta?.hasAvatar}),
|
||||
el('strong',{style:clip},botName)),
|
||||
el('div',{id:listId,hidden:!expanded,style:{marginInlineStart:12,paddingInlineStart:8,borderInlineStart:'1px solid var(--ui-stroke-secondary)'}},
|
||||
!expanded ? null : [
|
||||
q.isPending && online && message('Unterhaltungen werden geladen …'),
|
||||
...(!expanded ? [] : [
|
||||
!online && message('Gateway nicht verbunden.'),
|
||||
online && metaReady && !botChat && message('Noch kein Bot Chat – im Reiter „Bots“ anlegen.'),
|
||||
botChat && el('ul',{style:list},h('li',{children:h(Row,{title:botChat.preview || BOT_CHAT_TITLE,
|
||||
label:`★ ${BOT_CHAT_TITLE}`,accent:true,stamp:stampOf(botChat.lastActive),disabled:!online || busy,
|
||||
active:mine && botChat.aliases.includes(focused),onClick:selectBotChat})})),
|
||||
q.isPending && online && message('Unterhaltungen werden geladen …'),
|
||||
q.isError && el('div',null,
|
||||
message('Unterhaltungen konnten für dieses Profil nicht geladen werden.',true),
|
||||
el('button',{type:'button',style:control,disabled:!online,onClick:()=>q.refetch()},'Erneut versuchen')),
|
||||
q.isSuccess && q.data.sessions.length === 0 && message('Keine sichtbaren Unterhaltungen.'),
|
||||
q.isSuccess && sessions.length === 0 && message('Keine weiteren Unterhaltungen.'),
|
||||
q.data?.liveAtLimit && message('Das Gateway begrenzt seine Liste laufender Sessions. Weitere aktive Unterhaltungen können fehlen.',true),
|
||||
q.data?.storedAtLimit && message('Das SDK begrenzt die Kompatibilitätsliste. Weitere Unterhaltungen findest du im Reiter „Sessions“.',true),
|
||||
el('ul',{style:list},...(q.data?.sessions ?? []).slice(0,shown).map(s=>{
|
||||
const active = owner?.connectionId === connection && owner.profile === route.profile && s.aliases.includes(focused)
|
||||
const stamp = s.lastActive ? new Date(s.lastActive*1000) : null
|
||||
return h('li',{children:el('button',{type:'button',title:s.title,disabled:!online || busy || q.isError,
|
||||
'aria-current':active?'true':undefined,onClick:()=>select(s),style:{...line,...control,
|
||||
...(active?{fontWeight:650,background:'var(--ui-stroke-secondary)'}:{})}},
|
||||
el('span',{style:{...clip,flex:'1 1 auto'}},s.title),
|
||||
stamp && el('time',{dateTime:stamp.toISOString(),style:{...sr,whiteSpace:'nowrap',margin:0}},timeFormat.format(stamp)))},s.id)
|
||||
})),
|
||||
(q.data?.sessions.length ?? 0)>shown && el('button',{type:'button',style:control,onClick:()=>setShown(n=>n+25)},'Weitere Sessions anzeigen'),
|
||||
]))
|
||||
el('ul',{style:list},...sessions.slice(0,shown).map(s=>h('li',{children:h(Row,{title:s.title,
|
||||
stamp:stampOf(s.lastActive),disabled:!online || busy || q.isError,
|
||||
active:mine && s.aliases.includes(focused),onClick:()=>select(s)})},s.id))),
|
||||
sessions.length>shown && el('button',{type:'button',style:control,onClick:()=>setShown(n=>n+25)},'Weitere Sessions anzeigen'),
|
||||
])))
|
||||
}
|
||||
|
||||
function Overview({ctx}) {
|
||||
@@ -232,7 +294,7 @@ function Overview({ctx}) {
|
||||
const activeProfile = useValue(host.state.profile)
|
||||
const online = useValue(host.state.gateway) === 'open'
|
||||
const client = useQueryClient()
|
||||
const [openLock] = useState(()=>({current:false}))
|
||||
const openLock = useRef(false)
|
||||
const [busy,setBusy] = useState(false)
|
||||
const [notice,setNotice] = useState('')
|
||||
const [open,setOpen] = useState(()=>{
|
||||
@@ -262,20 +324,20 @@ function Overview({ctx}) {
|
||||
return next
|
||||
})
|
||||
return el('section',{'aria-label':'Bot- und Sessionübersicht',style:{height:'100%',overflow:'auto',padding:'6px 8px'}},
|
||||
message('Bot Chat bleibt im Reiter „Bots“.'),
|
||||
!online && message('Gateway ist nicht verbunden.'),
|
||||
online && directory.isPending && message('Profile werden geladen …'),
|
||||
online && directory.isError && el('div',null,message('Profilverzeichnis nicht verfügbar.',true),
|
||||
el('button',{type:'button',style:control,onClick:()=>directory.refetch()},'Erneut versuchen')),
|
||||
online && meta.isError && message('Anzeigenamen und Avatare nicht verfügbar; Profilnamen werden verwendet.'),
|
||||
online && meta.isError && message('Anzeigenamen, Avatare und Bot Chats nicht verfügbar; Profilnamen werden verwendet.'),
|
||||
notice && message(notice,true),
|
||||
el('ul',{style:list},...routes.map(route=>h(Bot,{route,connection,meta:meta.data?.[route.targetProfile],online:online && !directory.isError,
|
||||
el('ul',{style:list},...routes.map(route=>h(Bot,{route,connection,meta:meta.data?.[route.targetProfile],
|
||||
metaRoute:home,metaReady:meta.isSuccess,online:online && !directory.isError,
|
||||
expanded:open.has(identity(route)),toggle:()=>toggle(route),routes,setNotice,busy,setBusy,openLock},identity(route)))))
|
||||
}
|
||||
|
||||
export default {
|
||||
id:ID,name:'Hermes Canopy',version:'0.1.2',defaultEnabled:false,
|
||||
description:'Ein Baum für Bots und ihre bestehenden Unterhaltungen auf einem Gateway.',
|
||||
id:ID,name:'Hermes Canopy',version:'0.2.0',defaultEnabled:false,
|
||||
description:'Ein Baum für Bots, ihren Bot Chat und ihre bestehenden Unterhaltungen auf einem Gateway.',
|
||||
register(ctx) {
|
||||
ctx.register({id:'overview',area:'panes',title:'Übersicht',order:900,
|
||||
data:{placement:'left',collapsible:true,hideOnly:true,dock:{pane:'sessions',pos:'center'}},
|
||||
|
||||
Reference in new issue
Block a user