Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: witty-works/nlp_api
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dev
Choose a base ref
...
head repository: witty-works/nlp_api
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: copilot/sub-pr-1215-yet-again
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 35 files changed
  • 3 contributors

Commits on Nov 7, 2025

  1. major refactoring to enhance readability

    AI supported
    
    * Split routes into focused modules and add central register_routes(app) (utility, auth, config, rephrase, prompt, check, debug)
    * Make Slack routes opt-in via settings.slack_enabled; return 503 until Bolt is initialized
    * Add app lifespan bootstrap (startup.py) to wire DB, HTTP, rules, LT, LLM, etc.; load test rules into Redis when configured
    * Add security headers and permissive CORS middleware (middleware.py)
    * Strongly type and cache settings (get_settings, reset_settings_cache); add minimum_versions typing
    * Centralize API version constants (CHECK_API_VERSION=2.4, REPHRASE_API_VERSION=1.0) and validators
    * Replace mutable Pydantic defaults with Field(default_factory=...); make BaseRequestIn.config factory-based
    * Extract rule engine helpers: pattern/phrase matching and utilities; use append_result to build results
    * Extract text utilities (parse_word_type, german_lemmatization) for reuse
    * Tighten Slack block builder and add Slack tests (route inclusion, 503 guard, blocks smoke test)
    * Update tests to pass context to parse_term_replacements/fetch_configs_for_request
    * Minor docstring and cleanup in model.py and review prompt (returns str | None, supports min_changes)
    lsmith77 committed Nov 7, 2025
    Configuration menu
    Copy the full SHA
    7ace954 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2025

  1. Initial plan

    Copilot committed Nov 10, 2025
    Configuration menu
    Copy the full SHA
    5f94030 View commit details
    Browse the repository at this point in the history
  2. Fix mixed implicit and explicit returns in handle_command_witty

    Co-authored-by: lsmith77 <300279+lsmith77@users.noreply.github.com>
    Copilot and lsmith77 committed Nov 10, 2025
    Configuration menu
    Copy the full SHA
    4f7ee55 View commit details
    Browse the repository at this point in the history
Loading