mirror of
https://github.com/samiyev/puaros.git
synced 2025-12-28 07:16:53 +05:00
- OllamaClient: ILLMClient implementation with tool support - System prompt and context builders for project overview - 18 tool definitions across 6 categories (read, edit, search, analysis, git, run) - XML response parser for tool call extraction - 98 new tests (419 total), 96.38% coverage
49 lines
1.0 KiB
TypeScript
49 lines
1.0 KiB
TypeScript
// LLM infrastructure exports
|
|
export { OllamaClient } from "./OllamaClient.js"
|
|
export {
|
|
SYSTEM_PROMPT,
|
|
buildInitialContext,
|
|
buildFileContext,
|
|
truncateContext,
|
|
type ProjectStructure,
|
|
} from "./prompts.js"
|
|
export {
|
|
ALL_TOOLS,
|
|
READ_TOOLS,
|
|
EDIT_TOOLS,
|
|
SEARCH_TOOLS,
|
|
ANALYSIS_TOOLS,
|
|
GIT_TOOLS,
|
|
RUN_TOOLS,
|
|
CONFIRMATION_TOOLS,
|
|
requiresConfirmation,
|
|
getToolDef,
|
|
getToolsByCategory,
|
|
GET_LINES_TOOL,
|
|
GET_FUNCTION_TOOL,
|
|
GET_CLASS_TOOL,
|
|
GET_STRUCTURE_TOOL,
|
|
EDIT_LINES_TOOL,
|
|
CREATE_FILE_TOOL,
|
|
DELETE_FILE_TOOL,
|
|
FIND_REFERENCES_TOOL,
|
|
FIND_DEFINITION_TOOL,
|
|
GET_DEPENDENCIES_TOOL,
|
|
GET_DEPENDENTS_TOOL,
|
|
GET_COMPLEXITY_TOOL,
|
|
GET_TODOS_TOOL,
|
|
GIT_STATUS_TOOL,
|
|
GIT_DIFF_TOOL,
|
|
GIT_COMMIT_TOOL,
|
|
RUN_COMMAND_TOOL,
|
|
RUN_TESTS_TOOL,
|
|
} from "./toolDefs.js"
|
|
export {
|
|
parseToolCalls,
|
|
formatToolCallsAsXml,
|
|
extractThinking,
|
|
hasToolCalls,
|
|
validateToolCallParams,
|
|
type ParsedResponse,
|
|
} from "./ResponseParser.js"
|