@intellectif/lk-core 1.8.0 → 1.9.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 +17 -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-DeIV-GfN.js → ai-writing-DQjI9EFN.js} +130 -5
- package/dist/ai-writing-DQjI9EFN.js.map +1 -0
- package/dist/{ai-writing-Bh2Y53cY.cjs → ai-writing-DbpZpGRk.cjs} +135 -4
- package/dist/ai-writing-DbpZpGRk.cjs.map +1 -0
- package/dist/{ai-Cnm0qE8v.d.cts → ai-zhc9yhRj.d.cts} +160 -2
- package/dist/ai-zhc9yhRj.d.cts.map +1 -0
- package/dist/{ai-Cnm0qE8v.d.ts → ai-zhc9yhRj.d.ts} +160 -2
- package/dist/ai-zhc9yhRj.d.ts.map +1 -0
- package/dist/{index-DMh3OYSb.d.cts → index-BeC8tAWf.d.cts} +2 -2
- package/dist/{index-DMh3OYSb.d.cts.map → index-BeC8tAWf.d.cts.map} +1 -1
- package/dist/{index-CtoPhJAH.d.ts → index-Byar5VVs.d.ts} +2 -2
- package/dist/{index-CtoPhJAH.d.ts.map → index-Byar5VVs.d.ts.map} +1 -1
- package/dist/{index-fZ67k-WR.d.cts → index-Ccj8oL_E.d.cts} +2 -2
- package/dist/{index-fZ67k-WR.d.cts.map → index-Ccj8oL_E.d.cts.map} +1 -1
- package/dist/{index-g-EWIugp.d.ts → index-CxkqS62X.d.ts} +89 -7
- package/dist/index-CxkqS62X.d.ts.map +1 -0
- package/dist/{index-oST8GBFa.d.cts → index-DLsUnGHt.d.cts} +89 -7
- package/dist/index-DLsUnGHt.d.cts.map +1 -0
- package/dist/{index-HXvg0YRQ.d.ts → index-f4YuMgFb.d.ts} +2 -2
- package/dist/{index-HXvg0YRQ.d.ts.map → index-f4YuMgFb.d.ts.map} +1 -1
- package/dist/index.cjs +8 -6
- package/dist/index.d.cts +40 -7
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +40 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -7
- package/dist/{item-group-BceUoxoM.js → item-group-CKZk3txt.js} +2 -2
- package/dist/{item-group-BceUoxoM.js.map → item-group-CKZk3txt.js.map} +1 -1
- package/dist/{item-group-KV4hYu3a.cjs → item-group-COP5OwEC.cjs} +2 -2
- package/dist/{item-group-KV4hYu3a.cjs.map → item-group-COP5OwEC.cjs.map} +1 -1
- package/dist/{registry-tkacvJUI.js → registry-Bw9grsCN.js} +321 -11
- package/dist/registry-Bw9grsCN.js.map +1 -0
- package/dist/{registry-Cymq7Ah0.cjs → registry-C9O9txy5.cjs} +332 -10
- package/dist/registry-C9O9txy5.cjs.map +1 -0
- package/dist/{schemas-DM8sN_f0.js → schemas-BJe3W6Xb.js} +3 -3
- package/dist/{schemas-DM8sN_f0.js.map → schemas-BJe3W6Xb.js.map} +1 -1
- package/dist/{schemas-wDzbKdKa.cjs → schemas-CXlemRvB.cjs} +3 -3
- package/dist/{schemas-wDzbKdKa.cjs.map → schemas-CXlemRvB.cjs.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-DIBmo_cy.js → scoring-BGKdff2i.js} +214 -26
- package/dist/scoring-BGKdff2i.js.map +1 -0
- package/dist/{scoring-D9tFvPEG.cjs → scoring-Db1CZeAn.cjs} +219 -25
- package/dist/scoring-Db1CZeAn.cjs.map +1 -0
- package/dist/scoring.cjs +3 -2
- package/dist/scoring.d.cts +3 -3
- package/dist/scoring.d.ts +3 -3
- package/dist/scoring.js +3 -3
- package/dist/{xapi-gCAo549Q.js → xapi-BtBm8AWZ.js} +2 -2
- package/dist/{xapi-gCAo549Q.js.map → xapi-BtBm8AWZ.js.map} +1 -1
- package/dist/{xapi-Dyqcl3JK.cjs → xapi-DOAqH9__.cjs} +2 -2
- package/dist/{xapi-Dyqcl3JK.cjs.map → xapi-DOAqH9__.cjs.map} +1 -1
- package/dist/xapi.cjs +1 -1
- package/dist/xapi.d.cts +1 -1
- package/dist/xapi.d.ts +1 -1
- package/dist/xapi.js +1 -1
- package/package.json +1 -1
- package/vectors/scoring.json +11967 -1
- package/vectors/validation.json +1298 -1
- package/dist/ai-Cnm0qE8v.d.cts.map +0 -1
- package/dist/ai-Cnm0qE8v.d.ts.map +0 -1
- package/dist/ai-writing-Bh2Y53cY.cjs.map +0 -1
- package/dist/ai-writing-DeIV-GfN.js.map +0 -1
- package/dist/index-g-EWIugp.d.ts.map +0 -1
- package/dist/index-oST8GBFa.d.cts.map +0 -1
- package/dist/registry-Cymq7Ah0.cjs.map +0 -1
- package/dist/registry-tkacvJUI.js.map +0 -1
- package/dist/scoring-D9tFvPEG.cjs.map +0 -1
- package/dist/scoring-DIBmo_cy.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $t as ActivityType, An as ReadAloudLearnerResponse, Bn as SpeakingResponseLearnerResponse, Dn as ReadAloudData, Gn as WrittenResponseData, In as ScoringResult, Jt as ActivityData, L as AiGradingJudgement, Wn as ValidationResult, _n as ItemOutcome, cr as GradeRouting, dr as GraderConfiguration, or as CriterionScore, qn as WrittenResponseRubric, rn as DictationData, sr as GradeRecord, ur as Grader, vn as LearnerResponse, zn as SpeakingResponseData } from "./ai-zhc9yhRj.js";
|
|
2
2
|
/**
|
|
3
3
|
* Rounding for assessment scores.
|
|
4
4
|
*
|
|
@@ -158,6 +158,18 @@ interface SpeechAssessment {
|
|
|
158
158
|
};
|
|
159
159
|
/** What the assessor recognised, as text. */
|
|
160
160
|
recognizedText?: string;
|
|
161
|
+
/**
|
|
162
|
+
* An open answer's transcript, from a transcriber that is not the engine
|
|
163
|
+
* (1.9): its verbatim text — fillers, false starts and the learner's own
|
|
164
|
+
* grammar kept — and who wrote it. The engine measured the take against this
|
|
165
|
+
* text, and a judge grades the answer on it, so both read one record of what
|
|
166
|
+
* was said. For `unscripted` evidence; a scripted assessment has its
|
|
167
|
+
* `referenceText` instead.
|
|
168
|
+
*/
|
|
169
|
+
transcript?: {
|
|
170
|
+
text: string;
|
|
171
|
+
source: Grader;
|
|
172
|
+
};
|
|
161
173
|
/**
|
|
162
174
|
* Who judged omissions, insertions and mispronunciations. `assessor`: the
|
|
163
175
|
* assessor did, and its word `error` labels are trusted. `none`: it did not,
|
|
@@ -201,9 +213,10 @@ interface SpeechPlausibilityPolicy {
|
|
|
201
213
|
minVoicedMs: number;
|
|
202
214
|
}
|
|
203
215
|
/**
|
|
204
|
-
* Why a read-aloud take cannot be graded:
|
|
216
|
+
* Why a read-aloud take, or a spoken answer (1.9), cannot be graded:
|
|
205
217
|
* - `invalid_assessment` — the assessment fails `validateSpeechAssessment`;
|
|
206
|
-
* - `task_mismatch` — it is not a scripted assessment
|
|
218
|
+
* - `task_mismatch` — it is not a scripted assessment (a read-aloud), or not an
|
|
219
|
+
* unscripted one (a spoken answer);
|
|
207
220
|
* - `locale_mismatch` — it was made for another locale than the item's;
|
|
208
221
|
* - `reference_mismatch` — it was made against another text than the item's;
|
|
209
222
|
* - `recording_mismatch` — it was made for another recording than the response's;
|
|
@@ -211,9 +224,12 @@ interface SpeechPlausibilityPolicy {
|
|
|
211
224
|
* - `no_speech` — the assessor heard no speech;
|
|
212
225
|
* - `insufficient_voiced_time` — the recording holds less voiced time than the policy requires;
|
|
213
226
|
* - `implausible_speech_rate` — more words were recognised than the voiced time can hold;
|
|
214
|
-
* - `missing_dimension` — a weighted dimension
|
|
227
|
+
* - `missing_dimension` — a weighted dimension, or a weighted criterion's
|
|
228
|
+
* measure, has no score in the assessment;
|
|
229
|
+
* - `judgement_mismatch` — a spoken answer's judgement does not judge each
|
|
230
|
+
* criterion the judge scores exactly once, or judges one it does not score.
|
|
215
231
|
*/
|
|
216
|
-
type SpeechUnscorableCode = 'invalid_assessment' | 'task_mismatch' | 'locale_mismatch' | 'reference_mismatch' | 'recording_mismatch' | 'assessor_not_accepted' | 'no_speech' | 'insufficient_voiced_time' | 'implausible_speech_rate' | 'missing_dimension';
|
|
232
|
+
type SpeechUnscorableCode = 'invalid_assessment' | 'task_mismatch' | 'locale_mismatch' | 'reference_mismatch' | 'recording_mismatch' | 'assessor_not_accepted' | 'no_speech' | 'insufficient_voiced_time' | 'implausible_speech_rate' | 'missing_dimension' | 'judgement_mismatch';
|
|
217
233
|
/** A read-aloud take that cannot be graded. Never a zero: see `outcomeFromUnscorable`. */
|
|
218
234
|
interface SpeechUnscorable {
|
|
219
235
|
unscorable: true;
|
|
@@ -236,6 +252,27 @@ interface GradeReadAloudOptions {
|
|
|
236
252
|
/** Compare the pass line with both sides rounded, as `gradeFromRubric` does. The score stays unrounded. */
|
|
237
253
|
rounding?: RoundingPolicy;
|
|
238
254
|
}
|
|
255
|
+
/**
|
|
256
|
+
* What `gradeSpeakingResponse` grades from (1.9): the engine's unscripted
|
|
257
|
+
* assessment of the take, carrying the transcript it was measured against, and a
|
|
258
|
+
* judgement of the criteria a judge scores — from `checkAiGrading` on a model's
|
|
259
|
+
* reply, or a person's marks in the same shape. Either may be `null` when the
|
|
260
|
+
* rubric needs nothing of it, and both are `null` for a blank.
|
|
261
|
+
*/
|
|
262
|
+
interface SpeakingEvidence {
|
|
263
|
+
assessment: SpeechAssessment | null;
|
|
264
|
+
judgement: AiGradingJudgement | null;
|
|
265
|
+
}
|
|
266
|
+
/** Options for `gradeSpeakingResponse`: `gradeReadAloud`'s, and who scores the measured criteria. */
|
|
267
|
+
interface GradeSpeakingResponseOptions extends GradeReadAloudOptions {
|
|
268
|
+
/**
|
|
269
|
+
* The judge scores the criteria that name a `measure` too, and the engine's
|
|
270
|
+
* measures are not read for them. Off: a measured criterion is the engine's.
|
|
271
|
+
* A model that judges pronunciation is behind the same calibration gate as
|
|
272
|
+
* one that judges content — see `routeGrade`.
|
|
273
|
+
*/
|
|
274
|
+
judgeMeasures?: boolean;
|
|
275
|
+
}
|
|
239
276
|
/** How a word of a read-aloud attempt is marked. */
|
|
240
277
|
type ReadAloudWordState = 'correct' | 'mispronounced' | 'omitted' | 'inserted';
|
|
241
278
|
/**
|
|
@@ -1175,6 +1212,51 @@ declare function validateSpeechAssessment(value: unknown): ValidationResult<Spee
|
|
|
1175
1212
|
* simply be missing from the grade; grade against the full data server-side.
|
|
1176
1213
|
*/
|
|
1177
1214
|
declare function gradeReadAloud(data: ReadAloudData, response: ReadAloudLearnerResponse, assessment: SpeechAssessment | null, options: GradeReadAloudOptions): GradeRecord | SpeechUnscorable;
|
|
1215
|
+
/**
|
|
1216
|
+
* Grades a spoken answer to a `speaking-response` item (1.9).
|
|
1217
|
+
*
|
|
1218
|
+
* Each criterion of the rubric is scored once:
|
|
1219
|
+
*
|
|
1220
|
+
* - **by the judge** when it names no `measure` — what was said, how it was
|
|
1221
|
+
* organised, the range and accuracy of the language — from
|
|
1222
|
+
* `evidence.judgement`: a model's reply as `checkAiGrading` read it, or a
|
|
1223
|
+
* person's marks in the same shape, each from 0 to 1;
|
|
1224
|
+
* - **from the engine** when it names one: `pronunciation` is the assessment's
|
|
1225
|
+
* accuracy, `fluency` its fluency, `prosody` its prosody, each out of 100. With
|
|
1226
|
+
* `options.judgeMeasures` the judge scores those too, and the engine's scores
|
|
1227
|
+
* are not read.
|
|
1228
|
+
*
|
|
1229
|
+
* The weighted total is `gradeFromRubric`'s, over the item's weights and pass
|
|
1230
|
+
* line. Evidence is refused rather than scored, as a read-aloud's is: an
|
|
1231
|
+
* assessment that is not `unscripted`, not for the item's locale or not for
|
|
1232
|
+
* this recording; one from a model, unless `allowAiAssessor`; a take with no
|
|
1233
|
+
* speech, too little voiced time, or more words in its transcript than the
|
|
1234
|
+
* voiced time holds; a weighted measure the assessment has no score for
|
|
1235
|
+
* (`missing_dimension`); and a judgement that does not score each criterion the
|
|
1236
|
+
* judge scores exactly once, on its 0..1 scale (`judgement_mismatch`). A
|
|
1237
|
+
* judgement is matched whenever one is given, so marks meant for another item,
|
|
1238
|
+
* or for measures the judge was not asked to score, are refused.
|
|
1239
|
+
*
|
|
1240
|
+
* A blank (`response.recording === null`) is a grade of 0: the learner
|
|
1241
|
+
* submitted and said nothing. The evidence and the measurement are not read.
|
|
1242
|
+
*
|
|
1243
|
+
* With a judge, the grade is the judge's, as `gradeFromJudgement` makes one:
|
|
1244
|
+
* its feedback (or the authored feedback, when it gave none), its corrections
|
|
1245
|
+
* and rationale, `requiresHumanReview`, and `grader: { kind: 'ai', model,
|
|
1246
|
+
* promptHash }` — so `routeGrade` routes a spoken answer as it routes a written
|
|
1247
|
+
* one. Without one, the feedback is the authored feedback and the grader is the
|
|
1248
|
+
* engine that measured.
|
|
1249
|
+
*
|
|
1250
|
+
* @throws RangeError when `options.plausibility` or `options.rounding` cannot be
|
|
1251
|
+
* applied, or `options.measured` is not a pair of finite, non-negative
|
|
1252
|
+
* millisecond counts with `voicedMs` inside `durationMs`.
|
|
1253
|
+
* @throws TypeError when `response` is not a speaking-response response, or a
|
|
1254
|
+
* recording is graded without an assessment, a measurement, or — when the
|
|
1255
|
+
* judge scores a criterion — a judgement.
|
|
1256
|
+
* @throws ActivitySchemaError when `data` is not valid speaking-response data.
|
|
1257
|
+
* @throws RedactedScoringError when `data` is a `redact()` projection.
|
|
1258
|
+
*/
|
|
1259
|
+
declare function gradeSpeakingResponse(data: SpeakingResponseData, response: SpeakingResponseLearnerResponse, evidence: SpeakingEvidence, options: GradeSpeakingResponseOptions): GradeRecord | SpeechUnscorable;
|
|
1178
1260
|
/**
|
|
1179
1261
|
* The longest reference text a read-aloud item accepts, in code points, before
|
|
1180
1262
|
* and after normalisation. It is the dictation transcript cap on purpose: the
|
|
@@ -1351,5 +1433,5 @@ interface ItemTriesOutcome {
|
|
|
1351
1433
|
* is everywhere else.
|
|
1352
1434
|
*/
|
|
1353
1435
|
declare function evaluateTries(data: ActivityData, responses: readonly LearnerResponse[], options?: EvaluateOptions): ItemTriesOutcome;
|
|
1354
|
-
export {
|
|
1355
|
-
//# sourceMappingURL=index-
|
|
1436
|
+
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-CxkqS62X.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CxkqS62X.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;;UAGK;EACf,MAAM;;EAEN;;;;;;;;;iBAqFc,WAAW,eAAe,QAAQ;;;;;;;;;iBA2DlC,IAAI,eAAe,mBAAmB,QAAQ;;UAK7C;EACf;;EAEA;;;;;;;;;;iBAWc,aAAa,eAAe,gBAAgB,SAAS;;;;;;KC3KzD;;UAGK;;EAEf;;EAEA;;;UAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA,UAAU;;;UAIK;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;;UAIe;;E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;;;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 { $t as ActivityType, An as ReadAloudLearnerResponse, Bn as SpeakingResponseLearnerResponse, Dn as ReadAloudData, Gn as WrittenResponseData, In as ScoringResult, Jt as ActivityData, L as AiGradingJudgement, Wn as ValidationResult, _n as ItemOutcome, cr as GradeRouting, dr as GraderConfiguration, or as CriterionScore, qn as WrittenResponseRubric, rn as DictationData, sr as GradeRecord, ur as Grader, vn as LearnerResponse, zn as SpeakingResponseData } from "./ai-zhc9yhRj.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* Rounding for assessment scores.
|
|
4
4
|
*
|
|
@@ -158,6 +158,18 @@ interface SpeechAssessment {
|
|
|
158
158
|
};
|
|
159
159
|
/** What the assessor recognised, as text. */
|
|
160
160
|
recognizedText?: string;
|
|
161
|
+
/**
|
|
162
|
+
* An open answer's transcript, from a transcriber that is not the engine
|
|
163
|
+
* (1.9): its verbatim text — fillers, false starts and the learner's own
|
|
164
|
+
* grammar kept — and who wrote it. The engine measured the take against this
|
|
165
|
+
* text, and a judge grades the answer on it, so both read one record of what
|
|
166
|
+
* was said. For `unscripted` evidence; a scripted assessment has its
|
|
167
|
+
* `referenceText` instead.
|
|
168
|
+
*/
|
|
169
|
+
transcript?: {
|
|
170
|
+
text: string;
|
|
171
|
+
source: Grader;
|
|
172
|
+
};
|
|
161
173
|
/**
|
|
162
174
|
* Who judged omissions, insertions and mispronunciations. `assessor`: the
|
|
163
175
|
* assessor did, and its word `error` labels are trusted. `none`: it did not,
|
|
@@ -201,9 +213,10 @@ interface SpeechPlausibilityPolicy {
|
|
|
201
213
|
minVoicedMs: number;
|
|
202
214
|
}
|
|
203
215
|
/**
|
|
204
|
-
* Why a read-aloud take cannot be graded:
|
|
216
|
+
* Why a read-aloud take, or a spoken answer (1.9), cannot be graded:
|
|
205
217
|
* - `invalid_assessment` — the assessment fails `validateSpeechAssessment`;
|
|
206
|
-
* - `task_mismatch` — it is not a scripted assessment
|
|
218
|
+
* - `task_mismatch` — it is not a scripted assessment (a read-aloud), or not an
|
|
219
|
+
* unscripted one (a spoken answer);
|
|
207
220
|
* - `locale_mismatch` — it was made for another locale than the item's;
|
|
208
221
|
* - `reference_mismatch` — it was made against another text than the item's;
|
|
209
222
|
* - `recording_mismatch` — it was made for another recording than the response's;
|
|
@@ -211,9 +224,12 @@ interface SpeechPlausibilityPolicy {
|
|
|
211
224
|
* - `no_speech` — the assessor heard no speech;
|
|
212
225
|
* - `insufficient_voiced_time` — the recording holds less voiced time than the policy requires;
|
|
213
226
|
* - `implausible_speech_rate` — more words were recognised than the voiced time can hold;
|
|
214
|
-
* - `missing_dimension` — a weighted dimension
|
|
227
|
+
* - `missing_dimension` — a weighted dimension, or a weighted criterion's
|
|
228
|
+
* measure, has no score in the assessment;
|
|
229
|
+
* - `judgement_mismatch` — a spoken answer's judgement does not judge each
|
|
230
|
+
* criterion the judge scores exactly once, or judges one it does not score.
|
|
215
231
|
*/
|
|
216
|
-
type SpeechUnscorableCode = 'invalid_assessment' | 'task_mismatch' | 'locale_mismatch' | 'reference_mismatch' | 'recording_mismatch' | 'assessor_not_accepted' | 'no_speech' | 'insufficient_voiced_time' | 'implausible_speech_rate' | 'missing_dimension';
|
|
232
|
+
type SpeechUnscorableCode = 'invalid_assessment' | 'task_mismatch' | 'locale_mismatch' | 'reference_mismatch' | 'recording_mismatch' | 'assessor_not_accepted' | 'no_speech' | 'insufficient_voiced_time' | 'implausible_speech_rate' | 'missing_dimension' | 'judgement_mismatch';
|
|
217
233
|
/** A read-aloud take that cannot be graded. Never a zero: see `outcomeFromUnscorable`. */
|
|
218
234
|
interface SpeechUnscorable {
|
|
219
235
|
unscorable: true;
|
|
@@ -236,6 +252,27 @@ interface GradeReadAloudOptions {
|
|
|
236
252
|
/** Compare the pass line with both sides rounded, as `gradeFromRubric` does. The score stays unrounded. */
|
|
237
253
|
rounding?: RoundingPolicy;
|
|
238
254
|
}
|
|
255
|
+
/**
|
|
256
|
+
* What `gradeSpeakingResponse` grades from (1.9): the engine's unscripted
|
|
257
|
+
* assessment of the take, carrying the transcript it was measured against, and a
|
|
258
|
+
* judgement of the criteria a judge scores — from `checkAiGrading` on a model's
|
|
259
|
+
* reply, or a person's marks in the same shape. Either may be `null` when the
|
|
260
|
+
* rubric needs nothing of it, and both are `null` for a blank.
|
|
261
|
+
*/
|
|
262
|
+
interface SpeakingEvidence {
|
|
263
|
+
assessment: SpeechAssessment | null;
|
|
264
|
+
judgement: AiGradingJudgement | null;
|
|
265
|
+
}
|
|
266
|
+
/** Options for `gradeSpeakingResponse`: `gradeReadAloud`'s, and who scores the measured criteria. */
|
|
267
|
+
interface GradeSpeakingResponseOptions extends GradeReadAloudOptions {
|
|
268
|
+
/**
|
|
269
|
+
* The judge scores the criteria that name a `measure` too, and the engine's
|
|
270
|
+
* measures are not read for them. Off: a measured criterion is the engine's.
|
|
271
|
+
* A model that judges pronunciation is behind the same calibration gate as
|
|
272
|
+
* one that judges content — see `routeGrade`.
|
|
273
|
+
*/
|
|
274
|
+
judgeMeasures?: boolean;
|
|
275
|
+
}
|
|
239
276
|
/** How a word of a read-aloud attempt is marked. */
|
|
240
277
|
type ReadAloudWordState = 'correct' | 'mispronounced' | 'omitted' | 'inserted';
|
|
241
278
|
/**
|
|
@@ -1175,6 +1212,51 @@ declare function validateSpeechAssessment(value: unknown): ValidationResult<Spee
|
|
|
1175
1212
|
* simply be missing from the grade; grade against the full data server-side.
|
|
1176
1213
|
*/
|
|
1177
1214
|
declare function gradeReadAloud(data: ReadAloudData, response: ReadAloudLearnerResponse, assessment: SpeechAssessment | null, options: GradeReadAloudOptions): GradeRecord | SpeechUnscorable;
|
|
1215
|
+
/**
|
|
1216
|
+
* Grades a spoken answer to a `speaking-response` item (1.9).
|
|
1217
|
+
*
|
|
1218
|
+
* Each criterion of the rubric is scored once:
|
|
1219
|
+
*
|
|
1220
|
+
* - **by the judge** when it names no `measure` — what was said, how it was
|
|
1221
|
+
* organised, the range and accuracy of the language — from
|
|
1222
|
+
* `evidence.judgement`: a model's reply as `checkAiGrading` read it, or a
|
|
1223
|
+
* person's marks in the same shape, each from 0 to 1;
|
|
1224
|
+
* - **from the engine** when it names one: `pronunciation` is the assessment's
|
|
1225
|
+
* accuracy, `fluency` its fluency, `prosody` its prosody, each out of 100. With
|
|
1226
|
+
* `options.judgeMeasures` the judge scores those too, and the engine's scores
|
|
1227
|
+
* are not read.
|
|
1228
|
+
*
|
|
1229
|
+
* The weighted total is `gradeFromRubric`'s, over the item's weights and pass
|
|
1230
|
+
* line. Evidence is refused rather than scored, as a read-aloud's is: an
|
|
1231
|
+
* assessment that is not `unscripted`, not for the item's locale or not for
|
|
1232
|
+
* this recording; one from a model, unless `allowAiAssessor`; a take with no
|
|
1233
|
+
* speech, too little voiced time, or more words in its transcript than the
|
|
1234
|
+
* voiced time holds; a weighted measure the assessment has no score for
|
|
1235
|
+
* (`missing_dimension`); and a judgement that does not score each criterion the
|
|
1236
|
+
* judge scores exactly once, on its 0..1 scale (`judgement_mismatch`). A
|
|
1237
|
+
* judgement is matched whenever one is given, so marks meant for another item,
|
|
1238
|
+
* or for measures the judge was not asked to score, are refused.
|
|
1239
|
+
*
|
|
1240
|
+
* A blank (`response.recording === null`) is a grade of 0: the learner
|
|
1241
|
+
* submitted and said nothing. The evidence and the measurement are not read.
|
|
1242
|
+
*
|
|
1243
|
+
* With a judge, the grade is the judge's, as `gradeFromJudgement` makes one:
|
|
1244
|
+
* its feedback (or the authored feedback, when it gave none), its corrections
|
|
1245
|
+
* and rationale, `requiresHumanReview`, and `grader: { kind: 'ai', model,
|
|
1246
|
+
* promptHash }` — so `routeGrade` routes a spoken answer as it routes a written
|
|
1247
|
+
* one. Without one, the feedback is the authored feedback and the grader is the
|
|
1248
|
+
* engine that measured.
|
|
1249
|
+
*
|
|
1250
|
+
* @throws RangeError when `options.plausibility` or `options.rounding` cannot be
|
|
1251
|
+
* applied, or `options.measured` is not a pair of finite, non-negative
|
|
1252
|
+
* millisecond counts with `voicedMs` inside `durationMs`.
|
|
1253
|
+
* @throws TypeError when `response` is not a speaking-response response, or a
|
|
1254
|
+
* recording is graded without an assessment, a measurement, or — when the
|
|
1255
|
+
* judge scores a criterion — a judgement.
|
|
1256
|
+
* @throws ActivitySchemaError when `data` is not valid speaking-response data.
|
|
1257
|
+
* @throws RedactedScoringError when `data` is a `redact()` projection.
|
|
1258
|
+
*/
|
|
1259
|
+
declare function gradeSpeakingResponse(data: SpeakingResponseData, response: SpeakingResponseLearnerResponse, evidence: SpeakingEvidence, options: GradeSpeakingResponseOptions): GradeRecord | SpeechUnscorable;
|
|
1178
1260
|
/**
|
|
1179
1261
|
* The longest reference text a read-aloud item accepts, in code points, before
|
|
1180
1262
|
* and after normalisation. It is the dictation transcript cap on purpose: the
|
|
@@ -1351,5 +1433,5 @@ interface ItemTriesOutcome {
|
|
|
1351
1433
|
* is everywhere else.
|
|
1352
1434
|
*/
|
|
1353
1435
|
declare function evaluateTries(data: ActivityData, responses: readonly LearnerResponse[], options?: EvaluateOptions): ItemTriesOutcome;
|
|
1354
|
-
export {
|
|
1355
|
-
//# sourceMappingURL=index-
|
|
1436
|
+
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-DLsUnGHt.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DLsUnGHt.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;;UAGK;EACf,MAAM;;EAEN;;;;;;;;;iBAqFc,WAAW,eAAe,QAAQ;;;;;;;;;iBA2DlC,IAAI,eAAe,mBAAmB,QAAQ;;UAK7C;EACf;;EAEA;;;;;;;;;;iBAWc,aAAa,eAAe,gBAAgB,SAAS;;;;;;KC3KzD;;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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;;;;;;;;;;;;;;;;;;;;;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 { $t as ActivityType, Et as ItemGroup, Tn as MultipleChoiceOptionMedia, Wn as ValidationResult, Yt as ActivityDataMap, Zt as ActivityMedia } from "./ai-zhc9yhRj.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-f4YuMgFb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-f4YuMgFb.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;;;;;;;;;;;iBCyMY,kBAAkB,gBAAgB,iBAAiB;;;;;cCnatD,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"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_registry = require("./registry-
|
|
3
|
-
const require_ai_writing = require("./ai-writing-
|
|
4
|
-
const require_scoring = require("./scoring-
|
|
5
|
-
const require_item_group = require("./item-group-
|
|
6
|
-
const require_schemas = require("./schemas-
|
|
7
|
-
const require_xapi = require("./xapi-
|
|
2
|
+
const require_registry = require("./registry-C9O9txy5.cjs");
|
|
3
|
+
const require_ai_writing = require("./ai-writing-DbpZpGRk.cjs");
|
|
4
|
+
const require_scoring = require("./scoring-Db1CZeAn.cjs");
|
|
5
|
+
const require_item_group = require("./item-group-COP5OwEC.cjs");
|
|
6
|
+
const require_schemas = require("./schemas-CXlemRvB.cjs");
|
|
7
|
+
const require_xapi = require("./xapi-DOAqH9__.cjs");
|
|
8
8
|
// src/delivery.ts
|
|
9
9
|
/**
|
|
10
10
|
* The policy that restricts nothing: every setting `true`. It is what an absent
|
|
@@ -1411,6 +1411,7 @@ exports.aiExplanationRequest = require_ai_writing.aiExplanationRequest;
|
|
|
1411
1411
|
exports.aiGradeOf = require_ai_writing.aiGradeOf;
|
|
1412
1412
|
exports.aiGradingRequest = require_ai_writing.aiGradingRequest;
|
|
1413
1413
|
exports.aiHintRequest = require_ai_writing.aiHintRequest;
|
|
1414
|
+
exports.aiSpeakingGradingRequest = require_ai_writing.aiSpeakingGradingRequest;
|
|
1414
1415
|
exports.aiSupports = require_ai_writing.aiSupports;
|
|
1415
1416
|
exports.aiVariantsRepairRequest = require_ai_writing.aiVariantsRepairRequest;
|
|
1416
1417
|
exports.aiVariantsRequest = require_ai_writing.aiVariantsRequest;
|
|
@@ -1466,6 +1467,7 @@ exports.getActivityTypeDescriptor = require_registry.getActivityTypeDescriptor;
|
|
|
1466
1467
|
exports.gradeFromJudgement = require_scoring.gradeFromJudgement;
|
|
1467
1468
|
exports.gradeFromRubric = require_scoring.gradeFromRubric;
|
|
1468
1469
|
exports.gradeReadAloud = require_scoring.gradeReadAloud;
|
|
1470
|
+
exports.gradeSpeakingResponse = require_scoring.gradeSpeakingResponse;
|
|
1469
1471
|
exports.graderConfiguration = require_scoring.graderConfiguration;
|
|
1470
1472
|
exports.gte = require_scoring.gte;
|
|
1471
1473
|
exports.hasGrade = require_scoring.hasGrade;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { $ as
|
|
3
|
-
import { A as RedactedStimulus, C as RedactedGapSelectChoice, D as RedactedMultipleChoiceOption, E as RedactedMultipleChoiceData, O as RedactedMultipleChoiceOptionMedia, S as RedactedGapSelectBank, T as RedactedGapSelectGap, _ as RedactedActivity, a as JsonSchemaTarget, b as RedactedDictationSlowMedia, c as fillInTheBlanksJsonSchema, d as jsonSchemaFor, f as multipleChoiceJsonSchema, g as validateItemGroup, h as writtenResponseJsonSchema, i as SCRIPT_MAX_TURNS, j as RedactedWrittenResponseData, k as RedactedReadAloudData, l as gapSelectJsonSchema, m as stimulusJsonSchema, n as validateMedia, o as contentJsonSchema, p as readAloudJsonSchema, r as validateOptionMedia, s as dictationJsonSchema, t as validateActivity, u as itemGroupJsonSchema, v as RedactedBlankConfig, w as RedactedGapSelectData, x as RedactedFillInTheBlanksData, y as RedactedDictationData } 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 AiSpeakingGradingFacts, $n as XAPIContextActivities, $t as ActivityType, A as AiGapSelectFacts, An as ReadAloudLearnerResponse, At as SequenceSlot, B as AiGroupInput, Bn as SpeakingResponseLearnerResponse, Bt as DraftSeverity, C as AiDraftsCall, Cn as MultipleChoiceLearnerResponse, Ct as AiWritingFeedback, D as AiFeature, Dn as ReadAloudData, Dt as MediaProgress, E as AiExplanationRequest, En as NativeControlHint, Et as ItemGroup, F as AiGradingCriterionFact, Fn as ScoringOutcome, Ft as TimelineCue, G as AiOptionFact, Gn as WrittenResponseData, Gt as VersionFinding, H as AiItemFacts, Hn as SpeakingRubricCriterion, Ht as ItemFinding, I as AiGradingFacts, In as ScoringResult, It as DraftComplete, J as AiReadingWordFact, Jn as WrittenResponseRubricCriterion, Jt as ActivityData, K as AiProvenance, Kn as WrittenResponseLearnerResponse, Kt as VersionPaper, L as AiGradingJudgement, Ln as ScriptTurn, Lt as DraftContext, M as AiGeneratedVariant, Mn as RecordingBounds, Mt as Stimulus, N as AiGrade, Nn as RecordingRef, Nt as StimulusKind, O as AiFillInTheBlanksFacts, On as ReadAloudDimension, Ot as MediaTimeline, P as AiGradedCriterion, Pn as ScoringDetail, Pt as TimelineChapter, Q as AiSpeakingCriterionFact, Qn as XAPIContext, Qt as ActivityResult, R as AiGradingRequest, Rn as SpeakingMeasure, Rt as DraftIssue, S as AiDrafts, Sn as MultipleChoiceData, St as AiWritingFacts, T as AiDraftsRun, Tn as MultipleChoiceOptionMedia, Tt as AiWritingFeedbackResult, U as AiMaterialFacts, Un as ValidationError, Ut as ItemFindingSeverity, V as AiHintRequest, Vn as SpeakingRubric, Vt as DraftValidationResult, W as AiMultipleChoiceFacts, Wn as ValidationResult, Wt as VersionComparison, X as AiRubricCriterionFact, Xn as XAPIActor, Xt as ActivityFeedback, Y as AiRefusal, Yn as WrittenResponseRubricLevel, Yt as ActivityDataMap, Z as AiSoundFact, Zn as XAPIConfig, Zt as ActivityMedia, _ as AiDraftCaption, _n as ItemOutcome, _r as TextMatchResult, _t as AiVariantsRun, a as AiCoachingRequest, an as DictationLearnerResponse, ar as XAPIVerbObject, at as AiVariantDifficulty, b as AiDraftSource, bn as MediaPlaybackPolicy, bt as AiWordFact, c as AiCriterionJudgement, cn as FillInTheBlanksData, cr as GradeRouting, ct as AiVariantLevelFacts, d as AiCritiqueFinding, dn as GapSelectChoice, dr as GraderConfiguration, dt as AiVariantPair, en as BlankConfig, er as XAPIError, et as AiSpeakingGradingRequest, f as AiCritiqueFindingResult, fn as GapSelectData, fr as GraderKind, ft as AiVariantSkip, g as AiDictationFacts, gn as InteractionKind, gr as TextMatchPolicy, gt as AiVariantsRequest, h as AiCritiqueResult, hn as InteractionEvent, hr as InlineCorrection, ht as AiVariants, i as AiCoaching, in as DictationEquivalence, ir as XAPIStatement, it as AiTextResult, j as AiGeneratedDraft, jn as ReadAloudSlowMedia, jt as SequenceSlotGroup, k as AiGapFact, kn as ReadAloudDimensionWeight, kt as SequenceEntry, l as AiCritique, ln as FillInTheBlanksLearnerResponse, lr as GradeRoutingReason, lt as AiVariantMismatch, m as AiCritiqueRequest, mn as GapSelectLearnerResponse, mr as GradingState, mt as AiVariantTargets, n as AiActivityInput, nn as DeferredScoringPartial, nr as XAPIResult, nt as AiSpeakingMeasureFact, o as AiCoachingResult, on as DictationSlowMedia, or as CriterionScore, ot as AiVariantExemplarFacts, p as AiCritiqueKind, pn as GapSelectGap, pr as GraderUsage, pt as AiVariantSkipCode, q as AiReadingFacts, qn as WrittenResponseRubric, qt as VersionSlot, r as AiBlankFact, rn as DictationData, rr as XAPIScore, rt as AiSupportedActivityType, s as AiCoachingWord, sn as DictationTolerance, sr as GradeRecord, st as AiVariantImage, t as ActivityAiPermissions, tn as DeferredReason, tr as XAPIObject, tt as AiSpeakingGradingRequestProblem, u as AiCritiqueField, un as GapSelectBank, ur as Grader, ut as AiVariantMissing, v as AiDraftProblem, vn as LearnerResponse, vr as levenshteinDistance, vt as AiVerdict, w as AiDraftsRequest, wn as MultipleChoiceOption, wt as AiWritingFeedbackRequest, x as AiDraftType, xn as MediaTrack, xt as AiWritingCorrection, y as AiDraftSettings, yn as LearnerResponseMap, yr as matchText, yt as AiVideoDraft, z as AiGradingRequestProblem, zn as SpeakingResponseData, zt as DraftNotComplete } from "./ai-zhc9yhRj.cjs";
|
|
2
|
+
import { $ as gradeFromRubric, A as DictationCharOp, At as SpeechWordError, B as inAuditSample, C as scoreTries, Ct as SpeechPhoneme, D as DICTATION_MAX_EQUIVALENCE_LENGTH, Dt as SpeechUnscorable, E as DICTATION_MAX_EQUIVALENCES, Et as SpeechSyllable, F as alignDictation, Ft as RoundingPolicy, G as CalibrationPair, H as routeGrade, I as dictationReferenceWords, It as classifyBand, J as CriterionCalibration, K as CalibrationReport, L as CalibrationThresholds, Lt as gte, M as DictationAlignment, Mt as WavInspectionPolicy, N as DictationReference, Nt as Band, O as DICTATION_MAX_TEXT_LENGTH, Ot as SpeechUnscorableCode, P as DictationWordAlignment, Pt as RoundingMode, Q as GradeFromRubricOptions, R as GradeRoutingContext, Rt as roundGrade, S as resolveItemScoringPolicy, St as SpeechMeasurement, T as DICTATION_MAX_ACCEPTED_TRANSCRIPTS, Tt as SpeechPlausibilityPolicy, U as GradeFromJudgementOptions, V as outcomeFromRoutedGrade, W as gradeFromJudgement, X as calibrationReport, Y as TotalCalibration, Z as graderConfiguration, _ as alignReadAloud, _t as GradeSpeakingResponseOptions, a as evaluateTries, at as ItemTriesScore, b as DEFAULT_ITEM_SCORING_POLICY, bt as SpeakingEvidence, c as inspectWav, ct as ResolvedItemScoringPolicy, d as READ_ALOUD_MAX_SECONDS, dt as CompositionPolicy, et as hasGrade, f as READ_ALOUD_MAX_TAKES, ft as PassFailureReason, g as validateSpeechAssessment, gt as GradeReadAloudOptions, h as gradeReadAloud, ht as composeAssessmentScore, i as evaluate, it as ItemScoringPolicyIssue, j as diffDictationChars, jt as WavInspection, k as DICTATION_MAX_TRANSCRIPT_LENGTH, kt as SpeechWord, l as READ_ALOUD_MAX_DIMENSION_WEIGHT, lt as AssessmentScore, m as gradeSpeakingResponse, mt as SectionScore, n as ItemTriesOutcome, nt as ItemScoringCount, o as score, ot as ItemTry, p as SPEECH_ASSESSMENT_MAX_WORDS, pt as ScoredItem, q as CalibrationScope, r as ScoringOptions, rt as ItemScoringPolicy, s as outcomeFromUnscorable, st as ItemTryScore, t as EvaluateOptions, tt as outcomeFromGrade, u as READ_ALOUD_MAX_REFERENCE_LENGTH, ut as AssessmentSectionInput, v as DEFAULT_PASS_THRESHOLD, vt as ReadAloudWordAlignment, w as validateItemScoringPolicy, wt as SpeechPhonemeCandidate, x as ITEM_SCORING_MAX_RETRIES, xt as SpeechAssessment, y as computePassThreshold, yt as ReadAloudWordState, z as GradeRoutingPolicy } from "./index-DLsUnGHt.cjs";
|
|
3
|
+
import { A as RedactedStimulus, C as RedactedGapSelectChoice, D as RedactedMultipleChoiceOption, E as RedactedMultipleChoiceData, O as RedactedMultipleChoiceOptionMedia, S as RedactedGapSelectBank, T as RedactedGapSelectGap, _ as RedactedActivity, a as JsonSchemaTarget, b as RedactedDictationSlowMedia, c as fillInTheBlanksJsonSchema, d as jsonSchemaFor, f as multipleChoiceJsonSchema, g as validateItemGroup, h as writtenResponseJsonSchema, i as SCRIPT_MAX_TURNS, j as RedactedWrittenResponseData, k as RedactedReadAloudData, l as gapSelectJsonSchema, m as stimulusJsonSchema, n as validateMedia, o as contentJsonSchema, p as readAloudJsonSchema, r as validateOptionMedia, s as dictationJsonSchema, t as validateActivity, u as itemGroupJsonSchema, v as RedactedBlankConfig, w as RedactedGapSelectData, x as RedactedFillInTheBlanksData, y as RedactedDictationData } from "./index-Ccj8oL_E.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-BeC8tAWf.cjs";
|
|
5
5
|
/**
|
|
6
6
|
* What a model is told about the group a question sits in: the material the
|
|
7
7
|
* learner reads and sees beside it.
|
|
@@ -425,6 +425,39 @@ export declare function aiGradingRequest(input: {
|
|
|
425
425
|
problem: AiGradingRequestProblem;
|
|
426
426
|
path?: (string | number)[];
|
|
427
427
|
};
|
|
428
|
+
/**
|
|
429
|
+
* The request for a model's grade of a spoken answer (1.9), or why there is
|
|
430
|
+
* none to make.
|
|
431
|
+
*
|
|
432
|
+
* Built as a written response's is, on the server and from the whole item, with
|
|
433
|
+
* the take's evidence: the model reads `assessment.transcript` — the
|
|
434
|
+
* transcriber's verbatim text, the same text the engine measured the take
|
|
435
|
+
* against — and scores the criteria a judge scores: those that name no
|
|
436
|
+
* `measure`, or every criterion when `judgeMeasures` is set. The measured
|
|
437
|
+
* criteria go with it as context, with the engine's scores, so feedback can
|
|
438
|
+
* speak of them; the model does not score them.
|
|
439
|
+
*
|
|
440
|
+
* The evidence is checked as `gradeSpeakingResponse` checks it — valid,
|
|
441
|
+
* unscripted, for this item's locale and this response's recording — so a model
|
|
442
|
+
* is never paid to judge a take the grade would refuse. Read the reply with
|
|
443
|
+
* `checkAiGrading`, and grade with `gradeSpeakingResponse` under the same
|
|
444
|
+
* `judgeMeasures`.
|
|
445
|
+
*/
|
|
446
|
+
export declare function aiSpeakingGradingRequest(input: {
|
|
447
|
+
data: AiActivityInput;
|
|
448
|
+
response: LearnerResponse | null;
|
|
449
|
+
assessment: SpeechAssessment | null;
|
|
450
|
+
judgeMeasures?: boolean;
|
|
451
|
+
group?: AiGroupInput;
|
|
452
|
+
learnerLocale?: string;
|
|
453
|
+
}): {
|
|
454
|
+
ok: true;
|
|
455
|
+
request: AiSpeakingGradingRequest;
|
|
456
|
+
} | {
|
|
457
|
+
ok: false;
|
|
458
|
+
problem: AiSpeakingGradingRequestProblem;
|
|
459
|
+
path?: (string | number)[];
|
|
460
|
+
};
|
|
428
461
|
type Refused = {
|
|
429
462
|
ok: false;
|
|
430
463
|
refusal: AiRefusal;
|
|
@@ -454,7 +487,7 @@ type Refused = {
|
|
|
454
487
|
* The total is not computed here: `gradeFromJudgement` computes it, as
|
|
455
488
|
* `gradeFromRubric` computes every grade in the SDK.
|
|
456
489
|
*/
|
|
457
|
-
export declare function checkAiGrading(raw: unknown, request: AiGradingRequest): {
|
|
490
|
+
export declare function checkAiGrading(raw: unknown, request: AiGradingRequest | AiSpeakingGradingRequest): {
|
|
458
491
|
ok: true;
|
|
459
492
|
judgement: AiGradingJudgement;
|
|
460
493
|
} | Refused;
|
|
@@ -1314,7 +1347,7 @@ export declare function critiqueDraft(type: ActivityType, draft: unknown): ItemF
|
|
|
1314
1347
|
* The SDK's own registry holds exactly these, in this order, before a host
|
|
1315
1348
|
* registers anything.
|
|
1316
1349
|
*/
|
|
1317
|
-
export declare const BUILT_IN_ACTIVITY_TYPES: readonly ["multiple-choice", "fill-in-the-blanks", "written-response", "gap-select", "dictation", "read-aloud"];
|
|
1350
|
+
export declare const BUILT_IN_ACTIVITY_TYPES: readonly ["multiple-choice", "fill-in-the-blanks", "written-response", "gap-select", "dictation", "read-aloud", "speaking-response"];
|
|
1318
1351
|
/** One of {@link BUILT_IN_ACTIVITY_TYPES}: an activity type the SDK ships, not one a host registered. */
|
|
1319
1352
|
type BuiltInActivityType = (typeof BUILT_IN_ACTIVITY_TYPES)[number];
|
|
1320
1353
|
/** Whether `type` names an activity type the SDK ships. */
|
|
@@ -2394,5 +2427,5 @@ export declare function critiqueVersions(a: VersionPaper, b: VersionPaper, optio
|
|
|
2394
2427
|
lengthTolerance?: LengthTolerance;
|
|
2395
2428
|
allowSharedImages?: boolean;
|
|
2396
2429
|
}): VersionComparison;
|
|
2397
|
-
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 AiGeneratedVariant, 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 AiVariantDifficulty, type AiVariantExemplarFacts, type AiVariantImage, type AiVariantLevelFacts, type AiVariantMismatch, type AiVariantMissing, type AiVariantPair, type AiVariantSkip, type AiVariantSkipCode, type AiVariantTargets, type AiVariants, type AiVariantsRequest, type AiVariantsRun, 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 JsonSchemaTarget, type LearnerResponse, type LearnerResponseMap, type LengthTolerance, type MediaBudgetRef, type MediaPlayClaim, type MediaPlayGrant, type MediaPlayLedger, type MediaPlayLedgerEntry, type MediaPlaybackPolicy, type MediaProgress, type MediaSlot, 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, SCRIPT_MAX_TURNS, SPEECH_ASSESSMENT_MAX_WORDS, type ScoredItem, type ScoringDetail, ScoringOptions, type ScoringOutcome, type ScoringResult, type ScriptTurn, 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 VersionComparison, type VersionFinding, type VersionPaper, type VersionSlot, 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, contentJsonSchema, 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 };
|
|
2430
|
+
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 AiGeneratedVariant, 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 AiSpeakingCriterionFact, type AiSpeakingGradingFacts, type AiSpeakingGradingRequest, type AiSpeakingGradingRequestProblem, type AiSpeakingMeasureFact, type AiSupportedActivityType, type AiTextResult, type AiVariantDifficulty, type AiVariantExemplarFacts, type AiVariantImage, type AiVariantLevelFacts, type AiVariantMismatch, type AiVariantMissing, type AiVariantPair, type AiVariantSkip, type AiVariantSkipCode, type AiVariantTargets, type AiVariants, type AiVariantsRequest, type AiVariantsRun, 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 GradeSpeakingResponseOptions, 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 JsonSchemaTarget, type LearnerResponse, type LearnerResponseMap, type LengthTolerance, type MediaBudgetRef, type MediaPlayClaim, type MediaPlayGrant, type MediaPlayLedger, type MediaPlayLedgerEntry, type MediaPlaybackPolicy, type MediaProgress, type MediaSlot, 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, SCRIPT_MAX_TURNS, SPEECH_ASSESSMENT_MAX_WORDS, type ScoredItem, type ScoringDetail, ScoringOptions, type ScoringOutcome, type ScoringResult, type ScriptTurn, type SectionScore, type Sensitivity, type SequenceEntry, type SequenceSlot, type SequenceSlotGroup, type SpeakingEvidence, type SpeakingMeasure, type SpeakingResponseData, type SpeakingResponseLearnerResponse, type SpeakingRubric, type SpeakingRubricCriterion, 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 VersionComparison, type VersionFinding, type VersionPaper, type VersionSlot, 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, contentJsonSchema, dictationJsonSchema, dictationReferenceWords, diffDictationChars, evaluate, evaluateTries, fillInTheBlanksJsonSchema, gapSelectJsonSchema, gradeFromJudgement, gradeFromRubric, gradeReadAloud, gradeSpeakingResponse, 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 };
|
|
2398
2431
|
//# 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-grading.ts","../src/variant-rules.ts","../src/ai-variants.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/media-refs.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","../src/versions.ts"],"mappings":";;;;;;;;;;;;;;;;qBAiBa;;;;;;qBCoBA,+BAA+B;qBAM/B,wBAAwB;;qBAOxB;;;;;;wBASG,WAAW,sBAAsB,SAAS;;;;;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;;;;;;;;;;;;;;;;;;;;;;wBA4DmB,eAAe;EACnC,SAAS;EACT,OAAO,SAAS,oBAAoB;EACpC;EACA;IACE,QAAQ;;;;;;;;;;;;;;;;;;;;wBAmGI,2BAA2B;EACzC,SAAS;EACT,QAAQ,WAAW,uBAAuB;EAC1C,OAAO;EACP;EACA;EACA;IACE;;;;;
|
|
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/variant-rules.ts","../src/ai-variants.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/media-refs.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","../src/versions.ts"],"mappings":";;;;;;;;;;;;;;;;qBAiBa;;;;;;qBCoBA,+BAA+B;qBAM/B,wBAAwB;;qBAOxB;;;;;;wBASG,WAAW,sBAAsB,SAAS;;;;;;;;;wBAmB1C,mBAAmB,MAAM,iBAAiB,SAAS;;wBAUnD,UAAU;EAAU;EAAe;EAAkB;IAAoB;;;;;;;;;;wBAoFzE,aACd,MAAM,iBACN,UAAU,wBACV,kBAAkB,yBACjB;;;;;;;;;;;;;;;;;wBAyKa,qBAAqB;EACnC,MAAM;EACN,UAAU;EACV,UAAU;EACV,QAAQ;EACR;IACE;;;;;;;;;;;;;;wBAoDY,cAAc;EAC5B,MAAM;EACN,UAAU;EACV;EACA,QAAQ;EACR;IAC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