@lobu/runtime-server 20.0.0 → 20.0.1
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 +165 -15
- package/dist/component.json +1 -1
- package/dist/connectors/chat-automation-events.ts +33 -0
- package/dist/connectors/discord.ts +2 -0
- package/dist/connectors/gchat.ts +2 -0
- package/dist/connectors/google_drive.ts +210 -40
- package/dist/connectors/slack-automation-events.ts +0 -31
- package/dist/connectors/slack.ts +2 -2
- package/dist/connectors/teams.ts +2 -0
- package/dist/connectors/telegram.ts +2 -0
- package/dist/connectors/whatsapp.ts +2 -0
- package/dist/dependencies.bun.lock +4 -4
- package/dist/guest.bundle.js +13 -1
- package/dist/owletto/dist/apple-touch-icon.png +0 -0
- package/dist/owletto/dist/assets/{_-WVpKI9q9.js → _-BTmsEMQo.js} +2 -2
- package/dist/owletto/dist/assets/_-ea0K1u_g.js +1 -0
- package/dist/owletto/dist/assets/{_agentId-U2D1yGV_.js → _agentId-DON3NuNk.js} +1 -1
- package/dist/owletto/dist/assets/_agentId-qF8hi8Cf.js +1 -0
- package/dist/owletto/dist/assets/{_automationId-BggDSfkK.js → _automationId-Bprfhhg8.js} +1 -1
- package/dist/owletto/dist/assets/{_connectorKey._connectionId-BalfcgLi.js → _connectorKey._connectionId-75LMK1pB.js} +1 -1
- package/dist/owletto/dist/assets/{_connectorKey.index-IRfifXtO.js → _connectorKey.index-N0fJPz8N.js} +1 -1
- package/dist/owletto/dist/assets/{_conversationId-1GSbJquw.js → _conversationId-BY5q9MHG.js} +1 -1
- package/dist/owletto/dist/assets/{_deploymentId-DpMLDfMN.js → _deploymentId-DFh2d5Pm.js} +1 -1
- package/dist/owletto/dist/assets/_name-OY_X_Zm-.js +1 -0
- package/dist/owletto/dist/assets/{_owner-CZwj2Fc5.js → _owner-B92z-CVu.js} +1 -1
- package/dist/owletto/dist/assets/_skillKey-CeEE23_w.js +1 -0
- package/dist/owletto/dist/assets/{_slug-5SDJ_Zlr.js → _slug-CvHxtUEf.js} +1 -1
- package/dist/owletto/dist/assets/accept-invitation-CXSrxBJN.js +1 -0
- package/dist/owletto/dist/assets/activity-route-view-C9W2Ipni.js +1 -0
- package/dist/owletto/dist/assets/{agent-card-controls-Duh-6QNV.js → agent-card-controls-CLupkefQ.js} +1 -1
- package/dist/owletto/dist/assets/{agent-client-setup-list-u6MIKBDe.js → agent-client-setup-list-DgFv4h0W.js} +1 -1
- package/dist/owletto/dist/assets/{agent-connect-pages-22bJIutE.js → agent-connect-pages-DT8R_qnj.js} +1 -1
- package/dist/owletto/dist/assets/{agent-editor-form-DIo7SWp4.js → agent-editor-form-ayUg3Ws1.js} +1 -1
- package/dist/owletto/dist/assets/{agent-guardrails-route-Duv7Rpd9.js → agent-guardrails-route-D-b6CIt2.js} +1 -1
- package/dist/owletto/dist/assets/{agent-loading-shells-D6mLqg3d.js → agent-loading-shells-DjMpSoub.js} +1 -1
- package/dist/owletto/dist/assets/agent-permissions-matrix-BuGatiEq.js +1 -0
- package/dist/owletto/dist/assets/{agent-skill-context-DjPLOCBS.js → agent-skill-context-DKpIFmCh.js} +1 -1
- package/dist/owletto/dist/assets/{agent-skills-route-CdCVU8ZJ.js → agent-skills-route-DqIMttMK.js} +1 -1
- package/dist/owletto/dist/assets/{agent-subpage-shell-BfomD6m2.js → agent-subpage-shell-Bojgj1uq.js} +1 -1
- package/dist/owletto/dist/assets/{agent-thread-COEinkFo.js → agent-thread-R8Pego9t.js} +2 -2
- package/dist/owletto/dist/assets/agents-C9x76gSX.js +1 -0
- package/dist/owletto/dist/assets/{agents-workbench-BuIaYVFK.js → agents-workbench-BojDv6gX.js} +1 -1
- package/dist/owletto/dist/assets/{app._appId-BULz-FRp.js → app._appId-DNNB5FaI.js} +1 -1
- package/dist/owletto/dist/assets/{automation-detail-content-Ck6YhKpX.js → automation-detail-content-CzqrHc4P.js} +1 -1
- package/dist/owletto/dist/assets/automations-C9x76gSX.js +1 -0
- package/dist/owletto/dist/assets/{calendar-BZSx-Jno.js → calendar-VAaxHxss.js} +1 -1
- package/dist/owletto/dist/assets/{callback-DTbt2OS1.js → callback-0VB9tUCF.js} +1 -1
- package/dist/owletto/dist/assets/{card-BsWGRkun.js → card-HMQT7vU5.js} +1 -1
- package/dist/owletto/dist/assets/{claim-6BXg-jBt.js → claim-C2-YTMw-.js} +1 -1
- package/dist/owletto/dist/assets/{clients-CJI4gT-V.js → clients-C0I3V7XE.js} +1 -1
- package/dist/owletto/dist/assets/{code-editor-C104Bzj2.js → code-editor-hOZHdlxM.js} +1 -1
- package/dist/owletto/dist/assets/connect-DSr_gD8x.js +1 -0
- package/dist/owletto/dist/assets/connect._clientId-CTamwGrw.js +1 -0
- package/dist/owletto/dist/assets/{connected._clientId-L6cpG1ip.js → connected._clientId-BFuU4-8j.js} +1 -1
- package/dist/owletto/dist/assets/{connection-CqXJ7EAc.js → connection-De_2AD46.js} +1 -1
- package/dist/owletto/dist/assets/{connection-feed-detail-DgZF0nux.js → connection-feed-detail-Cbn85fG9.js} +1 -1
- package/dist/owletto/dist/assets/{connector-provenance-DyEHCwrM.js → connector-provenance-B17-ze5S.js} +1 -1
- package/dist/owletto/dist/assets/{connectors-zM9Yv-LM.js → connectors-KnNED_-4.js} +1 -1
- package/dist/owletto/dist/assets/{consent-CvL2QShm.js → consent-BOYb4pNu.js} +1 -1
- package/dist/owletto/dist/assets/{core.esm-DUExfZp5.js → core.esm-COW6Pfy6.js} +1 -1
- package/dist/owletto/dist/assets/{create-BiERXyJD.js → create-BFpUZ_mU.js} +1 -1
- package/dist/owletto/dist/assets/create-CblXKFGZ.js +1 -0
- package/dist/owletto/dist/assets/create-ChUbSYvl.js +1 -0
- package/dist/owletto/dist/assets/create-automation-form-CRenA7Ix.js +1 -0
- package/dist/owletto/dist/assets/{create._connectorKey-DWUsdgk7.js → create._connectorKey-D4dIDQIQ.js} +1 -1
- package/dist/owletto/dist/assets/{cronstrue-Bmga7mGH.js → cronstrue-BrlFh5Jy.js} +1 -1
- package/dist/owletto/dist/assets/deployments-DTFrUY7p.js +1 -0
- package/dist/owletto/dist/assets/{deployments-body-Cw9tB9-c.js → deployments-body-CXqfjLqj.js} +1 -1
- package/dist/owletto/dist/assets/{device-Dy4u9FiS.js → device-B0BBIdVx.js} +1 -1
- package/dist/owletto/dist/assets/{device-pin-tombstone-CmAxFq2z.js → device-pin-tombstone-BBYes4en.js} +1 -1
- package/dist/owletto/dist/assets/{device-rows-CVv5-okl.js → device-rows-E63OZ9Cp.js} +1 -1
- package/dist/owletto/dist/assets/{device._deviceId-DNKPNnE2.js → device._deviceId-JN0cUCGe.js} +1 -1
- package/dist/owletto/dist/assets/{entity-options-C5Mj2ZVk.js → entity-options-qan9-Ycm.js} +1 -1
- package/dist/owletto/dist/assets/{entity-page-BdTxty8B.js → entity-page-CozUOlVP.js} +1 -1
- package/dist/owletto/dist/assets/{entity-type-page-jhiER8wM.js → entity-type-page-xISySjVW.js} +1 -1
- package/dist/owletto/dist/assets/{events-feed-CEQj2uAu.js → events-feed-DmZ3Ig3X.js} +1 -1
- package/dist/owletto/dist/assets/{full-page-spinner-BSp5F0ls.js → full-page-spinner-Q_J5Wcop.js} +1 -1
- package/dist/owletto/dist/assets/guardrails-BB9iOxE3.js +1 -0
- package/dist/owletto/dist/assets/identity-DYbfG4hU.js +1 -0
- package/dist/owletto/dist/assets/index-7d9B918E.js +1 -0
- package/dist/owletto/dist/assets/{index-C2YGEKPo.js → index-BKZMzuMS.js} +7 -7
- package/dist/owletto/dist/assets/index-BsDA0XzK.js +1 -0
- package/dist/owletto/dist/assets/{index-1D5YJuZt.js → index-BwN9pHNs.js} +1 -1
- package/dist/owletto/dist/assets/{index-DFD8r981.js → index-BwVojwkg.js} +1 -1
- package/dist/owletto/dist/assets/index-C4Lz_gB-.js +1 -0
- package/dist/owletto/dist/assets/{index-BO8P4P_v.js → index-C78ucWDF.js} +1 -1
- package/dist/owletto/dist/assets/{index-D6nIYLM-.js → index-C9Dtjaoi.js} +1 -1
- package/dist/owletto/dist/assets/{index-CKWRiFJL.js → index-CGx4og7r.js} +1 -1
- package/dist/owletto/dist/assets/index-CO65Rkad.js +1 -0
- package/dist/owletto/dist/assets/index-CT_kxGkR.js +1 -0
- package/dist/owletto/dist/assets/index-ChcQMdod.css +1 -0
- package/dist/owletto/dist/assets/index-CrKgNtiq.js +1 -0
- package/dist/owletto/dist/assets/{index-CLQ-2wO3.js → index-DLZbFRSM.js} +1 -1
- package/dist/owletto/dist/assets/index-DUIbfL6x.js +1 -0
- package/dist/owletto/dist/assets/{index-DtRraJyI.js → index-DmB-3GhU.js} +1 -1
- package/dist/owletto/dist/assets/{index-CyT-Rwip.js → index-pKfsEvLt.js} +1 -1
- package/dist/owletto/dist/assets/{json-diff-gsOHOgl7.js → json-diff-1FNS_wGA.js} +1 -1
- package/dist/owletto/dist/assets/{list-skeleton-Cs18bNnk.js → list-skeleton-B6gjzr8t.js} +1 -1
- package/dist/owletto/dist/assets/login-S9EGV_EA.js +1 -0
- package/dist/owletto/dist/assets/{logout-DKUiKENJ.js → logout-BOXPSr57.js} +1 -1
- package/dist/owletto/dist/assets/{member-scope-gate-g7uB6GYE.js → member-scope-gate-yGr4lrGD.js} +1 -1
- package/dist/owletto/dist/assets/{memory-browse-page-BUwnO2o2.js → memory-browse-page-5n3MvqdS.js} +2 -2
- package/dist/owletto/dist/assets/{model-selector-DfsEq1db.js → model-selector-9ZRlR7Sa.js} +1 -1
- package/dist/owletto/dist/assets/models-LOhfJ0sb.js +1 -0
- package/dist/owletto/dist/assets/{new-BWw3u5jE.js → new-BeZJOJgR.js} +1 -1
- package/dist/owletto/dist/assets/{new-CW9MfqPX.js → new-D4wlbvAZ.js} +1 -1
- package/dist/owletto/dist/assets/{new-BSo83s7P.js → new-Dxn1qrmS.js} +1 -1
- package/dist/owletto/dist/assets/{oauth-workspace-access-DM3uXXPM.js → oauth-workspace-access-DoE-9F42.js} +1 -1
- package/dist/owletto/dist/assets/{organization-DJtG7bUJ.js → organization-BezNEJK7.js} +1 -1
- package/dist/owletto/dist/assets/{permissions-DcYSiYWQ.js → permissions-GkKtC6a5.js} +1 -1
- package/dist/owletto/dist/assets/{proposal-review-shell-CLrF2OFP.js → proposal-review-shell-Bk9D_9YN.js} +1 -1
- package/dist/owletto/dist/assets/{recent-BAuh77AP.js → recent-BVvscz1V.js} +1 -1
- package/dist/owletto/dist/assets/{renderer-BdAH16jE.js → renderer-CAyr3B3s.js} +2 -2
- package/dist/owletto/dist/assets/reset-password-atCMI5uQ.js +1 -0
- package/dist/owletto/dist/assets/{runs-tK0NlrM5.js → runs-CftQDTkq.js} +1 -1
- package/dist/owletto/dist/assets/runs-panel-BkRtr_C4.js +1 -0
- package/dist/owletto/dist/assets/{runs-table-BQACrHq5.js → runs-table-CWCl38L5.js} +1 -1
- package/dist/owletto/dist/assets/{schema-value-normalization-Dr5Osu6u.js → schema-value-normalization-C9Lm83-q.js} +1 -1
- package/dist/owletto/dist/assets/settings-BKMOjfYf.js +1 -0
- package/dist/owletto/dist/assets/{settings-D9ezdxp8.js → settings-CgTgofgd.js} +1 -1
- package/dist/owletto/dist/assets/skills-DWr8qR3U.js +1 -0
- package/dist/owletto/dist/assets/{switch-C1vQiKIo.js → switch-BOGbkDQb.js} +1 -1
- package/dist/owletto/dist/assets/{use-mention-search-CCqN_8wM.js → use-mention-search-C9ckRw0s.js} +2 -2
- package/dist/owletto/dist/favicon.ico +0 -0
- package/dist/owletto/dist/favicon.svg +5 -6
- package/dist/owletto/dist/fonts/dm-mono-latin-500-normal.woff2 +0 -0
- package/dist/owletto/dist/fonts/dm-sans-latin-400-normal.woff2 +0 -0
- package/dist/owletto/dist/fonts/dm-sans-latin-600-normal.woff2 +0 -0
- package/dist/owletto/dist/index.html +8 -8
- package/dist/owletto/dist/lobu-logo.svg +16 -0
- package/dist/server-main.bundle.mjs +2415 -1268
- package/npm-shrinkwrap.json +17 -17
- package/package.json +1 -1
- package/vendor/connector-sdk/dist/index.d.ts +1 -1
- package/vendor/connector-sdk/dist/logger.js +4 -1
- package/vendor/connector-sdk/dist/reaction-sdk.d.ts +9 -0
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/core/dist/contracts/tools/manage-automations.d.ts +16 -0
- package/vendor/core/dist/contracts/tools/manage-automations.js +12 -3
- package/vendor/core/dist/contracts/worker/protocol.d.ts +9 -0
- package/vendor/core/dist/contracts/worker/protocol.js +10 -1
- package/vendor/core/dist/logger.js +4 -2
- package/vendor/core/package.json +1 -1
- package/dist/owletto/dist/assets/_-BjTOSrPW.js +0 -1
- package/dist/owletto/dist/assets/_agentId-E5FuvQ_W.js +0 -1
- package/dist/owletto/dist/assets/_name-Ca5sRv2h.js +0 -1
- package/dist/owletto/dist/assets/_skillKey-BnDO8aEk.js +0 -1
- package/dist/owletto/dist/assets/accept-invitation-tMqF2W59.js +0 -1
- package/dist/owletto/dist/assets/activity-route-view-DSJj0TBg.js +0 -1
- package/dist/owletto/dist/assets/agent-permissions-matrix-QvA6xL8Q.js +0 -1
- package/dist/owletto/dist/assets/agents-DztpCplG.js +0 -1
- package/dist/owletto/dist/assets/automations-DztpCplG.js +0 -1
- package/dist/owletto/dist/assets/connect-9tegWawc.js +0 -1
- package/dist/owletto/dist/assets/connect._clientId-Dh6e0n6A.js +0 -1
- package/dist/owletto/dist/assets/create-BL_WcDoF.js +0 -1
- package/dist/owletto/dist/assets/create-Dyz5QbON.js +0 -1
- package/dist/owletto/dist/assets/create-automation-form-DCYFtK4q.js +0 -1
- package/dist/owletto/dist/assets/deployments-h8jIWEVy.js +0 -1
- package/dist/owletto/dist/assets/guardrails-DrOhJHr5.js +0 -1
- package/dist/owletto/dist/assets/identity-BTE8ZlL9.js +0 -1
- package/dist/owletto/dist/assets/index-Be4XiWxU.js +0 -1
- package/dist/owletto/dist/assets/index-CPqabIYs.css +0 -1
- package/dist/owletto/dist/assets/index-CS1UPepo.js +0 -1
- package/dist/owletto/dist/assets/index-DGinfBZr.js +0 -1
- package/dist/owletto/dist/assets/index-DJs1EEbu.js +0 -1
- package/dist/owletto/dist/assets/index-DZb_utnT.js +0 -1
- package/dist/owletto/dist/assets/index-RH7aiqHs.js +0 -1
- package/dist/owletto/dist/assets/index-xwlLZWva.js +0 -1
- package/dist/owletto/dist/assets/login-B3RTCs3p.js +0 -1
- package/dist/owletto/dist/assets/models-CZZt4VcZ.js +0 -1
- package/dist/owletto/dist/assets/reset-password-DjgDJAYG.js +0 -1
- package/dist/owletto/dist/assets/runs-panel-Dqq-0G9H.js +0 -1
- package/dist/owletto/dist/assets/settings-DZifZxa5.js +0 -1
- package/dist/owletto/dist/assets/skills-CNtoLPU_.js +0 -1
- package/dist/owletto/dist/fonts/geist-pixel-square.woff2 +0 -0
- package/dist/owletto/dist/fonts/inter-latin-400-normal.woff2 +0 -0
- package/dist/owletto/dist/fonts/inter-latin-500-normal.woff2 +0 -0
- package/dist/owletto/dist/fonts/inter-latin-600-normal.woff2 +0 -0
- package/dist/owletto/dist/fonts/jizBRFtNs2ka5fXjeivQ4LroWlx-6zUTjnTLgNs.woff2 +0 -0
- package/dist/owletto/dist/fonts/jizBRFtNs2ka5fXjeivQ4LroWlx-6zsTjnTLgNuZ5w.woff2 +0 -0
- package/dist/owletto/dist/fonts/jizHRFtNs2ka5fXjeivQ4LroWlx-6zAjgn7Motmp5r61.woff2 +0 -0
- package/dist/owletto/dist/fonts/jizHRFtNs2ka5fXjeivQ4LroWlx-6zAjjH7Motmp5g.woff2 +0 -0
- package/dist/owletto/dist/fonts/tDbV2o-flEEny0FZhsfKu5WU4xD0OwGtT0rU3BE.woff2 +0 -0
- package/dist/owletto/dist/fonts/tDbV2o-flEEny0FZhsfKu5WU4xD1OwGtT0rU3BE.woff2 +0 -0
- package/dist/owletto/dist/fonts/tDbV2o-flEEny0FZhsfKu5WU4xD2OwGtT0rU3BE.woff2 +0 -0
- package/dist/owletto/dist/fonts/tDbV2o-flEEny0FZhsfKu5WU4xD4OwGtT0rU3BE.woff2 +0 -0
- package/dist/owletto/dist/fonts/tDbV2o-flEEny0FZhsfKu5WU4xD7OwGtT0rU.woff2 +0 -0
- package/dist/owletto/dist/fonts/tDbV2o-flEEny0FZhsfKu5WU4xD_OwGtT0rU3BE.woff2 +0 -0
- package/dist/owletto/dist/fonts/tDbX2o-flEEny0FZhsfKu5WU4xD-Cw2nSGjW7BDEAQ.woff2 +0 -0
- package/dist/owletto/dist/fonts/tDbX2o-flEEny0FZhsfKu5WU4xD-Cw6nSGjW7BDEAQ.woff2 +0 -0
- package/dist/owletto/dist/fonts/tDbX2o-flEEny0FZhsfKu5WU4xD-CwCnSGjW7BDEAQ.woff2 +0 -0
- package/dist/owletto/dist/fonts/tDbX2o-flEEny0FZhsfKu5WU4xD-CwOnSGjW7BA.woff2 +0 -0
- package/dist/owletto/dist/fonts/tDbX2o-flEEny0FZhsfKu5WU4xD-CwenSGjW7BDEAQ.woff2 +0 -0
- package/dist/owletto/dist/fonts/tDbX2o-flEEny0FZhsfKu5WU4xD-CwynSGjW7BDEAQ.woff2 +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b8 as g,b9 as N,j as s,de as y,df as m,aO as p,aj as f,B as w,eq as b}from"./index-
|
|
1
|
+
import{b8 as g,b9 as N,j as s,de as y,df as m,aO as p,aj as f,B as w,eq as b}from"./index-BKZMzuMS.js";function M(o,r){const l=new Map(r.map(e=>[e.slug,e])),i=new Map,d=e=>{const a=e.model?.trim();if(!a)return;const t=`${e.slug}/${a}`;i.has(t)||i.set(t,{value:t,provider:e.provider,model:a,isDefault:e.isDefault})};for(const e of o){const a=l.get(e.kind)??l.get(e.slug),t={slug:e.slug,provider:e.displayName||e.slug,isDefault:e.isDefault};d({...t,model:e.capabilities.text?.model}),d({...t,model:a?.defaultModel});for(const x of a?.models??[])d({...t,model:x})}for(const e of r){if(!e.systemAvailable)continue;const a={slug:e.slug,provider:e.displayName||e.slug,isDefault:!1};d({...a,model:e.defaultModel});for(const t of e.models)d({...a,model:t})}return[...i.values()]}function _(o,r){const l=o.trim();return l.length>0&&l!=="auto"&&!r.some(i=>i.value===l)}function S({value:o,onChange:r,placeholder:l,disabled:i,className:d}){const{data:e=[]}=g(),{data:a=[]}=N(),t=M(e,a),x=t.find(c=>c.value===o),h=o==="auto"?"auto":x?.value??o;return s.jsx(y,{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:c=>s.jsxs(w,{type:"button",variant:"outline",role:"combobox","aria-expanded":c,disabled:i,className:f("w-full justify-between font-normal",o?"":"text-muted-foreground",d),children:[s.jsx("span",{className:"truncate",children:o?h:l}),s.jsx(b,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]}),children:(c,j)=>{const u=j.trim(),v=_(u,t);return s.jsxs(s.Fragment,{children:[s.jsxs(m,{value:"__inherit__ use default inherit",onSelect:()=>{r(""),c()},className:"cursor-pointer",children:[s.jsx(p,{className:f("mr-2 h-4 w-4",o===""?"opacity-100":"opacity-0")}),s.jsx("span",{className:"text-muted-foreground",children:l})]}),s.jsxs(m,{value:"auto newest latest",onSelect:()=>{r("auto"),c()},className:"cursor-pointer",children:[s.jsx(p,{className:f("mr-2 h-4 w-4",o==="auto"?"opacity-100":"opacity-0")}),s.jsxs("span",{children:["auto"," ",s.jsx("span",{className:"text-muted-foreground text-xs",children:"(newest for the provider)"})]})]}),t.map(n=>s.jsxs(m,{value:`${n.provider} ${n.model} ${n.value}`,onSelect:()=>{r(n.value),c()},className:"cursor-pointer",children:[s.jsx(p,{className:f("mr-2 h-4 w-4",o===n.value?"opacity-100":"opacity-0")}),s.jsxs("span",{className:"truncate",children:[n.provider," ",s.jsx("span",{className:"text-muted-foreground text-xs",children:n.model}),n.isDefault?s.jsx("span",{className:"ml-1.5 text-muted-foreground text-xs",children:"· org default"}):null]})]},n.value)),v?s.jsxs(m,{value:`__custom__ ${u}`,onSelect:()=>{r(u),c()},className:"cursor-pointer",children:[s.jsx(p,{className:"mr-2 h-4 w-4 opacity-0"}),s.jsxs("span",{children:["Use ",s.jsx("span",{className:"font-mono text-xs",children:u})]})]}):null]})}})}export{S as M,M as b,_ as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{hs as e,j as r}from"./index-BKZMzuMS.js";import{a as s}from"./agents-workbench-BojDv6gX.js";import"./agent-editor-form-ayUg3Ws1.js";import"./model-selector-9ZRlR7Sa.js";import"./proposal-review-shell-Bk9D_9YN.js";import"./runs-CftQDTkq.js";function g(){const{owner:o,agentId:t}=e.useParams();return r.jsx(s,{owner:o,agentId:t,tab:"models"})}export{g as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{gb as l,a2 as u,cU as p,Y as x,bM as b,bv as h,j as e,bc as A,g2 as L,aT as f,g3 as j,L as C,g4 as w,cr as N,bm as S,cZ as k}from"./index-
|
|
1
|
+
import{gb as l,a2 as u,cU as p,Y as x,bM as b,bv as h,j as e,bc as A,g2 as L,aT as f,g3 as j,L as C,g4 as w,cr as N,bm as S,cZ as k}from"./index-BKZMzuMS.js";import{A as y}from"./agent-editor-form-ayUg3Ws1.js";import"./model-selector-9ZRlR7Sa.js";const E="flex min-h-0 flex-1 flex-col gap-3 px-4 pt-4 pb-8 lg:px-6";function O(){const{owner:a}=l.useParams(),n=u(),r=p(),{isAuthenticated:o}=x(),{isMember:i,isLoading:c}=b(),s=o&&i,{data:g=[],isLoading:m}=h({enabled:s});return e.jsx("div",{className:E,children:e.jsxs(A,{className:"flex flex-1 flex-col gap-6",children:[e.jsx(L,{breadcrumb:e.jsx(j,{crumbs:[e.jsx(C,{to:"/$owner/agents",params:{owner:a},className:w,children:"Agents"},"agents")]}),icon:e.jsx(f.agents.icon,{className:"h-6 w-6"}),title:"Build a managed agent",caption:"Create an agent that Lobu runs and manages for this workspace."}),c||s&&m?e.jsx(N,{rows:1}):s?e.jsx(y,{mode:{kind:"create"},existingAgentIds:g.map(t=>t.agentId),onCreated:async t=>{const d=["agents",a];await r.refetchQueries({queryKey:d,exact:!0}),await n({to:"/$owner/agents/$agentId/settings",params:{owner:a,agentId:t},search:{run_id:void 0}})}}):e.jsx(S,{icon:k,title:"Workspace membership required",description:"Only workspace members can build managed agents."})]})})}export{O as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a2 as z,Y as F,a9 as L,r,j as e,aa as v,ab as S,B as U,ac as N,ad as E}from"./index-
|
|
1
|
+
import{a2 as z,Y as F,a9 as L,r,j as e,aa as v,ab as S,B as U,ac as N,ad as E}from"./index-BKZMzuMS.js";import{C as A,a as I,b as T,c as k}from"./card-HMQT7vU5.js";import{F as B}from"./full-page-spinner-Q_J5Wcop.js";function c(l){return l.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function H(){const l=z(),{session:u,isReady:d}=F(),{slug:n,name:i}=L.useSearch(),[m,b]=r.useState(i||n||""),[g,h]=r.useState(n||(i?c(i):"")),[y,C]=r.useState(!!n),[x,o]=r.useState(null),[f,p]=r.useState(!1),j=r.useRef(!1);if(r.useEffect(()=>{if(!d||u||j.current)return;j.current=!0;const a=new URL("/orgs/new",window.location.origin);n&&a.searchParams.set("slug",n),i&&a.searchParams.set("name",i);const s=new URL("/auth/login",window.location.origin);s.searchParams.set("callbackUrl",`${a.pathname}${a.search}`),window.location.assign(s.toString())},[d,u,n,i]),!d||!u)return e.jsx(B,{});const P=a=>{const s=E(a);if(s.kind==="cross-host"){window.location.assign(s.href);return}l({to:s.to})},R=async a=>{a.preventDefault(),o(null);const s=m.trim(),w=(g.trim()||c(s)).trim();if(!s){o("Name is required");return}if(!w){o("Slug is required");return}p(!0);try{const t=await N.create({name:s,slug:w});if(t.error){o(t.error.message||"Failed to create organization");return}t.data&&(await N.setActive({organizationId:t.data.id}),P(t.data.slug))}catch(t){o(t instanceof Error?t.message:"An error occurred")}finally{p(!1)}};return e.jsx("div",{className:"container mx-auto max-w-md px-4 py-10",children:e.jsxs(A,{children:[e.jsx(I,{children:e.jsx(T,{children:"Create organization"})}),e.jsx(k,{children:e.jsxs("form",{onSubmit:R,className:"space-y-4",children:[x&&e.jsx("div",{className:"rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive",children:x}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(v,{htmlFor:"org-name",children:["Name",e.jsx("span",{className:"ml-1 text-destructive",children:"*"})]}),e.jsx(S,{id:"org-name",value:m,onChange:a=>{b(a.target.value),y||h(c(a.target.value))},placeholder:"Acme Inc.",autoFocus:!0})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(v,{htmlFor:"org-slug",children:["Slug",e.jsx("span",{className:"ml-1 text-destructive",children:"*"})]}),e.jsx(S,{id:"org-slug",value:g,onChange:a=>{C(!0),h(c(a.target.value))},placeholder:"acme"}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:["Used in URLs and as the org id in ",e.jsx("code",{children:"lobu.toml"}),". Lowercase letters, numbers, and hyphens."]})]}),e.jsx("div",{className:"flex justify-end",children:e.jsx(U,{type:"submit",disabled:f,children:f?"Creating…":"Create organization"})})]})})]})})}export{H as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a2 as v,bM as j,a as w,r as l,j as e,B as N,fa as y,bH as _,S as f,g9 as p,aV as b}from"./index-
|
|
1
|
+
import{a2 as v,bM as j,a as w,r as l,j as e,B as N,fa as y,bH as _,S as f,g9 as p,aV as b}from"./index-BKZMzuMS.js";import{C,A}from"./create-automation-form-CRenA7Ix.js";import"./cronstrue-BrlFh5Jy.js";import"./entity-options-qan9-Ycm.js";import"./connection-label-BobuYiAG.js";import"./switch-BOGbkDQb.js";import"./device-automation-BIjs7DZJ.js";import"./model-selector-9ZRlR7Sa.js";import"./skill-editor-D_W3QlRz.js";import"./code-editor-hOZHdlxM.js";import"./index-OUb5Mlez.js";import"./index-Vcq4gwWv.js";import"./use-mention-search-C9ckRw0s.js";function S(s){return s.includes(":")?s.slice(s.indexOf(":")+1):s}function k({prefillAgentId:s,onCancel:t,initialTriggers:x}){const{org:c}=j(),[o,u]=l.useState({ready:!1,triggers:[]}),[m,g]=l.useState(),d=l.useCallback(n=>{u(i=>JSON.stringify(i)===JSON.stringify(n)?i:n)},[]),r=m??x;return e.jsx(C,{organizationId:c?.id??"",prefillAgentId:s,onClose:t,onPrefillTriggers:n=>g(n.length>0?n:void 0),onSuccess:t,hideHeader:!0,hideCancel:!0,submitLabel:"Create Automation",submitDisabled:!o.ready,createFields:{triggers:o.triggers},triggerFields:e.jsx(A,{organizationId:c?.id??null,initialTriggers:r,onChange:d},JSON.stringify(r??"new"))})}function T({owner:s,prefilled:t}){const x=v(),{org:c}=j(),o=w(c?.id??null,{status:"active",limit:500}),u=!!(t?.platform&&(t.listen||t.resource)),m=l.useMemo(()=>{if(!t?.platform||!t.listen&&!t.resource)return;const r=o.data??[],n=t.connection?r.find(a=>String(a.id)===t.connection):(()=>{const a=r.filter(h=>h.connector_key!==t.platform?!1:t.resource?!0:h.facets.chat&&(h.external_tenant_id??"")===(t.team??""));return a.length===1?a[0]:void 0})(),i=t.events?.split(",").map(a=>a.trim()).filter(Boolean)??[];return[{kind:"event",source:"connector",connector_key:t.platform,...n?{connection_id:n.id}:{},event_types:i.length>0?i:t.listen?["message.created"]:[],match:t.resource?{resource_ref:t.resource,...t.resource_type?{resource_type:t.resource_type}:{}}:{channel_id:S(t.listen??"")},execution:"turn",active_run:t.listen?"steer":"queue",output:t.listen?"reply_to_source":"silent",skip_if_unchanged:!t.listen}]},[o.data,t]),g=()=>void x({to:"/$owner/automations",params:{owner:s}}),d=m?t?.resource?`React to changes on ${t.label??t.resource}.`:`React to messages in ${t?.label??t?.listen}.`:u&&!o.isLoading?"Choose the matching connection and event, then define the reaction.":"Start from a template, from scratch, or clone an existing Automation.";return e.jsx("div",{className:"flex flex-1 flex-col gap-6 px-4 py-6 lg:px-6",children:e.jsxs("div",{className:"mx-auto flex w-full min-w-0 max-w-3xl flex-col gap-4",children:[e.jsx("div",{className:"flex flex-wrap items-center justify-between gap-3",children:e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[e.jsxs(N,{type:"button",variant:"ghost",size:"sm",className:"h-8 gap-1.5 text-muted-foreground hover:text-foreground",onClick:g,children:[e.jsx(y,{className:"h-3.5 w-3.5"}),"Automations"]}),e.jsxs("h1",{className:"flex min-w-0 items-center gap-2 truncate font-display text-xl font-semibold",children:[e.jsx(_,{className:"h-4 w-4 shrink-0 text-muted-foreground","aria-hidden":!0}),"New automation"]})]})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:d}),u&&o.isLoading?e.jsxs("div",{className:"space-y-3",children:[e.jsx(f,{className:"h-10 w-full"}),e.jsx(f,{className:"h-32 w-full"})]}):e.jsx(k,{prefillAgentId:t?.agent,onCancel:g,initialTriggers:m})]})})}function M(){const{owner:s}=p.useParams(),t=p.useSearch();return e.jsx(b,{owner:s,children:()=>e.jsx(T,{owner:s,prefilled:t})})}export{M as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,af as k,aj as $,ak as E,B as R,r as p,al as P}from"./index-C2YGEKPo.js";const W=["mcp:read","mcp:write","mcp:admin"],O=[{value:"read",title:"Read only",description:"Search and view authorized workspace data."},{value:"write",title:"Read and make changes",description:"Includes read access. Create and update authorized workspace data."},{value:"admin",title:"Administer workspaces",description:"Includes read and write access. Manage administrator-only settings.",risk:"high"}],C={read:0,write:1,admin:2};function I(s){return s.includes("mcp:admin")?"admin":s.includes("mcp:write")?"write":s.includes("mcp:read")?"read":null}function F(s,n){const r=s.filter(x=>!W.includes(x));if(!n)return r;const o=I(s);return!o||C[n]>C[o]?r:["mcp:read",...n==="write"||n==="admin"?["mcp:write"]:[],...n==="admin"?["mcp:admin"]:[],...r]}function B({idPrefix:s,clientName:n,requestedScopes:r,accessLevel:o,onAccessLevelChange:x,sensitiveScopesAcknowledged:g=!1,onSensitiveScopesAcknowledgedChange:v,disabled:N=!1}){const f=I(r),j=r.includes("profile:read"),m=r.includes("device_worker:run"),i=r.includes("connections:token"),l=m||i,c=r.filter(t=>!W.includes(t)&&t!=="profile:read"&&t!=="device_worker:run"&&t!=="connections:token");return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("section",{"aria-labelledby":`${s}-application`,className:"space-y-2",children:[e.jsx("p",{id:`${s}-application`,className:"text-sm font-medium",children:"Application"}),e.jsxs("div",{className:"rounded-lg border p-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"text-sm font-semibold text-foreground",children:n||"Unnamed application"}),e.jsx(k,{variant:"destructive",children:"Unverified"})]}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"This name was supplied by the requester. Lobu has not verified the publisher."})]})]}),f&&e.jsxs("fieldset",{className:"space-y-2",disabled:N,children:[e.jsx("legend",{className:"text-sm font-medium",children:"Access level"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Choose the maximum access this application should receive."}),e.jsx("div",{className:"space-y-2",children:O.filter(t=>C[t.value]<=C[f]).map(t=>{const h=`${s}-access-${t.value}`,b=o===t.value;return e.jsxs("label",{htmlFor:h,className:$("flex cursor-pointer items-start gap-3 rounded-md border p-3 transition-colors",b&&"border-primary bg-primary/5"),children:[e.jsx("input",{id:h,type:"radio",name:`${s}-access-level`,value:t.value,checked:b,onChange:()=>x(t.value),className:"mt-1 h-4 w-4 accent-primary"}),e.jsxs("span",{className:"min-w-0 space-y-0.5",children:[e.jsxs("span",{className:"flex flex-wrap items-center gap-2 text-sm font-medium text-foreground",children:[t.title,t.risk==="high"&&e.jsx(k,{variant:"destructive",children:"High risk"})]}),e.jsx("span",{className:"block text-sm text-muted-foreground",children:t.description})]})]},t.value)})})]}),j&&e.jsxs("section",{"aria-labelledby":`${s}-profile`,className:"space-y-2",children:[e.jsx("p",{id:`${s}-profile`,className:"text-sm font-medium",children:"Account information"}),e.jsxs("div",{className:"rounded-md border p-3",children:[e.jsxs("p",{className:"flex flex-wrap items-center gap-2 text-sm font-medium text-foreground",children:["Basic profile",e.jsx(k,{variant:"secondary",children:"Included"})]}),e.jsx("p",{className:"mt-0.5 text-sm text-muted-foreground",children:"See your basic Lobu identity and the names and slugs of workspaces you belong to."})]})]}),c.length>0&&e.jsxs("section",{"aria-labelledby":`${s}-additional`,className:"space-y-2",children:[e.jsx("p",{id:`${s}-additional`,className:"text-sm font-medium",children:"Additional permissions"}),e.jsx("ul",{className:"space-y-2",children:c.map(t=>e.jsx("li",{className:"rounded-md border p-3 font-mono text-xs text-foreground",children:t},t))})]}),l&&e.jsxs("section",{className:"space-y-3 rounded-md border border-destructive/40 bg-destructive/5 p-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Device capabilities"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"These capabilities are fixed by the device request and cannot be reduced here."})]}),e.jsxs("ul",{className:"space-y-2",children:[m&&e.jsxs("li",{className:"rounded-md bg-background/70 p-3",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Operate this device"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Run jobs and Automations through capabilities advertised by this device."})]}),i&&e.jsxs("li",{className:"rounded-md bg-background/70 p-3",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Use connected services"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Request short-lived access for services you connected to Lobu."})]})]}),e.jsxs("div",{className:"flex items-start gap-3 rounded-md border bg-background p-3",children:[e.jsx(E,{id:`${s}-sensitive-acknowledgement`,checked:g,disabled:N,onCheckedChange:t=>v?.(t===!0),className:"mt-0.5"}),e.jsx("label",{htmlFor:`${s}-sensitive-acknowledgement`,className:"cursor-pointer text-sm font-medium text-foreground",children:"I initiated this request and confirmed that the device code matches."})]})]})]})}function q({idPrefix:s,orgList:n,selectedOrgIds:r,onWorkspaceAccessChange:o,onSelectedOrgChange:x,orgsLoading:g,orgsError:v,onRetry:N,disabled:f=!1,personalRequired:j=!1,allowMultiple:m}){const i=`${s}-workspace-access-legend`,l=r.length===n.length;return g?e.jsxs("section",{"aria-labelledby":i,className:"space-y-2",children:[e.jsx("p",{id:i,className:"text-sm font-medium",children:"Workspace access"}),e.jsx("p",{role:"status","aria-live":"polite",className:"text-sm text-muted-foreground",children:"Loading your workspaces..."})]}):v?e.jsxs("section",{"aria-labelledby":i,className:"space-y-2",children:[e.jsx("p",{id:i,className:"text-sm font-medium",children:"Workspace access"}),e.jsxs("div",{role:"alert",className:"rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive",children:[e.jsx("p",{children:"Workspaces could not be loaded. Approval is unavailable until they load."}),e.jsx(R,{type:"button",variant:"outline",size:"sm",className:"mt-2",onClick:N,children:"Retry"})]})]}):n.length===0?e.jsxs("section",{"aria-labelledby":i,className:"space-y-2",children:[e.jsx("p",{id:i,className:"text-sm font-medium",children:"Workspace access"}),e.jsx("p",{role:"alert",className:"rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive",children:"No member workspaces are available for this connection."})]}):e.jsxs("fieldset",{className:"space-y-3",disabled:f,children:[e.jsx("legend",{id:i,className:"sr-only",children:"Workspace access"}),e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:"Workspaces"}),e.jsx("p",{className:"mt-0.5 text-sm text-muted-foreground",children:m?"Choose where this application can operate.":"Choose one workspace this application can access."})]}),m&&!l&&e.jsxs(R,{type:"button",variant:"outline",size:"sm",onClick:()=>o("all_current"),children:["Select all ",n.length]})]}),j&&e.jsxs("div",{className:"rounded-md border border-primary/20 bg-primary/5 p-3 text-sm",children:[e.jsx("p",{className:"font-medium text-foreground",children:"Device home: Personal workspace"}),e.jsx("p",{className:"mt-0.5 text-muted-foreground",children:m?"Fixed for device data. Additional workspaces grant MCP access only.":"Device data stays in your personal workspace."})]}),e.jsx("div",{className:"space-y-2",children:n.map(c=>{const t=`${s}-workspace-${c.id}`,h=j&&c.isPersonal,b=r.includes(c.id);return e.jsxs("div",{className:$("flex items-start gap-3 rounded-md border p-3 transition-colors",b&&"border-primary/40 bg-primary/5"),children:[e.jsx(E,{id:t,checked:b,disabled:f||h||j&&!m,onCheckedChange:S=>x(c.id,S===!0),className:"mt-0.5"}),e.jsxs("label",{htmlFor:t,className:"min-w-0 flex-1 cursor-pointer space-y-0.5",children:[e.jsxs("span",{className:"flex flex-wrap items-center gap-2 text-sm font-medium text-foreground",children:[c.name,c.isPersonal&&e.jsx(k,{variant:"outline",children:"Personal"}),h&&e.jsx(k,{variant:"secondary",children:"Required"})]}),e.jsx("span",{className:"block text-xs text-muted-foreground",children:c.slug})]})]},c.id)})}),e.jsxs("div",{className:"flex items-center justify-between gap-3 text-xs text-muted-foreground",children:[e.jsxs("p",{"aria-live":"polite",children:[r.length," of ",n.length," workspaces selected."]}),l&&e.jsx(k,{variant:"secondary",children:"All currently available"})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Workspaces you join later are not added automatically."}),r.length===0&&e.jsx("p",{role:"alert",className:"text-xs text-destructive",children:"Choose at least one workspace."})]})}function D(s,n){p.useEffect(()=>{if(n||s)return;const r=new URL("/auth/login",window.location.origin);r.searchParams.set("callbackUrl",window.location.href),window.location.href=r.toString()},[s,n])}function U(s,n){return s.length===n.length&&s.every((r,o)=>r===n[o])}function T(s={}){const{requirePersonal:n=!1,allowMultiple:r=!0}=s,{data:o,error:x,isPending:g,refetch:v}=P(),[N,f]=p.useState("selected"),[j,m]=p.useState([]),i=p.useRef(!1),l=p.useMemo(()=>o?o.filter(a=>a.is_member).map(a=>({id:a.id,name:a.name,slug:a.slug,isPersonal:a.is_personal===!0})):[],[o]),c=l.find(a=>a.isPersonal)?.id??null,t=p.useRef(l);t.current=l;const h=x instanceof Error?x.message:x?"Unable to load workspaces":null;p.useEffect(()=>{if(g||h)return;const a=l.map(d=>d.id),u=new Set(a);m(d=>{const w=i.current?d.filter(A=>u.has(A)):[c??a[0]].filter(A=>!!A);return i.current=!0,U(d,w)?d:w})},[l,h,g,c]);const b=p.useCallback(a=>{if(a==="all_current"){if(!r)return;m(t.current.map(u=>u.id))}f(a)},[r]),S=p.useCallback((a,u)=>{t.current.some(d=>d.id===a)&&(n&&(a===c||!r)||(f("selected"),m(d=>u?r?d.includes(a)?d:[...d,a]:[a]:d.filter(w=>w!==a))))},[r,c,n]),y=p.useMemo(()=>{const a=new Set(j);return n&&c&&a.add(c),l.filter(u=>a.has(u.id)).map(u=>u.id)},[j,l,c,n]),L=p.useCallback(()=>{const a=t.current,u=a.find(d=>d.isPersonal)?.id??a[0]?.id;i.current=a.length>0,f("selected"),m(u?[u]:[])},[]),_=!g&&!h&&l.length>0&&y.length>0&&(r||y.length===1)&&(!n||c!==null&&y.includes(c)),M=p.useCallback(()=>{v()},[v]);return{orgList:l,workspaceAccess:N,setWorkspaceAccess:b,selectedOrgIds:y,toggleSelectedOrgId:S,resetWorkspaceSelection:L,personalOrgId:c,orgsLoading:g,orgsError:h,retryOrgs:M,workspaceSelectionReady:_}}function V(s){if(!s)return null;try{return new URL(s).pathname.match(/^\/mcp\/([^/]+)$/)?.[1]?.trim()||null}catch{return null}}export{B as A,q as W,I as a,D as b,V as g,F as s,T as u};
|
|
1
|
+
import{j as e,af as k,aj as $,ak as E,B as R,r as p,al as P}from"./index-BKZMzuMS.js";const W=["mcp:read","mcp:write","mcp:admin"],O=[{value:"read",title:"Read only",description:"Search and view authorized workspace data."},{value:"write",title:"Read and make changes",description:"Includes read access. Create and update authorized workspace data."},{value:"admin",title:"Administer workspaces",description:"Includes read and write access. Manage administrator-only settings.",risk:"high"}],C={read:0,write:1,admin:2};function I(s){return s.includes("mcp:admin")?"admin":s.includes("mcp:write")?"write":s.includes("mcp:read")?"read":null}function F(s,n){const r=s.filter(x=>!W.includes(x));if(!n)return r;const o=I(s);return!o||C[n]>C[o]?r:["mcp:read",...n==="write"||n==="admin"?["mcp:write"]:[],...n==="admin"?["mcp:admin"]:[],...r]}function B({idPrefix:s,clientName:n,requestedScopes:r,accessLevel:o,onAccessLevelChange:x,sensitiveScopesAcknowledged:g=!1,onSensitiveScopesAcknowledgedChange:v,disabled:N=!1}){const f=I(r),j=r.includes("profile:read"),m=r.includes("device_worker:run"),i=r.includes("connections:token"),l=m||i,c=r.filter(t=>!W.includes(t)&&t!=="profile:read"&&t!=="device_worker:run"&&t!=="connections:token");return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("section",{"aria-labelledby":`${s}-application`,className:"space-y-2",children:[e.jsx("p",{id:`${s}-application`,className:"text-sm font-medium",children:"Application"}),e.jsxs("div",{className:"rounded-lg border p-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"text-sm font-semibold text-foreground",children:n||"Unnamed application"}),e.jsx(k,{variant:"destructive",children:"Unverified"})]}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"This name was supplied by the requester. Lobu has not verified the publisher."})]})]}),f&&e.jsxs("fieldset",{className:"space-y-2",disabled:N,children:[e.jsx("legend",{className:"text-sm font-medium",children:"Access level"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Choose the maximum access this application should receive."}),e.jsx("div",{className:"space-y-2",children:O.filter(t=>C[t.value]<=C[f]).map(t=>{const h=`${s}-access-${t.value}`,b=o===t.value;return e.jsxs("label",{htmlFor:h,className:$("flex cursor-pointer items-start gap-3 rounded-md border p-3 transition-colors",b&&"border-primary bg-primary/5"),children:[e.jsx("input",{id:h,type:"radio",name:`${s}-access-level`,value:t.value,checked:b,onChange:()=>x(t.value),className:"mt-1 h-4 w-4 accent-primary"}),e.jsxs("span",{className:"min-w-0 space-y-0.5",children:[e.jsxs("span",{className:"flex flex-wrap items-center gap-2 text-sm font-medium text-foreground",children:[t.title,t.risk==="high"&&e.jsx(k,{variant:"destructive",children:"High risk"})]}),e.jsx("span",{className:"block text-sm text-muted-foreground",children:t.description})]})]},t.value)})})]}),j&&e.jsxs("section",{"aria-labelledby":`${s}-profile`,className:"space-y-2",children:[e.jsx("p",{id:`${s}-profile`,className:"text-sm font-medium",children:"Account information"}),e.jsxs("div",{className:"rounded-md border p-3",children:[e.jsxs("p",{className:"flex flex-wrap items-center gap-2 text-sm font-medium text-foreground",children:["Basic profile",e.jsx(k,{variant:"secondary",children:"Included"})]}),e.jsx("p",{className:"mt-0.5 text-sm text-muted-foreground",children:"See your basic Lobu identity and the names and slugs of workspaces you belong to."})]})]}),c.length>0&&e.jsxs("section",{"aria-labelledby":`${s}-additional`,className:"space-y-2",children:[e.jsx("p",{id:`${s}-additional`,className:"text-sm font-medium",children:"Additional permissions"}),e.jsx("ul",{className:"space-y-2",children:c.map(t=>e.jsx("li",{className:"rounded-md border p-3 font-mono text-xs text-foreground",children:t},t))})]}),l&&e.jsxs("section",{className:"space-y-3 rounded-md border border-destructive/40 bg-destructive/5 p-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Device capabilities"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"These capabilities are fixed by the device request and cannot be reduced here."})]}),e.jsxs("ul",{className:"space-y-2",children:[m&&e.jsxs("li",{className:"rounded-md bg-background/70 p-3",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Operate this device"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Run jobs and Automations through capabilities advertised by this device."})]}),i&&e.jsxs("li",{className:"rounded-md bg-background/70 p-3",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Use connected services"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Request short-lived access for services you connected to Lobu."})]})]}),e.jsxs("div",{className:"flex items-start gap-3 rounded-md border bg-background p-3",children:[e.jsx(E,{id:`${s}-sensitive-acknowledgement`,checked:g,disabled:N,onCheckedChange:t=>v?.(t===!0),className:"mt-0.5"}),e.jsx("label",{htmlFor:`${s}-sensitive-acknowledgement`,className:"cursor-pointer text-sm font-medium text-foreground",children:"I initiated this request and confirmed that the device code matches."})]})]})]})}function q({idPrefix:s,orgList:n,selectedOrgIds:r,onWorkspaceAccessChange:o,onSelectedOrgChange:x,orgsLoading:g,orgsError:v,onRetry:N,disabled:f=!1,personalRequired:j=!1,allowMultiple:m}){const i=`${s}-workspace-access-legend`,l=r.length===n.length;return g?e.jsxs("section",{"aria-labelledby":i,className:"space-y-2",children:[e.jsx("p",{id:i,className:"text-sm font-medium",children:"Workspace access"}),e.jsx("p",{role:"status","aria-live":"polite",className:"text-sm text-muted-foreground",children:"Loading your workspaces..."})]}):v?e.jsxs("section",{"aria-labelledby":i,className:"space-y-2",children:[e.jsx("p",{id:i,className:"text-sm font-medium",children:"Workspace access"}),e.jsxs("div",{role:"alert",className:"rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive",children:[e.jsx("p",{children:"Workspaces could not be loaded. Approval is unavailable until they load."}),e.jsx(R,{type:"button",variant:"outline",size:"sm",className:"mt-2",onClick:N,children:"Retry"})]})]}):n.length===0?e.jsxs("section",{"aria-labelledby":i,className:"space-y-2",children:[e.jsx("p",{id:i,className:"text-sm font-medium",children:"Workspace access"}),e.jsx("p",{role:"alert",className:"rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive",children:"No member workspaces are available for this connection."})]}):e.jsxs("fieldset",{className:"space-y-3",disabled:f,children:[e.jsx("legend",{id:i,className:"sr-only",children:"Workspace access"}),e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:"Workspaces"}),e.jsx("p",{className:"mt-0.5 text-sm text-muted-foreground",children:m?"Choose where this application can operate.":"Choose one workspace this application can access."})]}),m&&!l&&e.jsxs(R,{type:"button",variant:"outline",size:"sm",onClick:()=>o("all_current"),children:["Select all ",n.length]})]}),j&&e.jsxs("div",{className:"rounded-md border border-primary/20 bg-primary/5 p-3 text-sm",children:[e.jsx("p",{className:"font-medium text-foreground",children:"Device home: Personal workspace"}),e.jsx("p",{className:"mt-0.5 text-muted-foreground",children:m?"Fixed for device data. Additional workspaces grant MCP access only.":"Device data stays in your personal workspace."})]}),e.jsx("div",{className:"space-y-2",children:n.map(c=>{const t=`${s}-workspace-${c.id}`,h=j&&c.isPersonal,b=r.includes(c.id);return e.jsxs("div",{className:$("flex items-start gap-3 rounded-md border p-3 transition-colors",b&&"border-primary/40 bg-primary/5"),children:[e.jsx(E,{id:t,checked:b,disabled:f||h||j&&!m,onCheckedChange:S=>x(c.id,S===!0),className:"mt-0.5"}),e.jsxs("label",{htmlFor:t,className:"min-w-0 flex-1 cursor-pointer space-y-0.5",children:[e.jsxs("span",{className:"flex flex-wrap items-center gap-2 text-sm font-medium text-foreground",children:[c.name,c.isPersonal&&e.jsx(k,{variant:"outline",children:"Personal"}),h&&e.jsx(k,{variant:"secondary",children:"Required"})]}),e.jsx("span",{className:"block text-xs text-muted-foreground",children:c.slug})]})]},c.id)})}),e.jsxs("div",{className:"flex items-center justify-between gap-3 text-xs text-muted-foreground",children:[e.jsxs("p",{"aria-live":"polite",children:[r.length," of ",n.length," workspaces selected."]}),l&&e.jsx(k,{variant:"secondary",children:"All currently available"})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Workspaces you join later are not added automatically."}),r.length===0&&e.jsx("p",{role:"alert",className:"text-xs text-destructive",children:"Choose at least one workspace."})]})}function D(s,n){p.useEffect(()=>{if(n||s)return;const r=new URL("/auth/login",window.location.origin);r.searchParams.set("callbackUrl",window.location.href),window.location.href=r.toString()},[s,n])}function U(s,n){return s.length===n.length&&s.every((r,o)=>r===n[o])}function T(s={}){const{requirePersonal:n=!1,allowMultiple:r=!0}=s,{data:o,error:x,isPending:g,refetch:v}=P(),[N,f]=p.useState("selected"),[j,m]=p.useState([]),i=p.useRef(!1),l=p.useMemo(()=>o?o.filter(a=>a.is_member).map(a=>({id:a.id,name:a.name,slug:a.slug,isPersonal:a.is_personal===!0})):[],[o]),c=l.find(a=>a.isPersonal)?.id??null,t=p.useRef(l);t.current=l;const h=x instanceof Error?x.message:x?"Unable to load workspaces":null;p.useEffect(()=>{if(g||h)return;const a=l.map(d=>d.id),u=new Set(a);m(d=>{const w=i.current?d.filter(A=>u.has(A)):[c??a[0]].filter(A=>!!A);return i.current=!0,U(d,w)?d:w})},[l,h,g,c]);const b=p.useCallback(a=>{if(a==="all_current"){if(!r)return;m(t.current.map(u=>u.id))}f(a)},[r]),S=p.useCallback((a,u)=>{t.current.some(d=>d.id===a)&&(n&&(a===c||!r)||(f("selected"),m(d=>u?r?d.includes(a)?d:[...d,a]:[a]:d.filter(w=>w!==a))))},[r,c,n]),y=p.useMemo(()=>{const a=new Set(j);return n&&c&&a.add(c),l.filter(u=>a.has(u.id)).map(u=>u.id)},[j,l,c,n]),L=p.useCallback(()=>{const a=t.current,u=a.find(d=>d.isPersonal)?.id??a[0]?.id;i.current=a.length>0,f("selected"),m(u?[u]:[])},[]),_=!g&&!h&&l.length>0&&y.length>0&&(r||y.length===1)&&(!n||c!==null&&y.includes(c)),M=p.useCallback(()=>{v()},[v]);return{orgList:l,workspaceAccess:N,setWorkspaceAccess:b,selectedOrgIds:y,toggleSelectedOrgId:S,resetWorkspaceSelection:L,personalOrgId:c,orgsLoading:g,orgsError:h,retryOrgs:M,workspaceSelectionReady:_}}function V(s){if(!s)return null;try{return new URL(s).pathname.match(/^\/mcp\/([^/]+)$/)?.[1]?.trim()||null}catch{return null}}export{B as A,q as W,I as a,D as b,V as g,F as s,T as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cU as ae,cV as W,aD as k,j as e,c7 as P,c8 as pe,cW as M,B as b,cX as fe,cY as be,aj as ye,aS as je,a2 as ve,al as ie,a1 as Ne,k as we,co as S,r as V,Z as Ce,aa as B,ab as K,cZ as Se,c_ as ke,F as ze,s as Y,c$ as H,bw as Oe,ac as _,d0 as _e,d1 as U,d2 as Z,d3 as Pe,ad as Ee,d4 as Ae,d5 as De}from"./index-C2YGEKPo.js";import{o as Fe,u as $e,a as Re,d as Te,C as E,P as Ie,e as Le,A as qe}from"./agent-permissions-matrix-QvA6xL8Q.js";import{C as G,a as X,b as J,c as ee}from"./card-BsWGRkun.js";const Qe=[{action:"create_type",label:"Create entity types",description:"Add a new type and its initial fields."},{action:"update_type",label:"Edit entity types",description:"Change fields, write rules, event kinds, or type metadata."},{action:"delete_type",label:"Delete entity types",description:"Remove an entity-type definition."}],We=[{action:"create_relationship_type",label:"Create relationship types",description:"Add a new kind of link between entity types."},{action:"update_relationship_type",label:"Edit relationship types",description:"Change a definition, or which types it may connect."},{action:"delete_relationship_type",label:"Delete relationship types",description:"Remove a relationship-type definition."}];function A(s){return s.resource_class==="entity_schema"&&s.principal_kind===null&&s.entity_type_slug===null&&s.operation_key===null&&s.target_agent_id===null}function Me(s){return s.agent.find(A)}function Ve(s,i){return{...s,agent:[...s.agent.filter(r=>!A(r)),i]}}function Be(s){return{...s,agent:s.agent.filter(i=>!A(i))}}function Ke({label:s,description:i,action:r,value:n,pending:p,onChange:g}){return e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-t px-4 py-3 first:border-t-0",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-sm font-medium leading-5 text-foreground",children:s}),e.jsx("p",{className:"text-xs leading-5 text-muted-foreground",children:i})]}),e.jsx(Ie,{options:Le("entity_schema",r),value:n,floor:"auto",disabled:p,compact:!0,ariaLabel:s,onChange:g})]})}function se({icon:s,title:i,actions:r,effects:n,pending:p,onChange:g}){return e.jsxs("section",{className:"overflow-hidden rounded-lg border bg-background",children:[e.jsxs("div",{className:"flex items-center gap-2 border-b bg-muted/30 px-4 py-2.5",children:[s,e.jsx("h4",{className:"text-sm font-semibold text-foreground",children:i})]}),r.map(({action:c,label:t,description:m})=>e.jsx(Ke,{action:c,label:t,description:m,value:n[c]??E.entity_schema[c]??"deny",pending:p,onChange:l=>g(c,l)},c))]})}function Ye({owner:s}){const i=ae(),r=Fe(s),n=$e(s),p=W({mutationFn:o=>Re(s,{resource_class:"entity_schema",effects:o}),onSuccess:o=>{i.setQueryData(r,y=>y&&Ve(y,o)),i.invalidateQueries({queryKey:r})},onError:o=>{k.error(o instanceof Error?o.message:"Failed to save schema policy")}}),g=W({mutationFn:()=>Te(s,{resource_class:"entity_schema"}),onSuccess:()=>{i.setQueryData(r,o=>o&&Be(o)),i.invalidateQueries({queryKey:r})},onError:o=>{k.error(o instanceof Error?o.message:"Failed to reset schema policy")}});if(n.isLoading)return e.jsx(P,{label:"schema policy",variant:"cards",cards:1});if(n.isError||!n.data)return e.jsx(pe,{label:"schema policy"});const c=Me(n.data),t=c?.effects??E.entity_schema,m=p.isPending||g.isPending,l=(o,y)=>{p.mutate({...c?.effects??E.entity_schema,[o]:y})};return e.jsxs("div",{className:ye(je,"space-y-3 p-4"),children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(M,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("h3",{className:"text-sm font-semibold text-foreground",children:"Schema changes"}),e.jsx("span",{className:"rounded-full border bg-muted/40 px-2 py-0.5 text-[11px] font-medium text-muted-foreground",children:c?"Custom policy":"Workspace defaults"})]}),e.jsx("p",{className:"max-w-2xl text-xs leading-5 text-muted-foreground",children:"Controls structural changes made by agents and connected AI clients. Auto applies immediately, Ask pauses for a workspace approver, and Deny blocks the change."})]}),c?e.jsxs(b,{type:"button",variant:"outline",size:"sm",disabled:m,onClick:()=>g.mutate(),children:[e.jsx(fe,{className:"mr-1.5 h-3.5 w-3.5"}),"Remove custom policy"]}):null]}),e.jsxs("div",{className:"grid gap-3 xl:grid-cols-2",children:[e.jsx(se,{icon:e.jsx(M,{className:"h-4 w-4 text-muted-foreground"}),title:"Entity types",actions:Qe,effects:t,pending:m,onChange:l}),e.jsx(se,{icon:e.jsx(be,{className:"h-4 w-4 text-muted-foreground"}),title:"Relationship types",actions:We,effects:t,pending:m,onChange:l})]})]})}function te(s){return s.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function He(s,i,r){const n=s.split("/");return n[1]===i?(n[1]=r,n.join("/")||"/"):`/${r}`}function Ue({owner:s}){const i=ve(),r=ae(),{data:n,error:p}=ie(),{activeOrg:g,urlOrgSlug:c}=Ne(),t=(n??[]).find(a=>a.slug===s&&a.is_member)??null,m=t?.id??s,l=we(m,{name:t?.name??"",slug:t?.slug??"",visibility:t?.visibility??"private"}),[o,y]=l.field("name"),[D,F]=l.field("slug"),[v,$]=l.field("visibility"),[ne,re]=S(m,!!t),[oe,w]=S(m,!1),[R,f]=S(m,null),[z,T]=V.useState(!1),[I,L]=V.useState(!1),[le,O]=S(m,!1);if(Ce(p)&&n===void 0)return e.jsxs(G,{role:"alert",children:[e.jsx(X,{children:e.jsx(J,{children:"Couldn't load organizations"})}),e.jsx(ee,{children:e.jsx("p",{className:"text-sm text-muted-foreground",children:"Please try again in a moment."})})]});if(n===void 0)return e.jsxs("div",{className:"max-w-2xl space-y-6",children:[e.jsx(P,{label:"organization",variant:"cards",cards:1}),e.jsx(P,{label:"visibility",variant:"panel"})]});if(!t)return e.jsxs(G,{children:[e.jsx(X,{children:e.jsx(J,{children:"Organization not found"})}),e.jsx(ee,{children:e.jsxs("p",{className:"text-sm text-muted-foreground",children:["You aren't a member of an organization at"," ",e.jsx("span",{className:"font-mono",children:s}),", or it has been deleted."]})})]});const ce=a=>{const x=Ee(a);if(x.kind==="cross-host"){window.location.assign(x.href);return}i({to:x.to})},q=a=>{if(a==="public"&&t.visibility!=="public"){w(!0);return}$(a),w(!1)},de=async()=>{if(!l.canSubmit)return;const a=o.trim();if(!a){f("Name is required");return}const x=D.trim()||te(a);if(!x){f("Slug is required");return}T(!0),f(null);try{const h=a!==t.name||x!==t.slug,N=v!==t.visibility;let d=t.slug;if(h){const j=await _.update({organizationId:t.id,data:{name:a,slug:x}});if(j.error){f(j.error.message||"Failed to update organization");return}d=j.data?.slug??x}N&&(d=(await _e(d,v)).slug),(h||N)&&(l.accept(l.values,{name:a,slug:d,visibility:v}),await r.invalidateQueries({queryKey:["organizations"]}),k.success("Organization updated"));const C=g?.id===t.id||c===t.slug,ue=d!==t.slug;if(C&&ue){const j=U(),Q=Z();if(j===t.slug&&Q){const xe=Pe(window.location.pathname,t.slug)||"/",he=`${window.location.protocol}//${d}.${Q}${xe}${window.location.search}${window.location.hash}`;window.location.assign(he);return}const ge=He(window.location.pathname,t.slug,d);i({to:`${ge}${window.location.search}${window.location.hash}`});return}}catch(h){f(h instanceof Error?h.message:"Failed to update organization")}finally{T(!1)}},me=async()=>{L(!0),f(null);try{const a=await _.delete({organizationId:t.id});if(a.error){f(a.error.message||"Failed to delete organization");return}await r.invalidateQueries({queryKey:["organizations"]}),k.success("Organization deleted");const h=(n??[]).filter(d=>d.is_member).find(d=>d.id!==t.id)??null,N=g?.id===t.id||c===t.slug;if(N&&h){await _.setActive({organizationId:h.id}),ce(h.slug);return}if(N){const d=U(),C=Z();if(d===t.slug&&C){window.location.assign(`${window.location.protocol}//app.${C}/`);return}i({to:"/"});return}i({to:"/"})}catch(a){f(a instanceof Error?a.message:"Failed to delete organization")}finally{L(!1),O(!1)}},u=z||I;return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("section",{className:"space-y-4",children:[e.jsx("h2",{className:"text-base font-semibold leading-none",children:"Identity"}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(B,{htmlFor:"org-name",children:"Name"}),e.jsx(K,{id:"org-name",value:o,onChange:a=>{y(a.target.value),ne||F(te(a.target.value))},placeholder:"e.g. My Team",disabled:u})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(B,{htmlFor:"org-slug",children:"Slug"}),e.jsx(K,{id:"org-slug",value:D,onChange:a=>{re(!0),F(a.target.value)},placeholder:"e.g. my-team",disabled:u}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:["Changing the slug rewrites this workspace's URL. Existing links to"," ",e.jsxs("span",{className:"font-mono",children:["/",t.slug]})," redirect for a grace period."]})]})]}),e.jsxs("section",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-base font-semibold leading-none",children:"Workspace visibility"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Choose who can browse this workspace and its public pages."})]}),e.jsxs("div",{className:"grid gap-2 sm:grid-cols-2",children:[e.jsxs("button",{type:"button",onClick:()=>q("private"),disabled:u,className:`flex items-start gap-3 rounded-lg border p-3 text-left transition-colors ${v==="private"?"border-primary bg-primary/5":"border-border hover:bg-muted/40"}`,children:[e.jsx(Se,{className:"mt-0.5 h-4 w-4 shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-medium",children:"Private"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Only members can access this workspace."})]})]}),e.jsxs("button",{type:"button",onClick:()=>q("public"),disabled:u,className:`flex items-start gap-3 rounded-lg border p-3 text-left transition-colors ${v==="public"?"border-primary bg-primary/5":"border-border hover:bg-muted/40"}`,children:[e.jsx(ke,{className:"mt-0.5 h-4 w-4 shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-medium",children:"Public"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Anyone can browse public pages for this workspace."})]})]})]}),oe&&e.jsxs("div",{className:"rounded-md border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-sm",children:[e.jsx("p",{className:"text-foreground",children:"Make this workspace public? Catalog-style content may become visible outside the membership."}),e.jsxs("div",{className:"mt-2 flex gap-2",children:[e.jsx(b,{type:"button",size:"sm",onClick:()=>{$("public"),w(!1)},disabled:u,children:"Confirm public"}),e.jsx(b,{type:"button",size:"sm",variant:"ghost",onClick:()=>w(!1),disabled:u,children:"Cancel"})]})]})]}),R&&e.jsx("div",{className:"rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive",children:R}),e.jsx(ze,{visible:l.hasConflict,onReload:l.reset}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(b,{variant:"outline",onClick:()=>void i({to:`/${s}`}),disabled:u,children:"Cancel"}),e.jsxs(b,{onClick:de,disabled:u||!l.canSubmit,children:[z?e.jsx(Y,{size:"lg",className:"mr-1.5"}):null,z?"Saving...":"Save changes"]})]}),e.jsxs("section",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-baseline gap-2 px-0.5",children:[e.jsxs("h2",{className:"flex items-center gap-1.5 text-sm font-semibold",children:[e.jsx(H,{className:"h-3.5 w-3.5"}),"Agent write defaults"]}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:"saves as you click · agents can only tighten"})]}),e.jsx(qe,{owner:s,variant:"org-floor"})]}),e.jsxs("section",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-baseline gap-2 px-0.5",children:[e.jsxs("h2",{className:"flex items-center gap-1.5 text-sm font-semibold",children:[e.jsx(H,{className:"h-3.5 w-3.5"}),"Schema governance"]}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:"saves as you click"})]}),e.jsx(Ye,{owner:s})]}),e.jsxs("div",{className:"rounded-lg border border-destructive/30 bg-destructive/5 p-4",children:[e.jsx("p",{className:"text-sm font-medium",children:t.is_personal?"Personal workspace":"Delete this organization"}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:t.is_personal?"Your personal workspace can't be deleted — your devices and personal connections are bound to it.":"Permanently removes the organization and all members' workspace access. This cannot be undone."}),!t.is_personal&&e.jsx("div",{className:"mt-3",children:le?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(b,{variant:"destructive",size:"sm",onClick:me,disabled:u,children:[I?e.jsx(Y,{className:"mr-1.5"}):null,"Confirm delete"]}),e.jsx(b,{variant:"ghost",size:"sm",onClick:()=>O(!1),disabled:u,children:"Cancel"})]}):e.jsxs(b,{variant:"outline",size:"sm",className:"text-destructive hover:text-destructive",onClick:()=>O(!0),disabled:u,children:[e.jsx(Oe,{className:"mr-1.5 h-3.5 w-3.5"}),"Delete organization"]})})]})]})}function Je(){const{owner:s}=Ae.useParams(),{data:i}=ie(),r=(i??[]).find(n=>n.slug===s&&n.is_member)?.name;return e.jsxs("div",{className:"mx-auto flex w-full max-w-4xl flex-1 flex-col gap-6 px-4 py-6 lg:px-6",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(De,{className:"h-7 w-7"}),e.jsx("h1",{className:"text-3xl font-semibold leading-tight",children:"Organization settings"})]}),r?e.jsx("p",{className:"text-base font-medium text-foreground",children:r}):null]}),e.jsx(Ue,{owner:s})]})}export{Je as component};
|
|
1
|
+
import{cU as ae,cV as W,aD as k,j as e,c7 as P,c8 as pe,cW as M,B as b,cX as fe,cY as be,aj as ye,aS as je,a2 as ve,al as ie,a1 as Ne,k as we,co as S,r as V,Z as Ce,aa as B,ab as K,cZ as Se,c_ as ke,F as ze,s as Y,c$ as H,bw as Oe,ac as _,d0 as _e,d1 as U,d2 as Z,d3 as Pe,ad as Ee,d4 as Ae,d5 as De}from"./index-BKZMzuMS.js";import{o as Fe,u as $e,a as Re,d as Te,C as E,P as Ie,e as Le,A as qe}from"./agent-permissions-matrix-BuGatiEq.js";import{C as G,a as X,b as J,c as ee}from"./card-HMQT7vU5.js";const Qe=[{action:"create_type",label:"Create entity types",description:"Add a new type and its initial fields."},{action:"update_type",label:"Edit entity types",description:"Change fields, write rules, event kinds, or type metadata."},{action:"delete_type",label:"Delete entity types",description:"Remove an entity-type definition."}],We=[{action:"create_relationship_type",label:"Create relationship types",description:"Add a new kind of link between entity types."},{action:"update_relationship_type",label:"Edit relationship types",description:"Change a definition, or which types it may connect."},{action:"delete_relationship_type",label:"Delete relationship types",description:"Remove a relationship-type definition."}];function A(s){return s.resource_class==="entity_schema"&&s.principal_kind===null&&s.entity_type_slug===null&&s.operation_key===null&&s.target_agent_id===null}function Me(s){return s.agent.find(A)}function Ve(s,i){return{...s,agent:[...s.agent.filter(r=>!A(r)),i]}}function Be(s){return{...s,agent:s.agent.filter(i=>!A(i))}}function Ke({label:s,description:i,action:r,value:n,pending:p,onChange:g}){return e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-t px-4 py-3 first:border-t-0",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-sm font-medium leading-5 text-foreground",children:s}),e.jsx("p",{className:"text-xs leading-5 text-muted-foreground",children:i})]}),e.jsx(Ie,{options:Le("entity_schema",r),value:n,floor:"auto",disabled:p,compact:!0,ariaLabel:s,onChange:g})]})}function se({icon:s,title:i,actions:r,effects:n,pending:p,onChange:g}){return e.jsxs("section",{className:"overflow-hidden rounded-lg border bg-background",children:[e.jsxs("div",{className:"flex items-center gap-2 border-b bg-muted/30 px-4 py-2.5",children:[s,e.jsx("h4",{className:"text-sm font-semibold text-foreground",children:i})]}),r.map(({action:c,label:t,description:m})=>e.jsx(Ke,{action:c,label:t,description:m,value:n[c]??E.entity_schema[c]??"deny",pending:p,onChange:l=>g(c,l)},c))]})}function Ye({owner:s}){const i=ae(),r=Fe(s),n=$e(s),p=W({mutationFn:o=>Re(s,{resource_class:"entity_schema",effects:o}),onSuccess:o=>{i.setQueryData(r,y=>y&&Ve(y,o)),i.invalidateQueries({queryKey:r})},onError:o=>{k.error(o instanceof Error?o.message:"Failed to save schema policy")}}),g=W({mutationFn:()=>Te(s,{resource_class:"entity_schema"}),onSuccess:()=>{i.setQueryData(r,o=>o&&Be(o)),i.invalidateQueries({queryKey:r})},onError:o=>{k.error(o instanceof Error?o.message:"Failed to reset schema policy")}});if(n.isLoading)return e.jsx(P,{label:"schema policy",variant:"cards",cards:1});if(n.isError||!n.data)return e.jsx(pe,{label:"schema policy"});const c=Me(n.data),t=c?.effects??E.entity_schema,m=p.isPending||g.isPending,l=(o,y)=>{p.mutate({...c?.effects??E.entity_schema,[o]:y})};return e.jsxs("div",{className:ye(je,"space-y-3 p-4"),children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(M,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("h3",{className:"text-sm font-semibold text-foreground",children:"Schema changes"}),e.jsx("span",{className:"rounded-full border bg-muted/40 px-2 py-0.5 text-[11px] font-medium text-muted-foreground",children:c?"Custom policy":"Workspace defaults"})]}),e.jsx("p",{className:"max-w-2xl text-xs leading-5 text-muted-foreground",children:"Controls structural changes made by agents and connected AI clients. Auto applies immediately, Ask pauses for a workspace approver, and Deny blocks the change."})]}),c?e.jsxs(b,{type:"button",variant:"outline",size:"sm",disabled:m,onClick:()=>g.mutate(),children:[e.jsx(fe,{className:"mr-1.5 h-3.5 w-3.5"}),"Remove custom policy"]}):null]}),e.jsxs("div",{className:"grid gap-3 xl:grid-cols-2",children:[e.jsx(se,{icon:e.jsx(M,{className:"h-4 w-4 text-muted-foreground"}),title:"Entity types",actions:Qe,effects:t,pending:m,onChange:l}),e.jsx(se,{icon:e.jsx(be,{className:"h-4 w-4 text-muted-foreground"}),title:"Relationship types",actions:We,effects:t,pending:m,onChange:l})]})]})}function te(s){return s.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function He(s,i,r){const n=s.split("/");return n[1]===i?(n[1]=r,n.join("/")||"/"):`/${r}`}function Ue({owner:s}){const i=ve(),r=ae(),{data:n,error:p}=ie(),{activeOrg:g,urlOrgSlug:c}=Ne(),t=(n??[]).find(a=>a.slug===s&&a.is_member)??null,m=t?.id??s,l=we(m,{name:t?.name??"",slug:t?.slug??"",visibility:t?.visibility??"private"}),[o,y]=l.field("name"),[D,F]=l.field("slug"),[v,$]=l.field("visibility"),[ne,re]=S(m,!!t),[oe,w]=S(m,!1),[R,f]=S(m,null),[z,T]=V.useState(!1),[I,L]=V.useState(!1),[le,O]=S(m,!1);if(Ce(p)&&n===void 0)return e.jsxs(G,{role:"alert",children:[e.jsx(X,{children:e.jsx(J,{children:"Couldn't load organizations"})}),e.jsx(ee,{children:e.jsx("p",{className:"text-sm text-muted-foreground",children:"Please try again in a moment."})})]});if(n===void 0)return e.jsxs("div",{className:"max-w-2xl space-y-6",children:[e.jsx(P,{label:"organization",variant:"cards",cards:1}),e.jsx(P,{label:"visibility",variant:"panel"})]});if(!t)return e.jsxs(G,{children:[e.jsx(X,{children:e.jsx(J,{children:"Organization not found"})}),e.jsx(ee,{children:e.jsxs("p",{className:"text-sm text-muted-foreground",children:["You aren't a member of an organization at"," ",e.jsx("span",{className:"font-mono",children:s}),", or it has been deleted."]})})]});const ce=a=>{const x=Ee(a);if(x.kind==="cross-host"){window.location.assign(x.href);return}i({to:x.to})},q=a=>{if(a==="public"&&t.visibility!=="public"){w(!0);return}$(a),w(!1)},de=async()=>{if(!l.canSubmit)return;const a=o.trim();if(!a){f("Name is required");return}const x=D.trim()||te(a);if(!x){f("Slug is required");return}T(!0),f(null);try{const h=a!==t.name||x!==t.slug,N=v!==t.visibility;let d=t.slug;if(h){const j=await _.update({organizationId:t.id,data:{name:a,slug:x}});if(j.error){f(j.error.message||"Failed to update organization");return}d=j.data?.slug??x}N&&(d=(await _e(d,v)).slug),(h||N)&&(l.accept(l.values,{name:a,slug:d,visibility:v}),await r.invalidateQueries({queryKey:["organizations"]}),k.success("Organization updated"));const C=g?.id===t.id||c===t.slug,ue=d!==t.slug;if(C&&ue){const j=U(),Q=Z();if(j===t.slug&&Q){const xe=Pe(window.location.pathname,t.slug)||"/",he=`${window.location.protocol}//${d}.${Q}${xe}${window.location.search}${window.location.hash}`;window.location.assign(he);return}const ge=He(window.location.pathname,t.slug,d);i({to:`${ge}${window.location.search}${window.location.hash}`});return}}catch(h){f(h instanceof Error?h.message:"Failed to update organization")}finally{T(!1)}},me=async()=>{L(!0),f(null);try{const a=await _.delete({organizationId:t.id});if(a.error){f(a.error.message||"Failed to delete organization");return}await r.invalidateQueries({queryKey:["organizations"]}),k.success("Organization deleted");const h=(n??[]).filter(d=>d.is_member).find(d=>d.id!==t.id)??null,N=g?.id===t.id||c===t.slug;if(N&&h){await _.setActive({organizationId:h.id}),ce(h.slug);return}if(N){const d=U(),C=Z();if(d===t.slug&&C){window.location.assign(`${window.location.protocol}//app.${C}/`);return}i({to:"/"});return}i({to:"/"})}catch(a){f(a instanceof Error?a.message:"Failed to delete organization")}finally{L(!1),O(!1)}},u=z||I;return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("section",{className:"space-y-4",children:[e.jsx("h2",{className:"text-base font-semibold leading-none",children:"Identity"}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(B,{htmlFor:"org-name",children:"Name"}),e.jsx(K,{id:"org-name",value:o,onChange:a=>{y(a.target.value),ne||F(te(a.target.value))},placeholder:"e.g. My Team",disabled:u})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(B,{htmlFor:"org-slug",children:"Slug"}),e.jsx(K,{id:"org-slug",value:D,onChange:a=>{re(!0),F(a.target.value)},placeholder:"e.g. my-team",disabled:u}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:["Changing the slug rewrites this workspace's URL. Existing links to"," ",e.jsxs("span",{className:"font-mono",children:["/",t.slug]})," redirect for a grace period."]})]})]}),e.jsxs("section",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-base font-semibold leading-none",children:"Workspace visibility"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Choose who can browse this workspace and its public pages."})]}),e.jsxs("div",{className:"grid gap-2 sm:grid-cols-2",children:[e.jsxs("button",{type:"button",onClick:()=>q("private"),disabled:u,className:`flex items-start gap-3 rounded-lg border p-3 text-left transition-colors ${v==="private"?"border-primary bg-primary/5":"border-border hover:bg-muted/40"}`,children:[e.jsx(Se,{className:"mt-0.5 h-4 w-4 shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-medium",children:"Private"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Only members can access this workspace."})]})]}),e.jsxs("button",{type:"button",onClick:()=>q("public"),disabled:u,className:`flex items-start gap-3 rounded-lg border p-3 text-left transition-colors ${v==="public"?"border-primary bg-primary/5":"border-border hover:bg-muted/40"}`,children:[e.jsx(ke,{className:"mt-0.5 h-4 w-4 shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-medium",children:"Public"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Anyone can browse public pages for this workspace."})]})]})]}),oe&&e.jsxs("div",{className:"rounded-md border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-sm",children:[e.jsx("p",{className:"text-foreground",children:"Make this workspace public? Catalog-style content may become visible outside the membership."}),e.jsxs("div",{className:"mt-2 flex gap-2",children:[e.jsx(b,{type:"button",size:"sm",onClick:()=>{$("public"),w(!1)},disabled:u,children:"Confirm public"}),e.jsx(b,{type:"button",size:"sm",variant:"ghost",onClick:()=>w(!1),disabled:u,children:"Cancel"})]})]})]}),R&&e.jsx("div",{className:"rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive",children:R}),e.jsx(ze,{visible:l.hasConflict,onReload:l.reset}),e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx(b,{variant:"outline",onClick:()=>void i({to:`/${s}`}),disabled:u,children:"Cancel"}),e.jsxs(b,{onClick:de,disabled:u||!l.canSubmit,children:[z?e.jsx(Y,{size:"lg",className:"mr-1.5"}):null,z?"Saving...":"Save changes"]})]}),e.jsxs("section",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-baseline gap-2 px-0.5",children:[e.jsxs("h2",{className:"flex items-center gap-1.5 text-sm font-semibold",children:[e.jsx(H,{className:"h-3.5 w-3.5"}),"Agent write defaults"]}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:"saves as you click · agents can only tighten"})]}),e.jsx(qe,{owner:s,variant:"org-floor"})]}),e.jsxs("section",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-baseline gap-2 px-0.5",children:[e.jsxs("h2",{className:"flex items-center gap-1.5 text-sm font-semibold",children:[e.jsx(H,{className:"h-3.5 w-3.5"}),"Schema governance"]}),e.jsx("span",{className:"text-[11px] text-muted-foreground",children:"saves as you click"})]}),e.jsx(Ye,{owner:s})]}),e.jsxs("div",{className:"rounded-lg border border-destructive/30 bg-destructive/5 p-4",children:[e.jsx("p",{className:"text-sm font-medium",children:t.is_personal?"Personal workspace":"Delete this organization"}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:t.is_personal?"Your personal workspace can't be deleted — your devices and personal connections are bound to it.":"Permanently removes the organization and all members' workspace access. This cannot be undone."}),!t.is_personal&&e.jsx("div",{className:"mt-3",children:le?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(b,{variant:"destructive",size:"sm",onClick:me,disabled:u,children:[I?e.jsx(Y,{className:"mr-1.5"}):null,"Confirm delete"]}),e.jsx(b,{variant:"ghost",size:"sm",onClick:()=>O(!1),disabled:u,children:"Cancel"})]}):e.jsxs(b,{variant:"outline",size:"sm",className:"text-destructive hover:text-destructive",onClick:()=>O(!0),disabled:u,children:[e.jsx(Oe,{className:"mr-1.5 h-3.5 w-3.5"}),"Delete organization"]})})]})]})}function Je(){const{owner:s}=Ae.useParams(),{data:i}=ie(),r=(i??[]).find(n=>n.slug===s&&n.is_member)?.name;return e.jsxs("div",{className:"mx-auto flex w-full max-w-4xl flex-1 flex-col gap-6 px-4 py-6 lg:px-6",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(De,{className:"h-7 w-7"}),e.jsx("h1",{className:"text-3xl font-semibold leading-tight",children:"Organization settings"})]}),r?e.jsx("p",{className:"text-base font-medium text-foreground",children:r}):null]}),e.jsx(Ue,{owner:s})]})}export{Je as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as r,g as i,j as e,hr as m}from"./index-
|
|
1
|
+
import{a1 as r,g as i,j as e,hr as m}from"./index-BKZMzuMS.js";import{A as c}from"./agent-permissions-matrix-BuGatiEq.js";import{A as l}from"./agent-subpage-shell-Bojgj1uq.js";function g({owner:s,agentId:t}){const{orgContext:n}=r(),{isAdmin:a,isLoading:o}=i(n.organizationId);return e.jsx(l,{owner:s,agentId:t,backLabel:"Permissions",backTo:"/$owner/agents/$agentId/permissions",children:a?e.jsxs("div",{className:"space-y-4",children:[e.jsx("p",{className:"text-center text-sm text-muted-foreground",children:"Control which data, agent settings, and connector actions this agent may use automatically, with approval, or not at all."}),e.jsx("div",{className:"overflow-x-auto",children:e.jsx(c,{owner:s,agentId:t})})]}):o?null:e.jsx("p",{className:"text-center text-sm text-muted-foreground",children:"Only organization admins can view or change agent permissions."})})}function p(){const{owner:s,agentId:t}=m.useParams();return e.jsx(g,{owner:s,agentId:t})}export{p as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{eI as f,ef as w,eg as y,r as N,j as e,bF as k,B as d,aa as C,ea as P}from"./index-
|
|
1
|
+
import{eI as f,ef as w,eg as y,r as N,j as e,bF as k,B as d,aa as C,ea as P}from"./index-BKZMzuMS.js";import{u as A}from"./runs-CftQDTkq.js";function B({resource:g,runId:t,children:h,onDone:l}){const c=!!t,{data:a,isLoading:E,isError:u,refetch:v}=A(g,c?t:void 0),s=f({isReview:c,isError:u,status:a?.status}),m=a?.status==="pending"?a.proposal:null,n=w(),i=y(),[p,x]=N.useState(""),o=n.isPending||i.isPending,j=s==="active"||s==="loading"||s==="error",b=()=>{t&&n.mutate({run_id:t},{onSuccess:()=>l?.()})},R=()=>{if(!t)return;const r=p.trim();i.mutate({run_id:t,...r?{reason:r}:{}},{onSuccess:()=>l?.()})};return e.jsxs("div",{className:"grid content-start gap-4",children:[s==="active"?e.jsx("div",{className:"rounded-lg border border-amber-200 bg-amber-50 p-3 text-sm text-amber-950 dark:border-amber-900/60 dark:bg-amber-950/30 dark:text-amber-100",children:e.jsxs("div",{className:"flex gap-2",children:[e.jsx(k,{className:"mt-0.5 h-4 w-4 shrink-0"}),e.jsxs("p",{children:["Review the change the builder agent proposed. The values below show the proposed change — ",e.jsx("strong",{children:"Approve"})," to apply, or"," ",e.jsx("strong",{children:"Reject"}),"."]})]})}):null,s==="gone"?e.jsx("div",{className:"rounded-lg border bg-muted/30 p-3 text-sm text-muted-foreground",children:"This change is no longer pending (it may have been approved or rejected already)."}):null,s==="error"?e.jsx("div",{className:"rounded-lg border border-destructive/40 bg-destructive/5 p-3 text-sm",children:e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsx("p",{className:"text-destructive",children:"Couldn't load the proposed change to review. Editing is disabled until it loads — retry, or reopen the link."}),e.jsx(d,{type:"button",variant:"outline",size:"sm",onClick:()=>void v(),children:"Retry"})]})}):null,h({reviewMode:s,proposal:m,controlsDisabled:j}),s==="active"?e.jsxs("div",{className:"grid gap-3",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(C,{htmlFor:"review-reject-reason",children:"Reason (optional)"}),e.jsx(P,{id:"review-reject-reason",rows:2,value:p,onChange:r=>x(r.target.value),placeholder:"Why you're rejecting — shared back to the requester.",disabled:o})]}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:justify-end",children:[e.jsx(d,{type:"button",variant:"outline",onClick:R,disabled:o,children:i.isPending?"Rejecting...":"Reject"}),e.jsx(d,{type:"button",onClick:b,disabled:o,children:n.isPending?"Approving...":"Approve"})]})]}):null]})}export{B as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aT as t,j as e,aU as o,aV as d,aW as m,aX as h}from"./index-
|
|
1
|
+
import{aT as t,j as e,aU as o,aV as d,aW as m,aX as h}from"./index-BKZMzuMS.js";function p({section:s,icon:a,title:i,description:n,action:l}){const c=s?t[s]:null,x=s!==void 0?t[s].icon:a,r=i??c?.label??"";return e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(x,{className:"h-7 w-7 shrink-0","aria-hidden":!0}),e.jsx("h1",{className:"font-display text-3xl font-semibold leading-tight",children:r})]}),n?e.jsx("p",{className:"text-sm text-muted-foreground",children:n}):null]}),l?e.jsx("div",{className:"shrink-0",children:l}):null]})}function u(){const{owner:s}=o.useParams();return e.jsx("div",{className:"flex min-h-0 flex-1 flex-col gap-3 px-4 pt-4 pb-8 lg:px-6",children:e.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:e.jsx(d,{owner:s,children:a=>e.jsxs("div",{className:"mx-auto flex min-h-0 w-full min-w-0 max-w-3xl flex-1 flex-col gap-4",children:[e.jsx(p,{icon:m,title:"Recent",description:"Chats, connected apps, and Automations you used last."}),e.jsx(h,{owner:a.ownerSlug,tone:"page",empty:"message"})]})})})})}export{u as component};
|