@playcademy/sdk 0.18.1-beta.4 → 0.18.1-beta.5
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 +10 -6
- package/dist/index.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/server/edge.js +1 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -164,12 +164,16 @@ const committed = await client.timeback.assessments.submitItem(attempt.attemptId
|
|
|
164
164
|
// When routing is ready, submit the complete transcript, then finalize the award.
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
-
`start()`
|
|
168
|
-
review
|
|
169
|
-
|
|
170
|
-
`
|
|
171
|
-
|
|
172
|
-
|
|
167
|
+
`start()` opens a fresh attempt, selecting content for a fixed test, mastery quiz, or standards
|
|
168
|
+
review, and supersedes any attempt the student still had open in that activity. If an attempt is
|
|
169
|
+
still awaiting its award, `start()` returns that settled snapshot instead so it can be finalized. Store
|
|
170
|
+
the returned `attemptId` alongside your own session context and call `resume(attemptId)` to
|
|
171
|
+
continue it; calling `start()` again means "new session". Keep the raw `transcript` in storage
|
|
172
|
+
chosen by your game (renderer memory is sufficient for an uninterrupted attempt). The SDK does not
|
|
173
|
+
automatically store active drafts locally. `resume(attemptId, { transcript })` validates a supplied
|
|
174
|
+
draft; without one, resume uses the saved parent checkpoint, or best-effort child progress if no
|
|
175
|
+
checkpoint exists. Start and resume also issue an attempt-scoped `assessmentToken` using the
|
|
176
|
+
existing JWT infrastructure.
|
|
173
177
|
|
|
174
178
|
The returned `flow` is authoritative and is derived from the selected assessment; callers do not configure
|
|
175
179
|
navigation, feedback, and submission independently:
|
package/dist/index.js
CHANGED
|
@@ -3754,7 +3754,7 @@ async function request({
|
|
|
3754
3754
|
return rawText && rawText.length > 0 ? rawText : undefined;
|
|
3755
3755
|
}
|
|
3756
3756
|
// src/version.ts
|
|
3757
|
-
var SDK_VERSION = "0.18.1-beta.
|
|
3757
|
+
var SDK_VERSION = "0.18.1-beta.5";
|
|
3758
3758
|
|
|
3759
3759
|
// src/clients/base.ts
|
|
3760
3760
|
class PlaycademyBaseClient {
|
package/dist/internal.js
CHANGED
|
@@ -4646,7 +4646,7 @@ async function request({
|
|
|
4646
4646
|
return rawText && rawText.length > 0 ? rawText : undefined;
|
|
4647
4647
|
}
|
|
4648
4648
|
// src/version.ts
|
|
4649
|
-
var SDK_VERSION = "0.18.1-beta.
|
|
4649
|
+
var SDK_VERSION = "0.18.1-beta.5";
|
|
4650
4650
|
|
|
4651
4651
|
// src/clients/base.ts
|
|
4652
4652
|
class PlaycademyBaseClient {
|
package/dist/server/edge.js
CHANGED
package/dist/server.js
CHANGED