@intellectif/lk-core 1.5.0 → 1.6.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 +57 -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-BYryFkF9.d.ts → ai-i3jwXnpX.d.cts} +45 -4
- package/dist/ai-i3jwXnpX.d.cts.map +1 -0
- package/dist/{ai-BYryFkF9.d.cts → ai-i3jwXnpX.d.ts} +45 -4
- package/dist/ai-i3jwXnpX.d.ts.map +1 -0
- package/dist/{ai-writing-Cen7-3qs.cjs → ai-writing-C4YRVrFi.cjs} +275 -15
- package/dist/ai-writing-C4YRVrFi.cjs.map +1 -0
- package/dist/{ai-writing-D8PdhJJz.js → ai-writing-OJ5m_1EB.js} +273 -31
- package/dist/ai-writing-OJ5m_1EB.js.map +1 -0
- package/dist/{index-D7R3Ll8R.d.cts → index--U7hHV0s.d.cts} +2 -2
- package/dist/{index-D7R3Ll8R.d.cts.map → index--U7hHV0s.d.cts.map} +1 -1
- package/dist/{index-qMbxed1B.d.cts → index-CFRgZLhH.d.cts} +41 -12
- package/dist/index-CFRgZLhH.d.cts.map +1 -0
- package/dist/{index-DUaW1Tj5.d.ts → index-DeD8EI1D.d.ts} +2 -2
- package/dist/{index-DUaW1Tj5.d.ts.map → index-DeD8EI1D.d.ts.map} +1 -1
- package/dist/{index-wMc1E_aM.d.ts → index-Dj92T76o.d.ts} +2 -2
- package/dist/{index-wMc1E_aM.d.ts.map → index-Dj92T76o.d.ts.map} +1 -1
- package/dist/{index-Bg0aeWtM.d.cts → index-Uh1u57yq.d.cts} +2 -2
- package/dist/{index-Bg0aeWtM.d.cts.map → index-Uh1u57yq.d.cts.map} +1 -1
- package/dist/{index-CxpiWedW.d.ts → index-WBHSrIUU.d.ts} +41 -12
- package/dist/index-WBHSrIUU.d.ts.map +1 -0
- package/dist/index.cjs +63 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +137 -5
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +137 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +58 -8
- package/dist/index.js.map +1 -1
- package/dist/{item-group-DdSUCUjM.js → item-group-BbvvH_Ob.js} +3 -2
- package/dist/item-group-BbvvH_Ob.js.map +1 -0
- package/dist/{item-group-DEB7nLID.cjs → item-group-CQRbb8Rx.cjs} +3 -2
- package/dist/item-group-CQRbb8Rx.cjs.map +1 -0
- package/dist/{registry-DaZRpqjW.js → registry-B23o9UWh.js} +65 -18
- package/dist/registry-B23o9UWh.js.map +1 -0
- package/dist/{registry-Ce00A_OW.cjs → registry-Ih5n4PVZ.cjs} +82 -17
- package/dist/registry-Ih5n4PVZ.cjs.map +1 -0
- package/dist/{schemas-DksueYsu.cjs → schemas-Q2dyOgc2.cjs} +77 -14
- package/dist/schemas-Q2dyOgc2.cjs.map +1 -0
- package/dist/{schemas-BioKFf3F.js → schemas-yId-bJhD.js} +72 -15
- package/dist/schemas-yId-bJhD.js.map +1 -0
- package/dist/schemas.cjs +5 -2
- package/dist/schemas.d.cts +2 -2
- package/dist/schemas.d.ts +2 -2
- package/dist/schemas.js +4 -3
- package/dist/{scoring-BKNNTz-s.js → scoring-CLMdk8i9.js} +2 -2
- package/dist/{scoring-BKNNTz-s.js.map → scoring-CLMdk8i9.js.map} +1 -1
- package/dist/{scoring-lKQVYsxy.cjs → scoring-CaPS6q8b.cjs} +2 -2
- package/dist/{scoring-lKQVYsxy.cjs.map → scoring-CaPS6q8b.cjs.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-NYrTlpID.cjs → xapi-BX0hvRRB.cjs} +2 -2
- package/dist/{xapi-NYrTlpID.cjs.map → xapi-BX0hvRRB.cjs.map} +1 -1
- package/dist/{xapi-wR6gu4qS.js → xapi-Cdk9fTvV.js} +2 -2
- package/dist/{xapi-wR6gu4qS.js.map → xapi-Cdk9fTvV.js.map} +1 -1
- package/dist/xapi.cjs +1 -1
- package/dist/xapi.d.cts +1 -1
- package/dist/xapi.d.ts +1 -1
- package/dist/xapi.js +1 -1
- package/package.json +1 -1
- package/dist/ai-BYryFkF9.d.cts.map +0 -1
- package/dist/ai-BYryFkF9.d.ts.map +0 -1
- package/dist/ai-writing-Cen7-3qs.cjs.map +0 -1
- package/dist/ai-writing-D8PdhJJz.js.map +0 -1
- package/dist/index-CxpiWedW.d.ts.map +0 -1
- package/dist/index-qMbxed1B.d.cts.map +0 -1
- package/dist/item-group-DEB7nLID.cjs.map +0 -1
- package/dist/item-group-DdSUCUjM.js.map +0 -1
- package/dist/registry-Ce00A_OW.cjs.map +0 -1
- package/dist/registry-DaZRpqjW.js.map +0 -1
- package/dist/schemas-BioKFf3F.js.map +0 -1
- package/dist/schemas-DksueYsu.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
# @intellectif/lk-core
|
|
2
2
|
|
|
3
|
+
## 1.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#120](https://github.com/intellectif/learning-kit/pull/120) [`d5ee618`](https://github.com/intellectif/learning-kit/commit/d5ee6185d2a167794352b218486881c405b13b52) Thanks [@diego28e](https://github.com/diego28e)! - **Exporting and importing content**: list and re-point every file an item or a group uses, keep what each recording says for the author's side only, and describe content in one JSON Schema.
|
|
8
|
+
|
|
9
|
+
**Action required:** none. Every field is optional and every function new. Two cases to check:
|
|
10
|
+
|
|
11
|
+
- **A field you already store under these names.** If your content keeps a media `transcript` that is not a string, or a `script` that is not a list of `{ speaker, text }` turns, it now fails validation.
|
|
12
|
+
- **A `switch` over the critic's codes.** The critic has three new codes, so a `switch` over them without a `default` branch needs them.
|
|
13
|
+
|
|
14
|
+
- **Files:** `listMediaRefs(entry)` lists every media address in an activity or an item group: each one's path, kind, owner and language. It covers an item's `media`, a multiple-choice option's `media`, dictation's and read-aloud's `slowMedia`, and a stimulus's `media`, with their captions, tracks and posters. A recording with no file yet is listed with `url: null`.
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
const files = listMediaRefs(entry).filter((ref) => ref.url !== null);
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
`mapMediaRefs(entry, fn)` returns a copy with each address replaced and nothing else changed. With `(ref) => ref.url` the copy equals the input. A type you register says where it keeps files with `mediaSlots` on its descriptor.
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
const imported = mapMediaRefs(entry, (ref) =>
|
|
24
|
+
ref.url === null ? null : storedUrlFor(ref.url)
|
|
25
|
+
);
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
- **What a recording says:** an item's media, a listening option's media and a stimulus can carry an author-only `transcript` (plain text) and `script` (turns, each a `speaker` and a `text`).
|
|
29
|
+
|
|
30
|
+
- Both are removed by `redact()` and `redactItemGroup()` at every reveal level, and refused by `assertRedacted()`. No request for a learner's AI help reads them.
|
|
31
|
+
- `transcriptOf(holder)` gives the author-side text, the script as `Speaker: text` lines when there is no transcript. Pass it to `aiDraftsRequest` as its `source`.
|
|
32
|
+
|
|
33
|
+
```jsonc
|
|
34
|
+
{
|
|
35
|
+
"type": "audio",
|
|
36
|
+
"url": "https://cdn.example/station.mp3",
|
|
37
|
+
"transcript": "Where does the train leave from? Platform four.",
|
|
38
|
+
"script": [
|
|
39
|
+
{ "speaker": "Anna", "text": "Where does the train leave from?" },
|
|
40
|
+
{ "speaker": "Ben", "text": "Platform four." }
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
- **Practice scored in the browser:** `withoutAuthorOnly(entry)` returns an item or a group without its author-only fields, and with its key and your own fields. Unlike `redact()`, whose output scorers refuse, it scores exactly as the stored item. Every vector of the grade-stability corpus shows it. Exams still go through `redact()`.
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
res.json(withoutAuthorOnly(practiceItem));
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
- **The critic's new codes:** `media_script_differs` (a transcript and a script that say different words), `media_transcript_differs` (a dictation's or a read-aloud's recording saying other words than the item), and `media_transcript_unused` (on a picture or an embed). The AI critic now reads a recording's transcript and script. It no longer reads a caption track's address or language, a poster, or a speaker's label.
|
|
52
|
+
- **JSON Schema:** `contentJsonSchema()` is one draft 2020-12 document whose root is a sequence entry: any registered activity type, or an item group with typed items. `jsonSchemaFor(type, { target: 'draft-2020-12' })` gives one type's schema in that draft. Draft 7 stays the default, so the existing exports do not change.
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
writeFileSync("schema.json", JSON.stringify(contentJsonSchema(), null, 2));
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Guide: https://github.com/intellectif/learning-kit/blob/main/docs/authoring.md#exporting-and-importing-content-16
|
|
59
|
+
|
|
3
60
|
## 1.5.0
|
|
4
61
|
|
|
5
62
|
### Minor Changes
|
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-C4YRVrFi.cjs");
|
|
3
|
+
const require_scoring = require("./scoring-CaPS6q8b.cjs");
|
|
4
4
|
//#region 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 { B as AiHintRequest, E as AiExplanationRequest, I as AiGradingJudgement, J as AiRefusal, L as AiGradingRequest, Q as AiTextResult, S as AiDrafts, a as AiCoachingRequest, at as AiWritingFeedbackRequest, i as AiCoaching, it as AiWritingFeedback, l as AiCritique, m as AiCritiqueRequest, w as AiDraftsRequest } from "./ai-
|
|
1
|
+
import { B as AiHintRequest, E as AiExplanationRequest, I as AiGradingJudgement, J as AiRefusal, L as AiGradingRequest, Q as AiTextResult, S as AiDrafts, a as AiCoachingRequest, at as AiWritingFeedbackRequest, i as AiCoaching, it as AiWritingFeedback, l as AiCritique, m as AiCritiqueRequest, w as AiDraftsRequest } from "./ai-i3jwXnpX.cjs";
|
|
2
2
|
//#region src/ai-check/cases.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* One call to make against a host's port, and what a learner was looking at
|
package/dist/ai-check.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as AiHintRequest, E as AiExplanationRequest, I as AiGradingJudgement, J as AiRefusal, L as AiGradingRequest, Q as AiTextResult, S as AiDrafts, a as AiCoachingRequest, at as AiWritingFeedbackRequest, i as AiCoaching, it as AiWritingFeedback, l as AiCritique, m as AiCritiqueRequest, w as AiDraftsRequest } from "./ai-
|
|
1
|
+
import { B as AiHintRequest, E as AiExplanationRequest, I as AiGradingJudgement, J as AiRefusal, L as AiGradingRequest, Q as AiTextResult, S as AiDrafts, a as AiCoachingRequest, at as AiWritingFeedbackRequest, i as AiCoaching, it as AiWritingFeedback, l as AiCritique, m as AiCritiqueRequest, w as AiDraftsRequest } from "./ai-i3jwXnpX.js";
|
|
2
2
|
//#region src/ai-check/cases.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* One call to make against a host's port, and what a learner was looking at
|
package/dist/ai-check.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as gradeReadAloud } from "./scoring-
|
|
1
|
+
import { B as aiHintRequest, M as aiCoachingRequest, N as checkAiCoaching, R as aiExplanationRequest, U as checkAiExplanation, W as checkAiHint, _ as aiCritiqueRequest, a as checkAiGrading, d as aiDraftsRequest, f as checkAiDrafts, i as aiGradingRequest, n as checkAiWritingFeedback, t as aiWritingFeedbackRequest, v as checkAiCritique } from "./ai-writing-OJ5m_1EB.js";
|
|
2
|
+
import { o as gradeReadAloud } from "./scoring-CLMdk8i9.js";
|
|
3
3
|
//#region src/ai-check/cases.ts
|
|
4
4
|
/**
|
|
5
5
|
* The items the cases are built from. Small, ordinary language-course content
|
|
@@ -477,6 +477,33 @@ interface ActivityMedia {
|
|
|
477
477
|
* browser's own control bar, unlimited plays, free seeking and free speed.
|
|
478
478
|
*/
|
|
479
479
|
playback?: MediaPlaybackPolicy;
|
|
480
|
+
/**
|
|
481
|
+
* Author-only: what the recording says, as plain text. For item generation,
|
|
482
|
+
* review and grading; never shown to the learner, and removed by `redact()`
|
|
483
|
+
* and `redactItemGroup()`, as a stimulus's `transcript` is. Meant for
|
|
484
|
+
* `audio` and `video`.
|
|
485
|
+
*/
|
|
486
|
+
transcript?: string;
|
|
487
|
+
/**
|
|
488
|
+
* Author-only: the recording as turns, one per speaker, for casting voices
|
|
489
|
+
* and reading a dialogue. Removed by redaction, as `transcript` is. Where
|
|
490
|
+
* both are given, `transcript` is the text AI facts read; see
|
|
491
|
+
* {@link transcriptOf}.
|
|
492
|
+
*/
|
|
493
|
+
script?: ScriptTurn[];
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* One speaker's turn in a recording's author-only `script`.
|
|
497
|
+
*
|
|
498
|
+
* `speaker` is a label the author chooses ("Anna", "Narrator", "Speaker 2"),
|
|
499
|
+
* the same one for every turn that voice speaks. Which voice reads it is the
|
|
500
|
+
* consuming application's choice; the SDK never names a voice.
|
|
501
|
+
*/
|
|
502
|
+
interface ScriptTurn {
|
|
503
|
+
/** Non-empty after trimming; at most 60 characters. */
|
|
504
|
+
speaker: string;
|
|
505
|
+
/** What the speaker says. Non-empty after trimming. */
|
|
506
|
+
text: string;
|
|
480
507
|
}
|
|
481
508
|
/**
|
|
482
509
|
* A hint to the browser's own control bar, emitted as a `controlsList` token.
|
|
@@ -574,6 +601,14 @@ interface MultipleChoiceOptionMedia {
|
|
|
574
601
|
alt?: string;
|
|
575
602
|
/** WebVTT captions for an audio option, rendered as a `<track>`. */
|
|
576
603
|
captionsUrl?: string;
|
|
604
|
+
/**
|
|
605
|
+
* Author-only: what an audio option says. In a listening option this is the
|
|
606
|
+
* option's answer, so it is removed by `redact()` like every author-only
|
|
607
|
+
* field. See {@link ActivityMedia.transcript}.
|
|
608
|
+
*/
|
|
609
|
+
transcript?: string;
|
|
610
|
+
/** Author-only: the option's recording as speaker turns. See {@link ActivityMedia.script}. */
|
|
611
|
+
script?: ScriptTurn[];
|
|
577
612
|
}
|
|
578
613
|
interface MultipleChoiceOption {
|
|
579
614
|
/** Unique identifier for this option within the activity. */
|
|
@@ -1590,8 +1625,8 @@ type StimulusKind = 'text' | 'audio' | 'video' | 'image' | 'mixed';
|
|
|
1590
1625
|
* section alike, and needs no blueprint to exist.
|
|
1591
1626
|
*
|
|
1592
1627
|
* Learner-visible by definition: the point of a stimulus is that the learner
|
|
1593
|
-
* reads or hears it. The
|
|
1594
|
-
* `redactItemGroup` removes.
|
|
1628
|
+
* reads or hears it. The exceptions are `transcript` and `script`, author
|
|
1629
|
+
* assets that `redactItemGroup` removes.
|
|
1595
1630
|
*/
|
|
1596
1631
|
interface Stimulus {
|
|
1597
1632
|
id: string;
|
|
@@ -1615,6 +1650,12 @@ interface Stimulus {
|
|
|
1615
1650
|
* never shown to the learner. Removed by `redactItemGroup`.
|
|
1616
1651
|
*/
|
|
1617
1652
|
transcript?: string;
|
|
1653
|
+
/**
|
|
1654
|
+
* Author-only: the recording as speaker turns, for casting voices. Removed
|
|
1655
|
+
* by `redactItemGroup`, as `transcript` is. A stimulus keeps both here, not
|
|
1656
|
+
* on its `media`; `transcriptOf` reads these first.
|
|
1657
|
+
*/
|
|
1658
|
+
script?: ScriptTurn[];
|
|
1618
1659
|
/** BCP 47 language tag of the material, when it differs from the items'. */
|
|
1619
1660
|
locale?: string;
|
|
1620
1661
|
/** Source credit, shown to the learner after the material. */
|
|
@@ -2607,5 +2648,5 @@ interface AiVideoDraft {
|
|
|
2607
2648
|
findings: ItemFinding[];
|
|
2608
2649
|
}
|
|
2609
2650
|
//#endregion
|
|
2610
|
-
export { AiVerdict as $, MultipleChoiceData as $t, AiGapSelectFacts as A,
|
|
2611
|
-
//# sourceMappingURL=ai-
|
|
2651
|
+
export { AiVerdict as $, MultipleChoiceData as $t, AiGapSelectFacts as A, XAPIStatement as An, ActivityType as At, AiHintRequest as B, GradingState as Bn, FillInTheBlanksLearnerResponse as Bt, AiDraftsCall as C, XAPIConfig as Cn, ItemFinding as Ct, AiFeature as D, XAPIObject as Dn, ActivityFeedback as Dt, AiExplanationRequest as E, XAPIError as En, ActivityDataMap as Et, AiGradingFacts as F, GradeRoutingReason as Fn, DictationEquivalence as Ft, AiProvenance as G, matchText as Gn, GapSelectLearnerResponse as Gt, AiMaterialFacts as H, TextMatchPolicy as Hn, GapSelectChoice as Ht, AiGradingJudgement as I, Grader as In, DictationLearnerResponse as It, AiRefusal as J, ItemOutcome as Jt, AiReadingFacts as K, InteractionEvent as Kt, AiGradingRequest as L, GraderConfiguration as Ln, DictationSlowMedia as Lt, AiGrade as M, CriterionScore as Mn, DeferredReason as Mt, AiGradedCriterion as N, GradeRecord as Nn, DeferredScoringPartial as Nt, AiFillInTheBlanksFacts as O, XAPIResult as On, ActivityMedia as Ot, AiGradingCriterionFact as P, GradeRouting as Pn, DictationData as Pt, AiTextResult as Q, MediaTrack as Qt, AiGradingRequestProblem as R, GraderKind as Rn, DictationTolerance as Rt, AiDrafts as S, XAPIActor as Sn, DraftValidationResult as St, AiDraftsRun as T, XAPIContextActivities as Tn, ActivityData as Tt, AiMultipleChoiceFacts as U, TextMatchResult as Un, GapSelectData as Ut, AiItemFacts as V, InlineCorrection as Vn, GapSelectBank as Vt, AiOptionFact as W, levenshteinDistance as Wn, GapSelectGap as Wt, AiSoundFact as X, LearnerResponseMap as Xt, AiRubricCriterionFact as Y, LearnerResponse as Yt, AiSupportedActivityType as Z, MediaPlaybackPolicy as Zt, AiDraftCaption as _, WrittenResponseData as _n, DraftComplete as _t, AiCoachingRequest as a, ReadAloudDimension as an, AiWritingFeedbackRequest as at, AiDraftSource as b, WrittenResponseRubricCriterion as bn, DraftNotComplete as bt, AiCriterionJudgement as c, ReadAloudSlowMedia as cn, MediaProgress as ct, AiCritiqueFinding as d, ScoringDetail as dn, SequenceSlot as dt, MultipleChoiceLearnerResponse as en, AiVideoDraft as et, AiCritiqueFindingResult as f, ScoringOutcome as fn, SequenceSlotGroup as ft, AiDictationFacts as g, ValidationResult as gn, TimelineCue as gt, AiCritiqueResult as h, ValidationError as hn, TimelineChapter as ht, AiCoaching as i, ReadAloudData as in, AiWritingFeedback as it, AiGeneratedDraft as j, XAPIVerbObject as jn, BlankConfig as jt, AiGapFact as k, XAPIScore as kn, ActivityResult as kt, AiCritique as l, RecordingBounds as ln, MediaTimeline as lt, AiCritiqueRequest as m, ScriptTurn as mn, StimulusKind as mt, AiActivityInput as n, MultipleChoiceOptionMedia as nn, AiWritingCorrection as nt, AiCoachingResult as o, ReadAloudDimensionWeight as on, AiWritingFeedbackResult as ot, AiCritiqueKind as p, ScoringResult as pn, Stimulus as pt, AiReadingWordFact as q, InteractionKind as qt, AiBlankFact as r, NativeControlHint as rn, AiWritingFacts as rt, AiCoachingWord as s, ReadAloudLearnerResponse as sn, ItemGroup as st, ActivityAiPermissions as t, MultipleChoiceOption as tn, AiWordFact as tt, AiCritiqueField as u, RecordingRef as un, SequenceEntry as ut, AiDraftProblem as v, WrittenResponseLearnerResponse as vn, DraftContext as vt, AiDraftsRequest as w, XAPIContext as wn, ItemFindingSeverity as wt, AiDraftType as x, WrittenResponseRubricLevel as xn, DraftSeverity as xt, AiDraftSettings as y, WrittenResponseRubric as yn, DraftIssue as yt, AiGroupInput as z, GraderUsage as zn, FillInTheBlanksData as zt };
|
|
2652
|
+
//# sourceMappingURL=ai-i3jwXnpX.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-i3jwXnpX.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/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;;IAEP,cAAc;;IAEd;;IAEA;;IAEA;;IAEA,UAAU;MAAQ;MAAY,cAAc;;IAC5C,aAAa;;;;;;;UAQA;EACf;;EAEA;;EAEA;;EAEA;;IAEE;;IAEA;;;;UAKa;;EAEf;;EAEA,SAAS;;;UAIM;;EAEf;;EAEA;;EAEA;;EAEA;;;UAIe;EACf,QAAQ;;EAER;;EAEA;;EAEA;;EAEA;EACA,aAAa;;;UAIE;;EAEf,SAAS;;EAET,WAAW;;EAEX,WAAW;;E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;;;;;;EAMV;;;;;;EAMA;IAAS;IAAe;;;EAExB,WAAW,SAAS;;;UAIL;;EAEf,QAAQ;;EAER,UAAU;EACV,aAAa;EACb,QAAQ;;;KAIE;EACN;EAAU,aAAa;EAAc,QAAQ;;EAC7C;EAAW,UAAU;EAAW;;;UAGrB;;EAEf,QAAQ;;EAER,UAAU;;EAEV,OAAO;;;;;;;;UASQ;;EAEf,OAAO;;EAEP,YAAY;;EAEZ,UAAU"}
|
|
@@ -477,6 +477,33 @@ interface ActivityMedia {
|
|
|
477
477
|
* browser's own control bar, unlimited plays, free seeking and free speed.
|
|
478
478
|
*/
|
|
479
479
|
playback?: MediaPlaybackPolicy;
|
|
480
|
+
/**
|
|
481
|
+
* Author-only: what the recording says, as plain text. For item generation,
|
|
482
|
+
* review and grading; never shown to the learner, and removed by `redact()`
|
|
483
|
+
* and `redactItemGroup()`, as a stimulus's `transcript` is. Meant for
|
|
484
|
+
* `audio` and `video`.
|
|
485
|
+
*/
|
|
486
|
+
transcript?: string;
|
|
487
|
+
/**
|
|
488
|
+
* Author-only: the recording as turns, one per speaker, for casting voices
|
|
489
|
+
* and reading a dialogue. Removed by redaction, as `transcript` is. Where
|
|
490
|
+
* both are given, `transcript` is the text AI facts read; see
|
|
491
|
+
* {@link transcriptOf}.
|
|
492
|
+
*/
|
|
493
|
+
script?: ScriptTurn[];
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* One speaker's turn in a recording's author-only `script`.
|
|
497
|
+
*
|
|
498
|
+
* `speaker` is a label the author chooses ("Anna", "Narrator", "Speaker 2"),
|
|
499
|
+
* the same one for every turn that voice speaks. Which voice reads it is the
|
|
500
|
+
* consuming application's choice; the SDK never names a voice.
|
|
501
|
+
*/
|
|
502
|
+
interface ScriptTurn {
|
|
503
|
+
/** Non-empty after trimming; at most 60 characters. */
|
|
504
|
+
speaker: string;
|
|
505
|
+
/** What the speaker says. Non-empty after trimming. */
|
|
506
|
+
text: string;
|
|
480
507
|
}
|
|
481
508
|
/**
|
|
482
509
|
* A hint to the browser's own control bar, emitted as a `controlsList` token.
|
|
@@ -574,6 +601,14 @@ interface MultipleChoiceOptionMedia {
|
|
|
574
601
|
alt?: string;
|
|
575
602
|
/** WebVTT captions for an audio option, rendered as a `<track>`. */
|
|
576
603
|
captionsUrl?: string;
|
|
604
|
+
/**
|
|
605
|
+
* Author-only: what an audio option says. In a listening option this is the
|
|
606
|
+
* option's answer, so it is removed by `redact()` like every author-only
|
|
607
|
+
* field. See {@link ActivityMedia.transcript}.
|
|
608
|
+
*/
|
|
609
|
+
transcript?: string;
|
|
610
|
+
/** Author-only: the option's recording as speaker turns. See {@link ActivityMedia.script}. */
|
|
611
|
+
script?: ScriptTurn[];
|
|
577
612
|
}
|
|
578
613
|
interface MultipleChoiceOption {
|
|
579
614
|
/** Unique identifier for this option within the activity. */
|
|
@@ -1590,8 +1625,8 @@ type StimulusKind = 'text' | 'audio' | 'video' | 'image' | 'mixed';
|
|
|
1590
1625
|
* section alike, and needs no blueprint to exist.
|
|
1591
1626
|
*
|
|
1592
1627
|
* Learner-visible by definition: the point of a stimulus is that the learner
|
|
1593
|
-
* reads or hears it. The
|
|
1594
|
-
* `redactItemGroup` removes.
|
|
1628
|
+
* reads or hears it. The exceptions are `transcript` and `script`, author
|
|
1629
|
+
* assets that `redactItemGroup` removes.
|
|
1595
1630
|
*/
|
|
1596
1631
|
interface Stimulus {
|
|
1597
1632
|
id: string;
|
|
@@ -1615,6 +1650,12 @@ interface Stimulus {
|
|
|
1615
1650
|
* never shown to the learner. Removed by `redactItemGroup`.
|
|
1616
1651
|
*/
|
|
1617
1652
|
transcript?: string;
|
|
1653
|
+
/**
|
|
1654
|
+
* Author-only: the recording as speaker turns, for casting voices. Removed
|
|
1655
|
+
* by `redactItemGroup`, as `transcript` is. A stimulus keeps both here, not
|
|
1656
|
+
* on its `media`; `transcriptOf` reads these first.
|
|
1657
|
+
*/
|
|
1658
|
+
script?: ScriptTurn[];
|
|
1618
1659
|
/** BCP 47 language tag of the material, when it differs from the items'. */
|
|
1619
1660
|
locale?: string;
|
|
1620
1661
|
/** Source credit, shown to the learner after the material. */
|
|
@@ -2607,5 +2648,5 @@ interface AiVideoDraft {
|
|
|
2607
2648
|
findings: ItemFinding[];
|
|
2608
2649
|
}
|
|
2609
2650
|
//#endregion
|
|
2610
|
-
export { AiVerdict as $, MultipleChoiceData as $t, AiGapSelectFacts as A,
|
|
2611
|
-
//# sourceMappingURL=ai-
|
|
2651
|
+
export { AiVerdict as $, MultipleChoiceData as $t, AiGapSelectFacts as A, XAPIStatement as An, ActivityType as At, AiHintRequest as B, GradingState as Bn, FillInTheBlanksLearnerResponse as Bt, AiDraftsCall as C, XAPIConfig as Cn, ItemFinding as Ct, AiFeature as D, XAPIObject as Dn, ActivityFeedback as Dt, AiExplanationRequest as E, XAPIError as En, ActivityDataMap as Et, AiGradingFacts as F, GradeRoutingReason as Fn, DictationEquivalence as Ft, AiProvenance as G, matchText as Gn, GapSelectLearnerResponse as Gt, AiMaterialFacts as H, TextMatchPolicy as Hn, GapSelectChoice as Ht, AiGradingJudgement as I, Grader as In, DictationLearnerResponse as It, AiRefusal as J, ItemOutcome as Jt, AiReadingFacts as K, InteractionEvent as Kt, AiGradingRequest as L, GraderConfiguration as Ln, DictationSlowMedia as Lt, AiGrade as M, CriterionScore as Mn, DeferredReason as Mt, AiGradedCriterion as N, GradeRecord as Nn, DeferredScoringPartial as Nt, AiFillInTheBlanksFacts as O, XAPIResult as On, ActivityMedia as Ot, AiGradingCriterionFact as P, GradeRouting as Pn, DictationData as Pt, AiTextResult as Q, MediaTrack as Qt, AiGradingRequestProblem as R, GraderKind as Rn, DictationTolerance as Rt, AiDrafts as S, XAPIActor as Sn, DraftValidationResult as St, AiDraftsRun as T, XAPIContextActivities as Tn, ActivityData as Tt, AiMultipleChoiceFacts as U, TextMatchResult as Un, GapSelectData as Ut, AiItemFacts as V, InlineCorrection as Vn, GapSelectBank as Vt, AiOptionFact as W, levenshteinDistance as Wn, GapSelectGap as Wt, AiSoundFact as X, LearnerResponseMap as Xt, AiRubricCriterionFact as Y, LearnerResponse as Yt, AiSupportedActivityType as Z, MediaPlaybackPolicy as Zt, AiDraftCaption as _, WrittenResponseData as _n, DraftComplete as _t, AiCoachingRequest as a, ReadAloudDimension as an, AiWritingFeedbackRequest as at, AiDraftSource as b, WrittenResponseRubricCriterion as bn, DraftNotComplete as bt, AiCriterionJudgement as c, ReadAloudSlowMedia as cn, MediaProgress as ct, AiCritiqueFinding as d, ScoringDetail as dn, SequenceSlot as dt, MultipleChoiceLearnerResponse as en, AiVideoDraft as et, AiCritiqueFindingResult as f, ScoringOutcome as fn, SequenceSlotGroup as ft, AiDictationFacts as g, ValidationResult as gn, TimelineCue as gt, AiCritiqueResult as h, ValidationError as hn, TimelineChapter as ht, AiCoaching as i, ReadAloudData as in, AiWritingFeedback as it, AiGeneratedDraft as j, XAPIVerbObject as jn, BlankConfig as jt, AiGapFact as k, XAPIScore as kn, ActivityResult as kt, AiCritique as l, RecordingBounds as ln, MediaTimeline as lt, AiCritiqueRequest as m, ScriptTurn as mn, StimulusKind as mt, AiActivityInput as n, MultipleChoiceOptionMedia as nn, AiWritingCorrection as nt, AiCoachingResult as o, ReadAloudDimensionWeight as on, AiWritingFeedbackResult as ot, AiCritiqueKind as p, ScoringResult as pn, Stimulus as pt, AiReadingWordFact as q, InteractionKind as qt, AiBlankFact as r, NativeControlHint as rn, AiWritingFacts as rt, AiCoachingWord as s, ReadAloudLearnerResponse as sn, ItemGroup as st, ActivityAiPermissions as t, MultipleChoiceOption as tn, AiWordFact as tt, AiCritiqueField as u, RecordingRef as un, SequenceEntry as ut, AiDraftProblem as v, WrittenResponseLearnerResponse as vn, DraftContext as vt, AiDraftsRequest as w, XAPIContext as wn, ItemFindingSeverity as wt, AiDraftType as x, WrittenResponseRubricLevel as xn, DraftSeverity as xt, AiDraftSettings as y, WrittenResponseRubric as yn, DraftIssue as yt, AiGroupInput as z, GraderUsage as zn, FillInTheBlanksData as zt };
|
|
2652
|
+
//# sourceMappingURL=ai-i3jwXnpX.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-i3jwXnpX.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/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;;IAEP,cAAc;;IAEd;;IAEA;;IAEA;;IAEA,UAAU;MAAQ;MAAY,cAAc;;IAC5C,aAAa;;;;;;;UAQA;EACf;;EAEA;;EAEA;;EAEA;;IAEE;;IAEA;;;;UAKa;;EAEf;;EAEA,SAAS;;;UAIM;;EAEf;;EAEA;;EAEA;;EAEA;;;UAIe;EACf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