@proxy-checkout/cli 0.1.1-prx-146.161.1 → 0.1.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 +0 -13
- package/dist/cjs/cli.d.cts +1 -1
- package/dist/cjs/cli.d.ts +1 -1
- package/dist/cjs/cli.js +2 -12
- package/dist/cjs/command-schema.js +1 -15
- package/dist/cjs/generated/stripe-integration-capabilities-version.d.cts +0 -564
- package/dist/cjs/generated/stripe-integration-capabilities-version.d.ts +0 -564
- package/dist/cjs/generated/stripe-integration-capabilities-version.js +1 -1148
- package/dist/cjs/index.d.cts +0 -1
- package/dist/cjs/index.d.ts +0 -1
- package/dist/cjs/index.js +1 -5
- package/dist/esm/cli.d.ts +1 -1
- package/dist/esm/cli.js +2 -12
- package/dist/esm/command-schema.js +1 -15
- package/dist/esm/generated/stripe-integration-capabilities-version.d.ts +0 -564
- package/dist/esm/generated/stripe-integration-capabilities-version.js +0 -1147
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +0 -1
- package/package.json +1 -1
- package/dist/cjs/stripe-doctor.d.cts +0 -58
- package/dist/cjs/stripe-doctor.d.ts +0 -58
- package/dist/cjs/stripe-doctor.js +0 -164
- package/dist/esm/stripe-doctor.d.ts +0 -58
- package/dist/esm/stripe-doctor.js +0 -159
package/dist/cjs/index.d.cts
CHANGED
|
@@ -2,5 +2,4 @@ export { cliVersion, type RunCliOptions, runCli } from "./cli.js";
|
|
|
2
2
|
export { type CommandOptionSchema, type CommandSchema, commandSchemaDocument, commandSchemas, findCommandSchema, llmsFullDocument, } from "./command-schema.js";
|
|
3
3
|
export { CliConfigStore, type CliProfile, type ResolvedCredential } from "./config.js";
|
|
4
4
|
export { CliError, type CliExitCode, cliExitCodes } from "./errors.js";
|
|
5
|
-
export { formatStripeDoctorReport, type StripeDoctorReport, stripeDoctorPathIds, stripeDoctorReport, } from "./stripe-doctor.js";
|
|
6
5
|
export declare const packageName = "@proxy-checkout/cli";
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -2,5 +2,4 @@ export { cliVersion, type RunCliOptions, runCli } from "./cli.js";
|
|
|
2
2
|
export { type CommandOptionSchema, type CommandSchema, commandSchemaDocument, commandSchemas, findCommandSchema, llmsFullDocument, } from "./command-schema.js";
|
|
3
3
|
export { CliConfigStore, type CliProfile, type ResolvedCredential } from "./config.js";
|
|
4
4
|
export { CliError, type CliExitCode, cliExitCodes } from "./errors.js";
|
|
5
|
-
export { formatStripeDoctorReport, type StripeDoctorReport, stripeDoctorPathIds, stripeDoctorReport, } from "./stripe-doctor.js";
|
|
6
5
|
export declare const packageName = "@proxy-checkout/cli";
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.packageName = exports.
|
|
3
|
+
exports.packageName = exports.cliExitCodes = exports.CliError = exports.CliConfigStore = exports.llmsFullDocument = exports.findCommandSchema = exports.commandSchemas = exports.commandSchemaDocument = exports.runCli = exports.cliVersion = void 0;
|
|
4
4
|
var cli_js_1 = require("./cli.js");
|
|
5
5
|
Object.defineProperty(exports, "cliVersion", { enumerable: true, get: function () { return cli_js_1.cliVersion; } });
|
|
6
6
|
Object.defineProperty(exports, "runCli", { enumerable: true, get: function () { return cli_js_1.runCli; } });
|
|
@@ -14,8 +14,4 @@ Object.defineProperty(exports, "CliConfigStore", { enumerable: true, get: functi
|
|
|
14
14
|
var errors_js_1 = require("./errors.js");
|
|
15
15
|
Object.defineProperty(exports, "CliError", { enumerable: true, get: function () { return errors_js_1.CliError; } });
|
|
16
16
|
Object.defineProperty(exports, "cliExitCodes", { enumerable: true, get: function () { return errors_js_1.cliExitCodes; } });
|
|
17
|
-
var stripe_doctor_js_1 = require("./stripe-doctor.js");
|
|
18
|
-
Object.defineProperty(exports, "formatStripeDoctorReport", { enumerable: true, get: function () { return stripe_doctor_js_1.formatStripeDoctorReport; } });
|
|
19
|
-
Object.defineProperty(exports, "stripeDoctorPathIds", { enumerable: true, get: function () { return stripe_doctor_js_1.stripeDoctorPathIds; } });
|
|
20
|
-
Object.defineProperty(exports, "stripeDoctorReport", { enumerable: true, get: function () { return stripe_doctor_js_1.stripeDoctorReport; } });
|
|
21
17
|
exports.packageName = "@proxy-checkout/cli";
|
package/dist/esm/cli.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CliConfigStore } from "./config.js";
|
|
2
2
|
import { type CliIo } from "./output.js";
|
|
3
|
-
export declare const cliVersion = "0.1.1
|
|
3
|
+
export declare const cliVersion = "0.1.1";
|
|
4
4
|
export interface RunCliOptions {
|
|
5
5
|
configStore?: CliConfigStore;
|
|
6
6
|
environment?: NodeJS.ProcessEnv;
|
package/dist/esm/cli.js
CHANGED
|
@@ -4,9 +4,8 @@ import { commandSchemaDocument, commandSchemas, llmsFullDocument } from "./comma
|
|
|
4
4
|
import { CliConfigStore } from "./config.js";
|
|
5
5
|
import { asCliError, CliError, cliExitCodes, usageError } from "./errors.js";
|
|
6
6
|
import { CliOutput } from "./output.js";
|
|
7
|
-
import { formatStripeDoctorReport, stripeDoctorPathIds, stripeDoctorReport, } from "./stripe-doctor.js";
|
|
8
7
|
import { forwardSelectedDelivery, ProxyWebhooksClient, runListener, } from "./webhooks.js";
|
|
9
|
-
export const cliVersion = "0.1.1
|
|
8
|
+
export const cliVersion = "0.1.1";
|
|
10
9
|
export async function runCli(argv, options = {}) {
|
|
11
10
|
const io = options.io ?? {
|
|
12
11
|
isTTY: Boolean(process.stdin.isTTY && process.stdout.isTTY),
|
|
@@ -25,7 +24,7 @@ export async function runCli(argv, options = {}) {
|
|
|
25
24
|
}
|
|
26
25
|
if (parsedGlobals.options.llmsFull) {
|
|
27
26
|
const document = llmsFullDocument();
|
|
28
|
-
output.result({ document, schema_version: "2026-07-
|
|
27
|
+
output.result({ document, schema_version: "2026-07-14" }, document);
|
|
29
28
|
return cliExitCodes.success;
|
|
30
29
|
}
|
|
31
30
|
if (parsedGlobals.args.join(" ") === "commands schema") {
|
|
@@ -101,15 +100,6 @@ async function executeCommand(input) {
|
|
|
101
100
|
input.output.result(publicProfile(input.profileName, profile), `Authenticated profile ${input.profileName} for test merchant ${profile.merchantId}.`);
|
|
102
101
|
return;
|
|
103
102
|
}
|
|
104
|
-
if (input.command.path === "stripe doctor") {
|
|
105
|
-
const pathId = readRequiredString(input.options, "--path");
|
|
106
|
-
const report = stripeDoctorReport(pathId);
|
|
107
|
-
if (!report) {
|
|
108
|
-
throw usageError(`Unknown Stripe path ID ${pathId}; expected one of ${stripeDoctorPathIds().join(", ")}`);
|
|
109
|
-
}
|
|
110
|
-
input.output.result({ stripe_path: report }, formatStripeDoctorReport(report));
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
103
|
const resolved = await input.configStore.resolveCredential({
|
|
114
104
|
apiBaseUrl: input.requestedApiBase,
|
|
115
105
|
profileName: input.profileName,
|
|
@@ -57,20 +57,6 @@ export const commandSchemas = [
|
|
|
57
57
|
output: "Revocation status.",
|
|
58
58
|
path: "auth logout",
|
|
59
59
|
},
|
|
60
|
-
{
|
|
61
|
-
capabilities: [],
|
|
62
|
-
description: "Print generated Stripe path facts, exact read/event requirements, and static readiness gates.",
|
|
63
|
-
interactive: false,
|
|
64
|
-
modes: ["test", "live"],
|
|
65
|
-
options: withCommonOptions({
|
|
66
|
-
description: "Canonical Stripe path ID such as OT-PI, OT-CO-H, OT-CO-E, or OT-CO-C.",
|
|
67
|
-
name: "--path",
|
|
68
|
-
required: true,
|
|
69
|
-
type: "string",
|
|
70
|
-
}),
|
|
71
|
-
output: "Generated path facts and readiness status; never credentials or provider objects.",
|
|
72
|
-
path: "stripe doctor",
|
|
73
|
-
},
|
|
74
60
|
{
|
|
75
61
|
description: "Relay signed Proxy test webhooks to a loopback development server.",
|
|
76
62
|
interactive: true,
|
|
@@ -222,7 +208,7 @@ export function findCommandSchema(path) {
|
|
|
222
208
|
}
|
|
223
209
|
export function commandSchemaDocument(path) {
|
|
224
210
|
if (!path) {
|
|
225
|
-
return { commands: commandSchemas, schema_version: "2026-07-
|
|
211
|
+
return { commands: commandSchemas, schema_version: "2026-07-14" };
|
|
226
212
|
}
|
|
227
213
|
return findCommandSchema(path);
|
|
228
214
|
}
|