@oxygen-agent/cli 1.1014.1874 → 1.1014.1997

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 (243) 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/commands/billing.js +1 -1
  7. package/dist/commands/managed-inboxes.js +6 -2
  8. package/dist/commands/sequences.js +1 -1
  9. package/dist/commands/subscriptions.js +7 -5
  10. package/dist/update.d.ts +4 -57
  11. package/dist/update.js +17 -163
  12. package/node_modules/@oxygen/shared/dist/billing.d.ts +5 -1
  13. package/node_modules/@oxygen/shared/dist/billing.js +5 -1
  14. package/node_modules/@oxygen/shared/dist/capability-discovery-skill-audiences.generated.d.ts +30 -0
  15. package/node_modules/@oxygen/shared/dist/capability-discovery-skill-audiences.generated.js +33 -0
  16. package/node_modules/@oxygen/shared/dist/capability-discovery-skills.d.ts +39 -0
  17. package/node_modules/@oxygen/shared/dist/capability-discovery-skills.js +86 -0
  18. package/node_modules/@oxygen/shared/dist/capability-discovery-types.d.ts +93 -0
  19. package/node_modules/@oxygen/shared/dist/capability-discovery-types.js +1 -0
  20. package/node_modules/@oxygen/shared/dist/capability-discovery.d.ts +12 -258
  21. package/node_modules/@oxygen/shared/dist/capability-discovery.js +123 -3700
  22. package/node_modules/@oxygen/shared/dist/capability-intents/agency-directory.rules.d.ts +2 -0
  23. package/node_modules/@oxygen/shared/dist/capability-intents/agency-directory.rules.js +5 -0
  24. package/node_modules/@oxygen/shared/dist/capability-intents/agents.d.ts +10 -0
  25. package/node_modules/@oxygen/shared/dist/capability-intents/agents.js +53 -0
  26. package/node_modules/@oxygen/shared/dist/capability-intents/agents.rules.d.ts +2 -0
  27. package/node_modules/@oxygen/shared/dist/capability-intents/agents.rules.js +25 -0
  28. package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.d.ts +31 -0
  29. package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.js +70 -0
  30. package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.rules.d.ts +2 -0
  31. package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.rules.js +85 -0
  32. package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.d.ts +9 -0
  33. package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.js +54 -0
  34. package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.rules.d.ts +2 -0
  35. package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.rules.js +28 -0
  36. package/node_modules/@oxygen/shared/dist/capability-intents/connected-integrations.rules.d.ts +2 -0
  37. package/node_modules/@oxygen/shared/dist/capability-intents/connected-integrations.rules.js +23 -0
  38. package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.d.ts +43 -0
  39. package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.js +90 -0
  40. package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.rules.d.ts +2 -0
  41. package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.rules.js +58 -0
  42. package/node_modules/@oxygen/shared/dist/capability-intents/connected-whatsapp.rules.d.ts +2 -0
  43. package/node_modules/@oxygen/shared/dist/capability-intents/connected-whatsapp.rules.js +14 -0
  44. package/node_modules/@oxygen/shared/dist/capability-intents/geo.rules.d.ts +2 -0
  45. package/node_modules/@oxygen/shared/dist/capability-intents/geo.rules.js +9 -0
  46. package/node_modules/@oxygen/shared/dist/capability-intents/index.generated.d.ts +365 -0
  47. package/node_modules/@oxygen/shared/dist/capability-intents/index.generated.js +90 -0
  48. package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.d.ts +20 -0
  49. package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.js +37 -0
  50. package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.rules.d.ts +2 -0
  51. package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.rules.js +43 -0
  52. package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.d.ts +4 -0
  53. package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.js +26 -0
  54. package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.rules.d.ts +2 -0
  55. package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.rules.js +42 -0
  56. package/node_modules/@oxygen/shared/dist/capability-intents/messages.d.ts +6 -0
  57. package/node_modules/@oxygen/shared/dist/capability-intents/messages.js +16 -0
  58. package/node_modules/@oxygen/shared/dist/capability-intents/messages.rules.d.ts +2 -0
  59. package/node_modules/@oxygen/shared/dist/capability-intents/messages.rules.js +68 -0
  60. package/node_modules/@oxygen/shared/dist/capability-intents/normalize.d.ts +2 -0
  61. package/node_modules/@oxygen/shared/dist/capability-intents/normalize.js +4 -0
  62. package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.d.ts +6 -0
  63. package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.js +23 -0
  64. package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.rules.d.ts +2 -0
  65. package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.rules.js +25 -0
  66. package/node_modules/@oxygen/shared/dist/capability-intents/posts.d.ts +1 -0
  67. package/node_modules/@oxygen/shared/dist/capability-intents/posts.js +12 -0
  68. package/node_modules/@oxygen/shared/dist/capability-intents/posts.rules.d.ts +2 -0
  69. package/node_modules/@oxygen/shared/dist/capability-intents/posts.rules.js +20 -0
  70. package/node_modules/@oxygen/shared/dist/capability-intents/publishing.d.ts +86 -0
  71. package/node_modules/@oxygen/shared/dist/capability-intents/publishing.js +135 -0
  72. package/node_modules/@oxygen/shared/dist/capability-intents/publishing.rules.d.ts +2 -0
  73. package/node_modules/@oxygen/shared/dist/capability-intents/publishing.rules.js +89 -0
  74. package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.d.ts +7 -0
  75. package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.js +85 -0
  76. package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.rules.d.ts +2 -0
  77. package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.rules.js +28 -0
  78. package/node_modules/@oxygen/shared/dist/capability-intents/recipes.d.ts +7 -0
  79. package/node_modules/@oxygen/shared/dist/capability-intents/recipes.js +73 -0
  80. package/node_modules/@oxygen/shared/dist/capability-intents/recipes.rules.d.ts +2 -0
  81. package/node_modules/@oxygen/shared/dist/capability-intents/recipes.rules.js +36 -0
  82. package/node_modules/@oxygen/shared/dist/capability-intents/records.d.ts +86 -0
  83. package/node_modules/@oxygen/shared/dist/capability-intents/records.js +240 -0
  84. package/node_modules/@oxygen/shared/dist/capability-intents/records.rules.d.ts +2 -0
  85. package/node_modules/@oxygen/shared/dist/capability-intents/records.rules.js +71 -0
  86. package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.d.ts +27 -0
  87. package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.js +67 -0
  88. package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.rules.d.ts +2 -0
  89. package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.rules.js +115 -0
  90. package/node_modules/@oxygen/shared/dist/capability-intents/sequences.d.ts +71 -0
  91. package/node_modules/@oxygen/shared/dist/capability-intents/sequences.js +150 -0
  92. package/node_modules/@oxygen/shared/dist/capability-intents/sequences.rules.d.ts +2 -0
  93. package/node_modules/@oxygen/shared/dist/capability-intents/sequences.rules.js +149 -0
  94. package/node_modules/@oxygen/shared/dist/capability-intents/signals.d.ts +42 -0
  95. package/node_modules/@oxygen/shared/dist/capability-intents/signals.js +42 -0
  96. package/node_modules/@oxygen/shared/dist/capability-intents/signals.rules.d.ts +2 -0
  97. package/node_modules/@oxygen/shared/dist/capability-intents/signals.rules.js +47 -0
  98. package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.d.ts +60 -0
  99. package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.js +94 -0
  100. package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.rules.d.ts +2 -0
  101. package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.rules.js +94 -0
  102. package/node_modules/@oxygen/shared/dist/capability-intents/tables.d.ts +196 -0
  103. package/node_modules/@oxygen/shared/dist/capability-intents/tables.js +394 -0
  104. package/node_modules/@oxygen/shared/dist/capability-intents/tables.rules.d.ts +2 -0
  105. package/node_modules/@oxygen/shared/dist/capability-intents/tables.rules.js +384 -0
  106. package/node_modules/@oxygen/shared/dist/capability-intents/tags.rules.d.ts +2 -0
  107. package/node_modules/@oxygen/shared/dist/capability-intents/tags.rules.js +5 -0
  108. package/node_modules/@oxygen/shared/dist/capability-intents/visual-rendering.rules.d.ts +2 -0
  109. package/node_modules/@oxygen/shared/dist/capability-intents/visual-rendering.rules.js +8 -0
  110. package/node_modules/@oxygen/shared/dist/capability-intents/workflows.d.ts +2 -0
  111. package/node_modules/@oxygen/shared/dist/capability-intents/workflows.js +20 -0
  112. package/node_modules/@oxygen/shared/dist/capability-intents/workflows.rules.d.ts +2 -0
  113. package/node_modules/@oxygen/shared/dist/capability-intents/workflows.rules.js +90 -0
  114. package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.d.ts +59 -0
  115. package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.js +121 -0
  116. package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.rules.d.ts +2 -0
  117. package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.rules.js +58 -0
  118. package/node_modules/@oxygen/shared/dist/capability-routes/ads.d.ts +2 -0
  119. package/node_modules/@oxygen/shared/dist/capability-routes/ads.js +17 -0
  120. package/node_modules/@oxygen/shared/dist/capability-routes/agency-directory.d.ts +2 -0
  121. package/node_modules/@oxygen/shared/dist/capability-routes/agency-directory.js +17 -0
  122. package/node_modules/@oxygen/shared/dist/capability-routes/agents.d.ts +2 -0
  123. package/node_modules/@oxygen/shared/dist/capability-routes/agents.js +17 -0
  124. package/node_modules/@oxygen/shared/dist/capability-routes/billing-and-budgets.d.ts +2 -0
  125. package/node_modules/@oxygen/shared/dist/capability-routes/billing-and-budgets.js +17 -0
  126. package/node_modules/@oxygen/shared/dist/capability-routes/collaboration.d.ts +2 -0
  127. package/node_modules/@oxygen/shared/dist/capability-routes/collaboration.js +39 -0
  128. package/node_modules/@oxygen/shared/dist/capability-routes/connected-integrations.d.ts +2 -0
  129. package/node_modules/@oxygen/shared/dist/capability-routes/connected-integrations.js +17 -0
  130. package/node_modules/@oxygen/shared/dist/capability-routes/connected-linkedin.d.ts +2 -0
  131. package/node_modules/@oxygen/shared/dist/capability-routes/connected-linkedin.js +17 -0
  132. package/node_modules/@oxygen/shared/dist/capability-routes/connected-whatsapp.d.ts +2 -0
  133. package/node_modules/@oxygen/shared/dist/capability-routes/connected-whatsapp.js +17 -0
  134. package/node_modules/@oxygen/shared/dist/capability-routes/dashboards.d.ts +2 -0
  135. package/node_modules/@oxygen/shared/dist/capability-routes/dashboards.js +28 -0
  136. package/node_modules/@oxygen/shared/dist/capability-routes/discovery-and-skills.d.ts +2 -0
  137. package/node_modules/@oxygen/shared/dist/capability-routes/discovery-and-skills.js +22 -0
  138. package/node_modules/@oxygen/shared/dist/capability-routes/geo.d.ts +2 -0
  139. package/node_modules/@oxygen/shared/dist/capability-routes/geo.js +13 -0
  140. package/node_modules/@oxygen/shared/dist/capability-routes/index.d.ts +2 -0
  141. package/node_modules/@oxygen/shared/dist/capability-routes/index.js +64 -0
  142. package/node_modules/@oxygen/shared/dist/capability-routes/knowledge-graph.d.ts +2 -0
  143. package/node_modules/@oxygen/shared/dist/capability-routes/knowledge-graph.js +17 -0
  144. package/node_modules/@oxygen/shared/dist/capability-routes/linkedin-public-research.d.ts +2 -0
  145. package/node_modules/@oxygen/shared/dist/capability-routes/linkedin-public-research.js +18 -0
  146. package/node_modules/@oxygen/shared/dist/capability-routes/messages.d.ts +2 -0
  147. package/node_modules/@oxygen/shared/dist/capability-routes/messages.js +21 -0
  148. package/node_modules/@oxygen/shared/dist/capability-routes/observability.d.ts +2 -0
  149. package/node_modules/@oxygen/shared/dist/capability-routes/observability.js +17 -0
  150. package/node_modules/@oxygen/shared/dist/capability-routes/onboarding-and-copilot.d.ts +2 -0
  151. package/node_modules/@oxygen/shared/dist/capability-routes/onboarding-and-copilot.js +23 -0
  152. package/node_modules/@oxygen/shared/dist/capability-routes/platform-operations.d.ts +2 -0
  153. package/node_modules/@oxygen/shared/dist/capability-routes/platform-operations.js +17 -0
  154. package/node_modules/@oxygen/shared/dist/capability-routes/posts.d.ts +2 -0
  155. package/node_modules/@oxygen/shared/dist/capability-routes/posts.js +17 -0
  156. package/node_modules/@oxygen/shared/dist/capability-routes/publishing.d.ts +2 -0
  157. package/node_modules/@oxygen/shared/dist/capability-routes/publishing.js +20 -0
  158. package/node_modules/@oxygen/shared/dist/capability-routes/recipes.d.ts +2 -0
  159. package/node_modules/@oxygen/shared/dist/capability-routes/recipes.js +17 -0
  160. package/node_modules/@oxygen/shared/dist/capability-routes/records.d.ts +2 -0
  161. package/node_modules/@oxygen/shared/dist/capability-routes/records.js +20 -0
  162. package/node_modules/@oxygen/shared/dist/capability-routes/sending-infrastructure.d.ts +2 -0
  163. package/node_modules/@oxygen/shared/dist/capability-routes/sending-infrastructure.js +42 -0
  164. package/node_modules/@oxygen/shared/dist/capability-routes/sequences.d.ts +2 -0
  165. package/node_modules/@oxygen/shared/dist/capability-routes/sequences.js +32 -0
  166. package/node_modules/@oxygen/shared/dist/capability-routes/signals.d.ts +2 -0
  167. package/node_modules/@oxygen/shared/dist/capability-routes/signals.js +17 -0
  168. package/node_modules/@oxygen/shared/dist/capability-routes/sourcing-and-provider-tools.d.ts +2 -0
  169. package/node_modules/@oxygen/shared/dist/capability-routes/sourcing-and-provider-tools.js +21 -0
  170. package/node_modules/@oxygen/shared/dist/capability-routes/support-and-feedback.d.ts +2 -0
  171. package/node_modules/@oxygen/shared/dist/capability-routes/support-and-feedback.js +17 -0
  172. package/node_modules/@oxygen/shared/dist/capability-routes/tables.d.ts +2 -0
  173. package/node_modules/@oxygen/shared/dist/capability-routes/tables.js +34 -0
  174. package/node_modules/@oxygen/shared/dist/capability-routes/tags.d.ts +2 -0
  175. package/node_modules/@oxygen/shared/dist/capability-routes/tags.js +17 -0
  176. package/node_modules/@oxygen/shared/dist/capability-routes/visual-rendering.d.ts +2 -0
  177. package/node_modules/@oxygen/shared/dist/capability-routes/visual-rendering.js +17 -0
  178. package/node_modules/@oxygen/shared/dist/capability-routes/workflows.d.ts +2 -0
  179. package/node_modules/@oxygen/shared/dist/capability-routes/workflows.js +17 -0
  180. package/node_modules/@oxygen/shared/dist/capability-routes/workspace-access.d.ts +2 -0
  181. package/node_modules/@oxygen/shared/dist/capability-routes/workspace-access.js +26 -0
  182. package/node_modules/@oxygen/shared/dist/contracts/connectors.js +2 -0
  183. package/node_modules/@oxygen/shared/dist/contracts/customer-operations.d.ts +1 -1
  184. package/node_modules/@oxygen/shared/dist/contracts/operations/agent-sessions.d.ts +1 -0
  185. package/node_modules/@oxygen/shared/dist/contracts/operations/agent-sessions.js +1 -0
  186. package/node_modules/@oxygen/shared/dist/contracts/operations/browser.d.ts +1 -0
  187. package/node_modules/@oxygen/shared/dist/contracts/operations/browser.js +1 -0
  188. package/node_modules/@oxygen/shared/dist/contracts/operations/clay-migration.d.ts +2 -0
  189. package/node_modules/@oxygen/shared/dist/contracts/operations/clay-migration.js +2 -0
  190. package/node_modules/@oxygen/shared/dist/contracts/operations/connectors.d.ts +2 -0
  191. package/node_modules/@oxygen/shared/dist/contracts/operations/connectors.js +2 -0
  192. package/node_modules/@oxygen/shared/dist/contracts/operations/geo.d.ts +1 -0
  193. package/node_modules/@oxygen/shared/dist/contracts/operations/geo.js +1 -0
  194. package/node_modules/@oxygen/shared/dist/contracts/operations/guided-activation.d.ts +1 -0
  195. package/node_modules/@oxygen/shared/dist/contracts/operations/guided-activation.js +1 -0
  196. package/node_modules/@oxygen/shared/dist/contracts/operations/index.generated.d.ts +2 -0
  197. package/node_modules/@oxygen/shared/dist/contracts/operations/index.generated.js +26 -0
  198. package/node_modules/@oxygen/shared/dist/contracts/operations/reply-oxygent.d.ts +1 -0
  199. package/node_modules/@oxygen/shared/dist/contracts/operations/reply-oxygent.js +1 -0
  200. package/node_modules/@oxygen/shared/dist/contracts/operations/sender-limits.d.ts +2 -0
  201. package/node_modules/@oxygen/shared/dist/contracts/operations/sender-limits.js +2 -0
  202. package/node_modules/@oxygen/shared/dist/contracts/operations/table-feed-update.d.ts +2 -0
  203. package/node_modules/@oxygen/shared/dist/contracts/operations/table-feed-update.js +2 -0
  204. package/node_modules/@oxygen/shared/dist/contracts/operations/teammates.d.ts +1 -0
  205. package/node_modules/@oxygen/shared/dist/contracts/operations/teammates.js +1 -0
  206. package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-pages.d.ts +2 -0
  207. package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-pages.js +2 -0
  208. package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-skills.d.ts +1 -0
  209. package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-skills.js +1 -0
  210. package/node_modules/@oxygen/shared/dist/contracts/operations.d.ts +6 -0
  211. package/node_modules/@oxygen/shared/dist/contracts/operations.js +7 -15
  212. package/node_modules/@oxygen/shared/dist/contracts/sender-limits.js +1 -0
  213. package/node_modules/@oxygen/shared/dist/diagnostic-storage-lock.js +33 -22
  214. package/node_modules/@oxygen/shared/dist/diagnostics.js +11 -8
  215. package/node_modules/@oxygen/shared/dist/first-month-offer-window.d.ts +3 -0
  216. package/node_modules/@oxygen/shared/dist/first-month-offer.d.ts +15 -7
  217. package/node_modules/@oxygen/shared/dist/first-month-offer.js +23 -9
  218. package/node_modules/@oxygen/shared/dist/guided-activation.d.ts +2 -0
  219. package/node_modules/@oxygen/shared/dist/listed-website-platforms.d.ts +1 -1
  220. package/node_modules/@oxygen/shared/dist/listed-website-platforms.js +23 -1
  221. package/node_modules/@oxygen/shared/dist/log.d.ts +4 -0
  222. package/node_modules/@oxygen/shared/dist/log.js +4 -0
  223. package/node_modules/@oxygen/shared/dist/onboarding-leads.d.ts +67 -0
  224. package/node_modules/@oxygen/shared/dist/onboarding-leads.js +78 -0
  225. package/node_modules/@oxygen/shared/dist/onboarding-research.d.ts +19 -0
  226. package/node_modules/@oxygen/shared/dist/onboarding-research.js +33 -0
  227. package/node_modules/@oxygen/shared/dist/otlp-log-sink.js +20 -0
  228. package/node_modules/@oxygen/shared/dist/plan-capabilities.js +1 -1
  229. package/node_modules/@oxygen/shared/dist/plan-limits.d.ts +2 -2
  230. package/node_modules/@oxygen/shared/dist/plan-limits.js +6 -7
  231. package/node_modules/@oxygen/shared/dist/sending-domain-faults.d.ts +1 -1
  232. package/node_modules/@oxygen/shared/dist/sending-domain-faults.js +1 -1
  233. package/node_modules/@oxygen/shared/dist/tenant-migration-names.d.ts +5 -0
  234. package/node_modules/@oxygen/shared/dist/tenant-migration-names.js +8 -0
  235. package/node_modules/@oxygen/shared/dist/version.generated.d.ts +1 -1
  236. package/node_modules/@oxygen/shared/dist/version.generated.js +1 -1
  237. package/node_modules/@oxygen/workflows/dist/graph/lint.d.ts +1 -1
  238. package/node_modules/@oxygen/workflows/dist/graph/lint.js +4 -3
  239. package/node_modules/@oxygen/workflows/dist/index.d.ts +2 -59
  240. package/node_modules/@oxygen/workflows/dist/index.js +4 -904
  241. package/node_modules/@oxygen/workflows/dist/manifest-validation.d.ts +75 -0
  242. package/node_modules/@oxygen/workflows/dist/manifest-validation.js +903 -0
  243. package/package.json +1 -1
@@ -0,0 +1,26 @@
1
+ import { AGENT_SESSION_OPERATIONS } from "./agent-sessions.js";
2
+ import { BROWSER_OPERATIONS } from "./browser.js";
3
+ import { CLAY_MIGRATION_OPERATIONS } from "./clay-migration.js";
4
+ import { CONNECTOR_OPERATIONS } from "./connectors.js";
5
+ import { GEO_OPERATIONS } from "./geo.js";
6
+ import { GUIDED_ACTIVATION_OPERATIONS } from "./guided-activation.js";
7
+ import { REPLY_OXYGENT_OPERATIONS } from "./reply-oxygent.js";
8
+ import { SENDER_LIMITS_OPERATIONS } from "./sender-limits.js";
9
+ import { TABLE_FEED_UPDATE_OPERATIONS } from "./table-feed-update.js";
10
+ import { TEAMMATE_OPERATIONS } from "./teammates.js";
11
+ import { WORKSPACE_PAGES_OPERATIONS } from "./workspace-pages.js";
12
+ import { WORKSPACE_SKILL_OPERATIONS } from "./workspace-skills.js";
13
+ export const OPERATION_FAMILY_SPECS = [
14
+ ...AGENT_SESSION_OPERATIONS,
15
+ ...BROWSER_OPERATIONS,
16
+ ...CLAY_MIGRATION_OPERATIONS,
17
+ ...CONNECTOR_OPERATIONS,
18
+ ...GEO_OPERATIONS,
19
+ ...GUIDED_ACTIVATION_OPERATIONS,
20
+ ...REPLY_OXYGENT_OPERATIONS,
21
+ ...SENDER_LIMITS_OPERATIONS,
22
+ ...TABLE_FEED_UPDATE_OPERATIONS,
23
+ ...TEAMMATE_OPERATIONS,
24
+ ...WORKSPACE_PAGES_OPERATIONS,
25
+ ...WORKSPACE_SKILL_OPERATIONS,
26
+ ];
@@ -0,0 +1 @@
1
+ export { REPLY_OXYGENT_OPERATIONS } from "../reply-oxygent.js";
@@ -0,0 +1 @@
1
+ export { REPLY_OXYGENT_OPERATIONS } from "../reply-oxygent.js";
@@ -0,0 +1,2 @@
1
+ import type { OperationSpec } from "../operation-request.js";
2
+ export declare const SENDER_LIMITS_OPERATIONS: readonly OperationSpec[];
@@ -0,0 +1,2 @@
1
+ import { SENDER_LIMITS_SET_OPERATION } from "../sender-limits.js";
2
+ export const SENDER_LIMITS_OPERATIONS = [SENDER_LIMITS_SET_OPERATION];
@@ -0,0 +1,2 @@
1
+ import type { OperationSpec } from "../operation-request.js";
2
+ export declare const TABLE_FEED_UPDATE_OPERATIONS: readonly OperationSpec[];
@@ -0,0 +1,2 @@
1
+ import { TABLE_FEED_UPDATE_OPERATION } from "../table-feed-update.js";
2
+ export const TABLE_FEED_UPDATE_OPERATIONS = [TABLE_FEED_UPDATE_OPERATION];
@@ -0,0 +1 @@
1
+ export { TEAMMATE_OPERATIONS } from "../teammates.js";
@@ -0,0 +1 @@
1
+ export { TEAMMATE_OPERATIONS } from "../teammates.js";
@@ -0,0 +1,2 @@
1
+ import type { OperationSpec } from "../operation-request.js";
2
+ export declare const WORKSPACE_PAGES_OPERATIONS: readonly OperationSpec[];
@@ -0,0 +1,2 @@
1
+ import { WORKSPACE_PAGES_GET_OPERATION, WORKSPACE_PAGES_UPDATE_OPERATION } from "../workspace-pages.js";
2
+ export const WORKSPACE_PAGES_OPERATIONS = [WORKSPACE_PAGES_GET_OPERATION, WORKSPACE_PAGES_UPDATE_OPERATION];
@@ -0,0 +1 @@
1
+ export { WORKSPACE_SKILL_OPERATIONS } from "../workspace-skills.js";
@@ -0,0 +1 @@
1
+ export { WORKSPACE_SKILL_OPERATIONS } from "../workspace-skills.js";
@@ -1,3 +1,9 @@
1
+ /**
2
+ * One entry per customer operation that edits a resource: the route it calls,
3
+ * the contract its body satisfies, and the names it carries on the CLI and MCP.
4
+ * The CLI command, the MCP tool and the route read the same spec, so the three
5
+ * cannot disagree on which fields exist. Leaf and browser-safe.
6
+ */
1
7
  import { type ContractObject, type ContractIssue } from "./schema.js";
2
8
  import type { OperationSpec } from "./operation-request.js";
3
9
  export type { OperationSpec } from "./operation-request.js";
@@ -4,20 +4,9 @@
4
4
  * The CLI command, the MCP tool and the route read the same spec, so the three
5
5
  * cannot disagree on which fields exist. Leaf and browser-safe.
6
6
  */
7
- import { CONNECTOR_EVENTS_REVOKE_OPERATION, CONNECTOR_UPDATE_OPERATION } from "./connectors.js";
8
7
  import { str, validateContract } from "./schema.js";
9
- import { SENDER_LIMITS_SET_OPERATION } from "./sender-limits.js";
10
- import { WORKSPACE_PAGES_GET_OPERATION, WORKSPACE_PAGES_UPDATE_OPERATION } from "./workspace-pages.js";
11
- import { BROWSER_OPERATIONS } from "./browser-operations.js";
12
- import { TABLE_FEED_UPDATE_OPERATION } from "./table-feed-update.js";
13
- import { GEO_OPERATIONS } from "./geo.js";
14
8
  import { CUSTOMER_OPERATIONS } from "./customer-operations.js";
15
- import { GUIDED_ACTIVATION_OPERATIONS } from "./guided-activation.js";
16
- import { AGENT_SESSION_OPERATIONS } from "./agent-sessions.js";
17
- import { REPLY_OXYGENT_OPERATIONS } from "./reply-oxygent.js";
18
- import { TEAMMATE_OPERATIONS } from "./teammates.js";
19
- import { WORKSPACE_SKILL_OPERATIONS } from "./workspace-skills.js";
20
- import { CLAY_MIGRATION_OPERATION } from "./clay-migration.js";
9
+ import { OPERATION_FAMILY_SPECS } from "./operations/index.generated.js";
21
10
  export { operationPath, operationRequest } from "./operation-request.js";
22
11
  /** The exact public grammar, including the operation's scoped route parameters. */
23
12
  export function operationInputContract(spec) {
@@ -61,6 +50,9 @@ export function operationFormData(spec, body) {
61
50
  }
62
51
  return form;
63
52
  }
64
- export const OPERATION_SPECS = [CLAY_MIGRATION_OPERATION, SENDER_LIMITS_SET_OPERATION, CONNECTOR_UPDATE_OPERATION, CONNECTOR_EVENTS_REVOKE_OPERATION, WORKSPACE_PAGES_GET_OPERATION, WORKSPACE_PAGES_UPDATE_OPERATION, TABLE_FEED_UPDATE_OPERATION, ...CUSTOMER_OPERATIONS, ...GEO_OPERATIONS, ...BROWSER_OPERATIONS, ...AGENT_SESSION_OPERATIONS, ...GUIDED_ACTIVATION_OPERATIONS, ...TEAMMATE_OPERATIONS, ...REPLY_OXYGENT_OPERATIONS, ...WORKSPACE_SKILL_OPERATIONS];
65
- export const CLI_OPERATIONS = [...CUSTOMER_OPERATIONS, ...GEO_OPERATIONS, ...BROWSER_OPERATIONS, ...AGENT_SESSION_OPERATIONS, ...GUIDED_ACTIVATION_OPERATIONS, ...TEAMMATE_OPERATIONS, ...REPLY_OXYGENT_OPERATIONS, ...WORKSPACE_SKILL_OPERATIONS].filter((spec) => spec.generated?.cli !== false);
66
- export const MCP_OPERATIONS = [...CUSTOMER_OPERATIONS, ...GEO_OPERATIONS, ...BROWSER_OPERATIONS, ...AGENT_SESSION_OPERATIONS, ...GUIDED_ACTIVATION_OPERATIONS, ...TEAMMATE_OPERATIONS, ...REPLY_OXYGENT_OPERATIONS, ...WORKSPACE_SKILL_OPERATIONS].filter((spec) => spec.generated?.mcp !== false);
53
+ // Add a family as a new file in ./operations/ (scripts/codegen/operations-index.mjs
54
+ // lists them alphabetically). The shared customer catalog leads, so each MCP pack
55
+ // and CLI group keeps its established tool and command order.
56
+ export const OPERATION_SPECS = [...CUSTOMER_OPERATIONS, ...OPERATION_FAMILY_SPECS];
57
+ export const CLI_OPERATIONS = [...CUSTOMER_OPERATIONS, ...OPERATION_FAMILY_SPECS].filter((spec) => spec.generated?.cli !== false);
58
+ export const MCP_OPERATIONS = [...CUSTOMER_OPERATIONS, ...OPERATION_FAMILY_SPECS].filter((spec) => spec.generated?.mcp !== false);
@@ -79,6 +79,7 @@ export const SENDER_LIMITS_SET_OPERATION = {
79
79
  route: "/api/cli/senders/{id}/limits",
80
80
  method: "PATCH",
81
81
  contract: SENDER_LIMITS_PATCH_CONTRACT,
82
+ generated: { cli: false, mcp: false },
82
83
  cli: {
83
84
  path: ["senders", "limits", "set"],
84
85
  summary: "Adjust per-account action limits and working hours. LinkedIn actions only run inside the account's working hours (default 07:00-22:00 every day, in the account's timezone); work due outside them is deferred to the next window, not failed. Set them with --timezone, --working-days, --working-hours-start and --working-hours-end; flags you omit keep their current value. A sequence's sending schedule (sequences update --schedule-*, or --linkedin-* for LinkedIn alone) can narrow the window for its LinkedIn steps, never widen it; email steps follow the sequence's email send window instead. Every limit flag shows its default and hard maximum; values above the maximum are clamped, and higher caps raise the risk of a LinkedIn restriction. Each action has its own cap (InMails per day and per rolling 30 days, profile views, profile lookups, endorsements, invitation withdrawals, posts), and every send except posts also counts toward --total-actions-per-day. Daily send caps run at half on Saturday and Sunday in the account's timezone unless --weekend-full-volume is set. A withdrawn invitation cannot be re-sent to the same person for 21 days. Own-feed posts and your own Unibox replies ignore working hours. A refused action names its reason (outside_working_hours defers it; linkedin_rate_limited names the limit and resets_at). Caps saved before 25 Sep 2026 above 40 messages, 20 comments or 200 total actions were lowered to those levels once on 2 Oct 2026 (old values in sender metadata linkedin_limit_caution_2026_10); limits you save now are kept as set. Raising caps to answer a post's commenters: read `oxygen skills get oxygen-sequencer --file references/linkedin.md` first. Changing limits is free. <id> accepts a sender account id, connection id, or Unipile account id.",
@@ -7,31 +7,42 @@ export async function acquireDiagnosticStorageLock(path, waitMs = 0) {
7
7
  const { DatabaseSync } = process.getBuiltinModule("node:sqlite");
8
8
  const databasePath = path + ".sqlite";
9
9
  const deadline = performance.now() + waitMs;
10
+ // SQLite owns every descriptor: closing a separate descriptor for this inode
11
+ // would release POSIX locks held by another connection in this process.
12
+ // One connection serves every attempt; reopening per poll was synchronous
13
+ // open/stat/chmod work on the event loop for each waiter every 20 ms.
10
14
  let database;
11
- while (true) {
12
- try {
13
- // SQLite owns every descriptor: closing a separate descriptor for this inode
14
- // would release POSIX locks held by another connection in this process.
15
- database = new DatabaseSync(databasePath, { timeout: 0 });
16
- await chmod(databasePath, 0o600);
17
- database.exec("BEGIN EXCLUSIVE");
18
- break;
19
- }
20
- catch (error) {
21
- database?.close();
22
- database = undefined;
23
- const busy = error && typeof error === "object" && "errcode" in error && (error.errcode === 5 || error.errcode === 6);
24
- // Only contention is skippable. Preserve permission, capacity and runtime
25
- // failures for the caller's safe classification rather than calling them busy.
26
- if (!busy)
27
- throw error;
28
- if (performance.now() >= deadline)
29
- return null;
30
- // A synchronous SQLite busy timeout would block the same-process owner
31
- // from finishing its asynchronous fsync and releasing this lock.
32
- await new Promise(resolve => setTimeout(resolve, Math.min(20, Math.max(1, deadline - performance.now()))));
15
+ try {
16
+ while (true) {
17
+ try {
18
+ if (!database) {
19
+ database = new DatabaseSync(databasePath, { timeout: 0 });
20
+ await chmod(databasePath, 0o600);
21
+ }
22
+ database.exec("BEGIN EXCLUSIVE");
23
+ break;
24
+ }
25
+ catch (error) {
26
+ const busy = error && typeof error === "object" && "errcode" in error && (error.errcode === 5 || error.errcode === 6);
27
+ // Only contention is skippable. Preserve permission, capacity and runtime
28
+ // failures for the caller's safe classification rather than calling them busy.
29
+ if (!busy)
30
+ throw error;
31
+ if (performance.now() >= deadline) {
32
+ database?.close();
33
+ database = undefined;
34
+ return null;
35
+ }
36
+ // A synchronous SQLite busy timeout would block the same-process owner
37
+ // from finishing its asynchronous fsync and releasing this lock.
38
+ await new Promise(resolve => setTimeout(resolve, Math.min(20, Math.max(1, deadline - performance.now()))));
39
+ }
33
40
  }
34
41
  }
42
+ catch (error) {
43
+ database?.close();
44
+ throw error;
45
+ }
35
46
  const held = database;
36
47
  let closed = false;
37
48
  return async () => {
@@ -59,15 +59,18 @@ export function sanitizeDiagnosticText(value, knownSecrets = []) {
59
59
  if (secret)
60
60
  value = value.split(secret).join("[credential excluded]");
61
61
  // Text blocks may contain serialized tool results, including binary blocks.
62
- try {
63
- const parsed = JSON.parse(value);
64
- if (parsed && typeof parsed === "object") {
65
- const sanitized = sanitizeDiagnosticContent(parsed, knownSecrets);
66
- if (JSON.stringify(parsed) !== JSON.stringify(sanitized))
67
- value = JSON.stringify(sanitized);
62
+ // Only text opening with { or [ can parse to an object; skipping the rest avoids
63
+ // a thrown SyntaxError for every identifier and timestamp in a record.
64
+ if (/^\s*[[{]/.test(value))
65
+ try {
66
+ const parsed = JSON.parse(value);
67
+ if (parsed && typeof parsed === "object") {
68
+ const sanitized = sanitizeDiagnosticContent(parsed, knownSecrets);
69
+ if (JSON.stringify(parsed) !== JSON.stringify(sanitized))
70
+ value = JSON.stringify(sanitized);
71
+ }
68
72
  }
69
- }
70
- catch { /* preserve ordinary business text */ }
73
+ catch { /* preserve ordinary business text */ }
71
74
  value = value.replace(/data:[\w/+.-]+(?:;[\w=.-]+)*;base64,[A-Za-z0-9+/=]+/g, match => JSON.stringify(binaryMetadata(match.slice(match.indexOf(",") + 1))));
72
75
  const redacted = redactSecretsInString(value)
73
76
  .replace(/([?&#][\w.-]*(?:api[_-]?key|token|secret|password|signature|credential|code|auth)[\w.-]*=)[^&#\s"'<>]+/gi, "$1[credential excluded]")
@@ -23,6 +23,9 @@ export type FirstMonthOfferHeadline = {
23
23
  percentOff: number;
24
24
  /** The cheapest size the offer covers, at its regular monthly price. */
25
25
  fromCents: number;
26
+ /** The size every surface promotes (the $99 plan), at its regular monthly price and its first month. */
27
+ planCents: number;
28
+ firstMonthCents: number;
26
29
  };
27
30
  /** When a window that started at `startedAtMs` closes. */
28
31
  export declare function firstMonthOfferEndsAt(startedAtMs: number): number;
@@ -3,11 +3,12 @@ import { type FirstMonthOfferHeadline } from "./first-month-offer-window.js";
3
3
  export { FIRST_MONTH_OFFER_SEEN_COOKIE, FIRST_MONTH_OFFER_SEEN_MAX_AGE_SECONDS, firstMonthOfferEndsAt, parseFirstMonthOfferStart, type FirstMonthOfferHeadline, } from "./first-month-offer-window.js";
4
4
  /**
5
5
  * The first-month offer (founder, 2026-10-02; widened 2026-10-03 to "all the
6
- * plans above the $49/month plan ... from the $99/month plan upwards"): a new
7
- * customer's first month of any Oxygen size from $99 up costs half its price,
8
- * rounded down to the dollar, so they start on a bigger plan for less and, the
9
- * hope is, keep it. $99 becomes $49, $199 $99, $499 $249, $999 $499 and $1,999
10
- * $999. It is claimable for 24 hours from the first time that person sees it: a
6
+ * plans above the $49/month plan ... from the $99/month plan upwards"; widened
7
+ * again 2026-10-23: "apply the 50% off offer on the first month also on the
8
+ * 49/Month plan"): a new customer's first month of any Oxygen size costs half
9
+ * its price, rounded down to the dollar, so they start for less and, the hope
10
+ * is, keep it. $49 becomes $24, $99 $49, $199 $99, $499 $249, $999 $499 and
11
+ * $1,999 $999. It is claimable for 24 hours from the first time that person sees it: a
11
12
  * browser remembers when it first showed the offer, signup carries that start
12
13
  * onto the new workspace, and checkout applies the discount only inside the
13
14
  * workspace's window.
@@ -21,7 +22,7 @@ export declare const FIRST_MONTH_OFFER: Readonly<{
21
22
  /** Stable machine name, written to Checkout and subscription metadata. */
22
23
  key: "first_month_half";
23
24
  /** The cheapest size it applies to; every dearer size qualifies too. */
24
- minimumPlanKey: "oxygen_99";
25
+ minimumPlanKey: "oxygen_49";
25
26
  /**
26
27
  * The size every surface proposes while the offer runs ("By default it's the
27
28
  * $99/month plan, which is 50% off for the first month"): `/pricing` and the
@@ -56,5 +57,12 @@ export type FirstMonthOfferPrice = {
56
57
  };
57
58
  /** A size's first month under the offer: half its price, rounded down to the dollar ($99 → $49, 50% off). */
58
59
  export declare function firstMonthOfferPrice(planKey?: OxygenPlanKey): FirstMonthOfferPrice;
59
- /** The banner's headline, computed here so the browser never loads the catalog. */
60
+ /**
61
+ * The banner's headline, computed here so the browser never loads the catalog:
62
+ * the smallest discount any covered size gives ($49 → $24 is 51%, the others
63
+ * 50%), so it never claims more than a plan gives, and the size it promotes.
64
+ * The $99 plan leads (current chat, 2026-10-23: "we should still promote mainly
65
+ * the 99/month plan as the primary point but they have the option to select the
66
+ * lower tier"); the $49 plan is half off too, chosen on the plans.
67
+ */
60
68
  export declare function firstMonthOfferHeadline(): FirstMonthOfferHeadline;
@@ -3,11 +3,12 @@ import { FIRST_MONTH_OFFER_WINDOW_MS } from "./first-month-offer-window.js";
3
3
  export { FIRST_MONTH_OFFER_SEEN_COOKIE, FIRST_MONTH_OFFER_SEEN_MAX_AGE_SECONDS, firstMonthOfferEndsAt, parseFirstMonthOfferStart, } from "./first-month-offer-window.js";
4
4
  /**
5
5
  * The first-month offer (founder, 2026-10-02; widened 2026-10-03 to "all the
6
- * plans above the $49/month plan ... from the $99/month plan upwards"): a new
7
- * customer's first month of any Oxygen size from $99 up costs half its price,
8
- * rounded down to the dollar, so they start on a bigger plan for less and, the
9
- * hope is, keep it. $99 becomes $49, $199 $99, $499 $249, $999 $499 and $1,999
10
- * $999. It is claimable for 24 hours from the first time that person sees it: a
6
+ * plans above the $49/month plan ... from the $99/month plan upwards"; widened
7
+ * again 2026-10-23: "apply the 50% off offer on the first month also on the
8
+ * 49/Month plan"): a new customer's first month of any Oxygen size costs half
9
+ * its price, rounded down to the dollar, so they start for less and, the hope
10
+ * is, keep it. $49 becomes $24, $99 $49, $199 $99, $499 $249, $999 $499 and
11
+ * $1,999 $999. It is claimable for 24 hours from the first time that person sees it: a
11
12
  * browser remembers when it first showed the offer, signup carries that start
12
13
  * onto the new workspace, and checkout applies the discount only inside the
13
14
  * workspace's window.
@@ -21,7 +22,7 @@ export const FIRST_MONTH_OFFER = Object.freeze({
21
22
  /** Stable machine name, written to Checkout and subscription metadata. */
22
23
  key: "first_month_half",
23
24
  /** The cheapest size it applies to; every dearer size qualifies too. */
24
- minimumPlanKey: "oxygen_99",
25
+ minimumPlanKey: "oxygen_49",
25
26
  /**
26
27
  * The size every surface proposes while the offer runs ("By default it's the
27
28
  * $99/month plan, which is 50% off for the first month"): `/pricing` and the
@@ -62,8 +63,21 @@ export function firstMonthOfferPrice(planKey = FIRST_MONTH_OFFER.minimumPlanKey)
62
63
  percentOff: Math.floor(((regularCents - firstMonthCents) / regularCents) * 100),
63
64
  };
64
65
  }
65
- /** The banner's headline, computed here so the browser never loads the catalog. */
66
+ /**
67
+ * The banner's headline, computed here so the browser never loads the catalog:
68
+ * the smallest discount any covered size gives ($49 → $24 is 51%, the others
69
+ * 50%), so it never claims more than a plan gives, and the size it promotes.
70
+ * The $99 plan leads (current chat, 2026-10-23: "we should still promote mainly
71
+ * the 99/month plan as the primary point but they have the option to select the
72
+ * lower tier"); the $49 plan is half off too, chosen on the plans.
73
+ */
66
74
  export function firstMonthOfferHeadline() {
67
- const price = firstMonthOfferPrice();
68
- return { percentOff: price.percentOff, fromCents: price.regularCents };
75
+ const prices = FIRST_MONTH_OFFER_PLAN_KEYS.map((planKey) => firstMonthOfferPrice(planKey));
76
+ const promoted = firstMonthOfferPrice(FIRST_MONTH_OFFER.defaultPlanKey);
77
+ return {
78
+ percentOff: Math.min(...prices.map((price) => price.percentOff)),
79
+ fromCents: firstMonthOfferPrice().regularCents,
80
+ planCents: promoted.regularCents,
81
+ firstMonthCents: promoted.firstMonthCents,
82
+ };
69
83
  }
@@ -10,6 +10,8 @@ export type GuidedOnboardingResearch = {
10
10
  turn_id?: string;
11
11
  results_turn_id?: string;
12
12
  results_pending?: boolean;
13
+ /** The lead list OXYGEN sources beside the research (onboarding-leads.ts). */
14
+ leads?: import("./onboarding-leads.js").OnboardingLeadsProgress;
13
15
  };
14
16
  export type GuidedActivationPurpose = typeof GUIDED_ACTIVATION_PURPOSES[number];
15
17
  export type GuidedActivationRoutine = {
@@ -1,2 +1,2 @@
1
- /** True when a lowercase bare host is a listing platform (or its subdomain) or a freemail host. */
1
+ /** True when a lowercase bare host is a listing platform (or its subdomain or country domain) or a freemail host. */
2
2
  export declare function isListedWebsitePlatform(host: string): boolean;
@@ -19,8 +19,30 @@ const LISTED_WEBSITE_PLATFORM_HOSTS = [
19
19
  "tripadvisor.com", "amazon.com", "etsy.com", "ebay.com",
20
20
  "wikipedia.org", "glassdoor.com", "zoominfo.com", "g2.com",
21
21
  ];
22
- /** True when a lowercase bare host is a listing platform (or its subdomain) or a freemail host. */
22
+ /**
23
+ * Listing platforms that also serve each market from a country domain (`glassdoor.co.uk`,
24
+ * `amazon.de`, `tripadvisor.com.au`). Only these brands, never every listed label: a
25
+ * company may legitimately own `medium.de` or `cal.de`.
26
+ */
27
+ const COUNTRY_DOMAIN_PLATFORM_BRANDS = ["amazon", "ebay", "glassdoor", "google", "pinterest", "tripadvisor", "yelp"];
28
+ /** A country-code suffix: `de`, `co.uk`, `com.au`, `ne.jp`. */
29
+ const COUNTRY_SUFFIX = /^(?:[a-z]{2}|(?:co|com|net|org|ne|or|ac|gob|gov)\.[a-z]{2})$/;
30
+ function isCountryDomainPlatform(host) {
31
+ const labels = host.split(".");
32
+ // The brand is the registrable label: the one before a one- or two-label country suffix.
33
+ for (const suffixLength of [1, 2]) {
34
+ const brandIndex = labels.length - suffixLength - 1;
35
+ if (brandIndex < 0)
36
+ continue;
37
+ if (COUNTRY_DOMAIN_PLATFORM_BRANDS.includes(labels[brandIndex])
38
+ && COUNTRY_SUFFIX.test(labels.slice(brandIndex + 1).join(".")))
39
+ return true;
40
+ }
41
+ return false;
42
+ }
43
+ /** True when a lowercase bare host is a listing platform (or its subdomain or country domain) or a freemail host. */
23
44
  export function isListedWebsitePlatform(host) {
24
45
  return LISTED_WEBSITE_PLATFORM_HOSTS.some((platform) => host === platform || host.endsWith(`.${platform}`))
46
+ || isCountryDomainPlatform(host)
25
47
  || isFreemailDomain(host);
26
48
  }
@@ -13,9 +13,13 @@ export type LogContext = {
13
13
  item_id?: string | undefined;
14
14
  worker_id?: string | undefined;
15
15
  surface?: "mcp" | "cli" | "web" | "worker" | undefined;
16
+ /** The browser's PostHog session (apps/web `analytics/posthog-session`): finds the replay. */
17
+ posthog_session_id?: string | undefined;
16
18
  };
17
19
  export declare function withLogContext<T>(ctx: LogContext, fn: () => T): T;
18
20
  export declare function enterLogContext(ctx: LogContext): void;
21
+ /** The active request's PostHog session, so its server-side events join the replay. */
22
+ export declare function currentPostHogSessionId(): string | undefined;
19
23
  export declare function logLevelForHttpStatus(status: number): LogLevel;
20
24
  export type LogSink = (record: Record<string, unknown>) => void;
21
25
  export declare function takeWebLogVolumeCount(): number;
@@ -34,6 +34,10 @@ export function enterLogContext(ctx) {
34
34
  function getLogContext() {
35
35
  return store.getStore() ?? {};
36
36
  }
37
+ /** The active request's PostHog session, so its server-side events join the replay. */
38
+ export function currentPostHogSessionId() {
39
+ return store.getStore()?.posthog_session_id;
40
+ }
37
41
  const CANONICAL_SURFACES = new Set(["mcp", "cli", "web", "worker"]);
38
42
  // Call-site fields deliberately win over the ambient context (a caller must be able to
39
43
  // override org_id, provider, run_id...). `surface` is the one exception: it is a RESERVED
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Onboarding's lead list (current chat, 2026-10-23: "We'll directly source them
3
+ * a lead list of decision makers with their email, linkedin and phone from icp
4
+ * based on the research. and we do this before the plays are being proposed";
5
+ * "Let's do 1k it costs us literally nothing but really make sure it's really
6
+ * fast. Source the leads from blitz").
7
+ *
8
+ * While the onboarding research runs, OXYGEN sources up to a thousand decision
9
+ * makers matching the workspace's ICP from Blitz into a "Lead list" table, then
10
+ * finds each one's work email and phone on Blitz. Blitz is a fixed monthly
11
+ * subscription, so the calls cost OXYGEN nothing at the margin; the credits below
12
+ * are their face value, journalled as OXYGEN-funded and never charged to the
13
+ * workspace. The research's report names the list, and the plays build on it.
14
+ */
15
+ /** How many decision makers the list holds at most. */
16
+ export declare const ONBOARDING_LEADS_TARGET = 1000;
17
+ /** The only tools the lead list's funding covers: people search, then email and phone on each person. */
18
+ export declare const ONBOARDING_LEADS_TOOL_IDS: readonly ["blitzapi.people_search", "blitzapi.person_enrich", "blitzapi.phone_enrich"];
19
+ /**
20
+ * Face value OXYGEN funds per workspace, ever: 20 search pages at 1 credit, then
21
+ * 1.5 per email and 10 per phone lookup for a thousand people (11,520), with room
22
+ * for a restarted job's retries.
23
+ */
24
+ export declare const ONBOARDING_LEADS_MAX_CREDITS = 13000;
25
+ /** Lookups in flight at once: Blitz allows 20 a second across every caller. */
26
+ export declare const ONBOARDING_LEADS_ENRICH_CONCURRENCY = 8;
27
+ /** The table the list lands in. */
28
+ export declare const ONBOARDING_LEADS_TABLE = "Lead list";
29
+ export declare const ONBOARDING_LEADS_UPSERT_KEY = "lead_key";
30
+ export declare const ONBOARDING_LEADS_COLUMNS: ReadonlyArray<{
31
+ key: string;
32
+ label: string;
33
+ dataType: "text";
34
+ }>;
35
+ /** The list's progress, kept on the onboarding's research record. */
36
+ export type OnboardingLeadsProgress = {
37
+ state: "sourcing" | "enriching" | "done" | "failed";
38
+ /** When this attempt claimed the job; a stale claim is taken over. */
39
+ claimed_at: string;
40
+ updated_at: string;
41
+ table_id?: string;
42
+ /** The table's page, for the report's link. */
43
+ table_url?: string;
44
+ sourced?: number;
45
+ emails?: number;
46
+ phones?: number;
47
+ /** The ICP sentence the search was planned from. */
48
+ prompt?: string;
49
+ fault?: string;
50
+ };
51
+ /** A claim not updated for this long belongs to a worker that stopped. */
52
+ export declare const ONBOARDING_LEADS_STALE_MS: number;
53
+ /** The workspace's ICP as the signup research writes it (company profile `icp`). */
54
+ export type OnboardingLeadsIcp = {
55
+ buyer_titles?: unknown;
56
+ segments?: unknown;
57
+ company_size?: unknown;
58
+ geographies?: unknown;
59
+ };
60
+ /**
61
+ * The people search request in words, for the people search planner: who
62
+ * decides, at which companies, how big, where. Null when the ICP names no buyer
63
+ * and no segment, so there is nothing to search for.
64
+ */
65
+ export declare function onboardingLeadsPrompt(icp: OnboardingLeadsIcp | null | undefined): string | null;
66
+ /** The report's line naming the list, or null when there is none to name. */
67
+ export declare function onboardingLeadsReportLine(leads: OnboardingLeadsProgress | undefined): string | null;
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Onboarding's lead list (current chat, 2026-10-23: "We'll directly source them
3
+ * a lead list of decision makers with their email, linkedin and phone from icp
4
+ * based on the research. and we do this before the plays are being proposed";
5
+ * "Let's do 1k it costs us literally nothing but really make sure it's really
6
+ * fast. Source the leads from blitz").
7
+ *
8
+ * While the onboarding research runs, OXYGEN sources up to a thousand decision
9
+ * makers matching the workspace's ICP from Blitz into a "Lead list" table, then
10
+ * finds each one's work email and phone on Blitz. Blitz is a fixed monthly
11
+ * subscription, so the calls cost OXYGEN nothing at the margin; the credits below
12
+ * are their face value, journalled as OXYGEN-funded and never charged to the
13
+ * workspace. The research's report names the list, and the plays build on it.
14
+ */
15
+ /** How many decision makers the list holds at most. */
16
+ export const ONBOARDING_LEADS_TARGET = 1_000;
17
+ /** The only tools the lead list's funding covers: people search, then email and phone on each person. */
18
+ export const ONBOARDING_LEADS_TOOL_IDS = ["blitzapi.people_search", "blitzapi.person_enrich", "blitzapi.phone_enrich"];
19
+ /**
20
+ * Face value OXYGEN funds per workspace, ever: 20 search pages at 1 credit, then
21
+ * 1.5 per email and 10 per phone lookup for a thousand people (11,520), with room
22
+ * for a restarted job's retries.
23
+ */
24
+ export const ONBOARDING_LEADS_MAX_CREDITS = 13_000;
25
+ /** Lookups in flight at once: Blitz allows 20 a second across every caller. */
26
+ export const ONBOARDING_LEADS_ENRICH_CONCURRENCY = 8;
27
+ /** The table the list lands in. */
28
+ export const ONBOARDING_LEADS_TABLE = "Lead list";
29
+ export const ONBOARDING_LEADS_UPSERT_KEY = "lead_key";
30
+ export const ONBOARDING_LEADS_COLUMNS = [
31
+ ["name", "Name"],
32
+ ["title", "Title"],
33
+ ["company", "Company"],
34
+ ["company_domain", "Company domain"],
35
+ ["linkedin_url", "LinkedIn URL"],
36
+ ["email", "Email"],
37
+ ["phone", "Phone"],
38
+ ["location", "Location"],
39
+ [ONBOARDING_LEADS_UPSERT_KEY, "Lead key"],
40
+ ].map(([key, label]) => ({ key, label, dataType: "text" }));
41
+ /** A claim not updated for this long belongs to a worker that stopped. */
42
+ export const ONBOARDING_LEADS_STALE_MS = 5 * 60_000;
43
+ function texts(value, max) {
44
+ const list = Array.isArray(value) ? value : typeof value === "string" ? [value] : [];
45
+ return list.filter((item) => typeof item === "string")
46
+ .map((item) => item.replace(/\s+/g, " ").trim()).filter(Boolean).slice(0, max);
47
+ }
48
+ /**
49
+ * The people search request in words, for the people search planner: who
50
+ * decides, at which companies, how big, where. Null when the ICP names no buyer
51
+ * and no segment, so there is nothing to search for.
52
+ */
53
+ export function onboardingLeadsPrompt(icp) {
54
+ const titles = texts(icp?.buyer_titles, 12);
55
+ const segments = texts(icp?.segments, 4);
56
+ if (titles.length === 0 && segments.length === 0)
57
+ return null;
58
+ const size = texts(icp?.company_size, 1)[0];
59
+ const places = texts(icp?.geographies, 6);
60
+ const who = titles.length ? titles.join(", ") : "Founders, CEOs and heads of sales";
61
+ return [
62
+ `${ONBOARDING_LEADS_TARGET} decision makers: ${who}`,
63
+ segments.length ? ` at ${segments.join("; ")} companies` : "",
64
+ size ? `, ${size}` : "",
65
+ places.length ? `, in ${places.join(", ")}` : "",
66
+ ".",
67
+ ].join("");
68
+ }
69
+ /** The report's line naming the list, or null when there is none to name. */
70
+ export function onboardingLeadsReportLine(leads) {
71
+ if (!leads?.table_id || !leads.sourced)
72
+ return null;
73
+ const where = leads.table_url ? ` (${leads.table_url})` : "";
74
+ const contact = leads.state === "done"
75
+ ? `${leads.emails ?? 0} with a work email and ${leads.phones ?? 0} with a phone`
76
+ : "their work emails and phones are being found now";
77
+ return `[Lead list] OXYGEN sourced ${leads.sourced} decision makers matching the ICP into the "${ONBOARDING_LEADS_TABLE}" table${where}: ${contact}.`;
78
+ }
@@ -58,3 +58,22 @@ export declare function onboardingResearchToolAllowed(toolId: unknown): boolean;
58
58
  export declare const ONBOARDING_RESEARCH_HUB_SLUGS: readonly ["company", "offers", "icp", "plays", "signals", "competitors", "team"];
59
59
  /** Knowledge page types a research sub-agent may not write: canonical voice and positioning stay proposal-gated. */
60
60
  export declare const ONBOARDING_RESEARCH_DENIED_PAGE_TYPES: readonly ["voice", "brand", "positioning", "message_playbook", "playbook"];
61
+ export type OnboardingResearchHubPage = {
62
+ slug: (typeof ONBOARDING_RESEARCH_HUB_SLUGS)[number];
63
+ title: string;
64
+ type: "entity" | "topic";
65
+ status: "draft";
66
+ summary: string;
67
+ body: string;
68
+ };
69
+ /**
70
+ * The seven hub pages the research links its pages to, written by the server
71
+ * before the research turn starts. The turn's first model call wrote them, and
72
+ * the researchers waited on that call: 9.4 s of a 41 s research in production
73
+ * (2026-10-23), for pages that only restate the company and link each other.
74
+ */
75
+ export declare function onboardingResearchHubPages(company: {
76
+ name?: string | null;
77
+ website?: string | null;
78
+ linkedin_url?: string | null;
79
+ }): OnboardingResearchHubPage[];
@@ -75,3 +75,36 @@ export function onboardingResearchToolAllowed(toolId) {
75
75
  export const ONBOARDING_RESEARCH_HUB_SLUGS = ["company", "offers", "icp", "plays", "signals", "competitors", "team"];
76
76
  /** Knowledge page types a research sub-agent may not write: canonical voice and positioning stay proposal-gated. */
77
77
  export const ONBOARDING_RESEARCH_DENIED_PAGE_TYPES = ["voice", "brand", "positioning", "message_playbook", "playbook"];
78
+ const HUB_TOPICS = [
79
+ { slug: "offers", title: "Offers", collects: "what the company sells, to whom and at what price" },
80
+ { slug: "icp", title: "ICP & buyers", collects: "the companies that fit best and the people who buy" },
81
+ { slug: "plays", title: "Outbound plays", collects: "the outbound plays worth running first" },
82
+ { slug: "signals", title: "Signals", collects: "the events that make a company ready to buy now" },
83
+ { slug: "competitors", title: "Competitors", collects: "who the company competes with and how it differs" },
84
+ { slug: "team", title: "Team & sales", collects: "the company's people and how it sells today" },
85
+ ];
86
+ /**
87
+ * The seven hub pages the research links its pages to, written by the server
88
+ * before the research turn starts. The turn's first model call wrote them, and
89
+ * the researchers waited on that call: 9.4 s of a 41 s research in production
90
+ * (2026-10-23), for pages that only restate the company and link each other.
91
+ */
92
+ export function onboardingResearchHubPages(company) {
93
+ const name = company.name?.trim() || "Your company";
94
+ const facts = [
95
+ company.website?.trim() ? `Website: ${company.website.trim()}` : null,
96
+ company.linkedin_url?.trim() ? `LinkedIn: ${company.linkedin_url.trim()}` : null,
97
+ ].filter((line) => line !== null);
98
+ return [
99
+ {
100
+ slug: "company", title: name, type: "entity", status: "draft",
101
+ summary: `${name}: the company this workspace sells for.`,
102
+ body: [`# ${name}`, ...facts, "", ...HUB_TOPICS.map((hub) => `- [[${hub.slug}]]: ${hub.collects}`)].join("\n"),
103
+ },
104
+ ...HUB_TOPICS.map((hub) => ({
105
+ slug: hub.slug, title: hub.title, type: "topic", status: "draft",
106
+ summary: `${hub.title} for ${name}: ${hub.collects}.`,
107
+ body: `# ${hub.title}\nThis hub collects ${hub.collects} for [[company]].`,
108
+ })),
109
+ ];
110
+ }