@remnic/core 9.6.9 → 9.6.10

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.
@@ -80,7 +80,7 @@ import "./chunk-Q6IP2ARR.js";
80
80
  import "./chunk-6HEM6HTQ.js";
81
81
  import "./chunk-O2EL7EGG.js";
82
82
  import "./chunk-FVTLSFWU.js";
83
- import "./chunk-I7PEZK2A.js";
83
+ import "./chunk-JCEFF346.js";
84
84
  import "./chunk-MMACM5G2.js";
85
85
  import "./chunk-54BGIBCR.js";
86
86
  import "./chunk-H4CKS5B2.js";
@@ -175,7 +175,7 @@ import "./chunk-G6NKALRN.js";
175
175
  import "./chunk-OO42R444.js";
176
176
  import "./chunk-K6MV3TRQ.js";
177
177
  import "./chunk-OADWQ5CR.js";
178
- import "./chunk-KD6PBCXP.js";
178
+ import "./chunk-HR4NACR7.js";
179
179
  import "./chunk-V7IZKJI3.js";
180
180
  import "./chunk-SEDEKFYQ.js";
181
181
  import "./chunk-RKNJBZ55.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EngramAccessHttpServer
3
- } from "./chunk-KD6PBCXP.js";
3
+ } from "./chunk-HR4NACR7.js";
4
4
  import "./chunk-V7IZKJI3.js";
5
5
  import "./chunk-SEDEKFYQ.js";
6
6
  import "./chunk-RKNJBZ55.js";
@@ -151,7 +151,17 @@ async function handleChatMessage(req, res, body, opts, principal) {
151
151
  }
152
152
  return;
153
153
  }
154
- const wireResult = result.error ? { reply: result.reply, chatSessionId: result.chatSessionId, ...result.pendingPlan ? { pendingPlan: result.pendingPlan } : {} } : result;
154
+ const wireResult = {
155
+ reply: result.reply,
156
+ chatSessionId: result.chatSessionId,
157
+ ...result.pendingPlan ? {
158
+ pendingPlan: {
159
+ planId: result.pendingPlan.planId,
160
+ preview: result.pendingPlan.preview
161
+ }
162
+ } : {},
163
+ ...result.skippedTools ? { skippedTools: result.skippedTools.filter((name) => typeof name === "string") } : {}
164
+ };
155
165
  respondJson(res, 200, wireResult);
156
166
  }
157
167
  async function handleChatEventsSSE(req, res, chatSessionId, opts, principal) {
@@ -2954,4 +2964,4 @@ function positiveIntQueryParam(value, label) {
2954
2964
  export {
2955
2965
  EngramAccessHttpServer
2956
2966
  };
2957
- //# sourceMappingURL=chunk-KD6PBCXP.js.map
2967
+ //# sourceMappingURL=chunk-HR4NACR7.js.map