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

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 -17
  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.2",
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: {
@@ -25391,7 +25390,6 @@ var init_package = __esm(() => {
25391
25390
  "@playcademy/constants": "workspace:*",
25392
25391
  "@playcademy/data": "workspace:*",
25393
25392
  "@playcademy/logger": "workspace:*",
25394
- "@playcademy/sdk": "workspace:*",
25395
25393
  "@playcademy/timeback": "workspace:*",
25396
25394
  "@playcademy/types": "workspace:*",
25397
25395
  "@playcademy/utils": "workspace:*",
@@ -47681,7 +47679,7 @@ var init_provider2 = __esm(() => {
47681
47679
  init_provider();
47682
47680
  });
47683
47681
  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";
47682
+ 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
47683
  var __defProp22 = Object.defineProperty;
47686
47684
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
47687
47685
  var __getOwnPropNames22 = Object.getOwnPropertyNames;
@@ -54044,6 +54042,7 @@ class TimebackService {
54044
54042
  timingData,
54045
54043
  xpEarned,
54046
54044
  masteredUnits,
54045
+ extensions,
54047
54046
  user
54048
54047
  }) {
54049
54048
  const client = this.requireClient();
@@ -54063,6 +54062,7 @@ class TimebackService {
54063
54062
  sessionDurationSeconds: timingData.durationSeconds,
54064
54063
  xpEarned,
54065
54064
  masteredUnits,
54065
+ extensions,
54066
54066
  activityId: activityData.activityId,
54067
54067
  activityName: activityData.activityName,
54068
54068
  subject: activityData.subject,
@@ -118132,8 +118132,8 @@ var init_schemas11 = __esm(() => {
118132
118132
  activityData: exports_external.object({
118133
118133
  activityId: exports_external.string().min(1),
118134
118134
  activityName: exports_external.string().optional(),
118135
- grade: exports_external.number().int(),
118136
- subject: exports_external.string().min(1),
118135
+ grade: TimebackGradeSchema,
118136
+ subject: TimebackSubjectSchema,
118137
118137
  appName: exports_external.string().optional(),
118138
118138
  sensorUrl: exports_external.string().url().optional(),
118139
118139
  courseId: exports_external.string().optional(),
@@ -118148,7 +118148,8 @@ var init_schemas11 = __esm(() => {
118148
118148
  durationSeconds: exports_external.number().positive()
118149
118149
  }),
118150
118150
  xpEarned: exports_external.number().optional(),
118151
- masteredUnits: exports_external.number().nonnegative().optional()
118151
+ masteredUnits: exports_external.number().nonnegative().optional(),
118152
+ extensions: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
118152
118153
  });
118153
118154
  PopulateStudentRequestSchema = exports_external.object({
118154
118155
  firstName: exports_external.string().min(1).optional(),
@@ -119025,7 +119026,7 @@ var init_game_controller = __esm(() => {
119025
119026
  if (!isValidUUID(gameId)) {
119026
119027
  throw ApiError.unprocessableEntity("gameId must be a valid UUID format");
119027
119028
  }
119028
- logger45.debug("Getting game by ID", { userId: ctx.user.id, gameId });
119029
+ logger45.debug("Getting game by ID", { userId: ctx.user.id, gameId, launchId: ctx.launchId });
119029
119030
  return ctx.services.game.getById(gameId, ctx.user);
119030
119031
  });
119031
119032
  getBySlug = requireAuth(async (ctx) => {
@@ -119033,7 +119034,7 @@ var init_game_controller = __esm(() => {
119033
119034
  if (!slug2) {
119034
119035
  throw ApiError.badRequest("Missing game slug");
119035
119036
  }
119036
- logger45.debug("Getting game by slug", { userId: ctx.user.id, slug: slug2 });
119037
+ logger45.debug("Getting game by slug", { userId: ctx.user.id, slug: slug2, launchId: ctx.launchId });
119037
119038
  return ctx.services.game.getBySlug(slug2, ctx.user);
119038
119039
  });
119039
119040
  upsertBySlug = requireAuth(async (ctx) => {
@@ -119928,7 +119929,8 @@ var init_realtime_controller = __esm(() => {
119928
119929
  const gameIdOrSlug = ctx.params.gameId;
119929
119930
  logger55.debug("Generating token", {
119930
119931
  userId: ctx.user.id,
119931
- gameId: gameIdOrSlug || "global"
119932
+ gameId: gameIdOrSlug || "global",
119933
+ launchId: ctx.launchId
119932
119934
  });
119933
119935
  return ctx.services.realtime.generateToken(ctx.user, gameIdOrSlug);
119934
119936
  });
@@ -120051,7 +120053,7 @@ var init_session_controller = __esm(() => {
120051
120053
  if (!gameIdOrSlug) {
120052
120054
  throw ApiError.badRequest("Missing game ID or slug");
120053
120055
  }
120054
- logger58.debug("Starting session", { userId: ctx.user.id, gameIdOrSlug });
120056
+ logger58.debug("Starting session", { userId: ctx.user.id, gameIdOrSlug, launchId: ctx.launchId });
120055
120057
  return ctx.services.session.start(gameIdOrSlug, ctx.user.id);
120056
120058
  });
120057
120059
  end = requireAuth(async (ctx) => {
@@ -120063,7 +120065,12 @@ var init_session_controller = __esm(() => {
120063
120065
  if (!sessionId) {
120064
120066
  throw ApiError.badRequest("Missing session ID");
120065
120067
  }
120066
- logger58.debug("Ending session", { userId: ctx.user.id, gameIdOrSlug, sessionId });
120068
+ logger58.debug("Ending session", {
120069
+ userId: ctx.user.id,
120070
+ gameIdOrSlug,
120071
+ sessionId,
120072
+ launchId: ctx.launchId
120073
+ });
120067
120074
  return ctx.services.session.end(gameIdOrSlug, sessionId, ctx.user.id);
120068
120075
  });
120069
120076
  mintToken = requireAuth(async (ctx) => {
@@ -120071,7 +120078,7 @@ var init_session_controller = __esm(() => {
120071
120078
  if (!gameIdOrSlug) {
120072
120079
  throw ApiError.badRequest("Missing game ID or slug");
120073
120080
  }
120074
- logger58.debug("Minting token", { userId: ctx.user.id, gameIdOrSlug });
120081
+ logger58.debug("Minting token", { userId: ctx.user.id, gameIdOrSlug, launchId: ctx.launchId });
120075
120082
  return ctx.services.session.mintToken(gameIdOrSlug, ctx.user.id);
120076
120083
  });
120077
120084
  sessions2 = {
@@ -120496,7 +120503,16 @@ var init_timeback_controller = __esm(() => {
120496
120503
  }
120497
120504
  throw ApiError.badRequest("Invalid JSON body");
120498
120505
  }
120499
- const { gameId, studentId, activityData, scoreData, timingData, xpEarned, masteredUnits } = body2;
120506
+ const {
120507
+ gameId,
120508
+ studentId,
120509
+ activityData,
120510
+ scoreData,
120511
+ timingData,
120512
+ xpEarned,
120513
+ masteredUnits,
120514
+ extensions
120515
+ } = body2;
120500
120516
  logger62.debug("Ending activity", { userId: ctx.user.id, gameId });
120501
120517
  return ctx.services.timeback.endActivity({
120502
120518
  gameId,
@@ -120506,6 +120522,7 @@ var init_timeback_controller = __esm(() => {
120506
120522
  timingData,
120507
120523
  xpEarned,
120508
120524
  masteredUnits,
120525
+ extensions,
120509
120526
  user: ctx.user
120510
120527
  });
120511
120528
  });
@@ -123129,7 +123146,7 @@ var import_picocolors12 = __toESM(require_picocolors(), 1);
123129
123146
  // package.json
123130
123147
  var package_default2 = {
123131
123148
  name: "@playcademy/vite-plugin",
123132
- version: "0.2.21",
123149
+ version: "0.2.22-beta.2",
123133
123150
  type: "module",
123134
123151
  exports: {
123135
123152
  ".": {
@@ -123144,8 +123161,7 @@ var package_default2 = {
123144
123161
  ],
123145
123162
  scripts: {
123146
123163
  build: "bun build.ts",
123147
- docs: "typedoc --skipErrorChecking",
123148
- pub: "bun publish.ts"
123164
+ docs: "typedoc --skipErrorChecking"
123149
123165
  },
123150
123166
  dependencies: {
123151
123167
  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.2",
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",