@lobu/runtime-server 21.2.1 → 23.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.
Files changed (420) hide show
  1. package/dist/catalogs/automations.json +40 -13
  2. package/dist/catalogs/connectors.json +18435 -1259
  3. package/dist/catalogs/skills.json +1 -1
  4. package/dist/component.json +1 -1
  5. package/dist/connectors/README.md +21 -6
  6. package/dist/connectors/_google/actions.ts +270 -0
  7. package/dist/connectors/_google/discovery/calendar_v3.json +1 -0
  8. package/dist/connectors/_google/discovery/chat_v1.json +1 -0
  9. package/dist/connectors/_google/discovery/docs_v1.json +1 -0
  10. package/dist/connectors/_google/discovery/drive_v3.json +1 -0
  11. package/dist/connectors/_google/discovery/gmail_v1.json +1 -0
  12. package/dist/connectors/_google/discovery/people_v1.json +1 -0
  13. package/dist/connectors/_google/discovery/sheets_v4.json +1 -0
  14. package/dist/connectors/_google/discovery/tasks_v1.json +1 -0
  15. package/dist/connectors/_google/discovery/youtube_v3.json +1 -0
  16. package/dist/connectors/_google/discovery.ts +442 -0
  17. package/dist/connectors/_google/errors.ts +91 -0
  18. package/dist/connectors/_google/list-feed.ts +223 -0
  19. package/dist/connectors/_google/policies.ts +127 -0
  20. package/dist/connectors/agentid.ts +43 -0
  21. package/dist/connectors/chat-user-identity.ts +2 -1
  22. package/dist/connectors/github-automation-events.ts +9 -0
  23. package/dist/connectors/github-identity.ts +28 -3
  24. package/dist/connectors/github.ts +101 -59
  25. package/dist/connectors/google_calendar.ts +207 -719
  26. package/dist/connectors/google_drive.ts +16 -2
  27. package/dist/connectors/google_gmail.ts +52 -33
  28. package/dist/connectors/herdr.ts +406 -0
  29. package/dist/connectors/jira-helpers.ts +313 -0
  30. package/dist/connectors/jira.ts +35 -227
  31. package/dist/connectors/linear.ts +7 -4
  32. package/dist/connectors/linkedin-browser-script.ts +13 -0
  33. package/dist/connectors/linkedin-draft-page.js +104 -0
  34. package/dist/connectors/linkedin-drafts.ts +73 -0
  35. package/dist/connectors/linkedin-identity.ts +32 -0
  36. package/dist/connectors/linkedin-inbox-adapter.js +1185 -0
  37. package/dist/connectors/linkedin-inbox.ts +156 -0
  38. package/dist/connectors/linkedin-like.ts +114 -0
  39. package/dist/connectors/linkedin-takeout.ts +577 -0
  40. package/dist/connectors/linkedin.ts +3998 -0
  41. package/dist/connectors/postgres.ts +27 -2
  42. package/dist/connectors/takeout-utils.ts +240 -0
  43. package/dist/connectors/tiktok-inbox-page.js +230 -0
  44. package/dist/connectors/tiktok-web-page.js +217 -0
  45. package/dist/connectors/tiktok_web.ts +319 -0
  46. package/dist/connectors/whatsapp-web-adapter.js +285 -567
  47. package/dist/connectors/whatsapp-web-helpers.ts +74 -455
  48. package/dist/connectors/whatsapp-web-identity.ts +135 -0
  49. package/dist/connectors/whatsapp_web.ts +159 -618
  50. package/dist/connectors/x-dm-adapter.js +556 -0
  51. package/dist/connectors/x-identity.ts +31 -2
  52. package/dist/connectors/x.ts +539 -253
  53. package/dist/db/migrations/20261005150000_retire_agent_tool_config.sql +31 -0
  54. package/dist/db/migrations/20261005173700_drop_retired_agent_tool_config.sql +29 -0
  55. package/dist/db/migrations/20261007010000_identity_association_guards.sql +242 -0
  56. package/dist/db/migrations/20261007010001_identity_association_indexes.sql +35 -0
  57. package/dist/db/migrations/20261007012000_connector_browser_requirement.sql +7 -0
  58. package/dist/db/migrations/20261009010000_identity_member_decision_indexes.sql +22 -0
  59. package/dist/db/migrations/20261009015900_retire_remaining_physical_merges.sql +196 -0
  60. package/dist/db/migrations/20261009020000_retire_physical_entity_merge.sql +82 -0
  61. package/dist/db/migrations/20261009030000_retire_physical_merge_indexes.sql +39 -0
  62. package/dist/db/migrations/20261009030001_drop_physical_entity_redirect.sql +62 -0
  63. package/dist/db/migrations/20261009040000_normalize_identity_decisions.sql +60 -0
  64. package/dist/db/migrations/20261010220000_notification_targets_user_event_order.sql +53 -0
  65. package/dist/db/migrations/20261010223000_device_workers_user_fresh_cover.sql +39 -0
  66. package/dist/db/migrations/20261010223001_runs_org_default_view.sql +41 -0
  67. package/dist/db/migrations/20261010223002_events_org_guidance.sql +42 -0
  68. package/dist/db/migrations/20261011002000_finish_product_eval_retirement.sql +37 -0
  69. package/dist/db/migrations/20261011160000_mcp_conversation_workspaces.sql +97 -0
  70. package/dist/db/migrations/20261013120000_events_live_org_effective_date.sql +42 -0
  71. package/dist/db/migrations/20261013150000_events_live_linked_org_ids_gin.sql +41 -0
  72. package/dist/db/migrations/20261014120000_clear_team_device_auto_pause.sql +34 -0
  73. package/dist/db/migrations/20261014150000_connector_webhook_event_type_backfill.sql +30 -0
  74. package/dist/db/migrations/20261014170000_retire_atlassian_mcp_webhook_refresh.sql +51 -0
  75. package/dist/db/migrations/20261015010000_connection_auth_profile_fk_set_null_column.sql +53 -0
  76. package/dist/db/migrations/20261015120000_personal_org_connector_auto_policy.sql +38 -0
  77. package/dist/db/migrations/20261017120000_drop_feeds_kind_virtual.sql +26 -0
  78. package/dist/db/migrations/20261017130000_drop_retired_dead_code_columns.sql +46 -0
  79. package/dist/db/migrations/preconditions/20261005150000_retire_agent_tool_config.sql +22 -0
  80. package/dist/db/migrations/preconditions/20261005173700_drop_retired_agent_tool_config.sql +13 -0
  81. package/dist/db/migrations/preconditions/20261009020000_retire_physical_entity_merge.sql +26 -0
  82. package/dist/db/migrations/preconditions/20261011002000_finish_product_eval_retirement.sql +14 -0
  83. package/dist/dependencies.bun.lock +144 -137
  84. package/dist/guest.bundle.js +416 -330
  85. package/dist/owletto/dist/assets/_-3J-IrxWk.js +2 -0
  86. package/dist/owletto/dist/assets/_-DYUE3ix4.js +3 -0
  87. package/dist/owletto/dist/assets/_-DtqBFgK5.js +1 -0
  88. package/dist/owletto/dist/assets/_agentId-Bn2IAjIy.js +2 -0
  89. package/dist/owletto/dist/assets/_agentId-Cam7Z0N7.js +2 -0
  90. package/dist/owletto/dist/assets/_automationId-CXEiKVZJ.js +2 -0
  91. package/dist/owletto/dist/assets/_connectorKey._connectionId-CS85l61t.js +2 -0
  92. package/dist/owletto/dist/assets/_connectorKey.index-clVDIyW0.js +2 -0
  93. package/dist/owletto/dist/assets/_conversationId-Ci2k-BuN.js +2 -0
  94. package/dist/owletto/dist/assets/_deploymentId-BuUzGtVL.js +2 -0
  95. package/dist/owletto/dist/assets/_eventId-B0662F8h.js +2 -0
  96. package/dist/owletto/dist/assets/_name-CwWePlOl.js +2 -0
  97. package/dist/owletto/dist/assets/_owner-dTWkrKsK.js +3 -0
  98. package/dist/owletto/dist/assets/_shape-BtS3y4M9.js +2 -0
  99. package/dist/owletto/dist/assets/_skillKey-Dc9m-nlR.js +2 -0
  100. package/dist/owletto/dist/assets/_slug-DQHutM41.js +2 -0
  101. package/dist/owletto/dist/assets/_threadId-DtqBFgK5.js +1 -0
  102. package/dist/owletto/dist/assets/_viewKey-B30ik8ma.js +2 -0
  103. package/dist/owletto/dist/assets/_viewKey-CUHypQnF.js +2 -0
  104. package/dist/owletto/dist/assets/accept-invitation-w17IFTtf.js +2 -0
  105. package/dist/owletto/dist/assets/activity-route-view-CMqYiiKM.js +2 -0
  106. package/dist/owletto/dist/assets/agent-card-controls-mnTN2AZt.js +2 -0
  107. package/dist/owletto/dist/assets/{agent-client-setup-list-BFtgRwe8.js → agent-client-setup-list-Bg3hBfUV.js} +4 -3
  108. package/dist/owletto/dist/assets/agent-connect-pages-B_vrqLVc.js +2 -0
  109. package/dist/owletto/dist/assets/agent-editor-form-hTs7eO_U.js +2 -0
  110. package/dist/owletto/dist/assets/agent-guardrails-route-BOrCXcAl.js +2 -0
  111. package/dist/owletto/dist/assets/agent-loading-shells-Dqcvky-k.js +2 -0
  112. package/dist/owletto/dist/assets/agent-permissions-matrix-BOo_4r_4.js +2 -0
  113. package/dist/owletto/dist/assets/{agent-skill-context-BAr2Dw3F.js → agent-skill-context-CCdvtlmH.js} +2 -1
  114. package/dist/owletto/dist/assets/agent-skills-route-BUxIswuq.js +2 -0
  115. package/dist/owletto/dist/assets/agent-subpage-shell-D92imvSt.js +2 -0
  116. package/dist/owletto/dist/assets/agent-thread-BJOijbT0.js +6 -0
  117. package/dist/owletto/dist/assets/agents-9XjpDj_S.js +2 -0
  118. package/dist/owletto/dist/assets/agents-workbench-Bt5QCYQ7.js +2 -0
  119. package/dist/owletto/dist/assets/app-bridge-BCm4muqj.js +128 -0
  120. package/dist/owletto/dist/assets/app._appId-CKv7_squ.js +2 -0
  121. package/dist/owletto/dist/assets/automation-detail-content-vUwVumXf.js +2 -0
  122. package/dist/owletto/dist/assets/automations-9XjpDj_S.js +2 -0
  123. package/dist/owletto/dist/assets/{callback-CaRe2TOT.js → callback-BRgcL8gz.js} +2 -1
  124. package/dist/owletto/dist/assets/{card-CMmh2mzo.js → card-Djgp00r_.js} +2 -1
  125. package/dist/owletto/dist/assets/claim-BYUZnyMp.js +2 -0
  126. package/dist/owletto/dist/assets/client-rows-EJSKR6z1.js +1 -0
  127. package/dist/owletto/dist/assets/clients-D3Zbjxin.js +2 -0
  128. package/dist/owletto/dist/assets/code-editor-DHeyRGZI.js +16 -0
  129. package/dist/owletto/dist/assets/connect-CfsFsy9P.js +2 -0
  130. package/dist/owletto/dist/assets/connect._clientId-DkiC8xos.js +2 -0
  131. package/dist/owletto/dist/assets/connected._clientId-CIXrGOsT.js +2 -0
  132. package/dist/owletto/dist/assets/connected._clientId.activity-Ckdz6I0y.js +2 -0
  133. package/dist/owletto/dist/assets/connected._clientId.index-CNxafNeo.js +2 -0
  134. package/dist/owletto/dist/assets/connection-C3XXFEqh.js +2 -0
  135. package/dist/owletto/dist/assets/connection-feed-detail-CIJJLDP8.js +2 -0
  136. package/dist/owletto/dist/assets/connection-label-BobuYiAG.js +1 -0
  137. package/dist/owletto/dist/assets/connections-browser-CKZjzRz6.js +2 -0
  138. package/dist/owletto/dist/assets/{connector-provenance-BjKiUhYE.js → connector-provenance-8-d8hl10.js} +2 -1
  139. package/dist/owletto/dist/assets/connector-scope-lists-CadPVsI3.js +2 -0
  140. package/dist/owletto/dist/assets/{connectors-Baejya0T.js → connectors-lvLJ30lo.js} +2 -1
  141. package/dist/owletto/dist/assets/consent-CdSvVCgx.js +2 -0
  142. package/dist/owletto/dist/assets/conversations-table-BdXoZAfc.js +2 -0
  143. package/dist/owletto/dist/assets/{core.esm-QA7BQgiK.js → core.esm-CYvgWCuv.js} +2 -1
  144. package/dist/owletto/dist/assets/create-0xW9eXxG.js +2 -0
  145. package/dist/owletto/dist/assets/create-B0qhrrX4.js +2 -0
  146. package/dist/owletto/dist/assets/create-CAfF-yI1.js +2 -0
  147. package/dist/owletto/dist/assets/create-automation-form-CtSSeYj3.js +3 -0
  148. package/dist/owletto/dist/assets/create._connectorKey-i6xxkWKV.js +2 -0
  149. package/dist/owletto/dist/assets/{cronstrue-2GHCtD7h.js → cronstrue-n4qGUraE.js} +2 -1
  150. package/dist/owletto/dist/assets/deployments-4Itm35Xc.js +2 -0
  151. package/dist/owletto/dist/assets/deployments-RvUdVkj3.js +2 -0
  152. package/dist/owletto/dist/assets/{deployments-body-Bm2upStd.js → deployments-body-BMp7UsMo.js} +2 -1
  153. package/dist/owletto/dist/assets/device-CPU6CjkJ.js +2 -0
  154. package/dist/owletto/dist/assets/device-pin-tombstone-CrjG7gPo.js +2 -0
  155. package/dist/owletto/dist/assets/device._deviceId-Cs3ZmXWo.js +2 -0
  156. package/dist/owletto/dist/assets/{entity-options-CrbS6K-i.js → entity-options-uXjgT7y9.js} +2 -1
  157. package/dist/owletto/dist/assets/entity-page-Dc0LGr5U.js +2 -0
  158. package/dist/owletto/dist/assets/entity-type-page-CwZxa0BR.js +2 -0
  159. package/dist/owletto/dist/assets/event-detail-ve2d6Gbb.js +2 -0
  160. package/dist/owletto/dist/assets/events-feed-BtvhZF1f.js +2 -0
  161. package/dist/owletto/dist/assets/filter-editors-Cj-v6NtH.js +2 -0
  162. package/dist/owletto/dist/assets/full-page-spinner-DqpH99np.js +2 -0
  163. package/dist/owletto/dist/assets/guardrails-HFo2Ut8B.js +2 -0
  164. package/dist/owletto/dist/assets/identity-BigVSBCl.js +2 -0
  165. package/dist/owletto/dist/assets/index-B9uPN6FC.js +2 -0
  166. package/dist/owletto/dist/assets/index-BLEcy9-T.css +1 -0
  167. package/dist/owletto/dist/assets/index-BQVliQW1.js +2 -0
  168. package/dist/owletto/dist/assets/index-BfedB4Rc.js +2 -0
  169. package/dist/owletto/dist/assets/index-CDz3-ieP.js +1 -0
  170. package/dist/owletto/dist/assets/index-CUw3aKBI.js +2 -0
  171. package/dist/owletto/dist/assets/index-CXhxUkv3.js +2 -0
  172. package/dist/owletto/dist/assets/index-Cr5hwh-C.js +7950 -0
  173. package/dist/owletto/dist/assets/index-CzkTV4ZQ.js +2 -0
  174. package/dist/owletto/dist/assets/index-DKSx8JN_.js +2 -0
  175. package/dist/owletto/dist/assets/index-DVk7Ug0d.js +2 -0
  176. package/dist/owletto/dist/assets/index-DmZuKGf8.js +2 -0
  177. package/dist/owletto/dist/assets/index-DtqBFgK5.js +1 -0
  178. package/dist/owletto/dist/assets/index-Hio-HRfo.js +2 -0
  179. package/dist/owletto/dist/assets/{index-Cf0GJoiG.js → index-ICgKp3YK.js} +2 -1
  180. package/dist/owletto/dist/assets/index-Vcq4gwWv.js +1 -0
  181. package/dist/owletto/dist/assets/index-cPcroOH0.js +2 -0
  182. package/dist/owletto/dist/assets/{index-DlepU3cY.js → index-n7sTbNv4.js} +2 -1
  183. package/dist/owletto/dist/assets/index-rrnUF981.js +1 -0
  184. package/dist/owletto/dist/assets/index-xiFpcWKv.js +2 -0
  185. package/dist/owletto/dist/assets/json-diff-DBoag_OS.js +4 -0
  186. package/dist/owletto/dist/assets/{list-skeleton-BtWn2eo2.js → list-skeleton-C_GuoxAH.js} +2 -1
  187. package/dist/owletto/dist/assets/login-Ci6ixHuL.js +2 -0
  188. package/dist/owletto/dist/assets/logout-CLGgeZB7.js +2 -0
  189. package/dist/owletto/dist/assets/member-scope-gate-B44INDPY.js +2 -0
  190. package/dist/owletto/dist/assets/memory-browse-page-DyQiRvzl.js +103 -0
  191. package/dist/owletto/dist/assets/model-selector-dAbDgJvx.js +2 -0
  192. package/dist/owletto/dist/assets/models-DpVP7ZwX.js +2 -0
  193. package/dist/owletto/dist/assets/new-BUb7AnEW.js +2 -0
  194. package/dist/owletto/dist/assets/new-BkdULx2r.js +2 -0
  195. package/dist/owletto/dist/assets/new-CHOr-EcI.js +2 -0
  196. package/dist/owletto/dist/assets/oauth-workspace-access-BxsjwgdH.js +2 -0
  197. package/dist/owletto/dist/assets/organization-gxGeDjIV.js +2 -0
  198. package/dist/owletto/dist/assets/peek-pane-content-CHoQHe2H.js +2 -0
  199. package/dist/owletto/dist/assets/{permissions-h_qSft1A.js → permissions-aPHaKLec.js} +2 -1
  200. package/dist/owletto/dist/assets/proposal-review-shell-UcZr87_Q.js +2 -0
  201. package/dist/owletto/dist/assets/public-shell-ready-DcnlADmj.js +2 -0
  202. package/dist/owletto/dist/assets/{recent-JiBNvZzD.js → recent-D-65Pgu-.js} +2 -1
  203. package/dist/owletto/dist/assets/record-activity-CBXH6v1d.js +2 -0
  204. package/dist/owletto/dist/assets/{renderer-DgPLyEbx.js → renderer-mEDnVW0O.js} +28 -27
  205. package/dist/owletto/dist/assets/reset-password-uX_V6bip.js +2 -0
  206. package/dist/owletto/dist/assets/runs-C0rCgGwX.js +2 -0
  207. package/dist/owletto/dist/assets/runs-panel-Du1JMjg5.js +2 -0
  208. package/dist/owletto/dist/assets/runs-table-syPJ6r6T.js +2 -0
  209. package/dist/owletto/dist/assets/settings-9NkNA1G1.js +2 -0
  210. package/dist/owletto/dist/assets/settings-E-10sLQX.js +2 -0
  211. package/dist/owletto/dist/assets/skill-editor-D_W3QlRz.js +1 -0
  212. package/dist/owletto/dist/assets/skills-D2Ri9b4f.js +2 -0
  213. package/dist/owletto/dist/assets/source-record-panels-CPyzlfD1.js +2 -0
  214. package/dist/owletto/dist/assets/status-dot-B-EWMgq6.js +2 -0
  215. package/dist/owletto/dist/assets/tabs-DqIIkCX-.js +2 -0
  216. package/dist/owletto/dist/assets/{use-mention-search-B4DfZFm5.js → use-mention-search-By8RZyKW.js} +3 -2
  217. package/dist/owletto/dist/assets/view-param-filters-CqLZQrnO.js +2 -0
  218. package/dist/owletto/dist/assets/workspace-label-o_QfBuCM.js +2 -0
  219. package/dist/owletto/dist/index.html +46 -4
  220. package/dist/providers.json +1 -1
  221. package/dist/server-main.bundle.mjs +137029 -133673
  222. package/npm-shrinkwrap.json +612 -645
  223. package/package.json +4 -3
  224. package/vendor/connector-sdk/dist/browser-handoff-banner.d.ts +39 -0
  225. package/vendor/connector-sdk/dist/browser-handoff-banner.js +175 -0
  226. package/vendor/connector-sdk/dist/browser-requirement.d.ts +36 -0
  227. package/vendor/connector-sdk/dist/browser-requirement.js +60 -0
  228. package/vendor/connector-sdk/dist/browser-source-read.d.ts +52 -0
  229. package/vendor/connector-sdk/dist/browser-source-read.js +107 -0
  230. package/vendor/connector-sdk/dist/connector-runtime.d.ts +3 -1
  231. package/vendor/connector-sdk/dist/connector-runtime.js +10 -0
  232. package/vendor/connector-sdk/dist/connector-types.d.ts +169 -45
  233. package/vendor/connector-sdk/dist/define-connector.d.ts +4 -2
  234. package/vendor/connector-sdk/dist/define-connector.js +3 -0
  235. package/vendor/connector-sdk/dist/index.d.ts +8 -2
  236. package/vendor/connector-sdk/dist/index.js +3 -0
  237. package/vendor/connector-sdk/dist/reaction-client-types.d.ts +16 -21
  238. package/vendor/connector-sdk/dist/reaction-client-types.typecheck.d.ts +5 -0
  239. package/vendor/connector-sdk/package.json +13 -1
  240. package/vendor/core/dist/agent-policy.js +1 -1
  241. package/vendor/core/dist/agent-store.d.ts +2 -0
  242. package/vendor/core/dist/agent-tooling.d.ts +1 -1
  243. package/vendor/core/dist/agent-tooling.js +1 -1
  244. package/vendor/core/dist/capabilities.d.ts +1 -1
  245. package/vendor/core/dist/capabilities.js +2 -1
  246. package/vendor/core/dist/connector-query-errors.d.ts +32 -0
  247. package/vendor/core/dist/connector-query-errors.js +41 -1
  248. package/vendor/core/dist/contracts/agent-settings.d.ts +0 -11
  249. package/vendor/core/dist/contracts/agent-settings.js +1 -7
  250. package/vendor/core/dist/contracts/tools/collection-presentation.d.ts +93 -0
  251. package/vendor/core/dist/contracts/tools/collection-presentation.js +88 -0
  252. package/vendor/core/dist/contracts/tools/collection-selection.d.ts +47 -0
  253. package/vendor/core/dist/contracts/tools/collection-selection.js +74 -0
  254. package/vendor/core/dist/contracts/tools/manage-agents.d.ts +10 -4
  255. package/vendor/core/dist/contracts/tools/manage-auth-profiles.d.ts +1 -1
  256. package/vendor/core/dist/contracts/tools/manage-auth-profiles.js +5 -1
  257. package/vendor/core/dist/contracts/tools/manage-automations.d.ts +19 -4
  258. package/vendor/core/dist/contracts/tools/manage-automations.js +25 -8
  259. package/vendor/core/dist/contracts/tools/manage-connections.d.ts +1 -0
  260. package/vendor/core/dist/contracts/tools/manage-connections.js +3 -0
  261. package/vendor/core/dist/contracts/tools/manage-conversations.js +2 -2
  262. package/vendor/core/dist/contracts/tools/manage-entity-schema.d.ts +11 -0
  263. package/vendor/core/dist/contracts/tools/manage-entity-schema.js +42 -3
  264. package/vendor/core/dist/contracts/tools/manage-entity.d.ts +181 -152
  265. package/vendor/core/dist/contracts/tools/manage-entity.js +118 -162
  266. package/vendor/core/dist/contracts/tools/manage-feeds.d.ts +14 -0
  267. package/vendor/core/dist/contracts/tools/manage-feeds.js +17 -0
  268. package/vendor/core/dist/contracts/tools/manage-operations.d.ts +41 -3
  269. package/vendor/core/dist/contracts/tools/manage-operations.js +40 -2
  270. package/vendor/core/dist/contracts/tools/manage-views.d.ts +182 -7
  271. package/vendor/core/dist/contracts/tools/manage-views.js +49 -13
  272. package/vendor/core/dist/contracts/tools/read-knowledge.d.ts +11 -2
  273. package/vendor/core/dist/contracts/tools/read-knowledge.js +23 -3
  274. package/vendor/core/dist/contracts/tools/save-memory.d.ts +3 -6
  275. package/vendor/core/dist/contracts/tools/save-memory.js +2 -6
  276. package/vendor/core/dist/contracts/tools/view-attach.d.ts +2 -1
  277. package/vendor/core/dist/contracts/tools/view-attach.js +7 -2
  278. package/vendor/core/dist/contracts/worker/protocol.d.ts +130 -159
  279. package/vendor/core/dist/contracts/worker/protocol.js +88 -76
  280. package/vendor/core/dist/device-pin-tombstones.d.ts +44 -0
  281. package/vendor/core/dist/device-pin-tombstones.js +57 -0
  282. package/vendor/core/dist/index.d.ts +5 -5
  283. package/vendor/core/dist/index.js +4 -6
  284. package/vendor/core/dist/json-template.d.ts +6 -10
  285. package/vendor/core/dist/json-template.js +5 -9
  286. package/vendor/core/dist/logger.js +17 -26
  287. package/vendor/core/dist/shell-safety.d.ts +9 -0
  288. package/vendor/core/dist/shell-safety.js +154 -0
  289. package/vendor/core/dist/suggestions.d.ts +1 -1
  290. package/vendor/core/dist/suggestions.js +1 -1
  291. package/vendor/core/dist/tool-trace-summary.d.ts +1 -1
  292. package/vendor/core/dist/tool-trace-summary.js +1 -1
  293. package/vendor/core/dist/types.d.ts +1 -3
  294. package/vendor/core/dist/utils/diagnostic-scrubber.d.ts +7 -0
  295. package/vendor/core/dist/utils/diagnostic-scrubber.js +437 -0
  296. package/vendor/core/dist/worker/auth.d.ts +44 -6
  297. package/vendor/core/dist/worker/auth.js +44 -11
  298. package/vendor/core/dist/worker/wire.d.ts +0 -10
  299. package/vendor/core/package.json +20 -11
  300. package/vendor/views/dist/api.d.ts +39 -29
  301. package/vendor/views/dist/api.js +110 -83
  302. package/vendor/views/dist/bridge.d.ts +4 -0
  303. package/vendor/views/dist/bridge.js +15 -0
  304. package/vendor/views/dist/index.d.ts +1 -0
  305. package/vendor/views/dist/index.js +0 -7
  306. package/vendor/views/package.json +4 -1
  307. package/dist/owletto/dist/assets/_-CLhipgJI.js +0 -1
  308. package/dist/owletto/dist/assets/_-D0ZVGAIA.js +0 -2
  309. package/dist/owletto/dist/assets/_agentId-BLXUf3ot.js +0 -1
  310. package/dist/owletto/dist/assets/_agentId-DnI66MF3.js +0 -1
  311. package/dist/owletto/dist/assets/_automationId-ziwseLb7.js +0 -1
  312. package/dist/owletto/dist/assets/_connectorKey._connectionId-B6V3ySFK.js +0 -1
  313. package/dist/owletto/dist/assets/_connectorKey.index-CR5u_dtt.js +0 -1
  314. package/dist/owletto/dist/assets/_conversationId-FBMYmOl8.js +0 -1
  315. package/dist/owletto/dist/assets/_deploymentId-DNTXbT_m.js +0 -1
  316. package/dist/owletto/dist/assets/_name-B37LKIxH.js +0 -1
  317. package/dist/owletto/dist/assets/_owner-BxYumqC2.js +0 -1
  318. package/dist/owletto/dist/assets/_shape-Bxz-04jR.js +0 -1
  319. package/dist/owletto/dist/assets/_skillKey-D5MFbiw2.js +0 -1
  320. package/dist/owletto/dist/assets/_slug-Dlhit09k.js +0 -1
  321. package/dist/owletto/dist/assets/_viewKey-C6535i-t.js +0 -1
  322. package/dist/owletto/dist/assets/_viewKey-CQCtY3Y8.js +0 -1
  323. package/dist/owletto/dist/assets/_viewKey-CxKfKbRa.js +0 -1
  324. package/dist/owletto/dist/assets/accept-invitation-BQQwec3R.js +0 -1
  325. package/dist/owletto/dist/assets/activity-route-view-BwThvdGs.js +0 -1
  326. package/dist/owletto/dist/assets/agent-card-controls-B3RhzsPz.js +0 -1
  327. package/dist/owletto/dist/assets/agent-connect-pages-BO4wQn4L.js +0 -1
  328. package/dist/owletto/dist/assets/agent-editor-form-BYC4uSNz.js +0 -1
  329. package/dist/owletto/dist/assets/agent-guardrails-route-Dp02G1AQ.js +0 -1
  330. package/dist/owletto/dist/assets/agent-loading-shells-OagauQzV.js +0 -1
  331. package/dist/owletto/dist/assets/agent-permissions-matrix-B9Ho3P1t.js +0 -1
  332. package/dist/owletto/dist/assets/agent-skills-route-B4VUnVi0.js +0 -1
  333. package/dist/owletto/dist/assets/agent-subpage-shell-Dz8I-GUt.js +0 -1
  334. package/dist/owletto/dist/assets/agent-thread-B9-cdkaV.js +0 -8
  335. package/dist/owletto/dist/assets/agent-thread-storage-U6htL3ad.js +0 -1
  336. package/dist/owletto/dist/assets/agents-D0CIg4b9.js +0 -1
  337. package/dist/owletto/dist/assets/agents-workbench-C2sr5h82.js +0 -1
  338. package/dist/owletto/dist/assets/app-bridge-BH3g2mKG.js +0 -127
  339. package/dist/owletto/dist/assets/app._appId-DLsJ_QWS.js +0 -1
  340. package/dist/owletto/dist/assets/automation-detail-content-9Rjb_I9j.js +0 -1
  341. package/dist/owletto/dist/assets/automations-D0CIg4b9.js +0 -1
  342. package/dist/owletto/dist/assets/calendar-DAiyi1ZL.js +0 -1
  343. package/dist/owletto/dist/assets/claim-CYHnUF7G.js +0 -1
  344. package/dist/owletto/dist/assets/clients-Cp1BJ28u.js +0 -1
  345. package/dist/owletto/dist/assets/code-editor-CYsR2VBP.js +0 -15
  346. package/dist/owletto/dist/assets/connect-CZip2g_B.js +0 -1
  347. package/dist/owletto/dist/assets/connect._clientId-CEKY8Dnv.js +0 -1
  348. package/dist/owletto/dist/assets/connected._clientId-C5xRjxNO.js +0 -1
  349. package/dist/owletto/dist/assets/connection-C06HZ241.js +0 -1
  350. package/dist/owletto/dist/assets/connection-feed-detail-D1whY5hL.js +0 -1
  351. package/dist/owletto/dist/assets/consent-CfYDldcF.js +0 -1
  352. package/dist/owletto/dist/assets/create-C3P-3_8O.js +0 -1
  353. package/dist/owletto/dist/assets/create-CwnrPUEw.js +0 -1
  354. package/dist/owletto/dist/assets/create-DOScS9Gl.js +0 -1
  355. package/dist/owletto/dist/assets/create-automation-form-CuxiIRCF.js +0 -2
  356. package/dist/owletto/dist/assets/create._connectorKey-Bjv3lCf8.js +0 -1
  357. package/dist/owletto/dist/assets/deployments-ByBv1DW-.js +0 -1
  358. package/dist/owletto/dist/assets/deployments-C-_ECORv.js +0 -1
  359. package/dist/owletto/dist/assets/device-B0i7Xp8y.js +0 -1
  360. package/dist/owletto/dist/assets/device-automation-BIjs7DZJ.js +0 -1
  361. package/dist/owletto/dist/assets/device-pin-tombstone-Bd6vS2zu.js +0 -1
  362. package/dist/owletto/dist/assets/device-rows-Bwf8qDte.js +0 -1
  363. package/dist/owletto/dist/assets/device._deviceId-DJLAesm3.js +0 -1
  364. package/dist/owletto/dist/assets/entity-page-ijZe_1-6.js +0 -1
  365. package/dist/owletto/dist/assets/entity-type-page-onp2Tk_E.js +0 -1
  366. package/dist/owletto/dist/assets/event-page-C0B2UDY-.js +0 -1
  367. package/dist/owletto/dist/assets/events-feed-DK35T4g7.js +0 -1
  368. package/dist/owletto/dist/assets/full-page-spinner-Dd8eEaxq.js +0 -1
  369. package/dist/owletto/dist/assets/guardrails-DKO8_J-G.js +0 -1
  370. package/dist/owletto/dist/assets/identity-CKM54vrM.js +0 -1
  371. package/dist/owletto/dist/assets/index--VmN5WxW.js +0 -1
  372. package/dist/owletto/dist/assets/index-B2AmRqYh.js +0 -7898
  373. package/dist/owletto/dist/assets/index-B_rcEgFX.js +0 -1
  374. package/dist/owletto/dist/assets/index-BmAuAhub.css +0 -1
  375. package/dist/owletto/dist/assets/index-BmhGe6-Z.js +0 -1
  376. package/dist/owletto/dist/assets/index-C1dJSGrL.js +0 -1
  377. package/dist/owletto/dist/assets/index-CAFw4qCb.js +0 -1
  378. package/dist/owletto/dist/assets/index-CCcc_xBw.js +0 -52
  379. package/dist/owletto/dist/assets/index-CLU3gXVm.js +0 -1
  380. package/dist/owletto/dist/assets/index-CqQVnAY-.js +0 -1
  381. package/dist/owletto/dist/assets/index-CxT0uyIe.js +0 -1
  382. package/dist/owletto/dist/assets/index-DR08e6Ec.js +0 -1
  383. package/dist/owletto/dist/assets/index-DYb9L5FC.js +0 -1
  384. package/dist/owletto/dist/assets/index-SUUcQGT-.js +0 -1
  385. package/dist/owletto/dist/assets/index-SdiFOfR1.js +0 -1
  386. package/dist/owletto/dist/assets/index-zcfi5r1l.js +0 -1
  387. package/dist/owletto/dist/assets/json-diff-ClBBYBQD.js +0 -3
  388. package/dist/owletto/dist/assets/login-d3PdO-qV.js +0 -1
  389. package/dist/owletto/dist/assets/logout-DgckxwLn.js +0 -1
  390. package/dist/owletto/dist/assets/member-scope-gate-DXOCfx-v.js +0 -1
  391. package/dist/owletto/dist/assets/memory-browse-page-CeAnKoTR.js +0 -101
  392. package/dist/owletto/dist/assets/missing-view-DrZ8m8yo.js +0 -1
  393. package/dist/owletto/dist/assets/model-selector-CapL1ARf.js +0 -1
  394. package/dist/owletto/dist/assets/models-CB8mhq7j.js +0 -1
  395. package/dist/owletto/dist/assets/new-BBUb-VR4.js +0 -1
  396. package/dist/owletto/dist/assets/new-CBLJ25_w.js +0 -1
  397. package/dist/owletto/dist/assets/new-tTXB4qBW.js +0 -1
  398. package/dist/owletto/dist/assets/oauth-workspace-access-DearynqZ.js +0 -1
  399. package/dist/owletto/dist/assets/organization-BgdBg-PJ.js +0 -1
  400. package/dist/owletto/dist/assets/pending-seed-CPbfgnLX.js +0 -1
  401. package/dist/owletto/dist/assets/proposal-review-shell-D4YNrrye.js +0 -1
  402. package/dist/owletto/dist/assets/reset-password-B8tWPtIj.js +0 -1
  403. package/dist/owletto/dist/assets/runs-oHveuEUB.js +0 -1
  404. package/dist/owletto/dist/assets/runs-panel-C56GDaJm.js +0 -1
  405. package/dist/owletto/dist/assets/runs-table-BUKDjiBc.js +0 -1
  406. package/dist/owletto/dist/assets/schema-value-normalization-3JuM_r1H.js +0 -1
  407. package/dist/owletto/dist/assets/settings-DaKg6U5O.js +0 -1
  408. package/dist/owletto/dist/assets/settings-DhnRi2nq.js +0 -1
  409. package/dist/owletto/dist/assets/skills-BpQncuMC.js +0 -1
  410. package/dist/owletto/dist/assets/switch-BQ40_DMb.js +0 -1
  411. package/dist/owletto/dist/assets/use-applied-views-B-Z-Weji.js +0 -1
  412. package/dist/owletto/dist/assets/view-frame-C7ciEoLo.js +0 -1
  413. package/vendor/core/dist/contracts/worker/device-chat.d.ts +0 -4
  414. package/vendor/core/dist/contracts/worker/device-chat.js +0 -26
  415. package/vendor/core/dist/sentry.d.ts +0 -26
  416. package/vendor/core/dist/sentry.js +0 -133
  417. package/vendor/core/dist/tool-policy.d.ts +0 -74
  418. package/vendor/core/dist/tool-policy.js +0 -305
  419. package/vendor/core/dist/utils/sentry-scrubber.d.ts +0 -29
  420. package/vendor/core/dist/utils/sentry-scrubber.js +0 -228
@@ -5,6 +5,10 @@
5
5
  * Defines the contract between connectors, the runtime, and the platform.
6
6
  */
7
7
  import type { EntityTypeContribution, ReflectedMeasure } from './metrics.js';
8
+ import type { ConnectorBrowserRequirement } from './browser-requirement.js';
9
+ import type { ChromeActionDispatcher } from './extension-network.js';
10
+ import type { AttributeFilter } from '@lobu/core/contracts/tools/collection-selection';
11
+ import type { ConnectorOperationRequest, ConnectorOperationResult } from '@lobu/core/contracts/tools/manage-operations';
8
12
  import type { ConnectorAutomationEvent, ConnectorAutomationSignalDraft } from './automation-triggers.js';
9
13
  export interface ConnectorDefinition {
10
14
  /** Unique connector key, e.g. 'google.gmail' */
@@ -28,6 +32,8 @@ export interface ConnectorDefinition {
28
32
  kind?: 'data' | 'integration';
29
33
  /** Auth configuration */
30
34
  authSchema?: ConnectorAuthSchema;
35
+ /** Delegated browser dependency. This does not change worker placement. */
36
+ browser?: ConnectorBrowserRequirement;
31
37
  /** Available feed definitions (keyed by feed_key) */
32
38
  feeds?: Record<string, FeedDefinition>;
33
39
  /** Available action definitions (keyed by action_key) */
@@ -35,18 +41,22 @@ export interface ConnectorDefinition {
35
41
  /** Query filters implemented by this connector. Unsupported filters fail before query(). */
36
42
  queryCapabilities?: {
37
43
  exactMatch?: boolean;
44
+ selection?: boolean;
38
45
  };
39
46
  /** Connector-normalized events that can activate Automations. */
40
47
  automationEvents?: ConnectorAutomationEvent[];
41
48
  /**
42
49
  * Declarative inbound-webhook config. Presence means this connector receives
43
- * real-time provider deliveries at `POST /api/v1/webhooks/:connectionId`,
44
- * which are landed RAW into `events` (extract-load — the agent/downstream
45
- * stages interpret them; no transform on the ingest hot path). The gateway
46
- * verifies the signature IN-PROCESS using this schema + the secret stored on
47
- * the connection, so the hot path never loads connector code. Pair with
48
- * {@link ConnectorRuntime.registerWebhook}, which subscribes with the provider
49
- * at connect time and stamps the signing secret onto the connection.
50
+ * real-time provider deliveries at `POST /api/v1/webhooks/:connectionId` (or
51
+ * the shared app-webhook endpoint for `delivery: 'app_installation'`). With an
52
+ * {@link ConnectorWebhookSchema.eventType} they are dispatched to the feeds
53
+ * that declare the event; without one, per-connection deliveries are stored
54
+ * raw under `webhook:<connectionId>` and app-installation deliveries are
55
+ * acked with nothing triggered. The gateway verifies the signature in process
56
+ * using this schema and the connection or app webhook secret, so verification
57
+ * never loads connector code. Per-connection subscriptions use
58
+ * {@link ConnectorRuntime.registerWebhook} at connect time and store the
59
+ * signing secret on the connection.
50
60
  */
51
61
  webhook?: ConnectorWebhookSchema;
52
62
  /** Global connector options schema (JSON Schema) */
@@ -235,12 +245,24 @@ export interface ConnectorWebhookSchema {
235
245
  * raw-body HMAC, Slack `v0:{ts}:{rawBody}` with timestamp freshness, etc.).
236
246
  */
237
247
  delivery?: 'registered' | 'app_installation';
248
+ /**
249
+ * Where a delivery names its event type: a request header (GitHub
250
+ * `x-github-event`) or a dotted body path. The platform matches it against
251
+ * each feed's `webhook.events` to dispatch a verified data delivery to the
252
+ * feeds it updates. Without it, per-connection deliveries are stored raw and
253
+ * app-installation deliveries trigger nothing.
254
+ */
255
+ eventType?: {
256
+ header: string;
257
+ } | {
258
+ path: string;
259
+ };
238
260
  /**
239
261
  * `app_installation` mode only: how a VERIFIED delivery is dispatched once the
240
262
  * generic engine has checked its signature.
241
- * - `'data'` (default, absent) — land/trigger through the data path: the
242
- * connector's poll-canonical trigger/store hook when it has one (GitHub), else
243
- * the raw event-ingest path (Jira/Linear).
263
+ * - `'data'` (default, absent) — dispatch to the feeds whose `webhook.events`
264
+ * name the delivery's {@link eventType}; a delivery no feed declares (or a
265
+ * connector with no `eventType`) is acked with nothing triggered.
244
266
  * - `'chat'` — forward to the chat adapter for the connector's provider (Slack;
245
267
  * reusable by any future chat platform), bypassing the data-ingest pipeline.
246
268
  * The engine dispatches on THIS, never on a provider name.
@@ -338,6 +360,8 @@ export interface ConnectorAuthInteractive {
338
360
  }
339
361
  export interface ConnectorAuthBrowser {
340
362
  type: 'browser';
363
+ /** Existing profiles capture cookies; live profiles keep the session in Chrome. */
364
+ mode?: 'cookies' | 'live';
341
365
  required?: boolean;
342
366
  description?: string;
343
367
  requiredDomains?: string[];
@@ -442,6 +466,47 @@ export interface ConnectorInstallationContext {
442
466
  /** Provider-specific install metadata (bot_user_id, account login, …). */
443
467
  metadata?: Record<string, unknown>;
444
468
  }
469
+ /** The persisted part of a feed's {@link FeedDefinition.webhook} declaration. */
470
+ export interface FeedWebhookDeclaration {
471
+ /** Provider event types (values of the connector's `webhook.eventType`) that update this feed. */
472
+ events: string[];
473
+ /** Superseded by `kind`; still accepted, and `'store'` keeps a feed off device notifications. */
474
+ mode?: 'trigger' | 'store';
475
+ /** How a matching delivery is handled. Default `'invalidate'`. */
476
+ kind?: 'invalidate' | 'record';
477
+ /**
478
+ * Which feed instances a delivery belongs to: every `fields` entry maps a
479
+ * feed config key to a dotted payload path, and all of them must hold
480
+ * (AND). Only non-empty scalar values compare; a missing, empty or
481
+ * non-scalar value never matches. Omitted, a delivery reaches every feed of
482
+ * this key on the delivering connection.
483
+ */
484
+ match?: {
485
+ fields: Record<string, string>;
486
+ /** Compare case-insensitively (GitHub owner/repo names). Default exact. */
487
+ caseInsensitive?: boolean;
488
+ };
489
+ }
490
+ /** Context for a `record` feed's {@link RuntimeFeedWebhook.normalize}. */
491
+ export interface WebhookRecordContext<F = Record<string, unknown>> {
492
+ feedKey: string;
493
+ /** The delivery's event type, read through the connector's `webhook.eventType`. */
494
+ eventType: string;
495
+ /** The feed instance's config (never credentials or connection secrets). */
496
+ config: F;
497
+ /** ISO time the platform verified the delivery. */
498
+ receivedAt: string;
499
+ }
500
+ /**
501
+ * Map one verified delivery to the envelope the feed's poll emits for the same
502
+ * source item (same origin_id), or null when the delivery records nothing
503
+ * (e.g. an unstar). Runs with no credentials, network, browser or operations.
504
+ */
505
+ export type WebhookRecordNormalizer<F = Record<string, unknown>> = (payload: unknown, ctx: WebhookRecordContext<F>) => EventEnvelope | null | Promise<EventEnvelope | null>;
506
+ /** Runtime feed webhook: the persisted declaration plus a `record` feed's normalizer. */
507
+ export interface RuntimeFeedWebhook<F = Record<string, unknown>> extends FeedWebhookDeclaration {
508
+ normalize?: WebhookRecordNormalizer<F>;
509
+ }
445
510
  export interface FeedDefinition {
446
511
  /** Feed key, e.g. 'threads' */
447
512
  key: string;
@@ -464,7 +529,7 @@ export interface FeedDefinition {
464
529
  * this feed — every feed instance is created explicitly by the user (or by
465
530
  * the device worker on their behalf). Use this for feeds whose configSchema
466
531
  * has required fields that can only be supplied by an external actor, e.g.
467
- * `local.directory.files` needs a per-folder `folder_id` from the Mac app.
532
+ * the postgres `query` feed needs a user-authored SQL query.
468
533
  */
469
534
  userManaged?: boolean;
470
535
  /**
@@ -476,30 +541,44 @@ export interface FeedDefinition {
476
541
  /** Declares that live reads can honor fixed windows on this source timestamp. */
477
542
  readWindowAxis?: string;
478
543
  /**
479
- * Routes inbound app-webhook deliveries to this feed. Lives on the feed (not
544
+ * Event paths a live read can filter by exact value (`FeedReadContext.match`).
545
+ * A feed that declares them returns EventEnvelope-shaped rows, newest first,
546
+ * so its event-kind attributions and relationships resolve against read rows
547
+ * exactly as they do against synced events.
548
+ */
549
+ matchPaths?: string[];
550
+ /**
551
+ * Routes inbound provider deliveries to this feed. Lives on the feed (not
480
552
  * the connector's webhook schema) because feeds_schema is the persisted,
481
- * server-readable surface — the app-webhook router reads this to dispatch a
482
- * delivery WITHOUT hardcoding provider event types. The connector owns this
483
- * knowledge (which event updates which feed, and whether the payload is
484
- * complete enough to store):
485
- * - `mode: 'trigger'` (default) — the poll brings more than the webhook, so
486
- * mark this feed due and let the poll fetch the complete record (deduped by
487
- * origin_id). Use for events whose poll endpoint returns richer data.
488
- * - `mode: 'store'` — the payload is event-complete (e.g. a GitHub `star`
489
- * carries the actor + starred_at) and re-polling the whole list is wasteful,
490
- * so the router stores the structured event directly, consolidating with the
491
- * poll on the same origin_id.
553
+ * server-readable surface — the platform reads this to dispatch a delivery
554
+ * WITHOUT hardcoding provider event types. The connector owns this knowledge
555
+ * (which event updates which feed, and whether the payload is complete
556
+ * enough to record):
557
+ * - `kind: 'invalidate'` (default) — the poll brings more than the webhook,
558
+ * so mark this feed due and let the poll fetch the complete record (deduped
559
+ * by origin_id). On a read-only feed, these are `automationEvents` keys
560
+ * whose source references (from `observe`) activate subscribed Automations
561
+ * without importing content.
562
+ * - `kind: 'record'` — the payload is event-complete (e.g. a GitHub `star`
563
+ * carries the actor + starred_at), so the runtime feed's `normalize` maps it
564
+ * to the same envelope (and origin_id) the poll emits, and the platform
565
+ * stores it without re-polling.
492
566
  */
493
- webhook?: {
494
- /** Provider webhook event types (e.g. `x-github-event` values) that update this feed. */
495
- events: string[];
496
- /** How a matching delivery is handled. Default `'trigger'`. */
497
- mode?: 'trigger' | 'store';
498
- };
567
+ webhook?: FeedWebhookDeclaration;
499
568
  /** Event kinds this feed produces, keyed by kind slug */
500
569
  eventKinds?: Record<string, {
501
570
  description?: string;
502
571
  metadataSchema?: Record<string, unknown>;
572
+ /**
573
+ * Opt in to a separate `<kind>.updated` Automation trigger when a sync
574
+ * supersedes this source item with changed durable content and strictly
575
+ * newer `occurred_at` activity. The original kind remains insert-only.
576
+ * Unchanged rows, volatile-only updates and cold-start backfills stay
577
+ * quiet. Use activity time for `occurred_at`, not a scheduled start time.
578
+ * A declared literal kind wins a collision; composite keys over 100
579
+ * characters are not derived. Persisted unchanged in feeds_schema.
580
+ */
581
+ updatedEvent?: boolean;
503
582
  /**
504
583
  * Generic event attribution declarations. New connector work should model
505
584
  * "who authored / what resource this event belongs to / what it is about"
@@ -745,14 +824,12 @@ export interface EventEnvelope {
745
824
  origin_id: string;
746
825
  /** Source-native item type (e.g. post, message, issue) */
747
826
  origin_type?: string;
748
- /** Content format: 'text' (default), 'markdown', 'json_template', 'media', 'empty' */
749
- payload_type?: 'text' | 'markdown' | 'json_template' | 'media' | 'empty';
827
+ /** Content format: 'text' (default), 'markdown', 'media', 'empty' */
828
+ payload_type?: 'text' | 'markdown' | 'media' | 'empty';
750
829
  /** Main text content */
751
830
  payload_text: string;
752
- /** Structured data (template data for json_template, or structured metadata for media) */
831
+ /** Structured event data, preserved alongside content and media. */
753
832
  payload_data?: Record<string, unknown>;
754
- /** JSON template for rendering (required when payload_type is 'json_template') */
755
- payload_template?: Record<string, unknown> | null;
756
833
  /** File or media attachments */
757
834
  attachments?: unknown[];
758
835
  /** Title / subject line */
@@ -784,6 +861,8 @@ export interface EventEnvelope {
784
861
  * - `F` — feed config shape (defaults to `Record<string, unknown>`)
785
862
  */
786
863
  export interface SyncContext<C = Record<string, unknown>, F = Record<string, unknown>> {
864
+ /** Browser handle scoped by the host to this connection and declared origins. */
865
+ browser?: ChromeActionDispatcher;
787
866
  /** Feed key */
788
867
  feedKey: string;
789
868
  /**
@@ -896,6 +975,8 @@ export interface WebhookRegistration {
896
975
  metadata?: Record<string, unknown>;
897
976
  }
898
977
  export type FeedOperation = 'sync' | 'read';
978
+ /** Installs/reconnects a source listener. Delivery uses the existing browser feed transport. */
979
+ export type FeedObserveContext<C = Record<string, unknown>, F = Record<string, unknown>> = Omit<SyncContext<C, F>, 'commit' | 'entityIds'>;
899
980
  /** Fixed half-open source-time bounds, preserved across every page of a read. */
900
981
  export interface FeedReadWindow {
901
982
  start: string;
@@ -911,6 +992,8 @@ export interface FeedReadWindowCoverage extends FeedReadWindow {
911
992
  * returned to the caller without being persisted by this contract.
912
993
  */
913
994
  export interface FeedReadContext<F = Record<string, unknown>> {
995
+ /** Browser handle scoped by the host to this connection and declared origins. */
996
+ browser?: ChromeActionDispatcher;
914
997
  feedId?: number;
915
998
  feedKey: string;
916
999
  query?: string;
@@ -927,9 +1010,27 @@ export interface FeedReadContext<F = Record<string, unknown>> {
927
1010
  column: string;
928
1011
  order: 'asc' | 'desc';
929
1012
  };
1013
+ /**
1014
+ * Exact-value filter on one of the feed's declared `matchPaths`. A matched
1015
+ * read pages only by `nextCursor`: a result without one is the last page.
1016
+ * Source-native page tokens are supported. Merged record activity also
1017
+ * needs `FeedReadResult.rowCursors` to resume a partially consumed page.
1018
+ */
1019
+ match?: FeedReadMatch;
1020
+ }
1021
+ export interface FeedReadMatch {
1022
+ path: string;
1023
+ values: string[];
930
1024
  }
931
1025
  export interface FeedReadResult {
932
1026
  rows: Record<string, unknown>[];
1027
+ /**
1028
+ * Optional exact resume token after each row, in the same order as `rows`.
1029
+ * Supply only when the source can seek past a stable row key even if that
1030
+ * row is deleted. Enables merging partially consumed pages across feeds.
1031
+ * Ordinary page-token readers omit this; never synthesize it from offsets.
1032
+ */
1033
+ rowCursors?: string[];
933
1034
  columns?: {
934
1035
  name: string;
935
1036
  type: string;
@@ -945,9 +1046,12 @@ export interface FeedReadResult {
945
1046
  export type FeedSyncHandler<C = Record<string, unknown>, F = Record<string, unknown>> = (ctx: SyncContext<C, F>) => Promise<SyncResult>;
946
1047
  export type FeedReadHandler<F = Record<string, unknown>> = (ctx: FeedReadContext<F>) => Promise<FeedReadResult>;
947
1048
  /** Executable feed definition held only inside a connector runtime. */
948
- export interface RuntimeFeedDefinition<C = Record<string, unknown>, F = Record<string, unknown>> extends Omit<FeedDefinition, 'operations'> {
1049
+ export interface RuntimeFeedDefinition<C = Record<string, unknown>, F = Record<string, unknown>> extends Omit<FeedDefinition, 'operations' | 'webhook'> {
1050
+ webhook?: RuntimeFeedWebhook<F>;
949
1051
  sync?: FeedSyncHandler<C, F>;
950
1052
  read?: FeedReadHandler<F>;
1053
+ /** Setup only: emits no result and does not add a feed operation. */
1054
+ observe?: (ctx: FeedObserveContext<C, F>) => Promise<void>;
951
1055
  }
952
1056
  /** Runtime-only connector definition. Metadata extraction strips handlers. */
953
1057
  export interface RuntimeConnectorDefinition<C = Record<string, unknown>, F = Record<string, unknown>> extends Omit<ConnectorDefinition, 'feeds'> {
@@ -987,6 +1091,20 @@ export interface QueryContext<F = Record<string, unknown>> {
987
1091
  columns: string[];
988
1092
  value: string;
989
1093
  };
1094
+ /**
1095
+ * Shared collection predicates, applied before sorting and pagination.
1096
+ * Search is a literal case-insensitive substring of the projected name.
1097
+ * Attribute filters are ANDed, use typed values, and treat absent fields as
1098
+ * null. The connector owns dialect-safe encoding and must reject unknown
1099
+ * columns. An empty object identifies an unfiltered collection read, allowing
1100
+ * a source to return its population total without counting ordinary SQL reads.
1101
+ * Requires queryCapabilities.selection for nonempty predicates; old sources
1102
+ * keep their unfiltered query semantics when the selection is empty.
1103
+ */
1104
+ selection?: {
1105
+ search?: string;
1106
+ filters?: AttributeFilter[];
1107
+ };
990
1108
  }
991
1109
  /** Result from ConnectorRuntime.query(). Rows are returned to the caller, never persisted. */
992
1110
  export interface QueryResult {
@@ -1105,10 +1223,21 @@ export interface AuthResult {
1105
1223
  [key: string]: unknown;
1106
1224
  };
1107
1225
  }
1226
+ /** Host-mediated calls to a visible native device connection. The target's
1227
+ * Auto/Ask/Block policy applies independently. Pending approval is a receipt,
1228
+ * not a completed effect. Reuse the same key on ambiguous outcomes; do not
1229
+ * blindly retry an interactive prompt. Keys are scoped to the parent run. */
1230
+ export interface ConnectorOperations {
1231
+ execute(request: ConnectorOperationRequest): Promise<ConnectorOperationResult>;
1232
+ }
1108
1233
  /**
1109
1234
  * Context passed to ConnectorRuntime.execute()
1110
1235
  */
1111
1236
  export interface ActionContext {
1237
+ /** Native device operations, delegated through the host's operation lifecycle. */
1238
+ operations?: ConnectorOperations;
1239
+ /** Browser handle scoped by the host to this connection and declared origins. */
1240
+ browser?: ChromeActionDispatcher;
1112
1241
  /** Action key to execute */
1113
1242
  actionKey: string;
1114
1243
  /** Action input parameters */
@@ -1117,13 +1246,7 @@ export interface ActionContext {
1117
1246
  credentials: SyncCredentials | null;
1118
1247
  /** Connection config */
1119
1248
  config: Record<string, unknown>;
1120
- /**
1121
- * Per-run session state. The connector-worker splices a live
1122
- * `chrome_dispatcher` (a `ChromeActionDispatcher`) onto this for action runs
1123
- * the same way it does for syncs, so on-demand actions can drive the paired
1124
- * Owletto Chrome extension (e.g. scrape a page the agent chose at runtime).
1125
- * Null when no session/dispatcher applies.
1126
- */
1249
+ /** Per-run authentication state. Use `browser` for declared browser access. */
1127
1250
  sessionState?: Record<string, unknown> | null;
1128
1251
  /** App-installation context when this connection is backed by an App install. */
1129
1252
  installation?: ConnectorInstallationContext;
@@ -1174,7 +1297,8 @@ export interface ContentItem {
1174
1297
  attachments_bytes?: number;
1175
1298
  rating: string | null;
1176
1299
  source_url: string | null;
1177
- score: number;
1300
+ /** Score returned by the read path; null when no score is available. */
1301
+ score: number | null;
1178
1302
  normalized_score?: number;
1179
1303
  metadata: Record<string, unknown>;
1180
1304
  classifications: Record<string, unknown>;
@@ -1248,7 +1372,7 @@ export interface ContentItem {
1248
1372
  text_content: string;
1249
1373
  occurred_at: string;
1250
1374
  source_url: string;
1251
- score: number;
1375
+ score: number | null;
1252
1376
  } | null;
1253
1377
  /** Only if root not in results AND depth > 0 */
1254
1378
  root_context?: {
@@ -1256,7 +1380,7 @@ export interface ContentItem {
1256
1380
  title: string;
1257
1381
  occurred_at: string;
1258
1382
  source_url: string;
1259
- score: number;
1383
+ score: number | null;
1260
1384
  } | null;
1261
1385
  /** Permalink URL for this specific knowledge item */
1262
1386
  permalink?: string | null;
@@ -30,7 +30,7 @@
30
30
  * ```
31
31
  */
32
32
  import { ConnectorRuntime } from "./connector-runtime.js";
33
- import type { ActionContext, ActionDefinition, ActionResult, AuthContext, AuthResult, ConnectorDefinition, FeedDefinition, FeedReadHandler, FeedSyncHandler, QueryContext, QueryResult, ReflectContext, ReflectResult, WebhookRegistration, WebhookRegistrationContext } from "./connector-types.js";
33
+ import type { ActionContext, ActionDefinition, ActionResult, AuthContext, AuthResult, ConnectorDefinition, FeedDefinition, FeedObserveContext, FeedReadHandler, FeedSyncHandler, QueryContext, QueryResult, ReflectContext, ReflectResult, WebhookRegistration, WebhookRegistrationContext } from "./connector-types.js";
34
34
  /**
35
35
  * A feed's metadata plus one or both executable operations. Capabilities are
36
36
  * inferred from these handlers when metadata is extracted.
@@ -38,9 +38,11 @@ import type { ActionContext, ActionDefinition, ActionResult, AuthContext, AuthRe
38
38
  export type ConnectorFeedSpec<C = Record<string, unknown>, F = Record<string, unknown>> = Omit<FeedDefinition, "key" | "operations"> & ({
39
39
  sync: FeedSyncHandler<C, F>;
40
40
  read?: FeedReadHandler<F>;
41
+ observe?: never;
41
42
  } | {
42
- sync?: FeedSyncHandler<C, F>;
43
+ sync?: never;
43
44
  read: FeedReadHandler<F>;
45
+ observe?: (ctx: FeedObserveContext<C, F>) => Promise<void>;
44
46
  });
45
47
  /** An action's metadata (minus `key`) plus its `execute` handler. */
46
48
  export interface ConnectorActionSpec extends Omit<ActionDefinition, "key"> {
@@ -44,6 +44,7 @@ function buildDefinition(spec) {
44
44
  mcpConfig: spec.mcpConfig,
45
45
  openapiConfig: spec.openapiConfig,
46
46
  requiredCapability: spec.requiredCapability,
47
+ browser: spec.browser,
47
48
  runtime: spec.runtime,
48
49
  webhook: spec.webhook,
49
50
  automationEvents: spec.automationEvents,
@@ -63,7 +64,9 @@ function buildDefinition(spec) {
63
64
  eventKinds: feed.eventKinds,
64
65
  sync: feed.sync,
65
66
  read: feed.read,
67
+ observe: feed.observe,
66
68
  readWindowAxis: feed.readWindowAxis,
69
+ matchPaths: feed.matchPaths,
67
70
  },
68
71
  ]));
69
72
  }
@@ -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, ConnectorRuntimeInfo, ConnectorWebhookSchema, ContentItem, EntityIdentitySpec, EntityLinkPredicate, EntityTraitSpec, EventAttributionRole, EventAttributionRule, EventAttributionTargetSpec, EventEnvelope, Feed, FeedDefinition, FeedOperation, FeedReadContext, FeedReadHandler, FeedReadResult, FeedReadWindow, FeedReadWindowCoverage, FeedSyncHandler, EntityTypeContribution, QueryContext, QueryResult, ReflectContext, ReflectedMeasure, ReflectResult, Run, RunStatus, RunType, RuntimeConnectorDefinition, RuntimeFeedDefinition, SyncContext, SyncCredentials, SyncResult, 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, 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';
@@ -34,19 +34,25 @@ export { calculateEngagementScore } from './scoring.js';
34
34
  export { ConnectorAutomationEventSchema, ConnectorAutomationSignalDraftSchema, SubscriptionCandidateSchema, } from './automation-triggers.js';
35
35
  export type { AutomationEventTrigger, AutomationScheduleTrigger, AutomationTrigger, AutomationWorkspaceEventTrigger, ConnectorAutomationEvent, ConnectorAutomationSignalDraft, ConnectorTriggerSignal, SubscriptionCandidate, } from './automation-triggers.js';
36
36
  export { applyLookbackCutoff } from './checkpoint/lookback.js';
37
+ export { buildInjectHandoffBannerExpression, truncateHandoffReason, } from './browser-handoff-banner.js';
38
+ export type { HandoffBannerOptions } from './browser-handoff-banner.js';
39
+ export { assertInboxSourceRead, assertNoCursor, assertNoMatch, assertNoOffsetPaging, assertNoQuery, assertNoSort, assertNoWindow, assertPositiveReadLimit, assertSnapshotSourceRead, jsonByteLength, SOURCE_RECORD_MAX_BYTES, SOURCE_REFERENCE_BATCH_MAX_EVENTS, splitReferenceBatches, } from './browser-source-read.js';
37
40
  export { buildTimestampCheckpoint, filterByCheckpoint, finalizeTimestampSync, } from './checkpoint/timestamp-watermark.js';
38
41
  export { validatePublicUrl, validateUrlDomain } from './url-guards.js';
39
42
  export { sleep } from './sleep.js';
40
43
  export type { ExtensionDomScrapeResult, ExtensionScrapeConfig, ExtensionScrapeObservation, ExtensionScrapeResult, } from './extension-dom-scrape.js';
41
44
  export { extensionDomScrape } from './extension-dom-scrape.js';
45
+ export type { ConnectorBrowserRequirement } from './browser-requirement.js';
46
+ export { BROWSER_VERIFY_OPERATION, BROWSER_VERIFY_ACTION, browserAuthMethod, constrainBrowserInput, requireBrowser, resolveBrowserRequirement, validateBrowserRequirement } from './browser-requirement.js';
42
47
  export type { ChromeActionDispatcher, ChromeActionInput, ChromeActionOutput, ExtensionNetworkConfig, ExtensionNetworkPattern, ExtensionNetworkResult, InterceptedResponse, NavigateObservation, NetworkInterceptDrainObservation, NetworkInterceptStartObservation, } from './extension-network.js';
43
48
  export { extensionNetworkSync } from './extension-network.js';
44
49
  export type { AutomationScriptContext, ReactionContext, } from './reaction-sdk.js';
45
50
  export type { ReactionClient } from './reaction-client-types.js';
46
51
  export type { CardElement, KnowledgeDeleteInput, KnowledgeReadInput, KnowledgeSaveInput, KnowledgeSaveResult, KnowledgeSearchInput, NotificationsSendInput, NotificationsSendResult, } from './reaction-client-types.js';
47
52
  export type { ConnectionListInput } from '@lobu/core/contracts/tools/manage-connections';
53
+ export type { CollectionPresentation } from '@lobu/core/contracts/tools/collection-presentation';
48
54
  export type { EntityCreateInput, EntityDeleteInput, EntityGetInput, EntityLinkInput, EntityListInput, EntityListLinksInput, EntityUnlinkInput, EntityUpdateInput, EntityUpdateLinkInput, } from '@lobu/core/contracts/tools/manage-entity';
49
- export type { OperationExecuteInput, OperationListAvailableInput, OperationListRunsInput, } from '@lobu/core/contracts/tools/manage-operations';
55
+ export type { ConnectorOperationRequest, ConnectorOperationResult, OperationExecuteInput, OperationListAvailableInput, OperationListRunsInput, } from '@lobu/core/contracts/tools/manage-operations';
50
56
  export type { Env } from './types.js';
51
57
  export type { FileDelta, FileSystemSource, Snapshot } from './file-source.js';
52
58
  export { connect } from './net.js';
@@ -33,10 +33,13 @@ export { ConnectorAutomationEventSchema, ConnectorAutomationSignalDraftSchema, S
33
33
  // The root must stay loadable inside a V8 isolate.
34
34
  // =============================================================================
35
35
  export { applyLookbackCutoff } from './checkpoint/lookback.js';
36
+ export { buildInjectHandoffBannerExpression, truncateHandoffReason, } from './browser-handoff-banner.js';
37
+ export { assertInboxSourceRead, assertNoCursor, assertNoMatch, assertNoOffsetPaging, assertNoQuery, assertNoSort, assertNoWindow, assertPositiveReadLimit, assertSnapshotSourceRead, jsonByteLength, SOURCE_RECORD_MAX_BYTES, SOURCE_REFERENCE_BATCH_MAX_EVENTS, splitReferenceBatches, } from './browser-source-read.js';
36
38
  export { buildTimestampCheckpoint, filterByCheckpoint, finalizeTimestampSync, } from './checkpoint/timestamp-watermark.js';
37
39
  export { validatePublicUrl, validateUrlDomain } from './url-guards.js';
38
40
  export { sleep } from './sleep.js';
39
41
  export { extensionDomScrape } from './extension-dom-scrape.js';
42
+ export { BROWSER_VERIFY_OPERATION, BROWSER_VERIFY_ACTION, browserAuthMethod, constrainBrowserInput, requireBrowser, resolveBrowserRequirement, validateBrowserRequirement } from './browser-requirement.js';
40
43
  export { extensionNetworkSync } from './extension-network.js';
41
44
  // =============================================================================
42
45
  // WinterCG Direct Sockets (Cloudflare / Isolate Sockets API)
@@ -14,7 +14,7 @@
14
14
  */
15
15
  import type { DeleteContentArgs } from "@lobu/core/contracts/tools/delete-knowledge";
16
16
  import type { ConnectionListInput } from "@lobu/core/contracts/tools/manage-connections";
17
- import type { EntityCreateInput, EntityDeleteInput, EntityGetInput, EntityLinkInput, EntityListInput, EntityListLinksInput, EntityUnlinkInput, EntityUpdateInput, EntityUpdateLinkInput } from "@lobu/core/contracts/tools/manage-entity";
17
+ import type { EntityCreateInput, EntityCreateResult, EntityDeleteInput, EntityDeleteResult, EntityDiscoverDuplicatesInput, EntityDiscoverDuplicatesResult, EntityGetInput, EntityGetResult, EntityLinkInput, EntityLinkResult, EntityListInput, EntityListResult, EntityListLinksInput, EntityListLinksResult, EntityUnlinkInput, EntityUnlinkResult, EntityUpdateInput, EntityUpdateResult, EntityUpdateLinkInput, EntityUpdateLinkResult } from "@lobu/core/contracts/tools/manage-entity";
18
18
  import type { OperationExecuteInput, OperationListAvailableInput, OperationListRunsInput } from "@lobu/core/contracts/tools/manage-operations";
19
19
  import type { PublicGetContentArgs } from "@lobu/core/contracts/tools/read-knowledge";
20
20
  import type { SaveContentInput } from "@lobu/core/contracts/tools/save-memory";
@@ -36,11 +36,10 @@ export type CardElement = Record<string, unknown>;
36
36
  */
37
37
  export type KnowledgeSearchInput = PublicSearchArgs;
38
38
  /**
39
- * The `save_memory` contract's own input, from core. The hand-written copy
40
- * lacked `payload_data`, `payload_template` and `attachments`, required
41
- * `content` for every payload type, and advertised a `slug` field the server
42
- * rejects as an unknown argument. Pinned by `ReactionKnowledgeSaveContract`
43
- * in `./reaction-client-types.typecheck`.
39
+ * The `save_memory` contract's own input, from core. Structured data and
40
+ * attachments are retained; only text/Markdown require content.
41
+ * Pinned by `ReactionKnowledgeSaveContract` in
42
+ * `./reaction-client-types.typecheck`.
44
43
  */
45
44
  export type KnowledgeSaveInput = SaveContentInput;
46
45
  /** Tombstone by id, or by the `delete_knowledge` contract's `content_id(s)` + `reason`. */
@@ -142,20 +141,16 @@ export interface ReactionClient {
142
141
  delete(input: KnowledgeDeleteInput): Promise<unknown>;
143
142
  };
144
143
  entities: {
145
- list(filter?: EntityListInput): Promise<unknown>;
146
- get(input: EntityGetInput): Promise<unknown>;
147
- create(input: EntityCreateInput): Promise<{
148
- id: number;
149
- }>;
150
- update(input: EntityUpdateInput): Promise<unknown>;
151
- delete(input: EntityDeleteInput): Promise<unknown>;
152
- link(input: EntityLinkInput): Promise<unknown>;
153
- unlink(input: EntityUnlinkInput): Promise<unknown>;
154
- updateLink(input: EntityUpdateLinkInput): Promise<unknown>;
155
- listLinks(input: EntityListLinksInput): Promise<unknown>;
156
- search(query: string, options?: {
157
- limit?: number;
158
- }): Promise<unknown>;
144
+ discoverDuplicates(input: EntityDiscoverDuplicatesInput): Promise<EntityDiscoverDuplicatesResult>;
145
+ list(filter?: EntityListInput): Promise<EntityListResult>;
146
+ get(input: EntityGetInput): Promise<EntityGetResult>;
147
+ create(input: EntityCreateInput): Promise<EntityCreateResult>;
148
+ update(input: EntityUpdateInput): Promise<EntityUpdateResult>;
149
+ delete(input: EntityDeleteInput): Promise<EntityDeleteResult>;
150
+ link(input: EntityLinkInput): Promise<EntityLinkResult>;
151
+ unlink(input: EntityUnlinkInput): Promise<EntityUnlinkResult>;
152
+ updateLink(input: EntityUpdateLinkInput): Promise<EntityUpdateLinkResult>;
153
+ listLinks(input: EntityListLinksInput): Promise<EntityListLinksResult>;
159
154
  };
160
155
  connections: {
161
156
  /** List configured connections; `device_online` is computed server-side. */
@@ -192,7 +187,7 @@ export interface ReactionClient {
192
187
  getRun(run_id: number): Promise<{
193
188
  run: Record<string, unknown>;
194
189
  }>;
195
- /** Execute one operation and wait for its result. */
190
+ /** Execute one operation and wait for its result; device operations with `background: true` return the queued `run_id` instead. */
196
191
  execute(input: OperationExecuteInput): Promise<{
197
192
  status?: "completed" | "failed" | "timeout" | "pending_approval" | "in_progress";
198
193
  output?: Record<string, unknown>;
@@ -52,6 +52,11 @@ export type ReactionKnowledgeSaveContract = [
52
52
  Assert<"payload_data" extends keyof KnowledgeSaveInput ? true : false>,
53
53
  Assert<"supersedes_event_id" extends keyof KnowledgeSaveInput ? true : false>,
54
54
  Assert<"slug" extends keyof KnowledgeSaveInput ? false : true>,
55
+ Assert<"payload_template" extends keyof KnowledgeSaveInput ? false : true>,
56
+ Assert<{
57
+ semantic_type: "note";
58
+ payload_type: "json_template";
59
+ } extends KnowledgeSaveInput ? false : true>,
55
60
  Assert<{
56
61
  semantic_type: "note";
57
62
  payload_type: "empty";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobu/connector-sdk",
3
- "version": "21.2.1",
3
+ "version": "23.0.0",
4
4
  "description": "Lobu memory SDK — build pluggable connectors for Lobu memory",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -16,6 +16,18 @@
16
16
  "default": "./dist/index.js"
17
17
  }
18
18
  },
19
+ "./browser-requirement": {
20
+ "types": "./dist/browser-requirement.d.ts",
21
+ "import": "./dist/browser-requirement.js"
22
+ },
23
+ "./browser-handoff-banner": {
24
+ "types": "./dist/browser-handoff-banner.d.ts",
25
+ "import": "./dist/browser-handoff-banner.js"
26
+ },
27
+ "./browser-source-read": {
28
+ "types": "./dist/browser-source-read.d.ts",
29
+ "import": "./dist/browser-source-read.js"
30
+ },
19
31
  "./define-connector": {
20
32
  "import": {
21
33
  "types": "./dist/define-connector.d.ts",
@@ -28,7 +28,7 @@ exports.CUSTOM_TOOL_METADATA = {
28
28
  description: "Post a message to one of your conversations. Pass a conversation handle (from list_conversations) to post to the channel, or a thread handle (returned by a previous send_message) to reply in that thread. This is how an automated/scheduled run speaks in its channel.",
29
29
  },
30
30
  present_event: {
31
- description: "Render an existing Lobu event in the current conversation through its declared json_template. Use the event id returned by knowledge.save; do not hand-author platform card JSON or action ids.",
31
+ description: "Present an existing Lobu event as a summary and Open event link in the current conversation. Custom interactions open in its React view. Use the event id returned by knowledge.save; do not hand-author platform card JSON or action ids.",
32
32
  },
33
33
  schedule_followup: {
34
34
  description: "Schedule one durable future wake-up for yourself in the current conversation. The server fixes the agent and destination from the signed turn; provide a stable idempotency key so retries do not duplicate the wake-up.",
@@ -57,6 +57,8 @@ export interface ConnectionSettings {
57
57
  export interface StoredConnection {
58
58
  id: string;
59
59
  platform: string;
60
+ /** Verified Lobu creator, recorded on first insert and preserved on updates. */
61
+ createdBy?: string;
60
62
  agentId?: string;
61
63
  /**
62
64
  * Organization id this connection belongs to. Optional in the type for
@@ -8,7 +8,7 @@
8
8
  * importing the barrel is what made those packages unbundleable, not anything
9
9
  * in the tools themselves.
10
10
  *
11
- * Everything re-exported here is pure. Same standing rule as `tool-policy.ts`:
11
+ * Everything re-exported here is pure. Same standing rule as `shell-safety.ts`:
12
12
  * never grow a Node import or a root `@lobu/core` import in this module or the
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.
@@ -9,7 +9,7 @@
9
9
  * importing the barrel is what made those packages unbundleable, not anything
10
10
  * in the tools themselves.
11
11
  *
12
- * Everything re-exported here is pure. Same standing rule as `tool-policy.ts`:
12
+ * Everything re-exported here is pure. Same standing rule as `shell-safety.ts`:
13
13
  * never grow a Node import or a root `@lobu/core` import in this module or the
14
14
  * modules it names, or the isolate lane loses its gateway tools with no
15
15
  * compile error to say so — `assertIsolateEligible` catches it at run time.
@@ -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", "system_audio", "computer_use"];
4
+ export declare const MAC_DEVICE_CAPABILITIES: readonly ["automations.execute", "screentime", "local_directory", "healthkit", "photos", "calendar", "reminders", "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[];