import type {
  MindSpace,
  MindSpaceAsset,
  MindSpaceCategory,
  MindSpaceChatContext,
  MindSpacePage,
} from '../types';

export type { MindSpaceChatContext } from '../types';

export {
  buildContextPrefix,
  buildMindSpaceChatContext,
  formatContextChip,
} from '../../mindspace-chat-context.mjs';

export type BuildMindSpaceChatContextInput = {
  space: MindSpace;
  ownerUsername?: string;
  selectedCategory: MindSpaceCategory | null;
  selectedPageId: string | null;
  pages: MindSpacePage[];
  pageLive?: {
    page: MindSpacePage;
    title: string;
    summary: string;
    content: string;
  } | null;
  assets?: MindSpaceAsset[];
  focusedAsset?: MindSpaceAsset | null;
  route: string;
  agentSessionId?: string | null;
  h5ApiBase?: string | null;
  pageEditMode?: boolean;
  parentAgentSessionId?: string | null;
};
