@thanh01.pmt/curriculum-kit 1.0.22 → 1.1.0
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/LICENSE +21 -0
- package/dist/ai/index.cjs +13 -2
- package/dist/ai/index.cjs.map +1 -1
- package/dist/ai/index.mjs +13 -2
- package/dist/ai/index.mjs.map +1 -1
- package/dist/index.cjs +230 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.mjs +226 -30
- package/dist/index.mjs.map +1 -1
- package/dist/media/index.cjs.map +1 -1
- package/dist/media/index.mjs.map +1 -1
- package/dist/pipeline/index.cjs +13 -2
- package/dist/pipeline/index.cjs.map +1 -1
- package/dist/pipeline/index.mjs +13 -2
- package/dist/pipeline/index.mjs.map +1 -1
- package/dist/schemas/index.cjs +13 -2
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +34 -16
- package/dist/schemas/index.d.ts +34 -16
- package/dist/schemas/index.mjs +13 -2
- package/dist/schemas/index.mjs.map +1 -1
- package/dist/workflow/index.cjs +14 -2
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.mjs +14 -2
- package/dist/workflow/index.mjs.map +1 -1
- package/package.json +21 -22
package/dist/workflow/index.cjs
CHANGED
|
@@ -2231,9 +2231,20 @@ var SessionPlanSchema = zod.z.object({
|
|
|
2231
2231
|
differentiation: zod.z.object({ bronze: zod.z.string(), silver: zod.z.string(), gold: zod.z.string() })
|
|
2232
2232
|
});
|
|
2233
2233
|
var TranslationPolicySchema = zod.z.object({
|
|
2234
|
-
policy: zod.z.enum(["after_artifact", "end_of_unit", "at_publish"]).default("
|
|
2234
|
+
policy: zod.z.enum(["after_artifact", "end_of_unit", "at_publish", "native"]).default("native"),
|
|
2235
2235
|
target_language: zod.z.string().nullable().default(null)
|
|
2236
|
-
})
|
|
2236
|
+
}).refine(
|
|
2237
|
+
(data) => {
|
|
2238
|
+
if (data.policy === "native") {
|
|
2239
|
+
return typeof data.target_language === "string" && data.target_language.trim().length > 0;
|
|
2240
|
+
}
|
|
2241
|
+
return true;
|
|
2242
|
+
},
|
|
2243
|
+
{
|
|
2244
|
+
message: "When translation policy is 'native', target_language must be a non-empty string",
|
|
2245
|
+
path: ["target_language"]
|
|
2246
|
+
}
|
|
2247
|
+
);
|
|
2237
2248
|
var CoverageReportSchema = zod.z.object({
|
|
2238
2249
|
assigned_node_ids: zod.z.array(zod.z.string()),
|
|
2239
2250
|
unassigned_node_ids: zod.z.array(zod.z.string()),
|
|
@@ -6203,6 +6214,7 @@ var LLMJudgeEngine = class {
|
|
|
6203
6214
|
|
|
6204
6215
|
// src/services/lessonProductionService.ts
|
|
6205
6216
|
init_errors();
|
|
6217
|
+
init_errors();
|
|
6206
6218
|
|
|
6207
6219
|
// src/services/lessonProductionService.ts
|
|
6208
6220
|
var __filename$1 = typeof (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) === "string" ? url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))) : "";
|