@adminide-stack/clock-tik-mobile 0.0.0-stage → 12.0.37-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.
Files changed (378) hide show
  1. package/.claude-flow/data/pending-insights.jsonl +43 -0
  2. package/.claude-flow/sessions/session-1794323376548.json +14 -0
  3. package/CHANGELOG.md +41 -0
  4. package/jest.config.cjs +22 -0
  5. package/lib/assets/home/loop-day.jpg +0 -0
  6. package/lib/assets/home/loop-day.mp4 +0 -0
  7. package/lib/assets/home/loop-time-back.jpg +0 -0
  8. package/lib/assets/home/loop-time-back.mp4 +0 -0
  9. package/lib/assets/home/loop-where.jpg +0 -0
  10. package/lib/assets/home/loop-where.mp4 +0 -0
  11. package/lib/assets/home/reel-gym.jpg +0 -0
  12. package/lib/assets/home/reel-gym.mp4 +0 -0
  13. package/lib/assets/home/reel-internet.jpg +0 -0
  14. package/lib/assets/home/reel-internet.mp4 +0 -0
  15. package/lib/assets/icon.png +0 -0
  16. package/lib/assets/lottie/.claude-flow/data/pending-insights.jsonl +1 -0
  17. package/lib/assets/lottie/lucy-mark-calendar.json +1827 -0
  18. package/lib/assets/lottie/lucy-mark-call.json +1470 -0
  19. package/lib/assets/lottie/lucy-mark-connect.json +2552 -0
  20. package/lib/assets/lottie/lucy-mark-details.json +1735 -0
  21. package/lib/assets/lottie/lucy-mark-email.json +1363 -0
  22. package/lib/assets/lottie/lucy-mark-message.json +1154 -0
  23. package/lib/assets/lottie/lucy-mark-search.json +1067 -0
  24. package/lib/assets/lottie/lucy-mark-think.json +1253 -0
  25. package/lib/assets/lottie/lucy-mark-write.json +1532 -0
  26. package/lib/assets/lottie/time-back.json +16458 -0
  27. package/lib/assets/lottie/where-lucy-works-chat.json +6170 -0
  28. package/lib/assets/lottie/where-lucy-works-cloud.json +10066 -0
  29. package/lib/assets/lottie/where-lucy-works-mine-none.json +2478 -0
  30. package/lib/assets/lottie/where-lucy-works-mine-offline.json +2373 -0
  31. package/lib/assets/lottie/where-lucy-works-mine-online.json +7881 -0
  32. package/lib/assets/sounds/hours-back.m4a +0 -0
  33. package/lib/assets/sounds/meet-lucy.m4a +0 -0
  34. package/lib/assets/sounds/power-on.m4a +0 -0
  35. package/lib/assets/sounds/wind-back.m4a +0 -0
  36. package/lib/assets/sounds/youre-in.m4a +0 -0
  37. package/lib/chat/agent.js +358 -0
  38. package/lib/chat/agent.js.map +1 -0
  39. package/lib/chat/appFront.js +32 -0
  40. package/lib/chat/appFront.js.map +1 -0
  41. package/lib/chat/auth.js +370 -0
  42. package/lib/chat/auth.js.map +1 -0
  43. package/lib/chat/chores.js +360 -0
  44. package/lib/chat/chores.js.map +1 -0
  45. package/lib/chat/connectors.js +45 -0
  46. package/lib/chat/connectors.js.map +1 -0
  47. package/lib/chat/jobs.js +223 -0
  48. package/lib/chat/jobs.js.map +1 -0
  49. package/lib/chat/lucyMotion.js +6 -0
  50. package/lib/chat/lucyMotion.js.map +1 -0
  51. package/lib/chat/protocol.js +111 -0
  52. package/lib/chat/protocol.js.map +1 -0
  53. package/lib/chat/results.js +133 -0
  54. package/lib/chat/results.js.map +1 -0
  55. package/lib/chat/store.js +81 -0
  56. package/lib/chat/store.js.map +1 -0
  57. package/lib/chat/useDictation.js +168 -0
  58. package/lib/chat/useDictation.js.map +1 -0
  59. package/lib/chat/useLucyChat.js +451 -0
  60. package/lib/chat/useLucyChat.js.map +1 -0
  61. package/lib/chat/useMyComputer.js +32 -0
  62. package/lib/chat/useMyComputer.js.map +1 -0
  63. package/lib/chat/whereLucyWorks.js +52 -0
  64. package/lib/chat/whereLucyWorks.js.map +1 -0
  65. package/lib/chat/workspace.js +124 -0
  66. package/lib/chat/workspace.js.map +1 -0
  67. package/lib/components/AreaShot.js +289 -0
  68. package/lib/components/AreaShot.js.map +1 -0
  69. package/lib/components/Backdrops.js +262 -0
  70. package/lib/components/Backdrops.js.map +1 -0
  71. package/lib/components/BottomSheet.js +61 -0
  72. package/lib/components/BottomSheet.js.map +1 -0
  73. package/lib/components/ChatSheets.js +429 -0
  74. package/lib/components/ChatSheets.js.map +1 -0
  75. package/lib/components/ConnectorLogo.js +91 -0
  76. package/lib/components/ConnectorLogo.js.map +1 -0
  77. package/lib/components/CustomDrawer.js +534 -0
  78. package/lib/components/CustomDrawer.js.map +1 -0
  79. package/lib/components/IdeasPane.js +394 -0
  80. package/lib/components/IdeasPane.js.map +1 -0
  81. package/lib/components/ImessageSheet.js +261 -0
  82. package/lib/components/ImessageSheet.js.map +1 -0
  83. package/lib/components/KeyboardAvoider.js +29 -0
  84. package/lib/components/KeyboardAvoider.js.map +1 -0
  85. package/lib/components/Logo.js +81 -0
  86. package/lib/components/Logo.js.map +1 -0
  87. package/lib/components/LucyWorking.js +67 -0
  88. package/lib/components/LucyWorking.js.map +1 -0
  89. package/lib/components/Markdown.js +260 -0
  90. package/lib/components/Markdown.js.map +1 -0
  91. package/lib/components/Media.js +93 -0
  92. package/lib/components/Media.js.map +1 -0
  93. package/lib/components/MessagesAppIcon.js +23 -0
  94. package/lib/components/MessagesAppIcon.js.map +1 -0
  95. package/lib/components/MicButton.js +71 -0
  96. package/lib/components/MicButton.js.map +1 -0
  97. package/lib/components/ResultCards.js +974 -0
  98. package/lib/components/ResultCards.js.map +1 -0
  99. package/lib/components/SignInPrompt.js +148 -0
  100. package/lib/components/SignInPrompt.js.map +1 -0
  101. package/lib/components/SignedOut.js +38 -0
  102. package/lib/components/SignedOut.js.map +1 -0
  103. package/lib/components/TalkToLucyHero.js +487 -0
  104. package/lib/components/TalkToLucyHero.js.map +1 -0
  105. package/lib/components/TalkToLucySheet.js +182 -0
  106. package/lib/components/TalkToLucySheet.js.map +1 -0
  107. package/lib/components/WhereLucyWorks.js +277 -0
  108. package/lib/components/WhereLucyWorks.js.map +1 -0
  109. package/lib/components/WorkspaceSection.js +271 -0
  110. package/lib/components/WorkspaceSection.js.map +1 -0
  111. package/lib/components/YantraMark.js +13 -0
  112. package/lib/components/YantraMark.js.map +1 -0
  113. package/lib/components/drawerHeader.js +38 -0
  114. package/lib/components/drawerHeader.js.map +1 -0
  115. package/lib/components/lottieInstalled.js +6 -0
  116. package/lib/components/lottieInstalled.js.map +1 -0
  117. package/lib/components/ui.js +550 -0
  118. package/lib/components/ui.js.map +1 -0
  119. package/lib/components/useSignOut.js +7 -0
  120. package/lib/components/useSignOut.js.map +1 -0
  121. package/lib/components/viewport.js +121 -0
  122. package/lib/components/viewport.js.map +1 -0
  123. package/lib/components/voiceDial.js +10 -0
  124. package/lib/components/voiceDial.js.map +1 -0
  125. package/lib/compute.js +157 -0
  126. package/lib/compute.js.map +1 -0
  127. package/lib/config/env-config.js +27 -0
  128. package/lib/config/env-config.js.map +1 -0
  129. package/lib/config/routes.js +15 -0
  130. package/lib/config/routes.js.map +1 -0
  131. package/lib/content.js +25 -0
  132. package/lib/content.js.map +1 -0
  133. package/lib/hooks/keyboardCover.js +39 -0
  134. package/lib/hooks/keyboardCover.js.map +1 -0
  135. package/lib/hooks/useKeyboard.js +121 -0
  136. package/lib/hooks/useKeyboard.js.map +1 -0
  137. package/lib/hooks/useReducedMotion.js +13 -0
  138. package/lib/hooks/useReducedMotion.js.map +1 -0
  139. package/lib/imessage/openMessages.js +25 -0
  140. package/lib/imessage/openMessages.js.map +1 -0
  141. package/lib/imessage/platform.js +12 -0
  142. package/lib/imessage/platform.js.map +1 -0
  143. package/lib/imessage/textLink.js +262 -0
  144. package/lib/imessage/textLink.js.map +1 -0
  145. package/lib/index.js +1 -0
  146. package/lib/index.js.map +1 -0
  147. package/lib/live/card.js +28 -0
  148. package/lib/live/card.js.map +1 -0
  149. package/lib/live/liveActivity.js +144 -0
  150. package/lib/live/liveActivity.js.map +1 -0
  151. package/lib/module.js +3 -0
  152. package/lib/module.js.map +1 -0
  153. package/lib/offer/BlackFridayOffer.js +378 -0
  154. package/lib/offer/BlackFridayOffer.js.map +1 -0
  155. package/lib/offer/blackFriday.js +78 -0
  156. package/lib/offer/blackFriday.js.map +1 -0
  157. package/lib/offer/parts.js +624 -0
  158. package/lib/offer/parts.js.map +1 -0
  159. package/lib/offer/state.js +63 -0
  160. package/lib/offer/state.js.map +1 -0
  161. package/lib/push/push.js +142 -0
  162. package/lib/push/push.js.map +1 -0
  163. package/lib/push/usePushNotifications.js +39 -0
  164. package/lib/push/usePushNotifications.js.map +1 -0
  165. package/lib/routes.json +175 -0
  166. package/lib/screens/Account/index.js +209 -0
  167. package/lib/screens/Account/index.js.map +1 -0
  168. package/lib/screens/Chat/index.js +710 -0
  169. package/lib/screens/Chat/index.js.map +1 -0
  170. package/lib/screens/Chores/index.js +18 -0
  171. package/lib/screens/Chores/index.js.map +1 -0
  172. package/lib/screens/Connectors/index.js +17 -0
  173. package/lib/screens/Connectors/index.js.map +1 -0
  174. package/lib/screens/History/index.js +380 -0
  175. package/lib/screens/History/index.js.map +1 -0
  176. package/lib/screens/Home/index.js +2715 -0
  177. package/lib/screens/Home/index.js.map +1 -0
  178. package/lib/screens/Home/media.js +25 -0
  179. package/lib/screens/Home/media.js.map +1 -0
  180. package/lib/screens/Welcome/index.js +1066 -0
  181. package/lib/screens/Welcome/index.js.map +1 -0
  182. package/lib/talk/talkToLucy.js +139 -0
  183. package/lib/talk/talkToLucy.js.map +1 -0
  184. package/lib/theme/colors.js +29 -0
  185. package/lib/theme/colors.js.map +1 -0
  186. package/lib/theme/fonts.js +17 -0
  187. package/lib/theme/fonts.js.map +1 -0
  188. package/lib/theme/muse.js +134 -0
  189. package/lib/theme/muse.js.map +1 -0
  190. package/lib/utils/links.js +54 -0
  191. package/lib/utils/links.js.map +1 -0
  192. package/lib/utils/yantraLinks.js +68 -0
  193. package/lib/utils/yantraLinks.js.map +1 -0
  194. package/lib/welcome/flow.js +375 -0
  195. package/lib/welcome/flow.js.map +1 -0
  196. package/lib/welcome/haptics.js +125 -0
  197. package/lib/welcome/haptics.js.map +1 -0
  198. package/lib/welcome/parts.js +1996 -0
  199. package/lib/welcome/parts.js.map +1 -0
  200. package/lib/welcome/powerOn.js +29 -0
  201. package/lib/welcome/powerOn.js.map +1 -0
  202. package/lib/welcome/seen.js +41 -0
  203. package/lib/welcome/seen.js.map +1 -0
  204. package/lib/welcome/sound.js +110 -0
  205. package/lib/welcome/sound.js.map +1 -0
  206. package/package.json +66 -5
  207. package/rollup.config.mjs +42 -0
  208. package/src/.claude-flow/data/pending-insights.jsonl +19 -0
  209. package/src/.claude-flow/sessions/session-1795013028422.json +14 -0
  210. package/src/__tests__/auth.test.ts +94 -0
  211. package/src/__tests__/blackFriday.test.ts +75 -0
  212. package/src/__tests__/cardTokens.test.ts +77 -0
  213. package/src/__tests__/chores.test.ts +188 -0
  214. package/src/__tests__/choresList.test.ts +100 -0
  215. package/src/__tests__/connectLink.test.ts +21 -0
  216. package/src/__tests__/content.test.ts +54 -0
  217. package/src/__tests__/dictation.test.ts +186 -0
  218. package/src/__tests__/envConfig.test.ts +14 -0
  219. package/src/__tests__/haptics.test.ts +202 -0
  220. package/src/__tests__/jobs.test.ts +130 -0
  221. package/src/__tests__/keyboardCover.test.ts +84 -0
  222. package/src/__tests__/liveCard.test.ts +39 -0
  223. package/src/__tests__/lockedPhone.test.ts +355 -0
  224. package/src/__tests__/lucyMotion.test.ts +34 -0
  225. package/src/__tests__/platform.test.ts +32 -0
  226. package/src/__tests__/powerOn.test.ts +62 -0
  227. package/src/__tests__/protocol.test.ts +125 -0
  228. package/src/__tests__/push.test.ts +111 -0
  229. package/src/__tests__/results.test.ts +256 -0
  230. package/src/__tests__/sound.test.ts +248 -0
  231. package/src/__tests__/talkToLucy.test.ts +205 -0
  232. package/src/__tests__/textLink.test.ts +91 -0
  233. package/src/__tests__/voiceDial.test.ts +53 -0
  234. package/src/__tests__/welcomeFlow.test.ts +157 -0
  235. package/src/__tests__/whereLucyWorks.test.ts +81 -0
  236. package/src/__tests__/yantraLinks.test.ts +96 -0
  237. package/src/assets/home/loop-day.jpg +0 -0
  238. package/src/assets/home/loop-day.mp4 +0 -0
  239. package/src/assets/home/loop-time-back.jpg +0 -0
  240. package/src/assets/home/loop-time-back.mp4 +0 -0
  241. package/src/assets/home/loop-where.jpg +0 -0
  242. package/src/assets/home/loop-where.mp4 +0 -0
  243. package/src/assets/home/reel-gym.jpg +0 -0
  244. package/src/assets/home/reel-gym.mp4 +0 -0
  245. package/src/assets/home/reel-internet.jpg +0 -0
  246. package/src/assets/home/reel-internet.mp4 +0 -0
  247. package/src/assets/icon.png +0 -0
  248. package/src/assets/lottie/.claude-flow/data/pending-insights.jsonl +1 -0
  249. package/src/assets/lottie/lucy-mark-calendar.json +1827 -0
  250. package/src/assets/lottie/lucy-mark-call.json +1470 -0
  251. package/src/assets/lottie/lucy-mark-connect.json +2552 -0
  252. package/src/assets/lottie/lucy-mark-details.json +1735 -0
  253. package/src/assets/lottie/lucy-mark-email.json +1363 -0
  254. package/src/assets/lottie/lucy-mark-message.json +1154 -0
  255. package/src/assets/lottie/lucy-mark-search.json +1067 -0
  256. package/src/assets/lottie/lucy-mark-think.json +1253 -0
  257. package/src/assets/lottie/lucy-mark-write.json +1532 -0
  258. package/src/assets/lottie/time-back.json +16458 -0
  259. package/src/assets/lottie/where-lucy-works-chat.json +6170 -0
  260. package/src/assets/lottie/where-lucy-works-cloud.json +10066 -0
  261. package/src/assets/lottie/where-lucy-works-mine-none.json +2478 -0
  262. package/src/assets/lottie/where-lucy-works-mine-offline.json +2373 -0
  263. package/src/assets/lottie/where-lucy-works-mine-online.json +7881 -0
  264. package/src/assets/sounds/hours-back.m4a +0 -0
  265. package/src/assets/sounds/meet-lucy.m4a +0 -0
  266. package/src/assets/sounds/power-on.m4a +0 -0
  267. package/src/assets/sounds/wind-back.m4a +0 -0
  268. package/src/assets/sounds/youre-in.m4a +0 -0
  269. package/src/chat/.claude-flow/data/pending-insights.jsonl +1 -0
  270. package/src/chat/agent.ts +376 -0
  271. package/src/chat/appFront.ts +39 -0
  272. package/src/chat/auth.ts +433 -0
  273. package/src/chat/chores.ts +394 -0
  274. package/src/chat/connectors.ts +75 -0
  275. package/src/chat/jobs.ts +228 -0
  276. package/src/chat/lucyMotion.ts +33 -0
  277. package/src/chat/protocol.ts +192 -0
  278. package/src/chat/results.ts +224 -0
  279. package/src/chat/store.ts +87 -0
  280. package/src/chat/useDictation.ts +201 -0
  281. package/src/chat/useLucyChat.ts +458 -0
  282. package/src/chat/useMyComputer.ts +41 -0
  283. package/src/chat/whereLucyWorks.ts +97 -0
  284. package/src/chat/workspace.ts +127 -0
  285. package/src/components/.claude-flow/data/pending-insights.jsonl +3 -0
  286. package/src/components/AreaShot.tsx +239 -0
  287. package/src/components/Backdrops.tsx +323 -0
  288. package/src/components/BottomSheet.tsx +96 -0
  289. package/src/components/ChatSheets.tsx +565 -0
  290. package/src/components/ConnectorLogo.tsx +116 -0
  291. package/src/components/CustomDrawer.tsx +526 -0
  292. package/src/components/IdeasPane.tsx +318 -0
  293. package/src/components/ImessageSheet.tsx +280 -0
  294. package/src/components/KeyboardAvoider.tsx +45 -0
  295. package/src/components/Logo.tsx +97 -0
  296. package/src/components/LucyWorking.tsx +122 -0
  297. package/src/components/Markdown.tsx +219 -0
  298. package/src/components/Media.tsx +173 -0
  299. package/src/components/MessagesAppIcon.tsx +51 -0
  300. package/src/components/MicButton.tsx +92 -0
  301. package/src/components/ResultCards.tsx +1067 -0
  302. package/src/components/SignInPrompt.tsx +182 -0
  303. package/src/components/SignedOut.tsx +47 -0
  304. package/src/components/TalkToLucyHero.tsx +540 -0
  305. package/src/components/TalkToLucySheet.tsx +208 -0
  306. package/src/components/VoiceOrb.tsx +364 -0
  307. package/src/components/WhereLucyWorks.tsx +261 -0
  308. package/src/components/WorkspaceSection.tsx +307 -0
  309. package/src/components/YantraMark.tsx +30 -0
  310. package/src/components/drawerHeader.tsx +46 -0
  311. package/src/components/kit.tsx +309 -0
  312. package/src/components/lottieInstalled.ts +7 -0
  313. package/src/components/ui.tsx +700 -0
  314. package/src/components/useSignOut.ts +21 -0
  315. package/src/components/viewport.tsx +166 -0
  316. package/src/components/voiceDial.ts +45 -0
  317. package/src/compute.ts +168 -0
  318. package/src/config/env-config.ts +50 -0
  319. package/src/config/routes.ts +28 -0
  320. package/src/content.ts +217 -0
  321. package/src/hooks/keyboardCover.ts +70 -0
  322. package/src/hooks/useKeyboard.ts +135 -0
  323. package/src/hooks/useReducedMotion.ts +19 -0
  324. package/src/imessage/openMessages.ts +53 -0
  325. package/src/imessage/platform.ts +32 -0
  326. package/src/imessage/textLink.ts +307 -0
  327. package/src/index.ts +24 -0
  328. package/src/live/card.ts +62 -0
  329. package/src/live/liveActivity.ts +192 -0
  330. package/src/module.ts +8 -0
  331. package/src/offer/BlackFridayOffer.tsx +394 -0
  332. package/src/offer/blackFriday.ts +109 -0
  333. package/src/offer/parts.tsx +650 -0
  334. package/src/offer/state.ts +78 -0
  335. package/src/push/push.ts +171 -0
  336. package/src/push/usePushNotifications.ts +47 -0
  337. package/src/screens/Account/index.tsx +310 -0
  338. package/src/screens/Chat/.claude-flow/data/pending-insights.jsonl +4 -0
  339. package/src/screens/Chat/index.tsx +891 -0
  340. package/src/screens/Chores/index.tsx +35 -0
  341. package/src/screens/Connectors/index.tsx +35 -0
  342. package/src/screens/History/index.tsx +346 -0
  343. package/src/screens/Home/index.tsx +2776 -0
  344. package/src/screens/Home/media.ts +31 -0
  345. package/src/screens/Welcome/index.tsx +1182 -0
  346. package/src/talk/talkToLucy.ts +187 -0
  347. package/src/theme/colors.ts +38 -0
  348. package/src/theme/fonts.ts +30 -0
  349. package/src/theme/muse.ts +86 -0
  350. package/src/utils/links.ts +84 -0
  351. package/src/utils/yantraLinks.ts +94 -0
  352. package/src/welcome/flow.ts +418 -0
  353. package/src/welcome/haptics.ts +179 -0
  354. package/src/welcome/parts.tsx +2160 -0
  355. package/src/welcome/powerOn.ts +84 -0
  356. package/src/welcome/seen.ts +68 -0
  357. package/src/welcome/sound.ts +173 -0
  358. package/tools/lottie/chat.motion +0 -0
  359. package/tools/lottie/cloud.motion +0 -0
  360. package/tools/lottie/generate.mjs +1209 -0
  361. package/tools/lottie/inter-glyphs.json +4416 -0
  362. package/tools/lottie/lucy-mark-calendar.motion +0 -0
  363. package/tools/lottie/lucy-mark-call.motion +0 -0
  364. package/tools/lottie/lucy-mark-connect.motion +0 -0
  365. package/tools/lottie/lucy-mark-details.motion +0 -0
  366. package/tools/lottie/lucy-mark-email.motion +0 -0
  367. package/tools/lottie/lucy-mark-message.motion +0 -0
  368. package/tools/lottie/lucy-mark-search.motion +0 -0
  369. package/tools/lottie/lucy-mark-think.motion +0 -0
  370. package/tools/lottie/lucy-mark-write.motion +0 -0
  371. package/tools/lottie/mark.json +1 -0
  372. package/tools/lottie/mine-none.motion +0 -0
  373. package/tools/lottie/mine-offline.motion +0 -0
  374. package/tools/lottie/mine-online.motion +0 -0
  375. package/tools/lottie/time-back.mjs +604 -0
  376. package/tools/sounds/render.mjs +730 -0
  377. package/tsconfig.json +17 -0
  378. package/README.md +0 -3
package/src/content.ts ADDED
@@ -0,0 +1,217 @@
1
+ /**
2
+ * The same copy as the web Clockbook home (clockbook-home content.ts): keep the two in step.
3
+ */
4
+ /**
5
+ * Everything the landing says, in one place. Chore `prompt`s are what the app receives pre-typed:
6
+ * written the way a person would text them, never promising an outcome the business decides.
7
+ *
8
+ * Minutes are the deck's illustrative assumptions over the U.S. BLS American Time Use Survey 2025:
9
+ * ~169 minutes a day of addressable life admin, ~38 of them handed back (~22%). Keep the footnote
10
+ * wherever a number shows.
11
+ */
12
+
13
+ export interface Chore {
14
+ label: string;
15
+ prompt: string;
16
+ }
17
+
18
+ /** Hero "Try one" buttons. */
19
+ export const HERO_CHORES: Chore[] = [
20
+ { label: 'Cancel my gym', prompt: 'Cancel my gym membership. They say I have to call or come in.' },
21
+ {
22
+ label: 'Lower my internet bill',
23
+ prompt: 'My internet bill went up. Call my provider and ask for a better rate.',
24
+ },
25
+ {
26
+ label: 'Plan dinners + a grocery list',
27
+ prompt: 'Plan five easy dinners for this week and make me a grocery list.',
28
+ },
29
+ { label: 'Book the dentist', prompt: 'Book a dentist appointment for my kids next week, after school.' },
30
+ {
31
+ label: 'Get my flight refund',
32
+ prompt: 'My flight was cancelled. Ask the airline for a refund instead of a voucher.',
33
+ },
34
+ { label: 'Fight a bank fee', prompt: 'My bank charged me overdraft fees. Ask them to refund them.' },
35
+ { label: 'Return a package', prompt: 'Help me return an online order and get my money back.' },
36
+ { label: 'Track my bills', prompt: 'Track my household bills this month and remind me before each one is due.' },
37
+ ];
38
+
39
+ export interface Area {
40
+ key: 'bills' | 'subscriptions' | 'groceries' | 'family' | 'home' | 'travel';
41
+ title: string;
42
+ blurb: string;
43
+ chores: Chore[];
44
+ }
45
+
46
+ /** "Every corner of home life": each example is a button into the app. */
47
+ export const AREAS: Area[] = [
48
+ {
49
+ key: 'bills',
50
+ title: 'Bills & money',
51
+ blurb: 'Rates, fees and due dates, handled before they cost you.',
52
+ chores: [
53
+ {
54
+ label: 'Lower a bill',
55
+ prompt: 'Help me lower one of my household bills. Start with the one that went up most.',
56
+ },
57
+ { label: 'Dispute a charge', prompt: 'I was charged for something I did not order. Help me dispute it.' },
58
+ { label: 'Remind me before bills are due', prompt: 'Remind me by text before each of my bills is due.' },
59
+ ],
60
+ },
61
+ {
62
+ key: 'subscriptions',
63
+ title: 'Subscriptions',
64
+ blurb: 'Cancel the ones that make you call. Find the ones you forgot.',
65
+ chores: [
66
+ {
67
+ label: 'Cancel a subscription',
68
+ prompt: 'Cancel a subscription for me. It says I have to call to cancel.',
69
+ },
70
+ {
71
+ label: "Find what I'm paying for",
72
+ prompt: 'Help me list every subscription I am paying for each month.',
73
+ },
74
+ { label: 'Pause a membership', prompt: 'Pause my membership for two months instead of cancelling it.' },
75
+ ],
76
+ },
77
+ {
78
+ key: 'groceries',
79
+ title: 'Groceries & shopping',
80
+ blurb: 'Meals planned, lists made, prices compared, returns sorted.',
81
+ chores: [
82
+ {
83
+ label: "Plan the week's meals",
84
+ prompt: 'Plan this week’s dinners for a family of four and make the grocery list.',
85
+ },
86
+ {
87
+ label: 'Compare prices',
88
+ prompt: 'Compare prices for the things on my shopping list and tell me where it is cheapest.',
89
+ },
90
+ { label: 'Return an order', prompt: 'Help me return an online order and get a refund.' },
91
+ ],
92
+ },
93
+ {
94
+ key: 'family',
95
+ title: 'Family logistics',
96
+ blurb: 'Appointments, forms and reminders for everyone at home.',
97
+ chores: [
98
+ {
99
+ label: 'Book appointments',
100
+ prompt: 'Book a doctor and a dentist appointment for my kids in the next two weeks.',
101
+ },
102
+ { label: 'Fill in a school form', prompt: 'Help me fill in a school form for my child.' },
103
+ { label: 'Remind me by text', prompt: 'Text me reminders for this week’s school pickups and activities.' },
104
+ ],
105
+ },
106
+ {
107
+ key: 'home',
108
+ title: 'Home & repairs',
109
+ blurb: 'Find the right person, book the visit, chase the warranty.',
110
+ chores: [
111
+ { label: 'Find a plumber', prompt: 'Find a well-reviewed plumber near me who can come this week.' },
112
+ { label: 'Book a cleaner', prompt: 'Book a home cleaner for this Saturday morning.' },
113
+ {
114
+ label: 'Claim a warranty',
115
+ prompt: 'My appliance stopped working and is under warranty. Help me get it repaired or replaced.',
116
+ },
117
+ ],
118
+ },
119
+ {
120
+ key: 'travel',
121
+ title: 'Travel',
122
+ blurb: 'Refunds, rebookings and cheaper fares without the hold music.',
123
+ chores: [
124
+ {
125
+ label: 'Get a refund',
126
+ prompt: 'My flight was cancelled. Get me a refund to my card instead of a voucher.',
127
+ },
128
+ { label: 'Rebook a flight', prompt: 'Rebook my cancelled flight on the next one with seats.' },
129
+ { label: 'Find a cheaper fare', prompt: 'Find me a cheaper flight for my trip next month.' },
130
+ ],
131
+ },
132
+ ];
133
+
134
+ /** Where the minutes come from (per day). Housework stays at zero on purpose: it is physical. */
135
+ export const MINUTES: { label: string; min: number; of: number; color: string }[] = [
136
+ { label: 'Shopping', min: 17, of: 41, color: '#FFE4D2' },
137
+ { label: 'Meals & groceries', min: 6, of: 43, color: '#FFC29C' },
138
+ { label: 'Bills & paperwork', min: 6, of: 10, color: '#FFA36B' },
139
+ { label: 'Calls, mail & email', min: 6, of: 11, color: '#FF8840' },
140
+ { label: 'Family logistics', min: 3, of: 29, color: '#B53F00' },
141
+ ];
142
+ export const HOUSEWORK_MIN = 34;
143
+
144
+ export const STEPS: { title: string; body: string }[] = [
145
+ { title: 'Text it', body: 'In iMessage, WhatsApp or the app. Say it the way you would tell a friend.' },
146
+ {
147
+ title: 'Clockbook handles it',
148
+ body: 'Lucy makes the calls, works the forms, compares the prices and keeps track.',
149
+ },
150
+ {
151
+ title: 'You approve what matters',
152
+ body: 'Payments and account changes wait for your yes. When a company needs to hear from you, Lucy rings you in.',
153
+ },
154
+ ];
155
+
156
+ export const FOOTNOTE =
157
+ 'Illustrative estimate: about 38 of the roughly 169 minutes of daily life admin, based on the U.S. BLS American Time Use Survey 2025. Results vary by household.';
158
+ export const VIDEO_NOTE = 'Videos are dramatizations with AI voices and fictional companies.';
159
+
160
+ /** "Clockbook for business": what the business site offers teams, each linking into it. */
161
+ export interface BusinessProduct {
162
+ key: 'time' | 'hr' | 'books' | 'workflows';
163
+ title: string;
164
+ blurb: string;
165
+ /** Path on the business site (see appLink.ts businessLink). */
166
+ path: string;
167
+ }
168
+
169
+ export const BUSINESS_PRODUCTS: BusinessProduct[] = [
170
+ {
171
+ key: 'time',
172
+ title: 'Time tracking',
173
+ blurb: 'One-click timers, projects and tasks, activity screenshots, and timesheets that stay in sync across the desktop bar and the browser.',
174
+ path: '/products/time-tracker',
175
+ },
176
+ {
177
+ key: 'hr',
178
+ title: 'HR',
179
+ blurb: 'Onboarding, attendance, time off and the paperwork of a growing team, with approvals that learn your decisions.',
180
+ path: '/products/hrm',
181
+ },
182
+ {
183
+ key: 'books',
184
+ title: 'Books',
185
+ blurb: 'Invoices, expenses, payroll and the complete financial toolkit for a growing business.',
186
+ path: '/products/books',
187
+ },
188
+ {
189
+ key: 'workflows',
190
+ title: 'Workflows',
191
+ blurb: 'Automate the back office with visual workflows and agents that flag what needs a human, with you always in control.',
192
+ path: '/products/workflow',
193
+ },
194
+ ];
195
+
196
+ /**
197
+ * The web home's header nav (clock-tik-browser pages/Home/HomePage.tsx `cbh-links`), in its order. Each one is a
198
+ * section of the home: the web page jumps to `#<key>`, the app's drawer scrolls Home to it. "For business" follows
199
+ * them there as a link out to the Yantra app (links.ts yantraAppUrl), as on the web.
200
+ */
201
+ /** Home's in-page anchors; `faq` is only reached from the footer. */
202
+ export type SectionKey = 'how' | 'calls' | 'imessage' | 'areas' | 'faq';
203
+
204
+ export const NAV_SECTIONS: { key: SectionKey; label: string }[] = [
205
+ { key: 'how', label: 'How it works' },
206
+ { key: 'calls', label: 'Lucy calls' },
207
+ { key: 'imessage', label: 'iMessage' },
208
+ { key: 'areas', label: 'What it handles' },
209
+ ];
210
+
211
+ export const BUSINESS_LINKS = {
212
+ home: '',
213
+ pricing: '/pricing',
214
+ demo: '/demo',
215
+ freelancers: '/freelancers',
216
+ helpCenter: '/help-center',
217
+ } as const;
@@ -0,0 +1,70 @@
1
+ /**
2
+ * How much of a view that runs to the bottom of the screen the keyboard still covers, in points.
3
+ *
4
+ * Android does one of two things when the keyboard comes up. An app drawn edge to edge (Android 16, which no longer
5
+ * lets an app opt out) keeps its full height and the keyboard lies over its bottom. An app that is not (Android 15
6
+ * and older: Expo 53 leaves edge to edge off and the app asks for `resize`) has its window shrunk to end at the
7
+ * keyboard: the system has made the room already. Padding by the whole keyboard on such a phone made the room twice
8
+ * and pushed the chat's composer up under the header.
9
+ */
10
+ export function keyboardCover({
11
+ keyboard,
12
+ navBar = 0,
13
+ madeBySystem = 0,
14
+ }: {
15
+ /** The keyboard's height (0 while it is down). */
16
+ keyboard: number;
17
+ /** Android's navigation bar: the keyboard covers it too, but leaves it out of its height. */
18
+ navBar?: number;
19
+ /** How much the system shrank the view for the keyboard. */
20
+ madeBySystem?: number;
21
+ }): number {
22
+ if (keyboard <= 0) return 0;
23
+ return Math.max(0, Math.round(keyboard + navBar - Math.max(0, madeBySystem)));
24
+ }
25
+
26
+ /**
27
+ * Before the view has been measured with the keyboard up: whether the window shrinks for it. What it did the last time
28
+ * the keyboard came up decides; before that, whether the app is drawn under the system bars, as a window that is not
29
+ * (no insets at all) is the one Android shrinks.
30
+ */
31
+ export function windowShrinksGuess(seen: boolean | null, insets: { top: number; bottom: number }): boolean {
32
+ return seen ?? (insets.top === 0 && insets.bottom === 0);
33
+ }
34
+
35
+ /** A layout this soon before the keyboard's event can be the window already shrinking for it. */
36
+ const JUST_BEFORE_MS = 250;
37
+ /** Points of rounding between the keyboard's height and the shrink it causes. */
38
+ const SAME_HEIGHT = 2;
39
+
40
+ /**
41
+ * A view's height with the keyboard down, kept from its layouts, so the room the system made is that height less the
42
+ * view's height with the keyboard up.
43
+ *
44
+ * The latest height counts, not the tallest: the first layouts of a screen can be taller for a moment (before the
45
+ * status bar's inset arrives), and that was taken for 49 points of room the system never made. One exception: the
46
+ * shrunk layout can arrive just before the keyboard's own event, so a shrink of exactly the keyboard's height a moment
47
+ * before it is the keyboard's, and the height before it counts.
48
+ */
49
+ export class RestHeight {
50
+ private height = 0;
51
+
52
+ private before = 0;
53
+
54
+ private at = Number.NEGATIVE_INFINITY;
55
+
56
+ /** A layout while the keyboard is down. */
57
+ seen(height: number, at: number): void {
58
+ if (height === this.height) return;
59
+ this.before = this.height;
60
+ this.height = height;
61
+ this.at = at;
62
+ }
63
+
64
+ /** The height to count from when a keyboard of this height came up at `at`; 0 before any layout. */
65
+ base(keyboard: number, at: number): number {
66
+ const shrink = this.before - this.height;
67
+ const keyboardsOwn = at - this.at <= JUST_BEFORE_MS && Math.abs(shrink - keyboard) <= SAME_HEIGHT;
68
+ return keyboardsOwn ? this.before : this.height;
69
+ }
70
+ }
@@ -0,0 +1,135 @@
1
+ /**
2
+ * Where the on-screen keyboard is. iOS says so as it starts to move (`keyboardWill…`), Android only once it has
3
+ * (`keyboardDid…`: it sends no "will" events).
4
+ *
5
+ * Each screen makes its own room, with `useKeyboardCover`: on Android the system sometimes has made it already (see
6
+ * `keyboardCover`).
7
+ */
8
+ import { useCallback, useEffect, useRef, useState, type RefObject } from 'react';
9
+ import { Dimensions, Keyboard, Platform, type KeyboardEvent, type LayoutChangeEvent, type View } from 'react-native';
10
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
11
+ import { keyboardCover, RestHeight, windowShrinksGuess } from './keyboardCover';
12
+
13
+ export interface KeyboardState {
14
+ /** The keyboard is up. */
15
+ shown: boolean;
16
+ /** How tall it is, in points; 0 when it is down. */
17
+ height: number;
18
+ /** Where its top edge sits on the screen, in points; null when it is down. */
19
+ top: number | null;
20
+ /** How long it takes to move (iOS; 0 on Android). */
21
+ duration: number;
22
+ }
23
+
24
+ const DOWN: KeyboardState = { shown: false, height: 0, top: null, duration: 0 };
25
+
26
+ export const KEYBOARD_SHOW = Platform.OS === 'ios' ? 'keyboardWillShow' : 'keyboardDidShow';
27
+ export const KEYBOARD_HIDE = Platform.OS === 'ios' ? 'keyboardWillHide' : 'keyboardDidHide';
28
+
29
+ export function useKeyboard(): KeyboardState {
30
+ const [state, setState] = useState<KeyboardState>(DOWN);
31
+ // Android leaves the navigation bar out of the keyboard's height and puts its top that much too low: the keyboard
32
+ // also covers the bar, so its real top is the screen's bottom less both.
33
+ const navBar = useSafeAreaInsets().bottom;
34
+ useEffect(() => {
35
+ const show = Keyboard.addListener(KEYBOARD_SHOW, (e: KeyboardEvent) =>
36
+ setState({
37
+ shown: true,
38
+ height: e.endCoordinates.height,
39
+ top:
40
+ Platform.OS === 'android'
41
+ ? Dimensions.get('screen').height - e.endCoordinates.height - navBar
42
+ : e.endCoordinates.screenY,
43
+ duration: e.duration ?? 0,
44
+ }),
45
+ );
46
+ // iOS also moves it without hiding (another keyboard, the suggestion bar): keep up with that.
47
+ const change =
48
+ Platform.OS === 'ios'
49
+ ? Keyboard.addListener('keyboardWillChangeFrame', (e: KeyboardEvent) =>
50
+ setState((prev) =>
51
+ prev.shown
52
+ ? {
53
+ shown: true,
54
+ height: e.endCoordinates.height,
55
+ top: e.endCoordinates.screenY,
56
+ duration: e.duration ?? 0,
57
+ }
58
+ : prev,
59
+ ),
60
+ )
61
+ : null;
62
+ const hide = Keyboard.addListener(KEYBOARD_HIDE, (e: KeyboardEvent) =>
63
+ setState({ ...DOWN, duration: e?.duration ?? 0 }),
64
+ );
65
+ return () => {
66
+ show.remove();
67
+ change?.remove();
68
+ hide.remove();
69
+ };
70
+ }, [navBar]);
71
+ return state;
72
+ }
73
+
74
+ /** Whether this app's window shrinks for the keyboard, once a keyboard has shown it (one answer for the whole app). */
75
+ let shrinksSeen: boolean | null = null;
76
+
77
+ /**
78
+ * How much of one view the keyboard covers, in points (0 while it is down), for a view that runs to the bottom of the
79
+ * screen: pad or scroll by `covers`. `view` is that view, and `onLayout` goes on it. Some Android phones shrink the
80
+ * window for the keyboard and some do not; the view's own height says which, and only what the system has not made
81
+ * room for counts (iOS never shrinks it).
82
+ */
83
+ export function useKeyboardCover(view: RefObject<View | null>): {
84
+ keyboard: KeyboardState;
85
+ covers: number;
86
+ onLayout: (e: LayoutChangeEvent) => void;
87
+ } {
88
+ const keyboard = useKeyboard();
89
+ const insets = useSafeAreaInsets();
90
+ const android = Platform.OS === 'android';
91
+ // How much the system shrank the view for the keyboard now up, once measured.
92
+ const [measured, setMeasured] = useState<number | null>(null);
93
+ const rest = useRef(new RestHeight());
94
+ const up = useRef<{ keyboard: number; at: number } | null>(null);
95
+ const madeFrom = useCallback((height: number) => {
96
+ const shown = up.current;
97
+ if (!shown || height <= 0) return;
98
+ const made = Math.max(0, rest.current.base(shown.keyboard, shown.at) - height);
99
+ shrinksSeen = made >= shown.keyboard / 2;
100
+ setMeasured(made);
101
+ }, []);
102
+ const onLayout = useCallback(
103
+ (e: LayoutChangeEvent) => {
104
+ const { height } = e.nativeEvent.layout;
105
+ if (up.current) madeFrom(height);
106
+ else rest.current.seen(height, Date.now());
107
+ },
108
+ [madeFrom],
109
+ );
110
+ useEffect(() => {
111
+ if (!android) return undefined;
112
+ const show = Keyboard.addListener(KEYBOARD_SHOW, (e: KeyboardEvent) => {
113
+ up.current = { keyboard: e.endCoordinates.height, at: Date.now() };
114
+ setMeasured(null);
115
+ view.current?.measure((_x, _y, _width, height) => madeFrom(height));
116
+ });
117
+ const hide = Keyboard.addListener(KEYBOARD_HIDE, () => {
118
+ up.current = null;
119
+ setMeasured(null);
120
+ });
121
+ return () => {
122
+ show.remove();
123
+ hide.remove();
124
+ };
125
+ }, [android, view, madeFrom]);
126
+ // The view's new height reaches JS a few frames after the keyboard's event; until it does, the room goes by what
127
+ // the window did before (or by the system bars), so the composer does not jump up under the header meanwhile.
128
+ const made = measured ?? (windowShrinksGuess(shrinksSeen, insets) ? keyboard.height : 0);
129
+ const covers = keyboardCover({
130
+ keyboard: keyboard.shown ? keyboard.height : 0,
131
+ navBar: android ? insets.bottom : 0,
132
+ madeBySystem: android ? made : 0,
133
+ });
134
+ return { keyboard, covers, onLayout };
135
+ }
@@ -0,0 +1,19 @@
1
+ import { useEffect, useState } from 'react';
2
+ import { AccessibilityInfo } from 'react-native';
3
+
4
+ /** The phone's "Reduce Motion" setting, kept current while the screen is open. */
5
+ export function useReducedMotion(): boolean {
6
+ const [reduced, setReduced] = useState(false);
7
+ useEffect(() => {
8
+ let alive = true;
9
+ AccessibilityInfo.isReduceMotionEnabled()
10
+ .then((value) => alive && setReduced(value))
11
+ .catch(() => undefined);
12
+ const sub = AccessibilityInfo.addEventListener('reduceMotionChanged', setReduced);
13
+ return () => {
14
+ alive = false;
15
+ sub.remove();
16
+ };
17
+ }, []);
18
+ return reduced;
19
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Opens the phone's own Messages app at Lucy's line with the first text ready.
3
+ *
4
+ * - iOS: the Messages app itself, by the `sms:` link, so the conversation with Lucy carries on there. Apple's in-app
5
+ * composer (MFMessageComposeViewController) is only the fallback: it sends one text and closes, which read as
6
+ * Messages opening and then shutting on the person.
7
+ * - Android: the phone's default SMS app (Telephony's default SMS package), which WhatsApp can never be (a bare `sms:`
8
+ * link goes to whichever app claims it, and WhatsApp claims it once picked "always"). The link is the last resort.
9
+ * The composer and the default SMS app come from expo-sms's native module; a build without it gets the link.
10
+ */
11
+ import { Linking, Platform } from 'react-native';
12
+ import { requireOptionalNativeModule } from 'expo-modules-core';
13
+
14
+ interface ExpoSmsModule {
15
+ isAvailableAsync?: () => Promise<boolean>;
16
+ sendSMSAsync?: (addresses: string[], message: string, options: object) => Promise<{ result: string }>;
17
+ }
18
+
19
+ let native: ExpoSmsModule | null | undefined;
20
+ function sms(): ExpoSmsModule | null {
21
+ if (native === undefined) native = requireOptionalNativeModule<ExpoSmsModule>('ExpoSMS');
22
+ return native;
23
+ }
24
+
25
+ export interface MessagesTarget {
26
+ /** Lucy's line: the iCloud handle or the SMS number. Never print it. */
27
+ to: string;
28
+ /** The first text, hidden pairing code included. */
29
+ body: string;
30
+ /** The same as an `sms:` link, for builds without the native composer. */
31
+ href: string;
32
+ }
33
+
34
+ /** True when Messages opened (or its composer showed); false when nothing on this phone could. */
35
+ export async function openMessages({ to, body, href }: MessagesTarget): Promise<boolean> {
36
+ if (Platform.OS === 'ios') {
37
+ const opened = await Linking.openURL(href)
38
+ .then(() => true)
39
+ .catch(() => false);
40
+ if (opened) return true;
41
+ }
42
+ const mod = sms();
43
+ if (mod?.sendSMSAsync && (await mod.isAvailableAsync?.().catch(() => false))) {
44
+ const sent = await mod
45
+ .sendSMSAsync([to], body, {})
46
+ .then(() => true)
47
+ .catch(() => false);
48
+ if (sent) return true;
49
+ }
50
+ return Linking.openURL(href)
51
+ .then(() => true)
52
+ .catch(() => false);
53
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Texting Lucy, said for the phone in the hand - as Yantra's app does (account/mobile features/channels
3
+ * HomeImessage.tsx, ConnectAppsSheet.tsx `smsOnly`). An iPhone texts Lucy's iMessage handle; an Android phone cannot
4
+ * text an Apple ID, so it texts the SMS/RCS number forwarding to the same line, in its Messages app. Everything that
5
+ * names the app or shows its icon reads from here, so an Android phone never sees "iMessage".
6
+ */
7
+ import { Platform } from 'react-native';
8
+
9
+ export const ANDROID = Platform.OS === 'android';
10
+
11
+ /** The app Lucy is texted in: iMessage on Apple devices, Messages (SMS/RCS) on Android. */
12
+ export const MESSAGES_APP = ANDROID ? 'Messages' : 'iMessage';
13
+
14
+ /** The button that opens the texting sheet. */
15
+ export const TEXT_LUCY = `Text Lucy on ${MESSAGES_APP}`;
16
+
17
+ /** What the phone is called once it is linked. */
18
+ export const LINKED_THING = ANDROID ? 'phone' : 'iPhone';
19
+
20
+ /** Where the person can text Lucy from. */
21
+ export const TEXT_FROM = ANDROID ? 'your phone' : 'your iPhone, iPad or Mac';
22
+
23
+ /**
24
+ * The web's TEXT_STEPS (content.ts), with the button they name and the devices they promise matched to this phone.
25
+ */
26
+ export function textSteps(steps: readonly { title: string; body: string }[]): { title: string; body: string }[] {
27
+ if (!ANDROID) return [...steps];
28
+ return steps.map((step) => ({
29
+ title: step.title,
30
+ body: step.body.replace(/Text Lucy on iMessage/g, TEXT_LUCY).replace(/iPhone, iPad or Mac/g, TEXT_FROM),
31
+ }));
32
+ }