@playcademy/sdk 0.18.1-beta.4 → 0.19.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 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()` resumes a compatible unfinished attempt or selects content for a fixed test or standards
168
- review. Keep the raw `transcript` in storage chosen by your game (renderer memory is sufficient for
169
- an uninterrupted attempt). The SDK does not automatically store active drafts locally.
170
- `resume(attemptId, { transcript })` validates a supplied draft; without one, resume uses the saved
171
- parent checkpoint, or best-effort child progress if no checkpoint exists. Start and resume also
172
- issue an attempt-scoped `assessmentToken` using the existing JWT infrastructure.
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.4";
3757
+ var SDK_VERSION = "0.19.0";
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.4";
4649
+ var SDK_VERSION = "0.19.0";
4650
4650
 
4651
4651
  // src/clients/base.ts
4652
4652
  class PlaycademyBaseClient {
@@ -337,7 +337,7 @@ function extractApiErrorInfo(error) {
337
337
  }
338
338
 
339
339
  // src/version.ts
340
- var SDK_VERSION = "0.18.1-beta.4";
340
+ var SDK_VERSION = "0.19.0";
341
341
 
342
342
  // src/server/request.ts
343
343
  async function makeApiRequest(opts) {
package/dist/server.js CHANGED
@@ -526,7 +526,7 @@ function extractApiErrorInfo(error) {
526
526
  }
527
527
 
528
528
  // src/version.ts
529
- var SDK_VERSION = "0.18.1-beta.4";
529
+ var SDK_VERSION = "0.19.0";
530
530
 
531
531
  // src/server/request.ts
532
532
  async function makeApiRequest(opts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playcademy/sdk",
3
- "version": "0.18.1-beta.4",
3
+ "version": "0.19.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {