opencode-agent[bot] пре 6 месеци
родитељ
комит
2d7c9c9692
2 измењених фајлова са 10 додато и 2 уклоњено
  1. 5 1
      packages/opencode/src/session/prompt.ts
  2. 5 1
      packages/opencode/src/tool/bash.ts

+ 5 - 1
packages/opencode/src/session/prompt.ts

@@ -1618,7 +1618,11 @@ NOTE: At any point in time through this workflow you should feel free to ask the
     const args = matchingInvocation?.args
     const args = matchingInvocation?.args
 
 
     const cwd = Instance.directory
     const cwd = Instance.directory
-    const shellEnv = await Plugin.trigger("shell.env", { cwd, sessionID: input.sessionID, callID: part.callID }, { env: {} })
+    const shellEnv = await Plugin.trigger(
+      "shell.env",
+      { cwd, sessionID: input.sessionID, callID: part.callID },
+      { env: {} },
+    )
     const proc = spawn(shell, args, {
     const proc = spawn(shell, args, {
       cwd,
       cwd,
       detached: process.platform !== "win32",
       detached: process.platform !== "win32",

+ 5 - 1
packages/opencode/src/tool/bash.ts

@@ -163,7 +163,11 @@ export const BashTool = Tool.define("bash", async () => {
         })
         })
       }
       }
 
 
-      const shellEnv = await Plugin.trigger("shell.env", { cwd, sessionID: ctx.sessionID, callID: ctx.callID }, { env: {} })
+      const shellEnv = await Plugin.trigger(
+        "shell.env",
+        { cwd, sessionID: ctx.sessionID, callID: ctx.callID },
+        { env: {} },
+      )
       const proc = spawn(params.command, {
       const proc = spawn(params.command, {
         shell,
         shell,
         cwd,
         cwd,