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
package/README.md CHANGED
@@ -15,9 +15,9 @@
15
15
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.6-blue?style=flat-square&logo=typescript)](https://www.typescriptlang.org/)
16
16
  [![React](https://img.shields.io/badge/React-18%20%7C%2019-blue?style=flat-square&logo=react)](https://reactjs.org/)
17
17
 
18
- The ChatGPT Apps SDK.
18
+ The MCP App SDK.
19
19
 
20
- Build and test your MCP App UI locally with OpenAI apps-sdk-ui React components.
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
@@ -84,7 +84,7 @@ if (command === 'new') {
84
84
  init(args[0]);
85
85
  } else {
86
86
  console.log(`
87
- sunpeak - ChatGPT Apps UI SDK
87
+ sunpeak - The MCP App SDK
88
88
 
89
89
  Commands:
90
90
  new [name] Create a new project from template
package/dist/index.cjs CHANGED
@@ -3395,9 +3395,9 @@ const SCREEN_WIDTHS = {
3395
3395
  function Conversation({
3396
3396
  children,
3397
3397
  screenWidth,
3398
- appName = "ChatGPT",
3398
+ appName = "sunpeak",
3399
3399
  appIcon,
3400
- userMessage = "Show me some interesting places to visit."
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: "ChatGPT" }) }),
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 ChatGPT",
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
  ) }) }) })