@intellectif/lk-core 1.10.0 → 1.11.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 +27 -0
- package/dist/{ai-zhc9yhRj.d.cts → ai-Cu17iVHa.d.cts} +429 -2
- package/dist/ai-Cu17iVHa.d.cts.map +1 -0
- package/dist/{ai-zhc9yhRj.d.ts → ai-Cu17iVHa.d.ts} +429 -2
- package/dist/ai-Cu17iVHa.d.ts.map +1 -0
- 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-writing-B1pKVkG7.cjs → ai-writing-C7f6aKNW.cjs} +27 -4
- package/dist/ai-writing-C7f6aKNW.cjs.map +1 -0
- package/dist/{ai-writing-DLvzBiZN.js → ai-writing-Dl1bJQbL.js} +22 -5
- package/dist/ai-writing-Dl1bJQbL.js.map +1 -0
- package/dist/{index-CxkqS62X.d.ts → index-B1zEN1Ur.d.ts} +25 -3
- package/dist/index-B1zEN1Ur.d.ts.map +1 -0
- package/dist/{index-Byar5VVs.d.ts → index-BTZWUwOe.d.ts} +2 -2
- package/dist/{index-Byar5VVs.d.ts.map → index-BTZWUwOe.d.ts.map} +1 -1
- package/dist/{index-f4YuMgFb.d.ts → index-BfUyl6ml.d.ts} +2 -2
- package/dist/{index-f4YuMgFb.d.ts.map → index-BfUyl6ml.d.ts.map} +1 -1
- package/dist/{index-DLsUnGHt.d.cts → index-CpamCGyZ.d.cts} +25 -3
- package/dist/index-CpamCGyZ.d.cts.map +1 -0
- package/dist/{index-BeC8tAWf.d.cts → index-DYnacygI.d.cts} +2 -2
- package/dist/{index-BeC8tAWf.d.cts.map → index-DYnacygI.d.cts.map} +1 -1
- package/dist/{index-Ccj8oL_E.d.cts → index-DjZ1vIVg.d.cts} +2 -2
- package/dist/{index-Ccj8oL_E.d.cts.map → index-DjZ1vIVg.d.cts.map} +1 -1
- package/dist/index.cjs +763 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +189 -5
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +189 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +735 -7
- package/dist/index.js.map +1 -1
- package/dist/item-group-D7M3E7K2.cjs +1506 -0
- package/dist/item-group-D7M3E7K2.cjs.map +1 -0
- package/dist/item-group-uNAT5EX5.js +1338 -0
- package/dist/item-group-uNAT5EX5.js.map +1 -0
- package/dist/{registry-C9O9txy5.cjs → registry-RPfZZEqi.cjs} +28 -1
- package/dist/registry-RPfZZEqi.cjs.map +1 -0
- package/dist/{registry-Bw9grsCN.js → registry-kTqbi4Lb.js} +28 -1
- package/dist/registry-kTqbi4Lb.js.map +1 -0
- package/dist/{schemas-DcEAuAeU.cjs → schemas-C4V5wfOS.cjs} +3 -3
- package/dist/{schemas-DcEAuAeU.cjs.map → schemas-C4V5wfOS.cjs.map} +1 -1
- package/dist/{schemas-D14-tnNl.js → schemas-rDgIN4Vu.js} +3 -3
- package/dist/{schemas-D14-tnNl.js.map → schemas-rDgIN4Vu.js.map} +1 -1
- package/dist/schemas.cjs +3 -3
- package/dist/schemas.d.cts +1 -1
- package/dist/schemas.d.ts +1 -1
- package/dist/schemas.js +3 -3
- package/dist/{scoring-BGKdff2i.js → scoring-DshU9i7e.js} +49 -17
- package/dist/scoring-DshU9i7e.js.map +1 -0
- package/dist/{scoring-Db1CZeAn.cjs → scoring-KpYfR0lO.cjs} +49 -17
- package/dist/scoring-KpYfR0lO.cjs.map +1 -0
- 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-DOAqH9__.cjs → xapi-CaM7f1sD.cjs} +2 -2
- package/dist/{xapi-DOAqH9__.cjs.map → xapi-CaM7f1sD.cjs.map} +1 -1
- package/dist/{xapi-BtBm8AWZ.js → xapi-fFq9KEXG.js} +2 -2
- package/dist/{xapi-BtBm8AWZ.js.map → xapi-fFq9KEXG.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/dist/ai-writing-B1pKVkG7.cjs.map +0 -1
- package/dist/ai-writing-DLvzBiZN.js.map +0 -1
- package/dist/ai-zhc9yhRj.d.cts.map +0 -1
- package/dist/ai-zhc9yhRj.d.ts.map +0 -1
- package/dist/index-CxkqS62X.d.ts.map +0 -1
- package/dist/index-DLsUnGHt.d.cts.map +0 -1
- package/dist/item-group-C9boy5Mk.cjs +0 -513
- package/dist/item-group-C9boy5Mk.cjs.map +0 -1
- package/dist/item-group-Cqng1LPl.js +0 -453
- package/dist/item-group-Cqng1LPl.js.map +0 -1
- package/dist/registry-Bw9grsCN.js.map +0 -1
- package/dist/registry-C9O9txy5.cjs.map +0 -1
- package/dist/scoring-BGKdff2i.js.map +0 -1
- package/dist/scoring-Db1CZeAn.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, 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-kTqbi4Lb.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-DshU9i7e.js";
|
|
3
|
+
import { a as INTERACTIVE_VIDEO_ITEM_TYPES, d as routeIssues, i as validateItemGroup, t as ItemGroupSchema, u as isInteractiveVideoItemType } from "./item-group-uNAT5EX5.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
|
|
@@ -1920,6 +1920,22 @@ function createInteractiveVideoDraft(context) {
|
|
|
1920
1920
|
};
|
|
1921
1921
|
}
|
|
1922
1922
|
/**
|
|
1923
|
+
* A new, empty reading route for an editor to start from: an item group with
|
|
1924
|
+
* a text stimulus waiting for its passage, no questions, and a route with no
|
|
1925
|
+
* questions yet. Like every new draft it is `incomplete`.
|
|
1926
|
+
*
|
|
1927
|
+
* @throws Error when `newId` returns an empty or repeated id.
|
|
1928
|
+
*/
|
|
1929
|
+
function createReadingRouteDraft(context) {
|
|
1930
|
+
return {
|
|
1931
|
+
...createItemGroupDraft(context),
|
|
1932
|
+
route: {
|
|
1933
|
+
routeVersion: "1.0",
|
|
1934
|
+
questions: []
|
|
1935
|
+
}
|
|
1936
|
+
};
|
|
1937
|
+
}
|
|
1938
|
+
/**
|
|
1923
1939
|
* Tells an unfinished testlet from a broken one — {@link validateDraft} for the
|
|
1924
1940
|
* container that holds several questions around one passage or recording.
|
|
1925
1941
|
*
|
|
@@ -2003,6 +2019,7 @@ function validateItemGroupDraftInScope(draft) {
|
|
|
2003
2019
|
else if (isUnset(draft.stimulus)) issues.push(issue("ig_stimulus_required", ["stimulus"], "Add the passage, recording or image the questions are about."));
|
|
2004
2020
|
issues.push(...checkItems(draft));
|
|
2005
2021
|
if (draft.timeline !== void 0 && draft.timeline !== null) issues.push(...checkTimeline(draft));
|
|
2022
|
+
if (isRecord$8(draft.route)) for (const found of routeIssues(draft)) issues.push(issue(found.code, found.path, found.message));
|
|
2006
2023
|
const captions = groupCaptionsField(draft, (captionsUrl) => !isUnwritten(captionsUrl));
|
|
2007
2024
|
if (captions !== void 0) issues.push(issue("dc_captions_not_allowed", [
|
|
2008
2025
|
"stimulus",
|
|
@@ -5552,6 +5569,6 @@ function checkAiWritingFeedback(raw, request) {
|
|
|
5552
5569
|
}
|
|
5553
5570
|
};
|
|
5554
5571
|
}
|
|
5555
|
-
export {
|
|
5572
|
+
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 };
|
|
5556
5573
|
|
|
5557
|
-
//# sourceMappingURL=ai-writing-
|
|
5574
|
+
//# sourceMappingURL=ai-writing-Dl1bJQbL.js.map
|