@oxygen-agent/cli 1.1014.2040 → 1.1014.2100
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/cli-output.js +12 -0
- package/dist/column-decision-options.js +1 -1
- package/dist/command-families/tables/bundle-format.d.ts +1 -1
- package/dist/command-families/tables/bundle-format.js +1 -1
- package/dist/command-families/tables/import-columns.js +1 -1
- package/dist/command-families/tables/import-upload.d.ts +1 -1
- package/dist/command-families/tables/import-values.js +1 -1
- package/dist/command-families/tables/imports.d.ts +1 -1
- package/dist/command-families/tables/imports.js +1 -1
- package/dist/command-families/tables/register-relations.js +1 -1
- package/dist/command-families/tables/row-selection.js +1 -1
- package/dist/command-support.d.ts +7 -0
- package/dist/command-support.js +25 -0
- package/dist/commands/billing.js +2 -2
- package/dist/commands/columns.js +1 -1
- package/dist/commands/enrich-column.js +1 -1
- package/dist/commands/mailboxes.js +1 -1
- package/dist/commands/table-runs.js +1 -1
- package/dist/deliverability-evidence-commands.js +1 -1
- package/dist/streamed-file-import.d.ts +1 -1
- package/dist/streamed-file-import.js +1 -1
- package/node_modules/@oxygen/shared/dist/agent-sessions.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/agent-sessions.js +1 -1
- package/node_modules/@oxygen/shared/dist/capability-discovery.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/capability-discovery.js +1 -1
- package/node_modules/@oxygen/shared/dist/contracts/guided-activation.js +1 -1
- package/node_modules/@oxygen/shared/dist/copilot-access.js +1 -1
- package/node_modules/@oxygen/shared/dist/freemail-domains.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/freemail-domains.js +1 -1
- package/node_modules/@oxygen/shared/dist/index.d.ts +11 -11
- package/node_modules/@oxygen/shared/dist/index.js +11 -11
- package/node_modules/@oxygen/shared/dist/langfuse.d.ts +5 -1
- package/node_modules/@oxygen/shared/dist/langfuse.js +25 -3
- package/node_modules/@oxygen/shared/dist/{email-deliverability-policy.d.ts → mailboxes/email-deliverability-policy.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{emailguard-placement-probe.js → mailboxes/emailguard-placement-probe.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{mailbox-standby-rollout.d.ts → mailboxes/standby-rollout.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{mailbox-standby-rollout.js → mailboxes/standby-rollout.js} +2 -2
- package/node_modules/@oxygen/shared/dist/{warmup-metrics.js → mailboxes/warmup-metrics.js} +1 -1
- package/node_modules/@oxygen/shared/dist/object-storage.js +1 -1
- package/node_modules/@oxygen/shared/dist/{guided-activation.d.ts → onboarding/guided-activation.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{guided-activation.js → onboarding/guided-activation.js} +2 -2
- package/node_modules/@oxygen/shared/dist/{guided-onboarding-company-context.d.ts → onboarding/guided-onboarding-company-context.d.ts} +6 -6
- package/node_modules/@oxygen/shared/dist/{guided-onboarding-company-context.js → onboarding/guided-onboarding-company-context.js} +2 -2
- package/node_modules/@oxygen/shared/dist/{signup-lead-payload.js → onboarding/signup-lead-payload.js} +2 -2
- package/node_modules/@oxygen/shared/dist/{signup-lead-webhook.js → onboarding/signup-lead-webhook.js} +2 -2
- package/node_modules/@oxygen/shared/dist/onboarding-leads.d.ts +4 -0
- package/node_modules/@oxygen/shared/dist/plan-band.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/plan-band.js +1 -1
- package/node_modules/@oxygen/shared/dist/plan-limits.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/plan-limits.js +3 -3
- package/node_modules/@oxygen/shared/dist/redis-endpoint-map.d.ts +10 -0
- package/node_modules/@oxygen/shared/dist/redis-endpoint-map.js +63 -0
- package/node_modules/@oxygen/shared/dist/repricing.js +1 -1
- package/node_modules/@oxygen/shared/dist/sending-limits.js +1 -1
- package/node_modules/@oxygen/shared/dist/table-run-summary.js +1 -1
- package/node_modules/@oxygen/shared/dist/{table-capacity.d.ts → tables/capacity.d.ts} +2 -2
- package/node_modules/@oxygen/shared/dist/{table-capacity.js → tables/capacity.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{column-decision.js → tables/column-decision.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{enrichment-intents.d.ts → tables/enrichment-intents.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{file-import.js → tables/file-import.js} +2 -2
- package/node_modules/@oxygen/shared/dist/teammates.js +1 -1
- package/node_modules/@oxygen/shared/dist/{ugc-amplification-identity.js → ugc/amplification-identity.js} +1 -1
- package/node_modules/@oxygen/shared/dist/version.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/version.generated.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/version.generated.js +1 -1
- package/node_modules/@oxygen/shared/dist/version.js +1 -1
- package/node_modules/@oxygen/shared/dist/workspace-event-catalog.js +1 -1
- package/node_modules/@oxygen/shared/dist/workspace-placement.js +1 -1
- package/node_modules/@oxygen/shared/package.json +0 -35
- package/package.json +1 -1
- /package/node_modules/@oxygen/shared/dist/{deliverability-blacklist.d.ts → mailboxes/deliverability-blacklist.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-blacklist.js → mailboxes/deliverability-blacklist.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-checks.d.ts → mailboxes/deliverability-checks.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-checks.js → mailboxes/deliverability-checks.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-evidence.d.ts → mailboxes/deliverability-evidence.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-evidence.js → mailboxes/deliverability-evidence.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-loop.d.ts → mailboxes/deliverability-loop.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-loop.js → mailboxes/deliverability-loop.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-surface.d.ts → mailboxes/deliverability-surface.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-surface.js → mailboxes/deliverability-surface.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{domain-authentication.d.ts → mailboxes/domain-authentication.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{domain-authentication.js → mailboxes/domain-authentication.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{email-deliverability-policy.js → mailboxes/email-deliverability-policy.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{email-health-status.d.ts → mailboxes/email-health-status.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{email-health-status.js → mailboxes/email-health-status.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{email-health-summary.d.ts → mailboxes/email-health-summary.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{email-health-summary.js → mailboxes/email-health-summary.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{emailguard-placement-probe.d.ts → mailboxes/emailguard-placement-probe.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{microsoft-consent-url.d.ts → mailboxes/microsoft-consent-url.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{microsoft-consent-url.js → mailboxes/microsoft-consent-url.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{placement-copy.d.ts → mailboxes/placement-copy.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{placement-copy.js → mailboxes/placement-copy.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{placement-history.d.ts → mailboxes/placement-history.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{placement-history.js → mailboxes/placement-history.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{placement-report.d.ts → mailboxes/placement-report.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{placement-report.js → mailboxes/placement-report.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{received-authentication.d.ts → mailboxes/received-authentication.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{received-authentication.js → mailboxes/received-authentication.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{ses-identity-policy.d.ts → mailboxes/ses-identity-policy.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{ses-identity-policy.js → mailboxes/ses-identity-policy.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{mailbox-standby.d.ts → mailboxes/standby.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{mailbox-standby.js → mailboxes/standby.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{warmup-metrics.d.ts → mailboxes/warmup-metrics.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{onboarding-first-leads.d.ts → onboarding/first-leads.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{onboarding-first-leads.js → onboarding/first-leads.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{future-signup-events.d.ts → onboarding/future-signup-events.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{future-signup-events.js → onboarding/future-signup-events.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{future-signup-lifecycle-projection.d.ts → onboarding/future-signup-lifecycle-projection.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{future-signup-lifecycle-projection.js → onboarding/future-signup-lifecycle-projection.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{guided-activation.fixture.d.ts → onboarding/guided-activation.fixture.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{guided-activation.fixture.js → onboarding/guided-activation.fixture.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{onboarding-plays.d.ts → onboarding/plays.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{onboarding-plays.js → onboarding/plays.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{onboarding-research.d.ts → onboarding/research.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{onboarding-research.js → onboarding/research.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{signup-lead-deliveries.d.ts → onboarding/signup-lead-deliveries.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{signup-lead-deliveries.js → onboarding/signup-lead-deliveries.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{signup-lead-payload.d.ts → onboarding/signup-lead-payload.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{signup-lead-webhook.d.ts → onboarding/signup-lead-webhook.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{column-decision.d.ts → tables/column-decision.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{column-types.d.ts → tables/column-types.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{column-types.js → tables/column-types.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{company-enrichment-fields.d.ts → tables/company-enrichment-fields.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{company-enrichment-fields.js → tables/company-enrichment-fields.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{enrichment-intents.js → tables/enrichment-intents.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{file-import.d.ts → tables/file-import.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{import-limits.d.ts → tables/import-limits.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{import-limits.js → tables/import-limits.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{table-limits.d.ts → tables/limits.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{table-limits.js → tables/limits.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{ugc-amplification-identity.d.ts → ugc/amplification-identity.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{ugc.d.ts → ugc/ugc.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{ugc.js → ugc/ugc.js} +0 -0
|
@@ -14,15 +14,15 @@ export type GuidedOnboardingCompanyContext = {
|
|
|
14
14
|
context_links: string[];
|
|
15
15
|
file_ids: string[];
|
|
16
16
|
};
|
|
17
|
-
export declare const GUIDED_ONBOARDING_COMPANY_CONTEXT_CONTRACT: import("
|
|
17
|
+
export declare const GUIDED_ONBOARDING_COMPANY_CONTEXT_CONTRACT: import("../contracts/schema.js").ContractObject<{
|
|
18
18
|
readonly website: {
|
|
19
|
-
oneOf: [import("
|
|
19
|
+
oneOf: [import("../contracts/schema.js").StringProperty, import("../contracts/schema.js").NullProperty];
|
|
20
20
|
description?: string;
|
|
21
21
|
};
|
|
22
|
-
readonly name: import("
|
|
23
|
-
readonly description: import("
|
|
24
|
-
readonly context_links: import("
|
|
25
|
-
readonly file_ids: import("
|
|
22
|
+
readonly name: import("../contracts/schema.js").StringProperty;
|
|
23
|
+
readonly description: import("../contracts/schema.js").StringProperty;
|
|
24
|
+
readonly context_links: import("../contracts/schema.js").ArrayProperty<import("../contracts/schema.js").StringProperty>;
|
|
25
|
+
readonly file_ids: import("../contracts/schema.js").ArrayProperty<import("../contracts/schema.js").StringProperty>;
|
|
26
26
|
}, "context_links" | "description" | "file_ids" | "name" | "website">;
|
|
27
27
|
/** Input-only rule; existing evidence links retain their independent navigation policy. */
|
|
28
28
|
export declare function normalizeGuidedOnboardingContextLink(value: string): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OxygenError } from "
|
|
2
|
-
import { arr, nullable, obj, str, validateContract } from "
|
|
1
|
+
import { OxygenError } from "../cli-result.js";
|
|
2
|
+
import { arr, nullable, obj, str, validateContract } from "../contracts/schema.js";
|
|
3
3
|
/** One native-supported input budget for web/CLI/MCP and D research preparation. */
|
|
4
4
|
export const GUIDED_ONBOARDING_COMPANY_CONTEXT_LIMITS = {
|
|
5
5
|
descriptionChars: 6000, contextLinks: 5, fileIds: 5, nameChars: 160, urlChars: 2000,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isPersonalEmailDomain } from "
|
|
2
|
-
import { readCoercedString as normalizeString } from "
|
|
1
|
+
import { isPersonalEmailDomain } from "../freemail-domains.js";
|
|
2
|
+
import { readCoercedString as normalizeString } from "../type-guards.js";
|
|
3
3
|
/**
|
|
4
4
|
* Classifies an email address into a (likely) company work-email domain.
|
|
5
5
|
* Consumer/generic mailboxes return `{ domain: null, isGenericMailbox: true }`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createHmac } from "node:crypto";
|
|
2
2
|
// Shared transport contract for the signup-lead webhook. Both the request-time
|
|
3
|
-
// direct emitter (apps/web/src/lib/signup-lead-webhook.ts) and the durable
|
|
4
|
-
// worker retry queue (apps/worker/src/signup-lead-delivery-queue.ts) build the
|
|
3
|
+
// direct emitter (apps/web/src/lib/onboarding/signup-lead-webhook.ts) and the durable
|
|
4
|
+
// worker retry queue (apps/worker/src/onboarding/signup-lead-delivery-queue.ts) build the
|
|
5
5
|
// same HMAC signature, Oxygen table/workflow secret headers, timeout, and
|
|
6
6
|
// target classification. This module is the single source of truth so the two
|
|
7
7
|
// paths cannot drift when the webhook auth/header contract changes (OXY-679).
|
|
@@ -56,6 +56,10 @@ export type OnboardingLeadsIcp = {
|
|
|
56
56
|
segments?: unknown;
|
|
57
57
|
company_size?: unknown;
|
|
58
58
|
geographies?: unknown;
|
|
59
|
+
/** The buyers' seniorities ("C-Level", "VP"), when the website draft named them. */
|
|
60
|
+
seniorities?: unknown;
|
|
61
|
+
/** The companies' industries, apart from the segments' names, when the website draft named them. */
|
|
62
|
+
industries?: unknown;
|
|
59
63
|
};
|
|
60
64
|
/**
|
|
61
65
|
* The people search request in words, for the people search planner: who
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type LimitsTier } from "./plan-limits.js";
|
|
2
2
|
import { type RepricingOptions } from "./repricing.js";
|
|
3
|
-
import { type WorkspaceTableCapacityStatus } from "./
|
|
3
|
+
import { type WorkspaceTableCapacityStatus } from "./tables/capacity.js";
|
|
4
4
|
/**
|
|
5
5
|
* The seven plan bands of the 2026-09 repricing (spec § 4, slice S06): free
|
|
6
6
|
* plus one band per Oxygen plan size. They sit BESIDE the five-rung
|
|
@@ -2,7 +2,7 @@ import { planVolumeBonusCredits, planVolumeBonusPercent, resolveBasePricingPlan
|
|
|
2
2
|
import { planLimitsForTier, limitsTierForPlanTier, resolveCronMinIntervalMinutes, resolvePlanAgentCreditLimits, } from "./plan-limits.js";
|
|
3
3
|
import { COPILOT_ATTENDED_INFERENCE_CREDIT_CEILING, DEFAULT_AUTO_RUN_BATCH_CREDIT_CEILING, DEFAULT_BYOK_COLUMN_RUN_MAX_ROWS, DEFAULT_BYOK_PROVIDER_DAILY_CALL_CAP, DEFAULT_TRIGGER_RUN_CREDIT_CEILING, copilotApprovalFreeAllowanceForBand, resolveOrgDailySpendGuard, resolveSpendSafetyPlanTier, } from "./spend-safety.js";
|
|
4
4
|
import { isRepricingInForce, tenthOfMonthlyCreditsRoundedHalfUp, } from "./repricing.js";
|
|
5
|
-
import { describeWorkspaceTableCapacityStatus, resolveWorkspaceTableCapacity, } from "./
|
|
5
|
+
import { describeWorkspaceTableCapacityStatus, resolveWorkspaceTableCapacity, } from "./tables/capacity.js";
|
|
6
6
|
export const PLAN_BAND_ORDER = [
|
|
7
7
|
"free",
|
|
8
8
|
"49",
|
|
@@ -104,7 +104,7 @@ export type PlanLimits = {
|
|
|
104
104
|
* capacity and the workspace-wide envelope.
|
|
105
105
|
*/
|
|
106
106
|
export declare const TABLE_IMPORT_ROW_LIMIT: number;
|
|
107
|
-
export { VERCEL_REQUEST_BODY_LIMIT_BYTES } from "./import-limits.js";
|
|
107
|
+
export { VERCEL_REQUEST_BODY_LIMIT_BYTES } from "./tables/import-limits.js";
|
|
108
108
|
/**
|
|
109
109
|
* OXYGEN's own JSON-body ceiling for every `/api/cli/*` route (enforced by
|
|
110
110
|
* `assertCliJsonBodyWithinLimit` on the content-length header). Shared so the CLI
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveBasePricingPlan } from "./billing.js";
|
|
2
2
|
import { OxygenError } from "./cli-result.js";
|
|
3
|
-
import { WORKSPACE_TABLE_CAPACITY } from "./
|
|
3
|
+
import { WORKSPACE_TABLE_CAPACITY } from "./tables/capacity.js";
|
|
4
4
|
import { findRepricedValue, repricedValue } from "./repricing.js";
|
|
5
5
|
import { CONNECTION_CEILING_ABOVE_DEFAULT_APPROVAL_KIND } from "./connection-approval.js";
|
|
6
6
|
export { CONNECTION_CEILING_ABOVE_DEFAULT_APPROVAL_KIND } from "./connection-approval.js";
|
|
@@ -25,8 +25,8 @@ const MIB = 1024 * 1024;
|
|
|
25
25
|
export const TABLE_IMPORT_ROW_LIMIT = WORKSPACE_TABLE_CAPACITY.tableRowLimit;
|
|
26
26
|
// The platform request-body ceiling belongs to the same question as the import
|
|
27
27
|
// ceilings below ("how big can an import be"), but it must stay importable from a
|
|
28
|
-
// browser bundle, so it is defined in ./import-limits and re-exported here.
|
|
29
|
-
export { VERCEL_REQUEST_BODY_LIMIT_BYTES } from "./import-limits.js";
|
|
28
|
+
// browser bundle, so it is defined in ./tables/import-limits and re-exported here.
|
|
29
|
+
export { VERCEL_REQUEST_BODY_LIMIT_BYTES } from "./tables/import-limits.js";
|
|
30
30
|
/**
|
|
31
31
|
* OXYGEN's own JSON-body ceiling for every `/api/cli/*` route (enforced by
|
|
32
32
|
* `assertCliJsonBodyWithinLimit` on the content-length header). Shared so the CLI
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const REDIS_ENDPOINT_MAP_ENV = "OXYGEN_REDIS_ENDPOINT_MAP";
|
|
2
|
+
export type RedisEndpoint = {
|
|
3
|
+
host: string;
|
|
4
|
+
port: number;
|
|
5
|
+
};
|
|
6
|
+
export declare function readRedisEndpointMap(env?: NodeJS.ProcessEnv): ReadonlyMap<string, RedisEndpoint>;
|
|
7
|
+
/** The URL with a mapped alias replaced by its endpoint; an IP literal is returned unchanged. */
|
|
8
|
+
export declare function applyRedisEndpointMap(url: URL, env?: NodeJS.ProcessEnv): URL;
|
|
9
|
+
/** String form for clients that take a Redis URL; unparseable input is left to the caller's own validation. */
|
|
10
|
+
export declare function mapRedisUrl(raw: string, env?: NodeJS.ProcessEnv): string;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Remote-site Redis addressing for BullMQ roles.
|
|
3
|
+
*
|
|
4
|
+
* Queue and quota Redis URLs name Swarm overlay aliases (`oxygen-worker-redis`,
|
|
5
|
+
* `oxygen-worker-redis-prod`) that resolve only on the queue site's own Swarm.
|
|
6
|
+
* A role running on the other box reaches the same Redis over the vRack, so
|
|
7
|
+
* `OXYGEN_REDIS_ENDPOINT_MAP` (a non-secret selector rendered by
|
|
8
|
+
* ops/selfhost/worker-queue/placement.py) maps each alias to `host:port`:
|
|
9
|
+
*
|
|
10
|
+
* oxygen-worker-redis=172.16.77.11:16379,oxygen-worker-redis-prod=172.16.77.11:16380
|
|
11
|
+
*
|
|
12
|
+
* Credentials stay in the unchanged secret URL. An unset map changes nothing.
|
|
13
|
+
* A malformed map, or a set map that does not name the URL's overlay host,
|
|
14
|
+
* throws, so a remote role never dials a name its own Swarm cannot resolve
|
|
15
|
+
* (or, worse, one it resolves to a different Redis).
|
|
16
|
+
*/
|
|
17
|
+
const ALIAS = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/;
|
|
18
|
+
const IPV4 = /^\d{1,3}(?:\.\d{1,3}){3}$/;
|
|
19
|
+
const HOST = /^(?:\d{1,3}(?:\.\d{1,3}){3}|[a-z0-9](?:[a-z0-9.-]{0,251}[a-z0-9])?)$/;
|
|
20
|
+
export const REDIS_ENDPOINT_MAP_ENV = "OXYGEN_REDIS_ENDPOINT_MAP";
|
|
21
|
+
export function readRedisEndpointMap(env = process.env) {
|
|
22
|
+
const raw = env[REDIS_ENDPOINT_MAP_ENV]?.trim();
|
|
23
|
+
const map = new Map();
|
|
24
|
+
if (!raw)
|
|
25
|
+
return map;
|
|
26
|
+
for (const entry of raw.split(",")) {
|
|
27
|
+
const [, alias = "", host = "", rawPort = ""] = /^([^=]+)=([^:]+):(\d{1,5})$/.exec(entry.trim()) ?? [];
|
|
28
|
+
const port = Number(rawPort);
|
|
29
|
+
if (!ALIAS.test(alias) || !HOST.test(host) || !Number.isInteger(port) || port < 1 || port > 65_535 || map.has(alias)) {
|
|
30
|
+
throw new Error(`Invalid ${REDIS_ENDPOINT_MAP_ENV}`);
|
|
31
|
+
}
|
|
32
|
+
map.set(alias, { host, port });
|
|
33
|
+
}
|
|
34
|
+
return map;
|
|
35
|
+
}
|
|
36
|
+
/** The URL with a mapped alias replaced by its endpoint; an IP literal is returned unchanged. */
|
|
37
|
+
export function applyRedisEndpointMap(url, env = process.env) {
|
|
38
|
+
const map = readRedisEndpointMap(env);
|
|
39
|
+
if (map.size === 0)
|
|
40
|
+
return url;
|
|
41
|
+
const endpoint = map.get(url.hostname);
|
|
42
|
+
if (!endpoint) {
|
|
43
|
+
if (IPV4.test(url.hostname))
|
|
44
|
+
return url;
|
|
45
|
+
throw new Error(`${REDIS_ENDPOINT_MAP_ENV} does not map the Redis host this role dials`);
|
|
46
|
+
}
|
|
47
|
+
const mapped = new URL(url.href);
|
|
48
|
+
mapped.hostname = endpoint.host;
|
|
49
|
+
mapped.port = String(endpoint.port);
|
|
50
|
+
return mapped;
|
|
51
|
+
}
|
|
52
|
+
/** String form for clients that take a Redis URL; unparseable input is left to the caller's own validation. */
|
|
53
|
+
export function mapRedisUrl(raw, env = process.env) {
|
|
54
|
+
let url;
|
|
55
|
+
try {
|
|
56
|
+
url = new URL(raw);
|
|
57
|
+
}
|
|
58
|
+
catch {
|
|
59
|
+
return raw;
|
|
60
|
+
}
|
|
61
|
+
const mapped = applyRedisEndpointMap(url, env);
|
|
62
|
+
return mapped === url ? raw : mapped.href;
|
|
63
|
+
}
|
|
@@ -125,7 +125,7 @@ const GIB = 1024 ** 3;
|
|
|
125
125
|
// after the capacity test at 5M and 10M rows), so only
|
|
126
126
|
// free, $49 and $99 appear here. The database warning is PROPOSED P-48: two
|
|
127
127
|
// thirds of the hard limit, rounded down to a whole byte.
|
|
128
|
-
// `packages/shared/src/
|
|
128
|
+
// `packages/shared/src/tables/capacity.ts` resolves these; a test pins each
|
|
129
129
|
// `after` to the ratified ladder there, so the two cannot drift.
|
|
130
130
|
const STORAGE_CUTS = [
|
|
131
131
|
{ band: "free", tableRows: 100_000, workspaceRows: 1_000_000, databaseBytes: 2 * GIB },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mailboxInfrastructureDailyCap } from "./email-infrastructure-policy.js";
|
|
2
|
-
import { EMAIL_DELIVERABILITY_DEFAULTS } from "./email-deliverability-policy.js";
|
|
2
|
+
import { EMAIL_DELIVERABILITY_DEFAULTS } from "./mailboxes/email-deliverability-policy.js";
|
|
3
3
|
/**
|
|
4
4
|
* The daily cap a new mailbox gets when nobody names one. New mailboxes were
|
|
5
5
|
* created at 18 a day before the repricing, so this is an increase and is live.
|
|
@@ -7,7 +7,7 @@ const SUMMARY_FIELDS = new Set([
|
|
|
7
7
|
"deferred_count", "retrying_count", "credit_limit_skipped", "throughput", "bottlenecks",
|
|
8
8
|
"provider_errors", "provider_health", "provider_timeout_breaker", "classification_review",
|
|
9
9
|
"worker_health", "queue_backend", "execution_backend", "max_concurrency_requested",
|
|
10
|
-
"max_concurrency_effective", "enrichment_rollup", "idempotent_replay",
|
|
10
|
+
"max_concurrency_effective", "enrichment_rollup", "idempotent_replay", "item_history", "resume",
|
|
11
11
|
]);
|
|
12
12
|
/** Project the already-authorized, customer-safe native run; no provider or retry effects. */
|
|
13
13
|
export function tableRunSummary(run) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PlanBand } from "
|
|
2
|
-
import { type RepricingOptions } from "
|
|
1
|
+
import type { PlanBand } from "../plan-band.js";
|
|
2
|
+
import { type RepricingOptions } from "../repricing.js";
|
|
3
3
|
/** Row capacity warnings start at 80% of the limit currently enforced. */
|
|
4
4
|
export declare const TABLE_ROW_CAPACITY_WARNING_RATIO = 0.8;
|
|
5
5
|
export type TableRowCapacityFlags = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { findRepricedValue, readRepricingSwitch, repricedValue, } from "
|
|
1
|
+
import { findRepricedValue, readRepricingSwitch, repricedValue, } from "../repricing.js";
|
|
2
2
|
const GIB = 1024 ** 3;
|
|
3
3
|
/** Row capacity warnings start at 80% of the limit currently enforced. */
|
|
4
4
|
export const TABLE_ROW_CAPACITY_WARNING_RATIO = 0.8;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* Pure and client-safe: the tenant-db normalizer, the runner, the web editor,
|
|
22
22
|
* the CLI and the MCP server all read the same shape from here.
|
|
23
23
|
*/
|
|
24
|
-
import { isRecord } from "
|
|
24
|
+
import { isRecord } from "../type-guards.js";
|
|
25
25
|
export const COLUMN_DECISION_ENGINE = "system_one";
|
|
26
26
|
export const COLUMN_DECISION_MODES = ["labels", "yes_no", "score"];
|
|
27
27
|
export const COLUMN_DECISION_GROUNDINGS = ["workspace", "none"];
|
package/node_modules/@oxygen/shared/dist/{enrichment-intents.d.ts → tables/enrichment-intents.d.ts}
RENAMED
|
@@ -15,7 +15,7 @@ export type EnrichmentIntentOutputField = {
|
|
|
15
15
|
/**
|
|
16
16
|
* The column the row's printed CLI/MCP add path creates and a run writes
|
|
17
17
|
* (the web picker names a column after the label typed in its editor).
|
|
18
|
-
* apps/web/src/lib/enrichment-catalogue-add-paths.test.ts builds each add
|
|
18
|
+
* apps/web/src/lib/tables/enrichment-catalogue-add-paths.test.ts builds each add
|
|
19
19
|
* path and fails on a key it does not write.
|
|
20
20
|
*/
|
|
21
21
|
key: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { extname } from "node:path";
|
|
2
2
|
import readXlsxFile from "read-excel-file/node";
|
|
3
3
|
import { inferImportColumnDataType, parseDateValueToIso, } from "./column-types.js";
|
|
4
|
-
import { OxygenError } from "
|
|
5
|
-
import { makeUniqueIdentifier, toSnakeIdentifier } from "
|
|
4
|
+
import { OxygenError } from "../cli-result.js";
|
|
5
|
+
import { makeUniqueIdentifier, toSnakeIdentifier } from "../identifiers.js";
|
|
6
6
|
import { MAX_BUFFERED_IMPORT_PARSE_BYTES, bufferedImportTooLargeMessage, isBufferedOnlyImportFormat, } from "./import-limits.js";
|
|
7
7
|
export { IMPORT_OBJECT_SINGLE_PUT_MAX_BYTES, MAX_BUFFERED_IMPORT_PARSE_BYTES, MAX_URL_IMPORT_BYTES, bufferedImportTooLargeMessage, isBufferedOnlyImportFormat, } from "./import-limits.js";
|
|
8
8
|
export function inferRowsFileFormat(path) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { agentsEnabled, agentsEnabledIn } from "./agents-enabled.js";
|
|
2
|
-
import { guidedActivationEnabled } from "./guided-activation.js";
|
|
2
|
+
import { guidedActivationEnabled } from "./onboarding/guided-activation.js";
|
|
3
3
|
import { isStaffEmail } from "./staff.js";
|
|
4
4
|
export function teammatesAudience(env = process.env) {
|
|
5
5
|
if (env.OXYGEN_DEPLOY_ENV !== "selfhost-dev" && env.OXYGEN_DEPLOY_ENV !== "selfhost-prod")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { linkedinPostIdFromUrl, looksLikeUrlIdentifier } from "
|
|
1
|
+
import { linkedinPostIdFromUrl, looksLikeUrlIdentifier } from "../tables/linkedin-url.js";
|
|
2
2
|
/** Provider aliases for the same public post must share one deduplication key. */
|
|
3
3
|
export function normalizeLinkedInAmplificationTargetId(value) {
|
|
4
4
|
const raw = value.trim();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const OXYGEN_BUILD_VERSION = "1.1014.
|
|
1
|
+
export declare const OXYGEN_BUILD_VERSION = "1.1014.2100";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// GENERATED by scripts/ci/version-stamp.mjs from VERSION + git history. Do not edit; do not commit.
|
|
2
|
-
export const OXYGEN_BUILD_VERSION = "1.1014.
|
|
2
|
+
export const OXYGEN_BUILD_VERSION = "1.1014.2100";
|
|
@@ -49,7 +49,7 @@ export const OXYGEN_VERSION = OXYGEN_BUILD_VERSION;
|
|
|
49
49
|
// Since 2026-09-28 the release-preparation step advances this literal to the
|
|
50
50
|
// highest CLI version published on npm for at least 30 days. It never lowers
|
|
51
51
|
// the floor. The source change lands on dev before the next production release.
|
|
52
|
-
export const OXYGEN_MINIMUM_CLI_VERSION = "1.
|
|
52
|
+
export const OXYGEN_MINIMUM_CLI_VERSION = "1.1010.721";
|
|
53
53
|
// The internal GEO export first gains required pagination in this dev version.
|
|
54
54
|
// Earlier pilot clients would save a partial file without its continuation.
|
|
55
55
|
export const GEO_EXPORT_MINIMUM_CLI_VERSION = "1.1013.0";
|
|
@@ -3,7 +3,7 @@ import { CRM_SIGNAL_WORKFLOW_EVENT_DEFINITIONS, CRM_WORKFLOW_EVENT_SOURCE, } fro
|
|
|
3
3
|
import { SEQUENCE_CONTACT_ACTIVITY_EVENT, SEQUENCE_CRM_EVENT_DEFINITIONS, SEQUENCE_WORKFLOW_EVENT_SOURCE, } from "./sequence-crm-events.js";
|
|
4
4
|
import { SEQUENCE_ENROLLMENT_TERMINAL_EVENT, SEQUENCE_TERMINAL_EVENT_SOURCE, SEQUENCE_TERMINAL_STATUSES, } from "./sequence-terminal-events.js";
|
|
5
5
|
import { NOTETAKER_MEETING_COMPLETED_EVENT, NOTETAKER_MEETING_COMPLETED_PAYLOAD_FIELDS, NOTETAKER_WORKFLOW_EVENT_SOURCE, } from "./notetaker-events.js";
|
|
6
|
-
import { BLACKLIST_LISTING_CHANGED_EVENT, BLACKLIST_LISTING_CHANGED_PAYLOAD_FIELDS, DELIVERABILITY_WORKFLOW_EVENT_SOURCE, } from "./deliverability-blacklist.js";
|
|
6
|
+
import { BLACKLIST_LISTING_CHANGED_EVENT, BLACKLIST_LISTING_CHANGED_PAYLOAD_FIELDS, DELIVERABILITY_WORKFLOW_EVENT_SOURCE, } from "./mailboxes/deliverability-blacklist.js";
|
|
7
7
|
import { networkMiningEnabled } from "./network-mining.js";
|
|
8
8
|
import { NETWORK_MINING_SIGNAL_EVENT_DEFINITIONS } from "./network-mining-signals.js";
|
|
9
9
|
import { RESEARCH_FINDING_EVENT_DEFINITION } from "./research-findings.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WORKSPACE_PLACEMENT_SCHEDULE, planPlacementSlots } from "./workspace-placement-schedule.js";
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
import { CliHttpError } from "./cli-http-error.js";
|
|
4
|
-
import { placementCopyIssue } from "./placement-copy.js";
|
|
4
|
+
import { placementCopyIssue } from "./mailboxes/placement-copy.js";
|
|
5
5
|
const UUID = /^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$/i;
|
|
6
6
|
export function workspacePlacementId(value) { return typeof value === "string" && UUID.test(value); }
|
|
7
7
|
function invalid(message) { throw new CliHttpError(400, "workspace_test_invalid", message); }
|
|
@@ -26,16 +26,6 @@
|
|
|
26
26
|
"import": "./dist/directory.js",
|
|
27
27
|
"default": "./dist/directory.js"
|
|
28
28
|
},
|
|
29
|
-
"./file-import": {
|
|
30
|
-
"types": "./dist/file-import.d.ts",
|
|
31
|
-
"import": "./dist/file-import.js",
|
|
32
|
-
"default": "./dist/file-import.js"
|
|
33
|
-
},
|
|
34
|
-
"./import-limits": {
|
|
35
|
-
"types": "./dist/import-limits.d.ts",
|
|
36
|
-
"import": "./dist/import-limits.js",
|
|
37
|
-
"default": "./dist/import-limits.js"
|
|
38
|
-
},
|
|
39
29
|
"./inbox-avatar-url": {
|
|
40
30
|
"types": "./dist/inbox-avatar-url.d.ts",
|
|
41
31
|
"import": "./dist/inbox-avatar-url.js",
|
|
@@ -61,11 +51,6 @@
|
|
|
61
51
|
"import": "./dist/member-columns.js",
|
|
62
52
|
"default": "./dist/member-columns.js"
|
|
63
53
|
},
|
|
64
|
-
"./column-types": {
|
|
65
|
-
"types": "./dist/column-types.d.ts",
|
|
66
|
-
"import": "./dist/column-types.js",
|
|
67
|
-
"default": "./dist/column-types.js"
|
|
68
|
-
},
|
|
69
54
|
"./json-path": {
|
|
70
55
|
"types": "./dist/json-path.d.ts",
|
|
71
56
|
"import": "./dist/json-path.js",
|
|
@@ -156,16 +141,6 @@
|
|
|
156
141
|
"import": "./dist/search-vocab.js",
|
|
157
142
|
"default": "./dist/search-vocab.js"
|
|
158
143
|
},
|
|
159
|
-
"./signup-lead-webhook": {
|
|
160
|
-
"types": "./dist/signup-lead-webhook.d.ts",
|
|
161
|
-
"import": "./dist/signup-lead-webhook.js",
|
|
162
|
-
"default": "./dist/signup-lead-webhook.js"
|
|
163
|
-
},
|
|
164
|
-
"./signup-lead-payload": {
|
|
165
|
-
"types": "./dist/signup-lead-payload.d.ts",
|
|
166
|
-
"import": "./dist/signup-lead-payload.js",
|
|
167
|
-
"default": "./dist/signup-lead-payload.js"
|
|
168
|
-
},
|
|
169
144
|
"./knowledge-constants": {
|
|
170
145
|
"types": "./dist/knowledge-constants.d.ts",
|
|
171
146
|
"import": "./dist/knowledge-constants.js",
|
|
@@ -247,21 +222,11 @@
|
|
|
247
222
|
"import": "./dist/workspace-file-storage.js",
|
|
248
223
|
"default": "./dist/workspace-file-storage.js"
|
|
249
224
|
},
|
|
250
|
-
"./company-enrichment-fields": {
|
|
251
|
-
"types": "./dist/company-enrichment-fields.d.ts",
|
|
252
|
-
"import": "./dist/company-enrichment-fields.js",
|
|
253
|
-
"default": "./dist/company-enrichment-fields.js"
|
|
254
|
-
},
|
|
255
225
|
"./*": {
|
|
256
226
|
"types": "./dist/*.d.ts",
|
|
257
227
|
"import": "./dist/*.js",
|
|
258
228
|
"default": "./dist/*.js"
|
|
259
229
|
},
|
|
260
|
-
"./enrichment-intents": {
|
|
261
|
-
"types": "./dist/enrichment-intents.d.ts",
|
|
262
|
-
"import": "./dist/enrichment-intents.js",
|
|
263
|
-
"default": "./dist/enrichment-intents.js"
|
|
264
|
-
},
|
|
265
230
|
"./decision-ledger": {
|
|
266
231
|
"types": "./dist/decision-ledger.d.ts",
|
|
267
232
|
"import": "./dist/decision-ledger.js",
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/@oxygen/shared/dist/{placement-copy.d.ts → mailboxes/placement-copy.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/@oxygen/shared/dist/{placement-history.js → mailboxes/placement-history.js}
RENAMED
|
File without changes
|
/package/node_modules/@oxygen/shared/dist/{placement-report.d.ts → mailboxes/placement-report.d.ts}
RENAMED
|
File without changes
|
/package/node_modules/@oxygen/shared/dist/{placement-report.js → mailboxes/placement-report.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/@oxygen/shared/dist/{warmup-metrics.d.ts → mailboxes/warmup-metrics.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
/package/node_modules/@oxygen/shared/dist/{onboarding-first-leads.js → onboarding/first-leads.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/@oxygen/shared/dist/{onboarding-research.d.ts → onboarding/research.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/@oxygen/shared/dist/{column-decision.d.ts → tables/column-decision.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/node_modules/@oxygen/shared/dist/{enrichment-intents.js → tables/enrichment-intents.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|