@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
package/README.md CHANGED
@@ -34,4 +34,4 @@ oxygen update
34
34
 
35
35
  For product documentation, visit https://oxygen-agent.com/docs. For support, visit https://oxygen-agent.com.
36
36
 
37
- Version: 1.1014.1997
37
+ Version: 1.1014.2100
@@ -383,6 +383,18 @@ function writeMaxCreditsHint(error) {
383
383
  process.stderr.write(`hint: the estimate is ${estimated} credits; re-run with --max-credits ${estimated} or higher\n`);
384
384
  return;
385
385
  }
386
+ // A paused run never finishes, so its wait times out: say how to resume it.
387
+ case "table_action_run_wait_timeout": {
388
+ if (readDetailsString(error.details, "status") !== "paused")
389
+ return;
390
+ const userMessage = readDetailsString(error.details, "user_message");
391
+ const nextStep = readDetailsString(error.details, "next_step");
392
+ if (userMessage)
393
+ process.stderr.write(`hint: ${userMessage}\n`);
394
+ if (nextStep)
395
+ process.stderr.write(`hint: ${nextStep}\n`);
396
+ return;
397
+ }
386
398
  case "copilot_send_timeout": {
387
399
  const nextStep = readDetailsString(error.details, "next_step");
388
400
  const interrupt = readDetailsString(error.details, "interrupt_command");
@@ -1,5 +1,5 @@
1
1
  import { OxygenError } from "@oxygen/shared/cli-result";
2
- import { COLUMN_DECISION_GROUNDINGS, } from "@oxygen/shared/column-decision";
2
+ import { COLUMN_DECISION_GROUNDINGS, } from "@oxygen/shared/tables/column-decision";
3
3
  function readFlag(value) {
4
4
  if (typeof value !== "string")
5
5
  return null;
@@ -1,5 +1,5 @@
1
1
  import { QueryColumnDescriptor } from "../../command-support.js";
2
- import type { RowsFileFormat } from "@oxygen/shared/file-import";
2
+ import type { RowsFileFormat } from "@oxygen/shared/tables/file-import";
3
3
  export declare const TABLE_BUNDLE_SCHEMA_VERSION = 2;
4
4
  export declare const TABLE_BUNDLE_LEGACY_SCHEMA_VERSION = 1;
5
5
  export declare const TABLE_BUNDLE_SUPPORTED_SCHEMA_VERSIONS: number[];
@@ -1,7 +1,7 @@
1
1
  import { readRecordString } from "../../cli-values.js";
2
2
  import { readRecord } from "../../command-support.js";
3
3
  import { OxygenError } from "@oxygen/shared/cli-result";
4
- import { parseRowsFileBuffer } from "@oxygen/shared/file-import";
4
+ import { parseRowsFileBuffer } from "@oxygen/shared/tables/file-import";
5
5
  import { existsSync, readFileSync, createReadStream, statSync, openSync, readSync, closeSync } from "node:fs";
6
6
  import { createInterface } from "node:readline/promises";
7
7
  // Bundle formats. Version 2 is line-delimited: a header line carrying the
@@ -3,7 +3,7 @@ import { readRecord } from "../../command-support.js";
3
3
  import { requestOxygen } from "../../http-client.js";
4
4
  import { readOption } from "../../util.js";
5
5
  import { OxygenError } from "@oxygen/shared/cli-result";
6
- import { normalizeRowsForNewTable, inferImportColumnLabels, normalizeImportColumnKey } from "@oxygen/shared/file-import";
6
+ import { normalizeRowsForNewTable, inferImportColumnLabels, normalizeImportColumnKey } from "@oxygen/shared/tables/file-import";
7
7
  import { tableWebUrl } from "./import-values.js";
8
8
  import { normalizeCreatedTableUpsertKey } from "./bundle-format.js";
9
9
  export async function prepareImportTarget(table, options, parsedRows) {
@@ -1,4 +1,4 @@
1
- import type { RowsFileFormat } from "@oxygen/shared/file-import";
1
+ import type { RowsFileFormat } from "@oxygen/shared/tables/file-import";
2
2
  import { TablesFileImportOptions } from "./options.js";
3
3
  import { ImportTarget } from "./import-columns.js";
4
4
  /**
@@ -4,7 +4,7 @@ import { defaultApiUrl } from "../../credentials.js";
4
4
  import { oxygenAppUrl } from "../../help.js";
5
5
  import { STREAMED_FILE_IMPORT_MIN_BYTES } from "../../streamed-file-import.js";
6
6
  import { OxygenError } from "@oxygen/shared/cli-result";
7
- import { MAX_BUFFERED_IMPORT_PARSE_BYTES } from "@oxygen/shared/file-import";
7
+ import { MAX_BUFFERED_IMPORT_PARSE_BYTES } from "@oxygen/shared/tables/file-import";
8
8
  import { PLAN_LIMITS, MAX_CLI_JSON_BODY_BYTES } from "@oxygen/shared/plan-limits";
9
9
  import { createHash } from "node:crypto";
10
10
  import { readFileSync } from "node:fs";
@@ -1,4 +1,4 @@
1
- import type { RowsFileFormat } from "@oxygen/shared/file-import";
1
+ import type { RowsFileFormat } from "@oxygen/shared/tables/file-import";
2
2
  import { TablesFileImportOptions, TablesImportOptions } from "./options.js";
3
3
  /**
4
4
  * `--url` hands the fetch to the server: the same durable import the file path
@@ -5,7 +5,7 @@ import { shouldStreamFileImport, STREAMED_FILE_IMPORT_MIN_BYTES, scanStreamedImp
5
5
  import { readOption } from "../../util.js";
6
6
  import { chunk } from "@oxygen/shared/array-utils";
7
7
  import { OxygenError } from "@oxygen/shared/cli-result";
8
- import { normalizeRowsFormat, inferRowsFileFormat, assertImportFormatWithinBufferedLimit, dropBlankImportCells } from "@oxygen/shared/file-import";
8
+ import { normalizeRowsFormat, inferRowsFileFormat, assertImportFormatWithinBufferedLimit, dropBlankImportCells } from "@oxygen/shared/tables/file-import";
9
9
  import { statSync, readFileSync } from "node:fs";
10
10
  import { basename } from "node:path";
11
11
  import { emitQueueWaitStderrNote, enqueueImportFile, formatMebibytes, putImportFile, tryEnqueueStagedFileImport } from "./import-upload.js";
@@ -275,6 +275,7 @@ export type TablesScheduleSetOptions = JsonOptions & {
275
275
  maxCredits?: string;
276
276
  approved?: boolean;
277
277
  force?: boolean;
278
+ pacing?: string;
278
279
  };
279
280
  export type TablesPromoteOptions = JsonOptions & {
280
281
  object?: string;
@@ -91,6 +91,7 @@ export function registerAutomation({ tablesCommand, handleAsyncAction }) {
91
91
  .option("--max-credits <n>", "Credit ceiling PER scheduled refresh; required with --approved for paid columns.")
92
92
  .option("--approved", "Approve the recurring paid runs; required with --max-credits for paid columns.")
93
93
  .option("--force", "Re-run cells that already have values on every tick (full refresh instead of fill-missing).")
94
+ .option("--pacing <mode>", "deadline (default): each run is queued and finishes by its deadline, spread across the day; immediate: start the moment the schedule fires.")
94
95
  .option("--json", "Print a JSON envelope.")
95
96
  .action((table, column, options) => {
96
97
  const maxCredits = readPositiveNumber(options.maxCredits);
@@ -104,6 +105,7 @@ export function registerAutomation({ tablesCommand, handleAsyncAction }) {
104
105
  ...(maxCredits !== undefined ? { max_credits: maxCredits } : {}),
105
106
  ...(options.approved ? { approved: true } : {}),
106
107
  ...(options.force ? { force: true } : {}),
108
+ ...(readOption(options.pacing) ? { pacing: readOption(options.pacing) } : {}),
107
109
  },
108
110
  }));
109
111
  }))
@@ -116,7 +118,7 @@ export function registerAutomation({ tablesCommand, handleAsyncAction }) {
116
118
  return requestOxygen(`/api/cli/tables/schedule?${params.toString()}`);
117
119
  })))
118
120
  .addCommand(new Command("remove")
119
- .description("Remove a column's scheduled refresh (deletes the backing cron workflow; future scheduled runs stop).")
121
+ .description("Remove a column's scheduled refresh (deletes the backing cron workflow; future scheduled runs stop, and runs it already queued that have not started are canceled: held_runs_canceled).")
120
122
  .argument("<table>", "Table id or slug.")
121
123
  .argument("<column>", "Column key or id.")
122
124
  .option("--json", "Print a JSON envelope.")
@@ -1,4 +1,4 @@
1
- import { MAX_TABLE_ACTION_RUN_MAX_CONCURRENCY } from "@oxygen/shared/table-limits";
1
+ import { MAX_TABLE_ACTION_RUN_MAX_CONCURRENCY } from "@oxygen/shared/tables/limits";
2
2
  import { emitCliFailure, emitSuccess } from "../../cli-output.js";
3
3
  import { readPositiveInt } from "../../cli-values.js";
4
4
  import { requestOxygen } from "../../http-client.js";
@@ -1,7 +1,7 @@
1
1
  import { parseJsonArray } from "../../command-support.js";
2
2
  import { readOption } from "../../util.js";
3
3
  import { OxygenError } from "@oxygen/shared/cli-result";
4
- import { normalizeRowsFormat, inferRowsFileFormat, parseRowsFileBuffer } from "@oxygen/shared/file-import";
4
+ import { normalizeRowsFormat, inferRowsFileFormat, parseRowsFileBuffer } from "@oxygen/shared/tables/file-import";
5
5
  import { readFileSync } from "node:fs";
6
6
  import { resolve } from "node:path";
7
7
  export async function readDeleteRowIdsOption(options) {
@@ -263,9 +263,16 @@ interface GetSurfaceRunWaitParams {
263
263
  timeoutCode: string;
264
264
  timeoutMessage: string;
265
265
  timeoutDetailIdKey: string;
266
+ timeoutExtraDetails?: CliRunWaitConfig["timeoutExtraDetails"];
266
267
  }
267
268
  export declare function buildGetSurfaceRunWaitConfig(params: GetSurfaceRunWaitParams): CliRunWaitConfig;
268
269
  export declare function waitForTableActionRun(runId: string, options: TableRunsWaitOptions): Promise<Record<string, unknown>>;
270
+ /**
271
+ * A paused run never finishes on its own, so the wait times out on it. Say
272
+ * why it is paused and how to resume, as the MCP wait's text does; the wait's
273
+ * timeout and return are unchanged.
274
+ */
275
+ export declare function pausedTableRunWaitDetails(runId: string, latestRun: Record<string, unknown> | null, status: string | null): Record<string, unknown>;
269
276
  export type QueryColumnDescriptor = {
270
277
  id?: string;
271
278
  key: string;
@@ -447,6 +447,7 @@ export function buildGetSurfaceRunWaitConfig(params) {
447
447
  timeoutCode: params.timeoutCode,
448
448
  timeoutMessage: params.timeoutMessage,
449
449
  timeoutDetailIdKey: params.timeoutDetailIdKey,
450
+ ...(params.timeoutExtraDetails ? { timeoutExtraDetails: params.timeoutExtraDetails } : {}),
450
451
  };
451
452
  }
452
453
  export function waitForTableActionRun(runId, options) {
@@ -464,8 +465,32 @@ export function waitForTableActionRun(runId, options) {
464
465
  timeoutCode: "table_action_run_wait_timeout",
465
466
  timeoutMessage: "Timed out waiting for table action run to finish.",
466
467
  timeoutDetailIdKey: "action_run_id",
468
+ timeoutExtraDetails: (latestRun, status) => pausedTableRunWaitDetails(runId, latestRun, status),
467
469
  }));
468
470
  }
471
+ /**
472
+ * A paused run never finishes on its own, so the wait times out on it. Say
473
+ * why it is paused and how to resume, as the MCP wait's text does; the wait's
474
+ * timeout and return are unchanged.
475
+ */
476
+ export function pausedTableRunWaitDetails(runId, latestRun, status) {
477
+ if (status !== "paused" || !latestRun)
478
+ return {};
479
+ const resume = `oxygen table-runs resume ${runId}`;
480
+ const forCredits = readRecordString(latestRun, "recommended_action") === "top_up_then_resume";
481
+ const userMessage = readRecordString(latestRun, "user_message");
482
+ // Disconnecting an account frees credits only when some are held for one.
483
+ const creditPause = latestRun.credit_pause;
484
+ const heldForAccounts = typeof creditPause === "object" && creditPause !== null
485
+ && creditPause.credits_held_for_accounts === true;
486
+ return {
487
+ ...(userMessage ? { user_message: userMessage } : {}),
488
+ ...(forCredits ? { recommended_action: "top_up_then_resume" } : {}),
489
+ next_step: forCredits
490
+ ? `${heldForAccounts ? "Top up credits or disconnect an account" : "Top up credits"} in Billing, then run \`${resume}\`.`
491
+ : `Run \`${resume}\` to continue it.`,
492
+ };
493
+ }
469
494
  export function normalizeExportRowsFormat(value) {
470
495
  const normalized = value?.trim().toLowerCase() || "json";
471
496
  if (normalized === "json"
@@ -199,7 +199,7 @@ export function registerBillingFamily(program, handleAsyncAction, billingDocsUrl
199
199
  .option("--provider <provider>", "Filter by provider id. With --meter provider_seats, selects the seat provider: linkedin (default) or whatsapp.")
200
200
  .option("--source <source_id>", "Filter by source_id/provider operation.")
201
201
  .option("--source-id <source_id>", "Alias for --source.")
202
- .option("--run-id <run_id>", "Filter by run id recorded in ledger metadata. New settlements preserve the reserve's run id; historical settled charges can omit it. For those older runs, use `table-runs get <run>` (creditsUsed) or `table-runs items`.")
202
+ .option("--run-id <run_id>", "Filter by run id recorded in ledger metadata. New settlements preserve the reserve's run id; historical settled charges can omit it. For those older runs, use `table-runs get <run>` (creditsUsed); `table-runs items` lists per-item credits while the run keeps its items; where run history retention is on, settled items go 24 hours after the run ends.")
203
203
  .option("--nonzero", "Only include events that changed available or reserved credits.")
204
204
  .option("--workspace <id|slug>", "Only one workspace's spend on a plan that pays for several (credits meter).")
205
205
  .option("--group-by <key>", "workspace: credits spent per workspace on a pooled plan, in by_workspace, for the same filters (credits meter).")
@@ -227,7 +227,7 @@ export function registerBillingFamily(program, handleAsyncAction, billingDocsUrl
227
227
  .option("--provider <provider>", "Filter by provider id.")
228
228
  .option("--source <source_id>", "Filter by source_id/provider operation.")
229
229
  .option("--source-id <source_id>", "Alias for --source.")
230
- .option("--run-id <run_id>", "Filter by run id recorded in ledger metadata. New settlements preserve the reserve's run id; historical settled charges can omit it. For those older runs, use `table-runs get <run>` (creditsUsed) or `table-runs items`.")
230
+ .option("--run-id <run_id>", "Filter by run id recorded in ledger metadata. New settlements preserve the reserve's run id; historical settled charges can omit it. For those older runs, use `table-runs get <run>` (creditsUsed); `table-runs items` lists per-item credits while the run keeps its items; where run history retention is on, settled items go 24 hours after the run ends.")
231
231
  .option("--nonzero", "Only include events that changed available or reserved credits. Default for audit except BYOK filters.")
232
232
  .option("--json", "Print a JSON envelope.")
233
233
  .action(async (options) => {
@@ -1,4 +1,4 @@
1
- import { MAX_TABLE_ACTION_RUN_MAX_CONCURRENCY } from "@oxygen/shared/table-limits";
1
+ import { MAX_TABLE_ACTION_RUN_MAX_CONCURRENCY } from "@oxygen/shared/tables/limits";
2
2
  import { parseKeyValuePairs, parseJsonObject, readNonNegativeInt, readPositiveInt, readRecordString } from "../cli-values.js";
3
3
  import { readColumnDecisionFlags } from "../column-decision-options.js";
4
4
  import { formatAiPromptPreviewNotice, formatColumnReferenceNotices, formatEnrichmentInputMappingNotice } from "../column-run-notices.js";
@@ -1,4 +1,4 @@
1
- import { MAX_TABLE_ACTION_RUN_MAX_CONCURRENCY } from "@oxygen/shared/table-limits";
1
+ import { MAX_TABLE_ACTION_RUN_MAX_CONCURRENCY } from "@oxygen/shared/tables/limits";
2
2
  import { readJsonObjectOption, readPositiveInt } from "../cli-values.js";
3
3
  import { readCsvOption, readFilterSelectionOption, readPositiveNumber } from "../command-support.js";
4
4
  import { requestOxygen } from "../http-client.js";
@@ -5,7 +5,7 @@ import { requestOxygen } from "../http-client.js";
5
5
  import { readOption } from "../util.js";
6
6
  import { withDeliverabilityEvidenceCommands } from "../deliverability-evidence-commands.js";
7
7
  import { OxygenError } from "@oxygen/shared/cli-result";
8
- import { inferRowsFileFormat, parseXlsxWorkbookBuffer } from "@oxygen/shared/file-import";
8
+ import { inferRowsFileFormat, parseXlsxWorkbookBuffer } from "@oxygen/shared/tables/file-import";
9
9
  import { MAILBOX_IMPORT_FILE_MAX_BYTES as SHARED_MAILBOX_IMPORT_FILE_MAX_BYTES, MAILBOX_IMPORT_ROW_LIMIT as SHARED_MAILBOX_IMPORT_ROW_LIMIT, normalizeMailboxImportFile as normalizeSharedMailboxImportFile, normalizeMailboxImportVendor as normalizeSharedMailboxImportVendor, normalizeMailboxWorkbookRows, parseMailboxImportText, summarizeMailboxImportValidation as summarizeSharedMailboxImportValidation } from "@oxygen/shared/mailbox-import";
10
10
  import { Command, Option } from "commander";
11
11
  import { formatMailboxFleetHealth, formatMailboxRoster } from "../mailbox-fleet-output.js";
@@ -30,12 +30,12 @@ export function registerObservabilityFamily(program, handleAsyncAction) {
30
30
  .addCommand(new Command("events")
31
31
  .description("List recent redacted OXYGEN operation events and failures. Customer support triage and support-event history live in Plain Inbox.")
32
32
  // Keep in sync with OBSERVABILITY_STATUS_FILTERS in
33
- // apps/web/src/lib/observability.ts and the MCP tool enum in
33
+ // apps/web/src/lib/observability/observability.ts and the MCP tool enum in
34
34
  // packages/mcp-server/src/tools/observability.ts. The API rejects any
35
35
  // other value with invalid_request so a typo fails loudly.
36
36
  .option("--status <status>", "Filter by success, error, completed, failed, completed_with_errors, queued, skipped, or blocked.")
37
37
  // Keep --type / --source values in sync with OBSERVABILITY_TYPE_FILTERS /
38
- // OBSERVABILITY_SOURCE_FILTERS in apps/web/src/lib/observability.ts and
38
+ // OBSERVABILITY_SOURCE_FILTERS in apps/web/src/lib/observability/observability.ts and
39
39
  // the MCP tool enums. The API rejects any other value with
40
40
  // invalid_request so a typo fails loudly.
41
41
  .option("--type <type>", "Filter by operation or provider_request.")
@@ -72,7 +72,7 @@ export function registerObservabilityFamily(program, handleAsyncAction) {
72
72
  .addCommand(new Command("runs")
73
73
  .description("List active and failed runs across workflows and table action/ingestion runs — the cross-primitive runs lens. Read-only; each failed item carries the command that resolves it.")
74
74
  // Keep --status / --source values in sync with OBSERVABILITY_CONSOLE_STATES
75
- // and OBSERVABILITY_RUN_SOURCES in apps/web/src/lib/observability-console.ts
75
+ // and OBSERVABILITY_RUN_SOURCES in apps/web/src/lib/observability/console.ts
76
76
  // and the MCP tool enums. The API rejects any other value with
77
77
  // invalid_request so a typo fails loudly.
78
78
  .option("--status <statuses>", "Comma-separated normalized states: running, queued, waiting_approval, failed, completed, canceled. Defaults to active + failed.")
@@ -101,7 +101,7 @@ export function registerObservabilityFamily(program, handleAsyncAction) {
101
101
  .addCommand(new Command("approvals")
102
102
  .description("List everything waiting for a human decision across workflows, publishing, message reviews, inbox reply drafts, and collaboration approval requests — the cross-primitive approvals inbox. Read-only: each item includes the exact command to resolve it and a web link to decide.")
103
103
  // Keep --source values in sync with OBSERVABILITY_APPROVAL_SOURCES in
104
- // apps/web/src/lib/observability-console.ts and the MCP tool enum. The API
104
+ // apps/web/src/lib/observability/console.ts and the MCP tool enum. The API
105
105
  // rejects any other value with invalid_request so a typo fails loudly.
106
106
  .option("--source <sources>", "Comma-separated sources: workflow, publishing, message_review, inbox_draft, collab_request.")
107
107
  .option("--limit <n>", "Maximum items per source (default 25, max 100). Counts reflect the returned page only.")
@@ -1,4 +1,4 @@
1
- import { MAX_TABLE_ACTION_RUN_MAX_CONCURRENCY } from "@oxygen/shared/table-limits";
1
+ import { MAX_TABLE_ACTION_RUN_MAX_CONCURRENCY } from "@oxygen/shared/tables/limits";
2
2
  import { parseJsonObject, readPositiveInt } from "../cli-values.js";
3
3
  import { formatRows, normalizeExportRowsFormat, parseJsonArray, readCsvOption, readFilterSelectionOption, readFormulaValuesOption, readPositiveNumber, tableRunsListPath, waitForTableActionRun } from "../command-support.js";
4
4
  import { requestOxygen } from "../http-client.js";
@@ -228,6 +228,16 @@ export function registerTableRunsFamily(program, handleAsyncAction) {
228
228
  method: "POST",
229
229
  body: {},
230
230
  }));
231
+ }))
232
+ .addCommand(new Command("run-now")
233
+ .description("Start a deadline-queued scheduled run now instead of waiting for its turn (scheduled runs are queued to finish by their deadline, usually 24 hours after the schedule fired). No effect on a run that already started.")
234
+ .argument("<run_id>", "Table action run UUID.")
235
+ .option("--json", "Print a JSON envelope.")
236
+ .action(async (runId, options) => {
237
+ await handleAsyncAction("table-runs run-now", options, () => requestOxygen(`/api/cli/table-action-runs/${encodeURIComponent(runId)}/run-now`, {
238
+ method: "POST",
239
+ body: {},
240
+ }));
231
241
  }))
232
242
  .addCommand(new Command("effect-unknown")
233
243
  .description("List the items of a run whose external write was dispatched but never confirmed. Oxygen will not retry them on its own: verify each destination, then record what you found with `oxygen cells resolve`.")
@@ -2,8 +2,8 @@ import { splitCommaList } from "../command-support.js";
2
2
  import { requestOxygen } from "../http-client.js";
3
3
  import { readOption } from "../util.js";
4
4
  import { OxygenError } from "@oxygen/shared/cli-result";
5
- import { TAG_COLORS } from "@oxygen/shared/select-options";
6
- import { TAG_KINDS_PROSE } from "@oxygen/shared/tags";
5
+ import { TAG_COLORS } from "@oxygen/shared/tables/select-options";
6
+ import { TAG_KINDS_PROSE } from "@oxygen/shared/tags/tags";
7
7
  import { Command } from "commander";
8
8
  /**
9
9
  * Build the registry patch body. An omitted field keeps its stored value; an
@@ -374,16 +374,37 @@ function scaffoldWorkflowProject(options) {
374
374
  ? scaffoldRecipeProject(options)
375
375
  : scaffoldGraphProject(options);
376
376
  }
377
+ const RELATIVE_DTS_SPECIFIER = /(?:\bfrom\s+|\bimport\(\s*)["'](\.{1,2}\/[^"']+)\.js["']/g;
378
+ /**
379
+ * The package's index.d.ts plus every declaration file it reaches through relative
380
+ * specifiers, as paths relative to dist/. An entry that re-exports its types from
381
+ * sibling modules is only typed when those siblings are vendored next to it.
382
+ */
377
383
  function readBundledSdkDts(pkg) {
378
384
  for (const base of RECIPE_ESBUILD_NODE_PATHS) {
379
- const candidate = join(base, "@oxygen", pkg, "dist", "index.d.ts");
380
- if (existsSync(candidate)) {
381
- try {
382
- return readFileSync(candidate, "utf8");
383
- }
384
- catch {
385
- // Unreadable copy — fall through to the next node path.
385
+ const dist = join(base, "@oxygen", pkg, "dist");
386
+ if (!existsSync(join(dist, "index.d.ts")))
387
+ continue;
388
+ try {
389
+ const files = [];
390
+ const queue = ["index.d.ts"];
391
+ const seen = new Set(queue);
392
+ while (queue.length) {
393
+ const file = queue.shift();
394
+ const content = readFileSync(join(dist, file), "utf8");
395
+ files.push({ file, content });
396
+ for (const match of content.matchAll(RELATIVE_DTS_SPECIFIER)) {
397
+ const next = join(dirname(file), `${match[1]}.d.ts`).replaceAll("\\", "/");
398
+ if (next.startsWith("..") || seen.has(next) || !existsSync(join(dist, next)))
399
+ continue;
400
+ seen.add(next);
401
+ queue.push(next);
402
+ }
386
403
  }
404
+ return files;
405
+ }
406
+ catch {
407
+ // Unreadable copy — fall through to the next node path.
387
408
  }
388
409
  }
389
410
  return null;
@@ -463,8 +484,8 @@ function scaffoldRecipeProject(options) {
463
484
  const targets = [
464
485
  { path: join(directory, recipeFileName), content: renderStarterRecipe(recipeId, recipeName) },
465
486
  { path: join(directory, "tsconfig.json"), content: renderRecipeTsconfig() },
466
- { path: join(directory, RECIPE_TYPES_VENDOR_DIR, "@oxygen", "recipe-sdk", "index.d.ts"), content: recipeDts },
467
- { path: join(directory, RECIPE_TYPES_VENDOR_DIR, "@oxygen", "workflows", "index.d.ts"), content: workflowsDts },
487
+ ...recipeDts.map(({ file, content }) => ({ path: join(directory, RECIPE_TYPES_VENDOR_DIR, "@oxygen", "recipe-sdk", file), content })),
488
+ ...workflowsDts.map(({ file, content }) => ({ path: join(directory, RECIPE_TYPES_VENDOR_DIR, "@oxygen", "workflows", file), content })),
468
489
  ];
469
490
  const filesWritten = [];
470
491
  const filesSkipped = [];
@@ -1597,7 +1618,7 @@ Full trigger schema: oxygen workflows schema --subject trigger --json
1597
1618
  }
1598
1619
  }))
1599
1620
  .addCommand(new Command("disable")
1600
- .description("Disable one or more workflow automations and their current triggers. Records who disabled it, from where, and why — the workspace sees it on the workflow. Pass several workflows to disable them in one bulk call.")
1621
+ .description("Disable one or more workflow automations and their current triggers. Records who disabled it, from where, and why — the workspace sees it on the workflow. Disabling a Table schedule also cancels the runs it queued that have not started. Pass several workflows to disable them in one bulk call.")
1601
1622
  .argument("<workflows...>", "One or more workflow ids, slugs, or names.")
1602
1623
  .option("--reason <text>", "Why you are disabling it. Recorded on the workflow and shown to the workspace.")
1603
1624
  .option("--json", "Print a JSON envelope.")
@@ -1,6 +1,6 @@
1
1
  import { readFileSync } from "node:fs";
2
2
  import { resolve } from "node:path";
3
- import { DELIVERABILITY_CHECK_LIST_FIELDS, DELIVERABILITY_EVIDENCE_FIELDS, DELIVERABILITY_OBSERVATION_LIST_FIELDS, DELIVERABILITY_SURFACE_BUCKETS, DELIVERABILITY_SURFACE_CHECK_KINDS, DELIVERABILITY_SURFACE_FINDING_STATUSES, DELIVERABILITY_SURFACE_FOLDERS, DELIVERABILITY_SURFACE_MAX_LIMIT, DELIVERABILITY_SURFACE_RECEIVER_PROVIDERS, DELIVERABILITY_SURFACE_RUN_STATUSES, DELIVERABILITY_SURFACE_SOURCES, DELIVERABILITY_SURFACE_SUBJECT_TYPES, deliverabilitySurfaceQuery, } from "@oxygen/shared/deliverability-surface";
3
+ import { DELIVERABILITY_CHECK_LIST_FIELDS, DELIVERABILITY_EVIDENCE_FIELDS, DELIVERABILITY_OBSERVATION_LIST_FIELDS, DELIVERABILITY_SURFACE_BUCKETS, DELIVERABILITY_SURFACE_CHECK_KINDS, DELIVERABILITY_SURFACE_FINDING_STATUSES, DELIVERABILITY_SURFACE_FOLDERS, DELIVERABILITY_SURFACE_MAX_LIMIT, DELIVERABILITY_SURFACE_RECEIVER_PROVIDERS, DELIVERABILITY_SURFACE_RUN_STATUSES, DELIVERABILITY_SURFACE_SOURCES, DELIVERABILITY_SURFACE_SUBJECT_TYPES, deliverabilitySurfaceQuery, } from "@oxygen/shared/mailboxes/deliverability-surface";
4
4
  import { Command, Option } from "commander";
5
5
  import { requestOxygen } from "./http-client.js";
6
6
  const WINDOW_HELP = "ISO 8601 time or a relative window such as 7d or 24h.";
@@ -1,4 +1,4 @@
1
- import { type GeoExportPagination } from "@oxygen/shared/geo";
1
+ import { type GeoExportPagination } from "@oxygen/shared/geo/geo";
2
2
  import { type StoredCredentials } from "./credentials.js";
3
3
  import { type CliEndpoint } from "./runtime.js";
4
4
  type RequestOptions = {
@@ -1,4 +1,4 @@
1
- import { readGeoExportPagination } from "@oxygen/shared/geo";
1
+ import { readGeoExportPagination } from "@oxygen/shared/geo/geo";
2
2
  import { isCliResult, readEnvelopeCompatibility, vercelProtectionBypassHeaders, withRetryAfterDetails, } from "@oxygen/shared/cli-envelope";
3
3
  import { OxygenError } from "@oxygen/shared/cli-result";
4
4
  import { isVersionGreater, parseSemver } from "@oxygen/shared/semver";
@@ -1,4 +1,4 @@
1
- import { type RowsFileFormat } from "@oxygen/shared/file-import";
1
+ import { type RowsFileFormat } from "@oxygen/shared/tables/file-import";
2
2
  /**
3
3
  * Large-file imports (decision F.8, 2026-09-27: up to 5 GiB on the largest plans).
4
4
  *
@@ -1,7 +1,7 @@
1
1
  import { createHash } from "node:crypto";
2
2
  import { createReadStream } from "node:fs";
3
3
  import { Readable } from "node:stream";
4
- import { iterateRowsFileStreamBatches, } from "@oxygen/shared/file-import";
4
+ import { iterateRowsFileStreamBatches, } from "@oxygen/shared/tables/file-import";
5
5
  /**
6
6
  * Large-file imports (decision F.8, 2026-09-27: up to 5 GiB on the largest plans).
7
7
  *
@@ -0,0 +1,13 @@
1
+ /**
2
+ * One cross-row formula function (`novelty_score`, ...). Each lives in its own
3
+ * `cross-row-functions/<name>.ts`, exporting `crossRowFunction`, and is loaded
4
+ * through `cross-row-functions.generated.ts` (scripts/codegen/
5
+ * formula-cross-row-functions.mjs), so editing one does not reach every host
6
+ * that evaluates a formula. The evaluator keeps the host-facing contract:
7
+ * arity, the column-key argument and corpus availability.
8
+ */
9
+ export type FormulaCrossRowFunction = {
10
+ /** Compute the row's value from its own cell and the column's corpus. */
11
+ evaluate(value: unknown, corpus: readonly string[]): unknown;
12
+ };
13
+ export type FormulaCrossRowFunctionLoaders = Record<string, () => Promise<FormulaCrossRowFunction>>;
@@ -1,2 +1,4 @@
1
+ import type { FormulaCrossRowFunction } from "../cross-row-function.js";
2
+ export declare const crossRowFunction: FormulaCrossRowFunction;
1
3
  /** Score a value against a supplied column corpus, excluding one exact self row. */
2
4
  export declare function evaluateNoveltyScore(value: unknown, corpus: readonly string[]): number | null;
@@ -1,6 +1,7 @@
1
1
  // Corpus scoring is independent of scope resolution, expression dispatch and
2
2
  // corpus availability errors. The evaluator owns those host-facing contracts.
3
3
  import { isRecord } from "../coerce.js";
4
+ export const crossRowFunction = { evaluate: evaluateNoveltyScore };
4
5
  /** Score a value against a supplied column corpus, excluding one exact self row. */
5
6
  export function evaluateNoveltyScore(value, corpus) {
6
7
  const cellValue = stringifyNoveltyValue(value);
@@ -0,0 +1,3 @@
1
+ export declare const FORMULA_CROSS_ROW_FUNCTION_LOADERS: {
2
+ novelty_score: () => Promise<import("./cross-row-function.js").FormulaCrossRowFunction>;
3
+ };
@@ -0,0 +1,3 @@
1
+ export const FORMULA_CROSS_ROW_FUNCTION_LOADERS = {
2
+ novelty_score: async () => (await import("./cross-row-functions/novelty-score.js")).crossRowFunction,
3
+ };
@@ -26,11 +26,22 @@ export type FormulaScope = {
26
26
  * Omit it and the strict `resolve` is used, with its throw absorbed.
27
27
  */
28
28
  resolveOptional?(identifier: string): unknown;
29
- /** Cross-row corpus, required by `novelty_score`. */
29
+ /**
30
+ * Cross-row corpus, required by `novelty_score`. A host that supplies one
31
+ * awaits `loadFormulaCrossRowFunctions` before evaluating.
32
+ */
30
33
  corpus?: FormulaCrossRowCorpus;
31
34
  /** The key being computed — carried for self-reference guards. */
32
35
  selfKey?: string;
33
36
  };
37
+ /**
38
+ * Load cross-row function implementations (`novelty_score`, ...) so evaluation
39
+ * can stay synchronous. A host that supplies `FormulaScope.corpus` awaits this
40
+ * once, with the names `analyzeFormulaCrossRowDependencies` returned, before
41
+ * evaluating. Omit `names` to load every cross-row function; unknown names are
42
+ * left for evaluation to reject.
43
+ */
44
+ export declare function loadFormulaCrossRowFunctions(names?: Iterable<string>): Promise<void>;
34
45
  export declare function evaluateFormulaInScope(expression: string, scope: FormulaScope, options?: ParseOptions): unknown;
35
46
  export declare function evaluateFormulaAst(node: FormulaAst, scope: FormulaScope): unknown;
36
47
  /** Coerce a formula result to the boolean gate decision used for run conditions. */
@@ -1,7 +1,28 @@
1
1
  import { OxygenError } from "@oxygen/shared/cli-result";
2
- import { evaluateNoveltyScore } from "./refactor-internals/novelty-score.js";
2
+ import { FORMULA_CROSS_ROW_FUNCTION_LOADERS } from "./cross-row-functions.generated.js";
3
3
  import { CROSS_ROW_FUNCTIONS, parseFormulaExpression, } from "./expression.js";
4
4
  import { FORMULA_FUNCTION_REGISTRY, checkFormulaFunctionArity, compareFormulaValues, unsupportedFormulaFunctionError, formulaExpressionError, formulaValuesEqual, readFormulaNumber, toFormulaBoolean, } from "./formula-functions.js";
5
+ const loadedCrossRowFunctions = new Map();
6
+ /**
7
+ * Load cross-row function implementations (`novelty_score`, ...) so evaluation
8
+ * can stay synchronous. A host that supplies `FormulaScope.corpus` awaits this
9
+ * once, with the names `analyzeFormulaCrossRowDependencies` returned, before
10
+ * evaluating. Omit `names` to load every cross-row function; unknown names are
11
+ * left for evaluation to reject.
12
+ */
13
+ export async function loadFormulaCrossRowFunctions(names) {
14
+ const wanted = names
15
+ ? [...names].map((name) => name.toLowerCase())
16
+ : Object.keys(FORMULA_CROSS_ROW_FUNCTION_LOADERS);
17
+ await Promise.all(wanted.map(async (name) => {
18
+ if (loadedCrossRowFunctions.has(name) || !isCrossRowFunctionName(name))
19
+ return;
20
+ loadedCrossRowFunctions.set(name, await FORMULA_CROSS_ROW_FUNCTION_LOADERS[name]());
21
+ }));
22
+ }
23
+ function isCrossRowFunctionName(name) {
24
+ return Object.hasOwn(FORMULA_CROSS_ROW_FUNCTION_LOADERS, name);
25
+ }
5
26
  export function evaluateFormulaInScope(expression, scope, options = {}) {
6
27
  return evaluateFormulaAst(parseFormulaExpression(expression, options), scope);
7
28
  }
@@ -54,7 +75,7 @@ export function isTruthyFormulaResult(value) {
54
75
  return value !== null && value !== undefined;
55
76
  }
56
77
  function evaluateCrossRowFunction(input) {
57
- if (input.name !== "novelty_score") {
78
+ if (!isCrossRowFunctionName(input.name)) {
58
79
  throw formulaExpressionError("Unsupported cross-row formula function.", {
59
80
  function: input.name,
60
81
  });
@@ -84,7 +105,11 @@ function evaluateCrossRowFunction(input) {
84
105
  exitCode: 1,
85
106
  });
86
107
  }
87
- return evaluateNoveltyScore(readOptionalValue(input.scope, targetColumnKey), corpus);
108
+ const implementation = loadedCrossRowFunctions.get(input.name);
109
+ if (!implementation) {
110
+ throw new OxygenError("formula_cross_row_function_not_loaded", `${input.name} was evaluated before its implementation loaded. The host must await loadFormulaCrossRowFunctions() before evaluating with a corpus.`, { details: { function: input.name }, exitCode: 1 });
111
+ }
112
+ return implementation.evaluate(readOptionalValue(input.scope, targetColumnKey), corpus);
88
113
  }
89
114
  /**
90
115
  * Cross-row functions take a column key, not an in-scope identifier: a column
@@ -80,6 +80,8 @@ export type RecipeColumnsApi = {
80
80
  maxConcurrency?: number;
81
81
  maxCredits?: number;
82
82
  max_credits?: number;
83
+ /** "immediate" starts a scheduled run at once; "deadline" queues it to finish within 24 hours. */
84
+ pacing?: "deadline" | "immediate";
83
85
  key?: string;
84
86
  }) => Promise<T>;
85
87
  };
@@ -1,4 +1,4 @@
1
- import type { GuidedActivationRoutine } from "./guided-activation.js";
1
+ import type { GuidedActivationRoutine } from "./onboarding/guided-activation.js";
2
2
  import { type WorkspaceEventCatalogEntry } from "./workspace-event-catalog.js";
3
3
  import { type AgentSessionSchedule } from "./agent-session-schedule.js";
4
4
  export type AgentSessionStatus = "draft" | "active" | "paused" | "budget_wait" | "completed" | "archived";
@@ -1,5 +1,5 @@
1
1
  import { agentsEnabled, agentsEnabledIn } from "./agents-enabled.js";
2
- import { guidedActivationEnabled } from "./guided-activation.js";
2
+ import { guidedActivationEnabled } from "./onboarding/guided-activation.js";
3
3
  import { networkMiningEnabled } from "./network-mining.js";
4
4
  import { validateContract } from "./contracts/schema.js";
5
5
  import { GUIDED_ACTIVATION_SCAN_POLICY_CONTRACT } from "./contracts/guided-activation.js";
@@ -1,5 +1,5 @@
1
1
  import type { CapabilityMcpCall, CapabilityRouteCard } from "./capability-discovery-types.js";
2
- import { type EnrichmentIntentTaxonomyEntry } from "./enrichment-intents.js";
2
+ import { type EnrichmentIntentTaxonomyEntry } from "./tables/enrichment-intents.js";
3
3
  import { type RecipePrimitive } from "./recipes.js";
4
4
  import { type SkillPlayMatch } from "./skill-play-routing.js";
5
5
  export { matchSkillPlay, SKILL_PLAY_TRIGGERS, type SkillPlayMatch } from "./skill-play-routing.js";
@@ -4,9 +4,9 @@ import { normalizeIntent } from "./capability-intents/normalize.js";
4
4
  import { withRecordBrief } from "./capability-intents/records.js";
5
5
  import { isCompanySourcingIntent, sourcingPlaybookFor } from "./capability-intents/sourcing-and-provider-tools.js";
6
6
  import { CAPABILITY_ROUTE_DEFINITIONS } from "./capability-routes/index.js";
7
- import { findEnrichmentIntentByAlias } from "./enrichment-intents.js";
7
+ import { findEnrichmentIntentByAlias } from "./tables/enrichment-intents.js";
8
8
  import { networkMiningEnabled } from "./network-mining.js";
9
- import { nativeChatEnabled, withNativeChatDiscovery } from "./native-chat-discovery.js";
9
+ import { nativeChatEnabled, withNativeChatDiscovery } from "./support/native-chat-discovery.js";
10
10
  import { RECIPE_PRIMITIVES } from "./recipes.js";
11
11
  import { matchSkillPlay } from "./skill-play-routing.js";
12
12
  export { matchSkillPlay, SKILL_PLAY_TRIGGERS } from "./skill-play-routing.js";