🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
export const AGENT_DOCUMENT_CATEGORY = 'document';
export const AGENT_DOCUMENT_SKILL_CATEGORY = 'skill';
export const AGENT_DOCUMENT_WEB_CATEGORY = 'web';
export const AGENT_DOCUMENT_SOURCE_TYPE = 'agent';
export const AGENT_SIGNAL_SOURCE_TYPE = 'agent-signal';
export const DERIVED_DOCUMENT_SOURCE_TYPE = 'document';
export const WEB_DOCUMENT_SOURCE_TYPE = 'web';
export const AGENT_DOCUMENT_FILE_TYPE = 'agent/document';
export const AGENT_PLAN_FILE_TYPE = 'agent/plan';
/** A verify criterion's detailed judging instruction / rule body. */
export const VERIFY_INSTRUCTION_FILE_TYPE = 'verify/instruction';
export const CUSTOM_DOCUMENT_FILE_TYPE = 'custom/document';
export const CUSTOM_FOLDER_FILE_TYPE = 'custom/folder';
/**
* A page whose `content` is a self-contained HTML document, rendered in a
* sandboxed frame instead of the rich-text editor. It never carries editorData.
*/
export const HTML_DOCUMENT_FILE_TYPE = 'custom/html';
export const MARKDOWN_MIME_TYPES = ['text/markdown', 'text/x-markdown'];
export const MARKDOWN_DOCUMENT_FILE_TYPES = ['markdown', ...MARKDOWN_MIME_TYPES];
export const EDITOR_DOCUMENT_SOURCE_TYPES = [
AGENT_DOCUMENT_SOURCE_TYPE,
AGENT_SIGNAL_SOURCE_TYPE,
DERIVED_DOCUMENT_SOURCE_TYPE,
];
/**
* `documents.source_type` values machine-generated rows carry. User-facing
* page/resource listings exclude these by default so agent working artifacts
* (tool outputs, skill bundles) don't flood the library.
*/
/** Folder holding an agent's archived tool results; runtime data, never browsable content. */
export const AGENT_TOOL_RESULTS_DIR_NAME = '.tool-results';
export const AGENT_ARTIFACT_SOURCE_TYPES = ['agent', 'agent-signal'] as const;
/**
* `documents.source_type` values a user-authored Page row carries in the DB.
* `DocumentSourceType.EDITOR` ('editor') is stamped client-side on in-memory
* drafts only and never reaches the database — keep it out of SQL filters.
*/
export const PAGE_DOCUMENT_SOURCE_TYPES: string[] = ['file', 'api'];
export const PAGE_DOCUMENT_FILE_TYPES: string[] = [
CUSTOM_DOCUMENT_FILE_TYPE,
HTML_DOCUMENT_FILE_TYPE,
'application/pdf',
];
export const hasFilenameExtension = (filename: string): boolean =>
/(?:^|[^.])\.[^.]+$/.test(filename);