sunpeak 0.9.3 → 0.9.8

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 (33) hide show
  1. package/README.md +2 -2
  2. package/dist/chatgpt/conversation.d.ts +5 -2
  3. package/dist/chatgpt/iframe-resource.d.ts +69 -0
  4. package/dist/chatgpt/index.cjs +2 -1
  5. package/dist/chatgpt/index.cjs.map +1 -1
  6. package/dist/chatgpt/index.d.ts +1 -0
  7. package/dist/chatgpt/index.js +2 -1
  8. package/dist/chatgpt/simple-sidebar.d.ts +2 -2
  9. package/dist/index.cjs +2 -1
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.js +3 -2
  12. package/dist/{simulator-url-CG8lAAC3.cjs → simulator-url-BpCa95pE.cjs} +876 -251
  13. package/dist/simulator-url-BpCa95pE.cjs.map +1 -0
  14. package/dist/{simulator-url-CexnaL-e.js → simulator-url-q5tHLc4-.js} +876 -251
  15. package/dist/simulator-url-q5tHLc4-.js.map +1 -0
  16. package/dist/style.css +12 -0
  17. package/dist/types/simulation.d.ts +4 -1
  18. package/package.json +1 -1
  19. package/template/README.md +2 -2
  20. package/template/dist/albums.js +7 -7
  21. package/template/dist/albums.json +1 -1
  22. package/template/dist/carousel.js +6 -6
  23. package/template/dist/carousel.json +1 -1
  24. package/template/dist/map.js +17 -17
  25. package/template/dist/map.json +1 -1
  26. package/template/dist/review.js +7 -7
  27. package/template/dist/review.json +1 -1
  28. package/template/node_modules/.vite/deps/_metadata.json +19 -19
  29. package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  30. package/template/src/components/album/album-carousel.tsx +28 -3
  31. package/template/src/components/carousel/carousel.tsx +28 -3
  32. package/dist/simulator-url-CG8lAAC3.cjs.map +0 -1
  33. package/dist/simulator-url-CexnaL-e.js.map +0 -1
package/dist/style.css CHANGED
@@ -6416,10 +6416,18 @@ background-color: var(--gray-200);
6416
6416
  resize: both;
6417
6417
  }
6418
6418
 
6419
+ .resize-y {
6420
+ resize: vertical;
6421
+ }
6422
+
6419
6423
  .grid-cols-2 {
6420
6424
  grid-template-columns: repeat(2, minmax(0, 1fr));
6421
6425
  }
6422
6426
 
6427
+ .grid-cols-4 {
6428
+ grid-template-columns: repeat(4, minmax(0, 1fr));
6429
+ }
6430
+
6423
6431
  .grid-cols-\[1fr_auto_1fr\] {
6424
6432
  grid-template-columns: 1fr auto 1fr;
6425
6433
  }
@@ -6464,6 +6472,10 @@ background-color: var(--gray-200);
6464
6472
  justify-content: flex-start;
6465
6473
  }
6466
6474
 
6475
+ .gap-0\.5 {
6476
+ gap: calc(var(--spacing) * .5);
6477
+ }
6478
+
6467
6479
  .gap-1 {
6468
6480
  gap: calc(var(--spacing) * 1);
6469
6481
  }
@@ -8,10 +8,13 @@ import type * as React from 'react';
8
8
  /**
9
9
  * A simulation packages a component with its example data and metadata.
10
10
  * Each simulation represents a complete tool experience in the simulator.
11
+ *
12
+ * Specify either `resourceComponent` (React component) or `resourceScript` (URL to built .js file).
11
13
  */
12
14
  export interface Simulation {
13
15
  name: string;
14
- resourceComponent: React.ComponentType;
16
+ resourceComponent?: React.ComponentType;
17
+ resourceScript?: string;
15
18
  userMessage?: string;
16
19
  tool: Tool;
17
20
  resource: Resource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sunpeak",
3
- "version": "0.9.3",
3
+ "version": "0.9.8",
4
4
  "description": "The ChatGPT App framework. Quickstart, build, & test your ChatGPT App locally!",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -100,8 +100,8 @@ Each `.json` file is a copy of each of your resource MCP metadata files `src/res
100
100
 
101
101
  To add a new UI (MCP Resource), simply create the following files:
102
102
 
103
- - `src/resource/NAME-resource.tsx`
104
- - `src/resource/NAME-resource.json`
103
+ - `src/resources/NAME-resource.tsx`
104
+ - `src/resources/NAME-resource.json`
105
105
  - `src/simulations/NAME-TOOLNAME-simulation.json`
106
106
 
107
107
  Only the resource files are required to generate a production build and ship a UI. Create the simulation file if you want to preview your resource in `sunpeak dev` or `sunpeak mcp`.