sunpeak 0.8.5 → 0.8.6

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 (21) hide show
  1. package/bin/sunpeak.js +6 -6
  2. package/package.json +1 -1
  3. package/template/dist/albums.json +1 -1
  4. package/template/dist/carousel.json +1 -1
  5. package/template/dist/counter.json +1 -1
  6. package/template/dist/map.json +1 -1
  7. package/template/dist/{confirmation.js → review.js} +2 -2
  8. package/template/dist/{confirmation.json → review.json} +4 -4
  9. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Button.js +3 -3
  10. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_SegmentedControl.js +4 -4
  11. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Select.js +20 -20
  12. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Textarea.js +3 -3
  13. package/template/node_modules/.vite/deps/_metadata.json +35 -35
  14. package/template/node_modules/.vite/deps/{chunk-N6DVYEXK.js → chunk-SPYXUHEY.js} +8 -8
  15. package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  16. package/template/src/resources/{confirmation-resource.json → review-resource.json} +3 -3
  17. package/template/src/resources/{confirmation-resource.tsx → review-resource.tsx} +20 -20
  18. package/template/src/simulations/{confirmation-diff-simulation.json → review-diff-simulation.json} +4 -4
  19. package/template/src/simulations/{confirmation-post-simulation.json → review-post-simulation.json} +4 -4
  20. package/template/src/simulations/{confirmation-purchase-simulation.json → review-purchase-simulation.json} +4 -4
  21. /package/template/node_modules/.vite/deps/{chunk-N6DVYEXK.js.map → chunk-SPYXUHEY.js.map} +0 -0
package/bin/sunpeak.js CHANGED
@@ -28,7 +28,7 @@ function checkPackageJson() {
28
28
  }
29
29
 
30
30
  function parseResourcesInput(input) {
31
- const VALID_RESOURCES = ['albums', 'carousel', 'confirmation', 'counter', 'map'];
31
+ const VALID_RESOURCES = ['albums', 'carousel', 'counter', 'map', 'review'];
32
32
 
33
33
  // If no input, return all resources
34
34
  if (!input || input.trim() === '') {
@@ -59,9 +59,9 @@ function updateIndexFiles(targetDir, selectedResources) {
59
59
  const resourceMap = {
60
60
  albums: { component: 'album', resourceClass: 'AlbumsResource' },
61
61
  carousel: { component: 'carousel', resourceClass: 'CarouselResource' },
62
- confirmation: { component: null, resourceClass: 'ConfirmationResource' },
63
62
  counter: { component: null, resourceClass: 'CounterResource' },
64
63
  map: { component: 'map', resourceClass: 'MapResource' },
64
+ review: { component: null, resourceClass: 'ReviewResource' },
65
65
  };
66
66
 
67
67
  // Update components/index.ts
@@ -139,7 +139,7 @@ async function init(projectName, resourcesArg) {
139
139
  console.log(`☀️ 🏔️ Resources: ${resourcesArg}`);
140
140
  } else {
141
141
  resourcesInput = await prompt(
142
- '☀️ 🏔️ Resources (UIs) to include [albums, carousel, confirmation, counter, map]: '
142
+ '☀️ 🏔️ Resources (UIs) to include [albums, carousel, counter, map, review]: '
143
143
  );
144
144
  }
145
145
  const selectedResources = parseResourcesInput(resourcesInput);
@@ -161,9 +161,9 @@ async function init(projectName, resourcesArg) {
161
161
  const resourceComponentMap = {
162
162
  albums: 'album',
163
163
  carousel: 'carousel',
164
- confirmation: null, // Confirmation doesn't have a component directory
165
164
  counter: null, // Counter doesn't have a component directory
166
165
  map: 'map',
166
+ review: null, // Review doesn't have a component directory
167
167
  };
168
168
 
169
169
  cpSync(templateDir, targetDir, {
@@ -177,7 +177,7 @@ async function init(projectName, resourcesArg) {
177
177
  }
178
178
 
179
179
  // Filter resource files based on selection
180
- const VALID_RESOURCES = ['albums', 'carousel', 'confirmation', 'counter', 'map'];
180
+ const VALID_RESOURCES = ['albums', 'carousel', 'counter', 'map', 'review'];
181
181
  const excludedResources = VALID_RESOURCES.filter((r) => !selectedResources.includes(r));
182
182
 
183
183
  for (const resource of excludedResources) {
@@ -416,7 +416,7 @@ Usage:
416
416
  sunpeak upgrade Upgrade sunpeak to latest version
417
417
  sunpeak --version Show version number
418
418
 
419
- Resources: albums, carousel, confirmation, counter, map (comma/space separated)
419
+ Resources: albums, carousel, counter, map, review (comma/space separated)
420
420
  Example: sunpeak new my-app "albums,carousel"
421
421
 
422
422
  For more information, visit: https://sunpeak.ai/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sunpeak",
3
- "version": "0.8.5",
3
+ "version": "0.8.6",
4
4
  "description": "The ChatGPT App framework. Quickstart, build, & test your ChatGPT App locally!",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -12,5 +12,5 @@
12
12
  ]
13
13
  }
14
14
  },
15
- "uri": "ui://albums-mjt16aw5"
15
+ "uri": "ui://albums-mjt2f5f3"
16
16
  }
@@ -12,5 +12,5 @@
12
12
  ]
13
13
  }
14
14
  },
15
- "uri": "ui://carousel-mjt16aw5"
15
+ "uri": "ui://carousel-mjt2f5f3"
16
16
  }
@@ -11,5 +11,5 @@
11
11
  ]
12
12
  }
13
13
  },
14
- "uri": "ui://counter-mjt16aw5"
14
+ "uri": "ui://counter-mjt2f5f3"
15
15
  }
@@ -18,5 +18,5 @@
18
18
  ]
19
19
  }
20
20
  },
21
- "uri": "ui://map-mjt16aw5"
21
+ "uri": "ui://map-mjt2f5f3"
22
22
  }