Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

548 B
Raw Blame
import { useAuth } from '@/contexts/AuthContext';
import { useRegisterCCAgentSidebar } from '@/features/cc-agent/useRegisterCCAgentSidebar';

import { GhostMainViewHost } from './GhostMainViewHost';
import { ghostWebviewOwnerKey } from './lib/ghostPluginViewModel';

/** Seeds the shared app sidebar even on a cold deep link to /apps/:ghostId. */
export function GhostMainViewFeatureLayout() {
  useRegisterCCAgentSidebar();
  const { mode, dataOwnerId } = useAuth();
  return <GhostMainViewHost key={ghostWebviewOwnerKey(mode, dataOwnerId)} />;
}