@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/bin.js +22 -2
- package/dist/bin.js.map +1 -1
- package/dist/index.js +22 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -2767,6 +2767,16 @@ function createOrchestratorTools(client, _options) {
|
|
|
2767
2767
|
try {
|
|
2768
2768
|
const content = validateStringParam(params, "content", true);
|
|
2769
2769
|
const taskId = validateStringParam(params, "taskId", false);
|
|
2770
|
+
if (!content.trim()) {
|
|
2771
|
+
return {
|
|
2772
|
+
content: [
|
|
2773
|
+
{
|
|
2774
|
+
type: "text",
|
|
2775
|
+
text: "Skipped: content was empty. Provide a non-empty message."
|
|
2776
|
+
}
|
|
2777
|
+
]
|
|
2778
|
+
};
|
|
2779
|
+
}
|
|
2770
2780
|
await client.sendMessage({ content, taskId });
|
|
2771
2781
|
return {
|
|
2772
2782
|
content: [{ type: "text", text: "Message sent successfully" }]
|
|
@@ -2876,6 +2886,16 @@ function createWorkerTools(client, options) {
|
|
|
2876
2886
|
try {
|
|
2877
2887
|
const content = validateStringParam(params, "content", true);
|
|
2878
2888
|
const taskId = validateStringParam(params, "taskId", false);
|
|
2889
|
+
if (!content.trim()) {
|
|
2890
|
+
return {
|
|
2891
|
+
content: [
|
|
2892
|
+
{
|
|
2893
|
+
type: "text",
|
|
2894
|
+
text: "Skipped: content was empty. Provide a non-empty message."
|
|
2895
|
+
}
|
|
2896
|
+
]
|
|
2897
|
+
};
|
|
2898
|
+
}
|
|
2879
2899
|
await client.sendMessage({ content, taskId });
|
|
2880
2900
|
return {
|
|
2881
2901
|
content: [{ type: "text", text: "Message sent successfully" }]
|
|
@@ -8435,7 +8455,7 @@ Do NOT record: one-time task details, things already in project docs, or obvious
|
|
|
8435
8455
|
this.closed = true;
|
|
8436
8456
|
await this.queue;
|
|
8437
8457
|
const text = finalText ?? (this.fullText || this.currentText);
|
|
8438
|
-
if (this.messageId) {
|
|
8458
|
+
if (this.messageId && text) {
|
|
8439
8459
|
for (let attempt = 0; attempt < CLOSE_MAX_RETRIES; attempt++) {
|
|
8440
8460
|
try {
|
|
8441
8461
|
await this.client.updateMessage({
|
|
@@ -14962,7 +14982,7 @@ async function startAgent(opts) {
|
|
|
14962
14982
|
log.info("DeskFree Agent Runtime starting...");
|
|
14963
14983
|
const { getRotationToken: getRotationToken2, setInitialRotationToken: setInitialRotationToken2 } = await Promise.resolve().then(() => (init_ws_gateway(), ws_gateway_exports));
|
|
14964
14984
|
const { collectFingerprint: collectFingerprint2 } = await Promise.resolve().then(() => (init_fingerprint(), fingerprint_exports));
|
|
14965
|
-
const runtimeVersion = "0.6.
|
|
14985
|
+
const runtimeVersion = "0.6.7";
|
|
14966
14986
|
const fingerprint = collectFingerprint2(localConfig.stateDir, runtimeVersion);
|
|
14967
14987
|
log.info("Connecting to DeskFree...", { wsUrl: localConfig.wsUrl });
|
|
14968
14988
|
const connectResult = await initialConnect({
|