• Task 42: Core Agent Logic

    • Create a test file: src/morpheum-bot/sweAgent.test.ts. Write failing tests for the agent’s main loop, mocking the Ollama and Jail clients.
    • Create the agent module: src/morpheum-bot/sweAgent.ts.
    • Implement the main agent loop, which will manage the conversation history and orchestrate calls to the Ollama client, parser, and jail client.