sunpeak 0.4.2 → 0.4.4

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 (31) hide show
  1. package/README.md +2 -2
  2. package/bin/sunpeak.js +1 -1
  3. package/dist/index.cjs +4 -4
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.js +4 -4
  6. package/dist/index.js.map +1 -1
  7. package/package.json +2 -2
  8. package/template/README.md +1 -1
  9. package/template/dev/main.tsx +1 -1
  10. package/template/mcp/server.ts +5 -9
  11. package/template/src/components/album/albums.tsx +7 -7
  12. package/template/src/components/apps/AlbumsApp.tsx +13 -0
  13. package/template/src/{App.tsx → components/apps/App.tsx} +2 -2
  14. package/template/src/components/{simulations/carousel-simulation.tsx → apps/PlacesApp.tsx} +11 -17
  15. package/template/src/components/apps/active-app.ts +11 -0
  16. package/template/src/components/apps/index.ts +3 -0
  17. package/template/src/components/card/card.tsx +4 -0
  18. package/template/src/components/index.ts +1 -1
  19. package/template/src/index.chatgpt.tsx +4 -3
  20. package/template/src/index.ts +0 -1
  21. package/template/src/simulations/albums-simulation.ts +129 -0
  22. package/template/src/simulations/app-configs.ts +30 -0
  23. package/template/src/simulations/app-simulation.ts +15 -0
  24. package/template/src/simulations/carousel-simulation.ts +66 -0
  25. package/template/src/simulations/index.ts +16 -0
  26. package/template/src/simulations/simulations.ts +74 -0
  27. package/template/data/albums.json +0 -112
  28. package/template/data/places.json +0 -49
  29. package/template/src/components/simulations/albums-simulation.tsx +0 -20
  30. package/template/src/components/simulations/app-simulation.tsx +0 -13
  31. package/template/src/components/simulations/index.tsx +0 -14
@@ -1,49 +0,0 @@
1
- {
2
- "places": [
3
- {
4
- "id": "1",
5
- "name": "Lady Bird Lake",
6
- "rating": 4.5,
7
- "category": "Waterfront",
8
- "location": "Austin",
9
- "image": "https://images.unsplash.com/photo-1520950237264-dfe336995c34?w=400&h=400&fit=crop",
10
- "description": "Scenic lake perfect for kayaking, paddleboarding, and trails."
11
- },
12
- {
13
- "id": "2",
14
- "name": "Texas State Capitol",
15
- "rating": 4.8,
16
- "category": "Historic Site",
17
- "location": "Austin",
18
- "image": "https://images.unsplash.com/photo-1664231978322-4d0b45c7027b?w=400&h=400&fit=crop",
19
- "description": "Stunning capitol building with free tours and beautiful grounds."
20
- },
21
- {
22
- "id": "3",
23
- "name": "The Paramount Theatre",
24
- "rating": 4.7,
25
- "category": "Architecture",
26
- "location": "Austin",
27
- "image": "https://images.unsplash.com/photo-1583097090970-4d3b940ea1a0?w=400&h=400&fit=crop",
28
- "description": "Century-old performance and movie theatre in the heart of downtown Austin."
29
- },
30
- {
31
- "id": "4",
32
- "name": "Zilker Park",
33
- "rating": 4.7,
34
- "category": "Park",
35
- "location": "Austin",
36
- "image": "https://images.unsplash.com/photo-1563828568124-f800803ba13c?w=400&h=400&fit=crop",
37
- "description": "Popular park with trails, sports fields, and Barton Springs Pool."
38
- },
39
- {
40
- "id": "5",
41
- "name": "South Congress Avenue",
42
- "rating": 4.6,
43
- "category": "Landmark",
44
- "location": "Austin",
45
- "image": "https://images.unsplash.com/photo-1588993608283-7f0eda4438be?w=400&h=400&fit=crop",
46
- "description": "Vibrant street with unique shops, restaurants, and live music."
47
- }
48
- ]
49
- }
@@ -1,20 +0,0 @@
1
- import * as React from "react"
2
- import type { Simulation } from "sunpeak"
3
- import { OpenAIAlbums } from ".."
4
- import albumsData from "../../../data/albums.json"
5
-
6
- const AlbumsComponent = React.forwardRef<HTMLDivElement>((_props, ref) => {
7
- return <OpenAIAlbums ref={ref} />
8
- })
9
- AlbumsComponent.displayName = "AlbumsComponent"
10
-
11
- export const albumsSimulation: Simulation = {
12
- value: 'albums',
13
- label: 'Albums',
14
- component: AlbumsComponent,
15
- appName: 'Pizzaz',
16
- appIcon: '🍕',
17
- userMessage: 'Pizza time',
18
- toolOutput: albumsData,
19
- widgetState: null,
20
- }
@@ -1,13 +0,0 @@
1
- import type { Simulation } from "sunpeak"
2
- import { App } from "../../App"
3
-
4
- export const appSimulation: Simulation = {
5
- value: 'app',
6
- label: 'My App',
7
- component: App,
8
- appName: 'sunpeak',
9
- appIcon: '🏗️',
10
- userMessage: 'What do you have for me today?',
11
- toolOutput: null,
12
- widgetState: null,
13
- }
@@ -1,14 +0,0 @@
1
- export * from "./app-simulation"
2
- export * from "./carousel-simulation"
3
- export * from "./albums-simulation"
4
-
5
- // Export all simulations as an array for convenience
6
- import { appSimulation } from "./app-simulation"
7
- import { carouselSimulation } from "./carousel-simulation"
8
- import { albumsSimulation } from "./albums-simulation"
9
-
10
- export const simulations = [
11
- appSimulation,
12
- carouselSimulation,
13
- albumsSimulation,
14
- ]