@intellectif/lk-core 1.12.0 → 1.13.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/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/dist/ai-check.cjs +2 -2
- package/dist/ai-check.d.cts +1 -1
- package/dist/ai-check.d.ts +1 -1
- package/dist/ai-check.js +2 -2
- package/dist/{ai-Cu17iVHa.d.ts → ai-hC5pGYeu.d.cts} +122 -5
- package/dist/ai-hC5pGYeu.d.cts.map +1 -0
- package/dist/{ai-Cu17iVHa.d.cts → ai-hC5pGYeu.d.ts} +122 -5
- package/dist/ai-hC5pGYeu.d.ts.map +1 -0
- package/dist/{ai-writing-gO4GRscd.cjs → ai-writing-BDSYuifR.cjs} +18 -5
- package/dist/ai-writing-BDSYuifR.cjs.map +1 -0
- package/dist/{ai-writing-BgeeCOl7.js → ai-writing-Dsmvv4T-.js} +18 -5
- package/dist/ai-writing-Dsmvv4T-.js.map +1 -0
- package/dist/{index-CpamCGyZ.d.cts → index-4x0auNOv.d.cts} +2 -2
- package/dist/{index-CpamCGyZ.d.cts.map → index-4x0auNOv.d.cts.map} +1 -1
- package/dist/{index-DjZ1vIVg.d.cts → index-BlJU10O4.d.cts} +26 -4
- package/dist/index-BlJU10O4.d.cts.map +1 -0
- package/dist/{index-BfUyl6ml.d.ts → index-DVW_N4pJ.d.ts} +26 -4
- package/dist/index-DVW_N4pJ.d.ts.map +1 -0
- package/dist/{index-BTZWUwOe.d.ts → index-Dlei-7PX.d.ts} +2 -2
- package/dist/{index-BTZWUwOe.d.ts.map → index-Dlei-7PX.d.ts.map} +1 -1
- package/dist/{index-DYnacygI.d.cts → index-DohEHH10.d.cts} +2 -2
- package/dist/{index-DYnacygI.d.cts.map → index-DohEHH10.d.cts.map} +1 -1
- package/dist/{index-B1zEN1Ur.d.ts → index-Du9Kx_H6.d.ts} +2 -2
- package/dist/{index-B1zEN1Ur.d.ts.map → index-Du9Kx_H6.d.ts.map} +1 -1
- package/dist/index.cjs +11 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -13
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +14 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -7
- package/dist/index.js.map +1 -1
- package/dist/{item-group-CRZNJ08j.cjs → item-group-CqdByaLR.cjs} +54 -22
- package/dist/item-group-CqdByaLR.cjs.map +1 -0
- package/dist/{item-group-CnlBLM9Z.js → item-group-vTcNy2JF.js} +54 -22
- package/dist/item-group-vTcNy2JF.js.map +1 -0
- package/dist/{registry-BClnM5V3.js → registry-Cn2it-y7.js} +387 -3
- package/dist/registry-Cn2it-y7.js.map +1 -0
- package/dist/{registry-DgLcT4rZ.cjs → registry-DUTE1vtq.cjs} +387 -3
- package/dist/registry-DUTE1vtq.cjs.map +1 -0
- package/dist/{schemas-BA8Y8z-S.cjs → schemas-BrA6CFWz.cjs} +3 -3
- package/dist/{schemas-BA8Y8z-S.cjs.map → schemas-BrA6CFWz.cjs.map} +1 -1
- package/dist/{schemas-VZnN68qG.js → schemas-DlxeS7Lu.js} +3 -3
- package/dist/{schemas-VZnN68qG.js.map → schemas-DlxeS7Lu.js.map} +1 -1
- package/dist/schemas.cjs +3 -3
- package/dist/schemas.d.cts +2 -2
- package/dist/schemas.d.ts +2 -2
- package/dist/schemas.js +3 -3
- package/dist/{scoring-Cfu_2qQ1.cjs → scoring-IjLi2fYF.cjs} +2 -2
- package/dist/{scoring-Cfu_2qQ1.cjs.map → scoring-IjLi2fYF.cjs.map} +1 -1
- package/dist/{scoring-BxDiwN7I.js → scoring-weQ4SzwB.js} +2 -2
- package/dist/{scoring-BxDiwN7I.js.map → scoring-weQ4SzwB.js.map} +1 -1
- package/dist/scoring.cjs +2 -2
- package/dist/scoring.d.cts +2 -2
- package/dist/scoring.d.ts +2 -2
- package/dist/scoring.js +2 -2
- package/dist/{xapi-BhROEuZQ.cjs → xapi-BqEbpWag.cjs} +2 -2
- package/dist/{xapi-BhROEuZQ.cjs.map → xapi-BqEbpWag.cjs.map} +1 -1
- package/dist/{xapi-BitXmAYB.js → xapi-DbRVH_RB.js} +2 -2
- package/dist/{xapi-BitXmAYB.js.map → xapi-DbRVH_RB.js.map} +1 -1
- package/dist/xapi.cjs +1 -1
- package/dist/xapi.d.cts +1 -1
- package/dist/xapi.d.ts +1 -1
- package/dist/xapi.js +1 -1
- package/package.json +1 -1
- package/vectors/scoring.json +934 -1
- package/vectors/validation.json +827 -1
- package/dist/ai-Cu17iVHa.d.cts.map +0 -1
- package/dist/ai-Cu17iVHa.d.ts.map +0 -1
- package/dist/ai-writing-BgeeCOl7.js.map +0 -1
- package/dist/ai-writing-gO4GRscd.cjs.map +0 -1
- package/dist/index-BfUyl6ml.d.ts.map +0 -1
- package/dist/index-DjZ1vIVg.d.cts.map +0 -1
- package/dist/item-group-CRZNJ08j.cjs.map +0 -1
- package/dist/item-group-CnlBLM9Z.js.map +0 -1
- package/dist/registry-BClnM5V3.js.map +0 -1
- package/dist/registry-DgLcT4rZ.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as GROUP_CAPTIONS_REVEAL_DICTATION, A as keyPositionFinding, B as countWords, Ct as passageWithoutPlaceholders, Dt as PLACEHOLDER_RE, G as isMissingId, H as checkMedia, I as LEVEL_PROBABILITY_TOLERANCE, J as isUnwritten, K as isRecord$8, L as levelDistribution, M as normaliseFinding, N as policyFor, R as levelKey, St as numberedPassage, Tt as revealsAnswer, U as coveredPathsOf, V as DRAFT_ISSUE_SEVERITY, W as covers, X as pathKey, Y as issue, Z as refusesEmpty, a as readSchema, bt as containsWords, et as groupCaptionsField, gt as withValidationScope, it as UnknownActivityTypeError, j as finding, ot as alignDictation, q as isUnset, t as getActivityTypeDescriptor, v as SPEAKING_MEASURES, wt as placeholderOrder, xt as fold, z as readRubricLevels } from "./registry-
|
|
2
|
-
import { C as canonicalJson, I as isGradeInRange, c as alignReadAloud, g as seededShuffle, l as validateSpeechAssessment, r as score, v as gradeFromRubric } from "./scoring-
|
|
3
|
-
import { a as INTERACTIVE_VIDEO_ITEM_TYPES, f as routeIssues, i as validateItemGroup, t as ItemGroupSchema, u as isInteractiveVideoItemType } from "./item-group-
|
|
1
|
+
import { $ as GROUP_CAPTIONS_REVEAL_DICTATION, A as keyPositionFinding, B as countWords, Ct as passageWithoutPlaceholders, Dt as PLACEHOLDER_RE, G as isMissingId, H as checkMedia, I as LEVEL_PROBABILITY_TOLERANCE, J as isUnwritten, K as isRecord$8, L as levelDistribution, M as normaliseFinding, N as policyFor, R as levelKey, St as numberedPassage, Tt as revealsAnswer, U as coveredPathsOf, V as DRAFT_ISSUE_SEVERITY, W as covers, X as pathKey, Y as issue, Z as refusesEmpty, a as readSchema, bt as containsWords, et as groupCaptionsField, gt as withValidationScope, it as UnknownActivityTypeError, j as finding, ot as alignDictation, q as isUnset, t as getActivityTypeDescriptor, v as SPEAKING_MEASURES, wt as placeholderOrder, xt as fold, z as readRubricLevels } from "./registry-Cn2it-y7.js";
|
|
2
|
+
import { C as canonicalJson, I as isGradeInRange, c as alignReadAloud, g as seededShuffle, l as validateSpeechAssessment, r as score, v as gradeFromRubric } from "./scoring-weQ4SzwB.js";
|
|
3
|
+
import { a as INTERACTIVE_VIDEO_ITEM_TYPES, f as routeIssues, i as validateItemGroup, t as ItemGroupSchema, u as isInteractiveVideoItemType } from "./item-group-vTcNy2JF.js";
|
|
4
4
|
// src/ai-material.ts
|
|
5
5
|
/**
|
|
6
6
|
* What a model is told about the group a question sits in: the material the
|
|
@@ -1458,6 +1458,10 @@ function structureTargets(entry) {
|
|
|
1458
1458
|
...banks.length > 0 ? { banks: banks.map((bank) => ({ choices: isRecord$4(bank) ? listOf$3(bank.choices).length : 0 })) } : {}
|
|
1459
1459
|
};
|
|
1460
1460
|
}
|
|
1461
|
+
case "matching": return {
|
|
1462
|
+
prompts: listOf$3(entry.prompts).length,
|
|
1463
|
+
options: listOf$3(entry.options).length
|
|
1464
|
+
};
|
|
1461
1465
|
case "written-response": return {
|
|
1462
1466
|
minWords: entry.minWords,
|
|
1463
1467
|
maxWords: entry.maxWords,
|
|
@@ -1471,6 +1475,7 @@ const SCORED_ALIKE = {
|
|
|
1471
1475
|
"multiple-choice": ["mode", "scoringStrategy"],
|
|
1472
1476
|
"fill-in-the-blanks": ["scoringStrategy"],
|
|
1473
1477
|
"gap-select": ["scoringStrategy", "presentation"],
|
|
1478
|
+
matching: ["scoringStrategy", "optionUse"],
|
|
1474
1479
|
dictation: ["tolerance", "hints"],
|
|
1475
1480
|
"read-aloud": [
|
|
1476
1481
|
"recording",
|
|
@@ -1496,7 +1501,8 @@ const DIFFERS = {
|
|
|
1496
1501
|
rubric: "The rubric differs",
|
|
1497
1502
|
minWords: "The minimum word count differs",
|
|
1498
1503
|
maxWords: "The maximum word count differs",
|
|
1499
|
-
languageTarget: "The language target differs"
|
|
1504
|
+
languageTarget: "The language target differs",
|
|
1505
|
+
optionUse: "How often an option may be used differs"
|
|
1500
1506
|
};
|
|
1501
1507
|
function itemMisses(exemplar, candidate) {
|
|
1502
1508
|
const misses = [];
|
|
@@ -1580,6 +1586,13 @@ function itemMisses(exemplar, candidate) {
|
|
|
1580
1586
|
}
|
|
1581
1587
|
});
|
|
1582
1588
|
if (exemplar.shuffleChoices === true !== (candidate.shuffleChoices === true)) miss(["shuffleChoices"], "Shuffling the choices differs from the exemplar.");
|
|
1589
|
+
} else if (type === "matching") {
|
|
1590
|
+
for (const [field, noun] of [["prompts", "prompt"], ["options", "option"]]) {
|
|
1591
|
+
const mine = listOf$3(exemplar[field]).length;
|
|
1592
|
+
const theirs = listOf$3(candidate[field]).length;
|
|
1593
|
+
if (mine !== theirs) miss([field], `${count(theirs, noun)}; the exemplar has ${mine}.`);
|
|
1594
|
+
}
|
|
1595
|
+
if (exemplar.shuffleOptions === true !== (candidate.shuffleOptions === true)) miss(["shuffleOptions"], "Shuffling the options differs from the exemplar.");
|
|
1583
1596
|
}
|
|
1584
1597
|
return misses;
|
|
1585
1598
|
}
|
|
@@ -5571,4 +5584,4 @@ function checkAiWritingFeedback(raw, request) {
|
|
|
5571
5584
|
}
|
|
5572
5585
|
export { checkAiCoaching as $, validateDraft as A, lengthMisses as B, interactiveVideoFromDrafts as C, checkAiCritique as D, aiCritiqueRequest as E, critiqueItemGroupDraft as F, textSimilarity as G, sharedAnswers as H, validateItemGroupDraft as I, mapMediaRefs as J, textsOf as K, AI_VARIANT_LENGTH_BANDS as L, createItemGroupDraft as M, createReadingRouteDraft as N, createDraft as O, critiqueDrafts as P, aiCoachingRequest as Q, AI_VARIANT_NEAR_COPY_THRESHOLD as R, generateDrafts as S, AI_CRITIQUE_MAX_FINDINGS as T, shownScore as U, optionSet as V, structureMisses as W, AI_COACHING_MAX_TIP_LENGTH as X, transcriptOf as Y, AI_COACHING_MAX_WORDS as Z, AI_DRAFTS_MAX_COUNT as _, AI_VARIANTS_MAX_REPAIRS as a, aiGradeOf as at, aiDraftsRequest as b, aiVariantsRequest as c, buildAiFacts as ct, AI_GRADING_PROBABILITY_TOLERANCE as d, hintRevealsAnswer as dt, AI_EXPLANATION_TYPES as et, aiGradingRequest as f, readAiTextResult as ft, AI_WRITING_MAX_FIELD_LENGTH as g, AI_WRITING_MAX_CORRECTIONS as h, AI_VARIANTS_MAX_MATERIAL_LENGTH as i, aiExplanationRequest as it, createInteractiveVideoDraft as j, critiqueDraft as k, checkAiVariants as l, checkAiExplanation as lt, checkAiGrading as m, checkAiWritingFeedback as n, AI_TEXT_MAX_LENGTH as nt, AI_VARIANT_CODE_SEVERITY as o, aiHintRequest as ot, aiSpeakingGradingRequest as p, AI_MATERIAL_MAX_LENGTH as pt, listMediaRefs as q, AI_VARIANTS_MAX_EXEMPLARS as r, aiAllowedByContent as rt, aiVariantsRepairRequest as s, aiSupports as st, aiWritingFeedbackRequest as t, AI_HINT_TYPES as tt, generateVariants as u, checkAiHint as ut, AI_DRAFTS_MAX_REPAIRS as v, AI_CRITIQUE_MAX_FIELD_LENGTH as w, checkAiDrafts as x, aiDraftsRepairRequest as y, keysOf as z };
|
|
5573
5586
|
|
|
5574
|
-
//# sourceMappingURL=ai-writing-
|
|
5587
|
+
//# sourceMappingURL=ai-writing-Dsmvv4T-.js.map
|