@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,26 @@
|
|
|
1
|
+
import { AGENT_SESSION_OPERATIONS } from "./agent-sessions.js";
|
|
2
|
+
import { BROWSER_OPERATIONS } from "./browser.js";
|
|
3
|
+
import { CLAY_MIGRATION_OPERATIONS } from "./clay-migration.js";
|
|
4
|
+
import { CONNECTOR_OPERATIONS } from "./connectors.js";
|
|
5
|
+
import { GEO_OPERATIONS } from "./geo.js";
|
|
6
|
+
import { GUIDED_ACTIVATION_OPERATIONS } from "./guided-activation.js";
|
|
7
|
+
import { REPLY_OXYGENT_OPERATIONS } from "./reply-oxygent.js";
|
|
8
|
+
import { SENDER_LIMITS_OPERATIONS } from "./sender-limits.js";
|
|
9
|
+
import { TABLE_FEED_UPDATE_OPERATIONS } from "./table-feed-update.js";
|
|
10
|
+
import { TEAMMATE_OPERATIONS } from "./teammates.js";
|
|
11
|
+
import { WORKSPACE_PAGES_OPERATIONS } from "./workspace-pages.js";
|
|
12
|
+
import { WORKSPACE_SKILL_OPERATIONS } from "./workspace-skills.js";
|
|
13
|
+
export const OPERATION_FAMILY_SPECS = [
|
|
14
|
+
...AGENT_SESSION_OPERATIONS,
|
|
15
|
+
...BROWSER_OPERATIONS,
|
|
16
|
+
...CLAY_MIGRATION_OPERATIONS,
|
|
17
|
+
...CONNECTOR_OPERATIONS,
|
|
18
|
+
...GEO_OPERATIONS,
|
|
19
|
+
...GUIDED_ACTIVATION_OPERATIONS,
|
|
20
|
+
...REPLY_OXYGENT_OPERATIONS,
|
|
21
|
+
...SENDER_LIMITS_OPERATIONS,
|
|
22
|
+
...TABLE_FEED_UPDATE_OPERATIONS,
|
|
23
|
+
...TEAMMATE_OPERATIONS,
|
|
24
|
+
...WORKSPACE_PAGES_OPERATIONS,
|
|
25
|
+
...WORKSPACE_SKILL_OPERATIONS,
|
|
26
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { REPLY_OXYGENT_OPERATIONS } from "../reply-oxygent.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { REPLY_OXYGENT_OPERATIONS } from "../reply-oxygent.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TEAMMATE_OPERATIONS } from "../teammates.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TEAMMATE_OPERATIONS } from "../teammates.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WORKSPACE_SKILL_OPERATIONS } from "../workspace-skills.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WORKSPACE_SKILL_OPERATIONS } from "../workspace-skills.js";
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One entry per customer operation that edits a resource: the route it calls,
|
|
3
|
+
* the contract its body satisfies, and the names it carries on the CLI and MCP.
|
|
4
|
+
* The CLI command, the MCP tool and the route read the same spec, so the three
|
|
5
|
+
* cannot disagree on which fields exist. Leaf and browser-safe.
|
|
6
|
+
*/
|
|
1
7
|
import { type ContractObject, type ContractIssue } from "./schema.js";
|
|
2
8
|
import type { OperationSpec } from "./operation-request.js";
|
|
3
9
|
export type { OperationSpec } from "./operation-request.js";
|
|
@@ -4,20 +4,9 @@
|
|
|
4
4
|
* The CLI command, the MCP tool and the route read the same spec, so the three
|
|
5
5
|
* cannot disagree on which fields exist. Leaf and browser-safe.
|
|
6
6
|
*/
|
|
7
|
-
import { CONNECTOR_EVENTS_REVOKE_OPERATION, CONNECTOR_UPDATE_OPERATION } from "./connectors.js";
|
|
8
7
|
import { str, validateContract } from "./schema.js";
|
|
9
|
-
import { SENDER_LIMITS_SET_OPERATION } from "./sender-limits.js";
|
|
10
|
-
import { WORKSPACE_PAGES_GET_OPERATION, WORKSPACE_PAGES_UPDATE_OPERATION } from "./workspace-pages.js";
|
|
11
|
-
import { BROWSER_OPERATIONS } from "./browser-operations.js";
|
|
12
|
-
import { TABLE_FEED_UPDATE_OPERATION } from "./table-feed-update.js";
|
|
13
|
-
import { GEO_OPERATIONS } from "./geo.js";
|
|
14
8
|
import { CUSTOMER_OPERATIONS } from "./customer-operations.js";
|
|
15
|
-
import {
|
|
16
|
-
import { AGENT_SESSION_OPERATIONS } from "./agent-sessions.js";
|
|
17
|
-
import { REPLY_OXYGENT_OPERATIONS } from "./reply-oxygent.js";
|
|
18
|
-
import { TEAMMATE_OPERATIONS } from "./teammates.js";
|
|
19
|
-
import { WORKSPACE_SKILL_OPERATIONS } from "./workspace-skills.js";
|
|
20
|
-
import { CLAY_MIGRATION_OPERATION } from "./clay-migration.js";
|
|
9
|
+
import { OPERATION_FAMILY_SPECS } from "./operations/index.generated.js";
|
|
21
10
|
export { operationPath, operationRequest } from "./operation-request.js";
|
|
22
11
|
/** The exact public grammar, including the operation's scoped route parameters. */
|
|
23
12
|
export function operationInputContract(spec) {
|
|
@@ -61,6 +50,9 @@ export function operationFormData(spec, body) {
|
|
|
61
50
|
}
|
|
62
51
|
return form;
|
|
63
52
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
53
|
+
// Add a family as a new file in ./operations/ (scripts/codegen/operations-index.mjs
|
|
54
|
+
// lists them alphabetically). The shared customer catalog leads, so each MCP pack
|
|
55
|
+
// and CLI group keeps its established tool and command order.
|
|
56
|
+
export const OPERATION_SPECS = [...CUSTOMER_OPERATIONS, ...OPERATION_FAMILY_SPECS];
|
|
57
|
+
export const CLI_OPERATIONS = [...CUSTOMER_OPERATIONS, ...OPERATION_FAMILY_SPECS].filter((spec) => spec.generated?.cli !== false);
|
|
58
|
+
export const MCP_OPERATIONS = [...CUSTOMER_OPERATIONS, ...OPERATION_FAMILY_SPECS].filter((spec) => spec.generated?.mcp !== false);
|
|
@@ -79,6 +79,7 @@ export const SENDER_LIMITS_SET_OPERATION = {
|
|
|
79
79
|
route: "/api/cli/senders/{id}/limits",
|
|
80
80
|
method: "PATCH",
|
|
81
81
|
contract: SENDER_LIMITS_PATCH_CONTRACT,
|
|
82
|
+
generated: { cli: false, mcp: false },
|
|
82
83
|
cli: {
|
|
83
84
|
path: ["senders", "limits", "set"],
|
|
84
85
|
summary: "Adjust per-account action limits and working hours. LinkedIn actions only run inside the account's working hours (default 07:00-22:00 every day, in the account's timezone); work due outside them is deferred to the next window, not failed. Set them with --timezone, --working-days, --working-hours-start and --working-hours-end; flags you omit keep their current value. A sequence's sending schedule (sequences update --schedule-*, or --linkedin-* for LinkedIn alone) can narrow the window for its LinkedIn steps, never widen it; email steps follow the sequence's email send window instead. Every limit flag shows its default and hard maximum; values above the maximum are clamped, and higher caps raise the risk of a LinkedIn restriction. Each action has its own cap (InMails per day and per rolling 30 days, profile views, profile lookups, endorsements, invitation withdrawals, posts), and every send except posts also counts toward --total-actions-per-day. Daily send caps run at half on Saturday and Sunday in the account's timezone unless --weekend-full-volume is set. A withdrawn invitation cannot be re-sent to the same person for 21 days. Own-feed posts and your own Unibox replies ignore working hours. A refused action names its reason (outside_working_hours defers it; linkedin_rate_limited names the limit and resets_at). Caps saved before 25 Sep 2026 above 40 messages, 20 comments or 200 total actions were lowered to those levels once on 2 Oct 2026 (old values in sender metadata linkedin_limit_caution_2026_10); limits you save now are kept as set. Raising caps to answer a post's commenters: read `oxygen skills get oxygen-sequencer --file references/linkedin.md` first. Changing limits is free. <id> accepts a sender account id, connection id, or Unipile account id.",
|
|
@@ -7,31 +7,42 @@ export async function acquireDiagnosticStorageLock(path, waitMs = 0) {
|
|
|
7
7
|
const { DatabaseSync } = process.getBuiltinModule("node:sqlite");
|
|
8
8
|
const databasePath = path + ".sqlite";
|
|
9
9
|
const deadline = performance.now() + waitMs;
|
|
10
|
+
// SQLite owns every descriptor: closing a separate descriptor for this inode
|
|
11
|
+
// would release POSIX locks held by another connection in this process.
|
|
12
|
+
// One connection serves every attempt; reopening per poll was synchronous
|
|
13
|
+
// open/stat/chmod work on the event loop for each waiter every 20 ms.
|
|
10
14
|
let database;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
15
|
+
try {
|
|
16
|
+
while (true) {
|
|
17
|
+
try {
|
|
18
|
+
if (!database) {
|
|
19
|
+
database = new DatabaseSync(databasePath, { timeout: 0 });
|
|
20
|
+
await chmod(databasePath, 0o600);
|
|
21
|
+
}
|
|
22
|
+
database.exec("BEGIN EXCLUSIVE");
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
26
|
+
const busy = error && typeof error === "object" && "errcode" in error && (error.errcode === 5 || error.errcode === 6);
|
|
27
|
+
// Only contention is skippable. Preserve permission, capacity and runtime
|
|
28
|
+
// failures for the caller's safe classification rather than calling them busy.
|
|
29
|
+
if (!busy)
|
|
30
|
+
throw error;
|
|
31
|
+
if (performance.now() >= deadline) {
|
|
32
|
+
database?.close();
|
|
33
|
+
database = undefined;
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
// A synchronous SQLite busy timeout would block the same-process owner
|
|
37
|
+
// from finishing its asynchronous fsync and releasing this lock.
|
|
38
|
+
await new Promise(resolve => setTimeout(resolve, Math.min(20, Math.max(1, deadline - performance.now()))));
|
|
39
|
+
}
|
|
33
40
|
}
|
|
34
41
|
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
database?.close();
|
|
44
|
+
throw error;
|
|
45
|
+
}
|
|
35
46
|
const held = database;
|
|
36
47
|
let closed = false;
|
|
37
48
|
return async () => {
|
|
@@ -59,15 +59,18 @@ export function sanitizeDiagnosticText(value, knownSecrets = []) {
|
|
|
59
59
|
if (secret)
|
|
60
60
|
value = value.split(secret).join("[credential excluded]");
|
|
61
61
|
// Text blocks may contain serialized tool results, including binary blocks.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
// Only text opening with { or [ can parse to an object; skipping the rest avoids
|
|
63
|
+
// a thrown SyntaxError for every identifier and timestamp in a record.
|
|
64
|
+
if (/^\s*[[{]/.test(value))
|
|
65
|
+
try {
|
|
66
|
+
const parsed = JSON.parse(value);
|
|
67
|
+
if (parsed && typeof parsed === "object") {
|
|
68
|
+
const sanitized = sanitizeDiagnosticContent(parsed, knownSecrets);
|
|
69
|
+
if (JSON.stringify(parsed) !== JSON.stringify(sanitized))
|
|
70
|
+
value = JSON.stringify(sanitized);
|
|
71
|
+
}
|
|
68
72
|
}
|
|
69
|
-
|
|
70
|
-
catch { /* preserve ordinary business text */ }
|
|
73
|
+
catch { /* preserve ordinary business text */ }
|
|
71
74
|
value = value.replace(/data:[\w/+.-]+(?:;[\w=.-]+)*;base64,[A-Za-z0-9+/=]+/g, match => JSON.stringify(binaryMetadata(match.slice(match.indexOf(",") + 1))));
|
|
72
75
|
const redacted = redactSecretsInString(value)
|
|
73
76
|
.replace(/([?&#][\w.-]*(?:api[_-]?key|token|secret|password|signature|credential|code|auth)[\w.-]*=)[^&#\s"'<>]+/gi, "$1[credential excluded]")
|
|
@@ -23,6 +23,9 @@ export type FirstMonthOfferHeadline = {
|
|
|
23
23
|
percentOff: number;
|
|
24
24
|
/** The cheapest size the offer covers, at its regular monthly price. */
|
|
25
25
|
fromCents: number;
|
|
26
|
+
/** The size every surface promotes (the $99 plan), at its regular monthly price and its first month. */
|
|
27
|
+
planCents: number;
|
|
28
|
+
firstMonthCents: number;
|
|
26
29
|
};
|
|
27
30
|
/** When a window that started at `startedAtMs` closes. */
|
|
28
31
|
export declare function firstMonthOfferEndsAt(startedAtMs: number): number;
|
|
@@ -3,11 +3,12 @@ import { type FirstMonthOfferHeadline } from "./first-month-offer-window.js";
|
|
|
3
3
|
export { FIRST_MONTH_OFFER_SEEN_COOKIE, FIRST_MONTH_OFFER_SEEN_MAX_AGE_SECONDS, firstMonthOfferEndsAt, parseFirstMonthOfferStart, type FirstMonthOfferHeadline, } from "./first-month-offer-window.js";
|
|
4
4
|
/**
|
|
5
5
|
* The first-month offer (founder, 2026-10-02; widened 2026-10-03 to "all the
|
|
6
|
-
* plans above the $49/month plan ... from the $99/month plan upwards"
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
6
|
+
* plans above the $49/month plan ... from the $99/month plan upwards"; widened
|
|
7
|
+
* again 2026-10-23: "apply the 50% off offer on the first month also on the
|
|
8
|
+
* 49/Month plan"): a new customer's first month of any Oxygen size costs half
|
|
9
|
+
* its price, rounded down to the dollar, so they start for less and, the hope
|
|
10
|
+
* is, keep it. $49 becomes $24, $99 $49, $199 $99, $499 $249, $999 $499 and
|
|
11
|
+
* $1,999 $999. It is claimable for 24 hours from the first time that person sees it: a
|
|
11
12
|
* browser remembers when it first showed the offer, signup carries that start
|
|
12
13
|
* onto the new workspace, and checkout applies the discount only inside the
|
|
13
14
|
* workspace's window.
|
|
@@ -21,7 +22,7 @@ export declare const FIRST_MONTH_OFFER: Readonly<{
|
|
|
21
22
|
/** Stable machine name, written to Checkout and subscription metadata. */
|
|
22
23
|
key: "first_month_half";
|
|
23
24
|
/** The cheapest size it applies to; every dearer size qualifies too. */
|
|
24
|
-
minimumPlanKey: "
|
|
25
|
+
minimumPlanKey: "oxygen_49";
|
|
25
26
|
/**
|
|
26
27
|
* The size every surface proposes while the offer runs ("By default it's the
|
|
27
28
|
* $99/month plan, which is 50% off for the first month"): `/pricing` and the
|
|
@@ -56,5 +57,12 @@ export type FirstMonthOfferPrice = {
|
|
|
56
57
|
};
|
|
57
58
|
/** A size's first month under the offer: half its price, rounded down to the dollar ($99 → $49, 50% off). */
|
|
58
59
|
export declare function firstMonthOfferPrice(planKey?: OxygenPlanKey): FirstMonthOfferPrice;
|
|
59
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* The banner's headline, computed here so the browser never loads the catalog:
|
|
62
|
+
* the smallest discount any covered size gives ($49 → $24 is 51%, the others
|
|
63
|
+
* 50%), so it never claims more than a plan gives, and the size it promotes.
|
|
64
|
+
* The $99 plan leads (current chat, 2026-10-23: "we should still promote mainly
|
|
65
|
+
* the 99/month plan as the primary point but they have the option to select the
|
|
66
|
+
* lower tier"); the $49 plan is half off too, chosen on the plans.
|
|
67
|
+
*/
|
|
60
68
|
export declare function firstMonthOfferHeadline(): FirstMonthOfferHeadline;
|
|
@@ -3,11 +3,12 @@ import { FIRST_MONTH_OFFER_WINDOW_MS } from "./first-month-offer-window.js";
|
|
|
3
3
|
export { FIRST_MONTH_OFFER_SEEN_COOKIE, FIRST_MONTH_OFFER_SEEN_MAX_AGE_SECONDS, firstMonthOfferEndsAt, parseFirstMonthOfferStart, } from "./first-month-offer-window.js";
|
|
4
4
|
/**
|
|
5
5
|
* The first-month offer (founder, 2026-10-02; widened 2026-10-03 to "all the
|
|
6
|
-
* plans above the $49/month plan ... from the $99/month plan upwards"
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
6
|
+
* plans above the $49/month plan ... from the $99/month plan upwards"; widened
|
|
7
|
+
* again 2026-10-23: "apply the 50% off offer on the first month also on the
|
|
8
|
+
* 49/Month plan"): a new customer's first month of any Oxygen size costs half
|
|
9
|
+
* its price, rounded down to the dollar, so they start for less and, the hope
|
|
10
|
+
* is, keep it. $49 becomes $24, $99 $49, $199 $99, $499 $249, $999 $499 and
|
|
11
|
+
* $1,999 $999. It is claimable for 24 hours from the first time that person sees it: a
|
|
11
12
|
* browser remembers when it first showed the offer, signup carries that start
|
|
12
13
|
* onto the new workspace, and checkout applies the discount only inside the
|
|
13
14
|
* workspace's window.
|
|
@@ -21,7 +22,7 @@ export const FIRST_MONTH_OFFER = Object.freeze({
|
|
|
21
22
|
/** Stable machine name, written to Checkout and subscription metadata. */
|
|
22
23
|
key: "first_month_half",
|
|
23
24
|
/** The cheapest size it applies to; every dearer size qualifies too. */
|
|
24
|
-
minimumPlanKey: "
|
|
25
|
+
minimumPlanKey: "oxygen_49",
|
|
25
26
|
/**
|
|
26
27
|
* The size every surface proposes while the offer runs ("By default it's the
|
|
27
28
|
* $99/month plan, which is 50% off for the first month"): `/pricing` and the
|
|
@@ -62,8 +63,21 @@ export function firstMonthOfferPrice(planKey = FIRST_MONTH_OFFER.minimumPlanKey)
|
|
|
62
63
|
percentOff: Math.floor(((regularCents - firstMonthCents) / regularCents) * 100),
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* The banner's headline, computed here so the browser never loads the catalog:
|
|
68
|
+
* the smallest discount any covered size gives ($49 → $24 is 51%, the others
|
|
69
|
+
* 50%), so it never claims more than a plan gives, and the size it promotes.
|
|
70
|
+
* The $99 plan leads (current chat, 2026-10-23: "we should still promote mainly
|
|
71
|
+
* the 99/month plan as the primary point but they have the option to select the
|
|
72
|
+
* lower tier"); the $49 plan is half off too, chosen on the plans.
|
|
73
|
+
*/
|
|
66
74
|
export function firstMonthOfferHeadline() {
|
|
67
|
-
const
|
|
68
|
-
|
|
75
|
+
const prices = FIRST_MONTH_OFFER_PLAN_KEYS.map((planKey) => firstMonthOfferPrice(planKey));
|
|
76
|
+
const promoted = firstMonthOfferPrice(FIRST_MONTH_OFFER.defaultPlanKey);
|
|
77
|
+
return {
|
|
78
|
+
percentOff: Math.min(...prices.map((price) => price.percentOff)),
|
|
79
|
+
fromCents: firstMonthOfferPrice().regularCents,
|
|
80
|
+
planCents: promoted.regularCents,
|
|
81
|
+
firstMonthCents: promoted.firstMonthCents,
|
|
82
|
+
};
|
|
69
83
|
}
|
|
@@ -10,6 +10,8 @@ export type GuidedOnboardingResearch = {
|
|
|
10
10
|
turn_id?: string;
|
|
11
11
|
results_turn_id?: string;
|
|
12
12
|
results_pending?: boolean;
|
|
13
|
+
/** The lead list OXYGEN sources beside the research (onboarding-leads.ts). */
|
|
14
|
+
leads?: import("./onboarding-leads.js").OnboardingLeadsProgress;
|
|
13
15
|
};
|
|
14
16
|
export type GuidedActivationPurpose = typeof GUIDED_ACTIVATION_PURPOSES[number];
|
|
15
17
|
export type GuidedActivationRoutine = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** True when a lowercase bare host is a listing platform (or its subdomain) or a freemail host. */
|
|
1
|
+
/** True when a lowercase bare host is a listing platform (or its subdomain or country domain) or a freemail host. */
|
|
2
2
|
export declare function isListedWebsitePlatform(host: string): boolean;
|
|
@@ -19,8 +19,30 @@ const LISTED_WEBSITE_PLATFORM_HOSTS = [
|
|
|
19
19
|
"tripadvisor.com", "amazon.com", "etsy.com", "ebay.com",
|
|
20
20
|
"wikipedia.org", "glassdoor.com", "zoominfo.com", "g2.com",
|
|
21
21
|
];
|
|
22
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* Listing platforms that also serve each market from a country domain (`glassdoor.co.uk`,
|
|
24
|
+
* `amazon.de`, `tripadvisor.com.au`). Only these brands, never every listed label: a
|
|
25
|
+
* company may legitimately own `medium.de` or `cal.de`.
|
|
26
|
+
*/
|
|
27
|
+
const COUNTRY_DOMAIN_PLATFORM_BRANDS = ["amazon", "ebay", "glassdoor", "google", "pinterest", "tripadvisor", "yelp"];
|
|
28
|
+
/** A country-code suffix: `de`, `co.uk`, `com.au`, `ne.jp`. */
|
|
29
|
+
const COUNTRY_SUFFIX = /^(?:[a-z]{2}|(?:co|com|net|org|ne|or|ac|gob|gov)\.[a-z]{2})$/;
|
|
30
|
+
function isCountryDomainPlatform(host) {
|
|
31
|
+
const labels = host.split(".");
|
|
32
|
+
// The brand is the registrable label: the one before a one- or two-label country suffix.
|
|
33
|
+
for (const suffixLength of [1, 2]) {
|
|
34
|
+
const brandIndex = labels.length - suffixLength - 1;
|
|
35
|
+
if (brandIndex < 0)
|
|
36
|
+
continue;
|
|
37
|
+
if (COUNTRY_DOMAIN_PLATFORM_BRANDS.includes(labels[brandIndex])
|
|
38
|
+
&& COUNTRY_SUFFIX.test(labels.slice(brandIndex + 1).join(".")))
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
/** True when a lowercase bare host is a listing platform (or its subdomain or country domain) or a freemail host. */
|
|
23
44
|
export function isListedWebsitePlatform(host) {
|
|
24
45
|
return LISTED_WEBSITE_PLATFORM_HOSTS.some((platform) => host === platform || host.endsWith(`.${platform}`))
|
|
46
|
+
|| isCountryDomainPlatform(host)
|
|
25
47
|
|| isFreemailDomain(host);
|
|
26
48
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Onboarding's lead list (current chat, 2026-10-23: "We'll directly source them
|
|
3
|
+
* a lead list of decision makers with their email, linkedin and phone from icp
|
|
4
|
+
* based on the research. and we do this before the plays are being proposed";
|
|
5
|
+
* "Let's do 1k it costs us literally nothing but really make sure it's really
|
|
6
|
+
* fast. Source the leads from blitz").
|
|
7
|
+
*
|
|
8
|
+
* While the onboarding research runs, OXYGEN sources up to a thousand decision
|
|
9
|
+
* makers matching the workspace's ICP from Blitz into a "Lead list" table, then
|
|
10
|
+
* finds each one's work email and phone on Blitz. Blitz is a fixed monthly
|
|
11
|
+
* subscription, so the calls cost OXYGEN nothing at the margin; the credits below
|
|
12
|
+
* are their face value, journalled as OXYGEN-funded and never charged to the
|
|
13
|
+
* workspace. The research's report names the list, and the plays build on it.
|
|
14
|
+
*/
|
|
15
|
+
/** How many decision makers the list holds at most. */
|
|
16
|
+
export declare const ONBOARDING_LEADS_TARGET = 1000;
|
|
17
|
+
/** The only tools the lead list's funding covers: people search, then email and phone on each person. */
|
|
18
|
+
export declare const ONBOARDING_LEADS_TOOL_IDS: readonly ["blitzapi.people_search", "blitzapi.person_enrich", "blitzapi.phone_enrich"];
|
|
19
|
+
/**
|
|
20
|
+
* Face value OXYGEN funds per workspace, ever: 20 search pages at 1 credit, then
|
|
21
|
+
* 1.5 per email and 10 per phone lookup for a thousand people (11,520), with room
|
|
22
|
+
* for a restarted job's retries.
|
|
23
|
+
*/
|
|
24
|
+
export declare const ONBOARDING_LEADS_MAX_CREDITS = 13000;
|
|
25
|
+
/** Lookups in flight at once: Blitz allows 20 a second across every caller. */
|
|
26
|
+
export declare const ONBOARDING_LEADS_ENRICH_CONCURRENCY = 8;
|
|
27
|
+
/** The table the list lands in. */
|
|
28
|
+
export declare const ONBOARDING_LEADS_TABLE = "Lead list";
|
|
29
|
+
export declare const ONBOARDING_LEADS_UPSERT_KEY = "lead_key";
|
|
30
|
+
export declare const ONBOARDING_LEADS_COLUMNS: ReadonlyArray<{
|
|
31
|
+
key: string;
|
|
32
|
+
label: string;
|
|
33
|
+
dataType: "text";
|
|
34
|
+
}>;
|
|
35
|
+
/** The list's progress, kept on the onboarding's research record. */
|
|
36
|
+
export type OnboardingLeadsProgress = {
|
|
37
|
+
state: "sourcing" | "enriching" | "done" | "failed";
|
|
38
|
+
/** When this attempt claimed the job; a stale claim is taken over. */
|
|
39
|
+
claimed_at: string;
|
|
40
|
+
updated_at: string;
|
|
41
|
+
table_id?: string;
|
|
42
|
+
/** The table's page, for the report's link. */
|
|
43
|
+
table_url?: string;
|
|
44
|
+
sourced?: number;
|
|
45
|
+
emails?: number;
|
|
46
|
+
phones?: number;
|
|
47
|
+
/** The ICP sentence the search was planned from. */
|
|
48
|
+
prompt?: string;
|
|
49
|
+
fault?: string;
|
|
50
|
+
};
|
|
51
|
+
/** A claim not updated for this long belongs to a worker that stopped. */
|
|
52
|
+
export declare const ONBOARDING_LEADS_STALE_MS: number;
|
|
53
|
+
/** The workspace's ICP as the signup research writes it (company profile `icp`). */
|
|
54
|
+
export type OnboardingLeadsIcp = {
|
|
55
|
+
buyer_titles?: unknown;
|
|
56
|
+
segments?: unknown;
|
|
57
|
+
company_size?: unknown;
|
|
58
|
+
geographies?: unknown;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* The people search request in words, for the people search planner: who
|
|
62
|
+
* decides, at which companies, how big, where. Null when the ICP names no buyer
|
|
63
|
+
* and no segment, so there is nothing to search for.
|
|
64
|
+
*/
|
|
65
|
+
export declare function onboardingLeadsPrompt(icp: OnboardingLeadsIcp | null | undefined): string | null;
|
|
66
|
+
/** The report's line naming the list, or null when there is none to name. */
|
|
67
|
+
export declare function onboardingLeadsReportLine(leads: OnboardingLeadsProgress | undefined): string | null;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Onboarding's lead list (current chat, 2026-10-23: "We'll directly source them
|
|
3
|
+
* a lead list of decision makers with their email, linkedin and phone from icp
|
|
4
|
+
* based on the research. and we do this before the plays are being proposed";
|
|
5
|
+
* "Let's do 1k it costs us literally nothing but really make sure it's really
|
|
6
|
+
* fast. Source the leads from blitz").
|
|
7
|
+
*
|
|
8
|
+
* While the onboarding research runs, OXYGEN sources up to a thousand decision
|
|
9
|
+
* makers matching the workspace's ICP from Blitz into a "Lead list" table, then
|
|
10
|
+
* finds each one's work email and phone on Blitz. Blitz is a fixed monthly
|
|
11
|
+
* subscription, so the calls cost OXYGEN nothing at the margin; the credits below
|
|
12
|
+
* are their face value, journalled as OXYGEN-funded and never charged to the
|
|
13
|
+
* workspace. The research's report names the list, and the plays build on it.
|
|
14
|
+
*/
|
|
15
|
+
/** How many decision makers the list holds at most. */
|
|
16
|
+
export const ONBOARDING_LEADS_TARGET = 1_000;
|
|
17
|
+
/** The only tools the lead list's funding covers: people search, then email and phone on each person. */
|
|
18
|
+
export const ONBOARDING_LEADS_TOOL_IDS = ["blitzapi.people_search", "blitzapi.person_enrich", "blitzapi.phone_enrich"];
|
|
19
|
+
/**
|
|
20
|
+
* Face value OXYGEN funds per workspace, ever: 20 search pages at 1 credit, then
|
|
21
|
+
* 1.5 per email and 10 per phone lookup for a thousand people (11,520), with room
|
|
22
|
+
* for a restarted job's retries.
|
|
23
|
+
*/
|
|
24
|
+
export const ONBOARDING_LEADS_MAX_CREDITS = 13_000;
|
|
25
|
+
/** Lookups in flight at once: Blitz allows 20 a second across every caller. */
|
|
26
|
+
export const ONBOARDING_LEADS_ENRICH_CONCURRENCY = 8;
|
|
27
|
+
/** The table the list lands in. */
|
|
28
|
+
export const ONBOARDING_LEADS_TABLE = "Lead list";
|
|
29
|
+
export const ONBOARDING_LEADS_UPSERT_KEY = "lead_key";
|
|
30
|
+
export const ONBOARDING_LEADS_COLUMNS = [
|
|
31
|
+
["name", "Name"],
|
|
32
|
+
["title", "Title"],
|
|
33
|
+
["company", "Company"],
|
|
34
|
+
["company_domain", "Company domain"],
|
|
35
|
+
["linkedin_url", "LinkedIn URL"],
|
|
36
|
+
["email", "Email"],
|
|
37
|
+
["phone", "Phone"],
|
|
38
|
+
["location", "Location"],
|
|
39
|
+
[ONBOARDING_LEADS_UPSERT_KEY, "Lead key"],
|
|
40
|
+
].map(([key, label]) => ({ key, label, dataType: "text" }));
|
|
41
|
+
/** A claim not updated for this long belongs to a worker that stopped. */
|
|
42
|
+
export const ONBOARDING_LEADS_STALE_MS = 5 * 60_000;
|
|
43
|
+
function texts(value, max) {
|
|
44
|
+
const list = Array.isArray(value) ? value : typeof value === "string" ? [value] : [];
|
|
45
|
+
return list.filter((item) => typeof item === "string")
|
|
46
|
+
.map((item) => item.replace(/\s+/g, " ").trim()).filter(Boolean).slice(0, max);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The people search request in words, for the people search planner: who
|
|
50
|
+
* decides, at which companies, how big, where. Null when the ICP names no buyer
|
|
51
|
+
* and no segment, so there is nothing to search for.
|
|
52
|
+
*/
|
|
53
|
+
export function onboardingLeadsPrompt(icp) {
|
|
54
|
+
const titles = texts(icp?.buyer_titles, 12);
|
|
55
|
+
const segments = texts(icp?.segments, 4);
|
|
56
|
+
if (titles.length === 0 && segments.length === 0)
|
|
57
|
+
return null;
|
|
58
|
+
const size = texts(icp?.company_size, 1)[0];
|
|
59
|
+
const places = texts(icp?.geographies, 6);
|
|
60
|
+
const who = titles.length ? titles.join(", ") : "Founders, CEOs and heads of sales";
|
|
61
|
+
return [
|
|
62
|
+
`${ONBOARDING_LEADS_TARGET} decision makers: ${who}`,
|
|
63
|
+
segments.length ? ` at ${segments.join("; ")} companies` : "",
|
|
64
|
+
size ? `, ${size}` : "",
|
|
65
|
+
places.length ? `, in ${places.join(", ")}` : "",
|
|
66
|
+
".",
|
|
67
|
+
].join("");
|
|
68
|
+
}
|
|
69
|
+
/** The report's line naming the list, or null when there is none to name. */
|
|
70
|
+
export function onboardingLeadsReportLine(leads) {
|
|
71
|
+
if (!leads?.table_id || !leads.sourced)
|
|
72
|
+
return null;
|
|
73
|
+
const where = leads.table_url ? ` (${leads.table_url})` : "";
|
|
74
|
+
const contact = leads.state === "done"
|
|
75
|
+
? `${leads.emails ?? 0} with a work email and ${leads.phones ?? 0} with a phone`
|
|
76
|
+
: "their work emails and phones are being found now";
|
|
77
|
+
return `[Lead list] OXYGEN sourced ${leads.sourced} decision makers matching the ICP into the "${ONBOARDING_LEADS_TABLE}" table${where}: ${contact}.`;
|
|
78
|
+
}
|
|
@@ -190,6 +190,24 @@ function deployTierOrNull() {
|
|
|
190
190
|
return null;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
+
/**
|
|
194
|
+
* `deployment.environment` declared in `OTEL_RESOURCE_ATTRIBUTES`. Only the local
|
|
195
|
+
* launcher sets it (`local`, scripts/local-dev/env.mjs); deployed runtimes never
|
|
196
|
+
* do. It beats the derived tier and caller overrides because a local process
|
|
197
|
+
* also runs with `OXYGEN_DEPLOY_ENV=selfhost-dev`, and stamping it `dev` puts its
|
|
198
|
+
* warnings (e.g. `posthog_canary.not_configured`) under dev's monitors.
|
|
199
|
+
*/
|
|
200
|
+
function declaredDeploymentEnvironment() {
|
|
201
|
+
for (const entry of (process.env.OTEL_RESOURCE_ATTRIBUTES ?? "").split(",")) {
|
|
202
|
+
const separator = entry.indexOf("=");
|
|
203
|
+
if (separator < 0 || entry.slice(0, separator).trim() !== "deployment.environment")
|
|
204
|
+
continue;
|
|
205
|
+
const value = entry.slice(separator + 1).trim();
|
|
206
|
+
if (value)
|
|
207
|
+
return value;
|
|
208
|
+
}
|
|
209
|
+
return null;
|
|
210
|
+
}
|
|
193
211
|
function recordLevel(record) {
|
|
194
212
|
return typeof record.level === "string" && Object.hasOwn(SEVERITY_NUMBERS, record.level)
|
|
195
213
|
? record.level
|
|
@@ -225,6 +243,7 @@ export function createOtlpLogSink(options) {
|
|
|
225
243
|
// resolves its own environment and comes back empty-handed falls back to the
|
|
226
244
|
// default here instead of shipping records with no `deployment.environment`.
|
|
227
245
|
const resourceOverrides = Object.fromEntries(Object.entries(options.resource ?? {}).filter(([, value]) => value !== null && value !== undefined));
|
|
246
|
+
const declaredEnvironment = declaredDeploymentEnvironment();
|
|
228
247
|
const resourceAttributes = toAttributes({
|
|
229
248
|
"service.name": options.serviceName,
|
|
230
249
|
"deployment.environment": deployTierOrNull()
|
|
@@ -237,6 +256,7 @@ export function createOtlpLogSink(options) {
|
|
|
237
256
|
// line, the same identity the trace/metric resources now carry.
|
|
238
257
|
...processResourceIdentity(),
|
|
239
258
|
...resourceOverrides,
|
|
259
|
+
...(declaredEnvironment ? { "deployment.environment": declaredEnvironment } : {}),
|
|
240
260
|
});
|
|
241
261
|
const queue = [];
|
|
242
262
|
let inFlight = null;
|
|
@@ -117,7 +117,7 @@ export const PLAN_GATED_CAPABILITY_COPY = {
|
|
|
117
117
|
bulk_email: {
|
|
118
118
|
label: "Sending newsletters",
|
|
119
119
|
freeAlternative: "Subscription lists and newsletter Sequences can be set up on Free. Adding a sending domain and sending to subscribers is what needs a plan.",
|
|
120
|
-
deepLinkPath: "/
|
|
120
|
+
deepLinkPath: "/newsletter/settings",
|
|
121
121
|
},
|
|
122
122
|
};
|
|
123
123
|
export function isPlanGatedCapability(value) {
|
|
@@ -281,13 +281,13 @@ export declare const PLAN_LIMITS: {
|
|
|
281
281
|
readonly maxDirectCsvBodyBytes: 10000000;
|
|
282
282
|
};
|
|
283
283
|
readonly agents: {
|
|
284
|
-
readonly maxTotalCredits:
|
|
284
|
+
readonly maxTotalCredits: 200;
|
|
285
285
|
readonly maxInferenceCredits: 150;
|
|
286
286
|
readonly maxUpstreamCostUsd: 10;
|
|
287
287
|
readonly maxUpstreamCostUsdByok: 10;
|
|
288
288
|
};
|
|
289
289
|
readonly copilot: {
|
|
290
|
-
readonly maxSessionBudgetCredits:
|
|
290
|
+
readonly maxSessionBudgetCredits: 250;
|
|
291
291
|
readonly defaultPerTurnCreditCeiling: 150;
|
|
292
292
|
};
|
|
293
293
|
readonly signals: {
|