@lobu/runtime-server 24.4.0 → 24.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalogs/connectors.json +342 -4
- package/dist/catalogs/skills.json +2 -2
- package/dist/component.json +1 -1
- package/dist/connectors/linkedin-identity.ts +43 -0
- package/dist/connectors/linkedin.ts +154 -3
- package/dist/connectors/postgres.ts +77 -48
- package/dist/connectors/x-like-follow.ts +329 -0
- package/dist/connectors/x.ts +709 -80
- package/dist/dependencies.bun.lock +104 -135
- package/dist/owletto/dist/assets/_-DT3E3BmS.js +3 -0
- package/dist/owletto/dist/assets/_-c1xy7bLu.js +2 -0
- package/dist/owletto/dist/assets/_agentId-CTfoi0-7.js +2 -0
- package/dist/owletto/dist/assets/_agentId-DV8utajn.js +2 -0
- package/dist/owletto/dist/assets/_automationId-DvP3qyYL.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey._connectionId-CL5SivCn.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey.index-tnMwC67b.js +2 -0
- package/dist/owletto/dist/assets/_conversationId-DXN_8m88.js +2 -0
- package/dist/owletto/dist/assets/_eventId-SdpFT7jB.js +2 -0
- package/dist/owletto/dist/assets/_name-CM1AMywz.js +2 -0
- package/dist/owletto/dist/assets/_owner-CaGsXXBW.js +3 -0
- package/dist/owletto/dist/assets/_shape-DGAkETDp.js +2 -0
- package/dist/owletto/dist/assets/_skillKey-Dd4ZHPY8.js +2 -0
- package/dist/owletto/dist/assets/_slug-cRvJQtNo.js +2 -0
- package/dist/owletto/dist/assets/_view-B5I7mmkl.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-Bwn0dyLo.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-YjSYD0wc.js +2 -0
- package/dist/owletto/dist/assets/accept-invitation-CQZQ0wwC.js +2 -0
- package/dist/owletto/dist/assets/activity-route-view-CZykJXQp.js +2 -0
- package/dist/owletto/dist/assets/{agent-card-controls-99mG6H5k.js → agent-card-controls-DuQJhtqp.js} +2 -2
- package/dist/owletto/dist/assets/{agent-client-setup-list-kMmqQSrf.js → agent-client-setup-list-CpUTAjXf.js} +2 -2
- package/dist/owletto/dist/assets/agent-connect-pages-Br_ycC0z.js +2 -0
- package/dist/owletto/dist/assets/agent-editor-form-BXQBFHSv.js +2 -0
- package/dist/owletto/dist/assets/agent-guardrails-route-CN7vpC0X.js +2 -0
- package/dist/owletto/dist/assets/agent-list-row-BnP6r4pm.js +2 -0
- package/dist/owletto/dist/assets/{agent-loading-shells-Dnmb6W5Y.js → agent-loading-shells-_18OREnx.js} +2 -2
- package/dist/owletto/dist/assets/{agent-permissions-matrix-CbhXlbgY.js → agent-permissions-matrix-DSjidWHL.js} +2 -2
- package/dist/owletto/dist/assets/{agent-skill-context-V__2i6Vl.js → agent-skill-context-1DBn7Xc_.js} +2 -2
- package/dist/owletto/dist/assets/agent-skills-route-d5jh3oBR.js +2 -0
- package/dist/owletto/dist/assets/agent-tab-intro-DKrC3SQt.js +2 -0
- package/dist/owletto/dist/assets/agent-thread-FyEO-y44.js +6 -0
- package/dist/owletto/dist/assets/agent-thread-storage-U6htL3ad.js +2 -0
- package/dist/owletto/dist/assets/agents-kXojozTU.js +2 -0
- package/dist/owletto/dist/assets/agents-workbench-CDpJmUVN.js +2 -0
- package/dist/owletto/dist/assets/app._appId-DwNeXRJp.js +2 -0
- package/dist/owletto/dist/assets/assist-composer-Mn9EfX4X.js +2 -0
- package/dist/owletto/dist/assets/automation-detail-content-Bs3vwAPd.js +2 -0
- package/dist/owletto/dist/assets/automation-row-B5Q1B10y.js +2 -0
- package/dist/owletto/dist/assets/automation-source-list-Dhucq1sI.js +2 -0
- package/dist/owletto/dist/assets/automations-kXojozTU.js +2 -0
- package/dist/owletto/dist/assets/{callback-B-CAz-bK.js → callback-9xSHyA12.js} +2 -2
- package/dist/owletto/dist/assets/{card-SFtxv9f2.js → card-g4yxo4Hr.js} +2 -2
- package/dist/owletto/dist/assets/change-summary-DeuXQEpb.js +2 -0
- package/dist/owletto/dist/assets/{claim-DrxIRWKt.js → claim-B98IhDra.js} +2 -2
- package/dist/owletto/dist/assets/{client-activity-scopes-boZOHuPW.js → client-activity-scopes-BD2HBo-_.js} +2 -2
- package/dist/owletto/dist/assets/{client-rows-BJ2PxM4J.js → client-rows-x_CxeWkP.js} +2 -2
- package/dist/owletto/dist/assets/{clients-C7Lnuc3S.js → clients-Cmp0LmOp.js} +2 -2
- package/dist/owletto/dist/assets/connect-menu-CezOH3s7.js +2 -0
- package/dist/owletto/dist/assets/connect-zUot_0kG.js +2 -0
- package/dist/owletto/dist/assets/connect._clientId-nsGxe6yO.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId-DnclRRXk.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId.activity-CDB8atTX.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId.index-DBNP2mZo.js +2 -0
- package/dist/owletto/dist/assets/connection-B6fM2KHN.js +2 -0
- package/dist/owletto/dist/assets/{connection-feed-detail-D7pnWaFB.js → connection-feed-detail-Ckq-qEbD.js} +2 -2
- package/dist/owletto/dist/assets/{connections-browser-DDJQh8Na.js → connections-browser-BXsJqieG.js} +2 -2
- package/dist/owletto/dist/assets/{connector-boxes-DDX7Ebc4.js → connector-boxes-CbqSFeVm.js} +2 -2
- package/dist/owletto/dist/assets/connector-page-shell-Di6XzkVo.js +2 -0
- package/dist/owletto/dist/assets/connector-provenance-BrnasBW4.js +2 -0
- package/dist/owletto/dist/assets/{connector-scope-lists-BibdzKl1.js → connector-scope-lists-dQnZARCD.js} +2 -2
- package/dist/owletto/dist/assets/connectors-DnOUxX_U.js +2 -0
- package/dist/owletto/dist/assets/consent-Byli4yMs.js +2 -0
- package/dist/owletto/dist/assets/copy-button-Ddf7lBjZ.js +2 -0
- package/dist/owletto/dist/assets/{core.esm-CHnfRiEM.js → core.esm-BsXtvNoI.js} +3 -3
- package/dist/owletto/dist/assets/create-B34eskZ_.js +2 -0
- package/dist/owletto/dist/assets/create-DLB9sXgU.js +2 -0
- package/dist/owletto/dist/assets/create-YdAnh3ml.js +2 -0
- package/dist/owletto/dist/assets/create-automation-form-C9PMX7N8.js +3 -0
- package/dist/owletto/dist/assets/create._connectorKey-Bz4OYRiC.js +2 -0
- package/dist/owletto/dist/assets/definition-comparison-B5WgZILB.js +2 -0
- package/dist/owletto/dist/assets/device-DdCoCj-Q.js +2 -0
- package/dist/owletto/dist/assets/device-pin-tombstone-B06J7Af1.js +2 -0
- package/dist/owletto/dist/assets/device._deviceId-Bh9S4bFp.js +2 -0
- package/dist/owletto/dist/assets/dynamic-schema-form-qWSRtOAv.js +2 -0
- package/dist/owletto/dist/assets/entity-options-BkU_En_f.js +2 -0
- package/dist/owletto/dist/assets/entity-page-BPFDHY8q.js +2 -0
- package/dist/owletto/dist/assets/entity-pages-DxgbjLMt.js +2 -0
- package/dist/owletto/dist/assets/entity-type-page-D0ghgRgq.js +2 -0
- package/dist/owletto/dist/assets/event-card-CjA_dLzq.js +2 -0
- package/dist/owletto/dist/assets/event-detail-CmC-DVrK.js +2 -0
- package/dist/owletto/dist/assets/{events-feed-BysC9HgU.js → events-feed-CGzA1w3R.js} +2 -2
- package/dist/owletto/dist/assets/filter-bar-CQ_oE7a9.js +2 -0
- package/dist/owletto/dist/assets/{full-page-spinner-BMiXl54z.js → full-page-spinner-B5xXnKtV.js} +2 -2
- package/dist/owletto/dist/assets/guardrails-DkXatmea.js +2 -0
- package/dist/owletto/dist/assets/identity-BwJy3ixB.js +2 -0
- package/dist/owletto/dist/assets/index-35ehGReZ.js +2 -0
- package/dist/owletto/dist/assets/index-B9hYiwBw.js +2 -0
- package/dist/owletto/dist/assets/index-BDl1_w6U.js +53 -0
- package/dist/owletto/dist/assets/{index-C-WaHj1Y.js → index-BdNR51Ua.js} +2 -2
- package/dist/owletto/dist/assets/index-BjcZVe7n.js +7899 -0
- package/dist/owletto/dist/assets/{index-B4wXJwQY.js → index-BqAVebvY.js} +2 -2
- package/dist/owletto/dist/assets/index-BvK1fS1J.js +2 -0
- package/dist/owletto/dist/assets/index-CNEpTkgw.css +1 -0
- package/dist/owletto/dist/assets/index-CRc73k1t.js +2 -0
- package/dist/owletto/dist/assets/index-CYGaSD3y.js +2 -0
- package/dist/owletto/dist/assets/index-CfZGe-zn.js +2 -0
- package/dist/owletto/dist/assets/{index-CzoK57xp.js → index-CkiyxW4w.js} +2 -2
- package/dist/owletto/dist/assets/index-CzLDNB2E.js +2 -0
- package/dist/owletto/dist/assets/index-D-o5iOVd.js +2 -0
- package/dist/owletto/dist/assets/index-DjYVV1Ml.js +2 -0
- package/dist/owletto/dist/assets/{index-D4-uel59.js → index-TkPy_P_u.js} +2 -2
- package/dist/owletto/dist/assets/index-Vcq4gwWv.js +2 -0
- package/dist/owletto/dist/assets/index-VyAX-asP.js +2 -0
- package/dist/owletto/dist/assets/json-diff-DtZtra_g.js +28 -0
- package/dist/owletto/dist/assets/{list-skeleton-Bp4HNgJ9.js → list-skeleton-CIHWCi2a.js} +2 -2
- package/dist/owletto/dist/assets/login-TWR0vF4_.js +2 -0
- package/dist/owletto/dist/assets/{logout-DxmfsVKD.js → logout-BA5kojS0.js} +2 -2
- package/dist/owletto/dist/assets/manage-gear-C-0BAMbC.js +2 -0
- package/dist/owletto/dist/assets/{member-scope-gate-vp3FihBD.js → member-scope-gate-BQiRAqtx.js} +2 -2
- package/dist/owletto/dist/assets/memory-browse-page-Ba32-vVL.js +74 -0
- package/dist/owletto/dist/assets/model-C2q7WDcS.js +2 -0
- package/dist/owletto/dist/assets/model-selector-B2cjCn0V.js +2 -0
- package/dist/owletto/dist/assets/models-CZkH5gtj.js +2 -0
- package/dist/owletto/dist/assets/nav-pill-Bam6s3jj.js +2 -0
- package/dist/owletto/dist/assets/new-BJst6K0b.js +2 -0
- package/dist/owletto/dist/assets/{new-CvX8_gIb.js → new-Dc5Bbotb.js} +2 -2
- package/dist/owletto/dist/assets/new-DgbivfDe.js +2 -0
- package/dist/owletto/dist/assets/organization-B9U1L-56.js +2 -0
- package/dist/owletto/dist/assets/peek-pane-content-Cq8P38s3.js +2 -0
- package/dist/owletto/dist/assets/pending-seed-BP3xHM2d.js +2 -0
- package/dist/owletto/dist/assets/permissions-BVlbeY4u.js +2 -0
- package/dist/owletto/dist/assets/proposal-review-shell-BED-DO9C.js +2 -0
- package/dist/owletto/dist/assets/public-shell-ready-Diq15_QW.js +2 -0
- package/dist/owletto/dist/assets/record-activity-CTLwq8s1.js +2 -0
- package/dist/owletto/dist/assets/{record-session-CWXnCVln.js → record-session-DOFgdd43.js} +2 -2
- package/dist/owletto/dist/assets/renderer-CHPS-1vD.js +96 -0
- package/dist/owletto/dist/assets/{reset-password-CFUzxH7m.js → reset-password-BmNM-apc.js} +2 -2
- package/dist/owletto/dist/assets/run-activity-link-Dh1YyCfk.js +2 -0
- package/dist/owletto/dist/assets/run-initiator-CCxNv0rK.js +2 -0
- package/dist/owletto/dist/assets/{runs-BPtQBTRN.js → runs-BntGAKQG.js} +2 -2
- package/dist/owletto/dist/assets/runs-panel-BwTVaRsE.js +2 -0
- package/dist/owletto/dist/assets/runs-table-CYS1jDdL.js +2 -0
- package/dist/owletto/dist/assets/{schema-type-editor-panel-CAhOB648.js → schema-type-editor-panel-v3nR2Oa2.js} +2 -2
- package/dist/owletto/dist/assets/schema-value-BFb7jCBo.js +3 -0
- package/dist/owletto/dist/assets/settings-DBgT60nY.js +2 -0
- package/dist/owletto/dist/assets/settings-DubSpJfg.js +2 -0
- package/dist/owletto/dist/assets/skills-DDoeRGhJ.js +2 -0
- package/dist/owletto/dist/assets/{source-record-panels-Bh5F4C5K.js → source-record-panels-m8gECt82.js} +2 -2
- package/dist/owletto/dist/assets/{status-dot-D3FoDRcc.js → status-dot-BnQPFrcU.js} +2 -2
- package/dist/owletto/dist/assets/{table-DFcJRNk7.js → table-DALHuXPE.js} +2 -2
- package/dist/owletto/dist/assets/{use-automations-BHoV0dLs.js → use-automations-D9hKpufo.js} +2 -2
- package/dist/owletto/dist/assets/use-login-redirect-ciwfc-7A.js +2 -0
- package/dist/owletto/dist/assets/{use-mention-search-C3rWLuKm.js → use-mention-search-CJGCatFS.js} +3 -3
- package/dist/owletto/dist/assets/use-scroll-sentinel-BWCrmNIB.js +2 -0
- package/dist/owletto/dist/assets/view-param-filters-CDvwie_f.js +2 -0
- package/dist/owletto/dist/assets/views-access-required-CZ1fvAks.js +2 -0
- package/dist/owletto/dist/index.html +2 -2
- package/dist/server-main.bundle.mjs +56428 -52475
- package/dist/server.bundle.mjs +5 -5
- package/dist/verify.mjs +1 -1
- package/npm-shrinkwrap.json +277 -311
- package/package.json +3 -4
- package/vendor/connector-sdk/dist/reaction-client-types.d.ts +8 -2
- package/vendor/connector-sdk/dist/reaction-sdk.d.ts +5 -1
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/core/dist/contracts/agent-settings.d.ts +61 -6
- package/vendor/core/dist/contracts/agent-settings.js +10 -7
- package/vendor/core/dist/contracts/tools/manage-agents.d.ts +473 -98
- package/vendor/core/dist/contracts/tools/manage-agents.js +111 -2
- package/vendor/core/dist/contracts/tools/manage-automations.d.ts +21 -18
- package/vendor/core/dist/contracts/tools/manage-automations.js +15 -15
- package/vendor/core/dist/contracts/tools/manage-entity-schema.js +2 -2
- package/vendor/core/dist/contracts/tools/manage-inference-providers.d.ts +445 -0
- package/vendor/core/dist/contracts/tools/manage-inference-providers.js +133 -0
- package/vendor/core/dist/contracts/tools/manage-views.d.ts +4 -4
- package/vendor/core/dist/contracts/tools/manage-views.js +5 -3
- package/vendor/core/dist/contracts/tools/view-host.d.ts +7 -0
- package/vendor/core/dist/contracts/tools/view-host.js +28 -0
- package/vendor/core/dist/contracts/tools/view-runtime.d.ts +2 -4
- package/vendor/core/dist/contracts/tools/view-runtime.js +19 -7
- package/vendor/core/dist/contracts/worker/device-automation.js +4 -2
- package/vendor/core/dist/error-report.d.ts +73 -0
- package/vendor/core/dist/error-report.js +346 -0
- package/vendor/core/dist/index.d.ts +3 -1
- package/vendor/core/dist/index.js +4 -1
- package/vendor/core/dist/logger.js +7 -4
- package/vendor/core/dist/otel-fetch.d.ts +19 -0
- package/vendor/core/dist/otel-fetch.js +96 -0
- package/vendor/core/dist/otel.d.ts +9 -0
- package/vendor/core/dist/otel.js +28 -7
- package/vendor/core/dist/reserved.d.ts +1 -1
- package/vendor/core/dist/reserved.js +6 -4
- package/vendor/core/dist/tool-result.d.ts +8 -0
- package/vendor/core/dist/tool-result.js +61 -0
- package/vendor/core/dist/utils/diagnostic-scrubber.js +1 -1
- package/vendor/core/dist/worker/auth.js +4 -0
- package/vendor/core/package.json +16 -1
- package/vendor/views/dist/api.d.ts +9 -4
- package/vendor/views/dist/api.js +33 -2
- package/vendor/views/dist/bridge.d.ts +8 -0
- package/vendor/views/dist/bridge.js +12 -2
- package/vendor/views/dist/components.d.ts +4 -2
- package/vendor/views/dist/components.js +29 -14
- package/vendor/views/dist/index.d.ts +1 -1
- package/vendor/views/dist/index.js +1 -1
- package/vendor/views/dist/native.d.ts +327 -0
- package/vendor/views/dist/native.js +57 -0
- package/vendor/views/package.json +1 -1
- package/dist/owletto/dist/assets/_-DIK0ae_S.js +0 -2
- package/dist/owletto/dist/assets/_-gTbcArpS.js +0 -3
- package/dist/owletto/dist/assets/_agentId-DOmcJZfk.js +0 -2
- package/dist/owletto/dist/assets/_agentId-DW6wRCVC.js +0 -2
- package/dist/owletto/dist/assets/_automationId-B9IcDYBu.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey._connectionId-C6PmMPTA.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey.index-BrJ8Pzze.js +0 -2
- package/dist/owletto/dist/assets/_conversationId-BpJAeYYW.js +0 -2
- package/dist/owletto/dist/assets/_eventId-DarQJo0G.js +0 -2
- package/dist/owletto/dist/assets/_name-DtmNTcUm.js +0 -2
- package/dist/owletto/dist/assets/_owner-Db8at3hk.js +0 -3
- package/dist/owletto/dist/assets/_shape-6iFA8A86.js +0 -2
- package/dist/owletto/dist/assets/_skillKey-CXkHn3Nl.js +0 -2
- package/dist/owletto/dist/assets/_slug-DBOuBLoX.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-DC27aIN9.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-DuYDieln.js +0 -2
- package/dist/owletto/dist/assets/accept-invitation-BbDCVvur.js +0 -2
- package/dist/owletto/dist/assets/activity-route-view-V4ftmSN7.js +0 -2
- package/dist/owletto/dist/assets/agent-connect-pages-B-NPTFs6.js +0 -2
- package/dist/owletto/dist/assets/agent-editor-form-DfMTSIvj.js +0 -2
- package/dist/owletto/dist/assets/agent-guardrails-route-BvGgfd-h.js +0 -2
- package/dist/owletto/dist/assets/agent-skills-route-DFXr_bHp.js +0 -2
- package/dist/owletto/dist/assets/agent-subpage-shell-DWzljvFb.js +0 -2
- package/dist/owletto/dist/assets/agent-thread-DQIr20H-.js +0 -6
- package/dist/owletto/dist/assets/agents-CLbeiqTR.js +0 -2
- package/dist/owletto/dist/assets/agents-workbench-C8bTa2rv.js +0 -2
- package/dist/owletto/dist/assets/app._appId-Bsq40nak.js +0 -2
- package/dist/owletto/dist/assets/automation-detail-content-C9Cgr5Zj.js +0 -2
- package/dist/owletto/dist/assets/automations-CLbeiqTR.js +0 -2
- package/dist/owletto/dist/assets/calendar-DMq3Dtqy.js +0 -2
- package/dist/owletto/dist/assets/code-editor-rX0t1g5C.js +0 -16
- package/dist/owletto/dist/assets/connect-BcwgytDV.js +0 -2
- package/dist/owletto/dist/assets/connect-menu-BF-AlunU.js +0 -2
- package/dist/owletto/dist/assets/connect._clientId-sDypRDeN.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId-C9OkW1tv.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId.activity-Dc6HYr55.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId.index-C6qbqgwF.js +0 -2
- package/dist/owletto/dist/assets/connection-88YzIBK9.js +0 -2
- package/dist/owletto/dist/assets/connector-provenance-Th8ymGec.js +0 -2
- package/dist/owletto/dist/assets/connectors-BqwgLUUK.js +0 -2
- package/dist/owletto/dist/assets/consent-BR5U7dwb.js +0 -2
- package/dist/owletto/dist/assets/copy-button-2swYh4jb.js +0 -2
- package/dist/owletto/dist/assets/create-BsPVnRpG.js +0 -2
- package/dist/owletto/dist/assets/create-CVPYVOR5.js +0 -2
- package/dist/owletto/dist/assets/create-QFjmhOEU.js +0 -2
- package/dist/owletto/dist/assets/create-automation-form-DmCOFbRT.js +0 -3
- package/dist/owletto/dist/assets/create._connectorKey-DLDDVtLS.js +0 -2
- package/dist/owletto/dist/assets/cronstrue-CKwjNYgj.js +0 -2
- package/dist/owletto/dist/assets/device-CKup7kvB.js +0 -2
- package/dist/owletto/dist/assets/device-pin-tombstone-xGhCTU5_.js +0 -2
- package/dist/owletto/dist/assets/device._deviceId-B1H_ivDT.js +0 -2
- package/dist/owletto/dist/assets/entity-avatar-HloBoalJ.js +0 -2
- package/dist/owletto/dist/assets/entity-options-BSW_EG0W.js +0 -2
- package/dist/owletto/dist/assets/entity-page-D-WDWrAe.js +0 -2
- package/dist/owletto/dist/assets/entity-type-page-BCBdFndu.js +0 -2
- package/dist/owletto/dist/assets/event-card-Mcxv56DG.js +0 -2
- package/dist/owletto/dist/assets/event-detail-DXifj49J.js +0 -2
- package/dist/owletto/dist/assets/filter-bar-BQm-ubB1.js +0 -2
- package/dist/owletto/dist/assets/guardrails-D7W80sJO.js +0 -2
- package/dist/owletto/dist/assets/identity-N0cAO9BR.js +0 -2
- package/dist/owletto/dist/assets/index-4gCDI7m4.js +0 -7950
- package/dist/owletto/dist/assets/index-BNaI5GpS.js +0 -2
- package/dist/owletto/dist/assets/index-BUUrHuJJ.js +0 -2
- package/dist/owletto/dist/assets/index-BqrvJmLh.js +0 -2
- package/dist/owletto/dist/assets/index-CnvQEA5V.js +0 -2
- package/dist/owletto/dist/assets/index-Cq7P2c_E.js +0 -2
- package/dist/owletto/dist/assets/index-D3omC3Us.js +0 -2
- package/dist/owletto/dist/assets/index-DDGdlQrt.css +0 -1
- package/dist/owletto/dist/assets/index-DFEW7hMg.js +0 -2
- package/dist/owletto/dist/assets/index-DVV-WWuT.js +0 -2
- package/dist/owletto/dist/assets/index-DduQ_e9q.js +0 -2
- package/dist/owletto/dist/assets/index-DutlI1d-.js +0 -2
- package/dist/owletto/dist/assets/index-wHFQv1aT.js +0 -12
- package/dist/owletto/dist/assets/json-diff-E5D-NGYT.js +0 -4
- package/dist/owletto/dist/assets/login-7F48UJGx.js +0 -2
- package/dist/owletto/dist/assets/memory-browse-page-CfDmjhDl.js +0 -74
- package/dist/owletto/dist/assets/model-Dn40BUzs.js +0 -2
- package/dist/owletto/dist/assets/model-selector-88PJnyTq.js +0 -2
- package/dist/owletto/dist/assets/models-BBK_n2RP.js +0 -2
- package/dist/owletto/dist/assets/new-4ruWHLR5.js +0 -2
- package/dist/owletto/dist/assets/new-gMD1PHTL.js +0 -2
- package/dist/owletto/dist/assets/oauth-workspace-access-D9BNmyMY.js +0 -2
- package/dist/owletto/dist/assets/organization-BHcp5Pzg.js +0 -2
- package/dist/owletto/dist/assets/peek-pane-content-0sa10jER.js +0 -2
- package/dist/owletto/dist/assets/permissions-hhxosugv.js +0 -2
- package/dist/owletto/dist/assets/proposal-review-shell-B4CSiyLB.js +0 -2
- package/dist/owletto/dist/assets/public-shell-ready-CsenJeXa.js +0 -2
- package/dist/owletto/dist/assets/record-activity-D7bRaMk2.js +0 -2
- package/dist/owletto/dist/assets/renderer-7EGgTVX0.js +0 -97
- package/dist/owletto/dist/assets/runs-panel-Bj63_hb9.js +0 -2
- package/dist/owletto/dist/assets/settings-Dg6nxKyw.js +0 -2
- package/dist/owletto/dist/assets/settings-KJJ6WihO.js +0 -2
- package/dist/owletto/dist/assets/skills-ayt06_o2.js +0 -2
- package/dist/owletto/dist/assets/use-scroll-sentinel-Ct-jt7O0.js +0 -2
- package/dist/owletto/dist/assets/view-param-filters-mKoqDsaD.js +0 -2
- package/dist/owletto/dist/assets/views-access-required-DHrDO333.js +0 -2
- /package/vendor/@better-auth-kysely-adapter/{.bun-tag-abf95749a412716 → .bun-tag-654b3a002b271269} +0 -0
- /package/vendor/postgres/{.bun-tag-22d644c2873790db → .bun-tag-c81dacd34e959a7a} +0 -0
|
@@ -22,7 +22,10 @@ export function Card({ title, description, actions, children }) {
|
|
|
22
22
|
justifyContent: "space-between",
|
|
23
23
|
gap: 12,
|
|
24
24
|
marginBottom: description || children ? 4 : 0,
|
|
25
|
-
}, children: [title && (_jsx("h3", { style: { margin: 0, fontSize: 14, fontWeight: 600 }, children: title })), actions] })), description && (_jsx("p", { style: {
|
|
25
|
+
}, children: [title && (_jsx("h3", { style: { margin: 0, fontSize: 14, fontWeight: 600 }, children: title })), actions] })), description && (_jsx("p", { style: {
|
|
26
|
+
margin: "0 0 8px",
|
|
27
|
+
color: "var(--color-text-secondary, #6b7280)",
|
|
28
|
+
}, children: description })), children] }));
|
|
26
29
|
}
|
|
27
30
|
const CELL = {
|
|
28
31
|
padding: "6px 8px",
|
|
@@ -42,7 +45,10 @@ export function DataTable({ columns, rows, keyOf, loading = false, error = null,
|
|
|
42
45
|
const pageCount = pagination && pagination.total != null
|
|
43
46
|
? Math.max(1, Math.ceil(pagination.total / pagination.pageSize))
|
|
44
47
|
: null;
|
|
45
|
-
return (_jsxs("div", { style: INK, children: [caption && (_jsx("p", { id: labelId, style: {
|
|
48
|
+
return (_jsxs("div", { style: INK, children: [caption && (_jsx("p", { id: labelId, style: {
|
|
49
|
+
margin: "0 0 6px",
|
|
50
|
+
color: "var(--color-text-secondary, #6b7280)",
|
|
51
|
+
}, children: caption })), _jsx("div", { style: { overflowX: "auto" }, children: _jsxs("table", { "aria-labelledby": caption ? labelId : undefined, style: { borderCollapse: "collapse", width: "100%" }, children: [_jsx("thead", { children: _jsx("tr", { children: columns.map((col) => (_jsx("th", { "aria-sort": sort?.key === col.key
|
|
46
52
|
? sort.dir === "asc"
|
|
47
53
|
? "ascending"
|
|
48
54
|
: "descending"
|
|
@@ -57,7 +63,7 @@ export function DataTable({ columns, rows, keyOf, loading = false, error = null,
|
|
|
57
63
|
background: "transparent",
|
|
58
64
|
font: "inherit",
|
|
59
65
|
cursor: "pointer",
|
|
60
|
-
color: "var(--
|
|
66
|
+
color: "var(--color-text-info, #2563eb)",
|
|
61
67
|
}, children: [col.header, sort?.key === col.key
|
|
62
68
|
? sort.dir === "asc"
|
|
63
69
|
? " ▲"
|
|
@@ -70,7 +76,7 @@ export function DataTable({ columns, rows, keyOf, loading = false, error = null,
|
|
|
70
76
|
alignItems: "center",
|
|
71
77
|
gap: 8,
|
|
72
78
|
marginTop: 8,
|
|
73
|
-
}, children: [_jsx(PageButton, { disabled: pagination.page <= 1, onClick: () => pagination.onPage(pagination.page - 1), label: "Previous page" }), _jsxs("span", { style: { color: "var(--
|
|
79
|
+
}, children: [_jsx(PageButton, { disabled: pagination.page <= 1, onClick: () => pagination.onPage(pagination.page - 1), label: "Previous page" }), _jsxs("span", { style: { color: "var(--color-text-secondary, #6b7280)" }, children: ["Page ", pagination.page, pageCount != null ? ` of ${pageCount}` : ""] }), _jsx(PageButton, { disabled: pageCount == null
|
|
74
80
|
? rows.length < pagination.pageSize
|
|
75
81
|
: pagination.page >= pageCount, onClick: () => pagination.onPage(pagination.page + 1), label: "Next page" })] }))] }));
|
|
76
82
|
}
|
|
@@ -102,7 +108,7 @@ export function FilterBar({ children }) {
|
|
|
102
108
|
const FIELD_LABEL = {
|
|
103
109
|
display: "block",
|
|
104
110
|
fontSize: 12,
|
|
105
|
-
color: "var(--
|
|
111
|
+
color: "var(--color-text-secondary, #6b7280)",
|
|
106
112
|
marginBottom: 2,
|
|
107
113
|
};
|
|
108
114
|
const FIELD_BOX = {
|
|
@@ -128,9 +134,9 @@ export function SelectField({ label, value, options, onChange, }) {
|
|
|
128
134
|
const id = useId();
|
|
129
135
|
return (_jsxs("label", { style: { ...INK, display: "block" }, children: [_jsx("span", { style: FIELD_LABEL, children: label }), _jsxs("select", { id: id, value: value, onChange: (e) => onChange(e.target.value), style: FIELD_BOX, children: [_jsx("option", { value: "", children: "All" }), options.map((o) => (_jsx("option", { value: o.value, children: o.label }, o.value)))] })] }));
|
|
130
136
|
}
|
|
131
|
-
const CHART_BAR = "var(--
|
|
137
|
+
const CHART_BAR = "var(--color-text-info, #2563eb)";
|
|
132
138
|
const CHART_GRID = "var(--border, #e5e7eb)";
|
|
133
|
-
const CHART_TEXT = "var(--
|
|
139
|
+
const CHART_TEXT = "var(--color-text-secondary, #6b7280)";
|
|
134
140
|
function niceMax(value) {
|
|
135
141
|
if (!Number.isFinite(value) || value <= 0)
|
|
136
142
|
return 1;
|
|
@@ -295,8 +301,9 @@ export function Sparkline({ values, width = 120, height = 32, label, }) {
|
|
|
295
301
|
/**
|
|
296
302
|
* A link the host opens: `href="deal/acme-renewal"` opens that record
|
|
297
303
|
* (relative links resolve against the workspace root, see
|
|
298
|
-
* `useHost().openLink`)
|
|
299
|
-
*
|
|
304
|
+
* `useHost().openLink`). On Lobu hosts, supported same-workspace links open
|
|
305
|
+
* the peek pane; other app links navigate normally and external URLs open a new
|
|
306
|
+
* tab. The sandboxed frame cannot navigate itself, so every click goes through the host, modifier
|
|
300
307
|
* clicks included; the anchor still shows the resolved address on hover.
|
|
301
308
|
*/
|
|
302
309
|
export function Link({ href, children, }) {
|
|
@@ -308,16 +315,19 @@ export function Link({ href, children, }) {
|
|
|
308
315
|
return (_jsx("a", { href: resolveViewHref(href), onClick: open, onAuxClick: (event) => {
|
|
309
316
|
if (event.button === 1)
|
|
310
317
|
open(event);
|
|
311
|
-
}, style: {
|
|
318
|
+
}, style: {
|
|
319
|
+
color: "var(--color-text-info, #2563eb)",
|
|
320
|
+
textDecoration: "none",
|
|
321
|
+
}, children: children }));
|
|
312
322
|
}
|
|
313
323
|
/* ------------------------------------------------------------------ */
|
|
314
324
|
/* Query states — render `useQuery` honestly */
|
|
315
325
|
/* ------------------------------------------------------------------ */
|
|
316
326
|
export function LoadingState({ text = "Loading…" }) {
|
|
317
|
-
return (_jsx("p", { role: "status", style: { ...INK, color: "var(--
|
|
327
|
+
return (_jsx("p", { role: "status", style: { ...INK, color: "var(--color-text-secondary, #6b7280)" }, children: text }));
|
|
318
328
|
}
|
|
319
329
|
export function EmptyState({ title, hint }) {
|
|
320
|
-
return (_jsxs("div", { style: { ...INK, color: "var(--
|
|
330
|
+
return (_jsxs("div", { style: { ...INK, color: "var(--color-text-secondary, #6b7280)" }, children: [_jsx("p", { style: { margin: "4px 0" }, children: title }), hint && _jsx("p", { style: { margin: "0 0 4px", fontSize: 12 }, children: hint })] }));
|
|
321
331
|
}
|
|
322
332
|
export function ErrorState({ message, errorCode, onRetry, }) {
|
|
323
333
|
return (_jsxs("div", { role: "alert", style: {
|
|
@@ -328,7 +338,7 @@ export function ErrorState({ message, errorCode, onRetry, }) {
|
|
|
328
338
|
}, children: [_jsx("p", { style: { margin: "0 0 4px" }, children: message }), errorCode && (_jsxs("p", { style: {
|
|
329
339
|
margin: "0 0 4px",
|
|
330
340
|
fontSize: 12,
|
|
331
|
-
color: "var(--
|
|
341
|
+
color: "var(--color-text-secondary, #6b7280)",
|
|
332
342
|
}, children: ["Code: ", errorCode] })), onRetry && (_jsx("button", { type: "button", onClick: onRetry, style: {
|
|
333
343
|
cursor: "pointer",
|
|
334
344
|
border: "1px solid var(--border, #e5e7eb)",
|
|
@@ -345,7 +355,11 @@ export function ErrorState({ message, errorCode, onRetry, }) {
|
|
|
345
355
|
* construction — narrow the query instead of treating it as complete.
|
|
346
356
|
*/
|
|
347
357
|
export function TruncatedNotice({ shown, total, }) {
|
|
348
|
-
return (_jsxs("p", { style: {
|
|
358
|
+
return (_jsxs("p", { style: {
|
|
359
|
+
...INK,
|
|
360
|
+
color: "var(--color-text-secondary, #6b7280)",
|
|
361
|
+
fontSize: 12,
|
|
362
|
+
}, children: ["Showing ", shown, total != null ? ` of ${total}` : "", " rows \u2014 refine filters to see the rest."] }));
|
|
349
363
|
}
|
|
350
364
|
/** Format large counts compactly (1.2K, 3.4M). Plain numbers pass through. */
|
|
351
365
|
export function formatCompact(value) {
|
|
@@ -358,4 +372,5 @@ export function formatCompact(value) {
|
|
|
358
372
|
return `${(value / 1_000).toFixed(1)}K`;
|
|
359
373
|
return String(value);
|
|
360
374
|
}
|
|
375
|
+
export * from "./native.js";
|
|
361
376
|
//# sourceMappingURL=components.js.map
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
export type { AttributeFilter, CollectionSelection, } from "@lobu/core/contracts/tools/collection-selection";
|
|
9
9
|
export { ViewBridge } from "./bridge.js";
|
|
10
10
|
export type { BridgeOptions, HostContext, ToolResult, ViewHandoff, } from "./bridge.js";
|
|
11
|
-
export { coerceParams, defaultsFor, defineView, escapeLiteral, mintInteractionId, mountView, Provider, sql, tool, useAction, useHost, useParams, useQuery, useScope, } from "./api.js";
|
|
11
|
+
export { coerceParams, defaultsFor, defineView, escapeLiteral, mintInteractionId, mountView, resolveViewHref, Provider, sql, tool, useAction, useHost, useParams, useQuery, useScope, } from "./api.js";
|
|
12
12
|
export type { ActionResult, Attachment, Container, DisplayMode, MountOptions, ParamDef, Params, ParamValue, QueryOptions, QueryState, Scope, SqlQuery, ToolQuery, ViewDefinition, } from "./api.js";
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { ViewBridge } from "./bridge.js";
|
|
2
|
-
export { coerceParams, defaultsFor, defineView, escapeLiteral, mintInteractionId, mountView, Provider, sql, tool, useAction, useHost, useParams, useQuery, useScope, } from "./api.js";
|
|
2
|
+
export { coerceParams, defaultsFor, defineView, escapeLiteral, mintInteractionId, mountView, resolveViewHref, Provider, sql, tool, useAction, useHost, useParams, useQuery, useScope, } from "./api.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/** Public prop contracts for the native components built by Owletto.
|
|
2
|
+
* Implementations are supplied by the host artifact, using the shell's React. */
|
|
3
|
+
import { type ComponentType, type ReactNode, type ComponentProps } from "react";
|
|
4
|
+
import type { ValueFormat } from "@lobu/core/json-template";
|
|
5
|
+
export interface ViewEntity {
|
|
6
|
+
id: number | string | null;
|
|
7
|
+
name: string;
|
|
8
|
+
entity_type: string;
|
|
9
|
+
parent_id?: number | null;
|
|
10
|
+
slug: string;
|
|
11
|
+
parent_slug?: string | null;
|
|
12
|
+
parent_entity_type?: string | null;
|
|
13
|
+
domain?: string;
|
|
14
|
+
organization_id?: string;
|
|
15
|
+
metadata?: Record<string, unknown>;
|
|
16
|
+
relationships?: Record<string, Array<{
|
|
17
|
+
id: number;
|
|
18
|
+
name: string;
|
|
19
|
+
slug: string;
|
|
20
|
+
entity_type: string;
|
|
21
|
+
}>>;
|
|
22
|
+
created_at?: string;
|
|
23
|
+
total_content?: number | null;
|
|
24
|
+
active_connections?: number | null;
|
|
25
|
+
automations_count?: number | null;
|
|
26
|
+
children_count?: number | null;
|
|
27
|
+
parent_name?: string | null;
|
|
28
|
+
}
|
|
29
|
+
export interface SchemaProperty {
|
|
30
|
+
type?: string;
|
|
31
|
+
title?: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
enum?: Array<string | number>;
|
|
34
|
+
readOnly?: boolean;
|
|
35
|
+
format?: string;
|
|
36
|
+
items?: SchemaProperty;
|
|
37
|
+
minItems?: number;
|
|
38
|
+
maxItems?: number;
|
|
39
|
+
properties?: Record<string, SchemaProperty>;
|
|
40
|
+
required?: string[];
|
|
41
|
+
"x-image"?: boolean;
|
|
42
|
+
"x-email"?: boolean;
|
|
43
|
+
"x-table-column"?: boolean;
|
|
44
|
+
"x-table-label"?: string;
|
|
45
|
+
"x-currency"?: boolean;
|
|
46
|
+
"x-link-entity-type"?: string;
|
|
47
|
+
"x-link-lookup-field"?: string;
|
|
48
|
+
/** Display labels keyed by stringified enum value. */
|
|
49
|
+
"x-enum-labels"?: Record<string, string>;
|
|
50
|
+
/** Omitted from schema-driven field lists without clearing the stored value. */
|
|
51
|
+
"x-hidden"?: boolean;
|
|
52
|
+
"x-measure"?: unknown;
|
|
53
|
+
"x-dimension"?: unknown;
|
|
54
|
+
}
|
|
55
|
+
interface MetadataTableProperty {
|
|
56
|
+
title?: string;
|
|
57
|
+
description?: string;
|
|
58
|
+
enum?: string[];
|
|
59
|
+
format?: string;
|
|
60
|
+
"x-table-column"?: boolean;
|
|
61
|
+
"x-table-label"?: string;
|
|
62
|
+
"x-image"?: boolean;
|
|
63
|
+
"x-link-entity-type"?: string;
|
|
64
|
+
"x-link-lookup-field"?: string;
|
|
65
|
+
"x-currency"?: boolean;
|
|
66
|
+
"x-hidden"?: boolean;
|
|
67
|
+
"x-enum-labels"?: Record<string, string>;
|
|
68
|
+
}
|
|
69
|
+
export interface EntityTableSchema {
|
|
70
|
+
properties?: Record<string, MetadataTableProperty>;
|
|
71
|
+
"x-table-relationships"?: Array<{
|
|
72
|
+
relationship_type: string;
|
|
73
|
+
label: string;
|
|
74
|
+
}>;
|
|
75
|
+
}
|
|
76
|
+
export interface EntityTableViewProps {
|
|
77
|
+
entities: ViewEntity[];
|
|
78
|
+
owner: string;
|
|
79
|
+
schema?: EntityTableSchema;
|
|
80
|
+
entityTypeIcon?: string;
|
|
81
|
+
isDerived: boolean;
|
|
82
|
+
measureColumns: string[];
|
|
83
|
+
linkedEntityLookups: Record<string, Record<string, {
|
|
84
|
+
slug: string;
|
|
85
|
+
entity_type: string;
|
|
86
|
+
name: string;
|
|
87
|
+
}>>;
|
|
88
|
+
hasAnyParents: boolean;
|
|
89
|
+
sorting: Array<{
|
|
90
|
+
id: string;
|
|
91
|
+
desc: boolean;
|
|
92
|
+
}>;
|
|
93
|
+
onSortingChange: (update: Array<{
|
|
94
|
+
id: string;
|
|
95
|
+
desc: boolean;
|
|
96
|
+
}> | ((previous: Array<{
|
|
97
|
+
id: string;
|
|
98
|
+
desc: boolean;
|
|
99
|
+
}>) => Array<{
|
|
100
|
+
id: string;
|
|
101
|
+
desc: boolean;
|
|
102
|
+
}>)) => void;
|
|
103
|
+
visibleColumns?: string[];
|
|
104
|
+
/** Columns the header's picker offers; no picker without it. */
|
|
105
|
+
columnChoices?: {
|
|
106
|
+
field: string;
|
|
107
|
+
label: string;
|
|
108
|
+
}[];
|
|
109
|
+
onVisibleColumnsChange?: (visible: string[]) => void;
|
|
110
|
+
page: number;
|
|
111
|
+
pageSize: number;
|
|
112
|
+
totalCount: number;
|
|
113
|
+
hasMore: boolean;
|
|
114
|
+
pageTitle: string;
|
|
115
|
+
onPrevPage: () => void;
|
|
116
|
+
onNextPage: () => void;
|
|
117
|
+
}
|
|
118
|
+
export interface SpecField {
|
|
119
|
+
key: string;
|
|
120
|
+
prop: SchemaProperty;
|
|
121
|
+
/** Overrides the schema label (derived columns keep their source names). */
|
|
122
|
+
label?: string;
|
|
123
|
+
/** Right-aligned digits for scanning measures. */
|
|
124
|
+
numeric?: boolean;
|
|
125
|
+
}
|
|
126
|
+
export interface SpecSheetContext {
|
|
127
|
+
ownerSlug: string;
|
|
128
|
+
orgContext?: {
|
|
129
|
+
organizationId?: string | null;
|
|
130
|
+
slug?: string | null;
|
|
131
|
+
};
|
|
132
|
+
controls?: Record<string, {
|
|
133
|
+
set_by?: string | null;
|
|
134
|
+
set_at?: string;
|
|
135
|
+
note?: string | null;
|
|
136
|
+
}>;
|
|
137
|
+
/** Opens an object-array field in the peek pane; without it the count is plain text. */
|
|
138
|
+
openField?: (field: SpecField) => void;
|
|
139
|
+
/** The field the peek pane shows now. */
|
|
140
|
+
openFieldKey?: string;
|
|
141
|
+
/** Fields with unsaved edits. */
|
|
142
|
+
dirtyKeys?: readonly string[];
|
|
143
|
+
}
|
|
144
|
+
/** Controlled collection page. Reads and actions remain with its caller. */
|
|
145
|
+
export interface EntityListPageProps {
|
|
146
|
+
title: ReactNode;
|
|
147
|
+
actions?: ReactNode;
|
|
148
|
+
controls?: ReactNode;
|
|
149
|
+
table?: EntityTableViewProps;
|
|
150
|
+
/** Overrides the table, including for generic SQL/TypeScript rows. */
|
|
151
|
+
children?: ReactNode;
|
|
152
|
+
loading?: boolean;
|
|
153
|
+
error?: string | null;
|
|
154
|
+
onRetry?: () => void;
|
|
155
|
+
empty?: ReactNode;
|
|
156
|
+
}
|
|
157
|
+
/** Shared record body; callers provide activity, views and authorized actions. */
|
|
158
|
+
export interface EntityRecordPageProps {
|
|
159
|
+
entity: ViewEntity;
|
|
160
|
+
owner: string;
|
|
161
|
+
schema?: EntityTableSchema;
|
|
162
|
+
title?: ReactNode;
|
|
163
|
+
actions?: ReactNode;
|
|
164
|
+
details?: ReactNode;
|
|
165
|
+
summary?: ReactNode;
|
|
166
|
+
children?: ReactNode;
|
|
167
|
+
/** Content mode keeps the header and lets children own the body layout. */
|
|
168
|
+
layout?: "record" | "content";
|
|
169
|
+
}
|
|
170
|
+
/** Saved identities are resolved through the visiting user's existing reads.
|
|
171
|
+
* Authored names, status and callbacks are never accepted as identity. */
|
|
172
|
+
interface LiveReference {
|
|
173
|
+
mode: "live";
|
|
174
|
+
workspace: string;
|
|
175
|
+
appearance?: "inline" | "row";
|
|
176
|
+
}
|
|
177
|
+
export interface AutomationReferenceProps extends LiveReference {
|
|
178
|
+
automationId: string;
|
|
179
|
+
}
|
|
180
|
+
export interface AgentReferenceProps extends LiveReference {
|
|
181
|
+
agentId: string;
|
|
182
|
+
}
|
|
183
|
+
export interface ConnectorReferenceProps extends LiveReference {
|
|
184
|
+
connectorKey: string;
|
|
185
|
+
connectionId?: number;
|
|
186
|
+
}
|
|
187
|
+
export interface JsonDiffProps {
|
|
188
|
+
before: Record<string, unknown> | null;
|
|
189
|
+
after: Record<string, unknown> | null;
|
|
190
|
+
}
|
|
191
|
+
/** Read-only native definition body. Pass a saved object or an authored snapshot.
|
|
192
|
+
* No fetching, code execution, saving or approval is performed by the body. */
|
|
193
|
+
export interface DefinitionProps {
|
|
194
|
+
value: Record<string, unknown>;
|
|
195
|
+
}
|
|
196
|
+
export interface NativeComponentProps {
|
|
197
|
+
AutomationDefinition: DefinitionProps;
|
|
198
|
+
AgentDefinition: DefinitionProps;
|
|
199
|
+
ConnectorDefinition: DefinitionProps;
|
|
200
|
+
AutomationReference: AutomationReferenceProps;
|
|
201
|
+
AgentReference: AgentReferenceProps;
|
|
202
|
+
ConnectorReference: ConnectorReferenceProps;
|
|
203
|
+
JsonDiff: JsonDiffProps;
|
|
204
|
+
EntityListPage: EntityListPageProps;
|
|
205
|
+
EntityRecordPage: EntityRecordPageProps;
|
|
206
|
+
EntityTableView: EntityTableViewProps;
|
|
207
|
+
RecordSpecSheet: {
|
|
208
|
+
fields: SpecField[];
|
|
209
|
+
values: Record<string, unknown>;
|
|
210
|
+
context: SpecSheetContext;
|
|
211
|
+
fieldLimit?: number;
|
|
212
|
+
};
|
|
213
|
+
SchemaValue: {
|
|
214
|
+
value: unknown;
|
|
215
|
+
prop?: SchemaProperty;
|
|
216
|
+
format?: ValueFormat;
|
|
217
|
+
resolveLink?: (raw: string) => {
|
|
218
|
+
label: string;
|
|
219
|
+
to: string;
|
|
220
|
+
} | undefined;
|
|
221
|
+
empty?: ReactNode;
|
|
222
|
+
className?: string;
|
|
223
|
+
};
|
|
224
|
+
EntityAvatar: {
|
|
225
|
+
metadata: Record<string, unknown> | null | undefined;
|
|
226
|
+
metadataSchema: Record<string, unknown> | null | undefined;
|
|
227
|
+
name: string;
|
|
228
|
+
typeIcon?: string | null;
|
|
229
|
+
className?: string;
|
|
230
|
+
iconClassName?: string;
|
|
231
|
+
initialsFallback?: boolean;
|
|
232
|
+
};
|
|
233
|
+
Button: ComponentProps<"button"> & {
|
|
234
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null;
|
|
235
|
+
size?: "default" | "sm" | "lg" | "icon" | null;
|
|
236
|
+
asChild?: boolean;
|
|
237
|
+
};
|
|
238
|
+
Badge: ComponentProps<"span"> & {
|
|
239
|
+
variant?: "default" | "secondary" | "destructive" | "outline";
|
|
240
|
+
};
|
|
241
|
+
Tabs: {
|
|
242
|
+
defaultValue: string;
|
|
243
|
+
children?: ReactNode;
|
|
244
|
+
};
|
|
245
|
+
TabsList: {
|
|
246
|
+
label?: string;
|
|
247
|
+
children?: ReactNode;
|
|
248
|
+
};
|
|
249
|
+
TabsTrigger: {
|
|
250
|
+
value: string;
|
|
251
|
+
children?: ReactNode;
|
|
252
|
+
};
|
|
253
|
+
TabsContent: {
|
|
254
|
+
value: string;
|
|
255
|
+
children?: ReactNode;
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
export type NativeComponents = {
|
|
259
|
+
[K in keyof NativeComponentProps]: ComponentType<NativeComponentProps[K]>;
|
|
260
|
+
};
|
|
261
|
+
export declare const NATIVE_COMPONENT_NAMES: readonly ["AutomationDefinition", "AgentDefinition", "ConnectorDefinition", "AutomationReference", "AgentReference", "ConnectorReference", "JsonDiff", "EntityListPage", "EntityRecordPage", "EntityTableView", "RecordSpecSheet", "SchemaValue", "EntityAvatar", "Button", "Badge", "Tabs", "TabsList", "TabsTrigger", "TabsContent"];
|
|
262
|
+
export declare const NATIVE_COMPONENT_GLOBAL = "__lobuViewNative";
|
|
263
|
+
export declare const EntityListPage: ComponentType<EntityListPageProps>;
|
|
264
|
+
export declare const EntityRecordPage: ComponentType<EntityRecordPageProps>;
|
|
265
|
+
export declare const EntityTableView: ComponentType<EntityTableViewProps>;
|
|
266
|
+
export declare const RecordSpecSheet: ComponentType<{
|
|
267
|
+
fields: SpecField[];
|
|
268
|
+
values: Record<string, unknown>;
|
|
269
|
+
context: SpecSheetContext;
|
|
270
|
+
fieldLimit?: number;
|
|
271
|
+
}>;
|
|
272
|
+
export declare const SchemaValue: ComponentType<{
|
|
273
|
+
value: unknown;
|
|
274
|
+
prop?: SchemaProperty;
|
|
275
|
+
format?: ValueFormat;
|
|
276
|
+
resolveLink?: (raw: string) => {
|
|
277
|
+
label: string;
|
|
278
|
+
to: string;
|
|
279
|
+
} | undefined;
|
|
280
|
+
empty?: ReactNode;
|
|
281
|
+
className?: string;
|
|
282
|
+
}>;
|
|
283
|
+
export declare const EntityAvatar: ComponentType<{
|
|
284
|
+
metadata: Record<string, unknown> | null | undefined;
|
|
285
|
+
metadataSchema: Record<string, unknown> | null | undefined;
|
|
286
|
+
name: string;
|
|
287
|
+
typeIcon?: string | null;
|
|
288
|
+
className?: string;
|
|
289
|
+
iconClassName?: string;
|
|
290
|
+
initialsFallback?: boolean;
|
|
291
|
+
}>;
|
|
292
|
+
export declare const Button: ComponentType<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
293
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null;
|
|
294
|
+
size?: "default" | "sm" | "lg" | "icon" | null;
|
|
295
|
+
asChild?: boolean;
|
|
296
|
+
}>;
|
|
297
|
+
export declare const Badge: ComponentType<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
298
|
+
variant?: "default" | "secondary" | "destructive" | "outline";
|
|
299
|
+
}>;
|
|
300
|
+
export declare const Tabs: ComponentType<{
|
|
301
|
+
defaultValue: string;
|
|
302
|
+
children?: ReactNode;
|
|
303
|
+
}>;
|
|
304
|
+
export declare const TabsList: ComponentType<{
|
|
305
|
+
label?: string;
|
|
306
|
+
children?: ReactNode;
|
|
307
|
+
}>;
|
|
308
|
+
export declare const TabsTrigger: ComponentType<{
|
|
309
|
+
value: string;
|
|
310
|
+
children?: ReactNode;
|
|
311
|
+
}>;
|
|
312
|
+
export declare const TabsContent: ComponentType<{
|
|
313
|
+
value: string;
|
|
314
|
+
children?: ReactNode;
|
|
315
|
+
}>;
|
|
316
|
+
export declare const AutomationReference: ComponentType<AutomationReferenceProps>;
|
|
317
|
+
export declare const AgentReference: ComponentType<AgentReferenceProps>;
|
|
318
|
+
export declare const ConnectorReference: ComponentType<ConnectorReferenceProps>;
|
|
319
|
+
export declare const JsonDiff: ComponentType<JsonDiffProps>;
|
|
320
|
+
/** Instructions, sources, triggers, outputs and code from an Automation snapshot. */
|
|
321
|
+
export declare const AutomationDefinition: ComponentType<DefinitionProps>;
|
|
322
|
+
/** Identity and settings from an Agent snapshot, using the native editor fields. */
|
|
323
|
+
export declare const AgentDefinition: ComponentType<DefinitionProps>;
|
|
324
|
+
/** Connector capabilities, schemas and source from a definition snapshot. */
|
|
325
|
+
export declare const ConnectorDefinition: ComponentType<DefinitionProps>;
|
|
326
|
+
export {};
|
|
327
|
+
//# sourceMappingURL=native.d.ts.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/** Public prop contracts for the native components built by Owletto.
|
|
2
|
+
* Implementations are supplied by the host artifact, using the shell's React. */
|
|
3
|
+
import { createElement, } from "react";
|
|
4
|
+
export const NATIVE_COMPONENT_NAMES = [
|
|
5
|
+
"AutomationDefinition",
|
|
6
|
+
"AgentDefinition",
|
|
7
|
+
"ConnectorDefinition",
|
|
8
|
+
"AutomationReference",
|
|
9
|
+
"AgentReference",
|
|
10
|
+
"ConnectorReference",
|
|
11
|
+
"JsonDiff",
|
|
12
|
+
"EntityListPage",
|
|
13
|
+
"EntityRecordPage",
|
|
14
|
+
"EntityTableView",
|
|
15
|
+
"RecordSpecSheet",
|
|
16
|
+
"SchemaValue",
|
|
17
|
+
"EntityAvatar",
|
|
18
|
+
"Button",
|
|
19
|
+
"Badge",
|
|
20
|
+
"Tabs",
|
|
21
|
+
"TabsList",
|
|
22
|
+
"TabsTrigger",
|
|
23
|
+
"TabsContent",
|
|
24
|
+
];
|
|
25
|
+
export const NATIVE_COMPONENT_GLOBAL = "__lobuViewNative";
|
|
26
|
+
function native(name) {
|
|
27
|
+
return function NativeComponent(props) {
|
|
28
|
+
const registry = globalThis.__lobuViewNative;
|
|
29
|
+
const component = registry?.[name];
|
|
30
|
+
if (!component)
|
|
31
|
+
throw new Error(`Native component ${name} is unavailable in this host runtime.`);
|
|
32
|
+
return createElement(component, props);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export const EntityListPage = native("EntityListPage");
|
|
36
|
+
export const EntityRecordPage = native("EntityRecordPage");
|
|
37
|
+
export const EntityTableView = native("EntityTableView");
|
|
38
|
+
export const RecordSpecSheet = native("RecordSpecSheet");
|
|
39
|
+
export const SchemaValue = native("SchemaValue");
|
|
40
|
+
export const EntityAvatar = native("EntityAvatar");
|
|
41
|
+
export const Button = native("Button");
|
|
42
|
+
export const Badge = native("Badge");
|
|
43
|
+
export const Tabs = native("Tabs");
|
|
44
|
+
export const TabsList = native("TabsList");
|
|
45
|
+
export const TabsTrigger = native("TabsTrigger");
|
|
46
|
+
export const TabsContent = native("TabsContent");
|
|
47
|
+
export const AutomationReference = native("AutomationReference");
|
|
48
|
+
export const AgentReference = native("AgentReference");
|
|
49
|
+
export const ConnectorReference = native("ConnectorReference");
|
|
50
|
+
export const JsonDiff = native("JsonDiff");
|
|
51
|
+
/** Instructions, sources, triggers, outputs and code from an Automation snapshot. */
|
|
52
|
+
export const AutomationDefinition = native("AutomationDefinition");
|
|
53
|
+
/** Identity and settings from an Agent snapshot, using the native editor fields. */
|
|
54
|
+
export const AgentDefinition = native("AgentDefinition");
|
|
55
|
+
/** Connector capabilities, schemas and source from a definition snapshot. */
|
|
56
|
+
export const ConnectorDefinition = native("ConnectorDefinition");
|
|
57
|
+
//# sourceMappingURL=native.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ce as t,w as m,j as e,cf as a,ap as s}from"./index-4gCDI7m4.js";import{A as n}from"./activity-route-view-V4ftmSN7.js";import"./record-activity-D7bRaMk2.js";import"./filter-bar-BQm-ubB1.js";import"./calendar-DMq3Dtqy.js";import"./connection-label-BobuYiAG.js";import"./runs-BPtQBTRN.js";import"./source-record-panels-Bh5F4C5K.js";import"./event-card-Mcxv56DG.js";import"./use-scroll-sentinel-Ct-jt7O0.js";import"./use-automations-BHoV0dLs.js";import"./clients-C7Lnuc3S.js";import"./renderer-7EGgTVX0.js";import"./table-DFcJRNk7.js";import"./card-SFtxv9f2.js";import"./json-diff-E5D-NGYT.js";import"./index-wHFQv1aT.js";import"./copy-button-2swYh4jb.js";import"./events-feed-BysC9HgU.js";import"./client-activity-scopes-boZOHuPW.js";import"./client-rows-BJ2PxM4J.js";import"./agent-loading-shells-Dnmb6W5Y.js";import"./member-scope-gate-vp3FihBD.js";import"./public-shell-ready-CsenJeXa.js";function z(){const{owner:o}=t.useParams(),r=m({select:p=>p.pathname}),i=t.useSearch();return e.jsx(n,{owner:o,search:i,entityScope:a(s(r,1)).path})}export{z as component};
|
|
2
|
-
//# sourceMappingURL=_-DIK0ae_S.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/entity-page-D-WDWrAe.js","assets/index-4gCDI7m4.js","assets/index-DDGdlQrt.css","assets/record-activity-D7bRaMk2.js","assets/filter-bar-BQm-ubB1.js","assets/calendar-DMq3Dtqy.js","assets/connection-label-BobuYiAG.js","assets/runs-BPtQBTRN.js","assets/source-record-panels-Bh5F4C5K.js","assets/event-card-Mcxv56DG.js","assets/use-scroll-sentinel-Ct-jt7O0.js","assets/use-automations-BHoV0dLs.js","assets/clients-C7Lnuc3S.js","assets/renderer-7EGgTVX0.js","assets/table-DFcJRNk7.js","assets/card-SFtxv9f2.js","assets/json-diff-E5D-NGYT.js","assets/index-wHFQv1aT.js","assets/copy-button-2swYh4jb.js","assets/events-feed-BysC9HgU.js","assets/client-activity-scopes-boZOHuPW.js","assets/client-rows-BJ2PxM4J.js","assets/agent-loading-shells-Dnmb6W5Y.js","assets/member-scope-gate-vp3FihBD.js","assets/views-access-required-DHrDO333.js","assets/record-session-CWXnCVln.js","assets/entity-avatar-HloBoalJ.js","assets/view-param-filters-mKoqDsaD.js","assets/app-bridge-C4nPtae3.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{an as p,w as x,ao as y,ap as j,aq as P,ar as g,o as R,s as f,j as e,r as v,as as w,m as E,_ as S}from"./index-4gCDI7m4.js";import{P as r}from"./public-shell-ready-CsenJeXa.js";const _=E(async()=>({default:(await S(async()=>{const{EntityPage:a}=await import("./entity-page-D-WDWrAe.js");return{EntityPage:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28]))).EntityPage}));function c(){return e.jsx("div",{"data-public-loading":"true",children:e.jsx(w,{})})}function L(){const{owner:a}=p.useParams(),l=x({select:m=>m.pathname}),s=y(j(l)),d=s?.viewKey,{path:u}=P(a,s?.entityPath),{data:t,isLoading:n,error:o}=g(u,{slug:a},{includeBootstrap:!0}),{session:h,isReady:i}=R();return f({active:!n&&i&&!h&&(!!o||!t),owner:a}),n||!i&&!t?e.jsx(c,{}):o||!t||!t.entity?e.jsxs(e.Fragment,{children:[e.jsx(r,{}),e.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[e.jsx("h1",{className:"text-2xl font-semibold",children:"Not Found"}),e.jsx("p",{className:"text-muted-foreground mt-2",children:"We couldn't resolve this path."})]})]}):e.jsxs(e.Fragment,{children:[e.jsx(r,{}),e.jsx(v.Suspense,{fallback:e.jsx(c,{}),children:e.jsx(_,{namespace:t.workspace,path:t.path,entity:t.entity,viewKey:d})})]})}export{L as component};
|
|
3
|
-
//# sourceMappingURL=_-gTbcArpS.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{v as L,go as w,r as u,gp as C,j as n,h as D,cq as S,o as E,au as P,bd as M,b4 as N,bm as R,cI as O,gq as $,gr as q,by as B,E as Q}from"./index-4gCDI7m4.js";import{L as z,A as F}from"./agent-thread-DQIr20H-.js";import{A as H,C as U}from"./agent-loading-shells-Dnmb6W5Y.js";import"./app-bridge-C4nPtae3.js";import"./use-mention-search-C3rWLuKm.js";import"./index-wHFQv1aT.js";import"./use-automations-BHoV0dLs.js";import"./event-card-Mcxv56DG.js";import"./use-scroll-sentinel-Ct-jt7O0.js";import"./clients-C7Lnuc3S.js";import"./renderer-7EGgTVX0.js";import"./calendar-DMq3Dtqy.js";import"./table-DFcJRNk7.js";import"./card-SFtxv9f2.js";import"./json-diff-E5D-NGYT.js";import"./copy-button-2swYh4jb.js";import"./events-feed-BysC9HgU.js";import"./client-activity-scopes-boZOHuPW.js";import"./client-rows-BJ2PxM4J.js";function W({owner:e,agent:s,threadId:t,afterMessagesContent:d,className:r,initialDraft:h,newChatRequested:f=!1,preventAutoNavigate:p}){const o=L(),i=s.agentId,{data:a=[]}=w(i,{orgSlug:e}),[l,x]=u.useState(()=>C()),[g,A]=u.useState(null);u.useEffect(()=>{!f||t||(x(C()),A(null),o({to:".",search:(m=>{const{new:b,...y}=m;return y}),replace:!0}))},[f,t,o]);const v=u.useMemo(()=>!g||a.some(m=>m.id===g.id)?a:[g,...a],[a,g]),c=t??l,T=!t||!v.some(m=>m.id===t),j=u.useCallback(()=>{if(v.some(b=>b.id===c))return;A({id:c,title:`Conversation ${v.length+1}`,createdAt:Date.now(),updatedAt:Date.now()});const m=S(e,i,c);o({...m,replace:!0})},[v,c,o,e,i]),k=u.useCallback(()=>{T&&!p&&j()},[T,j,p]);return n.jsx("div",{className:D("flex min-h-0 flex-1 flex-col",r),children:n.jsx("div",{className:"flex min-h-0 flex-1 flex-col",children:n.jsx(z,{agentId:i,workspaceSlug:e,thread:c,loadHistory:!!t,onFirstUserMessage:k,initialDraft:h,children:n.jsx(F,{afterMessagesContent:d})},`${i}:${c}`)})})}function _({owner:e,agentId:s,threadId:t,initialDraft:d,newChatRequested:r,afterMessagesContent:h,preventAutoNavigate:f}){const{isAuthenticated:p}=E(),{isMember:o,isLoading:i}=P(),a=p&&o,{data:l=[],isLoading:x}=M({enabled:a}),g=s??null,A=l.find(c=>c.agentId===g)??null;return a&&x||i?n.jsx(H,{}):A?n.jsx(W,{owner:e,agent:A,threadId:t,initialDraft:d,newChatRequested:r,afterMessagesContent:h,preventAutoNavigate:f,className:"min-h-0 flex-1 overflow-hidden"}):n.jsx(N,{icon:R,title:"Agent not found",description:"This agent may have been removed."})}function G(e){return[...e].sort((s,t)=>t.updatedAt-s.updatedAt)[0]}function J({owner:e,agentId:s,threadId:t,initialDraft:d,forceComposer:r=!1,newChatRequested:h=!1,afterMessagesContent:f,preventAutoNavigate:p}){const o=L(),{data:i=[],isLoading:a}=O($(e,s,{strict:!1})),l=u.useMemo(()=>G(i),[i]);return u.useEffect(()=>{if(t||r||a||!l)return;const x=S(e,s,l.id);o({...x,replace:!0})},[s,a,l,o,e,t,r]),!t&&!r&&(a||l)?n.jsx(U,{}):n.jsx(_,{owner:e,agentId:s,threadId:t,initialDraft:d,newChatRequested:h,afterMessagesContent:f,preventAutoNavigate:p})}function ft(){const{owner:e,agentId:s}=q.useParams(),{threadId:t}=B({strict:!1}),{new:d,prompt:r}=Q({strict:!1});return n.jsx("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden px-4 pt-2.5 pb-4 lg:px-6 lg:pb-6",children:n.jsx("div",{className:"mx-auto flex min-h-0 w-full max-w-3xl flex-1 flex-col",children:n.jsx(J,{owner:e,agentId:s,threadId:t,initialDraft:r,forceComposer:!t,newChatRequested:!!d})})})}export{ft as component};
|
|
2
|
-
//# sourceMappingURL=_agentId-DOmcJZfk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{he as r,j as e}from"./index-4gCDI7m4.js";import{A as n}from"./agents-workbench-C8bTa2rv.js";import"./agent-editor-form-DfMTSIvj.js";import"./model-selector-88PJnyTq.js";import"./proposal-review-shell-B4CSiyLB.js";import"./runs-BPtQBTRN.js";function c(){const{owner:o,agentId:t}=r.useParams();return e.jsx(n,{owner:o,agentId:t})}export{c as component};
|
|
2
|
-
//# sourceMappingURL=_agentId-DW6wRCVC.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{v as A,t as b,ar as k,o as L,au as C,j as t,gl as R,L as d,gm as _,bm as $,S as B,B as p,bk as D,h5 as u,aA as S}from"./index-4gCDI7m4.js";import{A as y}from"./automation-detail-content-C9Cgr5Zj.js";import{b as O}from"./use-automations-BHoV0dLs.js";import"./create-automation-form-DmCOFbRT.js";import"./cronstrue-CKwjNYgj.js";import"./entity-options-BSW_EG0W.js";import"./connection-label-BobuYiAG.js";import"./model-selector-88PJnyTq.js";import"./skill-editor-D_W3QlRz.js";import"./code-editor-rX0t1g5C.js";import"./index-wHFQv1aT.js";import"./use-mention-search-C3rWLuKm.js";import"./proposal-review-shell-B4CSiyLB.js";import"./runs-BPtQBTRN.js";import"./events-feed-BysC9HgU.js";import"./event-card-Mcxv56DG.js";import"./use-scroll-sentinel-Ct-jt7O0.js";import"./clients-C7Lnuc3S.js";import"./renderer-7EGgTVX0.js";import"./calendar-DMq3Dtqy.js";import"./table-DFcJRNk7.js";import"./card-SFtxv9f2.js";import"./json-diff-E5D-NGYT.js";import"./copy-button-2swYh4jb.js";import"./client-activity-scopes-boZOHuPW.js";import"./client-rows-BJ2PxM4J.js";function P({owner:a,automationId:o,view:s,runId:e}){const n=A(),{orgContext:x,hasOrgContext:g}=b(),{data:h,isLoading:r}=k(`/${a}`,x),{isAuthenticated:v}=L(),{isLoading:m}=C(),f=h?.workspace?.id??"",j=v?!g||r||m:r||m,i=O(o,void 0,f).data?.automation,c=i?.automation_name??"Automation",w=()=>void n({to:"/$owner/automations",params:{owner:a}}),l=()=>void n({to:"/$owner/automations/$automationId",params:{owner:a,automationId:o},search:{view:"activity",run_id:void 0}}),N=!e&&s==="definition";return t.jsx("div",{className:"flex flex-1 flex-col gap-6 px-4 pt-2.5 pb-8 lg:px-6",children:t.jsxs("div",{className:"mx-auto flex w-full min-w-0 max-w-3xl flex-col gap-4",children:[t.jsx(R,{crumbs:[t.jsx(d,{to:"/$owner/automations",params:{owner:a},className:_,children:"Automations"},"automations")],current:e?"Review change":c}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx("div",{className:"flex min-w-0 items-center gap-2",children:t.jsxs("h1",{className:"flex min-w-0 items-center gap-2 truncate font-display text-xl font-semibold",children:[t.jsx($,{className:"h-4 w-4 shrink-0 text-muted-foreground","aria-hidden":!0}),j&&!i?t.jsx(B,{className:"h-5 w-40"}):e?"Review change":c]})}),e?null:N?t.jsx(p,{type:"button",variant:"ghost",size:"sm",className:"h-8 text-muted-foreground hover:text-foreground",onClick:l,children:"Done"}):t.jsx(p,{asChild:!0,variant:"ghost",size:"sm",className:"h-8 gap-1.5",children:t.jsxs(d,{to:"/$owner/automations/$automationId",params:{owner:a,automationId:o},search:{view:"definition",run_id:void 0},children:[t.jsx(D,{className:"h-3.5 w-3.5"}),"Edit"]})})]}),t.jsx(y,{owner:a,agentId:i?.managed_agent_id??null,automationId:o,view:s,runId:e,onDone:e?w:l})]})})}function ct(){const{owner:a,automationId:o}=u.useParams(),s=u.useSearch();return t.jsx(S,{owner:a,children:()=>t.jsx(P,{owner:a,automationId:o,view:s.view,runId:s.run_id})})}export{ct as component};
|
|
2
|
-
//# sourceMappingURL=_automationId-B9IcDYBu.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{iv as L,j as e,aA as G,v as U,aH as X,aI as Y,cw as z,cX as J,S as A,B as Q,L as p,aK as Z,ia as K,ib as ee,aY as ne,gm as h,fW as se,gk as ae,ba as oe,hO as te,gl as ie,hq as R,aS as ce,F as re}from"./index-4gCDI7m4.js";import{R as de,c as me,C as le}from"./device-pin-tombstone-xGhCTU5_.js";import{a as pe}from"./connector-provenance-Th8ymGec.js";import{f as ue,C as he,F as xe,a as fe,b as ve,A as je,c as Ce}from"./connection-feed-detail-D7pnWaFB.js";import{S as Ne,g as De}from"./runs-panel-Bj63_hb9.js";import{c as ge}from"./connection-label-BobuYiAG.js";import"./connector-scope-lists-BibdzKl1.js";import"./status-dot-D3FoDRcc.js";import"./entity-options-BSW_EG0W.js";import"./event-card-Mcxv56DG.js";import"./use-scroll-sentinel-Ct-jt7O0.js";import"./use-automations-BHoV0dLs.js";import"./clients-C7Lnuc3S.js";import"./renderer-7EGgTVX0.js";import"./calendar-DMq3Dtqy.js";import"./table-DFcJRNk7.js";import"./card-SFtxv9f2.js";import"./json-diff-E5D-NGYT.js";import"./index-wHFQv1aT.js";import"./copy-button-2swYh4jb.js";import"./feed-event-kinds-BYuZCoU4.js";import"./runs-BPtQBTRN.js";import"./filter-bar-BQm-ubB1.js";function Xe(){const{owner:m,connectorKey:n,connectionId:v}=L.useParams(),{addFeed:o,feedId:c,settings:x,auth_result:t}=L.useSearch();return e.jsx(G,{owner:m,children:l=>e.jsx($e,{organizationId:l.organizationId,ownerSlug:l.ownerSlug,isWorkspaceLoading:l.isWorkspaceLoading,connectorKey:n,connectionId:Number(v),showAddFeed:o===!0,feedId:c,openSettings:x===!0,authResult:t})})}function $e({organizationId:m,ownerSlug:n,isWorkspaceLoading:v,connectorKey:o,connectionId:c,showAddFeed:x,feedId:t,openSettings:l,authResult:E}){const y=U(),{data:B=[]}=X(),{data:M=[],isLoading:P,isError:j,refetch:W}=Y(m??"",{connectorKey:o,connectionIds:[c]}),{data:g=[]}=z(m??""),{data:O=[],isLoading:S,isError:T,refetch:H}=J(t?c:null),s=M.find(i=>i.id===c),a=g.find(i=>i.key===o),r=t?O.find(i=>i.id===t):null;if(v||P||t&&S||!m)return e.jsxs("div",{className:"flex flex-1 flex-col gap-4",children:[e.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-3 gap-y-1",children:[e.jsx(A,{className:"h-7 w-56"}),e.jsx(A,{className:"h-4 w-24"})]}),e.jsx(de,{})]});if(j||t&&T)return e.jsxs("div",{role:"alert",className:"space-y-2",children:[e.jsxs("p",{children:["Could not load this ",j?"connection":"feed","."]}),e.jsx(Q,{variant:"outline",size:"sm",onClick:()=>void(j?W():H()),children:"Retry"})]});if(!s)return e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Connection not found."}),e.jsxs(p,{to:"/$owner/connectors/$connectorKey",params:{owner:n,connectorKey:o},className:"mt-2 inline-block text-sm text-primary hover:underline",children:["Back to ",a?.name??o]})]});const $=ge({...s,connector_name:s.connector_name??a?.name??null}),C=!t&&!x,V=()=>void y({to:"/$owner/connectors/$connectorKey/$connectionId",params:{owner:n,connectorKey:o,connectionId:String(c)},search:{},replace:!0});let u,f=$,k,w,N;t?r?(f=ue(r,a),r.store==="channel_messages"?(u=e.jsx(he,{feed:r,hideHeader:!0}),N="chat channel"):(k=e.jsx(xe,{feed:r,ownerSlug:n}),w=e.jsx(fe,{feed:r}),u=e.jsx(ve,{feed:r,connectorDef:a,ownerSlug:n}))):(u=e.jsx("p",{className:"text-sm text-muted-foreground",children:"Feed not found."}),f="Feed"):x&&(u=e.jsx(je,{onClose:V,organizationId:m,connections:[s],connectorDefinitions:g}),f="Add feed",N=Ce);const d=B.find(i=>i.id===s.device_worker_id&&Z(i,n)),F=d?K(d):void 0,D=F?ee(n,F,ne()):void 0,b=[e.jsx(p,{to:"/$owner/connectors",params:{owner:n},className:h,children:"Connectors"},"connectors"),...d&&D?[e.jsx(p,{to:"/$owner/connectors/app/$appId",params:{owner:n,appId:D.id},className:h,children:D.name},"app"),e.jsx(p,{to:"/$owner/connectors/device/$deviceId",params:{owner:n,deviceId:d.id},className:h,children:se(d)},"device")]:[e.jsx(p,{to:"/$owner/connectors/$connectorKey",params:{owner:n,connectorKey:o},search:{},className:h,children:a?.name??o},"connector")]];C||b.push(e.jsx(p,{to:"/$owner/connectors/$connectorKey/$connectionId",params:{owner:n,connectorKey:o,connectionId:String(c)},search:{},className:h,children:$},"connection"));const _=C?me(s):null,q=N??_??void 0,I=e.jsx(ae,{breadcrumb:e.jsx(ie,{crumbs:b}),icon:a?e.jsx(oe,{icon:a.icon,name:a.name,faviconDomain:a.favicon_domain??te(a.auth_schema)}):null,title:f,status:k??e.jsx(Ne,{status:De(s.status),showDot:!0,children:s.status}),meta:w,caption:q,captionTone:_?"error":"muted"});return C?d&&a&&ce(a)?e.jsx(re,{to:"/$owner/connectors/device/$deviceId",params:{owner:n,deviceId:d.id},search:{connection:s.id,settings:l||void 0},hash:`connection-${s.id}`,replace:!0}):e.jsxs(R,{header:I,children:[e.jsx(pe,{connectorDef:a,connectorKey:o,ownerSlug:n,deviceWorkerId:s.device_worker_id,deviceLabel:s.device_label}),e.jsx(le,{embedded:!0,connection:s,connectorDef:a,ownerSlug:n,openSettings:l,authResult:E},s.id)]}):e.jsx(R,{header:I,children:e.jsx("div",{className:"mt-0",children:u})})}export{Xe as component};
|
|
2
|
-
//# sourceMappingURL=_connectorKey._connectionId-C6PmMPTA.js.map
|