@lobu/runtime-server 24.11.1 → 24.12.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 +1113 -107
- package/dist/catalogs/skills.json +2 -2
- package/dist/component.json +1 -1
- package/dist/connectors/README.md +2 -2
- package/dist/connectors/chat-transport-actions.ts +50 -0
- package/dist/connectors/discord.ts +2 -0
- package/dist/connectors/gchat.ts +2 -0
- package/dist/connectors/github.ts +4 -4
- package/dist/connectors/google_drive.ts +20 -0
- package/dist/connectors/google_gmail.ts +49 -8
- package/dist/connectors/herdr.ts +1 -1
- package/dist/connectors/imessage.ts +1 -0
- package/dist/connectors/linkedin-browser-script.ts +11 -0
- package/dist/connectors/linkedin-draft-page.js +24 -8
- package/dist/connectors/linkedin-inbox-adapter.js +209 -19
- package/dist/connectors/linkedin-inbox.ts +152 -4
- package/dist/connectors/linkedin-network.ts +788 -0
- package/dist/connectors/linkedin-search.ts +1284 -0
- package/dist/connectors/linkedin.ts +892 -27
- package/dist/connectors/microsoft_outlook.ts +57 -19
- package/dist/connectors/rss.ts +179 -33
- package/dist/connectors/slack.ts +2 -0
- package/dist/connectors/source-file-attachment.ts +46 -0
- package/dist/connectors/teams.ts +2 -0
- package/dist/connectors/telegram.ts +2 -0
- package/dist/connectors/tiktok_web.ts +1 -1
- package/dist/connectors/whatsapp.ts +2 -0
- package/dist/connectors/whatsapp_web.ts +3 -3
- package/dist/connectors/x-dm-adapter.js +8 -10
- package/dist/connectors/x.ts +8 -9
- package/dist/db/migrations/20261115040000_account_two_factor.sql +20 -0
- package/dist/db/migrations/20261115130000_entities_retired_type_idx.sql +34 -0
- package/dist/db/migrations/20261115140000_entity_identities_personal_owner_idx.sql +34 -0
- package/dist/db/migrations/20261117090000_write_policy_kind_note.sql +65 -0
- package/dist/db/migrations/20261117120000_app_policy_principal.sql +48 -0
- package/dist/db/migrations/20261117170000_personal_org_connector_auto_policy_backfill.sql +57 -0
- package/dist/db/migrations/20261117190000_org_slug_reserved_paths.sql +29 -0
- package/dist/db/migrations/20261118120000_workspace_view_top_level_paths.sql +69 -0
- package/dist/db/migrations/preconditions/20261117190000_org_slug_reserved_paths.sql +14 -0
- package/dist/db/migrations/preconditions/20261118120000_workspace_view_top_level_paths.sql +21 -0
- package/dist/dependencies.bun.lock +51 -46
- package/dist/guest.bundle.js +11 -2
- package/dist/owletto/dist/assets/_-BC9j6MkU.js +2 -0
- package/dist/owletto/dist/assets/_-Z1u1cIe6.js +3 -0
- package/dist/owletto/dist/assets/_agentId-B-TFq9TP.js +2 -0
- package/dist/owletto/dist/assets/{_agentId-CGScf8z_.js → _agentId-BGatZWsd.js} +2 -2
- package/dist/owletto/dist/assets/_automationId-CMUrWPvr.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey._connectionId-CUoAoP0_.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey.index-Bs49QGGH.js +2 -0
- package/dist/owletto/dist/assets/_conversationId-CszP1den.js +2 -0
- package/dist/owletto/dist/assets/_eventId-C0AZUBnD.js +2 -0
- package/dist/owletto/dist/assets/_owner-B4ydA75k.js +3 -0
- package/dist/owletto/dist/assets/_shape-C4-ikE70.js +2 -0
- package/dist/owletto/dist/assets/_slug-DE5J3KVu.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-Dkcd8JQC.js +2 -0
- package/dist/owletto/dist/assets/{accept-invitation-BKeIzZXE.js → accept-invitation-DmrQQu_W.js} +2 -2
- package/dist/owletto/dist/assets/{activity-route-location-sLvKaSCa.js → activity-route-location-Bec6fW-t.js} +2 -2
- package/dist/owletto/dist/assets/activity-route-view-DCSNBKZU.js +2 -0
- package/dist/owletto/dist/assets/agent-client-connections-xvabPpi6.js +4 -0
- package/dist/owletto/dist/assets/agent-connect-pages-DDPtkcmq.js +6 -0
- package/dist/owletto/dist/assets/{agent-editor-form-DVFyyMyd.js → agent-editor-form-BrhQbHZg.js} +2 -2
- package/dist/owletto/dist/assets/{agent-loading-shells-BLNHIy-r.js → agent-loading-shells-D3y98xuO.js} +2 -2
- package/dist/owletto/dist/assets/{agent-permissions-matrix-UBKRR5vs.js → agent-permissions-matrix-jQJjSa9i.js} +2 -2
- package/dist/owletto/dist/assets/{agent-skill-context-fqedKd0D.js → agent-skill-context-CCcknBYE.js} +2 -2
- package/dist/owletto/dist/assets/{agent-subpage-shell-BUCoY2Nf.js → agent-subpage-shell-6f_53cSf.js} +2 -2
- package/dist/owletto/dist/assets/agent-thread-v_lSSnJi.js +6 -0
- package/dist/owletto/dist/assets/{app._appId-ByIypCL9.js → app._appId-CKWzZ2ic.js} +2 -2
- package/dist/owletto/dist/assets/assist-composer-Q9ZJjAta.js +2 -0
- package/dist/owletto/dist/assets/automation-run-now-Dl0MKx3N.js +2 -0
- package/dist/owletto/dist/assets/{callback-Pz5uS-k7.js → callback-Bentv78L.js} +2 -2
- package/dist/owletto/dist/assets/{card-CAPpY9P5.js → card-C4oPCVh6.js} +2 -2
- package/dist/owletto/dist/assets/{claim-DgWWK0KI.js → claim-B3C4qIi2.js} +2 -2
- package/dist/owletto/dist/assets/client-activity-scopes-DqaFEyir.js +2 -0
- package/dist/owletto/dist/assets/{client-rows-Dd5YV8vn.js → client-rows-rse9thnk.js} +2 -2
- package/dist/owletto/dist/assets/{clients-Bf7ZgGro.js → clients-BhPMbxHi.js} +2 -2
- package/dist/owletto/dist/assets/{code-editor-z1Sy_hiX.js → code-editor-CTdKUDPY.js} +2 -2
- package/dist/owletto/dist/assets/connect-D8o7HBlo.js +2 -0
- package/dist/owletto/dist/assets/connect-menu-D5EZvSHb.js +2 -0
- package/dist/owletto/dist/assets/connect._clientId-Dbagcg9L.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId-DALW9S2K.js +2 -0
- package/dist/owletto/dist/assets/connection-DyxzSqVE.js +2 -0
- package/dist/owletto/dist/assets/connection-feed-detail-LqpxUCdy.js +2 -0
- package/dist/owletto/dist/assets/{connector-page-shell-an3SYLim.js → connector-page-shell-DZjKv9zQ.js} +2 -2
- package/dist/owletto/dist/assets/{connector-provenance-mSZCOud-.js → connector-provenance-DtTJn1Nk.js} +2 -2
- package/dist/owletto/dist/assets/connectors-BVl-AR33.js +2 -0
- package/dist/owletto/dist/assets/{consent-1ulwyJ3k.js → consent-XCqsHLxS.js} +2 -2
- package/dist/owletto/dist/assets/{core.esm-Ctg_pXLe.js → core.esm-B1du4Zwy.js} +3 -3
- package/dist/owletto/dist/assets/create-BYKCtGL4.js +2 -0
- package/dist/owletto/dist/assets/create-D6Mmuxcq.js +2 -0
- package/dist/owletto/dist/assets/{create-CGuoqPh8.js → create-GHTb6wKX.js} +2 -2
- package/dist/owletto/dist/assets/{create-automation-form-CD6jSlWL.js → create-automation-form-CTiy_S9G.js} +3 -3
- package/dist/owletto/dist/assets/create._connectorKey-DMH97KkK.js +2 -0
- package/dist/owletto/dist/assets/custom-guardrail-edits-DZy66ucV.js +2 -0
- package/dist/owletto/dist/assets/definition-comparison-C2mPfIMD.js +2 -0
- package/dist/owletto/dist/assets/detail-page-skeleton-DNBL7nyk.js +2 -0
- package/dist/owletto/dist/assets/device-CwP1PY8q.js +2 -0
- package/dist/owletto/dist/assets/{device-pin-tombstone-Dkj7hrBE.js → device-pin-tombstone-DYTt7kU5.js} +2 -2
- package/dist/owletto/dist/assets/device._deviceId-DZ2kqI4Y.js +2 -0
- package/dist/owletto/dist/assets/{entity-options-D4t-NAcg.js → entity-options-D9K_5Lcs.js} +2 -2
- package/dist/owletto/dist/assets/entity-page-DggKXrcE.js +2 -0
- package/dist/owletto/dist/assets/entity-pages-C6M6yKFf.js +2 -0
- package/dist/owletto/dist/assets/{entity-schema-graph-Cq96SJ3c.js → entity-schema-graph-B255NKjF.js} +2 -2
- package/dist/owletto/dist/assets/entity-type-page-CGBAP2wt.js +2 -0
- package/dist/owletto/dist/assets/event-attachments-D8Z8uwv9.js +2 -0
- package/dist/owletto/dist/assets/event-detail-CgG3pDLA.js +2 -0
- package/dist/owletto/dist/assets/events-feed-ClhEywwV.js +2 -0
- package/dist/owletto/dist/assets/{filter-editors-DGVl9U4D.js → filter-editors-D_Sfn0dv.js} +3 -3
- package/dist/owletto/dist/assets/{full-page-spinner-CtVlF8GQ.js → full-page-spinner-C1clibUY.js} +2 -2
- package/dist/owletto/dist/assets/{index-CK5GDX4B.js → index-04B26s6E.js} +2 -2
- package/dist/owletto/dist/assets/index-2HrEO-nl.js +2 -0
- package/dist/owletto/dist/assets/index-BU3k9wpw.js +2 -0
- package/dist/owletto/dist/assets/{index-DvuJ_S_o.js → index-BXHqp23o.js} +2 -2
- package/dist/owletto/dist/assets/index-BdLRUDIR.js +2 -0
- package/dist/owletto/dist/assets/index-C2FrGwYN.js +2 -0
- package/dist/owletto/dist/assets/index-CB9wGfUm.js +2 -0
- package/dist/owletto/dist/assets/index-Caihaftb.js +2 -0
- package/dist/owletto/dist/assets/index-CwH59DJV.js +2 -0
- package/dist/owletto/dist/assets/index-DB2lVKuV.js +7908 -0
- package/dist/owletto/dist/assets/{index-DbjbHlDe.js → index-DTvJRjrM.js} +2 -2
- package/dist/owletto/dist/assets/index-SF2ni1Rs.css +1 -0
- package/dist/owletto/dist/assets/{index-BifR-LE9.js → index-mSrdbx3C.js} +9 -9
- package/dist/owletto/dist/assets/index-uFn-Ilrx.js +2 -0
- package/dist/owletto/dist/assets/{json-diff-OjtREegr.js → json-diff-Ce6YAXzY.js} +2 -2
- package/dist/owletto/dist/assets/{list-skeleton-CH0qQBYk.js → list-skeleton-DLPBTnbR.js} +2 -2
- package/dist/owletto/dist/assets/login-DeWlvogD.js +2 -0
- package/dist/owletto/dist/assets/{logout-DfdgOLoM.js → logout-CJY0ceN9.js} +2 -2
- package/dist/owletto/dist/assets/{member-scope-gate-Cxg2zGQT.js → member-scope-gate-CBPMprXu.js} +2 -2
- package/dist/owletto/dist/assets/memory-browse-page-D5kj1RaR.js +74 -0
- package/dist/owletto/dist/assets/{model-selector-D2OpDkwH.js → model-selector-CjkBPpjN.js} +2 -2
- package/dist/owletto/dist/assets/new-BKrNkOQD.js +2 -0
- package/dist/owletto/dist/assets/new-BetiMuDq.js +2 -0
- package/dist/owletto/dist/assets/new-dk_-eXqU.js +2 -0
- package/dist/owletto/dist/assets/new-efN--4Wx.js +2 -0
- package/dist/owletto/dist/assets/organization-C3rpwx_d.js +2 -0
- package/dist/owletto/dist/assets/pdf-document--AN-oCKj.css +1 -0
- package/dist/owletto/dist/assets/pdf-document-2W1q0sRA.js +56 -0
- package/dist/owletto/dist/assets/pdf.worker.min-CIqJB0yW.mjs +28 -0
- package/dist/owletto/dist/assets/peek-pane-content-ChsBWO0P.js +3 -0
- package/dist/owletto/dist/assets/{pending-seed-BBACroge.js → pending-seed-CTKYdA4X.js} +2 -2
- package/dist/owletto/dist/assets/proposal-review-shell-EyGWEYwQ.js +2 -0
- package/dist/owletto/dist/assets/public-shell-ready-_KWdfzEM.js +2 -0
- package/dist/owletto/dist/assets/record-session-D27VNxP_.js +2 -0
- package/dist/owletto/dist/assets/{renderer-CTKNMcXP.js → renderer-B8yZ5lql.js} +34 -33
- package/dist/owletto/dist/assets/{reset-password-DKBEneyR.js → reset-password-BGVJIh2I.js} +2 -2
- package/dist/owletto/dist/assets/run-initiator-C0sur8lU.js +2 -0
- package/dist/owletto/dist/assets/runs-list-CJOFMgpk.js +2 -0
- package/dist/owletto/dist/assets/schema-value-DDNHANGs.js +3 -0
- package/dist/owletto/dist/assets/{scoped-feed-bar-DNFL0sYX.js → scoped-feed-bar-BTv9mPcR.js} +2 -2
- package/dist/owletto/dist/assets/settings-Ponr5XbS.js +3 -0
- package/dist/owletto/dist/assets/{status-variants-SzXYYedJ.js → status-variants-mLqVhg5O.js} +2 -2
- package/dist/owletto/dist/assets/subDays-BGA_fkig.js +2 -0
- package/dist/owletto/dist/assets/two-factor-pqoxGSgL.js +2 -0
- package/dist/owletto/dist/assets/{use-automations-DfBtVzGa.js → use-automations-DcdlmVuX.js} +2 -2
- package/dist/owletto/dist/assets/{use-login-redirect-BDiS3eyl.js → use-login-redirect-D7HW5Ed6.js} +2 -2
- package/dist/owletto/dist/assets/{use-mention-search-khySpz_V.js → use-mention-search-BniE-K2d.js} +3 -3
- package/dist/owletto/dist/assets/view-card-Cg6PeEiV.js +2 -0
- package/dist/owletto/dist/assets/view-param-filters-CvrKw0mZ.js +2 -0
- package/dist/owletto/dist/index.html +2 -2
- package/dist/server-main.bundle.mjs +5718 -2991
- package/npm-shrinkwrap.json +195 -172
- package/package.json +2 -1
- package/vendor/connector-sdk/dist/connector-types.d.ts +20 -0
- package/vendor/connector-sdk/dist/define-connector.js +2 -0
- package/vendor/connector-sdk/dist/extension-dom-scrape.d.ts +2 -0
- package/vendor/connector-sdk/dist/extension-dom-scrape.js +5 -0
- package/vendor/connector-sdk/dist/reaction-client-types.d.ts +20 -0
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/core/dist/contracts/entity-reference.d.ts +2 -0
- package/vendor/core/dist/contracts/entity-reference.js +4 -3
- package/vendor/core/dist/contracts/tools/entity-list-sort.d.ts +18 -0
- package/vendor/core/dist/contracts/tools/entity-list-sort.js +64 -0
- package/vendor/core/dist/contracts/tools/manage-agents.d.ts +1 -1
- package/vendor/core/dist/contracts/tools/manage-agents.js +3 -3
- package/vendor/core/dist/contracts/tools/manage-entity-schema.d.ts +4 -0
- package/vendor/core/dist/contracts/tools/manage-entity-schema.js +4 -0
- package/vendor/core/dist/contracts/tools/manage-entity.d.ts +4 -0
- package/vendor/core/dist/contracts/tools/manage-entity.js +11 -1
- package/vendor/core/dist/contracts/tools/manage-operations.d.ts +29 -3
- package/vendor/core/dist/contracts/tools/manage-operations.js +24 -2
- package/vendor/core/dist/contracts/tools/manage-views.d.ts +36 -0
- package/vendor/core/dist/contracts/tools/manage-views.js +15 -2
- package/vendor/core/dist/contracts/tools/view-definition.js +7 -2
- package/vendor/core/dist/contracts/tools/view-host.js +5 -0
- package/vendor/core/dist/contracts/tools/view-path.d.ts +8 -1
- package/vendor/core/dist/contracts/tools/view-path.js +11 -1
- package/vendor/core/dist/reserved.d.ts +7 -1
- package/vendor/core/dist/reserved.js +17 -0
- package/vendor/core/package.json +6 -1
- package/vendor/views/dist/api.d.ts +19 -3
- package/vendor/views/dist/api.js +53 -5
- package/vendor/views/dist/components.d.ts +7 -0
- package/vendor/views/dist/components.js +223 -2
- package/vendor/views/dist/embed.js +13 -2
- package/vendor/views/dist/live-gate.d.ts +34 -0
- package/vendor/views/dist/live-gate.js +100 -0
- package/vendor/views/dist/native.d.ts +43 -1
- package/vendor/views/dist/native.js +1 -0
- package/vendor/views/package.json +1 -1
- package/dist/owletto/dist/assets/_-BDMUN9XZ.js +0 -2
- package/dist/owletto/dist/assets/_-CF5X4ANe.js +0 -3
- package/dist/owletto/dist/assets/_agentId-EQU2aUP0.js +0 -2
- package/dist/owletto/dist/assets/_automationId-PXZ33jsF.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey._connectionId-DcI29kGy.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey.index-Cr2NDJWX.js +0 -2
- package/dist/owletto/dist/assets/_conversationId-CnmLYlVS.js +0 -2
- package/dist/owletto/dist/assets/_eventId-w5sDz5oa.js +0 -2
- package/dist/owletto/dist/assets/_owner-CkOZR4n0.js +0 -3
- package/dist/owletto/dist/assets/_shape-C_FmSf9G.js +0 -2
- package/dist/owletto/dist/assets/_slug-COPpRXLt.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-BVdJiilV.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-mxxpqjtC.js +0 -2
- package/dist/owletto/dist/assets/activity-route-view-msesKUwn.js +0 -2
- package/dist/owletto/dist/assets/agent-connect-pages-DVq9nAR7.js +0 -4
- package/dist/owletto/dist/assets/agent-thread-Cqf9ITrT.js +0 -6
- package/dist/owletto/dist/assets/assist-composer-kG_heHXo.js +0 -2
- package/dist/owletto/dist/assets/automation-run-now-C5XTS00o.js +0 -2
- package/dist/owletto/dist/assets/client-activity-scopes-Aqdo6Pdr.js +0 -2
- package/dist/owletto/dist/assets/connect-BFNp1y_s.js +0 -2
- package/dist/owletto/dist/assets/connect-menu-BWrAhMqO.js +0 -2
- package/dist/owletto/dist/assets/connect._clientId-CSPfwYIN.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId-CuOeHafK.js +0 -2
- package/dist/owletto/dist/assets/connection-CVeHmDLs.js +0 -2
- package/dist/owletto/dist/assets/connection-feed-detail-BYo7zdVD.js +0 -2
- package/dist/owletto/dist/assets/connectors-DBEM9QQz.js +0 -2
- package/dist/owletto/dist/assets/copy-button-Xhh7ZnjO.js +0 -2
- package/dist/owletto/dist/assets/create-Ccb5R-S4.js +0 -2
- package/dist/owletto/dist/assets/create-DmhbacIa.js +0 -2
- package/dist/owletto/dist/assets/create._connectorKey-CZsAqj1p.js +0 -2
- package/dist/owletto/dist/assets/custom-guardrail-edits-Ce_BwiwD.js +0 -2
- package/dist/owletto/dist/assets/definition-comparison-D_qP25jR.js +0 -2
- package/dist/owletto/dist/assets/detail-page-skeleton-CPAfZLG0.js +0 -2
- package/dist/owletto/dist/assets/device-DDl5XKvt.js +0 -2
- package/dist/owletto/dist/assets/device._deviceId-bNhTcops.js +0 -2
- package/dist/owletto/dist/assets/dynamic-schema-form-CRyUchXo.js +0 -2
- package/dist/owletto/dist/assets/entity-page-BOOL_vy3.js +0 -2
- package/dist/owletto/dist/assets/entity-pages-_nuesgnp.js +0 -2
- package/dist/owletto/dist/assets/entity-type-page-CkCSbkBx.js +0 -2
- package/dist/owletto/dist/assets/event-detail-DUvlqn9b.js +0 -2
- package/dist/owletto/dist/assets/events-feed-DcKTkJVe.js +0 -2
- package/dist/owletto/dist/assets/index-BUlkNJzX.js +0 -2
- package/dist/owletto/dist/assets/index-BoqrvLHQ.js +0 -7906
- package/dist/owletto/dist/assets/index-CA9mW_ZM.js +0 -2
- package/dist/owletto/dist/assets/index-CH0GzG4i.js +0 -2
- package/dist/owletto/dist/assets/index-CtI5Eomq.js +0 -2
- package/dist/owletto/dist/assets/index-DmtQ0bds.js +0 -2
- package/dist/owletto/dist/assets/index-Du_J8hnx.js +0 -2
- package/dist/owletto/dist/assets/index-Pae_f9LM.css +0 -1
- package/dist/owletto/dist/assets/index-XETZnN7L.js +0 -2
- package/dist/owletto/dist/assets/login-DG0b9uSC.js +0 -2
- package/dist/owletto/dist/assets/memory-browse-page-qEDQ9Z18.js +0 -74
- package/dist/owletto/dist/assets/missing-view-xT0B-f5z.js +0 -2
- package/dist/owletto/dist/assets/needs-you-list-3uMsWcDv.js +0 -2
- package/dist/owletto/dist/assets/new-AdGV6a8R.js +0 -2
- package/dist/owletto/dist/assets/new-BdtIhBpo.js +0 -2
- package/dist/owletto/dist/assets/new-BjGwX6s6.js +0 -2
- package/dist/owletto/dist/assets/new-D-iMjV74.js +0 -2
- package/dist/owletto/dist/assets/organization-qaIpEiQg.js +0 -2
- package/dist/owletto/dist/assets/peek-pane-content-CEsDVScl.js +0 -2
- package/dist/owletto/dist/assets/proposal-review-shell-C8ZfIAYn.js +0 -2
- package/dist/owletto/dist/assets/public-shell-ready-K2R8iXSI.js +0 -2
- package/dist/owletto/dist/assets/record-session-BrM9cdXu.js +0 -2
- package/dist/owletto/dist/assets/run-initiator-BKSgI1o0.js +0 -2
- package/dist/owletto/dist/assets/runs-k2NpbZm8.js +0 -2
- package/dist/owletto/dist/assets/runs-list-DUXRMkWN.js +0 -2
- package/dist/owletto/dist/assets/schema-value-wjqGxXhv.js +0 -3
- package/dist/owletto/dist/assets/settings-V0m5Om5j.js +0 -2
- package/dist/owletto/dist/assets/source-record-panels-BMut9YIA.js +0 -2
- package/dist/owletto/dist/assets/subDays-9s9OEl5t.js +0 -2
- package/dist/owletto/dist/assets/table-ZuYMOjVR.js +0 -2
- package/dist/owletto/dist/assets/view-card-DiHWlypr.js +0 -2
- package/dist/owletto/dist/assets/view-param-filters-DGKxSr7r.js +0 -2
- package/dist/owletto/dist/assets/views-access-required-HA-PiOwA.js +0 -2
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/peek-pane-content-ChsBWO0P.js","assets/index-DB2lVKuV.js","assets/index-SF2ni1Rs.css","assets/agent-client-connections-xvabPpi6.js","assets/clients-BhPMbxHi.js","assets/client-rows-rse9thnk.js","assets/automation-run-now-Dl0MKx3N.js","assets/event-detail-CgG3pDLA.js","assets/events-feed-ClhEywwV.js","assets/event-attachments-D8Z8uwv9.js","assets/definition-comparison-C2mPfIMD.js","assets/json-diff-Ce6YAXzY.js","assets/code-editor-CTdKUDPY.js","assets/index-Vcq4gwWv.js","assets/schema-value-DDNHANGs.js","assets/run-initiator-C0sur8lU.js","assets/list-skeleton-DLPBTnbR.js","assets/subDays-BGA_fkig.js","assets/use-automations-DcdlmVuX.js","assets/renderer-B8yZ5lql.js","assets/card-C4oPCVh6.js","assets/device-automation-Dp3faMvp.js","assets/view-param-filters-CvrKw0mZ.js","assets/app-bridge-B-L0rGz9.js","assets/filter-editors-D_Sfn0dv.js","assets/scoped-feed-bar-BTv9mPcR.js","assets/event-kind-options-fHAIXu24.js","assets/create-automation-form-CTiy_S9G.js","assets/entity-options-D9K_5Lcs.js","assets/model-selector-CjkBPpjN.js","assets/skill-editor-D_W3QlRz.js","assets/use-mention-search-BniE-K2d.js","assets/proposal-review-shell-EyGWEYwQ.js","assets/runs-list-CJOFMgpk.js","assets/agent-loading-shells-D3y98xuO.js","assets/agent-thread-v_lSSnJi.js","assets/pending-seed-CTKYdA4X.js","assets/connection-feed-detail-LqpxUCdy.js","assets/status-variants-mLqVhg5O.js","assets/feed-event-kinds-BYuZCoU4.js","assets/connect-menu-D5EZvSHb.js","assets/view-card-Cg6PeEiV.js","assets/activity-route-location-Bec6fW-t.js","assets/client-activity-scopes-DqaFEyir.js","assets/member-scope-gate-CBPMprXu.js","assets/entity-type-page-CGBAP2wt.js","assets/index-Caihaftb.js","assets/entity-pages-C6M6yKFf.js","assets/record-session-D27VNxP_.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{p as v,j as e,r as g,C as D,L as b,u as E,a as R,b as z,c as K,d as _,D as $,e as L,f as O,g as T,h as q,i as y,B as x,k as B,S as F,M as U,l as W,A as M,X as Q,m as H,_ as G,n as k,o as J,q as V,s as Y,t as X,v as Z,w as ee,x as te,y as ne,z as ae,E as se,F as I,G as A,R as re,H as ie,I as oe,J as le,K as ue,N as ce,O as de}from"./index-DB2lVKuV.js";import{R as fe}from"./record-session-D27VNxP_.js";import{u as me}from"./use-automations-DcdlmVuX.js";import{u as xe}from"./clients-BhPMbxHi.js";import{u as he,a as pe}from"./event-attachments-D8Z8uwv9.js";function S({item:t}){const n=t.href?v(t.href):null;if(!n||n.kind==="event"||n.kind==="event-file"||n.kind==="automation"&&!("runId"in n&&n.runId!=null))return null;const a=n.owner,s=n.kind==="automation"?n.automationId:t.sourceAttribution?.automation_id??null,r=t.sourceAttribution,i=[{label:a,to:"/$owner",params:{owner:a}}];return r?.agent_id&&r.agent_name&&i.push({label:r.agent_name,to:"/$owner/agents/$agentId",params:{owner:a,agentId:r.agent_id}}),s!=null&&i.push({label:r?.automation_name??"Automation",to:"/$owner/automations/$automationId",params:{owner:a,automationId:String(s)}}),(n.kind==="memory"||n.kind==="automation")&&"runId"in n&&n.runId!=null?i.push({label:"Run details"}):n.kind==="memory"&&"contentIds"in n&&i.push({label:"Details"}),i.length<2?null:e.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:i.map((o,l)=>{const d=l===i.length-1,f=e.jsx("span",{className:d?"truncate font-medium text-foreground":"whitespace-nowrap",children:o.label});return e.jsxs(g.Fragment,{children:[l>0?e.jsx(D,{className:"h-3 w-3 shrink-0","aria-hidden":"true"}):null,o.to&&!d?e.jsx(b,{to:o.to,params:o.params,className:"whitespace-nowrap transition-colors hover:text-foreground",children:o.label}):f]},o.to??o.label)})})}const ge=H(async()=>({default:(await G(async()=>{const{PeekPaneContent:t}=await import("./peek-pane-content-ChsBWO0P.js");return{PeekPaneContent:t}},__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]))).PeekPaneContent}));function ve(){return e.jsxs("div",{"data-testid":"peek-pane-body-loading",className:"space-y-3 p-4",children:[e.jsx(k,{className:"h-5 w-2/3"}),e.jsx(k,{className:"h-4 w-full"}),e.jsx(k,{className:"h-24 w-full rounded-lg"})]})}const we=460,ye=480;function ke({children:t}){const n=g.useRef(null),a=E(),s=R(),r=z(n,we+ye),i=!s&&r&&a?.item!=null;return e.jsxs("div",{ref:n,className:"relative flex min-h-0 flex-1 flex-row",children:[e.jsx("div",{inert:i,className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto",children:t}),e.jsx(je,{covers:i})]})}function je({covers:t=!1}){const n=E(),a=R();return n?.item?e.jsx(Ee,{item:n.item,onClose:n.close,onBack:n.back,isNarrow:a,covers:t}):null}function j({item:t,children:n}){const a=t.href?v(t.href):null;return a?.kind==="automation"&&a.runId==null&&!t.runId?e.jsx(Pe,{owner:a.owner,automationId:a.automationId,fallback:t.title,children:n}):a?.kind==="agent"?e.jsx(Ce,{agentId:a.agentId,clientIds:a.clientIds,fallback:t.title,children:n}):a?.kind==="event"?e.jsx(Ie,{owner:a.owner,eventId:a.eventId,fallback:t.title,children:n}):a?.kind==="event-file"?e.jsx(be,{owner:a.owner,eventId:a.eventId,fileKey:a.fileKey,fallback:t.title,children:n}):e.jsx(Ne,{item:t,children:n})}function be({owner:t,eventId:n,fileKey:a,fallback:s,children:r}){const{attachment:i}=pe(t,n,a);return r({title:i?.name??s,status:null})}function Ie({owner:t,eventId:n,fallback:a,children:s}){const{event:r}=he(t,n);return s({title:r?Z(r):a,status:null})}function Ne({item:t,children:n}){const a=t.href?v(t.href):null,s=a?.kind==="record-view"?a.viewKey:null,r=a?.kind==="entity-type"?a:null,i=r?.typeSlug??null,o=ee({slug:s?a?.owner:void 0}),{data:l}=te(i?a?.owner??null:null),d=i?l?.find(f=>f.slug===i)?.name:void 0;return n({title:s&&o.data?.find(f=>f.key===s)?.name||d&&(r?.view==="activity"?`${d} activity`:d)||t.title,status:null})}function Pe({owner:t,automationId:n,fallback:a,children:s}){const{org:r}=J(t),{data:i}=me(r?.id,void 0,{includeDetails:!1}),o=i?.find(l=>l.automation_id===n);return s({title:o?.name?.trim()||a,status:o?V(Y(o),Date.now()):null})}function Ce({agentId:t,clientIds:n,fallback:a,children:s}){const r=X({enabled:!!t}),i=xe(null,{enabled:!t&&!!n?.length}),o=t?r.data?.find(l=>l.agentId===t)?.name:i.data?.find(l=>n?.includes(l.id))?.title;return s({title:o?.trim()||a,status:null})}function Se(t){const n=t.connectorPanel;if(n?.connectionId!=null)return{label:"Settings",pathname:`/${n.ownerSlug}/connectors/${encodeURIComponent(n.connectorKey)}/${n.connectionId}`,search:{settings:!0}};const a=t.href?v(t.href):null;if(a?.kind==="automation"&&a.runId==null&&!t.runId)return{label:"Edit",pathname:`/${a.owner}/automations/${encodeURIComponent(a.automationId)}`,search:{view:"definition"}};if(a?.kind==="agent"&&a.owner!=="me"){if(a.agentId)return{label:"Agent settings",pathname:`/${a.owner}/agents/${encodeURIComponent(a.agentId)}`};const s=a.clientIds?.[0];if(s)return{label:"Agent settings",pathname:`/${a.owner}/agents/connected/${encodeURIComponent(s)}`}}return null}function Ee({item:t,onClose:n,onBack:a,isNarrow:s,covers:r}){const i=K(),o=t.href?v(t.href):null,l=o?.kind==="event-file"?`${o.eventId}/${o.fileKey}`:null,d=l!==null,[f,N]=g.useState(null),m=d&&f===l,p=d?null:_(t),h=Se(t);g.useEffect(()=>{if(s)return;const c=u=>{u.defaultPrevented||u.key!=="Escape"||(u.preventDefault(),m?N(null):n())};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[n,s,m]);const P=c=>e.jsxs("div",{className:"flex min-h-11 shrink-0 items-center gap-1 border-b border-border px-3 py-1.5",children:[a||c?e.jsx(x,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0 text-muted-foreground hover:text-foreground","aria-label":"Back",onClick:a??(()=>void n()),children:e.jsx(B,{className:"h-4 w-4"})}):null,e.jsx(j,{item:t,children:({title:u,status:w})=>e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:u}),w?e.jsx("p",{title:w.text,className:y("truncate text-xs",w.problem?"text-destructive":"text-muted-foreground"),children:w.text}):null]})}),h?e.jsx(x,{asChild:!0,variant:"ghost",size:"sm",className:"h-7 shrink-0 gap-1.5 px-2 text-xs text-muted-foreground hover:text-foreground",children:e.jsxs(b,{to:h.pathname,search:h.search??{},onClick:u=>{u.button!==0||u.metaKey||u.ctrlKey||u.shiftKey||u.altKey||(u.preventDefault(),(async()=>await n()&&await i({to:h.pathname,search:h.search??{}}))())},children:[e.jsx(F,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),h.label]})}):null,d&&!c?e.jsx(x,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0 text-muted-foreground hover:text-foreground","aria-label":m?"Back to side panel":"Pop out","aria-pressed":m,onClick:()=>N(m?null:l),children:m?e.jsx(U,{className:"h-4 w-4"}):e.jsx(W,{className:"h-4 w-4"})}):null,p?e.jsx(x,{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:e.jsx(b,{to:p.pathname,search:p.search??{},onClick:u=>{u.button!==0||u.metaKey||u.ctrlKey||u.shiftKey||u.altKey||(u.preventDefault(),(async()=>await n()&&await i({to:p.pathname,search:p.search??{}}))())},children:e.jsx(M,{className:"h-4 w-4"})})}):null,e.jsx(x,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0 text-muted-foreground hover:text-foreground","aria-label":"Close preview",onClick:()=>void n(),children:e.jsx(Q,{className:"h-4 w-4"})})]}),C=e.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:e.jsx(g.Suspense,{fallback:e.jsx(ve,{}),children:e.jsx(j,{item:t,children:({title:c})=>e.jsx(ge,{item:c===t.title?t:{...t,title:c}})})})});return s?e.jsx($,{open:!0,onOpenChange:c=>{c||n()},children:e.jsxs(L,{children:[e.jsx(O,{className:"fixed inset-0 z-40 bg-black/60 data-[state=open]:animate-in data-[state=open]:fade-in-0"}),e.jsxs(T,{"aria-describedby":void 0,className:y("fixed inset-y-0 right-0 z-50 flex w-full flex-col bg-background outline-none data-[state=open]:animate-in data-[state=open]:slide-in-from-right",d?"left-0":"max-w-[460px] border-l border-border"),children:[e.jsx(q,{className:"sr-only",children:e.jsx(j,{item:t,children:({title:c})=>c})}),P(!0),e.jsx(S,{item:t}),C]})]})}):e.jsxs("aside",{className:y("flex flex-col bg-background",m?"fixed inset-0 z-50 w-full":r?"absolute inset-0 z-30 w-full border-l border-border":"w-[460px] max-w-[45vw] shrink-0 border-l border-border"),children:[P(!1),e.jsx(S,{item:t}),C]})}function Re({active:t,owner:n,userId:a,children:s}){const r=ne({queryKey:["workspace-invitation",a,n],enabled:t&&!!a,retry:!1,queryFn:async()=>{const i=await I.organization.listUserInvitations();if(i.error)throw new Error(i.error.message||"Could not check invitations.");for(const o of i.data??[]){if(o.status!=="pending"||new Date(o.expiresAt).getTime()<=Date.now())continue;const l=await I.organization.getInvitation({query:{id:o.id}});if(l.error){if([400,403,404].includes(l.error.status))continue;throw new Error(l.error.message||"Could not check invitations.")}if(l.data.organizationSlug===n)return l.data}return null}});return t?r.isPending?e.jsx("p",{role:"status",className:"py-12 text-center text-sm text-muted-foreground",children:"Checking your invitation…"}):r.isError?e.jsxs("div",{className:"flex flex-col items-center gap-3 px-4 py-12 text-center",children:[e.jsx("p",{role:"alert",className:"text-sm text-muted-foreground",children:"Your invitations could not be checked."}),e.jsx(x,{variant:"outline",onClick:()=>void r.refetch(),children:"Try again"})]}):r.data?e.jsx(Ae,{owner:n,invitation:r.data},r.data.id):s:s}function Ae({owner:t,invitation:n}){const a=ae(),s=se({mutationFn:async()=>{const r=await I.organization.acceptInvitation({invitationId:n.id});if(r.error)throw new Error(r.error.message||"Could not accept the invitation.");await Promise.all([a.invalidateQueries({queryKey:["organizations"]}),a.invalidateQueries({queryKey:A.queryOptions(t,{slug:t}).queryKey})])}});return e.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-4 px-4 py-12 text-center",children:[e.jsxs("div",{className:"max-w-md space-y-2",children:[e.jsxs("h1",{className:"text-xl font-semibold text-balance",children:["You're invited to join ",n.organizationName]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Accept your invitation to open this workspace."})]}),s.isError&&e.jsx("p",{role:"alert",className:"max-w-md text-sm text-destructive",children:s.error.message}),e.jsx(x,{disabled:s.isPending,onClick:()=>s.mutate(),children:s.isPending?"Joining…":"Accept invitation"})]})}function Le(){const{owner:t}=re.useParams(),{data:n,isLoading:a,error:s}=A(t==="me"?null:t,{slug:t}),{session:r,isReady:i}=ie();if(oe({active:le({settled:!a,authReady:i,session:r,resolved:!!n?.workspace,error:s}),owner:t}))return null;const l=t!=="me"&&r&&i&&!a&&!n?.workspace&&s instanceof ue&&[401,403,404].includes(s.status);return e.jsx(ce,{children:e.jsx(fe,{children:e.jsx(ke,{children:e.jsx(Re,{active:!!(l&&r),owner:t,userId:r?.user.id??null,children:e.jsx(de,{})})})})})}export{Le as component};
|
|
3
|
+
//# sourceMappingURL=_owner-B4ydA75k.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jZ as e,j as p,bx as m}from"./index-DB2lVKuV.js";import{M as i}from"./memory-browse-page-D5kj1RaR.js";import"./public-shell-ready-_KWdfzEM.js";import"./entity-pages-C6M6yKFf.js";import"./renderer-B8yZ5lql.js";import"./schema-value-DDNHANGs.js";import"./card-C4oPCVh6.js";import"./filter-editors-D_Sfn0dv.js";import"./subDays-BGA_fkig.js";import"./core.esm-B1du4Zwy.js";import"./entity-schema-graph-B255NKjF.js";import"./view-param-filters-CvrKw0mZ.js";import"./app-bridge-B-L0rGz9.js";import"./member-scope-gate-CBPMprXu.js";function T(){const{owner:t,entityType:o,shape:r}=e.useParams();return p.jsx(i,{ownerSlug:t,typeScope:m(o),create:!1,shape:r})}export{T as component};
|
|
2
|
+
//# sourceMappingURL=_shape-C4-ikE70.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{dF as l,P as m,c as y,dG as g,d0 as u,j as t,aC as c,aD as x,bZ as E}from"./index-DB2lVKuV.js";import{E as f}from"./entity-type-page-CGBAP2wt.js";import"./event-kind-options-fHAIXu24.js";import"./code-editor-CTdKUDPY.js";import"./index-Vcq4gwWv.js";function C(){const{owner:a,slug:n}=l.useParams(),{orgContext:s}=m(),o=y(),{data:i=[],isLoading:r}=g(s),e=i.find(d=>d.slug===n)??null,p=e?u(e):!1;return t.jsx(c,{className:"gap-4 pt-2.5 pb-8",children:t.jsx(x,{children:r?t.jsx(E,{label:"entity type",variant:"panel"}):e?t.jsx(f,{entityType:e,orgContext:s,hideDelete:p,onClose:()=>{o({to:"/$owner",params:{owner:a},search:{layout:"graph"}})}}):t.jsx("div",{className:"text-sm text-muted-foreground",children:"Entity type not found."})})})}export{C as component};
|
|
2
|
+
//# sourceMappingURL=_slug-DE5J3KVu.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{k6 as e,j as p,bx as i}from"./index-DB2lVKuV.js";import{M as m}from"./memory-browse-page-D5kj1RaR.js";import"./public-shell-ready-_KWdfzEM.js";import"./entity-pages-C6M6yKFf.js";import"./renderer-B8yZ5lql.js";import"./schema-value-DDNHANGs.js";import"./card-C4oPCVh6.js";import"./filter-editors-D_Sfn0dv.js";import"./subDays-BGA_fkig.js";import"./core.esm-B1du4Zwy.js";import"./entity-schema-graph-B255NKjF.js";import"./view-param-filters-CvrKw0mZ.js";import"./app-bridge-B-L0rGz9.js";import"./member-scope-gate-CBPMprXu.js";function d(){const{owner:t,entityType:o,viewKey:r}=e.useParams();return p.jsx(m,{ownerSlug:t,typeScope:i(o),create:!1,viewKey:r})}export{d as component};
|
|
2
|
+
//# sourceMappingURL=_viewKey-Dkcd8JQC.js.map
|
package/dist/owletto/dist/assets/{accept-invitation-BKeIzZXE.js → accept-invitation-DmrQQu_W.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{H as l,
|
|
2
|
-
//# sourceMappingURL=accept-invitation-
|
|
1
|
+
import{H as l,at as u,r as c,a5 as m,j as e,au as d,z as h,F as f}from"./index-DB2lVKuV.js";import{S as v,A as x,a as g}from"./index-mSrdbx3C.js";import{F as p}from"./full-page-spinner-C1clibUY.js";function j({alt:i="",...a}){return e.jsx("img",{alt:i,...a,referrerPolicy:"no-referrer"})}function w({children:i}){const a=h(),n=async t=>{await a.invalidateQueries({queryKey:["organizations"]}),t()};return e.jsx(g,{authClient:f,navigate:t=>{n(()=>{window.location.href=t})},replace:t=>{n(()=>window.location.replace(t))},Link:({href:t,children:s,className:r})=>e.jsx("a",{href:t,className:r,children:s}),basePath:"/auth",redirectTo:"/",magicLink:!0,social:{providers:[]},avatar:{Image:j},children:i})}function b(){const{session:i,sessionResult:a}=l(),{invitationId:n}=u.useSearch(),t=c.useRef(!1);return c.useEffect(()=>{a.isPending||i||!n||t.current||(t.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()})())},[i,a.isPending,n]),i&&!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."})]})}):i?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-DmrQQu_W.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as a,
|
|
2
|
-
//# sourceMappingURL=activity-route-location-
|
|
1
|
+
import{r as a,gD as r,j as s}from"./index-DB2lVKuV.js";const n=a.createContext(null);function i({children:t,...o}){return s.jsx(n.Provider,{value:o,children:t})}function u(){const t=a.useContext(n),o=r({strict:!1,select:e=>({pathname:e.pathname,search:e.search})});return t??o}export{i as A,u};
|
|
2
|
+
//# sourceMappingURL=activity-route-location-Bec6fW-t.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{P as le,o as Me,bx as Ee,cw as qe,W as Nt,r as f,cx as wt,cy as _e,cz as kt,aF as Ct,cA as Lt,j as e,bZ as St,bk as Re,cB as Ie,cC as Ze,cD as Et,B as z,L as O,cE as $e,cF as _t,s as Je,cG as Tt,cH as At,cI as Mt,cJ as et,cK as Rt,cL as It,cM as $t,$ as re,bz as je,bA as ve,bB as Ne,bC as we,bD as he,cN as Pt,a0 as tt,cO as Ot,b_ as Wt,cP as Dt,cQ as Ht,cR as Ft,x as Pe,cS as zt,c as nt,u as st,cT as at,cU as ot,cV as it,cW as rt,cX as Bt,cY as Kt,cZ as lt,aV as Gt,aX as Yt,c9 as Vt,aM as Ut,aN as Xt,c_ as ct,i as D,aP as Qt,ac as qt,X as Zt,t as Jt,c$ as en,ae as tn,d0 as nn,d1 as sn,ao as an,a2 as De,a8 as on,A as He,d2 as rn,d3 as ln,d4 as cn,d5 as dn,d6 as un,d7 as mn,d8 as gn,d9 as hn,da as pn,db as fn,dc as xn,dd as yn,n as Q,b as bn,de as jn,df as vn,dg as Nn,dh as wn,di as kn,dj as Cn,dk as Ln,dl as Sn,aK as En,dm as _n,dn as dt,bn as Tn,dp as An,bs as Mn,dq as ut,dr as Rn,ds as Fe,dt as In,du as $n,dv as Pn,dw as On,dx as Wn,dy as Dn,dz as Hn,dA as Fn,w as zn,dB as Bn,dC as Kn,dD as Gn,aC as Yn,a_ as Vn,aD as Un}from"./index-DB2lVKuV.js";import{R as Xn,E as Qn,V as qn,M as Zn}from"./view-card-Cg6PeEiV.js";import{M as Jn}from"./member-scope-gate-CBPMprXu.js";import{N as mt,u as es,R as ts,a as ns}from"./automation-run-now-Dl0MKx3N.js";import{V as ss}from"./view-param-filters-CvrKw0mZ.js";import{A as as}from"./events-feed-ClhEywwV.js";import{H as ke,n as Ce,s as os,l as is,b as rs,a as ls,G as cs,c as ds}from"./entity-schema-graph-B255NKjF.js";import{u as gt}from"./use-automations-DcdlmVuX.js";import{f as us}from"./feed-event-kinds-BYuZCoU4.js";import{a as ht}from"./list-skeleton-DLPBTnbR.js";import{u as ms}from"./clients-BhPMbxHi.js";import{u as gs}from"./client-activity-scopes-DqaFEyir.js";import{g as hs}from"./client-rows-rse9thnk.js";import{P as ps}from"./public-shell-ready-_KWdfzEM.js";function fs({organizationId:t,ownerSlug:n,typeScope:s,entityScope:a}){const{orgContext:r}=le(),{isMember:l,isLoading:o}=Me(),u=l&&!!t,d=s?Ee(s):void 0,m=!a&&!d,b=qe(u?n:null),p=Nt({strict:!1}),g=f.useMemo(()=>wt(_e(b.attentionCards),p),[b.attentionCards,p]),{feeds:h,pageIds:S}=kt(t,f.useMemo(()=>g.map(({item:I})=>I),[g])),i=f.useMemo(()=>[...g].sort((I,C)=>Number(S.has(C.item.id))-Number(S.has(I.item.id))),[g,S]),v=f.useMemo(()=>({approvalRunIds:new Set(i.flatMap(({item:I})=>I.approvalRunId!=null?[I.approvalRunId]:[])),eventIds:new Set(i.flatMap(({item:I,unreadIds:C})=>[...I.notificationId!=null?[I.notificationId]:[],...C]))}),[i]),j=I=>{I.length>0&&b.markManyRead.mutateAsync(I)},{data:x,isLoading:k,error:w}=Ct(a?`/${n}/${Lt(a)}`:`/${n}`,r),L=a?x?.entity:void 0,$=(a?L?.entity_type??Ee(a.split("/").at(-2)??""):d)==="$member",H=a!=null&&!k&&(w!=null||x?.entity==null),M=a?void 0:x?.counts,W=M?M.connections>0||M.agents>0:!1,A=u&&!o&&!k&&M!=null&&!W,F=a&&k?e.jsx(St,{label:"Loading record…"}):H?e.jsx(Re,{icon:Ie,title:"Record not found",description:"It may have been deleted, or it may live in a workspace you can't access."}):L?e.jsx(Xn,{ownerSlug:n,entity:L,organizationId:t}):e.jsx(Qn,{organizationId:t,ownerSlug:n,hideSourceFilter:!0,scopedEntityTypes:d?[d]:void 0,pinned:m?{needsYou:b.isError?e.jsx("p",{role:"alert",className:"mb-4 text-sm text-destructive",children:"Could not load what needs you. Refresh to try again."}):e.jsx(mt,{owner:n,entries:i,pageIds:S,onMarkRead:j,markPending:b.markManyRead.isPending}),rows:h.length>0?e.jsx(Ze,{organizationId:t,feeds:h}):null,hidden:v}:void 0,toolbar:!0,emptyState:A?e.jsx(xs,{ownerSlug:n}):void 0});return e.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col gap-4",children:[a?null:e.jsx("h1",{className:"text-2xl font-semibold tracking-tight",children:"Activity"}),$?e.jsx(Jn,{children:F}):F]})}function xs({ownerSlug:t}){return e.jsx("div",{className:"px-6",children:e.jsx(Re,{icon:Et,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(z,{asChild:!0,children:e.jsxs(O,{to:"/$owner/connectors/create",params:{owner:t},children:[e.jsx($e,{className:"mr-2 h-4 w-4"}),"Add a connector"]})}),e.jsx(z,{asChild:!0,variant:"outline",children:e.jsxs(O,{to:"/$owner/agents/connect",params:{owner:t},children:[e.jsx(_t,{className:"mr-2 h-4 w-4"}),"Connect agent"]})})]})})})}const ys=5;function Le(t,n,s=`${n}s`){return`${t} ${t===1?n:s}`}function bs({owner:t,counts:n,automations:s}){const a=[Le(s.length,"Automation"),Le(n.connections,"connection"),...n.agents>0?[Le(n.agents,"agent")]:[]].join(" · "),r=s.slice(0,ys);return e.jsxs("section",{"aria-label":"Ready to run",className:"space-y-7 pb-6",children:[e.jsxs("p",{className:"text-sm text-muted-foreground",children:[a," — nothing has run yet."]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-medium",children:"Ready to run"}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"Set up and waiting for a first run. Each one writes its output to Activity."})]}),e.jsx("ul",{className:"divide-y overflow-hidden rounded-lg border",children:r.map((l,o)=>e.jsx("li",{children:e.jsx(js,{owner:t,automation:l,primary:o===0})},l.automation_id))}),s.length>r.length?e.jsxs(O,{to:"/$owner",params:{owner:t},search:{section:"automation"},className:"inline-block text-xs text-muted-foreground underline decoration-border underline-offset-4 hover:text-foreground",children:["All ",s.length," Automations →"]}):null]}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-sm font-medium",children:"What lands here"}),e.jsxs("p",{className:"mt-1 text-xs text-muted-foreground",children:["A finished run shows its result on its Automation's row."," ",e.jsx(O,{to:"/$owner/events",params:{owner:t},className:"underline decoration-border underline-offset-4 hover:text-foreground",children:"All activity →"})]})]})]})}function js({owner:t,automation:n,primary:s}){const a=es(t,String(n.automation_id),n);return e.jsxs(e.Fragment,{children:[e.jsx(as,{automation:Je(n),owner:t,agentName:n.managed_agent_id??null,deviceLabel:n.device_worker_id?"Device-pinned":null,connectorDisplay:null,rowClass:"flex items-center gap-3 px-3 py-2.5",actions:a.paused?void 0:e.jsx(ts,{pending:a.pending,onRun:a.run,variant:s?"default":"ghost"})}),e.jsx("div",{className:"empty:hidden px-3 pb-3",children:e.jsx(ns,{runNow:a})})]})}const ze={trigger:"runs on arrival",delivery:"delivers here"};function vs(t){const n=new Map,s=(a,r,l,o)=>{const u=Number(a);if(!Number.isInteger(u)||u<=0)return;const d=n.get(u)??[],m=d.find(b=>b.automation.automation_id===r.automation_id);if(m){if(m.reason===l)for(const b of o)m.eventTypes.includes(b)||m.eventTypes.push(b);return}d.push({automation:r,reason:l,eventTypes:[...o]}),n.set(u,d)};for(const a of t){for(const r of a.triggers??[]){const l=Array.isArray(r.event_types)?r.event_types.map(String):[];s(r.connection_id,a,"trigger",l)}s(a.delivery_target?.connection_id,a,"delivery",[])}return n}function Ns(t){const n=new Map;for(const s of t){const a=n.get(s.connection_id)??[];a.push(s),n.set(s.connection_id,a)}return n}function ws(t){const n=(s,a,r)=>`${s} ${s===1?a:r}`;return[n(t.feeds,"feed","feeds"),t.actions>0?n(t.actions,"action","actions"):null,t.automations>0?n(t.automations,"Automation","Automations"):null].filter(Boolean).join(" · ")}const Te="connector:",Be=t=>`${Te}${t}`,ks={event:"Zap",schedule:"CalendarClock",manual:"Hand"},Cs=0,Ls=1,Ke=2;function Ss(t,n){const s=new Map;for(const{kind:a,targets:r}of us(t?.feeds_schema?.[n]))for(const{entityType:l,creates:o}of r){const u=s.get(l)??{creates:!1,eventKinds:new Set};u.creates||=o,u.eventKinds.add(a),s.set(l,u)}return s}function Es(t,n){const s=new Map(t.connectorDefs.map(i=>[i.key,i])),a=new Map(t.connectorDefs.map(i=>[i.key,i.name])),r=new Map(t.connections.map(i=>[i.id,i])),l=Ns(t.feeds),o=i=>`connection:${i}`,u=i=>`automation:${i}`,d=[],m=(i,v,j,x,k=!1)=>{d.push({id:`flow:${i}->${v}`,source:i,target:v,layoutReversed:k,data:{relationships:[],isSymmetric:!1,flow:{summary:j,details:x}}})},b=new Set(t.connections.map(i=>i.id));for(const i of t.connections){const v=new Map;for(const j of l.get(i.id)??[]){const x=Ss(s.get(i.connector_key),j.feed_key);for(const[k,w]of x){const L=v.get(k)??{creates:!1,eventKinds:new Set};L.creates||=w.creates;for(const _ of w.eventKinds)L.eventKinds.add(_);v.set(k,L)}}for(const[j,x]of v){const k=n.get(j);k&&m(o(i.id),k,x.creates?"creates records":"links records",[`From ${[...x.eventKinds].sort().join(", ")} events`])}}const p=vs(t.automations);for(const[i,v]of p)if(b.has(i))for(const{automation:j,reason:x,eventTypes:k}of v){const w=u(j.automation_id);x==="trigger"?m(o(i),w,ze.trigger,k.length>0?[`On ${[...k].sort().join(", ")}`]:[]):m(w,o(i),ze.delivery,[],!0)}const g=[];for(const i of t.automations){const v=u(i.automation_id),j=i.entity_type?n.get(i.entity_type):void 0;j&&m(j,v,"anchored here",[i.entity_name?`On ${i.entity_name}`:""].filter(Boolean));const x=Je(i,a,r),k=Tt(i),w=i.health==="degraded"?"Needs attention":void 0;g.push({id:v,lane:Ke,width:Ce(`${x.does} ${w??""}`,x.when),height:ke,data:{slug:v,label:x.does,icon:k?Be(k):ks[x.kind],isSystem:!1,badge:w,metaLabel:x.when,ref:{kind:"automation",automationId:i.automation_id}}})}const h=[];for(const i of t.metrics){const v=n.get(i.typeSlug);if(!v)continue;const j=`metric:${i.typeSlug}:${i.name}`;m(v,j,"measures",[i.description].filter(Boolean)),h.push({id:j,lane:Ke,width:Ce(i.name,i.agg),height:ke,data:{slug:j,label:i.name,icon:"ChartColumn",isSystem:!1,metaLabel:i.agg,ref:{kind:"metric",typeSlug:i.typeSlug,name:i.name}}})}return{nodes:[...t.connections.map(i=>{const v=At(i),j=Mt(i,s.get(i.connector_key)),x=ws({feeds:l.get(i.id)?.length||i.feed_count,actions:i.operations_summary?.total??0,automations:p.get(i.id)?.length??0}),k=j.needsAttention?"Needs attention":i.device_label??void 0;return{id:o(i.id),lane:Cs,width:Ce(`${v} ${k??""}`,x),height:ke,data:{slug:o(i.id),label:v,icon:Be(i.connector_key),isSystem:!1,badge:k,metaLabel:x,ref:{kind:"connection",connectorKey:i.connector_key,connectionId:i.id}}}}),...g,...h],edges:d}}function pt(t){switch(t.data.ref?.kind){case"connection":return"connections";case"automation":return"automations";case"metric":return"metrics";default:return"entities"}}function _s(t,n){const s=new Map;for(const d of t.nodes)(!d.data.organizationSlug||!s.has(d.data.slug))&&s.set(d.data.slug,d.id);const a=Es(n,s),{layers:r}=n,l=[...a.nodes,...t.nodes.map(d=>({...d,lane:Ls}))].filter(d=>r[pt(d)]),o=new Set(l.map(d=>d.id)),u=[...t.edges,...a.edges].filter(d=>o.has(d.source)&&o.has(d.target));return{nodes:l,edges:u}}const Ge="__new__";function Ye(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"")}function Ts({entityTypes:t,initialSource:n="",initialTarget:s="",onDone:a}){const r=f.useId(),l=`${r}-relationship`,o=`${r}-name`,u=`${r}-symmetric`,d=`${r}-source`,m=`${r}-target`,{orgContext:b}=le(),{data:p=[]}=et(b),g=Rt(),h=It(),[S,i]=f.useState(""),[v,j]=f.useState(""),[x,k]=f.useState(!1),[w,L]=f.useState(n),[_,$]=f.useState(s),[H,M]=f.useState(null),W=S===Ge,A=p.filter(C=>C.status==="active"&&C.purpose!==$t&&(!C.organization_slug||C.organization_slug===b?.slug)),F=g.isPending||h.isPending,I=async()=>{if(M(null),!S)return M("Pick a relationship");if(!w||!_)return M("Pick both ends");try{let C=S;if(W){const G=v.trim();if(!G)return M("Name the relationship");const P=Ye(G);if(!P)return M("Name must contain a letter or number");C=(await g.mutateAsync({slug:P,name:G,is_symmetric:x})).relationship_type.slug,i(C)}await h.mutateAsync({slug:C,source_entity_type_slug:w,target_entity_type_slug:_}),a()}catch(C){M(C instanceof Error?C.message:"Could not save")}};return e.jsxs("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-muted/30 p-3",children:[e.jsx("p",{className:"text-[11px] leading-relaxed text-muted-foreground",children:"Relationships are defined once for the workspace, then paired with the types they connect."}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(re,{htmlFor:l,className:"text-xs after:ml-1 after:text-destructive after:content-['*']",children:"Relationship"}),e.jsxs(je,{value:S,onValueChange:i,children:[e.jsx(ve,{id:l,className:"h-8 text-xs",children:e.jsx(Ne,{placeholder:"Pick or define one"})}),e.jsxs(we,{children:[A.map(C=>e.jsx(he,{value:C.slug,children:C.name||C.slug},C.slug)),A.length>0?e.jsx(Pt,{}):null,e.jsx(he,{value:Ge,children:"Define a new one…"})]})]})]}),W?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(re,{htmlFor:o,className:"text-xs after:ml-1 after:text-destructive after:content-['*']",children:"Name"}),e.jsx(tt,{id:o,value:v,onChange:C=>j(C.target.value),placeholder:"works at",className:"h-8 text-xs"}),v.trim()?e.jsxs("p",{className:"text-[11px] text-muted-foreground",children:["Slug: ",e.jsx("code",{children:Ye(v)||"—"})]}):null]}),e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs(re,{htmlFor:u,className:"text-xs font-normal",children:["Symmetric",e.jsx("span",{className:"mt-0.5 block text-[11px] text-muted-foreground",children:"Both ends mean the same thing, like “connected with”."})]}),e.jsx(Ot,{id:u,checked:x,onCheckedChange:k})]})]}):null,e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(re,{htmlFor:d,className:"text-xs after:ml-1 after:text-destructive after:content-['*']",children:"From"}),e.jsxs(je,{value:w,onValueChange:L,children:[e.jsx(ve,{id:d,className:"h-8 text-xs",children:e.jsx(Ne,{placeholder:"Type"})}),e.jsx(we,{children:t.map(C=>e.jsx(he,{value:C.slug,children:C.label},C.slug))})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(re,{htmlFor:m,className:"text-xs after:ml-1 after:text-destructive after:content-['*']",children:"To"}),e.jsxs(je,{value:_,onValueChange:$,children:[e.jsx(ve,{id:m,className:"h-8 text-xs",children:e.jsx(Ne,{placeholder:"Type"})}),e.jsx(we,{children:t.map(C=>e.jsx(he,{value:C.slug,children:C.label},C.slug))})]})]}),H?e.jsx("p",{className:"rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive",children:H}):null,e.jsx(Wt,{onCancel:a,cancelDisabled:F,className:"[&>button]:h-7 [&>button]:px-3 [&>button]:text-xs",children:e.jsx(z,{type:"button",size:"sm",onClick:I,disabled:F,children:F?"Saving…":"Add relationship"})})]})}const ft=288,fe=240,xe=720,As=320,Oe="lobu.schema-panel-width:v1";function ye(t,n){if(!Number.isFinite(t))return ft;const s=Math.max(fe,Math.min(xe,n-As));return Math.round(Math.min(s,Math.max(fe,t)))}function Ms(){const t=Dt(Oe);if(t===null)return null;const n=Number.parseInt(t,10);return!Number.isFinite(n)||n<fe||n>xe?null:n}function Rs(t){Ht(Oe,String(Math.round(t)))}function Is(){Ft(Oe)}const Ve={nodes:[],edges:[]};function $s(t,n,s){const{orgContext:a}=le(),{data:r=[],isLoading:l,isError:o}=Pe(a),{data:u=[],isLoading:d,isError:m}=et(a),b=f.useMemo(()=>os(u,t),[u,t]),{data:p,isLoading:g,isError:h}=zt(a),S=f.useMemo(()=>{const w=new Map(b.map(_=>[_.id,_.slug])),L={};for(const _ of p??[]){const $=w.get(_.relationship_type_id);$&&(L[$]??=[]).push(_)}return L},[p,b]),i=f.useMemo(()=>({entityTypes:r,relationshipTypes:b,rulesBySlug:S,ownerSlug:t,targetAspect:n,flow:s}),[r,b,S,t,n,s]),[v,j]=f.useState(null),x=l||d||g,k=o||m||h;return f.useEffect(()=>{if(x||k)return;let w=!1;const L={targetAspect:i.targetAspect};let _;return i.flow?_=is(_s(rs(i),i.flow),L):_=ls(i,L),_.then($=>{w||j({graph:$,isError:!1})}).catch(()=>{w||j({graph:Ve,isError:!0})}),()=>{w=!0}},[i,x,k]),{graph:v?.graph??Ve,isLoading:!k&&!v,isError:k||v?.isError===!0}}function Ue(t){const n=t.ruleCount>1?` ×${t.ruleCount}`:"",s=typeof t.linkCount=="number"?` · ${t.linkCount.toLocaleString()}`:"";return`${t.label}${n}${s}`}const Ae={connections:"--chart-3",entities:"--chart-5",automations:"--chart-2",metrics:"--chart-4"};function Ps(t,n){const s=t.nodes.some(o=>o.data.ref),a=new Map(t.nodes.map(o=>[o.id,o.data.label])),r=t.nodes.map(o=>({id:o.id,x:o.position.x+o.width/2,y:o.position.y+o.height/2,w:o.width,h:o.height,title:o.data.label,meta:o.data.metaLabel,icon:o.data.icon,badge:o.data.badge??o.data.organizationSlug,muted:o.data.isSystem,dimmed:n?!n.nodes.has(o.id):!1,accent:s?Ae[pt(o)]:void 0})),l=t.edges.map(o=>{const{relationships:u,isSymmetric:d,flow:m}=o.data;if(m)return{id:o.id,source:o.source,target:o.target,route:o.route??null,summary:m.summary,details:[m.summary,...m.details],directed:!0,dimmed:n?!n.edges.has(o.id):!1,ariaLabel:`${a.get(o.source)??o.source} to ${a.get(o.target)??o.target}: ${m.summary}`};const b=u.map(p=>p.label).join(", ");return{id:o.id,source:o.source,target:o.target,route:o.route??null,summary:u.length===1?Ue(u[0]):`${u.length} relationships`,details:u.map(Ue),directed:!d,dimmed:n?!n.edges.has(o.id):!1,ariaLabel:`${a.get(o.source)??o.source} ${d?"and":"to"} ${a.get(o.target)??o.target}: ${b}`}});return{boxes:r,edges:l}}const pe=[{key:"connections",label:"Connections"},{key:"entities",label:"Entities"},{key:"automations",label:"Automations"},{key:"metrics",label:"Metrics"}],Os={count:"Count",count_distinct:"Distinct count",sum:"Sum",min:"Minimum",max:"Maximum"};function Ws({metric:t,ownerSlug:n}){const s=(a,r)=>r.length>0?e.jsxs("section",{className:"flex flex-col gap-1.5",children:[e.jsx("h3",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:a}),e.jsx("ul",{className:"flex flex-col gap-1 text-sm",children:r.map(l=>e.jsxs("li",{children:[e.jsx("span",{className:"font-medium",children:l.name}),l.description?e.jsx("span",{className:"text-muted-foreground",children:` · ${l.description}`}):null]},l.name))})]}):null;return e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"flex flex-col gap-1",children:[e.jsxs("p",{className:"text-sm",children:[Os[t.agg]??t.agg," of"," ",e.jsx("code",{className:"rounded bg-muted px-1 text-xs",children:t.eventSet})," ","events, per ",t.typeLabel]}),t.description?e.jsx("p",{className:"text-sm text-muted-foreground",children:t.description}):null]}),s("Data from",t.sources.map(a=>({name:a,description:""}))),s("Group by",t.dimensions),s("Segments",t.segments),e.jsx(z,{asChild:!0,variant:"outline",size:"sm",className:"self-start",children:e.jsxs(O,{to:"/$owner/$entityType",params:{owner:n,entityType:t.typeSlug},children:["Open ",t.typeLabel]})})]})}function Ds({ownerSlug:t,metric:n,endpointOptions:s,canAuthor:a,mode:r,onModeChange:l}){const o=()=>l({kind:"index"});return r.kind==="metric"?n?e.jsx(Ws,{metric:n,ownerSlug:t}):null:a&&r.kind==="new-relationship"?e.jsx(Ts,{entityTypes:s,initialSource:r.source,initialTarget:r.target,onDone:o},`${r.source??""}|${r.target??""}`):null}function Hs(t){const{mode:n,canAuthor:s,onModeChange:a,isPeekOpen:r}=t,l=n.kind==="metric"?n.name:s&&n.kind==="new-relationship"?"New relationship":"Data map",o=f.useRef(null),u=JSON.stringify(n),d=f.useRef(u);return f.useEffect(()=>{d.current!==u&&(d.current=u,o.current?.focus({preventScroll:!0}))},[u]),e.jsx("aside",{style:{"--schema-panel-width":`${t.width}px`},className:D("order-first flex w-full shrink-0 flex-col lg:order-none lg:w-[var(--schema-panel-width)]",n.kind==="index"?"lg:absolute lg:top-0 lg:right-6 lg:z-10 lg:w-max lg:max-w-[calc(100%-3rem)] lg:max-h-[calc(100%-2rem)]":"bg-background lg:relative",r&&"lg:hidden"),children:e.jsxs("div",{className:D("flex min-h-0 flex-1 flex-col",n.kind!=="index"&&"lg:absolute lg:inset-0"),children:[e.jsxs("div",{className:n.kind==="index"?"sr-only":"flex h-11 shrink-0 items-center gap-1 border-b border-border px-3",children:[e.jsx("h2",{ref:o,tabIndex:-1,className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground outline-none",children:l}),n.kind!=="index"?e.jsx(z,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0 text-muted-foreground hover:text-foreground","aria-label":"Close",onClick:()=>a({kind:"index"}),children:e.jsx(Zt,{className:"h-4 w-4"})}):null]}),e.jsx("div",{className:D("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto",n.kind==="index"?"pb-1":"p-4"),children:e.jsx(Ds,{...t})})]})})}function xt(t){const n=t.previousElementSibling,s=t.nextElementSibling;if(n instanceof HTMLElement&&s instanceof HTMLElement){const a=n.clientWidth+s.clientWidth;if(a>0)return a}return 0}function Fs({width:t,maxWidth:n,onResize:s,onCommit:a,onReset:r,className:l}){const[o,u]=f.useState(!1),d=f.useRef(0),m=g=>{const h=xt(g);return h>0?h:g.parentElement?.clientWidth??0},b=g=>{if(g.button!==0)return;const h=g.currentTarget;if(!h.parentElement)return;g.preventDefault(),d.current=m(h);const i=g.clientX,v=t;u(!0),h.setPointerCapture(g.pointerId);const j=L=>ye(v-(L-i),d.current);let x=v;const k=L=>{x=j(L.clientX),s(x)},w=L=>{h.removeEventListener("pointermove",k),h.removeEventListener("pointerup",w),h.removeEventListener("pointercancel",w),u(!1),a(L.type==="pointercancel"?x:j(L.clientX))};h.addEventListener("pointermove",k),h.addEventListener("pointerup",w),h.addEventListener("pointercancel",w)},p=g=>{const h=m(g.currentTarget),S=i=>{g.preventDefault(),a(ye(t+i,h))};g.key==="ArrowLeft"?S(16):g.key==="ArrowRight"?S(-16):g.key==="Home"&&(g.preventDefault(),r())};return e.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize map panel","aria-valuenow":t,"aria-valuemin":fe,"aria-valuemax":n,tabIndex:0,onPointerDown:b,onKeyDown:p,onDoubleClick:r,className:D("group hidden shrink-0 cursor-col-resize touch-none items-stretch justify-center px-1.5 outline-none lg:flex",o&&"cursor-col-resize",l),children:e.jsx("div",{className:D("w-px rounded-full bg-border transition-[background-color,width] group-hover:w-0.5 group-hover:bg-primary/60 group-focus-visible:w-0.5 group-focus-visible:bg-primary",o&&"w-0.5 bg-primary")})})}function zs({ownerSlug:t,renderToolbar:n}){const s=nt(),a=st(),r=a?.item!=null,{orgContext:l}=le(),{isAdmin:o}=at(l.organizationId),[u,d]=f.useState({connections:!0,entities:!0,automations:!0,metrics:!0}),[m,b]=f.useState({kind:"index"}),p=a?.close,g=f.useCallback(c=>{c.kind!=="index"&&r&&p?.(),b(c)},[r,p]),[h,S]=f.useState(),i=f.useRef(null),v=f.useCallback(c=>{if(i.current?.disconnect(),i.current=null,!c||typeof ResizeObserver>"u")return;const N=()=>{if(!c.clientWidth||!c.clientHeight)return;const R=Math.round(c.clientHeight/c.clientWidth*10)/10;S(E=>E===R?E:R)};N();const T=new ResizeObserver(N);T.observe(c),i.current=T},[]),j=l.organizationId,x=ot(j),k=it(j),w=rt(j),L=gt(j??void 0),{data:_}=Pe(l),$=f.useMemo(()=>_?.filter(c=>Bt(c,t)),[_,t]),H=f.useMemo(()=>($??[]).flatMap(c=>Object.entries(c.metrics_config?.measures??{}).map(([N,T])=>({typeSlug:c.slug,name:N,agg:T.agg,description:T.description}))),[$]),M=x.isLoading||k.isLoading||w.isLoading||L.isLoading,W=f.useMemo(()=>M?null:{connections:x.data??[],feeds:k.data??[],connectorDefs:w.data??[],automations:L.data??[],metrics:H,layers:u},[M,x.data,k.data,w.data,L.data,H,u]),{graph:A,isLoading:F,isError:I}=$s(t,h,W),C=F||M,G={connections:!M&&(x.data??[]).length===0,entities:!1,automations:!M&&(L.data??[]).length===0,metrics:!M&&H.length===0},P=m.kind==="metric"?m:null,B=f.useMemo(()=>{if(!P)return null;const c=`metric:${P.typeSlug}:${P.name}`,N=A.edges.find(E=>E.target===c);if(!N)return null;const T=N.source,R=A.edges.filter(E=>E.target===T&&A.nodes.find(X=>X.id===E.source)?.data.ref?.kind==="connection");return{typeId:T,nodes:new Set([c,T,...R.map(E=>E.source)]),edges:new Set([N.id,...R.map(E=>E.id)]),sources:R.map(E=>A.nodes.find(X=>X.id===E.source)?.data.label??E.source)}},[P,A]),{boxes:q,edges:ce}=f.useMemo(()=>Ps(A,B),[A,B]),Z=f.useMemo(()=>{if(!P)return null;const c=$?.find(R=>R.slug===P.typeSlug),N=c?.metrics_config,T=N?.measures?.[P.name];return!c||!T?null:{name:P.name,typeSlug:c.slug,typeLabel:c.name||c.slug,agg:T.agg,eventSet:T.eventSet,description:T.description,dimensions:Object.entries(N?.dimensions??{}).map(([R,E])=>({name:R,description:E.description})),segments:Object.entries(N?.segments??{}).map(([R,E])=>({name:R,description:E.description})),sources:B?.sources??[]}},[P,$,B]),J=f.useMemo(()=>new Map(A.nodes.map(c=>[c.id,c.data.slug])),[A.nodes]),K=f.useMemo(()=>new Map(A.nodes.flatMap(c=>c.data.ref?[[c.id,c.data.ref]]:[])),[A.nodes]),de=f.useMemo(()=>{const c=new Map;for(const N of A.nodes)N.data.ref||(!N.data.organizationSlug||!c.has(N.data.slug))&&c.set(N.data.slug,{slug:N.data.slug,label:N.data.label});return[...c.values()]},[A.nodes]),te=f.useCallback(c=>{const N=K.get(c);if(N?.kind==="connection"){s({to:"/$owner/connectors/$connectorKey/$connectionId",params:{owner:t,connectorKey:N.connectorKey,connectionId:String(N.connectionId)},search:{}});return}if(N?.kind==="metric"){g({kind:"metric",typeSlug:N.typeSlug,name:N.name});return}if(N?.kind==="automation"){s({to:"/$owner/automations/$automationId",params:{owner:t,automationId:N.automationId},search:{view:"activity",run_id:void 0}});return}s(Kt(t,J.get(c)??c))},[s,t,J,K,g]),be=f.useCallback((c,N)=>{K.has(c)||K.has(N)||g({kind:"new-relationship",source:J.get(c)??c,target:J.get(N)??N})},[J,K,g]),We=f.useCallback(c=>{const N=c.startsWith(Te)?c.slice(Te.length):null;if(!N)return e.jsx(lt,{icon:c||null,className:"h-4 w-4"});const T=Gt(N,w.data??[],{name:x.data?.find(R=>R.connector_key===N)?.connector_name??N});return e.jsx(Yt,{plain:!0,icon:T.icon,iconUrl:T.iconUrl,name:T.name,faviconDomain:T.faviconDomain})},[w.data,x.data]),V=m.kind==="metric"||o&&m.kind!=="index",[ne,ae]=f.useState(()=>Ms()),ue=ne??ft,[ee,me]=f.useState(null),oe=f.useRef(null),ge=f.useCallback(c=>{if(oe.current?.disconnect(),oe.current=null,!c||typeof ResizeObserver>"u")return;const N=c.children[1];if(!N)return;const T=()=>{const E=xt(N);E>0&&me(X=>X===E?X:E)};T();const R=new ResizeObserver(T);R.observe(c),oe.current=R},[]),ie=ee===null?ue:ye(ue,ee),y=ee===null?xe:ye(xe,ee),Y=f.useCallback(c=>{ae(c),Rs(c)},[]),U=f.useCallback(()=>{ae(null),Is()},[]);if(C)return e.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col gap-3",children:[n(null),e.jsx(cs,{label:"Loading data map",fill:!0})]});if(I)return e.jsxs("div",{className:"flex min-w-0 flex-col gap-3",children:[n(null),e.jsx(Vt,{label:"data map"})]});const se=pe.filter(({key:c})=>u[c]).map(({label:c})=>c),vt=e.jsxs(Ut,{children:[e.jsx(Xt,{asChild:!0,children:e.jsxs(z,{variant:"outline",size:"sm","aria-label":"Show on the map",title:se.join(", "),className:D("min-w-0 max-w-full",V&&"hidden lg:inline-flex"),children:[e.jsxs("span",{className:"truncate",children:["Show:"," ",se.length===pe.length?"All layers":se.join(", ")]}),e.jsx(ct,{className:"size-4 shrink-0","aria-hidden":"true"})]})}),e.jsx(Qt,{align:"start",className:"w-56 p-2",children:e.jsxs("fieldset",{className:"m-0 flex min-w-0 flex-col gap-1 border-0 p-0 text-sm",children:[e.jsx("legend",{className:"sr-only",children:"Show on the map"}),pe.map(({key:c,label:N})=>{const T=`memory-map-show-${c}`,R=u[c]&&!G[c]&&pe.filter(({key:E})=>u[E]&&!G[E]).length===1;return e.jsxs("label",{htmlFor:T,className:"flex cursor-pointer items-center gap-2 rounded-sm px-2 py-2 hover:bg-accent has-[:disabled]:cursor-default",children:[e.jsx(qt,{id:T,checked:u[c],disabled:R,style:{borderColor:`var(${Ae[c]})`,backgroundColor:u[c]?`var(${Ae[c]})`:void 0},onCheckedChange:E=>d(X=>({...X,[c]:E===!0}))}),e.jsx("span",{children:N})]},c)})]})})]});return e.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col gap-3",children:[n(vt),e.jsxs("div",{ref:ge,className:"relative flex min-h-0 min-w-0 flex-1 flex-col gap-3 lg:-mr-6 lg:-mb-8 lg:flex-row lg:gap-0",children:[e.jsx("div",{className:D("flex min-w-0 flex-1 flex-col lg:pb-8",V&&"hidden lg:flex"),children:e.jsx("div",{ref:v,className:"min-h-[420px] min-w-0 flex-1 overflow-hidden rounded-lg bg-background",children:e.jsx(ds,{boxes:q,edges:ce,label:"Data map",onOpenBox:te,openLabel:c=>`Open ${c.title}`,onConnect:o?be:void 0,renderIcon:We})})}),e.jsx(Fs,{width:ie,maxWidth:y,onResize:ae,onCommit:Y,onReset:U,className:r||m.kind==="index"?"lg:hidden":void 0}),e.jsx(Hs,{width:ie,metric:Z,ownerSlug:t,endpointOptions:de,canAuthor:o,mode:m,onModeChange:g,isPeekOpen:r})]})]})}const Xe=12,Bs=5e3;function Ks(t,n){const s=!!t&&!!n.organizationId&&(n.enabled??!0),a=Jt({enabled:s}),{data:r}=a,l=r??[],o=f.useMemo(()=>l.map(h=>h.agentId),[l]),{threads:u,isLoading:d,isError:m}=en(t,o,{enabled:s&&o.length>0,limit:Xe}),b=gs({enabled:s,limit:Xe,excludeCommandClients:!1,organizationId:n.organizationId,refetchInterval:h=>h?Bs:!1}),p=n.organizationId?b.data:void 0;return{items:f.useMemo(()=>[...u.map(h=>({kind:"conversation",at:h.updatedAt,thread:h})),...(p??[]).map(h=>({kind:"mcp",at:h.lastCallAt,conversation:h}))].sort((h,S)=>S.at-h.at),[p,u]),agents:l,isLoading:s&&(a.isLoading||d||b.isLoading),isError:a.isError||m||b.isError}}const Gs=[[/\bfinance|accounting|billing|invoices?|treasury|payroll\b/i,rn],[/\bsales|revenue|deals?|pipeline|renewals?\b/i,ln],[/\bdelivery|logistics|milestones?|shipments?|fulfil?lment\b/i,cn],[/\bcommerce|retail|orders?|storefront|subscriptions?\b/i,dn],[/\bengineering|operations|infrastructure|devops|platform\b/i,un],[/\bleadership|executives?|board\b/i,mn],[/\bmarketing|growth|campaigns?\b/i,gn],[/\bsupport|helpdesk|service desk|customer (?:care|success)\b/i,hn],[/\blegal|contracts?|compliance\b/i,pn],[/\bresearch|science|labs?\b/i,fn]];function Ys(t){for(const n of t)if(n){for(const[s,a]of Gs)if(s.test(n))return a}return null}function Qe({workspace:t,icon:n,className:s}){return e.jsx("span",{className:`flex shrink-0 items-center justify-center overflow-hidden bg-muted text-muted-foreground ${s}`,children:t.logo?e.jsx("img",{src:t.logo,alt:"",referrerPolicy:"no-referrer",className:"h-full w-full object-cover"}):n?e.jsx(n,{className:"size-4","aria-hidden":"true"}):e.jsx("span",{className:"text-xs font-medium",children:t.name[0]?.toUpperCase()||"W"})})}function yt({owner:t}){const{orgContext:n}=le(),s=tn(),a=Pe(n),r=s.isError||a.isError,l=s.data?.flatMap(p=>{if(p.visibility!=="public"||p.slug===t)return[];const g=(a.data??[]).filter(j=>!nn(j)&&(j.organization_id===p.id||j.organization_slug===p.slug));if(!g.length)return[];const h=g.some(j=>sn(j)),S=g.map(j=>j.name).sort((j,x)=>j.localeCompare(x)),i=S.slice(0,3);S.length>i.length&&i.push("more");const v=p.description?.trim()||`Includes ${new Intl.ListFormat("en",{style:"long",type:"conjunction"}).format(i)}.`;return[{...p,description:v,isGraph:h,icon:h?an:Ys([p.name,p.description,S.join(" ")])}]}),o=s.isPending||a.isPending,u=(p,g)=>p.name.localeCompare(g.name),d=(l??[]).filter(p=>p.isGraph).sort(u),m=(l??[]).filter(p=>!p.isGraph).sort(u),b=d.length>0&&m.length>0;return e.jsxs("section",{"aria-label":"Discover",className:"mt-3 space-y-2",children:[e.jsx("h2",{className:"px-1 text-sm font-medium",children:"Discover"}),r?e.jsxs("p",{role:"alert",className:"px-1 text-sm text-muted-foreground",children:["Could not load public workspaces."," ",e.jsx("button",{type:"button",onClick:()=>void Promise.all([s.refetch(),a.refetch()]),className:"rounded underline underline-offset-4 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:"Try again"})]}):o?e.jsx("p",{role:"status",className:"px-1 text-sm text-muted-foreground",children:"Loading public workspaces…"}):l?.length?e.jsxs(e.Fragment,{children:[d.length>0?e.jsx("ul",{className:"space-y-1.5",children:d.map(p=>{const g=De(p.slug);return e.jsx("li",{className:"min-w-0",children:e.jsxs("a",{href:g.kind==="cross-host"?g.href:g.to,className:"group flex min-w-0 items-start gap-3 rounded-xl border border-border/60 bg-gradient-to-br from-muted/60 via-muted/20 to-transparent p-3 transition-colors hover:border-border hover:from-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:[e.jsx(Qe,{workspace:p,icon:p.icon,className:"size-10 rounded-lg bg-background/80 ring-1 ring-border/60"}),e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsxs("span",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[e.jsx("span",{className:"text-sm font-medium",children:p.name}),e.jsx(on,{variant:"secondary",className:"px-1.5 py-0 text-[10px] uppercase tracking-wide",children:"World graph"})]}),e.jsx("span",{className:"mt-1 block text-xs leading-5 text-muted-foreground",children:"A world graph of public data your agent queries directly — live from the source, never copied."}),e.jsx("span",{className:"mt-1 block text-xs leading-5 text-muted-foreground/80",children:p.description})]}),e.jsx(He,{className:"mt-0.5 size-3.5 shrink-0 text-muted-foreground opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100","aria-hidden":"true"})]})},p.id)})}):null,m.length>0?e.jsxs("div",{className:"space-y-1.5",children:[b?e.jsx("div",{className:"px-1 pt-1",children:e.jsx("p",{className:"text-xs leading-5 text-muted-foreground",children:"Company brains for different industries — start with the samples, then plug in your systems and customize."})}):null,e.jsx("ul",{className:"grid gap-1 [grid-template-columns:repeat(auto-fill,minmax(14rem,1fr))]",children:m.map(p=>{const g=De(p.slug);return e.jsx("li",{className:"min-w-0",children:e.jsxs("a",{href:g.kind==="cross-host"?g.href:g.to,className:"group flex min-w-0 items-center gap-2.5 rounded-lg px-2 py-2 transition-colors hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:[e.jsx(Qe,{workspace:p,icon:p.icon,className:"size-8 rounded-lg"}),e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsx("span",{className:"block truncate text-sm font-medium",children:p.name}),e.jsx("span",{className:"mt-0.5 line-clamp-2 block text-xs leading-4 text-muted-foreground",children:p.description})]}),e.jsx(He,{className:"size-3.5 shrink-0 text-muted-foreground opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100","aria-hidden":"true"})]})},p.id)})})]}):null]}):e.jsx("p",{className:"px-1 text-sm text-muted-foreground",children:"No public workspaces yet."})]})}function Vs({owner:t}){const n=xn(t,{requireEntityTypes:!1});return!n.ready||!n.counts?e.jsx(Us,{}):e.jsxs("section",{"aria-label":"Start here",className:"grid min-w-0 items-start gap-10 pt-2 pb-6 lg:grid-cols-[minmax(0,2fr)_minmax(0,3fr)] lg:gap-12",children:[e.jsxs("div",{className:"flex min-w-0 flex-col gap-4",children:[e.jsxs("div",{className:"flex flex-col gap-1 px-1",children:[e.jsx("h2",{className:"text-xl font-semibold tracking-tight",children:"Connect your agent"}),e.jsx("p",{className:"max-w-2xl text-sm leading-6 text-muted-foreground",children:"Connect ChatGPT, Claude, Codex, or the agent you already use. Then let your agent help you connect data and set up your workspace."})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-3 px-1",children:[e.jsx(z,{asChild:!0,children:e.jsxs(O,{to:"/$owner/agents/connect",params:{owner:t},children:["Connect your agent"," ",e.jsx(yn,{"aria-hidden":"true",className:"size-4"})]})}),e.jsx(O,{to:"/$owner/connectors/create",params:{owner:t},className:"text-sm text-muted-foreground underline decoration-border underline-offset-4 hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:"Add connector"})]})]}),e.jsx(yt,{owner:t})]})}function Us(){return e.jsxs("section",{"aria-label":"Start here",className:"grid min-w-0 items-start gap-10 pt-2 pb-6 lg:grid-cols-[minmax(0,2fr)_minmax(0,3fr)] lg:gap-12",children:[e.jsxs("div",{className:"flex min-w-0 flex-col gap-4 px-1",children:[e.jsx(Q,{className:"h-6 w-full max-w-lg"}),e.jsx(Q,{className:"h-4 w-full max-w-xl"}),e.jsxs("div",{className:"flex flex-wrap gap-3",children:[e.jsx(Q,{className:"h-9 w-40"}),e.jsx(Q,{className:"h-9 w-48"})]})]}),e.jsxs("div",{className:"flex min-w-0 flex-col gap-4",children:[e.jsx(Q,{className:"h-4 w-32"}),[0,1,2,3].map(t=>e.jsx(Q,{className:"h-12 w-full"},t))]})]})}const Xs={automation:dt,connection:$e,agent:_n,"entity-type":Ie},Qs={automation:{to:"/$owner",search:{section:"automation"}},connection:{to:"/$owner/connectors",search:{}},agent:{to:"/$owner",search:{section:"agent"}},"entity-type":{to:"/$owner",search:{section:"entity-type"}}},Se={automation:{text:"No Automations yet.",action:{to:"/$owner/automations/new",label:"Start with a template"}},connection:{text:"No connections yet.",action:{to:"/$owner/connectors/create",label:"Connect a source"}},agent:{text:"No agents connected yet.",action:{to:"/$owner/agents/connect",label:"Connect an agent"}},"entity-type":{text:"No entity types yet.",action:{to:"/$owner/entity-types/new",label:"Create one"}}};function bt({owner:t,organizationId:n,section:s,layout:a,views:r}){const{isMember:l,isPublic:o,isLoading:u}=Me(t),d=o&&!l&&!u,m=f.useRef(null),b=bn(m,767),[p,g]=f.useState(""),[h,S]=f.useState("all"),i=jn({slug:t}),v=y=>y.flatMap(Y=>Y.href?[Y]:v(Y.children)),j=(i.data?.sections??[]).flatMap(y=>v(y.items)),x=qe(l?t:null),k=_e(x.attentionCards),w=gt(n??void 0,void 0,{includeDetails:!1}),L=ot(n),_=it(n),{data:$=[],isLoading:H,isError:M}=rt(n),W=Ks(t,{organizationId:n,enabled:l}),A=ms(null,{enabled:l}),{visible:F,isTypesLoading:I}=vn(t),C=Nn(l&&!s?{workspace:!0}:null,{runTypes:["automation"],status:"completed"},t),G=f.useMemo(()=>{const y=new Map;for(const Y of C.data?.pages??[])for(const U of Y.runs){if(U.automation_id==null)continue;const se=String(U.automation_id);y.has(se)||!U.items_collected||U.items_collected<=0||y.set(se,`${U.items_collected} ${U.items_collected===1?"item":"items"}`)}return y},[C.data]),P=f.useMemo(()=>wn({owner:t,automations:w.data??[],connections:L.data??[],feeds:_.data??[],connectors:new Map($.map(y=>[y.key,y])),recentItems:W.items,roster:W.agents,clientGroups:hs(A.data??[]).filter(y=>y.connected),entityTypes:F,attention:_e(x.attentionCards),runResults:G,now:Date.now()}),[t,w.data,L.data,_.data,$,W.items,W.agents,A.data,F,x.attentionCards,G]),B=p.trim().toLowerCase(),q=B.length>0,ce=f.useMemo(()=>kn(P.filter(y=>(!B||y.name.toLowerCase().includes(B))&&(s!=="agent"||h==="all"||y.agentType===h)),{filtering:q,expanded:s!=null,kinds:s?[s]:d?["automation","connection","entity-type"]:["automation","connection","agent","entity-type"]}),[P,B,q,d,s,h]),Z=Cn(l?n:null,Ln()),J={automation:w.isLoading,connection:L.isLoading||_.isLoading||H,agent:l&&(W.isLoading||A.isLoading),"entity-type":I},K=n==null||w.isLoading||L.isLoading||_.isLoading||H||l&&(W.isLoading||x.isLoading),de=i.isError||w.isError||L.isError||_.isError||M||l&&(A.isError||W.isError||x.isError),te=ce.every(y=>y.count===0)&&Z.length===0,be=P.some(y=>y.kind!=="entity-type"),V=(a??(s==="entity-type"&&!b?"graph":"table"))==="table"||s!=null&&s!=="entity-type",ne=!r&&V&&l&&!K&&!q&&!d&&!be&&j.length===0&&!i.isLoading&&Z.length===0,ae=P.filter(y=>y.kind==="agent").length,ue=(w.data??[]).every(y=>!y.last_fired_at&&!y.last_run_completed_at&&y.automation_run_status==null&&y.automation_run_created_at==null),ee=!r&&V&&l&&!K&&!q&&!d&&!ne&&(w.data?.length??0)>0&&ue,me=e.jsx("h1",{className:"text-2xl font-semibold tracking-tight",children:s?{automation:"Automations",agent:"Agents",connection:"Connections","entity-type":"Data model"}[s]:"Home"}),oe=e.jsxs("header",{className:"flex flex-wrap items-center gap-x-4 gap-y-2",children:[me,l&&!d?e.jsx("div",{className:"ml-auto",children:e.jsx(jt,{owner:t,organizationId:n,agentType:h})}):null]}),ge=e.jsx(e.Fragment,{children:K&&te?e.jsx(Zs,{}):te&&q?e.jsx(Re,{icon:Sn,title:"Nothing matches",description:"No items match this filter."}):ce.filter(y=>!(ee&&!s&&y.kind==="automation")).map(y=>J[y.kind]?e.jsx(Js,{label:y.label},y.kind):e.jsx(ea,{owner:t,organizationId:n,section:y,allRows:s===y.kind,emptyText:y.kind==="agent"&&h!=="all"?`No ${h==="managed"?"Lobu-managed":"external"} agents connected yet.`:void 0,connectorDefinitions:$},y.kind))}),ie=y=>e.jsx(qs,{title:me,owner:t,organizationId:n,layout:V?"table":"graph",section:s,agentType:h,layerToggles:y,query:p,onQueryChange:g,canAdd:l&&!d,destination:"/$owner"});return e.jsxs("section",{ref:m,"aria-label":"Home",className:"flex min-h-0 min-w-0 flex-1 flex-col gap-6",children:[V?s?ie(null):oe:null,V?e.jsxs(e.Fragment,{children:[de?e.jsx("p",{role:"alert",className:"text-sm text-destructive",children:"Some workspace information could not be loaded. Refresh to try again."}):null,!s&&l&&(k.length>0||Z.length>0)?e.jsxs("section",{"aria-label":"Needs attention",className:"space-y-3",children:[e.jsx("h2",{className:"text-sm font-medium",children:"Needs attention"}),e.jsx(mt,{owner:t,entries:k,pageIds:new Set,onMarkRead:y=>{y.length&&x.markManyRead.mutate(y)},markPending:x.markManyRead.isPending}),Z.length?e.jsx(Ze,{organizationId:n,feeds:Z}):null]}):null,s?null:r,!s&&!(d&&!r)?e.jsxs(e.Fragment,{children:[ne?e.jsx(Vs,{owner:t}):null,ee?e.jsx(bs,{owner:t,counts:{connections:L.data?.length??0,agents:ae},automations:w.data??[]}):null]}):null,s?e.jsxs(e.Fragment,{children:[s==="agent"?e.jsx("div",{role:"group","aria-label":"Agent type",className:"flex flex-wrap gap-1 border-b pb-2",children:[["all","All"],["managed","Lobu-managed"],["external","External"]].map(([y,Y])=>e.jsx(z,{variant:h===y?"secondary":"ghost",size:"sm","aria-pressed":h===y,onClick:()=>S(y),children:Y},y))}):null,ge]}):ne||te?null:e.jsx("div",{className:"mt-2",children:ge}),!s&&!ne&&!K&&!de&&te&&j.length===0&&!r&&!A.isError?e.jsx(yt,{owner:t}):null]}):e.jsx(zs,{ownerSlug:t,renderToolbar:ie})]})}function qs({title:t,owner:n,organizationId:s,layout:a,section:r,agentType:l,layerToggles:o,query:u,onQueryChange:d,canAdd:m,destination:b}){const p=[{key:"table",label:"Table",Icon:Dn,search:{layout:"table"}},{key:"graph",label:"Graph",Icon:Hn,search:{layout:"graph"}}];return e.jsxs("header",{className:"flex flex-wrap items-center gap-x-4 gap-y-2",children:[t,e.jsxs("nav",{"aria-label":"Inventory views",className:"flex min-w-0 flex-1 flex-wrap items-center gap-x-3 gap-y-2",children:[(!r||r==="entity-type")&&e.jsx("fieldset",{className:"flex items-center rounded-md border p-0.5","aria-label":"Inventory layout",children:p.map(({key:g,label:h,Icon:S,search:i})=>{const v=a===g;return e.jsx(z,{asChild:!0,variant:"ghost",size:"sm",className:D("h-7 px-2",v&&"bg-accent text-accent-foreground"),children:e.jsx(O,{to:b,params:{owner:n},search:{...i,...r?{section:r}:{}},replace:!0,"aria-label":h,"aria-current":v?"page":void 0,title:h,children:e.jsx(S,{className:"h-4 w-4"})})},g)})}),o,e.jsxs("div",{className:"ml-auto flex min-w-0 flex-1 items-center justify-end gap-2",children:[a==="table"?e.jsxs("div",{className:"relative min-w-40 max-w-64 flex-1",children:[e.jsx(Fn,{"aria-hidden":"true",className:"absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx(tt,{type:"search","aria-label":"Filter list",placeholder:"Filter…",maxLength:512,value:u,onChange:g=>d(g.target.value),className:"pl-9"})]}):null,m?e.jsx(jt,{owner:n,organizationId:s,section:r,agentType:l}):null]})]})]})}function jt({owner:t,organizationId:n,section:s,agentType:a}){const{isAdmin:r}=at(n??void 0);if(s){if(s==="entity-type"&&!r)return null;const o={automation:{to:"/$owner/automations/new",label:"Create Automation"},connection:{to:"/$owner/connectors/create",label:"Add connector"},agent:a==="managed"?{to:"/$owner/agents/new",label:"Create agent"}:{to:"/$owner/agents/connect",label:"Connect agent"},"entity-type":{to:"/$owner/entity-types/new",label:"Create entity type"}};return e.jsx(z,{asChild:!0,size:"sm",children:e.jsxs(O,{to:o[s].to,params:{owner:t},children:[e.jsx(Fe,{className:"mr-1.5 h-4 w-4","aria-hidden":"true"}),o[s].label]})})}const l=[{to:"/$owner/automations/new",label:"Automation",Icon:dt},{to:"/$owner/connectors/create",label:"Connection",Icon:$e},{to:"/$owner/agents/new",label:"Agent",Icon:On},...r?[{to:"/$owner/entity-types/new",label:"Entity type",Icon:Ie}]:[]];return e.jsxs(In,{children:[e.jsx($n,{asChild:!0,children:e.jsxs(z,{size:"sm",children:[e.jsx(Fe,{className:"mr-1.5 h-4 w-4"}),"Add",e.jsx(ct,{className:"ml-1 h-3.5 w-3.5"})]})}),e.jsx(Pn,{align:"end",className:"w-44",children:l.map(({to:o,label:u,Icon:d})=>e.jsx(Wn,{asChild:!0,children:e.jsxs(O,{to:o,params:{owner:t},children:[e.jsx(d,{}),u]})},o))})]})}function Zs(){return e.jsx("div",{role:"status","aria-label":"Loading Home",children:[0,1,2].map(t=>e.jsxs("div",{children:[e.jsx("div",{className:"px-1 pt-4 pb-1.5",children:e.jsx(Q,{className:"h-4 w-24"})}),e.jsx("div",{className:"divide-y overflow-hidden rounded-lg border",children:[0,1,2].map(n=>e.jsx(ht,{},n))})]},t))})}function Js({label:t}){return e.jsxs("section",{"aria-label":t,className:"min-w-0",children:[e.jsx("div",{className:"px-1 pt-4 pb-1.5",children:e.jsx("h2",{className:"text-sm font-semibold",children:t})}),e.jsx("div",{role:"status","aria-label":`Loading ${t}`,className:"divide-y overflow-hidden rounded-lg border",children:[0,1,2].map(n=>e.jsx(ht,{},n))})]})}function ea({emptyText:t,owner:n,organizationId:s,section:a,allRows:r,connectorDefinitions:l}){const o=Qs[a.kind],{isMember:u}=Me(n),d=!u&&o.to==="/$owner/connectors"?"/$owner":o.to;return e.jsxs("section",{"aria-label":a.label,className:"min-w-0",children:[e.jsxs("div",{className:"flex items-baseline gap-2 px-1 pt-4 pb-1.5",children:[e.jsx("h2",{className:"text-sm font-semibold",children:r?e.jsxs(e.Fragment,{children:[a.label,e.jsx("span",{className:"ml-1.5 font-normal text-muted-foreground tabular-nums",children:a.count})]}):e.jsx(O,{to:d,params:{owner:n},search:o.search,className:"underline-offset-4 hover:underline",children:a.label})}),!r&&a.count>a.rows.length?e.jsxs(O,{to:d,params:{owner:n},search:o.search,className:"text-xs text-muted-foreground hover:text-foreground",children:["See all ",a.count," →"]}):null]}),a.count===0?e.jsxs("p",{className:"px-2 py-2 text-xs text-muted-foreground",children:[t??Se[a.kind].text," ",e.jsxs(O,{to:Se[a.kind].action.to,params:{owner:n},className:"underline decoration-border underline-offset-4 transition-colors hover:text-foreground",children:[Se[a.kind].action.label," →"]})]}):null,e.jsx("ul",{className:D("overflow-hidden rounded-lg border",a.rows.length===0&&"hidden"),children:a.rows.map(m=>e.jsxs("li",{className:D("flex min-w-0 items-center border-b last:border-b-0",En),children:[e.jsx(ta,{owner:n,organizationId:s,source:m,connectorDefinitions:l}),m.attention.length>0?e.jsx(na,{owner:n,source:m}):null]},m.key))})]})}function ta({owner:t,organizationId:n,source:s,connectorDefinitions:a}){const r=Xs[s.kind];return e.jsx(sa,{owner:t,organizationId:n,source:s,className:D(Mn,"min-w-0 flex-1"),children:e.jsx(Tn,{mark:s.kind==="entity-type"?e.jsx(lt,{icon:s.icon??null,className:"h-4 w-4 text-muted-foreground"}):e.jsx(An,{source:s.mark,connectorDefinitions:a,label:s.name,fallback:e.jsx(r,{className:"h-4 w-4 text-muted-foreground"})}),name:s.name,tone:s.attention.length>0?"amber":s.problem?"destructive":null,details:s.agentType?`${s.agentType==="managed"?"Lobu-managed":"External"} · ${s.status}`:s.status,at:s.at})})}function na({owner:t,source:n}){const s=n.attention.length,a=ut(Rn(t,n));return e.jsxs(O,{to:a.pathname,search:a.search,className:"mr-3 shrink-0 rounded-full bg-amber-500/10 px-2 py-0.5 text-xs font-medium text-amber-700 transition-colors hover:bg-amber-500/20 dark:text-amber-400",children:[s," need",s===1?"s":""," you"]})}function sa({owner:t,organizationId:n,source:s,className:a,children:r}){const l=st(),{open:o}=s,u=o.kind==="agent"?o.settingsHref??o.href:o.href,d=ut(u),m=b=>{if(!(!l||o.kind==="entity-type"||o.kind==="agent"||b.metaKey||b.ctrlKey||b.shiftKey||b.altKey||b.button!==0)&&!(o.kind==="connection"&&!n)){if(b.preventDefault(),o.kind==="automation"){l.open({href:u,title:s.name,owner:t});return}l.open({href:o.href,title:s.name,key:s.key,connectorPanel:{section:"data",connectorKey:o.connectorKey,connectionId:o.connectionId,organizationId:n,ownerSlug:t}})}};return e.jsx(O,{to:d.pathname,search:d.search,className:a,onClick:m,children:r})}function aa(t){return t.section||t.layout==="graph"?e.jsx(bt,{...t}):e.jsx(oa,{...t})}function oa(t){const{owner:n}=t,s=nt(),a=zn({slug:n}),r=Bn(a.data??[]),l=a.data===void 0&&!a.isError;return e.jsx(bt,{...t,views:l||a.isError||r.length?e.jsxs("section",{"aria-label":"Your views",className:"space-y-4",children:[l?e.jsx("div",{role:"status","aria-label":"Loading views",children:e.jsx(Q,{className:"h-64 w-full"})}):null,a.isError?e.jsx(ss,{error:a.error,onRetry:()=>void a.refetch()}):null,e.jsx("div",{className:D("grid min-w-0 gap-4",r.length>1&&"lg:grid-cols-2"),children:r.map(o=>{const u=Kn(n,o.key);return e.jsx(qn,{view:o,orgSlug:n,scope:{},open:()=>void s({href:u})},o.key)})})]}):void 0})}function ja({owner:t,search:n,entityScope:s,home:a=!1}){const r=typeof n.type=="string"&&n.type.trim()?Ee(n.type.trim()):void 0,l=n.section==="automation"||n.section==="agent"||n.section==="entity-type"?n.section:void 0,o=n.layout==="graph"||n.layout==="table"?n.layout:void 0,u=Object.entries(n).some(([m,b])=>(Gn.includes(m)||m.startsWith("clf_"))&&b!=null&&b!==""),d=a&&!u&&!r&&!s;return e.jsxs(Yn,{className:"gap-6 pt-2.5 pb-8",children:[e.jsx(ps,{}),e.jsx(Vn,{owner:t,children:m=>e.jsx(Zn,{organizationId:m.organizationId,isWorkspaceLoading:m.isWorkspaceLoading,children:e.jsx(Un,{wide:a,className:D("flex min-h-0 min-w-0 flex-1 flex-col",d&&o==="graph"&&"max-w-none"),children:d?e.jsx(aa,{owner:m.ownerSlug,organizationId:m.organizationId,section:l,layout:o}):e.jsx(fs,{organizationId:m.organizationId,ownerSlug:m.ownerSlug,typeScope:r,entityScope:s})})})})]})}export{ja as A};
|
|
2
|
+
//# sourceMappingURL=activity-route-view-DCSNBKZU.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{u as y,j as t,n as b,aa as P,B as f,C as L,L as m,fp as I}from"./index-DB2lVKuV.js";import{u as A}from"./clients-BhPMbxHi.js";import{g as $,c as M}from"./client-rows-rse9thnk.js";const N="https://raw.githubusercontent.com/lobu-ai/lobu/main/claude-plugin/skills/lobu/SKILL.md";function l(e){try{const n=new URL(e).hostname;return n==="lobu.ai"||n.endsWith(".lobu.ai")}catch{return!1}}function d(e,n){const o=`npx @lobu/cli@latest connect ${e}`;return l(n)?o:`${o} --url ${n}`}function u(e,n){return`npx @lobu/cli@latest connect ${e} --url ${n}`}const g={label:"Lobu MCP reference",href:"https://lobu.ai/reference/mcp/"};function C(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 T=[{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=>d("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.",...l(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 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=>l(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=>l(e)?d("codex",e):["ChatGPT web — open Settings -> Connectors -> Create connector","Name: Lobu",`MCP URL: ${e}`,"Authentication: OAuth","",`Codex — ${d("codex",e)}`].join(`
|
|
2
|
+
`),steps:e=>l(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/for/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=>u("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=>u("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=>u("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:[g]},{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:()=>C("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:()=>C("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:[g]}],E=[{prompt:"Help my assistants work with my personal and work tools through Lobu. Ask what I use and what I want help with, then guide me through connecting the right tools one at a time.",action:"connector"},{prompt:"Create an Automation in Lobu that sends me a daily briefing with upcoming meetings, important updates, and follow-ups. Ask what to include, when to run it, and where to send it.",action:"automation"},{prompt:"Help me set up Lobu on my devices. Ask where I want my assistants to work, then help me choose and set up the browser extension, Mac app, CLI, or Docker.",action:"devices"}],j={codex:"chatgpt","claude-code":"claude","claude-desktop":"claude"};function w(e){const n=j[e]??e;return T.find(o=>o.id===n)}function R(e,n){const o=w(e),s=n.trim().toLowerCase(),i=[["claude",/^(claude|anthropic)(?:$|[\s._-])/],["chatgpt",/^(chatgpt|codex|openai)(?:$|[\s._-])/],["opencode",/^open[ -]?code(?:$|[\s._-])/],["antigravity",/^antigravity(?:$|[\s._-])/],["cursor",/^cursor(?:$|[\s._-])/],["openclaw",/^openclaw(?:$|[\s._-])/],["hermes",/^hermes(?:$|[\s._-])/]].find(([,r])=>r.test(s))?.[0]??"other";return o?.id===i}function U(e){const{workspaceName:n,owner:o,mcpUrl:s,clientLabel:a}=e;return[`Connect this${a?` ${a}`:""} agent to the "${n}" Lobu workspace (${o}).`,"",`Use the remote HTTP MCP server ${s}. Detect this agent's native MCP and skill mechanisms. If it supports installable skills, install the Lobu workspace skill from ${N}.`,"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 ${o}, 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. Read the connected runtime’s Lobu skill through the skill://lobu MCP resource when available. Use search_sdk before choosing SDK methods and follow the live setup instructions it returns. Never fabricate a returned URL or identifier."].join(`
|
|
3
|
+
`)}function x({owner:e,clientId:n}){const o=A(null,{ownerSlug:e,refetchInterval:2500}),s=$(o.data??[]).filter(a=>R(n,a.title));return{...o,groups:s}}function k({retry:e}){return t.jsxs("div",{role:"alert",className:"flex flex-wrap items-center gap-2 text-xs text-destructive",children:["Could not check connected clients.",t.jsx(f,{variant:"ghost",size:"sm",onClick:e,children:"Retry"})]})}function H(e){const n=y(),{groups:o,isPending:s,isError:a,refetch:i}=x(e),r=w(e.clientId);if(s)return t.jsx(b,{className:"h-5 w-48"});if(a)return t.jsx(k,{retry:()=>void i()});const h=o.filter(v=>v.connected).length,p=o.length-h,c=r?.id==="other"?"agent":r?.label??"agent";return t.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs","aria-live":"polite",children:[h>0?t.jsxs("span",{className:"flex items-center gap-1.5",children:[t.jsx(P,{className:"size-3.5","aria-hidden":"true"}),r?.id==="other"?"Clients connected":`${c} connected`]}):t.jsx("span",{className:"text-muted-foreground",children:o.length>0?`No active ${c} connections.`:`No ${c} clients connected yet.`}),p>0&&t.jsxs("span",{className:"text-destructive",children:[p," disconnected"]}),o.length>0&&t.jsxs(f,{variant:"ghost",size:"sm",className:"h-7 text-xs",onClick:()=>n?.open({href:"",key:`agent-clients:${e.owner}:${e.clientId}`,title:r?.id==="other"?"Other connected clients":`${c} clients`,agentClients:e}),children:["View ",o.length," ",o.length===1?"client":"clients",t.jsx(L,{className:"size-3.5","aria-hidden":"true"})]})]})}function G(e){const{groups:n,isPending:o,isError:s,refetch:a}=x(e);return t.jsxs("div",{className:"space-y-3 p-4",children:[o?t.jsx(b,{className:"h-20 w-full"}):s?t.jsx(k,{retry:()=>void a()}):n.length===0?t.jsx("p",{className:"text-sm text-muted-foreground",children:"No clients yet. Finish setup and make a Lobu request with your agent."}):t.jsx("div",{className:"overflow-hidden rounded-lg border",children:n.map((i,r)=>t.jsxs(m,{to:"/$owner/agents/connected/$clientId",params:{owner:e.owner,clientId:i.clientId},className:`flex items-center gap-3 px-3 py-2.5 text-left text-muted-foreground transition-colors hover:bg-accent/50 hover:text-foreground ${r===n.length-1?"":"border-b"}`,children:[t.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center",children:t.jsx(I,{name:i.title})}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"truncate text-sm font-medium",children:i.title}),t.jsx("p",{className:"truncate text-xs text-muted-foreground",children:M(i)})]}),t.jsx(L,{className:"size-3.5 shrink-0","aria-hidden":"true"})]},i.key))}),t.jsx(m,{to:"/$owner",params:{owner:e.owner},search:{section:"agent"},className:"text-xs text-muted-foreground underline underline-offset-4",children:"See all agents"})]})}export{T as A,E as F,H as a,U as b,G as c,w as f};
|
|
4
|
+
//# sourceMappingURL=agent-client-connections-xvabPpi6.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{j as e,L as o,fp as C,jf as A,a5 as b,jg as w,is as h,i as L,ej as I,fn as p,B as x,bl as u,A as g,aC as j,aD as k,dH as v,dI as S,dJ as P,G as E}from"./index-DB2lVKuV.js";import{A as N,F as _,f as $,b as R,a as B}from"./agent-client-connections-xvabPpi6.js";import{C as U}from"./connector-page-shell-DZjKv9zQ.js";function M(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 T({owner:s,dashed:n=!1}){return e.jsx("div",{className:`overflow-hidden rounded-lg border ${n?"border-dashed":""}`,children:N.map((t,d)=>e.jsxs(o,{to:"/$owner/agents/connect/$clientId",params:{owner:s,clientId:t.id},className:M(d,N.length),children:[e.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center text-muted-foreground",children:e.jsx(C,{name:t.label})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"truncate text-sm font-medium",children:t.label}),e.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.tagline})]}),e.jsx("span",{className:"shrink-0 text-xs",children:"Set up"})]},t.id))})}const D={"owletto-mac":"Mac app","owletto-chrome":"Browser extension","lobu-cli":"CLI","lobu-docker":"Docker"};function O({owner:s,promptUrl:n,clientLabel:t}){const d=A(s,b),r=[`Use my Lobu workspace ${JSON.stringify(s)} through ${w(s)}. If this agent is not connected yet, help me finish connecting it first.`,`Read the relevant setup guidance in Lobu's skill://lobu MCP resource, or at ${new URL("/api/skill/lobu",b).href}. Use search_sdk to discover the current capabilities and setup instructions before choosing methods.`,"Check existing connections and paired devices before proposing new ones. Ask one question at a time about what I want to accomplish, which accounts to use, and what to keep private or share. Follow Lobu's returned setup steps and consent links. Verify access with a small read and tell me what is connected, usable, or still waiting."].join(`
|
|
2
|
+
|
|
3
|
+
`);return e.jsx(h,{title:"Example prompts",children:e.jsx("div",{className:"max-w-2xl space-y-4",children:e.jsx("ul",{"aria-label":"Example prompts",className:"flex flex-col items-start gap-3",children:_.map(({prompt:l,action:c})=>{const m=`${l}
|
|
4
|
+
|
|
5
|
+
${r}`,a=n?.(m);return e.jsxs("li",{className:"min-w-0 w-full",children:[e.jsx("p",{className:L(I,"px-4 py-3 text-sm leading-6"),children:l}),e.jsxs("div",{className:"mt-1 flex flex-wrap items-center justify-start gap-2",children:[e.jsx(p,{text:m,label:"Copy prompt"}),c==="devices"?e.jsx("div",{className:"flex flex-wrap items-center gap-2",children:d.map(i=>e.jsx(x,{asChild:!0,variant:"ghost",size:"sm",className:"h-8 text-xs",children:e.jsxs(o,{to:"/$owner/connectors/app/$appId",params:{owner:s,appId:i.id},children:[e.jsx("span",{"aria-hidden":"true",children:i.icon}),D[i.id]??i.name]})},i.id))}):e.jsx(x,{asChild:!0,variant:"ghost",size:"sm",className:"h-8 text-xs",children:c==="connector"?e.jsxs(o,{to:"/$owner/connectors/create",params:{owner:s},children:[e.jsx(u.connectors.icon,{className:"h-4 w-4"}),"Add connector"]}):e.jsxs(o,{to:"/$owner/automations/new",params:{owner:s},children:[e.jsx(u.automations.icon,{className:"h-4 w-4"}),"Create Automation"]})}),a?e.jsx(x,{asChild:!0,variant:"ghost",size:"sm",className:"h-8 text-xs",children:e.jsxs("a",{href:a,target:"_blank",rel:"noreferrer",children:["Open in ",t??"agent",e.jsx(g,{className:"h-3.5 w-3.5","aria-hidden":"true"})]})}):null]})]},l)})})})})}const f="gap-3 pt-2.5 pb-8";function y({owner:s}){return e.jsx(S,{crumbs:[e.jsx(o,{to:"/$owner",params:{owner:s},search:{section:"agent"},className:P,children:"Agents"},"agents")]})}function H({owner:s}){return e.jsx(j,{className:f,children:e.jsxs(k,{className:"flex flex-1 flex-col gap-6",children:[e.jsx(v,{breadcrumb:e.jsx(y,{owner:s}),icon:e.jsx(u.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(T,{owner:s})]})})}function J({owner:s,clientId:n}){const t=$(n),{data:d}=E(s,{slug:s});if(!t)return e.jsx(j,{className:f,children:e.jsxs(k,{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(o,{to:"/$owner/agents/connect",params:{owner:s},className:"text-sm text-primary hover:underline",children:"Back to agent clients"})]})});const r=w(s),l=R({workspaceName:d?.workspace?.name??s,owner:s,mcpUrl:r,clientLabel:t.id==="other"?void 0:t.label,terminalLogin:t.terminalLogin}),c=t.setupMode==="agent-prompt",m=c?l:t.installText?.(r)??l;return e.jsx(j,{className:f,children:e.jsxs(U,{header:e.jsx(v,{breadcrumb:e.jsx(y,{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:t.label})}),title:t.label,caption:t.description}),children:[e.jsx(h,{title:"Set up",children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(B,{owner:s,clientId:t.id}),(()=>{const a=t.installLink?.(r);return a?e.jsx("div",{children:e.jsx(x,{asChild:!0,children:e.jsxs("a",{href:a.href,target:"_blank",rel:"noreferrer",children:[a.label,e.jsx(g,{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:t.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:m}),e.jsx(p,{text:m,label:c?"Copy setup prompt":"Copy"})]})]}),e.jsx("ol",{className:"space-y-1 text-xs text-muted-foreground",children:t.steps(r).map((a,i)=>e.jsxs("li",{children:[i+1,". ",a]},a))}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[c?null:e.jsx(p,{text:l,label:"Copy setup prompt"}),t.guideLinks.map(a=>e.jsx(x,{asChild:!0,variant:"ghost",size:"sm",className:"h-8 text-xs",children:e.jsxs("a",{href:a.href,target:"_blank",rel:"noreferrer",children:[a.label,e.jsx(g,{className:"ml-1.5 h-3.5 w-3.5"})]})},a.href))]})]})}),e.jsx(O,{owner:s,promptUrl:t.promptUrl,clientLabel:t.label}),e.jsx(h,{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:r})]})})]})})}export{H as A,J as a};
|
|
6
|
+
//# sourceMappingURL=agent-connect-pages-DDPtkcmq.js.map
|
package/dist/owletto/dist/assets/{agent-editor-form-DVFyyMyd.js → agent-editor-form-BrhQbHZg.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=agent-editor-form-
|
|
1
|
+
import{b2 as ne,b3 as ae,j as e,B as A,gg as re,gx as ie,cj as oe,i as le,gZ as de,aW as B,aa as O,ds as ce,io as me,ip as ue,iq as ge,h1 as fe,ir as xe,cd as pe,b4 as he,r as be,bH as k,dL as U,fh as je,ci as ve,b_ as ye,is as V}from"./index-DB2lVKuV.js";import{D as Ne,a as we,e as Ce}from"./definition-comparison-C2mPfIMD.js";import{b as Se,s as Ae}from"./model-selector-CjkBPpjN.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),x=Me(s);let f=x,d=2;for(;r.has(f);){const g=`-${d}`;f=`${x.slice(0,Math.max(1,60-g.length)).replace(/-+$/g,"")||"agent"}${g}`,d+=1}return f}const Pe="__unresolved__";function W(s){return s.endsWith(`/${Pe}`)}function q(s){const t=s.indexOf("/");return t===-1?{slug:s,model:""}:{slug:s.slice(0,t),model:s.slice(t+1)}}function Fe(s,t){const{slug:r,model:x}=q(s);return{provider:t.find(g=>g.value===s)?.provider??t.find(g=>q(g.value).slug===r)?.provider??r,model:x}}function ke({value:s,onChange:t,disabled:r}){const{data:x=[]}=ne(),{data:f=[]}=ae(),d=Se(x,f),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}=Fe(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(A,{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(A,{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(A,{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(A,{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=Ae(i,d)&&!s.includes(i);return e.jsxs(e.Fragment,{children:[m.map(a=>e.jsxs(B,{value:`${a.provider} ${a.model} ${a.value}`,onSelect:()=>{c(a.value),n()},className:"cursor-pointer",children:[e.jsx(O,{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(B,{value:`__custom__ ${i}`,onSelect:()=>{c(i),n()},className:"cursor-pointer",children:[e.jsx(O,{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 H(s){return s.map(({title:t,message:r})=>({title:t.trim(),message:r.trim()})).filter(({title:t,message:r})=>t&&r)}function Z({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:x,onDone:f,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:$}=fe(m?.agentId,{enabled:n}),R=!c&&d==="active",v=R?g:null,E=v?xe(v.proposal):void 0,j=a,J=m?.agentId??"create",o=pe(J,{name:E?.name??m?.name??"",description:E?.description??m?.description??"",identityMd:E?.identityMd??a?.identityMd??"",soulMd:a?.soulMd??"",userMd:a?.userMd??"",models:j?.models??j?.settings?.models??[],showToolCalls:j?.showToolCalls??j?.settings?.showToolCalls??!1,sandboxId:j?.sandboxId??j?.settings?.sandboxId??"builtin",starters:G(a?.starters)}),[h]=o.field("name"),[y]=o.field("description"),[M]=o.field("identityMd"),[I]=o.field("soulMd"),[P]=o.field("userMd"),[N,K]=o.field("models"),[F]=o.field("showToolCalls"),[w]=o.field("sandboxId"),[C]=o.field("starters"),{data:Q}=he({enabled:!c}),X=be.useCallback(async S=>{if(S.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):f?.();return}if(m){if(!a){k.error("Still loading agent settings — try again in a moment");return}if(C.some(({title:p,message:D})=>!!p.trim()!=!!D.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:P.trim(),models:N,authProfiles:a.authProfiles??[],skillsConfig:a.skillsConfig,showToolCalls:F,sandboxId:w==="builtin"?void 0:w,starters:H(C)})]),o.accept(o.values,{name:h.trim()||m.name,description:y.trim()||m.description||"",identityMd:M.trim(),soulMd:I.trim(),userMd:P.trim(),models:N,showToolCalls:F,sandboxId:w,starters:G(H(C))}),k.success("Agent saved"),f?.()}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,f,m,F,I,C,i,u,P]),_=l.isPending||i.isPending||u.isPending,Y=c||!!a;if(n&&$)return e.jsx(Z,{settings:e.jsx(U,{rows:6}),models:e.jsx(U,{rows:2})});const T=_||b,ee=d==="none"||d==="gone",se=h.trim().length>0&&Y;if(R&&v){const{current:S,proposed:p}=je(v);return e.jsx(Ne,{current:S,proposed:p,render:D=>e.jsx(we,{value:D})},v.runId)}const L=S=>e.jsx(Ce,{value:{name:h,description:y,identityMd:M,soulMd:I,userMd:P,models:N,showToolCalls:F,sandboxId:w,starters:C},onChange:o.setValues,section:S,create:c,disabled:T,loading:$,sandboxes:Q?.sandboxes,modelsEditor:e.jsx(ke,{value:N,onChange:K,disabled:T})}),z=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(ve,{visible:o.hasConflict,onReload:o.reset}),c?z:e.jsx(Z,{settings:z,models:te}),ee?e.jsx(ye,{className:c?"mt-6":void 0,onCancel:x,cancelDisabled:_,children:e.jsx(A,{type:"submit",disabled:!o.canSubmit||!se||_,children:c?l.isPending?"Creating...":"Create agent":i.isPending||u.isPending?"Saving...":"Save changes"})}):null]})}export{Re as A};
|
|
2
|
+
//# sourceMappingURL=agent-editor-form-BrhQbHZg.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as e,
|
|
2
|
-
//# sourceMappingURL=agent-loading-shells-
|
|
1
|
+
import{j as e,n as s,i as n}from"./index-DB2lVKuV.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-D3y98xuO.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as e,
|
|
2
|
-
//# sourceMappingURL=agent-permissions-matrix-
|
|
1
|
+
import{j as e,c0 as B,i as A,fH as D,fI as R,fJ as W,hT as V,z as X,bW as J,bV as Y,c6 as G,hU as ee,E as P,bH as F,c7 as se,c1 as ne,c8 as te,c2 as re,r as k,hV as ae,hW as ie,bZ as le,c9 as oe,L as w,hX as ce,hY as de,cZ as K,hZ as ue,h_ as me,h$ as ge,i0 as S,aW as L,X as fe,i1 as q,i2 as z,gZ as xe,ds as he,i3 as ye,i4 as pe,cc as be,i5 as je}from"./index-DB2lVKuV.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=V({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(W,{children:y.reason})]},l):f})})}function M({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=q(n.floor,t,o,a,i),u=z(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=q(t.floor,o,a,i,m),g=z(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(W,{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(K,{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 Q({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 Te({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=X(),m=J(n,t??"",{enabled:!a&&!!t}),u=Y(n,{enabled:a}),{data:l,isLoading:y,isError:h,error:g}=a?u:m,p=a?G(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,T,_,s=null)=>{const c=Ce(x,r,d,s,T,_);f.mutate({resource_class:r,effects:c,entity_type_slug:d,target_agent_id:s})},Z=x.entity_types.length===0?"— none yet":E.length===0?"— all covered":null,I=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(w,{to:"/$owner/settings/organization",params:{owner:n},search:{section:"policies",agent:t},className:$,children:"Organization policies"}),"."]}),_e.map(r=>{const d=r.resourceClass==="entity",T=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(w,{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(K,{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(w,{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(M,{controls:s.owned?e.jsx(Te,{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(M,{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:U=>H(r.resourceClass,s.entityTypeSlug,c,U,s.targetAgentId)}),children:O},c)})})]},s.key)),e.jsxs("div",{className:"border-t",children:[d?e.jsx(Q,{label:"Add type",disabled:b||E.length===0,hint:Z,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,T?e.jsx(Q,{label:"Add agent",disabled:b||N.length===0,hint:I,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,M as a};
|
|
2
|
+
//# sourceMappingURL=agent-permissions-matrix-jQJjSa9i.js.map
|
package/dist/owletto/dist/assets/{agent-skill-context-fqedKd0D.js → agent-skill-context-CCcknBYE.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as p,
|
|
2
|
-
//# sourceMappingURL=agent-skill-context-
|
|
1
|
+
import{r as p,bP as G,h1 as ge,h2 as pe,iq as be,bH as F,j as ve}from"./index-DB2lVKuV.js";import{K as E,d as me,g as he,e as xe,s as Ce,f as Ie,h as Se,i as H,b as ke,c as ye,j as we,k as Re,C as Y,l as Ae}from"./core.esm-B1du4Zwy.js";import{s as De,b as Ee}from"./skill-editor-D_W3QlRz.js";function q(e,n,t){const r=e.slice();return r.splice(t<0?r.length+t:t,0,r.splice(n,1)[0]),r}function Le(e,n){return e.reduce((t,r,s)=>{const u=n.get(r);return u&&(t[s]=u),t},Array(e.length))}function P(e){return e!==null&&e>=0}function Te(e,n){if(e===n)return!0;if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}function Ne(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const V=e=>{let{rects:n,activeIndex:t,overIndex:r,index:s}=e;const u=q(n,r,t),o=n[s],i=u[s];return!i||!o?null:{x:i.left-o.left,y:i.top-o.top,scaleX:i.width/o.width,scaleY:i.height/o.height}},M={scaleX:1,scaleY:1},We=e=>{var n;let{activeIndex:t,activeNodeRect:r,index:s,rects:u,overIndex:o}=e;const i=(n=u[t])!=null?n:r;if(!i)return null;if(s===t){const f=u[o];return f?{x:0,y:t<o?f.top+f.height-(i.top+i.height):f.top-i.top,...M}:null}const m=Oe(u,s,t);return s>t&&s<=o?{x:0,y:-i.height-m,...M}:s<t&&s>=o?{x:0,y:i.height+m,...M}:{x:0,y:0,...M}};function Oe(e,n,t){const r=e[n],s=e[n-1],u=e[n+1];return r?t<n?s?r.top-(s.top+s.height):u?u.top-(r.top+r.height):0:u?u.top-(r.top+r.height):s?r.top-(s.top+s.height):0:0}const W="Sortable",J=G.createContext({activeIndex:-1,containerId:W,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:V,disabled:{draggable:!1,droppable:!1}});function Je(e){let{children:n,id:t,items:r,strategy:s=V,disabled:u=!1}=e;const{active:o,dragOverlay:i,droppableRects:m,over:f,measureDroppableContainers:a}=Ie(),l=Se(W,t),b=i.rect!==null,h=p.useMemo(()=>r.map(d=>typeof d=="object"&&"id"in d?d.id:d),[r]),k=o!=null,w=o?h.indexOf(o.id):-1,C=f?h.indexOf(f.id):-1,R=p.useRef(h),I=!Te(h,R.current),S=C!==-1&&w===-1||I,c=Ne(u);H(()=>{I&&k&&a(h)},[I,h,k,a]),p.useEffect(()=>{R.current=h},[h]);const g=p.useMemo(()=>({activeIndex:w,containerId:l,disabled:c,disableTransforms:S,items:h,overIndex:C,useDragOverlay:b,sortedRects:Le(h,m),strategy:s}),[w,l,c.draggable,c.droppable,S,h,C,m,b,s]);return G.createElement(J.Provider,{value:g},n)}const Pe=e=>{let{id:n,items:t,activeIndex:r,overIndex:s}=e;return q(t,r,s).indexOf(n)},Me=e=>{let{containerId:n,isSorting:t,wasDragging:r,index:s,items:u,newIndex:o,previousItems:i,previousContainerId:m,transition:f}=e;return!f||!r||i!==u&&s===o?!1:t?!0:o!==s&&n===m},je={duration:200,easing:"ease"},Q="transform",$e=Y.Transition.toString({property:Q,duration:0,easing:"linear"}),ze={roleDescription:"sortable"};function Fe(e){let{disabled:n,index:t,node:r,rect:s}=e;const[u,o]=p.useState(null),i=p.useRef(t);return H(()=>{if(!n&&t!==i.current&&r.current){const m=s.current;if(m){const f=Ae(r.current,{ignoreTransform:!0}),a={x:m.left-f.left,y:m.top-f.top,scaleX:m.width/f.width,scaleY:m.height/f.height};(a.x||a.y)&&o(a)}}t!==i.current&&(i.current=t)},[n,t,r,s]),p.useEffect(()=>{u&&o(null)},[u]),u}function Qe(e){let{animateLayoutChanges:n=Me,attributes:t,disabled:r,data:s,getNewIndex:u=Pe,id:o,strategy:i,resizeObserverConfig:m,transition:f=je}=e;const{items:a,containerId:l,activeIndex:b,disabled:h,disableTransforms:k,sortedRects:w,overIndex:C,useDragOverlay:R,strategy:I}=p.useContext(J),S=qe(r,h),c=a.indexOf(o),g=p.useMemo(()=>({sortable:{containerId:l,index:c,items:a},...s}),[l,s,c,a]),d=p.useMemo(()=>a.slice(a.indexOf(o)),[a,o]),{rect:v,node:y,isOver:A,setNodeRef:L}=ke({id:o,data:g,disabled:S.droppable,resizeObserverConfig:{updateMeasurementsFor:d,...m}}),{active:D,activatorEvent:te,activeNodeRect:ne,attributes:re,setNodeRef:K,listeners:se,isDragging:$,over:oe,setActivatorNodeRef:ie,transform:ae}=ye({id:o,data:g,attributes:{...ze,...t},disabled:S.draggable}),le=we(L,K),T=!!D,U=T&&!k&&P(b)&&P(C),X=!R&&$,_=X&&U?ae:null,ce=U?_??(i??I)({rects:w,activeNodeRect:ne,activeIndex:b,overIndex:C,index:c}):null,O=P(b)&&P(C)?u({id:o,items:a,activeIndex:b,overIndex:C}):c,N=D?.id,x=p.useRef({activeId:N,items:a,newIndex:O,containerId:l}),ue=a!==x.current.items,B=n({active:D,containerId:l,isDragging:$,isSorting:T,id:o,index:c,items:a,newIndex:x.current.newIndex,previousItems:x.current.items,previousContainerId:x.current.containerId,transition:f,wasDragging:x.current.activeId!=null}),z=Fe({disabled:!B,index:c,node:y,rect:v});return p.useEffect(()=>{T&&x.current.newIndex!==O&&(x.current.newIndex=O),l!==x.current.containerId&&(x.current.containerId=l),a!==x.current.items&&(x.current.items=a)},[T,O,l,a]),p.useEffect(()=>{if(N===x.current.activeId)return;if(N!=null&&x.current.activeId==null){x.current.activeId=N;return}const fe=setTimeout(()=>{x.current.activeId=N},50);return()=>clearTimeout(fe)},[N]),{active:D,activeIndex:b,attributes:re,data:g,rect:v,index:c,newIndex:O,items:a,isOver:A,isSorting:T,isDragging:$,listeners:se,node:y,overIndex:C,over:oe,setNodeRef:le,setActivatorNodeRef:ie,setDroppableNodeRef:L,setDraggableNodeRef:K,transform:z??ce,transition:de()};function de(){if(z||ue&&x.current.newIndex===c)return $e;if(!(X&&!Re(te)||!f)&&(T||B))return Y.Transition.toString({...f,property:Q})}}function qe(e,n){var t,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(t=e?.draggable)!=null?t:n.draggable,droppable:(r=e?.droppable)!=null?r:n.droppable}}function j(e){if(!e)return!1;const n=e.data.current;return!!(n&&"sortable"in n&&typeof n.sortable=="object"&&"containerId"in n.sortable&&"items"in n.sortable&&"index"in n.sortable)}const Ke=[E.Down,E.Right,E.Up,E.Left],Ze=(e,n)=>{let{context:{active:t,collisionRect:r,droppableRects:s,droppableContainers:u,over:o,scrollableAncestors:i}}=n;if(Ke.includes(e.code)){if(e.preventDefault(),!t||!r)return;const m=[];u.getEnabled().forEach(l=>{if(!l||l!=null&&l.disabled)return;const b=s.get(l.id);if(b)switch(e.code){case E.Down:r.top<b.top&&m.push(l);break;case E.Up:r.top>b.top&&m.push(l);break;case E.Left:r.left>b.left&&m.push(l);break;case E.Right:r.left<b.left&&m.push(l);break}});const f=me({collisionRect:r,droppableRects:s,droppableContainers:m});let a=he(f,"id");if(a===o?.id&&f.length>1&&(a=f[1].id),a!=null){const l=u.get(t.id),b=u.get(a),h=b?s.get(b.id):null,k=b?.node.current;if(k&&h&&l&&b){const C=xe(k).some((d,v)=>i[v]!==d),R=Z(l,b),I=Ue(l,b),S=C||!R?{x:0,y:0}:{x:I?r.width-h.width:0,y:I?r.height-h.height:0},c={x:h.left,y:h.top};return S.x&&S.y?c:Ce(c,S)}}}};function Z(e,n){return!j(e)||!j(n)?!1:e.data.current.sortable.containerId===n.data.current.sortable.containerId}function Ue(e,n){return!j(e)||!j(n)||!Z(e,n)?!1:e.data.current.sortable.index<n.data.current.sortable.index}function Xe(e){return{skillsConfig:De(e)}}function _e(e){return e.repo.startsWith("system/")?["System"]:[]}function et(e,n){return e.filter(t=>!t.hidden&&!n.has(t.repo)).map(t=>({key:t.repo,name:t.name,description:t.description||t.instructions||"Add this skill to give the agent tools and capabilities.",badges:_e(t)}))}function tt(e,n){const t=n.trim().toLowerCase();return t?e.filter(r=>r.name.toLowerCase().includes(t)||r.description.toLowerCase().includes(t)||r.key.toLowerCase().includes(t)):e}function Be(e){const n=e.instructions?.trim();return{repo:e.repo,skillId:e.skillId,name:e.name,description:e.description,instructions:n,content:n||e.name,enabled:!0,system:e.repo.startsWith("system/")}}const ee=p.createContext(null);function nt({agentId:e,children:n}){const{data:t,isLoading:r}=ge(e),{data:s,isLoading:u}=pe(e),o=be(e),i=p.useMemo(()=>t?Ee(t,s?.catalog??[]):[],[t,s]),[m,f]=p.useState(null),a=m??i,l=p.useCallback(async(c,g)=>{if(!t)return F.error("Still loading agent settings — try again in a moment"),!1;try{const d=Xe(c);return await o.mutateAsync(d),F.success(g),!0}catch(d){return F.error(d instanceof Error?d.message:"Failed to save skills"),!1}},[t,o]),b=p.useCallback(c=>{const g=s?.catalog.find(d=>d.repo===c);g&&f(d=>{const v=d??i;return v.some(y=>y.repo===c)?v:[...v,Be(g)]})},[i,s?.catalog]),h=p.useCallback(c=>{const g=c.name.trim();if(!g)return null;const d=`custom/${g.toLowerCase().replace(/[^a-z0-9-]/g,"-")}`,v=c.instructions.trim();return f(y=>{const A=y??i;return A.some(L=>L.repo===d)?A:[...A,{repo:d,skillId:g,name:g,instructions:v||void 0,content:v||g,enabled:!0}]}),d},[i]),k=p.useCallback((c,g)=>{f(d=>(d??i).map(v=>v.repo===c?{...v,...g}:v))},[i]),w=p.useCallback((c,g)=>{f(d=>{const v=d??i,y=v.findIndex(D=>D.repo===c),A=v.findIndex(D=>D.repo===g);if(y<0||A<0||y===A)return v;const L=q(v,y,A);return l(L,"Skill order updated"),L})},[l,i]),C=p.useCallback(async c=>{const g=a.filter(d=>d.repo!==c);return f(g),l(g,"Skill removed")},[l,a]),R=p.useCallback(async(c,g)=>{const d=a.map(v=>v.repo===c?{...v,enabled:g}:v);return f(d),l(d,g?"Skill enabled":"Skill disabled")},[l,a]),I=p.useCallback(async()=>{await l(a,"Skills saved")},[l,a]),S=p.useMemo(()=>({agentId:e,skillRows:a,catalog:s,isLoading:r||u,isSaving:o.isPending,addSkillFromCatalog:b,addCustomSkill:h,updateSkillRow:k,reorderSkills:w,removeSkillAndSave:C,setSkillEnabledAndSave:R,saveSkills:I}),[h,b,e,u,r,w,C,R,I,a,s,o.isPending,k]);return ve.jsx(ee.Provider,{value:S,children:n})}function rt(){const e=p.useContext(ee);if(!e)throw new Error("useAgentSkillEditor must be used within AgentSkillEditorProvider");return e}export{nt as A,Je as S,Ze as a,Qe as b,et as c,tt as f,_e as s,rt as u,We as v};
|
|
2
|
+
//# sourceMappingURL=agent-skill-context-CCcknBYE.js.map
|
package/dist/owletto/dist/assets/{agent-subpage-shell-BUCoY2Nf.js → agent-subpage-shell-6f_53cSf.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as e,
|
|
2
|
-
//# sourceMappingURL=agent-subpage-shell-
|
|
1
|
+
import{j as e,aD as a,i as n}from"./index-DB2lVKuV.js";function c({children:t,className:s}){return e.jsx(a,{className:n("pb-8",s),children:t})}function x({title:t,description:s}){return e.jsxs("div",{className:"mb-2 space-y-1",children:[e.jsx("h1",{className:"text-center text-xl font-semibold",children:t}),e.jsx("p",{className:"text-center text-sm text-muted-foreground",children:s})]})}export{x as A,c as a};
|
|
2
|
+
//# sourceMappingURL=agent-subpage-shell-6f_53cSf.js.map
|