@oxygen-agent/cli 1.1014.1895 → 1.1014.2040

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 (351) hide show
  1. package/README.md +1 -1
  2. package/dist/auto-update.d.ts +1 -1
  3. package/dist/auto-update.js +3 -3
  4. package/dist/cli-install.d.ts +65 -0
  5. package/dist/cli-install.js +165 -0
  6. package/dist/command-families/tables/options.d.ts +1 -0
  7. package/dist/command-families/tables/register-automation.js +3 -1
  8. package/dist/commands/billing.js +1 -1
  9. package/dist/commands/managed-inboxes.js +6 -2
  10. package/dist/commands/observability.js +4 -4
  11. package/dist/commands/sequences.js +1 -1
  12. package/dist/commands/subscriptions.js +7 -5
  13. package/dist/commands/table-runs.js +10 -0
  14. package/dist/commands/tags.js +2 -2
  15. package/dist/commands/workflows.js +31 -10
  16. package/dist/http-client.d.ts +1 -1
  17. package/dist/http-client.js +1 -1
  18. package/dist/update.d.ts +4 -57
  19. package/dist/update.js +17 -163
  20. package/node_modules/@oxygen/formula/dist/cross-row-function.d.ts +13 -0
  21. package/node_modules/@oxygen/formula/dist/cross-row-function.js +1 -0
  22. package/node_modules/@oxygen/formula/dist/{refactor-internals → cross-row-functions}/novelty-score.d.ts +2 -0
  23. package/node_modules/@oxygen/formula/dist/{refactor-internals → cross-row-functions}/novelty-score.js +1 -0
  24. package/node_modules/@oxygen/formula/dist/cross-row-functions.generated.d.ts +3 -0
  25. package/node_modules/@oxygen/formula/dist/cross-row-functions.generated.js +3 -0
  26. package/node_modules/@oxygen/formula/dist/evaluate.d.ts +12 -1
  27. package/node_modules/@oxygen/formula/dist/evaluate.js +28 -3
  28. package/node_modules/@oxygen/recipe-sdk/dist/index.d.ts +2 -0
  29. package/node_modules/@oxygen/shared/dist/billing.d.ts +5 -1
  30. package/node_modules/@oxygen/shared/dist/billing.js +5 -1
  31. package/node_modules/@oxygen/shared/dist/capability-discovery-skill-audiences.generated.d.ts +30 -0
  32. package/node_modules/@oxygen/shared/dist/capability-discovery-skill-audiences.generated.js +33 -0
  33. package/node_modules/@oxygen/shared/dist/capability-discovery-skills.d.ts +39 -0
  34. package/node_modules/@oxygen/shared/dist/capability-discovery-skills.js +86 -0
  35. package/node_modules/@oxygen/shared/dist/capability-discovery-types.d.ts +93 -0
  36. package/node_modules/@oxygen/shared/dist/capability-discovery-types.js +1 -0
  37. package/node_modules/@oxygen/shared/dist/capability-discovery.d.ts +12 -270
  38. package/node_modules/@oxygen/shared/dist/capability-discovery.js +124 -3713
  39. package/node_modules/@oxygen/shared/dist/capability-intents/agency-directory.rules.d.ts +2 -0
  40. package/node_modules/@oxygen/shared/dist/capability-intents/agency-directory.rules.js +5 -0
  41. package/node_modules/@oxygen/shared/dist/capability-intents/agents.d.ts +10 -0
  42. package/node_modules/@oxygen/shared/dist/capability-intents/agents.js +53 -0
  43. package/node_modules/@oxygen/shared/dist/capability-intents/agents.rules.d.ts +2 -0
  44. package/node_modules/@oxygen/shared/dist/capability-intents/agents.rules.js +25 -0
  45. package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.d.ts +31 -0
  46. package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.js +70 -0
  47. package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.rules.d.ts +2 -0
  48. package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.rules.js +85 -0
  49. package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.d.ts +9 -0
  50. package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.js +54 -0
  51. package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.rules.d.ts +2 -0
  52. package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.rules.js +28 -0
  53. package/node_modules/@oxygen/shared/dist/capability-intents/connected-integrations.rules.d.ts +2 -0
  54. package/node_modules/@oxygen/shared/dist/capability-intents/connected-integrations.rules.js +23 -0
  55. package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.d.ts +43 -0
  56. package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.js +90 -0
  57. package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.rules.d.ts +2 -0
  58. package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.rules.js +58 -0
  59. package/node_modules/@oxygen/shared/dist/capability-intents/connected-whatsapp.rules.d.ts +2 -0
  60. package/node_modules/@oxygen/shared/dist/capability-intents/connected-whatsapp.rules.js +14 -0
  61. package/node_modules/@oxygen/shared/dist/capability-intents/geo.rules.d.ts +2 -0
  62. package/node_modules/@oxygen/shared/dist/capability-intents/geo.rules.js +9 -0
  63. package/node_modules/@oxygen/shared/dist/capability-intents/index.generated.d.ts +365 -0
  64. package/node_modules/@oxygen/shared/dist/capability-intents/index.generated.js +90 -0
  65. package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.d.ts +20 -0
  66. package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.js +37 -0
  67. package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.rules.d.ts +2 -0
  68. package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.rules.js +43 -0
  69. package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.d.ts +4 -0
  70. package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.js +26 -0
  71. package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.rules.d.ts +2 -0
  72. package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.rules.js +42 -0
  73. package/node_modules/@oxygen/shared/dist/capability-intents/messages.d.ts +6 -0
  74. package/node_modules/@oxygen/shared/dist/capability-intents/messages.js +16 -0
  75. package/node_modules/@oxygen/shared/dist/capability-intents/messages.rules.d.ts +2 -0
  76. package/node_modules/@oxygen/shared/dist/capability-intents/messages.rules.js +68 -0
  77. package/node_modules/@oxygen/shared/dist/capability-intents/normalize.d.ts +2 -0
  78. package/node_modules/@oxygen/shared/dist/capability-intents/normalize.js +4 -0
  79. package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.d.ts +6 -0
  80. package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.js +23 -0
  81. package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.rules.d.ts +2 -0
  82. package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.rules.js +25 -0
  83. package/node_modules/@oxygen/shared/dist/capability-intents/posts.d.ts +1 -0
  84. package/node_modules/@oxygen/shared/dist/capability-intents/posts.js +12 -0
  85. package/node_modules/@oxygen/shared/dist/capability-intents/posts.rules.d.ts +2 -0
  86. package/node_modules/@oxygen/shared/dist/capability-intents/posts.rules.js +20 -0
  87. package/node_modules/@oxygen/shared/dist/capability-intents/publishing.d.ts +86 -0
  88. package/node_modules/@oxygen/shared/dist/capability-intents/publishing.js +135 -0
  89. package/node_modules/@oxygen/shared/dist/capability-intents/publishing.rules.d.ts +2 -0
  90. package/node_modules/@oxygen/shared/dist/capability-intents/publishing.rules.js +89 -0
  91. package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.d.ts +7 -0
  92. package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.js +85 -0
  93. package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.rules.d.ts +2 -0
  94. package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.rules.js +28 -0
  95. package/node_modules/@oxygen/shared/dist/capability-intents/recipes.d.ts +7 -0
  96. package/node_modules/@oxygen/shared/dist/capability-intents/recipes.js +73 -0
  97. package/node_modules/@oxygen/shared/dist/capability-intents/recipes.rules.d.ts +2 -0
  98. package/node_modules/@oxygen/shared/dist/capability-intents/recipes.rules.js +36 -0
  99. package/node_modules/@oxygen/shared/dist/capability-intents/records.d.ts +86 -0
  100. package/node_modules/@oxygen/shared/dist/capability-intents/records.js +240 -0
  101. package/node_modules/@oxygen/shared/dist/capability-intents/records.rules.d.ts +2 -0
  102. package/node_modules/@oxygen/shared/dist/capability-intents/records.rules.js +71 -0
  103. package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.d.ts +27 -0
  104. package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.js +67 -0
  105. package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.rules.d.ts +2 -0
  106. package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.rules.js +115 -0
  107. package/node_modules/@oxygen/shared/dist/capability-intents/sequences.d.ts +71 -0
  108. package/node_modules/@oxygen/shared/dist/capability-intents/sequences.js +150 -0
  109. package/node_modules/@oxygen/shared/dist/capability-intents/sequences.rules.d.ts +2 -0
  110. package/node_modules/@oxygen/shared/dist/capability-intents/sequences.rules.js +149 -0
  111. package/node_modules/@oxygen/shared/dist/capability-intents/signals.d.ts +42 -0
  112. package/node_modules/@oxygen/shared/dist/capability-intents/signals.js +42 -0
  113. package/node_modules/@oxygen/shared/dist/capability-intents/signals.rules.d.ts +2 -0
  114. package/node_modules/@oxygen/shared/dist/capability-intents/signals.rules.js +47 -0
  115. package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.d.ts +60 -0
  116. package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.js +94 -0
  117. package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.rules.d.ts +2 -0
  118. package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.rules.js +94 -0
  119. package/node_modules/@oxygen/shared/dist/capability-intents/tables.d.ts +196 -0
  120. package/node_modules/@oxygen/shared/dist/capability-intents/tables.js +394 -0
  121. package/node_modules/@oxygen/shared/dist/capability-intents/tables.rules.d.ts +2 -0
  122. package/node_modules/@oxygen/shared/dist/capability-intents/tables.rules.js +384 -0
  123. package/node_modules/@oxygen/shared/dist/capability-intents/tags.rules.d.ts +2 -0
  124. package/node_modules/@oxygen/shared/dist/capability-intents/tags.rules.js +5 -0
  125. package/node_modules/@oxygen/shared/dist/capability-intents/visual-rendering.rules.d.ts +2 -0
  126. package/node_modules/@oxygen/shared/dist/capability-intents/visual-rendering.rules.js +8 -0
  127. package/node_modules/@oxygen/shared/dist/capability-intents/workflows.d.ts +2 -0
  128. package/node_modules/@oxygen/shared/dist/capability-intents/workflows.js +20 -0
  129. package/node_modules/@oxygen/shared/dist/capability-intents/workflows.rules.d.ts +2 -0
  130. package/node_modules/@oxygen/shared/dist/capability-intents/workflows.rules.js +90 -0
  131. package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.d.ts +59 -0
  132. package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.js +121 -0
  133. package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.rules.d.ts +2 -0
  134. package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.rules.js +58 -0
  135. package/node_modules/@oxygen/shared/dist/capability-routes/ads.d.ts +2 -0
  136. package/node_modules/@oxygen/shared/dist/capability-routes/ads.js +17 -0
  137. package/node_modules/@oxygen/shared/dist/capability-routes/agency-directory.d.ts +2 -0
  138. package/node_modules/@oxygen/shared/dist/capability-routes/agency-directory.js +17 -0
  139. package/node_modules/@oxygen/shared/dist/capability-routes/agents.d.ts +2 -0
  140. package/node_modules/@oxygen/shared/dist/capability-routes/agents.js +17 -0
  141. package/node_modules/@oxygen/shared/dist/capability-routes/billing-and-budgets.d.ts +2 -0
  142. package/node_modules/@oxygen/shared/dist/capability-routes/billing-and-budgets.js +17 -0
  143. package/node_modules/@oxygen/shared/dist/capability-routes/collaboration.d.ts +2 -0
  144. package/node_modules/@oxygen/shared/dist/capability-routes/collaboration.js +39 -0
  145. package/node_modules/@oxygen/shared/dist/capability-routes/connected-integrations.d.ts +2 -0
  146. package/node_modules/@oxygen/shared/dist/capability-routes/connected-integrations.js +17 -0
  147. package/node_modules/@oxygen/shared/dist/capability-routes/connected-linkedin.d.ts +2 -0
  148. package/node_modules/@oxygen/shared/dist/capability-routes/connected-linkedin.js +17 -0
  149. package/node_modules/@oxygen/shared/dist/capability-routes/connected-whatsapp.d.ts +2 -0
  150. package/node_modules/@oxygen/shared/dist/capability-routes/connected-whatsapp.js +17 -0
  151. package/node_modules/@oxygen/shared/dist/capability-routes/dashboards.d.ts +2 -0
  152. package/node_modules/@oxygen/shared/dist/capability-routes/dashboards.js +28 -0
  153. package/node_modules/@oxygen/shared/dist/capability-routes/discovery-and-skills.d.ts +2 -0
  154. package/node_modules/@oxygen/shared/dist/capability-routes/discovery-and-skills.js +22 -0
  155. package/node_modules/@oxygen/shared/dist/capability-routes/geo.d.ts +2 -0
  156. package/node_modules/@oxygen/shared/dist/capability-routes/geo.js +13 -0
  157. package/node_modules/@oxygen/shared/dist/capability-routes/index.d.ts +2 -0
  158. package/node_modules/@oxygen/shared/dist/capability-routes/index.js +64 -0
  159. package/node_modules/@oxygen/shared/dist/capability-routes/knowledge-graph.d.ts +2 -0
  160. package/node_modules/@oxygen/shared/dist/capability-routes/knowledge-graph.js +17 -0
  161. package/node_modules/@oxygen/shared/dist/capability-routes/linkedin-public-research.d.ts +2 -0
  162. package/node_modules/@oxygen/shared/dist/capability-routes/linkedin-public-research.js +18 -0
  163. package/node_modules/@oxygen/shared/dist/capability-routes/messages.d.ts +2 -0
  164. package/node_modules/@oxygen/shared/dist/capability-routes/messages.js +21 -0
  165. package/node_modules/@oxygen/shared/dist/capability-routes/observability.d.ts +2 -0
  166. package/node_modules/@oxygen/shared/dist/capability-routes/observability.js +17 -0
  167. package/node_modules/@oxygen/shared/dist/capability-routes/onboarding-and-copilot.d.ts +2 -0
  168. package/node_modules/@oxygen/shared/dist/capability-routes/onboarding-and-copilot.js +23 -0
  169. package/node_modules/@oxygen/shared/dist/capability-routes/platform-operations.d.ts +2 -0
  170. package/node_modules/@oxygen/shared/dist/capability-routes/platform-operations.js +17 -0
  171. package/node_modules/@oxygen/shared/dist/capability-routes/posts.d.ts +2 -0
  172. package/node_modules/@oxygen/shared/dist/capability-routes/posts.js +17 -0
  173. package/node_modules/@oxygen/shared/dist/capability-routes/publishing.d.ts +2 -0
  174. package/node_modules/@oxygen/shared/dist/capability-routes/publishing.js +20 -0
  175. package/node_modules/@oxygen/shared/dist/capability-routes/recipes.d.ts +2 -0
  176. package/node_modules/@oxygen/shared/dist/capability-routes/recipes.js +17 -0
  177. package/node_modules/@oxygen/shared/dist/capability-routes/records.d.ts +2 -0
  178. package/node_modules/@oxygen/shared/dist/capability-routes/records.js +20 -0
  179. package/node_modules/@oxygen/shared/dist/capability-routes/sending-infrastructure.d.ts +2 -0
  180. package/node_modules/@oxygen/shared/dist/capability-routes/sending-infrastructure.js +42 -0
  181. package/node_modules/@oxygen/shared/dist/capability-routes/sequences.d.ts +2 -0
  182. package/node_modules/@oxygen/shared/dist/capability-routes/sequences.js +32 -0
  183. package/node_modules/@oxygen/shared/dist/capability-routes/signals.d.ts +2 -0
  184. package/node_modules/@oxygen/shared/dist/capability-routes/signals.js +17 -0
  185. package/node_modules/@oxygen/shared/dist/capability-routes/sourcing-and-provider-tools.d.ts +2 -0
  186. package/node_modules/@oxygen/shared/dist/capability-routes/sourcing-and-provider-tools.js +21 -0
  187. package/node_modules/@oxygen/shared/dist/capability-routes/support-and-feedback.d.ts +2 -0
  188. package/node_modules/@oxygen/shared/dist/capability-routes/support-and-feedback.js +17 -0
  189. package/node_modules/@oxygen/shared/dist/capability-routes/tables.d.ts +2 -0
  190. package/node_modules/@oxygen/shared/dist/capability-routes/tables.js +34 -0
  191. package/node_modules/@oxygen/shared/dist/capability-routes/tags.d.ts +2 -0
  192. package/node_modules/@oxygen/shared/dist/capability-routes/tags.js +17 -0
  193. package/node_modules/@oxygen/shared/dist/capability-routes/visual-rendering.d.ts +2 -0
  194. package/node_modules/@oxygen/shared/dist/capability-routes/visual-rendering.js +17 -0
  195. package/node_modules/@oxygen/shared/dist/capability-routes/workflows.d.ts +2 -0
  196. package/node_modules/@oxygen/shared/dist/capability-routes/workflows.js +17 -0
  197. package/node_modules/@oxygen/shared/dist/capability-routes/workspace-access.d.ts +2 -0
  198. package/node_modules/@oxygen/shared/dist/capability-routes/workspace-access.js +26 -0
  199. package/node_modules/@oxygen/shared/dist/cell-format.js +2 -2
  200. package/node_modules/@oxygen/shared/dist/collab.d.ts +1 -1
  201. package/node_modules/@oxygen/shared/dist/contracts/connectors.js +2 -0
  202. package/node_modules/@oxygen/shared/dist/contracts/customer-operations.d.ts +1 -1
  203. package/node_modules/@oxygen/shared/dist/contracts/geo.js +1 -1
  204. package/node_modules/@oxygen/shared/dist/contracts/operations/agent-sessions.d.ts +1 -0
  205. package/node_modules/@oxygen/shared/dist/contracts/operations/agent-sessions.js +1 -0
  206. package/node_modules/@oxygen/shared/dist/contracts/operations/browser.d.ts +1 -0
  207. package/node_modules/@oxygen/shared/dist/contracts/operations/browser.js +1 -0
  208. package/node_modules/@oxygen/shared/dist/contracts/operations/clay-migration.d.ts +2 -0
  209. package/node_modules/@oxygen/shared/dist/contracts/operations/clay-migration.js +2 -0
  210. package/node_modules/@oxygen/shared/dist/contracts/operations/connectors.d.ts +2 -0
  211. package/node_modules/@oxygen/shared/dist/contracts/operations/connectors.js +2 -0
  212. package/node_modules/@oxygen/shared/dist/contracts/operations/geo.d.ts +1 -0
  213. package/node_modules/@oxygen/shared/dist/contracts/operations/geo.js +1 -0
  214. package/node_modules/@oxygen/shared/dist/contracts/operations/guided-activation.d.ts +1 -0
  215. package/node_modules/@oxygen/shared/dist/contracts/operations/guided-activation.js +1 -0
  216. package/node_modules/@oxygen/shared/dist/contracts/operations/index.generated.d.ts +2 -0
  217. package/node_modules/@oxygen/shared/dist/contracts/operations/index.generated.js +26 -0
  218. package/node_modules/@oxygen/shared/dist/contracts/operations/reply-oxygent.d.ts +1 -0
  219. package/node_modules/@oxygen/shared/dist/contracts/operations/reply-oxygent.js +1 -0
  220. package/node_modules/@oxygen/shared/dist/contracts/operations/sender-limits.d.ts +2 -0
  221. package/node_modules/@oxygen/shared/dist/contracts/operations/sender-limits.js +2 -0
  222. package/node_modules/@oxygen/shared/dist/contracts/operations/table-feed-update.d.ts +2 -0
  223. package/node_modules/@oxygen/shared/dist/contracts/operations/table-feed-update.js +2 -0
  224. package/node_modules/@oxygen/shared/dist/contracts/operations/teammates.d.ts +1 -0
  225. package/node_modules/@oxygen/shared/dist/contracts/operations/teammates.js +1 -0
  226. package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-pages.d.ts +2 -0
  227. package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-pages.js +2 -0
  228. package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-skills.d.ts +1 -0
  229. package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-skills.js +1 -0
  230. package/node_modules/@oxygen/shared/dist/contracts/operations.d.ts +6 -0
  231. package/node_modules/@oxygen/shared/dist/contracts/operations.js +7 -15
  232. package/node_modules/@oxygen/shared/dist/contracts/sender-limits.js +1 -0
  233. package/node_modules/@oxygen/shared/dist/diagnostic-storage-lock.js +33 -22
  234. package/node_modules/@oxygen/shared/dist/diagnostics.js +11 -8
  235. package/node_modules/@oxygen/shared/dist/dnc-identities.js +1 -1
  236. package/node_modules/@oxygen/shared/dist/error-redaction.d.ts +1 -1
  237. package/node_modules/@oxygen/shared/dist/error-redaction.js +2 -2
  238. package/node_modules/@oxygen/shared/dist/esp-contract.d.ts +133 -0
  239. package/node_modules/@oxygen/shared/dist/esp-contract.js +121 -0
  240. package/node_modules/@oxygen/shared/dist/first-month-offer-window.d.ts +3 -0
  241. package/node_modules/@oxygen/shared/dist/first-month-offer.d.ts +15 -7
  242. package/node_modules/@oxygen/shared/dist/first-month-offer.js +23 -9
  243. package/node_modules/@oxygen/shared/dist/{geo.js → geo/geo.js} +2 -2
  244. package/node_modules/@oxygen/shared/dist/guided-activation.d.ts +2 -0
  245. package/node_modules/@oxygen/shared/dist/index.d.ts +6 -5
  246. package/node_modules/@oxygen/shared/dist/index.js +7 -5
  247. package/node_modules/@oxygen/shared/dist/knowledge-bootstrap.js +1 -1
  248. package/node_modules/@oxygen/shared/dist/linkedin-connection-identity.js +1 -1
  249. package/node_modules/@oxygen/shared/dist/listed-website-platforms.d.ts +1 -1
  250. package/node_modules/@oxygen/shared/dist/listed-website-platforms.js +23 -1
  251. package/node_modules/@oxygen/shared/dist/{sending-domain-rollout.js → mailboxes/sending-domain-rollout.js} +1 -1
  252. package/node_modules/@oxygen/shared/dist/mcp-event-contract.js +1 -1
  253. package/node_modules/@oxygen/shared/dist/onboarding-leads.d.ts +67 -0
  254. package/node_modules/@oxygen/shared/dist/onboarding-leads.js +78 -0
  255. package/node_modules/@oxygen/shared/dist/otlp-log-sink.js +20 -0
  256. package/node_modules/@oxygen/shared/dist/plan-capabilities.js +1 -1
  257. package/node_modules/@oxygen/shared/dist/plan-limits.d.ts +2 -2
  258. package/node_modules/@oxygen/shared/dist/plan-limits.js +6 -7
  259. package/node_modules/@oxygen/shared/dist/{social-post-metrics-core.d.ts → posts/metrics-core.d.ts} +1 -1
  260. package/node_modules/@oxygen/shared/dist/{social-post-metrics-linkedin.d.ts → posts/metrics-linkedin.d.ts} +1 -1
  261. package/node_modules/@oxygen/shared/dist/{social-post-metrics-linkedin.js → posts/metrics-linkedin.js} +2 -2
  262. package/node_modules/@oxygen/shared/dist/{social-post-metrics-series.d.ts → posts/metrics-series.d.ts} +1 -1
  263. package/node_modules/@oxygen/shared/dist/{social-post-metrics-series.js → posts/metrics-series.js} +1 -1
  264. package/node_modules/@oxygen/shared/dist/{social-post-metrics-x.d.ts → posts/metrics-x.d.ts} +1 -1
  265. package/node_modules/@oxygen/shared/dist/{social-post-metrics-x.js → posts/metrics-x.js} +2 -2
  266. package/node_modules/@oxygen/shared/dist/{social-post-metrics.d.ts → posts/metrics.d.ts} +3 -3
  267. package/node_modules/@oxygen/shared/dist/{social-post-metrics.js → posts/metrics.js} +3 -3
  268. package/node_modules/@oxygen/shared/dist/recipient-provider.d.ts +2 -10
  269. package/node_modules/@oxygen/shared/dist/recipient-provider.js +1 -9
  270. package/node_modules/@oxygen/shared/dist/sending-domain-faults.d.ts +1 -1
  271. package/node_modules/@oxygen/shared/dist/sending-domain-faults.js +1 -1
  272. package/node_modules/@oxygen/shared/dist/sequence-internals/esp-policy.d.ts +2 -118
  273. package/node_modules/@oxygen/shared/dist/sequence-internals/esp-policy.js +2 -107
  274. package/node_modules/@oxygen/shared/dist/sequences.d.ts +0 -1
  275. package/node_modules/@oxygen/shared/dist/sequences.js +0 -2
  276. package/node_modules/@oxygen/shared/dist/{native-chat-discovery.d.ts → support/native-chat-discovery.d.ts} +1 -1
  277. package/node_modules/@oxygen/shared/dist/{native-chat-discovery.js → support/native-chat-discovery.js} +1 -1
  278. package/node_modules/@oxygen/shared/dist/suppression-entries.js +1 -1
  279. package/node_modules/@oxygen/shared/dist/table-field-types.d.ts +1 -1
  280. package/node_modules/@oxygen/shared/dist/table-field-types.js +2 -2
  281. package/node_modules/@oxygen/shared/dist/{column-output-fields.js → tables/column-output-fields.js} +4 -4
  282. package/node_modules/@oxygen/shared/dist/{tags.d.ts → tags/tags.d.ts} +1 -1
  283. package/node_modules/@oxygen/shared/dist/{tags.js → tags/tags.js} +1 -1
  284. package/node_modules/@oxygen/shared/dist/tenant-migration-names.d.ts +5 -0
  285. package/node_modules/@oxygen/shared/dist/tenant-migration-names.js +8 -0
  286. package/node_modules/@oxygen/shared/dist/ugc-amplification-identity.js +1 -1
  287. package/node_modules/@oxygen/shared/dist/version.generated.d.ts +1 -1
  288. package/node_modules/@oxygen/shared/dist/version.generated.js +1 -1
  289. package/node_modules/@oxygen/shared/dist/workspace-placement-bulk.d.ts +6 -0
  290. package/node_modules/@oxygen/shared/dist/workspace-placement-bulk.js +9 -2
  291. package/node_modules/@oxygen/shared/dist/workspace-placement-schedule.d.ts +44 -0
  292. package/node_modules/@oxygen/shared/dist/workspace-placement-schedule.js +90 -0
  293. package/node_modules/@oxygen/shared/dist/workspace-placement-view.d.ts +24 -0
  294. package/node_modules/@oxygen/shared/dist/workspace-placement-view.js +5 -4
  295. package/node_modules/@oxygen/shared/dist/workspace-placement.d.ts +4 -0
  296. package/node_modules/@oxygen/shared/dist/workspace-placement.js +7 -1
  297. package/node_modules/@oxygen/shared/package.json +0 -25
  298. package/node_modules/@oxygen/workflows/dist/cron.d.ts +42 -0
  299. package/node_modules/@oxygen/workflows/dist/cron.js +271 -0
  300. package/node_modules/@oxygen/workflows/dist/event-dispatch.d.ts +2 -1
  301. package/node_modules/@oxygen/workflows/dist/graph/condition.d.ts +3 -0
  302. package/node_modules/@oxygen/workflows/dist/graph/condition.js +19 -0
  303. package/node_modules/@oxygen/workflows/dist/graph/expression.d.ts +1 -2
  304. package/node_modules/@oxygen/workflows/dist/graph/expression.js +2 -19
  305. package/node_modules/@oxygen/workflows/dist/graph/lint.d.ts +1 -1
  306. package/node_modules/@oxygen/workflows/dist/graph/lint.js +4 -3
  307. package/node_modules/@oxygen/workflows/dist/graph/types.d.ts +4 -3
  308. package/node_modules/@oxygen/workflows/dist/index.d.ts +9 -1043
  309. package/node_modules/@oxygen/workflows/dist/index.js +11 -2124
  310. package/node_modules/@oxygen/workflows/dist/manifest-builders.d.ts +73 -0
  311. package/node_modules/@oxygen/workflows/dist/manifest-builders.js +102 -0
  312. package/node_modules/@oxygen/workflows/dist/manifest-guards.d.ts +16 -0
  313. package/node_modules/@oxygen/workflows/dist/manifest-guards.js +34 -0
  314. package/node_modules/@oxygen/workflows/dist/manifest-hash.d.ts +47 -0
  315. package/node_modules/@oxygen/workflows/dist/manifest-hash.js +102 -0
  316. package/node_modules/@oxygen/workflows/dist/manifest-lint.d.ts +17 -0
  317. package/node_modules/@oxygen/workflows/dist/manifest-lint.js +474 -0
  318. package/node_modules/@oxygen/workflows/dist/manifest-types.d.ts +256 -0
  319. package/node_modules/@oxygen/workflows/dist/manifest-types.js +9 -0
  320. package/node_modules/@oxygen/workflows/dist/manifest-validation.d.ts +75 -0
  321. package/node_modules/@oxygen/workflows/dist/manifest-validation.js +903 -0
  322. package/node_modules/@oxygen/workflows/dist/pure-function.d.ts +17 -0
  323. package/node_modules/@oxygen/workflows/dist/pure-function.js +130 -0
  324. package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-comparison.d.ts +1 -17
  325. package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-comparison.js +1 -93
  326. package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-pattern.d.ts +16 -0
  327. package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-pattern.js +92 -0
  328. package/node_modules/@oxygen/workflows/dist/workflow-schemas.d.ts +545 -0
  329. package/node_modules/@oxygen/workflows/dist/workflow-schemas.js +135 -0
  330. package/node_modules/@oxygen/workflows/package.json +4 -0
  331. package/package.json +1 -1
  332. /package/node_modules/@oxygen/shared/dist/{geo.d.ts → geo/geo.d.ts} +0 -0
  333. /package/node_modules/@oxygen/shared/dist/{sending-domain-rollout.d.ts → mailboxes/sending-domain-rollout.d.ts} +0 -0
  334. /package/node_modules/@oxygen/shared/dist/{attempt-provenance.d.ts → observability/attempt-provenance.d.ts} +0 -0
  335. /package/node_modules/@oxygen/shared/dist/{attempt-provenance.js → observability/attempt-provenance.js} +0 -0
  336. /package/node_modules/@oxygen/shared/dist/{linkedin-mentions.d.ts → posts/linkedin-mentions.d.ts} +0 -0
  337. /package/node_modules/@oxygen/shared/dist/{linkedin-mentions.js → posts/linkedin-mentions.js} +0 -0
  338. /package/node_modules/@oxygen/shared/dist/{linkedin-post-keywords.d.ts → posts/linkedin-post-keywords.d.ts} +0 -0
  339. /package/node_modules/@oxygen/shared/dist/{linkedin-post-keywords.js → posts/linkedin-post-keywords.js} +0 -0
  340. /package/node_modules/@oxygen/shared/dist/{linkedin-post-url.d.ts → posts/linkedin-post-url.d.ts} +0 -0
  341. /package/node_modules/@oxygen/shared/dist/{linkedin-post-url.js → posts/linkedin-post-url.js} +0 -0
  342. /package/node_modules/@oxygen/shared/dist/{social-post-metrics-core.js → posts/metrics-core.js} +0 -0
  343. /package/node_modules/@oxygen/shared/dist/{native-chat.d.ts → support/native-chat.d.ts} +0 -0
  344. /package/node_modules/@oxygen/shared/dist/{native-chat.js → support/native-chat.js} +0 -0
  345. /package/node_modules/@oxygen/shared/dist/{plain-support-events.d.ts → support/plain-support-events.d.ts} +0 -0
  346. /package/node_modules/@oxygen/shared/dist/{plain-support-events.js → support/plain-support-events.js} +0 -0
  347. /package/node_modules/@oxygen/shared/dist/{column-output-fields.d.ts → tables/column-output-fields.d.ts} +0 -0
  348. /package/node_modules/@oxygen/shared/dist/{linkedin-url.d.ts → tables/linkedin-url.d.ts} +0 -0
  349. /package/node_modules/@oxygen/shared/dist/{linkedin-url.js → tables/linkedin-url.js} +0 -0
  350. /package/node_modules/@oxygen/shared/dist/{select-options.d.ts → tables/select-options.d.ts} +0 -0
  351. /package/node_modules/@oxygen/shared/dist/{select-options.js → tables/select-options.js} +0 -0
@@ -0,0 +1,2 @@
1
+ import type { OperationSpec } from "../operation-request.js";
2
+ export declare const CONNECTOR_OPERATIONS: readonly OperationSpec[];
@@ -0,0 +1,2 @@
1
+ import { CONNECTOR_EVENTS_REVOKE_OPERATION, CONNECTOR_UPDATE_OPERATION } from "../connectors.js";
2
+ export const CONNECTOR_OPERATIONS = [CONNECTOR_UPDATE_OPERATION, CONNECTOR_EVENTS_REVOKE_OPERATION];
@@ -0,0 +1 @@
1
+ export { GEO_OPERATIONS } from "../geo.js";
@@ -0,0 +1 @@
1
+ export { GEO_OPERATIONS } from "../geo.js";
@@ -0,0 +1 @@
1
+ export { GUIDED_ACTIVATION_OPERATIONS } from "../guided-activation.js";
@@ -0,0 +1 @@
1
+ export { GUIDED_ACTIVATION_OPERATIONS } from "../guided-activation.js";
@@ -0,0 +1,2 @@
1
+ import type { OperationSpec } from "../operation-request.js";
2
+ export declare const OPERATION_FAMILY_SPECS: readonly OperationSpec[];
@@ -0,0 +1,26 @@
1
+ import { AGENT_SESSION_OPERATIONS } from "./agent-sessions.js";
2
+ import { BROWSER_OPERATIONS } from "./browser.js";
3
+ import { CLAY_MIGRATION_OPERATIONS } from "./clay-migration.js";
4
+ import { CONNECTOR_OPERATIONS } from "./connectors.js";
5
+ import { GEO_OPERATIONS } from "./geo.js";
6
+ import { GUIDED_ACTIVATION_OPERATIONS } from "./guided-activation.js";
7
+ import { REPLY_OXYGENT_OPERATIONS } from "./reply-oxygent.js";
8
+ import { SENDER_LIMITS_OPERATIONS } from "./sender-limits.js";
9
+ import { TABLE_FEED_UPDATE_OPERATIONS } from "./table-feed-update.js";
10
+ import { TEAMMATE_OPERATIONS } from "./teammates.js";
11
+ import { WORKSPACE_PAGES_OPERATIONS } from "./workspace-pages.js";
12
+ import { WORKSPACE_SKILL_OPERATIONS } from "./workspace-skills.js";
13
+ export const OPERATION_FAMILY_SPECS = [
14
+ ...AGENT_SESSION_OPERATIONS,
15
+ ...BROWSER_OPERATIONS,
16
+ ...CLAY_MIGRATION_OPERATIONS,
17
+ ...CONNECTOR_OPERATIONS,
18
+ ...GEO_OPERATIONS,
19
+ ...GUIDED_ACTIVATION_OPERATIONS,
20
+ ...REPLY_OXYGENT_OPERATIONS,
21
+ ...SENDER_LIMITS_OPERATIONS,
22
+ ...TABLE_FEED_UPDATE_OPERATIONS,
23
+ ...TEAMMATE_OPERATIONS,
24
+ ...WORKSPACE_PAGES_OPERATIONS,
25
+ ...WORKSPACE_SKILL_OPERATIONS,
26
+ ];
@@ -0,0 +1 @@
1
+ export { REPLY_OXYGENT_OPERATIONS } from "../reply-oxygent.js";
@@ -0,0 +1 @@
1
+ export { REPLY_OXYGENT_OPERATIONS } from "../reply-oxygent.js";
@@ -0,0 +1,2 @@
1
+ import type { OperationSpec } from "../operation-request.js";
2
+ export declare const SENDER_LIMITS_OPERATIONS: readonly OperationSpec[];
@@ -0,0 +1,2 @@
1
+ import { SENDER_LIMITS_SET_OPERATION } from "../sender-limits.js";
2
+ export const SENDER_LIMITS_OPERATIONS = [SENDER_LIMITS_SET_OPERATION];
@@ -0,0 +1,2 @@
1
+ import type { OperationSpec } from "../operation-request.js";
2
+ export declare const TABLE_FEED_UPDATE_OPERATIONS: readonly OperationSpec[];
@@ -0,0 +1,2 @@
1
+ import { TABLE_FEED_UPDATE_OPERATION } from "../table-feed-update.js";
2
+ export const TABLE_FEED_UPDATE_OPERATIONS = [TABLE_FEED_UPDATE_OPERATION];
@@ -0,0 +1 @@
1
+ export { TEAMMATE_OPERATIONS } from "../teammates.js";
@@ -0,0 +1 @@
1
+ export { TEAMMATE_OPERATIONS } from "../teammates.js";
@@ -0,0 +1,2 @@
1
+ import type { OperationSpec } from "../operation-request.js";
2
+ export declare const WORKSPACE_PAGES_OPERATIONS: readonly OperationSpec[];
@@ -0,0 +1,2 @@
1
+ import { WORKSPACE_PAGES_GET_OPERATION, WORKSPACE_PAGES_UPDATE_OPERATION } from "../workspace-pages.js";
2
+ export const WORKSPACE_PAGES_OPERATIONS = [WORKSPACE_PAGES_GET_OPERATION, WORKSPACE_PAGES_UPDATE_OPERATION];
@@ -0,0 +1 @@
1
+ export { WORKSPACE_SKILL_OPERATIONS } from "../workspace-skills.js";
@@ -0,0 +1 @@
1
+ export { WORKSPACE_SKILL_OPERATIONS } from "../workspace-skills.js";
@@ -1,3 +1,9 @@
1
+ /**
2
+ * One entry per customer operation that edits a resource: the route it calls,
3
+ * the contract its body satisfies, and the names it carries on the CLI and MCP.
4
+ * The CLI command, the MCP tool and the route read the same spec, so the three
5
+ * cannot disagree on which fields exist. Leaf and browser-safe.
6
+ */
1
7
  import { type ContractObject, type ContractIssue } from "./schema.js";
2
8
  import type { OperationSpec } from "./operation-request.js";
3
9
  export type { OperationSpec } from "./operation-request.js";
@@ -4,20 +4,9 @@
4
4
  * The CLI command, the MCP tool and the route read the same spec, so the three
5
5
  * cannot disagree on which fields exist. Leaf and browser-safe.
6
6
  */
7
- import { CONNECTOR_EVENTS_REVOKE_OPERATION, CONNECTOR_UPDATE_OPERATION } from "./connectors.js";
8
7
  import { str, validateContract } from "./schema.js";
9
- import { SENDER_LIMITS_SET_OPERATION } from "./sender-limits.js";
10
- import { WORKSPACE_PAGES_GET_OPERATION, WORKSPACE_PAGES_UPDATE_OPERATION } from "./workspace-pages.js";
11
- import { BROWSER_OPERATIONS } from "./browser-operations.js";
12
- import { TABLE_FEED_UPDATE_OPERATION } from "./table-feed-update.js";
13
- import { GEO_OPERATIONS } from "./geo.js";
14
8
  import { CUSTOMER_OPERATIONS } from "./customer-operations.js";
15
- import { GUIDED_ACTIVATION_OPERATIONS } from "./guided-activation.js";
16
- import { AGENT_SESSION_OPERATIONS } from "./agent-sessions.js";
17
- import { REPLY_OXYGENT_OPERATIONS } from "./reply-oxygent.js";
18
- import { TEAMMATE_OPERATIONS } from "./teammates.js";
19
- import { WORKSPACE_SKILL_OPERATIONS } from "./workspace-skills.js";
20
- import { CLAY_MIGRATION_OPERATION } from "./clay-migration.js";
9
+ import { OPERATION_FAMILY_SPECS } from "./operations/index.generated.js";
21
10
  export { operationPath, operationRequest } from "./operation-request.js";
22
11
  /** The exact public grammar, including the operation's scoped route parameters. */
23
12
  export function operationInputContract(spec) {
@@ -61,6 +50,9 @@ export function operationFormData(spec, body) {
61
50
  }
62
51
  return form;
63
52
  }
64
- export const OPERATION_SPECS = [CLAY_MIGRATION_OPERATION, SENDER_LIMITS_SET_OPERATION, CONNECTOR_UPDATE_OPERATION, CONNECTOR_EVENTS_REVOKE_OPERATION, WORKSPACE_PAGES_GET_OPERATION, WORKSPACE_PAGES_UPDATE_OPERATION, TABLE_FEED_UPDATE_OPERATION, ...CUSTOMER_OPERATIONS, ...GEO_OPERATIONS, ...BROWSER_OPERATIONS, ...AGENT_SESSION_OPERATIONS, ...GUIDED_ACTIVATION_OPERATIONS, ...TEAMMATE_OPERATIONS, ...REPLY_OXYGENT_OPERATIONS, ...WORKSPACE_SKILL_OPERATIONS];
65
- export const CLI_OPERATIONS = [...CUSTOMER_OPERATIONS, ...GEO_OPERATIONS, ...BROWSER_OPERATIONS, ...AGENT_SESSION_OPERATIONS, ...GUIDED_ACTIVATION_OPERATIONS, ...TEAMMATE_OPERATIONS, ...REPLY_OXYGENT_OPERATIONS, ...WORKSPACE_SKILL_OPERATIONS].filter((spec) => spec.generated?.cli !== false);
66
- export const MCP_OPERATIONS = [...CUSTOMER_OPERATIONS, ...GEO_OPERATIONS, ...BROWSER_OPERATIONS, ...AGENT_SESSION_OPERATIONS, ...GUIDED_ACTIVATION_OPERATIONS, ...TEAMMATE_OPERATIONS, ...REPLY_OXYGENT_OPERATIONS, ...WORKSPACE_SKILL_OPERATIONS].filter((spec) => spec.generated?.mcp !== false);
53
+ // Add a family as a new file in ./operations/ (scripts/codegen/operations-index.mjs
54
+ // lists them alphabetically). The shared customer catalog leads, so each MCP pack
55
+ // and CLI group keeps its established tool and command order.
56
+ export const OPERATION_SPECS = [...CUSTOMER_OPERATIONS, ...OPERATION_FAMILY_SPECS];
57
+ export const CLI_OPERATIONS = [...CUSTOMER_OPERATIONS, ...OPERATION_FAMILY_SPECS].filter((spec) => spec.generated?.cli !== false);
58
+ export const MCP_OPERATIONS = [...CUSTOMER_OPERATIONS, ...OPERATION_FAMILY_SPECS].filter((spec) => spec.generated?.mcp !== false);
@@ -79,6 +79,7 @@ export const SENDER_LIMITS_SET_OPERATION = {
79
79
  route: "/api/cli/senders/{id}/limits",
80
80
  method: "PATCH",
81
81
  contract: SENDER_LIMITS_PATCH_CONTRACT,
82
+ generated: { cli: false, mcp: false },
82
83
  cli: {
83
84
  path: ["senders", "limits", "set"],
84
85
  summary: "Adjust per-account action limits and working hours. LinkedIn actions only run inside the account's working hours (default 07:00-22:00 every day, in the account's timezone); work due outside them is deferred to the next window, not failed. Set them with --timezone, --working-days, --working-hours-start and --working-hours-end; flags you omit keep their current value. A sequence's sending schedule (sequences update --schedule-*, or --linkedin-* for LinkedIn alone) can narrow the window for its LinkedIn steps, never widen it; email steps follow the sequence's email send window instead. Every limit flag shows its default and hard maximum; values above the maximum are clamped, and higher caps raise the risk of a LinkedIn restriction. Each action has its own cap (InMails per day and per rolling 30 days, profile views, profile lookups, endorsements, invitation withdrawals, posts), and every send except posts also counts toward --total-actions-per-day. Daily send caps run at half on Saturday and Sunday in the account's timezone unless --weekend-full-volume is set. A withdrawn invitation cannot be re-sent to the same person for 21 days. Own-feed posts and your own Unibox replies ignore working hours. A refused action names its reason (outside_working_hours defers it; linkedin_rate_limited names the limit and resets_at). Caps saved before 25 Sep 2026 above 40 messages, 20 comments or 200 total actions were lowered to those levels once on 2 Oct 2026 (old values in sender metadata linkedin_limit_caution_2026_10); limits you save now are kept as set. Raising caps to answer a post's commenters: read `oxygen skills get oxygen-sequencer --file references/linkedin.md` first. Changing limits is free. <id> accepts a sender account id, connection id, or Unipile account id.",
@@ -7,31 +7,42 @@ export async function acquireDiagnosticStorageLock(path, waitMs = 0) {
7
7
  const { DatabaseSync } = process.getBuiltinModule("node:sqlite");
8
8
  const databasePath = path + ".sqlite";
9
9
  const deadline = performance.now() + waitMs;
10
+ // SQLite owns every descriptor: closing a separate descriptor for this inode
11
+ // would release POSIX locks held by another connection in this process.
12
+ // One connection serves every attempt; reopening per poll was synchronous
13
+ // open/stat/chmod work on the event loop for each waiter every 20 ms.
10
14
  let database;
11
- while (true) {
12
- try {
13
- // SQLite owns every descriptor: closing a separate descriptor for this inode
14
- // would release POSIX locks held by another connection in this process.
15
- database = new DatabaseSync(databasePath, { timeout: 0 });
16
- await chmod(databasePath, 0o600);
17
- database.exec("BEGIN EXCLUSIVE");
18
- break;
19
- }
20
- catch (error) {
21
- database?.close();
22
- database = undefined;
23
- const busy = error && typeof error === "object" && "errcode" in error && (error.errcode === 5 || error.errcode === 6);
24
- // Only contention is skippable. Preserve permission, capacity and runtime
25
- // failures for the caller's safe classification rather than calling them busy.
26
- if (!busy)
27
- throw error;
28
- if (performance.now() >= deadline)
29
- return null;
30
- // A synchronous SQLite busy timeout would block the same-process owner
31
- // from finishing its asynchronous fsync and releasing this lock.
32
- await new Promise(resolve => setTimeout(resolve, Math.min(20, Math.max(1, deadline - performance.now()))));
15
+ try {
16
+ while (true) {
17
+ try {
18
+ if (!database) {
19
+ database = new DatabaseSync(databasePath, { timeout: 0 });
20
+ await chmod(databasePath, 0o600);
21
+ }
22
+ database.exec("BEGIN EXCLUSIVE");
23
+ break;
24
+ }
25
+ catch (error) {
26
+ const busy = error && typeof error === "object" && "errcode" in error && (error.errcode === 5 || error.errcode === 6);
27
+ // Only contention is skippable. Preserve permission, capacity and runtime
28
+ // failures for the caller's safe classification rather than calling them busy.
29
+ if (!busy)
30
+ throw error;
31
+ if (performance.now() >= deadline) {
32
+ database?.close();
33
+ database = undefined;
34
+ return null;
35
+ }
36
+ // A synchronous SQLite busy timeout would block the same-process owner
37
+ // from finishing its asynchronous fsync and releasing this lock.
38
+ await new Promise(resolve => setTimeout(resolve, Math.min(20, Math.max(1, deadline - performance.now()))));
39
+ }
33
40
  }
34
41
  }
42
+ catch (error) {
43
+ database?.close();
44
+ throw error;
45
+ }
35
46
  const held = database;
36
47
  let closed = false;
37
48
  return async () => {
@@ -59,15 +59,18 @@ export function sanitizeDiagnosticText(value, knownSecrets = []) {
59
59
  if (secret)
60
60
  value = value.split(secret).join("[credential excluded]");
61
61
  // Text blocks may contain serialized tool results, including binary blocks.
62
- try {
63
- const parsed = JSON.parse(value);
64
- if (parsed && typeof parsed === "object") {
65
- const sanitized = sanitizeDiagnosticContent(parsed, knownSecrets);
66
- if (JSON.stringify(parsed) !== JSON.stringify(sanitized))
67
- value = JSON.stringify(sanitized);
62
+ // Only text opening with { or [ can parse to an object; skipping the rest avoids
63
+ // a thrown SyntaxError for every identifier and timestamp in a record.
64
+ if (/^\s*[[{]/.test(value))
65
+ try {
66
+ const parsed = JSON.parse(value);
67
+ if (parsed && typeof parsed === "object") {
68
+ const sanitized = sanitizeDiagnosticContent(parsed, knownSecrets);
69
+ if (JSON.stringify(parsed) !== JSON.stringify(sanitized))
70
+ value = JSON.stringify(sanitized);
71
+ }
68
72
  }
69
- }
70
- catch { /* preserve ordinary business text */ }
73
+ catch { /* preserve ordinary business text */ }
71
74
  value = value.replace(/data:[\w/+.-]+(?:;[\w=.-]+)*;base64,[A-Za-z0-9+/=]+/g, match => JSON.stringify(binaryMetadata(match.slice(match.indexOf(",") + 1))));
72
75
  const redacted = redactSecretsInString(value)
73
76
  .replace(/([?&#][\w.-]*(?:api[_-]?key|token|secret|password|signature|credential|code|auth)[\w.-]*=)[^&#\s"'<>]+/gi, "$1[credential excluded]")
@@ -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"];
@@ -23,6 +23,9 @@ export type FirstMonthOfferHeadline = {
23
23
  percentOff: number;
24
24
  /** The cheapest size the offer covers, at its regular monthly price. */
25
25
  fromCents: number;
26
+ /** The size every surface promotes (the $99 plan), at its regular monthly price and its first month. */
27
+ planCents: number;
28
+ firstMonthCents: number;
26
29
  };
27
30
  /** When a window that started at `startedAtMs` closes. */
28
31
  export declare function firstMonthOfferEndsAt(startedAtMs: number): number;
@@ -3,11 +3,12 @@ import { type FirstMonthOfferHeadline } from "./first-month-offer-window.js";
3
3
  export { FIRST_MONTH_OFFER_SEEN_COOKIE, FIRST_MONTH_OFFER_SEEN_MAX_AGE_SECONDS, firstMonthOfferEndsAt, parseFirstMonthOfferStart, type FirstMonthOfferHeadline, } from "./first-month-offer-window.js";
4
4
  /**
5
5
  * The first-month offer (founder, 2026-10-02; widened 2026-10-03 to "all the
6
- * plans above the $49/month plan ... from the $99/month plan upwards"): a new
7
- * customer's first month of any Oxygen size from $99 up costs half its price,
8
- * rounded down to the dollar, so they start on a bigger plan for less and, the
9
- * hope is, keep it. $99 becomes $49, $199 $99, $499 $249, $999 $499 and $1,999
10
- * $999. It is claimable for 24 hours from the first time that person sees it: a
6
+ * plans above the $49/month plan ... from the $99/month plan upwards"; widened
7
+ * again 2026-10-23: "apply the 50% off offer on the first month also on the
8
+ * 49/Month plan"): a new customer's first month of any Oxygen size costs half
9
+ * its price, rounded down to the dollar, so they start for less and, the hope
10
+ * is, keep it. $49 becomes $24, $99 $49, $199 $99, $499 $249, $999 $499 and
11
+ * $1,999 $999. It is claimable for 24 hours from the first time that person sees it: a
11
12
  * browser remembers when it first showed the offer, signup carries that start
12
13
  * onto the new workspace, and checkout applies the discount only inside the
13
14
  * workspace's window.
@@ -21,7 +22,7 @@ export declare const FIRST_MONTH_OFFER: Readonly<{
21
22
  /** Stable machine name, written to Checkout and subscription metadata. */
22
23
  key: "first_month_half";
23
24
  /** The cheapest size it applies to; every dearer size qualifies too. */
24
- minimumPlanKey: "oxygen_99";
25
+ minimumPlanKey: "oxygen_49";
25
26
  /**
26
27
  * The size every surface proposes while the offer runs ("By default it's the
27
28
  * $99/month plan, which is 50% off for the first month"): `/pricing` and the
@@ -56,5 +57,12 @@ export type FirstMonthOfferPrice = {
56
57
  };
57
58
  /** A size's first month under the offer: half its price, rounded down to the dollar ($99 → $49, 50% off). */
58
59
  export declare function firstMonthOfferPrice(planKey?: OxygenPlanKey): FirstMonthOfferPrice;
59
- /** The banner's headline, computed here so the browser never loads the catalog. */
60
+ /**
61
+ * The banner's headline, computed here so the browser never loads the catalog:
62
+ * the smallest discount any covered size gives ($49 → $24 is 51%, the others
63
+ * 50%), so it never claims more than a plan gives, and the size it promotes.
64
+ * The $99 plan leads (current chat, 2026-10-23: "we should still promote mainly
65
+ * the 99/month plan as the primary point but they have the option to select the
66
+ * lower tier"); the $49 plan is half off too, chosen on the plans.
67
+ */
60
68
  export declare function firstMonthOfferHeadline(): FirstMonthOfferHeadline;