sunpeak 0.5.19 → 0.5.20
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.
- package/README.md +5 -1
- package/bin/sunpeak.js +8 -0
- package/package.json +1 -1
- package/template/README.md +8 -0
- package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Button.js +3 -3
- package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_SegmentedControl.js +1 -1
- package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Select.js +16 -16
- package/template/node_modules/.vite/deps/@openai_apps-sdk-ui_components_Textarea.js +3 -3
- package/template/node_modules/.vite/deps/_metadata.json +31 -31
- package/template/node_modules/.vite/deps/{chunk-675LFNY2.js → chunk-EVJ3DVH5.js} +8 -8
- package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- /package/template/node_modules/.vite/deps/{chunk-675LFNY2.js.map → chunk-EVJ3DVH5.js.map} +0 -0
package/README.md
CHANGED
|
@@ -36,7 +36,11 @@ Quickstart, build, and test your ChatGPT App locally with OpenAI apps-sdk-ui Rea
|
|
|
36
36
|
Requirements: Node (20+), pnpm (10+)
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
|
|
39
|
+
# Install the CLI globally
|
|
40
|
+
pnpm add -g sunpeak
|
|
41
|
+
|
|
42
|
+
# Create a new project
|
|
43
|
+
sunpeak new
|
|
40
44
|
```
|
|
41
45
|
|
|
42
46
|
To add sunpeak to an existing project, refer to the [documentation](https://docs.sunpeak.ai/add-to-existing-project).
|
package/bin/sunpeak.js
CHANGED
|
@@ -105,10 +105,18 @@ async function init(projectName) {
|
|
|
105
105
|
console.log(`
|
|
106
106
|
Done! To get started:
|
|
107
107
|
|
|
108
|
+
# Install the CLI (if not already installed)
|
|
109
|
+
pnpm add -g sunpeak
|
|
110
|
+
|
|
111
|
+
# Navigate to your project and install dependencies
|
|
108
112
|
cd ${projectName}
|
|
109
113
|
pnpm install
|
|
114
|
+
|
|
115
|
+
# Start development
|
|
110
116
|
sunpeak dev
|
|
111
117
|
|
|
118
|
+
Alternatively, use "pnpm dlx sunpeak dev" if you prefer not to install globally.
|
|
119
|
+
|
|
112
120
|
See README.md for more details.
|
|
113
121
|
`);
|
|
114
122
|
}
|
package/package.json
CHANGED
package/template/README.md
CHANGED
|
@@ -7,10 +7,18 @@ For an initial overview of your new app and the sunpeak API, refer to the [docum
|
|
|
7
7
|
## Quickstart
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
+
# Install the sunpeak CLI (if not already installed)
|
|
11
|
+
pnpm add -g sunpeak
|
|
12
|
+
|
|
13
|
+
# Install project dependencies
|
|
10
14
|
pnpm install
|
|
15
|
+
|
|
16
|
+
# Start development server
|
|
11
17
|
sunpeak dev
|
|
12
18
|
```
|
|
13
19
|
|
|
20
|
+
Alternatively, use `pnpm dlx sunpeak dev` if you prefer not to install globally.
|
|
21
|
+
|
|
14
22
|
Edit the resource files in [./src/components/resources/](./src/components/resources/) to build your resource UI.
|
|
15
23
|
|
|
16
24
|
## CLI Commands
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
Button,
|
|
3
3
|
ButtonLink,
|
|
4
4
|
CopyButton
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-QPJAV452.js";
|
|
7
|
-
import "./chunk-XB525PXG.js";
|
|
5
|
+
} from "./chunk-EVJ3DVH5.js";
|
|
8
6
|
import "./chunk-YOJ6QPGS.js";
|
|
9
7
|
import "./chunk-BAG6OO6S.js";
|
|
8
|
+
import "./chunk-XB525PXG.js";
|
|
9
|
+
import "./chunk-QPJAV452.js";
|
|
10
10
|
import "./chunk-EGRHWZRV.js";
|
|
11
11
|
import "./chunk-CNYJBM5F.js";
|
|
12
12
|
import "./chunk-PTVT3RFX.js";
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
handlePressableMouseEnter,
|
|
6
6
|
waitForAnimationFrame
|
|
7
7
|
} from "./chunk-BAG6OO6S.js";
|
|
8
|
-
import "./chunk-EGRHWZRV.js";
|
|
9
8
|
import {
|
|
10
9
|
dist_exports4 as dist_exports
|
|
11
10
|
} from "./chunk-SGWD4VEU.js";
|
|
12
11
|
import "./chunk-KFGKZMLK.js";
|
|
12
|
+
import "./chunk-EGRHWZRV.js";
|
|
13
13
|
import {
|
|
14
14
|
clsx_default
|
|
15
15
|
} from "./chunk-CNYJBM5F.js";
|
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Input
|
|
3
|
-
} from "./chunk-CQ3GYAYB.js";
|
|
4
1
|
import {
|
|
5
2
|
Button,
|
|
6
3
|
LoadingIndicator,
|
|
7
4
|
TransitionGroup
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
o
|
|
11
|
-
} from "./chunk-QPJAV452.js";
|
|
12
|
-
import {
|
|
13
|
-
Check_default,
|
|
14
|
-
ChevronDownVector_default,
|
|
15
|
-
DropdownVector_default,
|
|
16
|
-
Info_default,
|
|
17
|
-
Search_default,
|
|
18
|
-
X_default
|
|
19
|
-
} from "./chunk-XB525PXG.js";
|
|
5
|
+
} from "./chunk-EVJ3DVH5.js";
|
|
20
6
|
import {
|
|
21
7
|
useTimeout
|
|
22
8
|
} from "./chunk-YOJ6QPGS.js";
|
|
@@ -26,13 +12,27 @@ import {
|
|
|
26
12
|
toCssVariables,
|
|
27
13
|
waitForAnimationFrame
|
|
28
14
|
} from "./chunk-BAG6OO6S.js";
|
|
29
|
-
import "./chunk-EGRHWZRV.js";
|
|
30
15
|
import {
|
|
31
16
|
dist_exports,
|
|
32
17
|
dist_exports3 as dist_exports2,
|
|
33
18
|
dist_exports5 as dist_exports3
|
|
34
19
|
} from "./chunk-SGWD4VEU.js";
|
|
35
20
|
import "./chunk-KFGKZMLK.js";
|
|
21
|
+
import {
|
|
22
|
+
Check_default,
|
|
23
|
+
ChevronDownVector_default,
|
|
24
|
+
DropdownVector_default,
|
|
25
|
+
Info_default,
|
|
26
|
+
Search_default,
|
|
27
|
+
X_default
|
|
28
|
+
} from "./chunk-XB525PXG.js";
|
|
29
|
+
import {
|
|
30
|
+
Input
|
|
31
|
+
} from "./chunk-CQ3GYAYB.js";
|
|
32
|
+
import {
|
|
33
|
+
o
|
|
34
|
+
} from "./chunk-QPJAV452.js";
|
|
35
|
+
import "./chunk-EGRHWZRV.js";
|
|
36
36
|
import {
|
|
37
37
|
clsx_default
|
|
38
38
|
} from "./chunk-CNYJBM5F.js";
|
|
@@ -7,118 +7,109 @@
|
|
|
7
7
|
"react": {
|
|
8
8
|
"src": "../../../../node_modules/.pnpm/react@19.2.0/node_modules/react/index.js",
|
|
9
9
|
"file": "react.js",
|
|
10
|
-
"fileHash": "
|
|
10
|
+
"fileHash": "e2577cb9",
|
|
11
11
|
"needsInterop": true
|
|
12
12
|
},
|
|
13
13
|
"react-dom": {
|
|
14
14
|
"src": "../../../../node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/index.js",
|
|
15
15
|
"file": "react-dom.js",
|
|
16
|
-
"fileHash": "
|
|
16
|
+
"fileHash": "38503a63",
|
|
17
17
|
"needsInterop": true
|
|
18
18
|
},
|
|
19
19
|
"react/jsx-dev-runtime": {
|
|
20
20
|
"src": "../../../../node_modules/.pnpm/react@19.2.0/node_modules/react/jsx-dev-runtime.js",
|
|
21
21
|
"file": "react_jsx-dev-runtime.js",
|
|
22
|
-
"fileHash": "
|
|
22
|
+
"fileHash": "7c996318",
|
|
23
23
|
"needsInterop": true
|
|
24
24
|
},
|
|
25
25
|
"react/jsx-runtime": {
|
|
26
26
|
"src": "../../../../node_modules/.pnpm/react@19.2.0/node_modules/react/jsx-runtime.js",
|
|
27
27
|
"file": "react_jsx-runtime.js",
|
|
28
|
-
"fileHash": "
|
|
28
|
+
"fileHash": "aec1b650",
|
|
29
29
|
"needsInterop": true
|
|
30
30
|
},
|
|
31
31
|
"@openai/apps-sdk-ui/components/Button": {
|
|
32
32
|
"src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.0_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._60630c8dcc43ec213b3e346c9e26579b/node_modules/@openai/apps-sdk-ui/dist/es/components/Button/index.js",
|
|
33
33
|
"file": "@openai_apps-sdk-ui_components_Button.js",
|
|
34
|
-
"fileHash": "
|
|
34
|
+
"fileHash": "dace3d9f",
|
|
35
35
|
"needsInterop": false
|
|
36
36
|
},
|
|
37
37
|
"@openai/apps-sdk-ui/components/Checkbox": {
|
|
38
38
|
"src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.0_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._60630c8dcc43ec213b3e346c9e26579b/node_modules/@openai/apps-sdk-ui/dist/es/components/Checkbox/index.js",
|
|
39
39
|
"file": "@openai_apps-sdk-ui_components_Checkbox.js",
|
|
40
|
-
"fileHash": "
|
|
40
|
+
"fileHash": "b32818ca",
|
|
41
41
|
"needsInterop": false
|
|
42
42
|
},
|
|
43
43
|
"@openai/apps-sdk-ui/components/Icon": {
|
|
44
44
|
"src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.0_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._60630c8dcc43ec213b3e346c9e26579b/node_modules/@openai/apps-sdk-ui/dist/es/components/Icon/index.js",
|
|
45
45
|
"file": "@openai_apps-sdk-ui_components_Icon.js",
|
|
46
|
-
"fileHash": "
|
|
46
|
+
"fileHash": "3a63771d",
|
|
47
47
|
"needsInterop": false
|
|
48
48
|
},
|
|
49
49
|
"@openai/apps-sdk-ui/components/Input": {
|
|
50
50
|
"src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.0_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._60630c8dcc43ec213b3e346c9e26579b/node_modules/@openai/apps-sdk-ui/dist/es/components/Input/index.js",
|
|
51
51
|
"file": "@openai_apps-sdk-ui_components_Input.js",
|
|
52
|
-
"fileHash": "
|
|
52
|
+
"fileHash": "c4f2373d",
|
|
53
53
|
"needsInterop": false
|
|
54
54
|
},
|
|
55
55
|
"@openai/apps-sdk-ui/components/SegmentedControl": {
|
|
56
56
|
"src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.0_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._60630c8dcc43ec213b3e346c9e26579b/node_modules/@openai/apps-sdk-ui/dist/es/components/SegmentedControl/index.js",
|
|
57
57
|
"file": "@openai_apps-sdk-ui_components_SegmentedControl.js",
|
|
58
|
-
"fileHash": "
|
|
58
|
+
"fileHash": "9f29258f",
|
|
59
59
|
"needsInterop": false
|
|
60
60
|
},
|
|
61
61
|
"@openai/apps-sdk-ui/components/Select": {
|
|
62
62
|
"src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.0_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._60630c8dcc43ec213b3e346c9e26579b/node_modules/@openai/apps-sdk-ui/dist/es/components/Select/index.js",
|
|
63
63
|
"file": "@openai_apps-sdk-ui_components_Select.js",
|
|
64
|
-
"fileHash": "
|
|
64
|
+
"fileHash": "ba414e88",
|
|
65
65
|
"needsInterop": false
|
|
66
66
|
},
|
|
67
67
|
"@openai/apps-sdk-ui/components/Textarea": {
|
|
68
68
|
"src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.0_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._60630c8dcc43ec213b3e346c9e26579b/node_modules/@openai/apps-sdk-ui/dist/es/components/Textarea/index.js",
|
|
69
69
|
"file": "@openai_apps-sdk-ui_components_Textarea.js",
|
|
70
|
-
"fileHash": "
|
|
70
|
+
"fileHash": "fc2482f4",
|
|
71
71
|
"needsInterop": false
|
|
72
72
|
},
|
|
73
73
|
"@openai/apps-sdk-ui/theme": {
|
|
74
74
|
"src": "../../../../node_modules/.pnpm/@openai+apps-sdk-ui@0.2.0_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@19._60630c8dcc43ec213b3e346c9e26579b/node_modules/@openai/apps-sdk-ui/dist/es/lib/theme.js",
|
|
75
75
|
"file": "@openai_apps-sdk-ui_theme.js",
|
|
76
|
-
"fileHash": "
|
|
76
|
+
"fileHash": "3444fac3",
|
|
77
77
|
"needsInterop": false
|
|
78
78
|
},
|
|
79
79
|
"clsx": {
|
|
80
80
|
"src": "../../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs",
|
|
81
81
|
"file": "clsx.js",
|
|
82
|
-
"fileHash": "
|
|
82
|
+
"fileHash": "9e11e752",
|
|
83
83
|
"needsInterop": false
|
|
84
84
|
},
|
|
85
85
|
"embla-carousel-react": {
|
|
86
86
|
"src": "../../../../node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.0/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js",
|
|
87
87
|
"file": "embla-carousel-react.js",
|
|
88
|
-
"fileHash": "
|
|
88
|
+
"fileHash": "8184dc6a",
|
|
89
89
|
"needsInterop": false
|
|
90
90
|
},
|
|
91
91
|
"embla-carousel-wheel-gestures": {
|
|
92
92
|
"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",
|
|
93
93
|
"file": "embla-carousel-wheel-gestures.js",
|
|
94
|
-
"fileHash": "
|
|
94
|
+
"fileHash": "b00dfc62",
|
|
95
95
|
"needsInterop": false
|
|
96
96
|
},
|
|
97
97
|
"react-dom/client": {
|
|
98
98
|
"src": "../../../../node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/client.js",
|
|
99
99
|
"file": "react-dom_client.js",
|
|
100
|
-
"fileHash": "
|
|
100
|
+
"fileHash": "7b740e30",
|
|
101
101
|
"needsInterop": true
|
|
102
102
|
},
|
|
103
103
|
"tailwind-merge": {
|
|
104
104
|
"src": "../../../../node_modules/.pnpm/tailwind-merge@3.4.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs",
|
|
105
105
|
"file": "tailwind-merge.js",
|
|
106
|
-
"fileHash": "
|
|
106
|
+
"fileHash": "f131803a",
|
|
107
107
|
"needsInterop": false
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
"chunks": {
|
|
111
|
-
"chunk-
|
|
112
|
-
"file": "chunk-
|
|
113
|
-
},
|
|
114
|
-
"chunk-675LFNY2": {
|
|
115
|
-
"file": "chunk-675LFNY2.js"
|
|
116
|
-
},
|
|
117
|
-
"chunk-QPJAV452": {
|
|
118
|
-
"file": "chunk-QPJAV452.js"
|
|
119
|
-
},
|
|
120
|
-
"chunk-XB525PXG": {
|
|
121
|
-
"file": "chunk-XB525PXG.js"
|
|
111
|
+
"chunk-EVJ3DVH5": {
|
|
112
|
+
"file": "chunk-EVJ3DVH5.js"
|
|
122
113
|
},
|
|
123
114
|
"chunk-YOJ6QPGS": {
|
|
124
115
|
"file": "chunk-YOJ6QPGS.js"
|
|
@@ -126,15 +117,24 @@
|
|
|
126
117
|
"chunk-BAG6OO6S": {
|
|
127
118
|
"file": "chunk-BAG6OO6S.js"
|
|
128
119
|
},
|
|
129
|
-
"chunk-EGRHWZRV": {
|
|
130
|
-
"file": "chunk-EGRHWZRV.js"
|
|
131
|
-
},
|
|
132
120
|
"chunk-SGWD4VEU": {
|
|
133
121
|
"file": "chunk-SGWD4VEU.js"
|
|
134
122
|
},
|
|
135
123
|
"chunk-KFGKZMLK": {
|
|
136
124
|
"file": "chunk-KFGKZMLK.js"
|
|
137
125
|
},
|
|
126
|
+
"chunk-XB525PXG": {
|
|
127
|
+
"file": "chunk-XB525PXG.js"
|
|
128
|
+
},
|
|
129
|
+
"chunk-CQ3GYAYB": {
|
|
130
|
+
"file": "chunk-CQ3GYAYB.js"
|
|
131
|
+
},
|
|
132
|
+
"chunk-QPJAV452": {
|
|
133
|
+
"file": "chunk-QPJAV452.js"
|
|
134
|
+
},
|
|
135
|
+
"chunk-EGRHWZRV": {
|
|
136
|
+
"file": "chunk-EGRHWZRV.js"
|
|
137
|
+
},
|
|
138
138
|
"chunk-CNYJBM5F": {
|
|
139
139
|
"file": "chunk-CNYJBM5F.js"
|
|
140
140
|
},
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
o
|
|
3
|
-
} from "./chunk-QPJAV452.js";
|
|
4
|
-
import {
|
|
5
|
-
Check_default,
|
|
6
|
-
Copy_default
|
|
7
|
-
} from "./chunk-XB525PXG.js";
|
|
8
1
|
import {
|
|
9
2
|
useTimeout
|
|
10
3
|
} from "./chunk-YOJ6QPGS.js";
|
|
@@ -19,6 +12,13 @@ import {
|
|
|
19
12
|
toTransformProperty,
|
|
20
13
|
waitForAnimationFrame
|
|
21
14
|
} from "./chunk-BAG6OO6S.js";
|
|
15
|
+
import {
|
|
16
|
+
Check_default,
|
|
17
|
+
Copy_default
|
|
18
|
+
} from "./chunk-XB525PXG.js";
|
|
19
|
+
import {
|
|
20
|
+
o
|
|
21
|
+
} from "./chunk-QPJAV452.js";
|
|
22
22
|
import {
|
|
23
23
|
clsx_default
|
|
24
24
|
} from "./chunk-CNYJBM5F.js";
|
|
@@ -625,4 +625,4 @@ export {
|
|
|
625
625
|
ButtonLink,
|
|
626
626
|
CopyButton
|
|
627
627
|
};
|
|
628
|
-
//# sourceMappingURL=chunk-
|
|
628
|
+
//# sourceMappingURL=chunk-EVJ3DVH5.js.map
|
package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"4.0.13","results":[[":src/components/
|
|
1
|
+
{"version":"4.0.13","results":[[":src/components/album/fullscreen-viewer.test.tsx",{"duration":247.92236500000035,"failed":false}],[":src/components/resources/carousel-resource.test.tsx",{"duration":291.96899399999984,"failed":false}],[":src/components/album/albums.test.tsx",{"duration":372.5832929999999,"failed":false}],[":src/components/carousel/carousel.test.tsx",{"duration":75.39571799999976,"failed":false}],[":src/components/resources/counter-resource.test.tsx",{"duration":325.86149399999977,"failed":false}],[":src/components/resources/albums-resource.test.tsx",{"duration":262.963896,"failed":false}],[":src/components/album/album-card.test.tsx",{"duration":342.73505,"failed":false}],[":src/components/album/film-strip.test.tsx",{"duration":404.68787,"failed":false}],[":src/components/card/card.test.tsx",{"duration":54.20477299999993,"failed":false}]]}
|
|
File without changes
|