@lobu/runtime-server 24.5.0 → 24.7.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/dist/catalogs/connectors.json +342 -4
- package/dist/catalogs/skills.json +1 -1
- package/dist/component.json +1 -1
- package/dist/connectors/linkedin-identity.ts +43 -0
- package/dist/connectors/linkedin.ts +154 -3
- package/dist/connectors/x-like-follow.ts +329 -0
- package/dist/connectors/x.ts +709 -80
- package/dist/dependencies.bun.lock +18 -18
- package/dist/owletto/dist/assets/_-CZgmjLR9.js +2 -0
- package/dist/owletto/dist/assets/_-Cm5OgtYD.js +3 -0
- package/dist/owletto/dist/assets/_agentId-Cci6NFc1.js +2 -0
- package/dist/owletto/dist/assets/_agentId-GhWTlPO2.js +2 -0
- package/dist/owletto/dist/assets/_automationId-KUlxSTK2.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey._connectionId-Zpy7Hvml.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey.index-CYDRp9UX.js +2 -0
- package/dist/owletto/dist/assets/_conversationId-NNqDdije.js +2 -0
- package/dist/owletto/dist/assets/_eventId-0BSX6VHj.js +2 -0
- package/dist/owletto/dist/assets/_owner-C-CD22NB.js +3 -0
- package/dist/owletto/dist/assets/_shape-CvXp4omb.js +2 -0
- package/dist/owletto/dist/assets/_slug-DgK7zpKA.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-cH54P0zY.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-m0B5j7L9.js +2 -0
- package/dist/owletto/dist/assets/{accept-invitation-pUl-c1KQ.js → accept-invitation-CX7Egv-p.js} +2 -2
- package/dist/owletto/dist/assets/activity-link-rXNpmppV.js +2 -0
- package/dist/owletto/dist/assets/activity-route-view-B0m7_g9q.js +2 -0
- package/dist/owletto/dist/assets/{agent-client-setup-list-DbXtJTsO.js → agent-client-setup-list-BmD3-_Ox.js} +2 -2
- package/dist/owletto/dist/assets/{agent-connect-pages-DcTuiSt9.js → agent-connect-pages-BtOTCsTU.js} +2 -2
- package/dist/owletto/dist/assets/agent-editor-form-CirqCpcM.js +2 -0
- package/dist/owletto/dist/assets/agent-list-row-SyACVYX7.js +2 -0
- package/dist/owletto/dist/assets/{agent-loading-shells-ClY_O6lb.js → agent-loading-shells-DHvKiEUB.js} +2 -2
- package/dist/owletto/dist/assets/agent-permissions-matrix-Dsc26dyW.js +2 -0
- package/dist/owletto/dist/assets/{agent-skill-context-BAaGpvfS.js → agent-skill-context-DF5q0Dfr.js} +2 -2
- package/dist/owletto/dist/assets/agent-subpage-shell-Pi5cECga.js +2 -0
- package/dist/owletto/dist/assets/{agent-thread-WNk2HapT.js → agent-thread-B1ZepGZc.js} +4 -4
- package/dist/owletto/dist/assets/agents-D1FHZ0jR.js +2 -0
- package/dist/owletto/dist/assets/app._appId-01I0CJal.js +2 -0
- package/dist/owletto/dist/assets/{assist-composer-ClfFEVx7.js → assist-composer-BD9msDk3.js} +2 -2
- package/dist/owletto/dist/assets/automation-detail-content-BFv1TglZ.js +2 -0
- package/dist/owletto/dist/assets/automation-row-CmTpAD4r.js +2 -0
- package/dist/owletto/dist/assets/automation-source-list-D8ZSavQU.js +2 -0
- package/dist/owletto/dist/assets/automations-D1FHZ0jR.js +2 -0
- package/dist/owletto/dist/assets/{callback-DRABUOha.js → callback-Ckrxv0eo.js} +2 -2
- package/dist/owletto/dist/assets/{card-Bdi7VEwo.js → card-DT9mSjSp.js} +2 -2
- package/dist/owletto/dist/assets/{change-summary-PBoM6Asb.js → change-summary-CGrKEJ04.js} +2 -2
- package/dist/owletto/dist/assets/{claim-CUIG1Oc-.js → claim-Bzby28tT.js} +2 -2
- package/dist/owletto/dist/assets/{client-activity-scopes-CXOWB5co.js → client-activity-scopes-DoIErdUy.js} +2 -2
- package/dist/owletto/dist/assets/{client-rows-36VnmgMK.js → client-rows-BbVQy5Ti.js} +2 -2
- package/dist/owletto/dist/assets/{clients-BJRcMk1A.js → clients-6aJvabvS.js} +2 -2
- package/dist/owletto/dist/assets/connect-BmDziBzI.js +2 -0
- package/dist/owletto/dist/assets/connect-menu-Bs8mxsga.js +2 -0
- package/dist/owletto/dist/assets/connect._clientId-t5aKu3aa.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId-DswMAw8l.js +2 -0
- package/dist/owletto/dist/assets/{connection-q1bdnxCN.js → connection-BOaMa324.js} +2 -2
- package/dist/owletto/dist/assets/connection-feed-detail-BLCjhP-H.js +2 -0
- package/dist/owletto/dist/assets/connector-boxes-BAP_f77M.js +2 -0
- package/dist/owletto/dist/assets/{connector-page-shell-Cs1SjrYB.js → connector-page-shell-ClOmVPJr.js} +2 -2
- package/dist/owletto/dist/assets/{connector-provenance-aJFeeRIC.js → connector-provenance-wmYu5jwO.js} +2 -2
- package/dist/owletto/dist/assets/{connectors-BsvDMdsQ.js → connectors-D5F5rHxX.js} +2 -2
- package/dist/owletto/dist/assets/{consent-DJV78pnz.js → consent-RqHNkmm8.js} +2 -2
- package/dist/owletto/dist/assets/{copy-button-DjMWgrBf.js → copy-button-D6zpsZLi.js} +2 -2
- package/dist/owletto/dist/assets/{core.esm-CQzL3ObT.js → core.esm-BIE97rfo.js} +3 -3
- package/dist/owletto/dist/assets/create-BPxsKwk7.js +2 -0
- package/dist/owletto/dist/assets/{create-jBEuveV1.js → create-GT8_yF0R.js} +2 -2
- package/dist/owletto/dist/assets/create-Yx2qBMBy.js +2 -0
- package/dist/owletto/dist/assets/create-automation-form-B12yTrmj.js +3 -0
- package/dist/owletto/dist/assets/create._connectorKey-CzXqSkuI.js +2 -0
- package/dist/owletto/dist/assets/custom-guardrail-edits-B9plaLBN.js +2 -0
- package/dist/owletto/dist/assets/definition-comparison-C3k6Wa9B.js +2 -0
- package/dist/owletto/dist/assets/detail-page-skeleton-I5_7FkKx.js +2 -0
- package/dist/owletto/dist/assets/{device-Ba3RsIgb.js → device-CadaiNF4.js} +2 -2
- package/dist/owletto/dist/assets/device-automation-Dp3faMvp.js +2 -0
- package/dist/owletto/dist/assets/device-pin-tombstone-U7Bx05P6.js +2 -0
- package/dist/owletto/dist/assets/device._deviceId-DTZqj1HS.js +2 -0
- package/dist/owletto/dist/assets/dynamic-schema-form-DyT_9iVE.js +2 -0
- package/dist/owletto/dist/assets/entity-options-CGTjLlcS.js +2 -0
- package/dist/owletto/dist/assets/entity-page-DHHMmA8V.js +2 -0
- package/dist/owletto/dist/assets/entity-pages-eYbG2FDT.js +2 -0
- package/dist/owletto/dist/assets/entity-type-page-CjFqxSdL.js +2 -0
- package/dist/owletto/dist/assets/event-card-BtTUuf2q.js +2 -0
- package/dist/owletto/dist/assets/{event-detail-DkY95e5b.js → event-detail-8xHiplt_.js} +2 -2
- package/dist/owletto/dist/assets/events-feed-zFnTSE27.js +2 -0
- package/dist/owletto/dist/assets/filter-editors-Dd5R2Etd.js +2 -0
- package/dist/owletto/dist/assets/{full-page-spinner-BqmckkOf.js → full-page-spinner-CCU4PkRv.js} +2 -2
- package/dist/owletto/dist/assets/home-stream-IVsNEkwp.js +2 -0
- package/dist/owletto/dist/assets/index-2oaMOFKe.js +2 -0
- package/dist/owletto/dist/assets/index-B-Ab8srM.js +7899 -0
- package/dist/owletto/dist/assets/index-B4RZgvvI.js +2 -0
- package/dist/owletto/dist/assets/{index-C186T2Rw.js → index-B72KYdN1.js} +2 -2
- package/dist/owletto/dist/assets/index-BBZM53p8.js +2 -0
- package/dist/owletto/dist/assets/index-BOb0a5f9.js +2 -0
- package/dist/owletto/dist/assets/{index-ijqrJaRB.js → index-BYFDMIQC.js} +2 -2
- package/dist/owletto/dist/assets/index-BwnFQcMe.js +2 -0
- package/dist/owletto/dist/assets/index-CvYsWYlF.js +2 -0
- package/dist/owletto/dist/assets/{index-B0kw2lFL.js → index-DIXIvtnM.js} +2 -2
- package/dist/owletto/dist/assets/index-DLwokXHW.js +2 -0
- package/dist/owletto/dist/assets/index-_nlPHus1.js +2 -0
- package/dist/owletto/dist/assets/index-cwOgj4-i.js +2 -0
- package/dist/owletto/dist/assets/{index-ikp_mTsf.js → index-pmr1WUoG.js} +2 -2
- package/dist/owletto/dist/assets/index-pp4qmhkA.js +2 -0
- package/dist/owletto/dist/assets/index-tTbno-PX.css +1 -0
- package/dist/owletto/dist/assets/json-diff-B-1Swv_y.js +28 -0
- package/dist/owletto/dist/assets/list-skeleton-BAqT0vxo.js +2 -0
- package/dist/owletto/dist/assets/{login-u6LCgDYG.js → login-D5bIjMtf.js} +2 -2
- package/dist/owletto/dist/assets/{logout-JhmuWJEH.js → logout-JYZvxz8v.js} +2 -2
- package/dist/owletto/dist/assets/{member-scope-gate-4FQ0aanZ.js → member-scope-gate-Lj9m4RL2.js} +2 -2
- package/dist/owletto/dist/assets/memory-browse-page-rAKfVdQ_.js +74 -0
- package/dist/owletto/dist/assets/{model-selector-CgU8SJMF.js → model-selector-onvGA9Ww.js} +2 -2
- package/dist/owletto/dist/assets/{new-DgE1pVV0.js → new-B-Jd-vBl.js} +2 -2
- package/dist/owletto/dist/assets/new-BmehH1uR.js +2 -0
- package/dist/owletto/dist/assets/new-KDi15LWZ.js +2 -0
- package/dist/owletto/dist/assets/{organization-CKM_oFX3.js → organization-B9bh20Xo.js} +2 -2
- package/dist/owletto/dist/assets/peek-pane-content-Bqus80Mq.js +2 -0
- package/dist/owletto/dist/assets/{pending-seed-sml8Uf6e.js → pending-seed-CoFPQ835.js} +2 -2
- package/dist/owletto/dist/assets/proposal-review-shell-CnACXCUg.js +2 -0
- package/dist/owletto/dist/assets/public-shell-ready-Dlh-eWz0.js +2 -0
- package/dist/owletto/dist/assets/record-activity-6CfR95Ul.js +2 -0
- package/dist/owletto/dist/assets/{record-session-R-uHNuby.js → record-session-Bpx4_LGk.js} +2 -2
- package/dist/owletto/dist/assets/renderer-CgaQKMoG.js +96 -0
- package/dist/owletto/dist/assets/{reset-password-Mx3baeNc.js → reset-password-C-4Jnuqk.js} +2 -2
- package/dist/owletto/dist/assets/run-initiator-BvruBM5H.js +2 -0
- package/dist/owletto/dist/assets/{runs-fFJ1lPnw.js → runs-BMzp7j7j.js} +2 -2
- package/dist/owletto/dist/assets/runs-list-DVhrTr3v.js +2 -0
- package/dist/owletto/dist/assets/{schema-type-editor-panel-C0_9VcSs.js → schema-type-editor-panel-Bdeumkux.js} +2 -2
- package/dist/owletto/dist/assets/schema-value-BUgC0Ro8.js +3 -0
- package/dist/owletto/dist/assets/{settings-CP4PjMQA.js → settings-DYYvrrZ4.js} +2 -2
- package/dist/owletto/dist/assets/skill-route-key-sF006xiz.js +2 -0
- package/dist/owletto/dist/assets/source-record-panels-CBV9tsR3.js +2 -0
- package/dist/owletto/dist/assets/status-variants-DT61YfsU.js +2 -0
- package/dist/owletto/dist/assets/{table-BUqshjxa.js → table-B6yimlsZ.js} +2 -2
- package/dist/owletto/dist/assets/{use-automations-BLNjxq2K.js → use-automations-II_YJWtN.js} +2 -2
- package/dist/owletto/dist/assets/{use-login-redirect-CmyQW7GT.js → use-login-redirect-BqtEilid.js} +2 -2
- package/dist/owletto/dist/assets/{use-mention-search-dn3ws1WB.js → use-mention-search-Bxlpd6Dp.js} +3 -3
- package/dist/owletto/dist/assets/view-param-filters-DYlqBocg.js +2 -0
- package/dist/owletto/dist/assets/views-access-required-BVtMfgLh.js +2 -0
- package/dist/owletto/dist/index.html +2 -2
- package/dist/server-main.bundle.mjs +5680 -4005
- package/npm-shrinkwrap.json +99 -99
- package/package.json +1 -1
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/core/dist/contracts/tools/view-host.d.ts +7 -0
- package/vendor/core/dist/contracts/tools/view-host.js +28 -0
- package/vendor/core/dist/contracts/tools/view-runtime.d.ts +2 -4
- package/vendor/core/dist/contracts/tools/view-runtime.js +19 -7
- package/vendor/core/package.json +11 -1
- package/vendor/views/dist/api.d.ts +9 -4
- package/vendor/views/dist/api.js +33 -2
- package/vendor/views/dist/bridge.d.ts +8 -0
- package/vendor/views/dist/bridge.js +12 -2
- package/vendor/views/dist/components.d.ts +4 -2
- package/vendor/views/dist/components.js +29 -14
- package/vendor/views/dist/index.d.ts +1 -1
- package/vendor/views/dist/index.js +1 -1
- package/vendor/views/dist/native.d.ts +327 -0
- package/vendor/views/dist/native.js +57 -0
- package/vendor/views/package.json +1 -1
- package/dist/owletto/dist/assets/_-CCWuGXtQ.js +0 -2
- package/dist/owletto/dist/assets/_-DOJW1D-I.js +0 -3
- package/dist/owletto/dist/assets/_agentId-CJhQbi6k.js +0 -2
- package/dist/owletto/dist/assets/_agentId-DD4K1i6V.js +0 -2
- package/dist/owletto/dist/assets/_automationId-Cbd7B0mP.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey._connectionId-DFpPep9B.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey.index-n3iSDT74.js +0 -2
- package/dist/owletto/dist/assets/_conversationId-B1yGIGA9.js +0 -2
- package/dist/owletto/dist/assets/_eventId-B1H0-vD7.js +0 -2
- package/dist/owletto/dist/assets/_name-D30_V03t.js +0 -2
- package/dist/owletto/dist/assets/_owner-Be8O41u8.js +0 -3
- package/dist/owletto/dist/assets/_shape-C6YbloRh.js +0 -2
- package/dist/owletto/dist/assets/_skillKey-BMPvvoOI.js +0 -2
- package/dist/owletto/dist/assets/_slug-Bc4YIEA2.js +0 -2
- package/dist/owletto/dist/assets/_view-aoFDwEld.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-DuNHc3cc.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-rJ7A1zNx.js +0 -2
- package/dist/owletto/dist/assets/activity-route-view-DN0ZEAzr.js +0 -2
- package/dist/owletto/dist/assets/agent-card-controls-C5jNWgfq.js +0 -2
- package/dist/owletto/dist/assets/agent-editor-form-CdA5vLr8.js +0 -2
- package/dist/owletto/dist/assets/agent-guardrails-route-BJyfalBY.js +0 -2
- package/dist/owletto/dist/assets/agent-list-row-rF5LH-3k.js +0 -2
- package/dist/owletto/dist/assets/agent-permissions-matrix-bP1Qihv7.js +0 -2
- package/dist/owletto/dist/assets/agent-skills-route-Bv5luNdw.js +0 -2
- package/dist/owletto/dist/assets/agent-tab-intro-ednTs4WF.js +0 -2
- package/dist/owletto/dist/assets/agents-DY2S2SGE.js +0 -2
- package/dist/owletto/dist/assets/agents-workbench-bPTjdVS1.js +0 -2
- package/dist/owletto/dist/assets/app._appId-DrL5H5lB.js +0 -2
- package/dist/owletto/dist/assets/automation-detail-content-dFy1Huas.js +0 -2
- package/dist/owletto/dist/assets/automation-row-DCHM--aD.js +0 -2
- package/dist/owletto/dist/assets/automations-DY2S2SGE.js +0 -2
- package/dist/owletto/dist/assets/calendar-Ck0yOLYu.js +0 -2
- package/dist/owletto/dist/assets/code-editor-DNuRKde1.js +0 -16
- package/dist/owletto/dist/assets/connect-CMcEQWls.js +0 -2
- package/dist/owletto/dist/assets/connect-menu-C-B-1xGR.js +0 -2
- package/dist/owletto/dist/assets/connect._clientId-tGipxP5a.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId-DSGU78eV.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId.activity-CPLbry8R.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId.index-jSnGvzYs.js +0 -2
- package/dist/owletto/dist/assets/connection-feed-detail-BIlkK0Pd.js +0 -2
- package/dist/owletto/dist/assets/connection-label-BobuYiAG.js +0 -2
- package/dist/owletto/dist/assets/connections-browser-V-3td9DB.js +0 -2
- package/dist/owletto/dist/assets/connector-boxes-lFc-WP83.js +0 -2
- package/dist/owletto/dist/assets/connector-scope-lists--vNdbOn0.js +0 -2
- package/dist/owletto/dist/assets/create-BmKx5vq3.js +0 -2
- package/dist/owletto/dist/assets/create-Rt0RbiD4.js +0 -2
- package/dist/owletto/dist/assets/create-automation-form-PEmSLMD6.js +0 -3
- package/dist/owletto/dist/assets/create._connectorKey-DcxhYIYC.js +0 -2
- package/dist/owletto/dist/assets/device-pin-tombstone-C79KIAIK.js +0 -2
- package/dist/owletto/dist/assets/device._deviceId-CIaoq9co.js +0 -2
- package/dist/owletto/dist/assets/entity-avatar-TVKjZxWQ.js +0 -2
- package/dist/owletto/dist/assets/entity-options-daOOQo7O.js +0 -2
- package/dist/owletto/dist/assets/entity-page-BfJXvbxn.js +0 -2
- package/dist/owletto/dist/assets/entity-type-page-BLwH6qa7.js +0 -2
- package/dist/owletto/dist/assets/event-card-DVUB8my6.js +0 -2
- package/dist/owletto/dist/assets/events-feed-B9CZHI_P.js +0 -2
- package/dist/owletto/dist/assets/filter-bar-wPaR12SS.js +0 -2
- package/dist/owletto/dist/assets/guardrails-Csusrok2.js +0 -2
- package/dist/owletto/dist/assets/identity-Dmg3STO8.js +0 -2
- package/dist/owletto/dist/assets/index--ZWegctR.js +0 -2
- package/dist/owletto/dist/assets/index-BKrdVwW9.js +0 -2
- package/dist/owletto/dist/assets/index-BUBcNNUY.js +0 -2
- package/dist/owletto/dist/assets/index-BUDr4-Yv.js +0 -2
- package/dist/owletto/dist/assets/index-BYPQWVwD.js +0 -2
- package/dist/owletto/dist/assets/index-BfpaPJPj.js +0 -2
- package/dist/owletto/dist/assets/index-BicNFLBW.js +0 -2
- package/dist/owletto/dist/assets/index-Bsdv5aks.js +0 -2
- package/dist/owletto/dist/assets/index-CX0pJ9j9.js +0 -2
- package/dist/owletto/dist/assets/index-CsrT07TJ.js +0 -2
- package/dist/owletto/dist/assets/index-DdBTTN3y.js +0 -7899
- package/dist/owletto/dist/assets/index-DdYWarql.css +0 -1
- package/dist/owletto/dist/assets/index-JYEIN8nM.js +0 -2
- package/dist/owletto/dist/assets/json-diff-BaLL4Fsu.js +0 -14
- package/dist/owletto/dist/assets/list-skeleton-CXDLkYTg.js +0 -2
- package/dist/owletto/dist/assets/manage-gear-D8LMhehh.js +0 -2
- package/dist/owletto/dist/assets/memory-browse-page-CNZJbCJC.js +0 -74
- package/dist/owletto/dist/assets/model-jL871x2J.js +0 -2
- package/dist/owletto/dist/assets/models-jdemgIZk.js +0 -2
- package/dist/owletto/dist/assets/nav-pill-DrFkuyUQ.js +0 -2
- package/dist/owletto/dist/assets/new-CcJOd5aH.js +0 -2
- package/dist/owletto/dist/assets/new-OWwrYckd.js +0 -2
- package/dist/owletto/dist/assets/peek-pane-content-D68BjguQ.js +0 -2
- package/dist/owletto/dist/assets/permissions-BvA9SATv.js +0 -2
- package/dist/owletto/dist/assets/proposal-review-shell-D6KABxah.js +0 -2
- package/dist/owletto/dist/assets/public-shell-ready-BIVCHQHe.js +0 -2
- package/dist/owletto/dist/assets/record-activity-C9gVBbF0.js +0 -2
- package/dist/owletto/dist/assets/renderer-DXfJaCCa.js +0 -97
- package/dist/owletto/dist/assets/run-activity-link-CaIBSRQj.js +0 -2
- package/dist/owletto/dist/assets/run-initiator-BvzQJYW9.js +0 -2
- package/dist/owletto/dist/assets/runs-panel-DEnZHTa5.js +0 -2
- package/dist/owletto/dist/assets/runs-table-XGnxJl7S.js +0 -2
- package/dist/owletto/dist/assets/settings-CgaUJMHH.js +0 -2
- package/dist/owletto/dist/assets/skills-D-e_h3a9.js +0 -2
- package/dist/owletto/dist/assets/source-record-panels-Bh0n4gGw.js +0 -2
- package/dist/owletto/dist/assets/status-dot-Cpq63I7p.js +0 -2
- package/dist/owletto/dist/assets/use-scroll-sentinel-DRyBMueA.js +0 -2
- package/dist/owletto/dist/assets/view-param-filters-CER47Tlz.js +0 -2
- package/dist/owletto/dist/assets/views-access-required-C_b9itZ2.js +0 -2
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{u as o,j as t,B as n,L as c,cG as u,gx as h,dP as y}from"./index-DdBTTN3y.js";function f({owner:i,filters:a,name:e}){const r=o();return t.jsx(n,{asChild:!0,variant:"ghost",size:"sm",className:"h-8 shrink-0 gap-1.5",children:t.jsxs(c,{title:`View activity for ${e}`,to:"/$owner",params:{owner:i},search:y(a),onClick:s=>{!r||s.button!==0||s.metaKey||s.ctrlKey||s.shiftKey||s.altKey||(s.preventDefault(),r.open({href:h(i,a),title:"Runs history"}))},children:[t.jsx(u,{className:"h-3.5 w-3.5"}),"View activity"]})})}export{f as R};
|
|
2
|
-
//# sourceMappingURL=run-activity-link-CaIBSRQj.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{v as k,eP as I,j as d,L as u,d_ as h}from"./index-DdBTTN3y.js";import{u as j}from"./use-automations-BLNjxq2K.js";import{u as b}from"./clients-BJRcMk1A.js";function C(n,e,o){return n?.kind==="agent_session"&&n.agent_id?n.client_id?`${n.agent_id} via ${n.client_id}`:n.agent_id:n?.kind==="user"?"a person":e==="agent"?"an agent":o?`Automation ${o}`:"an Automation"}function B({ownerSlug:n,initiator:e,clientName:o,fallback:_}){const t=e?.client_id??o,{allOrgs:m,isAuthenticated:p}=k(),r=p&&m?.some(s=>s.slug===n),c=b(void 0,{ownerSlug:n,enabled:!!(t&&r)}).data?.find(s=>s.id===t)?.title,l=r?m.find(s=>s.slug===n)?.id:void 0,f=e?.kind==="automation"&&e.automation_id?String(e.automation_id):void 0,v=j(f?l:void 0,void 0,{includeDetails:!1}).data?.find(s=>s.automation_id===f)?.name,{members:x}=I(e?.kind==="user"&&e.user_id?l:void 0),$=x.find(s=>s.userId===e?.user_id)?.user.name,a=e&&e.kind!=="user"?v??C(e,void 0,e.automation_id===void 0?void 0:String(e.automation_id)):$??_,g="font-medium text-foreground",i=`${g} underline-offset-4 hover:underline`;return e?.kind==="automation"&&e.automation_id?d.jsx(u,{to:"/$owner/automations/$automationId",params:{owner:n,automationId:String(e.automation_id)},search:{view:"definition",run_id:void 0},className:i,children:a}):e?.kind==="agent_session"&&e.agent_id?d.jsx(u,{to:"/$owner/agents/$agentId",params:{owner:n,agentId:String(e.agent_id)},className:i,children:a}):t?d.jsxs(u,{to:"/$owner/agents/connected/$clientId",params:{owner:n,clientId:t},className:`${i} inline-flex items-center gap-1 align-middle`,children:[d.jsx(h,{name:c??o??t}),c??a]}):d.jsx("span",{className:g,children:a})}export{B as R,C as p};
|
|
2
|
-
//# sourceMappingURL=run-initiator-BvzQJYW9.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{at as T,aH as M,cD as w,j as o,ct as k,cU as g,dM as B,i as E,dN as C,cT as _,cS as O,cz as U,c as z,w as H,dO as W,dP as D,r as x,B as R,ab as G}from"./index-DdBTTN3y.js";import{u as q}from"./use-scroll-sentinel-DRyBMueA.js";import{u as J}from"./runs-fFJ1lPnw.js";import{o as K,F as Q,S as V}from"./filter-bar-wPaR12SS.js";import{M as p,c as X,u as Y,a as Z}from"./manage-gear-D8LMhehh.js";import{R as ee,a as ne}from"./runs-table-XGnxJl7S.js";function te(t){const{org:l}=T(t?.ownerSlug),h=M(t?l?.id:null),u=w(t?l?.id:null);if(!t)return{fields:[],chips:[]};const s=(h.data??[]).map(n=>({id:n.id,label:n.display_name||`Connection #${n.id}`,connectorKey:n.connector_key}));for(const n of t.connectionIds)s.some(a=>a.id===n)||s.unshift({id:n,label:`Connection #${n}`,connectorKey:t.connectorKey});const r=(u.data??[]).map(n=>({key:n.key,label:n.name}));t.connectorKey&&!r.some(n=>n.key===t.connectorKey)&&r.unshift({key:t.connectorKey,label:t.connectorKey});const i=n=>{const a=n==="connection"?h:u,d=K({searchPlaceholder:`Search ${n}s...`,emptyText:a.isLoading?"Loading...":`No ${n}s`,multiple:n==="connection",selected:n==="connection"?t.connectionIds.map(String):[t.connectorKey],options:n==="connection"?s.map(e=>({value:String(e.id),label:e.label,action:e.connectorKey?o.jsx(p,{...X(t.ownerSlug,{id:e.id,connector_key:e.connectorKey}),label:e.label}):null})):r.map(e=>({value:e.key,label:e.label,action:o.jsx(p,{to:"/$owner/connectors/$connectorKey",params:{owner:t.ownerSlug,connectorKey:e.key},label:e.label})})),onSelect:e=>n==="connection"?t.onChange({connectionIds:t.connectionIds.includes(Number(e))?t.connectionIds.filter(c=>c!==Number(e)):[...t.connectionIds,Number(e)]}):t.onChange({connectorKey:e})});return{...d,items:e=>o.jsxs(o.Fragment,{children:[d.items(e,""),a.isError?o.jsxs(g,{forceMount:!0,onSelect:()=>void a.refetch(),children:["Could not load ",n,"s. Retry"]}):null]})}};return{fields:[{key:"connection",label:"Connection",icon:o.jsx(k,{className:"h-4 w-4"}),editor:i("connection")},{key:"connector",label:"Connector",icon:o.jsx(k,{className:"h-4 w-4"}),editor:i("connector")}],chips:[...t.connectionIds.length?[{id:"connection",field:"connection",label:"Connection",op:"is",value:t.connectionIds.map(n=>s.find(a=>a.id===n)?.label??`#${n}`).join(", "),onRemove:()=>t.onChange({connectionIds:[]})}]:[],...t.connectorKey?[{id:"connector",field:"connector",label:"Connector",op:"is",value:r.find(n=>n.key===t.connectorKey)?.label??t.connectorKey,onRemove:()=>t.onChange({connectorKey:""})}]:[]]}}function oe({bucket:t,status:l,onBucketChange:h,onStatusChange:u,automation:s,source:r}){const i=te(r),n=Y(s?.ownerSlug??"",!!s),a=(n.data??[]).map(e=>({value:e.automation_id,label:`${e.name}${e.status==="archived"?" (archived)":""}`}));for(const e of s?.ids??[])a.some(c=>c.value===String(e))||a.unshift({value:String(e),label:`Automation #${e}`});const d=e=>a.find(c=>c.value===String(e))?.label??`#${e}`;return o.jsxs("div",{className:"flex min-w-0 flex-col items-start gap-2",children:[o.jsx("div",{className:"inline-flex max-w-full flex-wrap rounded-md border bg-muted/30 p-0.5 text-sm",children:B.map(e=>o.jsx("button",{type:"button",onClick:()=>h(e.value),className:E("rounded px-3 py-1 transition-colors",t===e.value?"bg-background text-foreground ":"text-muted-foreground hover:text-foreground"),children:e.label},e.value))}),o.jsx(Q,{label:"Run filters",className:"w-full min-w-0",fields:[...i.fields,...s?[{key:"automation",label:"Automation",icon:o.jsx(O,{className:"h-4 w-4"}),editor:{kind:"list",searchPlaceholder:"Search Automations...",emptyText:n.isLoading?"Loading Automations...":"No Automations",items:()=>o.jsxs(o.Fragment,{children:[o.jsx(_,{children:a.map(e=>{const c=Number(e.value);return o.jsxs(g,{value:`${e.label} ${c}`,"aria-label":e.label,className:"group",onSelect:()=>s.onChange(s.ids.includes(c)?s.ids.filter(f=>f!==c):[...s.ids,c]),children:[o.jsx(V,{selected:s.ids.includes(c)}),o.jsx("span",{className:"min-w-0 flex-1 truncate",children:e.label}),o.jsx(p,{...Z(s.ownerSlug,e.value),label:e.label})]},e.value)})}),n.isError?o.jsx(g,{forceMount:!0,onSelect:()=>void n.refetch(),children:"Could not load Automations. Retry"}):null]})}}]:[],{key:"status",label:"Status",icon:o.jsx(U,{className:"h-4 w-4"}),editor:K({searchPlaceholder:"Search statuses...",options:C,selected:l==="all"?[]:[l],onSelect:u})}],chips:[...i.chips,...l==="all"?[]:[{id:"status",label:"Status",op:"is",value:C.find(e=>e.value===l)?.label??l,onRemove:()=>u("all")}],...s?.ids.length?[{id:"automation",field:"automation",label:"Automation",op:"is",value:s.ids.map(d).join(", "),onRemove:()=>s.onChange([])}]:[]]})]})}function ue({ownerSlug:t}){const l=z(),{search:h}=H(),u=W(h);return o.jsx(se,{scope:{workspace:!0},ownerSlug:t,filterState:u,onFilterChange:s=>{l({search:(r=>({...r,...D(s)}))})}})}function se({scope:t,ownerSlug:l,filterState:h,onFilterChange:u}){const[s,r]=x.useState({bucket:"all",status:"all",automationIds:[],connectionIds:[],connectorKey:""}),i=h??s,{bucket:n,status:a,automationIds:d,connectionIds:e,connectorKey:c}=i,f=u??r,I=x.useMemo(()=>({runTypes:n==="all"?void 0:[n],status:a==="all"?void 0:a,...d.length?{automationIds:d}:{},...e.length?{connectionIds:e}:{}}),[n,a,d,e]),{data:y,isLoading:F,isError:b,hasNextPage:v,isFetching:j,isFetchingNextPage:$,fetchNextPage:S,refetch:A}=J(c?{connectorKey:c}:t,I,l),N=x.useMemo(()=>y?.pages.flatMap(m=>m.runs)??[],[y]),L={runType:n==="all",feed:!("workspace"in t)||n==="sync",connection:"deviceId"in t||"connectorKey"in t||"workspace"in t&&n!=="automation",startedBy:!0},P=q({onIntersect:()=>void S(),enabled:!!v&&!j&&!b,rootMargin:"200px"});return o.jsxs("div",{className:"space-y-3",children:[o.jsx(oe,{bucket:n,status:a,onBucketChange:m=>f({...i,bucket:m}),onStatusChange:m=>f({...i,status:m}),automation:"workspace"in t?{ownerSlug:l,ids:d,onChange:m=>f({...i,automationIds:m})}:void 0,source:"workspace"in t?{ownerSlug:l,connectionIds:e,connectorKey:c,onChange:m=>f({...i,...m})}:void 0}),F?o.jsx(ee,{}):b?o.jsxs("p",{className:"rounded-lg border bg-destructive/5 px-3 py-6 text-center text-xs text-destructive",children:["Failed to load runs."," ",o.jsx(R,{variant:"ghost",size:"sm",onClick:()=>void A(),children:"Retry"})]}):N.length===0?o.jsx("p",{className:"rounded-lg border bg-muted/20 px-3 py-6 text-center text-xs text-muted-foreground",children:n==="all"&&a==="all"&&!d.length&&!e.length&&!c?"No runs yet.":"No runs match these filters."}):o.jsxs(o.Fragment,{children:[o.jsx(ne,{runs:N,ownerSlug:l,columns:L}),o.jsx("div",{ref:P,className:"h-1"}),v&&o.jsx(R,{variant:"ghost",size:"sm",disabled:j,onClick:()=>void S(),children:"Load more runs"}),$&&o.jsx("div",{className:"flex justify-center py-3",children:o.jsx(G,{size:"lg",className:"text-muted-foreground"})})]})]})}export{se as R,ue as W};
|
|
2
|
-
//# sourceMappingURL=runs-panel-DEnZHTa5.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{j as e,i as p,S as c,bG as h,B as k,L as f,da as w,a$ as v,b0 as _,b1 as C,en as S,eo as T,u as R,e5 as L,dZ as V,V as B,ep as D,dW as $,aj as A,ab as E,eq as I,r as j,dE as g,dG as y,dF as N}from"./index-DdBTTN3y.js";import{R as K}from"./run-initiator-BvzQJYW9.js";import{T as P,a as F,b as m,c as i,d as M,e as d}from"./table-BUqshjxa.js";function O({labels:t,className:r}){return e.jsx("div",{className:p("inline-flex rounded-md border bg-muted/30 p-0.5 text-sm",r),children:t.map((a,n)=>e.jsx("span",{className:n===0?"rounded bg-background px-3 py-1 text-foreground ":"px-3 py-1 text-muted-foreground",children:a},a))})}function q({rows:t=6}){return e.jsxs("div",{className:"rounded-lg border",role:"status","aria-label":"Loading runs",children:[e.jsx("div",{className:"border-b px-3 py-2",children:e.jsx(c,{className:"h-3 w-1/4"})}),e.jsx("div",{className:"divide-y",children:Array.from({length:t}).map((r,a)=>e.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5",children:[e.jsx(c,{className:"h-3.5 w-3.5 rounded-full shrink-0"}),e.jsx(c,{className:"h-3 w-20"}),e.jsx(c,{className:"h-3 w-16"}),e.jsx(c,{className:"ml-auto h-3 w-12 shrink-0"}),e.jsx(c,{className:"h-7 w-7 rounded-md shrink-0"})]},a))})]})}function ie({rows:t=6}){return e.jsxs("div",{className:"space-y-4",role:"status","aria-label":"Loading runs",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(O,{labels:["All","Sync","Action","Auth"]}),e.jsx("div",{className:"h-9 w-[150px] rounded-md border border-input"})]}),e.jsx(q,{rows:t})]})}const G=h("inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-xs font-medium transition-colors",{variants:{status:{active:"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400",paused:"bg-yellow-100 text-yellow-700 dark:bg-yellow-900/30 dark:text-yellow-400",error:"bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400",pending:"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",rejected:"bg-gray-100 text-gray-700 dark:bg-gray-900/30 dark:text-gray-400",default:"bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-300"}},defaultVariants:{status:"default"}}),H=h("h-1.5 w-1.5 rounded-full",{variants:{status:{active:"bg-green-500",paused:"bg-yellow-500",error:"bg-red-500",pending:"bg-blue-500",rejected:"bg-gray-500",default:"bg-gray-500"}},defaultVariants:{status:"default"}});function W({className:t,status:r,showDot:a=!0,children:n,...o}){return e.jsxs("span",{className:p(G({status:r}),t),...o,children:[a&&e.jsx("span",{className:H({status:r})}),n]})}function z(t,r){switch(r.kind){case"connection":return T(t,r.id);case"feed":return S(t,r.id);case"run":return{to:"/$owner/events",params:{owner:t},search:{run_ids:String(r.id)}}}}function J({ownerSlug:t,scope:r,variant:a="outline",iconOnly:n=!1,label:o,className:s,title:x}){const l=z(t,r),b=x??o??"View in memory",u=e.jsx(k,{asChild:!0,variant:a,size:n?"icon":"sm",className:p(n&&"h-7 w-7",s),children:e.jsxs(f,{to:l.to,params:l.params,search:l.search,children:[e.jsx(w,{className:p("h-3.5 w-3.5",!n&&"mr-1.5")}),!n&&(o??"View in memory")]})});return n?e.jsxs(v,{children:[e.jsx(_,{asChild:!0,children:u}),e.jsx(C,{children:b})]}):u}const U=new Set(["error","failed","revoked"]);function X(t){return t==="active"?"active":t==="paused"?"paused":t==="pending"||t==="pending_auth"?"pending":U.has(t)?"error":"default"}function Z({status:t}){return t==="completed"?e.jsx($,{className:"h-3.5 w-3.5 text-green-500"}):t==="failed"?e.jsx(A,{className:"h-3.5 w-3.5 text-destructive"}):t==="running"?e.jsx(E,{className:"text-blue-500"}):e.jsx(I,{className:"h-3.5 w-3.5 text-muted-foreground"})}function Q({error:t}){const[r,a]=j.useState(!1);return t.length>80?e.jsxs(g,{open:r,onOpenChange:a,children:[e.jsx(y,{asChild:!0,children:e.jsx("button",{type:"button",className:"text-left text-destructive truncate max-w-[200px] hover:underline",children:t})}),e.jsx(N,{className:"w-96 max-h-64 overflow-auto",children:e.jsx("pre",{className:"text-xs whitespace-pre-wrap break-words text-destructive",children:t})})]}):e.jsx("span",{className:"text-destructive",children:t})}function Y({checkpoint:t}){const[r,a]=j.useState(!1);return e.jsxs(g,{open:r,onOpenChange:a,children:[e.jsx(y,{asChild:!0,children:e.jsx("button",{type:"button",className:"text-left text-muted-foreground hover:underline",children:"view"})}),e.jsx(N,{className:"w-80 max-h-64 overflow-auto",children:e.jsx("pre",{className:"text-xs whitespace-pre-wrap break-words",children:JSON.stringify(t,null,2)})})]})}function ee(t){if(t.initiator_kind)return{kind:t.initiator_kind,...t.initiator_ref};if(t.automation_id)return{kind:"automation",automation_id:t.automation_id};if(t.created_by_user_id)return{kind:"user",user_id:t.created_by_user_id}}function te({run:t,ownerSlug:r}){const a=ee(t);return a?a.kind==="system"?e.jsx("span",{className:"text-muted-foreground",children:"System"}):e.jsx(K,{ownerSlug:r,initiator:a,clientName:void 0,fallback:"A person"}):e.jsx("span",{className:"text-muted-foreground",children:"—"})}function se(t){return t.feed_display_name??t.feed_key??"—"}function de({runs:t,ownerSlug:r,columns:a={}}){const n=R(),o=t.some(s=>s.checkpoint);return e.jsx("div",{className:"rounded-lg border",children:e.jsxs(P,{children:[e.jsx(F,{children:e.jsxs(m,{children:[e.jsx(i,{className:"text-xs py-1.5 px-3 w-8"}),e.jsx(i,{className:"text-xs py-1.5 px-3",children:"When"}),a.runType&&e.jsx(i,{className:"text-xs py-1.5 px-3",children:"Type"}),a.connection&&e.jsx(i,{className:"text-xs py-1.5 px-3",children:"Connection"}),a.feed&&e.jsx(i,{className:"text-xs py-1.5 px-3",children:"Feed"}),a.startedBy&&e.jsx(i,{className:"text-xs py-1.5 px-3",children:"Started by"}),e.jsx(i,{className:"text-xs py-1.5 px-3",children:"Status"}),e.jsx(i,{className:"text-xs py-1.5 px-3",children:"Items"}),e.jsx(i,{className:"text-xs py-1.5 px-3",children:"Duration"}),e.jsx(i,{className:"text-xs py-1.5 px-3",children:"Version"}),o&&e.jsx(i,{className:"text-xs py-1.5 px-3",children:"Checkpoint"}),e.jsx(i,{className:"text-xs py-1.5 px-3",children:"Error"}),e.jsx(i,{className:"text-xs py-1.5 px-3 w-8"})]})}),e.jsx(M,{children:t.map(s=>{const x=s.completed_at?Math.round((new Date(s.completed_at).getTime()-new Date(s.created_at).getTime())/1e3):null;return e.jsxs(m,{children:[e.jsx(d,{className:"py-1.5 px-3",children:e.jsx(Z,{status:s.status})}),e.jsxs(d,{className:"py-1.5 px-3 text-xs text-muted-foreground",title:V(s.created_at),children:[e.jsxs(f,{to:"/$owner/events",params:{owner:r},search:{run_ids:String(s.id)},className:"block text-foreground hover:underline",onClick:l=>{!n||l.button!==0||l.metaKey||l.ctrlKey||l.shiftKey||l.altKey||(l.preventDefault(),n.open({href:s.run_type==="automation"&&s.automation_id!=null?`/${r}/automations/${s.automation_id}?view=activity&run_id=${s.id}`:`/${r}/events?run_ids=${s.id}`,title:`Run #${s.id}`,runId:s.id}))},children:["Run #",s.id]}),L(s.created_at)]}),a.runType&&e.jsx(d,{className:"py-1.5 px-3 text-xs",children:e.jsx(B,{variant:"secondary",className:"font-mono text-[10px]",children:s.run_type??"—"})}),a.connection&&e.jsx(d,{className:"py-1.5 px-3 text-xs text-muted-foreground",children:s.connection_display_name??"—"}),a.feed&&e.jsx(d,{className:"py-1.5 px-3 text-xs text-muted-foreground",children:se(s)}),a.startedBy&&e.jsx(d,{className:"py-1.5 px-3 text-xs",children:e.jsx(te,{run:s,ownerSlug:r})}),e.jsx(d,{className:"py-1.5 px-3 text-xs",children:e.jsx(W,{status:X(s.status),children:s.status})}),e.jsx(d,{className:"py-1.5 px-3 text-xs font-mono text-muted-foreground",children:s.items_collected??"—"}),e.jsx(d,{className:"py-1.5 px-3 text-xs text-muted-foreground",children:x!=null?D(x):"—"}),e.jsx(d,{className:"py-1.5 px-3 text-xs font-mono text-muted-foreground",children:s.connector_version??"—"}),o&&e.jsx(d,{className:"py-1.5 px-3 text-xs",children:s.checkpoint?e.jsx(Y,{checkpoint:s.checkpoint}):e.jsx("span",{className:"text-muted-foreground",children:"—"})}),e.jsx(d,{className:"py-1.5 px-3 text-xs",children:s.error_message?e.jsx(Q,{error:s.error_message}):""}),e.jsx(d,{className:"py-1.5 px-3 text-right",children:e.jsx(J,{ownerSlug:r,scope:{kind:"run",id:s.id},variant:"ghost",iconOnly:!0,title:"View events from this run"})})]},s.id)})})]})})}export{q as R,W as S,J as V,de as a,ie as b,X as g};
|
|
2
|
-
//# sourceMappingURL=runs-table-XGnxJl7S.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{j1 as t,j as n}from"./index-DdBTTN3y.js";import{a as s}from"./agents-workbench-bPTjdVS1.js";import"./agent-editor-form-CdA5vLr8.js";import"./model-selector-CgU8SJMF.js";import"./proposal-review-shell-D6KABxah.js";import"./runs-fFJ1lPnw.js";import"./nav-pill-DrFkuyUQ.js";function f(){const{owner:o,agentId:r}=t.useParams(),e=t.useSearch();return n.jsx(s,{owner:o,agentId:r,tab:"settings",runId:e.run_id})}export{f as component};
|
|
2
|
-
//# sourceMappingURL=settings-CgaUJMHH.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{j0 as r,j as t,O as s}from"./index-DdBTTN3y.js";import{A as e}from"./agent-skill-context-BAaGpvfS.js";import"./core.esm-CQzL3ObT.js";import"./skill-editor-D_W3QlRz.js";function p(){const{agentId:o}=r.useParams();return t.jsx(e,{agentId:o,children:t.jsx(s,{})})}export{p as component};
|
|
2
|
-
//# sourceMappingURL=skills-D-e_h3a9.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{v as y,cP as b,fk as R,j as e,B as j,fl as v,S as _,bN as C,L,dR as F,x as E}from"./index-DdBTTN3y.js";import{a as P,R as S,b as $}from"./event-card-DVUB8my6.js";import{b as k}from"./events-feed-B9CZHI_P.js";function f({failures:o,onRetry:c,isError:l=!1,isFetching:d=!1}){return o.length===0&&!l?null:e.jsxs("div",{role:"alert",className:"flex items-center justify-between gap-3 rounded-md border border-destructive/40 px-3 py-2 text-xs",children:[e.jsxs("span",{children:[o.length<=1?"A source":`${o.length} sources`," could not be read, so some items may be missing."]}),e.jsx(j,{size:"sm",variant:"outline",className:"h-7",onClick:c,disabled:d,children:"Retry"})]})}function I({record:o,orgContext:c,filters:l}){const{orgContext:d}=y(),t=c??d,{data:p}=b({queryKey:["connector-definitions","source-record",t.organizationId,t.slug],queryFn:()=>E(t),enabled:!!(t.organizationId||t.slug),staleTime:6e4}),{data:i,isLoading:u,isError:n,refetch:g,fetchNextPage:a,hasNextPage:h,isFetching:x,isFetchingNextPage:s}=R(o,t,l),N=i?.pages.flatMap(r=>r.events)??[],m=i?.pages.flatMap(r=>r.failures)??[];return e.jsxs("div",{className:"space-y-4 p-4",children:[e.jsx(f,{failures:m,isError:n,isFetching:x,onRetry:()=>void g()}),e.jsx(k,{isLoading:u,hasNextPage:!!h&&!n,autoLoadMore:m.length===0,isFetching:x,isFetchingNextPage:s,onLoadMore:()=>void a(),emptyState:n||m.length>0||h?null:e.jsx("p",{className:"text-xs text-muted-foreground",children:"No activity for this record in its connected sources."}),items:N.map(r=>({key:`${r.feed_id}:${r.origin_id}`,occurredAt:r.occurred_at,content:e.jsx("div",{className:"p-3",children:e.jsx(P,{ownerSlug:t.slug,connectorDefinitions:p,content:{...r,title:r.title||r.origin_type||r.origin_id,text_content:r.payload_text??""}})})}))})]})}function B({record:o,ownerSlug:c,orgContext:l}){const{orgContext:d}=y(),{data:t,isLoading:p,isError:i,refetch:u,hasNextPage:n,fetchNextPage:g,isFetching:a,isFetchNextPageError:h,error:x}=v(o,l??d);return p?e.jsx(_,{className:"h-12 w-full rounded-lg"}):t?e.jsxs("div",{className:"space-y-2",children:[e.jsx(S,{count:t.relationshipFailures?.length??0,onRetry:()=>void u()}),e.jsx(f,{failures:t.failures,isError:i,isFetching:a,onRetry:()=>{if(a)return;const s=x instanceof C&&x.status===400;h&&!s||!i&&n?g():u()}}),t.links.length===0&&(t.relationships?.length??0)===0&&t.failures.length===0&&(t.relationshipFailures?.length??0)===0&&!n&&!i&&e.jsx("p",{className:"text-xs text-muted-foreground",children:"No relationships for this record in its connected sources."}),t.links.length===0&&(t.relationships?.length??0)===0&&n&&!i&&t.failures.length===0&&e.jsx("p",{className:"text-xs text-muted-foreground",children:"More source records remain to check for relationships."}),e.jsxs("ul",{className:"space-y-1",children:[(t.relationships??[]).map(s=>e.jsx("li",{className:"rounded-lg border px-3 py-2",children:e.jsx($,{row:s,entityId:o.key,entityType:o.type,ownerSlug:c,orgContext:l??d})},`authored:${s.id}`)),t.links.map(s=>e.jsx("li",{children:e.jsx(L,{to:F(c,[{entity_type:s.entity_type,slug:s.key}]),className:"flex items-center justify-between rounded-lg border px-3 py-2 text-sm hover:bg-muted/50",children:e.jsxs("span",{children:[e.jsxs("span",{className:"text-xs text-muted-foreground",children:[s.relationship_type.replaceAll("_"," "),s.direction==="incoming"?" (from)":""," ·"," ",s.entity_type," ·"," "]}),s.name]})})},`${s.relationship_type}:${s.direction}:${s.entity_type}:${s.key}`))]}),n&&!i&&t.failures.length===0&&e.jsx(j,{variant:"outline",size:"sm",disabled:a,onClick:()=>void g(),children:a?"Loading…":"Load more"})]}):e.jsx(f,{failures:[],isError:!0,isFetching:a,onRetry:()=>void u()})}export{I as S,B as a};
|
|
2
|
-
//# sourceMappingURL=source-record-panels-Bh0n4gGw.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{j as e,i as t}from"./index-DdBTTN3y.js";const s={live:"bg-green-500",amber:"bg-amber-500",muted:"bg-muted-foreground/40",destructive:"bg-destructive"};function a({tone:r}){return e.jsx("span",{"aria-hidden":r===null,className:t("h-1.5 w-1.5 shrink-0 rounded-full",r===null?"bg-transparent":s[r])})}export{a as S};
|
|
2
|
-
//# sourceMappingURL=status-dot-Cpq63I7p.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./index-DdBTTN3y.js";function l({onIntersect:r,enabled:n,rootMargin:t="400px"}){const s=e.useRef(null),c=e.useRef(r);return c.current=r,e.useEffect(()=>{const u=s.current;if(!u||!n)return;const o=new IntersectionObserver(f=>{f[0]?.isIntersecting&&c.current()},{rootMargin:t});return o.observe(u),()=>o.disconnect()},[n,t]),s}export{l as u};
|
|
2
|
-
//# sourceMappingURL=use-scroll-sentinel-DRyBMueA.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ge as ue,j as p,L as de,c as fe,r as u,q as me,a3 as A,gn as pe,go as he,i as ve,gp as be,Q as q,gq as ye}from"./index-DdBTTN3y.js";import{D as we,E as xe}from"./app-bridge-C4nPtae3.js";import{F as ge,o as Ee,v as Re}from"./filter-bar-wPaR12SS.js";function Fe({viewKey:e,backTo:t,backLabel:n}){return p.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center","data-testid":"missing-view",children:[p.jsxs("h2",{className:"text-lg font-semibold",children:["No view named “",e,"” here"]}),p.jsx("p",{className:"text-muted-foreground mt-2 text-sm",children:"It may have been renamed or detached from this page."}),p.jsx(de,{to:t,className:"mt-4 text-sm font-medium underline underline-offset-4",children:n})]})}function ze({error:e,onRetry:t}){const n=ue(e,{subject:"Views"});return p.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center","data-testid":"views-unavailable",children:[p.jsx("h2",{className:"text-lg font-semibold",children:n.title}),p.jsx("p",{className:"text-muted-foreground mt-2 max-w-md text-sm",children:n.body}),n.retryable?p.jsx("button",{type:"button",onClick:t,className:"mt-4 text-sm font-medium underline underline-offset-4",children:"Try again"}):null]})}const ke=new Set(["query_sql","query_sdk"]),Se=200;function je(e,t){const n=e?.title;return typeof n=="string"&&n.trim()?e??{}:{...e,title:t.slice(0,Se)}}const B=new Map;function $e(e){const t=B.get(e);if(t)return t;const n=A(`${q}/api/${e}/tools`,{method:"GET",credentials:"include",timeoutMs:15e3}).then(async r=>{if(!r.ok)throw new Error(`tool list failed: ${r.status}`);const o=await r.json();return new Set((o.tools??[]).flatMap(s=>typeof s.name=="string"&&s.annotations?.readOnlyHint===!0?[s.name]:[]))});return B.set(e,n),n.catch(()=>B.delete(e)),n}const Ne=[["--color-background-primary","--background"],["--color-background-secondary","--card"],["--color-background-tertiary","--muted"],["--color-background-inverse","--foreground"],["--color-text-primary","--foreground"],["--color-text-secondary","--muted-foreground"],["--color-text-inverse","--background"],["--color-text-info","--primary"],["--color-text-danger","--destructive"],["--color-border-primary","--border"],["--color-border-secondary","--input"],["--color-border-danger","--destructive"],["--color-ring-primary","--ring"],["--font-mono","--font-mono"],["--border-radius-sm","--radius-sm"],["--border-radius-md","--radius-md"],["--border-radius-lg","--radius-lg"],["--border-radius-xl","--radius-xl"]];function J(e){const t=document.documentElement,n=getComputedStyle(t),r={};for(const[s,c]of Ne){const l=n.getPropertyValue(c).trim();l&&(r[s]=l)}const o=document.body?getComputedStyle(document.body).fontFamily:"";return o&&(r["--font-sans"]=o),{theme:t.classList.contains("dark")?"dark":"light",displayMode:e.displayMode,availableDisplayModes:e.expandable?["inline","fullscreen"]:[e.displayMode],containerDimensions:{...e.width?{width:e.width}:{},...e.maxHeight?{maxHeight:e.maxHeight}:{}},platform:"web",styles:{variables:r}}}async function Oe(e,t,n,r,o,s){if(o!=="invoke_view_action"){const g=ke.has(o);return!g&&!(await $e(e)).has(o)?{error:`Views can only call read tools and their declared actions; "${o}" is neither`}:{url:`${q}/api/${e}/${encodeURIComponent(o)}`,body:g?je(s,n):s??{}}}const{view:c,action:l,value:x,interaction_id:b,scope:a}=s??{};return a!==void 0&&(typeof a!="object"||a===null||a.event!==r.event)?{error:"The event context changed. Reopen the event before submitting."}:c!==t?{error:`This frame hosts "${t}", not "${String(c)}"`}:typeof l!="string"||!l?{error:"action is required"}:{url:`${q}/api/${e}/views/${encodeURIComponent(t)}/actions/${encodeURIComponent(l)}`,body:{value:x??null,interaction_id:b,...r.event===void 0?{}:{scope:{event:r.event}}}}}const te=24,k=new Map,N=new Map;function Ce(e,t){const n=`${e}\0${t}`,r=k.get(n);return r!==void 0&&(k.delete(n),k.set(n,r)),r}function Le(e,t,n){N.delete(e),N.set(e,{hash:t,html:n});for(const o of N.keys()){if(N.size<=te)break;N.delete(o)}if(t===null)return;const r=`${e}\0${t}`;k.delete(r),k.set(r,n);for(const o of k.keys()){if(k.size<=te)break;k.delete(o)}}const V=new Map;function Te(e,t,n,r){const o=V.get(e);if(o)return o;const s=A(t,{credentials:"include"}).then(async c=>r&&(c.status===401||c.status===403)?A(n,{credentials:"include"}):c).then(async c=>{if(!c.ok)throw new Error(`shell ${c.status}`);return{html:await c.text(),hash:c.headers.get("X-Lobu-View-Hash")}});return V.set(e,s),s.then(()=>V.delete(e),()=>V.delete(e)),s}const Pe=({orgSlug:e,viewKey:t,scope:n,params:r,onParamsChange:o,contentHash:s,title:c,minHeight:l=96,fixedHeight:x,displayMode:b="fullscreen",maxHeight:a,onRequestDisplayMode:g,className:v,onLoadError:S})=>{const M=fe(),X=u.useRef(M);X.current=M;const{session:ne,isReady:re}=me(),F=re&&!ne,z=u.useRef(null),_=u.useRef(null),[O,P]=u.useState(null),[I,U]=u.useState(null),[Y,oe]=u.useState(l),C=u.useRef(null),$=u.useRef(null),G=u.useRef(l);G.current=l;const Q=u.useRef(x);Q.current=x;const y=u.useRef({scope:n,params:r,onParamsChange:o,onLoadError:S,onRequestDisplayMode:g,title:c});y.current={scope:n,params:r,onParamsChange:o,onLoadError:S,onRequestDisplayMode:g,title:c};const[Z,se]=u.useState(void 0),L=u.useRef({displayMode:b,expandable:!1});L.current={displayMode:b,maxHeight:a,width:Z,expandable:g!==void 0};const w=be(e,t);u.useEffect(()=>{let h=!1;if(w!==$.current&&(P(null),$.current=null,C.current=null),U(null),s!=null&&s===C.current&&w===$.current)return()=>{h=!0};const E=s==null?N.get(w):(()=>{const i=Ce(w,s);return i===void 0?void 0:{hash:s,html:i}})();if(E!==void 0)return C.current=E.hash??s??null,$.current=w,P(E.html),()=>{h=!0};const j=i=>`${q}/api/${e}${i?"/public":""}/views/${encodeURIComponent(t)}/shell`;return Te(w,j(F),j(!0),!F).then(({html:i,hash:d})=>{Le(w,d,i),!h&&(d!==null&&d===C.current&&w===$.current||(C.current=d,$.current=w,U(null),P(i)))}).catch(i=>{h||(U(i instanceof Error?i.message:String(i)),y.current.onLoadError?.())}),()=>{h=!0}},[w,e,t,s,F]);const ie=g!==void 0;u.useEffect(()=>{_.current?.setHostContext(J(L.current))},[b,a,Z,ie]),u.useEffect(()=>{const h=z.current;if(!h||typeof ResizeObserver>"u")return;const E=new ResizeObserver(([j])=>{const i=Math.round(j.contentRect.width);i>0&&se(i)});return E.observe(h),()=>E.disconnect()},[O]);const ce=JSON.stringify(r),ae=JSON.stringify(n);if(u.useEffect(()=>{_.current?.sendToolInput({arguments:{scope:y.current.scope,params:y.current.params}})},[ae,ce]),u.useEffect(()=>{if(!O||I)return;const h=z.current;if(!h?.contentWindow)return;const E=e,j=t;let i=!1;const d=new we(null,{name:"Lobu",version:"1.0.0"},{openLinks:{},serverTools:{},updateModelContext:{structuredContent:{}}},{hostContext:J(L.current)});d.addEventListener("sizechange",({height:f})=>{Q.current||typeof f=="number"&&oe(Math.max(G.current,Math.ceil(f)))}),d.oncalltool=async({name:f,arguments:m})=>{if(i)return{content:[{type:"text",text:"view unmounted"}],isError:!0};let R;try{R=await Oe(E,j,y.current.title??j,y.current.scope,f,m)}catch(ee){return{content:[{type:"text",text:String(ee)}],isError:!0}}if(i)return{content:[{type:"text",text:"view unmounted"}],isError:!0};if("error"in R)return{content:[{type:"text",text:R.error}],isError:!0};const W=await A(R.url,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(R.body),timeoutMs:3e4}),T=await W.json().catch(()=>null);return W.ok?{content:[{type:"text",text:JSON.stringify(T)}],structuredContent:T??{}}:{content:[{type:"text",text:T&&typeof T.error=="string"&&T.error||`API error: ${W.status}`}],isError:!0}},d.onupdatemodelcontext=async({structuredContent:f})=>{if(i)return{};const m=f?.params;return m&&typeof m=="object"&&!Array.isArray(m)&&y.current.onParamsChange(m),{}},d.onopenlink=async({url:f})=>{if(i)return{};const m=new URL(f,window.location.href);return m.origin===window.location.origin?(m.pathname=pe(m.pathname),await X.current({href:m.href})):window.open(m.href,"_blank","noopener,noreferrer"),{}},d.onrequestdisplaymode=async({mode:f})=>{const m=L.current.displayMode,R=y.current.onRequestDisplayMode;return!i&&R&&f!==m&&(f==="inline"||f==="fullscreen")&&R(f),{mode:m}},d.addEventListener("initialized",()=>{d.sendToolInput({arguments:{scope:y.current.scope,params:y.current.params}})});const D=new xe(h.contentWindow,h.contentWindow);d.connect(D).catch(f=>{console.error("[view-frame] failed to initialize",f)}),_.current=d;const le=he(()=>{i||D.send({jsonrpc:"2.0",method:"lobu/notifications/data-changed",params:{}}).catch(()=>{})}),K=new MutationObserver(()=>{d.setHostContext(J(L.current))});return K.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>{i=!0,le(),K.disconnect(),_.current=null,D.close()}},[O,I,e,t]),I)return p.jsxs("div",{"data-testid":"view-frame-error",className:"text-sm text-destructive",children:["View failed to load: ",I]});const H=!x&&a!==void 0&&Y>a;return p.jsxs("div",{className:ve(a!==void 0&&"relative overflow-hidden",v),style:a!==void 0?{maxHeight:a}:void 0,"data-testid":"view-frame","data-view":t,"data-clipped":H||void 0,children:[O?p.jsx("iframe",{ref:z,title:c??t,srcDoc:O,sandbox:"allow-scripts",style:{width:"100%",height:x??Y,border:"none",display:"block"}}):p.jsx("div",{className:"animate-pulse rounded-md bg-muted/40",style:{height:l}}),H?p.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 h-12 bg-gradient-to-t from-background to-transparent"}):null]})},Me=[{value:!0,label:"Yes"},{value:!1,label:"No"}];function _e(e,t,n){const r=[],o=[];for(const[s,c]of Object.entries(e??{})){const l=c.filter;if(!l)continue;const x=v=>n({...t,[s]:v}),b=l.options??(c.type==="boolean"?Me:void 0),a=t[s],g=b?Ee({searchPlaceholder:`Search ${l.label.toLowerCase()}...`,options:b.map(v=>({value:String(v.value),label:v.label})),selected:a===void 0?[]:[String(a)],onSelect:v=>{const S=b.find(M=>String(M.value)===v);S&&x(S.value)}}):Re({type:c.type==="number"?"number":"text",label:l.label,value:typeof a=="boolean"?void 0:a,onApply:x});r.push({key:`param:${s}`,label:l.label,group:"View",icon:p.jsx(ye,{className:"h-4 w-4"}),editor:g}),a!==void 0&&o.push({id:`param:${s}`,label:l.label,op:"is",value:b?.find(v=>v.value===a)?.label??(a===""?"(empty)":String(a)),onRemove:()=>{const{[s]:v,...S}=t;n(S)}})}return{fields:r,chips:o}}function Ie(e,t){const n={...t};for(const[r,o]of Object.entries(e??{}))o.filter&&delete n[r];return n}function Ue({decls:e,params:t,onParamsChange:n}){const{fields:r,chips:o}=_e(e,t,n);return r.length?p.jsx(ge,{label:"View filters",className:"mb-3",fields:r,chips:o,onClearAll:()=>n(Ie(e,t))}):null}export{Fe as M,ze as V,Pe as a,Ue as b,_e as v,Ie as w};
|
|
2
|
-
//# sourceMappingURL=view-param-filters-CER47Tlz.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{j as e,fe as A,u as w,f1 as T,f4 as C,B as v,C as $,d6 as I,bc as P,q as L,L as M,y as O,jG as q}from"./index-DdBTTN3y.js";import{j as b,k as z,S as y,R as U,h as V,D as B}from"./renderer-DXfJaCCa.js";import{u as H}from"./record-session-R-uHNuby.js";import{T as D,a as E,b as N,c as k,d as _,e as S}from"./table-BUqshjxa.js";const G=3;function J(t,s,a,l){const d=F(t.schema,s),i=b(s,d??{});return{href:"",key:`record-field:${t.entity.id}:${s}${a===void 0?"":`:${a}`}`,title:a===void 0?i:l?`${i} ${a+1} of ${l}`:`${i} ${a+1}`,recordField:{entityId:t.entity.id,field:s,row:a}}}function F(t,s){return t?.properties?.[s]}function ee({target:t}){const s=H(t.entityId),a=F(s?.schema,t.field);return s?!a||A(a)?e.jsx("p",{className:"px-5 py-5 text-sm text-muted-foreground",children:"This field is no longer available in this view."}):e.jsx("div",{className:"space-y-3 px-5 py-4",children:t.row===void 0?e.jsx(K,{session:s,field:t.field,prop:a}):e.jsx(Q,{session:s,field:t.field,prop:a,row:t.row})}):e.jsx("p",{className:"px-5 py-5 text-sm text-muted-foreground",children:"This record is no longer open. Open it again to see this field."})}function K({session:t,field:s,prop:a}){const l=w(),{record:d,editing:i}=t,r=d.values.metadata[s],n=Array.isArray(r)?r:[],m=T(a.items?.properties),h=(r==null||Array.isArray(r))&&Object.keys(a.items?.properties??{}).length>0&&n.every(C),x=b(s,a),p=a.maxItems===void 0||n.length<a.maxItems,u=e.jsxs("p",{className:"text-xs text-muted-foreground",children:["Field of ",t.entity.name," · ",n.length," ",n.length===1?"item":"items",h&&n.length>0?" · open an item for every field":""]});if(!h)return e.jsxs(e.Fragment,{children:[u,i?e.jsx(z,{fieldPath:`peek.${s}`,fieldKey:s,prop:a,value:r,onChange:o=>d.setMetadataField(s,o),isRequired:!1,readonly:!1,orgContext:t.orgContext,ariaLabel:x}):e.jsx("div",{className:"text-sm",children:e.jsx(y,{value:r,prop:a})})]});const j=m.slice(0,G),g=(o,c=n.length)=>l?.open(J(t,s,o,c));return e.jsxs(e.Fragment,{children:[u,n.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No items yet."}):e.jsx("div",{className:"rounded-md border",children:e.jsxs(D,{children:[e.jsx(E,{children:e.jsxs(N,{children:[j.map(([o,c])=>e.jsx(k,{children:b(o,c)},o)),e.jsx(k,{className:"w-10",children:e.jsx("span",{className:"sr-only",children:"Open"})})]})}),e.jsx(_,{children:n.map((o,c)=>e.jsxs(N,{className:"cursor-pointer",onClick:()=>g(c),children:[j.map(([f,R])=>e.jsx(S,{className:"max-w-[10rem] truncate",children:e.jsx(y,{value:o[f],prop:R})},f)),e.jsx(S,{children:e.jsx(v,{type:"button",variant:"ghost",size:"icon",className:"size-7","aria-label":`Open ${x} ${c+1}`,onClick:f=>{f.stopPropagation(),g(c)},children:e.jsx($,{className:"h-4 w-4"})})})]},c))})]})}),i?e.jsxs(v,{type:"button",variant:"outline",size:"sm",disabled:!p,onClick:()=>{d.setMetadataField(s,[...n,{}]),g(n.length,n.length+1)},children:[e.jsx(I,{className:"mr-1.5 h-4 w-4"}),"Add item"]}):null]})}function Q({session:t,field:s,prop:a,row:l}){const d=w(),{record:i,editing:r}=t,n=i.values.metadata[s],m=Array.isArray(n)?n:[],h=m[l],x=a.minItems===void 0||m.length>a.minItems;return C(h)?r?e.jsxs(e.Fragment,{children:[e.jsx(B,{schema:a.items,values:h,onValuesChange:p=>i.setMetadataField(s,m.map((u,j)=>j===l?p:u)),orgContext:t.orgContext}),e.jsxs(v,{type:"button",variant:"ghost",size:"sm",className:"text-destructive hover:text-destructive",disabled:!x,onClick:()=>{i.setMetadataField(s,m.filter((p,u)=>u!==l)),d?.back?.()},children:[e.jsx(P,{className:"mr-1.5 h-4 w-4"}),"Remove item"]})]}):e.jsx(U,{fields:V(a.items),values:h,context:{ownerSlug:t.ownerSlug,orgContext:t.orgContext}}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"This item is no longer in the list."})}function te(){const{isAuthenticated:t,isReady:s}=L();return s?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center","data-testid":"views-access-required",children:[e.jsx("h2",{className:"text-lg font-semibold",children:t?"Join this workspace to open this view":"Sign in to open this view"}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:t?"Attached views are available to workspace members. Use the workspace banner to join.":"Attached views are available to workspace members. Public record details remain available."}),t?null:e.jsx(M,{to:"/auth/login",search:O({callbackUrl:q(),intent:"sign-in"}),className:"mt-4 text-sm font-medium underline underline-offset-4",children:"Sign in"})]}):null}export{ee as R,te as V,J as r};
|
|
2
|
-
//# sourceMappingURL=views-access-required-C_b9itZ2.js.map
|