@lobu/runtime-server 22.0.0 → 24.0.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 +1448 -212
- package/dist/catalogs/skills.json +1 -1
- package/dist/component.json +1 -1
- package/dist/connectors/README.md +15 -2
- package/dist/connectors/google_gmail.ts +1 -0
- package/dist/connectors/jira-helpers.ts +313 -0
- package/dist/connectors/jira.ts +29 -221
- package/dist/connectors/linkedin-browser-script.ts +13 -0
- package/dist/connectors/linkedin-draft-page.js +104 -0
- package/dist/connectors/linkedin-drafts.ts +73 -0
- package/dist/connectors/linkedin-identity.ts +32 -0
- package/dist/connectors/linkedin-inbox-adapter.js +1182 -0
- package/dist/connectors/linkedin-inbox.ts +156 -0
- package/dist/connectors/linkedin-like.ts +114 -0
- package/dist/connectors/linkedin-takeout.ts +577 -0
- package/dist/connectors/linkedin.ts +4017 -0
- package/dist/connectors/reddit.ts +92 -20
- package/dist/connectors/slack.ts +1 -0
- package/dist/connectors/takeout-utils.ts +240 -0
- package/dist/connectors/tiktok-inbox-page.js +9 -9
- package/dist/connectors/tiktok-web-page.js +21 -15
- package/dist/connectors/tiktok_web.ts +63 -30
- package/dist/connectors/whatsapp-web-adapter.js +104 -574
- package/dist/connectors/whatsapp-web-helpers.ts +30 -444
- package/dist/connectors/whatsapp-web-identity.ts +20 -6
- package/dist/connectors/whatsapp_web.ts +46 -646
- package/dist/connectors/x-dm-adapter.js +556 -0
- package/dist/connectors/x-identity.ts +33 -2
- package/dist/connectors/x.ts +266 -120
- package/dist/db/migrations/20261017120000_drop_feeds_kind_virtual.sql +26 -0
- package/dist/db/migrations/20261017130000_drop_retired_dead_code_columns.sql +46 -0
- package/dist/db/migrations/20261019120000_retire_identities_of_deleted_entities.sql +21 -0
- package/dist/db/migrations/20261020120000_entities_live_metadata_domain.sql +66 -0
- package/dist/db/migrations/20261020130000_agents_starters.sql +14 -0
- package/dist/db/migrations/20261020140000_view_attachments_by_page.sql +71 -0
- package/dist/dependencies.bun.lock +78 -75
- package/dist/guest.bundle.js +650 -448
- package/dist/owletto/dist/assets/_-CC8cTmRg.js +3 -0
- package/dist/owletto/dist/assets/_-ksFp4zVf.js +2 -0
- package/dist/owletto/dist/assets/_agentId-DWUFSrVp.js +2 -0
- package/dist/owletto/dist/assets/_agentId-MENLoohA.js +2 -0
- package/dist/owletto/dist/assets/_automationId-BnHqdXOC.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey._connectionId-CefXIqy2.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey.index-C1QPGf9E.js +2 -0
- package/dist/owletto/dist/assets/_conversationId-DinuPCUp.js +2 -0
- package/dist/owletto/dist/assets/{_deploymentId-BQfYN1U2.js → _deploymentId-BeyzVjRm.js} +2 -2
- package/dist/owletto/dist/assets/_eventId-3L_qeL_l.js +2 -0
- package/dist/owletto/dist/assets/_name-Dgedji78.js +2 -0
- package/dist/owletto/dist/assets/_owner-DbrKma4e.js +3 -0
- package/dist/owletto/dist/assets/_shape-DtVfRFz_.js +2 -0
- package/dist/owletto/dist/assets/_skillKey-CqLHzm7L.js +2 -0
- package/dist/owletto/dist/assets/_slug-ndDr_CUg.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-3CH5w8mr.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-DHQY9A8u.js +2 -0
- package/dist/owletto/dist/assets/{accept-invitation-D3OgJG4i.js → accept-invitation-CRKbM2Xy.js} +2 -2
- package/dist/owletto/dist/assets/activity-route-view-CFLNukhD.js +2 -0
- package/dist/owletto/dist/assets/{agent-card-controls-DzRs4Ix9.js → agent-card-controls-Be1Okb2C.js} +2 -2
- package/dist/owletto/dist/assets/{agent-client-setup-list-B2SvH7xD.js → agent-client-setup-list-BA8dU_C6.js} +2 -2
- package/dist/owletto/dist/assets/agent-connect-pages-CAV-yXus.js +2 -0
- package/dist/owletto/dist/assets/agent-editor-form-Bi6WvYX-.js +2 -0
- package/dist/owletto/dist/assets/{agent-guardrails-route-BaV1VpDh.js → agent-guardrails-route-DMOjG1D4.js} +2 -2
- package/dist/owletto/dist/assets/{agent-loading-shells-CtZJM2Gc.js → agent-loading-shells-De_2d8Lr.js} +2 -2
- package/dist/owletto/dist/assets/{agent-permissions-matrix-Ds48KFK9.js → agent-permissions-matrix-gZWl6mAe.js} +2 -2
- package/dist/owletto/dist/assets/{agent-skill-context-DPk5r08w.js → agent-skill-context-JLaTamGR.js} +2 -2
- package/dist/owletto/dist/assets/{agent-skills-route-DYpB5H1J.js → agent-skills-route-DcK41PWj.js} +2 -2
- package/dist/owletto/dist/assets/agent-subpage-shell-BBJoyTuC.js +2 -0
- package/dist/owletto/dist/assets/agent-thread-Buz3naVF.js +6 -0
- package/dist/owletto/dist/assets/agents-C-ReckCa.js +2 -0
- package/dist/owletto/dist/assets/agents-workbench-CqaKGggb.js +2 -0
- package/dist/owletto/dist/assets/app._appId-Cl1fTuIt.js +2 -0
- package/dist/owletto/dist/assets/automation-detail-content-BMLL4lxO.js +2 -0
- package/dist/owletto/dist/assets/automations-C-ReckCa.js +2 -0
- package/dist/owletto/dist/assets/callback-DTKKsfkz.js +2 -0
- package/dist/owletto/dist/assets/{card-DIF8SF9b.js → card-yU0TmNRH.js} +2 -2
- package/dist/owletto/dist/assets/{claim-DELEa-gH.js → claim-DJfTvlT2.js} +2 -2
- package/dist/owletto/dist/assets/client-rows--FrZfJol.js +2 -0
- package/dist/owletto/dist/assets/{clients-CpG676mg.js → clients-L4K1UT8c.js} +2 -2
- package/dist/owletto/dist/assets/{code-editor-V27Z4o3P.js → code-editor-U54Gwjit.js} +2 -2
- package/dist/owletto/dist/assets/connect-4zqtnDHb.js +2 -0
- package/dist/owletto/dist/assets/connect._clientId-Dj0SqgbE.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId-sgtocSvf.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId.activity-DTpSW1Xy.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId.index-h9X5H1x8.js +2 -0
- package/dist/owletto/dist/assets/{connection-DySpRE9x.js → connection-ByvKkyFm.js} +2 -2
- package/dist/owletto/dist/assets/{connection-feed-detail-C_D68j6d.js → connection-feed-detail-DWM9lTao.js} +2 -2
- package/dist/owletto/dist/assets/connections-browser-CEwYrYqt.js +2 -0
- package/dist/owletto/dist/assets/{connector-provenance-CNXtzYg5.js → connector-provenance-BocTm__v.js} +2 -2
- package/dist/owletto/dist/assets/connector-scope-lists-OYDOydtz.js +2 -0
- package/dist/owletto/dist/assets/connectors-CyZpcE5f.js +2 -0
- package/dist/owletto/dist/assets/{consent-BVzxrAO9.js → consent-DdfINrVp.js} +2 -2
- package/dist/owletto/dist/assets/{conversations-table-DfZGICl7.js → conversations-table-BSznfdYt.js} +2 -2
- package/dist/owletto/dist/assets/{core.esm-DiTpULFl.js → core.esm-Dr7tcIB-.js} +2 -2
- package/dist/owletto/dist/assets/create-CBGwASon.js +2 -0
- package/dist/owletto/dist/assets/create-Cf5hp6Z8.js +2 -0
- package/dist/owletto/dist/assets/create-CwThQtd3.js +2 -0
- package/dist/owletto/dist/assets/create-automation-form-9T5WnoUs.js +3 -0
- package/dist/owletto/dist/assets/create._connectorKey-sNHQHNpg.js +2 -0
- package/dist/owletto/dist/assets/{cronstrue-DPXl0qA2.js → cronstrue-BWFEyy_P.js} +2 -2
- package/dist/owletto/dist/assets/deployments-DHh9dyzv.js +2 -0
- package/dist/owletto/dist/assets/{deployments-body-D6TAWs_6.js → deployments-body-2xKS8gRo.js} +2 -2
- package/dist/owletto/dist/assets/{deployments-DCQdFdwG.js → deployments-wG_8QzOF.js} +2 -2
- package/dist/owletto/dist/assets/{device-CntqYW65.js → device-6z-xgsoW.js} +2 -2
- package/dist/owletto/dist/assets/device-pin-tombstone-Cwq88RMU.js +2 -0
- package/dist/owletto/dist/assets/device._deviceId-BDerBfD9.js +2 -0
- package/dist/owletto/dist/assets/entity-avatar-Cc1CuI-0.js +2 -0
- package/dist/owletto/dist/assets/entity-options-DHdMC1Lx.js +2 -0
- package/dist/owletto/dist/assets/entity-page--OkXmlNP.js +2 -0
- package/dist/owletto/dist/assets/entity-type-page-89RoK_-P.js +2 -0
- package/dist/owletto/dist/assets/event-detail-D4YZRtrA.js +2 -0
- package/dist/owletto/dist/assets/events-feed-DsrkV2ix.js +2 -0
- package/dist/owletto/dist/assets/filter-editors-B1_QUpg_.js +2 -0
- package/dist/owletto/dist/assets/{full-page-spinner-KpV2FS2u.js → full-page-spinner-Cqih-8IW.js} +2 -2
- package/dist/owletto/dist/assets/guardrails-B8Rs1be3.js +2 -0
- package/dist/owletto/dist/assets/identity-B0nH4yiC.js +2 -0
- package/dist/owletto/dist/assets/index-4TSkcsth.js +2 -0
- package/dist/owletto/dist/assets/index-BSH07yVD.css +1 -0
- package/dist/owletto/dist/assets/index-BgkhXElB.js +2 -0
- package/dist/owletto/dist/assets/index-CoW4Bz3w.js +2 -0
- package/dist/owletto/dist/assets/index-Codw-Qqi.js +2 -0
- package/dist/owletto/dist/assets/{index-BNh2cidi.js → index-DAOyXG1X.js} +2 -2
- package/dist/owletto/dist/assets/{index-BEvyBdOU.js → index-DKPwCasf.js} +2 -2
- package/dist/owletto/dist/assets/index-DMyXd3bJ.js +2 -0
- package/dist/owletto/dist/assets/index-DYCqXaMf.js +7950 -0
- package/dist/owletto/dist/assets/index-DYYZLcJ0.js +2 -0
- package/dist/owletto/dist/assets/index-DYzWV5_z.js +2 -0
- package/dist/owletto/dist/assets/index-Da6CrGEu.js +2 -0
- package/dist/owletto/dist/assets/{index-DCdkwg9H.js → index-DfyDUpuI.js} +2 -2
- package/dist/owletto/dist/assets/index-DneshLbf.js +2 -0
- package/dist/owletto/dist/assets/index-TgRS2v_F.js +2 -0
- package/dist/owletto/dist/assets/{index-BJXkc60S.js → index-ZNlrDc_f.js} +2 -2
- package/dist/owletto/dist/assets/{json-diff-D_Ym3Uku.js → json-diff-DFvYINBT.js} +3 -3
- package/dist/owletto/dist/assets/{list-skeleton-Bl0OS39L.js → list-skeleton-DFsEqLU1.js} +2 -2
- package/dist/owletto/dist/assets/login-DO0j-AYr.js +2 -0
- package/dist/owletto/dist/assets/{logout-DUccApuZ.js → logout-BmNwoAf7.js} +2 -2
- package/dist/owletto/dist/assets/member-scope-gate-B2LrMWBU.js +2 -0
- package/dist/owletto/dist/assets/memory-browse-page-Cjpl8EbB.js +103 -0
- package/dist/owletto/dist/assets/{model-selector-CB1BDvlW.js → model-selector-TQcA93xm.js} +2 -2
- package/dist/owletto/dist/assets/models-D7aED5Sa.js +2 -0
- package/dist/owletto/dist/assets/new-BMrFy5Qa.js +2 -0
- package/dist/owletto/dist/assets/{new-B5UsLiy6.js → new-ByBhteWA.js} +2 -2
- package/dist/owletto/dist/assets/new-DWp3deoW.js +2 -0
- package/dist/owletto/dist/assets/{oauth-workspace-access-PGyTnW2K.js → oauth-workspace-access-D_5uESuz.js} +2 -2
- package/dist/owletto/dist/assets/{organization-BH8PYlVu.js → organization-DTFoYP4V.js} +2 -2
- package/dist/owletto/dist/assets/peek-pane-content-DF5iGC3c.js +2 -0
- package/dist/owletto/dist/assets/{permissions-CwN_YP3u.js → permissions-C_auqxfP.js} +2 -2
- package/dist/owletto/dist/assets/proposal-review-shell-DsNiavG_.js +2 -0
- package/dist/owletto/dist/assets/public-shell-ready-B2NUI89V.js +2 -0
- package/dist/owletto/dist/assets/{recent-DqdZE_TI.js → recent-3d99S2IE.js} +2 -2
- package/dist/owletto/dist/assets/record-activity-C9KfBkXb.js +2 -0
- package/dist/owletto/dist/assets/record-field-peek-BBZcRuGT.js +2 -0
- package/dist/owletto/dist/assets/record-session-BizRugWs.js +2 -0
- package/dist/owletto/dist/assets/{reset-password-DAvBYkiI.js → reset-password-DqfcSn8M.js} +2 -2
- package/dist/owletto/dist/assets/runs-panel-T1ZxTVz6.js +2 -0
- package/dist/owletto/dist/assets/runs-table-D_8QlCCN.js +2 -0
- package/dist/owletto/dist/assets/schema-value-normalization-CylKX3PK.js +97 -0
- package/dist/owletto/dist/assets/settings-B_ClYztB.js +2 -0
- package/dist/owletto/dist/assets/settings-DgX1-xo7.js +2 -0
- package/dist/owletto/dist/assets/skills-Drw5tcZw.js +2 -0
- package/dist/owletto/dist/assets/{source-record-panels-CRIPMWfN.js → source-record-panels-Cg249m1S.js} +2 -2
- package/dist/owletto/dist/assets/{use-mention-search-DqEykWl_.js → use-mention-search-BYbFvHbJ.js} +2 -2
- package/dist/owletto/dist/assets/view-param-filters-DMSqkN2J.js +2 -0
- package/dist/owletto/dist/index.html +2 -2
- package/dist/server-main.bundle.mjs +14031 -12680
- package/npm-shrinkwrap.json +329 -313
- package/package.json +6 -5
- package/vendor/connector-sdk/dist/browser-handoff-banner.d.ts +39 -0
- package/vendor/connector-sdk/dist/browser-handoff-banner.js +175 -0
- package/vendor/connector-sdk/dist/browser-source-read.d.ts +52 -0
- package/vendor/connector-sdk/dist/browser-source-read.js +107 -0
- package/vendor/connector-sdk/dist/connector-types.d.ts +10 -0
- package/vendor/connector-sdk/dist/index.d.ts +3 -0
- package/vendor/connector-sdk/dist/index.js +2 -0
- package/vendor/connector-sdk/package.json +9 -1
- package/vendor/core/dist/agent-policy.js +0 -3
- package/vendor/core/dist/agent-tooling.d.ts +1 -1
- package/vendor/core/dist/agent-tooling.js +3 -1
- package/vendor/core/dist/capabilities.d.ts +1 -1
- package/vendor/core/dist/capabilities.js +0 -1
- package/vendor/core/dist/connector-query-errors.d.ts +32 -0
- package/vendor/core/dist/connector-query-errors.js +41 -1
- package/vendor/core/dist/contracts/agent-settings.d.ts +6 -2
- package/vendor/core/dist/contracts/agent-settings.js +12 -1
- package/vendor/core/dist/contracts/tools/manage-conversations.js +2 -2
- package/vendor/core/dist/contracts/tools/manage-feeds.d.ts +14 -0
- package/vendor/core/dist/contracts/tools/manage-feeds.js +17 -0
- package/vendor/core/dist/contracts/tools/manage-views.d.ts +53 -234
- package/vendor/core/dist/contracts/tools/manage-views.js +50 -76
- package/vendor/core/dist/contracts/tools/view-attach.d.ts +5 -8
- package/vendor/core/dist/contracts/tools/view-attach.js +14 -31
- package/vendor/core/dist/contracts/tools/view-definition.d.ts +21 -0
- package/vendor/core/dist/contracts/tools/view-definition.js +165 -0
- package/vendor/core/dist/contracts/worker/protocol.d.ts +47 -133
- package/vendor/core/dist/contracts/worker/protocol.js +33 -62
- package/vendor/core/dist/device-pin-tombstones.d.ts +44 -0
- package/vendor/core/dist/device-pin-tombstones.js +57 -0
- package/vendor/core/dist/index.d.ts +3 -2
- package/vendor/core/dist/index.js +3 -1
- package/vendor/core/dist/logger.js +10 -25
- package/vendor/core/dist/suggestions.d.ts +15 -2
- package/vendor/core/dist/suggestions.js +48 -3
- package/vendor/core/dist/types.d.ts +26 -0
- package/vendor/core/dist/types.js +5 -0
- package/vendor/core/dist/utils/diagnostic-scrubber.js +258 -21
- package/vendor/core/dist/worker/wire.d.ts +0 -10
- package/vendor/core/package.json +16 -10
- package/vendor/postgres/cf/src/connection.js +18 -0
- package/vendor/postgres/cjs/src/connection.js +18 -0
- package/vendor/postgres/src/connection.js +18 -0
- package/vendor/views/dist/api.d.ts +71 -17
- package/vendor/views/dist/api.js +200 -35
- package/vendor/views/dist/bridge.d.ts +3 -0
- package/vendor/views/dist/bridge.js +9 -1
- package/vendor/views/dist/components.d.ts +170 -0
- package/vendor/views/dist/components.js +361 -0
- package/vendor/views/dist/index.d.ts +1 -1
- package/vendor/views/package.json +11 -1
- package/dist/owletto/dist/assets/_-CEPl6gU4.js +0 -3
- package/dist/owletto/dist/assets/_-C_zNZben.js +0 -2
- package/dist/owletto/dist/assets/_agentId-CBC_SadO.js +0 -2
- package/dist/owletto/dist/assets/_agentId-QQW91cHX.js +0 -2
- package/dist/owletto/dist/assets/_automationId-YTTNksw6.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey._connectionId-fK0h7RAp.js +0 -2
- package/dist/owletto/dist/assets/_connectorKey.index-C7TPS598.js +0 -2
- package/dist/owletto/dist/assets/_conversationId-CEhxlTIo.js +0 -2
- package/dist/owletto/dist/assets/_eventId-Cl8GSdjg.js +0 -2
- package/dist/owletto/dist/assets/_name-t3oBJ6Zf.js +0 -2
- package/dist/owletto/dist/assets/_owner-cUtGHqSw.js +0 -3
- package/dist/owletto/dist/assets/_shape-bo2lMVCu.js +0 -2
- package/dist/owletto/dist/assets/_skillKey-Dwm4Q4wI.js +0 -2
- package/dist/owletto/dist/assets/_slug-CU1PuHB9.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-Bh6E_NxA.js +0 -2
- package/dist/owletto/dist/assets/_viewKey-D4jKl-Zf.js +0 -2
- package/dist/owletto/dist/assets/activity-route-view-DQglkhXU.js +0 -2
- package/dist/owletto/dist/assets/agent-connect-pages-B6uKvT_X.js +0 -2
- package/dist/owletto/dist/assets/agent-editor-form-oUnIYHd7.js +0 -2
- package/dist/owletto/dist/assets/agent-subpage-shell-B3K_jPYR.js +0 -2
- package/dist/owletto/dist/assets/agent-thread-C8UaUTWc.js +0 -6
- package/dist/owletto/dist/assets/agents-F4mGI2oF.js +0 -2
- package/dist/owletto/dist/assets/agents-workbench-CMyk4PI7.js +0 -2
- package/dist/owletto/dist/assets/app._appId-DH1Qutz6.js +0 -2
- package/dist/owletto/dist/assets/automation-detail-content-CEDNboId.js +0 -2
- package/dist/owletto/dist/assets/automations-F4mGI2oF.js +0 -2
- package/dist/owletto/dist/assets/callback-CU-hb8JB.js +0 -2
- package/dist/owletto/dist/assets/client-rows-EJSKR6z1.js +0 -2
- package/dist/owletto/dist/assets/connect-B2YL6qIK.js +0 -2
- package/dist/owletto/dist/assets/connect._clientId-B6LDmDRV.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId-D_HaKoI1.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId.activity-DQWcUqKM.js +0 -2
- package/dist/owletto/dist/assets/connected._clientId.index-BC3R303A.js +0 -2
- package/dist/owletto/dist/assets/connections-browser-Cnv2iBbZ.js +0 -2
- package/dist/owletto/dist/assets/connector-scope-lists-BKDetNDc.js +0 -2
- package/dist/owletto/dist/assets/connectors-BJnk1z_2.js +0 -2
- package/dist/owletto/dist/assets/create-CUqO6Kfk.js +0 -2
- package/dist/owletto/dist/assets/create-JRFM8mMf.js +0 -2
- package/dist/owletto/dist/assets/create-automation-form-_4vUkrls.js +0 -3
- package/dist/owletto/dist/assets/create-iHcxV0xd.js +0 -2
- package/dist/owletto/dist/assets/create._connectorKey-CCYLEicg.js +0 -2
- package/dist/owletto/dist/assets/deployments-ihkhK1zV.js +0 -2
- package/dist/owletto/dist/assets/device-pin-tombstone-Bz4JHHMK.js +0 -2
- package/dist/owletto/dist/assets/device._deviceId-D4plO3GM.js +0 -2
- package/dist/owletto/dist/assets/entity-options-UJs64GdQ.js +0 -2
- package/dist/owletto/dist/assets/entity-page-Djz6T50J.js +0 -2
- package/dist/owletto/dist/assets/entity-type-page-OznRag6A.js +0 -2
- package/dist/owletto/dist/assets/event-detail-04qOUGIP.js +0 -2
- package/dist/owletto/dist/assets/events-feed-fucGZSJR.js +0 -2
- package/dist/owletto/dist/assets/filter-editors-DCQgGLyR.js +0 -2
- package/dist/owletto/dist/assets/guardrails-molekzAF.js +0 -2
- package/dist/owletto/dist/assets/identity-BJcaG66g.js +0 -2
- package/dist/owletto/dist/assets/index-B04ON9Jv.js +0 -2
- package/dist/owletto/dist/assets/index-BLEcy9-T.css +0 -1
- package/dist/owletto/dist/assets/index-BOsK-K-2.js +0 -2
- package/dist/owletto/dist/assets/index-BOzuAbvi.js +0 -2
- package/dist/owletto/dist/assets/index-Bk1x7A67.js +0 -2
- package/dist/owletto/dist/assets/index-CFnx5huL.js +0 -2
- package/dist/owletto/dist/assets/index-D3s8rhG9.js +0 -2
- package/dist/owletto/dist/assets/index-Dbd1jusf.js +0 -2
- package/dist/owletto/dist/assets/index-DqZuqC08.js +0 -2
- package/dist/owletto/dist/assets/index-Dr-Xg_xO.js +0 -2
- package/dist/owletto/dist/assets/index-KPOvMVa-.js +0 -2
- package/dist/owletto/dist/assets/index-_oPeVpL_.js +0 -7950
- package/dist/owletto/dist/assets/login-QHdxqX-4.js +0 -2
- package/dist/owletto/dist/assets/member-scope-gate-CFbrq1by.js +0 -2
- package/dist/owletto/dist/assets/memory-browse-page-IrIXuZTF.js +0 -103
- package/dist/owletto/dist/assets/models-DnMb3n-Z.js +0 -2
- package/dist/owletto/dist/assets/new-BWo8_Pms.js +0 -2
- package/dist/owletto/dist/assets/new-DpmDXmFI.js +0 -2
- package/dist/owletto/dist/assets/peek-pane-content-B2AFNTzP.js +0 -2
- package/dist/owletto/dist/assets/proposal-review-shell-DKKGu4Ww.js +0 -2
- package/dist/owletto/dist/assets/public-shell-ready-7KYnww6e.js +0 -2
- package/dist/owletto/dist/assets/record-activity-CvgZyCmw.js +0 -2
- package/dist/owletto/dist/assets/renderer-BL6VcwQH.js +0 -97
- package/dist/owletto/dist/assets/runs-BWtc5rmc.js +0 -2
- package/dist/owletto/dist/assets/runs-panel-BO3h5RkS.js +0 -2
- package/dist/owletto/dist/assets/runs-table-DxIiqrSk.js +0 -2
- package/dist/owletto/dist/assets/settings-4Ev-0iNL.js +0 -2
- package/dist/owletto/dist/assets/settings-Crxlwps-.js +0 -2
- package/dist/owletto/dist/assets/skills-D0X430X8.js +0 -2
- package/dist/owletto/dist/assets/status-dot-C5KDvvm9.js +0 -2
- package/dist/owletto/dist/assets/tabs-B4Er9hJj.js +0 -2
- package/dist/owletto/dist/assets/view-param-filters-Cylutoy1.js +0 -2
- package/vendor/core/dist/contracts/worker/device-chat.d.ts +0 -4
- package/vendor/core/dist/contracts/worker/device-chat.js +0 -26
- /package/vendor/postgres/{.bun-tag-f39dafdb2305d504 → .bun-tag-2f292c6554a8475e} +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Single source of truth for the device/connector-worker job protocol:
|
|
5
5
|
* `POST /api/workers/poll`, `/api/workers/complete`, `/complete-action`,
|
|
6
|
-
* `/complete-embeddings`, `/complete-automation`, `/complete-
|
|
6
|
+
* `/complete-embeddings`, `/complete-automation`, `/complete-agent-turn`,
|
|
7
7
|
* `/emit-auth-artifact`, `/poll-auth-signal`, `/stream`, and the chrome-action
|
|
8
8
|
* dispatch.
|
|
9
9
|
*
|
|
@@ -60,7 +60,7 @@ export interface ConnectorHttpResponse {
|
|
|
60
60
|
body: string;
|
|
61
61
|
}
|
|
62
62
|
/** Run kinds the poller can hand back. */
|
|
63
|
-
export declare const RunTypeSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"sync">, import("@sinclair/typebox").TLiteral<"action">, import("@sinclair/typebox").TLiteral<"automation">, import("@sinclair/typebox").TLiteral<"
|
|
63
|
+
export declare const RunTypeSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"sync">, import("@sinclair/typebox").TLiteral<"action">, import("@sinclair/typebox").TLiteral<"automation">, import("@sinclair/typebox").TLiteral<"embed_backfill">, import("@sinclair/typebox").TLiteral<"auth">, import("@sinclair/typebox").TLiteral<"agent_turn">]>;
|
|
64
64
|
/** Categorized run exit reason on the failed-run path. */
|
|
65
65
|
export declare const WorkerExitReasonSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ok">, import("@sinclair/typebox").TLiteral<"cancelled">, import("@sinclair/typebox").TLiteral<"error_message">, import("@sinclair/typebox").TLiteral<"timeout">, import("@sinclair/typebox").TLiteral<"oom">, import("@sinclair/typebox").TLiteral<"crash">]>;
|
|
66
66
|
/**
|
|
@@ -261,7 +261,7 @@ export declare const AutomationPollEventSchema: import("@sinclair/typebox").TObj
|
|
|
261
261
|
fired_at: import("@sinclair/typebox").TString;
|
|
262
262
|
payload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
263
263
|
}>;
|
|
264
|
-
/** Identity context for a device-local CLI run
|
|
264
|
+
/** Identity context for a device-local Automation CLI run. */
|
|
265
265
|
export declare const AutomationPollContextSchema: import("@sinclair/typebox").TObject<{
|
|
266
266
|
device: import("@sinclair/typebox").TObject<{
|
|
267
267
|
worker_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -327,66 +327,6 @@ export declare const AutomationPollPayloadSchema: import("@sinclair/typebox").TO
|
|
|
327
327
|
}>>;
|
|
328
328
|
}>;
|
|
329
329
|
}>;
|
|
330
|
-
/** One bounded prior turn shipped to a stateless device CLI. */
|
|
331
|
-
export declare const DeviceChatHistoryMessageSchema: import("@sinclair/typebox").TObject<{
|
|
332
|
-
role: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"user">, import("@sinclair/typebox").TLiteral<"assistant">]>;
|
|
333
|
-
content: import("@sinclair/typebox").TString;
|
|
334
|
-
}>;
|
|
335
|
-
/**
|
|
336
|
-
* Cap on the device chat envelope's `ephemeral_context`. Exported because the
|
|
337
|
-
* producer must agree with it BEFORE enqueueing: the server-side planner keeps
|
|
338
|
-
* an Automation whose composed instructions exceed this bound on the durable
|
|
339
|
-
* background lane rather than shipping a device turn the poll route would
|
|
340
|
-
* silently truncate.
|
|
341
|
-
*/
|
|
342
|
-
export declare const DEVICE_CHAT_MAX_CONTEXT_LENGTH = 2048;
|
|
343
|
-
/** Device-local chat execution metadata. Conversation ownership stays with `agent.id`. */
|
|
344
|
-
export declare const DeviceChatPollPayloadSchema: import("@sinclair/typebox").TObject<{
|
|
345
|
-
chat: import("@sinclair/typebox").TObject<{
|
|
346
|
-
agent_kind: import("@sinclair/typebox").TString;
|
|
347
|
-
execution_config: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
348
|
-
/** Wall-clock cap in seconds; the dispatcher enforces it by SIGTERM. */
|
|
349
|
-
timeout_seconds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
350
|
-
/** Per-run dollar ceiling (claude-only today). */
|
|
351
|
-
max_budget_usd: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
352
|
-
/** Model alias/id (`--model` / `-m`). */
|
|
353
|
-
model: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
354
|
-
/** Tool permission mode (`--permission-mode`). */
|
|
355
|
-
permission_mode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
356
|
-
/** Reasoning effort accepted by the selected CLI and model. */
|
|
357
|
-
effort: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
358
|
-
}>>;
|
|
359
|
-
message: import("@sinclair/typebox").TString;
|
|
360
|
-
ephemeral_context: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
361
|
-
history: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
362
|
-
role: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"user">, import("@sinclair/typebox").TLiteral<"assistant">]>;
|
|
363
|
-
content: import("@sinclair/typebox").TString;
|
|
364
|
-
}>>;
|
|
365
|
-
agent: import("@sinclair/typebox").TObject<{
|
|
366
|
-
id: import("@sinclair/typebox").TString;
|
|
367
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
368
|
-
identity_md: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
369
|
-
soul_md: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
370
|
-
user_md: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
371
|
-
}>;
|
|
372
|
-
}>;
|
|
373
|
-
context: import("@sinclair/typebox").TObject<{
|
|
374
|
-
device: import("@sinclair/typebox").TObject<{
|
|
375
|
-
worker_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
376
|
-
}>;
|
|
377
|
-
user: import("@sinclair/typebox").TObject<{
|
|
378
|
-
user_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
379
|
-
}>;
|
|
380
|
-
agent_session: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
381
|
-
conversation_id: import("@sinclair/typebox").TString;
|
|
382
|
-
mcp_url: import("@sinclair/typebox").TString;
|
|
383
|
-
token: import("@sinclair/typebox").TString;
|
|
384
|
-
expires_at: import("@sinclair/typebox").TNumber;
|
|
385
|
-
/** Exact same-device ACP session to continue; never discovered by listing sessions. */
|
|
386
|
-
resume_session_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
387
|
-
}>>;
|
|
388
|
-
}>;
|
|
389
|
-
}>;
|
|
390
330
|
export declare const AgentTurnPollPayloadSchema: import("@sinclair/typebox").TObject<{
|
|
391
331
|
turn: import("@sinclair/typebox").TObject<{
|
|
392
332
|
agent_id: import("@sinclair/typebox").TString;
|
|
@@ -502,6 +442,14 @@ export declare const AgentTurnPollPayloadSchema: import("@sinclair/typebox").TOb
|
|
|
502
442
|
* stays off unless the caller explicitly requests an effort level.
|
|
503
443
|
*/
|
|
504
444
|
reasoning: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
445
|
+
/**
|
|
446
|
+
* pi-ai's `Model.thinkingLevelMap`: the provider's name for each
|
|
447
|
+
* thinking level, `null` where the model does not serve that level.
|
|
448
|
+
* gpt-5-mini maps `off` to `null` because it cannot turn reasoning off;
|
|
449
|
+
* without the map pi-ai sends `effort: "none"` and OpenAI rejects it.
|
|
450
|
+
* Absent → pi-ai's own defaults.
|
|
451
|
+
*/
|
|
452
|
+
thinking_level_map: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>>;
|
|
505
453
|
/**
|
|
506
454
|
* The modalities this model accepts, in pi-ai's own `Model.input`
|
|
507
455
|
* vocabulary and resolved from pi-ai's model registry — NOT guessed
|
|
@@ -549,7 +497,7 @@ export declare const AgentTurnPollPayloadSchema: import("@sinclair/typebox").TOb
|
|
|
549
497
|
}>>;
|
|
550
498
|
/**
|
|
551
499
|
* The gateway tools available for this turn, by NAME only —
|
|
552
|
-
* `ask_user`, `send_message
|
|
500
|
+
* `ask_user`, `send_message` and the rest of
|
|
553
501
|
* `@lobu/plugin-conversations`. The guest runs that package's own
|
|
554
502
|
* implementation, so the route, the request body and the schema live
|
|
555
503
|
* there and never on this wire; sending a name the package does not
|
|
@@ -581,6 +529,12 @@ export declare const AgentTurnPollPayloadSchema: import("@sinclair/typebox").TOb
|
|
|
581
529
|
conversation_id: import("@sinclair/typebox").TString;
|
|
582
530
|
platform: import("@sinclair/typebox").TString;
|
|
583
531
|
}>>;
|
|
532
|
+
/**
|
|
533
|
+
* Ask the turn's own model for follow-up chips after it answers and
|
|
534
|
+
* return them with the completion. Set by the gateway only for a
|
|
535
|
+
* human-facing turn; absent → no chips.
|
|
536
|
+
*/
|
|
537
|
+
follow_ups: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<true>>;
|
|
584
538
|
}>>;
|
|
585
539
|
/**
|
|
586
540
|
* Long-term memory for this turn: `@lobu/plugin-memory`'s recall hook
|
|
@@ -700,7 +654,7 @@ export declare const PollResponseSchema: import("@sinclair/typebox").TObject<{
|
|
|
700
654
|
urls: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
701
655
|
}>>>;
|
|
702
656
|
run_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
703
|
-
run_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"sync">, import("@sinclair/typebox").TLiteral<"action">, import("@sinclair/typebox").TLiteral<"automation">, import("@sinclair/typebox").TLiteral<"
|
|
657
|
+
run_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"sync">, import("@sinclair/typebox").TLiteral<"action">, import("@sinclair/typebox").TLiteral<"automation">, import("@sinclair/typebox").TLiteral<"embed_backfill">, import("@sinclair/typebox").TLiteral<"auth">, import("@sinclair/typebox").TLiteral<"agent_turn">]>>;
|
|
704
658
|
auth_profile_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
705
659
|
previous_credentials: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TNull]>>;
|
|
706
660
|
connector_key: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -749,9 +703,9 @@ export declare const PollResponseSchema: import("@sinclair/typebox").TObject<{
|
|
|
749
703
|
/** Owning org of a claimed device-local CLI run. */
|
|
750
704
|
organization_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
751
705
|
/**
|
|
752
|
-
*
|
|
753
|
-
* gateway composes the prompt context and the
|
|
754
|
-
* matching completion endpoint. No connector code
|
|
706
|
+
* Envelope for an `automation` run (a device-local CLI) or an `agent_turn`
|
|
707
|
+
* run. The gateway composes the prompt context and the worker reports
|
|
708
|
+
* through the matching completion endpoint. No connector code is shipped.
|
|
755
709
|
*/
|
|
756
710
|
payload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
757
711
|
automation: import("@sinclair/typebox").TObject<{
|
|
@@ -795,51 +749,6 @@ export declare const PollResponseSchema: import("@sinclair/typebox").TObject<{
|
|
|
795
749
|
resume_session_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
796
750
|
}>>;
|
|
797
751
|
}>;
|
|
798
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
799
|
-
chat: import("@sinclair/typebox").TObject<{
|
|
800
|
-
agent_kind: import("@sinclair/typebox").TString;
|
|
801
|
-
execution_config: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
802
|
-
/** Wall-clock cap in seconds; the dispatcher enforces it by SIGTERM. */
|
|
803
|
-
timeout_seconds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
804
|
-
/** Per-run dollar ceiling (claude-only today). */
|
|
805
|
-
max_budget_usd: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
806
|
-
/** Model alias/id (`--model` / `-m`). */
|
|
807
|
-
model: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
808
|
-
/** Tool permission mode (`--permission-mode`). */
|
|
809
|
-
permission_mode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
810
|
-
/** Reasoning effort accepted by the selected CLI and model. */
|
|
811
|
-
effort: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
812
|
-
}>>;
|
|
813
|
-
message: import("@sinclair/typebox").TString;
|
|
814
|
-
ephemeral_context: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
815
|
-
history: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
816
|
-
role: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"user">, import("@sinclair/typebox").TLiteral<"assistant">]>;
|
|
817
|
-
content: import("@sinclair/typebox").TString;
|
|
818
|
-
}>>;
|
|
819
|
-
agent: import("@sinclair/typebox").TObject<{
|
|
820
|
-
id: import("@sinclair/typebox").TString;
|
|
821
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
822
|
-
identity_md: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
823
|
-
soul_md: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
824
|
-
user_md: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
825
|
-
}>;
|
|
826
|
-
}>;
|
|
827
|
-
context: import("@sinclair/typebox").TObject<{
|
|
828
|
-
device: import("@sinclair/typebox").TObject<{
|
|
829
|
-
worker_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
830
|
-
}>;
|
|
831
|
-
user: import("@sinclair/typebox").TObject<{
|
|
832
|
-
user_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
833
|
-
}>;
|
|
834
|
-
agent_session: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
835
|
-
conversation_id: import("@sinclair/typebox").TString;
|
|
836
|
-
mcp_url: import("@sinclair/typebox").TString;
|
|
837
|
-
token: import("@sinclair/typebox").TString;
|
|
838
|
-
expires_at: import("@sinclair/typebox").TNumber;
|
|
839
|
-
/** Exact same-device ACP session to continue; never discovered by listing sessions. */
|
|
840
|
-
resume_session_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
841
|
-
}>>;
|
|
842
|
-
}>;
|
|
843
752
|
}>, import("@sinclair/typebox").TObject<{
|
|
844
753
|
turn: import("@sinclair/typebox").TObject<{
|
|
845
754
|
agent_id: import("@sinclair/typebox").TString;
|
|
@@ -955,6 +864,14 @@ export declare const PollResponseSchema: import("@sinclair/typebox").TObject<{
|
|
|
955
864
|
* stays off unless the caller explicitly requests an effort level.
|
|
956
865
|
*/
|
|
957
866
|
reasoning: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
867
|
+
/**
|
|
868
|
+
* pi-ai's `Model.thinkingLevelMap`: the provider's name for each
|
|
869
|
+
* thinking level, `null` where the model does not serve that level.
|
|
870
|
+
* gpt-5-mini maps `off` to `null` because it cannot turn reasoning off;
|
|
871
|
+
* without the map pi-ai sends `effort: "none"` and OpenAI rejects it.
|
|
872
|
+
* Absent → pi-ai's own defaults.
|
|
873
|
+
*/
|
|
874
|
+
thinking_level_map: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>>;
|
|
958
875
|
/**
|
|
959
876
|
* The modalities this model accepts, in pi-ai's own `Model.input`
|
|
960
877
|
* vocabulary and resolved from pi-ai's model registry — NOT guessed
|
|
@@ -1002,7 +919,7 @@ export declare const PollResponseSchema: import("@sinclair/typebox").TObject<{
|
|
|
1002
919
|
}>>;
|
|
1003
920
|
/**
|
|
1004
921
|
* The gateway tools available for this turn, by NAME only —
|
|
1005
|
-
* `ask_user`, `send_message
|
|
922
|
+
* `ask_user`, `send_message` and the rest of
|
|
1006
923
|
* `@lobu/plugin-conversations`. The guest runs that package's own
|
|
1007
924
|
* implementation, so the route, the request body and the schema live
|
|
1008
925
|
* there and never on this wire; sending a name the package does not
|
|
@@ -1034,6 +951,12 @@ export declare const PollResponseSchema: import("@sinclair/typebox").TObject<{
|
|
|
1034
951
|
conversation_id: import("@sinclair/typebox").TString;
|
|
1035
952
|
platform: import("@sinclair/typebox").TString;
|
|
1036
953
|
}>>;
|
|
954
|
+
/**
|
|
955
|
+
* Ask the turn's own model for follow-up chips after it answers and
|
|
956
|
+
* return them with the completion. Set by the gateway only for a
|
|
957
|
+
* human-facing turn; absent → no chips.
|
|
958
|
+
*/
|
|
959
|
+
follow_ups: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<true>>;
|
|
1037
960
|
}>>;
|
|
1038
961
|
/**
|
|
1039
962
|
* Long-term memory for this turn: `@lobu/plugin-memory`'s recall hook
|
|
@@ -1224,8 +1147,8 @@ export declare const CompleteAuthRequestSchema: import("@sinclair/typebox").TObj
|
|
|
1224
1147
|
status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"success">, import("@sinclair/typebox").TLiteral<"failed">]>;
|
|
1225
1148
|
run_id: import("@sinclair/typebox").TInteger;
|
|
1226
1149
|
worker_id: import("@sinclair/typebox").TString;
|
|
1227
|
-
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
1228
1150
|
credentials: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
1151
|
+
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
1229
1152
|
output_tail: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1230
1153
|
exit_code: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
1231
1154
|
exit_signal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
@@ -1264,20 +1187,6 @@ export declare const CompleteAutomationResponseSchema: import("@sinclair/typebox
|
|
|
1264
1187
|
run_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
1265
1188
|
idempotent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>>;
|
|
1266
1189
|
}>;
|
|
1267
|
-
/** `POST .../complete-chat` terminal report for a `chat_message` turn. */
|
|
1268
|
-
export declare const CompleteDeviceChatRequestSchema: import("@sinclair/typebox").TObject<{
|
|
1269
|
-
worker_id: import("@sinclair/typebox").TString;
|
|
1270
|
-
output: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1271
|
-
error: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
1272
|
-
exit_code: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
1273
|
-
exit_signal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
1274
|
-
exit_reason: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ok">, import("@sinclair/typebox").TLiteral<"cancelled">, import("@sinclair/typebox").TLiteral<"error_message">, import("@sinclair/typebox").TLiteral<"timeout">, import("@sinclair/typebox").TLiteral<"oom">, import("@sinclair/typebox").TLiteral<"crash">]>>;
|
|
1275
|
-
}>;
|
|
1276
|
-
export declare const CompleteDeviceChatResponseSchema: import("@sinclair/typebox").TObject<{
|
|
1277
|
-
ok: import("@sinclair/typebox").TBoolean;
|
|
1278
|
-
status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"completed">, import("@sinclair/typebox").TLiteral<"failed">]>;
|
|
1279
|
-
idempotent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
1280
|
-
}>;
|
|
1281
1190
|
/**
|
|
1282
1191
|
* `POST /api/workers/complete-agent-turn`.
|
|
1283
1192
|
*
|
|
@@ -1406,6 +1315,15 @@ export declare const CompleteAgentTurnRequestSchema: import("@sinclair/typebox")
|
|
|
1406
1315
|
* (`chat-response-bridge`) already acts on it.
|
|
1407
1316
|
*/
|
|
1408
1317
|
replied_in_band: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
1318
|
+
/**
|
|
1319
|
+
* Follow-up chips for the owner's answer, proposed by the same model after it
|
|
1320
|
+
* answered (`tools.follow_ups`). The worker is untrusted, so the completion
|
|
1321
|
+
* route re-sanitizes them; the gateway delivers them with the reply.
|
|
1322
|
+
*/
|
|
1323
|
+
suggestions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
1324
|
+
title: import("@sinclair/typebox").TString;
|
|
1325
|
+
message: import("@sinclair/typebox").TString;
|
|
1326
|
+
}>>>;
|
|
1409
1327
|
/**
|
|
1410
1328
|
* Tool traces that finished too late to ride a heartbeat, oldest first.
|
|
1411
1329
|
*
|
|
@@ -1638,12 +1556,8 @@ export type AutomationPollMeta = Static<typeof AutomationPollMetaSchema>;
|
|
|
1638
1556
|
export type AutomationPollEvent = Static<typeof AutomationPollEventSchema>;
|
|
1639
1557
|
export type AutomationPollContext = Static<typeof AutomationPollContextSchema>;
|
|
1640
1558
|
export type AutomationPollPayload = Static<typeof AutomationPollPayloadSchema>;
|
|
1641
|
-
export type DeviceChatHistoryMessage = Static<typeof DeviceChatHistoryMessageSchema>;
|
|
1642
|
-
export type DeviceChatPollPayload = Static<typeof DeviceChatPollPayloadSchema>;
|
|
1643
1559
|
export type CompleteAutomationRequest = Static<typeof CompleteAutomationRequestSchema>;
|
|
1644
1560
|
export type CompleteAutomationResponse = Static<typeof CompleteAutomationResponseSchema>;
|
|
1645
|
-
export type CompleteDeviceChatRequest = Static<typeof CompleteDeviceChatRequestSchema>;
|
|
1646
|
-
export type CompleteDeviceChatResponse = Static<typeof CompleteDeviceChatResponseSchema>;
|
|
1647
1561
|
export type AgentTurnPollPayload = Static<typeof AgentTurnPollPayloadSchema>;
|
|
1648
1562
|
export type CompleteAgentTurnRequest = Static<typeof CompleteAgentTurnRequestSchema>;
|
|
1649
1563
|
export type CompleteAgentTurnResponse = Static<typeof CompleteAgentTurnResponseSchema>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Single source of truth for the device/connector-worker job protocol:
|
|
6
6
|
* `POST /api/workers/poll`, `/api/workers/complete`, `/complete-action`,
|
|
7
|
-
* `/complete-embeddings`, `/complete-automation`, `/complete-
|
|
7
|
+
* `/complete-embeddings`, `/complete-automation`, `/complete-agent-turn`,
|
|
8
8
|
* `/emit-auth-artifact`, `/poll-auth-signal`, `/stream`, and the chrome-action
|
|
9
9
|
* dispatch.
|
|
10
10
|
*
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
* not change that boundary, it only types what already crosses it.
|
|
27
27
|
*/
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ExecuteConnectorOperationRequestSchema = exports.HeartbeatRequestSchema = exports.AGENT_TURN_BRIDGE_BYTES = exports.TURN_DELTA_MAX_CHARS = exports.PollAuthSignalResponseSchema = exports.PollAuthSignalRequestSchema = exports.EmitAuthArtifactRequestSchema = exports.CompleteAgentTurnResponseSchema = exports.CompleteAgentTurnRequestSchema = exports.AGENT_TURN_INPUT_MAX = exports.TURN_TOOL_EVENT_QUEUE_MAX = exports.TurnToolEventSchema = exports.TURN_TOOL_OUTPUT_MAX_CHARS = exports.
|
|
30
|
-
exports.HeartbeatResponseSchema = exports.DispatchChromeActionResponseSchema = exports.DispatchChromeActionRequestSchema = void 0;
|
|
29
|
+
exports.HeartbeatResponseSchema = exports.DispatchChromeActionResponseSchema = exports.DispatchChromeActionRequestSchema = exports.ExecuteConnectorOperationRequestSchema = exports.HeartbeatRequestSchema = exports.AGENT_TURN_BRIDGE_BYTES = exports.TURN_DELTA_MAX_CHARS = exports.PollAuthSignalResponseSchema = exports.PollAuthSignalRequestSchema = exports.EmitAuthArtifactRequestSchema = exports.CompleteAgentTurnResponseSchema = exports.CompleteAgentTurnRequestSchema = exports.AGENT_TURN_INPUT_MAX = exports.TURN_TOOL_EVENT_QUEUE_MAX = exports.TurnToolEventSchema = exports.TURN_TOOL_OUTPUT_MAX_CHARS = exports.CompleteAutomationResponseSchema = exports.CompleteAutomationRequestSchema = exports.CompleteAuthRequestSchema = exports.CompleteEmbeddingsRequestSchema = exports.EmbeddingEntrySchema = exports.EmbedEventSchema = exports.CompleteActionRequestSchema = exports.CompleteRequestSchema = exports.StreamBatchSchema = exports.ContentItemSchema = exports.ActivatePageResponseSchema = exports.ActivatePageRequestSchema = exports.PollResponseSchema = exports.FeedSourceAckSchema = exports.AgentTurnPollPayloadSchema = exports.AutomationPollPayloadSchema = exports.AutomationPollContextSchema = exports.AutomationPollEventSchema = exports.AutomationPollMetaSchema = exports.AutomationExecutionConfigSchema = exports.PollRequestSchema = exports.WORKER_POLL_MAX_WAIT_SECONDS = exports.FeedNotificationSchema = exports.EXECUTION_BACKENDS = exports.OAuthCredentialsSchema = exports.WorkerExitDiagnosticsSchema = exports.WorkerExitReasonSchema = exports.RunTypeSchema = exports.ConnectorHttpRequestSchema = exports.SourceAttributionSchema = exports.CONNECTOR_HTTP_MAX_BYTES = exports.CONNECTOR_HTTP_AUTH_CAPABILITY = void 0;
|
|
31
30
|
exports.defaultBackendCapacity = defaultBackendCapacity;
|
|
32
31
|
const typebox_1 = require("@sinclair/typebox");
|
|
32
|
+
const suggestions_1 = require("../../suggestions");
|
|
33
33
|
const manage_operations_1 = require("../tools/manage-operations");
|
|
34
34
|
exports.CONNECTOR_HTTP_AUTH_CAPABILITY = "http_auth";
|
|
35
35
|
exports.CONNECTOR_HTTP_MAX_BYTES = 4 * 1024 * 1024;
|
|
@@ -81,15 +81,13 @@ exports.RunTypeSchema = typebox_1.Type.Union([
|
|
|
81
81
|
typebox_1.Type.Literal("sync"),
|
|
82
82
|
typebox_1.Type.Literal("action"),
|
|
83
83
|
typebox_1.Type.Literal("automation"),
|
|
84
|
-
typebox_1.Type.Literal("chat_message"),
|
|
85
84
|
typebox_1.Type.Literal("embed_backfill"),
|
|
86
85
|
typebox_1.Type.Literal("auth"),
|
|
87
86
|
/**
|
|
88
87
|
* One conversation turn executed as one isolate job, claimed only by a fleet
|
|
89
88
|
* worker that advertises the lane and run through `IsolateExecutor`. Distinct
|
|
90
|
-
* from `chat_message`, a lobu-queue row the gateway drains
|
|
91
|
-
*
|
|
92
|
-
* this same poll. A daemon that predates this lane must never claim an
|
|
89
|
+
* from `chat_message`, a lobu-queue row the gateway drains itself and never
|
|
90
|
+
* hands to a poller. A daemon that predates this lane must never claim an
|
|
93
91
|
* `agent_turn`: its dispatch would fall through to a connector sync.
|
|
94
92
|
*/
|
|
95
93
|
typebox_1.Type.Literal("agent_turn"),
|
|
@@ -274,7 +272,7 @@ exports.AutomationPollEventSchema = typebox_1.Type.Object({
|
|
|
274
272
|
fired_at: typebox_1.Type.String(),
|
|
275
273
|
payload: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown())),
|
|
276
274
|
});
|
|
277
|
-
/** Identity context for a device-local CLI run
|
|
275
|
+
/** Identity context for a device-local Automation CLI run. */
|
|
278
276
|
exports.AutomationPollContextSchema = typebox_1.Type.Object({
|
|
279
277
|
device: typebox_1.Type.Object({ worker_id: typebox_1.Type.Optional(typebox_1.Type.String()) }),
|
|
280
278
|
user: typebox_1.Type.Object({
|
|
@@ -311,37 +309,6 @@ exports.AutomationPollPayloadSchema = typebox_1.Type.Object({
|
|
|
311
309
|
event: exports.AutomationPollEventSchema,
|
|
312
310
|
context: exports.AutomationPollContextSchema,
|
|
313
311
|
});
|
|
314
|
-
/** One bounded prior turn shipped to a stateless device CLI. */
|
|
315
|
-
exports.DeviceChatHistoryMessageSchema = typebox_1.Type.Object({
|
|
316
|
-
role: typebox_1.Type.Union([typebox_1.Type.Literal("user"), typebox_1.Type.Literal("assistant")]),
|
|
317
|
-
content: typebox_1.Type.String({ maxLength: 16000 }),
|
|
318
|
-
});
|
|
319
|
-
/**
|
|
320
|
-
* Cap on the device chat envelope's `ephemeral_context`. Exported because the
|
|
321
|
-
* producer must agree with it BEFORE enqueueing: the server-side planner keeps
|
|
322
|
-
* an Automation whose composed instructions exceed this bound on the durable
|
|
323
|
-
* background lane rather than shipping a device turn the poll route would
|
|
324
|
-
* silently truncate.
|
|
325
|
-
*/
|
|
326
|
-
exports.DEVICE_CHAT_MAX_CONTEXT_LENGTH = 2048;
|
|
327
|
-
/** Device-local chat execution metadata. Conversation ownership stays with `agent.id`. */
|
|
328
|
-
exports.DeviceChatPollPayloadSchema = typebox_1.Type.Object({
|
|
329
|
-
chat: typebox_1.Type.Object({
|
|
330
|
-
agent_kind: typebox_1.Type.String({ minLength: 1, maxLength: 64 }),
|
|
331
|
-
execution_config: typebox_1.Type.Optional(exports.AutomationExecutionConfigSchema),
|
|
332
|
-
message: typebox_1.Type.String({ maxLength: 32000 }),
|
|
333
|
-
ephemeral_context: typebox_1.Type.Optional(typebox_1.Type.String({ maxLength: exports.DEVICE_CHAT_MAX_CONTEXT_LENGTH })),
|
|
334
|
-
history: typebox_1.Type.Array(exports.DeviceChatHistoryMessageSchema, { maxItems: 12 }),
|
|
335
|
-
agent: typebox_1.Type.Object({
|
|
336
|
-
id: typebox_1.Type.String({ minLength: 1 }),
|
|
337
|
-
name: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
338
|
-
identity_md: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
339
|
-
soul_md: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
340
|
-
user_md: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
341
|
-
}),
|
|
342
|
-
}),
|
|
343
|
-
context: exports.AutomationPollContextSchema,
|
|
344
|
-
});
|
|
345
312
|
/**
|
|
346
313
|
* `payload` of an agent-turn poll response.
|
|
347
314
|
*
|
|
@@ -505,6 +472,14 @@ exports.AgentTurnPollPayloadSchema = typebox_1.Type.Object({
|
|
|
505
472
|
* stays off unless the caller explicitly requests an effort level.
|
|
506
473
|
*/
|
|
507
474
|
reasoning: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
|
|
475
|
+
/**
|
|
476
|
+
* pi-ai's `Model.thinkingLevelMap`: the provider's name for each
|
|
477
|
+
* thinking level, `null` where the model does not serve that level.
|
|
478
|
+
* gpt-5-mini maps `off` to `null` because it cannot turn reasoning off;
|
|
479
|
+
* without the map pi-ai sends `effort: "none"` and OpenAI rejects it.
|
|
480
|
+
* Absent → pi-ai's own defaults.
|
|
481
|
+
*/
|
|
482
|
+
thinking_level_map: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]))),
|
|
508
483
|
/**
|
|
509
484
|
* The modalities this model accepts, in pi-ai's own `Model.input`
|
|
510
485
|
* vocabulary and resolved from pi-ai's model registry — NOT guessed
|
|
@@ -560,7 +535,7 @@ exports.AgentTurnPollPayloadSchema = typebox_1.Type.Object({
|
|
|
560
535
|
remote_runtime: typebox_1.Type.Optional(typebox_1.Type.Object({ provider_id: typebox_1.Type.String({ minLength: 1 }) })),
|
|
561
536
|
/**
|
|
562
537
|
* The gateway tools available for this turn, by NAME only —
|
|
563
|
-
* `ask_user`, `send_message
|
|
538
|
+
* `ask_user`, `send_message` and the rest of
|
|
564
539
|
* `@lobu/plugin-conversations`. The guest runs that package's own
|
|
565
540
|
* implementation, so the route, the request body and the schema live
|
|
566
541
|
* there and never on this wire; sending a name the package does not
|
|
@@ -592,6 +567,12 @@ exports.AgentTurnPollPayloadSchema = typebox_1.Type.Object({
|
|
|
592
567
|
conversation_id: typebox_1.Type.String({ minLength: 1 }),
|
|
593
568
|
platform: typebox_1.Type.String({ minLength: 1 }),
|
|
594
569
|
})),
|
|
570
|
+
/**
|
|
571
|
+
* Ask the turn's own model for follow-up chips after it answers and
|
|
572
|
+
* return them with the completion. Set by the gateway only for a
|
|
573
|
+
* human-facing turn; absent → no chips.
|
|
574
|
+
*/
|
|
575
|
+
follow_ups: typebox_1.Type.Optional(typebox_1.Type.Literal(true)),
|
|
595
576
|
})),
|
|
596
577
|
/**
|
|
597
578
|
* Long-term memory for this turn: `@lobu/plugin-memory`'s recall hook
|
|
@@ -724,15 +705,11 @@ exports.PollResponseSchema = typebox_1.Type.Object({
|
|
|
724
705
|
/** Owning org of a claimed device-local CLI run. */
|
|
725
706
|
organization_id: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
726
707
|
/**
|
|
727
|
-
*
|
|
728
|
-
* gateway composes the prompt context and the
|
|
729
|
-
* matching completion endpoint. No connector code
|
|
708
|
+
* Envelope for an `automation` run (a device-local CLI) or an `agent_turn`
|
|
709
|
+
* run. The gateway composes the prompt context and the worker reports
|
|
710
|
+
* through the matching completion endpoint. No connector code is shipped.
|
|
730
711
|
*/
|
|
731
|
-
payload: typebox_1.Type.Optional(typebox_1.Type.Union([
|
|
732
|
-
exports.AutomationPollPayloadSchema,
|
|
733
|
-
exports.DeviceChatPollPayloadSchema,
|
|
734
|
-
exports.AgentTurnPollPayloadSchema,
|
|
735
|
-
])),
|
|
712
|
+
payload: typebox_1.Type.Optional(typebox_1.Type.Union([exports.AutomationPollPayloadSchema, exports.AgentTurnPollPayloadSchema])),
|
|
736
713
|
});
|
|
737
714
|
exports.ActivatePageRequestSchema = typebox_1.Type.Object({
|
|
738
715
|
worker_id: typebox_1.Type.String({ minLength: 1 }),
|
|
@@ -879,20 +856,6 @@ exports.CompleteAutomationResponseSchema = typebox_1.Type.Object({
|
|
|
879
856
|
run_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Integer(), typebox_1.Type.Null()])),
|
|
880
857
|
idempotent: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Boolean(), typebox_1.Type.Null()])),
|
|
881
858
|
});
|
|
882
|
-
/** `POST .../complete-chat` terminal report for a `chat_message` turn. */
|
|
883
|
-
exports.CompleteDeviceChatRequestSchema = typebox_1.Type.Object({
|
|
884
|
-
worker_id: typebox_1.Type.String(),
|
|
885
|
-
output: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
886
|
-
error: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
|
|
887
|
-
exit_code: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Integer(), typebox_1.Type.Null()])),
|
|
888
|
-
exit_signal: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
|
|
889
|
-
exit_reason: typebox_1.Type.Optional(exports.WorkerExitReasonSchema),
|
|
890
|
-
});
|
|
891
|
-
exports.CompleteDeviceChatResponseSchema = typebox_1.Type.Object({
|
|
892
|
-
ok: typebox_1.Type.Boolean(),
|
|
893
|
-
status: typebox_1.Type.Union([typebox_1.Type.Literal("completed"), typebox_1.Type.Literal("failed")]),
|
|
894
|
-
idempotent: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
|
|
895
|
-
});
|
|
896
859
|
/**
|
|
897
860
|
* `POST /api/workers/complete-agent-turn`.
|
|
898
861
|
*
|
|
@@ -1021,6 +984,14 @@ exports.CompleteAgentTurnRequestSchema = typebox_1.Type.Object({
|
|
|
1021
984
|
* (`chat-response-bridge`) already acts on it.
|
|
1022
985
|
*/
|
|
1023
986
|
replied_in_band: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
|
|
987
|
+
/**
|
|
988
|
+
* Follow-up chips for the owner's answer, proposed by the same model after it
|
|
989
|
+
* answered (`tools.follow_ups`). The worker is untrusted, so the completion
|
|
990
|
+
* route re-sanitizes them; the gateway delivers them with the reply.
|
|
991
|
+
*/
|
|
992
|
+
suggestions: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Object({ title: typebox_1.Type.String(), message: typebox_1.Type.String() }), {
|
|
993
|
+
maxItems: suggestions_1.SUGGESTION_LIMITS.maxPrompts,
|
|
994
|
+
})),
|
|
1024
995
|
/**
|
|
1025
996
|
* Tool traces that finished too late to ride a heartbeat, oldest first.
|
|
1026
997
|
*
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Device-pin tombstones on `connections.error_message`.
|
|
3
|
+
*
|
|
4
|
+
* DELETE /api/me/devices and PATCH device org-move un-pin connections and
|
|
5
|
+
* stamp a fixed error string so the UI can explain why a connector stopped.
|
|
6
|
+
* When a device re-registers / is re-pinned, every restore path MUST clear
|
|
7
|
+
* those strings — otherwise the connection is `active` + green while the
|
|
8
|
+
* header still shows red "Device was removed".
|
|
9
|
+
*
|
|
10
|
+
* Single source of truth for the stamp/clear literals and the live-pin
|
|
11
|
+
* predicate. The gateway (`packages/server/src/utils/device-pin-tombstones.ts`,
|
|
12
|
+
* which adds the DB clear) and the Owletto client
|
|
13
|
+
* (`packages/owletto/src/lib/device-pin-tombstone.ts`, which adds the display
|
|
14
|
+
* mask) both re-export this module. Keep stamp and clear sites on these exact
|
|
15
|
+
* literals.
|
|
16
|
+
*/
|
|
17
|
+
/** Exact `connections.error_message` values written when a device pin is torn down. */
|
|
18
|
+
export declare const DEVICE_PIN_TOMBSTONE_MESSAGES: readonly ["Device was removed", "Device was moved to another workspace"];
|
|
19
|
+
export type DevicePinTombstoneMessage = (typeof DEVICE_PIN_TOMBSTONE_MESSAGES)[number];
|
|
20
|
+
export declare const DEVICE_REMOVED_TOMBSTONE: DevicePinTombstoneMessage;
|
|
21
|
+
export declare const DEVICE_MOVED_TOMBSTONE: DevicePinTombstoneMessage;
|
|
22
|
+
export declare function isDevicePinTombstone(message: string | null | undefined): message is DevicePinTombstoneMessage;
|
|
23
|
+
/**
|
|
24
|
+
* True when a listed connection still has a live device_workers row for its pin
|
|
25
|
+
* (join populated `device_last_seen_at` / handle). Tombstone should not be shown.
|
|
26
|
+
*/
|
|
27
|
+
export declare function connectionHasLiveDevicePin(row: {
|
|
28
|
+
device_worker_id?: string | null;
|
|
29
|
+
device_last_seen_at?: string | Date | null;
|
|
30
|
+
device_worker_handle?: string | null;
|
|
31
|
+
device_label?: string | null;
|
|
32
|
+
}): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Effective error for API responses: suppress pin-tombstones once a device is
|
|
35
|
+
* pinned again (even if a write path forgot to clear the column).
|
|
36
|
+
*/
|
|
37
|
+
export declare function effectiveConnectionErrorMessage(row: {
|
|
38
|
+
error_message?: string | null;
|
|
39
|
+
device_worker_id?: string | null;
|
|
40
|
+
device_last_seen_at?: string | Date | null;
|
|
41
|
+
device_worker_handle?: string | null;
|
|
42
|
+
device_label?: string | null;
|
|
43
|
+
}): string | null;
|
|
44
|
+
//# sourceMappingURL=device-pin-tombstones.d.ts.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Device-pin tombstones on `connections.error_message`.
|
|
4
|
+
*
|
|
5
|
+
* DELETE /api/me/devices and PATCH device org-move un-pin connections and
|
|
6
|
+
* stamp a fixed error string so the UI can explain why a connector stopped.
|
|
7
|
+
* When a device re-registers / is re-pinned, every restore path MUST clear
|
|
8
|
+
* those strings — otherwise the connection is `active` + green while the
|
|
9
|
+
* header still shows red "Device was removed".
|
|
10
|
+
*
|
|
11
|
+
* Single source of truth for the stamp/clear literals and the live-pin
|
|
12
|
+
* predicate. The gateway (`packages/server/src/utils/device-pin-tombstones.ts`,
|
|
13
|
+
* which adds the DB clear) and the Owletto client
|
|
14
|
+
* (`packages/owletto/src/lib/device-pin-tombstone.ts`, which adds the display
|
|
15
|
+
* mask) both re-export this module. Keep stamp and clear sites on these exact
|
|
16
|
+
* literals.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.DEVICE_MOVED_TOMBSTONE = exports.DEVICE_REMOVED_TOMBSTONE = exports.DEVICE_PIN_TOMBSTONE_MESSAGES = void 0;
|
|
20
|
+
exports.isDevicePinTombstone = isDevicePinTombstone;
|
|
21
|
+
exports.connectionHasLiveDevicePin = connectionHasLiveDevicePin;
|
|
22
|
+
exports.effectiveConnectionErrorMessage = effectiveConnectionErrorMessage;
|
|
23
|
+
/** Exact `connections.error_message` values written when a device pin is torn down. */
|
|
24
|
+
exports.DEVICE_PIN_TOMBSTONE_MESSAGES = [
|
|
25
|
+
"Device was removed",
|
|
26
|
+
"Device was moved to another workspace",
|
|
27
|
+
];
|
|
28
|
+
exports.DEVICE_REMOVED_TOMBSTONE = "Device was removed";
|
|
29
|
+
exports.DEVICE_MOVED_TOMBSTONE = "Device was moved to another workspace";
|
|
30
|
+
function isDevicePinTombstone(message) {
|
|
31
|
+
return (typeof message === "string" &&
|
|
32
|
+
exports.DEVICE_PIN_TOMBSTONE_MESSAGES.includes(message));
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* True when a listed connection still has a live device_workers row for its pin
|
|
36
|
+
* (join populated `device_last_seen_at` / handle). Tombstone should not be shown.
|
|
37
|
+
*/
|
|
38
|
+
function connectionHasLiveDevicePin(row) {
|
|
39
|
+
if (!row.device_worker_id)
|
|
40
|
+
return false;
|
|
41
|
+
// Any of these being set means the LEFT JOIN to device_workers matched.
|
|
42
|
+
return (row.device_last_seen_at != null ||
|
|
43
|
+
row.device_worker_handle != null ||
|
|
44
|
+
row.device_label != null);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Effective error for API responses: suppress pin-tombstones once a device is
|
|
48
|
+
* pinned again (even if a write path forgot to clear the column).
|
|
49
|
+
*/
|
|
50
|
+
function effectiveConnectionErrorMessage(row) {
|
|
51
|
+
const msg = row.error_message ?? null;
|
|
52
|
+
if (isDevicePinTombstone(msg) && connectionHasLiveDevicePin(row)) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return msg;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=device-pin-tombstones.js.map
|
|
@@ -12,6 +12,7 @@ export type { CommandContext, CommandDefinition } from "./command-registry";
|
|
|
12
12
|
export { CommandRegistry } from "./command-registry";
|
|
13
13
|
export * from "./connector-query-errors";
|
|
14
14
|
export * from "./constants";
|
|
15
|
+
export * from "./device-pin-tombstones";
|
|
15
16
|
export * from "./contracts/interaction-envelope";
|
|
16
17
|
export * from "./credentials";
|
|
17
18
|
export * from "./classify-error";
|
|
@@ -31,7 +32,7 @@ export * from "./secret-refs";
|
|
|
31
32
|
export * from "./reserved";
|
|
32
33
|
export { extractTraceId, generateTraceId } from "./trace";
|
|
33
34
|
export type { AgentErrorContext, AgentInlineGuardrail, AgentOptions, AuthProfile, ConversationMessage, DeclaredCredential, HistoryMessage, InstructionContext, InstructionProvider, LogLevel, McpOAuthConfig, NetworkConfig, NixConfig, RegistryEntry, SessionContext, SkillConfig, SkillsConfig, SuggestedPrompt, ThinkingLevel, ThreadResponsePayload, } from "./types";
|
|
34
|
-
export { hasCredentialSource } from "./types";
|
|
35
|
+
export { hasCredentialSource, isRefreshSuspended } from "./types";
|
|
35
36
|
export { SUGGESTION_LIMITS, sanitizeSuggestionPrompts } from "./types";
|
|
36
37
|
export type { BaseMessage } from "./types/message";
|
|
37
38
|
export * from "./utils/encryption";
|
|
@@ -48,6 +49,6 @@ export { slugify } from "./utils/slug";
|
|
|
48
49
|
export * from "./utils/urls";
|
|
49
50
|
export * from "./worker/auth";
|
|
50
51
|
export type { WorkerTransport, WorkerTransportConfig, } from "./worker/transport";
|
|
51
|
-
export type {
|
|
52
|
+
export type { JobType, MessagePayload, QueuedMessage, } from "./worker/wire";
|
|
52
53
|
export { withLobuFileParameters } from "./agent-tooling";
|
|
53
54
|
//# sourceMappingURL=index.d.ts.map
|