@questionbase/deskfree 0.6.6 → 0.6.7

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
@@ -2312,6 +2312,16 @@ function createOrchestratorTools(client, _options) {
2312
2312
  try {
2313
2313
  const content = validateStringParam(params, "content", true);
2314
2314
  const taskId = validateStringParam(params, "taskId", false);
2315
+ if (!content.trim()) {
2316
+ return {
2317
+ content: [
2318
+ {
2319
+ type: "text",
2320
+ text: "Skipped: content was empty. Provide a non-empty message."
2321
+ }
2322
+ ]
2323
+ };
2324
+ }
2315
2325
  await client.sendMessage({ content, taskId });
2316
2326
  return {
2317
2327
  content: [{ type: "text", text: "Message sent successfully" }]
@@ -2421,6 +2431,16 @@ function createWorkerTools(client, options) {
2421
2431
  try {
2422
2432
  const content = validateStringParam(params, "content", true);
2423
2433
  const taskId = validateStringParam(params, "taskId", false);
2434
+ if (!content.trim()) {
2435
+ return {
2436
+ content: [
2437
+ {
2438
+ type: "text",
2439
+ text: "Skipped: content was empty. Provide a non-empty message."
2440
+ }
2441
+ ]
2442
+ };
2443
+ }
2424
2444
  await client.sendMessage({ content, taskId });
2425
2445
  return {
2426
2446
  content: [{ type: "text", text: "Message sent successfully" }]
@@ -7980,7 +8000,7 @@ Do NOT record: one-time task details, things already in project docs, or obvious
7980
8000
  this.closed = true;
7981
8001
  await this.queue;
7982
8002
  const text = finalText ?? (this.fullText || this.currentText);
7983
- if (this.messageId) {
8003
+ if (this.messageId && text) {
7984
8004
  for (let attempt = 0; attempt < CLOSE_MAX_RETRIES; attempt++) {
7985
8005
  try {
7986
8006
  await this.client.updateMessage({
@@ -14450,7 +14470,7 @@ async function startAgent(opts) {
14450
14470
  log.info("DeskFree Agent Runtime starting...");
14451
14471
  const { getRotationToken: getRotationToken2, setInitialRotationToken: setInitialRotationToken2 } = await Promise.resolve().then(() => (init_ws_gateway(), ws_gateway_exports));
14452
14472
  const { collectFingerprint: collectFingerprint2 } = await Promise.resolve().then(() => (init_fingerprint(), fingerprint_exports));
14453
- const runtimeVersion = "0.6.6";
14473
+ const runtimeVersion = "0.6.7";
14454
14474
  const fingerprint = collectFingerprint2(localConfig.stateDir, runtimeVersion);
14455
14475
  log.info("Connecting to DeskFree...", { wsUrl: localConfig.wsUrl });
14456
14476
  const connectResult = await initialConnect({