@happyvertical/smrt-planner 0.57.3 → 0.57.5

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 (537) hide show
  1. package/agents/assistant.md +8 -1
  2. package/agents/cookbook.md +8 -2
  3. package/app/404.html +21 -21
  4. package/app/_app/immutable/assets/2.CdEXvRg0.css +1 -0
  5. package/app/_app/immutable/assets/{feedback.DePeap37.css → feedback.qFktqYFY.css} +1 -1
  6. package/app/_app/immutable/chunks/{DveAWx7t.js → 5ukUzDcw.js} +1 -1
  7. package/app/_app/immutable/chunks/{DR_9YSDq.js → BDbFl7UA.js} +1 -1
  8. package/app/_app/immutable/chunks/{rkUL-DlL.js → BG9Gz_25.js} +25 -25
  9. package/app/_app/immutable/chunks/{BfPYbnRI.js → Bal1oPZu.js} +1 -1
  10. package/app/_app/immutable/chunks/BhU_yBI_.js +1 -0
  11. package/app/_app/immutable/chunks/{CZwkvsZI.js → BiEOJeYb.js} +1 -1
  12. package/app/_app/immutable/chunks/{DsY7g8iJ.js → Bsn3IIve.js} +3 -3
  13. package/app/_app/immutable/chunks/{PJY04JNF.js → BybfWt-B.js} +1 -1
  14. package/app/_app/immutable/chunks/{CF503c7E.js → C1VofLtR.js} +1 -1
  15. package/app/_app/immutable/chunks/{2l76O8yg.js → C3sRGrYK.js} +1 -1
  16. package/app/_app/immutable/chunks/{Bz0ybtg3.js → CTlMHIE6.js} +1 -1
  17. package/app/_app/immutable/chunks/C_3CJO_1.js +1 -0
  18. package/app/_app/immutable/chunks/Cga8zF3r.js +1 -0
  19. package/app/_app/immutable/chunks/Cr4byQts.js +24 -0
  20. package/app/_app/immutable/chunks/{U6_OBRq_.js → CtjBwCj8.js} +1 -1
  21. package/app/_app/immutable/chunks/CyUSxz1P.js +4 -0
  22. package/app/_app/immutable/chunks/{BAeyjCL_.js → DTWraE40.js} +1 -1
  23. package/app/_app/immutable/chunks/{Cfd9dmBM.js → DjJovMrk.js} +1 -1
  24. package/app/_app/immutable/chunks/{BJKoxDbG.js → DuZeZzOA.js} +1 -1
  25. package/app/_app/immutable/chunks/{C-DLpfU4.js → J9kOiFLO.js} +1 -1
  26. package/app/_app/immutable/chunks/NppCG--v.js +1 -0
  27. package/app/_app/immutable/chunks/{EZsakmZX.js → O8DAZ_le.js} +1 -1
  28. package/app/_app/immutable/chunks/{Dq8aYheE.js → YGONf0jr.js} +1 -1
  29. package/app/_app/immutable/chunks/d_dqmeIr.js +1 -0
  30. package/app/_app/immutable/chunks/{Bb0f-PWY.js → gCpxN2IC.js} +1 -1
  31. package/app/_app/immutable/chunks/nphy1MQF.js +1 -0
  32. package/app/_app/immutable/entry/{app.BOdcGXnx.js → app.B4gMiHwR.js} +2 -2
  33. package/app/_app/immutable/entry/start.BXkBl20Z.js +1 -0
  34. package/app/_app/immutable/nodes/0.2MYMg80l.js +9 -0
  35. package/app/_app/immutable/nodes/{1.CULLAAlp.js → 1.DKP901Gn.js} +1 -1
  36. package/app/_app/immutable/nodes/{10.D3aS_KZl.js → 10.DNN0cVai.js} +1 -1
  37. package/app/_app/immutable/nodes/{11.C92xaiTE.js → 11.DgbmegX3.js} +1 -1
  38. package/app/_app/immutable/nodes/{12.D1Lzt56L.js → 12.D5MtnJoE.js} +1 -1
  39. package/app/_app/immutable/nodes/{13.Bx4rov-F.js → 13._rY66Xa_.js} +1 -1
  40. package/app/_app/immutable/nodes/{14.CEBy0En2.js → 14.B6TD25VU.js} +1 -1
  41. package/app/_app/immutable/nodes/2.x9WyxQ1S.js +24 -0
  42. package/app/_app/immutable/nodes/{3.C8f09BsJ.js → 3.V5uGCpGb.js} +1 -1
  43. package/app/_app/immutable/nodes/{4.Z1MwZ_rU.js → 4.CCwzLrgu.js} +1 -1
  44. package/app/_app/immutable/nodes/{5.BnknP-NB.js → 5.CgHzwpns.js} +1 -1
  45. package/app/_app/immutable/nodes/{6.B0InO4bR.js → 6.CvQHLh_u.js} +1 -1
  46. package/app/_app/immutable/nodes/{7.CLnj1BGB.js → 7.7EIrly34.js} +1 -1
  47. package/app/_app/immutable/nodes/{8.BmZYIUmz.js → 8.DyyRBuTw.js} +1 -1
  48. package/app/_app/immutable/nodes/{9.BKWSHjz-.js → 9.DcURs0gN.js} +1 -1
  49. package/app/_app/version.json +1 -1
  50. package/app/advanced-styles/index.html +24 -24
  51. package/app/ai/index.html +28 -33
  52. package/app/blueprint/index.html +22 -22
  53. package/app/cookbook/index.html +22 -22
  54. package/app/index.html +38 -38
  55. package/app/m/ads/AdDeliveryTier/index.html +25 -25
  56. package/app/m/ads/AdEvent/index.html +25 -25
  57. package/app/m/ads/AdFormat/index.html +25 -25
  58. package/app/m/ads/AdGroup/index.html +25 -25
  59. package/app/m/ads/AdVariation/index.html +25 -25
  60. package/app/m/analytics/AnalyticsDataStream/index.html +25 -25
  61. package/app/m/analytics/AnalyticsEvent/index.html +25 -25
  62. package/app/m/analytics/AnalyticsProperty/index.html +25 -25
  63. package/app/m/analytics/AnalyticsReport/index.html +25 -25
  64. package/app/m/approvals/ApprovalEvent/index.html +25 -25
  65. package/app/m/approvals/ApprovalPolicy/index.html +25 -25
  66. package/app/m/approvals/ApprovalRequest/index.html +25 -25
  67. package/app/m/assets/Asset/attachments/index.html +26 -26
  68. package/app/m/assets/Asset/index.html +25 -25
  69. package/app/m/assets/AssetAssociation/index.html +25 -25
  70. package/app/m/assets/AssetMetafield/index.html +25 -25
  71. package/app/m/assets/AssetStatus/index.html +25 -25
  72. package/app/m/assets/AssetType/index.html +25 -25
  73. package/app/m/assets/Folder/index.html +25 -25
  74. package/app/m/chat/AgentSession/index.html +25 -25
  75. package/app/m/chat/ChatMessage/index.html +25 -25
  76. package/app/m/chat/ChatParticipant/index.html +25 -25
  77. package/app/m/chat/ChatReaction/index.html +25 -25
  78. package/app/m/chat/ChatRoom/index.html +25 -25
  79. package/app/m/chat/ChatThread/index.html +25 -25
  80. package/app/m/chat/VoiceGatewayTurn/index.html +25 -25
  81. package/app/m/chat/VoiceSession/index.html +25 -25
  82. package/app/m/commerce/Agreement/index.html +25 -25
  83. package/app/m/commerce/Cart/index.html +25 -25
  84. package/app/m/commerce/Contract/index.html +25 -25
  85. package/app/m/commerce/ContractLineItem/index.html +26 -26
  86. package/app/m/commerce/Customer/index.html +25 -25
  87. package/app/m/commerce/DocumentTax/index.html +25 -25
  88. package/app/m/commerce/Estimate/index.html +25 -25
  89. package/app/m/commerce/Fulfillment/index.html +25 -25
  90. package/app/m/commerce/FulfillmentLineItem/index.html +25 -25
  91. package/app/m/commerce/HistoricalCustomerFunds/index.html +89 -0
  92. package/app/m/commerce/HistoricalCustomerFundsAllocation/index.html +89 -0
  93. package/app/m/commerce/HistoricalSalesLine/index.html +89 -0
  94. package/app/m/commerce/Invoice/index.html +25 -25
  95. package/app/m/commerce/InvoiceLineItem/index.html +25 -25
  96. package/app/m/commerce/Lease/index.html +25 -25
  97. package/app/m/commerce/LicenseSale/index.html +25 -25
  98. package/app/m/commerce/Order/index.html +25 -25
  99. package/app/m/commerce/Payment/index.html +25 -25
  100. package/app/m/commerce/PaymentAllocation/index.html +25 -25
  101. package/app/m/commerce/PaymentInstrument/index.html +25 -25
  102. package/app/m/commerce/PaymentIntent/index.html +25 -25
  103. package/app/m/commerce/Payout/index.html +25 -25
  104. package/app/m/commerce/ProductionOrder/index.html +25 -25
  105. package/app/m/commerce/PurchaseContract/index.html +25 -25
  106. package/app/m/commerce/PurchaseOrder/index.html +25 -25
  107. package/app/m/commerce/SalesContract/index.html +25 -25
  108. package/app/m/commerce/SupplierQuote/index.html +25 -25
  109. package/app/m/commerce/TaxCode/index.html +25 -25
  110. package/app/m/commerce/TaxComponent/index.html +25 -25
  111. package/app/m/commerce/TaxSettings/index.html +25 -25
  112. package/app/m/commerce/TaxSummaryReport/index.html +25 -25
  113. package/app/m/commerce/Vendor/index.html +25 -25
  114. package/app/m/commerce/WholesaleOrder/index.html +25 -25
  115. package/app/m/content/Content/index.html +25 -25
  116. package/app/m/content/ContentContribution/index.html +25 -25
  117. package/app/m/content/ContentContributionAttachment/index.html +25 -25
  118. package/app/m/content/ContentContributionRevision/index.html +25 -25
  119. package/app/m/content/ContentContributionType/index.html +25 -25
  120. package/app/m/content/ContentContributor/index.html +25 -25
  121. package/app/m/content/ContentCorrection/index.html +25 -25
  122. package/app/m/content/ContentFeedSource/index.html +25 -25
  123. package/app/m/content/ContentGovernanceAssignment/index.html +25 -25
  124. package/app/m/content/ContentGovernancePolicy/index.html +25 -25
  125. package/app/m/content/ContentGovernanceProfile/index.html +25 -25
  126. package/app/m/content/ContentReference/index.html +25 -25
  127. package/app/m/content/ContentReview/index.html +25 -25
  128. package/app/m/content/ContentVersion/index.html +25 -25
  129. package/app/m/events/Event/index.html +25 -25
  130. package/app/m/events/EventParticipant/index.html +25 -25
  131. package/app/m/events/EventSeries/index.html +26 -26
  132. package/app/m/events/EventType/index.html +25 -25
  133. package/app/m/expenses/Expense/index.html +25 -25
  134. package/app/m/facts/Fact/index.html +25 -25
  135. package/app/m/facts/FactContent/index.html +25 -25
  136. package/app/m/facts/FactEvidence/index.html +25 -25
  137. package/app/m/facts/FactSource/index.html +25 -25
  138. package/app/m/facts/FactSubject/index.html +25 -25
  139. package/app/m/facts/FactTag/index.html +25 -25
  140. package/app/m/fields/FieldPolicy/index.html +25 -25
  141. package/app/m/fields/FieldPolicySuggestion/index.html +25 -25
  142. package/app/m/fields/FieldUsageCounter/index.html +25 -25
  143. package/app/m/images/Image/index.html +25 -25
  144. package/app/m/inventory/InventoryLocation/index.html +25 -25
  145. package/app/m/inventory/StockLevel/index.html +25 -25
  146. package/app/m/inventory/StockMovement/index.html +25 -25
  147. package/app/m/ledgers/Account/index.html +25 -25
  148. package/app/m/ledgers/Journal/index.html +25 -25
  149. package/app/m/ledgers/JournalEntry/index.html +25 -25
  150. package/app/m/ledgers/Ledger/index.html +25 -25
  151. package/app/m/manufacturing/Assembly/index.html +25 -25
  152. package/app/m/manufacturing/BillOfMaterials/index.html +25 -25
  153. package/app/m/manufacturing/BomLine/index.html +25 -25
  154. package/app/m/manufacturing/Operation/index.html +25 -25
  155. package/app/m/manufacturing/ProductionRun/index.html +25 -25
  156. package/app/m/manufacturing/ProductionRunCompletion/index.html +25 -25
  157. package/app/m/manufacturing/RoutingStep/index.html +25 -25
  158. package/app/m/marketing/Campaign/index.html +25 -25
  159. package/app/m/marketing/CampaignChannel/index.html +25 -25
  160. package/app/m/marketing/CampaignMetricSnapshot/index.html +25 -25
  161. package/app/m/messages/Account/index.html +25 -25
  162. package/app/m/messages/Attachment/index.html +25 -25
  163. package/app/m/messages/Blacklist/index.html +25 -25
  164. package/app/m/messages/Email/failed-sends/index.html +26 -26
  165. package/app/m/messages/Email/index.html +25 -25
  166. package/app/m/messages/Email/mailbox/index.html +26 -26
  167. package/app/m/messages/EmailAccount/index.html +25 -25
  168. package/app/m/messages/EmailAttachment/index.html +25 -25
  169. package/app/m/messages/EmailFolder/index.html +25 -25
  170. package/app/m/messages/Message/index.html +25 -25
  171. package/app/m/messages/MessagingEndpoint/index.html +25 -25
  172. package/app/m/messages/PersonaMessageRoute/index.html +25 -25
  173. package/app/m/messages/SlackAccount/index.html +25 -25
  174. package/app/m/messages/SlackMessage/index.html +25 -25
  175. package/app/m/messages/TelegramAccount/index.html +25 -25
  176. package/app/m/messages/Tweet/index.html +25 -25
  177. package/app/m/messages/TwitterAccount/index.html +25 -25
  178. package/app/m/messages/Whitelist/index.html +25 -25
  179. package/app/m/messages/ZulipAccount/index.html +25 -25
  180. package/app/m/places/Place/index.html +25 -25
  181. package/app/m/places/PlaceType/index.html +25 -25
  182. package/app/m/products/Category/index.html +25 -25
  183. package/app/m/products/Material/index.html +25 -25
  184. package/app/m/products/Product/index.html +25 -25
  185. package/app/m/products/Product/ingredients/index.html +26 -26
  186. package/app/m/products/ProductVariant/index.html +25 -25
  187. package/app/m/products/Sku/index.html +25 -25
  188. package/app/m/profiles/ApiKey/index.html +25 -25
  189. package/app/m/profiles/Bot/index.html +25 -25
  190. package/app/m/profiles/MagicLinkToken/index.html +25 -25
  191. package/app/m/profiles/NostrIdentity/index.html +25 -25
  192. package/app/m/profiles/OidcIdentity/index.html +25 -25
  193. package/app/m/profiles/Organization/index.html +25 -25
  194. package/app/m/profiles/Person/index.html +25 -25
  195. package/app/m/profiles/Profile/index.html +25 -25
  196. package/app/m/profiles/ProfileMetadata/index.html +25 -25
  197. package/app/m/profiles/ProfileMetafield/index.html +25 -25
  198. package/app/m/profiles/ProfileRelationship/index.html +25 -25
  199. package/app/m/profiles/ProfileRelationshipTerm/index.html +25 -25
  200. package/app/m/profiles/ProfileRelationshipType/index.html +25 -25
  201. package/app/m/profiles/ProfileType/index.html +25 -25
  202. package/app/m/projects/Comment/index.html +25 -25
  203. package/app/m/projects/Issue/index.html +25 -25
  204. package/app/m/projects/Label/index.html +25 -25
  205. package/app/m/projects/Project/index.html +25 -25
  206. package/app/m/projects/ProjectIntegration/index.html +25 -25
  207. package/app/m/projects/PullRequest/index.html +25 -25
  208. package/app/m/projects/Repository/index.html +25 -25
  209. package/app/m/properties/Property/index.html +25 -25
  210. package/app/m/properties/Zone/index.html +25 -25
  211. package/app/m/reports/RuntimeReport/index.html +25 -25
  212. package/app/m/reports/SmrtPrincipalReportRefreshTask/index.html +26 -26
  213. package/app/m/reports/SmrtReportLock/index.html +26 -26
  214. package/app/m/reports/SmrtReportRefreshTask/index.html +26 -26
  215. package/app/m/reports/SmrtReportRun/index.html +26 -26
  216. package/app/m/reports/SmrtReportSchedule/index.html +26 -26
  217. package/app/m/reports/SmrtReportWatermark/index.html +26 -26
  218. package/app/m/sales/Agreement/index.html +25 -25
  219. package/app/m/sales/AttributionException/index.html +25 -25
  220. package/app/m/sales/AttributionPolicy/index.html +25 -25
  221. package/app/m/sales/Commission/index.html +25 -25
  222. package/app/m/sales/CommissionAdjustment/index.html +25 -25
  223. package/app/m/sales/CommissionPayout/index.html +25 -25
  224. package/app/m/sales/CommissionPlan/index.html +25 -25
  225. package/app/m/sales/Earner/index.html +25 -25
  226. package/app/m/sales/EarnerSourceAttribution/index.html +25 -25
  227. package/app/m/sales/EarningEvent/index.html +25 -25
  228. package/app/m/sales/ExecutedAgreement/index.html +25 -25
  229. package/app/m/sales/Lead/index.html +25 -25
  230. package/app/m/sales/Opportunity/index.html +25 -25
  231. package/app/m/sales/OpportunityConversion/index.html +25 -25
  232. package/app/m/sales/PipelineDefinition/index.html +25 -25
  233. package/app/m/sales/PipelineStage/index.html +25 -25
  234. package/app/m/sales/Referral/index.html +25 -25
  235. package/app/m/sales/ReferralAgreement/index.html +25 -25
  236. package/app/m/sales/ReferralLink/index.html +25 -25
  237. package/app/m/sales/ReferralProgram/index.html +25 -25
  238. package/app/m/sales/ReferralTermSnapshot/index.html +25 -25
  239. package/app/m/sales/ReferralTouch/index.html +25 -25
  240. package/app/m/sales/Referrer/index.html +25 -25
  241. package/app/m/sales/SalesActivity/index.html +25 -25
  242. package/app/m/sales/SalesRepresentative/index.html +25 -25
  243. package/app/m/sites/Site/index.html +25 -25
  244. package/app/m/sites/SiteAgentBinding/index.html +25 -25
  245. package/app/m/social/OAuthState/index.html +25 -25
  246. package/app/m/social/SocialAccount/index.html +25 -25
  247. package/app/m/social/SocialPost/index.html +25 -25
  248. package/app/m/social/SocialPostAnalyticsSnapshot/index.html +25 -25
  249. package/app/m/subscriptions/BillingAdjustment/index.html +25 -25
  250. package/app/m/subscriptions/ClientCharge/index.html +25 -25
  251. package/app/m/subscriptions/CreditGrant/index.html +25 -25
  252. package/app/m/subscriptions/PricingRule/index.html +25 -25
  253. package/app/m/subscriptions/RetailCharge/index.html +25 -25
  254. package/app/m/subscriptions/SpendingPolicy/index.html +25 -25
  255. package/app/m/subscriptions/SubscriptionPlan/index.html +25 -25
  256. package/app/m/subscriptions/TenantSubscription/index.html +25 -25
  257. package/app/m/subscriptions/TenantUsageMetric/index.html +25 -25
  258. package/app/m/support/ServiceTimeEntry/index.html +25 -25
  259. package/app/m/support/SupportAiRun/index.html +25 -25
  260. package/app/m/support/SupportAvailability/index.html +25 -25
  261. package/app/m/support/SupportCase/index.html +25 -25
  262. package/app/m/support/SupportCaseEvent/index.html +25 -25
  263. package/app/m/support/SupportChannelBinding/index.html +25 -25
  264. package/app/m/support/SupportCharge/index.html +25 -25
  265. package/app/m/support/SupportCompensation/index.html +25 -25
  266. package/app/m/support/SupportCompensationPlan/index.html +25 -25
  267. package/app/m/support/SupportEscalation/index.html +25 -25
  268. package/app/m/support/SupportInteraction/index.html +25 -25
  269. package/app/m/support/SupportPlan/index.html +25 -25
  270. package/app/m/support/SupportPolicy/index.html +25 -25
  271. package/app/m/support/SupportQualification/index.html +25 -25
  272. package/app/m/support/SupportServiceTarget/index.html +25 -25
  273. package/app/m/support/SupportSpecialist/index.html +25 -25
  274. package/app/m/support/SupportWorkLink/index.html +25 -25
  275. package/app/m/tags/Tag/index.html +25 -25
  276. package/app/m/tags/TagAlias/index.html +25 -25
  277. package/app/m/timesheets/AttendanceBreak/index.html +25 -25
  278. package/app/m/timesheets/AttendancePunch/index.html +25 -25
  279. package/app/m/timesheets/AttendanceSegment/index.html +25 -25
  280. package/app/m/timesheets/ServiceChargeSnapshot/index.html +25 -25
  281. package/app/m/timesheets/ServiceCompensationSnapshot/index.html +25 -25
  282. package/app/m/timesheets/ServiceTimeEntry/index.html +25 -25
  283. package/app/m/users/Group/index.html +25 -25
  284. package/app/m/users/GroupMember/index.html +25 -25
  285. package/app/m/users/GroupRole/index.html +25 -25
  286. package/app/m/users/Membership/index.html +25 -25
  287. package/app/m/users/MembershipOverride/index.html +25 -25
  288. package/app/m/users/Permission/index.html +25 -25
  289. package/app/m/users/Role/index.html +25 -25
  290. package/app/m/users/RolePermission/index.html +25 -25
  291. package/app/m/users/Session/index.html +25 -25
  292. package/app/m/users/Tenant/index.html +25 -25
  293. package/app/m/users/TenantIntegration/index.html +25 -25
  294. package/app/m/users/TenantPermissionOverride/index.html +25 -25
  295. package/app/m/users/User/index.html +25 -25
  296. package/app/m/video/Character/index.html +25 -25
  297. package/app/m/video/CharacterAsset/index.html +25 -25
  298. package/app/m/video/CompositeJob/index.html +25 -25
  299. package/app/m/video/Performer/index.html +25 -25
  300. package/app/m/video/PerformerAsset/index.html +25 -25
  301. package/app/m/video/Scene/index.html +25 -25
  302. package/app/m/video/SceneAsset/index.html +25 -25
  303. package/app/m/video/VideoComposition/index.html +25 -25
  304. package/app/m/video/VideoCompositionAsset/index.html +25 -25
  305. package/app/m/video/VideoSequence/index.html +25 -25
  306. package/app/m/video/VideoSequenceAsset/index.html +25 -25
  307. package/app/m/video/VideoShot/index.html +25 -25
  308. package/app/m/video/VideoShotAsset/index.html +25 -25
  309. package/app/m/video/VideoShotCharacter/index.html +25 -25
  310. package/app/m/video/VideoWorkflow/index.html +25 -25
  311. package/app/m/voice/VoiceOutput/index.html +25 -25
  312. package/app/m/voice/VoiceProfile/index.html +25 -25
  313. package/app/m/voice/VoiceSample/index.html +25 -25
  314. package/app/mcp.html +2 -2
  315. package/app/packages/ads/index.html +24 -24
  316. package/app/packages/analytics/index.html +24 -24
  317. package/app/packages/approvals/index.html +24 -24
  318. package/app/packages/assets/index.html +24 -24
  319. package/app/packages/chat/index.html +24 -24
  320. package/app/packages/comments/index.html +24 -24
  321. package/app/packages/commerce/index.html +25 -25
  322. package/app/packages/content/index.html +24 -24
  323. package/app/packages/events/index.html +24 -24
  324. package/app/packages/expenses/index.html +25 -25
  325. package/app/packages/facts/index.html +24 -24
  326. package/app/packages/fields/index.html +24 -24
  327. package/app/packages/human-resources/index.html +24 -24
  328. package/app/packages/images/index.html +24 -24
  329. package/app/packages/index.html +24 -24
  330. package/app/packages/ingestion/index.html +24 -24
  331. package/app/packages/inventory/index.html +24 -24
  332. package/app/packages/ledgers/index.html +24 -24
  333. package/app/packages/manufacturing/index.html +24 -24
  334. package/app/packages/marketing/index.html +24 -24
  335. package/app/packages/messages/index.html +24 -24
  336. package/app/packages/places/index.html +24 -24
  337. package/app/packages/preferences/index.html +24 -24
  338. package/app/packages/products/index.html +24 -24
  339. package/app/packages/profiles/index.html +24 -24
  340. package/app/packages/projects/index.html +24 -24
  341. package/app/packages/properties/index.html +24 -24
  342. package/app/packages/reports/index.html +24 -24
  343. package/app/packages/sales/index.html +24 -24
  344. package/app/packages/sites/index.html +24 -24
  345. package/app/packages/social/index.html +24 -24
  346. package/app/packages/subscriptions/index.html +24 -24
  347. package/app/packages/support/index.html +24 -24
  348. package/app/packages/tags/index.html +24 -24
  349. package/app/packages/timesheets/index.html +24 -24
  350. package/app/packages/users/index.html +24 -24
  351. package/app/packages/video/index.html +24 -24
  352. package/app/packages/voice/index.html +24 -24
  353. package/app/packages/webhooks/index.html +24 -24
  354. package/app/recipes/account-access/help/index.html +24 -24
  355. package/app/recipes/account-access/index.html +26 -26
  356. package/app/recipes/activity/help/index.html +24 -24
  357. package/app/recipes/activity/index.html +26 -26
  358. package/app/recipes/agreements/help/index.html +26 -26
  359. package/app/recipes/agreements/index.html +27 -27
  360. package/app/recipes/analytics.reports/help/index.html +24 -24
  361. package/app/recipes/analytics.reports/index.html +26 -26
  362. package/app/recipes/assets/help/index.html +24 -24
  363. package/app/recipes/assets/index.html +27 -27
  364. package/app/recipes/billing/help/index.html +26 -26
  365. package/app/recipes/billing/index.html +26 -26
  366. package/app/recipes/chat.assistant/help/index.html +24 -24
  367. package/app/recipes/chat.assistant/index.html +26 -26
  368. package/app/recipes/comments/help/index.html +24 -24
  369. package/app/recipes/comments/index.html +26 -26
  370. package/app/recipes/commerce.customers/help/index.html +24 -24
  371. package/app/recipes/commerce.customers/index.html +26 -26
  372. package/app/recipes/commerce.estimates/help/index.html +26 -26
  373. package/app/recipes/commerce.estimates/index.html +26 -26
  374. package/app/recipes/commerce.purchases/help/index.html +26 -26
  375. package/app/recipes/commerce.purchases/index.html +26 -26
  376. package/app/recipes/commerce.sales/help/index.html +26 -26
  377. package/app/recipes/commerce.sales/index.html +26 -26
  378. package/app/recipes/commerce.vendors/help/index.html +24 -24
  379. package/app/recipes/commerce.vendors/index.html +26 -26
  380. package/app/recipes/commerce.wholesale/help/index.html +26 -26
  381. package/app/recipes/commerce.wholesale/index.html +26 -26
  382. package/app/recipes/events.calendar/help/index.html +24 -24
  383. package/app/recipes/events.calendar/index.html +26 -26
  384. package/app/recipes/expenses.tracking/help/index.html +26 -26
  385. package/app/recipes/expenses.tracking/index.html +26 -26
  386. package/app/recipes/fields.form-customization/help/index.html +24 -24
  387. package/app/recipes/fields.form-customization/index.html +26 -26
  388. package/app/recipes/ingestion/help/index.html +24 -24
  389. package/app/recipes/ingestion/index.html +26 -26
  390. package/app/recipes/integrations/help/index.html +24 -24
  391. package/app/recipes/integrations/index.html +26 -26
  392. package/app/recipes/inventory.stock/help/index.html +24 -24
  393. package/app/recipes/inventory.stock/index.html +26 -26
  394. package/app/recipes/ledgers.bookkeeping/help/index.html +24 -24
  395. package/app/recipes/ledgers.bookkeeping/index.html +26 -26
  396. package/app/recipes/messages/help/index.html +24 -24
  397. package/app/recipes/messages/index.html +26 -26
  398. package/app/recipes/products/help/index.html +24 -24
  399. package/app/recipes/products/index.html +26 -26
  400. package/app/recipes/projects.tracker/help/index.html +24 -24
  401. package/app/recipes/projects.tracker/index.html +27 -27
  402. package/app/recipes/reports.materialized/help/index.html +26 -26
  403. package/app/recipes/reports.materialized/index.html +29 -29
  404. package/app/recipes/reports.runtime/help/index.html +24 -24
  405. package/app/recipes/reports.runtime/index.html +27 -27
  406. package/app/recipes/sales.pipeline/help/index.html +24 -24
  407. package/app/recipes/sales.pipeline/index.html +26 -26
  408. package/app/recipes/tags.taxonomy/help/index.html +24 -24
  409. package/app/recipes/tags.taxonomy/index.html +26 -26
  410. package/app/recipes/team-collaboration/help/index.html +24 -24
  411. package/app/recipes/team-collaboration/index.html +26 -26
  412. package/app/recipes/timesheets.time-entries/help/index.html +24 -24
  413. package/app/recipes/timesheets.time-entries/index.html +26 -26
  414. package/app/s/custom-accounts/index.html +22 -22
  415. package/app/s/custom-appointments/index.html +22 -22
  416. package/app/s/custom-billing/index.html +22 -22
  417. package/app/s/custom-buying/index.html +22 -22
  418. package/app/s/custom-checkout/index.html +22 -22
  419. package/app/s/custom-classes/index.html +22 -22
  420. package/app/s/custom-clients/index.html +22 -22
  421. package/app/s/custom-events/index.html +22 -22
  422. package/app/s/custom-fleet/index.html +22 -22
  423. package/app/s/custom-giving/index.html +22 -22
  424. package/app/s/custom-jobs/index.html +22 -22
  425. package/app/s/custom-kitchen/index.html +22 -22
  426. package/app/s/custom-material/index.html +22 -22
  427. package/app/s/custom-meetings/index.html +22 -22
  428. package/app/s/custom-members/index.html +22 -22
  429. package/app/s/custom-paint/index.html +82 -0
  430. package/app/s/custom-parts/index.html +22 -22
  431. package/app/s/custom-rentals/index.html +22 -22
  432. package/app/s/custom-roastery/index.html +22 -22
  433. package/app/s/custom-schedule/index.html +22 -22
  434. package/app/s/custom-shelf/index.html +22 -22
  435. package/app/s/custom-shop/index.html +22 -22
  436. package/app/s/custom-wholesale/index.html +22 -22
  437. package/app/s/custom-work/index.html +22 -22
  438. package/app/s/custom-yard/index.html +22 -22
  439. package/app/s/section-access-control/index.html +22 -22
  440. package/app/s/section-account-security/index.html +22 -22
  441. package/app/s/section-accounting/index.html +22 -22
  442. package/app/s/section-activity/index.html +22 -22
  443. package/app/s/section-agreements/index.html +22 -22
  444. package/app/s/section-analytics/index.html +22 -22
  445. package/app/s/section-assets/index.html +22 -22
  446. package/app/s/section-billing/index.html +22 -22
  447. package/app/s/section-calendar/index.html +22 -22
  448. package/app/s/section-catalog/index.html +22 -22
  449. package/app/s/section-chat.assistant/index.html +22 -22
  450. package/app/s/section-comments/index.html +22 -22
  451. package/app/s/section-fields.form-customization/index.html +22 -22
  452. package/app/s/section-ingestion/index.html +22 -22
  453. package/app/s/section-integrations/index.html +22 -22
  454. package/app/s/section-messages/index.html +22 -22
  455. package/app/s/section-more/index.html +22 -22
  456. package/app/s/section-operations/index.html +22 -22
  457. package/app/s/section-projects/index.html +22 -22
  458. package/app/s/section-purchasing/index.html +22 -22
  459. package/app/s/section-reports.materialized/index.html +22 -22
  460. package/app/s/section-reports.runtime/index.html +22 -22
  461. package/app/s/section-sales/index.html +22 -22
  462. package/app/s/section-taxonomy/index.html +22 -22
  463. package/app/s/section-team/index.html +22 -22
  464. package/app/s/section-work/index.html +22 -22
  465. package/dist/ai/instance.d.ts.map +1 -1
  466. package/dist/ai/instance.js +9 -1
  467. package/dist/assistant/change.d.ts +13 -3
  468. package/dist/assistant/change.d.ts.map +1 -1
  469. package/dist/assistant/change.js +18 -3
  470. package/dist/assistant/prompt.d.ts +6 -1
  471. package/dist/assistant/prompt.d.ts.map +1 -1
  472. package/dist/assistant/prompt.js +13 -1
  473. package/dist/assistant/session.svelte.d.ts +5 -0
  474. package/dist/assistant/session.svelte.d.ts.map +1 -1
  475. package/dist/assistant/session.svelte.js +1 -0
  476. package/dist/assistant/transport.d.ts +24 -1
  477. package/dist/assistant/transport.d.ts.map +1 -1
  478. package/dist/assistant/transport.js +57 -8
  479. package/dist/catalog/catalog.json +1366 -51
  480. package/dist/components/BrowserAssistant.svelte +0 -2
  481. package/dist/components/BrowserAssistant.svelte.d.ts.map +1 -1
  482. package/dist/components/CookbooksPanel.svelte +101 -21
  483. package/dist/components/CookbooksPanel.svelte.d.ts.map +1 -1
  484. package/dist/data/format.d.ts.map +1 -1
  485. package/dist/data/format.js +3 -0
  486. package/dist/data/money.d.ts +1 -1
  487. package/dist/data/money.js +2 -2
  488. package/dist/data/packs.d.ts +0 -1
  489. package/dist/data/packs.d.ts.map +1 -1
  490. package/dist/data/packs.js +835 -1
  491. package/dist/library/apply.d.ts +7 -3
  492. package/dist/library/apply.d.ts.map +1 -1
  493. package/dist/library/apply.js +19 -6
  494. package/dist/library/document.d.ts +9 -0
  495. package/dist/library/document.d.ts.map +1 -1
  496. package/dist/library/document.js +29 -0
  497. package/dist/library/icons.d.ts.map +1 -1
  498. package/dist/library/icons.js +15 -0
  499. package/dist/library/index.d.ts +4 -1
  500. package/dist/library/index.d.ts.map +1 -1
  501. package/dist/library/index.js +9 -2
  502. package/dist/library/library.json +919 -14
  503. package/dist/library/state.svelte.d.ts +5 -1
  504. package/dist/library/state.svelte.d.ts.map +1 -1
  505. package/dist/library/state.svelte.js +12 -1
  506. package/dist/library/view.svelte.d.ts +41 -0
  507. package/dist/library/view.svelte.d.ts.map +1 -0
  508. package/dist/library/view.svelte.js +67 -0
  509. package/dist/planner/Planner.svelte +79 -2
  510. package/dist/planner/Planner.svelte.d.ts.map +1 -1
  511. package/dist/planner/PlannerControls.svelte +21 -2
  512. package/dist/planner/PlannerControls.svelte.d.ts.map +1 -1
  513. package/dist/planner/assistant.d.ts.map +1 -1
  514. package/dist/planner/assistant.js +9 -0
  515. package/dist/planner/commands/adapter.d.ts.map +1 -1
  516. package/dist/planner/commands/adapter.js +10 -3
  517. package/dist/planner/commands/controller.svelte.d.ts.map +1 -1
  518. package/dist/planner/commands/controller.svelte.js +2 -1
  519. package/dist/recipes/scope.d.ts +23 -0
  520. package/dist/recipes/scope.d.ts.map +1 -1
  521. package/dist/recipes/scope.js +20 -0
  522. package/dist/smrt-version.d.ts +1 -1
  523. package/dist/smrt-version.js +1 -1
  524. package/package.json +56 -56
  525. package/app/_app/immutable/assets/2.Djk1H2wk.css +0 -1
  526. package/app/_app/immutable/chunks/BV_A2GBw.js +0 -24
  527. package/app/_app/immutable/chunks/CbCYY1ps.js +0 -1
  528. package/app/_app/immutable/chunks/DD4mX3od.js +0 -1
  529. package/app/_app/immutable/chunks/DgkBKeKW.js +0 -4
  530. package/app/_app/immutable/chunks/DvUWb_GS.js +0 -1
  531. package/app/_app/immutable/chunks/M81UeXT1.js +0 -1
  532. package/app/_app/immutable/chunks/g7M7feZg.js +0 -1
  533. package/app/_app/immutable/chunks/r7IFcw-O.js +0 -1
  534. package/app/_app/immutable/entry/start.BixveMT0.js +0 -1
  535. package/app/_app/immutable/nodes/0._WFh95JB.js +0 -9
  536. package/app/_app/immutable/nodes/2.D3Lg90Nn.js +0 -24
  537. /package/app/_app/immutable/chunks/{DVQPWAnI.js → Bv5jGtB8.js} +0 -0
@@ -3,8 +3,12 @@ import type { Cookbook, CookbookResult } from '../cookbook/types.ts';
3
3
  import type { AppSettings } from '../settings/app-settings.ts';
4
4
  import type { LibraryCookbook } from './types.ts';
5
5
  export { isCookbookEmpty } from './document.ts';
6
- /** Applying replaces the current recipes and menu, so it asks first unless empty. */
7
- export declare function needsConfirm(store: Pick<CookbookStore, 'snapshot'>): boolean;
6
+ /**
7
+ * Applying replaces the current recipes and menu, so it asks first exactly
8
+ * when that would lose work: never for an empty app or one still as the last
9
+ * applied cookbook left it, always otherwise.
10
+ */
11
+ export declare function needsConfirm(store: Pick<CookbookStore, 'snapshot'>, applied?: string | null): boolean;
8
12
  /**
9
13
  * Replace the cookbook with the cookbook's: recipes, features, options,
10
14
  * exposure and layout. Goes through the same strict check an import does, and
@@ -12,7 +16,7 @@ export declare function needsConfirm(store: Pick<CookbookStore, 'snapshot'>): bo
12
16
  * cookbook's; rows already generated are regenerated by the caller resetting
13
17
  * the data source (records are not part of a cookbook).
14
18
  */
15
- export declare function applyLibraryCookbook(cookbook: LibraryCookbook, store: Pick<CookbookStore, 'replace'> & Partial<Pick<CookbookStore, 'theme'>>, settings?: AppSettings): CookbookResult;
19
+ export declare function applyLibraryCookbook(cookbook: LibraryCookbook, store: Pick<CookbookStore, 'replace' | 'snapshot'> & Partial<Pick<CookbookStore, 'theme'>>, settings?: AppSettings): CookbookResult;
16
20
  /** Does the current cookbook still hold everything the cookbook added? */
17
21
  export declare function holdsCookbook(cookbook: LibraryCookbook, current: Pick<Cookbook, 'recipes' | 'features'>): boolean;
18
22
  //# sourceMappingURL=apply.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../src/lib/library/apply.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,qFAAqF;AACrF,wBAAgB,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,GAAG,OAAO,CAE5E;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,eAAe,EACzB,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,EAC7E,QAAQ,CAAC,EAAE,WAAW,GACrB,cAAc,CAUhB;AAED,0EAA0E;AAC1E,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,UAAU,CAAC,GAC9C,OAAO,CAKT"}
1
+ {"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../src/lib/library/apply.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAO/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,EACtC,OAAO,GAAE,MAAM,GAAG,IAA+B,GAChD,OAAO,CAET;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,eAAe,EACzB,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,UAAU,CAAC,GAChD,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,EACvC,QAAQ,CAAC,EAAE,WAAW,GACrB,cAAc,CAkBhB;AAED,0EAA0E;AAC1E,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,UAAU,CAAC,GAC9C,OAAO,CAKT"}
@@ -1,10 +1,15 @@
1
1
  import { parseCookbook } from "../cookbook/validate.js";
2
2
  import { setSamplePack } from "../data/packs.js";
3
- import { isCookbookEmpty, resolveLibraryCookbook } from "./document.js";
3
+ import { resolveLibraryCookbook, workFingerprint, wouldLoseWork, } from "./document.js";
4
+ import { libraryState } from "./state.svelte.js";
4
5
  export { isCookbookEmpty } from "./document.js";
5
- /** Applying replaces the current recipes and menu, so it asks first unless empty. */
6
- export function needsConfirm(store) {
7
- return !isCookbookEmpty(store.snapshot());
6
+ /**
7
+ * Applying replaces the current recipes and menu, so it asks first exactly
8
+ * when that would lose work: never for an empty app or one still as the last
9
+ * applied cookbook left it, always otherwise.
10
+ */
11
+ export function needsConfirm(store, applied = libraryState.appliedWork) {
12
+ return wouldLoseWork(store.snapshot(), applied);
8
13
  }
9
14
  /**
10
15
  * Replace the cookbook with the cookbook's: recipes, features, options,
@@ -16,12 +21,20 @@ export function needsConfirm(store) {
16
21
  export function applyLibraryCookbook(cookbook, store, settings) {
17
22
  const result = resolveLibraryCookbook(cookbook, parseCookbook, settings);
18
23
  if (result.ok) {
19
- // A cookbook without a theme leaves the visitor's own look alone.
20
- const keep = result.cookbook.theme ? undefined : store.theme;
24
+ // A cookbook without a theme leaves the visitor's own look alone, and
25
+ // one that names no colour scheme keeps the visitor's light or dark.
26
+ const before = store.theme;
27
+ const theme = result.cookbook.theme;
28
+ const keep = theme
29
+ ? theme.colorScheme || !before?.colorScheme
30
+ ? undefined
31
+ : { ...theme, colorScheme: before.colorScheme }
32
+ : before;
21
33
  store.replace(result.cookbook);
22
34
  if (keep)
23
35
  store.theme = keep;
24
36
  setSamplePack(cookbook.id);
37
+ libraryState.select(cookbook.id, workFingerprint(store.snapshot()));
25
38
  }
26
39
  return result;
27
40
  }
@@ -3,6 +3,15 @@ import { type AppSettings } from '../settings/app-settings.ts';
3
3
  import type { LibraryCookbook } from './types.ts';
4
4
  /** Nothing built yet: no recipes, features, saved options, narrowing, layout or theme. */
5
5
  export declare function isCookbookEmpty(cookbook: Cookbook): boolean;
6
+ /** A stable fingerprint of the visitor's work, to tell an untouched cookbook from an edited one. */
7
+ export declare function workFingerprint(cookbook: Cookbook): string;
8
+ /**
9
+ * Would replacing this document lose anything? Not when nothing is built, and
10
+ * not when it is still exactly what the last applied library cookbook set up
11
+ * (`applied` is that document's `workFingerprint`): applying it again gets it
12
+ * back. Anything else (a hand-built app, or edits since applying) would be lost.
13
+ */
14
+ export declare function wouldLoseWork(cookbook: Cookbook, applied: string | null): boolean;
6
15
  /**
7
16
  * The document a library cookbook sets up, through the given strict check
8
17
  * (`parseCookbook` in the browser). `settings` are the visitor's edits of the
@@ -1 +1 @@
1
- {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../src/lib/library/document.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,KAAK,WAAW,EAAiB,MAAM,6BAA6B,CAAC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAQlD,0FAA0F;AAC1F,wBAAgB,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAS3D;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,eAAe,EACzB,KAAK,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,cAAc,EACzC,QAAQ,CAAC,EAAE,WAAW,GACrB,cAAc,CAMhB"}
1
+ {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../src/lib/library/document.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,KAAK,WAAW,EAAiB,MAAM,6BAA6B,CAAC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAQlD,0FAA0F;AAC1F,wBAAgB,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAS3D;AAeD,oGAAoG;AACpG,wBAAgB,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAE1D;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,MAAM,GAAG,IAAI,GACrB,OAAO,CAIT;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,eAAe,EACzB,KAAK,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,cAAc,EACzC,QAAQ,CAAC,EAAE,WAAW,GACrB,cAAc,CAMhB"}
@@ -14,6 +14,35 @@ export function isCookbookEmpty(cookbook) {
14
14
  cookbook.theme === undefined &&
15
15
  isShellLayoutEmpty(cookbook.layout));
16
16
  }
17
+ /**
18
+ * The visitor's work in a document: everything but their light or dark
19
+ * choice, which applying a cookbook keeps (so replacing loses nothing there).
20
+ */
21
+ function workOf(cookbook) {
22
+ if (!cookbook.theme?.colorScheme)
23
+ return cookbook;
24
+ const { colorScheme: _scheme, ...theme } = cookbook.theme;
25
+ return {
26
+ ...cookbook,
27
+ theme: Object.keys(theme).length ? theme : undefined,
28
+ };
29
+ }
30
+ /** A stable fingerprint of the visitor's work, to tell an untouched cookbook from an edited one. */
31
+ export function workFingerprint(cookbook) {
32
+ return JSON.stringify(workOf(cookbook));
33
+ }
34
+ /**
35
+ * Would replacing this document lose anything? Not when nothing is built, and
36
+ * not when it is still exactly what the last applied library cookbook set up
37
+ * (`applied` is that document's `workFingerprint`): applying it again gets it
38
+ * back. Anything else (a hand-built app, or edits since applying) would be lost.
39
+ */
40
+ export function wouldLoseWork(cookbook, applied) {
41
+ const work = workOf(cookbook);
42
+ if (isCookbookEmpty(work))
43
+ return false;
44
+ return applied === null || JSON.stringify(work) !== applied;
45
+ }
17
46
  /**
18
47
  * The document a library cookbook sets up, through the given strict check
19
48
  * (`parseCookbook` in the browser). `settings` are the visitor's edits of the
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/lib/library/icons.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAsD5D,CAAC"}
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/lib/library/icons.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAqE5D,CAAC"}
@@ -57,4 +57,19 @@ export const COOKBOOK_ICONS = {
57
57
  'M4 20h4l10.5-10.5a2.828 2.828 0 1 0-4-4l-10.5 10.5v4',
58
58
  'M13.5 6.5l4 4',
59
59
  ],
60
+ tool: [
61
+ 'M7 10h3v-3l-3.5-3.5a6 6 0 0 1 8 8l6 6a2 2 0 0 1-3 3l-6-6a6 6 0 0 1-8-8l3.5 3.5',
62
+ ],
63
+ bolt: ['M13 3v7h6l-8 11v-7H5l8-11'],
64
+ brush: [
65
+ 'M3 21v-4a4 4 0 1 1 4 4h-4',
66
+ 'M21 3a16 16 0 0 0-12.8 10.2',
67
+ 'M21 3a16 16 0 0 1-10.2 12.8',
68
+ 'M10.6 9a9 9 0 0 1 4.4 4.4',
69
+ ],
70
+ home: [
71
+ 'M5 12H3l9-9l9 9h-2',
72
+ 'M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-7',
73
+ 'M9 21v-6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v6',
74
+ ],
60
75
  };
@@ -1,7 +1,10 @@
1
1
  import type { LibraryCookbook } from './types.ts';
2
2
  export { COOKBOOK_ICONS } from './icons.ts';
3
3
  export type * from './types.ts';
4
- /** The curated cookbooks, in the order the tab shows them. */
4
+ /**
5
+ * The curated cookbooks, alphabetical by name: the order the Cookbooks tab,
6
+ * the assistant, the command catalog and the MCP widget all list them in.
7
+ */
5
8
  export declare const libraryCookbooks: readonly LibraryCookbook[];
6
9
  export declare function getLibraryCookbook(id: string): LibraryCookbook | undefined;
7
10
  /** Recipe labels for the preview's chips, in the cookbook's (sorted) order. */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/library/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAe,MAAM,YAAY,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,mBAAmB,YAAY,CAAC;AAEhC,8DAA8D;AAC9D,eAAO,MAAM,gBAAgB,EAAE,SAAS,eAAe,EAE5C,CAAC;AAEZ,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAE1E;AAED,+EAA+E;AAC/E,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,eAAe,GAAG,MAAM,EAAE,CAIvE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/library/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAe,MAAM,YAAY,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,mBAAmB,YAAY,CAAC;AAKhC;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAAS,eAAe,EAEP,CAAC;AAEjD,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAE1E;AAED,+EAA+E;AAC/E,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,eAAe,GAAG,MAAM,EAAE,CAIvE"}
@@ -1,8 +1,15 @@
1
1
  import { recipesById } from "../recipes/index.js";
2
2
  import raw from './library.json' with { type: 'json' };
3
3
  export { COOKBOOK_ICONS } from "./icons.js";
4
- /** The curated cookbooks, in the order the tab shows them. */
5
- export const libraryCookbooks = raw.cookbooks;
4
+ /** Cookbook names in alphabetical order, the same in every runtime. */
5
+ const byName = new Intl.Collator('en', { sensitivity: 'base', numeric: true });
6
+ /**
7
+ * The curated cookbooks, alphabetical by name: the order the Cookbooks tab,
8
+ * the assistant, the command catalog and the MCP widget all list them in.
9
+ */
10
+ export const libraryCookbooks = [
11
+ ...raw.cookbooks,
12
+ ].sort((a, b) => byName.compare(a.name, b.name));
6
13
  export function getLibraryCookbook(id) {
7
14
  return libraryCookbooks.find((cookbook) => cookbook.id === id);
8
15
  }