sunpeak 0.8.1 → 0.8.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 (37) hide show
  1. package/bin/commands/dev.mjs +60 -4
  2. package/bin/commands/mcp.mjs +1 -1
  3. package/bin/sunpeak.js +6 -4
  4. package/dist/index.cjs +4 -2
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.js +4 -2
  7. package/dist/index.js.map +1 -1
  8. package/dist/style.css +62 -0
  9. package/package.json +1 -1
  10. package/template/README.md +29 -14
  11. package/template/dist/albums.js +1 -1
  12. package/template/dist/albums.json +3 -2
  13. package/template/dist/carousel.js +1 -1
  14. package/template/dist/carousel.json +3 -2
  15. package/template/dist/confirmation.js +49 -0
  16. package/template/dist/confirmation.json +16 -0
  17. package/template/dist/counter.js +1 -1
  18. package/template/dist/counter.json +7 -2
  19. package/template/dist/map.js +1 -1
  20. package/template/dist/map.json +6 -3
  21. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Button.js +3 -3
  22. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_SegmentedControl.js +1 -1
  23. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Select.js +16 -16
  24. package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Textarea.js +3 -3
  25. package/template/node_modules/.vite/deps/_metadata.json +32 -32
  26. package/template/node_modules/.vite/deps/{chunk-SPYXUHEY.js → chunk-N6DVYEXK.js} +8 -8
  27. package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  28. package/template/src/resources/albums-resource.json +1 -1
  29. package/template/src/resources/carousel-resource.json +1 -1
  30. package/template/src/resources/confirmation-resource.json +12 -0
  31. package/template/src/resources/confirmation-resource.tsx +479 -0
  32. package/template/src/resources/counter-resource.json +4 -1
  33. package/template/src/resources/map-resource.json +7 -2
  34. package/template/src/simulations/confirmation-diff-simulation.json +80 -0
  35. package/template/src/simulations/confirmation-post-simulation.json +56 -0
  36. package/template/src/simulations/confirmation-purchase-simulation.json +88 -0
  37. /package/template/node_modules/.vite/deps/{chunk-SPYXUHEY.js.map → chunk-N6DVYEXK.js.map} +0 -0
@@ -7,13 +7,16 @@
7
7
  "openai/widgetDomain": "https://sunpeak.ai",
8
8
  "openai/widgetCSP": {
9
9
  "connect_domains": [
10
- "https://api.mapbox.com"
10
+ "https://api.mapbox.com",
11
+ "https://events.mapbox.com"
11
12
  ],
12
13
  "resource_domains": [
13
14
  "https://*.oaistatic.com",
14
- "https://api.mapbox.com"
15
+ "https://cdn.openai.com",
16
+ "https://api.mapbox.com",
17
+ "https://events.mapbox.com"
15
18
  ]
16
19
  }
17
20
  },
18
- "uri": "ui://map-mjogxfpn"
21
+ "uri": "ui://map-mjszyos6"
19
22
  }
@@ -2,13 +2,13 @@ import {
2
2
  Button,
3
3
  ButtonLink,
4
4
  CopyButton
5
- } from "./chunk-SPYXUHEY.js";
6
- import "./chunk-UM3ZGDFR.js";
5
+ } from "./chunk-N6DVYEXK.js";
7
6
  import "./chunk-JAGHY6H6.js";
8
- import "./chunk-DYQDWJMS.js";
9
7
  import "./chunk-QPJAV452.js";
8
+ import "./chunk-DYQDWJMS.js";
10
9
  import "./chunk-EGRHWZRV.js";
11
10
  import "./chunk-CNYJBM5F.js";
11
+ import "./chunk-UM3ZGDFR.js";
12
12
  import "./chunk-JGVISENQ.js";
13
13
  import "./chunk-BUOVMFCD.js";
14
14
  import "./chunk-ILHRZGIS.js";
@@ -5,11 +5,11 @@ import {
5
5
  handlePressableMouseEnter,
6
6
  waitForAnimationFrame
7
7
  } from "./chunk-DYQDWJMS.js";
8
+ import "./chunk-EGRHWZRV.js";
8
9
  import {
9
10
  dist_exports4 as dist_exports
10
11
  } from "./chunk-TSEQUROC.js";
11
12
  import "./chunk-XZTIOEPG.js";
12
- import "./chunk-EGRHWZRV.js";
13
13
  import {
14
14
  clsx_default
15
15
  } from "./chunk-CNYJBM5F.js";
@@ -1,41 +1,41 @@
1
+ import {
2
+ Input
3
+ } from "./chunk-2DZGWGIP.js";
1
4
  import {
2
5
  Button,
3
6
  LoadingIndicator,
4
7
  TransitionGroup
5
- } from "./chunk-SPYXUHEY.js";
6
- import {
7
- Check_default,
8
- ChevronDownVector_default,
9
- DropdownVector_default,
10
- Info_default,
11
- Search_default,
12
- X_default
13
- } from "./chunk-UM3ZGDFR.js";
8
+ } from "./chunk-N6DVYEXK.js";
14
9
  import {
15
10
  useTimeout
16
11
  } from "./chunk-JAGHY6H6.js";
12
+ import {
13
+ o
14
+ } from "./chunk-QPJAV452.js";
17
15
  import {
18
16
  handlePressableMouseEnter,
19
17
  preventDefaultHandler,
20
18
  toCssVariables,
21
19
  waitForAnimationFrame
22
20
  } from "./chunk-DYQDWJMS.js";
21
+ import "./chunk-EGRHWZRV.js";
23
22
  import {
24
23
  dist_exports,
25
24
  dist_exports3 as dist_exports2,
26
25
  dist_exports5 as dist_exports3
27
26
  } from "./chunk-TSEQUROC.js";
28
27
  import "./chunk-XZTIOEPG.js";
29
- import {
30
- Input
31
- } from "./chunk-2DZGWGIP.js";
32
- import {
33
- o
34
- } from "./chunk-QPJAV452.js";
35
- import "./chunk-EGRHWZRV.js";
36
28
  import {
37
29
  clsx_default
38
30
  } from "./chunk-CNYJBM5F.js";
31
+ import {
32
+ Check_default,
33
+ ChevronDownVector_default,
34
+ DropdownVector_default,
35
+ Info_default,
36
+ Search_default,
37
+ X_default
38
+ } from "./chunk-UM3ZGDFR.js";
39
39
  import {
40
40
  require_jsx_runtime
41
41
  } from "./chunk-JGVISENQ.js";
@@ -1,9 +1,9 @@
1
- import {
2
- toCssVariables
3
- } from "./chunk-DYQDWJMS.js";
4
1
  import {
5
2
  o
6
3
  } from "./chunk-QPJAV452.js";
4
+ import {
5
+ toCssVariables
6
+ } from "./chunk-DYQDWJMS.js";
7
7
  import "./chunk-EGRHWZRV.js";
8
8
  import {
9
9
  clsx_default
@@ -7,149 +7,149 @@
7
7
  "react": {
8
8
  "src": "../../../../node_modules/.pnpm/react@19.2.3/node_modules/react/index.js",
9
9
  "file": "react.js",
10
- "fileHash": "0e91efcd",
10
+ "fileHash": "1adce65b",
11
11
  "needsInterop": true
12
12
  },
13
13
  "react-dom": {
14
14
  "src": "../../../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/index.js",
15
15
  "file": "react-dom.js",
16
- "fileHash": "a494a1bb",
16
+ "fileHash": "5f4c05ee",
17
17
  "needsInterop": true
18
18
  },
19
19
  "react/jsx-dev-runtime": {
20
20
  "src": "../../../../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-dev-runtime.js",
21
21
  "file": "react_jsx-dev-runtime.js",
22
- "fileHash": "f8af2137",
22
+ "fileHash": "db478c36",
23
23
  "needsInterop": true
24
24
  },
25
25
  "react/jsx-runtime": {
26
26
  "src": "../../../../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-runtime.js",
27
27
  "file": "react_jsx-runtime.js",
28
- "fileHash": "ec4ed62f",
28
+ "fileHash": "4eccc71b",
29
29
  "needsInterop": true
30
30
  },
31
31
  "@openai/apps-sdk-ui/components/Avatar": {
32
32
  "src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/components/Avatar/index.js",
33
33
  "file": "@openai_apps-sdk-ui_components_Avatar.js",
34
- "fileHash": "68e14c6b",
34
+ "fileHash": "db689388",
35
35
  "needsInterop": false
36
36
  },
37
37
  "@openai/apps-sdk-ui/components/Button": {
38
38
  "src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/components/Button/index.js",
39
39
  "file": "@openai_apps-sdk-ui_components_Button.js",
40
- "fileHash": "59569407",
40
+ "fileHash": "fb09cd35",
41
41
  "needsInterop": false
42
42
  },
43
43
  "@openai/apps-sdk-ui/components/Checkbox": {
44
44
  "src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/components/Checkbox/index.js",
45
45
  "file": "@openai_apps-sdk-ui_components_Checkbox.js",
46
- "fileHash": "ebce4fc9",
46
+ "fileHash": "9955d764",
47
47
  "needsInterop": false
48
48
  },
49
49
  "@openai/apps-sdk-ui/components/Icon": {
50
50
  "src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/components/Icon/index.js",
51
51
  "file": "@openai_apps-sdk-ui_components_Icon.js",
52
- "fileHash": "b7892cca",
52
+ "fileHash": "765cdd61",
53
53
  "needsInterop": false
54
54
  },
55
55
  "@openai/apps-sdk-ui/components/Input": {
56
56
  "src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/components/Input/index.js",
57
57
  "file": "@openai_apps-sdk-ui_components_Input.js",
58
- "fileHash": "bc414673",
58
+ "fileHash": "a6d61b3a",
59
59
  "needsInterop": false
60
60
  },
61
61
  "@openai/apps-sdk-ui/components/SegmentedControl": {
62
62
  "src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/components/SegmentedControl/index.js",
63
63
  "file": "@openai_apps-sdk-ui_components_SegmentedControl.js",
64
- "fileHash": "a5b83268",
64
+ "fileHash": "ab1e5838",
65
65
  "needsInterop": false
66
66
  },
67
67
  "@openai/apps-sdk-ui/components/Select": {
68
68
  "src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/components/Select/index.js",
69
69
  "file": "@openai_apps-sdk-ui_components_Select.js",
70
- "fileHash": "37b51fd8",
70
+ "fileHash": "02fa0bc6",
71
71
  "needsInterop": false
72
72
  },
73
73
  "@openai/apps-sdk-ui/components/Textarea": {
74
74
  "src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/components/Textarea/index.js",
75
75
  "file": "@openai_apps-sdk-ui_components_Textarea.js",
76
- "fileHash": "1bd0d6c0",
76
+ "fileHash": "5efa173b",
77
77
  "needsInterop": false
78
78
  },
79
79
  "@openai/apps-sdk-ui/theme": {
80
80
  "src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.1_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._90324f97b7190ccfdbe40a9e8bef3385/node_modules/@openai/apps-sdk-ui/dist/es/lib/theme.js",
81
81
  "file": "@openai_apps-sdk-ui_theme.js",
82
- "fileHash": "e9ee44f1",
82
+ "fileHash": "adf633fb",
83
83
  "needsInterop": false
84
84
  },
85
85
  "clsx": {
86
86
  "src": "../../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs",
87
87
  "file": "clsx.js",
88
- "fileHash": "42430903",
88
+ "fileHash": "f0393b05",
89
89
  "needsInterop": false
90
90
  },
91
91
  "embla-carousel-react": {
92
92
  "src": "../../../../node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.3/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js",
93
93
  "file": "embla-carousel-react.js",
94
- "fileHash": "3da968c3",
94
+ "fileHash": "5aa6dc8a",
95
95
  "needsInterop": false
96
96
  },
97
97
  "embla-carousel-wheel-gestures": {
98
98
  "src": "../../../../node_modules/.pnpm/embla-carousel-wheel-gestures@8.1.0_embla-carousel@8.6.0/node_modules/embla-carousel-wheel-gestures/dist/embla-carousel-wheel-gestures.esm.js",
99
99
  "file": "embla-carousel-wheel-gestures.js",
100
- "fileHash": "3e16ffd7",
100
+ "fileHash": "c63e155a",
101
101
  "needsInterop": false
102
102
  },
103
103
  "mapbox-gl": {
104
104
  "src": "../../../../node_modules/.pnpm/mapbox-gl@3.17.0/node_modules/mapbox-gl/dist/mapbox-gl.js",
105
105
  "file": "mapbox-gl.js",
106
- "fileHash": "7f23ced6",
106
+ "fileHash": "df535463",
107
107
  "needsInterop": true
108
108
  },
109
109
  "react-dom/client": {
110
110
  "src": "../../../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/client.js",
111
111
  "file": "react-dom_client.js",
112
- "fileHash": "f79547d3",
112
+ "fileHash": "83056a21",
113
113
  "needsInterop": true
114
114
  },
115
115
  "tailwind-merge": {
116
116
  "src": "../../../../node_modules/.pnpm/tailwind-merge@3.4.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs",
117
117
  "file": "tailwind-merge.js",
118
- "fileHash": "f13263e2",
118
+ "fileHash": "0b505b22",
119
119
  "needsInterop": false
120
120
  }
121
121
  },
122
122
  "chunks": {
123
- "chunk-SPYXUHEY": {
124
- "file": "chunk-SPYXUHEY.js"
123
+ "chunk-2DZGWGIP": {
124
+ "file": "chunk-2DZGWGIP.js"
125
125
  },
126
- "chunk-UM3ZGDFR": {
127
- "file": "chunk-UM3ZGDFR.js"
126
+ "chunk-N6DVYEXK": {
127
+ "file": "chunk-N6DVYEXK.js"
128
128
  },
129
129
  "chunk-JAGHY6H6": {
130
130
  "file": "chunk-JAGHY6H6.js"
131
131
  },
132
+ "chunk-QPJAV452": {
133
+ "file": "chunk-QPJAV452.js"
134
+ },
132
135
  "chunk-DYQDWJMS": {
133
136
  "file": "chunk-DYQDWJMS.js"
134
137
  },
138
+ "chunk-EGRHWZRV": {
139
+ "file": "chunk-EGRHWZRV.js"
140
+ },
135
141
  "chunk-TSEQUROC": {
136
142
  "file": "chunk-TSEQUROC.js"
137
143
  },
138
144
  "chunk-XZTIOEPG": {
139
145
  "file": "chunk-XZTIOEPG.js"
140
146
  },
141
- "chunk-2DZGWGIP": {
142
- "file": "chunk-2DZGWGIP.js"
143
- },
144
- "chunk-QPJAV452": {
145
- "file": "chunk-QPJAV452.js"
146
- },
147
- "chunk-EGRHWZRV": {
148
- "file": "chunk-EGRHWZRV.js"
149
- },
150
147
  "chunk-CNYJBM5F": {
151
148
  "file": "chunk-CNYJBM5F.js"
152
149
  },
150
+ "chunk-UM3ZGDFR": {
151
+ "file": "chunk-UM3ZGDFR.js"
152
+ },
153
153
  "chunk-JGVISENQ": {
154
154
  "file": "chunk-JGVISENQ.js"
155
155
  },
@@ -1,10 +1,9 @@
1
- import {
2
- Check_default,
3
- Copy_default
4
- } from "./chunk-UM3ZGDFR.js";
5
1
  import {
6
2
  useTimeout
7
3
  } from "./chunk-JAGHY6H6.js";
4
+ import {
5
+ o
6
+ } from "./chunk-QPJAV452.js";
8
7
  import {
9
8
  handlePressableMouseEnter,
10
9
  isDev,
@@ -16,12 +15,13 @@ import {
16
15
  toTransformProperty,
17
16
  waitForAnimationFrame
18
17
  } from "./chunk-DYQDWJMS.js";
19
- import {
20
- o
21
- } from "./chunk-QPJAV452.js";
22
18
  import {
23
19
  clsx_default
24
20
  } from "./chunk-CNYJBM5F.js";
21
+ import {
22
+ Check_default,
23
+ Copy_default
24
+ } from "./chunk-UM3ZGDFR.js";
25
25
  import {
26
26
  require_jsx_runtime
27
27
  } from "./chunk-JGVISENQ.js";
@@ -625,4 +625,4 @@ export {
625
625
  ButtonLink,
626
626
  CopyButton
627
627
  };
628
- //# sourceMappingURL=chunk-SPYXUHEY.js.map
628
+ //# sourceMappingURL=chunk-N6DVYEXK.js.map
@@ -1 +1 @@
1
- {"version":"4.0.16","results":[[":src/components/album/albums.test.tsx",{"duration":369.608344,"failed":false}],[":src/resources/counter-resource.test.tsx",{"duration":298.88052300000027,"failed":false}],[":src/resources/carousel-resource.test.tsx",{"duration":229.87382100000013,"failed":false}],[":src/components/map/map-view.test.tsx",{"duration":74.3784169999999,"failed":false}],[":src/components/map/place-inspector.test.tsx",{"duration":396.6914099999999,"failed":false}],[":src/components/album/fullscreen-viewer.test.tsx",{"duration":235.851359,"failed":false}],[":src/components/map/place-list.test.tsx",{"duration":129.307685,"failed":false}],[":src/components/map/place-card.test.tsx",{"duration":346.68555300000025,"failed":false}],[":src/components/map/place-carousel.test.tsx",{"duration":392.8754509999999,"failed":false}],[":src/components/album/album-carousel.test.tsx",{"duration":79.79719499999987,"failed":false}],[":src/components/carousel/carousel.test.tsx",{"duration":75.20614599999999,"failed":false}],[":src/resources/albums-resource.test.tsx",{"duration":235.289847,"failed":false}],[":src/components/album/film-strip.test.tsx",{"duration":426.67748099999994,"failed":false}],[":src/components/album/album-card.test.tsx",{"duration":337.8234279999999,"failed":false}],[":src/components/carousel/card.test.tsx",{"duration":65.62471800000003,"failed":false}]]}
1
+ {"version":"4.0.16","results":[[":src/resources/carousel-resource.test.tsx",{"duration":255.92725199999995,"failed":false}],[":src/components/album/albums.test.tsx",{"duration":316.69233699999995,"failed":false}],[":src/resources/counter-resource.test.tsx",{"duration":296.34930299999996,"failed":false}],[":src/components/map/map-view.test.tsx",{"duration":74.30506199999991,"failed":false}],[":src/components/map/place-inspector.test.tsx",{"duration":401.9067449999998,"failed":false}],[":src/components/album/fullscreen-viewer.test.tsx",{"duration":275.725199,"failed":false}],[":src/components/map/place-list.test.tsx",{"duration":150.993152,"failed":false}],[":src/components/map/place-card.test.tsx",{"duration":324.07580099999996,"failed":false}],[":src/components/map/place-carousel.test.tsx",{"duration":391.78054900000006,"failed":false}],[":src/components/album/album-carousel.test.tsx",{"duration":70.01213700000017,"failed":false}],[":src/components/carousel/carousel.test.tsx",{"duration":71.646121,"failed":false}],[":src/resources/albums-resource.test.tsx",{"duration":224.81713300000013,"failed":false}],[":src/components/album/film-strip.test.tsx",{"duration":436.2063170000001,"failed":false}],[":src/components/album/album-card.test.tsx",{"duration":231.87361699999997,"failed":false}],[":src/components/carousel/card.test.tsx",{"duration":77.7521690000001,"failed":false}]]}
@@ -6,7 +6,7 @@
6
6
  "_meta": {
7
7
  "openai/widgetDomain": "https://sunpeak.ai",
8
8
  "openai/widgetCSP": {
9
- "resource_domains": ["https://*.oaistatic.com"]
9
+ "resource_domains": ["https://*.oaistatic.com", "https://cdn.openai.com"]
10
10
  }
11
11
  }
12
12
  }
@@ -6,7 +6,7 @@
6
6
  "_meta": {
7
7
  "openai/widgetDomain": "https://sunpeak.ai",
8
8
  "openai/widgetCSP": {
9
- "resource_domains": ["https://images.unsplash.com"]
9
+ "resource_domains": ["https://images.unsplash.com", "https://cdn.openai.com"]
10
10
  }
11
11
  }
12
12
  }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "confirmation",
3
+ "title": "Confirmation",
4
+ "description": "Visualize and confirm a proposed set of changes or actions",
5
+ "mimeType": "text/html+skybridge",
6
+ "_meta": {
7
+ "openai/widgetDomain": "https://sunpeak.ai",
8
+ "openai/widgetCSP": {
9
+ "resource_domains": ["https://images.unsplash.com", "https://cdn.openai.com"]
10
+ }
11
+ }
12
+ }