@plasius/learning 0.2.3 → 0.2.4
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 +9 -1
- package/dist/index.cjs +222 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +221 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -63,6 +63,7 @@ the exact catalog module that owns its rubric, mission and badges.
|
|
|
63
63
|
```ts
|
|
64
64
|
import {
|
|
65
65
|
JUNIOR_CODER_ROBOT_RESCUE_PATH_V1_1,
|
|
66
|
+
PADDLE_PULSE_MISSION_ONE_AUTHORING_V1,
|
|
66
67
|
ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1,
|
|
67
68
|
ROBOT_MAZE_DASH_MISSION_ONE_AUTHORING_V1,
|
|
68
69
|
SKYWING_SPRINT_MISSION_ONE_AUTHORING_V1,
|
|
@@ -78,8 +79,11 @@ const robotMaze = JUNIOR_CODER_ROBOT_RESCUE_PATH_V1_1.modules.find(
|
|
|
78
79
|
const skywing = JUNIOR_CODER_ROBOT_RESCUE_PATH_V1_1.modules.find(
|
|
79
80
|
(module) => module.slug === "skywing-sprint",
|
|
80
81
|
);
|
|
82
|
+
const paddlePulse = JUNIOR_CODER_ROBOT_RESCUE_PATH_V1_1.modules.find(
|
|
83
|
+
(module) => module.slug === "paddle-pulse",
|
|
84
|
+
);
|
|
81
85
|
|
|
82
|
-
if (!roadHopper || !robotMaze || !skywing) {
|
|
86
|
+
if (!roadHopper || !robotMaze || !skywing || !paddlePulse) {
|
|
83
87
|
throw new Error("Junior Coder module is missing");
|
|
84
88
|
}
|
|
85
89
|
|
|
@@ -95,6 +99,10 @@ assertValidMissionAuthoringBundle(
|
|
|
95
99
|
SKYWING_SPRINT_MISSION_ONE_AUTHORING_V1,
|
|
96
100
|
skywing,
|
|
97
101
|
);
|
|
102
|
+
assertValidMissionAuthoringBundle(
|
|
103
|
+
PADDLE_PULSE_MISSION_ONE_AUTHORING_V1,
|
|
104
|
+
paddlePulse,
|
|
105
|
+
);
|
|
98
106
|
```
|
|
99
107
|
|
|
100
108
|
## Contract rules
|
package/dist/index.cjs
CHANGED
|
@@ -26,6 +26,7 @@ __export(index_exports, {
|
|
|
26
26
|
JUNIOR_CODER_ROBOT_RESCUE_PATH_V1: () => JUNIOR_CODER_ROBOT_RESCUE_PATH_V1,
|
|
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
|
+
PADDLE_PULSE_MISSION_ONE_AUTHORING_V1: () => PADDLE_PULSE_MISSION_ONE_AUTHORING_V1,
|
|
29
30
|
ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1: () => ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1,
|
|
30
31
|
ROBOT_MAZE_DASH_MISSION_ONE_AUTHORING_V1: () => ROBOT_MAZE_DASH_MISSION_ONE_AUTHORING_V1,
|
|
31
32
|
SKYWING_SPRINT_MISSION_ONE_AUTHORING_V1: () => SKYWING_SPRINT_MISSION_ONE_AUTHORING_V1,
|
|
@@ -1562,6 +1563,226 @@ var SKYWING_SPRINT_MISSION_ONE_AUTHORING_V1 = {
|
|
|
1562
1563
|
]
|
|
1563
1564
|
}
|
|
1564
1565
|
};
|
|
1566
|
+
var PADDLE_PULSE_MISSION_ONE_AUTHORING_V1 = {
|
|
1567
|
+
version: MISSION_AUTHORING_CONTRACT_VERSION_V1,
|
|
1568
|
+
moduleId: "junior-coder.paddle-pulse",
|
|
1569
|
+
moduleVersion: "1.1.0",
|
|
1570
|
+
missionId: "paddle-pulse-mission-1",
|
|
1571
|
+
learner: {
|
|
1572
|
+
estimatedMinutes: 20,
|
|
1573
|
+
stages: [
|
|
1574
|
+
{
|
|
1575
|
+
kind: "learn",
|
|
1576
|
+
instruction: "Read how paddle width, ball speed and bounce angle change an energy-ball rally.",
|
|
1577
|
+
artifactIds: ["paddle-pulse-m1-art"]
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
kind: "predict",
|
|
1581
|
+
instruction: "Predict which direction the energy ball will travel after it reaches the paddle.",
|
|
1582
|
+
artifactIds: []
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
kind: "build",
|
|
1586
|
+
instruction: "Adjust the three documented settings in the starter JavaScript.",
|
|
1587
|
+
artifactIds: ["paddle-pulse-m1-code"]
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
kind: "run",
|
|
1591
|
+
instruction: "Use the Run action button to start the private energy-court preview.",
|
|
1592
|
+
artifactIds: ["paddle-pulse-m1-code"]
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
kind: "assess",
|
|
1596
|
+
instruction: "Run the visible and protected deterministic rally checks.",
|
|
1597
|
+
artifactIds: []
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
kind: "inspect",
|
|
1601
|
+
instruction: "Compare the highlighted setting with the first goal that did not pass.",
|
|
1602
|
+
artifactIds: []
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
kind: "fix",
|
|
1606
|
+
instruction: "Change one setting, run again and observe the bounce telemetry.",
|
|
1607
|
+
artifactIds: ["paddle-pulse-m1-code"]
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
kind: "explain",
|
|
1611
|
+
instruction: "Explain how paddle width and bounce angle changed the energy ball path.",
|
|
1612
|
+
artifactIds: []
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
kind: "reward",
|
|
1616
|
+
instruction: "Collect the evidence-bound badge when the score and safety check pass.",
|
|
1617
|
+
artifactIds: []
|
|
1618
|
+
}
|
|
1619
|
+
],
|
|
1620
|
+
readinessChecks: [
|
|
1621
|
+
{
|
|
1622
|
+
id: "paddle-pulse-m1-find-angle",
|
|
1623
|
+
prompt: "Point to the setting that changes the direction of the bounce.",
|
|
1624
|
+
scored: false
|
|
1625
|
+
}
|
|
1626
|
+
],
|
|
1627
|
+
artifacts: [
|
|
1628
|
+
{
|
|
1629
|
+
id: "paddle-pulse-m1-code",
|
|
1630
|
+
kind: "starter-code",
|
|
1631
|
+
audience: "learner",
|
|
1632
|
+
solutionBearing: false
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
id: "paddle-pulse-m1-art",
|
|
1636
|
+
kind: "starter-assets",
|
|
1637
|
+
audience: "learner",
|
|
1638
|
+
solutionBearing: false
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
id: "paddle-pulse-m1-printable",
|
|
1642
|
+
kind: "printable",
|
|
1643
|
+
audience: "learner",
|
|
1644
|
+
solutionBearing: false
|
|
1645
|
+
}
|
|
1646
|
+
],
|
|
1647
|
+
goals: [
|
|
1648
|
+
{
|
|
1649
|
+
id: "paddle-pulse-m1-starts",
|
|
1650
|
+
statement: "The JavaScript settings are valid and the private preview starts.",
|
|
1651
|
+
visibility: "visible",
|
|
1652
|
+
criterionIds: ["paddle-pulse-build"],
|
|
1653
|
+
completionRequired: true,
|
|
1654
|
+
aiRequired: false
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
id: "paddle-pulse-m1-controlled-bounce",
|
|
1658
|
+
statement: "The paddle returns the energy ball toward the target wall with a controllable angle.",
|
|
1659
|
+
visibility: "visible",
|
|
1660
|
+
criterionIds: [
|
|
1661
|
+
"paddle-pulse-goal-one",
|
|
1662
|
+
"paddle-pulse-goal-two"
|
|
1663
|
+
],
|
|
1664
|
+
completionRequired: true,
|
|
1665
|
+
aiRequired: false
|
|
1666
|
+
},
|
|
1667
|
+
{
|
|
1668
|
+
id: "paddle-pulse-m1-private-runtime",
|
|
1669
|
+
statement: "The game stays inside the private educational preview boundary.",
|
|
1670
|
+
visibility: "visible",
|
|
1671
|
+
criterionIds: ["paddle-pulse-safety"],
|
|
1672
|
+
completionRequired: true,
|
|
1673
|
+
aiRequired: false
|
|
1674
|
+
}
|
|
1675
|
+
],
|
|
1676
|
+
interactions: [
|
|
1677
|
+
{
|
|
1678
|
+
id: "paddle-pulse-m1-run-control",
|
|
1679
|
+
description: "Start the private energy-court simulation.",
|
|
1680
|
+
primaryMode: "pointer",
|
|
1681
|
+
alternativeIds: ["paddle-pulse-m1-keyboard-run"]
|
|
1682
|
+
},
|
|
1683
|
+
{
|
|
1684
|
+
id: "paddle-pulse-m1-paddle-control",
|
|
1685
|
+
description: "Move the paddle left or right during practice.",
|
|
1686
|
+
primaryMode: "keyboard",
|
|
1687
|
+
alternativeIds: []
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
id: "paddle-pulse-m1-ball-motion",
|
|
1691
|
+
description: "Observe the energy ball moving and bouncing across the court.",
|
|
1692
|
+
primaryMode: "motion",
|
|
1693
|
+
alternativeIds: ["paddle-pulse-m1-telemetry"]
|
|
1694
|
+
}
|
|
1695
|
+
],
|
|
1696
|
+
accessibilityAlternatives: [
|
|
1697
|
+
{
|
|
1698
|
+
id: "paddle-pulse-m1-keyboard-run",
|
|
1699
|
+
modes: ["keyboard"],
|
|
1700
|
+
equivalentOutcome: true,
|
|
1701
|
+
description: "Press Enter or Space on the play-icon Run button to start the same preview."
|
|
1702
|
+
},
|
|
1703
|
+
{
|
|
1704
|
+
id: "paddle-pulse-m1-telemetry",
|
|
1705
|
+
modes: ["text", "reduced-motion"],
|
|
1706
|
+
equivalentOutcome: true,
|
|
1707
|
+
description: "Use position, direction and target-status text instead of ball animation."
|
|
1708
|
+
}
|
|
1709
|
+
],
|
|
1710
|
+
evidenceRequirements: [
|
|
1711
|
+
{
|
|
1712
|
+
id: "paddle-pulse-m1-assessment",
|
|
1713
|
+
goalIds: [
|
|
1714
|
+
"paddle-pulse-m1-starts",
|
|
1715
|
+
"paddle-pulse-m1-controlled-bounce",
|
|
1716
|
+
"paddle-pulse-m1-private-runtime"
|
|
1717
|
+
],
|
|
1718
|
+
kind: "assessment-result",
|
|
1719
|
+
retention: "entitlement",
|
|
1720
|
+
containsPersonalData: false
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
id: "paddle-pulse-m1-explanation",
|
|
1724
|
+
goalIds: ["paddle-pulse-m1-controlled-bounce"],
|
|
1725
|
+
kind: "learner-explanation",
|
|
1726
|
+
retention: "attempt",
|
|
1727
|
+
containsPersonalData: false
|
|
1728
|
+
}
|
|
1729
|
+
],
|
|
1730
|
+
sideAdventures: [
|
|
1731
|
+
{
|
|
1732
|
+
id: "paddle-pulse-m1-remix",
|
|
1733
|
+
prompt: "Invent an original energy power-up and describe one bounded setting it would change.",
|
|
1734
|
+
completionRequired: false
|
|
1735
|
+
}
|
|
1736
|
+
],
|
|
1737
|
+
rewardBindings: [
|
|
1738
|
+
{
|
|
1739
|
+
id: "paddle-pulse-m1-badge",
|
|
1740
|
+
badgeId: "paddle-pulse-mission-complete",
|
|
1741
|
+
goalIds: [
|
|
1742
|
+
"paddle-pulse-m1-starts",
|
|
1743
|
+
"paddle-pulse-m1-controlled-bounce",
|
|
1744
|
+
"paddle-pulse-m1-private-runtime"
|
|
1745
|
+
],
|
|
1746
|
+
deterministic: true,
|
|
1747
|
+
random: false,
|
|
1748
|
+
tokenConvertible: false
|
|
1749
|
+
}
|
|
1750
|
+
]
|
|
1751
|
+
},
|
|
1752
|
+
facilitator: {
|
|
1753
|
+
artifacts: [
|
|
1754
|
+
{
|
|
1755
|
+
id: "paddle-pulse-m1-answer-key",
|
|
1756
|
+
kind: "answer-key",
|
|
1757
|
+
audience: "facilitator",
|
|
1758
|
+
solutionBearing: true
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
id: "paddle-pulse-m1-protected-tests",
|
|
1762
|
+
kind: "protected-test",
|
|
1763
|
+
audience: "facilitator",
|
|
1764
|
+
solutionBearing: true
|
|
1765
|
+
}
|
|
1766
|
+
],
|
|
1767
|
+
protectedGoals: [
|
|
1768
|
+
{
|
|
1769
|
+
id: "paddle-pulse-m1-protected-resilience",
|
|
1770
|
+
statement: "The runtime clamps unsafe settings and terminates bounded collision simulations.",
|
|
1771
|
+
visibility: "protected",
|
|
1772
|
+
criterionIds: [
|
|
1773
|
+
"paddle-pulse-edge-one",
|
|
1774
|
+
"paddle-pulse-edge-two"
|
|
1775
|
+
],
|
|
1776
|
+
completionRequired: false,
|
|
1777
|
+
aiRequired: false
|
|
1778
|
+
}
|
|
1779
|
+
],
|
|
1780
|
+
prompts: [
|
|
1781
|
+
"Ask the learner which setting changes direction before suggesting a code edit.",
|
|
1782
|
+
"Use visible telemetry and the function reference; never reveal protected numeric targets or expected source fragments."
|
|
1783
|
+
]
|
|
1784
|
+
}
|
|
1785
|
+
};
|
|
1565
1786
|
var ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1 = {
|
|
1566
1787
|
version: MISSION_AUTHORING_CONTRACT_VERSION_V1,
|
|
1567
1788
|
moduleId: "junior-coder.road-hopper-rally",
|
|
@@ -1917,6 +2138,7 @@ ${summary}`);
|
|
|
1917
2138
|
JUNIOR_CODER_ROBOT_RESCUE_PATH_V1,
|
|
1918
2139
|
JUNIOR_CODER_ROBOT_RESCUE_PATH_V1_1,
|
|
1919
2140
|
MISSION_AUTHORING_CONTRACT_VERSION_V1,
|
|
2141
|
+
PADDLE_PULSE_MISSION_ONE_AUTHORING_V1,
|
|
1920
2142
|
ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1,
|
|
1921
2143
|
ROBOT_MAZE_DASH_MISSION_ONE_AUTHORING_V1,
|
|
1922
2144
|
SKYWING_SPRINT_MISSION_ONE_AUTHORING_V1,
|