playcademy 0.11.1 → 0.11.3

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/dist/utils.js CHANGED
@@ -702,6 +702,44 @@ var CONFIG_FILE_NAMES = [
702
702
  "playcademy.config.mjs"
703
703
  ];
704
704
 
705
+ // ../constants/src/overworld.ts
706
+ var ITEM_SLUGS = {
707
+ /** Primary platform currency */
708
+ PLAYCADEMY_CREDITS: "PLAYCADEMY_CREDITS",
709
+ /** Experience points currency */
710
+ PLAYCADEMY_XP: "PLAYCADEMY_XP",
711
+ /** Core platform badges */
712
+ FOUNDING_MEMBER_BADGE: "FOUNDING_MEMBER_BADGE",
713
+ EARLY_ADOPTER_BADGE: "EARLY_ADOPTER_BADGE",
714
+ FIRST_GAME_BADGE: "FIRST_GAME_BADGE",
715
+ /** Example items */
716
+ COMMON_SWORD: "COMMON_SWORD",
717
+ SMALL_HEALTH_POTION: "SMALL_HEALTH_POTION",
718
+ SMALL_BACKPACK: "SMALL_BACKPACK",
719
+ /** Placeable items */
720
+ LAVA_LAMP: "LAVA_LAMP",
721
+ BOOMBOX: "BOOMBOX",
722
+ CABIN_BED: "CABIN_BED"
723
+ };
724
+ var CURRENCIES = {
725
+ /** Primary platform currency slug */
726
+ PRIMARY: ITEM_SLUGS.PLAYCADEMY_CREDITS,
727
+ /** Experience points slug */
728
+ XP: ITEM_SLUGS.PLAYCADEMY_XP
729
+ };
730
+ var BADGES = {
731
+ FOUNDING_MEMBER: ITEM_SLUGS.FOUNDING_MEMBER_BADGE,
732
+ EARLY_ADOPTER: ITEM_SLUGS.EARLY_ADOPTER_BADGE,
733
+ FIRST_GAME: ITEM_SLUGS.FIRST_GAME_BADGE
734
+ };
735
+
736
+ // ../constants/src/timeback.ts
737
+ var TIMEBACK_ROUTES = {
738
+ PROGRESS: "/integrations/timeback/progress",
739
+ SESSION_END: "/integrations/timeback/session-end",
740
+ AWARD_XP: "/integrations/timeback/award-xp"
741
+ };
742
+
705
743
  // src/lib/config/loader.ts
706
744
  var ConfigError = class extends Error {
707
745
  constructor(message, field, suggestion) {
@@ -775,7 +813,7 @@ async function loadConfig(configPath) {
775
813
  if (actualPath.endsWith(".json")) {
776
814
  config = await loadFile(actualPath, { required: true, parseJson: true });
777
815
  } else {
778
- const module = await import(actualPath);
816
+ const module = await import(`${actualPath}?t=${Date.now()}`);
779
817
  config = module.default || module;
780
818
  }
781
819
  } else {
@@ -783,7 +821,7 @@ async function loadConfig(configPath) {
783
821
  if (actualPath.endsWith(".json")) {
784
822
  config = await loadFile(actualPath, { required: true, parseJson: true });
785
823
  } else {
786
- const module = await import(actualPath);
824
+ const module = await import(`${actualPath}?t=${Date.now()}`);
787
825
  config = module.default || module;
788
826
  }
789
827
  }
@@ -932,12 +970,8 @@ var ROUTES = {
932
970
  HEALTH: "/api/health",
933
971
  /** Route index (lists available routes) */
934
972
  INDEX: "/api",
935
- /** TimeBack integration routes */
936
- TIMEBACK: {
937
- PROGRESS: "/api/integrations/timeback/progress",
938
- SESSION_END: "/api/integrations/timeback/session-end",
939
- AWARD_XP: "/api/integrations/timeback/award-xp"
940
- }
973
+ /** TimeBack integration routes (imported from @playcademy/constants) */
974
+ TIMEBACK: TIMEBACK_ROUTES
941
975
  };
942
976
 
943
977
  // ../edge-play/src/register-routes.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playcademy",
3
- "version": "0.11.1",
3
+ "version": "0.11.3",
4
4
  "type": "module",
5
5
  "module": "./dist/index.js",
6
6
  "exports": {
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@hono/node-server": "^1.19.5",
32
32
  "@inquirer/prompts": "^7.8.6",
33
- "@playcademy/sdk": "0.1.0",
33
+ "@playcademy/sdk": "0.1.1",
34
34
  "chokidar": "^4.0.3",
35
35
  "colorette": "^2.0.20",
36
36
  "commander": "^14.0.1",
@@ -41,6 +41,7 @@
41
41
  "open": "^10.2.0"
42
42
  },
43
43
  "devDependencies": {
44
+ "@playcademy/constants": "0.0.1",
44
45
  "@playcademy/data": "0.0.1",
45
46
  "@playcademy/edge-play": "0.0.0",
46
47
  "@playcademy/timeback": "0.0.1",