@dudousxd/nestjs-agent-opencode 0.4.1 → 0.5.0
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/dist/durable/index.cjs +11 -1
- package/dist/durable/index.cjs.map +1 -1
- package/dist/durable/index.js +12 -2
- package/dist/durable/index.js.map +1 -1
- package/dist/index.cjs +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -3048,6 +3048,12 @@ ${body}
|
|
|
3048
3048
|
kind: "cancelled"
|
|
3049
3049
|
}));
|
|
3050
3050
|
await writer.end();
|
|
3051
|
+
(0, import_nestjs_agent_core4.publishAgentRunCancelled)({
|
|
3052
|
+
runId,
|
|
3053
|
+
threadId: input.threadId,
|
|
3054
|
+
durationMs,
|
|
3055
|
+
context: (0, import_nestjs_agent_core4.agentRunContext)(input)
|
|
3056
|
+
});
|
|
3051
3057
|
await this.store.recordRunEnd?.({
|
|
3052
3058
|
runId,
|
|
3053
3059
|
status: "cancelled",
|
|
@@ -3078,12 +3084,16 @@ ${body}
|
|
|
3078
3084
|
this.logger.error(`agent run ${runId} failed: ${error}`);
|
|
3079
3085
|
(0, import_nestjs_agent_core4.publishAgentRunFailed)({
|
|
3080
3086
|
runId,
|
|
3087
|
+
threadId: input.threadId,
|
|
3081
3088
|
code: "opencode_failed",
|
|
3082
|
-
message: error
|
|
3089
|
+
message: error,
|
|
3090
|
+
durationMs,
|
|
3091
|
+
context: (0, import_nestjs_agent_core4.agentRunContext)(input)
|
|
3083
3092
|
});
|
|
3084
3093
|
await this.store.recordRunEnd?.({
|
|
3085
3094
|
runId,
|
|
3086
3095
|
status: "failed",
|
|
3096
|
+
durationMs,
|
|
3087
3097
|
errorCode: "opencode_failed",
|
|
3088
3098
|
errorMessage: error
|
|
3089
3099
|
});
|