UNPKG

@bonginkan/maria

Version:

MARIA OS v5.9.5 – Self-Evolving Organizational Intelligence OS | Speed Improvement Phase 3: LLM Optimization + Command Refactoring | Performance Measurement + Run Evidence System | Zero ESLint/TypeScript Errors | 人とAIが役割を持ち、学び、進化し続けるための仕事のOS | GraphRAG ×

98 lines (97 loc) 3.06 kB
/** * Document types for classification */ export declare enum DocumentType { DESIGN = "design", SPECIFICATION = "specification", TODO = "todo", SOW = "sow", REQUIREMENTS = "requirements", ARCHITECTURE = "architecture", API_DOC = "api-doc", USER_STORY = "user-story", MEETING_NOTES = "meeting-notes", PROJECT_PLAN = "project-plan", TECHNICAL_SPEC = "technical-spec", IMPLEMENTATION_PLAN = "implementation-plan", FEEDBACK = "feedback", REVIEW = "review", RETROSPECTIVE = "retrospective", TYPESCRIPT = "typescript", JAVASCRIPT = "javascript", HTML = "html", CSS = "css", SCSS = "scss", SASS = "sass", LESS = "less", SQL = "sql", SHELL_SCRIPT = "shell-script", YAML = "yaml", JSON = "json", XML = "xml", CSV = "csv", DOCKERFILE = "dockerfile", ENV_CONFIG = "env-config", GITIGNORE = "gitignore", PACKAGE_JSON = "package-json", WEBPACK_CONFIG = "webpack-config", ESLINT_CONFIG = "eslint-config", TSCONFIG = "tsconfig", MAKEFILE = "makefile", CMAKE = "cmake", GRADLE = "gradle", MAVEN = "maven", PYTHON = "python", RUBY = "ruby", GO = "go", RUST = "rust", JAVA = "java", CPP = "cpp", C = "c", CSHARP = "csharp", PHP = "php", SWIFT = "swift", KOTLIN = "kotlin", TERRAFORM = "terraform", ANSIBLE = "ansible", KUBERNETES = "kubernetes", HELM = "helm", GRAPHQL = "graphql", PRISMA = "prisma", README = "readme", CHANGELOG = "changelog", LICENSE = "license" } /** * Classify content based on keywords and patterns */ export declare function classifyDocument(content: string): DocumentType | null; /** * Generate appropriate filename based on content and document type */ export declare function generateDocumentFilename(_content: string, docType: DocumentType, userHint?: string): string; /** * Format content as proper markdown or code file */ export declare function formatAsMarkdown(content: string, docType: DocumentType): string; /** * Save document to file */ export declare function saveDocumentToFile(content: string, docType: DocumentType, _userHint?: string): Promise<string>; /** * Main function to auto-save documents * Returns the saved file path if document was saved, null otherwise */ export declare function autoSaveDocument(content: string, _userHint?: string): Promise<string | null>; /** * Auto-save multiple documents from a single response * Splits content by document markers and saves each separately * * Additional requirements: * - If the assistant outputs a shell snippet in the form `/code write <path> <<EOF ... EOF`, * write the body to `<path>` and save it. * (This ensures requests like "save under docs/" are reliably reflected.) * - Record the saved paths into SessionMemory as task context so `/workflow/resume` can trace * what was saved in this session. */ export declare function autoSaveMultipleDocuments(content: string, baseHint?: string): Promise<string[]>;