@botlearn-course/daemon 0.0.22 → 0.0.23-beta.1
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/runtime-skills.js +5 -4
- package/package.json +1 -1
package/dist/runtime-skills.js
CHANGED
|
@@ -9,11 +9,12 @@ const MAX_CATALOG_DESCRIPTION_CODE_POINTS = 500;
|
|
|
9
9
|
const MAX_PROVIDER_RESPONSE_BYTES = 512 * 1024;
|
|
10
10
|
const MAX_LOADED_CONTENT_BYTES = 256 * 1024;
|
|
11
11
|
// 物化一次取整包,响应必然大于单文件调用,因此单独给出预算。
|
|
12
|
-
//
|
|
13
|
-
//
|
|
12
|
+
// 文件数、单文件和整包上限必须与 Course Registry、agent-svc 的包合同一致;
|
|
13
|
+
// 整包 base64 后约 2.7 MiB,响应上限留到 4 MiB 覆盖 JSON 结构开销。
|
|
14
14
|
const MAX_PACKAGE_BYTES = 2 * 1024 * 1024;
|
|
15
|
-
const
|
|
16
|
-
const
|
|
15
|
+
const MAX_PACKAGE_FILE_BYTES = 1024 * 1024;
|
|
16
|
+
const MAX_PACKAGE_BASE64 = Math.ceil(MAX_PACKAGE_FILE_BYTES / 3) * 4;
|
|
17
|
+
const MAX_PACKAGE_FILES = 128;
|
|
17
18
|
const MAX_PACKAGE_RESPONSE_BYTES = 4 * 1024 * 1024;
|
|
18
19
|
const MAX_BINDING_LIFETIME_MS = 24 * 60 * 60 * 1000;
|
|
19
20
|
export const COURSE_SKILLS_BINDING_SCHEMA = "course-skills-binding/0.1";
|
package/package.json
CHANGED