sunpeak 0.4.1 → 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.
- package/README.md +2 -2
- package/bin/sunpeak.js +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/template/README.md +1 -1
- package/template/dev/main.tsx +3 -1
- package/template/mcp/server.ts +5 -9
- package/template/src/components/album/albums.tsx +7 -7
- package/template/src/components/apps/AlbumsApp.tsx +13 -0
- package/template/src/{App.tsx → components/apps/App.tsx} +2 -3
- package/template/src/components/{simulations/carousel-simulation.tsx → apps/PlacesApp.tsx} +11 -17
- package/template/src/components/apps/active-app.ts +11 -0
- package/template/src/components/apps/index.ts +3 -0
- package/template/src/components/card/card.tsx +4 -0
- package/template/src/components/index.ts +1 -1
- package/template/src/index.chatgpt.tsx +4 -3
- package/template/src/index.ts +0 -1
- package/template/src/simulations/albums-simulation.ts +129 -0
- package/template/src/simulations/app-configs.ts +30 -0
- package/template/src/simulations/app-simulation.ts +15 -0
- package/template/src/simulations/carousel-simulation.ts +66 -0
- package/template/src/simulations/index.ts +16 -0
- package/template/src/simulations/simulations.ts +74 -0
- package/template/src/styles/globals.css +2 -0
- package/template/data/albums.json +0 -112
- package/template/data/places.json +0 -49
- package/template/src/components/simulations/albums-simulation.tsx +0 -20
- package/template/src/components/simulations/app-simulation.tsx +0 -13
- package/template/src/components/simulations/index.tsx +0 -14
package/README.md
CHANGED
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
[](https://www.typescriptlang.org/)
|
|
16
16
|
[](https://reactjs.org/)
|
|
17
17
|
|
|
18
|
-
The
|
|
18
|
+
The MCP App SDK.
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Quickstart, build, and test your ChatGPT App locally with OpenAI apps-sdk-ui React components.
|
|
21
21
|
|
|
22
22
|
[Documentation](https://docs.sunpeak.ai/)
|
|
23
23
|
|
package/bin/sunpeak.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -3395,9 +3395,9 @@ const SCREEN_WIDTHS = {
|
|
|
3395
3395
|
function Conversation({
|
|
3396
3396
|
children,
|
|
3397
3397
|
screenWidth,
|
|
3398
|
-
appName = "
|
|
3398
|
+
appName = "sunpeak",
|
|
3399
3399
|
appIcon,
|
|
3400
|
-
userMessage = "
|
|
3400
|
+
userMessage = "What have you got for me today?"
|
|
3401
3401
|
}) {
|
|
3402
3402
|
const displayMode = useDisplayMode() ?? "inline";
|
|
3403
3403
|
const containerWidth = screenWidth === "full" ? "100%" : `${SCREEN_WIDTHS[screenWidth]}px`;
|
|
@@ -3405,7 +3405,7 @@ function Conversation({
|
|
|
3405
3405
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col bg-surface w-full flex-1", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 overflow-auto", children }) });
|
|
3406
3406
|
}
|
|
3407
3407
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col bg-surface w-full h-full flex-1", children: [
|
|
3408
|
-
/* @__PURE__ */ jsxRuntime.jsx("header", { className: "h-12 border-b border-subtle bg-surface flex items-center px-4 text-lg", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-foreground", children: "
|
|
3408
|
+
/* @__PURE__ */ jsxRuntime.jsx("header", { className: "h-12 border-b border-subtle bg-surface flex items-center px-4 text-lg", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-foreground", children: "SimGPT" }) }),
|
|
3409
3409
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3410
3410
|
"div",
|
|
3411
3411
|
{
|
|
@@ -3476,7 +3476,7 @@ function Conversation({
|
|
|
3476
3476
|
type: "text",
|
|
3477
3477
|
name: "userInput",
|
|
3478
3478
|
disabled: true,
|
|
3479
|
-
placeholder: "Message
|
|
3479
|
+
placeholder: "Message SimGPT",
|
|
3480
3480
|
className: "w-full bg-[var(--color-background-primary)] dark:bg-[#303030] text-secondary-foreground placeholder:text-muted-foreground rounded-3xl px-5 py-3 pr-12 shadow-md light:border border-[#0000000f]"
|
|
3481
3481
|
}
|
|
3482
3482
|
) }) }) })
|