@plasius/learning 0.2.1 → 0.2.2

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 CHANGED
@@ -64,19 +64,27 @@ the exact catalog module that owns its rubric, mission and badges.
64
64
  import {
65
65
  JUNIOR_CODER_ROBOT_RESCUE_PATH_V1_1,
66
66
  ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1,
67
+ ROBOT_MAZE_DASH_MISSION_ONE_AUTHORING_V1,
67
68
  assertValidMissionAuthoringBundle,
68
69
  } from "@plasius/learning";
69
70
 
70
71
  const roadHopper = JUNIOR_CODER_ROBOT_RESCUE_PATH_V1_1.modules.find(
71
72
  (module) => module.slug === "road-hopper-rally",
72
73
  );
74
+ const robotMaze = JUNIOR_CODER_ROBOT_RESCUE_PATH_V1_1.modules.find(
75
+ (module) => module.slug === "robot-maze-dash",
76
+ );
73
77
 
74
- if (!roadHopper) throw new Error("Road Hopper Rally is missing");
78
+ if (!roadHopper || !robotMaze) throw new Error("Junior Coder module is missing");
75
79
 
76
80
  assertValidMissionAuthoringBundle(
77
81
  ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1,
78
82
  roadHopper,
79
83
  );
84
+ assertValidMissionAuthoringBundle(
85
+ ROBOT_MAZE_DASH_MISSION_ONE_AUTHORING_V1,
86
+ robotMaze,
87
+ );
80
88
  ```
81
89
 
82
90
  ## Contract rules
@@ -92,6 +100,9 @@ assertValidMissionAuthoringBundle(
92
100
  → explain → reward`, and readiness checks never affect the score.
93
101
  - Learner evidence and rewards can bind only to visible goals; protected goal
94
102
  IDs stay in the facilitator projection.
103
+ - Visual-programming missions must provide an equivalent labelled control for
104
+ every drag interaction so learners can complete the same work with keyboard
105
+ or pointer buttons.
95
106
  - Rubric criteria total exactly 100 points.
96
107
  - Completion requires a score of at least 80 and every mandatory criterion.
97
108
  - Module agents may explain evidence and propose a bounded next step, but cannot assign scores or rewards.
package/dist/index.cjs CHANGED
@@ -27,6 +27,7 @@ __export(index_exports, {
27
27
  JUNIOR_CODER_ROBOT_RESCUE_PATH_V1_1: () => JUNIOR_CODER_ROBOT_RESCUE_PATH_V1_1,
28
28
  MISSION_AUTHORING_CONTRACT_VERSION_V1: () => MISSION_AUTHORING_CONTRACT_VERSION_V1,
29
29
  ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1: () => ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1,
30
+ ROBOT_MAZE_DASH_MISSION_ONE_AUTHORING_V1: () => ROBOT_MAZE_DASH_MISSION_ONE_AUTHORING_V1,
30
31
  assertValidLearningPath: () => assertValidLearningPath,
31
32
  assertValidMissionAuthoringBundle: () => assertValidMissionAuthoringBundle,
32
33
  calculateAssessment: () => calculateAssessment,
@@ -1126,6 +1127,220 @@ function assertValidMissionAuthoringBundle(bundle, module3) {
1126
1127
  throw new Error(`Invalid mission authoring bundle:
1127
1128
  ${summary}`);
1128
1129
  }
1130
+ var ROBOT_MAZE_DASH_MISSION_ONE_AUTHORING_V1 = {
1131
+ version: MISSION_AUTHORING_CONTRACT_VERSION_V1,
1132
+ moduleId: "junior-coder.robot-maze-dash",
1133
+ moduleVersion: "1.1.0",
1134
+ missionId: "robot-maze-dash-mission-1",
1135
+ learner: {
1136
+ estimatedMinutes: 20,
1137
+ stages: [
1138
+ {
1139
+ kind: "learn",
1140
+ instruction: "Meet the move, turn-left and turn-right action blocks and read what each command does.",
1141
+ artifactIds: ["robot-maze-dash-m1-art"]
1142
+ },
1143
+ {
1144
+ kind: "predict",
1145
+ instruction: "Predict where the robot will stop after it follows the blocks from top to bottom.",
1146
+ artifactIds: []
1147
+ },
1148
+ {
1149
+ kind: "build",
1150
+ instruction: "Arrange the action blocks so the rescue robot can reach the beacon.",
1151
+ artifactIds: ["robot-maze-dash-m1-program"]
1152
+ },
1153
+ {
1154
+ kind: "run",
1155
+ instruction: "Use the Run action button to watch the robot follow your visual program.",
1156
+ artifactIds: ["robot-maze-dash-m1-program"]
1157
+ },
1158
+ {
1159
+ kind: "assess",
1160
+ instruction: "Run the visible and protected deterministic mission checks.",
1161
+ artifactIds: []
1162
+ },
1163
+ {
1164
+ kind: "inspect",
1165
+ instruction: "Compare the highlighted block with the first goal that did not pass.",
1166
+ artifactIds: []
1167
+ },
1168
+ {
1169
+ kind: "fix",
1170
+ instruction: "Move, add or remove one action block, then run the mission again.",
1171
+ artifactIds: ["robot-maze-dash-m1-program"]
1172
+ },
1173
+ {
1174
+ kind: "explain",
1175
+ instruction: "Explain how the order of your blocks changed the robot path.",
1176
+ artifactIds: []
1177
+ },
1178
+ {
1179
+ kind: "reward",
1180
+ instruction: "Collect the evidence-bound badge when the score and safety check pass.",
1181
+ artifactIds: []
1182
+ }
1183
+ ],
1184
+ readinessChecks: [
1185
+ {
1186
+ id: "robot-maze-dash-m1-read-order",
1187
+ prompt: "Point to the first action the robot will follow.",
1188
+ scored: false
1189
+ }
1190
+ ],
1191
+ artifacts: [
1192
+ {
1193
+ id: "robot-maze-dash-m1-program",
1194
+ kind: "starter-code",
1195
+ audience: "learner",
1196
+ solutionBearing: false
1197
+ },
1198
+ {
1199
+ id: "robot-maze-dash-m1-art",
1200
+ kind: "starter-assets",
1201
+ audience: "learner",
1202
+ solutionBearing: false
1203
+ },
1204
+ {
1205
+ id: "robot-maze-dash-m1-printable",
1206
+ kind: "printable",
1207
+ audience: "learner",
1208
+ solutionBearing: false
1209
+ }
1210
+ ],
1211
+ goals: [
1212
+ {
1213
+ id: "robot-maze-dash-m1-starts",
1214
+ statement: "The visual program is structurally valid and starts.",
1215
+ visibility: "visible",
1216
+ criterionIds: ["robot-maze-dash-build"],
1217
+ completionRequired: true,
1218
+ aiRequired: false
1219
+ },
1220
+ {
1221
+ id: "robot-maze-dash-m1-reaches-beacon",
1222
+ statement: "The robot follows the action order and reaches the rescue beacon.",
1223
+ visibility: "visible",
1224
+ criterionIds: [
1225
+ "robot-maze-dash-goal-one",
1226
+ "robot-maze-dash-goal-two"
1227
+ ],
1228
+ completionRequired: true,
1229
+ aiRequired: false
1230
+ },
1231
+ {
1232
+ id: "robot-maze-dash-m1-safe-preview",
1233
+ statement: "The robot stays inside the private maze simulator boundary.",
1234
+ visibility: "visible",
1235
+ criterionIds: ["robot-maze-dash-safety"],
1236
+ completionRequired: true,
1237
+ aiRequired: false
1238
+ }
1239
+ ],
1240
+ interactions: [
1241
+ {
1242
+ id: "robot-maze-dash-m1-reorder-blocks",
1243
+ description: "Change the order of visual action blocks.",
1244
+ primaryMode: "drag",
1245
+ alternativeIds: ["robot-maze-dash-m1-button-reorder"]
1246
+ },
1247
+ {
1248
+ id: "robot-maze-dash-m1-run-control",
1249
+ description: "Start the private maze simulation.",
1250
+ primaryMode: "pointer",
1251
+ alternativeIds: ["robot-maze-dash-m1-keyboard-run"]
1252
+ }
1253
+ ],
1254
+ accessibilityAlternatives: [
1255
+ {
1256
+ id: "robot-maze-dash-m1-button-reorder",
1257
+ modes: ["keyboard", "pointer"],
1258
+ equivalentOutcome: true,
1259
+ description: "Use labelled Move up and Move down buttons instead of dragging a block."
1260
+ },
1261
+ {
1262
+ id: "robot-maze-dash-m1-keyboard-run",
1263
+ modes: ["keyboard"],
1264
+ equivalentOutcome: true,
1265
+ description: "Start the same simulation by pressing Enter or Space on the Run button."
1266
+ }
1267
+ ],
1268
+ evidenceRequirements: [
1269
+ {
1270
+ id: "robot-maze-dash-m1-assessment",
1271
+ goalIds: [
1272
+ "robot-maze-dash-m1-starts",
1273
+ "robot-maze-dash-m1-reaches-beacon",
1274
+ "robot-maze-dash-m1-safe-preview"
1275
+ ],
1276
+ kind: "assessment-result",
1277
+ retention: "entitlement",
1278
+ containsPersonalData: false
1279
+ },
1280
+ {
1281
+ id: "robot-maze-dash-m1-explanation",
1282
+ goalIds: ["robot-maze-dash-m1-reaches-beacon"],
1283
+ kind: "learner-explanation",
1284
+ retention: "attempt",
1285
+ containsPersonalData: false
1286
+ }
1287
+ ],
1288
+ sideAdventures: [
1289
+ {
1290
+ id: "robot-maze-dash-m1-remix",
1291
+ prompt: "Invent a different safe route and describe which action block must change first.",
1292
+ completionRequired: false
1293
+ }
1294
+ ],
1295
+ rewardBindings: [
1296
+ {
1297
+ id: "robot-maze-dash-m1-badge",
1298
+ badgeId: "robot-maze-dash-mission-complete",
1299
+ goalIds: [
1300
+ "robot-maze-dash-m1-starts",
1301
+ "robot-maze-dash-m1-reaches-beacon",
1302
+ "robot-maze-dash-m1-safe-preview"
1303
+ ],
1304
+ deterministic: true,
1305
+ random: false,
1306
+ tokenConvertible: false
1307
+ }
1308
+ ]
1309
+ },
1310
+ facilitator: {
1311
+ artifacts: [
1312
+ {
1313
+ id: "robot-maze-dash-m1-answer-key",
1314
+ kind: "answer-key",
1315
+ audience: "facilitator",
1316
+ solutionBearing: true
1317
+ },
1318
+ {
1319
+ id: "robot-maze-dash-m1-protected-tests",
1320
+ kind: "protected-test",
1321
+ audience: "facilitator",
1322
+ solutionBearing: true
1323
+ }
1324
+ ],
1325
+ protectedGoals: [
1326
+ {
1327
+ id: "robot-maze-dash-m1-protected-bounds",
1328
+ statement: "The interpreter stops safely at walls, bounds and its action limit.",
1329
+ visibility: "protected",
1330
+ criterionIds: [
1331
+ "robot-maze-dash-edge-one",
1332
+ "robot-maze-dash-edge-two"
1333
+ ],
1334
+ completionRequired: false,
1335
+ aiRequired: false
1336
+ }
1337
+ ],
1338
+ prompts: [
1339
+ "Ask the learner to point to the first action block before suggesting a change.",
1340
+ "Use the command reference and visible goal; never reveal the protected route or expected block list."
1341
+ ]
1342
+ }
1343
+ };
1129
1344
  var ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1 = {
1130
1345
  version: MISSION_AUTHORING_CONTRACT_VERSION_V1,
1131
1346
  moduleId: "junior-coder.road-hopper-rally",
@@ -1482,6 +1697,7 @@ ${summary}`);
1482
1697
  JUNIOR_CODER_ROBOT_RESCUE_PATH_V1_1,
1483
1698
  MISSION_AUTHORING_CONTRACT_VERSION_V1,
1484
1699
  ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1,
1700
+ ROBOT_MAZE_DASH_MISSION_ONE_AUTHORING_V1,
1485
1701
  assertValidLearningPath,
1486
1702
  assertValidMissionAuthoringBundle,
1487
1703
  calculateAssessment,