@oxygen-agent/cli 1.1014.2170 → 1.1014.2213

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 CHANGED
@@ -34,4 +34,4 @@ oxygen update
34
34
 
35
35
  For product documentation, visit https://oxygen-agent.com/docs. For support, visit https://oxygen-agent.com.
36
36
 
37
- Version: 1.1014.2170
37
+ Version: 1.1014.2213
@@ -5,7 +5,7 @@ import { oxygenAppUrl } from "../help.js";
5
5
  import { requestOxygen } from "../http-client.js";
6
6
  import { readOption } from "../util.js";
7
7
  import { PURCHASABLE_PLAN_KEYS, planVolumeBonusPercent, resolveBasePricingPlan } from "@oxygen/shared/billing";
8
- import { CANCELLATION_REASON_VALUES } from "@oxygen/shared/cancellation-reasons";
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";
11
11
  function buildBillingLedgerParams(options) {
@@ -248,7 +248,7 @@ export function registerCompaniesFamily(program, handleAsyncAction) {
248
248
  .option("--mode <mode>", "dry_run or live. Defaults to dry_run.")
249
249
  .option("--max-pages <n>", "Maximum provider pages to ingest. Defaults to the route estimate, and is itself capped by --target-count: asking for more pages than that many rows needs cannot add rows.")
250
250
  .option("--max-credits <n>", "Required credit ceiling for live runs.")
251
- .option("--target-count <n>", "How many rows to source, independently of the free preview size. Omit it to take every match, up to what one query reaches and a tenth of the spendable credits (target_count_default says which bound applied). Maps previews up to 20; page size varies by source. Total matches may be unavailable. This count bounds pagination: --max-pages cannot exceed the pages it needs, and a run that stops because of it reports stopped_by row_target.")
251
+ .option("--target-count <n>", "How many rows to source, independently of the free preview size. With --plan-json it must equal the plan's own target_count (plan again to resize). Omit it to take every match, up to what one query reaches and a tenth of the spendable credits (target_count_default says which bound applied). Maps previews up to 20; page size varies by source. Total matches may be unavailable. This count bounds pagination: --max-pages cannot exceed the pages it needs, and a run that stops because of it reports stopped_by row_target.")
252
252
  .option("--source-intent <intent>", "Override detected intent when planning from --prompt.")
253
253
  .option("--filters-json <json-or-file>", "CompanySearchFilters JSON inline or a @file/path when planning from --prompt; wins over individual flags per top-level filter path.")
254
254
  .option("--industries <csv>", "Comma-separated industries to include when planning from --prompt.")
@@ -29,18 +29,35 @@ function websiteCommands(handleAsyncAction) {
29
29
  website.addCommand(command);
30
30
  }
31
31
  for (const action of ["set", "bulk", "check", "reconcile", "defaults-set", "destination-add", "destination-check", "destination-publish", "destination-remove"]) {
32
- const command = new Command(action).description(action === "check" ? "Probe exact website roots for TLS, status, redirects, exposure and latency; saves health, zero credits."
33
- : action.startsWith("destination") ? "Manage website ownership verification and exact TXT publication. Public writes preview before approval."
34
- : "Configure sending-domain websites. Public changes preview first; apply with the returned plan ID and hash.")
35
- .option("--domains <domains>", "Comma-separated exact domains (maximum 100).")
36
- .option("--mode <mode>", "off, forward, mask or relay.")
37
- .option("--destination-url <url>", "Verified HTTPS website or neutral relay.")
38
- .option("--relay-transport <transport>", "forward or mask.")
39
- .option("--captcha <bool>", "true or false; true disables masking.")
40
- .option("--approved", "Approve the reviewed change.")
41
- .option("--plan-id <id>", "Exact preview plan ID.")
42
- .option("--plan-hash <hash>", "Exact preview hash.")
43
- .option("--json", "Print a JSON envelope.");
32
+ const descriptions = {
33
+ set: "Preview one domain's website; apply the exact plan with approval. Zero credits.",
34
+ bulk: "Preview up to 100 exact domains; resolve all blockers before approving the plan. Zero credits.",
35
+ check: "Probe roots for TLS, status, redirects, exposure and latency. Saves health evidence; changes no website or DNS. Zero credits.",
36
+ reconcile: "Read back an uncertain plan without repeating provider writes. Zero credits.",
37
+ "defaults-set": "Save policy for new domains; existing domains stay unchanged. Non-off modes need a destination before purchases. Zero credits.",
38
+ "destination-add": "Preview destination verification; --approved creates the binding and returns exact TXT records. Publishes no DNS. Zero credits.",
39
+ "destination-check": "Check published TXT records and save ownership status. Changes no public DNS or website. Zero credits.",
40
+ "destination-publish": "Preview exact ownership TXT additions; apply with approval and the preview ID/hash. Zero credits.",
41
+ "destination-remove": "Preview removal of this workspace's verification binding; --approved removes it. Deletes no DNS or vendor verification. Zero credits.",
42
+ };
43
+ const command = new Command(action).description(descriptions[action]).option("--json", "Print a JSON envelope.");
44
+ if (action === "bulk" || action === "check")
45
+ command.requiredOption("--domains <domains>", "Comma-separated exact domains (maximum 100).");
46
+ if (action === "set" || action === "bulk" || action === "defaults-set") {
47
+ command.option("--mode <mode>", "off, forward, mask or relay.")
48
+ .option("--destination-url <url>", "Verified HTTPS website or neutral relay.")
49
+ .option("--relay-transport <transport>", "forward or mask.")
50
+ .option("--captcha <bool>", "true or false; true disables masking.");
51
+ }
52
+ if (action === "set" || action === "bulk" || action === "destination-publish") {
53
+ command.option("--approved", "Approve the reviewed public change.")
54
+ .option("--plan-id <id>", "Exact preview plan ID.")
55
+ .option("--plan-hash <hash>", "Exact preview hash.");
56
+ }
57
+ if (action === "destination-add" || action === "destination-remove")
58
+ command.option("--approved", "Approve the reviewed verification binding change.");
59
+ if (action === "reconcile")
60
+ command.requiredOption("--plan-id <id>", "Saved plan ID; never repeats its provider writes.");
44
61
  if (action === "set")
45
62
  command.argument("<domain>");
46
63
  if (action.startsWith("destination"))
@@ -1,5 +1,5 @@
1
- import type { RecipientProvider } from "./esp-contract.js";
2
- export { RECIPIENT_PROVIDERS, type RecipientProvider } from "./esp-contract.js";
1
+ import type { RecipientProvider } from "../esp-contract.js";
2
+ export { RECIPIENT_PROVIDERS, type RecipientProvider } from "../esp-contract.js";
3
3
  /** A stored ESP family (recipient_esp_cache.family) as a provider; null means not resolved. */
4
4
  export declare function recipientProviderFromFamily(family: string | null | undefined): RecipientProvider;
5
5
  /** MX exchange hosts as a provider. An answer naming no known vendor is `other`; no hosts is `unknown`. */
@@ -1,5 +1,5 @@
1
- import { consumerRecipientDomainFamilies, familyFromMxHosts, inferRecipientEspFamily, } from "./sequence-internals/esp-policy.js";
2
- export { RECIPIENT_PROVIDERS } from "./esp-contract.js";
1
+ import { consumerRecipientDomainFamilies, familyFromMxHosts, inferRecipientEspFamily, } from "../sequence-internals/esp-policy.js";
2
+ export { RECIPIENT_PROVIDERS } from "../esp-contract.js";
3
3
  const NAMED_PROVIDERS = new Set(["google", "microsoft", "proofpoint", "mimecast", "barracuda", "cisco"]);
4
4
  /** A stored ESP family (recipient_esp_cache.family) as a provider; null means not resolved. */
5
5
  export function recipientProviderFromFamily(family) {
@@ -1 +1 @@
1
- export declare const OXYGEN_BUILD_VERSION = "1.1014.2170";
1
+ export declare const OXYGEN_BUILD_VERSION = "1.1014.2213";
@@ -1,2 +1,2 @@
1
1
  // GENERATED by scripts/ci/version-stamp.mjs from VERSION + git history. Do not edit; do not commit.
2
- export const OXYGEN_BUILD_VERSION = "1.1014.2170";
2
+ export const OXYGEN_BUILD_VERSION = "1.1014.2213";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxygen-agent/cli",
3
- "version": "1.1014.2170",
3
+ "version": "1.1014.2213",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",