Skip to content

feature/ozon chat chromium test#11

Merged
LebedevIV merged 43 commits intodevelopfrom
feature/ozon-chat-chromium-test
Aug 14, 2025
Merged

feature/ozon chat chromium test#11
LebedevIV merged 43 commits intodevelopfrom
feature/ozon-chat-chromium-test

Conversation

@LebedevIV
Copy link
Copy Markdown
Owner

  • docs(rules): enforce Node.js >=22.17.1 as minimum, document error handling and popup deprecation
  • chore: preliminary commit before ESM/CJS error-boundary refactor (options build blockers)
  • chore: fix lint error (no-explicit-any) in useTranslations; minimal entry for React 19 ESM test
  • fix(options/vite): стабильная сборка React 19 + Vite 7 + SWC без withPageConfig

LebedevIV added 30 commits July 16, 2025 11:13
…PageConfig

react() теперь явно в plugins. Ошибка jsxs устранена. Сборка стабильна для React 19 ESM.

Рекомендации: не использовать withPageConfig для критичных плагинов. react() всегда явно в plugins.
- Исправлены ошибки TS2345: добавлен inlineCss в initAppWithShadow
- Исправлены ошибки TS2307: настроены paths в tsconfig.json для @extension/shared
- Исправлены ошибки tsconfig в external проектах: убраны node типы, исправлены extends пути
- Исправлен barrel export для initAppWithShadow: export { default as initAppWithShadow }
- Удален прямой вызов npx tailwindcss из build.mts (TailwindCSS 4+ через PostCSS)
- Добавлены рекомендации по barrel exports и TypeScript в документацию
- Обновлены версии пакетов и зависимости
- Удалены неиспользуемые popup и devtools-panel страницы
- Добавлены PostCSS конфиги для TailwindCSS 4+ интеграции
- Созданы правила для AI в .cursor/rules/:
  * typescript-build-troubleshooting.md - правила устранения ошибок
  * monorepo-best-practices.md - best practices для monorepo
  * barrel-exports.md - правила для barrel exports

- Добавлен опыт в memory-bank/:
  * typescript-build-troubleshooting-experience.md - детальный опыт
  * ai-typescript-build-troubleshooting-short.md - краткая памятка

- Созданы руководства в docs/for-ai-best-practices/:
  * typescript-build-troubleshooting-guide.md - подробное руководство
  * typescript-build-success-story.md - история успешного решения

Документация основана на реальном опыте исправления ошибок в agent-plugins-platform и содержит проверенные решения для будущих разработчиков и AI-ассистентов.
- Добавлена команда 'задокументируй' с синонимами в memory-bank/user-commands.md
- Добавлена команда в .cursor/rules/doc/user-commands.mdc
- Создан файл memory-bank/error-graveyard.md для документирования ошибок

Команда позволяет:
- Проанализировать последние решенные проблемы
- Создать документацию в .cursor/rules/, memory-bank/ и docs/for-ai-best-practices/
- Записать допущенные ошибки в кладбище ошибок
- Создать правила для AI на основе найденных решений

Синонимы: документируй, создай документацию, запиши опыт, сохрани опыт
- Создан файл memory-bank/ai-user-commands-reference.md с полным списком команд
- Добавлена ссылка на новый файл в memory-bank/user-commands.md
- Команды теперь доступны как в .cursor/rules/, так и в memory-bank/

Файл содержит:
- Полную таблицу команд с триггерами и действиями
- Категоризацию команд по типам
- Примеры использования
- Важные файлы для каждой команды
- Примечания для AI-ассистента
…rmat

- Remove duplicates: user-commands.mdc (doc/), accessibility.mdc (ui/), ai-error-handling.md
- Transform .md files to .mdc: monorepo-best-practices, typescript-build-troubleshooting, environment, README
- Transform .rules.md files to .mdc: ai-fallback, git-workflow
- Add proper metadata (description, globs, alwaysApply) to all .mdc files
- Standardize file structure and improve AI memory-bank integration
- Create .cursor/rules/doc/mdc-file-standards.mdc with detailed guidelines
- Add memory-bank/mdc-file-standards.md for AI reference
- Create docs/for-ai-best-practices/mdc-file-standards.md for documentation
- Add 'создай правило' command to user commands
- Establish mandatory .mdc format for all rules with metadata
- Document advantages of .mdc over .md for AI integration
- Include migration guidelines and validation procedures
- Fix broken links in index.mdc and README.mdc
- Merge duplicate ai-first documentation files
- Standardize metadata for all .mdc files with proper descriptions and globs
- Remove duplicate AI-access-policy.md (moved to memory-bank)
- Update structure documentation with current hierarchy
- Add proper metadata to 50+ .mdc files
- Ensure all rules have alwaysApply and globs configured
- Create clear separation between root, architecture, dev, doc, plugin, security, ui, workflow
- Optimize for AI memory-bank integration and automatic application
- Add CursorAuditor for comprehensive .cursor directory audit
- Add CursorFixer for automatic issue resolution
- Add AIOptimizer for AI-specific optimizations
- Add CursorManager as main CLI interface
- Create automation scripts: audit-cursor.cjs, fix-cursor.cjs, optimize-for-ai.cjs, cursor-manager.cjs
- Add AI-specific metadata: aiPriority, aiCategory
- Create AI-optimized files: ai-optimization.mdc, ai-index.mdc
- Add automation commands to ai-memory.mdc
- Create comprehensive documentation AUTOMATION.md
- Fix broken links and optimize metadata for all files
- Add AI tags and priority assignments to 59+ files
- Enable automatic .cursor maintenance and optimization

Features:
- Comprehensive file scanning and metadata validation
- Duplicate content detection and removal
- Broken link detection and fixing
- AI-specific optimizations with priorities and categories
- Automatic index generation and structure validation
- Detailed reporting and recommendations
- Full workflow automation (audit + fix + optimize)
- Integration with AI memory-bank commands
- Add CursorExporter for exporting .cursor rules to other projects
- Add export-cursor.cjs with comprehensive export functionality
- Add import-cursor.cjs for automatic import in target projects
- Add export/import commands to cursor-manager.cjs
- Add export/import commands to ai-memory.mdc
- Create EXPERIENCE-TRANSFER.md with best practices
- Create IMPORT-INSTRUCTIONS.md for import guidance
- Support for exporting rules by categories (architecture, dev, doc, etc.)
- Automatic creation of import script and instructions
- Integration with existing automation system

Features:
- One-command export: node cursor-manager.cjs export
- One-command import: node cursor-export/import-cursor.cjs
- Automatic structure creation in target project
- Comprehensive documentation and instructions
- AI command integration: 'экспорт cursor', 'импорт cursor'
- Support for project-specific customization
- Validation and optimization after import

Benefits:
- Fast experience transfer between projects
- Consistent .cursor setup across projects
- Automated rule management and optimization
- Standardized AI assistance across projects
- Reduced setup time for new projects
- Migrate all useful content from docs/for-ai-best-practices to .cursor/rules
- Create new rules based on best practices:
  - doc/ai-answer-self-check.mdc - AI self-check policy
  - workflow/ci-automation.mdc - CI/CD automation practices
  - dev/testing-troubleshooting.mdc - Testing and troubleshooting guides
  - workflow/experience-transfer.mdc - Experience transfer automation
- Add new AI commands: 'внедри best practices', 'аудит проекта'
- Remove duplicate files from cursor-export (cleanup)
- Delete obsolete docs/for-ai-best-practices directory
- Update ai-memory.mdc with new commands
- Run full optimization and cleanup

Benefits:
- Centralized rule management in .cursor structure
- Better AI integration and automatic application
- Cleaner project structure
- Standardized experience transfer process
- Automated CI/CD and testing practices
- Create doc/documentation-map.mdc with clear file assignment rules
- Create documentation-helper.cjs for automated experience documentation
- Add document command to cursor-manager.cjs
- Update ai-memory.mdc with precise documentation command description
- Implement intelligent content type detection and file routing
- Support for both .cursor/rules/ and memory-bank/ destinations
- Automatic metadata generation for .mdc files
- Chronological ordering for memory-bank entries
- Structured sections for .cursor rules

Features:
- Clear separation: universal rules → .cursor/rules/, project-specific → memory-bank/
- Intelligent routing based on content analysis
- No duplication or desynchronization
- Automated file creation with proper metadata
- Support for all content types: errors, practices, automation, architecture
- CLI integration: node cursor-manager.cjs document 'content' [type]

Benefits:
- Eliminates confusion about where to place documentation
- Prevents information duplication and desynchronization
- Ensures consistent structure and metadata
- Automates routine documentation tasks
- Improves knowledge organization and retrieval
- Create MEMORY_BANK_STRUCTURE.md with clear organization rules
- Create memory-bank-organizer.cjs for automated reorganization
- Add organize-memory command to cursor-manager.cjs
- Reorganize memory-bank into structured categories:
  * core/ - Основные файлы контекста (activeContext, progress, etc.)
  * errors/ - Ошибки и решения (errors, error-graveyard, etc.)
  * architecture/ - Архитектурные решения (decisions, patterns, etc.)
  * development/ - Процесс разработки (testing, debugging, etc.)
  * ui/ - UI/UX контекст (side-panel, chat-context, etc.)
  * planning/ - Планирование (future-plans, optimization, etc.)
  * context/ - Контекстная информация (tech, product, environment)
  * deprecated/ - Устаревшие файлы (cursor-*, ai-*, etc.)

Features:
- Clear separation of concerns by file type
- Automatic categorization and file routing
- Index files for each category with descriptions
- Main INDEX.md with quick navigation
- Structured workflow for adding new information
- Integration with documentation-helper.cjs

Benefits:
- Eliminates file duplication and confusion
- Improves knowledge organization and retrieval
- Provides clear rules for where to place information
- Enables efficient context restoration
- Supports scalable project knowledge management
- Create memory-bank-auditor.cjs for automated analysis
- Migrate universal rules from memory-bank to .cursor/rules/:
  * development-principles.md → .cursor/rules/dev/development-principles.mdc
  * file-relationships.md → .cursor/rules/architecture/file-relationships.mdc
  * date-time-patterns.md → .cursor/rules/dev/date-time-patterns.mdc

- Add proper metadata to migrated files:
  * description, globs, alwaysApply, aiPriority, aiCategory
  * Critical priority for development principles
  * High priority for patterns and relationships

- Update documentation system:
  * Update documentation-map.mdc with new file locations
  * Update documentation-helper.cjs with new content types
  * Add support for dev-principles, date-patterns, file-patterns

- Improve memory-bank-auditor.cjs:
  * Fix README/INDEX file classification
  * Add special case handling for different file types
  * Generate detailed audit reports

Benefits:
- Clear separation: universal rules in .cursor/, project-specific in memory-bank/
- No duplication between .cursor/rules/ and memory-bank/
- Automated detection of misplaced files
- Proper metadata for AI integration
- Scalable audit system for future maintenance
- Test development-principles.mdc with new entry
- Test date-time-patterns.mdc with new entry
- Verify documentation-helper.cjs works correctly
- Confirm proper metadata and structure

System is working correctly - universal rules are properly documented
in .cursor/rules/ with appropriate metadata and timestamps.
- Создан Memory Bank Controller для полного управления memory-bank через .cursor
- Добавлены скрипты: memory-bank-structure-creator.cjs, memory-bank-manager.cjs
- Обновлен cursor-manager.cjs с поддержкой всех memory-bank команд
- Добавлены AI команды для управления memory-bank в ai-memory.mdc
- Создана система автоматического создания структуры для разных типов проектов
- Реализованы функции: добавление записей, восстановление контекста, поиск, отчеты
- Протестирована полная функциональность системы
- Memory-bank теперь полностью подчинен .cursor правилам

Система готова к использованию - все процессы автоматизированы и управляются через .cursor
…md, ai-memory.mdc, and Cursor AI memory-bank
@LebedevIV LebedevIV merged commit ffbd7f0 into develop Aug 14, 2025
4 of 28 checks passed
@LebedevIV LebedevIV deleted the feature/ozon-chat-chromium-test branch August 14, 2025 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant