@arbidocs/blocks 0.3.184 → 0.4.0
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/README.md +100 -0
- package/dist/agents/approvals/AuthorizeAgentParts.d.ts +79 -0
- package/dist/agents/approvals/ConsentPage.d.ts +76 -0
- package/dist/agents/approvals/ConsentParts.d.ts +37 -0
- package/dist/agents/approvals/index.d.ts +3 -0
- package/dist/agents/config/ConfigField.d.ts +43 -0
- package/dist/agents/config/ConfigForm.d.ts +35 -0
- package/dist/agents/config/TupleArrayField.d.ts +32 -0
- package/dist/agents/config/index.d.ts +4 -0
- package/dist/agents/config/schema-utils.d.ts +28 -0
- package/dist/agents/definitions/AgentCard.d.ts +63 -0
- package/dist/agents/definitions/AgentCreator.d.ts +118 -0
- package/dist/agents/definitions/AgentEditorParts.d.ts +63 -0
- package/dist/agents/definitions/AgentGallery.d.ts +29 -0
- package/dist/agents/definitions/index.d.ts +4 -0
- package/dist/agents/index.cjs +595 -0
- package/dist/agents/index.cjs.map +1 -0
- package/dist/agents/index.d.ts +7 -0
- package/dist/agents/index.js +14 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/runs/AgentBar.d.ts +103 -0
- package/dist/agents/runs/AgentSteps.d.ts +157 -0
- package/dist/agents/runs/SubagentRoster.d.ts +37 -0
- package/dist/agents/runs/index.d.ts +3 -0
- package/dist/agents/skills/SkillBrowserParts.d.ts +70 -0
- package/dist/agents/skills/SkillCard.d.ts +48 -0
- package/dist/agents/skills/SkillForms.d.ts +64 -0
- package/dist/agents/skills/SkillParts.d.ts +31 -0
- package/dist/agents/skills/SkillRow.d.ts +34 -0
- package/dist/agents/skills/index.d.ts +5 -0
- package/dist/agents/tasks/LiveRunsBanner.d.ts +26 -0
- package/dist/agents/tasks/RecurrenceBuilder.d.ts +36 -0
- package/dist/agents/tasks/TaskComposer.d.ts +108 -0
- package/dist/agents/tasks/TaskPlan.d.ts +78 -0
- package/dist/agents/tasks/TaskRowActions.d.ts +43 -0
- package/dist/agents/tasks/TaskRunsDialog.d.ts +45 -0
- package/dist/agents/tasks/TasksChrome.d.ts +36 -0
- package/dist/agents/tasks/UploadTaskItem.d.ts +39 -0
- package/dist/agents/tasks/UploadTaskList.d.ts +35 -0
- package/dist/agents/tasks/elapsed.d.ts +2 -0
- package/dist/agents/tasks/index.d.ts +13 -0
- package/dist/agents/tasks/rrule.d.ts +36 -0
- package/dist/agents/tasks/taskColumns.d.ts +68 -0
- package/dist/agents/tasks/taskLabels.d.ts +26 -0
- package/dist/agents/workflows/AgentSelect.d.ts +33 -0
- package/dist/agents/workflows/SchemaForm.d.ts +37 -0
- package/dist/agents/workflows/WorkflowConfigDialog.d.ts +73 -0
- package/dist/agents/workflows/WorkflowLauncher.d.ts +38 -0
- package/dist/agents/workflows/index.d.ts +6 -0
- package/dist/agents/workflows/types.d.ts +125 -0
- package/dist/agents/workflows/workflow.d.ts +62 -0
- package/dist/auth/AuthFooter.d.ts +56 -0
- package/dist/auth/AuthForm.d.ts +105 -0
- package/dist/auth/AuthLayout.d.ts +46 -0
- package/dist/auth/PasswordStrengthInput.d.ts +44 -0
- package/dist/auth/RecoveryDialogs.d.ts +90 -0
- package/dist/auth/SsoLoginButton.d.ts +19 -0
- package/dist/auth/index.cjs +123 -0
- package/dist/auth/index.cjs.map +1 -0
- package/dist/auth/index.d.ts +6 -0
- package/dist/auth/index.js +6 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/builder/AgentsPanel.d.ts +9 -0
- package/dist/builder/ModuleManager.d.ts +6 -0
- package/dist/builder/VerticalBuilder.d.ts +32 -0
- package/dist/builder/agents/store.d.ts +21 -0
- package/dist/builder/export.d.ts +30 -0
- package/dist/builder/modules/registry.d.ts +11 -0
- package/dist/builder/modules/store.d.ts +29 -0
- package/dist/builder/modules/types.d.ts +29 -0
- package/dist/builder/types.d.ts +28 -0
- package/dist/chat/BranchControls.d.ts +33 -0
- package/dist/chat/Composer.d.ts +156 -0
- package/dist/chat/ContextChip.d.ts +19 -0
- package/dist/chat/ContextPanel.d.ts +108 -0
- package/dist/chat/ConversationEmpty.d.ts +53 -0
- package/dist/chat/ConversationLayout.d.ts +40 -0
- package/dist/chat/ConversationParts.d.ts +62 -0
- package/dist/chat/ConversationSearchView.d.ts +57 -0
- package/dist/chat/LabelPinRow.d.ts +30 -0
- package/dist/chat/Message.d.ts +189 -0
- package/dist/chat/MessageAlert.d.ts +25 -0
- package/dist/chat/MessageList.d.ts +102 -0
- package/dist/chat/ModelPicker.d.ts +103 -0
- package/dist/chat/PendingAnswerBar.d.ts +36 -0
- package/dist/chat/PinnedDocChip.d.ts +22 -0
- package/dist/chat/SlashMenu.d.ts +57 -0
- package/dist/chat/ThreadMap.d.ts +45 -0
- package/dist/chat/index.cjs +423 -0
- package/dist/chat/index.cjs.map +1 -0
- package/dist/chat/index.d.ts +21 -0
- package/dist/chat/index.js +6 -0
- package/dist/chat/index.js.map +1 -0
- package/dist/chat/test-id.d.ts +16 -0
- package/dist/chat/useStreamAnnouncement.d.ts +19 -0
- package/dist/chunk-223D4727.cjs +50 -0
- package/dist/chunk-223D4727.cjs.map +1 -0
- package/dist/chunk-4EZVCGRL.js +803 -0
- package/dist/chunk-4EZVCGRL.js.map +1 -0
- package/dist/chunk-54Q3RNJU.cjs +516 -0
- package/dist/chunk-54Q3RNJU.cjs.map +1 -0
- package/dist/chunk-5B4PXAKI.cjs +287 -0
- package/dist/chunk-5B4PXAKI.cjs.map +1 -0
- package/dist/chunk-5TYEJOXY.js +1762 -0
- package/dist/chunk-5TYEJOXY.js.map +1 -0
- package/dist/chunk-6ALISABK.cjs +677 -0
- package/dist/chunk-6ALISABK.cjs.map +1 -0
- package/dist/chunk-6HIPFEID.cjs +574 -0
- package/dist/chunk-6HIPFEID.cjs.map +1 -0
- package/dist/chunk-76JDDMSP.js +31 -0
- package/dist/chunk-76JDDMSP.js.map +1 -0
- package/dist/chunk-7F6CBP3Z.js +12 -0
- package/dist/chunk-7F6CBP3Z.js.map +1 -0
- package/dist/chunk-7G2LJMUG.cjs +45 -0
- package/dist/chunk-7G2LJMUG.cjs.map +1 -0
- package/dist/chunk-7G3JNSJB.cjs +1809 -0
- package/dist/chunk-7G3JNSJB.cjs.map +1 -0
- package/dist/chunk-A2YAC22G.js +93 -0
- package/dist/chunk-A2YAC22G.js.map +1 -0
- package/dist/chunk-ADOKTJHV.cjs +262 -0
- package/dist/chunk-ADOKTJHV.cjs.map +1 -0
- package/dist/chunk-AXIZ2MDV.js +751 -0
- package/dist/chunk-AXIZ2MDV.js.map +1 -0
- package/dist/chunk-AZQDNYH4.js +2865 -0
- package/dist/chunk-AZQDNYH4.js.map +1 -0
- package/dist/chunk-C54XEN5T.cjs +34 -0
- package/dist/chunk-C54XEN5T.cjs.map +1 -0
- package/dist/chunk-CQCC7LE7.js +210 -0
- package/dist/chunk-CQCC7LE7.js.map +1 -0
- package/dist/chunk-CRIKTUEU.cjs +47 -0
- package/dist/chunk-CRIKTUEU.cjs.map +1 -0
- package/dist/chunk-CTZ5745I.js +564 -0
- package/dist/chunk-CTZ5745I.js.map +1 -0
- package/dist/chunk-DPLRHEJZ.js +78 -0
- package/dist/chunk-DPLRHEJZ.js.map +1 -0
- package/dist/chunk-DVLEQURC.js +672 -0
- package/dist/chunk-DVLEQURC.js.map +1 -0
- package/dist/chunk-ELR74ME6.cjs +68 -0
- package/dist/chunk-ELR74ME6.cjs.map +1 -0
- package/dist/{chunk-DBAUZD7A.cjs → chunk-FZQJ2S6P.cjs} +244 -1123
- package/dist/chunk-FZQJ2S6P.cjs.map +1 -0
- package/dist/chunk-G3G7LZPM.cjs +205 -0
- package/dist/chunk-G3G7LZPM.cjs.map +1 -0
- package/dist/chunk-GDFWJ73C.cjs +2973 -0
- package/dist/chunk-GDFWJ73C.cjs.map +1 -0
- package/dist/chunk-ITGHMJOM.js +5528 -0
- package/dist/chunk-ITGHMJOM.js.map +1 -0
- package/dist/chunk-K4BGOPGG.js +79 -0
- package/dist/chunk-K4BGOPGG.js.map +1 -0
- package/dist/chunk-KUA3BCT2.cjs +272 -0
- package/dist/chunk-KUA3BCT2.cjs.map +1 -0
- package/dist/chunk-LGBAZD37.js +341 -0
- package/dist/chunk-LGBAZD37.js.map +1 -0
- package/dist/chunk-MHVNT4J3.cjs +15 -0
- package/dist/chunk-MHVNT4J3.cjs.map +1 -0
- package/dist/chunk-MMYCZRKT.cjs +168 -0
- package/dist/chunk-MMYCZRKT.cjs.map +1 -0
- package/dist/chunk-NBV56SGU.js +42 -0
- package/dist/chunk-NBV56SGU.js.map +1 -0
- package/dist/chunk-NPLYHR2E.js +13 -0
- package/dist/chunk-NPLYHR2E.js.map +1 -0
- package/dist/chunk-NUNKSZKU.js +203 -0
- package/dist/chunk-NUNKSZKU.js.map +1 -0
- package/dist/chunk-OB5F4577.cjs +40 -0
- package/dist/chunk-OB5F4577.cjs.map +1 -0
- package/dist/chunk-OUW6G4O2.cjs +96 -0
- package/dist/chunk-OUW6G4O2.cjs.map +1 -0
- package/dist/chunk-OVEQERPO.js +66 -0
- package/dist/chunk-OVEQERPO.js.map +1 -0
- package/dist/chunk-P6GHJSLR.js +34 -0
- package/dist/chunk-P6GHJSLR.js.map +1 -0
- package/dist/chunk-PCB2BPN3.cjs +41 -0
- package/dist/chunk-PCB2BPN3.cjs.map +1 -0
- package/dist/chunk-PPCATBOY.cjs +15 -0
- package/dist/chunk-PPCATBOY.cjs.map +1 -0
- package/dist/chunk-QN42OA5J.js +887 -0
- package/dist/chunk-QN42OA5J.js.map +1 -0
- package/dist/{chunk-FZ2S6VAZ.js → chunk-RBXZYNVB.js} +223 -1102
- package/dist/chunk-RBXZYNVB.js.map +1 -0
- package/dist/chunk-RC6VTY2H.js +47 -0
- package/dist/chunk-RC6VTY2H.js.map +1 -0
- package/dist/chunk-RFIBUWLF.cjs +232 -0
- package/dist/chunk-RFIBUWLF.cjs.map +1 -0
- package/dist/chunk-S5T7ZTX2.js +266 -0
- package/dist/chunk-S5T7ZTX2.js.map +1 -0
- package/dist/chunk-S7PSMMRG.js +38 -0
- package/dist/chunk-S7PSMMRG.js.map +1 -0
- package/dist/chunk-SCFYPAG6.cjs +18 -0
- package/dist/chunk-SCFYPAG6.cjs.map +1 -0
- package/dist/chunk-SYDHKKRZ.cjs +818 -0
- package/dist/chunk-SYDHKKRZ.cjs.map +1 -0
- package/dist/chunk-TX2ZICS7.js +139 -0
- package/dist/chunk-TX2ZICS7.js.map +1 -0
- package/dist/chunk-TYZUCAT7.js +787 -0
- package/dist/chunk-TYZUCAT7.js.map +1 -0
- package/dist/chunk-U2E3WT3J.js +45 -0
- package/dist/chunk-U2E3WT3J.js.map +1 -0
- package/dist/chunk-UBNVIIBT.js +284 -0
- package/dist/chunk-UBNVIIBT.js.map +1 -0
- package/dist/chunk-UFHMLHIR.cjs +66 -0
- package/dist/chunk-UFHMLHIR.cjs.map +1 -0
- package/dist/chunk-UJE32SST.js +39 -0
- package/dist/chunk-UJE32SST.js.map +1 -0
- package/dist/chunk-ULWRNGGE.cjs +146 -0
- package/dist/chunk-ULWRNGGE.cjs.map +1 -0
- package/dist/chunk-UTWX2X2A.js +165 -0
- package/dist/chunk-UTWX2X2A.js.map +1 -0
- package/dist/chunk-UWGIB3VQ.js +64 -0
- package/dist/chunk-UWGIB3VQ.js.map +1 -0
- package/dist/chunk-V4ISCZJ7.cjs +207 -0
- package/dist/chunk-V4ISCZJ7.cjs.map +1 -0
- package/dist/chunk-VFUWWH52.cjs +83 -0
- package/dist/chunk-VFUWWH52.cjs.map +1 -0
- package/dist/chunk-VILAPTCB.js +259 -0
- package/dist/chunk-VILAPTCB.js.map +1 -0
- package/dist/chunk-VLCY46K6.cjs +82 -0
- package/dist/chunk-VLCY46K6.cjs.map +1 -0
- package/dist/chunk-VPPX5XUF.cjs +813 -0
- package/dist/chunk-VPPX5XUF.cjs.map +1 -0
- package/dist/chunk-WJMEXTVD.cjs +122 -0
- package/dist/chunk-WJMEXTVD.cjs.map +1 -0
- package/dist/chunk-WTNMWEBC.js +504 -0
- package/dist/chunk-WTNMWEBC.js.map +1 -0
- package/dist/chunk-WW6EOVZA.js +112 -0
- package/dist/chunk-WW6EOVZA.js.map +1 -0
- package/dist/chunk-XNBAXRY7.cjs +5673 -0
- package/dist/chunk-XNBAXRY7.cjs.map +1 -0
- package/dist/chunk-XQ7PKKDY.cjs +787 -0
- package/dist/chunk-XQ7PKKDY.cjs.map +1 -0
- package/dist/chunk-XZIYRKLW.cjs +347 -0
- package/dist/chunk-XZIYRKLW.cjs.map +1 -0
- package/dist/chunk-YBXCZEWS.js +187 -0
- package/dist/chunk-YBXCZEWS.js.map +1 -0
- package/dist/chunk-YDHO4AVL.js +16 -0
- package/dist/chunk-YDHO4AVL.js.map +1 -0
- package/dist/chunk-ZORQ5M3W.cjs +934 -0
- package/dist/chunk-ZORQ5M3W.cjs.map +1 -0
- package/dist/chunk-ZW6FPIFC.cjs +36 -0
- package/dist/chunk-ZW6FPIFC.cjs.map +1 -0
- package/dist/citations/CitationEditor.d.ts +58 -0
- package/dist/citations/PassagePill.d.ts +49 -0
- package/dist/citations/QuietMarks.d.ts +81 -0
- package/dist/citations/index.cjs +47 -0
- package/dist/citations/index.cjs.map +1 -0
- package/dist/citations/index.d.ts +3 -0
- package/dist/citations/index.js +6 -0
- package/dist/citations/index.js.map +1 -0
- package/dist/collaboration/contacts/AddContactsParts.d.ts +46 -0
- package/dist/collaboration/contacts/index.d.ts +1 -0
- package/dist/collaboration/direct-messages/DirectMessages.d.ts +33 -0
- package/dist/collaboration/direct-messages/DmParts.d.ts +139 -0
- package/dist/collaboration/direct-messages/index.d.ts +2 -0
- package/dist/collaboration/index.cjs +141 -0
- package/dist/collaboration/index.cjs.map +1 -0
- package/dist/collaboration/index.d.ts +5 -0
- package/dist/collaboration/index.js +8 -0
- package/dist/collaboration/index.js.map +1 -0
- package/dist/collaboration/mail/MailFolderTree.d.ts +34 -0
- package/dist/collaboration/mail/index.d.ts +2 -0
- package/dist/collaboration/mail/mailFolders.d.ts +25 -0
- package/dist/collaboration/members/WorkspaceMembers.d.ts +74 -0
- package/dist/collaboration/members/index.d.ts +1 -0
- package/dist/collaboration/sharing/ShareControl.d.ts +38 -0
- package/dist/collaboration/sharing/index.d.ts +1 -0
- package/dist/components/Accordion.d.ts +12 -0
- package/dist/components/ActionLink.d.ts +18 -0
- package/dist/components/AskBar.d.ts +48 -0
- package/dist/components/AvatarBlock.d.ts +9 -0
- package/dist/components/Banner.d.ts +12 -0
- package/dist/components/BlockImage.d.ts +18 -0
- package/dist/components/CTABanner.d.ts +17 -0
- package/dist/components/Callout.d.ts +9 -0
- package/dist/components/Chart.d.ts +27 -0
- package/dist/components/CollectionDetail.d.ts +23 -0
- package/dist/components/Columns.d.ts +11 -0
- package/dist/components/ContactForm.d.ts +42 -0
- package/dist/components/Container.d.ts +11 -0
- package/dist/components/DataTable.d.ts +47 -0
- package/dist/components/DataTableBlock.d.ts +26 -0
- package/dist/components/EmptyState.d.ts +11 -0
- package/dist/components/EntityChip.d.ts +24 -0
- package/dist/components/EntityIdentityBar.d.ts +90 -0
- package/dist/components/EntityTooltip.d.ts +43 -0
- package/dist/components/FAQ.d.ts +14 -0
- package/dist/components/FeatureGrid.d.ts +18 -0
- package/dist/components/Footer.d.ts +25 -0
- package/dist/components/Gallery.d.ts +15 -0
- package/dist/components/Hero.d.ts +35 -0
- package/dist/components/ListBlock.d.ts +10 -0
- package/dist/components/LogoCloud.d.ts +12 -0
- package/dist/components/MediaText.d.ts +15 -0
- package/dist/components/MemberAvatarStack.d.ts +36 -0
- package/dist/components/MetricCard.d.ts +28 -0
- package/dist/components/Navbar.d.ts +39 -0
- package/dist/components/PageHeader.d.ts +15 -0
- package/dist/components/PricingTable.d.ts +19 -0
- package/dist/components/RichTextBlock.d.ts +10 -0
- package/dist/components/SectionHeading.d.ts +11 -0
- package/dist/components/Spacer.d.ts +7 -0
- package/dist/components/StatGroup.d.ts +12 -0
- package/dist/components/Steps.d.ts +12 -0
- package/dist/components/Tabs.d.ts +15 -0
- package/dist/components/TeamGrid.d.ts +18 -0
- package/dist/components/Testimonial.d.ts +9 -0
- package/dist/components/TestimonialGrid.d.ts +13 -0
- package/dist/components/ToneBadge.d.ts +18 -0
- package/dist/components/Toolbar.d.ts +11 -0
- package/dist/components/UsageMeter.d.ts +21 -0
- package/dist/components/VideoEmbed.d.ts +16 -0
- package/dist/components/assetImage.d.ts +16 -0
- package/dist/components/assetResolver.d.ts +57 -0
- package/dist/components/blockLink.d.ts +26 -0
- package/dist/components/tones.d.ts +14 -0
- package/dist/connect/index.cjs +65 -0
- package/dist/connect/index.cjs.map +1 -0
- package/dist/connect/index.d.ts +8 -0
- package/dist/connect/index.js +28 -0
- package/dist/connect/index.js.map +1 -0
- package/dist/connection/ArbiAppProvider.d.ts +16 -0
- package/dist/connection/ConnectionProvider.d.ts +50 -0
- package/dist/connection/ai.d.ts +99 -0
- package/dist/connection/types.d.ts +54 -0
- package/dist/connection/useImageGen.d.ts +22 -0
- package/dist/facts/FactComposer.d.ts +75 -0
- package/dist/facts/FactDateInput.d.ts +34 -0
- package/dist/facts/FactLabelsCell.d.ts +35 -0
- package/dist/facts/FactPassages.d.ts +52 -0
- package/dist/facts/FactRowActions.d.ts +18 -0
- package/dist/facts/FactSearchParts.d.ts +80 -0
- package/dist/facts/FactSourceGroup.d.ts +26 -0
- package/dist/facts/FactTimelineViews.d.ts +37 -0
- package/dist/facts/FactsBulkBar.d.ts +53 -0
- package/dist/facts/FactsEmptyState.d.ts +38 -0
- package/dist/facts/FactsFieldsButton.d.ts +21 -0
- package/dist/facts/FactsFilterInput.d.ts +46 -0
- package/dist/facts/FactsTable.d.ts +28 -0
- package/dist/facts/FactsToolbar.d.ts +53 -0
- package/dist/facts/FactsViewToggle.d.ts +36 -0
- package/dist/facts/fact-date.d.ts +22 -0
- package/dist/facts/fact-text.d.ts +14 -0
- package/dist/facts/factColumns.d.ts +88 -0
- package/dist/facts/index.cjs +2372 -0
- package/dist/facts/index.cjs.map +1 -0
- package/dist/facts/index.d.ts +34 -0
- package/dist/facts/index.js +2316 -0
- package/dist/facts/index.js.map +1 -0
- package/dist/facts/timezone.d.ts +4 -0
- package/dist/files/AiReviewDialog.d.ts +77 -0
- package/dist/files/DocStatusIcon.d.ts +12 -0
- package/dist/files/DocumentGrid.d.ts +27 -0
- package/dist/files/Explorer.d.ts +10 -0
- package/dist/files/ExplorerSurface.d.ts +34 -0
- package/dist/files/ExplorerTile.d.ts +142 -0
- package/dist/files/ExportParts.d.ts +114 -0
- package/dist/files/FieldParts.d.ts +64 -0
- package/dist/files/FilesPage.d.ts +20 -0
- package/dist/files/FilesToolbar.d.ts +59 -0
- package/dist/files/FolderPicker.d.ts +82 -0
- package/dist/files/GridView.d.ts +59 -0
- package/dist/files/HtmlViewerParts.d.ts +183 -0
- package/dist/files/MoveToFolderDialog.d.ts +32 -0
- package/dist/files/RedlineParts.d.ts +72 -0
- package/dist/files/SelectionBar.d.ts +65 -0
- package/dist/files/StatusPill.d.ts +23 -0
- package/dist/files/TagPassagePanel.d.ts +60 -0
- package/dist/files/UploadDropzone.d.ts +33 -0
- package/dist/files/UploadFooter.d.ts +59 -0
- package/dist/files/UploadParts.d.ts +78 -0
- package/dist/files/UploadSources.d.ts +77 -0
- package/dist/files/VersionTimeline.d.ts +60 -0
- package/dist/files/ViewToggle.d.ts +49 -0
- package/dist/files/ViewerChrome.d.ts +155 -0
- package/dist/files/ViewerLayout.d.ts +32 -0
- package/dist/files/ViewerParts.d.ts +62 -0
- package/dist/files/bulk/BulkActionsBar.d.ts +76 -0
- package/dist/files/bulk/FolderFilterButton.d.ts +35 -0
- package/dist/files/bulk/index.d.ts +2 -0
- package/dist/files/cells/DocumentNameCell.d.ts +31 -0
- package/dist/files/cells/FolderCell.d.ts +25 -0
- package/dist/files/cells/HoverIconCell.d.ts +21 -0
- package/dist/files/cells/LabelMultiSelect.d.ts +50 -0
- package/dist/files/cells/RelatedDocsCell.d.ts +22 -0
- package/dist/files/cells/TagColumnParts.d.ts +29 -0
- package/dist/files/cells/index.d.ts +6 -0
- package/dist/files/documentGridLayout.d.ts +31 -0
- package/dist/files/grid-test-ids.d.ts +18 -0
- package/dist/files/import/CalendarImportRow.d.ts +26 -0
- package/dist/files/import/ImportParts.d.ts +114 -0
- package/dist/files/import/TaskSection.d.ts +51 -0
- package/dist/files/import/UrlInputDialogView.d.ts +63 -0
- package/dist/files/import/VendorLogo.d.ts +15 -0
- package/dist/files/import/index.d.ts +5 -0
- package/dist/files/index.cjs +7589 -0
- package/dist/files/index.cjs.map +1 -0
- package/dist/files/index.d.ts +34 -0
- package/dist/files/index.js +7374 -0
- package/dist/files/index.js.map +1 -0
- package/dist/files/page/FilesAddMenu.d.ts +30 -0
- package/dist/files/page/FilesPageParts.d.ts +24 -0
- package/dist/files/page/FilesPageTitle.d.ts +24 -0
- package/dist/files/page/index.d.ts +3 -0
- package/dist/files/tags/BulkTagEditor.d.ts +136 -0
- package/dist/files/tags/DocTagPopover.d.ts +113 -0
- package/dist/files/tags/TagManager.d.ts +54 -0
- package/dist/files/tags/index.d.ts +3 -0
- package/dist/files/views/FieldsEditorParts.d.ts +151 -0
- package/dist/files/views/FieldsManagerParts.d.ts +17 -0
- package/dist/files/views/TagFormParts.d.ts +109 -0
- package/dist/files/views/ViewSelectorMenu.d.ts +66 -0
- package/dist/files/views/fieldsEditorModel.d.ts +43 -0
- package/dist/files/views/index.d.ts +5 -0
- package/dist/home/ActionMenuDialog.d.ts +26 -0
- package/dist/home/AddFilesFirst.d.ts +22 -0
- package/dist/home/CardHeaderBar.d.ts +40 -0
- package/dist/home/CollapsibleSection.d.ts +43 -0
- package/dist/home/CreateTile.d.ts +17 -0
- package/dist/home/DashboardParts.d.ts +32 -0
- package/dist/home/FactsStrip.d.ts +41 -0
- package/dist/home/FoldSection.d.ts +19 -0
- package/dist/home/GettingStartedStrip.d.ts +49 -0
- package/dist/home/Greeting.d.ts +18 -0
- package/dist/home/HomeLayout.d.ts +28 -0
- package/dist/home/KeyValueRow.d.ts +43 -0
- package/dist/home/ProjectBandParts.d.ts +70 -0
- package/dist/home/QuickActionDialogHeader.d.ts +21 -0
- package/dist/home/RecentList.d.ts +48 -0
- package/dist/home/ScopePicker.d.ts +65 -0
- package/dist/home/StartTiles.d.ts +33 -0
- package/dist/home/index.cjs +854 -0
- package/dist/home/index.cjs.map +1 -0
- package/dist/home/index.d.ts +37 -0
- package/dist/home/index.js +763 -0
- package/dist/home/index.js.map +1 -0
- package/dist/home/sections.d.ts +33 -0
- package/dist/index.cjs +1932 -5547
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +71 -1716
- package/dist/index.js +142 -5316
- package/dist/index.js.map +1 -1
- package/dist/lib/balanced-columns.d.ts +8 -0
- package/dist/lib/format.d.ts +37 -0
- package/dist/lib/observe-resize.d.ts +6 -0
- package/dist/lib/password-strength.d.ts +24 -0
- package/dist/lib/sidebar-mode.d.ts +46 -0
- package/dist/lib/testid.d.ts +7 -0
- package/dist/lib/use-drawer.d.ts +11 -0
- package/dist/lib/useControllableState.d.ts +5 -0
- package/dist/lib/useDismissibleCard.d.ts +15 -0
- package/dist/lib/useListKeyNav.d.ts +42 -0
- package/dist/lib/useLongPaste.d.ts +15 -0
- package/dist/lib/useRestoreFocus.d.ts +11 -0
- package/dist/lib/useScopeSelection.d.ts +34 -0
- package/dist/nav/types.d.ts +19 -0
- package/dist/provider/BlocksProvider.d.ts +20 -0
- package/dist/provider/TooltipScope.d.ts +9 -0
- package/dist/record/index.cjs +2 -4
- package/dist/record/index.cjs.map +1 -1
- package/dist/record/index.d.ts +12 -16
- package/dist/record/index.js +2 -4
- package/dist/record/index.js.map +1 -1
- package/dist/retrieval/HighlightText.d.ts +21 -0
- package/dist/retrieval/SearchEmptyState.d.ts +39 -0
- package/dist/retrieval/SearchGroupHeader.d.ts +21 -0
- package/dist/retrieval/SearchHit.d.ts +36 -0
- package/dist/retrieval/SearchPage.d.ts +187 -0
- package/dist/retrieval/SearchPagination.d.ts +21 -0
- package/dist/retrieval/highlight.d.ts +21 -0
- package/dist/retrieval/index.cjs +160 -0
- package/dist/retrieval/index.cjs.map +1 -0
- package/dist/retrieval/index.d.ts +7 -0
- package/dist/retrieval/index.js +7 -0
- package/dist/retrieval/index.js.map +1 -0
- package/dist/settings/AccountDialogs.d.ts +89 -0
- package/dist/settings/AvatarPicker.d.ts +25 -0
- package/dist/settings/Billing.d.ts +113 -0
- package/dist/settings/ConfigSwitcherBar.d.ts +46 -0
- package/dist/settings/ConfirmDialog.d.ts +28 -0
- package/dist/settings/ConnectionCard.d.ts +58 -0
- package/dist/settings/ConversationSettingsParts.d.ts +53 -0
- package/dist/settings/DocumentPicker.d.ts +57 -0
- package/dist/settings/EmailWorkspaceDialogView.d.ts +60 -0
- package/dist/settings/ErrorDialog.d.ts +36 -0
- package/dist/settings/FloatingPanel.d.ts +32 -0
- package/dist/settings/JsonTree.d.ts +24 -0
- package/dist/settings/LogoutDialog.d.ts +51 -0
- package/dist/settings/ModalBreadcrumbHeader.d.ts +32 -0
- package/dist/settings/ModalScaffold.d.ts +60 -0
- package/dist/settings/MultiSelect.d.ts +111 -0
- package/dist/settings/NotificationCategoryList.d.ts +26 -0
- package/dist/settings/PanelFrame.d.ts +47 -0
- package/dist/settings/PasswordChangeDialog.d.ts +64 -0
- package/dist/settings/PlanBadge.d.ts +14 -0
- package/dist/settings/PlanCard.d.ts +97 -0
- package/dist/settings/PremiumModelsFrame.d.ts +17 -0
- package/dist/settings/ProfileCard.d.ts +67 -0
- package/dist/settings/Projects.d.ts +108 -0
- package/dist/settings/QuotaMeter.d.ts +31 -0
- package/dist/settings/ReferralCredit.d.ts +46 -0
- package/dist/settings/SegmentedControl.d.ts +20 -0
- package/dist/settings/ServerConnectionControls.d.ts +31 -0
- package/dist/settings/SettingsPanel.d.ts +61 -0
- package/dist/settings/SettingsSwitchRow.d.ts +21 -0
- package/dist/settings/SubscriptionParts.d.ts +215 -0
- package/dist/settings/SupportPanel.d.ts +32 -0
- package/dist/settings/SyncDialogParts.d.ts +155 -0
- package/dist/settings/ThreadPreviewDialog.d.ts +18 -0
- package/dist/settings/TipsEditorDialog.d.ts +94 -0
- package/dist/settings/TriStateFilterMenu.d.ts +66 -0
- package/dist/settings/Usage.d.ts +102 -0
- package/dist/settings/WelcomeDialog.d.ts +79 -0
- package/dist/settings/index.cjs +5131 -0
- package/dist/settings/index.cjs.map +1 -0
- package/dist/settings/index.d.ts +38 -0
- package/dist/settings/index.js +4922 -0
- package/dist/settings/index.js.map +1 -0
- package/dist/shell/ActionCluster.d.ts +28 -0
- package/dist/shell/AskField.d.ts +71 -0
- package/dist/shell/InfoBar.d.ts +20 -0
- package/dist/shell/MobileBars.d.ts +47 -0
- package/dist/shell/OfflinePill.d.ts +28 -0
- package/dist/shell/RemoteControlPill.d.ts +23 -0
- package/dist/shell/Shell.d.ts +123 -0
- package/dist/shell/Sidebar.d.ts +104 -0
- package/dist/shell/SidebarBadgeRow.d.ts +29 -0
- package/dist/shell/SidebarRowAction.d.ts +24 -0
- package/dist/shell/StatusRow.d.ts +20 -0
- package/dist/shell/TabHeader.d.ts +70 -0
- package/dist/shell/TipCard.d.ts +46 -0
- package/dist/shell/ToolButton.d.ts +12 -0
- package/dist/shell/Workspace.d.ts +90 -0
- package/dist/shell/index.cjs +187 -0
- package/dist/shell/index.cjs.map +1 -0
- package/dist/shell/index.d.ts +20 -0
- package/dist/shell/index.js +10 -0
- package/dist/shell/index.js.map +1 -0
- package/dist/shell/sidebar-context.d.ts +19 -0
- package/dist/shell/types.d.ts +48 -0
- package/dist/site/index.cjs +113 -90
- package/dist/site/index.d.ts +59 -4
- package/dist/site/index.js +8 -1
- package/dist/studio/PageRenderer.d.ts +35 -0
- package/dist/studio/Section.d.ts +24 -0
- package/dist/studio/StudioEditor.d.ts +32 -0
- package/dist/studio/aiFields.d.ts +17 -0
- package/dist/studio/blockKit.d.ts +36 -0
- package/dist/studio/blocksConfig.d.ts +42 -0
- package/dist/studio/imageFields.d.ts +14 -0
- package/dist/studio/index.cjs +3353 -0
- package/dist/studio/index.cjs.map +1 -0
- package/dist/studio/index.d.ts +32 -0
- package/dist/studio/index.js +3297 -0
- package/dist/studio/index.js.map +1 -0
- package/dist/studio/liveData.d.ts +4 -0
- package/dist/studio/liveWidgetRuntime.d.ts +41 -0
- package/dist/studio/persistence.d.ts +38 -0
- package/dist/studio/publish.d.ts +39 -0
- package/dist/studio/siteBlocks.d.ts +14 -0
- package/dist/studio/types.d.ts +46 -0
- package/dist/studio/websiteBlocks.d.ts +4 -0
- package/dist/studio/widgets.d.ts +20 -0
- package/dist/theme/ThemeEditor.d.ts +16 -0
- package/dist/theme/fontPairings.d.ts +48 -0
- package/dist/theme/store.d.ts +53 -0
- package/dist/theme/tokens.d.ts +105 -0
- package/dist/timeline/Timeline.d.ts +27 -0
- package/dist/timeline/TimelineCalendar.d.ts +54 -0
- package/dist/timeline/TimelineGantt.d.ts +71 -0
- package/dist/timeline/TimelineZoomControl.d.ts +17 -0
- package/dist/timeline/index.cjs +50 -0
- package/dist/timeline/index.cjs.map +1 -0
- package/dist/timeline/index.d.ts +13 -0
- package/dist/timeline/index.js +5 -0
- package/dist/timeline/index.js.map +1 -0
- package/dist/timeline/span.d.ts +29 -0
- package/dist/timeline/types.d.ts +30 -0
- package/dist/workspaces/WorkspaceBadges.d.ts +27 -0
- package/dist/workspaces/WorkspaceCard.d.ts +142 -0
- package/dist/workspaces/WorkspaceFormParts.d.ts +98 -0
- package/dist/workspaces/WorkspaceGroup.d.ts +31 -0
- package/dist/workspaces/WorkspaceSettingsParts.d.ts +70 -0
- package/dist/workspaces/index.cjs +690 -0
- package/dist/workspaces/index.cjs.map +1 -0
- package/dist/workspaces/index.d.ts +9 -0
- package/dist/workspaces/index.js +661 -0
- package/dist/workspaces/index.js.map +1 -0
- package/package.json +164 -9
- package/src/blocks.css +348 -0
- package/src/components/grid.css +60 -107
- package/src/source.css +20 -0
- package/src/studio/studio.css +3 -3
- package/src/tokens.css +226 -0
- package/dist/chunk-DBAUZD7A.cjs.map +0 -1
- package/dist/chunk-FZ2S6VAZ.js.map +0 -1
- package/dist/index-DduoEosi.d.cts +0 -846
- package/dist/index-DduoEosi.d.ts +0 -846
- package/dist/index.d.cts +0 -1717
- package/dist/record/index.d.cts +0 -96
- package/dist/site/index.d.cts +0 -4
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type AgentOption, type AgentSelectLabels } from '../workflows/AgentSelect';
|
|
3
|
+
import { type SchemaFormLabels } from '../workflows/SchemaForm';
|
|
4
|
+
import type { WorkflowDefinition, WorkflowInputs } from '../workflows/types';
|
|
5
|
+
import { type RecurrenceBuilderProps } from './RecurrenceBuilder';
|
|
6
|
+
/** When the task runs. `now` is on demand; the rest are scheduled. */
|
|
7
|
+
export type TaskWhen = 'now' | 'once' | 'repeat' | 'event';
|
|
8
|
+
export type TaskAccessMode = 'ask_each_run' | 'standing';
|
|
9
|
+
/** Everything the composer collects. The host maps it onto its API. */
|
|
10
|
+
export interface TaskComposerValues {
|
|
11
|
+
workflowId: string;
|
|
12
|
+
inputs: WorkflowInputs;
|
|
13
|
+
when: TaskWhen;
|
|
14
|
+
/** datetime-local value (`once`). */
|
|
15
|
+
runAt: string;
|
|
16
|
+
rrule: string;
|
|
17
|
+
timezone: string;
|
|
18
|
+
eventKind: string;
|
|
19
|
+
/** `''` = the user's own assistant. */
|
|
20
|
+
agentId: string;
|
|
21
|
+
/** Empty = derived from the workflow title by the host. */
|
|
22
|
+
name: string;
|
|
23
|
+
notifyOnComplete: boolean;
|
|
24
|
+
/** Draft the plan first and let the user approve it before anything is created. */
|
|
25
|
+
reviewPlan: boolean;
|
|
26
|
+
/** Only asked for scheduled tasks, folded under More options. */
|
|
27
|
+
access: TaskAccessMode;
|
|
28
|
+
}
|
|
29
|
+
export interface TaskComposerLabels {
|
|
30
|
+
titleNew: string;
|
|
31
|
+
titleEdit: string;
|
|
32
|
+
description: string;
|
|
33
|
+
what: string;
|
|
34
|
+
whatHint: string;
|
|
35
|
+
whatPlaceholder: string;
|
|
36
|
+
when: string;
|
|
37
|
+
whenOptions: Record<TaskWhen, string>;
|
|
38
|
+
runAt: string;
|
|
39
|
+
event: string;
|
|
40
|
+
eventPlaceholder: string;
|
|
41
|
+
eventHint: ReactNode;
|
|
42
|
+
who: string;
|
|
43
|
+
more: string;
|
|
44
|
+
goalAndPlan: string;
|
|
45
|
+
reviewPlan: string;
|
|
46
|
+
reviewPlanHint: string;
|
|
47
|
+
outputs: string;
|
|
48
|
+
outputChat: string;
|
|
49
|
+
outputChatHint: string;
|
|
50
|
+
outputArtifacts: string;
|
|
51
|
+
outputFileMetadata: string;
|
|
52
|
+
tools: string;
|
|
53
|
+
toolsFromAgent: string;
|
|
54
|
+
notSupportedYet: string;
|
|
55
|
+
name: string;
|
|
56
|
+
namePlaceholder: string;
|
|
57
|
+
timezone: string;
|
|
58
|
+
notify: string;
|
|
59
|
+
notifyHint: string;
|
|
60
|
+
access: string;
|
|
61
|
+
accessOptions: Record<TaskAccessMode, {
|
|
62
|
+
label: string;
|
|
63
|
+
hint: string;
|
|
64
|
+
}>;
|
|
65
|
+
accessNow: string;
|
|
66
|
+
lockedAfterCreation: string;
|
|
67
|
+
cancel: string;
|
|
68
|
+
runNow: string;
|
|
69
|
+
schedule: string;
|
|
70
|
+
save: string;
|
|
71
|
+
saving: string;
|
|
72
|
+
}
|
|
73
|
+
export declare const DEFAULT_TASK_COMPOSER_LABELS: TaskComposerLabels;
|
|
74
|
+
export interface TaskComposerProps {
|
|
75
|
+
open: boolean;
|
|
76
|
+
onOpenChange: (open: boolean) => void;
|
|
77
|
+
/** Editing an existing task: the schedule kind and the agent are fixed. */
|
|
78
|
+
isEdit?: boolean;
|
|
79
|
+
/** Workflows a task can run. The host includes its "my own instruction" entry. */
|
|
80
|
+
workflows: WorkflowDefinition[];
|
|
81
|
+
agents: AgentOption[];
|
|
82
|
+
/** Controlled values; omit to let the composer hold them (seeded by `initialValues`). */
|
|
83
|
+
values?: TaskComposerValues;
|
|
84
|
+
initialValues?: Partial<TaskComposerValues>;
|
|
85
|
+
onValuesChange?: (values: TaskComposerValues) => void;
|
|
86
|
+
timezones?: string[];
|
|
87
|
+
/** The goal and success-criteria editor, in its own folded section. Omit when not applicable. */
|
|
88
|
+
goal?: ReactNode | ((values: TaskComposerValues) => ReactNode);
|
|
89
|
+
/** What "always allowed" means for this agent (e.g. the workspaces it will hold standing access to). */
|
|
90
|
+
standingAccess?: ReactNode | ((values: TaskComposerValues) => ReactNode);
|
|
91
|
+
/** Offer the "show me the plan first" switch (needs a host that can draft a plan). */
|
|
92
|
+
canReviewPlan?: boolean;
|
|
93
|
+
isPending?: boolean;
|
|
94
|
+
onSubmit: (values: TaskComposerValues) => void;
|
|
95
|
+
/** The task's workflow input forms: `renderIcon` maps a field option's icon key. */
|
|
96
|
+
renderIcon?: (key: string) => ReactNode;
|
|
97
|
+
labels?: Partial<TaskComposerLabels>;
|
|
98
|
+
formLabels?: Partial<SchemaFormLabels>;
|
|
99
|
+
agentLabels?: Partial<AgentSelectLabels>;
|
|
100
|
+
recurrence?: Pick<RecurrenceBuilderProps, 'testIds' | 'labels'>;
|
|
101
|
+
testId?: string;
|
|
102
|
+
}
|
|
103
|
+
export declare function defaultTaskComposerValues(workflows: WorkflowDefinition[], initial?: Partial<TaskComposerValues>): TaskComposerValues;
|
|
104
|
+
/**
|
|
105
|
+
* One dialog to create or schedule a task: pick a workflow, fill its form, say when, say who.
|
|
106
|
+
* Name, notification, access mode and the goal checklist live folded under More options.
|
|
107
|
+
*/
|
|
108
|
+
export declare function TaskComposer({ open, onOpenChange, isEdit, workflows, agents, values: valuesProp, initialValues, onValuesChange, timezones, goal, canReviewPlan, standingAccess, isPending, onSubmit, renderIcon, labels, formLabels, agentLabels, recurrence, testId, }: TaskComposerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export interface TaskPlanCriterionView {
|
|
2
|
+
id: string;
|
|
3
|
+
text: string;
|
|
4
|
+
}
|
|
5
|
+
/** Reviewable definition-of-done for a goal task. Extra fields on the caller's type are preserved. */
|
|
6
|
+
export interface TaskPlanView {
|
|
7
|
+
goal: string;
|
|
8
|
+
criteria: TaskPlanCriterionView[];
|
|
9
|
+
max_passes: number;
|
|
10
|
+
documents: string[];
|
|
11
|
+
}
|
|
12
|
+
/** Fixed strings of the goal-plan editor. */
|
|
13
|
+
export interface TaskPlanLabels {
|
|
14
|
+
emptyTitle: string;
|
|
15
|
+
emptyBody: string;
|
|
16
|
+
drafting: string;
|
|
17
|
+
generate: string;
|
|
18
|
+
needWorkspace: string;
|
|
19
|
+
needObjective: string;
|
|
20
|
+
goalTask: string;
|
|
21
|
+
/** "scoped to {workspace}" prefix. */
|
|
22
|
+
scopedTo: string;
|
|
23
|
+
redraft: string;
|
|
24
|
+
removePlan: string;
|
|
25
|
+
goal: string;
|
|
26
|
+
goalPlaceholder: string;
|
|
27
|
+
checklist: string;
|
|
28
|
+
/** e.g. "3 criteria". */
|
|
29
|
+
criteriaCount: (count: number) => string;
|
|
30
|
+
add: string;
|
|
31
|
+
noCriteria: string;
|
|
32
|
+
criterionPlaceholder: string;
|
|
33
|
+
removeCriterion: (id: string) => string;
|
|
34
|
+
retryBudget: string;
|
|
35
|
+
/** e.g. "up to 3 passes". */
|
|
36
|
+
passes: (count: number) => string;
|
|
37
|
+
passesHelp: string;
|
|
38
|
+
workingDocuments: string;
|
|
39
|
+
workingDocumentsHelp: string;
|
|
40
|
+
}
|
|
41
|
+
export declare const DEFAULT_TASK_PLAN_LABELS: TaskPlanLabels;
|
|
42
|
+
export interface TaskPlanTestIds {
|
|
43
|
+
generate: string;
|
|
44
|
+
editor: string;
|
|
45
|
+
regenerate: string;
|
|
46
|
+
remove: string;
|
|
47
|
+
goal: string;
|
|
48
|
+
addCriterion: string;
|
|
49
|
+
criteria: string;
|
|
50
|
+
passes: string;
|
|
51
|
+
documents: string;
|
|
52
|
+
/** Per criterion index (default `task-plan-criterion-{idx}`). */
|
|
53
|
+
criterion: (idx: number) => string;
|
|
54
|
+
/** Per criterion index (default `task-plan-remove-criterion-{idx}`). */
|
|
55
|
+
removeCriterionButton: (idx: number) => string;
|
|
56
|
+
}
|
|
57
|
+
export interface TaskPlanProps<P extends TaskPlanView> {
|
|
58
|
+
/** The current plan, or null when the task has no plan yet. */
|
|
59
|
+
plan: P | null;
|
|
60
|
+
/** Called with the edited plan, or null when the plan is removed. */
|
|
61
|
+
onChange: (plan: P | null) => void;
|
|
62
|
+
/** Draft a plan from the objective. */
|
|
63
|
+
onGenerate: () => void;
|
|
64
|
+
isGenerating: boolean;
|
|
65
|
+
/** The active workspace the plan is scoped to (null: none open, so generating is disabled). */
|
|
66
|
+
workspaceName: string | null;
|
|
67
|
+
/** The objective the planner drafts from (the task's prompt). */
|
|
68
|
+
objective: string;
|
|
69
|
+
testIds?: Partial<TaskPlanTestIds>;
|
|
70
|
+
labels?: Partial<TaskPlanLabels>;
|
|
71
|
+
}
|
|
72
|
+
/** Stable, collision-free criterion ids (c1, c2, ...) by high-water mark, independent of order. */
|
|
73
|
+
export declare function nextCriterionId(criteria: TaskPlanCriterionView[]): string;
|
|
74
|
+
/**
|
|
75
|
+
* Goal-plan editor: empty-state pitch with a single Generate action, or (with a plan) goal,
|
|
76
|
+
* acceptance checklist, retry budget and working documents.
|
|
77
|
+
*/
|
|
78
|
+
export declare function TaskPlan<P extends TaskPlanView>({ plan, onChange, onGenerate, isGenerating, workspaceName, objective, testIds, labels, }: TaskPlanProps<P>): import("react").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export interface TaskRowActionsLabels {
|
|
2
|
+
grantAccess: string;
|
|
3
|
+
watch: string;
|
|
4
|
+
runNow: string;
|
|
5
|
+
pause: string;
|
|
6
|
+
resume: string;
|
|
7
|
+
history: string;
|
|
8
|
+
edit: string;
|
|
9
|
+
delete: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const DEFAULT_TASK_ROW_ACTIONS_LABELS: TaskRowActionsLabels;
|
|
12
|
+
/** Per-row test ids derived from the task id (defaults `task-run-{id}`, ...). */
|
|
13
|
+
export interface TaskRowActionsTestIds {
|
|
14
|
+
grant: (id: string) => string;
|
|
15
|
+
watch: (id: string) => string;
|
|
16
|
+
run: (id: string) => string;
|
|
17
|
+
pause: (id: string) => string;
|
|
18
|
+
history: (id: string) => string;
|
|
19
|
+
edit: (id: string) => string;
|
|
20
|
+
delete: (id: string) => string;
|
|
21
|
+
}
|
|
22
|
+
export interface TaskRowActionsProps {
|
|
23
|
+
/** Task id: keys the test ids (`task-run-{id}`, ...). */
|
|
24
|
+
id: string;
|
|
25
|
+
/** active | paused | completed | failed. Pause/Resume is hidden once terminal. */
|
|
26
|
+
status: string;
|
|
27
|
+
inProgress?: boolean;
|
|
28
|
+
/** Disables run/pause/delete while a mutation is in flight. */
|
|
29
|
+
busy?: boolean;
|
|
30
|
+
/** When set (a run waits for access), a one-click "allow access and continue" appears. */
|
|
31
|
+
onGrantAccess?: () => void;
|
|
32
|
+
/** When set (a run exposes its live conversation), a Watch action appears. */
|
|
33
|
+
onWatch?: () => void;
|
|
34
|
+
onRunNow: () => void;
|
|
35
|
+
onTogglePause: () => void;
|
|
36
|
+
onEdit: () => void;
|
|
37
|
+
onDelete: () => void;
|
|
38
|
+
onViewHistory: () => void;
|
|
39
|
+
testIds?: Partial<TaskRowActionsTestIds>;
|
|
40
|
+
labels?: Partial<TaskRowActionsLabels>;
|
|
41
|
+
}
|
|
42
|
+
/** Row actions for the Tasks grid: watch live, run now, pause/resume, history, edit, delete. */
|
|
43
|
+
export declare function TaskRowActions({ id, status, inProgress, busy, onWatch, onGrantAccess, onRunNow, onTogglePause, onEdit, onDelete, onViewHistory, testIds, labels, }: TaskRowActionsProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface TaskRunView {
|
|
2
|
+
id: string;
|
|
3
|
+
/** running | success | failed (others get a neutral pill). */
|
|
4
|
+
status: string;
|
|
5
|
+
/** Formatted finish (or start) time; empty for none. */
|
|
6
|
+
when?: string;
|
|
7
|
+
error?: string | null;
|
|
8
|
+
/** The conversation the run's messages landed in; enables Open. */
|
|
9
|
+
conversationId?: string | null;
|
|
10
|
+
}
|
|
11
|
+
/** Fixed strings of the run-history dialog. */
|
|
12
|
+
export interface TaskRunsDialogLabels {
|
|
13
|
+
/** Dialog title; receives the task name. */
|
|
14
|
+
title: (taskName: string | undefined) => string;
|
|
15
|
+
description: string;
|
|
16
|
+
loading: string;
|
|
17
|
+
empty: string;
|
|
18
|
+
open: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const DEFAULT_TASK_RUNS_DIALOG_LABELS: TaskRunsDialogLabels;
|
|
21
|
+
export interface TaskRunsDialogTestIds {
|
|
22
|
+
modal: string;
|
|
23
|
+
empty: string;
|
|
24
|
+
list: string;
|
|
25
|
+
row: string;
|
|
26
|
+
open: string;
|
|
27
|
+
}
|
|
28
|
+
export interface TaskRunsDialogProps {
|
|
29
|
+
open: boolean;
|
|
30
|
+
onOpenChange: (open: boolean) => void;
|
|
31
|
+
taskName?: string;
|
|
32
|
+
runs: TaskRunView[];
|
|
33
|
+
isLoading: boolean;
|
|
34
|
+
/** Jump into a run's conversation (the dialog closes afterwards). */
|
|
35
|
+
onOpenRun: (conversationId: string) => void;
|
|
36
|
+
/** Destination of a run's conversation; makes Open a real link. */
|
|
37
|
+
getRunHref?: (run: TaskRunView) => string | undefined;
|
|
38
|
+
testIds?: Partial<TaskRunsDialogTestIds>;
|
|
39
|
+
labels?: Partial<TaskRunsDialogLabels>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* A task's run history. History is derived server-side from the run bookend notifications; each
|
|
43
|
+
* run links to the conversation where its steps / goal / answer stream in the Message timeline.
|
|
44
|
+
*/
|
|
45
|
+
export declare function TaskRunsDialog({ open, onOpenChange, taskName, runs, isLoading, onOpenRun, getRunHref, testIds, labels, }: TaskRunsDialogProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** Fixed strings of the Tasks page chrome. */
|
|
2
|
+
export interface TasksChromeLabels {
|
|
3
|
+
tasksTab: string;
|
|
4
|
+
newTask: string;
|
|
5
|
+
delete: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const DEFAULT_TASKS_CHROME_LABELS: TasksChromeLabels;
|
|
8
|
+
export interface TasksToolbarProps {
|
|
9
|
+
/** Number of tasks (shown on the single "Tasks" tab). */
|
|
10
|
+
count: number;
|
|
11
|
+
onNewTask: () => void;
|
|
12
|
+
/** The list is empty: its empty state carries the one filled button, so this one goes tonal. */
|
|
13
|
+
isEmpty?: boolean;
|
|
14
|
+
testIds?: Partial<{
|
|
15
|
+
tab: string;
|
|
16
|
+
newTask: string;
|
|
17
|
+
}>;
|
|
18
|
+
labels?: Partial<TasksChromeLabels>;
|
|
19
|
+
}
|
|
20
|
+
/** The Tasks page header: one "Tasks" tab with a count, and New task (the page's primary action). */
|
|
21
|
+
export declare function TasksToolbar({ count, onNewTask, isEmpty, testIds, labels }: TasksToolbarProps): import("react").JSX.Element;
|
|
22
|
+
/** Empty-state action for the Tasks grid. */
|
|
23
|
+
export declare function NewTaskEmptyAction({ onNewTask, testId, labels, }: {
|
|
24
|
+
onNewTask: () => void;
|
|
25
|
+
testId?: string;
|
|
26
|
+
labels?: Partial<TasksChromeLabels>;
|
|
27
|
+
}): import("react").JSX.Element;
|
|
28
|
+
export interface TasksBulkBarProps {
|
|
29
|
+
count: number;
|
|
30
|
+
onClear: () => void;
|
|
31
|
+
onDelete: () => void;
|
|
32
|
+
testId?: string;
|
|
33
|
+
labels?: Partial<TasksChromeLabels>;
|
|
34
|
+
}
|
|
35
|
+
/** Bulk bar for selected tasks (Delete). */
|
|
36
|
+
export declare function TasksBulkBar({ count, onClear, onDelete, testId, labels }: TasksBulkBarProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export interface UploadTaskItemLabels {
|
|
3
|
+
/** Delete action text (failed rows). */
|
|
4
|
+
delete: string;
|
|
5
|
+
/** Delete action tooltip. */
|
|
6
|
+
deleteTitle: string;
|
|
7
|
+
/** aria-label of the progress bar. */
|
|
8
|
+
progress: (fileName: string) => string;
|
|
9
|
+
/** Status line text; the default capitalises the raw status. */
|
|
10
|
+
status: (status: string, percent: number) => string;
|
|
11
|
+
}
|
|
12
|
+
export declare const DEFAULT_UPLOAD_TASK_ITEM_LABELS: UploadTaskItemLabels;
|
|
13
|
+
/** Per-row test ids derived from the task id (defaults `task-item-{id}`, ...). */
|
|
14
|
+
export interface UploadTaskItemTestIds {
|
|
15
|
+
item: (taskId: string) => string;
|
|
16
|
+
fileName: (taskId: string) => string;
|
|
17
|
+
progressBar: (taskId: string) => string;
|
|
18
|
+
status: (taskId: string) => string;
|
|
19
|
+
delete: (taskId: string) => string;
|
|
20
|
+
}
|
|
21
|
+
export interface UploadTaskItemProps {
|
|
22
|
+
taskId: string;
|
|
23
|
+
fileName: string;
|
|
24
|
+
/** queued | parsing | encrypting | indexing | analysing | completed | failed | skipped | empty | low-content */
|
|
25
|
+
status: string;
|
|
26
|
+
/** 0-1 fraction or 0-100 percentage. */
|
|
27
|
+
progress: number;
|
|
28
|
+
startTime?: number;
|
|
29
|
+
endTime?: number;
|
|
30
|
+
/** File-type icon for the row (the app maps the extension). */
|
|
31
|
+
fileIcon?: ReactNode;
|
|
32
|
+
/** Shown as a Delete action on failed tasks. */
|
|
33
|
+
onDelete?: (taskId: string) => void;
|
|
34
|
+
testIds?: Partial<UploadTaskItemTestIds>;
|
|
35
|
+
labels?: Partial<UploadTaskItemLabels>;
|
|
36
|
+
className?: string;
|
|
37
|
+
}
|
|
38
|
+
/** One document-processing row: status icon, file, progress bar, status text + elapsed time. */
|
|
39
|
+
export declare function UploadTaskItem({ taskId, fileName, status, progress, startTime, endTime, fileIcon, onDelete, testIds, labels, className, }: UploadTaskItemProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type UploadTaskItemLabels } from './UploadTaskItem';
|
|
3
|
+
export interface UploadTaskView {
|
|
4
|
+
fileName: string;
|
|
5
|
+
status: string;
|
|
6
|
+
progress: number;
|
|
7
|
+
startTime?: number;
|
|
8
|
+
endTime?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface UploadTaskListProps {
|
|
11
|
+
tasks: Record<string, UploadTaskView>;
|
|
12
|
+
/** Include only matching tasks. */
|
|
13
|
+
filter?: (taskId: string, task: UploadTaskView) => boolean;
|
|
14
|
+
title?: string;
|
|
15
|
+
onDelete?: (taskId: string) => void;
|
|
16
|
+
/** File-type icon per file name. */
|
|
17
|
+
renderFileIcon?: (fileName: string) => ReactNode;
|
|
18
|
+
/** Render the "No documents in this category" message when empty (default true). */
|
|
19
|
+
showEmptyState?: boolean;
|
|
20
|
+
testIds?: Partial<{
|
|
21
|
+
root: string;
|
|
22
|
+
empty: string;
|
|
23
|
+
title: string;
|
|
24
|
+
}>;
|
|
25
|
+
labels?: Partial<UploadTaskListLabels>;
|
|
26
|
+
/** Labels forwarded to every row. */
|
|
27
|
+
itemLabels?: Partial<UploadTaskItemLabels>;
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface UploadTaskListLabels {
|
|
31
|
+
title: string;
|
|
32
|
+
empty: string;
|
|
33
|
+
}
|
|
34
|
+
export declare const DEFAULT_UPLOAD_TASK_LIST_LABELS: UploadTaskListLabels;
|
|
35
|
+
export declare function UploadTaskList({ tasks, filter, title, onDelete, renderFileIcon, showEmptyState, testIds, labels, itemLabels, className, }: UploadTaskListProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { TaskPlan, DEFAULT_TASK_PLAN_LABELS, nextCriterionId, type TaskPlanLabels, type TaskPlanTestIds, type TaskPlanProps, type TaskPlanView, type TaskPlanCriterionView, } from './TaskPlan';
|
|
2
|
+
export { UploadTaskItem, DEFAULT_UPLOAD_TASK_ITEM_LABELS, type UploadTaskItemProps, type UploadTaskItemLabels, type UploadTaskItemTestIds, } from './UploadTaskItem';
|
|
3
|
+
export { formatElapsed } from './elapsed';
|
|
4
|
+
export { UploadTaskList, DEFAULT_UPLOAD_TASK_LIST_LABELS, type UploadTaskListProps, type UploadTaskListLabels, type UploadTaskView, } from './UploadTaskList';
|
|
5
|
+
export { LiveRunsBanner, DEFAULT_LIVE_RUNS_BANNER_LABELS, type LiveRun, type LiveRunsBannerProps, type LiveRunsBannerLabels, } from './LiveRunsBanner';
|
|
6
|
+
export { RecurrenceBuilder, DEFAULT_RECURRENCE_BUILDER_LABELS, type RecurrenceBuilderProps, type RecurrenceBuilderLabels, type RecurrenceBuilderTestIds, } from './RecurrenceBuilder';
|
|
7
|
+
export * from './rrule';
|
|
8
|
+
export { ACTION_LABELS, STATUS_LABELS, TRIGGER_LABELS, goalProgress, statusBadgeVariant, type TaskActionType, type TaskBadgeVariant, type TaskGoalState, type TaskStatusKey, type TaskTriggerType, } from './taskLabels';
|
|
9
|
+
export { TaskRowActions, DEFAULT_TASK_ROW_ACTIONS_LABELS, type TaskRowActionsProps, type TaskRowActionsLabels, type TaskRowActionsTestIds, } from './TaskRowActions';
|
|
10
|
+
export { createTaskColumns, DEFAULT_TASK_COLUMN_LABELS, type TaskColumnSlots, type TaskColumnLabels, type TaskColumnTestIds, type TaskRowView, } from './taskColumns';
|
|
11
|
+
export { TaskRunsDialog, DEFAULT_TASK_RUNS_DIALOG_LABELS, type TaskRunsDialogProps, type TaskRunsDialogLabels, type TaskRunsDialogTestIds, type TaskRunView, } from './TaskRunsDialog';
|
|
12
|
+
export { TasksToolbar, NewTaskEmptyAction, TasksBulkBar, DEFAULT_TASKS_CHROME_LABELS, type TasksChromeLabels, type TasksToolbarProps, type TasksBulkBarProps, } from './TasksChrome';
|
|
13
|
+
export { TaskComposer, DEFAULT_TASK_COMPOSER_LABELS, defaultTaskComposerValues, type TaskComposerProps, type TaskComposerLabels, type TaskComposerValues, type TaskWhen, type TaskAccessMode, } from './TaskComposer';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal RRULE helpers for the Tasks recurrence builder.
|
|
3
|
+
*
|
|
4
|
+
* We only generate the constrained subset the friendly builder needs
|
|
5
|
+
* (FREQ=DAILY|WEEKLY|MONTHLY with BYDAY / BYMONTHDAY + BYHOUR/BYMINUTE). The
|
|
6
|
+
* backend (dateutil) is the source of truth for validation — these strings are
|
|
7
|
+
* a valid subset of iCal RRULE. Power users can still hand-write any RRULE in
|
|
8
|
+
* the advanced field; `describeRRule` falls back to the raw string for rules
|
|
9
|
+
* outside the builder's subset.
|
|
10
|
+
*/
|
|
11
|
+
export type RecurrenceFrequency = 'daily' | 'weekly' | 'monthly';
|
|
12
|
+
/** iCal two-letter weekday codes, in display order (Mon-first). */
|
|
13
|
+
export declare const WEEKDAYS: readonly ["MO", "TU", "WE", "TH", "FR", "SA", "SU"];
|
|
14
|
+
export type Weekday = (typeof WEEKDAYS)[number];
|
|
15
|
+
export interface RecurrencePreset {
|
|
16
|
+
frequency: RecurrenceFrequency;
|
|
17
|
+
/** Selected weekdays (weekly only). */
|
|
18
|
+
weekdays: Weekday[];
|
|
19
|
+
/** Day of month 1-31 (monthly only). */
|
|
20
|
+
monthDay: number;
|
|
21
|
+
/** Hour 0-23. */
|
|
22
|
+
hour: number;
|
|
23
|
+
/** Minute 0-59. */
|
|
24
|
+
minute: number;
|
|
25
|
+
}
|
|
26
|
+
export declare const DEFAULT_RECURRENCE: RecurrencePreset;
|
|
27
|
+
/** Build an RRULE string from the friendly preset. */
|
|
28
|
+
export declare function buildRRule(preset: RecurrencePreset): string;
|
|
29
|
+
/**
|
|
30
|
+
* Best-effort parse of an RRULE back into the builder's preset. Returns null
|
|
31
|
+
* for rules outside the supported subset (so the editor shows the advanced
|
|
32
|
+
* raw field instead).
|
|
33
|
+
*/
|
|
34
|
+
export declare function parseRRule(rrule: string | null | undefined): RecurrencePreset | null;
|
|
35
|
+
/** Human-readable summary of an RRULE; falls back to the raw rule when unknown. */
|
|
36
|
+
export declare function describeRRule(rrule: string | null | undefined): string;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Column definitions for the Tasks grid. Every column has an explicit `colId` (AG Grid persists
|
|
3
|
+
* column state by id: see CLAUDE.md). The app supplies the row actions and formatters as slots.
|
|
4
|
+
*/
|
|
5
|
+
import type { ReactNode } from 'react';
|
|
6
|
+
import type { ColDef } from 'ag-grid-community';
|
|
7
|
+
/** The fields of a task the grid reads. Callers' richer types are accepted as-is. */
|
|
8
|
+
export interface TaskRowView {
|
|
9
|
+
external_id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
trigger_type: string;
|
|
12
|
+
action_type: string;
|
|
13
|
+
skill_ref?: string | null;
|
|
14
|
+
is_goal_task?: boolean | null;
|
|
15
|
+
goal_state?: unknown;
|
|
16
|
+
workspace_ext_id?: string | null;
|
|
17
|
+
agent_ext_id?: string | null;
|
|
18
|
+
status: string;
|
|
19
|
+
in_progress?: boolean | null;
|
|
20
|
+
next_run_at?: string | null;
|
|
21
|
+
last_run_at?: string | null;
|
|
22
|
+
last_error?: string | null;
|
|
23
|
+
/** Set while a run waits for the owner to grant access. */
|
|
24
|
+
pending_auth_request_id?: string | null;
|
|
25
|
+
}
|
|
26
|
+
/** Fixed strings of the Tasks grid. */
|
|
27
|
+
export interface TaskColumnLabels {
|
|
28
|
+
name: string;
|
|
29
|
+
trigger: string;
|
|
30
|
+
action: string;
|
|
31
|
+
target: string;
|
|
32
|
+
status: string;
|
|
33
|
+
nextRun: string;
|
|
34
|
+
lastRun: string;
|
|
35
|
+
untitled: string;
|
|
36
|
+
goal: string;
|
|
37
|
+
workspace: string;
|
|
38
|
+
defaultAgent: string;
|
|
39
|
+
running: string;
|
|
40
|
+
/** A run is waiting for the owner to allow access. */
|
|
41
|
+
waitingForAccess: string;
|
|
42
|
+
never: string;
|
|
43
|
+
/** Goal progress, e.g. "2/3 met". */
|
|
44
|
+
goalMet: (met: number, total: number) => string;
|
|
45
|
+
}
|
|
46
|
+
export declare const DEFAULT_TASK_COLUMN_LABELS: TaskColumnLabels;
|
|
47
|
+
/** Per-task test ids derived from the task id (defaults `task-name-{id}`, ...). */
|
|
48
|
+
export interface TaskColumnTestIds {
|
|
49
|
+
name: (id: string) => string;
|
|
50
|
+
goalBadge: (id: string) => string;
|
|
51
|
+
goalProgress: (id: string) => string;
|
|
52
|
+
error: (id: string) => string;
|
|
53
|
+
}
|
|
54
|
+
export interface TaskColumnSlots<T extends TaskRowView> {
|
|
55
|
+
/** Human summary of when the task fires. */
|
|
56
|
+
describeTrigger: (task: T) => string;
|
|
57
|
+
/** Friendly display of an ISO timestamp. */
|
|
58
|
+
formatDate: (iso: string) => string;
|
|
59
|
+
/** The row actions cell (`TaskRowActions` bound to the app's mutations). */
|
|
60
|
+
renderActions: (task: T) => ReactNode;
|
|
61
|
+
/** Destination of a task's name; makes it a real link (modified clicks go to the browser). */
|
|
62
|
+
getHref?: (task: T) => string | undefined;
|
|
63
|
+
/** Plain click on the linked name (owns navigation); without `getHref` the name is plain text. */
|
|
64
|
+
onOpen?: (task: T) => void;
|
|
65
|
+
testIds?: Partial<TaskColumnTestIds>;
|
|
66
|
+
labels?: Partial<TaskColumnLabels>;
|
|
67
|
+
}
|
|
68
|
+
export declare function createTaskColumns<T extends TaskRowView>(slots: TaskColumnSlots<T>): ColDef<T>[];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type TaskTriggerType = 'one_time' | 'recurring' | 'event';
|
|
2
|
+
export type TaskActionType = 'notify' | 'agent_prompt' | 'run_skill';
|
|
3
|
+
export type TaskStatusKey = 'active' | 'paused' | 'completed' | 'failed';
|
|
4
|
+
export declare const TRIGGER_LABELS: Record<TaskTriggerType, string>;
|
|
5
|
+
export declare const ACTION_LABELS: Record<TaskActionType, string>;
|
|
6
|
+
export declare const STATUS_LABELS: Record<TaskStatusKey, string>;
|
|
7
|
+
export type TaskBadgeVariant = 'default' | 'secondary' | 'destructive' | 'outline';
|
|
8
|
+
export declare function statusBadgeVariant(status: string): TaskBadgeVariant;
|
|
9
|
+
/** The goal-state fields the grid reads from a goal task's last run. */
|
|
10
|
+
export interface TaskGoalState {
|
|
11
|
+
done?: boolean;
|
|
12
|
+
criteria_met?: number;
|
|
13
|
+
criteria_total?: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Goal progress from a goal task's last run (its `/goal` gate verdict), or null when the task
|
|
17
|
+
* isn't a goal task or hasn't run yet.
|
|
18
|
+
*/
|
|
19
|
+
export declare function goalProgress(task: {
|
|
20
|
+
is_goal_task?: boolean | null;
|
|
21
|
+
goal_state?: unknown;
|
|
22
|
+
}): {
|
|
23
|
+
met: number;
|
|
24
|
+
total: number;
|
|
25
|
+
done: boolean;
|
|
26
|
+
} | null;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export interface AgentOption {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
/** Small line under the label in the list (e.g. what the agent is for). */
|
|
6
|
+
description?: string;
|
|
7
|
+
/** Avatar or mark shown before the name. */
|
|
8
|
+
avatar?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export interface AgentSelectLabels {
|
|
11
|
+
/** The field label. */
|
|
12
|
+
label: string;
|
|
13
|
+
/** The entry that means "no specific agent": the user's own assistant. */
|
|
14
|
+
myAssistant: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const DEFAULT_AGENT_SELECT_LABELS: AgentSelectLabels;
|
|
17
|
+
export interface AgentSelectProps {
|
|
18
|
+
agents: AgentOption[];
|
|
19
|
+
/** Controlled agent id; `''` = my assistant. Omit to let the select hold its own state. */
|
|
20
|
+
value?: string;
|
|
21
|
+
defaultValue?: string;
|
|
22
|
+
onValueChange?: (agentId: string) => void;
|
|
23
|
+
/** Hide the visible label (still the accessible name). */
|
|
24
|
+
hideLabel?: boolean;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
className?: string;
|
|
27
|
+
labels?: Partial<AgentSelectLabels>;
|
|
28
|
+
testId?: string;
|
|
29
|
+
/** Prefix of option ids (`<prefix>-<agent id>`); default `agent-select-option`. */
|
|
30
|
+
optionTestId?: string;
|
|
31
|
+
}
|
|
32
|
+
/** Pick which agent runs something: the user's own assistant (default) or one of their agents. */
|
|
33
|
+
export declare function AgentSelect({ agents, value, defaultValue, onValueChange, hideLabel, disabled, className, labels, testId, optionTestId, }: AgentSelectProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { WorkflowErrors, WorkflowField, WorkflowFieldError, WorkflowInputs, WorkflowInputValue, WorkflowScope } from './types';
|
|
3
|
+
export interface SchemaFormLabels {
|
|
4
|
+
/** Appended to the label of an optional field. */
|
|
5
|
+
optional: string;
|
|
6
|
+
/** Heading of the folded block that holds `advanced` fields. */
|
|
7
|
+
advanced: string;
|
|
8
|
+
errors: Record<WorkflowFieldError, string>;
|
|
9
|
+
}
|
|
10
|
+
export declare const DEFAULT_SCHEMA_FORM_LABELS: SchemaFormLabels;
|
|
11
|
+
export interface SchemaFormProps {
|
|
12
|
+
fields: WorkflowField[];
|
|
13
|
+
values: WorkflowInputs;
|
|
14
|
+
onChange: (name: string, value: WorkflowInputValue) => void;
|
|
15
|
+
/** Per-field problems to show (the dialog passes them once a launch was attempted). */
|
|
16
|
+
errors?: WorkflowErrors;
|
|
17
|
+
/** Renders a `scope` field: the host owns the file data behind the picker. */
|
|
18
|
+
renderScope?: (field: WorkflowField, value: WorkflowScope, onChange: (s: WorkflowScope) => void) => ReactNode;
|
|
19
|
+
/** Renders a `documents` field (an explicit file pick): the host owns the file list. */
|
|
20
|
+
renderDocuments?: (field: WorkflowField, value: WorkflowScope, onChange: (s: WorkflowScope) => void) => ReactNode;
|
|
21
|
+
/** Maps an option's `icon` key to a mark. */
|
|
22
|
+
renderIcon?: (key: string) => ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Plain Enter in a multi-line field submits the form (Shift+Enter inserts the newline), the
|
|
25
|
+
* chat's own convention. Single-line fields submit natively.
|
|
26
|
+
*/
|
|
27
|
+
onEnterSubmit?: () => void;
|
|
28
|
+
/** Prefix of field ids: `<prefix>-<field name>`; default `workflow-field`. */
|
|
29
|
+
testIdPrefix?: string;
|
|
30
|
+
labels?: Partial<SchemaFormLabels>;
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Renders a workflow's declared inputs as a form. Controlled: the caller owns `values` (see
|
|
35
|
+
* `defaultInputs`) and decides when to validate (`validateInputs`) and show `errors`.
|
|
36
|
+
*/
|
|
37
|
+
export declare function SchemaForm({ fields, values, onChange, errors, renderScope, renderDocuments, renderIcon, onEnterSubmit, testIdPrefix, labels, className, }: SchemaFormProps): import("react").JSX.Element;
|