@react-grab/cli 0.1.44-dev.dfbec6c → 0.1.44

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
@@ -24,7 +24,7 @@ npx grab@latest init
24
24
  | ---------------- | ----- | ---------------------------------------- |
25
25
  | `--yes` | `-y` | Skip confirmation prompts |
26
26
  | `--force` | `-f` | Force overwrite existing config |
27
- | `--key <key>` | `-k` | Shortcut (e.g. Meta+K, Space) |
27
+ | `--key <key>` | `-k` | Activation key (e.g. Meta+K, Space) |
28
28
  | `--skip-install` | | Skip package installation |
29
29
  | `--pkg <pkg>` | | Custom package URL |
30
30
  | `--cwd <cwd>` | `-c` | Working directory (default: current dir) |
@@ -40,7 +40,7 @@ npx grab@latest configure
40
40
  | Option | Alias | Description |
41
41
  | ---------------------- | ----- | --------------------------------------------- |
42
42
  | `--yes` | `-y` | Skip confirmation prompts |
43
- | `--key <key>` | `-k` | Shortcut (e.g. Meta+K, Ctrl+Shift+G) |
43
+ | `--key <key>` | `-k` | Activation key (e.g. Meta+K, Ctrl+Shift+G) |
44
44
  | `--mode <mode>` | `-m` | Activation mode (`toggle` or `hold`) |
45
45
  | `--hold-duration <ms>` | | Key hold duration in ms (hold mode, max 2000) |
46
46
  | `--allow-input <bool>` | | Allow activation inside input fields |
@@ -57,7 +57,7 @@ npx grab@latest init
57
57
  # Non-interactive setup
58
58
  npx grab@latest init -y
59
59
 
60
- # Set a custom shortcut
60
+ # Set a custom activation key
61
61
  npx grab@latest init -k "Meta+K"
62
62
 
63
63
  # Change activation mode to hold
package/dist/cli.cjs CHANGED
@@ -519,7 +519,7 @@ const removeSkill = async ({ cwd = process.cwd(), global = false } = {}) => {
519
519
  };
520
520
  //#endregion
521
521
  //#region src/commands/add.ts
522
- const VERSION$5 = "0.1.44-dev.dfbec6c";
522
+ const VERSION$5 = "0.1.44";
523
523
  const add = new commander.Command().name("add").alias("install").description("install the React Grab skill for your agent").option("-y, --yes", "skip confirmation prompts", false).option("-c, --cwd <cwd>", "working directory (defaults to current directory)", process.cwd()).option("-g, --global", "install the skill globally instead of in the project", false).action(async (opts) => {
524
524
  console.log(`${picocolors.default.magenta("✿")} ${picocolors.default.bold("React Grab")} ${picocolors.default.gray(VERSION$5)}`);
525
525
  console.log();
@@ -1138,7 +1138,7 @@ const formatActivationKeyDisplay = (activationKey) => {
1138
1138
  };
1139
1139
  //#endregion
1140
1140
  //#region src/commands/configure.ts
1141
- const VERSION$4 = "0.1.44-dev.dfbec6c";
1141
+ const VERSION$4 = "0.1.44";
1142
1142
  const isMac = process.platform === "darwin";
1143
1143
  const META_LABEL = isMac ? "Cmd" : "Win";
1144
1144
  const ALT_LABEL = isMac ? "Option" : "Alt";
@@ -1408,8 +1408,8 @@ const generateSuggestions = (input) => {
1408
1408
  const CONFIG_OPTIONS = [
1409
1409
  {
1410
1410
  id: "activationKey",
1411
- title: "Shortcut",
1412
- description: "The shortcut used to activate React Grab (e.g., g, k, space)"
1411
+ title: "Activation Key",
1412
+ description: "The key used to activate React Grab (e.g., g, k, space)"
1413
1413
  },
1414
1414
  {
1415
1415
  id: "activationMode",
@@ -1444,7 +1444,7 @@ const comboToString = (combo) => {
1444
1444
  }
1445
1445
  return parts.join("+");
1446
1446
  };
1447
- const configure = new commander.Command().name("configure").alias("config").description("configure React Grab options").option("-y, --yes", "skip confirmation prompts", false).option("-k, --key <key>", "shortcut (e.g., Meta+K, Ctrl+Shift+G, Space)").option("-m, --mode <mode>", "activation mode (toggle, hold)").option("--hold-duration <ms>", "key hold duration in milliseconds (for hold mode)").option("--allow-input <boolean>", "allow activation inside input fields (true/false)").option("--context-lines <lines>", "max context lines to include").option("--cdn <domain>", "CDN domain (e.g., unpkg.com, custom.react-grab.com)").option("-c, --cwd <cwd>", "working directory (defaults to current directory)", process.cwd()).action(async (opts) => {
1447
+ const configure = new commander.Command().name("configure").alias("config").description("configure React Grab options").option("-y, --yes", "skip confirmation prompts", false).option("-k, --key <key>", "activation key (e.g., Meta+K, Ctrl+Shift+G, Space)").option("-m, --mode <mode>", "activation mode (toggle, hold)").option("--hold-duration <ms>", "key hold duration in milliseconds (for hold mode)").option("--allow-input <boolean>", "allow activation inside input fields (true/false)").option("--context-lines <lines>", "max context lines to include").option("--cdn <domain>", "CDN domain (e.g., unpkg.com, custom.react-grab.com)").option("-c, --cwd <cwd>", "working directory (defaults to current directory)", process.cwd()).action(async (opts) => {
1448
1448
  console.log(`${picocolors.default.magenta("✿")} ${picocolors.default.bold("React Grab")} ${picocolors.default.gray(VERSION$4)}`);
1449
1449
  console.log();
1450
1450
  try {
@@ -1513,7 +1513,7 @@ const configure = new commander.Command().name("configure").alias("config").desc
1513
1513
  if (hasFlags) {
1514
1514
  if (opts.key) {
1515
1515
  collectedOptions.activationKey = opts.key;
1516
- logger.log(` Shortcut: ${highlighter.info(formatActivationKeyDisplay(collectedOptions.activationKey))}`);
1516
+ logger.log(` Activation key: ${highlighter.info(formatActivationKeyDisplay(collectedOptions.activationKey))}`);
1517
1517
  }
1518
1518
  if (opts.mode) {
1519
1519
  if (opts.mode !== "toggle" && opts.mode !== "hold") {
@@ -1578,7 +1578,7 @@ const configure = new commander.Command().name("configure").alias("config").desc
1578
1578
  process.exit(1);
1579
1579
  }
1580
1580
  collectedOptions.activationKey = comboToString(selectedCombo);
1581
- logger.log(` Shortcut: ${highlighter.info(formatActivationKeyDisplay(collectedOptions.activationKey))}`);
1581
+ logger.log(` Activation key: ${highlighter.info(formatActivationKeyDisplay(collectedOptions.activationKey))}`);
1582
1582
  }
1583
1583
  if (selectedOption === "activationMode") {
1584
1584
  const { activationMode } = await prompts$1({
@@ -1763,7 +1763,7 @@ const isTelemetryEnabled = () => {
1763
1763
  };
1764
1764
  //#endregion
1765
1765
  //#region src/commands/init.ts
1766
- const VERSION$3 = "0.1.44-dev.dfbec6c";
1766
+ const VERSION$3 = "0.1.44";
1767
1767
  const REPORT_URL = "https://react-grab.com/api/report-cli";
1768
1768
  const DOCS_URL = "https://github.com/aidenybai/react-grab";
1769
1769
  const reportToCli = (type, config, error) => {
@@ -1831,7 +1831,7 @@ const failWithManualSetup = (failingSpinner, message, { listSupportedFrameworks
1831
1831
  logger.break();
1832
1832
  process.exit(1);
1833
1833
  };
1834
- const init = new commander.Command().name("init").alias("setup").description("initialize React Grab in your project").option("-y, --yes", "skip confirmation prompts", false).option("-f, --force", "force overwrite existing config", false).option("-k, --key <key>", "shortcut (e.g., Meta+K, Ctrl+Shift+G, Space)").option("--skip-install", "skip package installation", false).option("--pkg <pkg>", "custom package URL for CLI (e.g., grab)").option("-c, --cwd <cwd>", "working directory (defaults to current directory)", process.cwd()).option("-g, --global", "install the skill globally instead of in the project", false).action(async (opts) => {
1834
+ const init = new commander.Command().name("init").alias("setup").description("initialize React Grab in your project").option("-y, --yes", "skip confirmation prompts", false).option("-f, --force", "force overwrite existing config", false).option("-k, --key <key>", "activation key (e.g., Meta+K, Ctrl+Shift+G, Space)").option("--skip-install", "skip package installation", false).option("--pkg <pkg>", "custom package URL for CLI (e.g., grab)").option("-c, --cwd <cwd>", "working directory (defaults to current directory)", process.cwd()).option("-g, --global", "install the skill globally instead of in the project", false).action(async (opts) => {
1835
1835
  console.log(`${picocolors.default.magenta("✿")} ${picocolors.default.bold("React Grab")} ${picocolors.default.gray(VERSION$3)}`);
1836
1836
  console.log();
1837
1837
  try {
@@ -1874,12 +1874,12 @@ const init = new commander.Command().name("init").alias("setup").description("in
1874
1874
  const collectedOptions = {};
1875
1875
  if (opts.key) {
1876
1876
  collectedOptions.activationKey = opts.key;
1877
- logger.log(` Shortcut: ${highlighter.info(formatActivationKeyDisplay(collectedOptions.activationKey))}`);
1877
+ logger.log(` Activation key: ${highlighter.info(formatActivationKeyDisplay(collectedOptions.activationKey))}`);
1878
1878
  } else {
1879
1879
  const { wantActivationKey } = await prompts$1({
1880
1880
  type: "confirm",
1881
1881
  name: "wantActivationKey",
1882
- message: `Configure ${highlighter.info("shortcut")}?`,
1882
+ message: `Configure ${highlighter.info("activation key")}?`,
1883
1883
  initial: false
1884
1884
  });
1885
1885
  if (wantActivationKey === void 0) {
@@ -1890,7 +1890,7 @@ const init = new commander.Command().name("init").alias("setup").description("in
1890
1890
  const { key } = await prompts$1({
1891
1891
  type: "text",
1892
1892
  name: "key",
1893
- message: "Enter the shortcut (e.g., g, k, space):",
1893
+ message: "Enter the activation key (e.g., g, k, space):",
1894
1894
  initial: ""
1895
1895
  });
1896
1896
  if (key === void 0) {
@@ -1898,7 +1898,7 @@ const init = new commander.Command().name("init").alias("setup").description("in
1898
1898
  process.exit(1);
1899
1899
  }
1900
1900
  collectedOptions.activationKey = key ? key.toLowerCase() : void 0;
1901
- logger.log(` Shortcut: ${highlighter.info(formatActivationKeyDisplay(collectedOptions.activationKey))}`);
1901
+ logger.log(` Activation key: ${highlighter.info(formatActivationKeyDisplay(collectedOptions.activationKey))}`);
1902
1902
  }
1903
1903
  }
1904
1904
  const { activationMode } = await prompts$1({
@@ -2713,7 +2713,7 @@ const pull = new commander.Command().name("pull").description("start the watcher
2713
2713
  });
2714
2714
  //#endregion
2715
2715
  //#region src/commands/remove.ts
2716
- const VERSION$2 = "0.1.44-dev.dfbec6c";
2716
+ const VERSION$2 = "0.1.44";
2717
2717
  const remove = new commander.Command().name("remove").description("uninstall the React Grab skill from your agent").option("-c, --cwd <cwd>", "working directory (defaults to current directory)", process.cwd()).option("-g, --global", "remove the globally-installed skill instead of the project's", false).action(async (opts) => {
2718
2718
  console.log(`${picocolors.default.magenta("✿")} ${picocolors.default.bold("React Grab")} ${picocolors.default.gray(VERSION$2)}`);
2719
2719
  console.log();
@@ -2741,7 +2741,7 @@ const stop = new commander.Command().name("stop").description("stop the React Gr
2741
2741
  });
2742
2742
  //#endregion
2743
2743
  //#region src/commands/upgrade.ts
2744
- const VERSION$1 = "0.1.44-dev.dfbec6c";
2744
+ const VERSION$1 = "0.1.44";
2745
2745
  const NPM_REGISTRY_URL = "https://registry.npmjs.org/react-grab/latest";
2746
2746
  const fetchLatestVersion = async () => {
2747
2747
  try {
@@ -2853,7 +2853,7 @@ const watch = new commander.Command().name("watch").description("run the React G
2853
2853
  });
2854
2854
  //#endregion
2855
2855
  //#region src/cli.ts
2856
- const VERSION = "0.1.44-dev.dfbec6c";
2856
+ const VERSION = "0.1.44";
2857
2857
  const VERSION_API_URL = "https://www.react-grab.com/api/version";
2858
2858
  process.on("SIGINT", () => process.exit(0));
2859
2859
  process.on("SIGTERM", () => process.exit(0));
package/dist/cli.js CHANGED
@@ -491,7 +491,7 @@ const removeSkill = async ({ cwd = process.cwd(), global = false } = {}) => {
491
491
  };
492
492
  //#endregion
493
493
  //#region src/commands/add.ts
494
- const VERSION$5 = "0.1.44-dev.dfbec6c";
494
+ const VERSION$5 = "0.1.44";
495
495
  const add$1 = new Command().name("add").alias("install").description("install the React Grab skill for your agent").option("-y, --yes", "skip confirmation prompts", false).option("-c, --cwd <cwd>", "working directory (defaults to current directory)", process.cwd()).option("-g, --global", "install the skill globally instead of in the project", false).action(async (opts) => {
496
496
  console.log(`${pc.magenta("✿")} ${pc.bold("React Grab")} ${pc.gray(VERSION$5)}`);
497
497
  console.log();
@@ -1110,7 +1110,7 @@ const formatActivationKeyDisplay = (activationKey) => {
1110
1110
  };
1111
1111
  //#endregion
1112
1112
  //#region src/commands/configure.ts
1113
- const VERSION$4 = "0.1.44-dev.dfbec6c";
1113
+ const VERSION$4 = "0.1.44";
1114
1114
  const isMac = process.platform === "darwin";
1115
1115
  const META_LABEL = isMac ? "Cmd" : "Win";
1116
1116
  const ALT_LABEL = isMac ? "Option" : "Alt";
@@ -1380,8 +1380,8 @@ const generateSuggestions = (input) => {
1380
1380
  const CONFIG_OPTIONS = [
1381
1381
  {
1382
1382
  id: "activationKey",
1383
- title: "Shortcut",
1384
- description: "The shortcut used to activate React Grab (e.g., g, k, space)"
1383
+ title: "Activation Key",
1384
+ description: "The key used to activate React Grab (e.g., g, k, space)"
1385
1385
  },
1386
1386
  {
1387
1387
  id: "activationMode",
@@ -1416,7 +1416,7 @@ const comboToString = (combo) => {
1416
1416
  }
1417
1417
  return parts.join("+");
1418
1418
  };
1419
- const configure = new Command().name("configure").alias("config").description("configure React Grab options").option("-y, --yes", "skip confirmation prompts", false).option("-k, --key <key>", "shortcut (e.g., Meta+K, Ctrl+Shift+G, Space)").option("-m, --mode <mode>", "activation mode (toggle, hold)").option("--hold-duration <ms>", "key hold duration in milliseconds (for hold mode)").option("--allow-input <boolean>", "allow activation inside input fields (true/false)").option("--context-lines <lines>", "max context lines to include").option("--cdn <domain>", "CDN domain (e.g., unpkg.com, custom.react-grab.com)").option("-c, --cwd <cwd>", "working directory (defaults to current directory)", process.cwd()).action(async (opts) => {
1419
+ const configure = new Command().name("configure").alias("config").description("configure React Grab options").option("-y, --yes", "skip confirmation prompts", false).option("-k, --key <key>", "activation key (e.g., Meta+K, Ctrl+Shift+G, Space)").option("-m, --mode <mode>", "activation mode (toggle, hold)").option("--hold-duration <ms>", "key hold duration in milliseconds (for hold mode)").option("--allow-input <boolean>", "allow activation inside input fields (true/false)").option("--context-lines <lines>", "max context lines to include").option("--cdn <domain>", "CDN domain (e.g., unpkg.com, custom.react-grab.com)").option("-c, --cwd <cwd>", "working directory (defaults to current directory)", process.cwd()).action(async (opts) => {
1420
1420
  console.log(`${pc.magenta("✿")} ${pc.bold("React Grab")} ${pc.gray(VERSION$4)}`);
1421
1421
  console.log();
1422
1422
  try {
@@ -1485,7 +1485,7 @@ const configure = new Command().name("configure").alias("config").description("c
1485
1485
  if (hasFlags) {
1486
1486
  if (opts.key) {
1487
1487
  collectedOptions.activationKey = opts.key;
1488
- logger.log(` Shortcut: ${highlighter.info(formatActivationKeyDisplay(collectedOptions.activationKey))}`);
1488
+ logger.log(` Activation key: ${highlighter.info(formatActivationKeyDisplay(collectedOptions.activationKey))}`);
1489
1489
  }
1490
1490
  if (opts.mode) {
1491
1491
  if (opts.mode !== "toggle" && opts.mode !== "hold") {
@@ -1550,7 +1550,7 @@ const configure = new Command().name("configure").alias("config").description("c
1550
1550
  process.exit(1);
1551
1551
  }
1552
1552
  collectedOptions.activationKey = comboToString(selectedCombo);
1553
- logger.log(` Shortcut: ${highlighter.info(formatActivationKeyDisplay(collectedOptions.activationKey))}`);
1553
+ logger.log(` Activation key: ${highlighter.info(formatActivationKeyDisplay(collectedOptions.activationKey))}`);
1554
1554
  }
1555
1555
  if (selectedOption === "activationMode") {
1556
1556
  const { activationMode } = await prompts({
@@ -1735,7 +1735,7 @@ const isTelemetryEnabled = () => {
1735
1735
  };
1736
1736
  //#endregion
1737
1737
  //#region src/commands/init.ts
1738
- const VERSION$3 = "0.1.44-dev.dfbec6c";
1738
+ const VERSION$3 = "0.1.44";
1739
1739
  const REPORT_URL = "https://react-grab.com/api/report-cli";
1740
1740
  const DOCS_URL = "https://github.com/aidenybai/react-grab";
1741
1741
  const reportToCli = (type, config, error) => {
@@ -1803,7 +1803,7 @@ const failWithManualSetup = (failingSpinner, message, { listSupportedFrameworks
1803
1803
  logger.break();
1804
1804
  process.exit(1);
1805
1805
  };
1806
- const init = new Command().name("init").alias("setup").description("initialize React Grab in your project").option("-y, --yes", "skip confirmation prompts", false).option("-f, --force", "force overwrite existing config", false).option("-k, --key <key>", "shortcut (e.g., Meta+K, Ctrl+Shift+G, Space)").option("--skip-install", "skip package installation", false).option("--pkg <pkg>", "custom package URL for CLI (e.g., grab)").option("-c, --cwd <cwd>", "working directory (defaults to current directory)", process.cwd()).option("-g, --global", "install the skill globally instead of in the project", false).action(async (opts) => {
1806
+ const init = new Command().name("init").alias("setup").description("initialize React Grab in your project").option("-y, --yes", "skip confirmation prompts", false).option("-f, --force", "force overwrite existing config", false).option("-k, --key <key>", "activation key (e.g., Meta+K, Ctrl+Shift+G, Space)").option("--skip-install", "skip package installation", false).option("--pkg <pkg>", "custom package URL for CLI (e.g., grab)").option("-c, --cwd <cwd>", "working directory (defaults to current directory)", process.cwd()).option("-g, --global", "install the skill globally instead of in the project", false).action(async (opts) => {
1807
1807
  console.log(`${pc.magenta("✿")} ${pc.bold("React Grab")} ${pc.gray(VERSION$3)}`);
1808
1808
  console.log();
1809
1809
  try {
@@ -1846,12 +1846,12 @@ const init = new Command().name("init").alias("setup").description("initialize R
1846
1846
  const collectedOptions = {};
1847
1847
  if (opts.key) {
1848
1848
  collectedOptions.activationKey = opts.key;
1849
- logger.log(` Shortcut: ${highlighter.info(formatActivationKeyDisplay(collectedOptions.activationKey))}`);
1849
+ logger.log(` Activation key: ${highlighter.info(formatActivationKeyDisplay(collectedOptions.activationKey))}`);
1850
1850
  } else {
1851
1851
  const { wantActivationKey } = await prompts({
1852
1852
  type: "confirm",
1853
1853
  name: "wantActivationKey",
1854
- message: `Configure ${highlighter.info("shortcut")}?`,
1854
+ message: `Configure ${highlighter.info("activation key")}?`,
1855
1855
  initial: false
1856
1856
  });
1857
1857
  if (wantActivationKey === void 0) {
@@ -1862,7 +1862,7 @@ const init = new Command().name("init").alias("setup").description("initialize R
1862
1862
  const { key } = await prompts({
1863
1863
  type: "text",
1864
1864
  name: "key",
1865
- message: "Enter the shortcut (e.g., g, k, space):",
1865
+ message: "Enter the activation key (e.g., g, k, space):",
1866
1866
  initial: ""
1867
1867
  });
1868
1868
  if (key === void 0) {
@@ -1870,7 +1870,7 @@ const init = new Command().name("init").alias("setup").description("initialize R
1870
1870
  process.exit(1);
1871
1871
  }
1872
1872
  collectedOptions.activationKey = key ? key.toLowerCase() : void 0;
1873
- logger.log(` Shortcut: ${highlighter.info(formatActivationKeyDisplay(collectedOptions.activationKey))}`);
1873
+ logger.log(` Activation key: ${highlighter.info(formatActivationKeyDisplay(collectedOptions.activationKey))}`);
1874
1874
  }
1875
1875
  }
1876
1876
  const { activationMode } = await prompts({
@@ -2685,7 +2685,7 @@ const pull = new Command().name("pull").description("start the watcher if needed
2685
2685
  });
2686
2686
  //#endregion
2687
2687
  //#region src/commands/remove.ts
2688
- const VERSION$2 = "0.1.44-dev.dfbec6c";
2688
+ const VERSION$2 = "0.1.44";
2689
2689
  const remove = new Command().name("remove").description("uninstall the React Grab skill from your agent").option("-c, --cwd <cwd>", "working directory (defaults to current directory)", process.cwd()).option("-g, --global", "remove the globally-installed skill instead of the project's", false).action(async (opts) => {
2690
2690
  console.log(`${pc.magenta("✿")} ${pc.bold("React Grab")} ${pc.gray(VERSION$2)}`);
2691
2691
  console.log();
@@ -2713,7 +2713,7 @@ const stop = new Command().name("stop").description("stop the React Grab watcher
2713
2713
  });
2714
2714
  //#endregion
2715
2715
  //#region src/commands/upgrade.ts
2716
- const VERSION$1 = "0.1.44-dev.dfbec6c";
2716
+ const VERSION$1 = "0.1.44";
2717
2717
  const NPM_REGISTRY_URL = "https://registry.npmjs.org/react-grab/latest";
2718
2718
  const fetchLatestVersion = async () => {
2719
2719
  try {
@@ -2825,7 +2825,7 @@ const watch = new Command().name("watch").description("run the React Grab captur
2825
2825
  });
2826
2826
  //#endregion
2827
2827
  //#region src/cli.ts
2828
- const VERSION = "0.1.44-dev.dfbec6c";
2828
+ const VERSION = "0.1.44";
2829
2829
  const VERSION_API_URL = "https://www.react-grab.com/api/version";
2830
2830
  process.on("SIGINT", () => process.exit(0));
2831
2831
  process.on("SIGTERM", () => process.exit(0));