sunpeak 0.9.12 → 0.10.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 (87) hide show
  1. package/bin/commands/build.mjs +56 -30
  2. package/bin/commands/deploy.mjs +17 -17
  3. package/bin/commands/push.mjs +115 -64
  4. package/bin/lib/patterns.mjs +40 -0
  5. package/bin/sunpeak.js +50 -106
  6. package/dist/index.cjs +149 -11
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.js +165 -27
  9. package/dist/index.js.map +1 -1
  10. package/dist/lib/discovery.d.ts +76 -13
  11. package/dist/mcp/entry.cjs +24 -27
  12. package/dist/mcp/entry.cjs.map +1 -1
  13. package/dist/mcp/entry.js +25 -28
  14. package/dist/mcp/entry.js.map +1 -1
  15. package/package.json +1 -1
  16. package/template/.sunpeak/dev.tsx +5 -5
  17. package/template/README.md +54 -50
  18. package/template/dist/{albums.json → albums/albums.json} +1 -1
  19. package/template/dist/{carousel.json → carousel/carousel.json} +1 -1
  20. package/template/dist/{map.json → map/map.json} +1 -1
  21. package/template/dist/{review.json → review/review.json} +1 -1
  22. package/template/node_modules/.vite/deps/_metadata.json +19 -19
  23. package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  24. package/template/src/resources/{albums-resource.test.tsx → albums/albums-resource.test.tsx} +1 -1
  25. package/template/src/resources/{albums-resource.tsx → albums/albums-resource.tsx} +1 -1
  26. package/template/src/resources/albums/albums-show-simulation.json +131 -0
  27. package/template/src/{components/album → resources/albums/components}/album-card.tsx +1 -1
  28. package/template/src/{components/album → resources/albums/components}/album-carousel.tsx +1 -1
  29. package/template/src/{components/album → resources/albums/components}/film-strip.tsx +1 -1
  30. package/template/src/{components/album → resources/albums/components}/fullscreen-viewer.tsx +1 -1
  31. package/template/src/resources/{carousel-resource.test.tsx → carousel/carousel-resource.test.tsx} +1 -1
  32. package/template/src/resources/{carousel-resource.tsx → carousel/carousel-resource.tsx} +1 -1
  33. package/template/src/resources/carousel/carousel-show-simulation.json +68 -0
  34. package/template/src/{components/carousel → resources/carousel/components}/card.tsx +1 -1
  35. package/template/src/{components/carousel → resources/carousel/components}/carousel.tsx +1 -1
  36. package/template/src/resources/index.ts +5 -5
  37. package/template/src/{components/map → resources/map/components}/map-view.tsx +1 -1
  38. package/template/src/{components/map → resources/map/components}/map.tsx +1 -1
  39. package/template/src/{components/map → resources/map/components}/place-card.tsx +1 -1
  40. package/template/src/{components/map → resources/map/components}/place-carousel.tsx +1 -1
  41. package/template/src/{components/map → resources/map/components}/place-inspector.tsx +1 -1
  42. package/template/src/{components/map → resources/map/components}/place-list.tsx +1 -1
  43. package/template/src/resources/{map-resource.test.tsx → map/map-resource.test.tsx} +1 -1
  44. package/template/src/resources/{map-resource.tsx → map/map-resource.tsx} +1 -1
  45. package/template/src/resources/map/map-show-simulation.json +123 -0
  46. package/template/src/resources/review/review-diff-simulation.json +80 -0
  47. package/template/src/resources/review/review-post-simulation.json +56 -0
  48. package/template/src/resources/review/review-purchase-simulation.json +88 -0
  49. package/dist/discovery-a4WId9PC.cjs +0 -125
  50. package/dist/discovery-a4WId9PC.cjs.map +0 -1
  51. package/dist/discovery-ft3cd2dW.js +0 -126
  52. package/dist/discovery-ft3cd2dW.js.map +0 -1
  53. package/template/src/components/index.ts +0 -3
  54. package/template/src/simulations/index.ts +0 -16
  55. /package/template/{src/simulations → dist/albums}/albums-show-simulation.json +0 -0
  56. /package/template/dist/{albums.js → albums/albums.js} +0 -0
  57. /package/template/{src/simulations → dist/carousel}/carousel-show-simulation.json +0 -0
  58. /package/template/dist/{carousel.js → carousel/carousel.js} +0 -0
  59. /package/template/{src/simulations → dist/map}/map-show-simulation.json +0 -0
  60. /package/template/dist/{map.js → map/map.js} +0 -0
  61. /package/template/{src/simulations → dist/review}/review-diff-simulation.json +0 -0
  62. /package/template/{src/simulations → dist/review}/review-post-simulation.json +0 -0
  63. /package/template/{src/simulations → dist/review}/review-purchase-simulation.json +0 -0
  64. /package/template/dist/{review.js → review/review.js} +0 -0
  65. /package/template/src/resources/{albums-resource.json → albums/albums-resource.json} +0 -0
  66. /package/template/src/{components/album → resources/albums/components}/album-card.test.tsx +0 -0
  67. /package/template/src/{components/album → resources/albums/components}/album-carousel.test.tsx +0 -0
  68. /package/template/src/{components/album → resources/albums/components}/albums.test.tsx +0 -0
  69. /package/template/src/{components/album → resources/albums/components}/albums.tsx +0 -0
  70. /package/template/src/{components/album → resources/albums/components}/film-strip.test.tsx +0 -0
  71. /package/template/src/{components/album → resources/albums/components}/fullscreen-viewer.test.tsx +0 -0
  72. /package/template/src/{components/album → resources/albums/components}/index.ts +0 -0
  73. /package/template/src/resources/{carousel-resource.json → carousel/carousel-resource.json} +0 -0
  74. /package/template/src/{components/carousel → resources/carousel/components}/card.test.tsx +0 -0
  75. /package/template/src/{components/carousel → resources/carousel/components}/carousel.test.tsx +0 -0
  76. /package/template/src/{components/carousel → resources/carousel/components}/index.ts +0 -0
  77. /package/template/src/{components/map → resources/map/components}/index.ts +0 -0
  78. /package/template/src/{components/map → resources/map/components}/map-view.test.tsx +0 -0
  79. /package/template/src/{components/map → resources/map/components}/place-card.test.tsx +0 -0
  80. /package/template/src/{components/map → resources/map/components}/place-carousel.test.tsx +0 -0
  81. /package/template/src/{components/map → resources/map/components}/place-inspector.test.tsx +0 -0
  82. /package/template/src/{components/map → resources/map/components}/place-list.test.tsx +0 -0
  83. /package/template/src/{components/map → resources/map/components}/types.ts +0 -0
  84. /package/template/src/resources/{map-resource.json → map/map-resource.json} +0 -0
  85. /package/template/src/resources/{review-resource.json → review/review-resource.json} +0 -0
  86. /package/template/src/resources/{review-resource.test.tsx → review/review-resource.test.tsx} +0 -0
  87. /package/template/src/resources/{review-resource.tsx → review/review-resource.tsx} +0 -0
@@ -1,16 +0,0 @@
1
- /**
2
- * Server-safe simulation configurations
3
- *
4
- * Auto-discovers all *-simulation.json files in this directory.
5
- * File naming: {resource}-{tool}-simulation.json (e.g., albums-show-simulation.json)
6
- *
7
- * This file can be safely imported in Node.js contexts (like MCP servers)
8
- * without causing issues with CSS imports or React components.
9
- */
10
- import { createSimulationIndex } from 'sunpeak';
11
-
12
- // Auto-discover all simulation JSON files
13
- const simulationModules = import.meta.glob('./*-simulation.json', { eager: true });
14
-
15
- // Build SIMULATIONS object from discovered files using library helper
16
- export const SIMULATIONS = createSimulationIndex(simulationModules);
File without changes
File without changes
File without changes