@plasius/learning 0.2.18 → 0.2.20
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/README.md +39 -1
- package/dist/index.cjs +438 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +108 -1
- package/dist/index.d.ts +108 -1
- package/dist/index.js +424 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -571,6 +571,135 @@ var JUNIOR_CODER_ROBOT_RESCUE_PATH_CURRENT = JUNIOR_CODER_ROBOT_RESCUE_PATH_V1_1
|
|
|
571
571
|
// src/contracts.ts
|
|
572
572
|
var MISSION_AUTHORING_CONTRACT_VERSION_V1 = "1.0.0";
|
|
573
573
|
|
|
574
|
+
// src/publishing.ts
|
|
575
|
+
var STATIC_PROJECT_PUBLISHING_CONTRACT_VERSION_V1 = "1.0.0";
|
|
576
|
+
var STATIC_PROJECT_SCANNER_VERSION_V1 = "junior-coder-static-scan-v1";
|
|
577
|
+
var STATIC_PROJECT_APPROVAL_STATEMENT_VERSION_V1 = "guardian-static-publication-v1";
|
|
578
|
+
var STATIC_PROJECT_DEFAULT_LIFETIME_DAYS_V1 = 90;
|
|
579
|
+
var STATIC_PROJECT_MAX_SOURCE_CHARACTERS_V1 = 8e3;
|
|
580
|
+
var STATIC_PROJECT_SAFETY_CHECK_IDS_V1 = [
|
|
581
|
+
"allow-listed-source",
|
|
582
|
+
"no-personal-details",
|
|
583
|
+
"no-external-network",
|
|
584
|
+
"no-executable-markup",
|
|
585
|
+
"no-transmitting-forms",
|
|
586
|
+
"no-uploads-or-embeds",
|
|
587
|
+
"no-trackers-or-advertising",
|
|
588
|
+
"no-account-identifiers"
|
|
589
|
+
];
|
|
590
|
+
var DIGEST_PATTERN = /^sha256:[a-f0-9]{64}$/u;
|
|
591
|
+
var IDENTIFIER_PATTERN = /^(?:account|approval|publication|snapshot)_[A-Za-z0-9_-]{20,128}$/u;
|
|
592
|
+
var VERSION_PATTERN = /^[0-9]+\.[0-9]+\.[0-9]+(?:[-+][A-Za-z0-9.-]+)?$/u;
|
|
593
|
+
var RANDOM_SLUG_PATTERN = /^[A-Za-z0-9_-]{40,128}$/u;
|
|
594
|
+
function validDate(value) {
|
|
595
|
+
return typeof value === "string" && Number.isFinite(Date.parse(value));
|
|
596
|
+
}
|
|
597
|
+
function allSafetyChecksPresent(scan) {
|
|
598
|
+
if (!Array.isArray(scan.checks) || scan.checks.length !== STATIC_PROJECT_SAFETY_CHECK_IDS_V1.length) {
|
|
599
|
+
return false;
|
|
600
|
+
}
|
|
601
|
+
const supplied = new Set(scan.checks.map((check) => check.id));
|
|
602
|
+
return STATIC_PROJECT_SAFETY_CHECK_IDS_V1.every((id) => supplied.has(id)) && scan.checks.every((check) => check.passed === true);
|
|
603
|
+
}
|
|
604
|
+
function safeAdventureRender(value) {
|
|
605
|
+
const headings = ["Moonbase Missions", "Forest Rescue Plans", "Ocean Quest Board"];
|
|
606
|
+
const titles = ["Find the moon crystal", "Guide the lost firefly", "Map the coral garden"];
|
|
607
|
+
const days = ["Saturday", "Sunday", "School holiday"];
|
|
608
|
+
const messages = ["Choose a day", "Add a mission title", "Mission ready!"];
|
|
609
|
+
return headings.includes(value.heading) && Array.isArray(value.missions) && value.missions.length >= 1 && value.missions.length <= 3 && value.missions.every((mission2) => titles.includes(mission2.title) && days.includes(mission2.day)) && messages.includes(value.validationMessage) && value.savedAcrossRestart === true && value.accessibleSummaryEnabled === true;
|
|
610
|
+
}
|
|
611
|
+
function safeCreatureRender(value) {
|
|
612
|
+
return ["Moon Moth", "Cloud Cat", "Pebble Dragon"].includes(value.creature) && ["Resting", "Ready to play", "Snack time"].includes(value.status) && [5, 10, 15].includes(value.timerSeconds) && ["single", "cosy-grid", "wide-grid"].includes(value.layout) && value.reducedMotion === true;
|
|
613
|
+
}
|
|
614
|
+
function safeRobotRender(value) {
|
|
615
|
+
return ["scan", "hold-position", "return-to-base"].includes(value.command) && value.safetyConfirmed === true && [1, 2, 4].includes(value.telemetryRate) && ["line", "bars", "text-only"].includes(value.chartMode) && value.serialSimulation === true && ["SCANNING", "HOLDING", "RETURNING"].includes(value.state);
|
|
616
|
+
}
|
|
617
|
+
function validateStaticProjectSnapshot(value) {
|
|
618
|
+
const issues = [];
|
|
619
|
+
if (value.schemaVersion !== "1") issues.push("invalid-schema-version");
|
|
620
|
+
if (value.contractVersion !== STATIC_PROJECT_PUBLISHING_CONTRACT_VERSION_V1) {
|
|
621
|
+
issues.push("invalid-contract-version");
|
|
622
|
+
}
|
|
623
|
+
if (!IDENTIFIER_PATTERN.test(value.snapshotId) || !IDENTIFIER_PATTERN.test(value.subjectAccountId)) {
|
|
624
|
+
issues.push("invalid-identifier");
|
|
625
|
+
}
|
|
626
|
+
if (!value.moduleId.startsWith("junior-coder.") || value.moduleId !== `junior-coder.${value.moduleSlug}`) {
|
|
627
|
+
issues.push("invalid-module");
|
|
628
|
+
}
|
|
629
|
+
if (!VERSION_PATTERN.test(value.moduleVersion)) issues.push("invalid-version");
|
|
630
|
+
if (!DIGEST_PATTERN.test(value.sourceDigest)) issues.push("invalid-source-digest");
|
|
631
|
+
if (!DIGEST_PATTERN.test(value.snapshotDigest)) issues.push("invalid-snapshot-digest");
|
|
632
|
+
if (!Number.isInteger(value.sourceCharacterCount) || value.sourceCharacterCount < 1 || value.sourceCharacterCount > STATIC_PROJECT_MAX_SOURCE_CHARACTERS_V1) {
|
|
633
|
+
issues.push("invalid-source-size");
|
|
634
|
+
}
|
|
635
|
+
if (!Number.isInteger(value.assessmentScore) || value.assessmentScore < 80 || value.assessmentScore > 100) {
|
|
636
|
+
issues.push("assessment-score-incomplete");
|
|
637
|
+
}
|
|
638
|
+
if (value.mandatorySafetyPassed !== true) issues.push("mandatory-safety-missing");
|
|
639
|
+
if (value.scan?.passed !== true || value.scan?.scannerVersion !== STATIC_PROJECT_SCANNER_VERSION_V1) {
|
|
640
|
+
issues.push("scan-not-passed");
|
|
641
|
+
}
|
|
642
|
+
if (!value.scan || !allSafetyChecksPresent(value.scan)) issues.push("scan-checks-incomplete");
|
|
643
|
+
if (value.moduleSlug !== value.renderModel?.kind) issues.push("module-render-model-mismatch");
|
|
644
|
+
const renderSafe = value.renderModel?.kind === "adventure-mission-planner" ? safeAdventureRender(value.renderModel) : value.renderModel?.kind === "creature-care-dashboard" ? safeCreatureRender(value.renderModel) : value.renderModel?.kind === "robot-mission-control" ? safeRobotRender(value.renderModel) : false;
|
|
645
|
+
if (!renderSafe) issues.push("unsafe-render-model");
|
|
646
|
+
if (value.state !== "pending-review" || !validDate(value.createdAt)) issues.push("invalid-created-at");
|
|
647
|
+
return [...new Set(issues)];
|
|
648
|
+
}
|
|
649
|
+
function assertValidStaticProjectSnapshot(value) {
|
|
650
|
+
const issues = validateStaticProjectSnapshot(value);
|
|
651
|
+
if (issues.length > 0) throw new Error(`Invalid static project snapshot: ${issues.join(", ")}`);
|
|
652
|
+
}
|
|
653
|
+
function validateStaticProjectGuardianApproval(value) {
|
|
654
|
+
const issues = [];
|
|
655
|
+
if (value.schemaVersion !== "1") issues.push("invalid-schema-version");
|
|
656
|
+
if (!IDENTIFIER_PATTERN.test(value.approvalId) || !IDENTIFIER_PATTERN.test(value.snapshotId) || !IDENTIFIER_PATTERN.test(value.guardianActorAccountId)) {
|
|
657
|
+
issues.push("invalid-identifier");
|
|
658
|
+
}
|
|
659
|
+
if (!DIGEST_PATTERN.test(value.snapshotDigest)) issues.push("invalid-snapshot-digest");
|
|
660
|
+
if (value.statementVersion !== STATIC_PROJECT_APPROVAL_STATEMENT_VERSION_V1) {
|
|
661
|
+
issues.push("invalid-approval-statement");
|
|
662
|
+
}
|
|
663
|
+
if (!validDate(value.approvedAt)) issues.push("invalid-approved-at");
|
|
664
|
+
return [...new Set(issues)];
|
|
665
|
+
}
|
|
666
|
+
function assertValidStaticProjectGuardianApproval(value) {
|
|
667
|
+
const issues = validateStaticProjectGuardianApproval(value);
|
|
668
|
+
if (issues.length > 0) throw new Error(`Invalid static project approval: ${issues.join(", ")}`);
|
|
669
|
+
}
|
|
670
|
+
function validateStaticProjectPublication(value) {
|
|
671
|
+
const issues = [];
|
|
672
|
+
if (value.schemaVersion !== "1") issues.push("invalid-schema-version");
|
|
673
|
+
if (!IDENTIFIER_PATTERN.test(value.publicationId) || !IDENTIFIER_PATTERN.test(value.snapshotId) || !IDENTIFIER_PATTERN.test(value.approvalId)) {
|
|
674
|
+
issues.push("invalid-identifier");
|
|
675
|
+
}
|
|
676
|
+
if (!DIGEST_PATTERN.test(value.snapshotDigest)) issues.push("invalid-snapshot-digest");
|
|
677
|
+
if (!RANDOM_SLUG_PATTERN.test(value.randomSlug)) issues.push("invalid-random-slug");
|
|
678
|
+
let parsedUrl;
|
|
679
|
+
try {
|
|
680
|
+
parsedUrl = new URL(value.publicUrl);
|
|
681
|
+
} catch {
|
|
682
|
+
parsedUrl = void 0;
|
|
683
|
+
}
|
|
684
|
+
if (!parsedUrl || parsedUrl.protocol !== "https:" || parsedUrl.username || parsedUrl.password) {
|
|
685
|
+
issues.push("invalid-public-url");
|
|
686
|
+
}
|
|
687
|
+
if (!parsedUrl?.pathname.endsWith(`/${value.randomSlug}`)) issues.push("public-url-slug-mismatch");
|
|
688
|
+
if (value.state !== "published") issues.push("published-state-required");
|
|
689
|
+
if (!validDate(value.publishedAt)) issues.push("invalid-published-at");
|
|
690
|
+
if (!validDate(value.expiresAt) || validDate(value.publishedAt) && Date.parse(value.expiresAt) <= Date.parse(value.publishedAt)) {
|
|
691
|
+
issues.push("invalid-publication-expiry");
|
|
692
|
+
}
|
|
693
|
+
if (value.renewedAt !== void 0 && !validDate(value.renewedAt) || value.unpublishedAt !== void 0 && !validDate(value.unpublishedAt)) {
|
|
694
|
+
issues.push("invalid-lifecycle-timestamp");
|
|
695
|
+
}
|
|
696
|
+
return [...new Set(issues)];
|
|
697
|
+
}
|
|
698
|
+
function assertValidStaticProjectPublication(value) {
|
|
699
|
+
const issues = validateStaticProjectPublication(value);
|
|
700
|
+
if (issues.length > 0) throw new Error(`Invalid static project publication: ${issues.join(", ")}`);
|
|
701
|
+
}
|
|
702
|
+
|
|
574
703
|
// src/rubric-validation.ts
|
|
575
704
|
var DIMENSION_TOTALS = {
|
|
576
705
|
structure: 20,
|
|
@@ -5715,6 +5844,287 @@ var CREATURE_CARE_DASHBOARD_MISSION_ONE_AUTHORING_V1 = {
|
|
|
5715
5844
|
]
|
|
5716
5845
|
}
|
|
5717
5846
|
};
|
|
5847
|
+
var ROBOT_MISSION_CONTROL_MISSION_ONE_AUTHORING_V1 = {
|
|
5848
|
+
version: MISSION_AUTHORING_CONTRACT_VERSION_V1,
|
|
5849
|
+
moduleId: "junior-coder.robot-mission-control",
|
|
5850
|
+
moduleVersion: "1.1.0",
|
|
5851
|
+
missionId: "robot-mission-control-mission-1",
|
|
5852
|
+
learner: {
|
|
5853
|
+
estimatedMinutes: 20,
|
|
5854
|
+
stages: [
|
|
5855
|
+
{
|
|
5856
|
+
kind: "learn",
|
|
5857
|
+
instruction: "Read how commands, a fail-safe state machine, confirmations, telemetry charts and the five documented functions build a simulated mission-control panel.",
|
|
5858
|
+
artifactIds: ["robot-mission-control-m1-guide"]
|
|
5859
|
+
},
|
|
5860
|
+
{
|
|
5861
|
+
kind: "predict",
|
|
5862
|
+
instruction: "Predict whether a planned command may leave STOP when the safety confirmation is disabled.",
|
|
5863
|
+
artifactIds: ["robot-mission-control-m1-command-cards"]
|
|
5864
|
+
},
|
|
5865
|
+
{
|
|
5866
|
+
kind: "build",
|
|
5867
|
+
instruction: "Change only the supplied command, confirmation, telemetry rate, chart mode and serial-simulation settings.",
|
|
5868
|
+
artifactIds: ["robot-mission-control-m1-code"]
|
|
5869
|
+
},
|
|
5870
|
+
{
|
|
5871
|
+
kind: "run",
|
|
5872
|
+
instruction: "Use the action-icon Run button to update the private simulated controls, chart and text telemetry.",
|
|
5873
|
+
artifactIds: ["robot-mission-control-m1-code"]
|
|
5874
|
+
},
|
|
5875
|
+
{
|
|
5876
|
+
kind: "assess",
|
|
5877
|
+
instruction: "Run deterministic command, state-machine, safety-confirmation, telemetry and responsive-layout checks.",
|
|
5878
|
+
artifactIds: []
|
|
5879
|
+
},
|
|
5880
|
+
{
|
|
5881
|
+
kind: "inspect",
|
|
5882
|
+
instruction: "Compare the observed STOP state with the planned command and highlighted safety-confirmation setting.",
|
|
5883
|
+
artifactIds: ["robot-mission-control-m1-code"]
|
|
5884
|
+
},
|
|
5885
|
+
{
|
|
5886
|
+
kind: "fix",
|
|
5887
|
+
instruction: "Review and accept or reject the exact safety-confirmation change yourself, then rerun every check.",
|
|
5888
|
+
artifactIds: ["robot-mission-control-m1-code"]
|
|
5889
|
+
},
|
|
5890
|
+
{
|
|
5891
|
+
kind: "explain",
|
|
5892
|
+
instruction: "Explain how confirmation changes the state machine and why the chart and text telemetry must agree.",
|
|
5893
|
+
artifactIds: []
|
|
5894
|
+
},
|
|
5895
|
+
{
|
|
5896
|
+
kind: "reward",
|
|
5897
|
+
instruction: "Collect the evidence-bound mission-control badge after the score reaches 80 and every mandatory STOP test passes.",
|
|
5898
|
+
artifactIds: []
|
|
5899
|
+
}
|
|
5900
|
+
],
|
|
5901
|
+
readinessChecks: [
|
|
5902
|
+
{
|
|
5903
|
+
id: "robot-mission-control-m1-stop-check",
|
|
5904
|
+
prompt: "Find the planned command, current STOP state, confirmation and text telemetry before running the simulator.",
|
|
5905
|
+
scored: false
|
|
5906
|
+
}
|
|
5907
|
+
],
|
|
5908
|
+
artifacts: [
|
|
5909
|
+
{
|
|
5910
|
+
id: "robot-mission-control-m1-code",
|
|
5911
|
+
kind: "starter-code",
|
|
5912
|
+
audience: "learner",
|
|
5913
|
+
solutionBearing: false
|
|
5914
|
+
},
|
|
5915
|
+
{
|
|
5916
|
+
id: "robot-mission-control-m1-guide",
|
|
5917
|
+
kind: "starter-assets",
|
|
5918
|
+
audience: "learner",
|
|
5919
|
+
solutionBearing: false
|
|
5920
|
+
},
|
|
5921
|
+
{
|
|
5922
|
+
id: "robot-mission-control-m1-command-cards",
|
|
5923
|
+
kind: "sample-data",
|
|
5924
|
+
audience: "learner",
|
|
5925
|
+
solutionBearing: false
|
|
5926
|
+
}
|
|
5927
|
+
],
|
|
5928
|
+
goals: [
|
|
5929
|
+
{
|
|
5930
|
+
id: "robot-mission-control-m1-starts",
|
|
5931
|
+
statement: "The responsive control component, chart and text telemetry build with a valid simulated command state machine.",
|
|
5932
|
+
visibility: "visible",
|
|
5933
|
+
criterionIds: ["robot-mission-control-build"],
|
|
5934
|
+
completionRequired: true,
|
|
5935
|
+
aiRequired: false
|
|
5936
|
+
},
|
|
5937
|
+
{
|
|
5938
|
+
id: "robot-mission-control-m1-behaviour",
|
|
5939
|
+
statement: "A confirmed command moves the state machine from STOP and updates the chart and serial simulation with matching bounded telemetry.",
|
|
5940
|
+
visibility: "visible",
|
|
5941
|
+
criterionIds: [
|
|
5942
|
+
"robot-mission-control-goal-one",
|
|
5943
|
+
"robot-mission-control-goal-two",
|
|
5944
|
+
"robot-mission-control-goal-three"
|
|
5945
|
+
],
|
|
5946
|
+
completionRequired: true,
|
|
5947
|
+
aiRequired: false
|
|
5948
|
+
},
|
|
5949
|
+
{
|
|
5950
|
+
id: "robot-mission-control-m1-safe-private",
|
|
5951
|
+
statement: "Without confirmation the simulator stays in STOP, exposes responsive text telemetry and never opens a real serial port or controls hardware.",
|
|
5952
|
+
visibility: "visible",
|
|
5953
|
+
criterionIds: ["robot-mission-control-safety"],
|
|
5954
|
+
completionRequired: true,
|
|
5955
|
+
aiRequired: false
|
|
5956
|
+
}
|
|
5957
|
+
],
|
|
5958
|
+
interactions: [
|
|
5959
|
+
{
|
|
5960
|
+
id: "robot-mission-control-m1-editor",
|
|
5961
|
+
description: "Edit the five documented mission-control calls using keyboard or pointer controls.",
|
|
5962
|
+
primaryMode: "keyboard",
|
|
5963
|
+
alternativeIds: []
|
|
5964
|
+
},
|
|
5965
|
+
{
|
|
5966
|
+
id: "robot-mission-control-m1-run",
|
|
5967
|
+
description: "Activate the labelled action-icon Run control.",
|
|
5968
|
+
primaryMode: "pointer",
|
|
5969
|
+
alternativeIds: ["robot-mission-control-m1-keyboard-run"]
|
|
5970
|
+
},
|
|
5971
|
+
{
|
|
5972
|
+
id: "robot-mission-control-m1-review",
|
|
5973
|
+
description: "Review and accept or reject the exact labelled safety diff.",
|
|
5974
|
+
primaryMode: "keyboard",
|
|
5975
|
+
alternativeIds: []
|
|
5976
|
+
}
|
|
5977
|
+
],
|
|
5978
|
+
accessibilityAlternatives: [
|
|
5979
|
+
{
|
|
5980
|
+
id: "robot-mission-control-m1-keyboard-run",
|
|
5981
|
+
description: "Focus the Run action button and press Enter or Space to produce the same controls, chart and text telemetry.",
|
|
5982
|
+
modes: ["keyboard"],
|
|
5983
|
+
equivalentOutcome: true
|
|
5984
|
+
}
|
|
5985
|
+
],
|
|
5986
|
+
evidenceRequirements: [
|
|
5987
|
+
{
|
|
5988
|
+
id: "robot-mission-control-m1-assessment",
|
|
5989
|
+
goalIds: [
|
|
5990
|
+
"robot-mission-control-m1-starts",
|
|
5991
|
+
"robot-mission-control-m1-behaviour",
|
|
5992
|
+
"robot-mission-control-m1-safe-private"
|
|
5993
|
+
],
|
|
5994
|
+
kind: "assessment-result",
|
|
5995
|
+
retention: "entitlement",
|
|
5996
|
+
containsPersonalData: false
|
|
5997
|
+
},
|
|
5998
|
+
{
|
|
5999
|
+
id: "robot-mission-control-m1-explanation",
|
|
6000
|
+
goalIds: ["robot-mission-control-m1-safe-private"],
|
|
6001
|
+
kind: "learner-explanation",
|
|
6002
|
+
retention: "attempt",
|
|
6003
|
+
containsPersonalData: false
|
|
6004
|
+
}
|
|
6005
|
+
],
|
|
6006
|
+
sideAdventures: [
|
|
6007
|
+
{
|
|
6008
|
+
id: "robot-mission-control-m1-remix",
|
|
6009
|
+
prompt: "Choose another supplied command or chart mode and explain which confirmation and STOP evidence must remain.",
|
|
6010
|
+
completionRequired: false
|
|
6011
|
+
}
|
|
6012
|
+
],
|
|
6013
|
+
rewardBindings: [
|
|
6014
|
+
{
|
|
6015
|
+
id: "robot-mission-control-m1-badge",
|
|
6016
|
+
badgeId: "robot-mission-control-mission-complete",
|
|
6017
|
+
goalIds: [
|
|
6018
|
+
"robot-mission-control-m1-starts",
|
|
6019
|
+
"robot-mission-control-m1-behaviour",
|
|
6020
|
+
"robot-mission-control-m1-safe-private"
|
|
6021
|
+
],
|
|
6022
|
+
deterministic: true,
|
|
6023
|
+
random: false,
|
|
6024
|
+
tokenConvertible: false
|
|
6025
|
+
}
|
|
6026
|
+
],
|
|
6027
|
+
functionReference: [
|
|
6028
|
+
{
|
|
6029
|
+
id: "robot-mission-control-function-command",
|
|
6030
|
+
signature: "planCommand(command)",
|
|
6031
|
+
summary: "Plans one supplied command for the simulated robot state machine.",
|
|
6032
|
+
parameters: [{ name: "command", type: "text", description: "Use scan, hold-position or return-to-base." }],
|
|
6033
|
+
effect: "Updates the planned-command panel but cannot leave STOP without confirmation.",
|
|
6034
|
+
example: 'planCommand("scan");'
|
|
6035
|
+
},
|
|
6036
|
+
{
|
|
6037
|
+
id: "robot-mission-control-function-confirmation",
|
|
6038
|
+
signature: "setSafetyConfirmation(enabled)",
|
|
6039
|
+
summary: "Controls whether the planned simulated command has explicit safety confirmation.",
|
|
6040
|
+
parameters: [{ name: "enabled", type: "Boolean", description: "Use true only after checking the planned command." }],
|
|
6041
|
+
effect: "Allows the simulator state machine to leave STOP; it never approves or controls physical hardware.",
|
|
6042
|
+
example: "setSafetyConfirmation(true);"
|
|
6043
|
+
},
|
|
6044
|
+
{
|
|
6045
|
+
id: "robot-mission-control-function-rate",
|
|
6046
|
+
signature: "setTelemetryRate(samplesPerSecond)",
|
|
6047
|
+
summary: "Sets a bounded simulated telemetry sampling rate.",
|
|
6048
|
+
parameters: [{ name: "samplesPerSecond", type: "number", description: "Use 1, 2 or 4 simulated samples per second." }],
|
|
6049
|
+
effect: "Changes bounded chart and text sample spacing without starting background work.",
|
|
6050
|
+
example: "setTelemetryRate(2);"
|
|
6051
|
+
},
|
|
6052
|
+
{
|
|
6053
|
+
id: "robot-mission-control-function-chart",
|
|
6054
|
+
signature: "setChartMode(mode)",
|
|
6055
|
+
summary: "Chooses one supplied responsive telemetry presentation.",
|
|
6056
|
+
parameters: [{ name: "mode", type: "text", description: "Use line, bars or text-only." }],
|
|
6057
|
+
effect: "Changes the preview chart while preserving equivalent labelled text telemetry.",
|
|
6058
|
+
example: 'setChartMode("line");'
|
|
6059
|
+
},
|
|
6060
|
+
{
|
|
6061
|
+
id: "robot-mission-control-function-serial",
|
|
6062
|
+
signature: "simulateSerial(enabled)",
|
|
6063
|
+
summary: "Turns the bounded serial-message simulator on or off.",
|
|
6064
|
+
parameters: [{ name: "enabled", type: "Boolean", description: "Use true to show simulated messages." }],
|
|
6065
|
+
effect: "Produces labelled local simulator messages; it never opens Web Serial or a physical connection.",
|
|
6066
|
+
example: "simulateSerial(true);"
|
|
6067
|
+
}
|
|
6068
|
+
],
|
|
6069
|
+
boundedSuggestion: {
|
|
6070
|
+
id: "robot-mission-control-m1-confirmation-diff",
|
|
6071
|
+
source: "authored-fallback",
|
|
6072
|
+
intent: "Confirm the supplied simulated command before the state machine leaves STOP.",
|
|
6073
|
+
constraints: [
|
|
6074
|
+
"Change exactly one documented safety-confirmation setting.",
|
|
6075
|
+
"Preserve the supplied command, telemetry rate, chart mode, serial simulation and text telemetry.",
|
|
6076
|
+
"Do not add Web Serial, network, external scripts, hardware control, personal data or automatic approval."
|
|
6077
|
+
],
|
|
6078
|
+
permittedArtifactId: "robot-mission-control-m1-code",
|
|
6079
|
+
originalSnippet: "setSafetyConfirmation(false);",
|
|
6080
|
+
replacementSnippet: "setSafetyConfirmation(true);",
|
|
6081
|
+
explanationPrompt: "Which state-machine transition became possible, and what keeps the exercise separate from physical hardware?",
|
|
6082
|
+
aiOptional: false,
|
|
6083
|
+
learnerApprovalRequired: true,
|
|
6084
|
+
alternatives: ["accept", "reject"]
|
|
6085
|
+
}
|
|
6086
|
+
},
|
|
6087
|
+
facilitator: {
|
|
6088
|
+
artifacts: [
|
|
6089
|
+
{
|
|
6090
|
+
id: "robot-mission-control-m1-answer-key",
|
|
6091
|
+
kind: "answer-key",
|
|
6092
|
+
audience: "facilitator",
|
|
6093
|
+
solutionBearing: true
|
|
6094
|
+
},
|
|
6095
|
+
{
|
|
6096
|
+
id: "robot-mission-control-m1-protected-tests",
|
|
6097
|
+
kind: "protected-test",
|
|
6098
|
+
audience: "facilitator",
|
|
6099
|
+
solutionBearing: true
|
|
6100
|
+
},
|
|
6101
|
+
{
|
|
6102
|
+
id: "robot-mission-control-m1-safety-notes",
|
|
6103
|
+
kind: "facilitator-note",
|
|
6104
|
+
audience: "facilitator",
|
|
6105
|
+
solutionBearing: true
|
|
6106
|
+
}
|
|
6107
|
+
],
|
|
6108
|
+
protectedGoals: [
|
|
6109
|
+
{
|
|
6110
|
+
id: "robot-mission-control-m1-protected-boundary",
|
|
6111
|
+
statement: "The dashboard rejects arbitrary commands, invalid rates, scripts, network access, Web Serial, hardware control, personal data and any unconfirmed transition away from STOP.",
|
|
6112
|
+
visibility: "protected",
|
|
6113
|
+
criterionIds: [
|
|
6114
|
+
"robot-mission-control-edge-one",
|
|
6115
|
+
"robot-mission-control-edge-two"
|
|
6116
|
+
],
|
|
6117
|
+
completionRequired: false,
|
|
6118
|
+
aiRequired: false
|
|
6119
|
+
}
|
|
6120
|
+
],
|
|
6121
|
+
prompts: [
|
|
6122
|
+
"Ask the learner to identify the planned command, current state, confirmation and equivalent text telemetry before suggesting a change.",
|
|
6123
|
+
"Keep every command and message inside the simulator; the website never opens serial or controls hardware.",
|
|
6124
|
+
"Reject must preserve source, and provider failure must never block deterministic completion."
|
|
6125
|
+
]
|
|
6126
|
+
}
|
|
6127
|
+
};
|
|
5718
6128
|
var ADVENTURE_MISSION_PLANNER_MISSION_ONE_AUTHORING_V1 = {
|
|
5719
6129
|
version: MISSION_AUTHORING_CONTRACT_VERSION_V1,
|
|
5720
6130
|
moduleId: "junior-coder.adventure-mission-planner",
|
|
@@ -6365,17 +6775,30 @@ export {
|
|
|
6365
6775
|
RESCUE_CREW_COMMANDER_MISSION_ONE_AUTHORING_V1,
|
|
6366
6776
|
ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1,
|
|
6367
6777
|
ROBOT_MAZE_DASH_MISSION_ONE_AUTHORING_V1,
|
|
6778
|
+
ROBOT_MISSION_CONTROL_MISSION_ONE_AUTHORING_V1,
|
|
6368
6779
|
SERVO_CREATURE_MISSION_ONE_AUTHORING_V1,
|
|
6369
6780
|
SKYWING_SPRINT_MISSION_ONE_AUTHORING_V1,
|
|
6370
6781
|
STAR_DEFENDER_SQUADRON_MISSION_ONE_AUTHORING_V1,
|
|
6782
|
+
STATIC_PROJECT_APPROVAL_STATEMENT_VERSION_V1,
|
|
6783
|
+
STATIC_PROJECT_DEFAULT_LIFETIME_DAYS_V1,
|
|
6784
|
+
STATIC_PROJECT_MAX_SOURCE_CHARACTERS_V1,
|
|
6785
|
+
STATIC_PROJECT_PUBLISHING_CONTRACT_VERSION_V1,
|
|
6786
|
+
STATIC_PROJECT_SAFETY_CHECK_IDS_V1,
|
|
6787
|
+
STATIC_PROJECT_SCANNER_VERSION_V1,
|
|
6371
6788
|
VIBE_BUG_DETECTIVE_MISSION_ONE_AUTHORING_V1,
|
|
6372
6789
|
VIBE_GAME_REMIX_LAB_MISSION_ONE_AUTHORING_V1,
|
|
6373
6790
|
VIBE_IDEA_STUDIO_MISSION_ONE_AUTHORING_V1,
|
|
6374
6791
|
assertValidLearningPath,
|
|
6375
6792
|
assertValidMissionAuthoringBundle,
|
|
6793
|
+
assertValidStaticProjectGuardianApproval,
|
|
6794
|
+
assertValidStaticProjectPublication,
|
|
6795
|
+
assertValidStaticProjectSnapshot,
|
|
6376
6796
|
calculateAssessment,
|
|
6377
6797
|
validateAssessmentRubric,
|
|
6378
6798
|
validateLearningPath,
|
|
6379
|
-
validateMissionAuthoringBundle
|
|
6799
|
+
validateMissionAuthoringBundle,
|
|
6800
|
+
validateStaticProjectGuardianApproval,
|
|
6801
|
+
validateStaticProjectPublication,
|
|
6802
|
+
validateStaticProjectSnapshot
|
|
6380
6803
|
};
|
|
6381
6804
|
//# sourceMappingURL=index.js.map
|