sunpeak 0.8.1 → 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.
- package/bin/commands/dev.mjs +60 -4
- package/bin/commands/mcp.mjs +1 -1
- package/bin/sunpeak.js +6 -4
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/style.css +62 -0
- package/package.json +1 -1
- package/template/README.md +29 -14
- package/template/dist/albums.js +1 -1
- package/template/dist/albums.json +3 -2
- package/template/dist/carousel.js +1 -1
- package/template/dist/carousel.json +3 -2
- package/template/dist/confirmation.js +49 -0
- package/template/dist/confirmation.json +16 -0
- package/template/dist/counter.js +1 -1
- package/template/dist/counter.json +7 -2
- package/template/dist/map.js +1 -1
- package/template/dist/map.json +6 -3
- 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-SPYXUHEY.js → chunk-N6DVYEXK.js} +8 -8
- package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/template/src/resources/albums-resource.json +1 -1
- package/template/src/resources/carousel-resource.json +1 -1
- package/template/src/resources/confirmation-resource.json +12 -0
- package/template/src/resources/confirmation-resource.tsx +479 -0
- package/template/src/resources/counter-resource.json +4 -1
- package/template/src/resources/map-resource.json +7 -2
- package/template/src/simulations/confirmation-diff-simulation.json +80 -0
- package/template/src/simulations/confirmation-post-simulation.json +56 -0
- package/template/src/simulations/confirmation-purchase-simulation.json +88 -0
- /package/template/node_modules/.vite/deps/{chunk-SPYXUHEY.js.map → chunk-N6DVYEXK.js.map} +0 -0
|
@@ -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
|
+
}
|
|
File without changes
|