@lobu/runtime-server 24.1.1 → 24.3.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 +175 -39
- package/dist/catalogs/skills.json +2 -2
- package/dist/component.json +1 -1
- package/dist/connectors/gchat.ts +31 -1
- package/dist/connectors/google_gmail.ts +70 -41
- package/dist/connectors/google_gmail_references.ts +406 -0
- package/dist/connectors/linkedin-inbox-adapter.js +107 -36
- package/dist/connectors/linkedin-inbox.ts +13 -0
- package/dist/connectors/linkedin.ts +1 -1
- package/dist/connectors/postgres.ts +14 -8
- package/dist/connectors/reddit.ts +171 -5
- package/dist/connectors/whatsapp-web-adapter.js +147 -61
- package/dist/connectors/whatsapp-web-helpers.ts +6 -2
- package/dist/connectors/whatsapp_web.ts +48 -17
- package/dist/connectors/x-dm-adapter.js +252 -35
- package/dist/connectors/x.ts +189 -13
- package/dist/db/migrations/20261020140000_view_attachments_by_page.sql +3 -1
- package/dist/db/migrations/20261024050000_events_source_reference_arrival.sql +27 -0
- package/dist/db/migrations/20261026000000_turn_write_receipts.sql +36 -0
- package/dist/db/migrations/20261026190000_federated_relationship_endpoints.sql +143 -0
- package/dist/dependencies.bun.lock +137 -202
- package/dist/embeddings-server.mjs +81 -11
- package/dist/guest.bundle.js +62 -25
- package/dist/owletto/dist/assets/_-XKF0m81R.js +3 -0
- package/dist/owletto/dist/assets/_-e8MbEBtw.js +2 -0
- package/dist/owletto/dist/assets/_agentId-Cv9goIFf.js +2 -0
- package/dist/owletto/dist/assets/_agentId-emObu67X.js +2 -0
- package/dist/owletto/dist/assets/_automationId-CfFFAYK1.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey._connectionId-D6NKXSOE.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey.index-DFrkLLTU.js +2 -0
- package/dist/owletto/dist/assets/_conversationId-D3vuAQPe.js +2 -0
- package/dist/owletto/dist/assets/_eventId-BV5SQaUA.js +2 -0
- package/dist/owletto/dist/assets/_name-DjtJMop4.js +2 -0
- package/dist/owletto/dist/assets/_owner-oBX68rb9.js +3 -0
- package/dist/owletto/dist/assets/_shape-C4lLPAwI.js +2 -0
- package/dist/owletto/dist/assets/_skillKey-Cw-7q6hI.js +2 -0
- package/dist/owletto/dist/assets/_slug-B2g5qzn3.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-CIKGCtdK.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-Dx4kJo7o.js +2 -0
- package/dist/owletto/dist/assets/accept-invitation-38lHBvjO.js +2 -0
- package/dist/owletto/dist/assets/activity-route-view-voRYSM3a.js +2 -0
- package/dist/owletto/dist/assets/agent-card-controls-DiU7Un5w.js +2 -0
- package/dist/owletto/dist/assets/{agent-client-setup-list-BlXB4SE5.js → agent-client-setup-list-Bkyw22GW.js} +4 -4
- package/dist/owletto/dist/assets/agent-connect-pages-CpBxQCpx.js +2 -0
- package/dist/owletto/dist/assets/{agent-editor-form-DsSoeQeF.js → agent-editor-form-QrIDroFL.js} +2 -2
- package/dist/owletto/dist/assets/agent-guardrails-route-CyoGSxcZ.js +2 -0
- package/dist/owletto/dist/assets/{agent-loading-shells-B7v6Cffw.js → agent-loading-shells-CamDtzHY.js} +2 -2
- package/dist/owletto/dist/assets/agent-permissions-matrix-CgsQ8BK_.js +2 -0
- package/dist/owletto/dist/assets/{agent-skill-context-DFucg4c4.js → agent-skill-context-lWbXKEm1.js} +2 -2
- package/dist/owletto/dist/assets/agent-skills-route-D-w3tY_2.js +2 -0
- package/dist/owletto/dist/assets/agent-subpage-shell-CLqpn5Tb.js +2 -0
- package/dist/owletto/dist/assets/{agent-thread-D38STyeu.js → agent-thread-CsRexwTv.js} +4 -4
- package/dist/owletto/dist/assets/agents-DzH_FFKU.js +2 -0
- package/dist/owletto/dist/assets/agents-workbench-CmGrMvPC.js +2 -0
- package/dist/owletto/dist/assets/app-bridge-C4nPtae3.js +121 -0
- package/dist/owletto/dist/assets/app._appId-BO7G38fL.js +2 -0
- package/dist/owletto/dist/assets/automation-detail-content-DMYxs6F6.js +2 -0
- package/dist/owletto/dist/assets/automations-DzH_FFKU.js +2 -0
- package/dist/owletto/dist/assets/calendar-DDCCSPW6.js +2 -0
- package/dist/owletto/dist/assets/callback-DFciMR8u.js +2 -0
- package/dist/owletto/dist/assets/{card-jzhQrMDP.js → card-BCsbrdGs.js} +2 -2
- package/dist/owletto/dist/assets/{claim-B-wq745Q.js → claim-BRua2b_7.js} +2 -2
- package/dist/owletto/dist/assets/client-activity-scopes-BLIy1Zc3.js +2 -0
- package/dist/owletto/dist/assets/client-rows-DiJQ5D1z.js +2 -0
- package/dist/owletto/dist/assets/clients-8-EpRjsm.js +2 -0
- package/dist/owletto/dist/assets/{code-editor-CEqoCky-.js → code-editor-BFZa4EIt.js} +3 -3
- package/dist/owletto/dist/assets/connect-C0cHE9Xl.js +2 -0
- package/dist/owletto/dist/assets/connect-menu-D2K4tmvW.js +2 -0
- package/dist/owletto/dist/assets/connect._clientId-D4EG5a0v.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId-DhoCT6sT.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId.activity-Dn4qw2Us.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId.index-BTI5JXA3.js +2 -0
- package/dist/owletto/dist/assets/connection-X9VU9Ijm.js +2 -0
- package/dist/owletto/dist/assets/connection-feed-detail-B6ydKasK.js +2 -0
- package/dist/owletto/dist/assets/connections-browser-BMV8bf54.js +2 -0
- package/dist/owletto/dist/assets/connector-boxes-DqZA-FdG.js +2 -0
- package/dist/owletto/dist/assets/{connector-provenance-D-ECOlMJ.js → connector-provenance-BIg8P8WY.js} +2 -2
- package/dist/owletto/dist/assets/connector-scope-lists-CJYz53YF.js +2 -0
- package/dist/owletto/dist/assets/{connectors-CH4KBZyT.js → connectors-BroKpwhB.js} +2 -2
- package/dist/owletto/dist/assets/{consent-C9ZpHb7V.js → consent-fzLN-Qy7.js} +2 -2
- package/dist/owletto/dist/assets/copy-button-Df7QXE0w.js +2 -0
- package/dist/owletto/dist/assets/{core.esm-BupT3V0i.js → core.esm-A1UnFbGs.js} +2 -2
- package/dist/owletto/dist/assets/create-BjwsYarn.js +2 -0
- package/dist/owletto/dist/assets/create-Dzr4mlr0.js +2 -0
- package/dist/owletto/dist/assets/create-automation-form-DHW6OUoS.js +3 -0
- package/dist/owletto/dist/assets/create-c94SPL21.js +2 -0
- package/dist/owletto/dist/assets/create._connectorKey-DLLn2nej.js +2 -0
- package/dist/owletto/dist/assets/{cronstrue-CWImw-kf.js → cronstrue-xxpD1P2-.js} +2 -2
- package/dist/owletto/dist/assets/{device-D-7WBe9E.js → device-C3AEoL5c.js} +2 -2
- package/dist/owletto/dist/assets/{device-pin-tombstone-2U0UMu3_.js → device-pin-tombstone-B_te59GE.js} +2 -2
- package/dist/owletto/dist/assets/device._deviceId-ZU09qrot.js +2 -0
- package/dist/owletto/dist/assets/elk-worker.min-BENGc9gn.js +23 -0
- package/dist/owletto/dist/assets/{entity-avatar-mdh7Kq5D.js → entity-avatar-CEV4ttUQ.js} +2 -2
- package/dist/owletto/dist/assets/entity-options-DJv2EhVV.js +2 -0
- package/dist/owletto/dist/assets/entity-page-BUghWZ1s.js +2 -0
- package/dist/owletto/dist/assets/entity-type-page-Lf6ONdpf.js +2 -0
- package/dist/owletto/dist/assets/event-card-CBlsG32u.js +2 -0
- package/dist/owletto/dist/assets/event-detail-BKSGEOdW.js +2 -0
- package/dist/owletto/dist/assets/events-feed-VfU4csn2.js +2 -0
- package/dist/owletto/dist/assets/feed-event-kinds-BYuZCoU4.js +2 -0
- package/dist/owletto/dist/assets/filter-bar-COU0sBFQ.js +2 -0
- package/dist/owletto/dist/assets/{full-page-spinner-BVbcpW3R.js → full-page-spinner-C1Q_jEzD.js} +2 -2
- package/dist/owletto/dist/assets/guardrails-6ZJv1uzM.js +2 -0
- package/dist/owletto/dist/assets/identity-BaFLmbSo.js +2 -0
- package/dist/owletto/dist/assets/index-008wj-Pz.js +7950 -0
- package/dist/owletto/dist/assets/index-BaetvYLa.js +2 -0
- package/dist/owletto/dist/assets/index-BiEf5xOE.css +1 -0
- package/dist/owletto/dist/assets/{index-CxF2XXzl.js → index-BrDP4PCs.js} +2 -2
- package/dist/owletto/dist/assets/index-BuXIeK7D.js +2 -0
- package/dist/owletto/dist/assets/index-CAVcR9za.js +2 -0
- package/dist/owletto/dist/assets/index-CMLfWGPU.js +2 -0
- package/dist/owletto/dist/assets/index-D0YEYP7N.js +2 -0
- package/dist/owletto/dist/assets/index-DFyBbp7b.js +2 -0
- package/dist/owletto/dist/assets/{index-D7gHOpfg.js → index-DNtYqkiA.js} +2 -2
- package/dist/owletto/dist/assets/index-DQxzeM37.js +2 -0
- package/dist/owletto/dist/assets/index-DkO0nPex.js +2 -0
- package/dist/owletto/dist/assets/index-KlRId0g6.js +2 -0
- package/dist/owletto/dist/assets/index-Ywnqi4A6.js +2 -0
- package/dist/owletto/dist/assets/index-wHFQv1aT.js +12 -0
- package/dist/owletto/dist/assets/index-xnxhf3Op.js +2 -0
- package/dist/owletto/dist/assets/{index-BTlx9K_t.js → index-yIub2xUM.js} +2 -2
- package/dist/owletto/dist/assets/json-diff-LE_vNZrM.js +4 -0
- package/dist/owletto/dist/assets/{list-skeleton-CepswBka.js → list-skeleton-Kzxi2OXB.js} +2 -2
- package/dist/owletto/dist/assets/login-DWOT6jtS.js +2 -0
- package/dist/owletto/dist/assets/logout-Dt_VDilG.js +2 -0
- package/dist/owletto/dist/assets/{member-scope-gate-DD4YBFn-.js → member-scope-gate-De75CR7W.js} +2 -2
- package/dist/owletto/dist/assets/memory-browse-page-p2vIbfkC.js +74 -0
- package/dist/owletto/dist/assets/{model-selector-CDrAjH31.js → model-selector-3l9lY50C.js} +2 -2
- package/dist/owletto/dist/assets/model-udnQ_S43.js +2 -0
- package/dist/owletto/dist/assets/models-CQj7GIOp.js +2 -0
- package/dist/owletto/dist/assets/new-BOwIHkre.js +2 -0
- package/dist/owletto/dist/assets/{new-ktz9Cs_P.js → new-BbdwuJPm.js} +2 -2
- package/dist/owletto/dist/assets/new-DTuFCQhV.js +2 -0
- package/dist/owletto/dist/assets/{oauth-workspace-access-lZNZ9gul.js → oauth-workspace-access-QPo4YwRX.js} +2 -2
- package/dist/owletto/dist/assets/organization-BDzjnqPf.js +2 -0
- package/dist/owletto/dist/assets/peek-pane-content-D7yt0PrA.js +2 -0
- package/dist/owletto/dist/assets/permissions-CfoY4WFY.js +2 -0
- package/dist/owletto/dist/assets/proposal-review-shell-CVkLnnKo.js +2 -0
- package/dist/owletto/dist/assets/public-shell-ready-DXUTTGGp.js +2 -0
- package/dist/owletto/dist/assets/record-activity-BXhvJbd9.js +2 -0
- package/dist/owletto/dist/assets/{record-session-Pbr5czGw.js → record-session-D07szzqN.js} +2 -2
- package/dist/owletto/dist/assets/renderer-AJxSmE3-.js +97 -0
- package/dist/owletto/dist/assets/reset-password-kRYyQuTY.js +2 -0
- package/dist/owletto/dist/assets/runs-lG2ChtOt.js +2 -0
- package/dist/owletto/dist/assets/runs-panel-LnGpHCAQ.js +2 -0
- package/dist/owletto/dist/assets/schema-type-editor-panel-C_Es0qDf.js +2 -0
- package/dist/owletto/dist/assets/settings-CEAOg7fr.js +2 -0
- package/dist/owletto/dist/assets/settings-gGYXbFfd.js +2 -0
- package/dist/owletto/dist/assets/skills-BOL5c_Tk.js +2 -0
- package/dist/owletto/dist/assets/source-record-panels-CjFPgKKJ.js +2 -0
- package/dist/owletto/dist/assets/status-dot-CSBtKT4g.js +2 -0
- package/dist/owletto/dist/assets/table-DHM-vCxP.js +2 -0
- package/dist/owletto/dist/assets/use-automations-C4TSie1i.js +2 -0
- package/dist/owletto/dist/assets/{use-mention-search-Dcunv4L0.js → use-mention-search-PfZrNbu_.js} +4 -4
- package/dist/owletto/dist/assets/use-scroll-sentinel-D-fJx_Md.js +2 -0
- package/dist/owletto/dist/assets/view-param-filters-DkX4YdDT.js +2 -0
- package/dist/owletto/dist/assets/views-access-required-2ubIf_3N.js +2 -0
- package/dist/owletto/dist/index.html +2 -2
- package/dist/server-main.bundle.mjs +137007 -132255
- package/npm-shrinkwrap.json +723 -1095
- package/package.json +7 -10
- package/vendor/@better-auth-kysely-adapter/LICENSE.md +20 -0
- package/vendor/@better-auth-kysely-adapter/README.md +17 -0
- package/vendor/@better-auth-kysely-adapter/dist/bun-sqlite-dialect-DoOVo4ja.mjs +123 -0
- package/vendor/@better-auth-kysely-adapter/dist/d1-sqlite-dialect-Cru74LbR.mjs +133 -0
- package/vendor/@better-auth-kysely-adapter/dist/index.d.mts +116 -0
- package/vendor/@better-auth-kysely-adapter/dist/index.mjs +719 -0
- package/vendor/@better-auth-kysely-adapter/dist/node-sqlite-dialect.d.mts +27 -0
- package/vendor/@better-auth-kysely-adapter/dist/node-sqlite-dialect.mjs +123 -0
- package/vendor/@better-auth-kysely-adapter/dist/sqlite-introspector-DSCAP82F.mjs +90 -0
- package/vendor/@better-auth-kysely-adapter/package.json +52 -0
- package/vendor/connector-sdk/dist/browser-requirement.js +1 -1
- package/vendor/connector-sdk/dist/connector-types.d.ts +34 -1
- package/vendor/connector-sdk/dist/index.d.ts +3 -1
- package/vendor/connector-sdk/dist/index.js +4 -0
- package/vendor/connector-sdk/dist/redact.d.ts +10 -0
- package/vendor/connector-sdk/dist/redact.js +130 -0
- package/vendor/connector-sdk/dist/types.d.ts +2 -1
- package/vendor/connector-sdk/package.json +6 -1
- package/vendor/core/dist/agent-tooling.d.ts +8 -0
- package/vendor/core/dist/agent-tooling.js +9 -1
- package/vendor/core/dist/capabilities.d.ts +1 -1
- package/vendor/core/dist/capabilities.js +5 -0
- 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/entity-reference.d.ts +3 -0
- package/vendor/core/dist/contracts/entity-reference.js +31 -0
- package/vendor/core/dist/contracts/tools/manage-automations.d.ts +3 -0
- package/vendor/core/dist/contracts/tools/manage-automations.js +4 -1
- package/vendor/core/dist/contracts/tools/manage-connections.js +1 -1
- package/vendor/core/dist/contracts/tools/manage-entity-schema.js +2 -2
- package/vendor/core/dist/contracts/tools/manage-entity.d.ts +117 -34
- package/vendor/core/dist/contracts/tools/manage-entity.js +47 -14
- package/vendor/core/dist/contracts/tools/manage-operations.d.ts +13 -4
- package/vendor/core/dist/contracts/tools/manage-operations.js +19 -7
- package/vendor/core/dist/contracts/tools/read-knowledge.d.ts +6 -1
- package/vendor/core/dist/contracts/tools/read-knowledge.js +20 -1
- package/vendor/core/dist/contracts/tools/view-attach.d.ts +1 -1
- package/vendor/core/dist/contracts/tools/view-runtime.d.ts +2 -0
- package/vendor/core/dist/contracts/tools/view-runtime.js +3 -1
- package/vendor/core/dist/contracts/worker/device-automation.d.ts +4 -9
- package/vendor/core/dist/contracts/worker/device-automation.js +10 -15
- package/vendor/core/dist/contracts/worker/protocol.d.ts +20 -0
- package/vendor/core/dist/contracts/worker/protocol.js +20 -0
- package/vendor/core/dist/errors.d.ts +0 -20
- package/vendor/core/dist/errors.js +1 -25
- package/vendor/core/dist/otel.js +38 -10
- package/vendor/core/dist/reserved.d.ts +6 -3
- package/vendor/core/dist/reserved.js +6 -3
- package/vendor/core/dist/utils/ajv.js +3 -1
- package/vendor/core/dist/worker/auth.d.ts +3 -2
- package/vendor/core/package.json +31 -5
- package/vendor/postgres/.bun-tag-22d644c2873790db +0 -0
- package/vendor/postgres/cf/src/query.js +3 -1
- package/vendor/postgres/cjs/src/query.js +3 -1
- package/vendor/postgres/src/query.js +3 -1
- package/vendor/views/dist/api.js +31 -7
- package/vendor/views/dist/bridge.d.ts +2 -1
- package/vendor/views/dist/bridge.js +10 -1
- package/vendor/views/package.json +1 -1
- package/dist/owletto/dist/assets/_-BorucF19.js +0 -3
- package/dist/owletto/dist/assets/_-CkGyNi0G.js +0 -2
- package/dist/owletto/dist/assets/_agentId-BrhcaxUk.js +0 -2
- package/dist/owletto/dist/assets/_agentId-DgRrCE2B.js +0 -2
- package/dist/owletto/dist/assets/_automationId-DSrZIYcs.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey._connectionId-DWxv1uoi.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey.index-BTP5ijdT.js +0 -2
- package/dist/owletto/dist/assets/_conversationId-98Y3RuRO.js +0 -2
- package/dist/owletto/dist/assets/_deploymentId-B1UWPY0i.js +0 -2
- package/dist/owletto/dist/assets/_eventId-BAnr8g8z.js +0 -2
- package/dist/owletto/dist/assets/_name-BUfFO_A0.js +0 -2
- package/dist/owletto/dist/assets/_owner-C79BwQ0I.js +0 -3
- package/dist/owletto/dist/assets/_shape-Ep6JpyFX.js +0 -2
- package/dist/owletto/dist/assets/_skillKey-B24alBfT.js +0 -2
- package/dist/owletto/dist/assets/_slug-DbPdDc-5.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-DDUxjjFD.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-hdpq3RoX.js +0 -2
- package/dist/owletto/dist/assets/accept-invitation-UXU5Fx2G.js +0 -2
- package/dist/owletto/dist/assets/activity-route-view-D7ORHntE.js +0 -2
- package/dist/owletto/dist/assets/agent-card-controls-CplnPhbv.js +0 -2
- package/dist/owletto/dist/assets/agent-connect-pages-BmknviTI.js +0 -2
- package/dist/owletto/dist/assets/agent-guardrails-route-TdvvIc_J.js +0 -2
- package/dist/owletto/dist/assets/agent-permissions-matrix-BkZu1LYE.js +0 -2
- package/dist/owletto/dist/assets/agent-skills-route-B3vvvZZe.js +0 -2
- package/dist/owletto/dist/assets/agent-subpage-shell-CZJvnjNC.js +0 -2
- package/dist/owletto/dist/assets/agents-DAOln24A.js +0 -2
- package/dist/owletto/dist/assets/agents-workbench-DJ67GZ93.js +0 -2
- package/dist/owletto/dist/assets/app-bridge-BCm4muqj.js +0 -128
- package/dist/owletto/dist/assets/app._appId-Cp78oEZ9.js +0 -2
- package/dist/owletto/dist/assets/automation-detail-content-DSwbRpbx.js +0 -2
- package/dist/owletto/dist/assets/automations-DAOln24A.js +0 -2
- package/dist/owletto/dist/assets/callback-CBexCo3F.js +0 -2
- package/dist/owletto/dist/assets/client-rows-BYbsXGy9.js +0 -2
- package/dist/owletto/dist/assets/clients-BhNl1tVq.js +0 -2
- package/dist/owletto/dist/assets/connect-wx-qqLir.js +0 -2
- package/dist/owletto/dist/assets/connect._clientId-kk0_4Svo.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId-QR8o-7M5.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId.activity-BqprYeOX.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId.index-DhRoSzBr.js +0 -2
- package/dist/owletto/dist/assets/connection-CNm2ukrI.js +0 -2
- package/dist/owletto/dist/assets/connection-feed-detail-WcGCA6qY.js +0 -2
- package/dist/owletto/dist/assets/connections-browser-CrtnAs0Q.js +0 -2
- package/dist/owletto/dist/assets/connector-scope-lists-CRFEpSvk.js +0 -2
- package/dist/owletto/dist/assets/conversations-table-D_HOe1jN.js +0 -2
- package/dist/owletto/dist/assets/create-C4lptGWj.js +0 -2
- package/dist/owletto/dist/assets/create-CCjZxIkK.js +0 -2
- package/dist/owletto/dist/assets/create-DkgUQAbB.js +0 -2
- package/dist/owletto/dist/assets/create-automation-form-Bpy92SM5.js +0 -3
- package/dist/owletto/dist/assets/create._connectorKey-D6Kc-YQ3.js +0 -2
- package/dist/owletto/dist/assets/deployments-C5hvipQh.js +0 -2
- package/dist/owletto/dist/assets/deployments-CPpFAd_w.js +0 -2
- package/dist/owletto/dist/assets/deployments-body-DGII20dQ.js +0 -2
- package/dist/owletto/dist/assets/device._deviceId-Bn37UpWH.js +0 -2
- package/dist/owletto/dist/assets/entity-options-Clz_WXK-.js +0 -2
- package/dist/owletto/dist/assets/entity-page-D3e4iPle.js +0 -2
- package/dist/owletto/dist/assets/entity-type-page-DebN1vCM.js +0 -2
- package/dist/owletto/dist/assets/event-detail-DV_zfWnC.js +0 -2
- package/dist/owletto/dist/assets/events-feed-DO3IiJO2.js +0 -2
- package/dist/owletto/dist/assets/filter-editors-Bwhqj7lY.js +0 -2
- package/dist/owletto/dist/assets/guardrails-BiJollCA.js +0 -2
- package/dist/owletto/dist/assets/identity-HCFWtdaI.js +0 -2
- package/dist/owletto/dist/assets/index-8wxsyxqt.js +0 -2
- package/dist/owletto/dist/assets/index-9YuSRymd.js +0 -7950
- package/dist/owletto/dist/assets/index-B3c-0eZG.js +0 -2
- package/dist/owletto/dist/assets/index-B64PGxQm.js +0 -2
- package/dist/owletto/dist/assets/index-BSH07yVD.css +0 -1
- package/dist/owletto/dist/assets/index-BX0EA_oB.js +0 -2
- package/dist/owletto/dist/assets/index-CDz3-ieP.js +0 -12
- package/dist/owletto/dist/assets/index-CdJJaQDX.js +0 -2
- package/dist/owletto/dist/assets/index-CfT_W8Vo.js +0 -2
- package/dist/owletto/dist/assets/index-D3WHeGql.js +0 -2
- package/dist/owletto/dist/assets/index-DB1iWI_a.js +0 -2
- package/dist/owletto/dist/assets/index-DMNzF8Lf.js +0 -2
- package/dist/owletto/dist/assets/index-DyB3IzOA.js +0 -2
- package/dist/owletto/dist/assets/index-Vcq4gwWv.js +0 -2
- package/dist/owletto/dist/assets/index-fgAJydgX.js +0 -2
- package/dist/owletto/dist/assets/json-diff-DIN5Jhfx.js +0 -4
- package/dist/owletto/dist/assets/login-DxGYyE4n.js +0 -2
- package/dist/owletto/dist/assets/logout-Bkzc7J44.js +0 -2
- package/dist/owletto/dist/assets/memory-browse-page-BnuhLJ6X.css +0 -1
- package/dist/owletto/dist/assets/memory-browse-page-D_UlBa27.js +0 -103
- package/dist/owletto/dist/assets/models-BAVeysNq.js +0 -2
- package/dist/owletto/dist/assets/new-C2av0diq.js +0 -2
- package/dist/owletto/dist/assets/new-snm1ctHn.js +0 -2
- package/dist/owletto/dist/assets/organization-Cb0W823y.js +0 -2
- package/dist/owletto/dist/assets/peek-pane-content-BNR9ImQY.js +0 -2
- package/dist/owletto/dist/assets/permissions-Dv39zWKt.js +0 -2
- package/dist/owletto/dist/assets/proposal-review-shell-CFhOqCLf.js +0 -2
- package/dist/owletto/dist/assets/public-shell-ready-DqX8AXfw.js +0 -2
- package/dist/owletto/dist/assets/recent-QhnLDU1_.js +0 -2
- package/dist/owletto/dist/assets/record-activity-ZJntBfN_.js +0 -2
- package/dist/owletto/dist/assets/record-field-peek-Brh1IQGy.js +0 -2
- package/dist/owletto/dist/assets/reset-password-CzZw6RcC.js +0 -2
- package/dist/owletto/dist/assets/runs-panel-C0_DNTcq.js +0 -2
- package/dist/owletto/dist/assets/runs-table-B1APZv7d.js +0 -2
- package/dist/owletto/dist/assets/schema-value-normalization-CKdPjdPC.js +0 -97
- package/dist/owletto/dist/assets/settings-CgZ5Z7wD.js +0 -2
- package/dist/owletto/dist/assets/settings-VDNiffKU.js +0 -2
- package/dist/owletto/dist/assets/skills-DgDGscm5.js +0 -2
- package/dist/owletto/dist/assets/source-record-panels-BdfOVPWn.js +0 -2
- package/dist/owletto/dist/assets/view-param-filters-B0quibBi.js +0 -2
- /package/vendor/{postgres/.bun-tag-2f292c6554a8475e → @better-auth-kysely-adapter/.bun-tag-abf95749a412716} +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DatabaseConnection, DatabaseIntrospector, Dialect, DialectAdapter, Driver, Kysely, QueryCompiler } from "kysely";
|
|
2
|
+
import { DatabaseSync } from "node:sqlite";
|
|
3
|
+
|
|
4
|
+
//#region src/node-sqlite-dialect.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Config for the SQLite dialect.
|
|
7
|
+
*/
|
|
8
|
+
interface NodeSqliteDialectConfig {
|
|
9
|
+
/**
|
|
10
|
+
* A sqlite DatabaseSync instance or a function that returns one.
|
|
11
|
+
*/
|
|
12
|
+
database: DatabaseSync;
|
|
13
|
+
/**
|
|
14
|
+
* Called once when the first query is executed.
|
|
15
|
+
*/
|
|
16
|
+
onCreateConnection?: ((connection: DatabaseConnection) => Promise<void>) | undefined;
|
|
17
|
+
}
|
|
18
|
+
declare class NodeSqliteDialect implements Dialect {
|
|
19
|
+
#private;
|
|
20
|
+
constructor(config: NodeSqliteDialectConfig);
|
|
21
|
+
createDriver(): Driver;
|
|
22
|
+
createQueryCompiler(): QueryCompiler;
|
|
23
|
+
createAdapter(): DialectAdapter;
|
|
24
|
+
createIntrospector(db: Kysely<any>): DatabaseIntrospector;
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { NodeSqliteDialect, NodeSqliteDialectConfig };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { t as createSqliteIntrospector } from "./sqlite-introspector-DSCAP82F.mjs";
|
|
2
|
+
import { CompiledQuery, DefaultQueryCompiler } from "kysely";
|
|
3
|
+
//#region src/node-sqlite-dialect.ts
|
|
4
|
+
var NodeSqliteAdapter = class {
|
|
5
|
+
get supportsCreateIfNotExists() {
|
|
6
|
+
return true;
|
|
7
|
+
}
|
|
8
|
+
get supportsTransactionalDdl() {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
get supportsReturning() {
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
async acquireMigrationLock() {}
|
|
15
|
+
async releaseMigrationLock() {}
|
|
16
|
+
get supportsOutput() {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
var NodeSqliteDriver = class {
|
|
21
|
+
#config;
|
|
22
|
+
#connectionMutex = new ConnectionMutex();
|
|
23
|
+
#db;
|
|
24
|
+
#connection;
|
|
25
|
+
constructor(config) {
|
|
26
|
+
this.#config = { ...config };
|
|
27
|
+
}
|
|
28
|
+
async init() {
|
|
29
|
+
this.#db = this.#config.database;
|
|
30
|
+
this.#connection = new NodeSqliteConnection(this.#db);
|
|
31
|
+
if (this.#config.onCreateConnection) await this.#config.onCreateConnection(this.#connection);
|
|
32
|
+
}
|
|
33
|
+
async acquireConnection() {
|
|
34
|
+
await this.#connectionMutex.lock();
|
|
35
|
+
return this.#connection;
|
|
36
|
+
}
|
|
37
|
+
async beginTransaction(connection) {
|
|
38
|
+
await connection.executeQuery(CompiledQuery.raw("begin"));
|
|
39
|
+
}
|
|
40
|
+
async commitTransaction(connection) {
|
|
41
|
+
await connection.executeQuery(CompiledQuery.raw("commit"));
|
|
42
|
+
}
|
|
43
|
+
async rollbackTransaction(connection) {
|
|
44
|
+
await connection.executeQuery(CompiledQuery.raw("rollback"));
|
|
45
|
+
}
|
|
46
|
+
async releaseConnection() {
|
|
47
|
+
this.#connectionMutex.unlock();
|
|
48
|
+
}
|
|
49
|
+
async destroy() {
|
|
50
|
+
this.#db?.close();
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
var NodeSqliteConnection = class {
|
|
54
|
+
#db;
|
|
55
|
+
constructor(db) {
|
|
56
|
+
this.#db = db;
|
|
57
|
+
}
|
|
58
|
+
executeQuery(compiledQuery) {
|
|
59
|
+
const { sql, parameters } = compiledQuery;
|
|
60
|
+
const stmt = this.#db.prepare(sql);
|
|
61
|
+
const params = parameters;
|
|
62
|
+
if (stmt.columns().length > 0) return Promise.resolve({ rows: stmt.all(...params) });
|
|
63
|
+
const { changes, lastInsertRowid } = stmt.run(...params);
|
|
64
|
+
return Promise.resolve({
|
|
65
|
+
rows: [],
|
|
66
|
+
numAffectedRows: BigInt(changes),
|
|
67
|
+
insertId: typeof lastInsertRowid === "bigint" ? lastInsertRowid : BigInt(lastInsertRowid)
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
async *streamQuery() {
|
|
71
|
+
throw new Error("Streaming query is not supported by SQLite driver.");
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var ConnectionMutex = class {
|
|
75
|
+
#promise;
|
|
76
|
+
#resolve;
|
|
77
|
+
async lock() {
|
|
78
|
+
while (this.#promise !== void 0) await this.#promise;
|
|
79
|
+
this.#promise = new Promise((resolve) => {
|
|
80
|
+
this.#resolve = resolve;
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
unlock() {
|
|
84
|
+
const resolve = this.#resolve;
|
|
85
|
+
this.#promise = void 0;
|
|
86
|
+
this.#resolve = void 0;
|
|
87
|
+
resolve?.();
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
var NodeSqliteQueryCompiler = class extends DefaultQueryCompiler {
|
|
91
|
+
getCurrentParameterPlaceholder() {
|
|
92
|
+
return "?";
|
|
93
|
+
}
|
|
94
|
+
getLeftIdentifierWrapper() {
|
|
95
|
+
return "\"";
|
|
96
|
+
}
|
|
97
|
+
getRightIdentifierWrapper() {
|
|
98
|
+
return "\"";
|
|
99
|
+
}
|
|
100
|
+
getAutoIncrement() {
|
|
101
|
+
return "autoincrement";
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
var NodeSqliteDialect = class {
|
|
105
|
+
#config;
|
|
106
|
+
constructor(config) {
|
|
107
|
+
this.#config = { ...config };
|
|
108
|
+
}
|
|
109
|
+
createDriver() {
|
|
110
|
+
return new NodeSqliteDriver(this.#config);
|
|
111
|
+
}
|
|
112
|
+
createQueryCompiler() {
|
|
113
|
+
return new NodeSqliteQueryCompiler();
|
|
114
|
+
}
|
|
115
|
+
createAdapter() {
|
|
116
|
+
return new NodeSqliteAdapter();
|
|
117
|
+
}
|
|
118
|
+
createIntrospector(db) {
|
|
119
|
+
return createSqliteIntrospector(db);
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
//#endregion
|
|
123
|
+
export { NodeSqliteDialect };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { sql } from "kysely";
|
|
2
|
+
//#region src/kysely-migration-tables.ts
|
|
3
|
+
/**
|
|
4
|
+
* Kysely's internal migration table names, mirrored as local constants.
|
|
5
|
+
*
|
|
6
|
+
* Kysely 0.29 moved these from its main entry to the `kysely/migration`
|
|
7
|
+
* subpath (which 0.28 lacks), and the main entry now exports only type stubs
|
|
8
|
+
* with no runtime value, which breaks strict ESM bundlers.
|
|
9
|
+
*
|
|
10
|
+
* The values are stable parts of Kysely's public migration contract. Mirroring
|
|
11
|
+
* them allows the SQLite dialects to support both Kysely 0.28 and 0.29.
|
|
12
|
+
*
|
|
13
|
+
* TODO: Import these from `kysely/migration` after dropping Kysely 0.28.
|
|
14
|
+
*/
|
|
15
|
+
const DEFAULT_MIGRATION_TABLE = "kysely_migration";
|
|
16
|
+
const DEFAULT_MIGRATION_LOCK_TABLE = "kysely_migration_lock";
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/sqlite-introspector.ts
|
|
19
|
+
function sqliteIntegerPrimaryKeyColumn(columns) {
|
|
20
|
+
const primaryKeys = columns.filter((column) => column.pk > 0);
|
|
21
|
+
const primaryKey = primaryKeys.length === 1 ? primaryKeys[0] : void 0;
|
|
22
|
+
return primaryKey?.type.toLowerCase() === "integer" ? primaryKey.name : void 0;
|
|
23
|
+
}
|
|
24
|
+
async function sqliteGeneratedPrimaryKeyColumn(db, name, columns) {
|
|
25
|
+
const column = sqliteIntegerPrimaryKeyColumn(columns);
|
|
26
|
+
if (!column) return;
|
|
27
|
+
const { rows } = await sql`
|
|
28
|
+
PRAGMA index_list(${sql.id(name)})
|
|
29
|
+
`.execute(db.withoutPlugins());
|
|
30
|
+
return rows.some((index) => index.origin === "pk") ? void 0 : column;
|
|
31
|
+
}
|
|
32
|
+
function toSqliteTableMetadata(table, columns, autoIncrementColumn) {
|
|
33
|
+
return {
|
|
34
|
+
name: table.name,
|
|
35
|
+
isView: table.type === "view",
|
|
36
|
+
columns: columns.map((column) => ({
|
|
37
|
+
name: column.name,
|
|
38
|
+
dataType: column.type,
|
|
39
|
+
isNullable: column.notnull === 0,
|
|
40
|
+
isAutoIncrementing: column.name === autoIncrementColumn,
|
|
41
|
+
hasDefaultValue: column.dflt_value != null
|
|
42
|
+
}))
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
async function readTableMetadata(db, name) {
|
|
46
|
+
const { rows: columns } = await sql`
|
|
47
|
+
PRAGMA table_info(${sql.id(name)})
|
|
48
|
+
`.execute(db.withoutPlugins());
|
|
49
|
+
if (columns.length === 0) return;
|
|
50
|
+
const generatedColumn = await sqliteGeneratedPrimaryKeyColumn(db, name, columns);
|
|
51
|
+
return toSqliteTableMetadata({ name }, columns, generatedColumn);
|
|
52
|
+
}
|
|
53
|
+
async function introspectSqliteTables(db, tableNames) {
|
|
54
|
+
if (tableNames.length === 0) return [];
|
|
55
|
+
try {
|
|
56
|
+
return await db.introspection.getTables();
|
|
57
|
+
} catch {
|
|
58
|
+
return (await Promise.all(tableNames.map((name) => readTableMetadata(db, name)))).filter((table) => table !== void 0);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function createSqliteIntrospector(db) {
|
|
62
|
+
const systemDb = db;
|
|
63
|
+
async function getSchemas() {
|
|
64
|
+
return [];
|
|
65
|
+
}
|
|
66
|
+
async function getTables(options = { withInternalKyselyTables: false }) {
|
|
67
|
+
let query = systemDb.selectFrom("sqlite_schema").where("type", "=", "table").where("name", "not like", "sqlite_%").select("name");
|
|
68
|
+
if (!options.withInternalKyselyTables) query = query.where("name", "!=", DEFAULT_MIGRATION_TABLE).where("name", "!=", DEFAULT_MIGRATION_LOCK_TABLE);
|
|
69
|
+
const tables = await query.execute();
|
|
70
|
+
return Promise.all(tables.map(async ({ name }) => {
|
|
71
|
+
const columns = await db.selectFrom(sql`pragma_table_info(${name})`.as("table_info")).select([
|
|
72
|
+
"cid",
|
|
73
|
+
"name",
|
|
74
|
+
"type",
|
|
75
|
+
"notnull",
|
|
76
|
+
"dflt_value",
|
|
77
|
+
"pk"
|
|
78
|
+
]).execute();
|
|
79
|
+
const generatedColumn = await sqliteGeneratedPrimaryKeyColumn(db, name, columns);
|
|
80
|
+
return toSqliteTableMetadata({ name }, columns, generatedColumn);
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
getSchemas,
|
|
85
|
+
getTables,
|
|
86
|
+
getMetadata: async (options) => ({ tables: await getTables(options) })
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
//#endregion
|
|
90
|
+
export { DEFAULT_MIGRATION_LOCK_TABLE as a, toSqliteTableMetadata as i, introspectSqliteTables as n, DEFAULT_MIGRATION_TABLE as o, sqliteIntegerPrimaryKeyColumn as r, createSqliteIntrospector as t };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@better-auth/kysely-adapter",
|
|
3
|
+
"version": "1.7.7",
|
|
4
|
+
"description": "Kysely adapter for Better Auth",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://www.better-auth.com/docs/adapters/kysely",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/better-auth/better-auth.git",
|
|
11
|
+
"directory": "packages/kysely-adapter"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"auth",
|
|
15
|
+
"kysely",
|
|
16
|
+
"adapter",
|
|
17
|
+
"typescript",
|
|
18
|
+
"better-auth"
|
|
19
|
+
],
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"files": [
|
|
25
|
+
"dist"
|
|
26
|
+
],
|
|
27
|
+
"main": "./dist/index.mjs",
|
|
28
|
+
"module": "./dist/index.mjs",
|
|
29
|
+
"types": "./dist/index.d.mts",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"dev-source": "./src/index.ts",
|
|
33
|
+
"types": "./dist/index.d.mts",
|
|
34
|
+
"default": "./dist/index.mjs"
|
|
35
|
+
},
|
|
36
|
+
"./node-sqlite-dialect": {
|
|
37
|
+
"dev-source": "./src/node-sqlite-dialect.ts",
|
|
38
|
+
"types": "./dist/node-sqlite-dialect.d.mts",
|
|
39
|
+
"default": "./dist/node-sqlite-dialect.mjs"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"@better-auth/utils": "0.4.2",
|
|
44
|
+
"kysely": "^0.28.17 || ^0.29.0",
|
|
45
|
+
"@better-auth/core": "^1.7.7"
|
|
46
|
+
},
|
|
47
|
+
"peerDependenciesMeta": {
|
|
48
|
+
"kysely": {
|
|
49
|
+
"optional": true
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -36,7 +36,7 @@ export function resolveBrowserRequirement(value, authMethod) {
|
|
|
36
36
|
/** Replaces caller-supplied `allowed_origins` with the catalog grant; URLs must fall inside it. */
|
|
37
37
|
export function constrainBrowserInput(browser, actionKey, input) {
|
|
38
38
|
validateBrowserRequirement(browser);
|
|
39
|
-
const allowedActions = [BROWSER_VERIFY_OPERATION, 'navigate', 'evaluate', 'get_accessibility_tree', 'wait_for_selector', 'screenshot', 'click_ref', 'type_ref', 'press_key', 'scroll', 'focus_tab', 'close_tab', 'list_tabs', 'feed_listen', 'show_notification', 'network_intercept_start', 'network_intercept_drain', 'network_intercept_stop', 'network_intercept_replay', 'console_capture_start', 'console_capture_drain', 'console_capture_stop'];
|
|
39
|
+
const allowedActions = [BROWSER_VERIFY_OPERATION, 'navigate', 'evaluate', 'get_accessibility_tree', 'wait_for_selector', 'screenshot', 'click_ref', 'type_ref', 'press_key', 'hover_ref', 'scroll', 'select_option', 'handle_dialog', 'focus_tab', 'close_tab', 'list_tabs', 'feed_listen', 'show_notification', 'network_intercept_start', 'network_intercept_drain', 'network_intercept_stop', 'network_intercept_replay', 'console_capture_start', 'console_capture_drain', 'console_capture_stop'];
|
|
40
40
|
if (!allowedActions.includes(actionKey))
|
|
41
41
|
throw new Error('Operation is outside the declared browser resource');
|
|
42
42
|
if (actionKey === 'navigate' && input.url === 'about:blank')
|
|
@@ -41,6 +41,7 @@ export interface ConnectorDefinition {
|
|
|
41
41
|
/** Query filters implemented by this connector. Unsupported filters fail before query(). */
|
|
42
42
|
queryCapabilities?: {
|
|
43
43
|
exactMatch?: boolean;
|
|
44
|
+
verbatimExactMatch?: boolean;
|
|
44
45
|
selection?: boolean;
|
|
45
46
|
};
|
|
46
47
|
/** Connector-normalized events that can activate Automations. */
|
|
@@ -181,6 +182,30 @@ export interface ConnectorRuntimeInfo {
|
|
|
181
182
|
packages: string[];
|
|
182
183
|
};
|
|
183
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* `app_installation` deliveries authenticated by a Google-signed bearer JWT
|
|
187
|
+
* (Google Chat) instead of an HMAC. `{appId}` in {@link signers} is replaced
|
|
188
|
+
* by the value of {@link appIdKey}.
|
|
189
|
+
*/
|
|
190
|
+
export interface ConnectorWebhookGoogleJwtVerification {
|
|
191
|
+
type: 'google-jwt';
|
|
192
|
+
/**
|
|
193
|
+
* Env var holding the receiving app's id (the Google Cloud project number).
|
|
194
|
+
* It is the installs' `provider_app_id`; when unset the provider is not
|
|
195
|
+
* registered and its app-webhook endpoint answers 404.
|
|
196
|
+
*/
|
|
197
|
+
appIdKey: string;
|
|
198
|
+
/**
|
|
199
|
+
* Token audiences to accept, either of which verifies:
|
|
200
|
+
* - `'app_id'` — a JWT self-signed by one of {@link signers} with `aud` = the
|
|
201
|
+
* app id, checked against that service account's published keys.
|
|
202
|
+
* - `'endpoint_url'` — a Google OIDC ID token with `aud` = this provider's
|
|
203
|
+
* public app-webhook URL and a verified `email` in {@link signers}.
|
|
204
|
+
*/
|
|
205
|
+
audiences: Array<'app_id' | 'endpoint_url'>;
|
|
206
|
+
/** Google service-account emails allowed to sign a delivery. */
|
|
207
|
+
signers: string[];
|
|
208
|
+
}
|
|
184
209
|
/**
|
|
185
210
|
* Declarative scheme the gateway uses to verify an inbound provider webhook in
|
|
186
211
|
* the request hot path — no connector code runs before the 202 ack. The shared
|
|
@@ -188,6 +213,11 @@ export interface ConnectorRuntimeInfo {
|
|
|
188
213
|
* at connect time and stored on the connection.
|
|
189
214
|
*/
|
|
190
215
|
export interface ConnectorWebhookSchema {
|
|
216
|
+
/**
|
|
217
|
+
* Non-HMAC verification for `app_installation` deliveries. When set, the HMAC
|
|
218
|
+
* fields below are not used and no webhook secret is resolved.
|
|
219
|
+
*/
|
|
220
|
+
verification?: ConnectorWebhookGoogleJwtVerification;
|
|
191
221
|
/**
|
|
192
222
|
* Request header carrying the provider's HMAC signature over the raw body,
|
|
193
223
|
* e.g. `x-hub-signature-256` (GitHub), `linear-signature`. Omit for providers
|
|
@@ -1082,14 +1112,17 @@ export interface QueryContext<F = Record<string, unknown>> {
|
|
|
1082
1112
|
order: 'asc' | 'desc';
|
|
1083
1113
|
};
|
|
1084
1114
|
/**
|
|
1085
|
-
* Filter before pagination by the trimmed
|
|
1115
|
+
* Filter before pagination by the string (trimmed by default) of the first non-null
|
|
1086
1116
|
* projected column, in order. Missing columns count as null; an empty string
|
|
1087
1117
|
* does not fall through. Values must be bound or safely encoded by the
|
|
1088
1118
|
* connector, which owns its source dialect. Requires queryCapabilities.exactMatch.
|
|
1119
|
+
* `verbatim: true` preserves the scalar string without trimming and additionally
|
|
1120
|
+
* requires queryCapabilities.verbatimExactMatch. The default stays trimmed.
|
|
1089
1121
|
*/
|
|
1090
1122
|
exactMatch?: {
|
|
1091
1123
|
columns: string[];
|
|
1092
1124
|
value: string;
|
|
1125
|
+
verbatim?: boolean;
|
|
1093
1126
|
};
|
|
1094
1127
|
/**
|
|
1095
1128
|
* Shared collection predicates, applied before sorting and pagination.
|
|
@@ -15,7 +15,7 @@ import { validateEntityMetrics } from './metrics.js';
|
|
|
15
15
|
export { validateEntityMetrics };
|
|
16
16
|
export type { Dimension, EntityMetrics, EventSet, FactMatchRule, Measure, MetricReadMode, MetricTier, Segment, } from './metrics.js';
|
|
17
17
|
export type { ConnectorActionSpec, ConnectorClass, ConnectorFeedSpec, ConnectorSpec, } from './define-connector.js';
|
|
18
|
-
export type { ActionContext, ActionDefinition, ActionResult, ApprovalStatus, AuthArtifact, AuthContext, AuthResult, Connection, ConnectorAgentTooling, ConnectorAgentToolingEnv, ConnectorAuthAppInstallation, ConnectorAuthBrowser, ConnectorAuthEnvField, ConnectorAuthEnvKeys, ConnectorAuthInteractive, ConnectorAuthMethod, ConnectorAuthNone, ConnectorAuthOAuth, ConnectorAuthSchema, ConnectorDefinition, ConnectorInstallationContext, ConnectorOperations, ConnectorRuntimeInfo, ConnectorWebhookSchema, ContentItem, EntityIdentitySpec, EntityLinkPredicate, EntityTraitSpec, EventAttributionRole, EventAttributionRule, EventAttributionTargetSpec, EventEnvelope, Feed, FeedDefinition, FeedOperation, FeedObserveContext, FeedReadContext, FeedReadHandler, FeedReadResult, FeedReadMatch, FeedReadWindow, FeedReadWindowCoverage, FeedSyncHandler, FeedWebhookDeclaration, EntityTypeContribution, QueryContext, QueryResult, ReflectContext, ReflectedMeasure, ReflectResult, Run, RunStatus, RunType, RuntimeConnectorDefinition, RuntimeFeedDefinition, RuntimeFeedWebhook, SyncContext, SyncCredentials, SyncResult, WebhookRecordContext, WebhookRecordNormalizer, WebhookRegistration, WebhookRegistrationContext, } from './connector-types.js';
|
|
18
|
+
export type { ActionContext, ActionDefinition, ActionResult, ApprovalStatus, AuthArtifact, AuthContext, AuthResult, Connection, ConnectorAgentTooling, ConnectorAgentToolingEnv, ConnectorAuthAppInstallation, ConnectorAuthBrowser, ConnectorAuthEnvField, ConnectorAuthEnvKeys, ConnectorAuthInteractive, ConnectorAuthMethod, ConnectorAuthNone, ConnectorAuthOAuth, ConnectorAuthSchema, ConnectorDefinition, ConnectorInstallationContext, ConnectorOperations, ConnectorRuntimeInfo, ConnectorWebhookGoogleJwtVerification, ConnectorWebhookSchema, ContentItem, EntityIdentitySpec, EntityLinkPredicate, EntityTraitSpec, EventAttributionRole, EventAttributionRule, EventAttributionTargetSpec, EventEnvelope, Feed, FeedDefinition, FeedOperation, FeedObserveContext, FeedReadContext, FeedReadHandler, FeedReadResult, FeedReadMatch, FeedReadWindow, FeedReadWindowCoverage, FeedSyncHandler, FeedWebhookDeclaration, EntityTypeContribution, QueryContext, QueryResult, ReflectContext, ReflectedMeasure, ReflectResult, Run, RunStatus, RunType, RuntimeConnectorDefinition, RuntimeFeedDefinition, RuntimeFeedWebhook, SyncContext, SyncCredentials, SyncResult, WebhookRecordContext, WebhookRecordNormalizer, WebhookRegistration, WebhookRegistrationContext, } from './connector-types.js';
|
|
19
19
|
import { normalizeAuthUserId, normalizeEmail, normalizeEmailDomain, normalizeIdentifier, normalizePhone } from './identity-normalize.js';
|
|
20
20
|
export { normalizeAuthUserId, normalizeEmail, normalizeEmailDomain, normalizeIdentifier, normalizePhone, };
|
|
21
21
|
export type { IdentityNamespace, IdentityNamespaceDefinition, IdentityNormalizerKind, IdentitySubjectKind, } from './identity-namespaces.js';
|
|
@@ -58,4 +58,6 @@ export type { FileDelta, FileSystemSource, Snapshot } from './file-source.js';
|
|
|
58
58
|
export { connect } from './net.js';
|
|
59
59
|
export type { ConnectFn, Socket, SocketAddress, SocketOptions, } from './net.js';
|
|
60
60
|
export { assertFeedReadWindow, validateFeedReadWindow } from './feed-read-window.js';
|
|
61
|
+
export { isSecretOutputKey, redactOutput } from './redact.js';
|
|
62
|
+
export { scrubDiagnosticValue } from '@lobu/core/diagnostic-scrubber';
|
|
61
63
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -46,4 +46,8 @@ export { extensionNetworkSync } from './extension-network.js';
|
|
|
46
46
|
// =============================================================================
|
|
47
47
|
export { connect } from './net.js';
|
|
48
48
|
export { assertFeedReadWindow, validateFeedReadWindow } from './feed-read-window.js';
|
|
49
|
+
// The worker's output redaction catalog, shared so a connector that returns
|
|
50
|
+
// third-party text (logs, messages) can scrub it with the same patterns.
|
|
51
|
+
export { isSecretOutputKey, redactOutput } from './redact.js';
|
|
52
|
+
export { scrubDiagnosticValue } from '@lobu/core/diagnostic-scrubber';
|
|
49
53
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Redact secrets from connector output before it leaves the worker.
|
|
3
|
+
*
|
|
4
|
+
* Patterns are deliberately broad — false positives are preferred to leaking a
|
|
5
|
+
* real credential into the runs table. Add new patterns here when a connector
|
|
6
|
+
* surfaces a new sensitive shape.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isSecretOutputKey(key: string): boolean;
|
|
9
|
+
export declare function redactOutput(text: string): string;
|
|
10
|
+
//# sourceMappingURL=redact.d.ts.map
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Redact secrets from connector output before it leaves the worker.
|
|
3
|
+
*
|
|
4
|
+
* Patterns are deliberately broad — false positives are preferred to leaking a
|
|
5
|
+
* real credential into the runs table. Add new patterns here when a connector
|
|
6
|
+
* surfaces a new sensitive shape.
|
|
7
|
+
*/
|
|
8
|
+
const REDACTED = '[REDACTED]';
|
|
9
|
+
// Keep this module dependency-free: it is also bundled into connector isolates.
|
|
10
|
+
// Match credential suffixes even in concatenated names such as PGPASSWORD.
|
|
11
|
+
// The token scanner bounds the work; requiring a prefix delimiter loses secrets.
|
|
12
|
+
const SECRET_KEY = /(?:api[_-]?key|access[_-]?token|refresh[_-]?token|id[_-]?token|auth[_-]?token|client[_-]?secret|secret(?:[_-]access)?[_-]?key|private[_-]?key|token|secret|password|passwd|credentials?|authorization|auth|bearer|cookies?|set[_-]cookie|session[_-]?id)s?$/i;
|
|
13
|
+
export function isSecretOutputKey(key) {
|
|
14
|
+
const normalized = key.replace(/([a-z0-9])([A-Z])/g, '$1_$2');
|
|
15
|
+
return SECRET_KEY.test(key) || SECRET_KEY.test(normalized) ||
|
|
16
|
+
(key.toUpperCase().includes('AWS_') && /(?:KEY|TOKEN|SECRET)$/i.test(key));
|
|
17
|
+
}
|
|
18
|
+
function quotedValueEnd(text, start, delimiter) {
|
|
19
|
+
const quote = delimiter.at(-1);
|
|
20
|
+
const escapes = delimiter.length - 1;
|
|
21
|
+
// A quote closes embedded JSON only at the opening delimiter's escaping layer.
|
|
22
|
+
let end = start;
|
|
23
|
+
while (end < text.length) {
|
|
24
|
+
const runStart = end;
|
|
25
|
+
while (text[end] === '\\')
|
|
26
|
+
end++;
|
|
27
|
+
if (text[end] === quote && (end - runStart) % (2 * (escapes + 1)) === escapes) {
|
|
28
|
+
return end - escapes;
|
|
29
|
+
}
|
|
30
|
+
if (end < text.length)
|
|
31
|
+
end++;
|
|
32
|
+
}
|
|
33
|
+
return end;
|
|
34
|
+
}
|
|
35
|
+
// Consume whole key tokens once, then scan only explicitly assigned secret values.
|
|
36
|
+
// A length threshold misses short passwords; unbounded key-search regexes can
|
|
37
|
+
// repeatedly rescan long malformed log lines.
|
|
38
|
+
function redactAssignments(text) {
|
|
39
|
+
const keys = /[\w.-]+/g;
|
|
40
|
+
const assignment = /(\\*["'])?\s*[:=]\s*(\\*["'])?/y;
|
|
41
|
+
const authScheme = /(?:Bearer|Basic)\s+/iy;
|
|
42
|
+
const parts = [];
|
|
43
|
+
let copied = 0;
|
|
44
|
+
let key;
|
|
45
|
+
while ((key = keys.exec(text))) {
|
|
46
|
+
if (!isSecretOutputKey(key[0]))
|
|
47
|
+
continue;
|
|
48
|
+
assignment.lastIndex = keys.lastIndex;
|
|
49
|
+
const separator = assignment.exec(text);
|
|
50
|
+
if (!separator)
|
|
51
|
+
continue;
|
|
52
|
+
const start = assignment.lastIndex;
|
|
53
|
+
const delimiter = separator[2];
|
|
54
|
+
let end = start;
|
|
55
|
+
let replacement = REDACTED;
|
|
56
|
+
if (!delimiter && text.startsWith(REDACTED, start)) {
|
|
57
|
+
keys.lastIndex = start + REDACTED.length;
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
if (delimiter) {
|
|
61
|
+
end = quotedValueEnd(text, start, delimiter);
|
|
62
|
+
}
|
|
63
|
+
else if (text[start] === '{' || text[start] === '[') {
|
|
64
|
+
// Secret containers hide every descendant, even those with ordinary keys.
|
|
65
|
+
let depth = 0;
|
|
66
|
+
do {
|
|
67
|
+
const quoteStart = end;
|
|
68
|
+
while (text[end] === '\\')
|
|
69
|
+
end++;
|
|
70
|
+
if (text[end] === '"' || text[end] === "'") {
|
|
71
|
+
const quote = text.slice(quoteStart, end + 1);
|
|
72
|
+
end = quotedValueEnd(text, end + 1, quote) + quote.length;
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
if (text[end] === '{' || text[end] === '[')
|
|
76
|
+
depth++;
|
|
77
|
+
if (text[end] === '}' || text[end] === ']')
|
|
78
|
+
depth--;
|
|
79
|
+
end++;
|
|
80
|
+
} while (depth > 0 && end < text.length);
|
|
81
|
+
const quote = separator[1] ?? '"';
|
|
82
|
+
replacement = `${quote}${REDACTED}${quote}`;
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
// An unquoted authentication value includes its scheme and credential.
|
|
86
|
+
// Removing only the scheme would hide it from later token redaction.
|
|
87
|
+
authScheme.lastIndex = start;
|
|
88
|
+
if (authScheme.test(text))
|
|
89
|
+
end = authScheme.lastIndex;
|
|
90
|
+
while (end < text.length && !/[\s,;&}\]"']/.test(text[end]))
|
|
91
|
+
end++;
|
|
92
|
+
}
|
|
93
|
+
if (end > start) {
|
|
94
|
+
parts.push(text.slice(copied, start), replacement);
|
|
95
|
+
copied = end;
|
|
96
|
+
}
|
|
97
|
+
keys.lastIndex = end;
|
|
98
|
+
}
|
|
99
|
+
parts.push(text.slice(copied));
|
|
100
|
+
return parts.join('');
|
|
101
|
+
}
|
|
102
|
+
const PATTERNS = [
|
|
103
|
+
// HTTP Authorization header (e.g. "Authorization: Bearer abc...") — match
|
|
104
|
+
// the rest of the line so multi-token schemes like "Bearer xxx" get caught.
|
|
105
|
+
{ regex: /Authorization:[^\r\n]+/gi, replacement: `Authorization: ${REDACTED}` },
|
|
106
|
+
// Cookie / Set-Cookie header — same line-eating shape.
|
|
107
|
+
{ regex: /(Set-)?Cookie:[^\r\n]+/gi, replacement: `$1Cookie: ${REDACTED}` },
|
|
108
|
+
// Bearer tokens anywhere (URL-safe-base64 style values)
|
|
109
|
+
{ regex: /Bearer\s+[\w\-.~+/=]+/gi, replacement: `Bearer ${REDACTED}` },
|
|
110
|
+
// JWT shape (eyJ...header.payload.sig)
|
|
111
|
+
{ regex: /eyJ[\w\-]+\.[\w\-]+\.[\w\-]+/g, replacement: REDACTED },
|
|
112
|
+
// Google OAuth access token shape (ya29.<varies>) — high-confidence.
|
|
113
|
+
{ regex: /ya29\.[\w\-.]{20,}/g, replacement: REDACTED },
|
|
114
|
+
// Bound the scheme search so a long non-URI token is not rescanned at every
|
|
115
|
+
// character. Retain the scheme, username and host for diagnostics.
|
|
116
|
+
{
|
|
117
|
+
regex: /([a-z][a-z0-9+.-]{0,63}:\/\/[^:/\s]+):([^@/\s]+)@/gi,
|
|
118
|
+
replacement: `$1:${REDACTED}@`,
|
|
119
|
+
},
|
|
120
|
+
];
|
|
121
|
+
export function redactOutput(text) {
|
|
122
|
+
if (!text)
|
|
123
|
+
return text;
|
|
124
|
+
let result = redactAssignments(text);
|
|
125
|
+
for (const { regex, replacement } of PATTERNS) {
|
|
126
|
+
result = result.replace(regex, replacement);
|
|
127
|
+
}
|
|
128
|
+
return result;
|
|
129
|
+
}
|
|
130
|
+
//# sourceMappingURL=redact.js.map
|
|
@@ -38,7 +38,8 @@ export interface Env {
|
|
|
38
38
|
GOOGLE_CLIENT_SECRET?: string;
|
|
39
39
|
APPLE_CLIENT_ID?: string;
|
|
40
40
|
APPLE_CLIENT_SECRET?: string;
|
|
41
|
-
|
|
41
|
+
CLOUDFLARE_EMAIL_ACCOUNT_ID?: string;
|
|
42
|
+
CLOUDFLARE_EMAIL_API_TOKEN?: string;
|
|
42
43
|
EMAIL_FROM_AUTH?: string;
|
|
43
44
|
EMAIL_FROM_INVITES?: string;
|
|
44
45
|
EMAIL_REPLY_TO?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobu/connector-sdk",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.3.0",
|
|
4
4
|
"description": "Lobu memory SDK — build pluggable connectors for Lobu memory",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -75,10 +75,15 @@
|
|
|
75
75
|
"./device-manifest-hash": {
|
|
76
76
|
"types": "./dist/device-manifest-hash.d.ts",
|
|
77
77
|
"import": "./dist/device-manifest-hash.js"
|
|
78
|
+
},
|
|
79
|
+
"./redact": {
|
|
80
|
+
"types": "./dist/redact.d.ts",
|
|
81
|
+
"import": "./dist/redact.js"
|
|
78
82
|
}
|
|
79
83
|
},
|
|
80
84
|
"files": [
|
|
81
85
|
"dist",
|
|
86
|
+
"src/redact.ts",
|
|
82
87
|
"!**/*.map"
|
|
83
88
|
],
|
|
84
89
|
"sideEffects": false,
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
* modules it names, or the isolate lane loses its gateway tools with no
|
|
14
14
|
* compile error to say so — `assertIsolateEligible` catches it at run time.
|
|
15
15
|
*/
|
|
16
|
+
/**
|
|
17
|
+
* Request header an agent turn's isolate sets on a gateway tool call to name
|
|
18
|
+
* the steered input run the call answers (the same id its tool trace carries
|
|
19
|
+
* as `input_run_id`). Advisory until verified: the gateway accepts it only as
|
|
20
|
+
* the turn's own run or one of that turn's stored inputs, and derives a
|
|
21
|
+
* write's idempotency key from THAT row. Absent means the owner input.
|
|
22
|
+
*/
|
|
23
|
+
export declare const TURN_INPUT_RUN_HEADER = "x-lobu-turn-input-run";
|
|
16
24
|
export { CUSTOM_TOOL_METADATA, type CustomToolMetadata, getCustomToolDescription, renderAlwaysOnToolPolicyRulesFor, } from "./agent-policy";
|
|
17
25
|
export { FOLLOW_UP_SUGGESTIONS_PROMPT, parseFollowUpSuggestions, sanitizeSuggestionPrompts, SUGGESTION_LIMITS, type SuggestedPrompt, } from "./suggestions";
|
|
18
26
|
/**
|
|
@@ -15,9 +15,17 @@
|
|
|
15
15
|
* compile error to say so — `assertIsolateEligible` catches it at run time.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.SUGGESTION_LIMITS = exports.sanitizeSuggestionPrompts = exports.parseFollowUpSuggestions = exports.FOLLOW_UP_SUGGESTIONS_PROMPT = exports.renderAlwaysOnToolPolicyRulesFor = exports.getCustomToolDescription = exports.CUSTOM_TOOL_METADATA = void 0;
|
|
18
|
+
exports.SUGGESTION_LIMITS = exports.sanitizeSuggestionPrompts = exports.parseFollowUpSuggestions = exports.FOLLOW_UP_SUGGESTIONS_PROMPT = exports.renderAlwaysOnToolPolicyRulesFor = exports.getCustomToolDescription = exports.CUSTOM_TOOL_METADATA = exports.TURN_INPUT_RUN_HEADER = void 0;
|
|
19
19
|
exports.withLobuFileParameters = withLobuFileParameters;
|
|
20
20
|
const typebox_1 = require("@sinclair/typebox");
|
|
21
|
+
/**
|
|
22
|
+
* Request header an agent turn's isolate sets on a gateway tool call to name
|
|
23
|
+
* the steered input run the call answers (the same id its tool trace carries
|
|
24
|
+
* as `input_run_id`). Advisory until verified: the gateway accepts it only as
|
|
25
|
+
* the turn's own run or one of that turn's stored inputs, and derives a
|
|
26
|
+
* write's idempotency key from THAT row. Absent means the owner input.
|
|
27
|
+
*/
|
|
28
|
+
exports.TURN_INPUT_RUN_HEADER = "x-lobu-turn-input-run";
|
|
21
29
|
var agent_policy_1 = require("./agent-policy");
|
|
22
30
|
Object.defineProperty(exports, "CUSTOM_TOOL_METADATA", { enumerable: true, get: function () { return agent_policy_1.CUSTOM_TOOL_METADATA; } });
|
|
23
31
|
Object.defineProperty(exports, "getCustomToolDescription", { enumerable: true, get: function () { return agent_policy_1.getCustomToolDescription; } });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const BROWSER_CAPABILITIES: readonly ["browser.tabs", "browser.scripting", "browser.history", "browser.bookmarks", "browser.downloads", "browser.notifications", "browser.debugger"];
|
|
2
2
|
export declare const OS_CAPABILITIES: readonly ["os.shell", "os.files", "os.notifications"];
|
|
3
3
|
export declare const IOS_CAPABILITIES: readonly ["ios.notifications", "ios.share-sheet", "ios.files"];
|
|
4
|
-
export declare const MAC_DEVICE_CAPABILITIES: readonly ["automations.execute", "screentime", "local_directory", "healthkit", "photos", "calendar", "reminders", "computer_use"];
|
|
4
|
+
export declare const MAC_DEVICE_CAPABILITIES: readonly ["automations.execute", "screentime", "local_directory", "healthkit", "photos", "calendar", "reminders", "system_audio", "computer_use"];
|
|
5
5
|
export declare const HEADLESS_CAPABILITIES: readonly ["os.shell", "os.files", "automations.execute"];
|
|
6
6
|
export interface CapabilityAuthorizationResult {
|
|
7
7
|
authorized: string[];
|
|
@@ -55,6 +55,11 @@ exports.MAC_DEVICE_CAPABILITIES = [
|
|
|
55
55
|
"photos",
|
|
56
56
|
"calendar",
|
|
57
57
|
"reminders",
|
|
58
|
+
// Advertised only by Mac builds released before native meeting recording was
|
|
59
|
+
// retired (owletto #1211); they still send the `apple.system_audio` manifest,
|
|
60
|
+
// and one disallowed capability rejects the whole manifest payload. Drop this
|
|
61
|
+
// once MIN_CLIENT_VERSION excludes those builds.
|
|
62
|
+
"system_audio",
|
|
58
63
|
"computer_use",
|
|
59
64
|
];
|
|
60
65
|
// A server/VM with no UI or browser (the herdr box, a CI node, a k8s pod).
|
|
@@ -30,6 +30,12 @@ export type ToolErrorCode =
|
|
|
30
30
|
| "VALIDATION"
|
|
31
31
|
/** Denied by org-scope / cross-org visibility rules. */
|
|
32
32
|
| "PERMISSION"
|
|
33
|
+
/**
|
|
34
|
+
* `manage_entity update` sent `manual_edit: true`, but the caller may not
|
|
35
|
+
* assert a person's edit: it lacks the `entities:manual_edit` scope, or an
|
|
36
|
+
* agent, MCP session or Automation is behind the call (HTTP 403).
|
|
37
|
+
*/
|
|
38
|
+
| "MANUAL_EDIT_NOT_ALLOWED"
|
|
33
39
|
/** Upstream throttled the request (HTTP 429 / too many requests). */
|
|
34
40
|
| "RATE_LIMITED"
|
|
35
41
|
/** Upstream request or DB statement timed out (e.g. PG 57014). */
|