orynacode-ai 1.16.18 → 1.16.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "1.16.18",
3
+ "version": "1.16.19",
4
4
  "name": "orynacode-ai",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -928,7 +928,11 @@ export const layer = Layer.effect(
928
928
  .map((p: any) => p.text)
929
929
  .join("")
930
930
  .trim()
931
- sendReply(texts || "(collaboration task completed)", collabMatch[1])
931
+ const failedCollab = assistantParts.find(
932
+ (p) => p.type === "tool" && (p as any).tool === "collab_reply" && (p as any).state?.status === "error",
933
+ ) as any
934
+ const replyContent = failedCollab?.state?.input?.content || texts || "(collaboration task completed)"
935
+ sendReply(replyContent, collabMatch[1])
932
936
 
933
937
  const collabTextPart = userParts.find(
934
938
  (p) => p.type === "text" && (p as any).text?.includes("[Collaboration from"),
@@ -13,7 +13,6 @@ import { WebFetchTool } from "./webfetch"
13
13
  import { WriteTool } from "./write"
14
14
  import { InvalidTool } from "./invalid"
15
15
  import { SkillTool } from "./skill"
16
- import { ReplyTool } from "./reply"
17
16
  import * as Tool from "./tool"
18
17
  import { Config } from "@/config/config"
19
18
  import { type ToolContext as PluginToolContext, type ToolDefinition } from "@opencode-ai/plugin"
@@ -131,7 +130,6 @@ export const layer: Layer.Layer<
131
130
  const edit = yield* EditTool
132
131
  const greptool = yield* GrepTool
133
132
  const skilltool = yield* SkillTool
134
- const replytool = yield* ReplyTool
135
133
  const patchtool = yield* ApplyPatchTool
136
134
  const agent = yield* Agent.Service
137
135
 
@@ -240,7 +238,6 @@ export const layer: Layer.Layer<
240
238
  question: Tool.init(question),
241
239
  lsp: Tool.init(lsptool),
242
240
  plan: Tool.init(plan),
243
- collab_reply: Tool.init(replytool),
244
241
  })
245
242
 
246
243
  return {