@questionbase/deskfree 0.6.7 → 0.6.8
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 +9 -8
- package/dist/bin.js.map +1 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -7455,12 +7455,13 @@ var init_dist = __esm({
|
|
|
7455
7455
|
* Validates that a string parameter is non-empty.
|
|
7456
7456
|
* Catches invalid inputs before they hit the network.
|
|
7457
7457
|
*/
|
|
7458
|
-
requireNonEmpty(value, name2) {
|
|
7458
|
+
requireNonEmpty(value, name2, caller) {
|
|
7459
7459
|
if (!value || value.trim() === "") {
|
|
7460
|
+
const ctx = caller ? ` (in ${caller})` : "";
|
|
7460
7461
|
throw new DeskFreeError(
|
|
7461
7462
|
"client",
|
|
7462
7463
|
name2,
|
|
7463
|
-
`${name2} is required and cannot be empty`,
|
|
7464
|
+
`${name2} is required and cannot be empty${ctx}`,
|
|
7464
7465
|
`Missing required parameter: ${name2}. Please provide a valid value.`
|
|
7465
7466
|
);
|
|
7466
7467
|
}
|
|
@@ -7486,7 +7487,7 @@ var init_dist = __esm({
|
|
|
7486
7487
|
* @param input - Message content, optional userId, taskId, attachments
|
|
7487
7488
|
*/
|
|
7488
7489
|
async sendMessage(input) {
|
|
7489
|
-
this.requireNonEmpty(input.content, "content");
|
|
7490
|
+
this.requireNonEmpty(input.content, "content", "sendMessage");
|
|
7490
7491
|
return this.request("POST", "messages.send", input);
|
|
7491
7492
|
}
|
|
7492
7493
|
/** Fetch paginated message history for a conversation. */
|
|
@@ -7523,8 +7524,8 @@ var init_dist = __esm({
|
|
|
7523
7524
|
}
|
|
7524
7525
|
/** Update the content of an existing file. */
|
|
7525
7526
|
async updateFile(input) {
|
|
7526
|
-
this.requireNonEmpty(input.fileId, "fileId");
|
|
7527
|
-
this.requireNonEmpty(input.content, "content");
|
|
7527
|
+
this.requireNonEmpty(input.fileId, "fileId", "updateFile");
|
|
7528
|
+
this.requireNonEmpty(input.content, "content", "updateFile");
|
|
7528
7529
|
return this.request("POST", "files.update", input);
|
|
7529
7530
|
}
|
|
7530
7531
|
/** Create a new persistent file. */
|
|
@@ -7568,13 +7569,13 @@ var init_dist = __esm({
|
|
|
7568
7569
|
}
|
|
7569
7570
|
/** Report a learning observation from a worker task. Posts a system message in the task thread AND writes to memory_entries. */
|
|
7570
7571
|
async reportLearning(input) {
|
|
7571
|
-
this.requireNonEmpty(input.content, "content");
|
|
7572
|
+
this.requireNonEmpty(input.content, "content", "reportLearning");
|
|
7572
7573
|
return this.request("POST", "tasks.learning", input);
|
|
7573
7574
|
}
|
|
7574
7575
|
// ── Memory ──────────────────────────────────────────────────
|
|
7575
7576
|
/** Add a memory entry directly (bypasses system message — used by consolidation). */
|
|
7576
7577
|
async addMemory(input) {
|
|
7577
|
-
this.requireNonEmpty(input.content, "content");
|
|
7578
|
+
this.requireNonEmpty(input.content, "content", "addMemory");
|
|
7578
7579
|
return this.request("POST", "memory.add", input);
|
|
7579
7580
|
}
|
|
7580
7581
|
/**
|
|
@@ -14982,7 +14983,7 @@ async function startAgent(opts) {
|
|
|
14982
14983
|
log.info("DeskFree Agent Runtime starting...");
|
|
14983
14984
|
const { getRotationToken: getRotationToken2, setInitialRotationToken: setInitialRotationToken2 } = await Promise.resolve().then(() => (init_ws_gateway(), ws_gateway_exports));
|
|
14984
14985
|
const { collectFingerprint: collectFingerprint2 } = await Promise.resolve().then(() => (init_fingerprint(), fingerprint_exports));
|
|
14985
|
-
const runtimeVersion = "0.6.
|
|
14986
|
+
const runtimeVersion = "0.6.8";
|
|
14986
14987
|
const fingerprint = collectFingerprint2(localConfig.stateDir, runtimeVersion);
|
|
14987
14988
|
log.info("Connecting to DeskFree...", { wsUrl: localConfig.wsUrl });
|
|
14988
14989
|
const connectResult = await initialConnect({
|