@thanh01.pmt/curriculum-kit 1.4.37 → 1.4.39
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/dist/ai/index.cjs +194 -2
- package/dist/ai/index.cjs.map +1 -1
- package/dist/ai/index.d.cts +39 -2
- package/dist/ai/index.d.ts +39 -2
- package/dist/ai/index.mjs +191 -3
- package/dist/ai/index.mjs.map +1 -1
- package/dist/index.cjs +598 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +229 -5
- package/dist/index.d.ts +229 -5
- package/dist/index.mjs +577 -30
- package/dist/index.mjs.map +1 -1
- package/dist/pipeline/index.cjs +43 -2
- package/dist/pipeline/index.cjs.map +1 -1
- package/dist/pipeline/index.mjs +43 -2
- package/dist/pipeline/index.mjs.map +1 -1
- package/dist/schemas/index.cjs +47 -2
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +473 -44
- package/dist/schemas/index.d.ts +473 -44
- package/dist/schemas/index.mjs +44 -3
- package/dist/schemas/index.mjs.map +1 -1
- package/dist/workflow/index.cjs +63 -2
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.mjs +63 -2
- package/dist/workflow/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PlanConstraints, TranslationPolicy, CurriculumPlan, PlanningGraph, PlanningNode, DependencyEdge, ConceptSpiralEncounter, SessionZpdStatus, PrerequisiteDecision, UnitPlan, WalkingSkeleton, MasteryGate, ConceptPrerequisiteEdge, LessonPlan, DiagnosticQuizInput, ActivityLab, SlideDeck, CodeLab, DiagnosticQuiz } from './schemas/index.js';
|
|
2
|
-
export { ActiveLearningWorkflow, ActiveLearningWorkflowSchema, ActivityLabSchema,
|
|
1
|
+
import { ActivitySeqRow, PlanConstraints, TranslationPolicy, CurriculumPlan, PlanningGraph, PlanningNode, DependencyEdge, ConceptSpiralEncounter, SessionZpdStatus, PrerequisiteDecision, UnitPlan, WalkingSkeleton, MasteryGate, ConceptPrerequisiteEdge, LessonPlan, DiagnosticQuizInput, ActivityLab, SlideDeck, CodeLab, DiagnosticQuiz } from './schemas/index.js';
|
|
2
|
+
export { ActionableRepairAction, ActionableRepairActionSchema, ActionableRepairPrompt, ActionableRepairPromptSchema, ActiveLearningWorkflow, ActiveLearningWorkflowSchema, ActivityLabSchema, ActivitySeqRowSchema, ActivityStepSchema, ArtifactContractRowSchema, AssessmentMapRowSchema, AssessmentObjective, AssessmentObjectiveSchema, BellRinger, BellRingerDay, BellRingerDaySchema, BellRingerInput, BellRingerSchema, BloomLevel, BloomLevelSchema, BronzeTier, BronzeTierSchema, CERConclusion, CERConclusionSchema, CardTierEnum, ChoiceBoard, ChoiceBoardInput, ChoiceBoardRubricRowSchema, ChoiceBoardSchema, ChoiceRuleSchema, ChoiceSquare, ChoiceSquareSchema, CodeLabSchema, CodeSnippet, CodeSnippetSchema, CompetencyRubricRow, CompetencyRubricRowSchema, ComputationalThinking, ComputationalThinkingSchema, ConceptPrerequisiteEdgeSchema, ConceptSpiralEncounterSchema, CoreConcept, CoreConceptSchema, CourseObjective, CourseObjectiveSchema, CoverageReport, CoverageReportSchema, CurriculumArtifact, CurriculumArtifactSchema, CurriculumPlanSchema, CurriculumQualityReport, CurriculumQualityReportSchema, DependencyEdgeSchema, DepthAssignment, DepthAssignmentSchema, DepthLevel, DepthLevelSchema, DiagnosticQuestion, DiagnosticQuestionInput, DiagnosticQuestionSchema, DiagnosticQuizSchema, EDPPhaseEnum, EntryLevelSchema, ExitTicket, ExitTicketBugHunt, ExitTicketBugHuntSchema, ExitTicketMetacognitionSchema, ExitTicketQuickItemSchema, ExitTicketRecallPromptSchema, ExitTicketSchema, ExperimentalDesignSchema, Extension, ExtensionChallengeSchema, ExtensionSchema, FiveEFlowPhaseSchema, FiveEPhaseEnum, Glossary, GlossaryInput, GlossaryQuickRefRowSchema, GlossarySchema, GlossaryTerm, GlossaryTermSchema, GoldTier, GoldTierSchema, GraphicOrganizer, GraphicOrganizerInput, GraphicOrganizerItem, GraphicOrganizerItemSchema, GraphicOrganizerSchema, Handout, HandoutSchema, HandoutSection, HandoutSectionSchema, InstructionSection, InstructionSectionSchema, InstructionStep, InstructionStepSchema, JudgeCriterion, JudgeCriterionSchema, LabTierTask, LabTierTaskSchema, LearningObjectiveInput, LearningObjectiveInputSchema, LearningObjectiveRow, LearningObjectiveRowSchema, LessonFlowPhase, LessonFlowPhaseSchema, LessonPlan5E, LessonPlan5ESchema, LessonPlanEDP, LessonPlanEDPSchema, LessonPlanSchema, LessonSectionSchema, MacroPedagogyPlanAuditReport, MacroPedagogyPlanAuditSchema, MarpSlide, MarpSlideSchema, MasteryGateSchema, MentorCheatsheetSchema, MilestoneInput, MilestoneInputSchema, Misconception, MisconceptionSchema, NodeKindSchema, OrganizerTypeEnum, PhaseInput, PhaseInputSchema, PlanConstraintsSchema, PlannerInput, PlannerInputSchema, PlanningGraphSchema, PlanningNodeSchema, PlanningPhase, PrerequisiteDecisionEntry, PrerequisiteDecisionEntrySchema, PrerequisiteDecisionSchema, ProductGoalSchema, ProgressiveHints, ProgressiveHintsSchema, ProjectGraph, ProjectGraphAuditReport, ProjectGraphAuditSchema, ProjectGraphSchema, ProjectInstruction, ProjectInstructionSchema, ProjectProfile, ProjectProfileSchema, ProjectRoadmap, QualityAuditVerdict, QualityAuditVerdictSchema, QuizOption, QuizOptionSchema, ResourceMapRowSchema, ReviewGame, ReviewGameExportRowSchema, ReviewGameInput, ReviewGameQuestion, ReviewGameQuestionSchema, ReviewGameSchema, RoadmapInput, RoadmapInputSchema, RotationStation, RotationStationSchema, Rubric, RubricCriteria, RubricCriteriaSchema, RubricSchema, ScaffoldDecision, ScaffoldDecisionEntry, ScaffoldDecisionEntrySchema, ScaffoldDecisionSchema, ScienceLab, ScienceLabInput, ScienceLabSchema, ScoringRubricRowSchema, SelfLab, SelfLabSchema, SelfPacedBundle, SelfPacedBundleSchema, SelfPacedChallenge, SelfPacedChallengeSchema, SessionPlan, SessionPlanSchema, SessionZpdStatusSchema, SilverTier, SilverTierSchema, SlideDeckSchema, StandardizedTermRowSchema, StationRecordRowSchema, StationRotation, StationRotationInput, StationRotationSchema, StationTypeEnum, TaskCard, TaskCardSchema, TaskCards, TaskCardsInput, TaskCardsSchema, TeacherGuide, TeacherGuideSchema, TeachingScriptPhase, TeachingScriptPhaseSchema, TierLevelEnum, TierObjectiveSchema, TieredPractice, TieredPracticeSchema, TranslationPolicySchema, TroubleshootingEntry, TroubleshootingEntrySchema, TroubleshootingRow, TroubleshootingRowSchema, UnitPlanSchema, UserJourneySchema, WalkingSkeletonSchema, Worksheet, WorksheetItem, WorksheetItemSchema, WorksheetItemTypeEnum, WorksheetPart, WorksheetPartSchema, WorksheetSchema, ZpdVerdict, ZpdVerdictSchema, validateCurriculumPlan } from './schemas/index.js';
|
|
3
3
|
import { A as AIProviderName, M as ModelResolutionOptions } from './provider-factory-Bv-eIkhg.js';
|
|
4
4
|
export { N as NVIDIA_MODELS, g as getAIModel } from './provider-factory-Bv-eIkhg.js';
|
|
5
|
-
export { ActivityPromptInput, AsyncLLMJudgeInput, AuditCurriculumQualityInput, CodeLabPromptInput, DEFAULT_ENABLED_PROVIDERS, DiagnosticQuizPromptInput, ExtensionPromptInput, GenerateActivityInput, GenerateCodeLabInput, GenerateDiagnosticQuizInput, GenerateExtensionInput, GenerateHandoutInput, GenerateLessonMasterInput, GenerateProjectInstructionInput, GenerateSelfLabInput, GenerateSlidesInput, GenerateTeacherGuideInput, GenerateWorksheetInput, HandoutPromptInput, HtmlDeckSlidePromptInput, JudgeEvaluationResult, JudgePromptInput, LLMJudgeEngine, LessonPromptInput, MarpMarkdownSlidePromptInput, ModelPolicyResolution, ModelPolicyResolver, ModelProviderKey, MultiProviderPolicyResolution, ProjectInstructionPromptInput, SLIDE_CANONICAL_METHODOLOGY, SelfLabPromptInput, SlidesPromptInput, StreamDiagnosticQuizInput, StreamLessonMasterInput, StreamSelfLabInput, TeacherGuidePromptInput, WorksheetPromptInput, activityTools, analystTools, assessorTools, auditCurriculumQualityFlow, buildActivityPrompt, buildCodeLabPrompt, buildDiagnosticQuizPrompt, buildExtensionPrompt, buildHandoutPrompt, buildHtmlDeckSlidePrompt, buildJudgePrompt, buildLessonMasterPrompt, buildMarpMarkdownSlidePrompt, buildProjectInstructionPrompt, buildSelfLabPrompt, buildSlidesPrompt, buildTeacherGuidePrompt, buildWorksheetPrompt, contentTools, designerTools, generateActivityFlow, generateCodeLabFlow, generateDiagnosticQuizFlow, generateExtensionFlow, generateHandoutFlow, generateLessonMasterFlow, generateProjectInstructionFlow, generateSelfLabFlow, generateSlidesFlow, generateTeacherGuideFlow, generateWorksheetFlow, illustratorTools, packagerTools, researcherTools, reviewerTools, streamCurriculumAIInferenceWithTools, streamDiagnosticQuizFlow, streamLessonMasterFlow, streamSelfLabFlow, techSmeTools } from './ai/index.js';
|
|
5
|
+
export { ActivityPromptInput, AsyncLLMJudgeInput, AuditCurriculumPlanInput, AuditCurriculumQualityInput, AuditProjectGraphInput, CodeLabPromptInput, CurriculumPlanJudgePromptInput, DEFAULT_ENABLED_PROVIDERS, DiagnosticQuizPromptInput, ExtensionPromptInput, GenerateActivityInput, GenerateCodeLabInput, GenerateDiagnosticQuizInput, GenerateExtensionInput, GenerateHandoutInput, GenerateLessonMasterInput, GenerateProjectInstructionInput, GenerateSelfLabInput, GenerateSlidesInput, GenerateTeacherGuideInput, GenerateWorksheetInput, HandoutPromptInput, HtmlDeckSlidePromptInput, JudgeEvaluationResult, JudgePromptInput, LLMJudgeEngine, LessonPromptInput, MarpMarkdownSlidePromptInput, ModelPolicyResolution, ModelPolicyResolver, ModelProviderKey, MultiProviderPolicyResolution, ProjectGraphJudgePromptInput, ProjectInstructionPromptInput, SLIDE_CANONICAL_METHODOLOGY, SelfLabPromptInput, SlidesPromptInput, StreamDiagnosticQuizInput, StreamLessonMasterInput, StreamSelfLabInput, TeacherGuidePromptInput, WorksheetPromptInput, activityTools, analystTools, assessorTools, auditCurriculumPlanFlow, auditCurriculumQualityFlow, auditProjectGraphFlow, buildActivityPrompt, buildCodeLabPrompt, buildCurriculumPlanJudgePrompt, buildDiagnosticQuizPrompt, buildExtensionPrompt, buildHandoutPrompt, buildHtmlDeckSlidePrompt, buildJudgePrompt, buildLessonMasterPrompt, buildMarpMarkdownSlidePrompt, buildProjectGraphJudgePrompt, buildProjectInstructionPrompt, buildSelfLabPrompt, buildSlidesPrompt, buildTeacherGuidePrompt, buildWorksheetPrompt, contentTools, designerTools, generateActivityFlow, generateCodeLabFlow, generateDiagnosticQuizFlow, generateExtensionFlow, generateHandoutFlow, generateLessonMasterFlow, generateProjectInstructionFlow, generateSelfLabFlow, generateSlidesFlow, generateTeacherGuideFlow, generateWorksheetFlow, illustratorTools, packagerTools, researcherTools, reviewerTools, streamCurriculumAIInferenceWithTools, streamDiagnosticQuizFlow, streamLessonMasterFlow, streamSelfLabFlow, techSmeTools } from './ai/index.js';
|
|
6
6
|
import { S as StreamRunnerOptions, C as ChunkType } from './streamRunner-BzlJrAGZ.js';
|
|
7
7
|
export { A as AggregatedToolCall, a as ChatMessage, D as DEFAULT_ARTIFACT_STREAM_IDLE_MS, d as DEFAULT_ARTIFACT_STREAM_TOTAL_MS, F as FallbackTarget, I as IdleAbort, f as StreamAbortController, T as ToolDefinition, l as ToolExecutionResult, m as ToolExecutor, n as ToolLoopConfig, j as createIdleAbortController, h as createStreamAbortController, e as extractThoughtAndContent, g as getDesignatedFallbackChain, c as getDesignatedFallbackConfig, b as isModelAllowed, i as isProviderEnabled, r as resolveApiKey, k as runCurriculumAIInference, s as streamCurriculumAIInference } from './streamRunner-BzlJrAGZ.js';
|
|
8
8
|
export { ArtifactLintReport, ConvertedSotBundle, GenerateProjectInstructionOptions, GenerateRoadmapCurriculumOptions, GenerateSelfPacedBundleInput, LintIssue, ProjectInstructionResult, RoadmapCurriculumOutput, SelfPacedBundleOutput, convertRoadmapToFoundationSot, generateProjectInstruction, generateRoadmapCurriculum, generateSelfPacedBundle, importRoadmapToProject, lintAndSanitizeArtifact, serializeActivityToMarkdown, serializeCodeLabToMarkdown, serializeDiagnosticQuizToMarkdown, serializeHandoutToMarkdown, serializeLessonToMarkdown, serializeProjectInstructionToMarkdown, serializeSelfLabToMarkdown, validateMarkdownTables, validateMermaidSyntax } from './pipeline/index.js';
|
|
@@ -12,9 +12,9 @@ export { b as ArtifactLifecycleInfo, A as ArtifactLifecycleState, L as LessonArt
|
|
|
12
12
|
export { FileSystemCurriculumAdapter, FileSystemStorageOptions, STANDARD_SOT_FILES, StorageFactoryOptions, SupabaseCurriculumAdapter, SupabaseStorageConfig, atomicWriteFileSync, computeContentHash, createCurriculumStorage } from './storage/index.js';
|
|
13
13
|
import { F as FrameworkPack, C as CoverageGateReport } from './standardsCoverageGate-49pJq5t8.js';
|
|
14
14
|
export { B as BloomHintSchema, a as ClassificationSchema, m as CoverageGateInput, h as FrameworkMapping, d as FrameworkMappingSchema, f as FrameworkPackManifest, b as FrameworkPackManifestSchema, e as FrameworkPackSchema, g as FrameworkStatement, c as FrameworkStatementSchema, G as GradeBandSchema, i as MappingKind, M as MappingKindSchema, P as PackLintIssue, k as PackValidationResult, j as RecordProvenance, R as RecordProvenanceSchema, S as StatementCoverageRow, n as evaluateStandardsCoverage, l as lintFrameworkPack, v as validateFrameworkPack } from './standardsCoverageGate-49pJq5t8.js';
|
|
15
|
+
import { z } from 'zod';
|
|
15
16
|
import { R as ResolvedGateSettings } from './gateSettings-oo5tCUS_.js';
|
|
16
17
|
export { A as ArtifactType, B as BoundaryPeek, b as CurriculumArtifactType, C as CurriculumGateMode, h as CurriculumHorizon, D as DEFAULT_GATE_SETTINGS, f as DetailedLessonBridge, E as ExtractCurriculumHorizonOptions, G as GateSettings, H as HorizonSessionSnapshot, i as HorizonValidationResult, c as ScaffoldingLevel, S as SingleArtifactRequest, a as SingleArtifactResult, k as extractCurriculumHorizon, g as gateModeFor, e as generateSingleArtifact, d as getArtifactMetadata, j as parseAllSessions, p as parseGateSettings, l as renderHorizonPromptBlock, r as resolveGateSettings, v as validateHorizonCompliance } from './gateSettings-oo5tCUS_.js';
|
|
17
|
-
import { z } from 'zod';
|
|
18
18
|
export { DeliveryPackResult, JobManifest, LocalWorkspaceManager, ParsedQuizQuestion, buildDeliveryPackages, exportAllProjectQuizzes, formatQuizzesToCsv, parseQuizMarkdown } from './publishers/index.js';
|
|
19
19
|
export { G as GitPublishOptions, a as GitPublishResult, S as SupabasePublishOptions, b as SupabasePublishResult, p as publishToGitHub, c as publishToSupabase, u as uploadAssetToBucket } from './supabasePublisher-C627qXFT.js';
|
|
20
20
|
export { BUNDLED_STANDARDS_PACK_IDS, HydratedPack, ImportPackResult, STANDARD_REF_REGEX, SelectedStatement, StandardStackOptions, StandardsRegistryAdapter, StandardsRegistryConfig, StandardsSelectionInput, buildStandardStackMarkdown, buildStandardsContext, buildStandardsContextBlock, extractStandardRefs, findStandardStatement, resolveStandardsPacks, selectStatementsForLesson } from './standards/index.js';
|
|
@@ -22,6 +22,50 @@ export { CurateOptions, CurationDecision, FulfillOptions, FulfillResult, GenCand
|
|
|
22
22
|
import 'ai';
|
|
23
23
|
import '@supabase/supabase-js';
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Universal Pedagogical Constants & Empirical Classroom Standards
|
|
27
|
+
* Single Source of Truth for Curriculum Planning, Linters, and LLM-as-Judge Evaluators.
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Student Friction Multiplier (Empirical Classroom Constant):
|
|
31
|
+
* Senior engineers write code roughly 2.5x to 3.5x faster than students.
|
|
32
|
+
* A 10-minute expert coding task requires ~25-35 minutes for a student in a classroom setting
|
|
33
|
+
* due to typing, syntax errors, typos, and debugging.
|
|
34
|
+
*/
|
|
35
|
+
declare const STUDENT_FRICTION_MULTIPLIER = 2.5;
|
|
36
|
+
/**
|
|
37
|
+
* Vygotsky Zone of Proximal Development (ZPD) Saturation Thresholds:
|
|
38
|
+
* Maximum number of completely new conceptual primitives allowed in a single session.
|
|
39
|
+
*/
|
|
40
|
+
declare const MAX_NEW_CONCEPTS_PER_SESSION_K12 = 2;
|
|
41
|
+
declare const MAX_NEW_CONCEPTS_PER_SESSION_ADULT = 3;
|
|
42
|
+
/**
|
|
43
|
+
* Standard Classroom Overhead Ratio:
|
|
44
|
+
* 15% of total session duration is strictly reserved for setup, attendance,
|
|
45
|
+
* questions, transitions, and hardware teardown.
|
|
46
|
+
*/
|
|
47
|
+
declare const DEFAULT_OVERHEAD_RATIO = 0.15;
|
|
48
|
+
/**
|
|
49
|
+
* Maximum In-Session Setup Minutes:
|
|
50
|
+
* The maximum time a student should spend on toolchain/environment configuration
|
|
51
|
+
* during the first working session before achieving their first running "Hello World".
|
|
52
|
+
*/
|
|
53
|
+
declare const MAX_IN_SESSION_SETUP_MINUTES = 15;
|
|
54
|
+
/**
|
|
55
|
+
* 3-Tier Environment Provisioning Models for Complex or Heavy Technology Stacks:
|
|
56
|
+
* - PRE_INSTALLED_LAB: Environment/IDE/DB is imaged or pre-configured by IT/Lab technician before class.
|
|
57
|
+
* - CLOUD_MANAGED: Cloud instance (Supabase, Neon, Codespaces, Wokwi) with pre-provisioned connection strings.
|
|
58
|
+
* - DEDICATED_SETUP: A dedicated full session specifically budgeted for guided local environment setup.
|
|
59
|
+
*/
|
|
60
|
+
declare const ENVIRONMENT_PROVISIONING_MODELS: readonly ["PRE_INSTALLED_LAB", "CLOUD_MANAGED", "DEDICATED_SETUP"];
|
|
61
|
+
type EnvironmentProvisioningModel = (typeof ENVIRONMENT_PROVISIONING_MODELS)[number];
|
|
62
|
+
/**
|
|
63
|
+
* Autonomous Evaluation Thresholds:
|
|
64
|
+
*/
|
|
65
|
+
declare const JUDGE_AUTO_APPROVE_THRESHOLD = 85;
|
|
66
|
+
declare const JUDGE_ESCALATE_THRESHOLD = 70;
|
|
67
|
+
declare const MAX_AUTONOMOUS_REPAIR_TURNS = 3;
|
|
68
|
+
|
|
25
69
|
/**
|
|
26
70
|
* Service to generate high-level status, readiness reports, and resume guidance.
|
|
27
71
|
*/
|
|
@@ -191,6 +235,168 @@ interface SymbolLedgerResult {
|
|
|
191
235
|
}
|
|
192
236
|
declare function extractSymbolLedger(lessonMarkdown: string): SymbolLedgerResult;
|
|
193
237
|
|
|
238
|
+
declare const LessonEntitySchema: z.ZodObject<{
|
|
239
|
+
lessonId: z.ZodString;
|
|
240
|
+
title: z.ZodString;
|
|
241
|
+
pedagogyModel: z.ZodDefault<z.ZodString>;
|
|
242
|
+
estimatedDuration: z.ZodDefault<z.ZodString>;
|
|
243
|
+
learningObjectives: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
244
|
+
code: z.ZodString;
|
|
245
|
+
objective: z.ZodString;
|
|
246
|
+
evidence: z.ZodString;
|
|
247
|
+
successCriteria: z.ZodString;
|
|
248
|
+
standardRefs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
249
|
+
conceptRefs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
250
|
+
}, "strip", z.ZodTypeAny, {
|
|
251
|
+
code: string;
|
|
252
|
+
objective: string;
|
|
253
|
+
evidence: string;
|
|
254
|
+
successCriteria: string;
|
|
255
|
+
standardRefs: string[];
|
|
256
|
+
conceptRefs: string[];
|
|
257
|
+
}, {
|
|
258
|
+
code: string;
|
|
259
|
+
objective: string;
|
|
260
|
+
evidence: string;
|
|
261
|
+
successCriteria: string;
|
|
262
|
+
standardRefs?: string[] | undefined;
|
|
263
|
+
conceptRefs?: string[] | undefined;
|
|
264
|
+
}>, "many">>;
|
|
265
|
+
activitySequence: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
266
|
+
seq: z.ZodNumber;
|
|
267
|
+
phase: z.ZodString;
|
|
268
|
+
activityType: z.ZodString;
|
|
269
|
+
actor: z.ZodString;
|
|
270
|
+
purpose: z.ZodString;
|
|
271
|
+
studentAction: z.ZodString;
|
|
272
|
+
teacherMove: z.ZodString;
|
|
273
|
+
outputEvidence: z.ZodString;
|
|
274
|
+
lo: z.ZodArray<z.ZodString, "many">;
|
|
275
|
+
durationMinutes: z.ZodDefault<z.ZodNumber>;
|
|
276
|
+
artifactContract: z.ZodString;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
seq: number;
|
|
279
|
+
phase: string;
|
|
280
|
+
activityType: string;
|
|
281
|
+
actor: string;
|
|
282
|
+
purpose: string;
|
|
283
|
+
studentAction: string;
|
|
284
|
+
teacherMove: string;
|
|
285
|
+
outputEvidence: string;
|
|
286
|
+
lo: string[];
|
|
287
|
+
durationMinutes: number;
|
|
288
|
+
artifactContract: string;
|
|
289
|
+
}, {
|
|
290
|
+
seq: number;
|
|
291
|
+
phase: string;
|
|
292
|
+
activityType: string;
|
|
293
|
+
actor: string;
|
|
294
|
+
purpose: string;
|
|
295
|
+
studentAction: string;
|
|
296
|
+
teacherMove: string;
|
|
297
|
+
outputEvidence: string;
|
|
298
|
+
lo: string[];
|
|
299
|
+
artifactContract: string;
|
|
300
|
+
durationMinutes?: number | undefined;
|
|
301
|
+
}>, "many">>;
|
|
302
|
+
/** Header→cell rows straight from the A4 Assessment Map table (headers vary by template). */
|
|
303
|
+
assessmentMap: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
|
|
304
|
+
tieredScaffolding: z.ZodDefault<z.ZodObject<{
|
|
305
|
+
bronze: z.ZodDefault<z.ZodString>;
|
|
306
|
+
silver: z.ZodDefault<z.ZodString>;
|
|
307
|
+
gold: z.ZodDefault<z.ZodString>;
|
|
308
|
+
}, "strip", z.ZodTypeAny, {
|
|
309
|
+
bronze: string;
|
|
310
|
+
silver: string;
|
|
311
|
+
gold: string;
|
|
312
|
+
}, {
|
|
313
|
+
bronze?: string | undefined;
|
|
314
|
+
silver?: string | undefined;
|
|
315
|
+
gold?: string | undefined;
|
|
316
|
+
}>>;
|
|
317
|
+
}, "strip", z.ZodTypeAny, {
|
|
318
|
+
lessonId: string;
|
|
319
|
+
title: string;
|
|
320
|
+
estimatedDuration: string;
|
|
321
|
+
learningObjectives: {
|
|
322
|
+
code: string;
|
|
323
|
+
objective: string;
|
|
324
|
+
evidence: string;
|
|
325
|
+
successCriteria: string;
|
|
326
|
+
standardRefs: string[];
|
|
327
|
+
conceptRefs: string[];
|
|
328
|
+
}[];
|
|
329
|
+
activitySequence: {
|
|
330
|
+
seq: number;
|
|
331
|
+
phase: string;
|
|
332
|
+
activityType: string;
|
|
333
|
+
actor: string;
|
|
334
|
+
purpose: string;
|
|
335
|
+
studentAction: string;
|
|
336
|
+
teacherMove: string;
|
|
337
|
+
outputEvidence: string;
|
|
338
|
+
lo: string[];
|
|
339
|
+
durationMinutes: number;
|
|
340
|
+
artifactContract: string;
|
|
341
|
+
}[];
|
|
342
|
+
assessmentMap: Record<string, string>[];
|
|
343
|
+
tieredScaffolding: {
|
|
344
|
+
bronze: string;
|
|
345
|
+
silver: string;
|
|
346
|
+
gold: string;
|
|
347
|
+
};
|
|
348
|
+
pedagogyModel: string;
|
|
349
|
+
}, {
|
|
350
|
+
lessonId: string;
|
|
351
|
+
title: string;
|
|
352
|
+
estimatedDuration?: string | undefined;
|
|
353
|
+
learningObjectives?: {
|
|
354
|
+
code: string;
|
|
355
|
+
objective: string;
|
|
356
|
+
evidence: string;
|
|
357
|
+
successCriteria: string;
|
|
358
|
+
standardRefs?: string[] | undefined;
|
|
359
|
+
conceptRefs?: string[] | undefined;
|
|
360
|
+
}[] | undefined;
|
|
361
|
+
activitySequence?: {
|
|
362
|
+
seq: number;
|
|
363
|
+
phase: string;
|
|
364
|
+
activityType: string;
|
|
365
|
+
actor: string;
|
|
366
|
+
purpose: string;
|
|
367
|
+
studentAction: string;
|
|
368
|
+
teacherMove: string;
|
|
369
|
+
outputEvidence: string;
|
|
370
|
+
lo: string[];
|
|
371
|
+
artifactContract: string;
|
|
372
|
+
durationMinutes?: number | undefined;
|
|
373
|
+
}[] | undefined;
|
|
374
|
+
assessmentMap?: Record<string, string>[] | undefined;
|
|
375
|
+
tieredScaffolding?: {
|
|
376
|
+
bronze?: string | undefined;
|
|
377
|
+
silver?: string | undefined;
|
|
378
|
+
gold?: string | undefined;
|
|
379
|
+
} | undefined;
|
|
380
|
+
pedagogyModel?: string | undefined;
|
|
381
|
+
}>;
|
|
382
|
+
type LessonEntity = z.infer<typeof LessonEntitySchema>;
|
|
383
|
+
/**
|
|
384
|
+
* Build the structured lesson entity from canonical LESSON markdown.
|
|
385
|
+
* Returns null when the markdown yields no usable activity/objective rows —
|
|
386
|
+
* callers must fall back to the markdown excerpt path.
|
|
387
|
+
*/
|
|
388
|
+
declare function buildLessonEntityJson(lessonMarkdown: string): LessonEntity | null;
|
|
389
|
+
/**
|
|
390
|
+
* Render the entity fields a satellite type needs into a compact markdown
|
|
391
|
+
* block (deterministic — the JSON is the source, the block is the view).
|
|
392
|
+
* Replaces regex harvesting of the markdown layout (P49 G4 consumer path).
|
|
393
|
+
*/
|
|
394
|
+
declare function renderEntitySlotsForType(entity: LessonEntity, artifactType: string, maxChars?: number): string;
|
|
395
|
+
/** True when the entity's row is assigned to this artifact via its contract column. */
|
|
396
|
+
declare function entityRowAssignedTo(row: ActivitySeqRow, artifactType: string): boolean;
|
|
397
|
+
/** Render ONLY the activity rows assigned to this artifact (mini-slot view). */
|
|
398
|
+
declare function renderAssignedRowsTable(entity: LessonEntity, artifactType: string, maxChars?: number): string;
|
|
399
|
+
|
|
194
400
|
type ContextRoutingMode = 'legacy' | 'hybrid';
|
|
195
401
|
interface SatContextResult {
|
|
196
402
|
/** Full context string to pass as the satellite prompt's user context. */
|
|
@@ -233,6 +439,12 @@ interface SatelliteContextInput {
|
|
|
233
439
|
lessonExcerpt: ExcerptResult;
|
|
234
440
|
/** KX markdown — the source for the per-type scoped KX excerpt (hybrid mode). */
|
|
235
441
|
expositionContent: string;
|
|
442
|
+
/**
|
|
443
|
+
* P49 G4: structured LESSON entity persisted alongside the markdown. When
|
|
444
|
+
* present it is the PRIMARY slot source (renderEntitySlotsForType) — the
|
|
445
|
+
* markdown excerpt becomes the fallback, not the parser target.
|
|
446
|
+
*/
|
|
447
|
+
lessonEntity?: LessonEntity | null;
|
|
236
448
|
/** Section Language Contract raw markdown (bilingual heading resolution). */
|
|
237
449
|
slcMarkdown?: string;
|
|
238
450
|
/** Symbol ledger block already rendered by the caller (appended to LESSON-primary and CODE contexts). */
|
|
@@ -1414,6 +1626,18 @@ declare class DeterministicStructuralLinter {
|
|
|
1414
1626
|
findings: AcademicAuditFinding[];
|
|
1415
1627
|
strengths: string[];
|
|
1416
1628
|
};
|
|
1629
|
+
/**
|
|
1630
|
+
* Validates structural and environment feasibility invariants for a Project Graph bundle.
|
|
1631
|
+
*/
|
|
1632
|
+
static lintProjectGraph(bundle: {
|
|
1633
|
+
technology_scope?: any;
|
|
1634
|
+
project_graph?: any;
|
|
1635
|
+
}, expectedSessions?: number): {
|
|
1636
|
+
passed: boolean;
|
|
1637
|
+
score: number;
|
|
1638
|
+
findings: AcademicAuditFinding[];
|
|
1639
|
+
strengths: string[];
|
|
1640
|
+
};
|
|
1417
1641
|
}
|
|
1418
1642
|
|
|
1419
1643
|
interface AuditBundleInput {
|
|
@@ -1646,4 +1870,4 @@ declare function getSlideLayoutPresetById(id: string): SlideLayoutPreset | undef
|
|
|
1646
1870
|
*/
|
|
1647
1871
|
declare function getSlideLayoutPresetsByCategory(category: SlideLayoutCategory): SlideLayoutPreset[];
|
|
1648
1872
|
|
|
1649
|
-
export { ACT_TEMPLATE, AIProviderName, ARTIFACT_DEPENDENCY_ROUTING, ARTIFACT_EXECUTION_ORDER, type AcademicAuditFinding, AcademicAuditor, type AcademicDimension, type ActivityAlignmentResult, ActivityLab, type ArtifactDependencyRule, type ArtifactProductionSpec, type AuditBundleInput, BELL_RINGER_TEMPLATE, BLOOM_ACTION_VERBS, BOM_TEMPLATE, BloomTaxonomyEvaluator, type BuildContextOptions, CHOICE_BOARD_TEMPLATE, CODE_LAB_TEMPLATE, CURRICULUM_SLASH_COMMANDS, ChunkType, CodeHardwareFeasibilityEvaluator, CodeLab, type ComprehensiveAcademicReport, ConceptPrerequisiteEdge, ConceptSpiralEncounter, ConstructiveAlignmentEvaluator, type ContextInjectionMeta, type ContextRoutingMode, type ContextSourceKey, CoverageGateReport, CrossArtifactDriftEvaluator, CurriculumError, type CurriculumErrorCode, type CurriculumErrorDetail, CurriculumPlan, DEFAULT_KX_PRIORITIES, DEFAULT_LESSON_PRIORITIES, DEFAULT_STREAM_IDLE_MS, DEFAULT_STREAM_TOTAL_MS, DEFAULT_VIETNAMESE_SECTION_HEADINGS, DependencyEdge, type DependencyValidationResult, DeterministicPipelineRunner, DeterministicStructuralLinter, DiagnosticQuiz, DiagnosticQuizInput, type DimensionScore, EXIT_TICKET_TEMPLATE, EXPOSITION_REL, EXT_TEMPLATE, type ExcerptOptions, type ExcerptResult, type ExecuteCommandResult, ExpositionApprovalError, type ExpositionLlmFn, type ExpositionResult, type ExpositionStorage, type ExtractedJson, type ExtractedStreamChunk, type FindingSeverity, FiveEInstructionalEvaluator, type FrameworkLintFinding, type FrameworkLintReport, FrameworkPack, GLOSSARY_TEMPLATE, GRAPHIC_ORGANIZER_TEMPLATE, type GenerateExpositionOptions, GeneratedSlideArraySchema, GeneratedSlideSchema, HANDOUT_TEMPLATE, HybridBlueprintArraySchema, HybridBlueprintItemSchema, HybridDeckSlideArraySchema, HybridDeckSlideSchema, HybridPipelineError, ICurriculumStorage, LAYER_IDLE_BUDGET_MS, LAYER_TOTAL_BUDGET_MS, LESSON_PLAN_TEMPLATE, type LayerChunkCallback, type LayerPrefillOptions, type LayerPrefillResult, type LayoutBoxConfig, LessonPlan, MasteryGate, MisconceptionEvaluator, ModelResolutionOptions, PROJECT_INSTRUCTION_TEMPLATE, type PackingSpec, type PedagogicalModel, type PipelineExecutionProgress, PlanConstraints, type PlanOptions, type PlanResult, type PlannerLlmFn, PlanningGraph, PlanningNode, type PrefillProviderEvent, type PreliminaryResearchResult, PrerequisiteDecision, type ProduceLessonOptions, type ProduceLessonResult, type ProjectBriefingData, type ProjectClarification, type ProjectCreationPayload, type ProjectIntentAnalysisResult, ProjectStatusReport, type ProjectionMeta, QUIZ_TEMPLATE, QualityAuditReport, REVIEW_GAME_TEMPLATE, RUBRIC_TEMPLATE, ResolvedGateSettings, SATELLITE_LESSON_PRIORITIES, SCIENCE_LAB_TEMPLATE, SELF_LAB_TEMPLATE, SLIDE_LAYOUT_PRESETS, SLIDE_TEMPLATE, STATION_ROTATION_TEMPLATE, type SatContextResult, type SatelliteContextInput, SessionZpdStatus, type SlashCommandDefinition, SlideBlueprintArraySchema, SlideBlueprintItemSchema, SlideDeck, type SlideEngine, type SlideLayoutCategory, type SlideLayoutData, type SlideLayoutPreset, type SlideProductionWorkflowOptions, type SlideProductionWorkflowResult, SmartResumeContext, type StreamAbortHandle, type StreamBudget, type StreamChunkExtractor, StreamRunnerOptions, type SymbolLedgerResult, TASK_CARDS_TEMPLATE, TEACHER_GUIDE_TEMPLATE, TIERED_PRACTICE_TEMPLATE, TranslationPolicy, type TranslationTarget, type TranslationTrigger, UnitPlan, type ValidationOptions, WORKSHEET_TEMPLATE, WalkingSkeleton, analyzeProjectCreationIntent, assertAcyclic, assignDepths, auditQualityReport, buildConceptPrerequisites, buildCurriculumContext, buildCurriculumPlan, buildDomainLexiconGuardrail, buildExpositionContext, buildExpositionExcerpt, buildHeadingDirective, buildLanguageDirective, buildLessonExcerpt, buildMasteryGates, buildSatelliteContext, buildSectionAwareExcerpt, buildSessionSliceContext, buildWalkingSkeleton, checkSessionZpd, closeTruncatedJson, computeConceptSpiralProgression, computePackingSpec, conductPreliminaryResearch, createAiInferenceError, createContextMissingError, createStreamAbortSignal, createStreamChunkExtractor, detectProjectPedagogy, dropCyclicConceptEdges, emitUsage, ensureExpositionForLesson, ensureKnowledgeExposition, evaluateActivityAlignment, executeCurriculumCommand, executeSlideProductionWorkflow, expositionCacheKey, extractActivityContractRows, extractAssessmentMap, extractJsonArray, extractScopeSequenceRows, extractSectionHeadingsFromSLC, extractSessionSlice, extractStreamChunk, extractSymbolLedger, extractTieredScaffoldingBlock, generatePhase1SotArtifacts, generatePhase2SotArtifacts, getLessonMetadata, getProjectArtifactScope, getProjectStatusReport, getSlideLayoutPresetById, getSlideLayoutPresetsByCategory, getSmartResumeContext, glossaryTermsForSession, ingestProjectGraphIntoProject, initializeProjectInStorage, isActivityAlignmentLogOnly, isExpositionFresh, isTranslationDue, lintCurriculumFramework, loadCurriculumTemplate, loadSotTemplate, normalizePlanningGraph, normalizeSlcContract, parseRoadmapJsonToProjectPayload, produceBatchLessons, produceSingleLesson, renderFrameworkFromPlan, resolveStreamBudget, resolveTargetLanguageCode, resolveTranslationTargets, safeParseJson, slugifyProjectName, streamLLMWithFallback, streamLayerPrefillWithFallback, stripLlmJsonWrappers, targetLanguageDisplayName, topoSort, validateArtifactDependencies, validateHybridDeckSlides };
|
|
1873
|
+
export { ACT_TEMPLATE, AIProviderName, ARTIFACT_DEPENDENCY_ROUTING, ARTIFACT_EXECUTION_ORDER, type AcademicAuditFinding, AcademicAuditor, type AcademicDimension, type ActivityAlignmentResult, ActivityLab, ActivitySeqRow, type ArtifactDependencyRule, type ArtifactProductionSpec, type AuditBundleInput, BELL_RINGER_TEMPLATE, BLOOM_ACTION_VERBS, BOM_TEMPLATE, BloomTaxonomyEvaluator, type BuildContextOptions, CHOICE_BOARD_TEMPLATE, CODE_LAB_TEMPLATE, CURRICULUM_SLASH_COMMANDS, ChunkType, CodeHardwareFeasibilityEvaluator, CodeLab, type ComprehensiveAcademicReport, ConceptPrerequisiteEdge, ConceptSpiralEncounter, ConstructiveAlignmentEvaluator, type ContextInjectionMeta, type ContextRoutingMode, type ContextSourceKey, CoverageGateReport, CrossArtifactDriftEvaluator, CurriculumError, type CurriculumErrorCode, type CurriculumErrorDetail, CurriculumPlan, DEFAULT_KX_PRIORITIES, DEFAULT_LESSON_PRIORITIES, DEFAULT_OVERHEAD_RATIO, DEFAULT_STREAM_IDLE_MS, DEFAULT_STREAM_TOTAL_MS, DEFAULT_VIETNAMESE_SECTION_HEADINGS, DependencyEdge, type DependencyValidationResult, DeterministicPipelineRunner, DeterministicStructuralLinter, DiagnosticQuiz, DiagnosticQuizInput, type DimensionScore, ENVIRONMENT_PROVISIONING_MODELS, EXIT_TICKET_TEMPLATE, EXPOSITION_REL, EXT_TEMPLATE, type EnvironmentProvisioningModel, type ExcerptOptions, type ExcerptResult, type ExecuteCommandResult, ExpositionApprovalError, type ExpositionLlmFn, type ExpositionResult, type ExpositionStorage, type ExtractedJson, type ExtractedStreamChunk, type FindingSeverity, FiveEInstructionalEvaluator, type FrameworkLintFinding, type FrameworkLintReport, FrameworkPack, GLOSSARY_TEMPLATE, GRAPHIC_ORGANIZER_TEMPLATE, type GenerateExpositionOptions, GeneratedSlideArraySchema, GeneratedSlideSchema, HANDOUT_TEMPLATE, HybridBlueprintArraySchema, HybridBlueprintItemSchema, HybridDeckSlideArraySchema, HybridDeckSlideSchema, HybridPipelineError, ICurriculumStorage, JUDGE_AUTO_APPROVE_THRESHOLD, JUDGE_ESCALATE_THRESHOLD, LAYER_IDLE_BUDGET_MS, LAYER_TOTAL_BUDGET_MS, LESSON_PLAN_TEMPLATE, type LayerChunkCallback, type LayerPrefillOptions, type LayerPrefillResult, type LayoutBoxConfig, type LessonEntity, LessonEntitySchema, LessonPlan, MAX_AUTONOMOUS_REPAIR_TURNS, MAX_IN_SESSION_SETUP_MINUTES, MAX_NEW_CONCEPTS_PER_SESSION_ADULT, MAX_NEW_CONCEPTS_PER_SESSION_K12, MasteryGate, MisconceptionEvaluator, ModelResolutionOptions, PROJECT_INSTRUCTION_TEMPLATE, type PackingSpec, type PedagogicalModel, type PipelineExecutionProgress, PlanConstraints, type PlanOptions, type PlanResult, type PlannerLlmFn, PlanningGraph, PlanningNode, type PrefillProviderEvent, type PreliminaryResearchResult, PrerequisiteDecision, type ProduceLessonOptions, type ProduceLessonResult, type ProjectBriefingData, type ProjectClarification, type ProjectCreationPayload, type ProjectIntentAnalysisResult, ProjectStatusReport, type ProjectionMeta, QUIZ_TEMPLATE, QualityAuditReport, REVIEW_GAME_TEMPLATE, RUBRIC_TEMPLATE, ResolvedGateSettings, SATELLITE_LESSON_PRIORITIES, SCIENCE_LAB_TEMPLATE, SELF_LAB_TEMPLATE, SLIDE_LAYOUT_PRESETS, SLIDE_TEMPLATE, STATION_ROTATION_TEMPLATE, STUDENT_FRICTION_MULTIPLIER, type SatContextResult, type SatelliteContextInput, SessionZpdStatus, type SlashCommandDefinition, SlideBlueprintArraySchema, SlideBlueprintItemSchema, SlideDeck, type SlideEngine, type SlideLayoutCategory, type SlideLayoutData, type SlideLayoutPreset, type SlideProductionWorkflowOptions, type SlideProductionWorkflowResult, SmartResumeContext, type StreamAbortHandle, type StreamBudget, type StreamChunkExtractor, StreamRunnerOptions, type SymbolLedgerResult, TASK_CARDS_TEMPLATE, TEACHER_GUIDE_TEMPLATE, TIERED_PRACTICE_TEMPLATE, TranslationPolicy, type TranslationTarget, type TranslationTrigger, UnitPlan, type ValidationOptions, WORKSHEET_TEMPLATE, WalkingSkeleton, analyzeProjectCreationIntent, assertAcyclic, assignDepths, auditQualityReport, buildConceptPrerequisites, buildCurriculumContext, buildCurriculumPlan, buildDomainLexiconGuardrail, buildExpositionContext, buildExpositionExcerpt, buildHeadingDirective, buildLanguageDirective, buildLessonEntityJson, buildLessonExcerpt, buildMasteryGates, buildSatelliteContext, buildSectionAwareExcerpt, buildSessionSliceContext, buildWalkingSkeleton, checkSessionZpd, closeTruncatedJson, computeConceptSpiralProgression, computePackingSpec, conductPreliminaryResearch, createAiInferenceError, createContextMissingError, createStreamAbortSignal, createStreamChunkExtractor, detectProjectPedagogy, dropCyclicConceptEdges, emitUsage, ensureExpositionForLesson, ensureKnowledgeExposition, entityRowAssignedTo, evaluateActivityAlignment, executeCurriculumCommand, executeSlideProductionWorkflow, expositionCacheKey, extractActivityContractRows, extractAssessmentMap, extractJsonArray, extractScopeSequenceRows, extractSectionHeadingsFromSLC, extractSessionSlice, extractStreamChunk, extractSymbolLedger, extractTieredScaffoldingBlock, generatePhase1SotArtifacts, generatePhase2SotArtifacts, getLessonMetadata, getProjectArtifactScope, getProjectStatusReport, getSlideLayoutPresetById, getSlideLayoutPresetsByCategory, getSmartResumeContext, glossaryTermsForSession, ingestProjectGraphIntoProject, initializeProjectInStorage, isActivityAlignmentLogOnly, isExpositionFresh, isTranslationDue, lintCurriculumFramework, loadCurriculumTemplate, loadSotTemplate, normalizePlanningGraph, normalizeSlcContract, parseRoadmapJsonToProjectPayload, produceBatchLessons, produceSingleLesson, renderAssignedRowsTable, renderEntitySlotsForType, renderFrameworkFromPlan, resolveStreamBudget, resolveTargetLanguageCode, resolveTranslationTargets, safeParseJson, slugifyProjectName, streamLLMWithFallback, streamLayerPrefillWithFallback, stripLlmJsonWrappers, targetLanguageDisplayName, topoSort, validateArtifactDependencies, validateHybridDeckSlides };
|