@intellectif/lk-core 1.0.0 → 1.1.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 +15 -0
- package/README.md +1 -1
- package/dist/{activity-DgpBJeBc.d.cts → activity-MBOYLBjR.d.cts} +117 -7
- package/dist/{activity-DgpBJeBc.d.ts → activity-MBOYLBjR.d.ts} +117 -7
- package/dist/ai-check.cjs +137 -8
- package/dist/ai-check.cjs.map +1 -1
- package/dist/ai-check.d.cts +6 -3
- package/dist/ai-check.d.ts +6 -3
- package/dist/ai-check.js +132 -3
- package/dist/ai-check.js.map +1 -1
- package/dist/{chunk-W5KB3DNT.cjs → chunk-LDFQUZII.cjs} +230 -9
- package/dist/chunk-LDFQUZII.cjs.map +1 -0
- package/dist/{chunk-RCZCP5OE.js → chunk-NQHETFDA.js} +227 -6
- package/dist/chunk-NQHETFDA.js.map +1 -0
- package/dist/{index-BlOLlwOi.d.cts → index-DlCW0XaQ.d.cts} +1 -1
- package/dist/{index-BVNeSCWC.d.ts → index-DlcqkM_L.d.ts} +1 -1
- package/dist/index.cjs +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +68 -11
- package/dist/index.d.ts +68 -11
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.cts +2 -2
- package/dist/schemas.d.ts +2 -2
- package/dist/scoring.d.cts +242 -242
- package/dist/scoring.d.ts +242 -242
- package/dist/xapi.d.cts +1 -1
- package/dist/xapi.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-RCZCP5OE.js.map +0 -1
- package/dist/chunk-W5KB3DNT.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as ActivityAiPermissions, c as ActivityFeedback, e as ActivityResult, h as AiBlankFact,
|
|
3
|
-
import { ResolvedItemScoringPolicy, ItemScoringPolicy, ScoredItem, RoundingPolicy, CompositionPolicy, AssessmentScore } from './scoring.cjs';
|
|
4
|
-
export { AssessmentSectionInput, Band, 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, DictationAlignment, DictationCharOp, DictationReference, DictationWordAlignment, EvaluateOptions, GradeReadAloudOptions, ITEM_SCORING_MAX_RETRIES, ItemScoringCount, ItemScoringPolicyIssue, ItemTriesOutcome, ItemTriesScore, ItemTry, ItemTryScore, PassFailureReason, READ_ALOUD_MAX_DIMENSION_WEIGHT, READ_ALOUD_MAX_REFERENCE_LENGTH, READ_ALOUD_MAX_SECONDS, READ_ALOUD_MAX_TAKES, ReadAloudWordAlignment, ReadAloudWordState, RoundingMode, SPEECH_ASSESSMENT_MAX_WORDS, ScoringOptions, SectionScore,
|
|
5
|
-
import { p as SequenceSlot, S as SequenceEntry, I as ItemGroup, M as MediaProgress } from './index-
|
|
6
|
-
export { a as MediaTimeline, R as RedactedActivity, b as RedactedBlankConfig, c as RedactedDictationData, d as RedactedDictationSlowMedia, e as RedactedFillInTheBlanksData, f as RedactedGapSelectBank, g as RedactedGapSelectChoice, h as RedactedGapSelectData, i as RedactedGapSelectGap, j as RedactedMultipleChoiceData, k as RedactedMultipleChoiceOption, l as RedactedMultipleChoiceOptionMedia, m as RedactedReadAloudData, n as RedactedStimulus, o as RedactedWrittenResponseData, q as SequenceSlotGroup, r as Stimulus, s as StimulusKind, T as TimelineChapter, t as TimelineCue, u as dictationJsonSchema, v as fillInTheBlanksJsonSchema, w as gapSelectJsonSchema, x as itemGroupJsonSchema, y as jsonSchemaFor, z as multipleChoiceJsonSchema, A as readAloudJsonSchema, B as stimulusJsonSchema, C as validateActivity, D as validateItemGroup, E as validateMedia, F as validateOptionMedia, G as writtenResponseJsonSchema } from './index-
|
|
1
|
+
import { F as AiSupportedActivityType, g as AiActivityInput, p as AiFeature, ab as LearnerResponse, aa as ItemOutcome, o as AiExplanationRequest, t as AiGrade, u as AiHintRequest, ar as ScoringDetail, v as AiItemFacts, G as AiTextResult, C as AiRefusal, a2 as GradeRecord, j as AiCoachingRequest, i as AiCoaching, M as AiWritingFeedbackRequest, L as AiWritingFeedback, a as ActivityData, aw as ValidationError, f as ActivityType, b as ActivityDataMap, P as CriterionScore, aj as NativeControlHint, d as ActivityMedia, at as ScoringResult, R as DeferredScoringPartial, S as DictationData, U as DictationLearnerResponse, X as FillInTheBlanksData, Y as FillInTheBlanksLearnerResponse, $ as GapSelectData, a1 as GapSelectLearnerResponse, af as MultipleChoiceData, ag as MultipleChoiceLearnerResponse, ak as ReadAloudData, an as ReadAloudLearnerResponse, ay as WrittenResponseData, az as WrittenResponseLearnerResponse } from './activity-MBOYLBjR.cjs';
|
|
2
|
+
export { A as ActivityAiPermissions, c as ActivityFeedback, e as ActivityResult, h as AiBlankFact, k as AiCoachingResult, l as AiCoachingWord, m as AiCriterionJudgement, n as AiDictationFacts, q as AiFillInTheBlanksFacts, r as AiGapFact, s as AiGapSelectFacts, w as AiMultipleChoiceFacts, x as AiOptionFact, y as AiProvenance, z as AiReadingFacts, B as AiReadingWordFact, D as AiRubricCriterionFact, E as AiSoundFact, H as AiVerdict, I as AiWordFact, J as AiWritingCorrection, K as AiWritingFacts, N as AiWritingFeedbackResult, O as BlankConfig, Q as DeferredReason, T as DictationEquivalence, V as DictationSlowMedia, W as DictationTolerance, Z as GapSelectBank, _ as GapSelectChoice, a0 as GapSelectGap, a3 as Grader, a4 as GraderKind, a5 as GraderUsage, a6 as GradingState, a7 as InlineCorrection, a8 as InteractionEvent, a9 as InteractionKind, ac as LearnerResponseMap, ad as MediaPlaybackPolicy, ae as MediaTrack, ah as MultipleChoiceOption, ai as MultipleChoiceOptionMedia, al as ReadAloudDimension, am as ReadAloudDimensionWeight, ao as ReadAloudSlowMedia, ap as RecordingBounds, aq as RecordingRef, as as ScoringOutcome, au as TextMatchPolicy, av as TextMatchResult, ax as ValidationResult, aA as WrittenResponseRubric, aB as WrittenResponseRubricCriterion, aC as XAPIActor, aD as XAPIConfig, aE as XAPIContext, aF as XAPIContextActivities, aG as XAPIError, aH as XAPIObject, aI as XAPIResult, aJ as XAPIScore, aK as XAPIStatement, aL as XAPIVerbObject, aM as levenshteinDistance, aN as matchText } from './activity-MBOYLBjR.cjs';
|
|
3
|
+
import { SpeechAssessment, ResolvedItemScoringPolicy, ItemScoringPolicy, ScoredItem, RoundingPolicy, CompositionPolicy, AssessmentScore } from './scoring.cjs';
|
|
4
|
+
export { AssessmentSectionInput, Band, 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, DictationAlignment, DictationCharOp, DictationReference, DictationWordAlignment, EvaluateOptions, GradeReadAloudOptions, ITEM_SCORING_MAX_RETRIES, ItemScoringCount, ItemScoringPolicyIssue, ItemTriesOutcome, ItemTriesScore, ItemTry, ItemTryScore, PassFailureReason, READ_ALOUD_MAX_DIMENSION_WEIGHT, READ_ALOUD_MAX_REFERENCE_LENGTH, READ_ALOUD_MAX_SECONDS, READ_ALOUD_MAX_TAKES, ReadAloudWordAlignment, ReadAloudWordState, RoundingMode, SPEECH_ASSESSMENT_MAX_WORDS, ScoringOptions, SectionScore, SpeechMeasurement, SpeechPhoneme, SpeechPhonemeCandidate, SpeechPlausibilityPolicy, SpeechSyllable, SpeechUnscorable, SpeechUnscorableCode, SpeechWord, SpeechWordError, WavInspection, WavInspectionPolicy, alignDictation, alignReadAloud, classifyBand, composeAssessmentScore, computePassThreshold, dictationReferenceWords, diffDictationChars, evaluate, evaluateTries, gradeReadAloud, gte, inspectWav, outcomeFromUnscorable, resolveItemScoringPolicy, roundGrade, score, scoreTries, validateItemScoringPolicy, validateSpeechAssessment } from './scoring.cjs';
|
|
5
|
+
import { p as SequenceSlot, S as SequenceEntry, I as ItemGroup, M as MediaProgress } from './index-DlCW0XaQ.cjs';
|
|
6
|
+
export { a as MediaTimeline, R as RedactedActivity, b as RedactedBlankConfig, c as RedactedDictationData, d as RedactedDictationSlowMedia, e as RedactedFillInTheBlanksData, f as RedactedGapSelectBank, g as RedactedGapSelectChoice, h as RedactedGapSelectData, i as RedactedGapSelectGap, j as RedactedMultipleChoiceData, k as RedactedMultipleChoiceOption, l as RedactedMultipleChoiceOptionMedia, m as RedactedReadAloudData, n as RedactedStimulus, o as RedactedWrittenResponseData, q as SequenceSlotGroup, r as Stimulus, s as StimulusKind, T as TimelineChapter, t as TimelineCue, u as dictationJsonSchema, v as fillInTheBlanksJsonSchema, w as gapSelectJsonSchema, x as itemGroupJsonSchema, y as jsonSchemaFor, z as multipleChoiceJsonSchema, A as readAloudJsonSchema, B as stimulusJsonSchema, C as validateActivity, D as validateItemGroup, E as validateMedia, F as validateOptionMedia, G as writtenResponseJsonSchema } from './index-DlCW0XaQ.cjs';
|
|
7
7
|
export { AnsweredStatementParams, CompletedStatementParams, SubmittedStatementParams, XAPIObjectParams, XAPIStatementParams, XAPIVerb, XAPIVerbKey, XAPI_VERB_DISPLAY, validateXAPIStatement, xAPIBuilder, xapiDefinitionFor } from './xapi.cjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -18,16 +18,16 @@ declare const AI_TEXT_MAX_LENGTH = 2000;
|
|
|
18
18
|
/**
|
|
19
19
|
* Whether the SDK supports `feature` for this activity type: explanations and
|
|
20
20
|
* hints for the types it builds facts for, and writing feedback for a written
|
|
21
|
-
* response
|
|
21
|
+
* response, and coaching for a read-aloud. A consumer's own type has none.
|
|
22
22
|
*/
|
|
23
23
|
declare function aiSupports(activityType: string, feature: AiFeature): boolean;
|
|
24
24
|
/**
|
|
25
25
|
* Whether the item's author allows `feature`. Only an explicit `false`
|
|
26
26
|
* switches it off: an author can refuse a feature, never force one on.
|
|
27
27
|
*
|
|
28
|
-
* Writing feedback
|
|
29
|
-
* learner's own answer, and an author who switched one
|
|
30
|
-
* the
|
|
28
|
+
* Writing feedback and pronunciation coaching read `explanations`: each is a
|
|
29
|
+
* model's words about the learner's own answer, and an author who switched one
|
|
30
|
+
* off has switched off the others.
|
|
31
31
|
*/
|
|
32
32
|
declare function aiAllowedByContent(data: AiActivityInput, feature: AiFeature): boolean;
|
|
33
33
|
/** A grade as an explanation must speak to it: all marks, some, or none. */
|
|
@@ -131,6 +131,63 @@ declare function checkAiHint(raw: unknown, request: AiHintRequest): {
|
|
|
131
131
|
*/
|
|
132
132
|
declare function hintRevealsAnswer(facts: AiItemFacts, hint: string): boolean;
|
|
133
133
|
|
|
134
|
+
/** The most words one coaching may work on. More is refused, not cut. */
|
|
135
|
+
declare const AI_COACHING_MAX_WORDS = 20;
|
|
136
|
+
/** The longest tip for one word, in code points. */
|
|
137
|
+
declare const AI_COACHING_MAX_TIP_LENGTH = 500;
|
|
138
|
+
/**
|
|
139
|
+
* The request for coaching on a graded reading, or `null` when there is none
|
|
140
|
+
* to give: not a read-aloud, an author who switched explanations off (coaching
|
|
141
|
+
* reads `ai.explanations`), or no marks.
|
|
142
|
+
*
|
|
143
|
+
* The marks come from the `assessment` when one is given — with each word's
|
|
144
|
+
* sounds and what each was heard as — and then only from it: an assessment
|
|
145
|
+
* `gradeReadAloud` would not read (no speech heard, unscripted, or made against
|
|
146
|
+
* another text or locale) gives none, rather than a stored grade's marks the
|
|
147
|
+
* learner is not looking at. With no assessment, they come from
|
|
148
|
+
* `grade.details`, without sounds.
|
|
149
|
+
*
|
|
150
|
+
* The facts are the text as the learner saw it, those marks word by word, and
|
|
151
|
+
* the engine's dimension scores. The marks are the engine's; the model
|
|
152
|
+
* explains them.
|
|
153
|
+
*/
|
|
154
|
+
declare function aiCoachingRequest(input: {
|
|
155
|
+
data: AiActivityInput;
|
|
156
|
+
assessment?: SpeechAssessment | null;
|
|
157
|
+
grade?: GradeRecord | null;
|
|
158
|
+
learnerLocale?: string;
|
|
159
|
+
}): AiCoachingRequest | null;
|
|
160
|
+
/**
|
|
161
|
+
* Checks coaching a port returned for `request`, and turns it into what a
|
|
162
|
+
* learner is shown. As every AI text, it is shown whole or not at all.
|
|
163
|
+
*
|
|
164
|
+
* - **The text** is read as every AI text is (`readAiTextResult`).
|
|
165
|
+
* - **Every word coached is one the engine marked.** Each `itemId` names a word
|
|
166
|
+
* of the text marked `mispronounced` or `omitted`, once; coaching on a word
|
|
167
|
+
* read correctly, or one the text does not have, refuses the whole reply as
|
|
168
|
+
* `contradicts-marks`. Praise belongs in `text`.
|
|
169
|
+
* - **Every sound named is one the engine reported** for that word, and a sound
|
|
170
|
+
* it was heard as is one the engine heard it as. Where the facts carry no
|
|
171
|
+
* sounds — marks from a stored grade, or an assessor that reports none — any
|
|
172
|
+
* sound is `contradicts-marks`: nothing stands behind it.
|
|
173
|
+
* - **Nothing numeric is read.** A score in the reply is ignored: the marks and
|
|
174
|
+
* the grade are the engine's.
|
|
175
|
+
* - **Limits:** {@link AI_COACHING_MAX_WORDS} words, a tip of
|
|
176
|
+
* {@link AI_COACHING_MAX_TIP_LENGTH} code points; over them `too-long`. A
|
|
177
|
+
* shape that is not the one documented is `malformed`.
|
|
178
|
+
*
|
|
179
|
+
* The words come back in reading order, each with the word as the marks show it
|
|
180
|
+
* (the SDK's reading of the text, never the model's), and each sound spelt as
|
|
181
|
+
* the engine spelt it.
|
|
182
|
+
*/
|
|
183
|
+
declare function checkAiCoaching(raw: unknown, request: AiCoachingRequest): {
|
|
184
|
+
ok: true;
|
|
185
|
+
coaching: AiCoaching;
|
|
186
|
+
} | {
|
|
187
|
+
ok: false;
|
|
188
|
+
refusal: AiRefusal;
|
|
189
|
+
};
|
|
190
|
+
|
|
134
191
|
/** The most corrections one piece of writing feedback may carry. More is refused, not cut. */
|
|
135
192
|
declare const AI_WRITING_MAX_CORRECTIONS = 20;
|
|
136
193
|
/** The longest quote, correction, explanation or criterion comment, in code points. */
|
|
@@ -1795,4 +1852,4 @@ interface ThemeTokens {
|
|
|
1795
1852
|
'--lk-transition-base': string;
|
|
1796
1853
|
}
|
|
1797
1854
|
|
|
1798
|
-
export { AI_EXPLANATION_TYPES, AI_HINT_TYPES, AI_TEXT_MAX_LENGTH, AI_WRITING_MAX_CORRECTIONS, AI_WRITING_MAX_FIELD_LENGTH, ActivityData, ActivityDataMap, ActivityMedia, ActivitySchemaError, ActivityType, type ActivityTypeAuthoring, type ActivityTypeDescriptor, type ActivityTypeInterop, type ActivityTypeScoring, AiActivityInput, AiExplanationRequest, AiFeature, AiGrade, AiHintRequest, AiItemFacts, AiRefusal, AiSupportedActivityType, AiTextResult, AiWritingFeedback, AiWritingFeedbackRequest, AssessmentScore, type AttemptPlan, type AttemptPlanDrift, type AttemptPlanSlot, type AttemptProgress, type AttemptState, CompositionPolicy, CriterionScore, DeferredScoringError, DeferredScoringPartial, type DeliveryPolicy, type DeliveryPolicyIssue, DictationData, DictationLearnerResponse, type DraftComplete, type DraftContext, type DraftIssue, type DraftNotComplete, type DraftSeverity, type DraftValidationResult, type FieldPolicy, FillInTheBlanksData, FillInTheBlanksLearnerResponse, type FlattenSequenceOptions, GapSelectData, GapSelectLearnerResponse, type GradeFromRubricOptions, GradeRecord, INTERACTIVE_VIDEO_ITEM_TYPES, type InteractiveVideoItemType, ItemGroup, ItemOutcome, ItemScoringPolicy, LearnerResponse, type MediaBudgetRef, type MediaPlayClaim, type MediaPlayGrant, type MediaPlayLedger, type MediaPlayLedgerEntry, MediaProgress, type MissingOutcomePolicy, MultipleChoiceData, MultipleChoiceLearnerResponse, NativeControlHint, OPEN_DELIVERY_POLICY, type PartialScoringResult, type PlanAttemptOptions, type PlannableEntry, ReadAloudData, ReadAloudLearnerResponse, type RedactOptions, type RedactedActivityData, type RedactedItemGroup, RedactedScoringError, type RegisteredActivityTypeDescriptor, type ResolvedDeliveryPolicy, ResolvedItemScoringPolicy, type ResolvedPlaybackPolicy, type ResponseDiffEntry, RoundingPolicy, ScoredItem, ScoringDetail, ScoringResult, type SeededShuffleOptions, type Sensitivity, SequenceEntry, SequenceSlot, type ShuffleVersion, StandardSchemaV1, TIMELINE_MAX_CHAPTERS, TIMELINE_MAX_ITEMS, TIMELINE_MAX_QUIZZES, TIMELINE_MAX_TITLE_LENGTH, type ThemeTokens, UnknownActivityTypeError, ValidationError, WrittenResponseData, WrittenResponseLearnerResponse, type XAPIInteractionType, aiAllowedByContent, aiExplanationRequest, aiGradeOf, aiHintRequest, aiSupports, aiWritingFeedbackRequest, assertRedacted, assertRedactedItemGroup, buildAiFacts, canonicalJson, checkAiExplanation, checkAiHint, checkAiWritingFeedback, combineDeliveryPolicies, composeTimelineScore, contentHash, countWords, createDraft, createInteractiveVideoDraft, createItemGroupDraft, defineActivityType, dictationType, diffResponses, entryKeyOf, fillInTheBlanksType, fingerprint, flattenSequence, gapSelectType, getActivityTypeDescriptor, gradeFromRubric, hasGrade, hashSeed, hintRevealsAnswer, isInteractiveVideoItemType, isItemGroup, multipleChoiceType, outcomeFromGrade, planAttempt, planMediaBudgets, readAiTextResult, readAloudType, readMediaProgress, redact, redactItemGroup, registerActivityType, registeredActivityTypes, resolveDeliveryPolicy, resolvePlaybackPolicy, restoreAttemptState, restoreMediaPlayLedger, scoredItemsFromPlan, seededShuffle, serializeAttemptState, serializeMediaPlayLedger, slotMediaKey, stimulusMediaKey, validateDeliveryPolicy, validateDraft, validateItemGroupDraft, verifyAttemptPlan, writtenResponseType };
|
|
1855
|
+
export { AI_COACHING_MAX_TIP_LENGTH, AI_COACHING_MAX_WORDS, AI_EXPLANATION_TYPES, AI_HINT_TYPES, AI_TEXT_MAX_LENGTH, AI_WRITING_MAX_CORRECTIONS, AI_WRITING_MAX_FIELD_LENGTH, ActivityData, ActivityDataMap, ActivityMedia, ActivitySchemaError, ActivityType, type ActivityTypeAuthoring, type ActivityTypeDescriptor, type ActivityTypeInterop, type ActivityTypeScoring, AiActivityInput, AiCoaching, AiCoachingRequest, AiExplanationRequest, AiFeature, AiGrade, AiHintRequest, AiItemFacts, AiRefusal, AiSupportedActivityType, AiTextResult, AiWritingFeedback, AiWritingFeedbackRequest, AssessmentScore, type AttemptPlan, type AttemptPlanDrift, type AttemptPlanSlot, type AttemptProgress, type AttemptState, CompositionPolicy, CriterionScore, DeferredScoringError, DeferredScoringPartial, type DeliveryPolicy, type DeliveryPolicyIssue, DictationData, DictationLearnerResponse, type DraftComplete, type DraftContext, type DraftIssue, type DraftNotComplete, type DraftSeverity, type DraftValidationResult, type FieldPolicy, FillInTheBlanksData, FillInTheBlanksLearnerResponse, type FlattenSequenceOptions, GapSelectData, GapSelectLearnerResponse, type GradeFromRubricOptions, GradeRecord, INTERACTIVE_VIDEO_ITEM_TYPES, type InteractiveVideoItemType, ItemGroup, ItemOutcome, ItemScoringPolicy, LearnerResponse, type MediaBudgetRef, type MediaPlayClaim, type MediaPlayGrant, type MediaPlayLedger, type MediaPlayLedgerEntry, MediaProgress, type MissingOutcomePolicy, MultipleChoiceData, MultipleChoiceLearnerResponse, NativeControlHint, OPEN_DELIVERY_POLICY, type PartialScoringResult, type PlanAttemptOptions, type PlannableEntry, ReadAloudData, ReadAloudLearnerResponse, type RedactOptions, type RedactedActivityData, type RedactedItemGroup, RedactedScoringError, type RegisteredActivityTypeDescriptor, type ResolvedDeliveryPolicy, ResolvedItemScoringPolicy, type ResolvedPlaybackPolicy, type ResponseDiffEntry, RoundingPolicy, ScoredItem, ScoringDetail, ScoringResult, type SeededShuffleOptions, type Sensitivity, SequenceEntry, SequenceSlot, type ShuffleVersion, SpeechAssessment, StandardSchemaV1, TIMELINE_MAX_CHAPTERS, TIMELINE_MAX_ITEMS, TIMELINE_MAX_QUIZZES, TIMELINE_MAX_TITLE_LENGTH, type ThemeTokens, UnknownActivityTypeError, ValidationError, WrittenResponseData, WrittenResponseLearnerResponse, type XAPIInteractionType, aiAllowedByContent, aiCoachingRequest, aiExplanationRequest, aiGradeOf, aiHintRequest, aiSupports, aiWritingFeedbackRequest, assertRedacted, assertRedactedItemGroup, buildAiFacts, canonicalJson, checkAiCoaching, checkAiExplanation, checkAiHint, checkAiWritingFeedback, combineDeliveryPolicies, composeTimelineScore, contentHash, countWords, createDraft, createInteractiveVideoDraft, createItemGroupDraft, defineActivityType, dictationType, diffResponses, entryKeyOf, fillInTheBlanksType, fingerprint, flattenSequence, gapSelectType, getActivityTypeDescriptor, gradeFromRubric, hasGrade, hashSeed, hintRevealsAnswer, isInteractiveVideoItemType, isItemGroup, multipleChoiceType, outcomeFromGrade, planAttempt, planMediaBudgets, readAiTextResult, readAloudType, readMediaProgress, redact, redactItemGroup, registerActivityType, registeredActivityTypes, resolveDeliveryPolicy, resolvePlaybackPolicy, restoreAttemptState, restoreMediaPlayLedger, scoredItemsFromPlan, seededShuffle, serializeAttemptState, serializeMediaPlayLedger, slotMediaKey, stimulusMediaKey, validateDeliveryPolicy, validateDraft, validateItemGroupDraft, verifyAttemptPlan, writtenResponseType };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as ActivityAiPermissions, c as ActivityFeedback, e as ActivityResult, h as AiBlankFact,
|
|
3
|
-
import { ResolvedItemScoringPolicy, ItemScoringPolicy, ScoredItem, RoundingPolicy, CompositionPolicy, AssessmentScore } from './scoring.js';
|
|
4
|
-
export { AssessmentSectionInput, Band, 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, DictationAlignment, DictationCharOp, DictationReference, DictationWordAlignment, EvaluateOptions, GradeReadAloudOptions, ITEM_SCORING_MAX_RETRIES, ItemScoringCount, ItemScoringPolicyIssue, ItemTriesOutcome, ItemTriesScore, ItemTry, ItemTryScore, PassFailureReason, READ_ALOUD_MAX_DIMENSION_WEIGHT, READ_ALOUD_MAX_REFERENCE_LENGTH, READ_ALOUD_MAX_SECONDS, READ_ALOUD_MAX_TAKES, ReadAloudWordAlignment, ReadAloudWordState, RoundingMode, SPEECH_ASSESSMENT_MAX_WORDS, ScoringOptions, SectionScore,
|
|
5
|
-
import { p as SequenceSlot, S as SequenceEntry, I as ItemGroup, M as MediaProgress } from './index-
|
|
6
|
-
export { a as MediaTimeline, R as RedactedActivity, b as RedactedBlankConfig, c as RedactedDictationData, d as RedactedDictationSlowMedia, e as RedactedFillInTheBlanksData, f as RedactedGapSelectBank, g as RedactedGapSelectChoice, h as RedactedGapSelectData, i as RedactedGapSelectGap, j as RedactedMultipleChoiceData, k as RedactedMultipleChoiceOption, l as RedactedMultipleChoiceOptionMedia, m as RedactedReadAloudData, n as RedactedStimulus, o as RedactedWrittenResponseData, q as SequenceSlotGroup, r as Stimulus, s as StimulusKind, T as TimelineChapter, t as TimelineCue, u as dictationJsonSchema, v as fillInTheBlanksJsonSchema, w as gapSelectJsonSchema, x as itemGroupJsonSchema, y as jsonSchemaFor, z as multipleChoiceJsonSchema, A as readAloudJsonSchema, B as stimulusJsonSchema, C as validateActivity, D as validateItemGroup, E as validateMedia, F as validateOptionMedia, G as writtenResponseJsonSchema } from './index-
|
|
1
|
+
import { F as AiSupportedActivityType, g as AiActivityInput, p as AiFeature, ab as LearnerResponse, aa as ItemOutcome, o as AiExplanationRequest, t as AiGrade, u as AiHintRequest, ar as ScoringDetail, v as AiItemFacts, G as AiTextResult, C as AiRefusal, a2 as GradeRecord, j as AiCoachingRequest, i as AiCoaching, M as AiWritingFeedbackRequest, L as AiWritingFeedback, a as ActivityData, aw as ValidationError, f as ActivityType, b as ActivityDataMap, P as CriterionScore, aj as NativeControlHint, d as ActivityMedia, at as ScoringResult, R as DeferredScoringPartial, S as DictationData, U as DictationLearnerResponse, X as FillInTheBlanksData, Y as FillInTheBlanksLearnerResponse, $ as GapSelectData, a1 as GapSelectLearnerResponse, af as MultipleChoiceData, ag as MultipleChoiceLearnerResponse, ak as ReadAloudData, an as ReadAloudLearnerResponse, ay as WrittenResponseData, az as WrittenResponseLearnerResponse } from './activity-MBOYLBjR.js';
|
|
2
|
+
export { A as ActivityAiPermissions, c as ActivityFeedback, e as ActivityResult, h as AiBlankFact, k as AiCoachingResult, l as AiCoachingWord, m as AiCriterionJudgement, n as AiDictationFacts, q as AiFillInTheBlanksFacts, r as AiGapFact, s as AiGapSelectFacts, w as AiMultipleChoiceFacts, x as AiOptionFact, y as AiProvenance, z as AiReadingFacts, B as AiReadingWordFact, D as AiRubricCriterionFact, E as AiSoundFact, H as AiVerdict, I as AiWordFact, J as AiWritingCorrection, K as AiWritingFacts, N as AiWritingFeedbackResult, O as BlankConfig, Q as DeferredReason, T as DictationEquivalence, V as DictationSlowMedia, W as DictationTolerance, Z as GapSelectBank, _ as GapSelectChoice, a0 as GapSelectGap, a3 as Grader, a4 as GraderKind, a5 as GraderUsage, a6 as GradingState, a7 as InlineCorrection, a8 as InteractionEvent, a9 as InteractionKind, ac as LearnerResponseMap, ad as MediaPlaybackPolicy, ae as MediaTrack, ah as MultipleChoiceOption, ai as MultipleChoiceOptionMedia, al as ReadAloudDimension, am as ReadAloudDimensionWeight, ao as ReadAloudSlowMedia, ap as RecordingBounds, aq as RecordingRef, as as ScoringOutcome, au as TextMatchPolicy, av as TextMatchResult, ax as ValidationResult, aA as WrittenResponseRubric, aB as WrittenResponseRubricCriterion, aC as XAPIActor, aD as XAPIConfig, aE as XAPIContext, aF as XAPIContextActivities, aG as XAPIError, aH as XAPIObject, aI as XAPIResult, aJ as XAPIScore, aK as XAPIStatement, aL as XAPIVerbObject, aM as levenshteinDistance, aN as matchText } from './activity-MBOYLBjR.js';
|
|
3
|
+
import { SpeechAssessment, ResolvedItemScoringPolicy, ItemScoringPolicy, ScoredItem, RoundingPolicy, CompositionPolicy, AssessmentScore } from './scoring.js';
|
|
4
|
+
export { AssessmentSectionInput, Band, 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, DictationAlignment, DictationCharOp, DictationReference, DictationWordAlignment, EvaluateOptions, GradeReadAloudOptions, ITEM_SCORING_MAX_RETRIES, ItemScoringCount, ItemScoringPolicyIssue, ItemTriesOutcome, ItemTriesScore, ItemTry, ItemTryScore, PassFailureReason, READ_ALOUD_MAX_DIMENSION_WEIGHT, READ_ALOUD_MAX_REFERENCE_LENGTH, READ_ALOUD_MAX_SECONDS, READ_ALOUD_MAX_TAKES, ReadAloudWordAlignment, ReadAloudWordState, RoundingMode, SPEECH_ASSESSMENT_MAX_WORDS, ScoringOptions, SectionScore, SpeechMeasurement, SpeechPhoneme, SpeechPhonemeCandidate, SpeechPlausibilityPolicy, SpeechSyllable, SpeechUnscorable, SpeechUnscorableCode, SpeechWord, SpeechWordError, WavInspection, WavInspectionPolicy, alignDictation, alignReadAloud, classifyBand, composeAssessmentScore, computePassThreshold, dictationReferenceWords, diffDictationChars, evaluate, evaluateTries, gradeReadAloud, gte, inspectWav, outcomeFromUnscorable, resolveItemScoringPolicy, roundGrade, score, scoreTries, validateItemScoringPolicy, validateSpeechAssessment } from './scoring.js';
|
|
5
|
+
import { p as SequenceSlot, S as SequenceEntry, I as ItemGroup, M as MediaProgress } from './index-DlcqkM_L.js';
|
|
6
|
+
export { a as MediaTimeline, R as RedactedActivity, b as RedactedBlankConfig, c as RedactedDictationData, d as RedactedDictationSlowMedia, e as RedactedFillInTheBlanksData, f as RedactedGapSelectBank, g as RedactedGapSelectChoice, h as RedactedGapSelectData, i as RedactedGapSelectGap, j as RedactedMultipleChoiceData, k as RedactedMultipleChoiceOption, l as RedactedMultipleChoiceOptionMedia, m as RedactedReadAloudData, n as RedactedStimulus, o as RedactedWrittenResponseData, q as SequenceSlotGroup, r as Stimulus, s as StimulusKind, T as TimelineChapter, t as TimelineCue, u as dictationJsonSchema, v as fillInTheBlanksJsonSchema, w as gapSelectJsonSchema, x as itemGroupJsonSchema, y as jsonSchemaFor, z as multipleChoiceJsonSchema, A as readAloudJsonSchema, B as stimulusJsonSchema, C as validateActivity, D as validateItemGroup, E as validateMedia, F as validateOptionMedia, G as writtenResponseJsonSchema } from './index-DlcqkM_L.js';
|
|
7
7
|
export { AnsweredStatementParams, CompletedStatementParams, SubmittedStatementParams, XAPIObjectParams, XAPIStatementParams, XAPIVerb, XAPIVerbKey, XAPI_VERB_DISPLAY, validateXAPIStatement, xAPIBuilder, xapiDefinitionFor } from './xapi.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -18,16 +18,16 @@ declare const AI_TEXT_MAX_LENGTH = 2000;
|
|
|
18
18
|
/**
|
|
19
19
|
* Whether the SDK supports `feature` for this activity type: explanations and
|
|
20
20
|
* hints for the types it builds facts for, and writing feedback for a written
|
|
21
|
-
* response
|
|
21
|
+
* response, and coaching for a read-aloud. A consumer's own type has none.
|
|
22
22
|
*/
|
|
23
23
|
declare function aiSupports(activityType: string, feature: AiFeature): boolean;
|
|
24
24
|
/**
|
|
25
25
|
* Whether the item's author allows `feature`. Only an explicit `false`
|
|
26
26
|
* switches it off: an author can refuse a feature, never force one on.
|
|
27
27
|
*
|
|
28
|
-
* Writing feedback
|
|
29
|
-
* learner's own answer, and an author who switched one
|
|
30
|
-
* the
|
|
28
|
+
* Writing feedback and pronunciation coaching read `explanations`: each is a
|
|
29
|
+
* model's words about the learner's own answer, and an author who switched one
|
|
30
|
+
* off has switched off the others.
|
|
31
31
|
*/
|
|
32
32
|
declare function aiAllowedByContent(data: AiActivityInput, feature: AiFeature): boolean;
|
|
33
33
|
/** A grade as an explanation must speak to it: all marks, some, or none. */
|
|
@@ -131,6 +131,63 @@ declare function checkAiHint(raw: unknown, request: AiHintRequest): {
|
|
|
131
131
|
*/
|
|
132
132
|
declare function hintRevealsAnswer(facts: AiItemFacts, hint: string): boolean;
|
|
133
133
|
|
|
134
|
+
/** The most words one coaching may work on. More is refused, not cut. */
|
|
135
|
+
declare const AI_COACHING_MAX_WORDS = 20;
|
|
136
|
+
/** The longest tip for one word, in code points. */
|
|
137
|
+
declare const AI_COACHING_MAX_TIP_LENGTH = 500;
|
|
138
|
+
/**
|
|
139
|
+
* The request for coaching on a graded reading, or `null` when there is none
|
|
140
|
+
* to give: not a read-aloud, an author who switched explanations off (coaching
|
|
141
|
+
* reads `ai.explanations`), or no marks.
|
|
142
|
+
*
|
|
143
|
+
* The marks come from the `assessment` when one is given — with each word's
|
|
144
|
+
* sounds and what each was heard as — and then only from it: an assessment
|
|
145
|
+
* `gradeReadAloud` would not read (no speech heard, unscripted, or made against
|
|
146
|
+
* another text or locale) gives none, rather than a stored grade's marks the
|
|
147
|
+
* learner is not looking at. With no assessment, they come from
|
|
148
|
+
* `grade.details`, without sounds.
|
|
149
|
+
*
|
|
150
|
+
* The facts are the text as the learner saw it, those marks word by word, and
|
|
151
|
+
* the engine's dimension scores. The marks are the engine's; the model
|
|
152
|
+
* explains them.
|
|
153
|
+
*/
|
|
154
|
+
declare function aiCoachingRequest(input: {
|
|
155
|
+
data: AiActivityInput;
|
|
156
|
+
assessment?: SpeechAssessment | null;
|
|
157
|
+
grade?: GradeRecord | null;
|
|
158
|
+
learnerLocale?: string;
|
|
159
|
+
}): AiCoachingRequest | null;
|
|
160
|
+
/**
|
|
161
|
+
* Checks coaching a port returned for `request`, and turns it into what a
|
|
162
|
+
* learner is shown. As every AI text, it is shown whole or not at all.
|
|
163
|
+
*
|
|
164
|
+
* - **The text** is read as every AI text is (`readAiTextResult`).
|
|
165
|
+
* - **Every word coached is one the engine marked.** Each `itemId` names a word
|
|
166
|
+
* of the text marked `mispronounced` or `omitted`, once; coaching on a word
|
|
167
|
+
* read correctly, or one the text does not have, refuses the whole reply as
|
|
168
|
+
* `contradicts-marks`. Praise belongs in `text`.
|
|
169
|
+
* - **Every sound named is one the engine reported** for that word, and a sound
|
|
170
|
+
* it was heard as is one the engine heard it as. Where the facts carry no
|
|
171
|
+
* sounds — marks from a stored grade, or an assessor that reports none — any
|
|
172
|
+
* sound is `contradicts-marks`: nothing stands behind it.
|
|
173
|
+
* - **Nothing numeric is read.** A score in the reply is ignored: the marks and
|
|
174
|
+
* the grade are the engine's.
|
|
175
|
+
* - **Limits:** {@link AI_COACHING_MAX_WORDS} words, a tip of
|
|
176
|
+
* {@link AI_COACHING_MAX_TIP_LENGTH} code points; over them `too-long`. A
|
|
177
|
+
* shape that is not the one documented is `malformed`.
|
|
178
|
+
*
|
|
179
|
+
* The words come back in reading order, each with the word as the marks show it
|
|
180
|
+
* (the SDK's reading of the text, never the model's), and each sound spelt as
|
|
181
|
+
* the engine spelt it.
|
|
182
|
+
*/
|
|
183
|
+
declare function checkAiCoaching(raw: unknown, request: AiCoachingRequest): {
|
|
184
|
+
ok: true;
|
|
185
|
+
coaching: AiCoaching;
|
|
186
|
+
} | {
|
|
187
|
+
ok: false;
|
|
188
|
+
refusal: AiRefusal;
|
|
189
|
+
};
|
|
190
|
+
|
|
134
191
|
/** The most corrections one piece of writing feedback may carry. More is refused, not cut. */
|
|
135
192
|
declare const AI_WRITING_MAX_CORRECTIONS = 20;
|
|
136
193
|
/** The longest quote, correction, explanation or criterion comment, in code points. */
|
|
@@ -1795,4 +1852,4 @@ interface ThemeTokens {
|
|
|
1795
1852
|
'--lk-transition-base': string;
|
|
1796
1853
|
}
|
|
1797
1854
|
|
|
1798
|
-
export { AI_EXPLANATION_TYPES, AI_HINT_TYPES, AI_TEXT_MAX_LENGTH, AI_WRITING_MAX_CORRECTIONS, AI_WRITING_MAX_FIELD_LENGTH, ActivityData, ActivityDataMap, ActivityMedia, ActivitySchemaError, ActivityType, type ActivityTypeAuthoring, type ActivityTypeDescriptor, type ActivityTypeInterop, type ActivityTypeScoring, AiActivityInput, AiExplanationRequest, AiFeature, AiGrade, AiHintRequest, AiItemFacts, AiRefusal, AiSupportedActivityType, AiTextResult, AiWritingFeedback, AiWritingFeedbackRequest, AssessmentScore, type AttemptPlan, type AttemptPlanDrift, type AttemptPlanSlot, type AttemptProgress, type AttemptState, CompositionPolicy, CriterionScore, DeferredScoringError, DeferredScoringPartial, type DeliveryPolicy, type DeliveryPolicyIssue, DictationData, DictationLearnerResponse, type DraftComplete, type DraftContext, type DraftIssue, type DraftNotComplete, type DraftSeverity, type DraftValidationResult, type FieldPolicy, FillInTheBlanksData, FillInTheBlanksLearnerResponse, type FlattenSequenceOptions, GapSelectData, GapSelectLearnerResponse, type GradeFromRubricOptions, GradeRecord, INTERACTIVE_VIDEO_ITEM_TYPES, type InteractiveVideoItemType, ItemGroup, ItemOutcome, ItemScoringPolicy, LearnerResponse, type MediaBudgetRef, type MediaPlayClaim, type MediaPlayGrant, type MediaPlayLedger, type MediaPlayLedgerEntry, MediaProgress, type MissingOutcomePolicy, MultipleChoiceData, MultipleChoiceLearnerResponse, NativeControlHint, OPEN_DELIVERY_POLICY, type PartialScoringResult, type PlanAttemptOptions, type PlannableEntry, ReadAloudData, ReadAloudLearnerResponse, type RedactOptions, type RedactedActivityData, type RedactedItemGroup, RedactedScoringError, type RegisteredActivityTypeDescriptor, type ResolvedDeliveryPolicy, ResolvedItemScoringPolicy, type ResolvedPlaybackPolicy, type ResponseDiffEntry, RoundingPolicy, ScoredItem, ScoringDetail, ScoringResult, type SeededShuffleOptions, type Sensitivity, SequenceEntry, SequenceSlot, type ShuffleVersion, StandardSchemaV1, TIMELINE_MAX_CHAPTERS, TIMELINE_MAX_ITEMS, TIMELINE_MAX_QUIZZES, TIMELINE_MAX_TITLE_LENGTH, type ThemeTokens, UnknownActivityTypeError, ValidationError, WrittenResponseData, WrittenResponseLearnerResponse, type XAPIInteractionType, aiAllowedByContent, aiExplanationRequest, aiGradeOf, aiHintRequest, aiSupports, aiWritingFeedbackRequest, assertRedacted, assertRedactedItemGroup, buildAiFacts, canonicalJson, checkAiExplanation, checkAiHint, checkAiWritingFeedback, combineDeliveryPolicies, composeTimelineScore, contentHash, countWords, createDraft, createInteractiveVideoDraft, createItemGroupDraft, defineActivityType, dictationType, diffResponses, entryKeyOf, fillInTheBlanksType, fingerprint, flattenSequence, gapSelectType, getActivityTypeDescriptor, gradeFromRubric, hasGrade, hashSeed, hintRevealsAnswer, isInteractiveVideoItemType, isItemGroup, multipleChoiceType, outcomeFromGrade, planAttempt, planMediaBudgets, readAiTextResult, readAloudType, readMediaProgress, redact, redactItemGroup, registerActivityType, registeredActivityTypes, resolveDeliveryPolicy, resolvePlaybackPolicy, restoreAttemptState, restoreMediaPlayLedger, scoredItemsFromPlan, seededShuffle, serializeAttemptState, serializeMediaPlayLedger, slotMediaKey, stimulusMediaKey, validateDeliveryPolicy, validateDraft, validateItemGroupDraft, verifyAttemptPlan, writtenResponseType };
|
|
1855
|
+
export { AI_COACHING_MAX_TIP_LENGTH, AI_COACHING_MAX_WORDS, AI_EXPLANATION_TYPES, AI_HINT_TYPES, AI_TEXT_MAX_LENGTH, AI_WRITING_MAX_CORRECTIONS, AI_WRITING_MAX_FIELD_LENGTH, ActivityData, ActivityDataMap, ActivityMedia, ActivitySchemaError, ActivityType, type ActivityTypeAuthoring, type ActivityTypeDescriptor, type ActivityTypeInterop, type ActivityTypeScoring, AiActivityInput, AiCoaching, AiCoachingRequest, AiExplanationRequest, AiFeature, AiGrade, AiHintRequest, AiItemFacts, AiRefusal, AiSupportedActivityType, AiTextResult, AiWritingFeedback, AiWritingFeedbackRequest, AssessmentScore, type AttemptPlan, type AttemptPlanDrift, type AttemptPlanSlot, type AttemptProgress, type AttemptState, CompositionPolicy, CriterionScore, DeferredScoringError, DeferredScoringPartial, type DeliveryPolicy, type DeliveryPolicyIssue, DictationData, DictationLearnerResponse, type DraftComplete, type DraftContext, type DraftIssue, type DraftNotComplete, type DraftSeverity, type DraftValidationResult, type FieldPolicy, FillInTheBlanksData, FillInTheBlanksLearnerResponse, type FlattenSequenceOptions, GapSelectData, GapSelectLearnerResponse, type GradeFromRubricOptions, GradeRecord, INTERACTIVE_VIDEO_ITEM_TYPES, type InteractiveVideoItemType, ItemGroup, ItemOutcome, ItemScoringPolicy, LearnerResponse, type MediaBudgetRef, type MediaPlayClaim, type MediaPlayGrant, type MediaPlayLedger, type MediaPlayLedgerEntry, MediaProgress, type MissingOutcomePolicy, MultipleChoiceData, MultipleChoiceLearnerResponse, NativeControlHint, OPEN_DELIVERY_POLICY, type PartialScoringResult, type PlanAttemptOptions, type PlannableEntry, ReadAloudData, ReadAloudLearnerResponse, type RedactOptions, type RedactedActivityData, type RedactedItemGroup, RedactedScoringError, type RegisteredActivityTypeDescriptor, type ResolvedDeliveryPolicy, ResolvedItemScoringPolicy, type ResolvedPlaybackPolicy, type ResponseDiffEntry, RoundingPolicy, ScoredItem, ScoringDetail, ScoringResult, type SeededShuffleOptions, type Sensitivity, SequenceEntry, SequenceSlot, type ShuffleVersion, SpeechAssessment, StandardSchemaV1, TIMELINE_MAX_CHAPTERS, TIMELINE_MAX_ITEMS, TIMELINE_MAX_QUIZZES, TIMELINE_MAX_TITLE_LENGTH, type ThemeTokens, UnknownActivityTypeError, ValidationError, WrittenResponseData, WrittenResponseLearnerResponse, type XAPIInteractionType, aiAllowedByContent, aiCoachingRequest, aiExplanationRequest, aiGradeOf, aiHintRequest, aiSupports, aiWritingFeedbackRequest, assertRedacted, assertRedactedItemGroup, buildAiFacts, canonicalJson, checkAiCoaching, checkAiExplanation, checkAiHint, checkAiWritingFeedback, combineDeliveryPolicies, composeTimelineScore, contentHash, countWords, createDraft, createInteractiveVideoDraft, createItemGroupDraft, defineActivityType, dictationType, diffResponses, entryKeyOf, fillInTheBlanksType, fingerprint, flattenSequence, gapSelectType, getActivityTypeDescriptor, gradeFromRubric, hasGrade, hashSeed, hintRevealsAnswer, isInteractiveVideoItemType, isItemGroup, multipleChoiceType, outcomeFromGrade, planAttempt, planMediaBudgets, readAiTextResult, readAloudType, readMediaProgress, redact, redactItemGroup, registerActivityType, registeredActivityTypes, resolveDeliveryPolicy, resolvePlaybackPolicy, restoreAttemptState, restoreMediaPlayLedger, scoredItemsFromPlan, seededShuffle, serializeAttemptState, serializeMediaPlayLedger, slotMediaKey, stimulusMediaKey, validateDeliveryPolicy, validateDraft, validateItemGroupDraft, verifyAttemptPlan, writtenResponseType };
|
package/dist/index.js
CHANGED
|
@@ -29,24 +29,28 @@ import {
|
|
|
29
29
|
writtenResponseJsonSchema
|
|
30
30
|
} from "./chunk-XS6U2ARZ.js";
|
|
31
31
|
import {
|
|
32
|
+
AI_COACHING_MAX_TIP_LENGTH,
|
|
33
|
+
AI_COACHING_MAX_WORDS,
|
|
32
34
|
AI_EXPLANATION_TYPES,
|
|
33
35
|
AI_HINT_TYPES,
|
|
34
36
|
AI_TEXT_MAX_LENGTH,
|
|
35
37
|
AI_WRITING_MAX_CORRECTIONS,
|
|
36
38
|
AI_WRITING_MAX_FIELD_LENGTH,
|
|
37
39
|
aiAllowedByContent,
|
|
40
|
+
aiCoachingRequest,
|
|
38
41
|
aiExplanationRequest,
|
|
39
42
|
aiGradeOf,
|
|
40
43
|
aiHintRequest,
|
|
41
44
|
aiSupports,
|
|
42
45
|
aiWritingFeedbackRequest,
|
|
43
46
|
buildAiFacts,
|
|
47
|
+
checkAiCoaching,
|
|
44
48
|
checkAiExplanation,
|
|
45
49
|
checkAiHint,
|
|
46
50
|
checkAiWritingFeedback,
|
|
47
51
|
hintRevealsAnswer,
|
|
48
52
|
readAiTextResult
|
|
49
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-NQHETFDA.js";
|
|
50
54
|
import {
|
|
51
55
|
DEFAULT_ITEM_SCORING_POLICY,
|
|
52
56
|
DEFAULT_PASS_THRESHOLD,
|
|
@@ -1631,6 +1635,8 @@ function composeTimelineScore(entryKey, items, policy) {
|
|
|
1631
1635
|
return composeAssessmentScore([{ id: entryKey, weight: 1, items: own }], policy);
|
|
1632
1636
|
}
|
|
1633
1637
|
export {
|
|
1638
|
+
AI_COACHING_MAX_TIP_LENGTH,
|
|
1639
|
+
AI_COACHING_MAX_WORDS,
|
|
1634
1640
|
AI_EXPLANATION_TYPES,
|
|
1635
1641
|
AI_HINT_TYPES,
|
|
1636
1642
|
AI_TEXT_MAX_LENGTH,
|
|
@@ -1662,6 +1668,7 @@ export {
|
|
|
1662
1668
|
XAPIVerb,
|
|
1663
1669
|
XAPI_VERB_DISPLAY,
|
|
1664
1670
|
aiAllowedByContent,
|
|
1671
|
+
aiCoachingRequest,
|
|
1665
1672
|
aiExplanationRequest,
|
|
1666
1673
|
aiGradeOf,
|
|
1667
1674
|
aiHintRequest,
|
|
@@ -1673,6 +1680,7 @@ export {
|
|
|
1673
1680
|
assertRedactedItemGroup,
|
|
1674
1681
|
buildAiFacts,
|
|
1675
1682
|
canonicalJson,
|
|
1683
|
+
checkAiCoaching,
|
|
1676
1684
|
checkAiExplanation,
|
|
1677
1685
|
checkAiHint,
|
|
1678
1686
|
checkAiWritingFeedback,
|