@oxygen-agent/cli 1.1014.1895 → 1.1014.2040
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/auto-update.d.ts +1 -1
- package/dist/auto-update.js +3 -3
- package/dist/cli-install.d.ts +65 -0
- package/dist/cli-install.js +165 -0
- package/dist/command-families/tables/options.d.ts +1 -0
- package/dist/command-families/tables/register-automation.js +3 -1
- package/dist/commands/billing.js +1 -1
- package/dist/commands/managed-inboxes.js +6 -2
- package/dist/commands/observability.js +4 -4
- package/dist/commands/sequences.js +1 -1
- package/dist/commands/subscriptions.js +7 -5
- package/dist/commands/table-runs.js +10 -0
- package/dist/commands/tags.js +2 -2
- package/dist/commands/workflows.js +31 -10
- package/dist/http-client.d.ts +1 -1
- package/dist/http-client.js +1 -1
- package/dist/update.d.ts +4 -57
- package/dist/update.js +17 -163
- package/node_modules/@oxygen/formula/dist/cross-row-function.d.ts +13 -0
- package/node_modules/@oxygen/formula/dist/cross-row-function.js +1 -0
- package/node_modules/@oxygen/formula/dist/{refactor-internals → cross-row-functions}/novelty-score.d.ts +2 -0
- package/node_modules/@oxygen/formula/dist/{refactor-internals → cross-row-functions}/novelty-score.js +1 -0
- package/node_modules/@oxygen/formula/dist/cross-row-functions.generated.d.ts +3 -0
- package/node_modules/@oxygen/formula/dist/cross-row-functions.generated.js +3 -0
- package/node_modules/@oxygen/formula/dist/evaluate.d.ts +12 -1
- package/node_modules/@oxygen/formula/dist/evaluate.js +28 -3
- package/node_modules/@oxygen/recipe-sdk/dist/index.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/billing.d.ts +5 -1
- package/node_modules/@oxygen/shared/dist/billing.js +5 -1
- package/node_modules/@oxygen/shared/dist/capability-discovery-skill-audiences.generated.d.ts +30 -0
- package/node_modules/@oxygen/shared/dist/capability-discovery-skill-audiences.generated.js +33 -0
- package/node_modules/@oxygen/shared/dist/capability-discovery-skills.d.ts +39 -0
- package/node_modules/@oxygen/shared/dist/capability-discovery-skills.js +86 -0
- package/node_modules/@oxygen/shared/dist/capability-discovery-types.d.ts +93 -0
- package/node_modules/@oxygen/shared/dist/capability-discovery-types.js +1 -0
- package/node_modules/@oxygen/shared/dist/capability-discovery.d.ts +12 -270
- package/node_modules/@oxygen/shared/dist/capability-discovery.js +124 -3713
- package/node_modules/@oxygen/shared/dist/capability-intents/agency-directory.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/agency-directory.rules.js +5 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/agents.d.ts +10 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/agents.js +53 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/agents.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/agents.rules.js +25 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.d.ts +31 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.js +70 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/billing-and-budgets.rules.js +85 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.d.ts +9 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.js +54 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/collaboration.rules.js +28 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/connected-integrations.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/connected-integrations.rules.js +23 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.d.ts +43 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.js +90 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/connected-linkedin.rules.js +58 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/connected-whatsapp.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/connected-whatsapp.rules.js +14 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/geo.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/geo.rules.js +9 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/index.generated.d.ts +365 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/index.generated.js +90 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.d.ts +20 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.js +37 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/knowledge-graph.rules.js +43 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.d.ts +4 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.js +26 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/linkedin-public-research.rules.js +42 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/messages.d.ts +6 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/messages.js +16 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/messages.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/messages.rules.js +68 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/normalize.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/normalize.js +4 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.d.ts +6 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.js +23 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/platform-operations.rules.js +25 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/posts.d.ts +1 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/posts.js +12 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/posts.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/posts.rules.js +20 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/publishing.d.ts +86 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/publishing.js +135 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/publishing.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/publishing.rules.js +89 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.d.ts +7 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.js +85 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/read-inspection.rules.js +28 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/recipes.d.ts +7 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/recipes.js +73 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/recipes.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/recipes.rules.js +36 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/records.d.ts +86 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/records.js +240 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/records.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/records.rules.js +71 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.d.ts +27 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.js +67 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/sending-infrastructure.rules.js +115 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/sequences.d.ts +71 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/sequences.js +150 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/sequences.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/sequences.rules.js +149 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/signals.d.ts +42 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/signals.js +42 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/signals.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/signals.rules.js +47 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.d.ts +60 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.js +94 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.rules.js +94 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/tables.d.ts +196 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/tables.js +394 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/tables.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/tables.rules.js +384 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/tags.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/tags.rules.js +5 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/visual-rendering.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/visual-rendering.rules.js +8 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/workflows.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/workflows.js +20 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/workflows.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/workflows.rules.js +90 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.d.ts +59 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.js +121 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.rules.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-intents/workspace-access.rules.js +58 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/ads.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/ads.js +17 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/agency-directory.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/agency-directory.js +17 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/agents.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/agents.js +17 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/billing-and-budgets.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/billing-and-budgets.js +17 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/collaboration.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/collaboration.js +39 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/connected-integrations.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/connected-integrations.js +17 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/connected-linkedin.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/connected-linkedin.js +17 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/connected-whatsapp.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/connected-whatsapp.js +17 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/dashboards.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/dashboards.js +28 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/discovery-and-skills.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/discovery-and-skills.js +22 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/geo.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/geo.js +13 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/index.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/index.js +64 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/knowledge-graph.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/knowledge-graph.js +17 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/linkedin-public-research.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/linkedin-public-research.js +18 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/messages.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/messages.js +21 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/observability.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/observability.js +17 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/onboarding-and-copilot.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/onboarding-and-copilot.js +23 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/platform-operations.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/platform-operations.js +17 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/posts.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/posts.js +17 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/publishing.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/publishing.js +20 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/recipes.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/recipes.js +17 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/records.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/records.js +20 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/sending-infrastructure.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/sending-infrastructure.js +42 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/sequences.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/sequences.js +32 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/signals.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/signals.js +17 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/sourcing-and-provider-tools.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/sourcing-and-provider-tools.js +21 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/support-and-feedback.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/support-and-feedback.js +17 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/tables.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/tables.js +34 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/tags.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/tags.js +17 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/visual-rendering.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/visual-rendering.js +17 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/workflows.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/workflows.js +17 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/workspace-access.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/capability-routes/workspace-access.js +26 -0
- package/node_modules/@oxygen/shared/dist/cell-format.js +2 -2
- package/node_modules/@oxygen/shared/dist/collab.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/contracts/connectors.js +2 -0
- package/node_modules/@oxygen/shared/dist/contracts/customer-operations.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/contracts/geo.js +1 -1
- package/node_modules/@oxygen/shared/dist/contracts/operations/agent-sessions.d.ts +1 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/agent-sessions.js +1 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/browser.d.ts +1 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/browser.js +1 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/clay-migration.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/clay-migration.js +2 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/connectors.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/connectors.js +2 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/geo.d.ts +1 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/geo.js +1 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/guided-activation.d.ts +1 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/guided-activation.js +1 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/index.generated.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/index.generated.js +26 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/reply-oxygent.d.ts +1 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/reply-oxygent.js +1 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/sender-limits.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/sender-limits.js +2 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/table-feed-update.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/table-feed-update.js +2 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/teammates.d.ts +1 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/teammates.js +1 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-pages.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-pages.js +2 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-skills.d.ts +1 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations/workspace-skills.js +1 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations.d.ts +6 -0
- package/node_modules/@oxygen/shared/dist/contracts/operations.js +7 -15
- package/node_modules/@oxygen/shared/dist/contracts/sender-limits.js +1 -0
- package/node_modules/@oxygen/shared/dist/diagnostic-storage-lock.js +33 -22
- package/node_modules/@oxygen/shared/dist/diagnostics.js +11 -8
- package/node_modules/@oxygen/shared/dist/dnc-identities.js +1 -1
- package/node_modules/@oxygen/shared/dist/error-redaction.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/error-redaction.js +2 -2
- package/node_modules/@oxygen/shared/dist/esp-contract.d.ts +133 -0
- package/node_modules/@oxygen/shared/dist/esp-contract.js +121 -0
- package/node_modules/@oxygen/shared/dist/first-month-offer-window.d.ts +3 -0
- package/node_modules/@oxygen/shared/dist/first-month-offer.d.ts +15 -7
- package/node_modules/@oxygen/shared/dist/first-month-offer.js +23 -9
- package/node_modules/@oxygen/shared/dist/{geo.js → geo/geo.js} +2 -2
- package/node_modules/@oxygen/shared/dist/guided-activation.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/index.d.ts +6 -5
- package/node_modules/@oxygen/shared/dist/index.js +7 -5
- package/node_modules/@oxygen/shared/dist/knowledge-bootstrap.js +1 -1
- package/node_modules/@oxygen/shared/dist/linkedin-connection-identity.js +1 -1
- package/node_modules/@oxygen/shared/dist/listed-website-platforms.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/listed-website-platforms.js +23 -1
- package/node_modules/@oxygen/shared/dist/{sending-domain-rollout.js → mailboxes/sending-domain-rollout.js} +1 -1
- package/node_modules/@oxygen/shared/dist/mcp-event-contract.js +1 -1
- package/node_modules/@oxygen/shared/dist/onboarding-leads.d.ts +67 -0
- package/node_modules/@oxygen/shared/dist/onboarding-leads.js +78 -0
- package/node_modules/@oxygen/shared/dist/otlp-log-sink.js +20 -0
- package/node_modules/@oxygen/shared/dist/plan-capabilities.js +1 -1
- package/node_modules/@oxygen/shared/dist/plan-limits.d.ts +2 -2
- package/node_modules/@oxygen/shared/dist/plan-limits.js +6 -7
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-core.d.ts → posts/metrics-core.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-linkedin.d.ts → posts/metrics-linkedin.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-linkedin.js → posts/metrics-linkedin.js} +2 -2
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-series.d.ts → posts/metrics-series.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-series.js → posts/metrics-series.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-x.d.ts → posts/metrics-x.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-x.js → posts/metrics-x.js} +2 -2
- package/node_modules/@oxygen/shared/dist/{social-post-metrics.d.ts → posts/metrics.d.ts} +3 -3
- package/node_modules/@oxygen/shared/dist/{social-post-metrics.js → posts/metrics.js} +3 -3
- package/node_modules/@oxygen/shared/dist/recipient-provider.d.ts +2 -10
- package/node_modules/@oxygen/shared/dist/recipient-provider.js +1 -9
- package/node_modules/@oxygen/shared/dist/sending-domain-faults.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/sending-domain-faults.js +1 -1
- package/node_modules/@oxygen/shared/dist/sequence-internals/esp-policy.d.ts +2 -118
- package/node_modules/@oxygen/shared/dist/sequence-internals/esp-policy.js +2 -107
- package/node_modules/@oxygen/shared/dist/sequences.d.ts +0 -1
- package/node_modules/@oxygen/shared/dist/sequences.js +0 -2
- package/node_modules/@oxygen/shared/dist/{native-chat-discovery.d.ts → support/native-chat-discovery.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{native-chat-discovery.js → support/native-chat-discovery.js} +1 -1
- package/node_modules/@oxygen/shared/dist/suppression-entries.js +1 -1
- package/node_modules/@oxygen/shared/dist/table-field-types.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/table-field-types.js +2 -2
- package/node_modules/@oxygen/shared/dist/{column-output-fields.js → tables/column-output-fields.js} +4 -4
- package/node_modules/@oxygen/shared/dist/{tags.d.ts → tags/tags.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{tags.js → tags/tags.js} +1 -1
- package/node_modules/@oxygen/shared/dist/tenant-migration-names.d.ts +5 -0
- package/node_modules/@oxygen/shared/dist/tenant-migration-names.js +8 -0
- package/node_modules/@oxygen/shared/dist/ugc-amplification-identity.js +1 -1
- package/node_modules/@oxygen/shared/dist/version.generated.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/version.generated.js +1 -1
- package/node_modules/@oxygen/shared/dist/workspace-placement-bulk.d.ts +6 -0
- package/node_modules/@oxygen/shared/dist/workspace-placement-bulk.js +9 -2
- package/node_modules/@oxygen/shared/dist/workspace-placement-schedule.d.ts +44 -0
- package/node_modules/@oxygen/shared/dist/workspace-placement-schedule.js +90 -0
- package/node_modules/@oxygen/shared/dist/workspace-placement-view.d.ts +24 -0
- package/node_modules/@oxygen/shared/dist/workspace-placement-view.js +5 -4
- package/node_modules/@oxygen/shared/dist/workspace-placement.d.ts +4 -0
- package/node_modules/@oxygen/shared/dist/workspace-placement.js +7 -1
- package/node_modules/@oxygen/shared/package.json +0 -25
- package/node_modules/@oxygen/workflows/dist/cron.d.ts +42 -0
- package/node_modules/@oxygen/workflows/dist/cron.js +271 -0
- package/node_modules/@oxygen/workflows/dist/event-dispatch.d.ts +2 -1
- package/node_modules/@oxygen/workflows/dist/graph/condition.d.ts +3 -0
- package/node_modules/@oxygen/workflows/dist/graph/condition.js +19 -0
- package/node_modules/@oxygen/workflows/dist/graph/expression.d.ts +1 -2
- package/node_modules/@oxygen/workflows/dist/graph/expression.js +2 -19
- package/node_modules/@oxygen/workflows/dist/graph/lint.d.ts +1 -1
- package/node_modules/@oxygen/workflows/dist/graph/lint.js +4 -3
- package/node_modules/@oxygen/workflows/dist/graph/types.d.ts +4 -3
- package/node_modules/@oxygen/workflows/dist/index.d.ts +9 -1043
- package/node_modules/@oxygen/workflows/dist/index.js +11 -2124
- package/node_modules/@oxygen/workflows/dist/manifest-builders.d.ts +73 -0
- package/node_modules/@oxygen/workflows/dist/manifest-builders.js +102 -0
- package/node_modules/@oxygen/workflows/dist/manifest-guards.d.ts +16 -0
- package/node_modules/@oxygen/workflows/dist/manifest-guards.js +34 -0
- package/node_modules/@oxygen/workflows/dist/manifest-hash.d.ts +47 -0
- package/node_modules/@oxygen/workflows/dist/manifest-hash.js +102 -0
- package/node_modules/@oxygen/workflows/dist/manifest-lint.d.ts +17 -0
- package/node_modules/@oxygen/workflows/dist/manifest-lint.js +474 -0
- package/node_modules/@oxygen/workflows/dist/manifest-types.d.ts +256 -0
- package/node_modules/@oxygen/workflows/dist/manifest-types.js +9 -0
- package/node_modules/@oxygen/workflows/dist/manifest-validation.d.ts +75 -0
- package/node_modules/@oxygen/workflows/dist/manifest-validation.js +903 -0
- package/node_modules/@oxygen/workflows/dist/pure-function.d.ts +17 -0
- package/node_modules/@oxygen/workflows/dist/pure-function.js +130 -0
- package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-comparison.d.ts +1 -17
- package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-comparison.js +1 -93
- package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-pattern.d.ts +16 -0
- package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-pattern.js +92 -0
- package/node_modules/@oxygen/workflows/dist/workflow-schemas.d.ts +545 -0
- package/node_modules/@oxygen/workflows/dist/workflow-schemas.js +135 -0
- package/node_modules/@oxygen/workflows/package.json +4 -0
- package/package.json +1 -1
- /package/node_modules/@oxygen/shared/dist/{geo.d.ts → geo/geo.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{sending-domain-rollout.d.ts → mailboxes/sending-domain-rollout.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{attempt-provenance.d.ts → observability/attempt-provenance.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{attempt-provenance.js → observability/attempt-provenance.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-mentions.d.ts → posts/linkedin-mentions.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-mentions.js → posts/linkedin-mentions.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-post-keywords.d.ts → posts/linkedin-post-keywords.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-post-keywords.js → posts/linkedin-post-keywords.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-post-url.d.ts → posts/linkedin-post-url.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-post-url.js → posts/linkedin-post-url.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{social-post-metrics-core.js → posts/metrics-core.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{native-chat.d.ts → support/native-chat.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{native-chat.js → support/native-chat.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{plain-support-events.d.ts → support/plain-support-events.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{plain-support-events.js → support/plain-support-events.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{column-output-fields.d.ts → tables/column-output-fields.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-url.d.ts → tables/linkedin-url.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-url.js → tables/linkedin-url.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{select-options.d.ts → tables/select-options.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{select-options.js → tables/select-options.js} +0 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { isSecondPartyDecisionIntent } from "./collaboration.js";
|
|
2
|
+
import { isHostedWorkflowIntent, isRecurringCompanyMonitoringIntent } from "./workflows.js";
|
|
3
|
+
/** Stored inspections precede similarly named execution and review queues. */
|
|
4
|
+
export function readInspectionRecommendation(query) {
|
|
5
|
+
const positive = query.replace(/\b(?:do not|don't)\b(?:(?!\b(?:but|then)\b)[^.;])*/g, "");
|
|
6
|
+
const documentation = positive.replace(/\b(?:would|could|how to)\s+(?:review|create|approve|schedule|publish)(?:\s+(?:and|or)\s+(?:review|create|approve|schedule|publish))*/g, "hypothetical action");
|
|
7
|
+
const action = /\b(?:but|then)\s+(?:please\s+)?(?:creat\w*|updat\w*|edit\w*|delet\w*|cancel\w*|approv\w*|schedul\w*|publish\w*|sav\w*|enabl\w*|appl\w*|send\w*|clear\w*|set|add)\b/.test(query);
|
|
8
|
+
if (action)
|
|
9
|
+
return null;
|
|
10
|
+
const stored = positive.replace(/\bwithout\s+(?:changing|approving|rejecting|publishing|running|executing|refreshing)\b(?:\s+(?:widget\s+)?data\b)?/g, "");
|
|
11
|
+
// A daily cap is context for an inbox inspection, not a recurring job or a
|
|
12
|
+
// request to change its volume. Keep explicit writes and other owners intact.
|
|
13
|
+
const mailboxInspection = stored.replace(/\bdaily (?:(?:campaign|sending|email) )?(?:limits?|caps?)\b/g, "sending limit");
|
|
14
|
+
if (/\b(?:mailbox(?:es)?|inbox(?:es)?|email accounts?|email senders?)\b/.test(stored)
|
|
15
|
+
&& /\b(?:health|reputation|rejections?|bounc\w*|deliverability|dsn|ndr)\b/.test(stored)
|
|
16
|
+
&& !isHostedWorkflowIntent(mailboxInspection)
|
|
17
|
+
&& !isSecondPartyDecisionIntent(stored)
|
|
18
|
+
&& !/\b(?:linkedin|whatsapp|sequences?|campaigns?|tables?|columns?|crm|posts?|messages?|conversations?|threads?|dns|spf|dkim|dmarc|verify|verification|create|write|edit|update|change|delete|remove|archive|save|approve|reject|publish|run|running|execute|send|refresh|launch|enable|disable|apply|import|sync|schedule|enroll|add|set|pause|resume|test)\b/.test(mailboxInspection))
|
|
19
|
+
return {
|
|
20
|
+
capabilityId: "sending-infrastructure",
|
|
21
|
+
tools: ["oxygen_mailboxes_health", "oxygen_mailboxes_get", "oxygen_mailboxes_deliverability_evidence"],
|
|
22
|
+
commands: ["mailboxes health", "mailboxes get", "mailboxes deliverability evidence"],
|
|
23
|
+
execution: "Read stored reputation, measurement freshness and seven-day rejection/send evidence with oxygen_mailboxes_health. Its mailboxes selector accepts inbox ids or addresses and defaults to full evidence; fleet totals and coverage stay unfiltered. CLI: mailboxes health --mailboxes <id-or-address> --json. Read oxygen_mailboxes_get for today's effective cap; deliverability evidence adds stored placement and domain checks. These reads cost 0 credits and do not sync providers or change settings. External MCP uses oxygen_capabilities_read; hydrate the selected tool's schema before calling.",
|
|
24
|
+
};
|
|
25
|
+
// A trigger diagnosis needs the live definition, not run tailing or a call.
|
|
26
|
+
// Keep execution, authoring and run-history requests with their own owners.
|
|
27
|
+
if (/\bworkflows?\b/.test(stored)
|
|
28
|
+
&& /\b(?:get|read|inspect|show|diagnose|details)\b/.test(stored)
|
|
29
|
+
&& !/\b(?:runs?|tail|logs?|templates?|blueprints?|recipes?|schemas?|knowledge|wiki|messages?|inbox|dashboards?|functions?|create|build|author|design|write|edit|update|change|delete|remove|archive|save|approve|reject|publish|running|execute|call|cancel|retry|resume|pause|restore|reset|duplicate|copy|materialize|send|refresh|launch|enable|disable|apply|import|sync|schedule|enroll|add|set)\b/.test(stored))
|
|
30
|
+
return {
|
|
31
|
+
capabilityId: "workflows",
|
|
32
|
+
tools: ["oxygen_workflows_get", "oxygen_workflows_revisions", "oxygen_workflows_runs"],
|
|
33
|
+
commands: ["workflows get", "workflows revisions", "workflows runs"],
|
|
34
|
+
execution: "Read the named Workflow's live trigger status and scheduler_last_error_code with oxygen_workflows_get; revisions show authored definitions and runs show execution history. A stored refusal explains the current block, not when platform policy changed. External MCP uses oxygen_capabilities_read. Inspect before separately approving enable or execution; discovery grants no standing authority or credit spend.",
|
|
35
|
+
};
|
|
36
|
+
const storedOnly = !isHostedWorkflowIntent(stored) && !isSecondPartyDecisionIntent(stored)
|
|
37
|
+
&& !/\b(?:create|write|edit|update|change|delete|remove|archive|save|approve|reject|publish|run|running|execute|send|refresh|launch|enable|disable|apply|materialize|import|sync|schedule|enroll|add|set)\b/.test(stored);
|
|
38
|
+
// The connector BEFORE's explicit Knowledge requests were claimed by the
|
|
39
|
+
// generic message-review rule. Captured patches live in Knowledge proposals.
|
|
40
|
+
if (storedOnly && /\b(?:knowledge|wiki|canonical[ -]copy)\b/.test(stored)
|
|
41
|
+
&& !/\b(?:message reviews?|inbox messages?|reply drafts?|conversations?)\b/.test(stored)
|
|
42
|
+
&& /\b(?:proposals?|captured(?: page)? changes?|(?:pending|awaiting|waiting)\b[^.;]{0,60}\breview)\b/.test(stored)
|
|
43
|
+
&& /\b(?:list|read|show|get|inspect|view|review|pending|awaiting|waiting|queue)\b/.test(stored))
|
|
44
|
+
return {
|
|
45
|
+
capabilityId: "knowledge-graph",
|
|
46
|
+
tools: ["oxygen_knowledge_proposals_list"],
|
|
47
|
+
commands: ["knowledge proposals"],
|
|
48
|
+
execution: "Read pending Knowledge changes with oxygen_knowledge_proposals_list (status=open), including their exact captured patch and target revision. These are Knowledge proposals; message reviews and page revision history have separate owners. External MCP uses oxygen_capabilities_read; built-in agents invoke the native tool. Inspect the returned proposal before a separately approved decision. An empty result contains no change to inspect; do not invent one or claim unreported pagination.",
|
|
49
|
+
};
|
|
50
|
+
if (storedOnly && /\bdashboards?\b/.test(stored)
|
|
51
|
+
&& /\b(?:saved|stored|existing|user[ -]defined)\b/.test(stored)
|
|
52
|
+
&& /\b(?:get|read|show|inspect|view|describe)\b/.test(stored)
|
|
53
|
+
&& /\b(?:definitions?|configurations?|settings|setup|tabs?|widgets?)\b/.test(stored)
|
|
54
|
+
&& !/\b(?:data|live|analytics|metrics|funnel|summary)\b/.test(stored))
|
|
55
|
+
return {
|
|
56
|
+
capabilityId: "dashboards",
|
|
57
|
+
tools: ["oxygen_dashboards_list", "oxygen_dashboards_get"],
|
|
58
|
+
commands: ["dashboards list", "dashboards get"],
|
|
59
|
+
execution: "Read saved Dashboard names with oxygen_dashboards_list, then oxygen_dashboards_get for one exact saved definition, tabs and widget configuration. External MCP uses oxygen_capabilities_read; built-in agents invoke the native tools. Reading the saved setup does not execute or refresh widget data. Curated funnel reports, widget data and Dashboard authoring have separate operations.",
|
|
60
|
+
};
|
|
61
|
+
if (/^\s*(?:show|explain|describe|read|inspect)\b/.test(query)
|
|
62
|
+
&& /\bposts?\b/.test(query) && /\b(?:linkedin|publishing)\b/.test(query)
|
|
63
|
+
&& /\b(?:how|process|paths?)\b/.test(query) && /\b(?:review|approval|approve)\b/.test(query)
|
|
64
|
+
&& /\b(?:do not|don't)\b[^.;]{0,120}\b(?:create|approve|schedule|publish)\b/.test(query)
|
|
65
|
+
&& !/\b(?:creat\w*|updat\w*|edit\w*|delet\w*|cancel\w*|approv(?:e|es|ing)|schedul\w*|publish(?:es)?|send\w*|clear\w*|set|add)\b/.test(documentation)
|
|
66
|
+
&& !/\b(?:workflows?|agents?|tables?|crm|knowledge|comments?|scrape\w*|search|find)\b/.test(positive))
|
|
67
|
+
return {
|
|
68
|
+
capabilityId: "publishing",
|
|
69
|
+
tools: ["oxygen_publishing_posts_list", "oxygen_publishing_posts_get"],
|
|
70
|
+
commands: ["publishing posts list", "publishing posts get"],
|
|
71
|
+
execution: "Read stored Publishing posts and their approval state first. Hydrate list/get; approval_status=needs_approval selects the review queue. Inspect create/update/approve schemas to explain scheduling or immediate-publication paths without executing them. Schema discovery grants no approval to create, approve, schedule or publish a post.",
|
|
72
|
+
};
|
|
73
|
+
if (/\bfolders?\b/.test(query) && /\b(?:shared|reference|knowledge)\b/.test(query)
|
|
74
|
+
&& /\b(?:names?|show|list|read|inspect)\b/.test(query)
|
|
75
|
+
&& isRecurringCompanyMonitoringIntent(query) && /\b(?:first step|plan|inspect)\b/.test(query)
|
|
76
|
+
&& /\b(?:do not|don't)\b[^.;]{0,120}\b(?:save|spend)\b/.test(query)
|
|
77
|
+
&& !/\b(?:creat\w*|writ\w*|edit\w*|updat\w*|delet\w*|cancel\w*|sav\w*|enabl\w*|appl\w*|launch\w*|send\w*|import\w*|sync\w*|clear\w*|set|add|tables?|copilot|mailboxes?|crm)\b/.test(positive))
|
|
78
|
+
return {
|
|
79
|
+
capabilityId: "knowledge-graph",
|
|
80
|
+
tools: ["oxygen_knowledge_folders_list", "oxygen_blueprints_list"],
|
|
81
|
+
commands: ["knowledge folders list", "blueprints list"],
|
|
82
|
+
execution: "Read workspace folder names with oxygen_knowledge_folders_list; the registry includes empty folders. Report them as workspace metadata: this native contract has no per-folder sharing or ownership fields. truncated qualifies incomplete page lists. For the separate recurring company-monitoring first step, inspect oxygen_blueprints_list with a narrow query and describe a matching definition. Workflows own recurring execution; discovery does not save or enable automation and grants no provider spend or write approval.",
|
|
83
|
+
};
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { readInspectionRecommendation } from "./read-inspection.js";
|
|
2
|
+
// Stored inspections across cards (mailbox health, a Workflow's trigger,
|
|
3
|
+
// Knowledge proposals, saved Dashboards, Publishing review, shared folders):
|
|
4
|
+
// the inspection names the card it reads, ahead of that card's other rules.
|
|
5
|
+
export const rules = {
|
|
6
|
+
explicit: [
|
|
7
|
+
{ order: 30, route: (query) => readInspectionRecommendation(query)?.capabilityId ?? null },
|
|
8
|
+
],
|
|
9
|
+
recommendations: [
|
|
10
|
+
{
|
|
11
|
+
order: 40,
|
|
12
|
+
recommend: (card, query) => {
|
|
13
|
+
const readOnly = readInspectionRecommendation(query);
|
|
14
|
+
return readOnly?.capabilityId === card.id ? readOnly : null;
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
cardViews: [
|
|
19
|
+
{
|
|
20
|
+
order: 10,
|
|
21
|
+
view: (card, query) => {
|
|
22
|
+
const readOnly = readInspectionRecommendation(query);
|
|
23
|
+
return readOnly?.capabilityId === card.id
|
|
24
|
+
? { card: { ...card, posture: "read_only", execution: readOnly.execution }, done: true, preferSkill: true } : null;
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** The one LinkedIn audience-campaign Recipe since the 2026-10-04 consolidation. */
|
|
2
|
+
export declare const AUDIENCE_PLAY_SLUG = "inbound-led-outbound";
|
|
3
|
+
/** The six audience Recipes it absorbed or replaced; a bare old slug still names the play. */
|
|
4
|
+
export declare const AUDIENCE_PLAY_SLUGS: readonly string[];
|
|
5
|
+
/** Whole audience acquisition/outreach; individual reads and runtime controls keep their owners. */
|
|
6
|
+
export declare function isLinkedInAudienceCampaignIntent(rawQuery: string): boolean;
|
|
7
|
+
export declare function isInboundLedOutboundIntent(query: string): boolean;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { normalizeIntent } from "./normalize.js";
|
|
2
|
+
import { isSecondPartyDecisionIntent } from "./collaboration.js";
|
|
3
|
+
import { isLinkedInAccountLimitsIntent } from "./connected-linkedin.js";
|
|
4
|
+
import { isOwnedPostCommentIntent } from "./posts.js";
|
|
5
|
+
import { isFailedPostIntent, isFirstCommentIntent, isPostCoverOrPreviewIntent, isPublishingPostIntent, isUgcIntent } from "./publishing.js";
|
|
6
|
+
import { isSenderCopyVariableIntent, isSenderProfileIntent, isSequenceInvitationTimeoutIntent, isSequenceScheduleIntent, isSequenceUnsubscribeIntent } from "./sequences.js";
|
|
7
|
+
import { tableMaintenanceRecommendation, tableReadRecommendation } from "./tables.js";
|
|
8
|
+
import { isWorkspacePagesIntent, isWorkspaceSettingsIntent } from "./workspace-access.js";
|
|
9
|
+
/** The one LinkedIn audience-campaign Recipe since the 2026-10-04 consolidation. */
|
|
10
|
+
export const AUDIENCE_PLAY_SLUG = "inbound-led-outbound";
|
|
11
|
+
/** The six audience Recipes it absorbed or replaced; a bare old slug still names the play. */
|
|
12
|
+
export const AUDIENCE_PLAY_SLUGS = [
|
|
13
|
+
AUDIENCE_PLAY_SLUG,
|
|
14
|
+
"own-post-engagers",
|
|
15
|
+
"competitor-post-engagers",
|
|
16
|
+
"creator-post-engagers",
|
|
17
|
+
"keyword-post-engagers",
|
|
18
|
+
"company-page-followers",
|
|
19
|
+
"own-profile-followers",
|
|
20
|
+
];
|
|
21
|
+
/** Whole audience acquisition/outreach; individual reads and runtime controls keep their owners. */
|
|
22
|
+
export function isLinkedInAudienceCampaignIntent(rawQuery) {
|
|
23
|
+
const query = normalizeIntent(rawQuery);
|
|
24
|
+
// Match exact Recipe slugs before punctuation normalization makes a slug
|
|
25
|
+
// indistinguishable from a plain company-page follower research request.
|
|
26
|
+
const canonicalPlay = new RegExp(`\\b(?:${AUDIENCE_PLAY_SLUGS.join("|")})\\b`, "i").exec(rawQuery);
|
|
27
|
+
if (canonicalPlay?.[0].toLowerCase() === rawQuery.trim().toLowerCase())
|
|
28
|
+
return true;
|
|
29
|
+
if (!/\blinkedin\b/.test(query) && !canonicalPlay)
|
|
30
|
+
return false;
|
|
31
|
+
// Audience nouns can be the subject of a local read/control operation. Only
|
|
32
|
+
// explicit acquisition/setup language may turn such a request into a play.
|
|
33
|
+
const acquisition = /\b(build|prepare|create|start|launch|scrape|capture|collect)\b|\bset up\b/.test(query);
|
|
34
|
+
if (!acquisition && /\b(show|list|read|inspect|verify|validate|label|classify|tag|rank|grade|score|rename|update|change|edit|delete|remove|clear|export|import)\b/.test(query))
|
|
35
|
+
return false;
|
|
36
|
+
if (/\boxygen_\w+\b/i.test(rawQuery)
|
|
37
|
+
|| isUgcIntent(query)
|
|
38
|
+
|| isWorkspacePagesIntent(query) || isWorkspaceSettingsIntent(query)
|
|
39
|
+
|| isPublishingPostIntent(query) || isFirstCommentIntent(query)
|
|
40
|
+
|| isPostCoverOrPreviewIntent(query) || isFailedPostIntent(query)
|
|
41
|
+
|| isOwnedPostCommentIntent(query) || isSecondPartyDecisionIntent(query)
|
|
42
|
+
|| tableReadRecommendation(query) || tableMaintenanceRecommendation(query)
|
|
43
|
+
|| isSequenceScheduleIntent(query) || isSequenceUnsubscribeIntent(query) || isSequenceInvitationTimeoutIntent(query)
|
|
44
|
+
|| isSenderProfileIntent(query) || isSenderCopyVariableIntent(query)
|
|
45
|
+
|| isLinkedInAccountLimitsIntent(query)
|
|
46
|
+
|| /\b(workflows?|sequences?|cadences?|webhook|cron|event trigger|branching|retries)\b/.test(query)
|
|
47
|
+
|| /\b(status|pause|resume|disable|enable|logs?|tail|price|pricing|order)\b/.test(query)
|
|
48
|
+
|| /\b(known|this|single|one) posts?\b|linkedin\.com\/(?:posts\/|feed\/update\/)/.test(query)
|
|
49
|
+
|| /\b(one|single) (?:of them|person|recipient)\b/.test(query))
|
|
50
|
+
return false;
|
|
51
|
+
if (canonicalPlay)
|
|
52
|
+
return true;
|
|
53
|
+
const audienceFromSources = /\baudience\b/.test(query) && /\b(from|using|sources?|based on)\b/.test(query);
|
|
54
|
+
if (audienceFromSources && /\b(posts?|creators?|keywords?|profiles?|followers?)\b/.test(query))
|
|
55
|
+
return true;
|
|
56
|
+
const engagement = /\bposts?\b/.test(query) && /\b(engagers?|engaged|engagement|reactors?|reacting|reactions?|commenters?|commenting)\b/.test(query);
|
|
57
|
+
const followers = /\bfollowers?\b/.test(query);
|
|
58
|
+
if (!engagement && !followers)
|
|
59
|
+
return false;
|
|
60
|
+
const outreach = /\b(campaigns?|outreach|warm outbound|inbound led outbound)\b/.test(query)
|
|
61
|
+
|| /\b(?:cold )?(email|dm|whatsapp|invite) (?:them|the (?:engagers|followers|audience))\b/.test(query)
|
|
62
|
+
|| /\b(send|start)\b.{0,35}\b(emails?|dms?|connection requests?|invitations?|whatsapp messages?)\b/.test(query);
|
|
63
|
+
const namedPlay = /\b(recipes?|playbooks?|plays?|whole motion|complete motion|end to end motion)\b/.test(query);
|
|
64
|
+
return outreach || namedPlay;
|
|
65
|
+
}
|
|
66
|
+
// The composed inbound-led outbound motion: engagers → ICP gate → capped
|
|
67
|
+
// sequence → CRM. Hyphens are already normalised to spaces by the caller.
|
|
68
|
+
export function isInboundLedOutboundIntent(query) {
|
|
69
|
+
return /\binbound led outbound\b/.test(query)
|
|
70
|
+
|| /\bengagers?\b.{0,40}\b(into|to) (a |my )?(sequence|pipeline)\b/.test(query)
|
|
71
|
+
|| /\bwarm outbound\b.{0,40}\b(posts?|engagement)\b/.test(query)
|
|
72
|
+
|| /\b(whole|end to end|complete) (gtm )?motion\b/.test(query);
|
|
73
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { AUDIENCE_PLAY_SLUG, isInboundLedOutboundIntent, isLinkedInAudienceCampaignIntent } from "./recipes.js";
|
|
2
|
+
export const rules = {
|
|
3
|
+
preRoutes: [
|
|
4
|
+
// A complete audience play starts from its Recipe and the shared audience
|
|
5
|
+
// guide; onboarding consults on open-ended goals and never routes this ask.
|
|
6
|
+
// Its source nouns otherwise select a one-shot post search or follower order.
|
|
7
|
+
{
|
|
8
|
+
order: 30,
|
|
9
|
+
route: (_query, rawQuery, cards) => {
|
|
10
|
+
if (!isLinkedInAudienceCampaignIntent(rawQuery))
|
|
11
|
+
return null;
|
|
12
|
+
const recipes = cards.byId("recipes");
|
|
13
|
+
if (!recipes)
|
|
14
|
+
return null;
|
|
15
|
+
return {
|
|
16
|
+
card: {
|
|
17
|
+
...recipes,
|
|
18
|
+
execution: "Read the inbound-led-outbound Recipe and pick its source (your posts, a competitor's or creator's posts, a topic, your profile viewers, or your followers and connections), resolve current company/ICP context, then read the oxygen-signals file references/audience-campaigns.md. Preserve the exact source, attribution, qualification rule/version and object IDs. Prepare a bounded native audience campaign for email, LinkedIn DM/connection requests or WhatsApp. Keep capture, standing qualification, router and Sequence disabled until their own approval and credit scope; the shared guide owns execution.",
|
|
19
|
+
skills: ["oxygen-recipes", "oxygen-signals"],
|
|
20
|
+
},
|
|
21
|
+
recommendedTools: ["oxygen_recipes_list", "oxygen_recipes_get", "oxygen_context_resolve"],
|
|
22
|
+
recommendedCommands: ["recipes list", "recipes show", "context resolve"],
|
|
23
|
+
exactCommand: `oxygen recipes show ${AUDIENCE_PLAY_SLUG} --json`,
|
|
24
|
+
exactMcpCall: { tool: "oxygen_recipes_get", arguments: { slug: AUDIENCE_PLAY_SLUG } },
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
explicit: [
|
|
30
|
+
// A whole-motion ask ("set up inbound-led outbound for my posts") is a
|
|
31
|
+
// Recipe kit + playbook, not the connected-LinkedIn signals card that the
|
|
32
|
+
// "my LinkedIn … engagers" rule would otherwise claim. Resolve it first.
|
|
33
|
+
{ order: 420, route: (query) => isInboundLedOutboundIntent(query) ? "recipes" : null },
|
|
34
|
+
{ order: 740, route: (query) => /\b(recipe|playbook|proven play|what should i do)\b/.test(query) ? "recipes" : null },
|
|
35
|
+
],
|
|
36
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { CapabilityRouteCard } from "../capability-discovery-types.js";
|
|
2
|
+
/** Saved CRM preset configuration is a Records read, not an enrichment run. */
|
|
3
|
+
export declare function isCrmEnrichmentConfigurationRead(query: string): boolean;
|
|
4
|
+
export declare function crmEnrichmentReadRecommendation(query: string): {
|
|
5
|
+
tools: string[];
|
|
6
|
+
commands: string[];
|
|
7
|
+
exactCommand: string;
|
|
8
|
+
exactMcpCall: {
|
|
9
|
+
tool: string;
|
|
10
|
+
arguments: {
|
|
11
|
+
action: string;
|
|
12
|
+
backfill?: boolean;
|
|
13
|
+
projection: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
/** Stored communications linked to one CRM record use its bounded native read. */
|
|
18
|
+
export declare function crmConnectionsReadRecommendation(query: string): {
|
|
19
|
+
tools: string[];
|
|
20
|
+
commands: string[];
|
|
21
|
+
execution: string;
|
|
22
|
+
} | null;
|
|
23
|
+
/**
|
|
24
|
+
* "Tell me everything about this person" is a stored-Records read. Before this
|
|
25
|
+
* rule it matched no card, and lexical search ranked a write tool
|
|
26
|
+
* (oxygen_profile_viewers_enrichment) first. Every recommended tool is free.
|
|
27
|
+
*/
|
|
28
|
+
export declare function recordDossierReadRecommendation(query: string): {
|
|
29
|
+
tools: string[];
|
|
30
|
+
commands: string[];
|
|
31
|
+
execution: string;
|
|
32
|
+
} | null;
|
|
33
|
+
export declare const RECORD_DOSSIER_FIRST_COMMANDS: readonly ["crm search", "crm get", "crm activity timeline"];
|
|
34
|
+
export declare const RECORD_BRIEF_TOOL = "oxygen_crm_record_brief";
|
|
35
|
+
export declare const RECORD_BRIEF_COMMAND = "crm brief";
|
|
36
|
+
export declare const RECORD_BRIEF_EXECUTION_PREFIX = "Start with crm brief (oxygen_crm_record_brief): one free read of everything stored about the record. It takes the row id, an identity or the exact name, so no search comes first, and each cut section names the read for its rest; use the reads below only for those. ";
|
|
37
|
+
/**
|
|
38
|
+
* Put the Network Mining record brief first on a record-dossier route where the
|
|
39
|
+
* host serves it, and take it off where it does not. The shared router decides
|
|
40
|
+
* by `networkMiningEnabled` in its own process; the CLI decides again by its
|
|
41
|
+
* API host, because its local environment says nothing about the server's.
|
|
42
|
+
* Idempotent; any other route is returned unchanged.
|
|
43
|
+
*/
|
|
44
|
+
export declare function withRecordBrief<T extends {
|
|
45
|
+
card: CapabilityRouteCard;
|
|
46
|
+
recommendedTools: string[];
|
|
47
|
+
recommendedCommands: string[];
|
|
48
|
+
}>(route: T, served: boolean): T;
|
|
49
|
+
/** Record-file lifecycle asks outrank the generic workspace label vocabulary. */
|
|
50
|
+
export declare function crmFileUploadRecommendation(query: string): {
|
|
51
|
+
tools: string[];
|
|
52
|
+
commands: string[];
|
|
53
|
+
execution: string;
|
|
54
|
+
} | null;
|
|
55
|
+
/** CRM backfills and account projections use native Records repair owners. */
|
|
56
|
+
export declare function crmMaintenanceRecommendation(query: string): {
|
|
57
|
+
tools: string[];
|
|
58
|
+
commands: string[];
|
|
59
|
+
execution: string;
|
|
60
|
+
} | null;
|
|
61
|
+
export declare const CRM_ENRICHMENT_READ_VIEW: Pick<CapabilityRouteCard, "owns" | "notFor" | "execution" | "posture">;
|
|
62
|
+
/**
|
|
63
|
+
* Seeded sample records, and keeping one as real (OXP-6.3.14). In the
|
|
64
|
+
* 2026-10-06 blind acceptance the records route answered "mark a sample deal as
|
|
65
|
+
* a real deal" with search/get alone, and `commands search "sample"` ranked
|
|
66
|
+
* `crm keep` third, behind `formulas validate` and `sequences start`. A sample
|
|
67
|
+
* OF something (rows, a run, a batch, copy) is a test slice that other owners
|
|
68
|
+
* keep; seed/demo/example name samples only beside data or records, so "seed
|
|
69
|
+
* companies" and "demo deals" keep their sourcing and pipeline meanings.
|
|
70
|
+
*/
|
|
71
|
+
export declare function crmSampleRecordRecommendation(query: string): {
|
|
72
|
+
tools: string[];
|
|
73
|
+
commands: string[];
|
|
74
|
+
execution: string;
|
|
75
|
+
} | null;
|
|
76
|
+
/** Inventory reads select existing Table fields and retain honest sample totals. */
|
|
77
|
+
export declare function crmInventoryRecommendation(query: string): {
|
|
78
|
+
tools: string[];
|
|
79
|
+
commands: string[];
|
|
80
|
+
} | null;
|
|
81
|
+
/** Saved contact facts belong to Records, regardless of email/phone channel words. */
|
|
82
|
+
export declare function storedCrmContactReadRecommendation(query: string): {
|
|
83
|
+
tools: string[];
|
|
84
|
+
commands: string[];
|
|
85
|
+
execution: string;
|
|
86
|
+
} | null;
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { isSecondPartyDecisionIntent } from "./collaboration.js";
|
|
2
|
+
import { isTableMaintenanceIntent } from "./tables.js";
|
|
3
|
+
import { isHostedWorkflowIntent } from "./workflows.js";
|
|
4
|
+
/** Saved CRM preset configuration is a Records read, not an enrichment run. */
|
|
5
|
+
export function isCrmEnrichmentConfigurationRead(query) {
|
|
6
|
+
if (!/\bcrm\b/.test(query) || !/\benrich\w*\b/.test(query))
|
|
7
|
+
return false;
|
|
8
|
+
// Remove only local negated execution restrictions. A later positive verb
|
|
9
|
+
// ("read, do not change this, then enable...") still rejects this read view.
|
|
10
|
+
const intent = query.replace(/\bnot a provider run\b/g, "")
|
|
11
|
+
.replace(/\b(?:do not|don't|without)\s+(?:any\s+)?(?:chang(?:e|ing)|runn?ing|run|enabl(?:e|ing)|disabl(?:e|ing)|configur(?:e|ing)|send(?:ing)?|sync(?:ing)?)\b/g, "");
|
|
12
|
+
if (/\b(tables?|columns?|workflows?|agents?|functions?|callables?|providers?|hubspot|sync|deals?|custom|fields?|values?|history|failed|items?)\b/.test(intent))
|
|
13
|
+
return false;
|
|
14
|
+
if (/\b(enable|disable|set|configure|change|run|running|backfill|send|create|start|execute|apply)\b/.test(intent))
|
|
15
|
+
return false;
|
|
16
|
+
return /\b(configur(?:ation|ed)|settings?|presets?|auto(?:matic)?|armed|enabled|backlog)\b/.test(intent)
|
|
17
|
+
&& /\b(read|inspect|list|show|view|what|which|how many|current|existing|already)\b/.test(intent);
|
|
18
|
+
}
|
|
19
|
+
export function crmEnrichmentReadRecommendation(query) {
|
|
20
|
+
const omitCounts = /\b(?:skip|omit|leave)\b.{0,45}\bcounts?\b|\bwithout\b.{0,45}\b(?:counts?|scanning historical records)\b/.test(query);
|
|
21
|
+
return {
|
|
22
|
+
tools: ["oxygen_crm_enrichment"], commands: ["crm enrichment list"],
|
|
23
|
+
exactCommand: `oxygen crm enrichment list${omitCounts ? " --no-backfill" : ""} --projection summary --json`,
|
|
24
|
+
exactMcpCall: { tool: "oxygen_crm_enrichment", arguments: { action: "list", ...(omitCounts ? { backfill: false } : {}), projection: "summary" } },
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
/** Stored communications linked to one CRM record use its bounded native read. */
|
|
28
|
+
export function crmConnectionsReadRecommendation(query) {
|
|
29
|
+
if (!/\b(?:crm|records?)\b/.test(query)
|
|
30
|
+
|| !/\b(?:conversations?|sequences?|communications?)\b/.test(query)
|
|
31
|
+
|| !/\b(?:connected|linked|links|associated|belongs?)\b/.test(query)
|
|
32
|
+
|| !/\b(?:read|show|list|inspect|view)\b/.test(query)
|
|
33
|
+
|| isHostedWorkflowIntent(query)
|
|
34
|
+
|| /\b(?:send\w*|repl(?:y|ies|ied|ying)|draft\w*|compos\w*|enroll\w*|launch\w*|creat\w*|schedul\w*|edit\w*|updat\w*|chang\w*|delet\w*|remov\w*|merg\w*|attach\w*|complet\w*|finish\w*|prepar\w*|reserv\w*|renam\w*|archiv\w*|assign\w*|cancel\w*|set(?:s|ting)?|add\w*|appl(?:y|ies|ied|ying)|clear\w*|tables?|workflows?|agents?|providers?|sync\w*|import\w*)\b/.test(query))
|
|
35
|
+
return null;
|
|
36
|
+
return {
|
|
37
|
+
tools: ["oxygen_crm_record_connections"], commands: ["crm connections"],
|
|
38
|
+
execution: "Read stored conversations and Sequence links for one CRM record with oxygen_crm_record_connections. Request projection=compact and a max_chars window; conversation_limit and sequence_limit bound the recent links. hasMore includes older or omitted links; this read has no cursor for older links and does not sync Messages, contact anyone or spend credits.",
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* "Tell me everything about this person" is a stored-Records read. Before this
|
|
43
|
+
* rule it matched no card, and lexical search ranked a write tool
|
|
44
|
+
* (oxygen_profile_viewers_enrichment) first. Every recommended tool is free.
|
|
45
|
+
*/
|
|
46
|
+
export function recordDossierReadRecommendation(query) {
|
|
47
|
+
const recordNoun = "(?:person|people|lead|leads|contact|contacts|prospect|prospects|account|accounts|customer|buyer|record|company|someone)";
|
|
48
|
+
const subject = new RegExp(`\\b(?:this|that|the|my|our|a|one)\\s+(?:${recordNoun})\\b`).test(query)
|
|
49
|
+
|| /\b(?:them|him|her|they)\b/.test(query)
|
|
50
|
+
|| /\b(?:know|knows|have|has|got)\s+(?:about|on)\s+(?!our\b|my\b|the\b|us\b)[a-z]+(?:\s+[a-z]+)?\s*\??$/.test(query)
|
|
51
|
+
|| /\b(?:call|meeting|chat)\s+with\s+[a-z]+(?:\s+[a-z]+)?\s*\??$/.test(query);
|
|
52
|
+
// "profile, timeline, notes, conversations, meetings": several facets of one record at once.
|
|
53
|
+
const facets = query.match(/\b(?:profile|timeline|activity|notes?|signals?|conversations?|messages|sequences?|meetings?|calls?|tasks?|related|connections?)\b/g) ?? [];
|
|
54
|
+
const enumerated = new Set(facets.map((facet) => facet.replace(/s$/, ""))).size >= 3
|
|
55
|
+
&& new RegExp(`\\b(?:${recordNoun})\\b`).test(query);
|
|
56
|
+
const dossier = enumerated
|
|
57
|
+
|| /\beverything\s+(?:about|on|we\s+(?:know|have))\b/.test(query)
|
|
58
|
+
|| /\beverything\b.{0,40}\b(?:knows?|has|have|stores?|stored)\b(?:.{0,12}\b(?:about|on)\b)?/.test(query)
|
|
59
|
+
|| /\bwhat\s+(?:do|does|did)\s+(?:we|i|you|oxygen|the\s+workspace)\s+(?:already\s+)?know\b/.test(query)
|
|
60
|
+
|| /\ball\s+(?:the\s+)?(?:info|information|data|details|context)\s+(?:on|about|for)\b/.test(query)
|
|
61
|
+
|| /\bfull\s+(?:picture|story|history|context)\b/.test(query)
|
|
62
|
+
|| /\b(?:prep|prepare)\s+(?:me\s+)?for\s+(?:a\s+|my\s+|the\s+)?(?:call|meeting|chat)\s+with\b/.test(query)
|
|
63
|
+
|| /\b(?:full|complete|quick|short)?\s*(?:brief|briefing|dossier|background|profile|summary|overview)\s+(?:on|of|for|about)\b/.test(query)
|
|
64
|
+
|| /\b(?:summari[sz]e|brief me on|tell me about|catch me up on|background on)\b/.test(query);
|
|
65
|
+
if (!subject && !enumerated)
|
|
66
|
+
return null;
|
|
67
|
+
if (!dossier)
|
|
68
|
+
return null;
|
|
69
|
+
if (isHostedWorkflowIntent(query)
|
|
70
|
+
|| /\b(?:send\w*|repl(?:y|ies)|draft\w*|writ\w*|enroll\w*|enrich\w*|find (?:their |the |a )?(?:email|phone|mobile)|scrape\w*|creat\w*|updat\w*|edit\w*|merg\w*|delet\w*|remov\w*|import\w*|sync\w*|tag\w*)\b/.test(query))
|
|
71
|
+
return null;
|
|
72
|
+
// Naming another primitive's object is a different owner, unless the ask
|
|
73
|
+
// enumerates one record's facets ("its notes, conversations, sequences").
|
|
74
|
+
if (!enumerated && /\b(?:icp|ideal customer|positioning|offers?|brand|voice|meetings?|calls? (?:transcript|recording)s?|tables?|rows?|columns?|spreadsheets?|workflows?|agents?|sequences?|campaigns?|dashboards?|reports?|billing|credits?)\b/.test(query))
|
|
75
|
+
return null;
|
|
76
|
+
return {
|
|
77
|
+
tools: [
|
|
78
|
+
"oxygen_crm_record_search", "oxygen_crm_record_get", "oxygen_crm_record_timeline",
|
|
79
|
+
"oxygen_crm_record_connections", "oxygen_crm_notes_list", "oxygen_crm_record_related",
|
|
80
|
+
],
|
|
81
|
+
commands: ["crm search", "crm get", "crm activity timeline", "crm connections", "crm notes list", "crm related"],
|
|
82
|
+
execution: "Read what the workspace already stores about one record: resolve it with search (a name, email, domain or LinkedIn URL), then get its fields and identities, its timeline (signals, calls, meetings, notes), connected conversations and Sequences, notes and related records. Every read is free and contacts no one. Finding missing contact data or enriching is a separate paid action. External MCP uses oxygen_capabilities_read for unlisted reads; built-in agents invoke the native tools.",
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
export const RECORD_DOSSIER_FIRST_COMMANDS = ["crm search", "crm get", "crm activity timeline"];
|
|
86
|
+
export const RECORD_BRIEF_TOOL = "oxygen_crm_record_brief";
|
|
87
|
+
export const RECORD_BRIEF_COMMAND = "crm brief";
|
|
88
|
+
export const RECORD_BRIEF_EXECUTION_PREFIX = `Start with ${RECORD_BRIEF_COMMAND} (${RECORD_BRIEF_TOOL}): one free read of everything stored about the record. It takes the row id, an identity or the exact name, so no search comes first, and each cut section names the read for its rest; use the reads below only for those. `;
|
|
89
|
+
/**
|
|
90
|
+
* Put the Network Mining record brief first on a record-dossier route where the
|
|
91
|
+
* host serves it, and take it off where it does not. The shared router decides
|
|
92
|
+
* by `networkMiningEnabled` in its own process; the CLI decides again by its
|
|
93
|
+
* API host, because its local environment says nothing about the server's.
|
|
94
|
+
* Idempotent; any other route is returned unchanged.
|
|
95
|
+
*/
|
|
96
|
+
export function withRecordBrief(route, served) {
|
|
97
|
+
if (route.card.id !== "records")
|
|
98
|
+
return route;
|
|
99
|
+
const briefed = route.recommendedTools[0] === RECORD_BRIEF_TOOL;
|
|
100
|
+
if (!served) {
|
|
101
|
+
if (!briefed)
|
|
102
|
+
return route;
|
|
103
|
+
return {
|
|
104
|
+
...route,
|
|
105
|
+
card: { ...route.card, execution: route.card.execution.replace(RECORD_BRIEF_EXECUTION_PREFIX, "") },
|
|
106
|
+
recommendedTools: route.recommendedTools.slice(1),
|
|
107
|
+
recommendedCommands: route.recommendedCommands.filter((command) => command !== RECORD_BRIEF_COMMAND),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
if (briefed || !RECORD_DOSSIER_FIRST_COMMANDS.every((command, index) => route.recommendedCommands[index] === command))
|
|
111
|
+
return route;
|
|
112
|
+
return {
|
|
113
|
+
...route,
|
|
114
|
+
card: { ...route.card, execution: `${RECORD_BRIEF_EXECUTION_PREFIX}${route.card.execution}` },
|
|
115
|
+
recommendedTools: [RECORD_BRIEF_TOOL, ...route.recommendedTools],
|
|
116
|
+
recommendedCommands: [RECORD_BRIEF_COMMAND, ...route.recommendedCommands],
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
/** Record-file lifecycle asks outrank the generic workspace label vocabulary. */
|
|
120
|
+
export function crmFileUploadRecommendation(query) {
|
|
121
|
+
// Literal filenames and record identities are values, not competing owners:
|
|
122
|
+
// mailbox.csv or sarah@acme.com must not turn a record upload into mail work.
|
|
123
|
+
const intent = query
|
|
124
|
+
.replace(/\b[^\s@]+@[^\s@]+\b/g, "identity")
|
|
125
|
+
.replace(/\b(?:file ?name|filename|named|label)\s+(["'])[^"']*\1/g, "value")
|
|
126
|
+
.replace(/\b(?:file ?name|filename|named)\s+\S+/g, "value")
|
|
127
|
+
.replace(/\S+\.[a-z0-9]{1,12}\b/g, "value");
|
|
128
|
+
if (!/\b(?:crm|records?)\b/.test(intent)
|
|
129
|
+
|| !/\b(?:files?|attachments?|uploads?|uploaded)\b/.test(intent))
|
|
130
|
+
return null;
|
|
131
|
+
if (isHostedWorkflowIntent(intent)
|
|
132
|
+
|| /\b(?:tags?|tagging|classif\w*|categori[sz]\w*|tables?|spreadsheets?|datasets?|worksheets?|columns?|copilot|sessions?|workflows?|agents?|functions?|callables?|recurring|mailboxes?|inbox|messages?|knowledge|wiki|repositories|repository|skills?|logos?|branding|avatars?|hubspot|attio|pipedrive|salesforce)\b/.test(intent)
|
|
133
|
+
|| /\b(?:send|reply|compose)\b/.test(intent)
|
|
134
|
+
|| /\b(?:email|e mail)\s+attachments?\b/.test(intent))
|
|
135
|
+
return null;
|
|
136
|
+
const complete = /\b(?:finish|complete|confirm)\b/.test(intent)
|
|
137
|
+
&& /\b(?:uploads?|uploaded|prepared|reserved)\b/.test(intent);
|
|
138
|
+
const list = /\b(?:list|show|inspect|view)\b/.test(intent);
|
|
139
|
+
if (list && !complete && /\b(?:pending|prepared|reserved|incomplete)\b/.test(intent))
|
|
140
|
+
return null;
|
|
141
|
+
const prepare = /\b(?:prepare|reserve|attach)\b/.test(intent);
|
|
142
|
+
const boundary = "A record-local label names this attachment; it is separate from workspace Tags and the stored filename. Preparing or completing writes workspace state under the existing authorization; discovery does not approve a write.";
|
|
143
|
+
if (complete)
|
|
144
|
+
return {
|
|
145
|
+
tools: ["oxygen_crm_files_upload_complete", "oxygen_crm_files_upload_prepare", "oxygen_crm_files_list"],
|
|
146
|
+
commands: ["crm files complete-upload", "crm files prepare-upload", "crm files list"],
|
|
147
|
+
execution: `Hydrate oxygen_crm_files_upload_complete to confirm a prepared upload after its exact bytes were PUT; completion verifies the reserved file before attaching. List the record's files to inspect existing attachments. ${boundary}`,
|
|
148
|
+
};
|
|
149
|
+
if (prepare || (!list && /\bupload\b/.test(intent)))
|
|
150
|
+
return {
|
|
151
|
+
tools: ["oxygen_crm_files_upload_prepare", "oxygen_crm_files_upload_complete", "oxygen_crm_files_list"],
|
|
152
|
+
commands: ["crm files prepare-upload", "crm files complete-upload", "crm files list"],
|
|
153
|
+
execution: `Hydrate oxygen_crm_files_upload_prepare to reserve an exact filename, byte length and SHA-256. Preparation does not attach; upload the declared bytes before completing. ${boundary}`,
|
|
154
|
+
};
|
|
155
|
+
if (list)
|
|
156
|
+
return {
|
|
157
|
+
tools: ["oxygen_crm_files_list"],
|
|
158
|
+
commands: ["crm files list"],
|
|
159
|
+
execution: `List the record's attached originals with oxygen_crm_files_list; this does not list pending upload reservations. ${boundary}`,
|
|
160
|
+
};
|
|
161
|
+
return null;
|
|
162
|
+
}
|
|
163
|
+
/** CRM backfills and account projections use native Records repair owners. */
|
|
164
|
+
export function crmMaintenanceRecommendation(query) {
|
|
165
|
+
if (isHostedWorkflowIntent(query)
|
|
166
|
+
|| /\b(workflows?|agents?|functions?|callables?|recurring)\b/.test(query)
|
|
167
|
+
|| isSecondPartyDecisionIntent(query)
|
|
168
|
+
|| isTableMaintenanceIntent(query))
|
|
169
|
+
return null;
|
|
170
|
+
if (/\bcrm\b/.test(query) && /\benrich\w*\b/.test(query)
|
|
171
|
+
&& !/\b(run|running|execute|paid)\b/.test(query)
|
|
172
|
+
&& /\b(backfill|missing|empty|blank|unfilled)\b/.test(query))
|
|
173
|
+
return {
|
|
174
|
+
tools: ["oxygen_crm_enrichment"],
|
|
175
|
+
commands: ["crm enrichment backfill", "crm enrichment list"],
|
|
176
|
+
execution: "Inspect the configured companies/people enrichments and preview one bounded backfill batch. A blank field does not prove enrichment never ran. oxygen_crm_enrichment action=backfill uses oxygen_capabilities_call even for its free preview. Paid live batches require approval for the exact object, batch scope and max_credits; retain existing values and read the run outcome before another batch.",
|
|
177
|
+
};
|
|
178
|
+
if (/\b(open deal|account stage|lifecycle stage)\b/.test(query)
|
|
179
|
+
|| (/\bcrm\b/.test(query) && /\bdeal stage\b/.test(query)))
|
|
180
|
+
return {
|
|
181
|
+
tools: ["oxygen_crm_rollup", "oxygen_crm_record_get"],
|
|
182
|
+
commands: ["crm rollup", "crm get"],
|
|
183
|
+
execution: "Open Deal is the most advanced open deal stage; it is blank when none remain. Account Stage is the company lifecycle derived from people and deals, with a separate human override. Inspect the records; oxygen_crm_rollup previews the selected company scope for 0 credits without provider calls. include_lifecycle adds Account Stage; live applies the reviewed repair only after approval. MCP uses oxygen_capabilities_call.",
|
|
184
|
+
};
|
|
185
|
+
return null;
|
|
186
|
+
}
|
|
187
|
+
export const CRM_ENRICHMENT_READ_VIEW = {
|
|
188
|
+
owns: "Saved automatic-enrichment presets and batch caps for native CRM companies/people, backed by Tables auto-run.",
|
|
189
|
+
notFor: "Running enrichment, provider catalog/sourcing, linked working Tables, external CRM sync, or changing the standing grant.",
|
|
190
|
+
execution: "Read the saved configuration with action=list, free through oxygen_capabilities_call: this tool also writes, so its paid/write annotations and built-in approval policy remain. Omit object and use backfill=false to skip historical counts; object reads ignore it. summary is compact; preset_count counts catalog entries, trigger_default is the current plan-default cap, and backfill:null means no count was produced. set/enable/disable change standing auto-run; action=backfill previews for free, while paid live batches require native approval and a ceiling.",
|
|
191
|
+
posture: "mixed",
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* Seeded sample records, and keeping one as real (OXP-6.3.14). In the
|
|
195
|
+
* 2026-10-06 blind acceptance the records route answered "mark a sample deal as
|
|
196
|
+
* a real deal" with search/get alone, and `commands search "sample"` ranked
|
|
197
|
+
* `crm keep` third, behind `formulas validate` and `sequences start`. A sample
|
|
198
|
+
* OF something (rows, a run, a batch, copy) is a test slice that other owners
|
|
199
|
+
* keep; seed/demo/example name samples only beside data or records, so "seed
|
|
200
|
+
* companies" and "demo deals" keep their sourcing and pipeline meanings.
|
|
201
|
+
*/
|
|
202
|
+
export function crmSampleRecordRecommendation(query) {
|
|
203
|
+
const record = /\b(records?|deals?|compan(?:y|ies)|contacts?|people|persons?|accounts?|ceos?|opportunit(?:y|ies))\b/;
|
|
204
|
+
const named = /\b(?:crm|record) keep\b/.test(query);
|
|
205
|
+
const slice = /\b(tables?|rows?|columns?|cells?|spreadsheets?|enrich\w*|runs?|batch(?:es)?|previews?|formulas?|sequences?|campaigns?|messages?|posts?|copy|templates?|prompts?|recipes?|workflows?|agents?)\b/.test(query)
|
|
206
|
+
|| /\bsamples? (?:of|size|run|batch)\b|\b(?:small|random|test|representative) samples?\b/.test(query);
|
|
207
|
+
const asReal = /\bas (?:an? )?real\b/.test(query) && record.test(query);
|
|
208
|
+
const sample = (/\bsamples?\b/.test(query) && (/^samples?$/.test(query) || record.test(query) || /\b(data|pipeline|crm)\b/.test(query)))
|
|
209
|
+
|| /\b(?:seed(?:ed)?|demo|example) (?:data|records?)\b/.test(query)
|
|
210
|
+
|| /\bseeded (?:deals?|compan(?:y|ies)|contacts?|people|persons?|accounts?|pipeline)\b/.test(query)
|
|
211
|
+
|| /\b(?:dummy|placeholder|fake) (?:data|records?|deals?|compan(?:y|ies)|contacts?|people|persons?|accounts?)\b/.test(query);
|
|
212
|
+
if (!named && (slice || (!asReal && !sample)))
|
|
213
|
+
return null;
|
|
214
|
+
return {
|
|
215
|
+
tools: ["oxygen_crm_record_keep", "oxygen_crm_pipeline", "oxygen_crm_record_search", "oxygen_crm_record_get"],
|
|
216
|
+
commands: ["crm keep", "crm pipeline", "crm search", "crm get"],
|
|
217
|
+
execution: "A new workspace's seeded companies, CEOs and deals read _sample: true (sample: true on suggest hits and crm pipeline deals); pipeline, dashboard and chart totals leave them out and say how many. Keep one as real only when the user says it is: crm keep <object> <record> takes a row id or an identity such as stripe.com. It is free and idempotent, has no undo, and keeps that record alone: a kept deal's company and contact stay samples until each is kept. MCP runs oxygen_crm_record_keep through oxygen_capabilities_call.",
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
/** Inventory reads select existing Table fields and retain honest sample totals. */
|
|
221
|
+
export function crmInventoryRecommendation(query) {
|
|
222
|
+
if (!/\b(crm|records?)\b/.test(query)
|
|
223
|
+
|| !/\b(count|how many|inventory|list|enumerate|browse)\b/.test(query)
|
|
224
|
+
|| /\b(enrich\w*|configur\w*|settings?|presets?|fields?|attributes?|identities|relationships?|tasks?|notes?|files?|sync|hubspot|attio|pipedrive|import|create|add|edit|update|delete|remove|merge|workflows?|agents?)\b/.test(query))
|
|
225
|
+
return null;
|
|
226
|
+
return { tools: ["oxygen_crm_objects_list", "oxygen_tables_preview", "oxygen_crm_record_get"], commands: ["crm objects", "tables preview", "crm get"] };
|
|
227
|
+
}
|
|
228
|
+
/** Saved contact facts belong to Records, regardless of email/phone channel words. */
|
|
229
|
+
export function storedCrmContactReadRecommendation(query) {
|
|
230
|
+
if (!/\b(crm|records?)\b/.test(query)
|
|
231
|
+
|| !/\b(read|show|get|find|lookup|look up|retrieve|inspect|view|describe)\b/.test(query)
|
|
232
|
+
|| !/\b(emails?|phones?|mobile|contact details|contact information)\b/.test(query)
|
|
233
|
+
|| /\b(send\w*|repl(?:y|ies)|messages?|inbox|threads?|drafts?|posts?|comments?|outreach|sequences?|campaigns?|dial\w*|call|create|add|edit|update|change|delete|remove|merge|import|sync|missing|new|enrich\w*|providers?|waterfall|verify|verification|validate|tables?|rows?|columns?|spreadsheet|dataset|workflows?|schedule\w*|recurring|cron)\b/.test(query))
|
|
234
|
+
return null;
|
|
235
|
+
return {
|
|
236
|
+
tools: ["oxygen_crm_record_search", "oxygen_crm_record_get", "oxygen_crm_object_describe"],
|
|
237
|
+
commands: ["crm search", "crm get", "crm describe"],
|
|
238
|
+
execution: "Read saved Records; no lookup or send. Hydrate search/get schemas; mode=suggest finds partial names, records resolves identities. Get takes object + row_id; describe the object or one attribute for unknown field keys. External MCP uses oxygen_capabilities_read for these unlisted reads; built-in agents invoke the native tools. Missing contact enrichment and CRM writes are separate actions.",
|
|
239
|
+
};
|
|
240
|
+
}
|