@intellectif/lk-core 1.4.0 → 1.5.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 +45 -0
- package/README.md +2 -0
- package/dist/{ai-CnmLPMzd.d.cts → ai-BYryFkF9.d.cts} +199 -5
- package/dist/ai-BYryFkF9.d.cts.map +1 -0
- package/dist/{ai-CnmLPMzd.d.ts → ai-BYryFkF9.d.ts} +199 -5
- package/dist/ai-BYryFkF9.d.ts.map +1 -0
- package/dist/ai-check.cjs +175 -17
- package/dist/ai-check.cjs.map +1 -1
- package/dist/ai-check.d.cts +13 -5
- package/dist/ai-check.d.cts.map +1 -1
- package/dist/ai-check.d.ts +13 -5
- package/dist/ai-check.d.ts.map +1 -1
- package/dist/ai-check.js +175 -17
- package/dist/ai-check.js.map +1 -1
- package/dist/{ai-writing-G6tnCGzw.cjs → ai-writing-Cen7-3qs.cjs} +412 -61
- package/dist/ai-writing-Cen7-3qs.cjs.map +1 -0
- package/dist/{ai-writing-CPpH9Qxq.js → ai-writing-D8PdhJJz.js} +395 -62
- package/dist/ai-writing-D8PdhJJz.js.map +1 -0
- package/dist/{index-BAfEHCnD.d.cts → index-Bg0aeWtM.d.cts} +327 -3
- package/dist/index-Bg0aeWtM.d.cts.map +1 -0
- package/dist/{index-2nigSf4N.d.cts → index-CxpiWedW.d.ts} +6 -2
- package/dist/index-CxpiWedW.d.ts.map +1 -0
- package/dist/{index-BqMXWuNC.d.cts → index-D7R3Ll8R.d.cts} +2 -2
- package/dist/{index-BqMXWuNC.d.cts.map → index-D7R3Ll8R.d.cts.map} +1 -1
- package/dist/{index-CVWvymVb.d.ts → index-DUaW1Tj5.d.ts} +327 -3
- package/dist/index-DUaW1Tj5.d.ts.map +1 -0
- package/dist/{index-B54baFUA.d.ts → index-qMbxed1B.d.cts} +6 -2
- package/dist/index-qMbxed1B.d.cts.map +1 -0
- package/dist/{index-CcHDTxIZ.d.ts → index-wMc1E_aM.d.ts} +2 -2
- package/dist/{index-CcHDTxIZ.d.ts.map → index-wMc1E_aM.d.ts.map} +1 -1
- package/dist/index.cjs +31 -130
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +85 -95
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +85 -95
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -117
- package/dist/index.js.map +1 -1
- package/dist/{item-group-DroFXgLb.cjs → item-group-DEB7nLID.cjs} +2 -2
- package/dist/{item-group-DroFXgLb.cjs.map → item-group-DEB7nLID.cjs.map} +1 -1
- package/dist/{item-group-DXiR8nOr.js → item-group-DdSUCUjM.js} +2 -2
- package/dist/{item-group-DXiR8nOr.js.map → item-group-DdSUCUjM.js.map} +1 -1
- package/dist/{registry-DVi0LR_i.cjs → registry-Ce00A_OW.cjs} +184 -4
- package/dist/registry-Ce00A_OW.cjs.map +1 -0
- package/dist/{registry-Dsx9mNsS.js → registry-DaZRpqjW.js} +155 -5
- package/dist/registry-DaZRpqjW.js.map +1 -0
- package/dist/{schemas-Bdw0nGPo.js → schemas-BioKFf3F.js} +3 -3
- package/dist/{schemas-Bdw0nGPo.js.map → schemas-BioKFf3F.js.map} +1 -1
- package/dist/{schemas-DVbAOrtd.cjs → schemas-DksueYsu.cjs} +3 -3
- package/dist/{schemas-DVbAOrtd.cjs.map → schemas-DksueYsu.cjs.map} +1 -1
- package/dist/schemas.cjs +2 -2
- package/dist/schemas.d.cts +1 -1
- package/dist/schemas.d.ts +1 -1
- package/dist/schemas.js +2 -2
- package/dist/{scoring-BZqUkuDF.js → scoring-BKNNTz-s.js} +657 -3
- package/dist/scoring-BKNNTz-s.js.map +1 -0
- package/dist/{scoring-B2_HEhMT.cjs → scoring-lKQVYsxy.cjs} +722 -2
- package/dist/scoring-lKQVYsxy.cjs.map +1 -0
- package/dist/scoring.cjs +8 -2
- package/dist/scoring.d.cts +3 -3
- package/dist/scoring.d.ts +3 -3
- package/dist/scoring.js +3 -3
- package/dist/{xapi-DNzkSJ0S.cjs → xapi-NYrTlpID.cjs} +2 -2
- package/dist/{xapi-DNzkSJ0S.cjs.map → xapi-NYrTlpID.cjs.map} +1 -1
- package/dist/{xapi-CMTph7wG.js → xapi-wR6gu4qS.js} +2 -2
- package/dist/{xapi-CMTph7wG.js.map → xapi-wR6gu4qS.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 -2
- package/package.json +2 -2
- package/vectors/README.md +24 -1
- package/vectors/scoring.json +18182 -1
- package/dist/ai-CnmLPMzd.d.cts.map +0 -1
- package/dist/ai-CnmLPMzd.d.ts.map +0 -1
- package/dist/ai-writing-CPpH9Qxq.js.map +0 -1
- package/dist/ai-writing-G6tnCGzw.cjs.map +0 -1
- package/dist/index-2nigSf4N.d.cts.map +0 -1
- package/dist/index-B54baFUA.d.ts.map +0 -1
- package/dist/index-BAfEHCnD.d.cts.map +0 -1
- package/dist/index-CVWvymVb.d.ts.map +0 -1
- package/dist/registry-DVi0LR_i.cjs.map +0 -1
- package/dist/registry-Dsx9mNsS.js.map +0 -1
- package/dist/scoring-B2_HEhMT.cjs.map +0 -1
- package/dist/scoring-BZqUkuDF.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { $ as
|
|
3
|
-
import { C as RedactedMultipleChoiceData, D as RedactedStimulus, E as RedactedReadAloudData, O as RedactedWrittenResponseData, S as RedactedGapSelectGap, T as RedactedMultipleChoiceOptionMedia, _ as RedactedDictationSlowMedia, a as fillInTheBlanksJsonSchema, b as RedactedGapSelectChoice, c as jsonSchemaFor, d as stimulusJsonSchema, f as writtenResponseJsonSchema, g as RedactedDictationData, h as RedactedBlankConfig, i as dictationJsonSchema, l as multipleChoiceJsonSchema, m as RedactedActivity, n as validateMedia, o as gapSelectJsonSchema, p as validateItemGroup, r as validateOptionMedia, s as itemGroupJsonSchema, t as validateActivity, u as readAloudJsonSchema, v as RedactedFillInTheBlanksData, w as RedactedMultipleChoiceOption, x as RedactedGapSelectData, y as RedactedGapSelectBank } from "./index-
|
|
4
|
-
import { a as XAPIObjectParams, c as xapiDefinitionFor, d as XAPI_VERB_DISPLAY, i as SubmittedStatementParams, l as XAPIVerb, n as AnsweredStatementParams, o as XAPIStatementParams, r as CompletedStatementParams, s as xAPIBuilder, t as validateXAPIStatement, u as XAPIVerbKey } from "./index-
|
|
1
|
+
import { $ as AiVerdict, $t as MultipleChoiceData, A as AiGapSelectFacts, An as XAPIVerbObject, At as ActivityType, B as AiHintRequest, Bn as InlineCorrection, Bt as FillInTheBlanksLearnerResponse, C as AiDraftsCall, Cn as XAPIContext, Ct as ItemFinding, D as AiFeature, Dn as XAPIResult, Dt as ActivityFeedback, E as AiExplanationRequest, En as XAPIObject, Et as ActivityDataMap, F as AiGradingFacts, Fn as Grader, Ft as DictationEquivalence, G as AiProvenance, Gt as GapSelectLearnerResponse, H as AiMaterialFacts, Hn as TextMatchResult, Ht as GapSelectChoice, I as AiGradingJudgement, In as GraderConfiguration, It as DictationLearnerResponse, J as AiRefusal, Jt as ItemOutcome, K as AiReadingFacts, Kt as InteractionEvent, L as AiGradingRequest, Ln as GraderKind, Lt as DictationSlowMedia, M as AiGrade, Mn as GradeRecord, Mt as DeferredReason, N as AiGradedCriterion, Nn as GradeRouting, Nt as DeferredScoringPartial, O as AiFillInTheBlanksFacts, On as XAPIScore, Ot as ActivityMedia, P as AiGradingCriterionFact, Pn as GradeRoutingReason, Pt as DictationData, Q as AiTextResult, Qt as MediaTrack, R as AiGradingRequestProblem, Rn as GraderUsage, Rt as DictationTolerance, S as AiDrafts, Sn as XAPIConfig, St as DraftValidationResult, T as AiDraftsRun, Tn as XAPIError, Tt as ActivityData, U as AiMultipleChoiceFacts, Un as levenshteinDistance, Ut as GapSelectData, V as AiItemFacts, Vn as TextMatchPolicy, Vt as GapSelectBank, W as AiOptionFact, Wn as matchText, Wt as GapSelectGap, X as AiSoundFact, Xt as LearnerResponseMap, Y as AiRubricCriterionFact, Yt as LearnerResponse, Z as AiSupportedActivityType, Zt as MediaPlaybackPolicy, _ as AiDraftCaption, _n as WrittenResponseLearnerResponse, _t as DraftComplete, a as AiCoachingRequest, an as ReadAloudDimension, at as AiWritingFeedbackRequest, b as AiDraftSource, bn as WrittenResponseRubricLevel, bt as DraftNotComplete, c as AiCriterionJudgement, cn as ReadAloudSlowMedia, ct as MediaProgress, d as AiCritiqueFinding, dn as ScoringDetail, dt as SequenceSlot, en as MultipleChoiceLearnerResponse, et as AiVideoDraft, f as AiCritiqueFindingResult, fn as ScoringOutcome, ft as SequenceSlotGroup, g as AiDictationFacts, gn as WrittenResponseData, gt as TimelineCue, h as AiCritiqueResult, hn as ValidationResult, ht as TimelineChapter, i as AiCoaching, in as ReadAloudData, it as AiWritingFeedback, j as AiGeneratedDraft, jn as CriterionScore, jt as BlankConfig, k as AiGapFact, kn as XAPIStatement, kt as ActivityResult, l as AiCritique, ln as RecordingBounds, lt as MediaTimeline, m as AiCritiqueRequest, mn as ValidationError, mt as StimulusKind, n as AiActivityInput, nn as MultipleChoiceOptionMedia, nt as AiWritingCorrection, o as AiCoachingResult, on as ReadAloudDimensionWeight, ot as AiWritingFeedbackResult, p as AiCritiqueKind, pn as ScoringResult, pt as Stimulus, q as AiReadingWordFact, qt as InteractionKind, r as AiBlankFact, rn as NativeControlHint, rt as AiWritingFacts, s as AiCoachingWord, sn as ReadAloudLearnerResponse, st as ItemGroup, t as ActivityAiPermissions, tn as MultipleChoiceOption, tt as AiWordFact, u as AiCritiqueField, un as RecordingRef, ut as SequenceEntry, v as AiDraftProblem, vn as WrittenResponseRubric, vt as DraftContext, w as AiDraftsRequest, wn as XAPIContextActivities, wt as ItemFindingSeverity, x as AiDraftType, xn as XAPIActor, xt as DraftSeverity, y as AiDraftSettings, yn as WrittenResponseRubricCriterion, yt as DraftIssue, z as AiGroupInput, zn as GradingState, zt as FillInTheBlanksData } from "./ai-BYryFkF9.cjs";
|
|
2
|
+
import { $ as hasGrade, A as diffDictationChars, At as Band, B as outcomeFromRoutedGrade, C as validateItemScoringPolicy, Ct as SpeechSyllable, D as DICTATION_MAX_TEXT_LENGTH, Dt as SpeechWordError, E as DICTATION_MAX_EQUIVALENCE_LENGTH, Et as SpeechWord, F as dictationReferenceWords, Ft as roundGrade, G as CalibrationReport, H as GradeFromJudgementOptions, I as CalibrationThresholds, J as TotalCalibration, K as CalibrationScope, L as GradeRoutingContext, M as DictationReference, Mt as RoundingPolicy, N as DictationWordAlignment, Nt as classifyBand, O as DICTATION_MAX_TRANSCRIPT_LENGTH, Ot as WavInspection, P as alignDictation, Pt as gte, Q as gradeFromRubric, R as GradeRoutingPolicy, S as scoreTries, St as SpeechPlausibilityPolicy, T as DICTATION_MAX_EQUIVALENCES, Tt as SpeechUnscorableCode, U as gradeFromJudgement, V as routeGrade, W as CalibrationPair, X as graderConfiguration, Y as calibrationReport, Z as GradeFromRubricOptions, _ as DEFAULT_PASS_THRESHOLD, _t as ReadAloudWordState, a as evaluateTries, at as ItemTry, b as ITEM_SCORING_MAX_RETRIES, bt as SpeechPhoneme, c as inspectWav, ct as AssessmentScore, d as READ_ALOUD_MAX_SECONDS, dt as PassFailureReason, et as outcomeFromGrade, f as READ_ALOUD_MAX_TAKES, ft as ScoredItem, g as alignReadAloud, gt as ReadAloudWordAlignment, h as validateSpeechAssessment, ht as GradeReadAloudOptions, i as evaluate, it as ItemTriesScore, j as DictationAlignment, jt as RoundingMode, k as DictationCharOp, kt as WavInspectionPolicy, l as READ_ALOUD_MAX_DIMENSION_WEIGHT, lt as AssessmentSectionInput, m as gradeReadAloud, mt as composeAssessmentScore, n as ItemTriesOutcome, nt as ItemScoringPolicy, o as score, ot as ItemTryScore, p as SPEECH_ASSESSMENT_MAX_WORDS, pt as SectionScore, q as CriterionCalibration, r as ScoringOptions, rt as ItemScoringPolicyIssue, s as outcomeFromUnscorable, st as ResolvedItemScoringPolicy, t as EvaluateOptions, tt as ItemScoringCount, u as READ_ALOUD_MAX_REFERENCE_LENGTH, ut as CompositionPolicy, v as computePassThreshold, vt as SpeechAssessment, w as DICTATION_MAX_ACCEPTED_TRANSCRIPTS, wt as SpeechUnscorable, x as resolveItemScoringPolicy, xt as SpeechPhonemeCandidate, y as DEFAULT_ITEM_SCORING_POLICY, yt as SpeechMeasurement, z as inAuditSample } from "./index-Bg0aeWtM.cjs";
|
|
3
|
+
import { C as RedactedMultipleChoiceData, D as RedactedStimulus, E as RedactedReadAloudData, O as RedactedWrittenResponseData, S as RedactedGapSelectGap, T as RedactedMultipleChoiceOptionMedia, _ as RedactedDictationSlowMedia, a as fillInTheBlanksJsonSchema, b as RedactedGapSelectChoice, c as jsonSchemaFor, d as stimulusJsonSchema, f as writtenResponseJsonSchema, g as RedactedDictationData, h as RedactedBlankConfig, i as dictationJsonSchema, l as multipleChoiceJsonSchema, m as RedactedActivity, n as validateMedia, o as gapSelectJsonSchema, p as validateItemGroup, r as validateOptionMedia, s as itemGroupJsonSchema, t as validateActivity, u as readAloudJsonSchema, v as RedactedFillInTheBlanksData, w as RedactedMultipleChoiceOption, x as RedactedGapSelectData, y as RedactedGapSelectBank } from "./index-qMbxed1B.cjs";
|
|
4
|
+
import { a as XAPIObjectParams, c as xapiDefinitionFor, d as XAPI_VERB_DISPLAY, i as SubmittedStatementParams, l as XAPIVerb, n as AnsweredStatementParams, o as XAPIStatementParams, r as CompletedStatementParams, s as xAPIBuilder, t as validateXAPIStatement, u as XAPIVerbKey } from "./index-D7R3Ll8R.cjs";
|
|
5
5
|
//#region src/ai-material.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* What a model is told about the group a question sits in: the material the
|
|
@@ -401,11 +401,90 @@ export declare function interactiveVideoFromDrafts(input: {
|
|
|
401
401
|
newId: () => string;
|
|
402
402
|
}): AiVideoDraft;
|
|
403
403
|
//#endregion
|
|
404
|
-
//#region src/ai-
|
|
404
|
+
//#region src/ai-grading.d.ts
|
|
405
|
+
/**
|
|
406
|
+
* How far a model's level probabilities may sum from 1 and still be a
|
|
407
|
+
* distribution: rounding in a model's output, not a different judgement.
|
|
408
|
+
*/
|
|
409
|
+
export declare const AI_GRADING_PROBABILITY_TOLERANCE = 0.000001;
|
|
410
|
+
/**
|
|
411
|
+
* The request for a model's grade of a submitted written response, or why there
|
|
412
|
+
* is none to make.
|
|
413
|
+
*
|
|
414
|
+
* Grading happens on the server, from the whole item: the rubric is what a
|
|
415
|
+
* model is held to, so an item without one — or one whose criteria are not each
|
|
416
|
+
* a name and a weight — gives no request, nor does a `redact()` projection or
|
|
417
|
+
* an empty response. A criterion's `levels`, when there are any, must be ones
|
|
418
|
+
* the grading functions can read; levels they cannot read give no request
|
|
419
|
+
* rather than a grade on a scale the author did not mean. `group` is the item
|
|
420
|
+
* group the task sits in: its material goes with the request as `material`, as
|
|
421
|
+
* on feedback on writing.
|
|
422
|
+
*
|
|
423
|
+
* The author's AI switch (`ai.explanations`) is not read: grading is the
|
|
424
|
+
* deployment's decision, made on the server, not help a learner asks for.
|
|
425
|
+
*/
|
|
426
|
+
export declare function aiGradingRequest(input: {
|
|
427
|
+
data: AiActivityInput;
|
|
428
|
+
response: LearnerResponse | null;
|
|
429
|
+
group?: AiGroupInput;
|
|
430
|
+
learnerLocale?: string;
|
|
431
|
+
}): {
|
|
432
|
+
ok: true;
|
|
433
|
+
request: AiGradingRequest;
|
|
434
|
+
} | {
|
|
435
|
+
ok: false;
|
|
436
|
+
problem: AiGradingRequestProblem;
|
|
437
|
+
path?: (string | number)[];
|
|
438
|
+
};
|
|
439
|
+
type Refused = {
|
|
440
|
+
ok: false;
|
|
441
|
+
refusal: AiRefusal;
|
|
442
|
+
};
|
|
443
|
+
/**
|
|
444
|
+
* Checks a grade a port returned for `request`. Whole or nothing, as every AI
|
|
445
|
+
* text is: a reply the SDK doubts in any part is refused, and is no grade —
|
|
446
|
+
* re-ask the model or send the response to a person; never record a 0.
|
|
447
|
+
*
|
|
448
|
+
* - **Every criterion of the rubric, once** (`misses-criteria`). Names match as
|
|
449
|
+
* written, or folded when the folded name is one criterion's alone. Leaving
|
|
450
|
+
* one out, inventing or renaming one, judging one twice or calling one not
|
|
451
|
+
* applicable refuses the reply: a total renormalised over fewer criteria
|
|
452
|
+
* is a grade of a different task.
|
|
453
|
+
* - **On each criterion's own scale** (`out-of-scale`). With levels: a `level`
|
|
454
|
+
* the criterion has, as labelled (case and spacing aside), and any
|
|
455
|
+
* `probabilities` a distribution over its levels, lowest first, whose
|
|
456
|
+
* likeliest is the level chosen. Without levels: a `score` from 0 to its
|
|
457
|
+
* `maxScore`, 1 by default.
|
|
458
|
+
* - **Every correction quotes the response** (`misquotes-answer`), anchored as
|
|
459
|
+
* feedback on writing anchors it.
|
|
460
|
+
* - **Text fields** — a criterion's `comment` (at most
|
|
461
|
+
* `AI_WRITING_MAX_FIELD_LENGTH` code points), `feedback` and `rationale`
|
|
462
|
+
* (at most `AI_TEXT_MAX_LENGTH`) — are plain text, cleaned; longer is
|
|
463
|
+
* `too-long`. `requiresHumanReview` is a boolean.
|
|
464
|
+
*
|
|
465
|
+
* The total is not computed here: `gradeFromJudgement` computes it, as
|
|
466
|
+
* `gradeFromRubric` computes every grade in the SDK.
|
|
467
|
+
*/
|
|
468
|
+
export declare function checkAiGrading(raw: unknown, request: AiGradingRequest): {
|
|
469
|
+
ok: true;
|
|
470
|
+
judgement: AiGradingJudgement;
|
|
471
|
+
} | Refused;
|
|
472
|
+
//#endregion
|
|
473
|
+
//#region src/ai-written.d.ts
|
|
474
|
+
/**
|
|
475
|
+
* What the AI features about a written response share: reading a model's text
|
|
476
|
+
* fields, and finding each correction's quote in the learner's text.
|
|
477
|
+
*
|
|
478
|
+
* Internal. `ai-writing.ts` (feedback on a draft) and `ai-grading.ts` (a
|
|
479
|
+
* grade) are their public faces, and hold every correction to the same
|
|
480
|
+
* anchoring.
|
|
481
|
+
*/
|
|
405
482
|
/** The most corrections one piece of writing feedback may carry. More is refused, not cut. */
|
|
406
483
|
export declare const AI_WRITING_MAX_CORRECTIONS = 20;
|
|
407
484
|
/** The longest quote, correction, explanation or criterion comment, in code points. */
|
|
408
485
|
export declare const AI_WRITING_MAX_FIELD_LENGTH = 500;
|
|
486
|
+
//#endregion
|
|
487
|
+
//#region src/ai-writing.d.ts
|
|
409
488
|
/**
|
|
410
489
|
* The request for feedback on a draft, or `null` when there is none to give:
|
|
411
490
|
* not a written response, an author who switched explanations off (writing
|
|
@@ -1217,95 +1296,6 @@ export declare class DeferredScoringError extends Error {
|
|
|
1217
1296
|
constructor(activityType: string);
|
|
1218
1297
|
}
|
|
1219
1298
|
//#endregion
|
|
1220
|
-
//#region src/grading.d.ts
|
|
1221
|
-
/** Options for {@link gradeFromRubric}. */
|
|
1222
|
-
export interface GradeFromRubricOptions {
|
|
1223
|
-
/**
|
|
1224
|
-
* Scaled score [0,1] required to pass. Defaults to the activity's
|
|
1225
|
-
* `passThreshold`, or {@link DEFAULT_PASS_THRESHOLD} when absent.
|
|
1226
|
-
*/
|
|
1227
|
-
passThreshold?: number;
|
|
1228
|
-
/** Narrative feedback for the learner, carried onto the record verbatim. */
|
|
1229
|
-
feedback?: string | null;
|
|
1230
|
-
/**
|
|
1231
|
-
* Compare the pass line the way the score is displayed — both sides rounded,
|
|
1232
|
-
* via `gte` — whichever threshold applies: `passThreshold` above, the
|
|
1233
|
-
* activity's own, or the 0.7 default. The returned `score` stays unrounded.
|
|
1234
|
-
* Opt-in, as on `score()` and `evaluate()`: switching it on moves pass/fail
|
|
1235
|
-
* for totals in the rounding band.
|
|
1236
|
-
*
|
|
1237
|
-
* Checked before any criterion is read: `null` reads as no policy, and a
|
|
1238
|
-
* policy that cannot be applied — an unknown `mode`, or a `dp` that is not a
|
|
1239
|
-
* whole number from 0 to 15 — throws a `RangeError`, even for a rubric that
|
|
1240
|
-
* turns out to be unscorable.
|
|
1241
|
-
*/
|
|
1242
|
-
rounding?: RoundingPolicy;
|
|
1243
|
-
}
|
|
1244
|
-
/**
|
|
1245
|
-
* Computes the weighted total from per-criterion scores — the arithmetic that
|
|
1246
|
-
* must NOT be delegated to a language model.
|
|
1247
|
-
*
|
|
1248
|
-
* A grader is asked for judgement (how good is this criterion?), not for
|
|
1249
|
-
* mental arithmetic. Asking a model to also produce the weighted total makes
|
|
1250
|
-
* the final grade unverifiable and unreproducible: two runs can return
|
|
1251
|
-
* different totals for identical criterion scores. This function makes the
|
|
1252
|
-
* total a pure function of the judgements, so a grade can be recomputed and
|
|
1253
|
-
* audited years later.
|
|
1254
|
-
*
|
|
1255
|
-
* Weights are normalised by their sum, so they need not add to 1; each must be
|
|
1256
|
-
* zero or more, and their sum a positive, finite number, or the result is
|
|
1257
|
-
* `unscorable`. Criteria marked `notApplicable`, and those carrying no numeric
|
|
1258
|
-
* `score` (a purely banded judgement), are excluded from both numerator and
|
|
1259
|
-
* denominator, weight included. When nothing scoreable remains the result is
|
|
1260
|
-
* `unscorable`, never a zero.
|
|
1261
|
-
*
|
|
1262
|
-
* Scores need not be in [0,1]: set `maxScore` on a criterion to declare what
|
|
1263
|
-
* its score is out of, and each is normalised before weighting. A grader
|
|
1264
|
-
* working out of 100 says so and is done:
|
|
1265
|
-
*
|
|
1266
|
-
* ```ts
|
|
1267
|
-
* gradeFromRubric([
|
|
1268
|
-
* { name: 'Task achievement', score: 82, maxScore: 100, weight: 2 },
|
|
1269
|
-
* { name: 'Range', score: 7, maxScore: 9, weight: 1 },
|
|
1270
|
-
* ]);
|
|
1271
|
-
* ```
|
|
1272
|
-
*
|
|
1273
|
-
* The returned `GradeRecord.score` is always scaled [0,1] against
|
|
1274
|
-
* `maxScore: 1`, like every other score in the SDK.
|
|
1275
|
-
*/
|
|
1276
|
-
export declare function gradeFromRubric(criteria: readonly CriterionScore[], activityData?: ActivityData, options?: GradeFromRubricOptions): GradeRecord | {
|
|
1277
|
-
unscorable: true;
|
|
1278
|
-
reason: string;
|
|
1279
|
-
};
|
|
1280
|
-
/**
|
|
1281
|
-
* Lifts a {@link GradeRecord} into the `graded` arm of {@link ItemOutcome}, so
|
|
1282
|
-
* a grade that arrived asynchronously renders through the same path as a
|
|
1283
|
-
* synchronously scored item. The score/passed/feedback fields are mirrored
|
|
1284
|
-
* onto the outcome for uniform reads; `grade` carries the full record.
|
|
1285
|
-
*
|
|
1286
|
-
* A record whose numbers cannot be a grade is refused, as `evaluate` refuses a
|
|
1287
|
-
* non-finite score and {@link gradeFromRubric} one outside [0,1]. `maxScore`
|
|
1288
|
-
* must be a positive, finite number and `score` a finite number from 0 to it (a
|
|
1289
|
-
* hair above, one part in a billion, is float noise and passes as it is).
|
|
1290
|
-
* Anything else — NaN, 85 "out of 1", a score out of 0 — comes back as
|
|
1291
|
-
* `{ status: 'deferred', reason: 'grade_rejected', maxScore: 1, rejectedGrade }`
|
|
1292
|
-
* with the record kept verbatim. Not `graded`, or its `passed` would be read as
|
|
1293
|
-
* a verdict; not `unscorable`, which `composeAssessmentScore` drops from the
|
|
1294
|
-
* denominator while letting the attempt go final — so a failing grade on the
|
|
1295
|
-
* wrong scale would vanish and the rest would be recorded as a pass. Deferred
|
|
1296
|
-
* is what it is: the slot is still owed a real grade, so a composed attempt
|
|
1297
|
-
* stays `provisional` and names the slot in `rejectedSlotIds`.
|
|
1298
|
-
*/
|
|
1299
|
-
export declare function outcomeFromGrade(grade: GradeRecord): ItemOutcome;
|
|
1300
|
-
/**
|
|
1301
|
-
* True when an outcome carries a real grade — either the SDK scored it
|
|
1302
|
-
* synchronously or a grader returned one. Use this instead of testing
|
|
1303
|
-
* `status === 'scored'`, which silently misses asynchronously graded work.
|
|
1304
|
-
*/
|
|
1305
|
-
export declare function hasGrade(outcome: ItemOutcome): outcome is Extract<ItemOutcome, {
|
|
1306
|
-
status: 'scored' | 'graded';
|
|
1307
|
-
}>;
|
|
1308
|
-
//#endregion
|
|
1309
1299
|
//#region src/item-group.d.ts
|
|
1310
1300
|
/** Narrows a sequence entry to an item group. */
|
|
1311
1301
|
export declare function isItemGroup<TItem extends {
|
|
@@ -2116,5 +2106,5 @@ interface ThemeTokens {
|
|
|
2116
2106
|
'--lk-transition-base': string;
|
|
2117
2107
|
}
|
|
2118
2108
|
//#endregion
|
|
2119
|
-
export { type ActivityAiPermissions, type ActivityData, type ActivityDataMap, type ActivityFeedback, type ActivityMedia, type ActivityResult, type ActivityType, type ActivityTypeAuthoring, type ActivityTypeDescriptor, type ActivityTypeInterop, type ActivityTypeScoring, type AiActivityInput, type AiBlankFact, type AiCoaching, type AiCoachingRequest, type AiCoachingResult, type AiCoachingWord, type AiCriterionJudgement, type AiCritique, type AiCritiqueField, type AiCritiqueFinding, type AiCritiqueFindingResult, type AiCritiqueKind, type AiCritiqueRequest, type AiCritiqueResult, type AiDictationFacts, type AiDraftCaption, type AiDraftProblem, type AiDraftSettings, type AiDraftSource, type AiDraftType, type AiDrafts, type AiDraftsCall, type AiDraftsRequest, type AiDraftsRun, type AiExplanationRequest, type AiFeature, type AiFillInTheBlanksFacts, type AiGapFact, type AiGapSelectFacts, type AiGeneratedDraft, type AiGrade, type AiGroupInput, type AiHintRequest, type AiItemFacts, type AiMaterialFacts, type AiMultipleChoiceFacts, type AiOptionFact, type AiProvenance, type AiReadingFacts, type AiReadingWordFact, type AiRefusal, type AiRubricCriterionFact, type AiSoundFact, type AiSupportedActivityType, type AiTextResult, type AiVerdict, type AiVideoDraft, type AiWordFact, type AiWritingCorrection, type AiWritingFacts, type AiWritingFeedback, type AiWritingFeedbackRequest, type AiWritingFeedbackResult, type AnsweredStatementParams, type AssessmentScore, type AssessmentSectionInput, type AttemptPlan, type AttemptPlanDrift, type AttemptPlanSlot, type AttemptState, type Band, type BlankConfig, type BuiltInActivityType, type CompletedStatementParams, type CompositionPolicy, type CriterionScore, DEFAULT_ITEM_SCORING_POLICY, DEFAULT_PASS_THRESHOLD, DICTATION_MAX_ACCEPTED_TRANSCRIPTS, DICTATION_MAX_EQUIVALENCES, DICTATION_MAX_EQUIVALENCE_LENGTH, DICTATION_MAX_TEXT_LENGTH, DICTATION_MAX_TRANSCRIPT_LENGTH, type DeferredReason, type DeferredScoringPartial, type DeliveryPolicy, type DeliveryPolicyIssue, type DictationAlignment, type DictationCharOp, type DictationData, type DictationEquivalence, type DictationLearnerResponse, type DictationReference, type DictationSlowMedia, type DictationTolerance, type DictationWordAlignment, type DraftComplete, type DraftContext, type DraftIssue, type DraftNotComplete, type DraftSeverity, type DraftValidationResult, EvaluateOptions, type FieldPolicy, type FillInTheBlanksData, type FillInTheBlanksLearnerResponse, type GapSelectBank, type GapSelectChoice, type GapSelectData, type GapSelectGap, type GapSelectLearnerResponse, type GradeReadAloudOptions, type GradeRecord, type Grader, type GraderKind, type GraderUsage, type GradingState, ITEM_SCORING_MAX_RETRIES, type InlineCorrection, type InteractionEvent, type InteractionKind, type ItemFinding, type ItemFindingSeverity, type ItemGroup, type ItemOutcome, type ItemScoringCount, type ItemScoringPolicy, type ItemScoringPolicyIssue, ItemTriesOutcome, type ItemTriesScore, type ItemTry, type ItemTryScore, type LearnerResponse, type LearnerResponseMap, type MediaBudgetRef, type MediaPlayClaim, type MediaPlayGrant, type MediaPlayLedger, type MediaPlayLedgerEntry, type MediaPlaybackPolicy, type MediaProgress, type MediaTimeline, type MediaTrack, type MultipleChoiceData, type MultipleChoiceLearnerResponse, type MultipleChoiceOption, type MultipleChoiceOptionMedia, type NativeControlHint, type PartialScoringResult, type PassFailureReason, READ_ALOUD_MAX_DIMENSION_WEIGHT, READ_ALOUD_MAX_REFERENCE_LENGTH, READ_ALOUD_MAX_SECONDS, READ_ALOUD_MAX_TAKES, type ReadAloudData, type ReadAloudDimension, type ReadAloudDimensionWeight, type ReadAloudLearnerResponse, type ReadAloudSlowMedia, type ReadAloudWordAlignment, type ReadAloudWordState, type RecordingBounds, type RecordingRef, type RedactedActivity, type RedactedBlankConfig, type RedactedDictationData, type RedactedDictationSlowMedia, type RedactedFillInTheBlanksData, type RedactedGapSelectBank, type RedactedGapSelectChoice, type RedactedGapSelectData, type RedactedGapSelectGap, type RedactedMultipleChoiceData, type RedactedMultipleChoiceOption, type RedactedMultipleChoiceOptionMedia, type RedactedReadAloudData, type RedactedStimulus, type RedactedWrittenResponseData, type RegisteredActivityTypeDescriptor, type ResolvedDeliveryPolicy, type ResolvedItemScoringPolicy, type ResponseDiffEntry, type RoundingMode, type RoundingPolicy, SPEECH_ASSESSMENT_MAX_WORDS, type ScoredItem, type ScoringDetail, ScoringOptions, type ScoringOutcome, type ScoringResult, type SectionScore, type Sensitivity, type SequenceEntry, type SequenceSlot, type SequenceSlotGroup, type SpeechAssessment, type SpeechMeasurement, type SpeechPhoneme, type SpeechPhonemeCandidate, type SpeechPlausibilityPolicy, type SpeechSyllable, type SpeechUnscorable, type SpeechUnscorableCode, type SpeechWord, type SpeechWordError, type StandardSchemaV1, type Stimulus, type StimulusKind, type SubmittedStatementParams, type TextMatchPolicy, type TextMatchResult, type ThemeTokens, type TimelineChapter, type TimelineCue, type ValidationError, type ValidationResult, type WavInspection, type WavInspectionPolicy, type WrittenResponseData, type WrittenResponseLearnerResponse, type WrittenResponseRubric, type WrittenResponseRubricCriterion, type XAPIActor, type XAPIConfig, type XAPIContext, type XAPIContextActivities, type XAPIError, type XAPIInteractionType, type XAPIObject, type XAPIObjectParams, type XAPIResult, type XAPIScore, type XAPIStatement, type XAPIStatementParams, XAPIVerb, type XAPIVerbKey, type XAPIVerbObject, XAPI_VERB_DISPLAY, alignDictation, alignReadAloud, classifyBand, composeAssessmentScore, computePassThreshold, dictationJsonSchema, dictationReferenceWords, diffDictationChars, evaluate, evaluateTries, fillInTheBlanksJsonSchema, gapSelectJsonSchema, gradeReadAloud, gte, inspectWav, itemGroupJsonSchema, jsonSchemaFor, levenshteinDistance, matchText, multipleChoiceJsonSchema, outcomeFromUnscorable, readAloudJsonSchema, resolveItemScoringPolicy, roundGrade, score, scoreTries, stimulusJsonSchema, validateActivity, validateItemGroup, validateItemScoringPolicy, validateMedia, validateOptionMedia, validateSpeechAssessment, validateXAPIStatement, writtenResponseJsonSchema, xAPIBuilder, xapiDefinitionFor };
|
|
2109
|
+
export { type ActivityAiPermissions, type ActivityData, type ActivityDataMap, type ActivityFeedback, type ActivityMedia, type ActivityResult, type ActivityType, type ActivityTypeAuthoring, type ActivityTypeDescriptor, type ActivityTypeInterop, type ActivityTypeScoring, type AiActivityInput, type AiBlankFact, type AiCoaching, type AiCoachingRequest, type AiCoachingResult, type AiCoachingWord, type AiCriterionJudgement, type AiCritique, type AiCritiqueField, type AiCritiqueFinding, type AiCritiqueFindingResult, type AiCritiqueKind, type AiCritiqueRequest, type AiCritiqueResult, type AiDictationFacts, type AiDraftCaption, type AiDraftProblem, type AiDraftSettings, type AiDraftSource, type AiDraftType, type AiDrafts, type AiDraftsCall, type AiDraftsRequest, type AiDraftsRun, type AiExplanationRequest, type AiFeature, type AiFillInTheBlanksFacts, type AiGapFact, type AiGapSelectFacts, type AiGeneratedDraft, type AiGrade, type AiGradedCriterion, type AiGradingCriterionFact, type AiGradingFacts, type AiGradingJudgement, type AiGradingRequest, type AiGradingRequestProblem, type AiGroupInput, type AiHintRequest, type AiItemFacts, type AiMaterialFacts, type AiMultipleChoiceFacts, type AiOptionFact, type AiProvenance, type AiReadingFacts, type AiReadingWordFact, type AiRefusal, type AiRubricCriterionFact, type AiSoundFact, type AiSupportedActivityType, type AiTextResult, type AiVerdict, type AiVideoDraft, type AiWordFact, type AiWritingCorrection, type AiWritingFacts, type AiWritingFeedback, type AiWritingFeedbackRequest, type AiWritingFeedbackResult, type AnsweredStatementParams, type AssessmentScore, type AssessmentSectionInput, type AttemptPlan, type AttemptPlanDrift, type AttemptPlanSlot, type AttemptState, type Band, type BlankConfig, type BuiltInActivityType, type CalibrationPair, type CalibrationReport, type CalibrationScope, type CalibrationThresholds, type CompletedStatementParams, type CompositionPolicy, type CriterionCalibration, type CriterionScore, DEFAULT_ITEM_SCORING_POLICY, DEFAULT_PASS_THRESHOLD, DICTATION_MAX_ACCEPTED_TRANSCRIPTS, DICTATION_MAX_EQUIVALENCES, DICTATION_MAX_EQUIVALENCE_LENGTH, DICTATION_MAX_TEXT_LENGTH, DICTATION_MAX_TRANSCRIPT_LENGTH, type DeferredReason, type DeferredScoringPartial, type DeliveryPolicy, type DeliveryPolicyIssue, type DictationAlignment, type DictationCharOp, type DictationData, type DictationEquivalence, type DictationLearnerResponse, type DictationReference, type DictationSlowMedia, type DictationTolerance, type DictationWordAlignment, type DraftComplete, type DraftContext, type DraftIssue, type DraftNotComplete, type DraftSeverity, type DraftValidationResult, EvaluateOptions, type FieldPolicy, type FillInTheBlanksData, type FillInTheBlanksLearnerResponse, type GapSelectBank, type GapSelectChoice, type GapSelectData, type GapSelectGap, type GapSelectLearnerResponse, type GradeFromJudgementOptions, GradeFromRubricOptions, type GradeReadAloudOptions, type GradeRecord, type GradeRouting, type GradeRoutingContext, type GradeRoutingPolicy, type GradeRoutingReason, type Grader, type GraderConfiguration, type GraderKind, type GraderUsage, type GradingState, ITEM_SCORING_MAX_RETRIES, type InlineCorrection, type InteractionEvent, type InteractionKind, type ItemFinding, type ItemFindingSeverity, type ItemGroup, type ItemOutcome, type ItemScoringCount, type ItemScoringPolicy, type ItemScoringPolicyIssue, ItemTriesOutcome, type ItemTriesScore, type ItemTry, type ItemTryScore, type LearnerResponse, type LearnerResponseMap, type MediaBudgetRef, type MediaPlayClaim, type MediaPlayGrant, type MediaPlayLedger, type MediaPlayLedgerEntry, type MediaPlaybackPolicy, type MediaProgress, type MediaTimeline, type MediaTrack, type MultipleChoiceData, type MultipleChoiceLearnerResponse, type MultipleChoiceOption, type MultipleChoiceOptionMedia, type NativeControlHint, type PartialScoringResult, type PassFailureReason, READ_ALOUD_MAX_DIMENSION_WEIGHT, READ_ALOUD_MAX_REFERENCE_LENGTH, READ_ALOUD_MAX_SECONDS, READ_ALOUD_MAX_TAKES, type ReadAloudData, type ReadAloudDimension, type ReadAloudDimensionWeight, type ReadAloudLearnerResponse, type ReadAloudSlowMedia, type ReadAloudWordAlignment, type ReadAloudWordState, type RecordingBounds, type RecordingRef, type RedactedActivity, type RedactedBlankConfig, type RedactedDictationData, type RedactedDictationSlowMedia, type RedactedFillInTheBlanksData, type RedactedGapSelectBank, type RedactedGapSelectChoice, type RedactedGapSelectData, type RedactedGapSelectGap, type RedactedMultipleChoiceData, type RedactedMultipleChoiceOption, type RedactedMultipleChoiceOptionMedia, type RedactedReadAloudData, type RedactedStimulus, type RedactedWrittenResponseData, type RegisteredActivityTypeDescriptor, type ResolvedDeliveryPolicy, type ResolvedItemScoringPolicy, type ResponseDiffEntry, type RoundingMode, type RoundingPolicy, SPEECH_ASSESSMENT_MAX_WORDS, type ScoredItem, type ScoringDetail, ScoringOptions, type ScoringOutcome, type ScoringResult, type SectionScore, type Sensitivity, type SequenceEntry, type SequenceSlot, type SequenceSlotGroup, type SpeechAssessment, type SpeechMeasurement, type SpeechPhoneme, type SpeechPhonemeCandidate, type SpeechPlausibilityPolicy, type SpeechSyllable, type SpeechUnscorable, type SpeechUnscorableCode, type SpeechWord, type SpeechWordError, type StandardSchemaV1, type Stimulus, type StimulusKind, type SubmittedStatementParams, type TextMatchPolicy, type TextMatchResult, type ThemeTokens, type TimelineChapter, type TimelineCue, type TotalCalibration, type ValidationError, type ValidationResult, type WavInspection, type WavInspectionPolicy, type WrittenResponseData, type WrittenResponseLearnerResponse, type WrittenResponseRubric, type WrittenResponseRubricCriterion, type WrittenResponseRubricLevel, type XAPIActor, type XAPIConfig, type XAPIContext, type XAPIContextActivities, type XAPIError, type XAPIInteractionType, type XAPIObject, type XAPIObjectParams, type XAPIResult, type XAPIScore, type XAPIStatement, type XAPIStatementParams, XAPIVerb, type XAPIVerbKey, type XAPIVerbObject, XAPI_VERB_DISPLAY, alignDictation, alignReadAloud, calibrationReport, classifyBand, composeAssessmentScore, computePassThreshold, dictationJsonSchema, dictationReferenceWords, diffDictationChars, evaluate, evaluateTries, fillInTheBlanksJsonSchema, gapSelectJsonSchema, gradeFromJudgement, gradeFromRubric, gradeReadAloud, graderConfiguration, gte, hasGrade, inAuditSample, inspectWav, itemGroupJsonSchema, jsonSchemaFor, levenshteinDistance, matchText, multipleChoiceJsonSchema, outcomeFromGrade, outcomeFromRoutedGrade, outcomeFromUnscorable, readAloudJsonSchema, resolveItemScoringPolicy, roundGrade, routeGrade, score, scoreTries, stimulusJsonSchema, validateActivity, validateItemGroup, validateItemScoringPolicy, validateMedia, validateOptionMedia, validateSpeechAssessment, validateXAPIStatement, writtenResponseJsonSchema, xAPIBuilder, xapiDefinitionFor };
|
|
2120
2110
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":["_$__registry_js0.ActivityTypeDescriptor"],"sources":["../src/ai-material.ts","../src/ai.ts","../src/ai-coaching.ts","../src/ai-critique.ts","../src/ai-drafts.ts","../src/ai-writing.ts","../src/types/delivery.ts","../src/types/attempt-plan.ts","../src/attempt-plan.ts","../src/types/attempt-state.ts","../src/attempt-state.ts","../src/authoring/item-group.ts","../src/authoring/index.ts","../src/built-in-types.ts","../src/content-hash.ts","../src/count-words.ts","../src/delivery.ts","../src/errors.ts","../src/
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":["_$__registry_js0.ActivityTypeDescriptor"],"sources":["../src/ai-material.ts","../src/ai.ts","../src/ai-coaching.ts","../src/ai-critique.ts","../src/ai-drafts.ts","../src/ai-grading.ts","../src/ai-written.ts","../src/ai-writing.ts","../src/types/delivery.ts","../src/types/attempt-plan.ts","../src/attempt-plan.ts","../src/types/attempt-state.ts","../src/attempt-state.ts","../src/authoring/item-group.ts","../src/authoring/index.ts","../src/built-in-types.ts","../src/content-hash.ts","../src/count-words.ts","../src/delivery.ts","../src/errors.ts","../src/item-group.ts","../src/types/media-budget.ts","../src/media-budget.ts","../src/standard-schema.ts","../src/registry/define.ts","../src/registry/registry.ts","../src/redact.ts","../src/registry/builtins.ts","../src/shuffle.ts","../src/timeline.ts","../src/timeline-limits.ts","../src/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;;;;;;;;;;;;;wBChfV,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAwCb;;iBAGK;;;;;;;EAOf,UAAU;;;;;;;;;;;wBA0BI,cAAc,GAC5B,gBAAgB,KAChB,cACA,SAAS;EAAyB,SAAS;IAC1C;;;;;;wBAMa,cAAc,GAC5B,gBAAgB,KAChB,cACA,UAAU,uBACT;;;;;;;;;;;;;;wBCrFa,kBAAkB,gBAAgB,oBAAoB;;;;;;;;;;;;;;;wBA4CtD,qBACd,kBACA,gBAAgB,cAChB,QAAQ,oBACP;;;;;;;;;;;;;;;;qBCtDU;;YASD,mCAAmC;;wBAG/B,2BAA2B,gBAAgB,QAAQ;;qBAKtD;;;;;;qBAOA;;qBAGA;;qBAGA;;;;;;;;UCvCI;EAEf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;;EAOA;;;;;;;;;;EAUA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EAGA;EACA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { $ as
|
|
3
|
-
import { C as RedactedMultipleChoiceData, D as RedactedStimulus, E as RedactedReadAloudData, O as RedactedWrittenResponseData, S as RedactedGapSelectGap, T as RedactedMultipleChoiceOptionMedia, _ as RedactedDictationSlowMedia, a as fillInTheBlanksJsonSchema, b as RedactedGapSelectChoice, c as jsonSchemaFor, d as stimulusJsonSchema, f as writtenResponseJsonSchema, g as RedactedDictationData, h as RedactedBlankConfig, i as dictationJsonSchema, l as multipleChoiceJsonSchema, m as RedactedActivity, n as validateMedia, o as gapSelectJsonSchema, p as validateItemGroup, r as validateOptionMedia, s as itemGroupJsonSchema, t as validateActivity, u as readAloudJsonSchema, v as RedactedFillInTheBlanksData, w as RedactedMultipleChoiceOption, x as RedactedGapSelectData, y as RedactedGapSelectBank } from "./index-
|
|
4
|
-
import { a as XAPIObjectParams, c as xapiDefinitionFor, d as XAPI_VERB_DISPLAY, i as SubmittedStatementParams, l as XAPIVerb, n as AnsweredStatementParams, o as XAPIStatementParams, r as CompletedStatementParams, s as xAPIBuilder, t as validateXAPIStatement, u as XAPIVerbKey } from "./index-
|
|
1
|
+
import { $ as AiVerdict, $t as MultipleChoiceData, A as AiGapSelectFacts, An as XAPIVerbObject, At as ActivityType, B as AiHintRequest, Bn as InlineCorrection, Bt as FillInTheBlanksLearnerResponse, C as AiDraftsCall, Cn as XAPIContext, Ct as ItemFinding, D as AiFeature, Dn as XAPIResult, Dt as ActivityFeedback, E as AiExplanationRequest, En as XAPIObject, Et as ActivityDataMap, F as AiGradingFacts, Fn as Grader, Ft as DictationEquivalence, G as AiProvenance, Gt as GapSelectLearnerResponse, H as AiMaterialFacts, Hn as TextMatchResult, Ht as GapSelectChoice, I as AiGradingJudgement, In as GraderConfiguration, It as DictationLearnerResponse, J as AiRefusal, Jt as ItemOutcome, K as AiReadingFacts, Kt as InteractionEvent, L as AiGradingRequest, Ln as GraderKind, Lt as DictationSlowMedia, M as AiGrade, Mn as GradeRecord, Mt as DeferredReason, N as AiGradedCriterion, Nn as GradeRouting, Nt as DeferredScoringPartial, O as AiFillInTheBlanksFacts, On as XAPIScore, Ot as ActivityMedia, P as AiGradingCriterionFact, Pn as GradeRoutingReason, Pt as DictationData, Q as AiTextResult, Qt as MediaTrack, R as AiGradingRequestProblem, Rn as GraderUsage, Rt as DictationTolerance, S as AiDrafts, Sn as XAPIConfig, St as DraftValidationResult, T as AiDraftsRun, Tn as XAPIError, Tt as ActivityData, U as AiMultipleChoiceFacts, Un as levenshteinDistance, Ut as GapSelectData, V as AiItemFacts, Vn as TextMatchPolicy, Vt as GapSelectBank, W as AiOptionFact, Wn as matchText, Wt as GapSelectGap, X as AiSoundFact, Xt as LearnerResponseMap, Y as AiRubricCriterionFact, Yt as LearnerResponse, Z as AiSupportedActivityType, Zt as MediaPlaybackPolicy, _ as AiDraftCaption, _n as WrittenResponseLearnerResponse, _t as DraftComplete, a as AiCoachingRequest, an as ReadAloudDimension, at as AiWritingFeedbackRequest, b as AiDraftSource, bn as WrittenResponseRubricLevel, bt as DraftNotComplete, c as AiCriterionJudgement, cn as ReadAloudSlowMedia, ct as MediaProgress, d as AiCritiqueFinding, dn as ScoringDetail, dt as SequenceSlot, en as MultipleChoiceLearnerResponse, et as AiVideoDraft, f as AiCritiqueFindingResult, fn as ScoringOutcome, ft as SequenceSlotGroup, g as AiDictationFacts, gn as WrittenResponseData, gt as TimelineCue, h as AiCritiqueResult, hn as ValidationResult, ht as TimelineChapter, i as AiCoaching, in as ReadAloudData, it as AiWritingFeedback, j as AiGeneratedDraft, jn as CriterionScore, jt as BlankConfig, k as AiGapFact, kn as XAPIStatement, kt as ActivityResult, l as AiCritique, ln as RecordingBounds, lt as MediaTimeline, m as AiCritiqueRequest, mn as ValidationError, mt as StimulusKind, n as AiActivityInput, nn as MultipleChoiceOptionMedia, nt as AiWritingCorrection, o as AiCoachingResult, on as ReadAloudDimensionWeight, ot as AiWritingFeedbackResult, p as AiCritiqueKind, pn as ScoringResult, pt as Stimulus, q as AiReadingWordFact, qt as InteractionKind, r as AiBlankFact, rn as NativeControlHint, rt as AiWritingFacts, s as AiCoachingWord, sn as ReadAloudLearnerResponse, st as ItemGroup, t as ActivityAiPermissions, tn as MultipleChoiceOption, tt as AiWordFact, u as AiCritiqueField, un as RecordingRef, ut as SequenceEntry, v as AiDraftProblem, vn as WrittenResponseRubric, vt as DraftContext, w as AiDraftsRequest, wn as XAPIContextActivities, wt as ItemFindingSeverity, x as AiDraftType, xn as XAPIActor, xt as DraftSeverity, y as AiDraftSettings, yn as WrittenResponseRubricCriterion, yt as DraftIssue, z as AiGroupInput, zn as GradingState, zt as FillInTheBlanksData } from "./ai-BYryFkF9.js";
|
|
2
|
+
import { $ as hasGrade, A as diffDictationChars, At as Band, B as outcomeFromRoutedGrade, C as validateItemScoringPolicy, Ct as SpeechSyllable, D as DICTATION_MAX_TEXT_LENGTH, Dt as SpeechWordError, E as DICTATION_MAX_EQUIVALENCE_LENGTH, Et as SpeechWord, F as dictationReferenceWords, Ft as roundGrade, G as CalibrationReport, H as GradeFromJudgementOptions, I as CalibrationThresholds, J as TotalCalibration, K as CalibrationScope, L as GradeRoutingContext, M as DictationReference, Mt as RoundingPolicy, N as DictationWordAlignment, Nt as classifyBand, O as DICTATION_MAX_TRANSCRIPT_LENGTH, Ot as WavInspection, P as alignDictation, Pt as gte, Q as gradeFromRubric, R as GradeRoutingPolicy, S as scoreTries, St as SpeechPlausibilityPolicy, T as DICTATION_MAX_EQUIVALENCES, Tt as SpeechUnscorableCode, U as gradeFromJudgement, V as routeGrade, W as CalibrationPair, X as graderConfiguration, Y as calibrationReport, Z as GradeFromRubricOptions, _ as DEFAULT_PASS_THRESHOLD, _t as ReadAloudWordState, a as evaluateTries, at as ItemTry, b as ITEM_SCORING_MAX_RETRIES, bt as SpeechPhoneme, c as inspectWav, ct as AssessmentScore, d as READ_ALOUD_MAX_SECONDS, dt as PassFailureReason, et as outcomeFromGrade, f as READ_ALOUD_MAX_TAKES, ft as ScoredItem, g as alignReadAloud, gt as ReadAloudWordAlignment, h as validateSpeechAssessment, ht as GradeReadAloudOptions, i as evaluate, it as ItemTriesScore, j as DictationAlignment, jt as RoundingMode, k as DictationCharOp, kt as WavInspectionPolicy, l as READ_ALOUD_MAX_DIMENSION_WEIGHT, lt as AssessmentSectionInput, m as gradeReadAloud, mt as composeAssessmentScore, n as ItemTriesOutcome, nt as ItemScoringPolicy, o as score, ot as ItemTryScore, p as SPEECH_ASSESSMENT_MAX_WORDS, pt as SectionScore, q as CriterionCalibration, r as ScoringOptions, rt as ItemScoringPolicyIssue, s as outcomeFromUnscorable, st as ResolvedItemScoringPolicy, t as EvaluateOptions, tt as ItemScoringCount, u as READ_ALOUD_MAX_REFERENCE_LENGTH, ut as CompositionPolicy, v as computePassThreshold, vt as SpeechAssessment, w as DICTATION_MAX_ACCEPTED_TRANSCRIPTS, wt as SpeechUnscorable, x as resolveItemScoringPolicy, xt as SpeechPhonemeCandidate, y as DEFAULT_ITEM_SCORING_POLICY, yt as SpeechMeasurement, z as inAuditSample } from "./index-DUaW1Tj5.js";
|
|
3
|
+
import { C as RedactedMultipleChoiceData, D as RedactedStimulus, E as RedactedReadAloudData, O as RedactedWrittenResponseData, S as RedactedGapSelectGap, T as RedactedMultipleChoiceOptionMedia, _ as RedactedDictationSlowMedia, a as fillInTheBlanksJsonSchema, b as RedactedGapSelectChoice, c as jsonSchemaFor, d as stimulusJsonSchema, f as writtenResponseJsonSchema, g as RedactedDictationData, h as RedactedBlankConfig, i as dictationJsonSchema, l as multipleChoiceJsonSchema, m as RedactedActivity, n as validateMedia, o as gapSelectJsonSchema, p as validateItemGroup, r as validateOptionMedia, s as itemGroupJsonSchema, t as validateActivity, u as readAloudJsonSchema, v as RedactedFillInTheBlanksData, w as RedactedMultipleChoiceOption, x as RedactedGapSelectData, y as RedactedGapSelectBank } from "./index-CxpiWedW.js";
|
|
4
|
+
import { a as XAPIObjectParams, c as xapiDefinitionFor, d as XAPI_VERB_DISPLAY, i as SubmittedStatementParams, l as XAPIVerb, n as AnsweredStatementParams, o as XAPIStatementParams, r as CompletedStatementParams, s as xAPIBuilder, t as validateXAPIStatement, u as XAPIVerbKey } from "./index-wMc1E_aM.js";
|
|
5
5
|
//#region src/ai-material.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* What a model is told about the group a question sits in: the material the
|
|
@@ -401,11 +401,90 @@ export declare function interactiveVideoFromDrafts(input: {
|
|
|
401
401
|
newId: () => string;
|
|
402
402
|
}): AiVideoDraft;
|
|
403
403
|
//#endregion
|
|
404
|
-
//#region src/ai-
|
|
404
|
+
//#region src/ai-grading.d.ts
|
|
405
|
+
/**
|
|
406
|
+
* How far a model's level probabilities may sum from 1 and still be a
|
|
407
|
+
* distribution: rounding in a model's output, not a different judgement.
|
|
408
|
+
*/
|
|
409
|
+
export declare const AI_GRADING_PROBABILITY_TOLERANCE = 0.000001;
|
|
410
|
+
/**
|
|
411
|
+
* The request for a model's grade of a submitted written response, or why there
|
|
412
|
+
* is none to make.
|
|
413
|
+
*
|
|
414
|
+
* Grading happens on the server, from the whole item: the rubric is what a
|
|
415
|
+
* model is held to, so an item without one — or one whose criteria are not each
|
|
416
|
+
* a name and a weight — gives no request, nor does a `redact()` projection or
|
|
417
|
+
* an empty response. A criterion's `levels`, when there are any, must be ones
|
|
418
|
+
* the grading functions can read; levels they cannot read give no request
|
|
419
|
+
* rather than a grade on a scale the author did not mean. `group` is the item
|
|
420
|
+
* group the task sits in: its material goes with the request as `material`, as
|
|
421
|
+
* on feedback on writing.
|
|
422
|
+
*
|
|
423
|
+
* The author's AI switch (`ai.explanations`) is not read: grading is the
|
|
424
|
+
* deployment's decision, made on the server, not help a learner asks for.
|
|
425
|
+
*/
|
|
426
|
+
export declare function aiGradingRequest(input: {
|
|
427
|
+
data: AiActivityInput;
|
|
428
|
+
response: LearnerResponse | null;
|
|
429
|
+
group?: AiGroupInput;
|
|
430
|
+
learnerLocale?: string;
|
|
431
|
+
}): {
|
|
432
|
+
ok: true;
|
|
433
|
+
request: AiGradingRequest;
|
|
434
|
+
} | {
|
|
435
|
+
ok: false;
|
|
436
|
+
problem: AiGradingRequestProblem;
|
|
437
|
+
path?: (string | number)[];
|
|
438
|
+
};
|
|
439
|
+
type Refused = {
|
|
440
|
+
ok: false;
|
|
441
|
+
refusal: AiRefusal;
|
|
442
|
+
};
|
|
443
|
+
/**
|
|
444
|
+
* Checks a grade a port returned for `request`. Whole or nothing, as every AI
|
|
445
|
+
* text is: a reply the SDK doubts in any part is refused, and is no grade —
|
|
446
|
+
* re-ask the model or send the response to a person; never record a 0.
|
|
447
|
+
*
|
|
448
|
+
* - **Every criterion of the rubric, once** (`misses-criteria`). Names match as
|
|
449
|
+
* written, or folded when the folded name is one criterion's alone. Leaving
|
|
450
|
+
* one out, inventing or renaming one, judging one twice or calling one not
|
|
451
|
+
* applicable refuses the reply: a total renormalised over fewer criteria
|
|
452
|
+
* is a grade of a different task.
|
|
453
|
+
* - **On each criterion's own scale** (`out-of-scale`). With levels: a `level`
|
|
454
|
+
* the criterion has, as labelled (case and spacing aside), and any
|
|
455
|
+
* `probabilities` a distribution over its levels, lowest first, whose
|
|
456
|
+
* likeliest is the level chosen. Without levels: a `score` from 0 to its
|
|
457
|
+
* `maxScore`, 1 by default.
|
|
458
|
+
* - **Every correction quotes the response** (`misquotes-answer`), anchored as
|
|
459
|
+
* feedback on writing anchors it.
|
|
460
|
+
* - **Text fields** — a criterion's `comment` (at most
|
|
461
|
+
* `AI_WRITING_MAX_FIELD_LENGTH` code points), `feedback` and `rationale`
|
|
462
|
+
* (at most `AI_TEXT_MAX_LENGTH`) — are plain text, cleaned; longer is
|
|
463
|
+
* `too-long`. `requiresHumanReview` is a boolean.
|
|
464
|
+
*
|
|
465
|
+
* The total is not computed here: `gradeFromJudgement` computes it, as
|
|
466
|
+
* `gradeFromRubric` computes every grade in the SDK.
|
|
467
|
+
*/
|
|
468
|
+
export declare function checkAiGrading(raw: unknown, request: AiGradingRequest): {
|
|
469
|
+
ok: true;
|
|
470
|
+
judgement: AiGradingJudgement;
|
|
471
|
+
} | Refused;
|
|
472
|
+
//#endregion
|
|
473
|
+
//#region src/ai-written.d.ts
|
|
474
|
+
/**
|
|
475
|
+
* What the AI features about a written response share: reading a model's text
|
|
476
|
+
* fields, and finding each correction's quote in the learner's text.
|
|
477
|
+
*
|
|
478
|
+
* Internal. `ai-writing.ts` (feedback on a draft) and `ai-grading.ts` (a
|
|
479
|
+
* grade) are their public faces, and hold every correction to the same
|
|
480
|
+
* anchoring.
|
|
481
|
+
*/
|
|
405
482
|
/** The most corrections one piece of writing feedback may carry. More is refused, not cut. */
|
|
406
483
|
export declare const AI_WRITING_MAX_CORRECTIONS = 20;
|
|
407
484
|
/** The longest quote, correction, explanation or criterion comment, in code points. */
|
|
408
485
|
export declare const AI_WRITING_MAX_FIELD_LENGTH = 500;
|
|
486
|
+
//#endregion
|
|
487
|
+
//#region src/ai-writing.d.ts
|
|
409
488
|
/**
|
|
410
489
|
* The request for feedback on a draft, or `null` when there is none to give:
|
|
411
490
|
* not a written response, an author who switched explanations off (writing
|
|
@@ -1217,95 +1296,6 @@ export declare class DeferredScoringError extends Error {
|
|
|
1217
1296
|
constructor(activityType: string);
|
|
1218
1297
|
}
|
|
1219
1298
|
//#endregion
|
|
1220
|
-
//#region src/grading.d.ts
|
|
1221
|
-
/** Options for {@link gradeFromRubric}. */
|
|
1222
|
-
export interface GradeFromRubricOptions {
|
|
1223
|
-
/**
|
|
1224
|
-
* Scaled score [0,1] required to pass. Defaults to the activity's
|
|
1225
|
-
* `passThreshold`, or {@link DEFAULT_PASS_THRESHOLD} when absent.
|
|
1226
|
-
*/
|
|
1227
|
-
passThreshold?: number;
|
|
1228
|
-
/** Narrative feedback for the learner, carried onto the record verbatim. */
|
|
1229
|
-
feedback?: string | null;
|
|
1230
|
-
/**
|
|
1231
|
-
* Compare the pass line the way the score is displayed — both sides rounded,
|
|
1232
|
-
* via `gte` — whichever threshold applies: `passThreshold` above, the
|
|
1233
|
-
* activity's own, or the 0.7 default. The returned `score` stays unrounded.
|
|
1234
|
-
* Opt-in, as on `score()` and `evaluate()`: switching it on moves pass/fail
|
|
1235
|
-
* for totals in the rounding band.
|
|
1236
|
-
*
|
|
1237
|
-
* Checked before any criterion is read: `null` reads as no policy, and a
|
|
1238
|
-
* policy that cannot be applied — an unknown `mode`, or a `dp` that is not a
|
|
1239
|
-
* whole number from 0 to 15 — throws a `RangeError`, even for a rubric that
|
|
1240
|
-
* turns out to be unscorable.
|
|
1241
|
-
*/
|
|
1242
|
-
rounding?: RoundingPolicy;
|
|
1243
|
-
}
|
|
1244
|
-
/**
|
|
1245
|
-
* Computes the weighted total from per-criterion scores — the arithmetic that
|
|
1246
|
-
* must NOT be delegated to a language model.
|
|
1247
|
-
*
|
|
1248
|
-
* A grader is asked for judgement (how good is this criterion?), not for
|
|
1249
|
-
* mental arithmetic. Asking a model to also produce the weighted total makes
|
|
1250
|
-
* the final grade unverifiable and unreproducible: two runs can return
|
|
1251
|
-
* different totals for identical criterion scores. This function makes the
|
|
1252
|
-
* total a pure function of the judgements, so a grade can be recomputed and
|
|
1253
|
-
* audited years later.
|
|
1254
|
-
*
|
|
1255
|
-
* Weights are normalised by their sum, so they need not add to 1; each must be
|
|
1256
|
-
* zero or more, and their sum a positive, finite number, or the result is
|
|
1257
|
-
* `unscorable`. Criteria marked `notApplicable`, and those carrying no numeric
|
|
1258
|
-
* `score` (a purely banded judgement), are excluded from both numerator and
|
|
1259
|
-
* denominator, weight included. When nothing scoreable remains the result is
|
|
1260
|
-
* `unscorable`, never a zero.
|
|
1261
|
-
*
|
|
1262
|
-
* Scores need not be in [0,1]: set `maxScore` on a criterion to declare what
|
|
1263
|
-
* its score is out of, and each is normalised before weighting. A grader
|
|
1264
|
-
* working out of 100 says so and is done:
|
|
1265
|
-
*
|
|
1266
|
-
* ```ts
|
|
1267
|
-
* gradeFromRubric([
|
|
1268
|
-
* { name: 'Task achievement', score: 82, maxScore: 100, weight: 2 },
|
|
1269
|
-
* { name: 'Range', score: 7, maxScore: 9, weight: 1 },
|
|
1270
|
-
* ]);
|
|
1271
|
-
* ```
|
|
1272
|
-
*
|
|
1273
|
-
* The returned `GradeRecord.score` is always scaled [0,1] against
|
|
1274
|
-
* `maxScore: 1`, like every other score in the SDK.
|
|
1275
|
-
*/
|
|
1276
|
-
export declare function gradeFromRubric(criteria: readonly CriterionScore[], activityData?: ActivityData, options?: GradeFromRubricOptions): GradeRecord | {
|
|
1277
|
-
unscorable: true;
|
|
1278
|
-
reason: string;
|
|
1279
|
-
};
|
|
1280
|
-
/**
|
|
1281
|
-
* Lifts a {@link GradeRecord} into the `graded` arm of {@link ItemOutcome}, so
|
|
1282
|
-
* a grade that arrived asynchronously renders through the same path as a
|
|
1283
|
-
* synchronously scored item. The score/passed/feedback fields are mirrored
|
|
1284
|
-
* onto the outcome for uniform reads; `grade` carries the full record.
|
|
1285
|
-
*
|
|
1286
|
-
* A record whose numbers cannot be a grade is refused, as `evaluate` refuses a
|
|
1287
|
-
* non-finite score and {@link gradeFromRubric} one outside [0,1]. `maxScore`
|
|
1288
|
-
* must be a positive, finite number and `score` a finite number from 0 to it (a
|
|
1289
|
-
* hair above, one part in a billion, is float noise and passes as it is).
|
|
1290
|
-
* Anything else — NaN, 85 "out of 1", a score out of 0 — comes back as
|
|
1291
|
-
* `{ status: 'deferred', reason: 'grade_rejected', maxScore: 1, rejectedGrade }`
|
|
1292
|
-
* with the record kept verbatim. Not `graded`, or its `passed` would be read as
|
|
1293
|
-
* a verdict; not `unscorable`, which `composeAssessmentScore` drops from the
|
|
1294
|
-
* denominator while letting the attempt go final — so a failing grade on the
|
|
1295
|
-
* wrong scale would vanish and the rest would be recorded as a pass. Deferred
|
|
1296
|
-
* is what it is: the slot is still owed a real grade, so a composed attempt
|
|
1297
|
-
* stays `provisional` and names the slot in `rejectedSlotIds`.
|
|
1298
|
-
*/
|
|
1299
|
-
export declare function outcomeFromGrade(grade: GradeRecord): ItemOutcome;
|
|
1300
|
-
/**
|
|
1301
|
-
* True when an outcome carries a real grade — either the SDK scored it
|
|
1302
|
-
* synchronously or a grader returned one. Use this instead of testing
|
|
1303
|
-
* `status === 'scored'`, which silently misses asynchronously graded work.
|
|
1304
|
-
*/
|
|
1305
|
-
export declare function hasGrade(outcome: ItemOutcome): outcome is Extract<ItemOutcome, {
|
|
1306
|
-
status: 'scored' | 'graded';
|
|
1307
|
-
}>;
|
|
1308
|
-
//#endregion
|
|
1309
1299
|
//#region src/item-group.d.ts
|
|
1310
1300
|
/** Narrows a sequence entry to an item group. */
|
|
1311
1301
|
export declare function isItemGroup<TItem extends {
|
|
@@ -2116,5 +2106,5 @@ interface ThemeTokens {
|
|
|
2116
2106
|
'--lk-transition-base': string;
|
|
2117
2107
|
}
|
|
2118
2108
|
//#endregion
|
|
2119
|
-
export { type ActivityAiPermissions, type ActivityData, type ActivityDataMap, type ActivityFeedback, type ActivityMedia, type ActivityResult, type ActivityType, type ActivityTypeAuthoring, type ActivityTypeDescriptor, type ActivityTypeInterop, type ActivityTypeScoring, type AiActivityInput, type AiBlankFact, type AiCoaching, type AiCoachingRequest, type AiCoachingResult, type AiCoachingWord, type AiCriterionJudgement, type AiCritique, type AiCritiqueField, type AiCritiqueFinding, type AiCritiqueFindingResult, type AiCritiqueKind, type AiCritiqueRequest, type AiCritiqueResult, type AiDictationFacts, type AiDraftCaption, type AiDraftProblem, type AiDraftSettings, type AiDraftSource, type AiDraftType, type AiDrafts, type AiDraftsCall, type AiDraftsRequest, type AiDraftsRun, type AiExplanationRequest, type AiFeature, type AiFillInTheBlanksFacts, type AiGapFact, type AiGapSelectFacts, type AiGeneratedDraft, type AiGrade, type AiGroupInput, type AiHintRequest, type AiItemFacts, type AiMaterialFacts, type AiMultipleChoiceFacts, type AiOptionFact, type AiProvenance, type AiReadingFacts, type AiReadingWordFact, type AiRefusal, type AiRubricCriterionFact, type AiSoundFact, type AiSupportedActivityType, type AiTextResult, type AiVerdict, type AiVideoDraft, type AiWordFact, type AiWritingCorrection, type AiWritingFacts, type AiWritingFeedback, type AiWritingFeedbackRequest, type AiWritingFeedbackResult, type AnsweredStatementParams, type AssessmentScore, type AssessmentSectionInput, type AttemptPlan, type AttemptPlanDrift, type AttemptPlanSlot, type AttemptState, type Band, type BlankConfig, type BuiltInActivityType, type CompletedStatementParams, type CompositionPolicy, type CriterionScore, DEFAULT_ITEM_SCORING_POLICY, DEFAULT_PASS_THRESHOLD, DICTATION_MAX_ACCEPTED_TRANSCRIPTS, DICTATION_MAX_EQUIVALENCES, DICTATION_MAX_EQUIVALENCE_LENGTH, DICTATION_MAX_TEXT_LENGTH, DICTATION_MAX_TRANSCRIPT_LENGTH, type DeferredReason, type DeferredScoringPartial, type DeliveryPolicy, type DeliveryPolicyIssue, type DictationAlignment, type DictationCharOp, type DictationData, type DictationEquivalence, type DictationLearnerResponse, type DictationReference, type DictationSlowMedia, type DictationTolerance, type DictationWordAlignment, type DraftComplete, type DraftContext, type DraftIssue, type DraftNotComplete, type DraftSeverity, type DraftValidationResult, EvaluateOptions, type FieldPolicy, type FillInTheBlanksData, type FillInTheBlanksLearnerResponse, type GapSelectBank, type GapSelectChoice, type GapSelectData, type GapSelectGap, type GapSelectLearnerResponse, type GradeReadAloudOptions, type GradeRecord, type Grader, type GraderKind, type GraderUsage, type GradingState, ITEM_SCORING_MAX_RETRIES, type InlineCorrection, type InteractionEvent, type InteractionKind, type ItemFinding, type ItemFindingSeverity, type ItemGroup, type ItemOutcome, type ItemScoringCount, type ItemScoringPolicy, type ItemScoringPolicyIssue, ItemTriesOutcome, type ItemTriesScore, type ItemTry, type ItemTryScore, type LearnerResponse, type LearnerResponseMap, type MediaBudgetRef, type MediaPlayClaim, type MediaPlayGrant, type MediaPlayLedger, type MediaPlayLedgerEntry, type MediaPlaybackPolicy, type MediaProgress, type MediaTimeline, type MediaTrack, type MultipleChoiceData, type MultipleChoiceLearnerResponse, type MultipleChoiceOption, type MultipleChoiceOptionMedia, type NativeControlHint, type PartialScoringResult, type PassFailureReason, READ_ALOUD_MAX_DIMENSION_WEIGHT, READ_ALOUD_MAX_REFERENCE_LENGTH, READ_ALOUD_MAX_SECONDS, READ_ALOUD_MAX_TAKES, type ReadAloudData, type ReadAloudDimension, type ReadAloudDimensionWeight, type ReadAloudLearnerResponse, type ReadAloudSlowMedia, type ReadAloudWordAlignment, type ReadAloudWordState, type RecordingBounds, type RecordingRef, type RedactedActivity, type RedactedBlankConfig, type RedactedDictationData, type RedactedDictationSlowMedia, type RedactedFillInTheBlanksData, type RedactedGapSelectBank, type RedactedGapSelectChoice, type RedactedGapSelectData, type RedactedGapSelectGap, type RedactedMultipleChoiceData, type RedactedMultipleChoiceOption, type RedactedMultipleChoiceOptionMedia, type RedactedReadAloudData, type RedactedStimulus, type RedactedWrittenResponseData, type RegisteredActivityTypeDescriptor, type ResolvedDeliveryPolicy, type ResolvedItemScoringPolicy, type ResponseDiffEntry, type RoundingMode, type RoundingPolicy, SPEECH_ASSESSMENT_MAX_WORDS, type ScoredItem, type ScoringDetail, ScoringOptions, type ScoringOutcome, type ScoringResult, type SectionScore, type Sensitivity, type SequenceEntry, type SequenceSlot, type SequenceSlotGroup, type SpeechAssessment, type SpeechMeasurement, type SpeechPhoneme, type SpeechPhonemeCandidate, type SpeechPlausibilityPolicy, type SpeechSyllable, type SpeechUnscorable, type SpeechUnscorableCode, type SpeechWord, type SpeechWordError, type StandardSchemaV1, type Stimulus, type StimulusKind, type SubmittedStatementParams, type TextMatchPolicy, type TextMatchResult, type ThemeTokens, type TimelineChapter, type TimelineCue, type ValidationError, type ValidationResult, type WavInspection, type WavInspectionPolicy, type WrittenResponseData, type WrittenResponseLearnerResponse, type WrittenResponseRubric, type WrittenResponseRubricCriterion, type XAPIActor, type XAPIConfig, type XAPIContext, type XAPIContextActivities, type XAPIError, type XAPIInteractionType, type XAPIObject, type XAPIObjectParams, type XAPIResult, type XAPIScore, type XAPIStatement, type XAPIStatementParams, XAPIVerb, type XAPIVerbKey, type XAPIVerbObject, XAPI_VERB_DISPLAY, alignDictation, alignReadAloud, classifyBand, composeAssessmentScore, computePassThreshold, dictationJsonSchema, dictationReferenceWords, diffDictationChars, evaluate, evaluateTries, fillInTheBlanksJsonSchema, gapSelectJsonSchema, gradeReadAloud, gte, inspectWav, itemGroupJsonSchema, jsonSchemaFor, levenshteinDistance, matchText, multipleChoiceJsonSchema, outcomeFromUnscorable, readAloudJsonSchema, resolveItemScoringPolicy, roundGrade, score, scoreTries, stimulusJsonSchema, validateActivity, validateItemGroup, validateItemScoringPolicy, validateMedia, validateOptionMedia, validateSpeechAssessment, validateXAPIStatement, writtenResponseJsonSchema, xAPIBuilder, xapiDefinitionFor };
|
|
2109
|
+
export { type ActivityAiPermissions, type ActivityData, type ActivityDataMap, type ActivityFeedback, type ActivityMedia, type ActivityResult, type ActivityType, type ActivityTypeAuthoring, type ActivityTypeDescriptor, type ActivityTypeInterop, type ActivityTypeScoring, type AiActivityInput, type AiBlankFact, type AiCoaching, type AiCoachingRequest, type AiCoachingResult, type AiCoachingWord, type AiCriterionJudgement, type AiCritique, type AiCritiqueField, type AiCritiqueFinding, type AiCritiqueFindingResult, type AiCritiqueKind, type AiCritiqueRequest, type AiCritiqueResult, type AiDictationFacts, type AiDraftCaption, type AiDraftProblem, type AiDraftSettings, type AiDraftSource, type AiDraftType, type AiDrafts, type AiDraftsCall, type AiDraftsRequest, type AiDraftsRun, type AiExplanationRequest, type AiFeature, type AiFillInTheBlanksFacts, type AiGapFact, type AiGapSelectFacts, type AiGeneratedDraft, type AiGrade, type AiGradedCriterion, type AiGradingCriterionFact, type AiGradingFacts, type AiGradingJudgement, type AiGradingRequest, type AiGradingRequestProblem, type AiGroupInput, type AiHintRequest, type AiItemFacts, type AiMaterialFacts, type AiMultipleChoiceFacts, type AiOptionFact, type AiProvenance, type AiReadingFacts, type AiReadingWordFact, type AiRefusal, type AiRubricCriterionFact, type AiSoundFact, type AiSupportedActivityType, type AiTextResult, type AiVerdict, type AiVideoDraft, type AiWordFact, type AiWritingCorrection, type AiWritingFacts, type AiWritingFeedback, type AiWritingFeedbackRequest, type AiWritingFeedbackResult, type AnsweredStatementParams, type AssessmentScore, type AssessmentSectionInput, type AttemptPlan, type AttemptPlanDrift, type AttemptPlanSlot, type AttemptState, type Band, type BlankConfig, type BuiltInActivityType, type CalibrationPair, type CalibrationReport, type CalibrationScope, type CalibrationThresholds, type CompletedStatementParams, type CompositionPolicy, type CriterionCalibration, type CriterionScore, DEFAULT_ITEM_SCORING_POLICY, DEFAULT_PASS_THRESHOLD, DICTATION_MAX_ACCEPTED_TRANSCRIPTS, DICTATION_MAX_EQUIVALENCES, DICTATION_MAX_EQUIVALENCE_LENGTH, DICTATION_MAX_TEXT_LENGTH, DICTATION_MAX_TRANSCRIPT_LENGTH, type DeferredReason, type DeferredScoringPartial, type DeliveryPolicy, type DeliveryPolicyIssue, type DictationAlignment, type DictationCharOp, type DictationData, type DictationEquivalence, type DictationLearnerResponse, type DictationReference, type DictationSlowMedia, type DictationTolerance, type DictationWordAlignment, type DraftComplete, type DraftContext, type DraftIssue, type DraftNotComplete, type DraftSeverity, type DraftValidationResult, EvaluateOptions, type FieldPolicy, type FillInTheBlanksData, type FillInTheBlanksLearnerResponse, type GapSelectBank, type GapSelectChoice, type GapSelectData, type GapSelectGap, type GapSelectLearnerResponse, type GradeFromJudgementOptions, GradeFromRubricOptions, type GradeReadAloudOptions, type GradeRecord, type GradeRouting, type GradeRoutingContext, type GradeRoutingPolicy, type GradeRoutingReason, type Grader, type GraderConfiguration, type GraderKind, type GraderUsage, type GradingState, ITEM_SCORING_MAX_RETRIES, type InlineCorrection, type InteractionEvent, type InteractionKind, type ItemFinding, type ItemFindingSeverity, type ItemGroup, type ItemOutcome, type ItemScoringCount, type ItemScoringPolicy, type ItemScoringPolicyIssue, ItemTriesOutcome, type ItemTriesScore, type ItemTry, type ItemTryScore, type LearnerResponse, type LearnerResponseMap, type MediaBudgetRef, type MediaPlayClaim, type MediaPlayGrant, type MediaPlayLedger, type MediaPlayLedgerEntry, type MediaPlaybackPolicy, type MediaProgress, type MediaTimeline, type MediaTrack, type MultipleChoiceData, type MultipleChoiceLearnerResponse, type MultipleChoiceOption, type MultipleChoiceOptionMedia, type NativeControlHint, type PartialScoringResult, type PassFailureReason, READ_ALOUD_MAX_DIMENSION_WEIGHT, READ_ALOUD_MAX_REFERENCE_LENGTH, READ_ALOUD_MAX_SECONDS, READ_ALOUD_MAX_TAKES, type ReadAloudData, type ReadAloudDimension, type ReadAloudDimensionWeight, type ReadAloudLearnerResponse, type ReadAloudSlowMedia, type ReadAloudWordAlignment, type ReadAloudWordState, type RecordingBounds, type RecordingRef, type RedactedActivity, type RedactedBlankConfig, type RedactedDictationData, type RedactedDictationSlowMedia, type RedactedFillInTheBlanksData, type RedactedGapSelectBank, type RedactedGapSelectChoice, type RedactedGapSelectData, type RedactedGapSelectGap, type RedactedMultipleChoiceData, type RedactedMultipleChoiceOption, type RedactedMultipleChoiceOptionMedia, type RedactedReadAloudData, type RedactedStimulus, type RedactedWrittenResponseData, type RegisteredActivityTypeDescriptor, type ResolvedDeliveryPolicy, type ResolvedItemScoringPolicy, type ResponseDiffEntry, type RoundingMode, type RoundingPolicy, SPEECH_ASSESSMENT_MAX_WORDS, type ScoredItem, type ScoringDetail, ScoringOptions, type ScoringOutcome, type ScoringResult, type SectionScore, type Sensitivity, type SequenceEntry, type SequenceSlot, type SequenceSlotGroup, type SpeechAssessment, type SpeechMeasurement, type SpeechPhoneme, type SpeechPhonemeCandidate, type SpeechPlausibilityPolicy, type SpeechSyllable, type SpeechUnscorable, type SpeechUnscorableCode, type SpeechWord, type SpeechWordError, type StandardSchemaV1, type Stimulus, type StimulusKind, type SubmittedStatementParams, type TextMatchPolicy, type TextMatchResult, type ThemeTokens, type TimelineChapter, type TimelineCue, type TotalCalibration, type ValidationError, type ValidationResult, type WavInspection, type WavInspectionPolicy, type WrittenResponseData, type WrittenResponseLearnerResponse, type WrittenResponseRubric, type WrittenResponseRubricCriterion, type WrittenResponseRubricLevel, type XAPIActor, type XAPIConfig, type XAPIContext, type XAPIContextActivities, type XAPIError, type XAPIInteractionType, type XAPIObject, type XAPIObjectParams, type XAPIResult, type XAPIScore, type XAPIStatement, type XAPIStatementParams, XAPIVerb, type XAPIVerbKey, type XAPIVerbObject, XAPI_VERB_DISPLAY, alignDictation, alignReadAloud, calibrationReport, classifyBand, composeAssessmentScore, computePassThreshold, dictationJsonSchema, dictationReferenceWords, diffDictationChars, evaluate, evaluateTries, fillInTheBlanksJsonSchema, gapSelectJsonSchema, gradeFromJudgement, gradeFromRubric, gradeReadAloud, graderConfiguration, gte, hasGrade, inAuditSample, inspectWav, itemGroupJsonSchema, jsonSchemaFor, levenshteinDistance, matchText, multipleChoiceJsonSchema, outcomeFromGrade, outcomeFromRoutedGrade, outcomeFromUnscorable, readAloudJsonSchema, resolveItemScoringPolicy, roundGrade, routeGrade, score, scoreTries, stimulusJsonSchema, validateActivity, validateItemGroup, validateItemScoringPolicy, validateMedia, validateOptionMedia, validateSpeechAssessment, validateXAPIStatement, writtenResponseJsonSchema, xAPIBuilder, xapiDefinitionFor };
|
|
2120
2110
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["_$__registry_js0.ActivityTypeDescriptor"],"sources":["../src/ai-material.ts","../src/ai.ts","../src/ai-coaching.ts","../src/ai-critique.ts","../src/ai-drafts.ts","../src/ai-writing.ts","../src/types/delivery.ts","../src/types/attempt-plan.ts","../src/attempt-plan.ts","../src/types/attempt-state.ts","../src/attempt-state.ts","../src/authoring/item-group.ts","../src/authoring/index.ts","../src/built-in-types.ts","../src/content-hash.ts","../src/count-words.ts","../src/delivery.ts","../src/errors.ts","../src/
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["_$__registry_js0.ActivityTypeDescriptor"],"sources":["../src/ai-material.ts","../src/ai.ts","../src/ai-coaching.ts","../src/ai-critique.ts","../src/ai-drafts.ts","../src/ai-grading.ts","../src/ai-written.ts","../src/ai-writing.ts","../src/types/delivery.ts","../src/types/attempt-plan.ts","../src/attempt-plan.ts","../src/types/attempt-state.ts","../src/attempt-state.ts","../src/authoring/item-group.ts","../src/authoring/index.ts","../src/built-in-types.ts","../src/content-hash.ts","../src/count-words.ts","../src/delivery.ts","../src/errors.ts","../src/item-group.ts","../src/types/media-budget.ts","../src/media-budget.ts","../src/standard-schema.ts","../src/registry/define.ts","../src/registry/registry.ts","../src/redact.ts","../src/registry/builtins.ts","../src/shuffle.ts","../src/timeline.ts","../src/timeline-limits.ts","../src/types/theme.ts"],"mappings":";;;;;;;;;;;;;;;;;qBAiBa;;;;;;;;qBCoBA,+BAA+B;qBAM/B,wBAAwB;;qBAOxB;;;;;;wBASG,WAAW,sBAAsB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