sunpeak 0.7.11 → 0.8.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 (76) hide show
  1. package/README.md +2 -1
  2. package/bin/commands/deploy.mjs +18 -8
  3. package/bin/commands/dev.mjs +60 -4
  4. package/bin/commands/login.mjs +73 -55
  5. package/bin/commands/logout.mjs +26 -12
  6. package/bin/commands/mcp.mjs +1 -1
  7. package/bin/commands/pull.mjs +60 -39
  8. package/bin/commands/push.mjs +73 -49
  9. package/bin/commands/upgrade.mjs +203 -0
  10. package/bin/sunpeak.js +68 -35
  11. package/dist/chatgpt/chatgpt-simulator.d.ts +2 -1
  12. package/dist/index.cjs +13 -14
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.js +13 -14
  15. package/dist/index.js.map +1 -1
  16. package/dist/mcp/entry.cjs +41 -9
  17. package/dist/mcp/entry.cjs.map +1 -1
  18. package/dist/mcp/entry.js +42 -10
  19. package/dist/mcp/entry.js.map +1 -1
  20. package/dist/mcp/index.cjs +1 -1
  21. package/dist/mcp/index.js +1 -1
  22. package/dist/{server-CziiHU7V.cjs → server-B9YgCQdS.cjs} +3 -2
  23. package/dist/{server-CziiHU7V.cjs.map → server-B9YgCQdS.cjs.map} +1 -1
  24. package/dist/{server-D8kyzuiq.js → server-DVmTC-SF.js} +3 -2
  25. package/dist/{server-D8kyzuiq.js.map → server-DVmTC-SF.js.map} +1 -1
  26. package/dist/style.css +62 -0
  27. package/dist/types/simulation.d.ts +1 -1
  28. package/package.json +1 -1
  29. package/template/.sunpeak/dev.tsx +78 -15
  30. package/template/.sunpeak/vite-env.d.ts +1 -0
  31. package/template/README.md +35 -20
  32. package/template/dist/albums.js +1 -1
  33. package/template/dist/albums.json +3 -2
  34. package/template/dist/carousel.js +1 -1
  35. package/template/dist/carousel.json +3 -2
  36. package/template/dist/confirmation.js +49 -0
  37. package/template/dist/confirmation.json +16 -0
  38. package/template/dist/counter.js +1 -1
  39. package/template/dist/counter.json +7 -2
  40. package/template/dist/map.js +1 -1
  41. package/template/dist/map.json +6 -3
  42. package/template/node_modules/.vite/deps/_metadata.json +19 -19
  43. package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  44. package/template/src/components/map/map-view.test.tsx +1 -1
  45. package/template/src/components/map/map-view.tsx +1 -1
  46. package/template/src/components/map/map.tsx +1 -1
  47. package/template/src/components/map/place-card.test.tsx +1 -1
  48. package/template/src/components/map/place-card.tsx +1 -1
  49. package/template/src/components/map/place-carousel.test.tsx +1 -1
  50. package/template/src/components/map/place-carousel.tsx +1 -1
  51. package/template/src/components/map/place-inspector.test.tsx +1 -1
  52. package/template/src/components/map/place-inspector.tsx +1 -1
  53. package/template/src/components/map/place-list.test.tsx +1 -1
  54. package/template/src/components/map/place-list.tsx +1 -1
  55. package/template/src/components/map/types.ts +18 -0
  56. package/template/src/resources/albums-resource.json +1 -1
  57. package/template/src/resources/carousel-resource.json +1 -1
  58. package/template/src/resources/confirmation-resource.json +12 -0
  59. package/template/src/resources/confirmation-resource.tsx +479 -0
  60. package/template/src/resources/counter-resource.json +4 -1
  61. package/template/src/resources/index.ts +39 -4
  62. package/template/src/resources/map-resource.json +7 -2
  63. package/template/src/simulations/albums-show-simulation.json +131 -0
  64. package/template/src/simulations/carousel-show-simulation.json +68 -0
  65. package/template/src/simulations/confirmation-diff-simulation.json +80 -0
  66. package/template/src/simulations/confirmation-post-simulation.json +56 -0
  67. package/template/src/simulations/confirmation-purchase-simulation.json +88 -0
  68. package/template/src/simulations/counter-show-simulation.json +20 -0
  69. package/template/src/simulations/index.ts +17 -12
  70. package/template/src/simulations/map-show-simulation.json +123 -0
  71. package/template/src/vite-env.d.ts +1 -0
  72. package/template/tsconfig.json +1 -1
  73. package/template/src/simulations/albums-simulation.ts +0 -147
  74. package/template/src/simulations/carousel-simulation.ts +0 -84
  75. package/template/src/simulations/counter-simulation.ts +0 -34
  76. package/template/src/simulations/map-simulation.ts +0 -154
@@ -0,0 +1,68 @@
1
+ {
2
+ "userMessage": "Show me popular places to visit in Austin Texas",
3
+ "tool": {
4
+ "name": "show-carousel",
5
+ "description": "Show popular places to visit",
6
+ "inputSchema": { "type": "object", "properties": {}, "additionalProperties": false },
7
+ "title": "Show Carousel",
8
+ "annotations": { "readOnlyHint": true },
9
+ "_meta": {
10
+ "openai/toolInvocation/invoking": "Loading carousel",
11
+ "openai/toolInvocation/invoked": "Carousel loaded",
12
+ "openai/widgetAccessible": true,
13
+ "openai/resultCanProduceWidget": true
14
+ }
15
+ },
16
+ "toolCall": {
17
+ "structuredContent": {
18
+ "places": [
19
+ {
20
+ "id": "1",
21
+ "name": "Lady Bird Lake",
22
+ "rating": 4.5,
23
+ "category": "Waterfront",
24
+ "location": "Austin",
25
+ "image": "https://images.unsplash.com/photo-1520950237264-dfe336995c34?w=400&h=400&fit=crop",
26
+ "description": "Scenic lake perfect for kayaking, paddleboarding, and trails."
27
+ },
28
+ {
29
+ "id": "2",
30
+ "name": "Texas State Capitol",
31
+ "rating": 4.8,
32
+ "category": "Historic Site",
33
+ "location": "Austin",
34
+ "image": "https://images.unsplash.com/photo-1664231978322-4d0b45c7027b?w=400&h=400&fit=crop",
35
+ "description": "Stunning capitol building with free tours and beautiful grounds."
36
+ },
37
+ {
38
+ "id": "3",
39
+ "name": "The Paramount Theatre",
40
+ "rating": 4.7,
41
+ "category": "Architecture",
42
+ "location": "Austin",
43
+ "image": "https://images.unsplash.com/photo-1583097090970-4d3b940ea1a0?w=400&h=400&fit=crop",
44
+ "description": "Century-old performance and movie theatre in the heart of downtown Austin."
45
+ },
46
+ {
47
+ "id": "4",
48
+ "name": "Zilker Park",
49
+ "rating": 4.7,
50
+ "category": "Park",
51
+ "location": "Austin",
52
+ "image": "https://images.unsplash.com/photo-1563828568124-f800803ba13c?w=400&h=400&fit=crop",
53
+ "description": "Popular park with trails, sports fields, and Barton Springs Pool."
54
+ },
55
+ {
56
+ "id": "5",
57
+ "name": "South Congress Avenue",
58
+ "rating": 4.6,
59
+ "category": "Landmark",
60
+ "location": "Austin",
61
+ "image": "https://images.unsplash.com/photo-1588993608283-7f0eda4438be?w=400&h=400&fit=crop",
62
+ "description": "Vibrant street with unique shops, restaurants, and live music."
63
+ }
64
+ ]
65
+ },
66
+ "_meta": {}
67
+ }
68
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "userMessage": "I'd like to refactor the authentication module",
3
+ "tool": {
4
+ "name": "diff-confirmation",
5
+ "description": "Show a confirmation dialog for a proposed code diff",
6
+ "inputSchema": { "type": "object", "properties": {}, "additionalProperties": false },
7
+ "title": "Diff Confirmation",
8
+ "annotations": { "readOnlyHint": false },
9
+ "_meta": {
10
+ "openai/toolInvocation/invoking": "Preparing changes",
11
+ "openai/toolInvocation/invoked": "Changes ready for review",
12
+ "openai/widgetAccessible": true,
13
+ "openai/resultCanProduceWidget": true
14
+ }
15
+ },
16
+ "toolCall": {
17
+ "structuredContent": {
18
+ "title": "Refactor Authentication Module",
19
+ "description": "The following changes will update the authentication system to use JWT tokens instead of session-based auth.",
20
+ "sections": [
21
+ {
22
+ "title": "File Changes",
23
+ "type": "changes",
24
+ "content": [
25
+ {
26
+ "id": "1",
27
+ "type": "create",
28
+ "path": "src/lib/jwt.ts",
29
+ "description": "Create JWT utility functions",
30
+ "details": "Token generation, verification, and refresh logic"
31
+ },
32
+ {
33
+ "id": "2",
34
+ "type": "modify",
35
+ "path": "src/middleware/auth.ts",
36
+ "description": "Update auth middleware to use JWT",
37
+ "details": "Replace session checks with JWT verification"
38
+ },
39
+ {
40
+ "id": "3",
41
+ "type": "modify",
42
+ "path": "src/routes/login.ts",
43
+ "description": "Update login endpoint to return JWT tokens"
44
+ },
45
+ {
46
+ "id": "4",
47
+ "type": "delete",
48
+ "path": "src/lib/session.ts",
49
+ "description": "Remove deprecated session management",
50
+ "details": "No longer needed after JWT migration"
51
+ },
52
+ {
53
+ "id": "5",
54
+ "type": "action",
55
+ "description": "Run database migration for token storage",
56
+ "details": "Creates refresh_tokens table"
57
+ }
58
+ ]
59
+ }
60
+ ],
61
+ "acceptLabel": "Apply Changes",
62
+ "rejectLabel": "Cancel",
63
+ "acceptedMessage": "Changes applied",
64
+ "rejectedMessage": "Changes cancelled",
65
+ "confirmationTool": {
66
+ "name": "apply_changes",
67
+ "arguments": {
68
+ "changesetId": "cs_789",
69
+ "files": [
70
+ "src/lib/jwt.ts",
71
+ "src/middleware/auth.ts",
72
+ "src/routes/login.ts",
73
+ "src/lib/session.ts"
74
+ ]
75
+ }
76
+ }
77
+ },
78
+ "_meta": {}
79
+ }
80
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "userMessage": "Post this to my social media",
3
+ "tool": {
4
+ "name": "confirm-post",
5
+ "description": "Confirm a social media post before publishing",
6
+ "inputSchema": { "type": "object", "properties": {}, "additionalProperties": false },
7
+ "title": "Confirm Post",
8
+ "annotations": { "readOnlyHint": false },
9
+ "_meta": {
10
+ "openai/toolInvocation/invoking": "Preparing post",
11
+ "openai/toolInvocation/invoked": "Post ready for review",
12
+ "openai/widgetAccessible": true,
13
+ "openai/resultCanProduceWidget": true
14
+ }
15
+ },
16
+ "toolCall": {
17
+ "structuredContent": {
18
+ "title": "Review Your Post",
19
+ "description": "This post will be published to your connected accounts.",
20
+ "sections": [
21
+ {
22
+ "title": "Content",
23
+ "type": "preview",
24
+ "content": "Just shipped a major update to our app! 🚀\n\nNew features include:\n• Dark mode support\n• Faster load times\n• Bug fixes and improvements\n\nThanks to everyone who provided feedback. You all are amazing! 💪\n\n#ProductUpdate #TechNews #Startup"
25
+ },
26
+ {
27
+ "title": "Post Details",
28
+ "type": "details",
29
+ "content": [
30
+ { "label": "Platforms", "value": "X, LinkedIn" },
31
+ { "label": "Schedule", "value": "Post immediately" },
32
+ { "label": "Visibility", "value": "Public" }
33
+ ]
34
+ }
35
+ ],
36
+ "alerts": [
37
+ {
38
+ "type": "warning",
39
+ "message": "This post contains hashtags that may limit reach on some platforms."
40
+ }
41
+ ],
42
+ "acceptLabel": "Publish",
43
+ "rejectLabel": "Cancel",
44
+ "acceptedMessage": "Post published!",
45
+ "rejectedMessage": "Post cancelled",
46
+ "confirmationTool": {
47
+ "name": "publish_post",
48
+ "arguments": {
49
+ "postId": "draft_456",
50
+ "platforms": ["x", "linkedin"]
51
+ }
52
+ }
53
+ },
54
+ "_meta": {}
55
+ }
56
+ }
@@ -0,0 +1,88 @@
1
+ {
2
+ "userMessage": "I want to buy these items",
3
+ "tool": {
4
+ "name": "confirm-purchase",
5
+ "description": "Confirm a purchase before completing the transaction",
6
+ "inputSchema": { "type": "object", "properties": {}, "additionalProperties": false },
7
+ "title": "Confirm Purchase",
8
+ "annotations": { "readOnlyHint": false },
9
+ "_meta": {
10
+ "openai/toolInvocation/invoking": "Preparing order",
11
+ "openai/toolInvocation/invoked": "Order ready for review",
12
+ "openai/widgetAccessible": true,
13
+ "openai/resultCanProduceWidget": true
14
+ }
15
+ },
16
+ "toolCall": {
17
+ "structuredContent": {
18
+ "title": "Confirm Your Order",
19
+ "description": "Please review your order before completing the purchase.",
20
+ "alerts": [
21
+ {
22
+ "type": "info",
23
+ "message": "Free shipping on orders over $50!"
24
+ }
25
+ ],
26
+ "sections": [
27
+ {
28
+ "title": "Items",
29
+ "type": "items",
30
+ "content": [
31
+ {
32
+ "id": "1",
33
+ "title": "Wireless Headphones",
34
+ "subtitle": "Black, Over-ear",
35
+ "image": "https://images.unsplash.com/photo-1505740420928-5e560c06d30e?w=100&h=100&fit=crop",
36
+ "value": "$79.99"
37
+ },
38
+ {
39
+ "id": "2",
40
+ "title": "USB-C Charging Cable",
41
+ "subtitle": "2m, Braided",
42
+ "image": "https://images.unsplash.com/photo-1588872657578-7efd1f1555ed?w=100&h=100&fit=crop",
43
+ "value": "$12.99",
44
+ "badge": "Sale"
45
+ },
46
+ {
47
+ "id": "3",
48
+ "title": "Phone Case",
49
+ "subtitle": "Clear, iPhone 15 Pro",
50
+ "image": "https://images.unsplash.com/photo-1601784551446-20c9e07cdbdb?w=100&h=100&fit=crop",
51
+ "value": "$24.99"
52
+ }
53
+ ]
54
+ },
55
+ {
56
+ "title": "Shipping",
57
+ "type": "details",
58
+ "content": [
59
+ { "label": "Method", "value": "Standard (5-7 days)" },
60
+ { "label": "Address", "value": "123 Main St, Austin, TX", "sublabel": "John Doe" }
61
+ ]
62
+ },
63
+ {
64
+ "type": "summary",
65
+ "content": [
66
+ { "label": "Subtotal", "value": "$117.97" },
67
+ { "label": "Shipping", "value": "FREE" },
68
+ { "label": "Tax", "value": "$9.68" },
69
+ { "label": "Total", "value": "$127.65", "emphasis": true }
70
+ ]
71
+ }
72
+ ],
73
+ "acceptLabel": "Place Order",
74
+ "rejectLabel": "Cancel",
75
+ "acceptedMessage": "Order placed!",
76
+ "rejectedMessage": "Order cancelled",
77
+ "confirmationTool": {
78
+ "name": "complete_purchase",
79
+ "arguments": {
80
+ "orderId": "order_123",
81
+ "items": ["1", "2", "3"],
82
+ "total": 127.65
83
+ }
84
+ }
85
+ },
86
+ "_meta": {}
87
+ }
88
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "userMessage": "Help me count something",
3
+ "tool": {
4
+ "name": "show-counter",
5
+ "description": "Show a simple counter tool",
6
+ "inputSchema": { "type": "object", "properties": {}, "additionalProperties": false },
7
+ "title": "Show Counter",
8
+ "annotations": { "readOnlyHint": true },
9
+ "_meta": {
10
+ "openai/toolInvocation/invoking": "Counting beans",
11
+ "openai/toolInvocation/invoked": "Beans counted",
12
+ "openai/widgetAccessible": true,
13
+ "openai/resultCanProduceWidget": true
14
+ }
15
+ },
16
+ "toolCall": {
17
+ "structuredContent": null,
18
+ "_meta": {}
19
+ }
20
+ }
@@ -1,18 +1,23 @@
1
1
  /**
2
2
  * Server-safe simulation configurations
3
3
  *
4
- * This file contains only metadata and can be safely imported in Node.js contexts
5
- * (like MCP servers) without causing issues with CSS imports or React components.
4
+ * Auto-discovers all *-simulation.json files in this directory.
5
+ * File naming: {resource}-{tool}-simulation.json (e.g., albums-show-simulation.json)
6
+ *
7
+ * This file can be safely imported in Node.js contexts (like MCP servers)
8
+ * without causing issues with CSS imports or React components.
6
9
  */
7
10
 
8
- import { counterSimulation } from './counter-simulation.js';
9
- import { albumsSimulation } from './albums-simulation.js';
10
- import { carouselSimulation } from './carousel-simulation.js';
11
- import { mapSimulation } from './map-simulation.js';
11
+ // Auto-discover all simulation JSON files
12
+ const simulationModules = import.meta.glob('./*-simulation.json', { eager: true });
12
13
 
13
- export const SIMULATIONS = {
14
- counter: counterSimulation,
15
- albums: albumsSimulation,
16
- carousel: carouselSimulation,
17
- map: mapSimulation,
18
- } as const;
14
+ // Build SIMULATIONS object from discovered files
15
+ // Key is the full name without -simulation.json suffix (e.g., 'albums-show')
16
+ export const SIMULATIONS = Object.fromEntries(
17
+ Object.entries(simulationModules).map(([path, module]) => {
18
+ // Extract simulation key from path: './albums-show-simulation.json' -> 'albums-show'
19
+ const match = path.match(/\.\/(.+)-simulation\.json$/);
20
+ const key = match?.[1] ?? path;
21
+ return [key, (module as { default: unknown }).default];
22
+ })
23
+ ) as Record<string, unknown>;
@@ -0,0 +1,123 @@
1
+ {
2
+ "userMessage": "Find pizza near me",
3
+ "tool": {
4
+ "name": "show-map",
5
+ "description": "Show the map",
6
+ "inputSchema": { "type": "object", "properties": {}, "additionalProperties": false },
7
+ "title": "Show Map",
8
+ "annotations": { "readOnlyHint": true },
9
+ "_meta": {
10
+ "openai/toolInvocation/invoking": "Finding pizza places",
11
+ "openai/toolInvocation/invoked": "Found pizza places",
12
+ "openai/widgetAccessible": true,
13
+ "openai/resultCanProduceWidget": true
14
+ }
15
+ },
16
+ "toolCall": {
17
+ "structuredContent": {
18
+ "places": [
19
+ {
20
+ "id": "nova-slice-lab",
21
+ "name": "Nova Slice Lab",
22
+ "coords": [-122.4098, 37.8001],
23
+ "description": "Award-winning Neapolitan pies in North Beach.",
24
+ "city": "North Beach",
25
+ "rating": 4.8,
26
+ "price": "$$$",
27
+ "thumbnail": "https://persistent.oaistatic.com/pizzaz/pizzaz-1.png"
28
+ },
29
+ {
30
+ "id": "midnight-marinara",
31
+ "name": "Midnight Marinara",
32
+ "coords": [-122.4093, 37.799],
33
+ "description": "Focaccia-style squares, late-night favorite.",
34
+ "city": "North Beach",
35
+ "rating": 4.6,
36
+ "price": "$",
37
+ "thumbnail": "https://persistent.oaistatic.com/pizzaz/pizzaz-2.png"
38
+ },
39
+ {
40
+ "id": "cinder-oven-co",
41
+ "name": "Cinder Oven Co.",
42
+ "coords": [-122.4255, 37.7613],
43
+ "description": "Thin-crust classics on 18th Street.",
44
+ "city": "Mission",
45
+ "rating": 4.5,
46
+ "price": "$$",
47
+ "thumbnail": "https://persistent.oaistatic.com/pizzaz/pizzaz-3.png"
48
+ },
49
+ {
50
+ "id": "neon-crust-works",
51
+ "name": "Neon Crust Works",
52
+ "coords": [-122.4388, 37.7775],
53
+ "description": "Deep-dish and cornmeal crust favorites.",
54
+ "city": "Alamo Square",
55
+ "rating": 4.5,
56
+ "price": "$$",
57
+ "thumbnail": "https://persistent.oaistatic.com/pizzaz/pizzaz-6.png"
58
+ },
59
+ {
60
+ "id": "luna-pie-collective",
61
+ "name": "Luna Pie Collective",
62
+ "coords": [-122.4077, 37.799],
63
+ "description": "Wood-fired pies and burrata in North Beach.",
64
+ "city": "North Beach",
65
+ "rating": 4.6,
66
+ "price": "$$",
67
+ "thumbnail": "https://persistent.oaistatic.com/pizzaz/pizzaz-4.png"
68
+ },
69
+ {
70
+ "id": "bricklight-deep-dish",
71
+ "name": "Bricklight Deep Dish",
72
+ "coords": [-122.4097, 37.7992],
73
+ "description": "Chicago-style pies from Tony Gemignani.",
74
+ "city": "North Beach",
75
+ "rating": 4.4,
76
+ "price": "$$$",
77
+ "thumbnail": "https://persistent.oaistatic.com/pizzaz/pizzaz-5.png"
78
+ },
79
+ {
80
+ "id": "garden-ember-pies",
81
+ "name": "Garden Ember Pies",
82
+ "coords": [-122.438, 37.7722],
83
+ "description": "Neighborhood spot with seasonal toppings.",
84
+ "city": "Lower Haight",
85
+ "rating": 4.4,
86
+ "price": "$$",
87
+ "thumbnail": "https://persistent.oaistatic.com/pizzaz/pizzaz-1.png"
88
+ },
89
+ {
90
+ "id": "atlas-fire-pizzeria",
91
+ "name": "Atlas Fire Pizzeria",
92
+ "coords": [-122.4123, 37.7899],
93
+ "description": "Sourdough, wood-fired pies near Nob Hill.",
94
+ "city": "Nob Hill",
95
+ "rating": 4.6,
96
+ "price": "$$$",
97
+ "thumbnail": "https://persistent.oaistatic.com/pizzaz/pizzaz-2.png"
98
+ },
99
+ {
100
+ "id": "circuit-slice-garage",
101
+ "name": "Circuit Slice Garage",
102
+ "coords": [-122.4135, 37.7805],
103
+ "description": "Crispy-edged Detroit-style in SoMa.",
104
+ "city": "SoMa",
105
+ "rating": 4.5,
106
+ "price": "$$",
107
+ "thumbnail": "https://persistent.oaistatic.com/pizzaz/pizzaz-3.png"
108
+ },
109
+ {
110
+ "id": "velvet-mozza-lounge",
111
+ "name": "Velvet Mozza Lounge",
112
+ "coords": [-122.4019, 37.7818],
113
+ "description": "Bianca pies and cocktails near Yerba Buena.",
114
+ "city": "Yerba Buena",
115
+ "rating": 4.3,
116
+ "price": "$$",
117
+ "thumbnail": "https://persistent.oaistatic.com/pizzaz/pizzaz-6.png"
118
+ }
119
+ ]
120
+ },
121
+ "_meta": {}
122
+ }
123
+ }
@@ -0,0 +1 @@
1
+ /// <reference types="vite/client" />
@@ -18,5 +18,5 @@
18
18
  "noUnusedParameters": true,
19
19
  "noFallthroughCasesInSwitch": true
20
20
  },
21
- "include": ["src", "dev"]
21
+ "include": ["src", ".sunpeak"]
22
22
  }
@@ -1,147 +0,0 @@
1
- /**
2
- * Server-safe configuration for the albums simulation.
3
- * This file contains only metadata and doesn't import React components or CSS.
4
- */
5
-
6
- import albumsResourceMeta from '../resources/albums-resource.json';
7
-
8
- const albumsData = {
9
- albums: [
10
- {
11
- id: 'summer-escape',
12
- title: 'Summer Slice',
13
- cover: 'https://persistent.oaistatic.com/pizzaz/pizzaz-1.png',
14
- photos: [
15
- {
16
- id: 's1',
17
- title: 'Waves',
18
- url: 'https://persistent.oaistatic.com/pizzaz/pizzaz-2.png',
19
- },
20
- {
21
- id: 's2',
22
- title: 'Palm trees',
23
- url: 'https://persistent.oaistatic.com/pizzaz/pizzaz-3.png',
24
- },
25
- {
26
- id: 's3',
27
- title: 'Sunset',
28
- url: 'https://persistent.oaistatic.com/pizzaz/pizzaz-6.png',
29
- },
30
- ],
31
- },
32
- {
33
- id: 'city-lights',
34
- title: 'Pepperoni Nights',
35
- cover: 'https://persistent.oaistatic.com/pizzaz/pizzaz-4.png',
36
- photos: [
37
- {
38
- id: 'c1',
39
- title: 'Downtown',
40
- url: 'https://persistent.oaistatic.com/pizzaz/pizzaz-5.png',
41
- },
42
- {
43
- id: 'c2',
44
- title: 'Neon',
45
- url: 'https://persistent.oaistatic.com/pizzaz/pizzaz-1.png',
46
- },
47
- {
48
- id: 'c3',
49
- title: 'Streets',
50
- url: 'https://persistent.oaistatic.com/pizzaz/pizzaz-2.png',
51
- },
52
- ],
53
- },
54
- {
55
- id: 'into-the-woods',
56
- title: 'Truffle Forest',
57
- cover: 'https://persistent.oaistatic.com/pizzaz/pizzaz-3.png',
58
- photos: [
59
- {
60
- id: 'n1',
61
- title: 'Forest path',
62
- url: 'https://persistent.oaistatic.com/pizzaz/pizzaz-6.png',
63
- },
64
- {
65
- id: 'n2',
66
- title: 'Misty',
67
- url: 'https://persistent.oaistatic.com/pizzaz/pizzaz-4.png',
68
- },
69
- {
70
- id: 'n3',
71
- title: 'Waterfall',
72
- url: 'https://persistent.oaistatic.com/pizzaz/pizzaz-5.png',
73
- },
74
- ],
75
- },
76
- {
77
- id: 'pizza-tour',
78
- title: 'Pizza tour',
79
- cover: 'https://persistent.oaistatic.com/pizzaz/pizzaz-1.png',
80
- photos: [
81
- {
82
- id: 'tonys-pizza-napoletana',
83
- title: "Tony's Pizza Napoletana",
84
- url: 'https://persistent.oaistatic.com/pizzaz/pizzaz-2.png',
85
- },
86
- {
87
- id: 'golden-boy-pizza',
88
- title: 'Golden Boy Pizza',
89
- url: 'https://persistent.oaistatic.com/pizzaz/pizzaz-3.png',
90
- },
91
- {
92
- id: 'pizzeria-delfina-mission',
93
- title: 'Pizzeria Delfina (Mission)',
94
- url: 'https://persistent.oaistatic.com/pizzaz/pizzaz-6.png',
95
- },
96
- {
97
- id: 'ragazza',
98
- title: 'Ragazza',
99
- url: 'https://persistent.oaistatic.com/pizzaz/pizzaz-4.png',
100
- },
101
- {
102
- id: 'del-popolo',
103
- title: 'Del Popolo',
104
- url: 'https://persistent.oaistatic.com/pizzaz/pizzaz-5.png',
105
- },
106
- {
107
- id: 'square-pie-guys',
108
- title: 'Square Pie Guys',
109
- url: 'https://persistent.oaistatic.com/pizzaz/pizzaz-1.png',
110
- },
111
- {
112
- id: 'zero-zero',
113
- title: 'Zero Zero',
114
- url: 'https://persistent.oaistatic.com/pizzaz/pizzaz-2.png',
115
- },
116
- ],
117
- },
118
- ],
119
- };
120
-
121
- export const albumsSimulation = {
122
- userMessage: 'Pizza time',
123
-
124
- // MCP Tool protocol - official Tool type from MCP SDK used in ListTools response
125
- tool: {
126
- name: 'show-albums',
127
- description: 'Show photo albums',
128
- inputSchema: { type: 'object', properties: {}, additionalProperties: false } as const,
129
- title: 'Show Albums',
130
- annotations: { readOnlyHint: true },
131
- _meta: {
132
- 'openai/toolInvocation/invoking': 'Loading albums',
133
- 'openai/toolInvocation/invoked': 'Album loaded',
134
- 'openai/widgetAccessible': true,
135
- 'openai/resultCanProduceWidget': true,
136
- },
137
- },
138
-
139
- // MCP Resource protocol - imported from resource meta file
140
- resource: albumsResourceMeta,
141
-
142
- // MCP CallTool protocol - data for CallTool response
143
- toolCall: {
144
- structuredContent: albumsData,
145
- _meta: {},
146
- },
147
- } as const;