@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
package/dist/update.d.ts CHANGED
@@ -1,62 +1,9 @@
1
- import { spawnSync } from "node:child_process";
1
+ import { type CliInstallResult, type CliInstallRuntime, type UpdateOptions } from "./cli-install.js";
2
2
  import { type AutomaticSkillsInstallResult, type ExecFileSyncLike, type SkillsSourceRuntime } from "./skills.js";
3
- type SpawnResult = ReturnType<typeof spawnSync>;
4
- type SpawnSyncLike = (command: string, args: string[], options: {
5
- encoding: BufferEncoding;
6
- env: NodeJS.ProcessEnv;
7
- stdio: "inherit" | ["ignore", "pipe", "pipe"];
8
- windowsHide: boolean;
9
- windowsVerbatimArguments?: boolean;
10
- }) => SpawnResult;
11
- export type UpdateOptions = {
12
- json?: boolean;
13
- package?: string;
14
- dryRun?: boolean;
15
- /**
16
- * Leave the skills refresh to the newly installed binary. An automatic update
17
- * runs inside the OLD process, which the API may be refusing outright — its
18
- * own skills request would be rejected for the very version being replaced.
19
- */
20
- skipSkillsInstall?: boolean;
21
- };
22
- type UpdateResult = {
23
- current_version: string;
24
- /** Read back from the installed package after npm finished; null when unknown. */
25
- installed_version?: string | null;
26
- package: string;
27
- command: string;
28
- dry_run: boolean;
29
- updated: boolean;
3
+ export { detectCliInstall, detectCliInstallPrefixFromPath, readInstalledCliVersion, resolveNpmExecutables, type CliInstall, type UpdateOptions, } from "./cli-install.js";
4
+ type UpdateResult = CliInstallResult & {
30
5
  skills_install: AutomaticSkillsInstallResult;
31
6
  };
32
- export declare function updateCli(options: UpdateOptions, runtime?: {
33
- env?: NodeJS.ProcessEnv;
34
- platform?: NodeJS.Platform;
35
- argv?: readonly string[];
36
- modulePath?: string;
37
- spawnSync?: SpawnSyncLike;
7
+ export declare function updateCli(options: UpdateOptions, runtime?: CliInstallRuntime & {
38
8
  execFileSync?: ExecFileSyncLike;
39
9
  } & SkillsSourceRuntime): Promise<UpdateResult>;
40
- export type CliInstall =
41
- /** `npm install -g`: npm can replace it in place with `--prefix`. */
42
- {
43
- kind: "global";
44
- prefix: string;
45
- packageDir: string;
46
- }
47
- /** A project's own node_modules (npx, `npm install` in a directory, a pinned capsule). */
48
- | {
49
- kind: "local";
50
- projectDir: string;
51
- packageDir: string;
52
- }
53
- /** Running from a source checkout. */
54
- | {
55
- kind: "source";
56
- };
57
- export declare function detectCliInstall(modulePath: string): CliInstall;
58
- export declare function detectCliInstallPrefixFromPath(modulePath: string): string | null;
59
- /** The version npm actually left on disk for the running package. */
60
- export declare function readInstalledCliVersion(packageDir: string): string | null;
61
- export declare function resolveNpmExecutables(platform?: NodeJS.Platform): string[];
62
- export {};
package/dist/update.js CHANGED
@@ -1,167 +1,21 @@
1
- import { spawnSync } from "node:child_process";
2
- import { readFileSync } from "node:fs";
3
- import { join } from "node:path";
4
- import { fileURLToPath } from "node:url";
5
- import { OxygenError } from "@oxygen/shared/cli-result";
6
- import { OXYGEN_VERSION } from "@oxygen/shared/version";
1
+ import { installCliPackage, } from "./cli-install.js";
7
2
  import { runAutomaticSkillsInstall, skippedAutomaticSkillsInstall, } from "./skills.js";
8
- import { resolveCliBinaryName } from "./runtime.js";
9
- import { readOption } from "./util.js";
10
- import { quoteWindowsCmdArg } from "./windows-shim.js";
11
- const DEFAULT_CLI_PACKAGE_SPEC = "@oxygen-agent/cli@latest";
12
- // skipcq: JS-R1005 — handles platform/install-mode/dry-run combinations end-to-end
3
+ export { detectCliInstall, detectCliInstallPrefixFromPath, readInstalledCliVersion, resolveNpmExecutables, } from "./cli-install.js";
13
4
  export async function updateCli(options, runtime = {}) {
14
- const env = runtime.env ?? process.env;
15
- const platform = runtime.platform ?? process.platform;
16
- const spawn = runtime.spawnSync ?? spawnSync;
17
- const packageSpec = readOption(options.package) ?? DEFAULT_CLI_PACKAGE_SPEC;
18
- const modulePath = runtime.modulePath ?? fileURLToPath(import.meta.url);
19
- const install = detectCliInstall(modulePath);
20
- const prefix = install.kind === "global" ? install.prefix : null;
21
- const args = prefix
22
- ? ["install", "-g", "--prefix", prefix, packageSpec]
23
- : ["install", "-g", packageSpec];
24
- // The command string is for human display (printed in dry-run / success
25
- // output). Quote args that contain shell-significant characters so a
26
- // copy-paste of the line works on install prefixes with spaces.
27
- const command = ["npm", ...args].map(quoteForDisplay).join(" ");
28
- if (!options.dryRun)
29
- assertUpdatableInstall(install, env, runtime.argv ?? process.argv);
30
- if (options.dryRun) {
31
- return {
32
- current_version: OXYGEN_VERSION,
33
- package: packageSpec,
34
- command,
35
- dry_run: true,
36
- updated: false,
37
- skills_install: skippedAutomaticSkillsInstall("dry_run"),
38
- };
5
+ const installed = await installCliPackage(options, runtime);
6
+ if (installed.dry_run) {
7
+ return { ...installed, skills_install: skippedAutomaticSkillsInstall("dry_run") };
39
8
  }
40
- const attemptedExecutables = [];
41
- let lastResult = null;
42
- for (const invocation of resolveNpmInvocations(args, platform, env)) {
43
- attemptedExecutables.push(invocation.label);
44
- const result = spawn(invocation.executable, invocation.args, {
45
- encoding: "utf8",
46
- env,
47
- stdio: options.json ? ["ignore", "pipe", "pipe"] : "inherit",
48
- windowsHide: true,
49
- // We pre-quote args for `cmd /d /s /c`; Node must not re-escape them
50
- // or the install prefix path ends up with literal `"` characters
51
- // baked in (see scripts/ci/cli-package-smoke.mjs for the same fix).
52
- ...(platform === "win32" ? { windowsVerbatimArguments: true } : {}),
53
- });
54
- lastResult = result;
55
- if (result.error && isMissingExecutableError(result.error))
56
- continue;
57
- if (!result.error && result.status === 0) {
58
- return {
59
- current_version: OXYGEN_VERSION,
60
- installed_version: install.kind === "global" ? readInstalledCliVersion(install.packageDir) : null,
61
- package: packageSpec,
62
- command,
63
- dry_run: false,
64
- updated: true,
65
- skills_install: options.skipSkillsInstall
66
- ? skippedAutomaticSkillsInstall("deferred_to_updated_cli")
67
- : await runAutomaticSkillsInstall({
68
- env,
69
- platform,
70
- ...(runtime.credentials !== undefined ? { credentials: runtime.credentials } : {}),
71
- ...(runtime.fetch ? { fetch: runtime.fetch } : {}),
72
- ...(runtime.execFileSync ? { execFileSync: runtime.execFileSync } : {}),
73
- }),
74
- };
75
- }
76
- break;
77
- }
78
- const result = lastResult;
79
- throw new OxygenError("cli_update_failed", "Unable to update the Oxygen CLI.", {
80
- details: {
81
- command,
82
- package: packageSpec,
83
- exit_code: result?.status ?? null,
84
- reason: result?.error instanceof Error ? result.error.message : null,
85
- stderr: typeof result?.stderr === "string" && result.stderr.trim() ? result.stderr.trim().slice(0, 4000) : null,
86
- attempted_executables: attemptedExecutables,
87
- },
88
- exitCode: 1,
89
- });
90
- }
91
- export function detectCliInstall(modulePath) {
92
- const normalizedPath = modulePath.replace(/\\/g, "/");
93
- const markers = [
94
- "/node_modules/@oxygen-agent/cli/dist/",
95
- "/node_modules/@oxygen/cli/dist/",
96
- ];
97
- for (const marker of markers) {
98
- const markerIndex = normalizedPath.lastIndexOf(marker);
99
- if (markerIndex === -1)
100
- continue;
101
- const packageParent = normalizedPath.slice(0, markerIndex);
102
- const packageDir = normalizedPath.slice(0, markerIndex + marker.length - "/dist/".length);
103
- if (packageParent.endsWith("/lib")) {
104
- return { kind: "global", prefix: packageParent.slice(0, -"/lib".length), packageDir };
105
- }
106
- // npm's Windows global layout has no lib/: <prefix>\node_modules.
107
- if (/^[A-Za-z]:\//.test(normalizedPath))
108
- return { kind: "global", prefix: packageParent, packageDir };
109
- // Anywhere else, `npm install -g --prefix <dir>` writes <dir>/lib/node_modules — a
110
- // different tree from the one running — and reports success while nothing changed.
111
- return { kind: "local", projectDir: packageParent, packageDir };
112
- }
113
- return { kind: "source" };
114
- }
115
- export function detectCliInstallPrefixFromPath(modulePath) {
116
- const install = detectCliInstall(modulePath);
117
- return install.kind === "global" ? install.prefix : null;
118
- }
119
- /** The version npm actually left on disk for the running package. */
120
- export function readInstalledCliVersion(packageDir) {
121
- try {
122
- const parsed = JSON.parse(readFileSync(join(packageDir, "package.json"), "utf8"));
123
- return typeof parsed.version === "string" ? parsed.version : null;
124
- }
125
- catch {
126
- return null;
127
- }
128
- }
129
- function assertUpdatableInstall(install, env, argv) {
130
- if (resolveCliBinaryName(env, argv) === "oxygen-dev") {
131
- throw new OxygenError("cli_update_unsupported_install", "oxygen-dev is built from the dev branch, not installed from npm. "
132
- + "Rebuild it with `npm run install-dev-cli` from the latest dev checkout.", { details: { install: "dev_build", update_command: "npm run install-dev-cli" }, exitCode: 1 });
133
- }
134
- if (install.kind === "local") {
135
- throw new OxygenError("cli_update_unsupported_install", `This Oxygen CLI runs from a project-local install in ${install.projectDir}, which \`oxygen update\` cannot replace. `
136
- + "Run `npm install @oxygen-agent/cli@latest` in that directory, or install globally with "
137
- + "`npm install -g @oxygen-agent/cli`.", {
138
- details: {
139
- install: "local",
140
- install_dir: install.projectDir,
141
- update_command: "npm install @oxygen-agent/cli@latest",
142
- },
143
- exitCode: 1,
144
- });
145
- }
146
- }
147
- export function resolveNpmExecutables(platform = process.platform) {
148
- return platform === "win32" ? ["cmd.exe"] : ["npm"];
149
- }
150
- function isMissingExecutableError(error) {
151
- return error.code === "ENOENT";
152
- }
153
- function resolveNpmInvocations(args, platform, env) {
154
- if (platform !== "win32")
155
- return [{ executable: "npm", args, label: "npm" }];
156
- const shell = env.ComSpec?.trim() || "cmd.exe";
157
- return [{
158
- executable: shell,
159
- args: ["/d", "/s", "/c", ["npm", ...args].map(quoteWindowsCmdArg).join(" ")],
160
- label: shell,
161
- }];
162
- }
163
- function quoteForDisplay(value) {
164
- if (/^[A-Za-z0-9_@+=:,./-]+$/.test(value))
165
- return value;
166
- return `'${value.replace(/'/g, "'\\''")}'`;
9
+ return {
10
+ ...installed,
11
+ skills_install: options.skipSkillsInstall
12
+ ? skippedAutomaticSkillsInstall("deferred_to_updated_cli")
13
+ : await runAutomaticSkillsInstall({
14
+ env: runtime.env ?? process.env,
15
+ platform: runtime.platform ?? process.platform,
16
+ ...(runtime.credentials !== undefined ? { credentials: runtime.credentials } : {}),
17
+ ...(runtime.fetch ? { fetch: runtime.fetch } : {}),
18
+ ...(runtime.execFileSync ? { execFileSync: runtime.execFileSync } : {}),
19
+ }),
20
+ };
167
21
  }
@@ -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
  };
@@ -288,8 +288,12 @@ export declare const TRIAL_CREDIT_GRANT = 2000;
288
288
  * Neither churn nor downgrade nor re-subscribe nor billing-owner re-link ever
289
289
  * mints it a second time. Top-ups stay purchasable on free, which is what keeps
290
290
  * the metered surface open-ended rather than capped at the grant.
291
+ *
292
+ * 250 since 2026-10-23 (was 1,000): "let's keep it free and let's just reduce
293
+ * the credits", with onboarding's research and its lead list OXYGEN-funded, so
294
+ * running a play is where a plan starts. A grant already issued is unchanged.
291
295
  */
292
- export declare const FREE_SIGNUP_GRANT_CREDITS = 1000;
296
+ export declare const FREE_SIGNUP_GRANT_CREDITS = 250;
293
297
  export declare const FREE_TIER_GRANTS_ENABLED_ENV_VAR = "OXYGEN_FREE_TIER_GRANTS_ENABLED";
294
298
  /**
295
299
  * Fail-closed rollout switch for the free-tier grants, matching the staged
@@ -403,8 +403,12 @@ export const TRIAL_CREDIT_GRANT = 2_000;
403
403
  * Neither churn nor downgrade nor re-subscribe nor billing-owner re-link ever
404
404
  * mints it a second time. Top-ups stay purchasable on free, which is what keeps
405
405
  * the metered surface open-ended rather than capped at the grant.
406
+ *
407
+ * 250 since 2026-10-23 (was 1,000): "let's keep it free and let's just reduce
408
+ * the credits", with onboarding's research and its lead list OXYGEN-funded, so
409
+ * running a play is where a plan starts. A grant already issued is unchanged.
406
410
  */
407
- export const FREE_SIGNUP_GRANT_CREDITS = 1_000;
411
+ export const FREE_SIGNUP_GRANT_CREDITS = 250;
408
412
  export const FREE_TIER_GRANTS_ENABLED_ENV_VAR = "OXYGEN_FREE_TIER_GRANTS_ENABLED";
409
413
  /**
410
414
  * Fail-closed rollout switch for the free-tier grants, matching the staged
@@ -0,0 +1,30 @@
1
+ export declare const SERVED_PRODUCT_SKILL_AUDIENCES: {
2
+ readonly "oxygen-agency-directory": "agency_partner";
3
+ readonly "oxygen-clay-migration": "workspace";
4
+ readonly "oxygen-collaboration": "workspace";
5
+ readonly "oxygen-crm": "workspace";
6
+ readonly "oxygen-custom-http": "workspace";
7
+ readonly "oxygen-deliverability": "workspace";
8
+ readonly "oxygen-diagnostics": "workspace";
9
+ readonly "oxygen-email-infra": "workspace";
10
+ readonly "oxygen-enrichment": "workspace";
11
+ readonly "oxygen-feedback": "workspace";
12
+ readonly "oxygen-geo": "internal_dev";
13
+ readonly "oxygen-gtm": "workspace";
14
+ readonly "oxygen-gtm-consultant": "workspace";
15
+ readonly "oxygen-knowledge": "workspace";
16
+ readonly "oxygen-linkedin-content": "workspace";
17
+ readonly "oxygen-onboarding": "workspace";
18
+ readonly "oxygen-publishing": "workspace";
19
+ readonly "oxygen-quickstart": "workspace";
20
+ readonly "oxygen-recipes": "workspace";
21
+ readonly "oxygen-reply-oxygent": "internal_dev";
22
+ readonly "oxygen-sequencer": "workspace";
23
+ readonly "oxygen-signals": "workspace";
24
+ readonly "oxygen-sourcing": "workspace";
25
+ readonly "oxygen-table-tidy": "workspace";
26
+ readonly "oxygen-tables": "workspace";
27
+ readonly "oxygen-ugc": "workspace";
28
+ readonly "oxygen-unibox": "workspace";
29
+ readonly "oxygen-workflow-authoring": "workspace";
30
+ };
@@ -0,0 +1,33 @@
1
+ // GENERATED by scripts/codegen/product-skill-audiences.mjs from
2
+ // apps/web/src/agent-skills/<skill>.manifest.ts. Do not edit; rerun it after
3
+ // adding a skill or changing its audience.
4
+ export const SERVED_PRODUCT_SKILL_AUDIENCES = {
5
+ "oxygen-agency-directory": "agency_partner",
6
+ "oxygen-clay-migration": "workspace",
7
+ "oxygen-collaboration": "workspace",
8
+ "oxygen-crm": "workspace",
9
+ "oxygen-custom-http": "workspace",
10
+ "oxygen-deliverability": "workspace",
11
+ "oxygen-diagnostics": "workspace",
12
+ "oxygen-email-infra": "workspace",
13
+ "oxygen-enrichment": "workspace",
14
+ "oxygen-feedback": "workspace",
15
+ "oxygen-geo": "internal_dev",
16
+ "oxygen-gtm": "workspace",
17
+ "oxygen-gtm-consultant": "workspace",
18
+ "oxygen-knowledge": "workspace",
19
+ "oxygen-linkedin-content": "workspace",
20
+ "oxygen-onboarding": "workspace",
21
+ "oxygen-publishing": "workspace",
22
+ "oxygen-quickstart": "workspace",
23
+ "oxygen-recipes": "workspace",
24
+ "oxygen-reply-oxygent": "internal_dev",
25
+ "oxygen-sequencer": "workspace",
26
+ "oxygen-signals": "workspace",
27
+ "oxygen-sourcing": "workspace",
28
+ "oxygen-table-tidy": "workspace",
29
+ "oxygen-tables": "workspace",
30
+ "oxygen-ugc": "workspace",
31
+ "oxygen-unibox": "workspace",
32
+ "oxygen-workflow-authoring": "workspace",
33
+ };
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Skills OXYGEN once served and has retired (2026-10-04: plays are inspiration
3
+ * read through the recipes API, never skills, and visual design is taught by
4
+ * its commands' own help; LinkedIn marketing split into the Publishing and
5
+ * Signals feature skills, with its account-safety rules in the sequencer's
6
+ * LinkedIn reference). The manifest no longer serves them, so nothing new
7
+ * can install, attach or advertise them; their audience below stays so an Agent
8
+ * version or Copilot session that already pinned one keeps its snapshot.
9
+ */
10
+ export declare const RETIRED_PRODUCT_SKILLS: readonly string[];
11
+ /**
12
+ * Current hosted instruction audiences, shared by discovery and Agent snapshots.
13
+ * Served skills come from each skill's catalog manifest (generated); retired ones
14
+ * are listed here.
15
+ */
16
+ export declare const OXYGEN_PRODUCT_SKILL_AUDIENCES: Readonly<Record<string, "workspace" | "agency_partner" | "internal_dev">>;
17
+ export declare function canReadProductSkillInstructions(name: string, entitlements: {
18
+ authenticated?: boolean;
19
+ agencyPartner: boolean;
20
+ internalDev?: boolean;
21
+ }): boolean;
22
+ /**
23
+ * Largest `oxygen_skills_get` result, in serialized characters, that an agent
24
+ * runtime keeps whole in the transcript instead of storing it behind a preview.
25
+ * A play or reference is read to be followed: stored, the model saw only the
26
+ * file list in the 600-character preview, and a stored copy holds the body on one
27
+ * escaped line that grep and line reads cut at 4,000 characters. Sized to fit
28
+ * every served Markdown file whole (largest 2026-10-23: oxygen-ugc/operations.md,
29
+ * 39,744 escaped characters; plays at most 13,550; SKILL.md at most 8,136), pinned
30
+ * by the skills get route test. Only the 203 KB oxygen-gtm/prompts.json asset is
31
+ * over it, and it is over the store's ceiling too.
32
+ */
33
+ export declare const PRODUCT_SKILL_READ_INLINE_CHARS = 48000;
34
+ /** Identify hosted instruction bodies by native tool lineage, never by user prose. */
35
+ export declare function readProductSkillInstructionResult(capabilityName: string, result: unknown): {
36
+ slug: string | null;
37
+ } | null;
38
+ /** Public action cards never advertise invite-only, retired or unknown skill instructions. */
39
+ export declare function isPublicCapabilitySkill(name: string): boolean;
@@ -0,0 +1,86 @@
1
+ import { SERVED_PRODUCT_SKILL_AUDIENCES } from "./capability-discovery-skill-audiences.generated.js";
2
+ /**
3
+ * Skills OXYGEN once served and has retired (2026-10-04: plays are inspiration
4
+ * read through the recipes API, never skills, and visual design is taught by
5
+ * its commands' own help; LinkedIn marketing split into the Publishing and
6
+ * Signals feature skills, with its account-safety rules in the sequencer's
7
+ * LinkedIn reference). The manifest no longer serves them, so nothing new
8
+ * can install, attach or advertise them; their audience below stays so an Agent
9
+ * version or Copilot session that already pinned one keeps its snapshot.
10
+ */
11
+ export const RETIRED_PRODUCT_SKILLS = Object.freeze(["oxygen-playbooks", "oxygen-visual-design", "oxygen-linkedin-marketing"]);
12
+ /**
13
+ * Current hosted instruction audiences, shared by discovery and Agent snapshots.
14
+ * Served skills come from each skill's catalog manifest (generated); retired ones
15
+ * are listed here.
16
+ */
17
+ export const OXYGEN_PRODUCT_SKILL_AUDIENCES = Object.freeze({
18
+ ...SERVED_PRODUCT_SKILL_AUDIENCES,
19
+ // Retired (RETIRED_PRODUCT_SKILLS): readable for existing pins, never served.
20
+ "oxygen-playbooks": "workspace",
21
+ "oxygen-visual-design": "workspace",
22
+ "oxygen-linkedin-marketing": "workspace",
23
+ });
24
+ export function canReadProductSkillInstructions(name, entitlements) {
25
+ if (entitlements.authenticated !== true)
26
+ return false;
27
+ const audience = Object.hasOwn(OXYGEN_PRODUCT_SKILL_AUDIENCES, name)
28
+ ? OXYGEN_PRODUCT_SKILL_AUDIENCES[name]
29
+ : undefined;
30
+ return audience === "workspace" || (audience === "internal_dev" && entitlements.internalDev === true) || (audience === "agency_partner" && entitlements.agencyPartner);
31
+ }
32
+ /**
33
+ * Largest `oxygen_skills_get` result, in serialized characters, that an agent
34
+ * runtime keeps whole in the transcript instead of storing it behind a preview.
35
+ * A play or reference is read to be followed: stored, the model saw only the
36
+ * file list in the 600-character preview, and a stored copy holds the body on one
37
+ * escaped line that grep and line reads cut at 4,000 characters. Sized to fit
38
+ * every served Markdown file whole (largest 2026-10-23: oxygen-ugc/operations.md,
39
+ * 39,744 escaped characters; plays at most 13,550; SKILL.md at most 8,136), pinned
40
+ * by the skills get route test. Only the 203 KB oxygen-gtm/prompts.json asset is
41
+ * over it, and it is over the store's ceiling too.
42
+ */
43
+ export const PRODUCT_SKILL_READ_INLINE_CHARS = 48_000;
44
+ /** Identify hosted instruction bodies by native tool lineage, never by user prose. */
45
+ export function readProductSkillInstructionResult(capabilityName, result) {
46
+ if (capabilityName !== "oxygen_skills_get")
47
+ return null;
48
+ const pending = [result];
49
+ for (let i = 0; i < pending.length && i < 24; i += 1) {
50
+ let value = pending[i];
51
+ if (typeof value === "string") {
52
+ try {
53
+ value = JSON.parse(value);
54
+ }
55
+ catch {
56
+ continue;
57
+ }
58
+ }
59
+ if (value === null || typeof value !== "object" || Array.isArray(value))
60
+ continue;
61
+ const envelope = value;
62
+ if (envelope.ok === false || envelope.isError === true || envelope.status === "error")
63
+ continue;
64
+ if (typeof envelope.content === "string") {
65
+ const name = typeof envelope.name === "string" ? envelope.name : "";
66
+ return { slug: Object.hasOwn(OXYGEN_PRODUCT_SKILL_AUDIENCES, name) ? name : null };
67
+ }
68
+ for (const key of ["result", "data", "structuredContent", "structured"]) {
69
+ if (envelope[key] !== undefined)
70
+ pending.push(envelope[key]);
71
+ }
72
+ if (Array.isArray(envelope.content)) {
73
+ for (const block of envelope.content) {
74
+ if (block && typeof block === "object" && block.type === "text" && typeof block.text === "string")
75
+ pending.push(block.text);
76
+ }
77
+ }
78
+ }
79
+ return null;
80
+ }
81
+ /** Public action cards never advertise invite-only, retired or unknown skill instructions. */
82
+ export function isPublicCapabilitySkill(name) {
83
+ return Object.hasOwn(OXYGEN_PRODUCT_SKILL_AUDIENCES, name)
84
+ && OXYGEN_PRODUCT_SKILL_AUDIENCES[name] === "workspace"
85
+ && !RETIRED_PRODUCT_SKILLS.includes(name);
86
+ }