@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.
- package/agents/assistant.md +29 -2
- package/agents/shell.md +13 -0
- package/app/404.html +26 -29
- package/app/_app/immutable/assets/0.BaRFeYGU.css +1 -0
- package/app/_app/immutable/assets/AppShell.BkKNrxND.css +1 -0
- package/app/_app/immutable/assets/{ModelPage.FEM0ZnPM.css → ModelPage.SIoeO-AU.css} +1 -1
- package/app/_app/immutable/assets/app.BHwMQ9Zv.css +1 -0
- package/app/_app/immutable/assets/{forms.DXOeP4wZ.css → forms.BRdbPdvs.css} +1 -1
- package/app/_app/immutable/assets/icons.BDx21rPt.css +1 -0
- package/app/_app/immutable/assets/labels.Dxa6EyRI.css +1 -0
- package/app/_app/immutable/assets/planner.DOQVfcOi.css +1 -0
- package/app/_app/immutable/assets/state.C0UZEhxS.css +1 -0
- package/app/_app/immutable/chunks/{CoXf-L_3.js → B45qMR8U.js} +25 -25
- package/app/_app/immutable/chunks/{DypPefJO.js → BU0vd8nA.js} +1 -1
- package/app/_app/immutable/chunks/BWd9iJf7.js +1 -0
- package/app/_app/immutable/chunks/BeJxxDXZ.js +1 -0
- package/app/_app/immutable/chunks/BfeotTF9.js +4 -0
- package/app/_app/immutable/chunks/BlJ-05MM.js +11 -0
- package/app/_app/immutable/chunks/{GdHEbDDH.js → BxyJ_Q7v.js} +1 -1
- package/app/_app/immutable/chunks/C6HSENij.js +1 -0
- package/app/_app/immutable/chunks/C7boms_S.js +4 -0
- package/app/_app/immutable/chunks/{0as86J1A.js → C8kJ-wTn.js} +6 -6
- package/app/_app/immutable/chunks/CKd9O-eU.js +1 -0
- package/app/_app/immutable/chunks/{BSYvnYu8.js → COQVmnKJ.js} +1 -1
- package/app/_app/immutable/chunks/CTlovRev.js +1 -0
- package/app/_app/immutable/chunks/{DrjdLb0M.js → CaiMTXlW.js} +2 -2
- package/app/_app/immutable/chunks/{exPME6UK.js → CiNYyHrL.js} +1 -1
- package/app/_app/immutable/chunks/{BPsie9Wr.js → Cmh0yR4f.js} +1 -1
- package/app/_app/immutable/chunks/CsaWd8kG.js +2 -0
- package/app/_app/immutable/chunks/{D2Ykv2Y3.js → Ct5r3XV1.js} +1 -1
- package/app/_app/immutable/chunks/D0m3WNVh.js +1 -0
- package/app/_app/immutable/chunks/DF-0MxNw.js +1 -0
- package/app/_app/immutable/chunks/DKi2uwTq.js +2 -0
- package/app/_app/immutable/chunks/{PsiVGwJV.js → DWeCJh9N.js} +1 -1
- package/app/_app/immutable/chunks/{D8rEUyzO.js → D_xoWitl.js} +1 -1
- package/app/_app/immutable/chunks/Dg4KRWOz.js +1 -0
- package/app/_app/immutable/chunks/{CdlkzC7D.js → DmvHEN1v.js} +1 -1
- package/app/_app/immutable/chunks/{eNZ3ToP2.js → DoGeTgSe.js} +1 -1
- package/app/_app/immutable/chunks/DqrQeG8L.js +26 -0
- package/app/_app/immutable/chunks/{Dyf3Cj8R.js → DziaAoFY.js} +1 -1
- package/app/_app/immutable/chunks/{Dzh-1KQR.js → QJX7BlhI.js} +1 -1
- package/app/_app/immutable/chunks/Ywu-998J.js +2 -0
- package/app/_app/immutable/chunks/nB-x9BEp.js +16 -0
- package/app/_app/immutable/chunks/{CwNhmq3e.js → ptmcJq5j.js} +1 -1
- package/app/_app/immutable/entry/app.g4Bu04a3.js +2 -0
- package/app/_app/immutable/entry/start.C4bzxGdW.js +1 -0
- package/app/_app/immutable/nodes/0.C6N6B83E.js +7 -0
- package/app/_app/immutable/nodes/{1.CTatAlE5.js → 1.9pTjyJp5.js} +1 -1
- package/app/_app/immutable/nodes/{10.DHnK3kbB.js → 10.BkbBDSaP.js} +1 -1
- package/app/_app/immutable/nodes/{11.Ck1kcQLu.js → 11.BcVi4XqZ.js} +1 -1
- package/app/_app/immutable/nodes/{12.oK17D56_.js → 12.j9PkVob2.js} +1 -1
- package/app/_app/immutable/nodes/{13.DlEsuw6F.js → 13.BOUYEx8n.js} +1 -1
- package/app/_app/immutable/nodes/14.CuMuuCU7.js +1 -0
- package/app/_app/immutable/nodes/2.BHCkcrHF.js +24 -0
- package/app/_app/immutable/nodes/{3.DOL1VeVM.js → 3.D6l9gEJu.js} +1 -1
- package/app/_app/immutable/nodes/{4.CiKq5-ek.js → 4.BUHWJvB3.js} +1 -1
- package/app/_app/immutable/nodes/{5.nKUg_W9L.js → 5.C1jfy8Yg.js} +1 -1
- package/app/_app/immutable/nodes/{6.CVGw-hLa.js → 6.LSyNtBLJ.js} +1 -1
- package/app/_app/immutable/nodes/{7.Clo6kG4w.js → 7.CC7rRIn7.js} +1 -1
- package/app/_app/immutable/nodes/{8.C3moca98.js → 8.S9H6LDRX.js} +1 -1
- package/app/_app/immutable/nodes/{9.BnVJx5kW.js → 9.BPt57fDH.js} +1 -1
- package/app/_app/version.json +1 -1
- package/app/advanced-styles/index.html +32 -33
- package/app/ai/index.html +37 -38
- package/app/blueprint/index.html +27 -30
- package/app/cookbook/index.html +27 -30
- package/app/index.html +36 -39
- package/app/m/ads/AdDeliveryTier/index.html +34 -35
- package/app/m/ads/AdEvent/index.html +34 -35
- package/app/m/ads/AdFormat/index.html +34 -35
- package/app/m/ads/AdGroup/index.html +34 -35
- package/app/m/ads/AdVariation/index.html +34 -35
- package/app/m/analytics/AnalyticsDataStream/index.html +34 -35
- package/app/m/analytics/AnalyticsEvent/index.html +34 -35
- package/app/m/analytics/AnalyticsProperty/index.html +34 -35
- package/app/m/analytics/AnalyticsReport/index.html +34 -35
- package/app/m/approvals/ApprovalEvent/index.html +34 -35
- package/app/m/approvals/ApprovalPolicy/index.html +34 -35
- package/app/m/approvals/ApprovalRequest/index.html +34 -35
- package/app/m/assets/Asset/attachments/index.html +36 -37
- package/app/m/assets/Asset/index.html +34 -35
- package/app/m/assets/AssetAssociation/index.html +35 -36
- package/app/m/assets/AssetMetafield/index.html +34 -35
- package/app/m/assets/AssetStatus/index.html +34 -35
- package/app/m/assets/AssetType/index.html +34 -35
- package/app/m/assets/Folder/index.html +34 -35
- package/app/m/chat/AgentSession/index.html +34 -35
- package/app/m/chat/ChatMessage/index.html +35 -36
- package/app/m/chat/ChatParticipant/index.html +35 -36
- package/app/m/chat/ChatReaction/index.html +34 -35
- package/app/m/chat/ChatRoom/index.html +34 -35
- package/app/m/chat/ChatThread/index.html +35 -36
- package/app/m/chat/VoiceGatewayTurn/index.html +34 -35
- package/app/m/chat/VoiceSession/index.html +34 -35
- package/app/m/commerce/Agreement/index.html +34 -35
- package/app/m/commerce/Cart/index.html +34 -35
- package/app/m/commerce/Contract/index.html +34 -35
- package/app/m/commerce/ContractLineItem/index.html +35 -36
- package/app/m/commerce/Customer/index.html +34 -35
- package/app/m/commerce/DocumentTax/index.html +34 -35
- package/app/m/commerce/Estimate/index.html +34 -35
- package/app/m/commerce/Fulfillment/index.html +34 -35
- package/app/m/commerce/FulfillmentLineItem/index.html +35 -36
- package/app/m/commerce/HistoricalCustomerFunds/index.html +34 -35
- package/app/m/commerce/HistoricalCustomerFundsAllocation/index.html +34 -35
- package/app/m/commerce/HistoricalSalesLine/index.html +34 -35
- package/app/m/commerce/Invoice/index.html +34 -35
- package/app/m/commerce/InvoiceLineItem/index.html +35 -36
- package/app/m/commerce/Lease/index.html +34 -35
- package/app/m/commerce/LicenseSale/index.html +34 -35
- package/app/m/commerce/Order/index.html +34 -35
- package/app/m/commerce/Payment/index.html +34 -35
- package/app/m/commerce/PaymentAllocation/index.html +35 -36
- package/app/m/commerce/PaymentInstrument/index.html +34 -35
- package/app/m/commerce/PaymentIntent/index.html +34 -35
- package/app/m/commerce/Payout/index.html +34 -35
- package/app/m/commerce/ProductionOrder/index.html +34 -35
- package/app/m/commerce/PurchaseContract/index.html +34 -35
- package/app/m/commerce/PurchaseOrder/index.html +34 -35
- package/app/m/commerce/SalesContract/index.html +34 -35
- package/app/m/commerce/SupplierQuote/index.html +34 -35
- package/app/m/commerce/TaxCode/index.html +34 -35
- package/app/m/commerce/TaxComponent/index.html +34 -35
- package/app/m/commerce/TaxSettings/index.html +34 -35
- package/app/m/commerce/TaxSummaryReport/index.html +34 -35
- package/app/m/commerce/Vendor/index.html +34 -35
- package/app/m/commerce/WholesaleOrder/index.html +34 -35
- package/app/m/content/Content/index.html +34 -35
- package/app/m/content/ContentContribution/index.html +34 -35
- package/app/m/content/ContentContributionAttachment/index.html +34 -35
- package/app/m/content/ContentContributionRevision/index.html +34 -35
- package/app/m/content/ContentContributionType/index.html +34 -35
- package/app/m/content/ContentContributor/index.html +34 -35
- package/app/m/content/ContentCorrection/index.html +34 -35
- package/app/m/content/ContentFeedSource/index.html +34 -35
- package/app/m/content/ContentGovernanceAssignment/index.html +34 -35
- package/app/m/content/ContentGovernancePolicy/index.html +34 -35
- package/app/m/content/ContentGovernanceProfile/index.html +34 -35
- package/app/m/content/ContentReference/index.html +34 -35
- package/app/m/content/ContentReview/index.html +34 -35
- package/app/m/content/ContentVersion/index.html +34 -35
- package/app/m/events/Event/index.html +34 -35
- package/app/m/events/EventParticipant/index.html +35 -36
- package/app/m/events/EventSeries/index.html +34 -35
- package/app/m/events/EventType/index.html +34 -35
- package/app/m/expenses/Expense/index.html +34 -35
- package/app/m/facts/Fact/index.html +34 -35
- package/app/m/facts/FactContent/index.html +34 -35
- package/app/m/facts/FactEvidence/index.html +34 -35
- package/app/m/facts/FactSource/index.html +34 -35
- package/app/m/facts/FactSubject/index.html +34 -35
- package/app/m/facts/FactTag/index.html +34 -35
- package/app/m/fields/FieldPolicy/index.html +34 -35
- package/app/m/fields/FieldPolicySuggestion/index.html +34 -35
- package/app/m/fields/FieldUsageCounter/index.html +34 -35
- package/app/m/images/Image/index.html +34 -35
- package/app/m/inventory/InventoryLocation/index.html +34 -35
- package/app/m/inventory/StockLevel/index.html +34 -35
- package/app/m/inventory/StockMovement/index.html +34 -35
- package/app/m/ledgers/Account/index.html +34 -35
- package/app/m/ledgers/Journal/index.html +34 -35
- package/app/m/ledgers/JournalEntry/index.html +35 -36
- package/app/m/ledgers/Ledger/index.html +34 -35
- package/app/m/manufacturing/Assembly/index.html +34 -35
- package/app/m/manufacturing/BillOfMaterials/index.html +34 -35
- package/app/m/manufacturing/BomLine/index.html +34 -35
- package/app/m/manufacturing/Operation/index.html +34 -35
- package/app/m/manufacturing/ProductionRun/index.html +34 -35
- package/app/m/manufacturing/ProductionRunCompletion/index.html +34 -35
- package/app/m/manufacturing/RoutingStep/index.html +34 -35
- package/app/m/marketing/Campaign/index.html +34 -35
- package/app/m/marketing/CampaignChannel/index.html +34 -35
- package/app/m/marketing/CampaignMetricSnapshot/index.html +34 -35
- package/app/m/messages/Account/index.html +34 -35
- package/app/m/messages/Attachment/index.html +34 -35
- package/app/m/messages/Blacklist/index.html +34 -35
- package/app/m/messages/Email/failed-sends/index.html +36 -37
- package/app/m/messages/Email/index.html +34 -35
- package/app/m/messages/Email/mailbox/index.html +36 -37
- package/app/m/messages/EmailAccount/index.html +34 -35
- package/app/m/messages/EmailAttachment/index.html +34 -35
- package/app/m/messages/EmailFolder/index.html +34 -35
- package/app/m/messages/Message/index.html +34 -35
- package/app/m/messages/MessagingEndpoint/index.html +34 -35
- package/app/m/messages/PersonaMessageRoute/index.html +34 -35
- package/app/m/messages/SlackAccount/index.html +34 -35
- package/app/m/messages/SlackMessage/index.html +34 -35
- package/app/m/messages/TelegramAccount/index.html +34 -35
- package/app/m/messages/Tweet/index.html +34 -35
- package/app/m/messages/TwitterAccount/index.html +34 -35
- package/app/m/messages/Whitelist/index.html +34 -35
- package/app/m/messages/ZulipAccount/index.html +34 -35
- package/app/m/places/Place/index.html +34 -35
- package/app/m/places/PlaceType/index.html +34 -35
- package/app/m/products/Category/index.html +34 -35
- package/app/m/products/Material/index.html +34 -35
- package/app/m/products/Product/index.html +34 -35
- package/app/m/products/Product/ingredients/index.html +36 -37
- package/app/m/products/ProductVariant/index.html +35 -36
- package/app/m/products/Sku/index.html +35 -36
- package/app/m/profiles/ApiKey/index.html +34 -35
- package/app/m/profiles/Bot/index.html +34 -35
- package/app/m/profiles/MagicLinkToken/index.html +34 -35
- package/app/m/profiles/NostrIdentity/index.html +34 -35
- package/app/m/profiles/OidcIdentity/index.html +34 -35
- package/app/m/profiles/Organization/index.html +34 -35
- package/app/m/profiles/Person/index.html +34 -35
- package/app/m/profiles/Profile/index.html +34 -35
- package/app/m/profiles/ProfileMetadata/index.html +34 -35
- package/app/m/profiles/ProfileMetafield/index.html +34 -35
- package/app/m/profiles/ProfileRelationship/index.html +34 -35
- package/app/m/profiles/ProfileRelationshipTerm/index.html +34 -35
- package/app/m/profiles/ProfileRelationshipType/index.html +34 -35
- package/app/m/profiles/ProfileType/index.html +34 -35
- package/app/m/projects/Comment/index.html +35 -36
- package/app/m/projects/Issue/index.html +34 -35
- package/app/m/projects/Label/index.html +34 -35
- package/app/m/projects/Project/index.html +34 -35
- package/app/m/projects/ProjectIntegration/index.html +34 -35
- package/app/m/projects/PullRequest/index.html +34 -35
- package/app/m/projects/Repository/index.html +34 -35
- package/app/m/properties/Property/index.html +34 -35
- package/app/m/properties/Zone/index.html +34 -35
- package/app/m/reports/RuntimeReport/index.html +38 -36
- package/app/m/reports/SmrtPrincipalReportRefreshTask/index.html +34 -35
- package/app/m/reports/SmrtReportLock/index.html +34 -35
- package/app/m/reports/SmrtReportRefreshTask/index.html +34 -35
- package/app/m/reports/SmrtReportRun/index.html +34 -35
- package/app/m/reports/SmrtReportSchedule/index.html +34 -35
- package/app/m/reports/SmrtReportWatermark/index.html +34 -35
- package/app/m/sales/Agreement/index.html +34 -35
- package/app/m/sales/AttributionException/index.html +34 -35
- package/app/m/sales/AttributionPolicy/index.html +34 -35
- package/app/m/sales/Commission/index.html +34 -35
- package/app/m/sales/CommissionAdjustment/index.html +34 -35
- package/app/m/sales/CommissionPayout/index.html +34 -35
- package/app/m/sales/CommissionPlan/index.html +34 -35
- package/app/m/sales/Earner/index.html +34 -35
- package/app/m/sales/EarnerSourceAttribution/index.html +34 -35
- package/app/m/sales/EarningEvent/index.html +34 -35
- package/app/m/sales/ExecutedAgreement/index.html +34 -35
- package/app/m/sales/Lead/index.html +34 -35
- package/app/m/sales/Opportunity/index.html +34 -35
- package/app/m/sales/OpportunityConversion/index.html +34 -35
- package/app/m/sales/PipelineDefinition/index.html +34 -35
- package/app/m/sales/PipelineStage/index.html +35 -36
- package/app/m/sales/Referral/index.html +34 -35
- package/app/m/sales/ReferralAgreement/index.html +34 -35
- package/app/m/sales/ReferralLink/index.html +34 -35
- package/app/m/sales/ReferralProgram/index.html +34 -35
- package/app/m/sales/ReferralTermSnapshot/index.html +34 -35
- package/app/m/sales/ReferralTouch/index.html +34 -35
- package/app/m/sales/Referrer/index.html +34 -35
- package/app/m/sales/SalesActivity/index.html +34 -35
- package/app/m/sales/SalesRepresentative/index.html +34 -35
- package/app/m/sites/Site/index.html +34 -35
- package/app/m/sites/SiteAgentBinding/index.html +34 -35
- package/app/m/social/OAuthState/index.html +34 -35
- package/app/m/social/SocialAccount/index.html +34 -35
- package/app/m/social/SocialPost/index.html +34 -35
- package/app/m/social/SocialPostAnalyticsSnapshot/index.html +34 -35
- package/app/m/subscriptions/BillingAdjustment/index.html +34 -35
- package/app/m/subscriptions/ClientCharge/index.html +34 -35
- package/app/m/subscriptions/CreditGrant/index.html +34 -35
- package/app/m/subscriptions/PricingRule/index.html +34 -35
- package/app/m/subscriptions/RetailCharge/index.html +34 -35
- package/app/m/subscriptions/SpendingPolicy/index.html +34 -35
- package/app/m/subscriptions/SubscriptionPlan/index.html +34 -35
- package/app/m/subscriptions/TenantSubscription/index.html +34 -35
- package/app/m/subscriptions/TenantUsageMetric/index.html +34 -35
- package/app/m/support/ServiceTimeEntry/index.html +34 -35
- package/app/m/support/SupportAiRun/index.html +34 -35
- package/app/m/support/SupportAvailability/index.html +34 -35
- package/app/m/support/SupportCase/index.html +34 -35
- package/app/m/support/SupportCaseEvent/index.html +34 -35
- package/app/m/support/SupportChannelBinding/index.html +34 -35
- package/app/m/support/SupportCharge/index.html +34 -35
- package/app/m/support/SupportCompensation/index.html +34 -35
- package/app/m/support/SupportCompensationPlan/index.html +34 -35
- package/app/m/support/SupportEscalation/index.html +34 -35
- package/app/m/support/SupportInteraction/index.html +34 -35
- package/app/m/support/SupportPlan/index.html +34 -35
- package/app/m/support/SupportPolicy/index.html +34 -35
- package/app/m/support/SupportQualification/index.html +34 -35
- package/app/m/support/SupportServiceTarget/index.html +34 -35
- package/app/m/support/SupportSpecialist/index.html +34 -35
- package/app/m/support/SupportWorkLink/index.html +34 -35
- package/app/m/tags/Tag/index.html +34 -35
- package/app/m/tags/TagAlias/index.html +34 -35
- package/app/m/timesheets/AttendanceBreak/index.html +34 -35
- package/app/m/timesheets/AttendancePunch/index.html +34 -35
- package/app/m/timesheets/AttendanceSegment/index.html +34 -35
- package/app/m/timesheets/ServiceChargeSnapshot/index.html +34 -35
- package/app/m/timesheets/ServiceCompensationSnapshot/index.html +34 -35
- package/app/m/timesheets/ServiceTimeEntry/index.html +34 -35
- package/app/m/users/Group/index.html +34 -35
- package/app/m/users/GroupMember/index.html +34 -35
- package/app/m/users/GroupRole/index.html +34 -35
- package/app/m/users/Membership/index.html +35 -36
- package/app/m/users/MembershipOverride/index.html +34 -35
- package/app/m/users/Permission/index.html +34 -35
- package/app/m/users/Role/index.html +34 -35
- package/app/m/users/RolePermission/index.html +34 -35
- package/app/m/users/Session/index.html +34 -35
- package/app/m/users/Tenant/index.html +34 -35
- package/app/m/users/TenantIntegration/index.html +34 -35
- package/app/m/users/TenantPermissionOverride/index.html +34 -35
- package/app/m/users/User/index.html +34 -35
- package/app/m/video/Character/index.html +34 -35
- package/app/m/video/CharacterAsset/index.html +34 -35
- package/app/m/video/CompositeJob/index.html +34 -35
- package/app/m/video/Performer/index.html +34 -35
- package/app/m/video/PerformerAsset/index.html +34 -35
- package/app/m/video/Scene/index.html +34 -35
- package/app/m/video/SceneAsset/index.html +34 -35
- package/app/m/video/VideoComposition/index.html +34 -35
- package/app/m/video/VideoCompositionAsset/index.html +34 -35
- package/app/m/video/VideoSequence/index.html +34 -35
- package/app/m/video/VideoSequenceAsset/index.html +34 -35
- package/app/m/video/VideoShot/index.html +34 -35
- package/app/m/video/VideoShotAsset/index.html +34 -35
- package/app/m/video/VideoShotCharacter/index.html +34 -35
- package/app/m/video/VideoWorkflow/index.html +34 -35
- package/app/m/voice/VoiceOutput/index.html +34 -35
- package/app/m/voice/VoiceProfile/index.html +34 -35
- package/app/m/voice/VoiceSample/index.html +34 -35
- package/app/mcp.html +2 -2
- package/app/packages/ads/index.html +29 -32
- package/app/packages/analytics/index.html +29 -32
- package/app/packages/approvals/index.html +29 -32
- package/app/packages/assets/index.html +29 -32
- package/app/packages/chat/index.html +29 -32
- package/app/packages/comments/index.html +29 -32
- package/app/packages/commerce/index.html +29 -32
- package/app/packages/content/index.html +29 -32
- package/app/packages/events/index.html +29 -32
- package/app/packages/expenses/index.html +29 -32
- package/app/packages/facts/index.html +29 -32
- package/app/packages/fields/index.html +29 -32
- package/app/packages/human-resources/index.html +29 -32
- package/app/packages/images/index.html +29 -32
- package/app/packages/index.html +28 -31
- package/app/packages/ingestion/index.html +29 -32
- package/app/packages/inventory/index.html +29 -32
- package/app/packages/ledgers/index.html +29 -32
- package/app/packages/manufacturing/index.html +29 -32
- package/app/packages/marketing/index.html +29 -32
- package/app/packages/messages/index.html +29 -32
- package/app/packages/places/index.html +29 -32
- package/app/packages/preferences/index.html +29 -32
- package/app/packages/products/index.html +29 -32
- package/app/packages/profiles/index.html +29 -32
- package/app/packages/projects/index.html +29 -32
- package/app/packages/properties/index.html +29 -32
- package/app/packages/reports/index.html +29 -32
- package/app/packages/sales/index.html +29 -32
- package/app/packages/sites/index.html +29 -32
- package/app/packages/social/index.html +29 -32
- package/app/packages/subscriptions/index.html +29 -32
- package/app/packages/support/index.html +29 -32
- package/app/packages/tags/index.html +29 -32
- package/app/packages/timesheets/index.html +29 -32
- package/app/packages/users/index.html +29 -32
- package/app/packages/video/index.html +29 -32
- package/app/packages/voice/index.html +29 -32
- package/app/packages/webhooks/index.html +29 -32
- package/app/recipes/account-access/help/index.html +31 -34
- package/app/recipes/account-access/index.html +34 -36
- package/app/recipes/activity/help/index.html +30 -33
- package/app/recipes/activity/index.html +34 -36
- package/app/recipes/agreements/help/index.html +30 -33
- package/app/recipes/agreements/index.html +34 -36
- package/app/recipes/analytics.reports/help/index.html +30 -33
- package/app/recipes/analytics.reports/index.html +34 -36
- package/app/recipes/assets/help/index.html +30 -33
- package/app/recipes/assets/index.html +34 -36
- package/app/recipes/billing/help/index.html +30 -33
- package/app/recipes/billing/index.html +34 -36
- package/app/recipes/chat.assistant/help/index.html +30 -33
- package/app/recipes/chat.assistant/index.html +34 -36
- package/app/recipes/comments/help/index.html +30 -33
- package/app/recipes/comments/index.html +34 -36
- package/app/recipes/commerce.customers/help/index.html +30 -33
- package/app/recipes/commerce.customers/index.html +34 -36
- package/app/recipes/commerce.estimates/help/index.html +30 -33
- package/app/recipes/commerce.estimates/index.html +34 -36
- package/app/recipes/commerce.purchases/help/index.html +30 -33
- package/app/recipes/commerce.purchases/index.html +34 -36
- package/app/recipes/commerce.sales/help/index.html +30 -33
- package/app/recipes/commerce.sales/index.html +34 -36
- package/app/recipes/commerce.vendors/help/index.html +30 -33
- package/app/recipes/commerce.vendors/index.html +34 -36
- package/app/recipes/commerce.wholesale/help/index.html +30 -33
- package/app/recipes/commerce.wholesale/index.html +34 -36
- package/app/recipes/events.calendar/help/index.html +30 -33
- package/app/recipes/events.calendar/index.html +34 -36
- package/app/recipes/expenses.tracking/help/index.html +30 -33
- package/app/recipes/expenses.tracking/index.html +34 -36
- package/app/recipes/fields.form-customization/help/index.html +30 -33
- package/app/recipes/fields.form-customization/index.html +34 -36
- package/app/recipes/ingestion/help/index.html +30 -33
- package/app/recipes/ingestion/index.html +34 -36
- package/app/recipes/integrations/help/index.html +30 -33
- package/app/recipes/integrations/index.html +34 -36
- package/app/recipes/inventory.stock/help/index.html +30 -33
- package/app/recipes/inventory.stock/index.html +34 -36
- package/app/recipes/ledgers.bookkeeping/help/index.html +30 -33
- package/app/recipes/ledgers.bookkeeping/index.html +34 -36
- package/app/recipes/messages/help/index.html +30 -33
- package/app/recipes/messages/index.html +34 -36
- package/app/recipes/products/help/index.html +30 -33
- package/app/recipes/products/index.html +34 -36
- package/app/recipes/projects.tracker/help/index.html +30 -33
- package/app/recipes/projects.tracker/index.html +34 -36
- package/app/recipes/reports.materialized/help/index.html +30 -33
- package/app/recipes/reports.materialized/index.html +34 -36
- package/app/recipes/reports.runtime/help/index.html +31 -34
- package/app/recipes/reports.runtime/index.html +35 -37
- package/app/recipes/sales.pipeline/help/index.html +30 -33
- package/app/recipes/sales.pipeline/index.html +34 -36
- package/app/recipes/tags.taxonomy/help/index.html +30 -33
- package/app/recipes/tags.taxonomy/index.html +34 -36
- package/app/recipes/team-collaboration/help/index.html +30 -33
- package/app/recipes/team-collaboration/index.html +34 -36
- package/app/recipes/timesheets.time-entries/help/index.html +30 -33
- package/app/recipes/timesheets.time-entries/index.html +34 -36
- package/app/s/custom-accounts/index.html +27 -30
- package/app/s/custom-appointments/index.html +27 -30
- package/app/s/custom-billing/index.html +27 -30
- package/app/s/custom-bookings/index.html +27 -30
- package/app/s/custom-buying/index.html +27 -30
- package/app/s/custom-checkout/index.html +27 -30
- package/app/s/custom-classes/index.html +27 -30
- package/app/s/custom-clients/index.html +27 -30
- package/app/s/custom-events/index.html +27 -30
- package/app/s/custom-fleet/index.html +27 -30
- package/app/s/custom-gigs/index.html +27 -30
- package/app/s/custom-giving/index.html +27 -30
- package/app/s/custom-instruments/index.html +27 -30
- package/app/s/custom-jobs/index.html +27 -30
- package/app/s/custom-kitchen/index.html +27 -30
- package/app/s/custom-lessons/index.html +27 -30
- package/app/s/custom-material/index.html +27 -30
- package/app/s/custom-meetings/index.html +27 -30
- package/app/s/custom-members/index.html +27 -30
- package/app/s/custom-merch/index.html +27 -30
- package/app/s/custom-money/index.html +27 -30
- package/app/s/custom-paint/index.html +27 -30
- package/app/s/custom-parts/index.html +27 -30
- package/app/s/custom-rentals/index.html +27 -30
- package/app/s/custom-roastery/index.html +27 -30
- package/app/s/custom-schedule/index.html +27 -30
- package/app/s/custom-shelf/index.html +27 -30
- package/app/s/custom-shop/index.html +27 -30
- package/app/s/custom-students/index.html +27 -30
- package/app/s/custom-wholesale/index.html +27 -30
- package/app/s/custom-work/index.html +27 -30
- package/app/s/custom-yard/index.html +27 -30
- package/app/s/section-access-control/index.html +27 -30
- package/app/s/section-account-security/index.html +27 -30
- package/app/s/section-accounting/index.html +27 -30
- package/app/s/section-activity/index.html +27 -30
- package/app/s/section-agreements/index.html +27 -30
- package/app/s/section-analytics/index.html +27 -30
- package/app/s/section-assets/index.html +27 -30
- package/app/s/section-billing/index.html +27 -30
- package/app/s/section-calendar/index.html +27 -30
- package/app/s/section-catalog/index.html +27 -30
- package/app/s/section-chat.assistant/index.html +27 -30
- package/app/s/section-comments/index.html +27 -30
- package/app/s/section-fields.form-customization/index.html +27 -30
- package/app/s/section-ingestion/index.html +27 -30
- package/app/s/section-integrations/index.html +27 -30
- package/app/s/section-messages/index.html +27 -30
- package/app/s/section-more/index.html +27 -30
- package/app/s/section-operations/index.html +27 -30
- package/app/s/section-projects/index.html +27 -30
- package/app/s/section-purchasing/index.html +27 -30
- package/app/s/section-reports.materialized/index.html +27 -30
- package/app/s/section-reports.runtime/index.html +27 -30
- package/app/s/section-sales/index.html +27 -30
- package/app/s/section-taxonomy/index.html +27 -30
- package/app/s/section-team/index.html +27 -30
- package/app/s/section-work/index.html +27 -30
- package/dist/assistant/change.d.ts +10 -1
- package/dist/assistant/change.d.ts.map +1 -1
- package/dist/assistant/change.js +6 -1
- package/dist/assistant/prompt.d.ts +10 -1
- package/dist/assistant/prompt.d.ts.map +1 -1
- package/dist/assistant/prompt.js +42 -7
- package/dist/assistant/session.svelte.d.ts +6 -0
- package/dist/assistant/session.svelte.d.ts.map +1 -1
- package/dist/assistant/session.svelte.js +6 -0
- package/dist/assistant/transport.d.ts +23 -3
- package/dist/assistant/transport.d.ts.map +1 -1
- package/dist/assistant/transport.js +356 -13
- package/dist/catalog/catalog.json +119 -41
- package/dist/components/BrowserAssistant.svelte +26 -0
- package/dist/components/BrowserAssistant.svelte.d.ts.map +1 -1
- package/dist/components/ModelPage.svelte +36 -4
- package/dist/components/ModelPage.svelte.d.ts.map +1 -1
- package/dist/components/PlannerReports.svelte +61 -0
- package/dist/components/PlannerReports.svelte.d.ts +10 -0
- package/dist/components/PlannerReports.svelte.d.ts.map +1 -0
- package/dist/components/PlannerSavedReportsWidget.svelte +38 -0
- package/dist/components/PlannerSavedReportsWidget.svelte.d.ts +9 -0
- package/dist/components/PlannerSavedReportsWidget.svelte.d.ts.map +1 -0
- package/dist/components/ReportProposalCard.svelte +63 -0
- package/dist/components/ReportProposalCard.svelte.d.ts +17 -0
- package/dist/components/ReportProposalCard.svelte.d.ts.map +1 -0
- package/dist/components/SectionOverview.svelte +22 -1
- package/dist/components/SectionOverview.svelte.d.ts.map +1 -1
- package/dist/core/prompt.d.ts.map +1 -1
- package/dist/core/prompt.js +7 -1
- package/dist/core/reply.d.ts +6 -0
- package/dist/core/reply.d.ts.map +1 -1
- package/dist/core/reply.js +11 -0
- package/dist/data/planner-source.d.ts.map +1 -1
- package/dist/data/planner-source.js +4 -1
- package/dist/overviews/definitions.d.ts.map +1 -1
- package/dist/overviews/definitions.js +6 -1
- package/dist/overviews/registry.d.ts.map +1 -1
- package/dist/overviews/registry.js +9 -5
- package/dist/planner/Planner.svelte +17 -0
- package/dist/planner/Planner.svelte.d.ts.map +1 -1
- package/dist/planner/instance.d.ts +6 -0
- package/dist/planner/instance.d.ts.map +1 -1
- package/dist/planner/shell.d.ts.map +1 -1
- package/dist/planner/shell.js +3 -1
- package/dist/reports/intent.d.ts +106 -0
- package/dist/reports/intent.d.ts.map +1 -0
- package/dist/reports/intent.js +667 -0
- package/dist/reports/planner.d.ts +33 -0
- package/dist/reports/planner.d.ts.map +1 -0
- package/dist/reports/planner.js +60 -0
- package/dist/reports/sources.d.ts +36 -0
- package/dist/reports/sources.d.ts.map +1 -0
- package/dist/reports/sources.js +125 -0
- package/dist/reports/store.d.ts +64 -0
- package/dist/reports/store.d.ts.map +1 -0
- package/dist/reports/store.js +214 -0
- package/dist/smrt-version.d.ts +1 -1
- package/dist/smrt-version.js +1 -1
- package/package.json +54 -54
- package/app/_app/immutable/assets/0.C8CwV4Fz.css +0 -1
- package/app/_app/immutable/assets/AppShell.DrL8T9I9.css +0 -1
- package/app/_app/immutable/assets/app.4ScdTV_S.css +0 -1
- package/app/_app/immutable/assets/labels.AVmg4hBz.css +0 -1
- package/app/_app/immutable/assets/state.CkVocVUJ.css +0 -1
- package/app/_app/immutable/chunks/B7d7dGCP.js +0 -1
- package/app/_app/immutable/chunks/C3nKLKKd.js +0 -1
- package/app/_app/immutable/chunks/CXKa_xdk.js +0 -4
- package/app/_app/immutable/chunks/CdBvpdnq.js +0 -4
- package/app/_app/immutable/chunks/D31rqKs1.js +0 -1
- package/app/_app/immutable/chunks/DBp81N-t.js +0 -24
- package/app/_app/immutable/chunks/DzRTyOpH.js +0 -1
- package/app/_app/immutable/chunks/GVQNHDp5.js +0 -1
- package/app/_app/immutable/chunks/M-CuJzQN.js +0 -1
- package/app/_app/immutable/chunks/ORlJSBRk.js +0 -1
- package/app/_app/immutable/chunks/gMSmS-_y.js +0 -2
- package/app/_app/immutable/chunks/jol435F5.js +0 -11
- package/app/_app/immutable/entry/app.C_C191oT.js +0 -2
- package/app/_app/immutable/entry/start.C01jT-Kj.js +0 -1
- package/app/_app/immutable/nodes/0._tbUx7Ky.js +0 -9
- package/app/_app/immutable/nodes/14.sDZ3z4Zh.js +0 -1
- 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;
|
|
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
|
-
|
|
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,
|
|
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;
|
|
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;AAGjE,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAElE,4CAA4C;AAC5C,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,0CAA0C;IAC1C,QAAQ,EAAE,YAAY,CAAC;IACvB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,SAAS;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACvD,qFAAqF;IACrF,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,wFAAwF;AACxF,MAAM,WAAW,UAAU;IACzB,uHAAuH;IACvH,MAAM,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,QAAQ,EAAE,QAAQ,EAAE,CAAC;CACtB;AA4ED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,eAAe,GAAG,UAAU,CA0ClE"}
|
package/dist/core/prompt.js
CHANGED
|
@@ -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 ?? [])
|
package/dist/core/reply.d.ts
CHANGED
|
@@ -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`,
|
package/dist/core/reply.d.ts.map
CHANGED
|
@@ -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,MAA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ACnB,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"}
|
package/dist/core/reply.js
CHANGED
|
@@ -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":"
|
|
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
|
-
|
|
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,
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../src/lib/overviews/definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAIL,KAAK,kBAAkB,EAMxB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAE/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AA8ExD;;;;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,CAOxD;AAWD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS,CAsBzE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,EAAE,EAAE,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,uBAAuB,EAE7B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,KAAK,eAAe,EASpB,KAAK,gBAAgB,EAErB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EAIzB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACvB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,oCAAoC,CAAC;AAM5C,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAWjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,kEAAkE;AAClE,MAAM,WAAW,oBAAoB;IACnC,kCAAkC;IAClC,MAAM,EAAE,UAAU,CAAC;IACnB,iE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|
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.
|
|
577
|
-
*
|
|
578
|
-
*
|
|
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":"
|
|
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;
|
|
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,
|
|
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"}
|
package/dist/planner/shell.js
CHANGED
|
@@ -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
|
-
|
|
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
|
/**
|