@oxygen-agent/cli 1.1015.29 → 1.1017.21
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/command-families/tables/automation.js +1 -1
- package/dist/command-families/tables/import-batches.js +1 -1
- package/dist/command-families/tables/import-values.js +1 -1
- package/dist/command-families/tables/register-reads.js +2 -2
- package/dist/command-manifest.js +9 -0
- package/dist/command-support.js +2 -2
- package/dist/commands/agent.js +2 -2
- package/dist/commands/billing.js +1 -1
- package/dist/commands/budget.js +1 -1
- package/dist/commands/columns.js +2 -2
- package/dist/commands/copilot.js +9 -3
- package/dist/commands/knowledge.js +3 -3
- package/dist/commands/table-runs.js +1 -1
- package/dist/commands/verify.js +1 -1
- package/dist/customer-operation-commands.js +1 -0
- package/dist/knowledge-mirror.js +1 -1
- package/dist/visual-commands.js +57 -8
- package/dist/workspace-skill-commands.d.ts +1 -1
- package/dist/workspace-skill-commands.js +1 -1
- package/node_modules/@oxygen/formula/dist/expression.d.ts +7 -0
- package/node_modules/@oxygen/formula/dist/expression.js +29 -1
- package/node_modules/@oxygen/formula/dist/formula-functions.d.ts +2 -0
- package/node_modules/@oxygen/formula/dist/formula-functions.js +6 -2
- package/node_modules/@oxygen/shared/dist/agents/reply-oxygent.js +1 -1
- package/node_modules/@oxygen/shared/dist/agents/sessions.js +2 -2
- package/node_modules/@oxygen/shared/dist/{billing.js → billing/billing.js} +4 -4
- package/node_modules/@oxygen/shared/dist/{credit-guidance.js → billing/credit-guidance.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{billing-money.js → billing/money.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{plan-band.d.ts → billing/plan-band.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{plan-band.js → billing/plan-band.js} +2 -2
- package/node_modules/@oxygen/shared/dist/{plan-limits.d.ts → billing/plan-limits.d.ts} +2 -2
- package/node_modules/@oxygen/shared/dist/{plan-limits.js → billing/plan-limits.js} +5 -5
- package/node_modules/@oxygen/shared/dist/{pricing-sheet.d.ts → billing/pricing-sheet.d.ts} +9 -9
- package/node_modules/@oxygen/shared/dist/{pricing-sheet.js → billing/pricing-sheet.js} +10 -10
- package/node_modules/@oxygen/shared/dist/{repricing.js → billing/repricing.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{sending-seats.d.ts → billing/sending-seats.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{sending-seats.js → billing/sending-seats.js} +1 -1
- package/node_modules/@oxygen/shared/dist/capability-discovery.d.ts +2 -2
- package/node_modules/@oxygen/shared/dist/capability-discovery.js +3 -3
- package/node_modules/@oxygen/shared/dist/capability-intents/sourcing-and-provider-tools.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/capability-intents/visual-rendering.rules.js +3 -2
- package/node_modules/@oxygen/shared/dist/capability-routes/visual-rendering.js +6 -6
- package/node_modules/@oxygen/shared/dist/contracts/browser-operations.js +1 -1
- package/node_modules/@oxygen/shared/dist/contracts/connectors.js +1 -1
- package/node_modules/@oxygen/shared/dist/contracts/copilot-sessions.d.ts +27 -0
- package/node_modules/@oxygen/shared/dist/contracts/copilot-sessions.js +13 -0
- package/node_modules/@oxygen/shared/dist/contracts/customer-operations.js +2 -1
- package/node_modules/@oxygen/shared/dist/contracts/knowledge-content-reads.js +1 -1
- package/node_modules/@oxygen/shared/dist/contracts/knowledge-proposal-reads.js +1 -1
- package/node_modules/@oxygen/shared/dist/contracts/limits-read.js +2 -2
- package/node_modules/@oxygen/shared/dist/contracts/table-query-raw.d.ts +10 -0
- package/node_modules/@oxygen/shared/dist/contracts/table-query-raw.js +15 -0
- package/node_modules/@oxygen/shared/dist/contracts/teammates.js +2 -2
- package/node_modules/@oxygen/shared/dist/{copilot-access.js → copilot/access.js} +2 -2
- package/node_modules/@oxygen/shared/dist/{copilot-journeys.js → copilot/journeys.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{copilot-playbooks.d.ts → copilot/playbooks.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{copilot-playbooks.js → copilot/playbooks.js} +1 -1
- package/node_modules/@oxygen/shared/dist/copilot-journeys.generated.js +1 -1
- package/node_modules/@oxygen/shared/dist/copilot-playbooks.generated.js +1 -1
- package/node_modules/@oxygen/shared/dist/diagnostic-spool.js +10 -1
- package/node_modules/@oxygen/shared/dist/feature-gates.d.ts +2 -2
- package/node_modules/@oxygen/shared/dist/feature-gates.js +2 -2
- package/node_modules/@oxygen/shared/dist/hosted-ai.js +1 -1
- package/node_modules/@oxygen/shared/dist/index.d.ts +24 -24
- package/node_modules/@oxygen/shared/dist/index.js +24 -24
- package/node_modules/@oxygen/shared/dist/{knowledge-bases.js → knowledge/bases.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{knowledge-bootstrap.d.ts → knowledge/bootstrap.d.ts} +8 -2
- package/node_modules/@oxygen/shared/dist/{knowledge-bootstrap.js → knowledge/bootstrap.js} +9 -3
- package/node_modules/@oxygen/shared/dist/{knowledge-links.js → knowledge/links.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{knowledge-markdown.js → knowledge/markdown.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{knowledge-repository.js → knowledge/repository.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{knowledge-seed-content.d.ts → knowledge/seed-content.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{knowledge-vault-markdown.js → knowledge/vault-markdown.js} +1 -1
- package/node_modules/@oxygen/shared/dist/log-collapse.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/log-collapse.js +1 -1
- package/node_modules/@oxygen/shared/dist/mailboxes/freemail-domains.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/mailboxes/freemail-domains.js +1 -1
- package/node_modules/@oxygen/shared/dist/media-project.d.ts +34 -0
- package/node_modules/@oxygen/shared/dist/media-project.js +58 -0
- package/node_modules/@oxygen/shared/dist/onboarding/research.d.ts +25 -1
- package/node_modules/@oxygen/shared/dist/onboarding/research.js +27 -1
- package/node_modules/@oxygen/shared/dist/pricing-snapshot.generated.js +1 -1
- package/node_modules/@oxygen/shared/dist/{publishing-approval.js → publishing/approval.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{skill-play-routing.js → recipes/skill-play-routing.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{workspace-skills.js → recipes/workspace-skills.js} +2 -2
- package/node_modules/@oxygen/shared/dist/search-vocab.d.ts +1 -0
- package/node_modules/@oxygen/shared/dist/search-vocab.js +15 -2
- package/node_modules/@oxygen/shared/dist/sequences/linkedin-quota-denial.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/sequences/linkedin-quota-denial.js +1 -1
- package/node_modules/@oxygen/shared/dist/sequences/sending-limits.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/sequences/whatsapp-sender-limits.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/sequences/whatsapp-sender-limits.js +1 -1
- package/node_modules/@oxygen/shared/dist/{network-mining-approval.js → signals/network-mining-approval.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{network-mining.js → signals/network-mining.js} +1 -1
- package/node_modules/@oxygen/shared/dist/skill-plays.generated.js +1 -1
- package/node_modules/@oxygen/shared/dist/spend-safety.d.ts +4 -4
- package/node_modules/@oxygen/shared/dist/spend-safety.js +1 -1
- package/node_modules/@oxygen/shared/dist/tables/capacity.d.ts +2 -2
- package/node_modules/@oxygen/shared/dist/tables/capacity.js +1 -1
- package/node_modules/@oxygen/shared/dist/{cell-format.js → tables/cell-format.js} +2 -2
- package/node_modules/@oxygen/shared/dist/{column-autofill.js → tables/column-autofill.js} +1 -1
- package/node_modules/@oxygen/shared/dist/tables/column-output-fields.js +1 -1
- package/node_modules/@oxygen/shared/dist/tables/company-enrichment-fields.js +1 -1
- package/node_modules/@oxygen/shared/dist/tables/enrichment-intents.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/tables/enrichment-intents.js +1 -1
- package/node_modules/@oxygen/shared/dist/{table-field-types.d.ts → tables/field-types.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{table-field-types.js → tables/field-types.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{table-filter-operators.js → tables/filter-operators.js} +1 -1
- package/node_modules/@oxygen/shared/dist/tables/linkedin-payload-fields.d.ts +78 -0
- package/node_modules/@oxygen/shared/dist/tables/linkedin-payload-fields.js +182 -0
- package/node_modules/@oxygen/shared/dist/{research-findings.js → tables/research-findings.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{research-output-contract.js → tables/research-output-contract.js} +1 -1
- package/node_modules/@oxygen/shared/dist/user-capability-routing.js +27 -0
- 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/visual-render.d.ts +14 -3
- package/node_modules/@oxygen/shared/dist/visual-render.js +43 -2
- package/node_modules/@oxygen/shared/dist/workflows/workspace-event-catalog.js +3 -3
- package/node_modules/@oxygen/shared/dist/workspace-file-storage.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/workspace-file-storage.js +3 -2
- package/node_modules/@oxygen/shared/package.json +0 -65
- package/node_modules/@oxygen/workflows/dist/recipe-timestamp.d.ts +1 -1
- package/node_modules/@oxygen/workflows/dist/recipe-timestamp.js +1 -1
- package/package.json +1 -1
- /package/node_modules/@oxygen/shared/dist/{billing-anchors.d.ts → billing/anchors.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{billing-anchors.js → billing/anchors.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{billing.d.ts → billing/billing.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{budget-scopes.d.ts → billing/budget-scopes.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{budget-scopes.js → billing/budget-scopes.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{byok-connect.d.ts → billing/byok-connect.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{byok-connect.js → billing/byok-connect.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{cost-estimate-view.d.ts → billing/cost-estimate-view.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{cost-estimate-view.js → billing/cost-estimate-view.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{cost-estimate.d.ts → billing/cost-estimate.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{cost-estimate.js → billing/cost-estimate.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{credit-gate.d.ts → billing/credit-gate.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{credit-gate.js → billing/credit-gate.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{credit-guidance.d.ts → billing/credit-guidance.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{credit-topup-review.d.ts → billing/credit-topup-review.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{credit-topup-review.js → billing/credit-topup-review.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{first-month-offer-window.d.ts → billing/first-month-offer-window.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{first-month-offer-window.js → billing/first-month-offer-window.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{first-month-offer.d.ts → billing/first-month-offer.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{first-month-offer.js → billing/first-month-offer.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{guided-trial-billing.d.ts → billing/guided-trial-billing.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{guided-trial-billing.js → billing/guided-trial-billing.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{billing-money.d.ts → billing/money.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{partner-coupon-bonus.d.ts → billing/partner-coupon-bonus.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{partner-coupon-bonus.js → billing/partner-coupon-bonus.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{plan-capabilities.d.ts → billing/plan-capabilities.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{plan-capabilities.js → billing/plan-capabilities.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{plan-limits-view.d.ts → billing/plan-limits-view.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{plan-limits-view.js → billing/plan-limits-view.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{repricing.d.ts → billing/repricing.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{sending-seat-capacity.d.ts → billing/sending-seat-capacity.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{sending-seat-capacity.js → billing/sending-seat-capacity.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{stripe-price-catalog.d.ts → billing/stripe-price-catalog.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{stripe-price-catalog.js → billing/stripe-price-catalog.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{stripe-subscription-kind.d.ts → billing/stripe-subscription-kind.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{stripe-subscription-kind.js → billing/stripe-subscription-kind.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{copilot-access.d.ts → copilot/access.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{copilot-errors.d.ts → copilot/errors.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{copilot-errors.js → copilot/errors.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{copilot-journeys.d.ts → copilot/journeys.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{copilot-plan.d.ts → copilot/plan.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{copilot-plan.js → copilot/plan.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{copilot-questions.d.ts → copilot/questions.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{copilot-questions.js → copilot/questions.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{knowledge-bases.d.ts → knowledge/bases.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{knowledge-brain-draft.d.ts → knowledge/brain-draft.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{knowledge-brain-draft.js → knowledge/brain-draft.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{knowledge-constants.d.ts → knowledge/constants.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{knowledge-constants.js → knowledge/constants.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{knowledge-links.d.ts → knowledge/links.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{knowledge-markdown.d.ts → knowledge/markdown.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{knowledge-repository.d.ts → knowledge/repository.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{knowledge-seed-content.js → knowledge/seed-content.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{knowledge-vault-markdown.d.ts → knowledge/vault-markdown.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{publishing-approval.d.ts → publishing/approval.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{publishing-limits.d.ts → publishing/limits.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{publishing-limits.js → publishing/limits.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{skill-play-routing.d.ts → recipes/skill-play-routing.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{workspace-skills.d.ts → recipes/workspace-skills.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{network-mining-approval.d.ts → signals/network-mining-approval.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{network-mining-signals.d.ts → signals/network-mining-signals.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{network-mining-signals.js → signals/network-mining-signals.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{network-mining.d.ts → signals/network-mining.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{cell-format.d.ts → tables/cell-format.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{clay-migration-auth-state.d.ts → tables/clay-migration-auth-state.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{clay-migration-auth-state.js → tables/clay-migration-auth-state.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{column-autofill.d.ts → tables/column-autofill.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{column-operation.d.ts → tables/column-operation.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{column-operation.js → tables/column-operation.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{email-verification-batch.d.ts → tables/email-verification-batch.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{email-verification-batch.js → tables/email-verification-batch.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{table-filter-operators.d.ts → tables/filter-operators.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-countries.d.ts → tables/linkedin-countries.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-countries.js → tables/linkedin-countries.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-country-timezones.d.ts → tables/linkedin-country-timezones.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-country-timezones.js → tables/linkedin-country-timezones.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{research-depth.d.ts → tables/research-depth.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{research-depth.js → tables/research-depth.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{research-findings.d.ts → tables/research-findings.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{research-output-contract.d.ts → tables/research-output-contract.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{table-run-summary.d.ts → tables/run-summary.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{table-run-summary.js → tables/run-summary.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The WhatsApp sender-limit overlay: the keys a WhatsApp account accepts and
|
|
3
3
|
* their defaults and hard maximums. One owner for the quota enforcer
|
|
4
|
-
* (packages/integrations/src/whatsapp-quota.ts), the limits route, the MCP and
|
|
4
|
+
* (packages/integrations/src/sequences/whatsapp-quota.ts), the limits route, the MCP and
|
|
5
5
|
* CLI surfaces and the web form (OXP-11.3.19): the MCP tool once advertised a
|
|
6
6
|
* chats_reads_per_day key the route silently dropped and maxima (400 reads,
|
|
7
7
|
* 7200 s spacing, 3600 s jitter) the quota never allowed.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The WhatsApp sender-limit overlay: the keys a WhatsApp account accepts and
|
|
3
3
|
* their defaults and hard maximums. One owner for the quota enforcer
|
|
4
|
-
* (packages/integrations/src/whatsapp-quota.ts), the limits route, the MCP and
|
|
4
|
+
* (packages/integrations/src/sequences/whatsapp-quota.ts), the limits route, the MCP and
|
|
5
5
|
* CLI surfaces and the web form (OXP-11.3.19): the MCP tool once advertised a
|
|
6
6
|
* chats_reads_per_day key the route silently dropped and maxima (400 reads,
|
|
7
7
|
* 7200 s spacing, 3600 s jitter) the quota never allowed.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// Founder decision 3 (2026-10-17) holds regardless of Auto-approve: the first launch of every Sequence needs a person.
|
|
8
8
|
// D8: under standing approval, "copy" is the prompt and voice revision, a person's review of at least 10 samples, and
|
|
9
9
|
// the automatic check below on every draft.
|
|
10
|
-
import { LINKEDIN_INVITE_NOTE_LIMIT_BASIC } from "
|
|
10
|
+
import { LINKEDIN_INVITE_NOTE_LIMIT_BASIC } from "../sequences/linkedin-sequences.js";
|
|
11
11
|
export const STANDING_APPROVAL_VERSION = 1;
|
|
12
12
|
export const PILOT_SAMPLE_MIN = 10;
|
|
13
13
|
export const BATCH_SAMPLE_MAX = 30;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isProductionData } from "
|
|
1
|
+
import { isProductionData } from "../deploy-env.js";
|
|
2
2
|
/**
|
|
3
3
|
* Network Mining is DEV-only (Philipp, 2026-10-17). Unknown tiers and production-shaped data are always denied,
|
|
4
4
|
* independent of NODE_ENV; the staff flag is set in Doppler's dev config.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// GENERATED by apps/web/scripts/generate-copilot-playbooks.ts from the play
|
|
2
|
-
// catalog (`skill`, `title`, `trigger_phrases` in apps/web/src/lib/agent-skill-plays.ts).
|
|
2
|
+
// catalog (`skill`, `title`, `trigger_phrases` in apps/web/src/lib/recipes/agent-skill-plays.ts).
|
|
3
3
|
// Do not edit by hand — run `npm run skills:metadata -w @oxygen/web`.
|
|
4
4
|
export const SKILL_PLAY_TRIGGERS_GENERATED = [
|
|
5
5
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { PlanTier } from "./billing.js";
|
|
2
|
-
import type { PlanBand } from "./plan-band.js";
|
|
3
|
-
import type { LimitsTier } from "./plan-limits.js";
|
|
4
|
-
import { type RepricingOptions } from "./repricing.js";
|
|
1
|
+
import type { PlanTier } from "./billing/billing.js";
|
|
2
|
+
import type { PlanBand } from "./billing/plan-band.js";
|
|
3
|
+
import type { LimitsTier } from "./billing/plan-limits.js";
|
|
4
|
+
import { type RepricingOptions } from "./billing/repricing.js";
|
|
5
5
|
/**
|
|
6
6
|
* Spend-safety defaults: plan-scaled ceilings applied when an autonomous
|
|
7
7
|
* spend path was armed WITHOUT an explicit cap. They restore the ADR-0011
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FREE_ORG_DAILY_GUARD_BLOCK_CREDITS, FREE_ORG_DAILY_GUARD_WARN_CREDITS, repricedValue, } from "./repricing.js";
|
|
1
|
+
import { FREE_ORG_DAILY_GUARD_BLOCK_CREDITS, FREE_ORG_DAILY_GUARD_WARN_CREDITS, repricedValue, } from "./billing/repricing.js";
|
|
2
2
|
/** Workflow run trigger types that fire without a human in the loop. */
|
|
3
3
|
export const AUTONOMOUS_WORKFLOW_TRIGGER_TYPES = new Set([
|
|
4
4
|
"cron",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PlanBand } from "../plan-band.js";
|
|
2
|
-
import { type RepricingOptions } from "../repricing.js";
|
|
1
|
+
import type { PlanBand } from "../billing/plan-band.js";
|
|
2
|
+
import { type RepricingOptions } from "../billing/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 "../repricing.js";
|
|
1
|
+
import { findRepricedValue, readRepricingSwitch, repricedValue, } from "../billing/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;
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* version strings, phone numbers, URLs): {@link rescueNumericText} returns
|
|
15
15
|
* null for those.
|
|
16
16
|
*/
|
|
17
|
-
import { columnOutputPrimaryField } from "./
|
|
18
|
-
import { isMarkdownColumnSemantic } from "./
|
|
17
|
+
import { columnOutputPrimaryField } from "./column-output-fields.js";
|
|
18
|
+
import { isMarkdownColumnSemantic } from "./select-options.js";
|
|
19
19
|
const DEFAULT_LOCALE = "en-US";
|
|
20
20
|
const INTEGER_RE = /^-?\d{1,15}$/;
|
|
21
21
|
const DECIMAL_RE = /^-?\d{1,15}(?:\.\d{1,9})?$/;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { professionalNetworkDataLabel } from "
|
|
1
|
+
import { professionalNetworkDataLabel } from "../data-suppliers.js";
|
|
2
2
|
function readString(definition, key) {
|
|
3
3
|
const value = definition?.[key];
|
|
4
4
|
return typeof value === "string" && value.trim() !== "" ? value : null;
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* may contain a dot or a space. Such a field carries `referenceable: false` and
|
|
27
27
|
* is display-only.
|
|
28
28
|
*/
|
|
29
|
-
import { buildResearchCellSchema, isResearchEnvelopeSchema, researchEvidenceRequired, deriveResearchOutputContract, usesServerManagedResearchSchema, } from "
|
|
29
|
+
import { buildResearchCellSchema, isResearchEnvelopeSchema, researchEvidenceRequired, deriveResearchOutputContract, usesServerManagedResearchSchema, } from "./research-output-contract.js";
|
|
30
30
|
import { isTemplateSafePath, parseJsonPath, readJsonPath } from "../json-path.js";
|
|
31
31
|
import { isRecord } from "../type-guards.js";
|
|
32
32
|
import { readString } from "../value-readers.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// resolve, with the vocabulary every surface shows for it.
|
|
3
3
|
//
|
|
4
4
|
// This is the single source of truth for the field list. The waterfall engine
|
|
5
|
-
// (packages/integrations/src/company-enrichment-waterfall.ts) owns HOW a field
|
|
5
|
+
// (packages/integrations/src/tables/company-enrichment-waterfall.ts) owns HOW a field
|
|
6
6
|
// is resolved — provider lanes, derived extractors, pricing — and reads its
|
|
7
7
|
// labels, column keys and data types from here; the CLI, the MCP descriptor,
|
|
8
8
|
// the `company_enrich` column preset (tenant-db) and the web column picker
|
|
@@ -28,7 +28,7 @@ export type EnrichmentIntentOutputField = {
|
|
|
28
28
|
*/
|
|
29
29
|
path?: string;
|
|
30
30
|
label: string;
|
|
31
|
-
/** `company.*` / `person.*` semantic type (packages/tenant-db/src/model.ts) or null. */
|
|
31
|
+
/** `company.*` / `person.*` semantic type (packages/tenant-db/src/records/model.ts) or null. */
|
|
32
32
|
semanticType: string | null;
|
|
33
33
|
dataType: "text" | "numeric" | "boolean" | "jsonb" | "timestamptz";
|
|
34
34
|
/** Read from another field's payload at 0 credits; never fetched on its own. */
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// registry) names the provider chain. This leaf is the customer-facing half
|
|
13
13
|
// and carries NO provider names in labels or descriptions and NO prices —
|
|
14
14
|
// provider order and prices are projected server-side from the registry and
|
|
15
|
-
// the pricing resolver (apps/web/src/lib/enrichment-column-catalog.ts).
|
|
15
|
+
// the pricing resolver (apps/web/src/lib/tables/enrichment-column-catalog.ts).
|
|
16
16
|
//
|
|
17
17
|
// Vendor cost structure (flat fee, unlimited, zero marginal cost) is internal
|
|
18
18
|
// margin information and must never appear in any string here
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type SelectOption } from "./
|
|
1
|
+
import { type SelectOption } from "./select-options.js";
|
|
2
2
|
export declare const TABLE_FIELD_TYPES: readonly ["text", "number", "checkbox", "date", "json", "markdown", "image", "select", "multi_select", "status"];
|
|
3
3
|
export type TableFieldType = (typeof TABLE_FIELD_TYPES)[number];
|
|
4
4
|
export type TableFieldDataType = "text" | "numeric" | "boolean" | "timestamptz" | "jsonb";
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
//
|
|
16
16
|
// CLIENT-SAFE LEAF: the web picker imports it; keep runtime imports to
|
|
17
17
|
// ./tables/select-options.
|
|
18
|
-
import { normalizeSelectOptions } from "./
|
|
18
|
+
import { normalizeSelectOptions } from "./select-options.js";
|
|
19
19
|
export const TABLE_FIELD_TYPES = [
|
|
20
20
|
"text",
|
|
21
21
|
"number",
|
package/node_modules/@oxygen/shared/dist/{table-filter-operators.js → tables/filter-operators.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Operators a filter-tree leaf (`tables query --filter-tree-json`, MCP
|
|
2
2
|
// `filterTree`, saved views) accepts. The SQL builder in
|
|
3
|
-
// packages/tenant-db/src/filters.ts, the CLI help and the MCP schema all read
|
|
3
|
+
// packages/tenant-db/src/tables/filters.ts, the CLI help and the MCP schema all read
|
|
4
4
|
// this one list, so the operators a caller is told about are exactly the ones
|
|
5
5
|
// the server accepts.
|
|
6
6
|
export const FILTER_TREE_OPERATORS = [
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The fields a Table grid draws from a LinkedIn payload cell.
|
|
3
|
+
*
|
|
4
|
+
* `oxygen.company_profile`, `oxygen.person_profile` and the two managed
|
|
5
|
+
* LinkedIn scrapers all land one cell contract: the record at
|
|
6
|
+
* `response.raw.element`, and for the two composite lookups their outcome at
|
|
7
|
+
* the cell's `status`. The web grid expands such a column into the sub-columns
|
|
8
|
+
* below and summarizes the collapsed cell from the record's name or headline
|
|
9
|
+
* and its followers.
|
|
10
|
+
*
|
|
11
|
+
* A wide grid page drops an oversized payload to a bounded preview (a company
|
|
12
|
+
* payload is 3-15 KB, a person payload 5-140 KB), so the tenant grid projection
|
|
13
|
+
* keeps exactly these paths beside it, and the web serializer mirrors it. All
|
|
14
|
+
* three read this module, so the grid never asks a compacted cell for a field
|
|
15
|
+
* the projection did not keep. Without it the sub-columns of every compacted
|
|
16
|
+
* row read blank and the collapsed cell fell back to the scraper's HTTP status
|
|
17
|
+
* ("200") until someone opened each cell (Plain T-351).
|
|
18
|
+
*
|
|
19
|
+
* CLIENT-SAFE LEAF: the web grid imports it, so no runtime imports.
|
|
20
|
+
*/
|
|
21
|
+
/** Element-relative path; a numeric segment indexes an array. */
|
|
22
|
+
export type LinkedInPayloadPath = readonly (string | number)[];
|
|
23
|
+
export type LinkedInPayloadField = {
|
|
24
|
+
key: string;
|
|
25
|
+
label: string;
|
|
26
|
+
/** Element-relative fallbacks: the first non-empty value wins. */
|
|
27
|
+
paths: readonly LinkedInPayloadPath[];
|
|
28
|
+
/** A link: projected whole or not at all, because a clipped URL is a broken one. */
|
|
29
|
+
url?: true;
|
|
30
|
+
};
|
|
31
|
+
export type LinkedInPayloadKind = "company" | "profile";
|
|
32
|
+
/** How a projection keeps one leaf: text is clipped, a URL kept whole or dropped. */
|
|
33
|
+
export type LinkedInPayloadLeaf = "text" | "url";
|
|
34
|
+
/** Where every lane parks the record inside the cell. */
|
|
35
|
+
export declare const LINKEDIN_PAYLOAD_ELEMENT_ROOT: LinkedInPayloadPath;
|
|
36
|
+
/**
|
|
37
|
+
* Cell-root keys a projection keeps beside the record: the composite lookups'
|
|
38
|
+
* own outcome (`found`, `not_found`, `unavailable`), which is all a miss holds.
|
|
39
|
+
*/
|
|
40
|
+
export declare const LINKEDIN_PAYLOAD_CELL_KEYS: readonly ["status"];
|
|
41
|
+
export declare const LINKEDIN_COMPANY_PAYLOAD_FIELDS: readonly LinkedInPayloadField[];
|
|
42
|
+
export declare const LINKEDIN_PROFILE_PAYLOAD_FIELDS: readonly LinkedInPayloadField[];
|
|
43
|
+
/** The payload a tool column writes, or null when its cell holds no LinkedIn element. */
|
|
44
|
+
export declare function linkedInPayloadKind(toolId: unknown): LinkedInPayloadKind | null;
|
|
45
|
+
export declare function linkedInPayloadFields(kind: LinkedInPayloadKind): readonly LinkedInPayloadField[];
|
|
46
|
+
/** Longest a projected text leaf gets: a tenth of the cell's byte allowance, within 24..120 characters. */
|
|
47
|
+
export declare function linkedInPayloadTextChars(maxBytes: number): number;
|
|
48
|
+
/** The summary tier keeps only what the collapsed cell reads, clipped to this. */
|
|
49
|
+
export declare const LINKEDIN_PAYLOAD_SUMMARY_TEXT_CHARS = 24;
|
|
50
|
+
/** Leading scalar items a projected list keeps; one more marks the rest. */
|
|
51
|
+
export declare const LINKEDIN_PAYLOAD_LIST_ITEMS = 3;
|
|
52
|
+
/** A projected list item is clipped to the text limit, and never past this. */
|
|
53
|
+
export declare const LINKEDIN_PAYLOAD_LIST_ITEM_CHARS = 64;
|
|
54
|
+
/** Stands in for the items a projected list left out. */
|
|
55
|
+
export declare const LINKEDIN_PAYLOAD_LIST_MORE = "\u2026";
|
|
56
|
+
/** A URL longer than this is dropped from a projection rather than sent. */
|
|
57
|
+
export declare const LINKEDIN_PAYLOAD_URL_MAX_CHARS = 512;
|
|
58
|
+
/**
|
|
59
|
+
* One projection tier's paths folded into a tree rooted at the record (the
|
|
60
|
+
* element). A leaf says how it is kept. A full tier holds every sub-column and
|
|
61
|
+
* the summary; a summary tier only what the collapsed cell reads, for a page
|
|
62
|
+
* too narrow to afford the full one.
|
|
63
|
+
*/
|
|
64
|
+
export type LinkedInPayloadPathTree = Map<string | number, LinkedInPayloadPathTree | LinkedInPayloadLeaf>;
|
|
65
|
+
export type LinkedInPayloadTier = "full" | "summary";
|
|
66
|
+
/**
|
|
67
|
+
* @internal Exported for its own test. Fold element-relative paths into a tree,
|
|
68
|
+
* refusing every shape the two projections do not implement, so a future field
|
|
69
|
+
* fails a test instead of quietly reading blank: an index other than 0, a node
|
|
70
|
+
* mixing keys and indexes, a leaf directly at an index, a path ending inside
|
|
71
|
+
* another, and more keys on one object than `jsonb_build_object` accepts.
|
|
72
|
+
*/
|
|
73
|
+
export declare function buildLinkedInPayloadPathTree(paths: ReadonlyArray<{
|
|
74
|
+
path: LinkedInPayloadPath;
|
|
75
|
+
leaf: LinkedInPayloadLeaf;
|
|
76
|
+
}>): LinkedInPayloadPathTree;
|
|
77
|
+
/** The element-relative tree one projection tier walks for this payload kind. */
|
|
78
|
+
export declare function linkedInPayloadPathTree(kind: LinkedInPayloadKind, tier: LinkedInPayloadTier): LinkedInPayloadPathTree;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The fields a Table grid draws from a LinkedIn payload cell.
|
|
3
|
+
*
|
|
4
|
+
* `oxygen.company_profile`, `oxygen.person_profile` and the two managed
|
|
5
|
+
* LinkedIn scrapers all land one cell contract: the record at
|
|
6
|
+
* `response.raw.element`, and for the two composite lookups their outcome at
|
|
7
|
+
* the cell's `status`. The web grid expands such a column into the sub-columns
|
|
8
|
+
* below and summarizes the collapsed cell from the record's name or headline
|
|
9
|
+
* and its followers.
|
|
10
|
+
*
|
|
11
|
+
* A wide grid page drops an oversized payload to a bounded preview (a company
|
|
12
|
+
* payload is 3-15 KB, a person payload 5-140 KB), so the tenant grid projection
|
|
13
|
+
* keeps exactly these paths beside it, and the web serializer mirrors it. All
|
|
14
|
+
* three read this module, so the grid never asks a compacted cell for a field
|
|
15
|
+
* the projection did not keep. Without it the sub-columns of every compacted
|
|
16
|
+
* row read blank and the collapsed cell fell back to the scraper's HTTP status
|
|
17
|
+
* ("200") until someone opened each cell (Plain T-351).
|
|
18
|
+
*
|
|
19
|
+
* CLIENT-SAFE LEAF: the web grid imports it, so no runtime imports.
|
|
20
|
+
*/
|
|
21
|
+
/** Where every lane parks the record inside the cell. */
|
|
22
|
+
export const LINKEDIN_PAYLOAD_ELEMENT_ROOT = ["response", "raw", "element"];
|
|
23
|
+
/**
|
|
24
|
+
* Cell-root keys a projection keeps beside the record: the composite lookups'
|
|
25
|
+
* own outcome (`found`, `not_found`, `unavailable`), which is all a miss holds.
|
|
26
|
+
*/
|
|
27
|
+
export const LINKEDIN_PAYLOAD_CELL_KEYS = ["status"];
|
|
28
|
+
// Fallback orders mirror the CRM template formula coalesces (model.ts) so the
|
|
29
|
+
// sub-column and its promoted sibling column agree on the same cell. Fields
|
|
30
|
+
// absent from a given payload simply resolve blank.
|
|
31
|
+
export const LINKEDIN_COMPANY_PAYLOAD_FIELDS = [
|
|
32
|
+
{ key: "description", label: "Description", paths: [["description"]] },
|
|
33
|
+
{ key: "tagline", label: "Tagline", paths: [["tagline"]] },
|
|
34
|
+
{ key: "website", label: "Website", paths: [["website"], ["websiteUrl"]], url: true },
|
|
35
|
+
{ key: "industry", label: "Industry", paths: [["industries", 0, "name"], ["industry"]] },
|
|
36
|
+
{ key: "employee_count", label: "Employees", paths: [["employeeCount"]] },
|
|
37
|
+
{ key: "follower_count", label: "Followers", paths: [["followerCount"]] },
|
|
38
|
+
{
|
|
39
|
+
key: "hq_location",
|
|
40
|
+
label: "HQ Location",
|
|
41
|
+
paths: [
|
|
42
|
+
["locations", 0, "city"],
|
|
43
|
+
["locations", 0, "parsed", "text"],
|
|
44
|
+
["locations", 0, "geographicArea"],
|
|
45
|
+
["locations", 0, "country"],
|
|
46
|
+
["headquarter", "city"],
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
{ key: "founded", label: "Founded", paths: [["foundedOn", "year"]] },
|
|
50
|
+
{ key: "specialties", label: "Specialties", paths: [["specialities"], ["specialties"]] },
|
|
51
|
+
];
|
|
52
|
+
export const LINKEDIN_PROFILE_PAYLOAD_FIELDS = [
|
|
53
|
+
// The picture the scrape already paid for. people.photo_url reads the same
|
|
54
|
+
// path as its second lane, so the sub-column and the record avatar agree.
|
|
55
|
+
{ key: "photo", label: "Photo", paths: [["photo"], ["profilePicture"], ["picture"]], url: true },
|
|
56
|
+
{ key: "headline", label: "Headline", paths: [["headline"]] },
|
|
57
|
+
{
|
|
58
|
+
key: "location",
|
|
59
|
+
label: "Location",
|
|
60
|
+
paths: [
|
|
61
|
+
["location", "linkedinText"],
|
|
62
|
+
["location", "parsed", "text"],
|
|
63
|
+
["geo", "full"],
|
|
64
|
+
["geo", "city"],
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
{ key: "about", label: "About", paths: [["about"], ["summary"]] },
|
|
68
|
+
{ key: "follower_count", label: "Followers", paths: [["followerCount"]] },
|
|
69
|
+
{ key: "connections", label: "Connections", paths: [["connectionsCount"], ["connectionCount"]] },
|
|
70
|
+
{ key: "skills", label: "Skills", paths: [["skills"]] },
|
|
71
|
+
];
|
|
72
|
+
// What the collapsed cell reads: `summarizeLinkedInScrape` in the web grid's
|
|
73
|
+
// cell-result-summary.ts.
|
|
74
|
+
const LINKEDIN_PAYLOAD_SUMMARY_PATHS = {
|
|
75
|
+
company: [["name"], ["followerCount"]],
|
|
76
|
+
profile: [["headline"], ["firstName"], ["lastName"], ["name"], ["full_name"], ["followerCount"]],
|
|
77
|
+
};
|
|
78
|
+
/** The payload a tool column writes, or null when its cell holds no LinkedIn element. */
|
|
79
|
+
export function linkedInPayloadKind(toolId) {
|
|
80
|
+
switch (toolId) {
|
|
81
|
+
// The company waterfall lands the scraper's `response.raw.element` shape too.
|
|
82
|
+
case "scraper.linkedin_company":
|
|
83
|
+
case "oxygen.company_profile":
|
|
84
|
+
return "company";
|
|
85
|
+
// The person waterfall lands the scraper's `response.raw.element` shape too.
|
|
86
|
+
case "scraper.linkedin_profile":
|
|
87
|
+
case "oxygen.person_profile":
|
|
88
|
+
return "profile";
|
|
89
|
+
default:
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export function linkedInPayloadFields(kind) {
|
|
94
|
+
return kind === "company" ? LINKEDIN_COMPANY_PAYLOAD_FIELDS : LINKEDIN_PROFILE_PAYLOAD_FIELDS;
|
|
95
|
+
}
|
|
96
|
+
// --- The projection's bounds, shared by the tenant SELECT and the serializer.
|
|
97
|
+
/** Longest a projected text leaf gets: a tenth of the cell's byte allowance, within 24..120 characters. */
|
|
98
|
+
export function linkedInPayloadTextChars(maxBytes) {
|
|
99
|
+
return Math.max(24, Math.min(120, Math.floor(maxBytes / 10)));
|
|
100
|
+
}
|
|
101
|
+
/** The summary tier keeps only what the collapsed cell reads, clipped to this. */
|
|
102
|
+
export const LINKEDIN_PAYLOAD_SUMMARY_TEXT_CHARS = 24;
|
|
103
|
+
/** Leading scalar items a projected list keeps; one more marks the rest. */
|
|
104
|
+
export const LINKEDIN_PAYLOAD_LIST_ITEMS = 3;
|
|
105
|
+
/** A projected list item is clipped to the text limit, and never past this. */
|
|
106
|
+
export const LINKEDIN_PAYLOAD_LIST_ITEM_CHARS = 64;
|
|
107
|
+
/** Stands in for the items a projected list left out. */
|
|
108
|
+
export const LINKEDIN_PAYLOAD_LIST_MORE = "…";
|
|
109
|
+
/** A URL longer than this is dropped from a projection rather than sent. */
|
|
110
|
+
export const LINKEDIN_PAYLOAD_URL_MAX_CHARS = 512;
|
|
111
|
+
/** `jsonb_build_object` takes at most 100 arguments: 50 keys. */
|
|
112
|
+
const MAX_PROJECTED_KEYS = 50;
|
|
113
|
+
/**
|
|
114
|
+
* @internal Exported for its own test. Fold element-relative paths into a tree,
|
|
115
|
+
* refusing every shape the two projections do not implement, so a future field
|
|
116
|
+
* fails a test instead of quietly reading blank: an index other than 0, a node
|
|
117
|
+
* mixing keys and indexes, a leaf directly at an index, a path ending inside
|
|
118
|
+
* another, and more keys on one object than `jsonb_build_object` accepts.
|
|
119
|
+
*/
|
|
120
|
+
export function buildLinkedInPayloadPathTree(paths) {
|
|
121
|
+
const tree = new Map();
|
|
122
|
+
for (const { path, leaf } of paths) {
|
|
123
|
+
if (path.length === 0)
|
|
124
|
+
throw new Error("A LinkedIn payload path cannot be empty.");
|
|
125
|
+
let node = tree;
|
|
126
|
+
path.forEach((segment, index) => {
|
|
127
|
+
const where = path.slice(0, index + 1).join(".");
|
|
128
|
+
if (typeof segment === "number" && segment !== 0) {
|
|
129
|
+
throw new Error(`LinkedIn payload path ${where}: only index 0 is projected.`);
|
|
130
|
+
}
|
|
131
|
+
const last = index === path.length - 1;
|
|
132
|
+
if (last && typeof segment === "number") {
|
|
133
|
+
throw new Error(`LinkedIn payload path ${where}: an index must lead to an object, not a leaf.`);
|
|
134
|
+
}
|
|
135
|
+
const existing = node.get(segment);
|
|
136
|
+
if (last) {
|
|
137
|
+
if (existing instanceof Map)
|
|
138
|
+
throw new Error(`LinkedIn payload path ${where} ends inside another path.`);
|
|
139
|
+
// Two fields reading one leaf keep it whole if either is a link.
|
|
140
|
+
node.set(segment, existing === "url" || leaf === "url" ? "url" : "text");
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
if (existing !== undefined && !(existing instanceof Map)) {
|
|
144
|
+
throw new Error(`LinkedIn payload path ${where} ends inside another path.`);
|
|
145
|
+
}
|
|
146
|
+
const child = existing ?? new Map();
|
|
147
|
+
node.set(segment, child);
|
|
148
|
+
node = child;
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
assertProjectableNode(tree, "element");
|
|
152
|
+
return tree;
|
|
153
|
+
}
|
|
154
|
+
function assertProjectableNode(node, where) {
|
|
155
|
+
const segments = [...node.keys()];
|
|
156
|
+
const numeric = segments.filter((segment) => typeof segment === "number");
|
|
157
|
+
if (numeric.length > 0 && numeric.length !== segments.length) {
|
|
158
|
+
throw new Error(`LinkedIn payload node ${where} mixes keys and indexes.`);
|
|
159
|
+
}
|
|
160
|
+
if (segments.length > MAX_PROJECTED_KEYS) {
|
|
161
|
+
throw new Error(`LinkedIn payload node ${where} has more than ${MAX_PROJECTED_KEYS} keys.`);
|
|
162
|
+
}
|
|
163
|
+
for (const [segment, child] of node) {
|
|
164
|
+
if (child instanceof Map)
|
|
165
|
+
assertProjectableNode(child, `${where}.${segment}`);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
const pathTrees = new Map();
|
|
169
|
+
/** The element-relative tree one projection tier walks for this payload kind. */
|
|
170
|
+
export function linkedInPayloadPathTree(kind, tier) {
|
|
171
|
+
const cacheKey = `${kind}:${tier}`;
|
|
172
|
+
const cached = pathTrees.get(cacheKey);
|
|
173
|
+
if (cached)
|
|
174
|
+
return cached;
|
|
175
|
+
const summary = LINKEDIN_PAYLOAD_SUMMARY_PATHS[kind].map((path) => ({ path, leaf: "text" }));
|
|
176
|
+
const fields = tier === "full"
|
|
177
|
+
? linkedInPayloadFields(kind).flatMap((field) => field.paths.map((path) => ({ path, leaf: field.url ? "url" : "text" })))
|
|
178
|
+
: [];
|
|
179
|
+
const tree = buildLinkedInPayloadPathTree([...fields, ...summary]);
|
|
180
|
+
pathTrees.set(cacheKey, tree);
|
|
181
|
+
return tree;
|
|
182
|
+
}
|
package/node_modules/@oxygen/shared/dist/{research-findings.js → tables/research-findings.js}
RENAMED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// of CRM_ACTIVITY_EVENT_DEFINITIONS (the production writer allowlist and event
|
|
6
6
|
// catalog) and out of CRM_SIGNAL_ACTIVITY_TYPES: a finding is evidence, never
|
|
7
7
|
// intent.
|
|
8
|
-
import { OxygenError } from "
|
|
8
|
+
import { OxygenError } from "../cli-result.js";
|
|
9
9
|
export const RESEARCH_FINDING_ACTIVITY_TYPE = "research_finding";
|
|
10
10
|
export const RESEARCH_FINDING_EVENT_DEFINITION = {
|
|
11
11
|
key: RESEARCH_FINDING_ACTIVITY_TYPE,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isRecord as isObject } from "
|
|
1
|
+
import { isRecord as isObject } from "../type-guards.js";
|
|
2
2
|
const MAX_RESEARCH_SECTIONS = 20;
|
|
3
3
|
const OUTPUT_SECTIONS_MARKER = /\b(?:return|provide|include|produce|output)\b.{0,80}\b(?:labeled|named|required|requested)?\s*(?:output\s+)?sections?\s*:/i;
|
|
4
4
|
const LABELED_SECTION = /^(?:[-*+]\s+|\d+[.)]\s+)?([A-Za-z][A-Za-z0-9_. /&()'’+\-]{1,79})\s*:\s*.*$/;
|
|
@@ -15,6 +15,17 @@ export function capabilityDiscoveryRecovery(query, surface) {
|
|
|
15
15
|
// connection routes.
|
|
16
16
|
export function inferUserCapabilityRoute(query) {
|
|
17
17
|
const normalized = query.toLowerCase().replace(/[_-]+/g, " ");
|
|
18
|
+
if (isOxygentHistoryIntent(normalized)) {
|
|
19
|
+
const route = getCapabilityRouteMatch("agents");
|
|
20
|
+
if (route) {
|
|
21
|
+
const recommendedTools = ["oxygen_copilot_history", "oxygen_oxygents_get", "oxygen_oxygents_list"];
|
|
22
|
+
const recommendedCommands = ["copilot history", "oxygents get", "oxygents list"];
|
|
23
|
+
return { ...route, recommendedTools, recommendedCommands, card: { ...route.card,
|
|
24
|
+
posture: "read_only", gatewayTools: recommendedTools, gatewayCommands: recommendedCommands,
|
|
25
|
+
execution: "Search past Oxygent messages and recorded app links with copilot history (oxygen_copilot_history). Use chat.session_id from oxygents get/list. Query is a literal substring; omit it to list recorded links. Source turns identify recorded references or updates, not necessarily creation. This read starts no inference or send.",
|
|
26
|
+
} };
|
|
27
|
+
}
|
|
28
|
+
}
|
|
18
29
|
if (/\b(?:buy|purchase|order|provision|subscribe)\b/.test(normalized)
|
|
19
30
|
&& /\b(?:inbox(?:es)?|mailbox(?:es)?)\b/.test(normalized)
|
|
20
31
|
&& !/\b(?:buy|purchase|order)\s+(?:more\s+)?credits?\b|^\s*(?:cancel|delete|remove)\b/.test(normalized)) {
|
|
@@ -339,6 +350,22 @@ const OXYGENT_GROUP_VERBS = [
|
|
|
339
350
|
["group_read", /\b(?:unread|mark\w*\b.*\bread)\b/],
|
|
340
351
|
["group", /\b(?:read|see|view|show|history|transcript)\b/],
|
|
341
352
|
];
|
|
353
|
+
function isOxygentHistoryIntent(query) {
|
|
354
|
+
if (/\bgroup chats?\b/.test(query))
|
|
355
|
+
return false;
|
|
356
|
+
const native = /\b(?:oxygents?|copilot|ai teammates?)\b/.test(query);
|
|
357
|
+
const chat = /\b(?:chat|conversation|transcript)\b/.test(query);
|
|
358
|
+
if (!native && (!chat || GROUP_CHAT_CHANNEL_PATTERN.test(query)))
|
|
359
|
+
return false;
|
|
360
|
+
if (/^\s*(?:create|configure|set up|send|ask|tell|delete|remove|rename|change|update|share|start|mark|open)\b/.test(query))
|
|
361
|
+
return false;
|
|
362
|
+
const read = /\b(?:read|see|view|show|find|search|look up)\b/.test(query);
|
|
363
|
+
const history = /\b(?:history|transcript|past|previous|earlier|source turn)\b/.test(query);
|
|
364
|
+
const configuration = /\b(?:visibility|configur\w*|settings?|privacy|defaults?|create|creating|make|add|new|set up|spawn|hire)\b/.test(query);
|
|
365
|
+
return (history && (read || !configuration))
|
|
366
|
+
|| (native && (/\b(?:find|search|look up)\s+(?:(?:my|our|the|past|previous|earlier|a|an|exact|text|linked|oxygent|copilot)\s+){0,6}(?:messages?|chats?|conversations?|results?|outputs?|links?)\b/.test(query)
|
|
367
|
+
|| /\b(?:messages?|chat)\s+(?:text\s+)?search\b/.test(query)));
|
|
368
|
+
}
|
|
342
369
|
/**
|
|
343
370
|
* Oxygents (AI teammates, ADR 0032) share the Agents card, whose gateway is the
|
|
344
371
|
* Agent commands, so an ask naming one got `agent list/create/run` and, in
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const OXYGEN_BUILD_VERSION = "1.
|
|
1
|
+
export declare const OXYGEN_BUILD_VERSION = "1.1017.21";
|
|
@@ -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.
|
|
2
|
+
export const OXYGEN_BUILD_VERSION = "1.1017.21";
|
|
@@ -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.1010.
|
|
52
|
+
export const OXYGEN_MINIMUM_CLI_VERSION = "1.1010.905";
|
|
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";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { type MediaAssetBinding, type MediaAssetSnapshot } from "./media-project.js";
|
|
1
2
|
export declare const VISUAL_RENDER_PROFILE: "oxygen-static-v1";
|
|
3
|
+
export declare const MOTION_RENDER_PROFILE: "oxygen-hyperframes-v1";
|
|
2
4
|
export declare const VISUAL_RENDER_LIMITS: Readonly<{
|
|
3
5
|
maxPages: 12;
|
|
4
6
|
maxSide: 4096;
|
|
@@ -12,8 +14,17 @@ export type VisualRenderRequest = {
|
|
|
12
14
|
width: number;
|
|
13
15
|
height: number;
|
|
14
16
|
scale: 1 | 2;
|
|
15
|
-
formats: ("png" | "pdf")[];
|
|
17
|
+
formats: ("png" | "pdf" | "mp4")[];
|
|
18
|
+
profile?: "static" | "hyperframes";
|
|
19
|
+
assets?: MediaAssetBinding[];
|
|
20
|
+
/** Resolved by preview under tenant scope; never trusted from public input. */
|
|
21
|
+
asset_snapshots?: MediaAssetSnapshot[];
|
|
22
|
+
fps?: number;
|
|
23
|
+
duration?: number;
|
|
16
24
|
};
|
|
25
|
+
export type VisualComposition = Omit<VisualRenderRequest, "source_file_ids" | "asset_snapshots">;
|
|
26
|
+
/** Persist layout and immutable asset references beside each editable HTML revision. */
|
|
27
|
+
export declare function parseVisualComposition(value: unknown): VisualComposition;
|
|
17
28
|
/**
|
|
18
29
|
* What a render costs the customer: nothing (Tim, 2026-10-14: "the rendering
|
|
19
30
|
* shouldn't cost credits that's just stupid"). The platform's own compute stays
|
|
@@ -22,7 +33,7 @@ export type VisualRenderRequest = {
|
|
|
22
33
|
*/
|
|
23
34
|
export declare const VISUAL_RENDER_CREDITS = 0;
|
|
24
35
|
export type VisualRenderProfile = {
|
|
25
|
-
version: typeof VISUAL_RENDER_PROFILE;
|
|
36
|
+
version: typeof VISUAL_RENDER_PROFILE | typeof MOTION_RENDER_PROFILE;
|
|
26
37
|
renderSnapshotId: string;
|
|
27
38
|
validatorSnapshotId: string;
|
|
28
39
|
rendererDigest: string;
|
|
@@ -35,4 +46,4 @@ export declare function visualRenderProfilesMatch(a: VisualRenderProfile, b: Vis
|
|
|
35
46
|
export declare function validateVisualFileId(value: unknown): string;
|
|
36
47
|
export declare function parseVisualRenderRequest(value: Record<string, unknown>): VisualRenderRequest;
|
|
37
48
|
/** No default snapshot or compute bound: enabling this profile is an explicit deployment operation. */
|
|
38
|
-
export declare function resolveVisualRenderProfile(env: Record<string, string | undefined>, now?: number): VisualRenderProfile | null;
|
|
49
|
+
export declare function resolveVisualRenderProfile(env: Record<string, string | undefined>, now?: number, mode?: "static" | "hyperframes"): VisualRenderProfile | null;
|