@intellectif/lk-core 1.11.0 → 1.13.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 +25 -0
- package/README.md +1 -1
- package/dist/ai-check.cjs +2 -2
- package/dist/ai-check.d.cts +1 -1
- package/dist/ai-check.d.ts +1 -1
- package/dist/ai-check.js +2 -2
- package/dist/{ai-Cu17iVHa.d.ts → ai-hC5pGYeu.d.cts} +122 -5
- package/dist/ai-hC5pGYeu.d.cts.map +1 -0
- package/dist/{ai-Cu17iVHa.d.cts → ai-hC5pGYeu.d.ts} +122 -5
- package/dist/ai-hC5pGYeu.d.ts.map +1 -0
- package/dist/{ai-writing-C7f6aKNW.cjs → ai-writing-BDSYuifR.cjs} +18 -5
- package/dist/ai-writing-BDSYuifR.cjs.map +1 -0
- package/dist/{ai-writing-Dl1bJQbL.js → ai-writing-Dsmvv4T-.js} +18 -5
- package/dist/ai-writing-Dsmvv4T-.js.map +1 -0
- package/dist/{index-CpamCGyZ.d.cts → index-4x0auNOv.d.cts} +2 -2
- package/dist/{index-CpamCGyZ.d.cts.map → index-4x0auNOv.d.cts.map} +1 -1
- package/dist/{index-DjZ1vIVg.d.cts → index-BlJU10O4.d.cts} +26 -4
- package/dist/index-BlJU10O4.d.cts.map +1 -0
- package/dist/{index-BfUyl6ml.d.ts → index-DVW_N4pJ.d.ts} +26 -4
- package/dist/index-DVW_N4pJ.d.ts.map +1 -0
- package/dist/{index-BTZWUwOe.d.ts → index-Dlei-7PX.d.ts} +2 -2
- package/dist/{index-BTZWUwOe.d.ts.map → index-Dlei-7PX.d.ts.map} +1 -1
- package/dist/{index-DYnacygI.d.cts → index-DohEHH10.d.cts} +2 -2
- package/dist/{index-DYnacygI.d.cts.map → index-DohEHH10.d.cts.map} +1 -1
- package/dist/{index-B1zEN1Ur.d.ts → index-Du9Kx_H6.d.ts} +2 -2
- package/dist/{index-B1zEN1Ur.d.ts.map → index-Du9Kx_H6.d.ts.map} +1 -1
- package/dist/index.cjs +12 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -14
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +28 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/dist/{item-group-D7M3E7K2.cjs → item-group-CqdByaLR.cjs} +100 -26
- package/dist/item-group-CqdByaLR.cjs.map +1 -0
- package/dist/{item-group-uNAT5EX5.js → item-group-vTcNy2JF.js} +95 -27
- package/dist/item-group-vTcNy2JF.js.map +1 -0
- package/dist/{registry-kTqbi4Lb.js → registry-Cn2it-y7.js} +388 -3
- package/dist/registry-Cn2it-y7.js.map +1 -0
- package/dist/{registry-RPfZZEqi.cjs → registry-DUTE1vtq.cjs} +388 -3
- package/dist/registry-DUTE1vtq.cjs.map +1 -0
- package/dist/{schemas-C4V5wfOS.cjs → schemas-BrA6CFWz.cjs} +3 -3
- package/dist/{schemas-C4V5wfOS.cjs.map → schemas-BrA6CFWz.cjs.map} +1 -1
- package/dist/{schemas-rDgIN4Vu.js → schemas-DlxeS7Lu.js} +3 -3
- package/dist/{schemas-rDgIN4Vu.js.map → schemas-DlxeS7Lu.js.map} +1 -1
- package/dist/schemas.cjs +3 -3
- package/dist/schemas.d.cts +2 -2
- package/dist/schemas.d.ts +2 -2
- package/dist/schemas.js +3 -3
- package/dist/{scoring-KpYfR0lO.cjs → scoring-IjLi2fYF.cjs} +2 -2
- package/dist/{scoring-KpYfR0lO.cjs.map → scoring-IjLi2fYF.cjs.map} +1 -1
- package/dist/{scoring-DshU9i7e.js → scoring-weQ4SzwB.js} +2 -2
- package/dist/{scoring-DshU9i7e.js.map → scoring-weQ4SzwB.js.map} +1 -1
- package/dist/scoring.cjs +2 -2
- package/dist/scoring.d.cts +2 -2
- package/dist/scoring.d.ts +2 -2
- package/dist/scoring.js +2 -2
- package/dist/{xapi-CaM7f1sD.cjs → xapi-BqEbpWag.cjs} +2 -2
- package/dist/{xapi-CaM7f1sD.cjs.map → xapi-BqEbpWag.cjs.map} +1 -1
- package/dist/{xapi-fFq9KEXG.js → xapi-DbRVH_RB.js} +2 -2
- package/dist/{xapi-fFq9KEXG.js.map → xapi-DbRVH_RB.js.map} +1 -1
- package/dist/xapi.cjs +1 -1
- package/dist/xapi.d.cts +1 -1
- package/dist/xapi.d.ts +1 -1
- package/dist/xapi.js +1 -1
- package/package.json +1 -1
- package/vectors/scoring.json +934 -1
- package/vectors/validation.json +827 -1
- package/dist/ai-Cu17iVHa.d.cts.map +0 -1
- package/dist/ai-Cu17iVHa.d.ts.map +0 -1
- package/dist/ai-writing-C7f6aKNW.cjs.map +0 -1
- package/dist/ai-writing-Dl1bJQbL.js.map +0 -1
- package/dist/index-BfUyl6ml.d.ts.map +0 -1
- package/dist/index-DjZ1vIVg.d.cts.map +0 -1
- package/dist/item-group-D7M3E7K2.cjs.map +0 -1
- package/dist/item-group-uNAT5EX5.js.map +0 -1
- package/dist/registry-RPfZZEqi.cjs.map +0 -1
- package/dist/registry-kTqbi4Lb.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @intellectif/lk-core
|
|
2
2
|
|
|
3
|
+
## 1.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#170](https://github.com/intellectif/learning-kit/pull/170) [`5697510`](https://github.com/intellectif/learning-kit/commit/569751058c8bb85015c75f7f59a7d3a1f827f7de) Thanks [@diego28e](https://github.com/diego28e)! - **Matching: prompts matched to a shared list — headings to paragraphs, statements to people, sentence beginnings to endings — with `<Matching>` to draw it**
|
|
8
|
+
|
|
9
|
+
**Action required:** none for content and grades. Install lk-core 1.13.0 with lk-react 23.10.0. **No grade changes:** every stored grade and validation result replays as before. Two type-level additions can need a line of code: `matching` joins `BUILT_IN_ACTIVITY_TYPES`, `INTERACTIVE_VIDEO_ITEM_TYPES` and `READING_ROUTE_ITEM_TYPES`, and `RedactedMatchingData` joins `RedactedActivity`, so a `switch` or `Record` that is exhaustive over one of them needs a `matching` entry. A host that registered an activity type of its own named `matching` must rename it before upgrading: `registerActivityType` refuses a second descriptor for a built-in type.
|
|
10
|
+
|
|
11
|
+
- **lk-core:** the `matching` activity type — `MatchingData` with `prompts`, a shared `options` list (each option a `label` such as "A" or "iv", and its text), an `optionsTitle`, `optionUse: 'once' | 'many'` and a seeded `shuffleOptions`. Scored per prompt by option id, `partial` or `all-or-nothing`; an unanswered prompt is `incorrect-omission`. Redaction keeps the list and the prompts and withholds each prompt's `correctOptionId` (`RedactedMatchingData`). Draft checks under `mt_*` codes, four critic findings (`mt_no_distractor` among them), the xAPI `matching` interaction, and frozen grade and validation vectors.
|
|
12
|
+
- **lk-core, reading routes:** a matching item's prompts are route questions, one per `partId`. The matching strategies — headings, information, features, sentence endings, multiple matching, gapped text and cross-text — accept it, and their elimination step points at the shared list. Route messages now name a part by its kind: "Gap", "Blank" or "Prompt".
|
|
13
|
+
- **lk-core, interactive video:** a video quiz may hold a matching question.
|
|
14
|
+
- **lk-react:** `<Matching>` (also `@intellectif/lk-react/components/Matching`): the list under its title, a native selector per prompt, and — with `optionUse: 'once'` — an option picked again moves from the prompt that held it, announced to screen readers. After a check it marks each prompt and shows the right option beside a wrong one where the delivery policy shows answers. `<ActivitySequence>`, `<ActivityPreview>`, `<ReadingRoute>` and `<InteractiveVideo>` draw it, and the sequence's seed guard covers `shuffleOptions`. New strings: `matchPlaceholder`, `matchOptionsLabel`, `matchOptionUsed`, `matchMoved`, `matchCorrectAnswer`. New class hooks: `.lk-mt` and its parts. See https://github.com/intellectif/learning-kit/blob/main/docs/authoring.md#matching--prompts-matched-to-a-shared-list-113
|
|
15
|
+
- Not yet: AI explanations, hints, drafts and variants for a matching item; `aiSupports('matching', …)` is `false`.
|
|
16
|
+
|
|
17
|
+
## 1.12.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- [#167](https://github.com/intellectif/learning-kit/pull/167) [`6d920d2`](https://github.com/intellectif/learning-kit/commit/6d920d2d8c36bf09ca9a0811081dcacd2554df7a) Thanks [@diego28e](https://github.com/diego28e)! - **Reading quizzes in an interactive video: a quiz the reading route covers opens as a guided reading route in practice**
|
|
22
|
+
|
|
23
|
+
**Action required:** none. Install lk-core 1.12.0 with lk-react 23.9.0: lk-react calls the new lk-core function. **No grade changes:** every question in a reading quiz is recorded and scored by the video as in any quiz. Content 1.11.0 accepted is still accepted; a route in an interactive video, which 1.11.0 refused with `ig_route_with_timeline`, is now valid, and that code is no longer reported.
|
|
24
|
+
|
|
25
|
+
- **lk-core:** a group with a `timeline` may carry a `route` when the video stimulus holds the passage as its text (`stimulus.body`). A quiz whose every question the route covers is a reading quiz; `readingQuizzes(group)` lists them. The new `ig_route_quiz_mixed` refuses a quiz the route covers only part of; a route on a video with no timeline is still refused (`ig_route_stimulus_kind`).
|
|
26
|
+
- **lk-react:** in `practice`, `<InteractiveVideo>` opens a reading quiz as a `<ReadingRoute>` in its quiz panel, with the passage beside the quiz's questions; its new `readingRoute` prop takes the route's settings and `onFinish(result, cueId)`. Each answer is recorded under its own slot, and an answer given but not handed in is handed in when the learner finishes. In `exam` and `review`, a reading quiz is an ordinary quiz. The route is loaded only by a video that has one. See https://github.com/intellectif/learning-kit/blob/main/docs/reading-route.md#in-an-interactive-video
|
|
27
|
+
|
|
3
28
|
## 1.11.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ npm install @intellectif/lk-core
|
|
|
14
14
|
|
|
15
15
|
## What's in the box
|
|
16
16
|
|
|
17
|
-
- **Activity schemas** for `multiple-choice`, `fill-in-the-blanks`, `written-response`, `gap-select`, `dictation
|
|
17
|
+
- **Activity schemas** for `multiple-choice`, `fill-in-the-blanks`, `written-response`, `gap-select`, `dictation`, `read-aloud`, `speaking-response` and `matching`, with semantic refinements (e.g. *at least one correct option*, *single-select ⇒ exactly one correct*, *passage ↔ blank-id bijection*, *image/embed require `alt`*, *a dictation title never contains its whole transcript as words*, *a read-aloud's text leaves at least one word once punctuation is folded away*). Loose at every level, so your sidecar fields survive validation.
|
|
18
18
|
- **Interactive video** — an item group whose stimulus is a video can carry a `timeline`: quizzes at moments of the video, each holding questions of that group. The schema places every question in exactly one quiz, keeps the five embeddable types honest and refuses a dictation with no recording of its own; `readMediaProgress` reads a stored resume point without trusting it, and `composeTimelineScore` folds the video's questions into an attempt's score. See [docs/interactive-video.md](https://github.com/intellectif/learning-kit/blob/main/docs/interactive-video.md).
|
|
19
19
|
- **`validateActivity(type, data)`** — the authoritative runtime validator. Returns a typed `{ success, data }` or a structured `{ success: false, errors[] }`, and **throws `UnknownActivityTypeError` if `type` is not registered** — so guard it when validating a content bank that may carry types this build does not know. `validateItemGroup(data)` is the equivalent for a `Stimulus` + `ItemGroup` container, which `validateActivity` cannot take.
|
|
20
20
|
- **`validateDraft(type, draft)`** — for editors. Reports `complete`, `incomplete` (something not written yet) or `invalid` (something wrong), each issue with a `severity` and a `code` — documented for every problem the checks recognise — and deliberately no `success` boolean to misread. Stricter than `validateActivity`, never looser. **`createDraft(type, { newId })`** returns an empty draft to start from; a multiple-choice draft marks no option correct.
|
package/dist/ai-check.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_ai_writing = require("./ai-writing-
|
|
3
|
-
const require_scoring = require("./scoring-
|
|
2
|
+
const require_ai_writing = require("./ai-writing-BDSYuifR.cjs");
|
|
3
|
+
const require_scoring = require("./scoring-IjLi2fYF.cjs");
|
|
4
4
|
// src/ai-check/cases.ts
|
|
5
5
|
/**
|
|
6
6
|
* The items the cases are built from. Small, ordinary language-course content
|
package/dist/ai-check.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ct as AiWritingFeedback, E as AiExplanationRequest, L as AiGradingJudgement, R as AiGradingRequest, S as AiDrafts, V as AiHintRequest, Y as AiRefusal, a as AiCoachingRequest, gt as AiVariantsRequest, ht as AiVariants, i as AiCoaching, it as AiTextResult, l as AiCritique, m as AiCritiqueRequest, w as AiDraftsRequest, wt as AiWritingFeedbackRequest } from "./ai-
|
|
1
|
+
import { Ct as AiWritingFeedback, E as AiExplanationRequest, L as AiGradingJudgement, R as AiGradingRequest, S as AiDrafts, V as AiHintRequest, Y as AiRefusal, a as AiCoachingRequest, gt as AiVariantsRequest, ht as AiVariants, i as AiCoaching, it as AiTextResult, l as AiCritique, m as AiCritiqueRequest, w as AiDraftsRequest, wt as AiWritingFeedbackRequest } from "./ai-hC5pGYeu.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* One call to make against a host's port, and what a learner was looking at
|
|
4
4
|
* when the SDK would have made it.
|
package/dist/ai-check.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ct as AiWritingFeedback, E as AiExplanationRequest, L as AiGradingJudgement, R as AiGradingRequest, S as AiDrafts, V as AiHintRequest, Y as AiRefusal, a as AiCoachingRequest, gt as AiVariantsRequest, ht as AiVariants, i as AiCoaching, it as AiTextResult, l as AiCritique, m as AiCritiqueRequest, w as AiDraftsRequest, wt as AiWritingFeedbackRequest } from "./ai-
|
|
1
|
+
import { Ct as AiWritingFeedback, E as AiExplanationRequest, L as AiGradingJudgement, R as AiGradingRequest, S as AiDrafts, V as AiHintRequest, Y as AiRefusal, a as AiCoachingRequest, gt as AiVariantsRequest, ht as AiVariants, i as AiCoaching, it as AiTextResult, l as AiCritique, m as AiCritiqueRequest, w as AiDraftsRequest, wt as AiWritingFeedbackRequest } from "./ai-hC5pGYeu.js";
|
|
2
2
|
/**
|
|
3
3
|
* One call to make against a host's port, and what a learner was looking at
|
|
4
4
|
* when the SDK would have made it.
|
package/dist/ai-check.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as checkAiCoaching, D as checkAiCritique, E as aiCritiqueRequest, Q as aiCoachingRequest, b as aiDraftsRequest, c as aiVariantsRequest, f as aiGradingRequest, it as aiExplanationRequest, l as checkAiVariants, lt as checkAiExplanation, m as checkAiGrading, n as checkAiWritingFeedback, ot as aiHintRequest, t as aiWritingFeedbackRequest, ut as checkAiHint, x as checkAiDrafts } from "./ai-writing-
|
|
2
|
-
import { s as gradeReadAloud } from "./scoring-
|
|
1
|
+
import { $ as checkAiCoaching, D as checkAiCritique, E as aiCritiqueRequest, Q as aiCoachingRequest, b as aiDraftsRequest, c as aiVariantsRequest, f as aiGradingRequest, it as aiExplanationRequest, l as checkAiVariants, lt as checkAiExplanation, m as checkAiGrading, n as checkAiWritingFeedback, ot as aiHintRequest, t as aiWritingFeedbackRequest, ut as checkAiHint, x as checkAiDrafts } from "./ai-writing-Dsmvv4T-.js";
|
|
2
|
+
import { s as gradeReadAloud } from "./scoring-weQ4SzwB.js";
|
|
3
3
|
// src/ai-check/cases.ts
|
|
4
4
|
/**
|
|
5
5
|
* The items the cases are built from. Small, ordinary language-course content
|
|
@@ -420,6 +420,7 @@ interface ActivityDataMap {
|
|
|
420
420
|
dictation: DictationData;
|
|
421
421
|
'read-aloud': ReadAloudData;
|
|
422
422
|
'speaking-response': SpeakingResponseData;
|
|
423
|
+
matching: MatchingData;
|
|
423
424
|
}
|
|
424
425
|
/**
|
|
425
426
|
* The set of activity types supported by learning-kit. Derived from
|
|
@@ -833,6 +834,101 @@ interface GapSelectData {
|
|
|
833
834
|
/** What an author allows AI to do for this item: see {@link ActivityAiPermissions}. */
|
|
834
835
|
ai?: ActivityAiPermissions;
|
|
835
836
|
}
|
|
837
|
+
/**
|
|
838
|
+
* One entry of a matching item's shared list: a heading, a person, a
|
|
839
|
+
* paragraph, a sentence ending.
|
|
840
|
+
*/
|
|
841
|
+
interface MatchingOption {
|
|
842
|
+
/** Unique identifier within the item. */
|
|
843
|
+
id: string;
|
|
844
|
+
/**
|
|
845
|
+
* The short key the learner answers with, as on the paper: `"A"`, `"iv"`.
|
|
846
|
+
* Shown before the text. Optional; unique within the item when given.
|
|
847
|
+
*/
|
|
848
|
+
label?: string;
|
|
849
|
+
/**
|
|
850
|
+
* What the learner reads: `"The cost of the new lines"`, `"Mary Lee"`. For a
|
|
851
|
+
* list that is only letters (which paragraph contains…), the letter itself.
|
|
852
|
+
*/
|
|
853
|
+
text: string;
|
|
854
|
+
}
|
|
855
|
+
/** One statement, question or sentence beginning the learner matches to an option. */
|
|
856
|
+
interface MatchingPrompt {
|
|
857
|
+
/** Unique identifier within the item. */
|
|
858
|
+
id: string;
|
|
859
|
+
/** What the learner reads, as plain text. */
|
|
860
|
+
text: string;
|
|
861
|
+
/** The `id` of the one option that answers it. */
|
|
862
|
+
correctOptionId: string;
|
|
863
|
+
/** Optional feedback shown beside this prompt after submission. */
|
|
864
|
+
feedback?: string;
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* Data contract for a Matching activity: several prompts, each matched to one
|
|
868
|
+
* entry of a shared list of options.
|
|
869
|
+
*
|
|
870
|
+
* It is the shape of the exam reading tasks that match: headings to
|
|
871
|
+
* paragraphs, statements to the paragraph or the person they come from,
|
|
872
|
+
* sentence beginnings to their endings, questions to the section that answers
|
|
873
|
+
* them. One list serves every prompt, and it is usually longer than the
|
|
874
|
+
* prompts, so the spare options are the distractors.
|
|
875
|
+
*
|
|
876
|
+
* It is **not** a {@link GapSelectData} with a bank, though both score a
|
|
877
|
+
* choice by identity. A matching prompt is a statement of its own, not a gap
|
|
878
|
+
* in a passage, and the list is the content the learner reads first — a list
|
|
879
|
+
* of headings, a list of people — with the labels the paper answers in.
|
|
880
|
+
* `optionUse: 'once'` says each option answers at most one prompt, which a
|
|
881
|
+
* word bank cannot say.
|
|
882
|
+
*/
|
|
883
|
+
interface MatchingData {
|
|
884
|
+
schemaVersion: '1.0';
|
|
885
|
+
type: 'matching';
|
|
886
|
+
/** Unique identifier for this activity. */
|
|
887
|
+
id: string;
|
|
888
|
+
/** Human-readable title used in xAPI statements and error boundaries. */
|
|
889
|
+
title: string;
|
|
890
|
+
/**
|
|
891
|
+
* Optional instructions shown to the learner, as plain text: the task, read
|
|
892
|
+
* before the lists ("Choose the correct heading for each paragraph from the
|
|
893
|
+
* list of headings below."). Every AI request about the item carries them.
|
|
894
|
+
*/
|
|
895
|
+
instructions?: string;
|
|
896
|
+
/** Optional title of the list of options, shown above it: `"List of Headings"`. */
|
|
897
|
+
optionsTitle?: string;
|
|
898
|
+
/** The statements to match, in the order the learner answers them. At least one. */
|
|
899
|
+
prompts: MatchingPrompt[];
|
|
900
|
+
/** The shared list, in the order shown. At least two. */
|
|
901
|
+
options: MatchingOption[];
|
|
902
|
+
/**
|
|
903
|
+
* `many` (default): an option may answer any number of prompts, as in
|
|
904
|
+
* "You may use any letter more than once". `once`: each option answers at
|
|
905
|
+
* most one prompt — the answer key never repeats one, and a learner who
|
|
906
|
+
* picks an option already used moves it to the new prompt.
|
|
907
|
+
*/
|
|
908
|
+
optionUse?: 'once' | 'many';
|
|
909
|
+
/** Scoring algorithm applied when the learner submits. */
|
|
910
|
+
scoringStrategy: 'all-or-nothing' | 'partial';
|
|
911
|
+
/**
|
|
912
|
+
* Whether the SDK shuffles the list of options. Off by default: an exam's
|
|
913
|
+
* list is printed in a fixed order. Seeded as `MultipleChoiceData.shuffle`
|
|
914
|
+
* is, and refused without a seed outside `practice` by `<ActivitySequence>`.
|
|
915
|
+
*/
|
|
916
|
+
shuffleOptions?: boolean;
|
|
917
|
+
/** Optional media shown above the lists. */
|
|
918
|
+
media?: ActivityMedia;
|
|
919
|
+
/** Optional authored overall feedback shown after submission. */
|
|
920
|
+
feedback?: ActivityFeedback;
|
|
921
|
+
/** Minimum scaled score [0–1] required to pass. Defaults to {@link DEFAULT_PASS_THRESHOLD} (0.7) when absent. */
|
|
922
|
+
passThreshold?: number;
|
|
923
|
+
/** BCP 47 language tag for the activity content. */
|
|
924
|
+
locale?: string;
|
|
925
|
+
/** IRI references to learning objectives addressed by this activity. */
|
|
926
|
+
learningObjectives?: string[];
|
|
927
|
+
/** Subjective difficulty on a 1–5 scale. */
|
|
928
|
+
difficultyLevel?: 1 | 2 | 3 | 4 | 5;
|
|
929
|
+
/** What an author allows AI to do for this item: see {@link ActivityAiPermissions}. */
|
|
930
|
+
ai?: ActivityAiPermissions;
|
|
931
|
+
}
|
|
836
932
|
interface FillInTheBlanksData {
|
|
837
933
|
schemaVersion: '1.0';
|
|
838
934
|
type: 'fill-in-the-blanks';
|
|
@@ -1172,6 +1268,7 @@ interface LearnerResponseMap {
|
|
|
1172
1268
|
dictation: DictationLearnerResponse;
|
|
1173
1269
|
'read-aloud': ReadAloudLearnerResponse;
|
|
1174
1270
|
'speaking-response': SpeakingResponseLearnerResponse;
|
|
1271
|
+
matching: MatchingLearnerResponse;
|
|
1175
1272
|
}
|
|
1176
1273
|
/** Union of all learner response shapes. */
|
|
1177
1274
|
type LearnerResponse = LearnerResponseMap[keyof LearnerResponseMap];
|
|
@@ -1225,6 +1322,26 @@ interface GapSelectLearnerResponse {
|
|
|
1225
1322
|
*/
|
|
1226
1323
|
hintsRevealed?: number;
|
|
1227
1324
|
}
|
|
1325
|
+
/**
|
|
1326
|
+
* Learner response for a Matching activity.
|
|
1327
|
+
*
|
|
1328
|
+
* A prompt the learner has not answered is **absent from the map, or holds an
|
|
1329
|
+
* empty string** — equivalent, as in {@link GapSelectLearnerResponse}, and
|
|
1330
|
+
* scored as `incorrect-omission`, never as a wrong answer.
|
|
1331
|
+
*/
|
|
1332
|
+
interface MatchingLearnerResponse {
|
|
1333
|
+
type: 'matching';
|
|
1334
|
+
/** Map of prompt ID to the ID of the option the learner matched it with. */
|
|
1335
|
+
matches: Record<string, string>;
|
|
1336
|
+
/**
|
|
1337
|
+
* Hints the learner was shown before submitting this answer, counted from
|
|
1338
|
+
* the start of the question — the author's and AI hints alike. Written by
|
|
1339
|
+
* the SDK's components in `practice`; absent or 0 means none. A scoring
|
|
1340
|
+
* policy's `hintPenalty` charges for them. Client-reported, like any count
|
|
1341
|
+
* a browser makes.
|
|
1342
|
+
*/
|
|
1343
|
+
hintsRevealed?: number;
|
|
1344
|
+
}
|
|
1228
1345
|
/** Learner response for a Written Response activity. */
|
|
1229
1346
|
interface WrittenResponseLearnerResponse {
|
|
1230
1347
|
type: 'written-response';
|
|
@@ -1843,7 +1960,7 @@ interface RouteTrap {
|
|
|
1843
1960
|
interface RouteQuestion {
|
|
1844
1961
|
/** The item's `id`. */
|
|
1845
1962
|
itemId: string;
|
|
1846
|
-
/** The blank or
|
|
1963
|
+
/** The blank, gap or prompt id. Required for fill-in-the-blanks, gap-select and matching; absent for multiple-choice. */
|
|
1847
1964
|
partId?: string;
|
|
1848
1965
|
strategy: RouteStrategyId;
|
|
1849
1966
|
/**
|
|
@@ -1894,7 +2011,7 @@ interface ReadingRoute {
|
|
|
1894
2011
|
paragraphLabels?: string[];
|
|
1895
2012
|
/** The stimulus's texts or sections, when it has several (cross-text, multiple matching). Their paragraphs add up to the passage's. */
|
|
1896
2013
|
sections?: RouteSection[];
|
|
1897
|
-
/** One per question of the group, in any order: numbering follows the items and their blanks or
|
|
2014
|
+
/** One per question of the group, in any order: numbering follows the items and their blanks, gaps or prompts. */
|
|
1898
2015
|
questions: RouteQuestion[];
|
|
1899
2016
|
}
|
|
1900
2017
|
/**
|
|
@@ -1963,7 +2080,7 @@ interface PassageLayout {
|
|
|
1963
2080
|
}
|
|
1964
2081
|
/** A route question with every quote resolved against the passage. */
|
|
1965
2082
|
interface PlannedQuestion {
|
|
1966
|
-
/** `itemId`, or `itemId#partId` for a blank or
|
|
2083
|
+
/** `itemId`, or `itemId#partId` for a blank, gap or prompt. Names the question in traces and summaries. */
|
|
1967
2084
|
key: string;
|
|
1968
2085
|
itemId: string;
|
|
1969
2086
|
partId?: string;
|
|
@@ -3551,5 +3668,5 @@ interface AiVariantsRun {
|
|
|
3551
3668
|
/** Every call, in order: the first, then each repair. */
|
|
3552
3669
|
calls: AiDraftsCall[];
|
|
3553
3670
|
}
|
|
3554
|
-
export { AiSpeakingGradingFacts as $,
|
|
3555
|
-
//# sourceMappingURL=ai-
|
|
3671
|
+
export { AiSpeakingGradingFacts as $, MatchingLearnerResponse as $n, TextMatchResult as $r, RouteMoveId as $t, AiGapSelectFacts as A, ActivityResult as An, WrittenResponseRubricCriterion as Ar, SequenceSlot as At, AiGroupInput as B, FillInTheBlanksData as Bn, XAPIStatement as Br, PlannedPair as Bt, AiDraftsCall as C, VersionFinding as Cn, SpeakingRubric as Cr, AiWritingFeedback as Ct, AiFeature as D, ActivityDataMap as Dn, WrittenResponseData as Dr, MediaProgress as Dt, AiExplanationRequest as E, ActivityData as En, ValidationResult as Er, ItemGroup as Et, AiGradingCriterionFact as F, DictationData as Fn, XAPIContextActivities as Fr, TimelineCue as Ft, AiOptionFact as G, GapSelectGap as Gn, GradeRoutingReason as Gr, RouteAnswer as Gt, AiItemFacts as H, GapSelectBank as Hn, CriterionScore as Hr, PlannedTrap as Ht, AiGradingFacts as I, DictationEquivalence as In, XAPIError as Ir, PassageLayout as It, AiReadingWordFact as J, InteractionKind as Jn, GraderKind as Jr, RouteFadingOptions as Jt, AiProvenance as K, GapSelectLearnerResponse as Kn, Grader as Kr, RouteCause as Kt, AiGradingJudgement as L, DictationLearnerResponse as Ln, XAPIObject as Lr, PassageParagraph as Lt, AiGeneratedVariant as M, BlankConfig as Mn, XAPIActor as Mr, Stimulus as Mt, AiGrade as N, DeferredReason as Nn, XAPIConfig as Nr, StimulusKind as Nt, AiFillInTheBlanksFacts as O, ActivityFeedback as On, WrittenResponseLearnerResponse as Or, MediaTimeline as Ot, AiGradedCriterion as P, DeferredScoringPartial as Pn, XAPIContext as Pr, TimelineChapter as Pt, AiSpeakingCriterionFact as Q, MatchingData as Qn, TextMatchPolicy as Qr, RouteLink as Qt, AiGradingRequest as R, DictationSlowMedia as Rn, XAPIResult as Rr, PassageSection as Rt, AiDrafts as S, VersionComparison as Sn, SpeakingResponseLearnerResponse as Sr, AiWritingFacts as St, AiDraftsRun as T, VersionSlot as Tn, ValidationError as Tr, AiWritingFeedbackResult as Tt, AiMaterialFacts as U, GapSelectChoice as Un, GradeRecord as Ur, QuotedRange as Ut, AiHintRequest as V, FillInTheBlanksLearnerResponse as Vn, XAPIVerbObject as Vr, PlannedQuestion as Vt, AiMultipleChoiceFacts as W, GapSelectData as Wn, GradeRouting as Wr, ReadingRoute as Wt, AiRubricCriterionFact as X, LearnerResponse as Xn, GradingState as Xr, RouteLearnerState as Xt, AiRefusal as Y, ItemOutcome as Yn, GraderUsage as Yr, RouteKeyword as Yt, AiSoundFact as Z, LearnerResponseMap as Zn, InlineCorrection as Zr, RouteLevel as Zt, AiDraftCaption as _, DraftNotComplete as _n, ScoringOutcome as _r, AiVariantsRun as _t, AiCoachingRequest as a, RouteSection as an, MultipleChoiceLearnerResponse as ar, AiVariantDifficulty as at, AiDraftSource as b, ItemFinding as bn, SpeakingMeasure as br, AiWordFact as bt, AiCriterionJudgement as c, RouteStrategySummary as cn, NativeControlHint as cr, AiVariantLevelFacts as ct, AiCritiqueFinding as d, RouteTrap as dn, ReadAloudDimensionWeight as dr, AiVariantPair as dt, levenshteinDistance as ei, RoutePlan as en, MatchingOption as er, AiSpeakingGradingRequest as et, AiCritiqueFindingResult as f, RouteTrapKind as fn, ReadAloudLearnerResponse as fr, AiVariantSkip as ft, AiDictationFacts as g, DraftIssue as gn, ScoringDetail as gr, AiVariantsRequest as gt, AiCritiqueResult as h, DraftContext as hn, RecordingRef as hr, AiVariants as ht, AiCoaching as i, RouteQuote as in, MultipleChoiceData as ir, AiTextResult as it, AiGeneratedDraft as j, ActivityType as jn, WrittenResponseRubricLevel as jr, SequenceSlotGroup as jt, AiGapFact as k, ActivityMedia as kn, WrittenResponseRubric as kr, SequenceEntry as kt, AiCritique as l, RouteSummary as ln, ReadAloudData as lr, AiVariantMismatch as lt, AiCritiqueRequest as m, DraftComplete as mn, RecordingBounds as mr, AiVariantTargets as mt, AiActivityInput as n, RouteQuestionPart as nn, MediaPlaybackPolicy as nr, AiSpeakingMeasureFact as nt, AiCoachingResult as o, RouteStep as on, MultipleChoiceOption as or, AiVariantExemplarFacts as ot, AiCritiqueKind as p, TextRange as pn, ReadAloudSlowMedia as pr, AiVariantSkipCode as pt, AiReadingFacts as q, InteractionEvent as qn, GraderConfiguration as qr, RouteEvent as qt, AiBlankFact as r, RouteQuestionSummary as rn, MediaTrack as rr, AiSupportedActivityType as rt, AiCoachingWord as s, RouteStrategyId as sn, MultipleChoiceOptionMedia as sr, AiVariantImage as st, ActivityAiPermissions as t, matchText as ti, RouteQuestion as tn, MatchingPrompt as tr, AiSpeakingGradingRequestProblem as tt, AiCritiqueField as u, RouteTrace as un, ReadAloudDimension as ur, AiVariantMissing as ut, AiDraftProblem as v, DraftSeverity as vn, ScoringResult as vr, AiVerdict as vt, AiDraftsRequest as w, VersionPaper as wn, SpeakingRubricCriterion as wr, AiWritingFeedbackRequest as wt, AiDraftType as x, ItemFindingSeverity as xn, SpeakingResponseData as xr, AiWritingCorrection as xt, AiDraftSettings as y, DraftValidationResult as yn, ScriptTurn as yr, AiVideoDraft as yt, AiGradingRequestProblem as z, DictationTolerance as zn, XAPIScore as zr, PassageSentence as zt };
|
|
3672
|
+
//# sourceMappingURL=ai-hC5pGYeu.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-hC5pGYeu.d.cts","names":[],"sources":["../src/scoring/text-match.ts","../src/types/grading.ts","../src/types/xapi.ts","../src/types/activity.ts","../src/types/authoring.ts","../src/types/reading-route.ts","../src/types/item-group.ts","../src/types/ai.ts"],"mappings":";;;;;;;;UAQiB;;EAEf;;EAEA;;;;;;;EAOA;;EAEA;;EAEA;;EAEA;;EAEA;;;;;EAKA;;;;;;;;;;;;UAae;EACf;EACA;;;;;;iBAmDc,oBAAoB,WAAW,WAAW;;;;;;;;;;;iBAoC1C,UACd,eACA,sCACA,SAAQ,kBACP;;;;;;KCrHS;;;;;;;;;KAUA;;UAGK;EACf,MAAM;;EAEN;;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EV,SAAS;;EAET,UAAU;EACV,aAAa;EACb,QAAQ;;;UAIO;;EAEf,UAAU;;EAEV,SAAS;;EAET,UAAU;;EAEV,SAAS;;EAET,OAAO"}
|
|
@@ -420,6 +420,7 @@ interface ActivityDataMap {
|
|
|
420
420
|
dictation: DictationData;
|
|
421
421
|
'read-aloud': ReadAloudData;
|
|
422
422
|
'speaking-response': SpeakingResponseData;
|
|
423
|
+
matching: MatchingData;
|
|
423
424
|
}
|
|
424
425
|
/**
|
|
425
426
|
* The set of activity types supported by learning-kit. Derived from
|
|
@@ -833,6 +834,101 @@ interface GapSelectData {
|
|
|
833
834
|
/** What an author allows AI to do for this item: see {@link ActivityAiPermissions}. */
|
|
834
835
|
ai?: ActivityAiPermissions;
|
|
835
836
|
}
|
|
837
|
+
/**
|
|
838
|
+
* One entry of a matching item's shared list: a heading, a person, a
|
|
839
|
+
* paragraph, a sentence ending.
|
|
840
|
+
*/
|
|
841
|
+
interface MatchingOption {
|
|
842
|
+
/** Unique identifier within the item. */
|
|
843
|
+
id: string;
|
|
844
|
+
/**
|
|
845
|
+
* The short key the learner answers with, as on the paper: `"A"`, `"iv"`.
|
|
846
|
+
* Shown before the text. Optional; unique within the item when given.
|
|
847
|
+
*/
|
|
848
|
+
label?: string;
|
|
849
|
+
/**
|
|
850
|
+
* What the learner reads: `"The cost of the new lines"`, `"Mary Lee"`. For a
|
|
851
|
+
* list that is only letters (which paragraph contains…), the letter itself.
|
|
852
|
+
*/
|
|
853
|
+
text: string;
|
|
854
|
+
}
|
|
855
|
+
/** One statement, question or sentence beginning the learner matches to an option. */
|
|
856
|
+
interface MatchingPrompt {
|
|
857
|
+
/** Unique identifier within the item. */
|
|
858
|
+
id: string;
|
|
859
|
+
/** What the learner reads, as plain text. */
|
|
860
|
+
text: string;
|
|
861
|
+
/** The `id` of the one option that answers it. */
|
|
862
|
+
correctOptionId: string;
|
|
863
|
+
/** Optional feedback shown beside this prompt after submission. */
|
|
864
|
+
feedback?: string;
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* Data contract for a Matching activity: several prompts, each matched to one
|
|
868
|
+
* entry of a shared list of options.
|
|
869
|
+
*
|
|
870
|
+
* It is the shape of the exam reading tasks that match: headings to
|
|
871
|
+
* paragraphs, statements to the paragraph or the person they come from,
|
|
872
|
+
* sentence beginnings to their endings, questions to the section that answers
|
|
873
|
+
* them. One list serves every prompt, and it is usually longer than the
|
|
874
|
+
* prompts, so the spare options are the distractors.
|
|
875
|
+
*
|
|
876
|
+
* It is **not** a {@link GapSelectData} with a bank, though both score a
|
|
877
|
+
* choice by identity. A matching prompt is a statement of its own, not a gap
|
|
878
|
+
* in a passage, and the list is the content the learner reads first — a list
|
|
879
|
+
* of headings, a list of people — with the labels the paper answers in.
|
|
880
|
+
* `optionUse: 'once'` says each option answers at most one prompt, which a
|
|
881
|
+
* word bank cannot say.
|
|
882
|
+
*/
|
|
883
|
+
interface MatchingData {
|
|
884
|
+
schemaVersion: '1.0';
|
|
885
|
+
type: 'matching';
|
|
886
|
+
/** Unique identifier for this activity. */
|
|
887
|
+
id: string;
|
|
888
|
+
/** Human-readable title used in xAPI statements and error boundaries. */
|
|
889
|
+
title: string;
|
|
890
|
+
/**
|
|
891
|
+
* Optional instructions shown to the learner, as plain text: the task, read
|
|
892
|
+
* before the lists ("Choose the correct heading for each paragraph from the
|
|
893
|
+
* list of headings below."). Every AI request about the item carries them.
|
|
894
|
+
*/
|
|
895
|
+
instructions?: string;
|
|
896
|
+
/** Optional title of the list of options, shown above it: `"List of Headings"`. */
|
|
897
|
+
optionsTitle?: string;
|
|
898
|
+
/** The statements to match, in the order the learner answers them. At least one. */
|
|
899
|
+
prompts: MatchingPrompt[];
|
|
900
|
+
/** The shared list, in the order shown. At least two. */
|
|
901
|
+
options: MatchingOption[];
|
|
902
|
+
/**
|
|
903
|
+
* `many` (default): an option may answer any number of prompts, as in
|
|
904
|
+
* "You may use any letter more than once". `once`: each option answers at
|
|
905
|
+
* most one prompt — the answer key never repeats one, and a learner who
|
|
906
|
+
* picks an option already used moves it to the new prompt.
|
|
907
|
+
*/
|
|
908
|
+
optionUse?: 'once' | 'many';
|
|
909
|
+
/** Scoring algorithm applied when the learner submits. */
|
|
910
|
+
scoringStrategy: 'all-or-nothing' | 'partial';
|
|
911
|
+
/**
|
|
912
|
+
* Whether the SDK shuffles the list of options. Off by default: an exam's
|
|
913
|
+
* list is printed in a fixed order. Seeded as `MultipleChoiceData.shuffle`
|
|
914
|
+
* is, and refused without a seed outside `practice` by `<ActivitySequence>`.
|
|
915
|
+
*/
|
|
916
|
+
shuffleOptions?: boolean;
|
|
917
|
+
/** Optional media shown above the lists. */
|
|
918
|
+
media?: ActivityMedia;
|
|
919
|
+
/** Optional authored overall feedback shown after submission. */
|
|
920
|
+
feedback?: ActivityFeedback;
|
|
921
|
+
/** Minimum scaled score [0–1] required to pass. Defaults to {@link DEFAULT_PASS_THRESHOLD} (0.7) when absent. */
|
|
922
|
+
passThreshold?: number;
|
|
923
|
+
/** BCP 47 language tag for the activity content. */
|
|
924
|
+
locale?: string;
|
|
925
|
+
/** IRI references to learning objectives addressed by this activity. */
|
|
926
|
+
learningObjectives?: string[];
|
|
927
|
+
/** Subjective difficulty on a 1–5 scale. */
|
|
928
|
+
difficultyLevel?: 1 | 2 | 3 | 4 | 5;
|
|
929
|
+
/** What an author allows AI to do for this item: see {@link ActivityAiPermissions}. */
|
|
930
|
+
ai?: ActivityAiPermissions;
|
|
931
|
+
}
|
|
836
932
|
interface FillInTheBlanksData {
|
|
837
933
|
schemaVersion: '1.0';
|
|
838
934
|
type: 'fill-in-the-blanks';
|
|
@@ -1172,6 +1268,7 @@ interface LearnerResponseMap {
|
|
|
1172
1268
|
dictation: DictationLearnerResponse;
|
|
1173
1269
|
'read-aloud': ReadAloudLearnerResponse;
|
|
1174
1270
|
'speaking-response': SpeakingResponseLearnerResponse;
|
|
1271
|
+
matching: MatchingLearnerResponse;
|
|
1175
1272
|
}
|
|
1176
1273
|
/** Union of all learner response shapes. */
|
|
1177
1274
|
type LearnerResponse = LearnerResponseMap[keyof LearnerResponseMap];
|
|
@@ -1225,6 +1322,26 @@ interface GapSelectLearnerResponse {
|
|
|
1225
1322
|
*/
|
|
1226
1323
|
hintsRevealed?: number;
|
|
1227
1324
|
}
|
|
1325
|
+
/**
|
|
1326
|
+
* Learner response for a Matching activity.
|
|
1327
|
+
*
|
|
1328
|
+
* A prompt the learner has not answered is **absent from the map, or holds an
|
|
1329
|
+
* empty string** — equivalent, as in {@link GapSelectLearnerResponse}, and
|
|
1330
|
+
* scored as `incorrect-omission`, never as a wrong answer.
|
|
1331
|
+
*/
|
|
1332
|
+
interface MatchingLearnerResponse {
|
|
1333
|
+
type: 'matching';
|
|
1334
|
+
/** Map of prompt ID to the ID of the option the learner matched it with. */
|
|
1335
|
+
matches: Record<string, string>;
|
|
1336
|
+
/**
|
|
1337
|
+
* Hints the learner was shown before submitting this answer, counted from
|
|
1338
|
+
* the start of the question — the author's and AI hints alike. Written by
|
|
1339
|
+
* the SDK's components in `practice`; absent or 0 means none. A scoring
|
|
1340
|
+
* policy's `hintPenalty` charges for them. Client-reported, like any count
|
|
1341
|
+
* a browser makes.
|
|
1342
|
+
*/
|
|
1343
|
+
hintsRevealed?: number;
|
|
1344
|
+
}
|
|
1228
1345
|
/** Learner response for a Written Response activity. */
|
|
1229
1346
|
interface WrittenResponseLearnerResponse {
|
|
1230
1347
|
type: 'written-response';
|
|
@@ -1843,7 +1960,7 @@ interface RouteTrap {
|
|
|
1843
1960
|
interface RouteQuestion {
|
|
1844
1961
|
/** The item's `id`. */
|
|
1845
1962
|
itemId: string;
|
|
1846
|
-
/** The blank or
|
|
1963
|
+
/** The blank, gap or prompt id. Required for fill-in-the-blanks, gap-select and matching; absent for multiple-choice. */
|
|
1847
1964
|
partId?: string;
|
|
1848
1965
|
strategy: RouteStrategyId;
|
|
1849
1966
|
/**
|
|
@@ -1894,7 +2011,7 @@ interface ReadingRoute {
|
|
|
1894
2011
|
paragraphLabels?: string[];
|
|
1895
2012
|
/** The stimulus's texts or sections, when it has several (cross-text, multiple matching). Their paragraphs add up to the passage's. */
|
|
1896
2013
|
sections?: RouteSection[];
|
|
1897
|
-
/** One per question of the group, in any order: numbering follows the items and their blanks or
|
|
2014
|
+
/** One per question of the group, in any order: numbering follows the items and their blanks, gaps or prompts. */
|
|
1898
2015
|
questions: RouteQuestion[];
|
|
1899
2016
|
}
|
|
1900
2017
|
/**
|
|
@@ -1963,7 +2080,7 @@ interface PassageLayout {
|
|
|
1963
2080
|
}
|
|
1964
2081
|
/** A route question with every quote resolved against the passage. */
|
|
1965
2082
|
interface PlannedQuestion {
|
|
1966
|
-
/** `itemId`, or `itemId#partId` for a blank or
|
|
2083
|
+
/** `itemId`, or `itemId#partId` for a blank, gap or prompt. Names the question in traces and summaries. */
|
|
1967
2084
|
key: string;
|
|
1968
2085
|
itemId: string;
|
|
1969
2086
|
partId?: string;
|
|
@@ -3551,5 +3668,5 @@ interface AiVariantsRun {
|
|
|
3551
3668
|
/** Every call, in order: the first, then each repair. */
|
|
3552
3669
|
calls: AiDraftsCall[];
|
|
3553
3670
|
}
|
|
3554
|
-
export { AiSpeakingGradingFacts as $,
|
|
3555
|
-
//# sourceMappingURL=ai-
|
|
3671
|
+
export { AiSpeakingGradingFacts as $, MatchingLearnerResponse as $n, TextMatchResult as $r, RouteMoveId as $t, AiGapSelectFacts as A, ActivityResult as An, WrittenResponseRubricCriterion as Ar, SequenceSlot as At, AiGroupInput as B, FillInTheBlanksData as Bn, XAPIStatement as Br, PlannedPair as Bt, AiDraftsCall as C, VersionFinding as Cn, SpeakingRubric as Cr, AiWritingFeedback as Ct, AiFeature as D, ActivityDataMap as Dn, WrittenResponseData as Dr, MediaProgress as Dt, AiExplanationRequest as E, ActivityData as En, ValidationResult as Er, ItemGroup as Et, AiGradingCriterionFact as F, DictationData as Fn, XAPIContextActivities as Fr, TimelineCue as Ft, AiOptionFact as G, GapSelectGap as Gn, GradeRoutingReason as Gr, RouteAnswer as Gt, AiItemFacts as H, GapSelectBank as Hn, CriterionScore as Hr, PlannedTrap as Ht, AiGradingFacts as I, DictationEquivalence as In, XAPIError as Ir, PassageLayout as It, AiReadingWordFact as J, InteractionKind as Jn, GraderKind as Jr, RouteFadingOptions as Jt, AiProvenance as K, GapSelectLearnerResponse as Kn, Grader as Kr, RouteCause as Kt, AiGradingJudgement as L, DictationLearnerResponse as Ln, XAPIObject as Lr, PassageParagraph as Lt, AiGeneratedVariant as M, BlankConfig as Mn, XAPIActor as Mr, Stimulus as Mt, AiGrade as N, DeferredReason as Nn, XAPIConfig as Nr, StimulusKind as Nt, AiFillInTheBlanksFacts as O, ActivityFeedback as On, WrittenResponseLearnerResponse as Or, MediaTimeline as Ot, AiGradedCriterion as P, DeferredScoringPartial as Pn, XAPIContext as Pr, TimelineChapter as Pt, AiSpeakingCriterionFact as Q, MatchingData as Qn, TextMatchPolicy as Qr, RouteLink as Qt, AiGradingRequest as R, DictationSlowMedia as Rn, XAPIResult as Rr, PassageSection as Rt, AiDrafts as S, VersionComparison as Sn, SpeakingResponseLearnerResponse as Sr, AiWritingFacts as St, AiDraftsRun as T, VersionSlot as Tn, ValidationError as Tr, AiWritingFeedbackResult as Tt, AiMaterialFacts as U, GapSelectChoice as Un, GradeRecord as Ur, QuotedRange as Ut, AiHintRequest as V, FillInTheBlanksLearnerResponse as Vn, XAPIVerbObject as Vr, PlannedQuestion as Vt, AiMultipleChoiceFacts as W, GapSelectData as Wn, GradeRouting as Wr, ReadingRoute as Wt, AiRubricCriterionFact as X, LearnerResponse as Xn, GradingState as Xr, RouteLearnerState as Xt, AiRefusal as Y, ItemOutcome as Yn, GraderUsage as Yr, RouteKeyword as Yt, AiSoundFact as Z, LearnerResponseMap as Zn, InlineCorrection as Zr, RouteLevel as Zt, AiDraftCaption as _, DraftNotComplete as _n, ScoringOutcome as _r, AiVariantsRun as _t, AiCoachingRequest as a, RouteSection as an, MultipleChoiceLearnerResponse as ar, AiVariantDifficulty as at, AiDraftSource as b, ItemFinding as bn, SpeakingMeasure as br, AiWordFact as bt, AiCriterionJudgement as c, RouteStrategySummary as cn, NativeControlHint as cr, AiVariantLevelFacts as ct, AiCritiqueFinding as d, RouteTrap as dn, ReadAloudDimensionWeight as dr, AiVariantPair as dt, levenshteinDistance as ei, RoutePlan as en, MatchingOption as er, AiSpeakingGradingRequest as et, AiCritiqueFindingResult as f, RouteTrapKind as fn, ReadAloudLearnerResponse as fr, AiVariantSkip as ft, AiDictationFacts as g, DraftIssue as gn, ScoringDetail as gr, AiVariantsRequest as gt, AiCritiqueResult as h, DraftContext as hn, RecordingRef as hr, AiVariants as ht, AiCoaching as i, RouteQuote as in, MultipleChoiceData as ir, AiTextResult as it, AiGeneratedDraft as j, ActivityType as jn, WrittenResponseRubricLevel as jr, SequenceSlotGroup as jt, AiGapFact as k, ActivityMedia as kn, WrittenResponseRubric as kr, SequenceEntry as kt, AiCritique as l, RouteSummary as ln, ReadAloudData as lr, AiVariantMismatch as lt, AiCritiqueRequest as m, DraftComplete as mn, RecordingBounds as mr, AiVariantTargets as mt, AiActivityInput as n, RouteQuestionPart as nn, MediaPlaybackPolicy as nr, AiSpeakingMeasureFact as nt, AiCoachingResult as o, RouteStep as on, MultipleChoiceOption as or, AiVariantExemplarFacts as ot, AiCritiqueKind as p, TextRange as pn, ReadAloudSlowMedia as pr, AiVariantSkipCode as pt, AiReadingFacts as q, InteractionEvent as qn, GraderConfiguration as qr, RouteEvent as qt, AiBlankFact as r, RouteQuestionSummary as rn, MediaTrack as rr, AiSupportedActivityType as rt, AiCoachingWord as s, RouteStrategyId as sn, MultipleChoiceOptionMedia as sr, AiVariantImage as st, ActivityAiPermissions as t, matchText as ti, RouteQuestion as tn, MatchingPrompt as tr, AiSpeakingGradingRequestProblem as tt, AiCritiqueField as u, RouteTrace as un, ReadAloudDimension as ur, AiVariantMissing as ut, AiDraftProblem as v, DraftSeverity as vn, ScoringResult as vr, AiVerdict as vt, AiDraftsRequest as w, VersionPaper as wn, SpeakingRubricCriterion as wr, AiWritingFeedbackRequest as wt, AiDraftType as x, ItemFindingSeverity as xn, SpeakingResponseData as xr, AiWritingCorrection as xt, AiDraftSettings as y, DraftValidationResult as yn, ScriptTurn as yr, AiVideoDraft as yt, AiGradingRequestProblem as z, DictationTolerance as zn, XAPIScore as zr, PassageSentence as zt };
|
|
3672
|
+
//# sourceMappingURL=ai-hC5pGYeu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-hC5pGYeu.d.ts","names":[],"sources":["../src/scoring/text-match.ts","../src/types/grading.ts","../src/types/xapi.ts","../src/types/activity.ts","../src/types/authoring.ts","../src/types/reading-route.ts","../src/types/item-group.ts","../src/types/ai.ts"],"mappings":";;;;;;;;UAQiB;;EAEf;;EAEA;;;;;;;EAOA;;EAEA;;EAEA;;EAEA;;EAEA;;;;;EAKA;;;;;;;;;;;;UAae;EACf;EACA;;;;;;iBAmDc,oBAAoB,WAAW,WAAW;;;;;;;;;;;iBAoC1C,UACd,eACA,sCACA,SAAQ,kBACP;;;;;;KCrHS;;;;;;;;;KAUA;;UAGK;EACf,MAAM;;EAEN;;EAEA;;EAEA;;;UAIe;EACf;EACA;EACA;;;UAIe;;EAEf;;;;;;EAMA;;;;;;;;;;;;;;;;EAgBA;;EAEA;;EAEA;;;;;;EAMA;;EAEA;;;;;;;EAOA;;;;;;;UAQe;;EAEf;;EAEA;;EAEA;;EAEA;;;;;;;;;;;;;;;;;;KAmBU;;UASK;;EAEf;;EAEA,SAAS;;EAET;IAAgB;IAAoB;;;;UAIrB;;EAEf;;EAEA;EACA;;EAEA;IAAU;IAAe;;;EAEzB;;;;;;;;;;;;;UAce;EACf;EACA;EACA;;EAEA;;EAEA,WAAW;;;;;;EAMX,UAAU;;EAEV,cAAc;;EAEd;;EAEA;;EAEA;;EAEA;EACA,SAAS;EACT,QAAQ;;EAER;;EAEA,UAAU;;;;;;UCrMK;EACf;;EAEA;EACA;;IAEE,OAAO;;IAE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YAAY;;EAEZ;;EAEA;;;;;EAKA;IACE;IACA,YAAY;IACZ;IACA;;;EAGF;IAAoB;IAAc;;;;UAInB;;EAEf;EACA;;;;;;EAMA,SAAS,SAAS;;EAElB;EACA,SAAS;;;;;;UAOM;EACf;EACA;;EAEA;EACA;EACA;;;;;;;;;;UAWe;EACf;EACA;;IAEE,WAAW;;IAEX;IACA;;IAEA,YAAY;IACZ,aAAa;;;;;;IAMb;;IAEA,SAAS;;;;;IAKT;MAAU;MAAiB;;;IAE3B;;IAEA;;;EAGF,OAAO,SAAS;;EAEhB;;EAEA;;EAEA,WAAW;;EAEX;IAAoB;IAAmB;;;EAEvC;IAAwB;;;EAExB,SAAS;;;;;;EAMT;IACE;IACA,UAAU,SAAS;IACnB,UAAU;;;;;;;;UASG;EACf;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;;;;;;;;UASe;EACf;EACA;EACA;EACA;;;UAIe;;EAEf;;EAEA;;EAEA,OAAO;;;;;;;EAOP;;EAEA,YAAY;;EAEZ,YAAY;;EAEZ,UAAU;;EAEV,OAAO;;EAEP,WAAW,SAAS;;;UAIL;;EAEf,UAAU;;EAEV,SAAS;;EAET,UAAU;EACV,aAAa;EACb,QAAQ;;;UAIO;;EAEf,UAAU;;EAEV,SAAS;;EAET,UAAU;;EAEV,SAAS;;EAET,OAAO"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_registry = require("./registry-
|
|
2
|
-
const require_scoring = require("./scoring-
|
|
3
|
-
const require_item_group = require("./item-group-
|
|
1
|
+
const require_registry = require("./registry-DUTE1vtq.cjs");
|
|
2
|
+
const require_scoring = require("./scoring-IjLi2fYF.cjs");
|
|
3
|
+
const require_item_group = require("./item-group-CqdByaLR.cjs");
|
|
4
4
|
// src/ai-material.ts
|
|
5
5
|
/**
|
|
6
6
|
* What a model is told about the group a question sits in: the material the
|
|
@@ -1458,6 +1458,10 @@ function structureTargets(entry) {
|
|
|
1458
1458
|
...banks.length > 0 ? { banks: banks.map((bank) => ({ choices: isRecord$4(bank) ? listOf$3(bank.choices).length : 0 })) } : {}
|
|
1459
1459
|
};
|
|
1460
1460
|
}
|
|
1461
|
+
case "matching": return {
|
|
1462
|
+
prompts: listOf$3(entry.prompts).length,
|
|
1463
|
+
options: listOf$3(entry.options).length
|
|
1464
|
+
};
|
|
1461
1465
|
case "written-response": return {
|
|
1462
1466
|
minWords: entry.minWords,
|
|
1463
1467
|
maxWords: entry.maxWords,
|
|
@@ -1471,6 +1475,7 @@ const SCORED_ALIKE = {
|
|
|
1471
1475
|
"multiple-choice": ["mode", "scoringStrategy"],
|
|
1472
1476
|
"fill-in-the-blanks": ["scoringStrategy"],
|
|
1473
1477
|
"gap-select": ["scoringStrategy", "presentation"],
|
|
1478
|
+
matching: ["scoringStrategy", "optionUse"],
|
|
1474
1479
|
dictation: ["tolerance", "hints"],
|
|
1475
1480
|
"read-aloud": [
|
|
1476
1481
|
"recording",
|
|
@@ -1496,7 +1501,8 @@ const DIFFERS = {
|
|
|
1496
1501
|
rubric: "The rubric differs",
|
|
1497
1502
|
minWords: "The minimum word count differs",
|
|
1498
1503
|
maxWords: "The maximum word count differs",
|
|
1499
|
-
languageTarget: "The language target differs"
|
|
1504
|
+
languageTarget: "The language target differs",
|
|
1505
|
+
optionUse: "How often an option may be used differs"
|
|
1500
1506
|
};
|
|
1501
1507
|
function itemMisses(exemplar, candidate) {
|
|
1502
1508
|
const misses = [];
|
|
@@ -1580,6 +1586,13 @@ function itemMisses(exemplar, candidate) {
|
|
|
1580
1586
|
}
|
|
1581
1587
|
});
|
|
1582
1588
|
if (exemplar.shuffleChoices === true !== (candidate.shuffleChoices === true)) miss(["shuffleChoices"], "Shuffling the choices differs from the exemplar.");
|
|
1589
|
+
} else if (type === "matching") {
|
|
1590
|
+
for (const [field, noun] of [["prompts", "prompt"], ["options", "option"]]) {
|
|
1591
|
+
const mine = listOf$3(exemplar[field]).length;
|
|
1592
|
+
const theirs = listOf$3(candidate[field]).length;
|
|
1593
|
+
if (mine !== theirs) miss([field], `${count(theirs, noun)}; the exemplar has ${mine}.`);
|
|
1594
|
+
}
|
|
1595
|
+
if (exemplar.shuffleOptions === true !== (candidate.shuffleOptions === true)) miss(["shuffleOptions"], "Shuffling the options differs from the exemplar.");
|
|
1583
1596
|
}
|
|
1584
1597
|
return misses;
|
|
1585
1598
|
}
|
|
@@ -5972,4 +5985,4 @@ Object.defineProperty(exports, "validateItemGroupDraft", {
|
|
|
5972
5985
|
}
|
|
5973
5986
|
});
|
|
5974
5987
|
|
|
5975
|
-
//# sourceMappingURL=ai-writing-
|
|
5988
|
+
//# sourceMappingURL=ai-writing-BDSYuifR.cjs.map
|