@oxygen-agent/cli 1.1014.1997 → 1.1014.2100

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 (242) hide show
  1. package/README.md +1 -1
  2. package/dist/cli-output.js +12 -0
  3. package/dist/column-decision-options.js +1 -1
  4. package/dist/command-families/tables/bundle-format.d.ts +1 -1
  5. package/dist/command-families/tables/bundle-format.js +1 -1
  6. package/dist/command-families/tables/import-columns.js +1 -1
  7. package/dist/command-families/tables/import-upload.d.ts +1 -1
  8. package/dist/command-families/tables/import-values.js +1 -1
  9. package/dist/command-families/tables/imports.d.ts +1 -1
  10. package/dist/command-families/tables/imports.js +1 -1
  11. package/dist/command-families/tables/options.d.ts +1 -0
  12. package/dist/command-families/tables/register-automation.js +3 -1
  13. package/dist/command-families/tables/register-relations.js +1 -1
  14. package/dist/command-families/tables/row-selection.js +1 -1
  15. package/dist/command-support.d.ts +7 -0
  16. package/dist/command-support.js +25 -0
  17. package/dist/commands/billing.js +2 -2
  18. package/dist/commands/columns.js +1 -1
  19. package/dist/commands/enrich-column.js +1 -1
  20. package/dist/commands/mailboxes.js +1 -1
  21. package/dist/commands/observability.js +4 -4
  22. package/dist/commands/table-runs.js +11 -1
  23. package/dist/commands/tags.js +2 -2
  24. package/dist/commands/workflows.js +31 -10
  25. package/dist/deliverability-evidence-commands.js +1 -1
  26. package/dist/http-client.d.ts +1 -1
  27. package/dist/http-client.js +1 -1
  28. package/dist/streamed-file-import.d.ts +1 -1
  29. package/dist/streamed-file-import.js +1 -1
  30. package/node_modules/@oxygen/formula/dist/cross-row-function.d.ts +13 -0
  31. package/node_modules/@oxygen/formula/dist/cross-row-function.js +1 -0
  32. package/node_modules/@oxygen/formula/dist/{refactor-internals → cross-row-functions}/novelty-score.d.ts +2 -0
  33. package/node_modules/@oxygen/formula/dist/{refactor-internals → cross-row-functions}/novelty-score.js +1 -0
  34. package/node_modules/@oxygen/formula/dist/cross-row-functions.generated.d.ts +3 -0
  35. package/node_modules/@oxygen/formula/dist/cross-row-functions.generated.js +3 -0
  36. package/node_modules/@oxygen/formula/dist/evaluate.d.ts +12 -1
  37. package/node_modules/@oxygen/formula/dist/evaluate.js +28 -3
  38. package/node_modules/@oxygen/recipe-sdk/dist/index.d.ts +2 -0
  39. package/node_modules/@oxygen/shared/dist/agent-sessions.d.ts +1 -1
  40. package/node_modules/@oxygen/shared/dist/agent-sessions.js +1 -1
  41. package/node_modules/@oxygen/shared/dist/capability-discovery.d.ts +1 -1
  42. package/node_modules/@oxygen/shared/dist/capability-discovery.js +2 -2
  43. package/node_modules/@oxygen/shared/dist/cell-format.js +2 -2
  44. package/node_modules/@oxygen/shared/dist/collab.d.ts +1 -1
  45. package/node_modules/@oxygen/shared/dist/contracts/geo.js +1 -1
  46. package/node_modules/@oxygen/shared/dist/contracts/guided-activation.js +1 -1
  47. package/node_modules/@oxygen/shared/dist/copilot-access.js +1 -1
  48. package/node_modules/@oxygen/shared/dist/dnc-identities.js +1 -1
  49. package/node_modules/@oxygen/shared/dist/error-redaction.d.ts +1 -1
  50. package/node_modules/@oxygen/shared/dist/error-redaction.js +2 -2
  51. package/node_modules/@oxygen/shared/dist/esp-contract.d.ts +133 -0
  52. package/node_modules/@oxygen/shared/dist/esp-contract.js +121 -0
  53. package/node_modules/@oxygen/shared/dist/freemail-domains.d.ts +1 -1
  54. package/node_modules/@oxygen/shared/dist/freemail-domains.js +1 -1
  55. package/node_modules/@oxygen/shared/dist/{geo.js → geo/geo.js} +2 -2
  56. package/node_modules/@oxygen/shared/dist/index.d.ts +17 -16
  57. package/node_modules/@oxygen/shared/dist/index.js +18 -16
  58. package/node_modules/@oxygen/shared/dist/knowledge-bootstrap.js +1 -1
  59. package/node_modules/@oxygen/shared/dist/langfuse.d.ts +5 -1
  60. package/node_modules/@oxygen/shared/dist/langfuse.js +25 -3
  61. package/node_modules/@oxygen/shared/dist/linkedin-connection-identity.js +1 -1
  62. package/node_modules/@oxygen/shared/dist/{email-deliverability-policy.d.ts → mailboxes/email-deliverability-policy.d.ts} +1 -1
  63. package/node_modules/@oxygen/shared/dist/{emailguard-placement-probe.js → mailboxes/emailguard-placement-probe.js} +1 -1
  64. package/node_modules/@oxygen/shared/dist/{sending-domain-rollout.js → mailboxes/sending-domain-rollout.js} +1 -1
  65. package/node_modules/@oxygen/shared/dist/{mailbox-standby-rollout.d.ts → mailboxes/standby-rollout.d.ts} +1 -1
  66. package/node_modules/@oxygen/shared/dist/{mailbox-standby-rollout.js → mailboxes/standby-rollout.js} +2 -2
  67. package/node_modules/@oxygen/shared/dist/{warmup-metrics.js → mailboxes/warmup-metrics.js} +1 -1
  68. package/node_modules/@oxygen/shared/dist/mcp-event-contract.js +1 -1
  69. package/node_modules/@oxygen/shared/dist/object-storage.js +1 -1
  70. package/node_modules/@oxygen/shared/dist/{guided-activation.d.ts → onboarding/guided-activation.d.ts} +1 -1
  71. package/node_modules/@oxygen/shared/dist/{guided-activation.js → onboarding/guided-activation.js} +2 -2
  72. package/node_modules/@oxygen/shared/dist/{guided-onboarding-company-context.d.ts → onboarding/guided-onboarding-company-context.d.ts} +6 -6
  73. package/node_modules/@oxygen/shared/dist/{guided-onboarding-company-context.js → onboarding/guided-onboarding-company-context.js} +2 -2
  74. package/node_modules/@oxygen/shared/dist/{signup-lead-payload.js → onboarding/signup-lead-payload.js} +2 -2
  75. package/node_modules/@oxygen/shared/dist/{signup-lead-webhook.js → onboarding/signup-lead-webhook.js} +2 -2
  76. package/node_modules/@oxygen/shared/dist/onboarding-leads.d.ts +4 -0
  77. package/node_modules/@oxygen/shared/dist/plan-band.d.ts +1 -1
  78. package/node_modules/@oxygen/shared/dist/plan-band.js +1 -1
  79. package/node_modules/@oxygen/shared/dist/plan-limits.d.ts +1 -1
  80. package/node_modules/@oxygen/shared/dist/plan-limits.js +3 -3
  81. package/node_modules/@oxygen/shared/dist/{social-post-metrics-core.d.ts → posts/metrics-core.d.ts} +1 -1
  82. package/node_modules/@oxygen/shared/dist/{social-post-metrics-linkedin.d.ts → posts/metrics-linkedin.d.ts} +1 -1
  83. package/node_modules/@oxygen/shared/dist/{social-post-metrics-linkedin.js → posts/metrics-linkedin.js} +2 -2
  84. package/node_modules/@oxygen/shared/dist/{social-post-metrics-series.d.ts → posts/metrics-series.d.ts} +1 -1
  85. package/node_modules/@oxygen/shared/dist/{social-post-metrics-series.js → posts/metrics-series.js} +1 -1
  86. package/node_modules/@oxygen/shared/dist/{social-post-metrics-x.d.ts → posts/metrics-x.d.ts} +1 -1
  87. package/node_modules/@oxygen/shared/dist/{social-post-metrics-x.js → posts/metrics-x.js} +2 -2
  88. package/node_modules/@oxygen/shared/dist/{social-post-metrics.d.ts → posts/metrics.d.ts} +3 -3
  89. package/node_modules/@oxygen/shared/dist/{social-post-metrics.js → posts/metrics.js} +3 -3
  90. package/node_modules/@oxygen/shared/dist/recipient-provider.d.ts +2 -10
  91. package/node_modules/@oxygen/shared/dist/recipient-provider.js +1 -9
  92. package/node_modules/@oxygen/shared/dist/redis-endpoint-map.d.ts +10 -0
  93. package/node_modules/@oxygen/shared/dist/redis-endpoint-map.js +63 -0
  94. package/node_modules/@oxygen/shared/dist/repricing.js +1 -1
  95. package/node_modules/@oxygen/shared/dist/sending-limits.js +1 -1
  96. package/node_modules/@oxygen/shared/dist/sequence-internals/esp-policy.d.ts +2 -118
  97. package/node_modules/@oxygen/shared/dist/sequence-internals/esp-policy.js +2 -107
  98. package/node_modules/@oxygen/shared/dist/sequences.d.ts +0 -1
  99. package/node_modules/@oxygen/shared/dist/sequences.js +0 -2
  100. package/node_modules/@oxygen/shared/dist/{native-chat-discovery.d.ts → support/native-chat-discovery.d.ts} +1 -1
  101. package/node_modules/@oxygen/shared/dist/{native-chat-discovery.js → support/native-chat-discovery.js} +1 -1
  102. package/node_modules/@oxygen/shared/dist/suppression-entries.js +1 -1
  103. package/node_modules/@oxygen/shared/dist/table-field-types.d.ts +1 -1
  104. package/node_modules/@oxygen/shared/dist/table-field-types.js +2 -2
  105. package/node_modules/@oxygen/shared/dist/table-run-summary.js +1 -1
  106. package/node_modules/@oxygen/shared/dist/{table-capacity.d.ts → tables/capacity.d.ts} +2 -2
  107. package/node_modules/@oxygen/shared/dist/{table-capacity.js → tables/capacity.js} +1 -1
  108. package/node_modules/@oxygen/shared/dist/{column-decision.js → tables/column-decision.js} +1 -1
  109. package/node_modules/@oxygen/shared/dist/{column-output-fields.js → tables/column-output-fields.js} +4 -4
  110. package/node_modules/@oxygen/shared/dist/{enrichment-intents.d.ts → tables/enrichment-intents.d.ts} +1 -1
  111. package/node_modules/@oxygen/shared/dist/{file-import.js → tables/file-import.js} +2 -2
  112. package/node_modules/@oxygen/shared/dist/{tags.d.ts → tags/tags.d.ts} +1 -1
  113. package/node_modules/@oxygen/shared/dist/{tags.js → tags/tags.js} +1 -1
  114. package/node_modules/@oxygen/shared/dist/teammates.js +1 -1
  115. package/node_modules/@oxygen/shared/dist/{ugc-amplification-identity.js → ugc/amplification-identity.js} +1 -1
  116. package/node_modules/@oxygen/shared/dist/version.d.ts +1 -1
  117. package/node_modules/@oxygen/shared/dist/version.generated.d.ts +1 -1
  118. package/node_modules/@oxygen/shared/dist/version.generated.js +1 -1
  119. package/node_modules/@oxygen/shared/dist/version.js +1 -1
  120. package/node_modules/@oxygen/shared/dist/workspace-event-catalog.js +1 -1
  121. package/node_modules/@oxygen/shared/dist/workspace-placement-bulk.d.ts +6 -0
  122. package/node_modules/@oxygen/shared/dist/workspace-placement-bulk.js +9 -2
  123. package/node_modules/@oxygen/shared/dist/workspace-placement-schedule.d.ts +44 -0
  124. package/node_modules/@oxygen/shared/dist/workspace-placement-schedule.js +90 -0
  125. package/node_modules/@oxygen/shared/dist/workspace-placement-view.d.ts +24 -0
  126. package/node_modules/@oxygen/shared/dist/workspace-placement-view.js +5 -4
  127. package/node_modules/@oxygen/shared/dist/workspace-placement.d.ts +4 -0
  128. package/node_modules/@oxygen/shared/dist/workspace-placement.js +8 -2
  129. package/node_modules/@oxygen/shared/package.json +0 -60
  130. package/node_modules/@oxygen/workflows/dist/cron.d.ts +42 -0
  131. package/node_modules/@oxygen/workflows/dist/cron.js +271 -0
  132. package/node_modules/@oxygen/workflows/dist/event-dispatch.d.ts +2 -1
  133. package/node_modules/@oxygen/workflows/dist/graph/condition.d.ts +3 -0
  134. package/node_modules/@oxygen/workflows/dist/graph/condition.js +19 -0
  135. package/node_modules/@oxygen/workflows/dist/graph/expression.d.ts +1 -2
  136. package/node_modules/@oxygen/workflows/dist/graph/expression.js +2 -19
  137. package/node_modules/@oxygen/workflows/dist/graph/types.d.ts +4 -3
  138. package/node_modules/@oxygen/workflows/dist/index.d.ts +8 -985
  139. package/node_modules/@oxygen/workflows/dist/index.js +8 -1221
  140. package/node_modules/@oxygen/workflows/dist/manifest-builders.d.ts +73 -0
  141. package/node_modules/@oxygen/workflows/dist/manifest-builders.js +102 -0
  142. package/node_modules/@oxygen/workflows/dist/manifest-guards.d.ts +16 -0
  143. package/node_modules/@oxygen/workflows/dist/manifest-guards.js +34 -0
  144. package/node_modules/@oxygen/workflows/dist/manifest-hash.d.ts +47 -0
  145. package/node_modules/@oxygen/workflows/dist/manifest-hash.js +102 -0
  146. package/node_modules/@oxygen/workflows/dist/manifest-lint.d.ts +17 -0
  147. package/node_modules/@oxygen/workflows/dist/manifest-lint.js +474 -0
  148. package/node_modules/@oxygen/workflows/dist/manifest-types.d.ts +256 -0
  149. package/node_modules/@oxygen/workflows/dist/manifest-types.js +9 -0
  150. package/node_modules/@oxygen/workflows/dist/pure-function.d.ts +17 -0
  151. package/node_modules/@oxygen/workflows/dist/pure-function.js +130 -0
  152. package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-comparison.d.ts +1 -17
  153. package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-comparison.js +1 -93
  154. package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-pattern.d.ts +16 -0
  155. package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-pattern.js +92 -0
  156. package/node_modules/@oxygen/workflows/dist/workflow-schemas.d.ts +545 -0
  157. package/node_modules/@oxygen/workflows/dist/workflow-schemas.js +135 -0
  158. package/node_modules/@oxygen/workflows/package.json +4 -0
  159. package/package.json +1 -1
  160. /package/node_modules/@oxygen/shared/dist/{geo.d.ts → geo/geo.d.ts} +0 -0
  161. /package/node_modules/@oxygen/shared/dist/{deliverability-blacklist.d.ts → mailboxes/deliverability-blacklist.d.ts} +0 -0
  162. /package/node_modules/@oxygen/shared/dist/{deliverability-blacklist.js → mailboxes/deliverability-blacklist.js} +0 -0
  163. /package/node_modules/@oxygen/shared/dist/{deliverability-checks.d.ts → mailboxes/deliverability-checks.d.ts} +0 -0
  164. /package/node_modules/@oxygen/shared/dist/{deliverability-checks.js → mailboxes/deliverability-checks.js} +0 -0
  165. /package/node_modules/@oxygen/shared/dist/{deliverability-evidence.d.ts → mailboxes/deliverability-evidence.d.ts} +0 -0
  166. /package/node_modules/@oxygen/shared/dist/{deliverability-evidence.js → mailboxes/deliverability-evidence.js} +0 -0
  167. /package/node_modules/@oxygen/shared/dist/{deliverability-loop.d.ts → mailboxes/deliverability-loop.d.ts} +0 -0
  168. /package/node_modules/@oxygen/shared/dist/{deliverability-loop.js → mailboxes/deliverability-loop.js} +0 -0
  169. /package/node_modules/@oxygen/shared/dist/{deliverability-surface.d.ts → mailboxes/deliverability-surface.d.ts} +0 -0
  170. /package/node_modules/@oxygen/shared/dist/{deliverability-surface.js → mailboxes/deliverability-surface.js} +0 -0
  171. /package/node_modules/@oxygen/shared/dist/{domain-authentication.d.ts → mailboxes/domain-authentication.d.ts} +0 -0
  172. /package/node_modules/@oxygen/shared/dist/{domain-authentication.js → mailboxes/domain-authentication.js} +0 -0
  173. /package/node_modules/@oxygen/shared/dist/{email-deliverability-policy.js → mailboxes/email-deliverability-policy.js} +0 -0
  174. /package/node_modules/@oxygen/shared/dist/{email-health-status.d.ts → mailboxes/email-health-status.d.ts} +0 -0
  175. /package/node_modules/@oxygen/shared/dist/{email-health-status.js → mailboxes/email-health-status.js} +0 -0
  176. /package/node_modules/@oxygen/shared/dist/{email-health-summary.d.ts → mailboxes/email-health-summary.d.ts} +0 -0
  177. /package/node_modules/@oxygen/shared/dist/{email-health-summary.js → mailboxes/email-health-summary.js} +0 -0
  178. /package/node_modules/@oxygen/shared/dist/{emailguard-placement-probe.d.ts → mailboxes/emailguard-placement-probe.d.ts} +0 -0
  179. /package/node_modules/@oxygen/shared/dist/{microsoft-consent-url.d.ts → mailboxes/microsoft-consent-url.d.ts} +0 -0
  180. /package/node_modules/@oxygen/shared/dist/{microsoft-consent-url.js → mailboxes/microsoft-consent-url.js} +0 -0
  181. /package/node_modules/@oxygen/shared/dist/{placement-copy.d.ts → mailboxes/placement-copy.d.ts} +0 -0
  182. /package/node_modules/@oxygen/shared/dist/{placement-copy.js → mailboxes/placement-copy.js} +0 -0
  183. /package/node_modules/@oxygen/shared/dist/{placement-history.d.ts → mailboxes/placement-history.d.ts} +0 -0
  184. /package/node_modules/@oxygen/shared/dist/{placement-history.js → mailboxes/placement-history.js} +0 -0
  185. /package/node_modules/@oxygen/shared/dist/{placement-report.d.ts → mailboxes/placement-report.d.ts} +0 -0
  186. /package/node_modules/@oxygen/shared/dist/{placement-report.js → mailboxes/placement-report.js} +0 -0
  187. /package/node_modules/@oxygen/shared/dist/{received-authentication.d.ts → mailboxes/received-authentication.d.ts} +0 -0
  188. /package/node_modules/@oxygen/shared/dist/{received-authentication.js → mailboxes/received-authentication.js} +0 -0
  189. /package/node_modules/@oxygen/shared/dist/{sending-domain-rollout.d.ts → mailboxes/sending-domain-rollout.d.ts} +0 -0
  190. /package/node_modules/@oxygen/shared/dist/{ses-identity-policy.d.ts → mailboxes/ses-identity-policy.d.ts} +0 -0
  191. /package/node_modules/@oxygen/shared/dist/{ses-identity-policy.js → mailboxes/ses-identity-policy.js} +0 -0
  192. /package/node_modules/@oxygen/shared/dist/{mailbox-standby.d.ts → mailboxes/standby.d.ts} +0 -0
  193. /package/node_modules/@oxygen/shared/dist/{mailbox-standby.js → mailboxes/standby.js} +0 -0
  194. /package/node_modules/@oxygen/shared/dist/{warmup-metrics.d.ts → mailboxes/warmup-metrics.d.ts} +0 -0
  195. /package/node_modules/@oxygen/shared/dist/{attempt-provenance.d.ts → observability/attempt-provenance.d.ts} +0 -0
  196. /package/node_modules/@oxygen/shared/dist/{attempt-provenance.js → observability/attempt-provenance.js} +0 -0
  197. /package/node_modules/@oxygen/shared/dist/{onboarding-first-leads.d.ts → onboarding/first-leads.d.ts} +0 -0
  198. /package/node_modules/@oxygen/shared/dist/{onboarding-first-leads.js → onboarding/first-leads.js} +0 -0
  199. /package/node_modules/@oxygen/shared/dist/{future-signup-events.d.ts → onboarding/future-signup-events.d.ts} +0 -0
  200. /package/node_modules/@oxygen/shared/dist/{future-signup-events.js → onboarding/future-signup-events.js} +0 -0
  201. /package/node_modules/@oxygen/shared/dist/{future-signup-lifecycle-projection.d.ts → onboarding/future-signup-lifecycle-projection.d.ts} +0 -0
  202. /package/node_modules/@oxygen/shared/dist/{future-signup-lifecycle-projection.js → onboarding/future-signup-lifecycle-projection.js} +0 -0
  203. /package/node_modules/@oxygen/shared/dist/{guided-activation.fixture.d.ts → onboarding/guided-activation.fixture.d.ts} +0 -0
  204. /package/node_modules/@oxygen/shared/dist/{guided-activation.fixture.js → onboarding/guided-activation.fixture.js} +0 -0
  205. /package/node_modules/@oxygen/shared/dist/{onboarding-plays.d.ts → onboarding/plays.d.ts} +0 -0
  206. /package/node_modules/@oxygen/shared/dist/{onboarding-plays.js → onboarding/plays.js} +0 -0
  207. /package/node_modules/@oxygen/shared/dist/{onboarding-research.d.ts → onboarding/research.d.ts} +0 -0
  208. /package/node_modules/@oxygen/shared/dist/{onboarding-research.js → onboarding/research.js} +0 -0
  209. /package/node_modules/@oxygen/shared/dist/{signup-lead-deliveries.d.ts → onboarding/signup-lead-deliveries.d.ts} +0 -0
  210. /package/node_modules/@oxygen/shared/dist/{signup-lead-deliveries.js → onboarding/signup-lead-deliveries.js} +0 -0
  211. /package/node_modules/@oxygen/shared/dist/{signup-lead-payload.d.ts → onboarding/signup-lead-payload.d.ts} +0 -0
  212. /package/node_modules/@oxygen/shared/dist/{signup-lead-webhook.d.ts → onboarding/signup-lead-webhook.d.ts} +0 -0
  213. /package/node_modules/@oxygen/shared/dist/{linkedin-mentions.d.ts → posts/linkedin-mentions.d.ts} +0 -0
  214. /package/node_modules/@oxygen/shared/dist/{linkedin-mentions.js → posts/linkedin-mentions.js} +0 -0
  215. /package/node_modules/@oxygen/shared/dist/{linkedin-post-keywords.d.ts → posts/linkedin-post-keywords.d.ts} +0 -0
  216. /package/node_modules/@oxygen/shared/dist/{linkedin-post-keywords.js → posts/linkedin-post-keywords.js} +0 -0
  217. /package/node_modules/@oxygen/shared/dist/{linkedin-post-url.d.ts → posts/linkedin-post-url.d.ts} +0 -0
  218. /package/node_modules/@oxygen/shared/dist/{linkedin-post-url.js → posts/linkedin-post-url.js} +0 -0
  219. /package/node_modules/@oxygen/shared/dist/{social-post-metrics-core.js → posts/metrics-core.js} +0 -0
  220. /package/node_modules/@oxygen/shared/dist/{native-chat.d.ts → support/native-chat.d.ts} +0 -0
  221. /package/node_modules/@oxygen/shared/dist/{native-chat.js → support/native-chat.js} +0 -0
  222. /package/node_modules/@oxygen/shared/dist/{plain-support-events.d.ts → support/plain-support-events.d.ts} +0 -0
  223. /package/node_modules/@oxygen/shared/dist/{plain-support-events.js → support/plain-support-events.js} +0 -0
  224. /package/node_modules/@oxygen/shared/dist/{column-decision.d.ts → tables/column-decision.d.ts} +0 -0
  225. /package/node_modules/@oxygen/shared/dist/{column-output-fields.d.ts → tables/column-output-fields.d.ts} +0 -0
  226. /package/node_modules/@oxygen/shared/dist/{column-types.d.ts → tables/column-types.d.ts} +0 -0
  227. /package/node_modules/@oxygen/shared/dist/{column-types.js → tables/column-types.js} +0 -0
  228. /package/node_modules/@oxygen/shared/dist/{company-enrichment-fields.d.ts → tables/company-enrichment-fields.d.ts} +0 -0
  229. /package/node_modules/@oxygen/shared/dist/{company-enrichment-fields.js → tables/company-enrichment-fields.js} +0 -0
  230. /package/node_modules/@oxygen/shared/dist/{enrichment-intents.js → tables/enrichment-intents.js} +0 -0
  231. /package/node_modules/@oxygen/shared/dist/{file-import.d.ts → tables/file-import.d.ts} +0 -0
  232. /package/node_modules/@oxygen/shared/dist/{import-limits.d.ts → tables/import-limits.d.ts} +0 -0
  233. /package/node_modules/@oxygen/shared/dist/{import-limits.js → tables/import-limits.js} +0 -0
  234. /package/node_modules/@oxygen/shared/dist/{table-limits.d.ts → tables/limits.d.ts} +0 -0
  235. /package/node_modules/@oxygen/shared/dist/{table-limits.js → tables/limits.js} +0 -0
  236. /package/node_modules/@oxygen/shared/dist/{linkedin-url.d.ts → tables/linkedin-url.d.ts} +0 -0
  237. /package/node_modules/@oxygen/shared/dist/{linkedin-url.js → tables/linkedin-url.js} +0 -0
  238. /package/node_modules/@oxygen/shared/dist/{select-options.d.ts → tables/select-options.d.ts} +0 -0
  239. /package/node_modules/@oxygen/shared/dist/{select-options.js → tables/select-options.js} +0 -0
  240. /package/node_modules/@oxygen/shared/dist/{ugc-amplification-identity.d.ts → ugc/amplification-identity.d.ts} +0 -0
  241. /package/node_modules/@oxygen/shared/dist/{ugc.d.ts → ugc/ugc.d.ts} +0 -0
  242. /package/node_modules/@oxygen/shared/dist/{ugc.js → ugc/ugc.js} +0 -0
@@ -14,8 +14,8 @@
14
14
  * version strings, phone numbers, URLs): {@link rescueNumericText} returns
15
15
  * null for those.
16
16
  */
17
- import { columnOutputPrimaryField } from "./column-output-fields.js";
18
- import { isMarkdownColumnSemantic } from "./select-options.js";
17
+ import { columnOutputPrimaryField } from "./tables/column-output-fields.js";
18
+ import { isMarkdownColumnSemantic } from "./tables/select-options.js";
19
19
  const DEFAULT_LOCALE = "en-US";
20
20
  const INTEGER_RE = /^-?\d{1,15}$/;
21
21
  const DECIMAL_RE = /^-?\d{1,15}(?:\.\d{1,9})?$/;
@@ -1,4 +1,4 @@
1
- import { type TagKind } from "./tags.js";
1
+ import { type TagKind } from "./tags/tags.js";
2
2
  /**
3
3
  * Workspace objects that can carry a comment thread or an approval request.
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import { arr, bool, enumOf, int, obj, str, } from "./schema.js";
2
- import { GEO_ENGINES } from "../geo.js";
2
+ import { GEO_ENGINES } from "../geo/geo.js";
3
3
  const text = (maxLength = 1000) => str({ maxLength });
4
4
  const strings = () => arr(text(), {
5
5
  maxItems: 100,
@@ -1,5 +1,5 @@
1
1
  import { arr, bool, enumOf, int, num, obj, str } from "./schema.js";
2
- import { GUIDED_ACTIVATION_REVISIONS } from "../guided-activation.js";
2
+ import { GUIDED_ACTIVATION_REVISIONS } from "../onboarding/guided-activation.js";
3
3
  const id = () => str({ minLength: 1, maxLength: 160 });
4
4
  export const GUIDED_ACTIVATION_REVISIONS_CONTRACT = obj(Object.fromEntries(GUIDED_ACTIVATION_REVISIONS.map(key => [key, id()])), { required: [...GUIDED_ACTIVATION_REVISIONS] });
5
5
  export const GUIDED_ACTIVATION_SCAN_POLICY_CONTRACT = obj({
@@ -1,4 +1,4 @@
1
- import { guidedActivationEnabled } from "./guided-activation.js";
1
+ import { guidedActivationEnabled } from "./onboarding/guided-activation.js";
2
2
  import { isStaffEmail } from "./staff.js";
3
3
  export function copilotAudience(env = process.env) {
4
4
  const deployment = env.OXYGEN_DEPLOY_ENV?.trim().toLowerCase();
@@ -1,4 +1,4 @@
1
- import { normalizeLinkedinProfileUrl } from "./linkedin-url.js";
1
+ import { normalizeLinkedinProfileUrl } from "./tables/linkedin-url.js";
2
2
  import { LINKEDIN_MEMBER_URN_PATTERN } from "./suppression-entries.js";
3
3
  /**
4
4
  * Source-neutral identities accepted by the unified DNC write contract.
@@ -40,7 +40,7 @@ export declare function isSqlLikeMessage(message: string): boolean;
40
40
  /**
41
41
  * Redact a metadata / details payload for an operation event: cap the structure,
42
42
  * blank secret-named fields, truncate long strings. Extracted verbatim from
43
- * apps/web/src/lib/observability.ts so the web and the worker share one
43
+ * apps/web/src/lib/observability/observability.ts so the web and the worker share one
44
44
  * implementation; behavior there is unchanged.
45
45
  */
46
46
  export declare function redactForOperationEvent(value: unknown, depth?: number): unknown;
@@ -1,7 +1,7 @@
1
1
  // The ONE redactor for error payloads we persist and show to a customer.
2
2
  //
3
3
  // Two callers, one implementation: the web API's operation-event writer
4
- // (apps/web/src/lib/observability.ts) and the worker's durable-run failure
4
+ // (apps/web/src/lib/observability/observability.ts) and the worker's durable-run failure
5
5
  // writers (workflow_runs.last_error, workflow_step_runs.last_error,
6
6
  // workflow_step_attempts.error). Before this module the worker had no redaction
7
7
  // at all and wrote `error.message` verbatim, which put internal detail in front
@@ -135,7 +135,7 @@ function scrubCustomerFacingString(value) {
135
135
  /**
136
136
  * Redact a metadata / details payload for an operation event: cap the structure,
137
137
  * blank secret-named fields, truncate long strings. Extracted verbatim from
138
- * apps/web/src/lib/observability.ts so the web and the worker share one
138
+ * apps/web/src/lib/observability/observability.ts so the web and the worker share one
139
139
  * implementation; behavior there is unchanged.
140
140
  */
141
141
  export function redactForOperationEvent(value, depth = 0) {
@@ -0,0 +1,133 @@
1
+ /**
2
+ * The ESP vocabulary: matching modes, routing-policy shapes and recipient families.
3
+ * Declarations only, so contracts and settings types can name them without loading
4
+ * the routing and MX-inference code in `sequence-internals/esp-policy.ts`, which re-exports all of it.
5
+ */
6
+ /**
7
+ * ESP (email service provider) MATCHING mode for a sequence (settings.esp_matching).
8
+ * Deliverability lore: a send lands better when the SENDING mailbox and the
9
+ * RECIPIENT sit on the same provider (Google→Google, Microsoft→Microsoft), so at
10
+ * mailbox-pick the dispatcher can bias rotation toward a same-ESP mailbox.
11
+ * - "off" — no ESP bias; rotation is pure LRU / domain-spread.
12
+ * - "prefer" — (DEFAULT) pick a same-ESP mailbox when one is available, else
13
+ * fall back to any sendable mailbox (never blocks a send). On by default
14
+ * because it only ever improves deliverability and cannot starve sends.
15
+ * - "strict" — require a same-ESP mailbox; when none is available the action is
16
+ * DEFERRED with a visible skipped_reason rather than sent cross-provider.
17
+ * Power-user setting, reachable via CLI/MCP; the web "Provider Matching"
18
+ * checkbox toggles off↔prefer only.
19
+ */
20
+ export declare const ESP_MATCHING_MODES: readonly ["off", "prefer", "strict"];
21
+ export type EspMatchingMode = (typeof ESP_MATCHING_MODES)[number];
22
+ export declare const DEFAULT_ESP_MATCHING_MODE: EspMatchingMode;
23
+ /**
24
+ * The MATCHABLE email-provider a recipient routes through — the narrow set ESP
25
+ * matching can act on. Kept intentionally aligned with EMAIL_MAILBOX_PROVIDERS in
26
+ * tenant-db so a mailbox's `provider` and a resolved recipient ESP compare
27
+ * directly: we can only bias rotation toward a provider we can actually SEND
28
+ * from, and the pool is Google/Microsoft only.
29
+ *
30
+ * This is deliberately NARROWER than RECIPIENT_ESP_FAMILIES (what we DISPLAY).
31
+ * A domain behind Proofpoint has family "proofpoint" but may still be matchable
32
+ * as "microsoft" — see resolveEspFamily.
33
+ */
34
+ export declare const RECIPIENT_ESPS: readonly ["google", "microsoft"];
35
+ export type RecipientEsp = (typeof RECIPIENT_ESPS)[number];
36
+ /**
37
+ * WEIGHTED SENDER ROUTING — the object form of settings.esp_matching.
38
+ *
39
+ * The three scalar modes above answer one question ("bias toward the recipient's
40
+ * own provider, yes or no"), and they bake in the assumption that same-provider
41
+ * is always better. That assumption fails whenever one provider's senders are in
42
+ * bad standing: a workspace whose Google-hosted domains are refused by Gmail
43
+ * wants its Google-hosted RECIPIENTS served from Microsoft senders, which no
44
+ * scalar mode can express. "off" does not express it either, because free
45
+ * rotation still hands Google recipients a Google sender in proportion to the
46
+ * pool.
47
+ *
48
+ * So the object form states the routing directly, as SEND SHARES per recipient
49
+ * provider:
50
+ *
51
+ * { mode: "prefer",
52
+ * routes: { google: { microsoft: 100 }, microsoft: { microsoft: 100 } },
53
+ * exclude: [{ domain: "burned.example", from_recipients: ["google"] }] }
54
+ *
55
+ * `routes` is keyed by the RECIPIENT's resolved provider; the inner map is the
56
+ * SENDER provider. Weights are relative shares, so { google: 3, microsoft: 1 }
57
+ * and { google: 75, microsoft: 25 } are the same policy and nothing has to sum
58
+ * to 100. An omitted weight is zero. A bucket whose entry is explicitly present
59
+ * but carries no positive weight means "no opinion, rotate freely for this
60
+ * recipient class"; a bucket the operator never mentioned keeps the historical
61
+ * same-provider default, so editing Google routing cannot silently change how
62
+ * Microsoft recipients are served.
63
+ *
64
+ * `exclude` is a hard never, not a preference: a sender domain listed here is
65
+ * removed from the candidate pool for the named recipient buckets (all buckets
66
+ * when `from_recipients` is absent) in EVERY mode, including "off", and it
67
+ * survives the prefer-fallback. A deliverability guard that a matching toggle
68
+ * could disarm would not be a guard.
69
+ *
70
+ * The scalar modes remain valid values and are read as policies, so there is one
71
+ * routing code path rather than two: "prefer" becomes { mode: "prefer" } with no
72
+ * routes, which resolves to the same-provider default and behaves exactly as it
73
+ * did before.
74
+ */
75
+ export declare const ESP_ROUTE_BUCKETS: readonly ["google", "microsoft", "unknown"];
76
+ /** The RECIPIENT side of a route: a matchable provider, or "unknown" when resolution failed. */
77
+ export type EspRouteBucket = (typeof ESP_ROUTE_BUCKETS)[number];
78
+ /** The SENDER side of a route: relative send shares per mailbox provider. */
79
+ export type EspRouteWeights = Partial<Record<RecipientEsp, number>>;
80
+ export type EspSenderExclusion = {
81
+ domain: string;
82
+ from_recipients?: EspRouteBucket[];
83
+ };
84
+ export type EspRoutingPolicy = {
85
+ mode?: EspMatchingMode;
86
+ routes?: Partial<Record<EspRouteBucket, EspRouteWeights>>;
87
+ exclude?: EspSenderExclusion[];
88
+ };
89
+ /** settings.esp_matching accepts either the legacy scalar or the routing policy. */
90
+ export type EspMatchingSetting = EspMatchingMode | EspRoutingPolicy;
91
+ /**
92
+ * A policy with every field present, which is what the dispatcher and the launch
93
+ * preview consume. Produced only by espPolicyFromSetting so both surfaces answer
94
+ * identically from the same stored value.
95
+ */
96
+ export type ResolvedEspPolicy = {
97
+ mode: EspMatchingMode;
98
+ routes: Partial<Record<EspRouteBucket, EspRouteWeights>>;
99
+ exclude: Array<{
100
+ domain: string;
101
+ buckets: readonly EspRouteBucket[];
102
+ }>;
103
+ };
104
+ /** Cap on settings.esp_matching.exclude — a routing policy, not a suppression list. */
105
+ export declare const MAX_ESP_SENDER_EXCLUSIONS = 50;
106
+ /** Upper bound on a single route weight; relative shares never need more. */
107
+ export declare const MAX_ESP_ROUTE_WEIGHT = 1000000;
108
+ /**
109
+ * The DISPLAY taxonomy: the mail-infrastructure family a recipient domain sits
110
+ * on. Wider than RecipientEsp because "everything that isn't Google or Microsoft"
111
+ * is not one thing — a list that is 23% Proofpoint is a very different
112
+ * deliverability problem from one that is 23% self-hosted, and collapsing both to
113
+ * null (today's behavior) hides that. Split into three groups:
114
+ *
115
+ * - MAILBOX providers (google, microsoft) — imply a matchable ESP.
116
+ * - GATEWAY vendors (proofpoint, mimecast, ...) — security filters that sit IN
117
+ * FRONT of a mailbox provider. Their MX tells you the filter, NOT where the
118
+ * mailbox lives; the SPF fallback is what sees behind them.
119
+ * - OTHER mailbox hosts (zoho, yahoo, fastmail, ...) and self_hosted — real
120
+ * destinations we simply cannot send as, so never matchable.
121
+ */
122
+ export declare const RECIPIENT_ESP_FAMILIES: readonly ["google", "microsoft", "proofpoint", "mimecast", "barracuda", "cisco", "zscaler", "trendmicro", "sophos", "zoho", "yahoo", "apple", "proton", "fastmail", "gmx", "amazon", "self_hosted"];
123
+ export type RecipientEspFamily = (typeof RECIPIENT_ESP_FAMILIES)[number];
124
+ /**
125
+ * The recipient side of a deliverability breakdown: which mail infrastructure accepted (or refused)
126
+ * a send. One vocabulary over the ESP-family tables in `sequence-internals/esp-policy.ts`, so MX
127
+ * suffixes and consumer domains are never listed twice. Google and Microsoft are mailbox hosts; the
128
+ * four named gateways front most enterprise mailboxes and filter differently from the host behind
129
+ * them. Every other resolved family (Zoho, Yahoo, other gateways, self-hosted) is `other`;
130
+ * an unresolved or failed lookup is `unknown`, never `other`.
131
+ */
132
+ export declare const RECIPIENT_PROVIDERS: readonly ["google", "microsoft", "proofpoint", "mimecast", "barracuda", "cisco", "other", "unknown"];
133
+ export type RecipientProvider = (typeof RECIPIENT_PROVIDERS)[number];
@@ -0,0 +1,121 @@
1
+ /**
2
+ * The ESP vocabulary: matching modes, routing-policy shapes and recipient families.
3
+ * Declarations only, so contracts and settings types can name them without loading
4
+ * the routing and MX-inference code in `sequence-internals/esp-policy.ts`, which re-exports all of it.
5
+ */
6
+ /**
7
+ * ESP (email service provider) MATCHING mode for a sequence (settings.esp_matching).
8
+ * Deliverability lore: a send lands better when the SENDING mailbox and the
9
+ * RECIPIENT sit on the same provider (Google→Google, Microsoft→Microsoft), so at
10
+ * mailbox-pick the dispatcher can bias rotation toward a same-ESP mailbox.
11
+ * - "off" — no ESP bias; rotation is pure LRU / domain-spread.
12
+ * - "prefer" — (DEFAULT) pick a same-ESP mailbox when one is available, else
13
+ * fall back to any sendable mailbox (never blocks a send). On by default
14
+ * because it only ever improves deliverability and cannot starve sends.
15
+ * - "strict" — require a same-ESP mailbox; when none is available the action is
16
+ * DEFERRED with a visible skipped_reason rather than sent cross-provider.
17
+ * Power-user setting, reachable via CLI/MCP; the web "Provider Matching"
18
+ * checkbox toggles off↔prefer only.
19
+ */
20
+ export const ESP_MATCHING_MODES = ["off", "prefer", "strict"];
21
+ // Provider Matching is ON by default (prefer): a same-provider send lands better,
22
+ // and prefer never blocks — an absent setting biases mailbox pick without risk.
23
+ export const DEFAULT_ESP_MATCHING_MODE = "prefer";
24
+ /**
25
+ * The MATCHABLE email-provider a recipient routes through — the narrow set ESP
26
+ * matching can act on. Kept intentionally aligned with EMAIL_MAILBOX_PROVIDERS in
27
+ * tenant-db so a mailbox's `provider` and a resolved recipient ESP compare
28
+ * directly: we can only bias rotation toward a provider we can actually SEND
29
+ * from, and the pool is Google/Microsoft only.
30
+ *
31
+ * This is deliberately NARROWER than RECIPIENT_ESP_FAMILIES (what we DISPLAY).
32
+ * A domain behind Proofpoint has family "proofpoint" but may still be matchable
33
+ * as "microsoft" — see resolveEspFamily.
34
+ */
35
+ export const RECIPIENT_ESPS = ["google", "microsoft"];
36
+ /**
37
+ * WEIGHTED SENDER ROUTING — the object form of settings.esp_matching.
38
+ *
39
+ * The three scalar modes above answer one question ("bias toward the recipient's
40
+ * own provider, yes or no"), and they bake in the assumption that same-provider
41
+ * is always better. That assumption fails whenever one provider's senders are in
42
+ * bad standing: a workspace whose Google-hosted domains are refused by Gmail
43
+ * wants its Google-hosted RECIPIENTS served from Microsoft senders, which no
44
+ * scalar mode can express. "off" does not express it either, because free
45
+ * rotation still hands Google recipients a Google sender in proportion to the
46
+ * pool.
47
+ *
48
+ * So the object form states the routing directly, as SEND SHARES per recipient
49
+ * provider:
50
+ *
51
+ * { mode: "prefer",
52
+ * routes: { google: { microsoft: 100 }, microsoft: { microsoft: 100 } },
53
+ * exclude: [{ domain: "burned.example", from_recipients: ["google"] }] }
54
+ *
55
+ * `routes` is keyed by the RECIPIENT's resolved provider; the inner map is the
56
+ * SENDER provider. Weights are relative shares, so { google: 3, microsoft: 1 }
57
+ * and { google: 75, microsoft: 25 } are the same policy and nothing has to sum
58
+ * to 100. An omitted weight is zero. A bucket whose entry is explicitly present
59
+ * but carries no positive weight means "no opinion, rotate freely for this
60
+ * recipient class"; a bucket the operator never mentioned keeps the historical
61
+ * same-provider default, so editing Google routing cannot silently change how
62
+ * Microsoft recipients are served.
63
+ *
64
+ * `exclude` is a hard never, not a preference: a sender domain listed here is
65
+ * removed from the candidate pool for the named recipient buckets (all buckets
66
+ * when `from_recipients` is absent) in EVERY mode, including "off", and it
67
+ * survives the prefer-fallback. A deliverability guard that a matching toggle
68
+ * could disarm would not be a guard.
69
+ *
70
+ * The scalar modes remain valid values and are read as policies, so there is one
71
+ * routing code path rather than two: "prefer" becomes { mode: "prefer" } with no
72
+ * routes, which resolves to the same-provider default and behaves exactly as it
73
+ * did before.
74
+ */
75
+ export const ESP_ROUTE_BUCKETS = ["google", "microsoft", "unknown"];
76
+ /** Cap on settings.esp_matching.exclude — a routing policy, not a suppression list. */
77
+ export const MAX_ESP_SENDER_EXCLUSIONS = 50;
78
+ /** Upper bound on a single route weight; relative shares never need more. */
79
+ export const MAX_ESP_ROUTE_WEIGHT = 1_000_000;
80
+ /**
81
+ * The DISPLAY taxonomy: the mail-infrastructure family a recipient domain sits
82
+ * on. Wider than RecipientEsp because "everything that isn't Google or Microsoft"
83
+ * is not one thing — a list that is 23% Proofpoint is a very different
84
+ * deliverability problem from one that is 23% self-hosted, and collapsing both to
85
+ * null (today's behavior) hides that. Split into three groups:
86
+ *
87
+ * - MAILBOX providers (google, microsoft) — imply a matchable ESP.
88
+ * - GATEWAY vendors (proofpoint, mimecast, ...) — security filters that sit IN
89
+ * FRONT of a mailbox provider. Their MX tells you the filter, NOT where the
90
+ * mailbox lives; the SPF fallback is what sees behind them.
91
+ * - OTHER mailbox hosts (zoho, yahoo, fastmail, ...) and self_hosted — real
92
+ * destinations we simply cannot send as, so never matchable.
93
+ */
94
+ export const RECIPIENT_ESP_FAMILIES = [
95
+ "google",
96
+ "microsoft",
97
+ "proofpoint",
98
+ "mimecast",
99
+ "barracuda",
100
+ "cisco",
101
+ "zscaler",
102
+ "trendmicro",
103
+ "sophos",
104
+ "zoho",
105
+ "yahoo",
106
+ "apple",
107
+ "proton",
108
+ "fastmail",
109
+ "gmx",
110
+ "amazon",
111
+ "self_hosted",
112
+ ];
113
+ /**
114
+ * The recipient side of a deliverability breakdown: which mail infrastructure accepted (or refused)
115
+ * a send. One vocabulary over the ESP-family tables in `sequence-internals/esp-policy.ts`, so MX
116
+ * suffixes and consumer domains are never listed twice. Google and Microsoft are mailbox hosts; the
117
+ * four named gateways front most enterprise mailboxes and filter differently from the host behind
118
+ * them. Every other resolved family (Zoho, Yahoo, other gateways, self-hosted) is `other`;
119
+ * an unresolved or failed lookup is `unknown`, never `other`.
120
+ */
121
+ export const RECIPIENT_PROVIDERS = ["google", "microsoft", "proofpoint", "mimecast", "barracuda", "cisco", "other", "unknown"];
@@ -32,7 +32,7 @@
32
32
  * So a host must be in this tier to be safe for BOTH, and the safe direction for an
33
33
  * edit is to ADD, never to remove or relocate to the broad tier. Extend it only with
34
34
  * hosts that are unambiguously consumer mailboxes — and note the ORDER caveat in
35
- * `packages/tenant-db/src/freemail-domains.ts`, because a core-tier edit also changes
35
+ * `packages/tenant-db/src/mailboxes/freemail-domains.ts`, because a core-tier edit also changes
36
36
  * a formula string already persisted in every tenant's column definitions.
37
37
  *
38
38
  * - `PERSONAL_EMAIL_DOMAINS` (broad) answers "is this domain a poor stand-in for a
@@ -32,7 +32,7 @@
32
32
  * So a host must be in this tier to be safe for BOTH, and the safe direction for an
33
33
  * edit is to ADD, never to remove or relocate to the broad tier. Extend it only with
34
34
  * hosts that are unambiguously consumer mailboxes — and note the ORDER caveat in
35
- * `packages/tenant-db/src/freemail-domains.ts`, because a core-tier edit also changes
35
+ * `packages/tenant-db/src/mailboxes/freemail-domains.ts`, because a core-tier edit also changes
36
36
  * a formula string already persisted in every tenant's column definitions.
37
37
  *
38
38
  * - `PERSONAL_EMAIL_DOMAINS` (broad) answers "is this domain a poor stand-in for a
@@ -1,5 +1,5 @@
1
- import { OxygenError } from "./cli-result.js";
2
- import { resolveDeployEnv } from "./deploy-env.js";
1
+ import { OxygenError } from "../cli-result.js";
2
+ import { resolveDeployEnv } from "../deploy-env.js";
3
3
  export const GEO_ENGINES = [
4
4
  "chatgpt",
5
5
  "gemini",
@@ -13,13 +13,13 @@ export * from "./plan-limits.js";
13
13
  export * from "./plan-band.js";
14
14
  export * from "./sending-seats.js";
15
15
  export * from "./sending-seat-capacity.js";
16
- export * from "./plain-support-events.js";
16
+ export * from "./support/plain-support-events.js";
17
17
  export * from "./provider-balance-signal.js";
18
18
  export * from "./provider-funding-errors.js";
19
19
  export * from "./publishing-limits.js";
20
20
  export * from "./spend-safety.js";
21
- export * from "./company-enrichment-fields.js";
22
- export * from "./enrichment-intents.js";
21
+ export * from "./tables/company-enrichment-fields.js";
22
+ export * from "./tables/enrichment-intents.js";
23
23
  export * from "./error-message.js";
24
24
  export * from "./sql-rows.js";
25
25
  export * from "./cell-format.js";
@@ -29,7 +29,7 @@ export * from "./cli-result.js";
29
29
  export * from "./collab.js";
30
30
  export * from "./crm-reply-events.js";
31
31
  export * from "./crm-activity-events.js";
32
- export * from "./column-types.js";
32
+ export * from "./tables/column-types.js";
33
33
  export * from "./copilot-errors.js";
34
34
  export * from "./copilot-journeys.js";
35
35
  export * from "./copilot-playbooks.js";
@@ -42,8 +42,8 @@ export * from "./email-hard-bounce.js";
42
42
  export * from "./email-tracking-token.js";
43
43
  export * from "./email-unsubscribe-token.js";
44
44
  export * from "./error-redaction.js";
45
- export * from "./future-signup-events.js";
46
- export * from "./future-signup-lifecycle-projection.js";
45
+ export * from "./onboarding/future-signup-events.js";
46
+ export * from "./onboarding/future-signup-lifecycle-projection.js";
47
47
  export * from "./feature-gates.js";
48
48
  export * from "./product-analytics-core.js";
49
49
  export * from "./product-analytics-environment.js";
@@ -58,13 +58,13 @@ export * from "./knowledge-vault-markdown.js";
58
58
  export * from "./knowledge-seed-content.js";
59
59
  export * from "./langfuse.js";
60
60
  export * from "./llm-usage.js";
61
- export * from "./linkedin-mentions.js";
62
- export * from "./linkedin-post-url.js";
61
+ export * from "./posts/linkedin-mentions.js";
62
+ export * from "./posts/linkedin-post-url.js";
63
63
  export * from "./linkedin-quota-denial.js";
64
- export * from "./linkedin-url.js";
64
+ export * from "./tables/linkedin-url.js";
65
65
  export * from "./linkedin-sequences.js";
66
66
  export * from "./member-columns.js";
67
- export * from "./microsoft-consent-url.js";
67
+ export * from "./mailboxes/microsoft-consent-url.js";
68
68
  export * from "./networks.js";
69
69
  export * from "./person-name.js";
70
70
  export * from "./product-doctrine.js";
@@ -77,11 +77,12 @@ export * from "./sequence-terminal-events.js";
77
77
  export * from "./call-outcomes.js";
78
78
  export * from "./dial-guardrail-overrides.js";
79
79
  export * from "./sequences.js";
80
+ export { ESP_MATCHING_MODES, type EspMatchingMode, DEFAULT_ESP_MATCHING_MODE, isEspMatchingMode, validateEspMatchingSetting, RECIPIENT_ESPS, type RecipientEsp, ESP_ROUTE_BUCKETS, type EspRouteBucket, type EspRouteWeights, type EspSenderExclusion, type EspRoutingPolicy, type EspMatchingSetting, type ResolvedEspPolicy, MAX_ESP_SENDER_EXCLUSIONS, MAX_ESP_ROUTE_WEIGHT, isEspRouteBucket, normalizeEspSenderDomain, espPolicyFromSetting, espRouteWeightsFor, espRouteCandidates, espExcludedSenderDomains, RECIPIENT_ESP_FAMILIES, type RecipientEspFamily, isRecipientEspFamily, isEspGatewayFamily, matchableEspFromFamily, familyFromMxHosts, espFromSpfRecords, inferRecipientEspFamily, inferRecipientEsp, espFromMxHosts, } from "./sequence-internals/esp-policy.js";
80
81
  export * from "./suppression-entries.js";
81
82
  export * from "./dnc-identities.js";
82
83
  export * from "./dnc-rules.js";
83
- export * from "./table-limits.js";
84
- export * from "./table-capacity.js";
84
+ export * from "./tables/limits.js";
85
+ export * from "./tables/capacity.js";
85
86
  export * from "./log.js";
86
87
  export * from "./log-collapse.js";
87
88
  export * from "./axiom-field-budget.js";
@@ -89,10 +90,10 @@ export { redactSecretsInString, sanitizeLogFields } from "./redaction.js";
89
90
  export * from "./provider-request-outcomes.js";
90
91
  export * from "./schedule-label.js";
91
92
  export * from "./social-capabilities.js";
92
- export * from "./signup-lead-deliveries.js";
93
+ export * from "./onboarding/signup-lead-deliveries.js";
93
94
  export * from "./sql-error.js";
94
95
  export * from "./postgres-text.js";
95
- export * from "./tags.js";
96
+ export * from "./tags/tags.js";
96
97
  export * from "./telemetry.js";
97
98
  export * from "./tenant-database-secret.js";
98
99
  export * from "./egress-transport-readiness.js";
@@ -111,8 +112,8 @@ export * from "./workspace-event-catalog.js";
111
112
  export * from "./notetaker-events.js";
112
113
  export * from "./workspace-agents.js";
113
114
  export * from "./semver.js";
114
- export * from "./ugc.js";
115
- export * from "./ugc-amplification-identity.js";
115
+ export * from "./ugc/ugc.js";
116
+ export * from "./ugc/amplification-identity.js";
116
117
  export * from "./knowledge-repository.js";
117
118
  export * from "./knowledge-bases.js";
118
119
  export * from "./external-write-policy.js";
@@ -13,13 +13,13 @@ export * from "./plan-limits.js";
13
13
  export * from "./plan-band.js";
14
14
  export * from "./sending-seats.js";
15
15
  export * from "./sending-seat-capacity.js";
16
- export * from "./plain-support-events.js";
16
+ export * from "./support/plain-support-events.js";
17
17
  export * from "./provider-balance-signal.js";
18
18
  export * from "./provider-funding-errors.js";
19
19
  export * from "./publishing-limits.js";
20
20
  export * from "./spend-safety.js";
21
- export * from "./company-enrichment-fields.js";
22
- export * from "./enrichment-intents.js";
21
+ export * from "./tables/company-enrichment-fields.js";
22
+ export * from "./tables/enrichment-intents.js";
23
23
  export * from "./error-message.js";
24
24
  export * from "./sql-rows.js";
25
25
  export * from "./cell-format.js";
@@ -29,7 +29,7 @@ export * from "./cli-result.js";
29
29
  export * from "./collab.js";
30
30
  export * from "./crm-reply-events.js";
31
31
  export * from "./crm-activity-events.js";
32
- export * from "./column-types.js";
32
+ export * from "./tables/column-types.js";
33
33
  export * from "./copilot-errors.js";
34
34
  export * from "./copilot-journeys.js";
35
35
  export * from "./copilot-playbooks.js";
@@ -42,8 +42,8 @@ export * from "./email-hard-bounce.js";
42
42
  export * from "./email-tracking-token.js";
43
43
  export * from "./email-unsubscribe-token.js";
44
44
  export * from "./error-redaction.js";
45
- export * from "./future-signup-events.js";
46
- export * from "./future-signup-lifecycle-projection.js";
45
+ export * from "./onboarding/future-signup-events.js";
46
+ export * from "./onboarding/future-signup-lifecycle-projection.js";
47
47
  export * from "./feature-gates.js";
48
48
  export * from "./product-analytics-core.js";
49
49
  export * from "./product-analytics-environment.js";
@@ -58,13 +58,13 @@ export * from "./knowledge-vault-markdown.js";
58
58
  export * from "./knowledge-seed-content.js";
59
59
  export * from "./langfuse.js";
60
60
  export * from "./llm-usage.js";
61
- export * from "./linkedin-mentions.js";
62
- export * from "./linkedin-post-url.js";
61
+ export * from "./posts/linkedin-mentions.js";
62
+ export * from "./posts/linkedin-post-url.js";
63
63
  export * from "./linkedin-quota-denial.js";
64
- export * from "./linkedin-url.js";
64
+ export * from "./tables/linkedin-url.js";
65
65
  export * from "./linkedin-sequences.js";
66
66
  export * from "./member-columns.js";
67
- export * from "./microsoft-consent-url.js";
67
+ export * from "./mailboxes/microsoft-consent-url.js";
68
68
  export * from "./networks.js";
69
69
  export * from "./person-name.js";
70
70
  export * from "./product-doctrine.js";
@@ -77,11 +77,13 @@ export * from "./sequence-terminal-events.js";
77
77
  export * from "./call-outcomes.js";
78
78
  export * from "./dial-guardrail-overrides.js";
79
79
  export * from "./sequences.js";
80
+ // The ESP contract the root barrel has always carried (it used to arrive through sequences.ts).
81
+ export { ESP_MATCHING_MODES, DEFAULT_ESP_MATCHING_MODE, isEspMatchingMode, validateEspMatchingSetting, RECIPIENT_ESPS, ESP_ROUTE_BUCKETS, MAX_ESP_SENDER_EXCLUSIONS, MAX_ESP_ROUTE_WEIGHT, isEspRouteBucket, normalizeEspSenderDomain, espPolicyFromSetting, espRouteWeightsFor, espRouteCandidates, espExcludedSenderDomains, RECIPIENT_ESP_FAMILIES, isRecipientEspFamily, isEspGatewayFamily, matchableEspFromFamily, familyFromMxHosts, espFromSpfRecords, inferRecipientEspFamily, inferRecipientEsp, espFromMxHosts, } from "./sequence-internals/esp-policy.js";
80
82
  export * from "./suppression-entries.js";
81
83
  export * from "./dnc-identities.js";
82
84
  export * from "./dnc-rules.js";
83
- export * from "./table-limits.js";
84
- export * from "./table-capacity.js";
85
+ export * from "./tables/limits.js";
86
+ export * from "./tables/capacity.js";
85
87
  export * from "./log.js";
86
88
  export * from "./log-collapse.js";
87
89
  export * from "./axiom-field-budget.js";
@@ -100,10 +102,10 @@ export { redactSecretsInString, sanitizeLogFields } from "./redaction.js";
100
102
  export * from "./provider-request-outcomes.js";
101
103
  export * from "./schedule-label.js";
102
104
  export * from "./social-capabilities.js";
103
- export * from "./signup-lead-deliveries.js";
105
+ export * from "./onboarding/signup-lead-deliveries.js";
104
106
  export * from "./sql-error.js";
105
107
  export * from "./postgres-text.js";
106
- export * from "./tags.js";
108
+ export * from "./tags/tags.js";
107
109
  export * from "./telemetry.js";
108
110
  export * from "./tenant-database-secret.js";
109
111
  export * from "./egress-transport-readiness.js";
@@ -122,8 +124,8 @@ export * from "./workspace-event-catalog.js";
122
124
  export * from "./notetaker-events.js";
123
125
  export * from "./workspace-agents.js";
124
126
  export * from "./semver.js";
125
- export * from "./ugc.js";
126
- export * from "./ugc-amplification-identity.js";
127
+ export * from "./ugc/ugc.js";
128
+ export * from "./ugc/amplification-identity.js";
127
129
  export * from "./knowledge-repository.js";
128
130
  export * from "./knowledge-bases.js";
129
131
  export * from "./external-write-policy.js";
@@ -55,7 +55,7 @@
55
55
  * The provider sub-cap covers every external research leg, including fallbacks.
56
56
  */
57
57
  import { normalizeLinkedinCompanyUrl } from "./dnc-identities.js";
58
- import { normalizeLinkedinProfileUrl } from "./linkedin-url.js";
58
+ import { normalizeLinkedinProfileUrl } from "./tables/linkedin-url.js";
59
59
  /**
60
60
  * Hard ceiling on managed credits ONE workspace bootstrap may spend, all phases.
61
61
  * 150 since 2026-10-18 (founder, current chat: "increase to at least 100 ... don't
@@ -103,7 +103,11 @@ export type LlmTracingClient = {
103
103
  * describes.
104
104
  */
105
105
  score(body: LlmScoreBody): Promise<boolean>;
106
- /** Never rejects; bounded at 5s on workers, 15s in serverless after(). */
106
+ /**
107
+ * Never rejects. One flush runs at a time, bounded at 5s on workers and 15s
108
+ * in serverless after(); a call made while one runs waits for it and then
109
+ * for the next, so it returns within ~10s (~30s serverless).
110
+ */
107
111
  flush(): Promise<void>;
108
112
  /** Flush + stop timers. Never rejects; bounded at 30s to drain active retries. */
109
113
  shutdown(): Promise<void>;
@@ -236,14 +236,19 @@ function sanitizedErrorReason(error) {
236
236
  return /^[A-Za-z][A-Za-z0-9_]{0,63}$/.test(name) ? name : "unknown";
237
237
  }
238
238
  function boundedNever(rejectable, warn, timeoutMs = FLUSH_TIMEOUT_MS) {
239
+ // A throwing logger must still settle: the client's shared flush waits on this.
240
+ const safeWarn = (error) => { try {
241
+ warn(error);
242
+ }
243
+ catch { /* fail-open */ } };
239
244
  return new Promise((resolve) => {
240
245
  const timer = setTimeout(() => {
241
- warn(new Error("langfuse_flush_deadline_exceeded"));
246
+ safeWarn(new Error("langfuse_flush_deadline_exceeded"));
242
247
  resolve();
243
248
  }, timeoutMs);
244
249
  timer.unref?.();
245
250
  rejectable
246
- .catch((error) => warn(error))
251
+ .catch((error) => safeWarn(error))
247
252
  .finally(() => {
248
253
  clearTimeout(timer);
249
254
  resolve();
@@ -926,6 +931,23 @@ export function createLlmTracingClient(env = process.env, options) {
926
931
  ...(body.endTime ? { endTime: body.endTime } : {}),
927
932
  });
928
933
  }, kind);
934
+ // One flush at a time per client; callers arriving meanwhile share one
935
+ // trailing flush, which starts after theirs were emitted. Off-web every AI
936
+ // cell schedules a fire-and-forget flush, and each forceFlush exports every
937
+ // queued span outside the BatchSpanProcessor's single export: a 20k-row dev
938
+ // run held thousands of serialized batches and their retries in the
939
+ // provider heap (1.45 GB, 2.5 s GC stalls) while Langfuse timed out.
940
+ const boundedFlush = () => boundedNever((async () => emitter.flush())(), (error) => warn(error, { stage: "flush" }), env.VERCEL ? 15_000 : FLUSH_TIMEOUT_MS);
941
+ let flushInFlight = null;
942
+ let trailingFlush = null;
943
+ const flush = () => {
944
+ if (!flushInFlight) {
945
+ flushInFlight = boundedFlush().finally(() => { flushInFlight = null; });
946
+ return flushInFlight;
947
+ }
948
+ trailingFlush ??= flushInFlight.then(() => { trailingFlush = null; return flush(); });
949
+ return trailingFlush;
950
+ };
929
951
  return {
930
952
  trace: (body) => guarded(() => {
931
953
  const startTime = body.startTime ?? new Date();
@@ -1023,7 +1045,7 @@ export function createLlmTracingClient(env = process.env, options) {
1023
1045
  // The "never rejects, bounded at ~5s" contract is the CLIENT's, so it is
1024
1046
  // enforced here (15s for serverless after()) rather than inside one emitter — an emitter that throws
1025
1047
  // synchronously or rejects must still not escape into product code.
1026
- flush: () => boundedNever((async () => emitter.flush())(), (error) => warn(error, { stage: "flush" }), env.VERCEL ? 15_000 : FLUSH_TIMEOUT_MS),
1048
+ flush,
1027
1049
  shutdown: () => boundedNever(
1028
1050
  // The final window is reported whatever its age: nothing follows it.
1029
1051
  (async () => { try {
@@ -1,4 +1,4 @@
1
- import { normalizeLinkedinProfileUrl, isLinkedinMemberIdHandle } from "./linkedin-url.js";
1
+ import { normalizeLinkedinProfileUrl, isLinkedinMemberIdHandle } from "./tables/linkedin-url.js";
2
2
  const LINKEDIN_PROFILE_URN_PREFIX = /^urn:li:(?:fs_miniProfile|fsd_profile|member):/;
3
3
  const LINKEDIN_CLASSIC_MEMBER_ID = /^ACo[A-Za-z0-9_-]+$/;
4
4
  function stripLinkedinProfileUrn(value) {