refactor(core): rename ApplyPatchTool to PatchTool
This commit is contained in:
parent
e1abf59c59
commit
3379e44abb
3 changed files with 12 additions and 12 deletions
|
|
@ -31,7 +31,7 @@ import { SessionInstructions } from "../session/instructions"
|
|||
import { SessionTodo } from "../session/todo"
|
||||
import { Shell } from "../shell"
|
||||
import { SkillV2 } from "../skill"
|
||||
import { ApplyPatchTool } from "../tool/apply-patch"
|
||||
import { PatchTool } from "../tool/patch"
|
||||
import { EditTool } from "../tool/edit"
|
||||
import { GlobTool } from "../tool/glob"
|
||||
import { GrepTool } from "../tool/grep"
|
||||
|
|
@ -127,7 +127,7 @@ const pre = [
|
|||
SkillPlugin.Plugin,
|
||||
ModelsDevPlugin,
|
||||
...ProviderPlugins,
|
||||
ApplyPatchTool.Plugin,
|
||||
PatchTool.Plugin,
|
||||
EditTool.Plugin,
|
||||
GlobTool.Plugin,
|
||||
GrepTool.Plugin,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
export * as ApplyPatchTool from "./apply-patch"
|
||||
export * as PatchTool from "./patch"
|
||||
|
||||
import type { Context as PluginContext } from "@opencode-ai/plugin/v2/effect/plugin"
|
||||
import { ToolFailure } from "@opencode-ai/llm"
|
||||
|
|
@ -55,8 +55,8 @@ type Prepared =
|
|||
})
|
||||
|
||||
export const Plugin = {
|
||||
id: "opencode.tool.apply-patch",
|
||||
effect: Effect.fn("ApplyPatchTool.Plugin")(function* (ctx: PluginContext) {
|
||||
id: "opencode.tool.patch",
|
||||
effect: Effect.fn("PatchTool.Plugin")(function* (ctx: PluginContext) {
|
||||
const mutation = yield* LocationMutation.Service
|
||||
const files = yield* FileMutation.Service
|
||||
const fs = yield* FSUtil.Service
|
||||
Loading…
Add table
Add a link
Reference in a new issue