1.7 KiB
1.7 KiB
Toolserver repo toolset v2
Deze patch voegt een duidelijkere repo-toolset toe, met een macro-tool die het "pas repo aan en push naar test-branch" proces in 1 toolcall doet.
Nieuwe (aanbevolen) tools
repo_open(repo_url, branch="main") -> {workspace_id,...}repo_search(query, mode="auto|grep|rag", workspace_id? / repo_url?, n_results=20, ...)repo_read(path, workspace_id? / repo_url?, start_line?, end_line?)repo_apply(workspace_id? / repo_url?, patch_b64|patch|files, dry_run=false)repo_push(workspace_id? / repo_url?, base_branch="main", new_branch?, branch_prefix="test", commit_message=...)repo_pr_create(repo_url, head_branch, base_branch="main", title, body?)repo_change_to_branch(repo_url, base_branch="main", patch_b64|patch|files, new_branch?/branch_prefix, commit_message, create_pr?, pr_title?, pr_body?)
Deprecated (blijft werken)
repo_grep-> alias naarrepo_search(mode="grep")rag_index_repo-> meestal niet meer nodig;repo_searchindexeert automatischrag_query-> gebruikrepo_search(mode="rag")
Belangrijke env vars
LLM_PROXY_URL=http://192.168.100.1:8081/v1/completions(of/v1/chat/completionsals je proxy dat biedt)GITEA_TOKEN=...(alleen nodig voor PR create, en optioneel voor push auth als je repo_url geen creds bevat)GITEA_USER=oauth2(optioneel; default is oauth2 bij token-auth)ALLOWED_GIT_HOSTS=10.25.138.40,192.168.100.1(aanrader; leeg = alles toegestaan)
Aanbevolen flow voor LLM
repo_search(mode="auto")om relevante bestanden te vindenrepo_readom de files te lezen- (LLM maakt patch)
repo_change_to_branchmetpatch_b64om te pushen naar een test-branch (+ evt PR)