@oxygen-agent/cli 1.1021.5 → 1.1021.7

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.1021.5
37
+ Version: 1.1021.7
@@ -348,7 +348,7 @@ export function registerBillingFamily(program, handleAsyncAction, billingDocsUrl
348
348
  await handleAsyncAction("billing retain", options, () => requestOxygen("/api/cli/billing/cancel", { method: "POST", body: { action: "retain", offer_id: options.offer } }));
349
349
  }))
350
350
  .addCommand(new Command("topup")
351
- .description("No amount: read-only price quote, no checkout. With --credits or a pack: create Stripe Checkout and possibly billing resources; no charge until payment. Read tax_basis and review tax and the final total in Checkout. Prices are per 100 credits (`usd_per_100_credits`); credits arrive after confirmed payment and never expire. Plan credits cost less. `usd_per_1k_credits` is a deprecated name for the same per-100 price, not a price per 1,000 credits. `default_credits` is the web form's initial custom selection, not a purchase or minimum.")
351
+ .description("Top-ups need a plan: a free workspace is refused with `upgrade_required` and pointed to `billing change`. No amount: read-only price quote, no checkout. With --credits or a pack: create Stripe Checkout and possibly billing resources; no charge until payment. Read tax_basis and review tax and the final total in Checkout. Prices are per 100 credits (`usd_per_100_credits`); credits arrive after confirmed payment and never expire. Plan credits cost less. `usd_per_1k_credits` is a deprecated name for the same per-100 price, not a price per 1,000 credits. `default_credits` is the web form's initial custom selection, not a purchase or minimum.")
352
352
  .argument("[pack]", "A pack id from the list shown when you run without an amount.")
353
353
  .option("--credits <n>", "Credits to buy (800-769,200 in 100-credit increments).")
354
354
  .option("--json", "Print a JSON envelope.")
@@ -63,6 +63,12 @@ export declare const CREDITS_PER_USD = 100;
63
63
  * switch.
64
64
  */
65
65
  export declare function creditTopupUsdCentsPer100(options?: RepricingOptions): number;
66
+ /**
67
+ * A free workspace's top-up refusal (current chat, 2026-10-30: "top ups should
68
+ * essentially only be on the plan right. we should push to get the plan"):
69
+ * the same words on the web, the CLI and MCP.
70
+ */
71
+ export declare const CREDIT_TOPUP_PLAN_REQUIRED_MESSAGE = "Credit top-ups come with a plan. Pick a plan: it includes monthly credits, and you can top up on it whenever you need more.";
66
72
  export declare const CREDIT_TOPUP_MIN_CREDITS = 800;
67
73
  export declare const CREDIT_TOPUP_MAX_CREDITS = 769200;
68
74
  export declare const CREDIT_TOPUP_STEP_CREDITS = 100;
@@ -66,6 +66,12 @@ export function creditTopupUsdCentsPer100(options = {}) {
66
66
  // On-demand purchases run in 100-credit increments up to $10,000 before tax.
67
67
  // At $1.30 per 100, the largest whole increment is 769,200 credits ($9,999.60).
68
68
  // The ceiling is per checkout; purchased credits never expire.
69
+ /**
70
+ * A free workspace's top-up refusal (current chat, 2026-10-30: "top ups should
71
+ * essentially only be on the plan right. we should push to get the plan"):
72
+ * the same words on the web, the CLI and MCP.
73
+ */
74
+ export const CREDIT_TOPUP_PLAN_REQUIRED_MESSAGE = "Credit top-ups come with a plan. Pick a plan: it includes monthly credits, and you can top up on it whenever you need more.";
69
75
  export const CREDIT_TOPUP_MIN_CREDITS = 800;
70
76
  export const CREDIT_TOPUP_MAX_CREDITS = 769_200;
71
77
  export const CREDIT_TOPUP_STEP_CREDITS = 100;
@@ -7,7 +7,20 @@
7
7
  * once with this code and runs nothing; the chat shows an Upgrade under it.
8
8
  */
9
9
  export declare const COPILOT_PLAN_HOLD_CODE = "upgrade_required";
10
- export declare const COPILOT_PLAN_HOLD_MESSAGE = "Your free workspace has finished onboarding. Choose a plan to run this message.";
10
+ /**
11
+ * What the Oxygent says under a held message, in place of an answer (current
12
+ * chat, 2026-10-30: the first held signup read the bare Upgrade card as an
13
+ * error and sent eight more messages). A play says what it would build and
14
+ * from what; any other message says it runs once there is a plan. Plain text,
15
+ * so the CLI and MCP show the same words as the chat.
16
+ */
17
+ export declare function copilotPlanHoldMessage(input: {
18
+ message: string;
19
+ leads?: {
20
+ sourced: number;
21
+ emails: number;
22
+ } | null;
23
+ }): string;
11
24
  /**
12
25
  * Whether a free, self-billed workspace's message waits for a plan: the play
13
26
  * that ends onboarding, and every message once onboarding has finished.
@@ -1,4 +1,4 @@
1
- import { ONBOARDING_PLAY_MESSAGE_PREFIX } from "../onboarding/plays.js";
1
+ import { ONBOARDING_OWN_PLAY_TITLE, ONBOARDING_PLAY_MESSAGE_PREFIX } from "../onboarding/plays.js";
2
2
  /**
3
3
  * A free workspace's Oxygent runs onboarding, then asks for a plan (current
4
4
  * chat, 2026-10-29: "for pick a play it should send the prompt and then after
@@ -8,7 +8,34 @@ import { ONBOARDING_PLAY_MESSAGE_PREFIX } from "../onboarding/plays.js";
8
8
  * once with this code and runs nothing; the chat shows an Upgrade under it.
9
9
  */
10
10
  export const COPILOT_PLAN_HOLD_CODE = "upgrade_required";
11
- export const COPILOT_PLAN_HOLD_MESSAGE = "Your free workspace has finished onboarding. Choose a plan to run this message.";
11
+ /**
12
+ * What the Oxygent says under a held message, in place of an answer (current
13
+ * chat, 2026-10-30: the first held signup read the bare Upgrade card as an
14
+ * error and sent eight more messages). A play says what it would build and
15
+ * from what; any other message says it runs once there is a plan. Plain text,
16
+ * so the CLI and MCP show the same words as the chat.
17
+ */
18
+ export function copilotPlanHoldMessage(input) {
19
+ const play = parsePlayMessage(input.message);
20
+ if (!play) {
21
+ return "Your workspace is set up, so from here I work on a plan. Pick one and I'll start on this right away.";
22
+ }
23
+ const name = play.own ? "Your play" : `Your play "${play.title}"`;
24
+ const leads = input.leads && input.leads.sourced > 0
25
+ ? ` It starts from the ${input.leads.sourced.toLocaleString("en-US")} decision makers already in your Lead list`
26
+ + (input.leads.emails > 0 ? ` (${input.leads.emails.toLocaleString("en-US")} with a work email).` : ".")
27
+ : "";
28
+ return `${name} is ready to run.${leads} On a plan I source the rest, write the sequence and enroll your buyers, so it is ready to send. Pick a plan and I'll run it right away.`;
29
+ }
30
+ /** The play a `Run the play "…"` message names, and whether the person wrote it. */
31
+ function parsePlayMessage(message) {
32
+ if (!message.startsWith(ONBOARDING_PLAY_MESSAGE_PREFIX))
33
+ return null;
34
+ const rest = message.slice(ONBOARDING_PLAY_MESSAGE_PREFIX.length);
35
+ const end = rest.indexOf('"');
36
+ const title = (end >= 0 ? rest.slice(0, end) : rest).trim();
37
+ return { title, own: title === ONBOARDING_OWN_PLAY_TITLE };
38
+ }
12
39
  /**
13
40
  * Whether a free, self-billed workspace's message waits for a plan: the play
14
41
  * that ends onboarding, and every message once onboarding has finished.
@@ -1 +1 @@
1
- export declare const OXYGEN_BUILD_VERSION = "1.1021.5";
1
+ export declare const OXYGEN_BUILD_VERSION = "1.1021.7";
@@ -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.1021.5";
2
+ export const OXYGEN_BUILD_VERSION = "1.1021.7";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxygen-agent/cli",
3
- "version": "1.1021.5",
3
+ "version": "1.1021.7",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",