@oxygen-agent/cli 1.1014.1874 → 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 -258
- package/node_modules/@oxygen/shared/dist/capability-discovery.js +123 -3700
- 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/log.d.ts +4 -0
- package/node_modules/@oxygen/shared/dist/log.js +4 -0
- 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/onboarding-research.d.ts +19 -0
- package/node_modules/@oxygen/shared/dist/onboarding-research.js +33 -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,196 @@
|
|
|
1
|
+
/** This card's exact commands as MCP calls (see CAPABILITY_ROUTE_MCP_CALLS). */
|
|
2
|
+
export declare const mcpCalls: {
|
|
3
|
+
functionsList: () => {
|
|
4
|
+
tool: string;
|
|
5
|
+
arguments: {
|
|
6
|
+
operation: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
functionsDescribe: () => {
|
|
10
|
+
tool: string;
|
|
11
|
+
arguments: {
|
|
12
|
+
operation: string;
|
|
13
|
+
function: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
functionsRuns: () => {
|
|
17
|
+
tool: string;
|
|
18
|
+
arguments: {
|
|
19
|
+
operation: string;
|
|
20
|
+
function: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
companyPageFollowers: () => {
|
|
24
|
+
tool: string;
|
|
25
|
+
arguments: {
|
|
26
|
+
action: string;
|
|
27
|
+
company_url: string;
|
|
28
|
+
records: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
rowClassification: () => {
|
|
32
|
+
tool: string;
|
|
33
|
+
arguments: {
|
|
34
|
+
family: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
rowFanOut: () => {
|
|
38
|
+
tool: string;
|
|
39
|
+
arguments: {
|
|
40
|
+
source: string;
|
|
41
|
+
target: string;
|
|
42
|
+
flatten: {
|
|
43
|
+
column: string;
|
|
44
|
+
path: string;
|
|
45
|
+
};
|
|
46
|
+
mapping: {
|
|
47
|
+
target: string;
|
|
48
|
+
source: {
|
|
49
|
+
type: string;
|
|
50
|
+
key: string;
|
|
51
|
+
};
|
|
52
|
+
path: string;
|
|
53
|
+
}[];
|
|
54
|
+
dry_run: boolean;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export declare function isClayMigrationIntent(query: string): boolean;
|
|
59
|
+
export declare function isTableMaintenanceIntent(query: string): boolean;
|
|
60
|
+
export declare function isPlainTableIntent(query: string): boolean;
|
|
61
|
+
export declare function isFunctionIntent(query: string): boolean;
|
|
62
|
+
export declare function isLinkedInProfileWatcherIntent(query: string): boolean;
|
|
63
|
+
export declare const COMPANY_PAGE_FOLLOWERS_COMMAND = "oxygen tables followers check --company <linkedin company page URL> --records <n> --json";
|
|
64
|
+
/**
|
|
65
|
+
* "The people who follow HubSpot on LinkedIn" / "a competitor's followers" is a
|
|
66
|
+
* vendor order of a company page's audience (`tables followers`), not the
|
|
67
|
+
* workspace's own network and not a signal. The Signals card claims the bare
|
|
68
|
+
* word "follower", so without this a blind user (2026-09-24) got only
|
|
69
|
+
* `signals *` from `commands search "company followers"` and priced the order
|
|
70
|
+
* through raw `tools run` instead. The own-network ask stays with its owner.
|
|
71
|
+
*/
|
|
72
|
+
export declare function isCompanyPageFollowersIntent(query: string): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* "How many tables do I have?", "list my tables": the workspace's own table
|
|
75
|
+
* inventory, which `tables list` answers with its `total`. Live on dev
|
|
76
|
+
* (2026-10-10), "How many tables are in this workspace?" routed to
|
|
77
|
+
* workspace-access on its "workspace" term, and the Tables card led with
|
|
78
|
+
* creation and enrichment, so a Copilot turn searched three times before it
|
|
79
|
+
* found the list.
|
|
80
|
+
*/
|
|
81
|
+
export declare function isTableInventoryIntent(query: string): boolean;
|
|
82
|
+
export declare function isTableCapacityReadIntent(query: string): boolean;
|
|
83
|
+
/** Scoped row deletion keeps creation and enrichment out of its discovery path. */
|
|
84
|
+
export declare function tableRowRemovalRecommendation(query: string): {
|
|
85
|
+
tools: string[];
|
|
86
|
+
commands: string[];
|
|
87
|
+
execution: string;
|
|
88
|
+
} | null;
|
|
89
|
+
/**
|
|
90
|
+
* Literal row values go in with the row-insert tool. Without this card "add rows"
|
|
91
|
+
* ranked create, enrichment and the external Records import first (sweep 3).
|
|
92
|
+
*/
|
|
93
|
+
export declare function tableRowInsertRecommendation(query: string): {
|
|
94
|
+
tools: string[];
|
|
95
|
+
commands: string[];
|
|
96
|
+
execution: string;
|
|
97
|
+
} | null;
|
|
98
|
+
/**
|
|
99
|
+
* Changing values on rows that already exist is oxygen_rows_update. Without this
|
|
100
|
+
* card "update rows" / "set a cell" ranked create and enrichment tools, and an
|
|
101
|
+
* Oxygent concluded no row update existed and offered a formula column instead of
|
|
102
|
+
* the weekly Workflow it was asked for (System 1 routing case, 2026-10-22).
|
|
103
|
+
*/
|
|
104
|
+
export declare function tableRowUpdateRecommendation(query: string): {
|
|
105
|
+
tools: string[];
|
|
106
|
+
commands: string[];
|
|
107
|
+
execution: string;
|
|
108
|
+
} | null;
|
|
109
|
+
/** Reads of grid values/state are separate from executing or resolving actions. */
|
|
110
|
+
export declare function tableReadRecommendation(query: string): {
|
|
111
|
+
tools: string[];
|
|
112
|
+
commands: string[];
|
|
113
|
+
execution: string;
|
|
114
|
+
} | null;
|
|
115
|
+
/** Direct Table operations keep their native gateway ahead of general authoring.
|
|
116
|
+
* Explicit Workflow triggers, mailbox imports and CRM attachments retain their owners. */
|
|
117
|
+
export declare function tableMaintenanceRecommendation(query: string): {
|
|
118
|
+
tools: string[];
|
|
119
|
+
commands: string[];
|
|
120
|
+
execution: string;
|
|
121
|
+
} | null;
|
|
122
|
+
/**
|
|
123
|
+
* Column structure the web's column editor and "Link to another table" own:
|
|
124
|
+
* linking two tables, plain and choice field types with their options, and a
|
|
125
|
+
* lookup or bind column's configuration. All of it was reachable from the CLI
|
|
126
|
+
* and MCP, but generic table discovery ranked `tables create` first (2026-10-10:
|
|
127
|
+
* "link two tables" put `tables relate` tenth, and the Copilot, asked for a
|
|
128
|
+
* select column, decided the API had none). Sort, rank and order wording stays
|
|
129
|
+
* with the value-order read above.
|
|
130
|
+
*/
|
|
131
|
+
export declare function tableStructureRecommendation(query: string): {
|
|
132
|
+
tools: string[];
|
|
133
|
+
commands: string[];
|
|
134
|
+
execution: string;
|
|
135
|
+
} | null;
|
|
136
|
+
/** Native row-supply feeds belong to Tables; Signals is their registered MCP pack. */
|
|
137
|
+
export declare function tableFeedRecommendation(rawQuery: string): {
|
|
138
|
+
tools: string[];
|
|
139
|
+
commands: string[];
|
|
140
|
+
execution: string;
|
|
141
|
+
} | null;
|
|
142
|
+
/**
|
|
143
|
+
* Records into a working Table (OXP-1.1.10): "turn my CRM view into a table
|
|
144
|
+
* that stays current". External CRM imports keep their own lanes, and a Table
|
|
145
|
+
* going INTO Records is promote, the other direction.
|
|
146
|
+
*/
|
|
147
|
+
export declare function recordsTableImportRecommendation(query: string): {
|
|
148
|
+
tools: string[];
|
|
149
|
+
commands: string[];
|
|
150
|
+
execution: string;
|
|
151
|
+
} | null;
|
|
152
|
+
export declare function isEmailVerificationIntent(query: string): boolean;
|
|
153
|
+
/**
|
|
154
|
+
* The free list of classification columns. Production answers it with its one
|
|
155
|
+
* classification template (B2B or B2C); a deployment that runs the native
|
|
156
|
+
* Classify column lists that entry here too. Any other scheme is an AI prompt
|
|
157
|
+
* column through `columns add`, which the route recommends next.
|
|
158
|
+
*/
|
|
159
|
+
export declare const ROW_CLASSIFICATION_COMMAND = "oxygen columns catalog --family classification";
|
|
160
|
+
export declare const ROW_FAN_OUT_COMMAND = "oxygen tables send <source> <target> --flatten <column> --flatten-path <path> --mapping '[{\"target\":\"<column>\",\"source\":{\"type\":\"column\",\"key\":\"$element\"},\"path\":\"<field>\"}]' --dry-run";
|
|
161
|
+
export declare function isRowFanOutIntent(query: string): boolean;
|
|
162
|
+
/** Nouns another primitive owns: a classify ask that names one keeps that owner. */
|
|
163
|
+
export declare const ROW_CLASSIFICATION_OTHER_OWNER: RegExp;
|
|
164
|
+
/** What one table row is: the noun a per-row classification is about. */
|
|
165
|
+
export declare const ROW_CLASSIFICATION_ROW_NOUN: RegExp;
|
|
166
|
+
/**
|
|
167
|
+
* Put every row of a table into one of a few buckets: classify or categorize
|
|
168
|
+
* rows, companies, accounts, leads, contacts, domains or people (or anything
|
|
169
|
+
* "with confidence"), "label every row as …", or a yes/no question asked per
|
|
170
|
+
* row. The verb alone is not enough: "classify my records", "categorize my
|
|
171
|
+
* workflows" or "classify leads into ICP tiers" name the primitive that owns
|
|
172
|
+
* them, and conversation triage ("classify my inbox replies") keeps Messages.
|
|
173
|
+
* A bare "tag these contacts" stays with Tags.
|
|
174
|
+
*/
|
|
175
|
+
export declare function isRowClassificationIntent(query: string): boolean;
|
|
176
|
+
/**
|
|
177
|
+
* A company fact the template catalog answers by key — founders, parent company,
|
|
178
|
+
* subsidiaries, cloud provider, NAICS, demos — and the "ready-made / template
|
|
179
|
+
* catalog / research question" phrasing itself. Kept to nouns no other card
|
|
180
|
+
* owns: "funding" alone belongs to Signals and "industry" alone to company
|
|
181
|
+
* search, so both stay off this list.
|
|
182
|
+
*/
|
|
183
|
+
export declare function isCompanyResearchQuestionIntent(query: string): boolean;
|
|
184
|
+
/** OXP-43.72: pricing qualifies the lookup or scrape, rather than changing its owner. */
|
|
185
|
+
export declare function linkedinUrlFindingRecommendation(query: string): {
|
|
186
|
+
tools: string[];
|
|
187
|
+
commands: string[];
|
|
188
|
+
exactCommand: string;
|
|
189
|
+
exactMcpCall: {
|
|
190
|
+
tool: string;
|
|
191
|
+
arguments: {
|
|
192
|
+
query: string;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
execution: string;
|
|
196
|
+
} | null;
|
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
import { isSecondPartyDecisionIntent } from "./collaboration.js";
|
|
2
|
+
import { isOwnLinkedInNetworkIntent } from "./connected-linkedin.js";
|
|
3
|
+
import { isNetNewLinkedInInitiation } from "./sequences.js";
|
|
4
|
+
/** This card's exact commands as MCP calls (see CAPABILITY_ROUTE_MCP_CALLS). */
|
|
5
|
+
export const mcpCalls = {
|
|
6
|
+
functionsList: () => ({ tool: "oxygen_callables_manage", arguments: { operation: "list_functions" } }),
|
|
7
|
+
functionsDescribe: () => ({ tool: "oxygen_callables_manage", arguments: { operation: "describe", function: "<function>" } }),
|
|
8
|
+
functionsRuns: () => ({ tool: "oxygen_callables_manage", arguments: { operation: "runs", function: "<function>" } }),
|
|
9
|
+
// `records` is a number the tool drops when it is not one; 1000 is its default.
|
|
10
|
+
companyPageFollowers: () => ({
|
|
11
|
+
tool: "oxygen_tables_followers",
|
|
12
|
+
arguments: { action: "preview", company_url: "<linkedin company page URL>", records: 1000 },
|
|
13
|
+
}),
|
|
14
|
+
rowClassification: () => ({ tool: "oxygen_columns_catalog", arguments: { family: "classification" } }),
|
|
15
|
+
rowFanOut: () => ({
|
|
16
|
+
tool: "oxygen_tables_send",
|
|
17
|
+
arguments: {
|
|
18
|
+
source: "<source table>",
|
|
19
|
+
target: "<target table>",
|
|
20
|
+
flatten: { column: "<column holding the array>", path: "<path to the array>" },
|
|
21
|
+
mapping: [{ target: "<target column>", source: { type: "column", key: "$element" }, path: "<field in each element>" }],
|
|
22
|
+
dry_run: true,
|
|
23
|
+
},
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
export function isClayMigrationIntent(query) {
|
|
27
|
+
return /\bclay\b/.test(query) && /\b(import|export|migrat\w*|mov\w*|transfer|bring|rebuild)\b/.test(query);
|
|
28
|
+
}
|
|
29
|
+
export function isTableMaintenanceIntent(query) {
|
|
30
|
+
return /\b(tables?|columns?|folders?)\b/.test(query)
|
|
31
|
+
&& !/\b(functions?|callables?|campaigns?|tags?|workflows?|agents?)\b/.test(query)
|
|
32
|
+
&& (/\b(tidy|tidying|cleanup|clean up|reorder|formatting|duplicates?|favou?rites?|unfavou?rite|star|unstar)\b/.test(query)
|
|
33
|
+
|| (/\bcolumns?\b/.test(query) && /\b(hide|hidden|rename|renaming|label|key)\b/.test(query)));
|
|
34
|
+
}
|
|
35
|
+
export function isPlainTableIntent(query) {
|
|
36
|
+
if (isTableCapacityReadIntent(query))
|
|
37
|
+
return false;
|
|
38
|
+
return isTableMaintenanceIntent(query) || (/\btable\b/.test(query)
|
|
39
|
+
&& /\b(create|manual|sample|private)\b/.test(query)
|
|
40
|
+
&& !/\b(enrich\w*|classif\w*|research|prompt|sourc\w*|import|linkedin|function|callable)\b/.test(query));
|
|
41
|
+
}
|
|
42
|
+
export function isFunctionIntent(query) {
|
|
43
|
+
return /\b(functions?|callables?)\b/.test(query) && !/\bformula functions?\b/.test(query);
|
|
44
|
+
}
|
|
45
|
+
export function isLinkedInProfileWatcherIntent(query) {
|
|
46
|
+
return /\blinkedin\b/.test(query)
|
|
47
|
+
&& /\bprofiles?\b/.test(query)
|
|
48
|
+
&& /\b(watcher|watch|watching|monitor|monitoring|daily|every day|recurring)\b/.test(query)
|
|
49
|
+
&& (/\b(engagers?|engaging|engagement|reactions?|comments?|posts?)\b/.test(query) || /\bprofile watcher\b/.test(query))
|
|
50
|
+
&& !isNetNewLinkedInInitiation(query);
|
|
51
|
+
}
|
|
52
|
+
export const COMPANY_PAGE_FOLLOWERS_COMMAND = "oxygen tables followers check --company <linkedin company page URL> --records <n> --json";
|
|
53
|
+
/**
|
|
54
|
+
* "The people who follow HubSpot on LinkedIn" / "a competitor's followers" is a
|
|
55
|
+
* vendor order of a company page's audience (`tables followers`), not the
|
|
56
|
+
* workspace's own network and not a signal. The Signals card claims the bare
|
|
57
|
+
* word "follower", so without this a blind user (2026-09-24) got only
|
|
58
|
+
* `signals *` from `commands search "company followers"` and priced the order
|
|
59
|
+
* through raw `tools run` instead. The own-network ask stays with its owner.
|
|
60
|
+
*/
|
|
61
|
+
export function isCompanyPageFollowersIntent(query) {
|
|
62
|
+
const followers = /\bfollowers?\b/.test(query) || /\b(who|that) follows?\b/.test(query);
|
|
63
|
+
if (!followers || isOwnLinkedInNetworkIntent(query))
|
|
64
|
+
return false;
|
|
65
|
+
if (/\bfollows? (me|us)\b/.test(query) || /\b(my|our) (own )?(linkedin )?followers\b/.test(query))
|
|
66
|
+
return false;
|
|
67
|
+
return /\b(compan(y|ies)|competitors?|pages?|brands?|organi[sz]ations?)\b/.test(query)
|
|
68
|
+
|| (/\blinkedin\b/.test(query) && /\bfollows? (?!me\b|us\b)[a-z0-9]/.test(query));
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* "How many tables do I have?", "list my tables": the workspace's own table
|
|
72
|
+
* inventory, which `tables list` answers with its `total`. Live on dev
|
|
73
|
+
* (2026-10-10), "How many tables are in this workspace?" routed to
|
|
74
|
+
* workspace-access on its "workspace" term, and the Tables card led with
|
|
75
|
+
* creation and enrichment, so a Copilot turn searched three times before it
|
|
76
|
+
* found the list.
|
|
77
|
+
*/
|
|
78
|
+
export function isTableInventoryIntent(query) {
|
|
79
|
+
if (!/\btables\b/.test(query))
|
|
80
|
+
return false;
|
|
81
|
+
if (/\b(create|add|new|build|make|import\w*|enrich\w*|delete|remove|rename|archive|duplicate|copy|link|join|merge|rows?|columns?|cells?|largest|biggest|sizes?|favou?rites?|starred|webhooks?|feeds?|functions?|callables?|views?|crm|records?|agents?|workflows?|sequences?|limits?|plan|allow\w*|quota|capacity|teammates?)\b/.test(query))
|
|
82
|
+
return false;
|
|
83
|
+
return /\b(how many|count|number of|list|show|which|what)\b/.test(query);
|
|
84
|
+
}
|
|
85
|
+
export function isTableCapacityReadIntent(query) {
|
|
86
|
+
if (/\b(monitor|watch|workflow|automate|automation|increase|resize|upgrade)\b/.test(query))
|
|
87
|
+
return false;
|
|
88
|
+
return /\b(largest|biggest) tables?\b/.test(query)
|
|
89
|
+
|| /\btables?\b.{0,30}\b(sizes?|row counts?)\b/.test(query)
|
|
90
|
+
|| /\b(sizes?|row counts?)\b.{0,30}\btables?\b/.test(query);
|
|
91
|
+
}
|
|
92
|
+
/** Scoped row deletion keeps creation and enrichment out of its discovery path. */
|
|
93
|
+
export function tableRowRemovalRecommendation(query) {
|
|
94
|
+
if (!/\brows?\b/.test(query) || !/\b(delete|remove)\b/.test(query)
|
|
95
|
+
|| /\b(workflows?|agents?|campaigns?|sequences?|columns?|functions?|callables?|crm|records?|views?|dedup\w*|duplicates?)\b/.test(query)
|
|
96
|
+
|| isSecondPartyDecisionIntent(query))
|
|
97
|
+
return null;
|
|
98
|
+
return {
|
|
99
|
+
tools: ["oxygen_table_rows_remove_selection", "oxygen_tables_query", "oxygen_table_rows_page"],
|
|
100
|
+
commands: ["tables rows remove-selection", "tables query", "tables rows page"],
|
|
101
|
+
execution: "Delete Table rows with tables rows remove-selection (oxygen_table_rows_remove_selection): the rows a readable filter tree matches (--filter-tree-json / filter_tree, the same tree tables query takes), exact row_ids, or an all_matching selection with search, sort, range and exclusions. Hydrate its schema first. Unreadable filter nodes and filters arrays are refused; unqualified all_matching deletes every row. This is permanent and costs 0 credits; to keep a restorable copy first, tables duplicate (oxygen_tables_duplicate, 0 credits). Read the matching rows before deletion and the survivors afterward; each removed row's values stay readable with rows history (oxygen_rows_history). Deleting rows does not stop campaign enrollment.",
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Literal row values go in with the row-insert tool. Without this card "add rows"
|
|
106
|
+
* ranked create, enrichment and the external Records import first (sweep 3).
|
|
107
|
+
*/
|
|
108
|
+
export function tableRowInsertRecommendation(query) {
|
|
109
|
+
if (!/\brows?\b/.test(query) || !/\b(add|adding|insert\w*|append\w*|put|enter|write)\b/.test(query)
|
|
110
|
+
|| /\b(delete|remove|update|edit|change|set|mark|existing|import\w*|csv|crm|records?|enrich\w*|sync\w*|workflows?|agents?|campaigns?|sequences?|webhooks?|feeds?|functions?|callables?|cells?|dedup\w*|duplicates?)\b/.test(query)
|
|
111
|
+
|| /\b(?:add|insert|new)\s+(?:an?\s+|the\s+)?(?:\w+\s+)?columns?\b/.test(query)
|
|
112
|
+
|| isSecondPartyDecisionIntent(query))
|
|
113
|
+
return null;
|
|
114
|
+
return {
|
|
115
|
+
tools: ["oxygen_table_rows_insert", "oxygen_tables_create", "oxygen_tables_query"],
|
|
116
|
+
commands: ["tables rows insert", "tables create", "tables query"],
|
|
117
|
+
execution: "Add literal rows with tables rows insert (oxygen_table_rows_insert): table plus rows, an array of {column_key: value} objects. tables create (oxygen_tables_create) makes the columns but takes no rows, so insert after it. Manual rows are a free internal write. Read the rows back with tables query (oxygen_tables_query).",
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Changing values on rows that already exist is oxygen_rows_update. Without this
|
|
122
|
+
* card "update rows" / "set a cell" ranked create and enrichment tools, and an
|
|
123
|
+
* Oxygent concluded no row update existed and offered a formula column instead of
|
|
124
|
+
* the weekly Workflow it was asked for (System 1 routing case, 2026-10-22).
|
|
125
|
+
*/
|
|
126
|
+
export function tableRowUpdateRecommendation(query) {
|
|
127
|
+
if (!/\b(rows?|cells?)\b/.test(query)
|
|
128
|
+
|| !(/\b(update\w*|edit\w*|chang\w*|sets?|setting|overwrit\w*|mark\w*)\b/.test(query) || /\bexisting (?:table )?rows?\b/.test(query))
|
|
129
|
+
|| /\b(delete|remove|insert\w*|append\w*|import\w*|csv|crm|records?|enrich\w*|sync\w*|campaigns?|sequences?|functions?|callables?|dedup\w*|duplicates?|history|provenance|rerun|re-run|retry|columns? run|run columns?|formulas?)\b/.test(query)
|
|
130
|
+
|| /\b(?:add|insert|new|create)\s+(?:an?\s+|the\s+)?(?:\w+\s+)?(?:columns?|rows?)\b/.test(query)
|
|
131
|
+
|| isSecondPartyDecisionIntent(query))
|
|
132
|
+
return null;
|
|
133
|
+
return {
|
|
134
|
+
tools: ["oxygen_rows_update", "oxygen_tables_query", "oxygen_rows_upsert"],
|
|
135
|
+
commands: ["tables update", "tables query", "tables upsert"],
|
|
136
|
+
execution: "Change values on existing rows with tables update (oxygen_rows_update): table, row_id and values as {column_key: value}, one row per call, a free internal write. Find the rows and their _row_id with tables query (oxygen_tables_query) and filters first; tables upsert (oxygen_rows_upsert) writes by a key column instead. In a Workflow, loop over the query's rows and call oxygen_rows_update with row_id loop.each.item._row_id. Read the rows back after writing.",
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
/** Reads of grid values/state are separate from executing or resolving actions. */
|
|
140
|
+
export function tableReadRecommendation(query) {
|
|
141
|
+
if (isFunctionIntent(query) || isSecondPartyDecisionIntent(query)
|
|
142
|
+
|| /\b(workflows?|agents?|actions?|items?|retry|resolve|effects?|imports?|webhooks?|feeds?|enrich\w*|create|add|insert|upsert|update|delete|remove|rename|hide|archive|columns? run)\b/.test(query)
|
|
143
|
+
|| /\b(run|execute|start|cancel)\s+(?:(?:the|my|these)\s+)?(?:columns?|table|enrichment)\b/.test(query))
|
|
144
|
+
return null;
|
|
145
|
+
// An explicit order over existing labels reads rows; it does not classify
|
|
146
|
+
// them or create a rank column. The column-only wording also names Tables.
|
|
147
|
+
if (/\b(tables?|rows?|columns?)\b/.test(query)
|
|
148
|
+
&& /\b(sort(?:s|ed|ing)?|order(?:s|ed|ing)?|rank(?:s|ed|ing)?)\b/.test(query)
|
|
149
|
+
&& /\b(custom|explicit)\b/.test(query)
|
|
150
|
+
&& /\b(labels?|values?|priority|select|options?)\b/.test(query)
|
|
151
|
+
&& !/\b(classif\w*|categori[sz]\w*|tag(?:ging)?|assign|set|change|edit|reorder\w*|mov(?:e|es|ed|ing)|sav(?:e|es|ed|ing)|configur(?:e|es|ed|ing)|calculat(?:e|es|ed|ing)|scor(?:e|es|ed|ing)|enroll\w*|send\w*|sequences?|campaigns?)\b/.test(query)
|
|
152
|
+
&& !/\b(do not|don't|avoid|without)\s+(sort|order|rank)\w*\b/.test(query))
|
|
153
|
+
return {
|
|
154
|
+
tools: ["oxygen_tables_query", "oxygen_tables_describe"], commands: ["tables query", "tables describe"],
|
|
155
|
+
execution: "Raw tables query supports sorts[].valueOrder (alias value_order) for an explicit label order. Inspect the Table's column keys and query schema first. Values are trimmed/lowercased and deduplicated; asc puts listed values first and unlisted/null last, desc reverses. Equal ranks follow later sorts; implicit creation-time and final row-ID tiebreaks mirror the leading direction. An empty list uses ordinary sorting. Keep the same sorts when following its cursor. format=grid rejects sorts; rows-page and saved-view sort formats have separate schemas. This read does not classify rows or run columns.",
|
|
156
|
+
};
|
|
157
|
+
if (!/\btables?\b/.test(query))
|
|
158
|
+
return null;
|
|
159
|
+
if (/\bcells?\b/.test(query) && /\b(history|changes?|provenance)\b/.test(query))
|
|
160
|
+
return {
|
|
161
|
+
tools: ["oxygen_tables_cell_history", "oxygen_tables_cell_inspect"], commands: ["cells history", "cells inspect"],
|
|
162
|
+
execution: "Read one cell's recorded value changes with cells history; cells inspect adds its provider attempt timeline. These reads do not run columns or resolve an uncertain external effect.",
|
|
163
|
+
};
|
|
164
|
+
if (/\bcells?\b/.test(query) && /\b(provider|attempts?|timeline)\b/.test(query))
|
|
165
|
+
return {
|
|
166
|
+
tools: ["oxygen_tables_cell_inspect", "oxygen_tables_cell_history"], commands: ["cells inspect", "cells history"],
|
|
167
|
+
execution: "Inspect one cell's final value and provider attempt timeline with cells inspect. Cell history reads recorded changes; neither executes a column or records a verified external outcome.",
|
|
168
|
+
};
|
|
169
|
+
if (isTableCapacityReadIntent(query) && !/\bgrid\b/.test(query))
|
|
170
|
+
return null;
|
|
171
|
+
if (!/\b(grid|preview|raw rows|fill rates?|next page|pagination|cursor)\b/.test(query)
|
|
172
|
+
&& !(/\b(read|show|inspect|query)\b/.test(query) && /\brows?\b/.test(query)))
|
|
173
|
+
return null;
|
|
174
|
+
if (/\b(filtered?|filters?|sorts?|search|crm)\b/.test(query) && /\b(grid|counts?|registry)\b/.test(query))
|
|
175
|
+
return {
|
|
176
|
+
tools: ["oxygen_table_rows_page", "oxygen_tables_query", "oxygen_tables_preview"], commands: ["tables rows page", "tables query", "tables preview"],
|
|
177
|
+
execution: "Use tables rows page for filtered/sorted/searchable grid cells and summarized run state, with CRM scope and count modes. exact counts matches; estimate uses reconciled registry only when unnarrowed, else exact. registry never counts and returns null for narrowed/unreconciled scope; skip returns no total (null). Cursor walks retain the same read scope; offset supports random access. Raw tables query supports its declared selectors; query format=grid refuses them.",
|
|
178
|
+
};
|
|
179
|
+
if (/\b(fill rates?|without row|summary only|summary_only)\b/.test(query)
|
|
180
|
+
|| (/\bpreview\b/.test(query) && !/\bgrid\b/.test(query)))
|
|
181
|
+
return {
|
|
182
|
+
tools: ["oxygen_tables_preview", "oxygen_tables_query", "oxygen_table_fill_progress"], commands: ["tables preview", "tables query", "tables fill-progress"],
|
|
183
|
+
execution: "Use tables preview for projected rows and whole-table fill stats; include_cell_states adds compact state and summary_only omits row JSON. rowCount is exact; summary.statsSampled labels sampled rates. Its cursor pages the MCP widget with a minimal plain receipt, not preview row/stat JSON. For data paging use tables query format=grid or tables rows page; fill-progress reads ingestion state. These reads do not run columns.",
|
|
184
|
+
};
|
|
185
|
+
return {
|
|
186
|
+
tools: ["oxygen_tables_query", "oxygen_tables_preview", "oxygen_table_rows_page", "oxygen_table_fill_progress"], commands: ["tables query", "tables preview", "tables rows page", "tables fill-progress"],
|
|
187
|
+
execution: "Use tables query for raw values, format=\"grid\" for cell previews and summarized run state, or tables preview for fill rates. Grid HTTP/CLI defaults 50 and caps 200; MCP defaults 50 and clamps supplied limits to 100. Follow grid.nextCursor with the same read scope; hasMore=false and nextCursor=null end the walk, without a snapshot. Grid refuses row_id, fields, filters/filterTree, search, sorts, formula_values and nonzero offset; system/widget flags do not change it. Without stats, first-page rowCountMode is registry if reconciled, else exact; cursor pages are skipped (rowCount=null). include_stats can replace rowCount with an exact whole-table count even on continuation; column rates may be sampled and unavailable stats are omitted. include_fill adds ingestion state only to an empty first page, distinct from fill rates. The native max_chars window can shorten a whole-row prefix or refuse an oversized first row/metadata. These reads do not run columns.",
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
/** Direct Table operations keep their native gateway ahead of general authoring.
|
|
191
|
+
* Explicit Workflow triggers, mailbox imports and CRM attachments retain their owners. */
|
|
192
|
+
export function tableMaintenanceRecommendation(query) {
|
|
193
|
+
if (isFunctionIntent(query) || isSecondPartyDecisionIntent(query)
|
|
194
|
+
|| /\b(workflows?|agents?|campaigns?|tags?|mailbox\w*|crm|attachments?|chatgpt|connected apps?)\b/.test(query)
|
|
195
|
+
|| (isTableMaintenanceIntent(query) && /\b(skills?|instructions?|guidance)\b/.test(query)))
|
|
196
|
+
return null;
|
|
197
|
+
const table = /\btables?\b/.test(query);
|
|
198
|
+
const result = (tools, commands, execution) => ({ tools, commands, execution });
|
|
199
|
+
if (/\b(favou?rites?|starred|star|unstar)\b/.test(query) && /\b(tables?|folders?)\b/.test(query)) {
|
|
200
|
+
const mutate = !/\bstar unstar\b/.test(query) && (/\b(unstar|unfavou?rite)\b/.test(query) || (/\b(favou?rite|star)\b/.test(query) && !/\b(show|list|read|see|favorites|favourites|star unstar)\b/.test(query)));
|
|
201
|
+
return result(mutate ? ["oxygen_tables_favorite", "oxygen_tables_favorites"] : ["oxygen_tables_favorites", "oxygen_tables_favorite"], mutate ? ["tables favorite", "tables favorites"] : ["tables favorites", "tables favorite"], "Read your member-specific Table/folder stars, then change exactly one table or folder with favorite=true or false. This costs 0 credits. Tool-catalog favorites are separate.");
|
|
202
|
+
}
|
|
203
|
+
if (table && /\b(webhooks?|inbound.*endpoint|push.*endpoint|endpoint.*(?:inbound|push))\b/.test(query)) {
|
|
204
|
+
if (/\bdeliver\w*\b/.test(query))
|
|
205
|
+
return result(["oxygen_table_webhook_deliveries", "oxygen_table_webhook_get"], ["tables webhook deliveries", "tables webhook get"], "Inspect this Table endpoint and its delivery ledger. A direct Table webhook lands rows; a Workflow webhook starts a published graph.");
|
|
206
|
+
if (/\b(change|edit|update|rotat\w*|pause|disable|clear)\b/.test(query) && !/\bcreate\b/.test(query))
|
|
207
|
+
return result(["oxygen_table_webhook_update", "oxygen_table_webhook_get"], ["tables webhook update", "tables webhook get"], "Inspect the endpoint, then update it by endpoint_id. auth_mode=secret rotates the secret and returns it once. auto_run is standing permission; delivery ceilings are explicit or plan-default. Preserve required authorization.");
|
|
208
|
+
if (/\b(create|add|new|inbound)\b/.test(query) && !/\b(inspect|show|list|read)\b/.test(query))
|
|
209
|
+
return result(["oxygen_table_webhook_create", "oxygen_table_webhooks_list"], ["tables webhook create", "tables webhook list"], "Create a direct inbound Table endpoint to insert or upsert rows. Inspect configured columns before setting auto_run: it is standing permission, with explicit or plan-default delivery ceilings. Workflows own graph triggers.");
|
|
210
|
+
return result(["oxygen_table_webhooks_list", "oxygen_table_webhook_get", "oxygen_table_webhook_deliveries"], ["tables webhook list", "tables webhook get", "tables webhook deliveries"], "Inspect direct Table endpoints and their deliveries. Use oxygen_table_webhook_create/update for changes; auth_mode=secret rotates protection. Workflows own graph triggers.");
|
|
211
|
+
}
|
|
212
|
+
if (table && /\bfeeds?\b/.test(query)) {
|
|
213
|
+
return /\b(bind|attach|create|new)\b/.test(query)
|
|
214
|
+
? result(["oxygen_feeds_bind", "oxygen_feeds_list"], ["feeds bind", "feeds list"], "Bind the native Table feed: a declared-schema push source or scheduled provider pull. Inspect source, cadence and standing credit scope first; a pull feed is not an inbound webhook endpoint.")
|
|
215
|
+
: result(["oxygen_feeds_list", "oxygen_feeds_get", "oxygen_feeds_update"], ["feeds list", "feeds get", "feeds update"], "Inspect the Table feed with feeds_get(include_route=true), then update it in place via oxygen_feeds_update (Signals pack/core write gateway) or feeds update. Preserve the full frozen request; source replacement resets its cursor. Scheduled replacements require one executable lane; fallbacks require no cadence. Native changed cadence or expanded paid source/cap authority can require renewed standing approval; configuration is free.");
|
|
216
|
+
}
|
|
217
|
+
const file = /\b(csv|jsonl?|xlsx|excel|spreadsheet|staged|uploaded|file)\b/.test(query)
|
|
218
|
+
|| /\b(?:pending|stuck|abandoned) imports?\b|\bimports?\b.{0,30}\b(pending|stuck|recover\w*)\b/.test(query);
|
|
219
|
+
if (file && /\b(import\w*|ingestion|upload\w*|preview|columns|sample|chunks)\b/.test(query)) {
|
|
220
|
+
if (/\b(pending|leased|failed|recover|chunks)\b/.test(query))
|
|
221
|
+
return result(/\b(chunks|items)\b/.test(query) ? ["oxygen_table_ingestions_items", "oxygen_table_ingestions_get"] : ["oxygen_table_ingestions_get", "oxygen_table_ingestions_items"], ["table-ingestions get", "table-ingestions items"], "Inspect the durable file ingestion and its chunks. Fix the cause before retry-failed; pending or leased chunks are not verified external outcomes. recover_pending polls existing BetterContact requests, not file imports.");
|
|
222
|
+
if (/\b(url|https?)\b/.test(query))
|
|
223
|
+
return result(["oxygen_tables_import_url"], ["tables import"], "Use the native public-file URL preview/import tool through the call gateway even for preview. Importing into an existing Table can fire its standing import auto-run; preview and new unarmed targets do not authorize later paid or external actions.");
|
|
224
|
+
if (/\b(preview|inspect|columns|sample|sheet)\b/.test(query))
|
|
225
|
+
return result(["oxygen_tables_import_preview", "oxygen_tables_import_staged"], ["tables import-preview", "tables import-staged"], "Inspect the owned staged file's worksheet, complete columns and sample before importing. Keep the selected sheet/mapping intact. Import into an existing Table can fire its standing import auto-run; preview grants no spend authority.");
|
|
226
|
+
if (/\b(prepare|upload)\b/.test(query))
|
|
227
|
+
return result(["oxygen_tables_import_upload", "oxygen_tables_import_preview", "oxygen_tables_import_staged"], ["tables import-upload", "tables import-preview", "tables import-staged"], "Prepare an organization-owned upload, transfer bytes to the returned presigned URL, then inspect and import that storage key. Preparing the upload creates no Table/run. Public URL imports use oxygen_tables_import_url.");
|
|
228
|
+
return result(["oxygen_tables_import_staged", "oxygen_tables_import_preview"], ["tables import-staged", "tables import-preview"], "Import the inspected owned staged file with its selected worksheet/mapping. Existing targets can fire standing import auto-run; a new target has no pre-existing armed columns. Preserve exact authorization and downstream credit/effect guards.");
|
|
229
|
+
}
|
|
230
|
+
if (table && /\b(actions?|cells?|items?|runs?)\b/.test(query)) {
|
|
231
|
+
if (/\b(verified|confirmed)\b/.test(query) && /\b(record|resolve)\b/.test(query) && !/\b(inspect|list|show|read)\b/.test(query))
|
|
232
|
+
return /\bcells?\b/.test(query)
|
|
233
|
+
? result(["oxygen_table_cells_resolve", "oxygen_table_runs_effect_unknown"], ["cells resolve", "table-runs effect-unknown"], "After verifying the external destination, record applied or not_applied by Table cell coordinates. This records an outcome without repeating the effect; retry remains a separate guarded action.")
|
|
234
|
+
: result(["oxygen_table_action_item_resolve", "oxygen_table_runs_effect_unknown"], ["table-actions resolve", "table-runs effect-unknown"], "After verifying the external destination, record applied or not_applied by action item_id. This records an outcome without repeating the effect; retry remains a separate guarded action.");
|
|
235
|
+
if (/\b(effect.*unknown|uncertain|verified outcome|blocked.*resolve)\b/.test(query))
|
|
236
|
+
return result(["oxygen_table_runs_effect_unknown", "oxygen_table_runs_get", "oxygen_table_runs_items"], ["table-runs effect-unknown", "table-runs get", "table-runs items"], "Inspect exact effect-unknown items and verify the external destination. Only then record a verdict with oxygen_table_action_item_resolve by item_id or oxygen_table_cells_resolve by coordinates. Pending/failed items are not proof; retry is separate.");
|
|
237
|
+
// Everything that ran on one Table (imports, column runs, writes) is the workspace run
|
|
238
|
+
// ledger filtered by table; table-runs covers action runs only (blind CLI/MCP passes, 2026-10-05).
|
|
239
|
+
if (/\b(every|all|already|ever|history|imports?|ingestions?|touched|anything|everything)\b/.test(query) && !/\b(failures?|failed|items?|cells?|effect)\b/.test(query))
|
|
240
|
+
return result(["oxygen_runs_list", "oxygen_table_action_runs_list"], ["runs list", "table-runs list"], "List every recorded run of one Table, newest first, with `runs list --table <table>` (MCP oxygen_runs_list with table): imports, column runs and other writes. table-runs list covers column/action runs only.");
|
|
241
|
+
return result(["oxygen_table_action_runs_list", "oxygen_table_runs_get", "oxygen_table_runs_items"], ["table-runs list", "table-runs get", "table-runs items"], "Find the Table's durable action run, then inspect its status and items. Pending, leased and failed are distinct from effect-unknown; do not record a verified verdict or retry an external effect without evidence.");
|
|
242
|
+
}
|
|
243
|
+
return null;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Column structure the web's column editor and "Link to another table" own:
|
|
247
|
+
* linking two tables, plain and choice field types with their options, and a
|
|
248
|
+
* lookup or bind column's configuration. All of it was reachable from the CLI
|
|
249
|
+
* and MCP, but generic table discovery ranked `tables create` first (2026-10-10:
|
|
250
|
+
* "link two tables" put `tables relate` tenth, and the Copilot, asked for a
|
|
251
|
+
* select column, decided the API had none). Sort, rank and order wording stays
|
|
252
|
+
* with the value-order read above.
|
|
253
|
+
*/
|
|
254
|
+
export function tableStructureRecommendation(query) {
|
|
255
|
+
if (isFunctionIntent(query) || isSecondPartyDecisionIntent(query)
|
|
256
|
+
|| /\b(workflows?|agents?|campaigns?|sequences?|crm|views?|kanban|sort\w*|order\w*|rank\w*|runs?|credits?)\b/.test(query))
|
|
257
|
+
return null;
|
|
258
|
+
const edits = /\b(change|edit|update|rename|recolou?r|replace|remove|delete|existing)\b/.test(query);
|
|
259
|
+
const pair = (add, update) => {
|
|
260
|
+
const [first, second] = edits ? [update, add] : [add, update];
|
|
261
|
+
return { tools: [first[0], second[0]], commands: [first[1], second[1]] };
|
|
262
|
+
};
|
|
263
|
+
if (/\b(link\w*|connect\w*|relat\w*|join\w*)\b/.test(query)
|
|
264
|
+
&& /\btables\b|\btable\b.{0,40}\btable\b|\blinked.records?\b|\blinked.record.columns?\b/.test(query))
|
|
265
|
+
return {
|
|
266
|
+
tools: ["oxygen_tables_relate", "oxygen_tables_link", "oxygen_tables_link_bulk", "oxygen_tables_relations"],
|
|
267
|
+
commands: ["tables relate", "tables link", "tables relations list"],
|
|
268
|
+
execution: "Link two Tables like the web's Link to another table: tables relate <table> --to <other> (oxygen_tables_relate) creates an empty linked-record column on BOTH tables; no matching values are needed and plain tables never become CRM objects. Then link rows one pair at a time with tables link <table> <row_id> --relation <slug> --target-row-id <id> (oxygen_tables_link), or by matching values with tables link <table> --to <other> (oxygen_tables_link_bulk: free preview, then approved). tables relations list|update|archive manages it. 0 credits.",
|
|
269
|
+
};
|
|
270
|
+
if (/\b(lookups?|look up|vlookup)\b/.test(query) && /\b(columns?|tables?)\b/.test(query))
|
|
271
|
+
return {
|
|
272
|
+
...pair(["oxygen_columns_add", "columns add"], ["oxygen_columns_update", "columns update"]),
|
|
273
|
+
execution: "A lookup column reads another Table by a key: columns add <table> --lookup-table <source> --lookup-match <local>=<source_column> with --lookup-mode first-match|count|exists|aggregate, --lookup-return, --lookup-normalize, --lookup-order or --lookup-aggregate (MCP oxygen_columns_add kind lookup). Edit one with the same flags on columns update; they apply over the stored join, and the data type follows the mode. Free; reads resolve live. To link rows instead, tables relate.",
|
|
274
|
+
};
|
|
275
|
+
if (/\b(bind|binding)\b/.test(query) && /\bcolumns?\b/.test(query))
|
|
276
|
+
return {
|
|
277
|
+
...pair(["oxygen_columns_add", "columns add"], ["oxygen_columns_update", "columns update"]),
|
|
278
|
+
execution: "A bind column resolves each row to a CRM record: columns add <table> --bind-object companies --bind-map domain=<column> (MCP kind bind, definition.object and inputMapping). columns update --bind-object/--bind-map/--bind-create edits it over the stored binding. Creating records on no match is a truth write that needs an approved run.",
|
|
279
|
+
};
|
|
280
|
+
if (/\b(columns?|fields?)\b/.test(query)
|
|
281
|
+
&& /\b(select|single.select|multi.?select|dropdown|picklist|status|choices?|options?|checkbox|date|number|markdown)\b/.test(query))
|
|
282
|
+
return {
|
|
283
|
+
...pair(["oxygen_columns_add", "columns add"], ["oxygen_columns_update", "columns update"]),
|
|
284
|
+
execution: "Add a plain field by its type, the web picker's names: columns add <table> --label <label> --type select|multi_select|status|text|number|checkbox|date|json|markdown|image, with --options \"A,B,C\" for a choice type (MCP oxygen_columns_add column.type, choices in definition.options). Replace a choice column's options with columns update --options (MCP options); cells store each value, so a rename is a new label on the same value. Setting a cell is a row write. 0 credits.",
|
|
285
|
+
};
|
|
286
|
+
return null;
|
|
287
|
+
}
|
|
288
|
+
/** Native row-supply feeds belong to Tables; Signals is their registered MCP pack. */
|
|
289
|
+
export function tableFeedRecommendation(rawQuery) {
|
|
290
|
+
// A pasted URL (e.g. linkedin.com/feed/update/...) names a resource, not a Table feed.
|
|
291
|
+
const query = rawQuery.replace(/\bhttps?:\/\/\S+/g, " ");
|
|
292
|
+
if (/\b(workflows?|agents?|rss|knowledge|mailbox\w*|crm|attachments?|webhooks?|inbound endpoints?|sequences?|publishing)\b/.test(query))
|
|
293
|
+
return null;
|
|
294
|
+
const explicit = /\bfeeds?\b/.test(query) && /\b(tables?|pull|cadence|refresh|saved search|source|filters?|credit|credits|caps?|update|bind)\b/.test(query);
|
|
295
|
+
const saved = /\btables?\b/.test(query) && /\bsaved search\b/.test(query) && /\b(refill\w*|refresh\w*|scheduled|cadence)\b/.test(query);
|
|
296
|
+
if (!explicit && !saved)
|
|
297
|
+
return null;
|
|
298
|
+
if (/\b(bind|attach|create|new)\b/.test(query))
|
|
299
|
+
return { tools: ["oxygen_feeds_bind", "oxygen_feeds_list"], commands: ["feeds bind", "feeds list"], execution: "Bind the native Table row-supply feed. Inspect source, cadence and standing credit scope first; pull feeds are distinct from inbound webhook endpoints. Feed tools are executable through the core gateways or Signals pack." };
|
|
300
|
+
return { tools: ["oxygen_feeds_list", "oxygen_feeds_get", "oxygen_feeds_update"], commands: ["feeds list", "feeds get", "feeds update"], execution: "Inspect the existing Table feed with feeds_get(include_route=true), then update it in place with oxygen_feeds_update (Signals pack or core write gateway). Preserve the complete frozen request; source replacement resets the cursor. Scheduled replacements require one executable lane; fallbacks require no cadence. Changed cadence, increased paid cap or replaced paid source can require renewed standing authorization. Configuration is free; future refreshes retain their approved cycle ceiling." };
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Records into a working Table (OXP-1.1.10): "turn my CRM view into a table
|
|
304
|
+
* that stays current". External CRM imports keep their own lanes, and a Table
|
|
305
|
+
* going INTO Records is promote, the other direction.
|
|
306
|
+
*/
|
|
307
|
+
export function recordsTableImportRecommendation(query) {
|
|
308
|
+
if (!/\b(crm|records?)\b/.test(query)
|
|
309
|
+
|| !/\b(tables?|working copy|spreadsheet)\b/.test(query)
|
|
310
|
+
|| !/\b(import\w*|cop(?:y|ies)|turn\w*|pull\w*|bring|sync\w*|mirror\w*|into)\b/.test(query)
|
|
311
|
+
|| /\b(hubspot|attio|pipedrive|salesforce|csv|promot\w*|bind)\b/.test(query)
|
|
312
|
+
|| /\b(tables?|rows?)\b.{0,40}\b(?:into|to)\s+(?:the\s+|my\s+|our\s+)?(?:crm|records)\b/.test(query))
|
|
313
|
+
return null;
|
|
314
|
+
return {
|
|
315
|
+
tools: ["oxygen_tables_records_import", "oxygen_tables_records_sync", "oxygen_tables_records_status"],
|
|
316
|
+
commands: ["tables records import", "tables records sync", "tables records status"],
|
|
317
|
+
execution: "Copy a Records object or saved view into a new Table with oxygen_tables_records_import (dry_run first counts records and lists columns); refresh=sync with approved=true keeps it current on a schedule. One-way: the copy is free and Records never change, rows key on record_id, cells edited in the Table are kept, and records that leave the view stay as rows with in_records=false. Sync now or change the schedule with oxygen_tables_records_sync; read the last sync with oxygen_tables_records_status. Each scheduled sync bills one workflow step.",
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
// An email-VERIFICATION ask names a grading verb next to the addresses, or the
|
|
321
|
+
// addresses next to a grade. "check my emails" is deliberately not matched
|
|
322
|
+
// (that is an inbox), and bare "deliverability" is left to the sending rail —
|
|
323
|
+
// only "are these emails deliverable" counts. Bare "bounce" describes an
|
|
324
|
+
// observed delivery failure too; require predictive wording or "bounce risk".
|
|
325
|
+
export function isEmailVerificationIntent(query) {
|
|
326
|
+
const gradeThenAddress = /\b(verif(?:y|ied|ication)|validat(?:e|ed|ion)|grade|scrub|clean)\b.{0,40}\b(e ?mails?|email addresses|addresses)\b/;
|
|
327
|
+
const addressThenGrade = /\b(e ?mails?|addresses)\b.{0,40}\b(verif(?:y|ied|ication)|validat(?:e|ed|ion)|valid|invalid|deliverable|(?:will|would|might) bounce|bounce risk|risky|safe to (?:send|email)|catch ?all|accept ?all)\b/;
|
|
328
|
+
return gradeThenAddress.test(query) || addressThenGrade.test(query);
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* The free list of classification columns. Production answers it with its one
|
|
332
|
+
* classification template (B2B or B2C); a deployment that runs the native
|
|
333
|
+
* Classify column lists that entry here too. Any other scheme is an AI prompt
|
|
334
|
+
* column through `columns add`, which the route recommends next.
|
|
335
|
+
*/
|
|
336
|
+
export const ROW_CLASSIFICATION_COMMAND = "oxygen columns catalog --family classification";
|
|
337
|
+
export const ROW_FAN_OUT_COMMAND = "oxygen tables send <source> <target> --flatten <column> --flatten-path <path> --mapping '[{\"target\":\"<column>\",\"source\":{\"type\":\"column\",\"key\":\"$element\"},\"path\":\"<field>\"}]' --dry-run";
|
|
338
|
+
// "flatten the search results into one row per company", "explode this JSON array
|
|
339
|
+
// into rows". Both MCP acceptance agents for OXP-1.39.2 (S26) reported no native way
|
|
340
|
+
// to turn a search tool column's result array into rows, and two capability searches
|
|
341
|
+
// never surfaced `tables send`, which does exactly that with --flatten.
|
|
342
|
+
export function isRowFanOutIntent(query) {
|
|
343
|
+
return /\b(flatten|explode|unnest|fan[ -]?out)\b.{0,60}\b(rows?|arrays?|lists?|json|results?|cells?)\b/.test(query)
|
|
344
|
+
|| /\b(arrays?|lists?|results?)\b.{0,40}\binto\b.{0,20}\bone row (?:per|for each)\b/.test(query)
|
|
345
|
+
|| /\b(json array|array cell|list cell)\b.{0,40}\brows?\b/.test(query);
|
|
346
|
+
}
|
|
347
|
+
/** Nouns another primitive owns: a classify ask that names one keeps that owner. */
|
|
348
|
+
export const ROW_CLASSIFICATION_OTHER_OWNER = /\b(inbox|repl(?:y|ies)|conversations?|threads?|messages?|dms?|e-?mails?|bounces?|signals?|visitors?|workflows?|deals?|crm|records?|icp|knowledge|wiki|pages?|ads|dashboards?|metrics?|agents?|runs)\b/;
|
|
349
|
+
/** What one table row is: the noun a per-row classification is about. */
|
|
350
|
+
export const ROW_CLASSIFICATION_ROW_NOUN = /\b(rows?|columns?|tables?|compan(?:y|ies)|accounts?|leads?|contacts?|domains?|people|persons?)\b/;
|
|
351
|
+
/**
|
|
352
|
+
* Put every row of a table into one of a few buckets: classify or categorize
|
|
353
|
+
* rows, companies, accounts, leads, contacts, domains or people (or anything
|
|
354
|
+
* "with confidence"), "label every row as …", or a yes/no question asked per
|
|
355
|
+
* row. The verb alone is not enough: "classify my records", "categorize my
|
|
356
|
+
* workflows" or "classify leads into ICP tiers" name the primitive that owns
|
|
357
|
+
* them, and conversation triage ("classify my inbox replies") keeps Messages.
|
|
358
|
+
* A bare "tag these contacts" stays with Tags.
|
|
359
|
+
*/
|
|
360
|
+
export function isRowClassificationIntent(query) {
|
|
361
|
+
if (ROW_CLASSIFICATION_OTHER_OWNER.test(query))
|
|
362
|
+
return false;
|
|
363
|
+
const classifyVerb = /\b(classif(?:y|ies|ied|ying|ication)|categori[sz](?:e|es|ed|ing|ation))\b/.test(query);
|
|
364
|
+
return (classifyVerb && (ROW_CLASSIFICATION_ROW_NOUN.test(query) || /\bconfidence\b/.test(query)))
|
|
365
|
+
|| /\blabel(?:s|led|ed|ling|ing)?\b.{0,40}\b(?:each|every|all|per)\s+(?:rows?|compan(?:y|ies)|accounts?|leads?|contacts?|domains?)\b/.test(query)
|
|
366
|
+
|| /\blabel(?:s|led|ed|ling|ing)?\b.{0,80}\bconfidence\b/.test(query)
|
|
367
|
+
|| /\byes(?: or |\/)no\b.{0,60}\b(?:each|every|per)\s+(?:rows?|compan(?:y|ies)|accounts?|leads?|contacts?)\b/.test(query)
|
|
368
|
+
|| /\b(?:each|every|per)\s+(?:rows?|compan(?:y|ies)|accounts?|leads?|contacts?)\b.{0,60}\byes(?: or |\/)no\b/.test(query);
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* A company fact the template catalog answers by key — founders, parent company,
|
|
372
|
+
* subsidiaries, cloud provider, NAICS, demos — and the "ready-made / template
|
|
373
|
+
* catalog / research question" phrasing itself. Kept to nouns no other card
|
|
374
|
+
* owns: "funding" alone belongs to Signals and "industry" alone to company
|
|
375
|
+
* search, so both stay off this list.
|
|
376
|
+
*/
|
|
377
|
+
export function isCompanyResearchQuestionIntent(query) {
|
|
378
|
+
return /\b(founders?|founded by|parent compan(?:y|ies)|subsidiar(?:y|ies)|cloud provider|naics|column templates?|template catalog|ready[- ]made|research question|company research|offers? demos?|gives? demos?)\b/.test(query);
|
|
379
|
+
}
|
|
380
|
+
/** OXP-43.72: pricing qualifies the lookup or scrape, rather than changing its owner. */
|
|
381
|
+
export function linkedinUrlFindingRecommendation(query) {
|
|
382
|
+
if (!/\blinkedin\b/.test(query) || !/\b(urls?|links?)\b/.test(query)
|
|
383
|
+
|| !/\b(find|finding|lookup|look up|resolve|missing)\b/.test(query)
|
|
384
|
+
|| /\b(scrape\w*|posts?|comments?|engagers?|followers?|connect|inbox|send\w*|publish\w*)\b/.test(query)
|
|
385
|
+
|| /\bcompany pages?\b/.test(query))
|
|
386
|
+
return null;
|
|
387
|
+
return {
|
|
388
|
+
tools: ["oxygen_tools_search", "oxygen_columns_add", "oxygen_enrich_column_preview"],
|
|
389
|
+
commands: ["tools search", "columns add", "enrich-column preview"],
|
|
390
|
+
exactCommand: "oxygen tools search find_linkedin_url --json",
|
|
391
|
+
exactMcpCall: { tool: "oxygen_tools_search", arguments: { query: "find_linkedin_url" } },
|
|
392
|
+
execution: "Inspect the native LinkedIn URL waterfall and current pricing with tools search find_linkedin_url. Read oxygen-enrichment and its references/linkedin-url.md. Add the linkedin_url capability to existing rows, then preview the exact row scope for free before an approved run with a credit ceiling. Known-profile scraping is a separate operation.",
|
|
393
|
+
};
|
|
394
|
+
}
|