sunpeak 0.7.11 → 0.8.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 -1
- package/bin/commands/deploy.mjs +18 -8
- package/bin/commands/login.mjs +73 -55
- package/bin/commands/logout.mjs +26 -12
- package/bin/commands/pull.mjs +60 -39
- package/bin/commands/push.mjs +73 -49
- package/bin/commands/upgrade.mjs +203 -0
- package/bin/sunpeak.js +62 -31
- package/dist/chatgpt/chatgpt-simulator.d.ts +2 -1
- package/dist/index.cjs +9 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -12
- package/dist/index.js.map +1 -1
- package/dist/mcp/entry.cjs +41 -9
- package/dist/mcp/entry.cjs.map +1 -1
- package/dist/mcp/entry.js +42 -10
- package/dist/mcp/entry.js.map +1 -1
- package/dist/mcp/index.cjs +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/{server-CziiHU7V.cjs → server-B9YgCQdS.cjs} +3 -2
- package/dist/{server-CziiHU7V.cjs.map → server-B9YgCQdS.cjs.map} +1 -1
- package/dist/{server-D8kyzuiq.js → server-DVmTC-SF.js} +3 -2
- package/dist/{server-D8kyzuiq.js.map → server-DVmTC-SF.js.map} +1 -1
- package/dist/types/simulation.d.ts +1 -1
- package/package.json +1 -1
- package/template/.sunpeak/dev.tsx +78 -15
- package/template/.sunpeak/vite-env.d.ts +1 -0
- package/template/README.md +6 -6
- package/template/dist/albums.json +1 -1
- package/template/dist/carousel.json +1 -1
- package/template/dist/counter.json +1 -1
- package/template/dist/map.json +1 -1
- 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 +32 -32
- package/template/node_modules/.vite/deps/{chunk-N6DVYEXK.js → chunk-SPYXUHEY.js} +8 -8
- package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/template/src/components/map/map-view.test.tsx +1 -1
- package/template/src/components/map/map-view.tsx +1 -1
- package/template/src/components/map/map.tsx +1 -1
- package/template/src/components/map/place-card.test.tsx +1 -1
- package/template/src/components/map/place-card.tsx +1 -1
- package/template/src/components/map/place-carousel.test.tsx +1 -1
- package/template/src/components/map/place-carousel.tsx +1 -1
- package/template/src/components/map/place-inspector.test.tsx +1 -1
- package/template/src/components/map/place-inspector.tsx +1 -1
- package/template/src/components/map/place-list.test.tsx +1 -1
- package/template/src/components/map/place-list.tsx +1 -1
- package/template/src/components/map/types.ts +18 -0
- package/template/src/resources/index.ts +39 -4
- package/template/src/simulations/albums-show-simulation.json +131 -0
- package/template/src/simulations/carousel-show-simulation.json +68 -0
- package/template/src/simulations/counter-show-simulation.json +20 -0
- package/template/src/simulations/index.ts +17 -12
- package/template/src/simulations/map-show-simulation.json +123 -0
- package/template/src/vite-env.d.ts +1 -0
- package/template/tsconfig.json +1 -1
- package/template/src/simulations/albums-simulation.ts +0 -147
- package/template/src/simulations/carousel-simulation.ts +0 -84
- package/template/src/simulations/counter-simulation.ts +0 -34
- package/template/src/simulations/map-simulation.ts +0 -154
- /package/template/node_modules/.vite/deps/{chunk-N6DVYEXK.js.map → chunk-SPYXUHEY.js.map} +0 -0
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Server-safe configuration for the carousel simulation.
|
|
3
|
-
* This file contains only metadata and doesn't import React components or CSS.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import carouselResourceMeta from '../resources/carousel-resource.json';
|
|
7
|
-
|
|
8
|
-
const placesData = {
|
|
9
|
-
places: [
|
|
10
|
-
{
|
|
11
|
-
id: '1',
|
|
12
|
-
name: 'Lady Bird Lake',
|
|
13
|
-
rating: 4.5,
|
|
14
|
-
category: 'Waterfront',
|
|
15
|
-
location: 'Austin',
|
|
16
|
-
image: 'https://images.unsplash.com/photo-1520950237264-dfe336995c34?w=400&h=400&fit=crop',
|
|
17
|
-
description: 'Scenic lake perfect for kayaking, paddleboarding, and trails.',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
id: '2',
|
|
21
|
-
name: 'Texas State Capitol',
|
|
22
|
-
rating: 4.8,
|
|
23
|
-
category: 'Historic Site',
|
|
24
|
-
location: 'Austin',
|
|
25
|
-
image: 'https://images.unsplash.com/photo-1664231978322-4d0b45c7027b?w=400&h=400&fit=crop',
|
|
26
|
-
description: 'Stunning capitol building with free tours and beautiful grounds.',
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
id: '3',
|
|
30
|
-
name: 'The Paramount Theatre',
|
|
31
|
-
rating: 4.7,
|
|
32
|
-
category: 'Architecture',
|
|
33
|
-
location: 'Austin',
|
|
34
|
-
image: 'https://images.unsplash.com/photo-1583097090970-4d3b940ea1a0?w=400&h=400&fit=crop',
|
|
35
|
-
description: 'Century-old performance and movie theatre in the heart of downtown Austin.',
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
id: '4',
|
|
39
|
-
name: 'Zilker Park',
|
|
40
|
-
rating: 4.7,
|
|
41
|
-
category: 'Park',
|
|
42
|
-
location: 'Austin',
|
|
43
|
-
image: 'https://images.unsplash.com/photo-1563828568124-f800803ba13c?w=400&h=400&fit=crop',
|
|
44
|
-
description: 'Popular park with trails, sports fields, and Barton Springs Pool.',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
id: '5',
|
|
48
|
-
name: 'South Congress Avenue',
|
|
49
|
-
rating: 4.6,
|
|
50
|
-
category: 'Landmark',
|
|
51
|
-
location: 'Austin',
|
|
52
|
-
image: 'https://images.unsplash.com/photo-1588993608283-7f0eda4438be?w=400&h=400&fit=crop',
|
|
53
|
-
description: 'Vibrant street with unique shops, restaurants, and live music.',
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export const carouselSimulation = {
|
|
59
|
-
userMessage: 'Show me popular places to visit in Austin Texas',
|
|
60
|
-
|
|
61
|
-
// MCP Tool protocol - official Tool type from MCP SDK used in ListTools response
|
|
62
|
-
tool: {
|
|
63
|
-
name: 'show-carousel',
|
|
64
|
-
description: 'Show popular places to visit',
|
|
65
|
-
inputSchema: { type: 'object', properties: {}, additionalProperties: false } as const,
|
|
66
|
-
title: 'Show Carousel',
|
|
67
|
-
annotations: { readOnlyHint: true },
|
|
68
|
-
_meta: {
|
|
69
|
-
'openai/toolInvocation/invoking': 'Loading carousel',
|
|
70
|
-
'openai/toolInvocation/invoked': 'Carousel loaded',
|
|
71
|
-
'openai/widgetAccessible': true,
|
|
72
|
-
'openai/resultCanProduceWidget': true,
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
// MCP Resource protocol - imported from resource meta file
|
|
77
|
-
resource: carouselResourceMeta,
|
|
78
|
-
|
|
79
|
-
// MCP CallTool protocol - data for CallTool response
|
|
80
|
-
toolCall: {
|
|
81
|
-
structuredContent: placesData,
|
|
82
|
-
_meta: {},
|
|
83
|
-
},
|
|
84
|
-
} as const;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Server-safe configuration for the counter simulation.
|
|
3
|
-
* This file contains only metadata and doesn't import React components or CSS.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import counterResourceMeta from '../resources/counter-resource.json';
|
|
7
|
-
|
|
8
|
-
export const counterSimulation = {
|
|
9
|
-
userMessage: 'Help me count something',
|
|
10
|
-
|
|
11
|
-
// MCP Tool protocol - official Tool type from MCP SDK used in ListTools response
|
|
12
|
-
tool: {
|
|
13
|
-
name: 'show-counter',
|
|
14
|
-
description: 'Show a simple counter tool',
|
|
15
|
-
inputSchema: { type: 'object', properties: {}, additionalProperties: false } as const,
|
|
16
|
-
title: 'Show Counter',
|
|
17
|
-
annotations: { readOnlyHint: true },
|
|
18
|
-
_meta: {
|
|
19
|
-
'openai/toolInvocation/invoking': 'Counting beans',
|
|
20
|
-
'openai/toolInvocation/invoked': 'Beans counted',
|
|
21
|
-
'openai/widgetAccessible': true,
|
|
22
|
-
'openai/resultCanProduceWidget': true,
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
// MCP Resource protocol - imported from resource meta file
|
|
27
|
-
resource: counterResourceMeta,
|
|
28
|
-
|
|
29
|
-
// MCP CallTool protocol - data for CallTool response
|
|
30
|
-
toolCall: {
|
|
31
|
-
structuredContent: null,
|
|
32
|
-
_meta: {},
|
|
33
|
-
},
|
|
34
|
-
} as const;
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Server-safe configuration for the map simulation.
|
|
3
|
-
* This file contains only metadata and doesn't import React components or CSS.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import mapResourceMeta from '../resources/map-resource.json';
|
|
7
|
-
|
|
8
|
-
export interface Place {
|
|
9
|
-
id: string;
|
|
10
|
-
name: string;
|
|
11
|
-
coords: [number, number];
|
|
12
|
-
description: string;
|
|
13
|
-
city: string;
|
|
14
|
-
rating: number;
|
|
15
|
-
price: string;
|
|
16
|
-
thumbnail: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface MapData extends Record<string, unknown> {
|
|
20
|
-
places: Place[];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const mapData: MapData = {
|
|
24
|
-
places: [
|
|
25
|
-
{
|
|
26
|
-
id: 'nova-slice-lab',
|
|
27
|
-
name: 'Nova Slice Lab',
|
|
28
|
-
coords: [-122.4098, 37.8001],
|
|
29
|
-
description: 'Award-winning Neapolitan pies in North Beach.',
|
|
30
|
-
city: 'North Beach',
|
|
31
|
-
rating: 4.8,
|
|
32
|
-
price: '$$$',
|
|
33
|
-
thumbnail: 'https://persistent.oaistatic.com/pizzaz/pizzaz-1.png',
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
id: 'midnight-marinara',
|
|
37
|
-
name: 'Midnight Marinara',
|
|
38
|
-
coords: [-122.4093, 37.799],
|
|
39
|
-
description: 'Focaccia-style squares, late-night favorite.',
|
|
40
|
-
city: 'North Beach',
|
|
41
|
-
rating: 4.6,
|
|
42
|
-
price: '$',
|
|
43
|
-
thumbnail: 'https://persistent.oaistatic.com/pizzaz/pizzaz-2.png',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
id: 'cinder-oven-co',
|
|
47
|
-
name: 'Cinder Oven Co.',
|
|
48
|
-
coords: [-122.4255, 37.7613],
|
|
49
|
-
description: 'Thin-crust classics on 18th Street.',
|
|
50
|
-
city: 'Mission',
|
|
51
|
-
rating: 4.5,
|
|
52
|
-
price: '$$',
|
|
53
|
-
thumbnail: 'https://persistent.oaistatic.com/pizzaz/pizzaz-3.png',
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
id: 'neon-crust-works',
|
|
57
|
-
name: 'Neon Crust Works',
|
|
58
|
-
coords: [-122.4388, 37.7775],
|
|
59
|
-
description: 'Deep-dish and cornmeal crust favorites.',
|
|
60
|
-
city: 'Alamo Square',
|
|
61
|
-
rating: 4.5,
|
|
62
|
-
price: '$$',
|
|
63
|
-
thumbnail: 'https://persistent.oaistatic.com/pizzaz/pizzaz-6.png',
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
id: 'luna-pie-collective',
|
|
67
|
-
name: 'Luna Pie Collective',
|
|
68
|
-
coords: [-122.4077, 37.799],
|
|
69
|
-
description: 'Wood-fired pies and burrata in North Beach.',
|
|
70
|
-
city: 'North Beach',
|
|
71
|
-
rating: 4.6,
|
|
72
|
-
price: '$$',
|
|
73
|
-
thumbnail: 'https://persistent.oaistatic.com/pizzaz/pizzaz-4.png',
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
id: 'bricklight-deep-dish',
|
|
77
|
-
name: 'Bricklight Deep Dish',
|
|
78
|
-
coords: [-122.4097, 37.7992],
|
|
79
|
-
description: 'Chicago-style pies from Tony Gemignani.',
|
|
80
|
-
city: 'North Beach',
|
|
81
|
-
rating: 4.4,
|
|
82
|
-
price: '$$$',
|
|
83
|
-
thumbnail: 'https://persistent.oaistatic.com/pizzaz/pizzaz-5.png',
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
id: 'garden-ember-pies',
|
|
87
|
-
name: 'Garden Ember Pies',
|
|
88
|
-
coords: [-122.438, 37.7722],
|
|
89
|
-
description: 'Neighborhood spot with seasonal toppings.',
|
|
90
|
-
city: 'Lower Haight',
|
|
91
|
-
rating: 4.4,
|
|
92
|
-
price: '$$',
|
|
93
|
-
thumbnail: 'https://persistent.oaistatic.com/pizzaz/pizzaz-1.png',
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
id: 'atlas-fire-pizzeria',
|
|
97
|
-
name: 'Atlas Fire Pizzeria',
|
|
98
|
-
coords: [-122.4123, 37.7899],
|
|
99
|
-
description: 'Sourdough, wood-fired pies near Nob Hill.',
|
|
100
|
-
city: 'Nob Hill',
|
|
101
|
-
rating: 4.6,
|
|
102
|
-
price: '$$$',
|
|
103
|
-
thumbnail: 'https://persistent.oaistatic.com/pizzaz/pizzaz-2.png',
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
id: 'circuit-slice-garage',
|
|
107
|
-
name: 'Circuit Slice Garage',
|
|
108
|
-
coords: [-122.4135, 37.7805],
|
|
109
|
-
description: 'Crispy-edged Detroit-style in SoMa.',
|
|
110
|
-
city: 'SoMa',
|
|
111
|
-
rating: 4.5,
|
|
112
|
-
price: '$$',
|
|
113
|
-
thumbnail: 'https://persistent.oaistatic.com/pizzaz/pizzaz-3.png',
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
id: 'velvet-mozza-lounge',
|
|
117
|
-
name: 'Velvet Mozza Lounge',
|
|
118
|
-
coords: [-122.4019, 37.7818],
|
|
119
|
-
description: 'Bianca pies and cocktails near Yerba Buena.',
|
|
120
|
-
city: 'Yerba Buena',
|
|
121
|
-
rating: 4.3,
|
|
122
|
-
price: '$$',
|
|
123
|
-
thumbnail: 'https://persistent.oaistatic.com/pizzaz/pizzaz-6.png',
|
|
124
|
-
},
|
|
125
|
-
],
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
export const mapSimulation = {
|
|
129
|
-
userMessage: 'Find pizza near me',
|
|
130
|
-
|
|
131
|
-
// MCP Tool protocol - official Tool type from MCP SDK used in ListTools response
|
|
132
|
-
tool: {
|
|
133
|
-
name: 'show-map',
|
|
134
|
-
description: 'Show the map',
|
|
135
|
-
inputSchema: { type: 'object', properties: {}, additionalProperties: false } as const,
|
|
136
|
-
title: 'Find Pizza',
|
|
137
|
-
annotations: { readOnlyHint: true },
|
|
138
|
-
_meta: {
|
|
139
|
-
'openai/toolInvocation/invoking': 'Finding pizza places',
|
|
140
|
-
'openai/toolInvocation/invoked': 'Found pizza places',
|
|
141
|
-
'openai/widgetAccessible': true,
|
|
142
|
-
'openai/resultCanProduceWidget': true,
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
|
|
146
|
-
// MCP Resource protocol - imported from resource meta file
|
|
147
|
-
resource: mapResourceMeta,
|
|
148
|
-
|
|
149
|
-
// MCP CallTool protocol - data for CallTool response
|
|
150
|
-
toolCall: {
|
|
151
|
-
structuredContent: mapData,
|
|
152
|
-
_meta: {},
|
|
153
|
-
},
|
|
154
|
-
} as const;
|
|
File without changes
|