@oxygen-agent/cli 1.837.10 → 1.838.1
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
package/dist/index.js
CHANGED
|
@@ -8465,6 +8465,23 @@ fixed scan; watermark_cursor starts a later bounded replay. Consumers must retai
|
|
|
8465
8465
|
...(readOption(options.description) ? { description: readOption(options.description) } : {}),
|
|
8466
8466
|
},
|
|
8467
8467
|
}));
|
|
8468
|
+
}))
|
|
8469
|
+
.addCommand(new Command("reconcile-paid-period")
|
|
8470
|
+
.description("Find active subscriptions whose current billing period was paid in Stripe but never had its plan credits minted, and restore them (staff only). Detect-only unless --apply: every repair is proven by a Stripe paid invoice covering that exact period, so it can only return credits the customer already bought. Re-running is safe — an already-granted period is never granted twice.")
|
|
8471
|
+
.option("--organization-id <id>", "Restrict the sweep to one organization. Defaults to every active subscription.")
|
|
8472
|
+
.option("--org-id <id>", "Alias for --organization-id.")
|
|
8473
|
+
.option("--apply", "Mint the missing grants. Without it, report what would be repaired and change nothing.")
|
|
8474
|
+
.option("--json", "Print a JSON envelope.")
|
|
8475
|
+
.action(async (options) => {
|
|
8476
|
+
await handleAsyncAction("billing reconcile-paid-period", options, () => requestOxygen("/api/cli/billing/reconcile-paid-period", {
|
|
8477
|
+
method: "POST",
|
|
8478
|
+
body: {
|
|
8479
|
+
apply: Boolean(options.apply),
|
|
8480
|
+
...(readOption(options.organizationId) || readOption(options.orgId)
|
|
8481
|
+
? { organization_id: readOption(options.organizationId) ?? readOption(options.orgId) }
|
|
8482
|
+
: {}),
|
|
8483
|
+
},
|
|
8484
|
+
}));
|
|
8468
8485
|
}))
|
|
8469
8486
|
.addCommand(new Command("set-plan")
|
|
8470
8487
|
.description("Create or update an off-Stripe custom plan for an organization (staff only).")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const OXYGEN_VERSION = "1.
|
|
1
|
+
export declare const OXYGEN_VERSION = "1.838.1";
|
|
2
2
|
export declare const OXYGEN_MINIMUM_CLI_VERSION = "1.181.0";
|
|
3
3
|
export declare const MANAGED_INBOX_MINIMUM_CLI_VERSION = "1.326.2";
|
|
4
4
|
export declare const SUPPORT_AGENT_REPLY_MINIMUM_CLI_VERSION = "1.747.0";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const OXYGEN_VERSION = "1.
|
|
1
|
+
export const OXYGEN_VERSION = "1.838.1";
|
|
2
2
|
// The GLOBAL CLI compatibility floor: the oldest CLI allowed to call any
|
|
3
3
|
// operational route. Raising it hard-rejects every older CLI from the entire
|
|
4
4
|
// product, so it obeys one law, enforced by scripts/ci/cli-min-version-gate.mjs:
|