@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/durable/index.cjs
CHANGED
|
@@ -3006,6 +3006,12 @@ ${body}
|
|
|
3006
3006
|
kind: "cancelled"
|
|
3007
3007
|
}));
|
|
3008
3008
|
await writer.end();
|
|
3009
|
+
(0, import_nestjs_agent_core4.publishAgentRunCancelled)({
|
|
3010
|
+
runId,
|
|
3011
|
+
threadId: input.threadId,
|
|
3012
|
+
durationMs,
|
|
3013
|
+
context: (0, import_nestjs_agent_core4.agentRunContext)(input)
|
|
3014
|
+
});
|
|
3009
3015
|
await this.store.recordRunEnd?.({
|
|
3010
3016
|
runId,
|
|
3011
3017
|
status: "cancelled",
|
|
@@ -3036,12 +3042,16 @@ ${body}
|
|
|
3036
3042
|
this.logger.error(`agent run ${runId} failed: ${error}`);
|
|
3037
3043
|
(0, import_nestjs_agent_core4.publishAgentRunFailed)({
|
|
3038
3044
|
runId,
|
|
3045
|
+
threadId: input.threadId,
|
|
3039
3046
|
code: "opencode_failed",
|
|
3040
|
-
message: error
|
|
3047
|
+
message: error,
|
|
3048
|
+
durationMs,
|
|
3049
|
+
context: (0, import_nestjs_agent_core4.agentRunContext)(input)
|
|
3041
3050
|
});
|
|
3042
3051
|
await this.store.recordRunEnd?.({
|
|
3043
3052
|
runId,
|
|
3044
3053
|
status: "failed",
|
|
3054
|
+
durationMs,
|
|
3045
3055
|
errorCode: "opencode_failed",
|
|
3046
3056
|
errorMessage: error
|
|
3047
3057
|
});
|