@lobu/runtime-server 24.7.0 → 24.9.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 +282 -322
- package/dist/catalogs/skills.json +1 -1
- package/dist/component.json +1 -1
- package/dist/connectors/README.md +6 -2
- package/dist/connectors/github.ts +16 -3
- package/dist/connectors/imessage.ts +953 -0
- package/dist/connectors/linkedin.ts +20 -377
- package/dist/connectors/market_quotes.ts +388 -91
- package/dist/connectors/postgres.ts +21 -14
- package/dist/connectors/x-dm-adapter.js +55 -21
- package/dist/connectors/x.ts +1 -1
- package/dist/db/migrations/20261109010000_workspace_navigation.sql +14 -0
- package/dist/db/migrations/20261110010000_view_resources.sql +11 -0
- package/dist/dependencies.bun.lock +135 -103
- package/dist/embeddings-server.mjs +14 -2
- package/dist/owletto/dist/assets/_-B2C9B2RM.js +2 -0
- package/dist/owletto/dist/assets/_-CjyiGzwB.js +3 -0
- package/dist/owletto/dist/assets/_agentId-DKHXGvS2.js +2 -0
- package/dist/owletto/dist/assets/_agentId-bna2tPsW.js +2 -0
- package/dist/owletto/dist/assets/_automationId-CowRFD4E.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey._connectionId-dE6im18z.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey.index-DqwSv8Zs.js +2 -0
- package/dist/owletto/dist/assets/_conversationId-zcs-S3dY.js +2 -0
- package/dist/owletto/dist/assets/_eventId-BVOVizs4.js +2 -0
- package/dist/owletto/dist/assets/_owner-DsvIC94q.js +3 -0
- package/dist/owletto/dist/assets/_shape-CWjpzcvv.js +2 -0
- package/dist/owletto/dist/assets/_slug-DuCxYsJk.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-BqVeHB6Z.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-DzyOCG5U.js +2 -0
- package/dist/owletto/dist/assets/{accept-invitation-CX7Egv-p.js → accept-invitation-k1u3zBcn.js} +2 -2
- package/dist/owletto/dist/assets/activity-route-view-jTBMW7a9.js +2 -0
- package/dist/owletto/dist/assets/agent-connect-pages-D3mVM_q4.js +4 -0
- package/dist/owletto/dist/assets/agent-editor-form-Bnc_q5WD.js +2 -0
- package/dist/owletto/dist/assets/{agent-loading-shells-DHvKiEUB.js → agent-loading-shells-xteN-pyK.js} +2 -2
- package/dist/owletto/dist/assets/agent-permissions-matrix-C_ayr0pd.js +2 -0
- package/dist/owletto/dist/assets/{agent-skill-context-DF5q0Dfr.js → agent-skill-context-r0O0BVOu.js} +2 -2
- package/dist/owletto/dist/assets/{agent-subpage-shell-Pi5cECga.js → agent-subpage-shell-C2KpYdu3.js} +2 -2
- package/dist/owletto/dist/assets/{agent-thread-B1ZepGZc.js → agent-thread-Bv_chdPy.js} +4 -4
- package/dist/owletto/dist/assets/agent-thread-storage-Bx2-WBHQ.js +2 -0
- package/dist/owletto/dist/assets/app._appId-BUcNaSMS.js +2 -0
- package/dist/owletto/dist/assets/assist-composer-B1LykXpD.js +2 -0
- package/dist/owletto/dist/assets/automation-run-now-CjkJIkaZ.js +2 -0
- package/dist/owletto/dist/assets/{callback-Ckrxv0eo.js → callback-kSLa4n5s.js} +2 -2
- package/dist/owletto/dist/assets/{card-DT9mSjSp.js → card-C01y1O-W.js} +2 -2
- package/dist/owletto/dist/assets/{claim-Bzby28tT.js → claim-Dnux9Lqf.js} +2 -2
- package/dist/owletto/dist/assets/{client-activity-scopes-DoIErdUy.js → client-activity-scopes-BBIq16tG.js} +2 -2
- package/dist/owletto/dist/assets/{client-rows-BbVQy5Ti.js → client-rows-DGh1O-Fu.js} +2 -2
- package/dist/owletto/dist/assets/clients-BCvjAJDT.js +2 -0
- package/dist/owletto/dist/assets/code-editor-BdRMYojw.js +26 -0
- package/dist/owletto/dist/assets/connect-DZeFSGIH.js +2 -0
- package/dist/owletto/dist/assets/connect-menu-D4w-JhJW.js +2 -0
- package/dist/owletto/dist/assets/connect._clientId-IZEMQJ64.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId-BsDzltNz.js +2 -0
- package/dist/owletto/dist/assets/{connection-BOaMa324.js → connection-C7glVpPE.js} +2 -2
- package/dist/owletto/dist/assets/connection-feed-detail-CJju0qiw.js +2 -0
- package/dist/owletto/dist/assets/connector-page-shell-BeuyjiB2.js +2 -0
- package/dist/owletto/dist/assets/connector-provenance-B2C2cjBg.js +2 -0
- package/dist/owletto/dist/assets/{connectors-D5F5rHxX.js → connectors-DSQ5AWPf.js} +2 -2
- package/dist/owletto/dist/assets/consent-B6Aw_89N.js +2 -0
- package/dist/owletto/dist/assets/copy-button-BhXeXLIm.js +2 -0
- package/dist/owletto/dist/assets/{core.esm-BIE97rfo.js → core.esm-CJUp2aNZ.js} +3 -3
- package/dist/owletto/dist/assets/create-CWcza8NT.js +2 -0
- package/dist/owletto/dist/assets/{create-BPxsKwk7.js → create-DUlRsFNn.js} +2 -2
- package/dist/owletto/dist/assets/{create-automation-form-B12yTrmj.js → create-automation-form-D141prEG.js} +3 -3
- package/dist/owletto/dist/assets/create-bGOYifof.js +2 -0
- package/dist/owletto/dist/assets/create._connectorKey-Ds4tpwHP.js +2 -0
- package/dist/owletto/dist/assets/{custom-guardrail-edits-B9plaLBN.js → custom-guardrail-edits-DuQ28xv3.js} +2 -2
- package/dist/owletto/dist/assets/definition-comparison-BUDNuAN_.js +2 -0
- package/dist/owletto/dist/assets/{detail-page-skeleton-I5_7FkKx.js → detail-page-skeleton-BRHaq5Sj.js} +2 -2
- package/dist/owletto/dist/assets/{device-CadaiNF4.js → device-D3fzoIrM.js} +2 -2
- package/dist/owletto/dist/assets/device-pin-tombstone-BIM-ziCH.js +2 -0
- package/dist/owletto/dist/assets/device._deviceId-BnPqTgK1.js +2 -0
- package/dist/owletto/dist/assets/dynamic-schema-form-OkIZImgp.js +2 -0
- package/dist/owletto/dist/assets/entity-options-CpeX7iiX.js +2 -0
- package/dist/owletto/dist/assets/entity-page-Cjc8oXA2.js +2 -0
- package/dist/owletto/dist/assets/entity-pages-18xSANrS.js +2 -0
- package/dist/owletto/dist/assets/entity-schema-graph-uwZ-P0t8.js +2 -0
- package/dist/owletto/dist/assets/entity-type-page-MgZ7_0oh.js +2 -0
- package/dist/owletto/dist/assets/event-detail-D6AH6a2C.js +2 -0
- package/dist/owletto/dist/assets/event-kind-options-fHAIXu24.js +2 -0
- package/dist/owletto/dist/assets/events-feed-BI7wNRUY.js +2 -0
- package/dist/owletto/dist/assets/filter-editors-DDTwyYt0.js +3 -0
- package/dist/owletto/dist/assets/{full-page-spinner-CCU4PkRv.js → full-page-spinner-DWo519BU.js} +2 -2
- package/dist/owletto/dist/assets/index-9tTjJo_J.css +1 -0
- package/dist/owletto/dist/assets/{index-pmr1WUoG.js → index-BW7IFKXC.js} +2 -2
- package/dist/owletto/dist/assets/index-BYcFrinP.js +2 -0
- package/dist/owletto/dist/assets/index-BhJsTy-C.js +2 -0
- package/dist/owletto/dist/assets/index-CEcsgXDj.js +2 -0
- package/dist/owletto/dist/assets/index-CPscKk2u.js +2 -0
- package/dist/owletto/dist/assets/{index-B72KYdN1.js → index-Cd8jMsz8.js} +2 -2
- package/dist/owletto/dist/assets/index-CdDNNAx2.js +7906 -0
- package/dist/owletto/dist/assets/index-CfJ2-EpK.js +2 -0
- package/dist/owletto/dist/assets/index-D1UCJQl1.js +2 -0
- package/dist/owletto/dist/assets/index-D5DM4g2w.js +2 -0
- package/dist/owletto/dist/assets/index-DmqnKGqW.js +2 -0
- package/dist/owletto/dist/assets/index-DznAbTOF.js +2 -0
- package/dist/owletto/dist/assets/json-diff-C-WQqyIf.js +4 -0
- package/dist/owletto/dist/assets/{list-skeleton-BAqT0vxo.js → list-skeleton-0B1bTrAK.js} +2 -2
- package/dist/owletto/dist/assets/{login-D5bIjMtf.js → login-CH7P2AyR.js} +2 -2
- package/dist/owletto/dist/assets/{logout-JYZvxz8v.js → logout-D474YsYQ.js} +2 -2
- package/dist/owletto/dist/assets/member-scope-gate-CH_0jHiM.js +2 -0
- package/dist/owletto/dist/assets/memory-browse-page-Ba4aYavw.js +74 -0
- package/dist/owletto/dist/assets/model-selector-XYmk7Iru.js +2 -0
- package/dist/owletto/dist/assets/needs-you-list-Bd4iiiqm.js +2 -0
- package/dist/owletto/dist/assets/new-BOsrRqp8.js +2 -0
- package/dist/owletto/dist/assets/new-CJ6TF3Vc.js +2 -0
- package/dist/owletto/dist/assets/{new-B-Jd-vBl.js → new-DGPOjak2.js} +2 -2
- package/dist/owletto/dist/assets/new-Q0XqiZq2.js +2 -0
- package/dist/owletto/dist/assets/organization-hD_Z6TSd.js +2 -0
- package/dist/owletto/dist/assets/peek-pane-content-Cc8YX1oy.js +2 -0
- package/dist/owletto/dist/assets/{pending-seed-CoFPQ835.js → pending-seed-D7-ld7as.js} +2 -2
- package/dist/owletto/dist/assets/proposal-review-shell-BWRJidwb.js +2 -0
- package/dist/owletto/dist/assets/public-shell-ready-CRyAZATw.js +2 -0
- package/dist/owletto/dist/assets/record-activity-9ux6SfCd.js +2 -0
- package/dist/owletto/dist/assets/{record-session-Bpx4_LGk.js → record-session-ClKBr1_C.js} +2 -2
- package/dist/owletto/dist/assets/{renderer-CgaQKMoG.js → renderer-DZ0w2k2r.js} +2 -2
- package/dist/owletto/dist/assets/{reset-password-C-4Jnuqk.js → reset-password-D2RfrEVZ.js} +2 -2
- package/dist/owletto/dist/assets/run-initiator-B8IRlRd-.js +2 -0
- package/dist/owletto/dist/assets/runs-CuC7WMtd.js +2 -0
- package/dist/owletto/dist/assets/runs-list-8gUPWjP4.js +2 -0
- package/dist/owletto/dist/assets/{schema-value-BUgC0Ro8.js → schema-value-k19Ata7u.js} +3 -3
- package/dist/owletto/dist/assets/scoped-feed-bar-L7h-Ca4u.js +2 -0
- package/dist/owletto/dist/assets/{settings-DYYvrrZ4.js → settings-BZqntV3E.js} +2 -2
- package/dist/owletto/dist/assets/source-record-panels-C4UItfdk.js +2 -0
- package/dist/owletto/dist/assets/{status-variants-DT61YfsU.js → status-variants-BR_iGWN5.js} +2 -2
- package/dist/owletto/dist/assets/subDays-hOwerOLo.js +2 -0
- package/dist/owletto/dist/assets/{table-B6yimlsZ.js → table-C3DMoL4K.js} +2 -2
- package/dist/owletto/dist/assets/use-automations-CdtiVLCv.js +2 -0
- package/dist/owletto/dist/assets/use-login-redirect-CYlVkAhE.js +2 -0
- package/dist/owletto/dist/assets/use-mention-search-CtbixPEE.js +91 -0
- package/dist/owletto/dist/assets/view-param-filters-BdN8OU35.js +2 -0
- package/dist/owletto/dist/assets/{views-access-required-BVtMfgLh.js → views-access-required-CvIIxdS_.js} +2 -2
- package/dist/owletto/dist/index.html +19 -12
- package/dist/server-main.bundle.mjs +4518 -2567
- package/npm-shrinkwrap.json +644 -551
- package/package.json +4 -2
- package/vendor/connector-sdk/dist/connector-types.d.ts +23 -2
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/core/dist/classify-error.d.ts +3 -4
- package/vendor/core/dist/classify-error.js +8 -8
- package/vendor/core/dist/connector-query-errors.d.ts +6 -0
- package/vendor/core/dist/connector-query-errors.js +4 -0
- package/vendor/core/dist/contracts/tools/collection-presentation.d.ts +17 -1
- package/vendor/core/dist/contracts/tools/collection-presentation.js +27 -3
- package/vendor/core/dist/contracts/tools/manage-automations.d.ts +39 -0
- package/vendor/core/dist/contracts/tools/manage-automations.js +11 -1
- package/vendor/core/dist/contracts/tools/manage-entity-schema.js +1 -1
- package/vendor/core/dist/contracts/tools/manage-entity.d.ts +2 -0
- package/vendor/core/dist/contracts/tools/manage-entity.js +7 -0
- package/vendor/core/dist/contracts/tools/manage-feeds.d.ts +2 -0
- package/vendor/core/dist/contracts/tools/manage-feeds.js +3 -0
- package/vendor/core/dist/contracts/tools/manage-views.d.ts +249 -7
- package/vendor/core/dist/contracts/tools/manage-views.js +83 -21
- package/vendor/core/dist/contracts/tools/navigation.d.ts +248 -0
- package/vendor/core/dist/contracts/tools/navigation.js +284 -0
- package/vendor/core/dist/contracts/tools/view-attach.d.ts +7 -0
- package/vendor/core/dist/contracts/tools/view-attach.js +15 -0
- package/vendor/core/dist/contracts/tools/view-content-hash.d.ts +4 -1
- package/vendor/core/dist/contracts/tools/view-content-hash.js +4 -2
- package/vendor/core/dist/contracts/tools/view-definition.d.ts +2 -0
- package/vendor/core/dist/contracts/tools/view-definition.js +52 -0
- package/vendor/core/dist/contracts/tools/view-host.d.ts +68 -0
- package/vendor/core/dist/contracts/tools/view-host.js +30 -1
- package/vendor/core/dist/contracts/tools/view-scope.d.ts +31 -0
- package/vendor/core/dist/contracts/tools/view-scope.js +45 -0
- package/vendor/core/dist/error-report.js +1 -0
- package/vendor/core/dist/errors.d.ts +17 -24
- package/vendor/core/dist/errors.js +17 -24
- package/vendor/core/dist/types.d.ts +0 -6
- package/vendor/core/package.json +11 -1
- package/vendor/views/dist/api.d.ts +30 -5
- package/vendor/views/dist/api.js +22 -8
- package/vendor/views/dist/bridge.d.ts +17 -0
- package/vendor/views/dist/bridge.js +49 -1
- package/vendor/views/dist/components.d.ts +27 -5
- package/vendor/views/dist/components.js +57 -7
- package/vendor/views/dist/embed.d.ts +98 -0
- package/vendor/views/dist/embed.js +418 -0
- package/vendor/views/dist/index.d.ts +3 -1
- package/vendor/views/dist/index.js +1 -0
- package/vendor/views/package.json +1 -1
- package/dist/connectors/linkedin-takeout.ts +0 -577
- package/dist/connectors/takeout-utils.ts +0 -240
- package/dist/owletto/dist/assets/_-CZgmjLR9.js +0 -2
- package/dist/owletto/dist/assets/_-Cm5OgtYD.js +0 -3
- package/dist/owletto/dist/assets/_-DtqBFgK5.js +0 -2
- package/dist/owletto/dist/assets/_agentId-Cci6NFc1.js +0 -2
- package/dist/owletto/dist/assets/_agentId-GhWTlPO2.js +0 -2
- package/dist/owletto/dist/assets/_automationId-KUlxSTK2.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey._connectionId-Zpy7Hvml.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey.index-CYDRp9UX.js +0 -2
- package/dist/owletto/dist/assets/_conversationId-NNqDdije.js +0 -2
- package/dist/owletto/dist/assets/_eventId-0BSX6VHj.js +0 -2
- package/dist/owletto/dist/assets/_owner-C-CD22NB.js +0 -3
- package/dist/owletto/dist/assets/_shape-CvXp4omb.js +0 -2
- package/dist/owletto/dist/assets/_slug-DgK7zpKA.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-cH54P0zY.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-m0B5j7L9.js +0 -2
- package/dist/owletto/dist/assets/activity-link-rXNpmppV.js +0 -2
- package/dist/owletto/dist/assets/activity-route-view-B0m7_g9q.js +0 -2
- package/dist/owletto/dist/assets/agent-client-setup-list-BmD3-_Ox.js +0 -4
- package/dist/owletto/dist/assets/agent-connect-pages-BtOTCsTU.js +0 -2
- package/dist/owletto/dist/assets/agent-editor-form-CirqCpcM.js +0 -2
- package/dist/owletto/dist/assets/agent-list-row-SyACVYX7.js +0 -2
- package/dist/owletto/dist/assets/agent-permissions-matrix-Dsc26dyW.js +0 -2
- package/dist/owletto/dist/assets/agent-thread-storage-U6htL3ad.js +0 -2
- package/dist/owletto/dist/assets/agents-D1FHZ0jR.js +0 -2
- package/dist/owletto/dist/assets/app._appId-01I0CJal.js +0 -2
- package/dist/owletto/dist/assets/assist-composer-BD9msDk3.js +0 -2
- package/dist/owletto/dist/assets/automation-detail-content-BFv1TglZ.js +0 -2
- package/dist/owletto/dist/assets/automation-row-CmTpAD4r.js +0 -2
- package/dist/owletto/dist/assets/automation-source-list-D8ZSavQU.js +0 -2
- package/dist/owletto/dist/assets/automations-D1FHZ0jR.js +0 -2
- package/dist/owletto/dist/assets/change-summary-CGrKEJ04.js +0 -2
- package/dist/owletto/dist/assets/clients-6aJvabvS.js +0 -2
- package/dist/owletto/dist/assets/connect-BmDziBzI.js +0 -2
- package/dist/owletto/dist/assets/connect-menu-Bs8mxsga.js +0 -2
- package/dist/owletto/dist/assets/connect._clientId-t5aKu3aa.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId-DswMAw8l.js +0 -2
- package/dist/owletto/dist/assets/connection-feed-detail-BLCjhP-H.js +0 -2
- package/dist/owletto/dist/assets/connector-boxes-BAP_f77M.js +0 -2
- package/dist/owletto/dist/assets/connector-page-shell-ClOmVPJr.js +0 -2
- package/dist/owletto/dist/assets/connector-provenance-wmYu5jwO.js +0 -2
- package/dist/owletto/dist/assets/consent-RqHNkmm8.js +0 -2
- package/dist/owletto/dist/assets/copy-button-D6zpsZLi.js +0 -2
- package/dist/owletto/dist/assets/create-GT8_yF0R.js +0 -2
- package/dist/owletto/dist/assets/create-Yx2qBMBy.js +0 -2
- package/dist/owletto/dist/assets/create._connectorKey-CzXqSkuI.js +0 -2
- package/dist/owletto/dist/assets/definition-comparison-C3k6Wa9B.js +0 -2
- package/dist/owletto/dist/assets/device-pin-tombstone-U7Bx05P6.js +0 -2
- package/dist/owletto/dist/assets/device._deviceId-DTZqj1HS.js +0 -2
- package/dist/owletto/dist/assets/dynamic-schema-form-DyT_9iVE.js +0 -2
- package/dist/owletto/dist/assets/entity-options-CGTjLlcS.js +0 -2
- package/dist/owletto/dist/assets/entity-page-DHHMmA8V.js +0 -2
- package/dist/owletto/dist/assets/entity-pages-eYbG2FDT.js +0 -2
- package/dist/owletto/dist/assets/entity-type-page-CjFqxSdL.js +0 -2
- package/dist/owletto/dist/assets/event-card-BtTUuf2q.js +0 -2
- package/dist/owletto/dist/assets/event-detail-8xHiplt_.js +0 -2
- package/dist/owletto/dist/assets/events-feed-zFnTSE27.js +0 -2
- package/dist/owletto/dist/assets/filter-editors-Dd5R2Etd.js +0 -2
- package/dist/owletto/dist/assets/home-stream-IVsNEkwp.js +0 -2
- package/dist/owletto/dist/assets/index-2oaMOFKe.js +0 -2
- package/dist/owletto/dist/assets/index-B-Ab8srM.js +0 -7899
- package/dist/owletto/dist/assets/index-B4RZgvvI.js +0 -2
- package/dist/owletto/dist/assets/index-BBZM53p8.js +0 -2
- package/dist/owletto/dist/assets/index-BOb0a5f9.js +0 -2
- package/dist/owletto/dist/assets/index-BYFDMIQC.js +0 -2
- package/dist/owletto/dist/assets/index-BwnFQcMe.js +0 -2
- package/dist/owletto/dist/assets/index-CvYsWYlF.js +0 -2
- package/dist/owletto/dist/assets/index-DIXIvtnM.js +0 -2
- package/dist/owletto/dist/assets/index-DLwokXHW.js +0 -2
- package/dist/owletto/dist/assets/index-_nlPHus1.js +0 -2
- package/dist/owletto/dist/assets/index-cwOgj4-i.js +0 -2
- package/dist/owletto/dist/assets/index-pp4qmhkA.js +0 -2
- package/dist/owletto/dist/assets/index-tTbno-PX.css +0 -1
- package/dist/owletto/dist/assets/json-diff-B-1Swv_y.js +0 -28
- package/dist/owletto/dist/assets/member-scope-gate-Lj9m4RL2.js +0 -2
- package/dist/owletto/dist/assets/memory-browse-page-rAKfVdQ_.js +0 -74
- package/dist/owletto/dist/assets/model-selector-onvGA9Ww.js +0 -2
- package/dist/owletto/dist/assets/new-BmehH1uR.js +0 -2
- package/dist/owletto/dist/assets/new-KDi15LWZ.js +0 -2
- package/dist/owletto/dist/assets/organization-B9bh20Xo.js +0 -2
- package/dist/owletto/dist/assets/peek-pane-content-Bqus80Mq.js +0 -2
- package/dist/owletto/dist/assets/proposal-review-shell-CnACXCUg.js +0 -2
- package/dist/owletto/dist/assets/public-shell-ready-Dlh-eWz0.js +0 -2
- package/dist/owletto/dist/assets/record-activity-6CfR95Ul.js +0 -2
- package/dist/owletto/dist/assets/run-initiator-BvruBM5H.js +0 -2
- package/dist/owletto/dist/assets/runs-BMzp7j7j.js +0 -2
- package/dist/owletto/dist/assets/runs-list-DVhrTr3v.js +0 -2
- package/dist/owletto/dist/assets/schema-type-editor-panel-Bdeumkux.js +0 -2
- package/dist/owletto/dist/assets/source-record-panels-CBV9tsR3.js +0 -2
- package/dist/owletto/dist/assets/use-automations-II_YJWtN.js +0 -2
- package/dist/owletto/dist/assets/use-login-redirect-BqtEilid.js +0 -2
- package/dist/owletto/dist/assets/use-mention-search-Bxlpd6Dp.js +0 -96
- package/dist/owletto/dist/assets/view-param-filters-DYlqBocg.js +0 -2
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* "2.0", method, params }`. Anything else in the inbox is ignored, exactly
|
|
14
14
|
* like the SDK's transport.
|
|
15
15
|
*/
|
|
16
|
-
import { VIEW_OPEN_RECORD_METHOD, VIEW_WORKSPACE_META_KEY, } from "@lobu/core/contracts/tools/view-host";
|
|
16
|
+
import { VIEW_EMBED_FOCUS_NOTIFICATION, VIEW_EMBED_SIZE_NOTIFICATION, VIEW_EMBEDS_FOCUS_METHOD, VIEW_EMBEDS_SYNC_METHOD, VIEW_FOCUS_ENTER_NOTIFICATION, VIEW_OPEN_RECORD_METHOD, VIEW_WORKSPACE_META_KEY, } from "@lobu/core/contracts/tools/view-host";
|
|
17
17
|
export class ViewBridgeError extends Error {
|
|
18
18
|
code;
|
|
19
19
|
constructor(message, code) {
|
|
@@ -54,6 +54,9 @@ export class ViewBridge {
|
|
|
54
54
|
toolCancelledListeners = new Set();
|
|
55
55
|
hostContextListeners = new Set();
|
|
56
56
|
dataChangedListeners = new Set();
|
|
57
|
+
embedSizeListeners = new Set();
|
|
58
|
+
embedFocusListeners = new Set();
|
|
59
|
+
focusEnterListeners = new Set();
|
|
57
60
|
/** Set by the first `tool-input` and never cleared: queries must not fire
|
|
58
61
|
* before it (the host seeds scope + params there; anything read earlier
|
|
59
62
|
* runs against defaults and double-fetches). */
|
|
@@ -132,6 +135,30 @@ export class ViewBridge {
|
|
|
132
135
|
this.dataChangedListeners.add(listener);
|
|
133
136
|
return () => this.dataChangedListeners.delete(listener);
|
|
134
137
|
}
|
|
138
|
+
/** A child view's height in a slot (Lobu web host only). */
|
|
139
|
+
onEmbedSize(listener) {
|
|
140
|
+
this.embedSizeListeners.add(listener);
|
|
141
|
+
return () => this.embedSizeListeners.delete(listener);
|
|
142
|
+
}
|
|
143
|
+
/** Keyboard focus left a slot's child (Lobu web host only). */
|
|
144
|
+
onEmbedFocus(listener) {
|
|
145
|
+
this.embedFocusListeners.add(listener);
|
|
146
|
+
return () => this.embedFocusListeners.delete(listener);
|
|
147
|
+
}
|
|
148
|
+
/** Keyboard focus entered this view as a slot's child (Lobu web host only). */
|
|
149
|
+
onFocusEnter(listener) {
|
|
150
|
+
this.focusEnterListeners.add(listener);
|
|
151
|
+
return () => this.focusEnterListeners.delete(listener);
|
|
152
|
+
}
|
|
153
|
+
/** Report every slot on screen. Rejects with code -32601 on a host that
|
|
154
|
+
* does not mount embedded views. */
|
|
155
|
+
syncEmbeds(embeds) {
|
|
156
|
+
return this.request(VIEW_EMBEDS_SYNC_METHOD, { embeds });
|
|
157
|
+
}
|
|
158
|
+
/** Move keyboard focus into a slot's child. */
|
|
159
|
+
focusEmbed(id, direction) {
|
|
160
|
+
return this.request(VIEW_EMBEDS_FOCUS_METHOD, { id, direction });
|
|
161
|
+
}
|
|
135
162
|
/**
|
|
136
163
|
* Run the `ui/initialize` handshake, then announce readiness. Resolves with
|
|
137
164
|
* the host context. Rejects when the host answers with an error or stays
|
|
@@ -354,6 +381,27 @@ export class ViewBridge {
|
|
|
354
381
|
listener();
|
|
355
382
|
break;
|
|
356
383
|
}
|
|
384
|
+
case VIEW_EMBED_SIZE_NOTIFICATION: {
|
|
385
|
+
if (typeof params.id !== "string" || typeof params.height !== "number")
|
|
386
|
+
break;
|
|
387
|
+
for (const listener of [...this.embedSizeListeners])
|
|
388
|
+
listener(params.id, params.height);
|
|
389
|
+
break;
|
|
390
|
+
}
|
|
391
|
+
case VIEW_EMBED_FOCUS_NOTIFICATION: {
|
|
392
|
+
if (typeof params.id !== "string")
|
|
393
|
+
break;
|
|
394
|
+
const direction = params.direction === "backward" ? "backward" : "forward";
|
|
395
|
+
for (const listener of [...this.embedFocusListeners])
|
|
396
|
+
listener(params.id, direction);
|
|
397
|
+
break;
|
|
398
|
+
}
|
|
399
|
+
case VIEW_FOCUS_ENTER_NOTIFICATION: {
|
|
400
|
+
const direction = params.direction === "backward" ? "backward" : "forward";
|
|
401
|
+
for (const listener of [...this.focusEnterListeners])
|
|
402
|
+
listener(direction);
|
|
403
|
+
break;
|
|
404
|
+
}
|
|
357
405
|
default:
|
|
358
406
|
break;
|
|
359
407
|
}
|
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
* what the host returns, plus the honest states (`QueryState.loading`,
|
|
9
9
|
* `.error`, `.errorCode`, `.truncated`) that `useQuery` reports.
|
|
10
10
|
*
|
|
11
|
-
* Styling follows the shell's theme tokens (
|
|
12
|
-
* `--
|
|
13
|
-
*
|
|
14
|
-
*
|
|
11
|
+
* Styling follows the shell's theme tokens (shadcn names: `--foreground`,
|
|
12
|
+
* `--muted-foreground` for secondary text, `--muted`/`--accent` for surfaces,
|
|
13
|
+
* `--border`, `--primary`, `--font-sans`, `--radius`, `--radius-lg`), which
|
|
14
|
+
* derive from the host's MCP Apps style variables and flip with its `.dark`
|
|
15
|
+
* class, so kit output takes the host's look without configuration. Theme tokens carry
|
|
15
16
|
* light-mode fallbacks; pie series and error accents use fixed colors.
|
|
16
17
|
*
|
|
17
18
|
* Server-side compile allowlist: this module is pinned beside `react` and
|
|
@@ -144,8 +145,29 @@ export declare function Link({ href, children, }: {
|
|
|
144
145
|
href: string;
|
|
145
146
|
children: ReactNode;
|
|
146
147
|
}): import("react/jsx-runtime").JSX.Element;
|
|
147
|
-
export
|
|
148
|
+
export interface SkeletonProps {
|
|
149
|
+
/** CSS width; default the full width. */
|
|
150
|
+
width?: number | string;
|
|
151
|
+
/** CSS height; default one line of text. */
|
|
152
|
+
height?: number | string;
|
|
153
|
+
/** Corner radius; default the host's. */
|
|
154
|
+
radius?: number | string;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* A placeholder shaped like what is loading: a pulsing block in the host's
|
|
158
|
+
* muted surface colour. Size it like the content it stands for (a figure,
|
|
159
|
+
* a row, a chart) so the page does not jump when the data lands. Purely
|
|
160
|
+
* visual; announce the wait with `LoadingState` or your own `role="status"`.
|
|
161
|
+
*/
|
|
162
|
+
export declare function Skeleton({ width, height, radius, }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
163
|
+
/**
|
|
164
|
+
* A query's loading state, as skeleton lines in the host's style. `text` is
|
|
165
|
+
* what assistive technology announces; `lines` sets how many lines stand in
|
|
166
|
+
* for the content (default 3).
|
|
167
|
+
*/
|
|
168
|
+
export declare function LoadingState({ text, lines, }: {
|
|
148
169
|
text?: string;
|
|
170
|
+
lines?: number;
|
|
149
171
|
}): import("react/jsx-runtime").JSX.Element;
|
|
150
172
|
export declare function EmptyState({ title, hint }: {
|
|
151
173
|
title: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useId, useRef, useState } from "react";
|
|
3
3
|
import { resolveViewHref, useHost } from "./api.js";
|
|
4
|
-
const FONT_STACK = 'var(--font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif)';
|
|
4
|
+
const FONT_STACK = 'var(--font-sans, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif)';
|
|
5
5
|
const INK = {
|
|
6
|
-
color: "var(--
|
|
6
|
+
color: "var(--foreground, #0a0a0a)",
|
|
7
7
|
fontFamily: FONT_STACK,
|
|
8
8
|
fontSize: 13,
|
|
9
9
|
lineHeight: 1.45,
|
|
@@ -87,7 +87,7 @@ function PageButton({ disabled, onClick, label, }) {
|
|
|
87
87
|
border: "1px solid var(--border, #e5e7eb)",
|
|
88
88
|
borderRadius: "var(--radius, 6px)",
|
|
89
89
|
background: "transparent",
|
|
90
|
-
color: "var(--
|
|
90
|
+
color: "var(--foreground, #0a0a0a)",
|
|
91
91
|
padding: "2px 10px",
|
|
92
92
|
font: "inherit",
|
|
93
93
|
}, children: label === "Previous page" ? "‹ Prev" : "Next ›" }));
|
|
@@ -115,7 +115,7 @@ const FIELD_BOX = {
|
|
|
115
115
|
border: "1px solid var(--border, #e5e7eb)",
|
|
116
116
|
borderRadius: "var(--radius, 6px)",
|
|
117
117
|
background: "transparent",
|
|
118
|
-
color: "var(--
|
|
118
|
+
color: "var(--foreground, #0a0a0a)",
|
|
119
119
|
padding: "4px 8px",
|
|
120
120
|
font: "inherit",
|
|
121
121
|
maxWidth: "100%",
|
|
@@ -323,8 +323,58 @@ export function Link({ href, children, }) {
|
|
|
323
323
|
/* ------------------------------------------------------------------ */
|
|
324
324
|
/* Query states — render `useQuery` honestly */
|
|
325
325
|
/* ------------------------------------------------------------------ */
|
|
326
|
-
|
|
327
|
-
|
|
326
|
+
const VISUALLY_HIDDEN = {
|
|
327
|
+
position: "absolute",
|
|
328
|
+
width: 1,
|
|
329
|
+
height: 1,
|
|
330
|
+
overflow: "hidden",
|
|
331
|
+
clip: "rect(0 0 0 0)",
|
|
332
|
+
whiteSpace: "nowrap",
|
|
333
|
+
};
|
|
334
|
+
/** Pulse an element while it is mounted, unless the reader asked for less
|
|
335
|
+
* motion. The kit ships no stylesheet, so the animation runs from script. */
|
|
336
|
+
function usePulse(ref) {
|
|
337
|
+
useEffect(() => {
|
|
338
|
+
const el = ref.current;
|
|
339
|
+
if (!el || typeof el.animate !== "function")
|
|
340
|
+
return;
|
|
341
|
+
if (window.matchMedia?.("(prefers-reduced-motion: reduce)").matches)
|
|
342
|
+
return;
|
|
343
|
+
const pulse = el.animate([{ opacity: 1 }, { opacity: 0.45 }, { opacity: 1 }], {
|
|
344
|
+
duration: 1600,
|
|
345
|
+
iterations: Number.POSITIVE_INFINITY,
|
|
346
|
+
easing: "ease-in-out",
|
|
347
|
+
});
|
|
348
|
+
return () => pulse.cancel();
|
|
349
|
+
}, [ref]);
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* A placeholder shaped like what is loading: a pulsing block in the host's
|
|
353
|
+
* muted surface colour. Size it like the content it stands for (a figure,
|
|
354
|
+
* a row, a chart) so the page does not jump when the data lands. Purely
|
|
355
|
+
* visual; announce the wait with `LoadingState` or your own `role="status"`.
|
|
356
|
+
*/
|
|
357
|
+
export function Skeleton({ width = "100%", height = 14, radius, }) {
|
|
358
|
+
const ref = useRef(null);
|
|
359
|
+
usePulse(ref);
|
|
360
|
+
return (_jsx("span", { ref: ref, "aria-hidden": "true", style: {
|
|
361
|
+
display: "block",
|
|
362
|
+
width,
|
|
363
|
+
height,
|
|
364
|
+
borderRadius: radius ?? "var(--radius, 6px)",
|
|
365
|
+
background: "var(--muted, #f3f4f6)",
|
|
366
|
+
} }));
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* A query's loading state, as skeleton lines in the host's style. `text` is
|
|
370
|
+
* what assistive technology announces; `lines` sets how many lines stand in
|
|
371
|
+
* for the content (default 3).
|
|
372
|
+
*/
|
|
373
|
+
export function LoadingState({ text = "Loading…", lines = 3, }) {
|
|
374
|
+
const widths = ["72%", "94%", "56%", "84%", "64%"];
|
|
375
|
+
// Fixed placeholder lines: each keeps its position for the whole wait.
|
|
376
|
+
const placeholders = Array.from({ length: Number.isFinite(lines) ? Math.max(1, Math.floor(lines)) : 3 }, (_, i) => ({ id: `line-${i}`, width: widths[i % widths.length] }));
|
|
377
|
+
return (_jsxs("div", { role: "status", style: { display: "grid", gap: 8, padding: "4px 0" }, children: [_jsx("span", { style: VISUALLY_HIDDEN, children: text }), placeholders.map((line) => (_jsx(Skeleton, { width: line.width, height: 12 }, line.id)))] }));
|
|
328
378
|
}
|
|
329
379
|
export function EmptyState({ title, hint }) {
|
|
330
380
|
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 })] }));
|
|
@@ -344,7 +394,7 @@ export function ErrorState({ message, errorCode, onRetry, }) {
|
|
|
344
394
|
border: "1px solid var(--border, #e5e7eb)",
|
|
345
395
|
borderRadius: "var(--radius, 6px)",
|
|
346
396
|
background: "transparent",
|
|
347
|
-
color: "var(--
|
|
397
|
+
color: "var(--foreground, #0a0a0a)",
|
|
348
398
|
padding: "2px 10px",
|
|
349
399
|
font: "inherit",
|
|
350
400
|
}, children: "Retry" }))] }));
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `<EmbeddedView>` — place another registered view inside this one.
|
|
3
|
+
*
|
|
4
|
+
* The child is never rendered by this frame. The slot reports its position
|
|
5
|
+
* to the host (`lobu/embeds/sync`), and the Lobu web host mounts the child as
|
|
6
|
+
* its own sandboxed frame over the slot: its own bundle, its own view key and
|
|
7
|
+
* actions, the visitor's own session. This frame cannot reach into the child,
|
|
8
|
+
* and the child's param changes stay with that one instance — they never
|
|
9
|
+
* reach this view's params, a sibling, or the address bar.
|
|
10
|
+
*
|
|
11
|
+
* Hosts that do not mount embedded views (other MCP Apps hosts) answer
|
|
12
|
+
* -32601, and the slot says so instead of rendering nothing.
|
|
13
|
+
*/
|
|
14
|
+
import { type ViewEmbedParams, type ViewEmbedScope, type ViewFocusDirection } from "@lobu/core/contracts/tools/view-host";
|
|
15
|
+
import { type ReactNode, type RefObject } from "react";
|
|
16
|
+
import { type ViewBridge } from "./bridge.js";
|
|
17
|
+
interface SlotEntry {
|
|
18
|
+
view: string;
|
|
19
|
+
scope: ViewEmbedScope;
|
|
20
|
+
params: ViewEmbedParams;
|
|
21
|
+
element: RefObject<HTMLElement | null>;
|
|
22
|
+
enter: RefObject<HTMLElement | null>;
|
|
23
|
+
after: RefObject<HTMLElement | null>;
|
|
24
|
+
}
|
|
25
|
+
type SlotState = {
|
|
26
|
+
kind: "pending";
|
|
27
|
+
} | {
|
|
28
|
+
kind: "mounted";
|
|
29
|
+
height: number | null;
|
|
30
|
+
} | {
|
|
31
|
+
kind: "refused";
|
|
32
|
+
reason: string;
|
|
33
|
+
} | {
|
|
34
|
+
kind: "unsupported";
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* The slots of one frame. A change that can move a slot — the page's DOM, a
|
|
38
|
+
* resize, any scroll, an image load, a transition or animation — schedules
|
|
39
|
+
* one measurement on the next animation frame; only a changed picture is
|
|
40
|
+
* sent, carrying all slots (the host's answer is the whole picture, never a
|
|
41
|
+
* diff). Nothing polls: with no change there is no work, and motion keeps
|
|
42
|
+
* measuring each frame only until it ends (bounded by `MOTION_LIMIT_MS`).
|
|
43
|
+
*/
|
|
44
|
+
export declare class EmbedRegistry {
|
|
45
|
+
private readonly bridge;
|
|
46
|
+
private slots;
|
|
47
|
+
private states;
|
|
48
|
+
private listeners;
|
|
49
|
+
private frame;
|
|
50
|
+
private unsupported;
|
|
51
|
+
private connected;
|
|
52
|
+
private returning;
|
|
53
|
+
/** Set while focus is being placed on entry from the host, so a slot that
|
|
54
|
+
* is itself the first or last stop passes the same direction on. */
|
|
55
|
+
arrival: ViewFocusDirection | null;
|
|
56
|
+
constructor(bridge: () => ViewBridge | null);
|
|
57
|
+
/** Wire the host's notifications; returns the teardown. */
|
|
58
|
+
attach(bridge: ViewBridge): () => void;
|
|
59
|
+
private observer;
|
|
60
|
+
/** Transitions/animations running now, and when to stop trusting the count. */
|
|
61
|
+
private moving;
|
|
62
|
+
private motionUntil;
|
|
63
|
+
/** The last picture sent; an identical one is not sent again. */
|
|
64
|
+
private sent;
|
|
65
|
+
setConnected(connected: boolean): void;
|
|
66
|
+
register(id: string, entry: SlotEntry): () => void;
|
|
67
|
+
/** Keyboard focus reached the slot: hand it to the child, unless it is
|
|
68
|
+
* coming back out of the child the other way. */
|
|
69
|
+
enter(id: string, direction: ViewFocusDirection): void;
|
|
70
|
+
state(id: string): SlotState;
|
|
71
|
+
subscribe: (listener: () => void) => (() => void);
|
|
72
|
+
private setState;
|
|
73
|
+
schedule(): void;
|
|
74
|
+
private sync;
|
|
75
|
+
}
|
|
76
|
+
/** Installed by the view runtime's provider. */
|
|
77
|
+
export declare function EmbedProvider({ registry, children, }: {
|
|
78
|
+
registry: EmbedRegistry;
|
|
79
|
+
children: ReactNode;
|
|
80
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
81
|
+
export interface EmbeddedViewProps {
|
|
82
|
+
/** Key of the view to show; it is registered and authorized on its own. */
|
|
83
|
+
view: string;
|
|
84
|
+
/** The child's scope. Omit for a workspace view. */
|
|
85
|
+
scope?: ViewEmbedScope;
|
|
86
|
+
/** The child's starting params. A change here resets the instance to them;
|
|
87
|
+
* the child's own changes stay local to it. */
|
|
88
|
+
params?: Record<string, string | number | boolean>;
|
|
89
|
+
/** Stable instance id; defaults to the slot's position in the tree. */
|
|
90
|
+
id?: string;
|
|
91
|
+
/** Accessible name of the slot. */
|
|
92
|
+
title?: string;
|
|
93
|
+
/** Height reserved until the child reports its own. */
|
|
94
|
+
minHeight?: number;
|
|
95
|
+
}
|
|
96
|
+
export declare function EmbeddedView({ view, scope, params, id: explicitId, title, minHeight, }: EmbeddedViewProps): import("react/jsx-runtime").JSX.Element;
|
|
97
|
+
export {};
|
|
98
|
+
//# sourceMappingURL=embed.d.ts.map
|