@oxygen-agent/cli 1.125.19 → 1.128.3

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 and support, visit https://oxygen-agent.com.
36
36
 
37
- Version: 1.125.19
37
+ Version: 1.128.3
package/dist/index.js CHANGED
@@ -440,6 +440,20 @@ export function createProgram() {
440
440
  },
441
441
  });
442
442
  });
443
+ }))
444
+ .addCommand(new Command("repair-preview")
445
+ .description("Preview tenant database repair issues without mutating production state (staff only).")
446
+ .option("--limit <n>", "Maximum tenant and provisioning issues to inspect. Defaults to 100; hard cap is 500.")
447
+ .option("--json", "Print a JSON envelope.")
448
+ .action(async (options) => {
449
+ await handleAsyncAction("db repair-preview", options, () => {
450
+ const limit = readPositiveInt(options.limit);
451
+ const query = new URLSearchParams();
452
+ if (limit !== undefined)
453
+ query.set("limit", String(limit));
454
+ const suffix = query.toString() ? `?${query.toString()}` : "";
455
+ return requestOxygen(`/api/cli/db/repair-preview${suffix}`);
456
+ });
443
457
  }))
444
458
  .addCommand(new Command("reconcile")
445
459
  .description("Inspect tenant database registry drift. Staff only; defaults to dry-run.")
@@ -2243,6 +2257,46 @@ export function createProgram() {
2243
2257
  return requestOxygen(`/api/cli/admin/costs${suffix}`);
2244
2258
  });
2245
2259
  }));
2260
+ program
2261
+ .command("signup-leads")
2262
+ .description("Signup lead delivery queue commands.")
2263
+ .addCommand(new Command("deliveries")
2264
+ .description("Inspect and retry durable signup lead webhook deliveries.")
2265
+ .addCommand(new Command("list")
2266
+ .description("List signup lead webhook deliveries for the current organization.")
2267
+ .option("--status <status>", "Filter by pending, running, succeeded, retrying, failed, or dead.")
2268
+ .option("--limit <n>", "Maximum deliveries to return. Defaults to 50.")
2269
+ .option("--json", "Print a JSON envelope.")
2270
+ .action(async (options) => {
2271
+ await handleAsyncAction("signup-leads deliveries list", options, () => {
2272
+ const params = new URLSearchParams();
2273
+ const status = readOption(options.status);
2274
+ const limit = readPositiveInt(options.limit);
2275
+ if (status)
2276
+ params.set("status", status);
2277
+ if (limit)
2278
+ params.set("limit", String(limit));
2279
+ const suffix = params.toString() ? `?${params.toString()}` : "";
2280
+ return requestOxygen(`/api/cli/signup-leads/deliveries${suffix}`);
2281
+ });
2282
+ }))
2283
+ .addCommand(new Command("get")
2284
+ .description("Get one signup lead webhook delivery by delivery id or event id.")
2285
+ .argument("<id>", "Delivery id or event id.")
2286
+ .option("--json", "Print a JSON envelope.")
2287
+ .action(async (id, options) => {
2288
+ await handleAsyncAction("signup-leads deliveries get", options, () => requestOxygen(`/api/cli/signup-leads/deliveries?id=${encodeURIComponent(id)}`));
2289
+ }))
2290
+ .addCommand(new Command("retry")
2291
+ .description("Retry one failed signup lead webhook delivery.")
2292
+ .argument("<id>", "Delivery id or event id.")
2293
+ .option("--json", "Print a JSON envelope.")
2294
+ .action(async (id, options) => {
2295
+ await handleAsyncAction("signup-leads deliveries retry", options, () => requestOxygen("/api/cli/signup-leads/deliveries", {
2296
+ method: "POST",
2297
+ body: { id },
2298
+ }));
2299
+ })));
2246
2300
  program
2247
2301
  .command("observability")
2248
2302
  .description("Redacted operation event commands for the current organization.")
@@ -5,6 +5,7 @@ export * from "./column-types.js";
5
5
  export * from "./credit-guidance.js";
6
6
  export * from "./log.js";
7
7
  export * from "./provider-request-outcomes.js";
8
+ export * from "./signup-lead-deliveries.js";
8
9
  export * from "./telemetry.js";
9
10
  export type JsonValue = string | number | boolean | null | JsonValue[] | {
10
11
  [key: string]: JsonValue;
@@ -6,6 +6,7 @@ export * from "./column-types.js";
6
6
  export * from "./credit-guidance.js";
7
7
  export * from "./log.js";
8
8
  export * from "./provider-request-outcomes.js";
9
+ export * from "./signup-lead-deliveries.js";
9
10
  export * from "./telemetry.js";
10
11
  export class OxygenError extends Error {
11
12
  code;
@@ -0,0 +1 @@
1
+ export declare const RESEND_ONBOARDING_DELIVERY_EVENT_TYPE = "resend.onboarding";
@@ -0,0 +1 @@
1
+ export const RESEND_ONBOARDING_DELIVERY_EVENT_TYPE = "resend.onboarding";
@@ -1,2 +1,2 @@
1
- export declare const OXYGEN_VERSION = "1.125.19";
1
+ export declare const OXYGEN_VERSION = "1.128.3";
2
2
  export declare const OXYGEN_MINIMUM_CLI_VERSION = "1.0.0";
@@ -1,3 +1,3 @@
1
- export const OXYGEN_VERSION = "1.125.19";
1
+ export const OXYGEN_VERSION = "1.128.3";
2
2
  // Bump this only when deployed CLI/API contracts require a newer CLI.
3
3
  export const OXYGEN_MINIMUM_CLI_VERSION = "1.0.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxygen-agent/cli",
3
- "version": "1.125.19",
3
+ "version": "1.128.3",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",