refactor: remove glabPath and ghPath options from providers and update related code
This commit is contained in:
@@ -17,7 +17,6 @@ import { selectModel } from "../model-selector.js";
|
||||
import { getProject, getWorker, readProjects } from "../projects.js";
|
||||
import type { ToolContext } from "../types.js";
|
||||
import { detectContext, generateGuardrails } from "../context-guard.js";
|
||||
import { resolveRepoPath } from "../utils.js";
|
||||
|
||||
export function createTaskPickupTool(api: OpenClawPluginApi) {
|
||||
return (ctx: ToolContext) => ({
|
||||
@@ -96,15 +95,8 @@ export function createTaskPickupTool(api: OpenClawPluginApi) {
|
||||
}
|
||||
|
||||
// 3. Fetch issue and verify state
|
||||
const repoPath = resolveRepoPath(project.repo);
|
||||
const { provider } = createProvider({
|
||||
glabPath: (api.pluginConfig as Record<string, unknown>)?.glabPath as
|
||||
| string
|
||||
| undefined,
|
||||
ghPath: (api.pluginConfig as Record<string, unknown>)?.ghPath as
|
||||
| string
|
||||
| undefined,
|
||||
repoPath,
|
||||
repo: project.repo,
|
||||
});
|
||||
|
||||
const issue = await provider.getIssue(issueId);
|
||||
|
||||
Reference in New Issue
Block a user