@oxygen-agent/cli 1.1016.37 → 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-manifest.js +9 -0
- 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 +1 -1
- package/dist/commands/knowledge.js +3 -3
- package/dist/knowledge-mirror.js +1 -1
- package/dist/visual-commands.js +57 -8
- package/node_modules/@oxygen/shared/dist/agents/sessions.js +1 -1
- 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-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/connectors.js +1 -1
- package/node_modules/@oxygen/shared/dist/contracts/customer-operations.js +1 -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/feature-gates.d.ts +2 -2
- package/node_modules/@oxygen/shared/dist/feature-gates.js +2 -2
- package/node_modules/@oxygen/shared/dist/index.d.ts +19 -19
- package/node_modules/@oxygen/shared/dist/index.js +19 -19
- 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} +2 -2
- package/node_modules/@oxygen/shared/dist/{knowledge-bootstrap.js → knowledge/bootstrap.js} +3 -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/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/recipes/workspace-skills.js +1 -1
- package/node_modules/@oxygen/shared/dist/search-vocab.js +1 -1
- 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/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/tables/company-enrichment-fields.js +1 -1
- package/node_modules/@oxygen/shared/dist/tables/enrichment-intents.js +1 -1
- package/node_modules/@oxygen/shared/dist/tables/filter-operators.js +1 -1
- package/node_modules/@oxygen/shared/dist/{research-findings.js → tables/research-findings.js} +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/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 +1 -1
- 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 -30
- 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/{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/{research-findings.d.ts → tables/research-findings.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@ import { readPositiveInt } from "../../cli-values.js";
|
|
|
2
2
|
import { readCsvOption, readPositiveNumber, parseJsonArray } from "../../command-support.js";
|
|
3
3
|
import { readOption, isRecord } from "../../util.js";
|
|
4
4
|
import { OxygenError } from "@oxygen/shared/cli-result";
|
|
5
|
-
import { PUBLIC_WEBHOOK_INGRESS_PER_TARGET_PER_MINUTE } from "@oxygen/shared/plan-band";
|
|
5
|
+
import { PUBLIC_WEBHOOK_INGRESS_PER_TARGET_PER_MINUTE } from "@oxygen/shared/billing/plan-band";
|
|
6
6
|
// The only numbers on `tables import --help` used to be --batch-size (a
|
|
7
7
|
// per-request chunk) and the background threshold, so users read 500 as a
|
|
8
8
|
// per-file cap. Echo the shared row ceiling and the tiered byte ceilings instead
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readCount } from "../../command-support.js";
|
|
2
2
|
import { requestOxygen } from "../../http-client.js";
|
|
3
3
|
import { OxygenError } from "@oxygen/shared/cli-result";
|
|
4
|
-
import { MAX_CLI_JSON_BODY_BYTES } from "@oxygen/shared/plan-limits";
|
|
4
|
+
import { MAX_CLI_JSON_BODY_BYTES } from "@oxygen/shared/billing/plan-limits";
|
|
5
5
|
export async function writeImportBatchWithAutoSplit(input) {
|
|
6
6
|
const body = {
|
|
7
7
|
table: input.tableRef,
|
|
@@ -5,7 +5,7 @@ import { oxygenAppUrl } from "../../help.js";
|
|
|
5
5
|
import { STREAMED_FILE_IMPORT_MIN_BYTES } from "../../streamed-file-import.js";
|
|
6
6
|
import { OxygenError } from "@oxygen/shared/cli-result";
|
|
7
7
|
import { MAX_BUFFERED_IMPORT_PARSE_BYTES } from "@oxygen/shared/tables/file-import";
|
|
8
|
-
import { PLAN_LIMITS, MAX_CLI_JSON_BODY_BYTES } from "@oxygen/shared/plan-limits";
|
|
8
|
+
import { PLAN_LIMITS, MAX_CLI_JSON_BODY_BYTES } from "@oxygen/shared/billing/plan-limits";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
10
10
|
import { readFileSync } from "node:fs";
|
|
11
11
|
export const LARGE_IMPORT_BACKGROUND_ROW_THRESHOLD = 500;
|
package/dist/command-manifest.js
CHANGED
|
@@ -186,6 +186,12 @@ const MUTATING_COMMANDS = new Set([
|
|
|
186
186
|
// Runs the isolated renderer and writes its pages back as workspace files. It
|
|
187
187
|
// is free since 2026-10-14, so no --approved/--max-credits flag reports it.
|
|
188
188
|
"visuals render-start",
|
|
189
|
+
"visuals source-create",
|
|
190
|
+
"visuals render-preview",
|
|
191
|
+
"visuals render-cancel",
|
|
192
|
+
"visuals asset-upload",
|
|
193
|
+
"visuals asset-upload-prepare",
|
|
194
|
+
"visuals asset-upload-complete",
|
|
189
195
|
// The plain standup view in an interactive terminal moves the user's Home
|
|
190
196
|
// "last seen" marker, as a web Home visit does; `--json`, or output that is not
|
|
191
197
|
// a terminal (an agent's shell, a pipe), is a pure read that leaves it alone
|
|
@@ -286,6 +292,9 @@ const ZERO_CREDIT_APPROVAL_COMMANDS = new Set([
|
|
|
286
292
|
// `workflows run <id>` gets an existing Workflow run; `workflows call` creates
|
|
287
293
|
// one. Keep the exception exact so genuine `run` actions remain mutations.
|
|
288
294
|
const READ_ONLY_COMMANDS = new Set([
|
|
295
|
+
"visuals file-get",
|
|
296
|
+
"visuals render-get",
|
|
297
|
+
"visuals download",
|
|
289
298
|
"workflows run",
|
|
290
299
|
// `history` is a mutating verb for `whatsapp history` (it backfills a chat);
|
|
291
300
|
// these two only read a row's and a cell's recorded changes.
|
package/dist/commands/agent.js
CHANGED
|
@@ -3,7 +3,7 @@ import { readPositiveNumber } from "../command-support.js";
|
|
|
3
3
|
import { requestOxygen } from "../http-client.js";
|
|
4
4
|
import { readOption } from "../util.js";
|
|
5
5
|
import { OxygenError } from "@oxygen/shared/cli-result";
|
|
6
|
-
import { PUBLIC_WEBHOOK_INGRESS_PER_TARGET_PER_MINUTE } from "@oxygen/shared/plan-band";
|
|
6
|
+
import { PUBLIC_WEBHOOK_INGRESS_PER_TARGET_PER_MINUTE } from "@oxygen/shared/billing/plan-band";
|
|
7
7
|
import { Command } from "commander";
|
|
8
8
|
const AGENT_MODEL_POLICY_HELP = "Model policy JSON: level low (Fast), medium (Balanced, default), or high (Max); credential_mode managed or organization_byok.";
|
|
9
9
|
const AGENT_TOOL_POLICY_HELP = "Tool policy JSON. Effects: read, internal_write, paid, external_write. Ask-before-changes preset: {\"mode\":\"scoped\",\"rules\":[{\"decision\":\"allow\",\"effect\":\"read\"},{\"decision\":\"ask\",\"effect\":\"internal_write\"},{\"decision\":\"ask\",\"effect\":\"paid\"},{\"decision\":\"ask\",\"effect\":\"external_write\"}]}. Full mode requires --confirm-full-access.";
|
|
@@ -262,7 +262,7 @@ export function registerAgentFamily(program, handleAsyncAction) {
|
|
|
262
262
|
}));
|
|
263
263
|
}))
|
|
264
264
|
.addCommand(new Command("files")
|
|
265
|
-
.description("List tenant-owned
|
|
265
|
+
.description("List tenant-owned workspace files, including media, fonts and editable sources.")
|
|
266
266
|
.option("--limit <n>", "Maximum files (1-500).")
|
|
267
267
|
.option("--json", "Print a JSON envelope.")
|
|
268
268
|
.action(async (options) => {
|
package/dist/commands/billing.js
CHANGED
|
@@ -4,7 +4,7 @@ import { defaultApiUrl } from "../credentials.js";
|
|
|
4
4
|
import { oxygenAppUrl } from "../help.js";
|
|
5
5
|
import { requestOxygen } from "../http-client.js";
|
|
6
6
|
import { readOption } from "../util.js";
|
|
7
|
-
import { PURCHASABLE_PLAN_KEYS, planVolumeBonusPercent, resolveBasePricingPlan } from "@oxygen/shared/billing";
|
|
7
|
+
import { PURCHASABLE_PLAN_KEYS, planVolumeBonusPercent, resolveBasePricingPlan } from "@oxygen/shared/billing/billing";
|
|
8
8
|
import { CANCELLATION_REASON_VALUES } from "@oxygen/shared/sequences/cancellation-reasons";
|
|
9
9
|
import { OxygenError } from "@oxygen/shared/cli-result";
|
|
10
10
|
import { Command, Option } from "commander";
|
package/dist/commands/budget.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readPositiveNumber } from "../command-support.js";
|
|
2
2
|
import { requestOxygen } from "../http-client.js";
|
|
3
3
|
import { readOption } from "../util.js";
|
|
4
|
-
import { formatPublicBudgetScopes } from "@oxygen/shared/budget-scopes";
|
|
4
|
+
import { formatPublicBudgetScopes } from "@oxygen/shared/billing/budget-scopes";
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
export function registerBudgetFamily(program, handleAsyncAction) {
|
|
7
7
|
program
|
package/dist/commands/columns.js
CHANGED
|
@@ -7,7 +7,7 @@ import { requestOxygen } from "../http-client.js";
|
|
|
7
7
|
import { runLocalCustomHttpColumn } from "../local-custom-http-column.js";
|
|
8
8
|
import { isRecord, readOption } from "../util.js";
|
|
9
9
|
import { OxygenError } from "@oxygen/shared/cli-result";
|
|
10
|
-
import { AI_COLUMN_CREDITS, AI_COLUMN_WEB_SEARCH_TYPICAL_CREDITS } from "@oxygen/shared/pricing-sheet";
|
|
10
|
+
import { AI_COLUMN_CREDITS, AI_COLUMN_WEB_SEARCH_TYPICAL_CREDITS } from "@oxygen/shared/billing/pricing-sheet";
|
|
11
11
|
import { lookupColumnDataType } from "@oxygen/shared/tables/field-types";
|
|
12
12
|
import { sleep } from "@oxygen/shared/timing";
|
|
13
13
|
import { Command, Option } from "commander";
|
|
@@ -10,9 +10,9 @@ import { readOption } from "../util.js";
|
|
|
10
10
|
import { OxygenError } from "@oxygen/shared/cli-result";
|
|
11
11
|
import { knowledgeIndexReadContract, knowledgePageReadContract } from "@oxygen/shared/contracts/knowledge-content-reads";
|
|
12
12
|
import { knowledgeProposalWindowContract } from "@oxygen/shared/contracts/knowledge-proposal-reads";
|
|
13
|
-
import { KNOWLEDGE_BOOTSTRAP_MAX_CREDITS } from "@oxygen/shared/knowledge
|
|
14
|
-
import { KNOWLEDGE_PAGE_TYPES } from "@oxygen/shared/knowledge
|
|
15
|
-
import { parseKnowledgePageMarkdown } from "@oxygen/shared/knowledge
|
|
13
|
+
import { KNOWLEDGE_BOOTSTRAP_MAX_CREDITS } from "@oxygen/shared/knowledge/bootstrap";
|
|
14
|
+
import { KNOWLEDGE_PAGE_TYPES } from "@oxygen/shared/knowledge/constants";
|
|
15
|
+
import { parseKnowledgePageMarkdown } from "@oxygen/shared/knowledge/markdown";
|
|
16
16
|
import { Command, Option } from "commander";
|
|
17
17
|
import { networkMiningHostServed } from "../network-mining-host.js";
|
|
18
18
|
import { existsSync, readFileSync } from "node:fs";
|
package/dist/knowledge-mirror.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// pure filesystem state, no network. The mirror stores SERVER-rendered markdown
|
|
3
3
|
// bytes verbatim: the server renders + hashes every page (content_sha256) and the
|
|
4
4
|
// client never re-renders, so renderer drift can't mass-quarantine mirrors (see
|
|
5
|
-
// packages/shared/src/knowledge
|
|
5
|
+
// packages/shared/src/knowledge/markdown.ts). Layout:
|
|
6
6
|
//
|
|
7
7
|
// <configDir>/knowledge/<api-host>/<org-id>/
|
|
8
8
|
// <slug>.md synced wiki pages (server bytes, 0600)
|
package/dist/visual-commands.js
CHANGED
|
@@ -1,15 +1,57 @@
|
|
|
1
1
|
import { Option } from "commander";
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
import { readFileSync, statSync, writeFileSync } from "node:fs";
|
|
4
|
-
import { resolve } from "node:path";
|
|
4
|
+
import { resolve, basename } from "node:path";
|
|
5
5
|
import { OxygenError } from "@oxygen/shared/cli-result";
|
|
6
6
|
import { requestOxygen } from "./http-client.js";
|
|
7
7
|
import { waitForVisualRender } from "./visual-render-wait.js";
|
|
8
|
+
function parseJsonOption(value) {
|
|
9
|
+
try {
|
|
10
|
+
return JSON.parse(value);
|
|
11
|
+
}
|
|
12
|
+
catch {
|
|
13
|
+
throw new OxygenError("invalid_input", "Supply valid JSON for composition settings or asset bindings.");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
8
16
|
export function registerVisualCommands(program, handle) {
|
|
9
|
-
const visuals = program.command("visuals").description("
|
|
10
|
-
visuals.command("
|
|
17
|
+
const visuals = program.command("visuals").description("Create editable graphics and short videos with workspace fonts, media and reusable components; render, inspect and download.");
|
|
18
|
+
visuals.command("asset-upload").description("Upload an image, font, media clip or reusable component directly to private workspace storage (max 100 MiB); no code executes.")
|
|
19
|
+
.requiredOption("--file <path>", "Local asset file.").option("--resume-file-id <id>", "Resume the same file reservation after an interrupted transfer.").option("--name <name>", "Stored filename, defaults to the local basename.").option("--json", "Print a JSON envelope.")
|
|
20
|
+
.action((options) => handle("visuals asset upload", options, async () => {
|
|
21
|
+
if (statSync(options.file).size > 100 * 1024 * 1024)
|
|
22
|
+
throw new OxygenError("workspace_file_too_large", "Asset must fit within 100 MiB.");
|
|
23
|
+
const bytes = readFileSync(options.file);
|
|
24
|
+
if (bytes.length > 100 * 1024 * 1024)
|
|
25
|
+
throw new OxygenError("workspace_file_too_large", "Asset must fit within 100 MiB.");
|
|
26
|
+
const ticket = await requestOxygen("/api/cli/visuals/assets", {
|
|
27
|
+
method: "POST", body: { action: options.resumeFileId ? "resume" : "prepare", ...(options.resumeFileId ? { file_id: options.resumeFileId } : {}), name: options.name ?? basename(options.file), size_bytes: bytes.length, sha256: createHash("sha256").update(bytes).digest("hex") },
|
|
28
|
+
});
|
|
29
|
+
if (ticket?.already_uploaded && ticket.file?.status === "ready")
|
|
30
|
+
return { file: ticket.file, already_uploaded: true };
|
|
31
|
+
if (!ticket || typeof ticket.file?.id !== "string" || typeof ticket.upload_url !== "string" || typeof ticket.upload_content_type !== "string") {
|
|
32
|
+
throw new OxygenError("invalid_response", "The asset upload reservation did not return a transfer URL and file ID.");
|
|
33
|
+
}
|
|
34
|
+
const response = await fetch(ticket.upload_url, { method: "PUT", headers: { "content-type": ticket.upload_content_type }, body: new Uint8Array(bytes), signal: AbortSignal.timeout(300_000), redirect: "error" }).catch(() => {
|
|
35
|
+
throw new OxygenError("media_asset_upload_failed", "The transfer outcome is unknown. Try asset-upload-complete first, or upload the same file with --resume-file-id using this file_id.", { details: { file_id: ticket.file.id } });
|
|
36
|
+
});
|
|
37
|
+
if (!response.ok)
|
|
38
|
+
throw new OxygenError("media_asset_upload_failed", "The asset upload did not complete. Retry the original file with --resume-file-id using this file_id.", { details: { file_id: ticket.file.id, status: response.status } });
|
|
39
|
+
return requestOxygen("/api/cli/visuals/assets", { method: "POST", body: { action: "complete", file_id: ticket.file.id } }).catch((error) => {
|
|
40
|
+
const failure = error instanceof OxygenError ? error : new OxygenError("media_asset_completion_unconfirmed", "File verification was not confirmed.");
|
|
41
|
+
throw new OxygenError(failure.code, `${failure.message} Retry the same file with --resume-file-id using this file_id.`, { details: { file_id: ticket.file.id } });
|
|
42
|
+
});
|
|
43
|
+
}));
|
|
44
|
+
visuals.command("asset-upload-prepare").description("Reserve an asset upload and return a short-lived private PUT URL.")
|
|
45
|
+
.option("--resume-file-id <id>", "Refresh a pending reservation instead of creating one.").requiredOption("--name <name>", "Asset filename.").requiredOption("--size-bytes <n>", "Exact byte length, at most 100 MiB.")
|
|
46
|
+
.requiredOption("--sha256 <hash>", "SHA-256 of original bytes.").option("--json", "Print a JSON envelope.")
|
|
47
|
+
.action((options) => handle("visuals asset upload prepare", options, () => requestOxygen("/api/cli/visuals/assets", { method: "POST", body: { action: options.resumeFileId ? "resume" : "prepare", ...(options.resumeFileId ? { file_id: options.resumeFileId } : {}), name: options.name, size_bytes: Number(options.sizeBytes), sha256: options.sha256 } })));
|
|
48
|
+
visuals.command("asset-upload-complete <file-id>").description("Verify a direct upload's original bytes against its reservation and make the asset ready.").option("--json", "Print a JSON envelope.")
|
|
49
|
+
.action((id, options) => handle("visuals asset upload complete", options, () => requestOxygen("/api/cli/visuals/assets", { method: "POST", body: { action: "complete", file_id: id } })));
|
|
50
|
+
visuals.command("source-create").description("Save an immutable HTML composition or reusable CSS/JavaScript/JSON component; no code executes.")
|
|
11
51
|
.requiredOption("--name <name>", "Workspace filename.")
|
|
12
52
|
.requiredOption("--file <path>", "Local HTML source file (max 1.5 MB).")
|
|
53
|
+
.option("--composition-json <json>", "Layout, output, timing and asset bindings saved with the HTML revision.")
|
|
54
|
+
.option("--source-type <type>", "html (default), css, javascript or json.")
|
|
13
55
|
.option("--parent-file-id <id>", "Previous source revision UUID.").option("--json", "Print a JSON envelope.")
|
|
14
56
|
.action((options) => handle("visuals source create", options, async () => {
|
|
15
57
|
if (statSync(options.file).size > 1_500_000)
|
|
@@ -17,7 +59,7 @@ export function registerVisualCommands(program, handle) {
|
|
|
17
59
|
const bytes = readFileSync(options.file);
|
|
18
60
|
if (bytes.length > 1_500_000)
|
|
19
61
|
throw new OxygenError("visual_source_limit", "HTML source must fit within 1.5 MB.");
|
|
20
|
-
return requestOxygen("/api/cli/visuals/sources", { method: "POST", body: { name: options.name, html: bytes.toString("utf8"), ...(options.parentFileId ? { parent_file_id: options.parentFileId } : {}) } });
|
|
62
|
+
return requestOxygen("/api/cli/visuals/sources", { method: "POST", body: { name: options.name, html: bytes.toString("utf8"), ...(options.compositionJson ? { composition: parseJsonOption(options.compositionJson) } : {}), ...(options.parentFileId ? { parent_file_id: options.parentFileId } : {}), ...(options.sourceType ? { source_type: options.sourceType } : {}) } });
|
|
21
63
|
}));
|
|
22
64
|
visuals.command("file-get <file-id>").description("Read source, file metadata, provenance and web/download links.").option("--json", "Print a JSON envelope.")
|
|
23
65
|
.action((id, options) => handle("visuals file get", options, () => requestOxygen(`/api/cli/visuals/files/${encodeURIComponent(id)}`)));
|
|
@@ -32,12 +74,19 @@ export function registerVisualCommands(program, handle) {
|
|
|
32
74
|
writeFileSync(options.out, bytes, { flag: "wx", mode: 0o600 });
|
|
33
75
|
return { path: resolve(options.out), ...data.file };
|
|
34
76
|
}));
|
|
35
|
-
visuals.command("render-preview").description("
|
|
77
|
+
visuals.command("render-preview").description("Save a render preview record and exact scope hash; 0 credits, no compute.")
|
|
36
78
|
.requiredOption("--source-file-ids <ids>", "Comma-separated HTML file UUIDs in page order.")
|
|
37
|
-
.option("--width <pixels>", "CSS pixel width
|
|
38
|
-
.option("--scale <1|2>", "PNG scale."
|
|
79
|
+
.option("--width <pixels>", "CSS pixel width; static defaults to 1080, motion to 720.").option("--height <pixels>", "CSS pixel height; static defaults to 1350, motion to 1280.")
|
|
80
|
+
.option("--scale <1|2>", "PNG scale.").option("--formats <formats>", "png,pdf for static, mp4 for hyperframes.")
|
|
81
|
+
.option("--render-profile <profile>", "static (default) or hyperframes; independent of the CLI login profile.")
|
|
82
|
+
.option("--assets-json <json>", "Asset bindings: [{file_id,path}], resolved and hash-bound by preview.")
|
|
83
|
+
.option("--fps <n>", "Motion frame rate: 24 (default) or 30.").option("--duration <seconds>", "Motion duration up to 10 seconds; default 5.")
|
|
39
84
|
.option("--json", "Print a JSON envelope.")
|
|
40
|
-
.action((options) => handle("visuals render preview", options, () => requestOxygen("/api/cli/visuals/renders", { method: "POST", body: { source_file_ids: options.sourceFileIds.split(",").map((s) => s.trim()),
|
|
85
|
+
.action((options) => handle("visuals render preview", options, () => requestOxygen("/api/cli/visuals/renders", { method: "POST", body: { source_file_ids: options.sourceFileIds.split(",").map((s) => s.trim()),
|
|
86
|
+
width: Number(options.width ?? (options.renderProfile === "hyperframes" ? 720 : 1080)), height: Number(options.height ?? (options.renderProfile === "hyperframes" ? 1280 : 1350)),
|
|
87
|
+
...(options.scale ? { scale: Number(options.scale) } : {}), ...(options.formats ? { formats: options.formats.split(",") } : {}),
|
|
88
|
+
...(options.renderProfile ? { profile: options.renderProfile } : {}), ...(options.assetsJson ? { assets: parseJsonOption(options.assetsJson) } : {}),
|
|
89
|
+
...(options.fps ? { fps: Number(options.fps) } : {}), ...(options.duration ? { duration: Number(options.duration) } : {}) } })));
|
|
41
90
|
visuals.command("render-start <render-id>").description("Start an exact preview as one idempotent render job; rendering is free.")
|
|
42
91
|
.requiredOption("--scope-hash <hash>", "Exact preview scope hash.")
|
|
43
92
|
// Rendering became free on 2026-10-14; the approval flags it needed are retired.
|
|
@@ -5,7 +5,7 @@ import { validateContract } from "../contracts/schema.js";
|
|
|
5
5
|
import { GUIDED_ACTIVATION_SCAN_POLICY_CONTRACT } from "../contracts/guided-activation.js";
|
|
6
6
|
import { isStaffEmail } from "../staff.js";
|
|
7
7
|
import { OxygenError } from "../cli-result.js";
|
|
8
|
-
import { RESEARCH_FINDING_ACTIVITY_TYPE } from "../research-findings.js";
|
|
8
|
+
import { RESEARCH_FINDING_ACTIVITY_TYPE } from "../tables/research-findings.js";
|
|
9
9
|
import { servedWorkspaceEventCatalog, WORKSPACE_EVENT_CATALOG } from "../workflows/workspace-event-catalog.js";
|
|
10
10
|
import { agentSessionScheduleProblem } from "./session-schedule.js";
|
|
11
11
|
/** The routine marker of a session's settings, or null for a general session. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CREDITS_PER_USD as SNAPSHOT_CREDITS_PER_USD, PRICING_PLAN_SNAPSHOT, MANAGED_INBOX_CREDITS_PER_MONTH as SNAPSHOT_MANAGED_MAILBOX_CREDITS_PER_MONTH, SENDING_MAILBOX_CREDITS_PER_MONTH as SNAPSHOT_SENDING_MAILBOX_CREDITS_PER_MONTH, SENDING_ENTRA_MAILBOX_CREDITS_PER_MONTH, } from "
|
|
2
|
-
import { isEntraMailbox } from "
|
|
3
|
-
import { currentSubscriptionGrantSlice, dueSubscriptionGrantSlices, } from "./
|
|
1
|
+
import { CREDITS_PER_USD as SNAPSHOT_CREDITS_PER_USD, PRICING_PLAN_SNAPSHOT, MANAGED_INBOX_CREDITS_PER_MONTH as SNAPSHOT_MANAGED_MAILBOX_CREDITS_PER_MONTH, SENDING_MAILBOX_CREDITS_PER_MONTH as SNAPSHOT_SENDING_MAILBOX_CREDITS_PER_MONTH, SENDING_ENTRA_MAILBOX_CREDITS_PER_MONTH, } from "../pricing-snapshot.generated.js";
|
|
2
|
+
import { isEntraMailbox } from "../mailboxes/email-infrastructure-policy.js";
|
|
3
|
+
import { currentSubscriptionGrantSlice, dueSubscriptionGrantSlices, } from "./anchors.js";
|
|
4
4
|
import { freeTierEntitlementEnabled } from "./plan-capabilities.js";
|
|
5
5
|
import { AUTOMATION_STEP_CREDITS_REPRICING, AUTOMATION_STEPS_COUNT_TOWARD_RUN_CAP_REPRICING, isRepricingInForce, BYOK_PLATFORM_FEE_REPRICING, OXYGEN_49_BYOK_REPRICING, repricedValue, TOPUP_RATE_REPRICING, } from "./repricing.js";
|
|
6
|
-
import { asRecordOrNull } from "
|
|
6
|
+
import { asRecordOrNull } from "../type-guards.js";
|
|
7
7
|
export const WEEKLY_USAGE_WINDOW_DAYS = 7;
|
|
8
8
|
export const BILLING_CURRENCIES = ["usd"];
|
|
9
9
|
export const DEFAULT_BILLING_CURRENCY = "usd";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { normalizeQuotedCredits, roundQuotedCredits } from "./
|
|
1
|
+
import { normalizeQuotedCredits, roundQuotedCredits } from "./money.js";
|
|
2
2
|
const DEFAULT_HEADROOM_MULTIPLIER = 1.25;
|
|
3
3
|
/**
|
|
4
4
|
* Size a ceiling from the EXPECTED cost plus a variance band, rather than from
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OxygenError } from "
|
|
1
|
+
import { OxygenError } from "../cli-result.js";
|
|
2
2
|
/** Milli-credit amounts shared by quoting and ledger settlement. Rounding policies
|
|
3
3
|
* are deliberately distinct: a positive hold rounds up, a quote rounds nearest,
|
|
4
4
|
* and persisted usage keeps its historical decimal rounding. */
|
|
@@ -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
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { planVolumeBonusCredits, planVolumeBonusPercent, resolveBasePricingPlan } from "./billing.js";
|
|
2
2
|
import { planLimitsForTier, limitsTierForPlanTier, resolveCronMinIntervalMinutes, resolvePlanAgentCreditLimits, } from "./plan-limits.js";
|
|
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 "
|
|
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",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RepricingOptions } from "./repricing.js";
|
|
2
|
-
export { CONNECTION_CEILING_ABOVE_DEFAULT_APPROVAL_KIND } from "
|
|
2
|
+
export { CONNECTION_CEILING_ABOVE_DEFAULT_APPROVAL_KIND } from "../connection-approval.js";
|
|
3
3
|
/**
|
|
4
4
|
* The five enforcement rungs of the per-plan limits ladder. Every PlanTier maps
|
|
5
5
|
* onto exactly one rung: "free" doubles as the unentitled fallback (no live
|
|
@@ -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 "
|
|
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,9 +1,9 @@
|
|
|
1
1
|
import { resolveBasePricingPlan } from "./billing.js";
|
|
2
|
-
import { OxygenError } from "
|
|
3
|
-
import { WORKSPACE_TABLE_CAPACITY } from "
|
|
2
|
+
import { OxygenError } from "../cli-result.js";
|
|
3
|
+
import { WORKSPACE_TABLE_CAPACITY } from "../tables/capacity.js";
|
|
4
4
|
import { findRepricedValue, repricedValue } from "./repricing.js";
|
|
5
|
-
import { CONNECTION_CEILING_ABOVE_DEFAULT_APPROVAL_KIND } from "
|
|
6
|
-
export { CONNECTION_CEILING_ABOVE_DEFAULT_APPROVAL_KIND } from "
|
|
5
|
+
import { CONNECTION_CEILING_ABOVE_DEFAULT_APPROVAL_KIND } from "../connection-approval.js";
|
|
6
|
+
export { CONNECTION_CEILING_ABOVE_DEFAULT_APPROVAL_KIND } from "../connection-approval.js";
|
|
7
7
|
export const LIMITS_TIER_ORDER = [
|
|
8
8
|
"free",
|
|
9
9
|
"starter",
|
|
@@ -26,7 +26,7 @@ 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
28
|
// browser bundle, so it is defined in ./tables/import-limits and re-exported here.
|
|
29
|
-
export { VERCEL_REQUEST_BODY_LIMIT_BYTES } from "
|
|
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
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* sides and fails when they diverge.
|
|
27
27
|
*
|
|
28
28
|
* Dependency-free on purpose: this module is imported by "use client"
|
|
29
|
-
* marketing components via the `@oxygen/shared/pricing-sheet` subpath, so it
|
|
29
|
+
* marketing components via the `@oxygen/shared/billing/pricing-sheet` subpath, so it
|
|
30
30
|
* must never drag the shared barrel (async_hooks etc.) into a client bundle.
|
|
31
31
|
* The generated snapshot holds that property too — it is literals only.
|
|
32
32
|
*
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
* /admin/costs takes effect without a deploy.
|
|
36
36
|
*/
|
|
37
37
|
import { type RepricingOptions } from "./repricing.js";
|
|
38
|
-
export { creditsToUsd, usdToCredits } from "
|
|
38
|
+
export { creditsToUsd, usdToCredits } from "../pricing-snapshot.generated.js";
|
|
39
39
|
export declare const PRICING_SHEET_VERIFIED = "2026-07";
|
|
40
40
|
export declare const PRICING_CREDITS_PER_USD = 100;
|
|
41
41
|
/**
|
|
@@ -43,7 +43,7 @@ export declare const PRICING_CREDITS_PER_USD = 100;
|
|
|
43
43
|
* $1.00. It rises $1.25 → $1.30 at the 2026-09 repricing's instant (S10), so a
|
|
44
44
|
* page resolves it on the server and passes the number to client components,
|
|
45
45
|
* which cannot read the switch. Same value as `creditTopupUsdCentsPer100() / 100`
|
|
46
|
-
* from `@oxygen/shared/billing`.
|
|
46
|
+
* from `@oxygen/shared/billing/billing`.
|
|
47
47
|
*/
|
|
48
48
|
export declare function topupUsdPer100(options?: RepricingOptions): number;
|
|
49
49
|
/**
|
|
@@ -72,7 +72,7 @@ export declare const SUBSCRIPTION_USD_PER_100 = 1;
|
|
|
72
72
|
* packages/shared/src/hosted-ai.ts.
|
|
73
73
|
*
|
|
74
74
|
* RESOLVER-DERIVED, not seed-derived: the canonical values live in
|
|
75
|
-
* packages/integrations/src/cogs-rates.ts and are served per-workspace from
|
|
75
|
+
* packages/integrations/src/billing/cogs-rates.ts and are served per-workspace from
|
|
76
76
|
* provider_cost_config. pricing-sheet-conformance.test.ts pins these literals
|
|
77
77
|
* against the live estimator, so a tier re-price fails a test rather than
|
|
78
78
|
* quietly mispricing the page.
|
|
@@ -167,7 +167,7 @@ export declare const RESEARCH_DEPTH_TYPICAL_ROW_CREDITS: {
|
|
|
167
167
|
/**
|
|
168
168
|
* Workflow steps are priced through the 2026-09 repricing switch, so this sheet
|
|
169
169
|
* carries no flat number for them: the price in force is
|
|
170
|
-
* `automationStepCredits()` (`@oxygen/shared/billing`), resolved on the server.
|
|
170
|
+
* `automationStepCredits()` (`@oxygen/shared/billing/billing`), resolved on the server.
|
|
171
171
|
* The definition is re-exported for surfaces that show what the step costs
|
|
172
172
|
* before and after the switch. Row writes inside a run are free.
|
|
173
173
|
*/
|
|
@@ -176,7 +176,7 @@ export { AUTOMATION_STEP_CREDITS_REPRICING } from "./repricing.js";
|
|
|
176
176
|
* The flat mailbox line of a managed Google or Microsoft 365 inbox: 300 (founder,
|
|
177
177
|
* 2026-10-07; repricing decision 3.1 had set 400 for Google alone). Its 100-credit
|
|
178
178
|
* mailbox connection, warm-up included, bills beside it: 400 all-in, which
|
|
179
|
-
* `managedInboxAllInCredits()` from `@oxygen/shared/repricing` quotes. The price
|
|
179
|
+
* `managedInboxAllInCredits()` from `@oxygen/shared/billing/repricing` quotes. The price
|
|
180
180
|
* charged is the pricing book's row; this is its committed default. Kept as an
|
|
181
181
|
* object (min/typical/max all equal) so callers that destructure any field need
|
|
182
182
|
* no shape change.
|
|
@@ -225,7 +225,7 @@ export declare const SENDING_DOMAIN_CREDITS_PER_YEAR_TYPICAL = 1250;
|
|
|
225
225
|
* repricing had set 135). The extra test is the RATIFIED 66 (slice S30), whose rise
|
|
226
226
|
* waits for the S07 effective-date switch, so a surface that quotes or bills uses
|
|
227
227
|
* `deliverabilitySeatCredits()` and `placementTestCredits()` from
|
|
228
|
-
* `@oxygen/shared/repricing` (16.6 for the test until the switch's instant).
|
|
228
|
+
* `@oxygen/shared/billing/repricing` (16.6 for the test until the switch's instant).
|
|
229
229
|
*/
|
|
230
230
|
export declare const DELIVERABILITY_SEAT_CREDITS_PER_MONTH = 100;
|
|
231
231
|
export declare const DELIVERABILITY_INCLUDED_TESTS_PER_INBOX = 2;
|
|
@@ -239,7 +239,7 @@ export declare const PLACEMENT_TEST_OVERAGE_CREDITS = 66;
|
|
|
239
239
|
*
|
|
240
240
|
* The value is the seeded price after the 2026-09 repricing (3,400, decision
|
|
241
241
|
* 2.1). The price in force before its effective-date switch is lower: resolve
|
|
242
|
-
* it with repricedChargeCredits from `@oxygen/shared/repricing` on the server.
|
|
242
|
+
* it with repricedChargeCredits from `@oxygen/shared/billing/repricing` on the server.
|
|
243
243
|
*/
|
|
244
244
|
export declare const LINKEDIN_ACCOUNT_CREDITS_PER_MONTH = 3400;
|
|
245
245
|
export declare const LINKEDIN_ACTION_CREDITS: {
|
|
@@ -263,7 +263,7 @@ export declare const WHATSAPP_ACCOUNT_CREDITS_PER_MONTH = 3400;
|
|
|
263
263
|
* X accounts: monthly credit reservation per connected account (2026-09
|
|
264
264
|
* repricing, decision 2.2). Like the LinkedIn and WhatsApp constants above this
|
|
265
265
|
* is the seeded, post-repricing price; show the price in force with
|
|
266
|
-
* repricedChargeCredits from `@oxygen/shared/repricing`.
|
|
266
|
+
* repricedChargeCredits from `@oxygen/shared/billing/repricing`.
|
|
267
267
|
*/
|
|
268
268
|
export declare const X_ACCOUNT_CREDITS_PER_MONTH = 1000;
|
|
269
269
|
/** Dedicated egress IP add-on. */
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* sides and fails when they diverge.
|
|
27
27
|
*
|
|
28
28
|
* Dependency-free on purpose: this module is imported by "use client"
|
|
29
|
-
* marketing components via the `@oxygen/shared/pricing-sheet` subpath, so it
|
|
29
|
+
* marketing components via the `@oxygen/shared/billing/pricing-sheet` subpath, so it
|
|
30
30
|
* must never drag the shared barrel (async_hooks etc.) into a client bundle.
|
|
31
31
|
* The generated snapshot holds that property too — it is literals only.
|
|
32
32
|
*
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
* loadPricingBook() instead of importing this file, so a staff re-price at
|
|
35
35
|
* /admin/costs takes effect without a deploy.
|
|
36
36
|
*/
|
|
37
|
-
import { CREDITS_PER_USD as SNAPSHOT_CREDITS_PER_USD, DELIVERABILITY_INCLUDED_TESTS_PER_INBOX as SNAPSHOT_DELIVERABILITY_INCLUDED_TESTS_PER_INBOX, DELIVERABILITY_SEAT_CREDITS_PER_MONTH as SNAPSHOT_DELIVERABILITY_SEAT_CREDITS_PER_MONTH, EGRESS_IP_CREDITS_PER_MONTH as SNAPSHOT_EGRESS_IP_CREDITS_PER_MONTH, SENDING_SEAT_USD_CENTS as SNAPSHOT_SENDING_SEAT_USD_CENTS, ENRICHMENT_CREDITS_PER_ROW_TYPICAL as SNAPSHOT_ENRICHMENT_CREDITS_PER_ROW_TYPICAL, LINKEDIN_ACCOUNT_CREDITS_PER_MONTH as SNAPSHOT_LINKEDIN_ACCOUNT_CREDITS_PER_MONTH, LINKEDIN_ACTION_CREDITS as SNAPSHOT_LINKEDIN_ACTION_CREDITS, LINKEDIN_TYPICAL_ACTIONS_CREDITS_PER_MONTH as SNAPSHOT_LINKEDIN_TYPICAL_ACTIONS_CREDITS_PER_MONTH, MANAGED_INBOX_CREDITS_PER_MONTH as SNAPSHOT_MANAGED_INBOX_CREDITS_PER_MONTH, PLACEMENT_TEST_OVERAGE_CREDITS as SNAPSHOT_PLACEMENT_TEST_OVERAGE_CREDITS, PRICE_SHEET_VERIFIED as SNAPSHOT_PRICE_SHEET_VERIFIED, SEND_CREDITS as SNAPSHOT_SEND_CREDITS, SENDING_DOMAIN_CREDITS_PER_YEAR_TYPICAL as SNAPSHOT_SENDING_DOMAIN_CREDITS_PER_YEAR_TYPICAL, SUBSCRIPTION_USD_PER_100 as SNAPSHOT_SUBSCRIPTION_USD_PER_100, VOICE_CREDITS_PER_MINUTE as SNAPSHOT_VOICE_CREDITS_PER_MINUTE, VOICE_NUMBER_CREDITS_PER_MONTH as SNAPSHOT_VOICE_NUMBER_CREDITS_PER_MONTH, WHATSAPP_ACCOUNT_CREDITS_PER_MONTH as SNAPSHOT_WHATSAPP_ACCOUNT_CREDITS_PER_MONTH, X_ACCOUNT_CREDITS_PER_MONTH as SNAPSHOT_X_ACCOUNT_CREDITS_PER_MONTH, } from "
|
|
37
|
+
import { CREDITS_PER_USD as SNAPSHOT_CREDITS_PER_USD, DELIVERABILITY_INCLUDED_TESTS_PER_INBOX as SNAPSHOT_DELIVERABILITY_INCLUDED_TESTS_PER_INBOX, DELIVERABILITY_SEAT_CREDITS_PER_MONTH as SNAPSHOT_DELIVERABILITY_SEAT_CREDITS_PER_MONTH, EGRESS_IP_CREDITS_PER_MONTH as SNAPSHOT_EGRESS_IP_CREDITS_PER_MONTH, SENDING_SEAT_USD_CENTS as SNAPSHOT_SENDING_SEAT_USD_CENTS, ENRICHMENT_CREDITS_PER_ROW_TYPICAL as SNAPSHOT_ENRICHMENT_CREDITS_PER_ROW_TYPICAL, LINKEDIN_ACCOUNT_CREDITS_PER_MONTH as SNAPSHOT_LINKEDIN_ACCOUNT_CREDITS_PER_MONTH, LINKEDIN_ACTION_CREDITS as SNAPSHOT_LINKEDIN_ACTION_CREDITS, LINKEDIN_TYPICAL_ACTIONS_CREDITS_PER_MONTH as SNAPSHOT_LINKEDIN_TYPICAL_ACTIONS_CREDITS_PER_MONTH, MANAGED_INBOX_CREDITS_PER_MONTH as SNAPSHOT_MANAGED_INBOX_CREDITS_PER_MONTH, PLACEMENT_TEST_OVERAGE_CREDITS as SNAPSHOT_PLACEMENT_TEST_OVERAGE_CREDITS, PRICE_SHEET_VERIFIED as SNAPSHOT_PRICE_SHEET_VERIFIED, SEND_CREDITS as SNAPSHOT_SEND_CREDITS, SENDING_DOMAIN_CREDITS_PER_YEAR_TYPICAL as SNAPSHOT_SENDING_DOMAIN_CREDITS_PER_YEAR_TYPICAL, SUBSCRIPTION_USD_PER_100 as SNAPSHOT_SUBSCRIPTION_USD_PER_100, VOICE_CREDITS_PER_MINUTE as SNAPSHOT_VOICE_CREDITS_PER_MINUTE, VOICE_NUMBER_CREDITS_PER_MONTH as SNAPSHOT_VOICE_NUMBER_CREDITS_PER_MONTH, WHATSAPP_ACCOUNT_CREDITS_PER_MONTH as SNAPSHOT_WHATSAPP_ACCOUNT_CREDITS_PER_MONTH, X_ACCOUNT_CREDITS_PER_MONTH as SNAPSHOT_X_ACCOUNT_CREDITS_PER_MONTH, } from "../pricing-snapshot.generated.js";
|
|
38
38
|
import { formatRepricingDate, repricedValue, scheduledRepricedValue, TOPUP_RATE_REPRICING, } from "./repricing.js";
|
|
39
|
-
export { creditsToUsd, usdToCredits } from "
|
|
39
|
+
export { creditsToUsd, usdToCredits } from "../pricing-snapshot.generated.js";
|
|
40
40
|
export const PRICING_SHEET_VERIFIED = SNAPSHOT_PRICE_SHEET_VERIFIED;
|
|
41
41
|
export const PRICING_CREDITS_PER_USD = SNAPSHOT_CREDITS_PER_USD;
|
|
42
42
|
/**
|
|
@@ -44,7 +44,7 @@ export const PRICING_CREDITS_PER_USD = SNAPSHOT_CREDITS_PER_USD;
|
|
|
44
44
|
* $1.00. It rises $1.25 → $1.30 at the 2026-09 repricing's instant (S10), so a
|
|
45
45
|
* page resolves it on the server and passes the number to client components,
|
|
46
46
|
* which cannot read the switch. Same value as `creditTopupUsdCentsPer100() / 100`
|
|
47
|
-
* from `@oxygen/shared/billing`.
|
|
47
|
+
* from `@oxygen/shared/billing/billing`.
|
|
48
48
|
*/
|
|
49
49
|
export function topupUsdPer100(options = {}) {
|
|
50
50
|
return repricedValue(TOPUP_RATE_REPRICING, options) / 100;
|
|
@@ -76,7 +76,7 @@ export const SUBSCRIPTION_USD_PER_100 = SNAPSHOT_SUBSCRIPTION_USD_PER_100;
|
|
|
76
76
|
* packages/shared/src/hosted-ai.ts.
|
|
77
77
|
*
|
|
78
78
|
* RESOLVER-DERIVED, not seed-derived: the canonical values live in
|
|
79
|
-
* packages/integrations/src/cogs-rates.ts and are served per-workspace from
|
|
79
|
+
* packages/integrations/src/billing/cogs-rates.ts and are served per-workspace from
|
|
80
80
|
* provider_cost_config. pricing-sheet-conformance.test.ts pins these literals
|
|
81
81
|
* against the live estimator, so a tier re-price fails a test rather than
|
|
82
82
|
* quietly mispricing the page.
|
|
@@ -156,7 +156,7 @@ export const RESEARCH_DEPTH_TYPICAL_ROW_CREDITS = { quick: 2.1, standard: 5.5, d
|
|
|
156
156
|
/**
|
|
157
157
|
* Workflow steps are priced through the 2026-09 repricing switch, so this sheet
|
|
158
158
|
* carries no flat number for them: the price in force is
|
|
159
|
-
* `automationStepCredits()` (`@oxygen/shared/billing`), resolved on the server.
|
|
159
|
+
* `automationStepCredits()` (`@oxygen/shared/billing/billing`), resolved on the server.
|
|
160
160
|
* The definition is re-exported for surfaces that show what the step costs
|
|
161
161
|
* before and after the switch. Row writes inside a run are free.
|
|
162
162
|
*/
|
|
@@ -165,7 +165,7 @@ export { AUTOMATION_STEP_CREDITS_REPRICING } from "./repricing.js";
|
|
|
165
165
|
* The flat mailbox line of a managed Google or Microsoft 365 inbox: 300 (founder,
|
|
166
166
|
* 2026-10-07; repricing decision 3.1 had set 400 for Google alone). Its 100-credit
|
|
167
167
|
* mailbox connection, warm-up included, bills beside it: 400 all-in, which
|
|
168
|
-
* `managedInboxAllInCredits()` from `@oxygen/shared/repricing` quotes. The price
|
|
168
|
+
* `managedInboxAllInCredits()` from `@oxygen/shared/billing/repricing` quotes. The price
|
|
169
169
|
* charged is the pricing book's row; this is its committed default. Kept as an
|
|
170
170
|
* object (min/typical/max all equal) so callers that destructure any field need
|
|
171
171
|
* no shape change.
|
|
@@ -214,7 +214,7 @@ export const SENDING_DOMAIN_CREDITS_PER_YEAR_TYPICAL = SNAPSHOT_SENDING_DOMAIN_C
|
|
|
214
214
|
* repricing had set 135). The extra test is the RATIFIED 66 (slice S30), whose rise
|
|
215
215
|
* waits for the S07 effective-date switch, so a surface that quotes or bills uses
|
|
216
216
|
* `deliverabilitySeatCredits()` and `placementTestCredits()` from
|
|
217
|
-
* `@oxygen/shared/repricing` (16.6 for the test until the switch's instant).
|
|
217
|
+
* `@oxygen/shared/billing/repricing` (16.6 for the test until the switch's instant).
|
|
218
218
|
*/
|
|
219
219
|
export const DELIVERABILITY_SEAT_CREDITS_PER_MONTH = SNAPSHOT_DELIVERABILITY_SEAT_CREDITS_PER_MONTH;
|
|
220
220
|
export const DELIVERABILITY_INCLUDED_TESTS_PER_INBOX = SNAPSHOT_DELIVERABILITY_INCLUDED_TESTS_PER_INBOX;
|
|
@@ -228,7 +228,7 @@ export const PLACEMENT_TEST_OVERAGE_CREDITS = SNAPSHOT_PLACEMENT_TEST_OVERAGE_CR
|
|
|
228
228
|
*
|
|
229
229
|
* The value is the seeded price after the 2026-09 repricing (3,400, decision
|
|
230
230
|
* 2.1). The price in force before its effective-date switch is lower: resolve
|
|
231
|
-
* it with repricedChargeCredits from `@oxygen/shared/repricing` on the server.
|
|
231
|
+
* it with repricedChargeCredits from `@oxygen/shared/billing/repricing` on the server.
|
|
232
232
|
*/
|
|
233
233
|
export const LINKEDIN_ACCOUNT_CREDITS_PER_MONTH = SNAPSHOT_LINKEDIN_ACCOUNT_CREDITS_PER_MONTH;
|
|
234
234
|
export const LINKEDIN_ACTION_CREDITS = SNAPSHOT_LINKEDIN_ACTION_CREDITS;
|
|
@@ -244,7 +244,7 @@ export const WHATSAPP_ACCOUNT_CREDITS_PER_MONTH = SNAPSHOT_WHATSAPP_ACCOUNT_CRED
|
|
|
244
244
|
* X accounts: monthly credit reservation per connected account (2026-09
|
|
245
245
|
* repricing, decision 2.2). Like the LinkedIn and WhatsApp constants above this
|
|
246
246
|
* is the seeded, post-repricing price; show the price in force with
|
|
247
|
-
* repricedChargeCredits from `@oxygen/shared/repricing`.
|
|
247
|
+
* repricedChargeCredits from `@oxygen/shared/billing/repricing`.
|
|
248
248
|
*/
|
|
249
249
|
export const X_ACCOUNT_CREDITS_PER_MONTH = SNAPSHOT_X_ACCOUNT_CREDITS_PER_MONTH;
|
|
250
250
|
/** Dedicated egress IP add-on. */
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
// may import the schedule. A client component cannot read the server's
|
|
47
47
|
// environment, though, so a page that shows a price in force must resolve it on
|
|
48
48
|
// the server and pass it down.
|
|
49
|
-
import { AUTOMATION_ACTION_CREDITS as SNAPSHOT_AUTOMATION_STEP_CREDITS, DELIVERABILITY_SEAT_CREDITS_PER_MONTH as SNAPSHOT_DELIVERABILITY_SEAT_CREDITS, PLACEMENT_TEST_OVERAGE_CREDITS as SNAPSHOT_PLACEMENT_TEST_CREDITS, BYOK_PLATFORM_FEE_CREDITS as SNAPSHOT_BYOK_PLATFORM_FEE_CREDITS, LINKEDIN_URL_FOUND_CREDITS as SNAPSHOT_LINKEDIN_URL_FOUND_CREDITS, MANAGED_INBOX_CREDITS_PER_MONTH as SNAPSHOT_MANAGED_MAILBOX_CREDITS, PRICING_PLAN_SNAPSHOT, SENDING_MAILBOX_CREDITS_PER_MONTH as SNAPSHOT_SENDING_MAILBOX_CREDITS, TOPUP_USD_CENTS_PER_100_CREDITS as SNAPSHOT_TOPUP_USD_CENTS_PER_100_CREDITS, } from "
|
|
49
|
+
import { AUTOMATION_ACTION_CREDITS as SNAPSHOT_AUTOMATION_STEP_CREDITS, DELIVERABILITY_SEAT_CREDITS_PER_MONTH as SNAPSHOT_DELIVERABILITY_SEAT_CREDITS, PLACEMENT_TEST_OVERAGE_CREDITS as SNAPSHOT_PLACEMENT_TEST_CREDITS, BYOK_PLATFORM_FEE_CREDITS as SNAPSHOT_BYOK_PLATFORM_FEE_CREDITS, LINKEDIN_URL_FOUND_CREDITS as SNAPSHOT_LINKEDIN_URL_FOUND_CREDITS, MANAGED_INBOX_CREDITS_PER_MONTH as SNAPSHOT_MANAGED_MAILBOX_CREDITS, PRICING_PLAN_SNAPSHOT, SENDING_MAILBOX_CREDITS_PER_MONTH as SNAPSHOT_SENDING_MAILBOX_CREDITS, TOPUP_USD_CENTS_PER_100_CREDITS as SNAPSHOT_TOPUP_USD_CENTS_PER_100_CREDITS, } from "../pricing-snapshot.generated.js";
|
|
50
50
|
export const REPRICING_2026_09_EFFECTIVE_AT_ENV_VAR = "OXYGEN_REPRICING_2026_09_EFFECTIVE_AT";
|
|
51
51
|
/** Stable machine name of this price change, as reported on customer surfaces. */
|
|
52
52
|
export const REPRICING_2026_09_NAME = "repricing_2026_09";
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* "skips the seat check", it is one that holds a legacy entitlement which
|
|
26
26
|
* SATISFIES the seat check. The gate always runs.
|
|
27
27
|
*/
|
|
28
|
-
import { SENDING_SEAT_USD_CENTS, type SendingSeatKey } from "
|
|
28
|
+
import { SENDING_SEAT_USD_CENTS, type SendingSeatKey } from "../pricing-snapshot.generated.js";
|
|
29
29
|
import type { CreditGateKind } from "./credit-gate.js";
|
|
30
30
|
export { SENDING_SEAT_USD_CENTS };
|
|
31
31
|
/**
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* "skips the seat check", it is one that holds a legacy entitlement which
|
|
26
26
|
* SATISFIES the seat check. The gate always runs.
|
|
27
27
|
*/
|
|
28
|
-
import { SENDING_SEAT_USD_CENTS, } from "
|
|
28
|
+
import { SENDING_SEAT_USD_CENTS, } from "../pricing-snapshot.generated.js";
|
|
29
29
|
export { SENDING_SEAT_USD_CENTS };
|
|
30
30
|
export const SENDING_SEAT_KEYS = [
|
|
31
31
|
"linkedin",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const rules = {
|
|
2
2
|
explicit: [
|
|
3
3
|
{
|
|
4
|
-
order:
|
|
5
|
-
route: (query) => /\b(infographic|graphic designer|render html|carousel pages|visual design|gtm flow image)\b/.test(query)
|
|
4
|
+
order: 309,
|
|
5
|
+
route: (query) => /\b(infographic|graphic designer|render html|carousel pages|visual design|gtm flow image|hyperframes|media workspace|custom font|visual source components)\b|\b(make|create|render|produce|compose)\b.{0,60}\b(video|mp4)\b|\b(video|mp4)\b.{0,30}\b(composition|render)\b|\b(upload(?:ed|ing)?|attach(?:ed|ing)?)\b.{0,35}\b(fonts?|media assets?)\b/.test(query)
|
|
6
|
+
|| (/\b(inspect|view|review)\b.{0,30}\b(frames?|rendered images?)\b/.test(query) && !/\b(cover|thumbnail)\b/.test(query)) ? "visual-rendering" : null,
|
|
6
7
|
},
|
|
7
8
|
],
|
|
8
9
|
};
|
|
@@ -4,14 +4,14 @@ export const route = {
|
|
|
4
4
|
id: "visual-rendering",
|
|
5
5
|
layer: "Action",
|
|
6
6
|
primitive: null,
|
|
7
|
-
owns: "Agent-authored GTM
|
|
8
|
-
notFor: "A separate
|
|
9
|
-
execution: "
|
|
7
|
+
owns: "Agent-authored GTM graphics and short Hyperframes videos: editable sources, reusable components, workspace media/fonts, isolated PNG/PDF/MP4 rendering, frame inspection, revisions and downloads.",
|
|
8
|
+
notFor: "A separate primitive, arbitrary package installation, generative image/video providers, GPU/Blender execution, or publishing.",
|
|
9
|
+
execution: "Upload assets, bind file IDs to relative project paths, save editable HTML and preview the exact scope. Start the free bounded render, poll, inspect PNGs or video frames, revise and download. Preview verifies the selected renderer is available.",
|
|
10
10
|
posture: "workspace_write",
|
|
11
|
-
gatewayTools: ["
|
|
12
|
-
gatewayCommands: ["visuals source-create", "visuals render-preview", "visuals render-get", "visuals download"],
|
|
11
|
+
gatewayTools: ["oxygen_agent_files_list", "oxygen_visual_asset_upload", "oxygen_visual_source_create", "oxygen_visual_render_preview", "oxygen_visual_image_view"],
|
|
12
|
+
gatewayCommands: ["agent files", "visuals asset-upload", "visuals source-create", "visuals render-preview", "visuals render-get", "visuals download"],
|
|
13
13
|
skills: ["oxygen-linkedin-content", "oxygen-knowledge"],
|
|
14
14
|
endpointSections: ["visuals"],
|
|
15
|
-
intentTerms: ["infographic", "gtm flow image", "render html", "visual design", "carousel pages", "svg", "png", "pdf export", "graphic designer"],
|
|
15
|
+
intentTerms: ["infographic", "gtm flow image", "render html", "visual design", "carousel pages", "svg", "png", "pdf export", "graphic designer", "hyperframes", "render video", "mp4 composition", "media workspace", "custom font"],
|
|
16
16
|
},
|
|
17
17
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AGENT_RUN_APPROVED_CEILING_MAX_CREDITS } from "../plan-limits.js";
|
|
1
|
+
import { AGENT_RUN_APPROVED_CEILING_MAX_CREDITS } from "../billing/plan-limits.js";
|
|
2
2
|
import { bool, int, nullable, obj, str } from "./schema.js";
|
|
3
3
|
export const CONNECTOR_UPDATE_CONTRACT = obj({
|
|
4
4
|
default_workspace: nullable(str({
|
|
@@ -159,7 +159,7 @@ export const CUSTOMER_OPERATIONS = [
|
|
|
159
159
|
operation("linkedin.inbox.backfill_status", "/api/cli/linkedin/inbox/backfill", "GET", "linkedin inbox backfill-status", "oxygen_linkedin_inbox_backfill_status", "inbox", "Read the durable LinkedIn inbox backfill status.", { account: text() }),
|
|
160
160
|
operation("linkedin.viewers.list", "/api/cli/linkedin/viewers", "GET", "linkedin viewers list", "oxygen_profile_viewers", "publishing", "Read named LinkedIn profile viewers, respecting the connected account's privacy ceiling.", { account: text(), start: int({ minimum: 0 }), include_raw: bool() }, [], cliOnly),
|
|
161
161
|
operation("signals.search.filters", "/api/cli/signals/search/preview", "GET", "signals search filters", "oxygen_signals_search_preview", "signals", "Read the LinkedIn post-search filter catalog and credential status; runs no search.", { source: enumOf(["linkedin_posts"]) }, [], cliOnly),
|
|
162
|
-
operation("visuals.download", "/api/cli/visuals/files/{file_id}/download", "GET", "visuals download", "oxygen_visual_file_download", "publishing", "Download a tenant-owned visual
|
|
162
|
+
operation("visuals.download", "/api/cli/visuals/files/{file_id}/download", "GET", "visuals download", "oxygen_visual_file_download", "publishing", "Download a tenant-owned visual file as an MCP resource with base64 bytes (max 50 MiB). Use web or CLI for larger originals.", {}, [], { ...mcpOnly, binary: { maxBytes: 50 * 1024 * 1024 } }),
|
|
163
163
|
operation("workflows.mcp_callable", "/api/cli/workflows/mcp-callable", "GET", "workflows mcp list", "oxygen_workflows_mcp_callable", "workflows", "List this workspace's published MCP-callable Workflow definitions and interfaces.", {}, [], mcpOnly),
|
|
164
164
|
operation("skills.get", "/api/cli/skills/get", "GET", "skills get", "oxygen_skills_get", "workspace", "Read one authenticated, entitled product-skill entrypoint or manifest-listed supporting file.", { name: text(), file: text("Relative supporting-file path from the manifest; omit for SKILL.md.") }, ["name"], mcpOnly),
|
|
165
165
|
];
|