@oxygen-agent/cli 1.1014.2213 → 1.1015.29

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 (154) hide show
  1. package/README.md +1 -1
  2. package/dist/browser-login.js +1 -1
  3. package/dist/cli-output.js +1 -1
  4. package/dist/command-manifest.js +8 -0
  5. package/dist/command-support.js +1 -1
  6. package/dist/commands/admin.js +1 -1
  7. package/dist/commands/directory.js +1 -1
  8. package/dist/commands/domains.js +7 -3
  9. package/dist/commands/email-templates.js +1 -1
  10. package/dist/commands/mailboxes.js +1 -1
  11. package/dist/commands/posts.js +1 -1
  12. package/dist/commands/sequences.js +2 -2
  13. package/dist/commands/workflows.js +1 -1
  14. package/dist/sender-limits-flags.js +1 -1
  15. package/dist/sequence-start-at.js +1 -1
  16. package/dist/sequences-content-commands.js +1 -1
  17. package/dist/sequences-newsletter-commands.js +1 -1
  18. package/dist/sequences-test-send-command.js +1 -1
  19. package/node_modules/@oxygen/formula/dist/value-cleaners.d.ts +1 -1
  20. package/node_modules/@oxygen/formula/dist/value-cleaners.js +2 -2
  21. package/node_modules/@oxygen/shared/dist/{reply-oxygent.js → agents/reply-oxygent.js} +1 -1
  22. package/node_modules/@oxygen/shared/dist/{agent-session-schedule.js → agents/session-schedule.js} +2 -2
  23. package/node_modules/@oxygen/shared/dist/{agent-sessions.d.ts → agents/sessions.d.ts} +3 -3
  24. package/node_modules/@oxygen/shared/dist/{agent-sessions.js → agents/sessions.js} +10 -10
  25. package/node_modules/@oxygen/shared/dist/{teammate-routines.d.ts → agents/teammate-routines.d.ts} +2 -2
  26. package/node_modules/@oxygen/shared/dist/{teammate-routines.js → agents/teammate-routines.js} +4 -4
  27. package/node_modules/@oxygen/shared/dist/{teammates.js → agents/teammates.js} +3 -3
  28. package/node_modules/@oxygen/shared/dist/billing.js +1 -1
  29. package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.js +2 -0
  30. package/node_modules/@oxygen/shared/dist/company-url-identity.js +2 -2
  31. package/node_modules/@oxygen/shared/dist/contracts/sender-limits.js +1 -1
  32. package/node_modules/@oxygen/shared/dist/contracts/teammates.js +4 -4
  33. package/node_modules/@oxygen/shared/dist/diagnostic-spool.js +102 -14
  34. package/node_modules/@oxygen/shared/dist/feature-gates.d.ts +3 -3
  35. package/node_modules/@oxygen/shared/dist/feature-gates.js +3 -3
  36. package/node_modules/@oxygen/shared/dist/index.d.ts +28 -28
  37. package/node_modules/@oxygen/shared/dist/index.js +28 -28
  38. package/node_modules/@oxygen/shared/dist/knowledge-bootstrap.d.ts +1 -1
  39. package/node_modules/@oxygen/shared/dist/knowledge-bootstrap.js +2 -2
  40. package/node_modules/@oxygen/shared/dist/mailboxes/email-deliverability-policy.d.ts +1 -1
  41. package/node_modules/@oxygen/shared/dist/{mailbox-import.js → mailboxes/import.js} +1 -1
  42. package/node_modules/@oxygen/shared/dist/{sending-domain-faults.d.ts → mailboxes/sending-domain-faults.d.ts} +1 -1
  43. package/node_modules/@oxygen/shared/dist/{sending-domain-faults.js → mailboxes/sending-domain-faults.js} +1 -1
  44. package/node_modules/@oxygen/shared/dist/{listed-website-platforms.js → marketing/listed-website-platforms.js} +1 -1
  45. package/node_modules/@oxygen/shared/dist/{newsletter-test-send.d.ts → marketing/newsletter-test-send.d.ts} +1 -1
  46. package/node_modules/@oxygen/shared/dist/{newsletter-test-send.js → marketing/newsletter-test-send.js} +1 -1
  47. package/node_modules/@oxygen/shared/dist/mcp-event-contract.js +2 -2
  48. package/node_modules/@oxygen/shared/dist/network-mining-approval.js +1 -1
  49. package/node_modules/@oxygen/shared/dist/onboarding/plays.d.ts +1 -0
  50. package/node_modules/@oxygen/shared/dist/onboarding/plays.js +13 -0
  51. package/node_modules/@oxygen/shared/dist/onboarding/research.d.ts +20 -12
  52. package/node_modules/@oxygen/shared/dist/onboarding/research.js +20 -12
  53. package/node_modules/@oxygen/shared/dist/onboarding/signup-lead-payload.js +1 -1
  54. package/node_modules/@oxygen/shared/dist/sequence-internals/esp-policy.js +1 -1
  55. package/node_modules/@oxygen/shared/dist/sequences/bulk-email-pacing.js +1 -1
  56. package/node_modules/@oxygen/shared/dist/{company-reply-pause.js → sequences/company-reply-pause.js} +1 -1
  57. package/node_modules/@oxygen/shared/dist/{dnc-identities.js → sequences/dnc-identities.js} +1 -1
  58. package/node_modules/@oxygen/shared/dist/{email-delivery.js → sequences/email-delivery.js} +1 -1
  59. package/node_modules/@oxygen/shared/dist/{email-tracking-token.d.ts → sequences/email-tracking-token.d.ts} +1 -1
  60. package/node_modules/@oxygen/shared/dist/{email-tracking-token.js → sequences/email-tracking-token.js} +1 -1
  61. package/node_modules/@oxygen/shared/dist/{email-unsubscribe-token.d.ts → sequences/email-unsubscribe-token.d.ts} +1 -1
  62. package/node_modules/@oxygen/shared/dist/{email-unsubscribe-token.js → sequences/email-unsubscribe-token.js} +1 -1
  63. package/node_modules/@oxygen/shared/dist/{sequence-failures.js → sequences/failures.js} +3 -3
  64. package/node_modules/@oxygen/shared/dist/{sequence-hubspot-sync.d.ts → sequences/hubspot-sync.d.ts} +1 -1
  65. package/node_modules/@oxygen/shared/dist/{sequence-hubspot-sync.js → sequences/hubspot-sync.js} +1 -1
  66. package/node_modules/@oxygen/shared/dist/{linkedin-quota-denial.d.ts → sequences/linkedin-quota-denial.d.ts} +1 -1
  67. package/node_modules/@oxygen/shared/dist/{linkedin-quota-denial.js → sequences/linkedin-quota-denial.js} +3 -3
  68. package/node_modules/@oxygen/shared/dist/{linkedin-sequences.d.ts → sequences/linkedin-sequences.d.ts} +1 -1
  69. package/node_modules/@oxygen/shared/dist/{linkedin-sequences.js → sequences/linkedin-sequences.js} +1 -1
  70. package/node_modules/@oxygen/shared/dist/sequences/sending-limits.js +1 -1
  71. package/node_modules/@oxygen/shared/dist/sequences/sending-schedule.d.ts +1 -1
  72. package/node_modules/@oxygen/shared/dist/{sequences.d.ts → sequences/sequences.d.ts} +1 -1
  73. package/node_modules/@oxygen/shared/dist/{sequences.js → sequences/sequences.js} +3 -3
  74. package/node_modules/@oxygen/shared/dist/{suppression-entries.js → sequences/suppression-entries.js} +1 -1
  75. package/node_modules/@oxygen/shared/dist/version.generated.d.ts +1 -1
  76. package/node_modules/@oxygen/shared/dist/version.generated.js +1 -1
  77. package/node_modules/@oxygen/shared/dist/{workspace-event-catalog.d.ts → workflows/workspace-event-catalog.d.ts} +1 -1
  78. package/node_modules/@oxygen/shared/dist/{workspace-event-catalog.js → workflows/workspace-event-catalog.js} +9 -9
  79. package/node_modules/@oxygen/shared/package.json +0 -55
  80. package/package.json +1 -1
  81. /package/node_modules/@oxygen/shared/dist/{reply-oxygent.d.ts → agents/reply-oxygent.d.ts} +0 -0
  82. /package/node_modules/@oxygen/shared/dist/{agent-session-schedule.d.ts → agents/session-schedule.d.ts} +0 -0
  83. /package/node_modules/@oxygen/shared/dist/{teammate-groups.d.ts → agents/teammate-groups.d.ts} +0 -0
  84. /package/node_modules/@oxygen/shared/dist/{teammate-groups.js → agents/teammate-groups.js} +0 -0
  85. /package/node_modules/@oxygen/shared/dist/{teammate-messages.d.ts → agents/teammate-messages.d.ts} +0 -0
  86. /package/node_modules/@oxygen/shared/dist/{teammate-messages.js → agents/teammate-messages.js} +0 -0
  87. /package/node_modules/@oxygen/shared/dist/{teammate-notes.d.ts → agents/teammate-notes.d.ts} +0 -0
  88. /package/node_modules/@oxygen/shared/dist/{teammate-notes.js → agents/teammate-notes.js} +0 -0
  89. /package/node_modules/@oxygen/shared/dist/{teammate-tasks.d.ts → agents/teammate-tasks.d.ts} +0 -0
  90. /package/node_modules/@oxygen/shared/dist/{teammate-tasks.js → agents/teammate-tasks.js} +0 -0
  91. /package/node_modules/@oxygen/shared/dist/{teammates.d.ts → agents/teammates.d.ts} +0 -0
  92. /package/node_modules/@oxygen/shared/dist/{workspace-agents.d.ts → agents/workspace-agents.d.ts} +0 -0
  93. /package/node_modules/@oxygen/shared/dist/{workspace-agents.js → agents/workspace-agents.js} +0 -0
  94. /package/node_modules/@oxygen/shared/dist/{cli-login-code.d.ts → auth/cli-login-code.d.ts} +0 -0
  95. /package/node_modules/@oxygen/shared/dist/{cli-login-code.js → auth/cli-login-code.js} +0 -0
  96. /package/node_modules/@oxygen/shared/dist/{signed-token.d.ts → auth/signed-token.d.ts} +0 -0
  97. /package/node_modules/@oxygen/shared/dist/{signed-token.js → auth/signed-token.js} +0 -0
  98. /package/node_modules/@oxygen/shared/dist/{mailbox-egress-ownership.d.ts → mailboxes/egress-ownership.d.ts} +0 -0
  99. /package/node_modules/@oxygen/shared/dist/{mailbox-egress-ownership.js → mailboxes/egress-ownership.js} +0 -0
  100. /package/node_modules/@oxygen/shared/dist/{egress-transport-readiness.d.ts → mailboxes/egress-transport-readiness.d.ts} +0 -0
  101. /package/node_modules/@oxygen/shared/dist/{egress-transport-readiness.js → mailboxes/egress-transport-readiness.js} +0 -0
  102. /package/node_modules/@oxygen/shared/dist/{email-campaign-ramp.d.ts → mailboxes/email-campaign-ramp.d.ts} +0 -0
  103. /package/node_modules/@oxygen/shared/dist/{email-campaign-ramp.js → mailboxes/email-campaign-ramp.js} +0 -0
  104. /package/node_modules/@oxygen/shared/dist/{email-infrastructure-policy.d.ts → mailboxes/email-infrastructure-policy.d.ts} +0 -0
  105. /package/node_modules/@oxygen/shared/dist/{email-infrastructure-policy.js → mailboxes/email-infrastructure-policy.js} +0 -0
  106. /package/node_modules/@oxygen/shared/dist/{freemail-domains.d.ts → mailboxes/freemail-domains.d.ts} +0 -0
  107. /package/node_modules/@oxygen/shared/dist/{freemail-domains.js → mailboxes/freemail-domains.js} +0 -0
  108. /package/node_modules/@oxygen/shared/dist/{mailbox-import.d.ts → mailboxes/import.d.ts} +0 -0
  109. /package/node_modules/@oxygen/shared/dist/{directory.d.ts → marketing/directory.d.ts} +0 -0
  110. /package/node_modules/@oxygen/shared/dist/{directory.js → marketing/directory.js} +0 -0
  111. /package/node_modules/@oxygen/shared/dist/{listed-website-platforms.d.ts → marketing/listed-website-platforms.d.ts} +0 -0
  112. /package/node_modules/@oxygen/shared/dist/{newsletter-analytics.d.ts → marketing/newsletter-analytics.d.ts} +0 -0
  113. /package/node_modules/@oxygen/shared/dist/{newsletter-analytics.js → marketing/newsletter-analytics.js} +0 -0
  114. /package/node_modules/@oxygen/shared/dist/{inbox-avatar-url.d.ts → messages/avatar-url.d.ts} +0 -0
  115. /package/node_modules/@oxygen/shared/dist/{inbox-avatar-url.js → messages/avatar-url.js} +0 -0
  116. /package/node_modules/@oxygen/shared/dist/{conversation-lineage.d.ts → messages/conversation-lineage.d.ts} +0 -0
  117. /package/node_modules/@oxygen/shared/dist/{conversation-lineage.js → messages/conversation-lineage.js} +0 -0
  118. /package/node_modules/@oxygen/shared/dist/{email-classification-scope.d.ts → messages/email-classification-scope.d.ts} +0 -0
  119. /package/node_modules/@oxygen/shared/dist/{email-classification-scope.js → messages/email-classification-scope.js} +0 -0
  120. /package/node_modules/@oxygen/shared/dist/{linkedin-message-deletion.d.ts → messages/linkedin-message-deletion.d.ts} +0 -0
  121. /package/node_modules/@oxygen/shared/dist/{linkedin-message-deletion.js → messages/linkedin-message-deletion.js} +0 -0
  122. /package/node_modules/@oxygen/shared/dist/{call-outcomes.d.ts → sequences/call-outcomes.d.ts} +0 -0
  123. /package/node_modules/@oxygen/shared/dist/{call-outcomes.js → sequences/call-outcomes.js} +0 -0
  124. /package/node_modules/@oxygen/shared/dist/{company-reply-pause.d.ts → sequences/company-reply-pause.d.ts} +0 -0
  125. /package/node_modules/@oxygen/shared/dist/{sequence-crm-events.d.ts → sequences/crm-events.d.ts} +0 -0
  126. /package/node_modules/@oxygen/shared/dist/{sequence-crm-events.js → sequences/crm-events.js} +0 -0
  127. /package/node_modules/@oxygen/shared/dist/{dial-guardrail-overrides.d.ts → sequences/dial-guardrail-overrides.d.ts} +0 -0
  128. /package/node_modules/@oxygen/shared/dist/{dial-guardrail-overrides.js → sequences/dial-guardrail-overrides.js} +0 -0
  129. /package/node_modules/@oxygen/shared/dist/{dnc-identities.d.ts → sequences/dnc-identities.d.ts} +0 -0
  130. /package/node_modules/@oxygen/shared/dist/{dnc-rules.d.ts → sequences/dnc-rules.d.ts} +0 -0
  131. /package/node_modules/@oxygen/shared/dist/{dnc-rules.js → sequences/dnc-rules.js} +0 -0
  132. /package/node_modules/@oxygen/shared/dist/{email-delivery.d.ts → sequences/email-delivery.d.ts} +0 -0
  133. /package/node_modules/@oxygen/shared/dist/{email-dsn.d.ts → sequences/email-dsn.d.ts} +0 -0
  134. /package/node_modules/@oxygen/shared/dist/{email-dsn.js → sequences/email-dsn.js} +0 -0
  135. /package/node_modules/@oxygen/shared/dist/{email-hard-bounce.d.ts → sequences/email-hard-bounce.d.ts} +0 -0
  136. /package/node_modules/@oxygen/shared/dist/{email-hard-bounce.js → sequences/email-hard-bounce.js} +0 -0
  137. /package/node_modules/@oxygen/shared/dist/{sequence-failures.d.ts → sequences/failures.d.ts} +0 -0
  138. /package/node_modules/@oxygen/shared/dist/{sequence-lifecycle.d.ts → sequences/lifecycle.d.ts} +0 -0
  139. /package/node_modules/@oxygen/shared/dist/{sequence-lifecycle.js → sequences/lifecycle.js} +0 -0
  140. /package/node_modules/@oxygen/shared/dist/{networks.d.ts → sequences/networks.d.ts} +0 -0
  141. /package/node_modules/@oxygen/shared/dist/{networks.js → sequences/networks.js} +0 -0
  142. /package/node_modules/@oxygen/shared/dist/{suppression-entries.d.ts → sequences/suppression-entries.d.ts} +0 -0
  143. /package/node_modules/@oxygen/shared/dist/{sequence-template.d.ts → sequences/template.d.ts} +0 -0
  144. /package/node_modules/@oxygen/shared/dist/{sequence-template.js → sequences/template.js} +0 -0
  145. /package/node_modules/@oxygen/shared/dist/{sequence-terminal-events.d.ts → sequences/terminal-events.d.ts} +0 -0
  146. /package/node_modules/@oxygen/shared/dist/{sequence-terminal-events.js → sequences/terminal-events.js} +0 -0
  147. /package/node_modules/@oxygen/shared/dist/{workflow-mcp-tools.d.ts → workflows/mcp-tools.d.ts} +0 -0
  148. /package/node_modules/@oxygen/shared/dist/{workflow-mcp-tools.js → workflows/mcp-tools.js} +0 -0
  149. /package/node_modules/@oxygen/shared/dist/{workflow-status-change.d.ts → workflows/status-change.d.ts} +0 -0
  150. /package/node_modules/@oxygen/shared/dist/{workflow-status-change.js → workflows/status-change.js} +0 -0
  151. /package/node_modules/@oxygen/shared/dist/{workflow-trigger-label.d.ts → workflows/trigger-label.d.ts} +0 -0
  152. /package/node_modules/@oxygen/shared/dist/{workflow-trigger-label.js → workflows/trigger-label.js} +0 -0
  153. /package/node_modules/@oxygen/shared/dist/{workflow-trigger-metadata.d.ts → workflows/trigger-metadata.d.ts} +0 -0
  154. /package/node_modules/@oxygen/shared/dist/{workflow-trigger-metadata.js → workflows/trigger-metadata.js} +0 -0
@@ -44,7 +44,7 @@
44
44
  * remote resolution would drag a flag client into the published CLI.
45
45
  * - OXYGEN_TRIGGER_DEFAULT_CAPS — (b). Selects log-only vs enforce for the
46
46
  * plan-tier default per-delivery ceiling on autonomous triggers
47
- * (`apps/worker/src/workflow-spend-cap.ts`). Remote control over spend
47
+ * (`apps/worker/src/workflows/spend-cap.ts`). Remote control over spend
48
48
  * ENFORCEMENT means an outage can uncap autonomous credit spend everywhere.
49
49
  * - OXYGEN_BYOK_DAILY_CAPS — (b). Same, for BYOK per-provider daily caps
50
50
  * (`packages/providers/src/provider-fetch.ts`) — external money on the
@@ -60,8 +60,8 @@
60
60
  * flag service being reachable — and "the flag service is unreachable" is exactly
61
61
  * the kind of incident during which you least want the fleet to move.
62
62
  * - OXYGEN_AGENTS_ENABLED — (b). Authorizes autonomous Agent run execution —
63
- * tool authority AND credit spend (`apps/web/src/lib/agent-runtime.ts`,
64
- * `apps/worker/src/agent-cycle.ts`). Same class as publishing.
63
+ * tool authority AND credit spend (`apps/web/src/lib/agents/runtime.ts`,
64
+ * `apps/worker/src/agents/cycle.ts`). Same class as publishing.
65
65
  * - OXYGEN_AGENTS_WORKSPACE_IDS — (b). Which workspaces the "staff" stage of
66
66
  * that execution may run in (`packages/shared/src/agents-enabled.ts`);
67
67
  * production also requires its reviewed PRODUCTION_AGENT_WORKSPACE_IDS.
@@ -1,6 +1,6 @@
1
1
  export { OXYGEN_MINIMUM_CLI_VERSION, OXYGEN_VERSION, } from "./version.js";
2
- export { WORKFLOW_TRIGGER_AUTO_PAUSE_METADATA_KEYS, clearWorkflowTriggerAutoPauseMetadata, } from "./workflow-trigger-metadata.js";
3
- export { WORKFLOW_STATUS_CHANGE_METADATA_KEY, type WorkflowStatusChange, type WorkflowStatusChangeActor, type WorkflowStatusChangeSource, describeWorkflowStatusChange, formatWorkflowStatusChangeTimestamp, parseWorkflowStatusChange, readWorkflowStatusChange, } from "./workflow-status-change.js";
2
+ export { WORKFLOW_TRIGGER_AUTO_PAUSE_METADATA_KEYS, clearWorkflowTriggerAutoPauseMetadata, } from "./workflows/trigger-metadata.js";
3
+ export { WORKFLOW_STATUS_CHANGE_METADATA_KEY, type WorkflowStatusChange, type WorkflowStatusChangeActor, type WorkflowStatusChangeSource, describeWorkflowStatusChange, formatWorkflowStatusChangeTimestamp, parseWorkflowStatusChange, readWorkflowStatusChange, } from "./workflows/status-change.js";
4
4
  export * from "./billing.js";
5
5
  export * from "./visual-render.js";
6
6
  export * from "./billing-anchors.js";
@@ -24,7 +24,7 @@ export * from "./error-message.js";
24
24
  export * from "./sql-rows.js";
25
25
  export * from "./cell-format.js";
26
26
  export * from "./cli-envelope.js";
27
- export * from "./cli-login-code.js";
27
+ export * from "./auth/cli-login-code.js";
28
28
  export * from "./cli-result.js";
29
29
  export * from "./collab.js";
30
30
  export * from "./records/reply-events.js";
@@ -36,11 +36,11 @@ export * from "./copilot-playbooks.js";
36
36
  export * from "./copilot-plan.js";
37
37
  export * from "./credit-guidance.js";
38
38
  export * from "./deploy-env.js";
39
- export * from "./directory.js";
40
- export * from "./email-dsn.js";
41
- export * from "./email-hard-bounce.js";
42
- export * from "./email-tracking-token.js";
43
- export * from "./email-unsubscribe-token.js";
39
+ export * from "./marketing/directory.js";
40
+ export * from "./sequences/email-dsn.js";
41
+ export * from "./sequences/email-hard-bounce.js";
42
+ export * from "./sequences/email-tracking-token.js";
43
+ export * from "./sequences/email-unsubscribe-token.js";
44
44
  export * from "./error-redaction.js";
45
45
  export * from "./onboarding/future-signup-events.js";
46
46
  export * from "./onboarding/future-signup-lifecycle-projection.js";
@@ -60,27 +60,27 @@ export * from "./langfuse.js";
60
60
  export * from "./llm-usage.js";
61
61
  export * from "./posts/linkedin-mentions.js";
62
62
  export * from "./posts/linkedin-post-url.js";
63
- export * from "./linkedin-quota-denial.js";
63
+ export * from "./sequences/linkedin-quota-denial.js";
64
64
  export * from "./tables/linkedin-url.js";
65
- export * from "./linkedin-sequences.js";
65
+ export * from "./sequences/linkedin-sequences.js";
66
66
  export * from "./records/member-columns.js";
67
67
  export * from "./mailboxes/microsoft-consent-url.js";
68
- export * from "./networks.js";
68
+ export * from "./sequences/networks.js";
69
69
  export * from "./person-name.js";
70
70
  export * from "./product-doctrine.js";
71
71
  export * from "./recipes.js";
72
- export * from "./sequence-template.js";
73
- export * from "./sequence-crm-events.js";
74
- export * from "./sequence-failures.js";
75
- export * from "./sequence-hubspot-sync.js";
76
- export * from "./sequence-terminal-events.js";
77
- export * from "./call-outcomes.js";
78
- export * from "./dial-guardrail-overrides.js";
79
- export * from "./sequences.js";
72
+ export * from "./sequences/template.js";
73
+ export * from "./sequences/crm-events.js";
74
+ export * from "./sequences/failures.js";
75
+ export * from "./sequences/hubspot-sync.js";
76
+ export * from "./sequences/terminal-events.js";
77
+ export * from "./sequences/call-outcomes.js";
78
+ export * from "./sequences/dial-guardrail-overrides.js";
79
+ export * from "./sequences/sequences.js";
80
80
  export { ESP_MATCHING_MODES, type EspMatchingMode, DEFAULT_ESP_MATCHING_MODE, isEspMatchingMode, validateEspMatchingSetting, RECIPIENT_ESPS, type RecipientEsp, ESP_ROUTE_BUCKETS, type EspRouteBucket, type EspRouteWeights, type EspSenderExclusion, type EspRoutingPolicy, type EspMatchingSetting, type ResolvedEspPolicy, MAX_ESP_SENDER_EXCLUSIONS, MAX_ESP_ROUTE_WEIGHT, isEspRouteBucket, normalizeEspSenderDomain, espPolicyFromSetting, espRouteWeightsFor, espRouteCandidates, espExcludedSenderDomains, RECIPIENT_ESP_FAMILIES, type RecipientEspFamily, isRecipientEspFamily, isEspGatewayFamily, matchableEspFromFamily, familyFromMxHosts, espFromSpfRecords, inferRecipientEspFamily, inferRecipientEsp, espFromMxHosts, } from "./sequence-internals/esp-policy.js";
81
- export * from "./suppression-entries.js";
82
- export * from "./dnc-identities.js";
83
- export * from "./dnc-rules.js";
81
+ export * from "./sequences/suppression-entries.js";
82
+ export * from "./sequences/dnc-identities.js";
83
+ export * from "./sequences/dnc-rules.js";
84
84
  export * from "./tables/limits.js";
85
85
  export * from "./tables/capacity.js";
86
86
  export * from "./log.js";
@@ -96,8 +96,8 @@ export * from "./postgres-text.js";
96
96
  export * from "./tags/tags.js";
97
97
  export * from "./telemetry.js";
98
98
  export * from "./tenant-database-secret.js";
99
- export * from "./egress-transport-readiness.js";
100
- export * from "./mailbox-egress-ownership.js";
99
+ export * from "./mailboxes/egress-transport-readiness.js";
100
+ export * from "./mailboxes/egress-ownership.js";
101
101
  export * from "./rate-window.js";
102
102
  export * from "./timing.js";
103
103
  export * from "./type-guards.js";
@@ -105,12 +105,12 @@ export * from "./value-readers.js";
105
105
  export * from "./array-utils.js";
106
106
  export * from "./format-percent.js";
107
107
  export * from "./worker-failures-queue.js";
108
- export * from "./workflow-mcp-tools.js";
108
+ export * from "./workflows/mcp-tools.js";
109
109
  export * from "./webhook-headers.js";
110
- export * from "./workflow-trigger-label.js";
111
- export * from "./workspace-event-catalog.js";
110
+ export * from "./workflows/trigger-label.js";
111
+ export * from "./workflows/workspace-event-catalog.js";
112
112
  export * from "./records/notetaker-events.js";
113
- export * from "./workspace-agents.js";
113
+ export * from "./agents/workspace-agents.js";
114
114
  export * from "./semver.js";
115
115
  export * from "./ugc/ugc.js";
116
116
  export * from "./ugc/amplification-identity.js";
@@ -1,6 +1,6 @@
1
1
  export { OXYGEN_MINIMUM_CLI_VERSION, OXYGEN_VERSION, } from "./version.js";
2
- export { WORKFLOW_TRIGGER_AUTO_PAUSE_METADATA_KEYS, clearWorkflowTriggerAutoPauseMetadata, } from "./workflow-trigger-metadata.js";
3
- export { WORKFLOW_STATUS_CHANGE_METADATA_KEY, describeWorkflowStatusChange, formatWorkflowStatusChangeTimestamp, parseWorkflowStatusChange, readWorkflowStatusChange, } from "./workflow-status-change.js";
2
+ export { WORKFLOW_TRIGGER_AUTO_PAUSE_METADATA_KEYS, clearWorkflowTriggerAutoPauseMetadata, } from "./workflows/trigger-metadata.js";
3
+ export { WORKFLOW_STATUS_CHANGE_METADATA_KEY, describeWorkflowStatusChange, formatWorkflowStatusChangeTimestamp, parseWorkflowStatusChange, readWorkflowStatusChange, } from "./workflows/status-change.js";
4
4
  export * from "./billing.js";
5
5
  export * from "./visual-render.js";
6
6
  export * from "./billing-anchors.js";
@@ -24,7 +24,7 @@ export * from "./error-message.js";
24
24
  export * from "./sql-rows.js";
25
25
  export * from "./cell-format.js";
26
26
  export * from "./cli-envelope.js";
27
- export * from "./cli-login-code.js";
27
+ export * from "./auth/cli-login-code.js";
28
28
  export * from "./cli-result.js";
29
29
  export * from "./collab.js";
30
30
  export * from "./records/reply-events.js";
@@ -36,11 +36,11 @@ export * from "./copilot-playbooks.js";
36
36
  export * from "./copilot-plan.js";
37
37
  export * from "./credit-guidance.js";
38
38
  export * from "./deploy-env.js";
39
- export * from "./directory.js";
40
- export * from "./email-dsn.js";
41
- export * from "./email-hard-bounce.js";
42
- export * from "./email-tracking-token.js";
43
- export * from "./email-unsubscribe-token.js";
39
+ export * from "./marketing/directory.js";
40
+ export * from "./sequences/email-dsn.js";
41
+ export * from "./sequences/email-hard-bounce.js";
42
+ export * from "./sequences/email-tracking-token.js";
43
+ export * from "./sequences/email-unsubscribe-token.js";
44
44
  export * from "./error-redaction.js";
45
45
  export * from "./onboarding/future-signup-events.js";
46
46
  export * from "./onboarding/future-signup-lifecycle-projection.js";
@@ -60,28 +60,28 @@ export * from "./langfuse.js";
60
60
  export * from "./llm-usage.js";
61
61
  export * from "./posts/linkedin-mentions.js";
62
62
  export * from "./posts/linkedin-post-url.js";
63
- export * from "./linkedin-quota-denial.js";
63
+ export * from "./sequences/linkedin-quota-denial.js";
64
64
  export * from "./tables/linkedin-url.js";
65
- export * from "./linkedin-sequences.js";
65
+ export * from "./sequences/linkedin-sequences.js";
66
66
  export * from "./records/member-columns.js";
67
67
  export * from "./mailboxes/microsoft-consent-url.js";
68
- export * from "./networks.js";
68
+ export * from "./sequences/networks.js";
69
69
  export * from "./person-name.js";
70
70
  export * from "./product-doctrine.js";
71
71
  export * from "./recipes.js";
72
- export * from "./sequence-template.js";
73
- export * from "./sequence-crm-events.js";
74
- export * from "./sequence-failures.js";
75
- export * from "./sequence-hubspot-sync.js";
76
- export * from "./sequence-terminal-events.js";
77
- export * from "./call-outcomes.js";
78
- export * from "./dial-guardrail-overrides.js";
79
- export * from "./sequences.js";
72
+ export * from "./sequences/template.js";
73
+ export * from "./sequences/crm-events.js";
74
+ export * from "./sequences/failures.js";
75
+ export * from "./sequences/hubspot-sync.js";
76
+ export * from "./sequences/terminal-events.js";
77
+ export * from "./sequences/call-outcomes.js";
78
+ export * from "./sequences/dial-guardrail-overrides.js";
79
+ export * from "./sequences/sequences.js";
80
80
  // The ESP contract the root barrel has always carried (it used to arrive through sequences.ts).
81
81
  export { ESP_MATCHING_MODES, DEFAULT_ESP_MATCHING_MODE, isEspMatchingMode, validateEspMatchingSetting, RECIPIENT_ESPS, ESP_ROUTE_BUCKETS, MAX_ESP_SENDER_EXCLUSIONS, MAX_ESP_ROUTE_WEIGHT, isEspRouteBucket, normalizeEspSenderDomain, espPolicyFromSetting, espRouteWeightsFor, espRouteCandidates, espExcludedSenderDomains, RECIPIENT_ESP_FAMILIES, isRecipientEspFamily, isEspGatewayFamily, matchableEspFromFamily, familyFromMxHosts, espFromSpfRecords, inferRecipientEspFamily, inferRecipientEsp, espFromMxHosts, } from "./sequence-internals/esp-policy.js";
82
- export * from "./suppression-entries.js";
83
- export * from "./dnc-identities.js";
84
- export * from "./dnc-rules.js";
82
+ export * from "./sequences/suppression-entries.js";
83
+ export * from "./sequences/dnc-identities.js";
84
+ export * from "./sequences/dnc-rules.js";
85
85
  export * from "./tables/limits.js";
86
86
  export * from "./tables/capacity.js";
87
87
  export * from "./log.js";
@@ -108,8 +108,8 @@ export * from "./postgres-text.js";
108
108
  export * from "./tags/tags.js";
109
109
  export * from "./telemetry.js";
110
110
  export * from "./tenant-database-secret.js";
111
- export * from "./egress-transport-readiness.js";
112
- export * from "./mailbox-egress-ownership.js";
111
+ export * from "./mailboxes/egress-transport-readiness.js";
112
+ export * from "./mailboxes/egress-ownership.js";
113
113
  export * from "./rate-window.js";
114
114
  export * from "./timing.js";
115
115
  export * from "./type-guards.js";
@@ -117,12 +117,12 @@ export * from "./value-readers.js";
117
117
  export * from "./array-utils.js";
118
118
  export * from "./format-percent.js";
119
119
  export * from "./worker-failures-queue.js";
120
- export * from "./workflow-mcp-tools.js";
120
+ export * from "./workflows/mcp-tools.js";
121
121
  export * from "./webhook-headers.js";
122
- export * from "./workflow-trigger-label.js";
123
- export * from "./workspace-event-catalog.js";
122
+ export * from "./workflows/trigger-label.js";
123
+ export * from "./workflows/workspace-event-catalog.js";
124
124
  export * from "./records/notetaker-events.js";
125
- export * from "./workspace-agents.js";
125
+ export * from "./agents/workspace-agents.js";
126
126
  export * from "./semver.js";
127
127
  export * from "./ugc/ugc.js";
128
128
  export * from "./ugc/amplification-identity.js";
@@ -282,7 +282,7 @@ export declare function readKnowledgeBootstrapConsent(metadata: unknown): Knowle
282
282
  * It sits beside the consent key for the same reason: the setup surface writes it and
283
283
  * the worker reads it, and two spellings of the key would silently drop a hint the
284
284
  * customer took the trouble to give us. The stored value is the canonical form
285
- * produced by `normalizeLinkedinCompanyUrl` (./dnc-identities.js) — normalize on the
285
+ * produced by `normalizeLinkedinCompanyUrl` (./sequences/dnc-identities.js) — normalize on the
286
286
  * way in AND on the way out, never trust the raw string, and never let a personal
287
287
  * `/in/` profile through: this is the COMPANY page, and researching a founder's
288
288
  * personal profile as if it were the company is exactly the confidently-wrong write
@@ -54,7 +54,7 @@
54
54
  * Professional person evidence remains actor-scoped; ICP/offers are hypotheses.
55
55
  * The provider sub-cap covers every external research leg, including fallbacks.
56
56
  */
57
- import { normalizeLinkedinCompanyUrl } from "./dnc-identities.js";
57
+ import { normalizeLinkedinCompanyUrl } from "./sequences/dnc-identities.js";
58
58
  import { normalizeLinkedinProfileUrl } from "./tables/linkedin-url.js";
59
59
  /**
60
60
  * Hard ceiling on managed credits ONE workspace bootstrap may spend, all phases.
@@ -254,7 +254,7 @@ function readGrant(raw) {
254
254
  * It sits beside the consent key for the same reason: the setup surface writes it and
255
255
  * the worker reads it, and two spellings of the key would silently drop a hint the
256
256
  * customer took the trouble to give us. The stored value is the canonical form
257
- * produced by `normalizeLinkedinCompanyUrl` (./dnc-identities.js) — normalize on the
257
+ * produced by `normalizeLinkedinCompanyUrl` (./sequences/dnc-identities.js) — normalize on the
258
258
  * way in AND on the way out, never trust the raw string, and never let a personal
259
259
  * `/in/` profile through: this is the COMPANY page, and researching a founder's
260
260
  * personal profile as if it were the company is exactly the confidently-wrong write
@@ -1,4 +1,4 @@
1
- import type { SequenceSendWindow } from "../sequences.js";
1
+ import type { SequenceSendWindow } from "../sequences/sequences.js";
2
2
  /** Deliverability defaults are independent of pricing and confer no send/spend authority. */
3
3
  export declare const EMAIL_DELIVERABILITY_POLICY_VERSION = "2026-09-27-v1";
4
4
  export declare const EMAIL_DELIVERABILITY_DEFAULTS: Readonly<{
@@ -1,4 +1,4 @@
1
- import { OxygenError } from "./cli-result.js";
1
+ import { OxygenError } from "../cli-result.js";
2
2
  export const MAILBOX_IMPORT_FILE_MAX_BYTES = 5 * 1024 * 1024;
3
3
  export const MAILBOX_IMPORT_ROW_LIMIT = 500;
4
4
  export const MAILBOX_OAUTH_REVIEW_BATCH_SIZE = 10;
@@ -1,4 +1,4 @@
1
- import { CliHttpError } from "./cli-http-error.js";
1
+ import { CliHttpError } from "../cli-http-error.js";
2
2
  export declare const SENDING_DOMAIN_FAULT_CODES: {
3
3
  readonly ownedElsewhere: "sending_domain_owned_elsewhere";
4
4
  readonly reserved: "sending_domain_reserved";
@@ -1,4 +1,4 @@
1
- import { CliHttpError } from "./cli-http-error.js";
1
+ import { CliHttpError } from "../cli-http-error.js";
2
2
  // Customer-facing refusals for workspace sending domains (ADR 0023): fixed copy,
3
3
  // a machine code and a next step. None names SES, AWS or another workspace, and
4
4
  // an ownership refusal never says which domain it collided with.
@@ -1,4 +1,4 @@
1
- import { isFreemailDomain } from "./freemail-domains.js";
1
+ import { isFreemailDomain } from "../mailboxes/freemail-domains.js";
2
2
  /**
3
3
  * Hosts that list a company without being its website: social profiles, link-in-bio
4
4
  * pages, shorteners, maps, calendars, chat links, code hosts, marketplaces, and
@@ -1,4 +1,4 @@
1
- import { CliHttpError } from "./cli-http-error.js";
1
+ import { CliHttpError } from "../cli-http-error.js";
2
2
  export declare const NEWSLETTER_TEST_MAX_RECIPIENTS = 5;
3
3
  /** Test sends (requests, not emails) a workspace may make per day. */
4
4
  export declare const NEWSLETTER_TEST_DAILY_LIMIT = 20;
@@ -1,4 +1,4 @@
1
- import { CliHttpError } from "./cli-http-error.js";
1
+ import { CliHttpError } from "../cli-http-error.js";
2
2
  // A newsletter test send: one email step rendered as delivery renders it, sent
3
3
  // to at most five verified addresses of the workspace's own members. Web, CLI
4
4
  // and MCP share these limits and refusals (ADR 0023: fixed copy, a machine code
@@ -4,8 +4,8 @@ import { CRM_ACTIVITY_CREATED_EVENT } from "./records/activity-events.js";
4
4
  import { CRM_EMAIL_REPLY_CLASSIFIED_EVENT, CRM_WORKFLOW_EVENT_SOURCE, } from "./records/reply-events.js";
5
5
  import { NOTETAKER_MEETING_COMPLETED_EVENT, NOTETAKER_WORKFLOW_EVENT_SOURCE } from "./records/notetaker-events.js";
6
6
  import { slugifyOption } from "./tables/select-options.js";
7
- import { SEQUENCE_ENROLLMENT_TERMINAL_EVENT, SEQUENCE_TERMINAL_EVENT_SOURCE, SEQUENCE_TERMINAL_STATUSES, } from "./sequence-terminal-events.js";
8
- import { resolveAppBaseUrl } from "./signed-token.js";
7
+ import { SEQUENCE_ENROLLMENT_TERMINAL_EVENT, SEQUENCE_TERMINAL_EVENT_SOURCE, SEQUENCE_TERMINAL_STATUSES, } from "./sequences/terminal-events.js";
8
+ import { resolveAppBaseUrl } from "./auth/signed-token.js";
9
9
  import { isRecord, readCoercedString, readTrimmedString } from "./type-guards.js";
10
10
  // The v1 MCP Events contract (ADR 0030, ledger OXP-11.5.17): the six events
11
11
  // `events/list` advertises, what a subscription may filter on, what a delivery
@@ -7,7 +7,7 @@
7
7
  // Founder decision 3 (2026-10-17) holds regardless of Auto-approve: the first launch of every Sequence needs a person.
8
8
  // D8: under standing approval, "copy" is the prompt and voice revision, a person's review of at least 10 samples, and
9
9
  // the automatic check below on every draft.
10
- import { LINKEDIN_INVITE_NOTE_LIMIT_BASIC } from "./linkedin-sequences.js";
10
+ import { LINKEDIN_INVITE_NOTE_LIMIT_BASIC } from "./sequences/linkedin-sequences.js";
11
11
  export const STANDING_APPROVAL_VERSION = 1;
12
12
  export const PILOT_SAMPLE_MIN = 10;
13
13
  export const BATCH_SAMPLE_MAX = 30;
@@ -55,6 +55,7 @@ export declare const ONBOARDING_OWN_PLAY_TITLE = "My own play";
55
55
  export declare function onboardingOwnPlayMessage(description: string): string;
56
56
  /** The message a chosen play sends, as the person's own. */
57
57
  export declare function onboardingPlayMessage(play: Pick<OnboardingPlay, "title" | "firstStep" | "page">): string;
58
+ export declare function isPlayGoAhead(message: string): boolean;
58
59
  type ProjectionTurn = {
59
60
  id: string;
60
61
  status: string;
@@ -100,6 +100,19 @@ export function onboardingOwnPlayMessage(description) {
100
100
  export function onboardingPlayMessage(play) {
101
101
  return `${ONBOARDING_PLAY_MESSAGE_PREFIX}${play.title}". Start with: ${play.firstStep}${play.page ? ` (see [[${play.page}]])` : ""}`;
102
102
  }
103
+ /**
104
+ * A short reply that only says "go" (yes, go ahead, continue, do it) while the
105
+ * plays are on screen. Production 2026-10-28: a quarter of onboarding chats
106
+ * answered the plays that way and never picked one, so it picks the
107
+ * recommended (first) play. Anything longer is an ordinary message.
108
+ */
109
+ const GO_AHEAD = new RegExp("^(?:(?:ok(?:ay)?|yes|yeah|yep|yup|sure|go|go ahead|do it|run it|start|continue|contin(?:i)?ue|proceed|let'?s go|sounds good|perfect|great|"
110
+ + "ja|los|mach(?: das)?|weiter|gerne|s[ií]|vale|dale|adelante|oui|vas-y|allez|d'accord|"
111
+ + "please|pls|bitte|por favor|s'il (?:te|vous) pla[iî]t)[\\s,.!]*)+$", "i");
112
+ export function isPlayGoAhead(message) {
113
+ const text = message.trim().replace(/\s+/g, " ");
114
+ return text.length > 0 && text.length <= 40 && GO_AHEAD.test(text);
115
+ }
103
116
  /**
104
117
  * The plays the chat is waiting on, or null: the newest proposal of a completed
105
118
  * turn, until a play is chosen from it, which sends the play's message. Unlike a
@@ -11,15 +11,17 @@ export declare const ONBOARDING_RESEARCH_PURPOSE = "onboarding_research";
11
11
  /** The research sub-agent the onboarding turn delegates to. */
12
12
  export declare const ONBOARDING_RESEARCH_SUBAGENT = "onboarding_researcher";
13
13
  /**
14
- * The researchers' model: the Balanced tier's model (Claude Haiku 5.5) at low
15
- * reasoning effort. Their errand default, DeepSeek V4 Flash, wrote its tool calls
16
- * as text in 4 of 8 researchers on a live run (2026-10-20) and timed out on the
17
- * one before, and V4.1 Flash missed tool calls in 1 of 5 probes (hosted-ai.ts).
18
- * Reliable calls first, then speed: one place to change once measured.
14
+ * The researchers' model: the Balanced tier's model (Claude Haiku 5.5). Their
15
+ * errand default, DeepSeek V4 Flash, wrote its tool calls as text in 4 of 8
16
+ * researchers on a live run (2026-10-20) and timed out on the one before, and
17
+ * V4.1 Flash missed tool calls in 1 of 5 probes (hosted-ai.ts). Medium reasoning
18
+ * effort since 2026-10-28: at low, a researcher read 40-95 KB of sources and
19
+ * filed pages of about 900 characters (40 production runs), and its pages carry
20
+ * the reasoning behind each conclusion now.
19
21
  */
20
22
  export declare const ONBOARDING_RESEARCH_MODEL: {
21
23
  readonly level: "medium";
22
- readonly reasoningEffort: "low";
24
+ readonly reasoningEffort: "medium";
23
25
  };
24
26
  /**
25
27
  * Provider credits OXYGEN pays for one workspace's onboarding research, over its
@@ -36,16 +38,22 @@ export declare const ONBOARDING_RESEARCH_MAX_CREDITS_PER_CALL = 15;
36
38
  export declare const ONBOARDING_RESEARCH_INFERENCE_MAX_CREDITS = 150;
37
39
  /**
38
40
  * Eight areas at once (offer, ICP, plays, signals, competitors, company
39
- * LinkedIn, people, the signing-up person), with room for one follow-up pass.
40
- * Each researcher wraps up after 90 seconds: on the first live run the slowest
41
- * of eight took 370 seconds and everyone waited on it (2026-10-19).
41
+ * LinkedIn, people, the signing-up person), each with room to search, read its
42
+ * sources in full and follow up on what it read. The pages are the context every
43
+ * later turn works from, so depth outranks speed (current chat, 2026-10-28: "we
44
+ * gotta be as detailed as possible"): at 6 model calls, 20 capability calls and
45
+ * 90 seconds, a researcher made 3 to 5 research calls and the whole research
46
+ * finished in 42 seconds (median of 40 production runs to 2026-10-28). Each
47
+ * researcher still wraps up after three minutes: without a clock, the slowest of
48
+ * eight took 370 seconds on the first live run and everyone waited on it
49
+ * (2026-10-19).
42
50
  */
43
51
  export declare const ONBOARDING_RESEARCH_SUBAGENT_LIMITS: {
44
52
  readonly maxRuns: 12;
45
53
  readonly maxParallelTasks: 8;
46
- readonly maxInferencesPerRun: 6;
47
- readonly maxCapabilityCallsPerRun: 20;
48
- readonly concludeAfterMs: 90000;
54
+ readonly maxInferencesPerRun: 12;
55
+ readonly maxCapabilityCallsPerRun: 40;
56
+ readonly concludeAfterMs: 180000;
49
57
  };
50
58
  /**
51
59
  * Read-only provider tools the research may call through `oxygen_tools_run_live`.
@@ -11,13 +11,15 @@ export const ONBOARDING_RESEARCH_PURPOSE = "onboarding_research";
11
11
  /** The research sub-agent the onboarding turn delegates to. */
12
12
  export const ONBOARDING_RESEARCH_SUBAGENT = "onboarding_researcher";
13
13
  /**
14
- * The researchers' model: the Balanced tier's model (Claude Haiku 5.5) at low
15
- * reasoning effort. Their errand default, DeepSeek V4 Flash, wrote its tool calls
16
- * as text in 4 of 8 researchers on a live run (2026-10-20) and timed out on the
17
- * one before, and V4.1 Flash missed tool calls in 1 of 5 probes (hosted-ai.ts).
18
- * Reliable calls first, then speed: one place to change once measured.
14
+ * The researchers' model: the Balanced tier's model (Claude Haiku 5.5). Their
15
+ * errand default, DeepSeek V4 Flash, wrote its tool calls as text in 4 of 8
16
+ * researchers on a live run (2026-10-20) and timed out on the one before, and
17
+ * V4.1 Flash missed tool calls in 1 of 5 probes (hosted-ai.ts). Medium reasoning
18
+ * effort since 2026-10-28: at low, a researcher read 40-95 KB of sources and
19
+ * filed pages of about 900 characters (40 production runs), and its pages carry
20
+ * the reasoning behind each conclusion now.
19
21
  */
20
- export const ONBOARDING_RESEARCH_MODEL = { level: "medium", reasoningEffort: "low" };
22
+ export const ONBOARDING_RESEARCH_MODEL = { level: "medium", reasoningEffort: "medium" };
21
23
  /**
22
24
  * Provider credits OXYGEN pays for one workspace's onboarding research, over its
23
25
  * lifetime, restarts included. Raised from 300 (Philipp, 2026-10-21: "we can
@@ -33,16 +35,22 @@ export const ONBOARDING_RESEARCH_MAX_CREDITS_PER_CALL = 15;
33
35
  export const ONBOARDING_RESEARCH_INFERENCE_MAX_CREDITS = 150;
34
36
  /**
35
37
  * Eight areas at once (offer, ICP, plays, signals, competitors, company
36
- * LinkedIn, people, the signing-up person), with room for one follow-up pass.
37
- * Each researcher wraps up after 90 seconds: on the first live run the slowest
38
- * of eight took 370 seconds and everyone waited on it (2026-10-19).
38
+ * LinkedIn, people, the signing-up person), each with room to search, read its
39
+ * sources in full and follow up on what it read. The pages are the context every
40
+ * later turn works from, so depth outranks speed (current chat, 2026-10-28: "we
41
+ * gotta be as detailed as possible"): at 6 model calls, 20 capability calls and
42
+ * 90 seconds, a researcher made 3 to 5 research calls and the whole research
43
+ * finished in 42 seconds (median of 40 production runs to 2026-10-28). Each
44
+ * researcher still wraps up after three minutes: without a clock, the slowest of
45
+ * eight took 370 seconds on the first live run and everyone waited on it
46
+ * (2026-10-19).
39
47
  */
40
48
  export const ONBOARDING_RESEARCH_SUBAGENT_LIMITS = {
41
49
  maxRuns: 12,
42
50
  maxParallelTasks: 8,
43
- maxInferencesPerRun: 6,
44
- maxCapabilityCallsPerRun: 20,
45
- concludeAfterMs: 90_000,
51
+ maxInferencesPerRun: 12,
52
+ maxCapabilityCallsPerRun: 40,
53
+ concludeAfterMs: 180_000,
46
54
  };
47
55
  /**
48
56
  * Read-only provider tools the research may call through `oxygen_tools_run_live`.
@@ -1,4 +1,4 @@
1
- import { isPersonalEmailDomain } from "../freemail-domains.js";
1
+ import { isPersonalEmailDomain } from "../mailboxes/freemail-domains.js";
2
2
  import { readCoercedString as normalizeString } from "../type-guards.js";
3
3
  /**
4
4
  * Classifies an email address into a (likely) company work-email domain.
@@ -1,5 +1,5 @@
1
1
  import { OxygenError } from "../cli-result.js";
2
- import { hashVariantKey } from "../sequence-template.js";
2
+ import { hashVariantKey } from "../sequences/template.js";
3
3
  import { ESP_MATCHING_MODES, DEFAULT_ESP_MATCHING_MODE, RECIPIENT_ESPS, ESP_ROUTE_BUCKETS, MAX_ESP_SENDER_EXCLUSIONS, MAX_ESP_ROUTE_WEIGHT, RECIPIENT_ESP_FAMILIES, } from "../esp-contract.js";
4
4
  export { ESP_MATCHING_MODES, DEFAULT_ESP_MATCHING_MODE, RECIPIENT_ESPS, ESP_ROUTE_BUCKETS, MAX_ESP_SENDER_EXCLUSIONS, MAX_ESP_ROUTE_WEIGHT, RECIPIENT_ESP_FAMILIES, } from "../esp-contract.js";
5
5
  export function isEspMatchingMode(value) {
@@ -4,7 +4,7 @@
4
4
  // and a bigger send is spread over hours, so a bad list shows in the first hours
5
5
  // instead of in every inbox. Clean-room after mailcheap.ai's documented behaviour
6
6
  // (AGPL; design reference only, no code taken).
7
- import { SES_BULK_RATE_FRACTION, SES_TRANSACTIONAL_RESERVE_FRACTION } from "../email-delivery.js";
7
+ import { SES_BULK_RATE_FRACTION, SES_TRANSACTIONAL_RESERVE_FRACTION } from "./email-delivery.js";
8
8
  export const BULK_EMAIL_PACING = {
9
9
  /** A send this small always goes at once, even for a brand-new workspace. */
10
10
  quickEmails: 200,
@@ -1,5 +1,5 @@
1
1
  import { companyDncIdentitiesFromRowValues, companyDncIdentityKey, normalizeCompanyDncDomain, normalizeLinkedinCompanyUrl, } from "./dnc-identities.js";
2
- import { isFreemailDomain } from "./freemail-domains.js";
2
+ import { isFreemailDomain } from "../mailboxes/freemail-domains.js";
3
3
  import { recipientEmailFromRow } from "./sequences.js";
4
4
  /**
5
5
  * Pause a company on reply: when one lead at a company replies, every other lead
@@ -1,4 +1,4 @@
1
- import { normalizeLinkedinProfileUrl } from "./tables/linkedin-url.js";
1
+ import { normalizeLinkedinProfileUrl } from "../tables/linkedin-url.js";
2
2
  import { LINKEDIN_MEMBER_URN_PATTERN } from "./suppression-entries.js";
3
3
  /**
4
4
  * Source-neutral identities accepted by the unified DNC write contract.
@@ -12,7 +12,7 @@
12
12
  * Pure and browser-safe: the web Delivery control, the CLI/MCP contracts, the
13
13
  * tenant settings validator and the dispatcher all read the same parser.
14
14
  */
15
- import { BULK_EMAIL_CREDITS_PER_EMAIL } from "./pricing-snapshot.generated.js";
15
+ import { BULK_EMAIL_CREDITS_PER_EMAIL } from "../pricing-snapshot.generated.js";
16
16
  export const SEQUENCE_EMAIL_DELIVERY_MODES = ["inboxes", "sending_domain"];
17
17
  /**
18
18
  * The opt-out line of a cold email sent as plain text, when its Sequence turned the
@@ -1,4 +1,4 @@
1
- import { type EnvLike } from "./signed-token.js";
1
+ import { type EnvLike } from "../auth/signed-token.js";
2
2
  /**
3
3
  * Signed token for native open/click tracking on cold email. The dispatcher MINTS
4
4
  * the token at send time (one per tracked action) and bakes it into a tracking
@@ -1,5 +1,5 @@
1
1
  import { createHash, timingSafeEqual } from "node:crypto";
2
- import { resolveAppBaseUrl, signPayload, splitAndVerifyToken } from "./signed-token.js";
2
+ import { resolveAppBaseUrl, signPayload, splitAndVerifyToken } from "../auth/signed-token.js";
3
3
  /** SHA-256 hex of a destination URL — the value bound into a click token's `uh`. */
4
4
  export function hashTrackingUrl(url) {
5
5
  return createHash("sha256").update(url, "utf8").digest("hex");
@@ -1,4 +1,4 @@
1
- import { type EnvLike } from "./signed-token.js";
1
+ import { type EnvLike } from "../auth/signed-token.js";
2
2
  /**
3
3
  * Signed token for the RFC 8058 one-click List-Unsubscribe link on native cold
4
4
  * email. The worker MINTS the token at send time and bakes the URL into the
@@ -1,4 +1,4 @@
1
- import { resolveAppBaseUrl, signPayload, splitAndVerifyToken } from "./signed-token.js";
1
+ import { resolveAppBaseUrl, signPayload, splitAndVerifyToken } from "../auth/signed-token.js";
2
2
  /**
3
3
  * Sign a payload into `<base64url(json)>.<base64url(hmac-sha256)>`. The HMAC is
4
4
  * computed over the encoded body, so any tamper to the payload invalidates the
@@ -1,6 +1,6 @@
1
- import { redactCustomerFacingDetails, redactCustomerFacingError, } from "./error-redaction.js";
2
- import { isProviderFundingErrorCode, isProviderRateLimitErrorCode, } from "./provider-funding-errors.js";
3
- import { asRecordOrNull as asRecord } from "./type-guards.js";
1
+ import { redactCustomerFacingDetails, redactCustomerFacingError, } from "../error-redaction.js";
2
+ import { isProviderFundingErrorCode, isProviderRateLimitErrorCode, } from "../provider-funding-errors.js";
3
+ import { asRecordOrNull as asRecord } from "../type-guards.js";
4
4
  export const SEQUENCE_FAILURE_SCHEMA_VERSION = 1;
5
5
  export const SEQUENCE_FAILURE_RETRY_AFTER_MAX_MS = 24 * 60 * 60 * 1000;
6
6
  export const WHATSAPP_UNCERTAIN_DELIVERY_MESSAGE = "WhatsApp delivery is uncertain. Automatic resending is blocked.";
@@ -1,4 +1,4 @@
1
- import { type SequenceCrmEventKey } from "./sequence-crm-events.js";
1
+ import { type SequenceCrmEventKey } from "./crm-events.js";
2
2
  /**
3
3
  * The HubSpot destination is one product setting backed by two ordinary
4
4
  * Workflows. Sequence activity and classified replies have different durable
@@ -1,4 +1,4 @@
1
- import { DEFAULT_SEQUENCE_HUBSPOT_EVENT_MAPPINGS, SEQUENCE_HUBSPOT_LINKEDIN_IDENTITY_PROPERTY, } from "./sequence-crm-events.js";
1
+ import { DEFAULT_SEQUENCE_HUBSPOT_EVENT_MAPPINGS, SEQUENCE_HUBSPOT_LINKEDIN_IDENTITY_PROPERTY, } from "./crm-events.js";
2
2
  /**
3
3
  * The HubSpot destination is one product setting backed by two ordinary
4
4
  * Workflows. Sequence activity and classified replies have different durable
@@ -14,7 +14,7 @@
14
14
  * background cadence it buries the real warnings — and the account is parked
15
15
  * until its budget resets rather than re-denied on every tenant tick.
16
16
  */
17
- import { OxygenError } from "./cli-result.js";
17
+ import { OxygenError } from "../cli-result.js";
18
18
  /** Was this thrown error the quota chokepoint refusing the call? */
19
19
  export declare function isLinkedInQuotaDenial(error: unknown): error is OxygenError;
20
20
  /** Quota messages include sender display names; log only the typed code. */
@@ -14,9 +14,9 @@
14
14
  * background cadence it buries the real warnings — and the account is parked
15
15
  * until its budget resets rather than re-denied on every tenant tick.
16
16
  */
17
- import { OxygenError } from "./cli-result.js";
18
- import { errorFields } from "./log.js";
19
- import { isRecord } from "./type-guards.js";
17
+ import { OxygenError } from "../cli-result.js";
18
+ import { errorFields } from "../log.js";
19
+ import { isRecord } from "../type-guards.js";
20
20
  // The codes a denial is raised with. Each is a "come back later" signal, not a
21
21
  // broken caller: a daily cap / closed active window that reopens on its own clock,
22
22
  // or an account the status webhook will reactivate.