Skip to content

Add chokidar examples, update hooks API, refactor parsers/formatters, and enhance configuration#489

Open
gesslar wants to merge 1 commit into02-21-chore_update_package_entry_point_and_runtime_dependenciesfrom
02-21-refactor_update_example_plugins_and_hooks_for_formatter_rename
Open

Add chokidar examples, update hooks API, refactor parsers/formatters, and enhance configuration#489
gesslar wants to merge 1 commit into02-21-chore_update_package_entry_point_and_runtime_dependenciesfrom
02-21-refactor_update_example_plugins_and_hooks_for_formatter_rename

Conversation

@gesslar
Copy link
Owner

@gesslar gesslar commented Feb 22, 2026

This pull request adds a new CLI example project and updates the hook system architecture across the BeDoc documentation system.

New CLI Example Project

  • Adds examples/chokidar-as-cli/ with package configuration and npm shrinkwrap for CLI usage demonstration
  • Includes bedoc configuration for LPC to wikitext conversion with custom hooks

Hook System Modernization

  • Renames hook properties from parse/print to parser/formatter across all hook files
  • Updates hook files to use new class-based architecture with Parse and Format classes instead of object-based hooks
  • Migrates from legacy hook methods (setup, start, enter, end) to modern lifecycle methods (before$formatFunction, after$finalize)

Parser and Formatter Refactoring

  • Completely rewrites LPC and Lua parsers using ActionBuilder pattern with fluent API configuration
  • Replaces legacy action-based parsers with modern class-based implementations
  • Renames "printer" components to "formatter" throughout the codebase (bedoc-markdown-printer → bedoc-markdown-formatter, bedoc-wikitext-printer → bedoc-wikitext-formatter)
  • Updates YAML schema references to use new schema.gesslar.dev URLs

Configuration Updates

  • Adds multiple new configuration files for different LPC to Markdown/Wikitext conversion scenarios
  • Updates package dependencies to include @gesslar/actioneer and @gesslar/toolkit
  • Adds npm shrinkwrap files for dependency locking across example projects

Contract and Schema Updates

  • Updates YAML contracts to use new JSON schema format with proper required fields and type definitions
  • Removes legacy combined parser/formatter modules in favor of separate, focused components

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@gesslar gesslar force-pushed the 02-21-chore_update_package_entry_point_and_runtime_dependencies branch from ff77253 to a2e8c82 Compare February 22, 2026 05:08
@gesslar gesslar force-pushed the 02-21-refactor_update_example_plugins_and_hooks_for_formatter_rename branch from 1d73c81 to 3835025 Compare February 22, 2026 05:08
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@gesslar gesslar force-pushed the 02-21-refactor_update_example_plugins_and_hooks_for_formatter_rename branch from 3835025 to fba67a7 Compare February 22, 2026 06:05
@gesslar gesslar force-pushed the 02-21-chore_update_package_entry_point_and_runtime_dependencies branch from a2e8c82 to 97e975d Compare February 22, 2026 06:05
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