@questionbase/deskfree 0.6.9 → 0.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.
package/dist/index.js CHANGED
@@ -14185,6 +14185,13 @@ ${userMessage}
14185
14185
  const delta = extractTextDelta2(message);
14186
14186
  if (delta) {
14187
14187
  fullText += delta;
14188
+ if (!fullText.trim()) {
14189
+ log.warn(`Skipping whitespace-only delta`, {
14190
+ delta: JSON.stringify(delta),
14191
+ fullText: JSON.stringify(fullText)
14192
+ });
14193
+ continue;
14194
+ }
14188
14195
  if (!streamStarted) {
14189
14196
  setInboundThreadId(taskId);
14190
14197
  await streamingSession.start(fullText, taskId);
@@ -14253,7 +14260,10 @@ ${userMessage}
14253
14260
  }
14254
14261
  }
14255
14262
  const errMsg = err instanceof Error ? err.message : String(err);
14256
- log.warn(`Worker drain loop error for task ${taskId}: ${errMsg}`);
14263
+ const errStack = err instanceof Error ? err.stack : void 0;
14264
+ log.warn(`Worker drain loop error for task ${taskId}: ${errMsg}`, {
14265
+ stack: errStack
14266
+ });
14257
14267
  try {
14258
14268
  await client.sendMessage({
14259
14269
  content: "Sorry, I encountered an error while working on this task. Please try again.",
@@ -14484,7 +14494,7 @@ async function startAgent(opts) {
14484
14494
  log.info("DeskFree Agent Runtime starting...");
14485
14495
  const { getRotationToken: getRotationToken2, setInitialRotationToken: setInitialRotationToken2 } = await Promise.resolve().then(() => (init_ws_gateway(), ws_gateway_exports));
14486
14496
  const { collectFingerprint: collectFingerprint2 } = await Promise.resolve().then(() => (init_fingerprint(), fingerprint_exports));
14487
- const runtimeVersion = "0.6.9";
14497
+ const runtimeVersion = "0.6.10";
14488
14498
  const fingerprint = collectFingerprint2(localConfig.stateDir, runtimeVersion);
14489
14499
  log.info("Connecting to DeskFree...", { wsUrl: localConfig.wsUrl });
14490
14500
  const connectResult = await initialConnect({