sunpeak 0.4.2 → 0.5.1
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/chatgpt/chatgpt-simulator-types.d.ts +1 -1
- package/dist/chatgpt/chatgpt-simulator.d.ts +4 -15
- package/dist/chatgpt/index.d.ts +1 -1
- package/dist/chatgpt/mock-openai.d.ts +4 -16
- package/dist/index.cjs +70 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +70 -42
- package/dist/index.js.map +1 -1
- package/dist/mcp/index.cjs +45 -112
- package/dist/mcp/index.cjs.map +1 -1
- package/dist/mcp/index.d.ts +2 -1
- package/dist/mcp/index.js +45 -112
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/server.d.ts +2 -4
- package/dist/mcp/types.d.ts +16 -62
- package/dist/providers/index.d.ts +1 -3
- package/dist/providers/openai/index.d.ts +7 -0
- package/dist/{chatgpt/openai-provider.d.ts → providers/openai/provider.d.ts} +1 -1
- package/dist/{chatgpt/openai-types.d.ts → providers/openai/types.d.ts} +3 -32
- package/dist/providers/types.d.ts +4 -5
- package/dist/runtime/index.d.ts +7 -0
- package/dist/runtime/provider-detection.d.ts +17 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/runtime.d.ts +34 -0
- package/dist/types/simulation.d.ts +47 -0
- package/package.json +2 -2
- package/template/README.md +1 -1
- package/template/dev/main.tsx +6 -2
- package/template/mcp/server.ts +8 -9
- package/template/package.json +1 -1
- package/template/scripts/build-all.mjs +43 -0
- package/template/scripts/validate.mjs +16 -7
- package/template/src/components/album/albums.tsx +7 -7
- package/template/src/components/card/card.tsx +4 -0
- package/template/src/components/index.ts +1 -1
- package/template/src/components/resources/AlbumsResource.tsx +13 -0
- package/template/src/{App.tsx → components/resources/CounterResource.tsx} +5 -14
- package/template/src/components/{simulations/carousel-simulation.tsx → resources/PlacesResource.tsx} +11 -17
- package/template/src/components/resources/index.ts +3 -0
- package/template/src/index-albums.tsx +9 -0
- package/template/src/index-carousel.tsx +9 -0
- package/template/src/index-counter.tsx +9 -0
- package/template/src/simulations/albums-simulation.ts +157 -0
- package/template/src/simulations/carousel-simulation.ts +94 -0
- package/template/src/simulations/counter-simulation.ts +43 -0
- package/template/src/simulations/index.ts +11 -0
- package/template/src/simulations/simulation-configs.ts +23 -0
- package/template/src/simulations/simulations.ts +36 -0
- package/template/src/simulations/types.ts +12 -0
- package/template/vite.config.build.ts +20 -14
- package/dist/chatgpt/mcp-provider.d.ts +0 -25
- 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/template/src/index.chatgpt.tsx +0 -8
- package/template/src/index.ts +0 -3
|
@@ -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
|
-
]
|
package/template/src/index.ts
DELETED