@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,58 @@
|
|
|
1
|
+
import { isLinkedInAccountConnectIntent, isLinkedInAccountLimitsIntent, isMutualLinkedInConnectionsIntent, isOpenLinkedInRequestsIntent, isOwnLinkedInNetworkIntent, mcpCalls, sentLinkedInInvitationReadRecommendation, } from "./connected-linkedin.js";
|
|
2
|
+
export const rules = {
|
|
3
|
+
explicit: [
|
|
4
|
+
{ order: 100, route: (query) => sentLinkedInInvitationReadRecommendation(query) ? "connected-linkedin" : null },
|
|
5
|
+
{ order: 390, route: (query) => isOwnLinkedInNetworkIntent(query) || isOpenLinkedInRequestsIntent(query) ? "connected-linkedin" : null },
|
|
6
|
+
{ order: 470, route: (query) => isLinkedInAccountConnectIntent(query) ? "connected-linkedin" : null },
|
|
7
|
+
// Profile viewers exist only as a connected account's data, and their capture
|
|
8
|
+
// owns its own on/off, pause and automatic enrichment. "Automatically enrich
|
|
9
|
+
// new profile viewers" reads as workflow language, but a hand-built workflow is
|
|
10
|
+
// the wrong answer when `viewers enrichment --on` is the switch (2026-09-23
|
|
11
|
+
// enrichment baseline).
|
|
12
|
+
{ order: 490, route: (query) => /\bprofile viewers?\b/.test(query) ? "connected-linkedin" : null },
|
|
13
|
+
// A mutual/shared-connection count is relationship context that only a
|
|
14
|
+
// connected account can expose. Route it before the generic public-profile
|
|
15
|
+
// rule, which otherwise sees "LinkedIn profile" and sends the user to the
|
|
16
|
+
// cookieless research catalog that cannot answer this question.
|
|
17
|
+
{ order: 640, route: (query) => isMutualLinkedInConnectionsIntent(query) ? "connected-linkedin" : null },
|
|
18
|
+
{
|
|
19
|
+
order: 840,
|
|
20
|
+
route: (query) => /\b(my|our|own|connected)\b.{0,40}\blinkedin\b|\b(sales navigator|salesnav|recruiter|profile viewers?|linkedin inbox)\b/.test(query) ? "connected-linkedin" : null,
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
recommendations: [
|
|
24
|
+
{ order: 240, recommend: (card, query) => card.id === "connected-linkedin" ? sentLinkedInInvitationReadRecommendation(query) : null },
|
|
25
|
+
{
|
|
26
|
+
order: 520,
|
|
27
|
+
recommend: (card, query) => card.id === "connected-linkedin" && isLinkedInAccountConnectIntent(query) ? {
|
|
28
|
+
tools: ["oxygen_senders_connect", "oxygen_senders_list", "oxygen_billing_commitments"],
|
|
29
|
+
commands: ["senders connect", "senders list", "billing commitments"],
|
|
30
|
+
exactCommand: "oxygen senders connect --country <cc> --json",
|
|
31
|
+
exactMcpCall: mcpCalls.senderConnect(),
|
|
32
|
+
} : null,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
order: 530,
|
|
36
|
+
recommend: (card, query) => card.id === "connected-linkedin" && isLinkedInAccountLimitsIntent(query) ? {
|
|
37
|
+
tools: ["oxygen_senders_limits_get", "oxygen_senders_limits_set", "oxygen_senders_list"],
|
|
38
|
+
commands: ["senders limits get", "senders limits set", "senders list"],
|
|
39
|
+
} : null,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
order: 540,
|
|
43
|
+
recommend: (card, query) => card.id === "connected-linkedin" && isMutualLinkedInConnectionsIntent(query) ? {
|
|
44
|
+
tools: ["oxygen_tools_get", "oxygen_tools_run_live", "oxygen_senders_list"],
|
|
45
|
+
commands: ["tools get", "tools run", "senders list"],
|
|
46
|
+
} : null,
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
cardViews: [
|
|
50
|
+
{
|
|
51
|
+
order: 390,
|
|
52
|
+
view: (card, query) => {
|
|
53
|
+
const sent = card.id === "connected-linkedin" ? sentLinkedInInvitationReadRecommendation(query) : null;
|
|
54
|
+
return sent ? { card: { ...card, execution: sent.execution } } : null;
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const rules = {
|
|
2
|
+
explicit: [
|
|
3
|
+
{ order: 820, route: (query) => /\bwhatsapp\b.{0,30}\b(account|connect|limits?|sync)\b/.test(query) ? "connected-whatsapp" : null },
|
|
4
|
+
],
|
|
5
|
+
recommendations: [
|
|
6
|
+
{
|
|
7
|
+
order: 1060,
|
|
8
|
+
recommend: (card, query) => card.id === "connected-whatsapp" && /\b(account|connect|limits?|sync)\b/.test(query) ? {
|
|
9
|
+
tools: ["oxygen_whatsapp_accounts_list", "oxygen_whatsapp_get", "oxygen_whatsapp_limits_get", "oxygen_whatsapp_connect"],
|
|
10
|
+
commands: ["whatsapp accounts", "whatsapp get", "whatsapp limits get", "whatsapp connect"],
|
|
11
|
+
} : null,
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const rules = {
|
|
2
|
+
explicit: [
|
|
3
|
+
// Importing an AI answer is GEO evidence, rather than a Table file import.
|
|
4
|
+
{
|
|
5
|
+
order: 60,
|
|
6
|
+
route: (query) => /\b(?:geo|aeo|ai (?:(?:search|answer) )?visibility|consumer ai answers?|answer engine optimization|generative engine optimization)\b/.test(query) ? "geo" : null,
|
|
7
|
+
},
|
|
8
|
+
],
|
|
9
|
+
};
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import type { CapabilityIntentRules } from "../capability-discovery-types.js";
|
|
2
|
+
export declare const CAPABILITY_INTENT_RULES: readonly CapabilityIntentRules[];
|
|
3
|
+
export declare const CAPABILITY_ROUTE_MCP_CALL_GROUPS: readonly [{
|
|
4
|
+
connectionPrices: () => {
|
|
5
|
+
tool: string;
|
|
6
|
+
arguments: {
|
|
7
|
+
view: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
senderConnect: () => {
|
|
12
|
+
tool: string;
|
|
13
|
+
arguments: {
|
|
14
|
+
country: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
ugcProgramCreate: () => {
|
|
19
|
+
tool: string;
|
|
20
|
+
arguments: {
|
|
21
|
+
product_url: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
publishingPostDraft: () => {
|
|
25
|
+
tool: string;
|
|
26
|
+
arguments: {
|
|
27
|
+
content_text: string;
|
|
28
|
+
publish_at: string;
|
|
29
|
+
status: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
publishingFirstComment: () => {
|
|
33
|
+
tool: string;
|
|
34
|
+
arguments: {
|
|
35
|
+
content_text: string;
|
|
36
|
+
publish_at: string;
|
|
37
|
+
sender_account_id: string;
|
|
38
|
+
content: {
|
|
39
|
+
first_comment: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
}, {
|
|
44
|
+
sequenceSendingSchedule: () => {
|
|
45
|
+
tool: string;
|
|
46
|
+
arguments: {
|
|
47
|
+
sequence: string;
|
|
48
|
+
sending_schedule: {
|
|
49
|
+
timezone: string;
|
|
50
|
+
days: number[];
|
|
51
|
+
start: string;
|
|
52
|
+
end: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
sequenceUnsubscribe: () => {
|
|
57
|
+
tool: string;
|
|
58
|
+
arguments: {
|
|
59
|
+
sequence: string;
|
|
60
|
+
include_unsubscribe: boolean;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
sequenceReplyToStop: () => {
|
|
64
|
+
tool: string;
|
|
65
|
+
arguments: {
|
|
66
|
+
sequence: string;
|
|
67
|
+
reply_to_stop_text: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
}, {
|
|
71
|
+
signalCapture: () => {
|
|
72
|
+
tool: string;
|
|
73
|
+
arguments: {
|
|
74
|
+
object: string;
|
|
75
|
+
row_id: string;
|
|
76
|
+
activity_type: string;
|
|
77
|
+
direction: string;
|
|
78
|
+
summary: string;
|
|
79
|
+
occurred_at: string;
|
|
80
|
+
mode: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
linkedinKeywordPosts: () => {
|
|
84
|
+
tool: string;
|
|
85
|
+
arguments: {
|
|
86
|
+
action: string;
|
|
87
|
+
filters: {
|
|
88
|
+
keywords: string[];
|
|
89
|
+
all_keywords: string[];
|
|
90
|
+
exclude_keywords: string[];
|
|
91
|
+
ai_filter: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
}, {
|
|
96
|
+
companyUrlRecovery: () => {
|
|
97
|
+
tool: string;
|
|
98
|
+
arguments: {
|
|
99
|
+
prompt: string;
|
|
100
|
+
source_intent: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
localBusinessScrape: () => {
|
|
104
|
+
tool: string;
|
|
105
|
+
arguments: {
|
|
106
|
+
action: string;
|
|
107
|
+
source: string;
|
|
108
|
+
filters: {
|
|
109
|
+
q: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
}, {
|
|
114
|
+
functionsList: () => {
|
|
115
|
+
tool: string;
|
|
116
|
+
arguments: {
|
|
117
|
+
operation: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
functionsDescribe: () => {
|
|
121
|
+
tool: string;
|
|
122
|
+
arguments: {
|
|
123
|
+
operation: string;
|
|
124
|
+
function: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
functionsRuns: () => {
|
|
128
|
+
tool: string;
|
|
129
|
+
arguments: {
|
|
130
|
+
operation: string;
|
|
131
|
+
function: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
companyPageFollowers: () => {
|
|
135
|
+
tool: string;
|
|
136
|
+
arguments: {
|
|
137
|
+
action: string;
|
|
138
|
+
company_url: string;
|
|
139
|
+
records: number;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
rowClassification: () => {
|
|
143
|
+
tool: string;
|
|
144
|
+
arguments: {
|
|
145
|
+
family: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
rowFanOut: () => {
|
|
149
|
+
tool: string;
|
|
150
|
+
arguments: {
|
|
151
|
+
source: string;
|
|
152
|
+
target: string;
|
|
153
|
+
flatten: {
|
|
154
|
+
column: string;
|
|
155
|
+
path: string;
|
|
156
|
+
};
|
|
157
|
+
mapping: {
|
|
158
|
+
target: string;
|
|
159
|
+
source: {
|
|
160
|
+
type: string;
|
|
161
|
+
key: string;
|
|
162
|
+
};
|
|
163
|
+
path: string;
|
|
164
|
+
}[];
|
|
165
|
+
dry_run: boolean;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
}, {
|
|
169
|
+
connectedAppsList: () => {
|
|
170
|
+
tool: string;
|
|
171
|
+
arguments: {};
|
|
172
|
+
};
|
|
173
|
+
connectedAppEvents: () => {
|
|
174
|
+
tool: string;
|
|
175
|
+
arguments: {
|
|
176
|
+
connection: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
workspacePagesList: () => {
|
|
180
|
+
tool: string;
|
|
181
|
+
arguments: {};
|
|
182
|
+
};
|
|
183
|
+
}];
|
|
184
|
+
/**
|
|
185
|
+
* Every exact CLI command a route hands out, as the MCP tool call that sends the
|
|
186
|
+
* same request. The MCP surface serves these in place of the command: an MCP
|
|
187
|
+
* agent handed a CLI command had to translate it (blind user eval, 2026-09-29).
|
|
188
|
+
* Each was traced to the same `/api/cli/*` request as its command; the
|
|
189
|
+
* mcp-server test proves every tool exists and declares every argument.
|
|
190
|
+
* Factories, so a caller can edit the object it gets.
|
|
191
|
+
*/
|
|
192
|
+
export declare const CAPABILITY_ROUTE_MCP_CALLS: {
|
|
193
|
+
connectedAppsList: () => {
|
|
194
|
+
tool: string;
|
|
195
|
+
arguments: {};
|
|
196
|
+
};
|
|
197
|
+
connectedAppEvents: () => {
|
|
198
|
+
tool: string;
|
|
199
|
+
arguments: {
|
|
200
|
+
connection: string;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
workspacePagesList: () => {
|
|
204
|
+
tool: string;
|
|
205
|
+
arguments: {};
|
|
206
|
+
};
|
|
207
|
+
connectionPrices: () => {
|
|
208
|
+
tool: string;
|
|
209
|
+
arguments: {
|
|
210
|
+
view: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
sequenceSendingSchedule: () => {
|
|
214
|
+
tool: string;
|
|
215
|
+
arguments: {
|
|
216
|
+
sequence: string;
|
|
217
|
+
sending_schedule: {
|
|
218
|
+
timezone: string;
|
|
219
|
+
days: number[];
|
|
220
|
+
start: string;
|
|
221
|
+
end: string;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
sequenceUnsubscribe: () => {
|
|
226
|
+
tool: string;
|
|
227
|
+
arguments: {
|
|
228
|
+
sequence: string;
|
|
229
|
+
include_unsubscribe: boolean;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
sequenceReplyToStop: () => {
|
|
233
|
+
tool: string;
|
|
234
|
+
arguments: {
|
|
235
|
+
sequence: string;
|
|
236
|
+
reply_to_stop_text: string;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
senderConnect: () => {
|
|
240
|
+
tool: string;
|
|
241
|
+
arguments: {
|
|
242
|
+
country: string;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
ugcProgramCreate: () => {
|
|
246
|
+
tool: string;
|
|
247
|
+
arguments: {
|
|
248
|
+
product_url: string;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
publishingPostDraft: () => {
|
|
252
|
+
tool: string;
|
|
253
|
+
arguments: {
|
|
254
|
+
content_text: string;
|
|
255
|
+
publish_at: string;
|
|
256
|
+
status: string;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
publishingFirstComment: () => {
|
|
260
|
+
tool: string;
|
|
261
|
+
arguments: {
|
|
262
|
+
content_text: string;
|
|
263
|
+
publish_at: string;
|
|
264
|
+
sender_account_id: string;
|
|
265
|
+
content: {
|
|
266
|
+
first_comment: string;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
functionsList: () => {
|
|
271
|
+
tool: string;
|
|
272
|
+
arguments: {
|
|
273
|
+
operation: string;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
functionsDescribe: () => {
|
|
277
|
+
tool: string;
|
|
278
|
+
arguments: {
|
|
279
|
+
operation: string;
|
|
280
|
+
function: string;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
functionsRuns: () => {
|
|
284
|
+
tool: string;
|
|
285
|
+
arguments: {
|
|
286
|
+
operation: string;
|
|
287
|
+
function: string;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
companyPageFollowers: () => {
|
|
291
|
+
tool: string;
|
|
292
|
+
arguments: {
|
|
293
|
+
action: string;
|
|
294
|
+
company_url: string;
|
|
295
|
+
records: number;
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
rowClassification: () => {
|
|
299
|
+
tool: string;
|
|
300
|
+
arguments: {
|
|
301
|
+
family: string;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
rowFanOut: () => {
|
|
305
|
+
tool: string;
|
|
306
|
+
arguments: {
|
|
307
|
+
source: string;
|
|
308
|
+
target: string;
|
|
309
|
+
flatten: {
|
|
310
|
+
column: string;
|
|
311
|
+
path: string;
|
|
312
|
+
};
|
|
313
|
+
mapping: {
|
|
314
|
+
target: string;
|
|
315
|
+
source: {
|
|
316
|
+
type: string;
|
|
317
|
+
key: string;
|
|
318
|
+
};
|
|
319
|
+
path: string;
|
|
320
|
+
}[];
|
|
321
|
+
dry_run: boolean;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
signalCapture: () => {
|
|
325
|
+
tool: string;
|
|
326
|
+
arguments: {
|
|
327
|
+
object: string;
|
|
328
|
+
row_id: string;
|
|
329
|
+
activity_type: string;
|
|
330
|
+
direction: string;
|
|
331
|
+
summary: string;
|
|
332
|
+
occurred_at: string;
|
|
333
|
+
mode: string;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
linkedinKeywordPosts: () => {
|
|
337
|
+
tool: string;
|
|
338
|
+
arguments: {
|
|
339
|
+
action: string;
|
|
340
|
+
filters: {
|
|
341
|
+
keywords: string[];
|
|
342
|
+
all_keywords: string[];
|
|
343
|
+
exclude_keywords: string[];
|
|
344
|
+
ai_filter: string;
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
companyUrlRecovery: () => {
|
|
349
|
+
tool: string;
|
|
350
|
+
arguments: {
|
|
351
|
+
prompt: string;
|
|
352
|
+
source_intent: string;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
localBusinessScrape: () => {
|
|
356
|
+
tool: string;
|
|
357
|
+
arguments: {
|
|
358
|
+
action: string;
|
|
359
|
+
source: string;
|
|
360
|
+
filters: {
|
|
361
|
+
q: string;
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { rules as agencyDirectoryRules } from "./agency-directory.rules.js";
|
|
2
|
+
import { rules as agentsRules } from "./agents.rules.js";
|
|
3
|
+
import { rules as billingAndBudgetsRules } from "./billing-and-budgets.rules.js";
|
|
4
|
+
import { rules as collaborationRules } from "./collaboration.rules.js";
|
|
5
|
+
import { rules as connectedIntegrationsRules } from "./connected-integrations.rules.js";
|
|
6
|
+
import { rules as connectedLinkedinRules } from "./connected-linkedin.rules.js";
|
|
7
|
+
import { rules as connectedWhatsappRules } from "./connected-whatsapp.rules.js";
|
|
8
|
+
import { rules as geoRules } from "./geo.rules.js";
|
|
9
|
+
import { rules as knowledgeGraphRules } from "./knowledge-graph.rules.js";
|
|
10
|
+
import { rules as linkedinPublicResearchRules } from "./linkedin-public-research.rules.js";
|
|
11
|
+
import { rules as messagesRules } from "./messages.rules.js";
|
|
12
|
+
import { rules as platformOperationsRules } from "./platform-operations.rules.js";
|
|
13
|
+
import { rules as postsRules } from "./posts.rules.js";
|
|
14
|
+
import { rules as publishingRules } from "./publishing.rules.js";
|
|
15
|
+
import { rules as readInspectionRules } from "./read-inspection.rules.js";
|
|
16
|
+
import { rules as recipesRules } from "./recipes.rules.js";
|
|
17
|
+
import { rules as recordsRules } from "./records.rules.js";
|
|
18
|
+
import { rules as sendingInfrastructureRules } from "./sending-infrastructure.rules.js";
|
|
19
|
+
import { rules as sequencesRules } from "./sequences.rules.js";
|
|
20
|
+
import { rules as signalsRules } from "./signals.rules.js";
|
|
21
|
+
import { rules as sourcingAndProviderToolsRules } from "./sourcing-and-provider-tools.rules.js";
|
|
22
|
+
import { rules as tablesRules } from "./tables.rules.js";
|
|
23
|
+
import { rules as tagsRules } from "./tags.rules.js";
|
|
24
|
+
import { rules as visualRenderingRules } from "./visual-rendering.rules.js";
|
|
25
|
+
import { rules as workflowsRules } from "./workflows.rules.js";
|
|
26
|
+
import { rules as workspaceAccessRules } from "./workspace-access.rules.js";
|
|
27
|
+
import { mcpCalls as billingAndBudgetsMcpCalls } from "./billing-and-budgets.js";
|
|
28
|
+
import { mcpCalls as connectedLinkedinMcpCalls } from "./connected-linkedin.js";
|
|
29
|
+
import { mcpCalls as publishingMcpCalls } from "./publishing.js";
|
|
30
|
+
import { mcpCalls as sequencesMcpCalls } from "./sequences.js";
|
|
31
|
+
import { mcpCalls as signalsMcpCalls } from "./signals.js";
|
|
32
|
+
import { mcpCalls as sourcingAndProviderToolsMcpCalls } from "./sourcing-and-provider-tools.js";
|
|
33
|
+
import { mcpCalls as tablesMcpCalls } from "./tables.js";
|
|
34
|
+
import { mcpCalls as workspaceAccessMcpCalls } from "./workspace-access.js";
|
|
35
|
+
export const CAPABILITY_INTENT_RULES = [
|
|
36
|
+
agencyDirectoryRules,
|
|
37
|
+
agentsRules,
|
|
38
|
+
billingAndBudgetsRules,
|
|
39
|
+
collaborationRules,
|
|
40
|
+
connectedIntegrationsRules,
|
|
41
|
+
connectedLinkedinRules,
|
|
42
|
+
connectedWhatsappRules,
|
|
43
|
+
geoRules,
|
|
44
|
+
knowledgeGraphRules,
|
|
45
|
+
linkedinPublicResearchRules,
|
|
46
|
+
messagesRules,
|
|
47
|
+
platformOperationsRules,
|
|
48
|
+
postsRules,
|
|
49
|
+
publishingRules,
|
|
50
|
+
readInspectionRules,
|
|
51
|
+
recipesRules,
|
|
52
|
+
recordsRules,
|
|
53
|
+
sendingInfrastructureRules,
|
|
54
|
+
sequencesRules,
|
|
55
|
+
signalsRules,
|
|
56
|
+
sourcingAndProviderToolsRules,
|
|
57
|
+
tablesRules,
|
|
58
|
+
tagsRules,
|
|
59
|
+
visualRenderingRules,
|
|
60
|
+
workflowsRules,
|
|
61
|
+
workspaceAccessRules,
|
|
62
|
+
];
|
|
63
|
+
export const CAPABILITY_ROUTE_MCP_CALL_GROUPS = [
|
|
64
|
+
billingAndBudgetsMcpCalls,
|
|
65
|
+
connectedLinkedinMcpCalls,
|
|
66
|
+
publishingMcpCalls,
|
|
67
|
+
sequencesMcpCalls,
|
|
68
|
+
signalsMcpCalls,
|
|
69
|
+
sourcingAndProviderToolsMcpCalls,
|
|
70
|
+
tablesMcpCalls,
|
|
71
|
+
workspaceAccessMcpCalls,
|
|
72
|
+
];
|
|
73
|
+
/**
|
|
74
|
+
* Every exact CLI command a route hands out, as the MCP tool call that sends the
|
|
75
|
+
* same request. The MCP surface serves these in place of the command: an MCP
|
|
76
|
+
* agent handed a CLI command had to translate it (blind user eval, 2026-09-29).
|
|
77
|
+
* Each was traced to the same `/api/cli/*` request as its command; the
|
|
78
|
+
* mcp-server test proves every tool exists and declares every argument.
|
|
79
|
+
* Factories, so a caller can edit the object it gets.
|
|
80
|
+
*/
|
|
81
|
+
export const CAPABILITY_ROUTE_MCP_CALLS = {
|
|
82
|
+
...billingAndBudgetsMcpCalls,
|
|
83
|
+
...connectedLinkedinMcpCalls,
|
|
84
|
+
...publishingMcpCalls,
|
|
85
|
+
...sequencesMcpCalls,
|
|
86
|
+
...signalsMcpCalls,
|
|
87
|
+
...sourcingAndProviderToolsMcpCalls,
|
|
88
|
+
...tablesMcpCalls,
|
|
89
|
+
...workspaceAccessMcpCalls,
|
|
90
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which voice, brand or positioning AI copy uses right now: a free read of the pinned
|
|
3
|
+
* canonical doc. A blind operator searched "current canonical voice", got the wiki
|
|
4
|
+
* search tools, and concluded no such read existed; "which voice does AI copy use"
|
|
5
|
+
* read as "copy my voice" and was sent to paid synthesis (OXP-1.4.18).
|
|
6
|
+
*/
|
|
7
|
+
export declare function isCanonicalCopyReadIntent(query: string): boolean;
|
|
8
|
+
export declare const CANONICAL_COPY_READ_EXECUTION = "Read the canonical copy AI uses with `oxygen context canonical get --type <voice|brand|positioning> --json` (MCP: oxygen_context_canonical_get), a free read. present=false means none is pinned, and grounding_when_absent says what AI copy uses instead. Pinning one (knowledge page pin) files a proposal a human approves.";
|
|
9
|
+
/**
|
|
10
|
+
* The workspace's own voice. `knowledge synthesize --kind voice` learns a writing
|
|
11
|
+
* voice from the workspace's SENT LinkedIn and WhatsApp messages; brand voice is a
|
|
12
|
+
* wiki page. "learn my writing voice from my LinkedIn history" scored higher on
|
|
13
|
+
* the connected-LinkedIn card ("my linkedin") and was offered `linkedin network
|
|
14
|
+
* setup` (UGC E2E pass, 2026-09-29, OXP-1.15.12). A creator's voice is UGC and is
|
|
15
|
+
* claimed first (isUgcVoiceIntent); phone voice (numbers, calls) never matches.
|
|
16
|
+
* The blind baseline also searched "writing style" and "voice learn".
|
|
17
|
+
*/
|
|
18
|
+
export declare function isWorkspaceVoiceIntent(query: string): boolean;
|
|
19
|
+
export declare const WORKSPACE_VOICE_EXECUTION = "A writing voice is learned from the workspace's own sent LinkedIn and WhatsApp messages: `oxygen knowledge synthesize --kind voice --json` (MCP: oxygen_context_synthesize with kind voice) runs one low-cost AI call, priced as one low-reasoning AI column cell, the preview included, and reports credits_used; to save the guide a preview showed, pass its body back with --approved --body (no new AI call) at 0 credits, because --approved alone synthesizes and charges again. Saving files a pin proposal: the guide becomes the canonical voice, which grounds message, reply, sequence and post drafts and AI columns, only once a human approves that proposal (oxygen knowledge proposals approve <id>; MCP oxygen_knowledge_proposal_decide). It reads sent messages only, not posts, emails or web pages. Brand voice and tone live in wiki pages (knowledge search). A creator's voice in a UGC program is `ugc voice import`. When the user already has the guide's text, no synthesis is needed: save it with `knowledge page upsert --type voice` and request the pin with `knowledge page pin` (MCP oxygen_knowledge_page_upsert with canonical: true), both 0 credits. Which voice AI copy uses now: `context canonical get --type voice` (MCP oxygen_context_canonical_get). To hard-cap a synthesis run, pass `--max-credits <n>` (MCP max_credits): a higher estimate is refused before the AI call, with nothing charged.";
|
|
20
|
+
export declare function isWorkspaceSkillIntent(query: string): boolean;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which voice, brand or positioning AI copy uses right now: a free read of the pinned
|
|
3
|
+
* canonical doc. A blind operator searched "current canonical voice", got the wiki
|
|
4
|
+
* search tools, and concluded no such read existed; "which voice does AI copy use"
|
|
5
|
+
* read as "copy my voice" and was sent to paid synthesis (OXP-1.4.18).
|
|
6
|
+
*/
|
|
7
|
+
export function isCanonicalCopyReadIntent(query) {
|
|
8
|
+
if (/\b(?:learn\w*|synthesi[sz]\w*|generat\w*|creat\w*|writ\w*|set|pin|unpin|chang\w*|edit\w*|updat\w*|approv\w*|propos\w*|import\w*|calls?|phone|numbers?|creators?|ugc)\b/.test(query))
|
|
9
|
+
return false;
|
|
10
|
+
const copyType = /\b(?:voice|brand|positioning)\b/;
|
|
11
|
+
if (!copyType.test(query))
|
|
12
|
+
return false;
|
|
13
|
+
return /\b(?:canonical|pinned|current|active|live)\b/.test(query)
|
|
14
|
+
|| /\b(?:ai|generated) copy\b/.test(query)
|
|
15
|
+
|| /\bwhich\b.{0,20}\b(?:voice|brand|positioning)\b/.test(query);
|
|
16
|
+
}
|
|
17
|
+
export const CANONICAL_COPY_READ_EXECUTION = "Read the canonical copy AI uses with `oxygen context canonical get --type <voice|brand|positioning> --json` (MCP: oxygen_context_canonical_get), a free read. present=false means none is pinned, and grounding_when_absent says what AI copy uses instead. Pinning one (knowledge page pin) files a proposal a human approves.";
|
|
18
|
+
/**
|
|
19
|
+
* The workspace's own voice. `knowledge synthesize --kind voice` learns a writing
|
|
20
|
+
* voice from the workspace's SENT LinkedIn and WhatsApp messages; brand voice is a
|
|
21
|
+
* wiki page. "learn my writing voice from my LinkedIn history" scored higher on
|
|
22
|
+
* the connected-LinkedIn card ("my linkedin") and was offered `linkedin network
|
|
23
|
+
* setup` (UGC E2E pass, 2026-09-29, OXP-1.15.12). A creator's voice is UGC and is
|
|
24
|
+
* claimed first (isUgcVoiceIntent); phone voice (numbers, calls) never matches.
|
|
25
|
+
* The blind baseline also searched "writing style" and "voice learn".
|
|
26
|
+
*/
|
|
27
|
+
export function isWorkspaceVoiceIntent(query) {
|
|
28
|
+
if (/\b(?:calls?|calling|dial\w*|phone|softphone|voicemail|numbers?)\b/.test(query))
|
|
29
|
+
return false;
|
|
30
|
+
return /\b(?:writing (?:voice|style)|brand voice|tone of voice|voice guide|(?:my|our) (?:own )?voice|(?:write|sound)s? like (?:me|us))\b/.test(query)
|
|
31
|
+
|| /\b(?:learn|capture|mimic|copy|match)\w*\b.{0,30}\bvoice\b/.test(query)
|
|
32
|
+
|| /\bvoice\b.{0,30}\b(?:learn|capture|mimic|copy|match)\w*\b/.test(query);
|
|
33
|
+
}
|
|
34
|
+
export const WORKSPACE_VOICE_EXECUTION = "A writing voice is learned from the workspace's own sent LinkedIn and WhatsApp messages: `oxygen knowledge synthesize --kind voice --json` (MCP: oxygen_context_synthesize with kind voice) runs one low-cost AI call, priced as one low-reasoning AI column cell, the preview included, and reports credits_used; to save the guide a preview showed, pass its body back with --approved --body (no new AI call) at 0 credits, because --approved alone synthesizes and charges again. Saving files a pin proposal: the guide becomes the canonical voice, which grounds message, reply, sequence and post drafts and AI columns, only once a human approves that proposal (oxygen knowledge proposals approve <id>; MCP oxygen_knowledge_proposal_decide). It reads sent messages only, not posts, emails or web pages. Brand voice and tone live in wiki pages (knowledge search). A creator's voice in a UGC program is `ugc voice import`. When the user already has the guide's text, no synthesis is needed: save it with `knowledge page upsert --type voice` and request the pin with `knowledge page pin` (MCP oxygen_knowledge_page_upsert with canonical: true), both 0 credits. Which voice AI copy uses now: `context canonical get --type voice` (MCP oxygen_context_canonical_get). To hard-cap a synthesis run, pass `--max-credits <n>` (MCP max_credits): a higher estimate is refused before the AI call, with nothing charged.";
|
|
35
|
+
export function isWorkspaceSkillIntent(query) {
|
|
36
|
+
return /\bskills?\b/.test(query) && /\b(create|author|write|upload|import|edit|update|archive|private|workspace|custom|own|reusable)\b/.test(query);
|
|
37
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { CANONICAL_COPY_READ_EXECUTION, WORKSPACE_VOICE_EXECUTION, isCanonicalCopyReadIntent, isWorkspaceSkillIntent, isWorkspaceVoiceIntent, } from "./knowledge-graph.js";
|
|
2
|
+
export const rules = {
|
|
3
|
+
explicit: [
|
|
4
|
+
{ order: 20, route: (query) => isWorkspaceSkillIntent(query) ? "knowledge-graph" : null },
|
|
5
|
+
{ order: 370, route: (query) => isWorkspaceVoiceIntent(query) ? "knowledge-graph" : null },
|
|
6
|
+
],
|
|
7
|
+
recommendations: [
|
|
8
|
+
{
|
|
9
|
+
order: 90,
|
|
10
|
+
recommend: (card, query) => card.id === "knowledge-graph" && isWorkspaceSkillIntent(query) ? {
|
|
11
|
+
tools: ["oxygen_workspace_skills_list", "oxygen_workspace_skills_create", "oxygen_workspace_skills_import", "oxygen_workspace_skills_get", "oxygen_workspace_skills_update", "oxygen_workspace_skills_archive"],
|
|
12
|
+
commands: ["skills workspace list", "skills workspace create", "skills workspace import", "skills workspace get", "skills workspace update", "skills workspace archive"],
|
|
13
|
+
} : null,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
order: 110,
|
|
17
|
+
recommend: (card, query) => card.id === "knowledge-graph" && isCanonicalCopyReadIntent(query) ? {
|
|
18
|
+
tools: ["oxygen_context_canonical_get", "oxygen_knowledge_page_get", "oxygen_knowledge_search"],
|
|
19
|
+
commands: ["context canonical get", "knowledge page get", "knowledge search"],
|
|
20
|
+
} : null,
|
|
21
|
+
},
|
|
22
|
+
// Brand voice is read from its wiki page; only a writing voice is synthesized.
|
|
23
|
+
{
|
|
24
|
+
order: 1070,
|
|
25
|
+
recommend: (card, query) => card.id === "knowledge-graph" && isWorkspaceVoiceIntent(query) && !/\bbrand voice\b/.test(query) ? {
|
|
26
|
+
tools: ["oxygen_context_synthesize", "oxygen_knowledge_search", "oxygen_knowledge_page_get"],
|
|
27
|
+
commands: ["knowledge synthesize", "knowledge search", "knowledge page get"],
|
|
28
|
+
} : null,
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
cardViews: [
|
|
32
|
+
{
|
|
33
|
+
order: 250,
|
|
34
|
+
view: (card, query) => {
|
|
35
|
+
if (card.id === "knowledge-graph" && isCanonicalCopyReadIntent(query))
|
|
36
|
+
return { card: { ...card, posture: "read_only", execution: CANONICAL_COPY_READ_EXECUTION } };
|
|
37
|
+
if (card.id === "knowledge-graph" && isWorkspaceVoiceIntent(query))
|
|
38
|
+
return { card: { ...card, execution: WORKSPACE_VOICE_EXECUTION } };
|
|
39
|
+
return null;
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function isPublicLinkedInRead(query: string): boolean;
|
|
2
|
+
export declare function isPublicLinkedInEngagerHarvest(query: string): boolean;
|
|
3
|
+
export declare function isDeferredLinkedInOutreach(query: string): boolean;
|
|
4
|
+
export declare function isLinkedInEngagerMotion(query: string): boolean;
|