@plasius/learning 0.2.25 → 0.3.0
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 +25 -0
- package/dist/index.cjs +726 -467
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +149 -1
- package/dist/index.d.ts +149 -1
- package/dist/index.js +713 -467
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,6 +42,31 @@ exact `PADDLE_PULSE_MODULE_V2` export, schema `2` and canonical SHA-256 digest
|
|
|
42
42
|
without importing the package. Paddle Pulse `1.1.0` and its mission-authoring
|
|
43
43
|
export remain available unchanged.
|
|
44
44
|
|
|
45
|
+
## Complete course and account-save contracts
|
|
46
|
+
|
|
47
|
+
`LearningCourseV1` defines six missions with nine activities each, editable project
|
|
48
|
+
files, learner guidance and a capstone assessment identifier. Use
|
|
49
|
+
`validateLearningCourse` or `parseLearningCourse` for publication and loading.
|
|
50
|
+
Structural validity is only one acceptance gate; authored content, working runtime
|
|
51
|
+
and learner-journey evidence must also be verified for each course.
|
|
52
|
+
|
|
53
|
+
`parseLearningCourseDraft` accepts only the declared project files, content version
|
|
54
|
+
and navigation. It rejects account identifiers, scores, completion and evidence.
|
|
55
|
+
`parseLearningSaveSlotId` accepts `auto` and manual slots `1`–`9`. Source limits are
|
|
56
|
+
64,000 characters per file and 96,000 total across at most eight declared files.
|
|
57
|
+
|
|
58
|
+
The pure progression functions `createLearningCourseProgress`,
|
|
59
|
+
`completeVerifiedLearningActivity`, `recordLearningCourseAssessment`,
|
|
60
|
+
`parseLearningCourseProgress` and `resolveLearningCourseStage` support host-owned
|
|
61
|
+
state. They are **not browser mutation DTOs**. Hosts validate each activity, run
|
|
62
|
+
protected deterministic checks, bind source digests and references to the signed-in
|
|
63
|
+
account, and supply conditional/idempotent storage. Repair/reward need passing
|
|
64
|
+
current-source evidence; completion additionally needs a passing capstone after
|
|
65
|
+
all six missions. Loading a project cannot restore or manufacture progress.
|
|
66
|
+
|
|
67
|
+
These contracts do not supply the seventeen full course implementations, execute
|
|
68
|
+
learner code, save records or grant access. See [ADR 0009](docs/adrs/adr-0009-complete-course-project-and-progress-contracts.md).
|
|
69
|
+
|
|
45
70
|
## Install
|
|
46
71
|
|
|
47
72
|
```bash
|