Analyzed codebases & architecture docs · 31 documents
| ID | Document | Source |
|---|---|---|
| 60adc19ec28a4135_arch | ### ARCHITECTURE DOCUMENT #### Overview The `routes` project follows a microservices architecture pattern, with multiple modules and files working together to provide a comprehensive API surface. The… | — |
| 60adc19ec28a4135_deps | Dependency analysis not separated. | — |
| 60adc19ec28a4135_inv | Invariants not separated. | — |
| 60adc19ec28a4135_file_0000 | # chat_api.sync-conflict-20260416-023809-FJGHQFM.py Language: python | Lines: 457 ## Analysis PURPOSE: This file implements the API endpoints for managing conversations, including creating,… | — |
| 60adc19ec28a4135_file_0001 | # chat_api.py Language: python | Lines: 457 ## Analysis PURPOSE: This file implements a chat API using FastAPI, providing endpoints for creating, listing, retrieving, and deleting conversations,… | — |
| 60adc19ec28a4135_file_0002 | # chat.sync-conflict-20260416-023509-FJGHQFM.py Language: python | Lines: 407 ## Analysis PURPOSE: This file defines a generic chat endpoint using FastAPI, allowing users to interact with various… | — |
| 60adc19ec28a4135_file_0003 | # striker.py Language: python | Lines: 402 ## Analysis PURPOSE: This file defines the routes and functionality for a striker service, which appears to be a text processing and analysis tool that… | — |
| 60adc19ec28a4135_file_0004 | # keys_api.py Language: python | Lines: 388 ## Analysis PURPOSE: This file provides an API for managing and monitoring API keys, including listing, testing, adding, and deleting keys, as well as… | — |
| 60adc19ec28a4135_file_0005 | # docs.sync-conflict-20260416-023746-FJGHQFM.py Language: python | Lines: 291 ## Analysis PURPOSE: This file defines API endpoints for the Peacock Engine, providing a registry of available… | — |
| 60adc19ec28a4135_file_0006 | # docs.py Language: python | Lines: 291 ## Analysis PURPOSE: This file defines API endpoint documentation and registry for the Peacock Engine project, providing a centralized location for endpoint… | — |
| 60adc19ec28a4135_file_0007 | # models_api.py Language: python | Lines: 264 ## Analysis PURPOSE: This file provides an enhanced model API for WebUI, supporting various operations such as registry view, model testing, freezing,… | — |
| 60adc19ec28a4135_file_0008 | # payloads.py Language: python | Lines: 239 ## Analysis PURPOSE: This file defines the payload handling and mission orchestration logic for the "routes" project, providing endpoints for initiating… | — |
| 60adc19ec28a4135_file_0009 | # openai_compat.sync-conflict-20260416-034118-FJGHQFM.py Language: python | Lines: 209 ## Analysis PURPOSE: This file provides an OpenAI-compatible API surface for the Peacock Engine, allowing… | — |
| 60adc19ec28a4135_file_0010 | # openai_compat.py Language: python | Lines: 204 ## Analysis PURPOSE: This file provides an OpenAI-compatible API surface for the Peacock Engine, allowing standard clients like OpenClaw to… | — |
| 60adc19ec28a4135_file_0011 | # audit.py Language: python | Lines: 149 ## Analysis PURPOSE: This file implements API routes for auditing models and keys in a machine learning application, providing health checks and latency… | — |
| 60adc19ec28a4135_file_0012 | # fs.py Language: python | Lines: 138 ## Analysis PURPOSE: This file provides a set of API endpoints for managing and interacting with file system resources, including reading and writing files,… | — |
| aec06398e0e7c9a8_arch | ### Architecture Document #### Overview The core project follows a **layered architecture** pattern, with distinct modules handling specific responsibilities. This structure enables maintainability,… | — |
| aec06398e0e7c9a8_deps | Dependency analysis not separated. | — |
| aec06398e0e7c9a8_inv | Invariants not separated. | — |
| aec06398e0e7c9a8_file_0000 | # ui_scaffold.py Language: python | Lines: 434 ## Analysis PURPOSE: This file generates a component map for a web application by cross-referencing backend code with Peacock bindings and… | — |
| aec06398e0e7c9a8_file_0001 | # context_budget.py Language: python | Lines: 400 ## Analysis PURPOSE: This file implements a token budget manager for Groq multi-stage agentic builds, ensuring that the total token count for a… | — |
| aec06398e0e7c9a8_file_0002 | # heredoc_parser.py Language: python | Lines: 254 ## Analysis PURPOSE: This file provides a parser for extracting structured files from LLM heredoc output, supporting various heredoc formats and… | — |
| aec06398e0e7c9a8_file_0003 | # conversation_logger.py Language: python | Lines: 203 ## Analysis PURPOSE: This file provides a conversation logging mechanism that saves chat turns to both a database and disk in a structured… | — |
| aec06398e0e7c9a8_file_0004 | # memory_engine.py Language: python | Lines: 185 ## Analysis PURPOSE: This file implements a memory engine that queries the Peacock Unified ChromaDB via its local API to retrieve relevant… | — |
| aec06398e0e7c9a8_file_0005 | # key_manager.py Language: python | Lines: 153 ## Analysis PURPOSE: This file implements a key management system that handles API key rotation, shuffling, and usage tracking for the Peacock Engine… | — |
| aec06398e0e7c9a8_file_0006 | # layer_instructions.py Language: python | Lines: 127 ## Analysis PURPOSE: This file defines a dynamic system prompt builder for Peacock Memory layers, containing a collection of personas, usage… | — |
| aec06398e0e7c9a8_file_0007 | # batch_striker.py Language: python | Lines: 83 ## Analysis PURPOSE: This file provides a Python module for handling high-volume asynchronous strike jobs via the Google GenAI Batch API,… | — |
| aec06398e0e7c9a8_file_0008 | # memory_tools.py Language: python | Lines: 63 ## Analysis PURPOSE: This file provides a set of tools for querying and retrieving information from the Peacock Unified memory database, allowing the… | — |
| aec06398e0e7c9a8_file_0009 | # tools.py Language: python | Lines: 43 ## Analysis PURPOSE: This file provides a framework for defining and managing tools in the "core" project, allowing for registration, retrieval, and… | — |
| aec06398e0e7c9a8_file_0010 | # __init__.py Language: python | Lines: 0 ## Analysis PURPOSE: This empty __init__.py file serves as a marker to indicate that the "core" directory should be treated as a Python… | — |
| aec06398e0e7c9a8_file_0011 | # groq_tool_engine.py Language: python | Lines: 1380 ## Analysis PURPOSE: This file implements the core engine for interacting with Groq models, handling tool definitions, and executing local… | — |