@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
@@ -0,0 +1,54 @@
1
+ import*as WebBrowser from'expo-web-browser';import {Linking}from'react-native';import {config}from'../config/env-config.js';const PROMPT_MAX = 500;
2
+ const PRODUCTION_APP = "https://app-v10.clockbook.com";
3
+ function appBase() {
4
+ return String(config.APP_URL || PRODUCTION_APP).replace(/\/+$/, "");
5
+ }
6
+ function chatLink(prompt, base = appBase()) {
7
+ const url = new URL("/new", base);
8
+ const q = prompt.trim().slice(0, PROMPT_MAX).trim();
9
+ if (q)
10
+ url.searchParams.set("q", q);
11
+ return url.toString();
12
+ }
13
+ function businessBase() {
14
+ return String(config.BUSINESS_URL || "").trim().replace(/\/+$/, "");
15
+ }
16
+ function businessLink(path = "", base = businessBase()) {
17
+ if (!base)
18
+ return "";
19
+ const clean = path.trim();
20
+ if (!clean)
21
+ return base;
22
+ return `${base}${clean.startsWith("/") ? "" : "/"}${clean}`;
23
+ }
24
+ function yantraAppUrl() {
25
+ return String(config.YANTRA_APP_URL || "https://yantra.app").replace(/\/+$/, "");
26
+ }
27
+ function appTextingLink() {
28
+ return new URL("/onboarding", yantraAppUrl()).toString();
29
+ }
30
+ async function openUrl(url) {
31
+ if (!url)
32
+ return;
33
+ try {
34
+ await WebBrowser.openBrowserAsync(url);
35
+ } catch (e) {
36
+ await Linking.openURL(url).catch(() => void 0);
37
+ }
38
+ }
39
+ async function openInSheet(url) {
40
+ if (!url)
41
+ return;
42
+ try {
43
+ await WebBrowser.openBrowserAsync(url, {
44
+ presentationStyle: WebBrowser.WebBrowserPresentationStyle.PAGE_SHEET,
45
+ dismissButtonStyle: "done",
46
+ controlsColor: "#B84100"
47
+ });
48
+ } catch (e) {
49
+ await Linking.openURL(url).catch(() => void 0);
50
+ }
51
+ }
52
+ function openChore(prompt) {
53
+ return openUrl(chatLink(prompt));
54
+ }export{PROMPT_MAX,appBase,appTextingLink,businessBase,businessLink,chatLink,openChore,openInSheet,openUrl,yantraAppUrl};//# sourceMappingURL=links.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"links.js","sources":["../../src/utils/links.ts"],"sourcesContent":["/**\n * Links from the home into the Clockbook app (the same links as the web Clockbook home).\n * A chore opens the app's new-chat page with the chore pre-typed (`/new?q=`); the person reviews it\n * and presses send - nothing is sent from here.\n */\nimport * as WebBrowser from 'expo-web-browser';\nimport { Linking } from 'react-native';\nimport { config } from '../config/env-config';\n\n/** The app's own cap for a pre-typed prompt; longer text is cut, never sent. */\nexport const PROMPT_MAX = 500;\nconst PRODUCTION_APP = 'https://app-v10.clockbook.com';\n\nexport function appBase(): string {\n return String(config.APP_URL || PRODUCTION_APP).replace(/\\/+$/, '');\n}\n\n/** The app's new-chat page with `prompt` pre-typed; an empty prompt opens it blank. */\nexport function chatLink(prompt: string, base: string = appBase()): string {\n const url = new URL('/new', base);\n const q = prompt.trim().slice(0, PROMPT_MAX).trim();\n if (q) url.searchParams.set('q', q);\n return url.toString();\n}\n\n/** Clockbook for business. Empty when none is configured: the home then shows no business links. */\nexport function businessBase(): string {\n return String(config.BUSINESS_URL || '')\n .trim()\n .replace(/\\/+$/, '');\n}\n\n/** A page of the business site: `businessLink('/pricing')`. Empty when no site is configured. */\nexport function businessLink(path = '', base: string = businessBase()): string {\n if (!base) return '';\n const clean = path.trim();\n if (!clean) return base;\n return `${base}${clean.startsWith('/') ? '' : '/'}${clean}`;\n}\n\n/** The Yantra app Clockbook runs on: the web home's \"For business\" link. */\nexport function yantraAppUrl(): string {\n return String(config.YANTRA_APP_URL || 'https://yantra.app').replace(/\\/+$/, '');\n}\n\n/**\n * \"Text Lucy on iMessage\": the Yantra app's texting onboarding, which links the phone and opens Messages with\n * \"Hi Lucy\" ready (the web home's fallback, clock-tik-browser pages/Home/platform.ts appTextingLink).\n */\nexport function appTextingLink(): string {\n return new URL('/onboarding', yantraAppUrl()).toString();\n}\n\n/** Opens a page in the in-app browser sheet, falling back to the system browser. */\nexport async function openUrl(url: string): Promise<void> {\n if (!url) return;\n try {\n await WebBrowser.openBrowserAsync(url);\n } catch {\n await Linking.openURL(url).catch(() => undefined);\n }\n}\n\n/**\n * Opens a page over the app as a sheet (an iOS page sheet with Done; a custom tab on Android), for a page the person\n * comes back from, such as a result card's Travel or Shopping. Falls back to the system browser.\n */\nexport async function openInSheet(url: string): Promise<void> {\n if (!url) return;\n try {\n await WebBrowser.openBrowserAsync(url, {\n presentationStyle: WebBrowser.WebBrowserPresentationStyle.PAGE_SHEET,\n dismissButtonStyle: 'done',\n controlsColor: '#B84100',\n });\n } catch {\n await Linking.openURL(url).catch(() => undefined);\n }\n}\n\n/** Hands a chore to Lucy: the app's chat with it pre-typed. */\nexport function openChore(prompt: string): Promise<void> {\n return openUrl(chatLink(prompt));\n}\n"],"names":[],"mappings":"4HAUO,MAAM,UAAa,GAAA;AAC1B,MAAM,cAAiB,GAAA,+BAAA;AAChB,SAAS,OAAkB,GAAA;AAChC,EAAA,OAAO,OAAO,MAAO,CAAA,OAAA,IAAW,cAAc,CAAE,CAAA,OAAA,CAAQ,QAAQ,EAAE,CAAA;AACpE;AAGO,SAAS,QAAS,CAAA,MAAA,EAAg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A;AAAA,WAC/B,CAAN,EAAA;AACA,IAAA,MAAM,QAAQ,OAAQ,CAAA,GAAG,CAAE,CAAA,KAAA,CAAM,MAAM,MAAS,CAAA;AAAA;AAEpD;AAMA,eAAsB,YAAY,GAA4B,EAAA;AAC5D,EAAA,IAAI,CAAC,GAAA;AAAK,IAAA;AACV,EAAI,IAAA;AACF,IAAM,MAAA,UAAA,CAAW,iBAAiB,GAAK,EAAA;AAAA,MACrC,iBAAA,EAAmB,WAAW,2BAA4B,CAAA,UAAA;AAAA,MAC1D,kBAAoB,EAAA,MAAA;AAAA,MACpB,aAAe,EAAA;AAAA,KAChB,CAAA;AAAA,WACK,CAAN,EAAA;AACA,IAAA,MAAM,QAAQ,OAAQ,CAAA,GAAG,CAAE,CAAA,KAAA,CAAM,MAAM,MAAS,CAAA;AAAA;AAEpD;AAGO,SAAS,UAAU,MAA+B,EAAA;AACvD,EAAO,OAAA,OAAA,CAAQ,QAAS,CAAA,MAAM,CAAC,CAAA;AACjC"}
@@ -0,0 +1,68 @@
1
+ import {agentAppUrl,auth0Token,KNOWN_YANTRA_APPS}from'../chat/auth.js';import {openUrl,yantraAppUrl,openInSheet}from'./links.js';const APP_SIGN_IN_START_PATH = "/resources/app-sign-in/start";
2
+ const START_TIMEOUT_MS = 5e3;
3
+ const defaultDeps = {
4
+ token: auth0Token,
5
+ agentApp: agentAppUrl,
6
+ fetch: (...a) => fetch(...a)
7
+ };
8
+ function originOf(url) {
9
+ try {
10
+ return new URL(url).origin;
11
+ } catch (e) {
12
+ return "";
13
+ }
14
+ }
15
+ async function yantraOrigins(agentApp = agentAppUrl) {
16
+ const named = await agentApp().catch(() => "");
17
+ return new Set([yantraAppUrl(), named, ...KNOWN_YANTRA_APPS].map(originOf).filter(Boolean));
18
+ }
19
+ async function signedInYantraLink(url, deps = defaultDeps) {
20
+ let target;
21
+ try {
22
+ target = new URL(url);
23
+ } catch (e) {
24
+ return url;
25
+ }
26
+ if (target.protocol !== "https:" || !(await yantraOrigins(deps.agentApp)).has(target.origin))
27
+ return url;
28
+ let token;
29
+ try {
30
+ token = await deps.token();
31
+ } catch (e) {
32
+ return url;
33
+ }
34
+ const controller = new AbortController();
35
+ const timer = setTimeout(() => controller.abort(), START_TIMEOUT_MS);
36
+ try {
37
+ const res = await deps.fetch(`${target.origin}${APP_SIGN_IN_START_PATH}`, {
38
+ method: "POST",
39
+ headers: {
40
+ "Content-Type": "application/json",
41
+ Authorization: `Bearer ${token}`
42
+ },
43
+ body: JSON.stringify({
44
+ returnTo: `${target.pathname}${target.search}${target.hash}`
45
+ }),
46
+ signal: controller.signal
47
+ });
48
+ if (!res.ok)
49
+ return url;
50
+ const body = await res.json().catch(() => null);
51
+ const link = typeof (body == null ? void 0 : body.url) === "string" ? body.url : "";
52
+ return link && originOf(link) === target.origin ? link : url;
53
+ } catch (e) {
54
+ return url;
55
+ } finally {
56
+ clearTimeout(timer);
57
+ }
58
+ }
59
+ async function openYantraUrl(url) {
60
+ if (!url)
61
+ return;
62
+ return openUrl(await signedInYantraLink(url));
63
+ }
64
+ async function openYantraInSheet(url) {
65
+ if (!url)
66
+ return;
67
+ return openInSheet(await signedInYantraLink(url));
68
+ }export{APP_SIGN_IN_START_PATH,openYantraInSheet,openYantraUrl,signedInYantraLink,yantraOrigins};//# sourceMappingURL=yantraLinks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yantraLinks.js","sources":["../../src/utils/yantraLinks.ts"],"sourcesContent":["/**\n * Yantra's pages, opened signed in.\n *\n * Clockbook signs in with the person's Yantra account, but the browser sheet keeps its own cookies: a\n * Yantra page opened there (Connect Google Calendar, the Connectors page) asked them to sign in again\n * with the account they had just used here. Yantra hands the sign-in over instead: asked with the\n * person's Auth0 ID token (POST <app>/resources/app-sign-in/start), it answers a one-time link (good for\n * a minute) that signs the sheet in and goes on to the page. Without one (signed out here, offline, a\n * Yantra that does not have it yet) the page opens as before.\n *\n * The ID token only ever goes to a Yantra app this build knows: the configured one, the one Lucy's agent\n * names, and production's and staging's. A link to anywhere else (one in Lucy's reply, say) opens as is.\n */\nimport { agentAppUrl, auth0Token, KNOWN_YANTRA_APPS } from '../chat/auth';\nimport { openInSheet, openUrl, yantraAppUrl } from './links';\n\nexport const APP_SIGN_IN_START_PATH = '/resources/app-sign-in/start';\n/** The sign-in link should come back at once; past this the page opens without it. */\nconst START_TIMEOUT_MS = 5000;\n\nexport interface SignInDeps {\n token: () => Promise<string>;\n agentApp: () => Promise<string>;\n fetch: typeof fetch;\n}\n\nconst defaultDeps: SignInDeps = { token: auth0Token, agentApp: agentAppUrl, fetch: (...a) => fetch(...a) };\n\nfunction originOf(url: string): string {\n try {\n return new URL(url).origin;\n } catch {\n return '';\n }\n}\n\n/** The Yantra apps the ID token may go to. */\nexport async function yantraOrigins(agentApp: SignInDeps['agentApp'] = agentAppUrl): Promise<Set<string>> {\n const named = await agentApp().catch(() => '');\n return new Set([yantraAppUrl(), named, ...KNOWN_YANTRA_APPS].map(originOf).filter(Boolean));\n}\n\n/**\n * `url` as a link that opens it signed in to the person's Yantra account, when it is a page of a Yantra\n * app and Yantra gives one; else `url` itself.\n */\nexport async function signedInYantraLink(url: string, deps: SignInDeps = defaultDeps): Promise<string> {\n let target: URL;\n try {\n target = new URL(url);\n } catch {\n return url;\n }\n if (target.protocol !== 'https:' || !(await yantraOrigins(deps.agentApp)).has(target.origin)) return url;\n\n let token: string;\n try {\n token = await deps.token();\n } catch {\n return url; // signed out here: Yantra's own sign-in, as before\n }\n\n const controller = new AbortController();\n const timer = setTimeout(() => controller.abort(), START_TIMEOUT_MS);\n try {\n const res = await deps.fetch(`${target.origin}${APP_SIGN_IN_START_PATH}`, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${token}` },\n body: JSON.stringify({ returnTo: `${target.pathname}${target.search}${target.hash}` }),\n signal: controller.signal,\n });\n if (!res.ok) return url;\n const body = (await res.json().catch(() => null)) as { url?: unknown } | null;\n const link = typeof body?.url === 'string' ? body.url : '';\n // Only ever a page of the same Yantra.\n return link && originOf(link) === target.origin ? link : url;\n } catch {\n return url;\n } finally {\n clearTimeout(timer);\n }\n}\n\n/** Opens a page in the in-app browser sheet, signed in when it is a Yantra page (see signedInYantraLink). */\nexport async function openYantraUrl(url: string): Promise<void> {\n if (!url) return;\n return openUrl(await signedInYantraLink(url));\n}\n\n/** openInSheet, signed in when it is a Yantra page. */\nexport async function openYantraInSheet(url: string): Promise<void> {\n if (!url) return;\n return openInSheet(await signedInYantraLink(url));\n}\n"],"names":[],"mappings":"iIAeO,MAAM,sBAAyB,GAAA;AAEtC,MAAM,gBAAmB,GAAA,GAAA;AAMzB,MAAM,WAA0B,GAAA;AAAA,EAC9B,KAAO,EAAA,UAAA;AAAA,EACP,QAAU,EAAA,WAAA;AAAA,EACV,KAAO,EAAA,CAAA,GAAI,CAAM,KAAA,KAAA,CAAM,GAAG,CAAC;AAC7B,CAAA;AACA,SAAS,SAAS,GAAqB,EAAA;AACrC,EAAI,IAAA;AACF,IAAO,OAAA,IAAI,GAAI,CAAA,GAAG,CAAE,CAAA,MAAA;AAAA,WACd,CAAN,EAAA;AACA,IAAO,OAAA,EAAA;AAAA;AAEX;AAGsB,eAAA,aAAA,CAAc,WAAmC,WAAmC,EAAA;AACxG,EAAA,MAAM,QAAQ,MAAM,QAAA,EAAW,CAAA,KAAA,CAAM,MAAM,EAAE,CAAA;AAC7C,EAAA,OAAO,IAAI,GAAA,CAAI,CAAC,YAAA,IAAgB,KAAO,EAAA,GAAG,iBAAiB,CAAA,CAAE,GAAI,CAAA,QAAQ,CAAE,CAAA,MAAA,CAAO,OAAO,CAAC,CAAA;AAC5F;AAMsB,eAAA,kBAAA,CAAmB,GAAa,EAAA,IAAA,GAAmB,WAA8B,EAAA;AACrG,EAAI,IAAA,MAAA;AACJ,EAAI,IAAA;AACF,IAAS,MAAA,GAAA,IAAI,IAAI,GAAG,CAAA;AAAA,WACd,CAAN,EAAA;AACA,IAAO,OAAA,GAAA;AAAA;AAET,EAAI,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AAS,CAAA,IAAI,CAAM,KAAA,MAAA,CAAO,SAAS,IAAO,GAAA,GAAA;AAAA,WACnD,CAAN,EAAA;AACA,IAAO,OAAA,GAAA;AAAA,GACP,SAAA;AACA,IAAA,YAAA,CAAa,KAAK,CAAA;AAAA;AAEtB;AAGA,eAAsB,cAAc,GAA4B,EAAA;AAC9D,EAAA,IAAI,CAAC,GAAA;AAAK,IAAA;AACV,EAAA,OAAO,OAAQ,CAAA,MAAM,kBAAmB,CAAA,GAAG,CAAC,CAAA;AAC9C;AAGA,eAAsB,kBAAkB,GAA4B,EAAA;AAClE,EAAA,IAAI,CAAC,GAAA;AAAK,IAAA;AACV,EAAA,OAAO,WAAY,CAAA,MAAM,kBAAmB,CAAA,GAAG,CAAC,CAAA;AAClD"}
@@ -0,0 +1,375 @@
1
+ const DEFAULT_ANSWERS = {
2
+ name: "",
3
+ pain: "calls",
4
+ home: 4,
5
+ time: "h23"
6
+ };
7
+ const PAIN = {
8
+ calls: {
9
+ label: "Calls and hold music",
10
+ icon: "call-outline",
11
+ reply: "Phone menus, hold music, \u201Cyour call is important to us.\u201D I\u2019ll take those.",
12
+ title: "No more hold music",
13
+ body: "Lucy makes the calls, works the phone menus and waits on hold for you."
14
+ },
15
+ bills: {
16
+ label: "Bills and subscriptions",
17
+ icon: "receipt-outline",
18
+ reply: "Rates creep up and fees sneak in. I\u2019ll make the calls that bring them down.",
19
+ title: "Bills that go down, not up",
20
+ body: "Better rates asked for and fees disputed, always with your yes."
21
+ },
22
+ appts: {
23
+ label: "Booking appointments",
24
+ icon: "calendar-outline",
25
+ reply: "All that back-and-forth. I\u2019ll book around your calendar.",
26
+ title: "Appointments, booked",
27
+ body: "Dentists, doctors and calls, fitted around your calendar."
28
+ },
29
+ food: {
30
+ label: "Groceries and meals",
31
+ icon: "cart-outline",
32
+ reply: "Meals planned, lists made, prices compared. Consider it handled.",
33
+ title: "Dinner, sorted",
34
+ body: "Easy dinners planned and the grocery list made, every week."
35
+ },
36
+ family: {
37
+ label: "Family logistics",
38
+ icon: "people-outline",
39
+ reply: "Forms, pickups and reminders for everyone at home. I\u2019ve got them.",
40
+ title: "Everyone, covered",
41
+ body: "Forms, pickups and reminders for the whole house."
42
+ },
43
+ travel: {
44
+ label: "Travel and refunds",
45
+ icon: "airplane-outline",
46
+ reply: "Refunds instead of vouchers, rebookings without the wait.",
47
+ title: "Refunds, not vouchers",
48
+ body: "Cancelled flights refunded and trips rebooked, minus the hold music."
49
+ }
50
+ };
51
+ const PAIN_KEYS = ["calls", "bills", "appts", "food", "family", "travel"];
52
+ const HOME = {
53
+ 1: {
54
+ label: "Just me",
55
+ reply: "Just you. Still plenty to keep track of."
56
+ },
57
+ 2: {
58
+ label: "Two of us",
59
+ reply: "Two people, two calendars, one fridge."
60
+ },
61
+ 3: {
62
+ label: "Three of us",
63
+ reply: "Three people, three dentists, one of you."
64
+ },
65
+ 4: {
66
+ label: "Four of us",
67
+ reply: "Four people and one of you. That\u2019s a lot of calendars."
68
+ },
69
+ 5: {
70
+ label: "Five of us",
71
+ reply: "Five people. You\u2019re basically running a small company."
72
+ },
73
+ 6: {
74
+ label: "Six or more",
75
+ reply: "A full house. Let me take some of it off you."
76
+ }
77
+ };
78
+ const HOME_SIZES = [1, 2, 3, 4, 5, 6];
79
+ const TIME = {
80
+ h01: {
81
+ label: "Under an hour",
82
+ min: 45,
83
+ reply: "Less than most. Let\u2019s make it even less."
84
+ },
85
+ h12: {
86
+ label: "1 to 2 hours",
87
+ min: 90,
88
+ reply: "That\u2019s a long lunch break, every single day."
89
+ },
90
+ h23: {
91
+ label: "2 to 3 hours",
92
+ min: 169,
93
+ reply: "That\u2019s a part-time job nobody pays you for."
94
+ },
95
+ h3p: {
96
+ label: "More than 3 hours",
97
+ min: 210,
98
+ reply: "That\u2019s a second job. Let\u2019s fix that."
99
+ }
100
+ };
101
+ const TIME_KEYS = ["h01", "h12", "h23", "h3p"];
102
+ const FIRST_CHORES = ["Cancel my gym", "Lower my internet bill", "Book the dentist", "Get my flight refund"];
103
+ const ORDER = ["i1", "i2", "i3", "i4", "name", "hello", "signin", "pain", "pain2", "home", "home2", "time", "time2", "review", "help", "news", "bad", "good", "cal", "notif", "plan", "yay", "pay", "remind", "done"];
104
+ function nextStep(step, {
105
+ trial
106
+ }) {
107
+ if (step === "yay" && !trial)
108
+ return "done";
109
+ const at = ORDER.indexOf(step);
110
+ return ORDER[Math.min(ORDER.length - 1, at + 1)];
111
+ }
112
+ const TAP_NEXT = {
113
+ i1: "i2",
114
+ i2: "i3",
115
+ i3: "i4"
116
+ };
117
+ function isIntro(step) {
118
+ return step === "i1" || step === "i2" || step === "i3" || step === "i4";
119
+ }
120
+ const WIND_BACK = {
121
+ count: 14,
122
+ every: 75,
123
+ start: 60,
124
+ lit: 1100
125
+ };
126
+ function cleanName(raw) {
127
+ var _a;
128
+ const first = (_a = raw.replace(/\*/g, "").trim().split(/\s+/)[0]) != null ? _a : "";
129
+ return first ? first.charAt(0).toUpperCase() + first.slice(1, 24) : "";
130
+ }
131
+ const WORD_MS = 62;
132
+ const WORD_FADE_MS = 520;
133
+ const START_MS = 260;
134
+ const YOU_MS = 420;
135
+ const LINE_GAP_MS = 300;
136
+ const FILL_MS = 2600;
137
+ const CHAT_RANGE = {
138
+ name: [0, 1],
139
+ hello: [2, 3],
140
+ signin: [4, 4],
141
+ pain: [5, 5],
142
+ pain2: [6, 7],
143
+ home: [8, 8],
144
+ home2: [9, 10],
145
+ time: [11, 11],
146
+ time2: [12, 13],
147
+ review: [14, 14],
148
+ help: [15, 16]
149
+ };
150
+ function isChat(step) {
151
+ return step in CHAT_RANGE;
152
+ }
153
+ function transcript(a) {
154
+ var _a;
155
+ const pain = PAIN[a.pain];
156
+ const home = (_a = HOME[a.home]) != null ? _a : HOME[4];
157
+ const time = TIME[a.time];
158
+ return [{
159
+ text: "Hi, I\u2019m Lucy. I take the life admin off your plate."
160
+ }, {
161
+ text: "First, what should I call you?"
162
+ }, {
163
+ text: `Nice to meet you, *${a.name}*.`
164
+ }, {
165
+ text: "A few quick questions, then I\u2019ll build your plan. No wrong answers."
166
+ }, {
167
+ text: "Before we go on, have we met?"
168
+ }, {
169
+ text: "What eats most of your week?"
170
+ }, {
171
+ text: pain.label,
172
+ you: true
173
+ }, {
174
+ text: pain.reply
175
+ }, {
176
+ text: "How many people are you running a home for?"
177
+ }, {
178
+ text: home.label,
179
+ you: true
180
+ }, {
181
+ text: home.reply
182
+ }, {
183
+ text: "Roughly how much of your day goes to life admin? A best guess is fine."
184
+ }, {
185
+ text: time.label,
186
+ you: true
187
+ }, {
188
+ text: time.reply
189
+ }, {
190
+ text: "Adding it up\u2026"
191
+ }, {
192
+ text: `I can help with that, *${a.name}*.`
193
+ }, {
194
+ text: "But first, some honest numbers."
195
+ }];
196
+ }
197
+ function words(text) {
198
+ const out = [];
199
+ let inAccent = false;
200
+ for (const raw of text.split(" ")) {
201
+ let w = raw;
202
+ if (!w)
203
+ continue;
204
+ if (w.startsWith("*")) {
205
+ inAccent = true;
206
+ w = w.slice(1);
207
+ }
208
+ if (!inAccent) {
209
+ out.push({
210
+ a: "",
211
+ b: w
212
+ });
213
+ continue;
214
+ }
215
+ const close = w.indexOf("*");
216
+ if (close >= 0) {
217
+ out.push({
218
+ a: w.slice(0, close),
219
+ b: w.slice(close + 1)
220
+ });
221
+ inAccent = false;
222
+ } else {
223
+ out.push({
224
+ a: w,
225
+ b: ""
226
+ });
227
+ }
228
+ }
229
+ return out;
230
+ }
231
+ function buildChat(step, a) {
232
+ const range = CHAT_RANGE[step];
233
+ if (!range)
234
+ return {
235
+ lines: [],
236
+ end: 0
237
+ };
238
+ const all = transcript(a);
239
+ const lines = [];
240
+ for (let i = Math.max(0, range[0] - 2); i < range[0]; i++) {
241
+ lines.push({
242
+ key: `p${i}`,
243
+ who: all[i].you ? "you" : "lucy",
244
+ plain: all[i].text.replace(/\*/g, ""),
245
+ words: words(all[i].text),
246
+ age: range[0] - i === 1 ? 1 : 2,
247
+ start: 0
248
+ });
249
+ }
250
+ let t = START_MS;
251
+ let end = START_MS + WORD_FADE_MS;
252
+ for (let i = range[0]; i <= range[1]; i++) {
253
+ const line = all[i];
254
+ const ws = words(line.text);
255
+ lines.push({
256
+ key: `n${i}`,
257
+ who: line.you ? "you" : "lucy",
258
+ plain: line.text.replace(/\*/g, ""),
259
+ words: ws,
260
+ age: 0,
261
+ start: t
262
+ });
263
+ if (line.you) {
264
+ t += YOU_MS;
265
+ end = t + 200;
266
+ } else {
267
+ const last = t + (ws.length - 1) * WORD_MS;
268
+ end = last + WORD_FADE_MS;
269
+ t = last + WORD_MS + LINE_GAP_MS;
270
+ }
271
+ }
272
+ return {
273
+ lines,
274
+ end
275
+ };
276
+ }
277
+ function controlsDelay(step, a) {
278
+ return isChat(step) ? buildChat(step, a).end + 80 : 0;
279
+ }
280
+ function autoAdvance(step, a, opts) {
281
+ switch (step) {
282
+ case "i4":
283
+ return {
284
+ to: "name",
285
+ after: 2200
286
+ };
287
+ case "news":
288
+ return {
289
+ to: "bad",
290
+ after: 2800
291
+ };
292
+ case "yay":
293
+ return {
294
+ to: nextStep("yay", opts),
295
+ after: 3e3
296
+ };
297
+ case "hello":
298
+ return {
299
+ to: "signin",
300
+ after: buildChat(step, a).end + 1100
301
+ };
302
+ case "pain2":
303
+ case "home2":
304
+ case "time2":
305
+ return {
306
+ to: nextStep(step, opts),
307
+ after: buildChat(step, a).end + 1300
308
+ };
309
+ case "review":
310
+ return {
311
+ to: "help",
312
+ after: controlsDelay(step, a) + FILL_MS + 450
313
+ };
314
+ default:
315
+ return null;
316
+ }
317
+ }
318
+ function lifeAdmin(min) {
319
+ const back = min * 38 / 169;
320
+ const week = Math.round(back * 7 / 6) / 10;
321
+ return {
322
+ min,
323
+ backMin: Math.round(back),
324
+ week: week.toFixed(1),
325
+ yearHours: Math.round(week * 52),
326
+ wakingDays: Math.round(min * 365 / 60 / 16),
327
+ lifetimeYears: Math.max(1, Math.round(min * 365 * 50 / 60 / (16 * 365)))
328
+ };
329
+ }
330
+ function yearsLabel(n) {
331
+ return n === 1 ? "1 year" : `${n} years`;
332
+ }
333
+ function rollRows(years) {
334
+ const from = Math.max(1, years - 6);
335
+ const rows = [];
336
+ for (let n = from; n <= years + 1; n++)
337
+ rows.push(n);
338
+ return {
339
+ rows,
340
+ target: years - from
341
+ };
342
+ }
343
+ function odometerColumns(n) {
344
+ return String(Math.max(0, Math.round(n))).split("").map((ch, col) => {
345
+ const stop = (1 + col) * 10 + Number(ch);
346
+ const digits = [];
347
+ for (let k = 0; k <= stop; k++)
348
+ digits.push(k % 10);
349
+ return {
350
+ digits,
351
+ stop
352
+ };
353
+ });
354
+ }
355
+ function reminderDates(today) {
356
+ const ends = new Date(today.getFullYear(), today.getMonth(), today.getDate() + 7);
357
+ const before = (n) => new Date(ends.getFullYear(), ends.getMonth(), ends.getDate() - n);
358
+ return {
359
+ ends,
360
+ options: [{
361
+ daysBefore: 2,
362
+ date: before(2)
363
+ }, {
364
+ daysBefore: 3,
365
+ date: before(3)
366
+ }]
367
+ };
368
+ }
369
+ function longDate(d) {
370
+ return d.toLocaleDateString("en-US", {
371
+ weekday: "long",
372
+ month: "long",
373
+ day: "numeric"
374
+ });
375
+ }export{DEFAULT_ANSWERS,FILL_MS,FIRST_CHORES,HOME,HOME_SIZES,PAIN,PAIN_KEYS,TAP_NEXT,TIME,TIME_KEYS,WIND_BACK,WORD_FADE_MS,WORD_MS,autoAdvance,buildChat,cleanName,controlsDelay,isChat,isIntro,lifeAdmin,longDate,nextStep,odometerColumns,reminderDates,rollRows,transcript,words,yearsLabel};//# sourceMappingURL=flow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.js","sources":["../../src/welcome/flow.ts"],"sourcesContent":["/**\n * The welcome flow (screens/Welcome): every step in order, what Lucy says at each one, which steps move on by\n * themselves and when, and the life-admin numbers. Plain TypeScript with no React Native, so it runs under jest as is.\n *\n * The numbers are the web home's (clock-tik-browser pages/Home/content.ts and timeBack.ts): about 169 minutes a day of\n * life admin, about 38 of them handed to Lucy, from the U.S. BLS American Time Use Survey 2025. Wherever a number\n * shows, its footnote shows too.\n */\n\nexport type StepId =\n | 'i1'\n | 'i2'\n | 'i3'\n | 'i4'\n | 'name'\n | 'hello'\n | 'signin'\n | 'pain'\n | 'pain2'\n | 'home'\n | 'home2'\n | 'time'\n | 'time2'\n | 'review'\n | 'help'\n | 'news'\n | 'bad'\n | 'good'\n | 'cal'\n | 'notif'\n | 'plan'\n | 'yay'\n | 'pay'\n | 'remind'\n | 'done';\n\nexport type PainKey = 'calls' | 'bills' | 'appts' | 'food' | 'family' | 'travel';\nexport type TimeKey = 'h01' | 'h12' | 'h23' | 'h3p';\n\nexport interface Answers {\n name: string;\n pain: PainKey;\n /** People they run a home for; 6 means six or more. */\n home: number;\n time: TimeKey;\n}\n\n/** What the flow assumes before each question is answered (only shown once it is). */\nexport const DEFAULT_ANSWERS: Answers = { name: '', pain: 'calls', home: 4, time: 'h23' };\n\n/** `icon` is an Ionicons name. `title` and `body` are this choice's row on the plan. */\nexport const PAIN: Record<PainKey, { label: string; icon: string; reply: string; title: string; body: string }> = {\n calls: {\n label: 'Calls and hold music',\n icon: 'call-outline',\n reply: 'Phone menus, hold music, “your call is important to us.” I’ll take those.',\n title: 'No more hold music',\n body: 'Lucy makes the calls, works the phone menus and waits on hold for you.',\n },\n bills: {\n label: 'Bills and subscriptions',\n icon: 'receipt-outline',\n reply: 'Rates creep up and fees sneak in. I’ll make the calls that bring them down.',\n title: 'Bills that go down, not up',\n body: 'Better rates asked for and fees disputed, always with your yes.',\n },\n appts: {\n label: 'Booking appointments',\n icon: 'calendar-outline',\n reply: 'All that back-and-forth. I’ll book around your calendar.',\n title: 'Appointments, booked',\n body: 'Dentists, doctors and calls, fitted around your calendar.',\n },\n food: {\n label: 'Groceries and meals',\n icon: 'cart-outline',\n reply: 'Meals planned, lists made, prices compared. Consider it handled.',\n title: 'Dinner, sorted',\n body: 'Easy dinners planned and the grocery list made, every week.',\n },\n family: {\n label: 'Family logistics',\n icon: 'people-outline',\n reply: 'Forms, pickups and reminders for everyone at home. I’ve got them.',\n title: 'Everyone, covered',\n body: 'Forms, pickups and reminders for the whole house.',\n },\n travel: {\n label: 'Travel and refunds',\n icon: 'airplane-outline',\n reply: 'Refunds instead of vouchers, rebookings without the wait.',\n title: 'Refunds, not vouchers',\n body: 'Cancelled flights refunded and trips rebooked, minus the hold music.',\n },\n};\nexport const PAIN_KEYS: PainKey[] = ['calls', 'bills', 'appts', 'food', 'family', 'travel'];\n\nexport const HOME: Record<number, { label: string; reply: string }> = {\n 1: { label: 'Just me', reply: 'Just you. Still plenty to keep track of.' },\n 2: { label: 'Two of us', reply: 'Two people, two calendars, one fridge.' },\n 3: { label: 'Three of us', reply: 'Three people, three dentists, one of you.' },\n 4: { label: 'Four of us', reply: 'Four people and one of you. That’s a lot of calendars.' },\n 5: { label: 'Five of us', reply: 'Five people. You’re basically running a small company.' },\n 6: { label: 'Six or more', reply: 'A full house. Let me take some of it off you.' },\n};\nexport const HOME_SIZES = [1, 2, 3, 4, 5, 6];\n\n/** `min` is the minutes a day each answer stands for; 2 to 3 hours is the survey's own 169. */\nexport const TIME: Record<TimeKey, { label: string; min: number; reply: string }> = {\n h01: { label: 'Under an hour', min: 45, reply: 'Less than most. Let’s make it even less.' },\n h12: { label: '1 to 2 hours', min: 90, reply: 'That’s a long lunch break, every single day.' },\n h23: { label: '2 to 3 hours', min: 169, reply: 'That’s a part-time job nobody pays you for.' },\n h3p: { label: 'More than 3 hours', min: 210, reply: 'That’s a second job. Let’s fix that.' },\n};\nexport const TIME_KEYS: TimeKey[] = ['h01', 'h12', 'h23', 'h3p'];\n\n/** The chores offered at the end, by their label in content.ts HERO_CHORES. */\nexport const FIRST_CHORES = ['Cancel my gym', 'Lower my internet bill', 'Book the dentist', 'Get my flight refund'];\n\n/* ---------------------------------------------------------------------------------------------------- steps */\n\nconst ORDER: StepId[] = [\n 'i1',\n 'i2',\n 'i3',\n 'i4',\n 'name',\n 'hello',\n 'signin',\n 'pain',\n 'pain2',\n 'home',\n 'home2',\n 'time',\n 'time2',\n 'review',\n 'help',\n 'news',\n 'bad',\n 'good',\n 'cal',\n 'notif',\n 'plan',\n 'yay',\n 'pay',\n 'remind',\n 'done',\n];\n\nexport interface FlowOptions {\n /** The free-week paywall and its reminder. Off until Clockbook sells a subscription. */\n trial: boolean;\n}\n\nexport function nextStep(step: StepId, { trial }: FlowOptions): StepId {\n if (step === 'yay' && !trial) return 'done';\n const at = ORDER.indexOf(step);\n return ORDER[Math.min(ORDER.length - 1, at + 1)];\n}\n\n/** The intro's beats move on when tapped. */\nexport const TAP_NEXT: Partial<Record<StepId, StepId>> = { i1: 'i2', i2: 'i3', i3: 'i4' };\n\nexport function isIntro(step: StepId): boolean {\n return step === 'i1' || step === 'i2' || step === 'i3' || step === 'i4';\n}\n\n/**\n * The intro's third beat (\"Now, wind them back.\"): the clock's ring lights anticlockwise over `lit` ms, felt as\n * `count` ticks `every` ms apart from `start` (haptics.ts) and heard winding back (sound.ts, which was rendered to it).\n */\nexport const WIND_BACK = { count: 14, every: 75, start: 60, lit: 1100 } as const;\n\n/** First name only, without the markup the chat uses for emphasis, capitalised, at most 24 letters. */\nexport function cleanName(raw: string): string {\n const first = raw.replace(/\\*/g, '').trim().split(/\\s+/)[0] ?? '';\n return first ? first.charAt(0).toUpperCase() + first.slice(1, 24) : '';\n}\n\n/* ---------------------------------------------------------------------------------------------------- chat */\n\n/** A word as it is drawn: `a` in orange (a name, a number), then `b` in the line's own colour. */\nexport interface Word {\n a: string;\n b: string;\n}\n\nexport interface ChatLine {\n key: string;\n who: 'lucy' | 'you';\n /** The line as a screen reader says it. */\n plain: string;\n words: Word[];\n /** 0 is new at this step; 1 and 2 are the lines before it, fading upward. */\n age: 0 | 1 | 2;\n /** When it starts to appear, in ms from the step's start. */\n start: number;\n}\n\n/** Lucy writes a word every WORD_MS; each takes WORD_FADE_MS to settle. */\nexport const WORD_MS = 62;\nexport const WORD_FADE_MS = 520;\nconst START_MS = 260;\nconst YOU_MS = 420;\nconst LINE_GAP_MS = 300;\n/** The \"Adding it up\" bar. */\nexport const FILL_MS = 2600;\n\n/** Each chat step's new lines, as indexes into transcript(). */\nconst CHAT_RANGE: Partial<Record<StepId, [number, number]>> = {\n name: [0, 1],\n hello: [2, 3],\n signin: [4, 4],\n pain: [5, 5],\n pain2: [6, 7],\n home: [8, 8],\n home2: [9, 10],\n time: [11, 11],\n time2: [12, 13],\n review: [14, 14],\n help: [15, 16],\n};\n\nexport function isChat(step: StepId): boolean {\n return step in CHAT_RANGE;\n}\n\n/** The whole conversation, in order. `*text*` is drawn in orange. */\nexport function transcript(a: Answers): { text: string; you?: boolean }[] {\n const pain = PAIN[a.pain];\n const home = HOME[a.home] ?? HOME[4];\n const time = TIME[a.time];\n return [\n { text: 'Hi, I’m Lucy. I take the life admin off your plate.' },\n { text: 'First, what should I call you?' },\n { text: `Nice to meet you, *${a.name}*.` },\n { text: 'A few quick questions, then I’ll build your plan. No wrong answers.' },\n { text: 'Before we go on, have we met?' },\n { text: 'What eats most of your week?' },\n { text: pain.label, you: true },\n { text: pain.reply },\n { text: 'How many people are you running a home for?' },\n { text: home.label, you: true },\n { text: home.reply },\n { text: 'Roughly how much of your day goes to life admin? A best guess is fine.' },\n { text: time.label, you: true },\n { text: time.reply },\n { text: 'Adding it up…' },\n { text: `I can help with that, *${a.name}*.` },\n { text: 'But first, some honest numbers.' },\n ];\n}\n\n/** Splits a line into words, keeping `*emphasis*` (which may span words and end before punctuation). */\nexport function words(text: string): Word[] {\n const out: Word[] = [];\n let inAccent = false;\n for (const raw of text.split(' ')) {\n let w = raw;\n if (!w) continue;\n if (w.startsWith('*')) {\n inAccent = true;\n w = w.slice(1);\n }\n if (!inAccent) {\n out.push({ a: '', b: w });\n continue;\n }\n const close = w.indexOf('*');\n if (close >= 0) {\n out.push({ a: w.slice(0, close), b: w.slice(close + 1) });\n inAccent = false;\n } else {\n out.push({ a: w, b: '' });\n }\n }\n return out;\n}\n\n/** A chat step's lines (up to two before it, then its new ones) and when its last word has settled. */\nexport function buildChat(step: StepId, a: Answers): { lines: ChatLine[]; end: number } {\n const range = CHAT_RANGE[step];\n if (!range) return { lines: [], end: 0 };\n const all = transcript(a);\n const lines: ChatLine[] = [];\n for (let i = Math.max(0, range[0] - 2); i < range[0]; i++) {\n lines.push({\n key: `p${i}`,\n who: all[i].you ? 'you' : 'lucy',\n plain: all[i].text.replace(/\\*/g, ''),\n words: words(all[i].text),\n age: range[0] - i === 1 ? 1 : 2,\n start: 0,\n });\n }\n let t = START_MS;\n let end = START_MS + WORD_FADE_MS;\n for (let i = range[0]; i <= range[1]; i++) {\n const line = all[i];\n const ws = words(line.text);\n lines.push({\n key: `n${i}`,\n who: line.you ? 'you' : 'lucy',\n plain: line.text.replace(/\\*/g, ''),\n words: ws,\n age: 0,\n start: t,\n });\n if (line.you) {\n t += YOU_MS;\n end = t + 200;\n } else {\n const last = t + (ws.length - 1) * WORD_MS;\n end = last + WORD_FADE_MS;\n t = last + WORD_MS + LINE_GAP_MS;\n }\n }\n return { lines, end };\n}\n\n/** When a step's own controls (field, choices, button) come up: once Lucy has finished writing. */\nexport function controlsDelay(step: StepId, a: Answers): number {\n return isChat(step) ? buildChat(step, a).end + 80 : 0;\n}\n\n/** Steps that move on by themselves: where to, and after how long. */\nexport function autoAdvance(step: StepId, a: Answers, opts: FlowOptions): { to: StepId; after: number } | null {\n switch (step) {\n case 'i4':\n return { to: 'name', after: 2200 };\n case 'news':\n return { to: 'bad', after: 2800 };\n case 'yay':\n return { to: nextStep('yay', opts), after: 3000 };\n case 'hello':\n return { to: 'signin', after: buildChat(step, a).end + 1100 };\n case 'pain2':\n case 'home2':\n case 'time2':\n return { to: nextStep(step, opts), after: buildChat(step, a).end + 1300 };\n case 'review':\n return { to: 'help', after: controlsDelay(step, a) + FILL_MS + 450 };\n default:\n return null;\n }\n}\n\n/* ---------------------------------------------------------------------------------------------------- numbers */\n\nexport interface LifeAdmin {\n /** Minutes a day of life admin. */\n min: number;\n /** Of those, the minutes a day handed to Lucy. */\n backMin: number;\n /** Hours a week back, to a tenth (timeBack.ts). */\n week: string;\n yearHours: number;\n /** This year's life admin, in 16-hour waking days. */\n wakingDays: number;\n /** The next 50 years of it, in waking years. */\n lifetimeYears: number;\n}\n\nexport function lifeAdmin(min: number): LifeAdmin {\n const back = (min * 38) / 169;\n const week = Math.round((back * 7) / 6) / 10;\n return {\n min,\n backMin: Math.round(back),\n week: week.toFixed(1),\n yearHours: Math.round(week * 52),\n wakingDays: Math.round((min * 365) / 60 / 16),\n lifetimeYears: Math.max(1, Math.round((min * 365 * 50) / 60 / (16 * 365))),\n };\n}\n\nexport function yearsLabel(n: number): string {\n return n === 1 ? '1 year' : `${n} years`;\n}\n\n/** The rolling years: a short run up to the answer and one past it, and where the answer sits in the run. */\nexport function rollRows(years: number): { rows: number[]; target: number } {\n const from = Math.max(1, years - 6);\n const rows: number[] = [];\n for (let n = from; n <= years + 1; n++) rows.push(n);\n return { rows, target: years - from };\n}\n\n/** The odometer: per digit, the strip it spins through (more turns further right) and where it stops. */\nexport function odometerColumns(n: number): { digits: number[]; stop: number }[] {\n return String(Math.max(0, Math.round(n)))\n .split('')\n .map((ch, col) => {\n const stop = (1 + col) * 10 + Number(ch);\n const digits: number[] = [];\n for (let k = 0; k <= stop; k++) digits.push(k % 10);\n return { digits, stop };\n });\n}\n\n/* ---------------------------------------------------------------------------------------------------- trial */\n\n/** A free week from `today`, and the two reminder days offered before it ends. */\nexport function reminderDates(today: Date): { ends: Date; options: { daysBefore: 2 | 3; date: Date }[] } {\n const ends = new Date(today.getFullYear(), today.getMonth(), today.getDate() + 7);\n const before = (n: number) => new Date(ends.getFullYear(), ends.getMonth(), ends.getDate() - n);\n return {\n ends,\n options: [\n { daysBefore: 2, date: before(2) },\n { daysBefore: 3, date: before(3) },\n ],\n };\n}\n\nexport function longDate(d: Date): string {\n return d.toLocaleDateString('en-US', { weekday: 'long', month: 'long', day: 'numeric' });\n}\n"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