@happyvertical/smrt-planner 0.57.6 → 0.57.8

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 (566) hide show
  1. package/agents/assistant.md +29 -2
  2. package/agents/shell.md +13 -0
  3. package/app/404.html +26 -29
  4. package/app/_app/immutable/assets/0.BaRFeYGU.css +1 -0
  5. package/app/_app/immutable/assets/AppShell.BkKNrxND.css +1 -0
  6. package/app/_app/immutable/assets/{ModelPage.FEM0ZnPM.css → ModelPage.SIoeO-AU.css} +1 -1
  7. package/app/_app/immutable/assets/app.BHwMQ9Zv.css +1 -0
  8. package/app/_app/immutable/assets/{forms.DXOeP4wZ.css → forms.BRdbPdvs.css} +1 -1
  9. package/app/_app/immutable/assets/icons.BDx21rPt.css +1 -0
  10. package/app/_app/immutable/assets/labels.Dxa6EyRI.css +1 -0
  11. package/app/_app/immutable/assets/planner.DOQVfcOi.css +1 -0
  12. package/app/_app/immutable/assets/state.C0UZEhxS.css +1 -0
  13. package/app/_app/immutable/chunks/{CoXf-L_3.js → B45qMR8U.js} +25 -25
  14. package/app/_app/immutable/chunks/{DypPefJO.js → BU0vd8nA.js} +1 -1
  15. package/app/_app/immutable/chunks/BWd9iJf7.js +1 -0
  16. package/app/_app/immutable/chunks/BeJxxDXZ.js +1 -0
  17. package/app/_app/immutable/chunks/BfeotTF9.js +4 -0
  18. package/app/_app/immutable/chunks/BlJ-05MM.js +11 -0
  19. package/app/_app/immutable/chunks/{GdHEbDDH.js → BxyJ_Q7v.js} +1 -1
  20. package/app/_app/immutable/chunks/C6HSENij.js +1 -0
  21. package/app/_app/immutable/chunks/C7boms_S.js +4 -0
  22. package/app/_app/immutable/chunks/{0as86J1A.js → C8kJ-wTn.js} +6 -6
  23. package/app/_app/immutable/chunks/CKd9O-eU.js +1 -0
  24. package/app/_app/immutable/chunks/{BSYvnYu8.js → COQVmnKJ.js} +1 -1
  25. package/app/_app/immutable/chunks/CTlovRev.js +1 -0
  26. package/app/_app/immutable/chunks/{DrjdLb0M.js → CaiMTXlW.js} +2 -2
  27. package/app/_app/immutable/chunks/{exPME6UK.js → CiNYyHrL.js} +1 -1
  28. package/app/_app/immutable/chunks/{BPsie9Wr.js → Cmh0yR4f.js} +1 -1
  29. package/app/_app/immutable/chunks/CsaWd8kG.js +2 -0
  30. package/app/_app/immutable/chunks/{D2Ykv2Y3.js → Ct5r3XV1.js} +1 -1
  31. package/app/_app/immutable/chunks/D0m3WNVh.js +1 -0
  32. package/app/_app/immutable/chunks/DF-0MxNw.js +1 -0
  33. package/app/_app/immutable/chunks/DKi2uwTq.js +2 -0
  34. package/app/_app/immutable/chunks/{PsiVGwJV.js → DWeCJh9N.js} +1 -1
  35. package/app/_app/immutable/chunks/{D8rEUyzO.js → D_xoWitl.js} +1 -1
  36. package/app/_app/immutable/chunks/Dg4KRWOz.js +1 -0
  37. package/app/_app/immutable/chunks/{CdlkzC7D.js → DmvHEN1v.js} +1 -1
  38. package/app/_app/immutable/chunks/{eNZ3ToP2.js → DoGeTgSe.js} +1 -1
  39. package/app/_app/immutable/chunks/DqrQeG8L.js +26 -0
  40. package/app/_app/immutable/chunks/{Dyf3Cj8R.js → DziaAoFY.js} +1 -1
  41. package/app/_app/immutable/chunks/{Dzh-1KQR.js → QJX7BlhI.js} +1 -1
  42. package/app/_app/immutable/chunks/Ywu-998J.js +2 -0
  43. package/app/_app/immutable/chunks/nB-x9BEp.js +16 -0
  44. package/app/_app/immutable/chunks/{CwNhmq3e.js → ptmcJq5j.js} +1 -1
  45. package/app/_app/immutable/entry/app.g4Bu04a3.js +2 -0
  46. package/app/_app/immutable/entry/start.C4bzxGdW.js +1 -0
  47. package/app/_app/immutable/nodes/0.C6N6B83E.js +7 -0
  48. package/app/_app/immutable/nodes/{1.CTatAlE5.js → 1.9pTjyJp5.js} +1 -1
  49. package/app/_app/immutable/nodes/{10.DHnK3kbB.js → 10.BkbBDSaP.js} +1 -1
  50. package/app/_app/immutable/nodes/{11.Ck1kcQLu.js → 11.BcVi4XqZ.js} +1 -1
  51. package/app/_app/immutable/nodes/{12.oK17D56_.js → 12.j9PkVob2.js} +1 -1
  52. package/app/_app/immutable/nodes/{13.DlEsuw6F.js → 13.BOUYEx8n.js} +1 -1
  53. package/app/_app/immutable/nodes/14.CuMuuCU7.js +1 -0
  54. package/app/_app/immutable/nodes/2.BHCkcrHF.js +24 -0
  55. package/app/_app/immutable/nodes/{3.DOL1VeVM.js → 3.D6l9gEJu.js} +1 -1
  56. package/app/_app/immutable/nodes/{4.CiKq5-ek.js → 4.BUHWJvB3.js} +1 -1
  57. package/app/_app/immutable/nodes/{5.nKUg_W9L.js → 5.C1jfy8Yg.js} +1 -1
  58. package/app/_app/immutable/nodes/{6.CVGw-hLa.js → 6.LSyNtBLJ.js} +1 -1
  59. package/app/_app/immutable/nodes/{7.Clo6kG4w.js → 7.CC7rRIn7.js} +1 -1
  60. package/app/_app/immutable/nodes/{8.C3moca98.js → 8.S9H6LDRX.js} +1 -1
  61. package/app/_app/immutable/nodes/{9.BnVJx5kW.js → 9.BPt57fDH.js} +1 -1
  62. package/app/_app/version.json +1 -1
  63. package/app/advanced-styles/index.html +32 -33
  64. package/app/ai/index.html +37 -38
  65. package/app/blueprint/index.html +27 -30
  66. package/app/cookbook/index.html +27 -30
  67. package/app/index.html +36 -39
  68. package/app/m/ads/AdDeliveryTier/index.html +34 -35
  69. package/app/m/ads/AdEvent/index.html +34 -35
  70. package/app/m/ads/AdFormat/index.html +34 -35
  71. package/app/m/ads/AdGroup/index.html +34 -35
  72. package/app/m/ads/AdVariation/index.html +34 -35
  73. package/app/m/analytics/AnalyticsDataStream/index.html +34 -35
  74. package/app/m/analytics/AnalyticsEvent/index.html +34 -35
  75. package/app/m/analytics/AnalyticsProperty/index.html +34 -35
  76. package/app/m/analytics/AnalyticsReport/index.html +34 -35
  77. package/app/m/approvals/ApprovalEvent/index.html +34 -35
  78. package/app/m/approvals/ApprovalPolicy/index.html +34 -35
  79. package/app/m/approvals/ApprovalRequest/index.html +34 -35
  80. package/app/m/assets/Asset/attachments/index.html +36 -37
  81. package/app/m/assets/Asset/index.html +34 -35
  82. package/app/m/assets/AssetAssociation/index.html +35 -36
  83. package/app/m/assets/AssetMetafield/index.html +34 -35
  84. package/app/m/assets/AssetStatus/index.html +34 -35
  85. package/app/m/assets/AssetType/index.html +34 -35
  86. package/app/m/assets/Folder/index.html +34 -35
  87. package/app/m/chat/AgentSession/index.html +34 -35
  88. package/app/m/chat/ChatMessage/index.html +35 -36
  89. package/app/m/chat/ChatParticipant/index.html +35 -36
  90. package/app/m/chat/ChatReaction/index.html +34 -35
  91. package/app/m/chat/ChatRoom/index.html +34 -35
  92. package/app/m/chat/ChatThread/index.html +35 -36
  93. package/app/m/chat/VoiceGatewayTurn/index.html +34 -35
  94. package/app/m/chat/VoiceSession/index.html +34 -35
  95. package/app/m/commerce/Agreement/index.html +34 -35
  96. package/app/m/commerce/Cart/index.html +34 -35
  97. package/app/m/commerce/Contract/index.html +34 -35
  98. package/app/m/commerce/ContractLineItem/index.html +35 -36
  99. package/app/m/commerce/Customer/index.html +34 -35
  100. package/app/m/commerce/DocumentTax/index.html +34 -35
  101. package/app/m/commerce/Estimate/index.html +34 -35
  102. package/app/m/commerce/Fulfillment/index.html +34 -35
  103. package/app/m/commerce/FulfillmentLineItem/index.html +35 -36
  104. package/app/m/commerce/HistoricalCustomerFunds/index.html +34 -35
  105. package/app/m/commerce/HistoricalCustomerFundsAllocation/index.html +34 -35
  106. package/app/m/commerce/HistoricalSalesLine/index.html +34 -35
  107. package/app/m/commerce/Invoice/index.html +34 -35
  108. package/app/m/commerce/InvoiceLineItem/index.html +35 -36
  109. package/app/m/commerce/Lease/index.html +34 -35
  110. package/app/m/commerce/LicenseSale/index.html +34 -35
  111. package/app/m/commerce/Order/index.html +34 -35
  112. package/app/m/commerce/Payment/index.html +34 -35
  113. package/app/m/commerce/PaymentAllocation/index.html +35 -36
  114. package/app/m/commerce/PaymentInstrument/index.html +34 -35
  115. package/app/m/commerce/PaymentIntent/index.html +34 -35
  116. package/app/m/commerce/Payout/index.html +34 -35
  117. package/app/m/commerce/ProductionOrder/index.html +34 -35
  118. package/app/m/commerce/PurchaseContract/index.html +34 -35
  119. package/app/m/commerce/PurchaseOrder/index.html +34 -35
  120. package/app/m/commerce/SalesContract/index.html +34 -35
  121. package/app/m/commerce/SupplierQuote/index.html +34 -35
  122. package/app/m/commerce/TaxCode/index.html +34 -35
  123. package/app/m/commerce/TaxComponent/index.html +34 -35
  124. package/app/m/commerce/TaxSettings/index.html +34 -35
  125. package/app/m/commerce/TaxSummaryReport/index.html +34 -35
  126. package/app/m/commerce/Vendor/index.html +34 -35
  127. package/app/m/commerce/WholesaleOrder/index.html +34 -35
  128. package/app/m/content/Content/index.html +34 -35
  129. package/app/m/content/ContentContribution/index.html +34 -35
  130. package/app/m/content/ContentContributionAttachment/index.html +34 -35
  131. package/app/m/content/ContentContributionRevision/index.html +34 -35
  132. package/app/m/content/ContentContributionType/index.html +34 -35
  133. package/app/m/content/ContentContributor/index.html +34 -35
  134. package/app/m/content/ContentCorrection/index.html +34 -35
  135. package/app/m/content/ContentFeedSource/index.html +34 -35
  136. package/app/m/content/ContentGovernanceAssignment/index.html +34 -35
  137. package/app/m/content/ContentGovernancePolicy/index.html +34 -35
  138. package/app/m/content/ContentGovernanceProfile/index.html +34 -35
  139. package/app/m/content/ContentReference/index.html +34 -35
  140. package/app/m/content/ContentReview/index.html +34 -35
  141. package/app/m/content/ContentVersion/index.html +34 -35
  142. package/app/m/events/Event/index.html +34 -35
  143. package/app/m/events/EventParticipant/index.html +35 -36
  144. package/app/m/events/EventSeries/index.html +34 -35
  145. package/app/m/events/EventType/index.html +34 -35
  146. package/app/m/expenses/Expense/index.html +34 -35
  147. package/app/m/facts/Fact/index.html +34 -35
  148. package/app/m/facts/FactContent/index.html +34 -35
  149. package/app/m/facts/FactEvidence/index.html +34 -35
  150. package/app/m/facts/FactSource/index.html +34 -35
  151. package/app/m/facts/FactSubject/index.html +34 -35
  152. package/app/m/facts/FactTag/index.html +34 -35
  153. package/app/m/fields/FieldPolicy/index.html +34 -35
  154. package/app/m/fields/FieldPolicySuggestion/index.html +34 -35
  155. package/app/m/fields/FieldUsageCounter/index.html +34 -35
  156. package/app/m/images/Image/index.html +34 -35
  157. package/app/m/inventory/InventoryLocation/index.html +34 -35
  158. package/app/m/inventory/StockLevel/index.html +34 -35
  159. package/app/m/inventory/StockMovement/index.html +34 -35
  160. package/app/m/ledgers/Account/index.html +34 -35
  161. package/app/m/ledgers/Journal/index.html +34 -35
  162. package/app/m/ledgers/JournalEntry/index.html +35 -36
  163. package/app/m/ledgers/Ledger/index.html +34 -35
  164. package/app/m/manufacturing/Assembly/index.html +34 -35
  165. package/app/m/manufacturing/BillOfMaterials/index.html +34 -35
  166. package/app/m/manufacturing/BomLine/index.html +34 -35
  167. package/app/m/manufacturing/Operation/index.html +34 -35
  168. package/app/m/manufacturing/ProductionRun/index.html +34 -35
  169. package/app/m/manufacturing/ProductionRunCompletion/index.html +34 -35
  170. package/app/m/manufacturing/RoutingStep/index.html +34 -35
  171. package/app/m/marketing/Campaign/index.html +34 -35
  172. package/app/m/marketing/CampaignChannel/index.html +34 -35
  173. package/app/m/marketing/CampaignMetricSnapshot/index.html +34 -35
  174. package/app/m/messages/Account/index.html +34 -35
  175. package/app/m/messages/Attachment/index.html +34 -35
  176. package/app/m/messages/Blacklist/index.html +34 -35
  177. package/app/m/messages/Email/failed-sends/index.html +36 -37
  178. package/app/m/messages/Email/index.html +34 -35
  179. package/app/m/messages/Email/mailbox/index.html +36 -37
  180. package/app/m/messages/EmailAccount/index.html +34 -35
  181. package/app/m/messages/EmailAttachment/index.html +34 -35
  182. package/app/m/messages/EmailFolder/index.html +34 -35
  183. package/app/m/messages/Message/index.html +34 -35
  184. package/app/m/messages/MessagingEndpoint/index.html +34 -35
  185. package/app/m/messages/PersonaMessageRoute/index.html +34 -35
  186. package/app/m/messages/SlackAccount/index.html +34 -35
  187. package/app/m/messages/SlackMessage/index.html +34 -35
  188. package/app/m/messages/TelegramAccount/index.html +34 -35
  189. package/app/m/messages/Tweet/index.html +34 -35
  190. package/app/m/messages/TwitterAccount/index.html +34 -35
  191. package/app/m/messages/Whitelist/index.html +34 -35
  192. package/app/m/messages/ZulipAccount/index.html +34 -35
  193. package/app/m/places/Place/index.html +34 -35
  194. package/app/m/places/PlaceType/index.html +34 -35
  195. package/app/m/products/Category/index.html +34 -35
  196. package/app/m/products/Material/index.html +34 -35
  197. package/app/m/products/Product/index.html +34 -35
  198. package/app/m/products/Product/ingredients/index.html +36 -37
  199. package/app/m/products/ProductVariant/index.html +35 -36
  200. package/app/m/products/Sku/index.html +35 -36
  201. package/app/m/profiles/ApiKey/index.html +34 -35
  202. package/app/m/profiles/Bot/index.html +34 -35
  203. package/app/m/profiles/MagicLinkToken/index.html +34 -35
  204. package/app/m/profiles/NostrIdentity/index.html +34 -35
  205. package/app/m/profiles/OidcIdentity/index.html +34 -35
  206. package/app/m/profiles/Organization/index.html +34 -35
  207. package/app/m/profiles/Person/index.html +34 -35
  208. package/app/m/profiles/Profile/index.html +34 -35
  209. package/app/m/profiles/ProfileMetadata/index.html +34 -35
  210. package/app/m/profiles/ProfileMetafield/index.html +34 -35
  211. package/app/m/profiles/ProfileRelationship/index.html +34 -35
  212. package/app/m/profiles/ProfileRelationshipTerm/index.html +34 -35
  213. package/app/m/profiles/ProfileRelationshipType/index.html +34 -35
  214. package/app/m/profiles/ProfileType/index.html +34 -35
  215. package/app/m/projects/Comment/index.html +35 -36
  216. package/app/m/projects/Issue/index.html +34 -35
  217. package/app/m/projects/Label/index.html +34 -35
  218. package/app/m/projects/Project/index.html +34 -35
  219. package/app/m/projects/ProjectIntegration/index.html +34 -35
  220. package/app/m/projects/PullRequest/index.html +34 -35
  221. package/app/m/projects/Repository/index.html +34 -35
  222. package/app/m/properties/Property/index.html +34 -35
  223. package/app/m/properties/Zone/index.html +34 -35
  224. package/app/m/reports/RuntimeReport/index.html +38 -36
  225. package/app/m/reports/SmrtPrincipalReportRefreshTask/index.html +34 -35
  226. package/app/m/reports/SmrtReportLock/index.html +34 -35
  227. package/app/m/reports/SmrtReportRefreshTask/index.html +34 -35
  228. package/app/m/reports/SmrtReportRun/index.html +34 -35
  229. package/app/m/reports/SmrtReportSchedule/index.html +34 -35
  230. package/app/m/reports/SmrtReportWatermark/index.html +34 -35
  231. package/app/m/sales/Agreement/index.html +34 -35
  232. package/app/m/sales/AttributionException/index.html +34 -35
  233. package/app/m/sales/AttributionPolicy/index.html +34 -35
  234. package/app/m/sales/Commission/index.html +34 -35
  235. package/app/m/sales/CommissionAdjustment/index.html +34 -35
  236. package/app/m/sales/CommissionPayout/index.html +34 -35
  237. package/app/m/sales/CommissionPlan/index.html +34 -35
  238. package/app/m/sales/Earner/index.html +34 -35
  239. package/app/m/sales/EarnerSourceAttribution/index.html +34 -35
  240. package/app/m/sales/EarningEvent/index.html +34 -35
  241. package/app/m/sales/ExecutedAgreement/index.html +34 -35
  242. package/app/m/sales/Lead/index.html +34 -35
  243. package/app/m/sales/Opportunity/index.html +34 -35
  244. package/app/m/sales/OpportunityConversion/index.html +34 -35
  245. package/app/m/sales/PipelineDefinition/index.html +34 -35
  246. package/app/m/sales/PipelineStage/index.html +35 -36
  247. package/app/m/sales/Referral/index.html +34 -35
  248. package/app/m/sales/ReferralAgreement/index.html +34 -35
  249. package/app/m/sales/ReferralLink/index.html +34 -35
  250. package/app/m/sales/ReferralProgram/index.html +34 -35
  251. package/app/m/sales/ReferralTermSnapshot/index.html +34 -35
  252. package/app/m/sales/ReferralTouch/index.html +34 -35
  253. package/app/m/sales/Referrer/index.html +34 -35
  254. package/app/m/sales/SalesActivity/index.html +34 -35
  255. package/app/m/sales/SalesRepresentative/index.html +34 -35
  256. package/app/m/sites/Site/index.html +34 -35
  257. package/app/m/sites/SiteAgentBinding/index.html +34 -35
  258. package/app/m/social/OAuthState/index.html +34 -35
  259. package/app/m/social/SocialAccount/index.html +34 -35
  260. package/app/m/social/SocialPost/index.html +34 -35
  261. package/app/m/social/SocialPostAnalyticsSnapshot/index.html +34 -35
  262. package/app/m/subscriptions/BillingAdjustment/index.html +34 -35
  263. package/app/m/subscriptions/ClientCharge/index.html +34 -35
  264. package/app/m/subscriptions/CreditGrant/index.html +34 -35
  265. package/app/m/subscriptions/PricingRule/index.html +34 -35
  266. package/app/m/subscriptions/RetailCharge/index.html +34 -35
  267. package/app/m/subscriptions/SpendingPolicy/index.html +34 -35
  268. package/app/m/subscriptions/SubscriptionPlan/index.html +34 -35
  269. package/app/m/subscriptions/TenantSubscription/index.html +34 -35
  270. package/app/m/subscriptions/TenantUsageMetric/index.html +34 -35
  271. package/app/m/support/ServiceTimeEntry/index.html +34 -35
  272. package/app/m/support/SupportAiRun/index.html +34 -35
  273. package/app/m/support/SupportAvailability/index.html +34 -35
  274. package/app/m/support/SupportCase/index.html +34 -35
  275. package/app/m/support/SupportCaseEvent/index.html +34 -35
  276. package/app/m/support/SupportChannelBinding/index.html +34 -35
  277. package/app/m/support/SupportCharge/index.html +34 -35
  278. package/app/m/support/SupportCompensation/index.html +34 -35
  279. package/app/m/support/SupportCompensationPlan/index.html +34 -35
  280. package/app/m/support/SupportEscalation/index.html +34 -35
  281. package/app/m/support/SupportInteraction/index.html +34 -35
  282. package/app/m/support/SupportPlan/index.html +34 -35
  283. package/app/m/support/SupportPolicy/index.html +34 -35
  284. package/app/m/support/SupportQualification/index.html +34 -35
  285. package/app/m/support/SupportServiceTarget/index.html +34 -35
  286. package/app/m/support/SupportSpecialist/index.html +34 -35
  287. package/app/m/support/SupportWorkLink/index.html +34 -35
  288. package/app/m/tags/Tag/index.html +34 -35
  289. package/app/m/tags/TagAlias/index.html +34 -35
  290. package/app/m/timesheets/AttendanceBreak/index.html +34 -35
  291. package/app/m/timesheets/AttendancePunch/index.html +34 -35
  292. package/app/m/timesheets/AttendanceSegment/index.html +34 -35
  293. package/app/m/timesheets/ServiceChargeSnapshot/index.html +34 -35
  294. package/app/m/timesheets/ServiceCompensationSnapshot/index.html +34 -35
  295. package/app/m/timesheets/ServiceTimeEntry/index.html +34 -35
  296. package/app/m/users/Group/index.html +34 -35
  297. package/app/m/users/GroupMember/index.html +34 -35
  298. package/app/m/users/GroupRole/index.html +34 -35
  299. package/app/m/users/Membership/index.html +35 -36
  300. package/app/m/users/MembershipOverride/index.html +34 -35
  301. package/app/m/users/Permission/index.html +34 -35
  302. package/app/m/users/Role/index.html +34 -35
  303. package/app/m/users/RolePermission/index.html +34 -35
  304. package/app/m/users/Session/index.html +34 -35
  305. package/app/m/users/Tenant/index.html +34 -35
  306. package/app/m/users/TenantIntegration/index.html +34 -35
  307. package/app/m/users/TenantPermissionOverride/index.html +34 -35
  308. package/app/m/users/User/index.html +34 -35
  309. package/app/m/video/Character/index.html +34 -35
  310. package/app/m/video/CharacterAsset/index.html +34 -35
  311. package/app/m/video/CompositeJob/index.html +34 -35
  312. package/app/m/video/Performer/index.html +34 -35
  313. package/app/m/video/PerformerAsset/index.html +34 -35
  314. package/app/m/video/Scene/index.html +34 -35
  315. package/app/m/video/SceneAsset/index.html +34 -35
  316. package/app/m/video/VideoComposition/index.html +34 -35
  317. package/app/m/video/VideoCompositionAsset/index.html +34 -35
  318. package/app/m/video/VideoSequence/index.html +34 -35
  319. package/app/m/video/VideoSequenceAsset/index.html +34 -35
  320. package/app/m/video/VideoShot/index.html +34 -35
  321. package/app/m/video/VideoShotAsset/index.html +34 -35
  322. package/app/m/video/VideoShotCharacter/index.html +34 -35
  323. package/app/m/video/VideoWorkflow/index.html +34 -35
  324. package/app/m/voice/VoiceOutput/index.html +34 -35
  325. package/app/m/voice/VoiceProfile/index.html +34 -35
  326. package/app/m/voice/VoiceSample/index.html +34 -35
  327. package/app/mcp.html +2 -2
  328. package/app/packages/ads/index.html +29 -32
  329. package/app/packages/analytics/index.html +29 -32
  330. package/app/packages/approvals/index.html +29 -32
  331. package/app/packages/assets/index.html +29 -32
  332. package/app/packages/chat/index.html +29 -32
  333. package/app/packages/comments/index.html +29 -32
  334. package/app/packages/commerce/index.html +29 -32
  335. package/app/packages/content/index.html +29 -32
  336. package/app/packages/events/index.html +29 -32
  337. package/app/packages/expenses/index.html +29 -32
  338. package/app/packages/facts/index.html +29 -32
  339. package/app/packages/fields/index.html +29 -32
  340. package/app/packages/human-resources/index.html +29 -32
  341. package/app/packages/images/index.html +29 -32
  342. package/app/packages/index.html +28 -31
  343. package/app/packages/ingestion/index.html +29 -32
  344. package/app/packages/inventory/index.html +29 -32
  345. package/app/packages/ledgers/index.html +29 -32
  346. package/app/packages/manufacturing/index.html +29 -32
  347. package/app/packages/marketing/index.html +29 -32
  348. package/app/packages/messages/index.html +29 -32
  349. package/app/packages/places/index.html +29 -32
  350. package/app/packages/preferences/index.html +29 -32
  351. package/app/packages/products/index.html +29 -32
  352. package/app/packages/profiles/index.html +29 -32
  353. package/app/packages/projects/index.html +29 -32
  354. package/app/packages/properties/index.html +29 -32
  355. package/app/packages/reports/index.html +29 -32
  356. package/app/packages/sales/index.html +29 -32
  357. package/app/packages/sites/index.html +29 -32
  358. package/app/packages/social/index.html +29 -32
  359. package/app/packages/subscriptions/index.html +29 -32
  360. package/app/packages/support/index.html +29 -32
  361. package/app/packages/tags/index.html +29 -32
  362. package/app/packages/timesheets/index.html +29 -32
  363. package/app/packages/users/index.html +29 -32
  364. package/app/packages/video/index.html +29 -32
  365. package/app/packages/voice/index.html +29 -32
  366. package/app/packages/webhooks/index.html +29 -32
  367. package/app/recipes/account-access/help/index.html +31 -34
  368. package/app/recipes/account-access/index.html +34 -36
  369. package/app/recipes/activity/help/index.html +30 -33
  370. package/app/recipes/activity/index.html +34 -36
  371. package/app/recipes/agreements/help/index.html +30 -33
  372. package/app/recipes/agreements/index.html +34 -36
  373. package/app/recipes/analytics.reports/help/index.html +30 -33
  374. package/app/recipes/analytics.reports/index.html +34 -36
  375. package/app/recipes/assets/help/index.html +30 -33
  376. package/app/recipes/assets/index.html +34 -36
  377. package/app/recipes/billing/help/index.html +30 -33
  378. package/app/recipes/billing/index.html +34 -36
  379. package/app/recipes/chat.assistant/help/index.html +30 -33
  380. package/app/recipes/chat.assistant/index.html +34 -36
  381. package/app/recipes/comments/help/index.html +30 -33
  382. package/app/recipes/comments/index.html +34 -36
  383. package/app/recipes/commerce.customers/help/index.html +30 -33
  384. package/app/recipes/commerce.customers/index.html +34 -36
  385. package/app/recipes/commerce.estimates/help/index.html +30 -33
  386. package/app/recipes/commerce.estimates/index.html +34 -36
  387. package/app/recipes/commerce.purchases/help/index.html +30 -33
  388. package/app/recipes/commerce.purchases/index.html +34 -36
  389. package/app/recipes/commerce.sales/help/index.html +30 -33
  390. package/app/recipes/commerce.sales/index.html +34 -36
  391. package/app/recipes/commerce.vendors/help/index.html +30 -33
  392. package/app/recipes/commerce.vendors/index.html +34 -36
  393. package/app/recipes/commerce.wholesale/help/index.html +30 -33
  394. package/app/recipes/commerce.wholesale/index.html +34 -36
  395. package/app/recipes/events.calendar/help/index.html +30 -33
  396. package/app/recipes/events.calendar/index.html +34 -36
  397. package/app/recipes/expenses.tracking/help/index.html +30 -33
  398. package/app/recipes/expenses.tracking/index.html +34 -36
  399. package/app/recipes/fields.form-customization/help/index.html +30 -33
  400. package/app/recipes/fields.form-customization/index.html +34 -36
  401. package/app/recipes/ingestion/help/index.html +30 -33
  402. package/app/recipes/ingestion/index.html +34 -36
  403. package/app/recipes/integrations/help/index.html +30 -33
  404. package/app/recipes/integrations/index.html +34 -36
  405. package/app/recipes/inventory.stock/help/index.html +30 -33
  406. package/app/recipes/inventory.stock/index.html +34 -36
  407. package/app/recipes/ledgers.bookkeeping/help/index.html +30 -33
  408. package/app/recipes/ledgers.bookkeeping/index.html +34 -36
  409. package/app/recipes/messages/help/index.html +30 -33
  410. package/app/recipes/messages/index.html +34 -36
  411. package/app/recipes/products/help/index.html +30 -33
  412. package/app/recipes/products/index.html +34 -36
  413. package/app/recipes/projects.tracker/help/index.html +30 -33
  414. package/app/recipes/projects.tracker/index.html +34 -36
  415. package/app/recipes/reports.materialized/help/index.html +30 -33
  416. package/app/recipes/reports.materialized/index.html +34 -36
  417. package/app/recipes/reports.runtime/help/index.html +31 -34
  418. package/app/recipes/reports.runtime/index.html +35 -37
  419. package/app/recipes/sales.pipeline/help/index.html +30 -33
  420. package/app/recipes/sales.pipeline/index.html +34 -36
  421. package/app/recipes/tags.taxonomy/help/index.html +30 -33
  422. package/app/recipes/tags.taxonomy/index.html +34 -36
  423. package/app/recipes/team-collaboration/help/index.html +30 -33
  424. package/app/recipes/team-collaboration/index.html +34 -36
  425. package/app/recipes/timesheets.time-entries/help/index.html +30 -33
  426. package/app/recipes/timesheets.time-entries/index.html +34 -36
  427. package/app/s/custom-accounts/index.html +27 -30
  428. package/app/s/custom-appointments/index.html +27 -30
  429. package/app/s/custom-billing/index.html +27 -30
  430. package/app/s/custom-bookings/index.html +27 -30
  431. package/app/s/custom-buying/index.html +27 -30
  432. package/app/s/custom-checkout/index.html +27 -30
  433. package/app/s/custom-classes/index.html +27 -30
  434. package/app/s/custom-clients/index.html +27 -30
  435. package/app/s/custom-events/index.html +27 -30
  436. package/app/s/custom-fleet/index.html +27 -30
  437. package/app/s/custom-gigs/index.html +27 -30
  438. package/app/s/custom-giving/index.html +27 -30
  439. package/app/s/custom-instruments/index.html +27 -30
  440. package/app/s/custom-jobs/index.html +27 -30
  441. package/app/s/custom-kitchen/index.html +27 -30
  442. package/app/s/custom-lessons/index.html +27 -30
  443. package/app/s/custom-material/index.html +27 -30
  444. package/app/s/custom-meetings/index.html +27 -30
  445. package/app/s/custom-members/index.html +27 -30
  446. package/app/s/custom-merch/index.html +27 -30
  447. package/app/s/custom-money/index.html +27 -30
  448. package/app/s/custom-paint/index.html +27 -30
  449. package/app/s/custom-parts/index.html +27 -30
  450. package/app/s/custom-rentals/index.html +27 -30
  451. package/app/s/custom-roastery/index.html +27 -30
  452. package/app/s/custom-schedule/index.html +27 -30
  453. package/app/s/custom-shelf/index.html +27 -30
  454. package/app/s/custom-shop/index.html +27 -30
  455. package/app/s/custom-students/index.html +27 -30
  456. package/app/s/custom-wholesale/index.html +27 -30
  457. package/app/s/custom-work/index.html +27 -30
  458. package/app/s/custom-yard/index.html +27 -30
  459. package/app/s/section-access-control/index.html +27 -30
  460. package/app/s/section-account-security/index.html +27 -30
  461. package/app/s/section-accounting/index.html +27 -30
  462. package/app/s/section-activity/index.html +27 -30
  463. package/app/s/section-agreements/index.html +27 -30
  464. package/app/s/section-analytics/index.html +27 -30
  465. package/app/s/section-assets/index.html +27 -30
  466. package/app/s/section-billing/index.html +27 -30
  467. package/app/s/section-calendar/index.html +27 -30
  468. package/app/s/section-catalog/index.html +27 -30
  469. package/app/s/section-chat.assistant/index.html +27 -30
  470. package/app/s/section-comments/index.html +27 -30
  471. package/app/s/section-fields.form-customization/index.html +27 -30
  472. package/app/s/section-ingestion/index.html +27 -30
  473. package/app/s/section-integrations/index.html +27 -30
  474. package/app/s/section-messages/index.html +27 -30
  475. package/app/s/section-more/index.html +27 -30
  476. package/app/s/section-operations/index.html +27 -30
  477. package/app/s/section-projects/index.html +27 -30
  478. package/app/s/section-purchasing/index.html +27 -30
  479. package/app/s/section-reports.materialized/index.html +27 -30
  480. package/app/s/section-reports.runtime/index.html +27 -30
  481. package/app/s/section-sales/index.html +27 -30
  482. package/app/s/section-taxonomy/index.html +27 -30
  483. package/app/s/section-team/index.html +27 -30
  484. package/app/s/section-work/index.html +27 -30
  485. package/dist/assistant/change.d.ts +10 -1
  486. package/dist/assistant/change.d.ts.map +1 -1
  487. package/dist/assistant/change.js +6 -1
  488. package/dist/assistant/prompt.d.ts +10 -1
  489. package/dist/assistant/prompt.d.ts.map +1 -1
  490. package/dist/assistant/prompt.js +42 -7
  491. package/dist/assistant/session.svelte.d.ts +6 -0
  492. package/dist/assistant/session.svelte.d.ts.map +1 -1
  493. package/dist/assistant/session.svelte.js +6 -0
  494. package/dist/assistant/transport.d.ts +23 -3
  495. package/dist/assistant/transport.d.ts.map +1 -1
  496. package/dist/assistant/transport.js +356 -13
  497. package/dist/catalog/catalog.json +119 -41
  498. package/dist/components/BrowserAssistant.svelte +26 -0
  499. package/dist/components/BrowserAssistant.svelte.d.ts.map +1 -1
  500. package/dist/components/ModelPage.svelte +36 -4
  501. package/dist/components/ModelPage.svelte.d.ts.map +1 -1
  502. package/dist/components/PlannerReports.svelte +61 -0
  503. package/dist/components/PlannerReports.svelte.d.ts +10 -0
  504. package/dist/components/PlannerReports.svelte.d.ts.map +1 -0
  505. package/dist/components/PlannerSavedReportsWidget.svelte +38 -0
  506. package/dist/components/PlannerSavedReportsWidget.svelte.d.ts +9 -0
  507. package/dist/components/PlannerSavedReportsWidget.svelte.d.ts.map +1 -0
  508. package/dist/components/ReportProposalCard.svelte +63 -0
  509. package/dist/components/ReportProposalCard.svelte.d.ts +17 -0
  510. package/dist/components/ReportProposalCard.svelte.d.ts.map +1 -0
  511. package/dist/components/SectionOverview.svelte +22 -1
  512. package/dist/components/SectionOverview.svelte.d.ts.map +1 -1
  513. package/dist/core/prompt.d.ts.map +1 -1
  514. package/dist/core/prompt.js +7 -1
  515. package/dist/core/reply.d.ts +6 -0
  516. package/dist/core/reply.d.ts.map +1 -1
  517. package/dist/core/reply.js +11 -0
  518. package/dist/data/planner-source.d.ts.map +1 -1
  519. package/dist/data/planner-source.js +4 -1
  520. package/dist/overviews/definitions.d.ts.map +1 -1
  521. package/dist/overviews/definitions.js +6 -1
  522. package/dist/overviews/registry.d.ts.map +1 -1
  523. package/dist/overviews/registry.js +9 -5
  524. package/dist/planner/Planner.svelte +17 -0
  525. package/dist/planner/Planner.svelte.d.ts.map +1 -1
  526. package/dist/planner/instance.d.ts +6 -0
  527. package/dist/planner/instance.d.ts.map +1 -1
  528. package/dist/planner/shell.d.ts.map +1 -1
  529. package/dist/planner/shell.js +3 -1
  530. package/dist/reports/intent.d.ts +106 -0
  531. package/dist/reports/intent.d.ts.map +1 -0
  532. package/dist/reports/intent.js +667 -0
  533. package/dist/reports/planner.d.ts +33 -0
  534. package/dist/reports/planner.d.ts.map +1 -0
  535. package/dist/reports/planner.js +60 -0
  536. package/dist/reports/sources.d.ts +36 -0
  537. package/dist/reports/sources.d.ts.map +1 -0
  538. package/dist/reports/sources.js +125 -0
  539. package/dist/reports/store.d.ts +64 -0
  540. package/dist/reports/store.d.ts.map +1 -0
  541. package/dist/reports/store.js +214 -0
  542. package/dist/smrt-version.d.ts +1 -1
  543. package/dist/smrt-version.js +1 -1
  544. package/package.json +54 -54
  545. package/app/_app/immutable/assets/0.C8CwV4Fz.css +0 -1
  546. package/app/_app/immutable/assets/AppShell.DrL8T9I9.css +0 -1
  547. package/app/_app/immutable/assets/app.4ScdTV_S.css +0 -1
  548. package/app/_app/immutable/assets/labels.AVmg4hBz.css +0 -1
  549. package/app/_app/immutable/assets/state.CkVocVUJ.css +0 -1
  550. package/app/_app/immutable/chunks/B7d7dGCP.js +0 -1
  551. package/app/_app/immutable/chunks/C3nKLKKd.js +0 -1
  552. package/app/_app/immutable/chunks/CXKa_xdk.js +0 -4
  553. package/app/_app/immutable/chunks/CdBvpdnq.js +0 -4
  554. package/app/_app/immutable/chunks/D31rqKs1.js +0 -1
  555. package/app/_app/immutable/chunks/DBp81N-t.js +0 -24
  556. package/app/_app/immutable/chunks/DzRTyOpH.js +0 -1
  557. package/app/_app/immutable/chunks/GVQNHDp5.js +0 -1
  558. package/app/_app/immutable/chunks/M-CuJzQN.js +0 -1
  559. package/app/_app/immutable/chunks/ORlJSBRk.js +0 -1
  560. package/app/_app/immutable/chunks/gMSmS-_y.js +0 -2
  561. package/app/_app/immutable/chunks/jol435F5.js +0 -11
  562. package/app/_app/immutable/entry/app.C_C191oT.js +0 -2
  563. package/app/_app/immutable/entry/start.C01jT-Kj.js +0 -1
  564. package/app/_app/immutable/nodes/0._tbUx7Ky.js +0 -9
  565. package/app/_app/immutable/nodes/14.sDZ3z4Zh.js +0 -1
  566. package/app/_app/immutable/nodes/2.GYBHfqdI.js +0 -24
@@ -1 +1 @@
1
- {"version":3,"file":"ModelPage.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/components/ModelPage.svelte.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,UAAU,EAAgB,MAAM,sBAAsB,CAAC;AA2BrE,UAAU,cAAc;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AA0QD,QAAA,MAAM,SAAS,oDAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"ModelPage.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/components/ModelPage.svelte.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,UAAU,EAAgB,MAAM,sBAAsB,CAAC;AA8BrE,UAAU,cAAc;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AA0SD,QAAA,MAAM,SAAS,oDAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
@@ -0,0 +1,61 @@
1
+ <script lang="ts">
2
+ import { ReportDetail, SavedReports } from '@happyvertical/smrt-reports/svelte';
3
+ import { cookbookStore } from '../cookbook/store.svelte.js';
4
+ import { useDataSource } from '../data/context.js';
5
+ import { appHref } from '../planner/app.svelte.js';
6
+ import { plannerReportsFor } from '../reports/planner.js';
7
+ import { PLANNER_REPORT_AUTHOR, reportPath } from '../reports/store.js';
8
+
9
+ interface PlannerReportsProps {
10
+ /** A saved report to open; omitted, the list of saved reports. */
11
+ recordId?: string;
12
+ /** The open report's title, for the page's document title. */
13
+ title?: string;
14
+ }
15
+
16
+ let { recordId, title = $bindable() }: PlannerReportsProps = $props();
17
+
18
+ // Saved reports are smrt-reports' own screens over the plan's sample data:
19
+ // the list is `SavedReports`, a report is `ReportDetail`, which runs it afresh
20
+ // (in the browser, over the sample rows) every time it opens. The page's
21
+ // breadcrumb leads back to the list.
22
+ const reports = plannerReportsFor(useDataSource());
23
+ const currency = $derived(cookbookStore.settings().currency);
24
+ const sources = $derived(reports.sourceInfo());
25
+ const reportHref = (id: string) => appHref(reportPath(id));
26
+ const authorLabel = (id: string) =>
27
+ id === PLANNER_REPORT_AUTHOR ? 'you' : undefined;
28
+ $effect(() => {
29
+ recordId;
30
+ title = undefined;
31
+ });
32
+ </script>
33
+
34
+ <div class="reports">
35
+ {#if recordId}
36
+ <!-- A new report is a new page: its heading is a new node (focus after a
37
+ dock navigation targets it, #4100). -->
38
+ {#key recordId}
39
+ <ReportDetail
40
+ id={recordId}
41
+ client={reports.client}
42
+ {sources}
43
+ {authorLabel}
44
+ {currency}
45
+ onreport={(report) => (title = report.title)}
46
+ />
47
+ {/key}
48
+ {:else}
49
+ <SavedReports client={reports.client} {reportHref} {authorLabel} {sources} {currency} />
50
+ {/if}
51
+ </div>
52
+
53
+ <style>
54
+ @layer smrt.reset, smrt.structure, smrt.theme;
55
+ @layer smrt.theme {
56
+ .reports {
57
+ display: grid;
58
+ gap: var(--smrt-spacing-4);
59
+ }
60
+ }
61
+ </style>
@@ -0,0 +1,10 @@
1
+ interface PlannerReportsProps {
2
+ /** A saved report to open; omitted, the list of saved reports. */
3
+ recordId?: string;
4
+ /** The open report's title, for the page's document title. */
5
+ title?: string;
6
+ }
7
+ declare const PlannerReports: import("svelte").Component<PlannerReportsProps, {}, "title">;
8
+ type PlannerReports = ReturnType<typeof PlannerReports>;
9
+ export default PlannerReports;
10
+ //# sourceMappingURL=PlannerReports.svelte.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlannerReports.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/components/PlannerReports.svelte.ts"],"names":[],"mappings":"AAWA,UAAU,mBAAmB;IAC3B,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA2CD,QAAA,MAAM,cAAc,8DAAwC,CAAC;AAC7D,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AACxD,eAAe,cAAc,CAAC"}
@@ -0,0 +1,38 @@
1
+ <script lang="ts">
2
+ /**
3
+ * smrt-reports' `saved-reports` widget (the Reports section page) over the
4
+ * plan's sample data: the same component a generated app renders, given the
5
+ * planner's in-browser reports transport, links and source labels.
6
+ */
7
+ import { SavedReportsWidget } from '@happyvertical/smrt-reports/svelte';
8
+ import { cookbookStore } from '../cookbook/store.svelte.js';
9
+ import { useDataSource } from '../data/context.js';
10
+ import { appHref } from '../planner/app.svelte.js';
11
+ import { plannerReportsFor } from '../reports/planner.js';
12
+ import {
13
+ PLANNER_REPORT_AUTHOR,
14
+ REPORT_LIST_PATH,
15
+ reportPath,
16
+ } from '../reports/store.js';
17
+
18
+ interface Props {
19
+ options?: Record<string, string | number | boolean | null>;
20
+ title?: string;
21
+ locale?: string;
22
+ }
23
+ let { options, title, locale }: Props = $props();
24
+ const reports = plannerReportsFor(useDataSource());
25
+ const currency = $derived(cookbookStore.settings().currency);
26
+ </script>
27
+
28
+ <SavedReportsWidget
29
+ {options}
30
+ {title}
31
+ {locale}
32
+ client={reports.client}
33
+ reportHref={(id) => appHref(reportPath(id))}
34
+ listHref={appHref(REPORT_LIST_PATH)}
35
+ sources={reports.sourceInfo()}
36
+ authorLabel={(id) => (id === PLANNER_REPORT_AUTHOR ? 'you' : undefined)}
37
+ {currency}
38
+ />
@@ -0,0 +1,9 @@
1
+ interface Props {
2
+ options?: Record<string, string | number | boolean | null>;
3
+ title?: string;
4
+ locale?: string;
5
+ }
6
+ declare const PlannerSavedReportsWidget: import("svelte").Component<Props, {}, "">;
7
+ type PlannerSavedReportsWidget = ReturnType<typeof PlannerSavedReportsWidget>;
8
+ export default PlannerSavedReportsWidget;
9
+ //# sourceMappingURL=PlannerSavedReportsWidget.svelte.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlannerSavedReportsWidget.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/components/PlannerSavedReportsWidget.svelte.ts"],"names":[],"mappings":"AAoBA,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC,CAAC;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAmBD,QAAA,MAAM,yBAAyB,2CAAwC,CAAC;AACxE,KAAK,yBAAyB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC9E,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1,63 @@
1
+ <script lang="ts">
2
+ import {
3
+ ReportConfirmation,
4
+ type ReportConfirmationOutcome,
5
+ type RuntimeReportProposal,
6
+ type SavedRuntimeReport,
7
+ } from '@happyvertical/smrt-reports/svelte';
8
+ import { cookbookStore } from '../cookbook/store.svelte.js';
9
+ import { useDataSource } from '../data/context.js';
10
+ import { appHref } from '../planner/app.svelte.js';
11
+ import { openSavedReportFrom, plannerReportsFor } from '../reports/planner.js';
12
+ import { reportPath } from '../reports/store.js';
13
+
14
+ interface ReportProposalCardProps {
15
+ /** The assistant's `reports.runtime.define` preview. */
16
+ proposal: RuntimeReportProposal;
17
+ /** How the card was answered, from the transcript (a reload shows it). */
18
+ answered?: ReportConfirmationOutcome | null;
19
+ /**
20
+ * Record an answer on the transcript itself (the transport's
21
+ * `recordReportOutcome`): the dock's message copies are reactive proxies,
22
+ * so writing to them would not survive a reload.
23
+ */
24
+ onoutcome?: (outcome: ReportConfirmationOutcome) => void;
25
+ }
26
+
27
+ let {
28
+ proposal,
29
+ answered = null,
30
+ onoutcome,
31
+ }: ReportProposalCardProps = $props();
32
+
33
+ // smrt-reports' own confirmation card. Approve is the person's click and
34
+ // nothing else: it saves the report into the plan (the browser's confirmed
35
+ // save), then opens it under Saved reports; the shell closes a dock laid
36
+ // over the page and focuses the report's heading. Decline saves nothing.
37
+ const reports = plannerReportsFor(useDataSource());
38
+ const currency = $derived(cookbookStore.settings().currency);
39
+ const fields = $derived(reports.fieldsFor(proposal.spec.source));
40
+ let outcome = $state<ReportConfirmationOutcome | null>((() => answered)());
41
+ let element = $state<HTMLDivElement | null>(null);
42
+ function record(next: ReportConfirmationOutcome) {
43
+ outcome = next;
44
+ onoutcome?.(next);
45
+ }
46
+ function onsaved(report: SavedRuntimeReport) {
47
+ record({ status: 'saved', report: { id: report.id, title: report.title } });
48
+ void openSavedReportFrom(element, report);
49
+ }
50
+ </script>
51
+
52
+ <div bind:this={element}>
53
+ <ReportConfirmation
54
+ {proposal}
55
+ confirm={reports.save}
56
+ reportHref={(id) => appHref(reportPath(id))}
57
+ {onsaved}
58
+ ondecline={() => record({ status: 'declined' })}
59
+ {outcome}
60
+ {fields}
61
+ {currency}
62
+ />
63
+ </div>
@@ -0,0 +1,17 @@
1
+ import { type ReportConfirmationOutcome, type RuntimeReportProposal } from '@happyvertical/smrt-reports/svelte';
2
+ interface ReportProposalCardProps {
3
+ /** The assistant's `reports.runtime.define` preview. */
4
+ proposal: RuntimeReportProposal;
5
+ /** How the card was answered, from the transcript (a reload shows it). */
6
+ answered?: ReportConfirmationOutcome | null;
7
+ /**
8
+ * Record an answer on the transcript itself (the transport's
9
+ * `recordReportOutcome`): the dock's message copies are reactive proxies,
10
+ * so writing to them would not survive a reload.
11
+ */
12
+ onoutcome?: (outcome: ReportConfirmationOutcome) => void;
13
+ }
14
+ declare const ReportProposalCard: import("svelte").Component<ReportProposalCardProps, {}, "">;
15
+ type ReportProposalCard = ReturnType<typeof ReportProposalCard>;
16
+ export default ReportProposalCard;
17
+ //# sourceMappingURL=ReportProposalCard.svelte.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReportProposalCard.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/components/ReportProposalCard.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAE3B,MAAM,oCAAoC,CAAC;AAQ5C,UAAU,uBAAuB;IAC/B,wDAAwD;IACxD,QAAQ,EAAE,qBAAqB,CAAC;IAChC,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;IAC5C;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,yBAAyB,KAAK,IAAI,CAAC;CAC1D;AAyCD,QAAA,MAAM,kBAAkB,6DAAwC,CAAC;AACjE,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAChE,eAAe,kBAAkB,CAAC"}
@@ -14,12 +14,15 @@ import {
14
14
  OverviewGrid,
15
15
  type OverviewModelChoice,
16
16
  type OverviewWidget,
17
+ resolveWidgetComponents,
18
+ type WidgetComponents,
17
19
  } from '@happyvertical/smrt-svelte/overview';
18
20
  import { useShellLayout } from '@happyvertical/smrt-svelte/workspace';
19
21
  import { onDestroy, untrack } from 'svelte';
20
22
  import { cookbookStore } from '../cookbook/store.svelte.js';
21
23
  import { useDataSource } from '../data/context.js';
22
24
  import { createSectionOverview } from '../overviews/page.js';
25
+ import { overviewRegistry } from '../overviews/registry.js';
23
26
  import { appHref } from '../planner/app.svelte.js';
24
27
  import type { SectionEntry } from '../sections/entries.js';
25
28
 
@@ -55,6 +58,20 @@ const controller = createSectionOverview(
55
58
  () => ({ source, sections: shell.sections, entryIndex: entries, href }),
56
59
  );
57
60
 
61
+ // Recipe widgets (smrt-reports' saved reports) load their component lazily:
62
+ // resolve the ones on the page so the grid can draw them.
63
+ let components = $state<WidgetComponents | undefined>();
64
+ $effect(() => {
65
+ const types = controller.document.widgets.map((widget) => widget.type);
66
+ let active = true;
67
+ void resolveWidgetComponents(types, overviewRegistry).then((resolved) => {
68
+ if (active) components = resolved;
69
+ });
70
+ return () => {
71
+ active = false;
72
+ };
73
+ });
74
+
58
75
  function reloadAll() {
59
76
  for (const widget of controller.document.widgets)
60
77
  controller.reload(widget.id);
@@ -82,7 +99,11 @@ onDestroy(() => controller.destroy());
82
99
  <span class="section-heading">{title}</span>
83
100
  {/snippet}
84
101
 
85
- <OverviewGrid {controller} {models} {label} {presentation} {heading} />
102
+ <!-- Drawn once its widgets' components resolve, so a recipe widget never
103
+ flashes "not available" while its module loads. -->
104
+ {#if components}
105
+ <OverviewGrid {controller} {models} {label} {presentation} {heading} {components} />
106
+ {/if}
86
107
 
87
108
  <style>
88
109
  @layer smrt.reset, smrt.structure, smrt.theme;
@@ -1 +1 @@
1
- {"version":3,"file":"SectionOverview.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/components/SectionOverview.svelte.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,KAAK,kBAAkB,EAEvB,KAAK,mBAAmB,EAEzB,MAAM,qCAAqC,CAAC;AAO7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAG3D,UAAU,oBAAoB;IAC5B,UAAU,EAAE,kBAAkB,CAAC;IAC/B,2EAA2E;IAC3E,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC3C,mDAAmD;IACnD,MAAM,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACvC,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC,0EAA0E;IAC1E,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CACjC;AAyED,QAAA,MAAM,eAAe,0DAAwC,CAAC;AAC9D,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"SectionOverview.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/components/SectionOverview.svelte.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,KAAK,kBAAkB,EAEvB,KAAK,mBAAmB,EAIzB,MAAM,qCAAqC,CAAC;AAQ7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAG3D,UAAU,oBAAoB;IAC5B,UAAU,EAAE,kBAAkB,CAAC;IAC/B,2EAA2E;IAC3E,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC3C,mDAAmD;IACnD,MAAM,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACvC,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC,0EAA0E;IAC1E,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CACjC;AA2FD,QAAA,MAAM,eAAe,0DAAwC,CAAC;AAC9D,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/lib/core/prompt.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAElE,4CAA4C;AAC5C,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,OAAO,EAAE,MA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+EAA+E;IAC/E,QAAQ,EAAE,QAAQ,EAAE,CAAC;CACtB;AA4ED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,eAAe,GAAG,UAAU,CA0ClE"}
@@ -2,6 +2,7 @@ import { buildMatchIndex, matchText, } from "../assistant/match.js";
2
2
  import { buildSystemPrompt } from "../assistant/prompt.js";
3
3
  import { HOST_HISTORY_CHARS, HOST_HISTORY_TURNS, HOST_MESSAGE_CHARS, } from "../inference/host.js";
4
4
  import { commandTools } from "../planner/commands/schemas.js";
5
+ import { plannerReportSources, REPORTS_RECIPE } from "../reports/sources.js";
5
6
  import { defaultCatalog } from "./catalog.js";
6
7
  const indexes = new WeakMap();
7
8
  function indexOf(catalog) {
@@ -89,7 +90,12 @@ export function buildHostPrompt(input) {
89
90
  paymentTerms: snapshot.settings.paymentTerms,
90
91
  pricesIncludeTax: snapshot.settings.pricesIncludeTax,
91
92
  taxRounding: snapshot.settings.taxRounding,
92
- }, matchText(indexOf(catalog), message), { current: themeOf(snapshot) }),
93
+ }, matchText(indexOf(catalog), message), { current: themeOf(snapshot) }, [],
94
+ // The report sources the plan offers (its menu models), so a report
95
+ // request names one the planner can build.
96
+ catalog.recipes.some((recipe) => recipe.id === REPORTS_RECIPE)
97
+ ? plannerReportSources(snapshot.recipes.map((recipe) => recipe.id), catalog.recipes).map(({ id, label }) => ({ id, label }))
98
+ : []),
93
99
  ...commandSection(snapshot),
94
100
  ].join('\n');
95
101
  const history = (input.history ?? [])
@@ -1,3 +1,4 @@
1
+ import { type ReportIntent } from '../reports/intent.ts';
1
2
  import { type PromptCatalog } from './catalog.ts';
2
3
  /**
3
4
  * The body a host answers the planner with (wire version 1, see
@@ -35,6 +36,11 @@ export interface HostReply {
35
36
  name: string;
36
37
  input: unknown;
37
38
  }[];
39
+ /**
40
+ * A runtime report to build (`source` a report source id from the prompt):
41
+ * the planner builds, previews and, on the visitor's approval, saves it.
42
+ */
43
+ report?: ReportIntent;
38
44
  }
39
45
  /**
40
46
  * The JSON Schema of one model turn in host mode: `reply`, `add`, `remove`,
@@ -1 +1 @@
1
- {"version":3,"file":"reply.d.ts","sourceRoot":"","sources":["../../src/lib/core/reply.ts"],"names":[],"mappings":"AAaA,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAElE;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,gCAAgC;IAChC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,QAAQ,CAAC,EAAE;QACT,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;KACnC,CAAC;IACF,+FAA+F;IAC/F,KAAK,CAAC,EAAE;QACN,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,6DAA6D;IAC7D,QAAQ,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;CAC/C;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,GAAE,aAA8B,GACtC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAqBzB;AAED,sDAAsD;AACtD,eAAO,MAAM,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AAM,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,6DAA6D;IAC7D,QAAQ,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;IAC9C;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,GAAE,aAA8B,GACtC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA0BzB;AAED,sDAAsD;AACtD,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAsB,CAAC;AAEvE,MAAM,WAAW,eAAe;IAC9B,gGAAgG;IAChG,EAAE,EAAE,OAAO,CAAC;IACZ,6DAA6D;IAC7D,KAAK,EAAE,SAAS,CAAC;IACjB,sFAAsF;IACtF,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAiBD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,aAA8B,GACtC,eAAe,CA4CjB"}
@@ -1,5 +1,7 @@
1
1
  import { buildResponseSchema, FALLBACK_REPLY, MAX_COMMANDS, parseChange, stripThinking, } from "../assistant/change.js";
2
2
  import { checkSchema, commandSchemas, commandTools, } from "../planner/commands/schemas.js";
3
+ import { reportIntentSchema } from "../reports/intent.js";
4
+ import { REPORTS_RECIPE } from "../reports/sources.js";
3
5
  import { defaultCatalog } from "./catalog.js";
4
6
  /**
5
7
  * The JSON Schema of one model turn in host mode: `reply`, `add`, `remove`,
@@ -23,6 +25,9 @@ export function buildReplySchema(catalog = defaultCatalog) {
23
25
  additionalProperties: false,
24
26
  },
25
27
  };
28
+ if (catalog.recipes.some((recipe) => recipe.id === REPORTS_RECIPE)) {
29
+ schema.properties.report = reportIntentSchema([]);
30
+ }
26
31
  return schema;
27
32
  }
28
33
  /** The reply schema for the planner's own library. */
@@ -37,6 +42,7 @@ function toHostReply(change) {
37
42
  ...(nonEmpty(change.settings) ? { settings: change.settings } : {}),
38
43
  ...(nonEmpty(change.theme) ? { theme: change.theme } : {}),
39
44
  ...(change.commands?.length ? { commands: change.commands } : {}),
45
+ ...(change.report ? { report: change.report } : {}),
40
46
  };
41
47
  }
42
48
  /**
@@ -51,6 +57,7 @@ export function parseHostReply(text, catalog = defaultCatalog) {
51
57
  const issues = [];
52
58
  const change = parseChange(text, catalog.recipes, catalog.cookbooks, {
53
59
  commands: true,
60
+ reports: catalog.recipes.some((recipe) => recipe.id === REPORTS_RECIPE),
54
61
  });
55
62
  let ok = true;
56
63
  try {
@@ -66,6 +73,10 @@ export function parseHostReply(text, catalog = defaultCatalog) {
66
73
  change.reply = FALLBACK_REPLY;
67
74
  issues.push('the reply had no "reply" sentence');
68
75
  }
76
+ if (change.report?.unreadable?.length) {
77
+ // Passed on in `report.unreadable` so the planner asks about them.
78
+ issues.push(`report parts it could not read: ${change.report.unreadable.join(', ')}`);
79
+ }
69
80
  if (change.commands) {
70
81
  const valid = [];
71
82
  for (const call of change.commands) {
@@ -1 +1 @@
1
- {"version":3,"file":"planner-source.d.ts","sourceRoot":"","sources":["../../src/lib/data/planner-source.ts"],"names":[],"mappings":"AAiBA,OAAO,EAA0B,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AA+BtE;;;;GAIG;AACH,wBAAgB,uBAAuB,IAAI,UAAU,CA0GpD"}
1
+ {"version":3,"file":"planner-source.d.ts","sourceRoot":"","sources":["../../src/lib/data/planner-source.ts"],"names":[],"mappings":"AAkBA,OAAO,EAA0B,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AA+BtE;;;;GAIG;AACH,wBAAgB,uBAAuB,IAAI,UAAU,CA4GpD"}
@@ -8,6 +8,7 @@ import { ASSET, PRODUCT_ASSET } from "../products/media.js";
8
8
  import { recipes } from "../recipes/index.js";
9
9
  import { childLinks } from "../recipes/plumbing.js";
10
10
  import { recipeState } from "../recipes/state.svelte.js";
11
+ import { RUNTIME_REPORT_MODEL } from "../reports/sources.js";
11
12
  import { DEFAULT_SAMPLE_TAX_RATE, fakeId } from "./fakes.js";
12
13
  import { defaultTaxCode, sampleTaxCodes, sampleTaxComponents, } from "./money.js";
13
14
  import { getSamplePricing, getSampleTaxRate } from "./packs.js";
@@ -58,7 +59,9 @@ export function createPlannerDataSource() {
58
59
  // and stock are sampled together (one SKU per product).
59
60
  // A document's tax snapshot is kept on its lines (`taxComponentsJson`),
60
61
  // so `DocumentTax` holds no rows of its own.
61
- empty: [VARIANT, PROFILE_TYPE, DOCUMENT_TAX],
62
+ // Saved reports exist only once a person approves one (#4100): random
63
+ // rows would carry specs no runner can read.
64
+ empty: [VARIANT, PROFILE_TYPE, DOCUMENT_TAX, RUNTIME_REPORT_MODEL],
62
65
  samples: {
63
66
  // The tax codes sample documents resolve against: the seeded ones,
64
67
  // the app default and smrt-commerce's example pack (`data/money.ts`).
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../src/lib/overviews/definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAIL,KAAK,kBAAkB,EAKxB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAE/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAsExD;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,MAAM,GAChB,kBAAkB,GAAG,SAAS,CAahC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAE7E;AAkBD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,EAAE,EAAE,MAAM,GACT;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,GAAG,SAAS,CA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AE,MAAM,EACV,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,GACzB,kBAAkB,GAAG,SAAS,CAmBhC;AAED,6EAA6E;AAC7E,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS,CAE7E;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAUtE"}
@@ -8,7 +8,7 @@
8
8
  * on), so a saved override always resolves against the same defaults: the
9
9
  * cookbook loader, the import and the page agree on what is canonical.
10
10
  */
11
- import { defineOverview, OVERVIEW_DEFAULT_MAX_WIDGETS, OVERVIEW_PAGE_ID_PATTERN, RECORD_OVERVIEW_MAX_METRICS, recordOverview, recordOverviewId, } from '@happyvertical/smrt-svelte/overview';
11
+ import { defineOverview, OVERVIEW_DEFAULT_MAX_WIDGETS, OVERVIEW_PAGE_ID_PATTERN, RECORD_OVERVIEW_MAX_METRICS, recordOverview, recordOverviewId, sectionDefaultWidget, } from '@happyvertical/smrt-svelte/overview';
12
12
  import { catalog, getModel } from "../catalog/index.js";
13
13
  import { humanize, pluralize } from "../data/format.js";
14
14
  import { FEATURE_SECTION } from "../recipes/features.js";
@@ -40,6 +40,11 @@ function leadModel(sectionId) {
40
40
  return undefined;
41
41
  }
42
42
  function defaults(sectionId) {
43
+ // A recipe that declares its own section page (smrt-reports' saved reports)
44
+ // replaces the generic shortcuts, count and records.
45
+ const page = sectionDefaultWidget(NAV_SECTIONS.get(sectionId)?.recipes[0]);
46
+ if (page && RECIPE_WIDGET_TYPES.includes(page.type))
47
+ return [page];
43
48
  const widgets = [
44
49
  { id: 'shortcuts', type: 'shortcuts', span: 4, options: {} },
45
50
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/lib/overviews/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EACL,KAAK,uB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CAAC,EAChC,GAAG,EAAE,iBAAiB,GACrB,OAAO,CAAC,oBAAoB,CAAC,CAiE/B;AAkED;;;;;;;;;;;;;;;;;;GAkBG;AACH,iBAAe,SAAS,CACtB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,GAAG,EAAE,iBAAiB,GACrB,OAAO,CAAC,eAAe,CAAC,CAgI1B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,EAAE,uBAoBhC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;CAO1B,CAAC;AAkFF,uDAAuD;AACvD,eAAO,MAAM,iBAAiB,8DAMpB,CAAC;AAiBX,eAAO,MAAM,mBAAmB,EAAE,oBAQjC,CAAC;AAEF,0DAA0D;AAC1D,eAAO,MAAM,aAAa,EAAE,SAAS,kBAAkB,EAInB,CAAC;AAErC;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAKhD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,iFAIzB,CAAC"}
@@ -573,12 +573,16 @@ export const CORE_WIDGET_TYPES = [
573
573
  ];
574
574
  /**
575
575
  * How a recipe widget's `'<specifier>#<Export>'` becomes a module: a static map
576
- * of dynamic imports, one entry per package that ships widgets. The only
577
- * published widget surface (smrt-reports' `runtime-report-chart`) needs a
578
- * server, so the map is empty and every lookup is `undefined` (the widget then
579
- * renders as unavailable).
576
+ * of dynamic imports, one entry per package that ships widgets. smrt-reports'
577
+ * `saved-reports` (the Reports section page) resolves to the planner's
578
+ * wrapper over the sample data; its `runtime-report-chart` needs a server, so
579
+ * that export is missing and the widget renders as unavailable.
580
580
  */
581
- const RECIPE_WIDGET_MODULES = {};
581
+ const RECIPE_WIDGET_MODULES = {
582
+ '@happyvertical/smrt-reports/svelte': async () => ({
583
+ SavedReportsWidget: (await import('../components/PlannerSavedReportsWidget.svelte')).default,
584
+ }),
585
+ };
582
586
  export const resolveRecipeExport = async (specifier, exportName) => {
583
587
  const load = RECIPE_WIDGET_MODULES[specifier];
584
588
  if (!load)
@@ -19,6 +19,7 @@ import BrowserAssistant from '../components/BrowserAssistant.svelte';
19
19
  import HeaderIconLink from '../components/HeaderIconLink.svelte';
20
20
  import ModelWorkspace from '../components/ModelWorkspace.svelte';
21
21
  import PackagePage from '../components/PackagePage.svelte';
22
+ import PlannerReports from '../components/PlannerReports.svelte';
22
23
  import RecordView from '../components/RecordView.svelte';
23
24
  import SectionHeading from '../components/SectionHeading.svelte';
24
25
  import ThemeBridge from '../components/ThemeBridge.svelte';
@@ -40,6 +41,7 @@ import {
40
41
  import { menuEntryWords, pageScope, scopePreset } from '../recipes/scope.js';
41
42
  import { navItemId } from '../recipes/sections.js';
42
43
  import { recipeState } from '../recipes/state.svelte.js';
44
+ import { RUNTIME_REPORT_MODEL } from '../reports/sources.js';
43
45
  import { entryIndex } from '../sections/entries.js';
44
46
  import { sectionInfo, sectionTitle } from '../sections/info.js';
45
47
  import { sectionIdFromSlug } from '../sections/path.js';
@@ -282,9 +284,20 @@ onMount(() => {
282
284
  // The controller's `focus` (the assistant's "take me to it") opens a
283
285
  // section through this, as the static layout's does with its router.
284
286
  const previousOpen = plannerRuntime.openSection;
287
+ const previousOpenPath = plannerRuntime.openPath;
285
288
  plannerRuntime.openSection = (id) => {
286
289
  location.hash = `#${shell.sectionPath(id)}`;
287
290
  };
291
+ plannerRuntime.openPath = (path) => {
292
+ const hash = `#${path}`;
293
+ // The same fragment does not navigate: nothing to wait for.
294
+ if (location.hash === hash) return Promise.resolve();
295
+ const changed = new Promise<void>((resolve) => {
296
+ window.addEventListener('hashchange', () => resolve(), { once: true });
297
+ });
298
+ location.hash = hash;
299
+ return changed;
300
+ };
288
301
  const previous = cookbookView.navigator;
289
302
  cookbookView.navigator = {
290
303
  open(id) {
@@ -301,6 +314,7 @@ onMount(() => {
301
314
  return () => {
302
315
  cookbookView.navigator = previous;
303
316
  plannerRuntime.openSection = previousOpen;
317
+ plannerRuntime.openPath = previousOpenPath;
304
318
  };
305
319
  });
306
320
  const exporting = $derived(configuring && plannerTab.active === 'export');
@@ -450,6 +464,9 @@ const dockToggles = $derived(
450
464
  <AdvancedStyles backHref="#/configure/" />
451
465
  {:else if pathParts[0] === 'ai'}
452
466
  <AiModelsPage backHref="#/configure/" />
467
+ {:else if model?.id === RUNTIME_REPORT_MODEL}
468
+ <!-- Saved reports: smrt-reports' screens over the plan's sample data. -->
469
+ <PlannerReports recordId={modelRoute?.recordId} />
453
470
  {:else if applied && model && modelRoute?.recordId}
454
471
  {#key `${model.id}:${modelRoute.recordId}`}
455
472
  <RecordView
@@ -1 +1 @@
1
- {"version":3,"file":"Planner.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/planner/Planner.svelte.ts"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAwZ/C,QAAA,MAAM,OAAO,kDAAwC,CAAC;AACtD,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAC1C,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Planner.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/planner/Planner.svelte.ts"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAya/C,QAAA,MAAM,OAAO,kDAAwC,CAAC;AACtD,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAC1C,eAAe,OAAO,CAAC"}
@@ -7,6 +7,12 @@ export declare const plannerRuntime: {
7
7
  onReplaced?: () => void;
8
8
  /** Open a menu section's page (`focus` with a `section`). */
9
9
  openSection?: (sectionId: string) => void;
10
+ /**
11
+ * Open an in-app path (`/m/...`), e.g. a report the person just saved.
12
+ * Resolves once the navigation has finished (the router's own focus reset
13
+ * included), so a caller can move focus onto the opened page afterwards.
14
+ */
15
+ openPath?: (path: string) => void | Promise<void>;
10
16
  };
11
17
  /**
12
18
  * The app's one planner controller: the assistant, the palette, a host page
@@ -1 +1 @@
1
- {"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../src/lib/planner/instance.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE;IAC3B,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAEP;;;GAGG;AACH,eAAO,MAAM,iBAAiB,yIAS5B,CAAC"}
1
+ {"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../src/lib/planner/instance.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE;IAC3B,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9C,CAAC;AAEP;;;GAGG;AACH,eAAO,MAAM,iBAAiB,yIAS5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"shell.d.ts","sourceRoot":"","sources":["../../src/lib/planner/shell.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EACV,SAAS,EACT,kBAAkB,EACnB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAE1E,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,4BAA4B,EAAE,kBAI1C,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,GACb,UAAU,CAQZ;AAED,KAAK,SAAS,GAAG,WAAW,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAUnB,CAAC;AAEf,gDAAgD;AAChD,wBAAgB,iBAAiB;;;;;;;;;;;;EAShC"}
1
+ {"version":3,"file":"shell.d.ts","sourceRoot":"","sources":["../../src/lib/planner/shell.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EACV,SAAS,EACT,kBAAkB,EACnB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAE1E,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,4BAA4B,EAAE,kBAM1C,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,GACb,UAAU,CAQZ;AAED,KAAK,SAAS,GAAG,WAAW,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAUnB,CAAC;AAEf,gDAAgD;AAChD,wBAAgB,iBAAiB;;;;;;;;;;;;EAShC"}
@@ -8,7 +8,9 @@ export const PLANNER_SHELL_EDGE_TOGGLES = {
8
8
  /** Panel defaults shared by Planner's static shell and embedding hosts. */
9
9
  export const PLANNER_SHELL_PANEL_DEFAULTS = {
10
10
  left: { initial: 'expanded' },
11
- right: { initial: 'collapsed', rail: false, presentation: 'overlay' },
11
+ // The dock follows the shell default: beside the page from xl, a
12
+ // slide-over below it (smrt-svelte's `overlayMedia`).
13
+ right: { initial: 'collapsed', rail: false },
12
14
  bottom: { initial: 'hidden' },
13
15
  };
14
16
  /**