@recur-tw/cli 0.1.2 → 0.1.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.
Files changed (2) hide show
  1. package/dist/cli.mjs +5 -4
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -920,7 +920,7 @@ var RecurClient = class {
920
920
  }
921
921
  const headers = {
922
922
  Authorization: `Bearer ${this.secretKey}`,
923
- "User-Agent": `@recur-tw/cli/0.1.2`
923
+ "User-Agent": `@recur-tw/cli/0.1.3`
924
924
  };
925
925
  const hasBody = opts?.body !== void 0;
926
926
  if (hasBody) headers["Content-Type"] = "application/json";
@@ -1265,7 +1265,8 @@ function registerLoginCommand(program) {
1265
1265
  let maskedKey;
1266
1266
  try {
1267
1267
  const key = resolveSecretKey(globalOpts);
1268
- maskedKey = key.slice(0, key.lastIndexOf("_") + 1) + "..." + key.slice(-4);
1268
+ const prefixEnd = key.lastIndexOf("_") + 1;
1269
+ maskedKey = key.slice(0, prefixEnd) + key.slice(prefixEnd, prefixEnd + 4) + "...";
1269
1270
  } catch {}
1270
1271
  render({
1271
1272
  profile: active.name,
@@ -2556,7 +2557,7 @@ Requires a Secret Key (sk_test_* or sk_live_*) via --key, RECUR_SECRET_KEY, or r
2556
2557
  });
2557
2558
  const server = new McpServer({
2558
2559
  name: "recur",
2559
- version: "0.1.2"
2560
+ version: "0.1.3"
2560
2561
  }, { capabilities: { tools: {} } });
2561
2562
  registerTools(server, client);
2562
2563
  const transport = new StdioServerTransport();
@@ -2572,7 +2573,7 @@ Requires a Secret Key (sk_test_* or sk_live_*) via --key, RECUR_SECRET_KEY, or r
2572
2573
  //#endregion
2573
2574
  //#region src/cli.ts
2574
2575
  const program = new Command();
2575
- 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.1.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) => {
2576
+ 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.1.3").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) => {
2576
2577
  const opts = thisCommand.opts();
2577
2578
  if (!opts.output) opts.output = process.stdout.isTTY ? "table" : "json";
2578
2579
  if (![
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recur-tw/cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "CLI for Recur - Taiwan's subscription payment platform",
5
5
  "keywords": [
6
6
  "recur",