@withbuddi/buddi 0.1.0-pre.35 → 0.1.0-pre.37

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 (832) hide show
  1. package/examples/agents/concierge/agent.md +5 -0
  2. package/examples/skills/letterhead/SKILL.md +21 -0
  3. package/examples/skills/letterhead/assets/letterhead.md +16 -0
  4. package/examples/skills/letterhead/assets/logo.svg +6 -0
  5. package/extension/manifest.json +2 -2
  6. package/node_modules/@buddi/cli/dist/.tsbuildinfo +1 -1
  7. package/node_modules/@buddi/cli/dist/doctor-probes.d.ts.map +1 -1
  8. package/node_modules/@buddi/cli/dist/doctor-probes.js +44 -3
  9. package/node_modules/@buddi/cli/dist/doctor-probes.js.map +1 -1
  10. package/node_modules/@buddi/cli/dist/doctor.d.ts +37 -0
  11. package/node_modules/@buddi/cli/dist/doctor.d.ts.map +1 -1
  12. package/node_modules/@buddi/cli/dist/doctor.js +37 -0
  13. package/node_modules/@buddi/cli/dist/doctor.js.map +1 -1
  14. package/node_modules/@buddi/core/dist/.tsbuildinfo +1 -1
  15. package/node_modules/@buddi/core/dist/actions/approvals.d.ts +7 -0
  16. package/node_modules/@buddi/core/dist/actions/approvals.d.ts.map +1 -1
  17. package/node_modules/@buddi/core/dist/actions/approvals.js +11 -1
  18. package/node_modules/@buddi/core/dist/actions/approvals.js.map +1 -1
  19. package/node_modules/@buddi/core/dist/agents/catalog.d.ts.map +1 -1
  20. package/node_modules/@buddi/core/dist/agents/catalog.js +2 -2
  21. package/node_modules/@buddi/core/dist/agents/catalog.js.map +1 -1
  22. package/node_modules/@buddi/core/dist/agents/skills.d.ts +60 -1
  23. package/node_modules/@buddi/core/dist/agents/skills.d.ts.map +1 -1
  24. package/node_modules/@buddi/core/dist/agents/skills.js +157 -17
  25. package/node_modules/@buddi/core/dist/agents/skills.js.map +1 -1
  26. package/node_modules/@buddi/core/dist/day-month.d.ts +52 -0
  27. package/node_modules/@buddi/core/dist/day-month.d.ts.map +1 -0
  28. package/node_modules/@buddi/core/dist/day-month.js +101 -0
  29. package/node_modules/@buddi/core/dist/day-month.js.map +1 -0
  30. package/node_modules/@buddi/core/dist/host/build.d.ts +25 -2
  31. package/node_modules/@buddi/core/dist/host/build.d.ts.map +1 -1
  32. package/node_modules/@buddi/core/dist/host/build.js +169 -8
  33. package/node_modules/@buddi/core/dist/host/build.js.map +1 -1
  34. package/node_modules/@buddi/core/dist/host/http.d.ts +97 -0
  35. package/node_modules/@buddi/core/dist/host/http.d.ts.map +1 -1
  36. package/node_modules/@buddi/core/dist/host/http.js +321 -26
  37. package/node_modules/@buddi/core/dist/host/http.js.map +1 -1
  38. package/node_modules/@buddi/core/dist/host/types.d.ts +114 -4
  39. package/node_modules/@buddi/core/dist/host/types.d.ts.map +1 -1
  40. package/node_modules/@buddi/core/dist/index.d.ts +3 -0
  41. package/node_modules/@buddi/core/dist/index.d.ts.map +1 -1
  42. package/node_modules/@buddi/core/dist/index.js +3 -0
  43. package/node_modules/@buddi/core/dist/index.js.map +1 -1
  44. package/node_modules/@buddi/core/dist/notifications/notify.d.ts.map +1 -1
  45. package/node_modules/@buddi/core/dist/notifications/notify.js +10 -6
  46. package/node_modules/@buddi/core/dist/notifications/notify.js.map +1 -1
  47. package/node_modules/@buddi/core/dist/notifications/store.d.ts.map +1 -1
  48. package/node_modules/@buddi/core/dist/notifications/store.js +2 -1
  49. package/node_modules/@buddi/core/dist/notifications/store.js.map +1 -1
  50. package/node_modules/@buddi/core/dist/notifications/types.d.ts +8 -0
  51. package/node_modules/@buddi/core/dist/notifications/types.d.ts.map +1 -1
  52. package/node_modules/@buddi/core/dist/notifications/types.js.map +1 -1
  53. package/node_modules/@buddi/core/dist/onboarding/store.d.ts.map +1 -1
  54. package/node_modules/@buddi/core/dist/onboarding/store.js +28 -5
  55. package/node_modules/@buddi/core/dist/onboarding/store.js.map +1 -1
  56. package/node_modules/@buddi/core/dist/onboarding/types.d.ts +10 -0
  57. package/node_modules/@buddi/core/dist/onboarding/types.d.ts.map +1 -1
  58. package/node_modules/@buddi/core/dist/onboarding/types.js.map +1 -1
  59. package/node_modules/@buddi/core/dist/pages.d.ts +449 -20
  60. package/node_modules/@buddi/core/dist/pages.d.ts.map +1 -1
  61. package/node_modules/@buddi/core/dist/pages.js +223 -8
  62. package/node_modules/@buddi/core/dist/pages.js.map +1 -1
  63. package/node_modules/@buddi/core/dist/plugin/assets.d.ts +52 -0
  64. package/node_modules/@buddi/core/dist/plugin/assets.d.ts.map +1 -0
  65. package/node_modules/@buddi/core/dist/plugin/assets.js +59 -0
  66. package/node_modules/@buddi/core/dist/plugin/assets.js.map +1 -0
  67. package/node_modules/@buddi/core/dist/plugin/index.d.ts +10 -4
  68. package/node_modules/@buddi/core/dist/plugin/index.d.ts.map +1 -1
  69. package/node_modules/@buddi/core/dist/plugin/index.js +4 -1
  70. package/node_modules/@buddi/core/dist/plugin/index.js.map +1 -1
  71. package/node_modules/@buddi/core/dist/plugin/requires.d.ts +3 -1
  72. package/node_modules/@buddi/core/dist/plugin/requires.d.ts.map +1 -1
  73. package/node_modules/@buddi/core/dist/plugin/requires.js +5 -3
  74. package/node_modules/@buddi/core/dist/plugin/requires.js.map +1 -1
  75. package/node_modules/@buddi/core/dist/plugin/sign-in.d.ts +78 -0
  76. package/node_modules/@buddi/core/dist/plugin/sign-in.d.ts.map +1 -0
  77. package/node_modules/@buddi/core/dist/plugin/sign-in.js +54 -0
  78. package/node_modules/@buddi/core/dist/plugin/sign-in.js.map +1 -0
  79. package/node_modules/@buddi/core/dist/plugin/uses.d.ts +1 -1
  80. package/node_modules/@buddi/core/dist/plugin/uses.d.ts.map +1 -1
  81. package/node_modules/@buddi/core/dist/plugin/uses.js +2 -0
  82. package/node_modules/@buddi/core/dist/plugin/uses.js.map +1 -1
  83. package/node_modules/@buddi/core/dist/plugin/version.d.ts +1 -1
  84. package/node_modules/@buddi/core/dist/plugin/version.js +1 -1
  85. package/node_modules/@buddi/core/dist/plugin-assets.d.ts +21 -0
  86. package/node_modules/@buddi/core/dist/plugin-assets.d.ts.map +1 -0
  87. package/node_modules/@buddi/core/dist/plugin-assets.js +140 -0
  88. package/node_modules/@buddi/core/dist/plugin-assets.js.map +1 -0
  89. package/node_modules/@buddi/core/dist/provider-accounts.d.ts +7 -0
  90. package/node_modules/@buddi/core/dist/provider-accounts.d.ts.map +1 -1
  91. package/node_modules/@buddi/core/dist/provider-accounts.js +15 -0
  92. package/node_modules/@buddi/core/dist/provider-accounts.js.map +1 -1
  93. package/node_modules/@buddi/core/dist/questions/types.d.ts +1 -1
  94. package/node_modules/@buddi/core/dist/questions/types.js +1 -1
  95. package/node_modules/@buddi/core/dist/queue/jobs.d.ts +57 -2
  96. package/node_modules/@buddi/core/dist/queue/jobs.d.ts.map +1 -1
  97. package/node_modules/@buddi/core/dist/queue/jobs.js +114 -0
  98. package/node_modules/@buddi/core/dist/queue/jobs.js.map +1 -1
  99. package/node_modules/@buddi/core/dist/queue/worker.d.ts +24 -2
  100. package/node_modules/@buddi/core/dist/queue/worker.d.ts.map +1 -1
  101. package/node_modules/@buddi/core/dist/queue/worker.js +66 -11
  102. package/node_modules/@buddi/core/dist/queue/worker.js.map +1 -1
  103. package/node_modules/@buddi/core/dist/registry.d.ts +17 -0
  104. package/node_modules/@buddi/core/dist/registry.d.ts.map +1 -1
  105. package/node_modules/@buddi/core/dist/registry.js +48 -4
  106. package/node_modules/@buddi/core/dist/registry.js.map +1 -1
  107. package/node_modules/@buddi/core/dist/scheduler/missions.d.ts +14 -0
  108. package/node_modules/@buddi/core/dist/scheduler/missions.d.ts.map +1 -1
  109. package/node_modules/@buddi/core/dist/scheduler/missions.js +17 -4
  110. package/node_modules/@buddi/core/dist/scheduler/missions.js.map +1 -1
  111. package/node_modules/@buddi/core/dist/scheduler/types.d.ts +13 -0
  112. package/node_modules/@buddi/core/dist/scheduler/types.d.ts.map +1 -1
  113. package/node_modules/@buddi/core/dist/scheduler/types.js +14 -0
  114. package/node_modules/@buddi/core/dist/scheduler/types.js.map +1 -1
  115. package/node_modules/@buddi/core/dist/secrets/scrub.d.ts.map +1 -1
  116. package/node_modules/@buddi/core/dist/secrets/scrub.js +15 -0
  117. package/node_modules/@buddi/core/dist/secrets/scrub.js.map +1 -1
  118. package/node_modules/@buddi/core/dist/surfaces.d.ts +10 -0
  119. package/node_modules/@buddi/core/dist/surfaces.d.ts.map +1 -1
  120. package/node_modules/@buddi/core/dist/surfaces.js +11 -0
  121. package/node_modules/@buddi/core/dist/surfaces.js.map +1 -1
  122. package/node_modules/@buddi/core/dist/tools.d.ts +72 -1
  123. package/node_modules/@buddi/core/dist/tools.d.ts.map +1 -1
  124. package/node_modules/@buddi/core/dist/tools.js +38 -0
  125. package/node_modules/@buddi/core/dist/tools.js.map +1 -1
  126. package/node_modules/@buddi/core/dist/views.d.ts +29 -12
  127. package/node_modules/@buddi/core/dist/views.d.ts.map +1 -1
  128. package/node_modules/@buddi/core/dist/views.js +1 -0
  129. package/node_modules/@buddi/core/dist/views.js.map +1 -1
  130. package/node_modules/@buddi/core/dist/widget-settings.d.ts +2 -1
  131. package/node_modules/@buddi/core/dist/widget-settings.d.ts.map +1 -1
  132. package/node_modules/@buddi/core/dist/widget-settings.js +8 -2
  133. package/node_modules/@buddi/core/dist/widget-settings.js.map +1 -1
  134. package/node_modules/@buddi/core/dist/widgets.d.ts +46 -3
  135. package/node_modules/@buddi/core/dist/widgets.d.ts.map +1 -1
  136. package/node_modules/@buddi/core/dist/widgets.js +68 -5
  137. package/node_modules/@buddi/core/dist/widgets.js.map +1 -1
  138. package/node_modules/@buddi/core/migrations/073_mission_report.sql +15 -0
  139. package/node_modules/@buddi/core/migrations/074_owner_identity.sql +14 -0
  140. package/node_modules/@buddi/gateway/dist/.tsbuildinfo +1 -1
  141. package/node_modules/@buddi/gateway/dist/agents/catalog.d.ts.map +1 -1
  142. package/node_modules/@buddi/gateway/dist/agents/catalog.js +3 -3
  143. package/node_modules/@buddi/gateway/dist/agents/catalog.js.map +1 -1
  144. package/node_modules/@buddi/gateway/dist/agents/catalogue-package.d.ts +76 -0
  145. package/node_modules/@buddi/gateway/dist/agents/catalogue-package.d.ts.map +1 -1
  146. package/node_modules/@buddi/gateway/dist/agents/catalogue-package.js +29 -5
  147. package/node_modules/@buddi/gateway/dist/agents/catalogue-package.js.map +1 -1
  148. package/node_modules/@buddi/gateway/dist/agents/owner-text.d.ts +19 -0
  149. package/node_modules/@buddi/gateway/dist/agents/owner-text.d.ts.map +1 -0
  150. package/node_modules/@buddi/gateway/dist/agents/owner-text.js +44 -0
  151. package/node_modules/@buddi/gateway/dist/agents/owner-text.js.map +1 -0
  152. package/node_modules/@buddi/gateway/dist/agents/owner-tools.d.ts.map +1 -1
  153. package/node_modules/@buddi/gateway/dist/agents/owner-tools.js +36 -2
  154. package/node_modules/@buddi/gateway/dist/agents/owner-tools.js.map +1 -1
  155. package/node_modules/@buddi/gateway/dist/agents/platform-catalogue.d.ts +68 -3
  156. package/node_modules/@buddi/gateway/dist/agents/platform-catalogue.d.ts.map +1 -1
  157. package/node_modules/@buddi/gateway/dist/agents/platform-catalogue.js +264 -32
  158. package/node_modules/@buddi/gateway/dist/agents/platform-catalogue.js.map +1 -1
  159. package/node_modules/@buddi/gateway/dist/agents/platform.d.ts +11 -4
  160. package/node_modules/@buddi/gateway/dist/agents/platform.d.ts.map +1 -1
  161. package/node_modules/@buddi/gateway/dist/agents/platform.js +15 -0
  162. package/node_modules/@buddi/gateway/dist/agents/platform.js.map +1 -1
  163. package/node_modules/@buddi/gateway/dist/bootstrap.d.ts.map +1 -1
  164. package/node_modules/@buddi/gateway/dist/bootstrap.js +7 -1
  165. package/node_modules/@buddi/gateway/dist/bootstrap.js.map +1 -1
  166. package/node_modules/@buddi/gateway/dist/evals/golden.d.ts +33 -1
  167. package/node_modules/@buddi/gateway/dist/evals/golden.d.ts.map +1 -1
  168. package/node_modules/@buddi/gateway/dist/evals/golden.js +168 -3
  169. package/node_modules/@buddi/gateway/dist/evals/golden.js.map +1 -1
  170. package/node_modules/@buddi/gateway/dist/index.d.ts +2 -1
  171. package/node_modules/@buddi/gateway/dist/index.d.ts.map +1 -1
  172. package/node_modules/@buddi/gateway/dist/index.js +2 -1
  173. package/node_modules/@buddi/gateway/dist/index.js.map +1 -1
  174. package/node_modules/@buddi/gateway/dist/missions/agent-run.d.ts.map +1 -1
  175. package/node_modules/@buddi/gateway/dist/missions/agent-run.js +2 -0
  176. package/node_modules/@buddi/gateway/dist/missions/agent-run.js.map +1 -1
  177. package/node_modules/@buddi/gateway/dist/missions/dates.d.ts +98 -0
  178. package/node_modules/@buddi/gateway/dist/missions/dates.d.ts.map +1 -0
  179. package/node_modules/@buddi/gateway/dist/missions/dates.js +252 -0
  180. package/node_modules/@buddi/gateway/dist/missions/dates.js.map +1 -0
  181. package/node_modules/@buddi/gateway/dist/missions/defaults.d.ts.map +1 -1
  182. package/node_modules/@buddi/gateway/dist/missions/defaults.js +2 -0
  183. package/node_modules/@buddi/gateway/dist/missions/defaults.js.map +1 -1
  184. package/node_modules/@buddi/gateway/dist/missions/execute.d.ts +25 -1
  185. package/node_modules/@buddi/gateway/dist/missions/execute.d.ts.map +1 -1
  186. package/node_modules/@buddi/gateway/dist/missions/execute.js +80 -8
  187. package/node_modules/@buddi/gateway/dist/missions/execute.js.map +1 -1
  188. package/node_modules/@buddi/gateway/dist/missions/report.d.ts +25 -2
  189. package/node_modules/@buddi/gateway/dist/missions/report.d.ts.map +1 -1
  190. package/node_modules/@buddi/gateway/dist/missions/report.js +71 -11
  191. package/node_modules/@buddi/gateway/dist/missions/report.js.map +1 -1
  192. package/node_modules/@buddi/gateway/dist/ollama-local.d.ts +90 -0
  193. package/node_modules/@buddi/gateway/dist/ollama-local.d.ts.map +1 -0
  194. package/node_modules/@buddi/gateway/dist/ollama-local.js +201 -0
  195. package/node_modules/@buddi/gateway/dist/ollama-local.js.map +1 -0
  196. package/node_modules/@buddi/gateway/dist/owner-notify.d.ts.map +1 -1
  197. package/node_modules/@buddi/gateway/dist/owner-notify.js +7 -3
  198. package/node_modules/@buddi/gateway/dist/owner-notify.js.map +1 -1
  199. package/node_modules/@buddi/gateway/dist/plugins/asset-image-worker.d.ts +2 -0
  200. package/node_modules/@buddi/gateway/dist/plugins/asset-image-worker.d.ts.map +1 -0
  201. package/node_modules/@buddi/gateway/dist/plugins/asset-image-worker.js +18 -0
  202. package/node_modules/@buddi/gateway/dist/plugins/asset-image-worker.js.map +1 -0
  203. package/node_modules/@buddi/gateway/dist/plugins/asset-image.d.ts +31 -0
  204. package/node_modules/@buddi/gateway/dist/plugins/asset-image.d.ts.map +1 -0
  205. package/node_modules/@buddi/gateway/dist/plugins/asset-image.js +332 -0
  206. package/node_modules/@buddi/gateway/dist/plugins/asset-image.js.map +1 -0
  207. package/node_modules/@buddi/gateway/dist/plugins/load.d.ts.map +1 -1
  208. package/node_modules/@buddi/gateway/dist/plugins/load.js +14 -1
  209. package/node_modules/@buddi/gateway/dist/plugins/load.js.map +1 -1
  210. package/node_modules/@buddi/gateway/dist/plugins/stage.d.ts +6 -0
  211. package/node_modules/@buddi/gateway/dist/plugins/stage.d.ts.map +1 -1
  212. package/node_modules/@buddi/gateway/dist/plugins/stage.js +5 -0
  213. package/node_modules/@buddi/gateway/dist/plugins/stage.js.map +1 -1
  214. package/node_modules/@buddi/gateway/dist/plugins/uninstall.d.ts.map +1 -1
  215. package/node_modules/@buddi/gateway/dist/plugins/uninstall.js +8 -0
  216. package/node_modules/@buddi/gateway/dist/plugins/uninstall.js.map +1 -1
  217. package/node_modules/@buddi/gateway/dist/plugins-cli.d.ts +8 -0
  218. package/node_modules/@buddi/gateway/dist/plugins-cli.d.ts.map +1 -1
  219. package/node_modules/@buddi/gateway/dist/plugins-cli.js +22 -1
  220. package/node_modules/@buddi/gateway/dist/plugins-cli.js.map +1 -1
  221. package/node_modules/@buddi/gateway/dist/serve.d.ts.map +1 -1
  222. package/node_modules/@buddi/gateway/dist/serve.js +50 -5
  223. package/node_modules/@buddi/gateway/dist/serve.js.map +1 -1
  224. package/node_modules/@buddi/gateway/dist/surfaces/pending-question.js +2 -2
  225. package/node_modules/@buddi/gateway/dist/system-context.d.ts +21 -1
  226. package/node_modules/@buddi/gateway/dist/system-context.d.ts.map +1 -1
  227. package/node_modules/@buddi/gateway/dist/system-context.js +76 -2
  228. package/node_modules/@buddi/gateway/dist/system-context.js.map +1 -1
  229. package/node_modules/@buddi/gateway/dist/telegram/approvals.d.ts.map +1 -1
  230. package/node_modules/@buddi/gateway/dist/telegram/approvals.js +4 -2
  231. package/node_modules/@buddi/gateway/dist/telegram/approvals.js.map +1 -1
  232. package/node_modules/@buddi/gateway/dist/telegram/channel.d.ts +12 -0
  233. package/node_modules/@buddi/gateway/dist/telegram/channel.d.ts.map +1 -1
  234. package/node_modules/@buddi/gateway/dist/telegram/channel.js +49 -2
  235. package/node_modules/@buddi/gateway/dist/telegram/channel.js.map +1 -1
  236. package/node_modules/@buddi/gateway/dist/telegram/html.d.ts +34 -0
  237. package/node_modules/@buddi/gateway/dist/telegram/html.d.ts.map +1 -0
  238. package/node_modules/@buddi/gateway/dist/telegram/html.js +263 -0
  239. package/node_modules/@buddi/gateway/dist/telegram/html.js.map +1 -0
  240. package/node_modules/@buddi/gateway/dist/telegram/notify.d.ts +6 -0
  241. package/node_modules/@buddi/gateway/dist/telegram/notify.d.ts.map +1 -1
  242. package/node_modules/@buddi/gateway/dist/telegram/notify.js +25 -3
  243. package/node_modules/@buddi/gateway/dist/telegram/notify.js.map +1 -1
  244. package/node_modules/@buddi/gateway/dist/tips/facts.d.ts +2 -0
  245. package/node_modules/@buddi/gateway/dist/tips/facts.d.ts.map +1 -1
  246. package/node_modules/@buddi/gateway/dist/tips/facts.js +4 -1
  247. package/node_modules/@buddi/gateway/dist/tips/facts.js.map +1 -1
  248. package/node_modules/@buddi/gateway/dist/tips/rules.d.ts.map +1 -1
  249. package/node_modules/@buddi/gateway/dist/tips/rules.js +10 -0
  250. package/node_modules/@buddi/gateway/dist/tips/rules.js.map +1 -1
  251. package/node_modules/@buddi/gateway/dist/web/api-routes.d.ts.map +1 -1
  252. package/node_modules/@buddi/gateway/dist/web/api-routes.js +80 -11
  253. package/node_modules/@buddi/gateway/dist/web/api-routes.js.map +1 -1
  254. package/node_modules/@buddi/gateway/dist/web/api-scan.d.ts +1 -1
  255. package/node_modules/@buddi/gateway/dist/web/api-scan.d.ts.map +1 -1
  256. package/node_modules/@buddi/gateway/dist/web/api-scan.js +1 -0
  257. package/node_modules/@buddi/gateway/dist/web/api-scan.js.map +1 -1
  258. package/node_modules/@buddi/gateway/dist/web/catalogue.d.ts.map +1 -1
  259. package/node_modules/@buddi/gateway/dist/web/catalogue.js +7 -4
  260. package/node_modules/@buddi/gateway/dist/web/catalogue.js.map +1 -1
  261. package/node_modules/@buddi/gateway/dist/web/chat.d.ts.map +1 -1
  262. package/node_modules/@buddi/gateway/dist/web/chat.js +9 -0
  263. package/node_modules/@buddi/gateway/dist/web/chat.js.map +1 -1
  264. package/node_modules/@buddi/gateway/dist/web/composer.d.ts +45 -0
  265. package/node_modules/@buddi/gateway/dist/web/composer.d.ts.map +1 -0
  266. package/node_modules/@buddi/gateway/dist/web/composer.js +85 -0
  267. package/node_modules/@buddi/gateway/dist/web/composer.js.map +1 -0
  268. package/node_modules/@buddi/gateway/dist/web/extension.d.ts +12 -0
  269. package/node_modules/@buddi/gateway/dist/web/extension.d.ts.map +1 -1
  270. package/node_modules/@buddi/gateway/dist/web/extension.js +11 -1
  271. package/node_modules/@buddi/gateway/dist/web/extension.js.map +1 -1
  272. package/node_modules/@buddi/gateway/dist/web/lock.d.ts +6 -0
  273. package/node_modules/@buddi/gateway/dist/web/lock.d.ts.map +1 -1
  274. package/node_modules/@buddi/gateway/dist/web/lock.js +33 -2
  275. package/node_modules/@buddi/gateway/dist/web/lock.js.map +1 -1
  276. package/node_modules/@buddi/gateway/dist/web/market.d.ts +20 -1
  277. package/node_modules/@buddi/gateway/dist/web/market.d.ts.map +1 -1
  278. package/node_modules/@buddi/gateway/dist/web/market.js +41 -1
  279. package/node_modules/@buddi/gateway/dist/web/market.js.map +1 -1
  280. package/node_modules/@buddi/gateway/dist/web/people.d.ts +44 -0
  281. package/node_modules/@buddi/gateway/dist/web/people.d.ts.map +1 -0
  282. package/node_modules/@buddi/gateway/dist/web/people.js +114 -0
  283. package/node_modules/@buddi/gateway/dist/web/people.js.map +1 -0
  284. package/node_modules/@buddi/gateway/dist/web/server.d.ts +4 -0
  285. package/node_modules/@buddi/gateway/dist/web/server.d.ts.map +1 -1
  286. package/node_modules/@buddi/gateway/dist/web/server.js +171 -13
  287. package/node_modules/@buddi/gateway/dist/web/server.js.map +1 -1
  288. package/node_modules/@buddi/gateway/dist/web/skill-bundles.d.ts +101 -0
  289. package/node_modules/@buddi/gateway/dist/web/skill-bundles.d.ts.map +1 -0
  290. package/node_modules/@buddi/gateway/dist/web/skill-bundles.js +439 -0
  291. package/node_modules/@buddi/gateway/dist/web/skill-bundles.js.map +1 -0
  292. package/node_modules/@buddi/gateway/dist/web/skills.d.ts +57 -1
  293. package/node_modules/@buddi/gateway/dist/web/skills.d.ts.map +1 -1
  294. package/node_modules/@buddi/gateway/dist/web/skills.js +171 -9
  295. package/node_modules/@buddi/gateway/dist/web/skills.js.map +1 -1
  296. package/node_modules/@buddi/gateway/dist/web/widgets.js +2 -2
  297. package/node_modules/@buddi/gateway/dist/web/widgets.js.map +1 -1
  298. package/node_modules/@buddi/gateway/dist/web/zip-read.d.ts +31 -0
  299. package/node_modules/@buddi/gateway/dist/web/zip-read.d.ts.map +1 -0
  300. package/node_modules/@buddi/gateway/dist/web/zip-read.js +125 -0
  301. package/node_modules/@buddi/gateway/dist/web/zip-read.js.map +1 -0
  302. package/node_modules/@buddi/install/dist/.tsbuildinfo +1 -1
  303. package/node_modules/@buddi/runtime/dist/.tsbuildinfo +1 -1
  304. package/node_modules/@buddi/runtime/dist/index.d.ts +1 -0
  305. package/node_modules/@buddi/runtime/dist/index.d.ts.map +1 -1
  306. package/node_modules/@buddi/runtime/dist/index.js +1 -0
  307. package/node_modules/@buddi/runtime/dist/index.js.map +1 -1
  308. package/node_modules/@buddi/runtime/dist/loop.js +11 -1
  309. package/node_modules/@buddi/runtime/dist/loop.js.map +1 -1
  310. package/node_modules/@buddi/runtime/dist/plugin-sign-in.d.ts +12 -0
  311. package/node_modules/@buddi/runtime/dist/plugin-sign-in.d.ts.map +1 -0
  312. package/node_modules/@buddi/runtime/dist/plugin-sign-in.js +397 -0
  313. package/node_modules/@buddi/runtime/dist/plugin-sign-in.js.map +1 -0
  314. package/node_modules/@buddi/runtime/dist/transport.d.ts +1 -1
  315. package/node_modules/@buddi/runtime/dist/transport.d.ts.map +1 -1
  316. package/node_modules/@buddi/runtime/dist/transport.js +6 -0
  317. package/node_modules/@buddi/runtime/dist/transport.js.map +1 -1
  318. package/node_modules/@buddi/tool-artifacts/dist/.tsbuildinfo +1 -1
  319. package/node_modules/@buddi/tool-artifacts/dist/tools/write.d.ts.map +1 -1
  320. package/node_modules/@buddi/tool-artifacts/dist/tools/write.js +1 -0
  321. package/node_modules/@buddi/tool-artifacts/dist/tools/write.js.map +1 -1
  322. package/node_modules/@buddi/tool-browser/dist/.tsbuildinfo +1 -1
  323. package/node_modules/@buddi/tool-browser/dist/computer.d.ts +13 -0
  324. package/node_modules/@buddi/tool-browser/dist/computer.d.ts.map +1 -1
  325. package/node_modules/@buddi/tool-browser/dist/computer.js +22 -2
  326. package/node_modules/@buddi/tool-browser/dist/computer.js.map +1 -1
  327. package/node_modules/@buddi/tool-browser/dist/controller.d.ts +4 -0
  328. package/node_modules/@buddi/tool-browser/dist/controller.d.ts.map +1 -1
  329. package/node_modules/@buddi/tool-browser/dist/controller.js +8 -3
  330. package/node_modules/@buddi/tool-browser/dist/controller.js.map +1 -1
  331. package/node_modules/@buddi/tool-browser/dist/index.d.ts +1 -1
  332. package/node_modules/@buddi/tool-browser/dist/index.d.ts.map +1 -1
  333. package/node_modules/@buddi/tool-browser/dist/index.js +1 -1
  334. package/node_modules/@buddi/tool-browser/dist/index.js.map +1 -1
  335. package/node_modules/@buddi/tool-browser/dist/native/buddi-computer +0 -0
  336. package/node_modules/@buddi/tool-browser/dist/service.d.ts +5 -0
  337. package/node_modules/@buddi/tool-browser/dist/service.d.ts.map +1 -1
  338. package/node_modules/@buddi/tool-browser/dist/service.js.map +1 -1
  339. package/node_modules/@buddi/tool-email/dist/.tsbuildinfo +1 -1
  340. package/node_modules/@buddi/tool-email/dist/widgets.d.ts.map +1 -1
  341. package/node_modules/@buddi/tool-email/dist/widgets.js +2 -1
  342. package/node_modules/@buddi/tool-email/dist/widgets.js.map +1 -1
  343. package/node_modules/@buddi/tool-host/dist/.tsbuildinfo +1 -1
  344. package/node_modules/@buddi/tool-host/dist/index.d.ts +2 -1
  345. package/node_modules/@buddi/tool-host/dist/index.d.ts.map +1 -1
  346. package/node_modules/@buddi/tool-host/dist/index.js +3 -2
  347. package/node_modules/@buddi/tool-host/dist/index.js.map +1 -1
  348. package/node_modules/@buddi/tool-host/dist/process.d.ts +4 -0
  349. package/node_modules/@buddi/tool-host/dist/process.d.ts.map +1 -1
  350. package/node_modules/@buddi/tool-host/dist/process.js +4 -2
  351. package/node_modules/@buddi/tool-host/dist/process.js.map +1 -1
  352. package/node_modules/@buddi/tool-host/dist/service.d.ts +66 -17
  353. package/node_modules/@buddi/tool-host/dist/service.d.ts.map +1 -1
  354. package/node_modules/@buddi/tool-host/dist/service.js +172 -9
  355. package/node_modules/@buddi/tool-host/dist/service.js.map +1 -1
  356. package/node_modules/@buddi/tool-host/dist/skill-run.d.ts +55 -0
  357. package/node_modules/@buddi/tool-host/dist/skill-run.d.ts.map +1 -0
  358. package/node_modules/@buddi/tool-host/dist/skill-run.js +132 -0
  359. package/node_modules/@buddi/tool-host/dist/skill-run.js.map +1 -0
  360. package/node_modules/@buddi/tool-mcp/dist/.tsbuildinfo +1 -1
  361. package/node_modules/@buddi/tool-memory/dist/.tsbuildinfo +1 -1
  362. package/node_modules/@buddi/tool-memory/dist/index.d.ts +1 -0
  363. package/node_modules/@buddi/tool-memory/dist/index.d.ts.map +1 -1
  364. package/node_modules/@buddi/tool-memory/dist/index.js +7 -2
  365. package/node_modules/@buddi/tool-memory/dist/index.js.map +1 -1
  366. package/node_modules/@buddi/tool-memory/dist/people.d.ts +218 -0
  367. package/node_modules/@buddi/tool-memory/dist/people.d.ts.map +1 -0
  368. package/node_modules/@buddi/tool-memory/dist/people.js +582 -0
  369. package/node_modules/@buddi/tool-memory/dist/people.js.map +1 -0
  370. package/node_modules/@buddi/tool-memory/dist/preamble.d.ts +4 -1
  371. package/node_modules/@buddi/tool-memory/dist/preamble.d.ts.map +1 -1
  372. package/node_modules/@buddi/tool-memory/dist/preamble.js +25 -7
  373. package/node_modules/@buddi/tool-memory/dist/preamble.js.map +1 -1
  374. package/node_modules/@buddi/tool-memory/migrations/002_people.sql +40 -0
  375. package/node_modules/@buddi/tool-web/dist/.tsbuildinfo +1 -1
  376. package/node_modules/imapflow/CHANGELOG.md +8 -0
  377. package/node_modules/imapflow/dist/cjs/commands/append.js +27 -3
  378. package/node_modules/imapflow/dist/cjs/commands/store.js +31 -6
  379. package/node_modules/imapflow/dist/cjs/imap-flow.d.ts +1 -1
  380. package/node_modules/imapflow/dist/cjs/imap-flow.js +1 -1
  381. package/node_modules/imapflow/dist/cjs/package-info.d.ts +1 -1
  382. package/node_modules/imapflow/dist/cjs/package-info.js +1 -1
  383. package/node_modules/imapflow/dist/esm/commands/append.js +27 -3
  384. package/node_modules/imapflow/dist/esm/commands/store.js +31 -6
  385. package/node_modules/imapflow/dist/esm/imap-flow.d.ts +1 -1
  386. package/node_modules/imapflow/dist/esm/imap-flow.js +1 -1
  387. package/node_modules/imapflow/dist/esm/package-info.d.ts +1 -1
  388. package/node_modules/imapflow/dist/esm/package-info.js +1 -1
  389. package/node_modules/imapflow/package.json +4 -4
  390. package/node_modules/pino/CONTRIBUTING.md +5 -1
  391. package/node_modules/pino/LICENSE +1 -1
  392. package/node_modules/pino/README.md +1 -1
  393. package/node_modules/pino/SECURITY.md +18 -2
  394. package/node_modules/pino/browser.js +68 -8
  395. package/node_modules/pino/docs/api.md +75 -4
  396. package/node_modules/pino/docs/asynchronous.md +18 -3
  397. package/node_modules/pino/docs/browser.md +63 -0
  398. package/node_modules/pino/docs/child-loggers.md +22 -1
  399. package/node_modules/pino/docs/ecosystem.md +1 -0
  400. package/node_modules/pino/docs/help.md +11 -3
  401. package/node_modules/pino/docs/lts.md +29 -0
  402. package/node_modules/pino/docs/pretty.md +3 -0
  403. package/node_modules/pino/docs/redaction.md +3 -8
  404. package/node_modules/pino/docs/transports.md +71 -0
  405. package/node_modules/pino/docs/web.md +11 -14
  406. package/node_modules/pino/eslint.config.js +15 -7
  407. package/node_modules/pino/lib/caller.js +10 -0
  408. package/node_modules/pino/lib/meta.js +1 -1
  409. package/node_modules/pino/lib/multistream.js +15 -7
  410. package/node_modules/pino/lib/redaction.js +8 -3
  411. package/node_modules/pino/lib/symbols.js +3 -1
  412. package/node_modules/pino/lib/tools.js +2 -2
  413. package/node_modules/pino/lib/transport.js +14 -1
  414. package/node_modules/pino/lib/worker.js +4 -1
  415. package/node_modules/pino/package.json +14 -22
  416. package/node_modules/pino/pino.d.ts +709 -736
  417. package/node_modules/pino/pino.js +27 -2
  418. package/node_modules/pino/test/basic.test.js +66 -0
  419. package/node_modules/pino/test/browser-bindings.test.js +114 -0
  420. package/node_modules/pino/test/browser-redaction.test.js +264 -0
  421. package/node_modules/pino/test/browser-set-bindings.test.js +99 -0
  422. package/node_modules/pino/test/caller.test.js +20 -0
  423. package/node_modules/pino/test/escaping.test.js +17 -0
  424. package/node_modules/pino/test/fixtures/caller-loop.js +6 -0
  425. package/node_modules/pino/test/fixtures/ts/transpile.cjs +3 -3
  426. package/node_modules/pino/test/helper.js +6 -2
  427. package/node_modules/pino/test/multistream.test.js +64 -0
  428. package/node_modules/pino/test/redact.test.js +30 -0
  429. package/node_modules/pino/test/smoke.js +59 -0
  430. package/node_modules/pino/test/transport/core.test.js +85 -0
  431. package/node_modules/pino/test/transport/sync-false.test.js +12 -0
  432. package/node_modules/pino/test/transport/uses-pino-config.test.js +4 -4
  433. package/node_modules/pino/test/types/pino-import.tst.cts +30 -0
  434. package/node_modules/pino/test/types/pino-import.tst.js +73 -0
  435. package/node_modules/pino/test/types/pino-multistream.tst.ts +49 -0
  436. package/node_modules/pino/test/types/pino-top-export.tst.ts +32 -0
  437. package/node_modules/pino/test/types/{pino-transport.test-d.ts → pino-transport.tst.ts} +85 -70
  438. package/node_modules/pino/test/types/pino-type-only.tst.ts +77 -0
  439. package/node_modules/pino/test/types/pino.ts +14 -7
  440. package/node_modules/pino/test/types/{pino.test-d.ts → pino.tst.ts} +135 -137
  441. package/node_modules/pino/test/types/tsconfig.json +10 -0
  442. package/node_modules/pino/tsconfig.json +6 -6
  443. package/node_modules/real-require/README.md +6 -6
  444. package/node_modules/real-require/package.json +10 -21
  445. package/node_modules/real-require/src/index.js +2 -2
  446. package/package.json +2 -2
  447. package/packages/cli/dist/.tsbuildinfo +1 -1
  448. package/packages/cli/dist/doctor-probes.d.ts.map +1 -1
  449. package/packages/cli/dist/doctor-probes.js +44 -3
  450. package/packages/cli/dist/doctor-probes.js.map +1 -1
  451. package/packages/cli/dist/doctor.d.ts +37 -0
  452. package/packages/cli/dist/doctor.d.ts.map +1 -1
  453. package/packages/cli/dist/doctor.js +37 -0
  454. package/packages/cli/dist/doctor.js.map +1 -1
  455. package/packages/core/dist/.tsbuildinfo +1 -1
  456. package/packages/core/dist/actions/approvals.d.ts +7 -0
  457. package/packages/core/dist/actions/approvals.d.ts.map +1 -1
  458. package/packages/core/dist/actions/approvals.js +11 -1
  459. package/packages/core/dist/actions/approvals.js.map +1 -1
  460. package/packages/core/dist/agents/catalog.d.ts.map +1 -1
  461. package/packages/core/dist/agents/catalog.js +2 -2
  462. package/packages/core/dist/agents/catalog.js.map +1 -1
  463. package/packages/core/dist/agents/skills.d.ts +60 -1
  464. package/packages/core/dist/agents/skills.d.ts.map +1 -1
  465. package/packages/core/dist/agents/skills.js +157 -17
  466. package/packages/core/dist/agents/skills.js.map +1 -1
  467. package/packages/core/dist/day-month.d.ts +52 -0
  468. package/packages/core/dist/day-month.d.ts.map +1 -0
  469. package/packages/core/dist/day-month.js +101 -0
  470. package/packages/core/dist/day-month.js.map +1 -0
  471. package/packages/core/dist/host/build.d.ts +25 -2
  472. package/packages/core/dist/host/build.d.ts.map +1 -1
  473. package/packages/core/dist/host/build.js +169 -8
  474. package/packages/core/dist/host/build.js.map +1 -1
  475. package/packages/core/dist/host/http.d.ts +97 -0
  476. package/packages/core/dist/host/http.d.ts.map +1 -1
  477. package/packages/core/dist/host/http.js +321 -26
  478. package/packages/core/dist/host/http.js.map +1 -1
  479. package/packages/core/dist/host/types.d.ts +114 -4
  480. package/packages/core/dist/host/types.d.ts.map +1 -1
  481. package/packages/core/dist/index.d.ts +3 -0
  482. package/packages/core/dist/index.d.ts.map +1 -1
  483. package/packages/core/dist/index.js +3 -0
  484. package/packages/core/dist/index.js.map +1 -1
  485. package/packages/core/dist/notifications/notify.d.ts.map +1 -1
  486. package/packages/core/dist/notifications/notify.js +10 -6
  487. package/packages/core/dist/notifications/notify.js.map +1 -1
  488. package/packages/core/dist/notifications/store.d.ts.map +1 -1
  489. package/packages/core/dist/notifications/store.js +2 -1
  490. package/packages/core/dist/notifications/store.js.map +1 -1
  491. package/packages/core/dist/notifications/types.d.ts +8 -0
  492. package/packages/core/dist/notifications/types.d.ts.map +1 -1
  493. package/packages/core/dist/notifications/types.js.map +1 -1
  494. package/packages/core/dist/onboarding/store.d.ts.map +1 -1
  495. package/packages/core/dist/onboarding/store.js +28 -5
  496. package/packages/core/dist/onboarding/store.js.map +1 -1
  497. package/packages/core/dist/onboarding/types.d.ts +10 -0
  498. package/packages/core/dist/onboarding/types.d.ts.map +1 -1
  499. package/packages/core/dist/onboarding/types.js.map +1 -1
  500. package/packages/core/dist/pages.d.ts +449 -20
  501. package/packages/core/dist/pages.d.ts.map +1 -1
  502. package/packages/core/dist/pages.js +223 -8
  503. package/packages/core/dist/pages.js.map +1 -1
  504. package/packages/core/dist/plugin/assets.d.ts +52 -0
  505. package/packages/core/dist/plugin/assets.d.ts.map +1 -0
  506. package/packages/core/dist/plugin/assets.js +59 -0
  507. package/packages/core/dist/plugin/assets.js.map +1 -0
  508. package/packages/core/dist/plugin/index.d.ts +10 -4
  509. package/packages/core/dist/plugin/index.d.ts.map +1 -1
  510. package/packages/core/dist/plugin/index.js +4 -1
  511. package/packages/core/dist/plugin/index.js.map +1 -1
  512. package/packages/core/dist/plugin/requires.d.ts +3 -1
  513. package/packages/core/dist/plugin/requires.d.ts.map +1 -1
  514. package/packages/core/dist/plugin/requires.js +5 -3
  515. package/packages/core/dist/plugin/requires.js.map +1 -1
  516. package/packages/core/dist/plugin/sign-in.d.ts +78 -0
  517. package/packages/core/dist/plugin/sign-in.d.ts.map +1 -0
  518. package/packages/core/dist/plugin/sign-in.js +54 -0
  519. package/packages/core/dist/plugin/sign-in.js.map +1 -0
  520. package/packages/core/dist/plugin/uses.d.ts +1 -1
  521. package/packages/core/dist/plugin/uses.d.ts.map +1 -1
  522. package/packages/core/dist/plugin/uses.js +2 -0
  523. package/packages/core/dist/plugin/uses.js.map +1 -1
  524. package/packages/core/dist/plugin/version.d.ts +1 -1
  525. package/packages/core/dist/plugin/version.js +1 -1
  526. package/packages/core/dist/plugin-assets.d.ts +21 -0
  527. package/packages/core/dist/plugin-assets.d.ts.map +1 -0
  528. package/packages/core/dist/plugin-assets.js +140 -0
  529. package/packages/core/dist/plugin-assets.js.map +1 -0
  530. package/packages/core/dist/provider-accounts.d.ts +7 -0
  531. package/packages/core/dist/provider-accounts.d.ts.map +1 -1
  532. package/packages/core/dist/provider-accounts.js +15 -0
  533. package/packages/core/dist/provider-accounts.js.map +1 -1
  534. package/packages/core/dist/questions/types.d.ts +1 -1
  535. package/packages/core/dist/questions/types.js +1 -1
  536. package/packages/core/dist/queue/jobs.d.ts +57 -2
  537. package/packages/core/dist/queue/jobs.d.ts.map +1 -1
  538. package/packages/core/dist/queue/jobs.js +114 -0
  539. package/packages/core/dist/queue/jobs.js.map +1 -1
  540. package/packages/core/dist/queue/worker.d.ts +24 -2
  541. package/packages/core/dist/queue/worker.d.ts.map +1 -1
  542. package/packages/core/dist/queue/worker.js +66 -11
  543. package/packages/core/dist/queue/worker.js.map +1 -1
  544. package/packages/core/dist/registry.d.ts +17 -0
  545. package/packages/core/dist/registry.d.ts.map +1 -1
  546. package/packages/core/dist/registry.js +48 -4
  547. package/packages/core/dist/registry.js.map +1 -1
  548. package/packages/core/dist/scheduler/missions.d.ts +14 -0
  549. package/packages/core/dist/scheduler/missions.d.ts.map +1 -1
  550. package/packages/core/dist/scheduler/missions.js +17 -4
  551. package/packages/core/dist/scheduler/missions.js.map +1 -1
  552. package/packages/core/dist/scheduler/types.d.ts +13 -0
  553. package/packages/core/dist/scheduler/types.d.ts.map +1 -1
  554. package/packages/core/dist/scheduler/types.js +14 -0
  555. package/packages/core/dist/scheduler/types.js.map +1 -1
  556. package/packages/core/dist/secrets/scrub.d.ts.map +1 -1
  557. package/packages/core/dist/secrets/scrub.js +15 -0
  558. package/packages/core/dist/secrets/scrub.js.map +1 -1
  559. package/packages/core/dist/surfaces.d.ts +10 -0
  560. package/packages/core/dist/surfaces.d.ts.map +1 -1
  561. package/packages/core/dist/surfaces.js +11 -0
  562. package/packages/core/dist/surfaces.js.map +1 -1
  563. package/packages/core/dist/tools.d.ts +72 -1
  564. package/packages/core/dist/tools.d.ts.map +1 -1
  565. package/packages/core/dist/tools.js +38 -0
  566. package/packages/core/dist/tools.js.map +1 -1
  567. package/packages/core/dist/views.d.ts +29 -12
  568. package/packages/core/dist/views.d.ts.map +1 -1
  569. package/packages/core/dist/views.js +1 -0
  570. package/packages/core/dist/views.js.map +1 -1
  571. package/packages/core/dist/widget-settings.d.ts +2 -1
  572. package/packages/core/dist/widget-settings.d.ts.map +1 -1
  573. package/packages/core/dist/widget-settings.js +8 -2
  574. package/packages/core/dist/widget-settings.js.map +1 -1
  575. package/packages/core/dist/widgets.d.ts +46 -3
  576. package/packages/core/dist/widgets.d.ts.map +1 -1
  577. package/packages/core/dist/widgets.js +68 -5
  578. package/packages/core/dist/widgets.js.map +1 -1
  579. package/packages/core/migrations/073_mission_report.sql +15 -0
  580. package/packages/core/migrations/074_owner_identity.sql +14 -0
  581. package/packages/gateway/dist/.tsbuildinfo +1 -1
  582. package/packages/gateway/dist/agents/catalog.d.ts.map +1 -1
  583. package/packages/gateway/dist/agents/catalog.js +3 -3
  584. package/packages/gateway/dist/agents/catalog.js.map +1 -1
  585. package/packages/gateway/dist/agents/catalogue-package.d.ts +76 -0
  586. package/packages/gateway/dist/agents/catalogue-package.d.ts.map +1 -1
  587. package/packages/gateway/dist/agents/catalogue-package.js +29 -5
  588. package/packages/gateway/dist/agents/catalogue-package.js.map +1 -1
  589. package/packages/gateway/dist/agents/owner-text.d.ts +19 -0
  590. package/packages/gateway/dist/agents/owner-text.d.ts.map +1 -0
  591. package/packages/gateway/dist/agents/owner-text.js +44 -0
  592. package/packages/gateway/dist/agents/owner-text.js.map +1 -0
  593. package/packages/gateway/dist/agents/owner-tools.d.ts.map +1 -1
  594. package/packages/gateway/dist/agents/owner-tools.js +36 -2
  595. package/packages/gateway/dist/agents/owner-tools.js.map +1 -1
  596. package/packages/gateway/dist/agents/platform-catalogue.d.ts +68 -3
  597. package/packages/gateway/dist/agents/platform-catalogue.d.ts.map +1 -1
  598. package/packages/gateway/dist/agents/platform-catalogue.js +264 -32
  599. package/packages/gateway/dist/agents/platform-catalogue.js.map +1 -1
  600. package/packages/gateway/dist/agents/platform.d.ts +11 -4
  601. package/packages/gateway/dist/agents/platform.d.ts.map +1 -1
  602. package/packages/gateway/dist/agents/platform.js +15 -0
  603. package/packages/gateway/dist/agents/platform.js.map +1 -1
  604. package/packages/gateway/dist/bootstrap.d.ts.map +1 -1
  605. package/packages/gateway/dist/bootstrap.js +7 -1
  606. package/packages/gateway/dist/bootstrap.js.map +1 -1
  607. package/packages/gateway/dist/evals/golden.d.ts +33 -1
  608. package/packages/gateway/dist/evals/golden.d.ts.map +1 -1
  609. package/packages/gateway/dist/evals/golden.js +168 -3
  610. package/packages/gateway/dist/evals/golden.js.map +1 -1
  611. package/packages/gateway/dist/index.d.ts +2 -1
  612. package/packages/gateway/dist/index.d.ts.map +1 -1
  613. package/packages/gateway/dist/index.js +2 -1
  614. package/packages/gateway/dist/index.js.map +1 -1
  615. package/packages/gateway/dist/missions/agent-run.d.ts.map +1 -1
  616. package/packages/gateway/dist/missions/agent-run.js +2 -0
  617. package/packages/gateway/dist/missions/agent-run.js.map +1 -1
  618. package/packages/gateway/dist/missions/dates.d.ts +98 -0
  619. package/packages/gateway/dist/missions/dates.d.ts.map +1 -0
  620. package/packages/gateway/dist/missions/dates.js +252 -0
  621. package/packages/gateway/dist/missions/dates.js.map +1 -0
  622. package/packages/gateway/dist/missions/defaults.d.ts.map +1 -1
  623. package/packages/gateway/dist/missions/defaults.js +2 -0
  624. package/packages/gateway/dist/missions/defaults.js.map +1 -1
  625. package/packages/gateway/dist/missions/execute.d.ts +25 -1
  626. package/packages/gateway/dist/missions/execute.d.ts.map +1 -1
  627. package/packages/gateway/dist/missions/execute.js +80 -8
  628. package/packages/gateway/dist/missions/execute.js.map +1 -1
  629. package/packages/gateway/dist/missions/report.d.ts +25 -2
  630. package/packages/gateway/dist/missions/report.d.ts.map +1 -1
  631. package/packages/gateway/dist/missions/report.js +71 -11
  632. package/packages/gateway/dist/missions/report.js.map +1 -1
  633. package/packages/gateway/dist/ollama-local.d.ts +90 -0
  634. package/packages/gateway/dist/ollama-local.d.ts.map +1 -0
  635. package/packages/gateway/dist/ollama-local.js +201 -0
  636. package/packages/gateway/dist/ollama-local.js.map +1 -0
  637. package/packages/gateway/dist/owner-notify.d.ts.map +1 -1
  638. package/packages/gateway/dist/owner-notify.js +7 -3
  639. package/packages/gateway/dist/owner-notify.js.map +1 -1
  640. package/packages/gateway/dist/plugins/asset-image-worker.d.ts +2 -0
  641. package/packages/gateway/dist/plugins/asset-image-worker.d.ts.map +1 -0
  642. package/packages/gateway/dist/plugins/asset-image-worker.js +18 -0
  643. package/packages/gateway/dist/plugins/asset-image-worker.js.map +1 -0
  644. package/packages/gateway/dist/plugins/asset-image.d.ts +31 -0
  645. package/packages/gateway/dist/plugins/asset-image.d.ts.map +1 -0
  646. package/packages/gateway/dist/plugins/asset-image.js +332 -0
  647. package/packages/gateway/dist/plugins/asset-image.js.map +1 -0
  648. package/packages/gateway/dist/plugins/load.d.ts.map +1 -1
  649. package/packages/gateway/dist/plugins/load.js +14 -1
  650. package/packages/gateway/dist/plugins/load.js.map +1 -1
  651. package/packages/gateway/dist/plugins/stage.d.ts +6 -0
  652. package/packages/gateway/dist/plugins/stage.d.ts.map +1 -1
  653. package/packages/gateway/dist/plugins/stage.js +5 -0
  654. package/packages/gateway/dist/plugins/stage.js.map +1 -1
  655. package/packages/gateway/dist/plugins/uninstall.d.ts.map +1 -1
  656. package/packages/gateway/dist/plugins/uninstall.js +8 -0
  657. package/packages/gateway/dist/plugins/uninstall.js.map +1 -1
  658. package/packages/gateway/dist/plugins-cli.d.ts +8 -0
  659. package/packages/gateway/dist/plugins-cli.d.ts.map +1 -1
  660. package/packages/gateway/dist/plugins-cli.js +22 -1
  661. package/packages/gateway/dist/plugins-cli.js.map +1 -1
  662. package/packages/gateway/dist/serve.d.ts.map +1 -1
  663. package/packages/gateway/dist/serve.js +50 -5
  664. package/packages/gateway/dist/serve.js.map +1 -1
  665. package/packages/gateway/dist/surfaces/pending-question.js +2 -2
  666. package/packages/gateway/dist/system-context.d.ts +21 -1
  667. package/packages/gateway/dist/system-context.d.ts.map +1 -1
  668. package/packages/gateway/dist/system-context.js +76 -2
  669. package/packages/gateway/dist/system-context.js.map +1 -1
  670. package/packages/gateway/dist/telegram/approvals.d.ts.map +1 -1
  671. package/packages/gateway/dist/telegram/approvals.js +4 -2
  672. package/packages/gateway/dist/telegram/approvals.js.map +1 -1
  673. package/packages/gateway/dist/telegram/channel.d.ts +12 -0
  674. package/packages/gateway/dist/telegram/channel.d.ts.map +1 -1
  675. package/packages/gateway/dist/telegram/channel.js +49 -2
  676. package/packages/gateway/dist/telegram/channel.js.map +1 -1
  677. package/packages/gateway/dist/telegram/html.d.ts +34 -0
  678. package/packages/gateway/dist/telegram/html.d.ts.map +1 -0
  679. package/packages/gateway/dist/telegram/html.js +263 -0
  680. package/packages/gateway/dist/telegram/html.js.map +1 -0
  681. package/packages/gateway/dist/telegram/notify.d.ts +6 -0
  682. package/packages/gateway/dist/telegram/notify.d.ts.map +1 -1
  683. package/packages/gateway/dist/telegram/notify.js +25 -3
  684. package/packages/gateway/dist/telegram/notify.js.map +1 -1
  685. package/packages/gateway/dist/tips/facts.d.ts +2 -0
  686. package/packages/gateway/dist/tips/facts.d.ts.map +1 -1
  687. package/packages/gateway/dist/tips/facts.js +4 -1
  688. package/packages/gateway/dist/tips/facts.js.map +1 -1
  689. package/packages/gateway/dist/tips/rules.d.ts.map +1 -1
  690. package/packages/gateway/dist/tips/rules.js +10 -0
  691. package/packages/gateway/dist/tips/rules.js.map +1 -1
  692. package/packages/gateway/dist/web/api-routes.d.ts.map +1 -1
  693. package/packages/gateway/dist/web/api-routes.js +80 -11
  694. package/packages/gateway/dist/web/api-routes.js.map +1 -1
  695. package/packages/gateway/dist/web/api-scan.d.ts +1 -1
  696. package/packages/gateway/dist/web/api-scan.d.ts.map +1 -1
  697. package/packages/gateway/dist/web/api-scan.js +1 -0
  698. package/packages/gateway/dist/web/api-scan.js.map +1 -1
  699. package/packages/gateway/dist/web/catalogue.d.ts.map +1 -1
  700. package/packages/gateway/dist/web/catalogue.js +7 -4
  701. package/packages/gateway/dist/web/catalogue.js.map +1 -1
  702. package/packages/gateway/dist/web/chat.d.ts.map +1 -1
  703. package/packages/gateway/dist/web/chat.js +9 -0
  704. package/packages/gateway/dist/web/chat.js.map +1 -1
  705. package/packages/gateway/dist/web/composer.d.ts +45 -0
  706. package/packages/gateway/dist/web/composer.d.ts.map +1 -0
  707. package/packages/gateway/dist/web/composer.js +85 -0
  708. package/packages/gateway/dist/web/composer.js.map +1 -0
  709. package/packages/gateway/dist/web/extension.d.ts +12 -0
  710. package/packages/gateway/dist/web/extension.d.ts.map +1 -1
  711. package/packages/gateway/dist/web/extension.js +11 -1
  712. package/packages/gateway/dist/web/extension.js.map +1 -1
  713. package/packages/gateway/dist/web/lock.d.ts +6 -0
  714. package/packages/gateway/dist/web/lock.d.ts.map +1 -1
  715. package/packages/gateway/dist/web/lock.js +33 -2
  716. package/packages/gateway/dist/web/lock.js.map +1 -1
  717. package/packages/gateway/dist/web/market.d.ts +20 -1
  718. package/packages/gateway/dist/web/market.d.ts.map +1 -1
  719. package/packages/gateway/dist/web/market.js +41 -1
  720. package/packages/gateway/dist/web/market.js.map +1 -1
  721. package/packages/gateway/dist/web/people.d.ts +44 -0
  722. package/packages/gateway/dist/web/people.d.ts.map +1 -0
  723. package/packages/gateway/dist/web/people.js +114 -0
  724. package/packages/gateway/dist/web/people.js.map +1 -0
  725. package/packages/gateway/dist/web/server.d.ts +4 -0
  726. package/packages/gateway/dist/web/server.d.ts.map +1 -1
  727. package/packages/gateway/dist/web/server.js +171 -13
  728. package/packages/gateway/dist/web/server.js.map +1 -1
  729. package/packages/gateway/dist/web/skill-bundles.d.ts +101 -0
  730. package/packages/gateway/dist/web/skill-bundles.d.ts.map +1 -0
  731. package/packages/gateway/dist/web/skill-bundles.js +439 -0
  732. package/packages/gateway/dist/web/skill-bundles.js.map +1 -0
  733. package/packages/gateway/dist/web/skills.d.ts +57 -1
  734. package/packages/gateway/dist/web/skills.d.ts.map +1 -1
  735. package/packages/gateway/dist/web/skills.js +171 -9
  736. package/packages/gateway/dist/web/skills.js.map +1 -1
  737. package/packages/gateway/dist/web/widgets.js +2 -2
  738. package/packages/gateway/dist/web/widgets.js.map +1 -1
  739. package/packages/gateway/dist/web/zip-read.d.ts +31 -0
  740. package/packages/gateway/dist/web/zip-read.d.ts.map +1 -0
  741. package/packages/gateway/dist/web/zip-read.js +125 -0
  742. package/packages/gateway/dist/web/zip-read.js.map +1 -0
  743. package/packages/install/dist/.tsbuildinfo +1 -1
  744. package/packages/runtime/dist/.tsbuildinfo +1 -1
  745. package/packages/runtime/dist/index.d.ts +1 -0
  746. package/packages/runtime/dist/index.d.ts.map +1 -1
  747. package/packages/runtime/dist/index.js +1 -0
  748. package/packages/runtime/dist/index.js.map +1 -1
  749. package/packages/runtime/dist/loop.js +11 -1
  750. package/packages/runtime/dist/loop.js.map +1 -1
  751. package/packages/runtime/dist/plugin-sign-in.d.ts +12 -0
  752. package/packages/runtime/dist/plugin-sign-in.d.ts.map +1 -0
  753. package/packages/runtime/dist/plugin-sign-in.js +397 -0
  754. package/packages/runtime/dist/plugin-sign-in.js.map +1 -0
  755. package/packages/runtime/dist/transport.d.ts +1 -1
  756. package/packages/runtime/dist/transport.d.ts.map +1 -1
  757. package/packages/runtime/dist/transport.js +6 -0
  758. package/packages/runtime/dist/transport.js.map +1 -1
  759. package/packages/tools/artifacts/dist/.tsbuildinfo +1 -1
  760. package/packages/tools/artifacts/dist/tools/write.d.ts.map +1 -1
  761. package/packages/tools/artifacts/dist/tools/write.js +1 -0
  762. package/packages/tools/artifacts/dist/tools/write.js.map +1 -1
  763. package/packages/tools/browser/dist/.tsbuildinfo +1 -1
  764. package/packages/tools/browser/dist/computer.d.ts +13 -0
  765. package/packages/tools/browser/dist/computer.d.ts.map +1 -1
  766. package/packages/tools/browser/dist/computer.js +22 -2
  767. package/packages/tools/browser/dist/computer.js.map +1 -1
  768. package/packages/tools/browser/dist/controller.d.ts +4 -0
  769. package/packages/tools/browser/dist/controller.d.ts.map +1 -1
  770. package/packages/tools/browser/dist/controller.js +8 -3
  771. package/packages/tools/browser/dist/controller.js.map +1 -1
  772. package/packages/tools/browser/dist/index.d.ts +1 -1
  773. package/packages/tools/browser/dist/index.d.ts.map +1 -1
  774. package/packages/tools/browser/dist/index.js +1 -1
  775. package/packages/tools/browser/dist/index.js.map +1 -1
  776. package/packages/tools/browser/dist/native/buddi-computer +0 -0
  777. package/packages/tools/browser/dist/service.d.ts +5 -0
  778. package/packages/tools/browser/dist/service.d.ts.map +1 -1
  779. package/packages/tools/browser/dist/service.js.map +1 -1
  780. package/packages/tools/email/dist/.tsbuildinfo +1 -1
  781. package/packages/tools/email/dist/widgets.d.ts.map +1 -1
  782. package/packages/tools/email/dist/widgets.js +2 -1
  783. package/packages/tools/email/dist/widgets.js.map +1 -1
  784. package/packages/tools/host/dist/.tsbuildinfo +1 -1
  785. package/packages/tools/host/dist/index.d.ts +2 -1
  786. package/packages/tools/host/dist/index.d.ts.map +1 -1
  787. package/packages/tools/host/dist/index.js +3 -2
  788. package/packages/tools/host/dist/index.js.map +1 -1
  789. package/packages/tools/host/dist/process.d.ts +4 -0
  790. package/packages/tools/host/dist/process.d.ts.map +1 -1
  791. package/packages/tools/host/dist/process.js +4 -2
  792. package/packages/tools/host/dist/process.js.map +1 -1
  793. package/packages/tools/host/dist/service.d.ts +66 -17
  794. package/packages/tools/host/dist/service.d.ts.map +1 -1
  795. package/packages/tools/host/dist/service.js +172 -9
  796. package/packages/tools/host/dist/service.js.map +1 -1
  797. package/packages/tools/host/dist/skill-run.d.ts +55 -0
  798. package/packages/tools/host/dist/skill-run.d.ts.map +1 -0
  799. package/packages/tools/host/dist/skill-run.js +132 -0
  800. package/packages/tools/host/dist/skill-run.js.map +1 -0
  801. package/packages/tools/mcp/dist/.tsbuildinfo +1 -1
  802. package/packages/tools/memory/dist/.tsbuildinfo +1 -1
  803. package/packages/tools/memory/dist/index.d.ts +1 -0
  804. package/packages/tools/memory/dist/index.d.ts.map +1 -1
  805. package/packages/tools/memory/dist/index.js +7 -2
  806. package/packages/tools/memory/dist/index.js.map +1 -1
  807. package/packages/tools/memory/dist/people.d.ts +218 -0
  808. package/packages/tools/memory/dist/people.d.ts.map +1 -0
  809. package/packages/tools/memory/dist/people.js +582 -0
  810. package/packages/tools/memory/dist/people.js.map +1 -0
  811. package/packages/tools/memory/dist/preamble.d.ts +4 -1
  812. package/packages/tools/memory/dist/preamble.d.ts.map +1 -1
  813. package/packages/tools/memory/dist/preamble.js +25 -7
  814. package/packages/tools/memory/dist/preamble.js.map +1 -1
  815. package/packages/tools/memory/migrations/002_people.sql +40 -0
  816. package/packages/tools/web/dist/.tsbuildinfo +1 -1
  817. package/packages/web/dist/assets/index-CN1AXMI1.css +1 -0
  818. package/packages/web/dist/assets/index-CQRE9LJX.js +145 -0
  819. package/packages/web/dist/assets/{lottie_light-DYHnHRWL.js → lottie_light-CKJ88Yuk.js} +1 -1
  820. package/packages/web/dist/build.json +1 -1
  821. package/packages/web/dist/index.html +2 -2
  822. package/packages/web/dist/precache.json +4 -4
  823. package/node_modules/pino/test/types/pino-import.test-d.cts +0 -30
  824. package/node_modules/pino/test/types/pino-multistream.test-d.ts +0 -28
  825. package/node_modules/pino/test/types/pino-top-export.test-d.ts +0 -34
  826. package/node_modules/pino/test/types/pino-type-only.test-d.ts +0 -75
  827. package/node_modules/thread-stream/node_modules/real-require/LICENSE.md +0 -21
  828. package/node_modules/thread-stream/node_modules/real-require/README.md +0 -51
  829. package/node_modules/thread-stream/node_modules/real-require/package.json +0 -38
  830. package/node_modules/thread-stream/node_modules/real-require/src/index.js +0 -14
  831. package/packages/web/dist/assets/index-ZauRFo4G.js +0 -134
  832. package/packages/web/dist/assets/index-viBWQfeT.css +0 -1
@@ -356,7 +356,7 @@ export declare class ImapFlow extends EventEmitter {
356
356
  * Sets flags for a message or message range
357
357
  *
358
358
  * @param range Range to filter the messages
359
- * @param flags Array of flags to set. Only flags that are permitted to set are used, other flags are ignored
359
+ * @param flags Array of flags to set. Only flags that are permitted to set are used, other flags are ignored. An empty array clears every flag, but a non-empty array with nothing usable in it is refused rather than clearing the message
360
360
  * @param options Store options
361
361
  * @returns Did the operation succeed or not
362
362
  *
@@ -2631,7 +2631,7 @@ class ImapFlow extends node_events_1.EventEmitter {
2631
2631
  * Sets flags for a message or message range
2632
2632
  *
2633
2633
  * @param range Range to filter the messages
2634
- * @param flags Array of flags to set. Only flags that are permitted to set are used, other flags are ignored
2634
+ * @param flags Array of flags to set. Only flags that are permitted to set are used, other flags are ignored. An empty array clears every flag, but a non-empty array with nothing usable in it is refused rather than clearing the message
2635
2635
  * @param options Store options
2636
2636
  * @returns Did the operation succeed or not
2637
2637
  *
@@ -1,3 +1,3 @@
1
1
  export declare const name = "imapflow";
2
- export declare const version = "2.2.1";
2
+ export declare const version = "2.2.2";
3
3
  export declare const homepage = "https://imapflow.com/";
@@ -3,5 +3,5 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.homepage = exports.version = exports.name = void 0;
5
5
  exports.name = "imapflow";
6
- exports.version = "2.2.1";
6
+ exports.version = "2.2.2";
7
7
  exports.homepage = "https://imapflow.com/";
@@ -34,10 +34,34 @@ export default async function append(connection, destination, content, flags, id
34
34
  let selected = getSelectedMailbox(connection);
35
35
  // The selected mailbox when appending to it, false otherwise
36
36
  const targetMailbox = selected && comparePaths(connection, selected.path, destination) ? selected : false;
37
- // Validate and format flags. Only flags allowed by the mailbox's permanentFlags are included.
37
+ // Flags are only filtered when a read-write selection of the destination itself says what it
38
+ // accepts: the permanentFlags of an unrelated mailbox say nothing about the destination, and a
39
+ // read-only selection reports an empty PERMANENTFLAGS list (Dovecot does), which canUseFlag()
40
+ // reads as deny-all. Otherwise they go to the server unfiltered and it decides (RFC 9051).
41
+ const flagSource = targetMailbox && !targetMailbox.readOnly ? targetMailbox : false;
42
+ const dropped = [];
38
43
  flags = (Array.isArray(flags) ? flags : [].concat(flags || []))
39
- .map(flag => flag && formatFlag(flag.toString()))
40
- .filter((flag) => !!flag && canUseFlag(connection.mailbox, flag));
44
+ .map(flag => {
45
+ const formatted = flag && formatFlag(flag.toString());
46
+ if (!formatted || !canUseFlag(flagSource, formatted)) {
47
+ if (flag) {
48
+ dropped.push(flag.toString());
49
+ }
50
+ return false;
51
+ }
52
+ return formatted;
53
+ })
54
+ .filter((flag) => !!flag);
55
+ // The stored message simply ends up without them, and the caller is told nothing, so leave
56
+ // a trail for the flags that never reached the server.
57
+ if (dropped.length) {
58
+ connection.log.warn({
59
+ msg: 'Dropped flags the mailbox does not accept',
60
+ cid: connection.id,
61
+ path: destination,
62
+ dropped
63
+ });
64
+ }
41
65
  // APPEND command format: APPEND <mailbox> [<flags>] [<date-time>] <literal>
42
66
  let attributes = [{ type: 'ATOM', value: encodePath(connection, destination) }];
43
67
  // Internal date: the date the server should record for this message.
@@ -28,8 +28,11 @@ export default async function store(connection, range, flags, options) {
28
28
  else if (options.silent) {
29
29
  operation = `${operation}.SILENT`;
30
30
  }
31
+ // Normalized once: the raw value is also compared below, and a mixed-case 'SET' must not
32
+ // take the set branch here and the add branch there.
33
+ const operationName = (options.operation || '').toLowerCase();
31
34
  // Prefix determines the operation: none = set (replace), + = add, - = remove
32
- switch ((options.operation || '').toLowerCase()) {
35
+ switch (operationName) {
33
36
  case 'set':
34
37
  break;
35
38
  case 'remove':
@@ -40,20 +43,42 @@ export default async function store(connection, range, flags, options) {
40
43
  operation = `+${operation}`;
41
44
  break;
42
45
  }
43
- // Validate each flag: format it (normalize backslash prefix for system flags),
44
- // then check if the mailbox's permanentFlags allow it. Removal is always allowed
46
+ // Only an explicitly empty array asks for every flag to be cleared. A missing value is not
47
+ // that request, and neither is a 'set' whose flags all get dropped below: either would
48
+ // compile to "FLAGS ()" and wipe the message instead of storing what was asked for. The
49
+ // line is drawn at destroying flags, not at fidelity, so a set that keeps some of the
50
+ // requested flags still runs, as the documented contract for those methods says.
51
+ const clearAll = operationName === 'set' && Array.isArray(flags) && !flags.length;
52
+ // permanentFlags lists the IMAP keywords the mailbox accepts and says nothing about Gmail
53
+ // labels, so it is not consulted for X-GM-LABELS - the same reason an unrelated mailbox's
54
+ // flags are not consulted for APPEND (issue #415).
55
+ const flagSource = options.useLabels ? false : mailbox;
56
+ // Validate each flag: format it (normalize backslash prefix for system flags, reject the
57
+ // server-owned \Recent), then check that the mailbox allows it. Removal is always allowed
45
58
  // since it doesn't require the flag to be in permanentFlags.
59
+ const dropped = [];
46
60
  flags = (Array.isArray(flags) ? flags : [].concat(flags || []))
47
61
  .map(flag => {
48
62
  let formatted = formatFlag(flag);
49
- if (!canUseFlag(mailbox, formatted) && options.operation !== 'remove') {
63
+ if (!formatted || (!canUseFlag(flagSource, formatted) && operationName !== 'remove')) {
64
+ dropped.push(flag);
50
65
  return false;
51
66
  }
52
67
  return formatted;
53
68
  })
54
69
  .filter((flag) => !!flag);
55
- // Allow empty flags only for 'set' operation (which clears all flags)
56
- if (!flags.length && options.operation !== 'set') {
70
+ // The caller is told nothing by the boolean this returns, so leave a trail for the flags
71
+ // that never reached the server.
72
+ if (dropped.length) {
73
+ connection.log.warn({
74
+ msg: 'Dropped flags the mailbox does not accept',
75
+ cid: connection.id,
76
+ path: mailbox.path,
77
+ operation,
78
+ dropped
79
+ });
80
+ }
81
+ if (!flags.length && !clearAll) {
57
82
  return false;
58
83
  }
59
84
  let attributes = [
@@ -356,7 +356,7 @@ export declare class ImapFlow extends EventEmitter {
356
356
  * Sets flags for a message or message range
357
357
  *
358
358
  * @param range Range to filter the messages
359
- * @param flags Array of flags to set. Only flags that are permitted to set are used, other flags are ignored
359
+ * @param flags Array of flags to set. Only flags that are permitted to set are used, other flags are ignored. An empty array clears every flag, but a non-empty array with nothing usable in it is refused rather than clearing the message
360
360
  * @param options Store options
361
361
  * @returns Did the operation succeed or not
362
362
  *
@@ -2590,7 +2590,7 @@ export class ImapFlow extends EventEmitter {
2590
2590
  * Sets flags for a message or message range
2591
2591
  *
2592
2592
  * @param range Range to filter the messages
2593
- * @param flags Array of flags to set. Only flags that are permitted to set are used, other flags are ignored
2593
+ * @param flags Array of flags to set. Only flags that are permitted to set are used, other flags are ignored. An empty array clears every flag, but a non-empty array with nothing usable in it is refused rather than clearing the message
2594
2594
  * @param options Store options
2595
2595
  * @returns Did the operation succeed or not
2596
2596
  *
@@ -1,3 +1,3 @@
1
1
  export declare const name = "imapflow";
2
- export declare const version = "2.2.1";
2
+ export declare const version = "2.2.2";
3
3
  export declare const homepage = "https://imapflow.com/";
@@ -1,4 +1,4 @@
1
1
  // Generated by scripts/build.js from package.json. Do not edit by hand.
2
2
  export const name = "imapflow";
3
- export const version = "2.2.1";
3
+ export const version = "2.2.2";
4
4
  export const homepage = "https://imapflow.com/";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imapflow",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "IMAP Client for Node",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/imap-flow.js",
@@ -70,7 +70,7 @@
70
70
  "devDependencies": {
71
71
  "@types/node": "20.19.43",
72
72
  "c8": "12.0.0",
73
- "eslint": "10.11.0",
73
+ "eslint": "10.12.0",
74
74
  "eslint-config-prettier": "10.1.8",
75
75
  "globals": "17.13.0",
76
76
  "prettier": "3.9.9",
@@ -78,7 +78,7 @@
78
78
  "types-node-legacy": "npm:@types/node@20.0.0",
79
79
  "typescript": "6.0.3",
80
80
  "typescript-eslint": "8.71.0",
81
- "wrangler": "4.145.0"
81
+ "wrangler": "4.147.0"
82
82
  },
83
83
  "dependencies": {
84
84
  "@zone-eu/mailsplit": "5.4.19",
@@ -87,7 +87,7 @@
87
87
  "libbase64": "1.3.1",
88
88
  "libmime": "5.4.6",
89
89
  "libqp": "2.1.2",
90
- "pino": "10.3.1",
90
+ "pino": "10.4.0",
91
91
  "socks": "2.8.10"
92
92
  },
93
93
  "engines": {
@@ -18,6 +18,10 @@ There are a few basic ground-rules for contributors:
18
18
  1. All pull-requests for new features **must** target the `main` branch. PRs to fix bugs in LTS releases are also allowed.
19
19
  1. Contributors should attempt to adhere to the prevailing code-style.
20
20
  1. 100% code coverage
21
+ 1. Pure-AI contributions with no human in the loop are not welcome. Pull
22
+ requests ***MUST*** be opened by a human. Pull requests opened by bots not
23
+ managed by the Pino organization will result in the bot being banned
24
+ from the organization.
21
25
 
22
26
  ## Releases
23
27
 
@@ -27,4 +31,4 @@ Declaring formal releases remains the prerogative of the project maintainer.
27
31
 
28
32
  This is an experiment and feedback is welcome! This document may also be subject to pull-requests or changes by contributors where you believe you have something valuable to add or change.
29
33
 
30
- -----------------------------------------
34
+ -----------------------------------------
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016-2025 Matteo Collina, David Mark Clements and the Pino contributors listed at <https://github.com/pinojs/pino#the-team> and in the README file.
3
+ Copyright (c) 2016-present Matteo Collina, David Mark Clements and the Pino contributors listed at <https://github.com/pinojs/pino#the-team> and in the README file.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -31,7 +31,7 @@ Pino is built to run on [Node.js](http://nodejs.org).
31
31
 
32
32
  ### Bare
33
33
 
34
- Pino works on [Bare](https://github.com/holepunchto/bare) with the [`pino-bare`](https://github.com/pinojs/pino-bare) compatability module.
34
+ Pino works on [Bare](https://github.com/holepunchto/bare) with the [`pino-bare`](https://github.com/pinojs/pino-bare) compatibility module.
35
35
 
36
36
  ### Pear
37
37
 
@@ -16,8 +16,24 @@ Pino trusts the applications using it and the environment that it is running in.
16
16
  This includes all the application code, the transport, the filesystem and all
17
17
  non-externally provided input.
18
18
 
19
- Pino assumes all objects being logged, `logger.info(obj, message)`, are json-serializable.
20
- Use the `serializers` and `redact` features to sanitize them.
19
+ Pino assumes all objects being logged, `logger.info(obj, message)`, are JSON-serializable.
20
+ Applications are responsible for the data structures their code constructs and logs,
21
+ including ensuring that their size, depth, breadth, and reference topology can be
22
+ serialized within acceptable CPU, memory, and output-size bounds. Resource exhaustion
23
+ caused by logging an application-constructed data structure is an application-level
24
+ concern. The `depthLimit` and `edgeLimit` options apply only to Pino's fallback
25
+ serializer after `JSON.stringify` throws; they are not general resource limits.
26
+ Use the `serializers` and `redact` features to sanitize logged objects.
27
+
28
+ Pino also assumes that applications control the top-level keys of logged objects
29
+ and child logger bindings. Do not pass externally supplied objects directly as
30
+ `logger.info(untrustedObject)` or `logger.child(untrustedObject)`. Top-level
31
+ keys are written at the root of the log line and can conflict with Pino fields
32
+ such as `level`, `time`, or `msg`, as well as application or security fields.
33
+ If untrusted data must be logged, place it under an application-controlled key,
34
+ for example `logger.info({ untrusted })` or `logger.child({ untrusted })`, and
35
+ apply appropriate serialization and redaction. As a matter of good security
36
+ hygiene, prefer not to log untrusted data at all unless it is necessary.
21
37
 
22
38
  Pino is not hardened against external prototype pollution attacks, but we
23
39
  will accept a vulnerability if Pino can be misused to cause a prototype pollution.
@@ -1,9 +1,34 @@
1
1
  'use strict'
2
2
 
3
3
  const format = require('quick-format-unescaped')
4
+ const Redact = require('@pinojs/redact')
4
5
 
5
6
  module.exports = pino
6
7
 
8
+ const CENSOR = '[Redacted]'
9
+
10
+ function handleRedactOpts (opts) {
11
+ if (Array.isArray(opts)) {
12
+ return { paths: opts, censor: CENSOR }
13
+ }
14
+ const { paths, censor = CENSOR, remove } = opts
15
+ if (!Array.isArray(paths)) {
16
+ throw Error('pino – redact must contain an array of strings')
17
+ }
18
+ return { paths, censor: remove ? undefined : censor, remove }
19
+ }
20
+
21
+ function buildRedactFn (redact) {
22
+ if (!redact) return null
23
+ const { paths, censor, remove } = handleRedactOpts(redact)
24
+ return Redact({
25
+ paths,
26
+ censor,
27
+ remove,
28
+ serialize: false
29
+ })
30
+ }
31
+
7
32
  const _console = pfGlobalThisOrFallback().console || {}
8
33
  const stdSerializers = {
9
34
  mapHttpRequest: mock,
@@ -24,6 +49,9 @@ function levelToValue (level, logger) {
24
49
  const baseLogFunctionSymbol = Symbol('pino.logFuncs')
25
50
  const hierarchySymbol = Symbol('pino.hierarchy')
26
51
 
52
+ const ownBindingsSymbol = Symbol('pino.ownBindings')
53
+ const bindingsSymbol = Symbol('pino.bindings')
54
+
27
55
  const logFallbackMap = {
28
56
  error: 'log',
29
57
  fatal: 'error',
@@ -97,6 +125,8 @@ function pino (opts) {
97
125
  // setup root hierarchy entry
98
126
  appendChildLogger({}, logger)
99
127
 
128
+ logger[bindingsSymbol] = {}
129
+
100
130
  Object.defineProperty(logger, 'levelVal', {
101
131
  get: getLevelVal
102
132
  })
@@ -105,6 +135,8 @@ function pino (opts) {
105
135
  set: setLevel
106
136
  })
107
137
 
138
+ const redactFn = buildRedactFn(opts.redact)
139
+
108
140
  const setOpts = {
109
141
  transmit,
110
142
  serialize,
@@ -115,7 +147,8 @@ function pino (opts) {
115
147
  levels,
116
148
  timestamp: getTimeFunction(opts),
117
149
  messageKey: opts.messageKey || 'msg',
118
- onChild: opts.onChild || noop
150
+ onChild: opts.onChild || noop,
151
+ redactFn
119
152
  }
120
153
  logger.levels = getLevels(opts)
121
154
  logger.level = level
@@ -139,6 +172,21 @@ function pino (opts) {
139
172
  logger._stdErrSerialize = stdErrSerialize
140
173
  logger.child = function (...args) { return child.call(this, setOpts, ...args) }
141
174
 
175
+ logger.bindings = function () {
176
+ return Object.assign({}, this[bindingsSymbol])
177
+ }
178
+
179
+ logger.setBindings = function (newBindings) {
180
+ this[ownBindingsSymbol] = Object.assign({}, this[ownBindingsSymbol], newBindings)
181
+ this[bindingsSymbol] = Object.assign({}, this[bindingsSymbol], newBindings)
182
+ if (this._logEvent) {
183
+ this._logEvent.bindings.push(newBindings)
184
+ }
185
+ // reassigning the level rebuilds the log functions so the updated
186
+ // bindings are prepended to subsequent log calls
187
+ this.level = this._level
188
+ }
189
+
142
190
  if (transmit) logger._logEvent = createLogEventShape()
143
191
 
144
192
  function getLevelVal () {
@@ -187,7 +235,13 @@ function pino (opts) {
187
235
  this._childLevel = (parent._childLevel | 0) + 1
188
236
 
189
237
  // make sure bindings are available in the `set` function
190
- this.bindings = bindings
238
+ this[ownBindingsSymbol] = bindings
239
+
240
+ this[bindingsSymbol] = Object.assign(
241
+ {},
242
+ parent[bindingsSymbol],
243
+ bindings
244
+ )
191
245
 
192
246
  if (childSerializers) {
193
247
  this.serializers = childSerializers
@@ -258,16 +312,16 @@ pino.stdTimeFunctions = Object.assign({}, { nullTime, epochTime, unixTime, isoTi
258
312
 
259
313
  function getBindingChain (logger) {
260
314
  const bindings = []
261
- if (logger.bindings) {
262
- bindings.push(logger.bindings)
315
+ if (logger[ownBindingsSymbol]) {
316
+ bindings.push(logger[ownBindingsSymbol])
263
317
  }
264
318
 
265
319
  // traverse up the tree to get all bindings
266
320
  let hierarchy = logger[hierarchySymbol]
267
321
  while (hierarchy.parent) {
268
322
  hierarchy = hierarchy.parent
269
- if (hierarchy.logger.bindings) {
270
- bindings.push(hierarchy.logger.bindings)
323
+ if (hierarchy.logger[ownBindingsSymbol]) {
324
+ bindings.push(hierarchy.logger[ownBindingsSymbol])
271
325
  }
272
326
  }
273
327
 
@@ -393,7 +447,10 @@ function asObject (logger, level, args, ts, opts) {
393
447
  }
394
448
  }
395
449
 
396
- const formattedLogObject = logObjectFormatter(logObject)
450
+ let formattedLogObject = logObjectFormatter(logObject)
451
+ if (opts.redactFn) {
452
+ formattedLogObject = opts.redactFn(formattedLogObject)
453
+ }
397
454
  return [formattedLogObject, ...argsCloned]
398
455
  } else {
399
456
  // deliberate, catching objects, arrays
@@ -405,7 +462,10 @@ function asObject (logger, level, args, ts, opts) {
405
462
  } else if (typeof msg === 'string') msg = format(argsCloned.shift(), argsCloned)
406
463
  if (msg !== undefined) logObject[opts.messageKey] = msg
407
464
 
408
- const formattedLogObject = logObjectFormatter(logObject)
465
+ let formattedLogObject = logObjectFormatter(logObject)
466
+ if (opts.redactFn) {
467
+ formattedLogObject = opts.redactFn(formattedLogObject)
468
+ }
409
469
  return [formattedLogObject]
410
470
  }
411
471
  }
@@ -137,13 +137,19 @@ logger.info('hello') // Will throw an error saying info is not found in logger o
137
137
 
138
138
  Default: `5`
139
139
 
140
- Option to limit stringification at a specific nesting depth when logging circular objects.
140
+ Maximum nesting depth used by Pino's fallback serializer.
141
141
 
142
142
  #### `edgeLimit` (Number)
143
143
 
144
144
  Default: `100`
145
145
 
146
- Option to limit stringification of properties/elements when logging a specific object/array with circular references.
146
+ Maximum number of properties/elements per object or array used by Pino's fallback serializer.
147
+
148
+ Pino uses the fallback serializer, and therefore applies `depthLimit` and `edgeLimit`, only after
149
+ `JSON.stringify` throws. These options are not general limits on serialization work or output size.
150
+ For example, `JSON.stringify` successfully serializes a non-circular object graph that contains
151
+ repeated references to the same object. In that case, every reference is traversed and serialized
152
+ in full, without applying either limit.
147
153
 
148
154
  <a id="opt-mixin"></a>
149
155
  #### `mixin` (Function):
@@ -411,7 +417,7 @@ Changes the shape of the log level. The default shape is `{ level: number }`.
411
417
  The function takes two arguments, the label of the level (e.g. `'info'`)
412
418
  and the numeric value (e.g. `30`).
413
419
 
414
- ps: The log level cannot be customized when using multiple transports
420
+ When using multiple transport targets, the log record must keep a numeric `level` field for per-target routing. Because of that, `formatters.level` cannot be used to replace `level` with a string or rename it in multi-target mode. `timestamp` customization is still supported.
415
421
 
416
422
  ```js
417
423
  const formatters = {
@@ -465,6 +471,13 @@ in the serializers. The only exception is the `err` serializer as it is also app
465
471
  the object is an instance of `Error`, e.g. `logger.info(new Error('kaboom'))`.
466
472
  See `errorKey` option to change `err` namespace.
467
473
 
474
+ Serializers are also applied to the [bindings passed to `logger.child()`](#logger-child-bindings).
475
+ Child bindings are serialized once, when the child logger is created, so a matching
476
+ serializer runs at that point rather than on every subsequent log call. This is
477
+ deliberate: it allows a child logger to precompute its bindings and stay fast at log
478
+ time. If a serializer needs to run per log call, pass the value to the log method
479
+ instead of to `child()`.
480
+
468
481
  * See [pino.stdSerializers](#pino-stdserializers)
469
482
 
470
483
  #### `msgPrefix` (String)
@@ -724,6 +737,25 @@ logger.info({MIX: {IN: true}})
724
737
  // {"level":30,"time":1531254555820,"pid":55956,"hostname":"x","MIX":{"IN":true}}
725
738
  ```
726
739
 
740
+ Do not pass an externally supplied object directly as the `mergingObject`.
741
+ Top-level keys are written at the root of the log line and can conflict with
742
+ Pino fields such as `level`, `time`, or `msg`, as well as application or
743
+ security fields. If untrusted data must be logged, place it under an
744
+ application-controlled key:
745
+
746
+ ```js
747
+ // Avoid: user-controlled keys become top-level log fields
748
+ logger.info(untrustedObject)
749
+
750
+ // Prefer: user-controlled keys are contained under a trusted namespace
751
+ logger.info({ untrusted: untrustedObject })
752
+ ```
753
+
754
+ As a matter of good security hygiene, prefer not to log untrusted data at all
755
+ unless it is necessary. When it is necessary, sanitize and redact it first.
756
+ The same top-level key guidance applies to [`logger.child()` bindings](#logger-child-bindings)
757
+ and [`logger.setBindings()`](#logger-set-bindings).
758
+
727
759
  If the object is of type Error, it is wrapped in an object containing a property err (`{ err: mergingObject }`).
728
760
  This allows for a unified error handling flow.
729
761
 
@@ -926,6 +958,24 @@ child.info('child!')
926
958
 
927
959
  The `bindings` object may contain any key except for reserved configuration keys `level` and `serializers`.
928
960
 
961
+ Do not pass externally supplied objects directly as child bindings. Binding keys
962
+ are top-level log fields emitted on every log line from the child logger, so
963
+ user-controlled keys can conflict with Pino fields such as `level`, `time`, or
964
+ `msg`, as well as application or security fields. If untrusted data must be
965
+ included in child bindings, place it under an application-controlled key:
966
+
967
+ ```js
968
+ // Avoid: user-controlled keys become top-level fields on every child log line
969
+ const child = logger.child(untrustedObject)
970
+
971
+ // Prefer: user-controlled keys are contained under a trusted namespace
972
+ const child = logger.child({ untrusted: untrustedObject })
973
+ ```
974
+
975
+ As a matter of good security hygiene, prefer not to log untrusted data at all
976
+ unless it is necessary. When it is necessary, sanitize and redact it first.
977
+ See also [`mergingObject`](#mergingobject) and [`logger.setBindings()`](#logger-set-bindings).
978
+
929
979
  ##### `bindings.serializers` (Object) - DEPRECATED
930
980
 
931
981
  Use `options.serializers` instead.
@@ -1023,6 +1073,11 @@ Adds to the bindings of this logger instance.
1023
1073
  **Note:** Does not overwrite bindings. Can potentially result in duplicate keys in
1024
1074
  log lines.
1025
1075
 
1076
+ Do not pass externally supplied objects directly as bindings. Binding keys are
1077
+ top-level log fields and can conflict with Pino fields or application fields.
1078
+ If untrusted data must be added, place it under an application-controlled key,
1079
+ for example `logger.setBindings({ untrusted })`, and sanitize or redact it first.
1080
+
1026
1081
  * See [`bindings` parameter in `logger.child`](#logger-child-bindings)
1027
1082
 
1028
1083
  <a id="flush"></a>
@@ -1042,8 +1097,14 @@ and safer logging at low demand periods.
1042
1097
 
1043
1098
  If there is a need to wait for the logs to be flushed, a callback should be used.
1044
1099
 
1100
+ **Note:** `logger.flush()` does not flush the output of `pino-pretty`. See
1101
+ [Flush Limitations with `pino-pretty`](/docs/asynchronous.md) for more details.
1102
+
1103
+ **Note:** in the browser this method is a no-op and `cb` is never invoked. See
1104
+ [Node.js-only APIs](/docs/browser.md#nodejs-only-apis).
1105
+
1045
1106
  * See [`destination` parameter](#destination)
1046
- * See [Asynchronous Logging ⇗](/docs/asynchronous.md)
1107
+ * See [Asynchronous Logging ⇗](./asynchronous.md)
1047
1108
 
1048
1109
  <a id="logger-level"></a>
1049
1110
  ### `logger.level` (String) [Getter/Setter]
@@ -1139,6 +1200,10 @@ register its own serializer upon instantiation the serializers of the parent wil
1139
1200
 
1140
1201
  The logger instance is also an [`EventEmitter ⇗`](https://nodejs.org/dist/latest/docs/api/events.html#events_class_eventemitter)
1141
1202
 
1203
+ **Note:** the `EventEmitter` methods are no-ops in the browser, so this event
1204
+ never fires there. See
1205
+ [Node.js-only APIs](/docs/browser.md#nodejs-only-apis).
1206
+
1142
1207
  A listener function can be attached to a logger via the `level-change` event
1143
1208
 
1144
1209
  The listener is passed five arguments:
@@ -1194,6 +1259,8 @@ Exposes the cumulative `msgPrefix` of the logger.
1194
1259
  Create a Pino Destination instance: a stream-like object with
1195
1260
  significantly more throughput than a standard Node.js stream.
1196
1261
 
1262
+ **Note:** this is not available in the browser build. See [Node.js-only APIs](/docs/browser.md#nodejs-only-apis).
1263
+
1197
1264
  ```js
1198
1265
  const pino = require('pino')
1199
1266
  const logger = pino(pino.destination('./my-file'))
@@ -1228,6 +1295,8 @@ A `pino.destination` instance can also be used to reopen closed files
1228
1295
  Create a stream that routes logs to a worker thread that
1229
1296
  wraps around a [Pino Transport](/docs/transports.md).
1230
1297
 
1298
+ **Note:** this is not available in the browser build. See [Node.js-only APIs](/docs/browser.md#nodejs-only-apis).
1299
+
1231
1300
  ```js
1232
1301
  const pino = require('pino')
1233
1302
  const transport = pino.transport({
@@ -1348,6 +1417,8 @@ Notes:
1348
1417
  Create a stream composed by multiple destination streams and returns an
1349
1418
  object implementing the [MultiStreamRes](#multistreamres) interface.
1350
1419
 
1420
+ **Note:** this is not available in the browser build. See [Node.js-only APIs](/docs/browser.md#nodejs-only-apis).
1421
+
1351
1422
  ```js
1352
1423
  var fs = require('node:fs')
1353
1424
  var pino = require('pino')
@@ -21,9 +21,12 @@ output stream as the messages are generated with a _blocking_ operation.
21
21
 
22
22
  ### AWS Lambda
23
23
 
24
- Asynchronous logging is disabled by default on AWS Lambda or any other environment
25
- that modifies `process.stdout`. If forcefully turned on, we recommend calling `dest.flushSync()` at the end
26
- of each function execution to avoid losing data.
24
+ Asynchronous logging in AWS Lambda functions will tend to cause delayed
25
+ or lost log messages, as logs may not be written to the destination
26
+ before the runtime is frozen.
27
+
28
+ For Lambda deployments, it's recommended to always use a destination
29
+ with `sync: true`.
27
30
 
28
31
  ## Caveats
29
32
 
@@ -34,6 +37,18 @@ Asynchronous logging has a couple of important caveats:
34
37
  * There is a possibility of the most recently buffered log messages being lost
35
38
  in case of a system failure, e.g. a power cut.
36
39
 
40
+ ### Flush Limitations with `pino-pretty`
41
+
42
+ `logger.flush()` does not flush the output of `pino-pretty` because:
43
+
44
+ 1. **Transport Architecture**: `pino-pretty` runs in a separate worker thread via the transport mechanism.
45
+
46
+ 2. **Cross-Thread Flush**: `logger.flush(cb)` does reach the worker. Since [thread-stream#198](https://github.com/pinojs/thread-stream/pull/198) the worker waits for the shared buffer to be drained, then looks for a flush primitive on the destination the transport returned: `flush`, `flushSync`, or a pending `drain`.
47
+
48
+ 3. **No Flush Primitive**: The stream `pino-pretty` returns exposes none of those. Its buffered `SonicBoom` is reachable only through the internal `pump`, so the worker has nothing to call and acknowledges the flush right away.
49
+
50
+ This means that even with `logger.flush()`, your formatted logs may not appear immediately. The flush only guarantees that the main thread buffer was written and that the worker drained the shared buffer, not that `pino-pretty` has written its formatted output.
51
+
37
52
  See also:
38
53
 
39
54
  * [`pino.destination` API](/docs/api.md#pino-destination)