@corsair-dev/cli 0.1.10 → 0.1.11

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/index.js +7 -7
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -2390,11 +2390,12 @@ function parseSetupArgs(args) {
2390
2390
  currentPlugin = null;
2391
2391
  continue;
2392
2392
  }
2393
+ if (arg.startsWith("--plugin=")) {
2394
+ currentPlugin = arg.slice("--plugin=".length);
2395
+ if (!credentials[currentPlugin]) credentials[currentPlugin] = {};
2396
+ continue;
2397
+ }
2393
2398
  if (arg.startsWith("--")) {
2394
- const name = arg.slice(2);
2395
- if (RESERVED_FLAGS.has(name)) continue;
2396
- currentPlugin = name;
2397
- credentials[currentPlugin] = {};
2398
2399
  continue;
2399
2400
  }
2400
2401
  if (currentPlugin && arg.includes("=")) {
@@ -2449,7 +2450,7 @@ function printHelp() {
2449
2450
  "Corsair CLI",
2450
2451
  "",
2451
2452
  "pnpm corsair setup Init (add -backfill to seed data)",
2452
- "pnpm corsair setup --<plugin> <field>=VALUE Set plugin credentials",
2453
+ "pnpm corsair setup --plugin=<id> <field>=VALUE Set plugin credentials",
2453
2454
  "pnpm corsair auth --plugin=<id> Start OAuth flow",
2454
2455
  "pnpm corsair auth --plugin=<id> --code=<code> Exchange OAuth code for tokens",
2455
2456
  "pnpm corsair auth --plugin=<id> --agent Run this if you are an agent (specific instructions to handle pending process)",
@@ -2667,7 +2668,7 @@ async function main() {
2667
2668
  }
2668
2669
  printHelp();
2669
2670
  }
2670
- var possiblePaths, jitiOptions, isCorsairInstance, RESERVED_FLAGS, SHOW_RUN, isMainModule;
2671
+ var possiblePaths, jitiOptions, isCorsairInstance, SHOW_RUN, isMainModule;
2671
2672
  var init_index = __esm({
2672
2673
  "index.ts"() {
2673
2674
  init_get_tsconfig_info();
@@ -2731,7 +2732,6 @@ var init_index = __esm({
2731
2732
  }
2732
2733
  return Object.keys(object).length > 0;
2733
2734
  };
2734
- RESERVED_FLAGS = /* @__PURE__ */ new Set(["backfill", "help", "h"]);
2735
2735
  SHOW_RUN = false;
2736
2736
  isMainModule = import.meta.url === `file://${process.argv[1]?.replace(/\\/g, "/")}` || process.argv[1]?.includes("index.ts") || process.argv[1]?.includes("index.js") || import.meta.url.endsWith("/index.ts") || import.meta.url.endsWith("/index.js");
2737
2737
  if (isMainModule) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corsair-dev/cli",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -23,7 +23,7 @@
23
23
  "@clack/prompts": "^1.0.0",
24
24
  "c12": "^3.3.3",
25
25
  "zod": "^3.25.76",
26
- "corsair": "0.1.56"
26
+ "corsair": "0.1.57"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/jest": "^29.5.14",
@@ -31,7 +31,7 @@
31
31
  "dotenv": "^17.2.3",
32
32
  "jest": "^29.7.0",
33
33
  "jiti": "^2.6.1",
34
- "ts-jest": "^29.1.1",
34
+ "ts-jest": "^29.4.9",
35
35
  "ts-node": "^10.9.2",
36
36
  "tsup": "^8.0.1",
37
37
  "tsx": "^4.20.6",