module Tina4::AI

def generate_copilot_context

Returns:
  • (String) -
def generate_copilot_context
  <<~CONTEXT
    # Tina4 Ruby #{Tina4::VERSION} — Copilot Instructions
    This is a **Tina4 Ruby** project. Tina4 is a zero-dependency web framework. Docs: https://tina4.com
    ## Structure
    Routes in `src/routes/`, ORM models in `src/orm/`, templates in `src/templates/`, services in `src/app/`, tests in `spec/`.
    ## Route Example
    ```ruby
    Tina4.get "/api/users" do |request, response|
      response.call({ users: [] }, Tina4::HTTP_OK)
    end
    Tina4.post "/api/users" do |request, response|
      response.call({ created: request.body["name"] }, 201)
    end
    ```
    ## ORM Example
    ```ruby
    class User < Tina4::ORM
      table_name "users"
      integer_field :id, primary_key: true, auto_increment: true
      string_field :name, required: true
      string_field :email
    end
    ```
    ## Rules
    - Always return `response.call(data, status)` from routes
    - GET is public; POST/PUT/PATCH/DELETE require auth by default
    - Templates extend `base.twig`; schema changes via migrations only
    - Use `snake_case`; never install gems for built-in features
    - Built-in: Router, ORM, Database, JWT auth, Sessions, GraphQL, WebSocket, Queue, Messenger, Migrations, SCSS, Swagger, i18n, Events, DI, Testing
  CONTEXT
end