@oxygen-agent/cli 1.1014.1895 → 1.1014.1997
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/commands/billing.js +1 -1
- package/dist/commands/managed-inboxes.js +6 -2
- package/dist/commands/sequences.js +1 -1
- package/dist/commands/subscriptions.js +7 -5
- package/dist/update.d.ts +4 -57
- package/dist/update.js +17 -163
- 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 +123 -3712
- 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/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/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/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/guided-activation.d.ts +2 -0
- 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/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/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/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/version.generated.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/version.generated.js +1 -1
- 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/index.d.ts +2 -59
- package/node_modules/@oxygen/workflows/dist/index.js +4 -904
- package/node_modules/@oxygen/workflows/dist/manifest-validation.d.ts +75 -0
- package/node_modules/@oxygen/workflows/dist/manifest-validation.js +903 -0
- package/package.json +1 -1
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { isPublicLinkedInEngagerHarvest, isPublicLinkedInRead } from "./linkedin-public-research.js";
|
|
2
|
+
import { SEQUENCE_REPLY_TO_STOP_COMMAND, SEQUENCE_SENDING_SCHEDULE_COMMAND, SEQUENCE_UNSUBSCRIBE_COMMAND, hasSequenceProgramIntent, isNetNewLinkedInInitiation, isSenderCopyVariableIntent, isSenderProfileIntent, isSequenceInvitationTimeoutIntent, isSequenceLeadProgressIntent, isSequenceReplyToStopIntent, isSequenceScheduleIntent, isSequenceUnsubscribeIntent, isSpintaxIntent, mcpCalls, sendingBlockReadRecommendation, sequenceEditRecommendation, } from "./sequences.js";
|
|
3
|
+
export const rules = {
|
|
4
|
+
explicit: [
|
|
5
|
+
{ order: 240, route: (query) => sendingBlockReadRecommendation(query) ? "sequences" : null },
|
|
6
|
+
{ order: 250, route: (query) => isSpintaxIntent(query) ? "sequences" : null },
|
|
7
|
+
{ order: 380, route: (query) => isSequenceInvitationTimeoutIntent(query) ? "sequences" : null },
|
|
8
|
+
// A unified sender profile is an owned Sequence identity, even when the ask
|
|
9
|
+
// names every attached channel (LinkedIn + WhatsApp + email). Resolve this
|
|
10
|
+
// before public LinkedIn research, whose generic "profile" wording would
|
|
11
|
+
// otherwise route an account-readiness question to scraper tools.
|
|
12
|
+
{ order: 430, route: (query) => isSenderProfileIntent(query) || isSenderCopyVariableIntent(query) ? "sequences" : null },
|
|
13
|
+
// When and how a Sequence sends: its sending schedule and its unsubscribe
|
|
14
|
+
// option. Ahead of the workflow rule, whose bare "schedule" sent the 2026-09-29
|
|
15
|
+
// unified-launch acceptance agent's "sending schedule" search to Workflows and
|
|
16
|
+
// hid every Sequences command.
|
|
17
|
+
{
|
|
18
|
+
order: 560,
|
|
19
|
+
route: (query) => isSequenceReplyToStopIntent(query) || isSequenceScheduleIntent(query) || isSequenceUnsubscribeIntent(query) ? "sequences" : null,
|
|
20
|
+
},
|
|
21
|
+
// When one ask combines public LinkedIn research with initiating a new
|
|
22
|
+
// conversation now, the external write owner wins. The Sequences
|
|
23
|
+
// recommendation still exposes the native scraper discovery step for the
|
|
24
|
+
// research input.
|
|
25
|
+
{ order: 680, route: (query) => isNetNewLinkedInInitiation(query) ? "sequences" : null },
|
|
26
|
+
{ order: 860, route: (query) => hasSequenceProgramIntent(query) ? "sequences" : null },
|
|
27
|
+
],
|
|
28
|
+
recommendations: [
|
|
29
|
+
{ order: 230, recommend: (card, query) => card.primitive === "sequences" ? sendingBlockReadRecommendation(query) : null },
|
|
30
|
+
{
|
|
31
|
+
order: 860,
|
|
32
|
+
recommend: (card, query) => card.primitive === "sequences" && isSpintaxIntent(query)
|
|
33
|
+
? { tools: ["oxygen_spintax_generate"], commands: ["spintax generate"] } : null,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
order: 870,
|
|
37
|
+
recommend: (card, query) => card.primitive === "sequences" && isSequenceInvitationTimeoutIntent(query) ? {
|
|
38
|
+
tools: ["oxygen_sequences_update", "oxygen_sequences_get", "oxygen_sequences_create"],
|
|
39
|
+
commands: ["sequences update", "sequences get", "sequences create"],
|
|
40
|
+
} : null,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
order: 880,
|
|
44
|
+
recommend: (card, query) => card.primitive === "sequences" && isSequenceReplyToStopIntent(query) ? {
|
|
45
|
+
tools: ["oxygen_sequences_update", "oxygen_sequences_get"],
|
|
46
|
+
commands: ["sequences update", "sequences get"],
|
|
47
|
+
exactCommand: SEQUENCE_REPLY_TO_STOP_COMMAND,
|
|
48
|
+
exactMcpCall: mcpCalls.sequenceReplyToStop(),
|
|
49
|
+
} : null,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
order: 890,
|
|
53
|
+
recommend: (card, query) => card.primitive === "sequences" && (isSequenceScheduleIntent(query) || isSequenceUnsubscribeIntent(query)) ? {
|
|
54
|
+
tools: ["oxygen_sequences_update", "oxygen_sequences_get"],
|
|
55
|
+
commands: ["sequences update", "sequences get"],
|
|
56
|
+
exactCommand: isSequenceScheduleIntent(query) ? SEQUENCE_SENDING_SCHEDULE_COMMAND : SEQUENCE_UNSUBSCRIBE_COMMAND,
|
|
57
|
+
exactMcpCall: isSequenceScheduleIntent(query)
|
|
58
|
+
? mcpCalls.sequenceSendingSchedule()
|
|
59
|
+
: mcpCalls.sequenceUnsubscribe(),
|
|
60
|
+
} : null,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
order: 900,
|
|
64
|
+
recommend: (card, query) => card.primitive === "sequences" && isSenderProfileIntent(query) ? {
|
|
65
|
+
tools: ["oxygen_senders_profiles_list", "oxygen_senders_profiles_get"],
|
|
66
|
+
commands: ["senders profiles list", "senders profiles get"],
|
|
67
|
+
} : null,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
order: 910,
|
|
71
|
+
recommend: (card, query) => card.primitive === "sequences" && isSequenceLeadProgressIntent(query) ? {
|
|
72
|
+
tools: ["oxygen_sequences_enrollments", "oxygen_sequences_stats", "oxygen_sequences_list"],
|
|
73
|
+
commands: ["sequences enrollments", "sequences stats", "sequences list"],
|
|
74
|
+
} : null,
|
|
75
|
+
},
|
|
76
|
+
{ order: 920, recommend: (card, query) => card.primitive === "sequences" ? sequenceEditRecommendation(query) : null },
|
|
77
|
+
{
|
|
78
|
+
order: 930,
|
|
79
|
+
recommend: (card, query) => {
|
|
80
|
+
if (card.primitive !== "sequences" || !isNetNewLinkedInInitiation(query))
|
|
81
|
+
return null;
|
|
82
|
+
const publicResearch = isPublicLinkedInRead(query);
|
|
83
|
+
const harvestEngagers = publicResearch && isPublicLinkedInEngagerHarvest(query);
|
|
84
|
+
return {
|
|
85
|
+
tools: [
|
|
86
|
+
"oxygen_sequences_send",
|
|
87
|
+
...(harvestEngagers
|
|
88
|
+
? ["oxygen_engagement_harvest", "oxygen_engagement_harvest_status"]
|
|
89
|
+
: publicResearch
|
|
90
|
+
? ["oxygen_tools_search", "oxygen_tools_get"]
|
|
91
|
+
: []),
|
|
92
|
+
"oxygen_senders_list",
|
|
93
|
+
"oxygen_sequences_list",
|
|
94
|
+
],
|
|
95
|
+
commands: [
|
|
96
|
+
"sequences send",
|
|
97
|
+
...(harvestEngagers
|
|
98
|
+
? ["engagement harvest", "engagement status"]
|
|
99
|
+
: publicResearch
|
|
100
|
+
? ["tools search", "tools get"]
|
|
101
|
+
: []),
|
|
102
|
+
"senders list",
|
|
103
|
+
"sequences list",
|
|
104
|
+
],
|
|
105
|
+
};
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
order: 940,
|
|
110
|
+
recommend: (card, query) => card.primitive === "sequences" && /\benroll/.test(query) ? {
|
|
111
|
+
tools: ["oxygen_sequences_enroll", "oxygen_sequences_create", "oxygen_sequences_start", "oxygen_sequences_list"],
|
|
112
|
+
commands: ["sequences enroll", "sequences create", "sequences start", "sequences list"],
|
|
113
|
+
} : null,
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
order: 950,
|
|
117
|
+
recommend: (card, query) => card.primitive === "sequences" && /\b(start|launch|run|activate)\b/.test(query) ? {
|
|
118
|
+
tools: ["oxygen_sequences_start", "oxygen_sequences_list", "oxygen_sequences_create", "oxygen_sequences_enroll"],
|
|
119
|
+
commands: ["sequences start", "sequences list", "sequences create", "sequences enroll"],
|
|
120
|
+
} : null,
|
|
121
|
+
},
|
|
122
|
+
// Every other Sequences ask: the authoring path, ahead of the card's gateways.
|
|
123
|
+
{
|
|
124
|
+
order: 960,
|
|
125
|
+
recommend: (card) => card.primitive === "sequences" ? {
|
|
126
|
+
tools: ["oxygen_sequences_create", "oxygen_sequences_enroll", "oxygen_sequences_start", "oxygen_sequences_list", "oxygen_sequences_send"],
|
|
127
|
+
commands: ["sequences create", "sequences enroll", "sequences start", "sequences list", "sequences send"],
|
|
128
|
+
} : null,
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
cardViews: [
|
|
132
|
+
{
|
|
133
|
+
order: 230,
|
|
134
|
+
view: (card, query) => {
|
|
135
|
+
const blockRead = card.primitive === "sequences" ? sendingBlockReadRecommendation(query) : null;
|
|
136
|
+
return blockRead ? { card: { ...card, posture: "read_only", execution: blockRead.execution } } : null;
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
order: 240,
|
|
141
|
+
view: (card, query) => card.primitive === "sequences" && !sendingBlockReadRecommendation(query) && isSpintaxIntent(query) ? {
|
|
142
|
+
card: {
|
|
143
|
+
...card, posture: "paid_read",
|
|
144
|
+
execution: "Generate wording variations with the native Spintax owner; sending is separate. Hydrate oxygen_spintax_generate. External MCP uses oxygen_capabilities_call, including its explicit free mode=dry_run preview; built-in agents invoke the native capability under their current policy. Omitted mode is live and costs 3 credits. After preview, live requires approval of the exact text with approved=true and max_credits>=3. Failed generation refunds the reservation.",
|
|
145
|
+
},
|
|
146
|
+
} : null,
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/** This card's exact commands as MCP calls (see CAPABILITY_ROUTE_MCP_CALLS). */
|
|
2
|
+
export declare const mcpCalls: {
|
|
3
|
+
signalCapture: () => {
|
|
4
|
+
tool: string;
|
|
5
|
+
arguments: {
|
|
6
|
+
object: string;
|
|
7
|
+
row_id: string;
|
|
8
|
+
activity_type: string;
|
|
9
|
+
direction: string;
|
|
10
|
+
summary: string;
|
|
11
|
+
occurred_at: string;
|
|
12
|
+
mode: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
linkedinKeywordPosts: () => {
|
|
16
|
+
tool: string;
|
|
17
|
+
arguments: {
|
|
18
|
+
action: string;
|
|
19
|
+
filters: {
|
|
20
|
+
keywords: string[];
|
|
21
|
+
all_keywords: string[];
|
|
22
|
+
exclude_keywords: string[];
|
|
23
|
+
ai_filter: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* "LinkedIn posts about X" / "posts mentioning Y" / "monitor LinkedIn posts by
|
|
30
|
+
* keyword" is keyword post search, a Signals source with all-of / any-of /
|
|
31
|
+
* exclude rules. A blind user eval (2026-09-23) asked exactly this and was
|
|
32
|
+
* routed to Workflows, never learning `signals search --family linkedin_posts`
|
|
33
|
+
* exists. Posts FROM named profiles stay with the Profile Watcher, and the
|
|
34
|
+
* workspace's own posts stay with Posts. The free preview leads: it shows real
|
|
35
|
+
* posts, with the AI filter applied, before a table exists.
|
|
36
|
+
*/
|
|
37
|
+
export declare const LINKEDIN_KEYWORD_POST_COMMAND = "oxygen signals search preview --family linkedin_posts --keywords \"<any of>\" --all-keywords \"<all of>\" --exclude-keywords \"<none of>\" --ai-filter \"<posts to keep>\" --json";
|
|
38
|
+
export declare function isLinkedInKeywordPostIntent(query: string): boolean;
|
|
39
|
+
export declare const SIGNAL_CAPTURE_COMMAND = "oxygen crm activity log people <rowId or email> --type website_visit --direction inbound --summary \"<what they viewed>\" --live --json";
|
|
40
|
+
/** Recording one reported event (a visit, a view) on a person: a Signal, logged on the Record. */
|
|
41
|
+
export declare function isSignalCaptureIntent(query: string): boolean;
|
|
42
|
+
export declare const SIGNAL_CAPTURE_EXECUTION = "Find the person with oxygen_crm_record_search; if there is no record, create it with oxygen_crm_record_assert (identity email, values full_name and company_domain when known; free, no card). Then log the event on that record with oxygen_crm_activity_log: row_id the rowId the assert or search returned (not object.id) or her email, activity_type website_visit (or profile_view, post_reaction, new_follower), direction inbound, occurred_at, a one-line summary such as the page viewed. It then shows in the Signals feed and on the person's timeline. Not a note or a table row; contacting nobody. End by saying it is recorded as a website-visit Signal and where it shows (the record's web_url); if a write is refused, say nothing was recorded.";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/** This card's exact commands as MCP calls (see CAPABILITY_ROUTE_MCP_CALLS). */
|
|
2
|
+
export const mcpCalls = {
|
|
3
|
+
signalCapture: () => ({
|
|
4
|
+
tool: "oxygen_crm_activity_log",
|
|
5
|
+
arguments: { object: "people", row_id: "<person rowId or email>", activity_type: "website_visit", direction: "inbound", summary: "<what they viewed>", occurred_at: "<iso>", mode: "live" },
|
|
6
|
+
}),
|
|
7
|
+
// The tool has no `family`: it always searches linkedin_posts, which the API reads as the same source.
|
|
8
|
+
linkedinKeywordPosts: () => ({
|
|
9
|
+
tool: "oxygen_signals_search_preview",
|
|
10
|
+
arguments: {
|
|
11
|
+
action: "preview",
|
|
12
|
+
filters: { keywords: ["<any of>"], all_keywords: ["<all of>"], exclude_keywords: ["<none of>"], ai_filter: "<posts to keep>" },
|
|
13
|
+
},
|
|
14
|
+
}),
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* "LinkedIn posts about X" / "posts mentioning Y" / "monitor LinkedIn posts by
|
|
18
|
+
* keyword" is keyword post search, a Signals source with all-of / any-of /
|
|
19
|
+
* exclude rules. A blind user eval (2026-09-23) asked exactly this and was
|
|
20
|
+
* routed to Workflows, never learning `signals search --family linkedin_posts`
|
|
21
|
+
* exists. Posts FROM named profiles stay with the Profile Watcher, and the
|
|
22
|
+
* workspace's own posts stay with Posts. The free preview leads: it shows real
|
|
23
|
+
* posts, with the AI filter applied, before a table exists.
|
|
24
|
+
*/
|
|
25
|
+
export const LINKEDIN_KEYWORD_POST_COMMAND = 'oxygen signals search preview --family linkedin_posts --keywords "<any of>" --all-keywords "<all of>" --exclude-keywords "<none of>" --ai-filter "<posts to keep>" --json';
|
|
26
|
+
export function isLinkedInKeywordPostIntent(query) {
|
|
27
|
+
return /\blinkedin\b/.test(query)
|
|
28
|
+
&& /\b(posts?|posting)\b/.test(query)
|
|
29
|
+
&& /\b(keywords?|about|mention\w*|topics?|niche|talk\w* about|viral|trending)\b/.test(query)
|
|
30
|
+
&& !/\bprofiles?\b/.test(query)
|
|
31
|
+
&& !/\b(my|our) (own )?posts?\b/.test(query);
|
|
32
|
+
}
|
|
33
|
+
export const SIGNAL_CAPTURE_COMMAND = 'oxygen crm activity log people <rowId or email> --type website_visit --direction inbound --summary "<what they viewed>" --live --json';
|
|
34
|
+
/** Recording one reported event (a visit, a view) on a person: a Signal, logged on the Record. */
|
|
35
|
+
export function isSignalCaptureIntent(query) {
|
|
36
|
+
return /\b(record|log|logs|logged|track|note|save|add|capture)\b/.test(query)
|
|
37
|
+
&& /\b(visit(?:s|ed|or)?|viewed|profile views?|signals?)\b/.test(query)
|
|
38
|
+
// Outreach wording ("set up an email follow-up ... add the people") is a
|
|
39
|
+
// Sequence for signalled people, not one reported event.
|
|
40
|
+
&& !/\b(list|show|read|which|who|rank|leads? to contact|registry|search|find|inbox|webhook|automat\w*|workflows?|sequences?|enrich\w*|tables?|columns?|feeds?|follow ups?|campaigns?|cadences?|outreach|emails)\b/.test(query);
|
|
41
|
+
}
|
|
42
|
+
export const SIGNAL_CAPTURE_EXECUTION = "Find the person with oxygen_crm_record_search; if there is no record, create it with oxygen_crm_record_assert (identity email, values full_name and company_domain when known; free, no card). Then log the event on that record with oxygen_crm_activity_log: row_id the rowId the assert or search returned (not object.id) or her email, activity_type website_visit (or profile_view, post_reaction, new_follower), direction inbound, occurred_at, a one-line summary such as the page viewed. It then shows in the Signals feed and on the person's timeline. Not a note or a table row; contacting nobody. End by saying it is recorded as a website-visit Signal and where it shows (the record's web_url); if a write is refused, say nothing was recorded.";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { LINKEDIN_KEYWORD_POST_COMMAND, SIGNAL_CAPTURE_COMMAND, SIGNAL_CAPTURE_EXECUTION, isLinkedInKeywordPostIntent, isSignalCaptureIntent, mcpCalls, } from "./signals.js";
|
|
2
|
+
export const rules = {
|
|
3
|
+
explicit: [
|
|
4
|
+
// One event the user reports ("log that she visited our pricing page") is a
|
|
5
|
+
// Signal on the person, not a CRM note or a table row.
|
|
6
|
+
{ order: 520, route: (query) => isSignalCaptureIntent(query) ? "signals" : null },
|
|
7
|
+
{ order: 540, route: (query) => isLinkedInKeywordPostIntent(query) ? "signals" : null },
|
|
8
|
+
{ order: 710, route: (query) => /\b(my|our|own)\b.{0,40}\blinkedin\b.{0,40}\b(post )?engagers?\b/.test(query) ? "signals" : null },
|
|
9
|
+
],
|
|
10
|
+
recommendations: [
|
|
11
|
+
{
|
|
12
|
+
order: 380,
|
|
13
|
+
recommend: (card, query) => card.primitive === "signals" && isSignalCaptureIntent(query) ? {
|
|
14
|
+
tools: ["oxygen_crm_record_search", "oxygen_crm_record_assert", "oxygen_crm_activity_log", "oxygen_signals_list"],
|
|
15
|
+
commands: ["crm search", "crm assert", "crm activity log", "signals list"],
|
|
16
|
+
exactCommand: SIGNAL_CAPTURE_COMMAND,
|
|
17
|
+
exactMcpCall: mcpCalls.signalCapture(),
|
|
18
|
+
} : null,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
order: 1040,
|
|
22
|
+
recommend: (card, query) => card.primitive === "signals" && isLinkedInKeywordPostIntent(query) ? {
|
|
23
|
+
tools: ["oxygen_signals_search_preview", "oxygen_signals_search_run"],
|
|
24
|
+
commands: ["signals search preview", "signals search run"],
|
|
25
|
+
exactCommand: LINKEDIN_KEYWORD_POST_COMMAND,
|
|
26
|
+
exactMcpCall: mcpCalls.linkedinKeywordPosts(),
|
|
27
|
+
} : null,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
order: 1050,
|
|
31
|
+
recommend: (card, query) => card.primitive === "signals" && /\blinkedin\b.{0,40}\bengagers?\b/.test(query) ? {
|
|
32
|
+
tools: ["oxygen_engagement_list_engagers", "oxygen_signals_list", "oxygen_signals_leads_today"],
|
|
33
|
+
commands: ["engagement engagers", "signals list", "signals leads-today"],
|
|
34
|
+
} : null,
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
cardViews: [
|
|
38
|
+
{
|
|
39
|
+
order: 140,
|
|
40
|
+
view: (card, query) => card.primitive === "signals" && isSignalCaptureIntent(query)
|
|
41
|
+
? { card: { ...card, execution: SIGNAL_CAPTURE_EXECUTION, skills: ["oxygen-signals", "oxygen-crm"] }, done: true } : null,
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
skills: [
|
|
45
|
+
{ order: 90, skill: (card, query) => ["signals", "linkedin-public-research"].includes(card.id) && /\blinkedin\b/.test(query) ? "oxygen-signals" : null },
|
|
46
|
+
],
|
|
47
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { SkillPlayMatch } from "../skill-play-routing.js";
|
|
2
|
+
/** This card's exact commands as MCP calls (see CAPABILITY_ROUTE_MCP_CALLS). */
|
|
3
|
+
export declare const mcpCalls: {
|
|
4
|
+
companyUrlRecovery: () => {
|
|
5
|
+
tool: string;
|
|
6
|
+
arguments: {
|
|
7
|
+
prompt: string;
|
|
8
|
+
source_intent: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
localBusinessScrape: () => {
|
|
12
|
+
tool: string;
|
|
13
|
+
arguments: {
|
|
14
|
+
action: string;
|
|
15
|
+
source: string;
|
|
16
|
+
filters: {
|
|
17
|
+
q: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Contacts at accounts has no play of its own: oxygen-sourcing's SKILL.md sends
|
|
24
|
+
* "merging sources, setting contacts per account" to its playbook reference,
|
|
25
|
+
* so the route points there (2026-10-22 suite: the merge-then-contacts case
|
|
26
|
+
* missed two contacts per account and the second-source rule without it).
|
|
27
|
+
* Contacts already in the CRM stay with Records.
|
|
28
|
+
*/
|
|
29
|
+
export declare function sourcingPlaybookFor(query: string): SkillPlayMatch | null;
|
|
30
|
+
export declare function isCompanySourcingIntent(query: string): boolean;
|
|
31
|
+
/** Finding contact details is a native lookup; channel words alone do not mean sending. */
|
|
32
|
+
export declare function oneShotContactFindingRecommendation(query: string): {
|
|
33
|
+
tools: string[];
|
|
34
|
+
commands: string[];
|
|
35
|
+
execution: string;
|
|
36
|
+
} | null;
|
|
37
|
+
/** The exact `companies search plan` invocation for the url_recovery intent. */
|
|
38
|
+
export declare const COMPANY_URL_RECOVERY_COMMAND = "oxygen companies search plan --prompt \"Find the websites for these companies: <company names>\" --source-intent url_recovery";
|
|
39
|
+
/** The free native preview for Google Maps businesses; import follows its reviewed quote. */
|
|
40
|
+
export declare const LOCAL_BUSINESS_SCRAPE_COMMAND = "oxygen companies search preview --source google_maps --filters-json '{\"q\":\"<category> in <city, region>\"}'";
|
|
41
|
+
/**
|
|
42
|
+
* Storefronts and service businesses by category and place — the Scrape Google
|
|
43
|
+
* Maps Businesses table source. Named business categories are the everyday
|
|
44
|
+
* phrasing ("dentists in Austin"), so a short list of them is matched beside the
|
|
45
|
+
* generic words; "near me" and "in/around <place>" carry the same meaning.
|
|
46
|
+
*/
|
|
47
|
+
export declare function isLocalBusinessIntent(query: string): boolean;
|
|
48
|
+
export declare function pageScrapingRecommendation(query: string): {
|
|
49
|
+
tools: string[];
|
|
50
|
+
commands: string[];
|
|
51
|
+
exactCommand: string;
|
|
52
|
+
exactMcpCall: {
|
|
53
|
+
tool: string;
|
|
54
|
+
arguments: {
|
|
55
|
+
query: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
execution: string;
|
|
59
|
+
} | null;
|
|
60
|
+
export declare function isCompanyUrlRecoveryIntent(query: string): boolean;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/** This card's exact commands as MCP calls (see CAPABILITY_ROUTE_MCP_CALLS). */
|
|
2
|
+
export const mcpCalls = {
|
|
3
|
+
companyUrlRecovery: () => ({
|
|
4
|
+
tool: "oxygen_companies_search_plan",
|
|
5
|
+
arguments: { prompt: "Find the websites for these companies: <company names>", source_intent: "url_recovery" },
|
|
6
|
+
}),
|
|
7
|
+
localBusinessScrape: () => ({
|
|
8
|
+
tool: "oxygen_companies_search_preview",
|
|
9
|
+
arguments: { action: "preview", source: "google_maps", filters: { q: "<category> in <city, region>" } },
|
|
10
|
+
}),
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Contacts at accounts has no play of its own: oxygen-sourcing's SKILL.md sends
|
|
14
|
+
* "merging sources, setting contacts per account" to its playbook reference,
|
|
15
|
+
* so the route points there (2026-10-22 suite: the merge-then-contacts case
|
|
16
|
+
* missed two contacts per account and the second-source rule without it).
|
|
17
|
+
* Contacts already in the CRM stay with Records.
|
|
18
|
+
*/
|
|
19
|
+
export function sourcingPlaybookFor(query) {
|
|
20
|
+
return /\b(find contacts|contacts (per|at each) (account|company)|reach at each|people at each)\b/.test(query)
|
|
21
|
+
&& !/\b(crm|existing contacts)\b/.test(query)
|
|
22
|
+
? { skill: "oxygen-sourcing", slug: "playbook", file: "references/playbook.md" }
|
|
23
|
+
: null;
|
|
24
|
+
}
|
|
25
|
+
export function isCompanySourcingIntent(query) {
|
|
26
|
+
if (/\b(enrich\w*|existing|these|those|rows?|columns?|verify|verification|emails?|phones?|contacts?|people|persons?)\b/.test(query))
|
|
27
|
+
return false;
|
|
28
|
+
return /\b(companies|businesses|firms|company search|company sourcing)\b/.test(query)
|
|
29
|
+
&& /\b(search|plan|find|source|sourcing|discover|build|tam|prospect)\b/.test(query);
|
|
30
|
+
}
|
|
31
|
+
/** Finding contact details is a native lookup; channel words alone do not mean sending. */
|
|
32
|
+
export function oneShotContactFindingRecommendation(query) {
|
|
33
|
+
if (/\b(send\w*|repl(?:y|ies)|messages?|inbox|threads?|drafts?|posts?|comments?|engagement|audiences?|followers?|outreach|sequences?|campaigns?|dial\w*|call|crm|records?|stored|saved|verify|verification|validate|deliverability|mailboxes?|warmup|accounts?|limits?|tables?|rows?|columns?|spreadsheet|dataset|enrich\w*|bulk|batch|workflows?|schedule\w*|recurring|weekly|daily|every|cron|workers?|jobs?|providers?|catalog|schemas?|metadata|pricing|personal|private|home|scrape\w*|public)\b/.test(query)
|
|
34
|
+
|| /\bfind companies\b/.test(query))
|
|
35
|
+
return null;
|
|
36
|
+
const verb = /\b(find|lookup|look up|get|locate|obtain)\b/.exec(query);
|
|
37
|
+
if (!verb)
|
|
38
|
+
return null;
|
|
39
|
+
const target = query.slice(verb.index + verb[0].length, verb.index + verb[0].length + 120);
|
|
40
|
+
const email = /\bemails?\b/.test(target);
|
|
41
|
+
const phone = /\bphones?\b|\bmobile numbers?\b/.test(target);
|
|
42
|
+
if (!email && !phone)
|
|
43
|
+
return null;
|
|
44
|
+
return {
|
|
45
|
+
tools: [...(email ? ["oxygen_find_email"] : []), ...(phone ? ["oxygen_find_phone"] : []), "oxygen_tools_search"],
|
|
46
|
+
commands: [...(email ? ["find email"] : []), ...(phone ? ["find phone"] : []), "tools search"],
|
|
47
|
+
execution: "Hydrate the selected native one-shot lookup schema. mode=dry_run previews its waterfall; live requires the user's approved exact scope and positive max_credits. readOnlyHint=false and openWorldHint=true still apply to previews. External MCP uses oxygen_capabilities_call for an unlisted lookup; built-in agents call the native capability under their existing policy. Free catalog metadata uses the read gateway. Sending and bulk Table enrichment have separate owners.",
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/** The exact `companies search plan` invocation for the url_recovery intent. */
|
|
51
|
+
export const COMPANY_URL_RECOVERY_COMMAND = 'oxygen companies search plan --prompt "Find the websites for these companies: <company names>" --source-intent url_recovery';
|
|
52
|
+
/** The free native preview for Google Maps businesses; import follows its reviewed quote. */
|
|
53
|
+
export const LOCAL_BUSINESS_SCRAPE_COMMAND = `oxygen companies search preview --source google_maps --filters-json '{"q":"<category> in <city, region>"}'`;
|
|
54
|
+
/**
|
|
55
|
+
* Storefronts and service businesses by category and place — the Scrape Google
|
|
56
|
+
* Maps Businesses table source. Named business categories are the everyday
|
|
57
|
+
* phrasing ("dentists in Austin"), so a short list of them is matched beside the
|
|
58
|
+
* generic words; "near me" and "in/around <place>" carry the same meaning.
|
|
59
|
+
*/
|
|
60
|
+
export function isLocalBusinessIntent(query) {
|
|
61
|
+
return /\b(local business(?:es)?|google maps|maps listings?|storefronts?|near me|(?:dental|medical|law|veterinary) (?:practices?|offices?|clinics?)|dentists?|restaurants?|cafes?|coffee shops?|gyms?|salons?|plumbers?|electricians?|contractors?|hvac|auto repair|real estate agents?|businesses (?:in|near|around) [a-z])\b/.test(query);
|
|
62
|
+
}
|
|
63
|
+
export function pageScrapingRecommendation(query) {
|
|
64
|
+
if (!/\b(scrap(?:e|ing)|crawl\w*|fetch|extract)\b/.test(query)
|
|
65
|
+
|| !/\b(pages?|websites?|web ?sites?|web content|urls?)\b/.test(query)
|
|
66
|
+
|| /\b(linkedin|emails?|phones?|crm|records?)\b/.test(query))
|
|
67
|
+
return null;
|
|
68
|
+
return {
|
|
69
|
+
tools: ["oxygen_tools_search", "oxygen_tools_get"],
|
|
70
|
+
commands: ["tools search", "tools get"],
|
|
71
|
+
exactCommand: "oxygen tools search firecrawl --json",
|
|
72
|
+
exactMcpCall: { tool: "oxygen_tools_search", arguments: { query: "firecrawl" } },
|
|
73
|
+
execution: "Discover public-page operations with tools search firecrawl, then hydrate one exact tool and its pricing. Read oxygen-sourcing and provider-runbooks/firecrawl.md. Preview the selected URLs and price before execution; live scraping requires approval for the exact URL scope and credit ceiling. For durable per-row research, use native Tables research columns. Discovery does not run a scrape.",
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
// "get company website URL from company name", "find the websites for this
|
|
77
|
+
// list of company names", "recover domains for company names" — a URL-ish
|
|
78
|
+
// noun, a company noun, a recovery verb, and the hint that the input is NAMES
|
|
79
|
+
// or a LIST (or that URLs are MISSING). Every leg is required so a sourcing
|
|
80
|
+
// ask ("find companies with a website in Germany") keeps its owner. LinkedIn
|
|
81
|
+
// page recovery is deliberately left to the LinkedIn rules above it, which
|
|
82
|
+
// already resolve company pages through the public-research catalog.
|
|
83
|
+
export function isCompanyUrlRecoveryIntent(query) {
|
|
84
|
+
const urlNoun = /\b(websites?|web ?sites?|website urls?|domains?|urls?|homepages?)\b/;
|
|
85
|
+
const companyNoun = /\b(compan(?:y|ies)|accounts?|organi[sz]ations?|brands?|vendors?)\b/;
|
|
86
|
+
const recover = /\b(recover|resolve|look ?up|lookup|missing|get|find|fill(?: in)?|add)\b/;
|
|
87
|
+
const fromNames = /\b(names?|list|missing|these|those)\b/;
|
|
88
|
+
// An email / phone / contact ask that merely MENTIONS domains is enrichment,
|
|
89
|
+
// and a column / table ask is a Tables ask — both keep their owners.
|
|
90
|
+
const otherOwner = /\b(e-?mails?|phones?|mobiles?|numbers?|contacts?|people|persons?|columns?|tables?|enrich\w*|verif\w*)\b/;
|
|
91
|
+
return urlNoun.test(query) && companyNoun.test(query) && recover.test(query) && fromNames.test(query)
|
|
92
|
+
&& !/\b(scrape|engagers?|comments?|reactions?|posts?)\b/.test(query)
|
|
93
|
+
&& !otherOwner.test(query);
|
|
94
|
+
}
|
package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.rules.js
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { COMPANY_URL_RECOVERY_COMMAND, LOCAL_BUSINESS_SCRAPE_COMMAND, isCompanySourcingIntent, isCompanyUrlRecoveryIntent, isLocalBusinessIntent, mcpCalls, oneShotContactFindingRecommendation, pageScrapingRecommendation, } from "./sourcing-and-provider-tools.js";
|
|
2
|
+
export const rules = {
|
|
3
|
+
explicit: [
|
|
4
|
+
{ order: 180, route: (query) => oneShotContactFindingRecommendation(query) ? "sourcing-and-provider-tools" : null },
|
|
5
|
+
{ order: 610, route: (query) => isCompanySourcingIntent(query) ? "sourcing-and-provider-tools" : null },
|
|
6
|
+
// Resolving websites / domains / LinkedIn pages for company NAMES the user
|
|
7
|
+
// already holds is the companies-search `url_recovery` intent, not a fresh
|
|
8
|
+
// sourcing search and not an enrichment column. A 2026-09-11 blind user
|
|
9
|
+
// asking "get company website URL from company name" got NO route here
|
|
10
|
+
// (null), never discovered `companies search plan`, and priced the whole
|
|
11
|
+
// company_enrich preset instead.
|
|
12
|
+
{ order: 890, route: (query) => isCompanyUrlRecoveryIntent(query) ? "sourcing-and-provider-tools" : null },
|
|
13
|
+
{ order: 900, route: (query) => pageScrapingRecommendation(query) ? "sourcing-and-provider-tools" : null },
|
|
14
|
+
// A category-plus-place ask ("dental practices in Austin", "local businesses",
|
|
15
|
+
// "scrape Google Maps") is the companies-search `local` intent. A 2026-09-21
|
|
16
|
+
// blind user typing "find local businesses like dental practices in a city"
|
|
17
|
+
// got NO route and fell back to browsing every command group's --help.
|
|
18
|
+
{ order: 920, route: (query) => isLocalBusinessIntent(query) ? "sourcing-and-provider-tools" : null },
|
|
19
|
+
{
|
|
20
|
+
order: 930,
|
|
21
|
+
route: (query) => /\b(find emails?|find phones?|find companies|find people|source (?:leads?|a list|companies|people)|build (?:me )?a list|tam|prospect)\b/.test(query)
|
|
22
|
+
? "sourcing-and-provider-tools" : null,
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
recommendations: [
|
|
26
|
+
{ order: 70, recommend: (card, query) => card.id === "sourcing-and-provider-tools" ? pageScrapingRecommendation(query) : null },
|
|
27
|
+
{ order: 100, recommend: (card, query) => card.id === "sourcing-and-provider-tools" ? oneShotContactFindingRecommendation(query) : null },
|
|
28
|
+
{
|
|
29
|
+
order: 400,
|
|
30
|
+
recommend: (card, query) => card.id === "sourcing-and-provider-tools" && isCompanyUrlRecoveryIntent(query) ? {
|
|
31
|
+
tools: ["oxygen_companies_search_plan", "oxygen_companies_search_run"],
|
|
32
|
+
commands: ["companies search plan", "companies search run"],
|
|
33
|
+
exactCommand: COMPANY_URL_RECOVERY_COMMAND,
|
|
34
|
+
exactMcpCall: mcpCalls.companyUrlRecovery(),
|
|
35
|
+
} : null,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
order: 420,
|
|
39
|
+
recommend: (card, query) => card.id === "sourcing-and-provider-tools" && isLocalBusinessIntent(query) ? {
|
|
40
|
+
tools: ["oxygen_companies_search_preview", "oxygen_companies_search_run"],
|
|
41
|
+
commands: ["companies search filters", "companies search preview", "companies search run"],
|
|
42
|
+
exactCommand: LOCAL_BUSINESS_SCRAPE_COMMAND,
|
|
43
|
+
exactMcpCall: mcpCalls.localBusinessScrape(),
|
|
44
|
+
} : null,
|
|
45
|
+
},
|
|
46
|
+
// Contact enrichment keeps its own gateway even when the input mentions
|
|
47
|
+
// company names or domains; those words do not make it account sourcing.
|
|
48
|
+
{
|
|
49
|
+
order: 480,
|
|
50
|
+
recommend: (card, query) => card.id === "sourcing-and-provider-tools" && /\bfind (?:work )?emails?\b/.test(query)
|
|
51
|
+
? { tools: ["oxygen_find_email", "oxygen_tools_search"], commands: ["find email", "tools search"] } : null,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
order: 490,
|
|
55
|
+
recommend: (card, query) => card.id === "sourcing-and-provider-tools" && /\bfind (?:mobile )?phones?\b/.test(query)
|
|
56
|
+
? { tools: ["oxygen_find_phone", "oxygen_tools_search"], commands: ["find phone", "tools search"] } : null,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
order: 500,
|
|
60
|
+
recommend: (card, query) => card.id === "sourcing-and-provider-tools" && (isCompanySourcingIntent(query) || /\b(companies|company search|company sourcing)\b/.test(query)) ? {
|
|
61
|
+
tools: ["oxygen_companies_search_plan", "oxygen_companies_search_preview", "oxygen_companies_search_run", ...(/\b(people|contacts)\b/.test(query) ? ["oxygen_people_search_plan"] : [])],
|
|
62
|
+
commands: ["companies search plan", "companies search preview", "companies search run", ...(/\b(people|contacts)\b/.test(query) ? ["people search plan"] : [])],
|
|
63
|
+
} : null,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
order: 510,
|
|
67
|
+
recommend: (card, query) => card.id === "sourcing-and-provider-tools" && /\b(people|contacts|personas?)\b/.test(query) ? {
|
|
68
|
+
tools: ["oxygen_people_search_plan", "oxygen_people_search_preview", "oxygen_people_search_run"],
|
|
69
|
+
commands: ["people search plan", "people search preview", "people search run"],
|
|
70
|
+
} : null,
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
cardViews: [
|
|
74
|
+
{
|
|
75
|
+
order: 40,
|
|
76
|
+
view: (card, query) => {
|
|
77
|
+
const pageResearch = card.id === "sourcing-and-provider-tools" ? pageScrapingRecommendation(query) : null;
|
|
78
|
+
return pageResearch ? { card: { ...card, execution: pageResearch.execution } } : null;
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
order: 150,
|
|
83
|
+
view: (card, query) => {
|
|
84
|
+
const contactFind = card.id === "sourcing-and-provider-tools" ? oneShotContactFindingRecommendation(query) : null;
|
|
85
|
+
return contactFind ? { card: { ...card, execution: contactFind.execution } } : null;
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
skills: [
|
|
90
|
+
// One person's email or phone is a one-shot lookup the enrichment skill
|
|
91
|
+
// teaches (`find email`, `find phone`); list building stays with sourcing.
|
|
92
|
+
{ order: 60, skill: (card, query) => card.id === "sourcing-and-provider-tools" && oneShotContactFindingRecommendation(query) ? "oxygen-enrichment" : null },
|
|
93
|
+
],
|
|
94
|
+
};
|