@adminide-stack/yantra-mobile 12.0.172-alpha.0 → 12.0.172-alpha.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/lib/components/GatewayConnector/GatewayConnector.js +10 -4
- package/lib/components/GatewayConnector/GatewayConnector.js.map +1 -1
- package/lib/components/GatewayConnector/GatewayStatusSheet.js +174 -0
- package/lib/components/GatewayConnector/GatewayStatusSheet.js.map +1 -0
- package/lib/components/GatewayToolbarButtonMobile.js +6 -2
- package/lib/components/GatewayToolbarButtonMobile.js.map +1 -1
- package/lib/config/env-config.js +12 -3
- package/lib/config/env-config.js.map +1 -1
- package/lib/features/apps/nativeAppHandoff.js +31 -13
- package/lib/features/apps/nativeAppHandoff.js.map +1 -1
- package/lib/features/chat/PromptFillBar.js +153 -0
- package/lib/features/chat/PromptFillBar.js.map +1 -0
- package/lib/features/chat/promptBlanks.js +120 -0
- package/lib/features/chat/promptBlanks.js.map +1 -0
- package/lib/features/chat/savedReply.js +11 -0
- package/lib/features/chat/savedReply.js.map +1 -0
- package/lib/features/games/GameInviteCard.js +93 -0
- package/lib/features/games/GameInviteCard.js.map +1 -0
- package/lib/features/games/cubeforge3D.js +75 -4
- package/lib/features/games/cubeforge3D.js.map +1 -1
- package/lib/features/games/cubeforgeFriends.js +112 -0
- package/lib/features/games/cubeforgeFriends.js.map +1 -0
- package/lib/features/games/gameInvite.js +13 -0
- package/lib/features/games/gameInvite.js.map +1 -0
- package/lib/features/games/useCubeforgeFriends.js +63 -0
- package/lib/features/games/useCubeforgeFriends.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/nativeWorlds.js +68 -0
- package/lib/features/games/vendored/core/cubeforge/nativeWorlds.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/sharedWorlds.js +10 -0
- package/lib/features/games/vendored/core/cubeforge/sharedWorlds.js.map +1 -0
- package/lib/features/games/vendored/ui/GamesRoot.js +69 -5
- package/lib/features/games/vendored/ui/GamesRoot.js.map +1 -1
- package/lib/features/games/vendored/ui/screens/Cubeforge3DHomeScreen.js +296 -0
- package/lib/features/games/vendored/ui/screens/Cubeforge3DHomeScreen.js.map +1 -0
- package/lib/features/games/vendored/ui/screens/CubeforgeScreen.js +1 -1
- package/lib/features/games/vendored/ui/screens/CubeforgeScreen.js.map +1 -1
- package/lib/features/messaging/ChatComponents.js +12 -4
- package/lib/features/messaging/ChatComponents.js.map +1 -1
- package/lib/features/messaging/messageCards.js +22 -0
- package/lib/features/messaging/messageCards.js.map +1 -0
- package/lib/features/travel/TravelAgentChatPane.js +9 -1
- package/lib/features/travel/TravelAgentChatPane.js.map +1 -1
- package/lib/hooks/useCdecliAutoConnect.js +8 -1
- package/lib/hooks/useCdecliAutoConnect.js.map +1 -1
- package/lib/hooks/useCdecliChannel.js +142 -49
- package/lib/hooks/useCdecliChannel.js.map +1 -1
- package/lib/hooks/useChatApi.js +21 -10
- package/lib/hooks/useChatApi.js.map +1 -1
- package/lib/hooks/useChatStream.js +18 -5
- package/lib/hooks/useChatStream.js.map +1 -1
- package/lib/module.js +2 -1
- package/lib/module.js.map +1 -1
- package/lib/screens/Chat/index.js +23 -15
- package/lib/screens/Chat/index.js.map +1 -1
- package/lib/screens/GamesNative/index.js +48 -3
- package/lib/screens/GamesNative/index.js.map +1 -1
- package/lib/screens/Home/HomeScreen.js +147 -33
- package/lib/screens/Home/HomeScreen.js.map +1 -1
- package/lib/screens/Home/components/HomeSuggestions.js +1 -1
- package/lib/screens/Home/components/HomeSuggestions.js.map +1 -1
- package/lib/screens/Home/components/homeCatalog.js +68 -16
- package/lib/screens/Home/components/homeCatalog.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,19 +3,29 @@ const HOME_SUGGESTIONS = [{
|
|
|
3
3
|
icon: "palette-outline",
|
|
4
4
|
label: "Design a landing page",
|
|
5
5
|
hint: "Chat-driven design canvas \u2014 iterate on a real page, not a mockup",
|
|
6
|
-
prompt: "Design a landing page for
|
|
6
|
+
prompt: "Design a landing page for [your product]. Start with the hero and the pricing section.",
|
|
7
|
+
blanks: [{
|
|
8
|
+
ask: "What's the product?",
|
|
9
|
+
suggestions: ["a dog-walking app", "a coffee subscription", "a yoga studio"]
|
|
10
|
+
}],
|
|
11
|
+
app: "design"
|
|
7
12
|
}, {
|
|
8
13
|
id: "webbuilder",
|
|
9
14
|
icon: "web",
|
|
10
15
|
label: "Build a working web app",
|
|
11
16
|
hint: "Scaffold and edit a real app from a prompt",
|
|
12
|
-
prompt: "Build me a small web app with a form that stores submissions and a page that lists them."
|
|
17
|
+
prompt: "Build me a small web app with a form that stores submissions and a page that lists them.",
|
|
18
|
+
app: "webbuilder"
|
|
13
19
|
}, {
|
|
14
20
|
id: "poster",
|
|
15
21
|
icon: "post-outline",
|
|
16
22
|
label: "Turn a paper into a poster",
|
|
17
23
|
hint: "A paper PDF or arXiv link \u2192 an editable, print-ready conference poster",
|
|
18
|
-
prompt: "Turn
|
|
24
|
+
prompt: "Turn [arXiv link or paper title] into a 48 x 36 inch conference poster I can edit and print.",
|
|
25
|
+
blanks: [{
|
|
26
|
+
ask: "Paste the arXiv link or paper title"
|
|
27
|
+
}],
|
|
28
|
+
app: "poster"
|
|
19
29
|
}, {
|
|
20
30
|
id: "canvas",
|
|
21
31
|
icon: "view-grid-outline",
|
|
@@ -28,13 +38,21 @@ const HOME_SUGGESTIONS = [{
|
|
|
28
38
|
icon: "sitemap-outline",
|
|
29
39
|
label: "Automate something repetitive",
|
|
30
40
|
hint: "A visual workflow across 1,000+ connectors",
|
|
31
|
-
prompt: "Build a workflow that runs every morning and sends me a summary of what
|
|
41
|
+
prompt: "Build a workflow that runs every morning and sends me a summary of [what to keep an eye on].",
|
|
42
|
+
blanks: [{
|
|
43
|
+
ask: "What should it summarize?",
|
|
44
|
+
suggestions: ["new support emails", "overnight sales", "today's calendar"]
|
|
45
|
+
}],
|
|
46
|
+
app: "workflow-studio"
|
|
32
47
|
}, {
|
|
33
48
|
id: "computer",
|
|
34
49
|
icon: "monitor",
|
|
35
50
|
label: "Drive my browser",
|
|
36
51
|
hint: "The CLI runs your OS and browser for you",
|
|
37
|
-
prompt: "Open my browser, find the pricing pages of
|
|
52
|
+
prompt: "Open my browser, find the pricing pages of [3 competitors], and put them side by side.",
|
|
53
|
+
blanks: [{
|
|
54
|
+
ask: "Which 3 competitors?"
|
|
55
|
+
}]
|
|
38
56
|
}, {
|
|
39
57
|
id: "connect-apps",
|
|
40
58
|
icon: "puzzle-outline",
|
|
@@ -46,68 +64,102 @@ const HOME_SUGGESTIONS = [{
|
|
|
46
64
|
icon: "magnify",
|
|
47
65
|
label: "Research a market",
|
|
48
66
|
hint: "Deep multi-source research, written up",
|
|
49
|
-
prompt: "Research the market for
|
|
67
|
+
prompt: "Research the market for [your idea] - who the players are, how they price, and where the gaps are.",
|
|
68
|
+
blanks: [{
|
|
69
|
+
ask: "What's the idea?",
|
|
70
|
+
suggestions: ["a dog-walking app", "an AI tutor for kids", "a meal-prep service"]
|
|
71
|
+
}],
|
|
50
72
|
mode: "deep-search"
|
|
51
73
|
}, {
|
|
52
74
|
id: "notion",
|
|
53
75
|
icon: "notebook-outline",
|
|
54
76
|
label: "Write it up in Notion",
|
|
55
77
|
hint: "Findings land as a real Notion page",
|
|
56
|
-
prompt: "Research
|
|
78
|
+
prompt: "Research [a topic] and write the findings up as a Notion page with sources.",
|
|
79
|
+
blanks: [{
|
|
80
|
+
ask: "What topic?",
|
|
81
|
+
suggestions: ["the four-day work week", "onboarding remote teams", "home solar payback"]
|
|
82
|
+
}],
|
|
83
|
+
app: "notion"
|
|
57
84
|
}, {
|
|
58
85
|
id: "shopping",
|
|
59
86
|
icon: "shopping-outline",
|
|
60
87
|
label: "Compare products",
|
|
61
88
|
hint: "Search across sources and line them up",
|
|
62
|
-
prompt: "Compare the best options
|
|
89
|
+
prompt: "Compare the best [product] options and show me the tradeoffs.",
|
|
90
|
+
blanks: [{
|
|
91
|
+
ask: "What are you shopping for?",
|
|
92
|
+
suggestions: ["noise-cancelling headphones", "robot vacuums", "carry-on luggage"]
|
|
93
|
+
}],
|
|
94
|
+
app: "shopping"
|
|
63
95
|
}, {
|
|
64
96
|
id: "travel",
|
|
65
97
|
icon: "airplane",
|
|
66
98
|
label: "Plan a trip",
|
|
67
99
|
hint: "Flights, hotels and a day-by-day plan",
|
|
68
|
-
prompt: "Plan a 4-day trip for me
|
|
100
|
+
prompt: "Plan a 4-day trip to [destination] for me - flights, somewhere to stay, and what to do each day.",
|
|
101
|
+
blanks: [{
|
|
102
|
+
ask: "Where to?",
|
|
103
|
+
suggestions: ["Lisbon", "Tokyo", "Mexico City", "Reykjavik"]
|
|
104
|
+
}],
|
|
105
|
+
app: "travel"
|
|
69
106
|
}, {
|
|
70
107
|
id: "meetings",
|
|
71
108
|
icon: "microphone-outline",
|
|
72
109
|
label: "Send a notetaker to a meeting",
|
|
73
110
|
hint: "Records, transcribes, and writes the notes up",
|
|
74
|
-
prompt: "Send the notetaker to my next meeting and write up the notes and action items afterwards."
|
|
111
|
+
prompt: "Send the notetaker to my next meeting and write up the notes and action items afterwards.",
|
|
112
|
+
app: "meetings"
|
|
75
113
|
}, {
|
|
76
114
|
id: "inbox",
|
|
77
115
|
icon: "inbox-outline",
|
|
78
116
|
label: "Get to inbox zero",
|
|
79
117
|
hint: "Triage the inbox and draft the replies",
|
|
80
|
-
prompt: "Go through my inbox, tell me what actually needs a reply, and draft those replies."
|
|
118
|
+
prompt: "Go through my inbox, tell me what actually needs a reply, and draft those replies.",
|
|
119
|
+
app: "inbox"
|
|
81
120
|
}, {
|
|
82
121
|
id: "crm",
|
|
83
122
|
icon: "account-group-outline",
|
|
84
123
|
label: "Chase my pipeline",
|
|
85
124
|
hint: "See what is stalling and what to do next",
|
|
86
|
-
prompt: "Look at my pipeline and tell me which deals are going cold and what I should send them."
|
|
125
|
+
prompt: "Look at my pipeline and tell me which deals are going cold and what I should send them.",
|
|
126
|
+
app: "crm"
|
|
87
127
|
}, {
|
|
88
128
|
id: "invoices",
|
|
89
129
|
icon: "file-document-outline",
|
|
90
130
|
label: "Get paid",
|
|
91
131
|
hint: "Invoice a customer and see what is still owed",
|
|
92
|
-
prompt: "Show me which invoices are unpaid, and send a reminder for the overdue ones."
|
|
132
|
+
prompt: "Show me which invoices are unpaid, and send a reminder for the overdue ones.",
|
|
133
|
+
app: "invoices"
|
|
93
134
|
}, {
|
|
94
135
|
id: "expenses",
|
|
95
136
|
icon: "receipt",
|
|
96
137
|
label: "Sort out expenses",
|
|
97
138
|
hint: "Claims, budgets, and card spend in one place",
|
|
98
|
-
prompt: "Summarise my spend this month and flag anything unusual."
|
|
139
|
+
prompt: "Summarise my spend this month and flag anything unusual.",
|
|
140
|
+
app: "expenses"
|
|
99
141
|
}, {
|
|
100
142
|
id: "mailcampaign",
|
|
101
143
|
icon: "bullhorn-outline",
|
|
102
144
|
label: "Send a campaign",
|
|
103
145
|
hint: "Write it, segment it, send it",
|
|
104
|
-
prompt: "Draft an email campaign announcing what
|
|
146
|
+
prompt: "Draft an email campaign announcing [what you shipped or launched].",
|
|
147
|
+
blanks: [{
|
|
148
|
+
ask: "What did you launch?",
|
|
149
|
+
suggestions: ["our new mobile app", "a spring sale", "a new pricing plan"]
|
|
150
|
+
}],
|
|
151
|
+
app: "mailcampaign"
|
|
105
152
|
}, {
|
|
106
153
|
id: "smscampaign",
|
|
107
154
|
icon: "message-text-outline",
|
|
108
155
|
label: "Text your customers",
|
|
109
156
|
hint: "SMS campaigns with replies",
|
|
110
|
-
prompt: "Write a short text reminding my customers about this week's offer, then send it to my VIP list."
|
|
157
|
+
prompt: "Write a short text reminding my customers about [this week's offer], then send it to my VIP list.",
|
|
158
|
+
blanks: [{
|
|
159
|
+
ask: "What's the offer?",
|
|
160
|
+
suggestions: ["20% off this weekend", "free shipping until Sunday", "buy one, get one free"]
|
|
161
|
+
}],
|
|
162
|
+
app: "smscampaign"
|
|
111
163
|
}];
|
|
112
164
|
function drawSuggestions(count, pool = HOME_SUGGESTIONS, random = Math.random) {
|
|
113
165
|
const remaining = [...pool];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"homeCatalog.js","sources":["../../../../src/screens/Home/components/homeCatalog.ts"],"sourcesContent":["/**\n * The chat home's pure parts, kept apart from the components so they run under jest: the\n * \"Start something\" catalogue and draw (the web's YANTRA_SUGGESTIONS / useHomeSuggestions) and\n * the greeting (the web's HomeHero `greetingFor`).\n */\nimport type { ComponentProps } from 'react';\nimport type { MaterialCommunityIcons } from '@expo/vector-icons';\nimport type { RoutingMode } from '../types';\n\ntype IconName = ComponentProps<typeof MaterialCommunityIcons>['name'];\n\nexport type HomeSuggestion = {\n id: string;\n label: string;\n /** What the row is for, on the line under its label. */\n hint: string;\n icon: IconName;\n prompt: string;\n mode?: RoutingMode;\n /** Navigate here instead of injecting the prompt, when the host wires navigation. */\n nativeRoute?: string;\n};\n\n/** The web's YANTRA_SUGGESTIONS, in its order. */\nexport const HOME_SUGGESTIONS: readonly HomeSuggestion[] = [\n {\n id: 'design',\n icon: 'palette-outline',\n label: 'Design a landing page',\n hint: 'Chat-driven design canvas — iterate on a real page, not a mockup',\n prompt: 'Design a landing page for my product. Start with the hero and the pricing section.',\n },\n {\n id: 'webbuilder',\n icon: 'web',\n label: 'Build a working web app',\n hint: 'Scaffold and edit a real app from a prompt',\n prompt: 'Build me a small web app with a form that stores submissions and a page that lists them.',\n },\n {\n id: 'poster',\n icon: 'post-outline',\n label: 'Turn a paper into a poster',\n hint: 'A paper PDF or arXiv link → an editable, print-ready conference poster',\n prompt: 'Turn this research paper into a 48 x 36 inch conference poster I can edit and print.',\n },\n {\n id: 'canvas',\n icon: 'view-grid-outline',\n label: 'Open a canvas',\n hint: 'Spread images, video and audio out and work on them together',\n prompt: 'Open a canvas and help me lay out the assets for this project.',\n nativeRoute: 'MainStack.CanvasNative',\n },\n {\n id: 'workflow',\n icon: 'sitemap-outline',\n label: 'Automate something repetitive',\n hint: 'A visual workflow across 1,000+ connectors',\n prompt: 'Build a workflow that runs every morning and sends me a summary of what changed.',\n },\n {\n id: 'computer',\n icon: 'monitor',\n label: 'Drive my browser',\n hint: 'The CLI runs your OS and browser for you',\n prompt: 'Open my browser, find the pricing pages of my top 3 competitors, and put them side by side.',\n },\n {\n id: 'connect-apps',\n icon: 'puzzle-outline',\n label: 'Connect your apps',\n hint: 'Link a tool once, then just @-mention it in any chat',\n prompt: 'Show me which apps I can connect, and help me connect the ones I use daily.',\n },\n {\n id: 'research',\n icon: 'magnify',\n label: 'Research a market',\n hint: 'Deep multi-source research, written up',\n prompt: 'Research the market for my idea — who the players are, how they price, and where the gaps are.',\n mode: 'deep-search',\n },\n {\n id: 'notion',\n icon: 'notebook-outline',\n label: 'Write it up in Notion',\n hint: 'Findings land as a real Notion page',\n prompt: 'Research this topic and write the findings up as a Notion page with sources.',\n },\n {\n id: 'shopping',\n icon: 'shopping-outline',\n label: 'Compare products',\n hint: 'Search across sources and line them up',\n prompt: 'Compare the best options for what I need and show me the tradeoffs.',\n },\n {\n id: 'travel',\n icon: 'airplane',\n label: 'Plan a trip',\n hint: 'Flights, hotels and a day-by-day plan',\n prompt: 'Plan a 4-day trip for me — flights, somewhere to stay, and what to do each day.',\n },\n {\n id: 'meetings',\n icon: 'microphone-outline',\n label: 'Send a notetaker to a meeting',\n hint: 'Records, transcribes, and writes the notes up',\n prompt: 'Send the notetaker to my next meeting and write up the notes and action items afterwards.',\n },\n {\n id: 'inbox',\n icon: 'inbox-outline',\n label: 'Get to inbox zero',\n hint: 'Triage the inbox and draft the replies',\n prompt: 'Go through my inbox, tell me what actually needs a reply, and draft those replies.',\n },\n {\n id: 'crm',\n icon: 'account-group-outline',\n label: 'Chase my pipeline',\n hint: 'See what is stalling and what to do next',\n prompt: 'Look at my pipeline and tell me which deals are going cold and what I should send them.',\n },\n {\n id: 'invoices',\n icon: 'file-document-outline',\n label: 'Get paid',\n hint: 'Invoice a customer and see what is still owed',\n prompt: 'Show me which invoices are unpaid, and send a reminder for the overdue ones.',\n },\n {\n id: 'expenses',\n icon: 'receipt',\n label: 'Sort out expenses',\n hint: 'Claims, budgets, and card spend in one place',\n prompt: 'Summarise my spend this month and flag anything unusual.',\n },\n {\n id: 'mailcampaign',\n icon: 'bullhorn-outline',\n label: 'Send a campaign',\n hint: 'Write it, segment it, send it',\n prompt: 'Draft an email campaign announcing what we shipped this month.',\n },\n {\n id: 'smscampaign',\n icon: 'message-text-outline',\n label: 'Text your customers',\n hint: 'SMS campaigns with replies',\n prompt: \"Write a short text reminding my customers about this week's offer, then send it to my VIP list.\",\n },\n];\n\n/** `count` distinct entries, drawn at random (the web's draw, without its welcome-answer weights). */\nexport function drawSuggestions(\n count: number,\n pool: readonly HomeSuggestion[] = HOME_SUGGESTIONS,\n random: () => number = Math.random,\n): HomeSuggestion[] {\n const remaining = [...pool];\n const picked: HomeSuggestion[] = [];\n while (picked.length < count && remaining.length > 0) {\n picked.push(remaining.splice(Math.floor(random() * remaining.length), 1)[0]);\n }\n return picked;\n}\n\n/** Same boundaries as the web's `greetingFor`; anything past ten at night reads as late. */\nexport function greetingFor(hour: number): string {\n if (hour >= 5 && hour < 12) return 'Good morning';\n if (hour >= 12 && hour < 17) return 'Good afternoon';\n if (hour >= 17 && hour < 22) return 'Good evening';\n return 'Working late';\n}\n"],"names":[],"mappings":"AAsBO,MAAM,mBAA8C,CAAC;AAAA,EAC1D,EAAI,EAAA,QAAA;AAAA,EACJ,IAAM,EAAA,iBAAA;AAAA,EACN,KAAO,EAAA,uBAAA;AAAA,EACP,IAAM,EAAA,uEAAA;AAAA,EACN,MAAQ,EAAA;AACV,CAAG,EAAA;AAAA,EACD,EAAI,EAAA,YAAA;AAAA,EACJ,IAAM,EAAA,KAAA;AAAA,EACN,KAAO,EAAA,yBAAA;AAAA,EACP,IAAM,EAAA,4CAAA;AAAA,EACN,MAAQ,EAAA;AACV,CAAG,EAAA;AAAA,EACD,EAAI,EAAA,QAAA;AAAA,EACJ,IAAM,EAAA,cAAA;AAAA,EACN,KAAO,EAAA,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AAA,qBAAA;AAAA,EACP,IAAM,EAAA,4BAAA;AAAA,EACN,MAAQ,EAAA;AACV,CAAC;AAGM,SAAS,gBAAgB,KAAe,EAAA,IAAA,GAAkC,gBAAkB,EAAA,MAAA,GAAuB,KAAK,MAA0B,EAAA;AACvJ,EAAM,MAAA,SAAA,GAAY,CAAC,GAAG,IAAI,CAAA;AAC1B,EAAA,MAAM,SAA2B,EAAC;AAClC,EAAA,OAAO,MAAO,CAAA,MAAA,GAAS,KAAS,IAAA,SAAA,CAAU,SAAS,CAAG,EAAA;AACpD,IAAA,MAAA,CAAO,IAAK,CAAA,SAAA,CAAU,MAAO,CAAA,IAAA,CAAK,KAAM,CAAA,MAAA,EAAW,GAAA,SAAA,CAAU,MAAM,CAAA,EAAG,CAAC,CAAA,CAAE,CAAC,CAAC,CAAA;AAAA;AAE7E,EAAO,OAAA,MAAA;AACT;AAGO,SAAS,YAAY,IAAsB,EAAA;AAChD,EAAA,IAAI,IAAQ,IAAA,CAAA,IAAK,IAAO,GAAA,EAAA,EAAW,OAAA,cAAA;AACnC,EAAA,IAAI,IAAQ,IAAA,EAAA,IAAM,IAAO,GAAA,EAAA,EAAW,OAAA,gBAAA;AACpC,EAAA,IAAI,IAAQ,IAAA,EAAA,IAAM,IAAO,GAAA,EAAA,EAAW,OAAA,cAAA;AACpC,EAAO,OAAA,cAAA;AACT"}
|
|
1
|
+
{"version":3,"file":"homeCatalog.js","sources":["../../../../src/screens/Home/components/homeCatalog.ts"],"sourcesContent":["/**\n * The chat home's pure parts, kept apart from the components so they run under jest: the\n * \"Start something\" catalogue and draw (the web's YANTRA_SUGGESTIONS / useHomeSuggestions) and\n * the greeting (the web's HomeHero `greetingFor`).\n */\nimport type { ComponentProps } from 'react';\nimport type { MaterialCommunityIcons } from '@expo/vector-icons';\nimport type { BlankGuide } from '../../../features/chat/promptBlanks';\nimport type { RoutingMode } from '../types';\n\ntype IconName = ComponentProps<typeof MaterialCommunityIcons>['name'];\n\nexport type HomeSuggestion = {\n id: string;\n label: string;\n /** What the row is for, on the line under its label. */\n hint: string;\n icon: IconName;\n prompt: string;\n mode?: RoutingMode;\n /** Navigate here instead of injecting the prompt, when the host wires navigation. */\n nativeRoute?: string;\n /**\n * The app this shortcut is for: a registry intent id, the one the brain answers with\n * (the web's `panel`). Chat opens it when the brain names no other app for the send.\n */\n app?: string;\n /** For each `[blank]` in the prompt, in order: what to ask, and answers one tap away. */\n blanks?: readonly BlankGuide[];\n};\n\n/** The web's YANTRA_SUGGESTIONS, in its order. */\nexport const HOME_SUGGESTIONS: readonly HomeSuggestion[] = [\n {\n id: 'design',\n icon: 'palette-outline',\n label: 'Design a landing page',\n hint: 'Chat-driven design canvas — iterate on a real page, not a mockup',\n prompt: 'Design a landing page for [your product]. Start with the hero and the pricing section.',\n blanks: [\n {\n ask: \"What's the product?\",\n suggestions: ['a dog-walking app', 'a coffee subscription', 'a yoga studio'],\n },\n ],\n app: 'design',\n },\n {\n id: 'webbuilder',\n icon: 'web',\n label: 'Build a working web app',\n hint: 'Scaffold and edit a real app from a prompt',\n prompt: 'Build me a small web app with a form that stores submissions and a page that lists them.',\n app: 'webbuilder',\n },\n {\n id: 'poster',\n icon: 'post-outline',\n label: 'Turn a paper into a poster',\n hint: 'A paper PDF or arXiv link → an editable, print-ready conference poster',\n prompt: 'Turn [arXiv link or paper title] into a 48 x 36 inch conference poster I can edit and print.',\n blanks: [{ ask: 'Paste the arXiv link or paper title' }],\n app: 'poster',\n },\n {\n id: 'canvas',\n icon: 'view-grid-outline',\n label: 'Open a canvas',\n hint: 'Spread images, video and audio out and work on them together',\n prompt: 'Open a canvas and help me lay out the assets for this project.',\n nativeRoute: 'MainStack.CanvasNative',\n },\n {\n id: 'workflow',\n icon: 'sitemap-outline',\n label: 'Automate something repetitive',\n hint: 'A visual workflow across 1,000+ connectors',\n prompt: 'Build a workflow that runs every morning and sends me a summary of [what to keep an eye on].',\n blanks: [\n {\n ask: 'What should it summarize?',\n suggestions: ['new support emails', 'overnight sales', \"today's calendar\"],\n },\n ],\n app: 'workflow-studio',\n },\n {\n id: 'computer',\n icon: 'monitor',\n label: 'Drive my browser',\n hint: 'The CLI runs your OS and browser for you',\n prompt: 'Open my browser, find the pricing pages of [3 competitors], and put them side by side.',\n blanks: [{ ask: 'Which 3 competitors?' }],\n },\n {\n id: 'connect-apps',\n icon: 'puzzle-outline',\n label: 'Connect your apps',\n hint: 'Link a tool once, then just @-mention it in any chat',\n prompt: 'Show me which apps I can connect, and help me connect the ones I use daily.',\n },\n {\n id: 'research',\n icon: 'magnify',\n label: 'Research a market',\n hint: 'Deep multi-source research, written up',\n prompt: 'Research the market for [your idea] - who the players are, how they price, and where the gaps are.',\n blanks: [\n {\n ask: \"What's the idea?\",\n suggestions: ['a dog-walking app', 'an AI tutor for kids', 'a meal-prep service'],\n },\n ],\n mode: 'deep-search',\n },\n {\n id: 'notion',\n icon: 'notebook-outline',\n label: 'Write it up in Notion',\n hint: 'Findings land as a real Notion page',\n prompt: 'Research [a topic] and write the findings up as a Notion page with sources.',\n blanks: [\n {\n ask: 'What topic?',\n suggestions: ['the four-day work week', 'onboarding remote teams', 'home solar payback'],\n },\n ],\n app: 'notion',\n },\n {\n id: 'shopping',\n icon: 'shopping-outline',\n label: 'Compare products',\n hint: 'Search across sources and line them up',\n prompt: 'Compare the best [product] options and show me the tradeoffs.',\n blanks: [\n {\n ask: 'What are you shopping for?',\n suggestions: ['noise-cancelling headphones', 'robot vacuums', 'carry-on luggage'],\n },\n ],\n app: 'shopping',\n },\n {\n id: 'travel',\n icon: 'airplane',\n label: 'Plan a trip',\n hint: 'Flights, hotels and a day-by-day plan',\n prompt: 'Plan a 4-day trip to [destination] for me - flights, somewhere to stay, and what to do each day.',\n blanks: [{ ask: 'Where to?', suggestions: ['Lisbon', 'Tokyo', 'Mexico City', 'Reykjavik'] }],\n app: 'travel',\n },\n {\n id: 'meetings',\n icon: 'microphone-outline',\n label: 'Send a notetaker to a meeting',\n hint: 'Records, transcribes, and writes the notes up',\n prompt: 'Send the notetaker to my next meeting and write up the notes and action items afterwards.',\n app: 'meetings',\n },\n {\n id: 'inbox',\n icon: 'inbox-outline',\n label: 'Get to inbox zero',\n hint: 'Triage the inbox and draft the replies',\n prompt: 'Go through my inbox, tell me what actually needs a reply, and draft those replies.',\n app: 'inbox',\n },\n {\n id: 'crm',\n icon: 'account-group-outline',\n label: 'Chase my pipeline',\n hint: 'See what is stalling and what to do next',\n prompt: 'Look at my pipeline and tell me which deals are going cold and what I should send them.',\n app: 'crm',\n },\n {\n id: 'invoices',\n icon: 'file-document-outline',\n label: 'Get paid',\n hint: 'Invoice a customer and see what is still owed',\n prompt: 'Show me which invoices are unpaid, and send a reminder for the overdue ones.',\n app: 'invoices',\n },\n {\n id: 'expenses',\n icon: 'receipt',\n label: 'Sort out expenses',\n hint: 'Claims, budgets, and card spend in one place',\n prompt: 'Summarise my spend this month and flag anything unusual.',\n app: 'expenses',\n },\n {\n id: 'mailcampaign',\n icon: 'bullhorn-outline',\n label: 'Send a campaign',\n hint: 'Write it, segment it, send it',\n prompt: 'Draft an email campaign announcing [what you shipped or launched].',\n blanks: [\n { ask: 'What did you launch?', suggestions: ['our new mobile app', 'a spring sale', 'a new pricing plan'] },\n ],\n app: 'mailcampaign',\n },\n {\n id: 'smscampaign',\n icon: 'message-text-outline',\n label: 'Text your customers',\n hint: 'SMS campaigns with replies',\n prompt: \"Write a short text reminding my customers about [this week's offer], then send it to my VIP list.\",\n blanks: [\n {\n ask: \"What's the offer?\",\n suggestions: ['20% off this weekend', 'free shipping until Sunday', 'buy one, get one free'],\n },\n ],\n app: 'smscampaign',\n },\n];\n\n/** `count` distinct entries, drawn at random (the web's draw, without its welcome-answer weights). */\nexport function drawSuggestions(\n count: number,\n pool: readonly HomeSuggestion[] = HOME_SUGGESTIONS,\n random: () => number = Math.random,\n): HomeSuggestion[] {\n const remaining = [...pool];\n const picked: HomeSuggestion[] = [];\n while (picked.length < count && remaining.length > 0) {\n picked.push(remaining.splice(Math.floor(random() * remaining.length), 1)[0]);\n }\n return picked;\n}\n\n/** Same boundaries as the web's `greetingFor`; anything past ten at night reads as late. */\nexport function greetingFor(hour: number): string {\n if (hour >= 5 && hour < 12) return 'Good morning';\n if (hour >= 12 && hour < 17) return 'Good afternoon';\n if (hour >= 17 && hour < 22) return 'Good evening';\n return 'Working late';\n}\n"],"names":[],"mappings":"AA8BO,MAAM,mBAA8C,CAAC;AAAA,EAC1D,EAAI,EAAA,QAAA;AAAA,EACJ,IAAM,EAAA,iBAAA;AAAA,EACN,KAAO,EAAA,uBAAA;AAAA,EACP,IAAM,EAAA,uEAAA;AAAA,EACN,MAAQ,EAAA,wFAAA;AAAA,EACR,QAAQ,CAAC;AAAA,IACP,GAAK,EAAA,qBAAA;AAAA,IACL,WAAa,EAAA,CAAC,mBAAqB,EAAA,uBAAA,EAAyB,eAAe;AAAA,GAC5E,CAAA;AAAA,EACD,GAAK,EAAA;AACP,CAAG,EAAA;AAAA,EACD,EAAI,EAAA,YAAA;AAAA,EACJ,IAAM,EAAA,KAAA;AAAA,EACN,KAAO,EAAA,yBAAA;AAAA,EACP,IAAM,EAAA,4CAAA;AAAA,EACN,MAAQ,EAAA,0FAAA;AAAA,EACR,GAAK,EAAA;AACP,CAAG,EAAA;AAAA,EACD,EAAI,EAAA,QAAA;AAAA,EACJ,IAAM,EAAA,cAAA;AAAA,EACN,KAAO,EAAA,4BAAA;AAAA,EACP,IAAM,EAAA,6EAAA;AAAA,EACN,MAAQ,EAAA,8FAAA;AAAA,EACR,QAAQ,CAAC;AAAA,IACP,GAAK,EAAA;AAAA,GACN,CAAA;AAAA,EACD,GAAK,EAAA;AACP,CAAG,EAAA;AAAA,EACD,EAAI,EAAA,QAAA;AAAA,EACJ,IAAM,EAAA,mBAAA;AAAA,EACN,KAAO,EAAA,eAAA;AAAA,EACP,IAAM,EAAA,8DAAA;AAAA,EACN,MAAQ,EAAA,gEAAA;AAAA,EACR,WAAa,EAAA;AACf,CAAG,EAAA;AAAA,EAC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AuB,KAAK,MAA0B,EAAA;AACvJ,EAAM,MAAA,SAAA,GAAY,CAAC,GAAG,IAAI,CAAA;AAC1B,EAAA,MAAM,SAA2B,EAAC;AAClC,EAAA,OAAO,MAAO,CAAA,MAAA,GAAS,KAAS,IAAA,SAAA,CAAU,SAAS,CAAG,EAAA;AACpD,IAAA,MAAA,CAAO,IAAK,CAAA,SAAA,CAAU,MAAO,CAAA,IAAA,CAAK,KAAM,CAAA,MAAA,EAAW,GAAA,SAAA,CAAU,MAAM,CAAA,EAAG,CAAC,CAAA,CAAE,CAAC,CAAC,CAAA;AAAA;AAE7E,EAAO,OAAA,MAAA;AACT;AAGO,SAAS,YAAY,IAAsB,EAAA;AAChD,EAAA,IAAI,IAAQ,IAAA,CAAA,IAAK,IAAO,GAAA,EAAA,EAAW,OAAA,cAAA;AACnC,EAAA,IAAI,IAAQ,IAAA,EAAA,IAAM,IAAO,GAAA,EAAA,EAAW,OAAA,gBAAA;AACpC,EAAA,IAAI,IAAQ,IAAA,EAAA,IAAM,IAAO,GAAA,EAAA,EAAW,OAAA,cAAA;AACpC,EAAO,OAAA,cAAA;AACT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminide-stack/yantra-mobile",
|
|
3
|
-
"version": "12.0.172-alpha.
|
|
3
|
+
"version": "12.0.172-alpha.1",
|
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"typescript": {
|
|
68
68
|
"definition": "lib/index.d.ts"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "00cdca57f0115bcfc319a4a30a6564128aac70d8"
|
|
71
71
|
}
|