@recur-tw/cli 0.2.1 → 0.2.2
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/dist/cli.mjs +4 -4
- package/package.json +2 -1
package/dist/cli.mjs
CHANGED
|
@@ -921,7 +921,7 @@ var RecurClient = class {
|
|
|
921
921
|
}
|
|
922
922
|
const headers = {
|
|
923
923
|
Authorization: `Bearer ${this.secretKey}`,
|
|
924
|
-
"User-Agent": `@recur-tw/cli/0.2.
|
|
924
|
+
"User-Agent": `@recur-tw/cli/0.2.2`
|
|
925
925
|
};
|
|
926
926
|
const hasBody = opts?.body !== void 0;
|
|
927
927
|
if (hasBody) headers["Content-Type"] = "application/json";
|
|
@@ -2741,7 +2741,7 @@ Requires a Secret Key (sk_test_* or sk_live_*) via --key, RECUR_SECRET_KEY, or r
|
|
|
2741
2741
|
});
|
|
2742
2742
|
const server = new McpServer({
|
|
2743
2743
|
name: "recur",
|
|
2744
|
-
version: "0.2.
|
|
2744
|
+
version: "0.2.2"
|
|
2745
2745
|
}, { capabilities: { tools: {} } });
|
|
2746
2746
|
registerTools(server, client);
|
|
2747
2747
|
const transport = new StdioServerTransport();
|
|
@@ -2797,7 +2797,7 @@ function walkCommandTree(program) {
|
|
|
2797
2797
|
});
|
|
2798
2798
|
return {
|
|
2799
2799
|
name: program.name(),
|
|
2800
|
-
version: "0.2.
|
|
2800
|
+
version: "0.2.2",
|
|
2801
2801
|
global_options: globalOptions,
|
|
2802
2802
|
commands
|
|
2803
2803
|
};
|
|
@@ -2894,7 +2894,7 @@ function configureAgentHelp(program) {
|
|
|
2894
2894
|
//#endregion
|
|
2895
2895
|
//#region src/cli.ts
|
|
2896
2896
|
const program = new Command();
|
|
2897
|
-
program.name("recur").description("Recur CLI — Taiwan subscription payment platform.\nManage products, customers, subscriptions, webhooks, and more.\nAll commands require a Secret Key (sk_test_* or sk_live_*).").version("0.2.
|
|
2897
|
+
program.name("recur").description("Recur CLI — Taiwan subscription payment platform.\nManage products, customers, subscriptions, webhooks, and more.\nAll commands require a Secret Key (sk_test_* or sk_live_*).").version("0.2.2").option("--key <secret-key>", "API secret key (sk_test_* or sk_live_*)").option("--profile <name>", "Use a named profile from ~/.recur/credentials.json").option("--base-url <url>", "API base URL (default: https://api.recur.tw)").option("--output <format>", "Output format: json, table, csv, ndjson (default: json when piped, table otherwise)").hook("preAction", (thisCommand) => {
|
|
2898
2898
|
const opts = thisCommand.opts();
|
|
2899
2899
|
if (!opts.output) opts.output = process.stdout.isTTY ? "table" : "json";
|
|
2900
2900
|
if (![
|
package/package.json
CHANGED