@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
|
@@ -79,41 +79,41 @@
|
|
|
79
79
|
|
|
80
80
|
"@asteasolutions/zod-to-openapi": ["@asteasolutions/zod-to-openapi@9.1.0", "", { "dependencies": { "openapi3-ts": "^4.6.0" }, "peerDependencies": { "zod": "^4.0.0" } }, "sha512-pLMeRgRYS7/vZIgAAkOe2P6+XGTifR1MT9pqDoxZ11EmcJJ+DPmdPqLN8ZZF4U8R9KHCCQCS9c2wtuE8wSrfkw=="],
|
|
81
81
|
|
|
82
|
-
"@aws-sdk/client-bedrock": ["@aws-sdk/client-bedrock@3.
|
|
82
|
+
"@aws-sdk/client-bedrock": ["@aws-sdk/client-bedrock@3.1162.0", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/credential-provider-node": "^3.972.93", "@aws-sdk/token-providers": "3.1162.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/node-http-handler": "^4.14.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-NBaQh0+NtmMRIOnY5Ttoo0o7Uzwd2XY16iEcq1LdUL0vEVRG9iliz+9YPiEhhIBVB2O4l4VaJduozF/IQsClKA=="],
|
|
83
83
|
|
|
84
|
-
"@aws-sdk/client-bedrock-runtime": ["@aws-sdk/client-bedrock-runtime@3.
|
|
84
|
+
"@aws-sdk/client-bedrock-runtime": ["@aws-sdk/client-bedrock-runtime@3.1162.0", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/credential-provider-node": "^3.972.93", "@aws-sdk/eventstream-handler-node": "^3.972.40", "@aws-sdk/middleware-eventstream": "^3.972.36", "@aws-sdk/middleware-websocket": "^3.972.63", "@aws-sdk/token-providers": "3.1162.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/node-http-handler": "^4.14.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-5JiQfVsvbQ4E/v7+E9dDF0VYp02OKdKceAJyBzK3H+Ia13ntMZFgD5YL/xpgNR2SuK89MxuwdU5ilAqiXbarKw=="],
|
|
85
85
|
|
|
86
|
-
"@aws-sdk/client-secrets-manager": ["@aws-sdk/client-secrets-manager@3.
|
|
86
|
+
"@aws-sdk/client-secrets-manager": ["@aws-sdk/client-secrets-manager@3.1162.0", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/credential-provider-node": "^3.972.93", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/node-http-handler": "^4.14.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-08LlSWeA0I/WZMlUOYXSGUhLK3AQGilrvyoBGezntKxZ9rj89MZaxQth64vnumbKwJJiEkF5i5mIIYHhviqnsA=="],
|
|
87
87
|
|
|
88
|
-
"@aws-sdk/core": ["@aws-sdk/core@3.
|
|
88
|
+
"@aws-sdk/core": ["@aws-sdk/core@3.980.0", "", { "dependencies": { "@aws-sdk/types": "^3.975.0", "@aws-sdk/xml-builder": "^3.972.42", "@aws/lambda-invoke-store": "^0.3.0", "@smithy/core": "^3.38.0", "@smithy/signature-v4": "^5.7.5", "@smithy/types": "^4.19.0", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, "sha512-2RVSP/SsPS8HSPPzIPWNYFnSmlOdxx8VDlt5gDOuMaq9UiIi35pUyo6ZEuJcysjVCu0L8Lv5dJevLLpEkyF0/Q=="],
|
|
89
89
|
|
|
90
|
-
"@aws-sdk/credential-provider-env": ["@aws-sdk/credential-provider-env@3.972.
|
|
90
|
+
"@aws-sdk/credential-provider-env": ["@aws-sdk/credential-provider-env@3.972.81", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-VD+EVZ9UHNZhSm4KtakXZAPzgfOw4mRx66dAXNUtHcdJUisbsE7kpi1PRZFMquvuqVfx52fCDBgJgYyOFT/4hQ=="],
|
|
91
91
|
|
|
92
|
-
"@aws-sdk/credential-provider-http": ["@aws-sdk/credential-provider-http@3.972.
|
|
92
|
+
"@aws-sdk/credential-provider-http": ["@aws-sdk/credential-provider-http@3.972.83", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/node-http-handler": "^4.14.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-NsLT02HXcWAQAgpuDJznoJDPIDH/Hh2LiQVlYc+1bVGsksEUZuYCMKa1E1L5qvzc5LLTphp7BP9LYVIhf+MbQA=="],
|
|
93
93
|
|
|
94
|
-
"@aws-sdk/credential-provider-ini": ["@aws-sdk/credential-provider-ini@3.973.
|
|
94
|
+
"@aws-sdk/credential-provider-ini": ["@aws-sdk/credential-provider-ini@3.973.26", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/credential-provider-env": "^3.972.81", "@aws-sdk/credential-provider-http": "^3.972.83", "@aws-sdk/credential-provider-login": "^3.972.88", "@aws-sdk/credential-provider-process": "^3.972.81", "@aws-sdk/credential-provider-sso": "^3.973.25", "@aws-sdk/credential-provider-web-identity": "^3.972.87", "@aws-sdk/nested-clients": "^3.998.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/credential-provider-imds": "^4.5.2", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-vRydnN8wPqh5APe5R+/y4/UOts7QQQQP1UTczJq3fLcLzkQblbkYpLn+Srr8w9S/gzXU1pbiPKTv479unRawAA=="],
|
|
95
95
|
|
|
96
|
-
"@aws-sdk/credential-provider-login": ["@aws-sdk/credential-provider-login@3.972.
|
|
96
|
+
"@aws-sdk/credential-provider-login": ["@aws-sdk/credential-provider-login@3.972.88", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/nested-clients": "^3.998.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-J8IcBpuFj3j3RImHq/dVO5HtnUbFgvzg7JQvzLt5A42VmzLLgPLM+CUWN68jpIMdIPayu1bb1T+mJjDv9Sq1aA=="],
|
|
97
97
|
|
|
98
|
-
"@aws-sdk/credential-provider-node": ["@aws-sdk/credential-provider-node@3.972.
|
|
98
|
+
"@aws-sdk/credential-provider-node": ["@aws-sdk/credential-provider-node@3.972.93", "", { "dependencies": { "@aws-sdk/credential-provider-env": "^3.972.81", "@aws-sdk/credential-provider-http": "^3.972.83", "@aws-sdk/credential-provider-ini": "^3.973.26", "@aws-sdk/credential-provider-process": "^3.972.81", "@aws-sdk/credential-provider-sso": "^3.973.25", "@aws-sdk/credential-provider-web-identity": "^3.972.87", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/credential-provider-imds": "^4.5.2", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-f5Grg1sgckk11ojxZ7NUYG1ZCOvcNhuuPngKWVxOKGuZokj8eOmo/75+GyR6qAQx4wAGytglZ53r4a3UPleAPQ=="],
|
|
99
99
|
|
|
100
|
-
"@aws-sdk/credential-provider-process": ["@aws-sdk/credential-provider-process@3.972.
|
|
100
|
+
"@aws-sdk/credential-provider-process": ["@aws-sdk/credential-provider-process@3.972.81", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-6NBoFaNJbHB0YjcKW4WfrYIDmaMjtwbxlRreAf3MnXkD9WJX8XYu62pa78M0AQGgEt2TJmcNxqL3btAAjV67bA=="],
|
|
101
101
|
|
|
102
|
-
"@aws-sdk/credential-provider-sso": ["@aws-sdk/credential-provider-sso@3.973.
|
|
102
|
+
"@aws-sdk/credential-provider-sso": ["@aws-sdk/credential-provider-sso@3.973.25", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/nested-clients": "^3.998.0", "@aws-sdk/token-providers": "3.1162.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-p1fNaa3as6S2L0wrWqe1cEz1r4iGQa7GbW23KJE3rJy+ZZxhPr6pr9cyCAJ7fAnzoMELvQGZZAuv/rG1ogRuOQ=="],
|
|
103
103
|
|
|
104
|
-
"@aws-sdk/credential-provider-web-identity": ["@aws-sdk/credential-provider-web-identity@3.972.
|
|
104
|
+
"@aws-sdk/credential-provider-web-identity": ["@aws-sdk/credential-provider-web-identity@3.972.87", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/nested-clients": "^3.998.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-O2P6CUfMP2qi8vgYB6UHYj/NYTEAAdTr2geEVdVchr3JBofK4Q6W917FiVr2sleA72R59YAXMEhrpzPwkX/xdA=="],
|
|
105
105
|
|
|
106
106
|
"@aws-sdk/eventstream-handler-node": ["@aws-sdk/eventstream-handler-node@3.972.40", "", { "dependencies": { "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-LR2mRKFb9EMlGHmJNXMtuMPvVQqN1b9/v68A1UQaE72pb8pHqiHxTtS++vaab8844YesGVzBVrloAis7+EXq/w=="],
|
|
107
107
|
|
|
108
108
|
"@aws-sdk/middleware-eventstream": ["@aws-sdk/middleware-eventstream@3.972.36", "", { "dependencies": { "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-OkV+alDzmJ3DOs2mRPLSM9FUVSul7G1wkpKrbO+tyxxGOT7qLMPZHOlj4Ipjw9OayRmU7nMVPSFo7hvUqOSeJg=="],
|
|
109
109
|
|
|
110
|
-
"@aws-sdk/middleware-websocket": ["@aws-sdk/middleware-websocket@3.972.
|
|
110
|
+
"@aws-sdk/middleware-websocket": ["@aws-sdk/middleware-websocket@3.972.63", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/signature-v4": "^5.7.5", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-fgY5UA9oeQYwxR5MyhIHUs9wGrXJGXLK71MQck1z3ArEb/GvQ0TmZm/RPs+cIbcaoKtIGqMb2u8AZ1rGFKYzKg=="],
|
|
111
111
|
|
|
112
|
-
"@aws-sdk/nested-clients": ["@aws-sdk/nested-clients@3.
|
|
112
|
+
"@aws-sdk/nested-clients": ["@aws-sdk/nested-clients@3.998.0", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/signature-v4-multi-region": "^3.996.51", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/fetch-http-handler": "^5.8.0", "@smithy/node-http-handler": "^4.14.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-aOD1oQVWG6UjOOEdp0MsrWE93vG8pPbvtymmeNtglGxAARplh1wzhHs4npqtY5JN5GBSrTaLbn1hQQ3W2Lk8ow=="],
|
|
113
113
|
|
|
114
114
|
"@aws-sdk/signature-v4-multi-region": ["@aws-sdk/signature-v4-multi-region@3.996.51", "", { "dependencies": { "@aws-sdk/types": "^3.975.0", "@smithy/signature-v4": "^5.7.5", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-+aHvUugVBuMPXxgkPfWnTMyGdE/yWS8GHi5+qQ37HowS0YqzrbuaDLznj+Dtmtu5jgCdqz36gXmujOToUhNNWw=="],
|
|
115
115
|
|
|
116
|
-
"@aws-sdk/token-providers": ["@aws-sdk/token-providers@3.
|
|
116
|
+
"@aws-sdk/token-providers": ["@aws-sdk/token-providers@3.1162.0", "", { "dependencies": { "@aws-sdk/core": "^3.980.0", "@aws-sdk/nested-clients": "^3.998.0", "@aws-sdk/types": "^3.975.0", "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-vOD6Ac0M43LtXaPu+/+wUMQCd27zIpKt/Le/a645qhx7T1MZeEK71PDhtIHGHgnQjGyNSfC6Z5RNud/hQb3veg=="],
|
|
117
117
|
|
|
118
118
|
"@aws-sdk/types": ["@aws-sdk/types@3.975.0", "", { "dependencies": { "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-WQlhs6juByzWOzj5fwxOx0mPJaEqMcG/sDpl3Id61B3XhKE63xY+0QWcnG+sWR/sCfprmreyUo1lM7IKZmHMzw=="],
|
|
119
119
|
|
|
@@ -507,17 +507,17 @@
|
|
|
507
507
|
|
|
508
508
|
"@slack/web-api": ["@slack/web-api@7.19.0", "", { "dependencies": { "@slack/logger": "^4.0.1", "@slack/types": "^2.21.0", "@types/node": ">=18", "@types/retry": "0.12.0", "axios": "^1.16.0", "eventemitter3": "^5.0.1", "form-data": "^4.0.4", "is-electron": "2.2.2", "is-stream": "^2", "p-queue": "^6", "p-retry": "^4", "retry": "^0.13.1" } }, "sha512-ItjyjEZml+LDH8CjcCLRLJHh7VZtevPKExrRN3l5KWyBliyDnGAeoO4Y+K+fFBmRpKLYVPgqWMX4THldv2HVtA=="],
|
|
509
509
|
|
|
510
|
-
"@smithy/core": ["@smithy/core@3.
|
|
510
|
+
"@smithy/core": ["@smithy/core@3.39.0", "", { "dependencies": { "@smithy/types": "^4.20.0", "tslib": "^2.6.2" } }, "sha512-JJ/46AWQ4ipS1N2eZmUj7yzIhH8NhQIfAE+dce7NSB6dmFh+7hvD4pbofcoT4I0Xzfy/LNhZx3V2QhwYyAiqdg=="],
|
|
511
511
|
|
|
512
512
|
"@smithy/credential-provider-imds": ["@smithy/credential-provider-imds@4.5.2", "", { "dependencies": { "@smithy/core": "^3.33.2", "@smithy/types": "^4.17.2", "tslib": "^2.6.2" } }, "sha512-A9uSdn72ozbRUSit0eib0TW7nXuNPlaeM0zcGkJ+nE6tFcSDbnmtwoxbTCFBukVQcszDAyvsd7+rTduPTXpygg=="],
|
|
513
513
|
|
|
514
514
|
"@smithy/fetch-http-handler": ["@smithy/fetch-http-handler@5.8.0", "", { "dependencies": { "@smithy/core": "^3.33.3", "@smithy/types": "^4.18.0", "tslib": "^2.6.2" } }, "sha512-ycSJu3tFAQ4v04CBB0agqFMVsSQ1iG3yw+SpgxRqKfaURpQD4CZ8Wn0zPMmSnOuTpTh65Vz+EA0rMrw089wvkA=="],
|
|
515
515
|
|
|
516
|
-
"@smithy/node-http-handler": ["@smithy/node-http-handler@4.14.
|
|
516
|
+
"@smithy/node-http-handler": ["@smithy/node-http-handler@4.14.2", "", { "dependencies": { "@smithy/core": "^3.39.0", "@smithy/types": "^4.20.0", "tslib": "^2.6.2" } }, "sha512-i1uORV1v3qBqP43ayRKzIdm1q5x14tf8N4Dd06/QUX1Szm6VxHMrTsu20X5E63UFsaNZCRjI4SXG0jDmqYa+3w=="],
|
|
517
517
|
|
|
518
518
|
"@smithy/signature-v4": ["@smithy/signature-v4@5.7.5", "", { "dependencies": { "@smithy/core": "^3.38.0", "@smithy/types": "^4.19.0", "tslib": "^2.6.2" } }, "sha512-WPjdr5oWOk1LArpI4pavu+fSo+/evi0Re1olxGvqwuZopd4gYR1UGCi+Soyn/IjmafqbWs+ZC+3AKxJS3ZpwUg=="],
|
|
519
519
|
|
|
520
|
-
"@smithy/types": ["@smithy/types@4.
|
|
520
|
+
"@smithy/types": ["@smithy/types@4.20.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-lCA6QG22dPk9ecHbv91jDQZsmtPUjdS1aE2Il6NNPqe7DrYc0dZQi6DhcESk2KYXH2sp5xbAcGdYMZDFnuzA2A=="],
|
|
521
521
|
|
|
522
522
|
"@so-ric/colorspace": ["@so-ric/colorspace@1.1.6", "", { "dependencies": { "color": "^5.0.2", "text-hex": "1.0.x" } }, "sha512-/KiKkpHNOBgkFJwu9sh48LkHSMYGyuTcSFK/qMBdnOAlrRJzRSXAOFB5qwzaVQuDl8wAvHVMkaASQDReTahxuw=="],
|
|
523
523
|
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{cq as t,w as p,j as a,cr as e,ao as s}from"./index-B-Ab8srM.js";import{A as n}from"./activity-route-view-B0m7_g9q.js";import"./record-activity-6CfR95Ul.js";import"./filter-editors-Dd5R2Etd.js";import"./runs-BMzp7j7j.js";import"./source-record-panels-CBV9tsR3.js";import"./event-card-BtTUuf2q.js";import"./definition-comparison-C3k6Wa9B.js";import"./automation-source-list-D8ZSavQU.js";import"./schema-value-BUgC0Ro8.js";import"./json-diff-B-1Swv_y.js";import"./index-Vcq4gwWv.js";import"./run-initiator-BvruBM5H.js";import"./use-automations-II_YJWtN.js";import"./clients-6aJvabvS.js";import"./renderer-CgaQKMoG.js";import"./card-DT9mSjSp.js";import"./table-B6yimlsZ.js";import"./change-summary-CGrKEJ04.js";import"./copy-button-D6zpsZLi.js";import"./agent-list-row-SyACVYX7.js";import"./automation-row-CmTpAD4r.js";import"./device-automation-Dp3faMvp.js";import"./client-activity-scopes-DoIErdUy.js";import"./client-rows-BbVQy5Ti.js";import"./events-feed-zFnTSE27.js";import"./agent-loading-shells-DHvKiEUB.js";import"./member-scope-gate-Lj9m4RL2.js";import"./home-stream-IVsNEkwp.js";import"./list-skeleton-BAqT0vxo.js";import"./public-shell-ready-Dlh-eWz0.js";function J(){const{owner:o}=t.useParams(),r=p({select:m=>m.pathname}),i=t.useSearch();return a.jsx(n,{owner:o,search:i,entityScope:e(s(r,1)).path})}export{J as component};
|
|
2
|
+
//# sourceMappingURL=_-CZgmjLR9.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/entity-page-DHHMmA8V.js","assets/index-B-Ab8srM.js","assets/index-tTbno-PX.css","assets/entity-pages-eYbG2FDT.js","assets/renderer-CgaQKMoG.js","assets/schema-value-BUgC0Ro8.js","assets/card-DT9mSjSp.js","assets/table-B6yimlsZ.js","assets/record-activity-6CfR95Ul.js","assets/filter-editors-Dd5R2Etd.js","assets/runs-BMzp7j7j.js","assets/source-record-panels-CBV9tsR3.js","assets/event-card-BtTUuf2q.js","assets/definition-comparison-C3k6Wa9B.js","assets/automation-source-list-D8ZSavQU.js","assets/json-diff-B-1Swv_y.js","assets/index-Vcq4gwWv.js","assets/run-initiator-BvruBM5H.js","assets/use-automations-II_YJWtN.js","assets/clients-6aJvabvS.js","assets/change-summary-CGrKEJ04.js","assets/copy-button-D6zpsZLi.js","assets/agent-list-row-SyACVYX7.js","assets/automation-row-CmTpAD4r.js","assets/device-automation-Dp3faMvp.js","assets/client-activity-scopes-DoIErdUy.js","assets/client-rows-BbVQy5Ti.js","assets/events-feed-zFnTSE27.js","assets/agent-loading-shells-DHvKiEUB.js","assets/member-scope-gate-Lj9m4RL2.js","assets/dynamic-schema-form-DyT_9iVE.js","assets/views-access-required-BVtMfgLh.js","assets/record-session-Bpx4_LGk.js","assets/view-param-filters-DYlqBocg.js","assets/app-bridge-C4nPtae3.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{am as x,w as p,an as y,ao as j,ap as P,aq as g,q as R,s as f,t as v,j as e,r as w,ar as E,n as S,_}from"./index-B-Ab8srM.js";import{P as r}from"./public-shell-ready-Dlh-eWz0.js";const b=S(async()=>({default:(await _(async()=>{const{EntityPage:a}=await import("./entity-page-DHHMmA8V.js");return{EntityPage:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34]))).EntityPage}));function c(){return e.jsx("div",{"data-public-loading":"true",children:e.jsx(E,{})})}function L(){const{owner:a}=x.useParams(),l=p({select:m=>m.pathname}),s=y(j(l)),d=s?.viewKey,{path:u}=P(a,s?.entityPath),{data:t,isLoading:n,error:o}=g(u,{slug:a}),{session:h,isReady:i}=R();return f({active:v({settled:!n,authReady:i,session:h,resolved:!!t,error:o}),owner:a}),n||!i&&!t?e.jsx(c,{}):o||!t||!t.entity?e.jsxs(e.Fragment,{children:[e.jsx(r,{}),e.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[e.jsx("h1",{className:"text-2xl font-semibold",children:"Not Found"}),e.jsx("p",{className:"text-muted-foreground mt-2",children:"We couldn't resolve this path."})]})]}):e.jsxs(e.Fragment,{children:[e.jsx(r,{}),e.jsx(w.Suspense,{fallback:e.jsx(c,{}),children:e.jsx(b,{namespace:t.workspace,path:t.path,entity:t.entity,viewKey:d})})]})}export{L as component};
|
|
3
|
+
//# sourceMappingURL=_-Cm5OgtYD.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as b,w as j,q as k,at as N,bf as v,r as S,j as s,ak as L,al as $,O as w,i as C,gG as E,L as i,gH as u,hz as P}from"./index-B-Ab8srM.js";import{A as y}from"./agent-skill-context-DF5q0Dfr.js";import"./core.esm-BIE97rfo.js";import"./skill-editor-D_W3QlRz.js";const B={skills:{label:"Skills",create:"Add a skill"},guardrails:{label:"Guardrails",create:"New custom guardrail"}};function R({owner:e,agentId:a,agentName:o,subpath:r}){const[n]=r.split("/"),t=n==="skills"||n==="guardrails"?{key:n,...B[n]}:null;return s.jsx(E,{crumbs:[s.jsx(i,{to:"/$owner/agents",params:{owner:e},className:u,children:"Agents"},"agents"),s.jsx(i,{to:"/$owner/agents/$agentId",params:{owner:e,agentId:a},className:u,children:o},"agent"),...t?[s.jsx(i,{to:"/$owner/agents/$agentId",params:{owner:e,agentId:a},hash:t.key,className:u,children:t.label},"section")]:[]],current:t?t.create:"Conversation"})}function W({owner:e,agentId:a}){const o=b(),{pathname:r}=j(),{isAuthenticated:n}=k(),{isMember:t}=N(),g=n&&t,{data:p=[],isLoading:x}=v({enabled:g}),d=p.find(A=>A.agentId===a)??null,m=!d&&!x&&g;S.useEffect(()=>{m&&o({to:"/$owner",params:{owner:e},replace:!0})},[m,o,e]);const h=`/${e}/agents/${a}`,l=r.startsWith(`${h}/`)?r.slice(h.length+1):"",c=l.endsWith("/")?l.slice(0,-1):l,f=c.startsWith("conversations/");return s.jsx(y,{agentId:a,children:s.jsxs(L,{className:"gap-3 overflow-hidden pt-2.5 pb-8",children:[c?s.jsx($,{children:s.jsx(R,{owner:e,agentId:a,agentName:d?.name??"Agent",subpath:c})}):null,s.jsx("div",{className:C("flex min-h-0 min-w-0 flex-1 flex-col",f?"overflow-hidden":"overflow-y-auto"),children:s.jsx(w,{})})]})})}function I(){const{owner:e,agentId:a}=P.useParams();return s.jsx(W,{owner:e,agentId:a})}export{I as component};
|
|
2
|
+
//# sourceMappingURL=_agentId-Cci6NFc1.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as L,gJ as w,r as u,j as n,i as D,gK as S,q as E,at as M,bf as P,b2 as N,d5 as R,cT as O,gL as $,gM as B,bs as Q,E as q}from"./index-B-Ab8srM.js";import{L as z,A as F}from"./agent-thread-B1ZepGZc.js";import{n as C}from"./agent-thread-storage-U6htL3ad.js";import{A as H,C as J}from"./agent-loading-shells-DHvKiEUB.js";import"./app-bridge-C4nPtae3.js";import"./pending-seed-CoFPQ835.js";import"./use-mention-search-Bxlpd6Dp.js";import"./index-Vcq4gwWv.js";import"./use-automations-II_YJWtN.js";import"./event-card-BtTUuf2q.js";import"./definition-comparison-C3k6Wa9B.js";import"./automation-source-list-D8ZSavQU.js";import"./schema-value-BUgC0Ro8.js";import"./json-diff-B-1Swv_y.js";import"./run-initiator-BvruBM5H.js";import"./clients-6aJvabvS.js";import"./renderer-CgaQKMoG.js";import"./card-DT9mSjSp.js";import"./table-B6yimlsZ.js";import"./change-summary-CGrKEJ04.js";import"./copy-button-D6zpsZLi.js";import"./agent-list-row-SyACVYX7.js";import"./automation-row-CmTpAD4r.js";import"./device-automation-Dp3faMvp.js";import"./events-feed-zFnTSE27.js";import"./client-activity-scopes-DoIErdUy.js";import"./client-rows-BbVQy5Ti.js";function K({owner:e,agent:s,threadId:t,afterMessagesContent:d,className:r,initialDraft:h,newChatRequested:f=!1,preventAutoNavigate:p}){const o=L(),i=s.agentId,{data:a=[]}=w(i,{orgSlug:e}),[l,x]=u.useState(()=>C()),[g,A]=u.useState(null);u.useEffect(()=>{!f||t||(x(C()),A(null),o({to:".",search:(m=>{const{new:b,...y}=m;return y}),replace:!0}))},[f,t,o]);const v=u.useMemo(()=>!g||a.some(m=>m.id===g.id)?a:[g,...a],[a,g]),c=t??l,T=!t||!v.some(m=>m.id===t),j=u.useCallback(()=>{if(v.some(b=>b.id===c))return;A({id:c,title:`Conversation ${v.length+1}`,createdAt:Date.now(),updatedAt:Date.now()});const m=S(e,i,c);o({...m,replace:!0})},[v,c,o,e,i]),k=u.useCallback(()=>{T&&!p&&j()},[T,j,p]);return n.jsx("div",{className:D("flex min-h-0 flex-1 flex-col",r),children:n.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:n.jsx(z,{agentId:i,workspaceSlug:e,thread:c,loadHistory:!!t,onFirstUserMessage:k,initialDraft:h,children:n.jsx(F,{afterMessagesContent:d})},`${i}:${c}`)})})}function U({owner:e,agentId:s,threadId:t,initialDraft:d,newChatRequested:r,afterMessagesContent:h,preventAutoNavigate:f}){const{isAuthenticated:p}=E(),{isMember:o,isLoading:i}=M(),a=p&&o,{data:l=[],isLoading:x}=P({enabled:a}),g=s??null,A=l.find(c=>c.agentId===g)??null;return a&&x||i?n.jsx(H,{}):A?n.jsx(K,{owner:e,agent:A,threadId:t,initialDraft:d,newChatRequested:r,afterMessagesContent:h,preventAutoNavigate:f,className:"min-h-0 flex-1 overflow-hidden"}):n.jsx(N,{icon:R,title:"Agent not found",description:"This agent may have been removed."})}function W(e){return[...e].sort((s,t)=>t.updatedAt-s.updatedAt)[0]}function _({owner:e,agentId:s,threadId:t,initialDraft:d,forceComposer:r=!1,newChatRequested:h=!1,afterMessagesContent:f,preventAutoNavigate:p}){const o=L(),{data:i=[],isLoading:a}=O($(e,s,{strict:!1})),l=u.useMemo(()=>W(i),[i]);return u.useEffect(()=>{if(t||r||a||!l)return;const x=S(e,s,l.id);o({...x,replace:!0})},[s,a,l,o,e,t,r]),!t&&!r&&(a||l)?n.jsx(J,{}):n.jsx(U,{owner:e,agentId:s,threadId:t,initialDraft:d,newChatRequested:h,afterMessagesContent:f,preventAutoNavigate:p})}function jt(){const{owner:e,agentId:s}=B.useParams(),{threadId:t}=Q({strict:!1}),{new:d,prompt:r}=q({strict:!1});return n.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden px-4 pt-2.5 pb-4 lg:px-6 lg:pb-6",children:n.jsx("div",{className:"mx-auto flex min-h-0 w-full max-w-3xl flex-1 flex-col",children:n.jsx(_,{owner:e,agentId:s,threadId:t,initialDraft:r,forceComposer:!t,newChatRequested:!!d})})})}export{jt as component};
|
|
2
|
+
//# sourceMappingURL=_agentId-GhWTlPO2.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as A,v as k,aq as L,q as C,at as R,j as t,ak as b,al as _,gG as D,L as d,gH as P,d5 as S,S as $,B as u,eI as B,hq as g,az as O}from"./index-B-Ab8srM.js";import{A as y}from"./automation-detail-content-BFv1TglZ.js";import{A as z}from"./activity-link-rXNpmppV.js";import{b as E}from"./use-automations-II_YJWtN.js";import"./event-detail-8xHiplt_.js";import"./events-feed-zFnTSE27.js";import"./event-card-BtTUuf2q.js";import"./definition-comparison-C3k6Wa9B.js";import"./automation-source-list-D8ZSavQU.js";import"./schema-value-BUgC0Ro8.js";import"./json-diff-B-1Swv_y.js";import"./index-Vcq4gwWv.js";import"./run-initiator-BvruBM5H.js";import"./clients-6aJvabvS.js";import"./renderer-CgaQKMoG.js";import"./card-DT9mSjSp.js";import"./table-B6yimlsZ.js";import"./change-summary-CGrKEJ04.js";import"./copy-button-D6zpsZLi.js";import"./agent-list-row-SyACVYX7.js";import"./automation-row-CmTpAD4r.js";import"./device-automation-Dp3faMvp.js";import"./client-activity-scopes-DoIErdUy.js";import"./client-rows-BbVQy5Ti.js";import"./view-param-filters-DYlqBocg.js";import"./app-bridge-C4nPtae3.js";import"./filter-editors-Dd5R2Etd.js";import"./home-stream-IVsNEkwp.js";import"./list-skeleton-BAqT0vxo.js";import"./create-automation-form-B12yTrmj.js";import"./entity-options-CGTjLlcS.js";import"./model-selector-onvGA9Ww.js";import"./skill-editor-D_W3QlRz.js";import"./use-mention-search-Bxlpd6Dp.js";import"./proposal-review-shell-CnACXCUg.js";import"./runs-BMzp7j7j.js";function q({owner:a,automationId:o,view:i,runId:e}){const r=A(),{orgContext:x,hasOrgContext:h}=k(),{data:f,isLoading:m}=L(`/${a}`,x),{isAuthenticated:v}=C(),{isLoading:c}=R(),j=f?.workspace?.id??"",N=v?!h||m||c:m||c,s=E(o,void 0,j).data?.automation,n=s?.automation_name??"Automation",p=()=>void r({to:"/$owner/automations",params:{owner:a}}),w=()=>void r({to:"/$owner/automations/$automationId",params:{owner:a,automationId:o},search:{view:"definition",run_id:void 0},replace:!0}),l=!e&&i==="definition";return t.jsx(b,{className:"gap-6 pt-2.5 pb-8",children:t.jsxs(_,{className:"flex min-w-0 flex-col gap-4",children:[t.jsx(D,{crumbs:[t.jsx(d,{to:"/$owner/automations",params:{owner:a},className:P,children:"Automations"},"automations")],current:e?"Review change":n}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx("div",{className:"flex min-w-0 items-center gap-2",children:t.jsxs("h1",{className:"flex min-w-0 items-center gap-2 truncate font-display text-xl font-semibold",children:[t.jsx(S,{className:"h-4 w-4 shrink-0 text-muted-foreground","aria-hidden":!0}),N&&!s?t.jsx($,{className:"h-5 w-40"}):e?"Review change":n]})}),t.jsxs("div",{className:"flex items-center gap-2",children:[l?t.jsx(z,{owner:a,automationId:o,name:n}):null,e?null:l?t.jsx(u,{type:"button",variant:"ghost",size:"sm",className:"h-8 text-muted-foreground hover:text-foreground",onClick:p,children:"Done"}):t.jsx(u,{asChild:!0,variant:"ghost",size:"sm",className:"h-8 gap-1.5",children:t.jsxs(d,{to:"/$owner/automations/$automationId",params:{owner:a,automationId:o},search:{view:"definition",run_id:void 0},children:[t.jsx(B,{className:"h-3.5 w-3.5"}),"Edit"]})})]})]}),t.jsx(y,{owner:a,agentId:s?.managed_agent_id??null,automationId:o,view:i,runId:e,onDone:e?p:w})]})})}function At(){const{owner:a,automationId:o}=g.useParams(),i=g.useSearch();return t.jsx(O,{owner:a,children:()=>t.jsx(q,{owner:a,automationId:o,view:i.view,runId:i.run_id})})}export{At as component};
|
|
2
|
+
//# sourceMappingURL=_automationId-KUlxSTK2.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j1 as I,j as e,az as V,c as z,aG as J,aH as Q,cF as U,d7 as q,B as X,L as l,d9 as Y,aJ as Z,iM as K,iN as ee,aW as ne,gH as h,g7 as oe,gF as te,bb as se,i4 as ae,gG as ie,aQ as re,F as ce}from"./index-B-Ab8srM.js";import{c as de,C as me}from"./device-pin-tombstone-U7Bx05P6.js";import{C as A}from"./connector-page-shell-ClOmVPJr.js";import{a as pe}from"./connector-provenance-wmYu5jwO.js";import{D as le}from"./detail-page-skeleton-I5_7FkKx.js";import{f as ue,C as he,F as xe,a as fe,b as ve,A as je,c as Ce}from"./connection-feed-detail-BLCjhP-H.js";import{S as De,g as ge}from"./status-variants-DT61YfsU.js";import"./list-skeleton-BAqT0vxo.js";import"./runs-BMzp7j7j.js";import"./filter-editors-Dd5R2Etd.js";import"./runs-list-DVhrTr3v.js";import"./run-initiator-BvruBM5H.js";import"./use-automations-II_YJWtN.js";import"./clients-6aJvabvS.js";import"./entity-options-CGTjLlcS.js";import"./event-card-BtTUuf2q.js";import"./definition-comparison-C3k6Wa9B.js";import"./automation-source-list-D8ZSavQU.js";import"./schema-value-BUgC0Ro8.js";import"./json-diff-B-1Swv_y.js";import"./index-Vcq4gwWv.js";import"./renderer-CgaQKMoG.js";import"./card-DT9mSjSp.js";import"./table-B6yimlsZ.js";import"./change-summary-CGrKEJ04.js";import"./copy-button-D6zpsZLi.js";import"./agent-list-row-SyACVYX7.js";import"./automation-row-CmTpAD4r.js";import"./device-automation-Dp3faMvp.js";import"./feed-event-kinds-BYuZCoU4.js";function Ke(){const{owner:m,connectorKey:n,connectionId:v}=I.useParams(),{addFeed:s,feedId:r,settings:x,auth_result:a}=I.useSearch();return e.jsx(V,{owner:m,children:p=>e.jsx(Ne,{organizationId:p.organizationId,ownerSlug:p.ownerSlug,isWorkspaceLoading:p.isWorkspaceLoading,connectorKey:n,connectionId:Number(v),showAddFeed:s===!0,feedId:r,openSettings:x===!0,authResult:a})})}function Ne({organizationId:m,ownerSlug:n,isWorkspaceLoading:v,connectorKey:s,connectionId:r,showAddFeed:x,feedId:a,openSettings:p,authResult:E}){const B=z(),{data:R=[]}=J(),{data:M=[],isLoading:P,isError:j,refetch:y}=Q(m??"",{connectorKey:s,connectionIds:[r]}),{data:N=[]}=U(m??""),{data:W=[],isLoading:H,isError:T,refetch:O}=q(a?r:null),o=M.find(i=>i.id===r),t=N.find(i=>i.key===s),c=a?W.find(i=>i.id===a):null;if(v||P||a&&H||!m)return e.jsx(le,{label:a?"Loading feed":"Loading connection"});if(j||a&&T)return e.jsxs("div",{role:"alert",className:"space-y-2",children:[e.jsxs("p",{children:["Could not load this ",j?"connection":"feed","."]}),e.jsx(X,{variant:"outline",size:"sm",onClick:()=>void(j?y():O()),children:"Retry"})]});if(!o)return e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Connection not found."}),e.jsxs(l,{to:"/$owner/connectors/$connectorKey",params:{owner:n,connectorKey:s},className:"mt-2 inline-block text-sm text-primary hover:underline",children:["Back to ",t?.name??s]})]});const F=Y({...o,connector_name:o.connector_name??t?.name??null}),C=!a&&!x,G=()=>void B({to:"/$owner/connectors/$connectorKey/$connectionId",params:{owner:n,connectorKey:s,connectionId:String(r)},search:{},replace:!0});let u,f=F,$,b,D;a?c?(f=ue(c,t),c.store==="channel_messages"?(u=e.jsx(he,{feed:c,hideHeader:!0}),D="chat channel"):($=e.jsx(xe,{feed:c,ownerSlug:n}),b=e.jsx(fe,{feed:c}),u=e.jsx(ve,{feed:c,connectorDef:t,ownerSlug:n}))):(u=e.jsx("p",{className:"text-sm text-muted-foreground",children:"Feed not found."}),f="Feed"):x&&(u=e.jsx(je,{onClose:G,organizationId:m,connections:[o],connectorDefinitions:N}),f="Add feed",D=Ce);const d=R.find(i=>i.id===o.device_worker_id&&Z(i,n)),_=d?K(d):void 0,g=_?ee(n,_,ne()):void 0,k=[e.jsx(l,{to:"/$owner/connectors",params:{owner:n},className:h,children:"Connectors"},"connectors"),...d&&g?[e.jsx(l,{to:"/$owner/connectors/app/$appId",params:{owner:n,appId:g.id},className:h,children:g.name},"app"),e.jsx(l,{to:"/$owner/connectors/device/$deviceId",params:{owner:n,deviceId:d.id},className:h,children:oe(d)},"device")]:[e.jsx(l,{to:"/$owner/connectors/$connectorKey",params:{owner:n,connectorKey:s},search:{},className:h,children:t?.name??s},"connector")]];C||k.push(e.jsx(l,{to:"/$owner/connectors/$connectorKey/$connectionId",params:{owner:n,connectorKey:s,connectionId:String(r)},search:{},className:h,children:F},"connection"));const L=C?de(o):null,S=D??L??void 0,w=e.jsx(te,{breadcrumb:e.jsx(ie,{crumbs:k}),icon:t?e.jsx(se,{icon:t.icon,name:t.name,faviconDomain:t.favicon_domain??ae(t.auth_schema)}):null,title:f,status:$??e.jsx(De,{status:ge(o.status),showDot:!0,children:o.status}),meta:b,caption:S,captionTone:L?"error":"muted"});return C?d&&t&&re(t)?e.jsx(ce,{to:"/$owner/connectors/device/$deviceId",params:{owner:n,deviceId:d.id},search:{connection:o.id,settings:p||void 0},hash:`connection-${o.id}`,replace:!0}):e.jsxs(A,{header:w,children:[e.jsx(pe,{connectorDef:t,connectorKey:s,ownerSlug:n,deviceWorkerId:o.device_worker_id,deviceLabel:o.device_label}),e.jsx(me,{embedded:!0,connection:o,connectorDef:t,ownerSlug:n,openSettings:p,authResult:E},o.id)]}):e.jsx(A,{header:w,children:e.jsx("div",{className:"mt-0",children:u})})}export{Ke as component};
|
|
2
|
+
//# sourceMappingURL=_connectorKey._connectionId-Zpy7Hvml.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{aD as Pe,aE as Se,aF as $e,aO as ie,aL as J,hC as Ge,hD as Qe,j as e,hE as Ze,B as g,L as _,aN as le,bd as De,gF as ee,gG as se,gH as M,hF as Je,a6 as es,hG as Z,r as u,hH as ye,hI as Ee,cS as ss,hJ as Ne,bB as I,hK as Ce,H as k,bt as ts,bu as ns,bv as as,bw as rs,bx as is,hL as os,I as S,bV as W,ab as T,A as ke,hM as ls,hN as cs,ec as ds,hO as us,bg as ce,hP as ms,hQ as hs,hR as _e,hS as Fe,hT as Le,dm as Be,V as E,W as te,hU as xs,fP as ps,hV as gs,ed as Re,hW as Ke,hy as R,c as X,hX as js,dM as fs,dO as vs,dN as bs,hY as H,hZ as ys,az as Ns,u as Oe,h_ as Ie,h$ as Cs,aR as ks,i0 as ws,i1 as As,i2 as Ps,aC as we,aB as Ss,aH as $s,b4 as Ds,al as U,en as Me,i3 as Ue,bb as de,b5 as Es,i as _s,i4 as Fs}from"./index-B-Ab8srM.js";import{C as Ls,A as Bs}from"./connect-menu-Bs8mxsga.js";import{C as ne}from"./connector-page-shell-ClOmVPJr.js";import{C as Rs}from"./connector-provenance-wmYu5jwO.js";import{R as Ks,D as ue}from"./detail-page-skeleton-I5_7FkKx.js";import{L as oe}from"./list-skeleton-BAqT0vxo.js";import"./runs-BMzp7j7j.js";import"./filter-editors-Dd5R2Etd.js";import"./runs-list-DVhrTr3v.js";import"./run-initiator-BvruBM5H.js";import"./use-automations-II_YJWtN.js";import"./clients-6aJvabvS.js";function Os({ownerSlug:s,familyKind:t,familyId:a}){const n=t==="inference",o=Pe({enabled:n}),d=Se({enabled:n}),h=$e({enabled:!n}),c=n?o:h,l=n?d.data?.find(r=>r.slug===a)?.displayName??a:ie(a),p=(n?(o.data??[]).filter(r=>r.kind===a).map(r=>({key:`${J}${r.slug}`,name:r.displayName||r.slug,status:[r.isDefault?"Default":null,r.status].filter(Boolean).join(" · ")})):(h.data?.sandboxes??[]).filter(r=>r.providerKind===a).map(r=>({key:`${Ge}${r.id}`,name:r.name,status:r.connected?"Connected":"Needs credentials"}))).map(r=>({id:r.key,name:r.name,description:r.status,tone:null,link:Qe({to:"/$owner/connectors/$connectorKey",params:{owner:s,connectorKey:r.key},search:{}})})),m=`${n?J:le}${a}`;return e.jsx(ne,{header:e.jsx(ee,{title:l,breadcrumb:e.jsx(se,{crumbs:[e.jsx(_,{to:"/$owner/connectors",params:{owner:s},className:M,children:"Connectors"},"connectors")]})}),children:e.jsx(Ze,{entries:p,isLoading:c.isLoading,isError:c.isError,onRetry:()=>void c.refetch(),action:n?e.jsx(g,{asChild:!0,variant:"outline",size:"sm",children:e.jsx(_,{to:"/$owner/connectors/$connectorKey",params:{owner:s,connectorKey:m},search:{addAccount:!0},children:"Add connection"})}):e.jsx(De,{ownerSlug:s,connectorKey:m})})})}function Is({catalog:s,initialProvider:t,initialSlug:a,allowOAuth:n=!0,initialModel:o,onDone:d}){const h=Je(),c=es(),l=s.find(i=>i.slug===t)??s[0],p=n&&l&&Z(l)?"oauth":"api-key",[m,r]=u.useState(l?.slug??""),[f,N]=u.useState(a??l?.slug??""),[x,b]=u.useState(l?.displayName??""),[v,w]=u.useState(l?.baseUrl??""),[D,A]=u.useState(o??l?.defaultModel??""),[$,z]=u.useState(""),[Y,B]=u.useState(l?.apiKeyPlaceholder??""),[V,K]=u.useState(p),[F,q]=u.useState(""),[C,ae]=u.useState(null),[O,L]=u.useState(!1),[me,he]=u.useState(!1),j=s.find(i=>i.slug===m),G=ye(j?.modalities??[]),xe=n&&!!j&&Z(j),pe=j?Ee(j):!1,ge=xe&&V==="oauth",je=pe&&!ge,P=ss().slug,Q=u.useCallback(()=>{he(!0),c.invalidateQueries({queryKey:["inference-providers"]})},[c]),Te=u.useCallback(()=>{c.invalidateQueries({queryKey:["inference-providers"]}),d()},[c,d]),ze=u.useCallback(async()=>{if(!(!P||!j)){L(!0);try{const i=await Ne(P,j.slug);if(i.mode!=="redirect")throw new Error("Unexpected sign-in mode");window.open(i.authorizeUrl,"_blank","noreferrer")}catch(i){I.error(i instanceof Error?i.message:"Failed to start sign-in")}finally{L(!1)}}},[P,j]),Ve=u.useCallback(async()=>{if(!(!P||!j||!F.trim())){L(!0);try{const i=await Ce(P,j.slug,{code:F.trim()});if(i.status!=="success")throw new Error(i.error||"Sign-in not complete");Q(),I.success(`Signed in with ${j.displayName}`)}catch(i){I.error(i instanceof Error?i.message:"Failed to complete sign-in")}finally{L(!1)}}},[P,j,F,Q]),We=u.useCallback(async()=>{if(!(!P||!j)){L(!0);try{const i=await Ne(P,j.slug);if(i.mode!=="device")throw new Error("Unexpected sign-in mode");ae({userCode:i.userCode,deviceAuthId:i.deviceAuthId,verificationUrl:i.verificationUrl}),window.open(i.verificationUrl,"_blank","noreferrer")}catch(i){I.error(i instanceof Error?i.message:"Failed to start sign-in")}finally{L(!1)}}},[P,j]),He=u.useCallback(async()=>{if(!(!P||!j||!C)){L(!0);try{const i=await Ce(P,j.slug,{deviceAuthId:C.deviceAuthId,userCode:C.userCode});if(i.status==="success"){Q(),I.success(`Signed in with ${j.displayName}`);return}ae(y=>y&&{...y,message:i.error||"Waiting for approval..."})}catch(i){I.error(i instanceof Error?i.message:"Failed to check status")}finally{L(!1)}}},[P,j,C,Q]),Xe=j?.supportedAuthTypes.includes("device-code")??!1,Ye=i=>{r(i);const y=s.find(re=>re.slug===i);y&&(N(y.slug),b(y.displayName),w(y.baseUrl),A(y.slug===t&&o?o:y.defaultModel??""),B(y.apiKeyPlaceholder),K(n&&Z(y)?"oauth":"api-key"),q(""),ae(null),he(!1))},fe=/^[a-z0-9][a-z0-9-]*$/.test(f),ve=fe&&je&&$.trim().length>0&&!h.isPending,qe=i=>{if(i.preventDefault(),!ve)return;const y={};v.trim()&&(y.base_url=v.trim()),D.trim()&&(y.model=D.trim());const re=Object.keys(y).length>0?{text:y}:void 0;h.mutate({slug:f.trim(),kind:m,displayName:x.trim()||void 0,apiKey:$.trim(),capabilities:re},{onSuccess:()=>d()})},be=!!(t&&s.some(i=>i.slug===t));return e.jsxs("div",{className:"space-y-3",children:[e.jsx("h3",{className:"text-sm font-medium",children:be&&j?`Connect ${j.displayName}`:"Add an inference provider"}),e.jsxs("form",{onSubmit:qe,className:"grid max-w-md gap-3",children:[be&&j?e.jsx("p",{className:"text-xs text-muted-foreground",children:G.length>0?`Serves text, plus ${G.join(", ").toLowerCase()}.`:"Serves text (chat)."}):e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:"ip-provider",children:"Provider"}),e.jsxs(ts,{value:m,onValueChange:Ye,children:[e.jsx(ns,{id:"ip-provider",className:"w-full",children:e.jsx(as,{})}),e.jsx(rs,{children:s.map(i=>{const y=ye(i.modalities);return e.jsx(is,{value:i.slug,children:e.jsxs("span",{className:"flex items-center gap-2",children:[i.iconUrl?e.jsx("img",{src:i.iconUrl,alt:"",className:"h-4 w-4 shrink-0 rounded-sm",loading:"lazy"}):e.jsx(os,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),i.displayName,y.length>0?e.jsxs("span",{className:"text-xs text-muted-foreground",children:["· ",y.join(", ")]}):null]})},i.slug)})})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:G.length>0?`Serves text, plus ${G.join(", ").toLowerCase()}.`:"Serves text (chat)."})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:"ip-display",children:"Name"}),e.jsx(S,{id:"ip-display",placeholder:"Friendly name",value:x,onChange:i=>b(i.target.value)})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs(k,{htmlFor:"ip-slug",children:["Slug ",e.jsx("span",{className:"ml-1 text-destructive",children:"*"})]}),e.jsx(S,{id:"ip-slug",placeholder:"my-provider",value:f,onChange:i=>N(i.target.value),autoComplete:"off",required:!0}),f&&!fe?e.jsx("p",{className:"text-xs text-destructive",children:"Lowercase letters, numbers, and hyphens only."}):e.jsx("p",{className:"text-xs text-muted-foreground",children:"A stable identifier agents reference this provider by."})]}),xe&&pe?e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{children:"Auth method"}),e.jsxs("div",{className:"inline-flex w-fit rounded-md border border-border p-1",children:[e.jsx(g,{type:"button",size:"sm",variant:V==="oauth"?"secondary":"ghost",onClick:()=>K("oauth"),children:"Sign in"}),e.jsx(g,{type:"button",size:"sm",variant:V==="api-key"?"secondary":"ghost",onClick:()=>K("api-key"),children:"API key"})]})]}):null,je?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:"ip-base-url",children:"Base URL"}),e.jsx(S,{id:"ip-base-url",placeholder:"https://api.example.com/v1",value:v,onChange:i=>w(i.target.value),autoComplete:"off"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Override the upstream URL — e.g. a self-hosted vLLM, Azure, or LiteLLM endpoint."})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:"ip-model",children:"Default model"}),e.jsx(S,{id:"ip-model",placeholder:"gpt-4o-mini",value:D,onChange:i=>A(i.target.value),autoComplete:"off"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsxs(k,{htmlFor:"ip-key",children:["API key ",e.jsx("span",{className:"ml-1 text-destructive",children:"*"})]}),e.jsx(S,{id:"ip-key",type:"password",placeholder:Y||void 0,value:$,onChange:i=>z(i.target.value),autoComplete:"off",required:!0}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Stored encrypted in the vault. It's never shown again — rotate it here if it changes."})]}),e.jsx(W,{onCancel:d,children:e.jsx(g,{type:"submit",disabled:!ve,children:h.isPending?e.jsxs(e.Fragment,{children:[e.jsx(T,{size:"lg",className:"mr-2"}),"Creating..."]}):"Create provider"})})]}):ge?e.jsxs("div",{className:"grid gap-3",children:[me?e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Signed in with ",j?.displayName??"provider",". This covers your agents in this org."]}):Xe?e.jsxs("div",{className:"grid gap-2",children:[e.jsx(g,{type:"button",variant:"outline",className:"justify-self-start",onClick:()=>void We(),disabled:O||!P,children:C?"Get a new code":"Get device code"}),C?e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:"ip-device-code",children:"Device code"}),e.jsx(S,{id:"ip-device-code",readOnly:!0,value:C.userCode}),e.jsx(g,{type:"button",variant:"default",className:"justify-self-start",asChild:!0,children:e.jsxs("a",{href:C.verificationUrl,target:"_blank",rel:"noreferrer",children:["Open ",j?.displayName??"provider"," to approve",e.jsx(ke,{className:"h-4 w-4"})]})}),e.jsx("p",{className:"text-xs text-muted-foreground",children:C.message||"We opened the approval page. Enter the code above if asked, approve, then check status."}),e.jsx(g,{type:"button",variant:"outline",className:"justify-self-start",onClick:()=>void He(),disabled:O,children:O?"Checking...":"Check status"})]}):null]}):e.jsxs("div",{className:"grid gap-2",children:[e.jsxs(g,{type:"button",variant:"outline",className:"justify-self-start",onClick:()=>void ze(),disabled:O||!P,children:["Sign in with ",j?.displayName??"provider",e.jsx(ke,{className:"h-4 w-4"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:"ip-oauth-code",children:"Paste code#state"}),e.jsx(S,{id:"ip-oauth-code",placeholder:"code#state",value:F,onChange:i=>q(i.target.value),autoComplete:"off"})]}),e.jsx(g,{type:"button",className:"justify-self-start",onClick:()=>void Ve(),disabled:O||!F.trim(),children:O?"Finishing...":"Finish sign-in"})]}),e.jsx(W,{onCancel:d,children:e.jsx(g,{type:"button",onClick:Te,disabled:!me,children:"Done"})})]}):e.jsxs("div",{className:"grid gap-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"This provider cannot be added from the catalog yet."}),e.jsx(W,{onCancel:d})]})]})]})}const Ms={text:"Text",image:"Image",stt:"Speech-to-text",tts:"Text-to-speech"};function Us({provider:s,catalog:t,autoOpenEdit:a}){const n=ls(),[o,d]=u.useState(a?"edit":null),h=cs(s.kind,t);u.useEffect(()=>{a&&d("edit")},[a]);const l=(t.find(r=>r.slug===s.kind)?.modalities??["text"]).filter(r=>r!=="text"),p=h&&l.length>0,m=r=>d(f=>f===r?null:r);return e.jsxs("div",{className:"overflow-hidden rounded-lg border",children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3 px-3 py-2",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate text-sm font-medium",children:"Credential"}),e.jsxs("p",{className:"truncate text-[11px] text-muted-foreground",children:[s.slug,s.createdAt?` · created ${ds(s.createdAt)}`:""]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[s.isDefault?null:e.jsx(g,{variant:"outline",size:"sm",className:"h-8 text-xs",disabled:n.isPending,onClick:()=>n.mutate({providerSlug:s.slug}),children:"Set as default"}),p?e.jsx(g,{variant:"outline",size:"sm",className:"h-8 text-xs",onClick:()=>m("capabilities"),children:"Configure"}):null,e.jsx(g,{variant:"outline",size:"sm",className:"h-8 text-xs",onClick:()=>m("edit"),children:"Edit"})]})]}),o==="edit"?e.jsx("div",{className:"border-t px-3 py-3",children:e.jsx(zs,{provider:s,supportsUpstreamConfig:h,onDone:()=>d(null)})}):null,o==="capabilities"&&p?e.jsx("div",{className:"border-t px-3 py-3",children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:"Other modalities (optional)"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"This provider's text base URL and model are set under Edit. Only set these if you want a modality routed to a different endpoint — otherwise it uses the provider's defaults."})]}),l.map(r=>e.jsx(Vs,{providerSlug:s.slug,modality:r,block:s.capabilities[r]??{}},r))]})}):null]})}function Ts({provider:s,onDeleted:t}){const a=us(),[n,o]=u.useState(!1);return e.jsxs("div",{className:"rounded-lg border border-destructive/30 bg-destructive/5 p-4",children:[e.jsx("p",{className:"text-sm font-medium",children:"Delete provider"}),e.jsxs("p",{className:"mt-1 text-xs text-muted-foreground",children:["Removes ",s.displayName||s.slug," and its stored key from this workspace. Agents referencing it will need another connected provider before they can run."]}),e.jsx("div",{className:"mt-3",children:n?e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs(g,{variant:"destructive",size:"sm",disabled:a.isPending,onClick:()=>a.mutate({providerSlug:s.slug},{onSuccess:t,onSettled:()=>o(!1)}),children:[a.isPending?e.jsx(T,{size:"md",className:"mr-1.5"}):null,"Confirm delete"]}),e.jsx(g,{variant:"ghost",size:"sm",disabled:a.isPending,onClick:()=>o(!1),children:"Cancel"})]}):e.jsxs(g,{variant:"outline",size:"sm",className:"text-destructive hover:text-destructive",disabled:a.isPending,onClick:()=>o(!0),children:[e.jsx(ce,{className:"mr-1.5 h-3.5 w-3.5"}),"Delete provider"]})})]})}function zs({provider:s,supportsUpstreamConfig:t,onDone:a}){const n=ms(),o=hs(),d=_e(),[h,c]=u.useState(s.displayName??""),[l,p]=u.useState(""),m=s.capabilities.text??{},[r,f]=u.useState(m.base_url??""),[N,x]=u.useState(m.model??""),[b,v]=u.useState(null),w=h.trim().length>0&&h.trim()!==(s.displayName??""),D=t&&l.trim().length>0,A=r.trim()!==(m.base_url??""),$=N.trim()!==(m.model??""),z=t&&(A||$),Y={base_url:r.trim()||void 0,model:N.trim()||void 0,models_endpoint:m.models_endpoint},B=Fe(Y),V=t&&z&&Le(B),K=n.isPending||o.isPending||d.isPending,F=(w||D||z)&&!V&&!K,q=async C=>{if(C.preventDefault(),!!F){v(null);try{await Promise.all([w?n.mutateAsync({providerSlug:s.slug,displayName:h.trim()}):Promise.resolve(),z?d.mutateAsync({providerSlug:s.slug,modality:"text",block:Y}):Promise.resolve(),D?o.mutateAsync({providerSlug:s.slug,value:l.trim()}):Promise.resolve()]),a()}catch{v("Some changes could not be saved. Review the fields and try again.")}}};return e.jsxs("form",{onSubmit:q,className:"grid max-w-md gap-3",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:`edit-name-${s.slug}`,children:"Name"}),e.jsx(S,{id:`edit-name-${s.slug}`,value:h,onChange:C=>c(C.target.value),placeholder:s.slug}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:["The slug (",e.jsx("code",{children:s.slug}),") is fixed — agents reference it."]})]}),t?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:`edit-base-${s.slug}`,children:"Base URL"}),e.jsx(S,{id:`edit-base-${s.slug}`,placeholder:"https://api.example.com/v1",value:r,onChange:C=>f(C.target.value),autoComplete:"off"}),B.base_url?e.jsx("p",{className:"text-xs text-destructive",children:B.base_url}):null]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:`edit-model-${s.slug}`,children:"Default model"}),e.jsx(S,{id:`edit-model-${s.slug}`,placeholder:"gpt-4o-mini",value:N,onChange:C=>x(C.target.value),autoComplete:"off"}),B.model?e.jsx("p",{className:"text-xs text-destructive",children:B.model}):null]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:`edit-key-${s.slug}`,children:"New API key"}),e.jsx(S,{id:`edit-key-${s.slug}`,type:"password",value:l,onChange:C=>p(C.target.value),autoComplete:"off",placeholder:"Leave blank to keep the current key"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Enter a value only to replace the stored key. The old key is discarded."})]})]}):null,b?e.jsx("p",{className:"rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive",children:b}):null,e.jsx(W,{onCancel:a,children:e.jsx(g,{type:"submit",disabled:!F,children:K?e.jsxs(e.Fragment,{children:[e.jsx(T,{size:"lg",className:"mr-2"}),"Saving..."]}):"Save"})})]})}function Vs({providerSlug:s,modality:t,block:a}){const n=_e(),[o,d]=u.useState(!1),[h,c]=u.useState(a.base_url??""),[l,p]=u.useState(a.model??""),[m,r]=u.useState(a.models_endpoint??""),[f,N]=u.useState(!!a.models_endpoint),x=!!(a.base_url||a.model||a.models_endpoint),b={base_url:h.trim()||void 0,model:l.trim()||void 0,models_endpoint:m.trim()||void 0},v=Fe(b),w=Le(v),D=()=>{w||n.mutate({providerSlug:s,modality:t,block:b})};return e.jsxs("div",{className:Be,children:[e.jsxs("button",{type:"button",className:"flex w-full items-center justify-between px-3 py-2 text-left",onClick:()=>d(A=>!A),children:[e.jsx("span",{className:"text-sm font-medium",children:Ms[t]}),x?e.jsx(E,{variant:"outline",children:"Custom"}):e.jsx("span",{className:"text-xs text-muted-foreground",children:"Static"})]}),o?e.jsxs("div",{className:"grid gap-3 border-t px-3 py-3",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:`base-${s}-${t}`,children:"Base URL"}),e.jsx(S,{id:`base-${s}-${t}`,placeholder:"https://api.example.com/v1",value:h,onChange:A=>c(A.target.value),autoComplete:"off"}),v.base_url?e.jsx("p",{className:"text-xs text-destructive",children:v.base_url}):null]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:`model-${s}-${t}`,children:"Model"}),e.jsx(S,{id:`model-${s}-${t}`,placeholder:"gpt-4o-mini",value:l,onChange:A=>p(A.target.value),autoComplete:"off"}),v.model?e.jsx("p",{className:"text-xs text-destructive",children:v.model}):null]}),f?e.jsxs("div",{className:"grid gap-2",children:[e.jsx(k,{htmlFor:`endpoint-${s}-${t}`,children:"Models endpoint"}),e.jsx(S,{id:`endpoint-${s}-${t}`,placeholder:"/v1/models",value:m,onChange:A=>r(A.target.value),autoComplete:"off"}),v.models_endpoint?e.jsx("p",{className:"text-xs text-destructive",children:v.models_endpoint}):e.jsx("p",{className:"text-xs text-muted-foreground",children:"Path used to list this modality's models (e.g. /v1/models)."})]}):e.jsx("button",{type:"button",className:"justify-self-start text-xs text-muted-foreground hover:text-foreground",onClick:()=>N(!0),children:"Advanced"}),e.jsx(W,{onCancel:()=>d(!1),children:e.jsx(g,{size:"sm",disabled:w||n.isPending,onClick:D,children:n.isPending?e.jsxs(e.Fragment,{children:[e.jsx(T,{size:"lg",className:"mr-2"}),"Saving..."]}):"Save"})})]}):null]})}function Ws({sandbox:s}){const t=Object.entries(s.details??{});return e.jsx("div",{className:"space-y-6",children:e.jsxs("div",{className:"rounded-lg border p-4 space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(Xs,{kind:s.providerKind}),e.jsx("span",{className:"text-sm font-medium",children:s.name}),e.jsx(E,{variant:"secondary",className:"h-4 px-1.5 py-0 text-[10px] uppercase tracking-wide",children:s.providerKind}),s.connected?e.jsx(E,{className:"h-4 border-transparent bg-emerald-500/10 px-1.5 py-0 text-[10px] uppercase tracking-wide text-emerald-500",children:"Connected"}):e.jsx(E,{variant:"destructive",className:"h-4 border-transparent bg-destructive/10 px-1.5 py-0 text-[10px] uppercase tracking-wide text-destructive",children:"No credential"})]}),t.length>0?e.jsx("p",{className:"font-mono text-[11px] text-muted-foreground",children:t.map(([a,n])=>`${a}: ${n}`).join(" | ")}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"Remote sandbox agents execute in instead of the built-in local runtime."}),s.connected?null:e.jsxs("div",{className:"flex gap-2 rounded-md border border-amber-200 bg-amber-50 p-3 text-sm text-amber-950 dark:border-amber-900/60 dark:bg-amber-950/30 dark:text-amber-100",children:[e.jsx(te,{className:"mt-0.5 h-4 w-4 shrink-0"}),e.jsx("p",{children:"This sandbox has no vault credential. Delete it and re-add the provider with a valid key, or set the credential via the API."})]})]})})}function Hs({sandbox:s,onDeleted:t}){const a=xs(),[n,o]=u.useState(!1);return e.jsx("div",{className:"space-y-6",children:e.jsxs("div",{className:"rounded-lg border border-destructive/30 p-4 space-y-3",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(ce,{className:"mt-0.5 h-4 w-4 shrink-0 text-destructive"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium",children:"Remove sandbox"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Agents pinned to this runtime fall back to the built-in local sandbox."})]})]}),n?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(g,{variant:"destructive",size:"sm",disabled:a.isPending,onClick:()=>a.mutate({id:s.id},{onSuccess:t}),children:a.isPending?e.jsx(T,{}):"Delete permanently"}),e.jsx(g,{variant:"ghost",size:"sm",onClick:()=>o(!1),children:"Cancel"})]}):e.jsx(g,{variant:"outline",size:"sm",className:"text-destructive hover:text-destructive",onClick:()=>o(!0),children:"Delete sandbox"})]})})}function Xs({kind:s}){return s==="vercel"?e.jsxs("svg",{viewBox:"0 0 24 24",className:"h-4 w-4 shrink-0 fill-foreground","aria-hidden":!0,children:[e.jsx("title",{children:"Vercel"}),e.jsx("path",{d:"M12 3 22 20H2L12 3Z"})]}):s==="builtin"?e.jsx(ps,{className:"h-4 w-4 shrink-0 text-muted-foreground"}):e.jsx(gs,{className:"h-4 w-4 shrink-0 text-muted-foreground"})}const Ys={data:!1,chat:!1,actions:!1,audience:!1,inference:!0,runtime:!1},qs={data:!1,chat:!1,actions:!1,audience:!1,inference:!1,runtime:!0};function yt(){const{owner:s,connectorKey:t}=H.useParams(),{instances:a}=H.useSearch(),{kind:n,id:o}=ys(t);return e.jsx(Ns,{owner:s,children:({ownerSlug:d,organizationId:h,isWorkspaceLoading:c})=>{if(a&&(n==="inference"||n==="sandbox-provider"))return e.jsx(Os,{ownerSlug:d,familyKind:n,familyId:o});switch(n){case"inference":return e.jsx(Zs,{ownerSlug:d,providerSlug:o});case"sandbox":return e.jsx(Qs,{ownerSlug:d,sandboxId:o});case"sandbox-provider":return e.jsx(Gs,{ownerSlug:d,providerKind:o});default:return e.jsx(tt,{ownerSlug:d,organizationId:h,isWorkspaceLoading:c,connectorKey:t})}}})}function Gs({ownerSlug:s,providerKind:t}){const a=X();return u.useEffect(()=>{a({to:"/$owner/connectors/create/$connectorKey",params:{owner:s,connectorKey:`${le}${t}`},replace:!0})},[a,s,t]),null}function Qs({ownerSlug:s,sandboxId:t}){const a=X(),{data:n,isLoading:o,isError:d,refetch:h}=$e(),c=n?.sandboxes.find(p=>p.id===t)??null;if(o)return e.jsx(ue,{label:"Loading sandbox",sections:1});if(d)return e.jsx(U,{children:e.jsxs("div",{role:"alert",children:[e.jsx("p",{children:"Could not load this instance."}),e.jsx(g,{variant:"outline",onClick:()=>void h(),children:"Retry"})]})});if(!c)return e.jsxs(U,{className:"space-y-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"This sandbox isn't in this workspace, so its details aren't available."}),e.jsx(g,{variant:"outline",size:"sm",onClick:()=>void a({to:"/$owner/connectors",params:{owner:s}}),children:"Back to connectors"})]});const l=c.name||ie(c.providerKind);return e.jsx("div",{className:"flex flex-1 flex-col",children:e.jsxs(ne,{header:e.jsx(ee,{breadcrumb:e.jsx(se,{crumbs:[e.jsx(_,{to:"/$owner/connectors",params:{owner:s},className:M,children:"Connectors"},"connectors"),e.jsx(_,{to:"/$owner/connectors/$connectorKey",params:{owner:s,connectorKey:`${le}${c.providerKind}`},search:{instances:!0},className:M,children:ie(c.providerKind)},"family")]}),icon:e.jsx(de,{name:l,faviconDomain:Es(c.providerKind)}),title:l,badge:e.jsxs(e.Fragment,{children:[e.jsx(E,{variant:"secondary",children:c.providerKind}),c.connected?e.jsx(E,{className:"border-transparent bg-emerald-500/10 text-emerald-500",children:"Connected"}):e.jsx(E,{variant:"destructive",children:"No credential"})]}),status:e.jsx(Ue,{facets:qs})}),children:[e.jsx(Ws,{sandbox:c}),e.jsx(R,{title:"Settings",muted:!0,children:e.jsx(Hs,{sandbox:c,onDeleted:()=>void a({to:"/$owner/connectors",params:{owner:s}})})})]})})}function Zs({ownerSlug:s,providerSlug:t}){const a=X(),{model:n,reason:o,agentId:d,addAccount:h}=H.useSearch(),{data:c=[],isLoading:l,isError:p,refetch:m}=Pe(),r=Se(),{data:f=[],isLoading:N}=r,x=h?null:c.find($=>$.slug===t)??null,b=f.find($=>$.slug===(x?.kind??t))??null;if(l||N)return e.jsx(ue,{label:"Loading account"});if(p)return e.jsx(U,{children:e.jsxs("div",{role:"alert",children:[e.jsx("p",{children:"Could not load this account."}),e.jsx(g,{variant:"outline",onClick:()=>void m(),children:"Retry"})]})});if(!x&&!b&&!r.isError)return e.jsxs(U,{className:"space-y-3",children:[e.jsx(Me,{connector:{key:t,name:t},showDescription:!1,className:"gap-2"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"This connector isn't installed in this workspace, so its details aren't available."})]});const v=x?x.displayName||x.slug:b?.displayName||t,w=x!==null,D=o?e.jsx(st,{agentId:d,model:n,providerName:v}):n?e.jsx(et,{providerName:v,model:n,isConnected:w}):null,A=e.jsx(ee,{breadcrumb:e.jsx(se,{crumbs:[e.jsx(_,{to:"/$owner/connectors",params:{owner:s},className:M,children:"Connectors"},"connectors"),...x?[e.jsx(_,{to:"/$owner/connectors/$connectorKey",params:{owner:s,connectorKey:`${J}${x.kind}`},search:{instances:!0},className:M,children:b?.displayName??x.kind},"family")]:[]]}),icon:e.jsx(de,{iconUrl:b?.iconUrl,name:v}),title:v,badge:x?e.jsxs(e.Fragment,{children:[x.isDefault?e.jsx(E,{variant:"secondary",children:"Default"}):null,x.status?e.jsx(E,{variant:"outline",children:x.status}):null,x.hasCustomUpstream?e.jsx(E,{variant:"outline",children:"Custom upstream"}):null]}):null,status:e.jsx(Ue,{facets:Ys})});return e.jsx("div",{className:"flex flex-1 flex-col",children:e.jsxs(ne,{header:A,children:[D,e.jsx("div",{className:"space-y-6",children:x?e.jsx(Us,{provider:x,catalog:f,autoOpenEdit:!!n}):e.jsx(Js,{ownerSlug:s,providerSlug:t,existingSlugs:c.map($=>$.slug),catalog:f,catalogError:r.isError?r.error:null,model:n})}),x?e.jsx(R,{title:"Settings",muted:!0,children:e.jsx(Ts,{provider:x,onDeleted:()=>void a({to:"/$owner/connectors",params:{owner:s}})})}):null]})})}function Js({ownerSlug:s,providerSlug:t,existingSlugs:a,catalog:n,catalogError:o,model:d}){const h=X(),c=n.find(m=>m.slug===t),l=a.includes(t)&&!!c&&Z(c);let p=t;for(let m=2;a.includes(p);m++)p=`${t}-${m}`;return o?e.jsx("div",{className:"rounded-md border border-destructive/40 bg-destructive/5 p-3 text-sm text-destructive",children:e.jsxs("div",{className:"flex gap-2",children:[e.jsx(te,{className:"mt-0.5 h-4 w-4 shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"Failed to load provider catalog."}),e.jsx("p",{className:"mt-1 text-xs",children:o instanceof Error?o.message:"Check the workspace URL and try again."})]})]})}):e.jsxs("div",{className:"space-y-3 rounded-lg border p-4",children:[l&&e.jsxs("div",{className:"space-y-2 text-sm",children:[e.jsx("p",{children:"Subscription sign-in is managed on the existing connection."}),e.jsx(g,{asChild:!0,variant:"outline",size:"sm",children:e.jsx(_,{to:"/$owner/connectors/$connectorKey",params:{owner:s,connectorKey:`${J}${t}`},search:{},children:"Open existing connection"})})]}),(!l||c&&Ee(c))&&e.jsx(Is,{catalog:n,initialProvider:t,initialSlug:p,allowOAuth:!l,initialModel:d?.includes("/")?d.split("/").slice(1).join("/"):d,onDone:()=>void h({to:"/$owner/connectors",params:{owner:s}})},`${n.length}:${t}`)]})}function et({providerName:s,model:t,isConnected:a}){return e.jsx("div",{className:"rounded-lg border border-amber-200 bg-amber-50 p-3 text-sm text-amber-950 dark:border-amber-900/60 dark:bg-amber-950/30 dark:text-amber-100",children:e.jsxs("div",{className:"flex gap-2",children:[e.jsx(te,{className:"mt-0.5 h-4 w-4 shrink-0"}),e.jsxs("p",{children:["Review ",e.jsx("strong",{children:s})," for model"," ",e.jsx("strong",{children:t}),"."," ",a?"Its edit controls are open.":"It is not connected yet; add it to continue."]})]})})}function st({agentId:s,model:t,providerName:a}){return e.jsx("div",{className:"rounded-lg border border-amber-200 bg-amber-50 p-3 text-sm text-amber-950 dark:border-amber-900/60 dark:bg-amber-950/30 dark:text-amber-100",children:e.jsxs("div",{className:"flex gap-2",children:[e.jsx(te,{className:"mt-0.5 h-4 w-4 shrink-0"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"font-medium",children:"This agent needs a model provider before it can reply."}),e.jsxs("p",{children:[s?e.jsxs("span",{children:["Agent ",e.jsx("strong",{children:s})," is"," "]}):null,"configured to use ",t?e.jsx("strong",{children:t}):"a model"," ","from ",e.jsx("strong",{children:a}),", but that provider is not ready in this workspace."]}),e.jsx("p",{children:"Connect the provider below, then retry the message."})]})]})})}function tt({ownerSlug:s,organizationId:t,isWorkspaceLoading:a,connectorKey:n}){const{data:o=[],isLoading:d,isError:h,refetch:c}=Ss(t??""),{data:l=[],isLoading:p,isError:m,refetch:r}=$s(t??"",{connectorKey:n}),{setup:f}=H.useSearch(),N=H.useNavigate(),x=u.useMemo(()=>o.find(w=>w.key===n),[o,n]),b=u.useMemo(()=>Ds(n,o,{name:l[0]?.connector_name??n}),[n,o,l]);if(a||d)return e.jsx(ue,{label:"Loading connector",sections:3});if(h||m)return e.jsx(U,{children:e.jsxs("div",{role:"alert",className:"space-y-2",children:[e.jsx("p",{children:"Could not load this connector."}),e.jsx(g,{variant:"outline",onClick:()=>{c(),r()},children:"Retry"})]})});const v=x?e.jsx(at,{connector:x,ownerSlug:s,organizationId:t??void 0,connectionCount:l.length}):e.jsxs("div",{className:"space-y-3",children:[e.jsx(Me,{connector:b,showDescription:!1,className:"gap-2"}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["This connector isn't installed in this workspace, so its details aren't available.",l.length>0?" Existing connections keep working.":""]})]});return e.jsx("div",{className:"flex flex-1 flex-col",children:x&&t?e.jsx(nt,{hero:v,connector:x,organizationId:t,ownerSlug:s,connectorKey:n,connections:l,isLoading:p,openNewApp:f==="oauth_app",onNewAppHandled:()=>void N({search:w=>({...w,setup:void 0}),replace:!0})}):e.jsxs(U,{className:"space-y-6",children:[v,l.length>0&&!p?e.jsx(Ke,{section:!0,connections:l,ownerSlug:s,connectorKey:n}):p?e.jsx(oe,{label:"Loading connections",rows:2}):e.jsx("div",{children:e.jsx(De,{ownerSlug:s,connectorKey:n})})]})})}function nt({hero:s,connector:t,organizationId:a,ownerSlug:n,connectorKey:o,connections:d,isLoading:h,openNewApp:c,onNewAppHandled:l}){const{isAdmin:p,isLoading:m}=Re(a),r=(t.operations_summary?.total??0)>0,f=e.jsx(Ls,{connector:t,organizationId:a,ownerSlug:n,connections:d,openNewApp:c,onNewAppHandled:l});return e.jsxs(ne,{header:s,children:[h?e.jsx(oe,{label:"Loading connections",rows:2}):d.length>0?e.jsx(Ke,{section:!0,connections:d,connector:t,ownerSlug:n,connectorKey:o,action:f}):f,e.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:auto-cols-fr sm:grid-flow-col",children:[e.jsx(lt,{connector:t,organizationId:a,ownerSlug:n}),r&&m?e.jsx(oe,{label:"Loading actions",rows:2}):r&&p?e.jsx(ot,{connector:t,organizationId:a,ownerSlug:n}):r&&!p?e.jsx(R,{title:"Actions",muted:!0,children:e.jsx("p",{className:"text-sm text-muted-foreground",children:"Only workspace admins can view and configure connector actions."})}):null]}),d.length>0?e.jsx(R,{title:"Runs",children:e.jsx(Ks,{scope:{connectorKey:o},ownerSlug:n})}):null,e.jsx(rt,{connector:t,organizationId:a,ownerSlug:n})]})}function at({connector:s,ownerSlug:t,organizationId:a,connectionCount:n}){return e.jsx(ee,{breadcrumb:e.jsx(se,{crumbs:[e.jsx(_,{to:"/$owner/connectors",params:{owner:t},className:M,children:"Connectors"},"connectors")]}),icon:e.jsx(de,{icon:s.icon,name:s.name,faviconDomain:s.favicon_domain??Fs(s.auth_schema),className:"h-10 w-10"}),title:s.name,badge:e.jsxs(e.Fragment,{children:[e.jsx(Rs,{connectorDef:s,ownerSlug:t}),a?e.jsx(it,{connector:s,organizationId:a,ownerSlug:t,connectionCount:n}):null]}),caption:s.description})}function rt({connector:s,organizationId:t,ownerSlug:a}){const n=Cs(s.auth_schema),o=ks(s.auth_schema),d=ws(s.auth_schema),h=As(s.auth_schema),c=n.some(b=>b.type==="env_keys"),l=n.some(b=>b.type==="browser"),p=o.some(b=>b.type==="interactive"),m=!!(d||h||c||l),r=Ps(s),{data:f=[]}=we(t,{connectorKey:s.key,profileKind:"env"}),{data:N=[]}=we(t,{profileKind:"browser_session",connectorKey:s.key});return c&&f.length>0||l&&N.length>0||!m&&(r||p)?e.jsxs("div",{className:"space-y-6",children:[c&&f.length>0?e.jsx(Ae,{profiles:f,type:"env"}):null,l&&N.length>0?e.jsx(Ae,{profiles:N,type:"browser_session"}):null,m?null:r?e.jsx(R,{title:"Device runtime",children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("p",{className:"text-sm text-muted-foreground",children:[s.name," runs on a linked device — there are no workspace credentials to configure here. Pair a device, then create a connection pinned to it."]}),e.jsx(g,{asChild:!0,variant:"outline",size:"sm",children:e.jsx(_,{to:"/$owner/connectors",params:{owner:a},search:{},children:"View devices"})})]})}):p?e.jsx(R,{title:"Authentication",children:e.jsxs("p",{className:"text-sm text-muted-foreground",children:[s.name," pairs when you create a connection — there is no workspace-level credential to configure here."]})}):null]}):null}function it({connector:s,organizationId:t,ownerSlug:a,connectionCount:n}){const o=X(),{isAdmin:d}=Re(t),h=js(),[c,l]=u.useState(null),p=s.installed!==!1;if(!d||!p)return null;const m=n>0,r=h.isPending,f=()=>{l(null),h.mutate({connector_key:s.key},{onSuccess:()=>{o({to:"/$owner/connectors",params:{owner:a}})},onError:N=>{l(N instanceof Error?N.message:"Failed to remove connector")}})};return e.jsxs(fs,{onOpenChange:()=>l(null),children:[e.jsx(vs,{asChild:!0,children:e.jsx(g,{variant:"ghost",size:"icon",className:"h-7 w-7 text-muted-foreground hover:text-destructive","aria-label":"Remove connector",title:"Remove connector",children:e.jsx(ce,{className:"h-3.5 w-3.5"})})}),e.jsxs(bs,{align:"start",className:"space-y-3",children:[e.jsxs("p",{className:"text-sm font-medium",children:["Remove ",s.name,"?"]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Archives it in this workspace. Existing synced data stays in memory."}),m?e.jsxs("p",{className:"text-xs text-muted-foreground",children:["Delete"," ",e.jsxs("span",{className:"font-medium text-foreground",children:[n," connection",n===1?"":"s"]})," ","first — uninstall is blocked while any connection still references this connector."]}):null,c?e.jsx("p",{className:"rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive",children:c}):null,e.jsxs(g,{variant:"destructive",size:"sm",disabled:r||m,onClick:f,children:[r?e.jsx(T,{size:"md",className:"mr-1.5"}):null,"Remove connector"]})]})]})}function ot({connector:s,organizationId:t,ownerSlug:a}){const n=Oe();return e.jsx(Ie,{title:"Actions",summary:`${s.operations_summary?.total??0} actions · organization policies`,onOpen:()=>n?.open({href:"",title:"Actions",connectorPanel:{section:"actions",connectorKey:s.key,organizationId:t,ownerSlug:a}})})}function Ae({profiles:s,type:t}){const a=t==="env"?"Credentials":"Browser sessions";return e.jsx(R,{title:a,children:e.jsx("div",{className:"space-y-2",children:s.map(n=>e.jsxs("div",{className:_s(Be,"p-3"),children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"text-sm font-medium",children:n.display_name}),e.jsx(Bs,{status:n.status})]}),e.jsx("p",{className:"truncate text-xs text-muted-foreground",children:n.slug})]},n.slug))})})}function lt({connector:s,organizationId:t,ownerSlug:a}){const n=Oe(),o=Object.keys(s.feeds_schema??{}).length;return o?e.jsx(Ie,{title:"Feeds",summary:`${o} ${o===1?"feed type":"feed types"}`,onOpen:()=>n?.open({href:"",title:"Feeds",connectorPanel:{section:"feeds",connectorKey:s.key,organizationId:t,ownerSlug:a}})}):null}export{nt as ConnectorDetailShell,it as ConnectorRemoveButton,yt as component};
|
|
2
|
+
//# sourceMappingURL=_connectorKey.index-CYDRp9UX.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as e,cO as w,i as c,jh as p,ji as h,jj as d,jk as u,jl as A,r as M,at as C,aH as z,jm as N}from"./index-B-Ab8srM.js";import{A as k}from"./agent-loading-shells-DHvKiEUB.js";import{s as y,R as b,A as O}from"./agent-thread-B1ZepGZc.js";import{c as I}from"./agent-list-row-SyACVYX7.js";import"./app-bridge-C4nPtae3.js";import"./pending-seed-CoFPQ835.js";import"./use-mention-search-Bxlpd6Dp.js";import"./index-Vcq4gwWv.js";import"./use-automations-II_YJWtN.js";import"./event-card-BtTUuf2q.js";import"./definition-comparison-C3k6Wa9B.js";import"./automation-source-list-D8ZSavQU.js";import"./schema-value-BUgC0Ro8.js";import"./json-diff-B-1Swv_y.js";import"./run-initiator-BvruBM5H.js";import"./clients-6aJvabvS.js";import"./renderer-CgaQKMoG.js";import"./card-DT9mSjSp.js";import"./table-B6yimlsZ.js";import"./change-summary-CGrKEJ04.js";import"./copy-button-D6zpsZLi.js";import"./automation-row-CmTpAD4r.js";import"./device-automation-Dp3faMvp.js";import"./events-feed-zFnTSE27.js";import"./client-activity-scopes-DoIErdUy.js";import"./client-rows-BbVQy5Ti.js";const P={discord:{hex:`#${u.hex}`,path:u.path},gchat:{hex:`#${d.hex}`,path:d.path},slack:{hex:"#4A154B",path:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"},teams:{imgSrc:"https://www.google.com/s2/favicons?domain=teams.microsoft.com&sz=64"},telegram:{hex:`#${h.hex}`,path:h.path},whatsapp:{hex:`#${p.hex}`,path:p.path}};function R({platform:o,className:a}){const t=o?P[o]:null;return t?"imgSrc"in t?e.jsx("img",{src:t.imgSrc,alt:"","aria-hidden":"true",className:c("rounded-sm",a),loading:"lazy"}):e.jsx("svg",{viewBox:t.viewBox??"0 0 24 24",fill:"currentColor","aria-hidden":"true",className:a,style:{color:t.hex},children:e.jsx("path",{d:t.path})}):e.jsx(w,{className:c("text-muted-foreground",a),"aria-hidden":"true"})}function S(o,a,t){return o==="slack"&&t?.teamId&&a?`https://app.slack.com/client/${t.teamId}/${a}`:null}function T({owner:o,agentId:a,conversationId:t}){const{data:n=[],isLoading:x}=A(a,t,{orgSlug:o}),i=M.useMemo(()=>n.map(s=>y(s,{showToolCalls:!0})).filter(s=>s!==null),[n]),[r,g]=t.split(":"),m=I(r)??"the source app",{org:f}=C(),{data:j=[]}=z(f?.id??"",{connectorKey:r}),v=j[0]?.config?.chatMetadata,l=S(r,g,v);return e.jsx("div",{className:"mx-auto flex min-h-0 w-full max-w-3xl flex-1 flex-col pb-6",children:x?e.jsx(k,{readOnly:!0}):i.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No messages in this conversation."}):e.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[e.jsx(b,{messages:i,children:e.jsx(O,{readOnly:!0})}),l?e.jsxs("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"mt-4 flex items-center gap-3 rounded-lg border border-border bg-muted/40 px-4 py-3 text-sm transition-colors hover:bg-muted",children:[e.jsx(R,{platform:r,className:"size-5 shrink-0"}),e.jsxs("span",{className:"text-muted-foreground",children:["This is a read-only copy. Continue the conversation with this agent in ",m,"."]}),e.jsxs("span",{className:"ml-auto shrink-0 whitespace-nowrap font-medium text-foreground",children:["Open ",m," →"]})]}):null]})})}function i2(){const{owner:o,agentId:a,conversationId:t}=N.useParams();return e.jsx(T,{owner:o,agentId:a,conversationId:t})}export{i2 as component};
|
|
2
|
+
//# sourceMappingURL=_conversationId-NNqDdije.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{E as u,c as v,j as a,ak as d,az as f,cm as x,cn as h,co as w,bs as P,cp as j}from"./index-B-Ab8srM.js";import{E}from"./event-detail-8xHiplt_.js";import"./events-feed-zFnTSE27.js";import"./event-card-BtTUuf2q.js";import"./definition-comparison-C3k6Wa9B.js";import"./automation-source-list-D8ZSavQU.js";import"./schema-value-BUgC0Ro8.js";import"./json-diff-B-1Swv_y.js";import"./index-Vcq4gwWv.js";import"./run-initiator-BvruBM5H.js";import"./use-automations-II_YJWtN.js";import"./clients-6aJvabvS.js";import"./renderer-CgaQKMoG.js";import"./card-DT9mSjSp.js";import"./table-B6yimlsZ.js";import"./change-summary-CGrKEJ04.js";import"./copy-button-D6zpsZLi.js";import"./agent-list-row-SyACVYX7.js";import"./automation-row-CmTpAD4r.js";import"./device-automation-Dp3faMvp.js";import"./client-activity-scopes-DoIErdUy.js";import"./client-rows-BbVQy5Ti.js";import"./view-param-filters-DYlqBocg.js";import"./app-bridge-C4nPtae3.js";import"./filter-editors-Dd5R2Etd.js";function g({owner:e,eventId:t,viewKey:s}){const o=u({strict:!1}),p=v(),i=(m,r)=>a.jsx(E,{owner:r,organizationId:m,eventId:t,viewKey:s,params:s?h(o):{},onParamsChange:(n,c,l)=>void p({to:x(r,t,n),search:c,replace:l?.replace??!0}),fullBleed:!0},`${r}/${t}`);return a.jsx(d,{className:"gap-6 pt-2.5 pb-8",children:e==="me"?i(null,e):a.jsx(f,{owner:e,children:({organizationId:m,ownerSlug:r})=>m?i(m,r):a.jsx("div",{className:"mx-auto h-40 w-full max-w-3xl animate-pulse rounded-md bg-muted/40"})})})}function S(){const{owner:e,eventId:t}=w.useParams(),s=P({from:"/$owner/events/$eventId/-/views/$viewKey",shouldThrow:!1}),o=j(t);return o===null?null:a.jsx(g,{owner:e,eventId:o,viewKey:s?.viewKey})}export{S as component};
|
|
2
|
+
//# sourceMappingURL=_eventId-0BSX6VHj.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/peek-pane-content-Bqus80Mq.js","assets/index-B-Ab8srM.js","assets/index-tTbno-PX.css","assets/automation-detail-content-BFv1TglZ.js","assets/event-detail-8xHiplt_.js","assets/events-feed-zFnTSE27.js","assets/event-card-BtTUuf2q.js","assets/definition-comparison-C3k6Wa9B.js","assets/automation-source-list-D8ZSavQU.js","assets/schema-value-BUgC0Ro8.js","assets/json-diff-B-1Swv_y.js","assets/index-Vcq4gwWv.js","assets/run-initiator-BvruBM5H.js","assets/use-automations-II_YJWtN.js","assets/clients-6aJvabvS.js","assets/renderer-CgaQKMoG.js","assets/card-DT9mSjSp.js","assets/table-B6yimlsZ.js","assets/change-summary-CGrKEJ04.js","assets/copy-button-D6zpsZLi.js","assets/agent-list-row-SyACVYX7.js","assets/automation-row-CmTpAD4r.js","assets/device-automation-Dp3faMvp.js","assets/client-activity-scopes-DoIErdUy.js","assets/client-rows-BbVQy5Ti.js","assets/view-param-filters-DYlqBocg.js","assets/app-bridge-C4nPtae3.js","assets/filter-editors-Dd5R2Etd.js","assets/home-stream-IVsNEkwp.js","assets/list-skeleton-BAqT0vxo.js","assets/create-automation-form-B12yTrmj.js","assets/entity-options-CGTjLlcS.js","assets/model-selector-onvGA9Ww.js","assets/skill-editor-D_W3QlRz.js","assets/use-mention-search-Bxlpd6Dp.js","assets/proposal-review-shell-CnACXCUg.js","assets/runs-BMzp7j7j.js","assets/agent-loading-shells-DHvKiEUB.js","assets/agent-thread-B1ZepGZc.js","assets/pending-seed-CoFPQ835.js","assets/connection-feed-detail-BLCjhP-H.js","assets/runs-list-DVhrTr3v.js","assets/status-variants-DT61YfsU.js","assets/feed-event-kinds-BYuZCoU4.js","assets/connect-menu-Bs8mxsga.js","assets/source-record-panels-CBV9tsR3.js","assets/schema-type-editor-panel-Bdeumkux.js","assets/entity-type-page-CjFqxSdL.js","assets/views-access-required-BVtMfgLh.js","assets/dynamic-schema-form-DyT_9iVE.js","assets/record-session-Bpx4_LGk.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{p as x,j as n,r as h,C as b,L as k,u as y,a as v,b as j,c as N,d as P,D as I,e as R,f as _,g as D,h as E,i as S,k as A,l as C,B as m,m as L,A as T,X as z,n as O,_ as K,S as p,R as $,o as B,q as W,s as H,t as V,N as q,O as F}from"./index-B-Ab8srM.js";import{R as G}from"./record-session-Bpx4_LGk.js";function w({item:a}){const e=a.href?x(a.href):null;if(!e||e.kind==="automation"&&!("runId"in e&&e.runId!=null))return null;const t=e.owner,i=e.kind==="automation"?e.automationId:a.sourceAttribution?.automation_id??null,r=a.sourceAttribution,s=[{label:t,to:"/$owner",params:{owner:t}}];return r?.agent_id&&r.agent_name&&s.push({label:r.agent_name,to:"/$owner/agents/$agentId",params:{owner:t,agentId:r.agent_id}}),i!=null&&s.push({label:r?.automation_name??"Automation",to:"/$owner/automations/$automationId",params:{owner:t,automationId:String(i)}}),(e.kind==="memory"||e.kind==="automation")&&"runId"in e&&e.runId!=null?s.push({label:"Run details"}):e.kind==="event"?s.push({label:"Event details"}):e.kind==="memory"&&"contentIds"in e&&s.push({label:"Details"}),s.length<2?null:n.jsx("nav",{"aria-label":"Breadcrumb",className:"flex min-w-0 shrink-0 items-center gap-1 overflow-x-auto border-b border-border px-3 py-1.5 text-xs text-muted-foreground",children:s.map((o,l)=>{const c=l===s.length-1,f=n.jsx("span",{className:c?"truncate font-medium text-foreground":"whitespace-nowrap",children:o.label});return n.jsxs(h.Fragment,{children:[l>0?n.jsx(b,{className:"h-3 w-3 shrink-0","aria-hidden":"true"}):null,o.to&&!c?n.jsx(k,{to:o.to,params:o.params,className:"whitespace-nowrap transition-colors hover:text-foreground",children:o.label}):f]},o.to??o.label)})})}const M=O(async()=>({default:(await K(async()=>{const{PeekPaneContent:a}=await import("./peek-pane-content-Bqus80Mq.js");return{PeekPaneContent:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50]))).PeekPaneContent}));function Q(){return n.jsxs("div",{"data-testid":"peek-pane-body-loading",className:"space-y-3 p-4",children:[n.jsx(p,{className:"h-5 w-2/3"}),n.jsx(p,{className:"h-4 w-full"}),n.jsx(p,{className:"h-24 w-full rounded-lg"})]})}const U=460,X=480;function J({children:a}){const e=h.useRef(null),t=y(),i=v(),r=j(e,U+X),s=!i&&r&&t?.item!=null;return n.jsxs("div",{ref:e,className:"relative flex min-h-0 flex-1 flex-row",children:[n.jsx("div",{inert:s,className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto",children:a}),n.jsx(Y,{covers:s})]})}function Y({covers:a=!1}){const e=y(),t=v();return e?.item?n.jsx(ee,{item:e.item,onClose:e.close,onBack:e.back,isNarrow:t,covers:a}):null}function Z(a){const e=a.href?x(a.href):null,t=e?.kind==="record-view"?e.viewKey:null,i=e?.kind==="entity-type"?e:null,r=i?.typeSlug??null,s=A({slug:t?e?.owner:void 0}),{data:o}=C(r?e?.owner??null:null),l=r?o?.find(c=>c.slug===r)?.name:void 0;return t&&s.data?.find(c=>c.key===t)?.name||l&&(i?.view==="activity"?`${l} activity`:l)||a.title}function ee({item:a,onClose:e,onBack:t,isNarrow:i,covers:r}){const s=N(),o=a.href?x(a.href):null,l=a.runId&&o?.kind==="automation"&&o.view==="activity"?{pathname:`/${o.owner}/events`,search:{run_ids:String(a.runId)}}:a.href?P(a.href):null,c=Z(a);h.useEffect(()=>{if(i)return;const d=u=>{u.defaultPrevented||u.key!=="Escape"||(u.preventDefault(),e())};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[e,i]);const f=d=>n.jsxs("div",{className:"flex h-11 shrink-0 items-center gap-1 border-b border-border px-3",children:[t||d?n.jsx(m,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0 text-muted-foreground hover:text-foreground","aria-label":"Back",onClick:t??e,children:n.jsx(L,{className:"h-4 w-4"})}):null,n.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",children:c}),l?n.jsx(m,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0 text-muted-foreground hover:text-foreground","aria-label":"Open full page",asChild:!0,children:n.jsx(k,{to:l.pathname,search:l.search??{},onClick:u=>{u.button!==0||u.metaKey||u.ctrlKey||u.shiftKey||u.altKey||(u.preventDefault(),(async()=>(await e(),await s({to:l.pathname,search:l.search??{}})))())},children:n.jsx(T,{className:"h-4 w-4"})})}):null,n.jsx(m,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0 text-muted-foreground hover:text-foreground","aria-label":"Close preview",onClick:e,children:n.jsx(z,{className:"h-4 w-4"})})]}),g=n.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:n.jsx(h.Suspense,{fallback:n.jsx(Q,{}),children:n.jsx(M,{item:a})})});return i?n.jsx(I,{open:!0,onOpenChange:d=>{d||e()},children:n.jsxs(R,{children:[n.jsx(_,{className:"fixed inset-0 z-40 bg-black/60 data-[state=open]:animate-in data-[state=open]:fade-in-0"}),n.jsxs(D,{"aria-describedby":void 0,className:"fixed inset-y-0 right-0 z-50 flex w-full max-w-[460px] flex-col border-l border-border bg-background outline-none data-[state=open]:animate-in data-[state=open]:slide-in-from-right",children:[n.jsx(E,{className:"sr-only",children:c}),f(!0),n.jsx(w,{item:a}),g]})]})}):n.jsxs("aside",{className:S("flex flex-col border-l border-border bg-background",r?"absolute inset-0 z-30 w-full":"w-[460px] max-w-[45vw] shrink-0"),children:[f(!1),n.jsx(w,{item:a}),g]})}function te(){const{owner:a}=$.useParams(),{data:e,isLoading:t,error:i}=B(a==="me"?null:a,{slug:a}),{session:r,isReady:s}=W();return H({active:V({settled:!t,authReady:s,session:r,resolved:!!e?.workspace,error:i}),owner:a})?null:n.jsx(q,{children:n.jsx(G,{children:n.jsx(J,{children:n.jsx(F,{})})})})}export{te as component};
|
|
3
|
+
//# sourceMappingURL=_owner-C-CD22NB.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jd as p,j as m,br as i}from"./index-B-Ab8srM.js";import{M as e}from"./memory-browse-page-rAKfVdQ_.js";import"./public-shell-ready-Dlh-eWz0.js";import"./connector-boxes-BAP_f77M.js";import"./use-automations-II_YJWtN.js";import"./feed-event-kinds-BYuZCoU4.js";import"./schema-type-editor-panel-Bdeumkux.js";import"./entity-type-page-CjFqxSdL.js";import"./change-summary-CGrKEJ04.js";import"./json-diff-B-1Swv_y.js";import"./index-Vcq4gwWv.js";import"./dynamic-schema-form-DyT_9iVE.js";import"./renderer-CgaQKMoG.js";import"./schema-value-BUgC0Ro8.js";import"./card-DT9mSjSp.js";import"./table-B6yimlsZ.js";import"./entity-pages-eYbG2FDT.js";import"./filter-editors-Dd5R2Etd.js";import"./core.esm-BIE97rfo.js";import"./view-param-filters-DYlqBocg.js";import"./app-bridge-C4nPtae3.js";import"./member-scope-gate-Lj9m4RL2.js";function k(){const{owner:t,entityType:o,shape:r}=p.useParams();return m.jsx(e,{ownerSlug:t,typeScope:i(o),create:!1,shape:r})}export{k as component};
|
|
2
|
+
//# sourceMappingURL=_shape-CvXp4omb.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{gE as m,v as y,c as d,fX as g,fc as c,j as t,ak as u,al as x,bU as f}from"./index-B-Ab8srM.js";import{E}from"./entity-type-page-CjFqxSdL.js";import"./change-summary-CGrKEJ04.js";import"./json-diff-B-1Swv_y.js";import"./index-Vcq4gwWv.js";function b(){const{owner:a,slug:n}=m.useParams(),{orgContext:s}=y(),o=d(),{data:i=[],isLoading:r}=g(s),e=i.find(l=>l.slug===n)??null,p=e?c(e):!1;return t.jsx(u,{className:"gap-4 pt-2.5 pb-8",children:t.jsx(x,{children:r?t.jsx(f,{label:"entity type",variant:"panel"}):e?t.jsx(E,{entityType:e,orgContext:s,hideDelete:p,onClose:()=>{o({to:"/$owner/data",params:{owner:a}})}}):t.jsx("div",{className:"text-sm text-muted-foreground",children:"Entity type not found."})})})}export{b as component};
|
|
2
|
+
//# sourceMappingURL=_slug-DgK7zpKA.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{je as t,j as m}from"./index-B-Ab8srM.js";import{M as i}from"./memory-browse-page-rAKfVdQ_.js";import"./public-shell-ready-Dlh-eWz0.js";import"./connector-boxes-BAP_f77M.js";import"./use-automations-II_YJWtN.js";import"./feed-event-kinds-BYuZCoU4.js";import"./schema-type-editor-panel-Bdeumkux.js";import"./entity-type-page-CjFqxSdL.js";import"./change-summary-CGrKEJ04.js";import"./json-diff-B-1Swv_y.js";import"./index-Vcq4gwWv.js";import"./dynamic-schema-form-DyT_9iVE.js";import"./renderer-CgaQKMoG.js";import"./schema-value-BUgC0Ro8.js";import"./card-DT9mSjSp.js";import"./table-B6yimlsZ.js";import"./entity-pages-eYbG2FDT.js";import"./filter-editors-Dd5R2Etd.js";import"./core.esm-BIE97rfo.js";import"./view-param-filters-DYlqBocg.js";import"./app-bridge-C4nPtae3.js";import"./member-scope-gate-Lj9m4RL2.js";function S(){const{owner:o,viewKey:r}=t.useParams();return m.jsx(i,{ownerSlug:o,create:!1,viewKey:r})}export{S as component};
|
|
2
|
+
//# sourceMappingURL=_viewKey-cH54P0zY.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jn as p,j as i,br as m}from"./index-B-Ab8srM.js";import{M as e}from"./memory-browse-page-rAKfVdQ_.js";import"./public-shell-ready-Dlh-eWz0.js";import"./connector-boxes-BAP_f77M.js";import"./use-automations-II_YJWtN.js";import"./feed-event-kinds-BYuZCoU4.js";import"./schema-type-editor-panel-Bdeumkux.js";import"./entity-type-page-CjFqxSdL.js";import"./change-summary-CGrKEJ04.js";import"./json-diff-B-1Swv_y.js";import"./index-Vcq4gwWv.js";import"./dynamic-schema-form-DyT_9iVE.js";import"./renderer-CgaQKMoG.js";import"./schema-value-BUgC0Ro8.js";import"./card-DT9mSjSp.js";import"./table-B6yimlsZ.js";import"./entity-pages-eYbG2FDT.js";import"./filter-editors-Dd5R2Etd.js";import"./core.esm-BIE97rfo.js";import"./view-param-filters-DYlqBocg.js";import"./app-bridge-C4nPtae3.js";import"./member-scope-gate-Lj9m4RL2.js";function K(){const{owner:t,entityType:o,viewKey:r}=p.useParams();return i.jsx(e,{ownerSlug:t,typeScope:m(o),create:!1,viewKey:r})}export{K as component};
|
|
2
|
+
//# sourceMappingURL=_viewKey-m0B5j7L9.js.map
|
package/dist/owletto/dist/assets/{accept-invitation-pUl-c1KQ.js → accept-invitation-CX7Egv-p.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{q as l,ai as u,r as c,Q as m,j as e,aj as d,a6 as h,ag as f}from"./index-
|
|
2
|
-
//# sourceMappingURL=accept-invitation-
|
|
1
|
+
import{q as l,ai as u,r as c,Q as m,j as e,aj as d,a6 as h,ag as f}from"./index-B-Ab8srM.js";import{S as v,A as x,a as g}from"./index-B72KYdN1.js";import{F as p}from"./full-page-spinner-CCU4PkRv.js";function j({alt:t="",...a}){return e.jsx("img",{alt:t,...a,referrerPolicy:"no-referrer"})}function w({children:t}){const a=h(),n=async i=>{await a.invalidateQueries({queryKey:["organizations"]}),i()};return e.jsx(g,{authClient:f,navigate:i=>{n(()=>{window.location.href=i})},replace:i=>{n(()=>window.location.replace(i))},Link:({href:i,children:s,className:r})=>e.jsx("a",{href:i,className:r,children:s}),basePath:"/auth",redirectTo:"/",magicLink:!0,social:{providers:[]},avatar:{Image:j},children:t})}function b(){const{session:t,sessionResult:a}=l(),{invitationId:n}=u.useSearch(),i=c.useRef(!1);return c.useEffect(()=>{a.isPending||t||!n||i.current||(i.current=!0,(async()=>{let s=null;try{const o=await fetch(`${m}/api/invitation-preview?id=${encodeURIComponent(n)}`,{credentials:"omit"});o.ok&&(s=await o.json())}catch{}const r=new URL("/auth/login",window.location.origin);r.searchParams.set("callbackUrl",`/auth/accept-invitation?invitationId=${encodeURIComponent(n)}`),s&&(r.searchParams.set("loginHint",s.email),r.searchParams.set("invitationOrg",s.organizationName)),window.location.href=r.toString()})())},[t,a.isPending,n]),t&&!n?e.jsx("div",{className:"min-h-[calc(100vh-3.5rem)] flex items-center justify-center p-4",children:e.jsxs("div",{className:"w-full max-w-md text-center",children:[e.jsx("img",{src:"/lobu-logo.svg",alt:"Lobu",className:"mx-auto mb-6 h-8 w-auto"}),e.jsx(d,{className:"mx-auto h-10 w-10 text-destructive mb-4"}),e.jsx("h1",{className:"text-xl font-semibold",children:"Invitation not found"}),e.jsx("p",{className:"text-muted-foreground mt-2",children:"This invitation link is missing its ID. Ask the person who invited you to resend it."})]})}):t?e.jsxs("div",{className:"min-h-[calc(100vh-3.5rem)] flex flex-col items-center justify-center gap-6 p-4",children:[e.jsx("img",{src:"/lobu-logo.svg",alt:"Lobu",className:"h-8 w-auto"}),e.jsx(w,{children:e.jsx(v,{children:e.jsx(x,{})})})]}):e.jsx(p,{className:"min-h-[calc(100vh-3.5rem)]"})}export{b as component};
|
|
2
|
+
//# sourceMappingURL=accept-invitation-CX7Egv-p.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{u as l,d as h,j as t,aY as d,a$ as u,b0 as p,B as x,L as f,cM as m,b1 as y}from"./index-B-Ab8srM.js";function g({owner:s,automationId:r,name:e}){const a=l(),o=`/${s}/automations/${encodeURIComponent(String(r))}?view=activity`,{pathname:n,search:c}=h(o);return t.jsx(d,{delayDuration:200,children:t.jsxs(u,{children:[t.jsx(p,{asChild:!0,children:t.jsx(x,{asChild:!0,variant:"ghost",size:"icon",className:"size-8 shrink-0 text-muted-foreground hover:text-foreground",children:t.jsxs(f,{to:n,search:c??{},onClick:i=>{!a||i.button!==0||i.metaKey||i.ctrlKey||i.shiftKey||i.altKey||(i.preventDefault(),a.open({href:o,title:e,owner:s}))},children:[t.jsx(m,{className:"h-4 w-4","aria-hidden":"true"}),t.jsx("span",{className:"sr-only",children:"View activity"})]})})}),t.jsxs(y,{children:["View activity for ",e]})]})})}export{g as A};
|
|
2
|
+
//# sourceMappingURL=activity-link-rXNpmppV.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{v as F,at as z,cs as A,br as y,ct as _,r as V,c as N,aq as Y,cu as G,j as e,bU as H,b2 as b,cv as U,cw as q,cx as D,cy as I,B as m,L as w,cz as K,cA as J,cB as Q,cC as X,cD as Z,w as ee,ak as te,az as se,al as ne}from"./index-B-Ab8srM.js";import{R as ae,E as oe,S as ie,N as R,M as re}from"./record-activity-6CfR95Ul.js";import{M as ce}from"./member-scope-gate-Lj9m4RL2.js";import{H as le}from"./home-stream-IVsNEkwp.js";import{P as de}from"./public-shell-ready-Dlh-eWz0.js";function ue({organizationId:s,ownerSlug:t,typeScope:o,entityScope:n,attentionOnly:r=!1}){const{orgContext:c}=F(),{isMember:l,isLoading:h}=z(),x=l&&!!s,{attentionItems:p,isError:a}=A(t),i=o?y(o):void 0,g=!n&&!i,{feeds:k,rows:P,pageRows:d}=_(s,p),L=V.useMemo(()=>new Set(d.flatMap(({item:C})=>C.approvalRunId!=null?[C.approvalRunId]:[])),[d]),O=N(),T=()=>void O({to:"/$owner",params:{owner:t},search:{attention:"1"}}),{data:v,isLoading:f,error:M}=Y(n?`/${t}/${G(n)}`:`/${t}`,c),j=n?v?.entity:void 0,$=(n?j?.entity_type??y(n.split("/").at(-2)??""):i)==="$member",W=n!=null&&!f&&(M!=null||v?.entity==null),u=n?void 0:v?.counts,B=u?u.connections>0||u.agents>0:!1,S=x&&!h&&!f&&u!=null&&!B,E=n&&f?e.jsx(H,{label:"Loading record…"}):W?e.jsx(b,{icon:U,title:"Record not found",description:"It may have been deleted, or it may live in a workspace you can't access."}):r&&g?e.jsx(me,{owner:t,items:P,isError:a}):j?e.jsx(ae,{ownerSlug:t,entity:j,organizationId:s}):e.jsx(oe,{organizationId:s,ownerSlug:t,hideSourceFilter:!0,scopedEntityTypes:i?[i]:void 0,pinned:g&&(d.length>0||k.length>0)?{rows:e.jsx(q,{owner:t,organizationId:s,feeds:k,rows:d}),hiddenApprovalRunIds:L}:void 0,onShowNotifications:g?T:void 0,emptyState:S?e.jsx(xe,{ownerSlug:t}):void 0});return e.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col gap-4",children:$?e.jsx(ce,{children:E}):E})}function me({owner:s,items:t,isError:o}){const n=N();return e.jsxs("section",{"aria-label":"Notifications",className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-2.5",children:[e.jsx("span",{className:"mr-auto text-sm text-muted-foreground tabular-nums",children:t.length>0?`${t.length} ${t.length===1?"notification":"notifications"}`:null}),e.jsx(he,{owner:s}),e.jsx(ie,{value:R.value,withNotifications:!0,onChange:r=>{if(r===R.value)return;const[c,l]=r.split("-");n({to:"/$owner",params:{owner:s},search:D({sortBy:c,sortOrder:l})})}})]}),o?e.jsx("p",{className:"px-3 text-sm text-destructive",children:"Could not load notifications."}):t.length===0?e.jsx(b,{icon:I,title:"All caught up",description:"Nothing needs you right now.",children:e.jsx(m,{asChild:!0,variant:"outline",className:"mt-4",children:e.jsx(w,{to:"/$owner",params:{owner:s},children:"See all activity"})})}):e.jsx(K,{owner:s,rows:t})]})}function he({owner:s}){const{visibleUnreadIds:t,markVisibleRead:o,bulkPending:n}=A(s);return t.length===0?null:e.jsxs(m,{type:"button",variant:"ghost",size:"sm",className:"h-8 text-muted-foreground",disabled:n,onClick:()=>void o(),children:[e.jsx(I,{className:"mr-1.5 h-3.5 w-3.5"}),"Mark all as read"]})}function xe({ownerSlug:s}){return e.jsx("div",{className:"px-6",children:e.jsx(b,{icon:J,title:"Nothing to catch up on — yet",description:"No notifications here. Add a connector to bring in data, or bring your agent to Lobu and give it something to work with.",children:e.jsxs("div",{className:"mt-4 flex flex-wrap justify-center gap-2",children:[e.jsx(m,{asChild:!0,children:e.jsxs(w,{to:"/$owner/connectors/create",params:{owner:s},children:[e.jsx(Q,{className:"mr-2 h-4 w-4"}),"Add a connector"]})}),e.jsx(m,{asChild:!0,variant:"outline",children:e.jsxs(w,{to:"/$owner/agents",params:{owner:s},children:[e.jsx(X,{className:"mr-2 h-4 w-4"}),"Connect agent"]})})]})})})}function we({owner:s,search:t,entityScope:o,home:n=!1}){const r=typeof t.type=="string"&&t.type.trim()?y(t.type.trim()):void 0,c=String(t.attention)==="1",l=Object.entries(t).some(([a,i])=>(Z.includes(a)||a.startsWith("clf_"))&&i!=null&&i!==""),h=N(),{pathname:x}=ee(),p=a=>{h({to:x,search:(i=>({...i,attention:a?"1":void 0})),replace:!0})};return e.jsxs(te,{className:"gap-6 pt-2.5 pb-8",children:[e.jsx(de,{}),e.jsx(se,{owner:s,children:a=>e.jsx(re,{organizationId:a.organizationId,isWorkspaceLoading:a.isWorkspaceLoading,children:e.jsx(ne,{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:n&&!l&&!r&&!o?e.jsx(le,{owner:a.ownerSlug,organizationId:a.organizationId,needsYou:c,onNeedsYouChange:p}):e.jsx(ue,{organizationId:a.organizationId,ownerSlug:a.ownerSlug,typeScope:r,entityScope:o,attentionOnly:c})})})})]})}export{we as A};
|
|
2
|
+
//# sourceMappingURL=activity-route-view-B0m7_g9q.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as o,L as p,
|
|
1
|
+
import{j as o,L as p,e6 as h}from"./index-B-Ab8srM.js";const m="https://raw.githubusercontent.com/lobu-ai/lobu/main/claude-plugin/skills/lobu/SKILL.md";function s(e){try{const t=new URL(e).hostname;return t==="lobu.ai"||t.endsWith(".lobu.ai")}catch{return!1}}function i(e,t){const n=`npx @lobu/cli@latest connect ${e}`;return s(t)?n:`${n} --url ${t}`}function r(e,t){return`npx @lobu/cli@latest connect ${e} --url ${t}`}const d={label:"Lobu MCP reference",href:"https://lobu.ai/reference/mcp/"};function u(e){return[`Paste the prompt into ${e} and review its proposed setup.`,"Approve Lobu sign-in in your browser or through the email approval link.",`Let ${e} verify access with a harmless read in this workspace.`]}const l=[{id:"claude",label:"Claude",tagline:"Web, desktop, and coding agent for one workspace",description:"Claude web, desktop, and Code apps for this workspace.",installTitle:"Add in one click, or run in your terminal",installLink:e=>({label:"Add Lobu to Claude",href:`https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=Lobu&connectorUrl=${encodeURIComponent(e)}`}),installText:e=>i("claude-code",e),promptUrl:e=>`https://claude.ai/new?q=${encodeURIComponent(e)}`,steps:e=>["Claude: open the Add to Claude link above and complete sign-in.",...s(e)?["The CLI adds Lobu's marketplace and installs the shared plugin."]:["The CLI registers this MCP endpoint and installs the Lobu workspace skill."],"Start a fresh Claude Code session, choose this workspace, and complete OAuth when prompted."],guideLinks:[{label:"Claude setup guide",href:"https://lobu.ai/connect-from/claude/"},{label:"Claude Code setup guide",href:"https://lobu.ai/connect-from/claude-code/"}]},{id:"chatgpt",label:"ChatGPT & Codex",tagline:"Web connector and coding agent for one workspace",description:"ChatGPT web connector and Codex coding agent for this workspace.",installTitle:"Pick a surface",installLink:e=>s(e)?{label:"Use Lobu in ChatGPT",href:"https://chatgpt.com/plugins/plugin_asdk_app_6a73b856e4348191a97dc8e3a1e58a94"}:null,promptUrl:e=>`https://chatgpt.com/?q=${encodeURIComponent(e)}`,installText:e=>s(e)?i("codex",e):["ChatGPT web — open Settings -> Connectors -> Create connector","Name: Lobu",`MCP URL: ${e}`,"Authentication: OAuth","",`Codex — ${i("codex",e)}`].join(`
|
|
2
2
|
`),steps:e=>s(e)?["ChatGPT web: open the Lobu listing above and complete sign-in.","Codex: run the command above — the CLI adds Lobu's marketplace and installs the shared plugin.","Codex: start a fresh session, choose this workspace, and complete OAuth when prompted."]:["Codex: run the command above — the CLI registers this MCP endpoint and installs the Lobu workspace skill.","Codex: start a fresh session, choose this workspace, and complete OAuth when prompted."],guideLinks:[{label:"ChatGPT setup guide",href:"https://lobu.ai/connect-from/chatgpt/"},{label:"Codex setup guide",href:"https://lobu.ai/connect-from/codex/"}]},{id:"opencode",label:"OpenCode",tagline:"Native remote MCP plus a global Lobu skill",description:"Connect OpenCode through its native MCP setup and install the Lobu workspace skill globally.",installTitle:"Run in your terminal",installText:e=>r("opencode",e),steps:e=>[`The CLI launches OpenCode's native MCP setup for ${e}.`,"Choose remote and name the server lobu.","Run opencode mcp auth lobu and complete OAuth.","The CLI installs the Lobu skill into OpenCode's global skill directory.","Start a fresh OpenCode session."],guideLinks:[{label:"OpenCode MCP guide",href:"https://opencode.ai/docs/mcp-servers/"}]},{id:"antigravity",label:"Antigravity CLI",tagline:"Native remote MCP plus a global Lobu skill",description:"Connect Antigravity CLI through its native MCP profile and install the Lobu workspace skill globally.",installTitle:"Run in your terminal",installText:e=>r("antigravity",e),steps:()=>["The CLI adds Lobu to Antigravity's global MCP profile using serverUrl.","The CLI installs lobu.md into Antigravity CLI's global skills directory.","Start a fresh session with agy, confirm Lobu in /mcp, and complete OAuth when prompted."],guideLinks:[{label:"Antigravity MCP guide",href:"https://antigravity.google/docs/mcp"}]},{id:"cursor",label:"Cursor",tagline:"Native remote MCP setup",description:"Connect Cursor to shared workspace context and governed actions through its native MCP configuration.",installTitle:"Run in your terminal",installText:e=>r("cursor",e),steps:()=>["The CLI adds or updates the Lobu entry in Cursor's MCP configuration.","Restart Cursor and enable the Lobu MCP server.","Use a Lobu tool and complete OAuth when prompted."],guideLinks:[d]},{id:"openclaw",label:"OpenClaw",tagline:"Connect from your agent's workspace",description:"Let OpenClaw connect to Lobu through MCP or sign in with the Lobu CLI in its terminal.",installTitle:"Paste this into OpenClaw",setupMode:"agent-prompt",terminalLogin:!0,steps:()=>u("OpenClaw"),guideLinks:[{label:"OpenClaw terminal guide",href:"https://docs.openclaw.ai/tools/exec"}]},{id:"hermes",label:"Hermes",tagline:"Remote MCP or Lobu CLI sign-in",description:"Let Hermes configure Lobu with its MCP tools or sign in with the Lobu CLI in its terminal.",installTitle:"Paste this into Hermes",setupMode:"agent-prompt",terminalLogin:!0,steps:()=>u("Hermes"),guideLinks:[{label:"Hermes MCP guide",href:"https://hermes-agent.nousresearch.com/docs/user-guide/features/mcp/"}]},{id:"other",label:"Not listed here",tagline:"Let your agent configure Lobu",description:"Paste a setup prompt into another MCP-compatible agent and let it propose the exact skill and MCP configuration.",installTitle:"Paste this into your agent",setupMode:"agent-prompt",steps:()=>["Paste the prompt into the agent you want to connect.","Review the exact configuration and skill files it proposes before approving changes.","Complete Lobu OAuth and let the agent perform its read-only verification."],guideLinks:[d]}],L=["Connect my Gmail to Lobu.","Create a Lobu automation that sends me a morning briefing.","In Lobu, design a data model with entities and relationships for tracking deals.","Remember in Lobu that I prefer short answers that lead with the key point."],g={codex:"chatgpt","claude-code":"claude","claude-desktop":"claude"};function f(e){const t=g[e]??e;return l.find(n=>n.id===t)}function k(e){const{workspaceName:t,owner:n,mcpUrl:a,clientLabel:c}=e;return[`Connect this${c?` ${c}`:""} agent to the "${t}" Lobu workspace (${n}).`,"",`Use the remote HTTP MCP server ${a}. Detect this agent's native MCP and skill mechanisms. If it supports installable skills, install the Lobu workspace skill from ${m}.`,"Inspect the current client and show the exact proposed installation or configuration changes before applying them. The Lobu CLI may be used as the setup helper, but do not initialize a Lobu project. Do not install the separate project-building starter skill. Do not enable local Automation delivery.",...e.terminalLogin?[`If native remote MCP with OAuth is unavailable, use the Lobu CLI in this agent's persistent terminal environment. Before logging in, inspect CLI help and existing contexts to select the same Lobu server and workspace as the MCP URL above; never silently use the hosted server for a custom endpoint. If no context matches that server, create one with npx @lobu/cli@latest context add <name> --url <server-base-url>. Ask for the user's Lobu email address, then run npx @lobu/cli@latest login --email <address> --context <name> and wait for the user to approve the email link. Keep credentials in the CLI's own persistent storage; never print tokens or paste them into chat. Run npx @lobu/cli@latest memory health --context <name> --org ${n}, then make a harmless read using the CLI with the same --context and --org options.`]:[],"","For native MCP, complete Lobu OAuth in the user's browser, then start a fresh session and confirm Lobu tools are discoverable. After either setup path, make one harmless read-only call in the selected workspace. Use search_sdk before choosing SDK methods. Never fabricate a returned URL or identifier."].join(`
|
|
3
3
|
`)}function b(e,t){return`flex items-center gap-3 px-3 py-2.5 text-left text-muted-foreground transition-colors hover:bg-accent/50 hover:text-foreground ${e===t-1?"":"border-b"}`}function w({owner:e,dashed:t=!1}){return o.jsx("div",{className:`overflow-hidden rounded-lg border ${t?"border-dashed":""}`,children:l.map((n,a)=>o.jsxs(p,{to:"/$owner/agents/connect/$clientId",params:{owner:e,clientId:n.id},className:b(a,l.length),children:[o.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center text-muted-foreground",children:o.jsx(h,{name:n.label})}),o.jsxs("div",{className:"min-w-0 flex-1",children:[o.jsx("p",{className:"truncate text-sm font-medium",children:n.label}),o.jsx("p",{className:"truncate text-xs text-muted-foreground",children:n.tagline})]}),o.jsx("span",{className:"shrink-0 text-xs",children:"Set up"})]},n.id))})}export{w as A,L as F,k as b,f};
|
|
4
|
-
//# sourceMappingURL=agent-client-setup-list-
|
|
4
|
+
//# sourceMappingURL=agent-client-setup-list-BmD3-_Ox.js.map
|
package/dist/owletto/dist/assets/{agent-connect-pages-DcTuiSt9.js → agent-connect-pages-BtOTCsTU.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Q as k,j as e,ak as h,al as v,
|
|
2
|
-
//# sourceMappingURL=agent-connect-pages-
|
|
1
|
+
import{Q as k,j as e,ak as h,al as v,gF as A,b3 as L,gG as P,L as p,gH as S,o as R,r as _,hy as o,B as b,A as N,e6 as C}from"./index-B-Ab8srM.js";import{A as I,f as M,b as $,F as y}from"./agent-client-setup-list-BmD3-_Ox.js";import{C as B}from"./connector-page-shell-ClOmVPJr.js";import{C as x}from"./copy-button-D6zpsZLi.js";import{u as T}from"./clients-6aJvabvS.js";import{g as E,a as O}from"./client-rows-BbVQy5Ti.js";const U="app.lobu.ai";function F(s,n){const a=n?`/mcp/${n}`:"/mcp";if(!s)return`http://localhost:8787${a}`;try{const r=new URL(s);return r.hostname===U&&(r.hostname="lobu.ai"),r.pathname=a,r.toString()}catch{return`${s}${a}`}}function D(s){return F(k,s)}const u="gap-3 pt-2.5 pb-8";function H(s,n){return`flex items-center gap-3 px-3 py-2.5 text-left text-muted-foreground transition-colors hover:bg-accent/50 hover:text-foreground ${s===n-1?"":"border-b"}`}function w({owner:s}){return e.jsx(P,{crumbs:[e.jsx(p,{to:"/$owner/agents",params:{owner:s},className:S,children:"Agents"},"agents")]})}function J({owner:s}){return e.jsx(h,{className:u,children:e.jsxs(v,{className:"flex flex-1 flex-col gap-6",children:[e.jsx(A,{breadcrumb:e.jsx(w,{owner:s}),icon:e.jsx(L.agents.icon,{className:"h-6 w-6"}),title:"Connect an agent",caption:"Choose the agent you already use. Install directly where supported, or copy a setup prompt into the agent."}),e.jsx(I,{owner:s})]})})}function V({owner:s,clientId:n}){const a=M(n),{data:r}=R(s,{slug:s}),{data:g=[]}=T(null,{refetchInterval:2500}),l=_.useMemo(()=>E(g).filter(t=>t.connected),[g]);if(!a)return e.jsx(h,{className:u,children:e.jsxs(v,{className:"space-y-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"There is no agent client by that name."}),e.jsx(p,{to:"/$owner/agents/connect",params:{owner:s},className:"text-sm text-primary hover:underline",children:"Back to agent clients"})]})});const c=D(s),d=$({workspaceName:r?.workspace?.name??s,owner:s,mcpUrl:c,clientLabel:a.id==="other"?void 0:a.label,terminalLogin:a.terminalLogin}),m=a.setupMode==="agent-prompt",f=m?d:a.installText?.(c)??d;return e.jsx(h,{className:u,children:e.jsxs(B,{header:e.jsx(A,{breadcrumb:e.jsx(w,{owner:s}),icon:e.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md border",children:e.jsx(C,{name:a.label})}),title:a.label,caption:a.description}),children:[e.jsx(o,{title:"Set up",children:e.jsxs("div",{className:"space-y-4",children:[(()=>{const t=a.installLink?.(c);return t?e.jsx("div",{children:e.jsx(b,{asChild:!0,children:e.jsxs("a",{href:t.href,target:"_blank",rel:"noreferrer",children:[t.label,e.jsx(N,{className:"ml-1.5 h-3.5 w-3.5"})]})})}):null})(),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:a.installTitle}),e.jsxs("div",{className:"flex items-start gap-2 rounded-lg border bg-muted/40 p-2.5",children:[e.jsx("pre",{className:"min-w-0 flex-1 overflow-x-auto whitespace-pre-wrap font-mono text-xs leading-relaxed",children:f}),e.jsx(x,{text:f,label:m?"Copy setup prompt":"Copy"})]})]}),e.jsx("ol",{className:"space-y-1 text-xs text-muted-foreground",children:a.steps(c).map((t,i)=>e.jsxs("li",{children:[i+1,". ",t]},t))}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[m?null:e.jsx(x,{text:d,label:"Copy setup prompt"}),a.guideLinks.map(t=>e.jsx(b,{asChild:!0,variant:"ghost",size:"sm",className:"h-8 text-xs",children:e.jsxs("a",{href:t.href,target:"_blank",rel:"noreferrer",children:[t.label,e.jsx(N,{className:"ml-1.5 h-3.5 w-3.5"})]})},t.href))]})]})}),e.jsx(o,{title:"First prompts",children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"After setup, start a new chat with Lobu enabled and try one of these."}),e.jsx("div",{className:"overflow-hidden rounded-lg border",children:y.map((t,i)=>{const j=a.promptUrl?.(t);return e.jsxs("div",{className:`flex items-center gap-2 px-3 py-2 ${i===y.length-1?"":"border-b"}`,children:[j?e.jsx("a",{href:j,target:"_blank",rel:"noreferrer",className:"min-w-0 flex-1 text-sm hover:underline",children:t}):e.jsx("p",{className:"min-w-0 flex-1 text-sm",children:t}),e.jsx(x,{text:t,label:"prompt",iconOnly:!0})]},t)})})]})}),e.jsx(o,{title:"Connected agents",count:l.length>0?String(l.length):void 0,children:l.length===0?e.jsx("div",{className:"rounded-lg border border-dashed px-3 py-2.5 text-xs text-muted-foreground",children:"Nothing yet. Finish setup and make an authenticated Lobu MCP request; the agent appears here automatically."}):e.jsx("div",{className:"overflow-hidden rounded-lg border",children:l.map((t,i)=>e.jsxs(p,{to:"/$owner/agents/connected/$clientId",params:{owner:s,clientId:t.clientId},className:H(i,l.length),children:[e.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md border",children:e.jsx(C,{name:t.title})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e.jsx("p",{className:"truncate text-xs text-muted-foreground",children:O(t)})]})]},t.key))})}),e.jsx(o,{title:"Manual MCP details",children:e.jsxs("dl",{className:"grid grid-cols-[5rem_1fr] gap-x-3 gap-y-1 rounded-lg border bg-muted/40 p-3 text-xs",children:[e.jsx("dt",{className:"text-muted-foreground",children:"Name"}),e.jsx("dd",{className:"font-mono",children:"lobu"}),e.jsx("dt",{className:"text-muted-foreground",children:"MCP URL"}),e.jsx("dd",{className:"break-all font-mono",children:c})]})})]})})}export{J as A,V as a};
|
|
2
|
+
//# sourceMappingURL=agent-connect-pages-BtOTCsTU.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{aD as ne,aE as ae,j as e,B as S,dg as re,eQ as ie,bg as oe,i as le,gk as de,cY as O,Y as z,dc as ce,hu as me,hv as ue,hw as ge,gO as xe,hx as fe,c8 as pe,aF as he,r as be,bB as k,eW as U,ee as ve,cd as je,bV as ye,hy as V}from"./index-B-Ab8srM.js";import{D as Ne,A as we,e as Ce}from"./definition-comparison-C3k6Wa9B.js";import{b as Ae,s as Se}from"./model-selector-onvGA9Ww.js";function Me(s){const t=s.toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").replace(/-{2,}/g,"-");return(t?/^[a-z]/.test(t)&&t.length>=3?t:`agent-${t}`:"agent").slice(0,60).replace(/-+$/g,"")||"agent"}function Ie(s,t){const r=new Set(t),f=Me(s);let x=f,d=2;for(;r.has(x);){const g=`-${d}`;x=`${f.slice(0,Math.max(1,60-g.length)).replace(/-+$/g,"")||"agent"}${g}`,d+=1}return x}const Fe="__unresolved__";function W(s){return s.endsWith(`/${Fe}`)}function Y(s){const t=s.indexOf("/");return t===-1?{slug:s,model:""}:{slug:s.slice(0,t),model:s.slice(t+1)}}function Pe(s,t){const{slug:r,model:f}=Y(s);return{provider:t.find(g=>g.value===s)?.provider??t.find(g=>Y(g.value).slug===r)?.provider??r,model:f}}function ke({value:s,onChange:t,disabled:r}){const{data:f=[]}=ne(),{data:x=[]}=ae(),d=Ae(f,x),g=(n,l)=>{const i=n+l;if(i<0||i>=s.length)return;const u=[...s];[u[n],u[i]]=[u[i],u[n]],t(u)},b=n=>{t(s.filter((l,i)=>i!==n))},c=n=>{s.includes(n)||t([...s,n])},m=d.filter(n=>!s.includes(n.value)&&!W(n.value));return e.jsxs("div",{className:"grid gap-2",children:[s.length===0?e.jsx("p",{className:"rounded-lg border border-dashed bg-muted/20 px-3 py-4 text-center text-[11px] text-muted-foreground",children:"No models pinned — this agent uses the org default."}):e.jsx("ul",{className:"grid gap-1.5",children:s.map((n,l)=>{const i=W(n),{provider:u,model:a}=Pe(n,d);return e.jsxs("li",{className:le("flex items-center gap-2 rounded-lg border bg-muted/20 px-3 py-2",i&&"opacity-60"),children:[e.jsxs("div",{className:"grid min-w-0 flex-1 gap-0.5",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"truncate text-sm",children:u}),l===0?e.jsx("span",{className:"shrink-0 rounded bg-primary/10 px-1.5 py-0.5 text-[10px] font-medium text-primary",children:"Default"}):null]}),e.jsx("span",{className:"truncate text-[11px] text-muted-foreground",children:i?"no model selected":a})]}),e.jsxs("div",{className:"flex shrink-0 items-center gap-0.5",children:[e.jsx(S,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7","aria-label":"Move up",disabled:r||l===0,onClick:()=>g(l,-1),children:e.jsx(re,{className:"h-4 w-4"})}),e.jsx(S,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7","aria-label":"Move down",disabled:r||l===s.length-1,onClick:()=>g(l,1),children:e.jsx(ie,{className:"h-4 w-4"})}),e.jsx(S,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7 text-destructive hover:text-destructive","aria-label":"Remove model",disabled:r,onClick:()=>b(l),children:e.jsx(oe,{className:"h-4 w-4"})})]})]},n)})}),e.jsx(de,{contentClassName:"w-[--radix-popover-trigger-width] min-w-[280px]",searchPlaceholder:"Search or type a model ref…",emptyText:"Type a full provider/model ref to use it.",trigger:n=>e.jsxs(S,{type:"button",variant:"outline",role:"combobox","aria-expanded":n,disabled:r,className:"w-full justify-start font-normal text-muted-foreground",children:[e.jsx(ce,{className:"mr-2 h-4 w-4 shrink-0"}),"Add model"]}),children:(n,l)=>{const i=l.trim(),u=Se(i,d)&&!s.includes(i);return e.jsxs(e.Fragment,{children:[m.map(a=>e.jsxs(O,{value:`${a.provider} ${a.model} ${a.value}`,onSelect:()=>{c(a.value),n()},className:"cursor-pointer",children:[e.jsx(z,{className:"mr-2 h-4 w-4 opacity-0"}),e.jsxs("span",{className:"truncate",children:[a.provider," ",e.jsx("span",{className:"text-muted-foreground text-xs",children:a.model}),a.isDefault?e.jsx("span",{className:"ml-1.5 text-muted-foreground text-xs",children:"· org default"}):null]})]},a.value)),u?e.jsxs(O,{value:`__custom__ ${i}`,onSelect:()=>{c(i),n()},className:"cursor-pointer",children:[e.jsx(z,{className:"mr-2 h-4 w-4 opacity-0"}),e.jsxs("span",{children:["Use ",e.jsx("span",{className:"font-mono text-xs",children:i})]})]}):null]})}})]})}const Ee=3;function G(s){return Array.from({length:Ee},(t,r)=>s?.[r]??{title:"",message:""})}function Q(s){return s.map(({title:t,message:r})=>({title:t.trim(),message:r.trim()})).filter(({title:t,message:r})=>t&&r)}function q({settings:s,models:t}){return e.jsxs(e.Fragment,{children:[e.jsx(V,{id:"settings",title:"Settings",children:s}),e.jsx(V,{id:"models",title:"Models",children:t})]})}function Re({mode:s,existingAgentIds:t=[],onCreated:r,onCancel:f,onDone:x,reviewMode:d="none",reviewProposal:g=null,reviewControlsDisabled:b=!1}){const c=s.kind==="create",m=s.kind==="edit"?s.agent:null,n=!c&&!!m,l=me(),i=ue(m?.agentId??""),u=ge(m?.agentId??""),{data:a,isLoading:$}=xe(m?.agentId,{enabled:n}),R=!c&&d==="active",j=R?g:null,E=j?fe(j.proposal):void 0,v=a,H=m?.agentId??"create",o=pe(H,{name:E?.name??m?.name??"",description:E?.description??m?.description??"",identityMd:E?.identityMd??a?.identityMd??"",soulMd:a?.soulMd??"",userMd:a?.userMd??"",models:v?.models??v?.settings?.models??[],showToolCalls:v?.showToolCalls??v?.settings?.showToolCalls??!1,sandboxId:v?.sandboxId??v?.settings?.sandboxId??"builtin",starters:G(a?.starters)}),[h]=o.field("name"),[y]=o.field("description"),[M]=o.field("identityMd"),[I]=o.field("soulMd"),[F]=o.field("userMd"),[N,J]=o.field("models"),[P]=o.field("showToolCalls"),[w]=o.field("sandboxId"),[C]=o.field("starters"),{data:K}=he({enabled:!c}),X=be.useCallback(async A=>{if(A.preventDefault(),!(b||d==="active"||d==="loading"||d==="error"||!o.canSubmit)){if(c){const p=await l.mutateAsync({agentId:Ie(h,t),name:h.trim(),description:y.trim()||void 0});r?await r(p.agentId):x?.();return}if(m){if(!a){k.error("Still loading agent settings — try again in a moment");return}if(C.some(({title:p,message:_})=>!!p.trim()!=!!_.trim())){k.error("Add both a title and a message for each conversation starter");return}try{await Promise.all([i.mutateAsync({name:h.trim()||m.name,description:y.trim()||void 0}),u.mutateAsync({identityMd:M.trim(),soulMd:I.trim(),userMd:F.trim(),models:N,authProfiles:a.authProfiles??[],skillsConfig:a.skillsConfig,showToolCalls:P,sandboxId:w==="builtin"?void 0:w,starters:Q(C)})]),o.accept(o.values,{name:h.trim()||m.name,description:y.trim()||m.description||"",identityMd:M.trim(),soulMd:I.trim(),userMd:F.trim(),models:N,showToolCalls:P,sandboxId:w,starters:G(Q(C))}),k.success("Agent saved"),x?.()}catch(p){k.error(p instanceof Error?p.message:"Failed to save agent")}}}},[a,l,y,o.accept,o.values,o.canSubmit,b,d,w,t,M,c,N,h,r,x,m,P,I,C,i,u,F]),D=l.isPending||i.isPending||u.isPending,Z=c||!!a;if(n&&$)return e.jsx(q,{settings:e.jsx(U,{rows:6}),models:e.jsx(U,{rows:2})});const T=D||b,ee=d==="none"||d==="gone",se=h.trim().length>0&&Z;if(R&&j){const{current:A,proposed:p}=ve(j);return e.jsx(Ne,{current:A,proposed:p,render:_=>e.jsx(we,{value:_})},j.runId)}const L=A=>e.jsx(Ce,{value:{name:h,description:y,identityMd:M,soulMd:I,userMd:F,models:N,showToolCalls:P,sandboxId:w,starters:C},onChange:o.setValues,section:A,create:c,disabled:T,loading:$,sandboxes:K?.sandboxes,modelsEditor:e.jsx(ke,{value:N,onChange:J,disabled:T})}),B=L("settings"),te=L("models");return e.jsxs("form",{onSubmit:X,className:c?"flex min-h-0 flex-col":"space-y-7",children:[e.jsx(je,{visible:o.hasConflict,onReload:o.reset}),c?B:e.jsx(q,{settings:B,models:te}),ee?e.jsx(ye,{className:c?"mt-6":void 0,onCancel:f,cancelDisabled:D,children:e.jsx(S,{type:"submit",disabled:!o.canSubmit||!se||D,children:c?l.isPending?"Creating...":"Create agent":i.isPending||u.isPending?"Saving...":"Save changes"})}):null]})}export{Re as A};
|
|
2
|
+
//# sourceMappingURL=agent-editor-form-CirqCpcM.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{i as x,cQ as A,j as n,L as d,b6 as u,b7 as m,e6 as C,cC as L}from"./index-B-Ab8srM.js";const b={slack:"Slack",telegram:"Telegram",whatsapp:"WhatsApp",discord:"Discord",gchat:"Google Chat",teams:"Microsoft Teams",web:"Web"};function h(e){return b[e]??null}function j(e){return e?e.kind==="automation"?`Ran ${e.automationName}`:e.platform==="web"?"Chatted in Lobu":`Replied on ${h(e.platform)??e.platform}`:"No activity yet"}function k({owner:e,item:s,last:p,appearance:g="row"}){const o=g==="inline",r=o?"inline-flex items-center gap-1.5 rounded-md bg-accent px-1.5 py-0.5 text-sm font-medium":x(A,!p&&"border-b");if(s.kind==="managed"){const t=s.agent,c=[t.lastActivity===void 0?null:j(t.lastActivity),t.connectionCount===void 0?null:`${t.connectionCount} ${t.connectionCount===1?"connection":"connections"}`,t.userCount===void 0?null:`${t.userCount} ${t.userCount===1?"user":"users"}`].filter(f=>!!f),l=n.jsx(L,{className:"h-4 w-4 text-muted-foreground"});return n.jsx(d,{to:"/$owner/agents/$agentId",params:{owner:e,agentId:t.agentId},className:r,children:o?n.jsxs(n.Fragment,{children:[l,t.name]}):n.jsx(u,{mark:l,name:t.name,details:n.jsx(m,{parts:c.length>0?c:[t.description]}),at:t.lastActivity?Date.parse(t.lastActivity.at):void 0})})}const a=s.group,i=n.jsx(C,{name:a.title});return n.jsx(d,{to:"/$owner/agents/connected/$clientId",params:{owner:e,clientId:a.clientId},className:r,children:o?n.jsxs(n.Fragment,{children:[i,a.title]}):n.jsx(u,{mark:i,name:a.title,details:n.jsx(m,{parts:[a.connected?"Connected app":"Disconnected",a.linkedUser,a.drivenBy&&a.drivenBy!==a.title?`via ${a.drivenBy}`:null]}),at:a.lastSeenAt})})}export{k as A,h as c};
|
|
2
|
+
//# sourceMappingURL=agent-list-row-SyACVYX7.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as e,S as s,i as n}from"./index-
|
|
2
|
-
//# sourceMappingURL=agent-loading-shells-
|
|
1
|
+
import{j as e,S as s,i as n}from"./index-B-Ab8srM.js";const r="mx-auto w-full max-w-3xl px-4",d="gap-4",i="ml-8 self-end max-w-[80%]",o="mr-8 max-w-[90%]",c="mx-auto w-full max-w-3xl shrink-0 border-t border-border/50 bg-transparent px-4 pb-4 pt-3";function f({rows:l=3}){return e.jsx("div",{className:"space-y-2",role:"status","aria-label":"Loading list",children:Array.from({length:l}).map((a,x)=>e.jsx(s,{className:"h-16 w-full rounded-lg"},x))})}function t({readOnly:l=!1}){return e.jsxs("div",{role:"status","aria-label":l?"Loading run history":"Loading chat",className:l?"flex min-h-[24rem] min-w-0 flex-1 flex-col":"flex min-h-0 flex-1 flex-col",children:[e.jsx("div",{className:l?"flex flex-1 flex-col overflow-hidden":"flex min-h-0 flex-1 flex-col overflow-hidden",children:e.jsxs("div",{className:n(r,"flex flex-1 flex-col overflow-hidden",d),children:[e.jsx("div",{className:i,children:e.jsx(s,{className:"h-12 w-48 rounded-lg"})}),e.jsx("div",{className:o,children:e.jsx(s,{className:n(l?"h-20":"h-16","w-64 rounded-lg")})}),e.jsx("div",{className:i,children:e.jsx(s,{className:"h-10 w-36 rounded-lg"})}),l?e.jsx("div",{className:o,children:e.jsx(s,{className:"h-16 w-52 rounded-lg"})}):null]})}),l?null:e.jsx("div",{className:c,children:e.jsx(s,{className:"h-24 w-full rounded-lg"})})]})}function h(){return e.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:e.jsx(t,{})})}function u(){return e.jsx("div",{className:"flex h-48 w-full items-end gap-2 px-2 pb-2",role:"status","aria-label":"Loading timeline",children:[40,65,45,80,55,70,50,85,60,75].map((l,a)=>e.jsx(s,{className:"flex-1 rounded-sm",style:{height:`${l}%`}},a))})}export{t as A,h as C,u as E,c as a,d as b,r as c,o as d,i as e,f};
|
|
2
|
+
//# sourceMappingURL=agent-loading-shells-DHvKiEUB.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as e,bX as B,i as A,a$ as D,b0 as R,b1 as K,go as Y,a6 as Z,bQ as G,bP as J,c0 as V,gp as ee,c1 as P,bB as F,c2 as se,bY as ne,c3 as te,bZ as re,r as k,gq as ae,gr as ie,bU as le,c4 as oe,L as T,gs as ce,gt as de,db as q,gu as ue,gv as me,gw as ge,gx as S,cY as L,X as fe,gy as z,gz as W,gk as xe,dc as he,gA as ye,gB as pe,c7 as be,gC as je}from"./index-B-Ab8srM.js";const ve={auto:"bg-emerald-500/15 text-emerald-600 dark:text-emerald-400",approval:"bg-amber-500/15 text-amber-600 dark:text-amber-400",deny:"bg-red-500/15 text-red-600 dark:text-red-400"};function Ne({options:n,value:t,floor:o,onChange:a,disabled:i,ariaLabel:m,compact:u}){return e.jsx("div",{role:"radiogroup","aria-label":m,className:A("inline-flex shrink-0 items-stretch gap-0.5 rounded-lg border border-border bg-muted/40 p-0.5"),children:n.map(l=>{const y=Y({option:l,floor:o}),h=l===t,g=y.disabled&&!h,p=B[l],f=e.jsx("button",{type:"button",role:"radio","aria-checked":h,disabled:i||g,onClick:()=>{!h&&!g&&!i&&a(l)},className:A("inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",u?"min-w-[3rem] rounded-md px-2.5 py-1.5 text-xs leading-none":"min-w-[3.25rem] rounded-md px-3 py-1.5 text-sm leading-none",h?A(ve[l],""):"text-muted-foreground hover:bg-background/60 hover:text-foreground",g&&"cursor-not-allowed opacity-40",i&&!g&&"cursor-not-allowed opacity-60"),children:p},l);return g&&y.reason?e.jsxs(D,{children:[e.jsx(R,{asChild:!0,children:e.jsx("span",{className:"inline-flex shrink-0",children:f})}),e.jsx(K,{children:y.reason})]},l):f})})}function Q({children:n,controls:t}){return e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-2 px-3 py-2",children:[e.jsx("div",{className:"min-w-40 flex-1 text-sm",children:n}),e.jsx("div",{className:"flex shrink-0 items-center gap-2",children:t})]})}const _e=[{resourceClass:"entity",title:"Entities",sub:"Defaults for every entity type."},{resourceClass:"agent_config",title:"Agents",sub:"Defaults for reading and managing agents."}];function ke(n,t,o,a,i=null){const m=z(n.floor,t,o,a,i),u=W(n.floor,t,o,a,i)?m:"auto";return(a!==null||i!==null)&&ye(n.agent,t,o)?pe(u,S(n,t,o,null)):u}function Ae({label:n,response:t,resourceClass:o,action:a,entityTypeSlug:i,targetAgentId:m=null,dimmed:u,pending:l,onSave:y}){const h=z(t.floor,o,a,i,m),g=W(t.floor,o,a,i,m),p=S(t,o,a,i,m),f=ke(t,o,a,i,m),j=be(o,a),b=e.jsx("div",{className:A("inline-flex shrink-0",u&&"opacity-45"),children:e.jsx(Ne,{options:j,value:p,floor:f,disabled:l,compact:!0,ariaLabel:n,onChange:y})});return g?e.jsxs(D,{children:[e.jsx(R,{asChild:!0,children:e.jsx("span",{className:"inline-flex shrink-0",children:b})}),e.jsxs(K,{children:["Org floor ",B[h]," — can only go stricter"]})]}):b}function Se(n,t){const o=i=>i.resource_class===t.resource_class&&(i.entity_type_slug??null)===(t.entity_type_slug??null)&&(i.operation_key??null)===(t.operation_key??null)&&(i.target_agent_id??null)===(t.target_agent_id??null),a=n.map(i=>o(i)?t:i);return a.some(o)?a:[...a,t]}function Ce(n,t,o,a,i,m){const u=je(n,t,o,a);return u[i]=m,u}const $="font-medium text-foreground hover:text-primary hover:underline";function Ee({type:n}){return e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(q,{icon:n.icon,className:"h-3.5 w-3.5 shrink-0"}),e.jsx("span",{className:"font-medium",children:n.name}),e.jsx("span",{className:"font-mono text-[10px] text-muted-foreground",children:n.slug})]})}function M({label:n,disabled:t,hint:o,searchPlaceholder:a,emptyText:i,children:m}){return t?e.jsxs("div",{className:"px-3 py-1.5 text-xs text-muted-foreground",children:[n,o?` ${o}`:""]}):e.jsx(xe,{contentClassName:"w-[min(100vw-2rem,22rem)]",searchPlaceholder:a,emptyText:i,trigger:u=>e.jsxs("button",{type:"button","aria-expanded":u,className:"flex w-full items-center gap-1.5 px-3 py-1.5 text-left text-xs text-primary hover:bg-muted/50",children:[e.jsx(he,{className:"h-3 w-3"}),n]}),children:u=>m(u)})}function we({pending:n,onClick:t,label:o}){return e.jsx("button",{type:"button",disabled:n,onClick:t,"aria-label":o,className:"rounded p-0.5 text-muted-foreground hover:bg-red-500/10 hover:text-red-600 disabled:opacity-50 dark:hover:text-red-400",children:e.jsx(fe,{className:"h-3 w-3"})})}function $e({owner:n,agentId:t,variant:o="agent"}){const a=o==="org-floor",i=Z(),m=G(n,t??"",{enabled:!a&&!!t}),u=J(n,{enabled:a}),{data:l,isLoading:y,isError:h,error:g}=a?u:m,p=a?V(n):ee(n,t??""),f=P({mutationFn:r=>a?se(n,r):ne(n,t??"",r),onSuccess:r=>{i.setQueryData(p,d=>d&&{...d,agent:Se(d.agent,r)}),i.invalidateQueries({queryKey:p}),a&&i.invalidateQueries({queryKey:["agent-permissions"]})},onError:r=>{F.error(r instanceof Error?r.message:"Failed to save permission")}}),j=P({mutationFn:r=>a?te(n,r):re(n,t??"",r),onSuccess:()=>{i.invalidateQueries({queryKey:p}),a&&i.invalidateQueries({queryKey:["agent-permissions"]})},onError:r=>{F.error(r instanceof Error?r.message:"Failed to remove override")}}),b=f.isPending||j.isPending,C=k.useMemo(()=>l?ae(l):[],[l]),E=k.useMemo(()=>{if(!l)return[];const r=new Set(C.map(d=>d.slug));return l.entity_types.filter(d=>!r.has(d.slug))},[l,C]),v=k.useMemo(()=>l?ie(l):[],[l]),N=k.useMemo(()=>{if(!l)return[];const r=new Set(v.map(d=>d.id));return l.agents.filter(d=>(a||d.id!==t)&&!r.has(d.id))},[l,v,t,a]);if(y)return e.jsx(le,{label:"permissions",variant:"cards",cards:2});if(h||!l)return e.jsx(oe,{label:g instanceof Error?g.message:"permissions"});const x=l,H=(r,d,w,_,s=null)=>{const c=Ce(x,r,d,s,w,_);f.mutate({resource_class:r,effects:c,entity_type_slug:d,target_agent_id:s})},I=x.entity_types.length===0?"— none yet":E.length===0?"— all covered":null,U=N.length===0&&v.length===0?"— no other agents":N.length===0?"— all covered":null;return e.jsxs("div",{className:"space-y-4",children:[a?null:e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Manage connector rules and agent restrictions in"," ",e.jsx(T,{to:"/$owner/settings/organization",params:{owner:n},search:{agent:t},hash:"policies",className:$,children:"Organization policies"}),"."]}),_e.map(r=>{const d=r.resourceClass==="entity",w=r.resourceClass==="agent_config",_=[{key:"default",label:"Default",name:"Default",entityTypeSlug:null,targetAgentId:null,owned:!1,diffs:0},...d?C.map(s=>({key:`entity:${s.slug}`,name:s.name,label:e.jsx(T,{to:"/$owner/entity-types/$slug",params:{owner:n,slug:s.slug},className:$,title:`Open ${s.name}`,children:e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx(q,{icon:s.icon,className:"h-3.5 w-3.5 shrink-0"}),s.name]})}),entityTypeSlug:s.slug,targetAgentId:null,owned:de(x,s.slug),diffs:ce(x,s.slug)})):v.map(s=>({key:`agent:${s.id}`,name:s.name,label:e.jsx(T,{to:"/$owner/agents/$agentId",params:{owner:n,agentId:s.id},className:$,title:`Open ${s.name}`,children:s.name}),entityTypeSlug:null,targetAgentId:s.id,owned:me(x,s.id),diffs:ue(x,s.id)}))];return e.jsxs("section",{className:"space-y-2",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("h3",{className:"text-sm font-medium",children:r.title}),e.jsx("p",{className:"text-xs text-muted-foreground",children:r.sub})]}),e.jsxs("div",{className:"divide-y overflow-hidden rounded-lg border",children:[_.map(s=>e.jsxs("div",{className:"divide-y",children:[_.length>1&&e.jsx("div",{className:"bg-muted/30",children:e.jsx(Q,{controls:s.owned?e.jsx(we,{pending:b,label:`Remove ${s.name} exception`,onClick:()=>j.mutate({resource_class:r.resourceClass,entity_type_slug:s.entityTypeSlug,target_agent_id:s.targetAgentId})}):null,children:e.jsxs("div",{className:"flex items-center gap-2",children:[s.label,s.key!=="default"&&!s.owned?e.jsx("span",{className:"text-xs text-muted-foreground",children:"Organization minimum"}):s.diffs>0?e.jsxs("span",{className:"text-xs text-muted-foreground",children:[s.diffs," ",s.diffs===1?"change":"changes"]}):null]})})}),e.jsx("div",{className:"divide-y",children:ge[r.resourceClass].filter(c=>!s.targetAgentId||c!=="create").map(c=>{const O=`${c.charAt(0).toUpperCase()+c.slice(1)} ${d?"entities":"agents"}`;return e.jsx(Q,{controls:e.jsx(Ae,{label:`${s.name}: ${O}`,response:x,resourceClass:r.resourceClass,action:c,entityTypeSlug:s.entityTypeSlug,targetAgentId:s.targetAgentId,dimmed:s.key!=="default"&&S(x,r.resourceClass,c,s.entityTypeSlug,s.targetAgentId)===S(x,r.resourceClass,c,null),pending:b,onSave:X=>H(r.resourceClass,s.entityTypeSlug,c,X,s.targetAgentId)}),children:O},c)})})]},s.key)),e.jsxs("div",{className:"border-t",children:[d?e.jsx(M,{label:"Add type",disabled:b||E.length===0,hint:I,searchPlaceholder:"Search types…",emptyText:"No matching types.",children:s=>E.map(c=>e.jsx(L,{value:`${c.name} ${c.slug}`,onSelect:()=>{f.mutate({resource_class:"entity",effects:{},entity_type_slug:c.slug}),s()},className:"cursor-pointer",children:e.jsx(Ee,{type:c})},c.slug))}):null,w?e.jsx(M,{label:"Add agent",disabled:b||N.length===0,hint:U,searchPlaceholder:"Search agents…",emptyText:"No matching agents.",children:s=>N.map(c=>e.jsxs(L,{value:`${c.name} ${c.id}`,onSelect:()=>{f.mutate({resource_class:"agent_config",effects:{},target_agent_id:c.id}),s()},className:"cursor-pointer",children:[e.jsx("span",{className:"font-medium",children:c.name}),e.jsx("span",{className:"ml-1.5 font-mono text-[10px] text-muted-foreground",children:c.id})]},c.id))}):null]})]})]},r.resourceClass)})]})}export{$e as A,Ne as P,Q as a};
|
|
2
|
+
//# sourceMappingURL=agent-permissions-matrix-Dsc26dyW.js.map
|