@playcademy/vite-plugin 0.2.21 → 0.2.22-beta.1

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.
Files changed (3) hide show
  1. package/README.md +2 -3
  2. package/dist/index.js +33 -16
  3. package/package.json +4 -5
package/README.md CHANGED
@@ -375,11 +375,10 @@ cd packages/vite-plugin
375
375
 
376
376
  # Build the plugin
377
377
  bun run build
378
-
379
- # Publish to npm (requires permissions)
380
- bun run pub
381
378
  ```
382
379
 
380
+ Package releases are handled by the monorepo Changesets and CI release workflows rather than from this package directory.
381
+
383
382
  ## Dependencies
384
383
 
385
384
  ### Runtime Dependencies
package/dist/index.js CHANGED
@@ -25334,7 +25334,7 @@ var package_default;
25334
25334
  var init_package = __esm(() => {
25335
25335
  package_default = {
25336
25336
  name: "@playcademy/sandbox",
25337
- version: "0.3.15",
25337
+ version: "0.3.16-beta.1",
25338
25338
  description: "Local development server for Playcademy game development",
25339
25339
  type: "module",
25340
25340
  exports: {
@@ -25369,7 +25369,6 @@ var init_package = __esm(() => {
25369
25369
  build: "bun run build.ts",
25370
25370
  dev: "bun --watch src/cli",
25371
25371
  docs: "typedoc",
25372
- pub: "bun publish.ts",
25373
25372
  start: "bun src/cli"
25374
25373
  },
25375
25374
  dependencies: {
@@ -47681,7 +47680,7 @@ var init_provider2 = __esm(() => {
47681
47680
  init_provider();
47682
47681
  });
47683
47682
  var require_main2 = __commonJS2((exports, module2) => {
47684
- var __dirname2 = "/Users/hbauer/work/projects/playcademy/node_modules/.bun/esbuild@0.25.10/node_modules/esbuild/lib", __filename2 = "/Users/hbauer/work/projects/playcademy/node_modules/.bun/esbuild@0.25.10/node_modules/esbuild/lib/main.js";
47683
+ var __dirname2 = "/home/runner/work/playcademy/playcademy/node_modules/.bun/esbuild@0.25.10/node_modules/esbuild/lib", __filename2 = "/home/runner/work/playcademy/playcademy/node_modules/.bun/esbuild@0.25.10/node_modules/esbuild/lib/main.js";
47685
47684
  var __defProp22 = Object.defineProperty;
47686
47685
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
47687
47686
  var __getOwnPropNames22 = Object.getOwnPropertyNames;
@@ -54044,6 +54043,7 @@ class TimebackService {
54044
54043
  timingData,
54045
54044
  xpEarned,
54046
54045
  masteredUnits,
54046
+ extensions,
54047
54047
  user
54048
54048
  }) {
54049
54049
  const client = this.requireClient();
@@ -54063,6 +54063,7 @@ class TimebackService {
54063
54063
  sessionDurationSeconds: timingData.durationSeconds,
54064
54064
  xpEarned,
54065
54065
  masteredUnits,
54066
+ extensions,
54066
54067
  activityId: activityData.activityId,
54067
54068
  activityName: activityData.activityName,
54068
54069
  subject: activityData.subject,
@@ -118132,8 +118133,8 @@ var init_schemas11 = __esm(() => {
118132
118133
  activityData: exports_external.object({
118133
118134
  activityId: exports_external.string().min(1),
118134
118135
  activityName: exports_external.string().optional(),
118135
- grade: exports_external.number().int(),
118136
- subject: exports_external.string().min(1),
118136
+ grade: TimebackGradeSchema,
118137
+ subject: TimebackSubjectSchema,
118137
118138
  appName: exports_external.string().optional(),
118138
118139
  sensorUrl: exports_external.string().url().optional(),
118139
118140
  courseId: exports_external.string().optional(),
@@ -118148,7 +118149,8 @@ var init_schemas11 = __esm(() => {
118148
118149
  durationSeconds: exports_external.number().positive()
118149
118150
  }),
118150
118151
  xpEarned: exports_external.number().optional(),
118151
- masteredUnits: exports_external.number().nonnegative().optional()
118152
+ masteredUnits: exports_external.number().nonnegative().optional(),
118153
+ extensions: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
118152
118154
  });
118153
118155
  PopulateStudentRequestSchema = exports_external.object({
118154
118156
  firstName: exports_external.string().min(1).optional(),
@@ -119025,7 +119027,7 @@ var init_game_controller = __esm(() => {
119025
119027
  if (!isValidUUID(gameId)) {
119026
119028
  throw ApiError.unprocessableEntity("gameId must be a valid UUID format");
119027
119029
  }
119028
- logger45.debug("Getting game by ID", { userId: ctx.user.id, gameId });
119030
+ logger45.debug("Getting game by ID", { userId: ctx.user.id, gameId, launchId: ctx.launchId });
119029
119031
  return ctx.services.game.getById(gameId, ctx.user);
119030
119032
  });
119031
119033
  getBySlug = requireAuth(async (ctx) => {
@@ -119033,7 +119035,7 @@ var init_game_controller = __esm(() => {
119033
119035
  if (!slug2) {
119034
119036
  throw ApiError.badRequest("Missing game slug");
119035
119037
  }
119036
- logger45.debug("Getting game by slug", { userId: ctx.user.id, slug: slug2 });
119038
+ logger45.debug("Getting game by slug", { userId: ctx.user.id, slug: slug2, launchId: ctx.launchId });
119037
119039
  return ctx.services.game.getBySlug(slug2, ctx.user);
119038
119040
  });
119039
119041
  upsertBySlug = requireAuth(async (ctx) => {
@@ -119928,7 +119930,8 @@ var init_realtime_controller = __esm(() => {
119928
119930
  const gameIdOrSlug = ctx.params.gameId;
119929
119931
  logger55.debug("Generating token", {
119930
119932
  userId: ctx.user.id,
119931
- gameId: gameIdOrSlug || "global"
119933
+ gameId: gameIdOrSlug || "global",
119934
+ launchId: ctx.launchId
119932
119935
  });
119933
119936
  return ctx.services.realtime.generateToken(ctx.user, gameIdOrSlug);
119934
119937
  });
@@ -120051,7 +120054,7 @@ var init_session_controller = __esm(() => {
120051
120054
  if (!gameIdOrSlug) {
120052
120055
  throw ApiError.badRequest("Missing game ID or slug");
120053
120056
  }
120054
- logger58.debug("Starting session", { userId: ctx.user.id, gameIdOrSlug });
120057
+ logger58.debug("Starting session", { userId: ctx.user.id, gameIdOrSlug, launchId: ctx.launchId });
120055
120058
  return ctx.services.session.start(gameIdOrSlug, ctx.user.id);
120056
120059
  });
120057
120060
  end = requireAuth(async (ctx) => {
@@ -120063,7 +120066,12 @@ var init_session_controller = __esm(() => {
120063
120066
  if (!sessionId) {
120064
120067
  throw ApiError.badRequest("Missing session ID");
120065
120068
  }
120066
- logger58.debug("Ending session", { userId: ctx.user.id, gameIdOrSlug, sessionId });
120069
+ logger58.debug("Ending session", {
120070
+ userId: ctx.user.id,
120071
+ gameIdOrSlug,
120072
+ sessionId,
120073
+ launchId: ctx.launchId
120074
+ });
120067
120075
  return ctx.services.session.end(gameIdOrSlug, sessionId, ctx.user.id);
120068
120076
  });
120069
120077
  mintToken = requireAuth(async (ctx) => {
@@ -120071,7 +120079,7 @@ var init_session_controller = __esm(() => {
120071
120079
  if (!gameIdOrSlug) {
120072
120080
  throw ApiError.badRequest("Missing game ID or slug");
120073
120081
  }
120074
- logger58.debug("Minting token", { userId: ctx.user.id, gameIdOrSlug });
120082
+ logger58.debug("Minting token", { userId: ctx.user.id, gameIdOrSlug, launchId: ctx.launchId });
120075
120083
  return ctx.services.session.mintToken(gameIdOrSlug, ctx.user.id);
120076
120084
  });
120077
120085
  sessions2 = {
@@ -120496,7 +120504,16 @@ var init_timeback_controller = __esm(() => {
120496
120504
  }
120497
120505
  throw ApiError.badRequest("Invalid JSON body");
120498
120506
  }
120499
- const { gameId, studentId, activityData, scoreData, timingData, xpEarned, masteredUnits } = body2;
120507
+ const {
120508
+ gameId,
120509
+ studentId,
120510
+ activityData,
120511
+ scoreData,
120512
+ timingData,
120513
+ xpEarned,
120514
+ masteredUnits,
120515
+ extensions
120516
+ } = body2;
120500
120517
  logger62.debug("Ending activity", { userId: ctx.user.id, gameId });
120501
120518
  return ctx.services.timeback.endActivity({
120502
120519
  gameId,
@@ -120506,6 +120523,7 @@ var init_timeback_controller = __esm(() => {
120506
120523
  timingData,
120507
120524
  xpEarned,
120508
120525
  masteredUnits,
120526
+ extensions,
120509
120527
  user: ctx.user
120510
120528
  });
120511
120529
  });
@@ -123129,7 +123147,7 @@ var import_picocolors12 = __toESM(require_picocolors(), 1);
123129
123147
  // package.json
123130
123148
  var package_default2 = {
123131
123149
  name: "@playcademy/vite-plugin",
123132
- version: "0.2.21",
123150
+ version: "0.2.22-beta.1",
123133
123151
  type: "module",
123134
123152
  exports: {
123135
123153
  ".": {
@@ -123144,8 +123162,7 @@ var package_default2 = {
123144
123162
  ],
123145
123163
  scripts: {
123146
123164
  build: "bun build.ts",
123147
- docs: "typedoc --skipErrorChecking",
123148
- pub: "bun publish.ts"
123165
+ docs: "typedoc --skipErrorChecking"
123149
123166
  },
123150
123167
  dependencies: {
123151
123168
  archiver: "^7.0.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playcademy/vite-plugin",
3
- "version": "0.2.21",
3
+ "version": "0.2.22-beta.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -15,20 +15,19 @@
15
15
  ],
16
16
  "scripts": {
17
17
  "build": "bun build.ts",
18
- "docs": "typedoc --skipErrorChecking",
19
- "pub": "bun publish.ts"
18
+ "docs": "typedoc --skipErrorChecking"
20
19
  },
21
20
  "dependencies": {
22
21
  "archiver": "^7.0.1",
23
22
  "picocolors": "^1.1.1",
24
- "playcademy": "0.18.3"
23
+ "playcademy": "0.18.8"
25
24
  },
26
25
  "devDependencies": {
27
26
  "@electric-sql/pglite": "^0.3.16",
28
27
  "@inquirer/prompts": "^7.8.6",
29
28
  "@playcademy/constants": "0.0.1",
30
29
  "@playcademy/sandbox": "0.3.15",
31
- "@playcademy/sdk": "0.3.2",
30
+ "@playcademy/sdk": "0.3.5",
32
31
  "@playcademy/types": "0.0.1",
33
32
  "@playcademy/utils": "0.0.1",
34
33
  "@types/archiver": "^6.0.3",