@lobu/runtime-device 23.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 (63) hide show
  1. package/dist/component.json +1 -1
  2. package/dist/dependencies.bun.lock +30 -27
  3. package/npm-shrinkwrap.json +131 -115
  4. package/package.json +2 -1
  5. package/vendor/cli/dist/bundled-skills/lobu/SKILL.md +73 -0
  6. package/vendor/cli/dist/commands/_lib/apply/apply-cmd.js +9 -11
  7. package/vendor/cli/dist/commands/_lib/apply/client.d.ts +3 -11
  8. package/vendor/cli/dist/commands/_lib/apply/client.js +3 -3
  9. package/vendor/cli/dist/commands/_lib/apply/desired-state.d.ts +0 -6
  10. package/vendor/cli/dist/commands/_lib/apply/desired-state.js +6 -15
  11. package/vendor/cli/dist/commands/_lib/apply/diff.js +1 -0
  12. package/vendor/cli/dist/commands/_lib/apply/map-config.js +8 -0
  13. package/vendor/cli/dist/commands/_lib/view-bundler.d.ts +2 -9
  14. package/vendor/cli/dist/commands/_lib/view-bundler.js +25 -97
  15. package/vendor/cli/dist/config/define.d.ts +8 -0
  16. package/vendor/cli/dist/connectors/README.md +1 -1
  17. package/vendor/cli/dist/connectors/linkedin-inbox-adapter.js +4 -7
  18. package/vendor/cli/dist/connectors/linkedin.ts +53 -34
  19. package/vendor/cli/dist/connectors/reddit.ts +92 -20
  20. package/vendor/cli/dist/connectors/slack.ts +1 -0
  21. package/vendor/cli/dist/connectors/whatsapp-web-adapter.js +41 -11
  22. package/vendor/cli/dist/connectors/whatsapp-web-helpers.ts +1 -1
  23. package/vendor/cli/dist/connectors/whatsapp_web.ts +2 -2
  24. package/vendor/cli/dist/connectors/x-identity.ts +5 -3
  25. package/vendor/cli/dist/runtime-components.json +4 -4
  26. package/vendor/cli/dist/templates/AGENTS.md.tmpl +10 -3
  27. package/vendor/cli/package.json +1 -1
  28. package/vendor/connector-sdk/package.json +1 -1
  29. package/vendor/connector-worker/dist/agent-turn/gateway-tools.d.ts +2 -2
  30. package/vendor/connector-worker/dist/agent-turn/gateway-tools.js +2 -2
  31. package/vendor/connector-worker/dist/agent-turn/guest-entry.js +34 -2
  32. package/vendor/connector-worker/dist/agent-turn/guest.bundle.js +362 -300
  33. package/vendor/connector-worker/dist/agent-turn/native-session.d.ts +12 -0
  34. package/vendor/connector-worker/dist/agent-turn/native-session.js +32 -6
  35. package/vendor/connector-worker/dist/agent-turn/types.d.ts +24 -3
  36. package/vendor/connector-worker/dist/daemon/agent-turn.js +5 -1
  37. package/vendor/connector-worker/dist/daemon/automation.js +20 -15
  38. package/vendor/connector-worker/dist/isolate/prelude.js +93 -44
  39. package/vendor/connector-worker/package.json +1 -1
  40. package/vendor/core/dist/agent-policy.js +0 -3
  41. package/vendor/core/dist/agent-tooling.d.ts +1 -1
  42. package/vendor/core/dist/agent-tooling.js +3 -1
  43. package/vendor/core/dist/contracts/agent-settings.d.ts +6 -2
  44. package/vendor/core/dist/contracts/agent-settings.js +12 -1
  45. package/vendor/core/dist/contracts/tools/manage-views.d.ts +53 -234
  46. package/vendor/core/dist/contracts/tools/manage-views.js +50 -76
  47. package/vendor/core/dist/contracts/tools/view-attach.d.ts +5 -8
  48. package/vendor/core/dist/contracts/tools/view-attach.js +14 -31
  49. package/vendor/core/dist/contracts/tools/view-definition.d.ts +21 -0
  50. package/vendor/core/dist/contracts/tools/view-definition.js +165 -0
  51. package/vendor/core/dist/contracts/worker/protocol.d.ts +39 -2
  52. package/vendor/core/dist/contracts/worker/protocol.js +24 -1
  53. package/vendor/core/dist/index.d.ts +1 -1
  54. package/vendor/core/dist/index.js +2 -1
  55. package/vendor/core/dist/suggestions.d.ts +15 -2
  56. package/vendor/core/dist/suggestions.js +48 -3
  57. package/vendor/core/dist/types.d.ts +26 -0
  58. package/vendor/core/dist/types.js +5 -0
  59. package/vendor/core/package.json +11 -5
  60. package/vendor/postgres/cf/src/connection.js +18 -0
  61. package/vendor/postgres/cjs/src/connection.js +18 -0
  62. package/vendor/postgres/src/connection.js +18 -0
  63. /package/vendor/postgres/{.bun-tag-f39dafdb2305d504 → .bun-tag-2f292c6554a8475e} +0 -0
@@ -159,6 +159,14 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
159
159
  if (terminated)
160
160
  return queryError(q, Errors.connection('CONNECTION_DESTROYED', options))
161
161
 
162
+ if (!socket) {
163
+ // A stale reservation can execute after closed() clears the socket.
164
+ // Do not signal backpressure: this connection cannot emit a drain event
165
+ // to resume queries queued behind the rejected write.
166
+ queryError(q, Errors.connection('CONNECTION_CLOSED', options))
167
+ return true
168
+ }
169
+
162
170
  if (stream)
163
171
  return queryError(q, Errors.generic('COPY_IN_PROGRESS', 'You cannot execute queries during copy'))
164
172
 
@@ -254,6 +262,16 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
254
262
  }
255
263
 
256
264
  function nextWrite(fn) {
265
+ if (!socket) {
266
+ // Cursor and COPY writes can still arrive after closed() clears the
267
+ // socket. A throw from this timer would be an uncaughtException, so
268
+ // reject the pending queries instead. Report no backpressure: a closed
269
+ // socket never emits the drain event that would resume them.
270
+ nextWriteTimer !== null && clearImmediate(nextWriteTimer)
271
+ chunk = nextWriteTimer = null
272
+ error(Errors.connection('CONNECTION_CLOSED', options))
273
+ return true
274
+ }
257
275
  const x = socket.write(chunk, fn)
258
276
  nextWriteTimer !== null && clearImmediate(nextWriteTimer)
259
277
  chunk = nextWriteTimer = null
@@ -157,6 +157,14 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
157
157
  if (terminated)
158
158
  return queryError(q, Errors.connection('CONNECTION_DESTROYED', options))
159
159
 
160
+ if (!socket) {
161
+ // A stale reservation can execute after closed() clears the socket.
162
+ // Do not signal backpressure: this connection cannot emit a drain event
163
+ // to resume queries queued behind the rejected write.
164
+ queryError(q, Errors.connection('CONNECTION_CLOSED', options))
165
+ return true
166
+ }
167
+
160
168
  if (stream)
161
169
  return queryError(q, Errors.generic('COPY_IN_PROGRESS', 'You cannot execute queries during copy'))
162
170
 
@@ -252,6 +260,16 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
252
260
  }
253
261
 
254
262
  function nextWrite(fn) {
263
+ if (!socket) {
264
+ // Cursor and COPY writes can still arrive after closed() clears the
265
+ // socket. A throw from this timer would be an uncaughtException, so
266
+ // reject the pending queries instead. Report no backpressure: a closed
267
+ // socket never emits the drain event that would resume them.
268
+ nextWriteTimer !== null && clearImmediate(nextWriteTimer)
269
+ chunk = nextWriteTimer = null
270
+ error(Errors.connection('CONNECTION_CLOSED', options))
271
+ return true
272
+ }
255
273
  const x = socket.write(chunk, fn)
256
274
  nextWriteTimer !== null && clearImmediate(nextWriteTimer)
257
275
  chunk = nextWriteTimer = null
@@ -157,6 +157,14 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
157
157
  if (terminated)
158
158
  return queryError(q, Errors.connection('CONNECTION_DESTROYED', options))
159
159
 
160
+ if (!socket) {
161
+ // A stale reservation can execute after closed() clears the socket.
162
+ // Do not signal backpressure: this connection cannot emit a drain event
163
+ // to resume queries queued behind the rejected write.
164
+ queryError(q, Errors.connection('CONNECTION_CLOSED', options))
165
+ return true
166
+ }
167
+
160
168
  if (stream)
161
169
  return queryError(q, Errors.generic('COPY_IN_PROGRESS', 'You cannot execute queries during copy'))
162
170
 
@@ -252,6 +260,16 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
252
260
  }
253
261
 
254
262
  function nextWrite(fn) {
263
+ if (!socket) {
264
+ // Cursor and COPY writes can still arrive after closed() clears the
265
+ // socket. A throw from this timer would be an uncaughtException, so
266
+ // reject the pending queries instead. Report no backpressure: a closed
267
+ // socket never emits the drain event that would resume them.
268
+ nextWriteTimer !== null && clearImmediate(nextWriteTimer)
269
+ chunk = nextWriteTimer = null
270
+ error(Errors.connection('CONNECTION_CLOSED', options))
271
+ return true
272
+ }
255
273
  const x = socket.write(chunk, fn)
256
274
  nextWriteTimer !== null && clearImmediate(nextWriteTimer)
257
275
  chunk = nextWriteTimer = null