@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
@@ -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-chat`,
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,12 +26,30 @@
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.DispatchChromeActionResponseSchema = exports.DispatchChromeActionRequestSchema = 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.CompleteDeviceChatResponseSchema = exports.CompleteDeviceChatRequestSchema = 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.DeviceChatPollPayloadSchema = exports.DEVICE_CHAT_MAX_CONTEXT_LENGTH = exports.DeviceChatHistoryMessageSchema = 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.CONNECTOR_HTTP_MAX_BYTES = exports.CONNECTOR_HTTP_AUTH_CAPABILITY = void 0;
30
- exports.HeartbeatResponseSchema = 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 manage_operations_1 = require("../tools/manage-operations");
33
33
  exports.CONNECTOR_HTTP_AUTH_CAPABILITY = "http_auth";
34
34
  exports.CONNECTOR_HTTP_MAX_BYTES = 4 * 1024 * 1024;
35
+ /** Source identity for device controls, named like the operations activity feed fields. */
36
+ exports.SourceAttributionSchema = typebox_1.Type.Object({
37
+ platform: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
38
+ connection_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Integer(), typebox_1.Type.Null()])),
39
+ connection_name: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
40
+ feed_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Integer(), typebox_1.Type.Null()])),
41
+ feed_key: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
42
+ feed_name: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
43
+ automation_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Integer(), typebox_1.Type.Null()])),
44
+ automation_name: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
45
+ agent_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
46
+ agent_name: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
47
+ client_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
48
+ client_name: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
49
+ device_worker_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
50
+ device_label: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
51
+ device_platform: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
52
+ }, { additionalProperties: false });
35
53
  exports.ConnectorHttpRequestSchema = typebox_1.Type.Object({
36
54
  url: typebox_1.Type.String({ maxLength: 16384 }),
37
55
  method: typebox_1.Type.String({ maxLength: 32 }),
@@ -62,15 +80,13 @@ exports.RunTypeSchema = typebox_1.Type.Union([
62
80
  typebox_1.Type.Literal("sync"),
63
81
  typebox_1.Type.Literal("action"),
64
82
  typebox_1.Type.Literal("automation"),
65
- typebox_1.Type.Literal("chat_message"),
66
83
  typebox_1.Type.Literal("embed_backfill"),
67
84
  typebox_1.Type.Literal("auth"),
68
85
  /**
69
86
  * One conversation turn executed as one isolate job, claimed only by a fleet
70
87
  * worker that advertises the lane and run through `IsolateExecutor`. Distinct
71
- * from `chat_message`, a lobu-queue row the gateway drains to a subprocess
72
- * worker — or, when the agent is device-pinned, hands to that device through
73
- * this same poll. A daemon that predates this lane must never claim an
88
+ * from `chat_message`, a lobu-queue row the gateway drains itself and never
89
+ * hands to a poller. A daemon that predates this lane must never claim an
74
90
  * `agent_turn`: its dispatch would fall through to a connector sync.
75
91
  */
76
92
  typebox_1.Type.Literal("agent_turn"),
@@ -133,13 +149,48 @@ exports.EXECUTION_BACKENDS = {
133
149
  function defaultBackendCapacity() {
134
150
  return { [exports.EXECUTION_BACKENDS.compiledConnector]: 1 };
135
151
  }
136
- /** Bounded source-activity hint included in a worker poll. */
152
+ /** Source references only. Message bodies and arbitrary attributes never enter this transport. */
153
+ const FeedReferenceEventSchema = typebox_1.Type.Object({
154
+ id: typebox_1.Type.String({ minLength: 1, maxLength: 1024 }),
155
+ event_type: typebox_1.Type.String({ minLength: 1, maxLength: 100 }),
156
+ resource_ref: typebox_1.Type.String({ minLength: 1, maxLength: 1024 }),
157
+ resource_type: typebox_1.Type.Optional(typebox_1.Type.String({ minLength: 1, maxLength: 100 })),
158
+ occurred_at: typebox_1.Type.Optional(typebox_1.Type.String({ maxLength: 64 })),
159
+ }, { additionalProperties: false });
160
+ /** Each reference batch is atomic in the existing browser buffer and delivery transaction. */
161
+ const FeedReferenceBatchSchema = typebox_1.Type.Object({
162
+ id: typebox_1.Type.String({ minLength: 1, maxLength: 1024 }),
163
+ events: typebox_1.Type.Array(FeedReferenceEventSchema, { maxItems: 500 }),
164
+ checkpoint: typebox_1.Type.Optional(typebox_1.Type.Object({
165
+ previous: typebox_1.Type.Union([
166
+ typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown()),
167
+ typebox_1.Type.Null(),
168
+ ]),
169
+ next: typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown()),
170
+ }, { additionalProperties: false })),
171
+ more: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
172
+ }, { additionalProperties: false });
173
+ const FeedSubscriptionNotificationSchema = typebox_1.Type.Object({
174
+ scope_key: typebox_1.Type.String({ minLength: 1, maxLength: 100 }),
175
+ binding_id: typebox_1.Type.String({ minLength: 1, maxLength: 200 }),
176
+ epoch: typebox_1.Type.String({ minLength: 1, maxLength: 200 }),
177
+ needs_rebind: typebox_1.Type.Boolean(),
178
+ records: typebox_1.Type.Array(typebox_1.Type.Object({
179
+ revision: typebox_1.Type.Integer({
180
+ minimum: 1,
181
+ maximum: Number.MAX_SAFE_INTEGER,
182
+ }),
183
+ payload: FeedReferenceBatchSchema,
184
+ }, { additionalProperties: false }), { maxItems: 25 }),
185
+ }, { additionalProperties: false });
186
+ /** Bounded source activity and optional reference deliveries included in a worker poll. */
137
187
  exports.FeedNotificationSchema = typebox_1.Type.Object({
138
188
  feed_id: typebox_1.Type.Integer({ minimum: 1 }),
139
189
  connection_id: typebox_1.Type.Integer({ minimum: 1 }),
140
190
  feed_key: typebox_1.Type.String({ minLength: 1, maxLength: 200 }),
141
191
  notification_id: typebox_1.Type.String({ minLength: 1, maxLength: 200 }),
142
192
  changed: typebox_1.Type.Boolean(),
193
+ subscription: typebox_1.Type.Optional(FeedSubscriptionNotificationSchema),
143
194
  });
144
195
  /**
145
196
  * Ceiling on how long the gateway holds an empty claim request. A client that
@@ -167,7 +218,7 @@ exports.PollRequestSchema = typebox_1.Type.Object({
167
218
  */
168
219
  label: typebox_1.Type.Optional(typebox_1.Type.String()),
169
220
  connector_manifests: typebox_1.Type.Optional(typebox_1.Type.Unknown()),
170
- /** Connector feed wake hints. Records still travel through normal sync. */
221
+ /** Connector feed wake hints, plus source-reference deliveries for subscribed read-only feeds. */
171
222
  feed_notifications: typebox_1.Type.Optional(typebox_1.Type.Array(exports.FeedNotificationSchema, { maxItems: 64 })),
172
223
  /**
173
224
  * Agent kinds this device can run for Automations (e.g. `["claude-code"]`).
@@ -220,7 +271,7 @@ exports.AutomationPollEventSchema = typebox_1.Type.Object({
220
271
  fired_at: typebox_1.Type.String(),
221
272
  payload: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown())),
222
273
  });
223
- /** Identity context for a device-local CLI run (automation or chat). */
274
+ /** Identity context for a device-local Automation CLI run. */
224
275
  exports.AutomationPollContextSchema = typebox_1.Type.Object({
225
276
  device: typebox_1.Type.Object({ worker_id: typebox_1.Type.Optional(typebox_1.Type.String()) }),
226
277
  user: typebox_1.Type.Object({
@@ -257,37 +308,6 @@ exports.AutomationPollPayloadSchema = typebox_1.Type.Object({
257
308
  event: exports.AutomationPollEventSchema,
258
309
  context: exports.AutomationPollContextSchema,
259
310
  });
260
- /** One bounded prior turn shipped to a stateless device CLI. */
261
- exports.DeviceChatHistoryMessageSchema = typebox_1.Type.Object({
262
- role: typebox_1.Type.Union([typebox_1.Type.Literal("user"), typebox_1.Type.Literal("assistant")]),
263
- content: typebox_1.Type.String({ maxLength: 16000 }),
264
- });
265
- /**
266
- * Cap on the device chat envelope's `ephemeral_context`. Exported because the
267
- * producer must agree with it BEFORE enqueueing: the server-side planner keeps
268
- * an Automation whose composed instructions exceed this bound on the durable
269
- * background lane rather than shipping a device turn the poll route would
270
- * silently truncate.
271
- */
272
- exports.DEVICE_CHAT_MAX_CONTEXT_LENGTH = 2048;
273
- /** Device-local chat execution metadata. Conversation ownership stays with `agent.id`. */
274
- exports.DeviceChatPollPayloadSchema = typebox_1.Type.Object({
275
- chat: typebox_1.Type.Object({
276
- agent_kind: typebox_1.Type.String({ minLength: 1, maxLength: 64 }),
277
- execution_config: typebox_1.Type.Optional(exports.AutomationExecutionConfigSchema),
278
- message: typebox_1.Type.String({ maxLength: 32000 }),
279
- ephemeral_context: typebox_1.Type.Optional(typebox_1.Type.String({ maxLength: exports.DEVICE_CHAT_MAX_CONTEXT_LENGTH })),
280
- history: typebox_1.Type.Array(exports.DeviceChatHistoryMessageSchema, { maxItems: 12 }),
281
- agent: typebox_1.Type.Object({
282
- id: typebox_1.Type.String({ minLength: 1 }),
283
- name: typebox_1.Type.Optional(typebox_1.Type.String()),
284
- identity_md: typebox_1.Type.Optional(typebox_1.Type.String()),
285
- soul_md: typebox_1.Type.Optional(typebox_1.Type.String()),
286
- user_md: typebox_1.Type.Optional(typebox_1.Type.String()),
287
- }),
288
- }),
289
- context: exports.AutomationPollContextSchema,
290
- });
291
311
  /**
292
312
  * `payload` of an agent-turn poll response.
293
313
  *
@@ -482,7 +502,7 @@ exports.AgentTurnPollPayloadSchema = typebox_1.Type.Object({
482
502
  input_schema: typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown()),
483
503
  })),
484
504
  /**
485
- * The workspace tools the agent's tool policy admits. They run against
505
+ * The workspace tools available for this turn. They run against
486
506
  * a per-turn in-memory filesystem inside the isolate: local `bash` is
487
507
  * just-bash, the rest are pi's file tools over the same filesystem.
488
508
  * Absent or empty → no workspace tools.
@@ -504,14 +524,8 @@ exports.AgentTurnPollPayloadSchema = typebox_1.Type.Object({
504
524
  * remain in the in-memory workspace.
505
525
  */
506
526
  remote_runtime: typebox_1.Type.Optional(typebox_1.Type.Object({ provider_id: typebox_1.Type.String({ minLength: 1 }) })),
507
- /** The agent's bash prefix policy, enforced before a command runs. */
508
- bash_policy: typebox_1.Type.Optional(typebox_1.Type.Object({
509
- allow_all: typebox_1.Type.Boolean(),
510
- allow_prefixes: typebox_1.Type.Array(typebox_1.Type.String()),
511
- deny_prefixes: typebox_1.Type.Array(typebox_1.Type.String()),
512
- })),
513
527
  /**
514
- * The gateway tools the agent's tool policy admits, by NAME only —
528
+ * The gateway tools available for this turn, by NAME only —
515
529
  * `ask_user`, `send_message`, `suggest_actions` and the rest of
516
530
  * `@lobu/plugin-conversations`. The guest runs that package's own
517
531
  * implementation, so the route, the request body and the schema live
@@ -523,7 +537,7 @@ exports.AgentTurnPollPayloadSchema = typebox_1.Type.Object({
523
537
  */
524
538
  gateway: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String({ minLength: 1 }))),
525
539
  /**
526
- * The media tools the agent's tool policy admits, by NAME only —
540
+ * The media tools available for this turn, by NAME only —
527
541
  * `upload_file`, `generate_image`, `generate_audio` from
528
542
  * `@lobu/plugin-media`. Same contract as `gateway` above: the guest
529
543
  * runs that package's own implementation, so the routes and schemas
@@ -601,6 +615,10 @@ exports.FeedSourceAckSchema = typebox_1.Type.Object({
601
615
  });
602
616
  /** `POST /api/workers/poll` response body (a claimed run, or a poll-again). */
603
617
  exports.PollResponseSchema = typebox_1.Type.Object({
618
+ /** Server-owned display identity. Never sourced from action_input. */
619
+ source_attribution: typebox_1.Type.Optional(exports.SourceAttributionSchema),
620
+ /** Existing run permalink, built by the server for this admitted operation. */
621
+ source_url: typebox_1.Type.Optional(typebox_1.Type.String()),
604
622
  next_poll_seconds: typebox_1.Type.Optional(typebox_1.Type.Number()),
605
623
  feed_notification_receipts: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Object({
606
624
  feed_id: typebox_1.Type.Integer(),
@@ -618,6 +636,10 @@ exports.PollResponseSchema = typebox_1.Type.Object({
618
636
  feed_key: typebox_1.Type.String(),
619
637
  device_worker_id: typebox_1.Type.String(),
620
638
  ack: typebox_1.Type.Union([exports.FeedSourceAckSchema, typebox_1.Type.Null()]),
639
+ subscription: typebox_1.Type.Optional(typebox_1.Type.Object({
640
+ scope_key: typebox_1.Type.String(),
641
+ event_types: typebox_1.Type.Array(typebox_1.Type.String()),
642
+ })),
621
643
  })),
622
644
  page_activations: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Object({
623
645
  run_id: typebox_1.Type.Integer(),
@@ -653,6 +675,7 @@ exports.PollResponseSchema = typebox_1.Type.Object({
653
675
  feed_id: typebox_1.Type.Optional(typebox_1.Type.Integer()),
654
676
  compiled_code: typebox_1.Type.Optional(typebox_1.Type.String()),
655
677
  session_state: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown())),
678
+ browser_grant: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown())),
656
679
  connector_version: typebox_1.Type.Optional(typebox_1.Type.String()),
657
680
  action_key: typebox_1.Type.Optional(typebox_1.Type.String()),
658
681
  /** Native device operation key; public connector operations use action_key. */
@@ -667,15 +690,11 @@ exports.PollResponseSchema = typebox_1.Type.Object({
667
690
  /** Owning org of a claimed device-local CLI run. */
668
691
  organization_id: typebox_1.Type.Optional(typebox_1.Type.String()),
669
692
  /**
670
- * Device-local CLI envelope for `automation` or `chat_message` runs. The
671
- * gateway composes the prompt context and the device reports through the
672
- * matching completion endpoint. No connector code or credentials are shipped.
693
+ * Envelope for an `automation` run (a device-local CLI) or an `agent_turn`
694
+ * run. The gateway composes the prompt context and the worker reports
695
+ * through the matching completion endpoint. No connector code is shipped.
673
696
  */
674
- payload: typebox_1.Type.Optional(typebox_1.Type.Union([
675
- exports.AutomationPollPayloadSchema,
676
- exports.DeviceChatPollPayloadSchema,
677
- exports.AgentTurnPollPayloadSchema,
678
- ])),
697
+ payload: typebox_1.Type.Optional(typebox_1.Type.Union([exports.AutomationPollPayloadSchema, exports.AgentTurnPollPayloadSchema])),
679
698
  });
680
699
  exports.ActivatePageRequestSchema = typebox_1.Type.Object({
681
700
  worker_id: typebox_1.Type.String({ minLength: 1 }),
@@ -691,8 +710,8 @@ exports.ActivatePageResponseSchema = typebox_1.Type.Object({
691
710
  * One collected item in a `/stream` batch. This is the SERVER-accepted superset:
692
711
  * the connector-worker's `ContentItem` sends the plain-content subset (id,
693
712
  * payload_text, author/source/score/embedding…), while richer producers (the
694
- * chrome extension, json_template feeds) also send `payload_type` + the
695
- * `payload_data`/`payload_template`/`attachments` it selects. All are optional
713
+ * chrome extension and media feeds) also send `payload_type` with
714
+ * structured `payload_data` and `attachments`. All are optional
696
715
  * so a bare content item still validates.
697
716
  */
698
717
  exports.ContentItemSchema = typebox_1.Type.Object({
@@ -701,13 +720,11 @@ exports.ContentItemSchema = typebox_1.Type.Object({
701
720
  payload_type: typebox_1.Type.Optional(typebox_1.Type.Union([
702
721
  typebox_1.Type.Literal("text"),
703
722
  typebox_1.Type.Literal("markdown"),
704
- typebox_1.Type.Literal("json_template"),
705
723
  typebox_1.Type.Literal("media"),
706
724
  typebox_1.Type.Literal("empty"),
707
725
  ])),
708
726
  payload_text: typebox_1.Type.String(),
709
727
  payload_data: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown())),
710
- payload_template: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown()), typebox_1.Type.Null()])),
711
728
  attachments: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Unknown())),
712
729
  author_name: typebox_1.Type.Optional(typebox_1.Type.String()),
713
730
  occurred_at: typebox_1.Type.String(),
@@ -824,20 +841,6 @@ exports.CompleteAutomationResponseSchema = typebox_1.Type.Object({
824
841
  run_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Integer(), typebox_1.Type.Null()])),
825
842
  idempotent: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Boolean(), typebox_1.Type.Null()])),
826
843
  });
827
- /** `POST .../complete-chat` terminal report for a `chat_message` turn. */
828
- exports.CompleteDeviceChatRequestSchema = typebox_1.Type.Object({
829
- worker_id: typebox_1.Type.String(),
830
- output: typebox_1.Type.Optional(typebox_1.Type.String()),
831
- error: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
832
- exit_code: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Integer(), typebox_1.Type.Null()])),
833
- exit_signal: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
834
- exit_reason: typebox_1.Type.Optional(exports.WorkerExitReasonSchema),
835
- });
836
- exports.CompleteDeviceChatResponseSchema = typebox_1.Type.Object({
837
- ok: typebox_1.Type.Boolean(),
838
- status: typebox_1.Type.Union([typebox_1.Type.Literal("completed"), typebox_1.Type.Literal("failed")]),
839
- idempotent: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
840
- });
841
844
  /**
842
845
  * `POST /api/workers/complete-agent-turn`.
843
846
  *
@@ -1102,6 +1105,15 @@ exports.HeartbeatRequestSchema = typebox_1.Type.Object({
1102
1105
  */
1103
1106
  turn_tool_events: typebox_1.Type.Optional(typebox_1.Type.Array(exports.TurnToolEventSchema, { maxItems: exports.TURN_TOOL_EVENT_QUEUE_MAX })),
1104
1107
  });
1108
+ /**
1109
+ * Request the gateway delegate a native device operation on behalf of a
1110
+ * running connector action. Scoped to the parent run's live claim.
1111
+ */
1112
+ exports.ExecuteConnectorOperationRequestSchema = typebox_1.Type.Object({
1113
+ parent_run_id: typebox_1.Type.Integer({ minimum: 1 }),
1114
+ worker_id: typebox_1.Type.String({ minLength: 1 }),
1115
+ request: manage_operations_1.ConnectorOperationRequestSchema,
1116
+ }, { additionalProperties: false });
1105
1117
  /**
1106
1118
  * Request the gateway dispatch a chrome connector action on behalf of a
1107
1119
  * running sync. Scoped to the parent run's org.
@@ -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
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bun
2
2
  export * from "./agent-policy";
3
3
  export * from "./tool-trace-summary";
4
- export * from "./tool-policy";
4
+ export * from "./shell-safety";
5
5
  export * from "./turn-control";
6
6
  export * from "./memory-flush";
7
7
  export type { AgentAccessStore, AgentConfigStore, AgentConnectionStore, AgentMetadata, AgentSettings, AgentStore, ConnectionSettings, Grant, GrantKind, StoredConnection, } from "./agent-store";
@@ -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";
@@ -29,9 +30,8 @@ export type { ProviderConfigEntry, ProviderOAuthConfig, ProviderOAuthGrantKind,
29
30
  export { isSdkCompat, type PiAiApi, resolveSdkCompat, SDK_COMPAT_PROTOCOLS, type SdkCompat, type SdkCompatProtocol, } from "./sdk-compat";
30
31
  export * from "./secret-refs";
31
32
  export * from "./reserved";
32
- export { getSentry, initSentry } from "./sentry";
33
33
  export { extractTraceId, generateTraceId } from "./trace";
34
- export type { AgentErrorContext, AgentInlineGuardrail, AgentOptions, AuthProfile, ConversationMessage, DeclaredCredential, HistoryMessage, InstructionContext, InstructionProvider, LogLevel, McpOAuthConfig, NetworkConfig, NixConfig, RegistryEntry, SessionContext, SkillConfig, SkillsConfig, SuggestedPrompt, ThinkingLevel, ThreadResponsePayload, ToolsConfig, } from "./types";
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";
35
35
  export { hasCredentialSource } from "./types";
36
36
  export { SUGGESTION_LIMITS, sanitizeSuggestionPrompts } from "./types";
37
37
  export type { BaseMessage } from "./types/message";
@@ -43,12 +43,12 @@ export * from "./utils/network-domains";
43
43
  export * from "./utils/retry";
44
44
  export * from "./utils/sanitize";
45
45
  export * from "./utils/secret-redaction";
46
- export * from "./utils/sentry-scrubber";
46
+ export * from "./utils/diagnostic-scrubber";
47
47
  export { entryToMessage, type ParsedMessage, type ParsedMessageType, parseSessionEntries, type SessionEntry, titleFromSessionJsonl, } from "./utils/session-file";
48
48
  export { slugify } from "./utils/slug";
49
49
  export * from "./utils/urls";
50
50
  export * from "./worker/auth";
51
51
  export type { WorkerTransport, WorkerTransportConfig, } from "./worker/transport";
52
- export type { DeviceExecutionTarget, JobType, MessagePayload, QueuedMessage, } from "./worker/wire";
52
+ export type { JobType, MessagePayload, QueuedMessage, } from "./worker/wire";
53
53
  export { withLobuFileParameters } from "./agent-tooling";
54
54
  //# sourceMappingURL=index.d.ts.map
@@ -16,10 +16,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.withLobuFileParameters = exports.slugify = exports.titleFromSessionJsonl = exports.parseSessionEntries = exports.entryToMessage = exports.sanitizeSuggestionPrompts = exports.SUGGESTION_LIMITS = exports.hasCredentialSource = exports.generateTraceId = exports.extractTraceId = exports.initSentry = exports.getSentry = exports.SDK_COMPAT_PROTOCOLS = exports.resolveSdkCompat = exports.isSdkCompat = exports.withSpan = exports.withChildSpan = exports.shutdownTracing = exports.SpanStatusCode = exports.SpanKind = exports.runInSpanContext = exports.initTracing = exports.getTracer = exports.getTraceparent = exports.getCurrentSpan = exports.flushTracing = exports.createSpan = exports.createRootSpan = exports.createChildSpan = exports.renderSkillMemorySection = exports.renderFallbackSystemContext = exports.BaseInstructionProvider = exports.CommandRegistry = exports.inferGrantKind = void 0;
19
+ exports.withLobuFileParameters = exports.slugify = exports.titleFromSessionJsonl = exports.parseSessionEntries = exports.entryToMessage = exports.sanitizeSuggestionPrompts = exports.SUGGESTION_LIMITS = exports.hasCredentialSource = exports.generateTraceId = exports.extractTraceId = exports.SDK_COMPAT_PROTOCOLS = exports.resolveSdkCompat = exports.isSdkCompat = exports.withSpan = exports.withChildSpan = exports.shutdownTracing = exports.SpanStatusCode = exports.SpanKind = exports.runInSpanContext = exports.initTracing = exports.getTracer = exports.getTraceparent = exports.getCurrentSpan = exports.flushTracing = exports.createSpan = exports.createRootSpan = exports.createChildSpan = exports.renderSkillMemorySection = exports.renderFallbackSystemContext = exports.BaseInstructionProvider = exports.CommandRegistry = exports.inferGrantKind = void 0;
20
20
  __exportStar(require("./agent-policy"), exports);
21
21
  __exportStar(require("./tool-trace-summary"), exports);
22
- __exportStar(require("./tool-policy"), exports);
22
+ __exportStar(require("./shell-safety"), exports);
23
23
  __exportStar(require("./turn-control"), exports);
24
24
  __exportStar(require("./memory-flush"), exports);
25
25
  var agent_store_1 = require("./agent-store");
@@ -30,6 +30,7 @@ var command_registry_1 = require("./command-registry");
30
30
  Object.defineProperty(exports, "CommandRegistry", { enumerable: true, get: function () { return command_registry_1.CommandRegistry; } });
31
31
  __exportStar(require("./connector-query-errors"), exports);
32
32
  __exportStar(require("./constants"), exports);
33
+ __exportStar(require("./device-pin-tombstones"), exports);
33
34
  // Interaction-envelope wire literals (tool_approval resourceKind / attribution).
34
35
  // Deep import `@lobu/core/contracts/interaction-envelope` also works under
35
36
  // bundler/NodeNext resolution; plugin packages with classic `moduleResolution:
@@ -78,9 +79,6 @@ __exportStar(require("./secret-refs"), exports);
78
79
  // Reserved path / entity-type slug lists + kind helpers (single source)
79
80
  __exportStar(require("./reserved"), exports);
80
81
  // Observability
81
- var sentry_1 = require("./sentry");
82
- Object.defineProperty(exports, "getSentry", { enumerable: true, get: function () { return sentry_1.getSentry; } });
83
- Object.defineProperty(exports, "initSentry", { enumerable: true, get: function () { return sentry_1.initSentry; } });
84
82
  var trace_1 = require("./trace");
85
83
  Object.defineProperty(exports, "extractTraceId", { enumerable: true, get: function () { return trace_1.extractTraceId; } });
86
84
  Object.defineProperty(exports, "generateTraceId", { enumerable: true, get: function () { return trace_1.generateTraceId; } });
@@ -97,7 +95,7 @@ __exportStar(require("./utils/network-domains"), exports);
97
95
  __exportStar(require("./utils/retry"), exports);
98
96
  __exportStar(require("./utils/sanitize"), exports);
99
97
  __exportStar(require("./utils/secret-redaction"), exports);
100
- __exportStar(require("./utils/sentry-scrubber"), exports);
98
+ __exportStar(require("./utils/diagnostic-scrubber"), exports);
101
99
  // Shared Lobu runtime session.jsonl parser (gateway + worker).
102
100
  var session_file_1 = require("./utils/session-file");
103
101
  Object.defineProperty(exports, "entryToMessage", { enumerable: true, get: function () { return session_file_1.entryToMessage; } });
@@ -1,13 +1,10 @@
1
1
  /**
2
2
  * Shared vocabulary for the `json_template` render DSL.
3
3
  *
4
- * The DSL is authored once per event kind / entity type and rendered on three
5
- * surfaces: the web app and MCP apps (owletto's `json-renderer`) and chat
6
- * notification delivery (the server's `template-card`). The *formatting* of a
7
- * bound scalar must agree across all three — a date that reads "Aug 19, 2026"
8
- * in the Memory view cannot read "2026-08-19T00:00:00Z" in Slack — so the
9
- * format directives and their implementation live here rather than being
10
- * reimplemented per surface.
4
+ * Entity/list templates and historical event templates share this vocabulary
5
+ * across web and MCP rendering. Their bound values use the same formatting
6
+ * directives rather than reimplementing scalar formatting per renderer.
7
+ * Chat summaries and native decisions do not interpret this DSL.
11
8
  *
12
9
  * Structural node shapes stay with each renderer: the node vocabulary is
13
10
  * deliberately open (see the server's `validate-json-template`), and each
@@ -78,9 +75,8 @@ export interface TemplateVisitor<T> {
78
75
  *
79
76
  * `props` arrive RESOLVED: `{{path}}` yields the bound value with its type
80
77
  * intact, `"a/{{b}}"` interpolates to a string. Handler props (`onClick` and
81
- * friends) are split into `actions` as bare action names, because a surface
82
- * without a JS context — a chat card — still needs to know which action a
83
- * button invokes.
78
+ * friends) are split into `actions` as bare action names so each renderer
79
+ * can bind its own handlers.
84
80
  */
85
81
  component(type: string, props: Record<string, unknown>, children: T[], ctx: {
86
82
  actions: Record<string, string>;
@@ -2,13 +2,10 @@
2
2
  /**
3
3
  * Shared vocabulary for the `json_template` render DSL.
4
4
  *
5
- * The DSL is authored once per event kind / entity type and rendered on three
6
- * surfaces: the web app and MCP apps (owletto's `json-renderer`) and chat
7
- * notification delivery (the server's `template-card`). The *formatting* of a
8
- * bound scalar must agree across all three — a date that reads "Aug 19, 2026"
9
- * in the Memory view cannot read "2026-08-19T00:00:00Z" in Slack — so the
10
- * format directives and their implementation live here rather than being
11
- * reimplemented per surface.
5
+ * Entity/list templates and historical event templates share this vocabulary
6
+ * across web and MCP rendering. Their bound values use the same formatting
7
+ * directives rather than reimplementing scalar formatting per renderer.
8
+ * Chat summaries and native decisions do not interpret this DSL.
12
9
  *
13
10
  * Structural node shapes stay with each renderer: the node vocabulary is
14
11
  * deliberately open (see the server's `validate-json-template`), and each
@@ -247,8 +244,7 @@ function resolveProps(node, data) {
247
244
  const props = {};
248
245
  const actions = {};
249
246
  for (const [key, value] of Object.entries(raw)) {
250
- // `"@name"` is the DSL's action binding. On the web it resolves to a
251
- // function; a chat card has no such context, so keep the NAME.
247
+ // Keep action names separate from a renderer's JavaScript handlers.
252
248
  if (typeof value === "string" &&
253
249
  value.startsWith("@") &&
254
250
  value.length > 1) {
@@ -10,30 +10,10 @@ const USE_WINSTON_LOGGER = process.env.USE_WINSTON_LOGGER === "true";
10
10
  // Use JSON format for structured logging (better for Loki parsing in production)
11
11
  const USE_JSON_FORMAT = process.env.LOG_FORMAT === "json";
12
12
  const winston_1 = __importDefault(require("winston"));
13
- const SENSITIVE_LOG_KEY_PATTERN = /(?:credential|secret|token|password|api(?:_|-)?key|authorization)/i;
14
- function createRedactingReplacer() {
15
- const seen = new WeakSet();
16
- return (key, value) => {
17
- if (SENSITIVE_LOG_KEY_PATTERN.test(key))
18
- return "[REDACTED]";
19
- if (value instanceof Error) {
20
- return {
21
- name: value.name,
22
- message: value.message,
23
- stack: value.stack?.split("\n")[0],
24
- };
25
- }
26
- if (typeof value === "object" && value !== null) {
27
- if (seen.has(value))
28
- return "[Circular Reference]";
29
- seen.add(value);
30
- }
31
- return value;
32
- };
33
- }
13
+ const diagnostic_scrubber_1 = require("./utils/diagnostic-scrubber");
34
14
  function safeStringify(value, space) {
35
15
  try {
36
- return JSON.stringify(value, createRedactingReplacer(), space);
16
+ return JSON.stringify((0, diagnostic_scrubber_1.scrubDiagnosticValue)(value), null, space);
37
17
  }
38
18
  catch {
39
19
  return "[unserializable]";
@@ -62,7 +42,9 @@ function createConsoleLogger(serviceName) {
62
42
  // Keep the metadata object as a trailing arg so it still renders.
63
43
  // Slicing it away accepted the signature and then dropped the payload,
64
44
  // emptying every structured diagnostic that uses this call shape.
65
- msgStr = args[0];
45
+ // The message itself is a string, so it takes the same boundary
46
+ // scrubbing as any other string message.
47
+ msgStr = (0, diagnostic_scrubber_1.scrubDiagnosticValue)(args[0]);
66
48
  args = [message, ...args.slice(1)];
67
49
  }
68
50
  else {
@@ -71,13 +53,18 @@ function createConsoleLogger(serviceName) {
71
53
  }
72
54
  }
73
55
  else {
74
- msgStr = String(message);
56
+ // Everything else funnels through String() here: plain strings,
57
+ // Errors, and top-level arrays (their join is just message text).
58
+ // Scrub the converted text — the removed final scrub used to cover
59
+ // all of these, and that coverage now lives here.
60
+ msgStr = (0, diagnostic_scrubber_1.scrubDiagnosticValue)(String(message));
75
61
  }
76
62
  if (USE_JSON_FORMAT) {
77
63
  return safeStringify({
78
64
  timestamp,
79
65
  level: lvl,
80
66
  service: serviceName,
67
+ release: process.env.APP_GIT_SHA,
81
68
  message: msgStr,
82
69
  ...(args.length > 0
83
70
  ? { data: args.length === 1 ? args[0] : args }
@@ -141,8 +128,12 @@ function createLogger(serviceName) {
141
128
  ];
142
129
  const logger = winston_1.default.createLogger({
143
130
  level,
144
- format: winston_1.default.format.combine(winston_1.default.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss" }), winston_1.default.format.errors({ stack: true }), winston_1.default.format.splat()),
145
- defaultMeta: { service: serviceName },
131
+ format: winston_1.default.format.combine(winston_1.default.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss" }), winston_1.default.format.errors({ stack: true }), winston_1.default.format.splat(), winston_1.default.format((info) => {
132
+ // Preserve Winston's symbol fields while applying the same boundary
133
+ // scrubbing as the default console transport.
134
+ return Object.assign(info, (0, diagnostic_scrubber_1.scrubDiagnosticValue)(info));
135
+ })()),
136
+ defaultMeta: { service: serviceName, release: process.env.APP_GIT_SHA },
146
137
  transports,
147
138
  });
148
139
  return logger;