@oxygen-agent/cli 1.1014.1696 → 1.1014.1870

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 (112) hide show
  1. package/README.md +1 -1
  2. package/dist/admin-primary-providers-render.js +7 -2
  3. package/dist/command-families/program.js +4 -0
  4. package/dist/command-families/tables/register-relations.js +3 -2
  5. package/dist/command-manifest.js +14 -2
  6. package/dist/command-support.js +1 -1
  7. package/dist/commands/admin.js +82 -1
  8. package/dist/commands/billing.js +1 -1
  9. package/dist/commands/columns.js +2 -1
  10. package/dist/commands/copilot.js +29 -7
  11. package/dist/commands/domains.js +7 -0
  12. package/dist/commands/email-assets.d.ts +3 -0
  13. package/dist/commands/email-assets.js +78 -0
  14. package/dist/commands/email-templates.d.ts +3 -0
  15. package/dist/commands/email-templates.js +101 -0
  16. package/dist/commands/enrich-column.js +2 -1
  17. package/dist/commands/managed-inboxes.js +26 -1
  18. package/dist/commands/sequences.js +47 -12
  19. package/dist/commands/subscriptions.d.ts +2 -4
  20. package/dist/commands/subscriptions.js +297 -51
  21. package/dist/commands/table-runs.js +2 -1
  22. package/dist/sequence-start-at.d.ts +7 -0
  23. package/dist/sequence-start-at.js +21 -0
  24. package/dist/sequences-brand-kit-command.d.ts +28 -0
  25. package/dist/sequences-brand-kit-command.js +83 -0
  26. package/dist/sequences-content-commands.d.ts +28 -0
  27. package/dist/sequences-content-commands.js +176 -0
  28. package/dist/sequences-newsletter-commands.d.ts +6 -0
  29. package/dist/sequences-newsletter-commands.js +108 -0
  30. package/dist/sequences-test-send-command.d.ts +3 -0
  31. package/dist/sequences-test-send-command.js +47 -0
  32. package/node_modules/@oxygen/formula/dist/evaluate.js +2 -4
  33. package/node_modules/@oxygen/formula/dist/expression.d.ts +7 -5
  34. package/node_modules/@oxygen/formula/dist/expression.js +26 -4
  35. package/node_modules/@oxygen/formula/dist/formula-functions.d.ts +6 -0
  36. package/node_modules/@oxygen/formula/dist/formula-functions.js +55 -0
  37. package/node_modules/@oxygen/shared/dist/billing.d.ts +2 -2
  38. package/node_modules/@oxygen/shared/dist/billing.js +5 -7
  39. package/node_modules/@oxygen/shared/dist/bulk-email-pacing.d.ts +105 -0
  40. package/node_modules/@oxygen/shared/dist/bulk-email-pacing.js +125 -0
  41. package/node_modules/@oxygen/shared/dist/capability-discovery.d.ts +29 -0
  42. package/node_modules/@oxygen/shared/dist/capability-discovery.js +174 -10
  43. package/node_modules/@oxygen/shared/dist/contracts/clay-migration.d.ts +1 -0
  44. package/node_modules/@oxygen/shared/dist/contracts/clay-migration.js +28 -2
  45. package/node_modules/@oxygen/shared/dist/contracts/copilot-attachment-read.d.ts +24 -0
  46. package/node_modules/@oxygen/shared/dist/contracts/copilot-attachment-read.js +7 -0
  47. package/node_modules/@oxygen/shared/dist/contracts/teammates.js +6 -1
  48. package/node_modules/@oxygen/shared/dist/diagnostic-spool.js +90 -14
  49. package/node_modules/@oxygen/shared/dist/email-brand-kit.d.ts +108 -0
  50. package/node_modules/@oxygen/shared/dist/email-brand-kit.js +214 -0
  51. package/node_modules/@oxygen/shared/dist/email-delivery.d.ts +10 -0
  52. package/node_modules/@oxygen/shared/dist/email-delivery.js +14 -0
  53. package/node_modules/@oxygen/shared/dist/email-documents.d.ts +61 -0
  54. package/node_modules/@oxygen/shared/dist/email-documents.js +143 -0
  55. package/node_modules/@oxygen/shared/dist/email-dsn.js +52 -10
  56. package/node_modules/@oxygen/shared/dist/email-html-sanitize.d.ts +23 -0
  57. package/node_modules/@oxygen/shared/dist/email-html-sanitize.js +96 -0
  58. package/node_modules/@oxygen/shared/dist/email-subscriptions.d.ts +63 -1
  59. package/node_modules/@oxygen/shared/dist/email-subscriptions.js +149 -1
  60. package/node_modules/@oxygen/shared/dist/email-unsubscribe-token.d.ts +41 -2
  61. package/node_modules/@oxygen/shared/dist/email-unsubscribe-token.js +50 -1
  62. package/node_modules/@oxygen/shared/dist/external-write-policy.js +5 -1
  63. package/node_modules/@oxygen/shared/dist/group-commit-queue.d.ts +34 -0
  64. package/node_modules/@oxygen/shared/dist/group-commit-queue.js +103 -0
  65. package/node_modules/@oxygen/shared/dist/listed-website-platforms.d.ts +2 -0
  66. package/node_modules/@oxygen/shared/dist/listed-website-platforms.js +26 -0
  67. package/node_modules/@oxygen/shared/dist/newsletter-analytics.d.ts +90 -0
  68. package/node_modules/@oxygen/shared/dist/newsletter-analytics.js +28 -0
  69. package/node_modules/@oxygen/shared/dist/newsletter-test-send.d.ts +20 -0
  70. package/node_modules/@oxygen/shared/dist/newsletter-test-send.js +46 -0
  71. package/node_modules/@oxygen/shared/dist/object-storage.d.ts +11 -0
  72. package/node_modules/@oxygen/shared/dist/object-storage.js +12 -0
  73. package/node_modules/@oxygen/shared/dist/plan-band.d.ts +9 -0
  74. package/node_modules/@oxygen/shared/dist/plan-band.js +17 -0
  75. package/node_modules/@oxygen/shared/dist/plan-capabilities.d.ts +4 -2
  76. package/node_modules/@oxygen/shared/dist/plan-capabilities.js +12 -1
  77. package/node_modules/@oxygen/shared/dist/plan-limits-view.d.ts +2 -0
  78. package/node_modules/@oxygen/shared/dist/plan-limits-view.js +3 -0
  79. package/node_modules/@oxygen/shared/dist/pricing-snapshot.generated.d.ts +5 -0
  80. package/node_modules/@oxygen/shared/dist/pricing-snapshot.generated.js +5 -0
  81. package/node_modules/@oxygen/shared/dist/product-analytics-events.d.ts +29 -0
  82. package/node_modules/@oxygen/shared/dist/product-analytics-events.js +29 -0
  83. package/node_modules/@oxygen/shared/dist/provider-balance-signal.js +7 -0
  84. package/node_modules/@oxygen/shared/dist/sending-domain-faults.d.ts +21 -0
  85. package/node_modules/@oxygen/shared/dist/sending-domain-faults.js +53 -0
  86. package/node_modules/@oxygen/shared/dist/sending-domain-rollout.d.ts +24 -1
  87. package/node_modules/@oxygen/shared/dist/sending-domain-rollout.js +51 -4
  88. package/node_modules/@oxygen/shared/dist/sequence-failures.d.ts +10 -1
  89. package/node_modules/@oxygen/shared/dist/sequence-failures.js +68 -6
  90. package/node_modules/@oxygen/shared/dist/sequence-lifecycle.d.ts +34 -3
  91. package/node_modules/@oxygen/shared/dist/sequence-lifecycle.js +57 -4
  92. package/node_modules/@oxygen/shared/dist/sequence-template.d.ts +17 -0
  93. package/node_modules/@oxygen/shared/dist/sequence-template.js +0 -0
  94. package/node_modules/@oxygen/shared/dist/sequences.d.ts +41 -0
  95. package/node_modules/@oxygen/shared/dist/sequences.js +86 -4
  96. package/node_modules/@oxygen/shared/dist/ses-identity-policy.d.ts +19 -0
  97. package/node_modules/@oxygen/shared/dist/ses-identity-policy.js +54 -0
  98. package/node_modules/@oxygen/shared/dist/skill-play-routing.d.ts +22 -0
  99. package/node_modules/@oxygen/shared/dist/skill-play-routing.js +75 -0
  100. package/node_modules/@oxygen/shared/dist/skill-plays.generated.d.ts +5 -0
  101. package/node_modules/@oxygen/shared/dist/skill-plays.generated.js +269 -0
  102. package/node_modules/@oxygen/shared/dist/spend-safety.d.ts +7 -0
  103. package/node_modules/@oxygen/shared/dist/spend-safety.js +7 -0
  104. package/node_modules/@oxygen/shared/dist/table-limits.d.ts +6 -4
  105. package/node_modules/@oxygen/shared/dist/table-limits.js +6 -4
  106. package/node_modules/@oxygen/shared/dist/teammates.js +2 -1
  107. package/node_modules/@oxygen/shared/dist/user-capability-routing.js +15 -1
  108. package/node_modules/@oxygen/shared/dist/version.generated.d.ts +1 -1
  109. package/node_modules/@oxygen/shared/dist/version.generated.js +1 -1
  110. package/node_modules/@oxygen/shared/dist/workspace-event-catalog.js +2 -2
  111. package/node_modules/@oxygen/shared/package.json +5 -0
  112. package/package.json +2 -2
@@ -6,8 +6,10 @@ export declare const MAX_WORKSPACE_ROW_DELETE_ROWS = 50000;
6
6
  export declare const MAX_ROW_LOOP_WRITE_ROWS = 500;
7
7
  /**
8
8
  * Maximum requested row concurrency for one table action run. Native BullMQ
9
- * persists at most this many slot heads. Actual execution also shares worker
10
- * slots, tenant admission and provider permits, so this is not an allocation
11
- * or a rows-per-second guarantee. Defaults stay unchanged.
9
+ * persists at most this many slot heads (tenant migration 0566 bounds
10
+ * worker_slot_count, slot and max_concurrency to match). Actual execution also
11
+ * shares worker slots, tenant admission (MAX_TENANT_IN_FLIGHT, also 4,000) and
12
+ * provider permits, so this is not an allocation or a rows-per-second
13
+ * guarantee. Defaults stay unchanged.
12
14
  */
13
- export declare const MAX_TABLE_ACTION_RUN_MAX_CONCURRENCY = 1000;
15
+ export declare const MAX_TABLE_ACTION_RUN_MAX_CONCURRENCY = 4000;
@@ -13,8 +13,10 @@ export const MAX_WORKSPACE_ROW_DELETE_ROWS = 50_000;
13
13
  export const MAX_ROW_LOOP_WRITE_ROWS = 500;
14
14
  /**
15
15
  * Maximum requested row concurrency for one table action run. Native BullMQ
16
- * persists at most this many slot heads. Actual execution also shares worker
17
- * slots, tenant admission and provider permits, so this is not an allocation
18
- * or a rows-per-second guarantee. Defaults stay unchanged.
16
+ * persists at most this many slot heads (tenant migration 0566 bounds
17
+ * worker_slot_count, slot and max_concurrency to match). Actual execution also
18
+ * shares worker slots, tenant admission (MAX_TENANT_IN_FLIGHT, also 4,000) and
19
+ * provider permits, so this is not an allocation or a rows-per-second
20
+ * guarantee. Defaults stay unchanged.
19
21
  */
20
- export const MAX_TABLE_ACTION_RUN_MAX_CONCURRENCY = 1000;
22
+ export const MAX_TABLE_ACTION_RUN_MAX_CONCURRENCY = 4000;
@@ -169,5 +169,6 @@ export function teammateSlugFromName(name) {
169
169
  */
170
170
  export const TEAMMATE_STARTER_INSTRUCTIONS = [
171
171
  "You are an Oxygent on the team. Do the job your profile and the person give you, and hand work that is another Oxygent's job to them.",
172
- "Read whatever you need from the workspace; ask before anything that writes, sends or spends.",
172
+ "Read whatever you need from the workspace; ask before anything that writes, sends or spends 100 credits or more.",
173
+ "A paid step quoted under 100 credits, such as a sample lead list, runs without asking, rows it writes included: say what it cost in one plain line.",
173
174
  ].join("\n");
@@ -1,4 +1,5 @@
1
1
  import { getCapabilityRoute, getCapabilityRouteMatch, inferCapabilityRoute, } from "./capability-discovery.js";
2
+ const GROUP_CHAT_CHANNEL_PATTERN = /\b(?:whatsapp|teams|slack|telegram|linkedin|discord|signal|sms|e ?mail|inbox|unibox)\b/;
2
3
  /** A null route has no command to hydrate yet. Keep recovery bounded and executable. */
3
4
  export function capabilityDiscoveryRecovery(query, surface) {
4
5
  if (surface === "mcp") {
@@ -166,6 +167,19 @@ export function inferUserCapabilityRoute(query) {
166
167
  exactMcpCall: { tool: "oxygen_agent_session_list", arguments: { slug: "workspace" } },
167
168
  };
168
169
  }
170
+ if (/\b(?:files?|attachments?|documents?|uploads?)\b/.test(normalized)
171
+ && /\b(?:group\s+(?:chats?|conversations?)|team\s+(?:chats?|conversations?))\b/.test(normalized)
172
+ && !GROUP_CHAT_CHANNEL_PATTERN.test(normalized)
173
+ && !/\b(?:support|external)\b/.test(normalized)) {
174
+ const route = getCapabilityRouteMatch("agents");
175
+ if (route) {
176
+ const tools = ["oxygen_oxygents_group", "oxygen_oxygents_group_message", "oxygen_copilot_attachments", "oxygen_copilot_get"];
177
+ const commands = ["oxygents group", "copilot attach", "copilot attachments", "oxygents group-message", "copilot get"];
178
+ return { ...route, recommendedTools: tools, recommendedCommands: commands,
179
+ card: { ...route.card, endpointSections: [...route.card.endpointSections, "copilot"], gatewayTools: tools, gatewayCommands: commands,
180
+ execution: "A group_id is its Copilot session id. Upload your file with oxygen copilot attach <group_id> <path>, list its ready ids with copilot attachments (oxygen_copilot_attachments), then send attachment_ids with oxygents group-message (oxygen_oxygents_group_message). Read messages and bound files with copilot get (oxygen_copilot_get). Existing uploader, session, readiness and group-access checks apply. A message mentioning only a person goes to them; Oxygent answers are billed turns." } };
181
+ }
182
+ }
169
183
  const oxygents = oxygentsRoute(normalized);
170
184
  if (oxygents)
171
185
  return oxygents;
@@ -335,7 +349,7 @@ const OXYGENT_GROUP_VERBS = [
335
349
  */
336
350
  function oxygentsRoute(normalized) {
337
351
  const groupChat = /\bgroup chats?\b/.test(normalized)
338
- && !/\b(?:whatsapp|teams|slack|telegram|linkedin|discord|signal|sms|e ?mail|inbox|unibox)\b/.test(normalized);
352
+ && !GROUP_CHAT_CHANNEL_PATTERN.test(normalized);
339
353
  const nativeTeammate = /^\s*teammates?\s*$/.test(normalized)
340
354
  || (/\bteammates?\b/.test(normalized) && /\b(?:routines?|schedul\w*|private chat)\b/.test(normalized)
341
355
  && !/\b(?:invite|membership|permissions?|roles?|human|colleague|coworker|slack|teams|whatsapp)\b/.test(normalized));
@@ -1 +1 @@
1
- export declare const OXYGEN_BUILD_VERSION = "1.1014.1696";
1
+ export declare const OXYGEN_BUILD_VERSION = "1.1014.1870";
@@ -1,2 +1,2 @@
1
1
  // GENERATED by scripts/ci/version-stamp.mjs from VERSION + git history. Do not edit; do not commit.
2
- export const OXYGEN_BUILD_VERSION = "1.1014.1696";
2
+ export const OXYGEN_BUILD_VERSION = "1.1014.1870";
@@ -144,10 +144,10 @@ function sequenceActivityDescription(key, label) {
144
144
  }
145
145
  function crmActivityDescription(key, label) {
146
146
  if (key === "email_bounced") {
147
- return "An email-bounce activity was added to a CRM record timeline, regardless of which producer logged it. Use the Sequencer preset for an outreach enrollment's own bounce outcome.";
147
+ return "An email-bounce activity was added to a CRM record timeline by anything except a workflow. Use the Sequencer preset for an outreach enrollment's own bounce outcome.";
148
148
  }
149
149
  if (key === "meeting_booked") {
150
- return "A meeting-booked activity was added to a CRM record timeline, regardless of which producer logged it. Use the Sequencer preset for an outreach enrollment's own meeting outcome.";
150
+ return "A meeting-booked activity was added to a CRM record timeline by anything except a workflow (a workflow-logged meeting, such as from the Cal.com router, never fires it). Use the Sequencer preset for an outreach enrollment's own meeting outcome.";
151
151
  }
152
152
  if (key === "placement_changed") {
153
153
  return "Inbox placement for a sender domain at one receiver provider changed (inbox rate drop or Gmail Primary to Promotions). A workspace Signal with no CRM record; placement never pauses a sender.";
@@ -116,6 +116,11 @@
116
116
  "import": "./dist/suppression-entries.js",
117
117
  "default": "./dist/suppression-entries.js"
118
118
  },
119
+ "./listed-website-platforms": {
120
+ "types": "./dist/listed-website-platforms.d.ts",
121
+ "import": "./dist/listed-website-platforms.js",
122
+ "default": "./dist/listed-website-platforms.js"
123
+ },
119
124
  "./dnc-identities": {
120
125
  "types": "./dist/dnc-identities.d.ts",
121
126
  "import": "./dist/dnc-identities.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxygen-agent/cli",
3
- "version": "1.1014.1696",
3
+ "version": "1.1014.1870",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -42,7 +42,7 @@
42
42
  "@opentelemetry/resources": "2.10.0",
43
43
  "@opentelemetry/sdk-trace-base": "2.10.0",
44
44
  "commander": "14.0.3",
45
- "esbuild": "0.27.7",
45
+ "esbuild": "0.28.2",
46
46
  "read-excel-file": "6.0.3",
47
47
  "typescript": "npm:@typescript/typescript6@6.0.2",
48
48
  "yaml": "2.9.0",