@botlearn-course/daemon 0.0.17-beta.1 → 0.0.17-beta.2
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/run-dispatcher.js +5 -1
- package/package.json +1 -1
package/dist/run-dispatcher.js
CHANGED
|
@@ -18,6 +18,10 @@ const DEFAULT_TIMEOUT_SECONDS = 900;
|
|
|
18
18
|
const MIN_TIMEOUT_SECONDS = 30;
|
|
19
19
|
const MAX_TIMEOUT_SECONDS = 7200;
|
|
20
20
|
const DEFAULT_MAX_OUTPUT_CHARS = 100_000;
|
|
21
|
+
// Attachment size is bounded at 10 MiB in input-attachments.ts. Keep one universal
|
|
22
|
+
// materialization budget that also works for supported cross-cloud object stores; this is
|
|
23
|
+
// a daemon compatibility invariant, not an environment-specific tuning knob.
|
|
24
|
+
const INPUT_ATTACHMENT_DOWNLOAD_TIMEOUT_MS = 5 * 60_000;
|
|
21
25
|
// wire 上单块文本上限;完整文本在本地 transcript。
|
|
22
26
|
const BLOCK_TEXT_MAX_CHARS = 4000;
|
|
23
27
|
const CONTENT_FLUSH_MAX_CHARS = 512;
|
|
@@ -449,7 +453,7 @@ export class RunDispatcher {
|
|
|
449
453
|
const attachmentController = new AbortController();
|
|
450
454
|
const abortAttachmentDownload = () => attachmentController.abort();
|
|
451
455
|
controller.signal.addEventListener("abort", abortAttachmentDownload, { once: true });
|
|
452
|
-
const attachmentTimer = setTimeout(abortAttachmentDownload,
|
|
456
|
+
const attachmentTimer = setTimeout(abortAttachmentDownload, INPUT_ATTACHMENT_DOWNLOAD_TIMEOUT_MS);
|
|
453
457
|
try {
|
|
454
458
|
inputAttachments = await materializeInputAttachments(workspaceDir, requestedAttachments, persistentTurn.inputAttachmentGrant, attachmentController.signal);
|
|
455
459
|
}
|
package/package.json
CHANGED