@lobu/runtime-server 24.8.0 → 24.9.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 (218) hide show
  1. package/dist/catalogs/connectors.json +83 -6
  2. package/dist/catalogs/skills.json +1 -1
  3. package/dist/component.json +1 -1
  4. package/dist/connectors/README.md +6 -2
  5. package/dist/connectors/github.ts +16 -3
  6. package/dist/connectors/market_quotes.ts +388 -91
  7. package/dist/connectors/postgres.ts +21 -14
  8. package/dist/connectors/x-dm-adapter.js +55 -21
  9. package/dist/connectors/x.ts +1 -1
  10. package/dist/db/migrations/20261109010000_workspace_navigation.sql +14 -0
  11. package/dist/db/migrations/20261110010000_view_resources.sql +11 -0
  12. package/dist/dependencies.bun.lock +61 -61
  13. package/dist/owletto/dist/assets/_-B2C9B2RM.js +2 -0
  14. package/dist/owletto/dist/assets/_-CjyiGzwB.js +3 -0
  15. package/dist/owletto/dist/assets/_agentId-DKHXGvS2.js +2 -0
  16. package/dist/owletto/dist/assets/_agentId-bna2tPsW.js +2 -0
  17. package/dist/owletto/dist/assets/_automationId-CowRFD4E.js +2 -0
  18. package/dist/owletto/dist/assets/_connectorKey._connectionId-dE6im18z.js +2 -0
  19. package/dist/owletto/dist/assets/{_connectorKey.index-DM5MTO8c.js → _connectorKey.index-DqwSv8Zs.js} +2 -2
  20. package/dist/owletto/dist/assets/{_conversationId-OJrZjd0o.js → _conversationId-zcs-S3dY.js} +2 -2
  21. package/dist/owletto/dist/assets/_eventId-BVOVizs4.js +2 -0
  22. package/dist/owletto/dist/assets/_owner-DsvIC94q.js +3 -0
  23. package/dist/owletto/dist/assets/_shape-CWjpzcvv.js +2 -0
  24. package/dist/owletto/dist/assets/_slug-DuCxYsJk.js +2 -0
  25. package/dist/owletto/dist/assets/_viewKey-BqVeHB6Z.js +2 -0
  26. package/dist/owletto/dist/assets/_viewKey-DzyOCG5U.js +2 -0
  27. package/dist/owletto/dist/assets/{accept-invitation-BC-ZIsrf.js → accept-invitation-k1u3zBcn.js} +2 -2
  28. package/dist/owletto/dist/assets/activity-route-view-jTBMW7a9.js +2 -0
  29. package/dist/owletto/dist/assets/{agent-connect-pages-CdDjrHjn.js → agent-connect-pages-D3mVM_q4.js} +4 -4
  30. package/dist/owletto/dist/assets/{agent-editor-form-CDAHRNWl.js → agent-editor-form-Bnc_q5WD.js} +2 -2
  31. package/dist/owletto/dist/assets/{agent-loading-shells-BupiSjR-.js → agent-loading-shells-xteN-pyK.js} +2 -2
  32. package/dist/owletto/dist/assets/{agent-permissions-matrix-ju7L2M0l.js → agent-permissions-matrix-C_ayr0pd.js} +2 -2
  33. package/dist/owletto/dist/assets/{agent-skill-context-B0ZYVE3n.js → agent-skill-context-r0O0BVOu.js} +2 -2
  34. package/dist/owletto/dist/assets/{agent-subpage-shell-ByU0xhXn.js → agent-subpage-shell-C2KpYdu3.js} +2 -2
  35. package/dist/owletto/dist/assets/{agent-thread-DiVKn1WX.js → agent-thread-Bv_chdPy.js} +3 -3
  36. package/dist/owletto/dist/assets/{app._appId-BQWElSoP.js → app._appId-BUcNaSMS.js} +2 -2
  37. package/dist/owletto/dist/assets/{assist-composer-igTXq3DL.js → assist-composer-B1LykXpD.js} +2 -2
  38. package/dist/owletto/dist/assets/automation-run-now-CjkJIkaZ.js +2 -0
  39. package/dist/owletto/dist/assets/{callback-Dmaio9CX.js → callback-kSLa4n5s.js} +2 -2
  40. package/dist/owletto/dist/assets/{card-rE4Ctuy6.js → card-C01y1O-W.js} +2 -2
  41. package/dist/owletto/dist/assets/{claim-BN17CPYh.js → claim-Dnux9Lqf.js} +2 -2
  42. package/dist/owletto/dist/assets/{client-activity-scopes-B7xVaUA-.js → client-activity-scopes-BBIq16tG.js} +2 -2
  43. package/dist/owletto/dist/assets/{client-rows-B3LULJxW.js → client-rows-DGh1O-Fu.js} +2 -2
  44. package/dist/owletto/dist/assets/{clients-CydgUHrc.js → clients-BCvjAJDT.js} +2 -2
  45. package/dist/owletto/dist/assets/{code-editor-UppEMWpt.js → code-editor-BdRMYojw.js} +2 -2
  46. package/dist/owletto/dist/assets/connect-DZeFSGIH.js +2 -0
  47. package/dist/owletto/dist/assets/connect-menu-D4w-JhJW.js +2 -0
  48. package/dist/owletto/dist/assets/connect._clientId-IZEMQJ64.js +2 -0
  49. package/dist/owletto/dist/assets/{connected._clientId-CaF-ZWlZ.js → connected._clientId-BsDzltNz.js} +2 -2
  50. package/dist/owletto/dist/assets/{connection-D8ZAMHBT.js → connection-C7glVpPE.js} +2 -2
  51. package/dist/owletto/dist/assets/{connection-feed-detail-CJYqryAV.js → connection-feed-detail-CJju0qiw.js} +2 -2
  52. package/dist/owletto/dist/assets/{connector-page-shell-C23dWdKz.js → connector-page-shell-BeuyjiB2.js} +2 -2
  53. package/dist/owletto/dist/assets/{connector-provenance-CW4CXtCz.js → connector-provenance-B2C2cjBg.js} +2 -2
  54. package/dist/owletto/dist/assets/{connectors-Bp08_KPq.js → connectors-DSQ5AWPf.js} +2 -2
  55. package/dist/owletto/dist/assets/{consent-_PpYI1cT.js → consent-B6Aw_89N.js} +2 -2
  56. package/dist/owletto/dist/assets/{copy-button-1ALlvZU1.js → copy-button-BhXeXLIm.js} +2 -2
  57. package/dist/owletto/dist/assets/{core.esm-6koO33th.js → core.esm-CJUp2aNZ.js} +3 -3
  58. package/dist/owletto/dist/assets/create-CWcza8NT.js +2 -0
  59. package/dist/owletto/dist/assets/{create-kUevP9Xx.js → create-DUlRsFNn.js} +2 -2
  60. package/dist/owletto/dist/assets/{create-automation-form-BhujNbRr.js → create-automation-form-D141prEG.js} +3 -3
  61. package/dist/owletto/dist/assets/{create-Drx9tcnG.js → create-bGOYifof.js} +2 -2
  62. package/dist/owletto/dist/assets/create._connectorKey-Ds4tpwHP.js +2 -0
  63. package/dist/owletto/dist/assets/{custom-guardrail-edits-B_aCgvoZ.js → custom-guardrail-edits-DuQ28xv3.js} +2 -2
  64. package/dist/owletto/dist/assets/{definition-comparison-3zKUSTt8.js → definition-comparison-BUDNuAN_.js} +2 -2
  65. package/dist/owletto/dist/assets/{detail-page-skeleton-BmxqqIsH.js → detail-page-skeleton-BRHaq5Sj.js} +2 -2
  66. package/dist/owletto/dist/assets/{device-D2eUt_nr.js → device-D3fzoIrM.js} +2 -2
  67. package/dist/owletto/dist/assets/{device-pin-tombstone-BFPbTM_o.js → device-pin-tombstone-BIM-ziCH.js} +2 -2
  68. package/dist/owletto/dist/assets/{device._deviceId-Dqtmb1Xp.js → device._deviceId-BnPqTgK1.js} +2 -2
  69. package/dist/owletto/dist/assets/{dynamic-schema-form-D3KnzCsW.js → dynamic-schema-form-OkIZImgp.js} +2 -2
  70. package/dist/owletto/dist/assets/entity-options-CpeX7iiX.js +2 -0
  71. package/dist/owletto/dist/assets/entity-page-Cjc8oXA2.js +2 -0
  72. package/dist/owletto/dist/assets/{entity-pages-DJNSQrfB.js → entity-pages-18xSANrS.js} +2 -2
  73. package/dist/owletto/dist/assets/entity-schema-graph-uwZ-P0t8.js +2 -0
  74. package/dist/owletto/dist/assets/{entity-type-page-CouHZbc9.js → entity-type-page-MgZ7_0oh.js} +2 -2
  75. package/dist/owletto/dist/assets/event-detail-D6AH6a2C.js +2 -0
  76. package/dist/owletto/dist/assets/events-feed-BI7wNRUY.js +2 -0
  77. package/dist/owletto/dist/assets/filter-editors-DDTwyYt0.js +3 -0
  78. package/dist/owletto/dist/assets/{full-page-spinner-B7A6Ycyi.js → full-page-spinner-DWo519BU.js} +2 -2
  79. package/dist/owletto/dist/assets/index-9tTjJo_J.css +1 -0
  80. package/dist/owletto/dist/assets/{index-B-dZruj6.js → index-BW7IFKXC.js} +2 -2
  81. package/dist/owletto/dist/assets/{index-C7QM3aqU.js → index-BYcFrinP.js} +2 -2
  82. package/dist/owletto/dist/assets/index-BhJsTy-C.js +2 -0
  83. package/dist/owletto/dist/assets/index-CEcsgXDj.js +2 -0
  84. package/dist/owletto/dist/assets/index-CPscKk2u.js +2 -0
  85. package/dist/owletto/dist/assets/{index-DXfYVs5m.js → index-Cd8jMsz8.js} +2 -2
  86. package/dist/owletto/dist/assets/index-CdDNNAx2.js +7906 -0
  87. package/dist/owletto/dist/assets/index-CfJ2-EpK.js +2 -0
  88. package/dist/owletto/dist/assets/{index-BztXeLBN.js → index-D1UCJQl1.js} +2 -2
  89. package/dist/owletto/dist/assets/index-D5DM4g2w.js +2 -0
  90. package/dist/owletto/dist/assets/index-DmqnKGqW.js +2 -0
  91. package/dist/owletto/dist/assets/index-DznAbTOF.js +2 -0
  92. package/dist/owletto/dist/assets/{json-diff-CJK-gzCt.js → json-diff-C-WQqyIf.js} +2 -2
  93. package/dist/owletto/dist/assets/{list-skeleton-bQAZ0hQp.js → list-skeleton-0B1bTrAK.js} +2 -2
  94. package/dist/owletto/dist/assets/{login-DLqL54Rk.js → login-CH7P2AyR.js} +2 -2
  95. package/dist/owletto/dist/assets/{logout-H0F3IfiO.js → logout-D474YsYQ.js} +2 -2
  96. package/dist/owletto/dist/assets/{member-scope-gate-Doic_6qX.js → member-scope-gate-CH_0jHiM.js} +2 -2
  97. package/dist/owletto/dist/assets/memory-browse-page-Ba4aYavw.js +74 -0
  98. package/dist/owletto/dist/assets/{model-selector-BrfaDwIg.js → model-selector-XYmk7Iru.js} +2 -2
  99. package/dist/owletto/dist/assets/needs-you-list-Bd4iiiqm.js +2 -0
  100. package/dist/owletto/dist/assets/new-BOsrRqp8.js +2 -0
  101. package/dist/owletto/dist/assets/{new-5GkxlOuQ.js → new-CJ6TF3Vc.js} +2 -2
  102. package/dist/owletto/dist/assets/{new-BiA4DGoN.js → new-DGPOjak2.js} +2 -2
  103. package/dist/owletto/dist/assets/new-Q0XqiZq2.js +2 -0
  104. package/dist/owletto/dist/assets/{organization-CLrcmgNK.js → organization-hD_Z6TSd.js} +2 -2
  105. package/dist/owletto/dist/assets/peek-pane-content-Cc8YX1oy.js +2 -0
  106. package/dist/owletto/dist/assets/{pending-seed-DYYOoCvj.js → pending-seed-D7-ld7as.js} +2 -2
  107. package/dist/owletto/dist/assets/{proposal-review-shell-BVwOMoq9.js → proposal-review-shell-BWRJidwb.js} +2 -2
  108. package/dist/owletto/dist/assets/public-shell-ready-CRyAZATw.js +2 -0
  109. package/dist/owletto/dist/assets/record-activity-9ux6SfCd.js +2 -0
  110. package/dist/owletto/dist/assets/{record-session-KuEDuF3S.js → record-session-ClKBr1_C.js} +2 -2
  111. package/dist/owletto/dist/assets/{renderer-ucwCQmBk.js → renderer-DZ0w2k2r.js} +2 -2
  112. package/dist/owletto/dist/assets/{reset-password-BkiAmXZW.js → reset-password-D2RfrEVZ.js} +2 -2
  113. package/dist/owletto/dist/assets/{run-initiator-8vdkq-3o.js → run-initiator-B8IRlRd-.js} +2 -2
  114. package/dist/owletto/dist/assets/runs-CuC7WMtd.js +2 -0
  115. package/dist/owletto/dist/assets/runs-list-8gUPWjP4.js +2 -0
  116. package/dist/owletto/dist/assets/{schema-value-CefbtPIY.js → schema-value-k19Ata7u.js} +3 -3
  117. package/dist/owletto/dist/assets/scoped-feed-bar-L7h-Ca4u.js +2 -0
  118. package/dist/owletto/dist/assets/{settings-DvzkRYQy.js → settings-BZqntV3E.js} +2 -2
  119. package/dist/owletto/dist/assets/{source-record-panels-LJIWGtHb.js → source-record-panels-C4UItfdk.js} +2 -2
  120. package/dist/owletto/dist/assets/{status-variants-BxHtpMOj.js → status-variants-BR_iGWN5.js} +2 -2
  121. package/dist/owletto/dist/assets/subDays-hOwerOLo.js +2 -0
  122. package/dist/owletto/dist/assets/{table-1O-ik4_O.js → table-C3DMoL4K.js} +2 -2
  123. package/dist/owletto/dist/assets/use-automations-CdtiVLCv.js +2 -0
  124. package/dist/owletto/dist/assets/{use-login-redirect-CfCbEeJR.js → use-login-redirect-CYlVkAhE.js} +2 -2
  125. package/dist/owletto/dist/assets/{use-mention-search-CA-evCDf.js → use-mention-search-CtbixPEE.js} +2 -2
  126. package/dist/owletto/dist/assets/view-param-filters-BdN8OU35.js +2 -0
  127. package/dist/owletto/dist/assets/{views-access-required-BerT4Z1d.js → views-access-required-CvIIxdS_.js} +2 -2
  128. package/dist/owletto/dist/index.html +19 -12
  129. package/dist/server-main.bundle.mjs +4245 -2432
  130. package/npm-shrinkwrap.json +328 -328
  131. package/package.json +1 -1
  132. package/vendor/connector-sdk/dist/connector-types.d.ts +23 -2
  133. package/vendor/connector-sdk/package.json +1 -1
  134. package/vendor/core/dist/classify-error.d.ts +3 -4
  135. package/vendor/core/dist/classify-error.js +8 -8
  136. package/vendor/core/dist/contracts/tools/collection-presentation.d.ts +17 -1
  137. package/vendor/core/dist/contracts/tools/collection-presentation.js +27 -3
  138. package/vendor/core/dist/contracts/tools/manage-automations.d.ts +39 -0
  139. package/vendor/core/dist/contracts/tools/manage-automations.js +11 -1
  140. package/vendor/core/dist/contracts/tools/manage-entity-schema.js +1 -1
  141. package/vendor/core/dist/contracts/tools/manage-views.d.ts +249 -7
  142. package/vendor/core/dist/contracts/tools/manage-views.js +83 -21
  143. package/vendor/core/dist/contracts/tools/navigation.d.ts +248 -0
  144. package/vendor/core/dist/contracts/tools/navigation.js +284 -0
  145. package/vendor/core/dist/contracts/tools/view-attach.d.ts +7 -0
  146. package/vendor/core/dist/contracts/tools/view-attach.js +15 -0
  147. package/vendor/core/dist/contracts/tools/view-content-hash.d.ts +4 -1
  148. package/vendor/core/dist/contracts/tools/view-content-hash.js +4 -2
  149. package/vendor/core/dist/contracts/tools/view-definition.d.ts +2 -0
  150. package/vendor/core/dist/contracts/tools/view-definition.js +52 -0
  151. package/vendor/core/dist/contracts/tools/view-host.d.ts +68 -0
  152. package/vendor/core/dist/contracts/tools/view-host.js +28 -1
  153. package/vendor/core/dist/contracts/tools/view-scope.d.ts +31 -0
  154. package/vendor/core/dist/contracts/tools/view-scope.js +45 -0
  155. package/vendor/core/dist/errors.d.ts +17 -24
  156. package/vendor/core/dist/errors.js +17 -24
  157. package/vendor/core/dist/types.d.ts +0 -6
  158. package/vendor/core/package.json +11 -1
  159. package/vendor/views/dist/api.d.ts +30 -5
  160. package/vendor/views/dist/api.js +22 -8
  161. package/vendor/views/dist/bridge.d.ts +17 -0
  162. package/vendor/views/dist/bridge.js +49 -1
  163. package/vendor/views/dist/components.d.ts +27 -5
  164. package/vendor/views/dist/components.js +57 -7
  165. package/vendor/views/dist/embed.d.ts +98 -0
  166. package/vendor/views/dist/embed.js +418 -0
  167. package/vendor/views/dist/index.d.ts +3 -1
  168. package/vendor/views/dist/index.js +1 -0
  169. package/vendor/views/package.json +1 -1
  170. package/dist/owletto/dist/assets/_-B0tmXZ86.js +0 -2
  171. package/dist/owletto/dist/assets/_-DwXULq4r.js +0 -3
  172. package/dist/owletto/dist/assets/_agentId-B1dNkhnr.js +0 -2
  173. package/dist/owletto/dist/assets/_agentId-sYjvnBaB.js +0 -2
  174. package/dist/owletto/dist/assets/_automationId-Bnw_CnT_.js +0 -2
  175. package/dist/owletto/dist/assets/_connectorKey._connectionId-D7Z8DQ-B.js +0 -2
  176. package/dist/owletto/dist/assets/_eventId-CfB0_2zK.js +0 -2
  177. package/dist/owletto/dist/assets/_owner-BDvTUY0a.js +0 -3
  178. package/dist/owletto/dist/assets/_shape-BZidoJMB.js +0 -2
  179. package/dist/owletto/dist/assets/_slug-R989vOiM.js +0 -2
  180. package/dist/owletto/dist/assets/_viewKey-BDUSrpe5.js +0 -2
  181. package/dist/owletto/dist/assets/_viewKey-BnFqh5-t.js +0 -2
  182. package/dist/owletto/dist/assets/activity-route-view-CN2dOiCD.js +0 -2
  183. package/dist/owletto/dist/assets/automation-detail-content-BJwRU6qT.js +0 -2
  184. package/dist/owletto/dist/assets/connect-OdHpIVV9.js +0 -2
  185. package/dist/owletto/dist/assets/connect-menu-B9u86bb2.js +0 -2
  186. package/dist/owletto/dist/assets/connect._clientId-EI1tcdSE.js +0 -2
  187. package/dist/owletto/dist/assets/connector-boxes-BWPXijAk.js +0 -2
  188. package/dist/owletto/dist/assets/create-DULVO0HS.js +0 -2
  189. package/dist/owletto/dist/assets/create._connectorKey-N6fhcIPy.js +0 -2
  190. package/dist/owletto/dist/assets/entity-options-IUdQ-64R.js +0 -2
  191. package/dist/owletto/dist/assets/entity-page-B3Im65EI.js +0 -2
  192. package/dist/owletto/dist/assets/event-detail-CvaRN1qB.js +0 -2
  193. package/dist/owletto/dist/assets/events-feed-DwOkLk6A.js +0 -2
  194. package/dist/owletto/dist/assets/filter-editors-DQ5V4Cvh.js +0 -2
  195. package/dist/owletto/dist/assets/home-stream-Bg97PUBJ.js +0 -2
  196. package/dist/owletto/dist/assets/home-toolbar-CpCcHA6z.js +0 -2
  197. package/dist/owletto/dist/assets/index-9PGnv4-5.js +0 -2
  198. package/dist/owletto/dist/assets/index-C2TCKJDP.js +0 -7901
  199. package/dist/owletto/dist/assets/index-CWn46a4y.js +0 -2
  200. package/dist/owletto/dist/assets/index-CxJONizf.js +0 -2
  201. package/dist/owletto/dist/assets/index-DJhb3li3.js +0 -2
  202. package/dist/owletto/dist/assets/index-DY-YGnCe.js +0 -2
  203. package/dist/owletto/dist/assets/index-j3v7ITPb.js +0 -2
  204. package/dist/owletto/dist/assets/index-oiy6ygaI.js +0 -2
  205. package/dist/owletto/dist/assets/index-pEgtAY1t.js +0 -2
  206. package/dist/owletto/dist/assets/index-xAvK3IyQ.css +0 -1
  207. package/dist/owletto/dist/assets/memory-browse-page-CUea2Llz.js +0 -74
  208. package/dist/owletto/dist/assets/new-M-MX_T5C.js +0 -2
  209. package/dist/owletto/dist/assets/peek-pane-content-B29OcHwm.js +0 -2
  210. package/dist/owletto/dist/assets/public-shell-ready-BbjPgh3k.js +0 -2
  211. package/dist/owletto/dist/assets/record-activity-BCpNKaUo.js +0 -2
  212. package/dist/owletto/dist/assets/runs-B_iywKWb.js +0 -2
  213. package/dist/owletto/dist/assets/runs-list-CJJFRhTl.js +0 -2
  214. package/dist/owletto/dist/assets/schema-type-editor-panel-C4e8pq1A.js +0 -2
  215. package/dist/owletto/dist/assets/scoped-feed-bar-CapleZvS.js +0 -2
  216. package/dist/owletto/dist/assets/subDays-DwIOMzYC.js +0 -2
  217. package/dist/owletto/dist/assets/use-automations-lV8PuE8L.js +0 -2
  218. package/dist/owletto/dist/assets/view-param-filters-Bp84PUMd.js +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobu/runtime-server",
3
- "version": "24.8.0",
3
+ "version": "24.9.0",
4
4
  "type": "module",
5
5
  "license": "BUSL-1.1",
6
6
  "repository": {
@@ -42,6 +42,7 @@ export interface ConnectorDefinition {
42
42
  queryCapabilities?: {
43
43
  exactMatch?: boolean;
44
44
  verbatimExactMatch?: boolean;
45
+ exactMatchAny?: boolean;
45
46
  selection?: boolean;
46
47
  };
47
48
  /** Connector-normalized events that can activate Automations. */
@@ -74,6 +75,8 @@ export interface ConnectorDefinition {
74
75
  includeOperations?: string[];
75
76
  excludeOperations?: string[];
76
77
  includeTags?: string[];
78
+ /** HTTP methods to expose (e.g. `['get']` for a read-only surface). */
79
+ includeMethods?: string[];
77
80
  serverUrl?: string;
78
81
  };
79
82
  /**
@@ -338,6 +341,16 @@ export interface ConnectorAuthEnvField {
338
341
  example?: string;
339
342
  secret?: boolean;
340
343
  required?: boolean;
344
+ /**
345
+ * Send this field as the HTTP credential for generated `openapiConfig`
346
+ * operations (and MCP upstreams) when the connection authenticates with this
347
+ * env method: `<header>: <scheme> <value>`. Defaults: header `Authorization`,
348
+ * scheme `Bearer`. At most one env field per connector may set it.
349
+ */
350
+ httpCredential?: {
351
+ header?: string;
352
+ scheme?: string;
353
+ };
341
354
  }
342
355
  export interface ConnectorAuthEnvKeys {
343
356
  type: 'env_keys';
@@ -1118,12 +1131,20 @@ export interface QueryContext<F = Record<string, unknown>> {
1118
1131
  * connector, which owns its source dialect. Requires queryCapabilities.exactMatch.
1119
1132
  * `verbatim: true` preserves the scalar string without trimming and additionally
1120
1133
  * requires queryCapabilities.verbatimExactMatch. The default stays trimmed.
1134
+ * Exactly one of `value` / `values` is set. `values` (1-500 strings) keeps a
1135
+ * row whose key equals ANY of them, under the same per-column semantics as
1136
+ * `value`, and additionally requires queryCapabilities.exactMatchAny.
1121
1137
  */
1122
1138
  exactMatch?: {
1123
1139
  columns: string[];
1124
- value: string;
1125
1140
  verbatim?: boolean;
1126
- };
1141
+ } & ({
1142
+ value: string;
1143
+ values?: never;
1144
+ } | {
1145
+ values: string[];
1146
+ value?: never;
1147
+ });
1127
1148
  /**
1128
1149
  * Shared collection predicates, applied before sorting and pagination.
1129
1150
  * Search is a literal case-insensitive substring of the projected name.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobu/connector-sdk",
3
- "version": "24.8.0",
3
+ "version": "24.9.0",
4
4
  "description": "Lobu memory SDK — build pluggable connectors for Lobu memory",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -5,10 +5,9 @@
5
5
  * `AgentErrorCode`. Every other layer consumes this rather than growing its
6
6
  * own regex, and three of them act on the result:
7
7
  *
8
- * - `providerQuotaResetNotBefore` (automations/schedule-cursor.ts) returns
9
- * `null` unless the code is `PROVIDER_QUOTA_EXHAUSTED`, so an unclassified
10
- * quota trip never parks the Automation until the provider's reset — it
11
- * keeps firing on schedule against an exhausted quota.
8
+ * - `classifyRunOutcome` (server runs/run-outcome.ts) stamps a classified
9
+ * failure `infra_error`; an unclassified provider refusal is blamed on the
10
+ * agent as `agent_error`.
12
11
  * - `response-renderer.ts` and `chat-response-bridge.ts` resolve the code to
13
12
  * a remediation CTA; with none, the user gets the provider's raw prose.
14
13
  * - An unclassified failure also misses the `PROVIDER_*` Sentry alerting.
@@ -6,10 +6,9 @@
6
6
  * `AgentErrorCode`. Every other layer consumes this rather than growing its
7
7
  * own regex, and three of them act on the result:
8
8
  *
9
- * - `providerQuotaResetNotBefore` (automations/schedule-cursor.ts) returns
10
- * `null` unless the code is `PROVIDER_QUOTA_EXHAUSTED`, so an unclassified
11
- * quota trip never parks the Automation until the provider's reset — it
12
- * keeps firing on schedule against an exhausted quota.
9
+ * - `classifyRunOutcome` (server runs/run-outcome.ts) stamps a classified
10
+ * failure `infra_error`; an unclassified provider refusal is blamed on the
11
+ * agent as `agent_error`.
13
12
  * - `response-renderer.ts` and `chat-response-bridge.ts` resolve the code to
14
13
  * a remediation CTA; with none, the user gets the provider's raw prose.
15
14
  * - An unclassified failure also misses the `PROVIDER_*` Sentry alerting.
@@ -86,10 +85,11 @@ function classifyErrorMessage(message) {
86
85
  // dodged the PROVIDER_* alert.
87
86
  //
88
87
  // It belongs HERE and not in `PROVIDER_BALANCE_EXHAUSTED` above: a
89
- // subscription usage limit is WINDOWED — the provider names its own reset,
90
- // hours or days out — while that union parks an Automation for a flat day
91
- // regardless. Parking a windowed limit on a balance schedule would be a
92
- // worse bug than the one this fixes.
88
+ // subscription usage limit is WINDOWED — it clears on the provider's own
89
+ // reset — while that union means the account cannot spend until someone tops
90
+ // it up. The device daemon stops a retrying OpenCode run on balance wording
91
+ // alone, so a windowed limit in that union would cut short a run the CLI's
92
+ // own retry could still finish.
93
93
  if (errors_js_1.PROVIDER_WINDOWED_QUOTA.test(message))
94
94
  return errors_js_1.AgentErrorCode.PROVIDER_QUOTA_EXHAUSTED;
95
95
  // Gemini can end a turn with this provider-side tool-call rejection instead
@@ -40,6 +40,11 @@ declare const PresetSchema: import("@sinclair/typebox").TObject<{
40
40
  toDays: import("@sinclair/typebox").TInteger;
41
41
  timeZone: import("@sinclair/typebox").TString;
42
42
  }>>;
43
+ /** Adds `{ field, op: "eq", value: <signed-in user's email> }`. Only a
44
+ * filter: read access is still enforced server-side. */
45
+ viewer: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
46
+ field: import("@sinclair/typebox").TString;
47
+ }>>;
43
48
  }>;
44
49
  export declare const CollectionPresentationSchema: import("@sinclair/typebox").TObject<{
45
50
  presets: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
@@ -71,6 +76,11 @@ export declare const CollectionPresentationSchema: import("@sinclair/typebox").T
71
76
  toDays: import("@sinclair/typebox").TInteger;
72
77
  timeZone: import("@sinclair/typebox").TString;
73
78
  }>>;
79
+ /** Adds `{ field, op: "eq", value: <signed-in user's email> }`. Only a
80
+ * filter: read access is still enforced server-side. */
81
+ viewer: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
82
+ field: import("@sinclair/typebox").TString;
83
+ }>>;
74
84
  }>>>;
75
85
  table: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
76
86
  columns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
@@ -88,6 +98,12 @@ export type CollectionPresentation = Static<typeof CollectionPresentationSchema>
88
98
  export type CollectionPreset = Static<typeof PresetSchema>;
89
99
  export type CollectionTable = Static<typeof TableSchema>;
90
100
  export declare function parseCollectionPresentation(raw: unknown): CollectionPresentation;
91
- export declare function resolveCollectionPreset(preset: CollectionPreset, now?: Date): CollectionSelection;
101
+ /**
102
+ * The preset as a concrete selection. A viewer preset needs the signed-in
103
+ * viewer and throws without one, so it never widens to every row.
104
+ */
105
+ export declare function resolveCollectionPreset(preset: CollectionPreset, now?: Date, viewer?: {
106
+ email: string;
107
+ }): CollectionSelection;
92
108
  export {};
93
109
  //# sourceMappingURL=collection-presentation.d.ts.map
@@ -32,6 +32,9 @@ const PresetSchema = typebox_1.Type.Object({
32
32
  toDays: typebox_1.Type.Integer({ minimum: -3660, maximum: 3660 }),
33
33
  timeZone: typebox_1.Type.String({ minLength: 1, maxLength: 100 }),
34
34
  }, { additionalProperties: false })),
35
+ /** Adds `{ field, op: "eq", value: <signed-in user's email> }`. Only a
36
+ * filter: read access is still enforced server-side. */
37
+ viewer: typebox_1.Type.Optional(typebox_1.Type.Object({ field: Field }, { additionalProperties: false })),
35
38
  }, { additionalProperties: false });
36
39
  exports.CollectionPresentationSchema = typebox_1.Type.Object({
37
40
  presets: typebox_1.Type.Optional(typebox_1.Type.Array(PresetSchema, { maxItems: 32 })),
@@ -41,6 +44,7 @@ exports.CollectionPresentationSchema = typebox_1.Type.Object({
41
44
  * Both calls run as the viewer; this binding grants no source access. */
42
45
  facetQuery: typebox_1.Type.Optional(typebox_1.Type.String({ minLength: 1, maxLength: 64000 })),
43
46
  }, { additionalProperties: false });
47
+ const MAX_FILTERS = collection_selection_1.AttributeFiltersSchema.maxItems ?? 32;
44
48
  function parseCollectionPresentation(raw) {
45
49
  if (!value_1.Value.Check(exports.CollectionPresentationSchema, raw))
46
50
  throw new Error("Invalid collection presentation configuration");
@@ -49,9 +53,13 @@ function parseCollectionPresentation(raw) {
49
53
  if (keys.has(preset.key))
50
54
  throw new Error(`Duplicate collection preset: ${preset.key}`);
51
55
  keys.add(preset.key);
56
+ // The resolved selection must still fit the selection contract.
57
+ if ((preset.selection.filters?.length ?? 0) +
58
+ (preset.viewer ? 1 : 0) +
59
+ (preset.relativeDate ? 2 : 0) >
60
+ MAX_FILTERS)
61
+ throw new Error(`Collection preset ${preset.key} resolves to more than ${MAX_FILTERS} filters`);
52
62
  if (preset.relativeDate) {
53
- if ((preset.selection.filters?.length ?? 0) > 30)
54
- throw new Error("Relative date presets support at most 30 other filters");
55
63
  if (preset.relativeDate.fromDays > preset.relativeDate.toDays)
56
64
  throw new Error("Relative date range is reversed");
57
65
  // Intl validates IANA timezone names, including UTC.
@@ -62,8 +70,24 @@ function parseCollectionPresentation(raw) {
62
70
  }
63
71
  return raw;
64
72
  }
65
- function resolveCollectionPreset(preset, now = new Date()) {
73
+ /**
74
+ * The preset as a concrete selection. A viewer preset needs the signed-in
75
+ * viewer and throws without one, so it never widens to every row.
76
+ */
77
+ function resolveCollectionPreset(preset, now = new Date(), viewer) {
66
78
  const selection = structuredClone(preset.selection);
79
+ if (preset.viewer) {
80
+ if (!viewer?.email)
81
+ throw new Error(`Collection preset ${preset.key} needs a signed-in viewer`);
82
+ selection.filters = [
83
+ ...(selection.filters ?? []),
84
+ {
85
+ field: preset.viewer.field,
86
+ op: "eq",
87
+ value: viewer.email.toLowerCase(),
88
+ },
89
+ ];
90
+ }
67
91
  if (!preset.relativeDate)
68
92
  return selection;
69
93
  const { field, fromDays, toDays, timeZone } = preset.relativeDate;
@@ -402,6 +402,19 @@ export declare const AutomationClaimNextWindowContextSchema: import("@sinclair/t
402
402
  feed_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
403
403
  }>>>;
404
404
  extraction_schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
405
+ /**
406
+ * The run's pinned Automation version instructions. Present on the first
407
+ * page of a window (no source_cursor / before_* cursor), omitted on
408
+ * continuation pages. Follow these instead of a cached copy of the prompt.
409
+ */
410
+ instructions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
411
+ version_id: import("@sinclair/typebox").TInteger;
412
+ prompt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
413
+ skills: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
414
+ name: import("@sinclair/typebox").TString;
415
+ content: import("@sinclair/typebox").TString;
416
+ }>>;
417
+ }>>;
405
418
  }>;
406
419
  export type AutomationClaimNextWindowContext = Static<typeof AutomationClaimNextWindowContextSchema>;
407
420
  export declare const AutomationClaimNextWindowResultSchema: import("@sinclair/typebox").TObject<{
@@ -433,6 +446,19 @@ export declare const AutomationClaimNextWindowResultSchema: import("@sinclair/ty
433
446
  feed_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
434
447
  }>>>;
435
448
  extraction_schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
449
+ /**
450
+ * The run's pinned Automation version instructions. Present on the first
451
+ * page of a window (no source_cursor / before_* cursor), omitted on
452
+ * continuation pages. Follow these instead of a cached copy of the prompt.
453
+ */
454
+ instructions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
455
+ version_id: import("@sinclair/typebox").TInteger;
456
+ prompt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
457
+ skills: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
458
+ name: import("@sinclair/typebox").TString;
459
+ content: import("@sinclair/typebox").TString;
460
+ }>>;
461
+ }>>;
436
462
  }>;
437
463
  }>;
438
464
  export type AutomationClaimNextWindowResult = Static<typeof AutomationClaimNextWindowResultSchema>;
@@ -599,6 +625,19 @@ export declare const ManageAutomationsResultSchema: import("@sinclair/typebox").
599
625
  feed_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
600
626
  }>>>;
601
627
  extraction_schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
628
+ /**
629
+ * The run's pinned Automation version instructions. Present on the first
630
+ * page of a window (no source_cursor / before_* cursor), omitted on
631
+ * continuation pages. Follow these instead of a cached copy of the prompt.
632
+ */
633
+ instructions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
634
+ version_id: import("@sinclair/typebox").TInteger;
635
+ prompt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
636
+ skills: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
637
+ name: import("@sinclair/typebox").TString;
638
+ content: import("@sinclair/typebox").TString;
639
+ }>>;
640
+ }>>;
602
641
  }>;
603
642
  }>, import("@sinclair/typebox").TObject<{
604
643
  action: import("@sinclair/typebox").TLiteral<"trigger">;
@@ -355,7 +355,7 @@ exports.ManageAutomationsSchema = typebox_1.Type.Object({
355
355
  description: "Submit an Automation window result and advance the Automation arrival mark. Required after every claim_next_window, including when the window held nothing actionable: the mark moves only inside this call, so an unfinished claim lets the lease expire, times the run out, and serves the same content again on the next claim.",
356
356
  }),
357
357
  typebox_1.Type.Literal("claim_next_window", {
358
- description: "Atomically claim the Automation unclaimed arrival window and return bounded source context plus a fenced window token. The window is [arrival mark, now - settle) over events.created_at, not a calendar period. The caller MUST finish the claim with complete_window, even for an empty or non-actionable window.",
358
+ description: "Atomically claim the Automation unclaimed arrival window and return bounded source context plus a fenced window token. The first page carries context.instructions, the prompt and skills of the run's pinned version; follow them instead of a cached copy. The window is [arrival mark, now - settle) over events.created_at, not a calendar period. The caller MUST finish the claim with complete_window, even for an empty or non-actionable window.",
359
359
  }),
360
360
  typebox_1.Type.Literal("trigger", {
361
361
  description: "Create or reuse an immediate Automation run. The result identifies whether Lobu, a device worker, this caller, or another external caller owns execution. Follow the returned next_action: a pending external run uses knowledge.read then automations.completeWindow, while the owner of an existing external lease resumes it with automations.claimNextWindow.",
@@ -689,6 +689,16 @@ exports.AutomationClaimNextWindowContextSchema = typebox_1.Type.Object({
689
689
  feed_id: typebox_1.Type.Optional(typebox_1.Type.Integer()),
690
690
  }))),
691
691
  extraction_schema: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown())),
692
+ /**
693
+ * The run's pinned Automation version instructions. Present on the first
694
+ * page of a window (no source_cursor / before_* cursor), omitted on
695
+ * continuation pages. Follow these instead of a cached copy of the prompt.
696
+ */
697
+ instructions: typebox_1.Type.Optional(typebox_1.Type.Object({
698
+ version_id: typebox_1.Type.Integer(),
699
+ prompt: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
700
+ skills: typebox_1.Type.Array(typebox_1.Type.Object({ name: typebox_1.Type.String(), content: typebox_1.Type.String() })),
701
+ })),
692
702
  });
693
703
  exports.AutomationClaimNextWindowResultSchema = typebox_1.Type.Object({
694
704
  action: typebox_1.Type.Literal("claim_next_window"),
@@ -95,7 +95,7 @@ exports.ManageEntitySchemaSchema = typebox_1.Type.Object({
95
95
  name: typebox_1.Type.Optional(typebox_1.Type.String({ description: "[create/update] Display name", minLength: 1 })),
96
96
  description: typebox_1.Type.Optional(typebox_1.Type.String({ description: "[create/update] Description" })),
97
97
  metadata_schema: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown(), {
98
- description: "[create/update] JSON Schema for metadata validation. Source-backed types declare a durable projected key with root x-lobu-record-key naming the key column; this enables string entity_id + entity_type addressing and authored links without storing source rows. A linked type cannot change its backing or key until its edges are unlinked. Entity property annotations: x-facet: true exposes scalar enum values as collection filters; x-sidebar: true also exposes those values as navigation shortcuts. x-enum-labels maps stringified enum values to display labels. x-table-label or title labels the attribute. These annotations do not grant access or define separate segments.",
98
+ description: "[create/update] JSON Schema for metadata validation. Source-backed types declare a durable projected key with root x-lobu-record-key naming the key column; this enables string entity_id + entity_type addressing and authored links without storing source rows. A linked type cannot change its backing or key until its edges are unlinked. Root x-lobu-stamps maps a server-owned timestamp field to the field it tracks (e.g. { stage_at: stage }): the stamp must be a declared property with type string and format date-time, and the tracked field a declared property; every write sets the stamp when the tracked field is set on create or changes value, and caller-supplied stamp values are ignored. Entity property annotations: x-facet: true exposes scalar enum values as collection filters; x-sidebar: true also exposes those values as navigation shortcuts. x-enum-labels maps stringified enum values to display labels. x-table-label or title labels the attribute. These annotations do not grant access or define separate segments.",
99
99
  })),
100
100
  list_scope: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Literal("accessible"), typebox_1.Type.Literal("organization")], {
101
101
  description: "[list] accessible (default) includes the current org plus public schemas; organization returns only the bound org.",