@plasius/learning 0.2.5 → 0.2.6
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 +16 -1
- package/dist/index.cjs +228 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +227 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,6 +65,7 @@ import {
|
|
|
65
65
|
JUNIOR_CODER_ROBOT_RESCUE_PATH_V1_1,
|
|
66
66
|
METEOR_SHIELD_MISSION_ONE_AUTHORING_V1,
|
|
67
67
|
PADDLE_PULSE_MISSION_ONE_AUTHORING_V1,
|
|
68
|
+
RESCUE_CREW_COMMANDER_MISSION_ONE_AUTHORING_V1,
|
|
68
69
|
ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1,
|
|
69
70
|
ROBOT_MAZE_DASH_MISSION_ONE_AUTHORING_V1,
|
|
70
71
|
SKYWING_SPRINT_MISSION_ONE_AUTHORING_V1,
|
|
@@ -86,8 +87,18 @@ const paddlePulse = JUNIOR_CODER_ROBOT_RESCUE_PATH_V1_1.modules.find(
|
|
|
86
87
|
const meteorShield = JUNIOR_CODER_ROBOT_RESCUE_PATH_V1_1.modules.find(
|
|
87
88
|
(module) => module.slug === "meteor-shield",
|
|
88
89
|
);
|
|
90
|
+
const rescueCrewCommander = JUNIOR_CODER_ROBOT_RESCUE_PATH_V1_1.modules.find(
|
|
91
|
+
(module) => module.slug === "rescue-crew-commander",
|
|
92
|
+
);
|
|
89
93
|
|
|
90
|
-
if (
|
|
94
|
+
if (
|
|
95
|
+
!roadHopper ||
|
|
96
|
+
!robotMaze ||
|
|
97
|
+
!skywing ||
|
|
98
|
+
!paddlePulse ||
|
|
99
|
+
!meteorShield ||
|
|
100
|
+
!rescueCrewCommander
|
|
101
|
+
) {
|
|
91
102
|
throw new Error("Junior Coder module is missing");
|
|
92
103
|
}
|
|
93
104
|
|
|
@@ -111,6 +122,10 @@ assertValidMissionAuthoringBundle(
|
|
|
111
122
|
METEOR_SHIELD_MISSION_ONE_AUTHORING_V1,
|
|
112
123
|
meteorShield,
|
|
113
124
|
);
|
|
125
|
+
assertValidMissionAuthoringBundle(
|
|
126
|
+
RESCUE_CREW_COMMANDER_MISSION_ONE_AUTHORING_V1,
|
|
127
|
+
rescueCrewCommander,
|
|
128
|
+
);
|
|
114
129
|
```
|
|
115
130
|
|
|
116
131
|
## Contract rules
|
package/dist/index.cjs
CHANGED
|
@@ -28,6 +28,7 @@ __export(index_exports, {
|
|
|
28
28
|
METEOR_SHIELD_MISSION_ONE_AUTHORING_V1: () => METEOR_SHIELD_MISSION_ONE_AUTHORING_V1,
|
|
29
29
|
MISSION_AUTHORING_CONTRACT_VERSION_V1: () => MISSION_AUTHORING_CONTRACT_VERSION_V1,
|
|
30
30
|
PADDLE_PULSE_MISSION_ONE_AUTHORING_V1: () => PADDLE_PULSE_MISSION_ONE_AUTHORING_V1,
|
|
31
|
+
RESCUE_CREW_COMMANDER_MISSION_ONE_AUTHORING_V1: () => RESCUE_CREW_COMMANDER_MISSION_ONE_AUTHORING_V1,
|
|
31
32
|
ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1: () => ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1,
|
|
32
33
|
ROBOT_MAZE_DASH_MISSION_ONE_AUTHORING_V1: () => ROBOT_MAZE_DASH_MISSION_ONE_AUTHORING_V1,
|
|
33
34
|
SKYWING_SPRINT_MISSION_ONE_AUTHORING_V1: () => SKYWING_SPRINT_MISSION_ONE_AUTHORING_V1,
|
|
@@ -1784,6 +1785,232 @@ var PADDLE_PULSE_MISSION_ONE_AUTHORING_V1 = {
|
|
|
1784
1785
|
]
|
|
1785
1786
|
}
|
|
1786
1787
|
};
|
|
1788
|
+
var RESCUE_CREW_COMMANDER_MISSION_ONE_AUTHORING_V1 = {
|
|
1789
|
+
version: MISSION_AUTHORING_CONTRACT_VERSION_V1,
|
|
1790
|
+
moduleId: "junior-coder.rescue-crew-commander",
|
|
1791
|
+
moduleVersion: "1.1.0",
|
|
1792
|
+
missionId: "rescue-crew-commander-mission-1",
|
|
1793
|
+
learner: {
|
|
1794
|
+
estimatedMinutes: 20,
|
|
1795
|
+
stages: [
|
|
1796
|
+
{
|
|
1797
|
+
kind: "learn",
|
|
1798
|
+
instruction: "Meet the helper, job, route and priority blocks and read what each block does in the synchronized JavaScript view.",
|
|
1799
|
+
artifactIds: ["rescue-crew-commander-m1-art"]
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
kind: "predict",
|
|
1803
|
+
instruction: "Predict which helper will act first and which safe route it will follow.",
|
|
1804
|
+
artifactIds: []
|
|
1805
|
+
},
|
|
1806
|
+
{
|
|
1807
|
+
kind: "build",
|
|
1808
|
+
instruction: "Arrange the visual blocks to give each helper one safe rescue job.",
|
|
1809
|
+
artifactIds: ["rescue-crew-commander-m1-program"]
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
kind: "run",
|
|
1813
|
+
instruction: "Use the Run action button to watch the crew follow the typed visual program.",
|
|
1814
|
+
artifactIds: ["rescue-crew-commander-m1-program"]
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
kind: "assess",
|
|
1818
|
+
instruction: "Run the visible and protected deterministic crew checks.",
|
|
1819
|
+
artifactIds: []
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
kind: "inspect",
|
|
1823
|
+
instruction: "Compare the highlighted block with the first goal that did not pass and inspect the matching JavaScript line.",
|
|
1824
|
+
artifactIds: []
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
kind: "fix",
|
|
1828
|
+
instruction: "Move or replace one job, route or priority block, then run the mission again.",
|
|
1829
|
+
artifactIds: ["rescue-crew-commander-m1-program"]
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
kind: "explain",
|
|
1833
|
+
instruction: "Explain how job order and priority changed the crew state and rescue result.",
|
|
1834
|
+
artifactIds: []
|
|
1835
|
+
},
|
|
1836
|
+
{
|
|
1837
|
+
kind: "reward",
|
|
1838
|
+
instruction: "Collect the evidence-bound badge when the score and private-simulator safety check pass.",
|
|
1839
|
+
artifactIds: []
|
|
1840
|
+
}
|
|
1841
|
+
],
|
|
1842
|
+
readinessChecks: [
|
|
1843
|
+
{
|
|
1844
|
+
id: "rescue-crew-commander-m1-find-priority",
|
|
1845
|
+
prompt: "Point to the block that decides which helper acts first.",
|
|
1846
|
+
scored: false
|
|
1847
|
+
}
|
|
1848
|
+
],
|
|
1849
|
+
artifacts: [
|
|
1850
|
+
{
|
|
1851
|
+
id: "rescue-crew-commander-m1-program",
|
|
1852
|
+
kind: "starter-code",
|
|
1853
|
+
audience: "learner",
|
|
1854
|
+
solutionBearing: false
|
|
1855
|
+
},
|
|
1856
|
+
{
|
|
1857
|
+
id: "rescue-crew-commander-m1-art",
|
|
1858
|
+
kind: "starter-assets",
|
|
1859
|
+
audience: "learner",
|
|
1860
|
+
solutionBearing: false
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
id: "rescue-crew-commander-m1-printable",
|
|
1864
|
+
kind: "printable",
|
|
1865
|
+
audience: "learner",
|
|
1866
|
+
solutionBearing: false
|
|
1867
|
+
}
|
|
1868
|
+
],
|
|
1869
|
+
goals: [
|
|
1870
|
+
{
|
|
1871
|
+
id: "rescue-crew-commander-m1-starts",
|
|
1872
|
+
statement: "The typed visual program is structurally valid and starts.",
|
|
1873
|
+
visibility: "visible",
|
|
1874
|
+
criterionIds: ["rescue-crew-commander-build"],
|
|
1875
|
+
completionRequired: true,
|
|
1876
|
+
aiRequired: false
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
id: "rescue-crew-commander-m1-safe-jobs",
|
|
1880
|
+
statement: "Every helper receives one suitable job and the highest-priority rescue starts first.",
|
|
1881
|
+
visibility: "visible",
|
|
1882
|
+
criterionIds: [
|
|
1883
|
+
"rescue-crew-commander-goal-one",
|
|
1884
|
+
"rescue-crew-commander-goal-two"
|
|
1885
|
+
],
|
|
1886
|
+
completionRequired: true,
|
|
1887
|
+
aiRequired: false
|
|
1888
|
+
},
|
|
1889
|
+
{
|
|
1890
|
+
id: "rescue-crew-commander-m1-private-runtime",
|
|
1891
|
+
statement: "The crew stays inside the private simulator and follows only host-provided actions.",
|
|
1892
|
+
visibility: "visible",
|
|
1893
|
+
criterionIds: ["rescue-crew-commander-safety"],
|
|
1894
|
+
completionRequired: true,
|
|
1895
|
+
aiRequired: false
|
|
1896
|
+
}
|
|
1897
|
+
],
|
|
1898
|
+
interactions: [
|
|
1899
|
+
{
|
|
1900
|
+
id: "rescue-crew-commander-m1-reorder-blocks",
|
|
1901
|
+
description: "Change the order of typed job, route and priority blocks.",
|
|
1902
|
+
primaryMode: "drag",
|
|
1903
|
+
alternativeIds: ["rescue-crew-commander-m1-button-reorder"]
|
|
1904
|
+
},
|
|
1905
|
+
{
|
|
1906
|
+
id: "rescue-crew-commander-m1-run-control",
|
|
1907
|
+
description: "Start the private rescue-crew simulation.",
|
|
1908
|
+
primaryMode: "pointer",
|
|
1909
|
+
alternativeIds: ["rescue-crew-commander-m1-keyboard-run"]
|
|
1910
|
+
},
|
|
1911
|
+
{
|
|
1912
|
+
id: "rescue-crew-commander-m1-crew-motion",
|
|
1913
|
+
description: "Observe helpers change state and follow their assigned routes.",
|
|
1914
|
+
primaryMode: "motion",
|
|
1915
|
+
alternativeIds: ["rescue-crew-commander-m1-status-view"]
|
|
1916
|
+
}
|
|
1917
|
+
],
|
|
1918
|
+
accessibilityAlternatives: [
|
|
1919
|
+
{
|
|
1920
|
+
id: "rescue-crew-commander-m1-button-reorder",
|
|
1921
|
+
modes: ["keyboard", "pointer"],
|
|
1922
|
+
equivalentOutcome: true,
|
|
1923
|
+
description: "Use labelled Move up and Move down buttons instead of dragging a visual block."
|
|
1924
|
+
},
|
|
1925
|
+
{
|
|
1926
|
+
id: "rescue-crew-commander-m1-keyboard-run",
|
|
1927
|
+
modes: ["keyboard"],
|
|
1928
|
+
equivalentOutcome: true,
|
|
1929
|
+
description: "Press Enter or Space on the play-icon Run button to start the same preview."
|
|
1930
|
+
},
|
|
1931
|
+
{
|
|
1932
|
+
id: "rescue-crew-commander-m1-status-view",
|
|
1933
|
+
modes: ["text", "symbol", "reduced-motion"],
|
|
1934
|
+
equivalentOutcome: true,
|
|
1935
|
+
description: "Read each helper's job, route, priority and state from the status list without animation or colour dependence."
|
|
1936
|
+
}
|
|
1937
|
+
],
|
|
1938
|
+
evidenceRequirements: [
|
|
1939
|
+
{
|
|
1940
|
+
id: "rescue-crew-commander-m1-assessment",
|
|
1941
|
+
goalIds: [
|
|
1942
|
+
"rescue-crew-commander-m1-starts",
|
|
1943
|
+
"rescue-crew-commander-m1-safe-jobs",
|
|
1944
|
+
"rescue-crew-commander-m1-private-runtime"
|
|
1945
|
+
],
|
|
1946
|
+
kind: "assessment-result",
|
|
1947
|
+
retention: "entitlement",
|
|
1948
|
+
containsPersonalData: false
|
|
1949
|
+
},
|
|
1950
|
+
{
|
|
1951
|
+
id: "rescue-crew-commander-m1-explanation",
|
|
1952
|
+
goalIds: ["rescue-crew-commander-m1-safe-jobs"],
|
|
1953
|
+
kind: "learner-explanation",
|
|
1954
|
+
retention: "attempt",
|
|
1955
|
+
containsPersonalData: false
|
|
1956
|
+
}
|
|
1957
|
+
],
|
|
1958
|
+
sideAdventures: [
|
|
1959
|
+
{
|
|
1960
|
+
id: "rescue-crew-commander-m1-remix",
|
|
1961
|
+
prompt: "Invent an original helper role and explain which safe route and priority it should receive.",
|
|
1962
|
+
completionRequired: false
|
|
1963
|
+
}
|
|
1964
|
+
],
|
|
1965
|
+
rewardBindings: [
|
|
1966
|
+
{
|
|
1967
|
+
id: "rescue-crew-commander-m1-badge",
|
|
1968
|
+
badgeId: "rescue-crew-commander-mission-complete",
|
|
1969
|
+
goalIds: [
|
|
1970
|
+
"rescue-crew-commander-m1-starts",
|
|
1971
|
+
"rescue-crew-commander-m1-safe-jobs",
|
|
1972
|
+
"rescue-crew-commander-m1-private-runtime"
|
|
1973
|
+
],
|
|
1974
|
+
deterministic: true,
|
|
1975
|
+
random: false,
|
|
1976
|
+
tokenConvertible: false
|
|
1977
|
+
}
|
|
1978
|
+
]
|
|
1979
|
+
},
|
|
1980
|
+
facilitator: {
|
|
1981
|
+
artifacts: [
|
|
1982
|
+
{
|
|
1983
|
+
id: "rescue-crew-commander-m1-answer-key",
|
|
1984
|
+
kind: "answer-key",
|
|
1985
|
+
audience: "facilitator",
|
|
1986
|
+
solutionBearing: true
|
|
1987
|
+
},
|
|
1988
|
+
{
|
|
1989
|
+
id: "rescue-crew-commander-m1-protected-tests",
|
|
1990
|
+
kind: "protected-test",
|
|
1991
|
+
audience: "facilitator",
|
|
1992
|
+
solutionBearing: true
|
|
1993
|
+
}
|
|
1994
|
+
],
|
|
1995
|
+
protectedGoals: [
|
|
1996
|
+
{
|
|
1997
|
+
id: "rescue-crew-commander-m1-protected-resilience",
|
|
1998
|
+
statement: "The interpreter rejects unknown blocks, duplicate assignments and programs over the action limit.",
|
|
1999
|
+
visibility: "protected",
|
|
2000
|
+
criterionIds: [
|
|
2001
|
+
"rescue-crew-commander-edge-one",
|
|
2002
|
+
"rescue-crew-commander-edge-two"
|
|
2003
|
+
],
|
|
2004
|
+
completionRequired: false,
|
|
2005
|
+
aiRequired: false
|
|
2006
|
+
}
|
|
2007
|
+
],
|
|
2008
|
+
prompts: [
|
|
2009
|
+
"Ask the learner which helper should act first before suggesting a block change.",
|
|
2010
|
+
"Use the block reference, status list and visible goal; never reveal the protected assignment order or expected block sequence."
|
|
2011
|
+
]
|
|
2012
|
+
}
|
|
2013
|
+
};
|
|
1787
2014
|
var METEOR_SHIELD_MISSION_ONE_AUTHORING_V1 = {
|
|
1788
2015
|
version: MISSION_AUTHORING_CONTRACT_VERSION_V1,
|
|
1789
2016
|
moduleId: "junior-coder.meteor-shield",
|
|
@@ -2361,6 +2588,7 @@ ${summary}`);
|
|
|
2361
2588
|
METEOR_SHIELD_MISSION_ONE_AUTHORING_V1,
|
|
2362
2589
|
MISSION_AUTHORING_CONTRACT_VERSION_V1,
|
|
2363
2590
|
PADDLE_PULSE_MISSION_ONE_AUTHORING_V1,
|
|
2591
|
+
RESCUE_CREW_COMMANDER_MISSION_ONE_AUTHORING_V1,
|
|
2364
2592
|
ROAD_HOPPER_RALLY_MISSION_ONE_AUTHORING_V1,
|
|
2365
2593
|
ROBOT_MAZE_DASH_MISSION_ONE_AUTHORING_V1,
|
|
2366
2594
|
SKYWING_SPRINT_MISSION_ONE_AUTHORING_V1,
|