🪞 CodeMirror SSOT

  • domain: wiki.comi.loca.zone
  • purpose: deep_xray_cheatsheets
  • introduction:
    • context: Comi Ecosystem Knowledge Forge documents CodeMirror 6 extension design, architectural patterns, and execution contexts.
    • objectives: Keep CM6 components decoupled, maintain strict state-to-view separation, and document custom extension patterns.
  • architectural_guides_map:
    • core_architecture:
      • CM6-Architecture: Immutable EditorState, mutable EditorView, and transaction flow.
    • extension_design:
      • CM6-Extensions: LSP, ghost text simulator, and git-diff gutters integration.
      • LSP-Design: Autocomplete, diagnostic linters, state-to-view interaction, and quick-fixes.
      • Ghost-Text-Simulator: Inline ghost text via transaction filtering, decoration state fields, widget rendering, and keymaps.
      • Line-Decorations: Gutter extensions, diff-tracking state fields, and custom line background styling.
      • AI-Streaming-Simulator: Copilot-style multi-agent workflow using state fields and simulated token streams.
    • deep_xray_internals:
  • formatting_rules:
    • no_markdown_bolding: True
    • strict_yaml_style_nested_lists: True
    • maximum_density: True