@lobu/runtime-server 22.0.0 → 24.0.0

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