@thanh01.pmt/curriculum-kit 1.4.15 → 1.4.17
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/LICENSE +21 -0
- package/dist/index.cjs +366 -201
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +114 -5
- package/dist/index.d.ts +114 -5
- package/dist/index.mjs +366 -201
- package/dist/index.mjs.map +1 -1
- package/dist/workflow/index.cjs +62 -14
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.mjs +62 -14
- package/dist/workflow/index.mjs.map +1 -1
- package/package.json +23 -23
package/dist/index.d.cts
CHANGED
|
@@ -14,11 +14,11 @@ import { F as FrameworkPack, C as CoverageGateReport } from './standardsCoverage
|
|
|
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-DR5YTtlt.cjs';
|
|
15
15
|
import { R as ResolvedGateSettings } from './gateSettings-L3FR2-MO.cjs';
|
|
16
16
|
export { A as ArtifactType, b as CurriculumArtifactType, C as CurriculumGateMode, D as DEFAULT_GATE_SETTINGS, G as GateSettings, c as ScaffoldingLevel, S as SingleArtifactRequest, a as SingleArtifactResult, g as gateModeFor, e as generateSingleArtifact, d as getArtifactMetadata, p as parseGateSettings, r as resolveGateSettings } from './gateSettings-L3FR2-MO.cjs';
|
|
17
|
+
import { z } from 'zod';
|
|
17
18
|
export { DeliveryPackResult, JobManifest, LocalWorkspaceManager, ParsedQuizQuestion, buildDeliveryPackages, exportAllProjectQuizzes, formatQuizzesToCsv, parseQuizMarkdown } from './publishers/index.cjs';
|
|
18
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.cjs';
|
|
19
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.cjs';
|
|
20
21
|
export { CurateOptions, CurationDecision, FulfillOptions, FulfillResult, GenCandidate, GenRanking, GenerateImageOptions, GeneratedImage, MediaError, MediaLedger, MediaLedgerEntry, MediaLedgerMode, MediaLedgerStatus, MediaPolicy, MediaPolicyMode, MediaProvider, SearchImageOptions, SearchVideoOptions, StockImage, StockVideo, buildImagePrompt, curateMediaLedger, fulfillMediaLedger, generateEducationalImage, injectMediaIntoMarkdown, rankGenCandidates, renderMediaPlaceholder, searchEducationalImages, searchEducationalVideos } from './media/index.cjs';
|
|
21
|
-
import 'zod';
|
|
22
22
|
import 'ai';
|
|
23
23
|
import '@supabase/supabase-js';
|
|
24
24
|
|
|
@@ -798,6 +798,112 @@ interface SlideBlueprintItem {
|
|
|
798
798
|
visualIntent?: string;
|
|
799
799
|
}
|
|
800
800
|
|
|
801
|
+
declare const SlideBlueprintItemSchema: z.ZodObject<{
|
|
802
|
+
slideIndex: z.ZodNumber;
|
|
803
|
+
clusterId: z.ZodDefault<z.ZodNumber>;
|
|
804
|
+
clusterTitle: z.ZodDefault<z.ZodString>;
|
|
805
|
+
lessonPhase: z.ZodDefault<z.ZodString>;
|
|
806
|
+
layoutId: z.ZodEnum<["hero-cover", "split-concept-code", "two-columns-compare", "three-cards-grid", "timeline-steps", "metric-callout", "checkpoint-quiz", "tiered-practice-3cards", "summary-takeaways"]>;
|
|
807
|
+
title: z.ZodString;
|
|
808
|
+
pedagogicalGoal: z.ZodDefault<z.ZodString>;
|
|
809
|
+
contentFocus: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
810
|
+
codeSnippetIntent: z.ZodOptional<z.ZodString>;
|
|
811
|
+
visualIntent: z.ZodOptional<z.ZodString>;
|
|
812
|
+
}, "strip", z.ZodTypeAny, {
|
|
813
|
+
title: string;
|
|
814
|
+
clusterId: number;
|
|
815
|
+
clusterTitle: string;
|
|
816
|
+
slideIndex: number;
|
|
817
|
+
lessonPhase: string;
|
|
818
|
+
layoutId: "tiered-practice-3cards" | "split-concept-code" | "hero-cover" | "two-columns-compare" | "three-cards-grid" | "timeline-steps" | "metric-callout" | "checkpoint-quiz" | "summary-takeaways";
|
|
819
|
+
pedagogicalGoal: string;
|
|
820
|
+
contentFocus: string[];
|
|
821
|
+
codeSnippetIntent?: string | undefined;
|
|
822
|
+
visualIntent?: string | undefined;
|
|
823
|
+
}, {
|
|
824
|
+
title: string;
|
|
825
|
+
slideIndex: number;
|
|
826
|
+
layoutId: "tiered-practice-3cards" | "split-concept-code" | "hero-cover" | "two-columns-compare" | "three-cards-grid" | "timeline-steps" | "metric-callout" | "checkpoint-quiz" | "summary-takeaways";
|
|
827
|
+
clusterId?: number | undefined;
|
|
828
|
+
clusterTitle?: string | undefined;
|
|
829
|
+
lessonPhase?: string | undefined;
|
|
830
|
+
pedagogicalGoal?: string | undefined;
|
|
831
|
+
contentFocus?: string[] | undefined;
|
|
832
|
+
codeSnippetIntent?: string | undefined;
|
|
833
|
+
visualIntent?: string | undefined;
|
|
834
|
+
}>;
|
|
835
|
+
declare const SlideBlueprintArraySchema: z.ZodArray<z.ZodObject<{
|
|
836
|
+
slideIndex: z.ZodNumber;
|
|
837
|
+
clusterId: z.ZodDefault<z.ZodNumber>;
|
|
838
|
+
clusterTitle: z.ZodDefault<z.ZodString>;
|
|
839
|
+
lessonPhase: z.ZodDefault<z.ZodString>;
|
|
840
|
+
layoutId: z.ZodEnum<["hero-cover", "split-concept-code", "two-columns-compare", "three-cards-grid", "timeline-steps", "metric-callout", "checkpoint-quiz", "tiered-practice-3cards", "summary-takeaways"]>;
|
|
841
|
+
title: z.ZodString;
|
|
842
|
+
pedagogicalGoal: z.ZodDefault<z.ZodString>;
|
|
843
|
+
contentFocus: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
844
|
+
codeSnippetIntent: z.ZodOptional<z.ZodString>;
|
|
845
|
+
visualIntent: z.ZodOptional<z.ZodString>;
|
|
846
|
+
}, "strip", z.ZodTypeAny, {
|
|
847
|
+
title: string;
|
|
848
|
+
clusterId: number;
|
|
849
|
+
clusterTitle: string;
|
|
850
|
+
slideIndex: number;
|
|
851
|
+
lessonPhase: string;
|
|
852
|
+
layoutId: "tiered-practice-3cards" | "split-concept-code" | "hero-cover" | "two-columns-compare" | "three-cards-grid" | "timeline-steps" | "metric-callout" | "checkpoint-quiz" | "summary-takeaways";
|
|
853
|
+
pedagogicalGoal: string;
|
|
854
|
+
contentFocus: string[];
|
|
855
|
+
codeSnippetIntent?: string | undefined;
|
|
856
|
+
visualIntent?: string | undefined;
|
|
857
|
+
}, {
|
|
858
|
+
title: string;
|
|
859
|
+
slideIndex: number;
|
|
860
|
+
layoutId: "tiered-practice-3cards" | "split-concept-code" | "hero-cover" | "two-columns-compare" | "three-cards-grid" | "timeline-steps" | "metric-callout" | "checkpoint-quiz" | "summary-takeaways";
|
|
861
|
+
clusterId?: number | undefined;
|
|
862
|
+
clusterTitle?: string | undefined;
|
|
863
|
+
lessonPhase?: string | undefined;
|
|
864
|
+
pedagogicalGoal?: string | undefined;
|
|
865
|
+
contentFocus?: string[] | undefined;
|
|
866
|
+
codeSnippetIntent?: string | undefined;
|
|
867
|
+
visualIntent?: string | undefined;
|
|
868
|
+
}>, "many">;
|
|
869
|
+
declare const GeneratedSlideSchema: z.ZodObject<{
|
|
870
|
+
id: z.ZodOptional<z.ZodString>;
|
|
871
|
+
layoutId: z.ZodString;
|
|
872
|
+
title: z.ZodString;
|
|
873
|
+
slots: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
874
|
+
notes: z.ZodDefault<z.ZodString>;
|
|
875
|
+
}, "strip", z.ZodTypeAny, {
|
|
876
|
+
title: string;
|
|
877
|
+
layoutId: string;
|
|
878
|
+
slots: Record<string, any>;
|
|
879
|
+
notes: string;
|
|
880
|
+
id?: string | undefined;
|
|
881
|
+
}, {
|
|
882
|
+
title: string;
|
|
883
|
+
layoutId: string;
|
|
884
|
+
id?: string | undefined;
|
|
885
|
+
slots?: Record<string, any> | undefined;
|
|
886
|
+
notes?: string | undefined;
|
|
887
|
+
}>;
|
|
888
|
+
declare const GeneratedSlideArraySchema: z.ZodArray<z.ZodObject<{
|
|
889
|
+
id: z.ZodOptional<z.ZodString>;
|
|
890
|
+
layoutId: z.ZodString;
|
|
891
|
+
title: z.ZodString;
|
|
892
|
+
slots: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
893
|
+
notes: z.ZodDefault<z.ZodString>;
|
|
894
|
+
}, "strip", z.ZodTypeAny, {
|
|
895
|
+
title: string;
|
|
896
|
+
layoutId: string;
|
|
897
|
+
slots: Record<string, any>;
|
|
898
|
+
notes: string;
|
|
899
|
+
id?: string | undefined;
|
|
900
|
+
}, {
|
|
901
|
+
title: string;
|
|
902
|
+
layoutId: string;
|
|
903
|
+
id?: string | undefined;
|
|
904
|
+
slots?: Record<string, any> | undefined;
|
|
905
|
+
notes?: string | undefined;
|
|
906
|
+
}>, "many">;
|
|
801
907
|
interface SlideProductionWorkflowOptions {
|
|
802
908
|
lessonMarkdown: string;
|
|
803
909
|
lessonCode: string;
|
|
@@ -808,6 +914,12 @@ interface SlideProductionWorkflowOptions {
|
|
|
808
914
|
languageDirective?: string;
|
|
809
915
|
headingDirective?: string;
|
|
810
916
|
satelliteContext?: any;
|
|
917
|
+
/** Vercel AI SDK model resolution options (provider/model/apiKey). */
|
|
918
|
+
modelOptions?: ModelResolutionOptions;
|
|
919
|
+
/** Max attempts per inference unit (blueprint / each cluster). Default 3. */
|
|
920
|
+
maxRetries?: number;
|
|
921
|
+
/** When true (default), falls back to the legacy raw-fetch runner if generateObject fails. */
|
|
922
|
+
allowLegacyFallback?: boolean;
|
|
811
923
|
runnerOptions?: any;
|
|
812
924
|
onProgress?: (agent: string, message: string, meta?: any) => void;
|
|
813
925
|
}
|
|
@@ -818,9 +930,6 @@ interface SlideProductionWorkflowResult {
|
|
|
818
930
|
blueprint: SlideBlueprintItem[];
|
|
819
931
|
slideCount: number;
|
|
820
932
|
}
|
|
821
|
-
/**
|
|
822
|
-
* Executes the full chunky slide production workflow.
|
|
823
|
-
*/
|
|
824
933
|
declare function executeSlideProductionWorkflow(options: SlideProductionWorkflowOptions): Promise<SlideProductionWorkflowResult>;
|
|
825
934
|
|
|
826
935
|
/**
|
|
@@ -1121,4 +1230,4 @@ declare function getSlideLayoutPresetById(id: string): SlideLayoutPreset | undef
|
|
|
1121
1230
|
*/
|
|
1122
1231
|
declare function getSlideLayoutPresetsByCategory(category: SlideLayoutCategory): SlideLayoutPreset[];
|
|
1123
1232
|
|
|
1124
|
-
export { ACT_TEMPLATE, AIProviderName, ARTIFACT_DEPENDENCY_ROUTING, ARTIFACT_EXECUTION_ORDER, type AcademicAuditFinding, AcademicAuditor, type AcademicDimension, 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, CodeHardwareFeasibilityEvaluator, CodeLab, type ComprehensiveAcademicReport, ConstructiveAlignmentEvaluator, type ContextInjectionMeta, 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 ExtractedStreamChunk, type FindingSeverity, FiveEInstructionalEvaluator, type FrameworkLintFinding, type FrameworkLintReport, FrameworkPack, GLOSSARY_TEMPLATE, GRAPHIC_ORGANIZER_TEMPLATE, type GenerateExpositionOptions, HANDOUT_TEMPLATE, ICurriculumStorage, LAYER_IDLE_BUDGET_MS, LAYER_TOTAL_BUDGET_MS, LESSON_PLAN_TEMPLATE, type LayerChunkCallback, type LayerPrefillOptions, type LayerPrefillResult, type LayoutBoxConfig, LessonPlan, MisconceptionEvaluator, ModelResolutionOptions, PROJECT_INSTRUCTION_TEMPLATE, type PackingSpec, type PedagogicalModel, type PipelineExecutionProgress, PlanConstraints, type PlanOptions, type PlanResult, type PlannerLlmFn, PlanningGraph, PlanningNode, type PreliminaryResearchResult, type ProduceLessonOptions, type ProduceLessonResult, type ProjectBriefingData, type ProjectClarification, type ProjectCreationPayload, type ProjectIntentAnalysisResult, ProjectStatusReport, type ProjectionMeta, QUIZ_TEMPLATE, QualityAuditReport, REVIEW_GAME_TEMPLATE, RUBRIC_TEMPLATE, ResolvedGateSettings, SCIENCE_LAB_TEMPLATE, SELF_LAB_TEMPLATE, SLIDE_LAYOUT_PRESETS, SLIDE_TEMPLATE, STATION_ROTATION_TEMPLATE, type SlashCommandDefinition, SlideDeck, type SlideLayoutCategory, type SlideLayoutData, type SlideLayoutPreset, type SlideProductionWorkflowOptions, type SlideProductionWorkflowResult, SmartResumeContext, type StreamAbortHandle, type StreamBudget, type StreamChunkExtractor, StreamRunnerOptions, TASK_CARDS_TEMPLATE, TEACHER_GUIDE_TEMPLATE, TIERED_PRACTICE_TEMPLATE, TranslationPolicy, type TranslationTarget, type TranslationTrigger, type ValidationOptions, WORKSHEET_TEMPLATE, analyzeProjectCreationIntent, assertAcyclic, auditQualityReport, buildCurriculumContext, buildCurriculumPlan, buildExpositionContext, buildExpositionExcerpt, buildHeadingDirective, buildLanguageDirective, buildLessonExcerpt, buildSectionAwareExcerpt, buildSessionSliceContext, closeTruncatedJson, computePackingSpec, conductPreliminaryResearch, createAiInferenceError, createContextMissingError, createStreamAbortSignal, createStreamChunkExtractor, detectProjectPedagogy, ensureExpositionForLesson, ensureKnowledgeExposition, executeCurriculumCommand, executeSlideProductionWorkflow, expositionCacheKey, extractScopeSequenceRows, extractSectionHeadingsFromSLC, extractSessionSlice, extractStreamChunk, generatePhase1SotArtifacts, generatePhase2SotArtifacts, getLessonMetadata, getProjectArtifactScope, getProjectStatusReport, getSlideLayoutPresetById, getSlideLayoutPresetsByCategory, getSmartResumeContext, glossaryTermsForSession, ingestProjectGraphIntoProject, initializeProjectInStorage, isExpositionFresh, isTranslationDue, lintCurriculumFramework, loadCurriculumTemplate, loadSotTemplate, normalizePlanningGraph, normalizeSlcContract, parseRoadmapJsonToProjectPayload, produceBatchLessons, produceSingleLesson, renderFrameworkFromPlan, resolveStreamBudget, resolveTargetLanguageCode, resolveTranslationTargets, safeParseJson, slugifyProjectName, streamLLMWithFallback, streamLayerPrefillWithFallback, stripLlmJsonWrappers, targetLanguageDisplayName, topoSort, validateArtifactDependencies };
|
|
1233
|
+
export { ACT_TEMPLATE, AIProviderName, ARTIFACT_DEPENDENCY_ROUTING, ARTIFACT_EXECUTION_ORDER, type AcademicAuditFinding, AcademicAuditor, type AcademicDimension, 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, CodeHardwareFeasibilityEvaluator, CodeLab, type ComprehensiveAcademicReport, ConstructiveAlignmentEvaluator, type ContextInjectionMeta, 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 ExtractedStreamChunk, type FindingSeverity, FiveEInstructionalEvaluator, type FrameworkLintFinding, type FrameworkLintReport, FrameworkPack, GLOSSARY_TEMPLATE, GRAPHIC_ORGANIZER_TEMPLATE, type GenerateExpositionOptions, GeneratedSlideArraySchema, GeneratedSlideSchema, HANDOUT_TEMPLATE, ICurriculumStorage, LAYER_IDLE_BUDGET_MS, LAYER_TOTAL_BUDGET_MS, LESSON_PLAN_TEMPLATE, type LayerChunkCallback, type LayerPrefillOptions, type LayerPrefillResult, type LayoutBoxConfig, LessonPlan, MisconceptionEvaluator, ModelResolutionOptions, PROJECT_INSTRUCTION_TEMPLATE, type PackingSpec, type PedagogicalModel, type PipelineExecutionProgress, PlanConstraints, type PlanOptions, type PlanResult, type PlannerLlmFn, PlanningGraph, PlanningNode, type PreliminaryResearchResult, type ProduceLessonOptions, type ProduceLessonResult, type ProjectBriefingData, type ProjectClarification, type ProjectCreationPayload, type ProjectIntentAnalysisResult, ProjectStatusReport, type ProjectionMeta, QUIZ_TEMPLATE, QualityAuditReport, REVIEW_GAME_TEMPLATE, RUBRIC_TEMPLATE, ResolvedGateSettings, SCIENCE_LAB_TEMPLATE, SELF_LAB_TEMPLATE, SLIDE_LAYOUT_PRESETS, SLIDE_TEMPLATE, STATION_ROTATION_TEMPLATE, type SlashCommandDefinition, SlideBlueprintArraySchema, SlideBlueprintItemSchema, SlideDeck, type SlideLayoutCategory, type SlideLayoutData, type SlideLayoutPreset, type SlideProductionWorkflowOptions, type SlideProductionWorkflowResult, SmartResumeContext, type StreamAbortHandle, type StreamBudget, type StreamChunkExtractor, StreamRunnerOptions, TASK_CARDS_TEMPLATE, TEACHER_GUIDE_TEMPLATE, TIERED_PRACTICE_TEMPLATE, TranslationPolicy, type TranslationTarget, type TranslationTrigger, type ValidationOptions, WORKSHEET_TEMPLATE, analyzeProjectCreationIntent, assertAcyclic, auditQualityReport, buildCurriculumContext, buildCurriculumPlan, buildExpositionContext, buildExpositionExcerpt, buildHeadingDirective, buildLanguageDirective, buildLessonExcerpt, buildSectionAwareExcerpt, buildSessionSliceContext, closeTruncatedJson, computePackingSpec, conductPreliminaryResearch, createAiInferenceError, createContextMissingError, createStreamAbortSignal, createStreamChunkExtractor, detectProjectPedagogy, ensureExpositionForLesson, ensureKnowledgeExposition, executeCurriculumCommand, executeSlideProductionWorkflow, expositionCacheKey, extractScopeSequenceRows, extractSectionHeadingsFromSLC, extractSessionSlice, extractStreamChunk, generatePhase1SotArtifacts, generatePhase2SotArtifacts, getLessonMetadata, getProjectArtifactScope, getProjectStatusReport, getSlideLayoutPresetById, getSlideLayoutPresetsByCategory, getSmartResumeContext, glossaryTermsForSession, ingestProjectGraphIntoProject, initializeProjectInStorage, isExpositionFresh, isTranslationDue, lintCurriculumFramework, loadCurriculumTemplate, loadSotTemplate, normalizePlanningGraph, normalizeSlcContract, parseRoadmapJsonToProjectPayload, produceBatchLessons, produceSingleLesson, renderFrameworkFromPlan, resolveStreamBudget, resolveTargetLanguageCode, resolveTranslationTargets, safeParseJson, slugifyProjectName, streamLLMWithFallback, streamLayerPrefillWithFallback, stripLlmJsonWrappers, targetLanguageDisplayName, topoSort, validateArtifactDependencies };
|
package/dist/index.d.ts
CHANGED
|
@@ -14,11 +14,11 @@ import { F as FrameworkPack, C as CoverageGateReport } from './standardsCoverage
|
|
|
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-DR5YTtlt.js';
|
|
15
15
|
import { R as ResolvedGateSettings } from './gateSettings-L3FR2-MO.js';
|
|
16
16
|
export { A as ArtifactType, b as CurriculumArtifactType, C as CurriculumGateMode, D as DEFAULT_GATE_SETTINGS, G as GateSettings, c as ScaffoldingLevel, S as SingleArtifactRequest, a as SingleArtifactResult, g as gateModeFor, e as generateSingleArtifact, d as getArtifactMetadata, p as parseGateSettings, r as resolveGateSettings } from './gateSettings-L3FR2-MO.js';
|
|
17
|
+
import { z } from 'zod';
|
|
17
18
|
export { DeliveryPackResult, JobManifest, LocalWorkspaceManager, ParsedQuizQuestion, buildDeliveryPackages, exportAllProjectQuizzes, formatQuizzesToCsv, parseQuizMarkdown } from './publishers/index.js';
|
|
18
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';
|
|
19
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';
|
|
20
21
|
export { CurateOptions, CurationDecision, FulfillOptions, FulfillResult, GenCandidate, GenRanking, GenerateImageOptions, GeneratedImage, MediaError, MediaLedger, MediaLedgerEntry, MediaLedgerMode, MediaLedgerStatus, MediaPolicy, MediaPolicyMode, MediaProvider, SearchImageOptions, SearchVideoOptions, StockImage, StockVideo, buildImagePrompt, curateMediaLedger, fulfillMediaLedger, generateEducationalImage, injectMediaIntoMarkdown, rankGenCandidates, renderMediaPlaceholder, searchEducationalImages, searchEducationalVideos } from './media/index.js';
|
|
21
|
-
import 'zod';
|
|
22
22
|
import 'ai';
|
|
23
23
|
import '@supabase/supabase-js';
|
|
24
24
|
|
|
@@ -798,6 +798,112 @@ interface SlideBlueprintItem {
|
|
|
798
798
|
visualIntent?: string;
|
|
799
799
|
}
|
|
800
800
|
|
|
801
|
+
declare const SlideBlueprintItemSchema: z.ZodObject<{
|
|
802
|
+
slideIndex: z.ZodNumber;
|
|
803
|
+
clusterId: z.ZodDefault<z.ZodNumber>;
|
|
804
|
+
clusterTitle: z.ZodDefault<z.ZodString>;
|
|
805
|
+
lessonPhase: z.ZodDefault<z.ZodString>;
|
|
806
|
+
layoutId: z.ZodEnum<["hero-cover", "split-concept-code", "two-columns-compare", "three-cards-grid", "timeline-steps", "metric-callout", "checkpoint-quiz", "tiered-practice-3cards", "summary-takeaways"]>;
|
|
807
|
+
title: z.ZodString;
|
|
808
|
+
pedagogicalGoal: z.ZodDefault<z.ZodString>;
|
|
809
|
+
contentFocus: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
810
|
+
codeSnippetIntent: z.ZodOptional<z.ZodString>;
|
|
811
|
+
visualIntent: z.ZodOptional<z.ZodString>;
|
|
812
|
+
}, "strip", z.ZodTypeAny, {
|
|
813
|
+
title: string;
|
|
814
|
+
clusterId: number;
|
|
815
|
+
clusterTitle: string;
|
|
816
|
+
slideIndex: number;
|
|
817
|
+
lessonPhase: string;
|
|
818
|
+
layoutId: "tiered-practice-3cards" | "split-concept-code" | "hero-cover" | "two-columns-compare" | "three-cards-grid" | "timeline-steps" | "metric-callout" | "checkpoint-quiz" | "summary-takeaways";
|
|
819
|
+
pedagogicalGoal: string;
|
|
820
|
+
contentFocus: string[];
|
|
821
|
+
codeSnippetIntent?: string | undefined;
|
|
822
|
+
visualIntent?: string | undefined;
|
|
823
|
+
}, {
|
|
824
|
+
title: string;
|
|
825
|
+
slideIndex: number;
|
|
826
|
+
layoutId: "tiered-practice-3cards" | "split-concept-code" | "hero-cover" | "two-columns-compare" | "three-cards-grid" | "timeline-steps" | "metric-callout" | "checkpoint-quiz" | "summary-takeaways";
|
|
827
|
+
clusterId?: number | undefined;
|
|
828
|
+
clusterTitle?: string | undefined;
|
|
829
|
+
lessonPhase?: string | undefined;
|
|
830
|
+
pedagogicalGoal?: string | undefined;
|
|
831
|
+
contentFocus?: string[] | undefined;
|
|
832
|
+
codeSnippetIntent?: string | undefined;
|
|
833
|
+
visualIntent?: string | undefined;
|
|
834
|
+
}>;
|
|
835
|
+
declare const SlideBlueprintArraySchema: z.ZodArray<z.ZodObject<{
|
|
836
|
+
slideIndex: z.ZodNumber;
|
|
837
|
+
clusterId: z.ZodDefault<z.ZodNumber>;
|
|
838
|
+
clusterTitle: z.ZodDefault<z.ZodString>;
|
|
839
|
+
lessonPhase: z.ZodDefault<z.ZodString>;
|
|
840
|
+
layoutId: z.ZodEnum<["hero-cover", "split-concept-code", "two-columns-compare", "three-cards-grid", "timeline-steps", "metric-callout", "checkpoint-quiz", "tiered-practice-3cards", "summary-takeaways"]>;
|
|
841
|
+
title: z.ZodString;
|
|
842
|
+
pedagogicalGoal: z.ZodDefault<z.ZodString>;
|
|
843
|
+
contentFocus: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
844
|
+
codeSnippetIntent: z.ZodOptional<z.ZodString>;
|
|
845
|
+
visualIntent: z.ZodOptional<z.ZodString>;
|
|
846
|
+
}, "strip", z.ZodTypeAny, {
|
|
847
|
+
title: string;
|
|
848
|
+
clusterId: number;
|
|
849
|
+
clusterTitle: string;
|
|
850
|
+
slideIndex: number;
|
|
851
|
+
lessonPhase: string;
|
|
852
|
+
layoutId: "tiered-practice-3cards" | "split-concept-code" | "hero-cover" | "two-columns-compare" | "three-cards-grid" | "timeline-steps" | "metric-callout" | "checkpoint-quiz" | "summary-takeaways";
|
|
853
|
+
pedagogicalGoal: string;
|
|
854
|
+
contentFocus: string[];
|
|
855
|
+
codeSnippetIntent?: string | undefined;
|
|
856
|
+
visualIntent?: string | undefined;
|
|
857
|
+
}, {
|
|
858
|
+
title: string;
|
|
859
|
+
slideIndex: number;
|
|
860
|
+
layoutId: "tiered-practice-3cards" | "split-concept-code" | "hero-cover" | "two-columns-compare" | "three-cards-grid" | "timeline-steps" | "metric-callout" | "checkpoint-quiz" | "summary-takeaways";
|
|
861
|
+
clusterId?: number | undefined;
|
|
862
|
+
clusterTitle?: string | undefined;
|
|
863
|
+
lessonPhase?: string | undefined;
|
|
864
|
+
pedagogicalGoal?: string | undefined;
|
|
865
|
+
contentFocus?: string[] | undefined;
|
|
866
|
+
codeSnippetIntent?: string | undefined;
|
|
867
|
+
visualIntent?: string | undefined;
|
|
868
|
+
}>, "many">;
|
|
869
|
+
declare const GeneratedSlideSchema: z.ZodObject<{
|
|
870
|
+
id: z.ZodOptional<z.ZodString>;
|
|
871
|
+
layoutId: z.ZodString;
|
|
872
|
+
title: z.ZodString;
|
|
873
|
+
slots: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
874
|
+
notes: z.ZodDefault<z.ZodString>;
|
|
875
|
+
}, "strip", z.ZodTypeAny, {
|
|
876
|
+
title: string;
|
|
877
|
+
layoutId: string;
|
|
878
|
+
slots: Record<string, any>;
|
|
879
|
+
notes: string;
|
|
880
|
+
id?: string | undefined;
|
|
881
|
+
}, {
|
|
882
|
+
title: string;
|
|
883
|
+
layoutId: string;
|
|
884
|
+
id?: string | undefined;
|
|
885
|
+
slots?: Record<string, any> | undefined;
|
|
886
|
+
notes?: string | undefined;
|
|
887
|
+
}>;
|
|
888
|
+
declare const GeneratedSlideArraySchema: z.ZodArray<z.ZodObject<{
|
|
889
|
+
id: z.ZodOptional<z.ZodString>;
|
|
890
|
+
layoutId: z.ZodString;
|
|
891
|
+
title: z.ZodString;
|
|
892
|
+
slots: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
893
|
+
notes: z.ZodDefault<z.ZodString>;
|
|
894
|
+
}, "strip", z.ZodTypeAny, {
|
|
895
|
+
title: string;
|
|
896
|
+
layoutId: string;
|
|
897
|
+
slots: Record<string, any>;
|
|
898
|
+
notes: string;
|
|
899
|
+
id?: string | undefined;
|
|
900
|
+
}, {
|
|
901
|
+
title: string;
|
|
902
|
+
layoutId: string;
|
|
903
|
+
id?: string | undefined;
|
|
904
|
+
slots?: Record<string, any> | undefined;
|
|
905
|
+
notes?: string | undefined;
|
|
906
|
+
}>, "many">;
|
|
801
907
|
interface SlideProductionWorkflowOptions {
|
|
802
908
|
lessonMarkdown: string;
|
|
803
909
|
lessonCode: string;
|
|
@@ -808,6 +914,12 @@ interface SlideProductionWorkflowOptions {
|
|
|
808
914
|
languageDirective?: string;
|
|
809
915
|
headingDirective?: string;
|
|
810
916
|
satelliteContext?: any;
|
|
917
|
+
/** Vercel AI SDK model resolution options (provider/model/apiKey). */
|
|
918
|
+
modelOptions?: ModelResolutionOptions;
|
|
919
|
+
/** Max attempts per inference unit (blueprint / each cluster). Default 3. */
|
|
920
|
+
maxRetries?: number;
|
|
921
|
+
/** When true (default), falls back to the legacy raw-fetch runner if generateObject fails. */
|
|
922
|
+
allowLegacyFallback?: boolean;
|
|
811
923
|
runnerOptions?: any;
|
|
812
924
|
onProgress?: (agent: string, message: string, meta?: any) => void;
|
|
813
925
|
}
|
|
@@ -818,9 +930,6 @@ interface SlideProductionWorkflowResult {
|
|
|
818
930
|
blueprint: SlideBlueprintItem[];
|
|
819
931
|
slideCount: number;
|
|
820
932
|
}
|
|
821
|
-
/**
|
|
822
|
-
* Executes the full chunky slide production workflow.
|
|
823
|
-
*/
|
|
824
933
|
declare function executeSlideProductionWorkflow(options: SlideProductionWorkflowOptions): Promise<SlideProductionWorkflowResult>;
|
|
825
934
|
|
|
826
935
|
/**
|
|
@@ -1121,4 +1230,4 @@ declare function getSlideLayoutPresetById(id: string): SlideLayoutPreset | undef
|
|
|
1121
1230
|
*/
|
|
1122
1231
|
declare function getSlideLayoutPresetsByCategory(category: SlideLayoutCategory): SlideLayoutPreset[];
|
|
1123
1232
|
|
|
1124
|
-
export { ACT_TEMPLATE, AIProviderName, ARTIFACT_DEPENDENCY_ROUTING, ARTIFACT_EXECUTION_ORDER, type AcademicAuditFinding, AcademicAuditor, type AcademicDimension, 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, CodeHardwareFeasibilityEvaluator, CodeLab, type ComprehensiveAcademicReport, ConstructiveAlignmentEvaluator, type ContextInjectionMeta, 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 ExtractedStreamChunk, type FindingSeverity, FiveEInstructionalEvaluator, type FrameworkLintFinding, type FrameworkLintReport, FrameworkPack, GLOSSARY_TEMPLATE, GRAPHIC_ORGANIZER_TEMPLATE, type GenerateExpositionOptions, HANDOUT_TEMPLATE, ICurriculumStorage, LAYER_IDLE_BUDGET_MS, LAYER_TOTAL_BUDGET_MS, LESSON_PLAN_TEMPLATE, type LayerChunkCallback, type LayerPrefillOptions, type LayerPrefillResult, type LayoutBoxConfig, LessonPlan, MisconceptionEvaluator, ModelResolutionOptions, PROJECT_INSTRUCTION_TEMPLATE, type PackingSpec, type PedagogicalModel, type PipelineExecutionProgress, PlanConstraints, type PlanOptions, type PlanResult, type PlannerLlmFn, PlanningGraph, PlanningNode, type PreliminaryResearchResult, type ProduceLessonOptions, type ProduceLessonResult, type ProjectBriefingData, type ProjectClarification, type ProjectCreationPayload, type ProjectIntentAnalysisResult, ProjectStatusReport, type ProjectionMeta, QUIZ_TEMPLATE, QualityAuditReport, REVIEW_GAME_TEMPLATE, RUBRIC_TEMPLATE, ResolvedGateSettings, SCIENCE_LAB_TEMPLATE, SELF_LAB_TEMPLATE, SLIDE_LAYOUT_PRESETS, SLIDE_TEMPLATE, STATION_ROTATION_TEMPLATE, type SlashCommandDefinition, SlideDeck, type SlideLayoutCategory, type SlideLayoutData, type SlideLayoutPreset, type SlideProductionWorkflowOptions, type SlideProductionWorkflowResult, SmartResumeContext, type StreamAbortHandle, type StreamBudget, type StreamChunkExtractor, StreamRunnerOptions, TASK_CARDS_TEMPLATE, TEACHER_GUIDE_TEMPLATE, TIERED_PRACTICE_TEMPLATE, TranslationPolicy, type TranslationTarget, type TranslationTrigger, type ValidationOptions, WORKSHEET_TEMPLATE, analyzeProjectCreationIntent, assertAcyclic, auditQualityReport, buildCurriculumContext, buildCurriculumPlan, buildExpositionContext, buildExpositionExcerpt, buildHeadingDirective, buildLanguageDirective, buildLessonExcerpt, buildSectionAwareExcerpt, buildSessionSliceContext, closeTruncatedJson, computePackingSpec, conductPreliminaryResearch, createAiInferenceError, createContextMissingError, createStreamAbortSignal, createStreamChunkExtractor, detectProjectPedagogy, ensureExpositionForLesson, ensureKnowledgeExposition, executeCurriculumCommand, executeSlideProductionWorkflow, expositionCacheKey, extractScopeSequenceRows, extractSectionHeadingsFromSLC, extractSessionSlice, extractStreamChunk, generatePhase1SotArtifacts, generatePhase2SotArtifacts, getLessonMetadata, getProjectArtifactScope, getProjectStatusReport, getSlideLayoutPresetById, getSlideLayoutPresetsByCategory, getSmartResumeContext, glossaryTermsForSession, ingestProjectGraphIntoProject, initializeProjectInStorage, isExpositionFresh, isTranslationDue, lintCurriculumFramework, loadCurriculumTemplate, loadSotTemplate, normalizePlanningGraph, normalizeSlcContract, parseRoadmapJsonToProjectPayload, produceBatchLessons, produceSingleLesson, renderFrameworkFromPlan, resolveStreamBudget, resolveTargetLanguageCode, resolveTranslationTargets, safeParseJson, slugifyProjectName, streamLLMWithFallback, streamLayerPrefillWithFallback, stripLlmJsonWrappers, targetLanguageDisplayName, topoSort, validateArtifactDependencies };
|
|
1233
|
+
export { ACT_TEMPLATE, AIProviderName, ARTIFACT_DEPENDENCY_ROUTING, ARTIFACT_EXECUTION_ORDER, type AcademicAuditFinding, AcademicAuditor, type AcademicDimension, 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, CodeHardwareFeasibilityEvaluator, CodeLab, type ComprehensiveAcademicReport, ConstructiveAlignmentEvaluator, type ContextInjectionMeta, 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 ExtractedStreamChunk, type FindingSeverity, FiveEInstructionalEvaluator, type FrameworkLintFinding, type FrameworkLintReport, FrameworkPack, GLOSSARY_TEMPLATE, GRAPHIC_ORGANIZER_TEMPLATE, type GenerateExpositionOptions, GeneratedSlideArraySchema, GeneratedSlideSchema, HANDOUT_TEMPLATE, ICurriculumStorage, LAYER_IDLE_BUDGET_MS, LAYER_TOTAL_BUDGET_MS, LESSON_PLAN_TEMPLATE, type LayerChunkCallback, type LayerPrefillOptions, type LayerPrefillResult, type LayoutBoxConfig, LessonPlan, MisconceptionEvaluator, ModelResolutionOptions, PROJECT_INSTRUCTION_TEMPLATE, type PackingSpec, type PedagogicalModel, type PipelineExecutionProgress, PlanConstraints, type PlanOptions, type PlanResult, type PlannerLlmFn, PlanningGraph, PlanningNode, type PreliminaryResearchResult, type ProduceLessonOptions, type ProduceLessonResult, type ProjectBriefingData, type ProjectClarification, type ProjectCreationPayload, type ProjectIntentAnalysisResult, ProjectStatusReport, type ProjectionMeta, QUIZ_TEMPLATE, QualityAuditReport, REVIEW_GAME_TEMPLATE, RUBRIC_TEMPLATE, ResolvedGateSettings, SCIENCE_LAB_TEMPLATE, SELF_LAB_TEMPLATE, SLIDE_LAYOUT_PRESETS, SLIDE_TEMPLATE, STATION_ROTATION_TEMPLATE, type SlashCommandDefinition, SlideBlueprintArraySchema, SlideBlueprintItemSchema, SlideDeck, type SlideLayoutCategory, type SlideLayoutData, type SlideLayoutPreset, type SlideProductionWorkflowOptions, type SlideProductionWorkflowResult, SmartResumeContext, type StreamAbortHandle, type StreamBudget, type StreamChunkExtractor, StreamRunnerOptions, TASK_CARDS_TEMPLATE, TEACHER_GUIDE_TEMPLATE, TIERED_PRACTICE_TEMPLATE, TranslationPolicy, type TranslationTarget, type TranslationTrigger, type ValidationOptions, WORKSHEET_TEMPLATE, analyzeProjectCreationIntent, assertAcyclic, auditQualityReport, buildCurriculumContext, buildCurriculumPlan, buildExpositionContext, buildExpositionExcerpt, buildHeadingDirective, buildLanguageDirective, buildLessonExcerpt, buildSectionAwareExcerpt, buildSessionSliceContext, closeTruncatedJson, computePackingSpec, conductPreliminaryResearch, createAiInferenceError, createContextMissingError, createStreamAbortSignal, createStreamChunkExtractor, detectProjectPedagogy, ensureExpositionForLesson, ensureKnowledgeExposition, executeCurriculumCommand, executeSlideProductionWorkflow, expositionCacheKey, extractScopeSequenceRows, extractSectionHeadingsFromSLC, extractSessionSlice, extractStreamChunk, generatePhase1SotArtifacts, generatePhase2SotArtifacts, getLessonMetadata, getProjectArtifactScope, getProjectStatusReport, getSlideLayoutPresetById, getSlideLayoutPresetsByCategory, getSmartResumeContext, glossaryTermsForSession, ingestProjectGraphIntoProject, initializeProjectInStorage, isExpositionFresh, isTranslationDue, lintCurriculumFramework, loadCurriculumTemplate, loadSotTemplate, normalizePlanningGraph, normalizeSlcContract, parseRoadmapJsonToProjectPayload, produceBatchLessons, produceSingleLesson, renderFrameworkFromPlan, resolveStreamBudget, resolveTargetLanguageCode, resolveTranslationTargets, safeParseJson, slugifyProjectName, streamLLMWithFallback, streamLayerPrefillWithFallback, stripLlmJsonWrappers, targetLanguageDisplayName, topoSort, validateArtifactDependencies };
|