@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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Br as GradeRouting, Cr as WrittenResponseData, En as ActivityData, Fn as DictationData, Hr as Grader, L as AiGradingJudgement, Rr as CriterionScore, Sr as ValidationResult, Tr as WrittenResponseRubric, Ur as GraderConfiguration, Xn as LearnerResponse, Yn as ItemOutcome, _r as SpeakingResponseData, ar as ReadAloudData, cr as ReadAloudLearnerResponse, jn as ActivityType, mr as ScoringResult, vr as SpeakingResponseLearnerResponse, zr as GradeRecord } from "./ai-Cu17iVHa.js";
|
|
2
2
|
/**
|
|
3
3
|
* Rounding for assessment scores.
|
|
4
4
|
*
|
|
@@ -19,7 +19,12 @@ import { $t as ActivityType, An as ReadAloudLearnerResponse, Bn as SpeakingRespo
|
|
|
19
19
|
*/
|
|
20
20
|
/** How a value is rounded to `dp` decimal places. */
|
|
21
21
|
type RoundingMode = 'half-up' | 'half-even' | 'floor' | 'ceil';
|
|
22
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* A rounding policy. Both fields are required — the SDK never guesses either.
|
|
24
|
+
*
|
|
25
|
+
* Every function that takes one checks it at the call: an unknown `mode`, or a
|
|
26
|
+
* `dp` that is not a whole number from 0 to 15, throws a `RangeError`.
|
|
27
|
+
*/
|
|
23
28
|
interface RoundingPolicy {
|
|
24
29
|
mode: RoundingMode;
|
|
25
30
|
/** Decimal places. Load-bearing: `dp: 2` is what stops 69.6 becoming a fail at 70. */
|
|
@@ -31,6 +36,9 @@ interface RoundingPolicy {
|
|
|
31
36
|
* Idempotent for every mode: rounding an already-rounded value returns it
|
|
32
37
|
* unchanged. That matters because a composed score is rounded once and then
|
|
33
38
|
* compared through {@link gte}, which rounds again.
|
|
39
|
+
*
|
|
40
|
+
* @throws RangeError when `policy` is not a {@link RoundingPolicy} — for a
|
|
41
|
+
* non-finite `value` too, which a policy returns unchanged.
|
|
34
42
|
*/
|
|
35
43
|
declare function roundGrade(value: number, policy: RoundingPolicy): number;
|
|
36
44
|
/**
|
|
@@ -40,6 +48,9 @@ declare function roundGrade(value: number, policy: RoundingPolicy): number;
|
|
|
40
48
|
* shown one number and recorded against another. Rounding both sides — and
|
|
41
49
|
* allowing an epsilon — makes "what the learner sees" and "what the gradebook
|
|
42
50
|
* decides" the same comparison.
|
|
51
|
+
*
|
|
52
|
+
* @throws RangeError when `policy` is not a {@link RoundingPolicy}. It is read
|
|
53
|
+
* once, so both sides are rounded under the same one.
|
|
43
54
|
*/
|
|
44
55
|
declare function gte(value: number, threshold: number, policy: RoundingPolicy): boolean;
|
|
45
56
|
/** A named band with an inclusive lower bound, e.g. `{ name: 'B1', min: 0.6 }`. */
|
|
@@ -368,6 +379,10 @@ interface CompositionPolicy {
|
|
|
368
379
|
* How grades are rounded. Required, with no default: see `RoundingPolicy` —
|
|
369
380
|
* grade rounding and band classification are different operations and the
|
|
370
381
|
* SDK must not choose either for you.
|
|
382
|
+
*
|
|
383
|
+
* Checked at the call: a missing policy, an unknown `mode`, or a `dp` that is
|
|
384
|
+
* not a whole number from 0 to 15 throws a `RangeError` before any section is
|
|
385
|
+
* scored.
|
|
371
386
|
*/
|
|
372
387
|
rounding: RoundingPolicy;
|
|
373
388
|
}
|
|
@@ -476,6 +491,8 @@ interface AssessmentScore {
|
|
|
476
491
|
* until every item has a grade. An outcome whose score cannot be a grade out of
|
|
477
492
|
* its `maxScore` is not a grade either: it is held the same way and named in
|
|
478
493
|
* `rejectedSlotIds`.
|
|
494
|
+
*
|
|
495
|
+
* @throws RangeError when `policy.rounding` is not a `RoundingPolicy`.
|
|
479
496
|
*/
|
|
480
497
|
declare function composeAssessmentScore(sections: readonly AssessmentSectionInput[], policy: CompositionPolicy): AssessmentScore;
|
|
481
498
|
/**
|
|
@@ -1103,6 +1120,11 @@ declare const DEFAULT_PASS_THRESHOLD = 0.7;
|
|
|
1103
1120
|
* the rounding band, and this SDK does not alter historical grades without an
|
|
1104
1121
|
* explicit decision. Absent, the comparison is the exact raw `>=` it has
|
|
1105
1122
|
* always been.
|
|
1123
|
+
*
|
|
1124
|
+
* The policy is checked at the call, as `score()`'s `rounding` option is:
|
|
1125
|
+
* `null` reads as no policy, and one that cannot be applied — an unknown
|
|
1126
|
+
* `mode`, or a `dp` that is not a whole number from 0 to 15 — throws a
|
|
1127
|
+
* `RangeError` instead of quietly failing the comparison.
|
|
1106
1128
|
*/
|
|
1107
1129
|
declare function computePassThreshold(activityData: ActivityData, score: number, rounding?: RoundingPolicy): boolean;
|
|
1108
1130
|
/**
|
|
@@ -1434,4 +1456,4 @@ interface ItemTriesOutcome {
|
|
|
1434
1456
|
*/
|
|
1435
1457
|
declare function evaluateTries(data: ActivityData, responses: readonly LearnerResponse[], options?: EvaluateOptions): ItemTriesOutcome;
|
|
1436
1458
|
export { gradeFromRubric as $, DictationCharOp as A, SpeechWordError as At, inAuditSample as B, scoreTries as C, SpeechPhoneme as Ct, DICTATION_MAX_EQUIVALENCE_LENGTH as D, SpeechUnscorable as Dt, DICTATION_MAX_EQUIVALENCES as E, SpeechSyllable as Et, alignDictation as F, RoundingPolicy as Ft, CalibrationPair as G, routeGrade as H, dictationReferenceWords as I, classifyBand as It, CriterionCalibration as J, CalibrationReport as K, CalibrationThresholds as L, gte as Lt, DictationAlignment as M, WavInspectionPolicy as Mt, DictationReference as N, Band as Nt, DICTATION_MAX_TEXT_LENGTH as O, SpeechUnscorableCode as Ot, DictationWordAlignment as P, RoundingMode as Pt, GradeFromRubricOptions as Q, GradeRoutingContext as R, roundGrade as Rt, resolveItemScoringPolicy as S, SpeechMeasurement as St, DICTATION_MAX_ACCEPTED_TRANSCRIPTS as T, SpeechPlausibilityPolicy as Tt, GradeFromJudgementOptions as U, outcomeFromRoutedGrade as V, gradeFromJudgement as W, calibrationReport as X, TotalCalibration as Y, graderConfiguration as Z, alignReadAloud as _, GradeSpeakingResponseOptions as _t, evaluateTries as a, ItemTriesScore as at, DEFAULT_ITEM_SCORING_POLICY as b, SpeakingEvidence as bt, inspectWav as c, ResolvedItemScoringPolicy as ct, READ_ALOUD_MAX_SECONDS as d, CompositionPolicy as dt, hasGrade as et, READ_ALOUD_MAX_TAKES as f, PassFailureReason as ft, validateSpeechAssessment as g, GradeReadAloudOptions as gt, gradeReadAloud as h, composeAssessmentScore as ht, evaluate as i, ItemScoringPolicyIssue as it, diffDictationChars as j, WavInspection as jt, DICTATION_MAX_TRANSCRIPT_LENGTH as k, SpeechWord as kt, READ_ALOUD_MAX_DIMENSION_WEIGHT as l, AssessmentScore as lt, gradeSpeakingResponse as m, SectionScore as mt, ItemTriesOutcome as n, ItemScoringCount as nt, score as o, ItemTry as ot, SPEECH_ASSESSMENT_MAX_WORDS as p, ScoredItem as pt, CalibrationScope as q, ScoringOptions as r, ItemScoringPolicy as rt, outcomeFromUnscorable as s, ItemTryScore as st, EvaluateOptions as t, outcomeFromGrade as tt, READ_ALOUD_MAX_REFERENCE_LENGTH as u, AssessmentSectionInput as ut, DEFAULT_PASS_THRESHOLD as v, ReadAloudWordAlignment as vt, validateItemScoringPolicy as w, SpeechPhonemeCandidate as wt, ITEM_SCORING_MAX_RETRIES as x, SpeechAssessment as xt, computePassThreshold as y, ReadAloudWordState as yt, GradeRoutingPolicy as z };
|
|
1437
|
-
//# sourceMappingURL=index-
|
|
1459
|
+
//# sourceMappingURL=index-B1zEN1Ur.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-B1zEN1Ur.d.ts","names":[],"sources":["../src/scoring/rounding.ts","../src/types/speech.ts","../src/scoring/compose.ts","../src/types/item-scoring.ts","../src/grading.ts","../src/scoring/assisted/calibration.ts","../src/scoring/assisted/grade-from-judgement.ts","../src/scoring/assisted/routing.ts","../src/scoring/dictation/align.ts","../src/scoring/dictation/chars.ts","../src/scoring/dictation/normalize.ts","../src/scoring/item-scoring.ts","../src/scoring/pass-threshold.ts","../src/scoring/speech/align.ts","../src/scoring/speech/assessment.ts","../src/scoring/speech/grade.ts","../src/scoring/speech/grade-speaking.ts","../src/scoring/speech/limits.ts","../src/scoring/speech/wav.ts","../src/scoring/unscorable.ts","../src/scoring/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;KAoBY;;;;;;;UAQK;EACf,MAAM;;EAEN;;;;;;;;;;;;iBAoGc,WAAW,eAAe,QAAQ;;;;;;;;;;;;iBAmElC,IAAI,eAAe,mBAAmB,QAAQ;;UAM7C;EACf;;EAEA;;;;;;;;;;iBAWc,aAAa,eAAe,gBAAgB,SAAS;;;;;;KCxMzD;;UAGK;;EAEf;;EAEA;;;UAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA,UAAU;;;UAIK;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;;UAIe;;EAEf;;EAEA;;EAEA,OAAO;;EAEP;;EAEA;;EAEA;EACA,YAAY;EACZ,WAAW;;;;;EAKX;IAAW;IAAqB;;;;;;;UAOjB;EACf;;EAEA;;EAEA;;EAEA;;;;;;EAMA;;;;;E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G5D,sBAAsB;EAAU;EAAc;IAAmB;;;;;UC4HhE;;;;;;;;;;;;;EAaf,WAAW;;;;;;UAOI,wBAAwB;;;;;;;;;;;;;;;;EAgBvC,UAAU;;;;;;;;;;;;;;;iBAgBI,MACd,cAAc,cACd,cAAc,cACd,iBAAiB,iBACjB,UAAU,iBACT;;;;;;;;;;;;;;;;;;;;;;iBA0Ca,SACd,MAAM,cACN,UAAU,iBACV,UAAU,kBACT;;UA0Ec;;;;;;;;EAQf,SAAS;;EAET;;;;;;EAMA,OAAO;;;;;;;;;;;;;;;;;iBAkBO,cACd,MAAM,cACN,oBAAoB,mBACpB,UAAU,kBACT"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ar as XAPIContext, Ir as XAPIStatement, Or as XAPIActor, Pr as XAPIResult, mr as ScoringResult } from "./ai-Cu17iVHa.js";
|
|
2
2
|
/**
|
|
3
3
|
* The set of xAPI verbs emitted by SDK activities, keyed by a stable
|
|
4
4
|
* identifier mapped to its canonical xAPI verb IRI (xAPI 1.0.3 / ADL registry).
|
|
@@ -144,4 +144,4 @@ declare function xapiDefinitionFor(data: {
|
|
|
144
144
|
*/
|
|
145
145
|
declare function validateXAPIStatement(statement: XAPIStatement): void;
|
|
146
146
|
export { XAPIObjectParams as a, xapiDefinitionFor as c, XAPI_VERB_DISPLAY as d, SubmittedStatementParams as i, XAPIVerb as l, AnsweredStatementParams as n, XAPIStatementParams as o, CompletedStatementParams as r, xAPIBuilder as s, validateXAPIStatement as t, XAPIVerbKey as u };
|
|
147
|
-
//# sourceMappingURL=index-
|
|
147
|
+
//# sourceMappingURL=index-BTZWUwOe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BTZWUwOe.d.ts","names":[],"sources":["../src/xapi/verbs.ts","../src/xapi/builder.ts","../src/xapi/validators.ts"],"mappings":";;;;;cAIa;;;;;;;;;;;;;;;;;;;;;;;;;;KA2BD,2BAA2B;;;;;cAM1B,mBAAmB,OAAO,aAAa;;UCxBnC;;EAEf;EACA,OAAO;EACP,cAAc;;EAEd;;EAEA;;EAEA;;EAEA,UAAU;IAAQ;IAAY,cAAc;;;;UAI7B;EACf,OAAO;EACP,MAAM;EACN,QAAQ;EACR,SAAS;EACT,UAAU;;;UAIK;EACf,OAAO;EACP,QAAQ;EACR,eAAe;EACf;;EAEA;EACA,UAAU;EACV,mBAAmB;;;;;;;UAQJ;EACf,OAAO;EACP,QAAQ;EACR;;EAEA;EACA,UAAU;EACV,mBAAmB;;;UAIJ;EACf,OAAO;EACP,QAAQ;EACR,gBAAgB;EAChB;EACA,UAAU;EACV,mBAAmB;;;;;;;cAiGR;EACY,eAAA,QAAA,sBAAsB;EAoBd,uBAAA,QAAA,0BAA0B;;;;;;;EAqBzB,wBAAA,QAAA,2BAA2B;EAc3B,wBAAA,QAAA,2BAA2B;;;;;;;;;;;;;;;;iBA8B7C,kBAAkB;EAAQ;IAAiB,QAAQ;;;;;;;;;;;;;;iBClHnD,sBAAsB,WAAW"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dn as ActivityDataMap, Et as ItemGroup, Sr as ValidationResult, jn as ActivityType, kn as ActivityMedia, rr as MultipleChoiceOptionMedia } from "./ai-Cu17iVHa.js";
|
|
2
2
|
/**
|
|
3
3
|
* The learner-safe SHAPE of each built-in type.
|
|
4
4
|
*
|
|
@@ -362,4 +362,4 @@ declare function validateOptionMedia(value: unknown): ValidationResult<MultipleC
|
|
|
362
362
|
*/
|
|
363
363
|
declare function validateActivity<T extends ActivityType>(type: T, data: unknown): ValidationResult<ActivityDataMap[T]>;
|
|
364
364
|
export { RedactedStimulus as A, RedactedGapSelectChoice as C, RedactedMultipleChoiceOption as D, RedactedMultipleChoiceData as E, RedactedMultipleChoiceOptionMedia as O, RedactedGapSelectBank as S, RedactedGapSelectGap as T, RedactedActivity as _, JsonSchemaTarget as a, RedactedDictationSlowMedia as b, fillInTheBlanksJsonSchema as c, jsonSchemaFor as d, multipleChoiceJsonSchema as f, validateItemGroup as g, writtenResponseJsonSchema as h, SCRIPT_MAX_TURNS as i, RedactedWrittenResponseData as j, RedactedReadAloudData as k, gapSelectJsonSchema as l, stimulusJsonSchema as m, validateMedia as n, contentJsonSchema as o, readAloudJsonSchema as p, validateOptionMedia as r, dictationJsonSchema as s, validateActivity as t, itemGroupJsonSchema as u, RedactedBlankConfig as v, RedactedGapSelectData as w, RedactedFillInTheBlanksData as x, RedactedDictationData as y };
|
|
365
|
-
//# sourceMappingURL=index-
|
|
365
|
+
//# sourceMappingURL=index-BfUyl6ml.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BfUyl6ml.d.ts","names":[],"sources":["../src/types/redacted.ts","../src/schemas/item-group.ts","../src/schemas/json-schema.ts","../src/schemas/media.ts","../src/schemas/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;UAoBU;EACR;EACA;EACA;EACA;EACA;;;UAIQ;EACR;EACA;EACA;EACA;EACA;;;UAIQ;EACR;EACA;EACA;EACA;EACA,SAAS;EACT;EACA,WAAW;;;UAIH;EACR;EACA;;;UAIQ;EACR;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA;EACA,KAAK;;;UAIU;EACf;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA,QAAQ;;;UAIO,mCAAmC;EAClD;EACA;EACA;EACA;EACA;EACA,SAAS;EACT;EACA;;;UAIe;EACf;EACA;;;UAIe,oCAAoC;EACnD;EACA;EACA;EACA;EACA,QAAQ;EACR;;;UAIe,oCAAoC;EACnD;EACA;EACA;EACA;EACA;EACA;IAEM;MACE;MACA;MACA;MACA;QAAW;QAAe;;;IAE5B;;EAGN;EACA;;;UAIe;EACf;EACA;;;UAIe;EACf;EACA,SAAS;;;UAIM;EACf;EACA,UAAU;EACV;;;UAIe,8BAA8B;EAC7C;EACA;EACA;EACA;EACA,MAAM;EACN,QAAQ;EACR;EACA;EACA;;;UAIe;EACf;EACA;EACA;;;UAIe,8BAA8B;EAC7C;EACA,YAAY;EACZ;IAAU;;EACV;;;;;;;UAQe,8BAA8B;EAC7C;EACA;EACA;EACA;EACA,YAAY;EACZ;IACE;IACA;IACA;;EAEF;IACE;MACE;MACA;;;;;UAMW;EACf;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;;;;;;;;;;;;;;KAeU,mBACR,6BACA,8BACA,8BACA,wBACA,wBACA;;;;;;;;;;;iBCmTY,kBAAkB,gBAAgB,iBAAiB;;;;;cC7gBtD,oBAAoB;;;;;;;;cAWpB,qBAAqB;;;;;;;;;;;;;;;;;;cAqBrB,qBAAqB;;;;;;;;;;;cAcrB,qBAAqB;;;;;;;;;;cAarB,qBAAqB;cAIrB,0BAA0B;;;;;;cAY1B,2BAA2B;;;;;cAW3B,2BAA2B;;KAQ5B;;;;;;;;;;;;;;;;;iBAqBI,cACd,cACA;EAAW,SAAS;IACnB;;;;;;;;;;;;;;;;;;iBA4Ca,kBACd;EAAW,SAAS;IACnB;;cCzEU;;;;;;;;;;;iBCnDG,cAAc,iBAAiB,iBAAiB;;;;;;;;iBAWhD,oBAAoB,iBAAiB,iBAAiB;;;;;;;;;;;;;iBA8BtD,iBAAiB,UAAU,cACzC,MAAM,GACN,gBACC,iBAAiB,gBAAgB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Br as GradeRouting, Cr as WrittenResponseData, En as ActivityData, Fn as DictationData, Hr as Grader, L as AiGradingJudgement, Rr as CriterionScore, Sr as ValidationResult, Tr as WrittenResponseRubric, Ur as GraderConfiguration, Xn as LearnerResponse, Yn as ItemOutcome, _r as SpeakingResponseData, ar as ReadAloudData, cr as ReadAloudLearnerResponse, jn as ActivityType, mr as ScoringResult, vr as SpeakingResponseLearnerResponse, zr as GradeRecord } from "./ai-Cu17iVHa.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* Rounding for assessment scores.
|
|
4
4
|
*
|
|
@@ -19,7 +19,12 @@ import { $t as ActivityType, An as ReadAloudLearnerResponse, Bn as SpeakingRespo
|
|
|
19
19
|
*/
|
|
20
20
|
/** How a value is rounded to `dp` decimal places. */
|
|
21
21
|
type RoundingMode = 'half-up' | 'half-even' | 'floor' | 'ceil';
|
|
22
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* A rounding policy. Both fields are required — the SDK never guesses either.
|
|
24
|
+
*
|
|
25
|
+
* Every function that takes one checks it at the call: an unknown `mode`, or a
|
|
26
|
+
* `dp` that is not a whole number from 0 to 15, throws a `RangeError`.
|
|
27
|
+
*/
|
|
23
28
|
interface RoundingPolicy {
|
|
24
29
|
mode: RoundingMode;
|
|
25
30
|
/** Decimal places. Load-bearing: `dp: 2` is what stops 69.6 becoming a fail at 70. */
|
|
@@ -31,6 +36,9 @@ interface RoundingPolicy {
|
|
|
31
36
|
* Idempotent for every mode: rounding an already-rounded value returns it
|
|
32
37
|
* unchanged. That matters because a composed score is rounded once and then
|
|
33
38
|
* compared through {@link gte}, which rounds again.
|
|
39
|
+
*
|
|
40
|
+
* @throws RangeError when `policy` is not a {@link RoundingPolicy} — for a
|
|
41
|
+
* non-finite `value` too, which a policy returns unchanged.
|
|
34
42
|
*/
|
|
35
43
|
declare function roundGrade(value: number, policy: RoundingPolicy): number;
|
|
36
44
|
/**
|
|
@@ -40,6 +48,9 @@ declare function roundGrade(value: number, policy: RoundingPolicy): number;
|
|
|
40
48
|
* shown one number and recorded against another. Rounding both sides — and
|
|
41
49
|
* allowing an epsilon — makes "what the learner sees" and "what the gradebook
|
|
42
50
|
* decides" the same comparison.
|
|
51
|
+
*
|
|
52
|
+
* @throws RangeError when `policy` is not a {@link RoundingPolicy}. It is read
|
|
53
|
+
* once, so both sides are rounded under the same one.
|
|
43
54
|
*/
|
|
44
55
|
declare function gte(value: number, threshold: number, policy: RoundingPolicy): boolean;
|
|
45
56
|
/** A named band with an inclusive lower bound, e.g. `{ name: 'B1', min: 0.6 }`. */
|
|
@@ -368,6 +379,10 @@ interface CompositionPolicy {
|
|
|
368
379
|
* How grades are rounded. Required, with no default: see `RoundingPolicy` —
|
|
369
380
|
* grade rounding and band classification are different operations and the
|
|
370
381
|
* SDK must not choose either for you.
|
|
382
|
+
*
|
|
383
|
+
* Checked at the call: a missing policy, an unknown `mode`, or a `dp` that is
|
|
384
|
+
* not a whole number from 0 to 15 throws a `RangeError` before any section is
|
|
385
|
+
* scored.
|
|
371
386
|
*/
|
|
372
387
|
rounding: RoundingPolicy;
|
|
373
388
|
}
|
|
@@ -476,6 +491,8 @@ interface AssessmentScore {
|
|
|
476
491
|
* until every item has a grade. An outcome whose score cannot be a grade out of
|
|
477
492
|
* its `maxScore` is not a grade either: it is held the same way and named in
|
|
478
493
|
* `rejectedSlotIds`.
|
|
494
|
+
*
|
|
495
|
+
* @throws RangeError when `policy.rounding` is not a `RoundingPolicy`.
|
|
479
496
|
*/
|
|
480
497
|
declare function composeAssessmentScore(sections: readonly AssessmentSectionInput[], policy: CompositionPolicy): AssessmentScore;
|
|
481
498
|
/**
|
|
@@ -1103,6 +1120,11 @@ declare const DEFAULT_PASS_THRESHOLD = 0.7;
|
|
|
1103
1120
|
* the rounding band, and this SDK does not alter historical grades without an
|
|
1104
1121
|
* explicit decision. Absent, the comparison is the exact raw `>=` it has
|
|
1105
1122
|
* always been.
|
|
1123
|
+
*
|
|
1124
|
+
* The policy is checked at the call, as `score()`'s `rounding` option is:
|
|
1125
|
+
* `null` reads as no policy, and one that cannot be applied — an unknown
|
|
1126
|
+
* `mode`, or a `dp` that is not a whole number from 0 to 15 — throws a
|
|
1127
|
+
* `RangeError` instead of quietly failing the comparison.
|
|
1106
1128
|
*/
|
|
1107
1129
|
declare function computePassThreshold(activityData: ActivityData, score: number, rounding?: RoundingPolicy): boolean;
|
|
1108
1130
|
/**
|
|
@@ -1434,4 +1456,4 @@ interface ItemTriesOutcome {
|
|
|
1434
1456
|
*/
|
|
1435
1457
|
declare function evaluateTries(data: ActivityData, responses: readonly LearnerResponse[], options?: EvaluateOptions): ItemTriesOutcome;
|
|
1436
1458
|
export { gradeFromRubric as $, DictationCharOp as A, SpeechWordError as At, inAuditSample as B, scoreTries as C, SpeechPhoneme as Ct, DICTATION_MAX_EQUIVALENCE_LENGTH as D, SpeechUnscorable as Dt, DICTATION_MAX_EQUIVALENCES as E, SpeechSyllable as Et, alignDictation as F, RoundingPolicy as Ft, CalibrationPair as G, routeGrade as H, dictationReferenceWords as I, classifyBand as It, CriterionCalibration as J, CalibrationReport as K, CalibrationThresholds as L, gte as Lt, DictationAlignment as M, WavInspectionPolicy as Mt, DictationReference as N, Band as Nt, DICTATION_MAX_TEXT_LENGTH as O, SpeechUnscorableCode as Ot, DictationWordAlignment as P, RoundingMode as Pt, GradeFromRubricOptions as Q, GradeRoutingContext as R, roundGrade as Rt, resolveItemScoringPolicy as S, SpeechMeasurement as St, DICTATION_MAX_ACCEPTED_TRANSCRIPTS as T, SpeechPlausibilityPolicy as Tt, GradeFromJudgementOptions as U, outcomeFromRoutedGrade as V, gradeFromJudgement as W, calibrationReport as X, TotalCalibration as Y, graderConfiguration as Z, alignReadAloud as _, GradeSpeakingResponseOptions as _t, evaluateTries as a, ItemTriesScore as at, DEFAULT_ITEM_SCORING_POLICY as b, SpeakingEvidence as bt, inspectWav as c, ResolvedItemScoringPolicy as ct, READ_ALOUD_MAX_SECONDS as d, CompositionPolicy as dt, hasGrade as et, READ_ALOUD_MAX_TAKES as f, PassFailureReason as ft, validateSpeechAssessment as g, GradeReadAloudOptions as gt, gradeReadAloud as h, composeAssessmentScore as ht, evaluate as i, ItemScoringPolicyIssue as it, diffDictationChars as j, WavInspection as jt, DICTATION_MAX_TRANSCRIPT_LENGTH as k, SpeechWord as kt, READ_ALOUD_MAX_DIMENSION_WEIGHT as l, AssessmentScore as lt, gradeSpeakingResponse as m, SectionScore as mt, ItemTriesOutcome as n, ItemScoringCount as nt, score as o, ItemTry as ot, SPEECH_ASSESSMENT_MAX_WORDS as p, ScoredItem as pt, CalibrationScope as q, ScoringOptions as r, ItemScoringPolicy as rt, outcomeFromUnscorable as s, ItemTryScore as st, EvaluateOptions as t, outcomeFromGrade as tt, READ_ALOUD_MAX_REFERENCE_LENGTH as u, AssessmentSectionInput as ut, DEFAULT_PASS_THRESHOLD as v, ReadAloudWordAlignment as vt, validateItemScoringPolicy as w, SpeechPhonemeCandidate as wt, ITEM_SCORING_MAX_RETRIES as x, SpeechAssessment as xt, computePassThreshold as y, ReadAloudWordState as yt, GradeRoutingPolicy as z };
|
|
1437
|
-
//# sourceMappingURL=index-
|
|
1459
|
+
//# sourceMappingURL=index-CpamCGyZ.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CpamCGyZ.d.cts","names":[],"sources":["../src/scoring/rounding.ts","../src/types/speech.ts","../src/scoring/compose.ts","../src/types/item-scoring.ts","../src/grading.ts","../src/scoring/assisted/calibration.ts","../src/scoring/assisted/grade-from-judgement.ts","../src/scoring/assisted/routing.ts","../src/scoring/dictation/align.ts","../src/scoring/dictation/chars.ts","../src/scoring/dictation/normalize.ts","../src/scoring/item-scoring.ts","../src/scoring/pass-threshold.ts","../src/scoring/speech/align.ts","../src/scoring/speech/assessment.ts","../src/scoring/speech/grade.ts","../src/scoring/speech/grade-speaking.ts","../src/scoring/speech/limits.ts","../src/scoring/speech/wav.ts","../src/scoring/unscorable.ts","../src/scoring/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;KAoBY;;;;;;;UAQK;EACf,MAAM;;EAEN;;;;;;;;;;;;iBAoGc,WAAW,eAAe,QAAQ;;;;;;;;;;;;iBAmElC,IAAI,eAAe,mBAAmB,QAAQ;;UAM7C;EACf;;EAEA;;;;;;;;;;iBAWc,aAAa,eAAe,gBAAgB,SAAS;;;;;;KCxMzD;;UAGK;;EAEf;;EAEA;;;UAIe;;EAEf;;EAEA;;EAEA;;EA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;;;;;;;;;;;iBCTD,sBACd,MAAM,sBACN,UAAU,iCACV,UAAU,kBACV,SAAS,+BACR,cAAc;;;;;;;;cCjJJ;;cAGA;;cAGA;;;;;;cAOA;;;;;;;;;cAUA;;;;;;;;;;;;;;;;;;;;;;;;iBC8EG,WAAW,OAAO,YAAY,QAAQ,sBAAsB;;;;;;;;;;iBCtG5D,sBAAsB;EAAU;EAAc;IAAmB;;;;;UC4HhE;;;;;;;;;;;;;EAaf,WAAW;;;;;;UAOI,wBAAwB;;;;;;;;;;;;;;;;EAgBvC,UAAU;;;;;;;;;;;;;;;iBAgBI,MACd,cAAc,cACd,cAAc,cACd,iBAAiB,iBACjB,UAAU,iBACT;;;;;;;;;;;;;;;;;;;;;;iBA0Ca,SACd,MAAM,cACN,UAAU,iBACV,UAAU,kBACT;;UA0Ec;;;;;;;;EAQf,SAAS;;EAET;;;;;;EAMA,OAAO;;;;;;;;;;;;;;;;;iBAkBO,cACd,MAAM,cACN,oBAAoB,mBACpB,UAAU,kBACT"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ar as XAPIContext, Ir as XAPIStatement, Or as XAPIActor, Pr as XAPIResult, mr as ScoringResult } from "./ai-Cu17iVHa.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* The set of xAPI verbs emitted by SDK activities, keyed by a stable
|
|
4
4
|
* identifier mapped to its canonical xAPI verb IRI (xAPI 1.0.3 / ADL registry).
|
|
@@ -144,4 +144,4 @@ declare function xapiDefinitionFor(data: {
|
|
|
144
144
|
*/
|
|
145
145
|
declare function validateXAPIStatement(statement: XAPIStatement): void;
|
|
146
146
|
export { XAPIObjectParams as a, xapiDefinitionFor as c, XAPI_VERB_DISPLAY as d, SubmittedStatementParams as i, XAPIVerb as l, AnsweredStatementParams as n, XAPIStatementParams as o, CompletedStatementParams as r, xAPIBuilder as s, validateXAPIStatement as t, XAPIVerbKey as u };
|
|
147
|
-
//# sourceMappingURL=index-
|
|
147
|
+
//# sourceMappingURL=index-DYnacygI.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-DYnacygI.d.cts","names":[],"sources":["../src/xapi/verbs.ts","../src/xapi/builder.ts","../src/xapi/validators.ts"],"mappings":";;;;;cAIa;;;;;;;;;;;;;;;;;;;;;;;;;;KA2BD,2BAA2B;;;;;cAM1B,mBAAmB,OAAO,aAAa;;UCxBnC;;EAEf;EACA,OAAO;EACP,cAAc;;EAEd;;EAEA;;EAEA;;EAEA,UAAU;IAAQ;IAAY,cAAc;;;;UAI7B;EACf,OAAO;EACP,MAAM;EACN,QAAQ;EACR,SAAS;EACT,UAAU;;;UAIK;EACf,OAAO;EACP,QAAQ;EACR,eAAe;EACf;;EAEA;EACA,UAAU;EACV,mBAAmB;;;;;;;UAQJ;EACf,OAAO;EACP,QAAQ;EACR;;EAEA;EACA,UAAU;EACV,mBAAmB;;;UAIJ;EACf,OAAO;EACP,QAAQ;EACR,gBAAgB;EAChB;EACA,UAAU;EACV,mBAAmB;;;;;;;cAiGR;EACY,eAAA,QAAA,sBAAsB;EAoBd,uBAAA,QAAA,0BAA0B;;;;;;;EAqBzB,wBAAA,QAAA,2BAA2B;EAc3B,wBAAA,QAAA,2BAA2B;;;;;;;;;;;;;;;;iBA8B7C,kBAAkB;EAAQ;IAAiB,QAAQ;;;;;;;;;;;;;;iBClHnD,sBAAsB,WAAW"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dn as ActivityDataMap, Et as ItemGroup, Sr as ValidationResult, jn as ActivityType, kn as ActivityMedia, rr as MultipleChoiceOptionMedia } from "./ai-Cu17iVHa.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* The learner-safe SHAPE of each built-in type.
|
|
4
4
|
*
|
|
@@ -362,4 +362,4 @@ declare function validateOptionMedia(value: unknown): ValidationResult<MultipleC
|
|
|
362
362
|
*/
|
|
363
363
|
declare function validateActivity<T extends ActivityType>(type: T, data: unknown): ValidationResult<ActivityDataMap[T]>;
|
|
364
364
|
export { RedactedStimulus as A, RedactedGapSelectChoice as C, RedactedMultipleChoiceOption as D, RedactedMultipleChoiceData as E, RedactedMultipleChoiceOptionMedia as O, RedactedGapSelectBank as S, RedactedGapSelectGap as T, RedactedActivity as _, JsonSchemaTarget as a, RedactedDictationSlowMedia as b, fillInTheBlanksJsonSchema as c, jsonSchemaFor as d, multipleChoiceJsonSchema as f, validateItemGroup as g, writtenResponseJsonSchema as h, SCRIPT_MAX_TURNS as i, RedactedWrittenResponseData as j, RedactedReadAloudData as k, gapSelectJsonSchema as l, stimulusJsonSchema as m, validateMedia as n, contentJsonSchema as o, readAloudJsonSchema as p, validateOptionMedia as r, dictationJsonSchema as s, validateActivity as t, itemGroupJsonSchema as u, RedactedBlankConfig as v, RedactedGapSelectData as w, RedactedFillInTheBlanksData as x, RedactedDictationData as y };
|
|
365
|
-
//# sourceMappingURL=index-
|
|
365
|
+
//# sourceMappingURL=index-DjZ1vIVg.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-DjZ1vIVg.d.cts","names":[],"sources":["../src/types/redacted.ts","../src/schemas/item-group.ts","../src/schemas/json-schema.ts","../src/schemas/media.ts","../src/schemas/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;UAoBU;EACR;EACA;EACA;EACA;EACA;;;UAIQ;EACR;EACA;EACA;EACA;EACA;;;UAIQ;EACR;EACA;EACA;EACA;EACA,SAAS;EACT;EACA,WAAW;;;UAIH;EACR;EACA;;;UAIQ;EACR;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA;EACA,KAAK;;;UAIU;EACf;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA,QAAQ;;;UAIO,mCAAmC;EAClD;EACA;EACA;EACA;EACA;EACA,SAAS;EACT;EACA;;;UAIe;EACf;EACA;;;UAIe,oCAAoC;E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