@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobu/runtime-server",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.9.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"repository": {
|
|
@@ -17,7 +17,9 @@
|
|
|
17
17
|
"node": ">=26 <27"
|
|
18
18
|
},
|
|
19
19
|
"overrides": {
|
|
20
|
-
"sharp": "^0.35.3"
|
|
20
|
+
"sharp": "^0.35.3",
|
|
21
|
+
"prosemirror-model": "^1.25.11",
|
|
22
|
+
"prosemirror-view": "^1.42.3"
|
|
21
23
|
},
|
|
22
24
|
"dependencies": {
|
|
23
25
|
"@opentelemetry/api": "^1.9.0",
|
|
@@ -42,6 +42,7 @@ export interface ConnectorDefinition {
|
|
|
42
42
|
queryCapabilities?: {
|
|
43
43
|
exactMatch?: boolean;
|
|
44
44
|
verbatimExactMatch?: boolean;
|
|
45
|
+
exactMatchAny?: boolean;
|
|
45
46
|
selection?: boolean;
|
|
46
47
|
};
|
|
47
48
|
/** Connector-normalized events that can activate Automations. */
|
|
@@ -74,6 +75,8 @@ export interface ConnectorDefinition {
|
|
|
74
75
|
includeOperations?: string[];
|
|
75
76
|
excludeOperations?: string[];
|
|
76
77
|
includeTags?: string[];
|
|
78
|
+
/** HTTP methods to expose (e.g. `['get']` for a read-only surface). */
|
|
79
|
+
includeMethods?: string[];
|
|
77
80
|
serverUrl?: string;
|
|
78
81
|
};
|
|
79
82
|
/**
|
|
@@ -338,6 +341,16 @@ export interface ConnectorAuthEnvField {
|
|
|
338
341
|
example?: string;
|
|
339
342
|
secret?: boolean;
|
|
340
343
|
required?: boolean;
|
|
344
|
+
/**
|
|
345
|
+
* Send this field as the HTTP credential for generated `openapiConfig`
|
|
346
|
+
* operations (and MCP upstreams) when the connection authenticates with this
|
|
347
|
+
* env method: `<header>: <scheme> <value>`. Defaults: header `Authorization`,
|
|
348
|
+
* scheme `Bearer`. At most one env field per connector may set it.
|
|
349
|
+
*/
|
|
350
|
+
httpCredential?: {
|
|
351
|
+
header?: string;
|
|
352
|
+
scheme?: string;
|
|
353
|
+
};
|
|
341
354
|
}
|
|
342
355
|
export interface ConnectorAuthEnvKeys {
|
|
343
356
|
type: 'env_keys';
|
|
@@ -1118,12 +1131,20 @@ export interface QueryContext<F = Record<string, unknown>> {
|
|
|
1118
1131
|
* connector, which owns its source dialect. Requires queryCapabilities.exactMatch.
|
|
1119
1132
|
* `verbatim: true` preserves the scalar string without trimming and additionally
|
|
1120
1133
|
* requires queryCapabilities.verbatimExactMatch. The default stays trimmed.
|
|
1134
|
+
* Exactly one of `value` / `values` is set. `values` (1-500 strings) keeps a
|
|
1135
|
+
* row whose key equals ANY of them, under the same per-column semantics as
|
|
1136
|
+
* `value`, and additionally requires queryCapabilities.exactMatchAny.
|
|
1121
1137
|
*/
|
|
1122
1138
|
exactMatch?: {
|
|
1123
1139
|
columns: string[];
|
|
1124
|
-
value: string;
|
|
1125
1140
|
verbatim?: boolean;
|
|
1126
|
-
}
|
|
1141
|
+
} & ({
|
|
1142
|
+
value: string;
|
|
1143
|
+
values?: never;
|
|
1144
|
+
} | {
|
|
1145
|
+
values: string[];
|
|
1146
|
+
value?: never;
|
|
1147
|
+
});
|
|
1127
1148
|
/**
|
|
1128
1149
|
* Shared collection predicates, applied before sorting and pagination.
|
|
1129
1150
|
* Search is a literal case-insensitive substring of the projected name.
|
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
* `AgentErrorCode`. Every other layer consumes this rather than growing its
|
|
6
6
|
* own regex, and three of them act on the result:
|
|
7
7
|
*
|
|
8
|
-
* - `
|
|
9
|
-
* `
|
|
10
|
-
*
|
|
11
|
-
* keeps firing on schedule against an exhausted quota.
|
|
8
|
+
* - `classifyRunOutcome` (server runs/run-outcome.ts) stamps a classified
|
|
9
|
+
* failure `infra_error`; an unclassified provider refusal is blamed on the
|
|
10
|
+
* agent as `agent_error`.
|
|
12
11
|
* - `response-renderer.ts` and `chat-response-bridge.ts` resolve the code to
|
|
13
12
|
* a remediation CTA; with none, the user gets the provider's raw prose.
|
|
14
13
|
* - An unclassified failure also misses the `PROVIDER_*` Sentry alerting.
|
|
@@ -6,10 +6,9 @@
|
|
|
6
6
|
* `AgentErrorCode`. Every other layer consumes this rather than growing its
|
|
7
7
|
* own regex, and three of them act on the result:
|
|
8
8
|
*
|
|
9
|
-
* - `
|
|
10
|
-
* `
|
|
11
|
-
*
|
|
12
|
-
* keeps firing on schedule against an exhausted quota.
|
|
9
|
+
* - `classifyRunOutcome` (server runs/run-outcome.ts) stamps a classified
|
|
10
|
+
* failure `infra_error`; an unclassified provider refusal is blamed on the
|
|
11
|
+
* agent as `agent_error`.
|
|
13
12
|
* - `response-renderer.ts` and `chat-response-bridge.ts` resolve the code to
|
|
14
13
|
* a remediation CTA; with none, the user gets the provider's raw prose.
|
|
15
14
|
* - An unclassified failure also misses the `PROVIDER_*` Sentry alerting.
|
|
@@ -86,10 +85,11 @@ function classifyErrorMessage(message) {
|
|
|
86
85
|
// dodged the PROVIDER_* alert.
|
|
87
86
|
//
|
|
88
87
|
// It belongs HERE and not in `PROVIDER_BALANCE_EXHAUSTED` above: a
|
|
89
|
-
// subscription usage limit is WINDOWED — the provider
|
|
90
|
-
//
|
|
91
|
-
//
|
|
92
|
-
//
|
|
88
|
+
// subscription usage limit is WINDOWED — it clears on the provider's own
|
|
89
|
+
// reset — while that union means the account cannot spend until someone tops
|
|
90
|
+
// it up. The device daemon stops a retrying OpenCode run on balance wording
|
|
91
|
+
// alone, so a windowed limit in that union would cut short a run the CLI's
|
|
92
|
+
// own retry could still finish.
|
|
93
93
|
if (errors_js_1.PROVIDER_WINDOWED_QUOTA.test(message))
|
|
94
94
|
return errors_js_1.AgentErrorCode.PROVIDER_QUOTA_EXHAUSTED;
|
|
95
95
|
// Gemini can end a turn with this provider-side tool-call rejection instead
|
|
@@ -36,6 +36,12 @@ export type ToolErrorCode =
|
|
|
36
36
|
* agent, MCP session or Automation is behind the call (HTTP 403).
|
|
37
37
|
*/
|
|
38
38
|
| "MANUAL_EDIT_NOT_ALLOWED"
|
|
39
|
+
/**
|
|
40
|
+
* `manage_entity update` sent `expected`, and at least one field's live value
|
|
41
|
+
* no longer matches it, so nothing was written (HTTP 409). Re-read and retry
|
|
42
|
+
* with the current values.
|
|
43
|
+
*/
|
|
44
|
+
| "PRECONDITION_FAILED"
|
|
39
45
|
/** Upstream throttled the request (HTTP 429 / too many requests). */
|
|
40
46
|
| "RATE_LIMITED"
|
|
41
47
|
/** Upstream request or DB statement timed out (e.g. PG 57014). */
|
|
@@ -54,6 +54,10 @@ exports.TOOL_ERRORS = {
|
|
|
54
54
|
retryable: false,
|
|
55
55
|
message: "This caller may not assert a manual edit; it needs the entities:manual_edit scope and no agent, MCP session or Automation behind it.",
|
|
56
56
|
},
|
|
57
|
+
PRECONDITION_FAILED: {
|
|
58
|
+
retryable: false,
|
|
59
|
+
message: "A field changed since it was read, so nothing was written; re-read it and retry with the current values.",
|
|
60
|
+
},
|
|
57
61
|
RATE_LIMITED: {
|
|
58
62
|
retryable: true,
|
|
59
63
|
message: "The upstream rate limit was hit; retry shortly.",
|
|
@@ -40,6 +40,11 @@ declare const PresetSchema: import("@sinclair/typebox").TObject<{
|
|
|
40
40
|
toDays: import("@sinclair/typebox").TInteger;
|
|
41
41
|
timeZone: import("@sinclair/typebox").TString;
|
|
42
42
|
}>>;
|
|
43
|
+
/** Adds `{ field, op: "eq", value: <signed-in user's email> }`. Only a
|
|
44
|
+
* filter: read access is still enforced server-side. */
|
|
45
|
+
viewer: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
46
|
+
field: import("@sinclair/typebox").TString;
|
|
47
|
+
}>>;
|
|
43
48
|
}>;
|
|
44
49
|
export declare const CollectionPresentationSchema: import("@sinclair/typebox").TObject<{
|
|
45
50
|
presets: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
@@ -71,6 +76,11 @@ export declare const CollectionPresentationSchema: import("@sinclair/typebox").T
|
|
|
71
76
|
toDays: import("@sinclair/typebox").TInteger;
|
|
72
77
|
timeZone: import("@sinclair/typebox").TString;
|
|
73
78
|
}>>;
|
|
79
|
+
/** Adds `{ field, op: "eq", value: <signed-in user's email> }`. Only a
|
|
80
|
+
* filter: read access is still enforced server-side. */
|
|
81
|
+
viewer: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
82
|
+
field: import("@sinclair/typebox").TString;
|
|
83
|
+
}>>;
|
|
74
84
|
}>>>;
|
|
75
85
|
table: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
76
86
|
columns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
@@ -88,6 +98,12 @@ export type CollectionPresentation = Static<typeof CollectionPresentationSchema>
|
|
|
88
98
|
export type CollectionPreset = Static<typeof PresetSchema>;
|
|
89
99
|
export type CollectionTable = Static<typeof TableSchema>;
|
|
90
100
|
export declare function parseCollectionPresentation(raw: unknown): CollectionPresentation;
|
|
91
|
-
|
|
101
|
+
/**
|
|
102
|
+
* The preset as a concrete selection. A viewer preset needs the signed-in
|
|
103
|
+
* viewer and throws without one, so it never widens to every row.
|
|
104
|
+
*/
|
|
105
|
+
export declare function resolveCollectionPreset(preset: CollectionPreset, now?: Date, viewer?: {
|
|
106
|
+
email: string;
|
|
107
|
+
}): CollectionSelection;
|
|
92
108
|
export {};
|
|
93
109
|
//# sourceMappingURL=collection-presentation.d.ts.map
|
|
@@ -32,6 +32,9 @@ const PresetSchema = typebox_1.Type.Object({
|
|
|
32
32
|
toDays: typebox_1.Type.Integer({ minimum: -3660, maximum: 3660 }),
|
|
33
33
|
timeZone: typebox_1.Type.String({ minLength: 1, maxLength: 100 }),
|
|
34
34
|
}, { additionalProperties: false })),
|
|
35
|
+
/** Adds `{ field, op: "eq", value: <signed-in user's email> }`. Only a
|
|
36
|
+
* filter: read access is still enforced server-side. */
|
|
37
|
+
viewer: typebox_1.Type.Optional(typebox_1.Type.Object({ field: Field }, { additionalProperties: false })),
|
|
35
38
|
}, { additionalProperties: false });
|
|
36
39
|
exports.CollectionPresentationSchema = typebox_1.Type.Object({
|
|
37
40
|
presets: typebox_1.Type.Optional(typebox_1.Type.Array(PresetSchema, { maxItems: 32 })),
|
|
@@ -41,6 +44,7 @@ exports.CollectionPresentationSchema = typebox_1.Type.Object({
|
|
|
41
44
|
* Both calls run as the viewer; this binding grants no source access. */
|
|
42
45
|
facetQuery: typebox_1.Type.Optional(typebox_1.Type.String({ minLength: 1, maxLength: 64000 })),
|
|
43
46
|
}, { additionalProperties: false });
|
|
47
|
+
const MAX_FILTERS = collection_selection_1.AttributeFiltersSchema.maxItems ?? 32;
|
|
44
48
|
function parseCollectionPresentation(raw) {
|
|
45
49
|
if (!value_1.Value.Check(exports.CollectionPresentationSchema, raw))
|
|
46
50
|
throw new Error("Invalid collection presentation configuration");
|
|
@@ -49,9 +53,13 @@ function parseCollectionPresentation(raw) {
|
|
|
49
53
|
if (keys.has(preset.key))
|
|
50
54
|
throw new Error(`Duplicate collection preset: ${preset.key}`);
|
|
51
55
|
keys.add(preset.key);
|
|
56
|
+
// The resolved selection must still fit the selection contract.
|
|
57
|
+
if ((preset.selection.filters?.length ?? 0) +
|
|
58
|
+
(preset.viewer ? 1 : 0) +
|
|
59
|
+
(preset.relativeDate ? 2 : 0) >
|
|
60
|
+
MAX_FILTERS)
|
|
61
|
+
throw new Error(`Collection preset ${preset.key} resolves to more than ${MAX_FILTERS} filters`);
|
|
52
62
|
if (preset.relativeDate) {
|
|
53
|
-
if ((preset.selection.filters?.length ?? 0) > 30)
|
|
54
|
-
throw new Error("Relative date presets support at most 30 other filters");
|
|
55
63
|
if (preset.relativeDate.fromDays > preset.relativeDate.toDays)
|
|
56
64
|
throw new Error("Relative date range is reversed");
|
|
57
65
|
// Intl validates IANA timezone names, including UTC.
|
|
@@ -62,8 +70,24 @@ function parseCollectionPresentation(raw) {
|
|
|
62
70
|
}
|
|
63
71
|
return raw;
|
|
64
72
|
}
|
|
65
|
-
|
|
73
|
+
/**
|
|
74
|
+
* The preset as a concrete selection. A viewer preset needs the signed-in
|
|
75
|
+
* viewer and throws without one, so it never widens to every row.
|
|
76
|
+
*/
|
|
77
|
+
function resolveCollectionPreset(preset, now = new Date(), viewer) {
|
|
66
78
|
const selection = structuredClone(preset.selection);
|
|
79
|
+
if (preset.viewer) {
|
|
80
|
+
if (!viewer?.email)
|
|
81
|
+
throw new Error(`Collection preset ${preset.key} needs a signed-in viewer`);
|
|
82
|
+
selection.filters = [
|
|
83
|
+
...(selection.filters ?? []),
|
|
84
|
+
{
|
|
85
|
+
field: preset.viewer.field,
|
|
86
|
+
op: "eq",
|
|
87
|
+
value: viewer.email.toLowerCase(),
|
|
88
|
+
},
|
|
89
|
+
];
|
|
90
|
+
}
|
|
67
91
|
if (!preset.relativeDate)
|
|
68
92
|
return selection;
|
|
69
93
|
const { field, fromDays, toDays, timeZone } = preset.relativeDate;
|
|
@@ -402,6 +402,19 @@ export declare const AutomationClaimNextWindowContextSchema: import("@sinclair/t
|
|
|
402
402
|
feed_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
403
403
|
}>>>;
|
|
404
404
|
extraction_schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
405
|
+
/**
|
|
406
|
+
* The run's pinned Automation version instructions. Present on the first
|
|
407
|
+
* page of a window (no source_cursor / before_* cursor), omitted on
|
|
408
|
+
* continuation pages. Follow these instead of a cached copy of the prompt.
|
|
409
|
+
*/
|
|
410
|
+
instructions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
411
|
+
version_id: import("@sinclair/typebox").TInteger;
|
|
412
|
+
prompt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
413
|
+
skills: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
414
|
+
name: import("@sinclair/typebox").TString;
|
|
415
|
+
content: import("@sinclair/typebox").TString;
|
|
416
|
+
}>>;
|
|
417
|
+
}>>;
|
|
405
418
|
}>;
|
|
406
419
|
export type AutomationClaimNextWindowContext = Static<typeof AutomationClaimNextWindowContextSchema>;
|
|
407
420
|
export declare const AutomationClaimNextWindowResultSchema: import("@sinclair/typebox").TObject<{
|
|
@@ -433,6 +446,19 @@ export declare const AutomationClaimNextWindowResultSchema: import("@sinclair/ty
|
|
|
433
446
|
feed_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
434
447
|
}>>>;
|
|
435
448
|
extraction_schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
449
|
+
/**
|
|
450
|
+
* The run's pinned Automation version instructions. Present on the first
|
|
451
|
+
* page of a window (no source_cursor / before_* cursor), omitted on
|
|
452
|
+
* continuation pages. Follow these instead of a cached copy of the prompt.
|
|
453
|
+
*/
|
|
454
|
+
instructions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
455
|
+
version_id: import("@sinclair/typebox").TInteger;
|
|
456
|
+
prompt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
457
|
+
skills: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
458
|
+
name: import("@sinclair/typebox").TString;
|
|
459
|
+
content: import("@sinclair/typebox").TString;
|
|
460
|
+
}>>;
|
|
461
|
+
}>>;
|
|
436
462
|
}>;
|
|
437
463
|
}>;
|
|
438
464
|
export type AutomationClaimNextWindowResult = Static<typeof AutomationClaimNextWindowResultSchema>;
|
|
@@ -599,6 +625,19 @@ export declare const ManageAutomationsResultSchema: import("@sinclair/typebox").
|
|
|
599
625
|
feed_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
600
626
|
}>>>;
|
|
601
627
|
extraction_schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
628
|
+
/**
|
|
629
|
+
* The run's pinned Automation version instructions. Present on the first
|
|
630
|
+
* page of a window (no source_cursor / before_* cursor), omitted on
|
|
631
|
+
* continuation pages. Follow these instead of a cached copy of the prompt.
|
|
632
|
+
*/
|
|
633
|
+
instructions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
634
|
+
version_id: import("@sinclair/typebox").TInteger;
|
|
635
|
+
prompt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
636
|
+
skills: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
637
|
+
name: import("@sinclair/typebox").TString;
|
|
638
|
+
content: import("@sinclair/typebox").TString;
|
|
639
|
+
}>>;
|
|
640
|
+
}>>;
|
|
602
641
|
}>;
|
|
603
642
|
}>, import("@sinclair/typebox").TObject<{
|
|
604
643
|
action: import("@sinclair/typebox").TLiteral<"trigger">;
|
|
@@ -355,7 +355,7 @@ exports.ManageAutomationsSchema = typebox_1.Type.Object({
|
|
|
355
355
|
description: "Submit an Automation window result and advance the Automation arrival mark. Required after every claim_next_window, including when the window held nothing actionable: the mark moves only inside this call, so an unfinished claim lets the lease expire, times the run out, and serves the same content again on the next claim.",
|
|
356
356
|
}),
|
|
357
357
|
typebox_1.Type.Literal("claim_next_window", {
|
|
358
|
-
description: "Atomically claim the Automation unclaimed arrival window and return bounded source context plus a fenced window token. The window is [arrival mark, now - settle) over events.created_at, not a calendar period. The caller MUST finish the claim with complete_window, even for an empty or non-actionable window.",
|
|
358
|
+
description: "Atomically claim the Automation unclaimed arrival window and return bounded source context plus a fenced window token. The first page carries context.instructions, the prompt and skills of the run's pinned version; follow them instead of a cached copy. The window is [arrival mark, now - settle) over events.created_at, not a calendar period. The caller MUST finish the claim with complete_window, even for an empty or non-actionable window.",
|
|
359
359
|
}),
|
|
360
360
|
typebox_1.Type.Literal("trigger", {
|
|
361
361
|
description: "Create or reuse an immediate Automation run. The result identifies whether Lobu, a device worker, this caller, or another external caller owns execution. Follow the returned next_action: a pending external run uses knowledge.read then automations.completeWindow, while the owner of an existing external lease resumes it with automations.claimNextWindow.",
|
|
@@ -689,6 +689,16 @@ exports.AutomationClaimNextWindowContextSchema = typebox_1.Type.Object({
|
|
|
689
689
|
feed_id: typebox_1.Type.Optional(typebox_1.Type.Integer()),
|
|
690
690
|
}))),
|
|
691
691
|
extraction_schema: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown())),
|
|
692
|
+
/**
|
|
693
|
+
* The run's pinned Automation version instructions. Present on the first
|
|
694
|
+
* page of a window (no source_cursor / before_* cursor), omitted on
|
|
695
|
+
* continuation pages. Follow these instead of a cached copy of the prompt.
|
|
696
|
+
*/
|
|
697
|
+
instructions: typebox_1.Type.Optional(typebox_1.Type.Object({
|
|
698
|
+
version_id: typebox_1.Type.Integer(),
|
|
699
|
+
prompt: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
|
|
700
|
+
skills: typebox_1.Type.Array(typebox_1.Type.Object({ name: typebox_1.Type.String(), content: typebox_1.Type.String() })),
|
|
701
|
+
})),
|
|
692
702
|
});
|
|
693
703
|
exports.AutomationClaimNextWindowResultSchema = typebox_1.Type.Object({
|
|
694
704
|
action: typebox_1.Type.Literal("claim_next_window"),
|
|
@@ -95,7 +95,7 @@ exports.ManageEntitySchemaSchema = typebox_1.Type.Object({
|
|
|
95
95
|
name: typebox_1.Type.Optional(typebox_1.Type.String({ description: "[create/update] Display name", minLength: 1 })),
|
|
96
96
|
description: typebox_1.Type.Optional(typebox_1.Type.String({ description: "[create/update] Description" })),
|
|
97
97
|
metadata_schema: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown(), {
|
|
98
|
-
description: "[create/update] JSON Schema for metadata validation. Source-backed types declare a durable projected key with root x-lobu-record-key naming the key column; this enables string entity_id + entity_type addressing and authored links without storing source rows. A linked type cannot change its backing or key until its edges are unlinked. Entity property annotations: x-facet: true exposes scalar enum values as collection filters; x-sidebar: true also exposes those values as navigation shortcuts. x-enum-labels maps stringified enum values to display labels. x-table-label or title labels the attribute. These annotations do not grant access or define separate segments.",
|
|
98
|
+
description: "[create/update] JSON Schema for metadata validation. Source-backed types declare a durable projected key with root x-lobu-record-key naming the key column; this enables string entity_id + entity_type addressing and authored links without storing source rows. A linked type cannot change its backing or key until its edges are unlinked. Root x-lobu-stamps maps a server-owned timestamp field to the field it tracks (e.g. { stage_at: stage }): the stamp must be a declared property with type string and format date-time, and the tracked field a declared property; every write sets the stamp when the tracked field is set on create or changes value, and caller-supplied stamp values are ignored. Entity property annotations: x-facet: true exposes scalar enum values as collection filters; x-sidebar: true also exposes those values as navigation shortcuts. x-enum-labels maps stringified enum values to display labels. x-table-label or title labels the attribute. These annotations do not grant access or define separate segments.",
|
|
99
99
|
})),
|
|
100
100
|
list_scope: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Literal("accessible"), typebox_1.Type.Literal("organization")], {
|
|
101
101
|
description: "[list] accessible (default) includes the current org plus public schemas; organization returns only the bound org.",
|
|
@@ -25,6 +25,7 @@ export declare const UpdateEntityAction: import("@sinclair/typebox").TObject<{
|
|
|
25
25
|
field_note: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
26
26
|
affirm_fields: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
27
27
|
manual_edit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
28
|
+
expected: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
28
29
|
automation_source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
29
30
|
automation_id: import("@sinclair/typebox").TNumber;
|
|
30
31
|
run_id: import("@sinclair/typebox").TNumber;
|
|
@@ -169,6 +170,7 @@ export declare const ManageEntitySchema: import("@sinclair/typebox").TUnion<[imp
|
|
|
169
170
|
field_note: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
170
171
|
affirm_fields: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
171
172
|
manual_edit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
173
|
+
expected: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
172
174
|
automation_source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
173
175
|
automation_id: import("@sinclair/typebox").TNumber;
|
|
174
176
|
run_id: import("@sinclair/typebox").TNumber;
|
|
@@ -113,6 +113,8 @@ exports.CreateEntityAction = typebox_1.Type.Object({
|
|
|
113
113
|
metadata: typebox_1.Type.Optional(Metadata),
|
|
114
114
|
automation_source: typebox_1.Type.Optional(AutomationSource),
|
|
115
115
|
});
|
|
116
|
+
/** Upper bound on `update`'s `expected` precondition keys. */
|
|
117
|
+
const MAX_EXPECTED_FIELDS = 50;
|
|
116
118
|
exports.UpdateEntityAction = typebox_1.Type.Object({
|
|
117
119
|
action: typebox_1.Type.Literal("update", {
|
|
118
120
|
description: "Patch entity fields (human-owned fields queued for approval).",
|
|
@@ -136,6 +138,11 @@ exports.UpdateEntityAction = typebox_1.Type.Object({
|
|
|
136
138
|
manual_edit: typebox_1.Type.Optional(typebox_1.Type.Boolean({
|
|
137
139
|
description: "[update] Assert that the signed-in person made this change themselves, so it is recorded as their manual edit: the fields it sets (and affirm_fields) become theirs, and Automations then queue an approval instead of updating them. A wrong assertion takes the field away from Automations. Honoured for a person's own web-session edit, or for a token minted with the entities:manual_edit scope by a person in the web app, with no agent, MCP session or Automation behind the call; otherwise the update fails with 403 MANUAL_EDIT_NOT_ALLOWED and nothing is written. Defaults to false.",
|
|
138
140
|
})),
|
|
141
|
+
// Optimistic concurrency: the values the caller read before writing
|
|
142
|
+
expected: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown(), {
|
|
143
|
+
maxProperties: MAX_EXPECTED_FIELDS,
|
|
144
|
+
description: `[update] Metadata field name -> the value the caller last read. Checked against the live row under the update's row lock: if any field differs, nothing is written (no field changes, ownership markers, events or approvals) and the update fails with 409 PRECONDITION_FAILED listing the field names in mismatched_fields. Values compare structurally (object key order is ignored); null matches a field that was never set. Metadata fields only (not name, content, slug or parent_id); at most ${MAX_EXPECTED_FIELDS} keys.`,
|
|
145
|
+
})),
|
|
139
146
|
automation_source: typebox_1.Type.Optional(AutomationSource),
|
|
140
147
|
});
|
|
141
148
|
exports.ListEntitiesAction = typebox_1.Type.Object({
|
|
@@ -9,6 +9,7 @@ export declare const ListFeedsAction: import("@sinclair/typebox").TObject<{
|
|
|
9
9
|
entity_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
10
10
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"active">, import("@sinclair/typebox").TLiteral<"paused">]>>;
|
|
11
11
|
health: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"healthy">, import("@sinclair/typebox").TLiteral<"failing">]>>;
|
|
12
|
+
include_event_count: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
12
13
|
}>;
|
|
13
14
|
export declare const ReadFeedAction: import("@sinclair/typebox").TObject<{
|
|
14
15
|
action: import("@sinclair/typebox").TLiteral<"read_feed">;
|
|
@@ -155,6 +156,7 @@ export declare const ManageFeedsSchema: import("@sinclair/typebox").TUnion<[impo
|
|
|
155
156
|
entity_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
156
157
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"active">, import("@sinclair/typebox").TLiteral<"paused">]>>;
|
|
157
158
|
health: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"healthy">, import("@sinclair/typebox").TLiteral<"failing">]>>;
|
|
159
|
+
include_event_count: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
158
160
|
}>, import("@sinclair/typebox").TObject<{
|
|
159
161
|
action: import("@sinclair/typebox").TLiteral<"read_feed">;
|
|
160
162
|
feed_id: import("@sinclair/typebox").TNumber;
|
|
@@ -21,6 +21,9 @@ exports.ListFeedsAction = typebox_1.Type.Object({
|
|
|
21
21
|
health: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Literal("healthy"), typebox_1.Type.Literal("failing")], {
|
|
22
22
|
description: "Filter by runtime health for active feeds on non-paused connections; paused feeds and feeds on paused connections are excluded. 'failing' = last sync failed or the feed has one or more consecutive failures; 'healthy' = otherwise. Surfaces active-but-failing feeds the `status` filter cannot.",
|
|
23
23
|
})),
|
|
24
|
+
include_event_count: typebox_1.Type.Optional(typebox_1.Type.Boolean({
|
|
25
|
+
description: "Add `event_count`, each feed's stored events. Counting takes seconds on a busy connection, so it is off by default; ask for it only when you show the number.",
|
|
26
|
+
})),
|
|
24
27
|
...(0, pagination_1.paginationFields)(50),
|
|
25
28
|
});
|
|
26
29
|
// Metadata inspection is deliberately separate from source access. Reading one
|