@intellectif/lk-core 1.13.0 → 1.14.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 +12 -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-hC5pGYeu.d.cts → ai-mC-5XhBc.d.cts} +92 -2
- package/dist/ai-mC-5XhBc.d.cts.map +1 -0
- package/dist/{ai-hC5pGYeu.d.ts → ai-mC-5XhBc.d.ts} +92 -2
- package/dist/ai-mC-5XhBc.d.ts.map +1 -0
- package/dist/{ai-writing-BDSYuifR.cjs → ai-writing-Bm2TUWQ-.cjs} +10 -4
- package/dist/ai-writing-Bm2TUWQ-.cjs.map +1 -0
- package/dist/{ai-writing-Dsmvv4T-.js → ai-writing-D3oREPsp.js} +10 -4
- package/dist/ai-writing-D3oREPsp.js.map +1 -0
- package/dist/{index-Dlei-7PX.d.ts → index-2UQ5v6NZ.d.ts} +2 -2
- package/dist/{index-Dlei-7PX.d.ts.map → index-2UQ5v6NZ.d.ts.map} +1 -1
- package/dist/{index-Du9Kx_H6.d.ts → index-BudO4ES2.d.ts} +2 -2
- package/dist/{index-Du9Kx_H6.d.ts.map → index-BudO4ES2.d.ts.map} +1 -1
- package/dist/{index-BlJU10O4.d.cts → index-CFKxHXAY.d.ts} +11 -4
- package/dist/{index-DVW_N4pJ.d.ts.map → index-CFKxHXAY.d.ts.map} +1 -1
- package/dist/{index-DVW_N4pJ.d.ts → index-CagMlF4b.d.cts} +11 -4
- package/dist/{index-BlJU10O4.d.cts.map → index-CagMlF4b.d.cts.map} +1 -1
- package/dist/{index-4x0auNOv.d.cts → index-CqmNcMFM.d.cts} +2 -2
- package/dist/{index-4x0auNOv.d.cts.map → index-CqmNcMFM.d.cts.map} +1 -1
- package/dist/{index-DohEHH10.d.cts → index-MgPVCiSJ.d.cts} +2 -2
- package/dist/{index-DohEHH10.d.cts.map → index-MgPVCiSJ.d.cts.map} +1 -1
- package/dist/index.cjs +12 -6
- package/dist/index.d.cts +86 -10
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +86 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -7
- package/dist/{item-group-vTcNy2JF.js → item-group-BIl1ZJHg.js} +7 -6
- package/dist/item-group-BIl1ZJHg.js.map +1 -0
- package/dist/{item-group-CqdByaLR.cjs → item-group-DOk562oI.cjs} +7 -6
- package/dist/item-group-DOk562oI.cjs.map +1 -0
- package/dist/{registry-Cn2it-y7.js → registry-CroAI5nc.js} +517 -11
- package/dist/registry-CroAI5nc.js.map +1 -0
- package/dist/{registry-DUTE1vtq.cjs → registry-Dw19lNo2.cjs} +552 -10
- package/dist/registry-Dw19lNo2.cjs.map +1 -0
- package/dist/{schemas-BrA6CFWz.cjs → schemas-CEv2otNw.cjs} +3 -3
- package/dist/{schemas-BrA6CFWz.cjs.map → schemas-CEv2otNw.cjs.map} +1 -1
- package/dist/{schemas-DlxeS7Lu.js → schemas-COw7muXH.js} +3 -3
- package/dist/{schemas-DlxeS7Lu.js.map → schemas-COw7muXH.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-weQ4SzwB.js → scoring-BxvOhHE0.js} +2 -2
- package/dist/{scoring-weQ4SzwB.js.map → scoring-BxvOhHE0.js.map} +1 -1
- package/dist/{scoring-IjLi2fYF.cjs → scoring-EpNBJ8Fs.cjs} +2 -2
- package/dist/{scoring-IjLi2fYF.cjs.map → scoring-EpNBJ8Fs.cjs.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-BqEbpWag.cjs → xapi-C-cQgWRX.cjs} +2 -2
- package/dist/{xapi-BqEbpWag.cjs.map → xapi-C-cQgWRX.cjs.map} +1 -1
- package/dist/{xapi-DbRVH_RB.js → xapi-DHHm7Os9.js} +2 -2
- package/dist/{xapi-DbRVH_RB.js.map → xapi-DHHm7Os9.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 +833 -0
- package/vectors/validation.json +631 -0
- package/dist/ai-hC5pGYeu.d.cts.map +0 -1
- package/dist/ai-hC5pGYeu.d.ts.map +0 -1
- package/dist/ai-writing-BDSYuifR.cjs.map +0 -1
- package/dist/ai-writing-Dsmvv4T-.js.map +0 -1
- package/dist/item-group-CqdByaLR.cjs.map +0 -1
- package/dist/item-group-vTcNy2JF.js.map +0 -1
- package/dist/registry-Cn2it-y7.js.map +0 -1
- package/dist/registry-DUTE1vtq.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as
|
|
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 isUnset, At as placeholderOrder, Dt as fold, Et as containsWords, G as readRubricLevels, H as LEVEL_PROBABILITY_TOLERANCE, I as keyPositionFinding, J as checkMedia, K as countWords, L as finding, Nt as PLACEHOLDER_RE, Ot as numberedPassage, Q as isRecord$8, R as normaliseFinding, St as withValidationScope, U as levelDistribution, W as levelKey, X as covers, Y as coveredPathsOf, Z as isMissingId, a as readSchema, at as GROUP_CAPTIONS_REVEAL_DICTATION, et as isUnwritten, ft as alignDictation, jt as revealsAnswer, kt as passageWithoutPlaceholders, nt as pathKey, ot as groupCaptionsField, q as DRAFT_ISSUE_SEVERITY, rt as refusesEmpty, t as getActivityTypeDescriptor, tt as issue, ut as UnknownActivityTypeError, v as SPEAKING_MEASURES, z as policyFor } from "./registry-CroAI5nc.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-BxvOhHE0.js";
|
|
3
|
+
import { a as INTERACTIVE_VIDEO_ITEM_TYPES, f as routeIssues, i as validateItemGroup, t as ItemGroupSchema, u as isInteractiveVideoItemType } from "./item-group-BIl1ZJHg.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,7 @@ 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 "mark-the-words": return { targets: listOf$3(entry.targets).length };
|
|
1461
1462
|
case "matching": return {
|
|
1462
1463
|
prompts: listOf$3(entry.prompts).length,
|
|
1463
1464
|
options: listOf$3(entry.options).length
|
|
@@ -1476,6 +1477,7 @@ const SCORED_ALIKE = {
|
|
|
1476
1477
|
"fill-in-the-blanks": ["scoringStrategy"],
|
|
1477
1478
|
"gap-select": ["scoringStrategy", "presentation"],
|
|
1478
1479
|
matching: ["scoringStrategy", "optionUse"],
|
|
1480
|
+
"mark-the-words": ["scoringStrategy"],
|
|
1479
1481
|
dictation: ["tolerance", "hints"],
|
|
1480
1482
|
"read-aloud": [
|
|
1481
1483
|
"recording",
|
|
@@ -1586,6 +1588,10 @@ function itemMisses(exemplar, candidate) {
|
|
|
1586
1588
|
}
|
|
1587
1589
|
});
|
|
1588
1590
|
if (exemplar.shuffleChoices === true !== (candidate.shuffleChoices === true)) miss(["shuffleChoices"], "Shuffling the choices differs from the exemplar.");
|
|
1591
|
+
} else if (type === "mark-the-words") {
|
|
1592
|
+
const mine = listOf$3(exemplar.targets).length;
|
|
1593
|
+
const theirs = listOf$3(candidate.targets).length;
|
|
1594
|
+
if (mine !== theirs) miss(["targets"], `${count(theirs, "target")}; the exemplar has ${mine}.`);
|
|
1589
1595
|
} else if (type === "matching") {
|
|
1590
1596
|
for (const [field, noun] of [["prompts", "prompt"], ["options", "option"]]) {
|
|
1591
1597
|
const mine = listOf$3(exemplar[field]).length;
|
|
@@ -5584,4 +5590,4 @@ function checkAiWritingFeedback(raw, request) {
|
|
|
5584
5590
|
}
|
|
5585
5591
|
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 };
|
|
5586
5592
|
|
|
5587
|
-
//# sourceMappingURL=ai-writing-
|
|
5593
|
+
//# sourceMappingURL=ai-writing-D3oREPsp.js.map
|